import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var QBlochSphere32 = /** @class */ (function () {
    function QBlochSphere32(elementRef) {
        this.elementRef = elementRef;
    }
    QBlochSphere32.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;
            QBlochSphere32.titleIdCounter++;
            title.setAttribute("id", "q-bloch-sphere32-" + QBlochSphere32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "q-bloch-sphere32-" + QBlochSphere32.titleIdCounter);
        }
    };
    QBlochSphere32.titleIdCounter = 0;
    QBlochSphere32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-q-bloch-sphere32",
                    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=\"M21.87 7.84l-1.74-1L16 14a2 2 0 1 0 2 2 2 2 0 0 0-.27-1z\"></path><path d=\"M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2zm0 2a12 12 0 0 1 11.17 7.65 25.69 25.69 0 0 0-3.69-1.5l-1 1.77a22.7 22.7 0 0 1 5.41 2.39 11.05 11.05 0 0 1 0 3.38A22.92 22.92 0 0 1 16 21a22.92 22.92 0 0 1-11.87-3.31 11.05 11.05 0 0 1 0-3.38A22.8 22.8 0 0 1 15 11V9a25 25 0 0 0-10.17 2.6A12 12 0 0 1 16 4zm0 24a12 12 0 0 1-11.17-7.65A24.88 24.88 0 0 0 16 23a24.88 24.88 0 0 0 11.17-2.65A12 12 0 0 1 16 28z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    QBlochSphere32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    QBlochSphere32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return QBlochSphere32;
}());
export { QBlochSphere32 };
var QBlochSphere32Module = /** @class */ (function () {
    function QBlochSphere32Module() {
    }
    QBlochSphere32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        QBlochSphere32
                    ],
                    exports: [
                        QBlochSphere32
                    ]
                },] },
    ];
    return QBlochSphere32Module;
}());
export { QBlochSphere32Module };
//# sourceMappingURL=32.js.map