import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Cursor_124 = /** @class */ (function () {
    function Cursor_124(elementRef) {
        this.elementRef = elementRef;
    }
    Cursor_124.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 24,
            height: 24,
            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_124.titleIdCounter++;
            title.setAttribute("id", "cursor-124-" + Cursor_124.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "cursor-124-" + Cursor_124.titleIdCounter);
        }
    };
    Cursor_124.titleIdCounter = 0;
    Cursor_124.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-cursor-124",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" 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_124.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Cursor_124.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Cursor_124;
}());
export { Cursor_124 };
var Cursor_124Module = /** @class */ (function () {
    function Cursor_124Module() {
    }
    Cursor_124Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Cursor_124
                    ],
                    exports: [
                        Cursor_124
                    ]
                },] },
    ];
    return Cursor_124Module;
}());
export { Cursor_124Module };
//# sourceMappingURL=24.js.map