import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WatsonHealth3rdPartyConnected20 = /** @class */ (function () {
    function WatsonHealth3rdPartyConnected20(elementRef) {
        this.elementRef = elementRef;
    }
    WatsonHealth3rdPartyConnected20.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;
            WatsonHealth3rdPartyConnected20.titleIdCounter++;
            title.setAttribute("id", "watson-health3rd-party-connected20-" + WatsonHealth3rdPartyConnected20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "watson-health3rd-party-connected20-" + WatsonHealth3rdPartyConnected20.titleIdCounter);
        }
    };
    WatsonHealth3rdPartyConnected20.titleIdCounter = 0;
    WatsonHealth3rdPartyConnected20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-watson-health3rd-party-connected20",
                    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\"><path d=\"M26 22a3.86 3.86 0 0 0-2 .57l-3.09-3.1a6 6 0 0 0 0-6.94L24 9.43a3.86 3.86 0 0 0 2 .57 4 4 0 1 0-4-4 3.86 3.86 0 0 0 .57 2l-3.1 3.09a6 6 0 0 0-6.94 0L9.43 8A3.86 3.86 0 0 0 10 6a4 4 0 1 0-4 4 3.86 3.86 0 0 0 2-.57l3.09 3.1a6 6 0 0 0 0 6.94L8 22.57A3.86 3.86 0 0 0 6 22a4 4 0 1 0 4 4 3.86 3.86 0 0 0-.57-2l3.1-3.09a6 6 0 0 0 6.94 0l3.1 3.09a3.86 3.86 0 0 0-.57 2 4 4 0 1 0 4-4zm-10-2a4 4 0 1 1 4-4 4 4 0 0 1-4 4z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WatsonHealth3rdPartyConnected20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WatsonHealth3rdPartyConnected20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WatsonHealth3rdPartyConnected20;
}());
export { WatsonHealth3rdPartyConnected20 };
var WatsonHealth3rdPartyConnected20Module = /** @class */ (function () {
    function WatsonHealth3rdPartyConnected20Module() {
    }
    WatsonHealth3rdPartyConnected20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WatsonHealth3rdPartyConnected20
                    ],
                    exports: [
                        WatsonHealth3rdPartyConnected20
                    ]
                },] },
    ];
    return WatsonHealth3rdPartyConnected20Module;
}());
export { WatsonHealth3rdPartyConnected20Module };
//# sourceMappingURL=20.js.map