import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WatsonHealthLaunchStudy_332 = /** @class */ (function () {
    function WatsonHealthLaunchStudy_332(elementRef) {
        this.elementRef = elementRef;
    }
    WatsonHealthLaunchStudy_332.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;
            WatsonHealthLaunchStudy_332.titleIdCounter++;
            title.setAttribute("id", "watson-health-launch-study-332-" + WatsonHealthLaunchStudy_332.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "watson-health-launch-study-332-" + WatsonHealthLaunchStudy_332.titleIdCounter);
        }
    };
    WatsonHealthLaunchStudy_332.titleIdCounter = 0;
    WatsonHealthLaunchStudy_332.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-watson-health-launch-study-332",
                    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\"><circle cx=\"23\" cy=\"25\" r=\"1\"></circle><path d=\"M26 22v6H6v-6h20m0-2H6a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2zM20.59 4.59L17 8.17V0h-2v8.17l-3.59-3.58L10 6l6 6 6-6-1.41-1.41z\"></path><path d=\"M20.59 10.59L16 15.16l-4.59-4.57L10 12l6 6 6-6-1.41-1.41zM8 24h12v2H8z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WatsonHealthLaunchStudy_332.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WatsonHealthLaunchStudy_332.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WatsonHealthLaunchStudy_332;
}());
export { WatsonHealthLaunchStudy_332 };
var WatsonHealthLaunchStudy_332Module = /** @class */ (function () {
    function WatsonHealthLaunchStudy_332Module() {
    }
    WatsonHealthLaunchStudy_332Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WatsonHealthLaunchStudy_332
                    ],
                    exports: [
                        WatsonHealthLaunchStudy_332
                    ]
                },] },
    ];
    return WatsonHealthLaunchStudy_332Module;
}());
export { WatsonHealthLaunchStudy_332Module };
//# sourceMappingURL=32.js.map