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