import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Taste24 = /** @class */ (function () {
    function Taste24(elementRef) {
        this.elementRef = elementRef;
    }
    Taste24.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 24,
            height: 24,
            viewBox: "0 0 32 32",
            title: this.title,
            "aria-label": this.ariaLabel,
            "aria-labelledby": this.ariaLabelledby,
            "aria-hidden": this.ariaHidden,
            focusable: this.focusable
        });
        var attrKeys = Object.keys(attributes);
        for (var i = 0; i < attrKeys.length; i++) {
            var key = attrKeys[i];
            var value = attributes[key];
            if (key === "title") {
                continue;
            }
            if (value) {
                svg.setAttribute(key, value);
            }
        }
        if (attributes.title) {
            var title = document.createElement("title");
            title.textContent = attributes.title;
            Taste24.titleIdCounter++;
            title.setAttribute("id", "taste24-" + Taste24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "taste24-" + Taste24.titleIdCounter);
        }
    };
    Taste24.titleIdCounter = 0;
    Taste24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-taste24",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M4 4v2h4v8a8 8 0 0 0 16 0V6h4V4zm18 10a6 6 0 0 1-12 0V6h5v8h2V6h5zM11 26h2v2h-2zm-4-2h2v2H7zm8 0h2v2h-2zm4 2h2v2h-2zm4-2h2v2h-2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Taste24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Taste24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Taste24;
}());
export { Taste24 };
var Taste24Module = /** @class */ (function () {
    function Taste24Module() {
    }
    Taste24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Taste24
                    ],
                    exports: [
                        Taste24
                    ]
                },] },
    ];
    return Taste24Module;
}());
export { Taste24Module };
//# sourceMappingURL=24.js.map