import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Group24 = /** @class */ (function () {
    function Group24(elementRef) {
        this.elementRef = elementRef;
    }
    Group24.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 24,
            height: 24,
            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;
            Group24.titleIdCounter++;
            title.setAttribute("id", "group24-" + Group24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "group24-" + Group24.titleIdCounter);
        }
    };
    Group24.titleIdCounter = 0;
    Group24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-group24",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" 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 */
    Group24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Group24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Group24;
}());
export { Group24 };
var Group24Module = /** @class */ (function () {
    function Group24Module() {
    }
    Group24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Group24
                    ],
                    exports: [
                        Group24
                    ]
                },] },
    ];
    return Group24Module;
}());
export { Group24Module };
//# sourceMappingURL=24.js.map