import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Cursor_232 = /** @class */ (function () {
    function Cursor_232(elementRef) {
        this.elementRef = elementRef;
    }
    Cursor_232.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 32,
            height: 32,
            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_232.titleIdCounter++;
            title.setAttribute("id", "cursor-232-" + Cursor_232.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "cursor-232-" + Cursor_232.titleIdCounter);
        }
    };
    Cursor_232.titleIdCounter = 0;
    Cursor_232.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-cursor-232",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M27.34 12.06l-22-8a1 1 0 0 0-1.28 1.28l8 22A1 1 0 0 0 13 28a1 1 0 0 0 .93-.63l3.84-9.6 9.6-3.84a1 1 0 0 0 0-1.87zm-10.71 4l-.4.16-.16.4L13 24.2 6.67 6.67 24.2 13z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Cursor_232.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Cursor_232.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Cursor_232;
}());
export { Cursor_232 };
var Cursor_232Module = /** @class */ (function () {
    function Cursor_232Module() {
    }
    Cursor_232Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Cursor_232
                    ],
                    exports: [
                        Cursor_232
                    ]
                },] },
    ];
    return Cursor_232Module;
}());
export { Cursor_232Module };
//# sourceMappingURL=32.js.map