@hortiview/modulebase 1.0.3 → 1.1.0-alpha.8ea7f643.1
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/{IsRestoringProvider-BfrdLTDw.js → IsRestoringProvider-CBSZo7ur.js} +83 -181
- package/dist/{ModuleCore-D9qFDsO7.js → ModuleCore-DuJVrj6v.js} +3790 -3728
- package/dist/{QueryClientProvider-Bak-4BVu.js → QueryClientProvider-DyiNrPkn.js} +160 -177
- package/dist/assets/ModuleCore.css +1 -1
- package/dist/{chunk-EVOBXE3Y-BoyVF_Ri.js → chunk-LFPYN7LY-DmQ3La_a.js} +2784 -2921
- package/dist/components/ModuleBase.js +19 -28
- package/dist/components/ModuleCore.js +1 -1
- package/dist/hooks/useCustom.js +12 -10
- package/dist/hooks/useCustomMutation.js +11 -9
- package/dist/hooks/useEntity.js +1 -1
- package/dist/hooks/useOffline.js +1 -1
- package/dist/hooks/useOption.js +1 -1
- package/dist/hooks/useServiceBus.js +1 -1
- package/dist/hooks/useStores.js +1 -1
- package/dist/lib/hooks/useCustom.d.ts +3 -4
- package/dist/lib/hooks/useCustomMutation.d.ts +3 -3
- package/dist/lib/module-router.d.ts +1 -1
- package/dist/main.js +178 -175
- package/dist/module-router.js +845 -889
- package/dist/{mutation-DztCHC7y.js → mutation-CmhiEgfA.js} +1 -1
- package/dist/{omit-DYPaIq41.js → omit-Do6MFRwA.js} +128 -121
- package/dist/provider/SignalR/SignalRProvider.js +463 -469
- package/dist/{useMutation-a0q2LJY6.js → useMutation-Aoachkw_.js} +2 -2
- package/dist/{useQuery-Cepqe-Ee.js → useQuery-DEU_AUtf.js} +105 -105
- package/dist/utils/helper.js +1 -1
- package/package.json +24 -24
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as j from "react";
|
|
2
2
|
import { jsx as R } from "react/jsx-runtime";
|
|
3
|
-
var
|
|
3
|
+
var C = class {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
6
6
|
}
|
|
@@ -16,44 +16,7 @@ var L = class {
|
|
|
16
16
|
}
|
|
17
17
|
onUnsubscribe() {
|
|
18
18
|
}
|
|
19
|
-
}, D =
|
|
20
|
-
#e;
|
|
21
|
-
#t;
|
|
22
|
-
#r;
|
|
23
|
-
constructor() {
|
|
24
|
-
super(), this.#r = (e) => {
|
|
25
|
-
if (typeof window < "u" && window.addEventListener) {
|
|
26
|
-
const t = () => e();
|
|
27
|
-
return window.addEventListener("visibilitychange", t, !1), () => {
|
|
28
|
-
window.removeEventListener("visibilitychange", t);
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
onSubscribe() {
|
|
34
|
-
this.#t || this.setEventListener(this.#r);
|
|
35
|
-
}
|
|
36
|
-
onUnsubscribe() {
|
|
37
|
-
this.hasListeners() || (this.#t?.(), this.#t = void 0);
|
|
38
|
-
}
|
|
39
|
-
setEventListener(e) {
|
|
40
|
-
this.#r = e, this.#t?.(), this.#t = e((t) => {
|
|
41
|
-
typeof t == "boolean" ? this.setFocused(t) : this.onFocus();
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
setFocused(e) {
|
|
45
|
-
this.#e !== e && (this.#e = e, this.onFocus());
|
|
46
|
-
}
|
|
47
|
-
onFocus() {
|
|
48
|
-
const e = this.isFocused();
|
|
49
|
-
this.listeners.forEach((t) => {
|
|
50
|
-
t(e);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
isFocused() {
|
|
54
|
-
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
55
|
-
}
|
|
56
|
-
}, Q = new D(), K = {
|
|
19
|
+
}, D = {
|
|
57
20
|
// We need the wrapper function syntax below instead of direct references to
|
|
58
21
|
// global setTimeout etc.
|
|
59
22
|
//
|
|
@@ -68,15 +31,14 @@ var L = class {
|
|
|
68
31
|
clearTimeout: (e) => clearTimeout(e),
|
|
69
32
|
setInterval: (e, t) => setInterval(e, t),
|
|
70
33
|
clearInterval: (e) => clearInterval(e)
|
|
71
|
-
},
|
|
34
|
+
}, Q = class {
|
|
72
35
|
// We cannot have TimeoutManager<T> as we must instantiate it with a concrete
|
|
73
36
|
// type at app boot; and if we leave that type, then any new timer provider
|
|
74
|
-
// would need to support
|
|
75
|
-
// infeasible across environments.
|
|
37
|
+
// would need to support ReturnType<typeof setTimeout>, which is infeasible.
|
|
76
38
|
//
|
|
77
39
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
|
78
40
|
// this class is unsafe internally to allow for extension.
|
|
79
|
-
#e =
|
|
41
|
+
#e = D;
|
|
80
42
|
#t = !1;
|
|
81
43
|
setTimeoutProvider(e) {
|
|
82
44
|
process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error(
|
|
@@ -96,29 +58,29 @@ var L = class {
|
|
|
96
58
|
clearInterval(e) {
|
|
97
59
|
this.#e.clearInterval(e);
|
|
98
60
|
}
|
|
99
|
-
},
|
|
100
|
-
function
|
|
61
|
+
}, E = new Q();
|
|
62
|
+
function K(e) {
|
|
101
63
|
setTimeout(e, 0);
|
|
102
64
|
}
|
|
103
|
-
var
|
|
104
|
-
function
|
|
65
|
+
var w = typeof window > "u" || "Deno" in globalThis;
|
|
66
|
+
function P() {
|
|
105
67
|
}
|
|
106
|
-
function
|
|
68
|
+
function ee(e, t) {
|
|
107
69
|
return typeof e == "function" ? e(t) : e;
|
|
108
70
|
}
|
|
109
|
-
function
|
|
71
|
+
function A(e) {
|
|
110
72
|
return typeof e == "number" && e >= 0 && e !== 1 / 0;
|
|
111
73
|
}
|
|
112
|
-
function
|
|
74
|
+
function te(e, t) {
|
|
113
75
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
114
76
|
}
|
|
115
|
-
function
|
|
77
|
+
function re(e, t) {
|
|
116
78
|
return typeof e == "function" ? e(t) : e;
|
|
117
79
|
}
|
|
118
|
-
function
|
|
80
|
+
function ne(e, t) {
|
|
119
81
|
return typeof e == "function" ? e(t) : e;
|
|
120
82
|
}
|
|
121
|
-
function
|
|
83
|
+
function se(e, t) {
|
|
122
84
|
const {
|
|
123
85
|
type: r = "all",
|
|
124
86
|
exact: n,
|
|
@@ -129,9 +91,9 @@ function ie(e, t) {
|
|
|
129
91
|
} = e;
|
|
130
92
|
if (c) {
|
|
131
93
|
if (n) {
|
|
132
|
-
if (t.queryHash !==
|
|
94
|
+
if (t.queryHash !== V(c, t.options))
|
|
133
95
|
return !1;
|
|
134
|
-
} else if (!
|
|
96
|
+
} else if (!F(t.queryKey, c))
|
|
135
97
|
return !1;
|
|
136
98
|
}
|
|
137
99
|
if (r !== "all") {
|
|
@@ -141,56 +103,56 @@ function ie(e, t) {
|
|
|
141
103
|
}
|
|
142
104
|
return !(typeof i == "boolean" && t.isStale() !== i || s && s !== t.state.fetchStatus || o && !o(t));
|
|
143
105
|
}
|
|
144
|
-
function
|
|
106
|
+
function ie(e, t) {
|
|
145
107
|
const { exact: r, status: n, predicate: s, mutationKey: o } = e;
|
|
146
108
|
if (o) {
|
|
147
109
|
if (!t.options.mutationKey)
|
|
148
110
|
return !1;
|
|
149
111
|
if (r) {
|
|
150
|
-
if (
|
|
112
|
+
if (O(t.options.mutationKey) !== O(o))
|
|
151
113
|
return !1;
|
|
152
|
-
} else if (!
|
|
114
|
+
} else if (!F(t.options.mutationKey, o))
|
|
153
115
|
return !1;
|
|
154
116
|
}
|
|
155
117
|
return !(n && t.state.status !== n || s && !s(t));
|
|
156
118
|
}
|
|
157
|
-
function
|
|
158
|
-
return (t?.queryKeyHashFn ||
|
|
119
|
+
function V(e, t) {
|
|
120
|
+
return (t?.queryKeyHashFn || O)(e);
|
|
159
121
|
}
|
|
160
|
-
function
|
|
122
|
+
function O(e) {
|
|
161
123
|
return JSON.stringify(
|
|
162
124
|
e,
|
|
163
|
-
(t, r) =>
|
|
125
|
+
(t, r) => S(r) ? Object.keys(r).sort().reduce((n, s) => (n[s] = r[s], n), {}) : r
|
|
164
126
|
);
|
|
165
127
|
}
|
|
166
|
-
function
|
|
167
|
-
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((r) =>
|
|
128
|
+
function F(e, t) {
|
|
129
|
+
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((r) => F(e[r], t[r])) : !1;
|
|
168
130
|
}
|
|
169
|
-
var
|
|
170
|
-
function
|
|
131
|
+
var z = Object.prototype.hasOwnProperty;
|
|
132
|
+
function T(e, t, r = 0) {
|
|
171
133
|
if (e === t)
|
|
172
134
|
return e;
|
|
173
135
|
if (r > 500) return t;
|
|
174
|
-
const n =
|
|
175
|
-
if (!n && !(
|
|
136
|
+
const n = N(e) && N(t);
|
|
137
|
+
if (!n && !(S(e) && S(t))) return t;
|
|
176
138
|
const o = (n ? e : Object.keys(e)).length, c = n ? t : Object.keys(t), i = c.length, u = n ? new Array(i) : {};
|
|
177
139
|
let v = 0;
|
|
178
140
|
for (let f = 0; f < i; f++) {
|
|
179
|
-
const h = n ? f : c[f], l = e[h],
|
|
180
|
-
if (l ===
|
|
181
|
-
u[h] = l, (n ? f < o :
|
|
141
|
+
const h = n ? f : c[f], l = e[h], y = t[h];
|
|
142
|
+
if (l === y) {
|
|
143
|
+
u[h] = l, (n ? f < o : z.call(e, h)) && v++;
|
|
182
144
|
continue;
|
|
183
145
|
}
|
|
184
|
-
if (l === null ||
|
|
185
|
-
u[h] =
|
|
146
|
+
if (l === null || y === null || typeof l != "object" || typeof y != "object") {
|
|
147
|
+
u[h] = y;
|
|
186
148
|
continue;
|
|
187
149
|
}
|
|
188
|
-
const m =
|
|
150
|
+
const m = T(l, y, r + 1);
|
|
189
151
|
u[h] = m, m === l && v++;
|
|
190
152
|
}
|
|
191
153
|
return o === i && v === o ? e : u;
|
|
192
154
|
}
|
|
193
|
-
function
|
|
155
|
+
function oe(e, t) {
|
|
194
156
|
if (!t || Object.keys(e).length !== Object.keys(t).length)
|
|
195
157
|
return !1;
|
|
196
158
|
for (const r in e)
|
|
@@ -198,84 +160,105 @@ function ue(e, t) {
|
|
|
198
160
|
return !1;
|
|
199
161
|
return !0;
|
|
200
162
|
}
|
|
201
|
-
function
|
|
163
|
+
function N(e) {
|
|
202
164
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
203
165
|
}
|
|
204
|
-
function
|
|
205
|
-
if (!
|
|
166
|
+
function S(e) {
|
|
167
|
+
if (!I(e))
|
|
206
168
|
return !1;
|
|
207
169
|
const t = e.constructor;
|
|
208
170
|
if (t === void 0)
|
|
209
171
|
return !0;
|
|
210
172
|
const r = t.prototype;
|
|
211
|
-
return !(!
|
|
173
|
+
return !(!I(r) || !r.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
212
174
|
}
|
|
213
|
-
function
|
|
175
|
+
function I(e) {
|
|
214
176
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
215
177
|
}
|
|
216
|
-
function
|
|
178
|
+
function _(e) {
|
|
217
179
|
return new Promise((t) => {
|
|
218
|
-
|
|
180
|
+
E.setTimeout(t, e);
|
|
219
181
|
});
|
|
220
182
|
}
|
|
221
|
-
function
|
|
183
|
+
function ue(e, t, r) {
|
|
222
184
|
if (typeof r.structuralSharing == "function")
|
|
223
185
|
return r.structuralSharing(e, t);
|
|
224
186
|
if (r.structuralSharing !== !1) {
|
|
225
187
|
if (process.env.NODE_ENV !== "production")
|
|
226
188
|
try {
|
|
227
|
-
return
|
|
189
|
+
return T(e, t);
|
|
228
190
|
} catch (n) {
|
|
229
191
|
throw console.error(
|
|
230
192
|
`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${n}`
|
|
231
193
|
), n;
|
|
232
194
|
}
|
|
233
|
-
return
|
|
195
|
+
return T(e, t);
|
|
234
196
|
}
|
|
235
197
|
return t;
|
|
236
198
|
}
|
|
237
|
-
function
|
|
199
|
+
function ae(e, t, r = 0) {
|
|
238
200
|
const n = [...e, t];
|
|
239
201
|
return r && n.length > r ? n.slice(1) : n;
|
|
240
202
|
}
|
|
241
|
-
function
|
|
203
|
+
function ce(e, t, r = 0) {
|
|
242
204
|
const n = [t, ...e];
|
|
243
205
|
return r && n.length > r ? n.slice(0, -1) : n;
|
|
244
206
|
}
|
|
245
|
-
var
|
|
246
|
-
function
|
|
247
|
-
return process.env.NODE_ENV !== "production" && e.queryFn ===
|
|
207
|
+
var L = /* @__PURE__ */ Symbol();
|
|
208
|
+
function le(e, t) {
|
|
209
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === L && console.error(
|
|
248
210
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
|
|
249
|
-
), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn ===
|
|
211
|
+
), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === L ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
250
212
|
}
|
|
251
|
-
function
|
|
213
|
+
function fe(e, t) {
|
|
252
214
|
return typeof e == "function" ? e(...t) : !!e;
|
|
253
215
|
}
|
|
254
|
-
function
|
|
216
|
+
function he(e, t, r) {
|
|
255
217
|
let n = !1, s;
|
|
256
218
|
return Object.defineProperty(e, "signal", {
|
|
257
219
|
enumerable: !0,
|
|
258
220
|
get: () => (s ??= t(), n || (n = !0, s.aborted ? r() : s.addEventListener("abort", r, { once: !0 })), s)
|
|
259
221
|
}), e;
|
|
260
222
|
}
|
|
261
|
-
var
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
}
|
|
278
|
-
|
|
223
|
+
var U = class extends C {
|
|
224
|
+
#e;
|
|
225
|
+
#t;
|
|
226
|
+
#r;
|
|
227
|
+
constructor() {
|
|
228
|
+
super(), this.#r = (e) => {
|
|
229
|
+
if (!w && window.addEventListener) {
|
|
230
|
+
const t = () => e();
|
|
231
|
+
return window.addEventListener("visibilitychange", t, !1), () => {
|
|
232
|
+
window.removeEventListener("visibilitychange", t);
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
onSubscribe() {
|
|
238
|
+
this.#t || this.setEventListener(this.#r);
|
|
239
|
+
}
|
|
240
|
+
onUnsubscribe() {
|
|
241
|
+
this.hasListeners() || (this.#t?.(), this.#t = void 0);
|
|
242
|
+
}
|
|
243
|
+
setEventListener(e) {
|
|
244
|
+
this.#r = e, this.#t?.(), this.#t = e((t) => {
|
|
245
|
+
typeof t == "boolean" ? this.setFocused(t) : this.onFocus();
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
setFocused(e) {
|
|
249
|
+
this.#e !== e && (this.#e = e, this.onFocus());
|
|
250
|
+
}
|
|
251
|
+
onFocus() {
|
|
252
|
+
const e = this.isFocused();
|
|
253
|
+
this.listeners.forEach((t) => {
|
|
254
|
+
t(e);
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
isFocused() {
|
|
258
|
+
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
259
|
+
}
|
|
260
|
+
}, G = new U();
|
|
261
|
+
function H() {
|
|
279
262
|
let e, t;
|
|
280
263
|
const r = new Promise((s, o) => {
|
|
281
264
|
e = s, t = o;
|
|
@@ -299,11 +282,11 @@ function B() {
|
|
|
299
282
|
}
|
|
300
283
|
function ye(e) {
|
|
301
284
|
let t;
|
|
302
|
-
if (e.then((r) => (t = r, r),
|
|
285
|
+
if (e.then((r) => (t = r, r), P)?.catch(P), t !== void 0)
|
|
303
286
|
return { data: t };
|
|
304
287
|
}
|
|
305
|
-
var $ =
|
|
306
|
-
function
|
|
288
|
+
var $ = K;
|
|
289
|
+
function B() {
|
|
307
290
|
let e = [], t = 0, r = (i) => {
|
|
308
291
|
i();
|
|
309
292
|
}, n = (i) => {
|
|
@@ -362,13 +345,13 @@ function J() {
|
|
|
362
345
|
}
|
|
363
346
|
};
|
|
364
347
|
}
|
|
365
|
-
var
|
|
348
|
+
var de = B(), J = class extends C {
|
|
366
349
|
#e = !0;
|
|
367
350
|
#t;
|
|
368
351
|
#r;
|
|
369
352
|
constructor() {
|
|
370
353
|
super(), this.#r = (e) => {
|
|
371
|
-
if (
|
|
354
|
+
if (!w && window.addEventListener) {
|
|
372
355
|
const t = () => e(!0), r = () => e(!1);
|
|
373
356
|
return window.addEventListener("online", t, !1), window.addEventListener("offline", r, !1), () => {
|
|
374
357
|
window.removeEventListener("online", t), window.removeEventListener("offline", r);
|
|
@@ -393,34 +376,34 @@ var ve = J(), Z = class extends L {
|
|
|
393
376
|
isOnline() {
|
|
394
377
|
return this.#e;
|
|
395
378
|
}
|
|
396
|
-
},
|
|
397
|
-
function
|
|
379
|
+
}, M = new J();
|
|
380
|
+
function Z(e) {
|
|
398
381
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
399
382
|
}
|
|
400
|
-
function
|
|
401
|
-
return (e ?? "online") === "online" ?
|
|
383
|
+
function W(e) {
|
|
384
|
+
return (e ?? "online") === "online" ? M.isOnline() : !0;
|
|
402
385
|
}
|
|
403
|
-
var
|
|
386
|
+
var X = class extends Error {
|
|
404
387
|
constructor(e) {
|
|
405
388
|
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
406
389
|
}
|
|
407
390
|
};
|
|
408
|
-
function
|
|
391
|
+
function ve(e) {
|
|
409
392
|
let t = !1, r = 0, n;
|
|
410
|
-
const s =
|
|
393
|
+
const s = H(), o = () => s.status !== "pending", c = (a) => {
|
|
411
394
|
if (!o()) {
|
|
412
|
-
const p = new
|
|
395
|
+
const p = new X(a);
|
|
413
396
|
l(p), e.onCancel?.(p);
|
|
414
397
|
}
|
|
415
398
|
}, i = () => {
|
|
416
399
|
t = !0;
|
|
417
400
|
}, u = () => {
|
|
418
401
|
t = !1;
|
|
419
|
-
}, v = () =>
|
|
402
|
+
}, v = () => G.isFocused() && (e.networkMode === "always" || M.isOnline()) && e.canRun(), f = () => W(e.networkMode) && e.canRun(), h = (a) => {
|
|
420
403
|
o() || (n?.(), s.resolve(a));
|
|
421
404
|
}, l = (a) => {
|
|
422
405
|
o() || (n?.(), s.reject(a));
|
|
423
|
-
},
|
|
406
|
+
}, y = () => new Promise((a) => {
|
|
424
407
|
n = (p) => {
|
|
425
408
|
(o() || v()) && a(p);
|
|
426
409
|
}, e.onPause?.();
|
|
@@ -433,19 +416,19 @@ function me(e) {
|
|
|
433
416
|
const p = r === 0 ? e.initialPromise : void 0;
|
|
434
417
|
try {
|
|
435
418
|
a = p ?? e.fn();
|
|
436
|
-
} catch (
|
|
437
|
-
a = Promise.reject(
|
|
419
|
+
} catch (d) {
|
|
420
|
+
a = Promise.reject(d);
|
|
438
421
|
}
|
|
439
|
-
Promise.resolve(a).then(h).catch((
|
|
422
|
+
Promise.resolve(a).then(h).catch((d) => {
|
|
440
423
|
if (o())
|
|
441
424
|
return;
|
|
442
|
-
const b = e.retry ?? (
|
|
425
|
+
const b = e.retry ?? (w ? 0 : 3), g = e.retryDelay ?? Z, q = typeof g == "function" ? g(r, d) : g, x = b === !0 || typeof b == "number" && r < b || typeof b == "function" && b(r, d);
|
|
443
426
|
if (t || !x) {
|
|
444
|
-
l(
|
|
427
|
+
l(d);
|
|
445
428
|
return;
|
|
446
429
|
}
|
|
447
|
-
r++, e.onFail?.(r,
|
|
448
|
-
t ? l(
|
|
430
|
+
r++, e.onFail?.(r, d), _(q).then(() => v() ? void 0 : y()).then(() => {
|
|
431
|
+
t ? l(d) : m();
|
|
449
432
|
});
|
|
450
433
|
});
|
|
451
434
|
};
|
|
@@ -457,75 +440,75 @@ function me(e) {
|
|
|
457
440
|
cancelRetry: i,
|
|
458
441
|
continueRetry: u,
|
|
459
442
|
canStart: f,
|
|
460
|
-
start: () => (f() ? m() :
|
|
443
|
+
start: () => (f() ? m() : y().then(m), s)
|
|
461
444
|
};
|
|
462
445
|
}
|
|
463
|
-
var
|
|
446
|
+
var me = class {
|
|
464
447
|
#e;
|
|
465
448
|
destroy() {
|
|
466
449
|
this.clearGcTimeout();
|
|
467
450
|
}
|
|
468
451
|
scheduleGc() {
|
|
469
|
-
this.clearGcTimeout(),
|
|
452
|
+
this.clearGcTimeout(), A(this.gcTime) && (this.#e = E.setTimeout(() => {
|
|
470
453
|
this.optionalRemove();
|
|
471
454
|
}, this.gcTime));
|
|
472
455
|
}
|
|
473
456
|
updateGcTime(e) {
|
|
474
457
|
this.gcTime = Math.max(
|
|
475
458
|
this.gcTime || 0,
|
|
476
|
-
e ?? (
|
|
459
|
+
e ?? (w ? 1 / 0 : 300 * 1e3)
|
|
477
460
|
);
|
|
478
461
|
}
|
|
479
462
|
clearGcTimeout() {
|
|
480
|
-
this.#e
|
|
463
|
+
this.#e && (E.clearTimeout(this.#e), this.#e = void 0);
|
|
481
464
|
}
|
|
482
|
-
}, k =
|
|
465
|
+
}, k = j.createContext(
|
|
483
466
|
void 0
|
|
484
|
-
),
|
|
485
|
-
const t =
|
|
467
|
+
), pe = (e) => {
|
|
468
|
+
const t = j.useContext(k);
|
|
486
469
|
if (e)
|
|
487
470
|
return e;
|
|
488
471
|
if (!t)
|
|
489
472
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
490
473
|
return t;
|
|
491
|
-
},
|
|
474
|
+
}, be = ({
|
|
492
475
|
client: e,
|
|
493
476
|
children: t
|
|
494
|
-
}) => (
|
|
477
|
+
}) => (j.useEffect(() => (e.mount(), () => {
|
|
495
478
|
e.unmount();
|
|
496
479
|
}), [e]), /* @__PURE__ */ R(k.Provider, { value: e, children: t }));
|
|
497
480
|
export {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
481
|
+
M as A,
|
|
482
|
+
ee as B,
|
|
483
|
+
X as C,
|
|
484
|
+
F as D,
|
|
485
|
+
be as Q,
|
|
486
|
+
me as R,
|
|
487
|
+
C as S,
|
|
488
|
+
P as a,
|
|
489
|
+
fe as b,
|
|
490
|
+
ve as c,
|
|
491
|
+
ne as d,
|
|
492
|
+
L as e,
|
|
493
|
+
re as f,
|
|
494
|
+
le as g,
|
|
495
|
+
O as h,
|
|
496
|
+
W as i,
|
|
497
|
+
w as j,
|
|
498
|
+
A as k,
|
|
499
|
+
E as l,
|
|
500
|
+
G as m,
|
|
501
|
+
de as n,
|
|
502
|
+
ye as o,
|
|
503
|
+
H as p,
|
|
504
|
+
ce as q,
|
|
505
|
+
ue as r,
|
|
506
|
+
oe as s,
|
|
507
|
+
te as t,
|
|
508
|
+
pe as u,
|
|
509
|
+
ae as v,
|
|
510
|
+
he as w,
|
|
511
|
+
ie as x,
|
|
512
|
+
V as y,
|
|
513
|
+
se as z
|
|
531
514
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._image_178sv_1>svg{width:inherit;height:inherit;color:inherit}._loadingBigOverlay_7dxo1_1{z-index:500;position:fixed;top:0;left:0;width:100%;height:100%;backdrop-filter:blur(2px);background-color:#0000001a}._bigLoadSpinnerCard_7dxo1_12{background-color:var(--lmnt-theme-background);text-align:center;inline-size:auto;padding:2rem 2rem 1.5rem;border-radius:1rem;box-shadow:0 .5rem .625rem -.3125rem #0003,0 .375rem 1.875rem .3125rem #0000001f,0 1rem 1.5rem .125rem #00000024;z-index:500;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}._bigLoadSpinnerCardText_7dxo1_27{padding:0;margin:1rem 0 0;text-align:center}._logo_7dxo1_33{width:4.75rem!important;height:4.75rem!important}@keyframes _rotate360deg_7dxo1_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._logo_7dxo1_33 path[id=Subtract_2]{transform-origin:center;animation:_rotate360deg_7dxo1_1 1s linear infinite}.
|
|
1
|
+
._image_178sv_1>svg{width:inherit;height:inherit;color:inherit}._disclaimer_1k38t_1{color:var(--lmnt-theme-danger);font-style:normal;line-height:20px}._iconArea_1k38t_7{display:flex;justify-content:center}._loadingBigOverlay_7dxo1_1{z-index:500;position:fixed;top:0;left:0;width:100%;height:100%;backdrop-filter:blur(2px);background-color:#0000001a}._bigLoadSpinnerCard_7dxo1_12{background-color:var(--lmnt-theme-background);text-align:center;inline-size:auto;padding:2rem 2rem 1.5rem;border-radius:1rem;box-shadow:0 .5rem .625rem -.3125rem #0003,0 .375rem 1.875rem .3125rem #0000001f,0 1rem 1.5rem .125rem #00000024;z-index:500;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}._bigLoadSpinnerCardText_7dxo1_27{padding:0;margin:1rem 0 0;text-align:center}._logo_7dxo1_33{width:4.75rem!important;height:4.75rem!important}@keyframes _rotate360deg_7dxo1_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._logo_7dxo1_33 path[id=Subtract_2]{transform-origin:center;animation:_rotate360deg_7dxo1_1 1s linear infinite}._loadingSpinnerContainer_1f3ss_1{z-index:500;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:var(--lmnt-theme-on-surface-high)}._database_1vpro_1{color:var(--lmnt-theme-secondary);animation:_spin_1vpro_1 4s linear infinite}@keyframes _spin_1vpro_1{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}._done_1vpro_16{color:var(--lmnt-theme-success)}._iot_1vpro_20,._platform_1vpro_21,._other_1vpro_22{color:var(--lmnt-theme-danger)}._celebration_1vpro_26,._primary_1vpro_30{color:var(--lmnt-theme-primary)}._secondary_1vpro_34{color:var(--lmnt-theme-secondary)}._danger_1vpro_38{color:var(--lmnt-theme-danger)}._success_1vpro_42{color:var(--lmnt-theme-success)}._crossedOut_1vpro_46{position:relative;display:inline-block}._crossedOut_1vpro_46:after{content:"";position:absolute;width:3rem;height:.25rem;left:50%;top:50%;background:var(--lmnt-theme-danger-on-surface);box-shadow:0 0 0 .125rem var(--lmnt-theme-background);transform:translate(-50%,calc(-50% - .25rem)) rotate(45deg);transform-origin:center;z-index:2}._fullHeight_1vpro_65{height:100%}._centerText_1vpro_69{text-align:center}
|