import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Collaborate24 = /** @class */ (function () {
    function Collaborate24(elementRef) {
        this.elementRef = elementRef;
    }
    Collaborate24.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;
            Collaborate24.titleIdCounter++;
            title.setAttribute("id", "collaborate24-" + Collaborate24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "collaborate24-" + Collaborate24.titleIdCounter);
        }
    };
    Collaborate24.titleIdCounter = 0;
    Collaborate24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-collaborate24",
                    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=\"M6 21v-1H4v1a7 7 0 0 0 7 7h3v-2h-3a5 5 0 0 1-5-5zm18-10v1h2v-1a7 7 0 0 0-7-7h-3v2h3a5 5 0 0 1 5 5zm-13 0H5a3 3 0 0 0-3 3v2h2v-2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2h2v-2a3 3 0 0 0-3-3zm-3-1a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0-6a2 2 0 1 1-2 2 2 2 0 0 1 2-2zm19 21h-6a3 3 0 0 0-3 3v2h2v-2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2h2v-2a3 3 0 0 0-3-3zm-7-5a4 4 0 1 0 4-4 4 4 0 0 0-4 4zm6 0a2 2 0 1 1-2-2 2 2 0 0 1 2 2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Collaborate24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Collaborate24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Collaborate24;
}());
export { Collaborate24 };
var Collaborate24Module = /** @class */ (function () {
    function Collaborate24Module() {
    }
    Collaborate24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Collaborate24
                    ],
                    exports: [
                        Collaborate24
                    ]
                },] },
    ];
    return Collaborate24Module;
}());
export { Collaborate24Module };
//# sourceMappingURL=24.js.map