import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WirelessCheckout20 = /** @class */ (function () {
    function WirelessCheckout20(elementRef) {
        this.elementRef = elementRef;
    }
    WirelessCheckout20.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;
            WirelessCheckout20.titleIdCounter++;
            title.setAttribute("id", "wireless-checkout20-" + WirelessCheckout20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "wireless-checkout20-" + WirelessCheckout20.titleIdCounter);
        }
    };
    WirelessCheckout20.titleIdCounter = 0;
    WirelessCheckout20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-wireless-checkout20",
                    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=\"M18 28v-2a10 10 0 0 0 10-10h2a12 12 0 0 1-12 12z\"></path><path d=\"M18 23v-2a5 5 0 0 0 5-5h2a7 7 0 0 1-7 7z\"></path><path d=\"M27 11h-6V7a3 3 0 0 0-3-3h-6a3 3 0 0 0-3 3v4H3a1 1 0 0 0-1 1.15L3.88 24.3a2 2 0 0 0 2 1.7H15v-2H5.86L4.17 13H27zM11 7a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4h-8z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WirelessCheckout20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WirelessCheckout20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WirelessCheckout20;
}());
export { WirelessCheckout20 };
var WirelessCheckout20Module = /** @class */ (function () {
    function WirelessCheckout20Module() {
    }
    WirelessCheckout20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WirelessCheckout20
                    ],
                    exports: [
                        WirelessCheckout20
                    ]
                },] },
    ];
    return WirelessCheckout20Module;
}());
export { WirelessCheckout20Module };
//# sourceMappingURL=20.js.map