import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WatsonHealthICa_3D20 = /** @class */ (function () {
    function WatsonHealthICa_3D20(elementRef) {
        this.elementRef = elementRef;
    }
    WatsonHealthICa_3D20.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;
            WatsonHealthICa_3D20.titleIdCounter++;
            title.setAttribute("id", "watson-health-i-ca-3-d20-" + WatsonHealthICa_3D20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "watson-health-i-ca-3-d20-" + WatsonHealthICa_3D20.titleIdCounter);
        }
    };
    WatsonHealthICa_3D20.titleIdCounter = 0;
    WatsonHealthICa_3D20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-watson-health-i-ca-3-d20",
                    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=\"M15 14h-5a2 2 0 0 1-2-2V4a2 2 0 0 1 .59-1.42A3.57 3.57 0 0 1 10 2h5v2h-5v8h5zM4 6h2v8H4zm0-4h2v2H4zm23.45 17.11l-6-3a1 1 0 0 0-.9 0l-6 3A1 1 0 0 0 14 20v7a1 1 0 0 0 .55.89l6 3a1 1 0 0 0 .9 0l6-3A1 1 0 0 0 28 27v-7a1 1 0 0 0-.55-.89zm-6.45-1L24.76 20 21 21.88 17.24 20zm-5 3.5l4 2v4.76l-4-2zm6 6.76v-4.75l4-2v4.76zM23 2h-4a2 2 0 0 0-2 2v10h2v-4h4v4h2V4a2 2 0 0 0-2-2zm-4 6V4h4v4z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WatsonHealthICa_3D20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WatsonHealthICa_3D20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WatsonHealthICa_3D20;
}());
export { WatsonHealthICa_3D20 };
var WatsonHealthICa_3D20Module = /** @class */ (function () {
    function WatsonHealthICa_3D20Module() {
    }
    WatsonHealthICa_3D20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WatsonHealthICa_3D20
                    ],
                    exports: [
                        WatsonHealthICa_3D20
                    ]
                },] },
    ];
    return WatsonHealthICa_3D20Module;
}());
export { WatsonHealthICa_3D20Module };
//# sourceMappingURL=20.js.map