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