import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Group32 = /** @class */ (function () {
    function Group32(elementRef) {
        this.elementRef = elementRef;
    }
    Group32.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;
            Group32.titleIdCounter++;
            title.setAttribute("id", "group32-" + Group32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "group32-" + Group32.titleIdCounter);
        }
    };
    Group32.titleIdCounter = 0;
    Group32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-group32",
                    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=\"M31 30h-2v-3a3 3 0 0 0-3-3h-4a3 3 0 0 0-3 3v3h-2v-3a5 5 0 0 1 5-5h4a5 5 0 0 1 5 5zm-7-18a3 3 0 1 1-3 3 3 3 0 0 1 3-3m0-2a5 5 0 1 0 5 5 5 5 0 0 0-5-5zm-9 12h-2v-3a3 3 0 0 0-3-3H6a3 3 0 0 0-3 3v3H1v-3a5 5 0 0 1 5-5h4a5 5 0 0 1 5 5zM8 4a3 3 0 1 1-3 3 3 3 0 0 1 3-3m0-2a5 5 0 1 0 5 5 5 5 0 0 0-5-5z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Group32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Group32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Group32;
}());
export { Group32 };
var Group32Module = /** @class */ (function () {
    function Group32Module() {
    }
    Group32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Group32
                    ],
                    exports: [
                        Group32
                    ]
                },] },
    ];
    return Group32Module;
}());
export { Group32Module };
//# sourceMappingURL=32.js.map