import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Help16 = /** @class */ (function () {
    function Help16(elementRef) {
        this.elementRef = elementRef;
    }
    Help16.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 16,
            height: 16,
            viewBox: "0 0 16 16",
            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;
            Help16.titleIdCounter++;
            title.setAttribute("id", "help16-" + Help16.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "help16-" + Help16.titleIdCounter);
        }
    };
    Help16.titleIdCounter = 0;
    Help16.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-help16",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M8 1C4.1 1 1 4.1 1 8s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7zm0 13c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6z\"></path><circle cx=\"8\" cy=\"11.8\" r=\".8\"></circle><path d=\"M8.5 4h-.7C6.5 4 5.5 5 5.5 6.2v.2h1v-.2c0-.6.6-1.2 1.3-1.2h.8c.7 0 1.2.6 1.2 1.2s-.6 1.3-1.3 1.3h-1v2.2h1V8.5c1.2 0 2.2-1 2.2-2.2S9.7 4 8.5 4z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Help16.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Help16.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Help16;
}());
export { Help16 };
var Help16Module = /** @class */ (function () {
    function Help16Module() {
    }
    Help16Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Help16
                    ],
                    exports: [
                        Help16
                    ]
                },] },
    ];
    return Help16Module;
}());
export { Help16Module };
//# sourceMappingURL=16.js.map