zudoku 0.18.0 → 0.18.2
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/Bootstrap.js +8 -10
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/Header.js +11 -3
- 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/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/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +1 -1
- package/lib/zudoku.components.js +375 -366
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +40 -38
- package/lib/zudoku.plugin-api-keys.js.map +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/Bootstrap.tsx +25 -30
- package/src/lib/components/Header.tsx +41 -7
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/core/plugins.ts +8 -0
- 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
|
|
18
|
-
import { u as
|
|
19
|
-
import { E 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
|
+
import { u as Ct } from "./state-tsXBLONe.js";
|
|
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, Pr = (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, Pr = (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, Pr = (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, Pr = (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, Pr = (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, Pr = (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, Pr = (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,7 +209,7 @@ 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
215
|
if (P == null && b.pages.length)
|
|
@@ -221,36 +221,36 @@ function Re(e) {
|
|
|
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", P = b ? kr :
|
|
233
|
+
const b = n === "backward", P = b ? kr : _e, K = {
|
|
234
234
|
pages: o,
|
|
235
235
|
pageParams: i
|
|
236
236
|
}, X = P(s, K);
|
|
237
|
-
|
|
237
|
+
u = await $(K, X, b);
|
|
238
238
|
} else {
|
|
239
239
|
const b = e ?? o.length;
|
|
240
240
|
do {
|
|
241
|
-
const P =
|
|
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 Pr()), y(this, I, e.mutationCache || new Cr()), y(this, T, e.defaultOptions || {}), y(this,
|
|
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,7 +498,7 @@ 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);
|
|
@@ -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);
|
|
@@ -597,7 +597,7 @@ function Fr({
|
|
|
597
597
|
hash: r.hash || "",
|
|
598
598
|
state: r.state != null ? r.state : null,
|
|
599
599
|
key: r.key || "default"
|
|
600
|
-
}, i =
|
|
600
|
+
}, i = nt();
|
|
601
601
|
return /* @__PURE__ */ C.createElement(M.Router, {
|
|
602
602
|
basename: e,
|
|
603
603
|
children: t,
|
|
@@ -617,26 +617,26 @@ 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
636
|
return /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement(M.UNSAFE_DataRouterContext.Provider, {
|
|
637
637
|
value: n
|
|
638
638
|
}, /* @__PURE__ */ C.createElement(M.UNSAFE_DataRouterStateContext.Provider, {
|
|
639
|
-
value:
|
|
639
|
+
value: u
|
|
640
640
|
}, /* @__PURE__ */ C.createElement(M.UNSAFE_FetchersContext.Provider, {
|
|
641
641
|
value: o
|
|
642
642
|
}, /* @__PURE__ */ C.createElement(M.UNSAFE_ViewTransitionContext.Provider, {
|
|
@@ -645,8 +645,8 @@ function Qr({
|
|
|
645
645
|
}
|
|
646
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: {
|
|
@@ -655,7 +655,7 @@ function Qr({
|
|
|
655
655
|
}, /* @__PURE__ */ C.createElement(qr, {
|
|
656
656
|
routes: t.routes,
|
|
657
657
|
future: t.future,
|
|
658
|
-
state:
|
|
658
|
+
state: u
|
|
659
659
|
})))))), i ? /* @__PURE__ */ C.createElement("script", {
|
|
660
660
|
suppressHydrationWarning: !0,
|
|
661
661
|
nonce: s,
|
|
@@ -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,90 +831,85 @@ function Kr(e) {
|
|
|
831
831
|
}
|
|
832
832
|
Y.StaticRouter = Fr;
|
|
833
833
|
var Vr = Y.StaticRouterProvider = Qr;
|
|
834
|
-
Y.createStaticHandler =
|
|
835
|
-
Y.createStaticRouter =
|
|
836
|
-
const Zr = ({
|
|
834
|
+
Y.createStaticHandler = zr;
|
|
835
|
+
Y.createStaticRouter = Br;
|
|
836
|
+
const Zr = new Ar({
|
|
837
|
+
defaultOptions: {
|
|
838
|
+
queries: {
|
|
839
|
+
staleTime: 1e3 * 60 * 5
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
}), Yr = ({
|
|
837
843
|
router: e,
|
|
838
844
|
hydrate: t = !1
|
|
839
|
-
}) => {
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
}
|
|
847
|
-
})
|
|
848
|
-
);
|
|
849
|
-
return /* @__PURE__ */ a.jsx(Ze, { children: /* @__PURE__ */ a.jsx($e, { client: r, children: /* @__PURE__ */ a.jsx(Or, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(Be, { children: /* @__PURE__ */ a.jsx(le.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(
|
|
850
|
-
Nt,
|
|
851
|
-
{
|
|
852
|
-
router: e,
|
|
853
|
-
future: { v7_startTransition: !0 }
|
|
854
|
-
}
|
|
855
|
-
) }) }) }) }) });
|
|
856
|
-
}, Yr = ({
|
|
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
|
+
{
|
|
848
|
+
router: e,
|
|
849
|
+
future: { v7_startTransition: !0 }
|
|
850
|
+
}
|
|
851
|
+
) }) }) }) }) }), Wr = ({
|
|
857
852
|
router: e,
|
|
858
853
|
context: t,
|
|
859
854
|
queryClient: r,
|
|
860
855
|
helmetContext: s
|
|
861
|
-
}) => /* @__PURE__ */ a.jsx(
|
|
862
|
-
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: {} };
|
|
863
858
|
(function(e, t) {
|
|
864
859
|
(function(r, s) {
|
|
865
|
-
s(t,
|
|
866
|
-
})(
|
|
860
|
+
s(t, Ye);
|
|
861
|
+
})(Wt, function(r, s) {
|
|
867
862
|
const n = {
|
|
868
863
|
delay: 500,
|
|
869
864
|
minDuration: 200,
|
|
870
865
|
ssr: !0
|
|
871
866
|
};
|
|
872
867
|
function o() {
|
|
873
|
-
const [
|
|
868
|
+
const [u, d] = s.useState(!0);
|
|
874
869
|
return s.useEffect(() => {
|
|
875
|
-
|
|
876
|
-
}, []),
|
|
870
|
+
d(!1);
|
|
871
|
+
}, []), u;
|
|
877
872
|
}
|
|
878
|
-
function i(
|
|
879
|
-
|
|
880
|
-
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);
|
|
881
876
|
return s.useEffect(() => {
|
|
882
|
-
if (
|
|
877
|
+
if (u && (f === "IDLE" || l)) {
|
|
883
878
|
clearTimeout(g.current);
|
|
884
|
-
const v =
|
|
879
|
+
const v = l ? 0 : d.delay;
|
|
885
880
|
g.current = setTimeout(() => {
|
|
886
|
-
if (!
|
|
881
|
+
if (!u)
|
|
887
882
|
return h("IDLE");
|
|
888
883
|
g.current = setTimeout(() => {
|
|
889
884
|
h("EXPIRE");
|
|
890
|
-
},
|
|
891
|
-
}, v),
|
|
885
|
+
}, d.minDuration), h("DISPLAY");
|
|
886
|
+
}, v), l || h("DELAY");
|
|
892
887
|
}
|
|
893
|
-
!
|
|
894
|
-
}, [
|
|
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";
|
|
895
890
|
}
|
|
896
891
|
r.defaultOptions = n, r.useSpinDelay = i;
|
|
897
892
|
});
|
|
898
|
-
})(
|
|
899
|
-
var
|
|
900
|
-
const
|
|
893
|
+
})(he, he.exports);
|
|
894
|
+
var Xr = he.exports;
|
|
895
|
+
const Jr = ({
|
|
901
896
|
category: e,
|
|
902
897
|
level: t
|
|
903
898
|
}) => {
|
|
904
899
|
var h, g;
|
|
905
|
-
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) ?? "");
|
|
906
901
|
L(() => {
|
|
907
|
-
r &&
|
|
902
|
+
r && l(!0);
|
|
908
903
|
}, [r]);
|
|
909
904
|
const f = o && /* @__PURE__ */ a.jsx(
|
|
910
905
|
"button",
|
|
911
906
|
{
|
|
912
907
|
type: "button",
|
|
913
908
|
onClick: (v) => {
|
|
914
|
-
v.preventDefault(),
|
|
909
|
+
v.preventDefault(), l((m) => !m), n(!0);
|
|
915
910
|
},
|
|
916
911
|
children: /* @__PURE__ */ a.jsx(
|
|
917
|
-
|
|
912
|
+
er,
|
|
918
913
|
{
|
|
919
914
|
size: 16,
|
|
920
915
|
className: R(
|
|
@@ -926,14 +921,14 @@ const Xr = ({
|
|
|
926
921
|
}
|
|
927
922
|
);
|
|
928
923
|
return /* @__PURE__ */ a.jsxs(
|
|
929
|
-
|
|
924
|
+
oe.Root,
|
|
930
925
|
{
|
|
931
926
|
className: "flex flex-col",
|
|
932
|
-
defaultOpen:
|
|
933
|
-
open:
|
|
934
|
-
onOpenChange: () =>
|
|
927
|
+
defaultOpen: u,
|
|
928
|
+
open: d,
|
|
929
|
+
onOpenChange: () => l(!0),
|
|
935
930
|
children: [
|
|
936
|
-
/* @__PURE__ */ a.jsx(
|
|
931
|
+
/* @__PURE__ */ a.jsx(oe.Trigger, { className: "group", asChild: !0, disabled: !o, children: /* @__PURE__ */ a.jsxs(
|
|
937
932
|
"div",
|
|
938
933
|
{
|
|
939
934
|
onClick: () => n(!0),
|
|
@@ -957,12 +952,12 @@ const Xr = ({
|
|
|
957
952
|
}
|
|
958
953
|
),
|
|
959
954
|
((g = e.link) == null ? void 0 : g.type) === "doc" ? /* @__PURE__ */ a.jsx(
|
|
960
|
-
|
|
955
|
+
ae,
|
|
961
956
|
{
|
|
962
|
-
to:
|
|
957
|
+
to: Q(e.link.id),
|
|
963
958
|
className: "flex-1",
|
|
964
959
|
onClick: () => {
|
|
965
|
-
p && !
|
|
960
|
+
p && !d && l(!0);
|
|
966
961
|
},
|
|
967
962
|
children: /* @__PURE__ */ a.jsxs(
|
|
968
963
|
"div",
|
|
@@ -986,14 +981,14 @@ const Xr = ({
|
|
|
986
981
|
}
|
|
987
982
|
) }),
|
|
988
983
|
/* @__PURE__ */ a.jsx(
|
|
989
|
-
|
|
984
|
+
oe.Content,
|
|
990
985
|
{
|
|
991
986
|
className: R(
|
|
992
987
|
// CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
|
|
993
988
|
s && "CollapsibleContent"
|
|
994
989
|
),
|
|
995
990
|
children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: e.items.map((v) => /* @__PURE__ */ a.jsx(
|
|
996
|
-
|
|
991
|
+
fe,
|
|
997
992
|
{
|
|
998
993
|
level: t + 1,
|
|
999
994
|
item: v
|
|
@@ -1005,7 +1000,7 @@ const Xr = ({
|
|
|
1005
1000
|
]
|
|
1006
1001
|
}
|
|
1007
1002
|
);
|
|
1008
|
-
}, V =
|
|
1003
|
+
}, V = ur(
|
|
1009
1004
|
"flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
1010
1005
|
{
|
|
1011
1006
|
variants: {
|
|
@@ -1026,36 +1021,36 @@ const Xr = ({
|
|
|
1026
1021
|
isActive: !1
|
|
1027
1022
|
}
|
|
1028
1023
|
}
|
|
1029
|
-
),
|
|
1024
|
+
), lt = "data-anchor", fe = ({
|
|
1030
1025
|
item: e,
|
|
1031
1026
|
level: t = 0
|
|
1032
1027
|
}) => {
|
|
1033
1028
|
var n, o;
|
|
1034
|
-
const { activeAnchor: r } =
|
|
1029
|
+
const { activeAnchor: r } = we(), [s] = Pt();
|
|
1035
1030
|
switch (e.type) {
|
|
1036
1031
|
case "category":
|
|
1037
|
-
return /* @__PURE__ */ a.jsx(
|
|
1032
|
+
return /* @__PURE__ */ a.jsx(Jr, { category: e, level: t });
|
|
1038
1033
|
case "doc":
|
|
1039
1034
|
return /* @__PURE__ */ a.jsxs(
|
|
1040
|
-
|
|
1035
|
+
ae,
|
|
1041
1036
|
{
|
|
1042
1037
|
className: ({ isActive: i }) => V({ isActive: i, isTopLevel: t === 0 }),
|
|
1043
|
-
to:
|
|
1038
|
+
to: Q(e.id),
|
|
1044
1039
|
children: [
|
|
1045
1040
|
e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
|
|
1046
1041
|
e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1047
1042
|
/* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
|
|
1048
|
-
/* @__PURE__ */ a.jsx(
|
|
1043
|
+
/* @__PURE__ */ a.jsx(ie, { ...e.badge })
|
|
1049
1044
|
] }) : e.label
|
|
1050
1045
|
]
|
|
1051
1046
|
}
|
|
1052
1047
|
);
|
|
1053
1048
|
case "link":
|
|
1054
1049
|
return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
|
|
1055
|
-
|
|
1050
|
+
jt,
|
|
1056
1051
|
{
|
|
1057
1052
|
to: { hash: e.href, search: s.toString() },
|
|
1058
|
-
[
|
|
1053
|
+
[lt]: e.href.slice(1),
|
|
1059
1054
|
className: V({
|
|
1060
1055
|
isActive: e.href.slice(1) === r,
|
|
1061
1056
|
isTopLevel: t === 0,
|
|
@@ -1063,7 +1058,7 @@ const Xr = ({
|
|
|
1063
1058
|
}),
|
|
1064
1059
|
children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1065
1060
|
/* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
1066
|
-
/* @__PURE__ */ a.jsx(
|
|
1061
|
+
/* @__PURE__ */ a.jsx(ie, { ...e.badge })
|
|
1067
1062
|
] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
|
|
1068
1063
|
}
|
|
1069
1064
|
) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
|
|
@@ -1075,11 +1070,11 @@ const Xr = ({
|
|
|
1075
1070
|
rel: "noopener noreferrer",
|
|
1076
1071
|
children: [
|
|
1077
1072
|
/* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
1078
|
-
/* @__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 }) })
|
|
1079
1074
|
]
|
|
1080
1075
|
}
|
|
1081
1076
|
) : /* @__PURE__ */ a.jsx(
|
|
1082
|
-
|
|
1077
|
+
ae,
|
|
1083
1078
|
{
|
|
1084
1079
|
className: V({
|
|
1085
1080
|
className: ((o = e.badge) == null ? void 0 : o.placement) !== "start" && "justify-between"
|
|
@@ -1087,22 +1082,22 @@ const Xr = ({
|
|
|
1087
1082
|
to: e.href,
|
|
1088
1083
|
children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1089
1084
|
/* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
1090
|
-
/* @__PURE__ */ a.jsx(
|
|
1085
|
+
/* @__PURE__ */ a.jsx(ie, { ...e.badge })
|
|
1091
1086
|
] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
|
|
1092
1087
|
}
|
|
1093
1088
|
);
|
|
1094
1089
|
}
|
|
1095
|
-
},
|
|
1090
|
+
}, Gr = (e, t = { block: "center" }) => {
|
|
1096
1091
|
if (!e) return;
|
|
1097
1092
|
const r = e.getBoundingClientRect();
|
|
1098
1093
|
r.top >= 0 && r.left >= 0 && r.bottom <= (window.innerHeight || document.documentElement.clientHeight) && r.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
1099
|
-
},
|
|
1100
|
-
const e =
|
|
1094
|
+
}, ea = () => {
|
|
1095
|
+
const e = ye(), { setActiveAnchor: t } = we();
|
|
1101
1096
|
L(() => {
|
|
1102
1097
|
if (!e.hash) return;
|
|
1103
1098
|
const r = decodeURIComponent(e.hash.split("/")[0].slice(1)), s = () => {
|
|
1104
|
-
const n = document.getElementById(r), o = document.querySelector(`[${
|
|
1105
|
-
return n ? (n.scrollIntoView(),
|
|
1099
|
+
const n = document.getElementById(r), o = document.querySelector(`[${lt}="${r}"]`);
|
|
1100
|
+
return n ? (n.scrollIntoView(), Gr(o), requestIdleCallback(() => t(r)), !0) : !1;
|
|
1106
1101
|
};
|
|
1107
1102
|
if (!s()) {
|
|
1108
1103
|
const n = new MutationObserver((o, i) => {
|
|
@@ -1111,13 +1106,13 @@ const Xr = ({
|
|
|
1111
1106
|
return n.observe(document.body, { childList: !0, subtree: !0 }), () => n.disconnect();
|
|
1112
1107
|
}
|
|
1113
1108
|
}, [e.hash, t]);
|
|
1114
|
-
},
|
|
1115
|
-
const e =
|
|
1109
|
+
}, ta = () => {
|
|
1110
|
+
const e = ye(), t = pe(e.pathname);
|
|
1116
1111
|
L(() => {
|
|
1117
1112
|
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
1118
1113
|
}, [e.pathname]);
|
|
1119
1114
|
};
|
|
1120
|
-
function
|
|
1115
|
+
function ra({
|
|
1121
1116
|
className: e,
|
|
1122
1117
|
...t
|
|
1123
1118
|
}) {
|
|
@@ -1129,17 +1124,17 @@ function ta({
|
|
|
1129
1124
|
}
|
|
1130
1125
|
);
|
|
1131
1126
|
}
|
|
1132
|
-
const
|
|
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 = {
|
|
1133
1128
|
info: "bg-blue-500",
|
|
1134
1129
|
note: "bg-gray-500",
|
|
1135
1130
|
tip: "bg-green-600",
|
|
1136
1131
|
caution: "bg-orange-500",
|
|
1137
1132
|
danger: "bg-rose-500"
|
|
1138
|
-
},
|
|
1139
|
-
const { page: e } =
|
|
1133
|
+
}, ua = () => {
|
|
1134
|
+
const { page: e } = F(), [t, r] = q(!0);
|
|
1140
1135
|
if (!(e != null && e.banner) || !t)
|
|
1141
1136
|
return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
1142
|
-
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 };
|
|
1143
1138
|
return /* @__PURE__ */ a.jsxs(
|
|
1144
1139
|
"div",
|
|
1145
1140
|
{
|
|
@@ -1156,14 +1151,14 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1156
1151
|
type: "button",
|
|
1157
1152
|
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
1158
1153
|
onClick: () => r(!1),
|
|
1159
|
-
children: /* @__PURE__ */ a.jsx(
|
|
1154
|
+
children: /* @__PURE__ */ a.jsx(rr, { size: 16 })
|
|
1160
1155
|
}
|
|
1161
1156
|
)
|
|
1162
1157
|
]
|
|
1163
1158
|
}
|
|
1164
1159
|
);
|
|
1165
|
-
},
|
|
1166
|
-
const e =
|
|
1160
|
+
}, ct = () => {
|
|
1161
|
+
const e = F(), [t, r] = q(!1), s = $t(() => r(!1), []);
|
|
1167
1162
|
L(() => {
|
|
1168
1163
|
if (t)
|
|
1169
1164
|
return;
|
|
@@ -1174,7 +1169,7 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1174
1169
|
window.removeEventListener("keydown", o);
|
|
1175
1170
|
};
|
|
1176
1171
|
}, [t, r]);
|
|
1177
|
-
const n = e.plugins.find(
|
|
1172
|
+
const n = e.plugins.find(na);
|
|
1178
1173
|
return n ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1179
1174
|
/* @__PURE__ */ a.jsxs(
|
|
1180
1175
|
"button",
|
|
@@ -1184,22 +1179,22 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1184
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",
|
|
1185
1180
|
children: [
|
|
1186
1181
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
1187
|
-
/* @__PURE__ */ a.jsx(
|
|
1182
|
+
/* @__PURE__ */ a.jsx(ar, { size: 14 }),
|
|
1188
1183
|
"Search"
|
|
1189
1184
|
] }),
|
|
1190
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" })
|
|
1191
1186
|
]
|
|
1192
1187
|
}
|
|
1193
1188
|
),
|
|
1194
|
-
/* @__PURE__ */ a.jsx(
|
|
1189
|
+
/* @__PURE__ */ a.jsx(ve, { fallback: null, children: n.renderSearch({
|
|
1195
1190
|
isOpen: t,
|
|
1196
1191
|
onClose: s
|
|
1197
1192
|
}) })
|
|
1198
1193
|
] }) : null;
|
|
1199
|
-
},
|
|
1200
|
-
const { resolvedTheme: e, setTheme: t } = jr(), r = e === "dark" ?
|
|
1201
|
-
return /* @__PURE__ */ a.jsx(
|
|
1202
|
-
|
|
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,
|
|
1203
1198
|
{
|
|
1204
1199
|
variant: "ghost",
|
|
1205
1200
|
"aria-label": e === "dark" ? "Switch to light mode" : "Switch to dark mode",
|
|
@@ -1208,19 +1203,19 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1208
1203
|
children: /* @__PURE__ */ a.jsx(r, { size: 18 })
|
|
1209
1204
|
}
|
|
1210
1205
|
) });
|
|
1211
|
-
},
|
|
1212
|
-
const { topNavigation: e } =
|
|
1213
|
-
return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(
|
|
1214
|
-
},
|
|
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 = ({
|
|
1215
1210
|
id: e,
|
|
1216
1211
|
label: t,
|
|
1217
1212
|
default: r
|
|
1218
1213
|
}) => {
|
|
1219
|
-
var
|
|
1220
|
-
const { sidebars: s } =
|
|
1221
|
-
if (p.type === "doc") return
|
|
1222
|
-
}) :
|
|
1223
|
-
if (!
|
|
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
|
+
if (p.type === "doc") return Q(p.id);
|
|
1217
|
+
}) : Q(e));
|
|
1218
|
+
if (!d)
|
|
1224
1219
|
throw new Sr("Page not found.", {
|
|
1225
1220
|
developerHint: `No links found in top navigation for '${e}'. Check that the sidebar isn't empty or that a default link is set.`
|
|
1226
1221
|
});
|
|
@@ -1228,38 +1223,38 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1228
1223
|
// We don't use isActive here because it has to be inside the sidebar,
|
|
1229
1224
|
// the top nav id doesn't necessarily start with the sidebar id
|
|
1230
1225
|
/* @__PURE__ */ a.jsx(
|
|
1231
|
-
|
|
1226
|
+
ae,
|
|
1232
1227
|
{
|
|
1233
|
-
className: ({ isPending: p }) =>
|
|
1228
|
+
className: ({ isPending: p }) => dr(
|
|
1234
1229
|
"block lg:py-3.5 font-medium -mb-px border-b-2",
|
|
1235
|
-
|
|
1230
|
+
u || p ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
1236
1231
|
),
|
|
1237
|
-
to:
|
|
1232
|
+
to: d,
|
|
1238
1233
|
children: t
|
|
1239
1234
|
}
|
|
1240
1235
|
)
|
|
1241
1236
|
);
|
|
1242
|
-
},
|
|
1243
|
-
const { topNavigation: e } =
|
|
1237
|
+
}, ha = () => {
|
|
1238
|
+
const { topNavigation: e } = F(), { isAuthenticated: t } = se(), [r, s] = q(!1);
|
|
1244
1239
|
return /* @__PURE__ */ a.jsxs(
|
|
1245
|
-
|
|
1240
|
+
et,
|
|
1246
1241
|
{
|
|
1247
1242
|
direction: "right",
|
|
1248
1243
|
open: r,
|
|
1249
1244
|
onOpenChange: (n) => s(n),
|
|
1250
1245
|
children: [
|
|
1251
|
-
/* @__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 }) }) }),
|
|
1252
1247
|
/* @__PURE__ */ a.jsxs(
|
|
1253
|
-
|
|
1248
|
+
rt,
|
|
1254
1249
|
{
|
|
1255
1250
|
className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none overflow-auto",
|
|
1256
1251
|
"aria-describedby": void 0,
|
|
1257
1252
|
children: [
|
|
1258
|
-
/* @__PURE__ */ a.jsx(
|
|
1259
|
-
/* @__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, {}) }),
|
|
1260
1255
|
/* @__PURE__ */ a.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
1261
|
-
/* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
1262
|
-
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))
|
|
1263
1258
|
] })
|
|
1264
1259
|
]
|
|
1265
1260
|
}
|
|
@@ -1267,24 +1262,27 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1267
1262
|
]
|
|
1268
1263
|
}
|
|
1269
1264
|
);
|
|
1270
|
-
},
|
|
1265
|
+
}, re = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(pr, { children: [
|
|
1271
1266
|
/* @__PURE__ */ a.jsx(vr, { children: e.label }),
|
|
1272
1267
|
/* @__PURE__ */ a.jsx(xr, { children: /* @__PURE__ */ a.jsx(yr, { children: e.children.map((t, r) => (
|
|
1273
1268
|
// eslint-disable-next-line react/no-array-index-key
|
|
1274
|
-
/* @__PURE__ */ a.jsx(
|
|
1269
|
+
/* @__PURE__ */ a.jsx(re, { item: t }, r)
|
|
1275
1270
|
)) }) })
|
|
1276
|
-
] }, e.label) : /* @__PURE__ */ a.jsx(
|
|
1277
|
-
|
|
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);
|
|
1278
1276
|
return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
1279
|
-
/* @__PURE__ */ a.jsx(
|
|
1277
|
+
/* @__PURE__ */ a.jsx(ua, {}),
|
|
1280
1278
|
/* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
1281
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: [
|
|
1282
|
-
/* @__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: [
|
|
1283
1281
|
(i == null ? void 0 : i.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1284
1282
|
/* @__PURE__ */ a.jsx(
|
|
1285
1283
|
"img",
|
|
1286
1284
|
{
|
|
1287
|
-
src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light :
|
|
1285
|
+
src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : Q(
|
|
1288
1286
|
"/",
|
|
1289
1287
|
i.logo.src.light
|
|
1290
1288
|
),
|
|
@@ -1298,7 +1296,7 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1298
1296
|
"img",
|
|
1299
1297
|
{
|
|
1300
1298
|
"data-hide-on-theme": "light",
|
|
1301
|
-
src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark :
|
|
1299
|
+
src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : Q(
|
|
1302
1300
|
"/",
|
|
1303
1301
|
i.logo.src.dark
|
|
1304
1302
|
),
|
|
@@ -1312,35 +1310,46 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1312
1310
|
/* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
|
|
1313
1311
|
] }) }) }),
|
|
1314
1312
|
/* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
1315
|
-
/* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(
|
|
1316
|
-
/* @__PURE__ */ a.jsx(
|
|
1313
|
+
/* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(ct, {}) }),
|
|
1314
|
+
/* @__PURE__ */ a.jsx(ha, {}),
|
|
1317
1315
|
/* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
1318
1316
|
/* @__PURE__ */ a.jsx(D, { name: "head-navigation-start" }),
|
|
1319
1317
|
n && /* @__PURE__ */ a.jsx(
|
|
1320
|
-
|
|
1318
|
+
je,
|
|
1321
1319
|
{
|
|
1322
|
-
fallback: /* @__PURE__ */ a.jsx(
|
|
1323
|
-
children: r ?
|
|
1324
|
-
/* @__PURE__ */ a.jsx(
|
|
1325
|
-
/* @__PURE__ */ a.jsxs(
|
|
1326
|
-
/* @__PURE__ */ a.
|
|
1327
|
-
|
|
1328
|
-
|
|
1320
|
+
fallback: /* @__PURE__ */ a.jsx(ra, { className: "rounded h-5 w-24 mr-4" }),
|
|
1321
|
+
children: r ? Object.values(d).length > 0 && /* @__PURE__ */ a.jsxs(hr, { modal: !1, children: [
|
|
1322
|
+
/* @__PURE__ */ a.jsx(fr, { asChild: !0, children: /* @__PURE__ */ a.jsx(de, { variant: "ghost", children: s != null && s.name ? `${s.name}` : "My Account" }) }),
|
|
1323
|
+
/* @__PURE__ */ a.jsxs(mr, { className: "w-56", children: [
|
|
1324
|
+
/* @__PURE__ */ a.jsxs(gr, { children: [
|
|
1325
|
+
s != null && s.name ? `${s.name}` : "My Account",
|
|
1326
|
+
(s == null ? void 0 : s.email) && /* @__PURE__ */ a.jsx("div", { className: "font-normal text-muted-foreground", children: s.email })
|
|
1327
|
+
] }),
|
|
1328
|
+
d.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ a.jsx(le, {}),
|
|
1329
|
+
d.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ a.jsx(re, { item: l }, l.label)),
|
|
1330
|
+
d.filter(
|
|
1331
|
+
(l) => !l.category || l.category === "middle"
|
|
1332
|
+
).length > 0 && /* @__PURE__ */ a.jsx(le, {}),
|
|
1333
|
+
d.filter(
|
|
1334
|
+
(l) => !l.category || l.category === "middle"
|
|
1335
|
+
).map((l) => /* @__PURE__ */ a.jsx(re, { item: l }, l.label)),
|
|
1336
|
+
d.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ a.jsx(le, {}),
|
|
1337
|
+
d.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ a.jsx(re, { item: l }, l.label))
|
|
1329
1338
|
] })
|
|
1330
|
-
] }) : /* @__PURE__ */ a.jsx(
|
|
1339
|
+
] }) : /* @__PURE__ */ a.jsx(de, { variant: "ghost", onClick: () => t.login(), children: "Login" })
|
|
1331
1340
|
}
|
|
1332
1341
|
),
|
|
1333
|
-
/* @__PURE__ */ a.jsx(
|
|
1342
|
+
/* @__PURE__ */ a.jsx(ut, {}),
|
|
1334
1343
|
/* @__PURE__ */ a.jsx(D, { name: "head-navigation-end" })
|
|
1335
1344
|
] })
|
|
1336
1345
|
] })
|
|
1337
1346
|
] }),
|
|
1338
1347
|
/* @__PURE__ */ a.jsx(D, { name: "top-navigation-before" }),
|
|
1339
|
-
/* @__PURE__ */ a.jsx(
|
|
1348
|
+
/* @__PURE__ */ a.jsx(da, {}),
|
|
1340
1349
|
/* @__PURE__ */ a.jsx(D, { name: "top-navigation-after" })
|
|
1341
1350
|
] })
|
|
1342
1351
|
] });
|
|
1343
|
-
}),
|
|
1352
|
+
}), mt = Kt(({ children: e, className: t, pushMainContent: r }, s) => /* @__PURE__ */ a.jsx(
|
|
1344
1353
|
"nav",
|
|
1345
1354
|
{
|
|
1346
1355
|
"data-navigation": String(r),
|
|
@@ -1354,59 +1363,59 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1354
1363
|
children: e
|
|
1355
1364
|
}
|
|
1356
1365
|
));
|
|
1357
|
-
|
|
1358
|
-
const
|
|
1359
|
-
const e =
|
|
1366
|
+
mt.displayName = "SidebarWrapper";
|
|
1367
|
+
const fa = () => {
|
|
1368
|
+
const e = pe(null), t = Ze();
|
|
1360
1369
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1361
1370
|
/* @__PURE__ */ a.jsxs(
|
|
1362
|
-
|
|
1371
|
+
mt,
|
|
1363
1372
|
{
|
|
1364
1373
|
ref: e,
|
|
1365
1374
|
pushMainContent: t.sidebar.length > 0,
|
|
1366
1375
|
children: [
|
|
1367
1376
|
/* @__PURE__ */ a.jsx(D, { name: "zudoku-before-navigation" }),
|
|
1368
|
-
t.sidebar.map((r) => /* @__PURE__ */ a.jsx(
|
|
1377
|
+
t.sidebar.map((r) => /* @__PURE__ */ a.jsx(fe, { item: r }, r.label)),
|
|
1369
1378
|
/* @__PURE__ */ a.jsx(D, { name: "zudoku-after-navigation" })
|
|
1370
1379
|
]
|
|
1371
1380
|
}
|
|
1372
1381
|
),
|
|
1373
1382
|
/* @__PURE__ */ a.jsxs(
|
|
1374
|
-
|
|
1383
|
+
rt,
|
|
1375
1384
|
{
|
|
1376
1385
|
className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none overflow-auto",
|
|
1377
1386
|
"aria-describedby": void 0,
|
|
1378
1387
|
children: [
|
|
1379
|
-
/* @__PURE__ */ a.jsx(
|
|
1380
|
-
t.sidebar.map((r) => /* @__PURE__ */ a.jsx(
|
|
1388
|
+
/* @__PURE__ */ a.jsx(st, { children: /* @__PURE__ */ a.jsx(at, { children: "Sidebar" }) }),
|
|
1389
|
+
t.sidebar.map((r) => /* @__PURE__ */ a.jsx(fe, { item: r }, r.label))
|
|
1381
1390
|
]
|
|
1382
1391
|
}
|
|
1383
1392
|
)
|
|
1384
1393
|
] });
|
|
1385
|
-
},
|
|
1386
|
-
const t =
|
|
1387
|
-
|
|
1388
|
-
const o =
|
|
1394
|
+
}, qe = () => /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(Nr, {}) }), ma = ({ children: e }) => {
|
|
1395
|
+
const t = ye(), { setActiveAnchor: r } = we(), { meta: s, authentication: n } = F();
|
|
1396
|
+
ea(), ta();
|
|
1397
|
+
const o = pe(t.pathname);
|
|
1389
1398
|
L(() => {
|
|
1390
|
-
var
|
|
1391
|
-
(
|
|
1399
|
+
var d;
|
|
1400
|
+
(d = n == null ? void 0 : n.onPageLoad) == null || d.call(n);
|
|
1392
1401
|
}, [n]), L(() => {
|
|
1393
1402
|
t.pathname !== o.current && r(""), o.current = t.pathname;
|
|
1394
1403
|
}, [t.pathname, r]);
|
|
1395
|
-
const i = !!
|
|
1404
|
+
const i = !!be().location, u = Xr.useSpinDelay(i, {
|
|
1396
1405
|
delay: 300,
|
|
1397
1406
|
minDuration: 500
|
|
1398
1407
|
});
|
|
1399
1408
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1400
1409
|
!1,
|
|
1401
|
-
/* @__PURE__ */ a.jsxs(
|
|
1410
|
+
/* @__PURE__ */ a.jsxs(me, { titleTemplate: s == null ? void 0 : s.title, children: [
|
|
1402
1411
|
(s == null ? void 0 : s.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: s.description }),
|
|
1403
1412
|
(s == null ? void 0 : s.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: s.favicon })
|
|
1404
1413
|
] }),
|
|
1405
1414
|
/* @__PURE__ */ a.jsx(D, { name: "layout-before-head" }),
|
|
1406
|
-
/* @__PURE__ */ a.jsx(
|
|
1415
|
+
/* @__PURE__ */ a.jsx(ft, {}),
|
|
1407
1416
|
/* @__PURE__ */ a.jsx(D, { name: "layout-after-head" }),
|
|
1408
|
-
/* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children:
|
|
1409
|
-
/* @__PURE__ */ a.jsx(
|
|
1417
|
+
/* @__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: [
|
|
1418
|
+
/* @__PURE__ */ a.jsx(fa, {}),
|
|
1410
1419
|
/* @__PURE__ */ a.jsx(
|
|
1411
1420
|
"div",
|
|
1412
1421
|
{
|
|
@@ -1414,8 +1423,8 @@ const ha = () => {
|
|
|
1414
1423
|
"lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
|
|
1415
1424
|
"peer-data-[navigation=false]:hidden"
|
|
1416
1425
|
),
|
|
1417
|
-
children: /* @__PURE__ */ a.jsxs(
|
|
1418
|
-
/* @__PURE__ */ a.jsx(
|
|
1426
|
+
children: /* @__PURE__ */ a.jsxs(tt, { className: "flex items-center gap-2", children: [
|
|
1427
|
+
/* @__PURE__ */ a.jsx(or, { size: 16, strokeWidth: 1.5 }),
|
|
1419
1428
|
/* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1420
1429
|
] })
|
|
1421
1430
|
}
|
|
@@ -1432,20 +1441,20 @@ const ha = () => {
|
|
|
1432
1441
|
),
|
|
1433
1442
|
children: [
|
|
1434
1443
|
/* @__PURE__ */ a.jsx(D, { name: "zudoku-before-content" }),
|
|
1435
|
-
e ?? /* @__PURE__ */ a.jsx(
|
|
1444
|
+
e ?? /* @__PURE__ */ a.jsx(Ge, {}),
|
|
1436
1445
|
/* @__PURE__ */ a.jsx(D, { name: "zudoku-after-content" })
|
|
1437
1446
|
]
|
|
1438
1447
|
}
|
|
1439
1448
|
)
|
|
1440
1449
|
] }) }) })
|
|
1441
1450
|
] });
|
|
1442
|
-
},
|
|
1451
|
+
}, ga = Je(null), ce = {
|
|
1443
1452
|
didCatch: !1,
|
|
1444
1453
|
error: null
|
|
1445
1454
|
};
|
|
1446
|
-
class
|
|
1455
|
+
class pa extends Vt {
|
|
1447
1456
|
constructor(t) {
|
|
1448
|
-
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
1457
|
+
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ce;
|
|
1449
1458
|
}
|
|
1450
1459
|
static getDerivedStateFromError(t) {
|
|
1451
1460
|
return {
|
|
@@ -1463,7 +1472,7 @@ class ga extends Kt {
|
|
|
1463
1472
|
(r = (s = this.props).onReset) === null || r === void 0 || r.call(s, {
|
|
1464
1473
|
args: o,
|
|
1465
1474
|
reason: "imperative-api"
|
|
1466
|
-
}), this.setState(
|
|
1475
|
+
}), this.setState(ce);
|
|
1467
1476
|
}
|
|
1468
1477
|
}
|
|
1469
1478
|
componentDidCatch(t, r) {
|
|
@@ -1476,13 +1485,13 @@ class ga extends Kt {
|
|
|
1476
1485
|
} = this.state, {
|
|
1477
1486
|
resetKeys: n
|
|
1478
1487
|
} = this.props;
|
|
1479
|
-
if (s && r.error !== null &&
|
|
1488
|
+
if (s && r.error !== null && va(t.resetKeys, n)) {
|
|
1480
1489
|
var o, i;
|
|
1481
1490
|
(o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
|
|
1482
1491
|
next: n,
|
|
1483
1492
|
prev: t.resetKeys,
|
|
1484
1493
|
reason: "keys"
|
|
1485
|
-
}), this.setState(
|
|
1494
|
+
}), this.setState(ce);
|
|
1486
1495
|
}
|
|
1487
1496
|
}
|
|
1488
1497
|
render() {
|
|
@@ -1495,35 +1504,35 @@ class ga extends Kt {
|
|
|
1495
1504
|
didCatch: o,
|
|
1496
1505
|
error: i
|
|
1497
1506
|
} = this.state;
|
|
1498
|
-
let
|
|
1507
|
+
let u = t;
|
|
1499
1508
|
if (o) {
|
|
1500
|
-
const
|
|
1509
|
+
const d = {
|
|
1501
1510
|
error: i,
|
|
1502
1511
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1503
1512
|
};
|
|
1504
1513
|
if (typeof r == "function")
|
|
1505
|
-
|
|
1514
|
+
u = r(d);
|
|
1506
1515
|
else if (s)
|
|
1507
|
-
|
|
1516
|
+
u = Ie(s, d);
|
|
1508
1517
|
else if (n !== void 0)
|
|
1509
|
-
|
|
1518
|
+
u = n;
|
|
1510
1519
|
else
|
|
1511
1520
|
throw i;
|
|
1512
1521
|
}
|
|
1513
|
-
return
|
|
1522
|
+
return Ie(ga.Provider, {
|
|
1514
1523
|
value: {
|
|
1515
1524
|
didCatch: o,
|
|
1516
1525
|
error: i,
|
|
1517
1526
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1518
1527
|
}
|
|
1519
|
-
},
|
|
1528
|
+
}, u);
|
|
1520
1529
|
}
|
|
1521
1530
|
}
|
|
1522
|
-
function
|
|
1531
|
+
function va() {
|
|
1523
1532
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1524
1533
|
return e.length !== t.length || e.some((r, s) => !Object.is(r, t[s]));
|
|
1525
1534
|
}
|
|
1526
|
-
class
|
|
1535
|
+
class xa {
|
|
1527
1536
|
constructor(t) {
|
|
1528
1537
|
S(this, "plugins");
|
|
1529
1538
|
S(this, "sidebars");
|
|
@@ -1534,20 +1543,20 @@ class va {
|
|
|
1534
1543
|
S(this, "navigationPlugins");
|
|
1535
1544
|
S(this, "initialize", async () => {
|
|
1536
1545
|
await Promise.all(
|
|
1537
|
-
this.plugins.filter(
|
|
1546
|
+
this.plugins.filter(ia).map((t) => {
|
|
1538
1547
|
var r;
|
|
1539
1548
|
return (r = t.initialize) == null ? void 0 : r.call(t, this);
|
|
1540
1549
|
})
|
|
1541
1550
|
);
|
|
1542
1551
|
});
|
|
1543
1552
|
S(this, "getApiIdentities", async () => (await Promise.all(
|
|
1544
|
-
this.plugins.filter(
|
|
1553
|
+
this.plugins.filter(ca).map((r) => r.getIdentities(this))
|
|
1545
1554
|
)).flat());
|
|
1546
1555
|
S(this, "getPluginSidebar", async (t) => (await Promise.all(
|
|
1547
1556
|
this.navigationPlugins.map(
|
|
1548
1557
|
(s) => {
|
|
1549
1558
|
var n;
|
|
1550
|
-
return (n = s.getSidebar) == null ? void 0 : n.call(s,
|
|
1559
|
+
return (n = s.getSidebar) == null ? void 0 : n.call(s, Q(t));
|
|
1551
1560
|
}
|
|
1552
1561
|
)
|
|
1553
1562
|
)).flatMap((s) => s ?? []));
|
|
@@ -1557,75 +1566,75 @@ class va {
|
|
|
1557
1566
|
const r = await this.authentication.getAccessToken();
|
|
1558
1567
|
return t.headers.set("Authorization", `Bearer ${r}`), t;
|
|
1559
1568
|
});
|
|
1560
|
-
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(
|
|
1569
|
+
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(sa), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
|
|
1561
1570
|
}
|
|
1562
1571
|
}
|
|
1563
|
-
function
|
|
1564
|
-
return /* @__PURE__ */ a.jsx(
|
|
1572
|
+
function ya({ error: e, resetErrorBoundary: t }) {
|
|
1573
|
+
return /* @__PURE__ */ a.jsx(Ue, { error: e });
|
|
1565
1574
|
}
|
|
1566
1575
|
const te = globalThis;
|
|
1567
1576
|
(!te.requestIdleCallback || !te.cancelIdleCallback) && (te.requestIdleCallback = (e) => setTimeout(e, 1), te.cancelIdleCallback = clearTimeout);
|
|
1568
|
-
const
|
|
1569
|
-
Header:
|
|
1570
|
-
},
|
|
1577
|
+
const gt = {
|
|
1578
|
+
Header: ft
|
|
1579
|
+
}, ba = Je(gt), ja = ba.Provider, wa = ({
|
|
1571
1580
|
children: e,
|
|
1572
1581
|
context: t
|
|
1573
1582
|
}) => (Bt({
|
|
1574
1583
|
queryFn: async () => (await t.initialize(), !0),
|
|
1575
1584
|
queryKey: ["zudoku-initialize"]
|
|
1576
|
-
}), /* @__PURE__ */ a.jsx(
|
|
1585
|
+
}), /* @__PURE__ */ a.jsx(Ht.Provider, { value: t, children: e })), pt = Xe(
|
|
1577
1586
|
({ children: e, ...t }) => {
|
|
1578
1587
|
var f, h;
|
|
1579
|
-
const r =
|
|
1580
|
-
() => ({ ...
|
|
1588
|
+
const r = ne(
|
|
1589
|
+
() => ({ ...gt, ...t.overrides }),
|
|
1581
1590
|
[t.overrides]
|
|
1582
|
-
), s =
|
|
1591
|
+
), s = ne(() => {
|
|
1583
1592
|
var v;
|
|
1584
1593
|
return {
|
|
1585
|
-
...(t.plugins ?? []).filter(
|
|
1594
|
+
...(t.plugins ?? []).filter(la).flatMap(
|
|
1586
1595
|
(m) => m.getMdxComponents ? [m.getMdxComponents()] : []
|
|
1587
1596
|
).reduce(
|
|
1588
1597
|
(m, E) => ({ ...m, ...E }),
|
|
1589
1598
|
{}
|
|
1590
1599
|
),
|
|
1591
|
-
...
|
|
1600
|
+
...lr,
|
|
1592
1601
|
...(v = t.mdx) == null ? void 0 : v.components
|
|
1593
1602
|
};
|
|
1594
|
-
}, [(f = t.mdx) == null ? void 0 : f.components, t.plugins]), { stagger: n } =
|
|
1603
|
+
}, [(f = t.mdx) == null ? void 0 : f.components, t.plugins]), { stagger: n } = Zt(ue), [o, i] = q(!1), u = ne(
|
|
1595
1604
|
() => o ? { stagger: !0 } : { stagger: n },
|
|
1596
1605
|
[n, o]
|
|
1597
|
-
),
|
|
1606
|
+
), d = be();
|
|
1598
1607
|
L(() => {
|
|
1599
1608
|
o || i(!0);
|
|
1600
|
-
}, [o,
|
|
1601
|
-
const [
|
|
1609
|
+
}, [o, d.location]);
|
|
1610
|
+
const [l] = q(() => new xa(t)), p = (h = t.plugins) == null ? void 0 : h.filter(oa).map((g, v) => {
|
|
1602
1611
|
var m;
|
|
1603
|
-
return /* @__PURE__ */ a.jsx(
|
|
1612
|
+
return /* @__PURE__ */ a.jsx(Yt, { children: (m = g.getHead) == null ? void 0 : m.call(g) }, v);
|
|
1604
1613
|
});
|
|
1605
1614
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1606
|
-
/* @__PURE__ */ a.jsx(
|
|
1607
|
-
/* @__PURE__ */ a.jsx(
|
|
1615
|
+
/* @__PURE__ */ a.jsx(me, { children: p }),
|
|
1616
|
+
/* @__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, {}) }) }) }) }) }) }) })
|
|
1608
1617
|
] });
|
|
1609
1618
|
}
|
|
1610
1619
|
);
|
|
1611
|
-
|
|
1612
|
-
const
|
|
1613
|
-
|
|
1614
|
-
const
|
|
1620
|
+
pt.displayName = "ZudokoInner";
|
|
1621
|
+
const vt = (e) => /* @__PURE__ */ a.jsx(pa, { FallbackComponent: ya, children: /* @__PURE__ */ a.jsx(pt, { ...e }) });
|
|
1622
|
+
vt.displayName = "Zudoku";
|
|
1623
|
+
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;
|
|
1615
1624
|
export {
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1625
|
+
es as Bootstrap,
|
|
1626
|
+
ts as BootstrapStatic,
|
|
1627
|
+
ls as Button,
|
|
1628
|
+
is as Callout,
|
|
1629
|
+
os as ClientOnly,
|
|
1630
|
+
rs as Head,
|
|
1631
|
+
Xa as Layout,
|
|
1632
|
+
cs as Link,
|
|
1633
|
+
Ja as RouterError,
|
|
1634
|
+
Ga as ServerError,
|
|
1635
|
+
ns as Zudoku,
|
|
1636
|
+
ss as useAuth,
|
|
1637
|
+
Wa as useMDXComponents,
|
|
1638
|
+
as as useZudoku
|
|
1630
1639
|
};
|
|
1631
1640
|
//# sourceMappingURL=zudoku.components.js.map
|