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

e-react-promotions.js in Elementor Website Builder – more than just a page builder 3.26.0-dev5, at assets/js/e-react-promotions.js

3,120 lines 119.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*! elementor - v3.26.0 - 12-12-2024 */
2 /******/ (() => { // webpackBootstrap
3 /******/ var __webpack_modules__ = ({
4
5 /***/ "../assets/dev/js/editor/components/dynamic-tags/control-behavior.js":
6 /*!***************************************************************************!*\
7 !*** ../assets/dev/js/editor/components/dynamic-tags/control-behavior.js ***!
8 \***************************************************************************/
9 /***/ ((module, __unused_webpack_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 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
17 var TagPanelView = __webpack_require__(/*! elementor-dynamic-tags/tag-panel-view */ "../assets/dev/js/editor/components/dynamic-tags/tag-panel-view.js");
18 module.exports = Marionette.Behavior.extend({
19 tagView: null,
20 listenerAttached: false,
21 initialize: function initialize() {
22 if (!this.listenerAttached) {
23 this.listenTo(this.view.options.container.settings, 'change:external:__dynamic__', this.onAfterExternalChange);
24 this.listenerAttached = true;
25 }
26 },
27 shouldRenderTools: function shouldRenderTools() {
28 var hasDefault = this.getOption('dynamicSettings').default;
29 if (hasDefault) {
30 return false;
31 }
32 var isFeatureAvailableToUser = elementor.helpers.hasPro() && !elementor.helpers.hasProAndNotConnected(),
33 hasTags = this.getOption('tags').length > 0;
34 return !isFeatureAvailableToUser || hasTags;
35 },
36 renderTools: function renderTools() {
37 var _this = this;
38 if (!this.shouldRenderTools()) {
39 return;
40 }
41 var $dynamicSwitcher = jQuery(Marionette.Renderer.render('#tmpl-elementor-control-dynamic-switcher'));
42 $dynamicSwitcher.on('click', function (event) {
43 return _this.onDynamicSwitcherClick(event);
44 });
45 this.$el.find('.elementor-control-dynamic-switcher-wrapper').append($dynamicSwitcher);
46 this.ui.dynamicSwitcher = $dynamicSwitcher;
47 if ('color' === this.view.model.get('type')) {
48 if (this.view.colorPicker) {
49 this.moveDynamicSwitcherToColorPicker();
50 } else {
51 setTimeout(function () {
52 return _this.moveDynamicSwitcherToColorPicker();
53 });
54 }
55 }
56
57 // Add a Tipsy Tooltip to the Dynamic Switcher
58 this.ui.dynamicSwitcher.tipsy({
59 title: function title() {
60 return this.getAttribute('data-tooltip');
61 },
62 gravity: 's'
63 });
64 },
65 moveDynamicSwitcherToColorPicker: function moveDynamicSwitcherToColorPicker() {
66 var $colorPickerToolsContainer = this.view.colorPicker.$pickerToolsContainer;
67 this.ui.dynamicSwitcher.removeClass('elementor-control-unit-1').addClass('e-control-tool');
68 var $eyedropper = $colorPickerToolsContainer.find('.elementor-control-element-color-picker');
69 if ($eyedropper.length) {
70 this.ui.dynamicSwitcher.insertBefore($eyedropper);
71 } else {
72 $colorPickerToolsContainer.append(this.ui.dynamicSwitcher);
73 }
74 },
75 toggleDynamicClass: function toggleDynamicClass() {
76 this.$el.toggleClass('elementor-control-dynamic-value', this.isDynamicMode());
77 },
78 isDynamicMode: function isDynamicMode() {
79 var dynamicSettings = this.view.container.settings.get('__dynamic__');
80 return !!(dynamicSettings && dynamicSettings[this.view.model.get('name')]);
81 },
82 createTagsList: function createTagsList() {
83 var tags = _.groupBy(this.getOption('tags'), 'group'),
84 groups = elementor.dynamicTags.getConfig('groups'),
85 $tagsList = this.ui.tagsList = jQuery('<div>', {
86 class: 'elementor-tags-list'
87 }),
88 $tagsListInner = jQuery('<div>', {
89 class: 'elementor-tags-list__inner'
90 });
91 $tagsList.append($tagsListInner);
92 jQuery.each(groups, function (groupName) {
93 var groupTags = tags[groupName];
94 if (!groupTags) {
95 return;
96 }
97 var group = this,
98 $groupTitle = jQuery('<div>', {
99 class: 'elementor-tags-list__group-title'
100 }).text(group.title);
101 $tagsListInner.append($groupTitle);
102 groupTags.forEach(function (tag) {
103 var $tag = jQuery('<div>', {
104 class: 'elementor-tags-list__item'
105 });
106 $tag.text(tag.title).attr('data-tag-name', tag.name);
107 $tagsListInner.append($tag);
108 });
109 });
110
111 // Create and inject pro dynamic teaser template if Pro is not installed
112 if (!elementor.helpers.hasPro() && Object.keys(tags).length) {
113 var proTeaser = Marionette.Renderer.render('#tmpl-elementor-dynamic-tags-promo', {
114 promotionUrl: elementor.config.dynamicPromotionURL.replace('%s', this.view.model.get('name'))
115 });
116 $tagsListInner.append(proTeaser);
117 }
118 $tagsListInner.on('click', '.elementor-tags-list__item', this.onTagsListItemClick.bind(this));
119 elementorCommon.elements.$body.append($tagsList);
120 },
121 getTagsList: function getTagsList() {
122 if (!this.ui.tagsList) {
123 this.createTagsList();
124 }
125 return this.ui.tagsList;
126 },
127 toggleTagsList: function toggleTagsList() {
128 var $tagsList = this.getTagsList();
129 if ($tagsList.is(':visible')) {
130 $tagsList.hide();
131 return;
132 }
133 var direction = elementorCommon.config.isRTL ? 'left' : 'right';
134 $tagsList.show().position({
135 my: "".concat(direction, " top"),
136 at: "".concat(direction, " bottom+5"),
137 of: this.ui.dynamicSwitcher
138 });
139 },
140 setTagView: function setTagView(id, name, settings) {
141 if (this.tagView) {
142 this.tagView.destroy();
143 }
144 var tagView = this.tagView = new TagPanelView({
145 id: id,
146 name: name,
147 settings: settings,
148 controlName: this.view.model.get('name'),
149 dynamicSettings: this.getOption('dynamicSettings')
150 }),
151 elementContainer = this.view.options.container,
152 tagViewLabel = elementContainer.controls[tagView.options.controlName].label;
153 tagView.options.container = new elementorModules.editor.Container({
154 type: 'dynamic',
155 id: id,
156 model: tagView.model,
157 settings: tagView.model,
158 view: tagView,
159 parent: elementContainer,
160 label: elementContainer.label + ' ' + tagViewLabel,
161 controls: tagView.model.options.controls,
162 renderer: elementContainer
163 });
164 tagView.render();
165 this.$el.find('.elementor-control-tag-area').after(tagView.el);
166 this.listenTo(tagView, 'remove', this.onTagViewRemove.bind(this));
167 },
168 setDefaultTagView: function setDefaultTagView() {
169 var tagData = elementor.dynamicTags.tagTextToTagData(this.getDynamicValue());
170 this.setTagView(tagData.id, tagData.name, tagData.settings);
171 },
172 tagViewToTagText: function tagViewToTagText() {
173 var tagView = this.tagView;
174 return elementor.dynamicTags.tagDataToTagText(tagView.getOption('id'), tagView.getOption('name'), tagView.model);
175 },
176 getDynamicValue: function getDynamicValue() {
177 return this.view.container.dynamic.get(this.view.model.get('name'));
178 },
179 destroyTagView: function destroyTagView() {
180 if (this.tagView) {
181 this.tagView.destroy();
182 this.tagView = null;
183 }
184 },
185 showPromotion: function showPromotion() {
186 var hasProAndNotConnected = elementor.helpers.hasProAndNotConnected(),
187 dialogOptions = {
188 title: __('Dynamic Content', 'elementor'),
189 content: __('Create more personalized and dynamic sites by populating data from various sources with dozens of dynamic tags to choose from.', 'elementor'),
190 targetElement: this.ui.dynamicSwitcher,
191 position: {
192 blockStart: '-10'
193 },
194 actionButton: {
195 url: hasProAndNotConnected ? elementorProEditorConfig.urls.connect : elementor.config.dynamicPromotionURL.replace('%s', this.view.model.get('name')),
196 text: hasProAndNotConnected ? __('Connect & Activate', 'elementor') : __('Upgrade', 'elementor')
197 }
198 };
199 elementor.promotion.showDialog(dialogOptions);
200 },
201 onRender: function onRender() {
202 this.$el.addClass('elementor-control-dynamic');
203 this.renderTools();
204 this.toggleDynamicClass();
205 if (this.isDynamicMode()) {
206 this.setDefaultTagView();
207 }
208 },
209 onDynamicSwitcherClick: function onDynamicSwitcherClick(event) {
210 event.stopPropagation();
211 if (this.getOption('tags').length) {
212 this.toggleTagsList();
213 } else {
214 this.showPromotion();
215 }
216 },
217 onTagsListItemClick: function onTagsListItemClick(event) {
218 var $tag = jQuery(event.currentTarget);
219 this.setTagView(elementorCommon.helpers.getUniqueId(), $tag.data('tagName'), {});
220
221 // If an element has an active global value, disable it before applying the dynamic value.
222 if (this.view.getGlobalKey()) {
223 this.view.triggerMethod('unset:global:value');
224 }
225 if (this.isDynamicMode()) {
226 $e.run('document/dynamic/settings', {
227 container: this.view.options.container,
228 settings: (0, _defineProperty2.default)({}, this.view.model.get('name'), this.tagViewToTagText())
229 });
230 } else {
231 $e.run('document/dynamic/enable', {
232 container: this.view.options.container,
233 settings: (0, _defineProperty2.default)({}, this.view.model.get('name'), this.tagViewToTagText())
234 });
235 }
236 this.toggleDynamicClass();
237 this.toggleTagsList();
238 if (this.tagView.getTagConfig().settings_required) {
239 this.tagView.showSettingsPopup();
240 }
241 },
242 onTagViewRemove: function onTagViewRemove() {
243 $e.run('document/dynamic/disable', {
244 container: this.view.options.container,
245 settings: (0, _defineProperty2.default)({}, this.view.model.get('name'), this.tagViewToTagText())
246 });
247 this.toggleDynamicClass();
248 },
249 onAfterExternalChange: function onAfterExternalChange() {
250 this.destroyTagView();
251 if (this.isDynamicMode()) {
252 this.setDefaultTagView();
253 }
254 this.toggleDynamicClass();
255 },
256 onDestroy: function onDestroy() {
257 this.destroyTagView();
258 if (this.ui.tagsList) {
259 this.ui.tagsList.remove();
260 }
261 }
262 });
263
264 /***/ }),
265
266 /***/ "../assets/dev/js/editor/components/dynamic-tags/tag-controls-stack-empty.js":
267 /*!***********************************************************************************!*\
268 !*** ../assets/dev/js/editor/components/dynamic-tags/tag-controls-stack-empty.js ***!
269 \***********************************************************************************/
270 /***/ ((module) => {
271
272 "use strict";
273
274
275 module.exports = Marionette.ItemView.extend({
276 className: 'elementor-tag-controls-stack-empty',
277 template: '#tmpl-elementor-tag-controls-stack-empty'
278 });
279
280 /***/ }),
281
282 /***/ "../assets/dev/js/editor/components/dynamic-tags/tag-controls-stack.js":
283 /*!*****************************************************************************!*\
284 !*** ../assets/dev/js/editor/components/dynamic-tags/tag-controls-stack.js ***!
285 \*****************************************************************************/
286 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
287
288 "use strict";
289
290
291 var EmptyView = __webpack_require__(/*! elementor-dynamic-tags/tag-controls-stack-empty */ "../assets/dev/js/editor/components/dynamic-tags/tag-controls-stack-empty.js");
292 module.exports = elementorModules.editor.views.ControlsStack.extend({
293 activeTab: 'content',
294 template: _.noop,
295 emptyView: EmptyView,
296 isEmpty: function isEmpty() {
297 // Ignore the section control
298 return this.collection.length < 2;
299 },
300 childViewOptions: function childViewOptions() {
301 return {
302 container: this.options.container
303 };
304 },
305 getNamespaceArray: function getNamespaceArray() {
306 var currentPageView = elementor.getPanelView().getCurrentPageView(),
307 eventNamespace = currentPageView.getNamespaceArray();
308 eventNamespace.push(currentPageView.activeSection);
309 eventNamespace.push(this.getOption('controlName'));
310 eventNamespace.push(this.getOption('name'));
311 return eventNamespace;
312 },
313 onRenderTemplate: function onRenderTemplate() {
314 this.activateFirstSection();
315 }
316 });
317
318 /***/ }),
319
320 /***/ "../assets/dev/js/editor/components/dynamic-tags/tag-panel-view.js":
321 /*!*************************************************************************!*\
322 !*** ../assets/dev/js/editor/components/dynamic-tags/tag-panel-view.js ***!
323 \*************************************************************************/
324 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
325
326 "use strict";
327
328
329 var TagControlsStack = __webpack_require__(/*! elementor-dynamic-tags/tag-controls-stack */ "../assets/dev/js/editor/components/dynamic-tags/tag-controls-stack.js");
330 module.exports = Marionette.ItemView.extend({
331 className: 'elementor-dynamic-cover e-input-style',
332 tagControlsStack: null,
333 templateHelpers: function templateHelpers() {
334 var helpers = {};
335 if (this.model) {
336 helpers.controls = this.model.options.controls;
337 }
338 return helpers;
339 },
340 ui: {
341 remove: '.elementor-dynamic-cover__remove'
342 },
343 events: function events() {
344 var events = {
345 'click @ui.remove': 'onRemoveClick'
346 };
347 if (this.hasSettings()) {
348 events.click = 'onClick';
349 }
350 return events;
351 },
352 getTemplate: function getTemplate() {
353 var config = this.getTagConfig(),
354 templateFunction = Marionette.TemplateCache.get('#tmpl-elementor-control-dynamic-cover'),
355 renderedTemplate = Marionette.Renderer.render(templateFunction, {
356 hasSettings: this.hasSettings(),
357 isRemovable: !this.getOption('dynamicSettings').default,
358 title: config.title,
359 content: config.panel_template
360 });
361 return Marionette.TemplateCache.prototype.compileTemplate(renderedTemplate.trim());
362 },
363 getTagConfig: function getTagConfig() {
364 return elementor.dynamicTags.getConfig('tags.' + this.getOption('name'));
365 },
366 initSettingsPopup: function initSettingsPopup() {
367 var settingsPopupOptions = {
368 className: 'elementor-tag-settings-popup',
369 position: {
370 my: 'left top+5',
371 at: 'left bottom',
372 of: this.$el,
373 autoRefresh: true
374 },
375 hide: {
376 ignore: '.select2-container'
377 }
378 };
379 var settingsPopup = elementorCommon.dialogsManager.createWidget('buttons', settingsPopupOptions);
380 this.getSettingsPopup = function () {
381 return settingsPopup;
382 };
383 },
384 hasSettings: function hasSettings() {
385 return !!Object.values(this.getTagConfig().controls).length;
386 },
387 showSettingsPopup: function showSettingsPopup() {
388 if (!this.tagControlsStack) {
389 this.initTagControlsStack();
390 }
391 var settingsPopup = this.getSettingsPopup();
392 if (settingsPopup.isVisible()) {
393 return;
394 }
395 settingsPopup.show();
396 },
397 initTagControlsStack: function initTagControlsStack() {
398 this.tagControlsStack = new TagControlsStack({
399 model: this.model,
400 controls: this.model.controls,
401 name: this.options.name,
402 controlName: this.options.controlName,
403 container: this.options.container,
404 el: this.getSettingsPopup().getElements('message')[0]
405 });
406 this.tagControlsStack.render();
407 },
408 initModel: function initModel() {
409 this.model = new elementorModules.editor.elements.models.BaseSettings(this.getOption('settings'), {
410 controls: this.getTagConfig().controls
411 });
412 },
413 initialize: function initialize() {
414 // The `model` should always be available.
415 this.initModel();
416 if (!this.hasSettings()) {
417 return;
418 }
419 this.initSettingsPopup();
420 this.listenTo(this.model, 'change', this.render);
421 },
422 onClick: function onClick() {
423 this.showSettingsPopup();
424 },
425 onRemoveClick: function onRemoveClick(event) {
426 event.stopPropagation();
427 this.destroy();
428 this.trigger('remove');
429 },
430 onDestroy: function onDestroy() {
431 if (this.hasSettings()) {
432 this.getSettingsPopup().destroy();
433 }
434 if (this.tagControlsStack) {
435 this.tagControlsStack.destroy();
436 }
437 }
438 });
439
440 /***/ }),
441
442 /***/ "../assets/dev/js/editor/components/validator/base.js":
443 /*!************************************************************!*\
444 !*** ../assets/dev/js/editor/components/validator/base.js ***!
445 \************************************************************/
446 /***/ ((module) => {
447
448 "use strict";
449
450
451 module.exports = elementorModules.Module.extend({
452 errors: [],
453 __construct: function __construct(settings) {
454 var customValidationMethod = settings.customValidationMethod;
455 if (customValidationMethod) {
456 this.validationMethod = customValidationMethod;
457 }
458 },
459 getDefaultSettings: function getDefaultSettings() {
460 return {
461 validationTerms: {}
462 };
463 },
464 isValid: function isValid() {
465 var validationErrors = this.validationMethod.apply(this, arguments);
466 if (validationErrors.length) {
467 this.errors = validationErrors;
468 return false;
469 }
470 return true;
471 },
472 validationMethod: function validationMethod(newValue) {
473 var validationTerms = this.getSettings('validationTerms'),
474 errors = [];
475 if (validationTerms.required) {
476 if (!('' + newValue).length) {
477 errors.push('Required value is empty');
478 }
479 }
480 return errors;
481 }
482 });
483
484 /***/ }),
485
486 /***/ "../assets/dev/js/editor/components/validator/breakpoint.js":
487 /*!******************************************************************!*\
488 !*** ../assets/dev/js/editor/components/validator/breakpoint.js ***!
489 \******************************************************************/
490 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
491
492 "use strict";
493
494
495 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
496 Object.defineProperty(exports, "__esModule", ({
497 value: true
498 }));
499 exports["default"] = void 0;
500 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
501 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
502 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
503 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
504 var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
505 function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
506 function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
507 var NumberValidator = __webpack_require__(/*! elementor-validator/number */ "../assets/dev/js/editor/components/validator/number.js");
508 var BreakpointValidator = exports["default"] = /*#__PURE__*/function (_NumberValidator) {
509 function BreakpointValidator() {
510 (0, _classCallCheck2.default)(this, BreakpointValidator);
511 return _callSuper(this, BreakpointValidator, arguments);
512 }
513 (0, _inherits2.default)(BreakpointValidator, _NumberValidator);
514 return (0, _createClass2.default)(BreakpointValidator, [{
515 key: "getDefaultSettings",
516 value: function getDefaultSettings() {
517 return {
518 validationTerms: {
519 // Max width we allow in general
520 max: 5120
521 }
522 };
523 }
524
525 /**
526 * Get Panel Active Breakpoints
527 *
528 * Since the active kit used in the Site Settings panel could be a draft, we need to use the panel's active
529 * breakpoints settings and not the elementorFrontend.config values (which come from the DB).
530 *
531 * @return {*} Object
532 */
533 }, {
534 key: "getPanelActiveBreakpoints",
535 value: function getPanelActiveBreakpoints() {
536 var panelBreakpoints = elementor.documents.currentDocument.config.settings.settings.active_breakpoints.map(function (breakpointName) {
537 return breakpointName.replace('viewport_', '');
538 }),
539 panelActiveBreakpoints = {};
540 panelBreakpoints.forEach(function (breakpointName) {
541 panelActiveBreakpoints[breakpointName] = elementorFrontend.config.responsive.breakpoints[breakpointName];
542 });
543 return panelActiveBreakpoints;
544 }
545 }, {
546 key: "initBreakpointProperties",
547 value: function initBreakpointProperties() {
548 var _activeBreakpoints$br, _activeBreakpoints$br2;
549 var validationTerms = this.getSettings('validationTerms'),
550 activeBreakpoints = this.getPanelActiveBreakpoints(),
551 breakpointKeys = Object.keys(activeBreakpoints);
552 this.breakpointIndex = breakpointKeys.indexOf(validationTerms.breakpointName);
553 this.topBreakpoint = (_activeBreakpoints$br = activeBreakpoints[breakpointKeys[this.breakpointIndex + 1]]) === null || _activeBreakpoints$br === void 0 ? void 0 : _activeBreakpoints$br.value;
554 this.bottomBreakpoint = (_activeBreakpoints$br2 = activeBreakpoints[breakpointKeys[this.breakpointIndex - 1]]) === null || _activeBreakpoints$br2 === void 0 ? void 0 : _activeBreakpoints$br2.value;
555 }
556 }, {
557 key: "validationMethod",
558 value: function validationMethod(newValue) {
559 var validationTerms = this.getSettings('validationTerms'),
560 errors = NumberValidator.prototype.validationMethod.call(this, newValue);
561
562 // Validate both numeric and empty values, since breakpoints utilize default values when empty.
563 if (_.isFinite(newValue) || '' === newValue) {
564 if (!this.validateMinMaxForBreakpoint(newValue, validationTerms)) {
565 errors.push('Value is not between the breakpoints above or under the edited breakpoint');
566 }
567 }
568 return errors;
569 }
570 }, {
571 key: "validateMinMaxForBreakpoint",
572 value: function validateMinMaxForBreakpoint(newValue, validationTerms) {
573 var breakpointDefaultValue = elementorFrontend.config.responsive.breakpoints[validationTerms.breakpointName].default_value;
574 var isValid = true;
575 this.initBreakpointProperties();
576
577 // Since the following comparison is <=, allow usage of the 320px value for the mobile breakpoint.
578 if ('mobile' === validationTerms.breakpointName && 320 === this.bottomBreakpoint) {
579 this.bottomBreakpoint -= 1;
580 }
581
582 // If there is a breakpoint below the currently edited breakpoint
583 if (this.bottomBreakpoint) {
584 // Check that the new value is not under the bottom breakpoint's value.
585 if ('' !== newValue && newValue <= this.bottomBreakpoint) {
586 isValid = false;
587 }
588
589 // If the new value is empty, check that the default breakpoint value is not below the bottom breakpoint.
590 if ('' === newValue && breakpointDefaultValue <= this.bottomBreakpoint) {
591 isValid = false;
592 }
593 }
594
595 // If there is a breakpoint above the currently edited breakpoint.
596 if (this.topBreakpoint) {
597 // Check that the value is not above the top breakpoint's value.
598 if ('' !== newValue && newValue >= this.topBreakpoint) {
599 isValid = false;
600 }
601
602 // If the new value is empty, check that the default breakpoint value is not above the top breakpoint.
603 if ('' === newValue && breakpointDefaultValue >= this.topBreakpoint) {
604 isValid = false;
605 }
606 }
607 return isValid;
608 }
609 }]);
610 }(NumberValidator);
611
612 /***/ }),
613
614 /***/ "../assets/dev/js/editor/components/validator/number.js":
615 /*!**************************************************************!*\
616 !*** ../assets/dev/js/editor/components/validator/number.js ***!
617 \**************************************************************/
618 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
619
620 "use strict";
621
622
623 var Validator = __webpack_require__(/*! elementor-validator/base */ "../assets/dev/js/editor/components/validator/base.js");
624 module.exports = Validator.extend({
625 validationMethod: function validationMethod(newValue) {
626 var validationTerms = this.getSettings('validationTerms'),
627 errors = [];
628 if (_.isFinite(newValue)) {
629 if (undefined !== validationTerms.min && newValue < validationTerms.min) {
630 errors.push('Value is less than minimum');
631 }
632 if (undefined !== validationTerms.max && newValue > validationTerms.max) {
633 errors.push('Value is greater than maximum');
634 }
635 }
636 return errors;
637 }
638 });
639
640 /***/ }),
641
642 /***/ "../assets/dev/js/editor/controls/base-data.js":
643 /*!*****************************************************!*\
644 !*** ../assets/dev/js/editor/controls/base-data.js ***!
645 \*****************************************************/
646 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
647
648 "use strict";
649
650
651 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
652 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
653 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
654 var _breakpoint = _interopRequireDefault(__webpack_require__(/*! elementor-validator/breakpoint */ "../assets/dev/js/editor/components/validator/breakpoint.js"));
655 function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
656 function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
657 function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
658 var ControlBaseView = __webpack_require__(/*! elementor-controls/base */ "../assets/dev/js/editor/controls/base.js"),
659 TagsBehavior = __webpack_require__(/*! elementor-dynamic-tags/control-behavior */ "../assets/dev/js/editor/components/dynamic-tags/control-behavior.js"),
660 Validator = __webpack_require__(/*! elementor-validator/base */ "../assets/dev/js/editor/components/validator/base.js"),
661 NumberValidator = __webpack_require__(/*! elementor-validator/number */ "../assets/dev/js/editor/components/validator/number.js"),
662 ControlBaseDataView;
663 ControlBaseDataView = ControlBaseView.extend({
664 validatorTypes: {
665 Base: Validator,
666 Number: NumberValidator,
667 Breakpoint: _breakpoint.default
668 },
669 ui: function ui() {
670 var ui = ControlBaseView.prototype.ui.apply(this, arguments);
671 _.extend(ui, {
672 input: 'input[data-setting][type!="checkbox"][type!="radio"]',
673 checkbox: 'input[data-setting][type="checkbox"]',
674 radio: 'input[data-setting][type="radio"]',
675 select: 'select[data-setting]',
676 textarea: 'textarea[data-setting]',
677 responsiveSwitchersSibling: "".concat(ui.controlTitle, "[data-e-responsive-switcher-sibling!=\"false\"]"),
678 responsiveSwitchers: '.elementor-responsive-switcher',
679 contentEditable: '[contenteditable="true"]'
680 });
681 return ui;
682 },
683 templateHelpers: function templateHelpers() {
684 var controlData = ControlBaseView.prototype.templateHelpers.apply(this, arguments);
685 controlData.data.controlValue = this.getControlValue();
686 return controlData;
687 },
688 events: function events() {
689 return {
690 'input @ui.input': 'onBaseInputTextChange',
691 'change @ui.checkbox': 'onBaseInputChange',
692 'change @ui.radio': 'onBaseInputChange',
693 'input @ui.textarea': 'onBaseInputTextChange',
694 'change @ui.select': 'onBaseInputChange',
695 'input @ui.contentEditable': 'onBaseInputTextChange',
696 'click @ui.responsiveSwitchers': 'onResponsiveSwitchersClick'
697 };
698 },
699 behaviors: function behaviors() {
700 var behaviors = ControlBaseView.prototype.behaviors.apply(this, arguments),
701 dynamicSettings = this.options.model.get('dynamic');
702 if (dynamicSettings && dynamicSettings.active) {
703 var tags = _.filter(elementor.dynamicTags.getConfig('tags'), function (tag) {
704 return tag.editable && _.intersection(tag.categories, dynamicSettings.categories).length;
705 });
706 if (tags.length || elementor.config.user.is_administrator) {
707 behaviors.tags = {
708 behaviorClass: TagsBehavior,
709 tags: tags,
710 dynamicSettings: dynamicSettings
711 };
712 }
713 }
714 return behaviors;
715 },
716 initialize: function initialize() {
717 ControlBaseView.prototype.initialize.apply(this, arguments);
718 this.registerValidators();
719 if (this.model.get('responsive')) {
720 this.setPlaceholderFromParent();
721 }
722 if (undefined === this.model.get('inherit_placeholders')) {
723 this.model.set('inherit_placeholders', true);
724 }
725
726 // TODO: this.elementSettingsModel is deprecated since 2.8.0.
727 var settings = this.container ? this.container.settings : this.elementSettingsModel;
728 this.listenTo(settings, 'change:external:' + this.model.get('name'), this.onAfterExternalChange);
729 },
730 getControlValue: function getControlValue() {
731 return this.container.settings.get(this.model.get('name'));
732 },
733 getGlobalKey: function getGlobalKey() {
734 return this.container.globals.get(this.model.get('name'));
735 },
736 getGlobalValue: function getGlobalValue() {
737 return this.globalValue;
738 },
739 getGlobalDefault: function getGlobalDefault() {
740 var controlGlobalArgs = this.model.get('global');
741 if (controlGlobalArgs !== null && controlGlobalArgs !== void 0 && controlGlobalArgs.default) {
742 // If the control is a color/typography control and default colors/typography are disabled, don't return the global value.
743 if (!elementor.config.globals.defaults_enabled[this.getGlobalMeta().controlType]) {
744 return '';
745 }
746 var _$e$data$commandExtra = $e.data.commandExtractArgs(controlGlobalArgs.default),
747 command = _$e$data$commandExtra.command,
748 args = _$e$data$commandExtra.args,
749 result = $e.data.getCache($e.components.get('globals'), command, args.query);
750 return result === null || result === void 0 ? void 0 : result.value;
751 }
752
753 // No global default.
754 return '';
755 },
756 getCurrentValue: function getCurrentValue() {
757 if (this.getGlobalKey() && !this.globalValue) {
758 return '';
759 }
760 if (this.globalValue) {
761 return this.globalValue;
762 }
763 var controlValue = this.getControlValue();
764 if (controlValue) {
765 return controlValue;
766 }
767 return this.getGlobalDefault();
768 },
769 isGlobalActive: function isGlobalActive() {
770 var _this$options$model$g;
771 return (_this$options$model$g = this.options.model.get('global')) === null || _this$options$model$g === void 0 ? void 0 : _this$options$model$g.active;
772 },
773 setValue: function setValue(value) {
774 this.setSettingsModel(value);
775 },
776 setSettingsModel: function setSettingsModel(value) {
777 var key = this.model.get('name');
778 $e.run('document/elements/settings', {
779 container: this.options.container,
780 settings: (0, _defineProperty2.default)({}, key, value)
781 });
782 this.triggerMethod('settings:change');
783 },
784 applySavedValue: function applySavedValue() {
785 this.setInputValue('[data-setting="' + this.model.get('name') + '"]', this.getControlValue());
786 },
787 getEditSettings: function getEditSettings(setting) {
788 var settings = this.getOption('elementEditSettings').toJSON();
789 if (setting) {
790 return settings[setting];
791 }
792 return settings;
793 },
794 setEditSetting: function setEditSetting(settingKey, settingValue) {
795 var settings = this.getOption('elementEditSettings') || this.getOption('container').settings;
796 settings.set(settingKey, settingValue);
797 },
798 /**
799 * Get the placeholder for the current control.
800 *
801 * @return {*} placeholder
802 */
803 getControlPlaceholder: function getControlPlaceholder() {
804 var placeholder = this.model.get('placeholder');
805 if (this.model.get('responsive') && this.model.get('inherit_placeholders')) {
806 placeholder = placeholder || this.container.placeholders[this.model.get('name')];
807 }
808 return placeholder;
809 },
810 /**
811 * Get the responsive parent view if exists.
812 *
813 * @return {ControlBaseDataView|undefined} responsive parent view if exists
814 */
815 getResponsiveParentView: function getResponsiveParentView() {
816 var parent = this.model.get('parent');
817 try {
818 return parent && this.container.panel.getControlView(parent);
819 // eslint-disable-next-line no-empty
820 } catch (e) {}
821 },
822 /**
823 * Get the responsive children views if exists.
824 *
825 * @return {ControlBaseDataView|null} responsive children views if exists
826 */
827 getResponsiveChildrenViews: function getResponsiveChildrenViews() {
828 var children = this.model.get('inheritors'),
829 views = [];
830 try {
831 var _iterator = _createForOfIteratorHelper(children),
832 _step;
833 try {
834 for (_iterator.s(); !(_step = _iterator.n()).done;) {
835 var child = _step.value;
836 views.push(this.container.panel.getControlView(child));
837 }
838 // eslint-disable-next-line no-empty
839 } catch (err) {
840 _iterator.e(err);
841 } finally {
842 _iterator.f();
843 }
844 } catch (e) {}
845 return views;
846 },
847 /**
848 * Get prepared placeholder from the responsive parent, and put it into current
849 * control model as placeholder.
850 */
851 setPlaceholderFromParent: function setPlaceholderFromParent() {
852 var parent = this.getResponsiveParentView();
853 if (parent) {
854 this.container.placeholders[this.model.get('name')] = parent.preparePlaceholderForChildren();
855 }
856 },
857 /**
858 * Returns the value of the current control if exists, or the parent value if not,
859 * so responsive children can set it as their placeholder. When there are multiple
860 * inputs, the inputs which are empty on this control will inherit their values
861 * from the responsive parent.
862 * For example, if on desktop the padding of all edges is 10, and on tablet only
863 * padding right and left is set to 15, the mobile control placeholder will
864 * eventually be: { top: 10, right: 15, left: 15, bottom: 10 }, because of the
865 * inheritance of multiple values.
866 *
867 * @return {*} value of the current control if exists, or the parent value if not
868 */
869 preparePlaceholderForChildren: function preparePlaceholderForChildren() {
870 var _this$getResponsivePa;
871 var cleanValue = this.getCleanControlValue(),
872 parentValue = (_this$getResponsivePa = this.getResponsiveParentView()) === null || _this$getResponsivePa === void 0 ? void 0 : _this$getResponsivePa.preparePlaceholderForChildren();
873 if (cleanValue instanceof Object) {
874 return Object.assign({}, parentValue, cleanValue);
875 }
876 return cleanValue || parentValue;
877 },
878 /**
879 * Start the re-rendering recursive chain from the responsive child of this
880 * control. It's useful when the current control value is changed and we want
881 * to update all responsive children. In this case, the re-rendering is supposed
882 * to be applied only from the responsive child of this control and on.
883 */
884 propagatePlaceholder: function propagatePlaceholder() {
885 var children = this.getResponsiveChildrenViews();
886 var _iterator2 = _createForOfIteratorHelper(children),
887 _step2;
888 try {
889 for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
890 var child = _step2.value;
891 child.renderWithChildren();
892 }
893 } catch (err) {
894 _iterator2.e(err);
895 } finally {
896 _iterator2.f();
897 }
898 },
899 /**
900 * Re-render current control and trigger this method on the responsive child.
901 * The purpose of those actions is to recursively re-render all responsive
902 * children.
903 */
904 renderWithChildren: function renderWithChildren() {
905 this.render();
906 this.propagatePlaceholder();
907 },
908 /**
909 * Get control value without empty properties, and without default values.
910 *
911 * @return {{}} control value without empty properties, and without default values
912 */
913 getCleanControlValue: function getCleanControlValue() {
914 var value = this.getControlValue();
915 return value && value !== this.model.get('default') ? value : undefined;
916 },
917 onAfterChange: function onAfterChange(control) {
918 if (Object.keys(control.changed).includes(this.model.get('name'))) {
919 this.propagatePlaceholder();
920 }
921 ControlBaseView.prototype.onAfterChange.apply(this, arguments);
922 },
923 getInputValue: function getInputValue(input) {
924 var $input = this.$(input);
925 if ($input.is('[contenteditable="true"]')) {
926 return $input.html();
927 }
928 var inputValue = $input.val(),
929 inputType = $input.attr('type');
930 if (-1 !== ['radio', 'checkbox'].indexOf(inputType)) {
931 return $input.prop('checked') ? inputValue : '';
932 }
933 if ('number' === inputType && _.isFinite(inputValue)) {
934 return +inputValue;
935 }
936
937 // Temp fix for jQuery (< 3.0) that return null instead of empty array
938 if ('SELECT' === input.tagName && $input.prop('multiple') && null === inputValue) {
939 inputValue = [];
940 }
941 return inputValue;
942 },
943 setInputValue: function setInputValue(input, value) {
944 var $input = this.$(input),
945 inputType = $input.attr('type');
946 if ('checkbox' === inputType) {
947 $input.prop('checked', !!value);
948 } else if ('radio' === inputType) {
949 $input.filter('[value="' + value + '"]').prop('checked', true);
950 } else {
951 $input.val(value);
952 }
953 },
954 addValidator: function addValidator(validator) {
955 this.validators.push(validator);
956 },
957 registerValidators: function registerValidators() {
958 var _this = this;
959 this.validators = [];
960 var validationTerms = {};
961 if (this.model.get('required')) {
962 validationTerms.required = true;
963 }
964 if (!jQuery.isEmptyObject(validationTerms)) {
965 this.addValidator(new this.validatorTypes.Base({
966 validationTerms: validationTerms
967 }));
968 }
969 var validators = this.model.get('validators');
970 if (validators) {
971 Object.entries(validators).forEach(function (_ref) {
972 var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
973 key = _ref2[0],
974 args = _ref2[1];
975 _this.addValidator(new _this.validatorTypes[key]({
976 validationTerms: args
977 }));
978 });
979 }
980 },
981 onBeforeRender: function onBeforeRender() {
982 this.setPlaceholderFromParent();
983 },
984 onRender: function onRender() {
985 ControlBaseView.prototype.onRender.apply(this, arguments);
986 if (this.model.get('responsive')) {
987 this.renderResponsiveSwitchers();
988 }
989 this.applySavedValue();
990 this.triggerMethod('ready');
991 this.toggleControlVisibility();
992 this.addTooltip();
993 },
994 onBaseInputTextChange: function onBaseInputTextChange(event) {
995 this.onBaseInputChange(event);
996 },
997 onBaseInputChange: function onBaseInputChange(event) {
998 clearTimeout(this.correctionTimeout);
999 var input = event.currentTarget,
1000 value = this.getInputValue(input),
1001 validators = this.validators.slice(0),
1002 settingsValidators = this.container.settings.validators[this.model.get('name')];
1003 if (settingsValidators) {
1004 validators = validators.concat(settingsValidators);
1005 }
1006 if (validators) {
1007 var oldValue = this.getControlValue(input.dataset.setting);
1008 var isValidValue = validators.every(function (validator) {
1009 return validator.isValid(value, oldValue);
1010 });
1011 if (!isValidValue) {
1012 this.correctionTimeout = setTimeout(this.setInputValue.bind(this, input, oldValue), 1200);
1013 return;
1014 }
1015 }
1016 this.updateElementModel(value, input);
1017 this.triggerMethod('input:change', event);
1018 },
1019 onResponsiveSwitchersClick: function onResponsiveSwitchersClick(event) {
1020 var $switcher = jQuery(event.currentTarget),
1021 device = $switcher.data('device'),
1022 $switchersWrapper = this.ui.responsiveSwitchersWrapper,
1023 selectedOption = $switcher.index();
1024 $switchersWrapper.toggleClass('elementor-responsive-switchers-open');
1025 $switchersWrapper[0].style.setProperty('--selected-option', selectedOption);
1026 this.triggerMethod('responsive:switcher:click', device);
1027 elementor.changeDeviceMode(device);
1028 },
1029 renderResponsiveSwitchers: function renderResponsiveSwitchers() {
1030 var templateHtml = Marionette.Renderer.render('#tmpl-elementor-control-responsive-switchers', this.model.attributes);
1031 this.ui.responsiveSwitchersSibling.after(templateHtml);
1032 this.ui.responsiveSwitchersWrapper = this.$el.find('.elementor-control-responsive-switchers');
1033 },
1034 onAfterExternalChange: function onAfterExternalChange() {
1035 this.hideTooltip();
1036 this.applySavedValue();
1037 },
1038 addTooltip: function addTooltip() {
1039 this.ui.tooltipTargets = this.$el.find('.tooltip-target');
1040 if (!this.ui.tooltipTargets.length) {
1041 return;
1042 }
1043
1044 // Create tooltip on controls
1045 this.ui.tooltipTargets.tipsy({
1046 gravity: function gravity() {
1047 // `n` for down, `s` for up
1048 var gravity = jQuery(this).data('tooltip-pos');
1049 if (undefined !== gravity) {
1050 return gravity;
1051 }
1052 return 's';
1053 },
1054 title: function title() {
1055 return this.getAttribute('data-tooltip');
1056 }
1057 });
1058 },
1059 hideTooltip: function hideTooltip() {
1060 if (this.ui.tooltipTargets.length) {
1061 this.ui.tooltipTargets.tipsy('hide');
1062 }
1063 },
1064 updateElementModel: function updateElementModel(value) {
1065 this.setValue(value);
1066 }
1067 }, {
1068 // Static methods
1069 getStyleValue: function getStyleValue(placeholder, controlValue, controlData) {
1070 if ('DEFAULT' === placeholder) {
1071 return controlData.default;
1072 }
1073 return controlValue;
1074 },
1075 onPasteStyle: function onPasteStyle() {
1076 return true;
1077 }
1078 });
1079 module.exports = ControlBaseDataView;
1080
1081 /***/ }),
1082
1083 /***/ "../assets/dev/js/editor/controls/base.js":
1084 /*!************************************************!*\
1085 !*** ../assets/dev/js/editor/controls/base.js ***!
1086 \************************************************/
1087 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1088
1089 "use strict";
1090
1091
1092 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1093 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
1094 function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1095 function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1096 var ControlBaseView;
1097 ControlBaseView = Marionette.CompositeView.extend({
1098 ui: function ui() {
1099 return {
1100 controlTitle: '.elementor-control-title'
1101 };
1102 },
1103 behaviors: function behaviors() {
1104 var behaviors = {};
1105 return elementor.hooks.applyFilters('controls/base/behaviors', behaviors, this);
1106 },
1107 getBehavior: function getBehavior(name) {
1108 return this._behaviors[Object.keys(this.behaviors()).indexOf(name)];
1109 },
1110 className: function className() {
1111 // TODO: Any better classes for that?
1112 var classes = 'elementor-control elementor-control-' + this.model.get('name') + ' elementor-control-type-' + this.model.get('type'),
1113 modelClasses = this.model.get('classes'),
1114 responsive = this.model.get('responsive');
1115 if (!_.isEmpty(modelClasses)) {
1116 classes += ' ' + modelClasses;
1117 }
1118 if (!_.isEmpty(responsive)) {
1119 var responsiveControlName = responsive.max || responsive.min;
1120 classes += ' elementor-control-responsive-' + responsiveControlName;
1121 }
1122 return classes;
1123 },
1124 templateHelpers: function templateHelpers() {
1125 var controlData = {
1126 _cid: this.model.cid
1127 };
1128 return {
1129 view: this,
1130 data: _.extend({}, this.model.toJSON(), controlData)
1131 };
1132 },
1133 getTemplate: function getTemplate() {
1134 return Marionette.TemplateCache.get('#tmpl-elementor-control-' + this.model.get('type') + '-content');
1135 },
1136 initialize: function initialize(options) {
1137 var label = this.model.get('label');
1138
1139 // TODO: Temp backwards compatibility. since 2.8.0.
1140 Object.defineProperty(this, 'container', {
1141 get: function get() {
1142 if (!options.container) {
1143 var settingsModel = options.elementSettingsModel,
1144 view = $e.components.get('document').utils.findViewById(settingsModel.id);
1145
1146 // Element control.
1147 if (view && view.getContainer) {
1148 options.container = view.getContainer();
1149 } else {
1150 if (!settingsModel.id) {
1151 settingsModel.id = 'bc-' + elementorCommon.helpers.getUniqueId();
1152 }
1153
1154 // Document/General/Other control.
1155 options.container = new elementorModules.editor.Container({
1156 type: 'bc-container',
1157 id: settingsModel.id,
1158 model: settingsModel,
1159 settings: settingsModel,
1160 label: label,
1161 view: false,
1162 parent: false,
1163 renderer: false,
1164 controls: settingsModel.options.controls
1165 });
1166 }
1167 }
1168 return options.container;
1169 }
1170 });
1171
1172 // Use `defineProperty` because `get elementSettingsModel()` fails during the `Marionette.CompositeView.extend`.
1173 Object.defineProperty(this, 'elementSettingsModel', {
1174 get: function get() {
1175 elementorDevTools.deprecation.deprecated('elementSettingsModel', '2.8.0', 'container.settings');
1176 return options.container ? options.container.settings : options.elementSettingsModel;
1177 }
1178 });
1179 var controlType = this.model.get('type'),
1180 controlSettings = jQuery.extend(true, {}, elementor.config.controls[controlType], this.model.attributes);
1181 this.model.set(controlSettings);
1182
1183 // TODO: this.elementSettingsModel is deprecated since 2.8.0.
1184 var settings = this.container ? this.container.settings : this.elementSettingsModel;
1185 this.listenTo(settings, 'change', this.onAfterChange);
1186 if (this.model.attributes.responsive) {
1187 this.onDeviceModeChange = this.onDeviceModeChange.bind(this);
1188 elementor.listenTo(elementor.channels.deviceMode, 'change', this.onDeviceModeChange);
1189 }
1190 },
1191 onDestroy: function onDestroy() {
1192 elementor.stopListening(elementor.channels.deviceMode, 'change', this.onDeviceModeChange);
1193 },
1194 onDeviceModeChange: function onDeviceModeChange() {
1195 this.toggleControlVisibility();
1196 },
1197 onAfterChange: function onAfterChange() {
1198 this.toggleControlVisibility();
1199 },
1200 toggleControlVisibility: function toggleControlVisibility() {
1201 // TODO: this.elementSettingsModel is deprecated since 2.8.0.
1202 var settings = this.container ? this.container.settings : this.elementSettingsModel;
1203 var isVisible = elementor.helpers.isActiveControl(this.model, settings.attributes, settings.controls);
1204 this.$el.toggleClass('elementor-hidden-control', !isVisible);
1205 elementor.getPanelView().updateScrollbar();
1206 },
1207 onRender: function onRender() {
1208 var layoutType = this.model.get('label_block') ? 'block' : 'inline',
1209 showLabel = this.model.get('show_label'),
1210 elClasses = 'elementor-label-' + layoutType;
1211 elClasses += ' elementor-control-separator-' + this.model.get('separator');
1212 if (!showLabel) {
1213 elClasses += ' elementor-control-hidden-label';
1214 }
1215 this.$el.addClass(elClasses);
1216 this.toggleControlVisibility();
1217 },
1218 reRoute: function reRoute(controlActive) {
1219 $e.route($e.routes.getCurrent('panel'), this.getControlInRouteArgs(controlActive ? this.getControlPath() : ''), {
1220 history: false
1221 });
1222 },
1223 getControlInRouteArgs: function getControlInRouteArgs(path) {
1224 return _objectSpread(_objectSpread({}, $e.routes.getCurrentArgs('panel')), {}, {
1225 activeControl: path
1226 });
1227 },
1228 getControlPath: function getControlPath() {
1229 var controlPath = this.model.get('name'),
1230 parent = this._parent;
1231 while (!parent.$el.hasClass('elementor-controls-stack')) {
1232 var parentName = parent.model.get('name') || parent.model.get('_id');
1233 controlPath = parentName + '/' + controlPath;
1234 parent = parent._parent;
1235 }
1236 return controlPath;
1237 }
1238 });
1239 module.exports = ControlBaseView;
1240
1241 /***/ }),
1242
1243 /***/ "../modules/promotions/assets/js/react/app.js":
1244 /*!****************************************************!*\
1245 !*** ../modules/promotions/assets/js/react/app.js ***!
1246 \****************************************************/
1247 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1248
1249 "use strict";
1250 /* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
1251
1252
1253 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1254 Object.defineProperty(exports, "__esModule", ({
1255 value: true
1256 }));
1257 exports["default"] = void 0;
1258 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1259 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1260 var _promotionCard = _interopRequireDefault(__webpack_require__(/*! ./components/promotion-card */ "../modules/promotions/assets/js/react/components/promotion-card.js"));
1261 var App = function App(props) {
1262 return /*#__PURE__*/_react.default.createElement(_ui.DirectionProvider, {
1263 rtl: props.isRTL
1264 }, /*#__PURE__*/_react.default.createElement(_ui.LocalizationProvider, null, /*#__PURE__*/_react.default.createElement(_ui.ThemeProvider, {
1265 colorScheme: props.colorScheme
1266 }, /*#__PURE__*/_react.default.createElement(_ui.Infotip, {
1267 content: /*#__PURE__*/_react.default.createElement(_promotionCard.default, {
1268 doClose: props.onClose,
1269 promotionsData: props.promotionsData
1270 }),
1271 placement: "right",
1272 arrow: true,
1273 open: true,
1274 disableHoverListener: true,
1275 PopperProps: {
1276 modifiers: [{
1277 name: 'offset',
1278 options: {
1279 offset: [-24, 8]
1280 }
1281 }]
1282 }
1283 }))));
1284 };
1285 App.propTypes = {
1286 colorScheme: PropTypes.oneOf(['auto', 'light', 'dark']),
1287 isRTL: PropTypes.bool,
1288 promotionsData: PropTypes.object,
1289 onClose: PropTypes.func.isRequired
1290 };
1291 var _default = exports["default"] = App;
1292
1293 /***/ }),
1294
1295 /***/ "../modules/promotions/assets/js/react/components/promotion-card.js":
1296 /*!**************************************************************************!*\
1297 !*** ../modules/promotions/assets/js/react/components/promotion-card.js ***!
1298 \**************************************************************************/
1299 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1300
1301 "use strict";
1302 /* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
1303
1304
1305 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1306 Object.defineProperty(exports, "__esModule", ({
1307 value: true
1308 }));
1309 exports["default"] = void 0;
1310 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1311 var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
1312 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1313 var PromotionCard = function PromotionCard(_ref) {
1314 var doClose = _ref.doClose,
1315 promotionsData = _ref.promotionsData;
1316 var title = promotionsData === null || promotionsData === void 0 ? void 0 : promotionsData.title,
1317 description = promotionsData === null || promotionsData === void 0 ? void 0 : promotionsData.description,
1318 imgSrc = promotionsData === null || promotionsData === void 0 ? void 0 : promotionsData.image,
1319 imgAlt = promotionsData === null || promotionsData === void 0 ? void 0 : promotionsData.image_alt,
1320 ctaText = promotionsData === null || promotionsData === void 0 ? void 0 : promotionsData.upgrade_text,
1321 ctaUrl = promotionsData === null || promotionsData === void 0 ? void 0 : promotionsData.upgrade_url;
1322 var redirectHandler = function redirectHandler() {
1323 window.open(ctaUrl, '_blank');
1324 return doClose();
1325 };
1326 return /*#__PURE__*/_react.default.createElement(_ui.ClickAwayListener, {
1327 disableReactTree: true,
1328 mouseEvent: "onMouseDown",
1329 touchEvent: "onTouchStart",
1330 onClickAway: doClose
1331 }, /*#__PURE__*/_react.default.createElement(_ui.Box, {
1332 sx: {
1333 width: 296
1334 }
1335 }, /*#__PURE__*/_react.default.createElement(_ui.Stack, {
1336 direction: "row",
1337 alignItems: "center",
1338 py: 1,
1339 px: 2
1340 }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
1341 variant: "subtitle2"
1342 }, title), /*#__PURE__*/_react.default.createElement(_ui.Chip, {
1343 label: (0, _i18n.__)('PRO', 'elementor'),
1344 size: "small",
1345 variant: "outlined",
1346 color: "promotion",
1347 sx: {
1348 ml: 1
1349 }
1350 }), /*#__PURE__*/_react.default.createElement(_ui.CloseButton, {
1351 edge: "end",
1352 sx: {
1353 ml: 'auto'
1354 },
1355 slotProps: {
1356 icon: {
1357 fontSize: 'small'
1358 }
1359 },
1360 onClick: doClose
1361 })), /*#__PURE__*/_react.default.createElement(_ui.Image, {
1362 src: imgSrc,
1363 alt: imgAlt,
1364 sx: {
1365 height: 150,
1366 width: '100%'
1367 }
1368 }), /*#__PURE__*/_react.default.createElement(_ui.Stack, {
1369 px: 2
1370 }, /*#__PURE__*/_react.default.createElement(_ui.List, {
1371 sx: {
1372 pl: 2
1373 }
1374 }, description.map(function (text, index) {
1375 return /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
1376 key: index,
1377 sx: {
1378 listStyle: 'disc',
1379 display: 'list-item',
1380 color: 'text.secondary',
1381 p: 0
1382 }
1383 }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
1384 variant: "body2",
1385 color: "secondary"
1386 }, text));
1387 }))), /*#__PURE__*/_react.default.createElement(_ui.Stack, {
1388 pt: 1,
1389 pb: 1.5,
1390 px: 2
1391 }, /*#__PURE__*/_react.default.createElement(_ui.Button, {
1392 variant: "contained",
1393 size: "small",
1394 color: "promotion",
1395 onClick: redirectHandler,
1396 sx: {
1397 ml: 'auto'
1398 }
1399 }, ctaText))));
1400 };
1401 PromotionCard.propTypes = {
1402 doClose: PropTypes.func,
1403 promotionsData: PropTypes.object
1404 };
1405 var _default = exports["default"] = PromotionCard;
1406
1407 /***/ }),
1408
1409 /***/ "../modules/promotions/assets/js/react/controls/promotion.js":
1410 /*!*******************************************************************!*\
1411 !*** ../modules/promotions/assets/js/react/controls/promotion.js ***!
1412 \*******************************************************************/
1413 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1414
1415 "use strict";
1416
1417
1418 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1419 Object.defineProperty(exports, "__esModule", ({
1420 value: true
1421 }));
1422 exports["default"] = void 0;
1423 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1424 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1425 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1426 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
1427 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1428 var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1429 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
1430 var _app = _interopRequireDefault(__webpack_require__(/*! ../app */ "../modules/promotions/assets/js/react/app.js"));
1431 var _baseData = _interopRequireDefault(__webpack_require__(/*! elementor-controls/base-data */ "../assets/dev/js/editor/controls/base-data.js"));
1432 var _client = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js");
1433 function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
1434 function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
1435 var _default = exports["default"] = /*#__PURE__*/function (_ControlBaseDataView) {
1436 function _default() {
1437 var _this;
1438 (0, _classCallCheck2.default)(this, _default);
1439 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1440 args[_key] = arguments[_key];
1441 }
1442 _this = _callSuper(this, _default, [].concat(args));
1443 (0, _defineProperty2.default)(_this, "promotionInfoTip", null);
1444 (0, _defineProperty2.default)(_this, "selectors", {
1445 switcherElement: '.elementor-control-type-switcher',
1446 reactAnchor: '.e-promotion-react-wrapper'
1447 });
1448 (0, _defineProperty2.default)(_this, "onRoute", function () {});
1449 return _this;
1450 }
1451 (0, _inherits2.default)(_default, _ControlBaseDataView);
1452 return (0, _createClass2.default)(_default, [{
1453 key: "ui",
1454 value: function ui() {
1455 return {
1456 switcher: '[data-promotion].elementor-control-type-switcher'
1457 };
1458 }
1459 }, {
1460 key: "events",
1461 value: function events() {
1462 return {
1463 'click @ui.switcher': 'onClickControlSwitcher'
1464 };
1465 }
1466 }, {
1467 key: "promotionData",
1468 value: function promotionData(promotionType) {
1469 return elementorPromotionsData[promotionType] || {};
1470 }
1471 }, {
1472 key: "onClickControlSwitcher",
1473 value: function onClickControlSwitcher(event) {
1474 event.stopPropagation();
1475 this.mount(event.target);
1476 }
1477 }, {
1478 key: "mount",
1479 value: function mount(targetNode) {
1480 var _elementor,
1481 _elementor$getPrefere,
1482 _rootElement$getAttri,
1483 _this2 = this;
1484 if (this.promotionInfoTip) {
1485 return;
1486 }
1487 var wrapperElement = targetNode === null || targetNode === void 0 ? void 0 : targetNode.closest(this.selectors.switcherElement);
1488 var rootElement = wrapperElement === null || wrapperElement === void 0 ? void 0 : wrapperElement.querySelector(this.selectors.reactAnchor);
1489 if (!rootElement) {
1490 return;
1491 }
1492 this.attachEditorEventListeners();
1493 this.promotionInfoTip = (0, _client.createRoot)(rootElement);
1494 var colorScheme = ((_elementor = elementor) === null || _elementor === void 0 || (_elementor$getPrefere = _elementor.getPreferences) === null || _elementor$getPrefere === void 0 ? void 0 : _elementor$getPrefere.call(_elementor, 'ui_theme')) || 'auto',
1495 isRTL = elementorCommon.config.isRTL,
1496 promotionType = (_rootElement$getAttri = rootElement.getAttribute('data-promotion')) === null || _rootElement$getAttri === void 0 ? void 0 : _rootElement$getAttri.replace('_promotion', '');
1497 this.promotionInfoTip.render(/*#__PURE__*/_react.default.createElement(_app.default, {
1498 colorScheme: colorScheme,
1499 isRTL: isRTL,
1500 promotionsData: this.promotionData(promotionType),
1501 onClose: function onClose() {
1502 return _this2.unmount();
1503 }
1504 }));
1505 }
1506 }, {
1507 key: "unmount",
1508 value: function unmount() {
1509 if (this.promotionInfoTip) {
1510 this.detachEditorEventListeners();
1511 this.promotionInfoTip.unmount();
1512 }
1513 this.promotionInfoTip = null;
1514 }
1515 }, {
1516 key: "attachEditorEventListeners",
1517 value: function attachEditorEventListeners() {
1518 var _this3 = this;
1519 this.onRoute = function (component, route) {
1520 if ('panel/elements/categories' !== route && 'panel/editor/content' !== route) {
1521 return;
1522 }
1523 _this3.unmount();
1524 };
1525 $e.routes.on('run:after', this.onRoute);
1526 }
1527 }, {
1528 key: "detachEditorEventListeners",
1529 value: function detachEditorEventListeners() {
1530 $e.routes.off('run:after', this.onRoute);
1531 }
1532 }]);
1533 }(_baseData.default);
1534
1535 /***/ }),
1536
1537 /***/ "../modules/promotions/assets/js/react/module.js":
1538 /*!*******************************************************!*\
1539 !*** ../modules/promotions/assets/js/react/module.js ***!
1540 \*******************************************************/
1541 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1542
1543 "use strict";
1544
1545
1546 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1547 Object.defineProperty(exports, "__esModule", ({
1548 value: true
1549 }));
1550 exports["default"] = void 0;
1551 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1552 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1553 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
1554 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1555 var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1556 var _promotion = _interopRequireDefault(__webpack_require__(/*! ./controls/promotion */ "../modules/promotions/assets/js/react/controls/promotion.js"));
1557 function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
1558 function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
1559 var Module = exports["default"] = /*#__PURE__*/function (_elementorModules$edi) {
1560 function Module() {
1561 (0, _classCallCheck2.default)(this, Module);
1562 return _callSuper(this, Module, arguments);
1563 }
1564 (0, _inherits2.default)(Module, _elementorModules$edi);
1565 return (0, _createClass2.default)(Module, [{
1566 key: "onElementorInit",
1567 value: function onElementorInit() {
1568 elementor.addControlView('promotion_control', _promotion.default);
1569 }
1570 }]);
1571 }(elementorModules.editor.utils.Module);
1572
1573 /***/ }),
1574
1575 /***/ "../node_modules/object-assign/index.js":
1576 /*!**********************************************!*\
1577 !*** ../node_modules/object-assign/index.js ***!
1578 \**********************************************/
1579 /***/ ((module) => {
1580
1581 "use strict";
1582 /*
1583 object-assign
1584 (c) Sindre Sorhus
1585 @license MIT
1586 */
1587
1588
1589 /* eslint-disable no-unused-vars */
1590 var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1591 var hasOwnProperty = Object.prototype.hasOwnProperty;
1592 var propIsEnumerable = Object.prototype.propertyIsEnumerable;
1593
1594 function toObject(val) {
1595 if (val === null || val === undefined) {
1596 throw new TypeError('Object.assign cannot be called with null or undefined');
1597 }
1598
1599 return Object(val);
1600 }
1601
1602 function shouldUseNative() {
1603 try {
1604 if (!Object.assign) {
1605 return false;
1606 }
1607
1608 // Detect buggy property enumeration order in older V8 versions.
1609
1610 // https://bugs.chromium.org/p/v8/issues/detail?id=4118
1611 var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
1612 test1[5] = 'de';
1613 if (Object.getOwnPropertyNames(test1)[0] === '5') {
1614 return false;
1615 }
1616
1617 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
1618 var test2 = {};
1619 for (var i = 0; i < 10; i++) {
1620 test2['_' + String.fromCharCode(i)] = i;
1621 }
1622 var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
1623 return test2[n];
1624 });
1625 if (order2.join('') !== '0123456789') {
1626 return false;
1627 }
1628
1629 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
1630 var test3 = {};
1631 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
1632 test3[letter] = letter;
1633 });
1634 if (Object.keys(Object.assign({}, test3)).join('') !==
1635 'abcdefghijklmnopqrst') {
1636 return false;
1637 }
1638
1639 return true;
1640 } catch (err) {
1641 // We don't expect any of the above to throw, but better to be safe.
1642 return false;
1643 }
1644 }
1645
1646 module.exports = shouldUseNative() ? Object.assign : function (target, source) {
1647 var from;
1648 var to = toObject(target);
1649 var symbols;
1650
1651 for (var s = 1; s < arguments.length; s++) {
1652 from = Object(arguments[s]);
1653
1654 for (var key in from) {
1655 if (hasOwnProperty.call(from, key)) {
1656 to[key] = from[key];
1657 }
1658 }
1659
1660 if (getOwnPropertySymbols) {
1661 symbols = getOwnPropertySymbols(from);
1662 for (var i = 0; i < symbols.length; i++) {
1663 if (propIsEnumerable.call(from, symbols[i])) {
1664 to[symbols[i]] = from[symbols[i]];
1665 }
1666 }
1667 }
1668 }
1669
1670 return to;
1671 };
1672
1673
1674 /***/ }),
1675
1676 /***/ "../node_modules/prop-types/checkPropTypes.js":
1677 /*!****************************************************!*\
1678 !*** ../node_modules/prop-types/checkPropTypes.js ***!
1679 \****************************************************/
1680 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1681
1682 "use strict";
1683 /**
1684 * Copyright (c) 2013-present, Facebook, Inc.
1685 *
1686 * This source code is licensed under the MIT license found in the
1687 * LICENSE file in the root directory of this source tree.
1688 */
1689
1690
1691
1692 var printWarning = function() {};
1693
1694 if (true) {
1695 var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
1696 var loggedTypeFailures = {};
1697 var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
1698
1699 printWarning = function(text) {
1700 var message = 'Warning: ' + text;
1701 if (typeof console !== 'undefined') {
1702 console.error(message);
1703 }
1704 try {
1705 // --- Welcome to debugging React ---
1706 // This error was thrown as a convenience so that you can use this stack
1707 // to find the callsite that caused this warning to fire.
1708 throw new Error(message);
1709 } catch (x) { /**/ }
1710 };
1711 }
1712
1713 /**
1714 * Assert that the values match with the type specs.
1715 * Error messages are memorized and will only be shown once.
1716 *
1717 * @param {object} typeSpecs Map of name to a ReactPropType
1718 * @param {object} values Runtime values that need to be type-checked
1719 * @param {string} location e.g. "prop", "context", "child context"
1720 * @param {string} componentName Name of the component for error messages.
1721 * @param {?Function} getStack Returns the component stack.
1722 * @private
1723 */
1724 function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
1725 if (true) {
1726 for (var typeSpecName in typeSpecs) {
1727 if (has(typeSpecs, typeSpecName)) {
1728 var error;
1729 // Prop type validation may throw. In case they do, we don't want to
1730 // fail the render phase where it didn't fail before. So we log it.
1731 // After these have been cleaned up, we'll let them throw.
1732 try {
1733 // This is intentionally an invariant that gets caught. It's the same
1734 // behavior as without this statement except with a better message.
1735 if (typeof typeSpecs[typeSpecName] !== 'function') {
1736 var err = Error(
1737 (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
1738 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
1739 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
1740 );
1741 err.name = 'Invariant Violation';
1742 throw err;
1743 }
1744 error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
1745 } catch (ex) {
1746 error = ex;
1747 }
1748 if (error && !(error instanceof Error)) {
1749 printWarning(
1750 (componentName || 'React class') + ': type specification of ' +
1751 location + ' `' + typeSpecName + '` is invalid; the type checker ' +
1752 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
1753 'You may have forgotten to pass an argument to the type checker ' +
1754 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
1755 'shape all require an argument).'
1756 );
1757 }
1758 if (error instanceof Error && !(error.message in loggedTypeFailures)) {
1759 // Only monitor this failure once because there tends to be a lot of the
1760 // same error.
1761 loggedTypeFailures[error.message] = true;
1762
1763 var stack = getStack ? getStack() : '';
1764
1765 printWarning(
1766 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
1767 );
1768 }
1769 }
1770 }
1771 }
1772 }
1773
1774 /**
1775 * Resets warning cache when testing.
1776 *
1777 * @private
1778 */
1779 checkPropTypes.resetWarningCache = function() {
1780 if (true) {
1781 loggedTypeFailures = {};
1782 }
1783 }
1784
1785 module.exports = checkPropTypes;
1786
1787
1788 /***/ }),
1789
1790 /***/ "../node_modules/prop-types/factoryWithTypeCheckers.js":
1791 /*!*************************************************************!*\
1792 !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***!
1793 \*************************************************************/
1794 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1795
1796 "use strict";
1797 /**
1798 * Copyright (c) 2013-present, Facebook, Inc.
1799 *
1800 * This source code is licensed under the MIT license found in the
1801 * LICENSE file in the root directory of this source tree.
1802 */
1803
1804
1805
1806 var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
1807 var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js");
1808
1809 var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
1810 var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
1811 var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js");
1812
1813 var printWarning = function() {};
1814
1815 if (true) {
1816 printWarning = function(text) {
1817 var message = 'Warning: ' + text;
1818 if (typeof console !== 'undefined') {
1819 console.error(message);
1820 }
1821 try {
1822 // --- Welcome to debugging React ---
1823 // This error was thrown as a convenience so that you can use this stack
1824 // to find the callsite that caused this warning to fire.
1825 throw new Error(message);
1826 } catch (x) {}
1827 };
1828 }
1829
1830 function emptyFunctionThatReturnsNull() {
1831 return null;
1832 }
1833
1834 module.exports = function(isValidElement, throwOnDirectAccess) {
1835 /* global Symbol */
1836 var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
1837 var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
1838
1839 /**
1840 * Returns the iterator method function contained on the iterable object.
1841 *
1842 * Be sure to invoke the function with the iterable as context:
1843 *
1844 * var iteratorFn = getIteratorFn(myIterable);
1845 * if (iteratorFn) {
1846 * var iterator = iteratorFn.call(myIterable);
1847 * ...
1848 * }
1849 *
1850 * @param {?object} maybeIterable
1851 * @return {?function}
1852 */
1853 function getIteratorFn(maybeIterable) {
1854 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
1855 if (typeof iteratorFn === 'function') {
1856 return iteratorFn;
1857 }
1858 }
1859
1860 /**
1861 * Collection of methods that allow declaration and validation of props that are
1862 * supplied to React components. Example usage:
1863 *
1864 * var Props = require('ReactPropTypes');
1865 * var MyArticle = React.createClass({
1866 * propTypes: {
1867 * // An optional string prop named "description".
1868 * description: Props.string,
1869 *
1870 * // A required enum prop named "category".
1871 * category: Props.oneOf(['News','Photos']).isRequired,
1872 *
1873 * // A prop named "dialog" that requires an instance of Dialog.
1874 * dialog: Props.instanceOf(Dialog).isRequired
1875 * },
1876 * render: function() { ... }
1877 * });
1878 *
1879 * A more formal specification of how these methods are used:
1880 *
1881 * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
1882 * decl := ReactPropTypes.{type}(.isRequired)?
1883 *
1884 * Each and every declaration produces a function with the same signature. This
1885 * allows the creation of custom validation functions. For example:
1886 *
1887 * var MyLink = React.createClass({
1888 * propTypes: {
1889 * // An optional string or URI prop named "href".
1890 * href: function(props, propName, componentName) {
1891 * var propValue = props[propName];
1892 * if (propValue != null && typeof propValue !== 'string' &&
1893 * !(propValue instanceof URI)) {
1894 * return new Error(
1895 * 'Expected a string or an URI for ' + propName + ' in ' +
1896 * componentName
1897 * );
1898 * }
1899 * }
1900 * },
1901 * render: function() {...}
1902 * });
1903 *
1904 * @internal
1905 */
1906
1907 var ANONYMOUS = '<<anonymous>>';
1908
1909 // Important!
1910 // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
1911 var ReactPropTypes = {
1912 array: createPrimitiveTypeChecker('array'),
1913 bigint: createPrimitiveTypeChecker('bigint'),
1914 bool: createPrimitiveTypeChecker('boolean'),
1915 func: createPrimitiveTypeChecker('function'),
1916 number: createPrimitiveTypeChecker('number'),
1917 object: createPrimitiveTypeChecker('object'),
1918 string: createPrimitiveTypeChecker('string'),
1919 symbol: createPrimitiveTypeChecker('symbol'),
1920
1921 any: createAnyTypeChecker(),
1922 arrayOf: createArrayOfTypeChecker,
1923 element: createElementTypeChecker(),
1924 elementType: createElementTypeTypeChecker(),
1925 instanceOf: createInstanceTypeChecker,
1926 node: createNodeChecker(),
1927 objectOf: createObjectOfTypeChecker,
1928 oneOf: createEnumTypeChecker,
1929 oneOfType: createUnionTypeChecker,
1930 shape: createShapeTypeChecker,
1931 exact: createStrictShapeTypeChecker,
1932 };
1933
1934 /**
1935 * inlined Object.is polyfill to avoid requiring consumers ship their own
1936 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
1937 */
1938 /*eslint-disable no-self-compare*/
1939 function is(x, y) {
1940 // SameValue algorithm
1941 if (x === y) {
1942 // Steps 1-5, 7-10
1943 // Steps 6.b-6.e: +0 != -0
1944 return x !== 0 || 1 / x === 1 / y;
1945 } else {
1946 // Step 6.a: NaN == NaN
1947 return x !== x && y !== y;
1948 }
1949 }
1950 /*eslint-enable no-self-compare*/
1951
1952 /**
1953 * We use an Error-like object for backward compatibility as people may call
1954 * PropTypes directly and inspect their output. However, we don't use real
1955 * Errors anymore. We don't inspect their stack anyway, and creating them
1956 * is prohibitively expensive if they are created too often, such as what
1957 * happens in oneOfType() for any type before the one that matched.
1958 */
1959 function PropTypeError(message, data) {
1960 this.message = message;
1961 this.data = data && typeof data === 'object' ? data: {};
1962 this.stack = '';
1963 }
1964 // Make `instanceof Error` still work for returned errors.
1965 PropTypeError.prototype = Error.prototype;
1966
1967 function createChainableTypeChecker(validate) {
1968 if (true) {
1969 var manualPropTypeCallCache = {};
1970 var manualPropTypeWarningCount = 0;
1971 }
1972 function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
1973 componentName = componentName || ANONYMOUS;
1974 propFullName = propFullName || propName;
1975
1976 if (secret !== ReactPropTypesSecret) {
1977 if (throwOnDirectAccess) {
1978 // New behavior only for users of `prop-types` package
1979 var err = new Error(
1980 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1981 'Use `PropTypes.checkPropTypes()` to call them. ' +
1982 'Read more at http://fb.me/use-check-prop-types'
1983 );
1984 err.name = 'Invariant Violation';
1985 throw err;
1986 } else if ( true && typeof console !== 'undefined') {
1987 // Old behavior for people using React.PropTypes
1988 var cacheKey = componentName + ':' + propName;
1989 if (
1990 !manualPropTypeCallCache[cacheKey] &&
1991 // Avoid spamming the console because they are often not actionable except for lib authors
1992 manualPropTypeWarningCount < 3
1993 ) {
1994 printWarning(
1995 'You are manually calling a React.PropTypes validation ' +
1996 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
1997 'and will throw in the standalone `prop-types` package. ' +
1998 'You may be seeing this warning due to a third-party PropTypes ' +
1999 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
2000 );
2001 manualPropTypeCallCache[cacheKey] = true;
2002 manualPropTypeWarningCount++;
2003 }
2004 }
2005 }
2006 if (props[propName] == null) {
2007 if (isRequired) {
2008 if (props[propName] === null) {
2009 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
2010 }
2011 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
2012 }
2013 return null;
2014 } else {
2015 return validate(props, propName, componentName, location, propFullName);
2016 }
2017 }
2018
2019 var chainedCheckType = checkType.bind(null, false);
2020 chainedCheckType.isRequired = checkType.bind(null, true);
2021
2022 return chainedCheckType;
2023 }
2024
2025 function createPrimitiveTypeChecker(expectedType) {
2026 function validate(props, propName, componentName, location, propFullName, secret) {
2027 var propValue = props[propName];
2028 var propType = getPropType(propValue);
2029 if (propType !== expectedType) {
2030 // `propValue` being instance of, say, date/regexp, pass the 'object'
2031 // check, but we can offer a more precise error message here rather than
2032 // 'of type `object`'.
2033 var preciseType = getPreciseType(propValue);
2034
2035 return new PropTypeError(
2036 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
2037 {expectedType: expectedType}
2038 );
2039 }
2040 return null;
2041 }
2042 return createChainableTypeChecker(validate);
2043 }
2044
2045 function createAnyTypeChecker() {
2046 return createChainableTypeChecker(emptyFunctionThatReturnsNull);
2047 }
2048
2049 function createArrayOfTypeChecker(typeChecker) {
2050 function validate(props, propName, componentName, location, propFullName) {
2051 if (typeof typeChecker !== 'function') {
2052 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
2053 }
2054 var propValue = props[propName];
2055 if (!Array.isArray(propValue)) {
2056 var propType = getPropType(propValue);
2057 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
2058 }
2059 for (var i = 0; i < propValue.length; i++) {
2060 var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
2061 if (error instanceof Error) {
2062 return error;
2063 }
2064 }
2065 return null;
2066 }
2067 return createChainableTypeChecker(validate);
2068 }
2069
2070 function createElementTypeChecker() {
2071 function validate(props, propName, componentName, location, propFullName) {
2072 var propValue = props[propName];
2073 if (!isValidElement(propValue)) {
2074 var propType = getPropType(propValue);
2075 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
2076 }
2077 return null;
2078 }
2079 return createChainableTypeChecker(validate);
2080 }
2081
2082 function createElementTypeTypeChecker() {
2083 function validate(props, propName, componentName, location, propFullName) {
2084 var propValue = props[propName];
2085 if (!ReactIs.isValidElementType(propValue)) {
2086 var propType = getPropType(propValue);
2087 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
2088 }
2089 return null;
2090 }
2091 return createChainableTypeChecker(validate);
2092 }
2093
2094 function createInstanceTypeChecker(expectedClass) {
2095 function validate(props, propName, componentName, location, propFullName) {
2096 if (!(props[propName] instanceof expectedClass)) {
2097 var expectedClassName = expectedClass.name || ANONYMOUS;
2098 var actualClassName = getClassName(props[propName]);
2099 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
2100 }
2101 return null;
2102 }
2103 return createChainableTypeChecker(validate);
2104 }
2105
2106 function createEnumTypeChecker(expectedValues) {
2107 if (!Array.isArray(expectedValues)) {
2108 if (true) {
2109 if (arguments.length > 1) {
2110 printWarning(
2111 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
2112 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
2113 );
2114 } else {
2115 printWarning('Invalid argument supplied to oneOf, expected an array.');
2116 }
2117 }
2118 return emptyFunctionThatReturnsNull;
2119 }
2120
2121 function validate(props, propName, componentName, location, propFullName) {
2122 var propValue = props[propName];
2123 for (var i = 0; i < expectedValues.length; i++) {
2124 if (is(propValue, expectedValues[i])) {
2125 return null;
2126 }
2127 }
2128
2129 var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
2130 var type = getPreciseType(value);
2131 if (type === 'symbol') {
2132 return String(value);
2133 }
2134 return value;
2135 });
2136 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
2137 }
2138 return createChainableTypeChecker(validate);
2139 }
2140
2141 function createObjectOfTypeChecker(typeChecker) {
2142 function validate(props, propName, componentName, location, propFullName) {
2143 if (typeof typeChecker !== 'function') {
2144 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
2145 }
2146 var propValue = props[propName];
2147 var propType = getPropType(propValue);
2148 if (propType !== 'object') {
2149 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
2150 }
2151 for (var key in propValue) {
2152 if (has(propValue, key)) {
2153 var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
2154 if (error instanceof Error) {
2155 return error;
2156 }
2157 }
2158 }
2159 return null;
2160 }
2161 return createChainableTypeChecker(validate);
2162 }
2163
2164 function createUnionTypeChecker(arrayOfTypeCheckers) {
2165 if (!Array.isArray(arrayOfTypeCheckers)) {
2166 true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
2167 return emptyFunctionThatReturnsNull;
2168 }
2169
2170 for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
2171 var checker = arrayOfTypeCheckers[i];
2172 if (typeof checker !== 'function') {
2173 printWarning(
2174 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
2175 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
2176 );
2177 return emptyFunctionThatReturnsNull;
2178 }
2179 }
2180
2181 function validate(props, propName, componentName, location, propFullName) {
2182 var expectedTypes = [];
2183 for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
2184 var checker = arrayOfTypeCheckers[i];
2185 var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
2186 if (checkerResult == null) {
2187 return null;
2188 }
2189 if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
2190 expectedTypes.push(checkerResult.data.expectedType);
2191 }
2192 }
2193 var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
2194 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
2195 }
2196 return createChainableTypeChecker(validate);
2197 }
2198
2199 function createNodeChecker() {
2200 function validate(props, propName, componentName, location, propFullName) {
2201 if (!isNode(props[propName])) {
2202 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
2203 }
2204 return null;
2205 }
2206 return createChainableTypeChecker(validate);
2207 }
2208
2209 function invalidValidatorError(componentName, location, propFullName, key, type) {
2210 return new PropTypeError(
2211 (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
2212 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
2213 );
2214 }
2215
2216 function createShapeTypeChecker(shapeTypes) {
2217 function validate(props, propName, componentName, location, propFullName) {
2218 var propValue = props[propName];
2219 var propType = getPropType(propValue);
2220 if (propType !== 'object') {
2221 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
2222 }
2223 for (var key in shapeTypes) {
2224 var checker = shapeTypes[key];
2225 if (typeof checker !== 'function') {
2226 return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
2227 }
2228 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
2229 if (error) {
2230 return error;
2231 }
2232 }
2233 return null;
2234 }
2235 return createChainableTypeChecker(validate);
2236 }
2237
2238 function createStrictShapeTypeChecker(shapeTypes) {
2239 function validate(props, propName, componentName, location, propFullName) {
2240 var propValue = props[propName];
2241 var propType = getPropType(propValue);
2242 if (propType !== 'object') {
2243 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
2244 }
2245 // We need to check all keys in case some are required but missing from props.
2246 var allKeys = assign({}, props[propName], shapeTypes);
2247 for (var key in allKeys) {
2248 var checker = shapeTypes[key];
2249 if (has(shapeTypes, key) && typeof checker !== 'function') {
2250 return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
2251 }
2252 if (!checker) {
2253 return new PropTypeError(
2254 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
2255 '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
2256 '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
2257 );
2258 }
2259 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
2260 if (error) {
2261 return error;
2262 }
2263 }
2264 return null;
2265 }
2266
2267 return createChainableTypeChecker(validate);
2268 }
2269
2270 function isNode(propValue) {
2271 switch (typeof propValue) {
2272 case 'number':
2273 case 'string':
2274 case 'undefined':
2275 return true;
2276 case 'boolean':
2277 return !propValue;
2278 case 'object':
2279 if (Array.isArray(propValue)) {
2280 return propValue.every(isNode);
2281 }
2282 if (propValue === null || isValidElement(propValue)) {
2283 return true;
2284 }
2285
2286 var iteratorFn = getIteratorFn(propValue);
2287 if (iteratorFn) {
2288 var iterator = iteratorFn.call(propValue);
2289 var step;
2290 if (iteratorFn !== propValue.entries) {
2291 while (!(step = iterator.next()).done) {
2292 if (!isNode(step.value)) {
2293 return false;
2294 }
2295 }
2296 } else {
2297 // Iterator will provide entry [k,v] tuples rather than values.
2298 while (!(step = iterator.next()).done) {
2299 var entry = step.value;
2300 if (entry) {
2301 if (!isNode(entry[1])) {
2302 return false;
2303 }
2304 }
2305 }
2306 }
2307 } else {
2308 return false;
2309 }
2310
2311 return true;
2312 default:
2313 return false;
2314 }
2315 }
2316
2317 function isSymbol(propType, propValue) {
2318 // Native Symbol.
2319 if (propType === 'symbol') {
2320 return true;
2321 }
2322
2323 // falsy value can't be a Symbol
2324 if (!propValue) {
2325 return false;
2326 }
2327
2328 // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
2329 if (propValue['@@toStringTag'] === 'Symbol') {
2330 return true;
2331 }
2332
2333 // Fallback for non-spec compliant Symbols which are polyfilled.
2334 if (typeof Symbol === 'function' && propValue instanceof Symbol) {
2335 return true;
2336 }
2337
2338 return false;
2339 }
2340
2341 // Equivalent of `typeof` but with special handling for array and regexp.
2342 function getPropType(propValue) {
2343 var propType = typeof propValue;
2344 if (Array.isArray(propValue)) {
2345 return 'array';
2346 }
2347 if (propValue instanceof RegExp) {
2348 // Old webkits (at least until Android 4.0) return 'function' rather than
2349 // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
2350 // passes PropTypes.object.
2351 return 'object';
2352 }
2353 if (isSymbol(propType, propValue)) {
2354 return 'symbol';
2355 }
2356 return propType;
2357 }
2358
2359 // This handles more types than `getPropType`. Only used for error messages.
2360 // See `createPrimitiveTypeChecker`.
2361 function getPreciseType(propValue) {
2362 if (typeof propValue === 'undefined' || propValue === null) {
2363 return '' + propValue;
2364 }
2365 var propType = getPropType(propValue);
2366 if (propType === 'object') {
2367 if (propValue instanceof Date) {
2368 return 'date';
2369 } else if (propValue instanceof RegExp) {
2370 return 'regexp';
2371 }
2372 }
2373 return propType;
2374 }
2375
2376 // Returns a string that is postfixed to a warning about an invalid type.
2377 // For example, "undefined" or "of type array"
2378 function getPostfixForTypeWarning(value) {
2379 var type = getPreciseType(value);
2380 switch (type) {
2381 case 'array':
2382 case 'object':
2383 return 'an ' + type;
2384 case 'boolean':
2385 case 'date':
2386 case 'regexp':
2387 return 'a ' + type;
2388 default:
2389 return type;
2390 }
2391 }
2392
2393 // Returns class name of the object, if any.
2394 function getClassName(propValue) {
2395 if (!propValue.constructor || !propValue.constructor.name) {
2396 return ANONYMOUS;
2397 }
2398 return propValue.constructor.name;
2399 }
2400
2401 ReactPropTypes.checkPropTypes = checkPropTypes;
2402 ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
2403 ReactPropTypes.PropTypes = ReactPropTypes;
2404
2405 return ReactPropTypes;
2406 };
2407
2408
2409 /***/ }),
2410
2411 /***/ "../node_modules/prop-types/index.js":
2412 /*!*******************************************!*\
2413 !*** ../node_modules/prop-types/index.js ***!
2414 \*******************************************/
2415 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2416
2417 /**
2418 * Copyright (c) 2013-present, Facebook, Inc.
2419 *
2420 * This source code is licensed under the MIT license found in the
2421 * LICENSE file in the root directory of this source tree.
2422 */
2423
2424 if (true) {
2425 var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
2426
2427 // By explicitly using `prop-types` you are opting into new development behavior.
2428 // http://fb.me/prop-types-in-prod
2429 var throwOnDirectAccess = true;
2430 module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
2431 } else {}
2432
2433
2434 /***/ }),
2435
2436 /***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js":
2437 /*!**************************************************************!*\
2438 !*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
2439 \**************************************************************/
2440 /***/ ((module) => {
2441
2442 "use strict";
2443 /**
2444 * Copyright (c) 2013-present, Facebook, Inc.
2445 *
2446 * This source code is licensed under the MIT license found in the
2447 * LICENSE file in the root directory of this source tree.
2448 */
2449
2450
2451
2452 var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
2453
2454 module.exports = ReactPropTypesSecret;
2455
2456
2457 /***/ }),
2458
2459 /***/ "../node_modules/prop-types/lib/has.js":
2460 /*!*********************************************!*\
2461 !*** ../node_modules/prop-types/lib/has.js ***!
2462 \*********************************************/
2463 /***/ ((module) => {
2464
2465 module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
2466
2467
2468 /***/ }),
2469
2470 /***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
2471 /*!************************************************************************************!*\
2472 !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
2473 \************************************************************************************/
2474 /***/ ((__unused_webpack_module, exports) => {
2475
2476 "use strict";
2477 /** @license React v16.13.1
2478 * react-is.development.js
2479 *
2480 * Copyright (c) Facebook, Inc. and its affiliates.
2481 *
2482 * This source code is licensed under the MIT license found in the
2483 * LICENSE file in the root directory of this source tree.
2484 */
2485
2486
2487
2488
2489
2490 if (true) {
2491 (function() {
2492 'use strict';
2493
2494 // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
2495 // nor polyfill, then a plain number is used for performance.
2496 var hasSymbol = typeof Symbol === 'function' && Symbol.for;
2497 var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
2498 var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
2499 var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
2500 var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
2501 var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
2502 var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
2503 var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
2504 // (unstable) APIs that have been removed. Can we remove the symbols?
2505
2506 var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
2507 var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
2508 var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
2509 var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
2510 var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
2511 var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
2512 var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
2513 var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
2514 var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
2515 var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
2516 var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
2517
2518 function isValidElementType(type) {
2519 return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2520 type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
2521 }
2522
2523 function typeOf(object) {
2524 if (typeof object === 'object' && object !== null) {
2525 var $$typeof = object.$$typeof;
2526
2527 switch ($$typeof) {
2528 case REACT_ELEMENT_TYPE:
2529 var type = object.type;
2530
2531 switch (type) {
2532 case REACT_ASYNC_MODE_TYPE:
2533 case REACT_CONCURRENT_MODE_TYPE:
2534 case REACT_FRAGMENT_TYPE:
2535 case REACT_PROFILER_TYPE:
2536 case REACT_STRICT_MODE_TYPE:
2537 case REACT_SUSPENSE_TYPE:
2538 return type;
2539
2540 default:
2541 var $$typeofType = type && type.$$typeof;
2542
2543 switch ($$typeofType) {
2544 case REACT_CONTEXT_TYPE:
2545 case REACT_FORWARD_REF_TYPE:
2546 case REACT_LAZY_TYPE:
2547 case REACT_MEMO_TYPE:
2548 case REACT_PROVIDER_TYPE:
2549 return $$typeofType;
2550
2551 default:
2552 return $$typeof;
2553 }
2554
2555 }
2556
2557 case REACT_PORTAL_TYPE:
2558 return $$typeof;
2559 }
2560 }
2561
2562 return undefined;
2563 } // AsyncMode is deprecated along with isAsyncMode
2564
2565 var AsyncMode = REACT_ASYNC_MODE_TYPE;
2566 var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
2567 var ContextConsumer = REACT_CONTEXT_TYPE;
2568 var ContextProvider = REACT_PROVIDER_TYPE;
2569 var Element = REACT_ELEMENT_TYPE;
2570 var ForwardRef = REACT_FORWARD_REF_TYPE;
2571 var Fragment = REACT_FRAGMENT_TYPE;
2572 var Lazy = REACT_LAZY_TYPE;
2573 var Memo = REACT_MEMO_TYPE;
2574 var Portal = REACT_PORTAL_TYPE;
2575 var Profiler = REACT_PROFILER_TYPE;
2576 var StrictMode = REACT_STRICT_MODE_TYPE;
2577 var Suspense = REACT_SUSPENSE_TYPE;
2578 var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
2579
2580 function isAsyncMode(object) {
2581 {
2582 if (!hasWarnedAboutDeprecatedIsAsyncMode) {
2583 hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
2584
2585 console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
2586 }
2587 }
2588
2589 return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
2590 }
2591 function isConcurrentMode(object) {
2592 return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
2593 }
2594 function isContextConsumer(object) {
2595 return typeOf(object) === REACT_CONTEXT_TYPE;
2596 }
2597 function isContextProvider(object) {
2598 return typeOf(object) === REACT_PROVIDER_TYPE;
2599 }
2600 function isElement(object) {
2601 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2602 }
2603 function isForwardRef(object) {
2604 return typeOf(object) === REACT_FORWARD_REF_TYPE;
2605 }
2606 function isFragment(object) {
2607 return typeOf(object) === REACT_FRAGMENT_TYPE;
2608 }
2609 function isLazy(object) {
2610 return typeOf(object) === REACT_LAZY_TYPE;
2611 }
2612 function isMemo(object) {
2613 return typeOf(object) === REACT_MEMO_TYPE;
2614 }
2615 function isPortal(object) {
2616 return typeOf(object) === REACT_PORTAL_TYPE;
2617 }
2618 function isProfiler(object) {
2619 return typeOf(object) === REACT_PROFILER_TYPE;
2620 }
2621 function isStrictMode(object) {
2622 return typeOf(object) === REACT_STRICT_MODE_TYPE;
2623 }
2624 function isSuspense(object) {
2625 return typeOf(object) === REACT_SUSPENSE_TYPE;
2626 }
2627
2628 exports.AsyncMode = AsyncMode;
2629 exports.ConcurrentMode = ConcurrentMode;
2630 exports.ContextConsumer = ContextConsumer;
2631 exports.ContextProvider = ContextProvider;
2632 exports.Element = Element;
2633 exports.ForwardRef = ForwardRef;
2634 exports.Fragment = Fragment;
2635 exports.Lazy = Lazy;
2636 exports.Memo = Memo;
2637 exports.Portal = Portal;
2638 exports.Profiler = Profiler;
2639 exports.StrictMode = StrictMode;
2640 exports.Suspense = Suspense;
2641 exports.isAsyncMode = isAsyncMode;
2642 exports.isConcurrentMode = isConcurrentMode;
2643 exports.isContextConsumer = isContextConsumer;
2644 exports.isContextProvider = isContextProvider;
2645 exports.isElement = isElement;
2646 exports.isForwardRef = isForwardRef;
2647 exports.isFragment = isFragment;
2648 exports.isLazy = isLazy;
2649 exports.isMemo = isMemo;
2650 exports.isPortal = isPortal;
2651 exports.isProfiler = isProfiler;
2652 exports.isStrictMode = isStrictMode;
2653 exports.isSuspense = isSuspense;
2654 exports.isValidElementType = isValidElementType;
2655 exports.typeOf = typeOf;
2656 })();
2657 }
2658
2659
2660 /***/ }),
2661
2662 /***/ "../node_modules/prop-types/node_modules/react-is/index.js":
2663 /*!*****************************************************************!*\
2664 !*** ../node_modules/prop-types/node_modules/react-is/index.js ***!
2665 \*****************************************************************/
2666 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2667
2668 "use strict";
2669
2670
2671 if (false) {} else {
2672 module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
2673 }
2674
2675
2676 /***/ }),
2677
2678 /***/ "../node_modules/react-dom/client.js":
2679 /*!*******************************************!*\
2680 !*** ../node_modules/react-dom/client.js ***!
2681 \*******************************************/
2682 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2683
2684 "use strict";
2685
2686
2687 var m = __webpack_require__(/*! react-dom */ "react-dom");
2688 if (false) {} else {
2689 var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2690 exports.createRoot = function(c, o) {
2691 i.usingClientEntryPoint = true;
2692 try {
2693 return m.createRoot(c, o);
2694 } finally {
2695 i.usingClientEntryPoint = false;
2696 }
2697 };
2698 exports.hydrateRoot = function(c, h, o) {
2699 i.usingClientEntryPoint = true;
2700 try {
2701 return m.hydrateRoot(c, h, o);
2702 } finally {
2703 i.usingClientEntryPoint = false;
2704 }
2705 };
2706 }
2707
2708
2709 /***/ }),
2710
2711 /***/ "react":
2712 /*!************************!*\
2713 !*** external "React" ***!
2714 \************************/
2715 /***/ ((module) => {
2716
2717 "use strict";
2718 module.exports = React;
2719
2720 /***/ }),
2721
2722 /***/ "react-dom":
2723 /*!***************************!*\
2724 !*** external "ReactDOM" ***!
2725 \***************************/
2726 /***/ ((module) => {
2727
2728 "use strict";
2729 module.exports = ReactDOM;
2730
2731 /***/ }),
2732
2733 /***/ "@elementor/ui":
2734 /*!*********************************!*\
2735 !*** external "elementorV2.ui" ***!
2736 \*********************************/
2737 /***/ ((module) => {
2738
2739 "use strict";
2740 module.exports = elementorV2.ui;
2741
2742 /***/ }),
2743
2744 /***/ "@wordpress/i18n":
2745 /*!**************************!*\
2746 !*** external "wp.i18n" ***!
2747 \**************************/
2748 /***/ ((module) => {
2749
2750 "use strict";
2751 module.exports = wp.i18n;
2752
2753 /***/ }),
2754
2755 /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
2756 /*!******************************************************************!*\
2757 !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
2758 \******************************************************************/
2759 /***/ ((module) => {
2760
2761 function _arrayLikeToArray(r, a) {
2762 (null == a || a > r.length) && (a = r.length);
2763 for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
2764 return n;
2765 }
2766 module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2767
2768 /***/ }),
2769
2770 /***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
2771 /*!****************************************************************!*\
2772 !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
2773 \****************************************************************/
2774 /***/ ((module) => {
2775
2776 function _arrayWithHoles(r) {
2777 if (Array.isArray(r)) return r;
2778 }
2779 module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
2780
2781 /***/ }),
2782
2783 /***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js":
2784 /*!***********************************************************************!*\
2785 !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
2786 \***********************************************************************/
2787 /***/ ((module) => {
2788
2789 function _assertThisInitialized(e) {
2790 if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2791 return e;
2792 }
2793 module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
2794
2795 /***/ }),
2796
2797 /***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
2798 /*!****************************************************************!*\
2799 !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
2800 \****************************************************************/
2801 /***/ ((module) => {
2802
2803 function _classCallCheck(a, n) {
2804 if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
2805 }
2806 module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
2807
2808 /***/ }),
2809
2810 /***/ "../node_modules/@babel/runtime/helpers/createClass.js":
2811 /*!*************************************************************!*\
2812 !*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
2813 \*************************************************************/
2814 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2815
2816 var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2817 function _defineProperties(e, r) {
2818 for (var t = 0; t < r.length; t++) {
2819 var o = r[t];
2820 o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
2821 }
2822 }
2823 function _createClass(e, r, t) {
2824 return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
2825 writable: !1
2826 }), e;
2827 }
2828 module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
2829
2830 /***/ }),
2831
2832 /***/ "../node_modules/@babel/runtime/helpers/defineProperty.js":
2833 /*!****************************************************************!*\
2834 !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***!
2835 \****************************************************************/
2836 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2837
2838 var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2839 function _defineProperty(e, r, t) {
2840 return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
2841 value: t,
2842 enumerable: !0,
2843 configurable: !0,
2844 writable: !0
2845 }) : e[r] = t, e;
2846 }
2847 module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
2848
2849 /***/ }),
2850
2851 /***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js":
2852 /*!****************************************************************!*\
2853 !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
2854 \****************************************************************/
2855 /***/ ((module) => {
2856
2857 function _getPrototypeOf(t) {
2858 return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
2859 return t.__proto__ || Object.getPrototypeOf(t);
2860 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
2861 }
2862 module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2863
2864 /***/ }),
2865
2866 /***/ "../node_modules/@babel/runtime/helpers/inherits.js":
2867 /*!**********************************************************!*\
2868 !*** ../node_modules/@babel/runtime/helpers/inherits.js ***!
2869 \**********************************************************/
2870 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2871
2872 var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2873 function _inherits(t, e) {
2874 if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
2875 t.prototype = Object.create(e && e.prototype, {
2876 constructor: {
2877 value: t,
2878 writable: !0,
2879 configurable: !0
2880 }
2881 }), Object.defineProperty(t, "prototype", {
2882 writable: !1
2883 }), e && setPrototypeOf(t, e);
2884 }
2885 module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
2886
2887 /***/ }),
2888
2889 /***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
2890 /*!***********************************************************************!*\
2891 !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
2892 \***********************************************************************/
2893 /***/ ((module) => {
2894
2895 function _interopRequireDefault(e) {
2896 return e && e.__esModule ? e : {
2897 "default": e
2898 };
2899 }
2900 module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
2901
2902 /***/ }),
2903
2904 /***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
2905 /*!**********************************************************************!*\
2906 !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
2907 \**********************************************************************/
2908 /***/ ((module) => {
2909
2910 function _iterableToArrayLimit(r, l) {
2911 var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
2912 if (null != t) {
2913 var e,
2914 n,
2915 i,
2916 u,
2917 a = [],
2918 f = !0,
2919 o = !1;
2920 try {
2921 if (i = (t = t.call(r)).next, 0 === l) {
2922 if (Object(t) !== t) return;
2923 f = !1;
2924 } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
2925 } catch (r) {
2926 o = !0, n = r;
2927 } finally {
2928 try {
2929 if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
2930 } finally {
2931 if (o) throw n;
2932 }
2933 }
2934 return a;
2935 }
2936 }
2937 module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
2938
2939 /***/ }),
2940
2941 /***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
2942 /*!*****************************************************************!*\
2943 !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
2944 \*****************************************************************/
2945 /***/ ((module) => {
2946
2947 function _nonIterableRest() {
2948 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2949 }
2950 module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
2951
2952 /***/ }),
2953
2954 /***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
2955 /*!***************************************************************************!*\
2956 !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
2957 \***************************************************************************/
2958 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2959
2960 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2961 var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js");
2962 function _possibleConstructorReturn(t, e) {
2963 if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
2964 if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
2965 return assertThisInitialized(t);
2966 }
2967 module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
2968
2969 /***/ }),
2970
2971 /***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js":
2972 /*!****************************************************************!*\
2973 !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
2974 \****************************************************************/
2975 /***/ ((module) => {
2976
2977 function _setPrototypeOf(t, e) {
2978 return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
2979 return t.__proto__ = e, t;
2980 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
2981 }
2982 module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2983
2984 /***/ }),
2985
2986 /***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
2987 /*!***************************************************************!*\
2988 !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
2989 \***************************************************************/
2990 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2991
2992 var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
2993 var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
2994 var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
2995 var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
2996 function _slicedToArray(r, e) {
2997 return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
2998 }
2999 module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3000
3001 /***/ }),
3002
3003 /***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js":
3004 /*!*************************************************************!*\
3005 !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***!
3006 \*************************************************************/
3007 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3008
3009 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
3010 function toPrimitive(t, r) {
3011 if ("object" != _typeof(t) || !t) return t;
3012 var e = t[Symbol.toPrimitive];
3013 if (void 0 !== e) {
3014 var i = e.call(t, r || "default");
3015 if ("object" != _typeof(i)) return i;
3016 throw new TypeError("@@toPrimitive must return a primitive value.");
3017 }
3018 return ("string" === r ? String : Number)(t);
3019 }
3020 module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
3021
3022 /***/ }),
3023
3024 /***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js":
3025 /*!***************************************************************!*\
3026 !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
3027 \***************************************************************/
3028 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3029
3030 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
3031 var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js");
3032 function toPropertyKey(t) {
3033 var i = toPrimitive(t, "string");
3034 return "symbol" == _typeof(i) ? i : i + "";
3035 }
3036 module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
3037
3038 /***/ }),
3039
3040 /***/ "../node_modules/@babel/runtime/helpers/typeof.js":
3041 /*!********************************************************!*\
3042 !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
3043 \********************************************************/
3044 /***/ ((module) => {
3045
3046 function _typeof(o) {
3047 "@babel/helpers - typeof";
3048
3049 return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
3050 return typeof o;
3051 } : function (o) {
3052 return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
3053 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
3054 }
3055 module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
3056
3057 /***/ }),
3058
3059 /***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
3060 /*!****************************************************************************!*\
3061 !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
3062 \****************************************************************************/
3063 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3064
3065 var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
3066 function _unsupportedIterableToArray(r, a) {
3067 if (r) {
3068 if ("string" == typeof r) return arrayLikeToArray(r, a);
3069 var t = {}.toString.call(r).slice(8, -1);
3070 return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;
3071 }
3072 }
3073 module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3074
3075 /***/ })
3076
3077 /******/ });
3078 /************************************************************************/
3079 /******/ // The module cache
3080 /******/ var __webpack_module_cache__ = {};
3081 /******/
3082 /******/ // The require function
3083 /******/ function __webpack_require__(moduleId) {
3084 /******/ // Check if module is in cache
3085 /******/ var cachedModule = __webpack_module_cache__[moduleId];
3086 /******/ if (cachedModule !== undefined) {
3087 /******/ return cachedModule.exports;
3088 /******/ }
3089 /******/ // Create a new module (and put it into the cache)
3090 /******/ var module = __webpack_module_cache__[moduleId] = {
3091 /******/ // no module.id needed
3092 /******/ // no module.loaded needed
3093 /******/ exports: {}
3094 /******/ };
3095 /******/
3096 /******/ // Execute the module function
3097 /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
3098 /******/
3099 /******/ // Return the exports of the module
3100 /******/ return module.exports;
3101 /******/ }
3102 /******/
3103 /************************************************************************/
3104 var __webpack_exports__ = {};
3105 // This entry need to be wrapped in an IIFE because it need to be in strict mode.
3106 (() => {
3107 "use strict";
3108 /*!******************************************************!*\
3109 !*** ../modules/promotions/assets/js/react/index.js ***!
3110 \******************************************************/
3111
3112
3113 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
3114 var _module = _interopRequireDefault(__webpack_require__(/*! ./module.js */ "../modules/promotions/assets/js/react/module.js"));
3115 new _module.default();
3116 })();
3117
3118 /******/ })()
3119 ;
3120 //# sourceMappingURL=e-react-promotions.js.map