import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ConnectionSignal20 = /** @class */ (function () {
    function ConnectionSignal20(elementRef) {
        this.elementRef = elementRef;
    }
    ConnectionSignal20.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 20,
            height: 20,
            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;
            ConnectionSignal20.titleIdCounter++;
            title.setAttribute("id", "connection-signal20-" + ConnectionSignal20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "connection-signal20-" + ConnectionSignal20.titleIdCounter);
        }
    };
    ConnectionSignal20.titleIdCounter = 0;
    ConnectionSignal20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-connection-signal20",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" 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 */
    ConnectionSignal20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ConnectionSignal20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ConnectionSignal20;
}());
export { ConnectionSignal20 };
var ConnectionSignal20Module = /** @class */ (function () {
    function ConnectionSignal20Module() {
    }
    ConnectionSignal20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ConnectionSignal20
                    ],
                    exports: [
                        ConnectionSignal20
                    ]
                },] },
    ];
    return ConnectionSignal20Module;
}());
export { ConnectionSignal20Module };
//# sourceMappingURL=20.js.map