| @@ -1,4 +1,5 @@ | ||
| 1 | +/*! elementor - v3.9.2 - 21-12-2022 */ | |
| 1 | 2 | /******/ (() => { // webpackBootstrap |
| 2 | 3 | /******/ var __webpack_modules__ = ({ |
| 3 | 4 | |
| 4 | 5 | /***/ "../assets/dev/js/editor/container/container.js": |
| @@ -15,22 +16,22 @@ | ||
| 15 | 16 | Object.defineProperty(exports, "__esModule", ({ |
| 16 | 17 | value: true |
| 17 | 18 | })); |
| 18 | 19 | exports["default"] = void 0; |
| 19 | -var _readOnlyError2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/readOnlyError */ "../node_modules/@babel/runtime/helpers/readOnlyError.js")); | |
| 20 | 20 | var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); |
| 21 | 21 | var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); |
| 22 | 22 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 23 | 23 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 24 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js")); | |
| 25 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 24 | 26 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 25 | 27 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 26 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 27 | 28 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 28 | 29 | var _argsObject = _interopRequireDefault(__webpack_require__(/*! ../../modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js")); |
| 29 | 30 | var _panel = _interopRequireDefault(__webpack_require__(/*! ./panel */ "../assets/dev/js/editor/container/panel.js")); |
| 30 | 31 | var _childrenArray = _interopRequireDefault(__webpack_require__(/*! ./model/children-array */ "../assets/dev/js/editor/container/model/children-array.js")); |
| 31 | -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)); } | |
| 32 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 32 | +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); }; } | |
| 33 | +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; } } | |
| 33 | 34 | /** |
| 34 | 35 | * @typedef {import('../../../../lib/backbone/backbone.marionette')} Backbone |
| 35 | 36 | * @typedef {import('../../../../lib/backbone/backbone.marionette')} Marionette |
| 36 | 37 | * @typedef {import('../elements/views/base')} BaseElementView |
| @@ -42,10 +43,110 @@ | ||
| 42 | 43 | * TODO: ViewsOptions |
| 43 | 44 | * |
| 44 | 45 | * @typedef {(Marionette.View|Marionette.CompositeView|BaseElementView|SectionView|BaseContainer)} ViewsOptions |
| 45 | 46 | */ |
| 46 | -var Container = exports["default"] = /*#__PURE__*/function (_ArgsObject) { | |
| 47 | +var Container = /*#__PURE__*/function (_ArgsObject) { | |
| 48 | + (0, _inherits2.default)(Container, _ArgsObject); | |
| 49 | + var _super = _createSuper(Container); | |
| 50 | + // TODO: Swap those backwards compatibility is required. | |
| 51 | + | |
| 47 | 52 | /** |
| 53 | + * Container type. | |
| 54 | + * | |
| 55 | + * @type {string} | |
| 56 | + */ | |
| 57 | + | |
| 58 | + /** | |
| 59 | + * Container id. | |
| 60 | + * | |
| 61 | + * @type {string} | |
| 62 | + */ | |
| 63 | + | |
| 64 | + /** | |
| 65 | + * Document Object. | |
| 66 | + * | |
| 67 | + * @type {{}} | |
| 68 | + */ | |
| 69 | + | |
| 70 | + /** | |
| 71 | + * Container model. | |
| 72 | + * | |
| 73 | + * @type {(Backbone.Model|BaseElementModel)} | |
| 74 | + */ | |
| 75 | + | |
| 76 | + /** | |
| 77 | + * Container settings. | |
| 78 | + * | |
| 79 | + * @type {Backbone.Model} | |
| 80 | + */ | |
| 81 | + | |
| 82 | + /** | |
| 83 | + * Container view. | |
| 84 | + * | |
| 85 | + * @type {ViewsOptions} | |
| 86 | + */ | |
| 87 | + | |
| 88 | + /** | |
| 89 | + * Container parent. | |
| 90 | + * | |
| 91 | + * @type {Container} | |
| 92 | + */ | |
| 93 | + | |
| 94 | + /** | |
| 95 | + * Container children(s). | |
| 96 | + * | |
| 97 | + * @type {ChildrenArray} | |
| 98 | + */ | |
| 99 | + | |
| 100 | + /** | |
| 101 | + * Container dynamic. | |
| 102 | + * | |
| 103 | + * @type {Backbone.Model} | |
| 104 | + */ | |
| 105 | + | |
| 106 | + /** | |
| 107 | + * Container globals. | |
| 108 | + * | |
| 109 | + * @type {Backbone.Model} | |
| 110 | + */ | |
| 111 | + | |
| 112 | + /** | |
| 113 | + * Container label. | |
| 114 | + * | |
| 115 | + * @type {string} | |
| 116 | + */ | |
| 117 | + | |
| 118 | + /** | |
| 119 | + * Container controls. | |
| 120 | + * | |
| 121 | + * @type {{}} | |
| 122 | + */ | |
| 123 | + | |
| 124 | + /** | |
| 125 | + * Repeaters containers | |
| 126 | + * | |
| 127 | + * @type {{}} | |
| 128 | + */ | |
| 129 | + | |
| 130 | + /** | |
| 131 | + * Container renderer (The one who render). | |
| 132 | + * | |
| 133 | + * @type {Container} | |
| 134 | + */ | |
| 135 | + | |
| 136 | + /** | |
| 137 | + * Container panel. | |
| 138 | + * | |
| 139 | + * @type {Panel} | |
| 140 | + */ | |
| 141 | + | |
| 142 | + /** | |
| 143 | + * Controls placeholders. | |
| 144 | + * | |
| 145 | + * @type {{}} | |
| 146 | + */ | |
| 147 | + | |
| 148 | + /** | |
| 48 | 149 | * Function constructor(). |
| 49 | 150 | * |
| 50 | 151 | * Create container. |
| 51 | 152 | * |
| @@ -55,107 +156,27 @@ | ||
| 55 | 156 | */ |
| 56 | 157 | function Container(args) { |
| 57 | 158 | var _this; |
| 58 | 159 | (0, _classCallCheck2.default)(this, Container); |
| 59 | - _this = _callSuper(this, Container, [args]); | |
| 160 | + _this = _super.call(this, args); | |
| 60 | 161 | |
| 61 | 162 | // Validate args. |
| 62 | - /** | |
| 63 | - * Container type. | |
| 64 | - * | |
| 65 | - * @type {string} | |
| 66 | - */ | |
| 67 | - (0, _defineProperty2.default)(_this, "type", void 0); | |
| 68 | - /** | |
| 69 | - * Container id. | |
| 70 | - * | |
| 71 | - * @type {string} | |
| 72 | - */ | |
| 73 | - (0, _defineProperty2.default)(_this, "id", void 0); | |
| 74 | - /** | |
| 75 | - * Document Object. | |
| 76 | - * | |
| 77 | - * @type {{}} | |
| 78 | - */ | |
| 79 | - (0, _defineProperty2.default)(_this, "document", void 0); | |
| 80 | - /** | |
| 81 | - * Container model. | |
| 82 | - * | |
| 83 | - * @type {(Backbone.Model|BaseElementModel)} | |
| 84 | - */ | |
| 85 | - (0, _defineProperty2.default)(_this, "model", void 0); | |
| 86 | - /** | |
| 87 | - * Container settings. | |
| 88 | - * | |
| 89 | - * @type {Backbone.Model} | |
| 90 | - */ | |
| 91 | - (0, _defineProperty2.default)(_this, "settings", void 0); | |
| 92 | - /** | |
| 93 | - * Container view. | |
| 94 | - * | |
| 95 | - * @type {ViewsOptions} | |
| 96 | - */ | |
| 97 | - (0, _defineProperty2.default)(_this, "view", void 0); | |
| 98 | - /** | |
| 99 | - * Container parent. | |
| 100 | - * | |
| 101 | - * @type {Container} | |
| 102 | - */ | |
| 103 | - (0, _defineProperty2.default)(_this, "parent", void 0); | |
| 104 | - /** | |
| 105 | - * Container children(s). | |
| 106 | - * | |
| 107 | - * @type {ChildrenArray} | |
| 108 | - */ | |
| 109 | - (0, _defineProperty2.default)(_this, "children", new _childrenArray.default()); | |
| 110 | - /** | |
| 111 | - * Container dynamic. | |
| 112 | - * | |
| 113 | - * @type {Backbone.Model} | |
| 114 | - */ | |
| 115 | - (0, _defineProperty2.default)(_this, "dynamic", void 0); | |
| 116 | - /** | |
| 117 | - * Container globals. | |
| 118 | - * | |
| 119 | - * @type {Backbone.Model} | |
| 120 | - */ | |
| 121 | - (0, _defineProperty2.default)(_this, "globals", void 0); | |
| 122 | - /** | |
| 123 | - * Container label. | |
| 124 | - * | |
| 125 | - * @type {string} | |
| 126 | - */ | |
| 127 | - (0, _defineProperty2.default)(_this, "label", void 0); | |
| 128 | - /** | |
| 129 | - * Container controls. | |
| 130 | - * | |
| 131 | - * @type {{}} | |
| 132 | - */ | |
| 133 | - (0, _defineProperty2.default)(_this, "controls", {}); | |
| 134 | - /** | |
| 135 | - * Repeaters containers | |
| 136 | - * | |
| 137 | - * @type {{}} | |
| 138 | - */ | |
| 139 | - (0, _defineProperty2.default)(_this, "repeaters", {}); | |
| 140 | - /** | |
| 141 | - * Container renderer (The one who render). | |
| 142 | - * | |
| 143 | - * @type {Container} | |
| 144 | - */ | |
| 145 | - (0, _defineProperty2.default)(_this, "renderer", void 0); | |
| 146 | - /** | |
| 147 | - * Container panel. | |
| 148 | - * | |
| 149 | - * @type {Panel} | |
| 150 | - */ | |
| 151 | - (0, _defineProperty2.default)(_this, "panel", void 0); | |
| 152 | - /** | |
| 153 | - * Controls placeholders. | |
| 154 | - * | |
| 155 | - * @type {{}} | |
| 156 | - */ | |
| 157 | - (0, _defineProperty2.default)(_this, "placeholders", {}); | |
| 163 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "type", void 0); | |
| 164 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "id", void 0); | |
| 165 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "document", void 0); | |
| 166 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "model", void 0); | |
| 167 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "settings", void 0); | |
| 168 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "view", void 0); | |
| 169 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "parent", void 0); | |
| 170 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "children", new _childrenArray.default()); | |
| 171 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "dynamic", void 0); | |
| 172 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "globals", void 0); | |
| 173 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "label", void 0); | |
| 174 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "controls", {}); | |
| 175 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "repeaters", {}); | |
| 176 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderer", void 0); | |
| 177 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "panel", void 0); | |
| 178 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "placeholders", {}); | |
| 158 | 179 | _this.validateArgs(args); |
| 159 | 180 | args = Object.entries(args); |
| 160 | 181 | |
| 161 | 182 | // If empty. |
| @@ -170,9 +191,9 @@ | ||
| 170 | 191 | value = _ref2[1]; |
| 171 | 192 | _this[key] = 'undefined' === typeof value ? _this[key] : value; |
| 172 | 193 | }); |
| 173 | 194 | if ('undefined' === typeof _this.renderer) { |
| 174 | - _this.renderer = _this; | |
| 195 | + _this.renderer = (0, _assertThisInitialized2.default)(_this); | |
| 175 | 196 | } |
| 176 | 197 | if (!_this.document) { |
| 177 | 198 | _this.document = elementor.documents.getCurrent(); |
| 178 | 199 | } |
| @@ -177,14 +198,13 @@ | ||
| 177 | 198 | _this.document = elementor.documents.getCurrent(); |
| 178 | 199 | } |
| 179 | 200 | _this.dynamic = new Backbone.Model(_this.settings.get('__dynamic__')); |
| 180 | 201 | _this.globals = new Backbone.Model(_this.settings.get('__globals__')); |
| 181 | - _this.panel = new _panel.default(_this); | |
| 202 | + _this.panel = new _panel.default((0, _assertThisInitialized2.default)(_this)); | |
| 182 | 203 | _this.initialize(); |
| 183 | 204 | return _this; |
| 184 | 205 | } |
| 185 | - (0, _inherits2.default)(Container, _ArgsObject); | |
| 186 | - return (0, _createClass2.default)(Container, [{ | |
| 206 | + (0, _createClass2.default)(Container, [{ | |
| 187 | 207 | key: "initialize", |
| 188 | 208 | value: function initialize() { |
| 189 | 209 | if (this.isViewElement()) { |
| 190 | 210 | this.addToParent(); |
| @@ -379,9 +399,9 @@ | ||
| 379 | 399 | if (['widget', 'document'].includes(this.type)) { |
| 380 | 400 | var repeaters = Object.values(this.controls).filter(function (control) { |
| 381 | 401 | return 'repeater' === control.type; |
| 382 | 402 | }); |
| 383 | - if (!this.model.get('supportRepeaterChildren') && 1 === repeaters.length) { | |
| 403 | + if (1 === repeaters.length) { | |
| 384 | 404 | Object.defineProperty(this, 'children', { |
| 385 | 405 | get: function get() { |
| 386 | 406 | elementorDevTools.deprecation.deprecated('children', '3.0.0', 'container.repeaters[ repeaterName ].children'); |
| 387 | 407 | return this.repeaters[repeaters[0].name].children; |
| @@ -475,13 +495,8 @@ | ||
| 475 | 495 | } |
| 476 | 496 | } |
| 477 | 497 | return result; |
| 478 | 498 | } |
| 479 | - | |
| 480 | - /** | |
| 481 | - * @param {Function} callback - A callback function. | |
| 482 | - * @deprecated since 3.5.0, use `container.children.findRecursive( callback )` instead. | |
| 483 | - */ | |
| 484 | 499 | }, { |
| 485 | 500 | key: "findChildrenRecursive", |
| 486 | 501 | value: function findChildrenRecursive(callback) { |
| 487 | 502 | elementorDevTools.deprecation.deprecated('container.findChildrenRecursive( callback )', '3.5.0', 'container.children.findRecursive( callback )'); |
| @@ -486,13 +501,8 @@ | ||
| 486 | 501 | value: function findChildrenRecursive(callback) { |
| 487 | 502 | elementorDevTools.deprecation.deprecated('container.findChildrenRecursive( callback )', '3.5.0', 'container.children.findRecursive( callback )'); |
| 488 | 503 | return this.children.findRecursive(callback); |
| 489 | 504 | } |
| 490 | - | |
| 491 | - /** | |
| 492 | - * @param {Function} callback - A callback function. | |
| 493 | - * @deprecated since 3.5.0, use `container.children.forEachRecursive( callback )` instead. | |
| 494 | - */ | |
| 495 | 505 | }, { |
| 496 | 506 | key: "forEachChildrenRecursive", |
| 497 | 507 | value: function forEachChildrenRecursive(callback) { |
| 498 | 508 | elementorDevTools.deprecation.deprecated('container.forEachChildrenRecursive( callback )', '3.5.0', 'container.children.forEachRecursive( callback )'); |
| @@ -510,13 +520,12 @@ | ||
| 510 | 520 | */ |
| 511 | 521 | }, { |
| 512 | 522 | key: "render", |
| 513 | 523 | value: function render() { |
| 514 | - var _this$view; | |
| 515 | 524 | if (!this.renderer) { |
| 516 | 525 | return; |
| 517 | 526 | } |
| 518 | - this.renderer.view.renderOnChange(this.settings, (_this$view = this.view) === null || _this$view === void 0 ? void 0 : _this$view.$el); | |
| 527 | + this.renderer.view.renderOnChange(this.settings); | |
| 519 | 528 | } |
| 520 | 529 | }, { |
| 521 | 530 | key: "renderUI", |
| 522 | 531 | value: function renderUI() { |
| @@ -527,10 +536,9 @@ | ||
| 527 | 536 | } |
| 528 | 537 | }, { |
| 529 | 538 | key: "isEditable", |
| 530 | 539 | value: function isEditable() { |
| 531 | - var _this$model, _this$model$get, _this$model$get$get; | |
| 532 | - return 'edit' === elementor.channels.dataEditMode.request('activeMode') && 'open' === this.document.editor.status && !((_this$model = this.model) !== null && _this$model !== void 0 && (_this$model$get = _this$model.get) !== null && _this$model$get !== void 0 && (_this$model$get = _this$model$get.call(_this$model, 'editSettings')) !== null && _this$model$get !== void 0 && (_this$model$get$get = _this$model$get.get) !== null && _this$model$get$get !== void 0 && _this$model$get$get.call(_this$model$get, 'inactive')); | |
| 540 | + return 'edit' === elementor.channels.dataEditMode.request('activeMode') && 'open' === this.document.editor.status; | |
| 533 | 541 | } |
| 534 | 542 | }, { |
| 535 | 543 | key: "isDesignable", |
| 536 | 544 | value: function isDesignable() { |
| @@ -536,22 +544,8 @@ | ||
| 536 | 544 | value: function isDesignable() { |
| 537 | 545 | return elementor.userCan('design') && this.isEditable(); |
| 538 | 546 | } |
| 539 | 547 | }, { |
| 540 | - key: "isGridContainer", | |
| 541 | - value: function isGridContainer() { | |
| 542 | - return 'grid' === this.parent.settings.get('container_type'); | |
| 543 | - } | |
| 544 | - | |
| 545 | - /** | |
| 546 | - * @return {boolean} | |
| 547 | - */ | |
| 548 | - }, { | |
| 549 | - key: "isLocked", | |
| 550 | - value: function isLocked() { | |
| 551 | - return this.model.get('isLocked'); | |
| 552 | - } | |
| 553 | - }, { | |
| 554 | 548 | key: "isRepeater", |
| 555 | 549 | value: function isRepeater() { |
| 556 | 550 | return Container.TYPE_REPEATER === this.type; |
| 557 | 551 | } |
| @@ -657,10 +651,11 @@ | ||
| 657 | 651 | // No global default. |
| 658 | 652 | return ''; |
| 659 | 653 | } |
| 660 | 654 | }]); |
| 655 | + return Container; | |
| 661 | 656 | }(_argsObject.default); |
| 662 | -// TODO: Swap those backwards compatibility is required. | |
| 657 | +exports["default"] = Container; | |
| 663 | 658 | (0, _defineProperty2.default)(Container, "TYPE_REPEATER", 'repeater-control'); |
| 664 | 659 | (0, _defineProperty2.default)(Container, "TYPE_REPEATER_ITEM", 'repeater'); |
| 665 | 660 | |
| 666 | 661 | /***/ }), |
| @@ -680,27 +675,28 @@ | ||
| 680 | 675 | })); |
| 681 | 676 | exports["default"] = void 0; |
| 682 | 677 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 683 | 678 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 679 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 684 | 680 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 685 | 681 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 686 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 687 | 682 | var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js")); |
| 688 | -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; } } }; } | |
| 689 | -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; } } | |
| 690 | -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; } | |
| 691 | -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)); } | |
| 692 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 683 | +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; } } }; } | |
| 684 | +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); } | |
| 685 | +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; } | |
| 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; } } | |
| 693 | 688 | /** |
| 694 | 689 | * @typedef {import('../container')} Container |
| 695 | 690 | */ |
| 696 | -var ChildrenArray = exports["default"] = /*#__PURE__*/function (_Array) { | |
| 691 | +var ChildrenArray = /*#__PURE__*/function (_Array) { | |
| 692 | + (0, _inherits2.default)(ChildrenArray, _Array); | |
| 693 | + var _super = _createSuper(ChildrenArray); | |
| 697 | 694 | function ChildrenArray() { |
| 698 | 695 | (0, _classCallCheck2.default)(this, ChildrenArray); |
| 699 | - return _callSuper(this, ChildrenArray, arguments); | |
| 696 | + return _super.apply(this, arguments); | |
| 700 | 697 | } |
| 701 | - (0, _inherits2.default)(ChildrenArray, _Array); | |
| 702 | - return (0, _createClass2.default)(ChildrenArray, [{ | |
| 698 | + (0, _createClass2.default)(ChildrenArray, [{ | |
| 703 | 699 | key: "clear", |
| 704 | 700 | value: function clear() { |
| 705 | 701 | this.length = 0; |
| 706 | 702 | } |
| @@ -774,8 +770,9 @@ | ||
| 774 | 770 | * |
| 775 | 771 | * Will run over children recursively, breaks if the callback return true. |
| 776 | 772 | * |
| 777 | 773 | * @param {function(Container) : *} callback |
| 774 | + * | |
| 778 | 775 | */ |
| 779 | 776 | }, { |
| 780 | 777 | key: "someRecursive", |
| 781 | 778 | value: function someRecursive(callback) { |
| @@ -801,9 +798,11 @@ | ||
| 801 | 798 | } |
| 802 | 799 | return false; |
| 803 | 800 | } |
| 804 | 801 | }]); |
| 805 | -}(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Array)); | |
| 802 | + return ChildrenArray; | |
| 803 | +}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Array)); | |
| 804 | +exports["default"] = ChildrenArray; | |
| 806 | 805 | |
| 807 | 806 | /***/ }), |
| 808 | 807 | |
| 809 | 808 | /***/ "../assets/dev/js/editor/container/panel.js": |
| @@ -824,9 +823,9 @@ | ||
| 824 | 823 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 825 | 824 | /** |
| 826 | 825 | * @typedef {import('./container')} Container |
| 827 | 826 | */ |
| 828 | -var Panel = exports["default"] = /*#__PURE__*/function () { | |
| 827 | +var Panel = /*#__PURE__*/function () { | |
| 829 | 828 | /** |
| 830 | 829 | * Function constructor(). |
| 831 | 830 | * |
| 832 | 831 | * Create constructor panel. |
| @@ -842,9 +841,9 @@ | ||
| 842 | 841 | * Function refresh(). |
| 843 | 842 | * |
| 844 | 843 | * Refresh the panel. |
| 845 | 844 | */ |
| 846 | - return (0, _createClass2.default)(Panel, [{ | |
| 845 | + (0, _createClass2.default)(Panel, [{ | |
| 847 | 846 | key: "refresh", |
| 848 | 847 | value: function refresh() { |
| 849 | 848 | if ($e.routes.isPartOf('panel/editor')) { |
| 850 | 849 | $e.routes.refreshContainer('panel'); |
| @@ -875,9 +874,11 @@ | ||
| 875 | 874 | name: name |
| 876 | 875 | }); |
| 877 | 876 | } |
| 878 | 877 | }]); |
| 878 | + return Panel; | |
| 879 | 879 | }(); |
| 880 | +exports["default"] = Panel; | |
| 880 | 881 | |
| 881 | 882 | /***/ }), |
| 882 | 883 | |
| 883 | 884 | /***/ "../assets/dev/js/editor/elements/models/base-settings.js": |
| @@ -917,9 +918,9 @@ | ||
| 917 | 918 | return; |
| 918 | 919 | } |
| 919 | 920 | var controlName = control.name; |
| 920 | 921 | if ('object' === (0, _typeof2.default)(control.default)) { |
| 921 | - defaults[controlName] = structuredClone(control.default); | |
| 922 | + defaults[controlName] = elementorCommon.helpers.cloneObject(control.default); | |
| 922 | 923 | } else { |
| 923 | 924 | defaults[controlName] = control.default; |
| 924 | 925 | } |
| 925 | 926 | var isDynamicControl = control.dynamic && control.dynamic.active, |
| @@ -986,9 +987,9 @@ | ||
| 986 | 987 | }); |
| 987 | 988 | }, |
| 988 | 989 | getStyleControls: function getStyleControls(controls, attributes) { |
| 989 | 990 | var self = this; |
| 990 | - controls = structuredClone(self.getActiveControls(controls, attributes)); | |
| 991 | + controls = elementorCommon.helpers.cloneObject(self.getActiveControls(controls, attributes)); | |
| 991 | 992 | var styleControls = []; |
| 992 | 993 | jQuery.each(controls, function () { |
| 993 | 994 | var _control$dynamic; |
| 994 | 995 | var control = this, |
| @@ -1016,9 +1017,9 @@ | ||
| 1016 | 1017 | if (control.groupType) { |
| 1017 | 1018 | controlGlobalKey = control.groupPrefix + control.groupType; |
| 1018 | 1019 | } |
| 1019 | 1020 | var globalControl = controls[controlGlobalKey]; |
| 1020 | - if (!(globalControl !== null && globalControl !== void 0 && (_globalControl$global = globalControl.global) !== null && _globalControl$global !== void 0 && _globalControl$global.active)) { | |
| 1021 | + if (!((_globalControl$global = globalControl.global) !== null && _globalControl$global !== void 0 && _globalControl$global.active)) { | |
| 1021 | 1022 | return false; |
| 1022 | 1023 | } |
| 1023 | 1024 | var globalValue = (_this$attributes$__gl = this.attributes.__globals__) === null || _this$attributes$__gl === void 0 ? void 0 : _this$attributes$__gl[controlGlobalKey]; |
| 1024 | 1025 | return !!globalValue; |
| @@ -1204,9 +1205,9 @@ | ||
| 1204 | 1205 | }); |
| 1205 | 1206 | if (options.remove && -1 !== options.remove.indexOf('default')) { |
| 1206 | 1207 | this.removeDataDefaults(data, this.controls); |
| 1207 | 1208 | } |
| 1208 | - return structuredClone(data); | |
| 1209 | + return elementorCommon.helpers.cloneObject(data); | |
| 1209 | 1210 | } |
| 1210 | 1211 | }); |
| 1211 | 1212 | |
| 1212 | 1213 | /** |
| @@ -1230,10 +1231,10 @@ | ||
| 1230 | 1231 | onRenderCollection: function onRenderCollection() { |
| 1231 | 1232 | this.handleInnerTabs(this.view); |
| 1232 | 1233 | }, |
| 1233 | 1234 | handleInnerTabs: function handleInnerTabs(parent) { |
| 1234 | - var closedClass = 'e-tab-close', | |
| 1235 | - activeClass = 'e-tab-active', | |
| 1235 | + var closedClass = 'elementor-tab-close', | |
| 1236 | + activeClass = 'elementor-tab-active', | |
| 1236 | 1237 | tabsWrappers = parent.children.filter(function (view) { |
| 1237 | 1238 | return 'tabs' === view.model.get('type'); |
| 1238 | 1239 | }); |
| 1239 | 1240 | _.each(tabsWrappers, function (view) { |
| @@ -1258,10 +1259,10 @@ | ||
| 1258 | 1259 | }); |
| 1259 | 1260 | }); |
| 1260 | 1261 | }, |
| 1261 | 1262 | onChildviewControlTabClicked: function onChildviewControlTabClicked(childView) { |
| 1262 | - var closedClass = 'e-tab-close', | |
| 1263 | - activeClass = 'e-tab-active', | |
| 1263 | + var closedClass = 'elementor-tab-close', | |
| 1264 | + activeClass = 'elementor-tab-active', | |
| 1264 | 1265 | tabClicked = childView.model.get('name'), |
| 1265 | 1266 | childrenUnderTab = this.view.children.filter(function (view) { |
| 1266 | 1267 | return 'tab' !== view.model.get('type') && childView.model.get('tabs_wrapper') === view.model.get('tabs_wrapper'); |
| 1267 | 1268 | }), |
| @@ -1285,8 +1286,105 @@ | ||
| 1285 | 1286 | module.exports = InnerTabsBehavior; |
| 1286 | 1287 | |
| 1287 | 1288 | /***/ }), |
| 1288 | 1289 | |
| 1290 | +/***/ "../assets/dev/js/editor/utils/introduction.js": | |
| 1291 | +/*!*****************************************************!*\ | |
| 1292 | + !*** ../assets/dev/js/editor/utils/introduction.js ***! | |
| 1293 | + \*****************************************************/ | |
| 1294 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1295 | + | |
| 1296 | +"use strict"; | |
| 1297 | + | |
| 1298 | + | |
| 1299 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1300 | +Object.defineProperty(exports, "__esModule", ({ | |
| 1301 | + value: true | |
| 1302 | +})); | |
| 1303 | +exports["default"] = void 0; | |
| 1304 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1305 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1306 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1307 | +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1308 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1309 | +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); }; } | |
| 1310 | +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; } } | |
| 1311 | +var _default = /*#__PURE__*/function (_elementorModules$Mod) { | |
| 1312 | + (0, _inherits2.default)(_default, _elementorModules$Mod); | |
| 1313 | + var _super = _createSuper(_default); | |
| 1314 | + function _default() { | |
| 1315 | + var _this; | |
| 1316 | + (0, _classCallCheck2.default)(this, _default); | |
| 1317 | + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 1318 | + args[_key] = arguments[_key]; | |
| 1319 | + } | |
| 1320 | + _this = _super.call.apply(_super, [this].concat(args)); | |
| 1321 | + _this.initDialog(); | |
| 1322 | + return _this; | |
| 1323 | + } | |
| 1324 | + (0, _createClass2.default)(_default, [{ | |
| 1325 | + key: "getDefaultSettings", | |
| 1326 | + value: function getDefaultSettings() { | |
| 1327 | + return { | |
| 1328 | + dialogType: 'buttons', | |
| 1329 | + dialogOptions: { | |
| 1330 | + effects: { | |
| 1331 | + hide: 'hide', | |
| 1332 | + show: 'show' | |
| 1333 | + }, | |
| 1334 | + hide: { | |
| 1335 | + onBackgroundClick: false | |
| 1336 | + } | |
| 1337 | + } | |
| 1338 | + }; | |
| 1339 | + } | |
| 1340 | + }, { | |
| 1341 | + key: "initDialog", | |
| 1342 | + value: function initDialog() { | |
| 1343 | + var _this2 = this; | |
| 1344 | + var dialog; | |
| 1345 | + this.getDialog = function () { | |
| 1346 | + if (!dialog) { | |
| 1347 | + var settings = _this2.getSettings(); | |
| 1348 | + dialog = elementorCommon.dialogsManager.createWidget(settings.dialogType, settings.dialogOptions); | |
| 1349 | + if (settings.onDialogInitCallback) { | |
| 1350 | + settings.onDialogInitCallback.call(_this2, dialog); | |
| 1351 | + } | |
| 1352 | + } | |
| 1353 | + return dialog; | |
| 1354 | + }; | |
| 1355 | + } | |
| 1356 | + }, { | |
| 1357 | + key: "show", | |
| 1358 | + value: function show(target) { | |
| 1359 | + if (this.introductionViewed) { | |
| 1360 | + return; | |
| 1361 | + } | |
| 1362 | + var dialog = this.getDialog(); | |
| 1363 | + if (target) { | |
| 1364 | + dialog.setSettings('position', { | |
| 1365 | + of: target | |
| 1366 | + }); | |
| 1367 | + } | |
| 1368 | + dialog.show(); | |
| 1369 | + } | |
| 1370 | + }, { | |
| 1371 | + key: "setViewed", | |
| 1372 | + value: function setViewed() { | |
| 1373 | + this.introductionViewed = true; | |
| 1374 | + elementorCommon.ajax.addRequest('introduction_viewed', { | |
| 1375 | + data: { | |
| 1376 | + introductionKey: this.getSettings('introductionKey') | |
| 1377 | + } | |
| 1378 | + }); | |
| 1379 | + } | |
| 1380 | + }]); | |
| 1381 | + return _default; | |
| 1382 | +}(elementorModules.Module); | |
| 1383 | +exports["default"] = _default; | |
| 1384 | + | |
| 1385 | +/***/ }), | |
| 1386 | + | |
| 1289 | 1387 | /***/ "../assets/dev/js/editor/utils/is-instanceof.js": |
| 1290 | 1388 | /*!******************************************************!*\ |
| 1291 | 1389 | !*** ../assets/dev/js/editor/utils/is-instanceof.js ***! |
| 1292 | 1390 | \******************************************************/ |
| @@ -1298,11 +1396,11 @@ | ||
| 1298 | 1396 | Object.defineProperty(exports, "__esModule", ({ |
| 1299 | 1397 | value: true |
| 1300 | 1398 | })); |
| 1301 | 1399 | exports["default"] = void 0; |
| 1302 | -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; } } }; } | |
| 1303 | -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; } } | |
| 1304 | -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; } | |
| 1400 | +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; } } }; } | |
| 1401 | +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); } | |
| 1402 | +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; } | |
| 1305 | 1403 | /** |
| 1306 | 1404 | * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved |
| 1307 | 1405 | * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can |
| 1308 | 1406 | * check whether it's instanceof by using the objects constructor and prototype names. |
| @@ -1310,16 +1408,16 @@ | ||
| 1310 | 1408 | * @param object |
| 1311 | 1409 | * @param constructors |
| 1312 | 1410 | * @return {boolean} |
| 1313 | 1411 | */ |
| 1314 | -var _default = exports["default"] = function _default(object, constructors) { | |
| 1412 | +var _default = function _default(object, constructors) { | |
| 1315 | 1413 | constructors = Array.isArray(constructors) ? constructors : [constructors]; |
| 1316 | 1414 | var _iterator = _createForOfIteratorHelper(constructors), |
| 1317 | 1415 | _step; |
| 1318 | 1416 | try { |
| 1319 | 1417 | for (_iterator.s(); !(_step = _iterator.n()).done;) { |
| 1320 | - var constructor = _step.value; | |
| 1321 | - if (object.constructor.name === constructor.prototype[Symbol.toStringTag]) { | |
| 1418 | + var _constructor = _step.value; | |
| 1419 | + if (object.constructor.name === _constructor.prototype[Symbol.toStringTag]) { | |
| 1322 | 1420 | return true; |
| 1323 | 1421 | } |
| 1324 | 1422 | } |
| 1325 | 1423 | } catch (err) { |
| @@ -1328,8 +1426,9 @@ | ||
| 1328 | 1426 | _iterator.f(); |
| 1329 | 1427 | } |
| 1330 | 1428 | return false; |
| 1331 | 1429 | }; |
| 1430 | +exports["default"] = _default; | |
| 1332 | 1431 | |
| 1333 | 1432 | /***/ }), |
| 1334 | 1433 | |
| 1335 | 1434 | /***/ "../assets/dev/js/editor/utils/module.js": |
| @@ -1353,11 +1452,10 @@ | ||
| 1353 | 1452 | $window.on('elementor:init', this.onElementorReady); |
| 1354 | 1453 | }, |
| 1355 | 1454 | // TODO: Delete as soon as possible. |
| 1356 | 1455 | getEditorControlView: function getEditorControlView(name) { |
| 1357 | - var _this$getEditorContro; | |
| 1358 | 1456 | var editor = elementor.getPanelView().getCurrentPageView(); |
| 1359 | - return editor.children.findByModelCid((_this$getEditorContro = this.getEditorControlModel(name)) === null || _this$getEditorContro === void 0 ? void 0 : _this$getEditorContro.cid); | |
| 1457 | + return editor.children.findByModelCid(this.getEditorControlModel(name).cid); | |
| 1360 | 1458 | }, |
| 1361 | 1459 | // TODO: Delete as soon as possible. |
| 1362 | 1460 | getEditorControlModel: function getEditorControlModel(name) { |
| 1363 | 1461 | var editor = elementor.getPanelView().getCurrentPageView(); |
| @@ -1397,9 +1495,9 @@ | ||
| 1397 | 1495 | exports["default"] = void 0; |
| 1398 | 1496 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 1399 | 1497 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1400 | 1498 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 1401 | -var ControlsPopover = exports["default"] = /*#__PURE__*/function () { | |
| 1499 | +var ControlsPopover = /*#__PURE__*/function () { | |
| 1402 | 1500 | function ControlsPopover(child) { |
| 1403 | 1501 | (0, _classCallCheck2.default)(this, ControlsPopover); |
| 1404 | 1502 | this.child = child; |
| 1405 | 1503 | this.$popover = jQuery('<div>', { |
| @@ -1413,9 +1511,9 @@ | ||
| 1413 | 1511 | if ('typography' === this.child.model.attributes.groupType) { |
| 1414 | 1512 | this.createPopoverHeader(); |
| 1415 | 1513 | } |
| 1416 | 1514 | } |
| 1417 | - return (0, _createClass2.default)(ControlsPopover, [{ | |
| 1515 | + (0, _createClass2.default)(ControlsPopover, [{ | |
| 1418 | 1516 | key: "addChild", |
| 1419 | 1517 | value: function addChild(child) { |
| 1420 | 1518 | this.$popover.append(child.$el); |
| 1421 | 1519 | } |
| @@ -1450,9 +1548,8 @@ | ||
| 1450 | 1548 | }, { |
| 1451 | 1549 | key: "onResetButtonClick", |
| 1452 | 1550 | value: function onResetButtonClick() { |
| 1453 | 1551 | this.$popover.hide(); |
| 1454 | - this.$popover.trigger('hide'); | |
| 1455 | 1552 | var groupControlName = this.child.model.get('groupPrefix') + 'typography', |
| 1456 | 1553 | args = { |
| 1457 | 1554 | container: this.child.options.container, |
| 1458 | 1555 | settings: (0, _defineProperty2.default)({}, groupControlName, '') |
| @@ -1497,9 +1594,11 @@ | ||
| 1497 | 1594 | value: function destroy() { |
| 1498 | 1595 | this.$popover.remove(); |
| 1499 | 1596 | } |
| 1500 | 1597 | }]); |
| 1598 | + return ControlsPopover; | |
| 1501 | 1599 | }(); |
| 1600 | +exports["default"] = ControlsPopover; | |
| 1502 | 1601 | |
| 1503 | 1602 | /***/ }), |
| 1504 | 1603 | |
| 1505 | 1604 | /***/ "../assets/dev/js/editor/views/controls-stack.js": |
| @@ -1564,11 +1663,8 @@ | ||
| 1564 | 1663 | this.activateFirstSection(); |
| 1565 | 1664 | } |
| 1566 | 1665 | this.listenTo(elementor.channels.deviceMode, 'change', this.onDeviceModeChange); |
| 1567 | 1666 | }, |
| 1568 | - onDestroy: function onDestroy() { | |
| 1569 | - this.stopListening(elementor.channels.deviceMode, 'change', this.onDeviceModeChange); | |
| 1570 | - }, | |
| 1571 | 1667 | initCollection: function initCollection() { |
| 1572 | 1668 | this.collection = new Backbone.Collection(_.values(elementor.mergeControlsSettings(this.getOption('controls')))); |
| 1573 | 1669 | }, |
| 1574 | 1670 | filter: function filter(controlModel) { |
| @@ -1638,9 +1734,9 @@ | ||
| 1638 | 1734 | activeSectionView = this.children.filter(function (view) { |
| 1639 | 1735 | return activeSection === view.model.get('name'); |
| 1640 | 1736 | }); |
| 1641 | 1737 | if (activeSectionView[0]) { |
| 1642 | - activeSectionView[0].$el.addClass('e-open'); | |
| 1738 | + activeSectionView[0].$el.addClass('elementor-open'); | |
| 1643 | 1739 | var eventNamespace = this.getNamespaceArray(); |
| 1644 | 1740 | eventNamespace.push(activeSection, 'activated'); |
| 1645 | 1741 | elementor.channels.editor.trigger(eventNamespace.join(':'), this); |
| 1646 | 1742 | } |
| @@ -1660,9 +1756,9 @@ | ||
| 1660 | 1756 | this.$el.removeClass('elementor-responsive-switchers-open'); |
| 1661 | 1757 | } |
| 1662 | 1758 | }, |
| 1663 | 1759 | onChildviewControlSectionClicked: function onChildviewControlSectionClicked(childView) { |
| 1664 | - var isSectionOpen = childView.$el.hasClass('e-open'); | |
| 1760 | + var isSectionOpen = childView.$el.hasClass('elementor-open'); | |
| 1665 | 1761 | this.activateSection(isSectionOpen ? null : childView.model.get('name')); |
| 1666 | 1762 | this._renderChildren(); |
| 1667 | 1763 | }, |
| 1668 | 1764 | onChildviewResponsiveSwitcherClick: function onChildviewResponsiveSwitcherClick(childView, device) { |
| @@ -1672,10 +1768,10 @@ | ||
| 1672 | 1768 | } |
| 1673 | 1769 | }, { |
| 1674 | 1770 | handlePopovers: function handlePopovers(view) { |
| 1675 | 1771 | var popover; |
| 1772 | + view.popovers = []; | |
| 1676 | 1773 | this.removePopovers(view); |
| 1677 | - view.popovers = []; | |
| 1678 | 1774 | view.children.each(function (control) { |
| 1679 | 1775 | if (popover) { |
| 1680 | 1776 | popover.addChild(control); |
| 1681 | 1777 | } |
| @@ -1692,15 +1788,15 @@ | ||
| 1692 | 1788 | } |
| 1693 | 1789 | }); |
| 1694 | 1790 | }, |
| 1695 | 1791 | removePopovers: function removePopovers(view) { |
| 1696 | - var _view$popovers; | |
| 1697 | - (_view$popovers = view.popovers) === null || _view$popovers === void 0 || _view$popovers.forEach(function (popover) { | |
| 1792 | + view.popovers.forEach(function (popover) { | |
| 1698 | 1793 | return popover.destroy(); |
| 1699 | 1794 | }); |
| 1700 | 1795 | } |
| 1701 | 1796 | }); |
| 1702 | -var _default = exports["default"] = ControlsStack; | |
| 1797 | +var _default = ControlsStack; | |
| 1798 | +exports["default"] = _default; | |
| 1703 | 1799 | |
| 1704 | 1800 | /***/ }), |
| 1705 | 1801 | |
| 1706 | 1802 | /***/ "../assets/dev/js/modules/imports/args-object.js": |
| @@ -1719,16 +1815,18 @@ | ||
| 1719 | 1815 | exports["default"] = void 0; |
| 1720 | 1816 | var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); |
| 1721 | 1817 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1722 | 1818 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 1819 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1723 | 1820 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 1724 | 1821 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1725 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1726 | 1822 | var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js")); |
| 1727 | 1823 | var _isInstanceof = _interopRequireDefault(__webpack_require__(/*! ../../editor/utils/is-instanceof */ "../assets/dev/js/editor/utils/is-instanceof.js")); |
| 1728 | -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)); } | |
| 1729 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1730 | -var ArgsObject = exports["default"] = /*#__PURE__*/function (_InstanceType) { | |
| 1824 | +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); }; } | |
| 1825 | +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; } } | |
| 1826 | +var ArgsObject = /*#__PURE__*/function (_InstanceType) { | |
| 1827 | + (0, _inherits2.default)(ArgsObject, _InstanceType); | |
| 1828 | + var _super = _createSuper(ArgsObject); | |
| 1731 | 1829 | /** |
| 1732 | 1830 | * Function constructor(). |
| 1733 | 1831 | * |
| 1734 | 1832 | * Create ArgsObject. |
| @@ -1737,9 +1835,9 @@ | ||
| 1737 | 1835 | */ |
| 1738 | 1836 | function ArgsObject(args) { |
| 1739 | 1837 | var _this; |
| 1740 | 1838 | (0, _classCallCheck2.default)(this, ArgsObject); |
| 1741 | - _this = _callSuper(this, ArgsObject); | |
| 1839 | + _this = _super.call(this); | |
| 1742 | 1840 | _this.args = args; |
| 1743 | 1841 | return _this; |
| 1744 | 1842 | } |
| 1745 | 1843 | |
| @@ -1751,11 +1849,11 @@ | ||
| 1751 | 1849 | * @param {string} property |
| 1752 | 1850 | * @param {{}} args |
| 1753 | 1851 | * |
| 1754 | 1852 | * @throws {Error} |
| 1853 | + * | |
| 1755 | 1854 | */ |
| 1756 | - (0, _inherits2.default)(ArgsObject, _InstanceType); | |
| 1757 | - return (0, _createClass2.default)(ArgsObject, [{ | |
| 1855 | + (0, _createClass2.default)(ArgsObject, [{ | |
| 1758 | 1856 | key: "requireArgument", |
| 1759 | 1857 | value: function requireArgument(property) { |
| 1760 | 1858 | var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args; |
| 1761 | 1859 | if (!Object.prototype.hasOwnProperty.call(args, property)) { |
| @@ -1772,8 +1870,9 @@ | ||
| 1772 | 1870 | * @param {string} type |
| 1773 | 1871 | * @param {{}} args |
| 1774 | 1872 | * |
| 1775 | 1873 | * @throws {Error} |
| 1874 | + * | |
| 1776 | 1875 | */ |
| 1777 | 1876 | }, { |
| 1778 | 1877 | key: "requireArgumentType", |
| 1779 | 1878 | value: function requireArgumentType(property, type) { |
| @@ -1793,8 +1892,9 @@ | ||
| 1793 | 1892 | * @param {*} instance |
| 1794 | 1893 | * @param {{}} args |
| 1795 | 1894 | * |
| 1796 | 1895 | * @throws {Error} |
| 1896 | + * | |
| 1797 | 1897 | */ |
| 1798 | 1898 | }, { |
| 1799 | 1899 | key: "requireArgumentInstance", |
| 1800 | 1900 | value: function requireArgumentInstance(property, instance) { |
| @@ -1814,8 +1914,9 @@ | ||
| 1814 | 1914 | * @param {*} type |
| 1815 | 1915 | * @param {{}} args |
| 1816 | 1916 | * |
| 1817 | 1917 | * @throws {Error} |
| 1918 | + * | |
| 1818 | 1919 | */ |
| 1819 | 1920 | }, { |
| 1820 | 1921 | key: "requireArgumentConstructor", |
| 1821 | 1922 | value: function requireArgumentConstructor(property, type) { |
| @@ -1833,9 +1934,11 @@ | ||
| 1833 | 1934 | value: function getInstanceType() { |
| 1834 | 1935 | return 'ArgsObject'; |
| 1835 | 1936 | } |
| 1836 | 1937 | }]); |
| 1938 | + return ArgsObject; | |
| 1837 | 1939 | }(_instanceType.default); |
| 1940 | +exports["default"] = ArgsObject; | |
| 1838 | 1941 | |
| 1839 | 1942 | /***/ }), |
| 1840 | 1943 | |
| 1841 | 1944 | /***/ "../assets/dev/js/modules/imports/instance-type.js": |
| @@ -1853,12 +1956,11 @@ | ||
| 1853 | 1956 | })); |
| 1854 | 1957 | exports["default"] = void 0; |
| 1855 | 1958 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1856 | 1959 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 1960 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 1857 | 1961 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1858 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 1859 | -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; } | |
| 1860 | -var InstanceType = exports["default"] = /*#__PURE__*/function () { | |
| 1962 | +var InstanceType = /*#__PURE__*/function (_Symbol$hasInstance) { | |
| 1861 | 1963 | function InstanceType() { |
| 1862 | 1964 | var _this = this; |
| 1863 | 1965 | (0, _classCallCheck2.default)(this, InstanceType); |
| 1864 | 1966 | // Since anonymous classes sometimes do not get validated by babel, do it manually. |
| @@ -1871,10 +1973,10 @@ | ||
| 1871 | 1973 | prototypes.reverse().forEach(function (proto) { |
| 1872 | 1974 | return _this instanceof proto; |
| 1873 | 1975 | }); |
| 1874 | 1976 | } |
| 1875 | - return (0, _createClass2.default)(InstanceType, null, [{ | |
| 1876 | - key: Symbol.hasInstance, | |
| 1977 | + (0, _createClass2.default)(InstanceType, null, [{ | |
| 1978 | + key: _Symbol$hasInstance, | |
| 1877 | 1979 | value: function value(target) { |
| 1878 | 1980 | /** |
| 1879 | 1981 | * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class |
| 1880 | 1982 | * its give's opportunity to mange capabilities of instanceOf operator. |
| @@ -1879,9 +1981,9 @@ | ||
| 1879 | 1981 | * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class |
| 1880 | 1982 | * its give's opportunity to mange capabilities of instanceOf operator. |
| 1881 | 1983 | * saving current class each time will give option later to handle instanceOf manually. |
| 1882 | 1984 | */ |
| 1883 | - var result = _superPropGet(InstanceType, Symbol.hasInstance, this, 2)([target]); | |
| 1985 | + var result = (0, _get2.default)((0, _getPrototypeOf2.default)(InstanceType), Symbol.hasInstance, this).call(this, target); | |
| 1884 | 1986 | |
| 1885 | 1987 | // Act normal when validate a class, which does not have instance type. |
| 1886 | 1988 | if (target && !target.constructor.getInstanceType) { |
| 1887 | 1989 | return result; |
| @@ -1913,162 +2015,25 @@ | ||
| 1913 | 2015 | value: function getInstanceType() { |
| 1914 | 2016 | elementorModules.ForceMethodImplementation(); |
| 1915 | 2017 | } |
| 1916 | 2018 | }]); |
| 1917 | -}(); | |
| 2019 | + return InstanceType; | |
| 2020 | +}(Symbol.hasInstance); | |
| 2021 | +exports["default"] = InstanceType; | |
| 1918 | 2022 | |
| 1919 | 2023 | /***/ }), |
| 1920 | 2024 | |
| 1921 | -/***/ "../assets/dev/js/utils/introduction.js": | |
| 1922 | -/*!**********************************************!*\ | |
| 1923 | - !*** ../assets/dev/js/utils/introduction.js ***! | |
| 1924 | - \**********************************************/ | |
| 1925 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2025 | +/***/ "@wordpress/i18n": | |
| 2026 | +/*!**************************!*\ | |
| 2027 | + !*** external "wp.i18n" ***! | |
| 2028 | + \**************************/ | |
| 2029 | +/***/ ((module) => { | |
| 1926 | 2030 | |
| 1927 | 2031 | "use strict"; |
| 2032 | +module.exports = wp.i18n; | |
| 1928 | 2033 | |
| 1929 | - | |
| 1930 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1931 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1932 | - value: true | |
| 1933 | -})); | |
| 1934 | -exports["default"] = void 0; | |
| 1935 | -var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 1936 | -var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); | |
| 1937 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1938 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1939 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1940 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1941 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1942 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 1943 | -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)); } | |
| 1944 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1945 | -var _default = exports["default"] = /*#__PURE__*/function (_elementorModules$Mod) { | |
| 1946 | - function _default() { | |
| 1947 | - var _this; | |
| 1948 | - (0, _classCallCheck2.default)(this, _default); | |
| 1949 | - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 1950 | - args[_key] = arguments[_key]; | |
| 1951 | - } | |
| 1952 | - _this = _callSuper(this, _default, [].concat(args)); | |
| 1953 | - (0, _defineProperty2.default)(_this, "introductionMap", null); | |
| 1954 | - _this.initDialog(); | |
| 1955 | - return _this; | |
| 1956 | - } | |
| 1957 | - (0, _inherits2.default)(_default, _elementorModules$Mod); | |
| 1958 | - return (0, _createClass2.default)(_default, [{ | |
| 1959 | - key: "setIntroductionMap", | |
| 1960 | - value: function setIntroductionMap(map) { | |
| 1961 | - this.introductionMap = map; | |
| 1962 | - } | |
| 1963 | - }, { | |
| 1964 | - key: "getIntroductionMap", | |
| 1965 | - value: function getIntroductionMap() { | |
| 1966 | - return this.introductionMap || elementor.config.user.introduction; | |
| 1967 | - } | |
| 1968 | - }, { | |
| 1969 | - key: "getDefaultSettings", | |
| 1970 | - value: function getDefaultSettings() { | |
| 1971 | - return { | |
| 1972 | - dialogType: 'buttons', | |
| 1973 | - dialogOptions: { | |
| 1974 | - effects: { | |
| 1975 | - hide: 'hide', | |
| 1976 | - show: 'show' | |
| 1977 | - }, | |
| 1978 | - hide: { | |
| 1979 | - onBackgroundClick: false | |
| 1980 | - } | |
| 1981 | - } | |
| 1982 | - }; | |
| 1983 | - } | |
| 1984 | - }, { | |
| 1985 | - key: "initDialog", | |
| 1986 | - value: function initDialog() { | |
| 1987 | - var _this2 = this; | |
| 1988 | - var dialog; | |
| 1989 | - this.getDialog = function () { | |
| 1990 | - if (!dialog) { | |
| 1991 | - var settings = _this2.getSettings(); | |
| 1992 | - dialog = elementorCommon.dialogsManager.createWidget(settings.dialogType, settings.dialogOptions); | |
| 1993 | - if (settings.onDialogInitCallback) { | |
| 1994 | - settings.onDialogInitCallback.call(_this2, dialog); | |
| 1995 | - } | |
| 1996 | - } | |
| 1997 | - return dialog; | |
| 1998 | - }; | |
| 1999 | - } | |
| 2000 | - }, { | |
| 2001 | - key: "show", | |
| 2002 | - value: function show(target) { | |
| 2003 | - if (this.introductionViewed) { | |
| 2004 | - return; | |
| 2005 | - } | |
| 2006 | - var dialog = this.getDialog(); | |
| 2007 | - if (target) { | |
| 2008 | - dialog.setSettings('position', { | |
| 2009 | - of: target | |
| 2010 | - }); | |
| 2011 | - } | |
| 2012 | - dialog.show(); | |
| 2013 | - } | |
| 2014 | - }, { | |
| 2015 | - key: "introductionViewed", | |
| 2016 | - get: function get() { | |
| 2017 | - var introductionKey = this.getSettings('introductionKey'); | |
| 2018 | - return this.getIntroductionMap()[introductionKey]; | |
| 2019 | - }, | |
| 2020 | - set: function set(isViewed) { | |
| 2021 | - var introductionKey = this.getSettings('introductionKey'); | |
| 2022 | - this.getIntroductionMap()[introductionKey] = isViewed; | |
| 2023 | - } | |
| 2024 | - }, { | |
| 2025 | - key: "setViewed", | |
| 2026 | - value: function () { | |
| 2027 | - var _setViewed = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() { | |
| 2028 | - var _this3 = this; | |
| 2029 | - return _regenerator.default.wrap(function (_context) { | |
| 2030 | - while (1) switch (_context.prev = _context.next) { | |
| 2031 | - case 0: | |
| 2032 | - this.introductionViewed = true; | |
| 2033 | - return _context.abrupt("return", new Promise(function (resolve, reject) { | |
| 2034 | - elementorCommon.ajax.addRequest('introduction_viewed', { | |
| 2035 | - data: { | |
| 2036 | - introductionKey: _this3.getSettings('introductionKey') | |
| 2037 | - }, | |
| 2038 | - success: resolve, | |
| 2039 | - error: reject | |
| 2040 | - }); | |
| 2041 | - })); | |
| 2042 | - case 1: | |
| 2043 | - case "end": | |
| 2044 | - return _context.stop(); | |
| 2045 | - } | |
| 2046 | - }, _callee, this); | |
| 2047 | - })); | |
| 2048 | - function setViewed() { | |
| 2049 | - return _setViewed.apply(this, arguments); | |
| 2050 | - } | |
| 2051 | - return setViewed; | |
| 2052 | - }() | |
| 2053 | - }]); | |
| 2054 | -}(elementorModules.Module); | |
| 2055 | - | |
| 2056 | 2034 | /***/ }), |
| 2057 | 2035 | |
| 2058 | -/***/ "../node_modules/@babel/runtime/helpers/OverloadYield.js": | |
| 2059 | -/*!***************************************************************!*\ | |
| 2060 | - !*** ../node_modules/@babel/runtime/helpers/OverloadYield.js ***! | |
| 2061 | - \***************************************************************/ | |
| 2062 | -/***/ ((module) => { | |
| 2063 | - | |
| 2064 | -function _OverloadYield(e, d) { | |
| 2065 | - this.v = e, this.k = d; | |
| 2066 | -} | |
| 2067 | -module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2068 | - | |
| 2069 | -/***/ }), | |
| 2070 | - | |
| 2071 | 2036 | /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": |
| 2072 | 2037 | /*!******************************************************************!*\ |
| 2073 | 2038 | !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! |
| 2074 | 2039 | \******************************************************************/ |
| @@ -2073,12 +2038,14 @@ | ||
| 2073 | 2038 | !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! |
| 2074 | 2039 | \******************************************************************/ |
| 2075 | 2040 | /***/ ((module) => { |
| 2076 | 2041 | |
| 2077 | -function _arrayLikeToArray(r, a) { | |
| 2078 | - (null == a || a > r.length) && (a = r.length); | |
| 2079 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 2080 | - return n; | |
| 2042 | +function _arrayLikeToArray(arr, len) { | |
| 2043 | + if (len == null || len > arr.length) len = arr.length; | |
| 2044 | + for (var i = 0, arr2 = new Array(len); i < len; i++) { | |
| 2045 | + arr2[i] = arr[i]; | |
| 2046 | + } | |
| 2047 | + return arr2; | |
| 2081 | 2048 | } |
| 2082 | 2049 | module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2083 | 2050 | |
| 2084 | 2051 | /***/ }), |
| @@ -2088,10 +2055,10 @@ | ||
| 2088 | 2055 | !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! |
| 2089 | 2056 | \****************************************************************/ |
| 2090 | 2057 | /***/ ((module) => { |
| 2091 | 2058 | |
| 2092 | -function _arrayWithHoles(r) { | |
| 2093 | - if (Array.isArray(r)) return r; | |
| 2059 | +function _arrayWithHoles(arr) { | |
| 2060 | + if (Array.isArray(arr)) return arr; | |
| 2094 | 2061 | } |
| 2095 | 2062 | module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2096 | 2063 | |
| 2097 | 2064 | /***/ }), |
| @@ -2101,51 +2068,18 @@ | ||
| 2101 | 2068 | !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! |
| 2102 | 2069 | \***********************************************************************/ |
| 2103 | 2070 | /***/ ((module) => { |
| 2104 | 2071 | |
| 2105 | -function _assertThisInitialized(e) { | |
| 2106 | - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 2107 | - return e; | |
| 2072 | +function _assertThisInitialized(self) { | |
| 2073 | + if (self === void 0) { | |
| 2074 | + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 2075 | + } | |
| 2076 | + return self; | |
| 2108 | 2077 | } |
| 2109 | 2078 | module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2110 | 2079 | |
| 2111 | 2080 | /***/ }), |
| 2112 | 2081 | |
| 2113 | -/***/ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js": | |
| 2114 | -/*!******************************************************************!*\ | |
| 2115 | - !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***! | |
| 2116 | - \******************************************************************/ | |
| 2117 | -/***/ ((module) => { | |
| 2118 | - | |
| 2119 | -function asyncGeneratorStep(n, t, e, r, o, a, c) { | |
| 2120 | - try { | |
| 2121 | - var i = n[a](c), | |
| 2122 | - u = i.value; | |
| 2123 | - } catch (n) { | |
| 2124 | - return void e(n); | |
| 2125 | - } | |
| 2126 | - i.done ? t(u) : Promise.resolve(u).then(r, o); | |
| 2127 | -} | |
| 2128 | -function _asyncToGenerator(n) { | |
| 2129 | - return function () { | |
| 2130 | - var t = this, | |
| 2131 | - e = arguments; | |
| 2132 | - return new Promise(function (r, o) { | |
| 2133 | - var a = n.apply(t, e); | |
| 2134 | - function _next(n) { | |
| 2135 | - asyncGeneratorStep(a, r, o, _next, _throw, "next", n); | |
| 2136 | - } | |
| 2137 | - function _throw(n) { | |
| 2138 | - asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); | |
| 2139 | - } | |
| 2140 | - _next(void 0); | |
| 2141 | - }); | |
| 2142 | - }; | |
| 2143 | -} | |
| 2144 | -module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2145 | - | |
| 2146 | -/***/ }), | |
| 2147 | - | |
| 2148 | 2082 | /***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": |
| 2149 | 2083 | /*!****************************************************************!*\ |
| 2150 | 2084 | !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! |
| 2151 | 2085 | \****************************************************************/ |
| @@ -2150,10 +2084,12 @@ | ||
| 2150 | 2084 | !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! |
| 2151 | 2085 | \****************************************************************/ |
| 2152 | 2086 | /***/ ((module) => { |
| 2153 | 2087 | |
| 2154 | -function _classCallCheck(a, n) { | |
| 2155 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 2088 | +function _classCallCheck(instance, Constructor) { | |
| 2089 | + if (!(instance instanceof Constructor)) { | |
| 2090 | + throw new TypeError("Cannot call a class as a function"); | |
| 2091 | + } | |
| 2156 | 2092 | } |
| 2157 | 2093 | module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2158 | 2094 | |
| 2159 | 2095 | /***/ }), |
| @@ -2163,16 +2099,24 @@ | ||
| 2163 | 2099 | !*** ../node_modules/@babel/runtime/helpers/construct.js ***! |
| 2164 | 2100 | \***********************************************************/ |
| 2165 | 2101 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2166 | 2102 | |
| 2103 | +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 2167 | 2104 | var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js"); |
| 2168 | -var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 2169 | -function _construct(t, e, r) { | |
| 2170 | - if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); | |
| 2171 | - var o = [null]; | |
| 2172 | - o.push.apply(o, e); | |
| 2173 | - var p = new (t.bind.apply(t, o))(); | |
| 2174 | - return r && setPrototypeOf(p, r.prototype), p; | |
| 2105 | +function _construct(Parent, args, Class) { | |
| 2106 | + if (isNativeReflectConstruct()) { | |
| 2107 | + module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2108 | + } else { | |
| 2109 | + module.exports = _construct = function _construct(Parent, args, Class) { | |
| 2110 | + var a = [null]; | |
| 2111 | + a.push.apply(a, args); | |
| 2112 | + var Constructor = Function.bind.apply(Parent, a); | |
| 2113 | + var instance = new Constructor(); | |
| 2114 | + if (Class) setPrototypeOf(instance, Class.prototype); | |
| 2115 | + return instance; | |
| 2116 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2117 | + } | |
| 2118 | + return _construct.apply(null, arguments); | |
| 2175 | 2119 | } |
| 2176 | 2120 | module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2177 | 2121 | |
| 2178 | 2122 | /***/ }), |
| @@ -2180,21 +2124,26 @@ | ||
| 2180 | 2124 | /***/ "../node_modules/@babel/runtime/helpers/createClass.js": |
| 2181 | 2125 | /*!*************************************************************!*\ |
| 2182 | 2126 | !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! |
| 2183 | 2127 | \*************************************************************/ |
| 2184 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2128 | +/***/ ((module) => { | |
| 2185 | 2129 | |
| 2186 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 2187 | -function _defineProperties(e, r) { | |
| 2188 | - for (var t = 0; t < r.length; t++) { | |
| 2189 | - var o = r[t]; | |
| 2190 | - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 2130 | +function _defineProperties(target, props) { | |
| 2131 | + for (var i = 0; i < props.length; i++) { | |
| 2132 | + var descriptor = props[i]; | |
| 2133 | + descriptor.enumerable = descriptor.enumerable || false; | |
| 2134 | + descriptor.configurable = true; | |
| 2135 | + if ("value" in descriptor) descriptor.writable = true; | |
| 2136 | + Object.defineProperty(target, descriptor.key, descriptor); | |
| 2191 | 2137 | } |
| 2192 | 2138 | } |
| 2193 | -function _createClass(e, r, t) { | |
| 2194 | - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | |
| 2195 | - writable: !1 | |
| 2196 | - }), e; | |
| 2139 | +function _createClass(Constructor, protoProps, staticProps) { | |
| 2140 | + if (protoProps) _defineProperties(Constructor.prototype, protoProps); | |
| 2141 | + if (staticProps) _defineProperties(Constructor, staticProps); | |
| 2142 | + Object.defineProperty(Constructor, "prototype", { | |
| 2143 | + writable: false | |
| 2144 | + }); | |
| 2145 | + return Constructor; | |
| 2197 | 2146 | } |
| 2198 | 2147 | module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2199 | 2148 | |
| 2200 | 2149 | /***/ }), |
| @@ -2202,18 +2151,22 @@ | ||
| 2202 | 2151 | /***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": |
| 2203 | 2152 | /*!****************************************************************!*\ |
| 2204 | 2153 | !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! |
| 2205 | 2154 | \****************************************************************/ |
| 2206 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2155 | +/***/ ((module) => { | |
| 2207 | 2156 | |
| 2208 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 2209 | -function _defineProperty(e, r, t) { | |
| 2210 | - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 2211 | - value: t, | |
| 2212 | - enumerable: !0, | |
| 2213 | - configurable: !0, | |
| 2214 | - writable: !0 | |
| 2215 | - }) : e[r] = t, e; | |
| 2157 | +function _defineProperty(obj, key, value) { | |
| 2158 | + if (key in obj) { | |
| 2159 | + Object.defineProperty(obj, key, { | |
| 2160 | + value: value, | |
| 2161 | + enumerable: true, | |
| 2162 | + configurable: true, | |
| 2163 | + writable: true | |
| 2164 | + }); | |
| 2165 | + } else { | |
| 2166 | + obj[key] = value; | |
| 2167 | + } | |
| 2168 | + return obj; | |
| 2216 | 2169 | } |
| 2217 | 2170 | module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2218 | 2171 | |
| 2219 | 2172 | /***/ }), |
| @@ -2225,15 +2178,22 @@ | ||
| 2225 | 2178 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2226 | 2179 | |
| 2227 | 2180 | var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js"); |
| 2228 | 2181 | function _get() { |
| 2229 | - return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { | |
| 2230 | - var p = superPropBase(e, t); | |
| 2231 | - if (p) { | |
| 2232 | - var n = Object.getOwnPropertyDescriptor(p, t); | |
| 2233 | - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; | |
| 2234 | - } | |
| 2235 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments); | |
| 2182 | + if (typeof Reflect !== "undefined" && Reflect.get) { | |
| 2183 | + module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2184 | + } else { | |
| 2185 | + module.exports = _get = function _get(target, property, receiver) { | |
| 2186 | + var base = superPropBase(target, property); | |
| 2187 | + if (!base) return; | |
| 2188 | + var desc = Object.getOwnPropertyDescriptor(base, property); | |
| 2189 | + if (desc.get) { | |
| 2190 | + return desc.get.call(arguments.length < 3 ? target : receiver); | |
| 2191 | + } | |
| 2192 | + return desc.value; | |
| 2193 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2194 | + } | |
| 2195 | + return _get.apply(this, arguments); | |
| 2236 | 2196 | } |
| 2237 | 2197 | module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2238 | 2198 | |
| 2239 | 2199 | /***/ }), |
| @@ -2243,12 +2203,13 @@ | ||
| 2243 | 2203 | !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! |
| 2244 | 2204 | \****************************************************************/ |
| 2245 | 2205 | /***/ ((module) => { |
| 2246 | 2206 | |
| 2247 | -function _getPrototypeOf(t) { | |
| 2248 | - return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { | |
| 2249 | - return t.__proto__ || Object.getPrototypeOf(t); | |
| 2250 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); | |
| 2207 | +function _getPrototypeOf(o) { | |
| 2208 | + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { | |
| 2209 | + return o.__proto__ || Object.getPrototypeOf(o); | |
| 2210 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2211 | + return _getPrototypeOf(o); | |
| 2251 | 2212 | } |
| 2252 | 2213 | module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2253 | 2214 | |
| 2254 | 2215 | /***/ }), |
| @@ -2259,19 +2220,23 @@ | ||
| 2259 | 2220 | \**********************************************************/ |
| 2260 | 2221 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2261 | 2222 | |
| 2262 | 2223 | var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); |
| 2263 | -function _inherits(t, e) { | |
| 2264 | - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 2265 | - t.prototype = Object.create(e && e.prototype, { | |
| 2224 | +function _inherits(subClass, superClass) { | |
| 2225 | + if (typeof superClass !== "function" && superClass !== null) { | |
| 2226 | + throw new TypeError("Super expression must either be null or a function"); | |
| 2227 | + } | |
| 2228 | + subClass.prototype = Object.create(superClass && superClass.prototype, { | |
| 2266 | 2229 | constructor: { |
| 2267 | - value: t, | |
| 2268 | - writable: !0, | |
| 2269 | - configurable: !0 | |
| 2230 | + value: subClass, | |
| 2231 | + writable: true, | |
| 2232 | + configurable: true | |
| 2270 | 2233 | } |
| 2271 | - }), Object.defineProperty(t, "prototype", { | |
| 2272 | - writable: !1 | |
| 2273 | - }), e && setPrototypeOf(t, e); | |
| 2234 | + }); | |
| 2235 | + Object.defineProperty(subClass, "prototype", { | |
| 2236 | + writable: false | |
| 2237 | + }); | |
| 2238 | + if (superClass) setPrototypeOf(subClass, superClass); | |
| 2274 | 2239 | } |
| 2275 | 2240 | module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2276 | 2241 | |
| 2277 | 2242 | /***/ }), |
| @@ -2281,11 +2246,11 @@ | ||
| 2281 | 2246 | !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! |
| 2282 | 2247 | \***********************************************************************/ |
| 2283 | 2248 | /***/ ((module) => { |
| 2284 | 2249 | |
| 2285 | -function _interopRequireDefault(e) { | |
| 2286 | - return e && e.__esModule ? e : { | |
| 2287 | - "default": e | |
| 2250 | +function _interopRequireDefault(obj) { | |
| 2251 | + return obj && obj.__esModule ? obj : { | |
| 2252 | + "default": obj | |
| 2288 | 2253 | }; |
| 2289 | 2254 | } |
| 2290 | 2255 | module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2291 | 2256 | |
| @@ -2296,14 +2261,10 @@ | ||
| 2296 | 2261 | !*** ../node_modules/@babel/runtime/helpers/isNativeFunction.js ***! |
| 2297 | 2262 | \******************************************************************/ |
| 2298 | 2263 | /***/ ((module) => { |
| 2299 | 2264 | |
| 2300 | -function _isNativeFunction(t) { | |
| 2301 | - try { | |
| 2302 | - return -1 !== Function.toString.call(t).indexOf("[native code]"); | |
| 2303 | - } catch (n) { | |
| 2304 | - return "function" == typeof t; | |
| 2305 | - } | |
| 2265 | +function _isNativeFunction(fn) { | |
| 2266 | + return Function.toString.call(fn).indexOf("[native code]") !== -1; | |
| 2306 | 2267 | } |
| 2307 | 2268 | module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2308 | 2269 | |
| 2309 | 2270 | /***/ }), |
| @@ -2314,14 +2275,17 @@ | ||
| 2314 | 2275 | \**************************************************************************/ |
| 2315 | 2276 | /***/ ((module) => { |
| 2316 | 2277 | |
| 2317 | 2278 | function _isNativeReflectConstruct() { |
| 2279 | + if (typeof Reflect === "undefined" || !Reflect.construct) return false; | |
| 2280 | + if (Reflect.construct.sham) return false; | |
| 2281 | + if (typeof Proxy === "function") return true; | |
| 2318 | 2282 | try { |
| 2319 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | |
| 2320 | - } catch (t) {} | |
| 2321 | - return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() { | |
| 2322 | - return !!t; | |
| 2323 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 2283 | + Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | |
| 2284 | + return true; | |
| 2285 | + } catch (e) { | |
| 2286 | + return false; | |
| 2287 | + } | |
| 2324 | 2288 | } |
| 2325 | 2289 | module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2326 | 2290 | |
| 2327 | 2291 | /***/ }), |
| @@ -2331,34 +2295,31 @@ | ||
| 2331 | 2295 | !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! |
| 2332 | 2296 | \**********************************************************************/ |
| 2333 | 2297 | /***/ ((module) => { |
| 2334 | 2298 | |
| 2335 | -function _iterableToArrayLimit(r, l) { | |
| 2336 | - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 2337 | - if (null != t) { | |
| 2338 | - var e, | |
| 2339 | - n, | |
| 2340 | - i, | |
| 2341 | - u, | |
| 2342 | - a = [], | |
| 2343 | - f = !0, | |
| 2344 | - o = !1; | |
| 2299 | +function _iterableToArrayLimit(arr, i) { | |
| 2300 | + var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; | |
| 2301 | + if (_i == null) return; | |
| 2302 | + var _arr = []; | |
| 2303 | + var _n = true; | |
| 2304 | + var _d = false; | |
| 2305 | + var _s, _e; | |
| 2306 | + try { | |
| 2307 | + for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { | |
| 2308 | + _arr.push(_s.value); | |
| 2309 | + if (i && _arr.length === i) break; | |
| 2310 | + } | |
| 2311 | + } catch (err) { | |
| 2312 | + _d = true; | |
| 2313 | + _e = err; | |
| 2314 | + } finally { | |
| 2345 | 2315 | try { |
| 2346 | - if (i = (t = t.call(r)).next, 0 === l) { | |
| 2347 | - if (Object(t) !== t) return; | |
| 2348 | - f = !1; | |
| 2349 | - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 2350 | - } catch (r) { | |
| 2351 | - o = !0, n = r; | |
| 2316 | + if (!_n && _i["return"] != null) _i["return"](); | |
| 2352 | 2317 | } finally { |
| 2353 | - try { | |
| 2354 | - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 2355 | - } finally { | |
| 2356 | - if (o) throw n; | |
| 2357 | - } | |
| 2318 | + if (_d) throw _e; | |
| 2358 | 2319 | } |
| 2359 | - return a; | |
| 2360 | 2320 | } |
| 2321 | + return _arr; | |
| 2361 | 2322 | } |
| 2362 | 2323 | module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2363 | 2324 | |
| 2364 | 2325 | /***/ }), |
| @@ -2383,366 +2344,20 @@ | ||
| 2383 | 2344 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2384 | 2345 | |
| 2385 | 2346 | var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 2386 | 2347 | var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); |
| 2387 | -function _possibleConstructorReturn(t, e) { | |
| 2388 | - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 2389 | - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 2390 | - return assertThisInitialized(t); | |
| 2348 | +function _possibleConstructorReturn(self, call) { | |
| 2349 | + if (call && (_typeof(call) === "object" || typeof call === "function")) { | |
| 2350 | + return call; | |
| 2351 | + } else if (call !== void 0) { | |
| 2352 | + throw new TypeError("Derived constructors may only return object or undefined"); | |
| 2353 | + } | |
| 2354 | + return assertThisInitialized(self); | |
| 2391 | 2355 | } |
| 2392 | 2356 | module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2393 | 2357 | |
| 2394 | 2358 | /***/ }), |
| 2395 | 2359 | |
| 2396 | -/***/ "../node_modules/@babel/runtime/helpers/readOnlyError.js": | |
| 2397 | -/*!***************************************************************!*\ | |
| 2398 | - !*** ../node_modules/@babel/runtime/helpers/readOnlyError.js ***! | |
| 2399 | - \***************************************************************/ | |
| 2400 | -/***/ ((module) => { | |
| 2401 | - | |
| 2402 | -function _readOnlyError(r) { | |
| 2403 | - throw new TypeError('"' + r + '" is read-only'); | |
| 2404 | -} | |
| 2405 | -module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2406 | - | |
| 2407 | -/***/ }), | |
| 2408 | - | |
| 2409 | -/***/ "../node_modules/@babel/runtime/helpers/regenerator.js": | |
| 2410 | -/*!*************************************************************!*\ | |
| 2411 | - !*** ../node_modules/@babel/runtime/helpers/regenerator.js ***! | |
| 2412 | - \*************************************************************/ | |
| 2413 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2414 | - | |
| 2415 | -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js"); | |
| 2416 | -function _regenerator() { | |
| 2417 | - /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ | |
| 2418 | - var e, | |
| 2419 | - t, | |
| 2420 | - r = "function" == typeof Symbol ? Symbol : {}, | |
| 2421 | - n = r.iterator || "@@iterator", | |
| 2422 | - o = r.toStringTag || "@@toStringTag"; | |
| 2423 | - function i(r, n, o, i) { | |
| 2424 | - var c = n && n.prototype instanceof Generator ? n : Generator, | |
| 2425 | - u = Object.create(c.prototype); | |
| 2426 | - return regeneratorDefine(u, "_invoke", function (r, n, o) { | |
| 2427 | - var i, | |
| 2428 | - c, | |
| 2429 | - u, | |
| 2430 | - f = 0, | |
| 2431 | - p = o || [], | |
| 2432 | - y = !1, | |
| 2433 | - G = { | |
| 2434 | - p: 0, | |
| 2435 | - n: 0, | |
| 2436 | - v: e, | |
| 2437 | - a: d, | |
| 2438 | - f: d.bind(e, 4), | |
| 2439 | - d: function d(t, r) { | |
| 2440 | - return i = t, c = 0, u = e, G.n = r, a; | |
| 2441 | - } | |
| 2442 | - }; | |
| 2443 | - function d(r, n) { | |
| 2444 | - for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { | |
| 2445 | - var o, | |
| 2446 | - i = p[t], | |
| 2447 | - d = G.p, | |
| 2448 | - l = i[2]; | |
| 2449 | - r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); | |
| 2450 | - } | |
| 2451 | - if (o || r > 1) return a; | |
| 2452 | - throw y = !0, n; | |
| 2453 | - } | |
| 2454 | - return function (o, p, l) { | |
| 2455 | - if (f > 1) throw TypeError("Generator is already running"); | |
| 2456 | - for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { | |
| 2457 | - i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); | |
| 2458 | - try { | |
| 2459 | - if (f = 2, i) { | |
| 2460 | - if (c || (o = "next"), t = i[o]) { | |
| 2461 | - if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); | |
| 2462 | - if (!t.done) return t; | |
| 2463 | - u = t.value, c < 2 && (c = 0); | |
| 2464 | - } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); | |
| 2465 | - i = e; | |
| 2466 | - } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; | |
| 2467 | - } catch (t) { | |
| 2468 | - i = e, c = 1, u = t; | |
| 2469 | - } finally { | |
| 2470 | - f = 1; | |
| 2471 | - } | |
| 2472 | - } | |
| 2473 | - return { | |
| 2474 | - value: t, | |
| 2475 | - done: y | |
| 2476 | - }; | |
| 2477 | - }; | |
| 2478 | - }(r, o, i), !0), u; | |
| 2479 | - } | |
| 2480 | - var a = {}; | |
| 2481 | - function Generator() {} | |
| 2482 | - function GeneratorFunction() {} | |
| 2483 | - function GeneratorFunctionPrototype() {} | |
| 2484 | - t = Object.getPrototypeOf; | |
| 2485 | - var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function () { | |
| 2486 | - return this; | |
| 2487 | - }), t), | |
| 2488 | - u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); | |
| 2489 | - function f(e) { | |
| 2490 | - return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; | |
| 2491 | - } | |
| 2492 | - return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine(u), regeneratorDefine(u, o, "Generator"), regeneratorDefine(u, n, function () { | |
| 2493 | - return this; | |
| 2494 | - }), regeneratorDefine(u, "toString", function () { | |
| 2495 | - return "[object Generator]"; | |
| 2496 | - }), (module.exports = _regenerator = function _regenerator() { | |
| 2497 | - return { | |
| 2498 | - w: i, | |
| 2499 | - m: f | |
| 2500 | - }; | |
| 2501 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 2502 | -} | |
| 2503 | -module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2504 | - | |
| 2505 | -/***/ }), | |
| 2506 | - | |
| 2507 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js": | |
| 2508 | -/*!******************************************************************!*\ | |
| 2509 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsync.js ***! | |
| 2510 | - \******************************************************************/ | |
| 2511 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2512 | - | |
| 2513 | -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js"); | |
| 2514 | -function _regeneratorAsync(n, e, r, t, o) { | |
| 2515 | - var a = regeneratorAsyncGen(n, e, r, t, o); | |
| 2516 | - return a.next().then(function (n) { | |
| 2517 | - return n.done ? n.value : a.next(); | |
| 2518 | - }); | |
| 2519 | -} | |
| 2520 | -module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2521 | - | |
| 2522 | -/***/ }), | |
| 2523 | - | |
| 2524 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js": | |
| 2525 | -/*!*********************************************************************!*\ | |
| 2526 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js ***! | |
| 2527 | - \*********************************************************************/ | |
| 2528 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2529 | - | |
| 2530 | -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js"); | |
| 2531 | -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js"); | |
| 2532 | -function _regeneratorAsyncGen(r, e, t, o, n) { | |
| 2533 | - return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise); | |
| 2534 | -} | |
| 2535 | -module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2536 | - | |
| 2537 | -/***/ }), | |
| 2538 | - | |
| 2539 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js": | |
| 2540 | -/*!**************************************************************************!*\ | |
| 2541 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js ***! | |
| 2542 | - \**************************************************************************/ | |
| 2543 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2544 | - | |
| 2545 | -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js"); | |
| 2546 | -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js"); | |
| 2547 | -function AsyncIterator(t, e) { | |
| 2548 | - function n(r, o, i, f) { | |
| 2549 | - try { | |
| 2550 | - var c = t[r](o), | |
| 2551 | - u = c.value; | |
| 2552 | - return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) { | |
| 2553 | - n("next", t, i, f); | |
| 2554 | - }, function (t) { | |
| 2555 | - n("throw", t, i, f); | |
| 2556 | - }) : e.resolve(u).then(function (t) { | |
| 2557 | - c.value = t, i(c); | |
| 2558 | - }, function (t) { | |
| 2559 | - return n("throw", t, i, f); | |
| 2560 | - }); | |
| 2561 | - } catch (t) { | |
| 2562 | - f(t); | |
| 2563 | - } | |
| 2564 | - } | |
| 2565 | - var r; | |
| 2566 | - this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { | |
| 2567 | - return this; | |
| 2568 | - })), regeneratorDefine(this, "_invoke", function (t, o, i) { | |
| 2569 | - function f() { | |
| 2570 | - return new e(function (e, r) { | |
| 2571 | - n(t, i, e, r); | |
| 2572 | - }); | |
| 2573 | - } | |
| 2574 | - return r = r ? r.then(f, f) : f(); | |
| 2575 | - }, !0); | |
| 2576 | -} | |
| 2577 | -module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2578 | - | |
| 2579 | -/***/ }), | |
| 2580 | - | |
| 2581 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js": | |
| 2582 | -/*!*******************************************************************!*\ | |
| 2583 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorDefine.js ***! | |
| 2584 | - \*******************************************************************/ | |
| 2585 | -/***/ ((module) => { | |
| 2586 | - | |
| 2587 | -function _regeneratorDefine(e, r, n, t) { | |
| 2588 | - var i = Object.defineProperty; | |
| 2589 | - try { | |
| 2590 | - i({}, "", {}); | |
| 2591 | - } catch (e) { | |
| 2592 | - i = 0; | |
| 2593 | - } | |
| 2594 | - module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) { | |
| 2595 | - function o(r, n) { | |
| 2596 | - _regeneratorDefine(e, r, function (e) { | |
| 2597 | - return this._invoke(r, n, e); | |
| 2598 | - }); | |
| 2599 | - } | |
| 2600 | - r ? i ? i(e, r, { | |
| 2601 | - value: n, | |
| 2602 | - enumerable: !t, | |
| 2603 | - configurable: !t, | |
| 2604 | - writable: !t | |
| 2605 | - }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); | |
| 2606 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t); | |
| 2607 | -} | |
| 2608 | -module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2609 | - | |
| 2610 | -/***/ }), | |
| 2611 | - | |
| 2612 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js": | |
| 2613 | -/*!*****************************************************************!*\ | |
| 2614 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorKeys.js ***! | |
| 2615 | - \*****************************************************************/ | |
| 2616 | -/***/ ((module) => { | |
| 2617 | - | |
| 2618 | -function _regeneratorKeys(e) { | |
| 2619 | - var n = Object(e), | |
| 2620 | - r = []; | |
| 2621 | - for (var t in n) r.unshift(t); | |
| 2622 | - return function e() { | |
| 2623 | - for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; | |
| 2624 | - return e.done = !0, e; | |
| 2625 | - }; | |
| 2626 | -} | |
| 2627 | -module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2628 | - | |
| 2629 | -/***/ }), | |
| 2630 | - | |
| 2631 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js": | |
| 2632 | -/*!********************************************************************!*\ | |
| 2633 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! | |
| 2634 | - \********************************************************************/ | |
| 2635 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2636 | - | |
| 2637 | -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js"); | |
| 2638 | -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js"); | |
| 2639 | -var regeneratorAsync = __webpack_require__(/*! ./regeneratorAsync.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js"); | |
| 2640 | -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js"); | |
| 2641 | -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js"); | |
| 2642 | -var regeneratorKeys = __webpack_require__(/*! ./regeneratorKeys.js */ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js"); | |
| 2643 | -var regeneratorValues = __webpack_require__(/*! ./regeneratorValues.js */ "../node_modules/@babel/runtime/helpers/regeneratorValues.js"); | |
| 2644 | -function _regeneratorRuntime() { | |
| 2645 | - "use strict"; | |
| 2646 | - | |
| 2647 | - var r = regenerator(), | |
| 2648 | - e = r.m(_regeneratorRuntime), | |
| 2649 | - t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor; | |
| 2650 | - function n(r) { | |
| 2651 | - var e = "function" == typeof r && r.constructor; | |
| 2652 | - return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); | |
| 2653 | - } | |
| 2654 | - var o = { | |
| 2655 | - "throw": 1, | |
| 2656 | - "return": 2, | |
| 2657 | - "break": 3, | |
| 2658 | - "continue": 3 | |
| 2659 | - }; | |
| 2660 | - function a(r) { | |
| 2661 | - var e, t; | |
| 2662 | - return function (n) { | |
| 2663 | - e || (e = { | |
| 2664 | - stop: function stop() { | |
| 2665 | - return t(n.a, 2); | |
| 2666 | - }, | |
| 2667 | - "catch": function _catch() { | |
| 2668 | - return n.v; | |
| 2669 | - }, | |
| 2670 | - abrupt: function abrupt(r, e) { | |
| 2671 | - return t(n.a, o[r], e); | |
| 2672 | - }, | |
| 2673 | - delegateYield: function delegateYield(r, o, a) { | |
| 2674 | - return e.resultName = o, t(n.d, regeneratorValues(r), a); | |
| 2675 | - }, | |
| 2676 | - finish: function finish(r) { | |
| 2677 | - return t(n.f, r); | |
| 2678 | - } | |
| 2679 | - }, t = function t(r, _t, o) { | |
| 2680 | - n.p = e.prev, n.n = e.next; | |
| 2681 | - try { | |
| 2682 | - return r(_t, o); | |
| 2683 | - } finally { | |
| 2684 | - e.next = n.n; | |
| 2685 | - } | |
| 2686 | - }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; | |
| 2687 | - try { | |
| 2688 | - return r.call(this, e); | |
| 2689 | - } finally { | |
| 2690 | - n.p = e.prev, n.n = e.next; | |
| 2691 | - } | |
| 2692 | - }; | |
| 2693 | - } | |
| 2694 | - return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() { | |
| 2695 | - return { | |
| 2696 | - wrap: function wrap(e, t, n, o) { | |
| 2697 | - return r.w(a(e), t, n, o && o.reverse()); | |
| 2698 | - }, | |
| 2699 | - isGeneratorFunction: n, | |
| 2700 | - mark: r.m, | |
| 2701 | - awrap: function awrap(r, e) { | |
| 2702 | - return new OverloadYield(r, e); | |
| 2703 | - }, | |
| 2704 | - AsyncIterator: regeneratorAsyncIterator, | |
| 2705 | - async: function async(r, e, t, o, u) { | |
| 2706 | - return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u); | |
| 2707 | - }, | |
| 2708 | - keys: regeneratorKeys, | |
| 2709 | - values: regeneratorValues | |
| 2710 | - }; | |
| 2711 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 2712 | -} | |
| 2713 | -module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2714 | - | |
| 2715 | -/***/ }), | |
| 2716 | - | |
| 2717 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorValues.js": | |
| 2718 | -/*!*******************************************************************!*\ | |
| 2719 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorValues.js ***! | |
| 2720 | - \*******************************************************************/ | |
| 2721 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2722 | - | |
| 2723 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 2724 | -function _regeneratorValues(e) { | |
| 2725 | - if (null != e) { | |
| 2726 | - var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], | |
| 2727 | - r = 0; | |
| 2728 | - if (t) return t.call(e); | |
| 2729 | - if ("function" == typeof e.next) return e; | |
| 2730 | - if (!isNaN(e.length)) return { | |
| 2731 | - next: function next() { | |
| 2732 | - return e && r >= e.length && (e = void 0), { | |
| 2733 | - value: e && e[r++], | |
| 2734 | - done: !e | |
| 2735 | - }; | |
| 2736 | - } | |
| 2737 | - }; | |
| 2738 | - } | |
| 2739 | - throw new TypeError(_typeof(e) + " is not iterable"); | |
| 2740 | -} | |
| 2741 | -module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2742 | - | |
| 2743 | -/***/ }), | |
| 2744 | - | |
| 2745 | 2360 | /***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": |
| 2746 | 2361 | /*!****************************************************************!*\ |
| 2747 | 2362 | !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! |
| 2748 | 2363 | \****************************************************************/ |
| @@ -2747,12 +2362,14 @@ | ||
| 2747 | 2362 | !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! |
| 2748 | 2363 | \****************************************************************/ |
| 2749 | 2364 | /***/ ((module) => { |
| 2750 | 2365 | |
| 2751 | -function _setPrototypeOf(t, e) { | |
| 2752 | - return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { | |
| 2753 | - return t.__proto__ = e, t; | |
| 2754 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); | |
| 2366 | +function _setPrototypeOf(o, p) { | |
| 2367 | + module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { | |
| 2368 | + o.__proto__ = p; | |
| 2369 | + return o; | |
| 2370 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2371 | + return _setPrototypeOf(o, p); | |
| 2755 | 2372 | } |
| 2756 | 2373 | module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2757 | 2374 | |
| 2758 | 2375 | /***/ }), |
| @@ -2766,10 +2383,10 @@ | ||
| 2766 | 2383 | var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); |
| 2767 | 2384 | var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); |
| 2768 | 2385 | var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); |
| 2769 | 2386 | var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); |
| 2770 | -function _slicedToArray(r, e) { | |
| 2771 | - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | |
| 2387 | +function _slicedToArray(arr, i) { | |
| 2388 | + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); | |
| 2772 | 2389 | } |
| 2773 | 2390 | module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2774 | 2391 | |
| 2775 | 2392 | /***/ }), |
| @@ -2780,53 +2397,19 @@ | ||
| 2780 | 2397 | \***************************************************************/ |
| 2781 | 2398 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2782 | 2399 | |
| 2783 | 2400 | var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); |
| 2784 | -function _superPropBase(t, o) { | |
| 2785 | - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); | |
| 2786 | - return t; | |
| 2401 | +function _superPropBase(object, property) { | |
| 2402 | + while (!Object.prototype.hasOwnProperty.call(object, property)) { | |
| 2403 | + object = getPrototypeOf(object); | |
| 2404 | + if (object === null) break; | |
| 2405 | + } | |
| 2406 | + return object; | |
| 2787 | 2407 | } |
| 2788 | 2408 | module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2789 | 2409 | |
| 2790 | 2410 | /***/ }), |
| 2791 | 2411 | |
| 2792 | -/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 2793 | -/*!*************************************************************!*\ | |
| 2794 | - !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 2795 | - \*************************************************************/ | |
| 2796 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2797 | - | |
| 2798 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 2799 | -function toPrimitive(t, r) { | |
| 2800 | - if ("object" != _typeof(t) || !t) return t; | |
| 2801 | - var e = t[Symbol.toPrimitive]; | |
| 2802 | - if (void 0 !== e) { | |
| 2803 | - var i = e.call(t, r || "default"); | |
| 2804 | - if ("object" != _typeof(i)) return i; | |
| 2805 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 2806 | - } | |
| 2807 | - return ("string" === r ? String : Number)(t); | |
| 2808 | -} | |
| 2809 | -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2810 | - | |
| 2811 | -/***/ }), | |
| 2812 | - | |
| 2813 | -/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 2814 | -/*!***************************************************************!*\ | |
| 2815 | - !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 2816 | - \***************************************************************/ | |
| 2817 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2818 | - | |
| 2819 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 2820 | -var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 2821 | -function toPropertyKey(t) { | |
| 2822 | - var i = toPrimitive(t, "string"); | |
| 2823 | - return "symbol" == _typeof(i) ? i : i + ""; | |
| 2824 | -} | |
| 2825 | -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2826 | - | |
| 2827 | -/***/ }), | |
| 2828 | - | |
| 2829 | 2412 | /***/ "../node_modules/@babel/runtime/helpers/typeof.js": |
| 2830 | 2413 | /*!********************************************************!*\ |
| 2831 | 2414 | !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! |
| 2832 | 2415 | \********************************************************/ |
| @@ -2831,16 +2414,16 @@ | ||
| 2831 | 2414 | !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! |
| 2832 | 2415 | \********************************************************/ |
| 2833 | 2416 | /***/ ((module) => { |
| 2834 | 2417 | |
| 2835 | -function _typeof(o) { | |
| 2418 | +function _typeof(obj) { | |
| 2836 | 2419 | "@babel/helpers - typeof"; |
| 2837 | 2420 | |
| 2838 | - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 2839 | - return typeof o; | |
| 2840 | - } : function (o) { | |
| 2841 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 2842 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 2421 | + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { | |
| 2422 | + return typeof obj; | |
| 2423 | + } : function (obj) { | |
| 2424 | + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | |
| 2425 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); | |
| 2843 | 2426 | } |
| 2844 | 2427 | module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2845 | 2428 | |
| 2846 | 2429 | /***/ }), |
| @@ -2851,14 +2434,15 @@ | ||
| 2851 | 2434 | \****************************************************************************/ |
| 2852 | 2435 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2853 | 2436 | |
| 2854 | 2437 | var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); |
| 2855 | -function _unsupportedIterableToArray(r, a) { | |
| 2856 | - if (r) { | |
| 2857 | - if ("string" == typeof r) return arrayLikeToArray(r, a); | |
| 2858 | - var t = {}.toString.call(r).slice(8, -1); | |
| 2859 | - 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; | |
| 2860 | - } | |
| 2438 | +function _unsupportedIterableToArray(o, minLen) { | |
| 2439 | + if (!o) return; | |
| 2440 | + if (typeof o === "string") return arrayLikeToArray(o, minLen); | |
| 2441 | + var n = Object.prototype.toString.call(o).slice(8, -1); | |
| 2442 | + if (n === "Object" && o.constructor) n = o.constructor.name; | |
| 2443 | + if (n === "Map" || n === "Set") return Array.from(o); | |
| 2444 | + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); | |
| 2861 | 2445 | } |
| 2862 | 2446 | module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2863 | 2447 | |
| 2864 | 2448 | /***/ }), |
| @@ -2872,68 +2456,36 @@ | ||
| 2872 | 2456 | var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); |
| 2873 | 2457 | var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); |
| 2874 | 2458 | var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ "../node_modules/@babel/runtime/helpers/isNativeFunction.js"); |
| 2875 | 2459 | var construct = __webpack_require__(/*! ./construct.js */ "../node_modules/@babel/runtime/helpers/construct.js"); |
| 2876 | -function _wrapNativeSuper(t) { | |
| 2877 | - var r = "function" == typeof Map ? new Map() : void 0; | |
| 2878 | - return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) { | |
| 2879 | - if (null === t || !isNativeFunction(t)) return t; | |
| 2880 | - if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function"); | |
| 2881 | - if (void 0 !== r) { | |
| 2882 | - if (r.has(t)) return r.get(t); | |
| 2883 | - r.set(t, Wrapper); | |
| 2460 | +function _wrapNativeSuper(Class) { | |
| 2461 | + var _cache = typeof Map === "function" ? new Map() : undefined; | |
| 2462 | + module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) { | |
| 2463 | + if (Class === null || !isNativeFunction(Class)) return Class; | |
| 2464 | + if (typeof Class !== "function") { | |
| 2465 | + throw new TypeError("Super expression must either be null or a function"); | |
| 2884 | 2466 | } |
| 2467 | + if (typeof _cache !== "undefined") { | |
| 2468 | + if (_cache.has(Class)) return _cache.get(Class); | |
| 2469 | + _cache.set(Class, Wrapper); | |
| 2470 | + } | |
| 2885 | 2471 | function Wrapper() { |
| 2886 | - return construct(t, arguments, getPrototypeOf(this).constructor); | |
| 2472 | + return construct(Class, arguments, getPrototypeOf(this).constructor); | |
| 2887 | 2473 | } |
| 2888 | - return Wrapper.prototype = Object.create(t.prototype, { | |
| 2474 | + Wrapper.prototype = Object.create(Class.prototype, { | |
| 2889 | 2475 | constructor: { |
| 2890 | 2476 | value: Wrapper, |
| 2891 | - enumerable: !1, | |
| 2892 | - writable: !0, | |
| 2893 | - configurable: !0 | |
| 2477 | + enumerable: false, | |
| 2478 | + writable: true, | |
| 2479 | + configurable: true | |
| 2894 | 2480 | } |
| 2895 | - }), setPrototypeOf(Wrapper, t); | |
| 2896 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t); | |
| 2481 | + }); | |
| 2482 | + return setPrototypeOf(Wrapper, Class); | |
| 2483 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2484 | + return _wrapNativeSuper(Class); | |
| 2897 | 2485 | } |
| 2898 | 2486 | module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2899 | 2487 | |
| 2900 | -/***/ }), | |
| 2901 | - | |
| 2902 | -/***/ "../node_modules/@babel/runtime/regenerator/index.js": | |
| 2903 | -/*!***********************************************************!*\ | |
| 2904 | - !*** ../node_modules/@babel/runtime/regenerator/index.js ***! | |
| 2905 | - \***********************************************************/ | |
| 2906 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2907 | - | |
| 2908 | -// TODO(Babel 8): Remove this file. | |
| 2909 | - | |
| 2910 | -var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js")(); | |
| 2911 | -module.exports = runtime; | |
| 2912 | - | |
| 2913 | -// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736= | |
| 2914 | -try { | |
| 2915 | - regeneratorRuntime = runtime; | |
| 2916 | -} catch (accidentalStrictMode) { | |
| 2917 | - if (typeof globalThis === "object") { | |
| 2918 | - globalThis.regeneratorRuntime = runtime; | |
| 2919 | - } else { | |
| 2920 | - Function("r", "regeneratorRuntime = r")(runtime); | |
| 2921 | - } | |
| 2922 | -} | |
| 2923 | - | |
| 2924 | - | |
| 2925 | -/***/ }), | |
| 2926 | - | |
| 2927 | -/***/ "@wordpress/i18n": | |
| 2928 | -/*!**************************!*\ | |
| 2929 | - !*** external "wp.i18n" ***! | |
| 2930 | - \**************************/ | |
| 2931 | -/***/ ((module) => { | |
| 2932 | - | |
| 2933 | -"use strict"; | |
| 2934 | -module.exports = wp.i18n; | |
| 2935 | - | |
| 2936 | 2488 | /***/ }) |
| 2937 | 2489 | |
| 2938 | 2490 | /******/ }); |
| 2939 | 2491 | /************************************************************************/ |
| @@ -2962,9 +2514,9 @@ | ||
| 2962 | 2514 | /******/ } |
| 2963 | 2515 | /******/ |
| 2964 | 2516 | /************************************************************************/ |
| 2965 | 2517 | var __webpack_exports__ = {}; |
| 2966 | -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. | |
| 2518 | +// This entry need to be wrapped in an IIFE because it need to be in strict mode. | |
| 2967 | 2519 | (() => { |
| 2968 | 2520 | "use strict"; |
| 2969 | 2521 | /*!******************************************!*\ |
| 2970 | 2522 | !*** ../assets/dev/js/editor/modules.js ***! |
| @@ -2972,9 +2524,9 @@ | ||
| 2972 | 2524 | |
| 2973 | 2525 | |
| 2974 | 2526 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 2975 | 2527 | var _module = _interopRequireDefault(__webpack_require__(/*! ./utils/module */ "../assets/dev/js/editor/utils/module.js")); |
| 2976 | -var _introduction = _interopRequireDefault(__webpack_require__(/*! ../utils/introduction */ "../assets/dev/js/utils/introduction.js")); | |
| 2528 | +var _introduction = _interopRequireDefault(__webpack_require__(/*! ./utils/introduction */ "../assets/dev/js/editor/utils/introduction.js")); | |
| 2977 | 2529 | var _controlsStack = _interopRequireDefault(__webpack_require__(/*! ./views/controls-stack */ "../assets/dev/js/editor/views/controls-stack.js")); |
| 2978 | 2530 | var _baseSettings = _interopRequireDefault(__webpack_require__(/*! ./elements/models/base-settings */ "../assets/dev/js/editor/elements/models/base-settings.js")); |
| 2979 | 2531 | var _container = _interopRequireDefault(__webpack_require__(/*! ./container/container */ "../assets/dev/js/editor/container/container.js")); |
| 2980 | 2532 | elementorModules.editor = { |