import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Cursor_120 = /** @class */ (function () {
    function Cursor_120(elementRef) {
        this.elementRef = elementRef;
    }
    Cursor_120.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;
            Cursor_120.titleIdCounter++;
            title.setAttribute("id", "cursor-120-" + Cursor_120.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "cursor-120-" + Cursor_120.titleIdCounter);
        }
    };
    Cursor_120.titleIdCounter = 0;
    Cursor_120.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-cursor-120",
                    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=\"M23 28a1 1 0 0 1-.71-.29l-6.13-6.14-3.33 5a1 1 0 0 1-1 .44 1 1 0 0 1-.81-.7l-6-20A1 1 0 0 1 6.29 5l20 6a1 1 0 0 1 .7.81 1 1 0 0 1-.44 1l-5 3.33 6.14 6.13a1 1 0 0 1 0 1.42l-4 4A1 1 0 0 1 23 28zm0-2.41L25.59 23l-7.16-7.15 5.25-3.5L7.49 7.49l4.86 16.19 3.5-5.25z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Cursor_120.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Cursor_120.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Cursor_120;
}());
export { Cursor_120 };
var Cursor_120Module = /** @class */ (function () {
    function Cursor_120Module() {
    }
    Cursor_120Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Cursor_120
                    ],
                    exports: [
                        Cursor_120
                    ]
                },] },
    ];
    return Cursor_120Module;
}());
export { Cursor_120Module };
//# sourceMappingURL=20.js.map