@redhat-cloud-services/frontend-components-config-utilities 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/federated-modules.js +1 -1
  2. package/package.json +1 -1
  3. package/repos/insights-chrome-build/58231b16fdee45a03a4ee3cf94a9f2c3 +0 -73
  4. package/repos/insights-chrome-build/app.info.deps.json +0 -1
  5. package/repos/insights-chrome-build/app.info.json +0 -14
  6. package/repos/insights-chrome-build/index.html +0 -29
  7. package/repos/insights-chrome-build/js/00e10699d4604274.woff2 +0 -0
  8. package/repos/insights-chrome-build/js/03be9971fdd08ef3.woff2 +0 -0
  9. package/repos/insights-chrome-build/js/05294d67f8e33aab.woff2 +0 -0
  10. package/repos/insights-chrome-build/js/091b27e83c831713.woff2 +0 -0
  11. package/repos/insights-chrome-build/js/0d54864d782470c6.woff +0 -0
  12. package/repos/insights-chrome-build/js/0d5f5f4e3bbf47e1.woff2 +0 -0
  13. package/repos/insights-chrome-build/js/1039d3d8000f2c4b.woff +0 -0
  14. package/repos/insights-chrome-build/js/13f6558f31b2ee0f.woff2 +0 -0
  15. package/repos/insights-chrome-build/js/1412957e204a8a1a.woff +0 -0
  16. package/repos/insights-chrome-build/js/17802e9fb8c2dd3c.woff +0 -0
  17. package/repos/insights-chrome-build/js/1be1bd18c67d1ac8.woff +0 -0
  18. package/repos/insights-chrome-build/js/26409b4397ab88cc.woff2 +0 -0
  19. package/repos/insights-chrome-build/js/278473d290fcbf3b.woff2 +0 -0
  20. package/repos/insights-chrome-build/js/2a96d5b208c56fa6.woff +0 -0
  21. package/repos/insights-chrome-build/js/2baac3a5d7ab7a15.woff2 +0 -0
  22. package/repos/insights-chrome-build/js/316d3d41de174f24.woff +0 -0
  23. package/repos/insights-chrome-build/js/3239d74dcb174610.woff2 +0 -0
  24. package/repos/insights-chrome-build/js/326f107b61d32769.woff +0 -0
  25. package/repos/insights-chrome-build/js/49ee635c956449ea.woff2 +0 -0
  26. package/repos/insights-chrome-build/js/4ace320f5eaa7ee9.woff2 +0 -0
  27. package/repos/insights-chrome-build/js/4b0d8eeb01c2f27e.woff2 +0 -0
  28. package/repos/insights-chrome-build/js/4df2ca3d94d759b3.svg +0 -515
  29. package/repos/insights-chrome-build/js/52f482efb5487bba.woff2 +0 -0
  30. package/repos/insights-chrome-build/js/64b9a14b3398824f.woff2 +0 -0
  31. package/repos/insights-chrome-build/js/66309a34eac8b284.woff2 +0 -0
  32. package/repos/insights-chrome-build/js/6e30b223886d1eef.woff2 +0 -0
  33. package/repos/insights-chrome-build/js/6fb4e4e104bb886f.woff2 +0 -0
  34. package/repos/insights-chrome-build/js/703c721f27900006.woff +0 -0
  35. package/repos/insights-chrome-build/js/79c835ddc356c3ef.woff +0 -0
  36. package/repos/insights-chrome-build/js/7a0809e40bf8e79a.woff +0 -0
  37. package/repos/insights-chrome-build/js/7a9fb47c5b35e50d.woff2 +0 -0
  38. package/repos/insights-chrome-build/js/7bb3ddb0583cc7a5.woff +0 -0
  39. package/repos/insights-chrome-build/js/7bf300b28414f3ad.woff +0 -0
  40. package/repos/insights-chrome-build/js/7d9b027229967149.woff2 +0 -0
  41. package/repos/insights-chrome-build/js/81245ab8c867ea09.woff +0 -0
  42. package/repos/insights-chrome-build/js/830dcb2cc707ae4c.woff +0 -0
  43. package/repos/insights-chrome-build/js/835112a9ba0d676e.woff +0 -0
  44. package/repos/insights-chrome-build/js/8f3e80eba644e3ec.svg +0 -33
  45. package/repos/insights-chrome-build/js/8f765508913b945e.woff2 +0 -0
  46. package/repos/insights-chrome-build/js/91bbac2b6e0eb739.woff +0 -0
  47. package/repos/insights-chrome-build/js/96971d99ef5f2ef7.woff2 +0 -0
  48. package/repos/insights-chrome-build/js/_c74b-_e0c3-_9cf0-_3467-_8add-_2900-_a7bc-_70d9-_eea3-_8afc-_d73e-_1a3c-_2385-_85ca-_5c4f-_0f-35898c0.b3f9836f62184986.js +0 -943
  49. package/repos/insights-chrome-build/js/_c74b-_e0c3-_9cf0-_3467-_8add-_2900-_a7bc-_70d9-_eea3-_8afc-_d73e-_1a3c-_2385-_85ca-_5c4f-_0f-35898c1.b3f9836f62184986.js +0 -943
  50. package/repos/insights-chrome-build/js/a14c79bac597c758.woff +0 -0
  51. package/repos/insights-chrome-build/js/a86c2bca47a21ff0.woff2 +0 -0
  52. package/repos/insights-chrome-build/js/ad4d1e278d4d13cb.woff +0 -0
  53. package/repos/insights-chrome-build/js/ajs-destination.b3f9836f62184986.js +0 -594
  54. package/repos/insights-chrome-build/js/auto-track.b3f9836f62184986.js +0 -122
  55. package/repos/insights-chrome-build/js/b0ebda5f4f12f761.woff2 +0 -0
  56. package/repos/insights-chrome-build/js/b97a3321aaf7e87a.woff2 +0 -0
  57. package/repos/insights-chrome-build/js/ba04b02b7da08f3d.woff2 +0 -0
  58. package/repos/insights-chrome-build/js/bb85876a67d3e7e7.woff2 +0 -0
  59. package/repos/insights-chrome-build/js/bbe18aee9c88166d.woff +0 -0
  60. package/repos/insights-chrome-build/js/c3ab7be4146884a3.woff2 +0 -0
  61. package/repos/insights-chrome-build/js/c49edc34d14553e4.woff +0 -0
  62. package/repos/insights-chrome-build/js/c8b06bb52b20081e.woff2 +0 -0
  63. package/repos/insights-chrome-build/js/c99e50723fcf0166.woff +0 -0
  64. package/repos/insights-chrome-build/js/cb827f53cc6d6dcf.woff2 +0 -0
  65. package/repos/insights-chrome-build/js/cd1824ff99b9ef33.woff2 +0 -0
  66. package/repos/insights-chrome-build/js/ce63a8f6be94c7cd.woff2 +0 -0
  67. package/repos/insights-chrome-build/js/chrome-root.b3f9836f62184986.js +0 -43326
  68. package/repos/insights-chrome-build/js/chrome.b3f9836f62184986.js +0 -33007
  69. package/repos/insights-chrome-build/js/d004dc9f8c955767.woff2 +0 -0
  70. package/repos/insights-chrome-build/js/d19c89c249d7f751.woff2 +0 -0
  71. package/repos/insights-chrome-build/js/d2a095f5996e5014.woff2 +0 -0
  72. package/repos/insights-chrome-build/js/d2ce043298f5c972.woff +0 -0
  73. package/repos/insights-chrome-build/js/d2cf7e795db09bc7.woff +0 -0
  74. package/repos/insights-chrome-build/js/d6083bde9a964ab4.svg +0 -96
  75. package/repos/insights-chrome-build/js/dd18fb6c0b7048e8.woff2 +0 -0
  76. package/repos/insights-chrome-build/js/df8a52d2494e1e03.woff2 +0 -0
  77. package/repos/insights-chrome-build/js/e5c7a27047a83d24.woff2 +0 -0
  78. package/repos/insights-chrome-build/js/e693e4f9d9c75499.woff2 +0 -0
  79. package/repos/insights-chrome-build/js/e8ec1c41a82bd354.woff +0 -0
  80. package/repos/insights-chrome-build/js/f66882bad34e5c9f.woff +0 -0
  81. package/repos/insights-chrome-build/js/f830d4d01f5e4497.woff +0 -0
  82. package/repos/insights-chrome-build/js/fed-mods.json +0 -15
  83. package/repos/insights-chrome-build/js/legacyVideos.b3f9836f62184986.js +0 -41
  84. package/repos/insights-chrome-build/js/main.b3f9836f62184986.css +0 -51216
  85. package/repos/insights-chrome-build/js/node_modules_hoist-non-react-statics_dist_hoist-non-react-statics_cjs_js.b3f9836f62184986.js +0 -323
  86. package/repos/insights-chrome-build/js/node_modules_lodash_isEqual_js.b3f9836f62184986.js +0 -48
  87. package/repos/insights-chrome-build/js/node_modules_patternfly_react-icons_dist_js_icons_bars-icon_js-node_modules_patternfly_react--0a3495.b3f9836f62184986.js +0 -242
  88. package/repos/insights-chrome-build/js/queryString.b3f9836f62184986.js +0 -128
  89. package/repos/insights-chrome-build/js/quick-start.b3f9836f62184986.js +0 -47
  90. package/repos/insights-chrome-build/js/remoteMiddleware.b3f9836f62184986.js +0 -87
  91. package/repos/insights-chrome-build/js/schemaFilter.b3f9836f62184986.js +0 -111
  92. package/repos/insights-chrome-build/js/src_bootstrap_tsx-src_moduleOverrides_unfetch_ts-node_modules_redhat-cloud-services_frontend--275e6e.b3f9836f62184986.css +0 -27041
  93. package/repos/insights-chrome-build/js/src_bootstrap_tsx-src_moduleOverrides_unfetch_ts-node_modules_redhat-cloud-services_frontend--275e6e.b3f9836f62184986.js +0 -20468
  94. package/repos/insights-chrome-build/js/src_components_Debugger_index_ts.b3f9836f62184986.css +0 -52
  95. package/repos/insights-chrome-build/js/src_components_Debugger_index_ts.b3f9836f62184986.js +0 -512
  96. package/repos/insights-chrome-build/js/src_components_FavoriteServices_EmptyState_tsx-src_hooks_useFavoritedServices_ts.b3f9836f62184986.css +0 -8664
  97. package/repos/insights-chrome-build/js/src_components_FavoriteServices_EmptyState_tsx-src_hooks_useFavoritedServices_ts.b3f9836f62184986.js +0 -5098
  98. package/repos/insights-chrome-build/js/src_components_FavoriteServices_LandingNavFavorites_tsx-src_utils_common_ts.b3f9836f62184986.css +0 -8662
  99. package/repos/insights-chrome-build/js/src_components_FavoriteServices_LandingNavFavorites_tsx-src_utils_common_ts.b3f9836f62184986.js +0 -898
  100. package/repos/insights-chrome-build/js/src_components_NotEntitledModal_index_tsx.b3f9836f62184986.css +0 -30
  101. package/repos/insights-chrome-build/js/src_components_NotEntitledModal_index_tsx.b3f9836f62184986.js +0 -237
  102. package/repos/insights-chrome-build/js/src_components_QuickstartsCatalogRoute_index_ts.b3f9836f62184986.js +0 -106
  103. package/repos/insights-chrome-build/js/src_components_Stratosphere_ProductSelection_tsx.b3f9836f62184986.css +0 -17513
  104. package/repos/insights-chrome-build/js/src_components_Stratosphere_ProductSelection_tsx.b3f9836f62184986.js +0 -335
  105. package/repos/insights-chrome-build/js/src_moduleOverrides_chart-utils-override_js-src_pdf_DownloadButton_tsx-webpack_sharing_consum-3a44a6.b3f9836f62184986.js +0 -91
  106. package/repos/insights-chrome-build/js/tsub-middleware.b3f9836f62184986.js +0 -6836
  107. package/repos/insights-chrome-build/js/vendors-node_modules_buffer_index_js-node_modules_lodash__baseFlatten_js-node_modules_lodash_-1de864.b3f9836f62184986.js +0 -2552
  108. package/repos/insights-chrome-build/js/vendors-node_modules_hoist-non-react-statics_dist_hoist-non-react-statics_cjs_js-node_modules-c053fb.b3f9836f62184986.js +0 -1761
  109. package/repos/insights-chrome-build/js/vendors-node_modules_inherits_inherits_browser_js-node_modules_lodash__baseMerge_js-node_modu-5ed1a1.b3f9836f62184986.js +0 -1113
  110. package/repos/insights-chrome-build/js/vendors-node_modules_lodash__baseForOwn_js-node_modules_lodash__baseIteratee_js-node_modules_-167437.b3f9836f62184986.js +0 -1289
  111. package/repos/insights-chrome-build/js/vendors-node_modules_lodash__baseIsEqual_js.b3f9836f62184986.js +0 -3148
  112. package/repos/insights-chrome-build/js/vendors-node_modules_openshift_dynamic-plugin-sdk_dist_index_js.b3f9836f62184986.js +0 -17197
  113. package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_quickstarts_dist_index_es_js.b3f9836f62184986.js +0 -13149
  114. package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-charts_dist_esm_components_ChartUtils_chart-theme_js-no-998b15.b3f9836f62184986.js +0 -166192
  115. package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-core_dist_esm_components_Button_Button_js-node_modules_-6763c7.b3f9836f62184986.js +0 -6274
  116. package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-core_dist_esm_index_js.b3f9836f62184986.js +0 -33678
  117. package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-core_next_components_Select_Select_js-node_modules_patt-da466d.b3f9836f62184986.js +0 -4946
  118. package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-icons_dist_esm_icons_bell-slash-icon_js-node_modules_pa-6de3ff.b3f9836f62184986.js +0 -74388
  119. package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-icons_dist_esm_icons_star-icon_js-node_modules_axios_in-5a9fd5.b3f9836f62184986.js +0 -2881
  120. package/repos/insights-chrome-build/js/vendors-node_modules_prop-types_index_js.b3f9836f62184986.js +0 -649
  121. package/repos/insights-chrome-build/js/vendors-node_modules_react-redux_es_index_js.b3f9836f62184986.js +0 -2337
  122. package/repos/insights-chrome-build/js/vendors-node_modules_react-router-dom_dist_index_js.b3f9836f62184986.js +0 -6691
  123. package/repos/insights-chrome-build/js/vendors-node_modules_react_jsx-runtime_js.b3f9836f62184986.js +0 -1250
  124. package/repos/insights-chrome-build/js/vendors-node_modules_redhat-cloud-services_chrome_esm_index_js.b3f9836f62184986.js +0 -708
  125. package/repos/insights-chrome-build/js/vendors-node_modules_redhat-cloud-services_frontend-components-utilities_esm_interceptors_int-b5fffe.b3f9836f62184986.js +0 -21636
  126. package/repos/insights-chrome-build/js/vendors-node_modules_scalprum_core_dist_esm_index_js.b3f9836f62184986.js +0 -363
  127. package/repos/insights-chrome-build/js/vendors-node_modules_scalprum_react-core_dist_esm_index_js.b3f9836f62184986.js +0 -762
  128. package/repos/insights-chrome-build/js/vendors-node_modules_segment_analytics_js-video-plugins_dist_index_umd_js.b3f9836f62184986.js +0 -13
  129. package/repos/insights-chrome-build/js/vendors-node_modules_tslib_tslib_es6_js.b3f9836f62184986.js +0 -258
  130. package/repos/insights-chrome-build/js/vendors-node_modules_unleash_proxy-client-react_dist_index_browser_js.b3f9836f62184986.js +0 -1821
  131. package/repos/insights-chrome-build/silent-check-sso.html +0 -7
