import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var MacShift32 = /** @class */ (function () {
    function MacShift32(elementRef) {
        this.elementRef = elementRef;
    }
    MacShift32.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;
            MacShift32.titleIdCounter++;
            title.setAttribute("id", "mac-shift32-" + MacShift32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "mac-shift32-" + MacShift32.titleIdCounter);
        }
    };
    MacShift32.titleIdCounter = 0;
    MacShift32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-mac-shift32",
                    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=\"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 */
    MacShift32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    MacShift32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return MacShift32;
}());
export { MacShift32 };
var MacShift32Module = /** @class */ (function () {
    function MacShift32Module() {
    }
    MacShift32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        MacShift32
                    ],
                    exports: [
                        MacShift32
                    ]
                },] },
    ];
    return MacShift32Module;
}());
export { MacShift32Module };
//# sourceMappingURL=32.js.map