import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WatsonHealthStackedScrolling_120 = /** @class */ (function () {
    function WatsonHealthStackedScrolling_120(elementRef) {
        this.elementRef = elementRef;
    }
    WatsonHealthStackedScrolling_120.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;
            WatsonHealthStackedScrolling_120.titleIdCounter++;
            title.setAttribute("id", "watson-health-stacked-scrolling-120-" + WatsonHealthStackedScrolling_120.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "watson-health-stacked-scrolling-120-" + WatsonHealthStackedScrolling_120.titleIdCounter);
        }
    };
    WatsonHealthStackedScrolling_120.titleIdCounter = 0;
    WatsonHealthStackedScrolling_120.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-watson-health-stacked-scrolling-120",
                    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=\"M18 30H4a2 2 0 0 1-2-2V14a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2zM4 14v14h14V14z\"></path><path d=\"M25 23h-2V9H9V7h14a2 2 0 0 1 2 2z\"></path><path d=\"M30 16h-2V4H16V2h12a2 2 0 0 1 2 2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WatsonHealthStackedScrolling_120.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WatsonHealthStackedScrolling_120.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WatsonHealthStackedScrolling_120;
}());
export { WatsonHealthStackedScrolling_120 };
var WatsonHealthStackedScrolling_120Module = /** @class */ (function () {
    function WatsonHealthStackedScrolling_120Module() {
    }
    WatsonHealthStackedScrolling_120Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WatsonHealthStackedScrolling_120
                    ],
                    exports: [
                        WatsonHealthStackedScrolling_120
                    ]
                },] },
    ];
    return WatsonHealthStackedScrolling_120Module;
}());
export { WatsonHealthStackedScrolling_120Module };
//# sourceMappingURL=20.js.map