@@ -1,2337 +0,0 @@
1
- "use strict";
2
- (self["webpackChunkinsights_chrome"] = self["webpackChunkinsights_chrome"] || []).push([["vendors-node_modules_react-redux_es_index_js"],{
3
-
4
- /***/ "./node_modules/react-redux/es/components/Context.js":
5
- /*!***********************************************************!*\
6
- !*** ./node_modules/react-redux/es/components/Context.js ***!
7
- \***********************************************************/
8
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9
-
10
- __webpack_require__.r(__webpack_exports__);
11
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12
- /* harmony export */ "ReactReduxContext": () => (/* binding */ ReactReduxContext),
13
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
14
- /* harmony export */ });
15
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?88de");
16
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
17
-
18
- const ReactReduxContext = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);
19
-
20
- if (true) {
21
- ReactReduxContext.displayName = 'ReactRedux';
22
- }
23
-
24
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ReactReduxContext);
25
-
26
- /***/ }),
27
-
28
- /***/ "./node_modules/react-redux/es/components/Provider.js":
29
- /*!************************************************************!*\
30
- !*** ./node_modules/react-redux/es/components/Provider.js ***!
31
- \************************************************************/
32
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
33
-
34
- __webpack_require__.r(__webpack_exports__);
35
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
36
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
37
- /* harmony export */ });
38
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?88de");
39
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
40
- /* harmony import */ var _Context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Context */ "./node_modules/react-redux/es/components/Context.js");
41
- /* harmony import */ var _utils_Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/Subscription */ "./node_modules/react-redux/es/utils/Subscription.js");
42
- /* harmony import */ var _utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/useIsomorphicLayoutEffect */ "./node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js");
43
-
44
-
45
-
46
-
47
-
48
- function Provider({
49
- store,
50
- context,
51
- children,
52
- serverState
53
- }) {
54
- const contextValue = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => {
55
- const subscription = (0,_utils_Subscription__WEBPACK_IMPORTED_MODULE_2__.createSubscription)(store);
56
- return {
57
- store,
58
- subscription,
59
- getServerState: serverState ? () => serverState : undefined
60
- };
61
- }, [store, serverState]);
62
- const previousState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => store.getState(), [store]);
63
- (0,_utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__.useIsomorphicLayoutEffect)(() => {
64
- const {
65
- subscription
66
- } = contextValue;
67
- subscription.onStateChange = subscription.notifyNestedSubs;
68
- subscription.trySubscribe();
69
-
70
- if (previousState !== store.getState()) {
71
- subscription.notifyNestedSubs();
72
- }
73
-
74
- return () => {
75
- subscription.tryUnsubscribe();
76
- subscription.onStateChange = undefined;
77
- };
78
- }, [contextValue, previousState]);
79
- const Context = context || _Context__WEBPACK_IMPORTED_MODULE_1__.ReactReduxContext; // @ts-ignore 'AnyAction' is assignable to the constraint of type 'A', but 'A' could be instantiated with a different subtype
80
-
81
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Context.Provider, {
82
- value: contextValue
83
- }, children);
84
- }
85
-
86
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Provider);
87
-
88
- /***/ }),
89
-
90
- /***/ "./node_modules/react-redux/es/components/connect.js":
91
- /*!***********************************************************!*\
92
- !*** ./node_modules/react-redux/es/components/connect.js ***!
93
- \***********************************************************/
94
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
95
-
96
- __webpack_require__.r(__webpack_exports__);
97
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
98
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
99
- /* harmony export */ "initializeConnect": () => (/* binding */ initializeConnect)
100
- /* harmony export */ });
101
- /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
102
- /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
103
- /* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
104
- /* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2__);
105
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?88de");
106
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
107
- /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-is */ "./node_modules/react-redux/node_modules/react-is/index.js");
108
- /* harmony import */ var _connect_selectorFactory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../connect/selectorFactory */ "./node_modules/react-redux/es/connect/selectorFactory.js");
109
- /* harmony import */ var _connect_mapDispatchToProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../connect/mapDispatchToProps */ "./node_modules/react-redux/es/connect/mapDispatchToProps.js");
110
- /* harmony import */ var _connect_mapStateToProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../connect/mapStateToProps */ "./node_modules/react-redux/es/connect/mapStateToProps.js");
111
- /* harmony import */ var _connect_mergeProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../connect/mergeProps */ "./node_modules/react-redux/es/connect/mergeProps.js");
112
- /* harmony import */ var _utils_Subscription__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/Subscription */ "./node_modules/react-redux/es/utils/Subscription.js");
113
- /* harmony import */ var _utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/useIsomorphicLayoutEffect */ "./node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js");
114
- /* harmony import */ var _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/shallowEqual */ "./node_modules/react-redux/es/utils/shallowEqual.js");
115
- /* harmony import */ var _utils_warning__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/warning */ "./node_modules/react-redux/es/utils/warning.js");
116
- /* harmony import */ var _Context__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Context */ "./node_modules/react-redux/es/components/Context.js");
117
- /* harmony import */ var _utils_useSyncExternalStore__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/useSyncExternalStore */ "./node_modules/react-redux/es/utils/useSyncExternalStore.js");
118
-
119
-
120
- const _excluded = ["reactReduxForwardedRef"];
121
-
122
- /* eslint-disable valid-jsdoc, @typescript-eslint/no-unused-vars */
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
- let useSyncExternalStore = _utils_useSyncExternalStore__WEBPACK_IMPORTED_MODULE_14__.notInitialized;
137
- const initializeConnect = fn => {
138
- useSyncExternalStore = fn;
139
- }; // Define some constant arrays just to avoid re-creating these
140
-
141
- const EMPTY_ARRAY = [null, 0];
142
- const NO_SUBSCRIPTION_ARRAY = [null, null]; // Attempts to stringify whatever not-really-a-component value we were given
143
- // for logging in an error message
144
-
145
- const stringifyComponent = Comp => {
146
- try {
147
- return JSON.stringify(Comp);
148
- } catch (err) {
149
- return String(Comp);
150
- }
151
- };
152
-
153
- // This is "just" a `useLayoutEffect`, but with two modifications:
154
- // - we need to fall back to `useEffect` in SSR to avoid annoying warnings
155
- // - we extract this to a separate function to avoid closing over values
156
- // and causing memory leaks
157
- function useIsomorphicLayoutEffectWithArgs(effectFunc, effectArgs, dependencies) {
158
- (0,_utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_10__.useIsomorphicLayoutEffect)(() => effectFunc(...effectArgs), dependencies);
159
- } // Effect callback, extracted: assign the latest props values to refs for later usage
160
-
161
-
162
- function captureWrapperProps(lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, // actualChildProps: unknown,
163
- childPropsFromStoreUpdate, notifyNestedSubs) {
164
- // We want to capture the wrapper props and child props we used for later comparisons
165
- lastWrapperProps.current = wrapperProps;
166
- renderIsScheduled.current = false; // If the render was from a store update, clear out that reference and cascade the subscriber update
167
-
168
- if (childPropsFromStoreUpdate.current) {
169
- childPropsFromStoreUpdate.current = null;
170
- notifyNestedSubs();
171
- }
172
- } // Effect callback, extracted: subscribe to the Redux store or nearest connected ancestor,
173
- // check for updates after dispatched actions, and trigger re-renders.
174
-
175
-
176
- function subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, // forceComponentUpdateDispatch: React.Dispatch<any>,
177
- additionalSubscribeListener) {
178
- // If we're not subscribed to the store, nothing to do here
179
- if (!shouldHandleStateChanges) return () => {}; // Capture values for checking if and when this component unmounts
180
-
181
- let didUnsubscribe = false;
182
- let lastThrownError = null; // We'll run this callback every time a store subscription update propagates to this component
183
-
184
- const checkForUpdates = () => {
185
- if (didUnsubscribe || !isMounted.current) {
186
- // Don't run stale listeners.
187
- // Redux doesn't guarantee unsubscriptions happen until next dispatch.
188
- return;
189
- } // TODO We're currently calling getState ourselves here, rather than letting `uSES` do it
190
-
191
-
192
- const latestStoreState = store.getState();
193
- let newChildProps, error;
194
-
195
- try {
196
- // Actually run the selector with the most recent store state and wrapper props
197
- // to determine what the child props should be
198
- newChildProps = childPropsSelector(latestStoreState, lastWrapperProps.current);
199
- } catch (e) {
200
- error = e;
201
- lastThrownError = e;
202
- }
203
-
204
- if (!error) {
205
- lastThrownError = null;
206
- } // If the child props haven't changed, nothing to do here - cascade the subscription update
207
-
208
-
209
- if (newChildProps === lastChildProps.current) {
210
- if (!renderIsScheduled.current) {
211
- notifyNestedSubs();
212
- }
213
- } else {
214
- // Save references to the new child props. Note that we track the "child props from store update"
215
- // as a ref instead of a useState/useReducer because we need a way to determine if that value has
216
- // been processed. If this went into useState/useReducer, we couldn't clear out the value without
217
- // forcing another re-render, which we don't want.
218
- lastChildProps.current = newChildProps;
219
- childPropsFromStoreUpdate.current = newChildProps;
220
- renderIsScheduled.current = true; // TODO This is hacky and not how `uSES` is meant to be used
221
- // Trigger the React `useSyncExternalStore` subscriber
222
-
223
- additionalSubscribeListener();
224
- }
225
- }; // Actually subscribe to the nearest connected ancestor (or store)
226
-
227
-
228
- subscription.onStateChange = checkForUpdates;
229
- subscription.trySubscribe(); // Pull data from the store after first render in case the store has
230
- // changed since we began.
231
-
232
- checkForUpdates();
233
-
234
- const unsubscribeWrapper = () => {
235
- didUnsubscribe = true;
236
- subscription.tryUnsubscribe();
237
- subscription.onStateChange = null;
238
-
239
- if (lastThrownError) {
240
- // It's possible that we caught an error due to a bad mapState function, but the
241
- // parent re-rendered without this component and we're about to unmount.
242
- // This shouldn't happen as long as we do top-down subscriptions correctly, but
243
- // if we ever do those wrong, this throw will surface the error in our tests.
244
- // In that case, throw the error from here so it doesn't get lost.
245
- throw lastThrownError;
246
- }
247
- };
248
-
249
- return unsubscribeWrapper;
250
- } // Reducer initial state creation for our update reducer
251
-
252
-
253
- const initStateUpdates = () => EMPTY_ARRAY;
254
-
255
- function strictEqual(a, b) {
256
- return a === b;
257
- }
258
- /**
259
- * Infers the type of props that a connector will inject into a component.
260
- */
261
-
262
-
263
- let hasWarnedAboutDeprecatedPureOption = false;
264
- /**
265
- * Connects a React component to a Redux store.
266
- *
267
- * - Without arguments, just wraps the component, without changing the behavior / props
268
- *
269
- * - If 2 params are passed (3rd param, mergeProps, is skipped), default behavior
270
- * is to override ownProps (as stated in the docs), so what remains is everything that's
271
- * not a state or dispatch prop
272
- *
273
- * - When 3rd param is passed, we don't know if ownProps propagate and whether they
274
- * should be valid component props, because it depends on mergeProps implementation.
275
- * As such, it is the user's responsibility to extend ownProps interface from state or
276
- * dispatch props or both when applicable
277
- *
278
- * @param mapStateToProps A function that extracts values from state
279
- * @param mapDispatchToProps Setup for dispatching actions
280
- * @param mergeProps Optional callback to merge state and dispatch props together
281
- * @param options Options for configuring the connection
282
- *
283
- */
284
-
285
- function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
286
- // The `pure` option has been removed, so TS doesn't like us destructuring this to check its existence.
287
- // @ts-ignore
288
- pure,
289
- areStatesEqual = strictEqual,
290
- areOwnPropsEqual = _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_11__["default"],
291
- areStatePropsEqual = _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_11__["default"],
292
- areMergedPropsEqual = _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_11__["default"],
293
- // use React's forwardRef to expose a ref of the wrapped component
294
- forwardRef = false,
295
- // the context consumer to use
296
- context = _Context__WEBPACK_IMPORTED_MODULE_13__.ReactReduxContext
297
- } = {}) {
298
- if (true) {
299
- if (pure !== undefined && !hasWarnedAboutDeprecatedPureOption) {
300
- hasWarnedAboutDeprecatedPureOption = true;
301
- (0,_utils_warning__WEBPACK_IMPORTED_MODULE_12__["default"])('The `pure` option has been removed. `connect` is now always a "pure/memoized" component');
302
- }
303
- }
304
-
305
- const Context = context;
306
- const initMapStateToProps = (0,_connect_mapStateToProps__WEBPACK_IMPORTED_MODULE_7__.mapStateToPropsFactory)(mapStateToProps);
307
- const initMapDispatchToProps = (0,_connect_mapDispatchToProps__WEBPACK_IMPORTED_MODULE_6__.mapDispatchToPropsFactory)(mapDispatchToProps);
308
- const initMergeProps = (0,_connect_mergeProps__WEBPACK_IMPORTED_MODULE_8__.mergePropsFactory)(mergeProps);
309
- const shouldHandleStateChanges = Boolean(mapStateToProps);
310
-
311
- const wrapWithConnect = WrappedComponent => {
312
- if ( true && !(0,react_is__WEBPACK_IMPORTED_MODULE_4__.isValidElementType)(WrappedComponent)) {
313
- throw new Error(`You must pass a component to the function returned by connect. Instead received ${stringifyComponent(WrappedComponent)}`);
314
- }
315
-
316
- const wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
317
- const displayName = `Connect(${wrappedComponentName})`;
318
- const selectorFactoryOptions = {
319
- shouldHandleStateChanges,
320
- displayName,
321
- wrappedComponentName,
322
- WrappedComponent,
323
- // @ts-ignore
324
- initMapStateToProps,
325
- // @ts-ignore
326
- initMapDispatchToProps,
327
- initMergeProps,
328
- areStatesEqual,
329
- areStatePropsEqual,
330
- areOwnPropsEqual,
331
- areMergedPropsEqual
332
- };
333
-
334
- function ConnectFunction(props) {
335
- const [propsContext, reactReduxForwardedRef, wrapperProps] = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(() => {
336
- // Distinguish between actual "data" props that were passed to the wrapper component,
337
- // and values needed to control behavior (forwarded refs, alternate context instances).
338
- // To maintain the wrapperProps object reference, memoize this destructuring.
339
- const {
340
- reactReduxForwardedRef
341
- } = props,
342
- wrapperProps = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(props, _excluded);
343
-
344
- return [props.context, reactReduxForwardedRef, wrapperProps];
345
- }, [props]);
346
- const ContextToUse = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(() => {
347
- // Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.
348
- // Memoize the check that determines which context instance we should use.
349
- return propsContext && propsContext.Consumer && // @ts-ignore
350
- (0,react_is__WEBPACK_IMPORTED_MODULE_4__.isContextConsumer)( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(propsContext.Consumer, null)) ? propsContext : Context;
351
- }, [propsContext, Context]); // Retrieve the store and ancestor subscription via context, if available
352
-
353
- const contextValue = (0,react__WEBPACK_IMPORTED_MODULE_3__.useContext)(ContextToUse); // The store _must_ exist as either a prop or in context.
354
- // We'll check to see if it _looks_ like a Redux store first.
355
- // This allows us to pass through a `store` prop that is just a plain value.
356
-
357
- const didStoreComeFromProps = Boolean(props.store) && Boolean(props.store.getState) && Boolean(props.store.dispatch);
358
- const didStoreComeFromContext = Boolean(contextValue) && Boolean(contextValue.store);
359
-
360
- if ( true && !didStoreComeFromProps && !didStoreComeFromContext) {
361
- throw new Error(`Could not find "store" in the context of ` + `"${displayName}". Either wrap the root component in a <Provider>, ` + `or pass a custom React context provider to <Provider> and the corresponding ` + `React context consumer to ${displayName} in connect options.`);
362
- } // Based on the previous check, one of these must be true
363
-
364
-
365
- const store = didStoreComeFromProps ? props.store : contextValue.store;
366
- const getServerState = didStoreComeFromContext ? contextValue.getServerState : store.getState;
367
- const childPropsSelector = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(() => {
368
- // The child props selector needs the store reference as an input.
369
- // Re-create this selector whenever the store changes.
370
- return (0,_connect_selectorFactory__WEBPACK_IMPORTED_MODULE_5__["default"])(store.dispatch, selectorFactoryOptions);
371
- }, [store]);
372
- const [subscription, notifyNestedSubs] = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(() => {
373
- if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY; // This Subscription's source should match where store came from: props vs. context. A component
374
- // connected to the store via props shouldn't use subscription from context, or vice versa.
375
-
376
- const subscription = (0,_utils_Subscription__WEBPACK_IMPORTED_MODULE_9__.createSubscription)(store, didStoreComeFromProps ? undefined : contextValue.subscription); // `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in
377
- // the middle of the notification loop, where `subscription` will then be null. This can
378
- // probably be avoided if Subscription's listeners logic is changed to not call listeners
379
- // that have been unsubscribed in the middle of the notification loop.
380
-
381
- const notifyNestedSubs = subscription.notifyNestedSubs.bind(subscription);
382
- return [subscription, notifyNestedSubs];
383
- }, [store, didStoreComeFromProps, contextValue]); // Determine what {store, subscription} value should be put into nested context, if necessary,
384
- // and memoize that value to avoid unnecessary context updates.
385
-
386
- const overriddenContextValue = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(() => {
387
- if (didStoreComeFromProps) {
388
- // This component is directly subscribed to a store from props.
389
- // We don't want descendants reading from this store - pass down whatever
390
- // the existing context value is from the nearest connected ancestor.
391
- return contextValue;
392
- } // Otherwise, put this component's subscription instance into context, so that
393
- // connected descendants won't update until after this component is done
394
-
395
-
396
- return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, contextValue, {
397
- subscription
398
- });
399
- }, [didStoreComeFromProps, contextValue, subscription]); // Set up refs to coordinate values between the subscription effect and the render logic
400
-
401
- const lastChildProps = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)();
402
- const lastWrapperProps = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(wrapperProps);
403
- const childPropsFromStoreUpdate = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)();
404
- const renderIsScheduled = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(false);
405
- const isProcessingDispatch = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(false);
406
- const isMounted = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(false);
407
- const latestSubscriptionCallbackError = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)();
408
- (0,_utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_10__.useIsomorphicLayoutEffect)(() => {
409
- isMounted.current = true;
410
- return () => {
411
- isMounted.current = false;
412
- };
413
- }, []);
414
- const actualChildPropsSelector = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(() => {
415
- const selector = () => {
416
- // Tricky logic here:
417
- // - This render may have been triggered by a Redux store update that produced new child props
418
- // - However, we may have gotten new wrapper props after that
419
- // If we have new child props, and the same wrapper props, we know we should use the new child props as-is.
420
- // But, if we have new wrapper props, those might change the child props, so we have to recalculate things.
421
- // So, we'll use the child props from store update only if the wrapper props are the same as last time.
422
- if (childPropsFromStoreUpdate.current && wrapperProps === lastWrapperProps.current) {
423
- return childPropsFromStoreUpdate.current;
424
- } // TODO We're reading the store directly in render() here. Bad idea?
425
- // This will likely cause Bad Things (TM) to happen in Concurrent Mode.
426
- // Note that we do this because on renders _not_ caused by store updates, we need the latest store state
427
- // to determine what the child props should be.
428
-
429
-
430
- return childPropsSelector(store.getState(), wrapperProps);
431
- };
432
-
433
- return selector;
434
- }, [store, wrapperProps]); // We need this to execute synchronously every time we re-render. However, React warns
435
- // about useLayoutEffect in SSR, so we try to detect environment and fall back to
436
- // just useEffect instead to avoid the warning, since neither will run anyway.
437
-
438
- const subscribeForReact = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(() => {
439
- const subscribe = reactListener => {
440
- if (!subscription) {
441
- return () => {};
442
- }
443
-
444
- return subscribeUpdates(shouldHandleStateChanges, store, subscription, // @ts-ignore
445
- childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, reactListener);
446
- };
447
-
448
- return subscribe;
449
- }, [subscription]);
450
- useIsomorphicLayoutEffectWithArgs(captureWrapperProps, [lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, childPropsFromStoreUpdate, notifyNestedSubs]);
451
- let actualChildProps;
452
-
453
- try {
454
- actualChildProps = useSyncExternalStore( // TODO We're passing through a big wrapper that does a bunch of extra side effects besides subscribing
455
- subscribeForReact, // TODO This is incredibly hacky. We've already processed the store update and calculated new child props,
456
- // TODO and we're just passing that through so it triggers a re-render for us rather than relying on `uSES`.
457
- actualChildPropsSelector, getServerState ? () => childPropsSelector(getServerState(), wrapperProps) : actualChildPropsSelector);
458
- } catch (err) {
459
- if (latestSubscriptionCallbackError.current) {
460
- ;
461
- err.message += `\nThe error may be correlated with this previous error:\n${latestSubscriptionCallbackError.current.stack}\n\n`;
462
- }
463
-
464
- throw err;
465
- }
466
-
467
- (0,_utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_10__.useIsomorphicLayoutEffect)(() => {
468
- latestSubscriptionCallbackError.current = undefined;
469
- childPropsFromStoreUpdate.current = undefined;
470
- lastChildProps.current = actualChildProps;
471
- }); // Now that all that's done, we can finally try to actually render the child component.
472
- // We memoize the elements for the rendered child component as an optimization.
473
-
474
- const renderedWrappedComponent = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(() => {
475
- return (
476
- /*#__PURE__*/
477
- // @ts-ignore
478
- react__WEBPACK_IMPORTED_MODULE_3___default().createElement(WrappedComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, actualChildProps, {
479
- ref: reactReduxForwardedRef
480
- }))
481
- );
482
- }, [reactReduxForwardedRef, WrappedComponent, actualChildProps]); // If React sees the exact same element reference as last time, it bails out of re-rendering
483
- // that child, same as if it was wrapped in React.memo() or returned false from shouldComponentUpdate.
484
-
485
- const renderedChild = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(() => {
486
- if (shouldHandleStateChanges) {
487
- // If this component is subscribed to store updates, we need to pass its own
488
- // subscription instance down to our descendants. That means rendering the same
489
- // Context instance, and putting a different value into the context.
490
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(ContextToUse.Provider, {
491
- value: overriddenContextValue
492
- }, renderedWrappedComponent);
493
- }
494
-
495
- return renderedWrappedComponent;
496
- }, [ContextToUse, renderedWrappedComponent, overriddenContextValue]);
497
- return renderedChild;
498
- }
499
-
500
- const _Connect = react__WEBPACK_IMPORTED_MODULE_3___default().memo(ConnectFunction);
501
-
502
- // Add a hacky cast to get the right output type
503
- const Connect = _Connect;
504
- Connect.WrappedComponent = WrappedComponent;
505
- Connect.displayName = ConnectFunction.displayName = displayName;
506
-
507
- if (forwardRef) {
508
- const _forwarded = react__WEBPACK_IMPORTED_MODULE_3___default().forwardRef(function forwardConnectRef(props, ref) {
509
- // @ts-ignore
510
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(Connect, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
511
- reactReduxForwardedRef: ref
512
- }));
513
- });
514
-
515
- const forwarded = _forwarded;
516
- forwarded.displayName = displayName;
517
- forwarded.WrappedComponent = WrappedComponent;
518
- return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default()(forwarded, WrappedComponent);
519
- }
520
-
521
- return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default()(Connect, WrappedComponent);
522
- };
523
-
524
- return wrapWithConnect;
525
- }
526
-
527
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (connect);
528
-
529
- /***/ }),
530
-
531
- /***/ "./node_modules/react-redux/es/connect/invalidArgFactory.js":
532
- /*!******************************************************************!*\
533
- !*** ./node_modules/react-redux/es/connect/invalidArgFactory.js ***!
534
- \******************************************************************/
535
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
536
-
537
- __webpack_require__.r(__webpack_exports__);
538
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
539
- /* harmony export */ "createInvalidArgFactory": () => (/* binding */ createInvalidArgFactory)
540
- /* harmony export */ });
541
- function createInvalidArgFactory(arg, name) {
542
- return (dispatch, options) => {
543
- throw new Error(`Invalid value of type ${typeof arg} for ${name} argument when connecting component ${options.wrappedComponentName}.`);
544
- };
545
- }
546
-
547
- /***/ }),
548
-
549
- /***/ "./node_modules/react-redux/es/connect/mapDispatchToProps.js":
550
- /*!*******************************************************************!*\
551
- !*** ./node_modules/react-redux/es/connect/mapDispatchToProps.js ***!
552
- \*******************************************************************/
553
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
554
-
555
- __webpack_require__.r(__webpack_exports__);
556
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
557
- /* harmony export */ "mapDispatchToPropsFactory": () => (/* binding */ mapDispatchToPropsFactory)
558
- /* harmony export */ });
559
- /* harmony import */ var _utils_bindActionCreators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/bindActionCreators */ "./node_modules/react-redux/es/utils/bindActionCreators.js");
560
- /* harmony import */ var _wrapMapToProps__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./wrapMapToProps */ "./node_modules/react-redux/es/connect/wrapMapToProps.js");
561
- /* harmony import */ var _invalidArgFactory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./invalidArgFactory */ "./node_modules/react-redux/es/connect/invalidArgFactory.js");
562
-
563
-
564
-
565
- function mapDispatchToPropsFactory(mapDispatchToProps) {
566
- return mapDispatchToProps && typeof mapDispatchToProps === 'object' ? (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_1__.wrapMapToPropsConstant)(dispatch => // @ts-ignore
567
- (0,_utils_bindActionCreators__WEBPACK_IMPORTED_MODULE_0__["default"])(mapDispatchToProps, dispatch)) : !mapDispatchToProps ? (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_1__.wrapMapToPropsConstant)(dispatch => ({
568
- dispatch
569
- })) : typeof mapDispatchToProps === 'function' ? // @ts-ignore
570
- (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_1__.wrapMapToPropsFunc)(mapDispatchToProps, 'mapDispatchToProps') : (0,_invalidArgFactory__WEBPACK_IMPORTED_MODULE_2__.createInvalidArgFactory)(mapDispatchToProps, 'mapDispatchToProps');
571
- }
572
-
573
- /***/ }),
574
-
575
- /***/ "./node_modules/react-redux/es/connect/mapStateToProps.js":
576
- /*!****************************************************************!*\
577
- !*** ./node_modules/react-redux/es/connect/mapStateToProps.js ***!
578
- \****************************************************************/
579
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
580
-
581
- __webpack_require__.r(__webpack_exports__);
582
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
583
- /* harmony export */ "mapStateToPropsFactory": () => (/* binding */ mapStateToPropsFactory)
584
- /* harmony export */ });
585
- /* harmony import */ var _wrapMapToProps__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./wrapMapToProps */ "./node_modules/react-redux/es/connect/wrapMapToProps.js");
586
- /* harmony import */ var _invalidArgFactory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./invalidArgFactory */ "./node_modules/react-redux/es/connect/invalidArgFactory.js");
587
-
588
-
589
- function mapStateToPropsFactory(mapStateToProps) {
590
- return !mapStateToProps ? (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_0__.wrapMapToPropsConstant)(() => ({})) : typeof mapStateToProps === 'function' ? // @ts-ignore
591
- (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_0__.wrapMapToPropsFunc)(mapStateToProps, 'mapStateToProps') : (0,_invalidArgFactory__WEBPACK_IMPORTED_MODULE_1__.createInvalidArgFactory)(mapStateToProps, 'mapStateToProps');
592
- }
593
-
594
- /***/ }),
595
-
596
- /***/ "./node_modules/react-redux/es/connect/mergeProps.js":
597
- /*!***********************************************************!*\
598
- !*** ./node_modules/react-redux/es/connect/mergeProps.js ***!
599
- \***********************************************************/
600
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
601
-
602
- __webpack_require__.r(__webpack_exports__);
603
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
604
- /* harmony export */ "defaultMergeProps": () => (/* binding */ defaultMergeProps),
605
- /* harmony export */ "mergePropsFactory": () => (/* binding */ mergePropsFactory),
606
- /* harmony export */ "wrapMergePropsFunc": () => (/* binding */ wrapMergePropsFunc)
607
- /* harmony export */ });
608
- /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
609
- /* harmony import */ var _utils_verifyPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/verifyPlainObject */ "./node_modules/react-redux/es/utils/verifyPlainObject.js");
610
- /* harmony import */ var _invalidArgFactory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./invalidArgFactory */ "./node_modules/react-redux/es/connect/invalidArgFactory.js");
611
-
612
-
613
-
614
- function defaultMergeProps(stateProps, dispatchProps, ownProps) {
615
- // @ts-ignore
616
- return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, ownProps, stateProps, dispatchProps);
617
- }
618
- function wrapMergePropsFunc(mergeProps) {
619
- return function initMergePropsProxy(dispatch, {
620
- displayName,
621
- areMergedPropsEqual
622
- }) {
623
- let hasRunOnce = false;
624
- let mergedProps;
625
- return function mergePropsProxy(stateProps, dispatchProps, ownProps) {
626
- const nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps);
627
-
628
- if (hasRunOnce) {
629
- if (!areMergedPropsEqual(nextMergedProps, mergedProps)) mergedProps = nextMergedProps;
630
- } else {
631
- hasRunOnce = true;
632
- mergedProps = nextMergedProps;
633
- if (true) (0,_utils_verifyPlainObject__WEBPACK_IMPORTED_MODULE_1__["default"])(mergedProps, displayName, 'mergeProps');
634
- }
635
-
636
- return mergedProps;
637
- };
638
- };
639
- }
640
- function mergePropsFactory(mergeProps) {
641
- return !mergeProps ? () => defaultMergeProps : typeof mergeProps === 'function' ? wrapMergePropsFunc(mergeProps) : (0,_invalidArgFactory__WEBPACK_IMPORTED_MODULE_2__.createInvalidArgFactory)(mergeProps, 'mergeProps');
642
- }
643
-
644
- /***/ }),
645
-
646
- /***/ "./node_modules/react-redux/es/connect/selectorFactory.js":
647
- /*!****************************************************************!*\
648
- !*** ./node_modules/react-redux/es/connect/selectorFactory.js ***!
649
- \****************************************************************/
650
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
651
-
652
- __webpack_require__.r(__webpack_exports__);
653
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
654
- /* harmony export */ "default": () => (/* binding */ finalPropsSelectorFactory),
655
- /* harmony export */ "pureFinalPropsSelectorFactory": () => (/* binding */ pureFinalPropsSelectorFactory)
656
- /* harmony export */ });
657
- /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
658
- /* harmony import */ var _verifySubselectors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./verifySubselectors */ "./node_modules/react-redux/es/connect/verifySubselectors.js");
659
-
660
- const _excluded = ["initMapStateToProps", "initMapDispatchToProps", "initMergeProps"];
661
-
662
- function pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, {
663
- areStatesEqual,
664
- areOwnPropsEqual,
665
- areStatePropsEqual
666
- }) {
667
- let hasRunAtLeastOnce = false;
668
- let state;
669
- let ownProps;
670
- let stateProps;
671
- let dispatchProps;
672
- let mergedProps;
673
-
674
- function handleFirstCall(firstState, firstOwnProps) {
675
- state = firstState;
676
- ownProps = firstOwnProps;
677
- stateProps = mapStateToProps(state, ownProps);
678
- dispatchProps = mapDispatchToProps(dispatch, ownProps);
679
- mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
680
- hasRunAtLeastOnce = true;
681
- return mergedProps;
682
- }
683
-
684
- function handleNewPropsAndNewState() {
685
- stateProps = mapStateToProps(state, ownProps);
686
- if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
687
- mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
688
- return mergedProps;
689
- }
690
-
691
- function handleNewProps() {
692
- if (mapStateToProps.dependsOnOwnProps) stateProps = mapStateToProps(state, ownProps);
693
- if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
694
- mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
695
- return mergedProps;
696
- }
697
-
698
- function handleNewState() {
699
- const nextStateProps = mapStateToProps(state, ownProps);
700
- const statePropsChanged = !areStatePropsEqual(nextStateProps, stateProps);
701
- stateProps = nextStateProps;
702
- if (statePropsChanged) mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
703
- return mergedProps;
704
- }
705
-
706
- function handleSubsequentCalls(nextState, nextOwnProps) {
707
- const propsChanged = !areOwnPropsEqual(nextOwnProps, ownProps);
708
- const stateChanged = !areStatesEqual(nextState, state, nextOwnProps, ownProps);
709
- state = nextState;
710
- ownProps = nextOwnProps;
711
- if (propsChanged && stateChanged) return handleNewPropsAndNewState();
712
- if (propsChanged) return handleNewProps();
713
- if (stateChanged) return handleNewState();
714
- return mergedProps;
715
- }
716
-
717
- return function pureFinalPropsSelector(nextState, nextOwnProps) {
718
- return hasRunAtLeastOnce ? handleSubsequentCalls(nextState, nextOwnProps) : handleFirstCall(nextState, nextOwnProps);
719
- };
720
- }
721
- // TODO: Add more comments
722
- // The selector returned by selectorFactory will memoize its results,
723
- // allowing connect's shouldComponentUpdate to return false if final
724
- // props have not changed.
725
- function finalPropsSelectorFactory(dispatch, _ref) {
726
- let {
727
- initMapStateToProps,
728
- initMapDispatchToProps,
729
- initMergeProps
730
- } = _ref,
731
- options = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref, _excluded);
732
-
733
- const mapStateToProps = initMapStateToProps(dispatch, options);
734
- const mapDispatchToProps = initMapDispatchToProps(dispatch, options);
735
- const mergeProps = initMergeProps(dispatch, options);
736
-
737
- if (true) {
738
- (0,_verifySubselectors__WEBPACK_IMPORTED_MODULE_1__["default"])(mapStateToProps, mapDispatchToProps, mergeProps);
739
- }
740
-
741
- return pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);
742
- }
743
-
744
- /***/ }),
745
-
746
- /***/ "./node_modules/react-redux/es/connect/verifySubselectors.js":
747
- /*!*******************************************************************!*\
748
- !*** ./node_modules/react-redux/es/connect/verifySubselectors.js ***!
749
- \*******************************************************************/
750
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
751
-
752
- __webpack_require__.r(__webpack_exports__);
753
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
754
- /* harmony export */ "default": () => (/* binding */ verifySubselectors)
755
- /* harmony export */ });
756
- /* harmony import */ var _utils_warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/warning */ "./node_modules/react-redux/es/utils/warning.js");
757
-
758
-
759
- function verify(selector, methodName) {
760
- if (!selector) {
761
- throw new Error(`Unexpected value for ${methodName} in connect.`);
762
- } else if (methodName === 'mapStateToProps' || methodName === 'mapDispatchToProps') {
763
- if (!Object.prototype.hasOwnProperty.call(selector, 'dependsOnOwnProps')) {
764
- (0,_utils_warning__WEBPACK_IMPORTED_MODULE_0__["default"])(`The selector for ${methodName} of connect did not specify a value for dependsOnOwnProps.`);
765
- }
766
- }
767
- }
768
-
769
- function verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps) {
770
- verify(mapStateToProps, 'mapStateToProps');
771
- verify(mapDispatchToProps, 'mapDispatchToProps');
772
- verify(mergeProps, 'mergeProps');
773
- }
774
-
775
- /***/ }),
776
-
777
- /***/ "./node_modules/react-redux/es/connect/wrapMapToProps.js":
778
- /*!***************************************************************!*\
779
- !*** ./node_modules/react-redux/es/connect/wrapMapToProps.js ***!
780
- \***************************************************************/
781
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
782
-
783
- __webpack_require__.r(__webpack_exports__);
784
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
785
- /* harmony export */ "getDependsOnOwnProps": () => (/* binding */ getDependsOnOwnProps),
786
- /* harmony export */ "wrapMapToPropsConstant": () => (/* binding */ wrapMapToPropsConstant),
787
- /* harmony export */ "wrapMapToPropsFunc": () => (/* binding */ wrapMapToPropsFunc)
788
- /* harmony export */ });
789
- /* harmony import */ var _utils_verifyPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/verifyPlainObject */ "./node_modules/react-redux/es/utils/verifyPlainObject.js");
790
-
791
- function wrapMapToPropsConstant( // * Note:
792
- // It seems that the dispatch argument
793
- // could be a dispatch function in some cases (ex: whenMapDispatchToPropsIsMissing)
794
- // and a state object in some others (ex: whenMapStateToPropsIsMissing)
795
- // eslint-disable-next-line no-unused-vars
796
- getConstant) {
797
- return function initConstantSelector(dispatch) {
798
- const constant = getConstant(dispatch);
799
-
800
- function constantSelector() {
801
- return constant;
802
- }
803
-
804
- constantSelector.dependsOnOwnProps = false;
805
- return constantSelector;
806
- };
807
- } // dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args
808
- // to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine
809
- // whether mapToProps needs to be invoked when props have changed.
810
- //
811
- // A length of one signals that mapToProps does not depend on props from the parent component.
812
- // A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and
813
- // therefore not reporting its length accurately..
814
- // TODO Can this get pulled out so that we can subscribe directly to the store if we don't need ownProps?
815
-
816
- function getDependsOnOwnProps(mapToProps) {
817
- return mapToProps.dependsOnOwnProps ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;
818
- } // Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction,
819
- // this function wraps mapToProps in a proxy function which does several things:
820
- //
821
- // * Detects whether the mapToProps function being called depends on props, which
822
- // is used by selectorFactory to decide if it should reinvoke on props changes.
823
- //
824
- // * On first call, handles mapToProps if returns another function, and treats that
825
- // new function as the true mapToProps for subsequent calls.
826
- //
827
- // * On first call, verifies the first result is a plain object, in order to warn
828
- // the developer that their mapToProps function is not returning a valid result.
829
- //
830
-
831
- function wrapMapToPropsFunc(mapToProps, methodName) {
832
- return function initProxySelector(dispatch, {
833
- displayName
834
- }) {
835
- const proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {
836
- return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch, undefined);
837
- }; // allow detectFactoryAndVerify to get ownProps
838
-
839
-
840
- proxy.dependsOnOwnProps = true;
841
-
842
- proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {
843
- proxy.mapToProps = mapToProps;
844
- proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);
845
- let props = proxy(stateOrDispatch, ownProps);
846
-
847
- if (typeof props === 'function') {
848
- proxy.mapToProps = props;
849
- proxy.dependsOnOwnProps = getDependsOnOwnProps(props);
850
- props = proxy(stateOrDispatch, ownProps);
851
- }
852
-
853
- if (true) (0,_utils_verifyPlainObject__WEBPACK_IMPORTED_MODULE_0__["default"])(props, displayName, methodName);
854
- return props;
855
- };
856
-
857
- return proxy;
858
- };
859
- }
860
-
861
- /***/ }),
862
-
863
- /***/ "./node_modules/react-redux/es/exports.js":
864
- /*!************************************************!*\
865
- !*** ./node_modules/react-redux/es/exports.js ***!
866
- \************************************************/
867
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
868
-
869
- __webpack_require__.r(__webpack_exports__);
870
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
871
- /* harmony export */ "Provider": () => (/* reexport safe */ _components_Provider__WEBPACK_IMPORTED_MODULE_0__["default"]),
872
- /* harmony export */ "ReactReduxContext": () => (/* reexport safe */ _components_Context__WEBPACK_IMPORTED_MODULE_2__.ReactReduxContext),
873
- /* harmony export */ "connect": () => (/* reexport safe */ _components_connect__WEBPACK_IMPORTED_MODULE_1__["default"]),
874
- /* harmony export */ "createDispatchHook": () => (/* reexport safe */ _hooks_useDispatch__WEBPACK_IMPORTED_MODULE_3__.createDispatchHook),
875
- /* harmony export */ "createSelectorHook": () => (/* reexport safe */ _hooks_useSelector__WEBPACK_IMPORTED_MODULE_4__.createSelectorHook),
876
- /* harmony export */ "createStoreHook": () => (/* reexport safe */ _hooks_useStore__WEBPACK_IMPORTED_MODULE_5__.createStoreHook),
877
- /* harmony export */ "shallowEqual": () => (/* reexport safe */ _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_6__["default"]),
878
- /* harmony export */ "useDispatch": () => (/* reexport safe */ _hooks_useDispatch__WEBPACK_IMPORTED_MODULE_3__.useDispatch),
879
- /* harmony export */ "useSelector": () => (/* reexport safe */ _hooks_useSelector__WEBPACK_IMPORTED_MODULE_4__.useSelector),
880
- /* harmony export */ "useStore": () => (/* reexport safe */ _hooks_useStore__WEBPACK_IMPORTED_MODULE_5__.useStore)
881
- /* harmony export */ });
882
- /* harmony import */ var _components_Provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Provider */ "./node_modules/react-redux/es/components/Provider.js");
883
- /* harmony import */ var _components_connect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/connect */ "./node_modules/react-redux/es/components/connect.js");
884
- /* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/Context */ "./node_modules/react-redux/es/components/Context.js");
885
- /* harmony import */ var _hooks_useDispatch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./hooks/useDispatch */ "./node_modules/react-redux/es/hooks/useDispatch.js");
886
- /* harmony import */ var _hooks_useSelector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hooks/useSelector */ "./node_modules/react-redux/es/hooks/useSelector.js");
887
- /* harmony import */ var _hooks_useStore__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./hooks/useStore */ "./node_modules/react-redux/es/hooks/useStore.js");
888
- /* harmony import */ var _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/shallowEqual */ "./node_modules/react-redux/es/utils/shallowEqual.js");
889
- /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./types */ "./node_modules/react-redux/es/types.js");
890
-
891
-
892
-
893
-
894
-
895
-
896
-
897
-
898
-
899
-
900
- /***/ }),
901
-
902
- /***/ "./node_modules/react-redux/es/hooks/useDispatch.js":
903
- /*!**********************************************************!*\
904
- !*** ./node_modules/react-redux/es/hooks/useDispatch.js ***!
905
- \**********************************************************/
906
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
907
-
908
- __webpack_require__.r(__webpack_exports__);
909
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
910
- /* harmony export */ "createDispatchHook": () => (/* binding */ createDispatchHook),
911
- /* harmony export */ "useDispatch": () => (/* binding */ useDispatch)
912
- /* harmony export */ });
913
- /* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/Context */ "./node_modules/react-redux/es/components/Context.js");
914
- /* harmony import */ var _useStore__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useStore */ "./node_modules/react-redux/es/hooks/useStore.js");
915
-
916
-
917
- /**
918
- * Hook factory, which creates a `useDispatch` hook bound to a given context.
919
- *
920
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
921
- * @returns {Function} A `useDispatch` hook bound to the specified context.
922
- */
923
-
924
- function createDispatchHook(context = _components_Context__WEBPACK_IMPORTED_MODULE_0__.ReactReduxContext) {
925
- const useStore = // @ts-ignore
926
- context === _components_Context__WEBPACK_IMPORTED_MODULE_0__.ReactReduxContext ? _useStore__WEBPACK_IMPORTED_MODULE_1__.useStore : (0,_useStore__WEBPACK_IMPORTED_MODULE_1__.createStoreHook)(context);
927
- return function useDispatch() {
928
- const store = useStore(); // @ts-ignore
929
-
930
- return store.dispatch;
931
- };
932
- }
933
- /**
934
- * A hook to access the redux `dispatch` function.
935
- *
936
- * @returns {any|function} redux store's `dispatch` function
937
- *
938
- * @example
939
- *
940
- * import React, { useCallback } from 'react'
941
- * import { useDispatch } from 'react-redux'
942
- *
943
- * export const CounterComponent = ({ value }) => {
944
- * const dispatch = useDispatch()
945
- * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
946
- * return (
947
- * <div>
948
- * <span>{value}</span>
949
- * <button onClick={increaseCounter}>Increase counter</button>
950
- * </div>
951
- * )
952
- * }
953
- */
954
-
955
- const useDispatch = /*#__PURE__*/createDispatchHook();
956
-
957
- /***/ }),
958
-
959
- /***/ "./node_modules/react-redux/es/hooks/useReduxContext.js":
960
- /*!**************************************************************!*\
961
- !*** ./node_modules/react-redux/es/hooks/useReduxContext.js ***!
962
- \**************************************************************/
963
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
964
-
965
- __webpack_require__.r(__webpack_exports__);
966
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
967
- /* harmony export */ "useReduxContext": () => (/* binding */ useReduxContext)
968
- /* harmony export */ });
969
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?88de");
970
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
971
- /* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/Context */ "./node_modules/react-redux/es/components/Context.js");
972
-
973
-
974
-
975
- /**
976
- * A hook to access the value of the `ReactReduxContext`. This is a low-level
977
- * hook that you should usually not need to call directly.
978
- *
979
- * @returns {any} the value of the `ReactReduxContext`
980
- *
981
- * @example
982
- *
983
- * import React from 'react'
984
- * import { useReduxContext } from 'react-redux'
985
- *
986
- * export const CounterComponent = () => {
987
- * const { store } = useReduxContext()
988
- * return <div>{store.getState()}</div>
989
- * }
990
- */
991
- function useReduxContext() {
992
- const contextValue = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_components_Context__WEBPACK_IMPORTED_MODULE_1__.ReactReduxContext);
993
-
994
- if ( true && !contextValue) {
995
- throw new Error('could not find react-redux context value; please ensure the component is wrapped in a <Provider>');
996
- }
997
-
998
- return contextValue;
999
- }
1000
-
1001
- /***/ }),
1002
-
1003
- /***/ "./node_modules/react-redux/es/hooks/useSelector.js":
1004
- /*!**********************************************************!*\
1005
- !*** ./node_modules/react-redux/es/hooks/useSelector.js ***!
1006
- \**********************************************************/
1007
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1008
-
1009
- __webpack_require__.r(__webpack_exports__);
1010
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1011
- /* harmony export */ "createSelectorHook": () => (/* binding */ createSelectorHook),
1012
- /* harmony export */ "initializeUseSelector": () => (/* binding */ initializeUseSelector),
1013
- /* harmony export */ "useSelector": () => (/* binding */ useSelector)
1014
- /* harmony export */ });
1015
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?88de");
1016
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1017
- /* harmony import */ var _useReduxContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useReduxContext */ "./node_modules/react-redux/es/hooks/useReduxContext.js");
1018
- /* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/Context */ "./node_modules/react-redux/es/components/Context.js");
1019
- /* harmony import */ var _utils_useSyncExternalStore__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/useSyncExternalStore */ "./node_modules/react-redux/es/utils/useSyncExternalStore.js");
1020
-
1021
-
1022
-
1023
-
1024
- let useSyncExternalStoreWithSelector = _utils_useSyncExternalStore__WEBPACK_IMPORTED_MODULE_3__.notInitialized;
1025
- const initializeUseSelector = fn => {
1026
- useSyncExternalStoreWithSelector = fn;
1027
- };
1028
-
1029
- const refEquality = (a, b) => a === b;
1030
- /**
1031
- * Hook factory, which creates a `useSelector` hook bound to a given context.
1032
- *
1033
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
1034
- * @returns {Function} A `useSelector` hook bound to the specified context.
1035
- */
1036
-
1037
-
1038
- function createSelectorHook(context = _components_Context__WEBPACK_IMPORTED_MODULE_2__.ReactReduxContext) {
1039
- const useReduxContext = context === _components_Context__WEBPACK_IMPORTED_MODULE_2__.ReactReduxContext ? _useReduxContext__WEBPACK_IMPORTED_MODULE_1__.useReduxContext : () => (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(context);
1040
- return function useSelector(selector, equalityFn = refEquality) {
1041
- if (true) {
1042
- if (!selector) {
1043
- throw new Error(`You must pass a selector to useSelector`);
1044
- }
1045
-
1046
- if (typeof selector !== 'function') {
1047
- throw new Error(`You must pass a function as a selector to useSelector`);
1048
- }
1049
-
1050
- if (typeof equalityFn !== 'function') {
1051
- throw new Error(`You must pass a function as an equality function to useSelector`);
1052
- }
1053
- }
1054
-
1055
- const {
1056
- store,
1057
- subscription,
1058
- getServerState
1059
- } = useReduxContext();
1060
- const selectedState = useSyncExternalStoreWithSelector(subscription.addNestedSub, store.getState, getServerState || store.getState, selector, equalityFn);
1061
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useDebugValue)(selectedState);
1062
- return selectedState;
1063
- };
1064
- }
1065
- /**
1066
- * A hook to access the redux store's state. This hook takes a selector function
1067
- * as an argument. The selector is called with the store state.
1068
- *
1069
- * This hook takes an optional equality comparison function as the second parameter
1070
- * that allows you to customize the way the selected state is compared to determine
1071
- * whether the component needs to be re-rendered.
1072
- *
1073
- * @param {Function} selector the selector function
1074
- * @param {Function=} equalityFn the function that will be used to determine equality
1075
- *
1076
- * @returns {any} the selected state
1077
- *
1078
- * @example
1079
- *
1080
- * import React from 'react'
1081
- * import { useSelector } from 'react-redux'
1082
- *
1083
- * export const CounterComponent = () => {
1084
- * const counter = useSelector(state => state.counter)
1085
- * return <div>{counter}</div>
1086
- * }
1087
- */
1088
-
1089
- const useSelector = /*#__PURE__*/createSelectorHook();
1090
-
1091
- /***/ }),
1092
-
1093
- /***/ "./node_modules/react-redux/es/hooks/useStore.js":
1094
- /*!*******************************************************!*\
1095
- !*** ./node_modules/react-redux/es/hooks/useStore.js ***!
1096
- \*******************************************************/
1097
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1098
-
1099
- __webpack_require__.r(__webpack_exports__);
1100
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1101
- /* harmony export */ "createStoreHook": () => (/* binding */ createStoreHook),
1102
- /* harmony export */ "useStore": () => (/* binding */ useStore)
1103
- /* harmony export */ });
1104
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?88de");
1105
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1106
- /* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/Context */ "./node_modules/react-redux/es/components/Context.js");
1107
- /* harmony import */ var _useReduxContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useReduxContext */ "./node_modules/react-redux/es/hooks/useReduxContext.js");
1108
-
1109
-
1110
-
1111
- /**
1112
- * Hook factory, which creates a `useStore` hook bound to a given context.
1113
- *
1114
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
1115
- * @returns {Function} A `useStore` hook bound to the specified context.
1116
- */
1117
-
1118
- function createStoreHook(context = _components_Context__WEBPACK_IMPORTED_MODULE_1__.ReactReduxContext) {
1119
- const useReduxContext = // @ts-ignore
1120
- context === _components_Context__WEBPACK_IMPORTED_MODULE_1__.ReactReduxContext ? _useReduxContext__WEBPACK_IMPORTED_MODULE_2__.useReduxContext : () => (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(context);
1121
- return function useStore() {
1122
- const {
1123
- store
1124
- } = useReduxContext(); // @ts-ignore
1125
-
1126
- return store;
1127
- };
1128
- }
1129
- /**
1130
- * A hook to access the redux store.
1131
- *
1132
- * @returns {any} the redux store
1133
- *
1134
- * @example
1135
- *
1136
- * import React from 'react'
1137
- * import { useStore } from 'react-redux'
1138
- *
1139
- * export const ExampleComponent = () => {
1140
- * const store = useStore()
1141
- * return <div>{store.getState()}</div>
1142
- * }
1143
- */
1144
-
1145
- const useStore = /*#__PURE__*/createStoreHook();
1146
-
1147
- /***/ }),
1148
-
1149
- /***/ "./node_modules/react-redux/es/index.js":
1150
- /*!**********************************************!*\
1151
- !*** ./node_modules/react-redux/es/index.js ***!
1152
- \**********************************************/
1153
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1154
-
1155
- __webpack_require__.r(__webpack_exports__);
1156
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1157
- /* harmony export */ "Provider": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.Provider),
1158
- /* harmony export */ "ReactReduxContext": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.ReactReduxContext),
1159
- /* harmony export */ "batch": () => (/* reexport safe */ _utils_reactBatchedUpdates__WEBPACK_IMPORTED_MODULE_2__.unstable_batchedUpdates),
1160
- /* harmony export */ "connect": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.connect),
1161
- /* harmony export */ "createDispatchHook": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.createDispatchHook),
1162
- /* harmony export */ "createSelectorHook": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.createSelectorHook),
1163
- /* harmony export */ "createStoreHook": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.createStoreHook),
1164
- /* harmony export */ "shallowEqual": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.shallowEqual),
1165
- /* harmony export */ "useDispatch": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.useDispatch),
1166
- /* harmony export */ "useSelector": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.useSelector),
1167
- /* harmony export */ "useStore": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.useStore)
1168
- /* harmony export */ });
1169
- /* harmony import */ var use_sync_external_store_shim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! use-sync-external-store/shim */ "./node_modules/use-sync-external-store/shim/index.js");
1170
- /* harmony import */ var use_sync_external_store_shim_with_selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! use-sync-external-store/shim/with-selector */ "./node_modules/use-sync-external-store/shim/with-selector.js");
1171
- /* harmony import */ var _utils_reactBatchedUpdates__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/reactBatchedUpdates */ "./node_modules/react-redux/es/utils/reactBatchedUpdates.js");
1172
- /* harmony import */ var _utils_batch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/batch */ "./node_modules/react-redux/es/utils/batch.js");
1173
- /* harmony import */ var _hooks_useSelector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hooks/useSelector */ "./node_modules/react-redux/es/hooks/useSelector.js");
1174
- /* harmony import */ var _components_connect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/connect */ "./node_modules/react-redux/es/components/connect.js");
1175
- /* harmony import */ var _exports__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./exports */ "./node_modules/react-redux/es/exports.js");
1176
- // The primary entry point assumes we're working with standard ReactDOM/RN, but
1177
- // older versions that do not include `useSyncExternalStore` (React 16.9 - 17.x).
1178
- // Because of that, the useSyncExternalStore compat shim is needed.
1179
-
1180
-
1181
-
1182
-
1183
-
1184
-
1185
- (0,_hooks_useSelector__WEBPACK_IMPORTED_MODULE_4__.initializeUseSelector)(use_sync_external_store_shim_with_selector__WEBPACK_IMPORTED_MODULE_1__.useSyncExternalStoreWithSelector);
1186
- (0,_components_connect__WEBPACK_IMPORTED_MODULE_5__.initializeConnect)(use_sync_external_store_shim__WEBPACK_IMPORTED_MODULE_0__.useSyncExternalStore); // Enable batched updates in our subscriptions for use
1187
- // with standard React renderers (ReactDOM, React Native)
1188
-
1189
- (0,_utils_batch__WEBPACK_IMPORTED_MODULE_3__.setBatch)(_utils_reactBatchedUpdates__WEBPACK_IMPORTED_MODULE_2__.unstable_batchedUpdates);
1190
-
1191
-
1192
-
1193
- /***/ }),
1194
-
1195
- /***/ "./node_modules/react-redux/es/types.js":
1196
- /*!**********************************************!*\
1197
- !*** ./node_modules/react-redux/es/types.js ***!
1198
- \**********************************************/
1199
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1200
-
1201
- __webpack_require__.r(__webpack_exports__);
1202
-
1203
-
1204
- /***/ }),
1205
-
1206
- /***/ "./node_modules/react-redux/es/utils/Subscription.js":
1207
- /*!***********************************************************!*\
1208
- !*** ./node_modules/react-redux/es/utils/Subscription.js ***!
1209
- \***********************************************************/
1210
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1211
-
1212
- __webpack_require__.r(__webpack_exports__);
1213
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1214
- /* harmony export */ "createSubscription": () => (/* binding */ createSubscription)
1215
- /* harmony export */ });
1216
- /* harmony import */ var _batch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./batch */ "./node_modules/react-redux/es/utils/batch.js");
1217
- // encapsulates the subscription logic for connecting a component to the redux store, as
1218
- // well as nesting subscriptions of descendant components, so that we can ensure the
1219
- // ancestor components re-render before descendants
1220
-
1221
- function createListenerCollection() {
1222
- const batch = (0,_batch__WEBPACK_IMPORTED_MODULE_0__.getBatch)();
1223
- let first = null;
1224
- let last = null;
1225
- return {
1226
- clear() {
1227
- first = null;
1228
- last = null;
1229
- },
1230
-
1231
- notify() {
1232
- batch(() => {
1233
- let listener = first;
1234
-
1235
- while (listener) {
1236
- listener.callback();
1237
- listener = listener.next;
1238
- }
1239
- });
1240
- },
1241
-
1242
- get() {
1243
- let listeners = [];
1244
- let listener = first;
1245
-
1246
- while (listener) {
1247
- listeners.push(listener);
1248
- listener = listener.next;
1249
- }
1250
-
1251
- return listeners;
1252
- },
1253
-
1254
- subscribe(callback) {
1255
- let isSubscribed = true;
1256
- let listener = last = {
1257
- callback,
1258
- next: null,
1259
- prev: last
1260
- };
1261
-
1262
- if (listener.prev) {
1263
- listener.prev.next = listener;
1264
- } else {
1265
- first = listener;
1266
- }
1267
-
1268
- return function unsubscribe() {
1269
- if (!isSubscribed || first === null) return;
1270
- isSubscribed = false;
1271
-
1272
- if (listener.next) {
1273
- listener.next.prev = listener.prev;
1274
- } else {
1275
- last = listener.prev;
1276
- }
1277
-
1278
- if (listener.prev) {
1279
- listener.prev.next = listener.next;
1280
- } else {
1281
- first = listener.next;
1282
- }
1283
- };
1284
- }
1285
-
1286
- };
1287
- }
1288
-
1289
- const nullListeners = {
1290
- notify() {},
1291
-
1292
- get: () => []
1293
- };
1294
- function createSubscription(store, parentSub) {
1295
- let unsubscribe;
1296
- let listeners = nullListeners;
1297
-
1298
- function addNestedSub(listener) {
1299
- trySubscribe();
1300
- return listeners.subscribe(listener);
1301
- }
1302
-
1303
- function notifyNestedSubs() {
1304
- listeners.notify();
1305
- }
1306
-
1307
- function handleChangeWrapper() {
1308
- if (subscription.onStateChange) {
1309
- subscription.onStateChange();
1310
- }
1311
- }
1312
-
1313
- function isSubscribed() {
1314
- return Boolean(unsubscribe);
1315
- }
1316
-
1317
- function trySubscribe() {
1318
- if (!unsubscribe) {
1319
- unsubscribe = parentSub ? parentSub.addNestedSub(handleChangeWrapper) : store.subscribe(handleChangeWrapper);
1320
- listeners = createListenerCollection();
1321
- }
1322
- }
1323
-
1324
- function tryUnsubscribe() {
1325
- if (unsubscribe) {
1326
- unsubscribe();
1327
- unsubscribe = undefined;
1328
- listeners.clear();
1329
- listeners = nullListeners;
1330
- }
1331
- }
1332
-
1333
- const subscription = {
1334
- addNestedSub,
1335
- notifyNestedSubs,
1336
- handleChangeWrapper,
1337
- isSubscribed,
1338
- trySubscribe,
1339
- tryUnsubscribe,
1340
- getListeners: () => listeners
1341
- };
1342
- return subscription;
1343
- }
1344
-
1345
- /***/ }),
1346
-
1347
- /***/ "./node_modules/react-redux/es/utils/batch.js":
1348
- /*!****************************************************!*\
1349
- !*** ./node_modules/react-redux/es/utils/batch.js ***!
1350
- \****************************************************/
1351
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1352
-
1353
- __webpack_require__.r(__webpack_exports__);
1354
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1355
- /* harmony export */ "getBatch": () => (/* binding */ getBatch),
1356
- /* harmony export */ "setBatch": () => (/* binding */ setBatch)
1357
- /* harmony export */ });
1358
- // Default to a dummy "batch" implementation that just runs the callback
1359
- function defaultNoopBatch(callback) {
1360
- callback();
1361
- }
1362
-
1363
- let batch = defaultNoopBatch; // Allow injecting another batching function later
1364
-
1365
- const setBatch = newBatch => batch = newBatch; // Supply a getter just to skip dealing with ESM bindings
1366
-
1367
- const getBatch = () => batch;
1368
-
1369
- /***/ }),
1370
-
1371
- /***/ "./node_modules/react-redux/es/utils/bindActionCreators.js":
1372
- /*!*****************************************************************!*\
1373
- !*** ./node_modules/react-redux/es/utils/bindActionCreators.js ***!
1374
- \*****************************************************************/
1375
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1376
-
1377
- __webpack_require__.r(__webpack_exports__);
1378
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1379
- /* harmony export */ "default": () => (/* binding */ bindActionCreators)
1380
- /* harmony export */ });
1381
- function bindActionCreators(actionCreators, dispatch) {
1382
- const boundActionCreators = {};
1383
-
1384
- for (const key in actionCreators) {
1385
- const actionCreator = actionCreators[key];
1386
-
1387
- if (typeof actionCreator === 'function') {
1388
- boundActionCreators[key] = (...args) => dispatch(actionCreator(...args));
1389
- }
1390
- }
1391
-
1392
- return boundActionCreators;
1393
- }
1394
-
1395
- /***/ }),
1396
-
1397
- /***/ "./node_modules/react-redux/es/utils/isPlainObject.js":
1398
- /*!************************************************************!*\
1399
- !*** ./node_modules/react-redux/es/utils/isPlainObject.js ***!
1400
- \************************************************************/
1401
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1402
-
1403
- __webpack_require__.r(__webpack_exports__);
1404
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1405
- /* harmony export */ "default": () => (/* binding */ isPlainObject)
1406
- /* harmony export */ });
1407
- /**
1408
- * @param {any} obj The object to inspect.
1409
- * @returns {boolean} True if the argument appears to be a plain object.
1410
- */
1411
- function isPlainObject(obj) {
1412
- if (typeof obj !== 'object' || obj === null) return false;
1413
- let proto = Object.getPrototypeOf(obj);
1414
- if (proto === null) return true;
1415
- let baseProto = proto;
1416
-
1417
- while (Object.getPrototypeOf(baseProto) !== null) {
1418
- baseProto = Object.getPrototypeOf(baseProto);
1419
- }
1420
-
1421
- return proto === baseProto;
1422
- }
1423
-
1424
- /***/ }),
1425
-
1426
- /***/ "./node_modules/react-redux/es/utils/reactBatchedUpdates.js":
1427
- /*!******************************************************************!*\
1428
- !*** ./node_modules/react-redux/es/utils/reactBatchedUpdates.js ***!
1429
- \******************************************************************/
1430
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1431
-
1432
- __webpack_require__.r(__webpack_exports__);
1433
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1434
- /* harmony export */ "unstable_batchedUpdates": () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.unstable_batchedUpdates)
1435
- /* harmony export */ });
1436
- /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ "webpack/sharing/consume/default/react-dom/react-dom");
1437
- /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__);
1438
-
1439
-
1440
- /***/ }),
1441
-
1442
- /***/ "./node_modules/react-redux/es/utils/shallowEqual.js":
1443
- /*!***********************************************************!*\
1444
- !*** ./node_modules/react-redux/es/utils/shallowEqual.js ***!
1445
- \***********************************************************/
1446
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1447
-
1448
- __webpack_require__.r(__webpack_exports__);
1449
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1450
- /* harmony export */ "default": () => (/* binding */ shallowEqual)
1451
- /* harmony export */ });
1452
- function is(x, y) {
1453
- if (x === y) {
1454
- return x !== 0 || y !== 0 || 1 / x === 1 / y;
1455
- } else {
1456
- return x !== x && y !== y;
1457
- }
1458
- }
1459
-
1460
- function shallowEqual(objA, objB) {
1461
- if (is(objA, objB)) return true;
1462
-
1463
- if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
1464
- return false;
1465
- }
1466
-
1467
- const keysA = Object.keys(objA);
1468
- const keysB = Object.keys(objB);
1469
- if (keysA.length !== keysB.length) return false;
1470
-
1471
- for (let i = 0; i < keysA.length; i++) {
1472
- if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
1473
- return false;
1474
- }
1475
- }
1476
-
1477
- return true;
1478
- }
1479
-
1480
- /***/ }),
1481
-
1482
- /***/ "./node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js":
1483
- /*!************************************************************************!*\
1484
- !*** ./node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js ***!
1485
- \************************************************************************/
1486
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1487
-
1488
- __webpack_require__.r(__webpack_exports__);
1489
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1490
- /* harmony export */ "canUseDOM": () => (/* binding */ canUseDOM),
1491
- /* harmony export */ "useIsomorphicLayoutEffect": () => (/* binding */ useIsomorphicLayoutEffect)
1492
- /* harmony export */ });
1493
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?88de");
1494
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1495
- // React currently throws a warning when using useLayoutEffect on the server.
1496
- // To get around it, we can conditionally useEffect on the server (no-op) and
1497
- // useLayoutEffect in the browser. We need useLayoutEffect to ensure the store
1498
- // subscription callback always has the selector from the latest render commit
1499
- // available, otherwise a store update may happen between render and the effect,
1500
- // which may cause missed updates; we also must ensure the store subscription
1501
- // is created synchronously, otherwise a store update may occur before the
1502
- // subscription is created and an inconsistent state may be observed
1503
- // Matches logic in React's `shared/ExecutionEnvironment` file
1504
-
1505
- const canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
1506
- const useIsomorphicLayoutEffect = canUseDOM ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect;
1507
-
1508
- /***/ }),
1509
-
1510
- /***/ "./node_modules/react-redux/es/utils/useSyncExternalStore.js":
1511
- /*!*******************************************************************!*\
1512
- !*** ./node_modules/react-redux/es/utils/useSyncExternalStore.js ***!
1513
- \*******************************************************************/
1514
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1515
-
1516
- __webpack_require__.r(__webpack_exports__);
1517
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1518
- /* harmony export */ "notInitialized": () => (/* binding */ notInitialized)
1519
- /* harmony export */ });
1520
- const notInitialized = () => {
1521
- throw new Error('uSES not initialized!');
1522
- };
1523
-
1524
- /***/ }),
1525
-
1526
- /***/ "./node_modules/react-redux/es/utils/verifyPlainObject.js":
1527
- /*!****************************************************************!*\
1528
- !*** ./node_modules/react-redux/es/utils/verifyPlainObject.js ***!
1529
- \****************************************************************/
1530
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1531
-
1532
- __webpack_require__.r(__webpack_exports__);
1533
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1534
- /* harmony export */ "default": () => (/* binding */ verifyPlainObject)
1535
- /* harmony export */ });
1536
- /* harmony import */ var _isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isPlainObject */ "./node_modules/react-redux/es/utils/isPlainObject.js");
1537
- /* harmony import */ var _warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./warning */ "./node_modules/react-redux/es/utils/warning.js");
1538
-
1539
-
1540
- function verifyPlainObject(value, displayName, methodName) {
1541
- if (!(0,_isPlainObject__WEBPACK_IMPORTED_MODULE_0__["default"])(value)) {
1542
- (0,_warning__WEBPACK_IMPORTED_MODULE_1__["default"])(`${methodName}() in ${displayName} must return a plain object. Instead received ${value}.`);
1543
- }
1544
- }
1545
-
1546
- /***/ }),
1547
-
1548
- /***/ "./node_modules/react-redux/es/utils/warning.js":
1549
- /*!******************************************************!*\
1550
- !*** ./node_modules/react-redux/es/utils/warning.js ***!
1551
- \******************************************************/
1552
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1553
-
1554
- __webpack_require__.r(__webpack_exports__);
1555
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1556
- /* harmony export */ "default": () => (/* binding */ warning)
1557
- /* harmony export */ });
1558
- /**
1559
- * Prints a warning in the console if it exists.
1560
- *
1561
- * @param {String} message The warning message.
1562
- * @returns {void}
1563
- */
1564
- function warning(message) {
1565
- /* eslint-disable no-console */
1566
- if (typeof console !== 'undefined' && typeof console.error === 'function') {
1567
- console.error(message);
1568
- }
1569
- /* eslint-enable no-console */
1570
-
1571
-
1572
- try {
1573
- // This error was thrown as a convenience so that if you enable
1574
- // "break on all exceptions" in your console,
1575
- // it would pause the execution at this line.
1576
- throw new Error(message);
1577
- /* eslint-disable no-empty */
1578
- } catch (e) {}
1579
- /* eslint-enable no-empty */
1580
-
1581
- }
1582
-
1583
- /***/ }),
1584
-
1585
- /***/ "./node_modules/react-redux/node_modules/react-is/cjs/react-is.development.js":
1586
- /*!************************************************************************************!*\
1587
- !*** ./node_modules/react-redux/node_modules/react-is/cjs/react-is.development.js ***!
1588
- \************************************************************************************/
1589
- /***/ ((__unused_webpack_module, exports) => {
1590
-
1591
- /**
1592
- * @license React
1593
- * react-is.development.js
1594
- *
1595
- * Copyright (c) Facebook, Inc. and its affiliates.
1596
- *
1597
- * This source code is licensed under the MIT license found in the
1598
- * LICENSE file in the root directory of this source tree.
1599
- */
1600
-
1601
-
1602
-
1603
- if (true) {
1604
- (function() {
1605
- 'use strict';
1606
-
1607
- // ATTENTION
1608
- // When adding new symbols to this file,
1609
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
1610
- // The Symbol used to tag the ReactElement-like types.
1611
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
1612
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
1613
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
1614
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
1615
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
1616
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
1617
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
1618
- var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
1619
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
1620
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
1621
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
1622
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
1623
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
1624
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
1625
-
1626
- // -----------------------------------------------------------------------------
1627
-
1628
- var enableScopeAPI = false; // Experimental Create Event Handle API.
1629
- var enableCacheElement = false;
1630
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
1631
-
1632
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
1633
- // stuff. Intended to enable React core members to more easily debug scheduling
1634
- // issues in DEV builds.
1635
-
1636
- var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
1637
-
1638
- var REACT_MODULE_REFERENCE;
1639
-
1640
- {
1641
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
1642
- }
1643
-
1644
- function isValidElementType(type) {
1645
- if (typeof type === 'string' || typeof type === 'function') {
1646
- return true;
1647
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
1648
-
1649
-
1650
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
1651
- return true;
1652
- }
1653
-
1654
- if (typeof type === 'object' && type !== null) {
1655
- if (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 || // This needs to include all possible module reference object
1656
- // types supported by any Flight configuration anywhere since
1657
- // we don't know which Flight build this will end up being used
1658
- // with.
1659
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
1660
- return true;
1661
- }
1662
- }
1663
-
1664
- return false;
1665
- }
1666
-
1667
- function typeOf(object) {
1668
- if (typeof object === 'object' && object !== null) {
1669
- var $$typeof = object.$$typeof;
1670
-
1671
- switch ($$typeof) {
1672
- case REACT_ELEMENT_TYPE:
1673
- var type = object.type;
1674
-
1675
- switch (type) {
1676
- case REACT_FRAGMENT_TYPE:
1677
- case REACT_PROFILER_TYPE:
1678
- case REACT_STRICT_MODE_TYPE:
1679
- case REACT_SUSPENSE_TYPE:
1680
- case REACT_SUSPENSE_LIST_TYPE:
1681
- return type;
1682
-
1683
- default:
1684
- var $$typeofType = type && type.$$typeof;
1685
-
1686
- switch ($$typeofType) {
1687
- case REACT_SERVER_CONTEXT_TYPE:
1688
- case REACT_CONTEXT_TYPE:
1689
- case REACT_FORWARD_REF_TYPE:
1690
- case REACT_LAZY_TYPE:
1691
- case REACT_MEMO_TYPE:
1692
- case REACT_PROVIDER_TYPE:
1693
- return $$typeofType;
1694
-
1695
- default:
1696
- return $$typeof;
1697
- }
1698
-
1699
- }
1700
-
1701
- case REACT_PORTAL_TYPE:
1702
- return $$typeof;
1703
- }
1704
- }
1705
-
1706
- return undefined;
1707
- }
1708
- var ContextConsumer = REACT_CONTEXT_TYPE;
1709
- var ContextProvider = REACT_PROVIDER_TYPE;
1710
- var Element = REACT_ELEMENT_TYPE;
1711
- var ForwardRef = REACT_FORWARD_REF_TYPE;
1712
- var Fragment = REACT_FRAGMENT_TYPE;
1713
- var Lazy = REACT_LAZY_TYPE;
1714
- var Memo = REACT_MEMO_TYPE;
1715
- var Portal = REACT_PORTAL_TYPE;
1716
- var Profiler = REACT_PROFILER_TYPE;
1717
- var StrictMode = REACT_STRICT_MODE_TYPE;
1718
- var Suspense = REACT_SUSPENSE_TYPE;
1719
- var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
1720
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
1721
- var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
1722
-
1723
- function isAsyncMode(object) {
1724
- {
1725
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1726
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1727
-
1728
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
1729
- }
1730
- }
1731
-
1732
- return false;
1733
- }
1734
- function isConcurrentMode(object) {
1735
- {
1736
- if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
1737
- hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
1738
-
1739
- console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
1740
- }
1741
- }
1742
-
1743
- return false;
1744
- }
1745
- function isContextConsumer(object) {
1746
- return typeOf(object) === REACT_CONTEXT_TYPE;
1747
- }
1748
- function isContextProvider(object) {
1749
- return typeOf(object) === REACT_PROVIDER_TYPE;
1750
- }
1751
- function isElement(object) {
1752
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1753
- }
1754
- function isForwardRef(object) {
1755
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
1756
- }
1757
- function isFragment(object) {
1758
- return typeOf(object) === REACT_FRAGMENT_TYPE;
1759
- }
1760
- function isLazy(object) {
1761
- return typeOf(object) === REACT_LAZY_TYPE;
1762
- }
1763
- function isMemo(object) {
1764
- return typeOf(object) === REACT_MEMO_TYPE;
1765
- }
1766
- function isPortal(object) {
1767
- return typeOf(object) === REACT_PORTAL_TYPE;
1768
- }
1769
- function isProfiler(object) {
1770
- return typeOf(object) === REACT_PROFILER_TYPE;
1771
- }
1772
- function isStrictMode(object) {
1773
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
1774
- }
1775
- function isSuspense(object) {
1776
- return typeOf(object) === REACT_SUSPENSE_TYPE;
1777
- }
1778
- function isSuspenseList(object) {
1779
- return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
1780
- }
1781
-
1782
- exports.ContextConsumer = ContextConsumer;
1783
- exports.ContextProvider = ContextProvider;
1784
- exports.Element = Element;
1785
- exports.ForwardRef = ForwardRef;
1786
- exports.Fragment = Fragment;
1787
- exports.Lazy = Lazy;
1788
- exports.Memo = Memo;
1789
- exports.Portal = Portal;
1790
- exports.Profiler = Profiler;
1791
- exports.StrictMode = StrictMode;
1792
- exports.Suspense = Suspense;
1793
- exports.SuspenseList = SuspenseList;
1794
- exports.isAsyncMode = isAsyncMode;
1795
- exports.isConcurrentMode = isConcurrentMode;
1796
- exports.isContextConsumer = isContextConsumer;
1797
- exports.isContextProvider = isContextProvider;
1798
- exports.isElement = isElement;
1799
- exports.isForwardRef = isForwardRef;
1800
- exports.isFragment = isFragment;
1801
- exports.isLazy = isLazy;
1802
- exports.isMemo = isMemo;
1803
- exports.isPortal = isPortal;
1804
- exports.isProfiler = isProfiler;
1805
- exports.isStrictMode = isStrictMode;
1806
- exports.isSuspense = isSuspense;
1807
- exports.isSuspenseList = isSuspenseList;
1808
- exports.isValidElementType = isValidElementType;
1809
- exports.typeOf = typeOf;
1810
- })();
1811
- }
1812
-
1813
-
1814
- /***/ }),
1815
-
1816
- /***/ "./node_modules/react-redux/node_modules/react-is/index.js":
1817
- /*!*****************************************************************!*\
1818
- !*** ./node_modules/react-redux/node_modules/react-is/index.js ***!
1819
- \*****************************************************************/
1820
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1821
-
1822
-
1823
-
1824
- if (false) {} else {
1825
- module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-redux/node_modules/react-is/cjs/react-is.development.js");
1826
- }
1827
-
1828
-
1829
- /***/ }),
1830
-
1831
- /***/ "./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js":
1832
- /*!**********************************************************************************************!*\
1833
- !*** ./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js ***!
1834
- \**********************************************************************************************/
1835
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1836
-
1837
- /**
1838
- * @license React
1839
- * use-sync-external-store-shim.development.js
1840
- *
1841
- * Copyright (c) Facebook, Inc. and its affiliates.
1842
- *
1843
- * This source code is licensed under the MIT license found in the
1844
- * LICENSE file in the root directory of this source tree.
1845
- */
1846
-
1847
-
1848
-
1849
- if (true) {
1850
- (function() {
1851
-
1852
- 'use strict';
1853
-
1854
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
1855
- if (
1856
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
1857
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
1858
- 'function'
1859
- ) {
1860
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
1861
- }
1862
- var React = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?88de");
1863
-
1864
- var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1865
-
1866
- function error(format) {
1867
- {
1868
- {
1869
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
1870
- args[_key2 - 1] = arguments[_key2];
1871
- }
1872
-
1873
- printWarning('error', format, args);
1874
- }
1875
- }
1876
- }
1877
-
1878
- function printWarning(level, format, args) {
1879
- // When changing this logic, you might want to also
1880
- // update consoleWithStackDev.www.js as well.
1881
- {
1882
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
1883
- var stack = ReactDebugCurrentFrame.getStackAddendum();
1884
-
1885
- if (stack !== '') {
1886
- format += '%s';
1887
- args = args.concat([stack]);
1888
- } // eslint-disable-next-line react-internal/safe-string-coercion
1889
-
1890
-
1891
- var argsWithFormat = args.map(function (item) {
1892
- return String(item);
1893
- }); // Careful: RN currently depends on this prefix
1894
-
1895
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
1896
- // breaks IE9: https://github.com/facebook/react/issues/13610
1897
- // eslint-disable-next-line react-internal/no-production-logging
1898
-
1899
- Function.prototype.apply.call(console[level], console, argsWithFormat);
1900
- }
1901
- }
1902
-
1903
- /**
1904
- * inlined Object.is polyfill to avoid requiring consumers ship their own
1905
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
1906
- */
1907
- function is(x, y) {
1908
- return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
1909
- ;
1910
- }
1911
-
1912
- var objectIs = typeof Object.is === 'function' ? Object.is : is;
1913
-
1914
- // dispatch for CommonJS interop named imports.
1915
-
1916
- var useState = React.useState,
1917
- useEffect = React.useEffect,
1918
- useLayoutEffect = React.useLayoutEffect,
1919
- useDebugValue = React.useDebugValue;
1920
- var didWarnOld18Alpha = false;
1921
- var didWarnUncachedGetSnapshot = false; // Disclaimer: This shim breaks many of the rules of React, and only works
1922
- // because of a very particular set of implementation details and assumptions
1923
- // -- change any one of them and it will break. The most important assumption
1924
- // is that updates are always synchronous, because concurrent rendering is
1925
- // only available in versions of React that also have a built-in
1926
- // useSyncExternalStore API. And we only use this shim when the built-in API
1927
- // does not exist.
1928
- //
1929
- // Do not assume that the clever hacks used by this hook also work in general.
1930
- // The point of this shim is to replace the need for hacks by other libraries.
1931
-
1932
- function useSyncExternalStore(subscribe, getSnapshot, // Note: The shim does not use getServerSnapshot, because pre-18 versions of
1933
- // React do not expose a way to check if we're hydrating. So users of the shim
1934
- // will need to track that themselves and return the correct value
1935
- // from `getSnapshot`.
1936
- getServerSnapshot) {
1937
- {
1938
- if (!didWarnOld18Alpha) {
1939
- if (React.startTransition !== undefined) {
1940
- didWarnOld18Alpha = true;
1941
-
1942
- error('You are using an outdated, pre-release alpha of React 18 that ' + 'does not support useSyncExternalStore. The ' + 'use-sync-external-store shim will not work correctly. Upgrade ' + 'to a newer pre-release.');
1943
- }
1944
- }
1945
- } // Read the current snapshot from the store on every render. Again, this
1946
- // breaks the rules of React, and only works here because of specific
1947
- // implementation details, most importantly that updates are
1948
- // always synchronous.
1949
-
1950
-
1951
- var value = getSnapshot();
1952
-
1953
- {
1954
- if (!didWarnUncachedGetSnapshot) {
1955
- var cachedValue = getSnapshot();
1956
-
1957
- if (!objectIs(value, cachedValue)) {
1958
- error('The result of getSnapshot should be cached to avoid an infinite loop');
1959
-
1960
- didWarnUncachedGetSnapshot = true;
1961
- }
1962
- }
1963
- } // Because updates are synchronous, we don't queue them. Instead we force a
1964
- // re-render whenever the subscribed state changes by updating an some
1965
- // arbitrary useState hook. Then, during render, we call getSnapshot to read
1966
- // the current value.
1967
- //
1968
- // Because we don't actually use the state returned by the useState hook, we
1969
- // can save a bit of memory by storing other stuff in that slot.
1970
- //
1971
- // To implement the early bailout, we need to track some things on a mutable
1972
- // object. Usually, we would put that in a useRef hook, but we can stash it in
1973
- // our useState hook instead.
1974
- //
1975
- // To force a re-render, we call forceUpdate({inst}). That works because the
1976
- // new object always fails an equality check.
1977
-
1978
-
1979
- var _useState = useState({
1980
- inst: {
1981
- value: value,
1982
- getSnapshot: getSnapshot
1983
- }
1984
- }),
1985
- inst = _useState[0].inst,
1986
- forceUpdate = _useState[1]; // Track the latest getSnapshot function with a ref. This needs to be updated
1987
- // in the layout phase so we can access it during the tearing check that
1988
- // happens on subscribe.
1989
-
1990
-
1991
- useLayoutEffect(function () {
1992
- inst.value = value;
1993
- inst.getSnapshot = getSnapshot; // Whenever getSnapshot or subscribe changes, we need to check in the
1994
- // commit phase if there was an interleaved mutation. In concurrent mode
1995
- // this can happen all the time, but even in synchronous mode, an earlier
1996
- // effect may have mutated the store.
1997
-
1998
- if (checkIfSnapshotChanged(inst)) {
1999
- // Force a re-render.
2000
- forceUpdate({
2001
- inst: inst
2002
- });
2003
- }
2004
- }, [subscribe, value, getSnapshot]);
2005
- useEffect(function () {
2006
- // Check for changes right before subscribing. Subsequent changes will be
2007
- // detected in the subscription handler.
2008
- if (checkIfSnapshotChanged(inst)) {
2009
- // Force a re-render.
2010
- forceUpdate({
2011
- inst: inst
2012
- });
2013
- }
2014
-
2015
- var handleStoreChange = function () {
2016
- // TODO: Because there is no cross-renderer API for batching updates, it's
2017
- // up to the consumer of this library to wrap their subscription event
2018
- // with unstable_batchedUpdates. Should we try to detect when this isn't
2019
- // the case and print a warning in development?
2020
- // The store changed. Check if the snapshot changed since the last time we
2021
- // read from the store.
2022
- if (checkIfSnapshotChanged(inst)) {
2023
- // Force a re-render.
2024
- forceUpdate({
2025
- inst: inst
2026
- });
2027
- }
2028
- }; // Subscribe to the store and return a clean-up function.
2029
-
2030
-
2031
- return subscribe(handleStoreChange);
2032
- }, [subscribe]);
2033
- useDebugValue(value);
2034
- return value;
2035
- }
2036
-
2037
- function checkIfSnapshotChanged(inst) {
2038
- var latestGetSnapshot = inst.getSnapshot;
2039
- var prevValue = inst.value;
2040
-
2041
- try {
2042
- var nextValue = latestGetSnapshot();
2043
- return !objectIs(prevValue, nextValue);
2044
- } catch (error) {
2045
- return true;
2046
- }
2047
- }
2048
-
2049
- function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
2050
- // Note: The shim does not use getServerSnapshot, because pre-18 versions of
2051
- // React do not expose a way to check if we're hydrating. So users of the shim
2052
- // will need to track that themselves and return the correct value
2053
- // from `getSnapshot`.
2054
- return getSnapshot();
2055
- }
2056
-
2057
- var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
2058
-
2059
- var isServerEnvironment = !canUseDOM;
2060
-
2061
- var shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
2062
- var useSyncExternalStore$2 = React.useSyncExternalStore !== undefined ? React.useSyncExternalStore : shim;
2063
-
2064
- exports.useSyncExternalStore = useSyncExternalStore$2;
2065
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
2066
- if (
2067
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2068
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
2069
- 'function'
2070
- ) {
2071
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2072
- }
2073
-
2074
- })();
2075
- }
2076
-
2077
-
2078
- /***/ }),
2079
-
2080
- /***/ "./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js":
2081
- /*!************************************************************************************************************!*\
2082
- !*** ./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js ***!
2083
- \************************************************************************************************************/
2084
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2085
-
2086
- /**
2087
- * @license React
2088
- * use-sync-external-store-shim/with-selector.development.js
2089
- *
2090
- * Copyright (c) Facebook, Inc. and its affiliates.
2091
- *
2092
- * This source code is licensed under the MIT license found in the
2093
- * LICENSE file in the root directory of this source tree.
2094
- */
2095
-
2096
-
2097
-
2098
- if (true) {
2099
- (function() {
2100
-
2101
- 'use strict';
2102
-
2103
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
2104
- if (
2105
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2106
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
2107
- 'function'
2108
- ) {
2109
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2110
- }
2111
- var React = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?88de");
2112
- var shim = __webpack_require__(/*! use-sync-external-store/shim */ "./node_modules/use-sync-external-store/shim/index.js");
2113
-
2114
- /**
2115
- * inlined Object.is polyfill to avoid requiring consumers ship their own
2116
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
2117
- */
2118
- function is(x, y) {
2119
- return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
2120
- ;
2121
- }
2122
-
2123
- var objectIs = typeof Object.is === 'function' ? Object.is : is;
2124
-
2125
- var useSyncExternalStore = shim.useSyncExternalStore;
2126
-
2127
- // for CommonJS interop.
2128
-
2129
- var useRef = React.useRef,
2130
- useEffect = React.useEffect,
2131
- useMemo = React.useMemo,
2132
- useDebugValue = React.useDebugValue; // Same as useSyncExternalStore, but supports selector and isEqual arguments.
2133
-
2134
- function useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
2135
- // Use this to track the rendered snapshot.
2136
- var instRef = useRef(null);
2137
- var inst;
2138
-
2139
- if (instRef.current === null) {
2140
- inst = {
2141
- hasValue: false,
2142
- value: null
2143
- };
2144
- instRef.current = inst;
2145
- } else {
2146
- inst = instRef.current;
2147
- }
2148
-
2149
- var _useMemo = useMemo(function () {
2150
- // Track the memoized state using closure variables that are local to this
2151
- // memoized instance of a getSnapshot function. Intentionally not using a
2152
- // useRef hook, because that state would be shared across all concurrent
2153
- // copies of the hook/component.
2154
- var hasMemo = false;
2155
- var memoizedSnapshot;
2156
- var memoizedSelection;
2157
-
2158
- var memoizedSelector = function (nextSnapshot) {
2159
- if (!hasMemo) {
2160
- // The first time the hook is called, there is no memoized result.
2161
- hasMemo = true;
2162
- memoizedSnapshot = nextSnapshot;
2163
-
2164
- var _nextSelection = selector(nextSnapshot);
2165
-
2166
- if (isEqual !== undefined) {
2167
- // Even if the selector has changed, the currently rendered selection
2168
- // may be equal to the new selection. We should attempt to reuse the
2169
- // current value if possible, to preserve downstream memoizations.
2170
- if (inst.hasValue) {
2171
- var currentSelection = inst.value;
2172
-
2173
- if (isEqual(currentSelection, _nextSelection)) {
2174
- memoizedSelection = currentSelection;
2175
- return currentSelection;
2176
- }
2177
- }
2178
- }
2179
-
2180
- memoizedSelection = _nextSelection;
2181
- return _nextSelection;
2182
- } // We may be able to reuse the previous invocation's result.
2183
-
2184
-
2185
- // We may be able to reuse the previous invocation's result.
2186
- var prevSnapshot = memoizedSnapshot;
2187
- var prevSelection = memoizedSelection;
2188
-
2189
- if (objectIs(prevSnapshot, nextSnapshot)) {
2190
- // The snapshot is the same as last time. Reuse the previous selection.
2191
- return prevSelection;
2192
- } // The snapshot has changed, so we need to compute a new selection.
2193
-
2194
-
2195
- // The snapshot has changed, so we need to compute a new selection.
2196
- var nextSelection = selector(nextSnapshot); // If a custom isEqual function is provided, use that to check if the data
2197
- // has changed. If it hasn't, return the previous selection. That signals
2198
- // to React that the selections are conceptually equal, and we can bail
2199
- // out of rendering.
2200
-
2201
- // If a custom isEqual function is provided, use that to check if the data
2202
- // has changed. If it hasn't, return the previous selection. That signals
2203
- // to React that the selections are conceptually equal, and we can bail
2204
- // out of rendering.
2205
- if (isEqual !== undefined && isEqual(prevSelection, nextSelection)) {
2206
- return prevSelection;
2207
- }
2208
-
2209
- memoizedSnapshot = nextSnapshot;
2210
- memoizedSelection = nextSelection;
2211
- return nextSelection;
2212
- }; // Assigning this to a constant so that Flow knows it can't change.
2213
-
2214
-
2215
- // Assigning this to a constant so that Flow knows it can't change.
2216
- var maybeGetServerSnapshot = getServerSnapshot === undefined ? null : getServerSnapshot;
2217
-
2218
- var getSnapshotWithSelector = function () {
2219
- return memoizedSelector(getSnapshot());
2220
- };
2221
-
2222
- var getServerSnapshotWithSelector = maybeGetServerSnapshot === null ? undefined : function () {
2223
- return memoizedSelector(maybeGetServerSnapshot());
2224
- };
2225
- return [getSnapshotWithSelector, getServerSnapshotWithSelector];
2226
- }, [getSnapshot, getServerSnapshot, selector, isEqual]),
2227
- getSelection = _useMemo[0],
2228
- getServerSelection = _useMemo[1];
2229
-
2230
- var value = useSyncExternalStore(subscribe, getSelection, getServerSelection);
2231
- useEffect(function () {
2232
- inst.hasValue = true;
2233
- inst.value = value;
2234
- }, [value]);
2235
- useDebugValue(value);
2236
- return value;
2237
- }
2238
-
2239
- exports.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector;
2240
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
2241
- if (
2242
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2243
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
2244
- 'function'
2245
- ) {
2246
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2247
- }
2248
-
2249
- })();
2250
- }
2251
-
2252
-
2253
- /***/ }),
2254
-
2255
- /***/ "./node_modules/use-sync-external-store/shim/index.js":
2256
- /*!************************************************************!*\
2257
- !*** ./node_modules/use-sync-external-store/shim/index.js ***!
2258
- \************************************************************/
2259
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2260
-
2261
-
2262
-
2263
- if (false) {} else {
2264
- module.exports = __webpack_require__(/*! ../cjs/use-sync-external-store-shim.development.js */ "./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js");
2265
- }
2266
-
2267
-
2268
- /***/ }),
2269
-
2270
- /***/ "./node_modules/use-sync-external-store/shim/with-selector.js":
2271
- /*!********************************************************************!*\
2272
- !*** ./node_modules/use-sync-external-store/shim/with-selector.js ***!
2273
- \********************************************************************/
2274
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2275
-
2276
-
2277
-
2278
- if (false) {} else {
2279
- module.exports = __webpack_require__(/*! ../cjs/use-sync-external-store-shim/with-selector.development.js */ "./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js");
2280
- }
2281
-
2282
-
2283
- /***/ }),
2284
-
2285
- /***/ "./node_modules/@babel/runtime/helpers/esm/extends.js":
2286
- /*!************************************************************!*\
2287
- !*** ./node_modules/@babel/runtime/helpers/esm/extends.js ***!
2288
- \************************************************************/
2289
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2290
-
2291
- __webpack_require__.r(__webpack_exports__);
2292
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2293
- /* harmony export */ "default": () => (/* binding */ _extends)
2294
- /* harmony export */ });
2295
- function _extends() {
2296
- _extends = Object.assign ? Object.assign.bind() : function (target) {
2297
- for (var i = 1; i < arguments.length; i++) {
2298
- var source = arguments[i];
2299
- for (var key in source) {
2300
- if (Object.prototype.hasOwnProperty.call(source, key)) {
2301
- target[key] = source[key];
2302
- }
2303
- }
2304
- }
2305
- return target;
2306
- };
2307
- return _extends.apply(this, arguments);
2308
- }
2309
-
2310
- /***/ }),
2311
-
2312
- /***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":
2313
- /*!*********************************************************************************!*\
2314
- !*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***!
2315
- \*********************************************************************************/
2316
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2317
-
2318
- __webpack_require__.r(__webpack_exports__);
2319
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2320
- /* harmony export */ "default": () => (/* binding */ _objectWithoutPropertiesLoose)
2321
- /* harmony export */ });
2322
- function _objectWithoutPropertiesLoose(source, excluded) {
2323
- if (source == null) return {};
2324
- var target = {};
2325
- var sourceKeys = Object.keys(source);
2326
- var key, i;
2327
- for (i = 0; i < sourceKeys.length; i++) {
2328
- key = sourceKeys[i];
2329
- if (excluded.indexOf(key) >= 0) continue;
2330
- target[key] = source[key];
2331
- }
2332
- return target;
2333
- }
2334
-
2335
- /***/ })
2336
-
2337
- }]);