import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Shuffle20 = /** @class */ (function () {
    function Shuffle20(elementRef) {
        this.elementRef = elementRef;
    }
    Shuffle20.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;
            Shuffle20.titleIdCounter++;
            title.setAttribute("id", "shuffle20-" + Shuffle20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "shuffle20-" + Shuffle20.titleIdCounter);
        }
    };
    Shuffle20.titleIdCounter = 0;
    Shuffle20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-shuffle20",
                    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=\"M22.59 19.41L26.17 23h-6.62l-4.37-7 4.37-7h6.62l-3.58 3.59L24 14l6-6-6-6-1.41 1.41L26.17 7h-6.62a2 2 0 0 0-1.69.94L14 14.11l-3.86-6.17A2 2 0 0 0 8.45 7H2v2h6.45l4.37 7-4.37 7H2v2h6.45a2 2 0 0 0 1.69-.94L14 17.89l3.86 6.17a2 2 0 0 0 1.69.94h6.62l-3.58 3.59L24 30l6-6-6-6z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Shuffle20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Shuffle20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Shuffle20;
}());
export { Shuffle20 };
var Shuffle20Module = /** @class */ (function () {
    function Shuffle20Module() {
    }
    Shuffle20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Shuffle20
                    ],
                    exports: [
                        Shuffle20
                    ]
                },] },
    ];
    return Shuffle20Module;
}());
export { Shuffle20Module };
//# sourceMappingURL=20.js.map