"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var ProgressBar_1 = require("../commons/ProgressBar");
var getStyleForTopLevelComponent_1 = require("../../core/utils/getStyleForTopLevelComponent");
var classFor_1 = require("../utils/classFor");
var Spinner_1 = require("../commons/Spinner");
require("../styles/base/waitingFor.sass");
require("../styles/themes/Legacy/waitingForThemeLegacy.sass");
require("../styles/themes/Jarvis/waitingForThemeJarvis.sass");
require("../styles/themes/UniLogin/waitingForThemeUniLogin.sass");
exports.WaitingFor = function (_a) {
    var action = _a.action, description = _a.description, className = _a.className;
    return (react_1.default.createElement("div", { className: classFor_1.useClassFor('waitingfor') },
        react_1.default.createElement("div", { className: getStyleForTopLevelComponent_1.getStyleForTopLevelComponent(className) },
            react_1.default.createElement("div", { className: classFor_1.classForComponent('waitingfor-action-title-box') },
                action && react_1.default.createElement("h1", { className: classFor_1.classForComponent('waitingfor-action-title') },
                    react_1.default.createElement(Spinner_1.Spinner, null),
                    action),
                description && react_1.default.createElement("p", { className: classFor_1.classForComponent('waitingfor-action-description') }, description)),
            react_1.default.createElement("div", { className: classFor_1.classForComponent('waitingfor-modal-pending-img') }),
            react_1.default.createElement("div", { className: classFor_1.classForComponent('waitingfor-modal-pending-section') },
                react_1.default.createElement(ProgressBar_1.ProgressBar, { className: classFor_1.classForComponent('waitingfor-pending-bar') })))));
};
//# sourceMappingURL=WaitingFor.js.map