import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Redo24 = /** @class */ (function () {
    function Redo24(elementRef) {
        this.elementRef = elementRef;
    }
    Redo24.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 24,
            height: 24,
            viewBox: "0 0 24 24",
            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;
            Redo24.titleIdCounter++;
            title.setAttribute("id", "redo24-" + Redo24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "redo24-" + Redo24.titleIdCounter);
        }
    };
    Redo24.titleIdCounter = 0;
    Redo24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-redo24",
                    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 24 24\" aria-hidden=\"true\"><path d=\"M6.8 11.2c-1.8 0-3.2 1.7-3.2 3.3 0 1.5 1.5 3.2 3.2 3.2H10v1.5H6.8C4.6 19.2 2 17 2 14.5s2-4.8 4.8-4.8h12.4l-3-3 1.1-1.1 4.8 4.8-4.8 4.8-1.1-1.1 3-3H6.8z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Redo24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Redo24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Redo24;
}());
export { Redo24 };
var Redo24Module = /** @class */ (function () {
    function Redo24Module() {
    }
    Redo24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Redo24
                    ],
                    exports: [
                        Redo24
                    ]
                },] },
    ];
    return Redo24Module;
}());
export { Redo24Module };
//# sourceMappingURL=24.js.map