import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Renew20 = /** @class */ (function () {
    function Renew20(elementRef) {
        this.elementRef = elementRef;
    }
    Renew20.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;
            Renew20.titleIdCounter++;
            title.setAttribute("id", "renew20-" + Renew20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "renew20-" + Renew20.titleIdCounter);
        }
    };
    Renew20.titleIdCounter = 0;
    Renew20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-renew20",
                    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=\"M12 10H6.78A11 11 0 0 1 27 16h2A13 13 0 0 0 6 7.68V4H4v8h8zm8 12h5.22A11 11 0 0 1 5 16H3a13 13 0 0 0 23 8.32V28h2v-8h-8z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Renew20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Renew20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Renew20;
}());
export { Renew20 };
var Renew20Module = /** @class */ (function () {
    function Renew20Module() {
    }
    Renew20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Renew20
                    ],
                    exports: [
                        Renew20
                    ]
                },] },
    ];
    return Renew20Module;
}());
export { Renew20Module };
//# sourceMappingURL=20.js.map