import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WatsonHealthPointerText20 = /** @class */ (function () {
    function WatsonHealthPointerText20(elementRef) {
        this.elementRef = elementRef;
    }
    WatsonHealthPointerText20.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;
            WatsonHealthPointerText20.titleIdCounter++;
            title.setAttribute("id", "watson-health-pointer-text20-" + WatsonHealthPointerText20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "watson-health-pointer-text20-" + WatsonHealthPointerText20.titleIdCounter);
        }
    };
    WatsonHealthPointerText20.titleIdCounter = 0;
    WatsonHealthPointerText20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-watson-health-pointer-text20",
                    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=\"M13.71 12.29L7.41 6H13V4H4v9h2V7.41l6.29 6.3 1.42-1.42zM28 30H12a2 2 0 0 1-2-2V18h2v10h16V12H18v-2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2z\"></path><path d=\"M22 15h-5v2h5v2h-4a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h6v-8a2 2 0 0 0-2-2zm0 8h-4v-2h4z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WatsonHealthPointerText20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WatsonHealthPointerText20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WatsonHealthPointerText20;
}());
export { WatsonHealthPointerText20 };
var WatsonHealthPointerText20Module = /** @class */ (function () {
    function WatsonHealthPointerText20Module() {
    }
    WatsonHealthPointerText20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WatsonHealthPointerText20
                    ],
                    exports: [
                        WatsonHealthPointerText20
                    ]
                },] },
    ];
    return WatsonHealthPointerText20Module;
}());
export { WatsonHealthPointerText20Module };
//# sourceMappingURL=20.js.map