"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DialogAction = void 0;
var tslib_1 = require("tslib");
var Action_1 = require("./Action");
/**
 * 打开弹窗动作
 *
 * @export
 * @class DialogAction
 * @implements {Action}
 */
var DialogAction = /** @class */ (function () {
    function DialogAction() {
    }
    DialogAction.prototype.run = function (action, renderer, event) {
        return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
            var store;
            return (0, tslib_1.__generator)(this, function (_a) {
                store = renderer.props.store;
                store.setCurrentAction(action);
                store.openDialog(action.args);
                return [2 /*return*/];
            });
        });
    };
    return DialogAction;
}());
exports.DialogAction = DialogAction;
(0, Action_1.registerAction)('dialog', new DialogAction());
//# sourceMappingURL=./actions/DialogAction.js.map
