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

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

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