import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ResearchMatrix24 = /** @class */ (function () {
    function ResearchMatrix24(elementRef) {
        this.elementRef = elementRef;
    }
    ResearchMatrix24.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;
            ResearchMatrix24.titleIdCounter++;
            title.setAttribute("id", "research-matrix24-" + ResearchMatrix24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "research-matrix24-" + ResearchMatrix24.titleIdCounter);
        }
    };
    ResearchMatrix24.titleIdCounter = 0;
    ResearchMatrix24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-research-matrix24",
                    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=\"M18 13V4h-2v2h-3v2h3v5h-3v2h8v-2h-3zm-1.5 7a3.5 3.5 0 1 1-3.5 3.5 3.5 3.5 0 0 1 3.5-3.5m0-2a5.5 5.5 0 1 0 5.5 5.5 5.5 5.5 0 0 0-5.5-5.5zM8 30H2V2h6v2H4v24h4v2zm22 0h-6v-2h4V4h-4V2h6v28z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    ResearchMatrix24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ResearchMatrix24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ResearchMatrix24;
}());
export { ResearchMatrix24 };
var ResearchMatrix24Module = /** @class */ (function () {
    function ResearchMatrix24Module() {
    }
    ResearchMatrix24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ResearchMatrix24
                    ],
                    exports: [
                        ResearchMatrix24
                    ]
                },] },
    ];
    return ResearchMatrix24Module;
}());
export { ResearchMatrix24Module };
//# sourceMappingURL=24.js.map