zudoku 0.18.1 → 0.18.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/lib/authentication/AuthenticationPlugin.d.ts +4 -2
- package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +1 -1
- package/dist/lib/components/Header.js +12 -4
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +6 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.js +1 -3
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.js +3 -0
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/vite/remarkStaticGeneration.js +5 -5
- package/dist/vite/remarkStaticGeneration.js.map +1 -1
- package/lib/AuthenticationPlugin-D0Em0SwR.js +59 -0
- package/lib/AuthenticationPlugin-D0Em0SwR.js.map +1 -0
- package/lib/{OperationList-BwBl1xrD.js → OperationList-n4cxkna8.js} +2 -2
- package/lib/{OperationList-BwBl1xrD.js.map → OperationList-n4cxkna8.js.map} +1 -1
- package/lib/assets/{worker-CPsGZsve.js → worker-DFqp3K5a.js} +432 -434
- package/lib/assets/{worker-CPsGZsve.js.map → worker-DFqp3K5a.js.map} +1 -1
- package/lib/{createServer-DK-g7kbB.js → createServer-DizTyrsZ.js} +2 -4
- package/lib/{createServer-DK-g7kbB.js.map → createServer-DizTyrsZ.js.map} +1 -1
- package/lib/{index-DNxQ_rCt.js → index-DVheR31u.js} +3 -3
- package/lib/{index-DNxQ_rCt.js.map → index-DVheR31u.js.map} +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +1 -1
- package/lib/zudoku.components.js +330 -317
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +40 -38
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +2 -2
- package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
- package/src/lib/authentication/authentication.ts +1 -1
- package/src/lib/components/Header.tsx +42 -9
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/core/plugins.ts +8 -0
- package/src/lib/oas/parser/upgrade/index.ts +1 -3
- package/src/lib/plugins/api-keys/index.tsx +3 -0
- package/lib/AuthenticationPlugin-DeGDVa1r.js +0 -56
- package/lib/AuthenticationPlugin-DeGDVa1r.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var yt = Object.defineProperty;
|
|
2
|
+
var Pe = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var S = (e, t, r) =>
|
|
7
|
-
var
|
|
5
|
+
var bt = (e, t, r) => t in e ? yt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
+
var S = (e, t, r) => bt(e, typeof t != "symbol" ? t + "" : t, r), Ce = (e, t, r) => t.has(e) || Pe("Cannot " + r);
|
|
7
|
+
var c = (e, t, r) => (Ce(e, t, "read from private field"), r ? r.call(e) : t.get(e)), N = (e, t, r) => t.has(e) ? Pe("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, s) => (Ce(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r);
|
|
8
8
|
var J = (e, t, r, s) => ({
|
|
9
9
|
set _(n) {
|
|
10
10
|
y(e, t, n, r);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return
|
|
13
|
+
return c(e, t, s);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { a as
|
|
17
|
-
import { d as
|
|
16
|
+
import { a as He, A as jt, H as me, M as wt, u as St } from "./AnchorLink-CDlhr8gL.js";
|
|
17
|
+
import { d as Nt, R as Et, N as ae, u as Pt, L as ge } from "./index-Yn8c3UWE.js";
|
|
18
18
|
import { u as Ct } from "./state-tsXBLONe.js";
|
|
19
|
-
import { E as
|
|
19
|
+
import { E as Ue, S as D, a as kt, R as At } from "./SlotletProvider-DyomlzGx.js";
|
|
20
20
|
import { j as a } from "./jsx-runtime-B6kdoens.js";
|
|
21
|
-
import { Button as
|
|
22
|
-
import { Callout as
|
|
23
|
-
import { S as
|
|
24
|
-
import { M as
|
|
21
|
+
import { Button as Dt } from "./ui/Button.js";
|
|
22
|
+
import { Callout as Ot } from "./ui/Callout.js";
|
|
23
|
+
import { S as $e, l as Ke, Q as Mt, n as w, m as ke, o as Ae, p as O, q as Rt, r as It, t as Tt, v as _t, w as De, x as Oe, y as Ft, h as Me, z as Re, A as Qt, d as qt, B as Ve, C as Lt, j as Q, u as F, D as Ze, E as zt, g as Bt, Z as Ht } from "./utils-DcpDOncX.js";
|
|
24
|
+
import { M as Ut, u as se } from "./hook-hEqe7fPB.js";
|
|
25
25
|
import * as G from "react";
|
|
26
|
-
import
|
|
27
|
-
import { a as
|
|
28
|
-
import { B as
|
|
29
|
-
import { I as
|
|
30
|
-
import { S as
|
|
31
|
-
import { C as
|
|
32
|
-
import { ChevronRightIcon as
|
|
33
|
-
import { Drawer as
|
|
26
|
+
import Ye, { StrictMode as We, useState as q, useEffect as L, useRef as pe, useCallback as $t, Suspense as ve, memo as Xe, forwardRef as Kt, createContext as Je, Component as Vt, createElement as Ie, useMemo as ne, useContext as Zt, Fragment as Yt } from "react";
|
|
27
|
+
import { a as xe, c as Wt } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
28
|
+
import { B as Xt } from "./router-lfyopgBI.js";
|
|
29
|
+
import { I as Jt, y as Gt, u as ye, j as be, O as Ge } from "./index-Czzd9rjU.js";
|
|
30
|
+
import { S as ue, a as ie } from "./SidebarBadge-DxFJcJ6V.js";
|
|
31
|
+
import { C as je } from "./ClientOnly-E7hGysn1.js";
|
|
32
|
+
import { ChevronRightIcon as er, ExternalLinkIcon as tr, CircleXIcon as rr, SearchIcon as ar, MoonStarIcon as sr, SunIcon as nr, MenuIcon as ir, PanelLeftIcon as or } from "lucide-react";
|
|
33
|
+
import { Drawer as et, DrawerTrigger as tt, DrawerContent as rt, DrawerTitle as at } from "./ui/Drawer.js";
|
|
34
34
|
import { c as R } from "./cn-BmFQLtkS.js";
|
|
35
|
-
import { u as
|
|
36
|
-
import { c as
|
|
37
|
-
import * as
|
|
38
|
-
import { B as
|
|
39
|
-
import { DropdownMenu as
|
|
40
|
-
import { VisuallyHidden as
|
|
35
|
+
import { u as we, a as lr, V as cr } from "./Markdown-ievDDhFT.js";
|
|
36
|
+
import { c as ur, a as dr } from "./index-BuAyrJe3.js";
|
|
37
|
+
import * as oe from "@radix-ui/react-collapsible";
|
|
38
|
+
import { B as de } from "./Button-jK0EsymC.js";
|
|
39
|
+
import { DropdownMenu as hr, DropdownMenuTrigger as fr, DropdownMenuContent as mr, DropdownMenuLabel as gr, DropdownMenuSeparator as le, DropdownMenuSub as pr, DropdownMenuSubTrigger as vr, DropdownMenuPortal as xr, DropdownMenuSubContent as yr, DropdownMenuItem as br } from "./ui/DropdownMenu.js";
|
|
40
|
+
import { VisuallyHidden as st } from "@radix-ui/react-visually-hidden";
|
|
41
41
|
import { z as jr, J as wr } from "./SyntaxHighlight-DkLOsjHS.js";
|
|
42
42
|
import { Z as Sr } from "./invariant-Caa8-XvF.js";
|
|
43
43
|
import { S as Nr } from "./Spinner-3cQDBVGr.js";
|
|
44
44
|
function Er({ error: e }) {
|
|
45
|
-
return /* @__PURE__ */ a.jsx(
|
|
45
|
+
return /* @__PURE__ */ a.jsx(Ue, { error: e });
|
|
46
46
|
}
|
|
47
|
-
var k,
|
|
47
|
+
var k, Le, Pr = (Le = class extends $e {
|
|
48
48
|
constructor(t = {}) {
|
|
49
49
|
super();
|
|
50
50
|
N(this, k);
|
|
51
51
|
this.config = t, y(this, k, /* @__PURE__ */ new Map());
|
|
52
52
|
}
|
|
53
53
|
build(t, r, s) {
|
|
54
|
-
const n = r.queryKey, o = r.queryHash ??
|
|
54
|
+
const n = r.queryKey, o = r.queryHash ?? Ke(n, r);
|
|
55
55
|
let i = this.get(o);
|
|
56
|
-
return i || (i = new
|
|
56
|
+
return i || (i = new Mt({
|
|
57
57
|
cache: this,
|
|
58
58
|
queryKey: n,
|
|
59
59
|
queryHash: o,
|
|
@@ -63,14 +63,14 @@ var k, Qe, Cr = (Qe = class extends He {
|
|
|
63
63
|
}), this.add(i)), i;
|
|
64
64
|
}
|
|
65
65
|
add(t) {
|
|
66
|
-
|
|
66
|
+
c(this, k).has(t.queryHash) || (c(this, k).set(t.queryHash, t), this.notify({
|
|
67
67
|
type: "added",
|
|
68
68
|
query: t
|
|
69
69
|
}));
|
|
70
70
|
}
|
|
71
71
|
remove(t) {
|
|
72
|
-
const r =
|
|
73
|
-
r && (t.destroy(), r === t &&
|
|
72
|
+
const r = c(this, k).get(t.queryHash);
|
|
73
|
+
r && (t.destroy(), r === t && c(this, k).delete(t.queryHash), this.notify({ type: "removed", query: t }));
|
|
74
74
|
}
|
|
75
75
|
clear() {
|
|
76
76
|
w.batch(() => {
|
|
@@ -80,20 +80,20 @@ var k, Qe, Cr = (Qe = class extends He {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
get(t) {
|
|
83
|
-
return
|
|
83
|
+
return c(this, k).get(t);
|
|
84
84
|
}
|
|
85
85
|
getAll() {
|
|
86
|
-
return [...
|
|
86
|
+
return [...c(this, k).values()];
|
|
87
87
|
}
|
|
88
88
|
find(t) {
|
|
89
89
|
const r = { exact: !0, ...t };
|
|
90
90
|
return this.getAll().find(
|
|
91
|
-
(s) =>
|
|
91
|
+
(s) => ke(r, s)
|
|
92
92
|
);
|
|
93
93
|
}
|
|
94
94
|
findAll(t = {}) {
|
|
95
95
|
const r = this.getAll();
|
|
96
|
-
return Object.keys(t).length > 0 ? r.filter((s) =>
|
|
96
|
+
return Object.keys(t).length > 0 ? r.filter((s) => ke(t, s)) : r;
|
|
97
97
|
}
|
|
98
98
|
notify(t) {
|
|
99
99
|
w.batch(() => {
|
|
@@ -116,7 +116,7 @@ var k, Qe, Cr = (Qe = class extends He {
|
|
|
116
116
|
});
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
-
}, k = new WeakMap(),
|
|
119
|
+
}, k = new WeakMap(), Le), j, Z, ze, Cr = (ze = class extends $e {
|
|
120
120
|
constructor(t = {}) {
|
|
121
121
|
super();
|
|
122
122
|
N(this, j);
|
|
@@ -124,7 +124,7 @@ var k, Qe, Cr = (Qe = class extends He {
|
|
|
124
124
|
this.config = t, y(this, j, /* @__PURE__ */ new Map()), y(this, Z, Date.now());
|
|
125
125
|
}
|
|
126
126
|
build(t, r, s) {
|
|
127
|
-
const n = new
|
|
127
|
+
const n = new Ut({
|
|
128
128
|
mutationCache: this,
|
|
129
129
|
mutationId: ++J(this, Z)._,
|
|
130
130
|
options: t.defaultMutationOptions(r),
|
|
@@ -133,26 +133,26 @@ var k, Qe, Cr = (Qe = class extends He {
|
|
|
133
133
|
return this.add(n), n;
|
|
134
134
|
}
|
|
135
135
|
add(t) {
|
|
136
|
-
const r = ee(t), s =
|
|
137
|
-
s.push(t),
|
|
136
|
+
const r = ee(t), s = c(this, j).get(r) ?? [];
|
|
137
|
+
s.push(t), c(this, j).set(r, s), this.notify({ type: "added", mutation: t });
|
|
138
138
|
}
|
|
139
139
|
remove(t) {
|
|
140
140
|
var s;
|
|
141
141
|
const r = ee(t);
|
|
142
|
-
if (
|
|
143
|
-
const n = (s =
|
|
144
|
-
n && (n.length === 0 ?
|
|
142
|
+
if (c(this, j).has(r)) {
|
|
143
|
+
const n = (s = c(this, j).get(r)) == null ? void 0 : s.filter((o) => o !== t);
|
|
144
|
+
n && (n.length === 0 ? c(this, j).delete(r) : c(this, j).set(r, n));
|
|
145
145
|
}
|
|
146
146
|
this.notify({ type: "removed", mutation: t });
|
|
147
147
|
}
|
|
148
148
|
canRun(t) {
|
|
149
149
|
var s;
|
|
150
|
-
const r = (s =
|
|
150
|
+
const r = (s = c(this, j).get(ee(t))) == null ? void 0 : s.find((n) => n.state.status === "pending");
|
|
151
151
|
return !r || r === t;
|
|
152
152
|
}
|
|
153
153
|
runNext(t) {
|
|
154
154
|
var s;
|
|
155
|
-
const r = (s =
|
|
155
|
+
const r = (s = c(this, j).get(ee(t))) == null ? void 0 : s.find((n) => n !== t && n.state.isPaused);
|
|
156
156
|
return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
|
|
157
157
|
}
|
|
158
158
|
clear() {
|
|
@@ -163,16 +163,16 @@ var k, Qe, Cr = (Qe = class extends He {
|
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
getAll() {
|
|
166
|
-
return [...
|
|
166
|
+
return [...c(this, j).values()].flat();
|
|
167
167
|
}
|
|
168
168
|
find(t) {
|
|
169
169
|
const r = { exact: !0, ...t };
|
|
170
170
|
return this.getAll().find(
|
|
171
|
-
(s) =>
|
|
171
|
+
(s) => Ae(r, s)
|
|
172
172
|
);
|
|
173
173
|
}
|
|
174
174
|
findAll(t = {}) {
|
|
175
|
-
return this.getAll().filter((r) =>
|
|
175
|
+
return this.getAll().filter((r) => Ae(t, r));
|
|
176
176
|
}
|
|
177
177
|
notify(t) {
|
|
178
178
|
w.batch(() => {
|
|
@@ -189,18 +189,18 @@ var k, Qe, Cr = (Qe = class extends He {
|
|
|
189
189
|
)
|
|
190
190
|
);
|
|
191
191
|
}
|
|
192
|
-
}, j = new WeakMap(), Z = new WeakMap(),
|
|
192
|
+
}, j = new WeakMap(), Z = new WeakMap(), ze);
|
|
193
193
|
function ee(e) {
|
|
194
194
|
var t;
|
|
195
195
|
return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Te(e) {
|
|
198
198
|
return {
|
|
199
199
|
onFetch: (t, r) => {
|
|
200
200
|
var p, f, h, g, v;
|
|
201
201
|
const s = t.options, n = (h = (f = (p = t.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, o = ((g = t.state.data) == null ? void 0 : g.pages) || [], i = ((v = t.state.data) == null ? void 0 : v.pageParams) || [];
|
|
202
|
-
let
|
|
203
|
-
const
|
|
202
|
+
let u = { pages: [], pageParams: [] }, d = 0;
|
|
203
|
+
const l = async () => {
|
|
204
204
|
let m = !1;
|
|
205
205
|
const E = (b) => {
|
|
206
206
|
Object.defineProperty(b, "signal", {
|
|
@@ -209,48 +209,48 @@ function Re(e) {
|
|
|
209
209
|
m = !0;
|
|
210
210
|
}), t.signal)
|
|
211
211
|
});
|
|
212
|
-
}, W =
|
|
212
|
+
}, W = Rt(t.options, t.fetchOptions), $ = async (b, P, K) => {
|
|
213
213
|
if (m)
|
|
214
214
|
return Promise.reject();
|
|
215
|
-
if (
|
|
215
|
+
if (P == null && b.pages.length)
|
|
216
216
|
return Promise.resolve(b);
|
|
217
217
|
const X = {
|
|
218
218
|
queryKey: t.queryKey,
|
|
219
|
-
pageParam:
|
|
219
|
+
pageParam: P,
|
|
220
220
|
direction: K ? "backward" : "forward",
|
|
221
221
|
meta: t.options.meta
|
|
222
222
|
};
|
|
223
223
|
E(X);
|
|
224
|
-
const
|
|
224
|
+
const xt = await W(
|
|
225
225
|
X
|
|
226
|
-
), { maxPages:
|
|
226
|
+
), { maxPages: Ne } = t.options, Ee = K ? It : Tt;
|
|
227
227
|
return {
|
|
228
|
-
pages:
|
|
229
|
-
pageParams:
|
|
228
|
+
pages: Ee(b.pages, xt, Ne),
|
|
229
|
+
pageParams: Ee(b.pageParams, P, Ne)
|
|
230
230
|
};
|
|
231
231
|
};
|
|
232
232
|
if (n && o.length) {
|
|
233
|
-
const b = n === "backward",
|
|
233
|
+
const b = n === "backward", P = b ? kr : _e, K = {
|
|
234
234
|
pages: o,
|
|
235
235
|
pageParams: i
|
|
236
|
-
}, X =
|
|
237
|
-
|
|
236
|
+
}, X = P(s, K);
|
|
237
|
+
u = await $(K, X, b);
|
|
238
238
|
} else {
|
|
239
239
|
const b = e ?? o.length;
|
|
240
240
|
do {
|
|
241
|
-
const
|
|
242
|
-
if (
|
|
241
|
+
const P = d === 0 ? i[0] ?? s.initialPageParam : _e(s, u);
|
|
242
|
+
if (d > 0 && P == null)
|
|
243
243
|
break;
|
|
244
|
-
|
|
245
|
-
} while (
|
|
244
|
+
u = await $(u, P), d++;
|
|
245
|
+
} while (d < b);
|
|
246
246
|
}
|
|
247
|
-
return
|
|
247
|
+
return u;
|
|
248
248
|
};
|
|
249
249
|
t.options.persister ? t.fetchFn = () => {
|
|
250
250
|
var m, E;
|
|
251
251
|
return (E = (m = t.options).persister) == null ? void 0 : E.call(
|
|
252
252
|
m,
|
|
253
|
-
|
|
253
|
+
l,
|
|
254
254
|
{
|
|
255
255
|
queryKey: t.queryKey,
|
|
256
256
|
meta: t.options.meta,
|
|
@@ -258,11 +258,11 @@ function Re(e) {
|
|
|
258
258
|
},
|
|
259
259
|
r
|
|
260
260
|
);
|
|
261
|
-
} : t.fetchFn =
|
|
261
|
+
} : t.fetchFn = l;
|
|
262
262
|
}
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function _e(e, { pages: t, pageParams: r }) {
|
|
266
266
|
const s = t.length - 1;
|
|
267
267
|
return t.length > 0 ? e.getNextPageParam(
|
|
268
268
|
t[s],
|
|
@@ -275,65 +275,65 @@ function kr(e, { pages: t, pageParams: r }) {
|
|
|
275
275
|
var s;
|
|
276
276
|
return t.length > 0 ? (s = e.getPreviousPageParam) == null ? void 0 : s.call(e, t[0], t, r[0], r) : void 0;
|
|
277
277
|
}
|
|
278
|
-
var x, I, T,
|
|
278
|
+
var x, I, T, z, B, _, H, U, Be, Ar = (Be = class {
|
|
279
279
|
constructor(e = {}) {
|
|
280
280
|
N(this, x);
|
|
281
281
|
N(this, I);
|
|
282
282
|
N(this, T);
|
|
283
|
-
N(this, B);
|
|
284
283
|
N(this, z);
|
|
284
|
+
N(this, B);
|
|
285
285
|
N(this, _);
|
|
286
286
|
N(this, H);
|
|
287
287
|
N(this, U);
|
|
288
|
-
y(this, x, e.queryCache || new
|
|
288
|
+
y(this, x, e.queryCache || new Pr()), y(this, I, e.mutationCache || new Cr()), y(this, T, e.defaultOptions || {}), y(this, z, /* @__PURE__ */ new Map()), y(this, B, /* @__PURE__ */ new Map()), y(this, _, 0);
|
|
289
289
|
}
|
|
290
290
|
mount() {
|
|
291
|
-
J(this, _)._++,
|
|
292
|
-
e && (await this.resumePausedMutations(),
|
|
293
|
-
})), y(this, U,
|
|
294
|
-
e && (await this.resumePausedMutations(),
|
|
291
|
+
J(this, _)._++, c(this, _) === 1 && (y(this, H, _t.subscribe(async (e) => {
|
|
292
|
+
e && (await this.resumePausedMutations(), c(this, x).onFocus());
|
|
293
|
+
})), y(this, U, De.subscribe(async (e) => {
|
|
294
|
+
e && (await this.resumePausedMutations(), c(this, x).onOnline());
|
|
295
295
|
})));
|
|
296
296
|
}
|
|
297
297
|
unmount() {
|
|
298
298
|
var e, t;
|
|
299
|
-
J(this, _)._--,
|
|
299
|
+
J(this, _)._--, c(this, _) === 0 && ((e = c(this, H)) == null || e.call(this), y(this, H, void 0), (t = c(this, U)) == null || t.call(this), y(this, U, void 0));
|
|
300
300
|
}
|
|
301
301
|
isFetching(e) {
|
|
302
|
-
return
|
|
302
|
+
return c(this, x).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
303
303
|
}
|
|
304
304
|
isMutating(e) {
|
|
305
|
-
return
|
|
305
|
+
return c(this, I).findAll({ ...e, status: "pending" }).length;
|
|
306
306
|
}
|
|
307
307
|
getQueryData(e) {
|
|
308
308
|
var r;
|
|
309
309
|
const t = this.defaultQueryOptions({ queryKey: e });
|
|
310
|
-
return (r =
|
|
310
|
+
return (r = c(this, x).get(t.queryHash)) == null ? void 0 : r.state.data;
|
|
311
311
|
}
|
|
312
312
|
ensureQueryData(e) {
|
|
313
313
|
const t = this.getQueryData(e.queryKey);
|
|
314
314
|
if (t === void 0)
|
|
315
315
|
return this.fetchQuery(e);
|
|
316
316
|
{
|
|
317
|
-
const r = this.defaultQueryOptions(e), s =
|
|
318
|
-
return e.revalidateIfStale && s.isStaleByTime(
|
|
317
|
+
const r = this.defaultQueryOptions(e), s = c(this, x).build(this, r);
|
|
318
|
+
return e.revalidateIfStale && s.isStaleByTime(Oe(r.staleTime, s)) && this.prefetchQuery(r), Promise.resolve(t);
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
getQueriesData(e) {
|
|
322
|
-
return
|
|
322
|
+
return c(this, x).findAll(e).map(({ queryKey: t, state: r }) => {
|
|
323
323
|
const s = r.data;
|
|
324
324
|
return [t, s];
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
setQueryData(e, t, r) {
|
|
328
|
-
const s = this.defaultQueryOptions({ queryKey: e }), n =
|
|
328
|
+
const s = this.defaultQueryOptions({ queryKey: e }), n = c(this, x).get(
|
|
329
329
|
s.queryHash
|
|
330
|
-
), o = n == null ? void 0 : n.state.data, i =
|
|
330
|
+
), o = n == null ? void 0 : n.state.data, i = Ft(t, o);
|
|
331
331
|
if (i !== void 0)
|
|
332
|
-
return
|
|
332
|
+
return c(this, x).build(this, s).setData(i, { ...r, manual: !0 });
|
|
333
333
|
}
|
|
334
334
|
setQueriesData(e, t, r) {
|
|
335
335
|
return w.batch(
|
|
336
|
-
() =>
|
|
336
|
+
() => c(this, x).findAll(e).map(({ queryKey: s }) => [
|
|
337
337
|
s,
|
|
338
338
|
this.setQueryData(s, t, r)
|
|
339
339
|
])
|
|
@@ -342,10 +342,10 @@ var x, I, T, B, z, _, H, U, Le, Ar = (Le = class {
|
|
|
342
342
|
getQueryState(e) {
|
|
343
343
|
var r;
|
|
344
344
|
const t = this.defaultQueryOptions({ queryKey: e });
|
|
345
|
-
return (r =
|
|
345
|
+
return (r = c(this, x).get(t.queryHash)) == null ? void 0 : r.state;
|
|
346
346
|
}
|
|
347
347
|
removeQueries(e) {
|
|
348
|
-
const t =
|
|
348
|
+
const t = c(this, x);
|
|
349
349
|
w.batch(() => {
|
|
350
350
|
t.findAll(e).forEach((r) => {
|
|
351
351
|
t.remove(r);
|
|
@@ -353,7 +353,7 @@ var x, I, T, B, z, _, H, U, Le, Ar = (Le = class {
|
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
355
|
resetQueries(e, t) {
|
|
356
|
-
const r =
|
|
356
|
+
const r = c(this, x), s = {
|
|
357
357
|
type: "active",
|
|
358
358
|
...e
|
|
359
359
|
};
|
|
@@ -363,13 +363,13 @@ var x, I, T, B, z, _, H, U, Le, Ar = (Le = class {
|
|
|
363
363
|
}
|
|
364
364
|
cancelQueries(e = {}, t = {}) {
|
|
365
365
|
const r = { revert: !0, ...t }, s = w.batch(
|
|
366
|
-
() =>
|
|
366
|
+
() => c(this, x).findAll(e).map((n) => n.cancel(r))
|
|
367
367
|
);
|
|
368
368
|
return Promise.all(s).then(O).catch(O);
|
|
369
369
|
}
|
|
370
370
|
invalidateQueries(e = {}, t = {}) {
|
|
371
371
|
return w.batch(() => {
|
|
372
|
-
if (
|
|
372
|
+
if (c(this, x).findAll(e).forEach((s) => {
|
|
373
373
|
s.invalidate();
|
|
374
374
|
}), e.refetchType === "none")
|
|
375
375
|
return Promise.resolve();
|
|
@@ -385,7 +385,7 @@ var x, I, T, B, z, _, H, U, Le, Ar = (Le = class {
|
|
|
385
385
|
...t,
|
|
386
386
|
cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
|
|
387
387
|
}, s = w.batch(
|
|
388
|
-
() =>
|
|
388
|
+
() => c(this, x).findAll(e).filter((n) => !n.isDisabled()).map((n) => {
|
|
389
389
|
let o = n.fetch(void 0, r);
|
|
390
390
|
return r.throwOnError || (o = o.catch(O)), n.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
391
391
|
})
|
|
@@ -395,98 +395,98 @@ var x, I, T, B, z, _, H, U, Le, Ar = (Le = class {
|
|
|
395
395
|
fetchQuery(e) {
|
|
396
396
|
const t = this.defaultQueryOptions(e);
|
|
397
397
|
t.retry === void 0 && (t.retry = !1);
|
|
398
|
-
const r =
|
|
398
|
+
const r = c(this, x).build(this, t);
|
|
399
399
|
return r.isStaleByTime(
|
|
400
|
-
|
|
400
|
+
Oe(t.staleTime, r)
|
|
401
401
|
) ? r.fetch(t) : Promise.resolve(r.state.data);
|
|
402
402
|
}
|
|
403
403
|
prefetchQuery(e) {
|
|
404
404
|
return this.fetchQuery(e).then(O).catch(O);
|
|
405
405
|
}
|
|
406
406
|
fetchInfiniteQuery(e) {
|
|
407
|
-
return e.behavior =
|
|
407
|
+
return e.behavior = Te(e.pages), this.fetchQuery(e);
|
|
408
408
|
}
|
|
409
409
|
prefetchInfiniteQuery(e) {
|
|
410
410
|
return this.fetchInfiniteQuery(e).then(O).catch(O);
|
|
411
411
|
}
|
|
412
412
|
ensureInfiniteQueryData(e) {
|
|
413
|
-
return e.behavior =
|
|
413
|
+
return e.behavior = Te(e.pages), this.ensureQueryData(e);
|
|
414
414
|
}
|
|
415
415
|
resumePausedMutations() {
|
|
416
|
-
return
|
|
416
|
+
return De.isOnline() ? c(this, I).resumePausedMutations() : Promise.resolve();
|
|
417
417
|
}
|
|
418
418
|
getQueryCache() {
|
|
419
|
-
return
|
|
419
|
+
return c(this, x);
|
|
420
420
|
}
|
|
421
421
|
getMutationCache() {
|
|
422
|
-
return
|
|
422
|
+
return c(this, I);
|
|
423
423
|
}
|
|
424
424
|
getDefaultOptions() {
|
|
425
|
-
return
|
|
425
|
+
return c(this, T);
|
|
426
426
|
}
|
|
427
427
|
setDefaultOptions(e) {
|
|
428
428
|
y(this, T, e);
|
|
429
429
|
}
|
|
430
430
|
setQueryDefaults(e, t) {
|
|
431
|
-
|
|
431
|
+
c(this, z).set(Me(e), {
|
|
432
432
|
queryKey: e,
|
|
433
433
|
defaultOptions: t
|
|
434
434
|
});
|
|
435
435
|
}
|
|
436
436
|
getQueryDefaults(e) {
|
|
437
|
-
const t = [...
|
|
437
|
+
const t = [...c(this, z).values()];
|
|
438
438
|
let r = {};
|
|
439
439
|
return t.forEach((s) => {
|
|
440
|
-
|
|
440
|
+
Re(e, s.queryKey) && (r = { ...r, ...s.defaultOptions });
|
|
441
441
|
}), r;
|
|
442
442
|
}
|
|
443
443
|
setMutationDefaults(e, t) {
|
|
444
|
-
|
|
444
|
+
c(this, B).set(Me(e), {
|
|
445
445
|
mutationKey: e,
|
|
446
446
|
defaultOptions: t
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
449
|
getMutationDefaults(e) {
|
|
450
|
-
const t = [...
|
|
450
|
+
const t = [...c(this, B).values()];
|
|
451
451
|
let r = {};
|
|
452
452
|
return t.forEach((s) => {
|
|
453
|
-
|
|
453
|
+
Re(e, s.mutationKey) && (r = { ...r, ...s.defaultOptions });
|
|
454
454
|
}), r;
|
|
455
455
|
}
|
|
456
456
|
defaultQueryOptions(e) {
|
|
457
457
|
if (e._defaulted)
|
|
458
458
|
return e;
|
|
459
459
|
const t = {
|
|
460
|
-
...
|
|
460
|
+
...c(this, T).queries,
|
|
461
461
|
...this.getQueryDefaults(e.queryKey),
|
|
462
462
|
...e,
|
|
463
463
|
_defaulted: !0
|
|
464
464
|
};
|
|
465
|
-
return t.queryHash || (t.queryHash =
|
|
465
|
+
return t.queryHash || (t.queryHash = Ke(
|
|
466
466
|
t.queryKey,
|
|
467
467
|
t
|
|
468
|
-
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn ===
|
|
468
|
+
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === Qt && (t.enabled = !1), t;
|
|
469
469
|
}
|
|
470
470
|
defaultMutationOptions(e) {
|
|
471
471
|
return e != null && e._defaulted ? e : {
|
|
472
|
-
...
|
|
472
|
+
...c(this, T).mutations,
|
|
473
473
|
...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
|
|
474
474
|
...e,
|
|
475
475
|
_defaulted: !0
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
478
|
clear() {
|
|
479
|
-
|
|
479
|
+
c(this, x).clear(), c(this, I).clear();
|
|
480
480
|
}
|
|
481
|
-
}, x = new WeakMap(), I = new WeakMap(), T = new WeakMap(),
|
|
481
|
+
}, x = new WeakMap(), I = new WeakMap(), T = new WeakMap(), z = new WeakMap(), B = new WeakMap(), _ = new WeakMap(), H = new WeakMap(), U = new WeakMap(), Be);
|
|
482
482
|
function Dr(e) {
|
|
483
483
|
return e;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
486
|
-
var
|
|
485
|
+
function Fe(e, t, r) {
|
|
486
|
+
var d, l;
|
|
487
487
|
if (typeof t != "object" || t === null)
|
|
488
488
|
return;
|
|
489
|
-
const s = e.getMutationCache(), n = e.getQueryCache(), o = ((
|
|
489
|
+
const s = e.getMutationCache(), n = e.getQueryCache(), o = ((d = r == null ? void 0 : r.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((l = e.getDefaultOptions().hydrate) == null ? void 0 : l.deserializeData) ?? Dr, i = t.mutations || [], u = t.queries || [];
|
|
490
490
|
i.forEach(({ state: p, ...f }) => {
|
|
491
491
|
var h, g;
|
|
492
492
|
s.build(
|
|
@@ -498,15 +498,15 @@ function Te(e, t, r) {
|
|
|
498
498
|
},
|
|
499
499
|
p
|
|
500
500
|
);
|
|
501
|
-
}),
|
|
501
|
+
}), u.forEach(({ queryKey: p, state: f, queryHash: h, meta: g, promise: v }) => {
|
|
502
502
|
var W, $;
|
|
503
503
|
let m = n.get(h);
|
|
504
504
|
const E = f.data === void 0 ? f.data : o(f.data);
|
|
505
505
|
if (m) {
|
|
506
506
|
if (m.state.dataUpdatedAt < f.dataUpdatedAt) {
|
|
507
|
-
const { fetchStatus: b, ...
|
|
507
|
+
const { fetchStatus: b, ...P } = f;
|
|
508
508
|
m.setState({
|
|
509
|
-
...
|
|
509
|
+
...P,
|
|
510
510
|
data: E
|
|
511
511
|
});
|
|
512
512
|
}
|
|
@@ -540,14 +540,14 @@ var Or = ({
|
|
|
540
540
|
state: r,
|
|
541
541
|
queryClient: s
|
|
542
542
|
}) => {
|
|
543
|
-
const n =
|
|
544
|
-
return
|
|
543
|
+
const n = qt(s), [o, i] = G.useState(), u = G.useRef(t);
|
|
544
|
+
return u.current = t, G.useMemo(() => {
|
|
545
545
|
if (r) {
|
|
546
546
|
if (typeof r != "object")
|
|
547
547
|
return;
|
|
548
|
-
const
|
|
549
|
-
for (const h of
|
|
550
|
-
const g =
|
|
548
|
+
const d = n.getQueryCache(), l = r.queries || [], p = [], f = [];
|
|
549
|
+
for (const h of l) {
|
|
550
|
+
const g = d.get(h.queryHash);
|
|
551
551
|
if (!g)
|
|
552
552
|
p.push(h);
|
|
553
553
|
else {
|
|
@@ -557,17 +557,17 @@ var Or = ({
|
|
|
557
557
|
v && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && f.push(h);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
p.length > 0 &&
|
|
560
|
+
p.length > 0 && Fe(n, { queries: p }, u.current), f.length > 0 && i(
|
|
561
561
|
(h) => h ? [...h, ...f] : f
|
|
562
562
|
);
|
|
563
563
|
}
|
|
564
564
|
}, [n, o, r]), G.useEffect(() => {
|
|
565
|
-
o && (
|
|
565
|
+
o && (Fe(n, { queries: o }, u.current), i(void 0));
|
|
566
566
|
}, [n, o]), e;
|
|
567
567
|
}, Y = {};
|
|
568
|
-
const Mr = /* @__PURE__ */
|
|
568
|
+
const Mr = /* @__PURE__ */ xe(Xt), Rr = /* @__PURE__ */ xe(Jt), Ir = /* @__PURE__ */ xe(Nt);
|
|
569
569
|
Object.defineProperty(Y, "__esModule", { value: !0 });
|
|
570
|
-
var Tr =
|
|
570
|
+
var Tr = Ye, A = Mr, Se = Rr, M = Ir;
|
|
571
571
|
function _r(e) {
|
|
572
572
|
if (e && e.__esModule) return e;
|
|
573
573
|
var t = /* @__PURE__ */ Object.create(null);
|
|
@@ -583,7 +583,7 @@ function _r(e) {
|
|
|
583
583
|
}
|
|
584
584
|
}), t.default = e, Object.freeze(t);
|
|
585
585
|
}
|
|
586
|
-
var
|
|
586
|
+
var C = /* @__PURE__ */ _r(Tr);
|
|
587
587
|
function Fr({
|
|
588
588
|
basename: e,
|
|
589
589
|
children: t,
|
|
@@ -597,8 +597,8 @@ function Fr({
|
|
|
597
597
|
hash: r.hash || "",
|
|
598
598
|
state: r.state != null ? r.state : null,
|
|
599
599
|
key: r.key || "default"
|
|
600
|
-
}, i =
|
|
601
|
-
return /* @__PURE__ */
|
|
600
|
+
}, i = nt();
|
|
601
|
+
return /* @__PURE__ */ C.createElement(M.Router, {
|
|
602
602
|
basename: e,
|
|
603
603
|
children: t,
|
|
604
604
|
location: o,
|
|
@@ -617,46 +617,46 @@ function Qr({
|
|
|
617
617
|
t && e || (process.env.NODE_ENV !== "production" ? A.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : A.UNSAFE_invariant(!1));
|
|
618
618
|
let n = {
|
|
619
619
|
router: t,
|
|
620
|
-
navigator:
|
|
620
|
+
navigator: nt(),
|
|
621
621
|
static: !0,
|
|
622
622
|
staticContext: e,
|
|
623
623
|
basename: e.basename || "/"
|
|
624
624
|
}, o = /* @__PURE__ */ new Map(), i = "";
|
|
625
625
|
if (r !== !1) {
|
|
626
|
-
let
|
|
626
|
+
let d = {
|
|
627
627
|
loaderData: e.loaderData,
|
|
628
628
|
actionData: e.actionData,
|
|
629
629
|
errors: Lr(e.errors)
|
|
630
630
|
};
|
|
631
|
-
i = `window.__staticRouterHydrationData = JSON.parse(${Kr(JSON.stringify(JSON.stringify(
|
|
631
|
+
i = `window.__staticRouterHydrationData = JSON.parse(${Kr(JSON.stringify(JSON.stringify(d)))});`;
|
|
632
632
|
}
|
|
633
633
|
let {
|
|
634
|
-
state:
|
|
634
|
+
state: u
|
|
635
635
|
} = n.router;
|
|
636
|
-
return /* @__PURE__ */
|
|
636
|
+
return /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement(M.UNSAFE_DataRouterContext.Provider, {
|
|
637
637
|
value: n
|
|
638
|
-
}, /* @__PURE__ */
|
|
639
|
-
value:
|
|
640
|
-
}, /* @__PURE__ */
|
|
638
|
+
}, /* @__PURE__ */ C.createElement(M.UNSAFE_DataRouterStateContext.Provider, {
|
|
639
|
+
value: u
|
|
640
|
+
}, /* @__PURE__ */ C.createElement(M.UNSAFE_FetchersContext.Provider, {
|
|
641
641
|
value: o
|
|
642
|
-
}, /* @__PURE__ */
|
|
642
|
+
}, /* @__PURE__ */ C.createElement(M.UNSAFE_ViewTransitionContext.Provider, {
|
|
643
643
|
value: {
|
|
644
644
|
isTransitioning: !1
|
|
645
645
|
}
|
|
646
|
-
}, /* @__PURE__ */
|
|
646
|
+
}, /* @__PURE__ */ C.createElement(M.Router, {
|
|
647
647
|
basename: n.basename,
|
|
648
|
-
location:
|
|
649
|
-
navigationType:
|
|
648
|
+
location: u.location,
|
|
649
|
+
navigationType: u.historyAction,
|
|
650
650
|
navigator: n.navigator,
|
|
651
651
|
static: n.static,
|
|
652
652
|
future: {
|
|
653
653
|
v7_relativeSplatPath: t.future.v7_relativeSplatPath
|
|
654
654
|
}
|
|
655
|
-
}, /* @__PURE__ */
|
|
655
|
+
}, /* @__PURE__ */ C.createElement(qr, {
|
|
656
656
|
routes: t.routes,
|
|
657
657
|
future: t.future,
|
|
658
|
-
state:
|
|
659
|
-
})))))), i ? /* @__PURE__ */
|
|
658
|
+
state: u
|
|
659
|
+
})))))), i ? /* @__PURE__ */ C.createElement("script", {
|
|
660
660
|
suppressHydrationWarning: !0,
|
|
661
661
|
nonce: s,
|
|
662
662
|
dangerouslySetInnerHTML: {
|
|
@@ -669,7 +669,7 @@ function qr({
|
|
|
669
669
|
future: t,
|
|
670
670
|
state: r
|
|
671
671
|
}) {
|
|
672
|
-
return
|
|
672
|
+
return Se.UNSAFE_useRoutesImpl(e, void 0, r, t);
|
|
673
673
|
}
|
|
674
674
|
function Lr(e) {
|
|
675
675
|
if (!e) return null;
|
|
@@ -689,10 +689,10 @@ function Lr(e) {
|
|
|
689
689
|
} : r[s] = n;
|
|
690
690
|
return r;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function nt() {
|
|
693
693
|
return {
|
|
694
|
-
createHref:
|
|
695
|
-
encodeLocation:
|
|
694
|
+
createHref: it,
|
|
695
|
+
encodeLocation: ot,
|
|
696
696
|
push(e) {
|
|
697
697
|
throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
|
|
698
698
|
},
|
|
@@ -710,32 +710,32 @@ function at() {
|
|
|
710
710
|
}
|
|
711
711
|
};
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function zr(e, t) {
|
|
714
714
|
return A.createStaticHandler(e, {
|
|
715
715
|
...t,
|
|
716
|
-
mapRouteProperties:
|
|
716
|
+
mapRouteProperties: Se.UNSAFE_mapRouteProperties
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
|
-
function
|
|
720
|
-
let s = {}, n = A.UNSAFE_convertRoutesToDataRoutes(e,
|
|
721
|
-
let
|
|
719
|
+
function Br(e, t, r = {}) {
|
|
720
|
+
let s = {}, n = A.UNSAFE_convertRoutesToDataRoutes(e, Se.UNSAFE_mapRouteProperties, void 0, s), o = t.matches.map((u) => {
|
|
721
|
+
let d = s[u.route.id] || u.route;
|
|
722
722
|
return {
|
|
723
|
-
...
|
|
724
|
-
route:
|
|
723
|
+
...u,
|
|
724
|
+
route: d
|
|
725
725
|
};
|
|
726
|
-
}), i = (
|
|
726
|
+
}), i = (u) => `You cannot use router.${u}() on the server because it is a stateless environment`;
|
|
727
727
|
return {
|
|
728
728
|
get basename() {
|
|
729
729
|
return t.basename;
|
|
730
730
|
},
|
|
731
731
|
get future() {
|
|
732
|
-
var
|
|
732
|
+
var u, d;
|
|
733
733
|
return {
|
|
734
734
|
v7_fetcherPersist: !1,
|
|
735
735
|
v7_normalizeFormMethod: !1,
|
|
736
|
-
v7_partialHydration: ((
|
|
736
|
+
v7_partialHydration: ((u = r.future) == null ? void 0 : u.v7_partialHydration) === !0,
|
|
737
737
|
v7_prependBasename: !1,
|
|
738
|
-
v7_relativeSplatPath: ((
|
|
738
|
+
v7_relativeSplatPath: ((d = r.future) == null ? void 0 : d.v7_relativeSplatPath) === !0,
|
|
739
739
|
v7_skipActionErrorRevalidation: !1
|
|
740
740
|
};
|
|
741
741
|
},
|
|
@@ -779,8 +779,8 @@ function zr(e, t, r = {}) {
|
|
|
779
779
|
revalidate() {
|
|
780
780
|
throw i("revalidate");
|
|
781
781
|
},
|
|
782
|
-
createHref:
|
|
783
|
-
encodeLocation:
|
|
782
|
+
createHref: it,
|
|
783
|
+
encodeLocation: ot,
|
|
784
784
|
getFetcher() {
|
|
785
785
|
return A.IDLE_FETCHER;
|
|
786
786
|
},
|
|
@@ -806,10 +806,10 @@ function zr(e, t, r = {}) {
|
|
|
806
806
|
}
|
|
807
807
|
};
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function it(e) {
|
|
810
810
|
return typeof e == "string" ? e : M.createPath(e);
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function ot(e) {
|
|
813
813
|
let t = typeof e == "string" ? e : M.createPath(e);
|
|
814
814
|
t = t.replace(/ $/, "%20");
|
|
815
815
|
let r = Hr.test(t) ? new URL(t) : new URL(t, "http://localhost");
|
|
@@ -831,8 +831,8 @@ function Kr(e) {
|
|
|
831
831
|
}
|
|
832
832
|
Y.StaticRouter = Fr;
|
|
833
833
|
var Vr = Y.StaticRouterProvider = Qr;
|
|
834
|
-
Y.createStaticHandler =
|
|
835
|
-
Y.createStaticRouter =
|
|
834
|
+
Y.createStaticHandler = zr;
|
|
835
|
+
Y.createStaticRouter = Br;
|
|
836
836
|
const Zr = new Ar({
|
|
837
837
|
defaultOptions: {
|
|
838
838
|
queries: {
|
|
@@ -842,8 +842,8 @@ const Zr = new Ar({
|
|
|
842
842
|
}), Yr = ({
|
|
843
843
|
router: e,
|
|
844
844
|
hydrate: t = !1
|
|
845
|
-
}) => /* @__PURE__ */ a.jsx(
|
|
846
|
-
|
|
845
|
+
}) => /* @__PURE__ */ a.jsx(We, { children: /* @__PURE__ */ a.jsx(Ve, { client: Zr, children: /* @__PURE__ */ a.jsx(Or, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(He, { children: /* @__PURE__ */ a.jsx(ue.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(
|
|
846
|
+
Et,
|
|
847
847
|
{
|
|
848
848
|
router: e,
|
|
849
849
|
future: { v7_startTransition: !0 }
|
|
@@ -853,63 +853,63 @@ const Zr = new Ar({
|
|
|
853
853
|
context: t,
|
|
854
854
|
queryClient: r,
|
|
855
855
|
helmetContext: s
|
|
856
|
-
}) => /* @__PURE__ */ a.jsx(
|
|
857
|
-
var
|
|
856
|
+
}) => /* @__PURE__ */ a.jsx(We, { children: /* @__PURE__ */ a.jsx(Ve, { client: r, children: /* @__PURE__ */ a.jsx(He, { context: s, children: /* @__PURE__ */ a.jsx(Vr, { router: e, context: t }) }) }) });
|
|
857
|
+
var he = { exports: {} };
|
|
858
858
|
(function(e, t) {
|
|
859
859
|
(function(r, s) {
|
|
860
|
-
s(t,
|
|
861
|
-
})(
|
|
860
|
+
s(t, Ye);
|
|
861
|
+
})(Wt, function(r, s) {
|
|
862
862
|
const n = {
|
|
863
863
|
delay: 500,
|
|
864
864
|
minDuration: 200,
|
|
865
865
|
ssr: !0
|
|
866
866
|
};
|
|
867
867
|
function o() {
|
|
868
|
-
const [
|
|
868
|
+
const [u, d] = s.useState(!0);
|
|
869
869
|
return s.useEffect(() => {
|
|
870
|
-
|
|
871
|
-
}, []),
|
|
870
|
+
d(!1);
|
|
871
|
+
}, []), u;
|
|
872
872
|
}
|
|
873
|
-
function i(
|
|
874
|
-
|
|
875
|
-
const
|
|
873
|
+
function i(u, d) {
|
|
874
|
+
d = Object.assign({}, n, d);
|
|
875
|
+
const l = o() && d.ssr, p = l && u ? "DISPLAY" : "IDLE", [f, h] = s.useState(p), g = s.useRef(null);
|
|
876
876
|
return s.useEffect(() => {
|
|
877
|
-
if (
|
|
877
|
+
if (u && (f === "IDLE" || l)) {
|
|
878
878
|
clearTimeout(g.current);
|
|
879
|
-
const v =
|
|
879
|
+
const v = l ? 0 : d.delay;
|
|
880
880
|
g.current = setTimeout(() => {
|
|
881
|
-
if (!
|
|
881
|
+
if (!u)
|
|
882
882
|
return h("IDLE");
|
|
883
883
|
g.current = setTimeout(() => {
|
|
884
884
|
h("EXPIRE");
|
|
885
|
-
},
|
|
886
|
-
}, v),
|
|
885
|
+
}, d.minDuration), h("DISPLAY");
|
|
886
|
+
}, v), l || h("DELAY");
|
|
887
887
|
}
|
|
888
|
-
!
|
|
889
|
-
}, [
|
|
888
|
+
!u && f !== "DISPLAY" && (clearTimeout(g.current), h("IDLE"));
|
|
889
|
+
}, [u, f, d.delay, d.minDuration, l]), s.useEffect(() => () => clearTimeout(g.current), []), f === "DISPLAY" || f === "EXPIRE";
|
|
890
890
|
}
|
|
891
891
|
r.defaultOptions = n, r.useSpinDelay = i;
|
|
892
892
|
});
|
|
893
|
-
})(
|
|
894
|
-
var Xr =
|
|
893
|
+
})(he, he.exports);
|
|
894
|
+
var Xr = he.exports;
|
|
895
895
|
const Jr = ({
|
|
896
896
|
category: e,
|
|
897
897
|
level: t
|
|
898
898
|
}) => {
|
|
899
899
|
var h, g;
|
|
900
|
-
const r =
|
|
900
|
+
const r = Lt(e), [s, n] = q(!1), o = e.collapsible ?? !0, i = e.collapsed ?? !0, u = !!(!o || !i || r), [d, l] = q(u), p = Gt(((h = e.link) == null ? void 0 : h.id) ?? "");
|
|
901
901
|
L(() => {
|
|
902
|
-
r &&
|
|
902
|
+
r && l(!0);
|
|
903
903
|
}, [r]);
|
|
904
904
|
const f = o && /* @__PURE__ */ a.jsx(
|
|
905
905
|
"button",
|
|
906
906
|
{
|
|
907
907
|
type: "button",
|
|
908
908
|
onClick: (v) => {
|
|
909
|
-
v.preventDefault(),
|
|
909
|
+
v.preventDefault(), l((m) => !m), n(!0);
|
|
910
910
|
},
|
|
911
911
|
children: /* @__PURE__ */ a.jsx(
|
|
912
|
-
|
|
912
|
+
er,
|
|
913
913
|
{
|
|
914
914
|
size: 16,
|
|
915
915
|
className: R(
|
|
@@ -921,14 +921,14 @@ const Jr = ({
|
|
|
921
921
|
}
|
|
922
922
|
);
|
|
923
923
|
return /* @__PURE__ */ a.jsxs(
|
|
924
|
-
|
|
924
|
+
oe.Root,
|
|
925
925
|
{
|
|
926
926
|
className: "flex flex-col",
|
|
927
|
-
defaultOpen:
|
|
928
|
-
open:
|
|
929
|
-
onOpenChange: () =>
|
|
927
|
+
defaultOpen: u,
|
|
928
|
+
open: d,
|
|
929
|
+
onOpenChange: () => l(!0),
|
|
930
930
|
children: [
|
|
931
|
-
/* @__PURE__ */ a.jsx(
|
|
931
|
+
/* @__PURE__ */ a.jsx(oe.Trigger, { className: "group", asChild: !0, disabled: !o, children: /* @__PURE__ */ a.jsxs(
|
|
932
932
|
"div",
|
|
933
933
|
{
|
|
934
934
|
onClick: () => n(!0),
|
|
@@ -952,12 +952,12 @@ const Jr = ({
|
|
|
952
952
|
}
|
|
953
953
|
),
|
|
954
954
|
((g = e.link) == null ? void 0 : g.type) === "doc" ? /* @__PURE__ */ a.jsx(
|
|
955
|
-
|
|
955
|
+
ae,
|
|
956
956
|
{
|
|
957
957
|
to: Q(e.link.id),
|
|
958
958
|
className: "flex-1",
|
|
959
959
|
onClick: () => {
|
|
960
|
-
p && !
|
|
960
|
+
p && !d && l(!0);
|
|
961
961
|
},
|
|
962
962
|
children: /* @__PURE__ */ a.jsxs(
|
|
963
963
|
"div",
|
|
@@ -981,14 +981,14 @@ const Jr = ({
|
|
|
981
981
|
}
|
|
982
982
|
) }),
|
|
983
983
|
/* @__PURE__ */ a.jsx(
|
|
984
|
-
|
|
984
|
+
oe.Content,
|
|
985
985
|
{
|
|
986
986
|
className: R(
|
|
987
987
|
// CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
|
|
988
988
|
s && "CollapsibleContent"
|
|
989
989
|
),
|
|
990
990
|
children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: e.items.map((v) => /* @__PURE__ */ a.jsx(
|
|
991
|
-
|
|
991
|
+
fe,
|
|
992
992
|
{
|
|
993
993
|
level: t + 1,
|
|
994
994
|
item: v
|
|
@@ -1000,7 +1000,7 @@ const Jr = ({
|
|
|
1000
1000
|
]
|
|
1001
1001
|
}
|
|
1002
1002
|
);
|
|
1003
|
-
}, V =
|
|
1003
|
+
}, V = ur(
|
|
1004
1004
|
"flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
1005
1005
|
{
|
|
1006
1006
|
variants: {
|
|
@@ -1021,18 +1021,18 @@ const Jr = ({
|
|
|
1021
1021
|
isActive: !1
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
1024
|
-
),
|
|
1024
|
+
), lt = "data-anchor", fe = ({
|
|
1025
1025
|
item: e,
|
|
1026
1026
|
level: t = 0
|
|
1027
1027
|
}) => {
|
|
1028
1028
|
var n, o;
|
|
1029
|
-
const { activeAnchor: r } =
|
|
1029
|
+
const { activeAnchor: r } = we(), [s] = Pt();
|
|
1030
1030
|
switch (e.type) {
|
|
1031
1031
|
case "category":
|
|
1032
1032
|
return /* @__PURE__ */ a.jsx(Jr, { category: e, level: t });
|
|
1033
1033
|
case "doc":
|
|
1034
1034
|
return /* @__PURE__ */ a.jsxs(
|
|
1035
|
-
|
|
1035
|
+
ae,
|
|
1036
1036
|
{
|
|
1037
1037
|
className: ({ isActive: i }) => V({ isActive: i, isTopLevel: t === 0 }),
|
|
1038
1038
|
to: Q(e.id),
|
|
@@ -1040,17 +1040,17 @@ const Jr = ({
|
|
|
1040
1040
|
e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
|
|
1041
1041
|
e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1042
1042
|
/* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
|
|
1043
|
-
/* @__PURE__ */ a.jsx(
|
|
1043
|
+
/* @__PURE__ */ a.jsx(ie, { ...e.badge })
|
|
1044
1044
|
] }) : e.label
|
|
1045
1045
|
]
|
|
1046
1046
|
}
|
|
1047
1047
|
);
|
|
1048
1048
|
case "link":
|
|
1049
1049
|
return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
|
|
1050
|
-
|
|
1050
|
+
jt,
|
|
1051
1051
|
{
|
|
1052
1052
|
to: { hash: e.href, search: s.toString() },
|
|
1053
|
-
[
|
|
1053
|
+
[lt]: e.href.slice(1),
|
|
1054
1054
|
className: V({
|
|
1055
1055
|
isActive: e.href.slice(1) === r,
|
|
1056
1056
|
isTopLevel: t === 0,
|
|
@@ -1058,7 +1058,7 @@ const Jr = ({
|
|
|
1058
1058
|
}),
|
|
1059
1059
|
children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1060
1060
|
/* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
1061
|
-
/* @__PURE__ */ a.jsx(
|
|
1061
|
+
/* @__PURE__ */ a.jsx(ie, { ...e.badge })
|
|
1062
1062
|
] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
|
|
1063
1063
|
}
|
|
1064
1064
|
) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
|
|
@@ -1070,11 +1070,11 @@ const Jr = ({
|
|
|
1070
1070
|
rel: "noopener noreferrer",
|
|
1071
1071
|
children: [
|
|
1072
1072
|
/* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
1073
|
-
/* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(
|
|
1073
|
+
/* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(tr, { className: "inline -translate-y-0.5", size: 12 }) })
|
|
1074
1074
|
]
|
|
1075
1075
|
}
|
|
1076
1076
|
) : /* @__PURE__ */ a.jsx(
|
|
1077
|
-
|
|
1077
|
+
ae,
|
|
1078
1078
|
{
|
|
1079
1079
|
className: V({
|
|
1080
1080
|
className: ((o = e.badge) == null ? void 0 : o.placement) !== "start" && "justify-between"
|
|
@@ -1082,7 +1082,7 @@ const Jr = ({
|
|
|
1082
1082
|
to: e.href,
|
|
1083
1083
|
children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1084
1084
|
/* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
1085
|
-
/* @__PURE__ */ a.jsx(
|
|
1085
|
+
/* @__PURE__ */ a.jsx(ie, { ...e.badge })
|
|
1086
1086
|
] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
|
|
1087
1087
|
}
|
|
1088
1088
|
);
|
|
@@ -1092,11 +1092,11 @@ const Jr = ({
|
|
|
1092
1092
|
const r = e.getBoundingClientRect();
|
|
1093
1093
|
r.top >= 0 && r.left >= 0 && r.bottom <= (window.innerHeight || document.documentElement.clientHeight) && r.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
1094
1094
|
}, ea = () => {
|
|
1095
|
-
const e =
|
|
1095
|
+
const e = ye(), { setActiveAnchor: t } = we();
|
|
1096
1096
|
L(() => {
|
|
1097
1097
|
if (!e.hash) return;
|
|
1098
1098
|
const r = decodeURIComponent(e.hash.split("/")[0].slice(1)), s = () => {
|
|
1099
|
-
const n = document.getElementById(r), o = document.querySelector(`[${
|
|
1099
|
+
const n = document.getElementById(r), o = document.querySelector(`[${lt}="${r}"]`);
|
|
1100
1100
|
return n ? (n.scrollIntoView(), Gr(o), requestIdleCallback(() => t(r)), !0) : !1;
|
|
1101
1101
|
};
|
|
1102
1102
|
if (!s()) {
|
|
@@ -1107,7 +1107,7 @@ const Jr = ({
|
|
|
1107
1107
|
}
|
|
1108
1108
|
}, [e.hash, t]);
|
|
1109
1109
|
}, ta = () => {
|
|
1110
|
-
const e =
|
|
1110
|
+
const e = ye(), t = pe(e.pathname);
|
|
1111
1111
|
L(() => {
|
|
1112
1112
|
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
1113
1113
|
}, [e.pathname]);
|
|
@@ -1124,7 +1124,7 @@ function ra({
|
|
|
1124
1124
|
}
|
|
1125
1125
|
);
|
|
1126
1126
|
}
|
|
1127
|
-
const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", sa = (e) => "getRoutes" in e && typeof e.getRoutes == "function", na = (e) => "renderSearch" in e && typeof e.renderSearch == "function", ia = (e) => "initialize" in e && typeof e.initialize == "function", oa = (e) => "getHead" in e && typeof e.getHead == "function", la = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", ca = (e) => "getIdentities" in e && typeof e.getIdentities == "function",
|
|
1127
|
+
const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", sa = (e) => "getRoutes" in e && typeof e.getRoutes == "function", na = (e) => "renderSearch" in e && typeof e.renderSearch == "function", ia = (e) => "initialize" in e && typeof e.initialize == "function", oa = (e) => "getHead" in e && typeof e.getHead == "function", la = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", ca = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Qe = {
|
|
1128
1128
|
info: "bg-blue-500",
|
|
1129
1129
|
note: "bg-gray-500",
|
|
1130
1130
|
tip: "bg-green-600",
|
|
@@ -1134,7 +1134,7 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1134
1134
|
const { page: e } = F(), [t, r] = q(!0);
|
|
1135
1135
|
if (!(e != null && e.banner) || !t)
|
|
1136
1136
|
return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
1137
|
-
const s = e.banner.color && e.banner.color in
|
|
1137
|
+
const s = e.banner.color && e.banner.color in Qe ? Qe[e.banner.color] : e.banner.color ? void 0 : "bg-primary", n = s ? {} : { backgroundColor: e.banner.color };
|
|
1138
1138
|
return /* @__PURE__ */ a.jsxs(
|
|
1139
1139
|
"div",
|
|
1140
1140
|
{
|
|
@@ -1151,14 +1151,14 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1151
1151
|
type: "button",
|
|
1152
1152
|
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
1153
1153
|
onClick: () => r(!1),
|
|
1154
|
-
children: /* @__PURE__ */ a.jsx(
|
|
1154
|
+
children: /* @__PURE__ */ a.jsx(rr, { size: 16 })
|
|
1155
1155
|
}
|
|
1156
1156
|
)
|
|
1157
1157
|
]
|
|
1158
1158
|
}
|
|
1159
1159
|
);
|
|
1160
|
-
},
|
|
1161
|
-
const e = F(), [t, r] = q(!1), s =
|
|
1160
|
+
}, ct = () => {
|
|
1161
|
+
const e = F(), [t, r] = q(!1), s = $t(() => r(!1), []);
|
|
1162
1162
|
L(() => {
|
|
1163
1163
|
if (t)
|
|
1164
1164
|
return;
|
|
@@ -1179,22 +1179,22 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1179
1179
|
className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
|
|
1180
1180
|
children: [
|
|
1181
1181
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
1182
|
-
/* @__PURE__ */ a.jsx(
|
|
1182
|
+
/* @__PURE__ */ a.jsx(ar, { size: 14 }),
|
|
1183
1183
|
"Search"
|
|
1184
1184
|
] }),
|
|
1185
1185
|
/* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
|
|
1186
1186
|
]
|
|
1187
1187
|
}
|
|
1188
1188
|
),
|
|
1189
|
-
/* @__PURE__ */ a.jsx(
|
|
1189
|
+
/* @__PURE__ */ a.jsx(ve, { fallback: null, children: n.renderSearch({
|
|
1190
1190
|
isOpen: t,
|
|
1191
1191
|
onClose: s
|
|
1192
1192
|
}) })
|
|
1193
1193
|
] }) : null;
|
|
1194
|
-
},
|
|
1195
|
-
const { resolvedTheme: e, setTheme: t } = jr(), r = e === "dark" ?
|
|
1196
|
-
return /* @__PURE__ */ a.jsx(
|
|
1197
|
-
|
|
1194
|
+
}, ut = () => {
|
|
1195
|
+
const { resolvedTheme: e, setTheme: t } = jr(), r = e === "dark" ? sr : nr;
|
|
1196
|
+
return /* @__PURE__ */ a.jsx(je, { children: /* @__PURE__ */ a.jsx(
|
|
1197
|
+
de,
|
|
1198
1198
|
{
|
|
1199
1199
|
variant: "ghost",
|
|
1200
1200
|
"aria-label": e === "dark" ? "Switch to light mode" : "Switch to dark mode",
|
|
@@ -1203,19 +1203,19 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1203
1203
|
children: /* @__PURE__ */ a.jsx(r, { size: 18 })
|
|
1204
1204
|
}
|
|
1205
1205
|
) });
|
|
1206
|
-
},
|
|
1207
|
-
const { topNavigation: e } = F(), { isAuthenticated: t } =
|
|
1208
|
-
return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(
|
|
1209
|
-
},
|
|
1206
|
+
}, dt = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", da = () => {
|
|
1207
|
+
const { topNavigation: e } = F(), { isAuthenticated: t } = se();
|
|
1208
|
+
return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(ve, { children: /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(dt(t)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ht, { ...r }) }, r.id)) }) }) });
|
|
1209
|
+
}, ht = ({
|
|
1210
1210
|
id: e,
|
|
1211
1211
|
label: t,
|
|
1212
1212
|
default: r
|
|
1213
1213
|
}) => {
|
|
1214
|
-
var
|
|
1215
|
-
const { sidebars: s } = F(), n = s[e], o =
|
|
1214
|
+
var l;
|
|
1215
|
+
const { sidebars: s } = F(), n = s[e], o = Ze(), i = !!be().location, u = ((l = o.topNavItem) == null ? void 0 : l.id) === e && !i, d = r ?? (n ? zt(n, (p) => {
|
|
1216
1216
|
if (p.type === "doc") return Q(p.id);
|
|
1217
1217
|
}) : Q(e));
|
|
1218
|
-
if (!
|
|
1218
|
+
if (!d)
|
|
1219
1219
|
throw new Sr("Page not found.", {
|
|
1220
1220
|
developerHint: `No links found in top navigation for '${e}'. Check that the sidebar isn't empty or that a default link is set.`
|
|
1221
1221
|
});
|
|
@@ -1223,38 +1223,38 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1223
1223
|
// We don't use isActive here because it has to be inside the sidebar,
|
|
1224
1224
|
// the top nav id doesn't necessarily start with the sidebar id
|
|
1225
1225
|
/* @__PURE__ */ a.jsx(
|
|
1226
|
-
|
|
1226
|
+
ae,
|
|
1227
1227
|
{
|
|
1228
|
-
className: ({ isPending: p }) =>
|
|
1228
|
+
className: ({ isPending: p }) => dr(
|
|
1229
1229
|
"block lg:py-3.5 font-medium -mb-px border-b-2",
|
|
1230
|
-
|
|
1230
|
+
u || p ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
1231
1231
|
),
|
|
1232
|
-
to:
|
|
1232
|
+
to: d,
|
|
1233
1233
|
children: t
|
|
1234
1234
|
}
|
|
1235
1235
|
)
|
|
1236
1236
|
);
|
|
1237
1237
|
}, ha = () => {
|
|
1238
|
-
const { topNavigation: e } = F(), { isAuthenticated: t } =
|
|
1238
|
+
const { topNavigation: e } = F(), { isAuthenticated: t } = se(), [r, s] = q(!1);
|
|
1239
1239
|
return /* @__PURE__ */ a.jsxs(
|
|
1240
|
-
|
|
1240
|
+
et,
|
|
1241
1241
|
{
|
|
1242
1242
|
direction: "right",
|
|
1243
1243
|
open: r,
|
|
1244
1244
|
onOpenChange: (n) => s(n),
|
|
1245
1245
|
children: [
|
|
1246
|
-
/* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(
|
|
1246
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(tt, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(ir, { size: 22 }) }) }),
|
|
1247
1247
|
/* @__PURE__ */ a.jsxs(
|
|
1248
|
-
|
|
1248
|
+
rt,
|
|
1249
1249
|
{
|
|
1250
1250
|
className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none overflow-auto",
|
|
1251
1251
|
"aria-describedby": void 0,
|
|
1252
1252
|
children: [
|
|
1253
|
-
/* @__PURE__ */ a.jsx(
|
|
1254
|
-
/* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(
|
|
1253
|
+
/* @__PURE__ */ a.jsx(st, { children: /* @__PURE__ */ a.jsx(at, { children: "Navigation" }) }),
|
|
1254
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(ct, {}) }),
|
|
1255
1255
|
/* @__PURE__ */ a.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
1256
|
-
/* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
1257
|
-
e.filter(
|
|
1256
|
+
/* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ut, {}) }),
|
|
1257
|
+
e.filter(dt(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx("button", { onClick: () => s(!1), children: /* @__PURE__ */ a.jsx(ht, { ...n }) }) }, n.label))
|
|
1258
1258
|
] })
|
|
1259
1259
|
]
|
|
1260
1260
|
}
|
|
@@ -1262,19 +1262,22 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1262
1262
|
]
|
|
1263
1263
|
}
|
|
1264
1264
|
);
|
|
1265
|
-
},
|
|
1265
|
+
}, re = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(pr, { children: [
|
|
1266
1266
|
/* @__PURE__ */ a.jsx(vr, { children: e.label }),
|
|
1267
1267
|
/* @__PURE__ */ a.jsx(xr, { children: /* @__PURE__ */ a.jsx(yr, { children: e.children.map((t, r) => (
|
|
1268
1268
|
// eslint-disable-next-line react/no-array-index-key
|
|
1269
|
-
/* @__PURE__ */ a.jsx(
|
|
1269
|
+
/* @__PURE__ */ a.jsx(re, { item: t }, r)
|
|
1270
1270
|
)) }) })
|
|
1271
|
-
] }, e.label) : /* @__PURE__ */ a.jsx(
|
|
1272
|
-
|
|
1271
|
+
] }, e.label) : /* @__PURE__ */ a.jsx(ge, { to: e.path ?? "", children: /* @__PURE__ */ a.jsxs(br, { className: "flex gap-2", children: [
|
|
1272
|
+
e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
1273
|
+
e.label
|
|
1274
|
+
] }, e.label) }), ft = Xe(function() {
|
|
1275
|
+
const t = se(), { isAuthenticated: r, profile: s, isAuthEnabled: n } = se(), o = F(), { page: i, plugins: u } = o, d = u.filter((l) => aa(l)).flatMap((l) => l.getProfileMenuItems(o)).sort((l) => l.weight ?? 0);
|
|
1273
1276
|
return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
1274
1277
|
/* @__PURE__ */ a.jsx(ua, {}),
|
|
1275
1278
|
/* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
1276
1279
|
/* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
|
|
1277
|
-
/* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(
|
|
1280
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(ge, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
1278
1281
|
(i == null ? void 0 : i.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1279
1282
|
/* @__PURE__ */ a.jsx(
|
|
1280
1283
|
"img",
|
|
@@ -1292,14 +1295,13 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1292
1295
|
/* @__PURE__ */ a.jsx(
|
|
1293
1296
|
"img",
|
|
1294
1297
|
{
|
|
1295
|
-
"data-hide-on-theme": "light",
|
|
1296
1298
|
src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : Q(
|
|
1297
1299
|
"/",
|
|
1298
1300
|
i.logo.src.dark
|
|
1299
1301
|
),
|
|
1300
1302
|
alt: i.logo.alt ?? i.pageTitle,
|
|
1301
1303
|
style: { width: i.logo.width },
|
|
1302
|
-
className: "h-10",
|
|
1304
|
+
className: "h-10 hidden dark:block",
|
|
1303
1305
|
loading: "lazy"
|
|
1304
1306
|
}
|
|
1305
1307
|
)
|
|
@@ -1307,25 +1309,36 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1307
1309
|
/* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
|
|
1308
1310
|
] }) }) }),
|
|
1309
1311
|
/* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
1310
|
-
/* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(
|
|
1312
|
+
/* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(ct, {}) }),
|
|
1311
1313
|
/* @__PURE__ */ a.jsx(ha, {}),
|
|
1312
1314
|
/* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
1313
1315
|
/* @__PURE__ */ a.jsx(D, { name: "head-navigation-start" }),
|
|
1314
1316
|
n && /* @__PURE__ */ a.jsx(
|
|
1315
|
-
|
|
1317
|
+
je,
|
|
1316
1318
|
{
|
|
1317
1319
|
fallback: /* @__PURE__ */ a.jsx(ra, { className: "rounded h-5 w-24 mr-4" }),
|
|
1318
|
-
children: r ?
|
|
1319
|
-
/* @__PURE__ */ a.jsx(
|
|
1320
|
-
/* @__PURE__ */ a.jsxs(
|
|
1321
|
-
/* @__PURE__ */ a.
|
|
1322
|
-
|
|
1323
|
-
|
|
1320
|
+
children: r ? Object.values(d).length > 0 && /* @__PURE__ */ a.jsxs(hr, { modal: !1, children: [
|
|
1321
|
+
/* @__PURE__ */ a.jsx(fr, { asChild: !0, children: /* @__PURE__ */ a.jsx(de, { variant: "ghost", children: s != null && s.name ? `${s.name}` : "My Account" }) }),
|
|
1322
|
+
/* @__PURE__ */ a.jsxs(mr, { className: "w-56", children: [
|
|
1323
|
+
/* @__PURE__ */ a.jsxs(gr, { children: [
|
|
1324
|
+
s != null && s.name ? `${s.name}` : "My Account",
|
|
1325
|
+
(s == null ? void 0 : s.email) && /* @__PURE__ */ a.jsx("div", { className: "font-normal text-muted-foreground", children: s.email })
|
|
1326
|
+
] }),
|
|
1327
|
+
d.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ a.jsx(le, {}),
|
|
1328
|
+
d.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ a.jsx(re, { item: l }, l.label)),
|
|
1329
|
+
d.filter(
|
|
1330
|
+
(l) => !l.category || l.category === "middle"
|
|
1331
|
+
).length > 0 && /* @__PURE__ */ a.jsx(le, {}),
|
|
1332
|
+
d.filter(
|
|
1333
|
+
(l) => !l.category || l.category === "middle"
|
|
1334
|
+
).map((l) => /* @__PURE__ */ a.jsx(re, { item: l }, l.label)),
|
|
1335
|
+
d.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ a.jsx(le, {}),
|
|
1336
|
+
d.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ a.jsx(re, { item: l }, l.label))
|
|
1324
1337
|
] })
|
|
1325
|
-
] }) : /* @__PURE__ */ a.jsx(
|
|
1338
|
+
] }) : /* @__PURE__ */ a.jsx(de, { variant: "ghost", onClick: () => t.login(), children: "Login" })
|
|
1326
1339
|
}
|
|
1327
1340
|
),
|
|
1328
|
-
/* @__PURE__ */ a.jsx(
|
|
1341
|
+
/* @__PURE__ */ a.jsx(ut, {}),
|
|
1329
1342
|
/* @__PURE__ */ a.jsx(D, { name: "head-navigation-end" })
|
|
1330
1343
|
] })
|
|
1331
1344
|
] })
|
|
@@ -1335,7 +1348,7 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1335
1348
|
/* @__PURE__ */ a.jsx(D, { name: "top-navigation-after" })
|
|
1336
1349
|
] })
|
|
1337
1350
|
] });
|
|
1338
|
-
}),
|
|
1351
|
+
}), mt = Kt(({ children: e, className: t, pushMainContent: r }, s) => /* @__PURE__ */ a.jsx(
|
|
1339
1352
|
"nav",
|
|
1340
1353
|
{
|
|
1341
1354
|
"data-navigation": String(r),
|
|
@@ -1349,58 +1362,58 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1349
1362
|
children: e
|
|
1350
1363
|
}
|
|
1351
1364
|
));
|
|
1352
|
-
|
|
1365
|
+
mt.displayName = "SidebarWrapper";
|
|
1353
1366
|
const fa = () => {
|
|
1354
|
-
const e =
|
|
1367
|
+
const e = pe(null), t = Ze();
|
|
1355
1368
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1356
1369
|
/* @__PURE__ */ a.jsxs(
|
|
1357
|
-
|
|
1370
|
+
mt,
|
|
1358
1371
|
{
|
|
1359
1372
|
ref: e,
|
|
1360
1373
|
pushMainContent: t.sidebar.length > 0,
|
|
1361
1374
|
children: [
|
|
1362
1375
|
/* @__PURE__ */ a.jsx(D, { name: "zudoku-before-navigation" }),
|
|
1363
|
-
t.sidebar.map((r) => /* @__PURE__ */ a.jsx(
|
|
1376
|
+
t.sidebar.map((r) => /* @__PURE__ */ a.jsx(fe, { item: r }, r.label)),
|
|
1364
1377
|
/* @__PURE__ */ a.jsx(D, { name: "zudoku-after-navigation" })
|
|
1365
1378
|
]
|
|
1366
1379
|
}
|
|
1367
1380
|
),
|
|
1368
1381
|
/* @__PURE__ */ a.jsxs(
|
|
1369
|
-
|
|
1382
|
+
rt,
|
|
1370
1383
|
{
|
|
1371
1384
|
className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none overflow-auto",
|
|
1372
1385
|
"aria-describedby": void 0,
|
|
1373
1386
|
children: [
|
|
1374
|
-
/* @__PURE__ */ a.jsx(
|
|
1375
|
-
t.sidebar.map((r) => /* @__PURE__ */ a.jsx(
|
|
1387
|
+
/* @__PURE__ */ a.jsx(st, { children: /* @__PURE__ */ a.jsx(at, { children: "Sidebar" }) }),
|
|
1388
|
+
t.sidebar.map((r) => /* @__PURE__ */ a.jsx(fe, { item: r }, r.label))
|
|
1376
1389
|
]
|
|
1377
1390
|
}
|
|
1378
1391
|
)
|
|
1379
1392
|
] });
|
|
1380
|
-
},
|
|
1381
|
-
const t =
|
|
1393
|
+
}, qe = () => /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(Nr, {}) }), ma = ({ children: e }) => {
|
|
1394
|
+
const t = ye(), { setActiveAnchor: r } = we(), { meta: s, authentication: n } = F();
|
|
1382
1395
|
ea(), ta();
|
|
1383
|
-
const o =
|
|
1396
|
+
const o = pe(t.pathname);
|
|
1384
1397
|
L(() => {
|
|
1385
|
-
var
|
|
1386
|
-
(
|
|
1398
|
+
var d;
|
|
1399
|
+
(d = n == null ? void 0 : n.onPageLoad) == null || d.call(n);
|
|
1387
1400
|
}, [n]), L(() => {
|
|
1388
1401
|
t.pathname !== o.current && r(""), o.current = t.pathname;
|
|
1389
1402
|
}, [t.pathname, r]);
|
|
1390
|
-
const i = !!
|
|
1403
|
+
const i = !!be().location, u = Xr.useSpinDelay(i, {
|
|
1391
1404
|
delay: 300,
|
|
1392
1405
|
minDuration: 500
|
|
1393
1406
|
});
|
|
1394
1407
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1395
1408
|
!1,
|
|
1396
|
-
/* @__PURE__ */ a.jsxs(
|
|
1409
|
+
/* @__PURE__ */ a.jsxs(me, { titleTemplate: s == null ? void 0 : s.title, children: [
|
|
1397
1410
|
(s == null ? void 0 : s.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: s.description }),
|
|
1398
1411
|
(s == null ? void 0 : s.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: s.favicon })
|
|
1399
1412
|
] }),
|
|
1400
1413
|
/* @__PURE__ */ a.jsx(D, { name: "layout-before-head" }),
|
|
1401
|
-
/* @__PURE__ */ a.jsx(
|
|
1414
|
+
/* @__PURE__ */ a.jsx(ft, {}),
|
|
1402
1415
|
/* @__PURE__ */ a.jsx(D, { name: "layout-after-head" }),
|
|
1403
|
-
/* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children:
|
|
1416
|
+
/* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: u ? /* @__PURE__ */ a.jsx(qe, {}) : /* @__PURE__ */ a.jsx(ve, { fallback: /* @__PURE__ */ a.jsx(qe, {}), children: /* @__PURE__ */ a.jsxs(et, { direction: "left", children: [
|
|
1404
1417
|
/* @__PURE__ */ a.jsx(fa, {}),
|
|
1405
1418
|
/* @__PURE__ */ a.jsx(
|
|
1406
1419
|
"div",
|
|
@@ -1409,8 +1422,8 @@ const fa = () => {
|
|
|
1409
1422
|
"lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
|
|
1410
1423
|
"peer-data-[navigation=false]:hidden"
|
|
1411
1424
|
),
|
|
1412
|
-
children: /* @__PURE__ */ a.jsxs(
|
|
1413
|
-
/* @__PURE__ */ a.jsx(
|
|
1425
|
+
children: /* @__PURE__ */ a.jsxs(tt, { className: "flex items-center gap-2", children: [
|
|
1426
|
+
/* @__PURE__ */ a.jsx(or, { size: 16, strokeWidth: 1.5 }),
|
|
1414
1427
|
/* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1415
1428
|
] })
|
|
1416
1429
|
}
|
|
@@ -1427,20 +1440,20 @@ const fa = () => {
|
|
|
1427
1440
|
),
|
|
1428
1441
|
children: [
|
|
1429
1442
|
/* @__PURE__ */ a.jsx(D, { name: "zudoku-before-content" }),
|
|
1430
|
-
e ?? /* @__PURE__ */ a.jsx(
|
|
1443
|
+
e ?? /* @__PURE__ */ a.jsx(Ge, {}),
|
|
1431
1444
|
/* @__PURE__ */ a.jsx(D, { name: "zudoku-after-content" })
|
|
1432
1445
|
]
|
|
1433
1446
|
}
|
|
1434
1447
|
)
|
|
1435
1448
|
] }) }) })
|
|
1436
1449
|
] });
|
|
1437
|
-
}, ga =
|
|
1450
|
+
}, ga = Je(null), ce = {
|
|
1438
1451
|
didCatch: !1,
|
|
1439
1452
|
error: null
|
|
1440
1453
|
};
|
|
1441
|
-
class pa extends
|
|
1454
|
+
class pa extends Vt {
|
|
1442
1455
|
constructor(t) {
|
|
1443
|
-
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
1456
|
+
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ce;
|
|
1444
1457
|
}
|
|
1445
1458
|
static getDerivedStateFromError(t) {
|
|
1446
1459
|
return {
|
|
@@ -1458,7 +1471,7 @@ class pa extends Kt {
|
|
|
1458
1471
|
(r = (s = this.props).onReset) === null || r === void 0 || r.call(s, {
|
|
1459
1472
|
args: o,
|
|
1460
1473
|
reason: "imperative-api"
|
|
1461
|
-
}), this.setState(
|
|
1474
|
+
}), this.setState(ce);
|
|
1462
1475
|
}
|
|
1463
1476
|
}
|
|
1464
1477
|
componentDidCatch(t, r) {
|
|
@@ -1477,7 +1490,7 @@ class pa extends Kt {
|
|
|
1477
1490
|
next: n,
|
|
1478
1491
|
prev: t.resetKeys,
|
|
1479
1492
|
reason: "keys"
|
|
1480
|
-
}), this.setState(
|
|
1493
|
+
}), this.setState(ce);
|
|
1481
1494
|
}
|
|
1482
1495
|
}
|
|
1483
1496
|
render() {
|
|
@@ -1490,28 +1503,28 @@ class pa extends Kt {
|
|
|
1490
1503
|
didCatch: o,
|
|
1491
1504
|
error: i
|
|
1492
1505
|
} = this.state;
|
|
1493
|
-
let
|
|
1506
|
+
let u = t;
|
|
1494
1507
|
if (o) {
|
|
1495
|
-
const
|
|
1508
|
+
const d = {
|
|
1496
1509
|
error: i,
|
|
1497
1510
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1498
1511
|
};
|
|
1499
1512
|
if (typeof r == "function")
|
|
1500
|
-
|
|
1513
|
+
u = r(d);
|
|
1501
1514
|
else if (s)
|
|
1502
|
-
|
|
1515
|
+
u = Ie(s, d);
|
|
1503
1516
|
else if (n !== void 0)
|
|
1504
|
-
|
|
1517
|
+
u = n;
|
|
1505
1518
|
else
|
|
1506
1519
|
throw i;
|
|
1507
1520
|
}
|
|
1508
|
-
return
|
|
1521
|
+
return Ie(ga.Provider, {
|
|
1509
1522
|
value: {
|
|
1510
1523
|
didCatch: o,
|
|
1511
1524
|
error: i,
|
|
1512
1525
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1513
1526
|
}
|
|
1514
|
-
},
|
|
1527
|
+
}, u);
|
|
1515
1528
|
}
|
|
1516
1529
|
}
|
|
1517
1530
|
function va() {
|
|
@@ -1556,25 +1569,25 @@ class xa {
|
|
|
1556
1569
|
}
|
|
1557
1570
|
}
|
|
1558
1571
|
function ya({ error: e, resetErrorBoundary: t }) {
|
|
1559
|
-
return /* @__PURE__ */ a.jsx(
|
|
1572
|
+
return /* @__PURE__ */ a.jsx(Ue, { error: e });
|
|
1560
1573
|
}
|
|
1561
1574
|
const te = globalThis;
|
|
1562
1575
|
(!te.requestIdleCallback || !te.cancelIdleCallback) && (te.requestIdleCallback = (e) => setTimeout(e, 1), te.cancelIdleCallback = clearTimeout);
|
|
1563
|
-
const
|
|
1564
|
-
Header:
|
|
1565
|
-
}, ba =
|
|
1576
|
+
const gt = {
|
|
1577
|
+
Header: ft
|
|
1578
|
+
}, ba = Je(gt), ja = ba.Provider, wa = ({
|
|
1566
1579
|
children: e,
|
|
1567
1580
|
context: t
|
|
1568
1581
|
}) => (Bt({
|
|
1569
1582
|
queryFn: async () => (await t.initialize(), !0),
|
|
1570
1583
|
queryKey: ["zudoku-initialize"]
|
|
1571
|
-
}), /* @__PURE__ */ a.jsx(
|
|
1584
|
+
}), /* @__PURE__ */ a.jsx(Ht.Provider, { value: t, children: e })), pt = Xe(
|
|
1572
1585
|
({ children: e, ...t }) => {
|
|
1573
1586
|
var f, h;
|
|
1574
|
-
const r =
|
|
1575
|
-
() => ({ ...
|
|
1587
|
+
const r = ne(
|
|
1588
|
+
() => ({ ...gt, ...t.overrides }),
|
|
1576
1589
|
[t.overrides]
|
|
1577
|
-
), s =
|
|
1590
|
+
), s = ne(() => {
|
|
1578
1591
|
var v;
|
|
1579
1592
|
return {
|
|
1580
1593
|
...(t.plugins ?? []).filter(la).flatMap(
|
|
@@ -1583,30 +1596,30 @@ const mt = {
|
|
|
1583
1596
|
(m, E) => ({ ...m, ...E }),
|
|
1584
1597
|
{}
|
|
1585
1598
|
),
|
|
1586
|
-
...
|
|
1599
|
+
...lr,
|
|
1587
1600
|
...(v = t.mdx) == null ? void 0 : v.components
|
|
1588
1601
|
};
|
|
1589
|
-
}, [(f = t.mdx) == null ? void 0 : f.components, t.plugins]), { stagger: n } =
|
|
1602
|
+
}, [(f = t.mdx) == null ? void 0 : f.components, t.plugins]), { stagger: n } = Zt(ue), [o, i] = q(!1), u = ne(
|
|
1590
1603
|
() => o ? { stagger: !0 } : { stagger: n },
|
|
1591
1604
|
[n, o]
|
|
1592
|
-
),
|
|
1605
|
+
), d = be();
|
|
1593
1606
|
L(() => {
|
|
1594
1607
|
o || i(!0);
|
|
1595
|
-
}, [o,
|
|
1596
|
-
const [
|
|
1608
|
+
}, [o, d.location]);
|
|
1609
|
+
const [l] = q(() => new xa(t)), p = (h = t.plugins) == null ? void 0 : h.filter(oa).map((g, v) => {
|
|
1597
1610
|
var m;
|
|
1598
|
-
return /* @__PURE__ */ a.jsx(
|
|
1611
|
+
return /* @__PURE__ */ a.jsx(Yt, { children: (m = g.getHead) == null ? void 0 : m.call(g) }, v);
|
|
1599
1612
|
});
|
|
1600
1613
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1601
|
-
/* @__PURE__ */ a.jsx(
|
|
1602
|
-
/* @__PURE__ */ a.jsx(
|
|
1614
|
+
/* @__PURE__ */ a.jsx(me, { children: p }),
|
|
1615
|
+
/* @__PURE__ */ a.jsx(ue.Provider, { value: u, children: /* @__PURE__ */ a.jsx(wa, { context: l, children: /* @__PURE__ */ a.jsx(wt, { components: s, children: /* @__PURE__ */ a.jsx(wr, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ a.jsx(ja, { value: r, children: /* @__PURE__ */ a.jsx(kt, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(cr, { children: e ?? /* @__PURE__ */ a.jsx(Ge, {}) }) }) }) }) }) }) })
|
|
1603
1616
|
] });
|
|
1604
1617
|
}
|
|
1605
1618
|
);
|
|
1606
|
-
|
|
1607
|
-
const
|
|
1608
|
-
|
|
1609
|
-
const Wa =
|
|
1619
|
+
pt.displayName = "ZudokoInner";
|
|
1620
|
+
const vt = (e) => /* @__PURE__ */ a.jsx(pa, { FallbackComponent: ya, children: /* @__PURE__ */ a.jsx(pt, { ...e }) });
|
|
1621
|
+
vt.displayName = "Zudoku";
|
|
1622
|
+
const Wa = St, Xa = ma, Ja = At, Ga = Er, es = Yr, ts = Wr, rs = me, as = F, ss = Ct, ns = vt, is = Ot, os = je, ls = Dt, cs = ge;
|
|
1610
1623
|
export {
|
|
1611
1624
|
es as Bootstrap,
|
|
1612
1625
|
ts as BootstrapStatic,
|