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

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

2,961 lines 114.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*! elementor - v3.26.0 - 19-12-2024 */
2 /******/ (() => { // webpackBootstrap
3 /******/ var __webpack_modules__ = ({
4
5 /***/ "../assets/dev/js/editor/container/container.js":
6 /*!******************************************************!*\
7 !*** ../assets/dev/js/editor/container/container.js ***!
8 \******************************************************/
9 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
10
11 "use strict";
12 /* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
13
14
15 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
16 Object.defineProperty(exports, "__esModule", ({
17 value: true
18 }));
19 exports["default"] = void 0;
20 var _readOnlyError2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/readOnlyError */ "../node_modules/@babel/runtime/helpers/readOnlyError.js"));
21 var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
22 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
23 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
24 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
25 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
26 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
27 var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
28 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
29 var _argsObject = _interopRequireDefault(__webpack_require__(/*! ../../modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js"));
30 var _panel = _interopRequireDefault(__webpack_require__(/*! ./panel */ "../assets/dev/js/editor/container/panel.js"));
31 var _childrenArray = _interopRequireDefault(__webpack_require__(/*! ./model/children-array */ "../assets/dev/js/editor/container/model/children-array.js"));
32 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)); }
33 function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
34 /**
35 * @typedef {import('../../../../lib/backbone/backbone.marionette')} Backbone
36 * @typedef {import('../../../../lib/backbone/backbone.marionette')} Marionette
37 * @typedef {import('../elements/views/base')} BaseElementView
38 * @typedef {import('../elements/views/section')} SectionView
39 * @typedef {import('../views/base-container')} BaseContainer
40 * @typedef {import('../elements/models/base-element-model')} BaseElementModel
41 */
42 /**
43 * TODO: ViewsOptions
44 *
45 * @typedef {(Marionette.View|Marionette.CompositeView|BaseElementView|SectionView|BaseContainer)} ViewsOptions
46 */
47 var Container = exports["default"] = /*#__PURE__*/function (_ArgsObject) {
48 /**
49 * Function constructor().
50 *
51 * Create container.
52 *
53 * @param {{}} args
54 *
55 * @throws {Error}
56 */
57 function Container(args) {
58 var _this;
59 (0, _classCallCheck2.default)(this, Container);
60 _this = _callSuper(this, Container, [args]);
61
62 // Validate args.
63 /**
64 * Container type.
65 *
66 * @type {string}
67 */
68 (0, _defineProperty2.default)(_this, "type", void 0);
69 /**
70 * Container id.
71 *
72 * @type {string}
73 */
74 (0, _defineProperty2.default)(_this, "id", void 0);
75 /**
76 * Document Object.
77 *
78 * @type {{}}
79 */
80 (0, _defineProperty2.default)(_this, "document", void 0);
81 /**
82 * Container model.
83 *
84 * @type {(Backbone.Model|BaseElementModel)}
85 */
86 (0, _defineProperty2.default)(_this, "model", void 0);
87 /**
88 * Container settings.
89 *
90 * @type {Backbone.Model}
91 */
92 (0, _defineProperty2.default)(_this, "settings", void 0);
93 /**
94 * Container view.
95 *
96 * @type {ViewsOptions}
97 */
98 (0, _defineProperty2.default)(_this, "view", void 0);
99 /**
100 * Container parent.
101 *
102 * @type {Container}
103 */
104 (0, _defineProperty2.default)(_this, "parent", void 0);
105 /**
106 * Container children(s).
107 *
108 * @type {ChildrenArray}
109 */
110 (0, _defineProperty2.default)(_this, "children", new _childrenArray.default());
111 /**
112 * Container dynamic.
113 *
114 * @type {Backbone.Model}
115 */
116 (0, _defineProperty2.default)(_this, "dynamic", void 0);
117 /**
118 * Container globals.
119 *
120 * @type {Backbone.Model}
121 */
122 (0, _defineProperty2.default)(_this, "globals", void 0);
123 /**
124 * Container label.
125 *
126 * @type {string}
127 */
128 (0, _defineProperty2.default)(_this, "label", void 0);
129 /**
130 * Container controls.
131 *
132 * @type {{}}
133 */
134 (0, _defineProperty2.default)(_this, "controls", {});
135 /**
136 * Repeaters containers
137 *
138 * @type {{}}
139 */
140 (0, _defineProperty2.default)(_this, "repeaters", {});
141 /**
142 * Container renderer (The one who render).
143 *
144 * @type {Container}
145 */
146 (0, _defineProperty2.default)(_this, "renderer", void 0);
147 /**
148 * Container panel.
149 *
150 * @type {Panel}
151 */
152 (0, _defineProperty2.default)(_this, "panel", void 0);
153 /**
154 * Controls placeholders.
155 *
156 * @type {{}}
157 */
158 (0, _defineProperty2.default)(_this, "placeholders", {});
159 _this.validateArgs(args);
160 args = Object.entries(args);
161
162 // If empty.
163 if (0 === args.length) {
164 throw Error('Container cannot be empty.');
165 }
166
167 // Set properties, if not defined - keep the defaults.
168 args.forEach(function (_ref) {
169 var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
170 key = _ref2[0],
171 value = _ref2[1];
172 _this[key] = 'undefined' === typeof value ? _this[key] : value;
173 });
174 if ('undefined' === typeof _this.renderer) {
175 _this.renderer = _this;
176 }
177 if (!_this.document) {
178 _this.document = elementor.documents.getCurrent();
179 }
180 _this.dynamic = new Backbone.Model(_this.settings.get('__dynamic__'));
181 _this.globals = new Backbone.Model(_this.settings.get('__globals__'));
182 _this.panel = new _panel.default(_this);
183 _this.initialize();
184 return _this;
185 }
186 (0, _inherits2.default)(Container, _ArgsObject);
187 return (0, _createClass2.default)(Container, [{
188 key: "initialize",
189 value: function initialize() {
190 if (this.isViewElement()) {
191 this.addToParent();
192 this.handleChildrenRecursive();
193 this.view.on('destroy', this.removeFromParent.bind(this));
194 }
195 this.handleRepeaterChildren();
196 }
197 }, {
198 key: "validateArgs",
199 value: function validateArgs(args) {
200 this.requireArgumentType('type', 'string', args);
201 this.requireArgumentType('id', 'string', args);
202 this.requireArgumentInstance('settings', Backbone.Model, args);
203 this.requireArgumentInstance('model', Backbone.Model, args);
204
205 // Require it, unless it's forced to be `false`.
206 if (false !== args.parent) {
207 this.requireArgumentInstance('parent', elementorModules.editor.Container, args);
208 }
209 }
210
211 /**
212 * Function getGroupRelatedControls().
213 *
214 * Example:
215 * Settings = { typography_typography: 'whatever', button_text_color: 'whatever' };
216 * Result { control_name: controlValue, ... - and so on };
217 * `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' ]`.
218 *
219 * @param {{}} settings
220 *
221 * @return {{}} result
222 */
223 }, {
224 key: "getGroupRelatedControls",
225 value: function getGroupRelatedControls(settings) {
226 var _this2 = this;
227 var result = {};
228 Object.keys(settings).forEach(function (settingKey) {
229 Object.values(_this2.controls).forEach(function (control) {
230 var _this2$controls$setti;
231 if (settingKey === control.name) {
232 result[control.name] = control;
233 } else if ((_this2$controls$setti = _this2.controls[settingKey]) !== null && _this2$controls$setti !== void 0 && _this2$controls$setti.groupPrefix) {
234 var groupPrefix = _this2.controls[settingKey].groupPrefix;
235 if (control.name.toString().startsWith(groupPrefix)) {
236 result[control.name] = control;
237 }
238 }
239 });
240 });
241 return result;
242 }
243
244 /**
245 * Function getAffectingControls().
246 *
247 * @return {{}} All controls that effecting the container.
248 */
249 }, {
250 key: "getAffectingControls",
251 value: function getAffectingControls() {
252 var _this3 = this;
253 var result = {},
254 activeControls = this.settings.getActiveControls();
255 Object.entries(activeControls).forEach(function (_ref3) {
256 var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
257 controlName = _ref4[0],
258 control = _ref4[1];
259 var controlValue = _this3.settings.get(control.name);
260 if (control.global && !(controlValue !== null && controlValue !== void 0 && controlValue.length)) {
261 var _this3$globals$get;
262 if ((_this3$globals$get = _this3.globals.get(control.name)) !== null && _this3$globals$get !== void 0 && _this3$globals$get.length || _this3.getGlobalDefault(controlName).length) {
263 control.global.utilized = true;
264 result[controlName] = control;
265 return;
266 }
267 }
268 if (control.dynamic) {
269 if (_this3.dynamic.get(controlName)) {
270 control.dynamic.utilized = true;
271 result[controlName] = control;
272 return;
273 }
274 }
275 if (controlValue === control.default) {
276 return;
277 }
278 if (!controlValue) {
279 return;
280 }
281 if ('object' === (0, _typeof2.default)(controlValue) && Object.values(controlValue).join() === Object.values(control.default).join()) {
282 return;
283 }
284 result[controlName] = control;
285 });
286 return result;
287 }
288
289 /**
290 * Function getParentAncestry().
291 *
292 * Recursively run over all parents from current container till the top
293 *
294 * @return {Array.<Container>} All parent as flat array.
295 */
296 }, {
297 key: "getParentAncestry",
298 value: function getParentAncestry() {
299 var result = [];
300 var parent = this;
301 while (parent) {
302 result.push(parent);
303 parent = parent.parent;
304 }
305 return result;
306 }
307 }, {
308 key: "handleChildrenRecursive",
309 value: function handleChildrenRecursive() {
310 var _this$view$children;
311 if ((_this$view$children = this.view.children) !== null && _this$view$children !== void 0 && _this$view$children.length) {
312 Object.values(this.view.children._views).forEach(function (view) {
313 if (!view.container) {
314 return;
315 }
316 var container = view.container;
317
318 // Since the way 'global-widget' rendered, it does not have parent sometimes.
319 if (container.parent.children) {
320 container.parent.children[view._index] = container;
321 }
322 container.handleChildrenRecursive();
323 });
324 } else {
325 this.children.clear();
326 }
327 }
328 }, {
329 key: "addToParent",
330 value: function addToParent() {
331 if (!this.parent.children || this.isRepeaterItem()) {
332 return;
333 }
334
335 // On create container tell the parent where it was created.
336 this.parent.children.splice(this.view._index, 0, this);
337 }
338 }, {
339 key: "removeFromParent",
340 value: function removeFromParent() {
341 var _this4 = this;
342 if (!this.parent.children || this.isRepeater()) {
343 return;
344 }
345
346 // When delete container its should notify its parent, that his children is dead.
347 this.parent.children = this.parent.children.filter(function (filtered) {
348 return filtered.id !== _this4.id;
349 });
350 }
351 }, {
352 key: "handleRepeaterChildren",
353 value: function handleRepeaterChildren() {
354 var _this5 = this;
355 Object.values(this.controls).forEach(function (control) {
356 if (!control.is_repeater) {
357 return;
358 }
359 var model = new Backbone.Model({
360 name: control.name
361 });
362 _this5.repeaters[control.name] = new elementorModules.editor.Container({
363 type: Container.TYPE_REPEATER,
364 id: control.name,
365 model: model,
366 settings: model,
367 view: _this5.view,
368 parent: _this5,
369 label: control.label || control.name,
370 controls: {},
371 renderer: _this5.renderer
372 });
373 _this5.settings.get(control.name).forEach(function (rowModel, index) {
374 _this5.addRepeaterItem(control.name, rowModel, index);
375 });
376 });
377
378 // Backwards Compatibility: if there is only one repeater (type=repeater), set it's children as current children.
379 // Since 3.0.0.
380 if (['widget', 'document'].includes(this.type)) {
381 var repeaters = Object.values(this.controls).filter(function (control) {
382 return 'repeater' === control.type;
383 });
384 if (!this.model.get('supportRepeaterChildren') && 1 === repeaters.length) {
385 Object.defineProperty(this, 'children', {
386 get: function get() {
387 elementorDevTools.deprecation.deprecated('children', '3.0.0', 'container.repeaters[ repeaterName ].children');
388 return this.repeaters[repeaters[0].name].children;
389 }
390 });
391 }
392 }
393 }
394
395 /**
396 * Function addRepeaterItem().
397 *
398 * The method add repeater item, find the repeater control by it name, and create new container for the item.
399 *
400 * @param {string} repeaterName
401 * @param {Backbone.Model} rowSettingsModel
402 * @param {number} index
403 *
404 * @return {Container} container
405 */
406 }, {
407 key: "addRepeaterItem",
408 value: function addRepeaterItem(repeaterName, rowSettingsModel, index) {
409 var rowId = rowSettingsModel.get('_id');
410
411 // TODO: Temp backwards compatibility. since 2.8.0.
412 if (!rowId) {
413 rowId = 'bc-' + elementorCommon.helpers.getUniqueId();
414 rowSettingsModel.set('_id', rowId);
415 }
416 this.repeaters[repeaterName].children.splice(index, 0, new elementorModules.editor.Container({
417 type: Container.TYPE_REPEATER_ITEM,
418 id: rowSettingsModel.get('_id'),
419 model: new Backbone.Model({
420 name: repeaterName
421 }),
422 settings: rowSettingsModel,
423 view: this.view,
424 parent: this.repeaters[repeaterName],
425 label: this.label + ' ' + __('Item', 'elementor'),
426 controls: rowSettingsModel.options.controls,
427 renderer: this.renderer
428 }));
429 return this.repeaters[repeaterName];
430 }
431
432 /**
433 * Function lookup().
434 *
435 * If the view were destroyed, try to find it again if it exists.
436 *
437 * TODO: Refactor.
438 *
439 * @return {Container} container
440 */
441 }, {
442 key: "lookup",
443 value: function lookup() {
444 var _this$renderer$view;
445 var result = this;
446 if (!this.renderer) {
447 return this;
448 }
449 if (this !== this.renderer && (_this$renderer$view = this.renderer.view) !== null && _this$renderer$view !== void 0 && _this$renderer$view.isDisconnected && this.renderer.view.isDisconnected()) {
450 this.renderer = this.renderer.lookup();
451 }
452 if (undefined === this.view || !this.view.lookup || !this.view.isDisconnected()) {
453 // Hack For repeater item the result is the parent container.
454 if (Container.TYPE_REPEATER_ITEM === this.type) {
455 this.settings = this.parent.parent.settings.get(this.model.get('name')).findWhere({
456 _id: this.id
457 });
458 }
459 return result;
460 }
461 var lookup = this.view.lookup();
462 if (lookup) {
463 result = lookup.getContainer();
464
465 // Hack For repeater item the result is the parent container.
466 if (Container.REPEATER === this.type) {
467 this.settings = result.settings.get(this.model.get('name')).findWhere({
468 _id: this.id
469 });
470 return this;
471 }
472
473 // If lookup were done, new container were created and parent does not know about it.
474 if (result.parent.children) {
475 result.parent.children[result.view._index] = result;
476 }
477 }
478 return result;
479 }
480
481 /**
482 * @param {Function} callback - A callback function.
483 * @deprecated since 3.5.0, use `container.children.findRecursive( callback )` instead.
484 */
485 }, {
486 key: "findChildrenRecursive",
487 value: function findChildrenRecursive(callback) {
488 elementorDevTools.deprecation.deprecated('container.findChildrenRecursive( callback )', '3.5.0', 'container.children.findRecursive( callback )');
489 return this.children.findRecursive(callback);
490 }
491
492 /**
493 * @param {Function} callback - A callback function.
494 * @deprecated since 3.5.0, use `container.children.forEachRecursive( callback )` instead.
495 */
496 }, {
497 key: "forEachChildrenRecursive",
498 value: function forEachChildrenRecursive(callback) {
499 elementorDevTools.deprecation.deprecated('container.forEachChildrenRecursive( callback )', '3.5.0', 'container.children.forEachRecursive( callback )');
500 return this.children.forEachRecursive(callback);
501 }
502
503 /**
504 * Function render().
505 *
506 * Call view render.
507 *
508 * Run's `this.renderer.view.renderOnChange( this.settings ) `.
509 * When `this.renderer` exist.
510 *
511 */
512 }, {
513 key: "render",
514 value: function render() {
515 var _this$view;
516 if (!this.renderer) {
517 return;
518 }
519 this.renderer.view.renderOnChange(this.settings, (_this$view = this.view) === null || _this$view === void 0 ? void 0 : _this$view.$el);
520 }
521 }, {
522 key: "renderUI",
523 value: function renderUI() {
524 if (!this.renderer) {
525 return;
526 }
527 this.renderer.view.renderUI();
528 }
529 }, {
530 key: "isEditable",
531 value: function isEditable() {
532 return 'edit' === elementor.channels.dataEditMode.request('activeMode') && 'open' === this.document.editor.status;
533 }
534 }, {
535 key: "isDesignable",
536 value: function isDesignable() {
537 return elementor.userCan('design') && this.isEditable();
538 }
539 }, {
540 key: "isGridContainer",
541 value: function isGridContainer() {
542 return 'grid' === this.parent.settings.get('container_type');
543 }
544
545 /**
546 * @return {boolean}
547 */
548 }, {
549 key: "isLocked",
550 value: function isLocked() {
551 return this.model.get('isLocked');
552 }
553 }, {
554 key: "isRepeater",
555 value: function isRepeater() {
556 return Container.TYPE_REPEATER === this.type;
557 }
558 }, {
559 key: "isRepeaterItem",
560 value: function isRepeaterItem() {
561 return Container.TYPE_REPEATER_ITEM === this.type;
562 }
563 }, {
564 key: "isViewElement",
565 value: function isViewElement() {
566 return this.view && this.model.get('elType');
567 }
568 }, {
569 key: "getSetting",
570 value: function getSetting(name) {
571 var localOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
572 var localValue = this.settings.get(name);
573 if (localOnly) {
574 return localValue;
575 }
576
577 // Try to get the value in the order: Global, Local, Global default.
578 var globalValue;
579 if (this.getGlobalKey(name)) {
580 globalValue = this.getGlobalValue(name);
581 }
582 return globalValue || localValue || this.getGlobalDefault(name);
583 }
584 }, {
585 key: "getGlobalKey",
586 value: function getGlobalKey(name) {
587 return this.globals.get(name);
588 }
589 }, {
590 key: "getGlobalValue",
591 value: function getGlobalValue(name) {
592 var control = this.controls[name],
593 globalKey = this.getGlobalKey(name),
594 globalArgs = $e.data.commandExtractArgs(globalKey),
595 data = $e.data.getCache($e.components.get('globals'), globalArgs.command, globalArgs.args.query);
596 if (!(data !== null && data !== void 0 && data.value)) {
597 return;
598 }
599 var id = data.id;
600 var value;
601
602 // It's a global settings with additional controls in group.
603 if (control.groupType) {
604 // A regex containing all of the active breakpoints' prefixes ('_mobile', '_tablet' etc.).
605 var responsivePrefixRegex = elementor.breakpoints.getActiveMatchRegex();
606 var propertyName = control.name.replace(control.groupPrefix, '').replace(responsivePrefixRegex, '');
607 if (!data.value[elementor.config.kit_config.typography_prefix + propertyName]) {
608 return;
609 }
610 propertyName = propertyName.replace('_', '-');
611 value = "var( --e-global-".concat(control.groupType, "-").concat(id, "-").concat(propertyName, " )");
612 if (elementor.config.ui.defaultGenericFonts && control.groupPrefix + 'font_family' === control.name) {
613 value += ", ".concat(elementor.config.ui.defaultGenericFonts);
614 }
615 } else {
616 value = "var( --e-global-".concat(control.type, "-").concat(id, " )");
617 }
618 return value;
619 }
620
621 /**
622 * Determine if a control's global value is applied.
623 * It actually checks if the local value is different than the global value.
624 *
625 * @param {string} controlName - Control name
626 * @return {boolean} true if a control's global value is applied
627 */
628 }, {
629 key: "isGlobalApplied",
630 value: function isGlobalApplied(controlName) {
631 return this.getSetting(controlName) !== this.settings.get(controlName);
632 }
633 }, {
634 key: "getGlobalDefault",
635 value: function getGlobalDefault(controlName) {
636 var _this$controls$contro;
637 var controlGlobalArgs = (_this$controls$contro = this.controls[controlName]) === null || _this$controls$contro === void 0 ? void 0 : _this$controls$contro.global;
638 if (controlGlobalArgs !== null && controlGlobalArgs !== void 0 && controlGlobalArgs.default) {
639 // Temp fix.
640 var controlType = this.controls[controlName].type;
641 if ('color' === controlType) {
642 controlType = 'colors';
643 }
644 // End temp fix
645
646 // If the control is a color/typography control and default colors/typography are disabled, don't return the global value.
647 if (!elementor.config.globals.defaults_enabled[controlType]) {
648 return '';
649 }
650 var _$e$data$commandExtra = $e.data.commandExtractArgs(controlGlobalArgs.default),
651 command = _$e$data$commandExtra.command,
652 args = _$e$data$commandExtra.args,
653 result = $e.data.getCache($e.components.get('globals'), command, args.query);
654 return result === null || result === void 0 ? void 0 : result.value;
655 }
656
657 // No global default.
658 return '';
659 }
660 }]);
661 }(_argsObject.default);
662 // TODO: Swap those backwards compatibility is required.
663 (0, _defineProperty2.default)(Container, "TYPE_REPEATER", 'repeater-control');
664 (0, _defineProperty2.default)(Container, "TYPE_REPEATER_ITEM", 'repeater');
665
666 /***/ }),
667
668 /***/ "../assets/dev/js/editor/container/model/children-array.js":
669 /*!*****************************************************************!*\
670 !*** ../assets/dev/js/editor/container/model/children-array.js ***!
671 \*****************************************************************/
672 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
673
674 "use strict";
675
676
677 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
678 Object.defineProperty(exports, "__esModule", ({
679 value: true
680 }));
681 exports["default"] = void 0;
682 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
683 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
684 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
685 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
686 var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
687 var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js"));
688 function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
689 function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
690 function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
691 function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
692 function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
693 /**
694 * @typedef {import('../container')} Container
695 */
696 var ChildrenArray = exports["default"] = /*#__PURE__*/function (_Array) {
697 function ChildrenArray() {
698 (0, _classCallCheck2.default)(this, ChildrenArray);
699 return _callSuper(this, ChildrenArray, arguments);
700 }
701 (0, _inherits2.default)(ChildrenArray, _Array);
702 return (0, _createClass2.default)(ChildrenArray, [{
703 key: "clear",
704 value: function clear() {
705 this.length = 0;
706 }
707
708 /**
709 * Function findRecursive().
710 *
711 * Will run over children recursively and pass the children to the callback till the callback returns positive value.
712 *
713 * @param {function(Container) : *} callback
714 *
715 * @return {Container|false} child
716 */
717 }, {
718 key: "findRecursive",
719 value: function findRecursive(callback) {
720 var _iterator = _createForOfIteratorHelper(this),
721 _step;
722 try {
723 for (_iterator.s(); !(_step = _iterator.n()).done;) {
724 var container = _step.value;
725 if (callback(container)) {
726 return container;
727 }
728 if (container.children.length) {
729 var foundChildren = container.children.findRecursive(callback);
730 if (foundChildren) {
731 return foundChildren;
732 }
733 }
734 }
735 } catch (err) {
736 _iterator.e(err);
737 } finally {
738 _iterator.f();
739 }
740 return false;
741 }
742
743 /**
744 * Function forEachRecursive().
745 *
746 * Will run over children recursively.
747 *
748 * @param {function(Container) : *} callback
749 *
750 * @return {void}
751 */
752 }, {
753 key: "forEachRecursive",
754 value: function forEachRecursive(callback) {
755 var _iterator2 = _createForOfIteratorHelper(this),
756 _step2;
757 try {
758 for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
759 var container = _step2.value;
760 callback(container);
761 if (container.children.length) {
762 container.children.forEachRecursive(callback);
763 }
764 }
765 } catch (err) {
766 _iterator2.e(err);
767 } finally {
768 _iterator2.f();
769 }
770 }
771
772 /**
773 * Function someRecursive().
774 *
775 * Will run over children recursively, breaks if the callback return true.
776 *
777 * @param {function(Container) : *} callback
778 */
779 }, {
780 key: "someRecursive",
781 value: function someRecursive(callback) {
782 var _iterator3 = _createForOfIteratorHelper(this),
783 _step3;
784 try {
785 for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
786 var _container$children;
787 var container = _step3.value;
788 if (callback(container)) {
789 return true;
790 }
791 if ((_container$children = container.children) !== null && _container$children !== void 0 && _container$children.length) {
792 if (container.children.someRecursive(callback)) {
793 return true;
794 }
795 }
796 }
797 } catch (err) {
798 _iterator3.e(err);
799 } finally {
800 _iterator3.f();
801 }
802 return false;
803 }
804 }]);
805 }(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Array));
806
807 /***/ }),
808
809 /***/ "../assets/dev/js/editor/container/panel.js":
810 /*!**************************************************!*\
811 !*** ../assets/dev/js/editor/container/panel.js ***!
812 \**************************************************/
813 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
814
815 "use strict";
816
817
818 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
819 Object.defineProperty(exports, "__esModule", ({
820 value: true
821 }));
822 exports["default"] = void 0;
823 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
824 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
825 /**
826 * @typedef {import('./container')} Container
827 */
828 var Panel = exports["default"] = /*#__PURE__*/function () {
829 /**
830 * Function constructor().
831 *
832 * Create constructor panel.
833 *
834 * @param {Container} container
835 */
836 function Panel(container) {
837 (0, _classCallCheck2.default)(this, Panel);
838 this.container = container;
839 }
840
841 /**
842 * Function refresh().
843 *
844 * Refresh the panel.
845 */
846 return (0, _createClass2.default)(Panel, [{
847 key: "refresh",
848 value: function refresh() {
849 if ($e.routes.isPartOf('panel/editor')) {
850 $e.routes.refreshContainer('panel');
851 }
852 }
853
854 /**
855 * Function closeEditor().
856 *
857 * Route to `panel/elements/categories`
858 */
859 }, {
860 key: "closeEditor",
861 value: function closeEditor() {
862 $e.route('panel/elements/categories');
863 }
864 }, {
865 key: "getControlView",
866 value: function getControlView(name) {
867 var editor = elementor.getPanelView().getCurrentPageView();
868 return editor.children.findByModelCid(this.getControlModel(name).cid);
869 }
870 }, {
871 key: "getControlModel",
872 value: function getControlModel(name) {
873 var editor = elementor.getPanelView().getCurrentPageView();
874 return editor.collection.findWhere({
875 name: name
876 });
877 }
878 }]);
879 }();
880
881 /***/ }),
882
883 /***/ "../assets/dev/js/editor/elements/models/base-settings.js":
884 /*!****************************************************************!*\
885 !*** ../assets/dev/js/editor/elements/models/base-settings.js ***!
886 \****************************************************************/
887 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
888
889 "use strict";
890
891
892 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
893 var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
894 var BaseSettingsModel;
895
896 /**
897 * @name BaseSettingsModel
898 */
899 BaseSettingsModel = Backbone.Model.extend({
900 options: {},
901 initialize: function initialize(data, options) {
902 var self = this;
903
904 // Keep the options for cloning
905 self.options = options;
906 self.controls = elementor.mergeControlsSettings(options.controls);
907 self.validators = {};
908 if (!self.controls) {
909 return;
910 }
911 var attrs = data || {},
912 defaults = {};
913 _.each(self.controls, function (control) {
914 // Check features since they does not exist in tests.
915 var isUIControl = control.features && -1 !== control.features.indexOf('ui');
916 if (isUIControl) {
917 return;
918 }
919 var controlName = control.name;
920 if ('object' === (0, _typeof2.default)(control.default)) {
921 defaults[controlName] = structuredClone(control.default);
922 } else {
923 defaults[controlName] = control.default;
924 }
925 var isDynamicControl = control.dynamic && control.dynamic.active,
926 hasDynamicSettings = isDynamicControl && attrs.__dynamic__ && attrs.__dynamic__[controlName];
927 if (isDynamicControl && !hasDynamicSettings && control.dynamic.default) {
928 if (!attrs.__dynamic__) {
929 attrs.__dynamic__ = {};
930 }
931 attrs.__dynamic__[controlName] = control.dynamic.default;
932 hasDynamicSettings = true;
933 }
934
935 // Check if the value is a plain object ( and not an array )
936 var isMultipleControl = jQuery.isPlainObject(control.default);
937 if (undefined !== attrs[controlName] && isMultipleControl && !_.isObject(attrs[controlName]) && !hasDynamicSettings) {
938 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.');
939 delete attrs[controlName];
940 }
941 if (undefined === attrs[controlName]) {
942 attrs[controlName] = defaults[controlName];
943 }
944 });
945 self.defaults = defaults;
946 self.handleRepeaterData(attrs);
947 self.set(attrs);
948 },
949 convertRepeaterValueToCollection: function convertRepeaterValueToCollection(attrs, repeaterControl) {
950 return new Backbone.Collection(attrs[repeaterControl.name], {
951 model: function model(attributes, options) {
952 options = options || {};
953 options.controls = {};
954 Object.values(repeaterControl.fields).forEach(function (item) {
955 options.controls[item.name] = item;
956 });
957
958 // TODO: Cannot be deleted, since it handle repeater items after repeater widget creation.
959 if (!attributes._id) {
960 attributes._id = elementorCommon.helpers.getUniqueId();
961 }
962 return new BaseSettingsModel(attributes, options);
963 }
964 });
965 },
966 handleRepeaterData: function handleRepeaterData(attrs) {
967 var self = this;
968 _.each(this.controls, function (field) {
969 if (field.is_repeater) {
970 // TODO: Apply defaults on each field in repeater fields
971 if (!(attrs[field.name] instanceof Backbone.Collection)) {
972 attrs[field.name] = self.convertRepeaterValueToCollection(attrs, field);
973 }
974 }
975 });
976 },
977 getFontControls: function getFontControls() {
978 return this.getControlsByType('font');
979 },
980 getIconsControls: function getIconsControls() {
981 return this.getControlsByType('icons');
982 },
983 getControlsByType: function getControlsByType(type) {
984 return _.filter(this.getActiveControls(), function (control) {
985 return type === control.type;
986 });
987 },
988 getStyleControls: function getStyleControls(controls, attributes) {
989 var self = this;
990 controls = structuredClone(self.getActiveControls(controls, attributes));
991 var styleControls = [];
992 jQuery.each(controls, function () {
993 var _control$dynamic;
994 var control = this,
995 controlDefaultSettings = elementor.config.controls[control.type];
996 control = jQuery.extend({}, controlDefaultSettings, control);
997 if (control.fields) {
998 var styleFields = [];
999 if (!(self.attributes[control.name] instanceof Backbone.Collection)) {
1000 self.attributes[control.name] = self.convertRepeaterValueToCollection(self.attributes, control);
1001 }
1002 self.attributes[control.name].each(function (item) {
1003 styleFields.push(self.getStyleControls(control.fields, item.attributes));
1004 });
1005 control.styleFields = styleFields;
1006 }
1007 if (control.fields || (_control$dynamic = control.dynamic) !== null && _control$dynamic !== void 0 && _control$dynamic.active || self.isGlobalControl(control, controls) || self.isStyleControl(control.name, controls)) {
1008 styleControls.push(control);
1009 }
1010 });
1011 return styleControls;
1012 },
1013 isGlobalControl: function isGlobalControl(control, controls) {
1014 var _globalControl$global, _this$attributes$__gl;
1015 var controlGlobalKey = control.name;
1016 if (control.groupType) {
1017 controlGlobalKey = control.groupPrefix + control.groupType;
1018 }
1019 var globalControl = controls[controlGlobalKey];
1020 if (!(globalControl !== null && globalControl !== void 0 && (_globalControl$global = globalControl.global) !== null && _globalControl$global !== void 0 && _globalControl$global.active)) {
1021 return false;
1022 }
1023 var globalValue = (_this$attributes$__gl = this.attributes.__globals__) === null || _this$attributes$__gl === void 0 ? void 0 : _this$attributes$__gl[controlGlobalKey];
1024 return !!globalValue;
1025 },
1026 isStyleControl: function isStyleControl(attribute, controls) {
1027 controls = controls || this.controls;
1028 var currentControl = _.find(controls, function (control) {
1029 return attribute === control.name;
1030 });
1031 return currentControl && !_.isEmpty(currentControl.selectors);
1032 },
1033 getClassControls: function getClassControls(controls) {
1034 controls = controls || this.controls;
1035 return _.filter(controls, function (control) {
1036 return !_.isUndefined(control.prefix_class);
1037 });
1038 },
1039 isClassControl: function isClassControl(attribute) {
1040 var currentControl = _.find(this.controls, function (control) {
1041 return attribute === control.name;
1042 });
1043 return currentControl && !_.isUndefined(currentControl.prefix_class);
1044 },
1045 getControl: function getControl(id) {
1046 return _.find(this.controls, function (control) {
1047 return id === control.name;
1048 });
1049 },
1050 getActiveControls: function getActiveControls(controls, attributes) {
1051 var activeControls = {};
1052 if (!controls) {
1053 controls = this.controls;
1054 }
1055 if (!attributes) {
1056 attributes = this.attributes;
1057 }
1058 attributes = this.parseGlobalSettings(attributes, controls);
1059 jQuery.each(controls, function (controlKey, control) {
1060 if (elementor.helpers.isActiveControl(control, attributes, controls)) {
1061 activeControls[controlKey] = control;
1062 }
1063 });
1064 return activeControls;
1065 },
1066 clone: function clone() {
1067 return new BaseSettingsModel(elementorCommon.helpers.cloneObject(this.attributes), elementorCommon.helpers.cloneObject(this.options));
1068 },
1069 setExternalChange: function setExternalChange(key, value) {
1070 var self = this,
1071 settingsToChange;
1072 if ('object' === (0, _typeof2.default)(key)) {
1073 settingsToChange = key;
1074 } else {
1075 settingsToChange = {};
1076 settingsToChange[key] = value;
1077 }
1078 self.set(settingsToChange);
1079 jQuery.each(settingsToChange, function (changedKey, changedValue) {
1080 self.trigger('change:external:' + changedKey, changedValue);
1081 });
1082 },
1083 parseDynamicSettings: function parseDynamicSettings(settings, options, controls) {
1084 var self = this;
1085 settings = elementorCommon.helpers.cloneObject(settings || self.attributes);
1086 options = options || {};
1087 controls = controls || this.controls;
1088 jQuery.each(controls, function () {
1089 var control = this,
1090 valueToParse;
1091 if (control.is_repeater) {
1092 valueToParse = settings[control.name];
1093 valueToParse.forEach(function (value, key) {
1094 valueToParse[key] = self.parseDynamicSettings(value, options, control.fields);
1095 });
1096 return;
1097 }
1098 valueToParse = settings.__dynamic__ && settings.__dynamic__[control.name];
1099 if (!valueToParse) {
1100 return;
1101 }
1102 var dynamicSettings = control.dynamic;
1103 if (undefined === dynamicSettings) {
1104 dynamicSettings = elementor.config.controls[control.type].dynamic;
1105 }
1106 if (!dynamicSettings || !dynamicSettings.active) {
1107 return;
1108 }
1109 var dynamicValue;
1110 try {
1111 dynamicValue = elementor.dynamicTags.parseTagsText(valueToParse, dynamicSettings, elementor.dynamicTags.getTagDataContent);
1112 } catch (error) {
1113 if (elementor.dynamicTags.CACHE_KEY_NOT_FOUND_ERROR !== error.message) {
1114 throw error;
1115 }
1116 dynamicValue = '';
1117 if (options.onServerRequestStart) {
1118 options.onServerRequestStart();
1119 }
1120 elementor.dynamicTags.refreshCacheFromServer(function () {
1121 if (options.onServerRequestEnd) {
1122 options.onServerRequestEnd();
1123 }
1124 });
1125 }
1126 if (dynamicSettings.property) {
1127 settings[control.name][dynamicSettings.property] = dynamicValue;
1128 } else {
1129 settings[control.name] = dynamicValue;
1130 }
1131 });
1132 return settings;
1133 },
1134 parseGlobalSettings: function parseGlobalSettings(settings, controls) {
1135 var _this = this;
1136 settings = elementorCommon.helpers.cloneObject(settings);
1137 controls = controls || this.controls;
1138 jQuery.each(controls, function (index, control) {
1139 var _settings$__globals__, _globalSettings;
1140 var valueToParse;
1141 if (control.is_repeater) {
1142 valueToParse = settings[control.name];
1143 valueToParse.forEach(function (value, key) {
1144 valueToParse[key] = _this.parseGlobalSettings(value, control.fields);
1145 });
1146 return;
1147 }
1148 valueToParse = (_settings$__globals__ = settings.__globals__) === null || _settings$__globals__ === void 0 ? void 0 : _settings$__globals__[control.name];
1149 if (!valueToParse) {
1150 return;
1151 }
1152 var globalSettings = control.global;
1153 if (undefined === globalSettings) {
1154 globalSettings = elementor.config.controls[control.type].global;
1155 }
1156 if (!((_globalSettings = globalSettings) !== null && _globalSettings !== void 0 && _globalSettings.active)) {
1157 return;
1158 }
1159 var _$e$data$commandExtra = $e.data.commandExtractArgs(valueToParse),
1160 command = _$e$data$commandExtra.command,
1161 args = _$e$data$commandExtra.args,
1162 globalValue = $e.data.getCache($e.components.get('globals'), command, args.query);
1163 if (control.groupType) {
1164 settings[control.name] = 'custom';
1165 } else {
1166 settings[control.name] = globalValue;
1167 }
1168 });
1169 return settings;
1170 },
1171 removeDataDefaults: function removeDataDefaults(data, controls) {
1172 var _this2 = this;
1173 jQuery.each(data, function (key) {
1174 var control = controls[key];
1175 if (!control) {
1176 return;
1177 }
1178
1179 // TODO: use `save_default` in text|textarea controls.
1180 if (control.save_default || ('text' === control.type || 'textarea' === control.type) && data[key]) {
1181 return;
1182 }
1183 if (control.is_repeater) {
1184 data[key].forEach(function (repeaterRow) {
1185 _this2.removeDataDefaults(repeaterRow, control.fields);
1186 });
1187 return;
1188 }
1189 if (_.isEqual(data[key], control.default)) {
1190 delete data[key];
1191 }
1192 });
1193 },
1194 toJSON: function toJSON(options) {
1195 var data = Backbone.Model.prototype.toJSON.call(this);
1196 options = options || {};
1197 delete data.widgetType;
1198 delete data.elType;
1199 delete data.isInner;
1200 _.each(data, function (attribute, key) {
1201 if (attribute && attribute.toJSON) {
1202 data[key] = attribute.toJSON();
1203 }
1204 });
1205 if (options.remove && -1 !== options.remove.indexOf('default')) {
1206 this.removeDataDefaults(data, this.controls);
1207 }
1208 return structuredClone(data);
1209 }
1210 });
1211
1212 /**
1213 * @name BaseSettingsModel
1214 */
1215 module.exports = BaseSettingsModel;
1216
1217 /***/ }),
1218
1219 /***/ "../assets/dev/js/editor/elements/views/behaviors/inner-tabs.js":
1220 /*!**********************************************************************!*\
1221 !*** ../assets/dev/js/editor/elements/views/behaviors/inner-tabs.js ***!
1222 \**********************************************************************/
1223 /***/ ((module) => {
1224
1225 "use strict";
1226
1227
1228 var InnerTabsBehavior;
1229 InnerTabsBehavior = Marionette.Behavior.extend({
1230 onRenderCollection: function onRenderCollection() {
1231 this.handleInnerTabs(this.view);
1232 },
1233 handleInnerTabs: function handleInnerTabs(parent) {
1234 var closedClass = 'e-tab-close',
1235 activeClass = 'e-tab-active',
1236 tabsWrappers = parent.children.filter(function (view) {
1237 return 'tabs' === view.model.get('type');
1238 });
1239 _.each(tabsWrappers, function (view) {
1240 view.$el.find('.elementor-control-content').remove();
1241 var tabsId = view.model.get('name'),
1242 tabs = parent.children.filter(function (childView) {
1243 return 'tab' === childView.model.get('type') && childView.model.get('tabs_wrapper') === tabsId;
1244 });
1245 _.each(tabs, function (childView, index) {
1246 view._addChildView(childView);
1247 var tabId = childView.model.get('name'),
1248 controlsUnderTab = parent.children.filter(function (controlView) {
1249 return tabId === controlView.model.get('inner_tab');
1250 });
1251 if (0 === index) {
1252 childView.$el.addClass(activeClass);
1253 } else {
1254 _.each(controlsUnderTab, function (controlView) {
1255 controlView.$el.addClass(closedClass);
1256 });
1257 }
1258 });
1259 });
1260 },
1261 onChildviewControlTabClicked: function onChildviewControlTabClicked(childView) {
1262 var closedClass = 'e-tab-close',
1263 activeClass = 'e-tab-active',
1264 tabClicked = childView.model.get('name'),
1265 childrenUnderTab = this.view.children.filter(function (view) {
1266 return 'tab' !== view.model.get('type') && childView.model.get('tabs_wrapper') === view.model.get('tabs_wrapper');
1267 }),
1268 siblingTabs = this.view.children.filter(function (view) {
1269 return 'tab' === view.model.get('type') && childView.model.get('tabs_wrapper') === view.model.get('tabs_wrapper');
1270 });
1271 _.each(siblingTabs, function (view) {
1272 view.$el.removeClass(activeClass);
1273 });
1274 childView.$el.addClass(activeClass);
1275 _.each(childrenUnderTab, function (view) {
1276 if (view.model.get('inner_tab') === tabClicked) {
1277 view.$el.removeClass(closedClass);
1278 } else {
1279 view.$el.addClass(closedClass);
1280 }
1281 });
1282 elementor.getPanelView().updateScrollbar();
1283 }
1284 });
1285 module.exports = InnerTabsBehavior;
1286
1287 /***/ }),
1288
1289 /***/ "../assets/dev/js/editor/utils/is-instanceof.js":
1290 /*!******************************************************!*\
1291 !*** ../assets/dev/js/editor/utils/is-instanceof.js ***!
1292 \******************************************************/
1293 /***/ ((__unused_webpack_module, exports) => {
1294
1295 "use strict";
1296
1297
1298 Object.defineProperty(exports, "__esModule", ({
1299 value: true
1300 }));
1301 exports["default"] = void 0;
1302 function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
1303 function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
1304 function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1305 /**
1306 * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved
1307 * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can
1308 * check whether it's instanceof by using the objects constructor and prototype names.
1309 *
1310 * @param object
1311 * @param constructors
1312 * @return {boolean}
1313 */
1314 var _default = exports["default"] = function _default(object, constructors) {
1315 constructors = Array.isArray(constructors) ? constructors : [constructors];
1316 var _iterator = _createForOfIteratorHelper(constructors),
1317 _step;
1318 try {
1319 for (_iterator.s(); !(_step = _iterator.n()).done;) {
1320 var _constructor = _step.value;
1321 if (object.constructor.name === _constructor.prototype[Symbol.toStringTag]) {
1322 return true;
1323 }
1324 }
1325 } catch (err) {
1326 _iterator.e(err);
1327 } finally {
1328 _iterator.f();
1329 }
1330 return false;
1331 };
1332
1333 /***/ }),
1334
1335 /***/ "../assets/dev/js/editor/utils/module.js":
1336 /*!***********************************************!*\
1337 !*** ../assets/dev/js/editor/utils/module.js ***!
1338 \***********************************************/
1339 /***/ ((module) => {
1340
1341 "use strict";
1342
1343
1344 var EditorModule = elementorModules.Module.extend({
1345 onInit: function onInit() {
1346 var _this = this;
1347 var $window = jQuery(window);
1348 $window.on('elementor:init-components', this.onElementorInitComponents.bind(this));
1349 $window.on('elementor:loaded', function () {
1350 _this.onElementorLoaded();
1351 elementor.on('document:loaded', _this.onDocumentLoaded.bind(_this));
1352 });
1353 $window.on('elementor:init', this.onElementorReady);
1354 },
1355 // TODO: Delete as soon as possible.
1356 getEditorControlView: function getEditorControlView(name) {
1357 var editor = elementor.getPanelView().getCurrentPageView();
1358 return editor.children.findByModelCid(this.getEditorControlModel(name).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, e, o, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), e, o); return 2 & r && "function" == typeof p ? function (t) { return p.apply(o, 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 _callee$(_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 2:
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 /***/ "@wordpress/i18n":
2057 /*!**************************!*\
2058 !*** external "wp.i18n" ***!
2059 \**************************/
2060 /***/ ((module) => {
2061
2062 "use strict";
2063 module.exports = wp.i18n;
2064
2065 /***/ }),
2066
2067 /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
2068 /*!******************************************************************!*\
2069 !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
2070 \******************************************************************/
2071 /***/ ((module) => {
2072
2073 function _arrayLikeToArray(r, a) {
2074 (null == a || a > r.length) && (a = r.length);
2075 for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
2076 return n;
2077 }
2078 module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2079
2080 /***/ }),
2081
2082 /***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
2083 /*!****************************************************************!*\
2084 !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
2085 \****************************************************************/
2086 /***/ ((module) => {
2087
2088 function _arrayWithHoles(r) {
2089 if (Array.isArray(r)) return r;
2090 }
2091 module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
2092
2093 /***/ }),
2094
2095 /***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js":
2096 /*!***********************************************************************!*\
2097 !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
2098 \***********************************************************************/
2099 /***/ ((module) => {
2100
2101 function _assertThisInitialized(e) {
2102 if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2103 return e;
2104 }
2105 module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
2106
2107 /***/ }),
2108
2109 /***/ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js":
2110 /*!******************************************************************!*\
2111 !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
2112 \******************************************************************/
2113 /***/ ((module) => {
2114
2115 function asyncGeneratorStep(n, t, e, r, o, a, c) {
2116 try {
2117 var i = n[a](c),
2118 u = i.value;
2119 } catch (n) {
2120 return void e(n);
2121 }
2122 i.done ? t(u) : Promise.resolve(u).then(r, o);
2123 }
2124 function _asyncToGenerator(n) {
2125 return function () {
2126 var t = this,
2127 e = arguments;
2128 return new Promise(function (r, o) {
2129 var a = n.apply(t, e);
2130 function _next(n) {
2131 asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
2132 }
2133 function _throw(n) {
2134 asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
2135 }
2136 _next(void 0);
2137 });
2138 };
2139 }
2140 module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
2141
2142 /***/ }),
2143
2144 /***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
2145 /*!****************************************************************!*\
2146 !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
2147 \****************************************************************/
2148 /***/ ((module) => {
2149
2150 function _classCallCheck(a, n) {
2151 if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
2152 }
2153 module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
2154
2155 /***/ }),
2156
2157 /***/ "../node_modules/@babel/runtime/helpers/construct.js":
2158 /*!***********************************************************!*\
2159 !*** ../node_modules/@babel/runtime/helpers/construct.js ***!
2160 \***********************************************************/
2161 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2162
2163 var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js");
2164 var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2165 function _construct(t, e, r) {
2166 if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
2167 var o = [null];
2168 o.push.apply(o, e);
2169 var p = new (t.bind.apply(t, o))();
2170 return r && setPrototypeOf(p, r.prototype), p;
2171 }
2172 module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
2173
2174 /***/ }),
2175
2176 /***/ "../node_modules/@babel/runtime/helpers/createClass.js":
2177 /*!*************************************************************!*\
2178 !*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
2179 \*************************************************************/
2180 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2181
2182 var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2183 function _defineProperties(e, r) {
2184 for (var t = 0; t < r.length; t++) {
2185 var o = r[t];
2186 o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
2187 }
2188 }
2189 function _createClass(e, r, t) {
2190 return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
2191 writable: !1
2192 }), e;
2193 }
2194 module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
2195
2196 /***/ }),
2197
2198 /***/ "../node_modules/@babel/runtime/helpers/defineProperty.js":
2199 /*!****************************************************************!*\
2200 !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***!
2201 \****************************************************************/
2202 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2203
2204 var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2205 function _defineProperty(e, r, t) {
2206 return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
2207 value: t,
2208 enumerable: !0,
2209 configurable: !0,
2210 writable: !0
2211 }) : e[r] = t, e;
2212 }
2213 module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
2214
2215 /***/ }),
2216
2217 /***/ "../node_modules/@babel/runtime/helpers/get.js":
2218 /*!*****************************************************!*\
2219 !*** ../node_modules/@babel/runtime/helpers/get.js ***!
2220 \*****************************************************/
2221 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2222
2223 var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js");
2224 function _get() {
2225 return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
2226 var p = superPropBase(e, t);
2227 if (p) {
2228 var n = Object.getOwnPropertyDescriptor(p, t);
2229 return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
2230 }
2231 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments);
2232 }
2233 module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;
2234
2235 /***/ }),
2236
2237 /***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js":
2238 /*!****************************************************************!*\
2239 !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
2240 \****************************************************************/
2241 /***/ ((module) => {
2242
2243 function _getPrototypeOf(t) {
2244 return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
2245 return t.__proto__ || Object.getPrototypeOf(t);
2246 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
2247 }
2248 module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2249
2250 /***/ }),
2251
2252 /***/ "../node_modules/@babel/runtime/helpers/inherits.js":
2253 /*!**********************************************************!*\
2254 !*** ../node_modules/@babel/runtime/helpers/inherits.js ***!
2255 \**********************************************************/
2256 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2257
2258 var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2259 function _inherits(t, e) {
2260 if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
2261 t.prototype = Object.create(e && e.prototype, {
2262 constructor: {
2263 value: t,
2264 writable: !0,
2265 configurable: !0
2266 }
2267 }), Object.defineProperty(t, "prototype", {
2268 writable: !1
2269 }), e && setPrototypeOf(t, e);
2270 }
2271 module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
2272
2273 /***/ }),
2274
2275 /***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
2276 /*!***********************************************************************!*\
2277 !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
2278 \***********************************************************************/
2279 /***/ ((module) => {
2280
2281 function _interopRequireDefault(e) {
2282 return e && e.__esModule ? e : {
2283 "default": e
2284 };
2285 }
2286 module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
2287
2288 /***/ }),
2289
2290 /***/ "../node_modules/@babel/runtime/helpers/isNativeFunction.js":
2291 /*!******************************************************************!*\
2292 !*** ../node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
2293 \******************************************************************/
2294 /***/ ((module) => {
2295
2296 function _isNativeFunction(t) {
2297 try {
2298 return -1 !== Function.toString.call(t).indexOf("[native code]");
2299 } catch (n) {
2300 return "function" == typeof t;
2301 }
2302 }
2303 module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
2304
2305 /***/ }),
2306
2307 /***/ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js":
2308 /*!**************************************************************************!*\
2309 !*** ../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
2310 \**************************************************************************/
2311 /***/ ((module) => {
2312
2313 function _isNativeReflectConstruct() {
2314 try {
2315 var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
2316 } catch (t) {}
2317 return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
2318 return !!t;
2319 }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
2320 }
2321 module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
2322
2323 /***/ }),
2324
2325 /***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
2326 /*!**********************************************************************!*\
2327 !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
2328 \**********************************************************************/
2329 /***/ ((module) => {
2330
2331 function _iterableToArrayLimit(r, l) {
2332 var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
2333 if (null != t) {
2334 var e,
2335 n,
2336 i,
2337 u,
2338 a = [],
2339 f = !0,
2340 o = !1;
2341 try {
2342 if (i = (t = t.call(r)).next, 0 === l) {
2343 if (Object(t) !== t) return;
2344 f = !1;
2345 } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
2346 } catch (r) {
2347 o = !0, n = r;
2348 } finally {
2349 try {
2350 if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
2351 } finally {
2352 if (o) throw n;
2353 }
2354 }
2355 return a;
2356 }
2357 }
2358 module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
2359
2360 /***/ }),
2361
2362 /***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
2363 /*!*****************************************************************!*\
2364 !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
2365 \*****************************************************************/
2366 /***/ ((module) => {
2367
2368 function _nonIterableRest() {
2369 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2370 }
2371 module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
2372
2373 /***/ }),
2374
2375 /***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
2376 /*!***************************************************************************!*\
2377 !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
2378 \***************************************************************************/
2379 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2380
2381 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2382 var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js");
2383 function _possibleConstructorReturn(t, e) {
2384 if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
2385 if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
2386 return assertThisInitialized(t);
2387 }
2388 module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
2389
2390 /***/ }),
2391
2392 /***/ "../node_modules/@babel/runtime/helpers/readOnlyError.js":
2393 /*!***************************************************************!*\
2394 !*** ../node_modules/@babel/runtime/helpers/readOnlyError.js ***!
2395 \***************************************************************/
2396 /***/ ((module) => {
2397
2398 function _readOnlyError(r) {
2399 throw new TypeError('"' + r + '" is read-only');
2400 }
2401 module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports;
2402
2403 /***/ }),
2404
2405 /***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js":
2406 /*!********************************************************************!*\
2407 !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
2408 \********************************************************************/
2409 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2410
2411 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2412 function _regeneratorRuntime() {
2413 "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
2414 module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
2415 return e;
2416 }, module.exports.__esModule = true, module.exports["default"] = module.exports;
2417 var t,
2418 e = {},
2419 r = Object.prototype,
2420 n = r.hasOwnProperty,
2421 o = Object.defineProperty || function (t, e, r) {
2422 t[e] = r.value;
2423 },
2424 i = "function" == typeof Symbol ? Symbol : {},
2425 a = i.iterator || "@@iterator",
2426 c = i.asyncIterator || "@@asyncIterator",
2427 u = i.toStringTag || "@@toStringTag";
2428 function define(t, e, r) {
2429 return Object.defineProperty(t, e, {
2430 value: r,
2431 enumerable: !0,
2432 configurable: !0,
2433 writable: !0
2434 }), t[e];
2435 }
2436 try {
2437 define({}, "");
2438 } catch (t) {
2439 define = function define(t, e, r) {
2440 return t[e] = r;
2441 };
2442 }
2443 function wrap(t, e, r, n) {
2444 var i = e && e.prototype instanceof Generator ? e : Generator,
2445 a = Object.create(i.prototype),
2446 c = new Context(n || []);
2447 return o(a, "_invoke", {
2448 value: makeInvokeMethod(t, r, c)
2449 }), a;
2450 }
2451 function tryCatch(t, e, r) {
2452 try {
2453 return {
2454 type: "normal",
2455 arg: t.call(e, r)
2456 };
2457 } catch (t) {
2458 return {
2459 type: "throw",
2460 arg: t
2461 };
2462 }
2463 }
2464 e.wrap = wrap;
2465 var h = "suspendedStart",
2466 l = "suspendedYield",
2467 f = "executing",
2468 s = "completed",
2469 y = {};
2470 function Generator() {}
2471 function GeneratorFunction() {}
2472 function GeneratorFunctionPrototype() {}
2473 var p = {};
2474 define(p, a, function () {
2475 return this;
2476 });
2477 var d = Object.getPrototypeOf,
2478 v = d && d(d(values([])));
2479 v && v !== r && n.call(v, a) && (p = v);
2480 var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
2481 function defineIteratorMethods(t) {
2482 ["next", "throw", "return"].forEach(function (e) {
2483 define(t, e, function (t) {
2484 return this._invoke(e, t);
2485 });
2486 });
2487 }
2488 function AsyncIterator(t, e) {
2489 function invoke(r, o, i, a) {
2490 var c = tryCatch(t[r], t, o);
2491 if ("throw" !== c.type) {
2492 var u = c.arg,
2493 h = u.value;
2494 return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
2495 invoke("next", t, i, a);
2496 }, function (t) {
2497 invoke("throw", t, i, a);
2498 }) : e.resolve(h).then(function (t) {
2499 u.value = t, i(u);
2500 }, function (t) {
2501 return invoke("throw", t, i, a);
2502 });
2503 }
2504 a(c.arg);
2505 }
2506 var r;
2507 o(this, "_invoke", {
2508 value: function value(t, n) {
2509 function callInvokeWithMethodAndArg() {
2510 return new e(function (e, r) {
2511 invoke(t, n, e, r);
2512 });
2513 }
2514 return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
2515 }
2516 });
2517 }
2518 function makeInvokeMethod(e, r, n) {
2519 var o = h;
2520 return function (i, a) {
2521 if (o === f) throw Error("Generator is already running");
2522 if (o === s) {
2523 if ("throw" === i) throw a;
2524 return {
2525 value: t,
2526 done: !0
2527 };
2528 }
2529 for (n.method = i, n.arg = a;;) {
2530 var c = n.delegate;
2531 if (c) {
2532 var u = maybeInvokeDelegate(c, n);
2533 if (u) {
2534 if (u === y) continue;
2535 return u;
2536 }
2537 }
2538 if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
2539 if (o === h) throw o = s, n.arg;
2540 n.dispatchException(n.arg);
2541 } else "return" === n.method && n.abrupt("return", n.arg);
2542 o = f;
2543 var p = tryCatch(e, r, n);
2544 if ("normal" === p.type) {
2545 if (o = n.done ? s : l, p.arg === y) continue;
2546 return {
2547 value: p.arg,
2548 done: n.done
2549 };
2550 }
2551 "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
2552 }
2553 };
2554 }
2555 function maybeInvokeDelegate(e, r) {
2556 var n = r.method,
2557 o = e.iterator[n];
2558 if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
2559 var i = tryCatch(o, e.iterator, r.arg);
2560 if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
2561 var a = i.arg;
2562 return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
2563 }
2564 function pushTryEntry(t) {
2565 var e = {
2566 tryLoc: t[0]
2567 };
2568 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
2569 }
2570 function resetTryEntry(t) {
2571 var e = t.completion || {};
2572 e.type = "normal", delete e.arg, t.completion = e;
2573 }
2574 function Context(t) {
2575 this.tryEntries = [{
2576 tryLoc: "root"
2577 }], t.forEach(pushTryEntry, this), this.reset(!0);
2578 }
2579 function values(e) {
2580 if (e || "" === e) {
2581 var r = e[a];
2582 if (r) return r.call(e);
2583 if ("function" == typeof e.next) return e;
2584 if (!isNaN(e.length)) {
2585 var o = -1,
2586 i = function next() {
2587 for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
2588 return next.value = t, next.done = !0, next;
2589 };
2590 return i.next = i;
2591 }
2592 }
2593 throw new TypeError(_typeof(e) + " is not iterable");
2594 }
2595 return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
2596 value: GeneratorFunctionPrototype,
2597 configurable: !0
2598 }), o(GeneratorFunctionPrototype, "constructor", {
2599 value: GeneratorFunction,
2600 configurable: !0
2601 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
2602 var e = "function" == typeof t && t.constructor;
2603 return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
2604 }, e.mark = function (t) {
2605 return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
2606 }, e.awrap = function (t) {
2607 return {
2608 __await: t
2609 };
2610 }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
2611 return this;
2612 }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
2613 void 0 === i && (i = Promise);
2614 var a = new AsyncIterator(wrap(t, r, n, o), i);
2615 return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
2616 return t.done ? t.value : a.next();
2617 });
2618 }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
2619 return this;
2620 }), define(g, "toString", function () {
2621 return "[object Generator]";
2622 }), e.keys = function (t) {
2623 var e = Object(t),
2624 r = [];
2625 for (var n in e) r.push(n);
2626 return r.reverse(), function next() {
2627 for (; r.length;) {
2628 var t = r.pop();
2629 if (t in e) return next.value = t, next.done = !1, next;
2630 }
2631 return next.done = !0, next;
2632 };
2633 }, e.values = values, Context.prototype = {
2634 constructor: Context,
2635 reset: function reset(e) {
2636 if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
2637 },
2638 stop: function stop() {
2639 this.done = !0;
2640 var t = this.tryEntries[0].completion;
2641 if ("throw" === t.type) throw t.arg;
2642 return this.rval;
2643 },
2644 dispatchException: function dispatchException(e) {
2645 if (this.done) throw e;
2646 var r = this;
2647 function handle(n, o) {
2648 return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
2649 }
2650 for (var o = this.tryEntries.length - 1; o >= 0; --o) {
2651 var i = this.tryEntries[o],
2652 a = i.completion;
2653 if ("root" === i.tryLoc) return handle("end");
2654 if (i.tryLoc <= this.prev) {
2655 var c = n.call(i, "catchLoc"),
2656 u = n.call(i, "finallyLoc");
2657 if (c && u) {
2658 if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
2659 if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
2660 } else if (c) {
2661 if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
2662 } else {
2663 if (!u) throw Error("try statement without catch or finally");
2664 if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
2665 }
2666 }
2667 }
2668 },
2669 abrupt: function abrupt(t, e) {
2670 for (var r = this.tryEntries.length - 1; r >= 0; --r) {
2671 var o = this.tryEntries[r];
2672 if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
2673 var i = o;
2674 break;
2675 }
2676 }
2677 i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
2678 var a = i ? i.completion : {};
2679 return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
2680 },
2681 complete: function complete(t, e) {
2682 if ("throw" === t.type) throw t.arg;
2683 return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
2684 },
2685 finish: function finish(t) {
2686 for (var e = this.tryEntries.length - 1; e >= 0; --e) {
2687 var r = this.tryEntries[e];
2688 if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
2689 }
2690 },
2691 "catch": function _catch(t) {
2692 for (var e = this.tryEntries.length - 1; e >= 0; --e) {
2693 var r = this.tryEntries[e];
2694 if (r.tryLoc === t) {
2695 var n = r.completion;
2696 if ("throw" === n.type) {
2697 var o = n.arg;
2698 resetTryEntry(r);
2699 }
2700 return o;
2701 }
2702 }
2703 throw Error("illegal catch attempt");
2704 },
2705 delegateYield: function delegateYield(e, r, n) {
2706 return this.delegate = {
2707 iterator: values(e),
2708 resultName: r,
2709 nextLoc: n
2710 }, "next" === this.method && (this.arg = t), y;
2711 }
2712 }, e;
2713 }
2714 module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
2715
2716 /***/ }),
2717
2718 /***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js":
2719 /*!****************************************************************!*\
2720 !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
2721 \****************************************************************/
2722 /***/ ((module) => {
2723
2724 function _setPrototypeOf(t, e) {
2725 return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
2726 return t.__proto__ = e, t;
2727 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
2728 }
2729 module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2730
2731 /***/ }),
2732
2733 /***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
2734 /*!***************************************************************!*\
2735 !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
2736 \***************************************************************/
2737 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2738
2739 var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
2740 var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
2741 var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
2742 var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
2743 function _slicedToArray(r, e) {
2744 return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
2745 }
2746 module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2747
2748 /***/ }),
2749
2750 /***/ "../node_modules/@babel/runtime/helpers/superPropBase.js":
2751 /*!***************************************************************!*\
2752 !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***!
2753 \***************************************************************/
2754 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2755
2756 var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
2757 function _superPropBase(t, o) {
2758 for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t)););
2759 return t;
2760 }
2761 module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
2762
2763 /***/ }),
2764
2765 /***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js":
2766 /*!*************************************************************!*\
2767 !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***!
2768 \*************************************************************/
2769 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2770
2771 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2772 function toPrimitive(t, r) {
2773 if ("object" != _typeof(t) || !t) return t;
2774 var e = t[Symbol.toPrimitive];
2775 if (void 0 !== e) {
2776 var i = e.call(t, r || "default");
2777 if ("object" != _typeof(i)) return i;
2778 throw new TypeError("@@toPrimitive must return a primitive value.");
2779 }
2780 return ("string" === r ? String : Number)(t);
2781 }
2782 module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
2783
2784 /***/ }),
2785
2786 /***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js":
2787 /*!***************************************************************!*\
2788 !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
2789 \***************************************************************/
2790 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2791
2792 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2793 var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js");
2794 function toPropertyKey(t) {
2795 var i = toPrimitive(t, "string");
2796 return "symbol" == _typeof(i) ? i : i + "";
2797 }
2798 module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
2799
2800 /***/ }),
2801
2802 /***/ "../node_modules/@babel/runtime/helpers/typeof.js":
2803 /*!********************************************************!*\
2804 !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
2805 \********************************************************/
2806 /***/ ((module) => {
2807
2808 function _typeof(o) {
2809 "@babel/helpers - typeof";
2810
2811 return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
2812 return typeof o;
2813 } : function (o) {
2814 return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
2815 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
2816 }
2817 module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
2818
2819 /***/ }),
2820
2821 /***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
2822 /*!****************************************************************************!*\
2823 !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
2824 \****************************************************************************/
2825 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2826
2827 var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
2828 function _unsupportedIterableToArray(r, a) {
2829 if (r) {
2830 if ("string" == typeof r) return arrayLikeToArray(r, a);
2831 var t = {}.toString.call(r).slice(8, -1);
2832 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;
2833 }
2834 }
2835 module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2836
2837 /***/ }),
2838
2839 /***/ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js":
2840 /*!*****************************************************************!*\
2841 !*** ../node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
2842 \*****************************************************************/
2843 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2844
2845 var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
2846 var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2847 var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ "../node_modules/@babel/runtime/helpers/isNativeFunction.js");
2848 var construct = __webpack_require__(/*! ./construct.js */ "../node_modules/@babel/runtime/helpers/construct.js");
2849 function _wrapNativeSuper(t) {
2850 var r = "function" == typeof Map ? new Map() : void 0;
2851 return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) {
2852 if (null === t || !isNativeFunction(t)) return t;
2853 if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
2854 if (void 0 !== r) {
2855 if (r.has(t)) return r.get(t);
2856 r.set(t, Wrapper);
2857 }
2858 function Wrapper() {
2859 return construct(t, arguments, getPrototypeOf(this).constructor);
2860 }
2861 return Wrapper.prototype = Object.create(t.prototype, {
2862 constructor: {
2863 value: Wrapper,
2864 enumerable: !1,
2865 writable: !0,
2866 configurable: !0
2867 }
2868 }), setPrototypeOf(Wrapper, t);
2869 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t);
2870 }
2871 module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
2872
2873 /***/ }),
2874
2875 /***/ "../node_modules/@babel/runtime/regenerator/index.js":
2876 /*!***********************************************************!*\
2877 !*** ../node_modules/@babel/runtime/regenerator/index.js ***!
2878 \***********************************************************/
2879 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2880
2881 // TODO(Babel 8): Remove this file.
2882
2883 var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();
2884 module.exports = runtime;
2885
2886 // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
2887 try {
2888 regeneratorRuntime = runtime;
2889 } catch (accidentalStrictMode) {
2890 if (typeof globalThis === "object") {
2891 globalThis.regeneratorRuntime = runtime;
2892 } else {
2893 Function("r", "regeneratorRuntime = r")(runtime);
2894 }
2895 }
2896
2897
2898 /***/ })
2899
2900 /******/ });
2901 /************************************************************************/
2902 /******/ // The module cache
2903 /******/ var __webpack_module_cache__ = {};
2904 /******/
2905 /******/ // The require function
2906 /******/ function __webpack_require__(moduleId) {
2907 /******/ // Check if module is in cache
2908 /******/ var cachedModule = __webpack_module_cache__[moduleId];
2909 /******/ if (cachedModule !== undefined) {
2910 /******/ return cachedModule.exports;
2911 /******/ }
2912 /******/ // Create a new module (and put it into the cache)
2913 /******/ var module = __webpack_module_cache__[moduleId] = {
2914 /******/ // no module.id needed
2915 /******/ // no module.loaded needed
2916 /******/ exports: {}
2917 /******/ };
2918 /******/
2919 /******/ // Execute the module function
2920 /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
2921 /******/
2922 /******/ // Return the exports of the module
2923 /******/ return module.exports;
2924 /******/ }
2925 /******/
2926 /************************************************************************/
2927 var __webpack_exports__ = {};
2928 // This entry need to be wrapped in an IIFE because it need to be in strict mode.
2929 (() => {
2930 "use strict";
2931 /*!******************************************!*\
2932 !*** ../assets/dev/js/editor/modules.js ***!
2933 \******************************************/
2934
2935
2936 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2937 var _module = _interopRequireDefault(__webpack_require__(/*! ./utils/module */ "../assets/dev/js/editor/utils/module.js"));
2938 var _introduction = _interopRequireDefault(__webpack_require__(/*! ../utils/introduction */ "../assets/dev/js/utils/introduction.js"));
2939 var _controlsStack = _interopRequireDefault(__webpack_require__(/*! ./views/controls-stack */ "../assets/dev/js/editor/views/controls-stack.js"));
2940 var _baseSettings = _interopRequireDefault(__webpack_require__(/*! ./elements/models/base-settings */ "../assets/dev/js/editor/elements/models/base-settings.js"));
2941 var _container = _interopRequireDefault(__webpack_require__(/*! ./container/container */ "../assets/dev/js/editor/container/container.js"));
2942 elementorModules.editor = {
2943 elements: {
2944 models: {
2945 BaseSettings: _baseSettings.default
2946 }
2947 },
2948 utils: {
2949 Module: _module.default,
2950 Introduction: _introduction.default
2951 },
2952 views: {
2953 ControlsStack: _controlsStack.default
2954 },
2955 Container: _container.default
2956 };
2957 })();
2958
2959 /******/ })()
2960 ;
2961 //# sourceMappingURL=editor-modules.js.map