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

editor-modules.js in Elementor Website Builder – more than just a page builder 3.33.0-dev1, at assets/js/editor-modules.js

2,999 lines 117.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /******/ (() => { // webpackBootstrap
2 /******/ var __webpack_modules__ = ({
3
4 /***/ "../assets/dev/js/editor/container/container.js":
5 /*!******************************************************!*\
6 !*** ../assets/dev/js/editor/container/container.js ***!
7 \******************************************************/
8 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
9
10 "use strict";
11 /* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
12
13
14 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
15 Object.defineProperty(exports, "__esModule", ({
16 value: true
17 }));
18 exports["default"] = void 0;
19 var _readOnlyError2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/readOnlyError */ "../node_modules/@babel/runtime/helpers/readOnlyError.js"));
20 var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
21 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
22 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
23 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
24 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
25 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 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
28 var _argsObject = _interopRequireDefault(__webpack_require__(/*! ../../modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js"));
29 var _panel = _interopRequireDefault(__webpack_require__(/*! ./panel */ "../assets/dev/js/editor/container/panel.js"));
30 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; })(); }
33 /**
34 * @typedef {import('../../../../lib/backbone/backbone.marionette')} Backbone
35 * @typedef {import('../../../../lib/backbone/backbone.marionette')} Marionette
36 * @typedef {import('../elements/views/base')} BaseElementView
37 * @typedef {import('../elements/views/section')} SectionView
38 * @typedef {import('../views/base-container')} BaseContainer
39 * @typedef {import('../elements/models/base-element-model')} BaseElementModel
40 */
41 /**
42 * TODO: ViewsOptions
43 *
44 * @typedef {(Marionette.View|Marionette.CompositeView|BaseElementView|SectionView|BaseContainer)} ViewsOptions
45 */
46 var Container = exports["default"] = /*#__PURE__*/function (_ArgsObject) {
47 /**
48 * Function constructor().
49 *
50 * Create container.
51 *
52 * @param {{}} args
53 *
54 * @throws {Error}
55 */
56 function Container(args) {
57 var _this;
58 (0, _classCallCheck2.default)(this, Container);
59 _this = _callSuper(this, Container, [args]);
60
61 // 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", {});
158 _this.validateArgs(args);
159 args = Object.entries(args);
160
161 // If empty.
162 if (0 === args.length) {
163 throw Error('Container cannot be empty.');
164 }
165
166 // Set properties, if not defined - keep the defaults.
167 args.forEach(function (_ref) {
168 var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
169 key = _ref2[0],
170 value = _ref2[1];
171 _this[key] = 'undefined' === typeof value ? _this[key] : value;
172 });
173 if ('undefined' === typeof _this.renderer) {
174 _this.renderer = _this;
175 }
176 if (!_this.document) {
177 _this.document = elementor.documents.getCurrent();
178 }
179 _this.dynamic = new Backbone.Model(_this.settings.get('__dynamic__'));
180 _this.globals = new Backbone.Model(_this.settings.get('__globals__'));
181 _this.panel = new _panel.default(_this);
182 _this.initialize();
183 return _this;
184 }
185 (0, _inherits2.default)(Container, _ArgsObject);
186 return (0, _createClass2.default)(Container, [{
187 key: "initialize",
188 value: function initialize() {
189 if (this.isViewElement()) {
190 this.addToParent();
191 this.handleChildrenRecursive();
192 this.view.on('destroy', this.removeFromParent.bind(this));
193 }
194 this.handleRepeaterChildren();
195 }
196 }, {
197 key: "validateArgs",
198 value: function validateArgs(args) {
199 this.requireArgumentType('type', 'string', args);
200 this.requireArgumentType('id', 'string', args);
201 this.requireArgumentInstance('settings', Backbone.Model, args);
202 this.requireArgumentInstance('model', Backbone.Model, args);
203
204 // Require it, unless it's forced to be `false`.
205 if (false !== args.parent) {
206 this.requireArgumentInstance('parent', elementorModules.editor.Container, args);
207 }
208 }
209
210 /**
211 * Function getGroupRelatedControls().
212 *
213 * Example:
214 * Settings = { typography_typography: 'whatever', button_text_color: 'whatever' };
215 * Result { control_name: controlValue, ... - and so on };
216 * `Object.keys( Result ) = [ 'typography_typography', 'typography_font_family', 'typography_font_size', 'typography_font_size_tablet', 'typography_font_size_mobile', 'typography_font_weight', 'typography_text_transform', 'typography_font_style', 'typography_text_decoration', 'typography_line_height', 'typography_line_height_tablet', 'typography_line_height_mobile', 'typography_letter_spacing', 'typography_letter_spacing_tablet', 'typography_letter_spacing_mobile', 'button_text_color' ]`.
217 *
218 * @param {{}} settings
219 *
220 * @return {{}} result
221 */
222 }, {
223 key: "getGroupRelatedControls",
224 value: function getGroupRelatedControls(settings) {
225 var _this2 = this;
226 var result = {};
227 Object.keys(settings).forEach(function (settingKey) {
228 Object.values(_this2.controls).forEach(function (control) {
229 var _this2$controls$setti;
230 if (settingKey === control.name) {
231 result[control.name] = control;
232 } else if ((_this2$controls$setti = _this2.controls[settingKey]) !== null && _this2$controls$setti !== void 0 && _this2$controls$setti.groupPrefix) {
233 var groupPrefix = _this2.controls[settingKey].groupPrefix;
234 if (control.name.toString().startsWith(groupPrefix)) {
235 result[control.name] = control;
236 }
237 }
238 });
239 });
240 return result;
241 }
242
243 /**
244 * Function getAffectingControls().
245 *
246 * @return {{}} All controls that effecting the container.
247 */
248 }, {
249 key: "getAffectingControls",
250 value: function getAffectingControls() {
251 var _this3 = this;
252 var result = {},
253 activeControls = this.settings.getActiveControls();
254 Object.entries(activeControls).forEach(function (_ref3) {
255 var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
256 controlName = _ref4[0],
257 control = _ref4[1];
258 var controlValue = _this3.settings.get(control.name);
259 if (control.global && !(controlValue !== null && controlValue !== void 0 && controlValue.length)) {
260 var _this3$globals$get;
261 if ((_this3$globals$get = _this3.globals.get(control.name)) !== null && _this3$globals$get !== void 0 && _this3$globals$get.length || _this3.getGlobalDefault(controlName).length) {
262 control.global.utilized = true;
263 result[controlName] = control;
264 return;
265 }
266 }
267 if (control.dynamic) {
268 if (_this3.dynamic.get(controlName)) {
269 control.dynamic.utilized = true;
270 result[controlName] = control;
271 return;
272 }
273 }
274 if (controlValue === control.default) {
275 return;
276 }
277 if (!controlValue) {
278 return;
279 }
280 if ('object' === (0, _typeof2.default)(controlValue) && Object.values(controlValue).join() === Object.values(control.default).join()) {
281 return;
282 }
283 result[controlName] = control;
284 });
285 return result;
286 }
287
288 /**
289 * Function getParentAncestry().
290 *
291 * Recursively run over all parents from current container till the top
292 *
293 * @return {Array.<Container>} All parent as flat array.
294 */
295 }, {
296 key: "getParentAncestry",
297 value: function getParentAncestry() {
298 var result = [];
299 var parent = this;
300 while (parent) {
301 result.push(parent);
302 parent = parent.parent;
303 }
304 return result;
305 }
306 }, {
307 key: "handleChildrenRecursive",
308 value: function handleChildrenRecursive() {
309 var _this$view$children;
310 if ((_this$view$children = this.view.children) !== null && _this$view$children !== void 0 && _this$view$children.length) {
311 Object.values(this.view.children._views).forEach(function (view) {
312 if (!view.container) {
313 return;
314 }
315 var container = view.container;
316
317 // Since the way 'global-widget' rendered, it does not have parent sometimes.
318 if (container.parent.children) {
319 container.parent.children[view._index] = container;
320 }
321 container.handleChildrenRecursive();
322 });
323 } else {
324 this.children.clear();
325 }
326 }
327 }, {
328 key: "addToParent",
329 value: function addToParent() {
330 if (!this.parent.children || this.isRepeaterItem()) {
331 return;
332 }
333
334 // On create container tell the parent where it was created.
335 this.parent.children.splice(this.view._index, 0, this);
336 }
337 }, {
338 key: "removeFromParent",
339 value: function removeFromParent() {
340 var _this4 = this;
341 if (!this.parent.children || this.isRepeater()) {
342 return;
343 }
344
345 // When delete container its should notify its parent, that his children is dead.
346 this.parent.children = this.parent.children.filter(function (filtered) {
347 return filtered.id !== _this4.id;
348 });
349 }
350 }, {
351 key: "handleRepeaterChildren",
352 value: function handleRepeaterChildren() {
353 var _this5 = this;
354 Object.values(this.controls).forEach(function (control) {
355 if (!control.is_repeater) {
356 return;
357 }
358 var model = new Backbone.Model({
359 name: control.name
360 });
361 _this5.repeaters[control.name] = new elementorModules.editor.Container({
362 type: Container.TYPE_REPEATER,
363 id: control.name,
364 model: model,
365 settings: model,
366 view: _this5.view,
367 parent: _this5,
368 label: control.label || control.name,
369 controls: {},
370 renderer: _this5.renderer
371 });
372 _this5.settings.get(control.name).forEach(function (rowModel, index) {
373 _this5.addRepeaterItem(control.name, rowModel, index);
374 });
375 });
376
377 // Backwards Compatibility: if there is only one repeater (type=repeater), set it's children as current children.
378 // Since 3.0.0.
379 if (['widget', 'document'].includes(this.type)) {
380 var repeaters = Object.values(this.controls).filter(function (control) {
381 return 'repeater' === control.type;
382 });
383 if (!this.model.get('supportRepeaterChildren') && 1 === repeaters.length) {
384 Object.defineProperty(this, 'children', {
385 get: function get() {
386 elementorDevTools.deprecation.deprecated('children', '3.0.0', 'container.repeaters[ repeaterName ].children');
387 return this.repeaters[repeaters[0].name].children;
388 }
389 });
390 }
391 }
392 }
393
394 /**
395 * Function addRepeaterItem().
396 *
397 * The method add repeater item, find the repeater control by it name, and create new container for the item.
398 *
399 * @param {string} repeaterName
400 * @param {Backbone.Model} rowSettingsModel
401 * @param {number} index
402 *
403 * @return {Container} container
404 */
405 }, {
406 key: "addRepeaterItem",
407 value: function addRepeaterItem(repeaterName, rowSettingsModel, index) {
408 var rowId = rowSettingsModel.get('_id');
409
410 // TODO: Temp backwards compatibility. since 2.8.0.
411 if (!rowId) {
412 rowId = 'bc-' + elementorCommon.helpers.getUniqueId();
413 rowSettingsModel.set('_id', rowId);
414 }
415 this.repeaters[repeaterName].children.splice(index, 0, new elementorModules.editor.Container({
416 type: Container.TYPE_REPEATER_ITEM,
417 id: rowSettingsModel.get('_id'),
418 model: new Backbone.Model({
419 name: repeaterName
420 }),
421 settings: rowSettingsModel,
422 view: this.view,
423 parent: this.repeaters[repeaterName],
424 label: this.label + ' ' + __('Item', 'elementor'),
425 controls: rowSettingsModel.options.controls,
426 renderer: this.renderer
427 }));
428 return this.repeaters[repeaterName];
429 }
430
431 /**
432 * Function lookup().
433 *
434 * If the view were destroyed, try to find it again if it exists.
435 *
436 * TODO: Refactor.
437 *
438 * @return {Container} container
439 */
440 }, {
441 key: "lookup",
442 value: function lookup() {
443 var _this$renderer$view;
444 var result = this;
445 if (!this.renderer) {
446 return this;
447 }
448 if (this !== this.renderer && (_this$renderer$view = this.renderer.view) !== null && _this$renderer$view !== void 0 && _this$renderer$view.isDisconnected && this.renderer.view.isDisconnected()) {
449 this.renderer = this.renderer.lookup();
450 }
451 if (undefined === this.view || !this.view.lookup || !this.view.isDisconnected()) {
452 // Hack For repeater item the result is the parent container.
453 if (Container.TYPE_REPEATER_ITEM === this.type) {
454 this.settings = this.parent.parent.settings.get(this.model.get('name')).findWhere({
455 _id: this.id
456 });
457 }
458 return result;
459 }
460 var lookup = this.view.lookup();
461 if (lookup) {
462 result = lookup.getContainer();
463
464 // Hack For repeater item the result is the parent container.
465 if (Container.REPEATER === this.type) {
466 this.settings = result.settings.get(this.model.get('name')).findWhere({
467 _id: this.id
468 });
469 return this;
470 }
471
472 // If lookup were done, new container were created and parent does not know about it.
473 if (result.parent.children) {
474 result.parent.children[result.view._index] = result;
475 }
476 }
477 return result;
478 }
479
480 /**
481 * @param {Function} callback - A callback function.
482 * @deprecated since 3.5.0, use `container.children.findRecursive( callback )` instead.
483 */
484 }, {
485 key: "findChildrenRecursive",
486 value: function findChildrenRecursive(callback) {
487 elementorDevTools.deprecation.deprecated('container.findChildrenRecursive( callback )', '3.5.0', 'container.children.findRecursive( callback )');
488 return this.children.findRecursive(callback);
489 }
490
491 /**
492 * @param {Function} callback - A callback function.
493 * @deprecated since 3.5.0, use `container.children.forEachRecursive( callback )` instead.
494 */
495 }, {
496 key: "forEachChildrenRecursive",
497 value: function forEachChildrenRecursive(callback) {
498 elementorDevTools.deprecation.deprecated('container.forEachChildrenRecursive( callback )', '3.5.0', 'container.children.forEachRecursive( callback )');
499 return this.children.forEachRecursive(callback);
500 }
501
502 /**
503 * Function render().
504 *
505 * Call view render.
506 *
507 * Run's `this.renderer.view.renderOnChange( this.settings ) `.
508 * When `this.renderer` exist.
509 *
510 */
511 }, {
512 key: "render",
513 value: function render() {
514 var _this$view;
515 if (!this.renderer) {
516 return;
517 }
518 this.renderer.view.renderOnChange(this.settings, (_this$view = this.view) === null || _this$view === void 0 ? void 0 : _this$view.$el);
519 }
520 }, {
521 key: "renderUI",
522 value: function renderUI() {
523 if (!this.renderer) {
524 return;
525 }
526 this.renderer.view.renderUI();
527 }
528 }, {
529 key: "isEditable",
530 value: function isEditable() {
531 return 'edit' === elementor.channels.dataEditMode.request('activeMode') && 'open' === this.document.editor.status;
532 }
533 }, {
534 key: "isDesignable",
535 value: function isDesignable() {
536 return elementor.userCan('design') && this.isEditable();
537 }
538 }, {
539 key: "isGridContainer",
540 value: function isGridContainer() {
541 return 'grid' === this.parent.settings.get('container_type');
542 }
543
544 /**
545 * @return {boolean}
546 */
547 }, {
548 key: "isLocked",
549 value: function isLocked() {
550 return this.model.get('isLocked');
551 }
552 }, {
553 key: "isRepeater",
554 value: function isRepeater() {
555 return Container.TYPE_REPEATER === this.type;
556 }
557 }, {
558 key: "isRepeaterItem",
559 value: function isRepeaterItem() {
560 return Container.TYPE_REPEATER_ITEM === this.type;
561 }
562 }, {
563 key: "isViewElement",
564 value: function isViewElement() {
565 return this.view && this.model.get('elType');
566 }
567 }, {
568 key: "getSetting",
569 value: function getSetting(name) {
570 var localOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
571 var localValue = this.settings.get(name);
572 if (localOnly) {
573 return localValue;
574 }
575
576 // Try to get the value in the order: Global, Local, Global default.
577 var globalValue;
578 if (this.getGlobalKey(name)) {
579 globalValue = this.getGlobalValue(name);
580 }
581 return globalValue || localValue || this.getGlobalDefault(name);
582 }
583 }, {
584 key: "getGlobalKey",
585 value: function getGlobalKey(name) {
586 return this.globals.get(name);
587 }
588 }, {
589 key: "getGlobalValue",
590 value: function getGlobalValue(name) {
591 var control = this.controls[name],
592 globalKey = this.getGlobalKey(name),
593 globalArgs = $e.data.commandExtractArgs(globalKey),
594 data = $e.data.getCache($e.components.get('globals'), globalArgs.command, globalArgs.args.query);
595 if (!(data !== null && data !== void 0 && data.value)) {
596 return;
597 }
598 var id = data.id;
599 var value;
600
601 // It's a global settings with additional controls in group.
602 if (control.groupType) {
603 // A regex containing all of the active breakpoints' prefixes ('_mobile', '_tablet' etc.).
604 var responsivePrefixRegex = elementor.breakpoints.getActiveMatchRegex();
605 var propertyName = control.name.replace(control.groupPrefix, '').replace(responsivePrefixRegex, '');
606 if (!data.value[elementor.config.kit_config.typography_prefix + propertyName]) {
607 return;
608 }
609 propertyName = propertyName.replace('_', '-');
610 value = "var( --e-global-".concat(control.groupType, "-").concat(id, "-").concat(propertyName, " )");
611 if (elementor.config.ui.defaultGenericFonts && control.groupPrefix + 'font_family' === control.name) {
612 value += ", ".concat(elementor.config.ui.defaultGenericFonts);
613 }
614 } else {
615 value = "var( --e-global-".concat(control.type, "-").concat(id, " )");
616 }
617 return value;
618 }
619
620 /**
621 * Determine if a control's global value is applied.
622 * It actually checks if the local value is different than the global value.
623 *
624 * @param {string} controlName - Control name
625 * @return {boolean} true if a control's global value is applied
626 */
627 }, {
628 key: "isGlobalApplied",
629 value: function isGlobalApplied(controlName) {
630 return this.getSetting(controlName) !== this.settings.get(controlName);
631 }
632 }, {
633 key: "getGlobalDefault",
634 value: function getGlobalDefault(controlName) {
635 var _this$controls$contro;
636 var controlGlobalArgs = (_this$controls$contro = this.controls[controlName]) === null || _this$controls$contro === void 0 ? void 0 : _this$controls$contro.global;
637 if (controlGlobalArgs !== null && controlGlobalArgs !== void 0 && controlGlobalArgs.default) {
638 // Temp fix.
639 var controlType = this.controls[controlName].type;
640 if ('color' === controlType) {
641 controlType = 'colors';
642 }
643 // End temp fix
644
645 // If the control is a color/typography control and default colors/typography are disabled, don't return the global value.
646 if (!elementor.config.globals.defaults_enabled[controlType]) {
647 return '';
648 }
649 var _$e$data$commandExtra = $e.data.commandExtractArgs(controlGlobalArgs.default),
650 command = _$e$data$commandExtra.command,
651 args = _$e$data$commandExtra.args,
652 result = $e.data.getCache($e.components.get('globals'), command, args.query);
653 return result === null || result === void 0 ? void 0 : result.value;
654 }
655
656 // No global default.
657 return '';
658 }
659 }]);
660 }(_argsObject.default);
661 // TODO: Swap those backwards compatibility is required.
662 (0, _defineProperty2.default)(Container, "TYPE_REPEATER", 'repeater-control');
663 (0, _defineProperty2.default)(Container, "TYPE_REPEATER_ITEM", 'repeater');
664
665 /***/ }),
666
667 /***/ "../assets/dev/js/editor/container/model/children-array.js":
668 /*!*****************************************************************!*\
669 !*** ../assets/dev/js/editor/container/model/children-array.js ***!
670 \*****************************************************************/
671 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
672
673 "use strict";
674
675
676 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
677 Object.defineProperty(exports, "__esModule", ({
678 value: true
679 }));
680 exports["default"] = void 0;
681 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
682 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
683 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
684 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
685 var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
686 var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js"));
687 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; } } }; }
688 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; } }
689 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; }
690 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)); }
691 function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
692 /**
693 * @typedef {import('../container')} Container
694 */
695 var ChildrenArray = exports["default"] = /*#__PURE__*/function (_Array) {
696 function ChildrenArray() {
697 (0, _classCallCheck2.default)(this, ChildrenArray);
698 return _callSuper(this, ChildrenArray, arguments);
699 }
700 (0, _inherits2.default)(ChildrenArray, _Array);
701 return (0, _createClass2.default)(ChildrenArray, [{
702 key: "clear",
703 value: function clear() {
704 this.length = 0;
705 }
706
707 /**
708 * Function findRecursive().
709 *
710 * Will run over children recursively and pass the children to the callback till the callback returns positive value.
711 *
712 * @param {function(Container) : *} callback
713 *
714 * @return {Container|false} child
715 */
716 }, {
717 key: "findRecursive",
718 value: function findRecursive(callback) {
719 var _iterator = _createForOfIteratorHelper(this),
720 _step;
721 try {
722 for (_iterator.s(); !(_step = _iterator.n()).done;) {
723 var container = _step.value;
724 if (callback(container)) {
725 return container;
726 }
727 if (container.children.length) {
728 var foundChildren = container.children.findRecursive(callback);
729 if (foundChildren) {
730 return foundChildren;
731 }
732 }
733 }
734 } catch (err) {
735 _iterator.e(err);
736 } finally {
737 _iterator.f();
738 }
739 return false;
740 }
741
742 /**
743 * Function forEachRecursive().
744 *
745 * Will run over children recursively.
746 *
747 * @param {function(Container) : *} callback
748 *
749 * @return {void}
750 */
751 }, {
752 key: "forEachRecursive",
753 value: function forEachRecursive(callback) {
754 var _iterator2 = _createForOfIteratorHelper(this),
755 _step2;
756 try {
757 for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
758 var container = _step2.value;
759 callback(container);
760 if (container.children.length) {
761 container.children.forEachRecursive(callback);
762 }
763 }
764 } catch (err) {
765 _iterator2.e(err);
766 } finally {
767 _iterator2.f();
768 }
769 }
770
771 /**
772 * Function someRecursive().
773 *
774 * Will run over children recursively, breaks if the callback return true.
775 *
776 * @param {function(Container) : *} callback
777 */
778 }, {
779 key: "someRecursive",
780 value: function someRecursive(callback) {
781 var _iterator3 = _createForOfIteratorHelper(this),
782 _step3;
783 try {
784 for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
785 var _container$children;
786 var container = _step3.value;
787 if (callback(container)) {
788 return true;
789 }
790 if ((_container$children = container.children) !== null && _container$children !== void 0 && _container$children.length) {
791 if (container.children.someRecursive(callback)) {
792 return true;
793 }
794 }
795 }
796 } catch (err) {
797 _iterator3.e(err);
798 } finally {
799 _iterator3.f();
800 }
801 return false;
802 }
803 }]);
804 }(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Array));
805
806 /***/ }),
807
808 /***/ "../assets/dev/js/editor/container/panel.js":
809 /*!**************************************************!*\
810 !*** ../assets/dev/js/editor/container/panel.js ***!
811 \**************************************************/
812 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
813
814 "use strict";
815
816
817 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
818 Object.defineProperty(exports, "__esModule", ({
819 value: true
820 }));
821 exports["default"] = void 0;
822 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
823 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
824 /**
825 * @typedef {import('./container')} Container
826 */
827 var Panel = exports["default"] = /*#__PURE__*/function () {
828 /**
829 * Function constructor().
830 *
831 * Create constructor panel.
832 *
833 * @param {Container} container
834 */
835 function Panel(container) {
836 (0, _classCallCheck2.default)(this, Panel);
837 this.container = container;
838 }
839
840 /**
841 * Function refresh().
842 *
843 * Refresh the panel.
844 */
845 return (0, _createClass2.default)(Panel, [{
846 key: "refresh",
847 value: function refresh() {
848 if ($e.routes.isPartOf('panel/editor')) {
849 $e.routes.refreshContainer('panel');
850 }
851 }
852
853 /**
854 * Function closeEditor().
855 *
856 * Route to `panel/elements/categories`
857 */
858 }, {
859 key: "closeEditor",
860 value: function closeEditor() {
861 $e.route('panel/elements/categories');
862 }
863 }, {
864 key: "getControlView",
865 value: function getControlView(name) {
866 var editor = elementor.getPanelView().getCurrentPageView();
867 return editor.children.findByModelCid(this.getControlModel(name).cid);
868 }
869 }, {
870 key: "getControlModel",
871 value: function getControlModel(name) {
872 var editor = elementor.getPanelView().getCurrentPageView();
873 return editor.collection.findWhere({
874 name: name
875 });
876 }
877 }]);
878 }();
879
880 /***/ }),
881
882 /***/ "../assets/dev/js/editor/elements/models/base-settings.js":
883 /*!****************************************************************!*\
884 !*** ../assets/dev/js/editor/elements/models/base-settings.js ***!
885 \****************************************************************/
886 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
887
888 "use strict";
889
890
891 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
892 var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
893 var BaseSettingsModel;
894
895 /**
896 * @name BaseSettingsModel
897 */
898 BaseSettingsModel = Backbone.Model.extend({
899 options: {},
900 initialize: function initialize(data, options) {
901 var self = this;
902
903 // Keep the options for cloning
904 self.options = options;
905 self.controls = elementor.mergeControlsSettings(options.controls);
906 self.validators = {};
907 if (!self.controls) {
908 return;
909 }
910 var attrs = data || {},
911 defaults = {};
912 _.each(self.controls, function (control) {
913 // Check features since they does not exist in tests.
914 var isUIControl = control.features && -1 !== control.features.indexOf('ui');
915 if (isUIControl) {
916 return;
917 }
918 var controlName = control.name;
919 if ('object' === (0, _typeof2.default)(control.default)) {
920 defaults[controlName] = structuredClone(control.default);
921 } else {
922 defaults[controlName] = control.default;
923 }
924 var isDynamicControl = control.dynamic && control.dynamic.active,
925 hasDynamicSettings = isDynamicControl && attrs.__dynamic__ && attrs.__dynamic__[controlName];
926 if (isDynamicControl && !hasDynamicSettings && control.dynamic.default) {
927 if (!attrs.__dynamic__) {
928 attrs.__dynamic__ = {};
929 }
930 attrs.__dynamic__[controlName] = control.dynamic.default;
931 hasDynamicSettings = true;
932 }
933
934 // Check if the value is a plain object ( and not an array )
935 var isMultipleControl = jQuery.isPlainObject(control.default);
936 if (undefined !== attrs[controlName] && isMultipleControl && !_.isObject(attrs[controlName]) && !hasDynamicSettings) {
937 elementorCommon.debug.addCustomError(new TypeError('An invalid argument supplied as multiple control value'), 'InvalidElementData', 'Element `' + (self.get('widgetType') || self.get('elType')) + '` got <' + attrs[controlName] + '> as `' + controlName + '` value. Expected array or object.');
938 delete attrs[controlName];
939 }
940 if (undefined === attrs[controlName]) {
941 attrs[controlName] = defaults[controlName];
942 }
943 });
944 self.defaults = defaults;
945 self.handleRepeaterData(attrs);
946 self.set(attrs);
947 },
948 convertRepeaterValueToCollection: function convertRepeaterValueToCollection(attrs, repeaterControl) {
949 return new Backbone.Collection(attrs[repeaterControl.name], {
950 model: function model(attributes, options) {
951 options = options || {};
952 options.controls = {};
953 Object.values(repeaterControl.fields).forEach(function (item) {
954 options.controls[item.name] = item;
955 });
956
957 // TODO: Cannot be deleted, since it handle repeater items after repeater widget creation.
958 if (!attributes._id) {
959 attributes._id = elementorCommon.helpers.getUniqueId();
960 }
961 return new BaseSettingsModel(attributes, options);
962 }
963 });
964 },
965 handleRepeaterData: function handleRepeaterData(attrs) {
966 var self = this;
967 _.each(this.controls, function (field) {
968 if (field.is_repeater) {
969 // TODO: Apply defaults on each field in repeater fields
970 if (!(attrs[field.name] instanceof Backbone.Collection)) {
971 attrs[field.name] = self.convertRepeaterValueToCollection(attrs, field);
972 }
973 }
974 });
975 },
976 getFontControls: function getFontControls() {
977 return this.getControlsByType('font');
978 },
979 getIconsControls: function getIconsControls() {
980 return this.getControlsByType('icons');
981 },
982 getControlsByType: function getControlsByType(type) {
983 return _.filter(this.getActiveControls(), function (control) {
984 return type === control.type;
985 });
986 },
987 getStyleControls: function getStyleControls(controls, attributes) {
988 var self = this;
989 controls = structuredClone(self.getActiveControls(controls, attributes));
990 var styleControls = [];
991 jQuery.each(controls, function () {
992 var _control$dynamic;
993 var control = this,
994 controlDefaultSettings = elementor.config.controls[control.type];
995 control = jQuery.extend({}, controlDefaultSettings, control);
996 if (control.fields) {
997 var styleFields = [];
998 if (!(self.attributes[control.name] instanceof Backbone.Collection)) {
999 self.attributes[control.name] = self.convertRepeaterValueToCollection(self.attributes, control);
1000 }
1001 self.attributes[control.name].each(function (item) {
1002 styleFields.push(self.getStyleControls(control.fields, item.attributes));
1003 });
1004 control.styleFields = styleFields;
1005 }
1006 if (control.fields || (_control$dynamic = control.dynamic) !== null && _control$dynamic !== void 0 && _control$dynamic.active || self.isGlobalControl(control, controls) || self.isStyleControl(control.name, controls)) {
1007 styleControls.push(control);
1008 }
1009 });
1010 return styleControls;
1011 },
1012 isGlobalControl: function isGlobalControl(control, controls) {
1013 var _globalControl$global, _this$attributes$__gl;
1014 var controlGlobalKey = control.name;
1015 if (control.groupType) {
1016 controlGlobalKey = control.groupPrefix + control.groupType;
1017 }
1018 var globalControl = controls[controlGlobalKey];
1019 if (!(globalControl !== null && globalControl !== void 0 && (_globalControl$global = globalControl.global) !== null && _globalControl$global !== void 0 && _globalControl$global.active)) {
1020 return false;
1021 }
1022 var globalValue = (_this$attributes$__gl = this.attributes.__globals__) === null || _this$attributes$__gl === void 0 ? void 0 : _this$attributes$__gl[controlGlobalKey];
1023 return !!globalValue;
1024 },
1025 isStyleControl: function isStyleControl(attribute, controls) {
1026 controls = controls || this.controls;
1027 var currentControl = _.find(controls, function (control) {
1028 return attribute === control.name;
1029 });
1030 return currentControl && !_.isEmpty(currentControl.selectors);
1031 },
1032 getClassControls: function getClassControls(controls) {
1033 controls = controls || this.controls;
1034 return _.filter(controls, function (control) {
1035 return !_.isUndefined(control.prefix_class);
1036 });
1037 },
1038 isClassControl: function isClassControl(attribute) {
1039 var currentControl = _.find(this.controls, function (control) {
1040 return attribute === control.name;
1041 });
1042 return currentControl && !_.isUndefined(currentControl.prefix_class);
1043 },
1044 getControl: function getControl(id) {
1045 return _.find(this.controls, function (control) {
1046 return id === control.name;
1047 });
1048 },
1049 getActiveControls: function getActiveControls(controls, attributes) {
1050 var activeControls = {};
1051 if (!controls) {
1052 controls = this.controls;
1053 }
1054 if (!attributes) {
1055 attributes = this.attributes;
1056 }
1057 attributes = this.parseGlobalSettings(attributes, controls);
1058 jQuery.each(controls, function (controlKey, control) {
1059 if (elementor.helpers.isActiveControl(control, attributes, controls)) {
1060 activeControls[controlKey] = control;
1061 }
1062 });
1063 return activeControls;
1064 },
1065 clone: function clone() {
1066 return new BaseSettingsModel(elementorCommon.helpers.cloneObject(this.attributes), elementorCommon.helpers.cloneObject(this.options));
1067 },
1068 setExternalChange: function setExternalChange(key, value) {
1069 var self = this,
1070 settingsToChange;
1071 if ('object' === (0, _typeof2.default)(key)) {
1072 settingsToChange = key;
1073 } else {
1074 settingsToChange = {};
1075 settingsToChange[key] = value;
1076 }
1077 self.set(settingsToChange);
1078 jQuery.each(settingsToChange, function (changedKey, changedValue) {
1079 self.trigger('change:external:' + changedKey, changedValue);
1080 });
1081 },
1082 parseDynamicSettings: function parseDynamicSettings(settings, options, controls) {
1083 var self = this;
1084 settings = elementorCommon.helpers.cloneObject(settings || self.attributes);
1085 options = options || {};
1086 controls = controls || this.controls;
1087 jQuery.each(controls, function () {
1088 var control = this,
1089 valueToParse;
1090 if (control.is_repeater) {
1091 valueToParse = settings[control.name];
1092 valueToParse.forEach(function (value, key) {
1093 valueToParse[key] = self.parseDynamicSettings(value, options, control.fields);
1094 });
1095 return;
1096 }
1097 valueToParse = settings.__dynamic__ && settings.__dynamic__[control.name];
1098 if (!valueToParse) {
1099 return;
1100 }
1101 var dynamicSettings = control.dynamic;
1102 if (undefined === dynamicSettings) {
1103 dynamicSettings = elementor.config.controls[control.type].dynamic;
1104 }
1105 if (!dynamicSettings || !dynamicSettings.active) {
1106 return;
1107 }
1108 var dynamicValue;
1109 try {
1110 dynamicValue = elementor.dynamicTags.parseTagsText(valueToParse, dynamicSettings, elementor.dynamicTags.getTagDataContent);
1111 } catch (error) {
1112 if (elementor.dynamicTags.CACHE_KEY_NOT_FOUND_ERROR !== error.message) {
1113 throw error;
1114 }
1115 dynamicValue = '';
1116 if (options.onServerRequestStart) {
1117 options.onServerRequestStart();
1118 }
1119 elementor.dynamicTags.refreshCacheFromServer(function () {
1120 if (options.onServerRequestEnd) {
1121 options.onServerRequestEnd();
1122 }
1123 });
1124 }
1125 if (dynamicSettings.property) {
1126 settings[control.name][dynamicSettings.property] = dynamicValue;
1127 } else {
1128 settings[control.name] = dynamicValue;
1129 }
1130 });
1131 return settings;
1132 },
1133 parseGlobalSettings: function parseGlobalSettings(settings, controls) {
1134 var _this = this;
1135 settings = elementorCommon.helpers.cloneObject(settings);
1136 controls = controls || this.controls;
1137 jQuery.each(controls, function (index, control) {
1138 var _settings$__globals__, _globalSettings;
1139 var valueToParse;
1140 if (control.is_repeater) {
1141 valueToParse = settings[control.name];
1142 valueToParse.forEach(function (value, key) {
1143 valueToParse[key] = _this.parseGlobalSettings(value, control.fields);
1144 });
1145 return;
1146 }
1147 valueToParse = (_settings$__globals__ = settings.__globals__) === null || _settings$__globals__ === void 0 ? void 0 : _settings$__globals__[control.name];
1148 if (!valueToParse) {
1149 return;
1150 }
1151 var globalSettings = control.global;
1152 if (undefined === globalSettings) {
1153 globalSettings = elementor.config.controls[control.type].global;
1154 }
1155 if (!((_globalSettings = globalSettings) !== null && _globalSettings !== void 0 && _globalSettings.active)) {
1156 return;
1157 }
1158 var _$e$data$commandExtra = $e.data.commandExtractArgs(valueToParse),
1159 command = _$e$data$commandExtra.command,
1160 args = _$e$data$commandExtra.args,
1161 globalValue = $e.data.getCache($e.components.get('globals'), command, args.query);
1162 if (control.groupType) {
1163 settings[control.name] = 'custom';
1164 } else {
1165 settings[control.name] = globalValue;
1166 }
1167 });
1168 return settings;
1169 },
1170 removeDataDefaults: function removeDataDefaults(data, controls) {
1171 var _this2 = this;
1172 jQuery.each(data, function (key) {
1173 var control = controls[key];
1174 if (!control) {
1175 return;
1176 }
1177
1178 // TODO: use `save_default` in text|textarea controls.
1179 if (control.save_default || ('text' === control.type || 'textarea' === control.type) && data[key]) {
1180 return;
1181 }
1182 if (control.is_repeater) {
1183 data[key].forEach(function (repeaterRow) {
1184 _this2.removeDataDefaults(repeaterRow, control.fields);
1185 });
1186 return;
1187 }
1188 if (_.isEqual(data[key], control.default)) {
1189 delete data[key];
1190 }
1191 });
1192 },
1193 toJSON: function toJSON(options) {
1194 var data = Backbone.Model.prototype.toJSON.call(this);
1195 options = options || {};
1196 delete data.widgetType;
1197 delete data.elType;
1198 delete data.isInner;
1199 _.each(data, function (attribute, key) {
1200 if (attribute && attribute.toJSON) {
1201 data[key] = attribute.toJSON();
1202 }
1203 });
1204 if (options.remove && -1 !== options.remove.indexOf('default')) {
1205 this.removeDataDefaults(data, this.controls);
1206 }
1207 return structuredClone(data);
1208 }
1209 });
1210
1211 /**
1212 * @name BaseSettingsModel
1213 */
1214 module.exports = BaseSettingsModel;
1215
1216 /***/ }),
1217
1218 /***/ "../assets/dev/js/editor/elements/views/behaviors/inner-tabs.js":
1219 /*!**********************************************************************!*\
1220 !*** ../assets/dev/js/editor/elements/views/behaviors/inner-tabs.js ***!
1221 \**********************************************************************/
1222 /***/ ((module) => {
1223
1224 "use strict";
1225
1226
1227 var InnerTabsBehavior;
1228 InnerTabsBehavior = Marionette.Behavior.extend({
1229 onRenderCollection: function onRenderCollection() {
1230 this.handleInnerTabs(this.view);
1231 },
1232 handleInnerTabs: function handleInnerTabs(parent) {
1233 var closedClass = 'e-tab-close',
1234 activeClass = 'e-tab-active',
1235 tabsWrappers = parent.children.filter(function (view) {
1236 return 'tabs' === view.model.get('type');
1237 });
1238 _.each(tabsWrappers, function (view) {
1239 view.$el.find('.elementor-control-content').remove();
1240 var tabsId = view.model.get('name'),
1241 tabs = parent.children.filter(function (childView) {
1242 return 'tab' === childView.model.get('type') && childView.model.get('tabs_wrapper') === tabsId;
1243 });
1244 _.each(tabs, function (childView, index) {
1245 view._addChildView(childView);
1246 var tabId = childView.model.get('name'),
1247 controlsUnderTab = parent.children.filter(function (controlView) {
1248 return tabId === controlView.model.get('inner_tab');
1249 });
1250 if (0 === index) {
1251 childView.$el.addClass(activeClass);
1252 } else {
1253 _.each(controlsUnderTab, function (controlView) {
1254 controlView.$el.addClass(closedClass);
1255 });
1256 }
1257 });
1258 });
1259 },
1260 onChildviewControlTabClicked: function onChildviewControlTabClicked(childView) {
1261 var closedClass = 'e-tab-close',
1262 activeClass = 'e-tab-active',
1263 tabClicked = childView.model.get('name'),
1264 childrenUnderTab = this.view.children.filter(function (view) {
1265 return 'tab' !== view.model.get('type') && childView.model.get('tabs_wrapper') === view.model.get('tabs_wrapper');
1266 }),
1267 siblingTabs = this.view.children.filter(function (view) {
1268 return 'tab' === view.model.get('type') && childView.model.get('tabs_wrapper') === view.model.get('tabs_wrapper');
1269 });
1270 _.each(siblingTabs, function (view) {
1271 view.$el.removeClass(activeClass);
1272 });
1273 childView.$el.addClass(activeClass);
1274 _.each(childrenUnderTab, function (view) {
1275 if (view.model.get('inner_tab') === tabClicked) {
1276 view.$el.removeClass(closedClass);
1277 } else {
1278 view.$el.addClass(closedClass);
1279 }
1280 });
1281 elementor.getPanelView().updateScrollbar();
1282 }
1283 });
1284 module.exports = InnerTabsBehavior;
1285
1286 /***/ }),
1287
1288 /***/ "../assets/dev/js/editor/utils/is-instanceof.js":
1289 /*!******************************************************!*\
1290 !*** ../assets/dev/js/editor/utils/is-instanceof.js ***!
1291 \******************************************************/
1292 /***/ ((__unused_webpack_module, exports) => {
1293
1294 "use strict";
1295
1296
1297 Object.defineProperty(exports, "__esModule", ({
1298 value: true
1299 }));
1300 exports["default"] = void 0;
1301 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; } } }; }
1302 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; } }
1303 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; }
1304 /**
1305 * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved
1306 * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can
1307 * check whether it's instanceof by using the objects constructor and prototype names.
1308 *
1309 * @param object
1310 * @param constructors
1311 * @return {boolean}
1312 */
1313 var _default = exports["default"] = function _default(object, constructors) {
1314 constructors = Array.isArray(constructors) ? constructors : [constructors];
1315 var _iterator = _createForOfIteratorHelper(constructors),
1316 _step;
1317 try {
1318 for (_iterator.s(); !(_step = _iterator.n()).done;) {
1319 var _constructor = _step.value;
1320 if (object.constructor.name === _constructor.prototype[Symbol.toStringTag]) {
1321 return true;
1322 }
1323 }
1324 } catch (err) {
1325 _iterator.e(err);
1326 } finally {
1327 _iterator.f();
1328 }
1329 return false;
1330 };
1331
1332 /***/ }),
1333
1334 /***/ "../assets/dev/js/editor/utils/module.js":
1335 /*!***********************************************!*\
1336 !*** ../assets/dev/js/editor/utils/module.js ***!
1337 \***********************************************/
1338 /***/ ((module) => {
1339
1340 "use strict";
1341
1342
1343 var EditorModule = elementorModules.Module.extend({
1344 onInit: function onInit() {
1345 var _this = this;
1346 var $window = jQuery(window);
1347 $window.on('elementor:init-components', this.onElementorInitComponents.bind(this));
1348 $window.on('elementor:loaded', function () {
1349 _this.onElementorLoaded();
1350 elementor.on('document:loaded', _this.onDocumentLoaded.bind(_this));
1351 });
1352 $window.on('elementor:init', this.onElementorReady);
1353 },
1354 // TODO: Delete as soon as possible.
1355 getEditorControlView: function getEditorControlView(name) {
1356 var _this$getEditorContro;
1357 var editor = elementor.getPanelView().getCurrentPageView();
1358 return editor.children.findByModelCid((_this$getEditorContro = this.getEditorControlModel(name)) === null || _this$getEditorContro === void 0 ? void 0 : _this$getEditorContro.cid);
1359 },
1360 // TODO: Delete as soon as possible.
1361 getEditorControlModel: function getEditorControlModel(name) {
1362 var editor = elementor.getPanelView().getCurrentPageView();
1363 return editor.collection.findWhere({
1364 name: name
1365 });
1366 },
1367 onElementorReady: function onElementorReady() {
1368 this.onElementorInit();
1369 elementor.on('frontend:init', this.onElementorFrontendInit.bind(this)).on('preview:loaded', this.onElementorPreviewLoaded.bind(this));
1370 }
1371 });
1372 EditorModule.prototype.onElementorLoaded = function () {};
1373 EditorModule.prototype.onElementorInit = function () {};
1374 EditorModule.prototype.onElementorPreviewLoaded = function () {};
1375 EditorModule.prototype.onDocumentLoaded = function () {};
1376 EditorModule.prototype.onElementorFrontendInit = function () {};
1377 EditorModule.prototype.onElementorInitComponents = function () {};
1378 module.exports = EditorModule;
1379
1380 /***/ }),
1381
1382 /***/ "../assets/dev/js/editor/views/controls-popover.js":
1383 /*!*********************************************************!*\
1384 !*** ../assets/dev/js/editor/views/controls-popover.js ***!
1385 \*********************************************************/
1386 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1387
1388 "use strict";
1389 /* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
1390
1391
1392 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1393 Object.defineProperty(exports, "__esModule", ({
1394 value: true
1395 }));
1396 exports["default"] = void 0;
1397 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
1398 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1399 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1400 var ControlsPopover = exports["default"] = /*#__PURE__*/function () {
1401 function ControlsPopover(child) {
1402 (0, _classCallCheck2.default)(this, ControlsPopover);
1403 this.child = child;
1404 this.$popover = jQuery('<div>', {
1405 class: 'elementor-controls-popover'
1406 });
1407 child.$el.before(this.$popover);
1408 this.$popover.append(child.$el);
1409 this.popoverToggleView = child._parent.children.findByIndex(child._index - 1);
1410
1411 // Add the "Typography" header to the popover
1412 if ('typography' === this.child.model.attributes.groupType) {
1413 this.createPopoverHeader();
1414 }
1415 }
1416 return (0, _createClass2.default)(ControlsPopover, [{
1417 key: "addChild",
1418 value: function addChild(child) {
1419 this.$popover.append(child.$el);
1420 }
1421 }, {
1422 key: "createPopoverHeader",
1423 value: function createPopoverHeader() {
1424 var _this = this;
1425 var $popoverToggleControl = this.$popover.prev(),
1426 // Get the existing reset button.
1427 $resetLabel = $popoverToggleControl.find('.elementor-control-popover-toggle-reset-label');
1428 this.$popoverHeader = jQuery('<div>', {
1429 class: 'e-group-control-header'
1430 }).html('<span>' + __('Typography', 'elementor') + '</span>');
1431 this.$headerControlsWrapper = jQuery('<div>', {
1432 class: 'e-control-tools'
1433 });
1434
1435 // Give the reset button the control tool styling, and add a click event so clicking on it closes the popover.
1436 $resetLabel.addClass('e-control-tool').on('click', function () {
1437 return _this.onResetButtonClick();
1438 });
1439
1440 // Move the popover toggle reset button into the popover header.
1441 this.$headerControlsWrapper.append($resetLabel);
1442 this.$popoverHeader.append(this.$headerControlsWrapper);
1443 var globalConfig = this.popoverToggleView.model.get('global');
1444 if (globalConfig !== null && globalConfig !== void 0 && globalConfig.active) {
1445 this.createAddButton();
1446 }
1447 this.$popover.prepend(this.$popoverHeader).addClass('e-controls-popover--typography');
1448 }
1449 }, {
1450 key: "onResetButtonClick",
1451 value: function onResetButtonClick() {
1452 this.$popover.hide();
1453 var groupControlName = this.child.model.get('groupPrefix') + 'typography',
1454 args = {
1455 container: this.child.options.container,
1456 settings: (0, _defineProperty2.default)({}, groupControlName, '')
1457 };
1458 if (this.child.options.container.globals.get(groupControlName)) {
1459 // The Disable Globals command applies global settings locally,
1460 // so disabling the global shouldn't actually change the appearance of the widget.
1461 $e.run('document/globals/disable', args);
1462 } else {
1463 $e.run('document/elements/settings', args);
1464 }
1465 }
1466 }, {
1467 key: "onAddButtonClick",
1468 value: function onAddButtonClick() {
1469 this.popoverToggleView.onAddGlobalButtonClick();
1470 }
1471 }, {
1472 key: "createAddButton",
1473 value: function createAddButton() {
1474 var _this2 = this;
1475 this.$addButton = jQuery('<button>', {
1476 class: 'e-control-tool'
1477 }).html(jQuery('<i>', {
1478 class: 'eicon-plus'
1479 }));
1480 this.$headerControlsWrapper.append(this.$addButton);
1481 this.$addButton.on('click', function () {
1482 return _this2.onAddButtonClick();
1483 });
1484 this.$addButton.tipsy({
1485 title: function title() {
1486 return __('Create New Global Font', 'elementor');
1487 },
1488 gravity: function gravity() {
1489 return 's';
1490 }
1491 });
1492 }
1493 }, {
1494 key: "destroy",
1495 value: function destroy() {
1496 this.$popover.remove();
1497 }
1498 }]);
1499 }();
1500
1501 /***/ }),
1502
1503 /***/ "../assets/dev/js/editor/views/controls-stack.js":
1504 /*!*******************************************************!*\
1505 !*** ../assets/dev/js/editor/views/controls-stack.js ***!
1506 \*******************************************************/
1507 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1508
1509 "use strict";
1510
1511
1512 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1513 Object.defineProperty(exports, "__esModule", ({
1514 value: true
1515 }));
1516 exports["default"] = void 0;
1517 var _controlsPopover = _interopRequireDefault(__webpack_require__(/*! ./controls-popover */ "../assets/dev/js/editor/views/controls-popover.js"));
1518 var ControlsStack;
1519 ControlsStack = Marionette.CompositeView.extend({
1520 classes: {
1521 popover: 'elementor-controls-popover'
1522 },
1523 activeTab: null,
1524 activeSection: null,
1525 className: function className() {
1526 return 'elementor-controls-stack';
1527 },
1528 templateHelpers: function templateHelpers() {
1529 return {
1530 elementData: elementor.getElementData(this.model)
1531 };
1532 },
1533 childViewOptions: function childViewOptions() {
1534 return {
1535 // TODO: elementSettingsModel is deprecated since 2.8.0.
1536 elementSettingsModel: this.model
1537 };
1538 },
1539 ui: function ui() {
1540 return {
1541 tabs: '.elementor-panel-navigation-tab',
1542 reloadButton: '.elementor-update-preview-button'
1543 };
1544 },
1545 events: function events() {
1546 return {
1547 'click @ui.reloadButton': 'onReloadButtonClick'
1548 };
1549 },
1550 modelEvents: {
1551 destroy: 'onModelDestroy'
1552 },
1553 behaviors: {
1554 HandleInnerTabs: {
1555 behaviorClass: __webpack_require__(/*! elementor-behaviors/inner-tabs */ "../assets/dev/js/editor/elements/views/behaviors/inner-tabs.js")
1556 }
1557 },
1558 initialize: function initialize(options) {
1559 this.initCollection();
1560 if (options.tab) {
1561 this.activeTab = options.tab;
1562 this.activateFirstSection();
1563 }
1564 this.listenTo(elementor.channels.deviceMode, 'change', this.onDeviceModeChange);
1565 },
1566 onDestroy: function onDestroy() {
1567 this.stopListening(elementor.channels.deviceMode, 'change', this.onDeviceModeChange);
1568 },
1569 initCollection: function initCollection() {
1570 this.collection = new Backbone.Collection(_.values(elementor.mergeControlsSettings(this.getOption('controls'))));
1571 },
1572 filter: function filter(controlModel) {
1573 if (controlModel.get('tab') !== this.activeTab) {
1574 return false;
1575 }
1576 if ('section' === controlModel.get('type')) {
1577 return true;
1578 }
1579 var section = controlModel.get('section');
1580 return !section || section === this.activeSection;
1581 },
1582 getControlViewByModel: function getControlViewByModel(model) {
1583 return this.children.findByModelCid(model.cid);
1584 },
1585 getControlViewByName: function getControlViewByName(name) {
1586 return this.getControlViewByModel(this.getControlModel(name));
1587 },
1588 getControlModel: function getControlModel(name) {
1589 return this.collection.findWhere({
1590 name: name
1591 });
1592 },
1593 isVisibleSectionControl: function isVisibleSectionControl(sectionControlModel) {
1594 return this.activeTab === sectionControlModel.get('tab');
1595 },
1596 activateTab: function activateTab(tab) {
1597 this.activeTab = tab;
1598 this.activateFirstSection();
1599 this._renderChildren();
1600 return this;
1601 },
1602 activateSection: function activateSection(sectionName) {
1603 this.activeSection = sectionName;
1604 return this;
1605 },
1606 activateFirstSection: function activateFirstSection() {
1607 var self = this;
1608 var sectionControls = self.collection.filter(function (controlModel) {
1609 return 'section' === controlModel.get('type') && self.isVisibleSectionControl(controlModel);
1610 });
1611 var sectionToActivate;
1612 if (!sectionControls[0]) {
1613 self.activeSection = null;
1614 sectionToActivate = null;
1615 } else {
1616 sectionToActivate = sectionControls[0].get('name');
1617 }
1618 var preActivatedSection = sectionControls.filter(function (controlModel) {
1619 return self.activeSection === controlModel.get('name');
1620 });
1621 if (preActivatedSection[0]) {
1622 return;
1623 }
1624 self.activateSection(sectionToActivate);
1625 return this;
1626 },
1627 getChildView: function getChildView(item) {
1628 var controlType = item.get('type');
1629 return elementor.getControlView(controlType);
1630 },
1631 getNamespaceArray: function getNamespaceArray() {
1632 return [elementor.getPanelView().getCurrentPageName()];
1633 },
1634 openActiveSection: function openActiveSection() {
1635 var activeSection = this.activeSection,
1636 activeSectionView = this.children.filter(function (view) {
1637 return activeSection === view.model.get('name');
1638 });
1639 if (activeSectionView[0]) {
1640 activeSectionView[0].$el.addClass('e-open');
1641 var eventNamespace = this.getNamespaceArray();
1642 eventNamespace.push(activeSection, 'activated');
1643 elementor.channels.editor.trigger(eventNamespace.join(':'), this);
1644 }
1645 },
1646 onRenderCollection: function onRenderCollection() {
1647 this.openActiveSection();
1648 ControlsStack.handlePopovers(this);
1649 },
1650 onModelDestroy: function onModelDestroy() {
1651 this.destroy();
1652 },
1653 onReloadButtonClick: function onReloadButtonClick() {
1654 elementor.reloadPreview();
1655 },
1656 onDeviceModeChange: function onDeviceModeChange() {
1657 if ('desktop' === elementor.channels.deviceMode.request('currentMode')) {
1658 this.$el.removeClass('elementor-responsive-switchers-open');
1659 }
1660 },
1661 onChildviewControlSectionClicked: function onChildviewControlSectionClicked(childView) {
1662 var isSectionOpen = childView.$el.hasClass('e-open');
1663 this.activateSection(isSectionOpen ? null : childView.model.get('name'));
1664 this._renderChildren();
1665 },
1666 onChildviewResponsiveSwitcherClick: function onChildviewResponsiveSwitcherClick(childView, device) {
1667 if ('desktop' === device) {
1668 this.$el.toggleClass('elementor-responsive-switchers-open');
1669 }
1670 }
1671 }, {
1672 handlePopovers: function handlePopovers(view) {
1673 var popover;
1674 this.removePopovers(view);
1675 view.popovers = [];
1676 view.children.each(function (control) {
1677 if (popover) {
1678 popover.addChild(control);
1679 }
1680 var popoverData = control.model.get('popover');
1681 if (!popoverData) {
1682 return;
1683 }
1684 if (popoverData.start) {
1685 popover = new _controlsPopover.default(control);
1686 view.popovers.push(popover);
1687 }
1688 if (popoverData.end) {
1689 popover = null;
1690 }
1691 });
1692 },
1693 removePopovers: function removePopovers(view) {
1694 var _view$popovers;
1695 (_view$popovers = view.popovers) === null || _view$popovers === void 0 || _view$popovers.forEach(function (popover) {
1696 return popover.destroy();
1697 });
1698 }
1699 });
1700 var _default = exports["default"] = ControlsStack;
1701
1702 /***/ }),
1703
1704 /***/ "../assets/dev/js/modules/imports/args-object.js":
1705 /*!*******************************************************!*\
1706 !*** ../assets/dev/js/modules/imports/args-object.js ***!
1707 \*******************************************************/
1708 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1709
1710 "use strict";
1711
1712
1713 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1714 Object.defineProperty(exports, "__esModule", ({
1715 value: true
1716 }));
1717 exports["default"] = void 0;
1718 var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
1719 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1720 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1721 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
1722 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1723 var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1724 var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js"));
1725 var _isInstanceof = _interopRequireDefault(__webpack_require__(/*! ../../editor/utils/is-instanceof */ "../assets/dev/js/editor/utils/is-instanceof.js"));
1726 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)); }
1727 function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
1728 var ArgsObject = exports["default"] = /*#__PURE__*/function (_InstanceType) {
1729 /**
1730 * Function constructor().
1731 *
1732 * Create ArgsObject.
1733 *
1734 * @param {{}} args
1735 */
1736 function ArgsObject(args) {
1737 var _this;
1738 (0, _classCallCheck2.default)(this, ArgsObject);
1739 _this = _callSuper(this, ArgsObject);
1740 _this.args = args;
1741 return _this;
1742 }
1743
1744 /**
1745 * Function requireArgument().
1746 *
1747 * Validate property in args.
1748 *
1749 * @param {string} property
1750 * @param {{}} args
1751 *
1752 * @throws {Error}
1753 */
1754 (0, _inherits2.default)(ArgsObject, _InstanceType);
1755 return (0, _createClass2.default)(ArgsObject, [{
1756 key: "requireArgument",
1757 value: function requireArgument(property) {
1758 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args;
1759 if (!Object.prototype.hasOwnProperty.call(args, property)) {
1760 throw Error("".concat(property, " is required."));
1761 }
1762 }
1763
1764 /**
1765 * Function requireArgumentType().
1766 *
1767 * Validate property in args using `type === typeof(args.whatever)`.
1768 *
1769 * @param {string} property
1770 * @param {string} type
1771 * @param {{}} args
1772 *
1773 * @throws {Error}
1774 */
1775 }, {
1776 key: "requireArgumentType",
1777 value: function requireArgumentType(property, type) {
1778 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
1779 this.requireArgument(property, args);
1780 if ((0, _typeof2.default)(args[property]) !== type) {
1781 throw Error("".concat(property, " invalid type: ").concat(type, "."));
1782 }
1783 }
1784
1785 /**
1786 * Function requireArgumentInstance().
1787 *
1788 * Validate property in args using `args.whatever instanceof instance`.
1789 *
1790 * @param {string} property
1791 * @param {*} instance
1792 * @param {{}} args
1793 *
1794 * @throws {Error}
1795 */
1796 }, {
1797 key: "requireArgumentInstance",
1798 value: function requireArgumentInstance(property, instance) {
1799 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
1800 this.requireArgument(property, args);
1801 if (!(args[property] instanceof instance) && !(0, _isInstanceof.default)(args[property], instance)) {
1802 throw Error("".concat(property, " invalid instance."));
1803 }
1804 }
1805
1806 /**
1807 * Function requireArgumentConstructor().
1808 *
1809 * Validate property in args using `type === args.whatever.constructor`.
1810 *
1811 * @param {string} property
1812 * @param {*} type
1813 * @param {{}} args
1814 *
1815 * @throws {Error}
1816 */
1817 }, {
1818 key: "requireArgumentConstructor",
1819 value: function requireArgumentConstructor(property, type) {
1820 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
1821 this.requireArgument(property, args);
1822
1823 // Note: Converting the constructor to string in order to avoid equation issues
1824 // due to different memory addresses between iframes (window.Object !== window.top.Object).
1825 if (args[property].constructor.toString() !== type.prototype.constructor.toString()) {
1826 throw Error("".concat(property, " invalid constructor type."));
1827 }
1828 }
1829 }], [{
1830 key: "getInstanceType",
1831 value: function getInstanceType() {
1832 return 'ArgsObject';
1833 }
1834 }]);
1835 }(_instanceType.default);
1836
1837 /***/ }),
1838
1839 /***/ "../assets/dev/js/modules/imports/instance-type.js":
1840 /*!*********************************************************!*\
1841 !*** ../assets/dev/js/modules/imports/instance-type.js ***!
1842 \*********************************************************/
1843 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1844
1845 "use strict";
1846
1847
1848 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1849 Object.defineProperty(exports, "__esModule", ({
1850 value: true
1851 }));
1852 exports["default"] = void 0;
1853 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1854 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1855 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1856 var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js"));
1857 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; }
1858 var InstanceType = exports["default"] = /*#__PURE__*/function () {
1859 function InstanceType() {
1860 var _this = this;
1861 (0, _classCallCheck2.default)(this, InstanceType);
1862 // Since anonymous classes sometimes do not get validated by babel, do it manually.
1863 var target = this instanceof InstanceType ? this.constructor : void 0;
1864 var prototypes = [];
1865 while (target.__proto__ && target.__proto__.name) {
1866 prototypes.push(target.__proto__);
1867 target = target.__proto__;
1868 }
1869 prototypes.reverse().forEach(function (proto) {
1870 return _this instanceof proto;
1871 });
1872 }
1873 return (0, _createClass2.default)(InstanceType, null, [{
1874 key: Symbol.hasInstance,
1875 value: function value(target) {
1876 /**
1877 * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class
1878 * its give's opportunity to mange capabilities of instanceOf operator.
1879 * saving current class each time will give option later to handle instanceOf manually.
1880 */
1881 var result = _superPropGet(InstanceType, Symbol.hasInstance, this, 2)([target]);
1882
1883 // Act normal when validate a class, which does not have instance type.
1884 if (target && !target.constructor.getInstanceType) {
1885 return result;
1886 }
1887 if (target) {
1888 if (!target.instanceTypes) {
1889 target.instanceTypes = [];
1890 }
1891 if (!result) {
1892 if (this.getInstanceType() === target.constructor.getInstanceType()) {
1893 result = true;
1894 }
1895 }
1896 if (result) {
1897 var name = this.getInstanceType === InstanceType.getInstanceType ? 'BaseInstanceType' : this.getInstanceType();
1898 if (-1 === target.instanceTypes.indexOf(name)) {
1899 target.instanceTypes.push(name);
1900 }
1901 }
1902 }
1903 if (!result && target) {
1904 // Check if the given 'target', is instance of known types.
1905 result = target.instanceTypes && Array.isArray(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType());
1906 }
1907 return result;
1908 }
1909 }, {
1910 key: "getInstanceType",
1911 value: function getInstanceType() {
1912 elementorModules.ForceMethodImplementation();
1913 }
1914 }]);
1915 }();
1916
1917 /***/ }),
1918
1919 /***/ "../assets/dev/js/utils/introduction.js":
1920 /*!**********************************************!*\
1921 !*** ../assets/dev/js/utils/introduction.js ***!
1922 \**********************************************/
1923 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1924
1925 "use strict";
1926
1927
1928 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1929 Object.defineProperty(exports, "__esModule", ({
1930 value: true
1931 }));
1932 exports["default"] = void 0;
1933 var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js"));
1934 var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
1935 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1936 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1937 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
1938 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1939 var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1940 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
1941 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)); }
1942 function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
1943 var _default = exports["default"] = /*#__PURE__*/function (_elementorModules$Mod) {
1944 function _default() {
1945 var _this;
1946 (0, _classCallCheck2.default)(this, _default);
1947 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1948 args[_key] = arguments[_key];
1949 }
1950 _this = _callSuper(this, _default, [].concat(args));
1951 (0, _defineProperty2.default)(_this, "introductionMap", null);
1952 _this.initDialog();
1953 return _this;
1954 }
1955 (0, _inherits2.default)(_default, _elementorModules$Mod);
1956 return (0, _createClass2.default)(_default, [{
1957 key: "setIntroductionMap",
1958 value: function setIntroductionMap(map) {
1959 this.introductionMap = map;
1960 }
1961 }, {
1962 key: "getIntroductionMap",
1963 value: function getIntroductionMap() {
1964 return this.introductionMap || elementor.config.user.introduction;
1965 }
1966 }, {
1967 key: "getDefaultSettings",
1968 value: function getDefaultSettings() {
1969 return {
1970 dialogType: 'buttons',
1971 dialogOptions: {
1972 effects: {
1973 hide: 'hide',
1974 show: 'show'
1975 },
1976 hide: {
1977 onBackgroundClick: false
1978 }
1979 }
1980 };
1981 }
1982 }, {
1983 key: "initDialog",
1984 value: function initDialog() {
1985 var _this2 = this;
1986 var dialog;
1987 this.getDialog = function () {
1988 if (!dialog) {
1989 var settings = _this2.getSettings();
1990 dialog = elementorCommon.dialogsManager.createWidget(settings.dialogType, settings.dialogOptions);
1991 if (settings.onDialogInitCallback) {
1992 settings.onDialogInitCallback.call(_this2, dialog);
1993 }
1994 }
1995 return dialog;
1996 };
1997 }
1998 }, {
1999 key: "show",
2000 value: function show(target) {
2001 if (this.introductionViewed) {
2002 return;
2003 }
2004 var dialog = this.getDialog();
2005 if (target) {
2006 dialog.setSettings('position', {
2007 of: target
2008 });
2009 }
2010 dialog.show();
2011 }
2012 }, {
2013 key: "introductionViewed",
2014 get: function get() {
2015 var introductionKey = this.getSettings('introductionKey');
2016 return this.getIntroductionMap()[introductionKey];
2017 },
2018 set: function set(isViewed) {
2019 var introductionKey = this.getSettings('introductionKey');
2020 this.getIntroductionMap()[introductionKey] = isViewed;
2021 }
2022 }, {
2023 key: "setViewed",
2024 value: function () {
2025 var _setViewed = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
2026 var _this3 = this;
2027 return _regenerator.default.wrap(function (_context) {
2028 while (1) switch (_context.prev = _context.next) {
2029 case 0:
2030 this.introductionViewed = true;
2031 return _context.abrupt("return", new Promise(function (resolve, reject) {
2032 elementorCommon.ajax.addRequest('introduction_viewed', {
2033 data: {
2034 introductionKey: _this3.getSettings('introductionKey')
2035 },
2036 success: resolve,
2037 error: reject
2038 });
2039 }));
2040 case 1:
2041 case "end":
2042 return _context.stop();
2043 }
2044 }, _callee, this);
2045 }));
2046 function setViewed() {
2047 return _setViewed.apply(this, arguments);
2048 }
2049 return setViewed;
2050 }()
2051 }]);
2052 }(elementorModules.Module);
2053
2054 /***/ }),
2055
2056 /***/ "../node_modules/@babel/runtime/helpers/OverloadYield.js":
2057 /*!***************************************************************!*\
2058 !*** ../node_modules/@babel/runtime/helpers/OverloadYield.js ***!
2059 \***************************************************************/
2060 /***/ ((module) => {
2061
2062 function _OverloadYield(e, d) {
2063 this.v = e, this.k = d;
2064 }
2065 module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports;
2066
2067 /***/ }),
2068
2069 /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
2070 /*!******************************************************************!*\
2071 !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
2072 \******************************************************************/
2073 /***/ ((module) => {
2074
2075 function _arrayLikeToArray(r, a) {
2076 (null == a || a > r.length) && (a = r.length);
2077 for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
2078 return n;
2079 }
2080 module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2081
2082 /***/ }),
2083
2084 /***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
2085 /*!****************************************************************!*\
2086 !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
2087 \****************************************************************/
2088 /***/ ((module) => {
2089
2090 function _arrayWithHoles(r) {
2091 if (Array.isArray(r)) return r;
2092 }
2093 module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
2094
2095 /***/ }),
2096
2097 /***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js":
2098 /*!***********************************************************************!*\
2099 !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
2100 \***********************************************************************/
2101 /***/ ((module) => {
2102
2103 function _assertThisInitialized(e) {
2104 if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2105 return e;
2106 }
2107 module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
2108
2109 /***/ }),
2110
2111 /***/ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js":
2112 /*!******************************************************************!*\
2113 !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
2114 \******************************************************************/
2115 /***/ ((module) => {
2116
2117 function asyncGeneratorStep(n, t, e, r, o, a, c) {
2118 try {
2119 var i = n[a](c),
2120 u = i.value;
2121 } catch (n) {
2122 return void e(n);
2123 }
2124 i.done ? t(u) : Promise.resolve(u).then(r, o);
2125 }
2126 function _asyncToGenerator(n) {
2127 return function () {
2128 var t = this,
2129 e = arguments;
2130 return new Promise(function (r, o) {
2131 var a = n.apply(t, e);
2132 function _next(n) {
2133 asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
2134 }
2135 function _throw(n) {
2136 asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
2137 }
2138 _next(void 0);
2139 });
2140 };
2141 }
2142 module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
2143
2144 /***/ }),
2145
2146 /***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
2147 /*!****************************************************************!*\
2148 !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
2149 \****************************************************************/
2150 /***/ ((module) => {
2151
2152 function _classCallCheck(a, n) {
2153 if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
2154 }
2155 module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
2156
2157 /***/ }),
2158
2159 /***/ "../node_modules/@babel/runtime/helpers/construct.js":
2160 /*!***********************************************************!*\
2161 !*** ../node_modules/@babel/runtime/helpers/construct.js ***!
2162 \***********************************************************/
2163 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2164
2165 var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js");
2166 var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2167 function _construct(t, e, r) {
2168 if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
2169 var o = [null];
2170 o.push.apply(o, e);
2171 var p = new (t.bind.apply(t, o))();
2172 return r && setPrototypeOf(p, r.prototype), p;
2173 }
2174 module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
2175
2176 /***/ }),
2177
2178 /***/ "../node_modules/@babel/runtime/helpers/createClass.js":
2179 /*!*************************************************************!*\
2180 !*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
2181 \*************************************************************/
2182 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2183
2184 var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2185 function _defineProperties(e, r) {
2186 for (var t = 0; t < r.length; t++) {
2187 var o = r[t];
2188 o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
2189 }
2190 }
2191 function _createClass(e, r, t) {
2192 return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
2193 writable: !1
2194 }), e;
2195 }
2196 module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
2197
2198 /***/ }),
2199
2200 /***/ "../node_modules/@babel/runtime/helpers/defineProperty.js":
2201 /*!****************************************************************!*\
2202 !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***!
2203 \****************************************************************/
2204 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2205
2206 var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2207 function _defineProperty(e, r, t) {
2208 return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
2209 value: t,
2210 enumerable: !0,
2211 configurable: !0,
2212 writable: !0
2213 }) : e[r] = t, e;
2214 }
2215 module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
2216
2217 /***/ }),
2218
2219 /***/ "../node_modules/@babel/runtime/helpers/get.js":
2220 /*!*****************************************************!*\
2221 !*** ../node_modules/@babel/runtime/helpers/get.js ***!
2222 \*****************************************************/
2223 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2224
2225 var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js");
2226 function _get() {
2227 return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
2228 var p = superPropBase(e, t);
2229 if (p) {
2230 var n = Object.getOwnPropertyDescriptor(p, t);
2231 return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
2232 }
2233 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments);
2234 }
2235 module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;
2236
2237 /***/ }),
2238
2239 /***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js":
2240 /*!****************************************************************!*\
2241 !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
2242 \****************************************************************/
2243 /***/ ((module) => {
2244
2245 function _getPrototypeOf(t) {
2246 return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
2247 return t.__proto__ || Object.getPrototypeOf(t);
2248 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
2249 }
2250 module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2251
2252 /***/ }),
2253
2254 /***/ "../node_modules/@babel/runtime/helpers/inherits.js":
2255 /*!**********************************************************!*\
2256 !*** ../node_modules/@babel/runtime/helpers/inherits.js ***!
2257 \**********************************************************/
2258 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2259
2260 var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2261 function _inherits(t, e) {
2262 if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
2263 t.prototype = Object.create(e && e.prototype, {
2264 constructor: {
2265 value: t,
2266 writable: !0,
2267 configurable: !0
2268 }
2269 }), Object.defineProperty(t, "prototype", {
2270 writable: !1
2271 }), e && setPrototypeOf(t, e);
2272 }
2273 module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
2274
2275 /***/ }),
2276
2277 /***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
2278 /*!***********************************************************************!*\
2279 !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
2280 \***********************************************************************/
2281 /***/ ((module) => {
2282
2283 function _interopRequireDefault(e) {
2284 return e && e.__esModule ? e : {
2285 "default": e
2286 };
2287 }
2288 module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
2289
2290 /***/ }),
2291
2292 /***/ "../node_modules/@babel/runtime/helpers/isNativeFunction.js":
2293 /*!******************************************************************!*\
2294 !*** ../node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
2295 \******************************************************************/
2296 /***/ ((module) => {
2297
2298 function _isNativeFunction(t) {
2299 try {
2300 return -1 !== Function.toString.call(t).indexOf("[native code]");
2301 } catch (n) {
2302 return "function" == typeof t;
2303 }
2304 }
2305 module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
2306
2307 /***/ }),
2308
2309 /***/ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js":
2310 /*!**************************************************************************!*\
2311 !*** ../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
2312 \**************************************************************************/
2313 /***/ ((module) => {
2314
2315 function _isNativeReflectConstruct() {
2316 try {
2317 var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
2318 } catch (t) {}
2319 return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
2320 return !!t;
2321 }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
2322 }
2323 module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
2324
2325 /***/ }),
2326
2327 /***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
2328 /*!**********************************************************************!*\
2329 !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
2330 \**********************************************************************/
2331 /***/ ((module) => {
2332
2333 function _iterableToArrayLimit(r, l) {
2334 var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
2335 if (null != t) {
2336 var e,
2337 n,
2338 i,
2339 u,
2340 a = [],
2341 f = !0,
2342 o = !1;
2343 try {
2344 if (i = (t = t.call(r)).next, 0 === l) {
2345 if (Object(t) !== t) return;
2346 f = !1;
2347 } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
2348 } catch (r) {
2349 o = !0, n = r;
2350 } finally {
2351 try {
2352 if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
2353 } finally {
2354 if (o) throw n;
2355 }
2356 }
2357 return a;
2358 }
2359 }
2360 module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
2361
2362 /***/ }),
2363
2364 /***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
2365 /*!*****************************************************************!*\
2366 !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
2367 \*****************************************************************/
2368 /***/ ((module) => {
2369
2370 function _nonIterableRest() {
2371 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2372 }
2373 module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
2374
2375 /***/ }),
2376
2377 /***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
2378 /*!***************************************************************************!*\
2379 !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
2380 \***************************************************************************/
2381 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2382
2383 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2384 var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js");
2385 function _possibleConstructorReturn(t, e) {
2386 if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
2387 if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
2388 return assertThisInitialized(t);
2389 }
2390 module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
2391
2392 /***/ }),
2393
2394 /***/ "../node_modules/@babel/runtime/helpers/readOnlyError.js":
2395 /*!***************************************************************!*\
2396 !*** ../node_modules/@babel/runtime/helpers/readOnlyError.js ***!
2397 \***************************************************************/
2398 /***/ ((module) => {
2399
2400 function _readOnlyError(r) {
2401 throw new TypeError('"' + r + '" is read-only');
2402 }
2403 module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports;
2404
2405 /***/ }),
2406
2407 /***/ "../node_modules/@babel/runtime/helpers/regenerator.js":
2408 /*!*************************************************************!*\
2409 !*** ../node_modules/@babel/runtime/helpers/regenerator.js ***!
2410 \*************************************************************/
2411 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2412
2413 var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js");
2414 function _regenerator() {
2415 /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
2416 var e,
2417 t,
2418 r = "function" == typeof Symbol ? Symbol : {},
2419 n = r.iterator || "@@iterator",
2420 o = r.toStringTag || "@@toStringTag";
2421 function i(r, n, o, i) {
2422 var c = n && n.prototype instanceof Generator ? n : Generator,
2423 u = Object.create(c.prototype);
2424 return regeneratorDefine(u, "_invoke", function (r, n, o) {
2425 var i,
2426 c,
2427 u,
2428 f = 0,
2429 p = o || [],
2430 y = !1,
2431 G = {
2432 p: 0,
2433 n: 0,
2434 v: e,
2435 a: d,
2436 f: d.bind(e, 4),
2437 d: function d(t, r) {
2438 return i = t, c = 0, u = e, G.n = r, a;
2439 }
2440 };
2441 function d(r, n) {
2442 for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
2443 var o,
2444 i = p[t],
2445 d = G.p,
2446 l = i[2];
2447 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));
2448 }
2449 if (o || r > 1) return a;
2450 throw y = !0, n;
2451 }
2452 return function (o, p, l) {
2453 if (f > 1) throw TypeError("Generator is already running");
2454 for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
2455 i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
2456 try {
2457 if (f = 2, i) {
2458 if (c || (o = "next"), t = i[o]) {
2459 if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
2460 if (!t.done) return t;
2461 u = t.value, c < 2 && (c = 0);
2462 } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
2463 i = e;
2464 } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
2465 } catch (t) {
2466 i = e, c = 1, u = t;
2467 } finally {
2468 f = 1;
2469 }
2470 }
2471 return {
2472 value: t,
2473 done: y
2474 };
2475 };
2476 }(r, o, i), !0), u;
2477 }
2478 var a = {};
2479 function Generator() {}
2480 function GeneratorFunction() {}
2481 function GeneratorFunctionPrototype() {}
2482 t = Object.getPrototypeOf;
2483 var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function () {
2484 return this;
2485 }), t),
2486 u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
2487 function f(e) {
2488 return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
2489 }
2490 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 () {
2491 return this;
2492 }), regeneratorDefine(u, "toString", function () {
2493 return "[object Generator]";
2494 }), (module.exports = _regenerator = function _regenerator() {
2495 return {
2496 w: i,
2497 m: f
2498 };
2499 }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
2500 }
2501 module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
2502
2503 /***/ }),
2504
2505 /***/ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js":
2506 /*!******************************************************************!*\
2507 !*** ../node_modules/@babel/runtime/helpers/regeneratorAsync.js ***!
2508 \******************************************************************/
2509 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2510
2511 var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js");
2512 function _regeneratorAsync(n, e, r, t, o) {
2513 var a = regeneratorAsyncGen(n, e, r, t, o);
2514 return a.next().then(function (n) {
2515 return n.done ? n.value : a.next();
2516 });
2517 }
2518 module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports;
2519
2520 /***/ }),
2521
2522 /***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js":
2523 /*!*********************************************************************!*\
2524 !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js ***!
2525 \*********************************************************************/
2526 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2527
2528 var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js");
2529 var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js");
2530 function _regeneratorAsyncGen(r, e, t, o, n) {
2531 return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise);
2532 }
2533 module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports;
2534
2535 /***/ }),
2536
2537 /***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js":
2538 /*!**************************************************************************!*\
2539 !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js ***!
2540 \**************************************************************************/
2541 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2542
2543 var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js");
2544 var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js");
2545 function AsyncIterator(t, e) {
2546 function n(r, o, i, f) {
2547 try {
2548 var c = t[r](o),
2549 u = c.value;
2550 return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) {
2551 n("next", t, i, f);
2552 }, function (t) {
2553 n("throw", t, i, f);
2554 }) : e.resolve(u).then(function (t) {
2555 c.value = t, i(c);
2556 }, function (t) {
2557 return n("throw", t, i, f);
2558 });
2559 } catch (t) {
2560 f(t);
2561 }
2562 }
2563 var r;
2564 this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () {
2565 return this;
2566 })), regeneratorDefine(this, "_invoke", function (t, o, i) {
2567 function f() {
2568 return new e(function (e, r) {
2569 n(t, i, e, r);
2570 });
2571 }
2572 return r = r ? r.then(f, f) : f();
2573 }, !0);
2574 }
2575 module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports;
2576
2577 /***/ }),
2578
2579 /***/ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js":
2580 /*!*******************************************************************!*\
2581 !*** ../node_modules/@babel/runtime/helpers/regeneratorDefine.js ***!
2582 \*******************************************************************/
2583 /***/ ((module) => {
2584
2585 function _regeneratorDefine(e, r, n, t) {
2586 var i = Object.defineProperty;
2587 try {
2588 i({}, "", {});
2589 } catch (e) {
2590 i = 0;
2591 }
2592 module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) {
2593 if (r) i ? i(e, r, {
2594 value: n,
2595 enumerable: !t,
2596 configurable: !t,
2597 writable: !t
2598 }) : e[r] = n;else {
2599 var o = function o(r, n) {
2600 _regeneratorDefine(e, r, function (e) {
2601 return this._invoke(r, n, e);
2602 });
2603 };
2604 o("next", 0), o("throw", 1), o("return", 2);
2605 }
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 /***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js":
2746 /*!****************************************************************!*\
2747 !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
2748 \****************************************************************/
2749 /***/ ((module) => {
2750
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);
2755 }
2756 module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2757
2758 /***/ }),
2759
2760 /***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
2761 /*!***************************************************************!*\
2762 !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
2763 \***************************************************************/
2764 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2765
2766 var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
2767 var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
2768 var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
2769 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();
2772 }
2773 module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2774
2775 /***/ }),
2776
2777 /***/ "../node_modules/@babel/runtime/helpers/superPropBase.js":
2778 /*!***************************************************************!*\
2779 !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***!
2780 \***************************************************************/
2781 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2782
2783 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;
2787 }
2788 module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
2789
2790 /***/ }),
2791
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 /***/ "../node_modules/@babel/runtime/helpers/typeof.js":
2830 /*!********************************************************!*\
2831 !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
2832 \********************************************************/
2833 /***/ ((module) => {
2834
2835 function _typeof(o) {
2836 "@babel/helpers - typeof";
2837
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);
2843 }
2844 module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
2845
2846 /***/ }),
2847
2848 /***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
2849 /*!****************************************************************************!*\
2850 !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
2851 \****************************************************************************/
2852 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2853
2854 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 }
2861 }
2862 module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2863
2864 /***/ }),
2865
2866 /***/ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js":
2867 /*!*****************************************************************!*\
2868 !*** ../node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
2869 \*****************************************************************/
2870 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2871
2872 var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
2873 var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2874 var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ "../node_modules/@babel/runtime/helpers/isNativeFunction.js");
2875 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);
2884 }
2885 function Wrapper() {
2886 return construct(t, arguments, getPrototypeOf(this).constructor);
2887 }
2888 return Wrapper.prototype = Object.create(t.prototype, {
2889 constructor: {
2890 value: Wrapper,
2891 enumerable: !1,
2892 writable: !0,
2893 configurable: !0
2894 }
2895 }), setPrototypeOf(Wrapper, t);
2896 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t);
2897 }
2898 module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
2899
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 /***/ })
2937
2938 /******/ });
2939 /************************************************************************/
2940 /******/ // The module cache
2941 /******/ var __webpack_module_cache__ = {};
2942 /******/
2943 /******/ // The require function
2944 /******/ function __webpack_require__(moduleId) {
2945 /******/ // Check if module is in cache
2946 /******/ var cachedModule = __webpack_module_cache__[moduleId];
2947 /******/ if (cachedModule !== undefined) {
2948 /******/ return cachedModule.exports;
2949 /******/ }
2950 /******/ // Create a new module (and put it into the cache)
2951 /******/ var module = __webpack_module_cache__[moduleId] = {
2952 /******/ // no module.id needed
2953 /******/ // no module.loaded needed
2954 /******/ exports: {}
2955 /******/ };
2956 /******/
2957 /******/ // Execute the module function
2958 /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
2959 /******/
2960 /******/ // Return the exports of the module
2961 /******/ return module.exports;
2962 /******/ }
2963 /******/
2964 /************************************************************************/
2965 var __webpack_exports__ = {};
2966 // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
2967 (() => {
2968 "use strict";
2969 /*!******************************************!*\
2970 !*** ../assets/dev/js/editor/modules.js ***!
2971 \******************************************/
2972
2973
2974 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2975 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"));
2977 var _controlsStack = _interopRequireDefault(__webpack_require__(/*! ./views/controls-stack */ "../assets/dev/js/editor/views/controls-stack.js"));
2978 var _baseSettings = _interopRequireDefault(__webpack_require__(/*! ./elements/models/base-settings */ "../assets/dev/js/editor/elements/models/base-settings.js"));
2979 var _container = _interopRequireDefault(__webpack_require__(/*! ./container/container */ "../assets/dev/js/editor/container/container.js"));
2980 elementorModules.editor = {
2981 elements: {
2982 models: {
2983 BaseSettings: _baseSettings.default
2984 }
2985 },
2986 utils: {
2987 Module: _module.default,
2988 Introduction: _introduction.default
2989 },
2990 views: {
2991 ControlsStack: _controlsStack.default
2992 },
2993 Container: _container.default
2994 };
2995 })();
2996
2997 /******/ })()
2998 ;
2999 //# sourceMappingURL=editor-modules.js.map