import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Restart20 = /** @class */ (function () {
    function Restart20(elementRef) {
        this.elementRef = elementRef;
    }
    Restart20.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;
            Restart20.titleIdCounter++;
            title.setAttribute("id", "restart20-" + Restart20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "restart20-" + Restart20.titleIdCounter);
        }
    };
    Restart20.titleIdCounter = 0;
    Restart20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-restart20",
                    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=\"M25 18A10 10 0 1 1 15 8h6.18l-3.58 3.59L19 13l6-6-6-6-1.4 1.41L21.19 6H15a12 12 0 1 0 12 12z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Restart20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Restart20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Restart20;
}());
export { Restart20 };
var Restart20Module = /** @class */ (function () {
    function Restart20Module() {
    }
    Restart20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Restart20
                    ],
                    exports: [
                        Restart20
                    ]
                },] },
    ];
    return Restart20Module;
}());
export { Restart20Module };
//# sourceMappingURL=20.js.map