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