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