import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WatsonHealthStackedMove20 = /** @class */ (function () {
    function WatsonHealthStackedMove20(elementRef) {
        this.elementRef = elementRef;
    }
    WatsonHealthStackedMove20.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;
            WatsonHealthStackedMove20.titleIdCounter++;
            title.setAttribute("id", "watson-health-stacked-move20-" + WatsonHealthStackedMove20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "watson-health-stacked-move20-" + WatsonHealthStackedMove20.titleIdCounter);
        }
    };
    WatsonHealthStackedMove20.titleIdCounter = 0;
    WatsonHealthStackedMove20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-watson-health-stacked-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=\"M15 28H4a2 2 0 0 1-2-2V11a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v15a2 2 0 0 1-2 2zM4 11v15h11V11z\"></path><path d=\"M26 6l-1.41 1.41L27 10h-5V6a2 2 0 0 0-2-2H10v2h10v14h2v-8h5l-2.41 2.59L26 16l5-5z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WatsonHealthStackedMove20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WatsonHealthStackedMove20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WatsonHealthStackedMove20;
}());
export { WatsonHealthStackedMove20 };
var WatsonHealthStackedMove20Module = /** @class */ (function () {
    function WatsonHealthStackedMove20Module() {
    }
    WatsonHealthStackedMove20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WatsonHealthStackedMove20
                    ],
                    exports: [
                        WatsonHealthStackedMove20
                    ]
                },] },
    ];
    return WatsonHealthStackedMove20Module;
}());
export { WatsonHealthStackedMove20Module };
//# sourceMappingURL=20.js.map