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