import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Bluetooth20 = /** @class */ (function () {
    function Bluetooth20(elementRef) {
        this.elementRef = elementRef;
    }
    Bluetooth20.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;
            Bluetooth20.titleIdCounter++;
            title.setAttribute("id", "bluetooth20-" + Bluetooth20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "bluetooth20-" + Bluetooth20.titleIdCounter);
        }
    };
    Bluetooth20.titleIdCounter = 0;
    Bluetooth20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-bluetooth20",
                    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=\"M16 30a1.06 1.06 0 0 1-.42-.09A1 1 0 0 1 15 29V18.41L8.41 25 7 23.59 14.59 16 7 8.41 8.41 7 15 13.59V3a1 1 0 0 1 .58-.91 1 1 0 0 1 1.07.15l7 6A1 1 0 0 1 24 9a1 1 0 0 1-.29.75L17.41 16l6.3 6.29A1 1 0 0 1 24 23a1 1 0 0 1-.35.72l-7 6A1 1 0 0 1 16 30zm1-11.59v8.42l4.53-3.89zm0-13.24v8.42l4.53-4.53z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Bluetooth20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Bluetooth20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Bluetooth20;
}());
export { Bluetooth20 };
var Bluetooth20Module = /** @class */ (function () {
    function Bluetooth20Module() {
    }
    Bluetooth20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Bluetooth20
                    ],
                    exports: [
                        Bluetooth20
                    ]
                },] },
    ];
    return Bluetooth20Module;
}());
export { Bluetooth20Module };
//# sourceMappingURL=20.js.map