import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var DataConnected32 = /** @class */ (function () {
    function DataConnected32(elementRef) {
        this.elementRef = elementRef;
    }
    DataConnected32.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 32,
            height: 32,
            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;
            DataConnected32.titleIdCounter++;
            title.setAttribute("id", "data-connected32-" + DataConnected32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "data-connected32-" + DataConnected32.titleIdCounter);
        }
    };
    DataConnected32.titleIdCounter = 0;
    DataConnected32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-data-connected32",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M30 30h-6v-2h4V4h-4V2h6v28z\"></path><path d=\"M24.91 19.59a4.51 4.51 0 0 0-2.66-3.24 4.55 4.55 0 0 0-3.5 0 4.94 4.94 0 0 0-.64.35l-2.81-2.81a4.53 4.53 0 1 0-1.41 1.41l2.81 2.81a4.48 4.48 0 0 0-.61 3.3 4.51 4.51 0 0 0 2.66 3.24 4.55 4.55 0 0 0 3.5 0 4.51 4.51 0 0 0 2.66-3.24 4.65 4.65 0 0 0 0-1.82zM11.5 14a2.5 2.5 0 1 1 2.5-2.5 2.5 2.5 0 0 1-2.5 2.5z\"></path><path d=\"M8 30H2V2h6v2H4v24h4v2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    DataConnected32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    DataConnected32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return DataConnected32;
}());
export { DataConnected32 };
var DataConnected32Module = /** @class */ (function () {
    function DataConnected32Module() {
    }
    DataConnected32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        DataConnected32
                    ],
                    exports: [
                        DataConnected32
                    ]
                },] },
    ];
    return DataConnected32Module;
}());
export { DataConnected32Module };
//# sourceMappingURL=32.js.map