| @@ -1,4 +1,5 @@ | ||
| 1 | +/*! elementor - v3.9.0 - 06-12-2022 */ | |
| 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()); |
| @@ -362,20 +373,24 @@ | ||
| 362 | 373 | } |
| 363 | 374 | } |
| 364 | 375 | }], [{ |
| 365 | 376 | key: "getInstanceType", |
| 366 | - value: function getInstanceType() { | |
| 377 | + value: | |
| 378 | + /** | |
| 379 | + * Function debounce(). | |
| 380 | + * | |
| 381 | + * Will debounce every function you pass in, at the same debounce flow. | |
| 382 | + * | |
| 383 | + * @param {Function} | |
| 384 | + */ | |
| 385 | + | |
| 386 | + function getInstanceType() { | |
| 367 | 387 | return 'CommandHistoryDebounceBase'; |
| 368 | 388 | } |
| 369 | 389 | }]); |
| 390 | + return CommandHistoryDebounceBase; | |
| 370 | 391 | }(_commandHistoryBase.default); |
| 371 | -/** | |
| 372 | - * Function debounce(). | |
| 373 | - * | |
| 374 | - * Will debounce every function you pass in, at the same debounce flow. | |
| 375 | - * | |
| 376 | - * @param {Function} | |
| 377 | - */ | |
| 392 | +exports["default"] = CommandHistoryDebounceBase; | |
| 378 | 393 | (0, _defineProperty2.default)(CommandHistoryDebounceBase, "debounce", undefined); |
| 379 | 394 | |
| 380 | 395 | /***/ }), |
| 381 | 396 | |
| @@ -391,11 +406,11 @@ | ||
| 391 | 406 | Object.defineProperty(exports, "__esModule", ({ |
| 392 | 407 | value: true |
| 393 | 408 | })); |
| 394 | 409 | 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; } | |
| 410 | +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; } } }; } | |
| 411 | +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); } | |
| 412 | +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 | 413 | /** |
| 399 | 414 | * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved |
| 400 | 415 | * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can |
| 401 | 416 | * check whether it's instanceof by using the objects constructor and prototype names. |
| @@ -403,16 +418,16 @@ | ||
| 403 | 418 | * @param object |
| 404 | 419 | * @param constructors |
| 405 | 420 | * @return {boolean} |
| 406 | 421 | */ |
| 407 | -var _default = exports["default"] = function _default(object, constructors) { | |
| 422 | +var _default = function _default(object, constructors) { | |
| 408 | 423 | constructors = Array.isArray(constructors) ? constructors : [constructors]; |
| 409 | 424 | var _iterator = _createForOfIteratorHelper(constructors), |
| 410 | 425 | _step; |
| 411 | 426 | try { |
| 412 | 427 | for (_iterator.s(); !(_step = _iterator.n()).done;) { |
| 413 | - var constructor = _step.value; | |
| 414 | - if (object.constructor.name === constructor.prototype[Symbol.toStringTag]) { | |
| 428 | + var _constructor = _step.value; | |
| 429 | + if (object.constructor.name === _constructor.prototype[Symbol.toStringTag]) { | |
| 415 | 430 | return true; |
| 416 | 431 | } |
| 417 | 432 | } |
| 418 | 433 | } catch (err) { |
| @@ -421,8 +436,9 @@ | ||
| 421 | 436 | _iterator.f(); |
| 422 | 437 | } |
| 423 | 438 | return false; |
| 424 | 439 | }; |
| 440 | +exports["default"] = _default; | |
| 425 | 441 | |
| 426 | 442 | /***/ }), |
| 427 | 443 | |
| 428 | 444 | /***/ "../assets/dev/js/modules/imports/args-object.js": |
| @@ -441,16 +457,18 @@ | ||
| 441 | 457 | exports["default"] = void 0; |
| 442 | 458 | var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); |
| 443 | 459 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 444 | 460 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 461 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 445 | 462 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 446 | 463 | 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 | 464 | var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js")); |
| 449 | 465 | 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) { | |
| 466 | +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); }; } | |
| 467 | +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; } } | |
| 468 | +var ArgsObject = /*#__PURE__*/function (_InstanceType) { | |
| 469 | + (0, _inherits2.default)(ArgsObject, _InstanceType); | |
| 470 | + var _super = _createSuper(ArgsObject); | |
| 453 | 471 | /** |
| 454 | 472 | * Function constructor(). |
| 455 | 473 | * |
| 456 | 474 | * Create ArgsObject. |
| @@ -459,9 +477,9 @@ | ||
| 459 | 477 | */ |
| 460 | 478 | function ArgsObject(args) { |
| 461 | 479 | var _this; |
| 462 | 480 | (0, _classCallCheck2.default)(this, ArgsObject); |
| 463 | - _this = _callSuper(this, ArgsObject); | |
| 481 | + _this = _super.call(this); | |
| 464 | 482 | _this.args = args; |
| 465 | 483 | return _this; |
| 466 | 484 | } |
| 467 | 485 | |
| @@ -473,11 +491,11 @@ | ||
| 473 | 491 | * @param {string} property |
| 474 | 492 | * @param {{}} args |
| 475 | 493 | * |
| 476 | 494 | * @throws {Error} |
| 495 | + * | |
| 477 | 496 | */ |
| 478 | - (0, _inherits2.default)(ArgsObject, _InstanceType); | |
| 479 | - return (0, _createClass2.default)(ArgsObject, [{ | |
| 497 | + (0, _createClass2.default)(ArgsObject, [{ | |
| 480 | 498 | key: "requireArgument", |
| 481 | 499 | value: function requireArgument(property) { |
| 482 | 500 | var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args; |
| 483 | 501 | if (!Object.prototype.hasOwnProperty.call(args, property)) { |
| @@ -494,8 +512,9 @@ | ||
| 494 | 512 | * @param {string} type |
| 495 | 513 | * @param {{}} args |
| 496 | 514 | * |
| 497 | 515 | * @throws {Error} |
| 516 | + * | |
| 498 | 517 | */ |
| 499 | 518 | }, { |
| 500 | 519 | key: "requireArgumentType", |
| 501 | 520 | value: function requireArgumentType(property, type) { |
| @@ -515,8 +534,9 @@ | ||
| 515 | 534 | * @param {*} instance |
| 516 | 535 | * @param {{}} args |
| 517 | 536 | * |
| 518 | 537 | * @throws {Error} |
| 538 | + * | |
| 519 | 539 | */ |
| 520 | 540 | }, { |
| 521 | 541 | key: "requireArgumentInstance", |
| 522 | 542 | value: function requireArgumentInstance(property, instance) { |
| @@ -536,8 +556,9 @@ | ||
| 536 | 556 | * @param {*} type |
| 537 | 557 | * @param {{}} args |
| 538 | 558 | * |
| 539 | 559 | * @throws {Error} |
| 560 | + * | |
| 540 | 561 | */ |
| 541 | 562 | }, { |
| 542 | 563 | key: "requireArgumentConstructor", |
| 543 | 564 | value: function requireArgumentConstructor(property, type) { |
| @@ -555,9 +576,11 @@ | ||
| 555 | 576 | value: function getInstanceType() { |
| 556 | 577 | return 'ArgsObject'; |
| 557 | 578 | } |
| 558 | 579 | }]); |
| 580 | + return ArgsObject; | |
| 559 | 581 | }(_instanceType.default); |
| 582 | +exports["default"] = ArgsObject; | |
| 560 | 583 | |
| 561 | 584 | /***/ }), |
| 562 | 585 | |
| 563 | 586 | /***/ "../assets/dev/js/modules/imports/instance-type.js": |
| @@ -575,12 +598,11 @@ | ||
| 575 | 598 | })); |
| 576 | 599 | exports["default"] = void 0; |
| 577 | 600 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 578 | 601 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 602 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 579 | 603 | 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 () { | |
| 604 | +var InstanceType = /*#__PURE__*/function (_Symbol$hasInstance) { | |
| 583 | 605 | function InstanceType() { |
| 584 | 606 | var _this = this; |
| 585 | 607 | (0, _classCallCheck2.default)(this, InstanceType); |
| 586 | 608 | // Since anonymous classes sometimes do not get validated by babel, do it manually. |
| @@ -593,10 +615,10 @@ | ||
| 593 | 615 | prototypes.reverse().forEach(function (proto) { |
| 594 | 616 | return _this instanceof proto; |
| 595 | 617 | }); |
| 596 | 618 | } |
| 597 | - return (0, _createClass2.default)(InstanceType, null, [{ | |
| 598 | - key: Symbol.hasInstance, | |
| 619 | + (0, _createClass2.default)(InstanceType, null, [{ | |
| 620 | + key: _Symbol$hasInstance, | |
| 599 | 621 | value: function value(target) { |
| 600 | 622 | /** |
| 601 | 623 | * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class |
| 602 | 624 | * its give's opportunity to mange capabilities of instanceOf operator. |
| @@ -601,9 +623,9 @@ | ||
| 601 | 623 | * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class |
| 602 | 624 | * its give's opportunity to mange capabilities of instanceOf operator. |
| 603 | 625 | * saving current class each time will give option later to handle instanceOf manually. |
| 604 | 626 | */ |
| 605 | - var result = _superPropGet(InstanceType, Symbol.hasInstance, this, 2)([target]); | |
| 627 | + var result = (0, _get2.default)((0, _getPrototypeOf2.default)(InstanceType), Symbol.hasInstance, this).call(this, target); | |
| 606 | 628 | |
| 607 | 629 | // Act normal when validate a class, which does not have instance type. |
| 608 | 630 | if (target && !target.constructor.getInstanceType) { |
| 609 | 631 | return result; |
| @@ -635,9 +657,11 @@ | ||
| 635 | 657 | value: function getInstanceType() { |
| 636 | 658 | elementorModules.ForceMethodImplementation(); |
| 637 | 659 | } |
| 638 | 660 | }]); |
| 639 | -}(); | |
| 661 | + return InstanceType; | |
| 662 | +}(Symbol.hasInstance); | |
| 663 | +exports["default"] = InstanceType; | |
| 640 | 664 | |
| 641 | 665 | /***/ }), |
| 642 | 666 | |
| 643 | 667 | /***/ "../modules/web-cli/assets/js/modules/command-base.js": |
| @@ -655,25 +679,26 @@ | ||
| 655 | 679 | })); |
| 656 | 680 | exports["default"] = void 0; |
| 657 | 681 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 658 | 682 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 683 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 659 | 684 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 660 | 685 | 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 | 686 | var _commandInfra = _interopRequireDefault(__webpack_require__(/*! ./command-infra */ "../modules/web-cli/assets/js/modules/command-infra.js")); |
| 663 | 687 | 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; })(); } | |
| 688 | +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); }; } | |
| 689 | +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 | 690 | /** |
| 667 | 691 | * @name $e.modules.CommandBase |
| 668 | 692 | */ |
| 669 | -var CommandBase = exports["default"] = /*#__PURE__*/function (_CommandInfra) { | |
| 693 | +var CommandBase = /*#__PURE__*/function (_CommandInfra) { | |
| 694 | + (0, _inherits2.default)(CommandBase, _CommandInfra); | |
| 695 | + var _super = _createSuper(CommandBase); | |
| 670 | 696 | function CommandBase() { |
| 671 | 697 | (0, _classCallCheck2.default)(this, CommandBase); |
| 672 | - return _callSuper(this, CommandBase, arguments); | |
| 698 | + return _super.apply(this, arguments); | |
| 673 | 699 | } |
| 674 | - (0, _inherits2.default)(CommandBase, _CommandInfra); | |
| 675 | - return (0, _createClass2.default)(CommandBase, [{ | |
| 700 | + (0, _createClass2.default)(CommandBase, [{ | |
| 676 | 701 | key: "onBeforeRun", |
| 677 | 702 | value: function onBeforeRun() { |
| 678 | 703 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 679 | 704 | $e.hooks.runUIBefore(this.command, args); |
| @@ -695,9 +720,9 @@ | ||
| 695 | 720 | key: "onAfterApply", |
| 696 | 721 | value: function onAfterApply() { |
| 697 | 722 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 698 | 723 | var result = arguments.length > 1 ? arguments[1] : undefined; |
| 699 | - return $e.hooks.runDataAfter(this.command, args, result); | |
| 724 | + $e.hooks.runDataAfter(this.command, args, result); | |
| 700 | 725 | } |
| 701 | 726 | }, { |
| 702 | 727 | key: "onCatchApply", |
| 703 | 728 | value: function onCatchApply(e) { |
| @@ -723,9 +748,8 @@ | ||
| 723 | 748 | * |
| 724 | 749 | * Validate `arg.container` & `arg.containers`. |
| 725 | 750 | * |
| 726 | 751 | * @param {{}} args |
| 727 | - * @deprecated since 3.7.0, extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase` instead. | |
| 728 | 752 | * |
| 729 | 753 | * @throws {Error} |
| 730 | 754 | */ |
| 731 | 755 | }, { |
| @@ -732,9 +756,9 @@ | ||
| 732 | 756 | key: "requireContainer", |
| 733 | 757 | value: function requireContainer() { |
| 734 | 758 | var _this = this; |
| 735 | 759 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args; |
| 736 | - _deprecation.default.deprecated('requireContainer()', '3.7.0', 'Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`'); | |
| 760 | + _deprecation.default.deprecated('requireContainer', '3.7.0', 'Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`'); | |
| 737 | 761 | if (!args.container && !args.containers) { |
| 738 | 762 | throw Error('container or containers are required.'); |
| 739 | 763 | } |
| 740 | 764 | if (args.container && args.containers) { |
| @@ -752,9 +776,11 @@ | ||
| 752 | 776 | value: function getInstanceType() { |
| 753 | 777 | return 'CommandBase'; |
| 754 | 778 | } |
| 755 | 779 | }]); |
| 780 | + return CommandBase; | |
| 756 | 781 | }(_commandInfra.default); |
| 782 | +exports["default"] = CommandBase; | |
| 757 | 783 | |
| 758 | 784 | /***/ }), |
| 759 | 785 | |
| 760 | 786 | /***/ "../modules/web-cli/assets/js/modules/command-infra.js": |
| @@ -772,20 +798,22 @@ | ||
| 772 | 798 | })); |
| 773 | 799 | exports["default"] = void 0; |
| 774 | 800 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 775 | 801 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 802 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 776 | 803 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 777 | 804 | 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 | 805 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 780 | 806 | var _argsObject = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js")); |
| 781 | 807 | 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; })(); } | |
| 808 | +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); }; } | |
| 809 | +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 | 810 | /** |
| 785 | 811 | * @typedef {import('../modules/component-base')} ComponentBase |
| 786 | 812 | */ |
| 787 | -var CommandInfra = exports["default"] = /*#__PURE__*/function (_ArgsObject) { | |
| 813 | +var CommandInfra = /*#__PURE__*/function (_ArgsObject) { | |
| 814 | + (0, _inherits2.default)(CommandInfra, _ArgsObject); | |
| 815 | + var _super = _createSuper(CommandInfra); | |
| 788 | 816 | /** |
| 789 | 817 | * Function constructor(). |
| 790 | 818 | * |
| 791 | 819 | * Create Commands Base. |
| @@ -795,9 +823,9 @@ | ||
| 795 | 823 | function CommandInfra() { |
| 796 | 824 | var _this; |
| 797 | 825 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 798 | 826 | (0, _classCallCheck2.default)(this, CommandInfra); |
| 799 | - _this = _callSuper(this, CommandInfra, [args]); | |
| 827 | + _this = _super.call(this, args); | |
| 800 | 828 | if (!_this.constructor.registerConfig) { |
| 801 | 829 | throw RangeError('Doing it wrong: Each command type should have `registerConfig`.'); |
| 802 | 830 | } |
| 803 | 831 | |
| @@ -824,15 +852,12 @@ | ||
| 824 | 852 | * Initialize command, called after construction. |
| 825 | 853 | * |
| 826 | 854 | * @param {{}} args |
| 827 | 855 | */ |
| 828 | - (0, _inherits2.default)(CommandInfra, _ArgsObject); | |
| 829 | - return (0, _createClass2.default)(CommandInfra, [{ | |
| 856 | + (0, _createClass2.default)(CommandInfra, [{ | |
| 830 | 857 | key: "currentCommand", |
| 831 | 858 | get: |
| 832 | - /** | |
| 833 | - * @deprecated since 3.7.0, use `this.command` instead. | |
| 834 | - */ | |
| 859 | + // TODO - Remove backwards compatibility. | |
| 835 | 860 | function get() { |
| 836 | 861 | _deprecation.default.deprecated('this.currentCommand', '3.7.0', 'this.command'); |
| 837 | 862 | return this.command; |
| 838 | 863 | } |
| @@ -953,9 +978,14 @@ | ||
| 953 | 978 | key: "onCatchApply", |
| 954 | 979 | value: function onCatchApply(e) {} // eslint-disable-line no-unused-vars |
| 955 | 980 | }], [{ |
| 956 | 981 | key: "getInstanceType", |
| 957 | - value: function getInstanceType() { | |
| 982 | + value: | |
| 983 | + /** | |
| 984 | + * @type {Object} | |
| 985 | + */ | |
| 986 | + | |
| 987 | + function getInstanceType() { | |
| 958 | 988 | return 'CommandInfra'; |
| 959 | 989 | } |
| 960 | 990 | |
| 961 | 991 | /** |
| @@ -991,12 +1021,11 @@ | ||
| 991 | 1021 | value: function setRegisterConfig(config) { |
| 992 | 1022 | this.registerConfig = Object.freeze(config); |
| 993 | 1023 | } |
| 994 | 1024 | }]); |
| 1025 | + return CommandInfra; | |
| 995 | 1026 | }(_argsObject.default); |
| 996 | -/** | |
| 997 | - * @type {Object} | |
| 998 | - */ | |
| 1027 | +exports["default"] = CommandInfra; | |
| 999 | 1028 | (0, _defineProperty2.default)(CommandInfra, "registerConfig", null); |
| 1000 | 1029 | |
| 1001 | 1030 | /***/ }), |
| 1002 | 1031 | |
| @@ -1015,13 +1044,13 @@ | ||
| 1015 | 1044 | })); |
| 1016 | 1045 | exports["default"] = void 0; |
| 1017 | 1046 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1018 | 1047 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 1019 | -var Console = exports["default"] = /*#__PURE__*/function () { | |
| 1048 | +var Console = /*#__PURE__*/function () { | |
| 1020 | 1049 | function Console() { |
| 1021 | 1050 | (0, _classCallCheck2.default)(this, Console); |
| 1022 | 1051 | } |
| 1023 | - return (0, _createClass2.default)(Console, null, [{ | |
| 1052 | + (0, _createClass2.default)(Console, null, [{ | |
| 1024 | 1053 | key: "error", |
| 1025 | 1054 | value: function error(message) { |
| 1026 | 1055 | // Show an error if devTools is available. |
| 1027 | 1056 | if ($e.devTools) { |
| @@ -1045,9 +1074,11 @@ | ||
| 1045 | 1074 | args.unshift('%c %c', style, ''); |
| 1046 | 1075 | (_console = console).warn.apply(_console, args); // eslint-disable-line no-console |
| 1047 | 1076 | } |
| 1048 | 1077 | }]); |
| 1078 | + return Console; | |
| 1049 | 1079 | }(); |
| 1080 | +exports["default"] = Console; | |
| 1050 | 1081 | |
| 1051 | 1082 | /***/ }), |
| 1052 | 1083 | |
| 1053 | 1084 | /***/ "../modules/web-cli/assets/js/utils/deprecation.js": |
| @@ -1091,13 +1122,13 @@ | ||
| 1091 | 1122 | message += " - Use `".concat(replacement, "` instead"); |
| 1092 | 1123 | } |
| 1093 | 1124 | _console.default.warn(message); |
| 1094 | 1125 | }; |
| 1095 | -var Deprecation = exports["default"] = /*#__PURE__*/function () { | |
| 1126 | +var Deprecation = /*#__PURE__*/function () { | |
| 1096 | 1127 | function Deprecation() { |
| 1097 | 1128 | (0, _classCallCheck2.default)(this, Deprecation); |
| 1098 | 1129 | } |
| 1099 | - return (0, _createClass2.default)(Deprecation, null, [{ | |
| 1130 | + (0, _createClass2.default)(Deprecation, null, [{ | |
| 1100 | 1131 | key: "deprecated", |
| 1101 | 1132 | value: function deprecated(name, version, replacement) { |
| 1102 | 1133 | if (this.isHardDeprecated(version)) { |
| 1103 | 1134 | hardDeprecated(name, version, replacement); |
| @@ -1192,9 +1223,11 @@ | ||
| 1192 | 1223 | var total = this.compareVersion(version, elementorWebCliConfig.version); |
| 1193 | 1224 | return total < 0 || total >= 8; |
| 1194 | 1225 | } |
| 1195 | 1226 | }]); |
| 1227 | + return Deprecation; | |
| 1196 | 1228 | }(); |
| 1229 | +exports["default"] = Deprecation; | |
| 1197 | 1230 | |
| 1198 | 1231 | /***/ }), |
| 1199 | 1232 | |
| 1200 | 1233 | /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": |
| @@ -1202,12 +1235,14 @@ | ||
| 1202 | 1235 | !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! |
| 1203 | 1236 | \******************************************************************/ |
| 1204 | 1237 | /***/ ((module) => { |
| 1205 | 1238 | |
| 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; | |
| 1239 | +function _arrayLikeToArray(arr, len) { | |
| 1240 | + if (len == null || len > arr.length) len = arr.length; | |
| 1241 | + for (var i = 0, arr2 = new Array(len); i < len; i++) { | |
| 1242 | + arr2[i] = arr[i]; | |
| 1243 | + } | |
| 1244 | + return arr2; | |
| 1210 | 1245 | } |
| 1211 | 1246 | module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1212 | 1247 | |
| 1213 | 1248 | /***/ }), |
| @@ -1217,10 +1252,10 @@ | ||
| 1217 | 1252 | !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! |
| 1218 | 1253 | \****************************************************************/ |
| 1219 | 1254 | /***/ ((module) => { |
| 1220 | 1255 | |
| 1221 | -function _arrayWithHoles(r) { | |
| 1222 | - if (Array.isArray(r)) return r; | |
| 1256 | +function _arrayWithHoles(arr) { | |
| 1257 | + if (Array.isArray(arr)) return arr; | |
| 1223 | 1258 | } |
| 1224 | 1259 | module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1225 | 1260 | |
| 1226 | 1261 | /***/ }), |
| @@ -1230,11 +1265,13 @@ | ||
| 1230 | 1265 | !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! |
| 1231 | 1266 | \***********************************************************************/ |
| 1232 | 1267 | /***/ ((module) => { |
| 1233 | 1268 | |
| 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; | |
| 1269 | +function _assertThisInitialized(self) { | |
| 1270 | + if (self === void 0) { | |
| 1271 | + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 1272 | + } | |
| 1273 | + return self; | |
| 1237 | 1274 | } |
| 1238 | 1275 | module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1239 | 1276 | |
| 1240 | 1277 | /***/ }), |
| @@ -1244,10 +1281,12 @@ | ||
| 1244 | 1281 | !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! |
| 1245 | 1282 | \****************************************************************/ |
| 1246 | 1283 | /***/ ((module) => { |
| 1247 | 1284 | |
| 1248 | -function _classCallCheck(a, n) { | |
| 1249 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 1285 | +function _classCallCheck(instance, Constructor) { | |
| 1286 | + if (!(instance instanceof Constructor)) { | |
| 1287 | + throw new TypeError("Cannot call a class as a function"); | |
| 1288 | + } | |
| 1250 | 1289 | } |
| 1251 | 1290 | module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1252 | 1291 | |
| 1253 | 1292 | /***/ }), |
| @@ -1255,21 +1294,26 @@ | ||
| 1255 | 1294 | /***/ "../node_modules/@babel/runtime/helpers/createClass.js": |
| 1256 | 1295 | /*!*************************************************************!*\ |
| 1257 | 1296 | !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! |
| 1258 | 1297 | \*************************************************************/ |
| 1259 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1298 | +/***/ ((module) => { | |
| 1260 | 1299 | |
| 1261 | -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); | |
| 1300 | +function _defineProperties(target, props) { | |
| 1301 | + for (var i = 0; i < props.length; i++) { | |
| 1302 | + var descriptor = props[i]; | |
| 1303 | + descriptor.enumerable = descriptor.enumerable || false; | |
| 1304 | + descriptor.configurable = true; | |
| 1305 | + if ("value" in descriptor) descriptor.writable = true; | |
| 1306 | + Object.defineProperty(target, descriptor.key, descriptor); | |
| 1266 | 1307 | } |
| 1267 | 1308 | } |
| 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; | |
| 1309 | +function _createClass(Constructor, protoProps, staticProps) { | |
| 1310 | + if (protoProps) _defineProperties(Constructor.prototype, protoProps); | |
| 1311 | + if (staticProps) _defineProperties(Constructor, staticProps); | |
| 1312 | + Object.defineProperty(Constructor, "prototype", { | |
| 1313 | + writable: false | |
| 1314 | + }); | |
| 1315 | + return Constructor; | |
| 1272 | 1316 | } |
| 1273 | 1317 | module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1274 | 1318 | |
| 1275 | 1319 | /***/ }), |
| @@ -1277,18 +1321,22 @@ | ||
| 1277 | 1321 | /***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": |
| 1278 | 1322 | /*!****************************************************************!*\ |
| 1279 | 1323 | !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! |
| 1280 | 1324 | \****************************************************************/ |
| 1281 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1325 | +/***/ ((module) => { | |
| 1282 | 1326 | |
| 1283 | -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; | |
| 1327 | +function _defineProperty(obj, key, value) { | |
| 1328 | + if (key in obj) { | |
| 1329 | + Object.defineProperty(obj, key, { | |
| 1330 | + value: value, | |
| 1331 | + enumerable: true, | |
| 1332 | + configurable: true, | |
| 1333 | + writable: true | |
| 1334 | + }); | |
| 1335 | + } else { | |
| 1336 | + obj[key] = value; | |
| 1337 | + } | |
| 1338 | + return obj; | |
| 1291 | 1339 | } |
| 1292 | 1340 | module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1293 | 1341 | |
| 1294 | 1342 | /***/ }), |
| @@ -1300,15 +1348,22 @@ | ||
| 1300 | 1348 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1301 | 1349 | |
| 1302 | 1350 | var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js"); |
| 1303 | 1351 | 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); | |
| 1352 | + if (typeof Reflect !== "undefined" && Reflect.get) { | |
| 1353 | + module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1354 | + } else { | |
| 1355 | + module.exports = _get = function _get(target, property, receiver) { | |
| 1356 | + var base = superPropBase(target, property); | |
| 1357 | + if (!base) return; | |
| 1358 | + var desc = Object.getOwnPropertyDescriptor(base, property); | |
| 1359 | + if (desc.get) { | |
| 1360 | + return desc.get.call(arguments.length < 3 ? target : receiver); | |
| 1361 | + } | |
| 1362 | + return desc.value; | |
| 1363 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1364 | + } | |
| 1365 | + return _get.apply(this, arguments); | |
| 1311 | 1366 | } |
| 1312 | 1367 | module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1313 | 1368 | |
| 1314 | 1369 | /***/ }), |
| @@ -1318,12 +1373,13 @@ | ||
| 1318 | 1373 | !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! |
| 1319 | 1374 | \****************************************************************/ |
| 1320 | 1375 | /***/ ((module) => { |
| 1321 | 1376 | |
| 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); | |
| 1377 | +function _getPrototypeOf(o) { | |
| 1378 | + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { | |
| 1379 | + return o.__proto__ || Object.getPrototypeOf(o); | |
| 1380 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1381 | + return _getPrototypeOf(o); | |
| 1326 | 1382 | } |
| 1327 | 1383 | module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1328 | 1384 | |
| 1329 | 1385 | /***/ }), |
| @@ -1334,19 +1390,23 @@ | ||
| 1334 | 1390 | \**********************************************************/ |
| 1335 | 1391 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1336 | 1392 | |
| 1337 | 1393 | 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, { | |
| 1394 | +function _inherits(subClass, superClass) { | |
| 1395 | + if (typeof superClass !== "function" && superClass !== null) { | |
| 1396 | + throw new TypeError("Super expression must either be null or a function"); | |
| 1397 | + } | |
| 1398 | + subClass.prototype = Object.create(superClass && superClass.prototype, { | |
| 1341 | 1399 | constructor: { |
| 1342 | - value: t, | |
| 1343 | - writable: !0, | |
| 1344 | - configurable: !0 | |
| 1400 | + value: subClass, | |
| 1401 | + writable: true, | |
| 1402 | + configurable: true | |
| 1345 | 1403 | } |
| 1346 | - }), Object.defineProperty(t, "prototype", { | |
| 1347 | - writable: !1 | |
| 1348 | - }), e && setPrototypeOf(t, e); | |
| 1404 | + }); | |
| 1405 | + Object.defineProperty(subClass, "prototype", { | |
| 1406 | + writable: false | |
| 1407 | + }); | |
| 1408 | + if (superClass) setPrototypeOf(subClass, superClass); | |
| 1349 | 1409 | } |
| 1350 | 1410 | module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1351 | 1411 | |
| 1352 | 1412 | /***/ }), |
| @@ -1356,11 +1416,11 @@ | ||
| 1356 | 1416 | !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! |
| 1357 | 1417 | \***********************************************************************/ |
| 1358 | 1418 | /***/ ((module) => { |
| 1359 | 1419 | |
| 1360 | -function _interopRequireDefault(e) { | |
| 1361 | - return e && e.__esModule ? e : { | |
| 1362 | - "default": e | |
| 1420 | +function _interopRequireDefault(obj) { | |
| 1421 | + return obj && obj.__esModule ? obj : { | |
| 1422 | + "default": obj | |
| 1363 | 1423 | }; |
| 1364 | 1424 | } |
| 1365 | 1425 | module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1366 | 1426 | |
| @@ -1371,34 +1431,31 @@ | ||
| 1371 | 1431 | !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! |
| 1372 | 1432 | \**********************************************************************/ |
| 1373 | 1433 | /***/ ((module) => { |
| 1374 | 1434 | |
| 1375 | -function _iterableToArrayLimit(r, l) { | |
| 1376 | - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 1377 | - if (null != t) { | |
| 1378 | - var e, | |
| 1379 | - n, | |
| 1380 | - i, | |
| 1381 | - u, | |
| 1382 | - a = [], | |
| 1383 | - f = !0, | |
| 1384 | - o = !1; | |
| 1435 | +function _iterableToArrayLimit(arr, i) { | |
| 1436 | + var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; | |
| 1437 | + if (_i == null) return; | |
| 1438 | + var _arr = []; | |
| 1439 | + var _n = true; | |
| 1440 | + var _d = false; | |
| 1441 | + var _s, _e; | |
| 1442 | + try { | |
| 1443 | + for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { | |
| 1444 | + _arr.push(_s.value); | |
| 1445 | + if (i && _arr.length === i) break; | |
| 1446 | + } | |
| 1447 | + } catch (err) { | |
| 1448 | + _d = true; | |
| 1449 | + _e = err; | |
| 1450 | + } finally { | |
| 1385 | 1451 | try { |
| 1386 | - if (i = (t = t.call(r)).next, 0 === l) { | |
| 1387 | - if (Object(t) !== t) return; | |
| 1388 | - f = !1; | |
| 1389 | - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 1390 | - } catch (r) { | |
| 1391 | - o = !0, n = r; | |
| 1452 | + if (!_n && _i["return"] != null) _i["return"](); | |
| 1392 | 1453 | } finally { |
| 1393 | - try { | |
| 1394 | - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 1395 | - } finally { | |
| 1396 | - if (o) throw n; | |
| 1397 | - } | |
| 1454 | + if (_d) throw _e; | |
| 1398 | 1455 | } |
| 1399 | - return a; | |
| 1400 | 1456 | } |
| 1457 | + return _arr; | |
| 1401 | 1458 | } |
| 1402 | 1459 | module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1403 | 1460 | |
| 1404 | 1461 | /***/ }), |
| @@ -1423,12 +1480,15 @@ | ||
| 1423 | 1480 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1424 | 1481 | |
| 1425 | 1482 | var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 1426 | 1483 | 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); | |
| 1484 | +function _possibleConstructorReturn(self, call) { | |
| 1485 | + if (call && (_typeof(call) === "object" || typeof call === "function")) { | |
| 1486 | + return call; | |
| 1487 | + } else if (call !== void 0) { | |
| 1488 | + throw new TypeError("Derived constructors may only return object or undefined"); | |
| 1489 | + } | |
| 1490 | + return assertThisInitialized(self); | |
| 1431 | 1491 | } |
| 1432 | 1492 | module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1433 | 1493 | |
| 1434 | 1494 | /***/ }), |
| @@ -1438,12 +1498,14 @@ | ||
| 1438 | 1498 | !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! |
| 1439 | 1499 | \****************************************************************/ |
| 1440 | 1500 | /***/ ((module) => { |
| 1441 | 1501 | |
| 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); | |
| 1502 | +function _setPrototypeOf(o, p) { | |
| 1503 | + module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { | |
| 1504 | + o.__proto__ = p; | |
| 1505 | + return o; | |
| 1506 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1507 | + return _setPrototypeOf(o, p); | |
| 1446 | 1508 | } |
| 1447 | 1509 | module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1448 | 1510 | |
| 1449 | 1511 | /***/ }), |
| @@ -1457,10 +1519,10 @@ | ||
| 1457 | 1519 | var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); |
| 1458 | 1520 | var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); |
| 1459 | 1521 | var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); |
| 1460 | 1522 | 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(); | |
| 1523 | +function _slicedToArray(arr, i) { | |
| 1524 | + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); | |
| 1463 | 1525 | } |
| 1464 | 1526 | module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1465 | 1527 | |
| 1466 | 1528 | /***/ }), |
| @@ -1471,53 +1533,19 @@ | ||
| 1471 | 1533 | \***************************************************************/ |
| 1472 | 1534 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1473 | 1535 | |
| 1474 | 1536 | 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; | |
| 1537 | +function _superPropBase(object, property) { | |
| 1538 | + while (!Object.prototype.hasOwnProperty.call(object, property)) { | |
| 1539 | + object = getPrototypeOf(object); | |
| 1540 | + if (object === null) break; | |
| 1541 | + } | |
| 1542 | + return object; | |
| 1478 | 1543 | } |
| 1479 | 1544 | module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1480 | 1545 | |
| 1481 | 1546 | /***/ }), |
| 1482 | 1547 | |
| 1483 | -/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 1484 | -/*!*************************************************************!*\ | |
| 1485 | - !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 1486 | - \*************************************************************/ | |
| 1487 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1488 | - | |
| 1489 | -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; | |
| 1496 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 1497 | - } | |
| 1498 | - return ("string" === r ? String : Number)(t); | |
| 1499 | -} | |
| 1500 | -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1501 | - | |
| 1502 | -/***/ }), | |
| 1503 | - | |
| 1504 | -/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 1505 | -/*!***************************************************************!*\ | |
| 1506 | - !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 1507 | - \***************************************************************/ | |
| 1508 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1509 | - | |
| 1510 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 1511 | -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 + ""; | |
| 1515 | -} | |
| 1516 | -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1517 | - | |
| 1518 | -/***/ }), | |
| 1519 | - | |
| 1520 | 1548 | /***/ "../node_modules/@babel/runtime/helpers/typeof.js": |
| 1521 | 1549 | /*!********************************************************!*\ |
| 1522 | 1550 | !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! |
| 1523 | 1551 | \********************************************************/ |
| @@ -1522,16 +1550,16 @@ | ||
| 1522 | 1550 | !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! |
| 1523 | 1551 | \********************************************************/ |
| 1524 | 1552 | /***/ ((module) => { |
| 1525 | 1553 | |
| 1526 | -function _typeof(o) { | |
| 1554 | +function _typeof(obj) { | |
| 1527 | 1555 | "@babel/helpers - typeof"; |
| 1528 | 1556 | |
| 1529 | - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 1530 | - return typeof o; | |
| 1531 | - } : function (o) { | |
| 1532 | - 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); | |
| 1557 | + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { | |
| 1558 | + return typeof obj; | |
| 1559 | + } : function (obj) { | |
| 1560 | + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | |
| 1561 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); | |
| 1534 | 1562 | } |
| 1535 | 1563 | module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1536 | 1564 | |
| 1537 | 1565 | /***/ }), |
| @@ -1542,14 +1570,15 @@ | ||
| 1542 | 1570 | \****************************************************************************/ |
| 1543 | 1571 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1544 | 1572 | |
| 1545 | 1573 | 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 | - } | |
| 1574 | +function _unsupportedIterableToArray(o, minLen) { | |
| 1575 | + if (!o) return; | |
| 1576 | + if (typeof o === "string") return arrayLikeToArray(o, minLen); | |
| 1577 | + var n = Object.prototype.toString.call(o).slice(8, -1); | |
| 1578 | + if (n === "Object" && o.constructor) n = o.constructor.name; | |
| 1579 | + if (n === "Map" || n === "Set") return Array.from(o); | |
| 1580 | + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); | |
| 1552 | 1581 | } |
| 1553 | 1582 | module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1554 | 1583 | |
| 1555 | 1584 | /***/ }) |
| @@ -1581,9 +1610,9 @@ | ||
| 1581 | 1610 | /******/ } |
| 1582 | 1611 | /******/ |
| 1583 | 1612 | /************************************************************************/ |
| 1584 | 1613 | var __webpack_exports__ = {}; |
| 1585 | -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. | |
| 1614 | +// This entry need to be wrapped in an IIFE because it need to be in strict mode. | |
| 1586 | 1615 | (() => { |
| 1587 | 1616 | "use strict"; |
| 1588 | 1617 | /*!**************************************************!*\ |
| 1589 | 1618 | !*** ../assets/dev/js/editor/editor-document.js ***! |
| @@ -1605,18 +1634,12 @@ | ||
| 1605 | 1634 | }; |
| 1606 | 1635 | |
| 1607 | 1636 | // TODO: Remove, BC. |
| 1608 | 1637 | $e.modules.document = { |
| 1609 | - /** | |
| 1610 | - * @deprecated since 3.7.0, use `$e.modules.editor.document.CommandHistoryBase` instead. | |
| 1611 | - */ | |
| 1612 | 1638 | get CommandHistory() { |
| 1613 | 1639 | elementorDevTools.deprecation.deprecated('$e.modules.document.CommandHistory', '3.7.0', '$e.modules.editor.document.CommandHistoryBase'); |
| 1614 | 1640 | return $e.modules.editor.document.CommandHistoryBase; |
| 1615 | 1641 | }, |
| 1616 | - /** | |
| 1617 | - * @deprecated since 3.7.0, use `$e.modules.editor.document.CommandHistoryDebounceBase` instead. | |
| 1618 | - */ | |
| 1619 | 1642 | get CommandHistoryDebounce() { |
| 1620 | 1643 | elementorDevTools.deprecation.deprecated('$e.modules.CommandHistoryDebounce', '3.7.0', '$e.modules.editor.document.CommandHistoryDebounceBase'); |
| 1621 | 1644 | return $e.modules.editor.document.CommandHistoryDebounceBase; |
| 1622 | 1645 | } |