import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WatsonHealthLaunchStudy_220 = /** @class */ (function () {
    function WatsonHealthLaunchStudy_220(elementRef) {
        this.elementRef = elementRef;
    }
    WatsonHealthLaunchStudy_220.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;
            WatsonHealthLaunchStudy_220.titleIdCounter++;
            title.setAttribute("id", "watson-health-launch-study-220-" + WatsonHealthLaunchStudy_220.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "watson-health-launch-study-220-" + WatsonHealthLaunchStudy_220.titleIdCounter);
        }
    };
    WatsonHealthLaunchStudy_220.titleIdCounter = 0;
    WatsonHealthLaunchStudy_220.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-watson-health-launch-study-220",
                    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\"><circle cx=\"23\" cy=\"7\" r=\"1\"></circle><path d=\"M26 4v6H6V4h20m0-2H6a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm-5.41 19.41L17 17.83V30h-2V17.83l-3.59 3.58L10 20l6-6 6 6-1.41 1.41z\"></path><path d=\"M8 6h12v2H8z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WatsonHealthLaunchStudy_220.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WatsonHealthLaunchStudy_220.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WatsonHealthLaunchStudy_220;
}());
export { WatsonHealthLaunchStudy_220 };
var WatsonHealthLaunchStudy_220Module = /** @class */ (function () {
    function WatsonHealthLaunchStudy_220Module() {
    }
    WatsonHealthLaunchStudy_220Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WatsonHealthLaunchStudy_220
                    ],
                    exports: [
                        WatsonHealthLaunchStudy_220
                    ]
                },] },
    ];
    return WatsonHealthLaunchStudy_220Module;
}());
export { WatsonHealthLaunchStudy_220Module };
//# sourceMappingURL=20.js.map