import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Redo16 = /** @class */ (function () {
    function Redo16(elementRef) {
        this.elementRef = elementRef;
    }
    Redo16.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 16,
            height: 16,
            viewBox: "0 0 16 16",
            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;
            Redo16.titleIdCounter++;
            title.setAttribute("id", "redo16-" + Redo16.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "redo16-" + Redo16.titleIdCounter);
        }
    };
    Redo16.titleIdCounter = 0;
    Redo16.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-redo16",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M4 8c-1.2 0-2 .8-2 2s.8 2 2 2h3v1H4c-1.7 0-3-1.2-3-3 0-1.7 1.3-3 3-3h9.1l-2-2 .7-.7L15 7.5l-3.2 3.2-.7-.7 2-2H4z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Redo16.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Redo16.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Redo16;
}());
export { Redo16 };
var Redo16Module = /** @class */ (function () {
    function Redo16Module() {
    }
    Redo16Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Redo16
                    ],
                    exports: [
                        Redo16
                    ]
                },] },
    ];
    return Redo16Module;
}());
export { Redo16Module };
//# sourceMappingURL=16.js.map