import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Misuse24 = /** @class */ (function () {
    function Misuse24(elementRef) {
        this.elementRef = elementRef;
    }
    Misuse24.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 24,
            height: 24,
            viewBox: "0 0 24 24",
            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;
            Misuse24.titleIdCounter++;
            title.setAttribute("id", "misuse24-" + Misuse24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "misuse24-" + Misuse24.titleIdCounter);
        }
    };
    Misuse24.titleIdCounter = 0;
    Misuse24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-misuse24",
                    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 24 24\" aria-hidden=\"true\"><path d=\"M12 1C6 1 1 6 1 12s5 11 11 11 11-4.9 11-11S18.1 1 12 1zm4.2 16.5L12 13.3l-4.2 4.2-1.3-1.3 4.2-4.2-4.2-4.2 1.3-1.3 4.2 4.2 4.2-4.2 1.3 1.3-4.2 4.2 4.2 4.2-1.3 1.3z\"></path><path d=\"M16.2 17.5L12 13.3l-4.2 4.2-1.3-1.3 4.2-4.2-4.2-4.2 1.3-1.3 4.2 4.2 4.2-4.2 1.3 1.3-4.2 4.2 4.2 4.2-1.3 1.3z\" data-icon-path=\"inner-path\" opacity=\"0\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Misuse24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Misuse24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Misuse24;
}());
export { Misuse24 };
var Misuse24Module = /** @class */ (function () {
    function Misuse24Module() {
    }
    Misuse24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Misuse24
                    ],
                    exports: [
                        Misuse24
                    ]
                },] },
    ];
    return Misuse24Module;
}());
export { Misuse24Module };
//# sourceMappingURL=24.js.map