import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ResearchBlochSphere20 = /** @class */ (function () {
    function ResearchBlochSphere20(elementRef) {
        this.elementRef = elementRef;
    }
    ResearchBlochSphere20.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;
            ResearchBlochSphere20.titleIdCounter++;
            title.setAttribute("id", "research-bloch-sphere20-" + ResearchBlochSphere20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "research-bloch-sphere20-" + ResearchBlochSphere20.titleIdCounter);
        }
    };
    ResearchBlochSphere20.titleIdCounter = 0;
    ResearchBlochSphere20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-research-bloch-sphere20",
                    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=\"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 */
    ResearchBlochSphere20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ResearchBlochSphere20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ResearchBlochSphere20;
}());
export { ResearchBlochSphere20 };
var ResearchBlochSphere20Module = /** @class */ (function () {
    function ResearchBlochSphere20Module() {
    }
    ResearchBlochSphere20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ResearchBlochSphere20
                    ],
                    exports: [
                        ResearchBlochSphere20
                    ]
                },] },
    ];
    return ResearchBlochSphere20Module;
}());
export { ResearchBlochSphere20Module };
//# sourceMappingURL=20.js.map