hasting-swatchcart-module 0.0.4 → 0.0.5
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/dist/components/SwatchesModule.js +7 -7
- package/dist/src/app/store/rootReducer.js +8 -8
- package/dist/src/app/store/store.js +10 -10
- package/dist/src/features/Cart/model/cartSlice.js +1 -1
- package/dist/src/features/Cart/model/selectors.js +1 -1
- package/dist/src/features/MultiProduct/model/multiProductCartSlice.js +1 -1
- package/dist/src/features/MultiProduct/model/selectors.js +1 -1
- package/dist/src/features/swatches/model/swatchesSlice.js +28 -29
- package/dist/src/features/swatches/model/thunks.js +1 -1
- package/dist/store/LibraryProvider.d.ts +4 -0
- package/dist/store/LibraryProvider.js +9 -0
- package/dist/store/rootReducer.d.ts +11 -0
- package/dist/store/rootReducer.js +12 -0
- package/dist/store/store.d.ts +25 -0
- package/dist/store/store.js +17 -0
- package/package.json +1 -1
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +0 -4
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +0 -4
- package/dist/_virtual/with-selector.js +0 -5
- package/dist/_virtual/with-selector2.js +0 -4
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +0 -877
- package/dist/node_modules/immer/dist/immer.js +0 -467
- package/dist/node_modules/react-redux/dist/react-redux.js +0 -246
- package/dist/node_modules/redux/dist/redux.js +0 -258
- package/dist/node_modules/redux-thunk/dist/redux-thunk.js +0 -8
- package/dist/node_modules/reselect/dist/reselect.js +0 -244
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +0 -66
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -65
- package/dist/node_modules/use-sync-external-store/with-selector.js +0 -10
- package/dist/src/app/providers/StoreProvider.js +0 -7
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
function i(e) {
|
|
2
|
-
return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
3
|
-
}
|
|
4
|
-
var S = typeof Symbol == "function" && Symbol.observable || "@@observable", _ = S, O = () => Math.random().toString(36).substring(7).split("").join("."), k = {
|
|
5
|
-
INIT: `@@redux/INIT${/* @__PURE__ */ O()}`,
|
|
6
|
-
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ O()}`,
|
|
7
|
-
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${O()}`
|
|
8
|
-
}, b = k;
|
|
9
|
-
function v(e) {
|
|
10
|
-
if (typeof e != "object" || e === null)
|
|
11
|
-
return !1;
|
|
12
|
-
let t = e;
|
|
13
|
-
for (; Object.getPrototypeOf(t) !== null; )
|
|
14
|
-
t = Object.getPrototypeOf(t);
|
|
15
|
-
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
16
|
-
}
|
|
17
|
-
function $(e) {
|
|
18
|
-
if (e === void 0)
|
|
19
|
-
return "undefined";
|
|
20
|
-
if (e === null)
|
|
21
|
-
return "null";
|
|
22
|
-
const t = typeof e;
|
|
23
|
-
switch (t) {
|
|
24
|
-
case "boolean":
|
|
25
|
-
case "string":
|
|
26
|
-
case "number":
|
|
27
|
-
case "symbol":
|
|
28
|
-
case "function":
|
|
29
|
-
return t;
|
|
30
|
-
}
|
|
31
|
-
if (Array.isArray(e))
|
|
32
|
-
return "array";
|
|
33
|
-
if (V(e))
|
|
34
|
-
return "date";
|
|
35
|
-
if (T(e))
|
|
36
|
-
return "error";
|
|
37
|
-
const r = j(e);
|
|
38
|
-
switch (r) {
|
|
39
|
-
case "Symbol":
|
|
40
|
-
case "Promise":
|
|
41
|
-
case "WeakMap":
|
|
42
|
-
case "WeakSet":
|
|
43
|
-
case "Map":
|
|
44
|
-
case "Set":
|
|
45
|
-
return r;
|
|
46
|
-
}
|
|
47
|
-
return Object.prototype.toString.call(e).slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
48
|
-
}
|
|
49
|
-
function j(e) {
|
|
50
|
-
return typeof e.constructor == "function" ? e.constructor.name : null;
|
|
51
|
-
}
|
|
52
|
-
function T(e) {
|
|
53
|
-
return e instanceof Error || typeof e.message == "string" && e.constructor && typeof e.constructor.stackTraceLimit == "number";
|
|
54
|
-
}
|
|
55
|
-
function V(e) {
|
|
56
|
-
return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
|
|
57
|
-
}
|
|
58
|
-
function y(e) {
|
|
59
|
-
let t = typeof e;
|
|
60
|
-
return process.env.NODE_ENV !== "production" && (t = $(e)), t;
|
|
61
|
-
}
|
|
62
|
-
function A(e, t, r) {
|
|
63
|
-
if (typeof e != "function")
|
|
64
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(2) : `Expected the root reducer to be a function. Instead, received: '${y(e)}'`);
|
|
65
|
-
if (typeof t == "function" && typeof r == "function" || typeof r == "function" && typeof arguments[3] == "function")
|
|
66
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
|
|
67
|
-
if (typeof t == "function" && typeof r > "u" && (r = t, t = void 0), typeof r < "u") {
|
|
68
|
-
if (typeof r != "function")
|
|
69
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(1) : `Expected the enhancer to be a function. Instead, received: '${y(r)}'`);
|
|
70
|
-
return r(A)(e, t);
|
|
71
|
-
}
|
|
72
|
-
let a = e, d = t, u = /* @__PURE__ */ new Map(), o = u, s = 0, c = !1;
|
|
73
|
-
function f() {
|
|
74
|
-
o === u && (o = /* @__PURE__ */ new Map(), u.forEach((n, p) => {
|
|
75
|
-
o.set(p, n);
|
|
76
|
-
}));
|
|
77
|
-
}
|
|
78
|
-
function w() {
|
|
79
|
-
if (c)
|
|
80
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
|
|
81
|
-
return d;
|
|
82
|
-
}
|
|
83
|
-
function l(n) {
|
|
84
|
-
if (typeof n != "function")
|
|
85
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(4) : `Expected the listener to be a function. Instead, received: '${y(n)}'`);
|
|
86
|
-
if (c)
|
|
87
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
88
|
-
let p = !0;
|
|
89
|
-
f();
|
|
90
|
-
const E = s++;
|
|
91
|
-
return o.set(E, n), function() {
|
|
92
|
-
if (p) {
|
|
93
|
-
if (c)
|
|
94
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
95
|
-
p = !1, f(), o.delete(E), u = null;
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
function h(n) {
|
|
100
|
-
if (!v(n))
|
|
101
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(7) : `Actions must be plain objects. Instead, the actual type was: '${y(n)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);
|
|
102
|
-
if (typeof n.type > "u")
|
|
103
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
104
|
-
if (typeof n.type != "string")
|
|
105
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(17) : `Action "type" property must be a string. Instead, the actual type was: '${y(n.type)}'. Value was: '${n.type}' (stringified)`);
|
|
106
|
-
if (c)
|
|
107
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(9) : "Reducers may not dispatch actions.");
|
|
108
|
-
try {
|
|
109
|
-
c = !0, d = a(d, n);
|
|
110
|
-
} finally {
|
|
111
|
-
c = !1;
|
|
112
|
-
}
|
|
113
|
-
return (u = o).forEach((E) => {
|
|
114
|
-
E();
|
|
115
|
-
}), n;
|
|
116
|
-
}
|
|
117
|
-
function N(n) {
|
|
118
|
-
if (typeof n != "function")
|
|
119
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(10) : `Expected the nextReducer to be a function. Instead, received: '${y(n)}`);
|
|
120
|
-
a = n, h({
|
|
121
|
-
type: b.REPLACE
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
function g() {
|
|
125
|
-
const n = l;
|
|
126
|
-
return {
|
|
127
|
-
/**
|
|
128
|
-
* The minimal observable subscription method.
|
|
129
|
-
* @param observer Any object that can be used as an observer.
|
|
130
|
-
* The observer object should have a `next` method.
|
|
131
|
-
* @returns An object with an `unsubscribe` method that can
|
|
132
|
-
* be used to unsubscribe the observable from the store, and prevent further
|
|
133
|
-
* emission of values from the observable.
|
|
134
|
-
*/
|
|
135
|
-
subscribe(p) {
|
|
136
|
-
if (typeof p != "object" || p === null)
|
|
137
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(11) : `Expected the observer to be an object. Instead, received: '${y(p)}'`);
|
|
138
|
-
function E() {
|
|
139
|
-
const x = p;
|
|
140
|
-
x.next && x.next(w());
|
|
141
|
-
}
|
|
142
|
-
return E(), {
|
|
143
|
-
unsubscribe: n(E)
|
|
144
|
-
};
|
|
145
|
-
},
|
|
146
|
-
[_]() {
|
|
147
|
-
return this;
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
return h({
|
|
152
|
-
type: b.INIT
|
|
153
|
-
}), {
|
|
154
|
-
dispatch: h,
|
|
155
|
-
subscribe: l,
|
|
156
|
-
getState: w,
|
|
157
|
-
replaceReducer: N,
|
|
158
|
-
[_]: g
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
function I(e) {
|
|
162
|
-
typeof console < "u" && typeof console.error == "function" && console.error(e);
|
|
163
|
-
try {
|
|
164
|
-
throw new Error(e);
|
|
165
|
-
} catch {
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
function P(e, t, r, a) {
|
|
169
|
-
const d = Object.keys(t), u = r && r.type === b.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
|
|
170
|
-
if (d.length === 0)
|
|
171
|
-
return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
172
|
-
if (!v(e))
|
|
173
|
-
return `The ${u} has unexpected type of "${y(e)}". Expected argument to be an object with the following keys: "${d.join('", "')}"`;
|
|
174
|
-
const o = Object.keys(e).filter((s) => !t.hasOwnProperty(s) && !a[s]);
|
|
175
|
-
if (o.forEach((s) => {
|
|
176
|
-
a[s] = !0;
|
|
177
|
-
}), !(r && r.type === b.REPLACE) && o.length > 0)
|
|
178
|
-
return `Unexpected ${o.length > 1 ? "keys" : "key"} "${o.join('", "')}" found in ${u}. Expected to find one of the known reducer keys instead: "${d.join('", "')}". Unexpected keys will be ignored.`;
|
|
179
|
-
}
|
|
180
|
-
function R(e) {
|
|
181
|
-
Object.keys(e).forEach((t) => {
|
|
182
|
-
const r = e[t];
|
|
183
|
-
if (typeof r(void 0, {
|
|
184
|
-
type: b.INIT
|
|
185
|
-
}) > "u")
|
|
186
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(12) : `The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);
|
|
187
|
-
if (typeof r(void 0, {
|
|
188
|
-
type: b.PROBE_UNKNOWN_ACTION()
|
|
189
|
-
}) > "u")
|
|
190
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(13) : `The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${b.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
function C(e) {
|
|
194
|
-
const t = Object.keys(e), r = {};
|
|
195
|
-
for (let o = 0; o < t.length; o++) {
|
|
196
|
-
const s = t[o];
|
|
197
|
-
process.env.NODE_ENV !== "production" && typeof e[s] > "u" && I(`No reducer provided for key "${s}"`), typeof e[s] == "function" && (r[s] = e[s]);
|
|
198
|
-
}
|
|
199
|
-
const a = Object.keys(r);
|
|
200
|
-
let d;
|
|
201
|
-
process.env.NODE_ENV !== "production" && (d = {});
|
|
202
|
-
let u;
|
|
203
|
-
try {
|
|
204
|
-
R(r);
|
|
205
|
-
} catch (o) {
|
|
206
|
-
u = o;
|
|
207
|
-
}
|
|
208
|
-
return function(s = {}, c) {
|
|
209
|
-
if (u)
|
|
210
|
-
throw u;
|
|
211
|
-
if (process.env.NODE_ENV !== "production") {
|
|
212
|
-
const l = P(s, r, c, d);
|
|
213
|
-
l && I(l);
|
|
214
|
-
}
|
|
215
|
-
let f = !1;
|
|
216
|
-
const w = {};
|
|
217
|
-
for (let l = 0; l < a.length; l++) {
|
|
218
|
-
const h = a[l], N = r[h], g = s[h], m = N(g, c);
|
|
219
|
-
if (typeof m > "u") {
|
|
220
|
-
const n = c && c.type;
|
|
221
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(14) : `When called with an action of type ${n ? `"${String(n)}"` : "(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`);
|
|
222
|
-
}
|
|
223
|
-
w[h] = m, f = f || m !== g;
|
|
224
|
-
}
|
|
225
|
-
return f = f || a.length !== Object.keys(s).length, f ? w : s;
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
function M(...e) {
|
|
229
|
-
return e.length === 0 ? (t) => t : e.length === 1 ? e[0] : e.reduce((t, r) => (...a) => t(r(...a)));
|
|
230
|
-
}
|
|
231
|
-
function K(...e) {
|
|
232
|
-
return (t) => (r, a) => {
|
|
233
|
-
const d = t(r, a);
|
|
234
|
-
let u = () => {
|
|
235
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(15) : "Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");
|
|
236
|
-
};
|
|
237
|
-
const o = {
|
|
238
|
-
getState: d.getState,
|
|
239
|
-
dispatch: (c, ...f) => u(c, ...f)
|
|
240
|
-
}, s = e.map((c) => c(o));
|
|
241
|
-
return u = M(...s)(d.dispatch), {
|
|
242
|
-
...d,
|
|
243
|
-
dispatch: u
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
function L(e) {
|
|
248
|
-
return v(e) && "type" in e && typeof e.type == "string";
|
|
249
|
-
}
|
|
250
|
-
export {
|
|
251
|
-
b as __DO_NOT_USE__ActionTypes,
|
|
252
|
-
K as applyMiddleware,
|
|
253
|
-
C as combineReducers,
|
|
254
|
-
M as compose,
|
|
255
|
-
A as createStore,
|
|
256
|
-
L as isAction,
|
|
257
|
-
v as isPlainObject
|
|
258
|
-
};
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
var N = (e, t, s) => {
|
|
2
|
-
if (t.length === 1 && t[0] === s) {
|
|
3
|
-
let o = !1;
|
|
4
|
-
try {
|
|
5
|
-
const r = {};
|
|
6
|
-
e(r) === r && (o = !0);
|
|
7
|
-
} catch {
|
|
8
|
-
}
|
|
9
|
-
if (o) {
|
|
10
|
-
let r;
|
|
11
|
-
try {
|
|
12
|
-
throw new Error();
|
|
13
|
-
} catch (c) {
|
|
14
|
-
({ stack: r } = c);
|
|
15
|
-
}
|
|
16
|
-
console.warn(
|
|
17
|
-
`The result function returned its own inputs without modification. e.g
|
|
18
|
-
\`createSelector([state => state.todos], todos => todos)\`
|
|
19
|
-
This could lead to inefficient memoization and unnecessary re-renders.
|
|
20
|
-
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,
|
|
21
|
-
{ stack: r }
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}, x = (e, t, s) => {
|
|
26
|
-
const { memoize: o, memoizeOptions: r } = t, { inputSelectorResults: c, inputSelectorResultsCopy: i } = e, n = o(() => ({}), ...r);
|
|
27
|
-
if (!(n.apply(null, c) === n.apply(null, i))) {
|
|
28
|
-
let l;
|
|
29
|
-
try {
|
|
30
|
-
throw new Error();
|
|
31
|
-
} catch (u) {
|
|
32
|
-
({ stack: l } = u);
|
|
33
|
-
}
|
|
34
|
-
console.warn(
|
|
35
|
-
`An input selector returned a different result when passed same arguments.
|
|
36
|
-
This means your output selector will likely run more frequently than intended.
|
|
37
|
-
Avoid returning a new reference inside your input selector, e.g.
|
|
38
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,
|
|
39
|
-
{
|
|
40
|
-
arguments: s,
|
|
41
|
-
firstInputs: c,
|
|
42
|
-
secondInputs: i,
|
|
43
|
-
stack: l
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
}, A = {
|
|
48
|
-
inputStabilityCheck: "once",
|
|
49
|
-
identityFunctionCheck: "once"
|
|
50
|
-
};
|
|
51
|
-
function F(e, t = `expected a function, instead received ${typeof e}`) {
|
|
52
|
-
if (typeof e != "function")
|
|
53
|
-
throw new TypeError(t);
|
|
54
|
-
}
|
|
55
|
-
function D(e, t = `expected an object, instead received ${typeof e}`) {
|
|
56
|
-
if (typeof e != "object")
|
|
57
|
-
throw new TypeError(t);
|
|
58
|
-
}
|
|
59
|
-
function $(e, t = "expected all items to be functions, instead received the following types: ") {
|
|
60
|
-
if (!e.every((s) => typeof s == "function")) {
|
|
61
|
-
const s = e.map(
|
|
62
|
-
(o) => typeof o == "function" ? `function ${o.name || "unnamed"}()` : typeof o
|
|
63
|
-
).join(", ");
|
|
64
|
-
throw new TypeError(`${t}[${s}]`);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
var S = (e) => Array.isArray(e) ? e : [e];
|
|
68
|
-
function W(e) {
|
|
69
|
-
const t = Array.isArray(e[0]) ? e[0] : e;
|
|
70
|
-
return $(
|
|
71
|
-
t,
|
|
72
|
-
"createSelector expects all input-selectors to be functions, but received the following types: "
|
|
73
|
-
), t;
|
|
74
|
-
}
|
|
75
|
-
function E(e, t) {
|
|
76
|
-
const s = [], { length: o } = e;
|
|
77
|
-
for (let r = 0; r < o; r++)
|
|
78
|
-
s.push(e[r].apply(null, t));
|
|
79
|
-
return s;
|
|
80
|
-
}
|
|
81
|
-
var q = (e, t) => {
|
|
82
|
-
const { identityFunctionCheck: s, inputStabilityCheck: o } = {
|
|
83
|
-
...A,
|
|
84
|
-
...t
|
|
85
|
-
};
|
|
86
|
-
return {
|
|
87
|
-
identityFunctionCheck: {
|
|
88
|
-
shouldRun: s === "always" || s === "once" && e,
|
|
89
|
-
run: N
|
|
90
|
-
},
|
|
91
|
-
inputStabilityCheck: {
|
|
92
|
-
shouldRun: o === "always" || o === "once" && e,
|
|
93
|
-
run: x
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
}, V = class {
|
|
97
|
-
constructor(e) {
|
|
98
|
-
this.value = e;
|
|
99
|
-
}
|
|
100
|
-
deref() {
|
|
101
|
-
return this.value;
|
|
102
|
-
}
|
|
103
|
-
}, K = typeof WeakRef < "u" ? WeakRef : V, P = 0, I = 1;
|
|
104
|
-
function m() {
|
|
105
|
-
return {
|
|
106
|
-
s: P,
|
|
107
|
-
v: void 0,
|
|
108
|
-
o: null,
|
|
109
|
-
p: null
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
function z(e, t = {}) {
|
|
113
|
-
let s = m();
|
|
114
|
-
const { resultEqualityCheck: o } = t;
|
|
115
|
-
let r, c = 0;
|
|
116
|
-
function i() {
|
|
117
|
-
let n = s;
|
|
118
|
-
const { length: f } = arguments;
|
|
119
|
-
for (let a = 0, h = f; a < h; a++) {
|
|
120
|
-
const d = arguments[a];
|
|
121
|
-
if (typeof d == "function" || typeof d == "object" && d !== null) {
|
|
122
|
-
let p = n.o;
|
|
123
|
-
p === null && (n.o = p = /* @__PURE__ */ new WeakMap());
|
|
124
|
-
const y = p.get(d);
|
|
125
|
-
y === void 0 ? (n = m(), p.set(d, n)) : n = y;
|
|
126
|
-
} else {
|
|
127
|
-
let p = n.p;
|
|
128
|
-
p === null && (n.p = p = /* @__PURE__ */ new Map());
|
|
129
|
-
const y = p.get(d);
|
|
130
|
-
y === void 0 ? (n = m(), p.set(d, n)) : n = y;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
const l = n;
|
|
134
|
-
let u;
|
|
135
|
-
if (n.s === I)
|
|
136
|
-
u = n.v;
|
|
137
|
-
else if (u = e.apply(null, arguments), c++, o) {
|
|
138
|
-
const a = r?.deref?.() ?? r;
|
|
139
|
-
a != null && o(a, u) && (u = a, c !== 0 && c--), r = typeof u == "object" && u !== null || typeof u == "function" ? new K(u) : u;
|
|
140
|
-
}
|
|
141
|
-
return l.s = I, l.v = u, u;
|
|
142
|
-
}
|
|
143
|
-
return i.clearCache = () => {
|
|
144
|
-
s = m(), i.resetResultsCount();
|
|
145
|
-
}, i.resultsCount = () => c, i.resetResultsCount = () => {
|
|
146
|
-
c = 0;
|
|
147
|
-
}, i;
|
|
148
|
-
}
|
|
149
|
-
function U(e, ...t) {
|
|
150
|
-
const s = typeof e == "function" ? {
|
|
151
|
-
memoize: e,
|
|
152
|
-
memoizeOptions: t
|
|
153
|
-
} : e, o = (...r) => {
|
|
154
|
-
let c = 0, i = 0, n, f = {}, l = r.pop();
|
|
155
|
-
typeof l == "object" && (f = l, l = r.pop()), F(
|
|
156
|
-
l,
|
|
157
|
-
`createSelector expects an output function after the inputs, but received: [${typeof l}]`
|
|
158
|
-
);
|
|
159
|
-
const u = {
|
|
160
|
-
...s,
|
|
161
|
-
...f
|
|
162
|
-
}, {
|
|
163
|
-
memoize: a,
|
|
164
|
-
memoizeOptions: h = [],
|
|
165
|
-
argsMemoize: d = z,
|
|
166
|
-
argsMemoizeOptions: p = [],
|
|
167
|
-
devModeChecks: y = {}
|
|
168
|
-
} = u, w = S(h), M = S(p), v = W(r), C = a(function() {
|
|
169
|
-
return c++, l.apply(
|
|
170
|
-
null,
|
|
171
|
-
arguments
|
|
172
|
-
);
|
|
173
|
-
}, ...w);
|
|
174
|
-
let g = !0;
|
|
175
|
-
const O = d(function() {
|
|
176
|
-
i++;
|
|
177
|
-
const R = E(
|
|
178
|
-
v,
|
|
179
|
-
arguments
|
|
180
|
-
);
|
|
181
|
-
if (n = C.apply(null, R), process.env.NODE_ENV !== "production") {
|
|
182
|
-
const { identityFunctionCheck: k, inputStabilityCheck: b } = q(g, y);
|
|
183
|
-
if (k.shouldRun && k.run(
|
|
184
|
-
l,
|
|
185
|
-
R,
|
|
186
|
-
n
|
|
187
|
-
), b.shouldRun) {
|
|
188
|
-
const j = E(
|
|
189
|
-
v,
|
|
190
|
-
arguments
|
|
191
|
-
);
|
|
192
|
-
b.run(
|
|
193
|
-
{ inputSelectorResults: R, inputSelectorResultsCopy: j },
|
|
194
|
-
{ memoize: a, memoizeOptions: w },
|
|
195
|
-
arguments
|
|
196
|
-
);
|
|
197
|
-
}
|
|
198
|
-
g && (g = !1);
|
|
199
|
-
}
|
|
200
|
-
return n;
|
|
201
|
-
}, ...M);
|
|
202
|
-
return Object.assign(O, {
|
|
203
|
-
resultFunc: l,
|
|
204
|
-
memoizedResultFunc: C,
|
|
205
|
-
dependencies: v,
|
|
206
|
-
dependencyRecomputations: () => i,
|
|
207
|
-
resetDependencyRecomputations: () => {
|
|
208
|
-
i = 0;
|
|
209
|
-
},
|
|
210
|
-
lastResult: () => n,
|
|
211
|
-
recomputations: () => c,
|
|
212
|
-
resetRecomputations: () => {
|
|
213
|
-
c = 0;
|
|
214
|
-
},
|
|
215
|
-
memoize: a,
|
|
216
|
-
argsMemoize: d
|
|
217
|
-
});
|
|
218
|
-
};
|
|
219
|
-
return Object.assign(o, {
|
|
220
|
-
withTypes: () => o
|
|
221
|
-
}), o;
|
|
222
|
-
}
|
|
223
|
-
var _ = /* @__PURE__ */ U(z), B = Object.assign(
|
|
224
|
-
(e, t = _) => {
|
|
225
|
-
D(
|
|
226
|
-
e,
|
|
227
|
-
`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`
|
|
228
|
-
);
|
|
229
|
-
const s = Object.keys(e), o = s.map(
|
|
230
|
-
(c) => e[c]
|
|
231
|
-
);
|
|
232
|
-
return t(
|
|
233
|
-
o,
|
|
234
|
-
(...c) => c.reduce((i, n, f) => (i[s[f]] = n, i), {})
|
|
235
|
-
);
|
|
236
|
-
},
|
|
237
|
-
{ withTypes: () => B }
|
|
238
|
-
);
|
|
239
|
-
export {
|
|
240
|
-
_ as createSelector,
|
|
241
|
-
U as createSelectorCreator,
|
|
242
|
-
B as createStructuredSelector,
|
|
243
|
-
z as weakMapMemoize
|
|
244
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { __exports as d } from "../../../_virtual/use-sync-external-store-with-selector.development.js";
|
|
2
|
-
import p from "react";
|
|
3
|
-
/**
|
|
4
|
-
* @license React
|
|
5
|
-
* use-sync-external-store-with-selector.development.js
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
var s;
|
|
13
|
-
function b() {
|
|
14
|
-
return s ? d : (s = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
15
|
-
function S(r, u) {
|
|
16
|
-
return r === u && (r !== 0 || 1 / r === 1 / u) || r !== r && u !== u;
|
|
17
|
-
}
|
|
18
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
19
|
-
var o = p, A = typeof Object.is == "function" ? Object.is : S, R = o.useSyncExternalStore, T = o.useRef, V = o.useEffect, y = o.useMemo, D = o.useDebugValue;
|
|
20
|
-
d.useSyncExternalStoreWithSelector = function(r, u, a, c, f) {
|
|
21
|
-
var t = T(null);
|
|
22
|
-
if (t.current === null) {
|
|
23
|
-
var _ = { hasValue: !1, value: null };
|
|
24
|
-
t.current = _;
|
|
25
|
-
} else _ = t.current;
|
|
26
|
-
t = y(
|
|
27
|
-
function() {
|
|
28
|
-
function E(e) {
|
|
29
|
-
if (!v) {
|
|
30
|
-
if (v = !0, i = e, e = c(e), f !== void 0 && _.hasValue) {
|
|
31
|
-
var n = _.value;
|
|
32
|
-
if (f(n, e))
|
|
33
|
-
return O = n;
|
|
34
|
-
}
|
|
35
|
-
return O = e;
|
|
36
|
-
}
|
|
37
|
-
if (n = O, A(i, e))
|
|
38
|
-
return n;
|
|
39
|
-
var m = c(e);
|
|
40
|
-
return f !== void 0 && f(n, m) ? (i = e, n) : (i = e, O = m);
|
|
41
|
-
}
|
|
42
|
-
var v = !1, i, O, L = a === void 0 ? null : a;
|
|
43
|
-
return [
|
|
44
|
-
function() {
|
|
45
|
-
return E(u());
|
|
46
|
-
},
|
|
47
|
-
L === null ? void 0 : function() {
|
|
48
|
-
return E(L());
|
|
49
|
-
}
|
|
50
|
-
];
|
|
51
|
-
},
|
|
52
|
-
[u, a, c, f]
|
|
53
|
-
);
|
|
54
|
-
var l = R(r, t[0], t[1]);
|
|
55
|
-
return V(
|
|
56
|
-
function() {
|
|
57
|
-
_.hasValue = !0, _.value = l;
|
|
58
|
-
},
|
|
59
|
-
[l]
|
|
60
|
-
), D(l), l;
|
|
61
|
-
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
62
|
-
})(), d);
|
|
63
|
-
}
|
|
64
|
-
export {
|
|
65
|
-
b as __require
|
|
66
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { __exports as d } from "../../../_virtual/use-sync-external-store-with-selector.production.js";
|
|
2
|
-
import D from "react";
|
|
3
|
-
/**
|
|
4
|
-
* @license React
|
|
5
|
-
* use-sync-external-store-with-selector.production.js
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
var y;
|
|
13
|
-
function G() {
|
|
14
|
-
if (y) return d;
|
|
15
|
-
y = 1;
|
|
16
|
-
var i = D;
|
|
17
|
-
function V(r, u) {
|
|
18
|
-
return r === u && (r !== 0 || 1 / r === 1 / u) || r !== r && u !== u;
|
|
19
|
-
}
|
|
20
|
-
var E = typeof Object.is == "function" ? Object.is : V, S = i.useSyncExternalStore, W = i.useRef, j = i.useEffect, z = i.useMemo, M = i.useDebugValue;
|
|
21
|
-
return d.useSyncExternalStoreWithSelector = function(r, u, v, m, l) {
|
|
22
|
-
var t = W(null);
|
|
23
|
-
if (t.current === null) {
|
|
24
|
-
var o = { hasValue: !1, value: null };
|
|
25
|
-
t.current = o;
|
|
26
|
-
} else o = t.current;
|
|
27
|
-
t = z(
|
|
28
|
-
function() {
|
|
29
|
-
function s(e) {
|
|
30
|
-
if (!_) {
|
|
31
|
-
if (_ = !0, a = e, e = m(e), l !== void 0 && o.hasValue) {
|
|
32
|
-
var f = o.value;
|
|
33
|
-
if (l(f, e))
|
|
34
|
-
return c = f;
|
|
35
|
-
}
|
|
36
|
-
return c = e;
|
|
37
|
-
}
|
|
38
|
-
if (f = c, E(a, e)) return f;
|
|
39
|
-
var R = m(e);
|
|
40
|
-
return l !== void 0 && l(f, R) ? (a = e, f) : (a = e, c = R);
|
|
41
|
-
}
|
|
42
|
-
var _ = !1, a, c, b = v === void 0 ? null : v;
|
|
43
|
-
return [
|
|
44
|
-
function() {
|
|
45
|
-
return s(u());
|
|
46
|
-
},
|
|
47
|
-
b === null ? void 0 : function() {
|
|
48
|
-
return s(b());
|
|
49
|
-
}
|
|
50
|
-
];
|
|
51
|
-
},
|
|
52
|
-
[u, v, m, l]
|
|
53
|
-
);
|
|
54
|
-
var n = S(r, t[0], t[1]);
|
|
55
|
-
return j(
|
|
56
|
-
function() {
|
|
57
|
-
o.hasValue = !0, o.value = n;
|
|
58
|
-
},
|
|
59
|
-
[n]
|
|
60
|
-
), M(n), n;
|
|
61
|
-
}, d;
|
|
62
|
-
}
|
|
63
|
-
export {
|
|
64
|
-
G as __require
|
|
65
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { __module as e } from "../../_virtual/with-selector2.js";
|
|
2
|
-
import { __require as t } from "./cjs/use-sync-external-store-with-selector.production.js";
|
|
3
|
-
import { __require as o } from "./cjs/use-sync-external-store-with-selector.development.js";
|
|
4
|
-
var r;
|
|
5
|
-
function n() {
|
|
6
|
-
return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = t() : e.exports = o(), e.exports);
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
n as __require
|
|
10
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { Provider as t } from "../../../node_modules/react-redux/dist/react-redux.js";
|
|
3
|
-
import { store as e } from "../store/store.js";
|
|
4
|
-
const f = ({ children: r }) => /* @__PURE__ */ o(t, { store: e, children: r });
|
|
5
|
-
export {
|
|
6
|
-
f as default
|
|
7
|
-
};
|