import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var SplitScreen24 = /** @class */ (function () {
    function SplitScreen24(elementRef) {
        this.elementRef = elementRef;
    }
    SplitScreen24.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;
            SplitScreen24.titleIdCounter++;
            title.setAttribute("id", "split-screen24-" + SplitScreen24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "split-screen24-" + SplitScreen24.titleIdCounter);
        }
    };
    SplitScreen24.titleIdCounter = 0;
    SplitScreen24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-split-screen24",
                    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=\"M15 4h2v24h-2zm-5 3v18H4V7h6m0-2H4a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm18 2v18h-6V7h6m0-2h-6a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    SplitScreen24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    SplitScreen24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return SplitScreen24;
}());
export { SplitScreen24 };
var SplitScreen24Module = /** @class */ (function () {
    function SplitScreen24Module() {
    }
    SplitScreen24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        SplitScreen24
                    ],
                    exports: [
                        SplitScreen24
                    ]
                },] },
    ];
    return SplitScreen24Module;
}());
export { SplitScreen24Module };
//# sourceMappingURL=24.js.map