import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var User24 = /** @class */ (function () {
    function User24(elementRef) {
        this.elementRef = elementRef;
    }
    User24.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;
            User24.titleIdCounter++;
            title.setAttribute("id", "user24-" + User24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "user24-" + User24.titleIdCounter);
        }
    };
    User24.titleIdCounter = 0;
    User24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-user24",
                    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=\"M16 4a5 5 0 1 1-5 5 5 5 0 0 1 5-5m0-2a7 7 0 1 0 7 7 7 7 0 0 0-7-7zm10 28h-2v-5a5 5 0 0 0-5-5h-6a5 5 0 0 0-5 5v5H6v-5a7 7 0 0 1 7-7h6a7 7 0 0 1 7 7z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    User24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    User24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return User24;
}());
export { User24 };
var User24Module = /** @class */ (function () {
    function User24Module() {
    }
    User24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        User24
                    ],
                    exports: [
                        User24
                    ]
                },] },
    ];
    return User24Module;
}());
export { User24Module };
//# sourceMappingURL=24.js.map