zudoku 0.33.0 → 0.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/authentication/state.js +8 -2
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/index.d.ts +1 -1
- package/dist/lib/core/RouteGuard.d.ts +1 -1
- package/dist/lib/core/RouteGuard.js +23 -18
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/lib/{AuthenticationPlugin-_gUMnGxb.js → AuthenticationPlugin-CiO1FM6Q.js} +2 -2
- package/lib/{AuthenticationPlugin-_gUMnGxb.js.map → AuthenticationPlugin-CiO1FM6Q.js.map} +1 -1
- package/lib/Dialog-DIKGQxQc.js +83 -0
- package/lib/Dialog-DIKGQxQc.js.map +1 -0
- package/lib/{MdxPage-DM9mE-G-.js → MdxPage-DZTt9ld7.js} +3 -3
- package/lib/{MdxPage-DM9mE-G-.js.map → MdxPage-DZTt9ld7.js.map} +1 -1
- package/lib/{OasProvider-Bvu4dDpX.js → OasProvider-SzD9mHJc.js} +3 -3
- package/lib/{OasProvider-Bvu4dDpX.js.map → OasProvider-SzD9mHJc.js.map} +1 -1
- package/lib/{OperationList-DWnNbwVg.js → OperationList-DDs9NblY.js} +5 -5
- package/lib/{OperationList-DWnNbwVg.js.map → OperationList-DDs9NblY.js.map} +1 -1
- package/lib/{Select-BmoX1iTH.js → Select-Dqtcn53H.js} +3 -3
- package/lib/{Select-BmoX1iTH.js.map → Select-Dqtcn53H.js.map} +1 -1
- package/lib/{hook-4_6pQSo4.js → hook-CN__aZIt.js} +39 -35
- package/lib/{hook-4_6pQSo4.js.map → hook-CN__aZIt.js.map} +1 -1
- package/lib/{index-DVBlM15k.js → index-CibzSNks.js} +27 -26
- package/lib/{index-DVBlM15k.js.map → index-CibzSNks.js.map} +1 -1
- package/lib/index-gQD2h1wX.js +447 -0
- package/lib/index-gQD2h1wX.js.map +1 -0
- package/lib/{mutation-DTunCQKB.js → mutation-EclmI0is.js} +2 -2
- package/lib/{mutation-DTunCQKB.js.map → mutation-EclmI0is.js.map} +1 -1
- package/lib/ui/Command.js +21 -20
- package/lib/ui/Command.js.map +1 -1
- package/lib/{useScrollToAnchor-BW8y_cwU.js → useScrollToAnchor-C7ilRSts.js} +2 -2
- package/lib/{useScrollToAnchor-BW8y_cwU.js.map → useScrollToAnchor-C7ilRSts.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +2 -2
- package/lib/zudoku.components.js +475 -464
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +2 -2
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +2 -2
- package/package.json +1 -1
- package/src/lib/authentication/state.ts +8 -2
- package/src/lib/core/RouteGuard.tsx +43 -18
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
- package/lib/index-Du5aNddU.js +0 -509
- package/lib/index-Du5aNddU.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -4,69 +4,70 @@ var xe = (t) => {
|
|
|
4
4
|
};
|
|
5
5
|
var dt = (t, e, r) => e in t ? ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
6
6
|
var j = (t, e, r) => dt(t, typeof e != "symbol" ? e + "" : e, r), ve = (t, e, r) => e.has(t) || xe("Cannot " + r);
|
|
7
|
-
var l = (t, e, r) => (ve(t, e, "read from private field"), r ? r.call(t) : e.get(t)), w = (t, e, r) => e.has(t) ? xe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), y = (t, e, r,
|
|
8
|
-
var _ = (t, e, r,
|
|
7
|
+
var l = (t, e, r) => (ve(t, e, "read from private field"), r ? r.call(t) : e.get(t)), w = (t, e, r) => e.has(t) ? xe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), y = (t, e, r, n) => (ve(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
|
|
8
|
+
var _ = (t, e, r, n) => ({
|
|
9
9
|
set _(a) {
|
|
10
10
|
y(t, e, a, r);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return l(t, e,
|
|
13
|
+
return l(t, e, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
import { a as Fe, H as le } from "./index.esm-CQHE3GEU.js";
|
|
17
|
-
import { z as
|
|
18
|
-
import { u as te, m as
|
|
19
|
-
import { S as
|
|
20
|
-
import { j as
|
|
17
|
+
import { z as He, J as ht } from "./index-DwT-v3zK.js";
|
|
18
|
+
import { a as ft, u as te, m as gt, O as ce, R as mt, S as pt, h as ue, f as xt, L as de } from "./chunk-IR6S3I6Y-D_3UmFIn.js";
|
|
19
|
+
import { S as Be, q as Le, Q as vt, n as P, r as ye, t as be, v as M, w as yt, x as bt, y as jt, z as wt, A as je, B as we, C as Pt, h as Pe, D as Ce, E as Ct, f as kt, k as L, a as E, m as St, F as ze, G as Ke, H as Nt, j as ae, b as Dt, Z as Et, I as Mt, J as Ot } from "./hook-CN__aZIt.js";
|
|
20
|
+
import { j as s } from "./jsx-runtime-CYK1ROHF.js";
|
|
21
|
+
import { D as At, a as qt, d as Tt, c as It, e as Qt } from "./Dialog-DIKGQxQc.js";
|
|
22
|
+
import { Z as $e } from "./invariant-Caa8-XvF.js";
|
|
21
23
|
import * as U from "react";
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
30
|
-
import { CircleXIcon as zt, SearchIcon as Lt, SunIcon as Kt, MoonIcon as $t, MenuIcon as Ut, PanelLeftIcon as Zt } from "lucide-react";
|
|
24
|
+
import Rt, { useRef as V, useEffect as I, createContext as he, StrictMode as Ue, useState as z, useCallback as Ft, Suspense as fe, memo as Ze, forwardRef as Ht, Component as Bt, createElement as ke, useMemo as re, useContext as Lt } from "react";
|
|
25
|
+
import { E as Ye, S, a as zt, R as Kt } from "./SlotletProvider-DdtIOUi6.js";
|
|
26
|
+
import { Button as $t } from "./ui/Button.js";
|
|
27
|
+
import { Callout as Ut } from "./ui/Callout.js";
|
|
28
|
+
import { M as Zt } from "./mutation-EclmI0is.js";
|
|
29
|
+
import * as Yt from "react-dom";
|
|
30
|
+
import { C as ge } from "./ClientOnly-E7hGysn1.js";
|
|
31
|
+
import { CircleXIcon as Vt, SearchIcon as Xt, SunIcon as Gt, MoonIcon as _t, MenuIcon as Wt, PanelLeftIcon as Jt } from "lucide-react";
|
|
31
32
|
import { Drawer as Ve, DrawerTrigger as Xe, DrawerContent as Ge, DrawerTitle as _e } from "./ui/Drawer.js";
|
|
32
33
|
import { c as Q } from "./cn-qaFjX9_3.js";
|
|
33
|
-
import { s as
|
|
34
|
-
import { u as
|
|
34
|
+
import { s as er, S as Se, a as tr, M as rr, u as sr } from "./useScrollToAnchor-C7ilRSts.js";
|
|
35
|
+
import { u as nr, H as ar, P as ir, a as or, V as lr, M as cr } from "./Markdown-DePfm7oQ.js";
|
|
35
36
|
import { B as ie, S as We } from "./Spinner-1KrEmx1V.js";
|
|
36
|
-
import { isSearchPlugin as
|
|
37
|
-
import { DropdownMenu as
|
|
37
|
+
import { isSearchPlugin as ur, isProfileMenuPlugin as dr, isNavigationPlugin as hr, isEventConsumerPlugin as fr, needsInitialization as gr, isApiIdentityPlugin as mr, isMdxProviderPlugin as pr, hasHead as xr } from "./zudoku.plugins.js";
|
|
38
|
+
import { DropdownMenu as vr, DropdownMenuTrigger as yr, DropdownMenuContent as br, DropdownMenuLabel as jr, DropdownMenuSeparator as se, DropdownMenuSub as wr, DropdownMenuSubTrigger as Pr, DropdownMenuPortal as Cr, DropdownMenuSubContent as kr, DropdownMenuItem as Sr } from "./ui/DropdownMenu.js";
|
|
38
39
|
import { j as Ne } from "./joinUrl-10po2Jdj.js";
|
|
39
40
|
import { VisuallyHidden as Je } from "@radix-ui/react-visually-hidden";
|
|
40
|
-
import { a as
|
|
41
|
-
import { C as
|
|
42
|
-
import { o as
|
|
43
|
-
var
|
|
41
|
+
import { a as Nr } from "./index-CPNSgwSb.js";
|
|
42
|
+
import { C as Dr } from "./CategoryHeading-DpB47wvk.js";
|
|
43
|
+
import { o as Er } from "./objectEntries-yMIkr2mI.js";
|
|
44
|
+
var D, Ie, Mr = (Ie = class extends Be {
|
|
44
45
|
constructor(e = {}) {
|
|
45
46
|
super();
|
|
46
|
-
w(this,
|
|
47
|
-
this.config = e, y(this,
|
|
47
|
+
w(this, D);
|
|
48
|
+
this.config = e, y(this, D, /* @__PURE__ */ new Map());
|
|
48
49
|
}
|
|
49
|
-
build(e, r,
|
|
50
|
-
const a = r.queryKey,
|
|
51
|
-
let
|
|
52
|
-
return
|
|
50
|
+
build(e, r, n) {
|
|
51
|
+
const a = r.queryKey, i = r.queryHash ?? Le(a, r);
|
|
52
|
+
let o = this.get(i);
|
|
53
|
+
return o || (o = new vt({
|
|
53
54
|
client: e,
|
|
54
55
|
queryKey: a,
|
|
55
|
-
queryHash:
|
|
56
|
+
queryHash: i,
|
|
56
57
|
options: e.defaultQueryOptions(r),
|
|
57
|
-
state:
|
|
58
|
+
state: n,
|
|
58
59
|
defaultOptions: e.getQueryDefaults(a)
|
|
59
|
-
}), this.add(
|
|
60
|
+
}), this.add(o)), o;
|
|
60
61
|
}
|
|
61
62
|
add(e) {
|
|
62
|
-
l(this,
|
|
63
|
+
l(this, D).has(e.queryHash) || (l(this, D).set(e.queryHash, e), this.notify({
|
|
63
64
|
type: "added",
|
|
64
65
|
query: e
|
|
65
66
|
}));
|
|
66
67
|
}
|
|
67
68
|
remove(e) {
|
|
68
|
-
const r = l(this,
|
|
69
|
-
r && (e.destroy(), r === e && l(this,
|
|
69
|
+
const r = l(this, D).get(e.queryHash);
|
|
70
|
+
r && (e.destroy(), r === e && l(this, D).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
70
71
|
}
|
|
71
72
|
clear() {
|
|
72
73
|
P.batch(() => {
|
|
@@ -76,20 +77,20 @@ var E, Ie, Pr = (Ie = class extends He {
|
|
|
76
77
|
});
|
|
77
78
|
}
|
|
78
79
|
get(e) {
|
|
79
|
-
return l(this,
|
|
80
|
+
return l(this, D).get(e);
|
|
80
81
|
}
|
|
81
82
|
getAll() {
|
|
82
|
-
return [...l(this,
|
|
83
|
+
return [...l(this, D).values()];
|
|
83
84
|
}
|
|
84
85
|
find(e) {
|
|
85
86
|
const r = { exact: !0, ...e };
|
|
86
87
|
return this.getAll().find(
|
|
87
|
-
(
|
|
88
|
+
(n) => ye(r, n)
|
|
88
89
|
);
|
|
89
90
|
}
|
|
90
91
|
findAll(e = {}) {
|
|
91
92
|
const r = this.getAll();
|
|
92
|
-
return Object.keys(e).length > 0 ? r.filter((
|
|
93
|
+
return Object.keys(e).length > 0 ? r.filter((n) => ye(e, n)) : r;
|
|
93
94
|
}
|
|
94
95
|
notify(e) {
|
|
95
96
|
P.batch(() => {
|
|
@@ -112,20 +113,20 @@ var E, Ie, Pr = (Ie = class extends He {
|
|
|
112
113
|
});
|
|
113
114
|
});
|
|
114
115
|
}
|
|
115
|
-
},
|
|
116
|
+
}, D = new WeakMap(), Ie), O, k, Y, Qe, Or = (Qe = class extends Be {
|
|
116
117
|
constructor(e = {}) {
|
|
117
118
|
super();
|
|
118
119
|
w(this, O);
|
|
119
|
-
w(this,
|
|
120
|
+
w(this, k);
|
|
120
121
|
w(this, Y);
|
|
121
|
-
this.config = e, y(this, O, /* @__PURE__ */ new Set()), y(this,
|
|
122
|
+
this.config = e, y(this, O, /* @__PURE__ */ new Set()), y(this, k, /* @__PURE__ */ new Map()), y(this, Y, 0);
|
|
122
123
|
}
|
|
123
|
-
build(e, r,
|
|
124
|
-
const a = new
|
|
124
|
+
build(e, r, n) {
|
|
125
|
+
const a = new Zt({
|
|
125
126
|
mutationCache: this,
|
|
126
127
|
mutationId: ++_(this, Y)._,
|
|
127
128
|
options: e.defaultMutationOptions(r),
|
|
128
|
-
state:
|
|
129
|
+
state: n
|
|
129
130
|
});
|
|
130
131
|
return this.add(a), a;
|
|
131
132
|
}
|
|
@@ -133,8 +134,8 @@ var E, Ie, Pr = (Ie = class extends He {
|
|
|
133
134
|
l(this, O).add(e);
|
|
134
135
|
const r = W(e);
|
|
135
136
|
if (typeof r == "string") {
|
|
136
|
-
const
|
|
137
|
-
|
|
137
|
+
const n = l(this, k).get(r);
|
|
138
|
+
n ? n.push(e) : l(this, k).set(r, [e]);
|
|
138
139
|
}
|
|
139
140
|
this.notify({ type: "added", mutation: e });
|
|
140
141
|
}
|
|
@@ -142,12 +143,12 @@ var E, Ie, Pr = (Ie = class extends He {
|
|
|
142
143
|
if (l(this, O).delete(e)) {
|
|
143
144
|
const r = W(e);
|
|
144
145
|
if (typeof r == "string") {
|
|
145
|
-
const
|
|
146
|
-
if (
|
|
147
|
-
if (
|
|
148
|
-
const a =
|
|
149
|
-
a !== -1 &&
|
|
150
|
-
} else
|
|
146
|
+
const n = l(this, k).get(r);
|
|
147
|
+
if (n)
|
|
148
|
+
if (n.length > 1) {
|
|
149
|
+
const a = n.indexOf(e);
|
|
150
|
+
a !== -1 && n.splice(a, 1);
|
|
151
|
+
} else n[0] === e && l(this, k).delete(r);
|
|
151
152
|
}
|
|
152
153
|
}
|
|
153
154
|
this.notify({ type: "removed", mutation: e });
|
|
@@ -155,18 +156,18 @@ var E, Ie, Pr = (Ie = class extends He {
|
|
|
155
156
|
canRun(e) {
|
|
156
157
|
const r = W(e);
|
|
157
158
|
if (typeof r == "string") {
|
|
158
|
-
const
|
|
159
|
-
(
|
|
159
|
+
const n = l(this, k).get(r), a = n == null ? void 0 : n.find(
|
|
160
|
+
(i) => i.state.status === "pending"
|
|
160
161
|
);
|
|
161
162
|
return !a || a === e;
|
|
162
163
|
} else
|
|
163
164
|
return !0;
|
|
164
165
|
}
|
|
165
166
|
runNext(e) {
|
|
166
|
-
var
|
|
167
|
+
var n;
|
|
167
168
|
const r = W(e);
|
|
168
169
|
if (typeof r == "string") {
|
|
169
|
-
const a = (
|
|
170
|
+
const a = (n = l(this, k).get(r)) == null ? void 0 : n.find((i) => i !== e && i.state.isPaused);
|
|
170
171
|
return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
|
|
171
172
|
} else
|
|
172
173
|
return Promise.resolve();
|
|
@@ -175,7 +176,7 @@ var E, Ie, Pr = (Ie = class extends He {
|
|
|
175
176
|
P.batch(() => {
|
|
176
177
|
l(this, O).forEach((e) => {
|
|
177
178
|
this.notify({ type: "removed", mutation: e });
|
|
178
|
-
}), l(this, O).clear(), l(this,
|
|
179
|
+
}), l(this, O).clear(), l(this, k).clear();
|
|
179
180
|
});
|
|
180
181
|
}
|
|
181
182
|
getAll() {
|
|
@@ -184,7 +185,7 @@ var E, Ie, Pr = (Ie = class extends He {
|
|
|
184
185
|
find(e) {
|
|
185
186
|
const r = { exact: !0, ...e };
|
|
186
187
|
return this.getAll().find(
|
|
187
|
-
(
|
|
188
|
+
(n) => be(r, n)
|
|
188
189
|
);
|
|
189
190
|
}
|
|
190
191
|
findAll(e = {}) {
|
|
@@ -205,27 +206,27 @@ var E, Ie, Pr = (Ie = class extends He {
|
|
|
205
206
|
)
|
|
206
207
|
);
|
|
207
208
|
}
|
|
208
|
-
}, O = new WeakMap(),
|
|
209
|
+
}, O = new WeakMap(), k = new WeakMap(), Y = new WeakMap(), Qe);
|
|
209
210
|
function W(t) {
|
|
210
211
|
var e;
|
|
211
212
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
212
213
|
}
|
|
213
|
-
function
|
|
214
|
+
function De(t) {
|
|
214
215
|
return {
|
|
215
216
|
onFetch: (e, r) => {
|
|
216
|
-
var
|
|
217
|
-
const
|
|
217
|
+
var m, g, h, f, v;
|
|
218
|
+
const n = e.options, a = (h = (g = (m = e.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : h.direction, i = ((f = e.state.data) == null ? void 0 : f.pages) || [], o = ((v = e.state.data) == null ? void 0 : v.pageParams) || [];
|
|
218
219
|
let u = { pages: [], pageParams: [] }, d = 0;
|
|
219
220
|
const c = async () => {
|
|
220
221
|
let x = !1;
|
|
221
|
-
const
|
|
222
|
+
const C = (b) => {
|
|
222
223
|
Object.defineProperty(b, "signal", {
|
|
223
224
|
enumerable: !0,
|
|
224
225
|
get: () => (e.signal.aborted ? x = !0 : e.signal.addEventListener("abort", () => {
|
|
225
226
|
x = !0;
|
|
226
227
|
}), e.signal)
|
|
227
228
|
});
|
|
228
|
-
}, X =
|
|
229
|
+
}, X = yt(e.options, e.fetchOptions), K = async (b, N, $) => {
|
|
229
230
|
if (x)
|
|
230
231
|
return Promise.reject();
|
|
231
232
|
if (N == null && b.pages.length)
|
|
@@ -237,25 +238,25 @@ function Ee(t) {
|
|
|
237
238
|
direction: $ ? "backward" : "forward",
|
|
238
239
|
meta: e.options.meta
|
|
239
240
|
};
|
|
240
|
-
|
|
241
|
+
C(G);
|
|
241
242
|
const ct = await X(
|
|
242
243
|
G
|
|
243
|
-
), { maxPages:
|
|
244
|
+
), { maxPages: me } = e.options, pe = $ ? bt : jt;
|
|
244
245
|
return {
|
|
245
|
-
pages: pe(b.pages, ct,
|
|
246
|
-
pageParams: pe(b.pageParams, N,
|
|
246
|
+
pages: pe(b.pages, ct, me),
|
|
247
|
+
pageParams: pe(b.pageParams, N, me)
|
|
247
248
|
};
|
|
248
249
|
};
|
|
249
|
-
if (a &&
|
|
250
|
-
const b = a === "backward", N = b ?
|
|
251
|
-
pages:
|
|
252
|
-
pageParams:
|
|
253
|
-
}, G = N(
|
|
250
|
+
if (a && i.length) {
|
|
251
|
+
const b = a === "backward", N = b ? Ar : Ee, $ = {
|
|
252
|
+
pages: i,
|
|
253
|
+
pageParams: o
|
|
254
|
+
}, G = N(n, $);
|
|
254
255
|
u = await K($, G, b);
|
|
255
256
|
} else {
|
|
256
|
-
const b = t ??
|
|
257
|
+
const b = t ?? i.length;
|
|
257
258
|
do {
|
|
258
|
-
const N = d === 0 ?
|
|
259
|
+
const N = d === 0 ? o[0] ?? n.initialPageParam : Ee(n, u);
|
|
259
260
|
if (d > 0 && N == null)
|
|
260
261
|
break;
|
|
261
262
|
u = await K(u, N), d++;
|
|
@@ -264,8 +265,8 @@ function Ee(t) {
|
|
|
264
265
|
return u;
|
|
265
266
|
};
|
|
266
267
|
e.options.persister ? e.fetchFn = () => {
|
|
267
|
-
var x,
|
|
268
|
-
return (
|
|
268
|
+
var x, C;
|
|
269
|
+
return (C = (x = e.options).persister) == null ? void 0 : C.call(
|
|
269
270
|
x,
|
|
270
271
|
c,
|
|
271
272
|
{
|
|
@@ -280,47 +281,47 @@ function Ee(t) {
|
|
|
280
281
|
}
|
|
281
282
|
};
|
|
282
283
|
}
|
|
283
|
-
function
|
|
284
|
-
const
|
|
284
|
+
function Ee(t, { pages: e, pageParams: r }) {
|
|
285
|
+
const n = e.length - 1;
|
|
285
286
|
return e.length > 0 ? t.getNextPageParam(
|
|
286
|
-
e[
|
|
287
|
+
e[n],
|
|
287
288
|
e,
|
|
288
|
-
r[
|
|
289
|
+
r[n],
|
|
289
290
|
r
|
|
290
291
|
) : void 0;
|
|
291
292
|
}
|
|
292
|
-
function
|
|
293
|
-
var
|
|
294
|
-
return e.length > 0 ? (
|
|
293
|
+
function Ar(t, { pages: e, pageParams: r }) {
|
|
294
|
+
var n;
|
|
295
|
+
return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, r[0], r) : void 0;
|
|
295
296
|
}
|
|
296
|
-
var p,
|
|
297
|
+
var p, A, q, R, F, T, H, B, Re, qr = (Re = class {
|
|
297
298
|
constructor(t = {}) {
|
|
298
299
|
w(this, p);
|
|
300
|
+
w(this, A);
|
|
299
301
|
w(this, q);
|
|
300
|
-
w(this, T);
|
|
301
302
|
w(this, R);
|
|
302
303
|
w(this, F);
|
|
303
|
-
w(this,
|
|
304
|
-
w(this, B);
|
|
304
|
+
w(this, T);
|
|
305
305
|
w(this, H);
|
|
306
|
-
|
|
306
|
+
w(this, B);
|
|
307
|
+
y(this, p, t.queryCache || new Mr()), y(this, A, t.mutationCache || new Or()), y(this, q, t.defaultOptions || {}), y(this, R, /* @__PURE__ */ new Map()), y(this, F, /* @__PURE__ */ new Map()), y(this, T, 0);
|
|
307
308
|
}
|
|
308
309
|
mount() {
|
|
309
|
-
_(this,
|
|
310
|
+
_(this, T)._++, l(this, T) === 1 && (y(this, H, wt.subscribe(async (t) => {
|
|
310
311
|
t && (await this.resumePausedMutations(), l(this, p).onFocus());
|
|
311
|
-
})), y(this,
|
|
312
|
+
})), y(this, B, je.subscribe(async (t) => {
|
|
312
313
|
t && (await this.resumePausedMutations(), l(this, p).onOnline());
|
|
313
314
|
})));
|
|
314
315
|
}
|
|
315
316
|
unmount() {
|
|
316
317
|
var t, e;
|
|
317
|
-
_(this,
|
|
318
|
+
_(this, T)._--, l(this, T) === 0 && ((t = l(this, H)) == null || t.call(this), y(this, H, void 0), (e = l(this, B)) == null || e.call(this), y(this, B, void 0));
|
|
318
319
|
}
|
|
319
320
|
isFetching(t) {
|
|
320
321
|
return l(this, p).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
321
322
|
}
|
|
322
323
|
isMutating(t) {
|
|
323
|
-
return l(this,
|
|
324
|
+
return l(this, A).findAll({ ...t, status: "pending" }).length;
|
|
324
325
|
}
|
|
325
326
|
getQueryData(t) {
|
|
326
327
|
var r;
|
|
@@ -328,27 +329,27 @@ var p, q, T, R, F, I, B, H, Re, Sr = (Re = class {
|
|
|
328
329
|
return (r = l(this, p).get(e.queryHash)) == null ? void 0 : r.state.data;
|
|
329
330
|
}
|
|
330
331
|
ensureQueryData(t) {
|
|
331
|
-
const e = this.defaultQueryOptions(t), r = l(this, p).build(this, e),
|
|
332
|
-
return
|
|
332
|
+
const e = this.defaultQueryOptions(t), r = l(this, p).build(this, e), n = r.state.data;
|
|
333
|
+
return n === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && r.isStaleByTime(we(e.staleTime, r)) && this.prefetchQuery(e), Promise.resolve(n));
|
|
333
334
|
}
|
|
334
335
|
getQueriesData(t) {
|
|
335
336
|
return l(this, p).findAll(t).map(({ queryKey: e, state: r }) => {
|
|
336
|
-
const
|
|
337
|
-
return [e,
|
|
337
|
+
const n = r.data;
|
|
338
|
+
return [e, n];
|
|
338
339
|
});
|
|
339
340
|
}
|
|
340
341
|
setQueryData(t, e, r) {
|
|
341
|
-
const
|
|
342
|
-
|
|
343
|
-
),
|
|
344
|
-
if (
|
|
345
|
-
return l(this, p).build(this,
|
|
342
|
+
const n = this.defaultQueryOptions({ queryKey: t }), a = l(this, p).get(
|
|
343
|
+
n.queryHash
|
|
344
|
+
), i = a == null ? void 0 : a.state.data, o = Pt(e, i);
|
|
345
|
+
if (o !== void 0)
|
|
346
|
+
return l(this, p).build(this, n).setData(o, { ...r, manual: !0 });
|
|
346
347
|
}
|
|
347
348
|
setQueriesData(t, e, r) {
|
|
348
349
|
return P.batch(
|
|
349
|
-
() => l(this, p).findAll(t).map(({ queryKey:
|
|
350
|
-
|
|
351
|
-
this.setQueryData(
|
|
350
|
+
() => l(this, p).findAll(t).map(({ queryKey: n }) => [
|
|
351
|
+
n,
|
|
352
|
+
this.setQueryData(n, e, r)
|
|
352
353
|
])
|
|
353
354
|
);
|
|
354
355
|
}
|
|
@@ -368,24 +369,24 @@ var p, q, T, R, F, I, B, H, Re, Sr = (Re = class {
|
|
|
368
369
|
});
|
|
369
370
|
}
|
|
370
371
|
resetQueries(t, e) {
|
|
371
|
-
const r = l(this, p),
|
|
372
|
+
const r = l(this, p), n = {
|
|
372
373
|
type: "active",
|
|
373
374
|
...t
|
|
374
375
|
};
|
|
375
376
|
return P.batch(() => (r.findAll(t).forEach((a) => {
|
|
376
377
|
a.reset();
|
|
377
|
-
}), this.refetchQueries(
|
|
378
|
+
}), this.refetchQueries(n, e)));
|
|
378
379
|
}
|
|
379
380
|
cancelQueries(t, e = {}) {
|
|
380
|
-
const r = { revert: !0, ...e },
|
|
381
|
+
const r = { revert: !0, ...e }, n = P.batch(
|
|
381
382
|
() => l(this, p).findAll(t).map((a) => a.cancel(r))
|
|
382
383
|
);
|
|
383
|
-
return Promise.all(
|
|
384
|
+
return Promise.all(n).then(M).catch(M);
|
|
384
385
|
}
|
|
385
386
|
invalidateQueries(t, e = {}) {
|
|
386
387
|
return P.batch(() => {
|
|
387
|
-
if (l(this, p).findAll(t).forEach((
|
|
388
|
-
|
|
388
|
+
if (l(this, p).findAll(t).forEach((n) => {
|
|
389
|
+
n.invalidate();
|
|
389
390
|
}), (t == null ? void 0 : t.refetchType) === "none")
|
|
390
391
|
return Promise.resolve();
|
|
391
392
|
const r = {
|
|
@@ -399,13 +400,13 @@ var p, q, T, R, F, I, B, H, Re, Sr = (Re = class {
|
|
|
399
400
|
const r = {
|
|
400
401
|
...e,
|
|
401
402
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
402
|
-
},
|
|
403
|
+
}, n = P.batch(
|
|
403
404
|
() => l(this, p).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
|
|
404
|
-
let
|
|
405
|
-
return r.throwOnError || (
|
|
405
|
+
let i = a.fetch(void 0, r);
|
|
406
|
+
return r.throwOnError || (i = i.catch(M)), a.state.fetchStatus === "paused" ? Promise.resolve() : i;
|
|
406
407
|
})
|
|
407
408
|
);
|
|
408
|
-
return Promise.all(
|
|
409
|
+
return Promise.all(n).then(M);
|
|
409
410
|
}
|
|
410
411
|
fetchQuery(t) {
|
|
411
412
|
const e = this.defaultQueryOptions(t);
|
|
@@ -419,28 +420,28 @@ var p, q, T, R, F, I, B, H, Re, Sr = (Re = class {
|
|
|
419
420
|
return this.fetchQuery(t).then(M).catch(M);
|
|
420
421
|
}
|
|
421
422
|
fetchInfiniteQuery(t) {
|
|
422
|
-
return t.behavior =
|
|
423
|
+
return t.behavior = De(t.pages), this.fetchQuery(t);
|
|
423
424
|
}
|
|
424
425
|
prefetchInfiniteQuery(t) {
|
|
425
426
|
return this.fetchInfiniteQuery(t).then(M).catch(M);
|
|
426
427
|
}
|
|
427
428
|
ensureInfiniteQueryData(t) {
|
|
428
|
-
return t.behavior =
|
|
429
|
+
return t.behavior = De(t.pages), this.ensureQueryData(t);
|
|
429
430
|
}
|
|
430
431
|
resumePausedMutations() {
|
|
431
|
-
return je.isOnline() ? l(this,
|
|
432
|
+
return je.isOnline() ? l(this, A).resumePausedMutations() : Promise.resolve();
|
|
432
433
|
}
|
|
433
434
|
getQueryCache() {
|
|
434
435
|
return l(this, p);
|
|
435
436
|
}
|
|
436
437
|
getMutationCache() {
|
|
437
|
-
return l(this,
|
|
438
|
+
return l(this, A);
|
|
438
439
|
}
|
|
439
440
|
getDefaultOptions() {
|
|
440
|
-
return l(this,
|
|
441
|
+
return l(this, q);
|
|
441
442
|
}
|
|
442
443
|
setDefaultOptions(t) {
|
|
443
|
-
y(this,
|
|
444
|
+
y(this, q, t);
|
|
444
445
|
}
|
|
445
446
|
setQueryDefaults(t, e) {
|
|
446
447
|
l(this, R).set(Pe(t), {
|
|
@@ -450,8 +451,8 @@ var p, q, T, R, F, I, B, H, Re, Sr = (Re = class {
|
|
|
450
451
|
}
|
|
451
452
|
getQueryDefaults(t) {
|
|
452
453
|
const e = [...l(this, R).values()], r = {};
|
|
453
|
-
return e.forEach((
|
|
454
|
-
|
|
454
|
+
return e.forEach((n) => {
|
|
455
|
+
Ce(t, n.queryKey) && Object.assign(r, n.defaultOptions);
|
|
455
456
|
}), r;
|
|
456
457
|
}
|
|
457
458
|
setMutationDefaults(t, e) {
|
|
@@ -463,65 +464,65 @@ var p, q, T, R, F, I, B, H, Re, Sr = (Re = class {
|
|
|
463
464
|
getMutationDefaults(t) {
|
|
464
465
|
const e = [...l(this, F).values()];
|
|
465
466
|
let r = {};
|
|
466
|
-
return e.forEach((
|
|
467
|
-
|
|
467
|
+
return e.forEach((n) => {
|
|
468
|
+
Ce(t, n.mutationKey) && (r = { ...r, ...n.defaultOptions });
|
|
468
469
|
}), r;
|
|
469
470
|
}
|
|
470
471
|
defaultQueryOptions(t) {
|
|
471
472
|
if (t._defaulted)
|
|
472
473
|
return t;
|
|
473
474
|
const e = {
|
|
474
|
-
...l(this,
|
|
475
|
+
...l(this, q).queries,
|
|
475
476
|
...this.getQueryDefaults(t.queryKey),
|
|
476
477
|
...t,
|
|
477
478
|
_defaulted: !0
|
|
478
479
|
};
|
|
479
|
-
return e.queryHash || (e.queryHash =
|
|
480
|
+
return e.queryHash || (e.queryHash = Le(
|
|
480
481
|
e.queryKey,
|
|
481
482
|
e
|
|
482
|
-
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn ===
|
|
483
|
+
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === Ct && (e.enabled = !1), e;
|
|
483
484
|
}
|
|
484
485
|
defaultMutationOptions(t) {
|
|
485
486
|
return t != null && t._defaulted ? t : {
|
|
486
|
-
...l(this,
|
|
487
|
+
...l(this, q).mutations,
|
|
487
488
|
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
488
489
|
...t,
|
|
489
490
|
_defaulted: !0
|
|
490
491
|
};
|
|
491
492
|
}
|
|
492
493
|
clear() {
|
|
493
|
-
l(this, p).clear(), l(this,
|
|
494
|
+
l(this, p).clear(), l(this, A).clear();
|
|
494
495
|
}
|
|
495
|
-
}, p = new WeakMap(),
|
|
496
|
-
function
|
|
496
|
+
}, p = new WeakMap(), A = new WeakMap(), q = new WeakMap(), R = new WeakMap(), F = new WeakMap(), T = new WeakMap(), H = new WeakMap(), B = new WeakMap(), Re);
|
|
497
|
+
function Tr(t) {
|
|
497
498
|
return t;
|
|
498
499
|
}
|
|
499
500
|
function Me(t, e, r) {
|
|
500
501
|
var d, c;
|
|
501
502
|
if (typeof e != "object" || e === null)
|
|
502
503
|
return;
|
|
503
|
-
const
|
|
504
|
-
|
|
504
|
+
const n = t.getMutationCache(), a = t.getQueryCache(), i = ((d = r == null ? void 0 : r.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Tr, o = e.mutations || [], u = e.queries || [];
|
|
505
|
+
o.forEach(({ state: m, ...g }) => {
|
|
505
506
|
var h, f;
|
|
506
|
-
|
|
507
|
+
n.build(
|
|
507
508
|
t,
|
|
508
509
|
{
|
|
509
510
|
...(h = t.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
|
|
510
511
|
...(f = r == null ? void 0 : r.defaultOptions) == null ? void 0 : f.mutations,
|
|
511
|
-
...
|
|
512
|
+
...g
|
|
512
513
|
},
|
|
513
|
-
|
|
514
|
+
m
|
|
514
515
|
);
|
|
515
|
-
}), u.forEach(({ queryKey:
|
|
516
|
+
}), u.forEach(({ queryKey: m, state: g, queryHash: h, meta: f, promise: v }) => {
|
|
516
517
|
var X, K;
|
|
517
518
|
let x = a.get(h);
|
|
518
|
-
const
|
|
519
|
+
const C = g.data === void 0 ? g.data : i(g.data);
|
|
519
520
|
if (x) {
|
|
520
|
-
if (x.state.dataUpdatedAt <
|
|
521
|
-
const { fetchStatus: b, ...N } =
|
|
521
|
+
if (x.state.dataUpdatedAt < g.dataUpdatedAt) {
|
|
522
|
+
const { fetchStatus: b, ...N } = g;
|
|
522
523
|
x.setState({
|
|
523
524
|
...N,
|
|
524
|
-
data:
|
|
525
|
+
data: C
|
|
525
526
|
});
|
|
526
527
|
}
|
|
527
528
|
} else
|
|
@@ -530,88 +531,98 @@ function Me(t, e, r) {
|
|
|
530
531
|
{
|
|
531
532
|
...(X = t.getDefaultOptions().hydrate) == null ? void 0 : X.queries,
|
|
532
533
|
...(K = r == null ? void 0 : r.defaultOptions) == null ? void 0 : K.queries,
|
|
533
|
-
queryKey:
|
|
534
|
+
queryKey: m,
|
|
534
535
|
queryHash: h,
|
|
535
536
|
meta: f
|
|
536
537
|
},
|
|
537
538
|
// Reset fetch status to idle to avoid
|
|
538
539
|
// query being stuck in fetching state upon hydration
|
|
539
540
|
{
|
|
540
|
-
...
|
|
541
|
-
data:
|
|
541
|
+
...g,
|
|
542
|
+
data: C,
|
|
542
543
|
fetchStatus: "idle"
|
|
543
544
|
}
|
|
544
545
|
);
|
|
545
546
|
if (v) {
|
|
546
|
-
const b = Promise.resolve(v).then(
|
|
547
|
+
const b = Promise.resolve(v).then(i);
|
|
547
548
|
x.fetch(void 0, { initialPromise: b });
|
|
548
549
|
}
|
|
549
550
|
});
|
|
550
551
|
}
|
|
551
|
-
var Oe = (t, e) => typeof t == "object" && t !== null && e in t,
|
|
552
|
+
var Oe = (t, e) => typeof t == "object" && t !== null && e in t, Ir = ({
|
|
552
553
|
children: t,
|
|
553
554
|
options: e = {},
|
|
554
555
|
state: r,
|
|
555
|
-
queryClient:
|
|
556
|
+
queryClient: n
|
|
556
557
|
}) => {
|
|
557
|
-
const a = kt(
|
|
558
|
+
const a = kt(n), [i, o] = U.useState(), u = U.useRef(e);
|
|
558
559
|
return u.current = e, U.useMemo(() => {
|
|
559
560
|
if (r) {
|
|
560
561
|
if (typeof r != "object")
|
|
561
562
|
return;
|
|
562
|
-
const d = a.getQueryCache(), c = r.queries || [],
|
|
563
|
+
const d = a.getQueryCache(), c = r.queries || [], m = [], g = [];
|
|
563
564
|
for (const h of c) {
|
|
564
565
|
const f = d.get(h.queryHash);
|
|
565
566
|
if (!f)
|
|
566
|
-
|
|
567
|
+
m.push(h);
|
|
567
568
|
else {
|
|
568
569
|
const v = h.state.dataUpdatedAt > f.state.dataUpdatedAt || // RSC special serialized then-able chunks
|
|
569
|
-
Oe(h.promise, "status") && Oe(f.promise, "status") && h.promise.status !== f.promise.status, x =
|
|
570
|
-
(
|
|
570
|
+
Oe(h.promise, "status") && Oe(f.promise, "status") && h.promise.status !== f.promise.status, x = i == null ? void 0 : i.find(
|
|
571
|
+
(C) => C.queryHash === h.queryHash
|
|
571
572
|
);
|
|
572
|
-
v && (!x || h.state.dataUpdatedAt > x.state.dataUpdatedAt) &&
|
|
573
|
+
v && (!x || h.state.dataUpdatedAt > x.state.dataUpdatedAt) && g.push(h);
|
|
573
574
|
}
|
|
574
575
|
}
|
|
575
|
-
|
|
576
|
-
(h) => h ? [...h, ...
|
|
576
|
+
m.length > 0 && Me(a, { queries: m }, u.current), g.length > 0 && o(
|
|
577
|
+
(h) => h ? [...h, ...g] : g
|
|
577
578
|
);
|
|
578
579
|
}
|
|
579
|
-
}, [a,
|
|
580
|
-
|
|
581
|
-
}, [a,
|
|
580
|
+
}, [a, i, r]), U.useEffect(() => {
|
|
581
|
+
i && (Me(a, { queries: i }, u.current), o(void 0));
|
|
582
|
+
}, [a, i]), t;
|
|
582
583
|
};
|
|
583
|
-
const
|
|
584
|
+
const Qr = (t) => {
|
|
584
585
|
const e = V(t);
|
|
585
|
-
return e.current = t,
|
|
586
|
+
return e.current = t, I(() => {
|
|
586
587
|
e.current = t;
|
|
587
588
|
}, [t]), e;
|
|
588
|
-
},
|
|
589
|
+
}, Rr = () => {
|
|
589
590
|
var o;
|
|
590
|
-
const t =
|
|
591
|
-
(
|
|
591
|
+
const t = L(), e = E(), r = ft(), n = te(), a = Qr(n.pathname), i = (o = e.options.protectedRoutes) == null ? void 0 : o.some(
|
|
592
|
+
(u) => gt({ path: u, end: !0 }, n.pathname)
|
|
592
593
|
);
|
|
593
|
-
if (
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
t.isAuthenticated
|
|
602
|
-
|
|
603
|
-
s
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
594
|
+
if (St({
|
|
595
|
+
queryKey: ["login-redirect"],
|
|
596
|
+
queryFn: async () => {
|
|
597
|
+
var u;
|
|
598
|
+
return await new Promise((d) => setTimeout(d, 1200)), (u = e.authentication) == null ? void 0 : u.signIn({
|
|
599
|
+
redirectTo: a.current
|
|
600
|
+
});
|
|
601
|
+
},
|
|
602
|
+
enabled: typeof window < "u" && i && !t.isPending && !t.isAuthenticated
|
|
603
|
+
}), i && !t.isAuthenticated)
|
|
604
|
+
return /* @__PURE__ */ s.jsx(
|
|
605
|
+
At,
|
|
606
|
+
{
|
|
607
|
+
open: !0,
|
|
608
|
+
onOpenChange: (u) => {
|
|
609
|
+
u || r(-1);
|
|
610
|
+
},
|
|
611
|
+
children: /* @__PURE__ */ s.jsxs(qt, { children: [
|
|
612
|
+
/* @__PURE__ */ s.jsx(Tt, { children: /* @__PURE__ */ s.jsx(It, { children: "Logging you in..." }) }),
|
|
613
|
+
/* @__PURE__ */ s.jsx(Qt, { children: "Please wait while we log you in." })
|
|
614
|
+
] })
|
|
615
|
+
}
|
|
616
|
+
);
|
|
617
|
+
if (i && !t.isAuthEnabled)
|
|
618
|
+
throw new $e("Authentication is not enabled", {
|
|
608
619
|
title: "Authentication is not enabled",
|
|
609
620
|
developerHint: "To use protectedRoutes you need authentication to be enabled"
|
|
610
621
|
});
|
|
611
|
-
return /* @__PURE__ */
|
|
622
|
+
return /* @__PURE__ */ s.jsx(ce, {});
|
|
612
623
|
};
|
|
613
|
-
function
|
|
614
|
-
return /* @__PURE__ */
|
|
624
|
+
function Fr({ error: t }) {
|
|
625
|
+
return /* @__PURE__ */ s.jsx(Ye, { error: t });
|
|
615
626
|
}
|
|
616
627
|
/**
|
|
617
628
|
* react-router v7.1.5
|
|
@@ -623,46 +634,46 @@ function Or({ error: t }) {
|
|
|
623
634
|
*
|
|
624
635
|
* @license MIT
|
|
625
636
|
*/
|
|
626
|
-
function
|
|
627
|
-
return /* @__PURE__ */ U.createElement(mt, { flushSync:
|
|
637
|
+
function Hr(t) {
|
|
638
|
+
return /* @__PURE__ */ U.createElement(mt, { flushSync: Yt.flushSync, ...t });
|
|
628
639
|
}
|
|
629
|
-
const oe = he({ stagger: !1 }),
|
|
640
|
+
const oe = he({ stagger: !1 }), Br = new qr({
|
|
630
641
|
defaultOptions: {
|
|
631
642
|
queries: {
|
|
632
643
|
staleTime: 1e3 * 60 * 5
|
|
633
644
|
}
|
|
634
645
|
}
|
|
635
|
-
}),
|
|
646
|
+
}), Lr = ({
|
|
636
647
|
router: t,
|
|
637
648
|
hydrate: e = !1
|
|
638
|
-
}) => /* @__PURE__ */
|
|
649
|
+
}) => /* @__PURE__ */ s.jsx(Ue, { children: /* @__PURE__ */ s.jsx(ze, { client: Br, children: /* @__PURE__ */ s.jsx(Ir, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ s.jsx(Fe, { children: /* @__PURE__ */ s.jsx(oe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ s.jsx(Hr, { router: t }) }) }) }) }) }), zr = ({
|
|
639
650
|
router: t,
|
|
640
651
|
context: e,
|
|
641
652
|
queryClient: r,
|
|
642
|
-
helmetContext:
|
|
643
|
-
}) => /* @__PURE__ */
|
|
644
|
-
var Z = { exports: {} },
|
|
645
|
-
function
|
|
653
|
+
helmetContext: n
|
|
654
|
+
}) => /* @__PURE__ */ s.jsx(Ue, { children: /* @__PURE__ */ s.jsx(ze, { client: r, children: /* @__PURE__ */ s.jsx(Fe, { context: n, children: /* @__PURE__ */ s.jsx(pt, { router: t, context: e }) }) }) });
|
|
655
|
+
var Z = { exports: {} }, Kr = Z.exports, Ae;
|
|
656
|
+
function $r() {
|
|
646
657
|
return Ae || (Ae = 1, function(t, e) {
|
|
647
|
-
(function(r,
|
|
648
|
-
|
|
649
|
-
})(
|
|
658
|
+
(function(r, n) {
|
|
659
|
+
n(e, Rt);
|
|
660
|
+
})(Kr, function(r, n) {
|
|
650
661
|
const a = {
|
|
651
662
|
delay: 500,
|
|
652
663
|
minDuration: 200,
|
|
653
664
|
ssr: !0
|
|
654
665
|
};
|
|
655
|
-
function
|
|
656
|
-
const [u, d] =
|
|
657
|
-
return
|
|
666
|
+
function i() {
|
|
667
|
+
const [u, d] = n.useState(!0);
|
|
668
|
+
return n.useEffect(() => {
|
|
658
669
|
d(!1);
|
|
659
670
|
}, []), u;
|
|
660
671
|
}
|
|
661
|
-
function
|
|
672
|
+
function o(u, d) {
|
|
662
673
|
d = Object.assign({}, a, d);
|
|
663
|
-
const c =
|
|
664
|
-
return
|
|
665
|
-
if (u && (
|
|
674
|
+
const c = i() && d.ssr, m = c && u ? "DISPLAY" : "IDLE", [g, h] = n.useState(m), f = n.useRef(null);
|
|
675
|
+
return n.useEffect(() => {
|
|
676
|
+
if (u && (g === "IDLE" || c)) {
|
|
666
677
|
clearTimeout(f.current);
|
|
667
678
|
const v = c ? 0 : d.delay;
|
|
668
679
|
f.current = setTimeout(() => {
|
|
@@ -673,26 +684,26 @@ function Rr() {
|
|
|
673
684
|
}, d.minDuration), h("DISPLAY");
|
|
674
685
|
}, v), c || h("DELAY");
|
|
675
686
|
}
|
|
676
|
-
!u &&
|
|
677
|
-
}, [u,
|
|
687
|
+
!u && g !== "DISPLAY" && (clearTimeout(f.current), h("IDLE"));
|
|
688
|
+
}, [u, g, d.delay, d.minDuration, c]), n.useEffect(() => () => clearTimeout(f.current), []), g === "DISPLAY" || g === "EXPIRE";
|
|
678
689
|
}
|
|
679
|
-
r.defaultOptions = a, r.useSpinDelay =
|
|
690
|
+
r.defaultOptions = a, r.useSpinDelay = o;
|
|
680
691
|
});
|
|
681
692
|
}(Z, Z.exports)), Z.exports;
|
|
682
693
|
}
|
|
683
|
-
var
|
|
684
|
-
const
|
|
694
|
+
var Ur = $r();
|
|
695
|
+
const Zr = () => {
|
|
685
696
|
const t = te(), e = V(t.pathname);
|
|
686
|
-
|
|
687
|
-
const r = e.current !== t.pathname,
|
|
688
|
-
r && !
|
|
697
|
+
I(() => {
|
|
698
|
+
const r = e.current !== t.pathname, n = t.hash !== "";
|
|
699
|
+
r && !n && window.scrollTo(0, 0), e.current = t.pathname;
|
|
689
700
|
}, [t.pathname, t.hash]);
|
|
690
701
|
};
|
|
691
|
-
function
|
|
702
|
+
function Yr({
|
|
692
703
|
className: t,
|
|
693
704
|
...e
|
|
694
705
|
}) {
|
|
695
|
-
return /* @__PURE__ */
|
|
706
|
+
return /* @__PURE__ */ s.jsx(
|
|
696
707
|
"div",
|
|
697
708
|
{
|
|
698
709
|
className: Q("animate-pulse rounded-md bg-muted", t),
|
|
@@ -706,70 +717,70 @@ const qe = {
|
|
|
706
717
|
tip: "bg-green-600",
|
|
707
718
|
caution: "bg-orange-500",
|
|
708
719
|
danger: "bg-rose-500"
|
|
709
|
-
},
|
|
710
|
-
const { page: t } =
|
|
720
|
+
}, Vr = () => {
|
|
721
|
+
const { page: t } = E(), [e, r] = z(!0);
|
|
711
722
|
if (!(t != null && t.banner) || !e)
|
|
712
|
-
return /* @__PURE__ */
|
|
713
|
-
const
|
|
714
|
-
return /* @__PURE__ */
|
|
723
|
+
return /* @__PURE__ */ s.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
724
|
+
const n = t.banner.color && t.banner.color in qe ? qe[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
|
|
725
|
+
return /* @__PURE__ */ s.jsxs(
|
|
715
726
|
"div",
|
|
716
727
|
{
|
|
717
728
|
className: Q(
|
|
718
729
|
"relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
|
|
719
|
-
|
|
730
|
+
n
|
|
720
731
|
),
|
|
721
732
|
style: a,
|
|
722
733
|
children: [
|
|
723
|
-
/* @__PURE__ */
|
|
724
|
-
t.banner.dismissible && /* @__PURE__ */
|
|
734
|
+
/* @__PURE__ */ s.jsx("div", { className: "w-full", children: t.banner.message }),
|
|
735
|
+
t.banner.dismissible && /* @__PURE__ */ s.jsx(
|
|
725
736
|
"button",
|
|
726
737
|
{
|
|
727
738
|
type: "button",
|
|
728
739
|
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
729
740
|
onClick: () => r(!1),
|
|
730
|
-
children: /* @__PURE__ */
|
|
741
|
+
children: /* @__PURE__ */ s.jsx(Vt, { size: 16 })
|
|
731
742
|
}
|
|
732
743
|
)
|
|
733
744
|
]
|
|
734
745
|
}
|
|
735
746
|
);
|
|
736
747
|
}, et = ({ className: t }) => {
|
|
737
|
-
const e =
|
|
738
|
-
|
|
748
|
+
const e = E(), [r, n] = z(!1), a = Ft(() => n(!1), []);
|
|
749
|
+
I(() => {
|
|
739
750
|
if (r)
|
|
740
751
|
return;
|
|
741
|
-
function
|
|
742
|
-
u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(),
|
|
752
|
+
function o(u) {
|
|
753
|
+
u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), n(!0));
|
|
743
754
|
}
|
|
744
|
-
return window.addEventListener("keydown",
|
|
745
|
-
window.removeEventListener("keydown",
|
|
755
|
+
return window.addEventListener("keydown", o), () => {
|
|
756
|
+
window.removeEventListener("keydown", o);
|
|
746
757
|
};
|
|
747
|
-
}, [r,
|
|
748
|
-
const
|
|
749
|
-
return
|
|
750
|
-
/* @__PURE__ */
|
|
758
|
+
}, [r, n]);
|
|
759
|
+
const i = e.plugins.find(ur);
|
|
760
|
+
return i ? /* @__PURE__ */ s.jsxs("div", { className: t, children: [
|
|
761
|
+
/* @__PURE__ */ s.jsxs(
|
|
751
762
|
"button",
|
|
752
763
|
{
|
|
753
764
|
type: "button",
|
|
754
|
-
onClick: () =>
|
|
765
|
+
onClick: () => n(!0),
|
|
755
766
|
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",
|
|
756
767
|
children: [
|
|
757
|
-
/* @__PURE__ */
|
|
758
|
-
/* @__PURE__ */
|
|
768
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
769
|
+
/* @__PURE__ */ s.jsx(Xt, { size: 14 }),
|
|
759
770
|
"Search"
|
|
760
771
|
] }),
|
|
761
|
-
/* @__PURE__ */
|
|
772
|
+
/* @__PURE__ */ s.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" })
|
|
762
773
|
]
|
|
763
774
|
}
|
|
764
775
|
),
|
|
765
|
-
/* @__PURE__ */
|
|
776
|
+
/* @__PURE__ */ s.jsx(fe, { fallback: null, children: i.renderSearch({
|
|
766
777
|
isOpen: r,
|
|
767
778
|
onClose: a
|
|
768
779
|
}) })
|
|
769
780
|
] }) : null;
|
|
770
781
|
}, tt = () => {
|
|
771
|
-
const { resolvedTheme: t, setTheme: e } =
|
|
772
|
-
return /* @__PURE__ */
|
|
782
|
+
const { resolvedTheme: t, setTheme: e } = He();
|
|
783
|
+
return /* @__PURE__ */ s.jsx(ge, { fallback: /* @__PURE__ */ s.jsx(ie, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ s.jsxs(
|
|
773
784
|
"button",
|
|
774
785
|
{
|
|
775
786
|
type: "button",
|
|
@@ -777,7 +788,7 @@ const qe = {
|
|
|
777
788
|
onClick: () => e(t === "dark" ? "light" : "dark"),
|
|
778
789
|
"aria-label": t === "dark" ? "Switch to light mode" : "Switch to dark mode",
|
|
779
790
|
children: [
|
|
780
|
-
/* @__PURE__ */
|
|
791
|
+
/* @__PURE__ */ s.jsx(
|
|
781
792
|
"div",
|
|
782
793
|
{
|
|
783
794
|
className: Q(
|
|
@@ -785,10 +796,10 @@ const qe = {
|
|
|
785
796
|
t === "light" && "border-border bg-muted",
|
|
786
797
|
t === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
|
|
787
798
|
),
|
|
788
|
-
children: /* @__PURE__ */
|
|
799
|
+
children: /* @__PURE__ */ s.jsx(Gt, { size: 16 })
|
|
789
800
|
}
|
|
790
801
|
),
|
|
791
|
-
/* @__PURE__ */
|
|
802
|
+
/* @__PURE__ */ s.jsx(
|
|
792
803
|
"div",
|
|
793
804
|
{
|
|
794
805
|
className: Q(
|
|
@@ -796,17 +807,17 @@ const qe = {
|
|
|
796
807
|
t === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
|
|
797
808
|
t === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
|
|
798
809
|
),
|
|
799
|
-
children: /* @__PURE__ */
|
|
810
|
+
children: /* @__PURE__ */ s.jsx(_t, { size: 16 })
|
|
800
811
|
}
|
|
801
812
|
)
|
|
802
813
|
]
|
|
803
814
|
}
|
|
804
815
|
) });
|
|
805
|
-
}, rt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always",
|
|
806
|
-
const { topNavigation: t } =
|
|
807
|
-
return t.length <= 1 ? /* @__PURE__ */
|
|
808
|
-
/* @__PURE__ */
|
|
809
|
-
/* @__PURE__ */
|
|
816
|
+
}, rt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", Xr = () => {
|
|
817
|
+
const { topNavigation: t } = E(), { isAuthenticated: e } = L();
|
|
818
|
+
return t.length <= 1 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsx(fe, { children: /* @__PURE__ */ s.jsxs("div", { className: " items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm", children: [
|
|
819
|
+
/* @__PURE__ */ s.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(rt(e)).map((r) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(st, { ...r }) }, r.id)) }) }),
|
|
820
|
+
/* @__PURE__ */ s.jsx(S, { name: "top-navigation-side" })
|
|
810
821
|
] }) });
|
|
811
822
|
}, st = ({
|
|
812
823
|
id: t,
|
|
@@ -814,49 +825,49 @@ const qe = {
|
|
|
814
825
|
default: r
|
|
815
826
|
}) => {
|
|
816
827
|
var c;
|
|
817
|
-
const { sidebars:
|
|
818
|
-
if (
|
|
828
|
+
const { sidebars: n } = E(), a = n[t], i = Ke(), o = !!ue().location, u = ((c = i.topNavItem) == null ? void 0 : c.id) === t && !o, d = r ?? (a ? Nt(a, (m) => {
|
|
829
|
+
if (m.type === "doc") return ae(m.id);
|
|
819
830
|
}) : ae(t));
|
|
820
831
|
if (!d)
|
|
821
|
-
throw new
|
|
832
|
+
throw new $e("Page not found.", {
|
|
822
833
|
developerHint: `No links found in top navigation for '${t}'. Check that the sidebar isn't empty or that a default link is set.`
|
|
823
834
|
});
|
|
824
835
|
return (
|
|
825
836
|
// We don't use isActive here because it has to be inside the sidebar,
|
|
826
837
|
// the top nav id doesn't necessarily start with the sidebar id
|
|
827
|
-
/* @__PURE__ */
|
|
828
|
-
|
|
838
|
+
/* @__PURE__ */ s.jsx(
|
|
839
|
+
xt,
|
|
829
840
|
{
|
|
830
|
-
className: ({ isPending:
|
|
841
|
+
className: ({ isPending: m }) => Nr(
|
|
831
842
|
"block lg:py-3.5 font-medium -mb-px",
|
|
832
|
-
u ||
|
|
843
|
+
u || m ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
833
844
|
),
|
|
834
845
|
to: d,
|
|
835
846
|
children: e
|
|
836
847
|
}
|
|
837
848
|
)
|
|
838
849
|
);
|
|
839
|
-
},
|
|
840
|
-
const { topNavigation: t } =
|
|
841
|
-
return /* @__PURE__ */
|
|
850
|
+
}, Gr = () => {
|
|
851
|
+
const { topNavigation: t } = E(), { isAuthenticated: e } = L(), [r, n] = z(!1);
|
|
852
|
+
return /* @__PURE__ */ s.jsxs(
|
|
842
853
|
Ve,
|
|
843
854
|
{
|
|
844
855
|
direction: "right",
|
|
845
856
|
open: r,
|
|
846
|
-
onOpenChange: (a) =>
|
|
857
|
+
onOpenChange: (a) => n(a),
|
|
847
858
|
children: [
|
|
848
|
-
/* @__PURE__ */
|
|
849
|
-
/* @__PURE__ */
|
|
859
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ s.jsx(Xe, { className: "lg:hidden", children: /* @__PURE__ */ s.jsx(Wt, { size: 22 }) }) }),
|
|
860
|
+
/* @__PURE__ */ s.jsx(
|
|
850
861
|
Ge,
|
|
851
862
|
{
|
|
852
863
|
className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
|
|
853
864
|
"aria-describedby": void 0,
|
|
854
|
-
children: /* @__PURE__ */
|
|
855
|
-
/* @__PURE__ */
|
|
856
|
-
/* @__PURE__ */
|
|
857
|
-
/* @__PURE__ */
|
|
858
|
-
/* @__PURE__ */
|
|
859
|
-
t.filter(rt(e)).map((a) => /* @__PURE__ */
|
|
865
|
+
children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
866
|
+
/* @__PURE__ */ s.jsx(Je, { children: /* @__PURE__ */ s.jsx(_e, { children: "Navigation" }) }),
|
|
867
|
+
/* @__PURE__ */ s.jsx(et, { className: "flex p-4" }),
|
|
868
|
+
/* @__PURE__ */ s.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
869
|
+
/* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(tt, {}) }),
|
|
870
|
+
t.filter(rt(e)).map((a) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ s.jsx(st, { ...a }) }) }, a.label))
|
|
860
871
|
] })
|
|
861
872
|
] })
|
|
862
873
|
}
|
|
@@ -864,93 +875,93 @@ const qe = {
|
|
|
864
875
|
]
|
|
865
876
|
}
|
|
866
877
|
);
|
|
867
|
-
}, ee = ({ item: t }) => t.children ? /* @__PURE__ */
|
|
868
|
-
/* @__PURE__ */
|
|
869
|
-
/* @__PURE__ */
|
|
878
|
+
}, ee = ({ item: t }) => t.children ? /* @__PURE__ */ s.jsxs(wr, { children: [
|
|
879
|
+
/* @__PURE__ */ s.jsx(Pr, { children: t.label }),
|
|
880
|
+
/* @__PURE__ */ s.jsx(Cr, { children: /* @__PURE__ */ s.jsx(kr, { children: t.children.map((e, r) => (
|
|
870
881
|
// eslint-disable-next-line react/no-array-index-key
|
|
871
|
-
/* @__PURE__ */
|
|
882
|
+
/* @__PURE__ */ s.jsx(ee, { item: e }, r)
|
|
872
883
|
)) }) })
|
|
873
|
-
] }, t.label) : /* @__PURE__ */
|
|
874
|
-
t.icon && /* @__PURE__ */
|
|
884
|
+
] }, t.label) : /* @__PURE__ */ s.jsx(de, { to: t.path ?? "", children: /* @__PURE__ */ s.jsxs(Sr, { className: "flex gap-2", children: [
|
|
885
|
+
t.icon && /* @__PURE__ */ s.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
875
886
|
t.label
|
|
876
|
-
] }, t.label) }), nt =
|
|
877
|
-
const e =
|
|
878
|
-
return /* @__PURE__ */
|
|
879
|
-
/* @__PURE__ */
|
|
880
|
-
/* @__PURE__ */
|
|
881
|
-
/* @__PURE__ */
|
|
882
|
-
(
|
|
883
|
-
/* @__PURE__ */
|
|
887
|
+
] }, t.label) }), nt = Ze(function() {
|
|
888
|
+
const e = L(), { isAuthenticated: r, profile: n, isAuthEnabled: a } = L(), i = E(), { page: o, plugins: u } = i, d = u.filter((c) => dr(c)).flatMap((c) => c.getProfileMenuItems(i)).sort((c) => c.weight ?? 0);
|
|
889
|
+
return /* @__PURE__ */ s.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
890
|
+
/* @__PURE__ */ s.jsx(Vr, {}),
|
|
891
|
+
/* @__PURE__ */ s.jsx("div", { className: "border-b", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl 2xl:border-x mx-auto grid grid-cols-[1fr_auto] lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center px-4 lg:px-8 h-[--top-header-height]", children: [
|
|
892
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex", children: /* @__PURE__ */ s.jsx(de, { to: "/", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
893
|
+
(o == null ? void 0 : o.logo) && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
894
|
+
/* @__PURE__ */ s.jsx(
|
|
884
895
|
"img",
|
|
885
896
|
{
|
|
886
|
-
src: /https?:\/\//.test(
|
|
897
|
+
src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : Ne(
|
|
887
898
|
"/",
|
|
888
|
-
|
|
899
|
+
o.logo.src.light
|
|
889
900
|
),
|
|
890
|
-
alt:
|
|
891
|
-
style: { width:
|
|
901
|
+
alt: o.logo.alt ?? o.pageTitle,
|
|
902
|
+
style: { width: o.logo.width },
|
|
892
903
|
className: "h-10 dark:hidden",
|
|
893
904
|
loading: "lazy"
|
|
894
905
|
}
|
|
895
906
|
),
|
|
896
|
-
/* @__PURE__ */
|
|
907
|
+
/* @__PURE__ */ s.jsx(
|
|
897
908
|
"img",
|
|
898
909
|
{
|
|
899
|
-
src: /https?:\/\//.test(
|
|
910
|
+
src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : Ne(
|
|
900
911
|
"/",
|
|
901
|
-
|
|
912
|
+
o.logo.src.dark
|
|
902
913
|
),
|
|
903
|
-
alt:
|
|
904
|
-
style: { width:
|
|
914
|
+
alt: o.logo.alt ?? o.pageTitle,
|
|
915
|
+
style: { width: o.logo.width },
|
|
905
916
|
className: "h-10 hidden dark:block",
|
|
906
917
|
loading: "lazy"
|
|
907
918
|
}
|
|
908
919
|
)
|
|
909
920
|
] }),
|
|
910
|
-
/* @__PURE__ */
|
|
921
|
+
/* @__PURE__ */ s.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
|
|
911
922
|
] }) }) }),
|
|
912
|
-
/* @__PURE__ */
|
|
913
|
-
/* @__PURE__ */
|
|
914
|
-
/* @__PURE__ */
|
|
915
|
-
/* @__PURE__ */
|
|
916
|
-
/* @__PURE__ */
|
|
917
|
-
a && /* @__PURE__ */
|
|
918
|
-
|
|
923
|
+
/* @__PURE__ */ s.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
924
|
+
/* @__PURE__ */ s.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ s.jsx(et, {}) }),
|
|
925
|
+
/* @__PURE__ */ s.jsx(Gr, {}),
|
|
926
|
+
/* @__PURE__ */ s.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
927
|
+
/* @__PURE__ */ s.jsx(S, { name: "head-navigation-start" }),
|
|
928
|
+
a && /* @__PURE__ */ s.jsx(
|
|
929
|
+
ge,
|
|
919
930
|
{
|
|
920
|
-
fallback: /* @__PURE__ */
|
|
921
|
-
children: r ? Object.values(d).length > 0 && /* @__PURE__ */
|
|
922
|
-
/* @__PURE__ */
|
|
923
|
-
/* @__PURE__ */
|
|
924
|
-
/* @__PURE__ */
|
|
925
|
-
|
|
926
|
-
(
|
|
931
|
+
fallback: /* @__PURE__ */ s.jsx(Yr, { className: "rounded h-5 w-24 mr-4" }),
|
|
932
|
+
children: r ? Object.values(d).length > 0 && /* @__PURE__ */ s.jsxs(vr, { modal: !1, children: [
|
|
933
|
+
/* @__PURE__ */ s.jsx(yr, { asChild: !0, children: /* @__PURE__ */ s.jsx(ie, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
|
|
934
|
+
/* @__PURE__ */ s.jsxs(br, { className: "w-56", children: [
|
|
935
|
+
/* @__PURE__ */ s.jsxs(jr, { children: [
|
|
936
|
+
n != null && n.name ? `${n.name}` : "My Account",
|
|
937
|
+
(n == null ? void 0 : n.email) && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
|
|
927
938
|
] }),
|
|
928
|
-
d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */
|
|
929
|
-
d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */
|
|
939
|
+
d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ s.jsx(se, {}),
|
|
940
|
+
d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ s.jsx(ee, { item: c }, c.label)),
|
|
930
941
|
d.filter(
|
|
931
942
|
(c) => !c.category || c.category === "middle"
|
|
932
|
-
).length > 0 && /* @__PURE__ */
|
|
943
|
+
).length > 0 && /* @__PURE__ */ s.jsx(se, {}),
|
|
933
944
|
d.filter(
|
|
934
945
|
(c) => !c.category || c.category === "middle"
|
|
935
|
-
).map((c) => /* @__PURE__ */
|
|
936
|
-
d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */
|
|
937
|
-
d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */
|
|
946
|
+
).map((c) => /* @__PURE__ */ s.jsx(ee, { item: c }, c.label)),
|
|
947
|
+
d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ s.jsx(se, {}),
|
|
948
|
+
d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ s.jsx(ee, { item: c }, c.label))
|
|
938
949
|
] })
|
|
939
|
-
] }) : /* @__PURE__ */
|
|
950
|
+
] }) : /* @__PURE__ */ s.jsx(ie, { variant: "ghost", onClick: () => e.login(), children: "Login" })
|
|
940
951
|
}
|
|
941
952
|
),
|
|
942
|
-
/* @__PURE__ */
|
|
943
|
-
/* @__PURE__ */
|
|
953
|
+
/* @__PURE__ */ s.jsx(S, { name: "head-navigation-end" }),
|
|
954
|
+
/* @__PURE__ */ s.jsx(tt, {})
|
|
944
955
|
] })
|
|
945
956
|
] })
|
|
946
957
|
] }) }),
|
|
947
|
-
/* @__PURE__ */
|
|
948
|
-
/* @__PURE__ */
|
|
949
|
-
/* @__PURE__ */
|
|
950
|
-
/* @__PURE__ */
|
|
958
|
+
/* @__PURE__ */ s.jsx("div", { className: "border-b hidden lg:block", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto 2xl:border-x", children: [
|
|
959
|
+
/* @__PURE__ */ s.jsx(S, { name: "top-navigation-before" }),
|
|
960
|
+
/* @__PURE__ */ s.jsx(Xr, {}),
|
|
961
|
+
/* @__PURE__ */ s.jsx(S, { name: "top-navigation-after" })
|
|
951
962
|
] }) })
|
|
952
963
|
] });
|
|
953
|
-
}), at =
|
|
964
|
+
}), at = Ht(({ children: t, className: e, pushMainContent: r }, n) => /* @__PURE__ */ s.jsx(
|
|
954
965
|
"nav",
|
|
955
966
|
{
|
|
956
967
|
"data-navigation": String(r),
|
|
@@ -961,96 +972,96 @@ const qe = {
|
|
|
961
972
|
!r && "border-r-0",
|
|
962
973
|
e
|
|
963
974
|
),
|
|
964
|
-
ref:
|
|
975
|
+
ref: n,
|
|
965
976
|
children: t
|
|
966
977
|
}
|
|
967
978
|
));
|
|
968
979
|
at.displayName = "SidebarWrapper";
|
|
969
|
-
const
|
|
980
|
+
const _r = ({
|
|
970
981
|
onRequestClose: t
|
|
971
982
|
}) => {
|
|
972
983
|
const e = V(null), r = Ke();
|
|
973
|
-
return
|
|
984
|
+
return I(() => {
|
|
974
985
|
var a;
|
|
975
|
-
const
|
|
976
|
-
|
|
977
|
-
}, []), /* @__PURE__ */
|
|
978
|
-
/* @__PURE__ */
|
|
986
|
+
const n = (a = e.current) == null ? void 0 : a.querySelector('[aria-current="page"]');
|
|
987
|
+
er(n ?? null);
|
|
988
|
+
}, []), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
989
|
+
/* @__PURE__ */ s.jsxs(
|
|
979
990
|
at,
|
|
980
991
|
{
|
|
981
992
|
ref: e,
|
|
982
993
|
pushMainContent: r.sidebar.length > 0,
|
|
983
994
|
children: [
|
|
984
|
-
/* @__PURE__ */
|
|
985
|
-
r.sidebar.map((
|
|
986
|
-
/* @__PURE__ */
|
|
995
|
+
/* @__PURE__ */ s.jsx(S, { name: "zudoku-before-navigation" }),
|
|
996
|
+
r.sidebar.map((n) => /* @__PURE__ */ s.jsx(Se, { item: n }, n.label)),
|
|
997
|
+
/* @__PURE__ */ s.jsx(S, { name: "zudoku-after-navigation" })
|
|
987
998
|
]
|
|
988
999
|
}
|
|
989
1000
|
),
|
|
990
|
-
/* @__PURE__ */
|
|
1001
|
+
/* @__PURE__ */ s.jsx(
|
|
991
1002
|
Ge,
|
|
992
1003
|
{
|
|
993
1004
|
className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
|
|
994
1005
|
"aria-describedby": void 0,
|
|
995
|
-
children: /* @__PURE__ */
|
|
996
|
-
/* @__PURE__ */
|
|
997
|
-
r.sidebar.map((
|
|
1006
|
+
children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
1007
|
+
/* @__PURE__ */ s.jsx(Je, { children: /* @__PURE__ */ s.jsx(_e, { children: "Sidebar" }) }),
|
|
1008
|
+
r.sidebar.map((n) => /* @__PURE__ */ s.jsx(
|
|
998
1009
|
Se,
|
|
999
1010
|
{
|
|
1000
|
-
item:
|
|
1011
|
+
item: n,
|
|
1001
1012
|
onRequestClose: t
|
|
1002
1013
|
},
|
|
1003
|
-
|
|
1014
|
+
n.label
|
|
1004
1015
|
))
|
|
1005
1016
|
] })
|
|
1006
1017
|
}
|
|
1007
1018
|
)
|
|
1008
1019
|
] });
|
|
1009
|
-
}, Te = () => /* @__PURE__ */
|
|
1010
|
-
const e = te(), { setActiveAnchor: r } =
|
|
1011
|
-
|
|
1012
|
-
const
|
|
1013
|
-
|
|
1014
|
-
var
|
|
1015
|
-
(
|
|
1016
|
-
}, [a]),
|
|
1017
|
-
e.pathname !==
|
|
1020
|
+
}, Te = () => /* @__PURE__ */ s.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ s.jsx(We, {}) }), Wr = ({ children: t }) => {
|
|
1021
|
+
const e = te(), { setActiveAnchor: r } = nr(), { meta: n, authentication: a } = E();
|
|
1022
|
+
tr(), Zr();
|
|
1023
|
+
const i = V(e.pathname);
|
|
1024
|
+
I(() => {
|
|
1025
|
+
var m;
|
|
1026
|
+
(m = a == null ? void 0 : a.onPageLoad) == null || m.call(a);
|
|
1027
|
+
}, [a]), I(() => {
|
|
1028
|
+
e.pathname !== i.current && r(""), i.current = e.pathname;
|
|
1018
1029
|
}, [e.pathname, r]);
|
|
1019
|
-
const
|
|
1030
|
+
const o = !!ue().location, u = Ur.useSpinDelay(o, {
|
|
1020
1031
|
delay: 300,
|
|
1021
1032
|
minDuration: 500
|
|
1022
|
-
}), [d, c] =
|
|
1023
|
-
return /* @__PURE__ */
|
|
1033
|
+
}), [d, c] = z(!1);
|
|
1034
|
+
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1024
1035
|
!1,
|
|
1025
|
-
/* @__PURE__ */
|
|
1026
|
-
(
|
|
1027
|
-
(
|
|
1036
|
+
/* @__PURE__ */ s.jsxs(le, { titleTemplate: n == null ? void 0 : n.title, children: [
|
|
1037
|
+
(n == null ? void 0 : n.description) && /* @__PURE__ */ s.jsx("meta", { name: "description", content: n.description }),
|
|
1038
|
+
(n == null ? void 0 : n.favicon) && /* @__PURE__ */ s.jsx("link", { rel: "icon", href: n.favicon })
|
|
1028
1039
|
] }),
|
|
1029
|
-
/* @__PURE__ */
|
|
1030
|
-
/* @__PURE__ */
|
|
1031
|
-
/* @__PURE__ */
|
|
1032
|
-
/* @__PURE__ */
|
|
1040
|
+
/* @__PURE__ */ s.jsx(S, { name: "layout-before-head" }),
|
|
1041
|
+
/* @__PURE__ */ s.jsx(nt, {}),
|
|
1042
|
+
/* @__PURE__ */ s.jsx(S, { name: "layout-after-head" }),
|
|
1043
|
+
/* @__PURE__ */ s.jsx("div", { className: "w-full min-h-[calc(100vh-var(--header-height))] max-w-screen-2xl mx-auto px-4 lg:px-8 2xl:border-x", children: u ? /* @__PURE__ */ s.jsx(Te, {}) : /* @__PURE__ */ s.jsx(fe, { fallback: /* @__PURE__ */ s.jsx(Te, {}), children: /* @__PURE__ */ s.jsxs(
|
|
1033
1044
|
Ve,
|
|
1034
1045
|
{
|
|
1035
1046
|
direction: "left",
|
|
1036
1047
|
open: d,
|
|
1037
|
-
onOpenChange: (
|
|
1048
|
+
onOpenChange: (m) => c(m),
|
|
1038
1049
|
children: [
|
|
1039
|
-
/* @__PURE__ */
|
|
1040
|
-
/* @__PURE__ */
|
|
1050
|
+
/* @__PURE__ */ s.jsx(_r, { onRequestClose: () => c(!1) }),
|
|
1051
|
+
/* @__PURE__ */ s.jsx(
|
|
1041
1052
|
"div",
|
|
1042
1053
|
{
|
|
1043
1054
|
className: Q(
|
|
1044
1055
|
"lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
|
|
1045
1056
|
"peer-data-[navigation=false]:hidden"
|
|
1046
1057
|
),
|
|
1047
|
-
children: /* @__PURE__ */
|
|
1048
|
-
/* @__PURE__ */
|
|
1049
|
-
/* @__PURE__ */
|
|
1058
|
+
children: /* @__PURE__ */ s.jsxs(Xe, { className: "flex items-center gap-2", children: [
|
|
1059
|
+
/* @__PURE__ */ s.jsx(Jt, { size: 16, strokeWidth: 1.5 }),
|
|
1060
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1050
1061
|
] })
|
|
1051
1062
|
}
|
|
1052
1063
|
),
|
|
1053
|
-
/* @__PURE__ */
|
|
1064
|
+
/* @__PURE__ */ s.jsxs(
|
|
1054
1065
|
"main",
|
|
1055
1066
|
{
|
|
1056
1067
|
className: Q(
|
|
@@ -1061,9 +1072,9 @@ const $r = ({
|
|
|
1061
1072
|
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
|
|
1062
1073
|
),
|
|
1063
1074
|
children: [
|
|
1064
|
-
/* @__PURE__ */
|
|
1065
|
-
t ?? /* @__PURE__ */
|
|
1066
|
-
/* @__PURE__ */
|
|
1075
|
+
/* @__PURE__ */ s.jsx(S, { name: "zudoku-before-content" }),
|
|
1076
|
+
t ?? /* @__PURE__ */ s.jsx(ce, {}),
|
|
1077
|
+
/* @__PURE__ */ s.jsx(S, { name: "zudoku-after-content" })
|
|
1067
1078
|
]
|
|
1068
1079
|
}
|
|
1069
1080
|
)
|
|
@@ -1071,15 +1082,15 @@ const $r = ({
|
|
|
1071
1082
|
}
|
|
1072
1083
|
) }) })
|
|
1073
1084
|
] });
|
|
1074
|
-
},
|
|
1085
|
+
}, Jr = ({
|
|
1075
1086
|
title: t = "An error occurred",
|
|
1076
1087
|
message: e,
|
|
1077
1088
|
category: r
|
|
1078
|
-
}) => /* @__PURE__ */
|
|
1079
|
-
r && /* @__PURE__ */
|
|
1080
|
-
t && /* @__PURE__ */
|
|
1081
|
-
/* @__PURE__ */
|
|
1082
|
-
] }),
|
|
1089
|
+
}) => /* @__PURE__ */ s.jsxs("div", { className: ir + " h-full pt-[--padding-content-top]", children: [
|
|
1090
|
+
r && /* @__PURE__ */ s.jsx(Dr, { children: r }),
|
|
1091
|
+
t && /* @__PURE__ */ s.jsx(ar, { level: 1, className: "flex gap-3.5 items-center", children: t }),
|
|
1092
|
+
/* @__PURE__ */ s.jsx("p", { children: e })
|
|
1093
|
+
] }), es = (t) => {
|
|
1083
1094
|
switch (t) {
|
|
1084
1095
|
case 400:
|
|
1085
1096
|
return {
|
|
@@ -1142,21 +1153,21 @@ const $r = ({
|
|
|
1142
1153
|
message: "Something went wrong while processing your request."
|
|
1143
1154
|
};
|
|
1144
1155
|
}
|
|
1145
|
-
},
|
|
1146
|
-
const r =
|
|
1147
|
-
return /* @__PURE__ */
|
|
1148
|
-
|
|
1156
|
+
}, ts = ({ statusCode: t, message: e }) => {
|
|
1157
|
+
const r = es(t);
|
|
1158
|
+
return /* @__PURE__ */ s.jsx(
|
|
1159
|
+
Jr,
|
|
1149
1160
|
{
|
|
1150
1161
|
title: r.title,
|
|
1151
1162
|
message: e ?? r.message,
|
|
1152
1163
|
category: t
|
|
1153
1164
|
}
|
|
1154
1165
|
);
|
|
1155
|
-
},
|
|
1166
|
+
}, rs = he(null), ne = {
|
|
1156
1167
|
didCatch: !1,
|
|
1157
1168
|
error: null
|
|
1158
1169
|
};
|
|
1159
|
-
class
|
|
1170
|
+
class ss extends Bt {
|
|
1160
1171
|
constructor(e) {
|
|
1161
1172
|
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ne;
|
|
1162
1173
|
}
|
|
@@ -1171,27 +1182,27 @@ class Gr extends qt {
|
|
|
1171
1182
|
error: e
|
|
1172
1183
|
} = this.state;
|
|
1173
1184
|
if (e !== null) {
|
|
1174
|
-
for (var r,
|
|
1175
|
-
o
|
|
1176
|
-
(r = (
|
|
1177
|
-
args:
|
|
1185
|
+
for (var r, n, a = arguments.length, i = new Array(a), o = 0; o < a; o++)
|
|
1186
|
+
i[o] = arguments[o];
|
|
1187
|
+
(r = (n = this.props).onReset) === null || r === void 0 || r.call(n, {
|
|
1188
|
+
args: i,
|
|
1178
1189
|
reason: "imperative-api"
|
|
1179
1190
|
}), this.setState(ne);
|
|
1180
1191
|
}
|
|
1181
1192
|
}
|
|
1182
1193
|
componentDidCatch(e, r) {
|
|
1183
|
-
var
|
|
1184
|
-
(
|
|
1194
|
+
var n, a;
|
|
1195
|
+
(n = (a = this.props).onError) === null || n === void 0 || n.call(a, e, r);
|
|
1185
1196
|
}
|
|
1186
1197
|
componentDidUpdate(e, r) {
|
|
1187
1198
|
const {
|
|
1188
|
-
didCatch:
|
|
1199
|
+
didCatch: n
|
|
1189
1200
|
} = this.state, {
|
|
1190
1201
|
resetKeys: a
|
|
1191
1202
|
} = this.props;
|
|
1192
|
-
if (
|
|
1193
|
-
var
|
|
1194
|
-
(
|
|
1203
|
+
if (n && r.error !== null && ns(e.resetKeys, a)) {
|
|
1204
|
+
var i, o;
|
|
1205
|
+
(i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
|
|
1195
1206
|
next: a,
|
|
1196
1207
|
prev: e.resetKeys,
|
|
1197
1208
|
reason: "keys"
|
|
@@ -1202,55 +1213,55 @@ class Gr extends qt {
|
|
|
1202
1213
|
const {
|
|
1203
1214
|
children: e,
|
|
1204
1215
|
fallbackRender: r,
|
|
1205
|
-
FallbackComponent:
|
|
1216
|
+
FallbackComponent: n,
|
|
1206
1217
|
fallback: a
|
|
1207
1218
|
} = this.props, {
|
|
1208
|
-
didCatch:
|
|
1209
|
-
error:
|
|
1219
|
+
didCatch: i,
|
|
1220
|
+
error: o
|
|
1210
1221
|
} = this.state;
|
|
1211
1222
|
let u = e;
|
|
1212
|
-
if (
|
|
1223
|
+
if (i) {
|
|
1213
1224
|
const d = {
|
|
1214
|
-
error:
|
|
1225
|
+
error: o,
|
|
1215
1226
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1216
1227
|
};
|
|
1217
1228
|
if (typeof r == "function")
|
|
1218
1229
|
u = r(d);
|
|
1219
|
-
else if (
|
|
1220
|
-
u =
|
|
1230
|
+
else if (n)
|
|
1231
|
+
u = ke(n, d);
|
|
1221
1232
|
else if (a !== void 0)
|
|
1222
1233
|
u = a;
|
|
1223
1234
|
else
|
|
1224
|
-
throw
|
|
1235
|
+
throw o;
|
|
1225
1236
|
}
|
|
1226
|
-
return
|
|
1237
|
+
return ke(rs.Provider, {
|
|
1227
1238
|
value: {
|
|
1228
|
-
didCatch:
|
|
1229
|
-
error:
|
|
1239
|
+
didCatch: i,
|
|
1240
|
+
error: o,
|
|
1230
1241
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1231
1242
|
}
|
|
1232
1243
|
}, u);
|
|
1233
1244
|
}
|
|
1234
1245
|
}
|
|
1235
|
-
function
|
|
1246
|
+
function ns() {
|
|
1236
1247
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1237
|
-
return t.length !== e.length || t.some((r,
|
|
1248
|
+
return t.length !== e.length || t.some((r, n) => !Object.is(r, e[n]));
|
|
1238
1249
|
}
|
|
1239
|
-
let
|
|
1250
|
+
let as = () => ({
|
|
1240
1251
|
emit(t, ...e) {
|
|
1241
|
-
for (let r = this.events[t] || [],
|
|
1242
|
-
r[
|
|
1252
|
+
for (let r = this.events[t] || [], n = 0, a = r.length; n < a; n++)
|
|
1253
|
+
r[n](...e);
|
|
1243
1254
|
},
|
|
1244
1255
|
events: {},
|
|
1245
1256
|
on(t, e) {
|
|
1246
1257
|
var r;
|
|
1247
1258
|
return ((r = this.events)[t] || (r[t] = [])).push(e), () => {
|
|
1248
|
-
var
|
|
1249
|
-
this.events[t] = (
|
|
1259
|
+
var n;
|
|
1260
|
+
this.events[t] = (n = this.events[t]) == null ? void 0 : n.filter((a) => e !== a);
|
|
1250
1261
|
};
|
|
1251
1262
|
}
|
|
1252
1263
|
});
|
|
1253
|
-
class
|
|
1264
|
+
class is {
|
|
1254
1265
|
constructor(e) {
|
|
1255
1266
|
j(this, "plugins");
|
|
1256
1267
|
j(this, "sidebars");
|
|
@@ -1259,36 +1270,36 @@ class Jr {
|
|
|
1259
1270
|
j(this, "page");
|
|
1260
1271
|
j(this, "authentication");
|
|
1261
1272
|
j(this, "navigationPlugins");
|
|
1262
|
-
j(this, "emitter",
|
|
1273
|
+
j(this, "emitter", as());
|
|
1263
1274
|
j(this, "initialize", async () => {
|
|
1264
1275
|
await Promise.all(
|
|
1265
|
-
this.plugins.filter(
|
|
1276
|
+
this.plugins.filter(gr).map((e) => {
|
|
1266
1277
|
var r;
|
|
1267
1278
|
return (r = e.initialize) == null ? void 0 : r.call(e, this);
|
|
1268
1279
|
})
|
|
1269
1280
|
);
|
|
1270
1281
|
});
|
|
1271
1282
|
j(this, "getApiIdentities", async () => (await Promise.all(
|
|
1272
|
-
this.plugins.filter(
|
|
1283
|
+
this.plugins.filter(mr).map((r) => r.getIdentities(this))
|
|
1273
1284
|
)).flat());
|
|
1274
1285
|
j(this, "emitEvent", (e, ...r) => this.emitter.emit(e, ...r));
|
|
1275
1286
|
j(this, "getPluginSidebar", async (e) => (await Promise.all(
|
|
1276
1287
|
this.navigationPlugins.map(
|
|
1277
|
-
(
|
|
1288
|
+
(n) => {
|
|
1278
1289
|
var a;
|
|
1279
|
-
return (a =
|
|
1290
|
+
return (a = n.getSidebar) == null ? void 0 : a.call(n, ae(e));
|
|
1280
1291
|
}
|
|
1281
1292
|
)
|
|
1282
|
-
)).flatMap((
|
|
1293
|
+
)).flatMap((n) => n ?? []));
|
|
1283
1294
|
j(this, "signRequest", async (e) => {
|
|
1284
1295
|
if (!this.authentication)
|
|
1285
1296
|
throw new Error("No authentication provider configured");
|
|
1286
1297
|
const r = await this.authentication.getAccessToken();
|
|
1287
1298
|
return e.headers.set("Authorization", `Bearer ${r}`), e;
|
|
1288
1299
|
});
|
|
1289
|
-
this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(
|
|
1290
|
-
|
|
1291
|
-
this.emitter.on(
|
|
1300
|
+
this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(hr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((r) => {
|
|
1301
|
+
fr(r) && Er(r.events).forEach(([n, a]) => {
|
|
1302
|
+
this.emitter.on(n, a);
|
|
1292
1303
|
});
|
|
1293
1304
|
});
|
|
1294
1305
|
}
|
|
@@ -1296,90 +1307,90 @@ class Jr {
|
|
|
1296
1307
|
return this.emitter.on(e, r);
|
|
1297
1308
|
}
|
|
1298
1309
|
}
|
|
1299
|
-
function
|
|
1300
|
-
return /* @__PURE__ */
|
|
1310
|
+
function os({ error: t, resetErrorBoundary: e }) {
|
|
1311
|
+
return /* @__PURE__ */ s.jsx(Ye, { error: t });
|
|
1301
1312
|
}
|
|
1302
1313
|
const J = globalThis;
|
|
1303
1314
|
(!J.requestIdleCallback || !J.cancelIdleCallback) && (J.requestIdleCallback = (t) => setTimeout(t, 1), J.cancelIdleCallback = clearTimeout);
|
|
1304
1315
|
const it = {
|
|
1305
1316
|
Header: nt
|
|
1306
|
-
},
|
|
1307
|
-
const t = te(), e =
|
|
1308
|
-
return
|
|
1317
|
+
}, ls = he(it), cs = ls.Provider, us = () => {
|
|
1318
|
+
const t = te(), e = E(), r = V(void 0);
|
|
1319
|
+
return I(() => {
|
|
1309
1320
|
e.emitEvent("location", {
|
|
1310
1321
|
from: r.current,
|
|
1311
1322
|
to: t
|
|
1312
1323
|
}), r.current = t;
|
|
1313
1324
|
}, [e, t]), null;
|
|
1314
|
-
},
|
|
1325
|
+
}, ds = ({
|
|
1315
1326
|
children: t,
|
|
1316
1327
|
context: e
|
|
1317
|
-
}) => (
|
|
1328
|
+
}) => (Dt({
|
|
1318
1329
|
queryFn: async () => (await e.initialize(), !0),
|
|
1319
1330
|
queryKey: ["zudoku-initialize"]
|
|
1320
|
-
}), /* @__PURE__ */
|
|
1331
|
+
}), /* @__PURE__ */ s.jsx(Et.Provider, { value: e, children: t })), ot = Ze(
|
|
1321
1332
|
({ children: t, ...e }) => {
|
|
1322
|
-
var
|
|
1333
|
+
var g, h;
|
|
1323
1334
|
const r = re(
|
|
1324
1335
|
() => ({ ...it, ...e.overrides }),
|
|
1325
1336
|
[e.overrides]
|
|
1326
|
-
),
|
|
1337
|
+
), n = re(() => {
|
|
1327
1338
|
var v;
|
|
1328
1339
|
return {
|
|
1329
|
-
...(e.plugins ?? []).filter(
|
|
1340
|
+
...(e.plugins ?? []).filter(pr).flatMap(
|
|
1330
1341
|
(x) => x.getMdxComponents ? [x.getMdxComponents()] : []
|
|
1331
1342
|
).reduce(
|
|
1332
|
-
(x,
|
|
1343
|
+
(x, C) => ({ ...x, ...C }),
|
|
1333
1344
|
{}
|
|
1334
1345
|
),
|
|
1335
|
-
...
|
|
1346
|
+
...or,
|
|
1336
1347
|
...(v = e.mdx) == null ? void 0 : v.components
|
|
1337
1348
|
};
|
|
1338
|
-
}, [(
|
|
1339
|
-
() =>
|
|
1340
|
-
[a,
|
|
1349
|
+
}, [(g = e.mdx) == null ? void 0 : g.components, e.plugins]), { stagger: a } = Lt(oe), [i, o] = z(!1), u = re(
|
|
1350
|
+
() => i ? { stagger: !0 } : { stagger: a },
|
|
1351
|
+
[a, i]
|
|
1341
1352
|
), d = ue();
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
}, [
|
|
1345
|
-
const [c] =
|
|
1353
|
+
I(() => {
|
|
1354
|
+
i || o(!0);
|
|
1355
|
+
}, [i, d.location]);
|
|
1356
|
+
const [c] = z(() => new is(e)), m = (h = e.plugins) == null ? void 0 : h.flatMap((f) => {
|
|
1346
1357
|
var v;
|
|
1347
|
-
return
|
|
1348
|
-
}).map((f, v) => /* @__PURE__ */
|
|
1349
|
-
return /* @__PURE__ */
|
|
1350
|
-
|
|
1351
|
-
/* @__PURE__ */
|
|
1352
|
-
/* @__PURE__ */
|
|
1353
|
-
/* @__PURE__ */
|
|
1358
|
+
return xr(f) ? ((v = f.getHead) == null ? void 0 : v.call(f)) ?? [] : [];
|
|
1359
|
+
}).map((f, v) => /* @__PURE__ */ s.jsx(le, { children: f }, v));
|
|
1360
|
+
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1361
|
+
m,
|
|
1362
|
+
/* @__PURE__ */ s.jsx(oe.Provider, { value: u, children: /* @__PURE__ */ s.jsxs(ds, { context: c, children: [
|
|
1363
|
+
/* @__PURE__ */ s.jsx(us, {}),
|
|
1364
|
+
/* @__PURE__ */ s.jsx(rr, { components: n, children: /* @__PURE__ */ s.jsx(ht, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(cs, { value: r, children: /* @__PURE__ */ s.jsx(zt, { slotlets: e.slotlets, children: /* @__PURE__ */ s.jsx(lr, { children: t ?? /* @__PURE__ */ s.jsx(ce, {}) }) }) }) }) })
|
|
1354
1365
|
] }) })
|
|
1355
1366
|
] });
|
|
1356
1367
|
}
|
|
1357
1368
|
);
|
|
1358
1369
|
ot.displayName = "ZudokoInner";
|
|
1359
|
-
const lt = (t) => /* @__PURE__ */
|
|
1370
|
+
const lt = (t) => /* @__PURE__ */ s.jsx(ss, { FallbackComponent: os, children: /* @__PURE__ */ s.jsx(ot, { ...t }) });
|
|
1360
1371
|
lt.displayName = "Zudoku";
|
|
1361
|
-
const
|
|
1372
|
+
const Hs = sr, Bs = Wr, Ls = Kt, zs = Fr, Ks = Lr, $s = zr, Us = Rr, Zs = le, Ys = E, Vs = L, Xs = Mt, Gs = Ot, _s = lt, Ws = ts, Js = Ut, en = cr, tn = We, rn = ge, sn = $t, nn = de, an = He;
|
|
1362
1373
|
export {
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1374
|
+
Ks as Bootstrap,
|
|
1375
|
+
$s as BootstrapStatic,
|
|
1376
|
+
sn as Button,
|
|
1377
|
+
Gs as CACHE_KEYS,
|
|
1378
|
+
Js as Callout,
|
|
1379
|
+
rn as ClientOnly,
|
|
1380
|
+
Zs as Head,
|
|
1381
|
+
Bs as Layout,
|
|
1382
|
+
nn as Link,
|
|
1383
|
+
en as Markdown,
|
|
1384
|
+
Us as RouteGuard,
|
|
1385
|
+
Ls as RouterError,
|
|
1386
|
+
zs as ServerError,
|
|
1387
|
+
tn as Spinner,
|
|
1388
|
+
Ws as StatusPage,
|
|
1389
|
+
_s as Zudoku,
|
|
1390
|
+
Vs as useAuth,
|
|
1391
|
+
Xs as useCache,
|
|
1392
|
+
Hs as useMDXComponents,
|
|
1393
|
+
an as useTheme,
|
|
1394
|
+
Ys as useZudoku
|
|
1384
1395
|
};
|
|
1385
1396
|
//# sourceMappingURL=zudoku.components.js.map
|