PluginProbe
Elementor Website Builder – more than just a page builder / 3.30.1
Elementor Website Builder – more than just a page builder v3.30.1
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / assets / js / editor-document.js

editor-document.js in Elementor Website Builder – more than just a page builder 3.30.1, at assets/js/editor-document.js

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