import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Cursor_132 = /** @class */ (function () {
    function Cursor_132(elementRef) {
        this.elementRef = elementRef;
    }
    Cursor_132.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_132.titleIdCounter++;
            title.setAttribute("id", "cursor-132-" + Cursor_132.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "cursor-132-" + Cursor_132.titleIdCounter);
        }
    };
    Cursor_132.titleIdCounter = 0;
    Cursor_132.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-cursor-132",
                    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=\"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_132.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Cursor_132.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Cursor_132;
}());
export { Cursor_132 };
var Cursor_132Module = /** @class */ (function () {
    function Cursor_132Module() {
    }
    Cursor_132Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Cursor_132
                    ],
                    exports: [
                        Cursor_132
                    ]
                },] },
    ];
    return Cursor_132Module;
}());
export { Cursor_132Module };
//# sourceMappingURL=32.js.map