import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WatsonHealthStudySkip32 = /** @class */ (function () {
    function WatsonHealthStudySkip32(elementRef) {
        this.elementRef = elementRef;
    }
    WatsonHealthStudySkip32.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;
            WatsonHealthStudySkip32.titleIdCounter++;
            title.setAttribute("id", "watson-health-study-skip32-" + WatsonHealthStudySkip32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "watson-health-study-skip32-" + WatsonHealthStudySkip32.titleIdCounter);
        }
    };
    WatsonHealthStudySkip32.titleIdCounter = 0;
    WatsonHealthStudySkip32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-watson-health-study-skip32",
                    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=\"M22 9h5.2A11 11 0 0 0 7 15H5a13 13 0 0 1 23-8.3V3h2v8h-8z\"></path><path d=\"M16 12a3 3 0 1 1-3 3 2.95 2.95 0 0 1 3-3m0-2a5 5 0 1 0 5 5 5 5 0 0 0-5-5zm7 20h-2v-3a3 3 0 0 0-3-3h-4a3 3 0 0 0-3 3v3H9v-3a5 5 0 0 1 5-5h4a5 5 0 0 1 5 5z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WatsonHealthStudySkip32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WatsonHealthStudySkip32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WatsonHealthStudySkip32;
}());
export { WatsonHealthStudySkip32 };
var WatsonHealthStudySkip32Module = /** @class */ (function () {
    function WatsonHealthStudySkip32Module() {
    }
    WatsonHealthStudySkip32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WatsonHealthStudySkip32
                    ],
                    exports: [
                        WatsonHealthStudySkip32
                    ]
                },] },
    ];
    return WatsonHealthStudySkip32Module;
}());
export { WatsonHealthStudySkip32Module };
//# sourceMappingURL=32.js.map