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