import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var MacShift24 = /** @class */ (function () {
    function MacShift24(elementRef) {
        this.elementRef = elementRef;
    }
    MacShift24.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;
            MacShift24.titleIdCounter++;
            title.setAttribute("id", "mac-shift24-" + MacShift24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "mac-shift24-" + MacShift24.titleIdCounter);
        }
    };
    MacShift24.titleIdCounter = 0;
    MacShift24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-mac-shift24",
                    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=\"M21 28H11a2 2 0 0 1-2-2V16H4a1 1 0 0 1-.92-.62 1 1 0 0 1 .21-1.09l12-12a1 1 0 0 1 1.42 0l12 12a1 1 0 0 1 .21 1.09A1 1 0 0 1 28 16h-5v10a2 2 0 0 1-2 2zM6.41 14H10a1 1 0 0 1 1 1v11h10V15a1 1 0 0 1 1-1h3.59L16 4.41z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    MacShift24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    MacShift24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return MacShift24;
}());
export { MacShift24 };
var MacShift24Module = /** @class */ (function () {
    function MacShift24Module() {
    }
    MacShift24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        MacShift24
                    ],
                    exports: [
                        MacShift24
                    ]
                },] },
    ];
    return MacShift24Module;
}());
export { MacShift24Module };
//# sourceMappingURL=24.js.map