@ahoo-wang/fetcher-react 3.5.6 → 3.5.8
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/README.md +140 -13
- package/README.zh-CN.md +140 -13
- package/dist/cosec/RouteGuard.d.ts +49 -0
- package/dist/cosec/RouteGuard.d.ts.map +1 -0
- package/dist/cosec/SecurityContext.d.ts +47 -14
- package/dist/cosec/SecurityContext.d.ts.map +1 -1
- package/dist/cosec/index.d.ts +1 -0
- package/dist/cosec/index.d.ts.map +1 -1
- package/dist/cosec/useSecurity.d.ts +59 -7
- package/dist/cosec/useSecurity.d.ts.map +1 -1
- package/dist/index.es.js +473 -444
- 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,542 +1,570 @@
|
|
|
1
|
-
var
|
|
2
|
-
var l = (r, e) =>
|
|
3
|
-
import { useRef as I, useEffect as
|
|
1
|
+
var B = Object.defineProperty;
|
|
2
|
+
var l = (r, e) => B(r, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { useRef as I, useEffect as $, useState as D, useCallback as _, useMemo as M, useReducer as H, useSyncExternalStore as X, createContext as Z, useContext as ee } from "react";
|
|
4
4
|
import { c as w } from "react/compiler-runtime";
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { nameGenerator as
|
|
7
|
-
import { produce as
|
|
8
|
-
import { fetcherRegistrar as
|
|
9
|
-
import { JsonEventStreamResultExtractor as
|
|
10
|
-
function
|
|
5
|
+
import { jsx as N, Fragment as te } from "react/jsx-runtime";
|
|
6
|
+
import { nameGenerator as re } from "@ahoo-wang/fetcher-eventbus";
|
|
7
|
+
import { produce as ne } from "immer";
|
|
8
|
+
import { fetcherRegistrar as ce, getFetcher as se, JsonResultExtractor as oe } from "@ahoo-wang/fetcher";
|
|
9
|
+
import { JsonEventStreamResultExtractor as ue } from "@ahoo-wang/fetcher-eventstream";
|
|
10
|
+
function V() {
|
|
11
11
|
const r = w(3), e = I(!1);
|
|
12
12
|
let t;
|
|
13
13
|
r[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ l(() => e.current, "t0"), r[0] = t) : t = r[0];
|
|
14
14
|
const n = t;
|
|
15
|
-
let
|
|
16
|
-
return r[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
15
|
+
let o, c;
|
|
16
|
+
return r[1] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ l(() => (e.current = !0, () => {
|
|
17
17
|
e.current = !1;
|
|
18
|
-
}), "t1"), c = [], r[1] =
|
|
18
|
+
}), "t1"), c = [], r[1] = o, r[2] = c) : (o = r[1], c = r[2]), $(o, c), n;
|
|
19
19
|
}
|
|
20
|
-
l(
|
|
21
|
-
function
|
|
20
|
+
l(V, "useMounted");
|
|
21
|
+
function L(r) {
|
|
22
22
|
const e = I(r);
|
|
23
23
|
return e.current = r, e;
|
|
24
24
|
}
|
|
25
|
-
l(
|
|
26
|
-
var
|
|
27
|
-
function
|
|
25
|
+
l(L, "useLatest");
|
|
26
|
+
var le = /* @__PURE__ */ ((r) => (r.IDLE = "idle", r.LOADING = "loading", r.SUCCESS = "success", r.ERROR = "error", r))(le || {});
|
|
27
|
+
function ie(r) {
|
|
28
28
|
const [e, t] = D(
|
|
29
29
|
r?.initialStatus ?? "idle"
|
|
30
30
|
/* IDLE */
|
|
31
|
-
), [n,
|
|
32
|
-
|
|
31
|
+
), [n, o] = D(void 0), [c, s] = D(void 0), u = V(), i = L(r), m = _(() => {
|
|
32
|
+
u() && (t(
|
|
33
33
|
"loading"
|
|
34
34
|
/* LOADING */
|
|
35
|
-
),
|
|
36
|
-
}, [
|
|
37
|
-
if (
|
|
38
|
-
|
|
35
|
+
), s(void 0));
|
|
36
|
+
}, [u]), a = _(async (b) => {
|
|
37
|
+
if (u()) {
|
|
38
|
+
o(b), t(
|
|
39
39
|
"success"
|
|
40
40
|
/* SUCCESS */
|
|
41
|
-
),
|
|
41
|
+
), s(void 0);
|
|
42
42
|
try {
|
|
43
|
-
await
|
|
43
|
+
await i.current?.onSuccess?.(b);
|
|
44
44
|
} catch (y) {
|
|
45
45
|
console.warn("PromiseState onSuccess callback error:", y);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
}, [
|
|
49
|
-
if (
|
|
50
|
-
|
|
48
|
+
}, [u, i]), f = _(async (b) => {
|
|
49
|
+
if (u()) {
|
|
50
|
+
s(b), t(
|
|
51
51
|
"error"
|
|
52
52
|
/* ERROR */
|
|
53
|
-
),
|
|
53
|
+
), o(void 0);
|
|
54
54
|
try {
|
|
55
|
-
await
|
|
55
|
+
await i.current?.onError?.(b);
|
|
56
56
|
} catch (y) {
|
|
57
57
|
console.warn("PromiseState onError callback error:", y);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
}, [
|
|
61
|
-
|
|
60
|
+
}, [u, i]), d = _(() => {
|
|
61
|
+
u() && (t(
|
|
62
62
|
"idle"
|
|
63
63
|
/* IDLE */
|
|
64
|
-
),
|
|
65
|
-
}, [
|
|
64
|
+
), s(void 0), o(void 0));
|
|
65
|
+
}, [u]);
|
|
66
66
|
return M(() => ({
|
|
67
67
|
status: e,
|
|
68
68
|
loading: e === "loading",
|
|
69
69
|
result: n,
|
|
70
70
|
error: c,
|
|
71
|
-
setLoading:
|
|
71
|
+
setLoading: m,
|
|
72
72
|
setSuccess: a,
|
|
73
73
|
setError: f,
|
|
74
|
-
setIdle:
|
|
75
|
-
}), [e, n, c,
|
|
74
|
+
setIdle: d
|
|
75
|
+
}), [e, n, c, m, a, f, d]);
|
|
76
76
|
}
|
|
77
|
-
l(
|
|
78
|
-
function
|
|
77
|
+
l(ie, "usePromiseState");
|
|
78
|
+
function ae() {
|
|
79
79
|
const r = w(6), e = I(0);
|
|
80
80
|
let t;
|
|
81
81
|
r[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ l(() => e.current = e.current + 1, "t0"), r[0] = t) : t = r[0];
|
|
82
82
|
const n = t;
|
|
83
|
+
let o;
|
|
84
|
+
r[1] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ l(() => e.current, "t1"), r[1] = o) : o = r[1];
|
|
85
|
+
const c = o;
|
|
83
86
|
let s;
|
|
84
|
-
r[
|
|
85
|
-
const
|
|
87
|
+
r[2] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ l((b) => b === e.current, "t2"), r[2] = s) : s = r[2];
|
|
88
|
+
const u = s;
|
|
86
89
|
let i;
|
|
87
|
-
r[
|
|
88
|
-
const o = i;
|
|
89
|
-
let u;
|
|
90
|
-
r[3] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ l(() => {
|
|
90
|
+
r[3] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l(() => {
|
|
91
91
|
e.current = e.current + 1;
|
|
92
|
-
}, "t3"), r[3] =
|
|
93
|
-
const
|
|
92
|
+
}, "t3"), r[3] = i) : i = r[3];
|
|
93
|
+
const m = i;
|
|
94
94
|
let a;
|
|
95
95
|
r[4] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ l(() => {
|
|
96
96
|
e.current = 0;
|
|
97
97
|
}, "t4"), r[4] = a) : a = r[4];
|
|
98
98
|
const f = a;
|
|
99
|
-
let
|
|
100
|
-
return r[5] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
99
|
+
let d;
|
|
100
|
+
return r[5] === Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
101
101
|
generate: n,
|
|
102
102
|
current: c,
|
|
103
|
-
isLatest:
|
|
104
|
-
invalidate:
|
|
103
|
+
isLatest: u,
|
|
104
|
+
invalidate: m,
|
|
105
105
|
reset: f
|
|
106
|
-
}, r[5] =
|
|
106
|
+
}, r[5] = d) : d = r[5], d;
|
|
107
107
|
}
|
|
108
|
-
l(
|
|
109
|
-
function
|
|
108
|
+
l(ae, "useRequestId");
|
|
109
|
+
function U(r) {
|
|
110
110
|
const {
|
|
111
111
|
loading: e,
|
|
112
112
|
result: t,
|
|
113
113
|
error: n,
|
|
114
|
-
status:
|
|
114
|
+
status: o,
|
|
115
115
|
setLoading: c,
|
|
116
|
-
setSuccess:
|
|
117
|
-
setError:
|
|
118
|
-
setIdle:
|
|
119
|
-
} =
|
|
116
|
+
setSuccess: s,
|
|
117
|
+
setError: u,
|
|
118
|
+
setIdle: i
|
|
119
|
+
} = ie(r), m = V(), a = ae(), f = I(void 0), d = r?.propagateError, b = L(r?.onAbort), y = _(async () => {
|
|
120
120
|
try {
|
|
121
121
|
await b.current?.();
|
|
122
|
-
} catch (
|
|
123
|
-
console.warn("useExecutePromise onAbort callback error:",
|
|
122
|
+
} catch (S) {
|
|
123
|
+
console.warn("useExecutePromise onAbort callback error:", S);
|
|
124
124
|
}
|
|
125
|
-
}, [b]),
|
|
125
|
+
}, [b]), h = _(async (S) => {
|
|
126
126
|
f.current && (f.current.abort(), await y());
|
|
127
|
-
const
|
|
128
|
-
f.current =
|
|
129
|
-
const
|
|
127
|
+
const E = new AbortController();
|
|
128
|
+
f.current = E;
|
|
129
|
+
const Q = a.generate();
|
|
130
130
|
c();
|
|
131
131
|
try {
|
|
132
|
-
const v = await
|
|
133
|
-
|
|
132
|
+
const v = await S(E);
|
|
133
|
+
m() && a.isLatest(Q) && await s(v);
|
|
134
134
|
} catch (v) {
|
|
135
135
|
if (v instanceof Error && v.name === "AbortError") {
|
|
136
|
-
|
|
136
|
+
m() && i();
|
|
137
137
|
return;
|
|
138
138
|
}
|
|
139
|
-
if (
|
|
139
|
+
if (m() && a.isLatest(Q) && await u(v), d)
|
|
140
140
|
throw v;
|
|
141
141
|
} finally {
|
|
142
|
-
f.current ===
|
|
142
|
+
f.current === E && (f.current = void 0);
|
|
143
143
|
}
|
|
144
|
-
}, [c,
|
|
145
|
-
|
|
146
|
-
}, [
|
|
147
|
-
|
|
148
|
-
}, [
|
|
149
|
-
return
|
|
150
|
-
|
|
151
|
-
}, [
|
|
144
|
+
}, [c, s, u, i, m, a, d, y]), g = _(() => {
|
|
145
|
+
m() && i();
|
|
146
|
+
}, [i, m]), x = _(async () => {
|
|
147
|
+
g(), f.current && (f.current.abort(), f.current = void 0, await y());
|
|
148
|
+
}, [g, y]);
|
|
149
|
+
return $(() => () => {
|
|
150
|
+
x();
|
|
151
|
+
}, [x]), M(() => ({
|
|
152
152
|
loading: e,
|
|
153
153
|
result: t,
|
|
154
154
|
error: n,
|
|
155
|
-
status:
|
|
156
|
-
execute:
|
|
157
|
-
reset:
|
|
158
|
-
abort:
|
|
159
|
-
}), [e, t, n,
|
|
160
|
-
}
|
|
161
|
-
l(
|
|
162
|
-
function
|
|
163
|
-
const r = I(/* @__PURE__ */ new Map()), e = _((f) => r.current.get(f), []), t = _((f,
|
|
164
|
-
|
|
155
|
+
status: o,
|
|
156
|
+
execute: h,
|
|
157
|
+
reset: g,
|
|
158
|
+
abort: x
|
|
159
|
+
}), [e, t, n, o, h, g, x]);
|
|
160
|
+
}
|
|
161
|
+
l(U, "useExecutePromise");
|
|
162
|
+
function we() {
|
|
163
|
+
const r = I(/* @__PURE__ */ new Map()), e = _((f) => r.current.get(f), []), t = _((f, d) => r.current.set(f, d), []), n = _((f) => r.current.has(f), []), o = _((f) => r.current.delete(f), []), c = _(() => r.current.clear(), []), s = _(() => r.current.keys(), []), u = _(() => r.current.values(), []), i = _(() => r.current.entries(), []), m = _(() => r.current[Symbol.iterator](), []), a = _((f) => (d) => {
|
|
164
|
+
d ? r.current.set(f, d) : r.current.delete(f);
|
|
165
165
|
}, []);
|
|
166
|
-
return
|
|
166
|
+
return $(() => () => {
|
|
167
167
|
r.current.clear();
|
|
168
168
|
}, []), M(() => ({
|
|
169
169
|
register: a,
|
|
170
170
|
get: e,
|
|
171
171
|
set: t,
|
|
172
172
|
has: n,
|
|
173
|
-
delete:
|
|
173
|
+
delete: o,
|
|
174
174
|
clear: c,
|
|
175
|
-
keys:
|
|
176
|
-
values:
|
|
177
|
-
entries:
|
|
175
|
+
keys: s,
|
|
176
|
+
values: u,
|
|
177
|
+
entries: i,
|
|
178
178
|
get size() {
|
|
179
179
|
return r.current.size;
|
|
180
180
|
},
|
|
181
|
-
[Symbol.iterator]:
|
|
182
|
-
}), [a, e, t, n,
|
|
181
|
+
[Symbol.iterator]: m
|
|
182
|
+
}), [a, e, t, n, o, c, s, u, i, m]);
|
|
183
183
|
}
|
|
184
|
-
l(
|
|
184
|
+
l(we, "useRefs");
|
|
185
185
|
function T(r, e) {
|
|
186
186
|
const t = w(19);
|
|
187
187
|
if (e.leading === !1 && e.trailing === !1)
|
|
188
188
|
throw new Error("useDebouncedCallback: at least one of leading or trailing must be true");
|
|
189
|
-
const n = I(void 0),
|
|
190
|
-
let
|
|
191
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
189
|
+
const n = I(void 0), o = I(null), c = I(null), s = L(r), u = L(e);
|
|
190
|
+
let i;
|
|
191
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l(() => {
|
|
192
192
|
n.current !== void 0 && (clearTimeout(n.current), n.current = void 0);
|
|
193
|
-
}, "t0"), t[0] =
|
|
194
|
-
const
|
|
193
|
+
}, "t0"), t[0] = i) : i = t[0];
|
|
194
|
+
const m = i;
|
|
195
195
|
let a;
|
|
196
|
-
t[1] !==
|
|
196
|
+
t[1] !== u ? (a = /* @__PURE__ */ l((F) => c.current ? F - c.current >= u.current.delay : !0, "t1"), t[1] = u, t[2] = a) : a = t[2];
|
|
197
197
|
const f = a;
|
|
198
|
-
let
|
|
199
|
-
t[3] !==
|
|
200
|
-
c.current =
|
|
201
|
-
}, "t2"), t[3] =
|
|
202
|
-
const b =
|
|
198
|
+
let d;
|
|
199
|
+
t[3] !== s ? (d = /* @__PURE__ */ l((F, C) => {
|
|
200
|
+
c.current = F, s.current(...C);
|
|
201
|
+
}, "t2"), t[3] = s, t[4] = d) : d = t[4];
|
|
202
|
+
const b = d;
|
|
203
203
|
let y;
|
|
204
|
-
t[5] !== b || t[6] !==
|
|
204
|
+
t[5] !== b || t[6] !== u ? (y = /* @__PURE__ */ l(() => {
|
|
205
205
|
n.current = setTimeout(() => {
|
|
206
|
-
if (
|
|
207
|
-
const
|
|
208
|
-
b(
|
|
206
|
+
if (o.current) {
|
|
207
|
+
const F = Date.now();
|
|
208
|
+
b(F, o.current);
|
|
209
209
|
}
|
|
210
210
|
n.current = void 0;
|
|
211
|
-
},
|
|
212
|
-
}, "t3"), t[5] = b, t[6] =
|
|
213
|
-
const
|
|
214
|
-
let
|
|
215
|
-
t[8] !== b || t[9] !==
|
|
216
|
-
const C =
|
|
217
|
-
|
|
211
|
+
}, u.current.delay);
|
|
212
|
+
}, "t3"), t[5] = b, t[6] = u, t[7] = y) : y = t[7];
|
|
213
|
+
const h = y;
|
|
214
|
+
let g;
|
|
215
|
+
t[8] !== b || t[9] !== u || t[10] !== h || t[11] !== f ? (g = /* @__PURE__ */ l((...F) => {
|
|
216
|
+
const C = F;
|
|
217
|
+
m();
|
|
218
218
|
const {
|
|
219
|
-
leading:
|
|
219
|
+
leading: q,
|
|
220
220
|
trailing: k
|
|
221
|
-
} =
|
|
222
|
-
if (
|
|
223
|
-
|
|
221
|
+
} = u.current, z = q === void 0 ? !1 : q, G = k === void 0 ? !0 : k;
|
|
222
|
+
if (o.current = C, G && !z) {
|
|
223
|
+
h();
|
|
224
224
|
return;
|
|
225
225
|
}
|
|
226
|
-
const
|
|
227
|
-
if (
|
|
228
|
-
b(
|
|
226
|
+
const K = Date.now();
|
|
227
|
+
if (z && f(K)) {
|
|
228
|
+
b(K, C);
|
|
229
229
|
return;
|
|
230
230
|
}
|
|
231
|
-
|
|
232
|
-
}, "t4"), t[8] = b, t[9] =
|
|
233
|
-
const
|
|
234
|
-
let Q;
|
|
235
|
-
t[13] === Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ l(() => {
|
|
236
|
-
d(), s.current = null;
|
|
237
|
-
}, "t5"), t[13] = Q) : Q = t[13];
|
|
238
|
-
const g = Q;
|
|
231
|
+
G && h();
|
|
232
|
+
}, "t4"), t[8] = b, t[9] = u, t[10] = h, t[11] = f, t[12] = g) : g = t[12];
|
|
233
|
+
const x = g;
|
|
239
234
|
let S;
|
|
240
|
-
t[
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
235
|
+
t[13] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ l(() => {
|
|
236
|
+
m(), o.current = null;
|
|
237
|
+
}, "t5"), t[13] = S) : S = t[13];
|
|
238
|
+
const E = S;
|
|
239
|
+
let Q;
|
|
240
|
+
t[14] === Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ l(() => n.current !== void 0, "t6"), t[14] = Q) : Q = t[14];
|
|
241
|
+
const v = Q;
|
|
242
|
+
let R, O;
|
|
243
|
+
t[15] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ l(() => () => {
|
|
244
|
+
E();
|
|
245
|
+
}, "t7"), O = [E], t[15] = R, t[16] = O) : (R = t[15], O = t[16]), $(R, O);
|
|
246
|
+
let p;
|
|
247
|
+
return t[17] !== x ? (p = {
|
|
248
|
+
run: x,
|
|
249
|
+
cancel: E,
|
|
250
250
|
isPending: v
|
|
251
|
-
}, t[17] =
|
|
251
|
+
}, t[17] = x, t[18] = p) : p = t[18], p;
|
|
252
252
|
}
|
|
253
253
|
l(T, "useDebouncedCallback");
|
|
254
|
-
function
|
|
254
|
+
function Re(r) {
|
|
255
255
|
const e = w(10), {
|
|
256
256
|
loading: t,
|
|
257
257
|
result: n,
|
|
258
|
-
error:
|
|
258
|
+
error: o,
|
|
259
259
|
execute: c,
|
|
260
|
-
reset:
|
|
261
|
-
abort:
|
|
262
|
-
status:
|
|
263
|
-
} =
|
|
264
|
-
run:
|
|
260
|
+
reset: s,
|
|
261
|
+
abort: u,
|
|
262
|
+
status: i
|
|
263
|
+
} = U(r), {
|
|
264
|
+
run: m,
|
|
265
265
|
cancel: a,
|
|
266
266
|
isPending: f
|
|
267
267
|
} = T(c, r.debounce);
|
|
268
|
-
let
|
|
269
|
-
return e[0] !==
|
|
268
|
+
let d;
|
|
269
|
+
return e[0] !== u || e[1] !== a || e[2] !== o || e[3] !== f || e[4] !== t || e[5] !== s || e[6] !== n || e[7] !== m || e[8] !== i ? (d = {
|
|
270
270
|
loading: t,
|
|
271
271
|
result: n,
|
|
272
|
-
error:
|
|
273
|
-
status:
|
|
274
|
-
reset:
|
|
275
|
-
abort:
|
|
276
|
-
run:
|
|
272
|
+
error: o,
|
|
273
|
+
status: i,
|
|
274
|
+
reset: s,
|
|
275
|
+
abort: u,
|
|
276
|
+
run: m,
|
|
277
277
|
cancel: a,
|
|
278
278
|
isPending: f
|
|
279
|
-
}, e[0] =
|
|
279
|
+
}, e[0] = u, e[1] = a, e[2] = o, e[3] = f, e[4] = t, e[5] = s, e[6] = n, e[7] = m, e[8] = i, e[9] = d) : d = e[9], d;
|
|
280
280
|
}
|
|
281
|
-
l(
|
|
282
|
-
function
|
|
283
|
-
const [, r] =
|
|
281
|
+
l(Re, "useDebouncedExecutePromise");
|
|
282
|
+
function Fe() {
|
|
283
|
+
const [, r] = H(fe, 0);
|
|
284
284
|
return r;
|
|
285
285
|
}
|
|
286
|
-
l(
|
|
287
|
-
function
|
|
286
|
+
l(Fe, "useForceUpdate");
|
|
287
|
+
function fe(r) {
|
|
288
288
|
return r + 1;
|
|
289
289
|
}
|
|
290
|
-
l(
|
|
291
|
-
function
|
|
290
|
+
l(fe, "_temp");
|
|
291
|
+
function j(r, e) {
|
|
292
292
|
const t = w(13);
|
|
293
293
|
let n;
|
|
294
294
|
t[0] !== r ? (n = /* @__PURE__ */ l((b) => r.addListener({
|
|
295
|
-
name:
|
|
295
|
+
name: re.generate("useKeyStorage"),
|
|
296
296
|
handle: b
|
|
297
297
|
}), "t0"), t[0] = r, t[1] = n) : n = t[1];
|
|
298
|
-
const
|
|
298
|
+
const o = n;
|
|
299
299
|
let c;
|
|
300
300
|
t[2] !== e || t[3] !== r ? (c = /* @__PURE__ */ l(() => {
|
|
301
301
|
const b = r.get();
|
|
302
302
|
return b !== null ? b : e ?? null;
|
|
303
303
|
}, "t1"), t[2] = e, t[3] = r, t[4] = c) : c = t[4];
|
|
304
|
-
const
|
|
305
|
-
let
|
|
306
|
-
t[5] !== r ? (
|
|
307
|
-
const
|
|
304
|
+
const s = c, u = X(o, s, s);
|
|
305
|
+
let i;
|
|
306
|
+
t[5] !== r ? (i = /* @__PURE__ */ l((b) => r.set(b), "t2"), t[5] = r, t[6] = i) : i = t[6];
|
|
307
|
+
const m = i;
|
|
308
308
|
let a;
|
|
309
309
|
t[7] !== r ? (a = /* @__PURE__ */ l(() => r.remove(), "t3"), t[7] = r, t[8] = a) : a = t[8];
|
|
310
310
|
const f = a;
|
|
311
|
-
let
|
|
312
|
-
return t[9] !== f || t[10] !==
|
|
311
|
+
let d;
|
|
312
|
+
return t[9] !== f || t[10] !== m || t[11] !== u ? (d = [u, m, f], t[9] = f, t[10] = m, t[11] = u, t[12] = d) : d = t[12], d;
|
|
313
313
|
}
|
|
314
|
-
l(
|
|
315
|
-
function
|
|
316
|
-
const t = w(8), [n,
|
|
317
|
-
let
|
|
318
|
-
t[0] !== c || t[1] !==
|
|
319
|
-
const a =
|
|
314
|
+
l(j, "useKeyStorage");
|
|
315
|
+
function Ce(r, e) {
|
|
316
|
+
const t = w(8), [n, o, c] = j(r, e);
|
|
317
|
+
let s;
|
|
318
|
+
t[0] !== c || t[1] !== o || t[2] !== n ? (s = /* @__PURE__ */ l((m) => {
|
|
319
|
+
const a = ne(n, m);
|
|
320
320
|
if (a === null) {
|
|
321
321
|
c();
|
|
322
322
|
return;
|
|
323
323
|
}
|
|
324
|
-
return
|
|
325
|
-
}, "t0"), t[0] = c, t[1] =
|
|
326
|
-
const
|
|
327
|
-
let
|
|
328
|
-
return t[4] !== c || t[5] !==
|
|
324
|
+
return o(a);
|
|
325
|
+
}, "t0"), t[0] = c, t[1] = o, t[2] = n, t[3] = s) : s = t[3];
|
|
326
|
+
const u = s;
|
|
327
|
+
let i;
|
|
328
|
+
return t[4] !== c || t[5] !== u || t[6] !== n ? (i = [n, u, c], t[4] = c, t[5] = u, t[6] = n, t[7] = i) : i = t[7], i;
|
|
329
329
|
}
|
|
330
|
-
l(
|
|
331
|
-
const
|
|
330
|
+
l(Ce, "useImmerKeyStorage");
|
|
331
|
+
const de = {
|
|
332
332
|
jti: "",
|
|
333
333
|
sub: "anonymous",
|
|
334
334
|
iat: 0,
|
|
335
335
|
exp: 0
|
|
336
336
|
};
|
|
337
|
-
function
|
|
338
|
-
const
|
|
337
|
+
function me(r, e) {
|
|
338
|
+
const t = w(13);
|
|
339
|
+
let n;
|
|
340
|
+
t[0] !== e ? (n = e === void 0 ? {} : e, t[0] = e, t[1] = n) : n = t[1];
|
|
341
|
+
const o = n, [c, , s] = j(r), u = L(o);
|
|
342
|
+
let i;
|
|
343
|
+
t[2] !== u || t[3] !== r ? (i = /* @__PURE__ */ l(async (h) => {
|
|
344
|
+
const g = typeof h == "function" ? await h() : h;
|
|
345
|
+
r.signIn(g), u.current.onSignIn?.();
|
|
346
|
+
}, "t2"), t[2] = u, t[3] = r, t[4] = i) : i = t[4];
|
|
347
|
+
const m = i;
|
|
348
|
+
let a;
|
|
349
|
+
t[5] !== u || t[6] !== s ? (a = /* @__PURE__ */ l(() => {
|
|
350
|
+
s(), u.current.onSignOut?.();
|
|
351
|
+
}, "t3"), t[5] = u, t[6] = s, t[7] = a) : a = t[7];
|
|
352
|
+
const f = a, d = c?.access?.payload ?? de, b = c?.authenticated ?? !1;
|
|
353
|
+
let y;
|
|
354
|
+
return t[8] !== m || t[9] !== f || t[10] !== d || t[11] !== b ? (y = {
|
|
355
|
+
currentUser: d,
|
|
356
|
+
authenticated: b,
|
|
357
|
+
signIn: m,
|
|
358
|
+
signOut: f
|
|
359
|
+
}, t[8] = m, t[9] = f, t[10] = d, t[11] = b, t[12] = y) : y = t[12], y;
|
|
360
|
+
}
|
|
361
|
+
l(me, "useSecurity");
|
|
362
|
+
const J = Z(void 0);
|
|
363
|
+
function Oe(r) {
|
|
364
|
+
const e = w(7);
|
|
365
|
+
let t, n, o;
|
|
366
|
+
e[0] !== r ? ({
|
|
367
|
+
tokenStorage: n,
|
|
368
|
+
children: t,
|
|
369
|
+
...o
|
|
370
|
+
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = o) : (t = e[1], n = e[2], o = e[3]);
|
|
371
|
+
const c = me(n, o);
|
|
339
372
|
let s;
|
|
340
|
-
e[
|
|
341
|
-
r.signIn(d);
|
|
342
|
-
}, "t0"), e[0] = r, e[1] = s) : s = e[1];
|
|
343
|
-
const c = s, i = t?.access?.payload ?? fe, o = t?.authenticated ?? !1;
|
|
344
|
-
let u;
|
|
345
|
-
return e[2] !== n || e[3] !== c || e[4] !== i || e[5] !== o ? (u = {
|
|
346
|
-
currentUser: i,
|
|
347
|
-
authenticated: o,
|
|
348
|
-
signIn: c,
|
|
349
|
-
signOut: n
|
|
350
|
-
}, e[2] = n, e[3] = c, e[4] = i, e[5] = o, e[6] = u) : u = e[6], u;
|
|
351
|
-
}
|
|
352
|
-
l(de, "useSecurity");
|
|
353
|
-
const G = X(void 0);
|
|
354
|
-
function Re(r) {
|
|
355
|
-
const e = w(3), {
|
|
356
|
-
tokenStorage: t,
|
|
357
|
-
children: n
|
|
358
|
-
} = r, s = de(t);
|
|
359
|
-
let c;
|
|
360
|
-
return e[0] !== n || e[1] !== s ? (c = /* @__PURE__ */ ee(G.Provider, { value: s, children: n }), e[0] = n, e[1] = s, e[2] = c) : c = e[2], c;
|
|
373
|
+
return e[4] !== t || e[5] !== c ? (s = /* @__PURE__ */ N(J.Provider, { value: c, children: t }), e[4] = t, e[5] = c, e[6] = s) : s = e[6], s;
|
|
361
374
|
}
|
|
362
|
-
l(
|
|
363
|
-
function
|
|
364
|
-
const r =
|
|
375
|
+
l(Oe, "SecurityProvider");
|
|
376
|
+
function be() {
|
|
377
|
+
const r = ee(J);
|
|
365
378
|
if (!r)
|
|
366
379
|
throw new Error("useSecurityContext must be used within a SecurityProvider");
|
|
367
380
|
return r;
|
|
368
381
|
}
|
|
369
|
-
l(
|
|
370
|
-
function
|
|
382
|
+
l(be, "useSecurityContext");
|
|
383
|
+
function Ie(r) {
|
|
384
|
+
const e = w(2), {
|
|
385
|
+
children: t,
|
|
386
|
+
fallback: n,
|
|
387
|
+
onUnauthorized: o
|
|
388
|
+
} = r, {
|
|
389
|
+
authenticated: c
|
|
390
|
+
} = be();
|
|
391
|
+
if (c) {
|
|
392
|
+
let s;
|
|
393
|
+
return e[0] !== t ? (s = /* @__PURE__ */ N(te, { children: t }), e[0] = t, e[1] = s) : s = e[1], s;
|
|
394
|
+
}
|
|
395
|
+
return o && o(), n;
|
|
396
|
+
}
|
|
397
|
+
l(Ie, "RouteGuard");
|
|
398
|
+
function W(r) {
|
|
371
399
|
const e = w(21);
|
|
372
400
|
let t;
|
|
373
401
|
e[0] !== r ? (t = r || {}, e[0] = r, e[1] = t) : t = e[1];
|
|
374
402
|
const {
|
|
375
403
|
fetcher: n
|
|
376
|
-
} = t,
|
|
404
|
+
} = t, o = n === void 0 ? ce.default : n, {
|
|
377
405
|
loading: c,
|
|
378
|
-
result:
|
|
379
|
-
error:
|
|
380
|
-
status:
|
|
381
|
-
execute:
|
|
406
|
+
result: s,
|
|
407
|
+
error: u,
|
|
408
|
+
status: i,
|
|
409
|
+
execute: m,
|
|
382
410
|
reset: a,
|
|
383
411
|
abort: f
|
|
384
|
-
} =
|
|
385
|
-
let x;
|
|
386
|
-
e[2] !== s ? (x = ce(s), e[2] = s, e[3] = x) : x = e[3];
|
|
387
|
-
const E = x;
|
|
412
|
+
} = U(r), [d, b] = D(void 0), y = L(r);
|
|
388
413
|
let h;
|
|
389
|
-
e[
|
|
414
|
+
e[2] !== o ? (h = se(o), e[2] = o, e[3] = h) : h = e[3];
|
|
415
|
+
const g = h;
|
|
416
|
+
let x;
|
|
417
|
+
e[4] !== g || e[5] !== y || e[6] !== m ? (x = /* @__PURE__ */ l(async (p) => {
|
|
390
418
|
try {
|
|
391
|
-
await
|
|
392
|
-
|
|
393
|
-
const C = await
|
|
419
|
+
await m(async (F) => {
|
|
420
|
+
p.abortController = F;
|
|
421
|
+
const C = await g.exchange(p, y.current);
|
|
394
422
|
return b(C), await C.extractResult();
|
|
395
423
|
});
|
|
396
|
-
} catch (
|
|
397
|
-
const C =
|
|
424
|
+
} catch (F) {
|
|
425
|
+
const C = F;
|
|
398
426
|
throw b(void 0), C;
|
|
399
427
|
}
|
|
400
|
-
}, "t3"), e[4] =
|
|
401
|
-
const
|
|
402
|
-
let
|
|
403
|
-
e[8] !== a ? (
|
|
428
|
+
}, "t3"), e[4] = g, e[5] = y, e[6] = m, e[7] = x) : x = e[7];
|
|
429
|
+
const S = x;
|
|
430
|
+
let E;
|
|
431
|
+
e[8] !== a ? (E = /* @__PURE__ */ l(() => {
|
|
404
432
|
a(), b(void 0);
|
|
405
|
-
}, "t4"), e[8] = a, e[9] =
|
|
406
|
-
const
|
|
433
|
+
}, "t4"), e[8] = a, e[9] = E) : E = e[9];
|
|
434
|
+
const Q = E;
|
|
407
435
|
let v;
|
|
408
436
|
e[10] !== f ? (v = /* @__PURE__ */ l(() => {
|
|
409
437
|
f(), b(void 0);
|
|
410
438
|
}, "t5"), e[10] = f, e[11] = v) : v = e[11];
|
|
411
|
-
const
|
|
412
|
-
let
|
|
413
|
-
return e[12] !==
|
|
439
|
+
const R = v;
|
|
440
|
+
let O;
|
|
441
|
+
return e[12] !== R || e[13] !== u || e[14] !== d || e[15] !== S || e[16] !== c || e[17] !== Q || e[18] !== s || e[19] !== i ? (O = {
|
|
414
442
|
loading: c,
|
|
415
|
-
result:
|
|
416
|
-
error:
|
|
417
|
-
status:
|
|
418
|
-
exchange:
|
|
419
|
-
execute:
|
|
420
|
-
reset:
|
|
421
|
-
abort:
|
|
422
|
-
}, e[12] =
|
|
423
|
-
}
|
|
424
|
-
l(
|
|
443
|
+
result: s,
|
|
444
|
+
error: u,
|
|
445
|
+
status: i,
|
|
446
|
+
exchange: d,
|
|
447
|
+
execute: S,
|
|
448
|
+
reset: Q,
|
|
449
|
+
abort: R
|
|
450
|
+
}, e[12] = R, e[13] = u, e[14] = d, e[15] = S, e[16] = c, e[17] = Q, e[18] = s, e[19] = i, e[20] = O) : O = e[20], O;
|
|
451
|
+
}
|
|
452
|
+
l(W, "useFetcher");
|
|
425
453
|
function Le(r) {
|
|
426
454
|
const e = w(11), {
|
|
427
455
|
loading: t,
|
|
428
456
|
result: n,
|
|
429
|
-
error:
|
|
457
|
+
error: o,
|
|
430
458
|
status: c,
|
|
431
|
-
exchange:
|
|
432
|
-
execute:
|
|
433
|
-
reset:
|
|
434
|
-
abort:
|
|
435
|
-
} =
|
|
459
|
+
exchange: s,
|
|
460
|
+
execute: u,
|
|
461
|
+
reset: i,
|
|
462
|
+
abort: m
|
|
463
|
+
} = W(r), {
|
|
436
464
|
run: a,
|
|
437
465
|
cancel: f,
|
|
438
|
-
isPending:
|
|
439
|
-
} = T(
|
|
466
|
+
isPending: d
|
|
467
|
+
} = T(u, r.debounce);
|
|
440
468
|
let b;
|
|
441
|
-
return e[0] !==
|
|
469
|
+
return e[0] !== m || e[1] !== f || e[2] !== o || e[3] !== s || e[4] !== d || e[5] !== t || e[6] !== i || e[7] !== n || e[8] !== a || e[9] !== c ? (b = {
|
|
442
470
|
loading: t,
|
|
443
471
|
result: n,
|
|
444
|
-
error:
|
|
472
|
+
error: o,
|
|
445
473
|
status: c,
|
|
446
|
-
exchange:
|
|
447
|
-
reset:
|
|
448
|
-
abort:
|
|
474
|
+
exchange: s,
|
|
475
|
+
reset: i,
|
|
476
|
+
abort: m,
|
|
449
477
|
run: a,
|
|
450
478
|
cancel: f,
|
|
451
|
-
isPending:
|
|
452
|
-
}, e[0] =
|
|
479
|
+
isPending: d
|
|
480
|
+
}, e[0] = m, e[1] = f, e[2] = o, e[3] = s, e[4] = d, e[5] = t, e[6] = i, e[7] = n, e[8] = a, e[9] = c, e[10] = b) : b = e[10], b;
|
|
453
481
|
}
|
|
454
482
|
l(Le, "useDebouncedFetcher");
|
|
455
|
-
function
|
|
483
|
+
function Y(r) {
|
|
456
484
|
const e = w(10), {
|
|
457
485
|
initialQuery: t,
|
|
458
486
|
autoExecute: n,
|
|
459
|
-
execute:
|
|
460
|
-
} = r, c = n ?? !1,
|
|
461
|
-
let
|
|
462
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
463
|
-
const
|
|
464
|
-
let
|
|
465
|
-
e[1] !== c || e[2] !==
|
|
466
|
-
|
|
467
|
-
}, "t1"), e[1] = c, e[2] =
|
|
468
|
-
const a =
|
|
469
|
-
let f,
|
|
470
|
-
e[4] !== c || e[5] !==
|
|
471
|
-
c && s
|
|
472
|
-
}, "t2"),
|
|
487
|
+
execute: o
|
|
488
|
+
} = r, c = n ?? !1, s = I(t);
|
|
489
|
+
let u;
|
|
490
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ l(() => s.current, "t0"), e[0] = u) : u = e[0];
|
|
491
|
+
const i = u;
|
|
492
|
+
let m;
|
|
493
|
+
e[1] !== c || e[2] !== o ? (m = /* @__PURE__ */ l((y) => {
|
|
494
|
+
s.current = y, c && o(y);
|
|
495
|
+
}, "t1"), e[1] = c, e[2] = o, e[3] = m) : m = e[3];
|
|
496
|
+
const a = m;
|
|
497
|
+
let f, d;
|
|
498
|
+
e[4] !== c || e[5] !== o ? (f = /* @__PURE__ */ l(() => {
|
|
499
|
+
c && o(s.current);
|
|
500
|
+
}, "t2"), d = [c, o], e[4] = c, e[5] = o, e[6] = f, e[7] = d) : (f = e[6], d = e[7]), $(f, d);
|
|
473
501
|
let b;
|
|
474
502
|
return e[8] !== a ? (b = {
|
|
475
|
-
getQuery:
|
|
503
|
+
getQuery: i,
|
|
476
504
|
setQuery: a
|
|
477
505
|
}, e[8] = a, e[9] = b) : b = e[9], b;
|
|
478
506
|
}
|
|
479
|
-
l(
|
|
507
|
+
l(Y, "useQueryState");
|
|
480
508
|
function P(r) {
|
|
481
|
-
const e =
|
|
509
|
+
const e = L(r), {
|
|
482
510
|
loading: t,
|
|
483
511
|
result: n,
|
|
484
|
-
error:
|
|
512
|
+
error: o,
|
|
485
513
|
status: c,
|
|
486
|
-
execute:
|
|
487
|
-
reset:
|
|
488
|
-
abort:
|
|
489
|
-
} =
|
|
514
|
+
execute: s,
|
|
515
|
+
reset: u,
|
|
516
|
+
abort: i
|
|
517
|
+
} = U(e.current), m = _((b) => s(/* @__PURE__ */ l(async (h) => e.current.execute(b, e.current.attributes, h), "queryExecutor")), [s, e]), {
|
|
490
518
|
getQuery: a,
|
|
491
519
|
setQuery: f
|
|
492
|
-
} =
|
|
520
|
+
} = Y({
|
|
493
521
|
initialQuery: r.initialQuery,
|
|
494
522
|
autoExecute: e.current.autoExecute,
|
|
495
|
-
execute:
|
|
496
|
-
}),
|
|
523
|
+
execute: m
|
|
524
|
+
}), d = _(() => m(a()), [m, a]);
|
|
497
525
|
return M(() => ({
|
|
498
526
|
loading: t,
|
|
499
527
|
result: n,
|
|
500
|
-
error:
|
|
528
|
+
error: o,
|
|
501
529
|
status: c,
|
|
502
|
-
execute:
|
|
503
|
-
reset:
|
|
504
|
-
abort:
|
|
530
|
+
execute: d,
|
|
531
|
+
reset: u,
|
|
532
|
+
abort: i,
|
|
505
533
|
getQuery: a,
|
|
506
534
|
setQuery: f
|
|
507
|
-
}), [t, n,
|
|
535
|
+
}), [t, n, o, c, d, u, i, a, f]);
|
|
508
536
|
}
|
|
509
537
|
l(P, "useQuery");
|
|
510
|
-
function
|
|
538
|
+
function $e(r) {
|
|
511
539
|
return P(r);
|
|
512
540
|
}
|
|
513
|
-
l(
|
|
541
|
+
l($e, "useCountQuery");
|
|
514
542
|
function A(r) {
|
|
515
543
|
const e = w(22);
|
|
516
544
|
let t;
|
|
517
545
|
e[0] !== r ? (t = {
|
|
518
|
-
resultExtractor:
|
|
546
|
+
resultExtractor: oe,
|
|
519
547
|
...r
|
|
520
548
|
}, e[0] = r, e[1] = t) : t = e[1];
|
|
521
|
-
const n = t,
|
|
549
|
+
const n = t, o = L(n), {
|
|
522
550
|
loading: c,
|
|
523
|
-
result:
|
|
524
|
-
error:
|
|
525
|
-
status:
|
|
526
|
-
execute:
|
|
551
|
+
result: s,
|
|
552
|
+
error: u,
|
|
553
|
+
status: i,
|
|
554
|
+
execute: m,
|
|
527
555
|
reset: a,
|
|
528
556
|
abort: f
|
|
529
|
-
} =
|
|
530
|
-
let
|
|
531
|
-
e[2] !==
|
|
557
|
+
} = W(n);
|
|
558
|
+
let d;
|
|
559
|
+
e[2] !== m || e[3] !== o ? (d = /* @__PURE__ */ l((Q) => {
|
|
532
560
|
const v = {
|
|
533
|
-
url:
|
|
561
|
+
url: o.current.url,
|
|
534
562
|
method: "POST",
|
|
535
|
-
body:
|
|
563
|
+
body: Q
|
|
536
564
|
};
|
|
537
|
-
return
|
|
538
|
-
}, "t1"), e[2] =
|
|
539
|
-
const b =
|
|
565
|
+
return m(v);
|
|
566
|
+
}, "t1"), e[2] = m, e[3] = o, e[4] = d) : d = e[4];
|
|
567
|
+
const b = d;
|
|
540
568
|
let y;
|
|
541
569
|
e[5] !== b || e[6] !== n.autoExecute || e[7] !== n.initialQuery ? (y = {
|
|
542
570
|
initialQuery: n.initialQuery,
|
|
@@ -544,218 +572,219 @@ function A(r) {
|
|
|
544
572
|
execute: b
|
|
545
573
|
}, e[5] = b, e[6] = n.autoExecute, e[7] = n.initialQuery, e[8] = y) : y = e[8];
|
|
546
574
|
const {
|
|
547
|
-
getQuery:
|
|
548
|
-
setQuery:
|
|
549
|
-
} =
|
|
550
|
-
let
|
|
551
|
-
e[9] !== b || e[10] !==
|
|
552
|
-
const
|
|
553
|
-
let
|
|
554
|
-
return e[12] !== f || e[13] !==
|
|
575
|
+
getQuery: h,
|
|
576
|
+
setQuery: g
|
|
577
|
+
} = Y(y);
|
|
578
|
+
let x;
|
|
579
|
+
e[9] !== b || e[10] !== h ? (x = /* @__PURE__ */ l(() => b(h()), "t3"), e[9] = b, e[10] = h, e[11] = x) : x = e[11];
|
|
580
|
+
const S = x;
|
|
581
|
+
let E;
|
|
582
|
+
return e[12] !== f || e[13] !== u || e[14] !== S || e[15] !== h || e[16] !== c || e[17] !== a || e[18] !== s || e[19] !== g || e[20] !== i ? (E = {
|
|
555
583
|
loading: c,
|
|
556
|
-
result:
|
|
557
|
-
error:
|
|
558
|
-
status:
|
|
559
|
-
execute:
|
|
584
|
+
result: s,
|
|
585
|
+
error: u,
|
|
586
|
+
status: i,
|
|
587
|
+
execute: S,
|
|
560
588
|
reset: a,
|
|
561
589
|
abort: f,
|
|
562
|
-
getQuery:
|
|
563
|
-
setQuery:
|
|
564
|
-
}, e[12] = f, e[13] =
|
|
590
|
+
getQuery: h,
|
|
591
|
+
setQuery: g
|
|
592
|
+
}, e[12] = f, e[13] = u, e[14] = S, e[15] = h, e[16] = c, e[17] = a, e[18] = s, e[19] = g, e[20] = i, e[21] = E) : E = e[21], E;
|
|
565
593
|
}
|
|
566
594
|
l(A, "useFetcherQuery");
|
|
567
|
-
function
|
|
595
|
+
function pe(r) {
|
|
568
596
|
return A(r);
|
|
569
597
|
}
|
|
570
|
-
l(
|
|
571
|
-
function
|
|
598
|
+
l(pe, "useFetcherCountQuery");
|
|
599
|
+
function Pe(r) {
|
|
572
600
|
return A(r);
|
|
573
601
|
}
|
|
574
|
-
l(
|
|
575
|
-
function
|
|
602
|
+
l(Pe, "useFetcherListQuery");
|
|
603
|
+
function Ae(r) {
|
|
576
604
|
const e = w(2);
|
|
577
605
|
let t;
|
|
578
606
|
return e[0] !== r ? (t = {
|
|
579
607
|
...r,
|
|
580
|
-
resultExtractor:
|
|
608
|
+
resultExtractor: ue
|
|
581
609
|
}, e[0] = r, e[1] = t) : t = e[1], A(t);
|
|
582
610
|
}
|
|
583
|
-
l(
|
|
584
|
-
function
|
|
611
|
+
l(Ae, "useFetcherListStreamQuery");
|
|
612
|
+
function De(r) {
|
|
585
613
|
return A(r);
|
|
586
614
|
}
|
|
587
|
-
l(
|
|
588
|
-
function
|
|
615
|
+
l(De, "useFetcherPagedQuery");
|
|
616
|
+
function Me(r) {
|
|
589
617
|
return A(r);
|
|
590
618
|
}
|
|
591
|
-
l(
|
|
592
|
-
function
|
|
619
|
+
l(Me, "useFetcherSingleQuery");
|
|
620
|
+
function Te(r) {
|
|
593
621
|
return P(r);
|
|
594
622
|
}
|
|
595
|
-
l(
|
|
596
|
-
function
|
|
623
|
+
l(Te, "useListQuery");
|
|
624
|
+
function Ue(r) {
|
|
597
625
|
return P(r);
|
|
598
626
|
}
|
|
599
|
-
l(
|
|
600
|
-
function
|
|
627
|
+
l(Ue, "useListStreamQuery");
|
|
628
|
+
function qe(r) {
|
|
601
629
|
return P(r);
|
|
602
630
|
}
|
|
603
|
-
l(
|
|
604
|
-
function
|
|
631
|
+
l(qe, "usePagedQuery");
|
|
632
|
+
function ke(r) {
|
|
605
633
|
return P(r);
|
|
606
634
|
}
|
|
607
|
-
l(
|
|
608
|
-
function
|
|
635
|
+
l(ke, "useSingleQuery");
|
|
636
|
+
function ze(r) {
|
|
609
637
|
const e = w(22), t = r.autoExecute;
|
|
610
638
|
let n;
|
|
611
639
|
e[0] !== r ? (n = {
|
|
612
640
|
...r,
|
|
613
641
|
autoExecute: !1
|
|
614
642
|
}, e[0] = r, e[1] = n) : n = e[1];
|
|
615
|
-
const
|
|
643
|
+
const o = n, {
|
|
616
644
|
loading: c,
|
|
617
|
-
result:
|
|
618
|
-
error:
|
|
619
|
-
status:
|
|
620
|
-
execute:
|
|
645
|
+
result: s,
|
|
646
|
+
error: u,
|
|
647
|
+
status: i,
|
|
648
|
+
execute: m,
|
|
621
649
|
reset: a,
|
|
622
650
|
abort: f,
|
|
623
|
-
getQuery:
|
|
651
|
+
getQuery: d,
|
|
624
652
|
setQuery: b
|
|
625
|
-
} = A(
|
|
653
|
+
} = A(o), {
|
|
626
654
|
run: y,
|
|
627
|
-
cancel:
|
|
628
|
-
isPending:
|
|
629
|
-
} = T(
|
|
630
|
-
let
|
|
631
|
-
e[2] !== t || e[3] !== y || e[4] !== b ? (
|
|
632
|
-
b(
|
|
633
|
-
}, "t1"), e[2] = t, e[3] = y, e[4] = b, e[5] =
|
|
634
|
-
const
|
|
635
|
-
let
|
|
636
|
-
e[6] !== t || e[7] !== y ? (
|
|
655
|
+
cancel: h,
|
|
656
|
+
isPending: g
|
|
657
|
+
} = T(m, r.debounce);
|
|
658
|
+
let x;
|
|
659
|
+
e[2] !== t || e[3] !== y || e[4] !== b ? (x = /* @__PURE__ */ l((R) => {
|
|
660
|
+
b(R), t && y();
|
|
661
|
+
}, "t1"), e[2] = t, e[3] = y, e[4] = b, e[5] = x) : x = e[5];
|
|
662
|
+
const S = x;
|
|
663
|
+
let E, Q;
|
|
664
|
+
e[6] !== t || e[7] !== y ? (E = /* @__PURE__ */ l(() => {
|
|
637
665
|
t && y();
|
|
638
|
-
}, "t2"),
|
|
666
|
+
}, "t2"), Q = [y, t], e[6] = t, e[7] = y, e[8] = E, e[9] = Q) : (E = e[8], Q = e[9]), $(E, Q);
|
|
639
667
|
let v;
|
|
640
|
-
return e[10] !== f || e[11] !==
|
|
668
|
+
return e[10] !== f || e[11] !== h || e[12] !== u || e[13] !== d || e[14] !== g || e[15] !== c || e[16] !== a || e[17] !== s || e[18] !== y || e[19] !== S || e[20] !== i ? (v = {
|
|
641
669
|
loading: c,
|
|
642
|
-
result:
|
|
643
|
-
error:
|
|
644
|
-
status:
|
|
670
|
+
result: s,
|
|
671
|
+
error: u,
|
|
672
|
+
status: i,
|
|
645
673
|
reset: a,
|
|
646
674
|
abort: f,
|
|
647
|
-
getQuery:
|
|
648
|
-
setQuery:
|
|
675
|
+
getQuery: d,
|
|
676
|
+
setQuery: S,
|
|
649
677
|
run: y,
|
|
650
|
-
cancel:
|
|
651
|
-
isPending:
|
|
652
|
-
}, e[10] = f, e[11] =
|
|
678
|
+
cancel: h,
|
|
679
|
+
isPending: g
|
|
680
|
+
}, e[10] = f, e[11] = h, e[12] = u, e[13] = d, e[14] = g, e[15] = c, e[16] = a, e[17] = s, e[18] = y, e[19] = S, e[20] = i, e[21] = v) : v = e[21], v;
|
|
653
681
|
}
|
|
654
|
-
l(
|
|
655
|
-
function
|
|
682
|
+
l(ze, "useDebouncedFetcherQuery");
|
|
683
|
+
function Ge(r) {
|
|
656
684
|
const e = w(22), t = r.autoExecute;
|
|
657
685
|
let n;
|
|
658
686
|
e[0] !== r ? (n = {
|
|
659
687
|
...r,
|
|
660
688
|
autoExecute: !1
|
|
661
689
|
}, e[0] = r, e[1] = n) : n = e[1];
|
|
662
|
-
const
|
|
690
|
+
const o = n, {
|
|
663
691
|
loading: c,
|
|
664
|
-
result:
|
|
665
|
-
error:
|
|
666
|
-
status:
|
|
667
|
-
execute:
|
|
692
|
+
result: s,
|
|
693
|
+
error: u,
|
|
694
|
+
status: i,
|
|
695
|
+
execute: m,
|
|
668
696
|
reset: a,
|
|
669
697
|
abort: f,
|
|
670
|
-
getQuery:
|
|
698
|
+
getQuery: d,
|
|
671
699
|
setQuery: b
|
|
672
|
-
} = P(
|
|
700
|
+
} = P(o), {
|
|
673
701
|
run: y,
|
|
674
|
-
cancel:
|
|
675
|
-
isPending:
|
|
676
|
-
} = T(
|
|
677
|
-
let
|
|
678
|
-
e[2] !== t || e[3] !== y || e[4] !== b ? (
|
|
679
|
-
b(
|
|
680
|
-
}, "t1"), e[2] = t, e[3] = y, e[4] = b, e[5] =
|
|
681
|
-
const
|
|
682
|
-
let
|
|
683
|
-
e[6] !== t || e[7] !== y ? (
|
|
702
|
+
cancel: h,
|
|
703
|
+
isPending: g
|
|
704
|
+
} = T(m, r.debounce);
|
|
705
|
+
let x;
|
|
706
|
+
e[2] !== t || e[3] !== y || e[4] !== b ? (x = /* @__PURE__ */ l((R) => {
|
|
707
|
+
b(R), t && y();
|
|
708
|
+
}, "t1"), e[2] = t, e[3] = y, e[4] = b, e[5] = x) : x = e[5];
|
|
709
|
+
const S = x;
|
|
710
|
+
let E, Q;
|
|
711
|
+
e[6] !== t || e[7] !== y ? (E = /* @__PURE__ */ l(() => {
|
|
684
712
|
t && y();
|
|
685
|
-
}, "t2"),
|
|
713
|
+
}, "t2"), Q = [y, t], e[6] = t, e[7] = y, e[8] = E, e[9] = Q) : (E = e[8], Q = e[9]), $(E, Q);
|
|
686
714
|
let v;
|
|
687
|
-
return e[10] !== f || e[11] !==
|
|
715
|
+
return e[10] !== f || e[11] !== h || e[12] !== u || e[13] !== d || e[14] !== g || e[15] !== c || e[16] !== a || e[17] !== s || e[18] !== y || e[19] !== S || e[20] !== i ? (v = {
|
|
688
716
|
loading: c,
|
|
689
|
-
result:
|
|
690
|
-
error:
|
|
691
|
-
status:
|
|
717
|
+
result: s,
|
|
718
|
+
error: u,
|
|
719
|
+
status: i,
|
|
692
720
|
reset: a,
|
|
693
721
|
abort: f,
|
|
694
|
-
getQuery:
|
|
695
|
-
setQuery:
|
|
722
|
+
getQuery: d,
|
|
723
|
+
setQuery: S,
|
|
696
724
|
run: y,
|
|
697
|
-
cancel:
|
|
698
|
-
isPending:
|
|
699
|
-
}, e[10] = f, e[11] =
|
|
725
|
+
cancel: h,
|
|
726
|
+
isPending: g
|
|
727
|
+
}, e[10] = f, e[11] = h, e[12] = u, e[13] = d, e[14] = g, e[15] = c, e[16] = a, e[17] = s, e[18] = y, e[19] = S, e[20] = i, e[21] = v) : v = e[21], v;
|
|
700
728
|
}
|
|
701
|
-
l(
|
|
729
|
+
l(Ge, "useDebouncedQuery");
|
|
702
730
|
function Ke(r) {
|
|
703
731
|
const e = w(13), {
|
|
704
732
|
bus: t,
|
|
705
733
|
handler: n
|
|
706
734
|
} = r;
|
|
735
|
+
let o;
|
|
736
|
+
e[0] !== t || e[1] !== n ? (o = /* @__PURE__ */ l(() => t.on(n), "t0"), e[0] = t, e[1] = n, e[2] = o) : o = e[2];
|
|
737
|
+
const c = o;
|
|
707
738
|
let s;
|
|
708
|
-
e[
|
|
709
|
-
const
|
|
710
|
-
let i;
|
|
711
|
-
e[
|
|
712
|
-
const o = i;
|
|
713
|
-
let u, d;
|
|
714
|
-
e[6] !== t || e[7] !== n ? (u = /* @__PURE__ */ l(() => (t.on(n) || console.warn(`Failed to subscribe to event bus with handler: ${n.name}`), () => {
|
|
739
|
+
e[3] !== t || e[4] !== n.name ? (s = /* @__PURE__ */ l(() => t.off(n.name), "t1"), e[3] = t, e[4] = n.name, e[5] = s) : s = e[5];
|
|
740
|
+
const u = s;
|
|
741
|
+
let i, m;
|
|
742
|
+
e[6] !== t || e[7] !== n ? (i = /* @__PURE__ */ l(() => (t.on(n) || console.warn(`Failed to subscribe to event bus with handler: ${n.name}`), () => {
|
|
715
743
|
t.off(n.name);
|
|
716
|
-
}), "t2"),
|
|
744
|
+
}), "t2"), m = [t, n], e[6] = t, e[7] = n, e[8] = i, e[9] = m) : (i = e[8], m = e[9]), $(i, m);
|
|
717
745
|
let a;
|
|
718
|
-
return e[10] !== c || e[11] !==
|
|
746
|
+
return e[10] !== c || e[11] !== u ? (a = {
|
|
719
747
|
subscribe: c,
|
|
720
|
-
unsubscribe:
|
|
721
|
-
}, e[10] = c, e[11] =
|
|
748
|
+
unsubscribe: u
|
|
749
|
+
}, e[10] = c, e[11] = u, e[12] = a) : a = e[12], a;
|
|
722
750
|
}
|
|
723
751
|
l(Ke, "useEventSubscription");
|
|
724
752
|
export {
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
753
|
+
de as ANONYMOUS_USER,
|
|
754
|
+
le as PromiseStatus,
|
|
755
|
+
Ie as RouteGuard,
|
|
756
|
+
J as SecurityContext,
|
|
757
|
+
Oe as SecurityProvider,
|
|
758
|
+
$e as useCountQuery,
|
|
730
759
|
T as useDebouncedCallback,
|
|
731
|
-
|
|
760
|
+
Re as useDebouncedExecutePromise,
|
|
732
761
|
Le as useDebouncedFetcher,
|
|
733
|
-
|
|
734
|
-
|
|
762
|
+
ze as useDebouncedFetcherQuery,
|
|
763
|
+
Ge as useDebouncedQuery,
|
|
735
764
|
Ke as useEventSubscription,
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
765
|
+
U as useExecutePromise,
|
|
766
|
+
W as useFetcher,
|
|
767
|
+
pe as useFetcherCountQuery,
|
|
768
|
+
Pe as useFetcherListQuery,
|
|
769
|
+
Ae as useFetcherListStreamQuery,
|
|
770
|
+
De as useFetcherPagedQuery,
|
|
742
771
|
A as useFetcherQuery,
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
772
|
+
Me as useFetcherSingleQuery,
|
|
773
|
+
Fe as useForceUpdate,
|
|
774
|
+
Ce as useImmerKeyStorage,
|
|
775
|
+
j as useKeyStorage,
|
|
776
|
+
L as useLatest,
|
|
777
|
+
Te as useListQuery,
|
|
778
|
+
Ue as useListStreamQuery,
|
|
779
|
+
V as useMounted,
|
|
780
|
+
qe as usePagedQuery,
|
|
781
|
+
ie as usePromiseState,
|
|
753
782
|
P as useQuery,
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
783
|
+
Y as useQueryState,
|
|
784
|
+
we as useRefs,
|
|
785
|
+
ae as useRequestId,
|
|
786
|
+
me as useSecurity,
|
|
787
|
+
be as useSecurityContext,
|
|
788
|
+
ke as useSingleQuery
|
|
760
789
|
};
|
|
761
790
|
//# sourceMappingURL=index.es.js.map
|