@redhat-cloud-services/frontend-components-config-utilities 1.5.28 → 2.0.0-beta.0
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.
- package/federated-modules.js +48 -13
- package/package.json +2 -1
- package/repos/insights-chrome-build/58231b16fdee45a03a4ee3cf94a9f2c3 +76 -0
- package/repos/insights-chrome-build/app.info.deps.json +1 -0
- package/repos/insights-chrome-build/app.info.json +14 -0
- package/repos/insights-chrome-build/index.html +29 -0
- package/repos/insights-chrome-build/js/0140846175072d73db39.woff +0 -0
- package/repos/insights-chrome-build/js/0227c8bb038eaf0264f7.woff2 +0 -0
- package/repos/insights-chrome-build/js/0239b22511e2cbe0741a.woff +0 -0
- package/repos/insights-chrome-build/js/06037ca2cf8525d353a1.woff2 +0 -0
- package/repos/insights-chrome-build/js/09bac349bc9aa9b72bbe.woff2 +0 -0
- package/repos/insights-chrome-build/js/11855d3f3f99709dfac5.woff2 +0 -0
- package/repos/insights-chrome-build/js/164a0ab4c909b911c99b.woff +0 -0
- package/repos/insights-chrome-build/js/1904b4e1c18b4fc19778.woff +0 -0
- package/repos/insights-chrome-build/js/190776b0696119b93c71.woff2 +0 -0
- package/repos/insights-chrome-build/js/23fc486b36786bafb3d3.woff +0 -0
- package/repos/insights-chrome-build/js/24515e9b56a0ccb45480.woff +0 -0
- package/repos/insights-chrome-build/js/246cf166b6945bf1c584.woff2 +0 -0
- package/repos/insights-chrome-build/js/269ca6c83388f975ccfa.woff2 +0 -0
- package/repos/insights-chrome-build/js/2aa8547fdf2f790c2cb9.woff2 +0 -0
- package/repos/insights-chrome-build/js/2c5bc263ad288d815bd3.woff2 +0 -0
- package/repos/insights-chrome-build/js/323f30b3399fdc516b30.woff2 +0 -0
- package/repos/insights-chrome-build/js/3278ae4a3a97d92b639c.woff2 +0 -0
- package/repos/insights-chrome-build/js/35d01efdc213d0af0d00.woff +0 -0
- package/repos/insights-chrome-build/js/3be6f9a55c75aaa6f25a.woff2 +0 -0
- package/repos/insights-chrome-build/js/3cd11726d843ff40c40b.woff +0 -0
- package/repos/insights-chrome-build/js/44d0c66e3d5040be8378.woff2 +0 -0
- package/repos/insights-chrome-build/js/47a03d213b0b35080e32.woff +0 -0
- package/repos/insights-chrome-build/js/4a43a00f1c0c63f396ee.woff2 +0 -0
- package/repos/insights-chrome-build/js/4e58e730f447f9d6a422.woff2 +0 -0
- package/repos/insights-chrome-build/js/549231141115a61fa57d.woff +0 -0
- package/repos/insights-chrome-build/js/54b2e33870ba270ba774.woff2 +0 -0
- package/repos/insights-chrome-build/js/59058fe454d37a189fb9.woff2 +0 -0
- package/repos/insights-chrome-build/js/60cc25d4be2d99536ede.woff2 +0 -0
- package/repos/insights-chrome-build/js/61142d93d0198cb3c160.woff2 +0 -0
- package/repos/insights-chrome-build/js/65deba23a8337b21a451.woff2 +0 -0
- package/repos/insights-chrome-build/js/675eb11fb9e055cea6a4.woff2 +0 -0
- package/repos/insights-chrome-build/js/69bf841bb989a0010972.woff2 +0 -0
- package/repos/insights-chrome-build/js/7150021df2ae6bcf6c17.woff2 +0 -0
- package/repos/insights-chrome-build/js/732b5ddbe8d56f5462b6.woff +0 -0
- package/repos/insights-chrome-build/js/77929aa7a8bd4b667229.woff +0 -0
- package/repos/insights-chrome-build/js/7799d9401910e36d7bb2.woff +0 -0
- package/repos/insights-chrome-build/js/7b7bb91c0af148738090.woff2 +0 -0
- package/repos/insights-chrome-build/js/800277ea3e98b616b60f.woff +0 -0
- package/repos/insights-chrome-build/js/817d3df17057373e2c46.woff +0 -0
- package/repos/insights-chrome-build/js/8192be77a1809074aa20.svg +515 -0
- package/repos/insights-chrome-build/js/81aade5a7b362566b199.woff +0 -0
- package/repos/insights-chrome-build/js/8584d6d2426caac44a12.woff2 +0 -0
- package/repos/insights-chrome-build/js/88ade95ac9a035be7168.woff +0 -0
- package/repos/insights-chrome-build/js/89a09f63411d174b18ea.woff2 +0 -0
- package/repos/insights-chrome-build/js/8aae586c8c4d72be50c1.woff +0 -0
- package/repos/insights-chrome-build/js/8d723ad7cfca2dfffacb.woff +0 -0
- package/repos/insights-chrome-build/js/909a870fdb828007557f.woff2 +0 -0
- package/repos/insights-chrome-build/js/95fdf61ffc45f12737c2.woff2 +0 -0
- package/repos/insights-chrome-build/js/99464515aba730eab16c.woff2 +0 -0
- package/repos/insights-chrome-build/js/9abd7afa35218a435d29.woff2 +0 -0
- package/repos/insights-chrome-build/js/9db3d5976ae23546bbec.woff2 +0 -0
- package/repos/insights-chrome-build/js/9ed5a0180961e3930d44.woff2 +0 -0
- package/repos/insights-chrome-build/js/_e6c7-_c8e2-_e6f2-_f5f0-_baa3-_f5b3-_9609-_7327-_e64b-_1dc3-_5da5-_cf22-_9531-_be8c-_50cd-_d0-cdab65.c1dc7ccd468c8c55255f.js +943 -0
- package/repos/insights-chrome-build/js/ab4371a522c3fce8ad2d.woff2 +0 -0
- package/repos/insights-chrome-build/js/ac4ae66cc059959cf8b7.woff +0 -0
- package/repos/insights-chrome-build/js/ac78b4f2e64edfb5859a.woff +0 -0
- package/repos/insights-chrome-build/js/ajs-destination.c1dc7ccd468c8c55255f.js +6856 -0
- package/repos/insights-chrome-build/js/auto-track.c1dc7ccd468c8c55255f.js +122 -0
- package/repos/insights-chrome-build/js/bc0502ffc24dc33b8c5a.woff +0 -0
- package/repos/insights-chrome-build/js/c0276d79b017a9c2476b.woff +0 -0
- package/repos/insights-chrome-build/js/c2b7c03209f0d3558e85.woff2 +0 -0
- package/repos/insights-chrome-build/js/cf06a52fa81e76cc6b01.woff2 +0 -0
- package/repos/insights-chrome-build/js/chrome-root.c1dc7ccd468c8c55255f.js +32997 -0
- package/repos/insights-chrome-build/js/chrome.c1dc7ccd468c8c55255f.js +32930 -0
- package/repos/insights-chrome-build/js/d6b6f0c7a2af826d139d.woff +0 -0
- package/repos/insights-chrome-build/js/d7d2238f0d64e36cd533.svg +96 -0
- package/repos/insights-chrome-build/js/db4223ab0faaec898da7.woff +0 -0
- package/repos/insights-chrome-build/js/e3438b1458a26c814ae6.woff2 +0 -0
- package/repos/insights-chrome-build/js/e693bff1704e699eb7e2.woff2 +0 -0
- package/repos/insights-chrome-build/js/e7bea4af7086ce0144fc.woff +0 -0
- package/repos/insights-chrome-build/js/e888fa788db9794c334f.woff2 +0 -0
- package/repos/insights-chrome-build/js/e9d4a1e9285e4454ef7e.woff +0 -0
- package/repos/insights-chrome-build/js/f32577e5a5f1d27244a3.woff2 +0 -0
- package/repos/insights-chrome-build/js/fed-mods.json +18 -0
- package/repos/insights-chrome-build/js/legacyVideos.c1dc7ccd468c8c55255f.js +41 -0
- package/repos/insights-chrome-build/js/main.c1dc7ccd468c8c55255f.css +51469 -0
- package/repos/insights-chrome-build/js/middleware.c1dc7ccd468c8c55255f.js +138 -0
- package/repos/insights-chrome-build/js/node_modules_hoist-non-react-statics_dist_hoist-non-react-statics_cjs_js-node_modules_babel_r-4097d5.c1dc7ccd468c8c55255f.js +195 -0
- package/repos/insights-chrome-build/js/node_modules_patternfly_react-icons_dist_js_icons_bars-icon_js-node_modules_patternfly_react--73ba53.c1dc7ccd468c8c55255f.js +158 -0
- package/repos/insights-chrome-build/js/queryString.c1dc7ccd468c8c55255f.js +84 -0
- package/repos/insights-chrome-build/js/quick-start.c1dc7ccd468c8c55255f.js +33 -0
- package/repos/insights-chrome-build/js/remoteMiddleware.c1dc7ccd468c8c55255f.js +87 -0
- package/repos/insights-chrome-build/js/schemaFilter.c1dc7ccd468c8c55255f.js +109 -0
- package/repos/insights-chrome-build/js/src_js_App_Routes_QuickstartsCatalogRoute_js.c1dc7ccd468c8c55255f.js +79 -0
- package/repos/insights-chrome-build/js/src_js_App_Sidenav_LandingNav_js.c1dc7ccd468c8c55255f.css +17 -0
- package/repos/insights-chrome-build/js/src_js_App_Sidenav_LandingNav_js.c1dc7ccd468c8c55255f.js +129 -0
- package/repos/insights-chrome-build/js/src_js_App_Sidenav_Navigation_componentMapper_js.c1dc7ccd468c8c55255f.js +750 -0
- package/repos/insights-chrome-build/js/src_js_App_Sidenav_Navigation_index_js.c1dc7ccd468c8c55255f.js +416 -0
- package/repos/insights-chrome-build/js/src_js_App_Stratosphere_ProductSelection_tsx.c1dc7ccd468c8c55255f.css +18783 -0
- package/repos/insights-chrome-build/js/src_js_App_Stratosphere_ProductSelection_tsx.c1dc7ccd468c8c55255f.js +283 -0
- package/repos/insights-chrome-build/js/src_js_bootstrap_js-src_js_unfetch_index_js-node_modules_redhat-cloud-services_frontend-compo-d86d1e.c1dc7ccd468c8c55255f.css +921 -0
- package/repos/insights-chrome-build/js/src_js_bootstrap_js-src_js_unfetch_index_js-node_modules_redhat-cloud-services_frontend-compo-d86d1e.c1dc7ccd468c8c55255f.js +8466 -0
- package/repos/insights-chrome-build/js/src_js_inventory_modules_AppInfo_js.c1dc7ccd468c8c55255f.js +182 -0
- package/repos/insights-chrome-build/js/src_js_inventory_modules_DetailWrapper_js.c1dc7ccd468c8c55255f.js +182 -0
- package/repos/insights-chrome-build/js/src_js_inventory_modules_InventoryDetailHead_js.c1dc7ccd468c8c55255f.js +182 -0
- package/repos/insights-chrome-build/js/src_js_inventory_modules_InventoryDetail_js.c1dc7ccd468c8c55255f.js +182 -0
- package/repos/insights-chrome-build/js/src_js_inventory_modules_InventoryTable_js.c1dc7ccd468c8c55255f.js +182 -0
- package/repos/insights-chrome-build/js/src_js_inventory_modules_TagWithDialog_js.c1dc7ccd468c8c55255f.js +182 -0
- package/repos/insights-chrome-build/js/src_js_jwt_insights_offline_ts-src_js_jwt_jwt_ts.c1dc7ccd468c8c55255f.js +1589 -0
- package/repos/insights-chrome-build/js/src_js_jwt_modules_useChromeAuth_ts.c1dc7ccd468c8c55255f.js +64 -0
- package/repos/insights-chrome-build/js/src_js_overrides_chart-utils-override_js-src_js_pdf_DownloadButton_js-webpack_sharing_consume-5c7286.c1dc7ccd468c8c55255f.js +119 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_babel_runtime_regenerator_index_js-node_modules_buffer_index_js-node_mod-aceb88.c1dc7ccd468c8c55255f.js +5787 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_base64-js_index_js-node_modules_lodash__baseFlatten_js-node_modules_loda-c4069d.c1dc7ccd468c8c55255f.js +1713 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_classnames_index_js-node_modules_react_jsx-runtime_js-node_modules_babel-163bf5.c1dc7ccd468c8c55255f.js +1411 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_history_esm_history_js.c1dc7ccd468c8c55255f.js +1148 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_lodash__baseIsEqual_js.c1dc7ccd468c8c55255f.js +3148 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_quickstarts_dist_index_es_js.c1dc7ccd468c8c55255f.js +13171 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-core_dist_esm_components_Button_Button_js-node_modules_-6fa0b5.c1dc7ccd468c8c55255f.js +1346 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-core_dist_esm_components_Spinner_Spinner_js-node_module-1e699f.c1dc7ccd468c8c55255f.js +4410 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-core_dist_esm_index_js.c1dc7ccd468c8c55255f.js +33602 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-icons_dist_esm_icons_external-link-alt-icon_js-node_mod-b94988.c1dc7ccd468c8c55255f.js +51213 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_prop-types_index_js.c1dc7ccd468c8c55255f.js +857 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_react-redux_es_index_js.c1dc7ccd468c8c55255f.js +2161 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_react-router-dom_esm_react-router-dom_js.c1dc7ccd468c8c55255f.js +360 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_react-router_esm_react-router_js.c1dc7ccd468c8c55255f.js +1466 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_redhat-cloud-services_entitlements-client_dist_index_js-node_modules_red-0a1887.c1dc7ccd468c8c55255f.js +27710 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_redhat-cloud-services_frontend-components-pdf-generator_dist_esm_index_js.c1dc7ccd468c8c55255f.js +148681 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_scalprum_react-core_dist_esm_index_js.c1dc7ccd468c8c55255f.js +946 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_segment_analytics_js-video-plugins_dist_index_umd_js.c1dc7ccd468c8c55255f.js +13 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_tslib_tslib_es6_js.c1dc7ccd468c8c55255f.js +258 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_unleash_proxy-client-react_dist_index_browser_js.c1dc7ccd468c8c55255f.js +1770 -0
- package/repos/insights-chrome-build/silent-check-sso.html +7 -0
- package/standalone/services/default/keycloak/realm_export.json +4827 -3882
- package/chunk-mapper.js +0 -66
|
@@ -0,0 +1,2161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
(self["webpackChunkinsights_chrome"] = self["webpackChunkinsights_chrome"] || []).push([["vendors-node_modules_react-redux_es_index_js"],{
|
|
3
|
+
|
|
4
|
+
/***/ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":
|
|
5
|
+
/*!**********************************************************************************!*\
|
|
6
|
+
!*** ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js ***!
|
|
7
|
+
\**********************************************************************************/
|
|
8
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var reactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Copyright 2015, Yahoo! Inc.
|
|
16
|
+
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
17
|
+
*/
|
|
18
|
+
var REACT_STATICS = {
|
|
19
|
+
childContextTypes: true,
|
|
20
|
+
contextType: true,
|
|
21
|
+
contextTypes: true,
|
|
22
|
+
defaultProps: true,
|
|
23
|
+
displayName: true,
|
|
24
|
+
getDefaultProps: true,
|
|
25
|
+
getDerivedStateFromError: true,
|
|
26
|
+
getDerivedStateFromProps: true,
|
|
27
|
+
mixins: true,
|
|
28
|
+
propTypes: true,
|
|
29
|
+
type: true
|
|
30
|
+
};
|
|
31
|
+
var KNOWN_STATICS = {
|
|
32
|
+
name: true,
|
|
33
|
+
length: true,
|
|
34
|
+
prototype: true,
|
|
35
|
+
caller: true,
|
|
36
|
+
callee: true,
|
|
37
|
+
arguments: true,
|
|
38
|
+
arity: true
|
|
39
|
+
};
|
|
40
|
+
var FORWARD_REF_STATICS = {
|
|
41
|
+
'$$typeof': true,
|
|
42
|
+
render: true,
|
|
43
|
+
defaultProps: true,
|
|
44
|
+
displayName: true,
|
|
45
|
+
propTypes: true
|
|
46
|
+
};
|
|
47
|
+
var MEMO_STATICS = {
|
|
48
|
+
'$$typeof': true,
|
|
49
|
+
compare: true,
|
|
50
|
+
defaultProps: true,
|
|
51
|
+
displayName: true,
|
|
52
|
+
propTypes: true,
|
|
53
|
+
type: true
|
|
54
|
+
};
|
|
55
|
+
var TYPE_STATICS = {};
|
|
56
|
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
57
|
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
58
|
+
|
|
59
|
+
function getStatics(component) {
|
|
60
|
+
// React v16.11 and below
|
|
61
|
+
if (reactIs.isMemo(component)) {
|
|
62
|
+
return MEMO_STATICS;
|
|
63
|
+
} // React v16.12 and above
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
var defineProperty = Object.defineProperty;
|
|
70
|
+
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
71
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
72
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
73
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
74
|
+
var objectPrototype = Object.prototype;
|
|
75
|
+
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
76
|
+
if (typeof sourceComponent !== 'string') {
|
|
77
|
+
// don't hoist over string (html) components
|
|
78
|
+
if (objectPrototype) {
|
|
79
|
+
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
80
|
+
|
|
81
|
+
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
82
|
+
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
var keys = getOwnPropertyNames(sourceComponent);
|
|
87
|
+
|
|
88
|
+
if (getOwnPropertySymbols) {
|
|
89
|
+
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
var targetStatics = getStatics(targetComponent);
|
|
93
|
+
var sourceStatics = getStatics(sourceComponent);
|
|
94
|
+
|
|
95
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
96
|
+
var key = keys[i];
|
|
97
|
+
|
|
98
|
+
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
99
|
+
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
100
|
+
|
|
101
|
+
try {
|
|
102
|
+
// Avoid failures from read-only properties
|
|
103
|
+
defineProperty(targetComponent, key, descriptor);
|
|
104
|
+
} catch (e) {}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return targetComponent;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
module.exports = hoistNonReactStatics;
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
/***/ }),
|
|
116
|
+
|
|
117
|
+
/***/ "./node_modules/react-redux/es/components/Context.js":
|
|
118
|
+
/*!***********************************************************!*\
|
|
119
|
+
!*** ./node_modules/react-redux/es/components/Context.js ***!
|
|
120
|
+
\***********************************************************/
|
|
121
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
122
|
+
|
|
123
|
+
__webpack_require__.r(__webpack_exports__);
|
|
124
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
125
|
+
/* harmony export */ "ReactReduxContext": () => (/* binding */ ReactReduxContext),
|
|
126
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
127
|
+
/* harmony export */ });
|
|
128
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?474c");
|
|
129
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
130
|
+
|
|
131
|
+
var ReactReduxContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext(null);
|
|
132
|
+
|
|
133
|
+
if (true) {
|
|
134
|
+
ReactReduxContext.displayName = 'ReactRedux';
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ReactReduxContext);
|
|
138
|
+
|
|
139
|
+
/***/ }),
|
|
140
|
+
|
|
141
|
+
/***/ "./node_modules/react-redux/es/components/Provider.js":
|
|
142
|
+
/*!************************************************************!*\
|
|
143
|
+
!*** ./node_modules/react-redux/es/components/Provider.js ***!
|
|
144
|
+
\************************************************************/
|
|
145
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
146
|
+
|
|
147
|
+
__webpack_require__.r(__webpack_exports__);
|
|
148
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
149
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
150
|
+
/* harmony export */ });
|
|
151
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?474c");
|
|
152
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
153
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
|
|
154
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
155
|
+
/* harmony import */ var _Context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Context */ "./node_modules/react-redux/es/components/Context.js");
|
|
156
|
+
/* harmony import */ var _utils_Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/Subscription */ "./node_modules/react-redux/es/utils/Subscription.js");
|
|
157
|
+
/* harmony import */ var _utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/useIsomorphicLayoutEffect */ "./node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js");
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
function Provider(_ref) {
|
|
165
|
+
var store = _ref.store,
|
|
166
|
+
context = _ref.context,
|
|
167
|
+
children = _ref.children;
|
|
168
|
+
var contextValue = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
|
169
|
+
var subscription = (0,_utils_Subscription__WEBPACK_IMPORTED_MODULE_2__.createSubscription)(store);
|
|
170
|
+
subscription.onStateChange = subscription.notifyNestedSubs;
|
|
171
|
+
return {
|
|
172
|
+
store: store,
|
|
173
|
+
subscription: subscription
|
|
174
|
+
};
|
|
175
|
+
}, [store]);
|
|
176
|
+
var previousState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
|
177
|
+
return store.getState();
|
|
178
|
+
}, [store]);
|
|
179
|
+
(0,_utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__.useIsomorphicLayoutEffect)(function () {
|
|
180
|
+
var subscription = contextValue.subscription;
|
|
181
|
+
subscription.trySubscribe();
|
|
182
|
+
|
|
183
|
+
if (previousState !== store.getState()) {
|
|
184
|
+
subscription.notifyNestedSubs();
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
return function () {
|
|
188
|
+
subscription.tryUnsubscribe();
|
|
189
|
+
subscription.onStateChange = null;
|
|
190
|
+
};
|
|
191
|
+
}, [contextValue, previousState]);
|
|
192
|
+
var Context = context || _Context__WEBPACK_IMPORTED_MODULE_1__.ReactReduxContext;
|
|
193
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Context.Provider, {
|
|
194
|
+
value: contextValue
|
|
195
|
+
}, children);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
if (true) {
|
|
199
|
+
Provider.propTypes = {
|
|
200
|
+
store: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({
|
|
201
|
+
subscribe: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func.isRequired),
|
|
202
|
+
dispatch: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func.isRequired),
|
|
203
|
+
getState: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func.isRequired)
|
|
204
|
+
}),
|
|
205
|
+
context: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object),
|
|
206
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().any)
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Provider);
|
|
211
|
+
|
|
212
|
+
/***/ }),
|
|
213
|
+
|
|
214
|
+
/***/ "./node_modules/react-redux/es/components/connectAdvanced.js":
|
|
215
|
+
/*!*******************************************************************!*\
|
|
216
|
+
!*** ./node_modules/react-redux/es/components/connectAdvanced.js ***!
|
|
217
|
+
\*******************************************************************/
|
|
218
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
219
|
+
|
|
220
|
+
__webpack_require__.r(__webpack_exports__);
|
|
221
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
222
|
+
/* harmony export */ "default": () => (/* binding */ connectAdvanced)
|
|
223
|
+
/* harmony export */ });
|
|
224
|
+
/* 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");
|
|
225
|
+
/* 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");
|
|
226
|
+
/* 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");
|
|
227
|
+
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2__);
|
|
228
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?474c");
|
|
229
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
230
|
+
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-is */ "./node_modules/react-redux/node_modules/react-is/index.js");
|
|
231
|
+
/* harmony import */ var _utils_Subscription__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/Subscription */ "./node_modules/react-redux/es/utils/Subscription.js");
|
|
232
|
+
/* harmony import */ var _utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/useIsomorphicLayoutEffect */ "./node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js");
|
|
233
|
+
/* harmony import */ var _Context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Context */ "./node_modules/react-redux/es/components/Context.js");
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
var _excluded = ["getDisplayName", "methodName", "renderCountProp", "shouldHandleStateChanges", "storeKey", "withRef", "forwardRef", "context"],
|
|
237
|
+
_excluded2 = ["reactReduxForwardedRef"];
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
// Define some constant arrays just to avoid re-creating these
|
|
244
|
+
|
|
245
|
+
var EMPTY_ARRAY = [];
|
|
246
|
+
var NO_SUBSCRIPTION_ARRAY = [null, null];
|
|
247
|
+
|
|
248
|
+
var stringifyComponent = function stringifyComponent(Comp) {
|
|
249
|
+
try {
|
|
250
|
+
return JSON.stringify(Comp);
|
|
251
|
+
} catch (err) {
|
|
252
|
+
return String(Comp);
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
function storeStateUpdatesReducer(state, action) {
|
|
257
|
+
var updateCount = state[1];
|
|
258
|
+
return [action.payload, updateCount + 1];
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
function useIsomorphicLayoutEffectWithArgs(effectFunc, effectArgs, dependencies) {
|
|
262
|
+
(0,_utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_6__.useIsomorphicLayoutEffect)(function () {
|
|
263
|
+
return effectFunc.apply(void 0, effectArgs);
|
|
264
|
+
}, dependencies);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
function captureWrapperProps(lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, actualChildProps, childPropsFromStoreUpdate, notifyNestedSubs) {
|
|
268
|
+
// We want to capture the wrapper props and child props we used for later comparisons
|
|
269
|
+
lastWrapperProps.current = wrapperProps;
|
|
270
|
+
lastChildProps.current = actualChildProps;
|
|
271
|
+
renderIsScheduled.current = false; // If the render was from a store update, clear out that reference and cascade the subscriber update
|
|
272
|
+
|
|
273
|
+
if (childPropsFromStoreUpdate.current) {
|
|
274
|
+
childPropsFromStoreUpdate.current = null;
|
|
275
|
+
notifyNestedSubs();
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
function subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, childPropsFromStoreUpdate, notifyNestedSubs, forceComponentUpdateDispatch) {
|
|
280
|
+
// If we're not subscribed to the store, nothing to do here
|
|
281
|
+
if (!shouldHandleStateChanges) return; // Capture values for checking if and when this component unmounts
|
|
282
|
+
|
|
283
|
+
var didUnsubscribe = false;
|
|
284
|
+
var lastThrownError = null; // We'll run this callback every time a store subscription update propagates to this component
|
|
285
|
+
|
|
286
|
+
var checkForUpdates = function checkForUpdates() {
|
|
287
|
+
if (didUnsubscribe) {
|
|
288
|
+
// Don't run stale listeners.
|
|
289
|
+
// Redux doesn't guarantee unsubscriptions happen until next dispatch.
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
var latestStoreState = store.getState();
|
|
294
|
+
var newChildProps, error;
|
|
295
|
+
|
|
296
|
+
try {
|
|
297
|
+
// Actually run the selector with the most recent store state and wrapper props
|
|
298
|
+
// to determine what the child props should be
|
|
299
|
+
newChildProps = childPropsSelector(latestStoreState, lastWrapperProps.current);
|
|
300
|
+
} catch (e) {
|
|
301
|
+
error = e;
|
|
302
|
+
lastThrownError = e;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
if (!error) {
|
|
306
|
+
lastThrownError = null;
|
|
307
|
+
} // If the child props haven't changed, nothing to do here - cascade the subscription update
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
if (newChildProps === lastChildProps.current) {
|
|
311
|
+
if (!renderIsScheduled.current) {
|
|
312
|
+
notifyNestedSubs();
|
|
313
|
+
}
|
|
314
|
+
} else {
|
|
315
|
+
// Save references to the new child props. Note that we track the "child props from store update"
|
|
316
|
+
// as a ref instead of a useState/useReducer because we need a way to determine if that value has
|
|
317
|
+
// been processed. If this went into useState/useReducer, we couldn't clear out the value without
|
|
318
|
+
// forcing another re-render, which we don't want.
|
|
319
|
+
lastChildProps.current = newChildProps;
|
|
320
|
+
childPropsFromStoreUpdate.current = newChildProps;
|
|
321
|
+
renderIsScheduled.current = true; // If the child props _did_ change (or we caught an error), this wrapper component needs to re-render
|
|
322
|
+
|
|
323
|
+
forceComponentUpdateDispatch({
|
|
324
|
+
type: 'STORE_UPDATED',
|
|
325
|
+
payload: {
|
|
326
|
+
error: error
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
}; // Actually subscribe to the nearest connected ancestor (or store)
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
subscription.onStateChange = checkForUpdates;
|
|
334
|
+
subscription.trySubscribe(); // Pull data from the store after first render in case the store has
|
|
335
|
+
// changed since we began.
|
|
336
|
+
|
|
337
|
+
checkForUpdates();
|
|
338
|
+
|
|
339
|
+
var unsubscribeWrapper = function unsubscribeWrapper() {
|
|
340
|
+
didUnsubscribe = true;
|
|
341
|
+
subscription.tryUnsubscribe();
|
|
342
|
+
subscription.onStateChange = null;
|
|
343
|
+
|
|
344
|
+
if (lastThrownError) {
|
|
345
|
+
// It's possible that we caught an error due to a bad mapState function, but the
|
|
346
|
+
// parent re-rendered without this component and we're about to unmount.
|
|
347
|
+
// This shouldn't happen as long as we do top-down subscriptions correctly, but
|
|
348
|
+
// if we ever do those wrong, this throw will surface the error in our tests.
|
|
349
|
+
// In that case, throw the error from here so it doesn't get lost.
|
|
350
|
+
throw lastThrownError;
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
return unsubscribeWrapper;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
var initStateUpdates = function initStateUpdates() {
|
|
358
|
+
return [null, 0];
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
function connectAdvanced(
|
|
362
|
+
/*
|
|
363
|
+
selectorFactory is a func that is responsible for returning the selector function used to
|
|
364
|
+
compute new props from state, props, and dispatch. For example:
|
|
365
|
+
export default connectAdvanced((dispatch, options) => (state, props) => ({
|
|
366
|
+
thing: state.things[props.thingId],
|
|
367
|
+
saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)),
|
|
368
|
+
}))(YourComponent)
|
|
369
|
+
Access to dispatch is provided to the factory so selectorFactories can bind actionCreators
|
|
370
|
+
outside of their selector as an optimization. Options passed to connectAdvanced are passed to
|
|
371
|
+
the selectorFactory, along with displayName and WrappedComponent, as the second argument.
|
|
372
|
+
Note that selectorFactory is responsible for all caching/memoization of inbound and outbound
|
|
373
|
+
props. Do not use connectAdvanced directly without memoizing results between calls to your
|
|
374
|
+
selector, otherwise the Connect component will re-render on every state or props change.
|
|
375
|
+
*/
|
|
376
|
+
selectorFactory, // options object:
|
|
377
|
+
_ref) {
|
|
378
|
+
if (_ref === void 0) {
|
|
379
|
+
_ref = {};
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
var _ref2 = _ref,
|
|
383
|
+
_ref2$getDisplayName = _ref2.getDisplayName,
|
|
384
|
+
getDisplayName = _ref2$getDisplayName === void 0 ? function (name) {
|
|
385
|
+
return "ConnectAdvanced(" + name + ")";
|
|
386
|
+
} : _ref2$getDisplayName,
|
|
387
|
+
_ref2$methodName = _ref2.methodName,
|
|
388
|
+
methodName = _ref2$methodName === void 0 ? 'connectAdvanced' : _ref2$methodName,
|
|
389
|
+
_ref2$renderCountProp = _ref2.renderCountProp,
|
|
390
|
+
renderCountProp = _ref2$renderCountProp === void 0 ? undefined : _ref2$renderCountProp,
|
|
391
|
+
_ref2$shouldHandleSta = _ref2.shouldHandleStateChanges,
|
|
392
|
+
shouldHandleStateChanges = _ref2$shouldHandleSta === void 0 ? true : _ref2$shouldHandleSta,
|
|
393
|
+
_ref2$storeKey = _ref2.storeKey,
|
|
394
|
+
storeKey = _ref2$storeKey === void 0 ? 'store' : _ref2$storeKey,
|
|
395
|
+
_ref2$withRef = _ref2.withRef,
|
|
396
|
+
withRef = _ref2$withRef === void 0 ? false : _ref2$withRef,
|
|
397
|
+
_ref2$forwardRef = _ref2.forwardRef,
|
|
398
|
+
forwardRef = _ref2$forwardRef === void 0 ? false : _ref2$forwardRef,
|
|
399
|
+
_ref2$context = _ref2.context,
|
|
400
|
+
context = _ref2$context === void 0 ? _Context__WEBPACK_IMPORTED_MODULE_7__.ReactReduxContext : _ref2$context,
|
|
401
|
+
connectOptions = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__.default)(_ref2, _excluded);
|
|
402
|
+
|
|
403
|
+
if (true) {
|
|
404
|
+
if (renderCountProp !== undefined) {
|
|
405
|
+
throw new Error("renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension");
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
if (withRef) {
|
|
409
|
+
throw new Error('withRef is removed. To access the wrapped instance, use a ref on the connected component');
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
var customStoreWarningMessage = 'To use a custom Redux store for specific components, create a custom React context with ' + "React.createContext(), and pass the context object to React Redux's Provider and specific components" + ' like: <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. ' + 'You may also pass a {context : MyContext} option to connect';
|
|
413
|
+
|
|
414
|
+
if (storeKey !== 'store') {
|
|
415
|
+
throw new Error('storeKey has been removed and does not do anything. ' + customStoreWarningMessage);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
var Context = context;
|
|
420
|
+
return function wrapWithConnect(WrappedComponent) {
|
|
421
|
+
if ( true && !(0,react_is__WEBPACK_IMPORTED_MODULE_4__.isValidElementType)(WrappedComponent)) {
|
|
422
|
+
throw new Error("You must pass a component to the function returned by " + (methodName + ". Instead received " + stringifyComponent(WrappedComponent)));
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
426
|
+
var displayName = getDisplayName(wrappedComponentName);
|
|
427
|
+
|
|
428
|
+
var selectorFactoryOptions = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, connectOptions, {
|
|
429
|
+
getDisplayName: getDisplayName,
|
|
430
|
+
methodName: methodName,
|
|
431
|
+
renderCountProp: renderCountProp,
|
|
432
|
+
shouldHandleStateChanges: shouldHandleStateChanges,
|
|
433
|
+
storeKey: storeKey,
|
|
434
|
+
displayName: displayName,
|
|
435
|
+
wrappedComponentName: wrappedComponentName,
|
|
436
|
+
WrappedComponent: WrappedComponent
|
|
437
|
+
});
|
|
438
|
+
|
|
439
|
+
var pure = connectOptions.pure;
|
|
440
|
+
|
|
441
|
+
function createChildSelector(store) {
|
|
442
|
+
return selectorFactory(store.dispatch, selectorFactoryOptions);
|
|
443
|
+
} // If we aren't running in "pure" mode, we don't want to memoize values.
|
|
444
|
+
// To avoid conditionally calling hooks, we fall back to a tiny wrapper
|
|
445
|
+
// that just executes the given callback immediately.
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
var usePureOnlyMemo = pure ? react__WEBPACK_IMPORTED_MODULE_3__.useMemo : function (callback) {
|
|
449
|
+
return callback();
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
function ConnectFunction(props) {
|
|
453
|
+
var _useMemo = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {
|
|
454
|
+
// Distinguish between actual "data" props that were passed to the wrapper component,
|
|
455
|
+
// and values needed to control behavior (forwarded refs, alternate context instances).
|
|
456
|
+
// To maintain the wrapperProps object reference, memoize this destructuring.
|
|
457
|
+
var reactReduxForwardedRef = props.reactReduxForwardedRef,
|
|
458
|
+
wrapperProps = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__.default)(props, _excluded2);
|
|
459
|
+
|
|
460
|
+
return [props.context, reactReduxForwardedRef, wrapperProps];
|
|
461
|
+
}, [props]),
|
|
462
|
+
propsContext = _useMemo[0],
|
|
463
|
+
reactReduxForwardedRef = _useMemo[1],
|
|
464
|
+
wrapperProps = _useMemo[2];
|
|
465
|
+
|
|
466
|
+
var ContextToUse = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {
|
|
467
|
+
// Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.
|
|
468
|
+
// Memoize the check that determines which context instance we should use.
|
|
469
|
+
return propsContext && propsContext.Consumer && (0,react_is__WEBPACK_IMPORTED_MODULE_4__.isContextConsumer)( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(propsContext.Consumer, null)) ? propsContext : Context;
|
|
470
|
+
}, [propsContext, Context]); // Retrieve the store and ancestor subscription via context, if available
|
|
471
|
+
|
|
472
|
+
var contextValue = (0,react__WEBPACK_IMPORTED_MODULE_3__.useContext)(ContextToUse); // The store _must_ exist as either a prop or in context.
|
|
473
|
+
// We'll check to see if it _looks_ like a Redux store first.
|
|
474
|
+
// This allows us to pass through a `store` prop that is just a plain value.
|
|
475
|
+
|
|
476
|
+
var didStoreComeFromProps = Boolean(props.store) && Boolean(props.store.getState) && Boolean(props.store.dispatch);
|
|
477
|
+
var didStoreComeFromContext = Boolean(contextValue) && Boolean(contextValue.store);
|
|
478
|
+
|
|
479
|
+
if ( true && !didStoreComeFromProps && !didStoreComeFromContext) {
|
|
480
|
+
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."));
|
|
481
|
+
} // Based on the previous check, one of these must be true
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
var store = didStoreComeFromProps ? props.store : contextValue.store;
|
|
485
|
+
var childPropsSelector = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {
|
|
486
|
+
// The child props selector needs the store reference as an input.
|
|
487
|
+
// Re-create this selector whenever the store changes.
|
|
488
|
+
return createChildSelector(store);
|
|
489
|
+
}, [store]);
|
|
490
|
+
|
|
491
|
+
var _useMemo2 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {
|
|
492
|
+
if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY; // This Subscription's source should match where store came from: props vs. context. A component
|
|
493
|
+
// connected to the store via props shouldn't use subscription from context, or vice versa.
|
|
494
|
+
|
|
495
|
+
// This Subscription's source should match where store came from: props vs. context. A component
|
|
496
|
+
// connected to the store via props shouldn't use subscription from context, or vice versa.
|
|
497
|
+
var subscription = (0,_utils_Subscription__WEBPACK_IMPORTED_MODULE_5__.createSubscription)(store, didStoreComeFromProps ? null : contextValue.subscription); // `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in
|
|
498
|
+
// the middle of the notification loop, where `subscription` will then be null. This can
|
|
499
|
+
// probably be avoided if Subscription's listeners logic is changed to not call listeners
|
|
500
|
+
// that have been unsubscribed in the middle of the notification loop.
|
|
501
|
+
|
|
502
|
+
// `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in
|
|
503
|
+
// the middle of the notification loop, where `subscription` will then be null. This can
|
|
504
|
+
// probably be avoided if Subscription's listeners logic is changed to not call listeners
|
|
505
|
+
// that have been unsubscribed in the middle of the notification loop.
|
|
506
|
+
var notifyNestedSubs = subscription.notifyNestedSubs.bind(subscription);
|
|
507
|
+
return [subscription, notifyNestedSubs];
|
|
508
|
+
}, [store, didStoreComeFromProps, contextValue]),
|
|
509
|
+
subscription = _useMemo2[0],
|
|
510
|
+
notifyNestedSubs = _useMemo2[1]; // Determine what {store, subscription} value should be put into nested context, if necessary,
|
|
511
|
+
// and memoize that value to avoid unnecessary context updates.
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
var overriddenContextValue = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {
|
|
515
|
+
if (didStoreComeFromProps) {
|
|
516
|
+
// This component is directly subscribed to a store from props.
|
|
517
|
+
// We don't want descendants reading from this store - pass down whatever
|
|
518
|
+
// the existing context value is from the nearest connected ancestor.
|
|
519
|
+
return contextValue;
|
|
520
|
+
} // Otherwise, put this component's subscription instance into context, so that
|
|
521
|
+
// connected descendants won't update until after this component is done
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, contextValue, {
|
|
525
|
+
subscription: subscription
|
|
526
|
+
});
|
|
527
|
+
}, [didStoreComeFromProps, contextValue, subscription]); // We need to force this wrapper component to re-render whenever a Redux store update
|
|
528
|
+
// causes a change to the calculated child component props (or we caught an error in mapState)
|
|
529
|
+
|
|
530
|
+
var _useReducer = (0,react__WEBPACK_IMPORTED_MODULE_3__.useReducer)(storeStateUpdatesReducer, EMPTY_ARRAY, initStateUpdates),
|
|
531
|
+
_useReducer$ = _useReducer[0],
|
|
532
|
+
previousStateUpdateResult = _useReducer$[0],
|
|
533
|
+
forceComponentUpdateDispatch = _useReducer[1]; // Propagate any mapState/mapDispatch errors upwards
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
if (previousStateUpdateResult && previousStateUpdateResult.error) {
|
|
537
|
+
throw previousStateUpdateResult.error;
|
|
538
|
+
} // Set up refs to coordinate values between the subscription effect and the render logic
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
var lastChildProps = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)();
|
|
542
|
+
var lastWrapperProps = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(wrapperProps);
|
|
543
|
+
var childPropsFromStoreUpdate = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)();
|
|
544
|
+
var renderIsScheduled = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(false);
|
|
545
|
+
var actualChildProps = usePureOnlyMemo(function () {
|
|
546
|
+
// Tricky logic here:
|
|
547
|
+
// - This render may have been triggered by a Redux store update that produced new child props
|
|
548
|
+
// - However, we may have gotten new wrapper props after that
|
|
549
|
+
// If we have new child props, and the same wrapper props, we know we should use the new child props as-is.
|
|
550
|
+
// But, if we have new wrapper props, those might change the child props, so we have to recalculate things.
|
|
551
|
+
// So, we'll use the child props from store update only if the wrapper props are the same as last time.
|
|
552
|
+
if (childPropsFromStoreUpdate.current && wrapperProps === lastWrapperProps.current) {
|
|
553
|
+
return childPropsFromStoreUpdate.current;
|
|
554
|
+
} // TODO We're reading the store directly in render() here. Bad idea?
|
|
555
|
+
// This will likely cause Bad Things (TM) to happen in Concurrent Mode.
|
|
556
|
+
// Note that we do this because on renders _not_ caused by store updates, we need the latest store state
|
|
557
|
+
// to determine what the child props should be.
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
return childPropsSelector(store.getState(), wrapperProps);
|
|
561
|
+
}, [store, previousStateUpdateResult, wrapperProps]); // We need this to execute synchronously every time we re-render. However, React warns
|
|
562
|
+
// about useLayoutEffect in SSR, so we try to detect environment and fall back to
|
|
563
|
+
// just useEffect instead to avoid the warning, since neither will run anyway.
|
|
564
|
+
|
|
565
|
+
useIsomorphicLayoutEffectWithArgs(captureWrapperProps, [lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, actualChildProps, childPropsFromStoreUpdate, notifyNestedSubs]); // Our re-subscribe logic only runs when the store/subscription setup changes
|
|
566
|
+
|
|
567
|
+
useIsomorphicLayoutEffectWithArgs(subscribeUpdates, [shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, childPropsFromStoreUpdate, notifyNestedSubs, forceComponentUpdateDispatch], [store, subscription, childPropsSelector]); // Now that all that's done, we can finally try to actually render the child component.
|
|
568
|
+
// We memoize the elements for the rendered child component as an optimization.
|
|
569
|
+
|
|
570
|
+
var renderedWrappedComponent = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {
|
|
571
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(WrappedComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, actualChildProps, {
|
|
572
|
+
ref: reactReduxForwardedRef
|
|
573
|
+
}));
|
|
574
|
+
}, [reactReduxForwardedRef, WrappedComponent, actualChildProps]); // If React sees the exact same element reference as last time, it bails out of re-rendering
|
|
575
|
+
// that child, same as if it was wrapped in React.memo() or returned false from shouldComponentUpdate.
|
|
576
|
+
|
|
577
|
+
var renderedChild = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {
|
|
578
|
+
if (shouldHandleStateChanges) {
|
|
579
|
+
// If this component is subscribed to store updates, we need to pass its own
|
|
580
|
+
// subscription instance down to our descendants. That means rendering the same
|
|
581
|
+
// Context instance, and putting a different value into the context.
|
|
582
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(ContextToUse.Provider, {
|
|
583
|
+
value: overriddenContextValue
|
|
584
|
+
}, renderedWrappedComponent);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
return renderedWrappedComponent;
|
|
588
|
+
}, [ContextToUse, renderedWrappedComponent, overriddenContextValue]);
|
|
589
|
+
return renderedChild;
|
|
590
|
+
} // If we're in "pure" mode, ensure our wrapper component only re-renders when incoming props have changed.
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
var Connect = pure ? react__WEBPACK_IMPORTED_MODULE_3___default().memo(ConnectFunction) : ConnectFunction;
|
|
594
|
+
Connect.WrappedComponent = WrappedComponent;
|
|
595
|
+
Connect.displayName = ConnectFunction.displayName = displayName;
|
|
596
|
+
|
|
597
|
+
if (forwardRef) {
|
|
598
|
+
var forwarded = react__WEBPACK_IMPORTED_MODULE_3___default().forwardRef(function forwardConnectRef(props, ref) {
|
|
599
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(Connect, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, props, {
|
|
600
|
+
reactReduxForwardedRef: ref
|
|
601
|
+
}));
|
|
602
|
+
});
|
|
603
|
+
forwarded.displayName = displayName;
|
|
604
|
+
forwarded.WrappedComponent = WrappedComponent;
|
|
605
|
+
return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default()(forwarded, WrappedComponent);
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default()(Connect, WrappedComponent);
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
/***/ }),
|
|
613
|
+
|
|
614
|
+
/***/ "./node_modules/react-redux/es/connect/connect.js":
|
|
615
|
+
/*!********************************************************!*\
|
|
616
|
+
!*** ./node_modules/react-redux/es/connect/connect.js ***!
|
|
617
|
+
\********************************************************/
|
|
618
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
619
|
+
|
|
620
|
+
__webpack_require__.r(__webpack_exports__);
|
|
621
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
622
|
+
/* harmony export */ "createConnect": () => (/* binding */ createConnect),
|
|
623
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
624
|
+
/* harmony export */ });
|
|
625
|
+
/* 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");
|
|
626
|
+
/* 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");
|
|
627
|
+
/* harmony import */ var _components_connectAdvanced__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/connectAdvanced */ "./node_modules/react-redux/es/components/connectAdvanced.js");
|
|
628
|
+
/* harmony import */ var _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/shallowEqual */ "./node_modules/react-redux/es/utils/shallowEqual.js");
|
|
629
|
+
/* harmony import */ var _mapDispatchToProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mapDispatchToProps */ "./node_modules/react-redux/es/connect/mapDispatchToProps.js");
|
|
630
|
+
/* harmony import */ var _mapStateToProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./mapStateToProps */ "./node_modules/react-redux/es/connect/mapStateToProps.js");
|
|
631
|
+
/* harmony import */ var _mergeProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./mergeProps */ "./node_modules/react-redux/es/connect/mergeProps.js");
|
|
632
|
+
/* harmony import */ var _selectorFactory__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./selectorFactory */ "./node_modules/react-redux/es/connect/selectorFactory.js");
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
var _excluded = ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"];
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
/*
|
|
643
|
+
connect is a facade over connectAdvanced. It turns its args into a compatible
|
|
644
|
+
selectorFactory, which has the signature:
|
|
645
|
+
|
|
646
|
+
(dispatch, options) => (nextState, nextOwnProps) => nextFinalProps
|
|
647
|
+
|
|
648
|
+
connect passes its args to connectAdvanced as options, which will in turn pass them to
|
|
649
|
+
selectorFactory each time a Connect component instance is instantiated or hot reloaded.
|
|
650
|
+
|
|
651
|
+
selectorFactory returns a final props selector from its mapStateToProps,
|
|
652
|
+
mapStateToPropsFactories, mapDispatchToProps, mapDispatchToPropsFactories, mergeProps,
|
|
653
|
+
mergePropsFactories, and pure args.
|
|
654
|
+
|
|
655
|
+
The resulting final props selector is called by the Connect component instance whenever
|
|
656
|
+
it receives new props or store state.
|
|
657
|
+
*/
|
|
658
|
+
|
|
659
|
+
function match(arg, factories, name) {
|
|
660
|
+
for (var i = factories.length - 1; i >= 0; i--) {
|
|
661
|
+
var result = factories[i](arg);
|
|
662
|
+
if (result) return result;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
return function (dispatch, options) {
|
|
666
|
+
throw new Error("Invalid value of type " + typeof arg + " for " + name + " argument when connecting component " + options.wrappedComponentName + ".");
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
function strictEqual(a, b) {
|
|
671
|
+
return a === b;
|
|
672
|
+
} // createConnect with default args builds the 'official' connect behavior. Calling it with
|
|
673
|
+
// different options opens up some testing and extensibility scenarios
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
function createConnect(_temp) {
|
|
677
|
+
var _ref = _temp === void 0 ? {} : _temp,
|
|
678
|
+
_ref$connectHOC = _ref.connectHOC,
|
|
679
|
+
connectHOC = _ref$connectHOC === void 0 ? _components_connectAdvanced__WEBPACK_IMPORTED_MODULE_2__.default : _ref$connectHOC,
|
|
680
|
+
_ref$mapStateToPropsF = _ref.mapStateToPropsFactories,
|
|
681
|
+
mapStateToPropsFactories = _ref$mapStateToPropsF === void 0 ? _mapStateToProps__WEBPACK_IMPORTED_MODULE_5__.default : _ref$mapStateToPropsF,
|
|
682
|
+
_ref$mapDispatchToPro = _ref.mapDispatchToPropsFactories,
|
|
683
|
+
mapDispatchToPropsFactories = _ref$mapDispatchToPro === void 0 ? _mapDispatchToProps__WEBPACK_IMPORTED_MODULE_4__.default : _ref$mapDispatchToPro,
|
|
684
|
+
_ref$mergePropsFactor = _ref.mergePropsFactories,
|
|
685
|
+
mergePropsFactories = _ref$mergePropsFactor === void 0 ? _mergeProps__WEBPACK_IMPORTED_MODULE_6__.default : _ref$mergePropsFactor,
|
|
686
|
+
_ref$selectorFactory = _ref.selectorFactory,
|
|
687
|
+
selectorFactory = _ref$selectorFactory === void 0 ? _selectorFactory__WEBPACK_IMPORTED_MODULE_7__.default : _ref$selectorFactory;
|
|
688
|
+
|
|
689
|
+
return function connect(mapStateToProps, mapDispatchToProps, mergeProps, _ref2) {
|
|
690
|
+
if (_ref2 === void 0) {
|
|
691
|
+
_ref2 = {};
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
var _ref3 = _ref2,
|
|
695
|
+
_ref3$pure = _ref3.pure,
|
|
696
|
+
pure = _ref3$pure === void 0 ? true : _ref3$pure,
|
|
697
|
+
_ref3$areStatesEqual = _ref3.areStatesEqual,
|
|
698
|
+
areStatesEqual = _ref3$areStatesEqual === void 0 ? strictEqual : _ref3$areStatesEqual,
|
|
699
|
+
_ref3$areOwnPropsEqua = _ref3.areOwnPropsEqual,
|
|
700
|
+
areOwnPropsEqual = _ref3$areOwnPropsEqua === void 0 ? _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_3__.default : _ref3$areOwnPropsEqua,
|
|
701
|
+
_ref3$areStatePropsEq = _ref3.areStatePropsEqual,
|
|
702
|
+
areStatePropsEqual = _ref3$areStatePropsEq === void 0 ? _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_3__.default : _ref3$areStatePropsEq,
|
|
703
|
+
_ref3$areMergedPropsE = _ref3.areMergedPropsEqual,
|
|
704
|
+
areMergedPropsEqual = _ref3$areMergedPropsE === void 0 ? _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_3__.default : _ref3$areMergedPropsE,
|
|
705
|
+
extraOptions = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__.default)(_ref3, _excluded);
|
|
706
|
+
|
|
707
|
+
var initMapStateToProps = match(mapStateToProps, mapStateToPropsFactories, 'mapStateToProps');
|
|
708
|
+
var initMapDispatchToProps = match(mapDispatchToProps, mapDispatchToPropsFactories, 'mapDispatchToProps');
|
|
709
|
+
var initMergeProps = match(mergeProps, mergePropsFactories, 'mergeProps');
|
|
710
|
+
return connectHOC(selectorFactory, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({
|
|
711
|
+
// used in error messages
|
|
712
|
+
methodName: 'connect',
|
|
713
|
+
// used to compute Connect's displayName from the wrapped component's displayName.
|
|
714
|
+
getDisplayName: function getDisplayName(name) {
|
|
715
|
+
return "Connect(" + name + ")";
|
|
716
|
+
},
|
|
717
|
+
// if mapStateToProps is falsy, the Connect component doesn't subscribe to store state changes
|
|
718
|
+
shouldHandleStateChanges: Boolean(mapStateToProps),
|
|
719
|
+
// passed through to selectorFactory
|
|
720
|
+
initMapStateToProps: initMapStateToProps,
|
|
721
|
+
initMapDispatchToProps: initMapDispatchToProps,
|
|
722
|
+
initMergeProps: initMergeProps,
|
|
723
|
+
pure: pure,
|
|
724
|
+
areStatesEqual: areStatesEqual,
|
|
725
|
+
areOwnPropsEqual: areOwnPropsEqual,
|
|
726
|
+
areStatePropsEqual: areStatePropsEqual,
|
|
727
|
+
areMergedPropsEqual: areMergedPropsEqual
|
|
728
|
+
}, extraOptions));
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (/*#__PURE__*/createConnect());
|
|
732
|
+
|
|
733
|
+
/***/ }),
|
|
734
|
+
|
|
735
|
+
/***/ "./node_modules/react-redux/es/connect/mapDispatchToProps.js":
|
|
736
|
+
/*!*******************************************************************!*\
|
|
737
|
+
!*** ./node_modules/react-redux/es/connect/mapDispatchToProps.js ***!
|
|
738
|
+
\*******************************************************************/
|
|
739
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
740
|
+
|
|
741
|
+
__webpack_require__.r(__webpack_exports__);
|
|
742
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
743
|
+
/* harmony export */ "whenMapDispatchToPropsIsFunction": () => (/* binding */ whenMapDispatchToPropsIsFunction),
|
|
744
|
+
/* harmony export */ "whenMapDispatchToPropsIsMissing": () => (/* binding */ whenMapDispatchToPropsIsMissing),
|
|
745
|
+
/* harmony export */ "whenMapDispatchToPropsIsObject": () => (/* binding */ whenMapDispatchToPropsIsObject),
|
|
746
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
747
|
+
/* harmony export */ });
|
|
748
|
+
/* harmony import */ var _utils_bindActionCreators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/bindActionCreators */ "./node_modules/react-redux/es/utils/bindActionCreators.js");
|
|
749
|
+
/* harmony import */ var _wrapMapToProps__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./wrapMapToProps */ "./node_modules/react-redux/es/connect/wrapMapToProps.js");
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
function whenMapDispatchToPropsIsFunction(mapDispatchToProps) {
|
|
753
|
+
return typeof mapDispatchToProps === 'function' ? (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_1__.wrapMapToPropsFunc)(mapDispatchToProps, 'mapDispatchToProps') : undefined;
|
|
754
|
+
}
|
|
755
|
+
function whenMapDispatchToPropsIsMissing(mapDispatchToProps) {
|
|
756
|
+
return !mapDispatchToProps ? (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_1__.wrapMapToPropsConstant)(function (dispatch) {
|
|
757
|
+
return {
|
|
758
|
+
dispatch: dispatch
|
|
759
|
+
};
|
|
760
|
+
}) : undefined;
|
|
761
|
+
}
|
|
762
|
+
function whenMapDispatchToPropsIsObject(mapDispatchToProps) {
|
|
763
|
+
return mapDispatchToProps && typeof mapDispatchToProps === 'object' ? (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_1__.wrapMapToPropsConstant)(function (dispatch) {
|
|
764
|
+
return (0,_utils_bindActionCreators__WEBPACK_IMPORTED_MODULE_0__.default)(mapDispatchToProps, dispatch);
|
|
765
|
+
}) : undefined;
|
|
766
|
+
}
|
|
767
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ([whenMapDispatchToPropsIsFunction, whenMapDispatchToPropsIsMissing, whenMapDispatchToPropsIsObject]);
|
|
768
|
+
|
|
769
|
+
/***/ }),
|
|
770
|
+
|
|
771
|
+
/***/ "./node_modules/react-redux/es/connect/mapStateToProps.js":
|
|
772
|
+
/*!****************************************************************!*\
|
|
773
|
+
!*** ./node_modules/react-redux/es/connect/mapStateToProps.js ***!
|
|
774
|
+
\****************************************************************/
|
|
775
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
776
|
+
|
|
777
|
+
__webpack_require__.r(__webpack_exports__);
|
|
778
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
779
|
+
/* harmony export */ "whenMapStateToPropsIsFunction": () => (/* binding */ whenMapStateToPropsIsFunction),
|
|
780
|
+
/* harmony export */ "whenMapStateToPropsIsMissing": () => (/* binding */ whenMapStateToPropsIsMissing),
|
|
781
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
782
|
+
/* harmony export */ });
|
|
783
|
+
/* harmony import */ var _wrapMapToProps__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./wrapMapToProps */ "./node_modules/react-redux/es/connect/wrapMapToProps.js");
|
|
784
|
+
|
|
785
|
+
function whenMapStateToPropsIsFunction(mapStateToProps) {
|
|
786
|
+
return typeof mapStateToProps === 'function' ? (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_0__.wrapMapToPropsFunc)(mapStateToProps, 'mapStateToProps') : undefined;
|
|
787
|
+
}
|
|
788
|
+
function whenMapStateToPropsIsMissing(mapStateToProps) {
|
|
789
|
+
return !mapStateToProps ? (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_0__.wrapMapToPropsConstant)(function () {
|
|
790
|
+
return {};
|
|
791
|
+
}) : undefined;
|
|
792
|
+
}
|
|
793
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ([whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing]);
|
|
794
|
+
|
|
795
|
+
/***/ }),
|
|
796
|
+
|
|
797
|
+
/***/ "./node_modules/react-redux/es/connect/mergeProps.js":
|
|
798
|
+
/*!***********************************************************!*\
|
|
799
|
+
!*** ./node_modules/react-redux/es/connect/mergeProps.js ***!
|
|
800
|
+
\***********************************************************/
|
|
801
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
802
|
+
|
|
803
|
+
__webpack_require__.r(__webpack_exports__);
|
|
804
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
805
|
+
/* harmony export */ "defaultMergeProps": () => (/* binding */ defaultMergeProps),
|
|
806
|
+
/* harmony export */ "wrapMergePropsFunc": () => (/* binding */ wrapMergePropsFunc),
|
|
807
|
+
/* harmony export */ "whenMergePropsIsFunction": () => (/* binding */ whenMergePropsIsFunction),
|
|
808
|
+
/* harmony export */ "whenMergePropsIsOmitted": () => (/* binding */ whenMergePropsIsOmitted),
|
|
809
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
810
|
+
/* harmony export */ });
|
|
811
|
+
/* 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");
|
|
812
|
+
/* harmony import */ var _utils_verifyPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/verifyPlainObject */ "./node_modules/react-redux/es/utils/verifyPlainObject.js");
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
function defaultMergeProps(stateProps, dispatchProps, ownProps) {
|
|
816
|
+
return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, ownProps, stateProps, dispatchProps);
|
|
817
|
+
}
|
|
818
|
+
function wrapMergePropsFunc(mergeProps) {
|
|
819
|
+
return function initMergePropsProxy(dispatch, _ref) {
|
|
820
|
+
var displayName = _ref.displayName,
|
|
821
|
+
pure = _ref.pure,
|
|
822
|
+
areMergedPropsEqual = _ref.areMergedPropsEqual;
|
|
823
|
+
var hasRunOnce = false;
|
|
824
|
+
var mergedProps;
|
|
825
|
+
return function mergePropsProxy(stateProps, dispatchProps, ownProps) {
|
|
826
|
+
var nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps);
|
|
827
|
+
|
|
828
|
+
if (hasRunOnce) {
|
|
829
|
+
if (!pure || !areMergedPropsEqual(nextMergedProps, mergedProps)) mergedProps = nextMergedProps;
|
|
830
|
+
} else {
|
|
831
|
+
hasRunOnce = true;
|
|
832
|
+
mergedProps = nextMergedProps;
|
|
833
|
+
if (true) (0,_utils_verifyPlainObject__WEBPACK_IMPORTED_MODULE_1__.default)(mergedProps, displayName, 'mergeProps');
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
return mergedProps;
|
|
837
|
+
};
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
function whenMergePropsIsFunction(mergeProps) {
|
|
841
|
+
return typeof mergeProps === 'function' ? wrapMergePropsFunc(mergeProps) : undefined;
|
|
842
|
+
}
|
|
843
|
+
function whenMergePropsIsOmitted(mergeProps) {
|
|
844
|
+
return !mergeProps ? function () {
|
|
845
|
+
return defaultMergeProps;
|
|
846
|
+
} : undefined;
|
|
847
|
+
}
|
|
848
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ([whenMergePropsIsFunction, whenMergePropsIsOmitted]);
|
|
849
|
+
|
|
850
|
+
/***/ }),
|
|
851
|
+
|
|
852
|
+
/***/ "./node_modules/react-redux/es/connect/selectorFactory.js":
|
|
853
|
+
/*!****************************************************************!*\
|
|
854
|
+
!*** ./node_modules/react-redux/es/connect/selectorFactory.js ***!
|
|
855
|
+
\****************************************************************/
|
|
856
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
857
|
+
|
|
858
|
+
__webpack_require__.r(__webpack_exports__);
|
|
859
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
860
|
+
/* harmony export */ "impureFinalPropsSelectorFactory": () => (/* binding */ impureFinalPropsSelectorFactory),
|
|
861
|
+
/* harmony export */ "pureFinalPropsSelectorFactory": () => (/* binding */ pureFinalPropsSelectorFactory),
|
|
862
|
+
/* harmony export */ "default": () => (/* binding */ finalPropsSelectorFactory)
|
|
863
|
+
/* harmony export */ });
|
|
864
|
+
/* 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");
|
|
865
|
+
/* harmony import */ var _verifySubselectors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./verifySubselectors */ "./node_modules/react-redux/es/connect/verifySubselectors.js");
|
|
866
|
+
|
|
867
|
+
var _excluded = ["initMapStateToProps", "initMapDispatchToProps", "initMergeProps"];
|
|
868
|
+
|
|
869
|
+
function impureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch) {
|
|
870
|
+
return function impureFinalPropsSelector(state, ownProps) {
|
|
871
|
+
return mergeProps(mapStateToProps(state, ownProps), mapDispatchToProps(dispatch, ownProps), ownProps);
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
function pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, _ref) {
|
|
875
|
+
var areStatesEqual = _ref.areStatesEqual,
|
|
876
|
+
areOwnPropsEqual = _ref.areOwnPropsEqual,
|
|
877
|
+
areStatePropsEqual = _ref.areStatePropsEqual;
|
|
878
|
+
var hasRunAtLeastOnce = false;
|
|
879
|
+
var state;
|
|
880
|
+
var ownProps;
|
|
881
|
+
var stateProps;
|
|
882
|
+
var dispatchProps;
|
|
883
|
+
var mergedProps;
|
|
884
|
+
|
|
885
|
+
function handleFirstCall(firstState, firstOwnProps) {
|
|
886
|
+
state = firstState;
|
|
887
|
+
ownProps = firstOwnProps;
|
|
888
|
+
stateProps = mapStateToProps(state, ownProps);
|
|
889
|
+
dispatchProps = mapDispatchToProps(dispatch, ownProps);
|
|
890
|
+
mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
|
|
891
|
+
hasRunAtLeastOnce = true;
|
|
892
|
+
return mergedProps;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
function handleNewPropsAndNewState() {
|
|
896
|
+
stateProps = mapStateToProps(state, ownProps);
|
|
897
|
+
if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
|
|
898
|
+
mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
|
|
899
|
+
return mergedProps;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
function handleNewProps() {
|
|
903
|
+
if (mapStateToProps.dependsOnOwnProps) stateProps = mapStateToProps(state, ownProps);
|
|
904
|
+
if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
|
|
905
|
+
mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
|
|
906
|
+
return mergedProps;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
function handleNewState() {
|
|
910
|
+
var nextStateProps = mapStateToProps(state, ownProps);
|
|
911
|
+
var statePropsChanged = !areStatePropsEqual(nextStateProps, stateProps);
|
|
912
|
+
stateProps = nextStateProps;
|
|
913
|
+
if (statePropsChanged) mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
|
|
914
|
+
return mergedProps;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
function handleSubsequentCalls(nextState, nextOwnProps) {
|
|
918
|
+
var propsChanged = !areOwnPropsEqual(nextOwnProps, ownProps);
|
|
919
|
+
var stateChanged = !areStatesEqual(nextState, state);
|
|
920
|
+
state = nextState;
|
|
921
|
+
ownProps = nextOwnProps;
|
|
922
|
+
if (propsChanged && stateChanged) return handleNewPropsAndNewState();
|
|
923
|
+
if (propsChanged) return handleNewProps();
|
|
924
|
+
if (stateChanged) return handleNewState();
|
|
925
|
+
return mergedProps;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
return function pureFinalPropsSelector(nextState, nextOwnProps) {
|
|
929
|
+
return hasRunAtLeastOnce ? handleSubsequentCalls(nextState, nextOwnProps) : handleFirstCall(nextState, nextOwnProps);
|
|
930
|
+
};
|
|
931
|
+
} // TODO: Add more comments
|
|
932
|
+
// If pure is true, the selector returned by selectorFactory will memoize its results,
|
|
933
|
+
// allowing connectAdvanced's shouldComponentUpdate to return false if final
|
|
934
|
+
// props have not changed. If false, the selector will always return a new
|
|
935
|
+
// object and shouldComponentUpdate will always return true.
|
|
936
|
+
|
|
937
|
+
function finalPropsSelectorFactory(dispatch, _ref2) {
|
|
938
|
+
var initMapStateToProps = _ref2.initMapStateToProps,
|
|
939
|
+
initMapDispatchToProps = _ref2.initMapDispatchToProps,
|
|
940
|
+
initMergeProps = _ref2.initMergeProps,
|
|
941
|
+
options = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__.default)(_ref2, _excluded);
|
|
942
|
+
|
|
943
|
+
var mapStateToProps = initMapStateToProps(dispatch, options);
|
|
944
|
+
var mapDispatchToProps = initMapDispatchToProps(dispatch, options);
|
|
945
|
+
var mergeProps = initMergeProps(dispatch, options);
|
|
946
|
+
|
|
947
|
+
if (true) {
|
|
948
|
+
(0,_verifySubselectors__WEBPACK_IMPORTED_MODULE_1__.default)(mapStateToProps, mapDispatchToProps, mergeProps, options.displayName);
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
var selectorFactory = options.pure ? pureFinalPropsSelectorFactory : impureFinalPropsSelectorFactory;
|
|
952
|
+
return selectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
/***/ }),
|
|
956
|
+
|
|
957
|
+
/***/ "./node_modules/react-redux/es/connect/verifySubselectors.js":
|
|
958
|
+
/*!*******************************************************************!*\
|
|
959
|
+
!*** ./node_modules/react-redux/es/connect/verifySubselectors.js ***!
|
|
960
|
+
\*******************************************************************/
|
|
961
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
962
|
+
|
|
963
|
+
__webpack_require__.r(__webpack_exports__);
|
|
964
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
965
|
+
/* harmony export */ "default": () => (/* binding */ verifySubselectors)
|
|
966
|
+
/* harmony export */ });
|
|
967
|
+
/* harmony import */ var _utils_warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/warning */ "./node_modules/react-redux/es/utils/warning.js");
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
function verify(selector, methodName, displayName) {
|
|
971
|
+
if (!selector) {
|
|
972
|
+
throw new Error("Unexpected value for " + methodName + " in " + displayName + ".");
|
|
973
|
+
} else if (methodName === 'mapStateToProps' || methodName === 'mapDispatchToProps') {
|
|
974
|
+
if (!Object.prototype.hasOwnProperty.call(selector, 'dependsOnOwnProps')) {
|
|
975
|
+
(0,_utils_warning__WEBPACK_IMPORTED_MODULE_0__.default)("The selector for " + methodName + " of " + displayName + " did not specify a value for dependsOnOwnProps.");
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
function verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps, displayName) {
|
|
981
|
+
verify(mapStateToProps, 'mapStateToProps', displayName);
|
|
982
|
+
verify(mapDispatchToProps, 'mapDispatchToProps', displayName);
|
|
983
|
+
verify(mergeProps, 'mergeProps', displayName);
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
/***/ }),
|
|
987
|
+
|
|
988
|
+
/***/ "./node_modules/react-redux/es/connect/wrapMapToProps.js":
|
|
989
|
+
/*!***************************************************************!*\
|
|
990
|
+
!*** ./node_modules/react-redux/es/connect/wrapMapToProps.js ***!
|
|
991
|
+
\***************************************************************/
|
|
992
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
993
|
+
|
|
994
|
+
__webpack_require__.r(__webpack_exports__);
|
|
995
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
996
|
+
/* harmony export */ "wrapMapToPropsConstant": () => (/* binding */ wrapMapToPropsConstant),
|
|
997
|
+
/* harmony export */ "getDependsOnOwnProps": () => (/* binding */ getDependsOnOwnProps),
|
|
998
|
+
/* harmony export */ "wrapMapToPropsFunc": () => (/* binding */ wrapMapToPropsFunc)
|
|
999
|
+
/* harmony export */ });
|
|
1000
|
+
/* harmony import */ var _utils_verifyPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/verifyPlainObject */ "./node_modules/react-redux/es/utils/verifyPlainObject.js");
|
|
1001
|
+
|
|
1002
|
+
function wrapMapToPropsConstant(getConstant) {
|
|
1003
|
+
return function initConstantSelector(dispatch, options) {
|
|
1004
|
+
var constant = getConstant(dispatch, options);
|
|
1005
|
+
|
|
1006
|
+
function constantSelector() {
|
|
1007
|
+
return constant;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
constantSelector.dependsOnOwnProps = false;
|
|
1011
|
+
return constantSelector;
|
|
1012
|
+
};
|
|
1013
|
+
} // dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args
|
|
1014
|
+
// to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine
|
|
1015
|
+
// whether mapToProps needs to be invoked when props have changed.
|
|
1016
|
+
//
|
|
1017
|
+
// A length of one signals that mapToProps does not depend on props from the parent component.
|
|
1018
|
+
// A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and
|
|
1019
|
+
// therefore not reporting its length accurately..
|
|
1020
|
+
|
|
1021
|
+
function getDependsOnOwnProps(mapToProps) {
|
|
1022
|
+
return mapToProps.dependsOnOwnProps !== null && mapToProps.dependsOnOwnProps !== undefined ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;
|
|
1023
|
+
} // Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction,
|
|
1024
|
+
// this function wraps mapToProps in a proxy function which does several things:
|
|
1025
|
+
//
|
|
1026
|
+
// * Detects whether the mapToProps function being called depends on props, which
|
|
1027
|
+
// is used by selectorFactory to decide if it should reinvoke on props changes.
|
|
1028
|
+
//
|
|
1029
|
+
// * On first call, handles mapToProps if returns another function, and treats that
|
|
1030
|
+
// new function as the true mapToProps for subsequent calls.
|
|
1031
|
+
//
|
|
1032
|
+
// * On first call, verifies the first result is a plain object, in order to warn
|
|
1033
|
+
// the developer that their mapToProps function is not returning a valid result.
|
|
1034
|
+
//
|
|
1035
|
+
|
|
1036
|
+
function wrapMapToPropsFunc(mapToProps, methodName) {
|
|
1037
|
+
return function initProxySelector(dispatch, _ref) {
|
|
1038
|
+
var displayName = _ref.displayName;
|
|
1039
|
+
|
|
1040
|
+
var proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {
|
|
1041
|
+
return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch);
|
|
1042
|
+
}; // allow detectFactoryAndVerify to get ownProps
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
proxy.dependsOnOwnProps = true;
|
|
1046
|
+
|
|
1047
|
+
proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {
|
|
1048
|
+
proxy.mapToProps = mapToProps;
|
|
1049
|
+
proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);
|
|
1050
|
+
var props = proxy(stateOrDispatch, ownProps);
|
|
1051
|
+
|
|
1052
|
+
if (typeof props === 'function') {
|
|
1053
|
+
proxy.mapToProps = props;
|
|
1054
|
+
proxy.dependsOnOwnProps = getDependsOnOwnProps(props);
|
|
1055
|
+
props = proxy(stateOrDispatch, ownProps);
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
if (true) (0,_utils_verifyPlainObject__WEBPACK_IMPORTED_MODULE_0__.default)(props, displayName, methodName);
|
|
1059
|
+
return props;
|
|
1060
|
+
};
|
|
1061
|
+
|
|
1062
|
+
return proxy;
|
|
1063
|
+
};
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
/***/ }),
|
|
1067
|
+
|
|
1068
|
+
/***/ "./node_modules/react-redux/es/exports.js":
|
|
1069
|
+
/*!************************************************!*\
|
|
1070
|
+
!*** ./node_modules/react-redux/es/exports.js ***!
|
|
1071
|
+
\************************************************/
|
|
1072
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1073
|
+
|
|
1074
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1075
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1076
|
+
/* harmony export */ "Provider": () => (/* reexport safe */ _components_Provider__WEBPACK_IMPORTED_MODULE_0__.default),
|
|
1077
|
+
/* harmony export */ "connectAdvanced": () => (/* reexport safe */ _components_connectAdvanced__WEBPACK_IMPORTED_MODULE_1__.default),
|
|
1078
|
+
/* harmony export */ "ReactReduxContext": () => (/* reexport safe */ _components_Context__WEBPACK_IMPORTED_MODULE_2__.ReactReduxContext),
|
|
1079
|
+
/* harmony export */ "connect": () => (/* reexport safe */ _connect_connect__WEBPACK_IMPORTED_MODULE_3__.default),
|
|
1080
|
+
/* harmony export */ "useDispatch": () => (/* reexport safe */ _hooks_useDispatch__WEBPACK_IMPORTED_MODULE_4__.useDispatch),
|
|
1081
|
+
/* harmony export */ "createDispatchHook": () => (/* reexport safe */ _hooks_useDispatch__WEBPACK_IMPORTED_MODULE_4__.createDispatchHook),
|
|
1082
|
+
/* harmony export */ "useSelector": () => (/* reexport safe */ _hooks_useSelector__WEBPACK_IMPORTED_MODULE_5__.useSelector),
|
|
1083
|
+
/* harmony export */ "createSelectorHook": () => (/* reexport safe */ _hooks_useSelector__WEBPACK_IMPORTED_MODULE_5__.createSelectorHook),
|
|
1084
|
+
/* harmony export */ "useStore": () => (/* reexport safe */ _hooks_useStore__WEBPACK_IMPORTED_MODULE_6__.useStore),
|
|
1085
|
+
/* harmony export */ "createStoreHook": () => (/* reexport safe */ _hooks_useStore__WEBPACK_IMPORTED_MODULE_6__.createStoreHook),
|
|
1086
|
+
/* harmony export */ "shallowEqual": () => (/* reexport safe */ _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_7__.default)
|
|
1087
|
+
/* harmony export */ });
|
|
1088
|
+
/* harmony import */ var _components_Provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Provider */ "./node_modules/react-redux/es/components/Provider.js");
|
|
1089
|
+
/* harmony import */ var _components_connectAdvanced__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/connectAdvanced */ "./node_modules/react-redux/es/components/connectAdvanced.js");
|
|
1090
|
+
/* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/Context */ "./node_modules/react-redux/es/components/Context.js");
|
|
1091
|
+
/* harmony import */ var _connect_connect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./connect/connect */ "./node_modules/react-redux/es/connect/connect.js");
|
|
1092
|
+
/* harmony import */ var _hooks_useDispatch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hooks/useDispatch */ "./node_modules/react-redux/es/hooks/useDispatch.js");
|
|
1093
|
+
/* harmony import */ var _hooks_useSelector__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./hooks/useSelector */ "./node_modules/react-redux/es/hooks/useSelector.js");
|
|
1094
|
+
/* harmony import */ var _hooks_useStore__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./hooks/useStore */ "./node_modules/react-redux/es/hooks/useStore.js");
|
|
1095
|
+
/* harmony import */ var _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/shallowEqual */ "./node_modules/react-redux/es/utils/shallowEqual.js");
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
/***/ }),
|
|
1107
|
+
|
|
1108
|
+
/***/ "./node_modules/react-redux/es/hooks/useDispatch.js":
|
|
1109
|
+
/*!**********************************************************!*\
|
|
1110
|
+
!*** ./node_modules/react-redux/es/hooks/useDispatch.js ***!
|
|
1111
|
+
\**********************************************************/
|
|
1112
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1113
|
+
|
|
1114
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1115
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1116
|
+
/* harmony export */ "createDispatchHook": () => (/* binding */ createDispatchHook),
|
|
1117
|
+
/* harmony export */ "useDispatch": () => (/* binding */ useDispatch)
|
|
1118
|
+
/* harmony export */ });
|
|
1119
|
+
/* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/Context */ "./node_modules/react-redux/es/components/Context.js");
|
|
1120
|
+
/* harmony import */ var _useStore__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useStore */ "./node_modules/react-redux/es/hooks/useStore.js");
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* Hook factory, which creates a `useDispatch` hook bound to a given context.
|
|
1125
|
+
*
|
|
1126
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
1127
|
+
* @returns {Function} A `useDispatch` hook bound to the specified context.
|
|
1128
|
+
*/
|
|
1129
|
+
|
|
1130
|
+
function createDispatchHook(context) {
|
|
1131
|
+
if (context === void 0) {
|
|
1132
|
+
context = _components_Context__WEBPACK_IMPORTED_MODULE_0__.ReactReduxContext;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
var useStore = context === _components_Context__WEBPACK_IMPORTED_MODULE_0__.ReactReduxContext ? _useStore__WEBPACK_IMPORTED_MODULE_1__.useStore : (0,_useStore__WEBPACK_IMPORTED_MODULE_1__.createStoreHook)(context);
|
|
1136
|
+
return function useDispatch() {
|
|
1137
|
+
var store = useStore();
|
|
1138
|
+
return store.dispatch;
|
|
1139
|
+
};
|
|
1140
|
+
}
|
|
1141
|
+
/**
|
|
1142
|
+
* A hook to access the redux `dispatch` function.
|
|
1143
|
+
*
|
|
1144
|
+
* @returns {any|function} redux store's `dispatch` function
|
|
1145
|
+
*
|
|
1146
|
+
* @example
|
|
1147
|
+
*
|
|
1148
|
+
* import React, { useCallback } from 'react'
|
|
1149
|
+
* import { useDispatch } from 'react-redux'
|
|
1150
|
+
*
|
|
1151
|
+
* export const CounterComponent = ({ value }) => {
|
|
1152
|
+
* const dispatch = useDispatch()
|
|
1153
|
+
* const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
|
|
1154
|
+
* return (
|
|
1155
|
+
* <div>
|
|
1156
|
+
* <span>{value}</span>
|
|
1157
|
+
* <button onClick={increaseCounter}>Increase counter</button>
|
|
1158
|
+
* </div>
|
|
1159
|
+
* )
|
|
1160
|
+
* }
|
|
1161
|
+
*/
|
|
1162
|
+
|
|
1163
|
+
var useDispatch = /*#__PURE__*/createDispatchHook();
|
|
1164
|
+
|
|
1165
|
+
/***/ }),
|
|
1166
|
+
|
|
1167
|
+
/***/ "./node_modules/react-redux/es/hooks/useReduxContext.js":
|
|
1168
|
+
/*!**************************************************************!*\
|
|
1169
|
+
!*** ./node_modules/react-redux/es/hooks/useReduxContext.js ***!
|
|
1170
|
+
\**************************************************************/
|
|
1171
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1172
|
+
|
|
1173
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1174
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1175
|
+
/* harmony export */ "useReduxContext": () => (/* binding */ useReduxContext)
|
|
1176
|
+
/* harmony export */ });
|
|
1177
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?474c");
|
|
1178
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1179
|
+
/* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/Context */ "./node_modules/react-redux/es/components/Context.js");
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* A hook to access the value of the `ReactReduxContext`. This is a low-level
|
|
1184
|
+
* hook that you should usually not need to call directly.
|
|
1185
|
+
*
|
|
1186
|
+
* @returns {any} the value of the `ReactReduxContext`
|
|
1187
|
+
*
|
|
1188
|
+
* @example
|
|
1189
|
+
*
|
|
1190
|
+
* import React from 'react'
|
|
1191
|
+
* import { useReduxContext } from 'react-redux'
|
|
1192
|
+
*
|
|
1193
|
+
* export const CounterComponent = ({ value }) => {
|
|
1194
|
+
* const { store } = useReduxContext()
|
|
1195
|
+
* return <div>{store.getState()}</div>
|
|
1196
|
+
* }
|
|
1197
|
+
*/
|
|
1198
|
+
|
|
1199
|
+
function useReduxContext() {
|
|
1200
|
+
var contextValue = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_components_Context__WEBPACK_IMPORTED_MODULE_1__.ReactReduxContext);
|
|
1201
|
+
|
|
1202
|
+
if ( true && !contextValue) {
|
|
1203
|
+
throw new Error('could not find react-redux context value; please ensure the component is wrapped in a <Provider>');
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
return contextValue;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
/***/ }),
|
|
1210
|
+
|
|
1211
|
+
/***/ "./node_modules/react-redux/es/hooks/useSelector.js":
|
|
1212
|
+
/*!**********************************************************!*\
|
|
1213
|
+
!*** ./node_modules/react-redux/es/hooks/useSelector.js ***!
|
|
1214
|
+
\**********************************************************/
|
|
1215
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1216
|
+
|
|
1217
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1218
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1219
|
+
/* harmony export */ "createSelectorHook": () => (/* binding */ createSelectorHook),
|
|
1220
|
+
/* harmony export */ "useSelector": () => (/* binding */ useSelector)
|
|
1221
|
+
/* harmony export */ });
|
|
1222
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?474c");
|
|
1223
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1224
|
+
/* harmony import */ var _useReduxContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useReduxContext */ "./node_modules/react-redux/es/hooks/useReduxContext.js");
|
|
1225
|
+
/* harmony import */ var _utils_Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/Subscription */ "./node_modules/react-redux/es/utils/Subscription.js");
|
|
1226
|
+
/* harmony import */ var _utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/useIsomorphicLayoutEffect */ "./node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js");
|
|
1227
|
+
/* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/Context */ "./node_modules/react-redux/es/components/Context.js");
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
var refEquality = function refEquality(a, b) {
|
|
1235
|
+
return a === b;
|
|
1236
|
+
};
|
|
1237
|
+
|
|
1238
|
+
function useSelectorWithStoreAndSubscription(selector, equalityFn, store, contextSub) {
|
|
1239
|
+
var _useReducer = (0,react__WEBPACK_IMPORTED_MODULE_0__.useReducer)(function (s) {
|
|
1240
|
+
return s + 1;
|
|
1241
|
+
}, 0),
|
|
1242
|
+
forceRender = _useReducer[1];
|
|
1243
|
+
|
|
1244
|
+
var subscription = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
|
1245
|
+
return (0,_utils_Subscription__WEBPACK_IMPORTED_MODULE_2__.createSubscription)(store, contextSub);
|
|
1246
|
+
}, [store, contextSub]);
|
|
1247
|
+
var latestSubscriptionCallbackError = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
1248
|
+
var latestSelector = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
1249
|
+
var latestStoreState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
1250
|
+
var latestSelectedState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
1251
|
+
var storeState = store.getState();
|
|
1252
|
+
var selectedState;
|
|
1253
|
+
|
|
1254
|
+
try {
|
|
1255
|
+
if (selector !== latestSelector.current || storeState !== latestStoreState.current || latestSubscriptionCallbackError.current) {
|
|
1256
|
+
var newSelectedState = selector(storeState); // ensure latest selected state is reused so that a custom equality function can result in identical references
|
|
1257
|
+
|
|
1258
|
+
if (latestSelectedState.current === undefined || !equalityFn(newSelectedState, latestSelectedState.current)) {
|
|
1259
|
+
selectedState = newSelectedState;
|
|
1260
|
+
} else {
|
|
1261
|
+
selectedState = latestSelectedState.current;
|
|
1262
|
+
}
|
|
1263
|
+
} else {
|
|
1264
|
+
selectedState = latestSelectedState.current;
|
|
1265
|
+
}
|
|
1266
|
+
} catch (err) {
|
|
1267
|
+
if (latestSubscriptionCallbackError.current) {
|
|
1268
|
+
err.message += "\nThe error may be correlated with this previous error:\n" + latestSubscriptionCallbackError.current.stack + "\n\n";
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
throw err;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
(0,_utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__.useIsomorphicLayoutEffect)(function () {
|
|
1275
|
+
latestSelector.current = selector;
|
|
1276
|
+
latestStoreState.current = storeState;
|
|
1277
|
+
latestSelectedState.current = selectedState;
|
|
1278
|
+
latestSubscriptionCallbackError.current = undefined;
|
|
1279
|
+
});
|
|
1280
|
+
(0,_utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__.useIsomorphicLayoutEffect)(function () {
|
|
1281
|
+
function checkForUpdates() {
|
|
1282
|
+
try {
|
|
1283
|
+
var newStoreState = store.getState(); // Avoid calling selector multiple times if the store's state has not changed
|
|
1284
|
+
|
|
1285
|
+
if (newStoreState === latestStoreState.current) {
|
|
1286
|
+
return;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
var _newSelectedState = latestSelector.current(newStoreState);
|
|
1290
|
+
|
|
1291
|
+
if (equalityFn(_newSelectedState, latestSelectedState.current)) {
|
|
1292
|
+
return;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
latestSelectedState.current = _newSelectedState;
|
|
1296
|
+
latestStoreState.current = newStoreState;
|
|
1297
|
+
} catch (err) {
|
|
1298
|
+
// we ignore all errors here, since when the component
|
|
1299
|
+
// is re-rendered, the selectors are called again, and
|
|
1300
|
+
// will throw again, if neither props nor store state
|
|
1301
|
+
// changed
|
|
1302
|
+
latestSubscriptionCallbackError.current = err;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
forceRender();
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
subscription.onStateChange = checkForUpdates;
|
|
1309
|
+
subscription.trySubscribe();
|
|
1310
|
+
checkForUpdates();
|
|
1311
|
+
return function () {
|
|
1312
|
+
return subscription.tryUnsubscribe();
|
|
1313
|
+
};
|
|
1314
|
+
}, [store, subscription]);
|
|
1315
|
+
return selectedState;
|
|
1316
|
+
}
|
|
1317
|
+
/**
|
|
1318
|
+
* Hook factory, which creates a `useSelector` hook bound to a given context.
|
|
1319
|
+
*
|
|
1320
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
1321
|
+
* @returns {Function} A `useSelector` hook bound to the specified context.
|
|
1322
|
+
*/
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
function createSelectorHook(context) {
|
|
1326
|
+
if (context === void 0) {
|
|
1327
|
+
context = _components_Context__WEBPACK_IMPORTED_MODULE_4__.ReactReduxContext;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
var useReduxContext = context === _components_Context__WEBPACK_IMPORTED_MODULE_4__.ReactReduxContext ? _useReduxContext__WEBPACK_IMPORTED_MODULE_1__.useReduxContext : function () {
|
|
1331
|
+
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(context);
|
|
1332
|
+
};
|
|
1333
|
+
return function useSelector(selector, equalityFn) {
|
|
1334
|
+
if (equalityFn === void 0) {
|
|
1335
|
+
equalityFn = refEquality;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
if (true) {
|
|
1339
|
+
if (!selector) {
|
|
1340
|
+
throw new Error("You must pass a selector to useSelector");
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
if (typeof selector !== 'function') {
|
|
1344
|
+
throw new Error("You must pass a function as a selector to useSelector");
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
if (typeof equalityFn !== 'function') {
|
|
1348
|
+
throw new Error("You must pass a function as an equality function to useSelector");
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
var _useReduxContext = useReduxContext(),
|
|
1353
|
+
store = _useReduxContext.store,
|
|
1354
|
+
contextSub = _useReduxContext.subscription;
|
|
1355
|
+
|
|
1356
|
+
var selectedState = useSelectorWithStoreAndSubscription(selector, equalityFn, store, contextSub);
|
|
1357
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useDebugValue)(selectedState);
|
|
1358
|
+
return selectedState;
|
|
1359
|
+
};
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* A hook to access the redux store's state. This hook takes a selector function
|
|
1363
|
+
* as an argument. The selector is called with the store state.
|
|
1364
|
+
*
|
|
1365
|
+
* This hook takes an optional equality comparison function as the second parameter
|
|
1366
|
+
* that allows you to customize the way the selected state is compared to determine
|
|
1367
|
+
* whether the component needs to be re-rendered.
|
|
1368
|
+
*
|
|
1369
|
+
* @param {Function} selector the selector function
|
|
1370
|
+
* @param {Function=} equalityFn the function that will be used to determine equality
|
|
1371
|
+
*
|
|
1372
|
+
* @returns {any} the selected state
|
|
1373
|
+
*
|
|
1374
|
+
* @example
|
|
1375
|
+
*
|
|
1376
|
+
* import React from 'react'
|
|
1377
|
+
* import { useSelector } from 'react-redux'
|
|
1378
|
+
*
|
|
1379
|
+
* export const CounterComponent = () => {
|
|
1380
|
+
* const counter = useSelector(state => state.counter)
|
|
1381
|
+
* return <div>{counter}</div>
|
|
1382
|
+
* }
|
|
1383
|
+
*/
|
|
1384
|
+
|
|
1385
|
+
var useSelector = /*#__PURE__*/createSelectorHook();
|
|
1386
|
+
|
|
1387
|
+
/***/ }),
|
|
1388
|
+
|
|
1389
|
+
/***/ "./node_modules/react-redux/es/hooks/useStore.js":
|
|
1390
|
+
/*!*******************************************************!*\
|
|
1391
|
+
!*** ./node_modules/react-redux/es/hooks/useStore.js ***!
|
|
1392
|
+
\*******************************************************/
|
|
1393
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1394
|
+
|
|
1395
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1396
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1397
|
+
/* harmony export */ "createStoreHook": () => (/* binding */ createStoreHook),
|
|
1398
|
+
/* harmony export */ "useStore": () => (/* binding */ useStore)
|
|
1399
|
+
/* harmony export */ });
|
|
1400
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?474c");
|
|
1401
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1402
|
+
/* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/Context */ "./node_modules/react-redux/es/components/Context.js");
|
|
1403
|
+
/* harmony import */ var _useReduxContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useReduxContext */ "./node_modules/react-redux/es/hooks/useReduxContext.js");
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* Hook factory, which creates a `useStore` hook bound to a given context.
|
|
1409
|
+
*
|
|
1410
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
1411
|
+
* @returns {Function} A `useStore` hook bound to the specified context.
|
|
1412
|
+
*/
|
|
1413
|
+
|
|
1414
|
+
function createStoreHook(context) {
|
|
1415
|
+
if (context === void 0) {
|
|
1416
|
+
context = _components_Context__WEBPACK_IMPORTED_MODULE_1__.ReactReduxContext;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
var useReduxContext = context === _components_Context__WEBPACK_IMPORTED_MODULE_1__.ReactReduxContext ? _useReduxContext__WEBPACK_IMPORTED_MODULE_2__.useReduxContext : function () {
|
|
1420
|
+
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(context);
|
|
1421
|
+
};
|
|
1422
|
+
return function useStore() {
|
|
1423
|
+
var _useReduxContext = useReduxContext(),
|
|
1424
|
+
store = _useReduxContext.store;
|
|
1425
|
+
|
|
1426
|
+
return store;
|
|
1427
|
+
};
|
|
1428
|
+
}
|
|
1429
|
+
/**
|
|
1430
|
+
* A hook to access the redux store.
|
|
1431
|
+
*
|
|
1432
|
+
* @returns {any} the redux store
|
|
1433
|
+
*
|
|
1434
|
+
* @example
|
|
1435
|
+
*
|
|
1436
|
+
* import React from 'react'
|
|
1437
|
+
* import { useStore } from 'react-redux'
|
|
1438
|
+
*
|
|
1439
|
+
* export const ExampleComponent = () => {
|
|
1440
|
+
* const store = useStore()
|
|
1441
|
+
* return <div>{store.getState()}</div>
|
|
1442
|
+
* }
|
|
1443
|
+
*/
|
|
1444
|
+
|
|
1445
|
+
var useStore = /*#__PURE__*/createStoreHook();
|
|
1446
|
+
|
|
1447
|
+
/***/ }),
|
|
1448
|
+
|
|
1449
|
+
/***/ "./node_modules/react-redux/es/index.js":
|
|
1450
|
+
/*!**********************************************!*\
|
|
1451
|
+
!*** ./node_modules/react-redux/es/index.js ***!
|
|
1452
|
+
\**********************************************/
|
|
1453
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1454
|
+
|
|
1455
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1456
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1457
|
+
/* harmony export */ "Provider": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_0__.Provider),
|
|
1458
|
+
/* harmony export */ "ReactReduxContext": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_0__.ReactReduxContext),
|
|
1459
|
+
/* harmony export */ "connect": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_0__.connect),
|
|
1460
|
+
/* harmony export */ "connectAdvanced": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_0__.connectAdvanced),
|
|
1461
|
+
/* harmony export */ "createDispatchHook": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_0__.createDispatchHook),
|
|
1462
|
+
/* harmony export */ "createSelectorHook": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_0__.createSelectorHook),
|
|
1463
|
+
/* harmony export */ "createStoreHook": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_0__.createStoreHook),
|
|
1464
|
+
/* harmony export */ "shallowEqual": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_0__.shallowEqual),
|
|
1465
|
+
/* harmony export */ "useDispatch": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_0__.useDispatch),
|
|
1466
|
+
/* harmony export */ "useSelector": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_0__.useSelector),
|
|
1467
|
+
/* harmony export */ "useStore": () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_0__.useStore),
|
|
1468
|
+
/* harmony export */ "batch": () => (/* reexport safe */ _utils_reactBatchedUpdates__WEBPACK_IMPORTED_MODULE_1__.unstable_batchedUpdates)
|
|
1469
|
+
/* harmony export */ });
|
|
1470
|
+
/* harmony import */ var _exports__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exports */ "./node_modules/react-redux/es/exports.js");
|
|
1471
|
+
/* harmony import */ var _utils_reactBatchedUpdates__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils/reactBatchedUpdates */ "./node_modules/react-redux/es/utils/reactBatchedUpdates.js");
|
|
1472
|
+
/* harmony import */ var _utils_batch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/batch */ "./node_modules/react-redux/es/utils/batch.js");
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
// Enable batched updates in our subscriptions for use
|
|
1476
|
+
// with standard React renderers (ReactDOM, React Native)
|
|
1477
|
+
|
|
1478
|
+
(0,_utils_batch__WEBPACK_IMPORTED_MODULE_2__.setBatch)(_utils_reactBatchedUpdates__WEBPACK_IMPORTED_MODULE_1__.unstable_batchedUpdates);
|
|
1479
|
+
|
|
1480
|
+
|
|
1481
|
+
/***/ }),
|
|
1482
|
+
|
|
1483
|
+
/***/ "./node_modules/react-redux/es/utils/Subscription.js":
|
|
1484
|
+
/*!***********************************************************!*\
|
|
1485
|
+
!*** ./node_modules/react-redux/es/utils/Subscription.js ***!
|
|
1486
|
+
\***********************************************************/
|
|
1487
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1488
|
+
|
|
1489
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1490
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1491
|
+
/* harmony export */ "createSubscription": () => (/* binding */ createSubscription)
|
|
1492
|
+
/* harmony export */ });
|
|
1493
|
+
/* harmony import */ var _batch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./batch */ "./node_modules/react-redux/es/utils/batch.js");
|
|
1494
|
+
// encapsulates the subscription logic for connecting a component to the redux store, as
|
|
1495
|
+
// well as nesting subscriptions of descendant components, so that we can ensure the
|
|
1496
|
+
// ancestor components re-render before descendants
|
|
1497
|
+
|
|
1498
|
+
function createListenerCollection() {
|
|
1499
|
+
var batch = (0,_batch__WEBPACK_IMPORTED_MODULE_0__.getBatch)();
|
|
1500
|
+
var first = null;
|
|
1501
|
+
var last = null;
|
|
1502
|
+
return {
|
|
1503
|
+
clear: function clear() {
|
|
1504
|
+
first = null;
|
|
1505
|
+
last = null;
|
|
1506
|
+
},
|
|
1507
|
+
notify: function notify() {
|
|
1508
|
+
batch(function () {
|
|
1509
|
+
var listener = first;
|
|
1510
|
+
|
|
1511
|
+
while (listener) {
|
|
1512
|
+
listener.callback();
|
|
1513
|
+
listener = listener.next;
|
|
1514
|
+
}
|
|
1515
|
+
});
|
|
1516
|
+
},
|
|
1517
|
+
get: function get() {
|
|
1518
|
+
var listeners = [];
|
|
1519
|
+
var listener = first;
|
|
1520
|
+
|
|
1521
|
+
while (listener) {
|
|
1522
|
+
listeners.push(listener);
|
|
1523
|
+
listener = listener.next;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
return listeners;
|
|
1527
|
+
},
|
|
1528
|
+
subscribe: function subscribe(callback) {
|
|
1529
|
+
var isSubscribed = true;
|
|
1530
|
+
var listener = last = {
|
|
1531
|
+
callback: callback,
|
|
1532
|
+
next: null,
|
|
1533
|
+
prev: last
|
|
1534
|
+
};
|
|
1535
|
+
|
|
1536
|
+
if (listener.prev) {
|
|
1537
|
+
listener.prev.next = listener;
|
|
1538
|
+
} else {
|
|
1539
|
+
first = listener;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
return function unsubscribe() {
|
|
1543
|
+
if (!isSubscribed || first === null) return;
|
|
1544
|
+
isSubscribed = false;
|
|
1545
|
+
|
|
1546
|
+
if (listener.next) {
|
|
1547
|
+
listener.next.prev = listener.prev;
|
|
1548
|
+
} else {
|
|
1549
|
+
last = listener.prev;
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
if (listener.prev) {
|
|
1553
|
+
listener.prev.next = listener.next;
|
|
1554
|
+
} else {
|
|
1555
|
+
first = listener.next;
|
|
1556
|
+
}
|
|
1557
|
+
};
|
|
1558
|
+
}
|
|
1559
|
+
};
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
var nullListeners = {
|
|
1563
|
+
notify: function notify() {},
|
|
1564
|
+
get: function get() {
|
|
1565
|
+
return [];
|
|
1566
|
+
}
|
|
1567
|
+
};
|
|
1568
|
+
function createSubscription(store, parentSub) {
|
|
1569
|
+
var unsubscribe;
|
|
1570
|
+
var listeners = nullListeners;
|
|
1571
|
+
|
|
1572
|
+
function addNestedSub(listener) {
|
|
1573
|
+
trySubscribe();
|
|
1574
|
+
return listeners.subscribe(listener);
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
function notifyNestedSubs() {
|
|
1578
|
+
listeners.notify();
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
function handleChangeWrapper() {
|
|
1582
|
+
if (subscription.onStateChange) {
|
|
1583
|
+
subscription.onStateChange();
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
function isSubscribed() {
|
|
1588
|
+
return Boolean(unsubscribe);
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
function trySubscribe() {
|
|
1592
|
+
if (!unsubscribe) {
|
|
1593
|
+
unsubscribe = parentSub ? parentSub.addNestedSub(handleChangeWrapper) : store.subscribe(handleChangeWrapper);
|
|
1594
|
+
listeners = createListenerCollection();
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
function tryUnsubscribe() {
|
|
1599
|
+
if (unsubscribe) {
|
|
1600
|
+
unsubscribe();
|
|
1601
|
+
unsubscribe = undefined;
|
|
1602
|
+
listeners.clear();
|
|
1603
|
+
listeners = nullListeners;
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
var subscription = {
|
|
1608
|
+
addNestedSub: addNestedSub,
|
|
1609
|
+
notifyNestedSubs: notifyNestedSubs,
|
|
1610
|
+
handleChangeWrapper: handleChangeWrapper,
|
|
1611
|
+
isSubscribed: isSubscribed,
|
|
1612
|
+
trySubscribe: trySubscribe,
|
|
1613
|
+
tryUnsubscribe: tryUnsubscribe,
|
|
1614
|
+
getListeners: function getListeners() {
|
|
1615
|
+
return listeners;
|
|
1616
|
+
}
|
|
1617
|
+
};
|
|
1618
|
+
return subscription;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
/***/ }),
|
|
1622
|
+
|
|
1623
|
+
/***/ "./node_modules/react-redux/es/utils/batch.js":
|
|
1624
|
+
/*!****************************************************!*\
|
|
1625
|
+
!*** ./node_modules/react-redux/es/utils/batch.js ***!
|
|
1626
|
+
\****************************************************/
|
|
1627
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1628
|
+
|
|
1629
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1630
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1631
|
+
/* harmony export */ "setBatch": () => (/* binding */ setBatch),
|
|
1632
|
+
/* harmony export */ "getBatch": () => (/* binding */ getBatch)
|
|
1633
|
+
/* harmony export */ });
|
|
1634
|
+
// Default to a dummy "batch" implementation that just runs the callback
|
|
1635
|
+
function defaultNoopBatch(callback) {
|
|
1636
|
+
callback();
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
var batch = defaultNoopBatch; // Allow injecting another batching function later
|
|
1640
|
+
|
|
1641
|
+
var setBatch = function setBatch(newBatch) {
|
|
1642
|
+
return batch = newBatch;
|
|
1643
|
+
}; // Supply a getter just to skip dealing with ESM bindings
|
|
1644
|
+
|
|
1645
|
+
var getBatch = function getBatch() {
|
|
1646
|
+
return batch;
|
|
1647
|
+
};
|
|
1648
|
+
|
|
1649
|
+
/***/ }),
|
|
1650
|
+
|
|
1651
|
+
/***/ "./node_modules/react-redux/es/utils/bindActionCreators.js":
|
|
1652
|
+
/*!*****************************************************************!*\
|
|
1653
|
+
!*** ./node_modules/react-redux/es/utils/bindActionCreators.js ***!
|
|
1654
|
+
\*****************************************************************/
|
|
1655
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1656
|
+
|
|
1657
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1658
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1659
|
+
/* harmony export */ "default": () => (/* binding */ bindActionCreators)
|
|
1660
|
+
/* harmony export */ });
|
|
1661
|
+
function bindActionCreators(actionCreators, dispatch) {
|
|
1662
|
+
var boundActionCreators = {};
|
|
1663
|
+
|
|
1664
|
+
var _loop = function _loop(key) {
|
|
1665
|
+
var actionCreator = actionCreators[key];
|
|
1666
|
+
|
|
1667
|
+
if (typeof actionCreator === 'function') {
|
|
1668
|
+
boundActionCreators[key] = function () {
|
|
1669
|
+
return dispatch(actionCreator.apply(void 0, arguments));
|
|
1670
|
+
};
|
|
1671
|
+
}
|
|
1672
|
+
};
|
|
1673
|
+
|
|
1674
|
+
for (var key in actionCreators) {
|
|
1675
|
+
_loop(key);
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
return boundActionCreators;
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
/***/ }),
|
|
1682
|
+
|
|
1683
|
+
/***/ "./node_modules/react-redux/es/utils/isPlainObject.js":
|
|
1684
|
+
/*!************************************************************!*\
|
|
1685
|
+
!*** ./node_modules/react-redux/es/utils/isPlainObject.js ***!
|
|
1686
|
+
\************************************************************/
|
|
1687
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1688
|
+
|
|
1689
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1690
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1691
|
+
/* harmony export */ "default": () => (/* binding */ isPlainObject)
|
|
1692
|
+
/* harmony export */ });
|
|
1693
|
+
/**
|
|
1694
|
+
* @param {any} obj The object to inspect.
|
|
1695
|
+
* @returns {boolean} True if the argument appears to be a plain object.
|
|
1696
|
+
*/
|
|
1697
|
+
function isPlainObject(obj) {
|
|
1698
|
+
if (typeof obj !== 'object' || obj === null) return false;
|
|
1699
|
+
var proto = Object.getPrototypeOf(obj);
|
|
1700
|
+
if (proto === null) return true;
|
|
1701
|
+
var baseProto = proto;
|
|
1702
|
+
|
|
1703
|
+
while (Object.getPrototypeOf(baseProto) !== null) {
|
|
1704
|
+
baseProto = Object.getPrototypeOf(baseProto);
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
return proto === baseProto;
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
/***/ }),
|
|
1711
|
+
|
|
1712
|
+
/***/ "./node_modules/react-redux/es/utils/reactBatchedUpdates.js":
|
|
1713
|
+
/*!******************************************************************!*\
|
|
1714
|
+
!*** ./node_modules/react-redux/es/utils/reactBatchedUpdates.js ***!
|
|
1715
|
+
\******************************************************************/
|
|
1716
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1717
|
+
|
|
1718
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1719
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1720
|
+
/* harmony export */ "unstable_batchedUpdates": () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.unstable_batchedUpdates)
|
|
1721
|
+
/* harmony export */ });
|
|
1722
|
+
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ "webpack/sharing/consume/default/react-dom/react-dom");
|
|
1723
|
+
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__);
|
|
1724
|
+
/* eslint-disable import/no-unresolved */
|
|
1725
|
+
|
|
1726
|
+
|
|
1727
|
+
/***/ }),
|
|
1728
|
+
|
|
1729
|
+
/***/ "./node_modules/react-redux/es/utils/shallowEqual.js":
|
|
1730
|
+
/*!***********************************************************!*\
|
|
1731
|
+
!*** ./node_modules/react-redux/es/utils/shallowEqual.js ***!
|
|
1732
|
+
\***********************************************************/
|
|
1733
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1734
|
+
|
|
1735
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1736
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1737
|
+
/* harmony export */ "default": () => (/* binding */ shallowEqual)
|
|
1738
|
+
/* harmony export */ });
|
|
1739
|
+
function is(x, y) {
|
|
1740
|
+
if (x === y) {
|
|
1741
|
+
return x !== 0 || y !== 0 || 1 / x === 1 / y;
|
|
1742
|
+
} else {
|
|
1743
|
+
return x !== x && y !== y;
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
function shallowEqual(objA, objB) {
|
|
1748
|
+
if (is(objA, objB)) return true;
|
|
1749
|
+
|
|
1750
|
+
if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
|
|
1751
|
+
return false;
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
var keysA = Object.keys(objA);
|
|
1755
|
+
var keysB = Object.keys(objB);
|
|
1756
|
+
if (keysA.length !== keysB.length) return false;
|
|
1757
|
+
|
|
1758
|
+
for (var i = 0; i < keysA.length; i++) {
|
|
1759
|
+
if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
|
|
1760
|
+
return false;
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
return true;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
/***/ }),
|
|
1768
|
+
|
|
1769
|
+
/***/ "./node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js":
|
|
1770
|
+
/*!************************************************************************!*\
|
|
1771
|
+
!*** ./node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js ***!
|
|
1772
|
+
\************************************************************************/
|
|
1773
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1774
|
+
|
|
1775
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1776
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1777
|
+
/* harmony export */ "useIsomorphicLayoutEffect": () => (/* binding */ useIsomorphicLayoutEffect)
|
|
1778
|
+
/* harmony export */ });
|
|
1779
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?474c");
|
|
1780
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1781
|
+
// React currently throws a warning when using useLayoutEffect on the server.
|
|
1782
|
+
// To get around it, we can conditionally useEffect on the server (no-op) and
|
|
1783
|
+
// useLayoutEffect in the browser. We need useLayoutEffect to ensure the store
|
|
1784
|
+
// subscription callback always has the selector from the latest render commit
|
|
1785
|
+
// available, otherwise a store update may happen between render and the effect,
|
|
1786
|
+
// which may cause missed updates; we also must ensure the store subscription
|
|
1787
|
+
// is created synchronously, otherwise a store update may occur before the
|
|
1788
|
+
// subscription is created and an inconsistent state may be observed
|
|
1789
|
+
|
|
1790
|
+
var useIsomorphicLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect;
|
|
1791
|
+
|
|
1792
|
+
/***/ }),
|
|
1793
|
+
|
|
1794
|
+
/***/ "./node_modules/react-redux/es/utils/verifyPlainObject.js":
|
|
1795
|
+
/*!****************************************************************!*\
|
|
1796
|
+
!*** ./node_modules/react-redux/es/utils/verifyPlainObject.js ***!
|
|
1797
|
+
\****************************************************************/
|
|
1798
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1799
|
+
|
|
1800
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1801
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1802
|
+
/* harmony export */ "default": () => (/* binding */ verifyPlainObject)
|
|
1803
|
+
/* harmony export */ });
|
|
1804
|
+
/* harmony import */ var _isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isPlainObject */ "./node_modules/react-redux/es/utils/isPlainObject.js");
|
|
1805
|
+
/* harmony import */ var _warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./warning */ "./node_modules/react-redux/es/utils/warning.js");
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
function verifyPlainObject(value, displayName, methodName) {
|
|
1809
|
+
if (!(0,_isPlainObject__WEBPACK_IMPORTED_MODULE_0__.default)(value)) {
|
|
1810
|
+
(0,_warning__WEBPACK_IMPORTED_MODULE_1__.default)(methodName + "() in " + displayName + " must return a plain object. Instead received " + value + ".");
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
/***/ }),
|
|
1815
|
+
|
|
1816
|
+
/***/ "./node_modules/react-redux/es/utils/warning.js":
|
|
1817
|
+
/*!******************************************************!*\
|
|
1818
|
+
!*** ./node_modules/react-redux/es/utils/warning.js ***!
|
|
1819
|
+
\******************************************************/
|
|
1820
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1821
|
+
|
|
1822
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1823
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1824
|
+
/* harmony export */ "default": () => (/* binding */ warning)
|
|
1825
|
+
/* harmony export */ });
|
|
1826
|
+
/**
|
|
1827
|
+
* Prints a warning in the console if it exists.
|
|
1828
|
+
*
|
|
1829
|
+
* @param {String} message The warning message.
|
|
1830
|
+
* @returns {void}
|
|
1831
|
+
*/
|
|
1832
|
+
function warning(message) {
|
|
1833
|
+
/* eslint-disable no-console */
|
|
1834
|
+
if (typeof console !== 'undefined' && typeof console.error === 'function') {
|
|
1835
|
+
console.error(message);
|
|
1836
|
+
}
|
|
1837
|
+
/* eslint-enable no-console */
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
try {
|
|
1841
|
+
// This error was thrown as a convenience so that if you enable
|
|
1842
|
+
// "break on all exceptions" in your console,
|
|
1843
|
+
// it would pause the execution at this line.
|
|
1844
|
+
throw new Error(message);
|
|
1845
|
+
/* eslint-disable no-empty */
|
|
1846
|
+
} catch (e) {}
|
|
1847
|
+
/* eslint-enable no-empty */
|
|
1848
|
+
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
/***/ }),
|
|
1852
|
+
|
|
1853
|
+
/***/ "./node_modules/react-redux/node_modules/react-is/cjs/react-is.development.js":
|
|
1854
|
+
/*!************************************************************************************!*\
|
|
1855
|
+
!*** ./node_modules/react-redux/node_modules/react-is/cjs/react-is.development.js ***!
|
|
1856
|
+
\************************************************************************************/
|
|
1857
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
1858
|
+
|
|
1859
|
+
/** @license React v17.0.2
|
|
1860
|
+
* react-is.development.js
|
|
1861
|
+
*
|
|
1862
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1863
|
+
*
|
|
1864
|
+
* This source code is licensed under the MIT license found in the
|
|
1865
|
+
* LICENSE file in the root directory of this source tree.
|
|
1866
|
+
*/
|
|
1867
|
+
|
|
1868
|
+
|
|
1869
|
+
|
|
1870
|
+
if (true) {
|
|
1871
|
+
(function() {
|
|
1872
|
+
'use strict';
|
|
1873
|
+
|
|
1874
|
+
// ATTENTION
|
|
1875
|
+
// When adding new symbols to this file,
|
|
1876
|
+
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
|
1877
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
1878
|
+
// nor polyfill, then a plain number is used for performance.
|
|
1879
|
+
var REACT_ELEMENT_TYPE = 0xeac7;
|
|
1880
|
+
var REACT_PORTAL_TYPE = 0xeaca;
|
|
1881
|
+
var REACT_FRAGMENT_TYPE = 0xeacb;
|
|
1882
|
+
var REACT_STRICT_MODE_TYPE = 0xeacc;
|
|
1883
|
+
var REACT_PROFILER_TYPE = 0xead2;
|
|
1884
|
+
var REACT_PROVIDER_TYPE = 0xeacd;
|
|
1885
|
+
var REACT_CONTEXT_TYPE = 0xeace;
|
|
1886
|
+
var REACT_FORWARD_REF_TYPE = 0xead0;
|
|
1887
|
+
var REACT_SUSPENSE_TYPE = 0xead1;
|
|
1888
|
+
var REACT_SUSPENSE_LIST_TYPE = 0xead8;
|
|
1889
|
+
var REACT_MEMO_TYPE = 0xead3;
|
|
1890
|
+
var REACT_LAZY_TYPE = 0xead4;
|
|
1891
|
+
var REACT_BLOCK_TYPE = 0xead9;
|
|
1892
|
+
var REACT_SERVER_BLOCK_TYPE = 0xeada;
|
|
1893
|
+
var REACT_FUNDAMENTAL_TYPE = 0xead5;
|
|
1894
|
+
var REACT_SCOPE_TYPE = 0xead7;
|
|
1895
|
+
var REACT_OPAQUE_ID_TYPE = 0xeae0;
|
|
1896
|
+
var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
|
|
1897
|
+
var REACT_OFFSCREEN_TYPE = 0xeae2;
|
|
1898
|
+
var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
|
|
1899
|
+
|
|
1900
|
+
if (typeof Symbol === 'function' && Symbol.for) {
|
|
1901
|
+
var symbolFor = Symbol.for;
|
|
1902
|
+
REACT_ELEMENT_TYPE = symbolFor('react.element');
|
|
1903
|
+
REACT_PORTAL_TYPE = symbolFor('react.portal');
|
|
1904
|
+
REACT_FRAGMENT_TYPE = symbolFor('react.fragment');
|
|
1905
|
+
REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
|
|
1906
|
+
REACT_PROFILER_TYPE = symbolFor('react.profiler');
|
|
1907
|
+
REACT_PROVIDER_TYPE = symbolFor('react.provider');
|
|
1908
|
+
REACT_CONTEXT_TYPE = symbolFor('react.context');
|
|
1909
|
+
REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
|
|
1910
|
+
REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
|
|
1911
|
+
REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
|
|
1912
|
+
REACT_MEMO_TYPE = symbolFor('react.memo');
|
|
1913
|
+
REACT_LAZY_TYPE = symbolFor('react.lazy');
|
|
1914
|
+
REACT_BLOCK_TYPE = symbolFor('react.block');
|
|
1915
|
+
REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
|
|
1916
|
+
REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
|
|
1917
|
+
REACT_SCOPE_TYPE = symbolFor('react.scope');
|
|
1918
|
+
REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
|
|
1919
|
+
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
|
|
1920
|
+
REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
|
|
1921
|
+
REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
// Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
|
|
1925
|
+
|
|
1926
|
+
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
1927
|
+
|
|
1928
|
+
function isValidElementType(type) {
|
|
1929
|
+
if (typeof type === 'string' || typeof type === 'function') {
|
|
1930
|
+
return true;
|
|
1931
|
+
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
1932
|
+
|
|
1933
|
+
|
|
1934
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
|
|
1935
|
+
return true;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
if (typeof type === 'object' && type !== null) {
|
|
1939
|
+
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 || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
|
|
1940
|
+
return true;
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
return false;
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
function typeOf(object) {
|
|
1948
|
+
if (typeof object === 'object' && object !== null) {
|
|
1949
|
+
var $$typeof = object.$$typeof;
|
|
1950
|
+
|
|
1951
|
+
switch ($$typeof) {
|
|
1952
|
+
case REACT_ELEMENT_TYPE:
|
|
1953
|
+
var type = object.type;
|
|
1954
|
+
|
|
1955
|
+
switch (type) {
|
|
1956
|
+
case REACT_FRAGMENT_TYPE:
|
|
1957
|
+
case REACT_PROFILER_TYPE:
|
|
1958
|
+
case REACT_STRICT_MODE_TYPE:
|
|
1959
|
+
case REACT_SUSPENSE_TYPE:
|
|
1960
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
1961
|
+
return type;
|
|
1962
|
+
|
|
1963
|
+
default:
|
|
1964
|
+
var $$typeofType = type && type.$$typeof;
|
|
1965
|
+
|
|
1966
|
+
switch ($$typeofType) {
|
|
1967
|
+
case REACT_CONTEXT_TYPE:
|
|
1968
|
+
case REACT_FORWARD_REF_TYPE:
|
|
1969
|
+
case REACT_LAZY_TYPE:
|
|
1970
|
+
case REACT_MEMO_TYPE:
|
|
1971
|
+
case REACT_PROVIDER_TYPE:
|
|
1972
|
+
return $$typeofType;
|
|
1973
|
+
|
|
1974
|
+
default:
|
|
1975
|
+
return $$typeof;
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
case REACT_PORTAL_TYPE:
|
|
1981
|
+
return $$typeof;
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
return undefined;
|
|
1986
|
+
}
|
|
1987
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
1988
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
1989
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
1990
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
1991
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
1992
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
1993
|
+
var Memo = REACT_MEMO_TYPE;
|
|
1994
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
1995
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
1996
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1997
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
1998
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
1999
|
+
var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
|
|
2000
|
+
|
|
2001
|
+
function isAsyncMode(object) {
|
|
2002
|
+
{
|
|
2003
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
2004
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
2005
|
+
|
|
2006
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
return false;
|
|
2011
|
+
}
|
|
2012
|
+
function isConcurrentMode(object) {
|
|
2013
|
+
{
|
|
2014
|
+
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
2015
|
+
hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
2016
|
+
|
|
2017
|
+
console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
return false;
|
|
2022
|
+
}
|
|
2023
|
+
function isContextConsumer(object) {
|
|
2024
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
2025
|
+
}
|
|
2026
|
+
function isContextProvider(object) {
|
|
2027
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
2028
|
+
}
|
|
2029
|
+
function isElement(object) {
|
|
2030
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
2031
|
+
}
|
|
2032
|
+
function isForwardRef(object) {
|
|
2033
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
2034
|
+
}
|
|
2035
|
+
function isFragment(object) {
|
|
2036
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
2037
|
+
}
|
|
2038
|
+
function isLazy(object) {
|
|
2039
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
2040
|
+
}
|
|
2041
|
+
function isMemo(object) {
|
|
2042
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
2043
|
+
}
|
|
2044
|
+
function isPortal(object) {
|
|
2045
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
2046
|
+
}
|
|
2047
|
+
function isProfiler(object) {
|
|
2048
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
2049
|
+
}
|
|
2050
|
+
function isStrictMode(object) {
|
|
2051
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
2052
|
+
}
|
|
2053
|
+
function isSuspense(object) {
|
|
2054
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
exports.ContextConsumer = ContextConsumer;
|
|
2058
|
+
exports.ContextProvider = ContextProvider;
|
|
2059
|
+
exports.Element = Element;
|
|
2060
|
+
exports.ForwardRef = ForwardRef;
|
|
2061
|
+
exports.Fragment = Fragment;
|
|
2062
|
+
exports.Lazy = Lazy;
|
|
2063
|
+
exports.Memo = Memo;
|
|
2064
|
+
exports.Portal = Portal;
|
|
2065
|
+
exports.Profiler = Profiler;
|
|
2066
|
+
exports.StrictMode = StrictMode;
|
|
2067
|
+
exports.Suspense = Suspense;
|
|
2068
|
+
exports.isAsyncMode = isAsyncMode;
|
|
2069
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
2070
|
+
exports.isContextConsumer = isContextConsumer;
|
|
2071
|
+
exports.isContextProvider = isContextProvider;
|
|
2072
|
+
exports.isElement = isElement;
|
|
2073
|
+
exports.isForwardRef = isForwardRef;
|
|
2074
|
+
exports.isFragment = isFragment;
|
|
2075
|
+
exports.isLazy = isLazy;
|
|
2076
|
+
exports.isMemo = isMemo;
|
|
2077
|
+
exports.isPortal = isPortal;
|
|
2078
|
+
exports.isProfiler = isProfiler;
|
|
2079
|
+
exports.isStrictMode = isStrictMode;
|
|
2080
|
+
exports.isSuspense = isSuspense;
|
|
2081
|
+
exports.isValidElementType = isValidElementType;
|
|
2082
|
+
exports.typeOf = typeOf;
|
|
2083
|
+
})();
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
|
|
2087
|
+
/***/ }),
|
|
2088
|
+
|
|
2089
|
+
/***/ "./node_modules/react-redux/node_modules/react-is/index.js":
|
|
2090
|
+
/*!*****************************************************************!*\
|
|
2091
|
+
!*** ./node_modules/react-redux/node_modules/react-is/index.js ***!
|
|
2092
|
+
\*****************************************************************/
|
|
2093
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2094
|
+
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
if (false) {} else {
|
|
2098
|
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-redux/node_modules/react-is/cjs/react-is.development.js");
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
|
|
2102
|
+
/***/ }),
|
|
2103
|
+
|
|
2104
|
+
/***/ "./node_modules/@babel/runtime/helpers/esm/extends.js":
|
|
2105
|
+
/*!************************************************************!*\
|
|
2106
|
+
!*** ./node_modules/@babel/runtime/helpers/esm/extends.js ***!
|
|
2107
|
+
\************************************************************/
|
|
2108
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2109
|
+
|
|
2110
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2111
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2112
|
+
/* harmony export */ "default": () => (/* binding */ _extends)
|
|
2113
|
+
/* harmony export */ });
|
|
2114
|
+
function _extends() {
|
|
2115
|
+
_extends = Object.assign || function (target) {
|
|
2116
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
2117
|
+
var source = arguments[i];
|
|
2118
|
+
|
|
2119
|
+
for (var key in source) {
|
|
2120
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2121
|
+
target[key] = source[key];
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
return target;
|
|
2127
|
+
};
|
|
2128
|
+
|
|
2129
|
+
return _extends.apply(this, arguments);
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
/***/ }),
|
|
2133
|
+
|
|
2134
|
+
/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":
|
|
2135
|
+
/*!*********************************************************************************!*\
|
|
2136
|
+
!*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***!
|
|
2137
|
+
\*********************************************************************************/
|
|
2138
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2139
|
+
|
|
2140
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2141
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2142
|
+
/* harmony export */ "default": () => (/* binding */ _objectWithoutPropertiesLoose)
|
|
2143
|
+
/* harmony export */ });
|
|
2144
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2145
|
+
if (source == null) return {};
|
|
2146
|
+
var target = {};
|
|
2147
|
+
var sourceKeys = Object.keys(source);
|
|
2148
|
+
var key, i;
|
|
2149
|
+
|
|
2150
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
2151
|
+
key = sourceKeys[i];
|
|
2152
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
2153
|
+
target[key] = source[key];
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
return target;
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
/***/ })
|
|
2160
|
+
|
|
2161
|
+
}]);
|