| 1 |
/*! elementor - v3.24.0 - 23-09-2024 */ |
| 2 |
/******/ (() => { // webpackBootstrap |
| 3 |
/******/ var __webpack_modules__ = ({ |
| 4 |
|
| 5 |
/***/ "../assets/dev/js/editor/command-bases/command-container-base.js": |
| 6 |
/*!***********************************************************************!*\ |
| 7 |
!*** ../assets/dev/js/editor/command-bases/command-container-base.js ***! |
| 8 |
\***********************************************************************/ |
| 9 |
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 10 |
|
| 11 |
"use strict"; |
| 12 |
|
| 13 |
|
| 14 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 15 |
Object.defineProperty(exports, "__esModule", ({ |
| 16 |
value: true |
| 17 |
})); |
| 18 |
exports["default"] = void 0; |
| 19 |
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 20 |
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 21 |
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 22 |
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 23 |
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 24 |
var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); |
| 25 |
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } |
| 26 |
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } |
| 27 |
/** |
| 28 |
* @name $e.modules.editor.CommandContainerBase |
| 29 |
*/ |
| 30 |
var CommandContainerBase = /*#__PURE__*/function (_CommandBase) { |
| 31 |
(0, _inherits2.default)(CommandContainerBase, _CommandBase); |
| 32 |
var _super = _createSuper(CommandContainerBase); |
| 33 |
function CommandContainerBase() { |
| 34 |
(0, _classCallCheck2.default)(this, CommandContainerBase); |
| 35 |
return _super.apply(this, arguments); |
| 36 |
} |
| 37 |
(0, _createClass2.default)(CommandContainerBase, [{ |
| 38 |
key: "requireContainer", |
| 39 |
value: |
| 40 |
/** |
| 41 |
* Function requireContainer(). |
| 42 |
* |
| 43 |
* Validate `arg.container` & `arg.containers`. |
| 44 |
* |
| 45 |
* @param {{}} args |
| 46 |
* |
| 47 |
* @throws {Error} |
| 48 |
*/ |
| 49 |
function requireContainer() { |
| 50 |
var _this = this; |
| 51 |
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args; |
| 52 |
if (!args.container && !args.containers) { |
| 53 |
throw Error('container or containers are required.'); |
| 54 |
} |
| 55 |
if (args.container && args.containers) { |
| 56 |
throw Error('container and containers cannot go together please select one of them.'); |
| 57 |
} |
| 58 |
var containers = args.containers || [args.container]; |
| 59 |
containers.forEach(function (container) { |
| 60 |
_this.requireArgumentInstance('container', elementorModules.editor.Container, { |
| 61 |
container: container |
| 62 |
}); |
| 63 |
}); |
| 64 |
} |
| 65 |
}], [{ |
| 66 |
key: "getInstanceType", |
| 67 |
value: function getInstanceType() { |
| 68 |
return 'CommandContainerBase'; |
| 69 |
} |
| 70 |
}]); |
| 71 |
return CommandContainerBase; |
| 72 |
}(_commandBase.default); |
| 73 |
exports["default"] = CommandContainerBase; |
| 74 |
|
| 75 |
/***/ }), |
| 76 |
|
| 77 |
/***/ "../assets/dev/js/editor/command-bases/command-container-internal-base.js": |
| 78 |
/*!********************************************************************************!*\ |
| 79 |
!*** ../assets/dev/js/editor/command-bases/command-container-internal-base.js ***! |
| 80 |
\********************************************************************************/ |
| 81 |
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 82 |
|
| 83 |
"use strict"; |
| 84 |
|
| 85 |
|
| 86 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 87 |
Object.defineProperty(exports, "__esModule", ({ |
| 88 |
value: true |
| 89 |
})); |
| 90 |
exports["default"] = void 0; |
| 91 |
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 92 |
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 93 |
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 94 |
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 95 |
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 96 |
var _commandContainerBase = _interopRequireDefault(__webpack_require__(/*! ./command-container-base */ "../assets/dev/js/editor/command-bases/command-container-base.js")); |
| 97 |
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } |
| 98 |
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } |
| 99 |
/** |
| 100 |
* @name $e.modules.editor.CommandContainerInternalBase |
| 101 |
*/ |
| 102 |
var CommandContainerInternalBase = /*#__PURE__*/function (_CommandContainerBase) { |
| 103 |
(0, _inherits2.default)(CommandContainerInternalBase, _CommandContainerBase); |
| 104 |
var _super = _createSuper(CommandContainerInternalBase); |
| 105 |
function CommandContainerInternalBase(args) { |
| 106 |
(0, _classCallCheck2.default)(this, CommandContainerInternalBase); |
| 107 |
return _super.call(this, args, $e.commandsInternal); |
| 108 |
} |
| 109 |
(0, _createClass2.default)(CommandContainerInternalBase, null, [{ |
| 110 |
key: "getInstanceType", |
| 111 |
value: function getInstanceType() { |
| 112 |
return 'CommandContainerInternalBase'; |
| 113 |
} |
| 114 |
}]); |
| 115 |
return CommandContainerInternalBase; |
| 116 |
}(_commandContainerBase.default); |
| 117 |
exports["default"] = CommandContainerInternalBase; |
| 118 |
|
| 119 |
/***/ }), |
| 120 |
|
| 121 |
/***/ "../assets/dev/js/editor/document/command-bases/command-history-base.js": |
| 122 |
/*!******************************************************************************!*\ |
| 123 |
!*** ../assets/dev/js/editor/document/command-bases/command-history-base.js ***! |
| 124 |
\******************************************************************************/ |
| 125 |
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 126 |
|
| 127 |
"use strict"; |
| 128 |
|
| 129 |
|
| 130 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 131 |
Object.defineProperty(exports, "__esModule", ({ |
| 132 |
value: true |
| 133 |
})); |
| 134 |
exports["default"] = void 0; |
| 135 |
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 136 |
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 137 |
var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); |
| 138 |
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 139 |
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 140 |
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 141 |
var _commandContainerBase = _interopRequireDefault(__webpack_require__(/*! elementor-editor/command-bases/command-container-base */ "../assets/dev/js/editor/command-bases/command-container-base.js")); |
| 142 |
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } |
| 143 |
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } |
| 144 |
/** |
| 145 |
* @name $e.modules.editor.document.CommandHistoryBase |
| 146 |
*/ |
| 147 |
var CommandHistoryBase = /*#__PURE__*/function (_CommandContainerBase) { |
| 148 |
(0, _inherits2.default)(CommandHistoryBase, _CommandContainerBase); |
| 149 |
var _super = _createSuper(CommandHistoryBase); |
| 150 |
function CommandHistoryBase() { |
| 151 |
(0, _classCallCheck2.default)(this, CommandHistoryBase); |
| 152 |
return _super.apply(this, arguments); |
| 153 |
} |
| 154 |
(0, _createClass2.default)(CommandHistoryBase, [{ |
| 155 |
key: "initialize", |
| 156 |
value: function initialize() { |
| 157 |
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 158 |
var _args$options = args.options, |
| 159 |
options = _args$options === void 0 ? {} : _args$options, |
| 160 |
_options$useHistory = options.useHistory, |
| 161 |
useHistory = _options$useHistory === void 0 ? true : _options$useHistory; |
| 162 |
if (useHistory) { |
| 163 |
/** |
| 164 |
* Get History from child command. |
| 165 |
* |
| 166 |
* @type {{}|boolean} |
| 167 |
*/ |
| 168 |
this.history = this.getHistory(args); |
| 169 |
|
| 170 |
/** |
| 171 |
* @type {number|boolean} |
| 172 |
*/ |
| 173 |
this.historyId = false; |
| 174 |
} |
| 175 |
} |
| 176 |
|
| 177 |
// eslint-disable-next-line jsdoc/require-returns-check |
| 178 |
/** |
| 179 |
* Function getHistory(). |
| 180 |
* |
| 181 |
* Get history object from child, do nothing if it false. |
| 182 |
* |
| 183 |
* @param {*} [args={}] |
| 184 |
* |
| 185 |
* @return {({}|boolean)} history object |
| 186 |
*/ |
| 187 |
}, { |
| 188 |
key: "getHistory", |
| 189 |
value: function getHistory() { |
| 190 |
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 191 |
// eslint-disable-line no-unused-vars |
| 192 |
elementorModules.ForceMethodImplementation(); |
| 193 |
} |
| 194 |
|
| 195 |
/** |
| 196 |
* Function isHistoryActive(). |
| 197 |
* |
| 198 |
* Return `elementor.documents.getCurrent().history.getActive()`. |
| 199 |
* |
| 200 |
* @return {boolean} is history active |
| 201 |
*/ |
| 202 |
}, { |
| 203 |
key: "isHistoryActive", |
| 204 |
value: function isHistoryActive() { |
| 205 |
return elementor.documents.getCurrent().history.getActive(); |
| 206 |
} |
| 207 |
}, { |
| 208 |
key: "onBeforeRun", |
| 209 |
value: function onBeforeRun(args) { |
| 210 |
(0, _get2.default)((0, _getPrototypeOf2.default)(CommandHistoryBase.prototype), "onBeforeRun", this).call(this, args); |
| 211 |
if (this.history && this.isHistoryActive()) { |
| 212 |
this.historyId = $e.internal('document/history/start-log', this.history); |
| 213 |
} |
| 214 |
} |
| 215 |
}, { |
| 216 |
key: "onAfterRun", |
| 217 |
value: function onAfterRun(args, result) { |
| 218 |
(0, _get2.default)((0, _getPrototypeOf2.default)(CommandHistoryBase.prototype), "onAfterRun", this).call(this, args, result); |
| 219 |
if (this.history && this.isHistoryActive()) { |
| 220 |
$e.internal('document/history/end-log', { |
| 221 |
id: this.historyId |
| 222 |
}); |
| 223 |
} |
| 224 |
} |
| 225 |
}, { |
| 226 |
key: "onAfterApply", |
| 227 |
value: function onAfterApply() { |
| 228 |
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 229 |
var result = arguments.length > 1 ? arguments[1] : undefined; |
| 230 |
(0, _get2.default)((0, _getPrototypeOf2.default)(CommandHistoryBase.prototype), "onAfterApply", this).call(this, args, result); |
| 231 |
if (this.isDataChanged()) { |
| 232 |
$e.internal('document/save/set-is-modified', { |
| 233 |
status: true |
| 234 |
}); |
| 235 |
} |
| 236 |
} |
| 237 |
}, { |
| 238 |
key: "onCatchApply", |
| 239 |
value: function onCatchApply(e) { |
| 240 |
// Rollback history on failure. |
| 241 |
if (e instanceof $e.modules.HookBreak && this.historyId) { |
| 242 |
$e.internal('document/history/delete-log', { |
| 243 |
id: this.historyId |
| 244 |
}); |
| 245 |
} |
| 246 |
(0, _get2.default)((0, _getPrototypeOf2.default)(CommandHistoryBase.prototype), "onCatchApply", this).call(this, e); |
| 247 |
} |
| 248 |
}, { |
| 249 |
key: "isDataChanged", |
| 250 |
value: function isDataChanged() { |
| 251 |
// All the commands who use history are commands that changing the data. |
| 252 |
return true; |
| 253 |
} |
| 254 |
}], [{ |
| 255 |
key: "getInstanceType", |
| 256 |
value: function getInstanceType() { |
| 257 |
return 'CommandHistoryBase'; |
| 258 |
} |
| 259 |
}]); |
| 260 |
return CommandHistoryBase; |
| 261 |
}(_commandContainerBase.default); |
| 262 |
exports["default"] = CommandHistoryBase; |
| 263 |
|
| 264 |
/***/ }), |
| 265 |
|
| 266 |
/***/ "../assets/dev/js/editor/document/command-bases/command-history-debounce-base.js": |
| 267 |
/*!***************************************************************************************!*\ |
| 268 |
!*** ../assets/dev/js/editor/document/command-bases/command-history-debounce-base.js ***! |
| 269 |
\***************************************************************************************/ |
| 270 |
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 271 |
|
| 272 |
"use strict"; |
| 273 |
|
| 274 |
|
| 275 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 276 |
Object.defineProperty(exports, "__esModule", ({ |
| 277 |
value: true |
| 278 |
})); |
| 279 |
exports.getDefaultDebounceDelay = exports["default"] = exports.DEFAULT_DEBOUNCE_DELAY = void 0; |
| 280 |
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 281 |
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 282 |
var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); |
| 283 |
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 284 |
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 285 |
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 286 |
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 287 |
var _commandHistoryBase = _interopRequireDefault(__webpack_require__(/*! ./command-history-base */ "../assets/dev/js/editor/document/command-bases/command-history-base.js")); |
| 288 |
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } |
| 289 |
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } |
| 290 |
var DEFAULT_DEBOUNCE_DELAY = 800; |
| 291 |
|
| 292 |
/** |
| 293 |
* Function getDefaultDebounceDelay(). |
| 294 |
* |
| 295 |
* Returns default debounce delay time, if exists in config override. |
| 296 |
* |
| 297 |
* @return {number} default debounce delay time |
| 298 |
*/ |
| 299 |
exports.DEFAULT_DEBOUNCE_DELAY = DEFAULT_DEBOUNCE_DELAY; |
| 300 |
var getDefaultDebounceDelay = function getDefaultDebounceDelay() { |
| 301 |
var result = DEFAULT_DEBOUNCE_DELAY; |
| 302 |
if (elementor.config.document && undefined !== elementor.config.document.debounceDelay) { |
| 303 |
result = elementor.config.document.debounceDelay; |
| 304 |
} |
| 305 |
return result; |
| 306 |
}; |
| 307 |
|
| 308 |
/** |
| 309 |
* @name $e.modules.editor.document.CommandHistoryDebounceBase |
| 310 |
*/ |
| 311 |
exports.getDefaultDebounceDelay = getDefaultDebounceDelay; |
| 312 |
var CommandHistoryDebounceBase = /*#__PURE__*/function (_CommandHistoryBase) { |
| 313 |
(0, _inherits2.default)(CommandHistoryDebounceBase, _CommandHistoryBase); |
| 314 |
var _super = _createSuper(CommandHistoryDebounceBase); |
| 315 |
function CommandHistoryDebounceBase() { |
| 316 |
(0, _classCallCheck2.default)(this, CommandHistoryDebounceBase); |
| 317 |
return _super.apply(this, arguments); |
| 318 |
} |
| 319 |
(0, _createClass2.default)(CommandHistoryDebounceBase, [{ |
| 320 |
key: "initialize", |
| 321 |
value: function initialize(args) { |
| 322 |
var _args$options = args.options, |
| 323 |
options = _args$options === void 0 ? {} : _args$options; |
| 324 |
(0, _get2.default)((0, _getPrototypeOf2.default)(CommandHistoryDebounceBase.prototype), "initialize", this).call(this, args); |
| 325 |
if (!this.constructor.debounce) { |
| 326 |
this.constructor.debounce = _.debounce(function (fn) { |
| 327 |
return fn(); |
| 328 |
}, getDefaultDebounceDelay()); |
| 329 |
} |
| 330 |
|
| 331 |
// If its head command, and not called within another command. |
| 332 |
if (1 === $e.commands.currentTrace.length || options.debounce) { |
| 333 |
this.isDebounceRequired = true; |
| 334 |
} |
| 335 |
} |
| 336 |
}, { |
| 337 |
key: "onBeforeRun", |
| 338 |
value: function onBeforeRun(args) { |
| 339 |
$e.modules.CommandBase.prototype.onBeforeRun.call(this, args); |
| 340 |
if (this.history && this.isHistoryActive()) { |
| 341 |
$e.internal('document/history/add-transaction', this.history); |
| 342 |
} |
| 343 |
} |
| 344 |
}, { |
| 345 |
key: "onAfterRun", |
| 346 |
value: function onAfterRun(args, result) { |
| 347 |
$e.modules.CommandBase.prototype.onAfterRun.call(this, args, result); |
| 348 |
if (this.isHistoryActive()) { |
| 349 |
if (this.isDebounceRequired) { |
| 350 |
this.constructor.debounce(function () { |
| 351 |
return $e.internal('document/history/end-transaction'); |
| 352 |
}); |
| 353 |
} else { |
| 354 |
$e.internal('document/history/end-transaction'); |
| 355 |
} |
| 356 |
} |
| 357 |
} |
| 358 |
}, { |
| 359 |
key: "onCatchApply", |
| 360 |
value: function onCatchApply(e) { |
| 361 |
$e.modules.CommandBase.prototype.onCatchApply.call(this, e); |
| 362 |
|
| 363 |
// Rollback history on failure. |
| 364 |
if (e instanceof $e.modules.HookBreak && this.history) { |
| 365 |
if (this.isDebounceRequired) { |
| 366 |
// `clear-transaction` is under debounce, because it should `clear-transaction` after `end-transaction`. |
| 367 |
this.constructor.debounce(function () { |
| 368 |
return $e.internal('document/history/clear-transaction'); |
| 369 |
}); |
| 370 |
} else { |
| 371 |
$e.internal('document/history/clear-transaction'); |
| 372 |
} |
| 373 |
} |
| 374 |
} |
| 375 |
}], [{ |
| 376 |
key: "getInstanceType", |
| 377 |
value: function getInstanceType() { |
| 378 |
return 'CommandHistoryDebounceBase'; |
| 379 |
} |
| 380 |
}]); |
| 381 |
return CommandHistoryDebounceBase; |
| 382 |
}(_commandHistoryBase.default); |
| 383 |
exports["default"] = CommandHistoryDebounceBase; |
| 384 |
/** |
| 385 |
* Function debounce(). |
| 386 |
* |
| 387 |
* Will debounce every function you pass in, at the same debounce flow. |
| 388 |
* |
| 389 |
* @param {Function} |
| 390 |
*/ |
| 391 |
(0, _defineProperty2.default)(CommandHistoryDebounceBase, "debounce", undefined); |
| 392 |
|
| 393 |
/***/ }), |
| 394 |
|
| 395 |
/***/ "../assets/dev/js/editor/utils/is-instanceof.js": |
| 396 |
/*!******************************************************!*\ |
| 397 |
!*** ../assets/dev/js/editor/utils/is-instanceof.js ***! |
| 398 |
\******************************************************/ |
| 399 |
/***/ ((__unused_webpack_module, exports) => { |
| 400 |
|
| 401 |
"use strict"; |
| 402 |
|
| 403 |
|
| 404 |
Object.defineProperty(exports, "__esModule", ({ |
| 405 |
value: true |
| 406 |
})); |
| 407 |
exports["default"] = void 0; |
| 408 |
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } |
| 409 |
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } |
| 410 |
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } |
| 411 |
/** |
| 412 |
* Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved |
| 413 |
* object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can |
| 414 |
* check whether it's instanceof by using the objects constructor and prototype names. |
| 415 |
* |
| 416 |
* @param object |
| 417 |
* @param constructors |
| 418 |
* @return {boolean} |
| 419 |
*/ |
| 420 |
var _default = function _default(object, constructors) { |
| 421 |
constructors = Array.isArray(constructors) ? constructors : [constructors]; |
| 422 |
var _iterator = _createForOfIteratorHelper(constructors), |
| 423 |
_step; |
| 424 |
try { |
| 425 |
for (_iterator.s(); !(_step = _iterator.n()).done;) { |
| 426 |
var _constructor = _step.value; |
| 427 |
if (object.constructor.name === _constructor.prototype[Symbol.toStringTag]) { |
| 428 |
return true; |
| 429 |
} |
| 430 |
} |
| 431 |
} catch (err) { |
| 432 |
_iterator.e(err); |
| 433 |
} finally { |
| 434 |
_iterator.f(); |
| 435 |
} |
| 436 |
return false; |
| 437 |
}; |
| 438 |
exports["default"] = _default; |
| 439 |
|
| 440 |
/***/ }), |
| 441 |
|
| 442 |
/***/ "../assets/dev/js/modules/imports/args-object.js": |
| 443 |
/*!*******************************************************!*\ |
| 444 |
!*** ../assets/dev/js/modules/imports/args-object.js ***! |
| 445 |
\*******************************************************/ |
| 446 |
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 447 |
|
| 448 |
"use strict"; |
| 449 |
|
| 450 |
|
| 451 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 452 |
Object.defineProperty(exports, "__esModule", ({ |
| 453 |
value: true |
| 454 |
})); |
| 455 |
exports["default"] = void 0; |
| 456 |
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); |
| 457 |
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 458 |
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 459 |
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 460 |
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 461 |
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 462 |
var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js")); |
| 463 |
var _isInstanceof = _interopRequireDefault(__webpack_require__(/*! ../../editor/utils/is-instanceof */ "../assets/dev/js/editor/utils/is-instanceof.js")); |
| 464 |
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } |
| 465 |
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } |
| 466 |
var ArgsObject = /*#__PURE__*/function (_InstanceType) { |
| 467 |
(0, _inherits2.default)(ArgsObject, _InstanceType); |
| 468 |
var _super = _createSuper(ArgsObject); |
| 469 |
/** |
| 470 |
* Function constructor(). |
| 471 |
* |
| 472 |
* Create ArgsObject. |
| 473 |
* |
| 474 |
* @param {{}} args |
| 475 |
*/ |
| 476 |
function ArgsObject(args) { |
| 477 |
var _this; |
| 478 |
(0, _classCallCheck2.default)(this, ArgsObject); |
| 479 |
_this = _super.call(this); |
| 480 |
_this.args = args; |
| 481 |
return _this; |
| 482 |
} |
| 483 |
|
| 484 |
/** |
| 485 |
* Function requireArgument(). |
| 486 |
* |
| 487 |
* Validate property in args. |
| 488 |
* |
| 489 |
* @param {string} property |
| 490 |
* @param {{}} args |
| 491 |
* |
| 492 |
* @throws {Error} |
| 493 |
*/ |
| 494 |
(0, _createClass2.default)(ArgsObject, [{ |
| 495 |
key: "requireArgument", |
| 496 |
value: function requireArgument(property) { |
| 497 |
var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args; |
| 498 |
if (!Object.prototype.hasOwnProperty.call(args, property)) { |
| 499 |
throw Error("".concat(property, " is required.")); |
| 500 |
} |
| 501 |
} |
| 502 |
|
| 503 |
/** |
| 504 |
* Function requireArgumentType(). |
| 505 |
* |
| 506 |
* Validate property in args using `type === typeof(args.whatever)`. |
| 507 |
* |
| 508 |
* @param {string} property |
| 509 |
* @param {string} type |
| 510 |
* @param {{}} args |
| 511 |
* |
| 512 |
* @throws {Error} |
| 513 |
*/ |
| 514 |
}, { |
| 515 |
key: "requireArgumentType", |
| 516 |
value: function requireArgumentType(property, type) { |
| 517 |
var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; |
| 518 |
this.requireArgument(property, args); |
| 519 |
if ((0, _typeof2.default)(args[property]) !== type) { |
| 520 |
throw Error("".concat(property, " invalid type: ").concat(type, ".")); |
| 521 |
} |
| 522 |
} |
| 523 |
|
| 524 |
/** |
| 525 |
* Function requireArgumentInstance(). |
| 526 |
* |
| 527 |
* Validate property in args using `args.whatever instanceof instance`. |
| 528 |
* |
| 529 |
* @param {string} property |
| 530 |
* @param {*} instance |
| 531 |
* @param {{}} args |
| 532 |
* |
| 533 |
* @throws {Error} |
| 534 |
*/ |
| 535 |
}, { |
| 536 |
key: "requireArgumentInstance", |
| 537 |
value: function requireArgumentInstance(property, instance) { |
| 538 |
var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; |
| 539 |
this.requireArgument(property, args); |
| 540 |
if (!(args[property] instanceof instance) && !(0, _isInstanceof.default)(args[property], instance)) { |
| 541 |
throw Error("".concat(property, " invalid instance.")); |
| 542 |
} |
| 543 |
} |
| 544 |
|
| 545 |
/** |
| 546 |
* Function requireArgumentConstructor(). |
| 547 |
* |
| 548 |
* Validate property in args using `type === args.whatever.constructor`. |
| 549 |
* |
| 550 |
* @param {string} property |
| 551 |
* @param {*} type |
| 552 |
* @param {{}} args |
| 553 |
* |
| 554 |
* @throws {Error} |
| 555 |
*/ |
| 556 |
}, { |
| 557 |
key: "requireArgumentConstructor", |
| 558 |
value: function requireArgumentConstructor(property, type) { |
| 559 |
var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; |
| 560 |
this.requireArgument(property, args); |
| 561 |
|
| 562 |
// Note: Converting the constructor to string in order to avoid equation issues |
| 563 |
// due to different memory addresses between iframes (window.Object !== window.top.Object). |
| 564 |
if (args[property].constructor.toString() !== type.prototype.constructor.toString()) { |
| 565 |
throw Error("".concat(property, " invalid constructor type.")); |
| 566 |
} |
| 567 |
} |
| 568 |
}], [{ |
| 569 |
key: "getInstanceType", |
| 570 |
value: function getInstanceType() { |
| 571 |
return 'ArgsObject'; |
| 572 |
} |
| 573 |
}]); |
| 574 |
return ArgsObject; |
| 575 |
}(_instanceType.default); |
| 576 |
exports["default"] = ArgsObject; |
| 577 |
|
| 578 |
/***/ }), |
| 579 |
|
| 580 |
/***/ "../assets/dev/js/modules/imports/instance-type.js": |
| 581 |
/*!*********************************************************!*\ |
| 582 |
!*** ../assets/dev/js/modules/imports/instance-type.js ***! |
| 583 |
\*********************************************************/ |
| 584 |
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 585 |
|
| 586 |
"use strict"; |
| 587 |
|
| 588 |
|
| 589 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 590 |
Object.defineProperty(exports, "__esModule", ({ |
| 591 |
value: true |
| 592 |
})); |
| 593 |
exports["default"] = void 0; |
| 594 |
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 595 |
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 596 |
var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); |
| 597 |
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 598 |
var InstanceType = /*#__PURE__*/function (_Symbol$hasInstance) { |
| 599 |
function InstanceType() { |
| 600 |
var _this = this; |
| 601 |
(0, _classCallCheck2.default)(this, InstanceType); |
| 602 |
// Since anonymous classes sometimes do not get validated by babel, do it manually. |
| 603 |
var target = this instanceof InstanceType ? this.constructor : void 0; |
| 604 |
var prototypes = []; |
| 605 |
while (target.__proto__ && target.__proto__.name) { |
| 606 |
prototypes.push(target.__proto__); |
| 607 |
target = target.__proto__; |
| 608 |
} |
| 609 |
prototypes.reverse().forEach(function (proto) { |
| 610 |
return _this instanceof proto; |
| 611 |
}); |
| 612 |
} |
| 613 |
(0, _createClass2.default)(InstanceType, null, [{ |
| 614 |
key: _Symbol$hasInstance, |
| 615 |
value: function value(target) { |
| 616 |
/** |
| 617 |
* This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class |
| 618 |
* its give's opportunity to mange capabilities of instanceOf operator. |
| 619 |
* saving current class each time will give option later to handle instanceOf manually. |
| 620 |
*/ |
| 621 |
var result = (0, _get2.default)((0, _getPrototypeOf2.default)(InstanceType), Symbol.hasInstance, this).call(this, target); |
| 622 |
|
| 623 |
// Act normal when validate a class, which does not have instance type. |
| 624 |
if (target && !target.constructor.getInstanceType) { |
| 625 |
return result; |
| 626 |
} |
| 627 |
if (target) { |
| 628 |
if (!target.instanceTypes) { |
| 629 |
target.instanceTypes = []; |
| 630 |
} |
| 631 |
if (!result) { |
| 632 |
if (this.getInstanceType() === target.constructor.getInstanceType()) { |
| 633 |
result = true; |
| 634 |
} |
| 635 |
} |
| 636 |
if (result) { |
| 637 |
var name = this.getInstanceType === InstanceType.getInstanceType ? 'BaseInstanceType' : this.getInstanceType(); |
| 638 |
if (-1 === target.instanceTypes.indexOf(name)) { |
| 639 |
target.instanceTypes.push(name); |
| 640 |
} |
| 641 |
} |
| 642 |
} |
| 643 |
if (!result && target) { |
| 644 |
// Check if the given 'target', is instance of known types. |
| 645 |
result = target.instanceTypes && Array.isArray(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType()); |
| 646 |
} |
| 647 |
return result; |
| 648 |
} |
| 649 |
}, { |
| 650 |
key: "getInstanceType", |
| 651 |
value: function getInstanceType() { |
| 652 |
elementorModules.ForceMethodImplementation(); |
| 653 |
} |
| 654 |
}]); |
| 655 |
return InstanceType; |
| 656 |
}(Symbol.hasInstance); |
| 657 |
exports["default"] = InstanceType; |
| 658 |
|
| 659 |
/***/ }), |
| 660 |
|
| 661 |
/***/ "../modules/web-cli/assets/js/modules/command-base.js": |
| 662 |
/*!************************************************************!*\ |
| 663 |
!*** ../modules/web-cli/assets/js/modules/command-base.js ***! |
| 664 |
\************************************************************/ |
| 665 |
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 666 |
|
| 667 |
"use strict"; |
| 668 |
|
| 669 |
|
| 670 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 671 |
Object.defineProperty(exports, "__esModule", ({ |
| 672 |
value: true |
| 673 |
})); |
| 674 |
exports["default"] = void 0; |
| 675 |
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 676 |
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 677 |
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 678 |
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 679 |
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 680 |
var _commandInfra = _interopRequireDefault(__webpack_require__(/*! ./command-infra */ "../modules/web-cli/assets/js/modules/command-infra.js")); |
| 681 |
var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js")); |
| 682 |
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } |
| 683 |
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } |
| 684 |
/** |
| 685 |
* @name $e.modules.CommandBase |
| 686 |
*/ |
| 687 |
var CommandBase = /*#__PURE__*/function (_CommandInfra) { |
| 688 |
(0, _inherits2.default)(CommandBase, _CommandInfra); |
| 689 |
var _super = _createSuper(CommandBase); |
| 690 |
function CommandBase() { |
| 691 |
(0, _classCallCheck2.default)(this, CommandBase); |
| 692 |
return _super.apply(this, arguments); |
| 693 |
} |
| 694 |
(0, _createClass2.default)(CommandBase, [{ |
| 695 |
key: "onBeforeRun", |
| 696 |
value: function onBeforeRun() { |
| 697 |
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 698 |
$e.hooks.runUIBefore(this.command, args); |
| 699 |
} |
| 700 |
}, { |
| 701 |
key: "onAfterRun", |
| 702 |
value: function onAfterRun() { |
| 703 |
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 704 |
var result = arguments.length > 1 ? arguments[1] : undefined; |
| 705 |
$e.hooks.runUIAfter(this.command, args, result); |
| 706 |
} |
| 707 |
}, { |
| 708 |
key: "onBeforeApply", |
| 709 |
value: function onBeforeApply() { |
| 710 |
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 711 |
$e.hooks.runDataDependency(this.command, args); |
| 712 |
} |
| 713 |
}, { |
| 714 |
key: "onAfterApply", |
| 715 |
value: function onAfterApply() { |
| 716 |
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 717 |
var result = arguments.length > 1 ? arguments[1] : undefined; |
| 718 |
$e.hooks.runDataAfter(this.command, args, result); |
| 719 |
} |
| 720 |
}, { |
| 721 |
key: "onCatchApply", |
| 722 |
value: function onCatchApply(e) { |
| 723 |
this.runCatchHooks(e); |
| 724 |
} |
| 725 |
|
| 726 |
/** |
| 727 |
* Run all the catch hooks. |
| 728 |
* |
| 729 |
* @param {Error} e |
| 730 |
*/ |
| 731 |
}, { |
| 732 |
key: "runCatchHooks", |
| 733 |
value: function runCatchHooks(e) { |
| 734 |
$e.hooks.runDataCatch(this.command, this.args, e); |
| 735 |
$e.hooks.runUICatch(this.command, this.args, e); |
| 736 |
} |
| 737 |
|
| 738 |
/** |
| 739 |
* TODO - Remove - Backwards compatibility. |
| 740 |
* |
| 741 |
* Function requireContainer(). |
| 742 |
* |
| 743 |
* Validate `arg.container` & `arg.containers`. |
| 744 |
* |
| 745 |
* @param {{}} args |
| 746 |
* @deprecated since 3.7.0, extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase` instead. |
| 747 |
* |
| 748 |
* @throws {Error} |
| 749 |
*/ |
| 750 |
}, { |
| 751 |
key: "requireContainer", |
| 752 |
value: function requireContainer() { |
| 753 |
var _this = this; |
| 754 |
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args; |
| 755 |
_deprecation.default.deprecated('requireContainer()', '3.7.0', 'Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`'); |
| 756 |
if (!args.container && !args.containers) { |
| 757 |
throw Error('container or containers are required.'); |
| 758 |
} |
| 759 |
if (args.container && args.containers) { |
| 760 |
throw Error('container and containers cannot go together please select one of them.'); |
| 761 |
} |
| 762 |
var containers = args.containers || [args.container]; |
| 763 |
containers.forEach(function (container) { |
| 764 |
_this.requireArgumentInstance('container', elementorModules.editor.Container, { |
| 765 |
container: container |
| 766 |
}); |
| 767 |
}); |
| 768 |
} |
| 769 |
}], [{ |
| 770 |
key: "getInstanceType", |
| 771 |
value: function getInstanceType() { |
| 772 |
return 'CommandBase'; |
| 773 |
} |
| 774 |
}]); |
| 775 |
return CommandBase; |
| 776 |
}(_commandInfra.default); |
| 777 |
exports["default"] = CommandBase; |
| 778 |
|
| 779 |
/***/ }), |
| 780 |
|
| 781 |
/***/ "../modules/web-cli/assets/js/modules/command-infra.js": |
| 782 |
/*!*************************************************************!*\ |
| 783 |
!*** ../modules/web-cli/assets/js/modules/command-infra.js ***! |
| 784 |
\*************************************************************/ |
| 785 |
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 786 |
|
| 787 |
"use strict"; |
| 788 |
|
| 789 |
|
| 790 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 791 |
Object.defineProperty(exports, "__esModule", ({ |
| 792 |
value: true |
| 793 |
})); |
| 794 |
exports["default"] = void 0; |
| 795 |
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 796 |
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 797 |
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 798 |
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 799 |
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 800 |
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 801 |
var _argsObject = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js")); |
| 802 |
var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js")); |
| 803 |
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } |
| 804 |
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } |
| 805 |
/** |
| 806 |
* @typedef {import('../modules/component-base')} ComponentBase |
| 807 |
*/ |
| 808 |
var CommandInfra = /*#__PURE__*/function (_ArgsObject) { |
| 809 |
(0, _inherits2.default)(CommandInfra, _ArgsObject); |
| 810 |
var _super = _createSuper(CommandInfra); |
| 811 |
/** |
| 812 |
* Function constructor(). |
| 813 |
* |
| 814 |
* Create Commands Base. |
| 815 |
* |
| 816 |
* @param {{}} args |
| 817 |
*/ |
| 818 |
function CommandInfra() { |
| 819 |
var _this; |
| 820 |
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 821 |
(0, _classCallCheck2.default)(this, CommandInfra); |
| 822 |
_this = _super.call(this, args); |
| 823 |
if (!_this.constructor.registerConfig) { |
| 824 |
throw RangeError('Doing it wrong: Each command type should have `registerConfig`.'); |
| 825 |
} |
| 826 |
|
| 827 |
// Acknowledge self about which command it run. |
| 828 |
_this.command = _this.constructor.getCommand(); |
| 829 |
|
| 830 |
// Assign instance of current component. |
| 831 |
_this.component = _this.constructor.getComponent(); |
| 832 |
|
| 833 |
// Who ever need do something before without `super` the constructor can use `initialize` method. |
| 834 |
_this.initialize(args); |
| 835 |
|
| 836 |
// Refresh args, maybe the changed via `initialize`. |
| 837 |
args = _this.args; |
| 838 |
|
| 839 |
// Validate args before run. |
| 840 |
_this.validateArgs(args); |
| 841 |
return _this; |
| 842 |
} |
| 843 |
|
| 844 |
/** |
| 845 |
* Function initialize(). |
| 846 |
* |
| 847 |
* Initialize command, called after construction. |
| 848 |
* |
| 849 |
* @param {{}} args |
| 850 |
*/ |
| 851 |
(0, _createClass2.default)(CommandInfra, [{ |
| 852 |
key: "currentCommand", |
| 853 |
get: |
| 854 |
/** |
| 855 |
* @deprecated since 3.7.0, use `this.command` instead. |
| 856 |
*/ |
| 857 |
function get() { |
| 858 |
_deprecation.default.deprecated('this.currentCommand', '3.7.0', 'this.command'); |
| 859 |
return this.command; |
| 860 |
} |
| 861 |
}, { |
| 862 |
key: "initialize", |
| 863 |
value: function initialize() { |
| 864 |
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 865 |
} // eslint-disable-line no-unused-vars |
| 866 |
|
| 867 |
/** |
| 868 |
* Function validateArgs(). |
| 869 |
* |
| 870 |
* Validate command arguments. |
| 871 |
* |
| 872 |
* @param {{}} args |
| 873 |
*/ |
| 874 |
}, { |
| 875 |
key: "validateArgs", |
| 876 |
value: function validateArgs() { |
| 877 |
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 878 |
} // eslint-disable-line no-unused-vars |
| 879 |
|
| 880 |
// eslint-disable-next-line jsdoc/require-returns-check |
| 881 |
/** |
| 882 |
* Function apply(). |
| 883 |
* |
| 884 |
* Do the actual command. |
| 885 |
* |
| 886 |
* @param {{}} args |
| 887 |
* |
| 888 |
* @return {*} Command results. |
| 889 |
*/ |
| 890 |
}, { |
| 891 |
key: "apply", |
| 892 |
value: function apply() { |
| 893 |
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 894 |
// eslint-disable-line no-unused-vars |
| 895 |
elementorModules.ForceMethodImplementation(); |
| 896 |
} |
| 897 |
|
| 898 |
/** |
| 899 |
* Function run(). |
| 900 |
* |
| 901 |
* Run command with history & hooks. |
| 902 |
* |
| 903 |
* @return {*} Command results. |
| 904 |
*/ |
| 905 |
}, { |
| 906 |
key: "run", |
| 907 |
value: function run() { |
| 908 |
return this.apply(this.args); |
| 909 |
} |
| 910 |
|
| 911 |
/** |
| 912 |
* Function onBeforeRun. |
| 913 |
* |
| 914 |
* Called before run(). |
| 915 |
* |
| 916 |
* @param {{}} args |
| 917 |
*/ |
| 918 |
}, { |
| 919 |
key: "onBeforeRun", |
| 920 |
value: function onBeforeRun() { |
| 921 |
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 922 |
} // eslint-disable-line no-unused-vars |
| 923 |
|
| 924 |
/** |
| 925 |
* Function onAfterRun. |
| 926 |
* |
| 927 |
* Called after run(). |
| 928 |
* |
| 929 |
* @param {{}} args |
| 930 |
* @param {*} result |
| 931 |
*/ |
| 932 |
}, { |
| 933 |
key: "onAfterRun", |
| 934 |
value: function onAfterRun() { |
| 935 |
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 936 |
var result = arguments.length > 1 ? arguments[1] : undefined; |
| 937 |
} // eslint-disable-line no-unused-vars |
| 938 |
|
| 939 |
/** |
| 940 |
* Function onBeforeApply. |
| 941 |
* |
| 942 |
* Called before apply(). |
| 943 |
* |
| 944 |
* @param {{}} args |
| 945 |
*/ |
| 946 |
}, { |
| 947 |
key: "onBeforeApply", |
| 948 |
value: function onBeforeApply() { |
| 949 |
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 950 |
} // eslint-disable-line no-unused-vars |
| 951 |
|
| 952 |
/** |
| 953 |
* Function onAfterApply. |
| 954 |
* |
| 955 |
* Called after apply(). |
| 956 |
* |
| 957 |
* @param {{}} args |
| 958 |
* @param {*} result |
| 959 |
*/ |
| 960 |
}, { |
| 961 |
key: "onAfterApply", |
| 962 |
value: function onAfterApply() { |
| 963 |
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 964 |
var result = arguments.length > 1 ? arguments[1] : undefined; |
| 965 |
} // eslint-disable-line no-unused-vars |
| 966 |
|
| 967 |
/** |
| 968 |
* Function onCatchApply. |
| 969 |
* |
| 970 |
* Called after apply() failed. |
| 971 |
* |
| 972 |
* @param {Error} e |
| 973 |
*/ |
| 974 |
}, { |
| 975 |
key: "onCatchApply", |
| 976 |
value: function onCatchApply(e) {} // eslint-disable-line no-unused-vars |
| 977 |
}], [{ |
| 978 |
key: "getInstanceType", |
| 979 |
value: function getInstanceType() { |
| 980 |
return 'CommandInfra'; |
| 981 |
} |
| 982 |
|
| 983 |
/** |
| 984 |
* Get info of command. |
| 985 |
* |
| 986 |
* @return {Object} Extra information about the command. |
| 987 |
*/ |
| 988 |
}, { |
| 989 |
key: "getInfo", |
| 990 |
value: function getInfo() { |
| 991 |
return {}; |
| 992 |
} |
| 993 |
|
| 994 |
/** |
| 995 |
* @return {string} Self command name. |
| 996 |
*/ |
| 997 |
}, { |
| 998 |
key: "getCommand", |
| 999 |
value: function getCommand() { |
| 1000 |
return this.registerConfig.command; |
| 1001 |
} |
| 1002 |
|
| 1003 |
/** |
| 1004 |
* @return {ComponentBase} Self component |
| 1005 |
*/ |
| 1006 |
}, { |
| 1007 |
key: "getComponent", |
| 1008 |
value: function getComponent() { |
| 1009 |
return this.registerConfig.component; |
| 1010 |
} |
| 1011 |
}, { |
| 1012 |
key: "setRegisterConfig", |
| 1013 |
value: function setRegisterConfig(config) { |
| 1014 |
this.registerConfig = Object.freeze(config); |
| 1015 |
} |
| 1016 |
}]); |
| 1017 |
return CommandInfra; |
| 1018 |
}(_argsObject.default); |
| 1019 |
exports["default"] = CommandInfra; |
| 1020 |
/** |
| 1021 |
* @type {Object} |
| 1022 |
*/ |
| 1023 |
(0, _defineProperty2.default)(CommandInfra, "registerConfig", null); |
| 1024 |
|
| 1025 |
/***/ }), |
| 1026 |
|
| 1027 |
/***/ "../modules/web-cli/assets/js/utils/console.js": |
| 1028 |
/*!*****************************************************!*\ |
| 1029 |
!*** ../modules/web-cli/assets/js/utils/console.js ***! |
| 1030 |
\*****************************************************/ |
| 1031 |
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 1032 |
|
| 1033 |
"use strict"; |
| 1034 |
|
| 1035 |
|
| 1036 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 1037 |
Object.defineProperty(exports, "__esModule", ({ |
| 1038 |
value: true |
| 1039 |
})); |
| 1040 |
exports["default"] = void 0; |
| 1041 |
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1042 |
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 1043 |
var Console = /*#__PURE__*/function () { |
| 1044 |
function Console() { |
| 1045 |
(0, _classCallCheck2.default)(this, Console); |
| 1046 |
} |
| 1047 |
(0, _createClass2.default)(Console, null, [{ |
| 1048 |
key: "error", |
| 1049 |
value: function error(message) { |
| 1050 |
// Show an error if devTools is available. |
| 1051 |
if ($e.devTools) { |
| 1052 |
$e.devTools.log.error(message); |
| 1053 |
} |
| 1054 |
|
| 1055 |
// If not a 'Hook-Break' then show error. |
| 1056 |
if (!(message instanceof $e.modules.HookBreak)) { |
| 1057 |
// eslint-disable-next-line no-console |
| 1058 |
console.error(message); |
| 1059 |
} |
| 1060 |
} |
| 1061 |
}, { |
| 1062 |
key: "warn", |
| 1063 |
value: function warn() { |
| 1064 |
var _console; |
| 1065 |
var style = "font-size: 12px; background-image: url(\"".concat(elementorWebCliConfig.urls.assets, "images/logo-icon.png\"); background-repeat: no-repeat; background-size: contain;"); |
| 1066 |
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| 1067 |
args[_key] = arguments[_key]; |
| 1068 |
} |
| 1069 |
args.unshift('%c %c', style, ''); |
| 1070 |
(_console = console).warn.apply(_console, args); // eslint-disable-line no-console |
| 1071 |
} |
| 1072 |
}]); |
| 1073 |
return Console; |
| 1074 |
}(); |
| 1075 |
exports["default"] = Console; |
| 1076 |
|
| 1077 |
/***/ }), |
| 1078 |
|
| 1079 |
/***/ "../modules/web-cli/assets/js/utils/deprecation.js": |
| 1080 |
/*!*********************************************************!*\ |
| 1081 |
!*** ../modules/web-cli/assets/js/utils/deprecation.js ***! |
| 1082 |
\*********************************************************/ |
| 1083 |
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 1084 |
|
| 1085 |
"use strict"; |
| 1086 |
|
| 1087 |
|
| 1088 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 1089 |
Object.defineProperty(exports, "__esModule", ({ |
| 1090 |
value: true |
| 1091 |
})); |
| 1092 |
exports["default"] = void 0; |
| 1093 |
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); |
| 1094 |
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1095 |
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 1096 |
var _console = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/console */ "../modules/web-cli/assets/js/utils/console.js")); |
| 1097 |
// Copied from `modules/dev-tools/assets/js/deprecation.js` |
| 1098 |
/** |
| 1099 |
* @typedef {Object} Version |
| 1100 |
* @property {number} major1 The first number |
| 1101 |
* @property {number} major2 The second number |
| 1102 |
* @property {number} minor The third number |
| 1103 |
* @property {string} build The fourth number |
| 1104 |
*/ |
| 1105 |
var softDeprecated = function softDeprecated(name, version, replacement) { |
| 1106 |
if (elementorWebCliConfig.isDebug) { |
| 1107 |
deprecatedMessage('soft', name, version, replacement); |
| 1108 |
} |
| 1109 |
}; |
| 1110 |
var hardDeprecated = function hardDeprecated(name, version, replacement) { |
| 1111 |
deprecatedMessage('hard', name, version, replacement); |
| 1112 |
}; |
| 1113 |
var deprecatedMessage = function deprecatedMessage(type, name, version, replacement) { |
| 1114 |
var message = "`".concat(name, "` is ").concat(type, " deprecated since ").concat(version); |
| 1115 |
if (replacement) { |
| 1116 |
message += " - Use `".concat(replacement, "` instead"); |
| 1117 |
} |
| 1118 |
_console.default.warn(message); |
| 1119 |
}; |
| 1120 |
var Deprecation = /*#__PURE__*/function () { |
| 1121 |
function Deprecation() { |
| 1122 |
(0, _classCallCheck2.default)(this, Deprecation); |
| 1123 |
} |
| 1124 |
(0, _createClass2.default)(Deprecation, null, [{ |
| 1125 |
key: "deprecated", |
| 1126 |
value: function deprecated(name, version, replacement) { |
| 1127 |
if (this.isHardDeprecated(version)) { |
| 1128 |
hardDeprecated(name, version, replacement); |
| 1129 |
} else { |
| 1130 |
softDeprecated(name, version, replacement); |
| 1131 |
} |
| 1132 |
} |
| 1133 |
|
| 1134 |
/** |
| 1135 |
* @param {string} version |
| 1136 |
* |
| 1137 |
* @return {Version} |
| 1138 |
*/ |
| 1139 |
}, { |
| 1140 |
key: "parseVersion", |
| 1141 |
value: function parseVersion(version) { |
| 1142 |
var versionParts = version.split('.'); |
| 1143 |
if (versionParts.length < 3 || versionParts.length > 4) { |
| 1144 |
throw new RangeError('Invalid Semantic Version string provided'); |
| 1145 |
} |
| 1146 |
var _versionParts = (0, _slicedToArray2.default)(versionParts, 4), |
| 1147 |
major1 = _versionParts[0], |
| 1148 |
major2 = _versionParts[1], |
| 1149 |
minor = _versionParts[2], |
| 1150 |
_versionParts$ = _versionParts[3], |
| 1151 |
build = _versionParts$ === void 0 ? '' : _versionParts$; |
| 1152 |
return { |
| 1153 |
major1: parseInt(major1), |
| 1154 |
major2: parseInt(major2), |
| 1155 |
minor: parseInt(minor), |
| 1156 |
build: build |
| 1157 |
}; |
| 1158 |
} |
| 1159 |
|
| 1160 |
/** |
| 1161 |
* Get total of major. |
| 1162 |
* |
| 1163 |
* Since `get_total_major` cannot determine how much really versions between 2.9.0 and 3.3.0 if there is 2.10.0 version for example, |
| 1164 |
* versions with major2 more then 9 will be added to total. |
| 1165 |
* |
| 1166 |
* @param {Version} versionObj |
| 1167 |
* |
| 1168 |
* @return {number} |
| 1169 |
*/ |
| 1170 |
}, { |
| 1171 |
key: "getTotalMajor", |
| 1172 |
value: function getTotalMajor(versionObj) { |
| 1173 |
var total = parseInt("".concat(versionObj.major1).concat(versionObj.major2, "0")); |
| 1174 |
total = Number((total / 10).toFixed(0)); |
| 1175 |
if (versionObj.major2 > 9) { |
| 1176 |
total = versionObj.major2 - 9; |
| 1177 |
} |
| 1178 |
return total; |
| 1179 |
} |
| 1180 |
|
| 1181 |
/** |
| 1182 |
* @param {string} version1 |
| 1183 |
* @param {string} version2 |
| 1184 |
* |
| 1185 |
* @return {number} |
| 1186 |
*/ |
| 1187 |
}, { |
| 1188 |
key: "compareVersion", |
| 1189 |
value: function compareVersion(version1, version2) { |
| 1190 |
var _this = this; |
| 1191 |
return [this.parseVersion(version1), this.parseVersion(version2)].map(function (versionObj) { |
| 1192 |
return _this.getTotalMajor(versionObj); |
| 1193 |
}).reduce(function (acc, major) { |
| 1194 |
return acc - major; |
| 1195 |
}); |
| 1196 |
} |
| 1197 |
|
| 1198 |
/** |
| 1199 |
* @param {string} version |
| 1200 |
* |
| 1201 |
* @return {boolean} |
| 1202 |
*/ |
| 1203 |
}, { |
| 1204 |
key: "isSoftDeprecated", |
| 1205 |
value: function isSoftDeprecated(version) { |
| 1206 |
var total = this.compareVersion(version, elementorWebCliConfig.version); |
| 1207 |
return total <= 4; |
| 1208 |
} |
| 1209 |
|
| 1210 |
/** |
| 1211 |
* @param {string} version |
| 1212 |
* @return {boolean} |
| 1213 |
*/ |
| 1214 |
}, { |
| 1215 |
key: "isHardDeprecated", |
| 1216 |
value: function isHardDeprecated(version) { |
| 1217 |
var total = this.compareVersion(version, elementorWebCliConfig.version); |
| 1218 |
return total < 0 || total >= 8; |
| 1219 |
} |
| 1220 |
}]); |
| 1221 |
return Deprecation; |
| 1222 |
}(); |
| 1223 |
exports["default"] = Deprecation; |
| 1224 |
|
| 1225 |
/***/ }), |
| 1226 |
|
| 1227 |
/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": |
| 1228 |
/*!******************************************************************!*\ |
| 1229 |
!*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! |
| 1230 |
\******************************************************************/ |
| 1231 |
/***/ ((module) => { |
| 1232 |
|
| 1233 |
function _arrayLikeToArray(arr, len) { |
| 1234 |
if (len == null || len > arr.length) len = arr.length; |
| 1235 |
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; |
| 1236 |
return arr2; |
| 1237 |
} |
| 1238 |
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1239 |
|
| 1240 |
/***/ }), |
| 1241 |
|
| 1242 |
/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": |
| 1243 |
/*!****************************************************************!*\ |
| 1244 |
!*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! |
| 1245 |
\****************************************************************/ |
| 1246 |
/***/ ((module) => { |
| 1247 |
|
| 1248 |
function _arrayWithHoles(arr) { |
| 1249 |
if (Array.isArray(arr)) return arr; |
| 1250 |
} |
| 1251 |
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1252 |
|
| 1253 |
/***/ }), |
| 1254 |
|
| 1255 |
/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": |
| 1256 |
/*!***********************************************************************!*\ |
| 1257 |
!*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! |
| 1258 |
\***********************************************************************/ |
| 1259 |
/***/ ((module) => { |
| 1260 |
|
| 1261 |
function _assertThisInitialized(self) { |
| 1262 |
if (self === void 0) { |
| 1263 |
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); |
| 1264 |
} |
| 1265 |
return self; |
| 1266 |
} |
| 1267 |
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1268 |
|
| 1269 |
/***/ }), |
| 1270 |
|
| 1271 |
/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": |
| 1272 |
/*!****************************************************************!*\ |
| 1273 |
!*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! |
| 1274 |
\****************************************************************/ |
| 1275 |
/***/ ((module) => { |
| 1276 |
|
| 1277 |
function _classCallCheck(instance, Constructor) { |
| 1278 |
if (!(instance instanceof Constructor)) { |
| 1279 |
throw new TypeError("Cannot call a class as a function"); |
| 1280 |
} |
| 1281 |
} |
| 1282 |
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1283 |
|
| 1284 |
/***/ }), |
| 1285 |
|
| 1286 |
/***/ "../node_modules/@babel/runtime/helpers/createClass.js": |
| 1287 |
/*!*************************************************************!*\ |
| 1288 |
!*** ../node_modules/@babel/runtime/helpers/createClass.js ***! |
| 1289 |
\*************************************************************/ |
| 1290 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1291 |
|
| 1292 |
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); |
| 1293 |
function _defineProperties(target, props) { |
| 1294 |
for (var i = 0; i < props.length; i++) { |
| 1295 |
var descriptor = props[i]; |
| 1296 |
descriptor.enumerable = descriptor.enumerable || false; |
| 1297 |
descriptor.configurable = true; |
| 1298 |
if ("value" in descriptor) descriptor.writable = true; |
| 1299 |
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); |
| 1300 |
} |
| 1301 |
} |
| 1302 |
function _createClass(Constructor, protoProps, staticProps) { |
| 1303 |
if (protoProps) _defineProperties(Constructor.prototype, protoProps); |
| 1304 |
if (staticProps) _defineProperties(Constructor, staticProps); |
| 1305 |
Object.defineProperty(Constructor, "prototype", { |
| 1306 |
writable: false |
| 1307 |
}); |
| 1308 |
return Constructor; |
| 1309 |
} |
| 1310 |
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1311 |
|
| 1312 |
/***/ }), |
| 1313 |
|
| 1314 |
/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": |
| 1315 |
/*!****************************************************************!*\ |
| 1316 |
!*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! |
| 1317 |
\****************************************************************/ |
| 1318 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1319 |
|
| 1320 |
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); |
| 1321 |
function _defineProperty(obj, key, value) { |
| 1322 |
key = toPropertyKey(key); |
| 1323 |
if (key in obj) { |
| 1324 |
Object.defineProperty(obj, key, { |
| 1325 |
value: value, |
| 1326 |
enumerable: true, |
| 1327 |
configurable: true, |
| 1328 |
writable: true |
| 1329 |
}); |
| 1330 |
} else { |
| 1331 |
obj[key] = value; |
| 1332 |
} |
| 1333 |
return obj; |
| 1334 |
} |
| 1335 |
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1336 |
|
| 1337 |
/***/ }), |
| 1338 |
|
| 1339 |
/***/ "../node_modules/@babel/runtime/helpers/get.js": |
| 1340 |
/*!*****************************************************!*\ |
| 1341 |
!*** ../node_modules/@babel/runtime/helpers/get.js ***! |
| 1342 |
\*****************************************************/ |
| 1343 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1344 |
|
| 1345 |
var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js"); |
| 1346 |
function _get() { |
| 1347 |
if (typeof Reflect !== "undefined" && Reflect.get) { |
| 1348 |
module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1349 |
} else { |
| 1350 |
module.exports = _get = function _get(target, property, receiver) { |
| 1351 |
var base = superPropBase(target, property); |
| 1352 |
if (!base) return; |
| 1353 |
var desc = Object.getOwnPropertyDescriptor(base, property); |
| 1354 |
if (desc.get) { |
| 1355 |
return desc.get.call(arguments.length < 3 ? target : receiver); |
| 1356 |
} |
| 1357 |
return desc.value; |
| 1358 |
}, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1359 |
} |
| 1360 |
return _get.apply(this, arguments); |
| 1361 |
} |
| 1362 |
module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1363 |
|
| 1364 |
/***/ }), |
| 1365 |
|
| 1366 |
/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js": |
| 1367 |
/*!****************************************************************!*\ |
| 1368 |
!*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! |
| 1369 |
\****************************************************************/ |
| 1370 |
/***/ ((module) => { |
| 1371 |
|
| 1372 |
function _getPrototypeOf(o) { |
| 1373 |
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { |
| 1374 |
return o.__proto__ || Object.getPrototypeOf(o); |
| 1375 |
}, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1376 |
return _getPrototypeOf(o); |
| 1377 |
} |
| 1378 |
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1379 |
|
| 1380 |
/***/ }), |
| 1381 |
|
| 1382 |
/***/ "../node_modules/@babel/runtime/helpers/inherits.js": |
| 1383 |
/*!**********************************************************!*\ |
| 1384 |
!*** ../node_modules/@babel/runtime/helpers/inherits.js ***! |
| 1385 |
\**********************************************************/ |
| 1386 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1387 |
|
| 1388 |
var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); |
| 1389 |
function _inherits(subClass, superClass) { |
| 1390 |
if (typeof superClass !== "function" && superClass !== null) { |
| 1391 |
throw new TypeError("Super expression must either be null or a function"); |
| 1392 |
} |
| 1393 |
subClass.prototype = Object.create(superClass && superClass.prototype, { |
| 1394 |
constructor: { |
| 1395 |
value: subClass, |
| 1396 |
writable: true, |
| 1397 |
configurable: true |
| 1398 |
} |
| 1399 |
}); |
| 1400 |
Object.defineProperty(subClass, "prototype", { |
| 1401 |
writable: false |
| 1402 |
}); |
| 1403 |
if (superClass) setPrototypeOf(subClass, superClass); |
| 1404 |
} |
| 1405 |
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1406 |
|
| 1407 |
/***/ }), |
| 1408 |
|
| 1409 |
/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": |
| 1410 |
/*!***********************************************************************!*\ |
| 1411 |
!*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! |
| 1412 |
\***********************************************************************/ |
| 1413 |
/***/ ((module) => { |
| 1414 |
|
| 1415 |
function _interopRequireDefault(obj) { |
| 1416 |
return obj && obj.__esModule ? obj : { |
| 1417 |
"default": obj |
| 1418 |
}; |
| 1419 |
} |
| 1420 |
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1421 |
|
| 1422 |
/***/ }), |
| 1423 |
|
| 1424 |
/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": |
| 1425 |
/*!**********************************************************************!*\ |
| 1426 |
!*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! |
| 1427 |
\**********************************************************************/ |
| 1428 |
/***/ ((module) => { |
| 1429 |
|
| 1430 |
function _iterableToArrayLimit(r, l) { |
| 1431 |
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; |
| 1432 |
if (null != t) { |
| 1433 |
var e, |
| 1434 |
n, |
| 1435 |
i, |
| 1436 |
u, |
| 1437 |
a = [], |
| 1438 |
f = !0, |
| 1439 |
o = !1; |
| 1440 |
try { |
| 1441 |
if (i = (t = t.call(r)).next, 0 === l) { |
| 1442 |
if (Object(t) !== t) return; |
| 1443 |
f = !1; |
| 1444 |
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); |
| 1445 |
} catch (r) { |
| 1446 |
o = !0, n = r; |
| 1447 |
} finally { |
| 1448 |
try { |
| 1449 |
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; |
| 1450 |
} finally { |
| 1451 |
if (o) throw n; |
| 1452 |
} |
| 1453 |
} |
| 1454 |
return a; |
| 1455 |
} |
| 1456 |
} |
| 1457 |
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1458 |
|
| 1459 |
/***/ }), |
| 1460 |
|
| 1461 |
/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": |
| 1462 |
/*!*****************************************************************!*\ |
| 1463 |
!*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! |
| 1464 |
\*****************************************************************/ |
| 1465 |
/***/ ((module) => { |
| 1466 |
|
| 1467 |
function _nonIterableRest() { |
| 1468 |
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); |
| 1469 |
} |
| 1470 |
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1471 |
|
| 1472 |
/***/ }), |
| 1473 |
|
| 1474 |
/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": |
| 1475 |
/*!***************************************************************************!*\ |
| 1476 |
!*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***! |
| 1477 |
\***************************************************************************/ |
| 1478 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1479 |
|
| 1480 |
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 1481 |
var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); |
| 1482 |
function _possibleConstructorReturn(self, call) { |
| 1483 |
if (call && (_typeof(call) === "object" || typeof call === "function")) { |
| 1484 |
return call; |
| 1485 |
} else if (call !== void 0) { |
| 1486 |
throw new TypeError("Derived constructors may only return object or undefined"); |
| 1487 |
} |
| 1488 |
return assertThisInitialized(self); |
| 1489 |
} |
| 1490 |
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1491 |
|
| 1492 |
/***/ }), |
| 1493 |
|
| 1494 |
/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": |
| 1495 |
/*!****************************************************************!*\ |
| 1496 |
!*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! |
| 1497 |
\****************************************************************/ |
| 1498 |
/***/ ((module) => { |
| 1499 |
|
| 1500 |
function _setPrototypeOf(o, p) { |
| 1501 |
module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { |
| 1502 |
o.__proto__ = p; |
| 1503 |
return o; |
| 1504 |
}, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1505 |
return _setPrototypeOf(o, p); |
| 1506 |
} |
| 1507 |
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1508 |
|
| 1509 |
/***/ }), |
| 1510 |
|
| 1511 |
/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js": |
| 1512 |
/*!***************************************************************!*\ |
| 1513 |
!*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***! |
| 1514 |
\***************************************************************/ |
| 1515 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1516 |
|
| 1517 |
var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); |
| 1518 |
var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); |
| 1519 |
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); |
| 1520 |
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); |
| 1521 |
function _slicedToArray(arr, i) { |
| 1522 |
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); |
| 1523 |
} |
| 1524 |
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1525 |
|
| 1526 |
/***/ }), |
| 1527 |
|
| 1528 |
/***/ "../node_modules/@babel/runtime/helpers/superPropBase.js": |
| 1529 |
/*!***************************************************************!*\ |
| 1530 |
!*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***! |
| 1531 |
\***************************************************************/ |
| 1532 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1533 |
|
| 1534 |
var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); |
| 1535 |
function _superPropBase(object, property) { |
| 1536 |
while (!Object.prototype.hasOwnProperty.call(object, property)) { |
| 1537 |
object = getPrototypeOf(object); |
| 1538 |
if (object === null) break; |
| 1539 |
} |
| 1540 |
return object; |
| 1541 |
} |
| 1542 |
module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1543 |
|
| 1544 |
/***/ }), |
| 1545 |
|
| 1546 |
/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": |
| 1547 |
/*!*************************************************************!*\ |
| 1548 |
!*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! |
| 1549 |
\*************************************************************/ |
| 1550 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1551 |
|
| 1552 |
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 1553 |
function toPrimitive(t, r) { |
| 1554 |
if ("object" != _typeof(t) || !t) return t; |
| 1555 |
var e = t[Symbol.toPrimitive]; |
| 1556 |
if (void 0 !== e) { |
| 1557 |
var i = e.call(t, r || "default"); |
| 1558 |
if ("object" != _typeof(i)) return i; |
| 1559 |
throw new TypeError("@@toPrimitive must return a primitive value."); |
| 1560 |
} |
| 1561 |
return ("string" === r ? String : Number)(t); |
| 1562 |
} |
| 1563 |
module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1564 |
|
| 1565 |
/***/ }), |
| 1566 |
|
| 1567 |
/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": |
| 1568 |
/*!***************************************************************!*\ |
| 1569 |
!*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! |
| 1570 |
\***************************************************************/ |
| 1571 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1572 |
|
| 1573 |
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 1574 |
var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); |
| 1575 |
function toPropertyKey(t) { |
| 1576 |
var i = toPrimitive(t, "string"); |
| 1577 |
return "symbol" == _typeof(i) ? i : String(i); |
| 1578 |
} |
| 1579 |
module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1580 |
|
| 1581 |
/***/ }), |
| 1582 |
|
| 1583 |
/***/ "../node_modules/@babel/runtime/helpers/typeof.js": |
| 1584 |
/*!********************************************************!*\ |
| 1585 |
!*** ../node_modules/@babel/runtime/helpers/typeof.js ***! |
| 1586 |
\********************************************************/ |
| 1587 |
/***/ ((module) => { |
| 1588 |
|
| 1589 |
function _typeof(o) { |
| 1590 |
"@babel/helpers - typeof"; |
| 1591 |
|
| 1592 |
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { |
| 1593 |
return typeof o; |
| 1594 |
} : function (o) { |
| 1595 |
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; |
| 1596 |
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o); |
| 1597 |
} |
| 1598 |
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1599 |
|
| 1600 |
/***/ }), |
| 1601 |
|
| 1602 |
/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": |
| 1603 |
/*!****************************************************************************!*\ |
| 1604 |
!*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! |
| 1605 |
\****************************************************************************/ |
| 1606 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1607 |
|
| 1608 |
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); |
| 1609 |
function _unsupportedIterableToArray(o, minLen) { |
| 1610 |
if (!o) return; |
| 1611 |
if (typeof o === "string") return arrayLikeToArray(o, minLen); |
| 1612 |
var n = Object.prototype.toString.call(o).slice(8, -1); |
| 1613 |
if (n === "Object" && o.constructor) n = o.constructor.name; |
| 1614 |
if (n === "Map" || n === "Set") return Array.from(o); |
| 1615 |
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); |
| 1616 |
} |
| 1617 |
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1618 |
|
| 1619 |
/***/ }) |
| 1620 |
|
| 1621 |
/******/ }); |
| 1622 |
/************************************************************************/ |
| 1623 |
/******/ // The module cache |
| 1624 |
/******/ var __webpack_module_cache__ = {}; |
| 1625 |
/******/ |
| 1626 |
/******/ // The require function |
| 1627 |
/******/ function __webpack_require__(moduleId) { |
| 1628 |
/******/ // Check if module is in cache |
| 1629 |
/******/ var cachedModule = __webpack_module_cache__[moduleId]; |
| 1630 |
/******/ if (cachedModule !== undefined) { |
| 1631 |
/******/ return cachedModule.exports; |
| 1632 |
/******/ } |
| 1633 |
/******/ // Create a new module (and put it into the cache) |
| 1634 |
/******/ var module = __webpack_module_cache__[moduleId] = { |
| 1635 |
/******/ // no module.id needed |
| 1636 |
/******/ // no module.loaded needed |
| 1637 |
/******/ exports: {} |
| 1638 |
/******/ }; |
| 1639 |
/******/ |
| 1640 |
/******/ // Execute the module function |
| 1641 |
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); |
| 1642 |
/******/ |
| 1643 |
/******/ // Return the exports of the module |
| 1644 |
/******/ return module.exports; |
| 1645 |
/******/ } |
| 1646 |
/******/ |
| 1647 |
/************************************************************************/ |
| 1648 |
var __webpack_exports__ = {}; |
| 1649 |
// This entry need to be wrapped in an IIFE because it need to be in strict mode. |
| 1650 |
(() => { |
| 1651 |
"use strict"; |
| 1652 |
/*!**************************************************!*\ |
| 1653 |
!*** ../assets/dev/js/editor/editor-document.js ***! |
| 1654 |
\**************************************************/ |
| 1655 |
|
| 1656 |
|
| 1657 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 1658 |
var _commandContainerBase = _interopRequireDefault(__webpack_require__(/*! ./command-bases/command-container-base */ "../assets/dev/js/editor/command-bases/command-container-base.js")); |
| 1659 |
var _commandContainerInternalBase = _interopRequireDefault(__webpack_require__(/*! ./command-bases/command-container-internal-base */ "../assets/dev/js/editor/command-bases/command-container-internal-base.js")); |
| 1660 |
var _commandHistoryBase = _interopRequireDefault(__webpack_require__(/*! elementor-document/command-bases/command-history-base */ "../assets/dev/js/editor/document/command-bases/command-history-base.js")); |
| 1661 |
var _commandHistoryDebounceBase = _interopRequireDefault(__webpack_require__(/*! elementor-document/command-bases/command-history-debounce-base */ "../assets/dev/js/editor/document/command-bases/command-history-debounce-base.js")); |
| 1662 |
$e.modules.editor = { |
| 1663 |
CommandContainerBase: _commandContainerBase.default, |
| 1664 |
CommandContainerInternalBase: _commandContainerInternalBase.default, |
| 1665 |
document: { |
| 1666 |
CommandHistoryBase: _commandHistoryBase.default, |
| 1667 |
CommandHistoryDebounceBase: _commandHistoryDebounceBase.default |
| 1668 |
} |
| 1669 |
}; |
| 1670 |
|
| 1671 |
// TODO: Remove, BC. |
| 1672 |
$e.modules.document = { |
| 1673 |
/** |
| 1674 |
* @deprecated since 3.7.0, use `$e.modules.editor.document.CommandHistoryBase` instead. |
| 1675 |
*/ |
| 1676 |
get CommandHistory() { |
| 1677 |
elementorDevTools.deprecation.deprecated('$e.modules.document.CommandHistory', '3.7.0', '$e.modules.editor.document.CommandHistoryBase'); |
| 1678 |
return $e.modules.editor.document.CommandHistoryBase; |
| 1679 |
}, |
| 1680 |
/** |
| 1681 |
* @deprecated since 3.7.0, use `$e.modules.editor.document.CommandHistoryDebounceBase` instead. |
| 1682 |
*/ |
| 1683 |
get CommandHistoryDebounce() { |
| 1684 |
elementorDevTools.deprecation.deprecated('$e.modules.CommandHistoryDebounce', '3.7.0', '$e.modules.editor.document.CommandHistoryDebounceBase'); |
| 1685 |
return $e.modules.editor.document.CommandHistoryDebounceBase; |
| 1686 |
} |
| 1687 |
}; |
| 1688 |
})(); |
| 1689 |
|
| 1690 |
/******/ })() |
| 1691 |
; |
| 1692 |
//# sourceMappingURL=editor-document.js.map |