import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Move20 = /** @class */ (function () {
    function Move20(elementRef) {
        this.elementRef = elementRef;
    }
    Move20.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;
            Move20.titleIdCounter++;
            title.setAttribute("id", "move20-" + Move20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "move20-" + Move20.titleIdCounter);
        }
    };
    Move20.titleIdCounter = 0;
    Move20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-move20",
                    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 11l-1.41 1.41L26.17 15H17V5.83l2.59 2.58L21 7l-5-5-5 5 1.41 1.41L15 5.83V15H5.83l2.58-2.59L7 11l-5 5 5 5 1.41-1.41L5.83 17H15v9.17l-2.59-2.58L11 25l5 5 5-5-1.41-1.41L17 26.17V17h9.17l-2.58 2.59L25 21l5-5-5-5z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Move20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Move20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Move20;
}());
export { Move20 };
var Move20Module = /** @class */ (function () {
    function Move20Module() {
    }
    Move20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Move20
                    ],
                    exports: [
                        Move20
                    ]
                },] },
    ];
    return Move20Module;
}());
export { Move20Module };
//# sourceMappingURL=20.js.map