import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Forward_1020 = /** @class */ (function () {
    function Forward_1020(elementRef) {
        this.elementRef = elementRef;
    }
    Forward_1020.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;
            Forward_1020.titleIdCounter++;
            title.setAttribute("id", "forward-1020-" + Forward_1020.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "forward-1020-" + Forward_1020.titleIdCounter);
        }
    };
    Forward_1020.titleIdCounter = 0;
    Forward_1020.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-forward-1020",
                    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=\"M26 18A10 10 0 1 1 16 8h4v5l6-6-6-6v5h-4a12 12 0 1 0 12 12z\"></path><path d=\"M19.63 22.13a2.84 2.84 0 0 1-1.28-.27 2.44 2.44 0 0 1-.89-.77 3.57 3.57 0 0 1-.52-1.25 7.69 7.69 0 0 1-.17-1.68 7.83 7.83 0 0 1 .17-1.68 3.65 3.65 0 0 1 .52-1.25 2.44 2.44 0 0 1 .89-.77 2.84 2.84 0 0 1 1.28-.27 2.44 2.44 0 0 1 2.16 1 5.23 5.23 0 0 1 .7 2.93 5.23 5.23 0 0 1-.7 2.93 2.44 2.44 0 0 1-2.16 1.08zm0-1.22a1.07 1.07 0 0 0 1-.55 3.38 3.38 0 0 0 .37-1.51v-1.38a3.31 3.31 0 0 0-.29-1.5 1.23 1.23 0 0 0-2.06 0 3.31 3.31 0 0 0-.29 1.5v1.38a3.38 3.38 0 0 0 .29 1.51 1.06 1.06 0 0 0 .98.55zm-9 1.09v-1.18h2v-5.19l-1.86 1-.55-1.06 2.32-1.3H14v6.5h1.78V22z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Forward_1020.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Forward_1020.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Forward_1020;
}());
export { Forward_1020 };
var Forward_1020Module = /** @class */ (function () {
    function Forward_1020Module() {
    }
    Forward_1020Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Forward_1020
                    ],
                    exports: [
                        Forward_1020
                    ]
                },] },
    ];
    return Forward_1020Module;
}());
export { Forward_1020Module };
//# sourceMappingURL=20.js.map