import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Api_132 = /** @class */ (function () {
    function Api_132(elementRef) {
        this.elementRef = elementRef;
    }
    Api_132.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;
            Api_132.titleIdCounter++;
            title.setAttribute("id", "api-132-" + Api_132.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "api-132-" + Api_132.titleIdCounter);
        }
    };
    Api_132.titleIdCounter = 0;
    Api_132.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-api-132",
                    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=\"M8 9H4a2 2 0 0 0-2 2v12h2v-5h4v5h2V11a2 2 0 0 0-2-2zm-4 7v-5h4v5zm18-5h3v10h-3v2h8v-2h-3V11h3V9h-8v2zm-8 12h-2V9h6a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-4zm0-7h4v-5h-4z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Api_132.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Api_132.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Api_132;
}());
export { Api_132 };
var Api_132Module = /** @class */ (function () {
    function Api_132Module() {
    }
    Api_132Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Api_132
                    ],
                    exports: [
                        Api_132
                    ]
                },] },
    ];
    return Api_132Module;
}());
export { Api_132Module };
//# sourceMappingURL=32.js.map