import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ConnectionSignal32 = /** @class */ (function () {
    function ConnectionSignal32(elementRef) {
        this.elementRef = elementRef;
    }
    ConnectionSignal32.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;
            ConnectionSignal32.titleIdCounter++;
            title.setAttribute("id", "connection-signal32-" + ConnectionSignal32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "connection-signal32-" + ConnectionSignal32.titleIdCounter);
        }
    };
    ConnectionSignal32.titleIdCounter = 0;
    ConnectionSignal32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-connection-signal32",
                    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=\"M15 12h2v18h-2zm-3.67 6.22a7 7 0 0 1 0-10.44l1.34 1.49a5 5 0 0 0 0 7.46zm9.34 0l-1.34-1.49a5 5 0 0 0 0-7.46l1.34-1.49a7 7 0 0 1 0 10.44z\"></path><path d=\"M8.4 21.8a11 11 0 0 1 0-17.6l1.2 1.6a9 9 0 0 0 0 14.4zm15.2 0l-1.2-1.6a9 9 0 0 0 0-14.4l1.2-1.6a11 11 0 0 1 0 17.6z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    ConnectionSignal32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ConnectionSignal32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ConnectionSignal32;
}());
export { ConnectionSignal32 };
var ConnectionSignal32Module = /** @class */ (function () {
    function ConnectionSignal32Module() {
    }
    ConnectionSignal32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ConnectionSignal32
                    ],
                    exports: [
                        ConnectionSignal32
                    ]
                },] },
    ];
    return ConnectionSignal32Module;
}());
export { ConnectionSignal32Module };
//# sourceMappingURL=32.js.map