import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ArrowsVertical24 = /** @class */ (function () {
    function ArrowsVertical24(elementRef) {
        this.elementRef = elementRef;
    }
    ArrowsVertical24.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 24,
            height: 24,
            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;
            ArrowsVertical24.titleIdCounter++;
            title.setAttribute("id", "arrows-vertical24-" + ArrowsVertical24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "arrows-vertical24-" + ArrowsVertical24.titleIdCounter);
        }
    };
    ArrowsVertical24.titleIdCounter = 0;
    ArrowsVertical24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-arrows-vertical24",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M26.59 20.59L23 24.17V4h-2v20.17l-3.59-3.58L16 22l6 6 6-6-1.41-1.41zM10 4l-6 6 1.41 1.41L9 7.83V28h2V7.83l3.59 3.58L16 10l-6-6z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    ArrowsVertical24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ArrowsVertical24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ArrowsVertical24;
}());
export { ArrowsVertical24 };
var ArrowsVertical24Module = /** @class */ (function () {
    function ArrowsVertical24Module() {
    }
    ArrowsVertical24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ArrowsVertical24
                    ],
                    exports: [
                        ArrowsVertical24
                    ]
                },] },
    ];
    return ArrowsVertical24Module;
}());
export { ArrowsVertical24Module };
//# sourceMappingURL=24.js.map