PluginProbe
Elementor Website Builder – more than just a page builder / 3.19.2
Elementor Website Builder – more than just a page builder v3.19.2
4.3.2 4.3.1 4.3.0 4.3.0-beta3 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 All 455 releases
← All changes | assets/js/editor-document.js +230 -162 4.2.0-beta2 → 3.19.2 View file →
@@ -1,4 +1,5 @@
1 +/*! elementor - v3.19.0 - 07-02-2024 */
1 2 /******/ (() => { // webpackBootstrap
2 3 /******/ var __webpack_modules__ = ({
3 4
4 5 /***/ "../assets/dev/js/editor/command-bases/command-container-base.js":
@@ -16,24 +17,25 @@
16 17 }));
17 18 exports["default"] = void 0;
18 19 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
19 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"));
20 22 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
21 23 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
22 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
23 24 var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../modules/web-cli/assets/js/modules/command-base.js"));
24 -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)); }
25 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
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; } }
26 27 /**
27 28 * @name $e.modules.editor.CommandContainerBase
28 29 */
29 -var CommandContainerBase = exports["default"] = /*#__PURE__*/function (_CommandBase) {
30 +var CommandContainerBase = /*#__PURE__*/function (_CommandBase) {
31 + (0, _inherits2.default)(CommandContainerBase, _CommandBase);
32 + var _super = _createSuper(CommandContainerBase);
30 33 function CommandContainerBase() {
31 34 (0, _classCallCheck2.default)(this, CommandContainerBase);
32 - return _callSuper(this, CommandContainerBase, arguments);
35 + return _super.apply(this, arguments);
33 36 }
34 - (0, _inherits2.default)(CommandContainerBase, _CommandBase);
35 - return (0, _createClass2.default)(CommandContainerBase, [{
37 + (0, _createClass2.default)(CommandContainerBase, [{
36 38 key: "requireContainer",
37 39 value:
38 40 /**
39 41 * Function requireContainer().
@@ -65,9 +67,11 @@
65 67 value: function getInstanceType() {
66 68 return 'CommandContainerBase';
67 69 }
68 70 }]);
71 + return CommandContainerBase;
69 72 }(_commandBase.default);
73 +exports["default"] = CommandContainerBase;
70 74
71 75 /***/ }),
72 76
73 77 /***/ "../assets/dev/js/editor/command-bases/command-container-internal-base.js":
@@ -85,30 +89,33 @@
85 89 }));
86 90 exports["default"] = void 0;
87 91 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
88 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"));
89 94 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
90 95 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
91 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
92 96 var _commandContainerBase = _interopRequireDefault(__webpack_require__(/*! ./command-container-base */ "../assets/dev/js/editor/command-bases/command-container-base.js"));
93 -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)); }
94 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
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; } }
95 99 /**
96 100 * @name $e.modules.editor.CommandContainerInternalBase
97 101 */
98 -var CommandContainerInternalBase = exports["default"] = /*#__PURE__*/function (_CommandContainerBase) {
102 +var CommandContainerInternalBase = /*#__PURE__*/function (_CommandContainerBase) {
103 + (0, _inherits2.default)(CommandContainerInternalBase, _CommandContainerBase);
104 + var _super = _createSuper(CommandContainerInternalBase);
99 105 function CommandContainerInternalBase(args) {
100 106 (0, _classCallCheck2.default)(this, CommandContainerInternalBase);
101 - return _callSuper(this, CommandContainerInternalBase, [args, $e.commandsInternal]);
107 + return _super.call(this, args, $e.commandsInternal);
102 108 }
103 - (0, _inherits2.default)(CommandContainerInternalBase, _CommandContainerBase);
104 - return (0, _createClass2.default)(CommandContainerInternalBase, null, [{
109 + (0, _createClass2.default)(CommandContainerInternalBase, null, [{
105 110 key: "getInstanceType",
106 111 value: function getInstanceType() {
107 112 return 'CommandContainerInternalBase';
108 113 }
109 114 }]);
115 + return CommandContainerInternalBase;
110 116 }(_commandContainerBase.default);
117 +exports["default"] = CommandContainerInternalBase;
111 118
112 119 /***/ }),
113 120
114 121 /***/ "../assets/dev/js/editor/document/command-bases/command-history-base.js":
@@ -126,26 +133,26 @@
126 133 }));
127 134 exports["default"] = void 0;
128 135 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
129 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"));
130 139 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
131 140 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
132 -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js"));
133 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
134 141 var _commandContainerBase = _interopRequireDefault(__webpack_require__(/*! elementor-editor/command-bases/command-container-base */ "../assets/dev/js/editor/command-bases/command-container-base.js"));
135 -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)); }
136 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
137 -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; }
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; } }
138 144 /**
139 145 * @name $e.modules.editor.document.CommandHistoryBase
140 146 */
141 -var CommandHistoryBase = exports["default"] = /*#__PURE__*/function (_CommandContainerBase) {
147 +var CommandHistoryBase = /*#__PURE__*/function (_CommandContainerBase) {
148 + (0, _inherits2.default)(CommandHistoryBase, _CommandContainerBase);
149 + var _super = _createSuper(CommandHistoryBase);
142 150 function CommandHistoryBase() {
143 151 (0, _classCallCheck2.default)(this, CommandHistoryBase);
144 - return _callSuper(this, CommandHistoryBase, arguments);
152 + return _super.apply(this, arguments);
145 153 }
146 - (0, _inherits2.default)(CommandHistoryBase, _CommandContainerBase);
147 - return (0, _createClass2.default)(CommandHistoryBase, [{
154 + (0, _createClass2.default)(CommandHistoryBase, [{
148 155 key: "initialize",
149 156 value: function initialize() {
150 157 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
151 158 var _args$options = args.options,
@@ -199,9 +206,9 @@
199 206 }
200 207 }, {
201 208 key: "onBeforeRun",
202 209 value: function onBeforeRun(args) {
203 - _superPropGet(CommandHistoryBase, "onBeforeRun", this, 3)([args]);
210 + (0, _get2.default)((0, _getPrototypeOf2.default)(CommandHistoryBase.prototype), "onBeforeRun", this).call(this, args);
204 211 if (this.history && this.isHistoryActive()) {
205 212 this.historyId = $e.internal('document/history/start-log', this.history);
206 213 }
207 214 }
@@ -207,9 +214,9 @@
207 214 }
208 215 }, {
209 216 key: "onAfterRun",
210 217 value: function onAfterRun(args, result) {
211 - _superPropGet(CommandHistoryBase, "onAfterRun", this, 3)([args, result]);
218 + (0, _get2.default)((0, _getPrototypeOf2.default)(CommandHistoryBase.prototype), "onAfterRun", this).call(this, args, result);
212 219 if (this.history && this.isHistoryActive()) {
213 220 $e.internal('document/history/end-log', {
214 221 id: this.historyId
215 222 });
@@ -219,9 +226,9 @@
219 226 key: "onAfterApply",
220 227 value: function onAfterApply() {
221 228 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
222 229 var result = arguments.length > 1 ? arguments[1] : undefined;
223 - _superPropGet(CommandHistoryBase, "onAfterApply", this, 3)([args, result]);
230 + (0, _get2.default)((0, _getPrototypeOf2.default)(CommandHistoryBase.prototype), "onAfterApply", this).call(this, args, result);
224 231 if (this.isDataChanged()) {
225 232 $e.internal('document/save/set-is-modified', {
226 233 status: true
227 234 });
@@ -235,9 +242,9 @@
235 242 $e.internal('document/history/delete-log', {
236 243 id: this.historyId
237 244 });
238 245 }
239 - _superPropGet(CommandHistoryBase, "onCatchApply", this, 3)([e]);
246 + (0, _get2.default)((0, _getPrototypeOf2.default)(CommandHistoryBase.prototype), "onCatchApply", this).call(this, e);
240 247 }
241 248 }, {
242 249 key: "isDataChanged",
243 250 value: function isDataChanged() {
@@ -249,9 +256,11 @@
249 256 value: function getInstanceType() {
250 257 return 'CommandHistoryBase';
251 258 }
252 259 }]);
260 + return CommandHistoryBase;
253 261 }(_commandContainerBase.default);
262 +exports["default"] = CommandHistoryBase;
254 263
255 264 /***/ }),
256 265
257 266 /***/ "../assets/dev/js/editor/document/command-bases/command-history-debounce-base.js":
@@ -269,18 +278,17 @@
269 278 }));
270 279 exports.getDefaultDebounceDelay = exports["default"] = exports.DEFAULT_DEBOUNCE_DELAY = void 0;
271 280 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
272 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"));
273 284 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
274 285 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
275 -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js"));
276 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
277 286 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
278 287 var _commandHistoryBase = _interopRequireDefault(__webpack_require__(/*! ./command-history-base */ "../assets/dev/js/editor/document/command-bases/command-history-base.js"));
279 -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)); }
280 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
281 -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; }
282 -var DEFAULT_DEBOUNCE_DELAY = exports.DEFAULT_DEBOUNCE_DELAY = 800;
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;
283 291
284 292 /**
285 293 * Function getDefaultDebounceDelay().
286 294 *
@@ -287,9 +295,10 @@
287 295 * Returns default debounce delay time, if exists in config override.
288 296 *
289 297 * @return {number} default debounce delay time
290 298 */
291 -var getDefaultDebounceDelay = exports.getDefaultDebounceDelay = function getDefaultDebounceDelay() {
299 +exports.DEFAULT_DEBOUNCE_DELAY = DEFAULT_DEBOUNCE_DELAY;
300 +var getDefaultDebounceDelay = function getDefaultDebounceDelay() {
292 301 var result = DEFAULT_DEBOUNCE_DELAY;
293 302 if (elementor.config.document && undefined !== elementor.config.document.debounceDelay) {
294 303 result = elementor.config.document.debounceDelay;
295 304 }
@@ -298,20 +307,22 @@
298 307
299 308 /**
300 309 * @name $e.modules.editor.document.CommandHistoryDebounceBase
301 310 */
302 -var CommandHistoryDebounceBase = exports["default"] = /*#__PURE__*/function (_CommandHistoryBase) {
311 +exports.getDefaultDebounceDelay = getDefaultDebounceDelay;
312 +var CommandHistoryDebounceBase = /*#__PURE__*/function (_CommandHistoryBase) {
313 + (0, _inherits2.default)(CommandHistoryDebounceBase, _CommandHistoryBase);
314 + var _super = _createSuper(CommandHistoryDebounceBase);
303 315 function CommandHistoryDebounceBase() {
304 316 (0, _classCallCheck2.default)(this, CommandHistoryDebounceBase);
305 - return _callSuper(this, CommandHistoryDebounceBase, arguments);
317 + return _super.apply(this, arguments);
306 318 }
307 - (0, _inherits2.default)(CommandHistoryDebounceBase, _CommandHistoryBase);
308 - return (0, _createClass2.default)(CommandHistoryDebounceBase, [{
319 + (0, _createClass2.default)(CommandHistoryDebounceBase, [{
309 320 key: "initialize",
310 321 value: function initialize(args) {
311 322 var _args$options = args.options,
312 323 options = _args$options === void 0 ? {} : _args$options;
313 - _superPropGet(CommandHistoryDebounceBase, "initialize", this, 3)([args]);
324 + (0, _get2.default)((0, _getPrototypeOf2.default)(CommandHistoryDebounceBase.prototype), "initialize", this).call(this, args);
314 325 if (!this.constructor.debounce) {
315 326 this.constructor.debounce = _.debounce(function (fn) {
316 327 return fn();
317 328 }, getDefaultDebounceDelay());
@@ -366,9 +377,11 @@
366 377 value: function getInstanceType() {
367 378 return 'CommandHistoryDebounceBase';
368 379 }
369 380 }]);
381 + return CommandHistoryDebounceBase;
370 382 }(_commandHistoryBase.default);
383 +exports["default"] = CommandHistoryDebounceBase;
371 384 /**
372 385 * Function debounce().
373 386 *
374 387 * Will debounce every function you pass in, at the same debounce flow.
@@ -391,11 +404,11 @@
391 404 Object.defineProperty(exports, "__esModule", ({
392 405 value: true
393 406 }));
394 407 exports["default"] = void 0;
395 -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; } } }; }
396 -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; } }
397 -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; }
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; }
398 411 /**
399 412 * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved
400 413 * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can
401 414 * check whether it's instanceof by using the objects constructor and prototype names.
@@ -403,16 +416,16 @@
403 416 * @param object
404 417 * @param constructors
405 418 * @return {boolean}
406 419 */
407 -var _default = exports["default"] = function _default(object, constructors) {
420 +var _default = function _default(object, constructors) {
408 421 constructors = Array.isArray(constructors) ? constructors : [constructors];
409 422 var _iterator = _createForOfIteratorHelper(constructors),
410 423 _step;
411 424 try {
412 425 for (_iterator.s(); !(_step = _iterator.n()).done;) {
413 - var constructor = _step.value;
414 - if (object.constructor.name === constructor.prototype[Symbol.toStringTag]) {
426 + var _constructor = _step.value;
427 + if (object.constructor.name === _constructor.prototype[Symbol.toStringTag]) {
415 428 return true;
416 429 }
417 430 }
418 431 } catch (err) {
@@ -421,8 +434,9 @@
421 434 _iterator.f();
422 435 }
423 436 return false;
424 437 };
438 +exports["default"] = _default;
425 439
426 440 /***/ }),
427 441
428 442 /***/ "../assets/dev/js/modules/imports/args-object.js":
@@ -441,16 +455,18 @@
441 455 exports["default"] = void 0;
442 456 var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
443 457 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
444 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"));
445 460 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
446 461 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
447 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
448 462 var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js"));
449 463 var _isInstanceof = _interopRequireDefault(__webpack_require__(/*! ../../editor/utils/is-instanceof */ "../assets/dev/js/editor/utils/is-instanceof.js"));
450 -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)); }
451 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
452 -var ArgsObject = exports["default"] = /*#__PURE__*/function (_InstanceType) {
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);
453 469 /**
454 470 * Function constructor().
455 471 *
456 472 * Create ArgsObject.
@@ -459,9 +475,9 @@
459 475 */
460 476 function ArgsObject(args) {
461 477 var _this;
462 478 (0, _classCallCheck2.default)(this, ArgsObject);
463 - _this = _callSuper(this, ArgsObject);
479 + _this = _super.call(this);
464 480 _this.args = args;
465 481 return _this;
466 482 }
467 483
@@ -473,11 +489,11 @@
473 489 * @param {string} property
474 490 * @param {{}} args
475 491 *
476 492 * @throws {Error}
493 + *
477 494 */
478 - (0, _inherits2.default)(ArgsObject, _InstanceType);
479 - return (0, _createClass2.default)(ArgsObject, [{
495 + (0, _createClass2.default)(ArgsObject, [{
480 496 key: "requireArgument",
481 497 value: function requireArgument(property) {
482 498 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args;
483 499 if (!Object.prototype.hasOwnProperty.call(args, property)) {
@@ -494,8 +510,9 @@
494 510 * @param {string} type
495 511 * @param {{}} args
496 512 *
497 513 * @throws {Error}
514 + *
498 515 */
499 516 }, {
500 517 key: "requireArgumentType",
501 518 value: function requireArgumentType(property, type) {
@@ -515,8 +532,9 @@
515 532 * @param {*} instance
516 533 * @param {{}} args
517 534 *
518 535 * @throws {Error}
536 + *
519 537 */
520 538 }, {
521 539 key: "requireArgumentInstance",
522 540 value: function requireArgumentInstance(property, instance) {
@@ -536,8 +554,9 @@
536 554 * @param {*} type
537 555 * @param {{}} args
538 556 *
539 557 * @throws {Error}
558 + *
540 559 */
541 560 }, {
542 561 key: "requireArgumentConstructor",
543 562 value: function requireArgumentConstructor(property, type) {
@@ -555,9 +574,11 @@
555 574 value: function getInstanceType() {
556 575 return 'ArgsObject';
557 576 }
558 577 }]);
578 + return ArgsObject;
559 579 }(_instanceType.default);
580 +exports["default"] = ArgsObject;
560 581
561 582 /***/ }),
562 583
563 584 /***/ "../assets/dev/js/modules/imports/instance-type.js":
@@ -575,12 +596,11 @@
575 596 }));
576 597 exports["default"] = void 0;
577 598 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
578 599 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
600 +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js"));
579 601 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
580 -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js"));
581 -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; }
582 -var InstanceType = exports["default"] = /*#__PURE__*/function () {
602 +var InstanceType = /*#__PURE__*/function (_Symbol$hasInstance) {
583 603 function InstanceType() {
584 604 var _this = this;
585 605 (0, _classCallCheck2.default)(this, InstanceType);
586 606 // Since anonymous classes sometimes do not get validated by babel, do it manually.
@@ -593,10 +613,10 @@
593 613 prototypes.reverse().forEach(function (proto) {
594 614 return _this instanceof proto;
595 615 });
596 616 }
597 - return (0, _createClass2.default)(InstanceType, null, [{
598 - key: Symbol.hasInstance,
617 + (0, _createClass2.default)(InstanceType, null, [{
618 + key: _Symbol$hasInstance,
599 619 value: function value(target) {
600 620 /**
601 621 * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class
602 622 * its give's opportunity to mange capabilities of instanceOf operator.
@@ -601,9 +621,9 @@
601 621 * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class
602 622 * its give's opportunity to mange capabilities of instanceOf operator.
603 623 * saving current class each time will give option later to handle instanceOf manually.
604 624 */
605 - var result = _superPropGet(InstanceType, Symbol.hasInstance, this, 2)([target]);
625 + var result = (0, _get2.default)((0, _getPrototypeOf2.default)(InstanceType), Symbol.hasInstance, this).call(this, target);
606 626
607 627 // Act normal when validate a class, which does not have instance type.
608 628 if (target && !target.constructor.getInstanceType) {
609 629 return result;
@@ -635,9 +655,11 @@
635 655 value: function getInstanceType() {
636 656 elementorModules.ForceMethodImplementation();
637 657 }
638 658 }]);
639 -}();
659 + return InstanceType;
660 +}(Symbol.hasInstance);
661 +exports["default"] = InstanceType;
640 662
641 663 /***/ }),
642 664
643 665 /***/ "../modules/web-cli/assets/js/modules/command-base.js":
@@ -655,25 +677,26 @@
655 677 }));
656 678 exports["default"] = void 0;
657 679 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
658 680 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
681 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
659 682 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
660 683 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
661 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
662 684 var _commandInfra = _interopRequireDefault(__webpack_require__(/*! ./command-infra */ "../modules/web-cli/assets/js/modules/command-infra.js"));
663 685 var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js"));
664 -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)); }
665 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
686 +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); }; }
687 +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; } }
666 688 /**
667 689 * @name $e.modules.CommandBase
668 690 */
669 -var CommandBase = exports["default"] = /*#__PURE__*/function (_CommandInfra) {
691 +var CommandBase = /*#__PURE__*/function (_CommandInfra) {
692 + (0, _inherits2.default)(CommandBase, _CommandInfra);
693 + var _super = _createSuper(CommandBase);
670 694 function CommandBase() {
671 695 (0, _classCallCheck2.default)(this, CommandBase);
672 - return _callSuper(this, CommandBase, arguments);
696 + return _super.apply(this, arguments);
673 697 }
674 - (0, _inherits2.default)(CommandBase, _CommandInfra);
675 - return (0, _createClass2.default)(CommandBase, [{
698 + (0, _createClass2.default)(CommandBase, [{
676 699 key: "onBeforeRun",
677 700 value: function onBeforeRun() {
678 701 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
679 702 $e.hooks.runUIBefore(this.command, args);
@@ -695,9 +718,9 @@
695 718 key: "onAfterApply",
696 719 value: function onAfterApply() {
697 720 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
698 721 var result = arguments.length > 1 ? arguments[1] : undefined;
699 - return $e.hooks.runDataAfter(this.command, args, result);
722 + $e.hooks.runDataAfter(this.command, args, result);
700 723 }
701 724 }, {
702 725 key: "onCatchApply",
703 726 value: function onCatchApply(e) {
@@ -752,9 +775,11 @@
752 775 value: function getInstanceType() {
753 776 return 'CommandBase';
754 777 }
755 778 }]);
779 + return CommandBase;
756 780 }(_commandInfra.default);
781 +exports["default"] = CommandBase;
757 782
758 783 /***/ }),
759 784
760 785 /***/ "../modules/web-cli/assets/js/modules/command-infra.js":
@@ -772,20 +797,22 @@
772 797 }));
773 798 exports["default"] = void 0;
774 799 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
775 800 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
801 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
776 802 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
777 803 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
778 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
779 804 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
780 805 var _argsObject = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js"));
781 806 var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js"));
782 -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)); }
783 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
807 +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); }; }
808 +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; } }
784 809 /**
785 810 * @typedef {import('../modules/component-base')} ComponentBase
786 811 */
787 -var CommandInfra = exports["default"] = /*#__PURE__*/function (_ArgsObject) {
812 +var CommandInfra = /*#__PURE__*/function (_ArgsObject) {
813 + (0, _inherits2.default)(CommandInfra, _ArgsObject);
814 + var _super = _createSuper(CommandInfra);
788 815 /**
789 816 * Function constructor().
790 817 *
791 818 * Create Commands Base.
@@ -795,9 +822,9 @@
795 822 function CommandInfra() {
796 823 var _this;
797 824 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
798 825 (0, _classCallCheck2.default)(this, CommandInfra);
799 - _this = _callSuper(this, CommandInfra, [args]);
826 + _this = _super.call(this, args);
800 827 if (!_this.constructor.registerConfig) {
801 828 throw RangeError('Doing it wrong: Each command type should have `registerConfig`.');
802 829 }
803 830
@@ -824,10 +851,9 @@
824 851 * Initialize command, called after construction.
825 852 *
826 853 * @param {{}} args
827 854 */
828 - (0, _inherits2.default)(CommandInfra, _ArgsObject);
829 - return (0, _createClass2.default)(CommandInfra, [{
855 + (0, _createClass2.default)(CommandInfra, [{
830 856 key: "currentCommand",
831 857 get:
832 858 /**
833 859 * @deprecated since 3.7.0, use `this.command` instead.
@@ -991,9 +1017,11 @@
991 1017 value: function setRegisterConfig(config) {
992 1018 this.registerConfig = Object.freeze(config);
993 1019 }
994 1020 }]);
1021 + return CommandInfra;
995 1022 }(_argsObject.default);
1023 +exports["default"] = CommandInfra;
996 1024 /**
997 1025 * @type {Object}
998 1026 */
999 1027 (0, _defineProperty2.default)(CommandInfra, "registerConfig", null);
@@ -1015,13 +1043,13 @@
1015 1043 }));
1016 1044 exports["default"] = void 0;
1017 1045 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1018 1046 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1019 -var Console = exports["default"] = /*#__PURE__*/function () {
1047 +var Console = /*#__PURE__*/function () {
1020 1048 function Console() {
1021 1049 (0, _classCallCheck2.default)(this, Console);
1022 1050 }
1023 - return (0, _createClass2.default)(Console, null, [{
1051 + (0, _createClass2.default)(Console, null, [{
1024 1052 key: "error",
1025 1053 value: function error(message) {
1026 1054 // Show an error if devTools is available.
1027 1055 if ($e.devTools) {
@@ -1045,9 +1073,11 @@
1045 1073 args.unshift('%c %c', style, '');
1046 1074 (_console = console).warn.apply(_console, args); // eslint-disable-line no-console
1047 1075 }
1048 1076 }]);
1077 + return Console;
1049 1078 }();
1079 +exports["default"] = Console;
1050 1080
1051 1081 /***/ }),
1052 1082
1053 1083 /***/ "../modules/web-cli/assets/js/utils/deprecation.js":
@@ -1075,9 +1105,8 @@
1075 1105 * @property {number} major2 The second number
1076 1106 * @property {number} minor The third number
1077 1107 * @property {string} build The fourth number
1078 1108 */
1079 -
1080 1109 var softDeprecated = function softDeprecated(name, version, replacement) {
1081 1110 if (elementorWebCliConfig.isDebug) {
1082 1111 deprecatedMessage('soft', name, version, replacement);
1083 1112 }
@@ -1091,13 +1120,13 @@
1091 1120 message += " - Use `".concat(replacement, "` instead");
1092 1121 }
1093 1122 _console.default.warn(message);
1094 1123 };
1095 -var Deprecation = exports["default"] = /*#__PURE__*/function () {
1124 +var Deprecation = /*#__PURE__*/function () {
1096 1125 function Deprecation() {
1097 1126 (0, _classCallCheck2.default)(this, Deprecation);
1098 1127 }
1099 - return (0, _createClass2.default)(Deprecation, null, [{
1128 + (0, _createClass2.default)(Deprecation, null, [{
1100 1129 key: "deprecated",
1101 1130 value: function deprecated(name, version, replacement) {
1102 1131 if (this.isHardDeprecated(version)) {
1103 1132 hardDeprecated(name, version, replacement);
@@ -1192,9 +1221,11 @@
1192 1221 var total = this.compareVersion(version, elementorWebCliConfig.version);
1193 1222 return total < 0 || total >= 8;
1194 1223 }
1195 1224 }]);
1225 + return Deprecation;
1196 1226 }();
1227 +exports["default"] = Deprecation;
1197 1228
1198 1229 /***/ }),
1199 1230
1200 1231 /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
@@ -1202,12 +1233,12 @@
1202 1233 !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
1203 1234 \******************************************************************/
1204 1235 /***/ ((module) => {
1205 1236
1206 -function _arrayLikeToArray(r, a) {
1207 - (null == a || a > r.length) && (a = r.length);
1208 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
1209 - return n;
1237 +function _arrayLikeToArray(arr, len) {
1238 + if (len == null || len > arr.length) len = arr.length;
1239 + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1240 + return arr2;
1210 1241 }
1211 1242 module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1212 1243
1213 1244 /***/ }),
@@ -1217,10 +1248,10 @@
1217 1248 !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
1218 1249 \****************************************************************/
1219 1250 /***/ ((module) => {
1220 1251
1221 -function _arrayWithHoles(r) {
1222 - if (Array.isArray(r)) return r;
1252 +function _arrayWithHoles(arr) {
1253 + if (Array.isArray(arr)) return arr;
1223 1254 }
1224 1255 module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
1225 1256
1226 1257 /***/ }),
@@ -1230,11 +1261,13 @@
1230 1261 !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
1231 1262 \***********************************************************************/
1232 1263 /***/ ((module) => {
1233 1264
1234 -function _assertThisInitialized(e) {
1235 - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1236 - return e;
1265 +function _assertThisInitialized(self) {
1266 + if (self === void 0) {
1267 + throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1268 + }
1269 + return self;
1237 1270 }
1238 1271 module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
1239 1272
1240 1273 /***/ }),
@@ -1244,10 +1277,12 @@
1244 1277 !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
1245 1278 \****************************************************************/
1246 1279 /***/ ((module) => {
1247 1280
1248 -function _classCallCheck(a, n) {
1249 - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
1281 +function _classCallCheck(instance, Constructor) {
1282 + if (!(instance instanceof Constructor)) {
1283 + throw new TypeError("Cannot call a class as a function");
1284 + }
1250 1285 }
1251 1286 module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
1252 1287
1253 1288 /***/ }),
@@ -1258,18 +1293,24 @@
1258 1293 \*************************************************************/
1259 1294 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1260 1295
1261 1296 var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
1262 -function _defineProperties(e, r) {
1263 - for (var t = 0; t < r.length; t++) {
1264 - var o = r[t];
1265 - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
1297 +function _defineProperties(target, props) {
1298 + for (var i = 0; i < props.length; i++) {
1299 + var descriptor = props[i];
1300 + descriptor.enumerable = descriptor.enumerable || false;
1301 + descriptor.configurable = true;
1302 + if ("value" in descriptor) descriptor.writable = true;
1303 + Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
1266 1304 }
1267 1305 }
1268 -function _createClass(e, r, t) {
1269 - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
1270 - writable: !1
1271 - }), e;
1306 +function _createClass(Constructor, protoProps, staticProps) {
1307 + if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1308 + if (staticProps) _defineProperties(Constructor, staticProps);
1309 + Object.defineProperty(Constructor, "prototype", {
1310 + writable: false
1311 + });
1312 + return Constructor;
1272 1313 }
1273 1314 module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
1274 1315
1275 1316 /***/ }),
@@ -1280,15 +1321,21 @@
1280 1321 \****************************************************************/
1281 1322 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1282 1323
1283 1324 var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
1284 -function _defineProperty(e, r, t) {
1285 - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
1286 - value: t,
1287 - enumerable: !0,
1288 - configurable: !0,
1289 - writable: !0
1290 - }) : e[r] = t, e;
1325 +function _defineProperty(obj, key, value) {
1326 + key = toPropertyKey(key);
1327 + if (key in obj) {
1328 + Object.defineProperty(obj, key, {
1329 + value: value,
1330 + enumerable: true,
1331 + configurable: true,
1332 + writable: true
1333 + });
1334 + } else {
1335 + obj[key] = value;
1336 + }
1337 + return obj;
1291 1338 }
1292 1339 module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
1293 1340
1294 1341 /***/ }),
@@ -1300,15 +1347,22 @@
1300 1347 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1301 1348
1302 1349 var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js");
1303 1350 function _get() {
1304 - return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
1305 - var p = superPropBase(e, t);
1306 - if (p) {
1307 - var n = Object.getOwnPropertyDescriptor(p, t);
1308 - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
1309 - }
1310 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments);
1351 + if (typeof Reflect !== "undefined" && Reflect.get) {
1352 + module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
1353 + } else {
1354 + module.exports = _get = function _get(target, property, receiver) {
1355 + var base = superPropBase(target, property);
1356 + if (!base) return;
1357 + var desc = Object.getOwnPropertyDescriptor(base, property);
1358 + if (desc.get) {
1359 + return desc.get.call(arguments.length < 3 ? target : receiver);
1360 + }
1361 + return desc.value;
1362 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
1363 + }
1364 + return _get.apply(this, arguments);
1311 1365 }
1312 1366 module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;
1313 1367
1314 1368 /***/ }),
@@ -1318,12 +1372,13 @@
1318 1372 !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
1319 1373 \****************************************************************/
1320 1374 /***/ ((module) => {
1321 1375
1322 -function _getPrototypeOf(t) {
1323 - return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
1324 - return t.__proto__ || Object.getPrototypeOf(t);
1325 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
1376 +function _getPrototypeOf(o) {
1377 + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
1378 + return o.__proto__ || Object.getPrototypeOf(o);
1379 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
1380 + return _getPrototypeOf(o);
1326 1381 }
1327 1382 module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
1328 1383
1329 1384 /***/ }),
@@ -1334,19 +1389,23 @@
1334 1389 \**********************************************************/
1335 1390 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1336 1391
1337 1392 var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
1338 -function _inherits(t, e) {
1339 - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
1340 - t.prototype = Object.create(e && e.prototype, {
1393 +function _inherits(subClass, superClass) {
1394 + if (typeof superClass !== "function" && superClass !== null) {
1395 + throw new TypeError("Super expression must either be null or a function");
1396 + }
1397 + subClass.prototype = Object.create(superClass && superClass.prototype, {
1341 1398 constructor: {
1342 - value: t,
1343 - writable: !0,
1344 - configurable: !0
1399 + value: subClass,
1400 + writable: true,
1401 + configurable: true
1345 1402 }
1346 - }), Object.defineProperty(t, "prototype", {
1347 - writable: !1
1348 - }), e && setPrototypeOf(t, e);
1403 + });
1404 + Object.defineProperty(subClass, "prototype", {
1405 + writable: false
1406 + });
1407 + if (superClass) setPrototypeOf(subClass, superClass);
1349 1408 }
1350 1409 module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
1351 1410
1352 1411 /***/ }),
@@ -1356,11 +1415,11 @@
1356 1415 !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
1357 1416 \***********************************************************************/
1358 1417 /***/ ((module) => {
1359 1418
1360 -function _interopRequireDefault(e) {
1361 - return e && e.__esModule ? e : {
1362 - "default": e
1419 +function _interopRequireDefault(obj) {
1420 + return obj && obj.__esModule ? obj : {
1421 + "default": obj
1363 1422 };
1364 1423 }
1365 1424 module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
1366 1425
@@ -1423,12 +1482,15 @@
1423 1482 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1424 1483
1425 1484 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
1426 1485 var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js");
1427 -function _possibleConstructorReturn(t, e) {
1428 - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
1429 - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
1430 - return assertThisInitialized(t);
1486 +function _possibleConstructorReturn(self, call) {
1487 + if (call && (_typeof(call) === "object" || typeof call === "function")) {
1488 + return call;
1489 + } else if (call !== void 0) {
1490 + throw new TypeError("Derived constructors may only return object or undefined");
1491 + }
1492 + return assertThisInitialized(self);
1431 1493 }
1432 1494 module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
1433 1495
1434 1496 /***/ }),
@@ -1438,12 +1500,14 @@
1438 1500 !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
1439 1501 \****************************************************************/
1440 1502 /***/ ((module) => {
1441 1503
1442 -function _setPrototypeOf(t, e) {
1443 - return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
1444 - return t.__proto__ = e, t;
1445 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
1504 +function _setPrototypeOf(o, p) {
1505 + module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
1506 + o.__proto__ = p;
1507 + return o;
1508 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
1509 + return _setPrototypeOf(o, p);
1446 1510 }
1447 1511 module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
1448 1512
1449 1513 /***/ }),
@@ -1457,10 +1521,10 @@
1457 1521 var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
1458 1522 var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
1459 1523 var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
1460 1524 var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
1461 -function _slicedToArray(r, e) {
1462 - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
1525 +function _slicedToArray(arr, i) {
1526 + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
1463 1527 }
1464 1528 module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1465 1529
1466 1530 /***/ }),
@@ -1471,11 +1535,14 @@
1471 1535 \***************************************************************/
1472 1536 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1473 1537
1474 1538 var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
1475 -function _superPropBase(t, o) {
1476 - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t)););
1477 - return t;
1539 +function _superPropBase(object, property) {
1540 + while (!Object.prototype.hasOwnProperty.call(object, property)) {
1541 + object = getPrototypeOf(object);
1542 + if (object === null) break;
1543 + }
1544 + return object;
1478 1545 }
1479 1546 module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
1480 1547
1481 1548 /***/ }),
@@ -1486,19 +1553,19 @@
1486 1553 \*************************************************************/
1487 1554 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1488 1555
1489 1556 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
1490 -function toPrimitive(t, r) {
1491 - if ("object" != _typeof(t) || !t) return t;
1492 - var e = t[Symbol.toPrimitive];
1493 - if (void 0 !== e) {
1494 - var i = e.call(t, r || "default");
1495 - if ("object" != _typeof(i)) return i;
1557 +function _toPrimitive(input, hint) {
1558 + if (_typeof(input) !== "object" || input === null) return input;
1559 + var prim = input[Symbol.toPrimitive];
1560 + if (prim !== undefined) {
1561 + var res = prim.call(input, hint || "default");
1562 + if (_typeof(res) !== "object") return res;
1496 1563 throw new TypeError("@@toPrimitive must return a primitive value.");
1497 1564 }
1498 - return ("string" === r ? String : Number)(t);
1565 + return (hint === "string" ? String : Number)(input);
1499 1566 }
1500 -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
1567 +module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
1501 1568
1502 1569 /***/ }),
1503 1570
1504 1571 /***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js":
@@ -1508,13 +1575,13 @@
1508 1575 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1509 1576
1510 1577 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
1511 1578 var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js");
1512 -function toPropertyKey(t) {
1513 - var i = toPrimitive(t, "string");
1514 - return "symbol" == _typeof(i) ? i : i + "";
1579 +function _toPropertyKey(arg) {
1580 + var key = toPrimitive(arg, "string");
1581 + return _typeof(key) === "symbol" ? key : String(key);
1515 1582 }
1516 -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
1583 +module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
1517 1584
1518 1585 /***/ }),
1519 1586
1520 1587 /***/ "../node_modules/@babel/runtime/helpers/typeof.js":
@@ -1525,13 +1592,13 @@
1525 1592
1526 1593 function _typeof(o) {
1527 1594 "@babel/helpers - typeof";
1528 1595
1529 - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
1596 + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
1530 1597 return typeof o;
1531 1598 } : function (o) {
1532 1599 return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
1533 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
1600 + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
1534 1601 }
1535 1602 module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
1536 1603
1537 1604 /***/ }),
@@ -1542,14 +1609,15 @@
1542 1609 \****************************************************************************/
1543 1610 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1544 1611
1545 1612 var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
1546 -function _unsupportedIterableToArray(r, a) {
1547 - if (r) {
1548 - if ("string" == typeof r) return arrayLikeToArray(r, a);
1549 - var t = {}.toString.call(r).slice(8, -1);
1550 - 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;
1551 - }
1613 +function _unsupportedIterableToArray(o, minLen) {
1614 + if (!o) return;
1615 + if (typeof o === "string") return arrayLikeToArray(o, minLen);
1616 + var n = Object.prototype.toString.call(o).slice(8, -1);
1617 + if (n === "Object" && o.constructor) n = o.constructor.name;
1618 + if (n === "Map" || n === "Set") return Array.from(o);
1619 + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
1552 1620 }
1553 1621 module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1554 1622
1555 1623 /***/ })
@@ -1581,9 +1649,9 @@
1581 1649 /******/ }
1582 1650 /******/
1583 1651 /************************************************************************/
1584 1652 var __webpack_exports__ = {};
1585 -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
1653 +// This entry need to be wrapped in an IIFE because it need to be in strict mode.
1586 1654 (() => {
1587 1655 "use strict";
1588 1656 /*!**************************************************!*\
1589 1657 !*** ../assets/dev/js/editor/editor-document.js ***!