import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WatsonHealth3DCursor20 = /** @class */ (function () {
    function WatsonHealth3DCursor20(elementRef) {
        this.elementRef = elementRef;
    }
    WatsonHealth3DCursor20.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;
            WatsonHealth3DCursor20.titleIdCounter++;
            title.setAttribute("id", "watson-health3-d-cursor20-" + WatsonHealth3DCursor20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "watson-health3-d-cursor20-" + WatsonHealth3DCursor20.titleIdCounter);
        }
    };
    WatsonHealth3DCursor20.titleIdCounter = 0;
    WatsonHealth3DCursor20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-watson-health3-d-cursor20",
                    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 4H4v9.01h2V6h7V4zm16.49 9.12l-9-5a1 1 0 0 0-1 0l-9 5A1 1 0 0 0 10 14v10a1 1 0 0 0 .52.87l9 5A1 1 0 0 0 20 30a1.05 1.05 0 0 0 .49-.13l9-5A1 1 0 0 0 30 24V14a1 1 0 0 0-.51-.88zM19 27.3l-7-3.89v-7.72l7 3.89zm1-9.45L13.06 14 20 10.14 26.94 14zm8 5.56l-7 3.89v-7.72l7-3.89z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WatsonHealth3DCursor20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WatsonHealth3DCursor20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WatsonHealth3DCursor20;
}());
export { WatsonHealth3DCursor20 };
var WatsonHealth3DCursor20Module = /** @class */ (function () {
    function WatsonHealth3DCursor20Module() {
    }
    WatsonHealth3DCursor20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WatsonHealth3DCursor20
                    ],
                    exports: [
                        WatsonHealth3DCursor20
                    ]
                },] },
    ];
    return WatsonHealth3DCursor20Module;
}());
export { WatsonHealth3DCursor20Module };
//# sourceMappingURL=20.js.map