PluginProbe
Elementor Website Builder – more than just a page builder / 3.30.0-beta1
Elementor Website Builder – more than just a page builder v3.30.0-beta1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
elementor / assets / js / editor-v4-welcome-opt-in.js

editor-v4-welcome-opt-in.js in Elementor Website Builder – more than just a page builder 3.30.0-beta1, at assets/js/editor-v4-welcome-opt-in.js

1,592 lines 59.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*! elementor - v3.30.0 - 10-06-2025 */
2 /******/ (() => { // webpackBootstrap
3 /******/ var __webpack_modules__ = ({
4
5 /***/ "../assets/dev/js/utils/react.js":
6 /*!***************************************!*\
7 !*** ../assets/dev/js/utils/react.js ***!
8 \***************************************/
9 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
10
11 "use strict";
12
13
14 var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
15 Object.defineProperty(exports, "__esModule", ({
16 value: true
17 }));
18 exports["default"] = void 0;
19 var React = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
20 var ReactDOM = _interopRequireWildcard(__webpack_require__(/*! react-dom */ "react-dom"));
21 var _client = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js");
22 function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
23 function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24 /**
25 * Support conditional rendering of a React App to the DOM, based on the React version.
26 * We use `createRoot` when available, but fallback to `ReactDOM.render` for older versions.
27 *
28 * @param { React.ReactElement } app The app to render.
29 * @param { HTMLElement } domElement The DOM element to render the app into.
30 *
31 * @return {{ unmount: () => void }} The unmount function.
32 */
33 function render(app, domElement) {
34 var unmountFunction;
35 try {
36 var root = (0, _client.createRoot)(domElement);
37 root.render(app);
38 unmountFunction = function unmountFunction() {
39 root.unmount();
40 };
41 } catch (e) {
42 // eslint-disable-next-line react/no-deprecated
43 ReactDOM.render(app, domElement);
44 unmountFunction = function unmountFunction() {
45 // eslint-disable-next-line react/no-deprecated
46 ReactDOM.unmountComponentAtNode(domElement);
47 };
48 }
49 return {
50 unmount: unmountFunction
51 };
52 }
53 var _default = exports["default"] = {
54 render: render
55 };
56
57 /***/ }),
58
59 /***/ "../modules/atomic-opt-in/assets/js/welcome-screen/welcome-dialog.js":
60 /*!***************************************************************************!*\
61 !*** ../modules/atomic-opt-in/assets/js/welcome-screen/welcome-dialog.js ***!
62 \***************************************************************************/
63 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
64
65 "use strict";
66 /* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
67
68
69 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
70 var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
71 Object.defineProperty(exports, "__esModule", ({
72 value: true
73 }));
74 exports.WelcomeDialog = void 0;
75 var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
76 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
77 var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
78 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
79 function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
80 function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
81 var i18n = {
82 heading: (0, _i18n.__)('Say hello to a new experience!', 'elementor'),
83 introduction: (0, _i18n.__)('You\'re now using Editor V4, a new generation of web creation.', 'elementor'),
84 listItems: [(0, _i18n.__)('Try out Editor V4 elements such as Div, SVG and Paragraph.', 'elementor'), (0, _i18n.__)('Set up a new Class and apply it site-wide for perfect consistency.', 'elementor'), (0, _i18n.__)('Customize any style element per screen size by switching between responsive views.', 'elementor')],
85 footerText: (0, _i18n.__)('Need help getting started?', 'elementor'),
86 helpCenter: (0, _i18n.__)('Learn more', 'elementor'),
87 closeButton: (0, _i18n.__)('Let\'s Go', 'elementor')
88 };
89 var contentLinks = {
90 helpCenter: 'https://go.elementor.com/wp-dash-opt-in-v4-help-center/'
91 };
92 var WelcomeDialog = exports.WelcomeDialog = function WelcomeDialog(_ref) {
93 var doClose = _ref.doClose;
94 var anchorElRef = (0, _react.useRef)(null);
95 var _useState = (0, _react.useState)(false),
96 _useState2 = (0, _slicedToArray2.default)(_useState, 2),
97 isMounted = _useState2[0],
98 setIsMounted = _useState2[1];
99 (0, _react.useEffect)(function () {
100 anchorElRef.current = document.body;
101 setIsMounted(true);
102 }, []);
103 if (!isMounted || !anchorElRef.current) {
104 return null;
105 }
106 return /*#__PURE__*/_react.default.createElement(_ui.Dialog, {
107 open: Boolean(anchorElRef.current),
108 onClose: doClose,
109 maxWidth: "sm"
110 }, /*#__PURE__*/_react.default.createElement(_ui.Box, {
111 sx: {
112 aspectRatio: '2',
113 backgroundImage: 'url(https://assets.elementor.com/v4-promotion/v1/images/v4_opt_in.png)',
114 backgroundSize: 'cover',
115 backgroundPosition: 'center'
116 }
117 }), /*#__PURE__*/_react.default.createElement(_ui.Stack, {
118 pt: 3,
119 pb: 1.5,
120 px: 3,
121 gap: 3
122 }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
123 variant: "h6",
124 color: "text.primary"
125 }, i18n.heading), /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
126 variant: "body1",
127 color: "text.secondary"
128 }, i18n.introduction), /*#__PURE__*/_react.default.createElement(_ui.List, {
129 sx: {
130 pl: 2
131 }
132 }, i18n.listItems.map(function (text, index) {
133 return /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
134 key: index,
135 sx: {
136 listStyle: 'disc',
137 display: 'list-item',
138 color: 'text.secondary',
139 p: 0
140 }
141 }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
142 variant: "body1"
143 }, text));
144 }))), /*#__PURE__*/_react.default.createElement(_ui.Stack, {
145 direction: "row",
146 alignItems: "center",
147 gap: 1.5
148 }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
149 variant: "body1",
150 color: "text.secondary"
151 }, i18n.footerText), /*#__PURE__*/_react.default.createElement(_ui.Link, {
152 href: contentLinks.helpCenter,
153 target: "_blank",
154 variant: "body1",
155 color: "info.main",
156 sx: {
157 textDecoration: 'none'
158 }
159 }, i18n.helpCenter))), /*#__PURE__*/_react.default.createElement(_ui.Divider, null), /*#__PURE__*/_react.default.createElement(_ui.Stack, {
160 py: 2,
161 px: 3
162 }, /*#__PURE__*/_react.default.createElement(_ui.Button, {
163 variant: "contained",
164 color: "accent",
165 onClick: doClose,
166 sx: {
167 ml: 'auto'
168 }
169 }, i18n.closeButton)));
170 };
171 WelcomeDialog.propTypes = {
172 doClose: PropTypes.func
173 };
174
175 /***/ }),
176
177 /***/ "../node_modules/object-assign/index.js":
178 /*!**********************************************!*\
179 !*** ../node_modules/object-assign/index.js ***!
180 \**********************************************/
181 /***/ ((module) => {
182
183 "use strict";
184 /*
185 object-assign
186 (c) Sindre Sorhus
187 @license MIT
188 */
189
190
191 /* eslint-disable no-unused-vars */
192 var getOwnPropertySymbols = Object.getOwnPropertySymbols;
193 var hasOwnProperty = Object.prototype.hasOwnProperty;
194 var propIsEnumerable = Object.prototype.propertyIsEnumerable;
195
196 function toObject(val) {
197 if (val === null || val === undefined) {
198 throw new TypeError('Object.assign cannot be called with null or undefined');
199 }
200
201 return Object(val);
202 }
203
204 function shouldUseNative() {
205 try {
206 if (!Object.assign) {
207 return false;
208 }
209
210 // Detect buggy property enumeration order in older V8 versions.
211
212 // https://bugs.chromium.org/p/v8/issues/detail?id=4118
213 var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
214 test1[5] = 'de';
215 if (Object.getOwnPropertyNames(test1)[0] === '5') {
216 return false;
217 }
218
219 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
220 var test2 = {};
221 for (var i = 0; i < 10; i++) {
222 test2['_' + String.fromCharCode(i)] = i;
223 }
224 var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
225 return test2[n];
226 });
227 if (order2.join('') !== '0123456789') {
228 return false;
229 }
230
231 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
232 var test3 = {};
233 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
234 test3[letter] = letter;
235 });
236 if (Object.keys(Object.assign({}, test3)).join('') !==
237 'abcdefghijklmnopqrst') {
238 return false;
239 }
240
241 return true;
242 } catch (err) {
243 // We don't expect any of the above to throw, but better to be safe.
244 return false;
245 }
246 }
247
248 module.exports = shouldUseNative() ? Object.assign : function (target, source) {
249 var from;
250 var to = toObject(target);
251 var symbols;
252
253 for (var s = 1; s < arguments.length; s++) {
254 from = Object(arguments[s]);
255
256 for (var key in from) {
257 if (hasOwnProperty.call(from, key)) {
258 to[key] = from[key];
259 }
260 }
261
262 if (getOwnPropertySymbols) {
263 symbols = getOwnPropertySymbols(from);
264 for (var i = 0; i < symbols.length; i++) {
265 if (propIsEnumerable.call(from, symbols[i])) {
266 to[symbols[i]] = from[symbols[i]];
267 }
268 }
269 }
270 }
271
272 return to;
273 };
274
275
276 /***/ }),
277
278 /***/ "../node_modules/prop-types/checkPropTypes.js":
279 /*!****************************************************!*\
280 !*** ../node_modules/prop-types/checkPropTypes.js ***!
281 \****************************************************/
282 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
283
284 "use strict";
285 /**
286 * Copyright (c) 2013-present, Facebook, Inc.
287 *
288 * This source code is licensed under the MIT license found in the
289 * LICENSE file in the root directory of this source tree.
290 */
291
292
293
294 var printWarning = function() {};
295
296 if (true) {
297 var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
298 var loggedTypeFailures = {};
299 var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
300
301 printWarning = function(text) {
302 var message = 'Warning: ' + text;
303 if (typeof console !== 'undefined') {
304 console.error(message);
305 }
306 try {
307 // --- Welcome to debugging React ---
308 // This error was thrown as a convenience so that you can use this stack
309 // to find the callsite that caused this warning to fire.
310 throw new Error(message);
311 } catch (x) { /**/ }
312 };
313 }
314
315 /**
316 * Assert that the values match with the type specs.
317 * Error messages are memorized and will only be shown once.
318 *
319 * @param {object} typeSpecs Map of name to a ReactPropType
320 * @param {object} values Runtime values that need to be type-checked
321 * @param {string} location e.g. "prop", "context", "child context"
322 * @param {string} componentName Name of the component for error messages.
323 * @param {?Function} getStack Returns the component stack.
324 * @private
325 */
326 function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
327 if (true) {
328 for (var typeSpecName in typeSpecs) {
329 if (has(typeSpecs, typeSpecName)) {
330 var error;
331 // Prop type validation may throw. In case they do, we don't want to
332 // fail the render phase where it didn't fail before. So we log it.
333 // After these have been cleaned up, we'll let them throw.
334 try {
335 // This is intentionally an invariant that gets caught. It's the same
336 // behavior as without this statement except with a better message.
337 if (typeof typeSpecs[typeSpecName] !== 'function') {
338 var err = Error(
339 (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
340 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
341 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
342 );
343 err.name = 'Invariant Violation';
344 throw err;
345 }
346 error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
347 } catch (ex) {
348 error = ex;
349 }
350 if (error && !(error instanceof Error)) {
351 printWarning(
352 (componentName || 'React class') + ': type specification of ' +
353 location + ' `' + typeSpecName + '` is invalid; the type checker ' +
354 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
355 'You may have forgotten to pass an argument to the type checker ' +
356 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
357 'shape all require an argument).'
358 );
359 }
360 if (error instanceof Error && !(error.message in loggedTypeFailures)) {
361 // Only monitor this failure once because there tends to be a lot of the
362 // same error.
363 loggedTypeFailures[error.message] = true;
364
365 var stack = getStack ? getStack() : '';
366
367 printWarning(
368 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
369 );
370 }
371 }
372 }
373 }
374 }
375
376 /**
377 * Resets warning cache when testing.
378 *
379 * @private
380 */
381 checkPropTypes.resetWarningCache = function() {
382 if (true) {
383 loggedTypeFailures = {};
384 }
385 }
386
387 module.exports = checkPropTypes;
388
389
390 /***/ }),
391
392 /***/ "../node_modules/prop-types/factoryWithTypeCheckers.js":
393 /*!*************************************************************!*\
394 !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***!
395 \*************************************************************/
396 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
397
398 "use strict";
399 /**
400 * Copyright (c) 2013-present, Facebook, Inc.
401 *
402 * This source code is licensed under the MIT license found in the
403 * LICENSE file in the root directory of this source tree.
404 */
405
406
407
408 var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
409 var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js");
410
411 var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
412 var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
413 var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js");
414
415 var printWarning = function() {};
416
417 if (true) {
418 printWarning = function(text) {
419 var message = 'Warning: ' + text;
420 if (typeof console !== 'undefined') {
421 console.error(message);
422 }
423 try {
424 // --- Welcome to debugging React ---
425 // This error was thrown as a convenience so that you can use this stack
426 // to find the callsite that caused this warning to fire.
427 throw new Error(message);
428 } catch (x) {}
429 };
430 }
431
432 function emptyFunctionThatReturnsNull() {
433 return null;
434 }
435
436 module.exports = function(isValidElement, throwOnDirectAccess) {
437 /* global Symbol */
438 var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
439 var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
440
441 /**
442 * Returns the iterator method function contained on the iterable object.
443 *
444 * Be sure to invoke the function with the iterable as context:
445 *
446 * var iteratorFn = getIteratorFn(myIterable);
447 * if (iteratorFn) {
448 * var iterator = iteratorFn.call(myIterable);
449 * ...
450 * }
451 *
452 * @param {?object} maybeIterable
453 * @return {?function}
454 */
455 function getIteratorFn(maybeIterable) {
456 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
457 if (typeof iteratorFn === 'function') {
458 return iteratorFn;
459 }
460 }
461
462 /**
463 * Collection of methods that allow declaration and validation of props that are
464 * supplied to React components. Example usage:
465 *
466 * var Props = require('ReactPropTypes');
467 * var MyArticle = React.createClass({
468 * propTypes: {
469 * // An optional string prop named "description".
470 * description: Props.string,
471 *
472 * // A required enum prop named "category".
473 * category: Props.oneOf(['News','Photos']).isRequired,
474 *
475 * // A prop named "dialog" that requires an instance of Dialog.
476 * dialog: Props.instanceOf(Dialog).isRequired
477 * },
478 * render: function() { ... }
479 * });
480 *
481 * A more formal specification of how these methods are used:
482 *
483 * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
484 * decl := ReactPropTypes.{type}(.isRequired)?
485 *
486 * Each and every declaration produces a function with the same signature. This
487 * allows the creation of custom validation functions. For example:
488 *
489 * var MyLink = React.createClass({
490 * propTypes: {
491 * // An optional string or URI prop named "href".
492 * href: function(props, propName, componentName) {
493 * var propValue = props[propName];
494 * if (propValue != null && typeof propValue !== 'string' &&
495 * !(propValue instanceof URI)) {
496 * return new Error(
497 * 'Expected a string or an URI for ' + propName + ' in ' +
498 * componentName
499 * );
500 * }
501 * }
502 * },
503 * render: function() {...}
504 * });
505 *
506 * @internal
507 */
508
509 var ANONYMOUS = '<<anonymous>>';
510
511 // Important!
512 // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
513 var ReactPropTypes = {
514 array: createPrimitiveTypeChecker('array'),
515 bigint: createPrimitiveTypeChecker('bigint'),
516 bool: createPrimitiveTypeChecker('boolean'),
517 func: createPrimitiveTypeChecker('function'),
518 number: createPrimitiveTypeChecker('number'),
519 object: createPrimitiveTypeChecker('object'),
520 string: createPrimitiveTypeChecker('string'),
521 symbol: createPrimitiveTypeChecker('symbol'),
522
523 any: createAnyTypeChecker(),
524 arrayOf: createArrayOfTypeChecker,
525 element: createElementTypeChecker(),
526 elementType: createElementTypeTypeChecker(),
527 instanceOf: createInstanceTypeChecker,
528 node: createNodeChecker(),
529 objectOf: createObjectOfTypeChecker,
530 oneOf: createEnumTypeChecker,
531 oneOfType: createUnionTypeChecker,
532 shape: createShapeTypeChecker,
533 exact: createStrictShapeTypeChecker,
534 };
535
536 /**
537 * inlined Object.is polyfill to avoid requiring consumers ship their own
538 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
539 */
540 /*eslint-disable no-self-compare*/
541 function is(x, y) {
542 // SameValue algorithm
543 if (x === y) {
544 // Steps 1-5, 7-10
545 // Steps 6.b-6.e: +0 != -0
546 return x !== 0 || 1 / x === 1 / y;
547 } else {
548 // Step 6.a: NaN == NaN
549 return x !== x && y !== y;
550 }
551 }
552 /*eslint-enable no-self-compare*/
553
554 /**
555 * We use an Error-like object for backward compatibility as people may call
556 * PropTypes directly and inspect their output. However, we don't use real
557 * Errors anymore. We don't inspect their stack anyway, and creating them
558 * is prohibitively expensive if they are created too often, such as what
559 * happens in oneOfType() for any type before the one that matched.
560 */
561 function PropTypeError(message, data) {
562 this.message = message;
563 this.data = data && typeof data === 'object' ? data: {};
564 this.stack = '';
565 }
566 // Make `instanceof Error` still work for returned errors.
567 PropTypeError.prototype = Error.prototype;
568
569 function createChainableTypeChecker(validate) {
570 if (true) {
571 var manualPropTypeCallCache = {};
572 var manualPropTypeWarningCount = 0;
573 }
574 function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
575 componentName = componentName || ANONYMOUS;
576 propFullName = propFullName || propName;
577
578 if (secret !== ReactPropTypesSecret) {
579 if (throwOnDirectAccess) {
580 // New behavior only for users of `prop-types` package
581 var err = new Error(
582 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
583 'Use `PropTypes.checkPropTypes()` to call them. ' +
584 'Read more at http://fb.me/use-check-prop-types'
585 );
586 err.name = 'Invariant Violation';
587 throw err;
588 } else if ( true && typeof console !== 'undefined') {
589 // Old behavior for people using React.PropTypes
590 var cacheKey = componentName + ':' + propName;
591 if (
592 !manualPropTypeCallCache[cacheKey] &&
593 // Avoid spamming the console because they are often not actionable except for lib authors
594 manualPropTypeWarningCount < 3
595 ) {
596 printWarning(
597 'You are manually calling a React.PropTypes validation ' +
598 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
599 'and will throw in the standalone `prop-types` package. ' +
600 'You may be seeing this warning due to a third-party PropTypes ' +
601 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
602 );
603 manualPropTypeCallCache[cacheKey] = true;
604 manualPropTypeWarningCount++;
605 }
606 }
607 }
608 if (props[propName] == null) {
609 if (isRequired) {
610 if (props[propName] === null) {
611 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
612 }
613 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
614 }
615 return null;
616 } else {
617 return validate(props, propName, componentName, location, propFullName);
618 }
619 }
620
621 var chainedCheckType = checkType.bind(null, false);
622 chainedCheckType.isRequired = checkType.bind(null, true);
623
624 return chainedCheckType;
625 }
626
627 function createPrimitiveTypeChecker(expectedType) {
628 function validate(props, propName, componentName, location, propFullName, secret) {
629 var propValue = props[propName];
630 var propType = getPropType(propValue);
631 if (propType !== expectedType) {
632 // `propValue` being instance of, say, date/regexp, pass the 'object'
633 // check, but we can offer a more precise error message here rather than
634 // 'of type `object`'.
635 var preciseType = getPreciseType(propValue);
636
637 return new PropTypeError(
638 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
639 {expectedType: expectedType}
640 );
641 }
642 return null;
643 }
644 return createChainableTypeChecker(validate);
645 }
646
647 function createAnyTypeChecker() {
648 return createChainableTypeChecker(emptyFunctionThatReturnsNull);
649 }
650
651 function createArrayOfTypeChecker(typeChecker) {
652 function validate(props, propName, componentName, location, propFullName) {
653 if (typeof typeChecker !== 'function') {
654 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
655 }
656 var propValue = props[propName];
657 if (!Array.isArray(propValue)) {
658 var propType = getPropType(propValue);
659 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
660 }
661 for (var i = 0; i < propValue.length; i++) {
662 var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
663 if (error instanceof Error) {
664 return error;
665 }
666 }
667 return null;
668 }
669 return createChainableTypeChecker(validate);
670 }
671
672 function createElementTypeChecker() {
673 function validate(props, propName, componentName, location, propFullName) {
674 var propValue = props[propName];
675 if (!isValidElement(propValue)) {
676 var propType = getPropType(propValue);
677 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
678 }
679 return null;
680 }
681 return createChainableTypeChecker(validate);
682 }
683
684 function createElementTypeTypeChecker() {
685 function validate(props, propName, componentName, location, propFullName) {
686 var propValue = props[propName];
687 if (!ReactIs.isValidElementType(propValue)) {
688 var propType = getPropType(propValue);
689 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
690 }
691 return null;
692 }
693 return createChainableTypeChecker(validate);
694 }
695
696 function createInstanceTypeChecker(expectedClass) {
697 function validate(props, propName, componentName, location, propFullName) {
698 if (!(props[propName] instanceof expectedClass)) {
699 var expectedClassName = expectedClass.name || ANONYMOUS;
700 var actualClassName = getClassName(props[propName]);
701 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
702 }
703 return null;
704 }
705 return createChainableTypeChecker(validate);
706 }
707
708 function createEnumTypeChecker(expectedValues) {
709 if (!Array.isArray(expectedValues)) {
710 if (true) {
711 if (arguments.length > 1) {
712 printWarning(
713 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
714 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
715 );
716 } else {
717 printWarning('Invalid argument supplied to oneOf, expected an array.');
718 }
719 }
720 return emptyFunctionThatReturnsNull;
721 }
722
723 function validate(props, propName, componentName, location, propFullName) {
724 var propValue = props[propName];
725 for (var i = 0; i < expectedValues.length; i++) {
726 if (is(propValue, expectedValues[i])) {
727 return null;
728 }
729 }
730
731 var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
732 var type = getPreciseType(value);
733 if (type === 'symbol') {
734 return String(value);
735 }
736 return value;
737 });
738 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
739 }
740 return createChainableTypeChecker(validate);
741 }
742
743 function createObjectOfTypeChecker(typeChecker) {
744 function validate(props, propName, componentName, location, propFullName) {
745 if (typeof typeChecker !== 'function') {
746 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
747 }
748 var propValue = props[propName];
749 var propType = getPropType(propValue);
750 if (propType !== 'object') {
751 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
752 }
753 for (var key in propValue) {
754 if (has(propValue, key)) {
755 var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
756 if (error instanceof Error) {
757 return error;
758 }
759 }
760 }
761 return null;
762 }
763 return createChainableTypeChecker(validate);
764 }
765
766 function createUnionTypeChecker(arrayOfTypeCheckers) {
767 if (!Array.isArray(arrayOfTypeCheckers)) {
768 true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
769 return emptyFunctionThatReturnsNull;
770 }
771
772 for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
773 var checker = arrayOfTypeCheckers[i];
774 if (typeof checker !== 'function') {
775 printWarning(
776 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
777 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
778 );
779 return emptyFunctionThatReturnsNull;
780 }
781 }
782
783 function validate(props, propName, componentName, location, propFullName) {
784 var expectedTypes = [];
785 for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
786 var checker = arrayOfTypeCheckers[i];
787 var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
788 if (checkerResult == null) {
789 return null;
790 }
791 if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
792 expectedTypes.push(checkerResult.data.expectedType);
793 }
794 }
795 var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
796 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
797 }
798 return createChainableTypeChecker(validate);
799 }
800
801 function createNodeChecker() {
802 function validate(props, propName, componentName, location, propFullName) {
803 if (!isNode(props[propName])) {
804 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
805 }
806 return null;
807 }
808 return createChainableTypeChecker(validate);
809 }
810
811 function invalidValidatorError(componentName, location, propFullName, key, type) {
812 return new PropTypeError(
813 (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
814 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
815 );
816 }
817
818 function createShapeTypeChecker(shapeTypes) {
819 function validate(props, propName, componentName, location, propFullName) {
820 var propValue = props[propName];
821 var propType = getPropType(propValue);
822 if (propType !== 'object') {
823 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
824 }
825 for (var key in shapeTypes) {
826 var checker = shapeTypes[key];
827 if (typeof checker !== 'function') {
828 return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
829 }
830 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
831 if (error) {
832 return error;
833 }
834 }
835 return null;
836 }
837 return createChainableTypeChecker(validate);
838 }
839
840 function createStrictShapeTypeChecker(shapeTypes) {
841 function validate(props, propName, componentName, location, propFullName) {
842 var propValue = props[propName];
843 var propType = getPropType(propValue);
844 if (propType !== 'object') {
845 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
846 }
847 // We need to check all keys in case some are required but missing from props.
848 var allKeys = assign({}, props[propName], shapeTypes);
849 for (var key in allKeys) {
850 var checker = shapeTypes[key];
851 if (has(shapeTypes, key) && typeof checker !== 'function') {
852 return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
853 }
854 if (!checker) {
855 return new PropTypeError(
856 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
857 '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
858 '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
859 );
860 }
861 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
862 if (error) {
863 return error;
864 }
865 }
866 return null;
867 }
868
869 return createChainableTypeChecker(validate);
870 }
871
872 function isNode(propValue) {
873 switch (typeof propValue) {
874 case 'number':
875 case 'string':
876 case 'undefined':
877 return true;
878 case 'boolean':
879 return !propValue;
880 case 'object':
881 if (Array.isArray(propValue)) {
882 return propValue.every(isNode);
883 }
884 if (propValue === null || isValidElement(propValue)) {
885 return true;
886 }
887
888 var iteratorFn = getIteratorFn(propValue);
889 if (iteratorFn) {
890 var iterator = iteratorFn.call(propValue);
891 var step;
892 if (iteratorFn !== propValue.entries) {
893 while (!(step = iterator.next()).done) {
894 if (!isNode(step.value)) {
895 return false;
896 }
897 }
898 } else {
899 // Iterator will provide entry [k,v] tuples rather than values.
900 while (!(step = iterator.next()).done) {
901 var entry = step.value;
902 if (entry) {
903 if (!isNode(entry[1])) {
904 return false;
905 }
906 }
907 }
908 }
909 } else {
910 return false;
911 }
912
913 return true;
914 default:
915 return false;
916 }
917 }
918
919 function isSymbol(propType, propValue) {
920 // Native Symbol.
921 if (propType === 'symbol') {
922 return true;
923 }
924
925 // falsy value can't be a Symbol
926 if (!propValue) {
927 return false;
928 }
929
930 // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
931 if (propValue['@@toStringTag'] === 'Symbol') {
932 return true;
933 }
934
935 // Fallback for non-spec compliant Symbols which are polyfilled.
936 if (typeof Symbol === 'function' && propValue instanceof Symbol) {
937 return true;
938 }
939
940 return false;
941 }
942
943 // Equivalent of `typeof` but with special handling for array and regexp.
944 function getPropType(propValue) {
945 var propType = typeof propValue;
946 if (Array.isArray(propValue)) {
947 return 'array';
948 }
949 if (propValue instanceof RegExp) {
950 // Old webkits (at least until Android 4.0) return 'function' rather than
951 // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
952 // passes PropTypes.object.
953 return 'object';
954 }
955 if (isSymbol(propType, propValue)) {
956 return 'symbol';
957 }
958 return propType;
959 }
960
961 // This handles more types than `getPropType`. Only used for error messages.
962 // See `createPrimitiveTypeChecker`.
963 function getPreciseType(propValue) {
964 if (typeof propValue === 'undefined' || propValue === null) {
965 return '' + propValue;
966 }
967 var propType = getPropType(propValue);
968 if (propType === 'object') {
969 if (propValue instanceof Date) {
970 return 'date';
971 } else if (propValue instanceof RegExp) {
972 return 'regexp';
973 }
974 }
975 return propType;
976 }
977
978 // Returns a string that is postfixed to a warning about an invalid type.
979 // For example, "undefined" or "of type array"
980 function getPostfixForTypeWarning(value) {
981 var type = getPreciseType(value);
982 switch (type) {
983 case 'array':
984 case 'object':
985 return 'an ' + type;
986 case 'boolean':
987 case 'date':
988 case 'regexp':
989 return 'a ' + type;
990 default:
991 return type;
992 }
993 }
994
995 // Returns class name of the object, if any.
996 function getClassName(propValue) {
997 if (!propValue.constructor || !propValue.constructor.name) {
998 return ANONYMOUS;
999 }
1000 return propValue.constructor.name;
1001 }
1002
1003 ReactPropTypes.checkPropTypes = checkPropTypes;
1004 ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1005 ReactPropTypes.PropTypes = ReactPropTypes;
1006
1007 return ReactPropTypes;
1008 };
1009
1010
1011 /***/ }),
1012
1013 /***/ "../node_modules/prop-types/index.js":
1014 /*!*******************************************!*\
1015 !*** ../node_modules/prop-types/index.js ***!
1016 \*******************************************/
1017 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1018
1019 /**
1020 * Copyright (c) 2013-present, Facebook, Inc.
1021 *
1022 * This source code is licensed under the MIT license found in the
1023 * LICENSE file in the root directory of this source tree.
1024 */
1025
1026 if (true) {
1027 var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
1028
1029 // By explicitly using `prop-types` you are opting into new development behavior.
1030 // http://fb.me/prop-types-in-prod
1031 var throwOnDirectAccess = true;
1032 module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
1033 } else {}
1034
1035
1036 /***/ }),
1037
1038 /***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js":
1039 /*!**************************************************************!*\
1040 !*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
1041 \**************************************************************/
1042 /***/ ((module) => {
1043
1044 "use strict";
1045 /**
1046 * Copyright (c) 2013-present, Facebook, Inc.
1047 *
1048 * This source code is licensed under the MIT license found in the
1049 * LICENSE file in the root directory of this source tree.
1050 */
1051
1052
1053
1054 var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1055
1056 module.exports = ReactPropTypesSecret;
1057
1058
1059 /***/ }),
1060
1061 /***/ "../node_modules/prop-types/lib/has.js":
1062 /*!*********************************************!*\
1063 !*** ../node_modules/prop-types/lib/has.js ***!
1064 \*********************************************/
1065 /***/ ((module) => {
1066
1067 module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
1068
1069
1070 /***/ }),
1071
1072 /***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
1073 /*!************************************************************************************!*\
1074 !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
1075 \************************************************************************************/
1076 /***/ ((__unused_webpack_module, exports) => {
1077
1078 "use strict";
1079 /** @license React v16.13.1
1080 * react-is.development.js
1081 *
1082 * Copyright (c) Facebook, Inc. and its affiliates.
1083 *
1084 * This source code is licensed under the MIT license found in the
1085 * LICENSE file in the root directory of this source tree.
1086 */
1087
1088
1089
1090
1091
1092 if (true) {
1093 (function() {
1094 'use strict';
1095
1096 // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1097 // nor polyfill, then a plain number is used for performance.
1098 var hasSymbol = typeof Symbol === 'function' && Symbol.for;
1099 var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
1100 var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
1101 var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
1102 var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
1103 var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
1104 var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
1105 var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
1106 // (unstable) APIs that have been removed. Can we remove the symbols?
1107
1108 var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
1109 var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
1110 var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
1111 var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
1112 var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
1113 var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
1114 var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
1115 var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
1116 var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
1117 var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
1118 var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
1119
1120 function isValidElementType(type) {
1121 return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1122 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);
1123 }
1124
1125 function typeOf(object) {
1126 if (typeof object === 'object' && object !== null) {
1127 var $$typeof = object.$$typeof;
1128
1129 switch ($$typeof) {
1130 case REACT_ELEMENT_TYPE:
1131 var type = object.type;
1132
1133 switch (type) {
1134 case REACT_ASYNC_MODE_TYPE:
1135 case REACT_CONCURRENT_MODE_TYPE:
1136 case REACT_FRAGMENT_TYPE:
1137 case REACT_PROFILER_TYPE:
1138 case REACT_STRICT_MODE_TYPE:
1139 case REACT_SUSPENSE_TYPE:
1140 return type;
1141
1142 default:
1143 var $$typeofType = type && type.$$typeof;
1144
1145 switch ($$typeofType) {
1146 case REACT_CONTEXT_TYPE:
1147 case REACT_FORWARD_REF_TYPE:
1148 case REACT_LAZY_TYPE:
1149 case REACT_MEMO_TYPE:
1150 case REACT_PROVIDER_TYPE:
1151 return $$typeofType;
1152
1153 default:
1154 return $$typeof;
1155 }
1156
1157 }
1158
1159 case REACT_PORTAL_TYPE:
1160 return $$typeof;
1161 }
1162 }
1163
1164 return undefined;
1165 } // AsyncMode is deprecated along with isAsyncMode
1166
1167 var AsyncMode = REACT_ASYNC_MODE_TYPE;
1168 var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1169 var ContextConsumer = REACT_CONTEXT_TYPE;
1170 var ContextProvider = REACT_PROVIDER_TYPE;
1171 var Element = REACT_ELEMENT_TYPE;
1172 var ForwardRef = REACT_FORWARD_REF_TYPE;
1173 var Fragment = REACT_FRAGMENT_TYPE;
1174 var Lazy = REACT_LAZY_TYPE;
1175 var Memo = REACT_MEMO_TYPE;
1176 var Portal = REACT_PORTAL_TYPE;
1177 var Profiler = REACT_PROFILER_TYPE;
1178 var StrictMode = REACT_STRICT_MODE_TYPE;
1179 var Suspense = REACT_SUSPENSE_TYPE;
1180 var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
1181
1182 function isAsyncMode(object) {
1183 {
1184 if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1185 hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1186
1187 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.');
1188 }
1189 }
1190
1191 return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1192 }
1193 function isConcurrentMode(object) {
1194 return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1195 }
1196 function isContextConsumer(object) {
1197 return typeOf(object) === REACT_CONTEXT_TYPE;
1198 }
1199 function isContextProvider(object) {
1200 return typeOf(object) === REACT_PROVIDER_TYPE;
1201 }
1202 function isElement(object) {
1203 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1204 }
1205 function isForwardRef(object) {
1206 return typeOf(object) === REACT_FORWARD_REF_TYPE;
1207 }
1208 function isFragment(object) {
1209 return typeOf(object) === REACT_FRAGMENT_TYPE;
1210 }
1211 function isLazy(object) {
1212 return typeOf(object) === REACT_LAZY_TYPE;
1213 }
1214 function isMemo(object) {
1215 return typeOf(object) === REACT_MEMO_TYPE;
1216 }
1217 function isPortal(object) {
1218 return typeOf(object) === REACT_PORTAL_TYPE;
1219 }
1220 function isProfiler(object) {
1221 return typeOf(object) === REACT_PROFILER_TYPE;
1222 }
1223 function isStrictMode(object) {
1224 return typeOf(object) === REACT_STRICT_MODE_TYPE;
1225 }
1226 function isSuspense(object) {
1227 return typeOf(object) === REACT_SUSPENSE_TYPE;
1228 }
1229
1230 exports.AsyncMode = AsyncMode;
1231 exports.ConcurrentMode = ConcurrentMode;
1232 exports.ContextConsumer = ContextConsumer;
1233 exports.ContextProvider = ContextProvider;
1234 exports.Element = Element;
1235 exports.ForwardRef = ForwardRef;
1236 exports.Fragment = Fragment;
1237 exports.Lazy = Lazy;
1238 exports.Memo = Memo;
1239 exports.Portal = Portal;
1240 exports.Profiler = Profiler;
1241 exports.StrictMode = StrictMode;
1242 exports.Suspense = Suspense;
1243 exports.isAsyncMode = isAsyncMode;
1244 exports.isConcurrentMode = isConcurrentMode;
1245 exports.isContextConsumer = isContextConsumer;
1246 exports.isContextProvider = isContextProvider;
1247 exports.isElement = isElement;
1248 exports.isForwardRef = isForwardRef;
1249 exports.isFragment = isFragment;
1250 exports.isLazy = isLazy;
1251 exports.isMemo = isMemo;
1252 exports.isPortal = isPortal;
1253 exports.isProfiler = isProfiler;
1254 exports.isStrictMode = isStrictMode;
1255 exports.isSuspense = isSuspense;
1256 exports.isValidElementType = isValidElementType;
1257 exports.typeOf = typeOf;
1258 })();
1259 }
1260
1261
1262 /***/ }),
1263
1264 /***/ "../node_modules/prop-types/node_modules/react-is/index.js":
1265 /*!*****************************************************************!*\
1266 !*** ../node_modules/prop-types/node_modules/react-is/index.js ***!
1267 \*****************************************************************/
1268 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1269
1270 "use strict";
1271
1272
1273 if (false) {} else {
1274 module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
1275 }
1276
1277
1278 /***/ }),
1279
1280 /***/ "../node_modules/react-dom/client.js":
1281 /*!*******************************************!*\
1282 !*** ../node_modules/react-dom/client.js ***!
1283 \*******************************************/
1284 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1285
1286 "use strict";
1287
1288
1289 var m = __webpack_require__(/*! react-dom */ "react-dom");
1290 if (false) {} else {
1291 var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1292 exports.createRoot = function(c, o) {
1293 i.usingClientEntryPoint = true;
1294 try {
1295 return m.createRoot(c, o);
1296 } finally {
1297 i.usingClientEntryPoint = false;
1298 }
1299 };
1300 exports.hydrateRoot = function(c, h, o) {
1301 i.usingClientEntryPoint = true;
1302 try {
1303 return m.hydrateRoot(c, h, o);
1304 } finally {
1305 i.usingClientEntryPoint = false;
1306 }
1307 };
1308 }
1309
1310
1311 /***/ }),
1312
1313 /***/ "react":
1314 /*!************************!*\
1315 !*** external "React" ***!
1316 \************************/
1317 /***/ ((module) => {
1318
1319 "use strict";
1320 module.exports = React;
1321
1322 /***/ }),
1323
1324 /***/ "react-dom":
1325 /*!***************************!*\
1326 !*** external "ReactDOM" ***!
1327 \***************************/
1328 /***/ ((module) => {
1329
1330 "use strict";
1331 module.exports = ReactDOM;
1332
1333 /***/ }),
1334
1335 /***/ "@elementor/ui":
1336 /*!*********************************!*\
1337 !*** external "elementorV2.ui" ***!
1338 \*********************************/
1339 /***/ ((module) => {
1340
1341 "use strict";
1342 module.exports = elementorV2.ui;
1343
1344 /***/ }),
1345
1346 /***/ "@wordpress/i18n":
1347 /*!**************************!*\
1348 !*** external "wp.i18n" ***!
1349 \**************************/
1350 /***/ ((module) => {
1351
1352 "use strict";
1353 module.exports = wp.i18n;
1354
1355 /***/ }),
1356
1357 /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
1358 /*!******************************************************************!*\
1359 !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
1360 \******************************************************************/
1361 /***/ ((module) => {
1362
1363 function _arrayLikeToArray(r, a) {
1364 (null == a || a > r.length) && (a = r.length);
1365 for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
1366 return n;
1367 }
1368 module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1369
1370 /***/ }),
1371
1372 /***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
1373 /*!****************************************************************!*\
1374 !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
1375 \****************************************************************/
1376 /***/ ((module) => {
1377
1378 function _arrayWithHoles(r) {
1379 if (Array.isArray(r)) return r;
1380 }
1381 module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
1382
1383 /***/ }),
1384
1385 /***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
1386 /*!***********************************************************************!*\
1387 !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
1388 \***********************************************************************/
1389 /***/ ((module) => {
1390
1391 function _interopRequireDefault(e) {
1392 return e && e.__esModule ? e : {
1393 "default": e
1394 };
1395 }
1396 module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
1397
1398 /***/ }),
1399
1400 /***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
1401 /*!**********************************************************************!*\
1402 !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
1403 \**********************************************************************/
1404 /***/ ((module) => {
1405
1406 function _iterableToArrayLimit(r, l) {
1407 var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
1408 if (null != t) {
1409 var e,
1410 n,
1411 i,
1412 u,
1413 a = [],
1414 f = !0,
1415 o = !1;
1416 try {
1417 if (i = (t = t.call(r)).next, 0 === l) {
1418 if (Object(t) !== t) return;
1419 f = !1;
1420 } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
1421 } catch (r) {
1422 o = !0, n = r;
1423 } finally {
1424 try {
1425 if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
1426 } finally {
1427 if (o) throw n;
1428 }
1429 }
1430 return a;
1431 }
1432 }
1433 module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
1434
1435 /***/ }),
1436
1437 /***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
1438 /*!*****************************************************************!*\
1439 !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
1440 \*****************************************************************/
1441 /***/ ((module) => {
1442
1443 function _nonIterableRest() {
1444 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1445 }
1446 module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
1447
1448 /***/ }),
1449
1450 /***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
1451 /*!***************************************************************!*\
1452 !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
1453 \***************************************************************/
1454 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1455
1456 var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
1457 var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
1458 var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
1459 var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
1460 function _slicedToArray(r, e) {
1461 return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
1462 }
1463 module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1464
1465 /***/ }),
1466
1467 /***/ "../node_modules/@babel/runtime/helpers/typeof.js":
1468 /*!********************************************************!*\
1469 !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
1470 \********************************************************/
1471 /***/ ((module) => {
1472
1473 function _typeof(o) {
1474 "@babel/helpers - typeof";
1475
1476 return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
1477 return typeof o;
1478 } : function (o) {
1479 return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
1480 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
1481 }
1482 module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
1483
1484 /***/ }),
1485
1486 /***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
1487 /*!****************************************************************************!*\
1488 !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
1489 \****************************************************************************/
1490 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1491
1492 var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
1493 function _unsupportedIterableToArray(r, a) {
1494 if (r) {
1495 if ("string" == typeof r) return arrayLikeToArray(r, a);
1496 var t = {}.toString.call(r).slice(8, -1);
1497 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;
1498 }
1499 }
1500 module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1501
1502 /***/ })
1503
1504 /******/ });
1505 /************************************************************************/
1506 /******/ // The module cache
1507 /******/ var __webpack_module_cache__ = {};
1508 /******/
1509 /******/ // The require function
1510 /******/ function __webpack_require__(moduleId) {
1511 /******/ // Check if module is in cache
1512 /******/ var cachedModule = __webpack_module_cache__[moduleId];
1513 /******/ if (cachedModule !== undefined) {
1514 /******/ return cachedModule.exports;
1515 /******/ }
1516 /******/ // Create a new module (and put it into the cache)
1517 /******/ var module = __webpack_module_cache__[moduleId] = {
1518 /******/ // no module.id needed
1519 /******/ // no module.loaded needed
1520 /******/ exports: {}
1521 /******/ };
1522 /******/
1523 /******/ // Execute the module function
1524 /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
1525 /******/
1526 /******/ // Return the exports of the module
1527 /******/ return module.exports;
1528 /******/ }
1529 /******/
1530 /************************************************************************/
1531 var __webpack_exports__ = {};
1532 // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
1533 (() => {
1534 "use strict";
1535 /*!****************************************************************!*\
1536 !*** ../modules/atomic-opt-in/assets/js/welcome-screen/app.js ***!
1537 \****************************************************************/
1538 /* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
1539
1540
1541 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1542 var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
1543 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
1544 var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
1545 var _react2 = _interopRequireDefault(__webpack_require__(/*! elementor-utils/react */ "../assets/dev/js/utils/react.js"));
1546 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1547 var _welcomeDialog = __webpack_require__(/*! ./welcome-dialog */ "../modules/atomic-opt-in/assets/js/welcome-screen/welcome-dialog.js");
1548 function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
1549 function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
1550 var App = function App(props) {
1551 var _useState = (0, _react.useState)(true),
1552 _useState2 = (0, _slicedToArray2.default)(_useState, 2),
1553 isWelcomeVisible = _useState2[0],
1554 setIsWelcomeVisible = _useState2[1];
1555 var handleClose = function handleClose() {
1556 setIsWelcomeVisible(false);
1557 };
1558 return /*#__PURE__*/_react.default.createElement(_ui.DirectionProvider, {
1559 rtl: props.isRTL
1560 }, /*#__PURE__*/_react.default.createElement(_ui.LocalizationProvider, null, /*#__PURE__*/_react.default.createElement(_ui.ThemeProvider, {
1561 colorScheme: 'light',
1562 palette: "unstable"
1563 }, isWelcomeVisible && /*#__PURE__*/_react.default.createElement(_welcomeDialog.WelcomeDialog, {
1564 doClose: handleClose
1565 }))));
1566 };
1567 App.propTypes = {
1568 isRTL: PropTypes.bool.isRequired
1569 };
1570 var getRootElement = function getRootElement() {
1571 var popoverRoot = document.querySelector('#e-v4-opt-in-welcome');
1572 if (!popoverRoot) {
1573 popoverRoot = document.createElement('div');
1574 popoverRoot.id = 'e-v4-opt-in-welcome';
1575 document.body.appendChild(popoverRoot);
1576 }
1577 return popoverRoot;
1578 };
1579 var init = function init() {
1580 if (!document.body.classList.contains('elementor-editor-active')) {
1581 return null;
1582 }
1583 _react2.default.render(/*#__PURE__*/_react.default.createElement(App, {
1584 isRTL: !!elementorCommon.config.isRTL
1585 }), getRootElement());
1586 };
1587 init();
1588 })();
1589
1590 /******/ })()
1591 ;
1592 //# sourceMappingURL=editor-v4-welcome-opt-in.js.map