@open-kingdom/shared-frontend-data-access-api-client 0.0.2-13 → 0.0.2-14
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/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nanoid as $n, formatProdErrorMessage as ye, isPlainObject as Ve, createAction as De, createSelector as Ir, createNextState as Wt, createAsyncThunk as an, createSlice as Se, prepareAutoBatched as Ne, isAnyOf as ze, isFulfilled as be, isRejectedWithValue as Bt, combineReducers as
|
|
1
|
+
import { nanoid as $n, formatProdErrorMessage as ye, isPlainObject as Ve, createAction as De, createSelector as Ir, createNextState as Wt, createAsyncThunk as an, createSlice as Se, prepareAutoBatched as Ne, isAnyOf as ze, isFulfilled as be, isRejectedWithValue as Bt, combineReducers as Cr, SHOULD_AUTOBATCH as jn, isAllOf as Ot, isRejected as Gt, isPending as Ln, isAction as Ar, isAsyncThunkAction as cn, createListenerMiddleware as Tr } from "@reduxjs/toolkit";
|
|
2
2
|
import * as he from "react";
|
|
3
3
|
import Kn, { useCallback as ge, useDebugValue as It, useMemo as G, useState as un, useEffect as de, useRef as fe, useLayoutEffect as Dr } from "react";
|
|
4
4
|
var Yt = /* @__PURE__ */ Symbol.for("immer-nothing"), Fe = /* @__PURE__ */ Symbol.for("immer-draftable"), B = /* @__PURE__ */ Symbol.for("immer-state"), Hn = process.env.NODE_ENV !== "production" ? [
|
|
@@ -41,13 +41,13 @@ function W(e, ...t) {
|
|
|
41
41
|
`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
|
-
var J = Object, Ee = J.getPrototypeOf, $e = "constructor", Ge = "prototype", qt = "configurable", ft = "enumerable", ut = "writable",
|
|
44
|
+
var J = Object, Ee = J.getPrototypeOf, $e = "constructor", Ge = "prototype", qt = "configurable", ft = "enumerable", ut = "writable", je = "value", Z = (e) => !!e && !!e[B];
|
|
45
45
|
function ne(e) {
|
|
46
46
|
return e ? Wn(e) || Je(e) || !!e[Fe] || !!e[$e]?.[Fe] || Xe(e) || Ze(e) : !1;
|
|
47
47
|
}
|
|
48
48
|
var Nr = J[Ge][$e].toString(), ln = /* @__PURE__ */ new WeakMap();
|
|
49
49
|
function Wn(e) {
|
|
50
|
-
if (!e || !
|
|
50
|
+
if (!e || !Ae(e))
|
|
51
51
|
return !1;
|
|
52
52
|
const t = Ee(e);
|
|
53
53
|
if (t === null || t === J[Ge])
|
|
@@ -81,12 +81,12 @@ var xe = (e, t, n = Pe(e)) => n === 2 ? e.has(t) : J[Ge].hasOwnProperty.call(e,
|
|
|
81
81
|
function Mr(e, t) {
|
|
82
82
|
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
83
83
|
}
|
|
84
|
-
var Je = Array.isArray, Xe = (e) => e instanceof Map, Ze = (e) => e instanceof Set,
|
|
84
|
+
var Je = Array.isArray, Xe = (e) => e instanceof Map, Ze = (e) => e instanceof Set, Ae = (e) => typeof e == "object", pe = (e) => typeof e == "function", Ct = (e) => typeof e == "boolean";
|
|
85
85
|
function Qr(e) {
|
|
86
86
|
const t = +e;
|
|
87
87
|
return Number.isInteger(t) && String(t) === e;
|
|
88
88
|
}
|
|
89
|
-
var qr = (e) =>
|
|
89
|
+
var qr = (e) => Ae(e) ? e?.[B] : null, ae = (e) => e.copy_ || e.base_, Jt = (e) => e.modified_ ? e.copy_ : e.base_;
|
|
90
90
|
function Ft(e, t) {
|
|
91
91
|
if (Xe(e))
|
|
92
92
|
return new Map(e);
|
|
@@ -106,7 +106,7 @@ function Ft(e, t) {
|
|
|
106
106
|
[ut]: !0,
|
|
107
107
|
// could live with !!desc.set as well here...
|
|
108
108
|
[ft]: _[ft],
|
|
109
|
-
[
|
|
109
|
+
[je]: e[m]
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
return J.create(Ee(e), r);
|
|
@@ -136,10 +136,10 @@ function Fr() {
|
|
|
136
136
|
W(2);
|
|
137
137
|
}
|
|
138
138
|
var rt = {
|
|
139
|
-
[
|
|
139
|
+
[je]: Fr
|
|
140
140
|
};
|
|
141
141
|
function bt(e) {
|
|
142
|
-
return e === null || !
|
|
142
|
+
return e === null || !Ae(e) ? !0 : J.isFrozen(e);
|
|
143
143
|
}
|
|
144
144
|
var pt = "MapSet", ht = "Patches", fn = "ArrayMethods", yt = {};
|
|
145
145
|
function we(e) {
|
|
@@ -150,7 +150,7 @@ var dn = (e) => !!yt[e];
|
|
|
150
150
|
function xr(e, t) {
|
|
151
151
|
yt[e] || (yt[e] = t);
|
|
152
152
|
}
|
|
153
|
-
var
|
|
153
|
+
var Le, Bn = () => Le, Ur = (e, t) => ({
|
|
154
154
|
drafts_: [],
|
|
155
155
|
parent_: e,
|
|
156
156
|
immer_: t,
|
|
@@ -170,9 +170,9 @@ function xt(e) {
|
|
|
170
170
|
Ut(e), e.drafts_.forEach(Vr), e.drafts_ = null;
|
|
171
171
|
}
|
|
172
172
|
function Ut(e) {
|
|
173
|
-
e ===
|
|
173
|
+
e === Le && (Le = e.parent_);
|
|
174
174
|
}
|
|
175
|
-
var hn = (e) =>
|
|
175
|
+
var hn = (e) => Le = Ur(Le, e);
|
|
176
176
|
function Vr(e) {
|
|
177
177
|
const t = e[B];
|
|
178
178
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
@@ -226,10 +226,10 @@ function Yn(e, t, n, r) {
|
|
|
226
226
|
}
|
|
227
227
|
if (!e.draftLocations_) {
|
|
228
228
|
const _ = e.draftLocations_ = /* @__PURE__ */ new Map();
|
|
229
|
-
Ye(i, (
|
|
229
|
+
Ye(i, (A, w) => {
|
|
230
230
|
if (Z(w)) {
|
|
231
231
|
const T = _.get(w) || [];
|
|
232
|
-
T.push(
|
|
232
|
+
T.push(A), _.set(w, T);
|
|
233
233
|
}
|
|
234
234
|
});
|
|
235
235
|
}
|
|
@@ -237,7 +237,7 @@ function Yn(e, t, n, r) {
|
|
|
237
237
|
for (const _ of m)
|
|
238
238
|
dt(i, _, n, u);
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function jr(e, t, n) {
|
|
241
241
|
e.callbacks_.push(function(i) {
|
|
242
242
|
const u = t;
|
|
243
243
|
if (!u || !Et(u, i))
|
|
@@ -257,7 +257,7 @@ function Jn(e, t) {
|
|
|
257
257
|
Gn(e);
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Lr(e, t, n) {
|
|
261
261
|
const { scope_: r } = e;
|
|
262
262
|
if (Z(n)) {
|
|
263
263
|
const i = n[B];
|
|
@@ -334,7 +334,7 @@ var mt = {
|
|
|
334
334
|
e.operationMethod
|
|
335
335
|
) && Qr(t))
|
|
336
336
|
return u;
|
|
337
|
-
if (u ===
|
|
337
|
+
if (u === At(e.base_, t)) {
|
|
338
338
|
lt(e);
|
|
339
339
|
const m = e.type_ === 1 ? +t : t, _ = zt(e.scope_, u, e, m);
|
|
340
340
|
return e.copy_[m] = _;
|
|
@@ -352,7 +352,7 @@ var mt = {
|
|
|
352
352
|
if (r?.set)
|
|
353
353
|
return r.set.call(e.draft_, n), !0;
|
|
354
354
|
if (!e.modified_) {
|
|
355
|
-
const i =
|
|
355
|
+
const i = At(ae(e), t), u = i?.[B];
|
|
356
356
|
if (u && u.base_ === n)
|
|
357
357
|
return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
|
|
358
358
|
if (Mr(n, i) && (n !== void 0 || xe(e.base_, t, e.type_)))
|
|
@@ -361,10 +361,10 @@ var mt = {
|
|
|
361
361
|
}
|
|
362
362
|
return e.copy_[t] === n && // special case: handle new props with value 'undefined'
|
|
363
363
|
(n !== void 0 || t in e.copy_) || // special case: NaN
|
|
364
|
-
Number.isNaN(n) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = n, e.assigned_.set(t, !0),
|
|
364
|
+
Number.isNaN(n) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = n, e.assigned_.set(t, !0), Lr(e, t, n)), !0;
|
|
365
365
|
},
|
|
366
366
|
deleteProperty(e, t) {
|
|
367
|
-
return lt(e),
|
|
367
|
+
return lt(e), At(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), Vt(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
|
|
368
368
|
},
|
|
369
369
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
370
370
|
// the same guarantee in ES5 mode.
|
|
@@ -374,7 +374,7 @@ var mt = {
|
|
|
374
374
|
[ut]: !0,
|
|
375
375
|
[qt]: e.type_ !== 1 || t !== "length",
|
|
376
376
|
[ft]: r[ft],
|
|
377
|
-
[
|
|
377
|
+
[je]: n[t]
|
|
378
378
|
};
|
|
379
379
|
},
|
|
380
380
|
defineProperty() {
|
|
@@ -400,13 +400,13 @@ Ke.deleteProperty = function(e, t) {
|
|
|
400
400
|
Ke.set = function(e, t, n) {
|
|
401
401
|
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && W(14), mt.set.call(this, e[0], t, n, e[0]);
|
|
402
402
|
};
|
|
403
|
-
function
|
|
403
|
+
function At(e, t) {
|
|
404
404
|
const n = e[B];
|
|
405
405
|
return (n ? ae(n) : e)[t];
|
|
406
406
|
}
|
|
407
407
|
function Hr(e, t, n) {
|
|
408
408
|
const r = Xn(t, n);
|
|
409
|
-
return r ?
|
|
409
|
+
return r ? je in r ? r[je] : (
|
|
410
410
|
// This is a very special case, if the prop is a getter defined by the
|
|
411
411
|
// prototype, we should invoke it with the draft as context!
|
|
412
412
|
r.get?.call(e.draft_)
|
|
@@ -439,8 +439,8 @@ var Wr = class {
|
|
|
439
439
|
const u = n;
|
|
440
440
|
n = t;
|
|
441
441
|
const m = this;
|
|
442
|
-
return function(
|
|
443
|
-
return m.produce(
|
|
442
|
+
return function(A = u, ...w) {
|
|
443
|
+
return m.produce(A, (T) => n.call(this, T, ...w));
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
446
|
pe(n) || W(6), r !== void 0 && !pe(r) && W(7);
|
|
@@ -454,7 +454,7 @@ var Wr = class {
|
|
|
454
454
|
_ ? xt(u) : Ut(u);
|
|
455
455
|
}
|
|
456
456
|
return pn(u, r), yn(i, u);
|
|
457
|
-
} else if (!t || !
|
|
457
|
+
} else if (!t || !Ae(t)) {
|
|
458
458
|
if (i = n(t), i === void 0 && (i = t), i === Yt && (i = void 0), this.autoFreeze_ && Xt(i, !0), r) {
|
|
459
459
|
const u = [], m = [];
|
|
460
460
|
we(ht).generateReplacementPatches_(t, i, {
|
|
@@ -467,12 +467,12 @@ var Wr = class {
|
|
|
467
467
|
W(1, t);
|
|
468
468
|
}, this.produceWithPatches = (t, n) => {
|
|
469
469
|
if (pe(t))
|
|
470
|
-
return (m, ..._) => this.produceWithPatches(m, (
|
|
470
|
+
return (m, ..._) => this.produceWithPatches(m, (A) => t(A, ..._));
|
|
471
471
|
let r, i;
|
|
472
472
|
return [this.produce(t, n, (m, _) => {
|
|
473
473
|
r = m, i = _;
|
|
474
474
|
}), r, i];
|
|
475
|
-
},
|
|
475
|
+
}, Ct(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), Ct(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), Ct(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
|
|
476
476
|
}
|
|
477
477
|
createDraft(e) {
|
|
478
478
|
ne(e) || W(8), Z(e) && (e = Zn(e));
|
|
@@ -532,10 +532,10 @@ var Wr = class {
|
|
|
532
532
|
};
|
|
533
533
|
function zt(e, t, n, r) {
|
|
534
534
|
const [i, u] = Xe(t) ? we(pt).proxyMap_(t, n) : Ze(t) ? we(pt).proxySet_(t, n) : Kr(t, n);
|
|
535
|
-
return (n?.scope_ ?? Bn()).drafts_.push(i), u.callbacks_ = n?.callbacks_ ?? [], u.key_ = r, n && r !== void 0 ?
|
|
536
|
-
|
|
537
|
-
const { patchPlugin_: w } =
|
|
538
|
-
u.modified_ && w && w.generatePatches_(u, [],
|
|
535
|
+
return (n?.scope_ ?? Bn()).drafts_.push(i), u.callbacks_ = n?.callbacks_ ?? [], u.key_ = r, n && r !== void 0 ? jr(n, u, r) : u.callbacks_.push(function(A) {
|
|
536
|
+
A.mapSetPlugin_?.fixSetContents(u);
|
|
537
|
+
const { patchPlugin_: w } = A;
|
|
538
|
+
u.modified_ && w && w.generatePatches_(u, [], A);
|
|
539
539
|
}), i;
|
|
540
540
|
}
|
|
541
541
|
function Zn(e) {
|
|
@@ -601,7 +601,7 @@ function Br() {
|
|
|
601
601
|
let p = d;
|
|
602
602
|
for (let P = 0; P < v.length - 1; P++) {
|
|
603
603
|
const O = v[P];
|
|
604
|
-
if (p = se(p, O), !
|
|
604
|
+
if (p = se(p, O), !Ae(p) || p === null)
|
|
605
605
|
throw new Error(`Cannot resolve path at '${v.join("/")}'`);
|
|
606
606
|
}
|
|
607
607
|
return p;
|
|
@@ -615,7 +615,7 @@ function Br() {
|
|
|
615
615
|
switch (d.type_) {
|
|
616
616
|
case 0:
|
|
617
617
|
case 2:
|
|
618
|
-
return
|
|
618
|
+
return A(
|
|
619
619
|
d,
|
|
620
620
|
v,
|
|
621
621
|
P,
|
|
@@ -679,7 +679,7 @@ function Br() {
|
|
|
679
679
|
});
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
|
-
function
|
|
682
|
+
function A(d, v, p, P) {
|
|
683
683
|
const { base_: O, copy_: f, type_: g } = d;
|
|
684
684
|
Ye(d.assigned_, (s, a) => {
|
|
685
685
|
const S = se(O, s, g), b = se(f, s, g), h = a ? xe(O, s) ? r : i : u;
|
|
@@ -744,9 +744,9 @@ function Br() {
|
|
|
744
744
|
for (let S = 0; S < P.length - 1; S++) {
|
|
745
745
|
const b = Pe(f);
|
|
746
746
|
let h = P[S];
|
|
747
|
-
typeof h != "string" && typeof h != "number" && (h = "" + h), (b === 0 || b === 1) && (h === "__proto__" || h === $e) && W(19), pe(f) && h === Ge && W(19), f = se(f, h),
|
|
747
|
+
typeof h != "string" && typeof h != "number" && (h = "" + h), (b === 0 || b === 1) && (h === "__proto__" || h === $e) && W(19), pe(f) && h === Ge && W(19), f = se(f, h), Ae(f) || W(18, P.join("/"));
|
|
748
748
|
}
|
|
749
|
-
const g = Pe(f), s =
|
|
749
|
+
const g = Pe(f), s = C(p.value), a = P[P.length - 1];
|
|
750
750
|
switch (O) {
|
|
751
751
|
case r:
|
|
752
752
|
switch (g) {
|
|
@@ -784,24 +784,24 @@ function Br() {
|
|
|
784
784
|
}
|
|
785
785
|
}), d;
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function C(d) {
|
|
788
788
|
if (!ne(d))
|
|
789
789
|
return d;
|
|
790
790
|
if (Je(d))
|
|
791
|
-
return d.map(
|
|
791
|
+
return d.map(C);
|
|
792
792
|
if (Xe(d))
|
|
793
793
|
return new Map(
|
|
794
|
-
Array.from(d.entries()).map(([p, P]) => [p,
|
|
794
|
+
Array.from(d.entries()).map(([p, P]) => [p, C(P)])
|
|
795
795
|
);
|
|
796
796
|
if (Ze(d))
|
|
797
|
-
return new Set(Array.from(d).map(
|
|
797
|
+
return new Set(Array.from(d).map(C));
|
|
798
798
|
const v = Object.create(Ee(d));
|
|
799
799
|
for (const p in d)
|
|
800
|
-
v[p] =
|
|
800
|
+
v[p] = C(d[p]);
|
|
801
801
|
return xe(d, Fe) && (v[Fe] = d[Fe]), v;
|
|
802
802
|
}
|
|
803
803
|
function R(d) {
|
|
804
|
-
return Z(d) ?
|
|
804
|
+
return Z(d) ? C(d) : d;
|
|
805
805
|
}
|
|
806
806
|
xr(ht, {
|
|
807
807
|
applyPatches_: I,
|
|
@@ -944,8 +944,8 @@ function vt(e, t = {}) {
|
|
|
944
944
|
let i, u = 0;
|
|
945
945
|
function m() {
|
|
946
946
|
let _ = n;
|
|
947
|
-
const { length:
|
|
948
|
-
for (let I = 0,
|
|
947
|
+
const { length: A } = arguments;
|
|
948
|
+
for (let I = 0, C = A; I < C; I++) {
|
|
949
949
|
const R = arguments[I];
|
|
950
950
|
if (typeof R == "function" || typeof R == "object" && R !== null) {
|
|
951
951
|
let d = _.o;
|
|
@@ -980,21 +980,21 @@ function ai(e, ...t) {
|
|
|
980
980
|
memoize: e,
|
|
981
981
|
memoizeOptions: t
|
|
982
982
|
} : e, r = (...i) => {
|
|
983
|
-
let u = 0, m = 0, _,
|
|
984
|
-
typeof w == "object" && (
|
|
983
|
+
let u = 0, m = 0, _, A = {}, w = i.pop();
|
|
984
|
+
typeof w == "object" && (A = w, w = i.pop()), Zr(
|
|
985
985
|
w,
|
|
986
986
|
`createSelector expects an output function after the inputs, but received: [${typeof w}]`
|
|
987
987
|
);
|
|
988
988
|
const T = {
|
|
989
989
|
...n,
|
|
990
|
-
...
|
|
990
|
+
...A
|
|
991
991
|
}, {
|
|
992
992
|
memoize: I,
|
|
993
|
-
memoizeOptions:
|
|
993
|
+
memoizeOptions: C = [],
|
|
994
994
|
argsMemoize: R = vt,
|
|
995
995
|
argsMemoizeOptions: d = [],
|
|
996
996
|
devModeChecks: v = {}
|
|
997
|
-
} = T, p = vn(
|
|
997
|
+
} = T, p = vn(C), P = vn(d), O = ni(i), f = I(function() {
|
|
998
998
|
return u++, w.apply(
|
|
999
999
|
null,
|
|
1000
1000
|
arguments
|
|
@@ -1060,7 +1060,7 @@ var nr = /* @__PURE__ */ ai(vt), ci = Object.assign(
|
|
|
1060
1060
|
);
|
|
1061
1061
|
return t(
|
|
1062
1062
|
r,
|
|
1063
|
-
(...u) => u.reduce((m, _,
|
|
1063
|
+
(...u) => u.reduce((m, _, A) => (m[n[A]] = _, m), {})
|
|
1064
1064
|
);
|
|
1065
1065
|
},
|
|
1066
1066
|
{ withTypes: () => ci }
|
|
@@ -1085,7 +1085,7 @@ function Zt(e, t) {
|
|
|
1085
1085
|
u[m] = Zt(e[m], t[m]), i && (i = e[m] === u[m]);
|
|
1086
1086
|
return i ? e : u;
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1088
|
+
function jt(e, t, n) {
|
|
1089
1089
|
return e.reduce((r, i, u) => (t(i, u) && r.push(n(i, u)), r), []).flat();
|
|
1090
1090
|
}
|
|
1091
1091
|
function ui(e) {
|
|
@@ -1117,7 +1117,7 @@ function hi(e, t) {
|
|
|
1117
1117
|
function St(e, t, n) {
|
|
1118
1118
|
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
|
|
1119
1119
|
}
|
|
1120
|
-
var
|
|
1120
|
+
var Lt = () => /* @__PURE__ */ new Map(), yi = (e) => {
|
|
1121
1121
|
const t = new AbortController();
|
|
1122
1122
|
return setTimeout(() => {
|
|
1123
1123
|
const n = "signal timed out", r = "TimeoutError";
|
|
@@ -1161,11 +1161,11 @@ function _i({
|
|
|
1161
1161
|
jsonContentType: u = "application/json",
|
|
1162
1162
|
jsonReplacer: m,
|
|
1163
1163
|
timeout: _,
|
|
1164
|
-
responseHandler:
|
|
1164
|
+
responseHandler: A,
|
|
1165
1165
|
validateStatus: w,
|
|
1166
1166
|
...T
|
|
1167
1167
|
} = {}) {
|
|
1168
|
-
return typeof fetch > "u" && n === wn && console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."), async (
|
|
1168
|
+
return typeof fetch > "u" && n === wn && console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."), async (C, R, d) => {
|
|
1169
1169
|
const {
|
|
1170
1170
|
getState: v,
|
|
1171
1171
|
extra: p,
|
|
@@ -1177,20 +1177,20 @@ function _i({
|
|
|
1177
1177
|
url: s,
|
|
1178
1178
|
headers: a = new Headers(T.headers),
|
|
1179
1179
|
params: S = void 0,
|
|
1180
|
-
responseHandler: b =
|
|
1180
|
+
responseHandler: b = A ?? "json",
|
|
1181
1181
|
validateStatus: h = w ?? mi,
|
|
1182
1182
|
timeout: l = _,
|
|
1183
1183
|
...o
|
|
1184
|
-
} = typeof
|
|
1185
|
-
url:
|
|
1186
|
-
} :
|
|
1184
|
+
} = typeof C == "string" ? {
|
|
1185
|
+
url: C
|
|
1186
|
+
} : C, c = {
|
|
1187
1187
|
...T,
|
|
1188
1188
|
signal: l ? gi(R.signal, yi(l)) : R.signal,
|
|
1189
1189
|
...o
|
|
1190
1190
|
};
|
|
1191
1191
|
a = new Headers(Rn(a)), c.headers = await t(a, {
|
|
1192
1192
|
getState: v,
|
|
1193
|
-
arg:
|
|
1193
|
+
arg: C,
|
|
1194
1194
|
extra: p,
|
|
1195
1195
|
endpoint: P,
|
|
1196
1196
|
forced: O,
|
|
@@ -1253,14 +1253,14 @@ function _i({
|
|
|
1253
1253
|
meta: g
|
|
1254
1254
|
};
|
|
1255
1255
|
};
|
|
1256
|
-
async function I(
|
|
1256
|
+
async function I(C, R) {
|
|
1257
1257
|
if (typeof R == "function")
|
|
1258
|
-
return R(
|
|
1259
|
-
if (R === "content-type" && (R = i(
|
|
1260
|
-
const d = await
|
|
1258
|
+
return R(C);
|
|
1259
|
+
if (R === "content-type" && (R = i(C.headers) ? "json" : "text"), R === "json") {
|
|
1260
|
+
const d = await C.text();
|
|
1261
1261
|
return d.length ? JSON.parse(d) : null;
|
|
1262
1262
|
}
|
|
1263
|
-
return
|
|
1263
|
+
return C.text();
|
|
1264
1264
|
}
|
|
1265
1265
|
}
|
|
1266
1266
|
var On = class {
|
|
@@ -1282,7 +1282,7 @@ function _t(e) {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
function rn(e, t, n, r, i, u) {
|
|
1284
1284
|
const m = wi(e) ? e(t, n, r, i) : e;
|
|
1285
|
-
return m ?
|
|
1285
|
+
return m ? jt(m, en, (_) => u(ur(_))) : [];
|
|
1286
1286
|
}
|
|
1287
1287
|
function wi(e) {
|
|
1288
1288
|
return typeof e == "function";
|
|
@@ -1305,7 +1305,7 @@ function Oi({
|
|
|
1305
1305
|
context: u,
|
|
1306
1306
|
getInternalState: m
|
|
1307
1307
|
}) {
|
|
1308
|
-
const _ = (s) => m(s)?.runningQueries,
|
|
1308
|
+
const _ = (s) => m(s)?.runningQueries, A = (s) => m(s)?.runningMutations, {
|
|
1309
1309
|
unsubscribeQueryResult: w,
|
|
1310
1310
|
removeMutationResult: T,
|
|
1311
1311
|
updateSubscriptionOptions: I
|
|
@@ -1314,12 +1314,12 @@ function Oi({
|
|
|
1314
1314
|
buildInitiateQuery: O,
|
|
1315
1315
|
buildInitiateInfiniteQuery: f,
|
|
1316
1316
|
buildInitiateMutation: g,
|
|
1317
|
-
getRunningQueryThunk:
|
|
1317
|
+
getRunningQueryThunk: C,
|
|
1318
1318
|
getRunningMutationThunk: R,
|
|
1319
1319
|
getRunningQueriesThunk: d,
|
|
1320
1320
|
getRunningMutationsThunk: v
|
|
1321
1321
|
};
|
|
1322
|
-
function
|
|
1322
|
+
function C(s, a) {
|
|
1323
1323
|
return (S) => {
|
|
1324
1324
|
const b = Te(u, s), h = e({
|
|
1325
1325
|
queryArgs: a,
|
|
@@ -1330,13 +1330,13 @@ function Oi({
|
|
|
1330
1330
|
};
|
|
1331
1331
|
}
|
|
1332
1332
|
function R(s, a) {
|
|
1333
|
-
return (S) =>
|
|
1333
|
+
return (S) => A(S)?.get(a);
|
|
1334
1334
|
}
|
|
1335
1335
|
function d() {
|
|
1336
1336
|
return (s) => Pn(_(s));
|
|
1337
1337
|
}
|
|
1338
1338
|
function v() {
|
|
1339
|
-
return (s) => Pn(
|
|
1339
|
+
return (s) => Pn(A(s));
|
|
1340
1340
|
}
|
|
1341
1341
|
function p(s) {
|
|
1342
1342
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1392,9 +1392,9 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
1392
1392
|
const D = i.endpoints[s].select(b), Q = E(q), F = D(N());
|
|
1393
1393
|
p(E);
|
|
1394
1394
|
const {
|
|
1395
|
-
requestId:
|
|
1396
|
-
abort:
|
|
1397
|
-
} = Q, V = F.requestId !==
|
|
1395
|
+
requestId: j,
|
|
1396
|
+
abort: L
|
|
1397
|
+
} = Q, V = F.requestId !== j, K = _(E)?.get(M), H = () => D(N()), z = Object.assign(c ? (
|
|
1398
1398
|
// a query has been forced (upsertQueryData)
|
|
1399
1399
|
// -> we want to resolve it once data has been written with the data that will be written
|
|
1400
1400
|
Q.then(H)
|
|
@@ -1408,10 +1408,10 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
1408
1408
|
Promise.all([K, Q]).then(H)
|
|
1409
1409
|
), {
|
|
1410
1410
|
arg: b,
|
|
1411
|
-
requestId:
|
|
1411
|
+
requestId: j,
|
|
1412
1412
|
subscriptionOptions: o,
|
|
1413
1413
|
queryCacheKey: M,
|
|
1414
|
-
abort:
|
|
1414
|
+
abort: L,
|
|
1415
1415
|
async unwrap() {
|
|
1416
1416
|
const $ = await z;
|
|
1417
1417
|
if ($.isError)
|
|
@@ -1426,13 +1426,13 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
1426
1426
|
unsubscribe() {
|
|
1427
1427
|
h && E(w({
|
|
1428
1428
|
queryCacheKey: M,
|
|
1429
|
-
requestId:
|
|
1429
|
+
requestId: j
|
|
1430
1430
|
}));
|
|
1431
1431
|
},
|
|
1432
1432
|
updateSubscriptionOptions($) {
|
|
1433
1433
|
z.subscriptionOptions = $, E(I({
|
|
1434
1434
|
endpointName: s,
|
|
1435
|
-
requestId:
|
|
1435
|
+
requestId: j,
|
|
1436
1436
|
queryCacheKey: M,
|
|
1437
1437
|
options: $
|
|
1438
1438
|
}));
|
|
@@ -1486,7 +1486,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
1486
1486
|
abort: E,
|
|
1487
1487
|
unwrap: N,
|
|
1488
1488
|
reset: q
|
|
1489
|
-
}), D =
|
|
1489
|
+
}), D = A(h);
|
|
1490
1490
|
return D.set(y, k), k.then(() => {
|
|
1491
1491
|
D.delete(y);
|
|
1492
1492
|
}), b && (D.set(b, k), k.then(() => {
|
|
@@ -1511,7 +1511,7 @@ function In(e) {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
var ke = (e = {}) => ({
|
|
1513
1513
|
...e,
|
|
1514
|
-
[
|
|
1514
|
+
[jn]: !0
|
|
1515
1515
|
});
|
|
1516
1516
|
function Ii({
|
|
1517
1517
|
reducerPath: e,
|
|
@@ -1524,7 +1524,7 @@ function Ii({
|
|
|
1524
1524
|
assertTagType: u,
|
|
1525
1525
|
selectors: m,
|
|
1526
1526
|
onSchemaFailure: _,
|
|
1527
|
-
catchSchemaFailure:
|
|
1527
|
+
catchSchemaFailure: A,
|
|
1528
1528
|
skipSchemaValidation: w
|
|
1529
1529
|
}) {
|
|
1530
1530
|
const T = (o, c, y, E) => (N, M) => {
|
|
@@ -1551,7 +1551,7 @@ function Ii({
|
|
|
1551
1551
|
const E = [c, ...o];
|
|
1552
1552
|
return y && E.length > y ? E.slice(0, -1) : E;
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function C(o, c, y = 0) {
|
|
1555
1555
|
const E = [...o, c];
|
|
1556
1556
|
return y && E.length > y ? E.slice(1) : E;
|
|
1557
1557
|
}
|
|
@@ -1569,8 +1569,8 @@ function Ii({
|
|
|
1569
1569
|
let Q;
|
|
1570
1570
|
if ("data" in k)
|
|
1571
1571
|
if (ne(k.data)) {
|
|
1572
|
-
const [F,
|
|
1573
|
-
D.patches.push(...
|
|
1572
|
+
const [F, j, L] = tr(k.data, y);
|
|
1573
|
+
D.patches.push(...j), D.inversePatches.push(...L), Q = F;
|
|
1574
1574
|
} else
|
|
1575
1575
|
Q = y(k.data), D.patches.push({
|
|
1576
1576
|
op: "replace",
|
|
@@ -1600,9 +1600,9 @@ function Ii({
|
|
|
1600
1600
|
const D = n[o.endpointName], {
|
|
1601
1601
|
metaSchema: Q,
|
|
1602
1602
|
skipSchemaValidation: F = w
|
|
1603
|
-
} = D,
|
|
1603
|
+
} = D, j = o.type === et;
|
|
1604
1604
|
try {
|
|
1605
|
-
let
|
|
1605
|
+
let L = In;
|
|
1606
1606
|
const V = {
|
|
1607
1607
|
signal: c,
|
|
1608
1608
|
abort: y,
|
|
@@ -1611,9 +1611,9 @@ function Ii({
|
|
|
1611
1611
|
extra: k,
|
|
1612
1612
|
endpoint: o.endpointName,
|
|
1613
1613
|
type: o.type,
|
|
1614
|
-
forced:
|
|
1615
|
-
queryCacheKey:
|
|
1616
|
-
}, K =
|
|
1614
|
+
forced: j ? P(o, q()) : void 0,
|
|
1615
|
+
queryCacheKey: j ? o.queryCacheKey : void 0
|
|
1616
|
+
}, K = j ? o[We] : void 0;
|
|
1617
1617
|
let H;
|
|
1618
1618
|
const z = async (U, x, re, Y) => {
|
|
1619
1619
|
if (x == null && U.pages.length)
|
|
@@ -1623,7 +1623,7 @@ function Ii({
|
|
|
1623
1623
|
const Oe = {
|
|
1624
1624
|
queryArg: o.originalArgs,
|
|
1625
1625
|
pageParam: x
|
|
1626
|
-
}, ie = await $(Oe), Ie = Y ? I :
|
|
1626
|
+
}, ie = await $(Oe), Ie = Y ? I : C;
|
|
1627
1627
|
return {
|
|
1628
1628
|
data: {
|
|
1629
1629
|
pages: Ie(U.pages, ie.data, re),
|
|
@@ -1646,7 +1646,7 @@ function Ii({
|
|
|
1646
1646
|
"argSchema",
|
|
1647
1647
|
{}
|
|
1648
1648
|
// we don't have a meta yet, so we can't pass it
|
|
1649
|
-
)), K ? x = K() : D.query ? (
|
|
1649
|
+
)), K ? x = K() : D.query ? (L = v(D, "transformResponse"), x = await t(D.query(U), V, re)) : x = await D.queryFn(U, V, re, (X) => t(X, V, re)), typeof process < "u" && process.env.NODE_ENV === "development") {
|
|
1650
1650
|
const X = D.query ? "`baseQuery`" : "`queryFn`";
|
|
1651
1651
|
let ee;
|
|
1652
1652
|
if (!x)
|
|
@@ -1673,13 +1673,13 @@ function Ii({
|
|
|
1673
1673
|
data: Ie
|
|
1674
1674
|
} = x;
|
|
1675
1675
|
Oe && !me(F, "rawResponse") && (Ie = await ve(Oe, x.data, "rawResponseSchema", x.meta));
|
|
1676
|
-
let ue = await
|
|
1676
|
+
let ue = await L(Ie, x.meta, U);
|
|
1677
1677
|
return ie && !me(F, "response") && (ue = await ve(ie, ue, "responseSchema", x.meta)), {
|
|
1678
1678
|
...x,
|
|
1679
1679
|
data: ue
|
|
1680
1680
|
};
|
|
1681
1681
|
}
|
|
1682
|
-
if (
|
|
1682
|
+
if (j && "infiniteQueryOptions" in D) {
|
|
1683
1683
|
const {
|
|
1684
1684
|
infiniteQueryOptions: U
|
|
1685
1685
|
} = D, {
|
|
@@ -1712,8 +1712,8 @@ function Ii({
|
|
|
1712
1712
|
fulfilledTimeStamp: Date.now(),
|
|
1713
1713
|
baseQueryMeta: H.meta
|
|
1714
1714
|
}));
|
|
1715
|
-
} catch (
|
|
1716
|
-
let V =
|
|
1715
|
+
} catch (L) {
|
|
1716
|
+
let V = L;
|
|
1717
1717
|
if (V instanceof On) {
|
|
1718
1718
|
let K = v(D, "transformErrorResponse");
|
|
1719
1719
|
const {
|
|
@@ -1740,11 +1740,11 @@ function Ii({
|
|
|
1740
1740
|
endpoint: o.endpointName,
|
|
1741
1741
|
arg: o.originalArgs,
|
|
1742
1742
|
type: o.type,
|
|
1743
|
-
queryCacheKey:
|
|
1743
|
+
queryCacheKey: j ? o.queryCacheKey : void 0
|
|
1744
1744
|
};
|
|
1745
1745
|
D.onSchemaFailure?.(V, K), _?.(V, K);
|
|
1746
1746
|
const {
|
|
1747
|
-
catchSchemaFailure: H =
|
|
1747
|
+
catchSchemaFailure: H = A
|
|
1748
1748
|
} = D;
|
|
1749
1749
|
if (H)
|
|
1750
1750
|
return E(H(V, K), ke({
|
|
@@ -1817,7 +1817,7 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
1817
1817
|
}
|
|
1818
1818
|
function l(o, c) {
|
|
1819
1819
|
return {
|
|
1820
|
-
matchPending: Ot(
|
|
1820
|
+
matchPending: Ot(Ln(o), h(c)),
|
|
1821
1821
|
matchFulfilled: Ot(be(o), h(c)),
|
|
1822
1822
|
matchRejected: Ot(Gt(o), h(c))
|
|
1823
1823
|
};
|
|
@@ -1849,7 +1849,7 @@ function fr(e, {
|
|
|
1849
1849
|
function dr(e, t, n, r) {
|
|
1850
1850
|
return rn(n[e.meta.arg.endpointName][t], be(e) ? e.payload : void 0, Bt(e) ? e.payload : void 0, e.meta.arg.originalArgs, "baseQueryMeta" in e.meta ? e.meta.baseQueryMeta : void 0, r);
|
|
1851
1851
|
}
|
|
1852
|
-
function
|
|
1852
|
+
function Cn(e) {
|
|
1853
1853
|
return Z(e) ? Zn(e) : e;
|
|
1854
1854
|
}
|
|
1855
1855
|
function ot(e, t, n) {
|
|
@@ -1859,12 +1859,12 @@ function ot(e, t, n) {
|
|
|
1859
1859
|
function Be(e) {
|
|
1860
1860
|
return ("arg" in e ? e.arg.fixedCacheKey : e.fixedCacheKey) ?? e.requestId;
|
|
1861
1861
|
}
|
|
1862
|
-
function
|
|
1862
|
+
function An(e, t, n) {
|
|
1863
1863
|
const r = e[Be(t)];
|
|
1864
1864
|
r && n(r);
|
|
1865
1865
|
}
|
|
1866
1866
|
var st = {};
|
|
1867
|
-
function
|
|
1867
|
+
function Ci({
|
|
1868
1868
|
reducerPath: e,
|
|
1869
1869
|
queryThunk: t,
|
|
1870
1870
|
mutationThunk: n,
|
|
@@ -1875,7 +1875,7 @@ function Ai({
|
|
|
1875
1875
|
extractRehydrationInfo: m,
|
|
1876
1876
|
hasRehydrationInfo: _
|
|
1877
1877
|
},
|
|
1878
|
-
assertTagType:
|
|
1878
|
+
assertTagType: A,
|
|
1879
1879
|
config: w
|
|
1880
1880
|
}) {
|
|
1881
1881
|
const T = De(`${e}/resetApiState`);
|
|
@@ -1895,7 +1895,7 @@ function Ai({
|
|
|
1895
1895
|
tt(E) && "direction" in l && (y.direction = l.direction);
|
|
1896
1896
|
});
|
|
1897
1897
|
}
|
|
1898
|
-
function
|
|
1898
|
+
function C(h, l, o, c) {
|
|
1899
1899
|
ot(h, l.arg.queryCacheKey, (y) => {
|
|
1900
1900
|
if (y.requestId !== l.requestId && !c) return;
|
|
1901
1901
|
const {
|
|
@@ -1948,7 +1948,7 @@ function Ai({
|
|
|
1948
1948
|
arg: c,
|
|
1949
1949
|
requestId: l.meta.requestId,
|
|
1950
1950
|
startedTimeStamp: l.meta.timestamp
|
|
1951
|
-
}),
|
|
1951
|
+
}), C(
|
|
1952
1952
|
h,
|
|
1953
1953
|
{
|
|
1954
1954
|
arg: c,
|
|
@@ -1984,7 +1984,7 @@ function Ai({
|
|
|
1984
1984
|
};
|
|
1985
1985
|
}),
|
|
1986
1986
|
meta: {
|
|
1987
|
-
[
|
|
1987
|
+
[jn]: !0,
|
|
1988
1988
|
requestId: $n(),
|
|
1989
1989
|
timestamp: Date.now()
|
|
1990
1990
|
}
|
|
@@ -2018,7 +2018,7 @@ function Ai({
|
|
|
2018
2018
|
payload: c
|
|
2019
2019
|
}) => {
|
|
2020
2020
|
const y = Kt(o.arg);
|
|
2021
|
-
|
|
2021
|
+
C(l, o, c, y);
|
|
2022
2022
|
}).addCase(t.rejected, (l, {
|
|
2023
2023
|
meta: {
|
|
2024
2024
|
condition: o,
|
|
@@ -2076,7 +2076,7 @@ function Ai({
|
|
|
2076
2076
|
payload: o,
|
|
2077
2077
|
meta: c
|
|
2078
2078
|
}) => {
|
|
2079
|
-
c.arg.track &&
|
|
2079
|
+
c.arg.track && An(l, c, (y) => {
|
|
2080
2080
|
y.requestId === c.requestId && (y.status = Qe, y.data = o, y.fulfilledTimeStamp = c.fulfilledTimeStamp);
|
|
2081
2081
|
});
|
|
2082
2082
|
}).addCase(n.rejected, (l, {
|
|
@@ -2084,7 +2084,7 @@ function Ai({
|
|
|
2084
2084
|
error: c,
|
|
2085
2085
|
meta: y
|
|
2086
2086
|
}) => {
|
|
2087
|
-
y.arg.track &&
|
|
2087
|
+
y.arg.track && An(l, y, (E) => {
|
|
2088
2088
|
E.requestId === y.requestId && (E.status = qe, E.error = o ?? c);
|
|
2089
2089
|
});
|
|
2090
2090
|
}).addMatcher(_, (l, o) => {
|
|
@@ -2161,16 +2161,16 @@ function Ai({
|
|
|
2161
2161
|
}
|
|
2162
2162
|
});
|
|
2163
2163
|
function P(h, l) {
|
|
2164
|
-
const o =
|
|
2164
|
+
const o = Cn(h.keys[l] ?? []);
|
|
2165
2165
|
for (const c of o) {
|
|
2166
2166
|
const y = c.type, E = c.id ?? "__internal_without_id", N = h.tags[y]?.[E];
|
|
2167
|
-
N && (h.tags[y][E] =
|
|
2167
|
+
N && (h.tags[y][E] = Cn(N).filter((M) => M !== l));
|
|
2168
2168
|
}
|
|
2169
2169
|
delete h.keys[l];
|
|
2170
2170
|
}
|
|
2171
2171
|
function O(h, l) {
|
|
2172
2172
|
const o = l.map((c) => {
|
|
2173
|
-
const y = dr(c, "providesTags", i,
|
|
2173
|
+
const y = dr(c, "providesTags", i, A), {
|
|
2174
2174
|
queryCacheKey: E
|
|
2175
2175
|
} = c.meta.arg;
|
|
2176
2176
|
return {
|
|
@@ -2230,7 +2230,7 @@ function Ai({
|
|
|
2230
2230
|
...l
|
|
2231
2231
|
}));
|
|
2232
2232
|
}
|
|
2233
|
-
}), a =
|
|
2233
|
+
}), a = Cr({
|
|
2234
2234
|
queries: R.reducer,
|
|
2235
2235
|
mutations: d.reducer,
|
|
2236
2236
|
provided: p.reducer,
|
|
@@ -2255,14 +2255,14 @@ var te = /* @__PURE__ */ Symbol.for("RTKQ/skipToken"), pr = {
|
|
|
2255
2255
|
}, Tn = /* @__PURE__ */ Wt(pr, () => {
|
|
2256
2256
|
}), Dn = /* @__PURE__ */ Wt(pr, () => {
|
|
2257
2257
|
});
|
|
2258
|
-
function
|
|
2258
|
+
function Ai({
|
|
2259
2259
|
serializeQueryArgs: e,
|
|
2260
2260
|
reducerPath: t,
|
|
2261
2261
|
createSelector: n
|
|
2262
2262
|
}) {
|
|
2263
2263
|
const r = (f) => Tn, i = (f) => Dn;
|
|
2264
2264
|
return {
|
|
2265
|
-
buildQuerySelector:
|
|
2265
|
+
buildQuerySelector: C,
|
|
2266
2266
|
buildInfiniteQuerySelector: R,
|
|
2267
2267
|
buildMutationSelector: d,
|
|
2268
2268
|
selectInvalidatedBy: v,
|
|
@@ -2270,7 +2270,7 @@ function Ci({
|
|
|
2270
2270
|
selectApiState: m,
|
|
2271
2271
|
selectQueries: _,
|
|
2272
2272
|
selectMutations: w,
|
|
2273
|
-
selectQueryEntry:
|
|
2273
|
+
selectQueryEntry: A,
|
|
2274
2274
|
selectConfig: T
|
|
2275
2275
|
};
|
|
2276
2276
|
function u(f) {
|
|
@@ -2290,7 +2290,7 @@ function Ci({
|
|
|
2290
2290
|
function _(f) {
|
|
2291
2291
|
return m(f)?.queries;
|
|
2292
2292
|
}
|
|
2293
|
-
function
|
|
2293
|
+
function A(f, g) {
|
|
2294
2294
|
return _(f)?.[g];
|
|
2295
2295
|
}
|
|
2296
2296
|
function w(f) {
|
|
@@ -2308,10 +2308,10 @@ function Ci({
|
|
|
2308
2308
|
endpointDefinition: g,
|
|
2309
2309
|
endpointName: f
|
|
2310
2310
|
});
|
|
2311
|
-
return n((h) =>
|
|
2311
|
+
return n((h) => A(h, S) ?? Tn, s);
|
|
2312
2312
|
};
|
|
2313
2313
|
}
|
|
2314
|
-
function
|
|
2314
|
+
function C(f, g) {
|
|
2315
2315
|
return I(f, g, u);
|
|
2316
2316
|
}
|
|
2317
2317
|
function R(f, g) {
|
|
@@ -2346,7 +2346,7 @@ function Ci({
|
|
|
2346
2346
|
};
|
|
2347
2347
|
}
|
|
2348
2348
|
function v(f, g) {
|
|
2349
|
-
const s = f[t], a = /* @__PURE__ */ new Set(), S =
|
|
2349
|
+
const s = f[t], a = /* @__PURE__ */ new Set(), S = jt(g, en, ur);
|
|
2350
2350
|
for (const b of S) {
|
|
2351
2351
|
const h = s.provided.tags[b.type];
|
|
2352
2352
|
if (!h)
|
|
@@ -2371,7 +2371,7 @@ function Ci({
|
|
|
2371
2371
|
});
|
|
2372
2372
|
}
|
|
2373
2373
|
function p(f, g) {
|
|
2374
|
-
return
|
|
2374
|
+
return jt(Object.values(_(f)), (s) => s?.endpointName === g && s.status !== ce, (s) => s.originalArgs);
|
|
2375
2375
|
}
|
|
2376
2376
|
function P(f, g, s) {
|
|
2377
2377
|
return g ? Ht(f, g, s) != null : !1;
|
|
@@ -2391,7 +2391,7 @@ var Nn = WeakMap ? /* @__PURE__ */ new WeakMap() : void 0, kn = ({
|
|
|
2391
2391
|
else {
|
|
2392
2392
|
const i = JSON.stringify(t, (u, m) => (m = typeof m == "bigint" ? {
|
|
2393
2393
|
$bigint: m.toString()
|
|
2394
|
-
} : m, m = Ve(m) ? Object.keys(m).sort().reduce((_,
|
|
2394
|
+
} : m, m = Ve(m) ? Object.keys(m).sort().reduce((_, A) => (_[A] = m[A], _), {}) : m, m));
|
|
2395
2395
|
Ve(t) && Nn?.set(t, i), n = i;
|
|
2396
2396
|
}
|
|
2397
2397
|
return `${e}(${n})`;
|
|
@@ -2413,10 +2413,10 @@ function hr(...e) {
|
|
|
2413
2413
|
let T = kn;
|
|
2414
2414
|
if ("serializeQueryArgs" in w.endpointDefinition) {
|
|
2415
2415
|
const I = w.endpointDefinition.serializeQueryArgs;
|
|
2416
|
-
T = (
|
|
2417
|
-
const R = I(
|
|
2416
|
+
T = (C) => {
|
|
2417
|
+
const R = I(C);
|
|
2418
2418
|
return typeof R == "string" ? R : kn({
|
|
2419
|
-
...
|
|
2419
|
+
...C,
|
|
2420
2420
|
queryArgs: R
|
|
2421
2421
|
});
|
|
2422
2422
|
};
|
|
@@ -2433,7 +2433,7 @@ function hr(...e) {
|
|
|
2433
2433
|
extractRehydrationInfo: r,
|
|
2434
2434
|
hasRehydrationInfo: vt((w) => r(w) != null)
|
|
2435
2435
|
}, m = {
|
|
2436
|
-
injectEndpoints:
|
|
2436
|
+
injectEndpoints: A,
|
|
2437
2437
|
enhanceEndpoints({
|
|
2438
2438
|
addTagTypes: w,
|
|
2439
2439
|
endpoints: T
|
|
@@ -2442,12 +2442,12 @@ function hr(...e) {
|
|
|
2442
2442
|
for (const I of w)
|
|
2443
2443
|
i.tagTypes.includes(I) || i.tagTypes.push(I);
|
|
2444
2444
|
if (T)
|
|
2445
|
-
for (const [I,
|
|
2446
|
-
typeof
|
|
2445
|
+
for (const [I, C] of Object.entries(T))
|
|
2446
|
+
typeof C == "function" ? C(Te(u, I)) : Object.assign(Te(u, I) || {}, C);
|
|
2447
2447
|
return m;
|
|
2448
2448
|
}
|
|
2449
2449
|
}, _ = e.map((w) => w.init(m, i, u));
|
|
2450
|
-
function
|
|
2450
|
+
function A(w) {
|
|
2451
2451
|
const T = w.endpoints({
|
|
2452
2452
|
query: (I) => ({
|
|
2453
2453
|
...I,
|
|
@@ -2462,17 +2462,17 @@ function hr(...e) {
|
|
|
2462
2462
|
type: cr
|
|
2463
2463
|
})
|
|
2464
2464
|
});
|
|
2465
|
-
for (const [I,
|
|
2465
|
+
for (const [I, C] of Object.entries(T)) {
|
|
2466
2466
|
if (w.overrideExisting !== !0 && I in u.endpointDefinitions) {
|
|
2467
2467
|
if (w.overrideExisting === "throw")
|
|
2468
2468
|
throw new Error(process.env.NODE_ENV === "production" ? ye(39) : `called \`injectEndpoints\` to override already-existing endpointName ${I} without specifying \`overrideExisting: true\``);
|
|
2469
2469
|
typeof process < "u" && process.env.NODE_ENV === "development" && console.error(`called \`injectEndpoints\` to override already-existing endpointName ${I} without specifying \`overrideExisting: true\``);
|
|
2470
2470
|
continue;
|
|
2471
2471
|
}
|
|
2472
|
-
if (typeof process < "u" && process.env.NODE_ENV === "development" && tt(
|
|
2472
|
+
if (typeof process < "u" && process.env.NODE_ENV === "development" && tt(C)) {
|
|
2473
2473
|
const {
|
|
2474
2474
|
infiniteQueryOptions: R
|
|
2475
|
-
} =
|
|
2475
|
+
} = C, {
|
|
2476
2476
|
maxPages: d,
|
|
2477
2477
|
getPreviousPageParam: v
|
|
2478
2478
|
} = R;
|
|
@@ -2483,9 +2483,9 @@ function hr(...e) {
|
|
|
2483
2483
|
throw new Error(process.env.NODE_ENV === "production" ? ye(41) : `getPreviousPageParam for endpoint '${I}' must be a function if maxPages is used`);
|
|
2484
2484
|
}
|
|
2485
2485
|
}
|
|
2486
|
-
u.endpointDefinitions[I] =
|
|
2486
|
+
u.endpointDefinitions[I] = C;
|
|
2487
2487
|
for (const R of _)
|
|
2488
|
-
R.injectEndpoint(I,
|
|
2488
|
+
R.injectEndpoint(I, C);
|
|
2489
2489
|
}
|
|
2490
2490
|
return m;
|
|
2491
2491
|
}
|
|
@@ -2507,7 +2507,7 @@ var Ti = ({
|
|
|
2507
2507
|
let u = null, m = null;
|
|
2508
2508
|
const {
|
|
2509
2509
|
updateSubscriptionOptions: _,
|
|
2510
|
-
unsubscribeQueryResult:
|
|
2510
|
+
unsubscribeQueryResult: A
|
|
2511
2511
|
} = e.internalActions, w = (v, p) => {
|
|
2512
2512
|
if (_.match(p)) {
|
|
2513
2513
|
const {
|
|
@@ -2517,7 +2517,7 @@ var Ti = ({
|
|
|
2517
2517
|
} = p.payload, s = v.get(O);
|
|
2518
2518
|
return s?.has(f) && s.set(f, g), !0;
|
|
2519
2519
|
}
|
|
2520
|
-
if (
|
|
2520
|
+
if (A.match(p)) {
|
|
2521
2521
|
const {
|
|
2522
2522
|
queryCacheKey: O,
|
|
2523
2523
|
requestId: f
|
|
@@ -2532,7 +2532,7 @@ var Ti = ({
|
|
|
2532
2532
|
arg: O,
|
|
2533
2533
|
requestId: f
|
|
2534
2534
|
}
|
|
2535
|
-
} = p, g = St(v, O.queryCacheKey,
|
|
2535
|
+
} = p, g = St(v, O.queryCacheKey, Lt);
|
|
2536
2536
|
return O.subscribe && g.set(f, O.subscriptionOptions ?? g.get(f) ?? {}), !0;
|
|
2537
2537
|
}
|
|
2538
2538
|
let P = !1;
|
|
@@ -2545,7 +2545,7 @@ var Ti = ({
|
|
|
2545
2545
|
}
|
|
2546
2546
|
} = p;
|
|
2547
2547
|
if (O && f.subscribe) {
|
|
2548
|
-
const s = St(v, f.queryCacheKey,
|
|
2548
|
+
const s = St(v, f.queryCacheKey, Lt);
|
|
2549
2549
|
s.set(g, f.subscriptionOptions ?? s.get(g) ?? {}), P = !0;
|
|
2550
2550
|
}
|
|
2551
2551
|
}
|
|
@@ -2588,13 +2588,13 @@ var Ti = ({
|
|
|
2588
2588
|
selectConfig: m
|
|
2589
2589
|
},
|
|
2590
2590
|
getRunningQueryThunk: _,
|
|
2591
|
-
mwApi:
|
|
2591
|
+
mwApi: A
|
|
2592
2592
|
}) => {
|
|
2593
2593
|
const {
|
|
2594
2594
|
removeQueryResult: w,
|
|
2595
2595
|
unsubscribeQueryResult: T,
|
|
2596
2596
|
cacheEntriesUpserted: I
|
|
2597
|
-
} = t.internalActions,
|
|
2597
|
+
} = t.internalActions, C = ze(T.match, n.fulfilled, n.rejected, I.match);
|
|
2598
2598
|
function R(f) {
|
|
2599
2599
|
const g = i.currentSubscriptions.get(f);
|
|
2600
2600
|
return g ? g.size > 0 : !1;
|
|
@@ -2606,7 +2606,7 @@ var Ti = ({
|
|
|
2606
2606
|
}
|
|
2607
2607
|
const p = (f, g) => {
|
|
2608
2608
|
const s = g.getState(), a = m(s);
|
|
2609
|
-
if (
|
|
2609
|
+
if (C(f)) {
|
|
2610
2610
|
let S;
|
|
2611
2611
|
if (I.match(f))
|
|
2612
2612
|
S = f.payload.map((b) => b.queryDescription.queryCacheKey);
|
|
@@ -2668,8 +2668,8 @@ var Ti = ({
|
|
|
2668
2668
|
selectApiState: _
|
|
2669
2669
|
}
|
|
2670
2670
|
}) => {
|
|
2671
|
-
const
|
|
2672
|
-
removeQueryResult:
|
|
2671
|
+
const A = cn(r), w = cn(i), T = be(r, i), I = {}, {
|
|
2672
|
+
removeQueryResult: C,
|
|
2673
2673
|
removeMutationResult: R,
|
|
2674
2674
|
cacheEntriesUpserted: d
|
|
2675
2675
|
} = e.internalActions;
|
|
@@ -2722,14 +2722,14 @@ var Ti = ({
|
|
|
2722
2722
|
}
|
|
2723
2723
|
} else if (T(s))
|
|
2724
2724
|
v(b, s.payload, s.meta.baseQueryMeta);
|
|
2725
|
-
else if (
|
|
2725
|
+
else if (C.match(s) || R.match(s))
|
|
2726
2726
|
p(b);
|
|
2727
2727
|
else if (e.util.resetApiState.match(s))
|
|
2728
2728
|
for (const l of Object.keys(I))
|
|
2729
2729
|
p(l);
|
|
2730
2730
|
};
|
|
2731
2731
|
function f(s) {
|
|
2732
|
-
return
|
|
2732
|
+
return A(s) ? s.meta.arg.queryCacheKey : w(s) ? s.meta.arg.fixedCacheKey ?? s.meta.requestId : C.match(s) ? s.payload.queryCacheKey : R.match(s) ? Be(s.payload) : "";
|
|
2733
2733
|
}
|
|
2734
2734
|
function g(s, a, S, b, h) {
|
|
2735
2735
|
const l = Te(n, s), o = l?.onCacheEntryAdded;
|
|
@@ -2779,12 +2779,12 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
2779
2779
|
api: u,
|
|
2780
2780
|
assertTagType: m,
|
|
2781
2781
|
refetchQuery: _,
|
|
2782
|
-
internalState:
|
|
2782
|
+
internalState: A
|
|
2783
2783
|
}) => {
|
|
2784
2784
|
const {
|
|
2785
2785
|
removeQueryResult: w
|
|
2786
2786
|
} = u.internalActions, T = ze(be(r), Bt(r)), I = ze(be(i, r), Gt(i, r));
|
|
2787
|
-
let
|
|
2787
|
+
let C = [], R = 0;
|
|
2788
2788
|
const d = (P, O) => {
|
|
2789
2789
|
(i.pending.match(P) || r.pending.match(P)) && R++, I(P) && (R = Math.max(0, R - 1)), T(P) ? p(dr(P, "invalidatesTags", n, m), O) : I(P) ? p([], O) : u.util.invalidateTags.match(P) && p(rn(P.payload, void 0, void 0, void 0, void 0, m), O);
|
|
2790
2790
|
};
|
|
@@ -2793,17 +2793,17 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
2793
2793
|
}
|
|
2794
2794
|
function p(P, O) {
|
|
2795
2795
|
const f = O.getState(), g = f[e];
|
|
2796
|
-
if (
|
|
2796
|
+
if (C.push(...P), g.config.invalidationBehavior === "delayed" && v())
|
|
2797
2797
|
return;
|
|
2798
|
-
const s =
|
|
2799
|
-
if (
|
|
2798
|
+
const s = C;
|
|
2799
|
+
if (C = [], s.length === 0) return;
|
|
2800
2800
|
const a = u.util.selectInvalidatedBy(f, s);
|
|
2801
2801
|
t.batch(() => {
|
|
2802
2802
|
const S = Array.from(a.values());
|
|
2803
2803
|
for (const {
|
|
2804
2804
|
queryCacheKey: b
|
|
2805
2805
|
} of S) {
|
|
2806
|
-
const h = g.queries[b], l = St(
|
|
2806
|
+
const h = g.queries[b], l = St(A.currentSubscriptions, b, Lt);
|
|
2807
2807
|
h && (l.size === 0 ? O.dispatch(w({
|
|
2808
2808
|
queryCacheKey: b
|
|
2809
2809
|
})) : h.status !== ce && O.dispatch(_(h)));
|
|
@@ -2822,17 +2822,17 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
2822
2822
|
currentPolls: u,
|
|
2823
2823
|
currentSubscriptions: m
|
|
2824
2824
|
} = i, _ = /* @__PURE__ */ new Set();
|
|
2825
|
-
let
|
|
2825
|
+
let A = null;
|
|
2826
2826
|
const w = (p, P) => {
|
|
2827
|
-
(n.internalActions.updateSubscriptionOptions.match(p) || n.internalActions.unsubscribeQueryResult.match(p)) && T(p.payload.queryCacheKey, P), (t.pending.match(p) || t.rejected.match(p) && p.meta.condition) && T(p.meta.arg.queryCacheKey, P), (t.fulfilled.match(p) || t.rejected.match(p) && !p.meta.condition) && I(p.meta.arg, P), n.util.resetApiState.match(p) && (d(),
|
|
2827
|
+
(n.internalActions.updateSubscriptionOptions.match(p) || n.internalActions.unsubscribeQueryResult.match(p)) && T(p.payload.queryCacheKey, P), (t.pending.match(p) || t.rejected.match(p) && p.meta.condition) && T(p.meta.arg.queryCacheKey, P), (t.fulfilled.match(p) || t.rejected.match(p) && !p.meta.condition) && I(p.meta.arg, P), n.util.resetApiState.match(p) && (d(), A && (clearTimeout(A), A = null), _.clear());
|
|
2828
2828
|
};
|
|
2829
2829
|
function T(p, P) {
|
|
2830
|
-
_.add(p),
|
|
2830
|
+
_.add(p), A || (A = setTimeout(() => {
|
|
2831
2831
|
for (const O of _)
|
|
2832
|
-
|
|
2832
|
+
C({
|
|
2833
2833
|
queryCacheKey: O
|
|
2834
2834
|
}, P);
|
|
2835
|
-
_.clear(),
|
|
2835
|
+
_.clear(), A = null;
|
|
2836
2836
|
}, 0));
|
|
2837
2837
|
}
|
|
2838
2838
|
function I({
|
|
@@ -2858,7 +2858,7 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
2858
2858
|
}, s)
|
|
2859
2859
|
});
|
|
2860
2860
|
}
|
|
2861
|
-
function
|
|
2861
|
+
function C({
|
|
2862
2862
|
queryCacheKey: p
|
|
2863
2863
|
}, P) {
|
|
2864
2864
|
const f = P.getState()[e].queries[p], g = m.get(p);
|
|
@@ -2904,28 +2904,28 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
2904
2904
|
queryThunk: n,
|
|
2905
2905
|
mutationThunk: r
|
|
2906
2906
|
}) => {
|
|
2907
|
-
const i =
|
|
2907
|
+
const i = Ln(n, r), u = Gt(n, r), m = be(n, r), _ = {};
|
|
2908
2908
|
return (w, T) => {
|
|
2909
2909
|
if (i(w)) {
|
|
2910
2910
|
const {
|
|
2911
2911
|
requestId: I,
|
|
2912
2912
|
arg: {
|
|
2913
|
-
endpointName:
|
|
2913
|
+
endpointName: C,
|
|
2914
2914
|
originalArgs: R
|
|
2915
2915
|
}
|
|
2916
|
-
} = w.meta, d = Te(t,
|
|
2916
|
+
} = w.meta, d = Te(t, C), v = d?.onQueryStarted;
|
|
2917
2917
|
if (v) {
|
|
2918
2918
|
const p = {}, P = new Promise((s, a) => {
|
|
2919
2919
|
p.resolve = s, p.reject = a;
|
|
2920
2920
|
});
|
|
2921
2921
|
P.catch(() => {
|
|
2922
2922
|
}), _[I] = p;
|
|
2923
|
-
const O = e.endpoints[
|
|
2923
|
+
const O = e.endpoints[C].select(_t(d) ? R : I), f = T.dispatch((s, a, S) => S), g = {
|
|
2924
2924
|
...T,
|
|
2925
2925
|
getCacheEntry: () => O(T.getState()),
|
|
2926
2926
|
requestId: I,
|
|
2927
2927
|
extra: f,
|
|
2928
|
-
updateCachedData: _t(d) ? (s) => T.dispatch(e.util.updateQueryData(
|
|
2928
|
+
updateCachedData: _t(d) ? (s) => T.dispatch(e.util.updateQueryData(C, R, s)) : void 0,
|
|
2929
2929
|
queryFulfilled: P
|
|
2930
2930
|
};
|
|
2931
2931
|
v(R, g);
|
|
@@ -2933,21 +2933,21 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
2933
2933
|
} else if (m(w)) {
|
|
2934
2934
|
const {
|
|
2935
2935
|
requestId: I,
|
|
2936
|
-
baseQueryMeta:
|
|
2936
|
+
baseQueryMeta: C
|
|
2937
2937
|
} = w.meta;
|
|
2938
2938
|
_[I]?.resolve({
|
|
2939
2939
|
data: w.payload,
|
|
2940
|
-
meta:
|
|
2940
|
+
meta: C
|
|
2941
2941
|
}), delete _[I];
|
|
2942
2942
|
} else if (u(w)) {
|
|
2943
2943
|
const {
|
|
2944
2944
|
requestId: I,
|
|
2945
|
-
rejectedWithValue:
|
|
2945
|
+
rejectedWithValue: C,
|
|
2946
2946
|
baseQueryMeta: R
|
|
2947
2947
|
} = w.meta;
|
|
2948
2948
|
_[I]?.reject({
|
|
2949
2949
|
error: w.payload ?? w.error,
|
|
2950
|
-
isUnhandledError: !
|
|
2950
|
+
isUnhandledError: !C,
|
|
2951
2951
|
meta: R
|
|
2952
2952
|
}), delete _[I];
|
|
2953
2953
|
}
|
|
@@ -2961,19 +2961,19 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
2961
2961
|
}) => {
|
|
2962
2962
|
const {
|
|
2963
2963
|
removeQueryResult: u
|
|
2964
|
-
} = n.internalActions, m = (
|
|
2965
|
-
tn.match(
|
|
2964
|
+
} = n.internalActions, m = (A, w) => {
|
|
2965
|
+
tn.match(A) && _(w, "refetchOnFocus"), nn.match(A) && _(w, "refetchOnReconnect");
|
|
2966
2966
|
};
|
|
2967
|
-
function _(
|
|
2968
|
-
const T =
|
|
2967
|
+
function _(A, w) {
|
|
2968
|
+
const T = A.getState()[e], I = T.queries, C = i.currentSubscriptions;
|
|
2969
2969
|
t.batch(() => {
|
|
2970
|
-
for (const R of
|
|
2971
|
-
const d = I[R], v =
|
|
2970
|
+
for (const R of C.keys()) {
|
|
2971
|
+
const d = I[R], v = C.get(R);
|
|
2972
2972
|
if (!v || !d) continue;
|
|
2973
2973
|
const p = [...v.values()];
|
|
2974
|
-
(p.some((O) => O[w] === !0) || p.every((O) => O[w] === void 0) && T.config[w]) && (v.size === 0 ?
|
|
2974
|
+
(p.some((O) => O[w] === !0) || p.every((O) => O[w] === void 0) && T.config[w]) && (v.size === 0 ? A.dispatch(u({
|
|
2975
2975
|
queryCacheKey: R
|
|
2976
|
-
})) : d.status !== ce &&
|
|
2976
|
+
})) : d.status !== ce && A.dispatch(r(d)));
|
|
2977
2977
|
}
|
|
2978
2978
|
});
|
|
2979
2979
|
}
|
|
@@ -2990,27 +2990,27 @@ function Ui(e) {
|
|
|
2990
2990
|
apiUid: m
|
|
2991
2991
|
} = i, _ = {
|
|
2992
2992
|
invalidateTags: De(`${t}/invalidateTags`)
|
|
2993
|
-
},
|
|
2993
|
+
}, A = (C) => C.type.startsWith(`${t}/`), w = [Mi, Ni, Qi, qi, ki, Fi];
|
|
2994
2994
|
return {
|
|
2995
|
-
middleware: (
|
|
2995
|
+
middleware: (C) => {
|
|
2996
2996
|
let R = !1;
|
|
2997
|
-
const d = u(
|
|
2997
|
+
const d = u(C.dispatch), v = {
|
|
2998
2998
|
...e,
|
|
2999
2999
|
internalState: d,
|
|
3000
3000
|
refetchQuery: I,
|
|
3001
|
-
isThisApiSliceAction:
|
|
3002
|
-
mwApi:
|
|
3001
|
+
isThisApiSliceAction: A,
|
|
3002
|
+
mwApi: C
|
|
3003
3003
|
}, p = w.map((f) => f(v)), P = Ti(v), O = xi(v);
|
|
3004
3004
|
return (f) => (g) => {
|
|
3005
|
-
if (!
|
|
3005
|
+
if (!Ar(g))
|
|
3006
3006
|
return f(g);
|
|
3007
|
-
R || (R = !0,
|
|
3007
|
+
R || (R = !0, C.dispatch(r.internalActions.middlewareRegistered(m)));
|
|
3008
3008
|
const s = {
|
|
3009
|
-
...
|
|
3009
|
+
...C,
|
|
3010
3010
|
next: f
|
|
3011
|
-
}, a =
|
|
3011
|
+
}, a = C.getState(), [S, b] = P(g, s, a);
|
|
3012
3012
|
let h;
|
|
3013
|
-
if (S ? h = f(g) : h = b,
|
|
3013
|
+
if (S ? h = f(g) : h = b, C.getState()[t] && (O(g, s, a), A(g) || i.hasRehydrationInfo(g)))
|
|
3014
3014
|
for (const l of p)
|
|
3015
3015
|
l(g, s, a);
|
|
3016
3016
|
return h;
|
|
@@ -3018,8 +3018,8 @@ function Ui(e) {
|
|
|
3018
3018
|
},
|
|
3019
3019
|
actions: _
|
|
3020
3020
|
};
|
|
3021
|
-
function I(
|
|
3022
|
-
return e.api.endpoints[
|
|
3021
|
+
function I(C) {
|
|
3022
|
+
return e.api.endpoints[C.endpointName].initiate(C.originalArgs, {
|
|
3023
3023
|
subscribe: !1,
|
|
3024
3024
|
forceRefetch: !0
|
|
3025
3025
|
});
|
|
@@ -3036,11 +3036,11 @@ var Qn = /* @__PURE__ */ Symbol(), yr = ({
|
|
|
3036
3036
|
serializeQueryArgs: u,
|
|
3037
3037
|
keepUnusedDataFor: m,
|
|
3038
3038
|
refetchOnMountOrArgChange: _,
|
|
3039
|
-
refetchOnFocus:
|
|
3039
|
+
refetchOnFocus: A,
|
|
3040
3040
|
refetchOnReconnect: w,
|
|
3041
3041
|
invalidationBehavior: T,
|
|
3042
3042
|
onSchemaFailure: I,
|
|
3043
|
-
catchSchemaFailure:
|
|
3043
|
+
catchSchemaFailure: C,
|
|
3044
3044
|
skipSchemaValidation: R
|
|
3045
3045
|
}, d) {
|
|
3046
3046
|
Br();
|
|
@@ -3056,7 +3056,7 @@ var Qn = /* @__PURE__ */ Symbol(), yr = ({
|
|
|
3056
3056
|
},
|
|
3057
3057
|
util: {}
|
|
3058
3058
|
});
|
|
3059
|
-
const p =
|
|
3059
|
+
const p = Ai({
|
|
3060
3060
|
serializeQueryArgs: u,
|
|
3061
3061
|
reducerPath: i,
|
|
3062
3062
|
createSelector: e
|
|
@@ -3089,12 +3089,12 @@ var Qn = /* @__PURE__ */ Symbol(), yr = ({
|
|
|
3089
3089
|
assertTagType: v,
|
|
3090
3090
|
selectors: p,
|
|
3091
3091
|
onSchemaFailure: I,
|
|
3092
|
-
catchSchemaFailure:
|
|
3092
|
+
catchSchemaFailure: C,
|
|
3093
3093
|
skipSchemaValidation: R
|
|
3094
3094
|
}), {
|
|
3095
3095
|
reducer: E,
|
|
3096
3096
|
actions: N
|
|
3097
|
-
} =
|
|
3097
|
+
} = Ci({
|
|
3098
3098
|
context: d,
|
|
3099
3099
|
queryThunk: a,
|
|
3100
3100
|
mutationThunk: b,
|
|
@@ -3102,7 +3102,7 @@ var Qn = /* @__PURE__ */ Symbol(), yr = ({
|
|
|
3102
3102
|
reducerPath: i,
|
|
3103
3103
|
assertTagType: v,
|
|
3104
3104
|
config: {
|
|
3105
|
-
refetchOnFocus:
|
|
3105
|
+
refetchOnFocus: A,
|
|
3106
3106
|
refetchOnReconnect: w,
|
|
3107
3107
|
refetchOnMountOrArgChange: _,
|
|
3108
3108
|
keepUnusedDataFor: m,
|
|
@@ -3128,8 +3128,8 @@ var Qn = /* @__PURE__ */ Symbol(), yr = ({
|
|
|
3128
3128
|
buildInitiateInfiniteQuery: D,
|
|
3129
3129
|
buildInitiateMutation: Q,
|
|
3130
3130
|
getRunningMutationThunk: F,
|
|
3131
|
-
getRunningMutationsThunk:
|
|
3132
|
-
getRunningQueriesThunk:
|
|
3131
|
+
getRunningMutationsThunk: j,
|
|
3132
|
+
getRunningQueriesThunk: L,
|
|
3133
3133
|
getRunningQueryThunk: V
|
|
3134
3134
|
} = Oi({
|
|
3135
3135
|
queryThunk: a,
|
|
@@ -3142,9 +3142,9 @@ var Qn = /* @__PURE__ */ Symbol(), yr = ({
|
|
|
3142
3142
|
});
|
|
3143
3143
|
oe(t.util, {
|
|
3144
3144
|
getRunningMutationThunk: F,
|
|
3145
|
-
getRunningMutationsThunk:
|
|
3145
|
+
getRunningMutationsThunk: j,
|
|
3146
3146
|
getRunningQueryThunk: V,
|
|
3147
|
-
getRunningQueriesThunk:
|
|
3147
|
+
getRunningQueriesThunk: L
|
|
3148
3148
|
});
|
|
3149
3149
|
const {
|
|
3150
3150
|
middleware: K,
|
|
@@ -3192,11 +3192,11 @@ function Vi() {
|
|
|
3192
3192
|
if (qn) return Tt;
|
|
3193
3193
|
qn = 1;
|
|
3194
3194
|
var e = Kn;
|
|
3195
|
-
function t(
|
|
3196
|
-
return
|
|
3195
|
+
function t(A, w) {
|
|
3196
|
+
return A === w && (A !== 0 || 1 / A === 1 / w) || A !== A && w !== w;
|
|
3197
3197
|
}
|
|
3198
3198
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useSyncExternalStore, i = e.useRef, u = e.useEffect, m = e.useMemo, _ = e.useDebugValue;
|
|
3199
|
-
return Tt.useSyncExternalStoreWithSelector = function(
|
|
3199
|
+
return Tt.useSyncExternalStoreWithSelector = function(A, w, T, I, C) {
|
|
3200
3200
|
var R = i(null);
|
|
3201
3201
|
if (R.current === null) {
|
|
3202
3202
|
var d = { hasValue: !1, value: null };
|
|
@@ -3206,16 +3206,16 @@ function Vi() {
|
|
|
3206
3206
|
function() {
|
|
3207
3207
|
function p(s) {
|
|
3208
3208
|
if (!P) {
|
|
3209
|
-
if (P = !0, O = s, s = I(s),
|
|
3209
|
+
if (P = !0, O = s, s = I(s), C !== void 0 && d.hasValue) {
|
|
3210
3210
|
var a = d.value;
|
|
3211
|
-
if (
|
|
3211
|
+
if (C(a, s))
|
|
3212
3212
|
return f = a;
|
|
3213
3213
|
}
|
|
3214
3214
|
return f = s;
|
|
3215
3215
|
}
|
|
3216
3216
|
if (a = f, n(O, s)) return a;
|
|
3217
3217
|
var S = I(s);
|
|
3218
|
-
return
|
|
3218
|
+
return C !== void 0 && C(a, S) ? (O = s, a) : (O = s, f = S);
|
|
3219
3219
|
}
|
|
3220
3220
|
var P = !1, O, f, g = T === void 0 ? null : T;
|
|
3221
3221
|
return [
|
|
@@ -3227,9 +3227,9 @@ function Vi() {
|
|
|
3227
3227
|
}
|
|
3228
3228
|
];
|
|
3229
3229
|
},
|
|
3230
|
-
[w, T, I,
|
|
3230
|
+
[w, T, I, C]
|
|
3231
3231
|
);
|
|
3232
|
-
var v = r(
|
|
3232
|
+
var v = r(A, R[0], R[1]);
|
|
3233
3233
|
return u(
|
|
3234
3234
|
function() {
|
|
3235
3235
|
d.hasValue = !0, d.value = v;
|
|
@@ -3242,12 +3242,12 @@ var Dt = {};
|
|
|
3242
3242
|
var Fn;
|
|
3243
3243
|
function zi() {
|
|
3244
3244
|
return Fn || (Fn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
3245
|
-
function e(
|
|
3246
|
-
return
|
|
3245
|
+
function e(A, w) {
|
|
3246
|
+
return A === w && (A !== 0 || 1 / A === 1 / w) || A !== A && w !== w;
|
|
3247
3247
|
}
|
|
3248
3248
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
3249
3249
|
var t = Kn, n = typeof Object.is == "function" ? Object.is : e, r = t.useSyncExternalStore, i = t.useRef, u = t.useEffect, m = t.useMemo, _ = t.useDebugValue;
|
|
3250
|
-
Dt.useSyncExternalStoreWithSelector = function(
|
|
3250
|
+
Dt.useSyncExternalStoreWithSelector = function(A, w, T, I, C) {
|
|
3251
3251
|
var R = i(null);
|
|
3252
3252
|
if (R.current === null) {
|
|
3253
3253
|
var d = { hasValue: !1, value: null };
|
|
@@ -3257,9 +3257,9 @@ function zi() {
|
|
|
3257
3257
|
function() {
|
|
3258
3258
|
function p(s) {
|
|
3259
3259
|
if (!P) {
|
|
3260
|
-
if (P = !0, O = s, s = I(s),
|
|
3260
|
+
if (P = !0, O = s, s = I(s), C !== void 0 && d.hasValue) {
|
|
3261
3261
|
var a = d.value;
|
|
3262
|
-
if (
|
|
3262
|
+
if (C(a, s))
|
|
3263
3263
|
return f = a;
|
|
3264
3264
|
}
|
|
3265
3265
|
return f = s;
|
|
@@ -3267,7 +3267,7 @@ function zi() {
|
|
|
3267
3267
|
if (a = f, n(O, s))
|
|
3268
3268
|
return a;
|
|
3269
3269
|
var S = I(s);
|
|
3270
|
-
return
|
|
3270
|
+
return C !== void 0 && C(a, S) ? (O = s, a) : (O = s, f = S);
|
|
3271
3271
|
}
|
|
3272
3272
|
var P = !1, O, f, g = T === void 0 ? null : T;
|
|
3273
3273
|
return [
|
|
@@ -3279,9 +3279,9 @@ function zi() {
|
|
|
3279
3279
|
}
|
|
3280
3280
|
];
|
|
3281
3281
|
},
|
|
3282
|
-
[w, T, I,
|
|
3282
|
+
[w, T, I, C]
|
|
3283
3283
|
);
|
|
3284
|
-
var v = r(
|
|
3284
|
+
var v = r(A, R[0], R[1]);
|
|
3285
3285
|
return u(
|
|
3286
3286
|
function() {
|
|
3287
3287
|
d.hasValue = !0, d.value = v;
|
|
@@ -3295,8 +3295,8 @@ var xn;
|
|
|
3295
3295
|
function $i() {
|
|
3296
3296
|
return xn || (xn = 1, process.env.NODE_ENV === "production" ? at.exports = Vi() : at.exports = zi()), at.exports;
|
|
3297
3297
|
}
|
|
3298
|
-
var
|
|
3299
|
-
function
|
|
3298
|
+
var ji = $i();
|
|
3299
|
+
function Li(e) {
|
|
3300
3300
|
e();
|
|
3301
3301
|
}
|
|
3302
3302
|
function Un(e, t) {
|
|
@@ -3370,7 +3370,7 @@ function Ji(e = Re) {
|
|
|
3370
3370
|
"You must pass a function as an equality function to useSelector"
|
|
3371
3371
|
);
|
|
3372
3372
|
}
|
|
3373
|
-
const m = t(), { store: _, subscription:
|
|
3373
|
+
const m = t(), { store: _, subscription: A, getServerState: w } = m, T = he.useRef(!0), I = he.useCallback(
|
|
3374
3374
|
{
|
|
3375
3375
|
[r.name](R) {
|
|
3376
3376
|
const d = r(R);
|
|
@@ -3423,20 +3423,20 @@ Selectors that return the entire state are almost certainly a mistake, as they w
|
|
|
3423
3423
|
}
|
|
3424
3424
|
}[r.name],
|
|
3425
3425
|
[r]
|
|
3426
|
-
),
|
|
3427
|
-
|
|
3426
|
+
), C = ji.useSyncExternalStoreWithSelector(
|
|
3427
|
+
A.addNestedSub,
|
|
3428
3428
|
_.getState,
|
|
3429
3429
|
w || _.getState,
|
|
3430
3430
|
I,
|
|
3431
3431
|
u
|
|
3432
3432
|
);
|
|
3433
|
-
return he.useDebugValue(
|
|
3433
|
+
return he.useDebugValue(C), C;
|
|
3434
3434
|
};
|
|
3435
3435
|
return Object.assign(n, {
|
|
3436
3436
|
withTypes: () => n
|
|
3437
3437
|
}), n;
|
|
3438
3438
|
}
|
|
3439
|
-
var Xi = /* @__PURE__ */ Ji(), Zi =
|
|
3439
|
+
var Xi = /* @__PURE__ */ Ji(), Zi = Li;
|
|
3440
3440
|
function ct(e) {
|
|
3441
3441
|
return e.replace(e[0], e[0].toUpperCase());
|
|
3442
3442
|
}
|
|
@@ -3466,7 +3466,7 @@ function kt(e) {
|
|
|
3466
3466
|
t.current !== n && (t.current = n);
|
|
3467
3467
|
}, [n]), n;
|
|
3468
3468
|
}
|
|
3469
|
-
function
|
|
3469
|
+
function Ce(e) {
|
|
3470
3470
|
const t = fe(e);
|
|
3471
3471
|
return de(() => {
|
|
3472
3472
|
Ue(t.current, e) || (t.current = e);
|
|
@@ -3501,16 +3501,16 @@ function po({
|
|
|
3501
3501
|
createSelector: m
|
|
3502
3502
|
},
|
|
3503
3503
|
serializeQueryArgs: _,
|
|
3504
|
-
context:
|
|
3504
|
+
context: A
|
|
3505
3505
|
}) {
|
|
3506
|
-
const w = u ? (a) => a() : de, T = (a) => a.current?.unsubscribe?.(), I =
|
|
3506
|
+
const w = u ? (a) => a() : de, T = (a) => a.current?.unsubscribe?.(), I = A.endpointDefinitions;
|
|
3507
3507
|
return {
|
|
3508
3508
|
buildQueryHooks: f,
|
|
3509
3509
|
buildInfiniteQueryHooks: g,
|
|
3510
3510
|
buildMutationHook: s,
|
|
3511
3511
|
usePrefetch: d
|
|
3512
3512
|
};
|
|
3513
|
-
function
|
|
3513
|
+
function C(a, S, b) {
|
|
3514
3514
|
if (S?.endpointName && a.isUninitialized) {
|
|
3515
3515
|
const {
|
|
3516
3516
|
endpointName: E
|
|
@@ -3565,7 +3565,7 @@ function po({
|
|
|
3565
3565
|
};
|
|
3566
3566
|
}
|
|
3567
3567
|
function d(a, S) {
|
|
3568
|
-
const b = n(), h =
|
|
3568
|
+
const b = n(), h = Ce(S);
|
|
3569
3569
|
return ge((l, o) => b(e.util.prefetch(a, l, {
|
|
3570
3570
|
...h,
|
|
3571
3571
|
...o
|
|
@@ -3590,12 +3590,12 @@ function po({
|
|
|
3590
3590
|
You must add the middleware for RTK-Query to function correctly!`);
|
|
3591
3591
|
q.current = U;
|
|
3592
3592
|
}
|
|
3593
|
-
const k = kt(o ? te : S), D =
|
|
3593
|
+
const k = kt(o ? te : S), D = Ce({
|
|
3594
3594
|
refetchOnReconnect: b,
|
|
3595
3595
|
refetchOnFocus: h,
|
|
3596
3596
|
pollingInterval: c,
|
|
3597
3597
|
skipPollingIfUnfocused: y
|
|
3598
|
-
}), Q = E.initialPageParam, F =
|
|
3598
|
+
}), Q = E.initialPageParam, F = Ce(Q), j = E.refetchCachedPages, L = Ce(j), V = fe(void 0);
|
|
3599
3599
|
let {
|
|
3600
3600
|
queryCacheKey: K,
|
|
3601
3601
|
requestId: H
|
|
@@ -3618,12 +3618,12 @@ function po({
|
|
|
3618
3618
|
forceRefetch: l,
|
|
3619
3619
|
...Sr(I[a]) ? {
|
|
3620
3620
|
initialPageParam: F,
|
|
3621
|
-
refetchCachedPages:
|
|
3621
|
+
refetchCachedPages: L
|
|
3622
3622
|
} : {}
|
|
3623
3623
|
}));
|
|
3624
3624
|
V.current = re;
|
|
3625
3625
|
} else D !== x && U.updateSubscriptionOptions(D);
|
|
3626
|
-
}, [M, N, l, k, D, $, F,
|
|
3626
|
+
}, [M, N, l, k, D, $, F, L, a]), [V, M, N, D];
|
|
3627
3627
|
}
|
|
3628
3628
|
function p(a, S) {
|
|
3629
3629
|
return (h, {
|
|
@@ -3683,29 +3683,29 @@ function po({
|
|
|
3683
3683
|
} = {}) => {
|
|
3684
3684
|
const {
|
|
3685
3685
|
initiate: E
|
|
3686
|
-
} = e.endpoints[a], N = n(), [M, q] = un(Nt), k = fe(void 0), D =
|
|
3686
|
+
} = e.endpoints[a], N = n(), [M, q] = un(Nt), k = fe(void 0), D = Ce({
|
|
3687
3687
|
refetchOnReconnect: l,
|
|
3688
3688
|
refetchOnFocus: o,
|
|
3689
3689
|
pollingInterval: c,
|
|
3690
3690
|
skipPollingIfUnfocused: y
|
|
3691
3691
|
});
|
|
3692
3692
|
w(() => {
|
|
3693
|
-
const
|
|
3694
|
-
D !==
|
|
3693
|
+
const L = k.current?.subscriptionOptions;
|
|
3694
|
+
D !== L && k.current?.updateSubscriptionOptions(D);
|
|
3695
3695
|
}, [D]);
|
|
3696
3696
|
const Q = fe(D);
|
|
3697
3697
|
w(() => {
|
|
3698
3698
|
Q.current = D;
|
|
3699
3699
|
}, [D]);
|
|
3700
|
-
const F = ge(function(
|
|
3700
|
+
const F = ge(function(L, V = !1) {
|
|
3701
3701
|
let K;
|
|
3702
3702
|
return t(() => {
|
|
3703
|
-
T(k), k.current = K = N(E(
|
|
3703
|
+
T(k), k.current = K = N(E(L, {
|
|
3704
3704
|
subscriptionOptions: Q.current,
|
|
3705
3705
|
forceRefetch: !V
|
|
3706
|
-
})), q(
|
|
3706
|
+
})), q(L);
|
|
3707
3707
|
}), K;
|
|
3708
|
-
}, [N, E]),
|
|
3708
|
+
}, [N, E]), j = ge(() => {
|
|
3709
3709
|
k.current?.queryCacheKey && N(e.internalActions.removeQueryResult({
|
|
3710
3710
|
queryCacheKey: k.current?.queryCacheKey
|
|
3711
3711
|
}));
|
|
@@ -3715,9 +3715,9 @@ function po({
|
|
|
3715
3715
|
}, []), de(() => {
|
|
3716
3716
|
M !== Nt && !k.current && F(M, !0);
|
|
3717
3717
|
}, [M, F]), G(() => [F, M, {
|
|
3718
|
-
reset:
|
|
3719
|
-
}], [F, M,
|
|
3720
|
-
}, h = p(a,
|
|
3718
|
+
reset: j
|
|
3719
|
+
}], [F, M, j]);
|
|
3720
|
+
}, h = p(a, C);
|
|
3721
3721
|
return {
|
|
3722
3722
|
useQueryState: h,
|
|
3723
3723
|
useQuerySubscription: S,
|
|
@@ -3754,22 +3754,22 @@ function po({
|
|
|
3754
3754
|
w(() => {
|
|
3755
3755
|
N.current = E;
|
|
3756
3756
|
}, [E]);
|
|
3757
|
-
const M = l.refetchCachedPages, q =
|
|
3758
|
-
let
|
|
3757
|
+
const M = l.refetchCachedPages, q = Ce(M), k = ge(function(F, j) {
|
|
3758
|
+
let L;
|
|
3759
3759
|
return t(() => {
|
|
3760
|
-
T(o), o.current =
|
|
3760
|
+
T(o), o.current = L = c(y(F, {
|
|
3761
3761
|
subscriptionOptions: N.current,
|
|
3762
|
-
direction:
|
|
3762
|
+
direction: j
|
|
3763
3763
|
}));
|
|
3764
|
-
}),
|
|
3764
|
+
}), L;
|
|
3765
3765
|
}, [o, c, y]);
|
|
3766
3766
|
P(o);
|
|
3767
3767
|
const D = kt(l.skip ? te : h), Q = ge((F) => {
|
|
3768
3768
|
if (!o.current) throw new Error(process.env.NODE_ENV === "production" ? ye(38) : "Cannot refetch a query that has not been started yet.");
|
|
3769
|
-
const
|
|
3769
|
+
const j = {
|
|
3770
3770
|
refetchCachedPages: F?.refetchCachedPages ?? q
|
|
3771
3771
|
};
|
|
3772
|
-
return o.current.refetch(
|
|
3772
|
+
return o.current.refetch(j);
|
|
3773
3773
|
}, [o, q]);
|
|
3774
3774
|
return G(() => ({
|
|
3775
3775
|
trigger: k,
|
|
@@ -3814,8 +3814,8 @@ function po({
|
|
|
3814
3814
|
de(() => () => {
|
|
3815
3815
|
c?.arg.fixedCacheKey || c?.reset();
|
|
3816
3816
|
}, [c]);
|
|
3817
|
-
const E = ge(function(
|
|
3818
|
-
const V = o(l(
|
|
3817
|
+
const E = ge(function(L) {
|
|
3818
|
+
const V = o(l(L, {
|
|
3819
3819
|
fixedCacheKey: b
|
|
3820
3820
|
}));
|
|
3821
3821
|
return y(V), V;
|
|
@@ -3833,12 +3833,12 @@ function po({
|
|
|
3833
3833
|
});
|
|
3834
3834
|
}, [o, b, c, N]), F = Mt(k, ...Qt, "endpointName");
|
|
3835
3835
|
It(F);
|
|
3836
|
-
const
|
|
3836
|
+
const j = G(() => ({
|
|
3837
3837
|
...k,
|
|
3838
3838
|
originalArgs: D,
|
|
3839
3839
|
reset: Q
|
|
3840
3840
|
}), [k, D, Q]);
|
|
3841
|
-
return G(() => [E,
|
|
3841
|
+
return G(() => [E, j], [E, j]);
|
|
3842
3842
|
};
|
|
3843
3843
|
}
|
|
3844
3844
|
}
|
|
@@ -3866,11 +3866,11 @@ Hook ${_} was either not provided or not a function.`);
|
|
|
3866
3866
|
init(u, {
|
|
3867
3867
|
serializeQueryArgs: m
|
|
3868
3868
|
}, _) {
|
|
3869
|
-
const
|
|
3869
|
+
const A = u, {
|
|
3870
3870
|
buildQueryHooks: w,
|
|
3871
3871
|
buildInfiniteQueryHooks: T,
|
|
3872
3872
|
buildMutationHook: I,
|
|
3873
|
-
usePrefetch:
|
|
3873
|
+
usePrefetch: C
|
|
3874
3874
|
} = po({
|
|
3875
3875
|
api: u,
|
|
3876
3876
|
moduleOptions: {
|
|
@@ -3882,8 +3882,8 @@ Hook ${_} was either not provided or not a function.`);
|
|
|
3882
3882
|
serializeQueryArgs: m,
|
|
3883
3883
|
context: _
|
|
3884
3884
|
});
|
|
3885
|
-
return Me(
|
|
3886
|
-
usePrefetch:
|
|
3885
|
+
return Me(A, {
|
|
3886
|
+
usePrefetch: C
|
|
3887
3887
|
}), Me(_, {
|
|
3888
3888
|
batch: e
|
|
3889
3889
|
}), {
|
|
@@ -3896,7 +3896,7 @@ Hook ${_} was either not provided or not a function.`);
|
|
|
3896
3896
|
useQueryState: O,
|
|
3897
3897
|
useQuerySubscription: f
|
|
3898
3898
|
} = w(R);
|
|
3899
|
-
Me(
|
|
3899
|
+
Me(A.endpoints[R], {
|
|
3900
3900
|
useQuery: v,
|
|
3901
3901
|
useLazyQuery: p,
|
|
3902
3902
|
useLazyQuerySubscription: P,
|
|
@@ -3906,7 +3906,7 @@ Hook ${_} was either not provided or not a function.`);
|
|
|
3906
3906
|
}
|
|
3907
3907
|
if (oo(d)) {
|
|
3908
3908
|
const v = I(R);
|
|
3909
|
-
Me(
|
|
3909
|
+
Me(A.endpoints[R], {
|
|
3910
3910
|
useMutation: v
|
|
3911
3911
|
}), u[`use${ct(R)}Mutation`] = v;
|
|
3912
3912
|
} else if (Sr(d)) {
|
|
@@ -3915,7 +3915,7 @@ Hook ${_} was either not provided or not a function.`);
|
|
|
3915
3915
|
useInfiniteQuerySubscription: p,
|
|
3916
3916
|
useInfiniteQueryState: P
|
|
3917
3917
|
} = T(R);
|
|
3918
|
-
Me(
|
|
3918
|
+
Me(A.endpoints[R], {
|
|
3919
3919
|
useInfiniteQuery: v,
|
|
3920
3920
|
useInfiniteQuerySubscription: p,
|
|
3921
3921
|
useInfiniteQueryState: P
|
|
@@ -3931,7 +3931,7 @@ let _r = null;
|
|
|
3931
3931
|
function mo() {
|
|
3932
3932
|
return _r;
|
|
3933
3933
|
}
|
|
3934
|
-
function
|
|
3934
|
+
function ko(e) {
|
|
3935
3935
|
_r = e;
|
|
3936
3936
|
}
|
|
3937
3937
|
const vo = {
|
|
@@ -3947,7 +3947,7 @@ const vo = {
|
|
|
3947
3947
|
e.token = null;
|
|
3948
3948
|
}
|
|
3949
3949
|
}
|
|
3950
|
-
}), { setToken: Er, logout: zn } = br.actions,
|
|
3950
|
+
}), { setToken: Er, logout: zn } = br.actions, Mo = br.reducer, Qo = (e) => e[nt].token, qo = (e) => !!e[nt].token, So = "api", Rt = go({
|
|
3951
3951
|
reducerPath: So,
|
|
3952
3952
|
baseQuery: _i({
|
|
3953
3953
|
baseUrl: process.env.VITE_API_BASE_URL || "",
|
|
@@ -3957,11 +3957,12 @@ const vo = {
|
|
|
3957
3957
|
}
|
|
3958
3958
|
}),
|
|
3959
3959
|
endpoints: () => ({})
|
|
3960
|
-
}),
|
|
3960
|
+
}), Fo = Rt.reducer, xo = Rt.middleware, Pr = [
|
|
3961
3961
|
"Authentication",
|
|
3962
3962
|
"Email",
|
|
3963
3963
|
"Invitations",
|
|
3964
|
-
"Users"
|
|
3964
|
+
"Users",
|
|
3965
|
+
"GCP Resources"
|
|
3965
3966
|
], wr = Rt.enhanceEndpoints({
|
|
3966
3967
|
addTagTypes: Pr
|
|
3967
3968
|
}).injectEndpoints({
|
|
@@ -4022,6 +4023,23 @@ const vo = {
|
|
|
4022
4023
|
method: "DELETE"
|
|
4023
4024
|
}),
|
|
4024
4025
|
invalidatesTags: ["Users"]
|
|
4026
|
+
}),
|
|
4027
|
+
gcpProjectsControllerListProjects: e.query({
|
|
4028
|
+
query: (t) => ({
|
|
4029
|
+
url: "/api/gcp/projects",
|
|
4030
|
+
params: {
|
|
4031
|
+
parent: t.parent
|
|
4032
|
+
}
|
|
4033
|
+
}),
|
|
4034
|
+
providesTags: ["GCP Resources"]
|
|
4035
|
+
}),
|
|
4036
|
+
gcpProjectsControllerCreateProject: e.mutation({
|
|
4037
|
+
query: (t) => ({
|
|
4038
|
+
url: "/api/gcp/projects",
|
|
4039
|
+
method: "POST",
|
|
4040
|
+
body: t.createProjectDto
|
|
4041
|
+
}),
|
|
4042
|
+
invalidatesTags: ["GCP Resources"]
|
|
4025
4043
|
})
|
|
4026
4044
|
}),
|
|
4027
4045
|
overrideExisting: !1
|
|
@@ -4034,22 +4052,26 @@ const vo = {
|
|
|
4034
4052
|
useInvitationsControllerAcceptMutation: Ro,
|
|
4035
4053
|
useUsersControllerFindAllQuery: Oo,
|
|
4036
4054
|
useUsersControllerFindOneQuery: Io,
|
|
4037
|
-
useUsersControllerDeleteMutation:
|
|
4038
|
-
|
|
4055
|
+
useUsersControllerDeleteMutation: Co,
|
|
4056
|
+
useGcpProjectsControllerListProjectsQuery: Ao,
|
|
4057
|
+
useGcpProjectsControllerCreateProjectMutation: To
|
|
4058
|
+
} = wr, Uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4039
4059
|
__proto__: null,
|
|
4040
4060
|
addTagTypes: Pr,
|
|
4041
4061
|
api: wr,
|
|
4042
4062
|
useAuthControllerGetProfileQuery: bo,
|
|
4043
4063
|
useAuthControllerLoginMutation: _o,
|
|
4044
4064
|
useEmailControllerSendEmailMutation: Eo,
|
|
4065
|
+
useGcpProjectsControllerCreateProjectMutation: To,
|
|
4066
|
+
useGcpProjectsControllerListProjectsQuery: Ao,
|
|
4045
4067
|
useInvitationsControllerAcceptMutation: Ro,
|
|
4046
4068
|
useInvitationsControllerInviteMutation: Po,
|
|
4047
4069
|
useInvitationsControllerValidateQuery: wo,
|
|
4048
|
-
useUsersControllerDeleteMutation:
|
|
4070
|
+
useUsersControllerDeleteMutation: Co,
|
|
4049
4071
|
useUsersControllerFindAllQuery: Oo,
|
|
4050
4072
|
useUsersControllerFindOneQuery: Io
|
|
4051
4073
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4052
|
-
function
|
|
4074
|
+
function Vo(e) {
|
|
4053
4075
|
return {
|
|
4054
4076
|
prepareHeaders(t, n) {
|
|
4055
4077
|
const r = e.formatValue ? e.formatValue(n) : n;
|
|
@@ -4058,10 +4080,10 @@ function xo(e) {
|
|
|
4058
4080
|
};
|
|
4059
4081
|
}
|
|
4060
4082
|
let _e = {};
|
|
4061
|
-
function
|
|
4083
|
+
function zo(e) {
|
|
4062
4084
|
_e = e;
|
|
4063
4085
|
}
|
|
4064
|
-
function
|
|
4086
|
+
function $o() {
|
|
4065
4087
|
const e = Tr();
|
|
4066
4088
|
return e.startListening({
|
|
4067
4089
|
actionCreator: zn,
|
|
@@ -4077,7 +4099,7 @@ function Vo() {
|
|
|
4077
4099
|
}
|
|
4078
4100
|
}), e.middleware;
|
|
4079
4101
|
}
|
|
4080
|
-
function
|
|
4102
|
+
function jo() {
|
|
4081
4103
|
let e = !1;
|
|
4082
4104
|
return (t) => (n) => (r) => {
|
|
4083
4105
|
if (!e && _e.persistence) {
|
|
@@ -4088,7 +4110,7 @@ function zo() {
|
|
|
4088
4110
|
return n(r);
|
|
4089
4111
|
};
|
|
4090
4112
|
}
|
|
4091
|
-
function
|
|
4113
|
+
function Lo(e, t = "token") {
|
|
4092
4114
|
return {
|
|
4093
4115
|
getToken: () => {
|
|
4094
4116
|
try {
|
|
@@ -4110,30 +4132,32 @@ export {
|
|
|
4110
4132
|
nt as AuthKey,
|
|
4111
4133
|
Pr as addTagTypes,
|
|
4112
4134
|
wr as api,
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4135
|
+
xo as apiMiddleware,
|
|
4136
|
+
Fo as apiReducer,
|
|
4137
|
+
Mo as authReducer,
|
|
4116
4138
|
br as authSlice,
|
|
4117
4139
|
Rt as baseApi,
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4140
|
+
zo as configureAuth,
|
|
4141
|
+
jo as createAuthHydrationMiddleware,
|
|
4142
|
+
$o as createAuthListenerMiddleware,
|
|
4143
|
+
Vo as createCustomHeaderAdapter,
|
|
4144
|
+
Uo as demoScaffoldBackend,
|
|
4123
4145
|
mo as getAuthAdapter,
|
|
4124
4146
|
zn as logout,
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4147
|
+
qo as selectIsAuthenticated,
|
|
4148
|
+
Qo as selectToken,
|
|
4149
|
+
ko as setAuthAdapter,
|
|
4128
4150
|
Er as setToken,
|
|
4129
|
-
|
|
4151
|
+
Lo as storagePersistence,
|
|
4130
4152
|
bo as useAuthControllerGetProfileQuery,
|
|
4131
4153
|
_o as useAuthControllerLoginMutation,
|
|
4132
4154
|
Eo as useEmailControllerSendEmailMutation,
|
|
4155
|
+
To as useGcpProjectsControllerCreateProjectMutation,
|
|
4156
|
+
Ao as useGcpProjectsControllerListProjectsQuery,
|
|
4133
4157
|
Ro as useInvitationsControllerAcceptMutation,
|
|
4134
4158
|
Po as useInvitationsControllerInviteMutation,
|
|
4135
4159
|
wo as useInvitationsControllerValidateQuery,
|
|
4136
|
-
|
|
4160
|
+
Co as useUsersControllerDeleteMutation,
|
|
4137
4161
|
Oo as useUsersControllerFindAllQuery,
|
|
4138
4162
|
Io as useUsersControllerFindOneQuery
|
|
4139
4163
|
};
|