import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Help32 = /** @class */ (function () {
    function Help32(elementRef) {
        this.elementRef = elementRef;
    }
    Help32.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;
            Help32.titleIdCounter++;
            title.setAttribute("id", "help32-" + Help32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "help32-" + Help32.titleIdCounter);
        }
    };
    Help32.titleIdCounter = 0;
    Help32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-help32",
                    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=\"M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2zm0 26a12 12 0 1 1 12-12 12 12 0 0 1-12 12z\"></path><circle cx=\"16\" cy=\"23.5\" r=\"1.5\"></circle><path d=\"M17 8h-1.5a4.49 4.49 0 0 0-4.5 4.5v.5h2v-.5a2.5 2.5 0 0 1 2.5-2.5H17a2.5 2.5 0 0 1 0 5h-2v4.5h2V17a4.5 4.5 0 0 0 0-9z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Help32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Help32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Help32;
}());
export { Help32 };
var Help32Module = /** @class */ (function () {
    function Help32Module() {
    }
    Help32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Help32
                    ],
                    exports: [
                        Help32
                    ]
                },] },
    ];
    return Help32Module;
}());
export { Help32Module };
//# sourceMappingURL=32.js.map