Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/elementor/assets/js/editor-modules.js
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
/******/ (() => { // webpackBootstrap
2
+
/******/ var __webpack_modules__ = ({
3
+
4
+
/***/ "../assets/dev/js/editor/container/container.js":
5
+
/*!******************************************************!*\
6
+
!*** ../assets/dev/js/editor/container/container.js ***!
7
+
\******************************************************/
8
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
9
+
10
+
"use strict";
11
+
/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
12
+
13
+
14
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
15
+
Object.defineProperty(exports, "__esModule", ({
16
+
value: true
17
+
}));
18
+
exports["default"] = void 0;
19
+
var _readOnlyError2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/readOnlyError */ "../node_modules/@babel/runtime/helpers/readOnlyError.js"));
20
+
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
21
+
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
22
+
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
23
+
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
24
+
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
25
+
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
26
+
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
27
+
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
28
+
var _argsObject = _interopRequireDefault(__webpack_require__(/*! ../../modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js"));
29
+
var _panel = _interopRequireDefault(__webpack_require__(/*! ./panel */ "../assets/dev/js/editor/container/panel.js"));
30
+
var _childrenArray = _interopRequireDefault(__webpack_require__(/*! ./model/children-array */ "../assets/dev/js/editor/container/model/children-array.js"));
31
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
32
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
33
+
/**
34
+
* @typedef {import('../../../../lib/backbone/backbone.marionette')} Backbone
35
+
* @typedef {import('../../../../lib/backbone/backbone.marionette')} Marionette
36
+
* @typedef {import('../elements/views/base')} BaseElementView
37
+
* @typedef {import('../elements/views/section')} SectionView
38
+
* @typedef {import('../views/base-container')} BaseContainer
39
+
* @typedef {import('../elements/models/base-element-model')} BaseElementModel
40
+
*/
41
+
/**
42
+
* TODO: ViewsOptions
43
+
*
44
+
* @typedef {(Marionette.View|Marionette.CompositeView|BaseElementView|SectionView|BaseContainer)} ViewsOptions
45
+
*/
46
+
var Container = exports["default"] = /*#__PURE__*/function (_ArgsObject) {
47
+
/**
48
+
* Function constructor().
49
+
*
50
+
* Create container.
51
+
*
52
+
* @param {{}} args
53
+
*
54
+
* @throws {Error}
55
+
*/
56
+
function Container(args) {
57
+
var _this;
58
+
(0, _classCallCheck2.default)(this, Container);
59
+
_this = _callSuper(this, Container, [args]);
60
+
61
+
// Validate args.
62
+
/**
63
+
* Container type.
64
+
*
65
+
* @type {string}
66
+
*/
67
+
(0, _defineProperty2.default)(_this, "type", void 0);
68
+
/**
69
+
* Container id.
70
+
*
71
+
* @type {string}
72
+
*/
73
+
(0, _defineProperty2.default)(_this, "id", void 0);
74
+
/**
75
+
* Document Object.
76
+
*
77
+
* @type {{}}
78
+
*/
79
+
(0, _defineProperty2.default)(_this, "document", void 0);
80
+
/**
81
+
* Container model.
82
+
*
83
+
* @type {(Backbone.Model|BaseElementModel)}
84
+
*/
85
+
(0, _defineProperty2.default)(_this, "model", void 0);
86
+
/**
87
+
* Container settings.
88
+
*
89
+
* @type {Backbone.Model}
90
+
*/
91
+
(0, _defineProperty2.default)(_this, "settings", void 0);
92
+
/**
93
+
* Container view.
94
+
*
95
+
* @type {ViewsOptions}
96
+
*/
97
+
(0, _defineProperty2.default)(_this, "view", void 0);
98
+
/**
99
+
* Container parent.
100
+
*
101
+
* @type {Container}
102
+
*/
103
+
(0, _defineProperty2.default)(_this, "parent", void 0);
104
+
/**
105
+
* Container children(s).
106
+
*
107
+
* @type {ChildrenArray}
108
+
*/
109
+
(0, _defineProperty2.default)(_this, "children", new _childrenArray.default());
110
+
/**
111
+
* Container dynamic.
112
+
*
113
+
* @type {Backbone.Model}
114
+
*/
115
+
(0, _defineProperty2.default)(_this, "dynamic", void 0);
116
+
/**
117
+
* Container globals.
118
+
*
119
+
* @type {Backbone.Model}
120
+
*/
121
+
(0, _defineProperty2.default)(_this, "globals", void 0);
122
+
/**
123
+
* Container label.
124
+
*
125
+
* @type {string}
126
+
*/
127
+
(0, _defineProperty2.default)(_this, "label", void 0);
128
+
/**
129
+
* Container controls.
130
+
*
131
+
* @type {{}}
132
+
*/
133
+
(0, _defineProperty2.default)(_this, "controls", {});
134
+
/**
135
+
* Repeaters containers
136
+
*
137
+
* @type {{}}
138
+
*/
139
+
(0, _defineProperty2.default)(_this, "repeaters", {});
140
+
/**
141
+
* Container renderer (The one who render).
142
+
*
143
+
* @type {Container}
144
+
*/
145
+
(0, _defineProperty2.default)(_this, "renderer", void 0);
146
+
/**
147
+
* Container panel.
148
+
*
149
+
* @type {Panel}
150
+
*/
151
+
(0, _defineProperty2.default)(_this, "panel", void 0);
152
+
/**
153
+
* Controls placeholders.
154
+
*
155
+
* @type {{}}
156
+
*/
157
+
(0, _defineProperty2.default)(_this, "placeholders", {});
158
+
_this.validateArgs(args);
159
+
args = Object.entries(args);
160
+
161
+
// If empty.
162
+
if (0 === args.length) {
163
+
throw Error('Container cannot be empty.');
164
+
}
165
+
166
+
// Set properties, if not defined - keep the defaults.
167
+
args.forEach(function (_ref) {
168
+
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
169
+
key = _ref2[0],
170
+
value = _ref2[1];
171
+
_this[key] = 'undefined' === typeof value ? _this[key] : value;
172
+
});
173
+
if ('undefined' === typeof _this.renderer) {
174
+
_this.renderer = _this;
175
+
}
176
+
if (!_this.document) {
177
+
_this.document = elementor.documents.getCurrent();
178
+
}
179
+
_this.dynamic = new Backbone.Model(_this.settings.get('__dynamic__'));
180
+
_this.globals = new Backbone.Model(_this.settings.get('__globals__'));
181
+
_this.panel = new _panel.default(_this);
182
+
_this.initialize();
183
+
return _this;
184
+
}
185
+
(0, _inherits2.default)(Container, _ArgsObject);
186
+
return (0, _createClass2.default)(Container, [{
187
+
key: "initialize",
188
+
value: function initialize() {
189
+
if (this.isViewElement()) {
190
+
this.addToParent();
191
+
this.handleChildrenRecursive();
192
+
this.view.on('destroy', this.removeFromParent.bind(this));
193
+
}
194
+
this.handleRepeaterChildren();
195
+
}
196
+
}, {
197
+
key: "validateArgs",
198
+
value: function validateArgs(args) {
199
+
this.requireArgumentType('type', 'string', args);
200
+
this.requireArgumentType('id', 'string', args);
201
+
this.requireArgumentInstance('settings', Backbone.Model, args);
202
+
this.requireArgumentInstance('model', Backbone.Model, args);
203
+
204
+
// Require it, unless it's forced to be `false`.
205
+
if (false !== args.parent) {
206
+
this.requireArgumentInstance('parent', elementorModules.editor.Container, args);
207
+
}
208
+
}
209
+
210
+
/**
211
+
* Function getGroupRelatedControls().
212
+
*
213
+
* Example:
214
+
* Settings = { typography_typography: 'whatever', button_text_color: 'whatever' };
215
+
* Result { control_name: controlValue, ... - and so on };
216
+
* `Object.keys( Result ) = [ 'typography_typography', 'typography_font_family', 'typography_font_size', 'typography_font_size_tablet', 'typography_font_size_mobile', 'typography_font_weight', 'typography_text_transform', 'typography_font_style', 'typography_text_decoration', 'typography_line_height', 'typography_line_height_tablet', 'typography_line_height_mobile', 'typography_letter_spacing', 'typography_letter_spacing_tablet', 'typography_letter_spacing_mobile', 'button_text_color' ]`.
217
+
*
218
+
* @param {{}} settings
219
+
*
220
+
* @return {{}} result
221
+
*/
222
+
}, {
223
+
key: "getGroupRelatedControls",
224
+
value: function getGroupRelatedControls(settings) {
225
+
var _this2 = this;
226
+
var result = {};
227
+
Object.keys(settings).forEach(function (settingKey) {
228
+
Object.values(_this2.controls).forEach(function (control) {
229
+
var _this2$controls$setti;
230
+
if (settingKey === control.name) {
231
+
result[control.name] = control;
232
+
} else if ((_this2$controls$setti = _this2.controls[settingKey]) !== null && _this2$controls$setti !== void 0 && _this2$controls$setti.groupPrefix) {
233
+
var groupPrefix = _this2.controls[settingKey].groupPrefix;
234
+
if (control.name.toString().startsWith(groupPrefix)) {
235
+
result[control.name] = control;
236
+
}
237
+
}
238
+
});
239
+
});
240
+
return result;
241
+
}
242
+
243
+
/**
244
+
* Function getAffectingControls().
245
+
*
246
+
* @return {{}} All controls that effecting the container.
247
+
*/
248
+
}, {
249
+
key: "getAffectingControls",
250
+
value: function getAffectingControls() {
251
+
var _this3 = this;
252
+
var result = {},
253
+
activeControls = this.settings.getActiveControls();
254
+
Object.entries(activeControls).forEach(function (_ref3) {
255
+
var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
256
+
controlName = _ref4[0],
257
+
control = _ref4[1];
258
+
var controlValue = _this3.settings.get(control.name);
259
+
if (control.global && !(controlValue !== null && controlValue !== void 0 && controlValue.length)) {
260
+
var _this3$globals$get;
261
+
if ((_this3$globals$get = _this3.globals.get(control.name)) !== null && _this3$globals$get !== void 0 && _this3$globals$get.length || _this3.getGlobalDefault(controlName).length) {
262
+
control.global.utilized = true;
263
+
result[controlName] = control;
264
+
return;
265
+
}
266
+
}
267
+
if (control.dynamic) {
268
+
if (_this3.dynamic.get(controlName)) {
269
+
control.dynamic.utilized = true;
270
+
result[controlName] = control;
271
+
return;
272
+
}
273
+
}
274
+
if (controlValue === control.default) {
275
+
return;
276
+
}
277
+
if (!controlValue) {
278
+
return;
279
+
}
280
+
if ('object' === (0, _typeof2.default)(controlValue) && Object.values(controlValue).join() === Object.values(control.default).join()) {
281
+
return;
282
+
}
283
+
result[controlName] = control;
284
+
});
285
+
return result;
286
+
}
287
+
288
+
/**
289
+
* Function getParentAncestry().
290
+
*
291
+
* Recursively run over all parents from current container till the top
292
+
*
293
+
* @return {Array.<Container>} All parent as flat array.
294
+
*/
295
+
}, {
296
+
key: "getParentAncestry",
297
+
value: function getParentAncestry() {
298
+
var result = [];
299
+
var parent = this;
300
+
while (parent) {
301
+
result.push(parent);
302
+
parent = parent.parent;
303
+
}
304
+
return result;
305
+
}
306
+
}, {
307
+
key: "handleChildrenRecursive",
308
+
value: function handleChildrenRecursive() {
309
+
var _this$view$children;
310
+
if ((_this$view$children = this.view.children) !== null && _this$view$children !== void 0 && _this$view$children.length) {
311
+
Object.values(this.view.children._views).forEach(function (view) {
312
+
if (!view.container) {
313
+
return;
314
+
}
315
+
var container = view.container;
316
+
317
+
// Since the way 'global-widget' rendered, it does not have parent sometimes.
318
+
if (container.parent.children) {
319
+
container.parent.children[view._index] = container;
320
+
}
321
+
container.handleChildrenRecursive();
322
+
});
323
+
} else {
324
+
this.children.clear();
325
+
}
326
+
}
327
+
}, {
328
+
key: "addToParent",
329
+
value: function addToParent() {
330
+
if (!this.parent.children || this.isRepeaterItem()) {
331
+
return;
332
+
}
333
+
334
+
// On create container tell the parent where it was created.
335
+
this.parent.children.splice(this.view._index, 0, this);
336
+
}
337
+
}, {
338
+
key: "removeFromParent",
339
+
value: function removeFromParent() {
340
+
var _this4 = this;
341
+
if (!this.parent.children || this.isRepeater()) {
342
+
return;
343
+
}
344
+
345
+
// When delete container its should notify its parent, that his children is dead.
346
+
this.parent.children = this.parent.children.filter(function (filtered) {
347
+
return filtered.id !== _this4.id;
348
+
});
349
+
}
350
+
}, {
351
+
key: "handleRepeaterChildren",
352
+
value: function handleRepeaterChildren() {
353
+
var _this5 = this;
354
+
Object.values(this.controls).forEach(function (control) {
355
+
if (!control.is_repeater) {
356
+
return;
357
+
}
358
+
var model = new Backbone.Model({
359
+
name: control.name
360
+
});
361
+
_this5.repeaters[control.name] = new elementorModules.editor.Container({
362
+
type: Container.TYPE_REPEATER,
363
+
id: control.name,
364
+
model: model,
365
+
settings: model,
366
+
view: _this5.view,
367
+
parent: _this5,
368
+
label: control.label || control.name,
369
+
controls: {},
370
+
renderer: _this5.renderer
371
+
});
372
+
_this5.settings.get(control.name).forEach(function (rowModel, index) {
373
+
_this5.addRepeaterItem(control.name, rowModel, index);
374
+
});
375
+
});
376
+
377
+
// Backwards Compatibility: if there is only one repeater (type=repeater), set it's children as current children.
378
+
// Since 3.0.0.
379
+
if (['widget', 'document'].includes(this.type)) {
380
+
var repeaters = Object.values(this.controls).filter(function (control) {
381
+
return 'repeater' === control.type;
382
+
});
383
+
if (!this.model.get('supportRepeaterChildren') && 1 === repeaters.length) {
384
+
Object.defineProperty(this, 'children', {
385
+
get: function get() {
386
+
elementorDevTools.deprecation.deprecated('children', '3.0.0', 'container.repeaters[ repeaterName ].children');
387
+
return this.repeaters[repeaters[0].name].children;
388
+
}
389
+
});
390
+
}
391
+
}
392
+
}
393
+
394
+
/**
395
+
* Function addRepeaterItem().
396
+
*
397
+
* The method add repeater item, find the repeater control by it name, and create new container for the item.
398
+
*
399
+
* @param {string} repeaterName
400
+
* @param {Backbone.Model} rowSettingsModel
401
+
* @param {number} index
402
+
*
403
+
* @return {Container} container
404
+
*/
405
+
}, {
406
+
key: "addRepeaterItem",
407
+
value: function addRepeaterItem(repeaterName, rowSettingsModel, index) {
408
+
var rowId = rowSettingsModel.get('_id');
409
+
410
+
// TODO: Temp backwards compatibility. since 2.8.0.
411
+
if (!rowId) {
412
+
rowId = 'bc-' + elementorCommon.helpers.getUniqueId();
413
+
rowSettingsModel.set('_id', rowId);
414
+
}
415
+
this.repeaters[repeaterName].children.splice(index, 0, new elementorModules.editor.Container({
416
+
type: Container.TYPE_REPEATER_ITEM,
417
+
id: rowSettingsModel.get('_id'),
418
+
model: new Backbone.Model({
419
+
name: repeaterName
420
+
}),
421
+
settings: rowSettingsModel,
422
+
view: this.view,
423
+
parent: this.repeaters[repeaterName],
424
+
label: this.label + ' ' + __('Item', 'elementor'),
425
+
controls: rowSettingsModel.options.controls,
426
+
renderer: this.renderer
427
+
}));
428
+
return this.repeaters[repeaterName];
429
+
}
430
+
431
+
/**
432
+
* Function lookup().
433
+
*
434
+
* If the view were destroyed, try to find it again if it exists.
435
+
*
436
+
* TODO: Refactor.
437
+
*
438
+
* @return {Container} container
439
+
*/
440
+
}, {
441
+
key: "lookup",
442
+
value: function lookup() {
443
+
var _this$renderer$view;
444
+
var result = this;
445
+
if (!this.renderer) {
446
+
return this;
447
+
}
448
+
if (this !== this.renderer && (_this$renderer$view = this.renderer.view) !== null && _this$renderer$view !== void 0 && _this$renderer$view.isDisconnected && this.renderer.view.isDisconnected()) {
449
+
this.renderer = this.renderer.lookup();
450
+
}
451
+
if (undefined === this.view || !this.view.lookup || !this.view.isDisconnected()) {
452
+
// Hack For repeater item the result is the parent container.
453
+
if (Container.TYPE_REPEATER_ITEM === this.type) {
454
+
this.settings = this.parent.parent.settings.get(this.model.get('name')).findWhere({
455
+
_id: this.id
456
+
});
457
+
}
458
+
return result;
459
+
}
460
+
var lookup = this.view.lookup();
461
+
if (lookup) {
462
+
result = lookup.getContainer();
463
+
464
+
// Hack For repeater item the result is the parent container.
465
+
if (Container.REPEATER === this.type) {
466
+
this.settings = result.settings.get(this.model.get('name')).findWhere({
467
+
_id: this.id
468
+
});
469
+
return this;
470
+
}
471
+
472
+
// If lookup were done, new container were created and parent does not know about it.
473
+
if (result.parent.children) {
474
+
result.parent.children[result.view._index] = result;
475
+
}
476
+
}
477
+
return result;
478
+
}
479
+
480
+
/**
481
+
* @param {Function} callback - A callback function.
482
+
* @deprecated since 3.5.0, use `container.children.findRecursive( callback )` instead.
483
+
*/
484
+
}, {
485
+
key: "findChildrenRecursive",
486
+
value: function findChildrenRecursive(callback) {
487
+
elementorDevTools.deprecation.deprecated('container.findChildrenRecursive( callback )', '3.5.0', 'container.children.findRecursive( callback )');
488
+
return this.children.findRecursive(callback);
489
+
}
490
+
491
+
/**
492
+
* @param {Function} callback - A callback function.
493
+
* @deprecated since 3.5.0, use `container.children.forEachRecursive( callback )` instead.
494
+
*/
495
+
}, {
496
+
key: "forEachChildrenRecursive",
497
+
value: function forEachChildrenRecursive(callback) {
498
+
elementorDevTools.deprecation.deprecated('container.forEachChildrenRecursive( callback )', '3.5.0', 'container.children.forEachRecursive( callback )');
499
+
return this.children.forEachRecursive(callback);
500
+
}
501
+
502
+
/**
503
+
* Function render().
504
+
*
505
+
* Call view render.
506
+
*
507
+
* Run's `this.renderer.view.renderOnChange( this.settings ) `.
508
+
* When `this.renderer` exist.
509
+
*
510
+
*/
511
+
}, {
512
+
key: "render",
513
+
value: function render() {
514
+
var _this$view;
515
+
if (!this.renderer) {
516
+
return;
517
+
}
518
+
this.renderer.view.renderOnChange(this.settings, (_this$view = this.view) === null || _this$view === void 0 ? void 0 : _this$view.$el);
519
+
}
520
+
}, {
521
+
key: "renderUI",
522
+
value: function renderUI() {
523
+
if (!this.renderer) {
524
+
return;
525
+
}
526
+
this.renderer.view.renderUI();
527
+
}
528
+
}, {
529
+
key: "isEditable",
530
+
value: function isEditable() {
531
+
var _this$model, _this$model$get, _this$model$get$get;
532
+
return 'edit' === elementor.channels.dataEditMode.request('activeMode') && 'open' === this.document.editor.status && !((_this$model = this.model) !== null && _this$model !== void 0 && (_this$model$get = _this$model.get) !== null && _this$model$get !== void 0 && (_this$model$get = _this$model$get.call(_this$model, 'editSettings')) !== null && _this$model$get !== void 0 && (_this$model$get$get = _this$model$get.get) !== null && _this$model$get$get !== void 0 && _this$model$get$get.call(_this$model$get, 'inactive'));
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 _this$getEditorContro;
1358
+
var editor = elementor.getPanelView().getCurrentPageView();
1359
+
return editor.children.findByModelCid((_this$getEditorContro = this.getEditorControlModel(name)) === null || _this$getEditorContro === void 0 ? void 0 : _this$getEditorContro.cid);
1360
+
},
1361
+
// TODO: Delete as soon as possible.
1362
+
getEditorControlModel: function getEditorControlModel(name) {
1363
+
var editor = elementor.getPanelView().getCurrentPageView();
1364
+
return editor.collection.findWhere({
1365
+
name: name
1366
+
});
1367
+
},
1368
+
onElementorReady: function onElementorReady() {
1369
+
this.onElementorInit();
1370
+
elementor.on('frontend:init', this.onElementorFrontendInit.bind(this)).on('preview:loaded', this.onElementorPreviewLoaded.bind(this));
1371
+
}
1372
+
});
1373
+
EditorModule.prototype.onElementorLoaded = function () {};
1374
+
EditorModule.prototype.onElementorInit = function () {};
1375
+
EditorModule.prototype.onElementorPreviewLoaded = function () {};
1376
+
EditorModule.prototype.onDocumentLoaded = function () {};
1377
+
EditorModule.prototype.onElementorFrontendInit = function () {};
1378
+
EditorModule.prototype.onElementorInitComponents = function () {};
1379
+
module.exports = EditorModule;
1380
+
1381
+
/***/ }),
1382
+
1383
+
/***/ "../assets/dev/js/editor/views/controls-popover.js":
1384
+
/*!*********************************************************!*\
1385
+
!*** ../assets/dev/js/editor/views/controls-popover.js ***!
1386
+
\*********************************************************/
1387
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1388
+
1389
+
"use strict";
1390
+
/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
1391
+
1392
+
1393
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1394
+
Object.defineProperty(exports, "__esModule", ({
1395
+
value: true
1396
+
}));
1397
+
exports["default"] = void 0;
1398
+
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
1399
+
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1400
+
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1401
+
var ControlsPopover = exports["default"] = /*#__PURE__*/function () {
1402
+
function ControlsPopover(child) {
1403
+
(0, _classCallCheck2.default)(this, ControlsPopover);
1404
+
this.child = child;
1405
+
this.$popover = jQuery('<div>', {
1406
+
class: 'elementor-controls-popover'
1407
+
});
1408
+
child.$el.before(this.$popover);
1409
+
this.$popover.append(child.$el);
1410
+
this.popoverToggleView = child._parent.children.findByIndex(child._index - 1);
1411
+
1412
+
// Add the "Typography" header to the popover
1413
+
if ('typography' === this.child.model.attributes.groupType) {
1414
+
this.createPopoverHeader();
1415
+
}
1416
+
}
1417
+
return (0, _createClass2.default)(ControlsPopover, [{
1418
+
key: "addChild",
1419
+
value: function addChild(child) {
1420
+
this.$popover.append(child.$el);
1421
+
}
1422
+
}, {
1423
+
key: "createPopoverHeader",
1424
+
value: function createPopoverHeader() {
1425
+
var _this = this;
1426
+
var $popoverToggleControl = this.$popover.prev(),
1427
+
// Get the existing reset button.
1428
+
$resetLabel = $popoverToggleControl.find('.elementor-control-popover-toggle-reset-label');
1429
+
this.$popoverHeader = jQuery('<div>', {
1430
+
class: 'e-group-control-header'
1431
+
}).html('<span>' + __('Typography', 'elementor') + '</span>');
1432
+
this.$headerControlsWrapper = jQuery('<div>', {
1433
+
class: 'e-control-tools'
1434
+
});
1435
+
1436
+
// Give the reset button the control tool styling, and add a click event so clicking on it closes the popover.
1437
+
$resetLabel.addClass('e-control-tool').on('click', function () {
1438
+
return _this.onResetButtonClick();
1439
+
});
1440
+
1441
+
// Move the popover toggle reset button into the popover header.
1442
+
this.$headerControlsWrapper.append($resetLabel);
1443
+
this.$popoverHeader.append(this.$headerControlsWrapper);
1444
+
var globalConfig = this.popoverToggleView.model.get('global');
1445
+
if (globalConfig !== null && globalConfig !== void 0 && globalConfig.active) {
1446
+
this.createAddButton();
1447
+
}
1448
+
this.$popover.prepend(this.$popoverHeader).addClass('e-controls-popover--typography');
1449
+
}
1450
+
}, {
1451
+
key: "onResetButtonClick",
1452
+
value: function onResetButtonClick() {
1453
+
this.$popover.hide();
1454
+
var groupControlName = this.child.model.get('groupPrefix') + 'typography',
1455
+
args = {
1456
+
container: this.child.options.container,
1457
+
settings: (0, _defineProperty2.default)({}, groupControlName, '')
1458
+
};
1459
+
if (this.child.options.container.globals.get(groupControlName)) {
1460
+
// The Disable Globals command applies global settings locally,
1461
+
// so disabling the global shouldn't actually change the appearance of the widget.
1462
+
$e.run('document/globals/disable', args);
1463
+
} else {
1464
+
$e.run('document/elements/settings', args);
1465
+
}
1466
+
}
1467
+
}, {
1468
+
key: "onAddButtonClick",
1469
+
value: function onAddButtonClick() {
1470
+
this.popoverToggleView.onAddGlobalButtonClick();
1471
+
}
1472
+
}, {
1473
+
key: "createAddButton",
1474
+
value: function createAddButton() {
1475
+
var _this2 = this;
1476
+
this.$addButton = jQuery('<button>', {
1477
+
class: 'e-control-tool'
1478
+
}).html(jQuery('<i>', {
1479
+
class: 'eicon-plus'
1480
+
}));
1481
+
this.$headerControlsWrapper.append(this.$addButton);
1482
+
this.$addButton.on('click', function () {
1483
+
return _this2.onAddButtonClick();
1484
+
});
1485
+
this.$addButton.tipsy({
1486
+
title: function title() {
1487
+
return __('Create New Global Font', 'elementor');
1488
+
},
1489
+
gravity: function gravity() {
1490
+
return 's';
1491
+
}
1492
+
});
1493
+
}
1494
+
}, {
1495
+
key: "destroy",
1496
+
value: function destroy() {
1497
+
this.$popover.remove();
1498
+
}
1499
+
}]);
1500
+
}();
1501
+
1502
+
/***/ }),
1503
+
1504
+
/***/ "../assets/dev/js/editor/views/controls-stack.js":
1505
+
/*!*******************************************************!*\
1506
+
!*** ../assets/dev/js/editor/views/controls-stack.js ***!
1507
+
\*******************************************************/
1508
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1509
+
1510
+
"use strict";
1511
+
1512
+
1513
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1514
+
Object.defineProperty(exports, "__esModule", ({
1515
+
value: true
1516
+
}));
1517
+
exports["default"] = void 0;
1518
+
var _controlsPopover = _interopRequireDefault(__webpack_require__(/*! ./controls-popover */ "../assets/dev/js/editor/views/controls-popover.js"));
1519
+
var ControlsStack;
1520
+
ControlsStack = Marionette.CompositeView.extend({
1521
+
classes: {
1522
+
popover: 'elementor-controls-popover'
1523
+
},
1524
+
activeTab: null,
1525
+
activeSection: null,
1526
+
className: function className() {
1527
+
return 'elementor-controls-stack';
1528
+
},
1529
+
templateHelpers: function templateHelpers() {
1530
+
return {
1531
+
elementData: elementor.getElementData(this.model)
1532
+
};
1533
+
},
1534
+
childViewOptions: function childViewOptions() {
1535
+
return {
1536
+
// TODO: elementSettingsModel is deprecated since 2.8.0.
1537
+
elementSettingsModel: this.model
1538
+
};
1539
+
},
1540
+
ui: function ui() {
1541
+
return {
1542
+
tabs: '.elementor-panel-navigation-tab',
1543
+
reloadButton: '.elementor-update-preview-button'
1544
+
};
1545
+
},
1546
+
events: function events() {
1547
+
return {
1548
+
'click @ui.reloadButton': 'onReloadButtonClick'
1549
+
};
1550
+
},
1551
+
modelEvents: {
1552
+
destroy: 'onModelDestroy'
1553
+
},
1554
+
behaviors: {
1555
+
HandleInnerTabs: {
1556
+
behaviorClass: __webpack_require__(/*! elementor-behaviors/inner-tabs */ "../assets/dev/js/editor/elements/views/behaviors/inner-tabs.js")
1557
+
}
1558
+
},
1559
+
initialize: function initialize(options) {
1560
+
this.initCollection();
1561
+
if (options.tab) {
1562
+
this.activeTab = options.tab;
1563
+
this.activateFirstSection();
1564
+
}
1565
+
this.listenTo(elementor.channels.deviceMode, 'change', this.onDeviceModeChange);
1566
+
},
1567
+
onDestroy: function onDestroy() {
1568
+
this.stopListening(elementor.channels.deviceMode, 'change', this.onDeviceModeChange);
1569
+
},
1570
+
initCollection: function initCollection() {
1571
+
this.collection = new Backbone.Collection(_.values(elementor.mergeControlsSettings(this.getOption('controls'))));
1572
+
},
1573
+
filter: function filter(controlModel) {
1574
+
if (controlModel.get('tab') !== this.activeTab) {
1575
+
return false;
1576
+
}
1577
+
if ('section' === controlModel.get('type')) {
1578
+
return true;
1579
+
}
1580
+
var section = controlModel.get('section');
1581
+
return !section || section === this.activeSection;
1582
+
},
1583
+
getControlViewByModel: function getControlViewByModel(model) {
1584
+
return this.children.findByModelCid(model.cid);
1585
+
},
1586
+
getControlViewByName: function getControlViewByName(name) {
1587
+
return this.getControlViewByModel(this.getControlModel(name));
1588
+
},
1589
+
getControlModel: function getControlModel(name) {
1590
+
return this.collection.findWhere({
1591
+
name: name
1592
+
});
1593
+
},
1594
+
isVisibleSectionControl: function isVisibleSectionControl(sectionControlModel) {
1595
+
return this.activeTab === sectionControlModel.get('tab');
1596
+
},
1597
+
activateTab: function activateTab(tab) {
1598
+
this.activeTab = tab;
1599
+
this.activateFirstSection();
1600
+
this._renderChildren();
1601
+
return this;
1602
+
},
1603
+
activateSection: function activateSection(sectionName) {
1604
+
this.activeSection = sectionName;
1605
+
return this;
1606
+
},
1607
+
activateFirstSection: function activateFirstSection() {
1608
+
var self = this;
1609
+
var sectionControls = self.collection.filter(function (controlModel) {
1610
+
return 'section' === controlModel.get('type') && self.isVisibleSectionControl(controlModel);
1611
+
});
1612
+
var sectionToActivate;
1613
+
if (!sectionControls[0]) {
1614
+
self.activeSection = null;
1615
+
sectionToActivate = null;
1616
+
} else {
1617
+
sectionToActivate = sectionControls[0].get('name');
1618
+
}
1619
+
var preActivatedSection = sectionControls.filter(function (controlModel) {
1620
+
return self.activeSection === controlModel.get('name');
1621
+
});
1622
+
if (preActivatedSection[0]) {
1623
+
return;
1624
+
}
1625
+
self.activateSection(sectionToActivate);
1626
+
return this;
1627
+
},
1628
+
getChildView: function getChildView(item) {
1629
+
var controlType = item.get('type');
1630
+
return elementor.getControlView(controlType);
1631
+
},
1632
+
getNamespaceArray: function getNamespaceArray() {
1633
+
return [elementor.getPanelView().getCurrentPageName()];
1634
+
},
1635
+
openActiveSection: function openActiveSection() {
1636
+
var activeSection = this.activeSection,
1637
+
activeSectionView = this.children.filter(function (view) {
1638
+
return activeSection === view.model.get('name');
1639
+
});
1640
+
if (activeSectionView[0]) {
1641
+
activeSectionView[0].$el.addClass('e-open');
1642
+
var eventNamespace = this.getNamespaceArray();
1643
+
eventNamespace.push(activeSection, 'activated');
1644
+
elementor.channels.editor.trigger(eventNamespace.join(':'), this);
1645
+
}
1646
+
},
1647
+
onRenderCollection: function onRenderCollection() {
1648
+
this.openActiveSection();
1649
+
ControlsStack.handlePopovers(this);
1650
+
},
1651
+
onModelDestroy: function onModelDestroy() {
1652
+
this.destroy();
1653
+
},
1654
+
onReloadButtonClick: function onReloadButtonClick() {
1655
+
elementor.reloadPreview();
1656
+
},
1657
+
onDeviceModeChange: function onDeviceModeChange() {
1658
+
if ('desktop' === elementor.channels.deviceMode.request('currentMode')) {
1659
+
this.$el.removeClass('elementor-responsive-switchers-open');
1660
+
}
1661
+
},
1662
+
onChildviewControlSectionClicked: function onChildviewControlSectionClicked(childView) {
1663
+
var isSectionOpen = childView.$el.hasClass('e-open');
1664
+
this.activateSection(isSectionOpen ? null : childView.model.get('name'));
1665
+
this._renderChildren();
1666
+
},
1667
+
onChildviewResponsiveSwitcherClick: function onChildviewResponsiveSwitcherClick(childView, device) {
1668
+
if ('desktop' === device) {
1669
+
this.$el.toggleClass('elementor-responsive-switchers-open');
1670
+
}
1671
+
}
1672
+
}, {
1673
+
handlePopovers: function handlePopovers(view) {
1674
+
var popover;
1675
+
this.removePopovers(view);
1676
+
view.popovers = [];
1677
+
view.children.each(function (control) {
1678
+
if (popover) {
1679
+
popover.addChild(control);
1680
+
}
1681
+
var popoverData = control.model.get('popover');
1682
+
if (!popoverData) {
1683
+
return;
1684
+
}
1685
+
if (popoverData.start) {
1686
+
popover = new _controlsPopover.default(control);
1687
+
view.popovers.push(popover);
1688
+
}
1689
+
if (popoverData.end) {
1690
+
popover = null;
1691
+
}
1692
+
});
1693
+
},
1694
+
removePopovers: function removePopovers(view) {
1695
+
var _view$popovers;
1696
+
(_view$popovers = view.popovers) === null || _view$popovers === void 0 || _view$popovers.forEach(function (popover) {
1697
+
return popover.destroy();
1698
+
});
1699
+
}
1700
+
});
1701
+
var _default = exports["default"] = ControlsStack;
1702
+
1703
+
/***/ }),
1704
+
1705
+
/***/ "../assets/dev/js/modules/imports/args-object.js":
1706
+
/*!*******************************************************!*\
1707
+
!*** ../assets/dev/js/modules/imports/args-object.js ***!
1708
+
\*******************************************************/
1709
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1710
+
1711
+
"use strict";
1712
+
1713
+
1714
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1715
+
Object.defineProperty(exports, "__esModule", ({
1716
+
value: true
1717
+
}));
1718
+
exports["default"] = void 0;
1719
+
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
1720
+
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1721
+
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1722
+
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
1723
+
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1724
+
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1725
+
var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js"));
1726
+
var _isInstanceof = _interopRequireDefault(__webpack_require__(/*! ../../editor/utils/is-instanceof */ "../assets/dev/js/editor/utils/is-instanceof.js"));
1727
+
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)); }
1728
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
1729
+
var ArgsObject = exports["default"] = /*#__PURE__*/function (_InstanceType) {
1730
+
/**
1731
+
* Function constructor().
1732
+
*
1733
+
* Create ArgsObject.
1734
+
*
1735
+
* @param {{}} args
1736
+
*/
1737
+
function ArgsObject(args) {
1738
+
var _this;
1739
+
(0, _classCallCheck2.default)(this, ArgsObject);
1740
+
_this = _callSuper(this, ArgsObject);
1741
+
_this.args = args;
1742
+
return _this;
1743
+
}
1744
+
1745
+
/**
1746
+
* Function requireArgument().
1747
+
*
1748
+
* Validate property in args.
1749
+
*
1750
+
* @param {string} property
1751
+
* @param {{}} args
1752
+
*
1753
+
* @throws {Error}
1754
+
*/
1755
+
(0, _inherits2.default)(ArgsObject, _InstanceType);
1756
+
return (0, _createClass2.default)(ArgsObject, [{
1757
+
key: "requireArgument",
1758
+
value: function requireArgument(property) {
1759
+
var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args;
1760
+
if (!Object.prototype.hasOwnProperty.call(args, property)) {
1761
+
throw Error("".concat(property, " is required."));
1762
+
}
1763
+
}
1764
+
1765
+
/**
1766
+
* Function requireArgumentType().
1767
+
*
1768
+
* Validate property in args using `type === typeof(args.whatever)`.
1769
+
*
1770
+
* @param {string} property
1771
+
* @param {string} type
1772
+
* @param {{}} args
1773
+
*
1774
+
* @throws {Error}
1775
+
*/
1776
+
}, {
1777
+
key: "requireArgumentType",
1778
+
value: function requireArgumentType(property, type) {
1779
+
var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
1780
+
this.requireArgument(property, args);
1781
+
if ((0, _typeof2.default)(args[property]) !== type) {
1782
+
throw Error("".concat(property, " invalid type: ").concat(type, "."));
1783
+
}
1784
+
}
1785
+
1786
+
/**
1787
+
* Function requireArgumentInstance().
1788
+
*
1789
+
* Validate property in args using `args.whatever instanceof instance`.
1790
+
*
1791
+
* @param {string} property
1792
+
* @param {*} instance
1793
+
* @param {{}} args
1794
+
*
1795
+
* @throws {Error}
1796
+
*/
1797
+
}, {
1798
+
key: "requireArgumentInstance",
1799
+
value: function requireArgumentInstance(property, instance) {
1800
+
var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
1801
+
this.requireArgument(property, args);
1802
+
if (!(args[property] instanceof instance) && !(0, _isInstanceof.default)(args[property], instance)) {
1803
+
throw Error("".concat(property, " invalid instance."));
1804
+
}
1805
+
}
1806
+
1807
+
/**
1808
+
* Function requireArgumentConstructor().
1809
+
*
1810
+
* Validate property in args using `type === args.whatever.constructor`.
1811
+
*
1812
+
* @param {string} property
1813
+
* @param {*} type
1814
+
* @param {{}} args
1815
+
*
1816
+
* @throws {Error}
1817
+
*/
1818
+
}, {
1819
+
key: "requireArgumentConstructor",
1820
+
value: function requireArgumentConstructor(property, type) {
1821
+
var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
1822
+
this.requireArgument(property, args);
1823
+
1824
+
// Note: Converting the constructor to string in order to avoid equation issues
1825
+
// due to different memory addresses between iframes (window.Object !== window.top.Object).
1826
+
if (args[property].constructor.toString() !== type.prototype.constructor.toString()) {
1827
+
throw Error("".concat(property, " invalid constructor type."));
1828
+
}
1829
+
}
1830
+
}], [{
1831
+
key: "getInstanceType",
1832
+
value: function getInstanceType() {
1833
+
return 'ArgsObject';
1834
+
}
1835
+
}]);
1836
+
}(_instanceType.default);
1837
+
1838
+
/***/ }),
1839
+
1840
+
/***/ "../assets/dev/js/modules/imports/instance-type.js":
1841
+
/*!*********************************************************!*\
1842
+
!*** ../assets/dev/js/modules/imports/instance-type.js ***!
1843
+
\*********************************************************/
1844
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1845
+
1846
+
"use strict";
1847
+
1848
+
1849
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1850
+
Object.defineProperty(exports, "__esModule", ({
1851
+
value: true
1852
+
}));
1853
+
exports["default"] = void 0;
1854
+
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1855
+
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1856
+
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1857
+
var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js"));
1858
+
function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
1859
+
var InstanceType = exports["default"] = /*#__PURE__*/function () {
1860
+
function InstanceType() {
1861
+
var _this = this;
1862
+
(0, _classCallCheck2.default)(this, InstanceType);
1863
+
// Since anonymous classes sometimes do not get validated by babel, do it manually.
1864
+
var target = this instanceof InstanceType ? this.constructor : void 0;
1865
+
var prototypes = [];
1866
+
while (target.__proto__ && target.__proto__.name) {
1867
+
prototypes.push(target.__proto__);
1868
+
target = target.__proto__;
1869
+
}
1870
+
prototypes.reverse().forEach(function (proto) {
1871
+
return _this instanceof proto;
1872
+
});
1873
+
}
1874
+
return (0, _createClass2.default)(InstanceType, null, [{
1875
+
key: Symbol.hasInstance,
1876
+
value: function value(target) {
1877
+
/**
1878
+
* This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class
1879
+
* its give's opportunity to mange capabilities of instanceOf operator.
1880
+
* saving current class each time will give option later to handle instanceOf manually.
1881
+
*/
1882
+
var result = _superPropGet(InstanceType, Symbol.hasInstance, this, 2)([target]);
1883
+
1884
+
// Act normal when validate a class, which does not have instance type.
1885
+
if (target && !target.constructor.getInstanceType) {
1886
+
return result;
1887
+
}
1888
+
if (target) {
1889
+
if (!target.instanceTypes) {
1890
+
target.instanceTypes = [];
1891
+
}
1892
+
if (!result) {
1893
+
if (this.getInstanceType() === target.constructor.getInstanceType()) {
1894
+
result = true;
1895
+
}
1896
+
}
1897
+
if (result) {
1898
+
var name = this.getInstanceType === InstanceType.getInstanceType ? 'BaseInstanceType' : this.getInstanceType();
1899
+
if (-1 === target.instanceTypes.indexOf(name)) {
1900
+
target.instanceTypes.push(name);
1901
+
}
1902
+
}
1903
+
}
1904
+
if (!result && target) {
1905
+
// Check if the given 'target', is instance of known types.
1906
+
result = target.instanceTypes && Array.isArray(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType());
1907
+
}
1908
+
return result;
1909
+
}
1910
+
}, {
1911
+
key: "getInstanceType",
1912
+
value: function getInstanceType() {
1913
+
elementorModules.ForceMethodImplementation();
1914
+
}
1915
+
}]);
1916
+
}();
1917
+
1918
+
/***/ }),
1919
+
1920
+
/***/ "../assets/dev/js/utils/introduction.js":
1921
+
/*!**********************************************!*\
1922
+
!*** ../assets/dev/js/utils/introduction.js ***!
1923
+
\**********************************************/
1924
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1925
+
1926
+
"use strict";
1927
+
1928
+
1929
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1930
+
Object.defineProperty(exports, "__esModule", ({
1931
+
value: true
1932
+
}));
1933
+
exports["default"] = void 0;
1934
+
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js"));
1935
+
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
1936
+
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1937
+
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1938
+
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
1939
+
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1940
+
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1941
+
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
1942
+
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)); }
1943
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
1944
+
var _default = exports["default"] = /*#__PURE__*/function (_elementorModules$Mod) {
1945
+
function _default() {
1946
+
var _this;
1947
+
(0, _classCallCheck2.default)(this, _default);
1948
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1949
+
args[_key] = arguments[_key];
1950
+
}
1951
+
_this = _callSuper(this, _default, [].concat(args));
1952
+
(0, _defineProperty2.default)(_this, "introductionMap", null);
1953
+
_this.initDialog();
1954
+
return _this;
1955
+
}
1956
+
(0, _inherits2.default)(_default, _elementorModules$Mod);
1957
+
return (0, _createClass2.default)(_default, [{
1958
+
key: "setIntroductionMap",
1959
+
value: function setIntroductionMap(map) {
1960
+
this.introductionMap = map;
1961
+
}
1962
+
}, {
1963
+
key: "getIntroductionMap",
1964
+
value: function getIntroductionMap() {
1965
+
return this.introductionMap || elementor.config.user.introduction;
1966
+
}
1967
+
}, {
1968
+
key: "getDefaultSettings",
1969
+
value: function getDefaultSettings() {
1970
+
return {
1971
+
dialogType: 'buttons',
1972
+
dialogOptions: {
1973
+
effects: {
1974
+
hide: 'hide',
1975
+
show: 'show'
1976
+
},
1977
+
hide: {
1978
+
onBackgroundClick: false
1979
+
}
1980
+
}
1981
+
};
1982
+
}
1983
+
}, {
1984
+
key: "initDialog",
1985
+
value: function initDialog() {
1986
+
var _this2 = this;
1987
+
var dialog;
1988
+
this.getDialog = function () {
1989
+
if (!dialog) {
1990
+
var settings = _this2.getSettings();
1991
+
dialog = elementorCommon.dialogsManager.createWidget(settings.dialogType, settings.dialogOptions);
1992
+
if (settings.onDialogInitCallback) {
1993
+
settings.onDialogInitCallback.call(_this2, dialog);
1994
+
}
1995
+
}
1996
+
return dialog;
1997
+
};
1998
+
}
1999
+
}, {
2000
+
key: "show",
2001
+
value: function show(target) {
2002
+
if (this.introductionViewed) {
2003
+
return;
2004
+
}
2005
+
var dialog = this.getDialog();
2006
+
if (target) {
2007
+
dialog.setSettings('position', {
2008
+
of: target
2009
+
});
2010
+
}
2011
+
dialog.show();
2012
+
}
2013
+
}, {
2014
+
key: "introductionViewed",
2015
+
get: function get() {
2016
+
var introductionKey = this.getSettings('introductionKey');
2017
+
return this.getIntroductionMap()[introductionKey];
2018
+
},
2019
+
set: function set(isViewed) {
2020
+
var introductionKey = this.getSettings('introductionKey');
2021
+
this.getIntroductionMap()[introductionKey] = isViewed;
2022
+
}
2023
+
}, {
2024
+
key: "setViewed",
2025
+
value: function () {
2026
+
var _setViewed = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
2027
+
var _this3 = this;
2028
+
return _regenerator.default.wrap(function (_context) {
2029
+
while (1) switch (_context.prev = _context.next) {
2030
+
case 0:
2031
+
this.introductionViewed = true;
2032
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
2033
+
elementorCommon.ajax.addRequest('introduction_viewed', {
2034
+
data: {
2035
+
introductionKey: _this3.getSettings('introductionKey')
2036
+
},
2037
+
success: resolve,
2038
+
error: reject
2039
+
});
2040
+
}));
2041
+
case 1:
2042
+
case "end":
2043
+
return _context.stop();
2044
+
}
2045
+
}, _callee, this);
2046
+
}));
2047
+
function setViewed() {
2048
+
return _setViewed.apply(this, arguments);
2049
+
}
2050
+
return setViewed;
2051
+
}()
2052
+
}]);
2053
+
}(elementorModules.Module);
2054
+
2055
+
/***/ }),
2056
+
2057
+
/***/ "../node_modules/@babel/runtime/helpers/OverloadYield.js":
2058
+
/*!***************************************************************!*\
2059
+
!*** ../node_modules/@babel/runtime/helpers/OverloadYield.js ***!
2060
+
\***************************************************************/
2061
+
/***/ ((module) => {
2062
+
2063
+
function _OverloadYield(e, d) {
2064
+
this.v = e, this.k = d;
2065
+
}
2066
+
module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports;
2067
+
2068
+
/***/ }),
2069
+
2070
+
/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
2071
+
/*!******************************************************************!*\
2072
+
!*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
2073
+
\******************************************************************/
2074
+
/***/ ((module) => {
2075
+
2076
+
function _arrayLikeToArray(r, a) {
2077
+
(null == a || a > r.length) && (a = r.length);
2078
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
2079
+
return n;
2080
+
}
2081
+
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2082
+
2083
+
/***/ }),
2084
+
2085
+
/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
2086
+
/*!****************************************************************!*\
2087
+
!*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
2088
+
\****************************************************************/
2089
+
/***/ ((module) => {
2090
+
2091
+
function _arrayWithHoles(r) {
2092
+
if (Array.isArray(r)) return r;
2093
+
}
2094
+
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
2095
+
2096
+
/***/ }),
2097
+
2098
+
/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js":
2099
+
/*!***********************************************************************!*\
2100
+
!*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
2101
+
\***********************************************************************/
2102
+
/***/ ((module) => {
2103
+
2104
+
function _assertThisInitialized(e) {
2105
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2106
+
return e;
2107
+
}
2108
+
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
2109
+
2110
+
/***/ }),
2111
+
2112
+
/***/ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js":
2113
+
/*!******************************************************************!*\
2114
+
!*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
2115
+
\******************************************************************/
2116
+
/***/ ((module) => {
2117
+
2118
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
2119
+
try {
2120
+
var i = n[a](c),
2121
+
u = i.value;
2122
+
} catch (n) {
2123
+
return void e(n);
2124
+
}
2125
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
2126
+
}
2127
+
function _asyncToGenerator(n) {
2128
+
return function () {
2129
+
var t = this,
2130
+
e = arguments;
2131
+
return new Promise(function (r, o) {
2132
+
var a = n.apply(t, e);
2133
+
function _next(n) {
2134
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
2135
+
}
2136
+
function _throw(n) {
2137
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
2138
+
}
2139
+
_next(void 0);
2140
+
});
2141
+
};
2142
+
}
2143
+
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
2144
+
2145
+
/***/ }),
2146
+
2147
+
/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
2148
+
/*!****************************************************************!*\
2149
+
!*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
2150
+
\****************************************************************/
2151
+
/***/ ((module) => {
2152
+
2153
+
function _classCallCheck(a, n) {
2154
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
2155
+
}
2156
+
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
2157
+
2158
+
/***/ }),
2159
+
2160
+
/***/ "../node_modules/@babel/runtime/helpers/construct.js":
2161
+
/*!***********************************************************!*\
2162
+
!*** ../node_modules/@babel/runtime/helpers/construct.js ***!
2163
+
\***********************************************************/
2164
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2165
+
2166
+
var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js");
2167
+
var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2168
+
function _construct(t, e, r) {
2169
+
if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
2170
+
var o = [null];
2171
+
o.push.apply(o, e);
2172
+
var p = new (t.bind.apply(t, o))();
2173
+
return r && setPrototypeOf(p, r.prototype), p;
2174
+
}
2175
+
module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
2176
+
2177
+
/***/ }),
2178
+
2179
+
/***/ "../node_modules/@babel/runtime/helpers/createClass.js":
2180
+
/*!*************************************************************!*\
2181
+
!*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
2182
+
\*************************************************************/
2183
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2184
+
2185
+
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2186
+
function _defineProperties(e, r) {
2187
+
for (var t = 0; t < r.length; t++) {
2188
+
var o = r[t];
2189
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
2190
+
}
2191
+
}
2192
+
function _createClass(e, r, t) {
2193
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
2194
+
writable: !1
2195
+
}), e;
2196
+
}
2197
+
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
2198
+
2199
+
/***/ }),
2200
+
2201
+
/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js":
2202
+
/*!****************************************************************!*\
2203
+
!*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***!
2204
+
\****************************************************************/
2205
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2206
+
2207
+
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2208
+
function _defineProperty(e, r, t) {
2209
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
2210
+
value: t,
2211
+
enumerable: !0,
2212
+
configurable: !0,
2213
+
writable: !0
2214
+
}) : e[r] = t, e;
2215
+
}
2216
+
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
2217
+
2218
+
/***/ }),
2219
+
2220
+
/***/ "../node_modules/@babel/runtime/helpers/get.js":
2221
+
/*!*****************************************************!*\
2222
+
!*** ../node_modules/@babel/runtime/helpers/get.js ***!
2223
+
\*****************************************************/
2224
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2225
+
2226
+
var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js");
2227
+
function _get() {
2228
+
return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
2229
+
var p = superPropBase(e, t);
2230
+
if (p) {
2231
+
var n = Object.getOwnPropertyDescriptor(p, t);
2232
+
return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
2233
+
}
2234
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments);
2235
+
}
2236
+
module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;
2237
+
2238
+
/***/ }),
2239
+
2240
+
/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js":
2241
+
/*!****************************************************************!*\
2242
+
!*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
2243
+
\****************************************************************/
2244
+
/***/ ((module) => {
2245
+
2246
+
function _getPrototypeOf(t) {
2247
+
return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
2248
+
return t.__proto__ || Object.getPrototypeOf(t);
2249
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
2250
+
}
2251
+
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2252
+
2253
+
/***/ }),
2254
+
2255
+
/***/ "../node_modules/@babel/runtime/helpers/inherits.js":
2256
+
/*!**********************************************************!*\
2257
+
!*** ../node_modules/@babel/runtime/helpers/inherits.js ***!
2258
+
\**********************************************************/
2259
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2260
+
2261
+
var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2262
+
function _inherits(t, e) {
2263
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
2264
+
t.prototype = Object.create(e && e.prototype, {
2265
+
constructor: {
2266
+
value: t,
2267
+
writable: !0,
2268
+
configurable: !0
2269
+
}
2270
+
}), Object.defineProperty(t, "prototype", {
2271
+
writable: !1
2272
+
}), e && setPrototypeOf(t, e);
2273
+
}
2274
+
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
2275
+
2276
+
/***/ }),
2277
+
2278
+
/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
2279
+
/*!***********************************************************************!*\
2280
+
!*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
2281
+
\***********************************************************************/
2282
+
/***/ ((module) => {
2283
+
2284
+
function _interopRequireDefault(e) {
2285
+
return e && e.__esModule ? e : {
2286
+
"default": e
2287
+
};
2288
+
}
2289
+
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
2290
+
2291
+
/***/ }),
2292
+
2293
+
/***/ "../node_modules/@babel/runtime/helpers/isNativeFunction.js":
2294
+
/*!******************************************************************!*\
2295
+
!*** ../node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
2296
+
\******************************************************************/
2297
+
/***/ ((module) => {
2298
+
2299
+
function _isNativeFunction(t) {
2300
+
try {
2301
+
return -1 !== Function.toString.call(t).indexOf("[native code]");
2302
+
} catch (n) {
2303
+
return "function" == typeof t;
2304
+
}
2305
+
}
2306
+
module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
2307
+
2308
+
/***/ }),
2309
+
2310
+
/***/ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js":
2311
+
/*!**************************************************************************!*\
2312
+
!*** ../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
2313
+
\**************************************************************************/
2314
+
/***/ ((module) => {
2315
+
2316
+
function _isNativeReflectConstruct() {
2317
+
try {
2318
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
2319
+
} catch (t) {}
2320
+
return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
2321
+
return !!t;
2322
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports)();
2323
+
}
2324
+
module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
2325
+
2326
+
/***/ }),
2327
+
2328
+
/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
2329
+
/*!**********************************************************************!*\
2330
+
!*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
2331
+
\**********************************************************************/
2332
+
/***/ ((module) => {
2333
+
2334
+
function _iterableToArrayLimit(r, l) {
2335
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
2336
+
if (null != t) {
2337
+
var e,
2338
+
n,
2339
+
i,
2340
+
u,
2341
+
a = [],
2342
+
f = !0,
2343
+
o = !1;
2344
+
try {
2345
+
if (i = (t = t.call(r)).next, 0 === l) {
2346
+
if (Object(t) !== t) return;
2347
+
f = !1;
2348
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
2349
+
} catch (r) {
2350
+
o = !0, n = r;
2351
+
} finally {
2352
+
try {
2353
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
2354
+
} finally {
2355
+
if (o) throw n;
2356
+
}
2357
+
}
2358
+
return a;
2359
+
}
2360
+
}
2361
+
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
2362
+
2363
+
/***/ }),
2364
+
2365
+
/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
2366
+
/*!*****************************************************************!*\
2367
+
!*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
2368
+
\*****************************************************************/
2369
+
/***/ ((module) => {
2370
+
2371
+
function _nonIterableRest() {
2372
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2373
+
}
2374
+
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
2375
+
2376
+
/***/ }),
2377
+
2378
+
/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
2379
+
/*!***************************************************************************!*\
2380
+
!*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
2381
+
\***************************************************************************/
2382
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2383
+
2384
+
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2385
+
var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js");
2386
+
function _possibleConstructorReturn(t, e) {
2387
+
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
2388
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
2389
+
return assertThisInitialized(t);
2390
+
}
2391
+
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
2392
+
2393
+
/***/ }),
2394
+
2395
+
/***/ "../node_modules/@babel/runtime/helpers/readOnlyError.js":
2396
+
/*!***************************************************************!*\
2397
+
!*** ../node_modules/@babel/runtime/helpers/readOnlyError.js ***!
2398
+
\***************************************************************/
2399
+
/***/ ((module) => {
2400
+
2401
+
function _readOnlyError(r) {
2402
+
throw new TypeError('"' + r + '" is read-only');
2403
+
}
2404
+
module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports;
2405
+
2406
+
/***/ }),
2407
+
2408
+
/***/ "../node_modules/@babel/runtime/helpers/regenerator.js":
2409
+
/*!*************************************************************!*\
2410
+
!*** ../node_modules/@babel/runtime/helpers/regenerator.js ***!
2411
+
\*************************************************************/
2412
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2413
+
2414
+
var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js");
2415
+
function _regenerator() {
2416
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
2417
+
var e,
2418
+
t,
2419
+
r = "function" == typeof Symbol ? Symbol : {},
2420
+
n = r.iterator || "@@iterator",
2421
+
o = r.toStringTag || "@@toStringTag";
2422
+
function i(r, n, o, i) {
2423
+
var c = n && n.prototype instanceof Generator ? n : Generator,
2424
+
u = Object.create(c.prototype);
2425
+
return regeneratorDefine(u, "_invoke", function (r, n, o) {
2426
+
var i,
2427
+
c,
2428
+
u,
2429
+
f = 0,
2430
+
p = o || [],
2431
+
y = !1,
2432
+
G = {
2433
+
p: 0,
2434
+
n: 0,
2435
+
v: e,
2436
+
a: d,
2437
+
f: d.bind(e, 4),
2438
+
d: function d(t, r) {
2439
+
return i = t, c = 0, u = e, G.n = r, a;
2440
+
}
2441
+
};
2442
+
function d(r, n) {
2443
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
2444
+
var o,
2445
+
i = p[t],
2446
+
d = G.p,
2447
+
l = i[2];
2448
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
2449
+
}
2450
+
if (o || r > 1) return a;
2451
+
throw y = !0, n;
2452
+
}
2453
+
return function (o, p, l) {
2454
+
if (f > 1) throw TypeError("Generator is already running");
2455
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
2456
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
2457
+
try {
2458
+
if (f = 2, i) {
2459
+
if (c || (o = "next"), t = i[o]) {
2460
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
2461
+
if (!t.done) return t;
2462
+
u = t.value, c < 2 && (c = 0);
2463
+
} else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
2464
+
i = e;
2465
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
2466
+
} catch (t) {
2467
+
i = e, c = 1, u = t;
2468
+
} finally {
2469
+
f = 1;
2470
+
}
2471
+
}
2472
+
return {
2473
+
value: t,
2474
+
done: y
2475
+
};
2476
+
};
2477
+
}(r, o, i), !0), u;
2478
+
}
2479
+
var a = {};
2480
+
function Generator() {}
2481
+
function GeneratorFunction() {}
2482
+
function GeneratorFunctionPrototype() {}
2483
+
t = Object.getPrototypeOf;
2484
+
var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function () {
2485
+
return this;
2486
+
}), t),
2487
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
2488
+
function f(e) {
2489
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
2490
+
}
2491
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine(u), regeneratorDefine(u, o, "Generator"), regeneratorDefine(u, n, function () {
2492
+
return this;
2493
+
}), regeneratorDefine(u, "toString", function () {
2494
+
return "[object Generator]";
2495
+
}), (module.exports = _regenerator = function _regenerator() {
2496
+
return {
2497
+
w: i,
2498
+
m: f
2499
+
};
2500
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports)();
2501
+
}
2502
+
module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
2503
+
2504
+
/***/ }),
2505
+
2506
+
/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js":
2507
+
/*!******************************************************************!*\
2508
+
!*** ../node_modules/@babel/runtime/helpers/regeneratorAsync.js ***!
2509
+
\******************************************************************/
2510
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2511
+
2512
+
var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js");
2513
+
function _regeneratorAsync(n, e, r, t, o) {
2514
+
var a = regeneratorAsyncGen(n, e, r, t, o);
2515
+
return a.next().then(function (n) {
2516
+
return n.done ? n.value : a.next();
2517
+
});
2518
+
}
2519
+
module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports;
2520
+
2521
+
/***/ }),
2522
+
2523
+
/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js":
2524
+
/*!*********************************************************************!*\
2525
+
!*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js ***!
2526
+
\*********************************************************************/
2527
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2528
+
2529
+
var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js");
2530
+
var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js");
2531
+
function _regeneratorAsyncGen(r, e, t, o, n) {
2532
+
return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise);
2533
+
}
2534
+
module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports;
2535
+
2536
+
/***/ }),
2537
+
2538
+
/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js":
2539
+
/*!**************************************************************************!*\
2540
+
!*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js ***!
2541
+
\**************************************************************************/
2542
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2543
+
2544
+
var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js");
2545
+
var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js");
2546
+
function AsyncIterator(t, e) {
2547
+
function n(r, o, i, f) {
2548
+
try {
2549
+
var c = t[r](o),
2550
+
u = c.value;
2551
+
return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) {
2552
+
n("next", t, i, f);
2553
+
}, function (t) {
2554
+
n("throw", t, i, f);
2555
+
}) : e.resolve(u).then(function (t) {
2556
+
c.value = t, i(c);
2557
+
}, function (t) {
2558
+
return n("throw", t, i, f);
2559
+
});
2560
+
} catch (t) {
2561
+
f(t);
2562
+
}
2563
+
}
2564
+
var r;
2565
+
this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () {
2566
+
return this;
2567
+
})), regeneratorDefine(this, "_invoke", function (t, o, i) {
2568
+
function f() {
2569
+
return new e(function (e, r) {
2570
+
n(t, i, e, r);
2571
+
});
2572
+
}
2573
+
return r = r ? r.then(f, f) : f();
2574
+
}, !0);
2575
+
}
2576
+
module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports;
2577
+
2578
+
/***/ }),
2579
+
2580
+
/***/ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js":
2581
+
/*!*******************************************************************!*\
2582
+
!*** ../node_modules/@babel/runtime/helpers/regeneratorDefine.js ***!
2583
+
\*******************************************************************/
2584
+
/***/ ((module) => {
2585
+
2586
+
function _regeneratorDefine(e, r, n, t) {
2587
+
var i = Object.defineProperty;
2588
+
try {
2589
+
i({}, "", {});
2590
+
} catch (e) {
2591
+
i = 0;
2592
+
}
2593
+
module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) {
2594
+
function o(r, n) {
2595
+
_regeneratorDefine(e, r, function (e) {
2596
+
return this._invoke(r, n, e);
2597
+
});
2598
+
}
2599
+
r ? i ? i(e, r, {
2600
+
value: n,
2601
+
enumerable: !t,
2602
+
configurable: !t,
2603
+
writable: !t
2604
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
2605
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t);
2606
+
}
2607
+
module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports;
2608
+
2609
+
/***/ }),
2610
+
2611
+
/***/ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js":
2612
+
/*!*****************************************************************!*\
2613
+
!*** ../node_modules/@babel/runtime/helpers/regeneratorKeys.js ***!
2614
+
\*****************************************************************/
2615
+
/***/ ((module) => {
2616
+
2617
+
function _regeneratorKeys(e) {
2618
+
var n = Object(e),
2619
+
r = [];
2620
+
for (var t in n) r.unshift(t);
2621
+
return function e() {
2622
+
for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e;
2623
+
return e.done = !0, e;
2624
+
};
2625
+
}
2626
+
module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports;
2627
+
2628
+
/***/ }),
2629
+
2630
+
/***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js":
2631
+
/*!********************************************************************!*\
2632
+
!*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
2633
+
\********************************************************************/
2634
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2635
+
2636
+
var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js");
2637
+
var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js");
2638
+
var regeneratorAsync = __webpack_require__(/*! ./regeneratorAsync.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js");
2639
+
var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js");
2640
+
var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js");
2641
+
var regeneratorKeys = __webpack_require__(/*! ./regeneratorKeys.js */ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js");
2642
+
var regeneratorValues = __webpack_require__(/*! ./regeneratorValues.js */ "../node_modules/@babel/runtime/helpers/regeneratorValues.js");
2643
+
function _regeneratorRuntime() {
2644
+
"use strict";
2645
+
2646
+
var r = regenerator(),
2647
+
e = r.m(_regeneratorRuntime),
2648
+
t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
2649
+
function n(r) {
2650
+
var e = "function" == typeof r && r.constructor;
2651
+
return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name));
2652
+
}
2653
+
var o = {
2654
+
"throw": 1,
2655
+
"return": 2,
2656
+
"break": 3,
2657
+
"continue": 3
2658
+
};
2659
+
function a(r) {
2660
+
var e, t;
2661
+
return function (n) {
2662
+
e || (e = {
2663
+
stop: function stop() {
2664
+
return t(n.a, 2);
2665
+
},
2666
+
"catch": function _catch() {
2667
+
return n.v;
2668
+
},
2669
+
abrupt: function abrupt(r, e) {
2670
+
return t(n.a, o[r], e);
2671
+
},
2672
+
delegateYield: function delegateYield(r, o, a) {
2673
+
return e.resultName = o, t(n.d, regeneratorValues(r), a);
2674
+
},
2675
+
finish: function finish(r) {
2676
+
return t(n.f, r);
2677
+
}
2678
+
}, t = function t(r, _t, o) {
2679
+
n.p = e.prev, n.n = e.next;
2680
+
try {
2681
+
return r(_t, o);
2682
+
} finally {
2683
+
e.next = n.n;
2684
+
}
2685
+
}), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n;
2686
+
try {
2687
+
return r.call(this, e);
2688
+
} finally {
2689
+
n.p = e.prev, n.n = e.next;
2690
+
}
2691
+
};
2692
+
}
2693
+
return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
2694
+
return {
2695
+
wrap: function wrap(e, t, n, o) {
2696
+
return r.w(a(e), t, n, o && o.reverse());
2697
+
},
2698
+
isGeneratorFunction: n,
2699
+
mark: r.m,
2700
+
awrap: function awrap(r, e) {
2701
+
return new OverloadYield(r, e);
2702
+
},
2703
+
AsyncIterator: regeneratorAsyncIterator,
2704
+
async: function async(r, e, t, o, u) {
2705
+
return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u);
2706
+
},
2707
+
keys: regeneratorKeys,
2708
+
values: regeneratorValues
2709
+
};
2710
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports)();
2711
+
}
2712
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
2713
+
2714
+
/***/ }),
2715
+
2716
+
/***/ "../node_modules/@babel/runtime/helpers/regeneratorValues.js":
2717
+
/*!*******************************************************************!*\
2718
+
!*** ../node_modules/@babel/runtime/helpers/regeneratorValues.js ***!
2719
+
\*******************************************************************/
2720
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2721
+
2722
+
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2723
+
function _regeneratorValues(e) {
2724
+
if (null != e) {
2725
+
var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
2726
+
r = 0;
2727
+
if (t) return t.call(e);
2728
+
if ("function" == typeof e.next) return e;
2729
+
if (!isNaN(e.length)) return {
2730
+
next: function next() {
2731
+
return e && r >= e.length && (e = void 0), {
2732
+
value: e && e[r++],
2733
+
done: !e
2734
+
};
2735
+
}
2736
+
};
2737
+
}
2738
+
throw new TypeError(_typeof(e) + " is not iterable");
2739
+
}
2740
+
module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports;
2741
+
2742
+
/***/ }),
2743
+
2744
+
/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js":
2745
+
/*!****************************************************************!*\
2746
+
!*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
2747
+
\****************************************************************/
2748
+
/***/ ((module) => {
2749
+
2750
+
function _setPrototypeOf(t, e) {
2751
+
return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
2752
+
return t.__proto__ = e, t;
2753
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
2754
+
}
2755
+
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2756
+
2757
+
/***/ }),
2758
+
2759
+
/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
2760
+
/*!***************************************************************!*\
2761
+
!*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
2762
+
\***************************************************************/
2763
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2764
+
2765
+
var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
2766
+
var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
2767
+
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
2768
+
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
2769
+
function _slicedToArray(r, e) {
2770
+
return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
2771
+
}
2772
+
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2773
+
2774
+
/***/ }),
2775
+
2776
+
/***/ "../node_modules/@babel/runtime/helpers/superPropBase.js":
2777
+
/*!***************************************************************!*\
2778
+
!*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***!
2779
+
\***************************************************************/
2780
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2781
+
2782
+
var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
2783
+
function _superPropBase(t, o) {
2784
+
for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t)););
2785
+
return t;
2786
+
}
2787
+
module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
2788
+
2789
+
/***/ }),
2790
+
2791
+
/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js":
2792
+
/*!*************************************************************!*\
2793
+
!*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***!
2794
+
\*************************************************************/
2795
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2796
+
2797
+
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2798
+
function toPrimitive(t, r) {
2799
+
if ("object" != _typeof(t) || !t) return t;
2800
+
var e = t[Symbol.toPrimitive];
2801
+
if (void 0 !== e) {
2802
+
var i = e.call(t, r || "default");
2803
+
if ("object" != _typeof(i)) return i;
2804
+
throw new TypeError("@@toPrimitive must return a primitive value.");
2805
+
}
2806
+
return ("string" === r ? String : Number)(t);
2807
+
}
2808
+
module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
2809
+
2810
+
/***/ }),
2811
+
2812
+
/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js":
2813
+
/*!***************************************************************!*\
2814
+
!*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
2815
+
\***************************************************************/
2816
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2817
+
2818
+
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2819
+
var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js");
2820
+
function toPropertyKey(t) {
2821
+
var i = toPrimitive(t, "string");
2822
+
return "symbol" == _typeof(i) ? i : i + "";
2823
+
}
2824
+
module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
2825
+
2826
+
/***/ }),
2827
+
2828
+
/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
2829
+
/*!********************************************************!*\
2830
+
!*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
2831
+
\********************************************************/
2832
+
/***/ ((module) => {
2833
+
2834
+
function _typeof(o) {
2835
+
"@babel/helpers - typeof";
2836
+
2837
+
return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
2838
+
return typeof o;
2839
+
} : function (o) {
2840
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
2841
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
2842
+
}
2843
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
2844
+
2845
+
/***/ }),
2846
+
2847
+
/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
2848
+
/*!****************************************************************************!*\
2849
+
!*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
2850
+
\****************************************************************************/
2851
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2852
+
2853
+
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
2854
+
function _unsupportedIterableToArray(r, a) {
2855
+
if (r) {
2856
+
if ("string" == typeof r) return arrayLikeToArray(r, a);
2857
+
var t = {}.toString.call(r).slice(8, -1);
2858
+
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;
2859
+
}
2860
+
}
2861
+
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2862
+
2863
+
/***/ }),
2864
+
2865
+
/***/ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js":
2866
+
/*!*****************************************************************!*\
2867
+
!*** ../node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
2868
+
\*****************************************************************/
2869
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2870
+
2871
+
var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
2872
+
var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2873
+
var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ "../node_modules/@babel/runtime/helpers/isNativeFunction.js");
2874
+
var construct = __webpack_require__(/*! ./construct.js */ "../node_modules/@babel/runtime/helpers/construct.js");
2875
+
function _wrapNativeSuper(t) {
2876
+
var r = "function" == typeof Map ? new Map() : void 0;
2877
+
return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) {
2878
+
if (null === t || !isNativeFunction(t)) return t;
2879
+
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
2880
+
if (void 0 !== r) {
2881
+
if (r.has(t)) return r.get(t);
2882
+
r.set(t, Wrapper);
2883
+
}
2884
+
function Wrapper() {
2885
+
return construct(t, arguments, getPrototypeOf(this).constructor);
2886
+
}
2887
+
return Wrapper.prototype = Object.create(t.prototype, {
2888
+
constructor: {
2889
+
value: Wrapper,
2890
+
enumerable: !1,
2891
+
writable: !0,
2892
+
configurable: !0
2893
+
}
2894
+
}), setPrototypeOf(Wrapper, t);
2895
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t);
2896
+
}
2897
+
module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
2898
+
2899
+
/***/ }),
2900
+
2901
+
/***/ "../node_modules/@babel/runtime/regenerator/index.js":
2902
+
/*!***********************************************************!*\
2903
+
!*** ../node_modules/@babel/runtime/regenerator/index.js ***!
2904
+
\***********************************************************/
2905
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2906
+
2907
+
// TODO(Babel 8): Remove this file.
2908
+
2909
+
var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();
2910
+
module.exports = runtime;
2911
+
2912
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
2913
+
try {
2914
+
regeneratorRuntime = runtime;
2915
+
} catch (accidentalStrictMode) {
2916
+
if (typeof globalThis === "object") {
2917
+
globalThis.regeneratorRuntime = runtime;
2918
+
} else {
2919
+
Function("r", "regeneratorRuntime = r")(runtime);
2920
+
}
2921
+
}
2922
+
2923
+
2924
+
/***/ }),
2925
+
2926
+
/***/ "@wordpress/i18n":
2927
+
/*!**************************!*\
2928
+
!*** external "wp.i18n" ***!
2929
+
\**************************/
2930
+
/***/ ((module) => {
2931
+
2932
+
"use strict";
2933
+
module.exports = wp.i18n;
2934
+
2935
+
/***/ })
2936
+
2937
+
/******/ });
2938
+
/************************************************************************/
2939
+
/******/ // The module cache
2940
+
/******/ var __webpack_module_cache__ = {};
2941
+
/******/
2942
+
/******/ // The require function
2943
+
/******/ function __webpack_require__(moduleId) {
2944
+
/******/ // Check if module is in cache
2945
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
2946
+
/******/ if (cachedModule !== undefined) {
2947
+
/******/ return cachedModule.exports;
2948
+
/******/ }
2949
+
/******/ // Create a new module (and put it into the cache)
2950
+
/******/ var module = __webpack_module_cache__[moduleId] = {
2951
+
/******/ // no module.id needed
2952
+
/******/ // no module.loaded needed
2953
+
/******/ exports: {}
2954
+
/******/ };
2955
+
/******/
2956
+
/******/ // Execute the module function
2957
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
2958
+
/******/
2959
+
/******/ // Return the exports of the module
2960
+
/******/ return module.exports;
2961
+
/******/ }
2962
+
/******/
2963
+
/************************************************************************/
2964
+
var __webpack_exports__ = {};
2965
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
2966
+
(() => {
2967
+
"use strict";
2968
+
/*!******************************************!*\
2969
+
!*** ../assets/dev/js/editor/modules.js ***!
2970
+
\******************************************/
2971
+
2972
+
2973
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2974
+
var _module = _interopRequireDefault(__webpack_require__(/*! ./utils/module */ "../assets/dev/js/editor/utils/module.js"));
2975
+
var _introduction = _interopRequireDefault(__webpack_require__(/*! ../utils/introduction */ "../assets/dev/js/utils/introduction.js"));
2976
+
var _controlsStack = _interopRequireDefault(__webpack_require__(/*! ./views/controls-stack */ "../assets/dev/js/editor/views/controls-stack.js"));
2977
+
var _baseSettings = _interopRequireDefault(__webpack_require__(/*! ./elements/models/base-settings */ "../assets/dev/js/editor/elements/models/base-settings.js"));
2978
+
var _container = _interopRequireDefault(__webpack_require__(/*! ./container/container */ "../assets/dev/js/editor/container/container.js"));
2979
+
elementorModules.editor = {
2980
+
elements: {
2981
+
models: {
2982
+
BaseSettings: _baseSettings.default
2983
+
}
2984
+
},
2985
+
utils: {
2986
+
Module: _module.default,
2987
+
Introduction: _introduction.default
2988
+
},
2989
+
views: {
2990
+
ControlsStack: _controlsStack.default
2991
+
},
2992
+
Container: _container.default
2993
+
};
2994
+
})();
2995
+
2996
+
/******/ })()
2997
+
;
2998
+
//# sourceMappingURL=editor-modules.js.map