"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var themed_components_1 = __importStar(require("@monstrosity/utilities/themed-components"));
exports.SpinnerContainer = themed_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: inline-block;\n\tfont-size: 0;\n\tpadding: 0;\n"], ["\n\tdisplay: inline-block;\n\tfont-size: 0;\n\tpadding: 0;\n"])));
var Animation = themed_components_1.keyframes(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n    from {transform: scale(0, 0);}\n    to {transform: scale(1, 1);}\n"], ["\n    from {transform: scale(0, 0);}\n    to {transform: scale(1, 1);}\n"])));
exports.Dot = themed_components_1.default.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\tvertical-align: middle;\n\tborder-radius: 100%;\n\tbackground: ", ";\n\tdisplay: inline-block;\n\twidth: 0.625rem;\n\theight: 0.625rem;\n\tmargin: 3px 2px;\n\tanimation: ", " 0.8s linear infinite alternate;\n\tanimation-delay: -", "s;\n"], ["\n\tvertical-align: middle;\n\tborder-radius: 100%;\n\tbackground: ", ";\n\tdisplay: inline-block;\n\twidth: 0.625rem;\n\theight: 0.625rem;\n\tmargin: 3px 2px;\n\tanimation: ", " 0.8s linear infinite alternate;\n\tanimation-delay: -", "s;\n"])), function (_a) {
    var theme = _a.theme;
    return theme.style.colour.highlight;
}, Animation, function (_a) {
    var delay = _a.delay;
    return delay;
});
var Spinner = /** @class */ (function (_super) {
    __extends(Spinner, _super);
    function Spinner() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Spinner.prototype.render = function () {
        return (react_1.default.createElement(exports.SpinnerContainer, null,
            react_1.default.createElement(exports.Dot, { delay: 0.8 }),
            react_1.default.createElement(exports.Dot, { delay: 0.53333 }),
            react_1.default.createElement(exports.Dot, { delay: 0.26666 })));
    };
    return Spinner;
}(react_1.default.Component));
exports.Spinner = Spinner;
var templateObject_1, templateObject_2, templateObject_3;
