import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Asleep32 = /** @class */ (function () {
    function Asleep32(elementRef) {
        this.elementRef = elementRef;
    }
    Asleep32.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 32,
            height: 32,
            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;
            Asleep32.titleIdCounter++;
            title.setAttribute("id", "asleep32-" + Asleep32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "asleep32-" + Asleep32.titleIdCounter);
        }
    };
    Asleep32.titleIdCounter = 0;
    Asleep32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-asleep32",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M13.49 5.41a15.08 15.08 0 0 0 11.6 18.2 11.09 11.09 0 0 1-8 3.39h-.42a11.1 11.1 0 0 1-3.2-21.59M15 3h-.2a13.09 13.09 0 0 0 1.82 26h.49a13.08 13.08 0 0 0 10.71-5.56 1 1 0 0 0-.82-1.56 13.08 13.08 0 0 1-11.12-17.5A1 1 0 0 0 15 3z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Asleep32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Asleep32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Asleep32;
}());
export { Asleep32 };
var Asleep32Module = /** @class */ (function () {
    function Asleep32Module() {
    }
    Asleep32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Asleep32
                    ],
                    exports: [
                        Asleep32
                    ]
                },] },
    ];
    return Asleep32Module;
}());
export { Asleep32Module };
//# sourceMappingURL=32.js.map