zudoku 0.37.1 → 0.38.0
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/app/main.js +2 -0
- package/dist/app/main.js.map +1 -1
- package/dist/config/validators/common.d.ts +287 -18
- package/dist/config/validators/common.js +2 -0
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +107 -7
- package/dist/lib/authentication/authentication.d.ts +1 -0
- package/dist/lib/authentication/providers/clerk.js +19 -0
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +1 -0
- package/dist/lib/authentication/providers/openid.js +5 -0
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.js +5 -0
- package/dist/lib/authentication/providers/supabase.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +0 -26
- package/dist/lib/authentication/state.js +1 -16
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/Layout.js +5 -3
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +7 -0
- package/dist/lib/core/ZudokuContext.js +8 -3
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +2 -8
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +29 -5
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +26 -0
- package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +2 -2
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +25 -0
- package/dist/lib/plugins/openapi/state.js +18 -0
- package/dist/lib/plugins/openapi/state.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +13 -4
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js +19 -12
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/get-results.d.ts +8 -1
- package/dist/lib/plugins/search-pagefind/get-results.js +9 -4
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
- package/dist/lib/util/traverse.d.ts +2 -8
- package/dist/lib/util/traverse.js.map +1 -1
- package/dist/lib/util/types.d.ts +7 -0
- package/dist/lib/util/types.js +2 -0
- package/dist/lib/util/types.js.map +1 -0
- package/dist/lib/util/useScrollToAnchor.js +18 -12
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/plugin-api.js +4 -1
- package/dist/vite/plugin-api.js.map +1 -1
- package/lib/{AuthenticationPlugin-Cij2tPWa.js → AuthenticationPlugin-Duy_R1TU.js} +3 -3
- package/lib/{AuthenticationPlugin-Cij2tPWa.js.map → AuthenticationPlugin-Duy_R1TU.js.map} +1 -1
- package/lib/{Markdown-DT5Rrq8_.js → Markdown-DIZ8nBVC.js} +742 -738
- package/lib/{Markdown-DT5Rrq8_.js.map → Markdown-DIZ8nBVC.js.map} +1 -1
- package/lib/{MdxPage-D2rD1vC4.js → MdxPage-JEdbfW-f.js} +42 -47
- package/lib/MdxPage-JEdbfW-f.js.map +1 -0
- package/lib/{OasProvider-DdEBf2qS.js → OasProvider-D1A10JeA.js} +4 -4
- package/lib/{OasProvider-DdEBf2qS.js.map → OasProvider-D1A10JeA.js.map} +1 -1
- package/lib/{OperationList-DT4-gm_S.js → OperationList-yOmYzMIp.js} +1128 -1112
- package/lib/OperationList-yOmYzMIp.js.map +1 -0
- package/lib/{Select-z1Lwl0-J.js → Select-fAYcJ0OU.js} +8 -8
- package/lib/{Select-z1Lwl0-J.js.map → Select-fAYcJ0OU.js.map} +1 -1
- package/lib/{SlotletProvider-D8OBnr77.js → SlotletProvider-BEwNY8q0.js} +4 -4
- package/lib/{SlotletProvider-D8OBnr77.js.map → SlotletProvider-BEwNY8q0.js.map} +1 -1
- package/lib/{chunk-HA7DTUK3-ZGg2W6yV.js → chunk-HA7DTUK3-C4gP41vD.js} +5 -5
- package/lib/{chunk-HA7DTUK3-ZGg2W6yV.js.map → chunk-HA7DTUK3-C4gP41vD.js.map} +1 -1
- package/lib/hook-Cge6LiTK.js +1483 -0
- package/lib/hook-Cge6LiTK.js.map +1 -0
- package/lib/{index-DdQSV2RF.js → index-B0y3fTg-.js} +261 -243
- package/lib/index-B0y3fTg-.js.map +1 -0
- package/lib/{mutation-_Z5C2wFZ.js → mutation-EChriCeF.js} +2 -2
- package/lib/{mutation-_Z5C2wFZ.js.map → mutation-EChriCeF.js.map} +1 -1
- package/lib/post-processors/traverse.js.map +1 -1
- package/lib/{useExposedProps-BslIn-FE.js → useExposedProps-B9qXJedG.js} +2 -2
- package/lib/{useExposedProps-BslIn-FE.js.map → useExposedProps-B9qXJedG.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +59 -41
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +76 -73
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +229 -215
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +23 -24
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +15 -16
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -6
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +133 -98
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +1 -1
- package/src/app/main.tsx +2 -0
- package/src/lib/authentication/authentication.ts +2 -0
- package/src/lib/authentication/providers/clerk.tsx +20 -0
- package/src/lib/authentication/providers/openid.tsx +6 -0
- package/src/lib/authentication/providers/supabase.tsx +6 -0
- package/src/lib/authentication/state.ts +1 -35
- package/src/lib/components/Layout.tsx +14 -2
- package/src/lib/core/ZudokuContext.ts +13 -6
- package/src/lib/core/plugins.ts +1 -1
- package/src/lib/plugins/markdown/MdxPage.tsx +1 -8
- package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
- package/src/lib/plugins/openapi/OperationList.tsx +1 -1
- package/src/lib/plugins/openapi/Sidecar.tsx +36 -7
- package/src/lib/plugins/openapi/interfaces.ts +29 -0
- package/src/lib/plugins/openapi/playground/Playground.tsx +1 -1
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +2 -1
- package/src/lib/plugins/openapi/state.ts +36 -0
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +26 -4
- package/src/lib/plugins/search-pagefind/ResultList.tsx +59 -47
- package/src/lib/plugins/search-pagefind/get-results.tsx +31 -10
- package/src/lib/util/traverse.ts +2 -6
- package/src/lib/util/types.ts +7 -0
- package/src/lib/util/useScrollToAnchor.ts +20 -12
- package/lib/MdxPage-D2rD1vC4.js.map +0 -1
- package/lib/OperationList-DT4-gm_S.js.map +0 -1
- package/lib/hook-DzQC8PzJ.js +0 -355
- package/lib/hook-DzQC8PzJ.js.map +0 -1
- package/lib/index-DdQSV2RF.js.map +0 -1
- package/lib/joinUrl-BjDooT-T.js +0 -1154
- package/lib/joinUrl-BjDooT-T.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -5,7 +5,7 @@ var ye = (t) => {
|
|
|
5
5
|
var dt = (t, e, s) => e in t ? ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
6
6
|
var j = (t, e, s) => dt(t, typeof e != "symbol" ? e + "" : e, s), ve = (t, e, s) => e.has(t) || ye("Cannot " + s);
|
|
7
7
|
var l = (t, e, s) => (ve(t, e, "read from private field"), s ? s.call(t) : e.get(t)), w = (t, e, s) => e.has(t) ? ye("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), v = (t, e, s, n) => (ve(t, e, "write to private field"), n ? n.call(t, s) : e.set(t, s), s);
|
|
8
|
-
var
|
|
8
|
+
var J = (t, e, s, n) => ({
|
|
9
9
|
set _(a) {
|
|
10
10
|
v(t, e, a, s);
|
|
11
11
|
},
|
|
@@ -15,32 +15,31 @@ var W = (t, e, s, n) => ({
|
|
|
15
15
|
});
|
|
16
16
|
import { a as Fe, H as le, M as ht, u as ft } from "./index.esm-CltAN0Tf.js";
|
|
17
17
|
import { z as ze, J as mt } from "./index-DwT-v3zK.js";
|
|
18
|
-
import { a as gt, u as
|
|
19
|
-
import {
|
|
18
|
+
import { a as gt, u as _, m as pt, O as ce, R as xt, S as yt, f as ue, g as vt, L as de } from "./chunk-HA7DTUK3-C4gP41vD.js";
|
|
19
|
+
import { S as He, p as Be, Q as bt, n as P, q as be, r as je, t as A, v as jt, w as wt, x as Pt, y as Ct, z as we, A as Pe, B as Nt, h as Ce, C as Ne, D as Dt, g as Le, l as U, a as O, m as kt, E as Ke, F as $e, G as St, d as H, u as Et, j as Ot, b as Mt, Z as qt, H as At, I as Tt } from "./hook-Cge6LiTK.js";
|
|
20
20
|
import { j as r } from "./jsx-runtime-CYK1ROHF.js";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { M as Zt } from "./mutation-_Z5C2wFZ.js";
|
|
21
|
+
import { D as It, a as Qt, c as Rt, b as Ft, d as zt } from "./Dialog-sbgekbjb.js";
|
|
22
|
+
import { Z as Ht } from "./invariant-Caa8-XvF.js";
|
|
23
|
+
import { u as Bt, o as Lt } from "./objectEntries-BS7aAgOm.js";
|
|
24
|
+
import { E as Ue, S as D, a as Kt, R as $t } from "./SlotletProvider-BEwNY8q0.js";
|
|
25
|
+
import { Button as Ut } from "./ui/Button.js";
|
|
26
|
+
import { Callout as Zt } from "./ui/Callout.js";
|
|
27
|
+
import { M as Yt } from "./mutation-EChriCeF.js";
|
|
29
28
|
import * as I from "react";
|
|
30
|
-
import
|
|
31
|
-
import * as
|
|
29
|
+
import Xt, { createContext as he, StrictMode as Ze, useRef as fe, useEffect as Y, useState as Z, useCallback as Gt, Suspense as me, memo as Ye, Component as Vt, createElement as De, useMemo as re, useContext as _t } from "react";
|
|
30
|
+
import * as Wt from "react-dom";
|
|
32
31
|
import { C as ge } from "./ClientOnly-E7hGysn1.js";
|
|
33
|
-
import { s as
|
|
32
|
+
import { s as Jt, S as ke, a as es, H as ts, P as ss, b as rs, V as ns, M as as } from "./Markdown-DIZ8nBVC.js";
|
|
34
33
|
import { B as ie } from "./Button-Fp19CMUr.js";
|
|
35
34
|
import { c as E } from "./cn-qaFjX9_3.js";
|
|
36
|
-
import { isSearchPlugin as
|
|
37
|
-
import { DropdownMenu as
|
|
38
|
-
import { CircleXIcon as
|
|
35
|
+
import { isSearchPlugin as is, isProfileMenuPlugin as os, isNavigationPlugin as ls, isEventConsumerPlugin as cs, needsInitialization as us, isApiIdentityPlugin as ds, isMdxProviderPlugin as hs, hasHead as fs } from "./zudoku.plugins.js";
|
|
36
|
+
import { DropdownMenu as ms, DropdownMenuTrigger as gs, DropdownMenuContent as ps, DropdownMenuLabel as xs, DropdownMenuSeparator as ne, DropdownMenuSub as ys, DropdownMenuSubTrigger as vs, DropdownMenuPortal as bs, DropdownMenuSubContent as js, DropdownMenuItem as ws } from "./ui/DropdownMenu.js";
|
|
37
|
+
import { CircleXIcon as Ps, SearchIcon as Cs, SunIcon as Ns, MoonIcon as Ds, MenuIcon as ks, PanelLeftIcon as Ss } from "lucide-react";
|
|
39
38
|
import { VisuallyHidden as Xe } from "@radix-ui/react-visually-hidden";
|
|
40
|
-
import { D as
|
|
41
|
-
import { a as
|
|
42
|
-
import { S as
|
|
43
|
-
import { C as
|
|
39
|
+
import { D as Es, a as Os, b as Ge, c as Ve, d as M } from "./Drawer-kDAfOq_2.js";
|
|
40
|
+
import { a as Ms } from "./index-CPNSgwSb.js";
|
|
41
|
+
import { S as _e } from "./Spinner-CE68iCm0.js";
|
|
42
|
+
import { C as qs } from "./CategoryHeading-DpB47wvk.js";
|
|
44
43
|
var S, Ie, As = (Ie = class extends He {
|
|
45
44
|
constructor(e = {}) {
|
|
46
45
|
super();
|
|
@@ -48,9 +47,9 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
48
47
|
this.config = e, v(this, S, /* @__PURE__ */ new Map());
|
|
49
48
|
}
|
|
50
49
|
build(e, s, n) {
|
|
51
|
-
const a = s.queryKey, o = s.queryHash ??
|
|
50
|
+
const a = s.queryKey, o = s.queryHash ?? Be(a, s);
|
|
52
51
|
let i = this.get(o);
|
|
53
|
-
return i || (i = new
|
|
52
|
+
return i || (i = new bt({
|
|
54
53
|
client: e,
|
|
55
54
|
queryKey: a,
|
|
56
55
|
queryHash: o,
|
|
@@ -113,26 +112,26 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
113
112
|
});
|
|
114
113
|
});
|
|
115
114
|
}
|
|
116
|
-
}, S = new WeakMap(), Ie),
|
|
115
|
+
}, S = new WeakMap(), Ie), T, N, V, Qe, Ts = (Qe = class extends He {
|
|
117
116
|
constructor(e = {}) {
|
|
118
117
|
super();
|
|
119
|
-
w(this,
|
|
118
|
+
w(this, T);
|
|
120
119
|
w(this, N);
|
|
121
|
-
w(this,
|
|
122
|
-
this.config = e, v(this,
|
|
120
|
+
w(this, V);
|
|
121
|
+
this.config = e, v(this, T, /* @__PURE__ */ new Set()), v(this, N, /* @__PURE__ */ new Map()), v(this, V, 0);
|
|
123
122
|
}
|
|
124
123
|
build(e, s, n) {
|
|
125
|
-
const a = new
|
|
124
|
+
const a = new Yt({
|
|
126
125
|
mutationCache: this,
|
|
127
|
-
mutationId: ++
|
|
126
|
+
mutationId: ++J(this, V)._,
|
|
128
127
|
options: e.defaultMutationOptions(s),
|
|
129
128
|
state: n
|
|
130
129
|
});
|
|
131
130
|
return this.add(a), a;
|
|
132
131
|
}
|
|
133
132
|
add(e) {
|
|
134
|
-
l(this,
|
|
135
|
-
const s =
|
|
133
|
+
l(this, T).add(e);
|
|
134
|
+
const s = ee(e);
|
|
136
135
|
if (typeof s == "string") {
|
|
137
136
|
const n = l(this, N).get(s);
|
|
138
137
|
n ? n.push(e) : l(this, N).set(s, [e]);
|
|
@@ -140,8 +139,8 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
140
139
|
this.notify({ type: "added", mutation: e });
|
|
141
140
|
}
|
|
142
141
|
remove(e) {
|
|
143
|
-
if (l(this,
|
|
144
|
-
const s =
|
|
142
|
+
if (l(this, T).delete(e)) {
|
|
143
|
+
const s = ee(e);
|
|
145
144
|
if (typeof s == "string") {
|
|
146
145
|
const n = l(this, N).get(s);
|
|
147
146
|
if (n)
|
|
@@ -154,7 +153,7 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
154
153
|
this.notify({ type: "removed", mutation: e });
|
|
155
154
|
}
|
|
156
155
|
canRun(e) {
|
|
157
|
-
const s =
|
|
156
|
+
const s = ee(e);
|
|
158
157
|
if (typeof s == "string") {
|
|
159
158
|
const n = l(this, N).get(s), a = n == null ? void 0 : n.find(
|
|
160
159
|
(o) => o.state.status === "pending"
|
|
@@ -165,7 +164,7 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
165
164
|
}
|
|
166
165
|
runNext(e) {
|
|
167
166
|
var n;
|
|
168
|
-
const s =
|
|
167
|
+
const s = ee(e);
|
|
169
168
|
if (typeof s == "string") {
|
|
170
169
|
const a = (n = l(this, N).get(s)) == null ? void 0 : n.find((o) => o !== e && o.state.isPaused);
|
|
171
170
|
return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
|
|
@@ -174,13 +173,13 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
174
173
|
}
|
|
175
174
|
clear() {
|
|
176
175
|
P.batch(() => {
|
|
177
|
-
l(this,
|
|
176
|
+
l(this, T).forEach((e) => {
|
|
178
177
|
this.notify({ type: "removed", mutation: e });
|
|
179
|
-
}), l(this,
|
|
178
|
+
}), l(this, T).clear(), l(this, N).clear();
|
|
180
179
|
});
|
|
181
180
|
}
|
|
182
181
|
getAll() {
|
|
183
|
-
return Array.from(l(this,
|
|
182
|
+
return Array.from(l(this, T));
|
|
184
183
|
}
|
|
185
184
|
find(e) {
|
|
186
185
|
const s = { exact: !0, ...e };
|
|
@@ -202,12 +201,12 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
202
201
|
const e = this.getAll().filter((s) => s.state.isPaused);
|
|
203
202
|
return P.batch(
|
|
204
203
|
() => Promise.all(
|
|
205
|
-
e.map((s) => s.continue().catch(
|
|
204
|
+
e.map((s) => s.continue().catch(A))
|
|
206
205
|
)
|
|
207
206
|
);
|
|
208
207
|
}
|
|
209
|
-
},
|
|
210
|
-
function
|
|
208
|
+
}, T = new WeakMap(), N = new WeakMap(), V = new WeakMap(), Qe);
|
|
209
|
+
function ee(t) {
|
|
211
210
|
var e;
|
|
212
211
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
213
212
|
}
|
|
@@ -226,33 +225,33 @@ function Se(t) {
|
|
|
226
225
|
m = !0;
|
|
227
226
|
}), e.signal)
|
|
228
227
|
});
|
|
229
|
-
},
|
|
228
|
+
}, q = jt(e.options, e.fetchOptions), z = async (b, k, X) => {
|
|
230
229
|
if (m)
|
|
231
230
|
return Promise.reject();
|
|
232
231
|
if (k == null && b.pages.length)
|
|
233
232
|
return Promise.resolve(b);
|
|
234
|
-
const
|
|
233
|
+
const W = {
|
|
235
234
|
client: e.client,
|
|
236
235
|
queryKey: e.queryKey,
|
|
237
236
|
pageParam: k,
|
|
238
|
-
direction:
|
|
237
|
+
direction: X ? "backward" : "forward",
|
|
239
238
|
meta: e.options.meta
|
|
240
239
|
};
|
|
241
|
-
y(
|
|
242
|
-
const ct = await
|
|
243
|
-
|
|
244
|
-
), { maxPages: pe } = e.options, xe =
|
|
240
|
+
y(W);
|
|
241
|
+
const ct = await q(
|
|
242
|
+
W
|
|
243
|
+
), { maxPages: pe } = e.options, xe = X ? wt : Pt;
|
|
245
244
|
return {
|
|
246
245
|
pages: xe(b.pages, ct, pe),
|
|
247
246
|
pageParams: xe(b.pageParams, k, pe)
|
|
248
247
|
};
|
|
249
248
|
};
|
|
250
249
|
if (a && o.length) {
|
|
251
|
-
const b = a === "backward", k = b ?
|
|
250
|
+
const b = a === "backward", k = b ? Is : Ee, X = {
|
|
252
251
|
pages: o,
|
|
253
252
|
pageParams: i
|
|
254
|
-
},
|
|
255
|
-
u = await z(
|
|
253
|
+
}, W = k(n, X);
|
|
254
|
+
u = await z(X, W, b);
|
|
256
255
|
} else {
|
|
257
256
|
const b = t ?? o.length;
|
|
258
257
|
do {
|
|
@@ -290,32 +289,32 @@ function Ee(t, { pages: e, pageParams: s }) {
|
|
|
290
289
|
s
|
|
291
290
|
) : void 0;
|
|
292
291
|
}
|
|
293
|
-
function
|
|
292
|
+
function Is(t, { pages: e, pageParams: s }) {
|
|
294
293
|
var n;
|
|
295
294
|
return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, s[0], s) : void 0;
|
|
296
295
|
}
|
|
297
|
-
var g, Q, R, B,
|
|
296
|
+
var g, Q, R, B, L, F, K, $, Re, Qs = (Re = class {
|
|
298
297
|
constructor(t = {}) {
|
|
299
298
|
w(this, g);
|
|
300
299
|
w(this, Q);
|
|
301
300
|
w(this, R);
|
|
302
301
|
w(this, B);
|
|
303
|
-
w(this, H);
|
|
304
|
-
w(this, F);
|
|
305
302
|
w(this, L);
|
|
303
|
+
w(this, F);
|
|
306
304
|
w(this, K);
|
|
307
|
-
|
|
305
|
+
w(this, $);
|
|
306
|
+
v(this, g, t.queryCache || new As()), v(this, Q, t.mutationCache || new Ts()), v(this, R, t.defaultOptions || {}), v(this, B, /* @__PURE__ */ new Map()), v(this, L, /* @__PURE__ */ new Map()), v(this, F, 0);
|
|
308
307
|
}
|
|
309
308
|
mount() {
|
|
310
|
-
|
|
309
|
+
J(this, F)._++, l(this, F) === 1 && (v(this, K, Ct.subscribe(async (t) => {
|
|
311
310
|
t && (await this.resumePausedMutations(), l(this, g).onFocus());
|
|
312
|
-
})), v(this,
|
|
311
|
+
})), v(this, $, we.subscribe(async (t) => {
|
|
313
312
|
t && (await this.resumePausedMutations(), l(this, g).onOnline());
|
|
314
313
|
})));
|
|
315
314
|
}
|
|
316
315
|
unmount() {
|
|
317
316
|
var t, e;
|
|
318
|
-
|
|
317
|
+
J(this, F)._--, l(this, F) === 0 && ((t = l(this, K)) == null || t.call(this), v(this, K, void 0), (e = l(this, $)) == null || e.call(this), v(this, $, void 0));
|
|
319
318
|
}
|
|
320
319
|
isFetching(t) {
|
|
321
320
|
return l(this, g).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
@@ -341,7 +340,7 @@ var g, Q, R, B, H, F, L, K, Re, Is = (Re = class {
|
|
|
341
340
|
setQueryData(t, e, s) {
|
|
342
341
|
const n = this.defaultQueryOptions({ queryKey: t }), a = l(this, g).get(
|
|
343
342
|
n.queryHash
|
|
344
|
-
), o = a == null ? void 0 : a.state.data, i =
|
|
343
|
+
), o = a == null ? void 0 : a.state.data, i = Nt(e, o);
|
|
345
344
|
if (i !== void 0)
|
|
346
345
|
return l(this, g).build(this, n).setData(i, { ...s, manual: !0 });
|
|
347
346
|
}
|
|
@@ -381,7 +380,7 @@ var g, Q, R, B, H, F, L, K, Re, Is = (Re = class {
|
|
|
381
380
|
const s = { revert: !0, ...e }, n = P.batch(
|
|
382
381
|
() => l(this, g).findAll(t).map((a) => a.cancel(s))
|
|
383
382
|
);
|
|
384
|
-
return Promise.all(n).then(
|
|
383
|
+
return Promise.all(n).then(A).catch(A);
|
|
385
384
|
}
|
|
386
385
|
invalidateQueries(t, e = {}) {
|
|
387
386
|
return P.batch(() => {
|
|
@@ -403,10 +402,10 @@ var g, Q, R, B, H, F, L, K, Re, Is = (Re = class {
|
|
|
403
402
|
}, n = P.batch(
|
|
404
403
|
() => l(this, g).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
|
|
405
404
|
let o = a.fetch(void 0, s);
|
|
406
|
-
return s.throwOnError || (o = o.catch(
|
|
405
|
+
return s.throwOnError || (o = o.catch(A)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
407
406
|
})
|
|
408
407
|
);
|
|
409
|
-
return Promise.all(n).then(
|
|
408
|
+
return Promise.all(n).then(A);
|
|
410
409
|
}
|
|
411
410
|
fetchQuery(t) {
|
|
412
411
|
const e = this.defaultQueryOptions(t);
|
|
@@ -417,13 +416,13 @@ var g, Q, R, B, H, F, L, K, Re, Is = (Re = class {
|
|
|
417
416
|
) ? s.fetch(e) : Promise.resolve(s.state.data);
|
|
418
417
|
}
|
|
419
418
|
prefetchQuery(t) {
|
|
420
|
-
return this.fetchQuery(t).then(
|
|
419
|
+
return this.fetchQuery(t).then(A).catch(A);
|
|
421
420
|
}
|
|
422
421
|
fetchInfiniteQuery(t) {
|
|
423
422
|
return t.behavior = Se(t.pages), this.fetchQuery(t);
|
|
424
423
|
}
|
|
425
424
|
prefetchInfiniteQuery(t) {
|
|
426
|
-
return this.fetchInfiniteQuery(t).then(
|
|
425
|
+
return this.fetchInfiniteQuery(t).then(A).catch(A);
|
|
427
426
|
}
|
|
428
427
|
ensureInfiniteQueryData(t) {
|
|
429
428
|
return t.behavior = Se(t.pages), this.ensureQueryData(t);
|
|
@@ -456,13 +455,13 @@ var g, Q, R, B, H, F, L, K, Re, Is = (Re = class {
|
|
|
456
455
|
}), s;
|
|
457
456
|
}
|
|
458
457
|
setMutationDefaults(t, e) {
|
|
459
|
-
l(this,
|
|
458
|
+
l(this, L).set(Ce(t), {
|
|
460
459
|
mutationKey: t,
|
|
461
460
|
defaultOptions: e
|
|
462
461
|
});
|
|
463
462
|
}
|
|
464
463
|
getMutationDefaults(t) {
|
|
465
|
-
const e = [...l(this,
|
|
464
|
+
const e = [...l(this, L).values()];
|
|
466
465
|
let s = {};
|
|
467
466
|
return e.forEach((n) => {
|
|
468
467
|
Ne(t, n.mutationKey) && (s = { ...s, ...n.defaultOptions });
|
|
@@ -477,10 +476,10 @@ var g, Q, R, B, H, F, L, K, Re, Is = (Re = class {
|
|
|
477
476
|
...t,
|
|
478
477
|
_defaulted: !0
|
|
479
478
|
};
|
|
480
|
-
return e.queryHash || (e.queryHash =
|
|
479
|
+
return e.queryHash || (e.queryHash = Be(
|
|
481
480
|
e.queryKey,
|
|
482
481
|
e
|
|
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 ===
|
|
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 === Dt && (e.enabled = !1), e;
|
|
484
483
|
}
|
|
485
484
|
defaultMutationOptions(t) {
|
|
486
485
|
return t != null && t._defaulted ? t : {
|
|
@@ -493,15 +492,15 @@ var g, Q, R, B, H, F, L, K, Re, Is = (Re = class {
|
|
|
493
492
|
clear() {
|
|
494
493
|
l(this, g).clear(), l(this, Q).clear();
|
|
495
494
|
}
|
|
496
|
-
}, g = new WeakMap(), Q = new WeakMap(), R = new WeakMap(), B = new WeakMap(),
|
|
497
|
-
function
|
|
495
|
+
}, g = new WeakMap(), Q = new WeakMap(), R = new WeakMap(), B = new WeakMap(), L = new WeakMap(), F = new WeakMap(), K = new WeakMap(), $ = new WeakMap(), Re);
|
|
496
|
+
function Rs(t) {
|
|
498
497
|
return t;
|
|
499
498
|
}
|
|
500
499
|
function Oe(t, e, s) {
|
|
501
500
|
var d, c;
|
|
502
501
|
if (typeof e != "object" || e === null)
|
|
503
502
|
return;
|
|
504
|
-
const n = t.getMutationCache(), a = t.getQueryCache(), o = ((d = s == null ? void 0 : s.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ??
|
|
503
|
+
const n = t.getMutationCache(), a = t.getQueryCache(), o = ((d = s == null ? void 0 : s.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Rs, i = e.mutations || [], u = e.queries || [];
|
|
505
504
|
i.forEach(({ state: x, ...f }) => {
|
|
506
505
|
var h, p;
|
|
507
506
|
n.build(
|
|
@@ -514,7 +513,7 @@ function Oe(t, e, s) {
|
|
|
514
513
|
x
|
|
515
514
|
);
|
|
516
515
|
}), u.forEach(({ queryKey: x, state: f, queryHash: h, meta: p, promise: C }) => {
|
|
517
|
-
var
|
|
516
|
+
var q, z;
|
|
518
517
|
let m = a.get(h);
|
|
519
518
|
const y = f.data === void 0 ? f.data : o(f.data);
|
|
520
519
|
if (m) {
|
|
@@ -529,7 +528,7 @@ function Oe(t, e, s) {
|
|
|
529
528
|
m = a.build(
|
|
530
529
|
t,
|
|
531
530
|
{
|
|
532
|
-
...(
|
|
531
|
+
...(q = t.getDefaultOptions().hydrate) == null ? void 0 : q.queries,
|
|
533
532
|
...(z = s == null ? void 0 : s.defaultOptions) == null ? void 0 : z.queries,
|
|
534
533
|
queryKey: x,
|
|
535
534
|
queryHash: h,
|
|
@@ -549,13 +548,13 @@ function Oe(t, e, s) {
|
|
|
549
548
|
}
|
|
550
549
|
});
|
|
551
550
|
}
|
|
552
|
-
var Me = (t, e) => typeof t == "object" && t !== null && e in t,
|
|
551
|
+
var Me = (t, e) => typeof t == "object" && t !== null && e in t, Fs = ({
|
|
553
552
|
children: t,
|
|
554
553
|
options: e = {},
|
|
555
554
|
state: s,
|
|
556
555
|
queryClient: n
|
|
557
556
|
}) => {
|
|
558
|
-
const a =
|
|
557
|
+
const a = Le(n), [o, i] = I.useState(), u = I.useRef(e);
|
|
559
558
|
return u.current = e, I.useMemo(() => {
|
|
560
559
|
if (s) {
|
|
561
560
|
if (typeof s != "object")
|
|
@@ -581,11 +580,11 @@ var Me = (t, e) => typeof t == "object" && t !== null && e in t, Rs = ({
|
|
|
581
580
|
o && (Oe(a, { queries: o }, u.current), i(void 0));
|
|
582
581
|
}, [a, o]), t;
|
|
583
582
|
};
|
|
584
|
-
const
|
|
585
|
-
const t =
|
|
583
|
+
const zs = () => {
|
|
584
|
+
const t = U(), e = O(), s = gt(), n = _(), a = Bt(n.pathname), { protectedRoutes: o = [] } = e.options, i = o.some(
|
|
586
585
|
(u) => pt({ path: u, end: !0 }, n.pathname)
|
|
587
586
|
);
|
|
588
|
-
if (
|
|
587
|
+
if (kt({
|
|
589
588
|
queryKey: ["login-redirect"],
|
|
590
589
|
queryFn: async () => {
|
|
591
590
|
var u;
|
|
@@ -596,26 +595,26 @@ const Fs = () => {
|
|
|
596
595
|
enabled: typeof window < "u" && i && !t.isPending && !t.isAuthenticated
|
|
597
596
|
}), i && !t.isAuthenticated)
|
|
598
597
|
return /* @__PURE__ */ r.jsx(
|
|
599
|
-
|
|
598
|
+
It,
|
|
600
599
|
{
|
|
601
600
|
open: !0,
|
|
602
601
|
onOpenChange: (u) => {
|
|
603
602
|
u || s(-1);
|
|
604
603
|
},
|
|
605
|
-
children: /* @__PURE__ */ r.jsxs(
|
|
606
|
-
/* @__PURE__ */ r.jsx(
|
|
607
|
-
/* @__PURE__ */ r.jsx(
|
|
604
|
+
children: /* @__PURE__ */ r.jsxs(Qt, { children: [
|
|
605
|
+
/* @__PURE__ */ r.jsx(Rt, { children: /* @__PURE__ */ r.jsx(Ft, { children: "Logging you in..." }) }),
|
|
606
|
+
/* @__PURE__ */ r.jsx(zt, { children: "Please wait while we log you in." })
|
|
608
607
|
] })
|
|
609
608
|
}
|
|
610
609
|
);
|
|
611
610
|
if (i && !t.isAuthEnabled)
|
|
612
|
-
throw new
|
|
611
|
+
throw new Ht("Authentication is not enabled", {
|
|
613
612
|
title: "Authentication is not enabled",
|
|
614
613
|
developerHint: "To use protectedRoutes you need authentication to be enabled"
|
|
615
614
|
});
|
|
616
615
|
return /* @__PURE__ */ r.jsx(ce, {});
|
|
617
616
|
};
|
|
618
|
-
function
|
|
617
|
+
function Hs({ error: t }) {
|
|
619
618
|
return /* @__PURE__ */ r.jsx(Ue, { error: t });
|
|
620
619
|
}
|
|
621
620
|
/**
|
|
@@ -629,29 +628,29 @@ function zs({ error: t }) {
|
|
|
629
628
|
* @license MIT
|
|
630
629
|
*/
|
|
631
630
|
function Bs(t) {
|
|
632
|
-
return /* @__PURE__ */ I.createElement(xt, { flushSync:
|
|
631
|
+
return /* @__PURE__ */ I.createElement(xt, { flushSync: Wt.flushSync, ...t });
|
|
633
632
|
}
|
|
634
|
-
const oe = he({ stagger: !1 }),
|
|
633
|
+
const oe = he({ stagger: !1 }), Ls = new Qs({
|
|
635
634
|
defaultOptions: {
|
|
636
635
|
queries: {
|
|
637
636
|
staleTime: 1e3 * 60 * 5
|
|
638
637
|
}
|
|
639
638
|
}
|
|
640
|
-
}),
|
|
639
|
+
}), Ks = ({
|
|
641
640
|
router: t,
|
|
642
641
|
hydrate: e = !1
|
|
643
|
-
}) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx(
|
|
642
|
+
}) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx(Ke, { client: Ls, children: /* @__PURE__ */ r.jsx(Fs, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ r.jsx(Fe, { children: /* @__PURE__ */ r.jsx(oe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ r.jsx(Bs, { router: t }) }) }) }) }) }), $s = ({
|
|
644
643
|
router: t,
|
|
645
644
|
context: e,
|
|
646
645
|
queryClient: s,
|
|
647
646
|
helmetContext: n
|
|
648
|
-
}) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx(
|
|
649
|
-
var
|
|
650
|
-
function
|
|
651
|
-
return
|
|
647
|
+
}) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx(Ke, { client: s, children: /* @__PURE__ */ r.jsx(Fe, { context: n, children: /* @__PURE__ */ r.jsx(yt, { router: t, context: e }) }) }) });
|
|
648
|
+
var G = { exports: {} }, Us = G.exports, qe;
|
|
649
|
+
function Zs() {
|
|
650
|
+
return qe || (qe = 1, function(t, e) {
|
|
652
651
|
(function(s, n) {
|
|
653
|
-
n(e,
|
|
654
|
-
})(
|
|
652
|
+
n(e, Xt);
|
|
653
|
+
})(Us, function(s, n) {
|
|
655
654
|
const a = {
|
|
656
655
|
delay: 500,
|
|
657
656
|
minDuration: 200,
|
|
@@ -683,17 +682,17 @@ function Us() {
|
|
|
683
682
|
}
|
|
684
683
|
s.defaultOptions = a, s.useSpinDelay = i;
|
|
685
684
|
});
|
|
686
|
-
}(
|
|
685
|
+
}(G, G.exports)), G.exports;
|
|
687
686
|
}
|
|
688
|
-
var
|
|
689
|
-
const
|
|
690
|
-
const t =
|
|
691
|
-
|
|
687
|
+
var Ys = Zs();
|
|
688
|
+
const Xs = () => {
|
|
689
|
+
const t = _(), e = fe(t.pathname);
|
|
690
|
+
Y(() => {
|
|
692
691
|
const s = e.current !== t.pathname, n = t.hash !== "";
|
|
693
692
|
s && !n && window.scrollTo(0, 0), e.current = t.pathname;
|
|
694
693
|
}, [t.pathname, t.hash]);
|
|
695
694
|
};
|
|
696
|
-
function
|
|
695
|
+
function Gs({
|
|
697
696
|
className: t,
|
|
698
697
|
...e
|
|
699
698
|
}) {
|
|
@@ -705,17 +704,17 @@ function Xs({
|
|
|
705
704
|
}
|
|
706
705
|
);
|
|
707
706
|
}
|
|
708
|
-
const
|
|
707
|
+
const Ae = {
|
|
709
708
|
info: "bg-blue-500",
|
|
710
709
|
note: "bg-gray-500",
|
|
711
710
|
tip: "bg-green-600",
|
|
712
711
|
caution: "bg-orange-500",
|
|
713
712
|
danger: "bg-rose-500"
|
|
714
713
|
}, Vs = () => {
|
|
715
|
-
const { page: t } = O(), [e, s] =
|
|
714
|
+
const { page: t } = O(), [e, s] = Z(!0);
|
|
716
715
|
if (!(t != null && t.banner) || !e)
|
|
717
716
|
return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
718
|
-
const n = t.banner.color && t.banner.color in
|
|
717
|
+
const n = t.banner.color && t.banner.color in Ae ? Ae[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
|
|
719
718
|
return /* @__PURE__ */ r.jsxs(
|
|
720
719
|
"div",
|
|
721
720
|
{
|
|
@@ -733,15 +732,15 @@ const Te = {
|
|
|
733
732
|
type: "button",
|
|
734
733
|
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
735
734
|
onClick: () => s(!1),
|
|
736
|
-
children: /* @__PURE__ */ r.jsx(
|
|
735
|
+
children: /* @__PURE__ */ r.jsx(Ps, { size: 16 })
|
|
737
736
|
}
|
|
738
737
|
)
|
|
739
738
|
]
|
|
740
739
|
}
|
|
741
740
|
);
|
|
742
741
|
}, We = ({ className: t }) => {
|
|
743
|
-
const e = O(), [s, n] =
|
|
744
|
-
|
|
742
|
+
const e = O(), [s, n] = Z(!1), a = Gt(() => n(!1), []);
|
|
743
|
+
Y(() => {
|
|
745
744
|
if (s)
|
|
746
745
|
return;
|
|
747
746
|
function i(u) {
|
|
@@ -751,7 +750,7 @@ const Te = {
|
|
|
751
750
|
window.removeEventListener("keydown", i);
|
|
752
751
|
};
|
|
753
752
|
}, [s, n]);
|
|
754
|
-
const o = e.plugins.find(
|
|
753
|
+
const o = e.plugins.find(is);
|
|
755
754
|
return o ? /* @__PURE__ */ r.jsxs("div", { className: t, children: [
|
|
756
755
|
/* @__PURE__ */ r.jsxs(
|
|
757
756
|
"button",
|
|
@@ -761,7 +760,7 @@ const Te = {
|
|
|
761
760
|
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",
|
|
762
761
|
children: [
|
|
763
762
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
764
|
-
/* @__PURE__ */ r.jsx(
|
|
763
|
+
/* @__PURE__ */ r.jsx(Cs, { size: 14 }),
|
|
765
764
|
"Search"
|
|
766
765
|
] }),
|
|
767
766
|
/* @__PURE__ */ r.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" })
|
|
@@ -791,7 +790,7 @@ const Te = {
|
|
|
791
790
|
t === "light" && "border-border bg-muted",
|
|
792
791
|
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] "
|
|
793
792
|
),
|
|
794
|
-
children: /* @__PURE__ */ r.jsx(
|
|
793
|
+
children: /* @__PURE__ */ r.jsx(Ns, { size: 16 })
|
|
795
794
|
}
|
|
796
795
|
),
|
|
797
796
|
/* @__PURE__ */ r.jsx(
|
|
@@ -802,14 +801,14 @@ const Te = {
|
|
|
802
801
|
t === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
|
|
803
802
|
t === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
|
|
804
803
|
),
|
|
805
|
-
children: /* @__PURE__ */ r.jsx(
|
|
804
|
+
children: /* @__PURE__ */ r.jsx(Ds, { size: 16 })
|
|
806
805
|
}
|
|
807
806
|
)
|
|
808
807
|
]
|
|
809
808
|
}
|
|
810
809
|
) });
|
|
811
810
|
}, et = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", _s = () => {
|
|
812
|
-
const { topNavigation: t } = O(), { isAuthenticated: e } =
|
|
811
|
+
const { topNavigation: t } = O(), { isAuthenticated: e } = U(), s = t.filter(et(e));
|
|
813
812
|
return s.length === 0 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(me, { children: /* @__PURE__ */ r.jsxs("div", { className: "items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm", children: [
|
|
814
813
|
/* @__PURE__ */ r.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: s.map((n) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(tt, { ...n }) }, n.id)) }) }),
|
|
815
814
|
/* @__PURE__ */ r.jsx(D, { name: "top-navigation-side" })
|
|
@@ -820,16 +819,16 @@ const Te = {
|
|
|
820
819
|
default: s
|
|
821
820
|
}) => {
|
|
822
821
|
var c;
|
|
823
|
-
const { sidebars: n } = O(), a = n[t], o =
|
|
824
|
-
if (x.type === "doc") return
|
|
825
|
-
}) :
|
|
822
|
+
const { sidebars: n } = O(), a = n[t], o = $e(), i = !!ue().location, u = ((c = o.topNavItem) == null ? void 0 : c.id) === t && !i, d = s ?? (a ? St(a, (x) => {
|
|
823
|
+
if (x.type === "doc") return H(x.id);
|
|
824
|
+
}) : H(t)) ?? H(t);
|
|
826
825
|
return (
|
|
827
826
|
// We don't use isActive here because it has to be inside the sidebar,
|
|
828
827
|
// the top nav id doesn't necessarily start with the sidebar id
|
|
829
828
|
/* @__PURE__ */ r.jsx(
|
|
830
829
|
vt,
|
|
831
830
|
{
|
|
832
|
-
className: ({ isPending: x }) =>
|
|
831
|
+
className: ({ isPending: x }) => Ms(
|
|
833
832
|
"block lg:py-3.5 font-medium -mb-px",
|
|
834
833
|
u || x ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
835
834
|
),
|
|
@@ -838,23 +837,23 @@ const Te = {
|
|
|
838
837
|
}
|
|
839
838
|
)
|
|
840
839
|
);
|
|
841
|
-
},
|
|
842
|
-
const { topNavigation: t } = O(), { isAuthenticated: e } =
|
|
840
|
+
}, Ws = () => {
|
|
841
|
+
const { topNavigation: t } = O(), { isAuthenticated: e } = U(), [s, n] = Z(!1);
|
|
843
842
|
return /* @__PURE__ */ r.jsxs(
|
|
844
|
-
|
|
843
|
+
Es,
|
|
845
844
|
{
|
|
846
845
|
direction: "right",
|
|
847
846
|
open: s,
|
|
848
847
|
onOpenChange: (a) => n(a),
|
|
849
848
|
children: [
|
|
850
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(
|
|
849
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(Os, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(ks, { size: 22 }) }) }),
|
|
851
850
|
/* @__PURE__ */ r.jsx(
|
|
852
|
-
|
|
851
|
+
Ge,
|
|
853
852
|
{
|
|
854
853
|
className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
|
|
855
854
|
"aria-describedby": void 0,
|
|
856
855
|
children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
857
|
-
/* @__PURE__ */ r.jsx(Xe, { children: /* @__PURE__ */ r.jsx(
|
|
856
|
+
/* @__PURE__ */ r.jsx(Xe, { children: /* @__PURE__ */ r.jsx(Ve, { children: "Navigation" }) }),
|
|
858
857
|
/* @__PURE__ */ r.jsx(We, { className: "flex p-4" }),
|
|
859
858
|
/* @__PURE__ */ r.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
860
859
|
/* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(Je, {}) }),
|
|
@@ -866,17 +865,17 @@ const Te = {
|
|
|
866
865
|
]
|
|
867
866
|
}
|
|
868
867
|
);
|
|
869
|
-
},
|
|
870
|
-
/* @__PURE__ */ r.jsx(
|
|
871
|
-
/* @__PURE__ */ r.jsx(
|
|
868
|
+
}, se = ({ item: t }) => t.children ? /* @__PURE__ */ r.jsxs(ys, { children: [
|
|
869
|
+
/* @__PURE__ */ r.jsx(vs, { children: t.label }),
|
|
870
|
+
/* @__PURE__ */ r.jsx(bs, { children: /* @__PURE__ */ r.jsx(js, { children: t.children.map((e, s) => (
|
|
872
871
|
// eslint-disable-next-line react/no-array-index-key
|
|
873
|
-
/* @__PURE__ */ r.jsx(
|
|
872
|
+
/* @__PURE__ */ r.jsx(se, { item: e }, s)
|
|
874
873
|
)) }) })
|
|
875
|
-
] }, t.label) : /* @__PURE__ */ r.jsx(de, { to: t.path ?? "", children: /* @__PURE__ */ r.jsxs(
|
|
874
|
+
] }, t.label) : /* @__PURE__ */ r.jsx(de, { to: t.path ?? "", children: /* @__PURE__ */ r.jsxs(ws, { className: "flex gap-2", children: [
|
|
876
875
|
t.icon && /* @__PURE__ */ r.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
877
876
|
t.label
|
|
878
877
|
] }, t.label) }), st = Ye(function() {
|
|
879
|
-
const e =
|
|
878
|
+
const e = U(), { isAuthenticated: s, profile: n, isAuthEnabled: a } = U(), o = O(), { page: i, plugins: u } = o, d = u.filter((c) => os(c)).flatMap((c) => c.getProfileMenuItems(o)).sort((c) => c.weight ?? 0);
|
|
880
879
|
return /* @__PURE__ */ r.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
881
880
|
/* @__PURE__ */ r.jsx(Vs, {}),
|
|
882
881
|
/* @__PURE__ */ r.jsx("div", { className: "border-b", children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl 2xl:border-x mx-auto flex relative items-center justify-between px-4 lg:px-8 h-[--top-header-height]", children: [
|
|
@@ -885,7 +884,7 @@ const Te = {
|
|
|
885
884
|
/* @__PURE__ */ r.jsx(
|
|
886
885
|
"img",
|
|
887
886
|
{
|
|
888
|
-
src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light :
|
|
887
|
+
src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : H(
|
|
889
888
|
"/",
|
|
890
889
|
i.logo.src.light
|
|
891
890
|
),
|
|
@@ -898,7 +897,7 @@ const Te = {
|
|
|
898
897
|
/* @__PURE__ */ r.jsx(
|
|
899
898
|
"img",
|
|
900
899
|
{
|
|
901
|
-
src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark :
|
|
900
|
+
src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : H(
|
|
902
901
|
"/",
|
|
903
902
|
i.logo.src.dark
|
|
904
903
|
),
|
|
@@ -913,30 +912,30 @@ const Te = {
|
|
|
913
912
|
] }) }) }),
|
|
914
913
|
/* @__PURE__ */ r.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ r.jsx(We, { className: "pointer-events-auto" }) }),
|
|
915
914
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-8", children: [
|
|
916
|
-
/* @__PURE__ */ r.jsx(
|
|
915
|
+
/* @__PURE__ */ r.jsx(Ws, {}),
|
|
917
916
|
/* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
918
917
|
/* @__PURE__ */ r.jsx(D, { name: "head-navigation-start" }),
|
|
919
918
|
a && /* @__PURE__ */ r.jsx(
|
|
920
919
|
ge,
|
|
921
920
|
{
|
|
922
|
-
fallback: /* @__PURE__ */ r.jsx(
|
|
923
|
-
children: s ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(
|
|
924
|
-
/* @__PURE__ */ r.jsx(
|
|
925
|
-
/* @__PURE__ */ r.jsxs(
|
|
926
|
-
/* @__PURE__ */ r.jsxs(
|
|
921
|
+
fallback: /* @__PURE__ */ r.jsx(Gs, { className: "rounded h-5 w-24 mr-4" }),
|
|
922
|
+
children: s ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(ms, { modal: !1, children: [
|
|
923
|
+
/* @__PURE__ */ r.jsx(gs, { asChild: !0, children: /* @__PURE__ */ r.jsx(ie, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
|
|
924
|
+
/* @__PURE__ */ r.jsxs(ps, { className: "w-56", children: [
|
|
925
|
+
/* @__PURE__ */ r.jsxs(xs, { children: [
|
|
927
926
|
n != null && n.name ? `${n.name}` : "My Account",
|
|
928
927
|
(n == null ? void 0 : n.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
|
|
929
928
|
] }),
|
|
930
929
|
d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
931
|
-
d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(
|
|
930
|
+
d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(se, { item: c }, c.label)),
|
|
932
931
|
d.filter(
|
|
933
932
|
(c) => !c.category || c.category === "middle"
|
|
934
933
|
).length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
935
934
|
d.filter(
|
|
936
935
|
(c) => !c.category || c.category === "middle"
|
|
937
|
-
).map((c) => /* @__PURE__ */ r.jsx(
|
|
936
|
+
).map((c) => /* @__PURE__ */ r.jsx(se, { item: c }, c.label)),
|
|
938
937
|
d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
939
|
-
d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(
|
|
938
|
+
d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(se, { item: c }, c.label))
|
|
940
939
|
] })
|
|
941
940
|
] }) : /* @__PURE__ */ r.jsx(ie, { variant: "ghost", onClick: () => e.login(), children: "Login" })
|
|
942
941
|
}
|
|
@@ -963,7 +962,7 @@ const Te = {
|
|
|
963
962
|
}
|
|
964
963
|
);
|
|
965
964
|
rt.displayName = "Drawer";
|
|
966
|
-
const
|
|
965
|
+
const Js = M.Trigger, er = M.Portal, nt = I.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
967
966
|
M.Overlay,
|
|
968
967
|
{
|
|
969
968
|
ref: s,
|
|
@@ -972,8 +971,8 @@ const Ws = M.Trigger, Js = M.Portal, nt = I.forwardRef(({ className: t, ...e },
|
|
|
972
971
|
}
|
|
973
972
|
));
|
|
974
973
|
nt.displayName = M.Overlay.displayName;
|
|
975
|
-
const
|
|
976
|
-
({ className: t, children: e, hideBar: s = !0, ...n }, a) => /* @__PURE__ */ r.jsxs(
|
|
974
|
+
const tr = I.forwardRef(
|
|
975
|
+
({ className: t, children: e, hideBar: s = !0, ...n }, a) => /* @__PURE__ */ r.jsxs(er, { children: [
|
|
977
976
|
/* @__PURE__ */ r.jsx(nt, {}),
|
|
978
977
|
/* @__PURE__ */ r.jsxs(
|
|
979
978
|
M.Content,
|
|
@@ -992,8 +991,8 @@ const er = I.forwardRef(
|
|
|
992
991
|
)
|
|
993
992
|
] })
|
|
994
993
|
);
|
|
995
|
-
|
|
996
|
-
const
|
|
994
|
+
tr.displayName = "DrawerContent";
|
|
995
|
+
const sr = I.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
997
996
|
M.Title,
|
|
998
997
|
{
|
|
999
998
|
ref: s,
|
|
@@ -1004,8 +1003,8 @@ const tr = I.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
|
1004
1003
|
...e
|
|
1005
1004
|
}
|
|
1006
1005
|
));
|
|
1007
|
-
|
|
1008
|
-
const
|
|
1006
|
+
sr.displayName = M.Title.displayName;
|
|
1007
|
+
const rr = I.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
1009
1008
|
M.Description,
|
|
1010
1009
|
{
|
|
1011
1010
|
ref: s,
|
|
@@ -1013,7 +1012,7 @@ const sr = I.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
|
1013
1012
|
...e
|
|
1014
1013
|
}
|
|
1015
1014
|
));
|
|
1016
|
-
|
|
1015
|
+
rr.displayName = M.Description.displayName;
|
|
1017
1016
|
const at = ({
|
|
1018
1017
|
children: t,
|
|
1019
1018
|
className: e,
|
|
@@ -1032,15 +1031,15 @@ const at = ({
|
|
|
1032
1031
|
}
|
|
1033
1032
|
);
|
|
1034
1033
|
at.displayName = "SidebarWrapper";
|
|
1035
|
-
const
|
|
1034
|
+
const nr = ({
|
|
1036
1035
|
onRequestClose: t,
|
|
1037
1036
|
sidebar: e
|
|
1038
1037
|
}) => {
|
|
1039
1038
|
const s = fe(null);
|
|
1040
|
-
return
|
|
1039
|
+
return Y(() => {
|
|
1041
1040
|
var a;
|
|
1042
1041
|
const n = (a = s.current) == null ? void 0 : a.querySelector('[aria-current="page"]');
|
|
1043
|
-
|
|
1042
|
+
Jt(n ?? null);
|
|
1044
1043
|
}, []), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1045
1044
|
/* @__PURE__ */ r.jsxs(at, { ref: s, children: [
|
|
1046
1045
|
/* @__PURE__ */ r.jsx(D, { name: "zudoku-before-navigation" }),
|
|
@@ -1048,12 +1047,12 @@ const rr = ({
|
|
|
1048
1047
|
/* @__PURE__ */ r.jsx(D, { name: "zudoku-after-navigation" })
|
|
1049
1048
|
] }),
|
|
1050
1049
|
/* @__PURE__ */ r.jsx(
|
|
1051
|
-
|
|
1050
|
+
Ge,
|
|
1052
1051
|
{
|
|
1053
1052
|
className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
|
|
1054
1053
|
"aria-describedby": void 0,
|
|
1055
1054
|
children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
1056
|
-
/* @__PURE__ */ r.jsx(Xe, { children: /* @__PURE__ */ r.jsx(
|
|
1055
|
+
/* @__PURE__ */ r.jsx(Xe, { children: /* @__PURE__ */ r.jsx(Ve, { children: "Sidebar" }) }),
|
|
1057
1056
|
e.map((n) => /* @__PURE__ */ r.jsx(
|
|
1058
1057
|
ke,
|
|
1059
1058
|
{
|
|
@@ -1066,8 +1065,8 @@ const rr = ({
|
|
|
1066
1065
|
}
|
|
1067
1066
|
)
|
|
1068
1067
|
] });
|
|
1069
|
-
},
|
|
1070
|
-
const [e, s] =
|
|
1068
|
+
}, ar = ({ children: t }) => {
|
|
1069
|
+
const [e, s] = Z(!1), { sidebar: n } = $e(), a = n.length > 0;
|
|
1071
1070
|
return /* @__PURE__ */ r.jsxs(
|
|
1072
1071
|
rt,
|
|
1073
1072
|
{
|
|
@@ -1076,14 +1075,14 @@ const rr = ({
|
|
|
1076
1075
|
onOpenChange: (o) => s(o),
|
|
1077
1076
|
children: [
|
|
1078
1077
|
a && /* @__PURE__ */ r.jsx(
|
|
1079
|
-
|
|
1078
|
+
nr,
|
|
1080
1079
|
{
|
|
1081
1080
|
onRequestClose: () => s(!1),
|
|
1082
1081
|
sidebar: n
|
|
1083
1082
|
}
|
|
1084
1083
|
),
|
|
1085
|
-
a && /* @__PURE__ */ r.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b", children: /* @__PURE__ */ r.jsxs(
|
|
1086
|
-
/* @__PURE__ */ r.jsx(
|
|
1084
|
+
a && /* @__PURE__ */ r.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b", children: /* @__PURE__ */ r.jsxs(Js, { className: "flex items-center gap-2", children: [
|
|
1085
|
+
/* @__PURE__ */ r.jsx(Ss, { size: 16, strokeWidth: 1.5 }),
|
|
1087
1086
|
/* @__PURE__ */ r.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1088
1087
|
] }) }),
|
|
1089
1088
|
/* @__PURE__ */ r.jsxs(
|
|
@@ -1104,36 +1103,47 @@ const rr = ({
|
|
|
1104
1103
|
]
|
|
1105
1104
|
}
|
|
1106
1105
|
);
|
|
1107
|
-
},
|
|
1108
|
-
const { meta: e, authentication: s } = O();
|
|
1109
|
-
|
|
1110
|
-
var
|
|
1111
|
-
(
|
|
1106
|
+
}, Te = () => /* @__PURE__ */ r.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ r.jsx(_e, {}) }), ir = ({ children: t }) => {
|
|
1107
|
+
const { meta: e, authentication: s, options: n } = O(), a = _();
|
|
1108
|
+
es(), Xs(), Y(() => {
|
|
1109
|
+
var u;
|
|
1110
|
+
(u = s == null ? void 0 : s.onPageLoad) == null || u.call(s);
|
|
1112
1111
|
}, [s]);
|
|
1113
|
-
const
|
|
1112
|
+
const o = !!ue().location, i = Ys.useSpinDelay(o, {
|
|
1114
1113
|
delay: 300,
|
|
1115
1114
|
minDuration: 500
|
|
1116
1115
|
});
|
|
1117
1116
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1118
1117
|
!1,
|
|
1119
1118
|
/* @__PURE__ */ r.jsxs(le, { titleTemplate: e == null ? void 0 : e.title, children: [
|
|
1119
|
+
n.canonicalUrlOrigin && /* @__PURE__ */ r.jsx(
|
|
1120
|
+
"link",
|
|
1121
|
+
{
|
|
1122
|
+
rel: "canonical",
|
|
1123
|
+
href: H(
|
|
1124
|
+
n.canonicalUrlOrigin,
|
|
1125
|
+
n.basePath,
|
|
1126
|
+
a.pathname
|
|
1127
|
+
)
|
|
1128
|
+
}
|
|
1129
|
+
),
|
|
1120
1130
|
(e == null ? void 0 : e.description) && /* @__PURE__ */ r.jsx("meta", { name: "description", content: e.description }),
|
|
1121
1131
|
(e == null ? void 0 : e.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: e.favicon })
|
|
1122
1132
|
] }),
|
|
1123
1133
|
/* @__PURE__ */ r.jsx(D, { name: "layout-before-head" }),
|
|
1124
1134
|
/* @__PURE__ */ r.jsx(st, {}),
|
|
1125
1135
|
/* @__PURE__ */ r.jsx(D, { name: "layout-after-head" }),
|
|
1126
|
-
/* @__PURE__ */ r.jsx("div", { className: "grid grid-cols-1 grid-rows-[min-content_1fr] lg:grid-cols-[var(--side-nav-width)_1fr] max-w-screen-2xl w-full lg:mx-auto px-4 lg:px-8 2xl:border-x", children:
|
|
1136
|
+
/* @__PURE__ */ r.jsx("div", { className: "grid grid-cols-1 grid-rows-[min-content_1fr] lg:grid-cols-[var(--side-nav-width)_1fr] max-w-screen-2xl w-full lg:mx-auto px-4 lg:px-8 2xl:border-x", children: i ? /* @__PURE__ */ r.jsx(Te, {}) : /* @__PURE__ */ r.jsx(me, { fallback: /* @__PURE__ */ r.jsx(Te, {}), children: /* @__PURE__ */ r.jsx(ar, { children: t ?? /* @__PURE__ */ r.jsx(ce, {}) }) }) })
|
|
1127
1137
|
] });
|
|
1128
|
-
},
|
|
1138
|
+
}, or = ({
|
|
1129
1139
|
title: t = "An error occurred",
|
|
1130
1140
|
message: e,
|
|
1131
1141
|
category: s
|
|
1132
|
-
}) => /* @__PURE__ */ r.jsxs("div", { className:
|
|
1133
|
-
s && /* @__PURE__ */ r.jsx(
|
|
1134
|
-
t && /* @__PURE__ */ r.jsx(
|
|
1142
|
+
}) => /* @__PURE__ */ r.jsxs("div", { className: ss + " h-full pt-[--padding-content-top]", children: [
|
|
1143
|
+
s && /* @__PURE__ */ r.jsx(qs, { children: s }),
|
|
1144
|
+
t && /* @__PURE__ */ r.jsx(ts, { level: 1, className: "flex gap-3.5 items-center", children: t }),
|
|
1135
1145
|
/* @__PURE__ */ r.jsx("p", { children: e })
|
|
1136
|
-
] }),
|
|
1146
|
+
] }), lr = (t) => {
|
|
1137
1147
|
switch (t) {
|
|
1138
1148
|
case 400:
|
|
1139
1149
|
return {
|
|
@@ -1196,21 +1206,21 @@ const rr = ({
|
|
|
1196
1206
|
message: "Something went wrong while processing your request."
|
|
1197
1207
|
};
|
|
1198
1208
|
}
|
|
1199
|
-
},
|
|
1200
|
-
const s =
|
|
1209
|
+
}, cr = ({ statusCode: t, message: e }) => {
|
|
1210
|
+
const s = lr(t);
|
|
1201
1211
|
return /* @__PURE__ */ r.jsx(
|
|
1202
|
-
|
|
1212
|
+
or,
|
|
1203
1213
|
{
|
|
1204
1214
|
title: s.title,
|
|
1205
1215
|
message: e ?? s.message,
|
|
1206
1216
|
category: t
|
|
1207
1217
|
}
|
|
1208
1218
|
);
|
|
1209
|
-
},
|
|
1219
|
+
}, ur = he(null), ae = {
|
|
1210
1220
|
didCatch: !1,
|
|
1211
1221
|
error: null
|
|
1212
1222
|
};
|
|
1213
|
-
class
|
|
1223
|
+
class dr extends Vt {
|
|
1214
1224
|
constructor(e) {
|
|
1215
1225
|
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ae;
|
|
1216
1226
|
}
|
|
@@ -1243,7 +1253,7 @@ class ur extends Vt {
|
|
|
1243
1253
|
} = this.state, {
|
|
1244
1254
|
resetKeys: a
|
|
1245
1255
|
} = this.props;
|
|
1246
|
-
if (n && s.error !== null &&
|
|
1256
|
+
if (n && s.error !== null && hr(e.resetKeys, a)) {
|
|
1247
1257
|
var o, i;
|
|
1248
1258
|
(o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
|
|
1249
1259
|
next: a,
|
|
@@ -1277,7 +1287,7 @@ class ur extends Vt {
|
|
|
1277
1287
|
else
|
|
1278
1288
|
throw i;
|
|
1279
1289
|
}
|
|
1280
|
-
return De(
|
|
1290
|
+
return De(ur.Provider, {
|
|
1281
1291
|
value: {
|
|
1282
1292
|
didCatch: o,
|
|
1283
1293
|
error: i,
|
|
@@ -1286,11 +1296,11 @@ class ur extends Vt {
|
|
|
1286
1296
|
}, u);
|
|
1287
1297
|
}
|
|
1288
1298
|
}
|
|
1289
|
-
function
|
|
1299
|
+
function hr() {
|
|
1290
1300
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1291
1301
|
return t.length !== e.length || t.some((s, n) => !Object.is(s, e[n]));
|
|
1292
1302
|
}
|
|
1293
|
-
let
|
|
1303
|
+
let fr = () => ({
|
|
1294
1304
|
emit(t, ...e) {
|
|
1295
1305
|
for (let s = this.events[t] || [], n = 0, a = s.length; n < a; n++)
|
|
1296
1306
|
s[n](...e);
|
|
@@ -1304,7 +1314,7 @@ let hr = () => ({
|
|
|
1304
1314
|
};
|
|
1305
1315
|
}
|
|
1306
1316
|
});
|
|
1307
|
-
class
|
|
1317
|
+
class mr {
|
|
1308
1318
|
constructor(e, s) {
|
|
1309
1319
|
j(this, "plugins");
|
|
1310
1320
|
j(this, "sidebars");
|
|
@@ -1313,113 +1323,117 @@ class fr {
|
|
|
1313
1323
|
j(this, "page");
|
|
1314
1324
|
j(this, "authentication");
|
|
1315
1325
|
j(this, "navigationPlugins");
|
|
1316
|
-
j(this, "emitter",
|
|
1326
|
+
j(this, "emitter", fr());
|
|
1317
1327
|
j(this, "initialize", async () => {
|
|
1318
1328
|
await Promise.all(
|
|
1319
|
-
this.plugins.filter(
|
|
1329
|
+
this.plugins.filter(us).map((e) => {
|
|
1320
1330
|
var s;
|
|
1321
1331
|
return (s = e.initialize) == null ? void 0 : s.call(e, this);
|
|
1322
1332
|
})
|
|
1323
1333
|
);
|
|
1324
1334
|
});
|
|
1325
1335
|
j(this, "getApiIdentities", async () => (await Promise.all(
|
|
1326
|
-
this.plugins.filter(
|
|
1336
|
+
this.plugins.filter(ds).map((s) => s.getIdentities(this))
|
|
1327
1337
|
)).flat());
|
|
1328
1338
|
j(this, "emitEvent", (e, ...s) => this.emitter.emit(e, ...s));
|
|
1329
1339
|
j(this, "getPluginSidebar", async (e) => (await Promise.all(
|
|
1330
1340
|
this.navigationPlugins.map(
|
|
1331
1341
|
(n) => {
|
|
1332
1342
|
var a;
|
|
1333
|
-
return (a = n.getSidebar) == null ? void 0 : a.call(n,
|
|
1343
|
+
return (a = n.getSidebar) == null ? void 0 : a.call(n, Ot(e), this);
|
|
1334
1344
|
}
|
|
1335
1345
|
)
|
|
1336
1346
|
)).flatMap((n) => n ?? []));
|
|
1337
1347
|
j(this, "signRequest", async (e) => {
|
|
1338
1348
|
if (!this.authentication)
|
|
1339
1349
|
throw new Error("No authentication provider configured");
|
|
1340
|
-
|
|
1341
|
-
return e.headers.set("Authorization", `Bearer ${s}`), e;
|
|
1350
|
+
return await this.authentication.signRequest(e);
|
|
1342
1351
|
});
|
|
1343
|
-
this.options = e, this.queryClient = s, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(
|
|
1344
|
-
|
|
1352
|
+
this.options = e, this.queryClient = s, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(ls), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((n) => {
|
|
1353
|
+
cs(n) && Lt(n.events).forEach(([a, o]) => {
|
|
1345
1354
|
this.emitter.on(a, o);
|
|
1346
1355
|
});
|
|
1356
|
+
}), Et.subscribe((n, a) => {
|
|
1357
|
+
this.emitEvent("auth", {
|
|
1358
|
+
prev: a,
|
|
1359
|
+
next: n
|
|
1360
|
+
});
|
|
1347
1361
|
});
|
|
1348
1362
|
}
|
|
1349
1363
|
addEventListener(e, s) {
|
|
1350
1364
|
return this.emitter.on(e, s);
|
|
1351
1365
|
}
|
|
1352
1366
|
}
|
|
1353
|
-
function
|
|
1367
|
+
function gr({ error: t, resetErrorBoundary: e }) {
|
|
1354
1368
|
return /* @__PURE__ */ r.jsx(Ue, { error: t });
|
|
1355
1369
|
}
|
|
1356
|
-
const
|
|
1357
|
-
(!
|
|
1370
|
+
const te = globalThis;
|
|
1371
|
+
(!te.requestIdleCallback || !te.cancelIdleCallback) && (te.requestIdleCallback = (t) => setTimeout(t, 1), te.cancelIdleCallback = clearTimeout);
|
|
1358
1372
|
const it = {
|
|
1359
1373
|
Header: st
|
|
1360
|
-
},
|
|
1361
|
-
const t =
|
|
1362
|
-
return
|
|
1374
|
+
}, pr = he(it), xr = pr.Provider, yr = () => {
|
|
1375
|
+
const t = _(), e = O(), s = fe(void 0);
|
|
1376
|
+
return Y(() => {
|
|
1363
1377
|
e.emitEvent("location", {
|
|
1364
1378
|
from: s.current,
|
|
1365
1379
|
to: t
|
|
1366
1380
|
}), s.current = t;
|
|
1367
1381
|
}, [e, t]), null;
|
|
1368
|
-
},
|
|
1382
|
+
}, vr = ({
|
|
1369
1383
|
children: t,
|
|
1370
1384
|
context: e
|
|
1371
|
-
}) => (
|
|
1385
|
+
}) => (Mt({
|
|
1372
1386
|
queryFn: async () => (await e.initialize(), !0),
|
|
1373
1387
|
queryKey: ["zudoku-initialize"]
|
|
1374
|
-
}), /* @__PURE__ */ r.jsx(
|
|
1388
|
+
}), /* @__PURE__ */ r.jsx(qt.Provider, { value: e, children: t })), ot = Ye(
|
|
1375
1389
|
({ children: t, ...e }) => {
|
|
1376
1390
|
var p, C;
|
|
1377
1391
|
const s = re(
|
|
1378
1392
|
() => ({ ...it, ...e.overrides }),
|
|
1379
1393
|
[e.overrides]
|
|
1380
|
-
), n =
|
|
1394
|
+
), n = _(), a = re(() => {
|
|
1381
1395
|
var y;
|
|
1382
1396
|
return {
|
|
1383
|
-
...(e.plugins ?? []).filter(
|
|
1384
|
-
(
|
|
1397
|
+
...(e.plugins ?? []).filter(hs).flatMap(
|
|
1398
|
+
(q) => q.getMdxComponents ? [q.getMdxComponents()] : []
|
|
1385
1399
|
).reduce(
|
|
1386
|
-
(
|
|
1400
|
+
(q, z) => ({ ...q, ...z }),
|
|
1387
1401
|
{}
|
|
1388
1402
|
),
|
|
1389
|
-
...
|
|
1403
|
+
...rs,
|
|
1390
1404
|
...(y = e.mdx) == null ? void 0 : y.components
|
|
1391
1405
|
};
|
|
1392
|
-
}, [(p = e.mdx) == null ? void 0 : p.components, e.plugins]), { stagger: o } = _t(oe), [i, u] =
|
|
1406
|
+
}, [(p = e.mdx) == null ? void 0 : p.components, e.plugins]), { stagger: o } = _t(oe), [i, u] = Z(!1), d = re(
|
|
1393
1407
|
() => i ? { stagger: !0 } : { stagger: o },
|
|
1394
1408
|
[o, i]
|
|
1395
|
-
), c = ue(), x =
|
|
1396
|
-
|
|
1409
|
+
), c = ue(), x = Le();
|
|
1410
|
+
Y(() => {
|
|
1397
1411
|
i || u(!0);
|
|
1398
1412
|
}, [i, c.location]);
|
|
1399
|
-
const [f] =
|
|
1400
|
-
() => new
|
|
1413
|
+
const [f] = Z(
|
|
1414
|
+
() => new mr(e, x)
|
|
1401
1415
|
), h = (C = e.plugins) == null ? void 0 : C.flatMap(
|
|
1402
1416
|
(m) => {
|
|
1403
1417
|
var y;
|
|
1404
|
-
return
|
|
1418
|
+
return fs(m) ? ((y = m.getHead) == null ? void 0 : y.call(m, { location: n })) ?? [] : [];
|
|
1405
1419
|
}
|
|
1406
1420
|
).map((m, y) => /* @__PURE__ */ r.jsx(le, { children: m }, y));
|
|
1407
1421
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1408
1422
|
h,
|
|
1409
|
-
/* @__PURE__ */ r.jsx(oe.Provider, { value: d, children: /* @__PURE__ */ r.jsxs(
|
|
1410
|
-
/* @__PURE__ */ r.jsx(
|
|
1411
|
-
/* @__PURE__ */ r.jsx(ht, { components: a, children: /* @__PURE__ */ r.jsx(mt, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(
|
|
1423
|
+
/* @__PURE__ */ r.jsx(oe.Provider, { value: d, children: /* @__PURE__ */ r.jsxs(vr, { context: f, children: [
|
|
1424
|
+
/* @__PURE__ */ r.jsx(yr, {}),
|
|
1425
|
+
/* @__PURE__ */ r.jsx(ht, { components: a, children: /* @__PURE__ */ r.jsx(mt, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(xr, { value: s, children: /* @__PURE__ */ r.jsx(Kt, { slotlets: e.slotlets, children: /* @__PURE__ */ r.jsx(ns, { children: t ?? /* @__PURE__ */ r.jsx(ce, {}) }) }) }) }) })
|
|
1412
1426
|
] }) })
|
|
1413
1427
|
] });
|
|
1414
1428
|
}
|
|
1415
1429
|
);
|
|
1416
1430
|
ot.displayName = "ZudokoInner";
|
|
1417
|
-
const lt = (t) => /* @__PURE__ */ r.jsx(
|
|
1431
|
+
const lt = (t) => /* @__PURE__ */ r.jsx(dr, { FallbackComponent: gr, children: /* @__PURE__ */ r.jsx(ot, { ...t }) });
|
|
1418
1432
|
lt.displayName = "Zudoku";
|
|
1419
|
-
const Zr = ft, Yr =
|
|
1433
|
+
const Zr = ft, Yr = ir, Xr = $t, Gr = Hs, Vr = Ks, _r = $s, Wr = zs, Jr = le, en = O, tn = U, sn = At, rn = Tt, nn = lt, an = cr, on = Zt, ln = as, cn = _e, un = ge, dn = Ut, hn = de, fn = ze;
|
|
1420
1434
|
export {
|
|
1421
|
-
|
|
1422
|
-
|
|
1435
|
+
Vr as Bootstrap,
|
|
1436
|
+
_r as BootstrapStatic,
|
|
1423
1437
|
dn as Button,
|
|
1424
1438
|
rn as CACHE_KEYS,
|
|
1425
1439
|
on as Callout,
|
|
@@ -1430,7 +1444,7 @@ export {
|
|
|
1430
1444
|
ln as Markdown,
|
|
1431
1445
|
Wr as RouteGuard,
|
|
1432
1446
|
Xr as RouterError,
|
|
1433
|
-
|
|
1447
|
+
Gr as ServerError,
|
|
1434
1448
|
cn as Spinner,
|
|
1435
1449
|
an as StatusPage,
|
|
1436
1450
|
nn as Zudoku,
|