import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var MacCommand32 = /** @class */ (function () {
    function MacCommand32(elementRef) {
        this.elementRef = elementRef;
    }
    MacCommand32.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;
            MacCommand32.titleIdCounter++;
            title.setAttribute("id", "mac-command32-" + MacCommand32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "mac-command32-" + MacCommand32.titleIdCounter);
        }
    };
    MacCommand32.titleIdCounter = 0;
    MacCommand32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-mac-command32",
                    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=\"M24 13a4 4 0 0 0 4-4V8a4 4 0 0 0-4-4h-1a4 4 0 0 0-4 4v3h-6V8a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v1a4 4 0 0 0 4 4h3v6H8a4 4 0 0 0-4 4v1a4 4 0 0 0 4 4h1a4 4 0 0 0 4-4v-3h6v3a4 4 0 0 0 4 4h1a4 4 0 0 0 4-4v-1a4 4 0 0 0-4-4h-3v-6zm-3-5a2 2 0 0 1 2-2h1a2 2 0 0 1 2 2v1a2 2 0 0 1-2 2h-3zM8 11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h1a2 2 0 0 1 2 2v3H8zm3 13a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-1a2 2 0 0 1 2-2h3zm8-5h-6v-6h6zm2 2h3a2 2 0 0 1 2 2v1a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    MacCommand32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    MacCommand32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return MacCommand32;
}());
export { MacCommand32 };
var MacCommand32Module = /** @class */ (function () {
    function MacCommand32Module() {
    }
    MacCommand32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        MacCommand32
                    ],
                    exports: [
                        MacCommand32
                    ]
                },] },
    ];
    return MacCommand32Module;
}());
export { MacCommand32Module };
//# sourceMappingURL=32.js.map