import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Movement20 = /** @class */ (function () {
    function Movement20(elementRef) {
        this.elementRef = elementRef;
    }
    Movement20.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;
            Movement20.titleIdCounter++;
            title.setAttribute("id", "movement20-" + Movement20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "movement20-" + Movement20.titleIdCounter);
        }
    };
    Movement20.titleIdCounter = 0;
    Movement20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-movement20",
                    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=\"M24 20l-1.41 1.41L26.17 25H10a4 4 0 0 1 0-8h12a6 6 0 0 0 0-12H5.83l3.58-3.59L8 0 2 6l6 6 1.41-1.41L5.83 7H22a4 4 0 0 1 0 8H10a6 6 0 0 0 0 12h16.17l-3.58 3.59L24 32l6-6z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Movement20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Movement20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Movement20;
}());
export { Movement20 };
var Movement20Module = /** @class */ (function () {
    function Movement20Module() {
    }
    Movement20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Movement20
                    ],
                    exports: [
                        Movement20
                    ]
                },] },
    ];
    return Movement20Module;
}());
export { Movement20Module };
//# sourceMappingURL=20.js.map