import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Idea32 = /** @class */ (function () {
    function Idea32(elementRef) {
        this.elementRef = elementRef;
    }
    Idea32.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;
            Idea32.titleIdCounter++;
            title.setAttribute("id", "idea32-" + Idea32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "idea32-" + Idea32.titleIdCounter);
        }
    };
    Idea32.titleIdCounter = 0;
    Idea32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-idea32",
                    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=\"M11 24h10v2H11zm2 4h6v2h-6zm3-26A10 10 0 0 0 6 12a9.19 9.19 0 0 0 3.46 7.62c1 .93 1.54 1.46 1.54 2.38h2c0-1.84-1.11-2.87-2.19-3.86A7.2 7.2 0 0 1 8 12a8 8 0 0 1 16 0 7.2 7.2 0 0 1-2.82 6.14c-1.07 1-2.18 2-2.18 3.86h2c0-.92.53-1.45 1.54-2.39A9.18 9.18 0 0 0 26 12 10 10 0 0 0 16 2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Idea32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Idea32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Idea32;
}());
export { Idea32 };
var Idea32Module = /** @class */ (function () {
    function Idea32Module() {
    }
    Idea32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Idea32
                    ],
                    exports: [
                        Idea32
                    ]
                },] },
    ];
    return Idea32Module;
}());
export { Idea32Module };
//# sourceMappingURL=32.js.map