![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/html/libs/absol-full/dist/js/ |
Upload File : |
/*** module: node_modules/absol-tutor/js/scriptor/Explain.js ***/ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; require("../../css/explain.css"); var _OOP = _interopRequireDefault(require("absol/src/HTML5/OOP")); var _TutorNameManager = _interopRequireDefault(require("./TutorNameManager")); var _TACData = _interopRequireDefault(require("./TACData")); var _TCommand = require("../engine/TCommand"); var _BaseState = _interopRequireDefault(require("./BaseState")); var _UserBaseAction = _interopRequireDefault(require("./UserBaseAction")); var _TutorEngine = _interopRequireDefault(require("./TutorEngine")); /*** * @extends BaseState * @constructor */ function StateShowMessage() { _BaseState.default.apply(this, arguments); } _OOP.default.mixClass(StateShowMessage, _BaseState.default); StateShowMessage.prototype.onStart = function () { this.command.showTooltip(this.command.elt, this.args.text); var until = this.args.until; if (!until) { this.goto('finish'); return; } if (until.depthClone) { until.depthClone().exec().then(this.goto.bind(this, 'finish')); } else if (until.exec) { until.depthClone().exec().then(this.goto.bind(this, 'finish')); } else if (until.exec) { until.exec().then(this.goto.bind(this, 'finish')); } else if (until.then) { until.then(this.goto.bind(this, 'finish')); } else { this.goto('finish'); } }; /*** * @extends {UserBaseAction} */ function Explain() { _UserBaseAction.default.apply(this, arguments); } (0, _TCommand.inheritCommand)(Explain, _UserBaseAction.default); Explain.prototype.argNames = ['eltPath', 'text', 'until']; Explain.prototype.name = 'explain'; Explain.prototype.stateClasses.user_begin = StateShowMessage; _TutorEngine.default.installClass(Explain); _TutorNameManager.default.addAsync('explain'); _TACData.default.define('explain', { type: 'function', args: [{ name: 'eltPath', type: '(string|AElement)' }, { name: 'text', type: 'MarkdownString' }, { name: 'until', type: 'Trigger' }] }); var _default = Explain; exports.default = _default;