@ahoo-wang/fetcher-react 3.6.9 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cosec/RefreshableRouteGuard.d.ts +9 -0
- package/dist/cosec/RefreshableRouteGuard.d.ts.map +1 -0
- package/dist/cosec/index.d.ts +1 -0
- package/dist/cosec/index.d.ts.map +1 -1
- package/dist/index.es.js +333 -295
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
var
|
|
2
|
-
var s = (r, e) =>
|
|
1
|
+
var Z = Object.defineProperty;
|
|
2
|
+
var s = (r, e) => Z(r, "name", { value: e, configurable: !0 });
|
|
3
3
|
import { c as S } from "react/compiler-runtime";
|
|
4
|
-
import { useRef as
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { nameGenerator as
|
|
4
|
+
import { useRef as I, useEffect as C, useState as M, useCallback as Q, useMemo as T, useReducer as ee, useSyncExternalStore as te, createContext as re, useContext as ne } from "react";
|
|
5
|
+
import { jsx as p, Fragment as z } from "react/jsx-runtime";
|
|
6
|
+
import { nameGenerator as se } from "@ahoo-wang/fetcher-eventbus";
|
|
7
7
|
import { produce as ce } from "immer";
|
|
8
|
-
import { fetcherRegistrar as
|
|
9
|
-
import { JsonEventStreamResultExtractor as
|
|
10
|
-
function
|
|
11
|
-
const e =
|
|
8
|
+
import { fetcherRegistrar as ue, getFetcher as oe, JsonResultExtractor as le } from "@ahoo-wang/fetcher";
|
|
9
|
+
import { JsonEventStreamResultExtractor as ie } from "@ahoo-wang/fetcher-eventstream";
|
|
10
|
+
function $(r) {
|
|
11
|
+
const e = I(r);
|
|
12
12
|
return e.current = r, e;
|
|
13
13
|
}
|
|
14
|
-
s(
|
|
15
|
-
function
|
|
14
|
+
s($, "useLatest");
|
|
15
|
+
function k(r, e) {
|
|
16
16
|
const t = S(19);
|
|
17
17
|
if (e.leading === !1 && e.trailing === !1)
|
|
18
18
|
throw new Error("useDebouncedCallback: at least one of leading or trailing must be true");
|
|
19
|
-
const n =
|
|
19
|
+
const n = I(void 0), l = I(null), u = I(null), c = $(r), f = $(e);
|
|
20
20
|
let o;
|
|
21
21
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ s(() => {
|
|
22
22
|
n.current !== void 0 && (clearTimeout(n.current), n.current = void 0);
|
|
23
23
|
}, "t0"), t[0] = o) : o = t[0];
|
|
24
24
|
const y = o;
|
|
25
25
|
let a;
|
|
26
|
-
t[1] !== f ? (a = /* @__PURE__ */ s((_) =>
|
|
26
|
+
t[1] !== f ? (a = /* @__PURE__ */ s((_) => u.current ? _ - u.current >= f.current.delay : !0, "t1"), t[1] = f, t[2] = a) : a = t[2];
|
|
27
27
|
const i = a;
|
|
28
28
|
let d;
|
|
29
29
|
t[3] !== c ? (d = /* @__PURE__ */ s((_, q) => {
|
|
30
|
-
|
|
30
|
+
u.current = _, c.current(...q);
|
|
31
31
|
}, "t2"), t[3] = c, t[4] = d) : d = t[4];
|
|
32
32
|
const m = d;
|
|
33
33
|
let h;
|
|
34
34
|
t[5] !== m || t[6] !== f ? (h = /* @__PURE__ */ s(() => {
|
|
35
35
|
n.current = setTimeout(() => {
|
|
36
|
-
if (
|
|
36
|
+
if (l.current) {
|
|
37
37
|
const _ = Date.now();
|
|
38
|
-
m(_,
|
|
38
|
+
m(_, l.current);
|
|
39
39
|
}
|
|
40
40
|
n.current = void 0;
|
|
41
41
|
}, f.current.delay);
|
|
@@ -46,65 +46,65 @@ function D(r, e) {
|
|
|
46
46
|
const q = _;
|
|
47
47
|
y();
|
|
48
48
|
const {
|
|
49
|
-
leading:
|
|
50
|
-
trailing:
|
|
51
|
-
} = f.current,
|
|
52
|
-
if (
|
|
49
|
+
leading: N,
|
|
50
|
+
trailing: G
|
|
51
|
+
} = f.current, K = N === void 0 ? !1 : N, V = G === void 0 ? !0 : G;
|
|
52
|
+
if (l.current = q, V && !K) {
|
|
53
53
|
g();
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
|
-
const
|
|
57
|
-
if (
|
|
58
|
-
m(
|
|
56
|
+
const W = Date.now();
|
|
57
|
+
if (K && i(W)) {
|
|
58
|
+
m(W, q);
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
V && g();
|
|
62
62
|
}, "t4"), t[8] = m, t[9] = f, t[10] = g, t[11] = i, t[12] = E) : E = t[12];
|
|
63
63
|
const b = E;
|
|
64
64
|
let x;
|
|
65
65
|
t[13] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ s(() => {
|
|
66
|
-
y(),
|
|
66
|
+
y(), l.current = null;
|
|
67
67
|
}, "t5"), t[13] = x) : x = t[13];
|
|
68
68
|
const F = x;
|
|
69
69
|
let v;
|
|
70
70
|
t[14] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ s(() => n.current !== void 0, "t6"), t[14] = v) : v = t[14];
|
|
71
71
|
const w = v;
|
|
72
|
-
let R,
|
|
72
|
+
let R, L;
|
|
73
73
|
t[15] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ s(() => () => {
|
|
74
74
|
F();
|
|
75
|
-
}, "t7"),
|
|
76
|
-
let
|
|
77
|
-
return t[17] !== b ? (
|
|
75
|
+
}, "t7"), L = [F], t[15] = R, t[16] = L) : (R = t[15], L = t[16]), C(R, L);
|
|
76
|
+
let O;
|
|
77
|
+
return t[17] !== b ? (O = {
|
|
78
78
|
run: b,
|
|
79
79
|
cancel: F,
|
|
80
80
|
isPending: w
|
|
81
|
-
}, t[17] = b, t[18] =
|
|
81
|
+
}, t[17] = b, t[18] = O) : O = t[18], O;
|
|
82
82
|
}
|
|
83
|
-
s(
|
|
84
|
-
function
|
|
85
|
-
const r = S(3), e =
|
|
83
|
+
s(k, "useDebouncedCallback");
|
|
84
|
+
function j() {
|
|
85
|
+
const r = S(3), e = I(!1);
|
|
86
86
|
let t;
|
|
87
87
|
r[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ s(() => e.current, "t0"), r[0] = t) : t = r[0];
|
|
88
88
|
const n = t;
|
|
89
|
-
let
|
|
90
|
-
return r[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
89
|
+
let l, u;
|
|
90
|
+
return r[1] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ s(() => (e.current = !0, () => {
|
|
91
91
|
e.current = !1;
|
|
92
|
-
}), "t1"),
|
|
92
|
+
}), "t1"), u = [], r[1] = l, r[2] = u) : (l = r[1], u = r[2]), C(l, u), n;
|
|
93
93
|
}
|
|
94
|
-
s(
|
|
95
|
-
var
|
|
96
|
-
function
|
|
97
|
-
const [e, t] =
|
|
94
|
+
s(j, "useMounted");
|
|
95
|
+
var ae = /* @__PURE__ */ ((r) => (r.IDLE = "idle", r.LOADING = "loading", r.SUCCESS = "success", r.ERROR = "error", r))(ae || {});
|
|
96
|
+
function fe(r) {
|
|
97
|
+
const [e, t] = M(
|
|
98
98
|
r?.initialStatus ?? "idle"
|
|
99
99
|
/* IDLE */
|
|
100
|
-
), [n,
|
|
100
|
+
), [n, l] = M(void 0), [u, c] = M(void 0), f = j(), o = $(r), y = Q(() => {
|
|
101
101
|
f() && (t(
|
|
102
102
|
"loading"
|
|
103
103
|
/* LOADING */
|
|
104
104
|
), c(void 0));
|
|
105
105
|
}, [f]), a = Q(async (m) => {
|
|
106
106
|
if (f()) {
|
|
107
|
-
|
|
107
|
+
l(m), t(
|
|
108
108
|
"success"
|
|
109
109
|
/* SUCCESS */
|
|
110
110
|
), c(void 0);
|
|
@@ -119,7 +119,7 @@ function ae(r) {
|
|
|
119
119
|
c(m), t(
|
|
120
120
|
"error"
|
|
121
121
|
/* ERROR */
|
|
122
|
-
),
|
|
122
|
+
), l(void 0);
|
|
123
123
|
try {
|
|
124
124
|
await o.current?.onError?.(m);
|
|
125
125
|
} catch (h) {
|
|
@@ -130,28 +130,28 @@ function ae(r) {
|
|
|
130
130
|
f() && (t(
|
|
131
131
|
"idle"
|
|
132
132
|
/* IDLE */
|
|
133
|
-
), c(void 0),
|
|
133
|
+
), c(void 0), l(void 0));
|
|
134
134
|
}, [f]);
|
|
135
|
-
return
|
|
135
|
+
return T(() => ({
|
|
136
136
|
status: e,
|
|
137
137
|
loading: e === "loading",
|
|
138
138
|
result: n,
|
|
139
|
-
error:
|
|
139
|
+
error: u,
|
|
140
140
|
setLoading: y,
|
|
141
141
|
setSuccess: a,
|
|
142
142
|
setError: i,
|
|
143
143
|
setIdle: d
|
|
144
|
-
}), [e, n,
|
|
144
|
+
}), [e, n, u, y, a, i, d]);
|
|
145
145
|
}
|
|
146
|
-
s(
|
|
147
|
-
function
|
|
148
|
-
const r = S(6), e =
|
|
146
|
+
s(fe, "usePromiseState");
|
|
147
|
+
function de() {
|
|
148
|
+
const r = S(6), e = I(0);
|
|
149
149
|
let t;
|
|
150
150
|
r[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ s(() => e.current = e.current + 1, "t0"), r[0] = t) : t = r[0];
|
|
151
151
|
const n = t;
|
|
152
|
-
let
|
|
153
|
-
r[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
154
|
-
const
|
|
152
|
+
let l;
|
|
153
|
+
r[1] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ s(() => e.current, "t1"), r[1] = l) : l = r[1];
|
|
154
|
+
const u = l;
|
|
155
155
|
let c;
|
|
156
156
|
r[2] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s((m) => m === e.current, "t2"), r[2] = c) : c = r[2];
|
|
157
157
|
const f = c;
|
|
@@ -168,24 +168,24 @@ function fe() {
|
|
|
168
168
|
let d;
|
|
169
169
|
return r[5] === Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
170
170
|
generate: n,
|
|
171
|
-
current:
|
|
171
|
+
current: u,
|
|
172
172
|
isLatest: f,
|
|
173
173
|
invalidate: y,
|
|
174
174
|
reset: i
|
|
175
175
|
}, r[5] = d) : d = r[5], d;
|
|
176
176
|
}
|
|
177
|
-
s(
|
|
178
|
-
function
|
|
177
|
+
s(de, "useRequestId");
|
|
178
|
+
function U(r) {
|
|
179
179
|
const {
|
|
180
180
|
loading: e,
|
|
181
181
|
result: t,
|
|
182
182
|
error: n,
|
|
183
|
-
status:
|
|
184
|
-
setLoading:
|
|
183
|
+
status: l,
|
|
184
|
+
setLoading: u,
|
|
185
185
|
setSuccess: c,
|
|
186
186
|
setError: f,
|
|
187
187
|
setIdle: o
|
|
188
|
-
} =
|
|
188
|
+
} = fe(r), y = j(), a = de(), i = I(void 0), d = r?.propagateError, m = $(r?.onAbort), h = Q(async () => {
|
|
189
189
|
try {
|
|
190
190
|
await m.current?.();
|
|
191
191
|
} catch (x) {
|
|
@@ -196,7 +196,7 @@ function T(r) {
|
|
|
196
196
|
const F = new AbortController();
|
|
197
197
|
i.current = F;
|
|
198
198
|
const v = a.generate();
|
|
199
|
-
|
|
199
|
+
u();
|
|
200
200
|
try {
|
|
201
201
|
const w = await x(F);
|
|
202
202
|
y() && a.isLatest(v) && await c(w);
|
|
@@ -210,61 +210,61 @@ function T(r) {
|
|
|
210
210
|
} finally {
|
|
211
211
|
i.current === F && (i.current = void 0);
|
|
212
212
|
}
|
|
213
|
-
}, [
|
|
213
|
+
}, [u, c, f, o, y, a, d, h]), E = Q(() => {
|
|
214
214
|
y() && o();
|
|
215
215
|
}, [o, y]), b = Q(async () => {
|
|
216
216
|
E(), i.current && (i.current.abort(), i.current = void 0, await h());
|
|
217
217
|
}, [E, h]);
|
|
218
|
-
return
|
|
218
|
+
return C(() => () => {
|
|
219
219
|
b();
|
|
220
|
-
}, [b]),
|
|
220
|
+
}, [b]), T(() => ({
|
|
221
221
|
loading: e,
|
|
222
222
|
result: t,
|
|
223
223
|
error: n,
|
|
224
|
-
status:
|
|
224
|
+
status: l,
|
|
225
225
|
execute: g,
|
|
226
226
|
reset: E,
|
|
227
227
|
abort: b
|
|
228
|
-
}), [e, t, n,
|
|
228
|
+
}), [e, t, n, l, g, E, b]);
|
|
229
229
|
}
|
|
230
|
-
s(
|
|
231
|
-
function
|
|
230
|
+
s(U, "useExecutePromise");
|
|
231
|
+
function $e(r) {
|
|
232
232
|
const e = S(10), {
|
|
233
233
|
loading: t,
|
|
234
234
|
result: n,
|
|
235
|
-
error:
|
|
236
|
-
execute:
|
|
235
|
+
error: l,
|
|
236
|
+
execute: u,
|
|
237
237
|
reset: c,
|
|
238
238
|
abort: f,
|
|
239
239
|
status: o
|
|
240
|
-
} =
|
|
240
|
+
} = U(r), {
|
|
241
241
|
run: y,
|
|
242
242
|
cancel: a,
|
|
243
243
|
isPending: i
|
|
244
|
-
} =
|
|
244
|
+
} = k(u, r.debounce);
|
|
245
245
|
let d;
|
|
246
|
-
return e[0] !== f || e[1] !== a || e[2] !==
|
|
246
|
+
return e[0] !== f || e[1] !== a || e[2] !== l || e[3] !== i || e[4] !== t || e[5] !== c || e[6] !== n || e[7] !== y || e[8] !== o ? (d = {
|
|
247
247
|
loading: t,
|
|
248
248
|
result: n,
|
|
249
|
-
error:
|
|
249
|
+
error: l,
|
|
250
250
|
status: o,
|
|
251
251
|
reset: c,
|
|
252
252
|
abort: f,
|
|
253
253
|
run: y,
|
|
254
254
|
cancel: a,
|
|
255
255
|
isPending: i
|
|
256
|
-
}, e[0] = f, e[1] = a, e[2] =
|
|
256
|
+
}, e[0] = f, e[1] = a, e[2] = l, e[3] = i, e[4] = t, e[5] = c, e[6] = n, e[7] = y, e[8] = o, e[9] = d) : d = e[9], d;
|
|
257
257
|
}
|
|
258
|
-
s(
|
|
259
|
-
function
|
|
258
|
+
s($e, "useDebouncedExecutePromise");
|
|
259
|
+
function Oe(r) {
|
|
260
260
|
const e = S(22), t = r.autoExecute;
|
|
261
261
|
let n;
|
|
262
262
|
e[0] !== r ? (n = {
|
|
263
263
|
...r,
|
|
264
264
|
autoExecute: !1
|
|
265
265
|
}, e[0] = r, e[1] = n) : n = e[1];
|
|
266
|
-
const
|
|
267
|
-
loading:
|
|
266
|
+
const l = n, {
|
|
267
|
+
loading: u,
|
|
268
268
|
result: c,
|
|
269
269
|
error: f,
|
|
270
270
|
status: o,
|
|
@@ -273,11 +273,11 @@ function $e(r) {
|
|
|
273
273
|
abort: i,
|
|
274
274
|
getQuery: d,
|
|
275
275
|
setQuery: m
|
|
276
|
-
} =
|
|
276
|
+
} = P(l), {
|
|
277
277
|
run: h,
|
|
278
278
|
cancel: g,
|
|
279
279
|
isPending: E
|
|
280
|
-
} =
|
|
280
|
+
} = k(y, r.debounce);
|
|
281
281
|
let b;
|
|
282
282
|
e[2] !== t || e[3] !== h || e[4] !== m ? (b = /* @__PURE__ */ s((R) => {
|
|
283
283
|
m(R), t && h();
|
|
@@ -286,10 +286,10 @@ function $e(r) {
|
|
|
286
286
|
let F, v;
|
|
287
287
|
e[6] !== t || e[7] !== h ? (F = /* @__PURE__ */ s(() => {
|
|
288
288
|
t && h();
|
|
289
|
-
}, "t2"), v = [h, t], e[6] = t, e[7] = h, e[8] = F, e[9] = v) : (F = e[8], v = e[9]),
|
|
289
|
+
}, "t2"), v = [h, t], e[6] = t, e[7] = h, e[8] = F, e[9] = v) : (F = e[8], v = e[9]), C(F, v);
|
|
290
290
|
let w;
|
|
291
|
-
return e[10] !== i || e[11] !== g || e[12] !== f || e[13] !== d || e[14] !== E || e[15] !==
|
|
292
|
-
loading:
|
|
291
|
+
return e[10] !== i || e[11] !== g || e[12] !== f || e[13] !== d || e[14] !== E || e[15] !== u || e[16] !== a || e[17] !== c || e[18] !== h || e[19] !== x || e[20] !== o ? (w = {
|
|
292
|
+
loading: u,
|
|
293
293
|
result: c,
|
|
294
294
|
error: f,
|
|
295
295
|
status: o,
|
|
@@ -300,14 +300,14 @@ function $e(r) {
|
|
|
300
300
|
run: h,
|
|
301
301
|
cancel: g,
|
|
302
302
|
isPending: E
|
|
303
|
-
}, e[10] = i, e[11] = g, e[12] = f, e[13] = d, e[14] = E, e[15] =
|
|
303
|
+
}, e[10] = i, e[11] = g, e[12] = f, e[13] = d, e[14] = E, e[15] = u, e[16] = a, e[17] = c, e[18] = h, e[19] = x, e[20] = o, e[21] = w) : w = e[21], w;
|
|
304
304
|
}
|
|
305
|
-
s(
|
|
306
|
-
function
|
|
305
|
+
s(Oe, "useDebouncedQuery");
|
|
306
|
+
function me() {
|
|
307
307
|
return document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement;
|
|
308
308
|
}
|
|
309
|
-
s(
|
|
310
|
-
async function
|
|
309
|
+
s(me, "getFullscreenElement");
|
|
310
|
+
async function ye(r) {
|
|
311
311
|
try {
|
|
312
312
|
if (r.requestFullscreen)
|
|
313
313
|
await r.requestFullscreen();
|
|
@@ -323,8 +323,8 @@ async function me(r) {
|
|
|
323
323
|
throw console.error("Failed to enter fullscreen:", e), e;
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
s(
|
|
327
|
-
async function
|
|
326
|
+
s(ye, "enterFullscreen");
|
|
327
|
+
async function he() {
|
|
328
328
|
try {
|
|
329
329
|
if (document.exitFullscreen)
|
|
330
330
|
await document.exitFullscreen();
|
|
@@ -340,39 +340,39 @@ async function ye() {
|
|
|
340
340
|
throw console.error("Failed to exit fullscreen:", r), r;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
s(
|
|
344
|
-
function
|
|
343
|
+
s(he, "exitFullscreen");
|
|
344
|
+
function ge(r) {
|
|
345
345
|
document.addEventListener("fullscreenchange", r), document.addEventListener("webkitfullscreenchange", r), document.addEventListener("mozfullscreenchange", r), document.addEventListener("MSFullscreenChange", r);
|
|
346
346
|
}
|
|
347
|
-
s(
|
|
348
|
-
function
|
|
347
|
+
s(ge, "addFullscreenChangeListener");
|
|
348
|
+
function be(r) {
|
|
349
349
|
document.removeEventListener("fullscreenchange", r), document.removeEventListener("webkitfullscreenchange", r), document.removeEventListener("mozfullscreenchange", r), document.removeEventListener("MSFullscreenChange", r);
|
|
350
350
|
}
|
|
351
|
-
s(
|
|
351
|
+
s(be, "removeFullscreenChangeListener");
|
|
352
352
|
function pe(r) {
|
|
353
353
|
const e = S(18);
|
|
354
354
|
let t;
|
|
355
355
|
e[0] !== r ? (t = r === void 0 ? {} : r, e[0] = r, e[1] = t) : t = e[1];
|
|
356
356
|
const n = t, {
|
|
357
|
-
target:
|
|
358
|
-
onChange:
|
|
359
|
-
} = n, [c, f] =
|
|
357
|
+
target: l,
|
|
358
|
+
onChange: u
|
|
359
|
+
} = n, [c, f] = M(!1);
|
|
360
360
|
let o;
|
|
361
|
-
e[2] !== c || e[3] !==
|
|
362
|
-
const F =
|
|
363
|
-
F !== c && (f(F),
|
|
364
|
-
}, "t2"), e[2] = c, e[3] =
|
|
361
|
+
e[2] !== c || e[3] !== u || e[4] !== l ? (o = /* @__PURE__ */ s(() => {
|
|
362
|
+
const F = me() === (l?.current || document.documentElement);
|
|
363
|
+
F !== c && (f(F), u?.(F));
|
|
364
|
+
}, "t2"), e[2] = c, e[3] = u, e[4] = l, e[5] = o) : o = e[5];
|
|
365
365
|
const y = o;
|
|
366
366
|
let a, i;
|
|
367
|
-
e[6] !== y ? (a = /* @__PURE__ */ s(() => (
|
|
368
|
-
|
|
369
|
-
}), "t3"), i = [y], e[6] = y, e[7] = a, e[8] = i) : (a = e[7], i = e[8]),
|
|
367
|
+
e[6] !== y ? (a = /* @__PURE__ */ s(() => (ge(y), () => {
|
|
368
|
+
be(y);
|
|
369
|
+
}), "t3"), i = [y], e[6] = y, e[7] = a, e[8] = i) : (a = e[7], i = e[8]), C(a, i);
|
|
370
370
|
let d;
|
|
371
|
-
e[9] !==
|
|
372
|
-
const x =
|
|
373
|
-
await
|
|
374
|
-
}, "t5"), e[9] =
|
|
375
|
-
const m = d, h =
|
|
371
|
+
e[9] !== l ? (d = /* @__PURE__ */ s(async () => {
|
|
372
|
+
const x = l?.current || document.documentElement;
|
|
373
|
+
await ye(x);
|
|
374
|
+
}, "t5"), e[9] = l, e[10] = d) : d = e[10];
|
|
375
|
+
const m = d, h = Ee;
|
|
376
376
|
let g;
|
|
377
377
|
e[11] !== m || e[12] !== c ? (g = /* @__PURE__ */ s(async () => {
|
|
378
378
|
c ? await h() : await m();
|
|
@@ -387,23 +387,23 @@ function pe(r) {
|
|
|
387
387
|
}, e[14] = m, e[15] = c, e[16] = E, e[17] = b) : b = e[17], b;
|
|
388
388
|
}
|
|
389
389
|
s(pe, "useFullscreen");
|
|
390
|
-
async function
|
|
391
|
-
await
|
|
390
|
+
async function Ee() {
|
|
391
|
+
await he();
|
|
392
392
|
}
|
|
393
|
-
s(
|
|
393
|
+
s(Ee, "_temp$1");
|
|
394
394
|
function Pe() {
|
|
395
|
-
const r =
|
|
395
|
+
const r = I(/* @__PURE__ */ new Map()), e = Q((i) => r.current.get(i), []), t = Q((i, d) => r.current.set(i, d), []), n = Q((i) => r.current.has(i), []), l = Q((i) => r.current.delete(i), []), u = Q(() => r.current.clear(), []), c = Q(() => r.current.keys(), []), f = Q(() => r.current.values(), []), o = Q(() => r.current.entries(), []), y = Q(() => r.current[Symbol.iterator](), []), a = Q((i) => (d) => {
|
|
396
396
|
d ? r.current.set(i, d) : r.current.delete(i);
|
|
397
397
|
}, []);
|
|
398
|
-
return
|
|
398
|
+
return C(() => () => {
|
|
399
399
|
r.current.clear();
|
|
400
|
-
}, []),
|
|
400
|
+
}, []), T(() => ({
|
|
401
401
|
register: a,
|
|
402
402
|
get: e,
|
|
403
403
|
set: t,
|
|
404
404
|
has: n,
|
|
405
|
-
delete:
|
|
406
|
-
clear:
|
|
405
|
+
delete: l,
|
|
406
|
+
clear: u,
|
|
407
407
|
keys: c,
|
|
408
408
|
values: f,
|
|
409
409
|
entries: o,
|
|
@@ -411,33 +411,33 @@ function Pe() {
|
|
|
411
411
|
return r.current.size;
|
|
412
412
|
},
|
|
413
413
|
[Symbol.iterator]: y
|
|
414
|
-
}), [a, e, t, n,
|
|
414
|
+
}), [a, e, t, n, l, u, c, f, o, y]);
|
|
415
415
|
}
|
|
416
416
|
s(Pe, "useRefs");
|
|
417
417
|
function Ae() {
|
|
418
|
-
const [, r] =
|
|
418
|
+
const [, r] = ee(xe, 0);
|
|
419
419
|
return r;
|
|
420
420
|
}
|
|
421
421
|
s(Ae, "useForceUpdate");
|
|
422
|
-
function
|
|
422
|
+
function xe(r) {
|
|
423
423
|
return r + 1;
|
|
424
424
|
}
|
|
425
|
-
s(
|
|
426
|
-
function
|
|
425
|
+
s(xe, "_temp");
|
|
426
|
+
function J(r) {
|
|
427
427
|
const e = S(12), {
|
|
428
428
|
initialQuery: t,
|
|
429
429
|
query: n,
|
|
430
|
-
autoExecute:
|
|
431
|
-
execute:
|
|
432
|
-
} = r, c =
|
|
430
|
+
autoExecute: l,
|
|
431
|
+
execute: u
|
|
432
|
+
} = r, c = l === void 0 ? !0 : l, o = I(n ?? t);
|
|
433
433
|
let y;
|
|
434
434
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ s(() => o.current, "t1"), e[0] = y) : y = e[0];
|
|
435
435
|
const a = y;
|
|
436
436
|
let i;
|
|
437
|
-
e[1] !== c || e[2] !==
|
|
437
|
+
e[1] !== c || e[2] !== u ? (i = /* @__PURE__ */ s(() => {
|
|
438
438
|
const x = a();
|
|
439
|
-
c &&
|
|
440
|
-
}, "t2"), e[1] = c, e[2] =
|
|
439
|
+
c && D(x) && u(x);
|
|
440
|
+
}, "t2"), e[1] = c, e[2] = u, e[3] = i) : i = e[3];
|
|
441
441
|
const d = i;
|
|
442
442
|
let m;
|
|
443
443
|
e[4] !== d ? (m = /* @__PURE__ */ s((x) => {
|
|
@@ -446,29 +446,29 @@ function j(r) {
|
|
|
446
446
|
const h = m;
|
|
447
447
|
let g, E;
|
|
448
448
|
e[6] !== d || e[7] !== n ? (g = /* @__PURE__ */ s(() => {
|
|
449
|
-
|
|
450
|
-
}, "t4"), E = [d, n], e[6] = d, e[7] = n, e[8] = g, e[9] = E) : (g = e[8], E = e[9]),
|
|
449
|
+
D(n) && (o.current = n), d();
|
|
450
|
+
}, "t4"), E = [d, n], e[6] = d, e[7] = n, e[8] = g, e[9] = E) : (g = e[8], E = e[9]), C(g, E);
|
|
451
451
|
let b;
|
|
452
452
|
return e[10] !== h ? (b = {
|
|
453
453
|
getQuery: a,
|
|
454
454
|
setQuery: h
|
|
455
455
|
}, e[10] = h, e[11] = b) : b = e[11], b;
|
|
456
456
|
}
|
|
457
|
-
s(
|
|
458
|
-
function
|
|
457
|
+
s(J, "useQueryState");
|
|
458
|
+
function D(r) {
|
|
459
459
|
return r !== void 0;
|
|
460
460
|
}
|
|
461
|
-
s(
|
|
462
|
-
function
|
|
463
|
-
const e = S(21), t =
|
|
461
|
+
s(D, "isValidateQuery");
|
|
462
|
+
function P(r) {
|
|
463
|
+
const e = S(21), t = $(r), {
|
|
464
464
|
loading: n,
|
|
465
|
-
result:
|
|
466
|
-
error:
|
|
465
|
+
result: l,
|
|
466
|
+
error: u,
|
|
467
467
|
status: c,
|
|
468
468
|
execute: f,
|
|
469
469
|
reset: o,
|
|
470
470
|
abort: y
|
|
471
|
-
} =
|
|
471
|
+
} = U(r);
|
|
472
472
|
let a;
|
|
473
473
|
e[0] !== t || e[1] !== f ? (a = /* @__PURE__ */ s((x) => f(/* @__PURE__ */ s(async (v) => t.current.execute(x, t.current.attributes, v), "queryExecutor")), "t0"), e[0] = t, e[1] = f, e[2] = a) : a = e[2];
|
|
474
474
|
const i = a;
|
|
@@ -482,42 +482,42 @@ function p(r) {
|
|
|
482
482
|
const {
|
|
483
483
|
getQuery: m,
|
|
484
484
|
setQuery: h
|
|
485
|
-
} =
|
|
485
|
+
} = J(d);
|
|
486
486
|
let g;
|
|
487
487
|
e[8] !== i || e[9] !== m ? (g = /* @__PURE__ */ s(async () => {
|
|
488
488
|
const x = m();
|
|
489
|
-
if (
|
|
489
|
+
if (D(x))
|
|
490
490
|
return await i(x);
|
|
491
491
|
}, "t2"), e[8] = i, e[9] = m, e[10] = g) : g = e[10];
|
|
492
492
|
const E = g;
|
|
493
493
|
let b;
|
|
494
|
-
return e[11] !== y || e[12] !==
|
|
494
|
+
return e[11] !== y || e[12] !== u || e[13] !== E || e[14] !== m || e[15] !== n || e[16] !== o || e[17] !== l || e[18] !== h || e[19] !== c ? (b = {
|
|
495
495
|
loading: n,
|
|
496
|
-
result:
|
|
497
|
-
error:
|
|
496
|
+
result: l,
|
|
497
|
+
error: u,
|
|
498
498
|
status: c,
|
|
499
499
|
execute: E,
|
|
500
500
|
reset: o,
|
|
501
501
|
abort: y,
|
|
502
502
|
getQuery: m,
|
|
503
503
|
setQuery: h
|
|
504
|
-
}, e[11] = y, e[12] =
|
|
504
|
+
}, e[11] = y, e[12] = u, e[13] = E, e[14] = m, e[15] = n, e[16] = o, e[17] = l, e[18] = h, e[19] = c, e[20] = b) : b = e[20], b;
|
|
505
505
|
}
|
|
506
|
-
s(
|
|
507
|
-
function
|
|
506
|
+
s(P, "useQuery");
|
|
507
|
+
function Y(r, e) {
|
|
508
508
|
const t = S(13);
|
|
509
509
|
let n;
|
|
510
510
|
t[0] !== r ? (n = /* @__PURE__ */ s((m) => r.addListener({
|
|
511
|
-
name:
|
|
511
|
+
name: se.generate("useKeyStorage"),
|
|
512
512
|
handle: m
|
|
513
513
|
}), "t0"), t[0] = r, t[1] = n) : n = t[1];
|
|
514
|
-
const
|
|
515
|
-
let
|
|
516
|
-
t[2] !== e || t[3] !== r ? (
|
|
514
|
+
const l = n;
|
|
515
|
+
let u;
|
|
516
|
+
t[2] !== e || t[3] !== r ? (u = /* @__PURE__ */ s(() => {
|
|
517
517
|
const m = r.get();
|
|
518
518
|
return m !== null ? m : e ?? null;
|
|
519
|
-
}, "t1"), t[2] = e, t[3] = r, t[4] =
|
|
520
|
-
const c =
|
|
519
|
+
}, "t1"), t[2] = e, t[3] = r, t[4] = u) : u = t[4];
|
|
520
|
+
const c = u, f = te(l, c, c);
|
|
521
521
|
let o;
|
|
522
522
|
t[5] !== r ? (o = /* @__PURE__ */ s((m) => r.set(m), "t2"), t[5] = r, t[6] = o) : o = t[6];
|
|
523
523
|
const y = o;
|
|
@@ -527,34 +527,34 @@ function J(r, e) {
|
|
|
527
527
|
let d;
|
|
528
528
|
return t[9] !== i || t[10] !== y || t[11] !== f ? (d = [f, y, i], t[9] = i, t[10] = y, t[11] = f, t[12] = d) : d = t[12], d;
|
|
529
529
|
}
|
|
530
|
-
s(
|
|
531
|
-
function
|
|
532
|
-
const t = S(8), [n,
|
|
530
|
+
s(Y, "useKeyStorage");
|
|
531
|
+
function Me(r, e) {
|
|
532
|
+
const t = S(8), [n, l, u] = Y(r, e);
|
|
533
533
|
let c;
|
|
534
|
-
t[0] !==
|
|
534
|
+
t[0] !== u || t[1] !== l || t[2] !== n ? (c = /* @__PURE__ */ s((y) => {
|
|
535
535
|
const a = ce(n, y);
|
|
536
536
|
if (a === null) {
|
|
537
|
-
|
|
537
|
+
u();
|
|
538
538
|
return;
|
|
539
539
|
}
|
|
540
|
-
return
|
|
541
|
-
}, "t0"), t[0] =
|
|
540
|
+
return l(a);
|
|
541
|
+
}, "t0"), t[0] = u, t[1] = l, t[2] = n, t[3] = c) : c = t[3];
|
|
542
542
|
const f = c;
|
|
543
543
|
let o;
|
|
544
|
-
return t[4] !==
|
|
544
|
+
return t[4] !== u || t[5] !== f || t[6] !== n ? (o = [n, f, u], t[4] = u, t[5] = f, t[6] = n, t[7] = o) : o = t[7], o;
|
|
545
545
|
}
|
|
546
|
-
s(
|
|
547
|
-
const
|
|
546
|
+
s(Me, "useImmerKeyStorage");
|
|
547
|
+
const Fe = {
|
|
548
548
|
jti: "",
|
|
549
549
|
sub: "anonymous",
|
|
550
550
|
iat: 0,
|
|
551
551
|
exp: 0
|
|
552
552
|
};
|
|
553
|
-
function
|
|
553
|
+
function ve(r, e) {
|
|
554
554
|
const t = S(13);
|
|
555
555
|
let n;
|
|
556
556
|
t[0] !== e ? (n = e === void 0 ? {} : e, t[0] = e, t[1] = n) : n = t[1];
|
|
557
|
-
const
|
|
557
|
+
const l = n, [u, , c] = Y(r), f = $(l);
|
|
558
558
|
let o;
|
|
559
559
|
t[2] !== f || t[3] !== r ? (o = /* @__PURE__ */ s(async (g) => {
|
|
560
560
|
const E = typeof g == "function" ? await g() : g;
|
|
@@ -565,7 +565,7 @@ function Fe(r, e) {
|
|
|
565
565
|
t[5] !== f || t[6] !== c ? (a = /* @__PURE__ */ s(() => {
|
|
566
566
|
c(), f.current.onSignOut?.();
|
|
567
567
|
}, "t3"), t[5] = f, t[6] = c, t[7] = a) : a = t[7];
|
|
568
|
-
const i = a, d =
|
|
568
|
+
const i = a, d = u?.access?.payload ?? Fe, m = u?.authenticated ?? !1;
|
|
569
569
|
let h;
|
|
570
570
|
return t[8] !== y || t[9] !== i || t[10] !== d || t[11] !== m ? (h = {
|
|
571
571
|
currentUser: d,
|
|
@@ -574,67 +574,104 @@ function Fe(r, e) {
|
|
|
574
574
|
signOut: i
|
|
575
575
|
}, t[8] = y, t[9] = i, t[10] = d, t[11] = m, t[12] = h) : h = t[12], h;
|
|
576
576
|
}
|
|
577
|
-
s(
|
|
578
|
-
const
|
|
579
|
-
function
|
|
577
|
+
s(ve, "useSecurity");
|
|
578
|
+
const B = re(void 0);
|
|
579
|
+
function ze(r) {
|
|
580
580
|
const e = S(7);
|
|
581
|
-
let t, n,
|
|
581
|
+
let t, n, l;
|
|
582
582
|
e[0] !== r ? ({
|
|
583
583
|
tokenStorage: n,
|
|
584
584
|
children: t,
|
|
585
|
-
...
|
|
586
|
-
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] =
|
|
587
|
-
const
|
|
585
|
+
...l
|
|
586
|
+
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = l) : (t = e[1], n = e[2], l = e[3]);
|
|
587
|
+
const u = ve(n, l);
|
|
588
588
|
let c;
|
|
589
|
-
return e[4] !== t || e[5] !==
|
|
589
|
+
return e[4] !== t || e[5] !== u ? (c = /* @__PURE__ */ p(B.Provider, { value: u, children: t }), e[4] = t, e[5] = u, e[6] = c) : c = e[6], c;
|
|
590
590
|
}
|
|
591
|
-
s(
|
|
592
|
-
function
|
|
593
|
-
const r =
|
|
591
|
+
s(ze, "SecurityProvider");
|
|
592
|
+
function H() {
|
|
593
|
+
const r = ne(B);
|
|
594
594
|
if (!r)
|
|
595
595
|
throw new Error("useSecurityContext must be used within a SecurityProvider");
|
|
596
596
|
return r;
|
|
597
597
|
}
|
|
598
|
-
s(
|
|
599
|
-
function
|
|
598
|
+
s(H, "useSecurityContext");
|
|
599
|
+
function De(r) {
|
|
600
600
|
const e = S(2), {
|
|
601
601
|
children: t,
|
|
602
602
|
fallback: n,
|
|
603
|
-
onUnauthorized:
|
|
603
|
+
onUnauthorized: l
|
|
604
604
|
} = r, {
|
|
605
|
-
authenticated:
|
|
606
|
-
} =
|
|
607
|
-
if (
|
|
605
|
+
authenticated: u
|
|
606
|
+
} = H();
|
|
607
|
+
if (u) {
|
|
608
608
|
let c;
|
|
609
|
-
return e[0] !== t ? (c = /* @__PURE__ */
|
|
609
|
+
return e[0] !== t ? (c = /* @__PURE__ */ p(z, { children: t }), e[0] = t, e[1] = c) : c = e[1], c;
|
|
610
|
+
}
|
|
611
|
+
return l && l(), n;
|
|
612
|
+
}
|
|
613
|
+
s(De, "RouteGuard");
|
|
614
|
+
function ke(r) {
|
|
615
|
+
const e = S(14), {
|
|
616
|
+
children: t,
|
|
617
|
+
fallback: n,
|
|
618
|
+
refreshing: l,
|
|
619
|
+
tokenManager: u
|
|
620
|
+
} = r, {
|
|
621
|
+
authenticated: c
|
|
622
|
+
} = H(), f = u.isRefreshNeeded && u.isRefreshable;
|
|
623
|
+
let o;
|
|
624
|
+
e[0] !== f || e[1] !== u ? (o = /* @__PURE__ */ s(async () => {
|
|
625
|
+
if (f)
|
|
626
|
+
try {
|
|
627
|
+
await u.refresh();
|
|
628
|
+
} catch (g) {
|
|
629
|
+
console.error(g);
|
|
630
|
+
}
|
|
631
|
+
}, "t1"), e[0] = f, e[1] = u, e[2] = o) : o = e[2];
|
|
632
|
+
const y = o;
|
|
633
|
+
let a, i;
|
|
634
|
+
if (e[3] !== y ? (a = /* @__PURE__ */ s(() => {
|
|
635
|
+
y();
|
|
636
|
+
}, "t2"), i = [y], e[3] = y, e[4] = a, e[5] = i) : (a = e[4], i = e[5]), C(a, i), c) {
|
|
637
|
+
let g;
|
|
638
|
+
return e[6] !== t ? (g = /* @__PURE__ */ p(z, { children: t }), e[6] = t, e[7] = g) : g = e[7], g;
|
|
639
|
+
}
|
|
640
|
+
if (!f) {
|
|
641
|
+
let g;
|
|
642
|
+
return e[8] !== n ? (g = /* @__PURE__ */ p(z, { children: n }), e[8] = n, e[9] = g) : g = e[9], g;
|
|
610
643
|
}
|
|
611
|
-
|
|
644
|
+
let d;
|
|
645
|
+
e[10] !== l ? (d = l ?? /* @__PURE__ */ p("p", { children: "Refreshing..." }), e[10] = l, e[11] = d) : d = e[11];
|
|
646
|
+
const m = d;
|
|
647
|
+
let h;
|
|
648
|
+
return e[12] !== m ? (h = /* @__PURE__ */ p(z, { children: m }), e[12] = m, e[13] = h) : h = e[13], h;
|
|
612
649
|
}
|
|
613
|
-
s(
|
|
614
|
-
function
|
|
650
|
+
s(ke, "RefreshableRouteGuard");
|
|
651
|
+
function X(r) {
|
|
615
652
|
const e = S(21);
|
|
616
653
|
let t;
|
|
617
654
|
e[0] !== r ? (t = r || {}, e[0] = r, e[1] = t) : t = e[1];
|
|
618
655
|
const {
|
|
619
656
|
fetcher: n
|
|
620
|
-
} = t,
|
|
621
|
-
loading:
|
|
657
|
+
} = t, l = n === void 0 ? ue.default : n, {
|
|
658
|
+
loading: u,
|
|
622
659
|
result: c,
|
|
623
660
|
error: f,
|
|
624
661
|
status: o,
|
|
625
662
|
execute: y,
|
|
626
663
|
reset: a,
|
|
627
664
|
abort: i
|
|
628
|
-
} =
|
|
665
|
+
} = U(r), [d, m] = M(void 0), h = $(r);
|
|
629
666
|
let g;
|
|
630
|
-
e[2] !==
|
|
667
|
+
e[2] !== l ? (g = oe(l), e[2] = l, e[3] = g) : g = e[3];
|
|
631
668
|
const E = g;
|
|
632
669
|
let b;
|
|
633
|
-
e[4] !== E || e[5] !== h || e[6] !== y ? (b = /* @__PURE__ */ s(async (
|
|
670
|
+
e[4] !== E || e[5] !== h || e[6] !== y ? (b = /* @__PURE__ */ s(async (O) => {
|
|
634
671
|
try {
|
|
635
672
|
await y(async (_) => {
|
|
636
|
-
|
|
637
|
-
const q = await E.exchange(
|
|
673
|
+
O.abortController = _;
|
|
674
|
+
const q = await E.exchange(O, h.current);
|
|
638
675
|
return m(q), await q.extractResult();
|
|
639
676
|
});
|
|
640
677
|
} catch (_) {
|
|
@@ -653,9 +690,9 @@ function B(r) {
|
|
|
653
690
|
i(), m(void 0);
|
|
654
691
|
}, "t5"), e[10] = i, e[11] = w) : w = e[11];
|
|
655
692
|
const R = w;
|
|
656
|
-
let
|
|
657
|
-
return e[12] !== R || e[13] !== f || e[14] !== d || e[15] !== x || e[16] !==
|
|
658
|
-
loading:
|
|
693
|
+
let L;
|
|
694
|
+
return e[12] !== R || e[13] !== f || e[14] !== d || e[15] !== x || e[16] !== u || e[17] !== v || e[18] !== c || e[19] !== o ? (L = {
|
|
695
|
+
loading: u,
|
|
659
696
|
result: c,
|
|
660
697
|
error: f,
|
|
661
698
|
status: o,
|
|
@@ -663,37 +700,37 @@ function B(r) {
|
|
|
663
700
|
execute: x,
|
|
664
701
|
reset: v,
|
|
665
702
|
abort: R
|
|
666
|
-
}, e[12] = R, e[13] = f, e[14] = d, e[15] = x, e[16] =
|
|
703
|
+
}, e[12] = R, e[13] = f, e[14] = d, e[15] = x, e[16] = u, e[17] = v, e[18] = c, e[19] = o, e[20] = L) : L = e[20], L;
|
|
667
704
|
}
|
|
668
|
-
s(
|
|
705
|
+
s(X, "useFetcher");
|
|
669
706
|
function Te(r) {
|
|
670
707
|
const e = S(11), {
|
|
671
708
|
loading: t,
|
|
672
709
|
result: n,
|
|
673
|
-
error:
|
|
674
|
-
status:
|
|
710
|
+
error: l,
|
|
711
|
+
status: u,
|
|
675
712
|
exchange: c,
|
|
676
713
|
execute: f,
|
|
677
714
|
reset: o,
|
|
678
715
|
abort: y
|
|
679
|
-
} =
|
|
716
|
+
} = X(r), {
|
|
680
717
|
run: a,
|
|
681
718
|
cancel: i,
|
|
682
719
|
isPending: d
|
|
683
|
-
} =
|
|
720
|
+
} = k(f, r.debounce);
|
|
684
721
|
let m;
|
|
685
|
-
return e[0] !== y || e[1] !== i || e[2] !==
|
|
722
|
+
return e[0] !== y || e[1] !== i || e[2] !== l || e[3] !== c || e[4] !== d || e[5] !== t || e[6] !== o || e[7] !== n || e[8] !== a || e[9] !== u ? (m = {
|
|
686
723
|
loading: t,
|
|
687
724
|
result: n,
|
|
688
|
-
error:
|
|
689
|
-
status:
|
|
725
|
+
error: l,
|
|
726
|
+
status: u,
|
|
690
727
|
exchange: c,
|
|
691
728
|
reset: o,
|
|
692
729
|
abort: y,
|
|
693
730
|
run: a,
|
|
694
731
|
cancel: i,
|
|
695
732
|
isPending: d
|
|
696
|
-
}, e[0] = y, e[1] = i, e[2] =
|
|
733
|
+
}, e[0] = y, e[1] = i, e[2] = l, e[3] = c, e[4] = d, e[5] = t, e[6] = o, e[7] = n, e[8] = a, e[9] = u, e[10] = m) : m = e[10], m;
|
|
697
734
|
}
|
|
698
735
|
s(Te, "useDebouncedFetcher");
|
|
699
736
|
function Ue(r) {
|
|
@@ -703,8 +740,8 @@ function Ue(r) {
|
|
|
703
740
|
...r,
|
|
704
741
|
autoExecute: !1
|
|
705
742
|
}, e[0] = r, e[1] = n) : n = e[1];
|
|
706
|
-
const
|
|
707
|
-
loading:
|
|
743
|
+
const l = n, {
|
|
744
|
+
loading: u,
|
|
708
745
|
result: c,
|
|
709
746
|
error: f,
|
|
710
747
|
status: o,
|
|
@@ -713,11 +750,11 @@ function Ue(r) {
|
|
|
713
750
|
abort: i,
|
|
714
751
|
getQuery: d,
|
|
715
752
|
setQuery: m
|
|
716
|
-
} =
|
|
753
|
+
} = A(l), {
|
|
717
754
|
run: h,
|
|
718
755
|
cancel: g,
|
|
719
756
|
isPending: E
|
|
720
|
-
} =
|
|
757
|
+
} = k(y, r.debounce);
|
|
721
758
|
let b;
|
|
722
759
|
e[2] !== t || e[3] !== h || e[4] !== m ? (b = /* @__PURE__ */ s((R) => {
|
|
723
760
|
m(R), t && h();
|
|
@@ -726,10 +763,10 @@ function Ue(r) {
|
|
|
726
763
|
let F, v;
|
|
727
764
|
e[6] !== t || e[7] !== h ? (F = /* @__PURE__ */ s(() => {
|
|
728
765
|
t && h();
|
|
729
|
-
}, "t2"), v = [h, t], e[6] = t, e[7] = h, e[8] = F, e[9] = v) : (F = e[8], v = e[9]),
|
|
766
|
+
}, "t2"), v = [h, t], e[6] = t, e[7] = h, e[8] = F, e[9] = v) : (F = e[8], v = e[9]), C(F, v);
|
|
730
767
|
let w;
|
|
731
|
-
return e[10] !== i || e[11] !== g || e[12] !== f || e[13] !== d || e[14] !== E || e[15] !==
|
|
732
|
-
loading:
|
|
768
|
+
return e[10] !== i || e[11] !== g || e[12] !== f || e[13] !== d || e[14] !== E || e[15] !== u || e[16] !== a || e[17] !== c || e[18] !== h || e[19] !== x || e[20] !== o ? (w = {
|
|
769
|
+
loading: u,
|
|
733
770
|
result: c,
|
|
734
771
|
error: f,
|
|
735
772
|
status: o,
|
|
@@ -740,34 +777,34 @@ function Ue(r) {
|
|
|
740
777
|
run: h,
|
|
741
778
|
cancel: g,
|
|
742
779
|
isPending: E
|
|
743
|
-
}, e[10] = i, e[11] = g, e[12] = f, e[13] = d, e[14] = E, e[15] =
|
|
780
|
+
}, e[10] = i, e[11] = g, e[12] = f, e[13] = d, e[14] = E, e[15] = u, e[16] = a, e[17] = c, e[18] = h, e[19] = x, e[20] = o, e[21] = w) : w = e[21], w;
|
|
744
781
|
}
|
|
745
782
|
s(Ue, "useDebouncedFetcherQuery");
|
|
746
|
-
function
|
|
783
|
+
function A(r) {
|
|
747
784
|
const e = S(23);
|
|
748
785
|
let t;
|
|
749
786
|
e[0] !== r ? (t = {
|
|
750
|
-
resultExtractor:
|
|
787
|
+
resultExtractor: le,
|
|
751
788
|
...r
|
|
752
789
|
}, e[0] = r, e[1] = t) : t = e[1];
|
|
753
|
-
const n = t,
|
|
754
|
-
loading:
|
|
790
|
+
const n = t, l = $(n), {
|
|
791
|
+
loading: u,
|
|
755
792
|
result: c,
|
|
756
793
|
error: f,
|
|
757
794
|
status: o,
|
|
758
795
|
execute: y,
|
|
759
796
|
reset: a,
|
|
760
797
|
abort: i
|
|
761
|
-
} =
|
|
798
|
+
} = X(n);
|
|
762
799
|
let d;
|
|
763
|
-
e[2] !== y || e[3] !==
|
|
800
|
+
e[2] !== y || e[3] !== l ? (d = /* @__PURE__ */ s((v) => {
|
|
764
801
|
const w = {
|
|
765
|
-
url:
|
|
802
|
+
url: l.current.url,
|
|
766
803
|
method: "POST",
|
|
767
804
|
body: v
|
|
768
805
|
};
|
|
769
806
|
return y(w);
|
|
770
|
-
}, "t1"), e[2] = y, e[3] =
|
|
807
|
+
}, "t1"), e[2] = y, e[3] = l, e[4] = d) : d = e[4];
|
|
771
808
|
const m = d;
|
|
772
809
|
let h;
|
|
773
810
|
e[5] !== m || e[6] !== n.autoExecute || e[7] !== n.initialQuery || e[8] !== n.query ? (h = {
|
|
@@ -779,17 +816,17 @@ function P(r) {
|
|
|
779
816
|
const {
|
|
780
817
|
getQuery: g,
|
|
781
818
|
setQuery: E
|
|
782
|
-
} =
|
|
819
|
+
} = J(h);
|
|
783
820
|
let b;
|
|
784
821
|
e[10] !== m || e[11] !== g ? (b = /* @__PURE__ */ s(async () => {
|
|
785
822
|
const v = g();
|
|
786
|
-
if (
|
|
823
|
+
if (D(v))
|
|
787
824
|
return await m(v);
|
|
788
825
|
}, "t3"), e[10] = m, e[11] = g, e[12] = b) : b = e[12];
|
|
789
826
|
const x = b;
|
|
790
827
|
let F;
|
|
791
|
-
return e[13] !== i || e[14] !== f || e[15] !== x || e[16] !== g || e[17] !==
|
|
792
|
-
loading:
|
|
828
|
+
return e[13] !== i || e[14] !== f || e[15] !== x || e[16] !== g || e[17] !== u || e[18] !== a || e[19] !== c || e[20] !== E || e[21] !== o ? (F = {
|
|
829
|
+
loading: u,
|
|
793
830
|
result: c,
|
|
794
831
|
error: f,
|
|
795
832
|
status: o,
|
|
@@ -798,15 +835,15 @@ function P(r) {
|
|
|
798
835
|
abort: i,
|
|
799
836
|
getQuery: g,
|
|
800
837
|
setQuery: E
|
|
801
|
-
}, e[13] = i, e[14] = f, e[15] = x, e[16] = g, e[17] =
|
|
838
|
+
}, e[13] = i, e[14] = f, e[15] = x, e[16] = g, e[17] = u, e[18] = a, e[19] = c, e[20] = E, e[21] = o, e[22] = F) : F = e[22], F;
|
|
802
839
|
}
|
|
803
|
-
s(
|
|
804
|
-
function
|
|
805
|
-
return
|
|
840
|
+
s(A, "useFetcherQuery");
|
|
841
|
+
function Ne(r) {
|
|
842
|
+
return A(r);
|
|
806
843
|
}
|
|
807
|
-
s(
|
|
844
|
+
s(Ne, "useFetcherCountQuery");
|
|
808
845
|
function Ge(r) {
|
|
809
|
-
return
|
|
846
|
+
return A(r);
|
|
810
847
|
}
|
|
811
848
|
s(Ge, "useFetcherListQuery");
|
|
812
849
|
function Ke(r) {
|
|
@@ -814,103 +851,104 @@ function Ke(r) {
|
|
|
814
851
|
let t;
|
|
815
852
|
return e[0] !== r ? (t = {
|
|
816
853
|
...r,
|
|
817
|
-
resultExtractor:
|
|
818
|
-
}, e[0] = r, e[1] = t) : t = e[1],
|
|
854
|
+
resultExtractor: ie
|
|
855
|
+
}, e[0] = r, e[1] = t) : t = e[1], A(t);
|
|
819
856
|
}
|
|
820
857
|
s(Ke, "useFetcherListStreamQuery");
|
|
821
|
-
function Ne(r) {
|
|
822
|
-
return P(r);
|
|
823
|
-
}
|
|
824
|
-
s(Ne, "useFetcherPagedQuery");
|
|
825
858
|
function Ve(r) {
|
|
826
|
-
return
|
|
859
|
+
return A(r);
|
|
827
860
|
}
|
|
828
|
-
s(Ve, "
|
|
861
|
+
s(Ve, "useFetcherPagedQuery");
|
|
829
862
|
function We(r) {
|
|
830
|
-
return
|
|
863
|
+
return A(r);
|
|
831
864
|
}
|
|
832
|
-
s(We, "
|
|
865
|
+
s(We, "useFetcherSingleQuery");
|
|
833
866
|
function je(r) {
|
|
834
|
-
return
|
|
867
|
+
return P(r);
|
|
835
868
|
}
|
|
836
|
-
s(je, "
|
|
869
|
+
s(je, "useCountQuery");
|
|
837
870
|
function Je(r) {
|
|
838
|
-
return
|
|
871
|
+
return P(r);
|
|
839
872
|
}
|
|
840
|
-
s(Je, "
|
|
873
|
+
s(Je, "useListQuery");
|
|
841
874
|
function Ye(r) {
|
|
842
|
-
return
|
|
875
|
+
return P(r);
|
|
843
876
|
}
|
|
844
|
-
s(Ye, "
|
|
877
|
+
s(Ye, "useListStreamQuery");
|
|
845
878
|
function Be(r) {
|
|
846
|
-
return
|
|
879
|
+
return P(r);
|
|
847
880
|
}
|
|
848
|
-
s(Be, "
|
|
881
|
+
s(Be, "usePagedQuery");
|
|
849
882
|
function He(r) {
|
|
883
|
+
return P(r);
|
|
884
|
+
}
|
|
885
|
+
s(He, "useSingleQuery");
|
|
886
|
+
function Xe(r) {
|
|
850
887
|
const e = S(13), {
|
|
851
888
|
bus: t,
|
|
852
889
|
handler: n
|
|
853
890
|
} = r;
|
|
854
|
-
let
|
|
855
|
-
e[0] !== t || e[1] !== n ? (
|
|
856
|
-
const
|
|
891
|
+
let l;
|
|
892
|
+
e[0] !== t || e[1] !== n ? (l = /* @__PURE__ */ s(() => t.on(n), "t0"), e[0] = t, e[1] = n, e[2] = l) : l = e[2];
|
|
893
|
+
const u = l;
|
|
857
894
|
let c;
|
|
858
895
|
e[3] !== t || e[4] !== n.name ? (c = /* @__PURE__ */ s(() => t.off(n.name), "t1"), e[3] = t, e[4] = n.name, e[5] = c) : c = e[5];
|
|
859
896
|
const f = c;
|
|
860
897
|
let o, y;
|
|
861
898
|
e[6] !== t || e[7] !== n ? (o = /* @__PURE__ */ s(() => (t.on(n) || console.warn(`Failed to subscribe to event bus with handler: ${n.name}`), () => {
|
|
862
899
|
t.off(n.name);
|
|
863
|
-
}), "t2"), y = [t, n], e[6] = t, e[7] = n, e[8] = o, e[9] = y) : (o = e[8], y = e[9]),
|
|
900
|
+
}), "t2"), y = [t, n], e[6] = t, e[7] = n, e[8] = o, e[9] = y) : (o = e[8], y = e[9]), C(o, y);
|
|
864
901
|
let a;
|
|
865
|
-
return e[10] !==
|
|
866
|
-
subscribe:
|
|
902
|
+
return e[10] !== u || e[11] !== f ? (a = {
|
|
903
|
+
subscribe: u,
|
|
867
904
|
unsubscribe: f
|
|
868
|
-
}, e[10] =
|
|
905
|
+
}, e[10] = u, e[11] = f, e[12] = a) : a = e[12], a;
|
|
869
906
|
}
|
|
870
|
-
s(
|
|
907
|
+
s(Xe, "useEventSubscription");
|
|
871
908
|
export {
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
ye as
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
909
|
+
Fe as ANONYMOUS_USER,
|
|
910
|
+
ae as PromiseStatus,
|
|
911
|
+
ke as RefreshableRouteGuard,
|
|
912
|
+
De as RouteGuard,
|
|
913
|
+
B as SecurityContext,
|
|
914
|
+
ze as SecurityProvider,
|
|
915
|
+
ge as addFullscreenChangeListener,
|
|
916
|
+
ye as enterFullscreen,
|
|
917
|
+
he as exitFullscreen,
|
|
918
|
+
me as getFullscreenElement,
|
|
919
|
+
D as isValidateQuery,
|
|
920
|
+
be as removeFullscreenChangeListener,
|
|
921
|
+
je as useCountQuery,
|
|
922
|
+
k as useDebouncedCallback,
|
|
923
|
+
$e as useDebouncedExecutePromise,
|
|
886
924
|
Te as useDebouncedFetcher,
|
|
887
925
|
Ue as useDebouncedFetcherQuery,
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
926
|
+
Oe as useDebouncedQuery,
|
|
927
|
+
Xe as useEventSubscription,
|
|
928
|
+
U as useExecutePromise,
|
|
929
|
+
X as useFetcher,
|
|
930
|
+
Ne as useFetcherCountQuery,
|
|
893
931
|
Ge as useFetcherListQuery,
|
|
894
932
|
Ke as useFetcherListStreamQuery,
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
933
|
+
Ve as useFetcherPagedQuery,
|
|
934
|
+
A as useFetcherQuery,
|
|
935
|
+
We as useFetcherSingleQuery,
|
|
898
936
|
Ae as useForceUpdate,
|
|
899
937
|
pe as useFullscreen,
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
938
|
+
Me as useImmerKeyStorage,
|
|
939
|
+
Y as useKeyStorage,
|
|
940
|
+
$ as useLatest,
|
|
941
|
+
Je as useListQuery,
|
|
942
|
+
Ye as useListStreamQuery,
|
|
943
|
+
j as useMounted,
|
|
944
|
+
Be as usePagedQuery,
|
|
945
|
+
fe as usePromiseState,
|
|
946
|
+
P as useQuery,
|
|
947
|
+
J as useQueryState,
|
|
910
948
|
Pe as useRefs,
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
949
|
+
de as useRequestId,
|
|
950
|
+
ve as useSecurity,
|
|
951
|
+
H as useSecurityContext,
|
|
952
|
+
He as useSingleQuery
|
|
915
953
|
};
|
|
916
954
|
//# sourceMappingURL=index.es.js.map
|