import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Keyboard32 = /** @class */ (function () {
    function Keyboard32(elementRef) {
        this.elementRef = elementRef;
    }
    Keyboard32.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;
            Keyboard32.titleIdCounter++;
            title.setAttribute("id", "keyboard32-" + Keyboard32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "keyboard32-" + Keyboard32.titleIdCounter);
        }
    };
    Keyboard32.titleIdCounter = 0;
    Keyboard32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-keyboard32",
                    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=\"M28 26H4a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h24a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2zM4 10v14h24V10z\"></path><path d=\"M10 20h11v2H10zm-4-8h2v2H6zm4 0h2v2h-2zm4 0h2v2h-2zm4 0h2v2h-2zM6 20h2v2H6zm0-4h2v2H6zm4 0h2v2h-2zm4 0h2v2h-2zm8-4h4v2h-4zm0 4h4v2h-4zm-4 0h2v2h-2zm5 4h3v2h-3z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Keyboard32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Keyboard32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Keyboard32;
}());
export { Keyboard32 };
var Keyboard32Module = /** @class */ (function () {
    function Keyboard32Module() {
    }
    Keyboard32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Keyboard32
                    ],
                    exports: [
                        Keyboard32
                    ]
                },] },
    ];
    return Keyboard32Module;
}());
export { Keyboard32Module };
//# sourceMappingURL=32.js.map