(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@carbon/icon-helpers')) :
    typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@carbon/icon-helpers'], factory) :
    (factory((global.CarbonIconsAngular = {}),global.ng.Core,global.CarbonIconHelpers));
}(this, (function (exports,core,iconHelpers) { 'use strict';

    var QBlochSphere20 = /** @class */ (function () {
        function QBlochSphere20(elementRef) {
            this.elementRef = elementRef;
        }
        QBlochSphere20.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.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;
                QBlochSphere20.titleIdCounter++;
                title.setAttribute("id", "q-bloch-sphere20-" + QBlochSphere20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "q-bloch-sphere20-" + QBlochSphere20.titleIdCounter);
            }
        };
        QBlochSphere20.titleIdCounter = 0;
        QBlochSphere20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-q-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 */
        QBlochSphere20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        QBlochSphere20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return QBlochSphere20;
    }());
    var QBlochSphere20Module = /** @class */ (function () {
        function QBlochSphere20Module() {
        }
        QBlochSphere20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            QBlochSphere20
                        ],
                        exports: [
                            QBlochSphere20
                        ]
                    },] },
        ];
        return QBlochSphere20Module;
    }());

    exports.QBlochSphere20 = QBlochSphere20;
    exports.QBlochSphere20Module = QBlochSphere20Module;

    Object.defineProperty(exports, '__esModule', { value: true });

})));
