import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var FaceCool24 = /** @class */ (function () {
    function FaceCool24(elementRef) {
        this.elementRef = elementRef;
    }
    FaceCool24.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;
            FaceCool24.titleIdCounter++;
            title.setAttribute("id", "face-cool24-" + FaceCool24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "face-cool24-" + FaceCool24.titleIdCounter);
        }
    };
    FaceCool24.titleIdCounter = 0;
    FaceCool24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-face-cool24",
                    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=\"M16 24a8 8 0 0 0 6.85-3.89l-1.71-1a6 6 0 0 1-10.28 0l-1.71 1A8 8 0 0 0 16 24z\"></path><path d=\"M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2zm0 2a12 12 0 0 1 10.89 7H25a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1H5.11A12 12 0 0 1 16 4zm0 24A12 12 0 0 1 4 16a11.86 11.86 0 0 1 .4-3H7v2a2 2 0 0 0 2 2h3.31a2 2 0 0 0 2-1.67l.52-3.33h2.34l.55 3.33a2 2 0 0 0 2 1.67H23a2 2 0 0 0 2-2v-2h2.6a11.86 11.86 0 0 1 .4 3 12 12 0 0 1-12 12z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    FaceCool24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    FaceCool24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return FaceCool24;
}());
export { FaceCool24 };
var FaceCool24Module = /** @class */ (function () {
    function FaceCool24Module() {
    }
    FaceCool24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        FaceCool24
                    ],
                    exports: [
                        FaceCool24
                    ]
                },] },
    ];
    return FaceCool24Module;
}());
export { FaceCool24Module };
//# sourceMappingURL=24.js.map