PluginProbe
Elementor Website Builder – more than just a page builder / 3.27.4
Elementor Website Builder – more than just a page builder v3.27.4
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.27.4, at assets/js/e-react-promotions.js

3,121 lines 120.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*! elementor - v3.27.0 - 13-02-2025 */
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 "data-testid": "e-promotion-card"
1336 }, /*#__PURE__*/_react.default.createElement(_ui.Stack, {
1337 direction: "row",
1338 alignItems: "center",
1339 py: 1,
1340 px: 2
1341 }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
1342 variant: "subtitle2"
1343 }, title), /*#__PURE__*/_react.default.createElement(_ui.Chip, {
1344 label: (0, _i18n.__)('PRO', 'elementor'),
1345 size: "small",
1346 variant: "outlined",
1347 color: "promotion",
1348 sx: {
1349 ml: 1
1350 }
1351 }), /*#__PURE__*/_react.default.createElement(_ui.CloseButton, {
1352 edge: "end",
1353 sx: {
1354 ml: 'auto'
1355 },
1356 slotProps: {
1357 icon: {
1358 fontSize: 'small'
1359 }
1360 },
1361 onClick: doClose
1362 })), /*#__PURE__*/_react.default.createElement(_ui.Image, {
1363 src: imgSrc,
1364 alt: imgAlt,
1365 sx: {
1366 height: 150,
1367 width: '100%'
1368 }
1369 }), /*#__PURE__*/_react.default.createElement(_ui.Stack, {
1370 px: 2
1371 }, /*#__PURE__*/_react.default.createElement(_ui.List, {
1372 sx: {
1373 pl: 2
1374 }
1375 }, description.map(function (text, index) {
1376 return /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
1377 key: index,
1378 sx: {
1379 listStyle: 'disc',
1380 display: 'list-item',
1381 color: 'text.secondary',
1382 p: 0
1383 }
1384 }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
1385 variant: "body2",
1386 color: "secondary"
1387 }, text));
1388 }))), /*#__PURE__*/_react.default.createElement(_ui.Stack, {
1389 pt: 1,
1390 pb: 1.5,
1391 px: 2
1392 }, /*#__PURE__*/_react.default.createElement(_ui.Button, {
1393 variant: "contained",
1394 size: "small",
1395 color: "promotion",
1396 onClick: redirectHandler,
1397 sx: {
1398 ml: 'auto'
1399 }
1400 }, ctaText))));
1401 };
1402 PromotionCard.propTypes = {
1403 doClose: PropTypes.func,
1404 promotionsData: PropTypes.object
1405 };
1406 var _default = exports["default"] = PromotionCard;
1407
1408 /***/ }),
1409
1410 /***/ "../modules/promotions/assets/js/react/controls/promotion.js":
1411 /*!*******************************************************************!*\
1412 !*** ../modules/promotions/assets/js/react/controls/promotion.js ***!
1413 \*******************************************************************/
1414 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1415
1416 "use strict";
1417
1418
1419 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1420 Object.defineProperty(exports, "__esModule", ({
1421 value: true
1422 }));
1423 exports["default"] = void 0;
1424 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1425 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1426 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1427 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
1428 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1429 var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1430 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
1431 var _app = _interopRequireDefault(__webpack_require__(/*! ../app */ "../modules/promotions/assets/js/react/app.js"));
1432 var _baseData = _interopRequireDefault(__webpack_require__(/*! elementor-controls/base-data */ "../assets/dev/js/editor/controls/base-data.js"));
1433 var _client = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js");
1434 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)); }
1435 function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
1436 var _default = exports["default"] = /*#__PURE__*/function (_ControlBaseDataView) {
1437 function _default() {
1438 var _this;
1439 (0, _classCallCheck2.default)(this, _default);
1440 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1441 args[_key] = arguments[_key];
1442 }
1443 _this = _callSuper(this, _default, [].concat(args));
1444 (0, _defineProperty2.default)(_this, "promotionInfoTip", null);
1445 (0, _defineProperty2.default)(_this, "selectors", {
1446 switcherElement: '.elementor-control-type-switcher',
1447 reactAnchor: '.e-promotion-react-wrapper'
1448 });
1449 (0, _defineProperty2.default)(_this, "onRoute", function () {});
1450 return _this;
1451 }
1452 (0, _inherits2.default)(_default, _ControlBaseDataView);
1453 return (0, _createClass2.default)(_default, [{
1454 key: "ui",
1455 value: function ui() {
1456 return {
1457 switcher: '[data-promotion].elementor-control-type-switcher'
1458 };
1459 }
1460 }, {
1461 key: "events",
1462 value: function events() {
1463 return {
1464 'click @ui.switcher': 'onClickControlSwitcher'
1465 };
1466 }
1467 }, {
1468 key: "promotionData",
1469 value: function promotionData(promotionType) {
1470 return elementorPromotionsData[promotionType] || {};
1471 }
1472 }, {
1473 key: "onClickControlSwitcher",
1474 value: function onClickControlSwitcher(event) {
1475 event.stopPropagation();
1476 this.mount(event.target);
1477 }
1478 }, {
1479 key: "mount",
1480 value: function mount(targetNode) {
1481 var _elementor,
1482 _elementor$getPrefere,
1483 _rootElement$getAttri,
1484 _this2 = this;
1485 if (this.promotionInfoTip) {
1486 return;
1487 }
1488 var wrapperElement = targetNode === null || targetNode === void 0 ? void 0 : targetNode.closest(this.selectors.switcherElement);
1489 var rootElement = wrapperElement === null || wrapperElement === void 0 ? void 0 : wrapperElement.querySelector(this.selectors.reactAnchor);
1490 if (!rootElement) {
1491 return;
1492 }
1493 this.attachEditorEventListeners();
1494 this.promotionInfoTip = (0, _client.createRoot)(rootElement);
1495 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',
1496 isRTL = elementorCommon.config.isRTL,
1497 promotionType = (_rootElement$getAttri = rootElement.getAttribute('data-promotion')) === null || _rootElement$getAttri === void 0 ? void 0 : _rootElement$getAttri.replace('_promotion', '');
1498 this.promotionInfoTip.render(/*#__PURE__*/_react.default.createElement(_app.default, {
1499 colorScheme: colorScheme,
1500 isRTL: isRTL,
1501 promotionsData: this.promotionData(promotionType),
1502 onClose: function onClose() {
1503 return _this2.unmount();
1504 }
1505 }));
1506 }
1507 }, {
1508 key: "unmount",
1509 value: function unmount() {
1510 if (this.promotionInfoTip) {
1511 this.detachEditorEventListeners();
1512 this.promotionInfoTip.unmount();
1513 }
1514 this.promotionInfoTip = null;
1515 }
1516 }, {
1517 key: "attachEditorEventListeners",
1518 value: function attachEditorEventListeners() {
1519 var _this3 = this;
1520 this.onRoute = function (component, route) {
1521 if ('panel/elements/categories' !== route && 'panel/editor/content' !== route) {
1522 return;
1523 }
1524 _this3.unmount();
1525 };
1526 $e.routes.on('run:after', this.onRoute);
1527 }
1528 }, {
1529 key: "detachEditorEventListeners",
1530 value: function detachEditorEventListeners() {
1531 $e.routes.off('run:after', this.onRoute);
1532 }
1533 }]);
1534 }(_baseData.default);
1535
1536 /***/ }),
1537
1538 /***/ "../modules/promotions/assets/js/react/module.js":
1539 /*!*******************************************************!*\
1540 !*** ../modules/promotions/assets/js/react/module.js ***!
1541 \*******************************************************/
1542 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1543
1544 "use strict";
1545
1546
1547 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1548 Object.defineProperty(exports, "__esModule", ({
1549 value: true
1550 }));
1551 exports["default"] = void 0;
1552 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1553 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1554 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
1555 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1556 var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1557 var _promotion = _interopRequireDefault(__webpack_require__(/*! ./controls/promotion */ "../modules/promotions/assets/js/react/controls/promotion.js"));
1558 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)); }
1559 function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
1560 var Module = exports["default"] = /*#__PURE__*/function (_elementorModules$edi) {
1561 function Module() {
1562 (0, _classCallCheck2.default)(this, Module);
1563 return _callSuper(this, Module, arguments);
1564 }
1565 (0, _inherits2.default)(Module, _elementorModules$edi);
1566 return (0, _createClass2.default)(Module, [{
1567 key: "onElementorInit",
1568 value: function onElementorInit() {
1569 elementor.addControlView('promotion_control', _promotion.default);
1570 }
1571 }]);
1572 }(elementorModules.editor.utils.Module);
1573
1574 /***/ }),
1575
1576 /***/ "../node_modules/object-assign/index.js":
1577 /*!**********************************************!*\
1578 !*** ../node_modules/object-assign/index.js ***!
1579 \**********************************************/
1580 /***/ ((module) => {
1581
1582 "use strict";
1583 /*
1584 object-assign
1585 (c) Sindre Sorhus
1586 @license MIT
1587 */
1588
1589
1590 /* eslint-disable no-unused-vars */
1591 var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1592 var hasOwnProperty = Object.prototype.hasOwnProperty;
1593 var propIsEnumerable = Object.prototype.propertyIsEnumerable;
1594
1595 function toObject(val) {
1596 if (val === null || val === undefined) {
1597 throw new TypeError('Object.assign cannot be called with null or undefined');
1598 }
1599
1600 return Object(val);
1601 }
1602
1603 function shouldUseNative() {
1604 try {
1605 if (!Object.assign) {
1606 return false;
1607 }
1608
1609 // Detect buggy property enumeration order in older V8 versions.
1610
1611 // https://bugs.chromium.org/p/v8/issues/detail?id=4118
1612 var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
1613 test1[5] = 'de';
1614 if (Object.getOwnPropertyNames(test1)[0] === '5') {
1615 return false;
1616 }
1617
1618 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
1619 var test2 = {};
1620 for (var i = 0; i < 10; i++) {
1621 test2['_' + String.fromCharCode(i)] = i;
1622 }
1623 var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
1624 return test2[n];
1625 });
1626 if (order2.join('') !== '0123456789') {
1627 return false;
1628 }
1629
1630 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
1631 var test3 = {};
1632 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
1633 test3[letter] = letter;
1634 });
1635 if (Object.keys(Object.assign({}, test3)).join('') !==
1636 'abcdefghijklmnopqrst') {
1637 return false;
1638 }
1639
1640 return true;
1641 } catch (err) {
1642 // We don't expect any of the above to throw, but better to be safe.
1643 return false;
1644 }
1645 }
1646
1647 module.exports = shouldUseNative() ? Object.assign : function (target, source) {
1648 var from;
1649 var to = toObject(target);
1650 var symbols;
1651
1652 for (var s = 1; s < arguments.length; s++) {
1653 from = Object(arguments[s]);
1654
1655 for (var key in from) {
1656 if (hasOwnProperty.call(from, key)) {
1657 to[key] = from[key];
1658 }
1659 }
1660
1661 if (getOwnPropertySymbols) {
1662 symbols = getOwnPropertySymbols(from);
1663 for (var i = 0; i < symbols.length; i++) {
1664 if (propIsEnumerable.call(from, symbols[i])) {
1665 to[symbols[i]] = from[symbols[i]];
1666 }
1667 }
1668 }
1669 }
1670
1671 return to;
1672 };
1673
1674
1675 /***/ }),
1676
1677 /***/ "../node_modules/prop-types/checkPropTypes.js":
1678 /*!****************************************************!*\
1679 !*** ../node_modules/prop-types/checkPropTypes.js ***!
1680 \****************************************************/
1681 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1682
1683 "use strict";
1684 /**
1685 * Copyright (c) 2013-present, Facebook, Inc.
1686 *
1687 * This source code is licensed under the MIT license found in the
1688 * LICENSE file in the root directory of this source tree.
1689 */
1690
1691
1692
1693 var printWarning = function() {};
1694
1695 if (true) {
1696 var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
1697 var loggedTypeFailures = {};
1698 var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
1699
1700 printWarning = function(text) {
1701 var message = 'Warning: ' + text;
1702 if (typeof console !== 'undefined') {
1703 console.error(message);
1704 }
1705 try {
1706 // --- Welcome to debugging React ---
1707 // This error was thrown as a convenience so that you can use this stack
1708 // to find the callsite that caused this warning to fire.
1709 throw new Error(message);
1710 } catch (x) { /**/ }
1711 };
1712 }
1713
1714 /**
1715 * Assert that the values match with the type specs.
1716 * Error messages are memorized and will only be shown once.
1717 *
1718 * @param {object} typeSpecs Map of name to a ReactPropType
1719 * @param {object} values Runtime values that need to be type-checked
1720 * @param {string} location e.g. "prop", "context", "child context"
1721 * @param {string} componentName Name of the component for error messages.
1722 * @param {?Function} getStack Returns the component stack.
1723 * @private
1724 */
1725 function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
1726 if (true) {
1727 for (var typeSpecName in typeSpecs) {
1728 if (has(typeSpecs, typeSpecName)) {
1729 var error;
1730 // Prop type validation may throw. In case they do, we don't want to
1731 // fail the render phase where it didn't fail before. So we log it.
1732 // After these have been cleaned up, we'll let them throw.
1733 try {
1734 // This is intentionally an invariant that gets caught. It's the same
1735 // behavior as without this statement except with a better message.
1736 if (typeof typeSpecs[typeSpecName] !== 'function') {
1737 var err = Error(
1738 (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
1739 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
1740 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
1741 );
1742 err.name = 'Invariant Violation';
1743 throw err;
1744 }
1745 error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
1746 } catch (ex) {
1747 error = ex;
1748 }
1749 if (error && !(error instanceof Error)) {
1750 printWarning(
1751 (componentName || 'React class') + ': type specification of ' +
1752 location + ' `' + typeSpecName + '` is invalid; the type checker ' +
1753 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
1754 'You may have forgotten to pass an argument to the type checker ' +
1755 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
1756 'shape all require an argument).'
1757 );
1758 }
1759 if (error instanceof Error && !(error.message in loggedTypeFailures)) {
1760 // Only monitor this failure once because there tends to be a lot of the
1761 // same error.
1762 loggedTypeFailures[error.message] = true;
1763
1764 var stack = getStack ? getStack() : '';
1765
1766 printWarning(
1767 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
1768 );
1769 }
1770 }
1771 }
1772 }
1773 }
1774
1775 /**
1776 * Resets warning cache when testing.
1777 *
1778 * @private
1779 */
1780 checkPropTypes.resetWarningCache = function() {
1781 if (true) {
1782 loggedTypeFailures = {};
1783 }
1784 }
1785
1786 module.exports = checkPropTypes;
1787
1788
1789 /***/ }),
1790
1791 /***/ "../node_modules/prop-types/factoryWithTypeCheckers.js":
1792 /*!*************************************************************!*\
1793 !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***!
1794 \*************************************************************/
1795 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1796
1797 "use strict";
1798 /**
1799 * Copyright (c) 2013-present, Facebook, Inc.
1800 *
1801 * This source code is licensed under the MIT license found in the
1802 * LICENSE file in the root directory of this source tree.
1803 */
1804
1805
1806
1807 var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
1808 var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js");
1809
1810 var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
1811 var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
1812 var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js");
1813
1814 var printWarning = function() {};
1815
1816 if (true) {
1817 printWarning = function(text) {
1818 var message = 'Warning: ' + text;
1819 if (typeof console !== 'undefined') {
1820 console.error(message);
1821 }
1822 try {
1823 // --- Welcome to debugging React ---
1824 // This error was thrown as a convenience so that you can use this stack
1825 // to find the callsite that caused this warning to fire.
1826 throw new Error(message);
1827 } catch (x) {}
1828 };
1829 }
1830
1831 function emptyFunctionThatReturnsNull() {
1832 return null;
1833 }
1834
1835 module.exports = function(isValidElement, throwOnDirectAccess) {
1836 /* global Symbol */
1837 var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
1838 var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
1839
1840 /**
1841 * Returns the iterator method function contained on the iterable object.
1842 *
1843 * Be sure to invoke the function with the iterable as context:
1844 *
1845 * var iteratorFn = getIteratorFn(myIterable);
1846 * if (iteratorFn) {
1847 * var iterator = iteratorFn.call(myIterable);
1848 * ...
1849 * }
1850 *
1851 * @param {?object} maybeIterable
1852 * @return {?function}
1853 */
1854 function getIteratorFn(maybeIterable) {
1855 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
1856 if (typeof iteratorFn === 'function') {
1857 return iteratorFn;
1858 }
1859 }
1860
1861 /**
1862 * Collection of methods that allow declaration and validation of props that are
1863 * supplied to React components. Example usage:
1864 *
1865 * var Props = require('ReactPropTypes');
1866 * var MyArticle = React.createClass({
1867 * propTypes: {
1868 * // An optional string prop named "description".
1869 * description: Props.string,
1870 *
1871 * // A required enum prop named "category".
1872 * category: Props.oneOf(['News','Photos']).isRequired,
1873 *
1874 * // A prop named "dialog" that requires an instance of Dialog.
1875 * dialog: Props.instanceOf(Dialog).isRequired
1876 * },
1877 * render: function() { ... }
1878 * });
1879 *
1880 * A more formal specification of how these methods are used:
1881 *
1882 * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
1883 * decl := ReactPropTypes.{type}(.isRequired)?
1884 *
1885 * Each and every declaration produces a function with the same signature. This
1886 * allows the creation of custom validation functions. For example:
1887 *
1888 * var MyLink = React.createClass({
1889 * propTypes: {
1890 * // An optional string or URI prop named "href".
1891 * href: function(props, propName, componentName) {
1892 * var propValue = props[propName];
1893 * if (propValue != null && typeof propValue !== 'string' &&
1894 * !(propValue instanceof URI)) {
1895 * return new Error(
1896 * 'Expected a string or an URI for ' + propName + ' in ' +
1897 * componentName
1898 * );
1899 * }
1900 * }
1901 * },
1902 * render: function() {...}
1903 * });
1904 *
1905 * @internal
1906 */
1907
1908 var ANONYMOUS = '<<anonymous>>';
1909
1910 // Important!
1911 // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
1912 var ReactPropTypes = {
1913 array: createPrimitiveTypeChecker('array'),
1914 bigint: createPrimitiveTypeChecker('bigint'),
1915 bool: createPrimitiveTypeChecker('boolean'),
1916 func: createPrimitiveTypeChecker('function'),
1917 number: createPrimitiveTypeChecker('number'),
1918 object: createPrimitiveTypeChecker('object'),
1919 string: createPrimitiveTypeChecker('string'),
1920 symbol: createPrimitiveTypeChecker('symbol'),
1921
1922 any: createAnyTypeChecker(),
1923 arrayOf: createArrayOfTypeChecker,
1924 element: createElementTypeChecker(),
1925 elementType: createElementTypeTypeChecker(),
1926 instanceOf: createInstanceTypeChecker,
1927 node: createNodeChecker(),
1928 objectOf: createObjectOfTypeChecker,
1929 oneOf: createEnumTypeChecker,
1930 oneOfType: createUnionTypeChecker,
1931 shape: createShapeTypeChecker,
1932 exact: createStrictShapeTypeChecker,
1933 };
1934
1935 /**
1936 * inlined Object.is polyfill to avoid requiring consumers ship their own
1937 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
1938 */
1939 /*eslint-disable no-self-compare*/
1940 function is(x, y) {
1941 // SameValue algorithm
1942 if (x === y) {
1943 // Steps 1-5, 7-10
1944 // Steps 6.b-6.e: +0 != -0
1945 return x !== 0 || 1 / x === 1 / y;
1946 } else {
1947 // Step 6.a: NaN == NaN
1948 return x !== x && y !== y;
1949 }
1950 }
1951 /*eslint-enable no-self-compare*/
1952
1953 /**
1954 * We use an Error-like object for backward compatibility as people may call
1955 * PropTypes directly and inspect their output. However, we don't use real
1956 * Errors anymore. We don't inspect their stack anyway, and creating them
1957 * is prohibitively expensive if they are created too often, such as what
1958 * happens in oneOfType() for any type before the one that matched.
1959 */
1960 function PropTypeError(message, data) {
1961 this.message = message;
1962 this.data = data && typeof data === 'object' ? data: {};
1963 this.stack = '';
1964 }
1965 // Make `instanceof Error` still work for returned errors.
1966 PropTypeError.prototype = Error.prototype;
1967
1968 function createChainableTypeChecker(validate) {
1969 if (true) {
1970 var manualPropTypeCallCache = {};
1971 var manualPropTypeWarningCount = 0;
1972 }
1973 function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
1974 componentName = componentName || ANONYMOUS;
1975 propFullName = propFullName || propName;
1976
1977 if (secret !== ReactPropTypesSecret) {
1978 if (throwOnDirectAccess) {
1979 // New behavior only for users of `prop-types` package
1980 var err = new Error(
1981 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1982 'Use `PropTypes.checkPropTypes()` to call them. ' +
1983 'Read more at http://fb.me/use-check-prop-types'
1984 );
1985 err.name = 'Invariant Violation';
1986 throw err;
1987 } else if ( true && typeof console !== 'undefined') {
1988 // Old behavior for people using React.PropTypes
1989 var cacheKey = componentName + ':' + propName;
1990 if (
1991 !manualPropTypeCallCache[cacheKey] &&
1992 // Avoid spamming the console because they are often not actionable except for lib authors
1993 manualPropTypeWarningCount < 3
1994 ) {
1995 printWarning(
1996 'You are manually calling a React.PropTypes validation ' +
1997 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
1998 'and will throw in the standalone `prop-types` package. ' +
1999 'You may be seeing this warning due to a third-party PropTypes ' +
2000 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
2001 );
2002 manualPropTypeCallCache[cacheKey] = true;
2003 manualPropTypeWarningCount++;
2004 }
2005 }
2006 }
2007 if (props[propName] == null) {
2008 if (isRequired) {
2009 if (props[propName] === null) {
2010 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
2011 }
2012 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
2013 }
2014 return null;
2015 } else {
2016 return validate(props, propName, componentName, location, propFullName);
2017 }
2018 }
2019
2020 var chainedCheckType = checkType.bind(null, false);
2021 chainedCheckType.isRequired = checkType.bind(null, true);
2022
2023 return chainedCheckType;
2024 }
2025
2026 function createPrimitiveTypeChecker(expectedType) {
2027 function validate(props, propName, componentName, location, propFullName, secret) {
2028 var propValue = props[propName];
2029 var propType = getPropType(propValue);
2030 if (propType !== expectedType) {
2031 // `propValue` being instance of, say, date/regexp, pass the 'object'
2032 // check, but we can offer a more precise error message here rather than
2033 // 'of type `object`'.
2034 var preciseType = getPreciseType(propValue);
2035
2036 return new PropTypeError(
2037 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
2038 {expectedType: expectedType}
2039 );
2040 }
2041 return null;
2042 }
2043 return createChainableTypeChecker(validate);
2044 }
2045
2046 function createAnyTypeChecker() {
2047 return createChainableTypeChecker(emptyFunctionThatReturnsNull);
2048 }
2049
2050 function createArrayOfTypeChecker(typeChecker) {
2051 function validate(props, propName, componentName, location, propFullName) {
2052 if (typeof typeChecker !== 'function') {
2053 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
2054 }
2055 var propValue = props[propName];
2056 if (!Array.isArray(propValue)) {
2057 var propType = getPropType(propValue);
2058 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
2059 }
2060 for (var i = 0; i < propValue.length; i++) {
2061 var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
2062 if (error instanceof Error) {
2063 return error;
2064 }
2065 }
2066 return null;
2067 }
2068 return createChainableTypeChecker(validate);
2069 }
2070
2071 function createElementTypeChecker() {
2072 function validate(props, propName, componentName, location, propFullName) {
2073 var propValue = props[propName];
2074 if (!isValidElement(propValue)) {
2075 var propType = getPropType(propValue);
2076 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
2077 }
2078 return null;
2079 }
2080 return createChainableTypeChecker(validate);
2081 }
2082
2083 function createElementTypeTypeChecker() {
2084 function validate(props, propName, componentName, location, propFullName) {
2085 var propValue = props[propName];
2086 if (!ReactIs.isValidElementType(propValue)) {
2087 var propType = getPropType(propValue);
2088 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
2089 }
2090 return null;
2091 }
2092 return createChainableTypeChecker(validate);
2093 }
2094
2095 function createInstanceTypeChecker(expectedClass) {
2096 function validate(props, propName, componentName, location, propFullName) {
2097 if (!(props[propName] instanceof expectedClass)) {
2098 var expectedClassName = expectedClass.name || ANONYMOUS;
2099 var actualClassName = getClassName(props[propName]);
2100 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
2101 }
2102 return null;
2103 }
2104 return createChainableTypeChecker(validate);
2105 }
2106
2107 function createEnumTypeChecker(expectedValues) {
2108 if (!Array.isArray(expectedValues)) {
2109 if (true) {
2110 if (arguments.length > 1) {
2111 printWarning(
2112 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
2113 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
2114 );
2115 } else {
2116 printWarning('Invalid argument supplied to oneOf, expected an array.');
2117 }
2118 }
2119 return emptyFunctionThatReturnsNull;
2120 }
2121
2122 function validate(props, propName, componentName, location, propFullName) {
2123 var propValue = props[propName];
2124 for (var i = 0; i < expectedValues.length; i++) {
2125 if (is(propValue, expectedValues[i])) {
2126 return null;
2127 }
2128 }
2129
2130 var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
2131 var type = getPreciseType(value);
2132 if (type === 'symbol') {
2133 return String(value);
2134 }
2135 return value;
2136 });
2137 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
2138 }
2139 return createChainableTypeChecker(validate);
2140 }
2141
2142 function createObjectOfTypeChecker(typeChecker) {
2143 function validate(props, propName, componentName, location, propFullName) {
2144 if (typeof typeChecker !== 'function') {
2145 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
2146 }
2147 var propValue = props[propName];
2148 var propType = getPropType(propValue);
2149 if (propType !== 'object') {
2150 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
2151 }
2152 for (var key in propValue) {
2153 if (has(propValue, key)) {
2154 var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
2155 if (error instanceof Error) {
2156 return error;
2157 }
2158 }
2159 }
2160 return null;
2161 }
2162 return createChainableTypeChecker(validate);
2163 }
2164
2165 function createUnionTypeChecker(arrayOfTypeCheckers) {
2166 if (!Array.isArray(arrayOfTypeCheckers)) {
2167 true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
2168 return emptyFunctionThatReturnsNull;
2169 }
2170
2171 for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
2172 var checker = arrayOfTypeCheckers[i];
2173 if (typeof checker !== 'function') {
2174 printWarning(
2175 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
2176 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
2177 );
2178 return emptyFunctionThatReturnsNull;
2179 }
2180 }
2181
2182 function validate(props, propName, componentName, location, propFullName) {
2183 var expectedTypes = [];
2184 for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
2185 var checker = arrayOfTypeCheckers[i];
2186 var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
2187 if (checkerResult == null) {
2188 return null;
2189 }
2190 if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
2191 expectedTypes.push(checkerResult.data.expectedType);
2192 }
2193 }
2194 var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
2195 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
2196 }
2197 return createChainableTypeChecker(validate);
2198 }
2199
2200 function createNodeChecker() {
2201 function validate(props, propName, componentName, location, propFullName) {
2202 if (!isNode(props[propName])) {
2203 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
2204 }
2205 return null;
2206 }
2207 return createChainableTypeChecker(validate);
2208 }
2209
2210 function invalidValidatorError(componentName, location, propFullName, key, type) {
2211 return new PropTypeError(
2212 (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
2213 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
2214 );
2215 }
2216
2217 function createShapeTypeChecker(shapeTypes) {
2218 function validate(props, propName, componentName, location, propFullName) {
2219 var propValue = props[propName];
2220 var propType = getPropType(propValue);
2221 if (propType !== 'object') {
2222 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
2223 }
2224 for (var key in shapeTypes) {
2225 var checker = shapeTypes[key];
2226 if (typeof checker !== 'function') {
2227 return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
2228 }
2229 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
2230 if (error) {
2231 return error;
2232 }
2233 }
2234 return null;
2235 }
2236 return createChainableTypeChecker(validate);
2237 }
2238
2239 function createStrictShapeTypeChecker(shapeTypes) {
2240 function validate(props, propName, componentName, location, propFullName) {
2241 var propValue = props[propName];
2242 var propType = getPropType(propValue);
2243 if (propType !== 'object') {
2244 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
2245 }
2246 // We need to check all keys in case some are required but missing from props.
2247 var allKeys = assign({}, props[propName], shapeTypes);
2248 for (var key in allKeys) {
2249 var checker = shapeTypes[key];
2250 if (has(shapeTypes, key) && typeof checker !== 'function') {
2251 return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
2252 }
2253 if (!checker) {
2254 return new PropTypeError(
2255 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
2256 '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
2257 '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
2258 );
2259 }
2260 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
2261 if (error) {
2262 return error;
2263 }
2264 }
2265 return null;
2266 }
2267
2268 return createChainableTypeChecker(validate);
2269 }
2270
2271 function isNode(propValue) {
2272 switch (typeof propValue) {
2273 case 'number':
2274 case 'string':
2275 case 'undefined':
2276 return true;
2277 case 'boolean':
2278 return !propValue;
2279 case 'object':
2280 if (Array.isArray(propValue)) {
2281 return propValue.every(isNode);
2282 }
2283 if (propValue === null || isValidElement(propValue)) {
2284 return true;
2285 }
2286
2287 var iteratorFn = getIteratorFn(propValue);
2288 if (iteratorFn) {
2289 var iterator = iteratorFn.call(propValue);
2290 var step;
2291 if (iteratorFn !== propValue.entries) {
2292 while (!(step = iterator.next()).done) {
2293 if (!isNode(step.value)) {
2294 return false;
2295 }
2296 }
2297 } else {
2298 // Iterator will provide entry [k,v] tuples rather than values.
2299 while (!(step = iterator.next()).done) {
2300 var entry = step.value;
2301 if (entry) {
2302 if (!isNode(entry[1])) {
2303 return false;
2304 }
2305 }
2306 }
2307 }
2308 } else {
2309 return false;
2310 }
2311
2312 return true;
2313 default:
2314 return false;
2315 }
2316 }
2317
2318 function isSymbol(propType, propValue) {
2319 // Native Symbol.
2320 if (propType === 'symbol') {
2321 return true;
2322 }
2323
2324 // falsy value can't be a Symbol
2325 if (!propValue) {
2326 return false;
2327 }
2328
2329 // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
2330 if (propValue['@@toStringTag'] === 'Symbol') {
2331 return true;
2332 }
2333
2334 // Fallback for non-spec compliant Symbols which are polyfilled.
2335 if (typeof Symbol === 'function' && propValue instanceof Symbol) {
2336 return true;
2337 }
2338
2339 return false;
2340 }
2341
2342 // Equivalent of `typeof` but with special handling for array and regexp.
2343 function getPropType(propValue) {
2344 var propType = typeof propValue;
2345 if (Array.isArray(propValue)) {
2346 return 'array';
2347 }
2348 if (propValue instanceof RegExp) {
2349 // Old webkits (at least until Android 4.0) return 'function' rather than
2350 // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
2351 // passes PropTypes.object.
2352 return 'object';
2353 }
2354 if (isSymbol(propType, propValue)) {
2355 return 'symbol';
2356 }
2357 return propType;
2358 }
2359
2360 // This handles more types than `getPropType`. Only used for error messages.
2361 // See `createPrimitiveTypeChecker`.
2362 function getPreciseType(propValue) {
2363 if (typeof propValue === 'undefined' || propValue === null) {
2364 return '' + propValue;
2365 }
2366 var propType = getPropType(propValue);
2367 if (propType === 'object') {
2368 if (propValue instanceof Date) {
2369 return 'date';
2370 } else if (propValue instanceof RegExp) {
2371 return 'regexp';
2372 }
2373 }
2374 return propType;
2375 }
2376
2377 // Returns a string that is postfixed to a warning about an invalid type.
2378 // For example, "undefined" or "of type array"
2379 function getPostfixForTypeWarning(value) {
2380 var type = getPreciseType(value);
2381 switch (type) {
2382 case 'array':
2383 case 'object':
2384 return 'an ' + type;
2385 case 'boolean':
2386 case 'date':
2387 case 'regexp':
2388 return 'a ' + type;
2389 default:
2390 return type;
2391 }
2392 }
2393
2394 // Returns class name of the object, if any.
2395 function getClassName(propValue) {
2396 if (!propValue.constructor || !propValue.constructor.name) {
2397 return ANONYMOUS;
2398 }
2399 return propValue.constructor.name;
2400 }
2401
2402 ReactPropTypes.checkPropTypes = checkPropTypes;
2403 ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
2404 ReactPropTypes.PropTypes = ReactPropTypes;
2405
2406 return ReactPropTypes;
2407 };
2408
2409
2410 /***/ }),
2411
2412 /***/ "../node_modules/prop-types/index.js":
2413 /*!*******************************************!*\
2414 !*** ../node_modules/prop-types/index.js ***!
2415 \*******************************************/
2416 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2417
2418 /**
2419 * Copyright (c) 2013-present, Facebook, Inc.
2420 *
2421 * This source code is licensed under the MIT license found in the
2422 * LICENSE file in the root directory of this source tree.
2423 */
2424
2425 if (true) {
2426 var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
2427
2428 // By explicitly using `prop-types` you are opting into new development behavior.
2429 // http://fb.me/prop-types-in-prod
2430 var throwOnDirectAccess = true;
2431 module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
2432 } else {}
2433
2434
2435 /***/ }),
2436
2437 /***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js":
2438 /*!**************************************************************!*\
2439 !*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
2440 \**************************************************************/
2441 /***/ ((module) => {
2442
2443 "use strict";
2444 /**
2445 * Copyright (c) 2013-present, Facebook, Inc.
2446 *
2447 * This source code is licensed under the MIT license found in the
2448 * LICENSE file in the root directory of this source tree.
2449 */
2450
2451
2452
2453 var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
2454
2455 module.exports = ReactPropTypesSecret;
2456
2457
2458 /***/ }),
2459
2460 /***/ "../node_modules/prop-types/lib/has.js":
2461 /*!*********************************************!*\
2462 !*** ../node_modules/prop-types/lib/has.js ***!
2463 \*********************************************/
2464 /***/ ((module) => {
2465
2466 module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
2467
2468
2469 /***/ }),
2470
2471 /***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
2472 /*!************************************************************************************!*\
2473 !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
2474 \************************************************************************************/
2475 /***/ ((__unused_webpack_module, exports) => {
2476
2477 "use strict";
2478 /** @license React v16.13.1
2479 * react-is.development.js
2480 *
2481 * Copyright (c) Facebook, Inc. and its affiliates.
2482 *
2483 * This source code is licensed under the MIT license found in the
2484 * LICENSE file in the root directory of this source tree.
2485 */
2486
2487
2488
2489
2490
2491 if (true) {
2492 (function() {
2493 'use strict';
2494
2495 // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
2496 // nor polyfill, then a plain number is used for performance.
2497 var hasSymbol = typeof Symbol === 'function' && Symbol.for;
2498 var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
2499 var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
2500 var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
2501 var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
2502 var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
2503 var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
2504 var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
2505 // (unstable) APIs that have been removed. Can we remove the symbols?
2506
2507 var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
2508 var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
2509 var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
2510 var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
2511 var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
2512 var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
2513 var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
2514 var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
2515 var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
2516 var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
2517 var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
2518
2519 function isValidElementType(type) {
2520 return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2521 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);
2522 }
2523
2524 function typeOf(object) {
2525 if (typeof object === 'object' && object !== null) {
2526 var $$typeof = object.$$typeof;
2527
2528 switch ($$typeof) {
2529 case REACT_ELEMENT_TYPE:
2530 var type = object.type;
2531
2532 switch (type) {
2533 case REACT_ASYNC_MODE_TYPE:
2534 case REACT_CONCURRENT_MODE_TYPE:
2535 case REACT_FRAGMENT_TYPE:
2536 case REACT_PROFILER_TYPE:
2537 case REACT_STRICT_MODE_TYPE:
2538 case REACT_SUSPENSE_TYPE:
2539 return type;
2540
2541 default:
2542 var $$typeofType = type && type.$$typeof;
2543
2544 switch ($$typeofType) {
2545 case REACT_CONTEXT_TYPE:
2546 case REACT_FORWARD_REF_TYPE:
2547 case REACT_LAZY_TYPE:
2548 case REACT_MEMO_TYPE:
2549 case REACT_PROVIDER_TYPE:
2550 return $$typeofType;
2551
2552 default:
2553 return $$typeof;
2554 }
2555
2556 }
2557
2558 case REACT_PORTAL_TYPE:
2559 return $$typeof;
2560 }
2561 }
2562
2563 return undefined;
2564 } // AsyncMode is deprecated along with isAsyncMode
2565
2566 var AsyncMode = REACT_ASYNC_MODE_TYPE;
2567 var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
2568 var ContextConsumer = REACT_CONTEXT_TYPE;
2569 var ContextProvider = REACT_PROVIDER_TYPE;
2570 var Element = REACT_ELEMENT_TYPE;
2571 var ForwardRef = REACT_FORWARD_REF_TYPE;
2572 var Fragment = REACT_FRAGMENT_TYPE;
2573 var Lazy = REACT_LAZY_TYPE;
2574 var Memo = REACT_MEMO_TYPE;
2575 var Portal = REACT_PORTAL_TYPE;
2576 var Profiler = REACT_PROFILER_TYPE;
2577 var StrictMode = REACT_STRICT_MODE_TYPE;
2578 var Suspense = REACT_SUSPENSE_TYPE;
2579 var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
2580
2581 function isAsyncMode(object) {
2582 {
2583 if (!hasWarnedAboutDeprecatedIsAsyncMode) {
2584 hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
2585
2586 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.');
2587 }
2588 }
2589
2590 return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
2591 }
2592 function isConcurrentMode(object) {
2593 return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
2594 }
2595 function isContextConsumer(object) {
2596 return typeOf(object) === REACT_CONTEXT_TYPE;
2597 }
2598 function isContextProvider(object) {
2599 return typeOf(object) === REACT_PROVIDER_TYPE;
2600 }
2601 function isElement(object) {
2602 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2603 }
2604 function isForwardRef(object) {
2605 return typeOf(object) === REACT_FORWARD_REF_TYPE;
2606 }
2607 function isFragment(object) {
2608 return typeOf(object) === REACT_FRAGMENT_TYPE;
2609 }
2610 function isLazy(object) {
2611 return typeOf(object) === REACT_LAZY_TYPE;
2612 }
2613 function isMemo(object) {
2614 return typeOf(object) === REACT_MEMO_TYPE;
2615 }
2616 function isPortal(object) {
2617 return typeOf(object) === REACT_PORTAL_TYPE;
2618 }
2619 function isProfiler(object) {
2620 return typeOf(object) === REACT_PROFILER_TYPE;
2621 }
2622 function isStrictMode(object) {
2623 return typeOf(object) === REACT_STRICT_MODE_TYPE;
2624 }
2625 function isSuspense(object) {
2626 return typeOf(object) === REACT_SUSPENSE_TYPE;
2627 }
2628
2629 exports.AsyncMode = AsyncMode;
2630 exports.ConcurrentMode = ConcurrentMode;
2631 exports.ContextConsumer = ContextConsumer;
2632 exports.ContextProvider = ContextProvider;
2633 exports.Element = Element;
2634 exports.ForwardRef = ForwardRef;
2635 exports.Fragment = Fragment;
2636 exports.Lazy = Lazy;
2637 exports.Memo = Memo;
2638 exports.Portal = Portal;
2639 exports.Profiler = Profiler;
2640 exports.StrictMode = StrictMode;
2641 exports.Suspense = Suspense;
2642 exports.isAsyncMode = isAsyncMode;
2643 exports.isConcurrentMode = isConcurrentMode;
2644 exports.isContextConsumer = isContextConsumer;
2645 exports.isContextProvider = isContextProvider;
2646 exports.isElement = isElement;
2647 exports.isForwardRef = isForwardRef;
2648 exports.isFragment = isFragment;
2649 exports.isLazy = isLazy;
2650 exports.isMemo = isMemo;
2651 exports.isPortal = isPortal;
2652 exports.isProfiler = isProfiler;
2653 exports.isStrictMode = isStrictMode;
2654 exports.isSuspense = isSuspense;
2655 exports.isValidElementType = isValidElementType;
2656 exports.typeOf = typeOf;
2657 })();
2658 }
2659
2660
2661 /***/ }),
2662
2663 /***/ "../node_modules/prop-types/node_modules/react-is/index.js":
2664 /*!*****************************************************************!*\
2665 !*** ../node_modules/prop-types/node_modules/react-is/index.js ***!
2666 \*****************************************************************/
2667 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2668
2669 "use strict";
2670
2671
2672 if (false) {} else {
2673 module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
2674 }
2675
2676
2677 /***/ }),
2678
2679 /***/ "../node_modules/react-dom/client.js":
2680 /*!*******************************************!*\
2681 !*** ../node_modules/react-dom/client.js ***!
2682 \*******************************************/
2683 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2684
2685 "use strict";
2686
2687
2688 var m = __webpack_require__(/*! react-dom */ "react-dom");
2689 if (false) {} else {
2690 var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2691 exports.createRoot = function(c, o) {
2692 i.usingClientEntryPoint = true;
2693 try {
2694 return m.createRoot(c, o);
2695 } finally {
2696 i.usingClientEntryPoint = false;
2697 }
2698 };
2699 exports.hydrateRoot = function(c, h, o) {
2700 i.usingClientEntryPoint = true;
2701 try {
2702 return m.hydrateRoot(c, h, o);
2703 } finally {
2704 i.usingClientEntryPoint = false;
2705 }
2706 };
2707 }
2708
2709
2710 /***/ }),
2711
2712 /***/ "react":
2713 /*!************************!*\
2714 !*** external "React" ***!
2715 \************************/
2716 /***/ ((module) => {
2717
2718 "use strict";
2719 module.exports = React;
2720
2721 /***/ }),
2722
2723 /***/ "react-dom":
2724 /*!***************************!*\
2725 !*** external "ReactDOM" ***!
2726 \***************************/
2727 /***/ ((module) => {
2728
2729 "use strict";
2730 module.exports = ReactDOM;
2731
2732 /***/ }),
2733
2734 /***/ "@elementor/ui":
2735 /*!*********************************!*\
2736 !*** external "elementorV2.ui" ***!
2737 \*********************************/
2738 /***/ ((module) => {
2739
2740 "use strict";
2741 module.exports = elementorV2.ui;
2742
2743 /***/ }),
2744
2745 /***/ "@wordpress/i18n":
2746 /*!**************************!*\
2747 !*** external "wp.i18n" ***!
2748 \**************************/
2749 /***/ ((module) => {
2750
2751 "use strict";
2752 module.exports = wp.i18n;
2753
2754 /***/ }),
2755
2756 /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
2757 /*!******************************************************************!*\
2758 !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
2759 \******************************************************************/
2760 /***/ ((module) => {
2761
2762 function _arrayLikeToArray(r, a) {
2763 (null == a || a > r.length) && (a = r.length);
2764 for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
2765 return n;
2766 }
2767 module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2768
2769 /***/ }),
2770
2771 /***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
2772 /*!****************************************************************!*\
2773 !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
2774 \****************************************************************/
2775 /***/ ((module) => {
2776
2777 function _arrayWithHoles(r) {
2778 if (Array.isArray(r)) return r;
2779 }
2780 module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
2781
2782 /***/ }),
2783
2784 /***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js":
2785 /*!***********************************************************************!*\
2786 !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
2787 \***********************************************************************/
2788 /***/ ((module) => {
2789
2790 function _assertThisInitialized(e) {
2791 if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2792 return e;
2793 }
2794 module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
2795
2796 /***/ }),
2797
2798 /***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
2799 /*!****************************************************************!*\
2800 !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
2801 \****************************************************************/
2802 /***/ ((module) => {
2803
2804 function _classCallCheck(a, n) {
2805 if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
2806 }
2807 module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
2808
2809 /***/ }),
2810
2811 /***/ "../node_modules/@babel/runtime/helpers/createClass.js":
2812 /*!*************************************************************!*\
2813 !*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
2814 \*************************************************************/
2815 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2816
2817 var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2818 function _defineProperties(e, r) {
2819 for (var t = 0; t < r.length; t++) {
2820 var o = r[t];
2821 o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
2822 }
2823 }
2824 function _createClass(e, r, t) {
2825 return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
2826 writable: !1
2827 }), e;
2828 }
2829 module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
2830
2831 /***/ }),
2832
2833 /***/ "../node_modules/@babel/runtime/helpers/defineProperty.js":
2834 /*!****************************************************************!*\
2835 !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***!
2836 \****************************************************************/
2837 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2838
2839 var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2840 function _defineProperty(e, r, t) {
2841 return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
2842 value: t,
2843 enumerable: !0,
2844 configurable: !0,
2845 writable: !0
2846 }) : e[r] = t, e;
2847 }
2848 module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
2849
2850 /***/ }),
2851
2852 /***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js":
2853 /*!****************************************************************!*\
2854 !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
2855 \****************************************************************/
2856 /***/ ((module) => {
2857
2858 function _getPrototypeOf(t) {
2859 return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
2860 return t.__proto__ || Object.getPrototypeOf(t);
2861 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
2862 }
2863 module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2864
2865 /***/ }),
2866
2867 /***/ "../node_modules/@babel/runtime/helpers/inherits.js":
2868 /*!**********************************************************!*\
2869 !*** ../node_modules/@babel/runtime/helpers/inherits.js ***!
2870 \**********************************************************/
2871 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2872
2873 var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2874 function _inherits(t, e) {
2875 if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
2876 t.prototype = Object.create(e && e.prototype, {
2877 constructor: {
2878 value: t,
2879 writable: !0,
2880 configurable: !0
2881 }
2882 }), Object.defineProperty(t, "prototype", {
2883 writable: !1
2884 }), e && setPrototypeOf(t, e);
2885 }
2886 module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
2887
2888 /***/ }),
2889
2890 /***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
2891 /*!***********************************************************************!*\
2892 !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
2893 \***********************************************************************/
2894 /***/ ((module) => {
2895
2896 function _interopRequireDefault(e) {
2897 return e && e.__esModule ? e : {
2898 "default": e
2899 };
2900 }
2901 module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
2902
2903 /***/ }),
2904
2905 /***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
2906 /*!**********************************************************************!*\
2907 !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
2908 \**********************************************************************/
2909 /***/ ((module) => {
2910
2911 function _iterableToArrayLimit(r, l) {
2912 var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
2913 if (null != t) {
2914 var e,
2915 n,
2916 i,
2917 u,
2918 a = [],
2919 f = !0,
2920 o = !1;
2921 try {
2922 if (i = (t = t.call(r)).next, 0 === l) {
2923 if (Object(t) !== t) return;
2924 f = !1;
2925 } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
2926 } catch (r) {
2927 o = !0, n = r;
2928 } finally {
2929 try {
2930 if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
2931 } finally {
2932 if (o) throw n;
2933 }
2934 }
2935 return a;
2936 }
2937 }
2938 module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
2939
2940 /***/ }),
2941
2942 /***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
2943 /*!*****************************************************************!*\
2944 !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
2945 \*****************************************************************/
2946 /***/ ((module) => {
2947
2948 function _nonIterableRest() {
2949 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2950 }
2951 module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
2952
2953 /***/ }),
2954
2955 /***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
2956 /*!***************************************************************************!*\
2957 !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
2958 \***************************************************************************/
2959 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2960
2961 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2962 var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js");
2963 function _possibleConstructorReturn(t, e) {
2964 if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
2965 if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
2966 return assertThisInitialized(t);
2967 }
2968 module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
2969
2970 /***/ }),
2971
2972 /***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js":
2973 /*!****************************************************************!*\
2974 !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
2975 \****************************************************************/
2976 /***/ ((module) => {
2977
2978 function _setPrototypeOf(t, e) {
2979 return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
2980 return t.__proto__ = e, t;
2981 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
2982 }
2983 module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2984
2985 /***/ }),
2986
2987 /***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
2988 /*!***************************************************************!*\
2989 !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
2990 \***************************************************************/
2991 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2992
2993 var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
2994 var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
2995 var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
2996 var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
2997 function _slicedToArray(r, e) {
2998 return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
2999 }
3000 module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3001
3002 /***/ }),
3003
3004 /***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js":
3005 /*!*************************************************************!*\
3006 !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***!
3007 \*************************************************************/
3008 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3009
3010 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
3011 function toPrimitive(t, r) {
3012 if ("object" != _typeof(t) || !t) return t;
3013 var e = t[Symbol.toPrimitive];
3014 if (void 0 !== e) {
3015 var i = e.call(t, r || "default");
3016 if ("object" != _typeof(i)) return i;
3017 throw new TypeError("@@toPrimitive must return a primitive value.");
3018 }
3019 return ("string" === r ? String : Number)(t);
3020 }
3021 module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
3022
3023 /***/ }),
3024
3025 /***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js":
3026 /*!***************************************************************!*\
3027 !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
3028 \***************************************************************/
3029 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3030
3031 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
3032 var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js");
3033 function toPropertyKey(t) {
3034 var i = toPrimitive(t, "string");
3035 return "symbol" == _typeof(i) ? i : i + "";
3036 }
3037 module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
3038
3039 /***/ }),
3040
3041 /***/ "../node_modules/@babel/runtime/helpers/typeof.js":
3042 /*!********************************************************!*\
3043 !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
3044 \********************************************************/
3045 /***/ ((module) => {
3046
3047 function _typeof(o) {
3048 "@babel/helpers - typeof";
3049
3050 return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
3051 return typeof o;
3052 } : function (o) {
3053 return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
3054 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
3055 }
3056 module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
3057
3058 /***/ }),
3059
3060 /***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
3061 /*!****************************************************************************!*\
3062 !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
3063 \****************************************************************************/
3064 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3065
3066 var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
3067 function _unsupportedIterableToArray(r, a) {
3068 if (r) {
3069 if ("string" == typeof r) return arrayLikeToArray(r, a);
3070 var t = {}.toString.call(r).slice(8, -1);
3071 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;
3072 }
3073 }
3074 module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3075
3076 /***/ })
3077
3078 /******/ });
3079 /************************************************************************/
3080 /******/ // The module cache
3081 /******/ var __webpack_module_cache__ = {};
3082 /******/
3083 /******/ // The require function
3084 /******/ function __webpack_require__(moduleId) {
3085 /******/ // Check if module is in cache
3086 /******/ var cachedModule = __webpack_module_cache__[moduleId];
3087 /******/ if (cachedModule !== undefined) {
3088 /******/ return cachedModule.exports;
3089 /******/ }
3090 /******/ // Create a new module (and put it into the cache)
3091 /******/ var module = __webpack_module_cache__[moduleId] = {
3092 /******/ // no module.id needed
3093 /******/ // no module.loaded needed
3094 /******/ exports: {}
3095 /******/ };
3096 /******/
3097 /******/ // Execute the module function
3098 /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
3099 /******/
3100 /******/ // Return the exports of the module
3101 /******/ return module.exports;
3102 /******/ }
3103 /******/
3104 /************************************************************************/
3105 var __webpack_exports__ = {};
3106 // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
3107 (() => {
3108 "use strict";
3109 /*!******************************************************!*\
3110 !*** ../modules/promotions/assets/js/react/index.js ***!
3111 \******************************************************/
3112
3113
3114 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
3115 var _module = _interopRequireDefault(__webpack_require__(/*! ./module.js */ "../modules/promotions/assets/js/react/module.js"));
3116 new _module.default();
3117 })();
3118
3119 /******/ })()
3120 ;
3121 //# sourceMappingURL=e-react-promotions.js.map