import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WatsonHealthStudySkip24 = /** @class */ (function () {
    function WatsonHealthStudySkip24(elementRef) {
        this.elementRef = elementRef;
    }
    WatsonHealthStudySkip24.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;
            WatsonHealthStudySkip24.titleIdCounter++;
            title.setAttribute("id", "watson-health-study-skip24-" + WatsonHealthStudySkip24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "watson-health-study-skip24-" + WatsonHealthStudySkip24.titleIdCounter);
        }
    };
    WatsonHealthStudySkip24.titleIdCounter = 0;
    WatsonHealthStudySkip24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-watson-health-study-skip24",
                    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=\"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 */
    WatsonHealthStudySkip24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WatsonHealthStudySkip24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WatsonHealthStudySkip24;
}());
export { WatsonHealthStudySkip24 };
var WatsonHealthStudySkip24Module = /** @class */ (function () {
    function WatsonHealthStudySkip24Module() {
    }
    WatsonHealthStudySkip24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WatsonHealthStudySkip24
                    ],
                    exports: [
                        WatsonHealthStudySkip24
                    ]
                },] },
    ];
    return WatsonHealthStudySkip24Module;
}());
export { WatsonHealthStudySkip24Module };
//# sourceMappingURL=24.js.map