zudoku 0.37.0 → 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/components/Zudoku.js +3 -2
- package/dist/lib/components/Zudoku.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 +8 -6
- 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/api/schema-codegen.d.ts +1 -1
- package/dist/vite/api/schema-codegen.js +8 -4
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/plugin-api.js +5 -2
- 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 +370 -354
- 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 +2 -2
- 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/components/Zudoku.tsx +5 -2
- package/src/lib/core/ZudokuContext.ts +13 -6
- package/src/lib/core/plugins.ts +9 -9
- 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
|
@@ -3,9 +3,9 @@ var ye = (t) => {
|
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
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
|
-
var
|
|
7
|
-
var l = (t, e, s) => (ve(t, e, "read from private field"), s ? s.call(t) : e.get(t)),
|
|
8
|
-
var
|
|
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
|
+
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 J = (t, e, s, n) => ({
|
|
9
9
|
set _(a) {
|
|
10
10
|
v(t, e, a, s);
|
|
11
11
|
},
|
|
@@ -13,51 +13,50 @@ var W = (t, e, s, n) => ({
|
|
|
13
13
|
return l(t, e, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { a as Fe, H as
|
|
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
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import * as Gt from "react-dom";
|
|
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";
|
|
28
|
+
import * as I from "react";
|
|
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
|
|
34
|
-
import { B 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";
|
|
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();
|
|
47
|
-
|
|
46
|
+
w(this, S);
|
|
48
47
|
this.config = e, v(this, S, /* @__PURE__ */ new Map());
|
|
49
48
|
}
|
|
50
49
|
build(e, s, n) {
|
|
51
|
-
const a = s.queryKey,
|
|
52
|
-
let
|
|
53
|
-
return
|
|
50
|
+
const a = s.queryKey, o = s.queryHash ?? Be(a, s);
|
|
51
|
+
let i = this.get(o);
|
|
52
|
+
return i || (i = new bt({
|
|
54
53
|
client: e,
|
|
55
54
|
queryKey: a,
|
|
56
|
-
queryHash:
|
|
55
|
+
queryHash: o,
|
|
57
56
|
options: e.defaultQueryOptions(s),
|
|
58
57
|
state: n,
|
|
59
58
|
defaultOptions: e.getQueryDefaults(a)
|
|
60
|
-
}), this.add(
|
|
59
|
+
}), this.add(i)), i;
|
|
61
60
|
}
|
|
62
61
|
add(e) {
|
|
63
62
|
l(this, S).has(e.queryHash) || (l(this, S).set(e.queryHash, e), this.notify({
|
|
@@ -70,7 +69,7 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
70
69
|
s && (e.destroy(), s === e && l(this, S).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
71
70
|
}
|
|
72
71
|
clear() {
|
|
73
|
-
|
|
72
|
+
P.batch(() => {
|
|
74
73
|
this.getAll().forEach((e) => {
|
|
75
74
|
this.remove(e);
|
|
76
75
|
});
|
|
@@ -93,38 +92,38 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
93
92
|
return Object.keys(e).length > 0 ? s.filter((n) => be(e, n)) : s;
|
|
94
93
|
}
|
|
95
94
|
notify(e) {
|
|
96
|
-
|
|
95
|
+
P.batch(() => {
|
|
97
96
|
this.listeners.forEach((s) => {
|
|
98
97
|
s(e);
|
|
99
98
|
});
|
|
100
99
|
});
|
|
101
100
|
}
|
|
102
101
|
onFocus() {
|
|
103
|
-
|
|
102
|
+
P.batch(() => {
|
|
104
103
|
this.getAll().forEach((e) => {
|
|
105
104
|
e.onFocus();
|
|
106
105
|
});
|
|
107
106
|
});
|
|
108
107
|
}
|
|
109
108
|
onOnline() {
|
|
110
|
-
|
|
109
|
+
P.batch(() => {
|
|
111
110
|
this.getAll().forEach((e) => {
|
|
112
111
|
e.onOnline();
|
|
113
112
|
});
|
|
114
113
|
});
|
|
115
114
|
}
|
|
116
|
-
}, S = new WeakMap(), Ie), T, N,
|
|
115
|
+
}, S = new WeakMap(), Ie), T, N, V, Qe, Ts = (Qe = class extends He {
|
|
117
116
|
constructor(e = {}) {
|
|
118
117
|
super();
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
this.config = e, v(this, T, /* @__PURE__ */ new Set()), v(this, N, /* @__PURE__ */ new Map()), v(this,
|
|
118
|
+
w(this, T);
|
|
119
|
+
w(this, N);
|
|
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
|
});
|
|
@@ -132,7 +131,7 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
132
131
|
}
|
|
133
132
|
add(e) {
|
|
134
133
|
l(this, T).add(e);
|
|
135
|
-
const s =
|
|
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]);
|
|
@@ -141,7 +140,7 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
141
140
|
}
|
|
142
141
|
remove(e) {
|
|
143
142
|
if (l(this, T).delete(e)) {
|
|
144
|
-
const s =
|
|
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,10 +153,10 @@ 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"
|
|
161
160
|
);
|
|
162
161
|
return !a || a === e;
|
|
163
162
|
} else
|
|
@@ -165,15 +164,15 @@ 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
|
-
const a = (n = l(this, N).get(s)) == null ? void 0 : n.find((
|
|
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();
|
|
172
171
|
} else
|
|
173
172
|
return Promise.resolve();
|
|
174
173
|
}
|
|
175
174
|
clear() {
|
|
176
|
-
|
|
175
|
+
P.batch(() => {
|
|
177
176
|
l(this, T).forEach((e) => {
|
|
178
177
|
this.notify({ type: "removed", mutation: e });
|
|
179
178
|
}), l(this, T).clear(), l(this, N).clear();
|
|
@@ -192,7 +191,7 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
192
191
|
return this.getAll().filter((s) => je(e, s));
|
|
193
192
|
}
|
|
194
193
|
notify(e) {
|
|
195
|
-
|
|
194
|
+
P.batch(() => {
|
|
196
195
|
this.listeners.forEach((s) => {
|
|
197
196
|
s(e);
|
|
198
197
|
});
|
|
@@ -200,73 +199,73 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
200
199
|
}
|
|
201
200
|
resumePausedMutations() {
|
|
202
201
|
const e = this.getAll().filter((s) => s.state.isPaused);
|
|
203
|
-
return
|
|
202
|
+
return P.batch(
|
|
204
203
|
() => Promise.all(
|
|
205
204
|
e.map((s) => s.continue().catch(A))
|
|
206
205
|
)
|
|
207
206
|
);
|
|
208
207
|
}
|
|
209
|
-
}, T = new WeakMap(), N = new WeakMap(),
|
|
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
|
}
|
|
214
213
|
function Se(t) {
|
|
215
214
|
return {
|
|
216
215
|
onFetch: (e, s) => {
|
|
217
|
-
var x, f, h, p,
|
|
218
|
-
const n = e.options, a = (h = (f = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction,
|
|
216
|
+
var x, f, h, p, C;
|
|
217
|
+
const n = e.options, a = (h = (f = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, o = ((p = e.state.data) == null ? void 0 : p.pages) || [], i = ((C = e.state.data) == null ? void 0 : C.pageParams) || [];
|
|
219
218
|
let u = { pages: [], pageParams: [] }, d = 0;
|
|
220
219
|
const c = async () => {
|
|
221
220
|
let m = !1;
|
|
222
|
-
const
|
|
223
|
-
Object.defineProperty(
|
|
221
|
+
const y = (b) => {
|
|
222
|
+
Object.defineProperty(b, "signal", {
|
|
224
223
|
enumerable: !0,
|
|
225
224
|
get: () => (e.signal.aborted ? m = !0 : e.signal.addEventListener("abort", () => {
|
|
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
|
-
if (k == null &&
|
|
233
|
-
return Promise.resolve(
|
|
234
|
-
const
|
|
231
|
+
if (k == null && b.pages.length)
|
|
232
|
+
return Promise.resolve(b);
|
|
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
|
-
|
|
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
|
-
pages: xe(
|
|
247
|
-
pageParams: xe(
|
|
245
|
+
pages: xe(b.pages, ct, pe),
|
|
246
|
+
pageParams: xe(b.pageParams, k, pe)
|
|
248
247
|
};
|
|
249
248
|
};
|
|
250
|
-
if (a &&
|
|
251
|
-
const
|
|
252
|
-
pages:
|
|
253
|
-
pageParams:
|
|
254
|
-
},
|
|
255
|
-
u = await
|
|
249
|
+
if (a && o.length) {
|
|
250
|
+
const b = a === "backward", k = b ? Is : Ee, X = {
|
|
251
|
+
pages: o,
|
|
252
|
+
pageParams: i
|
|
253
|
+
}, W = k(n, X);
|
|
254
|
+
u = await z(X, W, b);
|
|
256
255
|
} else {
|
|
257
|
-
const
|
|
256
|
+
const b = t ?? o.length;
|
|
258
257
|
do {
|
|
259
|
-
const k = d === 0 ?
|
|
258
|
+
const k = d === 0 ? i[0] ?? n.initialPageParam : Ee(n, u);
|
|
260
259
|
if (d > 0 && k == null)
|
|
261
260
|
break;
|
|
262
|
-
u = await
|
|
263
|
-
} while (d <
|
|
261
|
+
u = await z(u, k), d++;
|
|
262
|
+
} while (d < b);
|
|
264
263
|
}
|
|
265
264
|
return u;
|
|
266
265
|
};
|
|
267
266
|
e.options.persister ? e.fetchFn = () => {
|
|
268
|
-
var m,
|
|
269
|
-
return (
|
|
267
|
+
var m, y;
|
|
268
|
+
return (y = (m = e.options).persister) == null ? void 0 : y.call(
|
|
270
269
|
m,
|
|
271
270
|
c,
|
|
272
271
|
{
|
|
@@ -290,38 +289,38 @@ 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,
|
|
296
|
+
var g, Q, R, B, L, F, K, $, Re, Qs = (Re = class {
|
|
298
297
|
constructor(t = {}) {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
v(this, g, t.queryCache || new As()), v(this,
|
|
298
|
+
w(this, g);
|
|
299
|
+
w(this, Q);
|
|
300
|
+
w(this, R);
|
|
301
|
+
w(this, B);
|
|
302
|
+
w(this, L);
|
|
303
|
+
w(this, F);
|
|
304
|
+
w(this, K);
|
|
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;
|
|
322
321
|
}
|
|
323
322
|
isMutating(t) {
|
|
324
|
-
return l(this,
|
|
323
|
+
return l(this, Q).findAll({ ...t, status: "pending" }).length;
|
|
325
324
|
}
|
|
326
325
|
getQueryData(t) {
|
|
327
326
|
var s;
|
|
@@ -341,12 +340,12 @@ var g, I, Q, z, B, R, H, L, 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
|
-
),
|
|
345
|
-
if (
|
|
346
|
-
return l(this, g).build(this, n).setData(
|
|
343
|
+
), o = a == null ? void 0 : a.state.data, i = Nt(e, o);
|
|
344
|
+
if (i !== void 0)
|
|
345
|
+
return l(this, g).build(this, n).setData(i, { ...s, manual: !0 });
|
|
347
346
|
}
|
|
348
347
|
setQueriesData(t, e, s) {
|
|
349
|
-
return
|
|
348
|
+
return P.batch(
|
|
350
349
|
() => l(this, g).findAll(t).map(({ queryKey: n }) => [
|
|
351
350
|
n,
|
|
352
351
|
this.setQueryData(n, e, s)
|
|
@@ -362,7 +361,7 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
|
|
|
362
361
|
}
|
|
363
362
|
removeQueries(t) {
|
|
364
363
|
const e = l(this, g);
|
|
365
|
-
|
|
364
|
+
P.batch(() => {
|
|
366
365
|
e.findAll(t).forEach((s) => {
|
|
367
366
|
e.remove(s);
|
|
368
367
|
});
|
|
@@ -373,18 +372,18 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
|
|
|
373
372
|
type: "active",
|
|
374
373
|
...t
|
|
375
374
|
};
|
|
376
|
-
return
|
|
375
|
+
return P.batch(() => (s.findAll(t).forEach((a) => {
|
|
377
376
|
a.reset();
|
|
378
377
|
}), this.refetchQueries(n, e)));
|
|
379
378
|
}
|
|
380
379
|
cancelQueries(t, e = {}) {
|
|
381
|
-
const s = { revert: !0, ...e }, n =
|
|
380
|
+
const s = { revert: !0, ...e }, n = P.batch(
|
|
382
381
|
() => l(this, g).findAll(t).map((a) => a.cancel(s))
|
|
383
382
|
);
|
|
384
383
|
return Promise.all(n).then(A).catch(A);
|
|
385
384
|
}
|
|
386
385
|
invalidateQueries(t, e = {}) {
|
|
387
|
-
return
|
|
386
|
+
return P.batch(() => {
|
|
388
387
|
if (l(this, g).findAll(t).forEach((n) => {
|
|
389
388
|
n.invalidate();
|
|
390
389
|
}), (t == null ? void 0 : t.refetchType) === "none")
|
|
@@ -400,10 +399,10 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
|
|
|
400
399
|
const s = {
|
|
401
400
|
...e,
|
|
402
401
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
403
|
-
}, n =
|
|
402
|
+
}, n = P.batch(
|
|
404
403
|
() => l(this, g).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
|
|
405
|
-
let
|
|
406
|
-
return s.throwOnError || (
|
|
404
|
+
let o = a.fetch(void 0, s);
|
|
405
|
+
return s.throwOnError || (o = o.catch(A)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
407
406
|
})
|
|
408
407
|
);
|
|
409
408
|
return Promise.all(n).then(A);
|
|
@@ -429,40 +428,40 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
|
|
|
429
428
|
return t.behavior = Se(t.pages), this.ensureQueryData(t);
|
|
430
429
|
}
|
|
431
430
|
resumePausedMutations() {
|
|
432
|
-
return we.isOnline() ? l(this,
|
|
431
|
+
return we.isOnline() ? l(this, Q).resumePausedMutations() : Promise.resolve();
|
|
433
432
|
}
|
|
434
433
|
getQueryCache() {
|
|
435
434
|
return l(this, g);
|
|
436
435
|
}
|
|
437
436
|
getMutationCache() {
|
|
438
|
-
return l(this,
|
|
437
|
+
return l(this, Q);
|
|
439
438
|
}
|
|
440
439
|
getDefaultOptions() {
|
|
441
|
-
return l(this,
|
|
440
|
+
return l(this, R);
|
|
442
441
|
}
|
|
443
442
|
setDefaultOptions(t) {
|
|
444
|
-
v(this,
|
|
443
|
+
v(this, R, t);
|
|
445
444
|
}
|
|
446
445
|
setQueryDefaults(t, e) {
|
|
447
|
-
l(this,
|
|
446
|
+
l(this, B).set(Ce(t), {
|
|
448
447
|
queryKey: t,
|
|
449
448
|
defaultOptions: e
|
|
450
449
|
});
|
|
451
450
|
}
|
|
452
451
|
getQueryDefaults(t) {
|
|
453
|
-
const e = [...l(this,
|
|
452
|
+
const e = [...l(this, B).values()], s = {};
|
|
454
453
|
return e.forEach((n) => {
|
|
455
454
|
Ne(t, n.queryKey) && Object.assign(s, n.defaultOptions);
|
|
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 });
|
|
@@ -472,37 +471,37 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
|
|
|
472
471
|
if (t._defaulted)
|
|
473
472
|
return t;
|
|
474
473
|
const e = {
|
|
475
|
-
...l(this,
|
|
474
|
+
...l(this, R).queries,
|
|
476
475
|
...this.getQueryDefaults(t.queryKey),
|
|
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 : {
|
|
487
|
-
...l(this,
|
|
486
|
+
...l(this, R).mutations,
|
|
488
487
|
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
489
488
|
...t,
|
|
490
489
|
_defaulted: !0
|
|
491
490
|
};
|
|
492
491
|
}
|
|
493
492
|
clear() {
|
|
494
|
-
l(this, g).clear(), l(this,
|
|
493
|
+
l(this, g).clear(), l(this, Q).clear();
|
|
495
494
|
}
|
|
496
|
-
}, g = 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(),
|
|
505
|
-
|
|
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 || [];
|
|
504
|
+
i.forEach(({ state: x, ...f }) => {
|
|
506
505
|
var h, p;
|
|
507
506
|
n.build(
|
|
508
507
|
t,
|
|
@@ -513,24 +512,24 @@ function Oe(t, e, s) {
|
|
|
513
512
|
},
|
|
514
513
|
x
|
|
515
514
|
);
|
|
516
|
-
}), u.forEach(({ queryKey: x, state: f, queryHash: h, meta: p, promise:
|
|
517
|
-
var
|
|
515
|
+
}), u.forEach(({ queryKey: x, state: f, queryHash: h, meta: p, promise: C }) => {
|
|
516
|
+
var q, z;
|
|
518
517
|
let m = a.get(h);
|
|
519
|
-
const
|
|
518
|
+
const y = f.data === void 0 ? f.data : o(f.data);
|
|
520
519
|
if (m) {
|
|
521
520
|
if (m.state.dataUpdatedAt < f.dataUpdatedAt) {
|
|
522
|
-
const { fetchStatus:
|
|
521
|
+
const { fetchStatus: b, ...k } = f;
|
|
523
522
|
m.setState({
|
|
524
523
|
...k,
|
|
525
|
-
data:
|
|
524
|
+
data: y
|
|
526
525
|
});
|
|
527
526
|
}
|
|
528
527
|
} else
|
|
529
528
|
m = a.build(
|
|
530
529
|
t,
|
|
531
530
|
{
|
|
532
|
-
...(
|
|
533
|
-
...(
|
|
531
|
+
...(q = t.getDefaultOptions().hydrate) == null ? void 0 : q.queries,
|
|
532
|
+
...(z = s == null ? void 0 : s.defaultOptions) == null ? void 0 : z.queries,
|
|
534
533
|
queryKey: x,
|
|
535
534
|
queryHash: h,
|
|
536
535
|
meta: p
|
|
@@ -539,24 +538,24 @@ function Oe(t, e, s) {
|
|
|
539
538
|
// query being stuck in fetching state upon hydration
|
|
540
539
|
{
|
|
541
540
|
...f,
|
|
542
|
-
data:
|
|
541
|
+
data: y,
|
|
543
542
|
fetchStatus: "idle"
|
|
544
543
|
}
|
|
545
544
|
);
|
|
546
|
-
if (
|
|
547
|
-
const
|
|
548
|
-
m.fetch(void 0, { initialPromise:
|
|
545
|
+
if (C) {
|
|
546
|
+
const b = Promise.resolve(C).then(o);
|
|
547
|
+
m.fetch(void 0, { initialPromise: b });
|
|
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 =
|
|
559
|
-
return u.current = e,
|
|
557
|
+
const a = Le(n), [o, i] = I.useState(), u = I.useRef(e);
|
|
558
|
+
return u.current = e, I.useMemo(() => {
|
|
560
559
|
if (s) {
|
|
561
560
|
if (typeof s != "object")
|
|
562
561
|
return;
|
|
@@ -566,26 +565,26 @@ var Me = (t, e) => typeof t == "object" && t !== null && e in t, Rs = ({
|
|
|
566
565
|
if (!p)
|
|
567
566
|
x.push(h);
|
|
568
567
|
else {
|
|
569
|
-
const
|
|
570
|
-
Me(h.promise, "status") && Me(p.promise, "status") && h.promise.status !== p.promise.status, m =
|
|
571
|
-
(
|
|
568
|
+
const C = h.state.dataUpdatedAt > p.state.dataUpdatedAt || // RSC special serialized then-able chunks
|
|
569
|
+
Me(h.promise, "status") && Me(p.promise, "status") && h.promise.status !== p.promise.status, m = o == null ? void 0 : o.find(
|
|
570
|
+
(y) => y.queryHash === h.queryHash
|
|
572
571
|
);
|
|
573
|
-
|
|
572
|
+
C && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && f.push(h);
|
|
574
573
|
}
|
|
575
574
|
}
|
|
576
|
-
x.length > 0 && Oe(a, { queries: x }, u.current), f.length > 0 &&
|
|
575
|
+
x.length > 0 && Oe(a, { queries: x }, u.current), f.length > 0 && i(
|
|
577
576
|
(h) => h ? [...h, ...f] : f
|
|
578
577
|
);
|
|
579
578
|
}
|
|
580
|
-
}, [a,
|
|
581
|
-
|
|
582
|
-
}, [a,
|
|
579
|
+
}, [a, o, s]), I.useEffect(() => {
|
|
580
|
+
o && (Oe(a, { queries: o }, u.current), i(void 0));
|
|
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;
|
|
@@ -593,29 +592,29 @@ const Fs = () => {
|
|
|
593
592
|
redirectTo: a.current
|
|
594
593
|
})), !0;
|
|
595
594
|
},
|
|
596
|
-
enabled: typeof window < "u" &&
|
|
597
|
-
}),
|
|
595
|
+
enabled: typeof window < "u" && i && !t.isPending && !t.isAuthenticated
|
|
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
|
-
if (
|
|
612
|
-
throw new
|
|
610
|
+
if (i && !t.isAuthEnabled)
|
|
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,71 +628,71 @@ function zs({ error: t }) {
|
|
|
629
628
|
* @license MIT
|
|
630
629
|
*/
|
|
631
630
|
function Bs(t) {
|
|
632
|
-
return /* @__PURE__ */
|
|
631
|
+
return /* @__PURE__ */ I.createElement(xt, { flushSync: Wt.flushSync, ...t });
|
|
633
632
|
}
|
|
634
|
-
const
|
|
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,
|
|
658
657
|
ssr: !0
|
|
659
658
|
};
|
|
660
|
-
function
|
|
659
|
+
function o() {
|
|
661
660
|
const [u, d] = n.useState(!0);
|
|
662
661
|
return n.useEffect(() => {
|
|
663
662
|
d(!1);
|
|
664
663
|
}, []), u;
|
|
665
664
|
}
|
|
666
|
-
function
|
|
665
|
+
function i(u, d) {
|
|
667
666
|
d = Object.assign({}, a, d);
|
|
668
|
-
const c =
|
|
667
|
+
const c = o() && d.ssr, x = c && u ? "DISPLAY" : "IDLE", [f, h] = n.useState(x), p = n.useRef(null);
|
|
669
668
|
return n.useEffect(() => {
|
|
670
669
|
if (u && (f === "IDLE" || c)) {
|
|
671
670
|
clearTimeout(p.current);
|
|
672
|
-
const
|
|
671
|
+
const C = c ? 0 : d.delay;
|
|
673
672
|
p.current = setTimeout(() => {
|
|
674
673
|
if (!u)
|
|
675
674
|
return h("IDLE");
|
|
676
675
|
p.current = setTimeout(() => {
|
|
677
676
|
h("EXPIRE");
|
|
678
677
|
}, d.minDuration), h("DISPLAY");
|
|
679
|
-
},
|
|
678
|
+
}, C), c || h("DELAY");
|
|
680
679
|
}
|
|
681
680
|
!u && f !== "DISPLAY" && (clearTimeout(p.current), h("IDLE"));
|
|
682
681
|
}, [u, f, d.delay, d.minDuration, c]), n.useEffect(() => () => clearTimeout(p.current), []), f === "DISPLAY" || f === "EXPIRE";
|
|
683
682
|
}
|
|
684
|
-
s.defaultOptions = a, s.useSpinDelay =
|
|
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,26 +732,26 @@ 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
|
-
function
|
|
746
|
+
function i(u) {
|
|
748
747
|
u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), n(!0));
|
|
749
748
|
}
|
|
750
|
-
return window.addEventListener("keydown",
|
|
751
|
-
window.removeEventListener("keydown",
|
|
749
|
+
return window.addEventListener("keydown", i), () => {
|
|
750
|
+
window.removeEventListener("keydown", i);
|
|
752
751
|
};
|
|
753
752
|
}, [s, n]);
|
|
754
|
-
const
|
|
755
|
-
return
|
|
753
|
+
const o = e.plugins.find(is);
|
|
754
|
+
return o ? /* @__PURE__ */ r.jsxs("div", { className: t, children: [
|
|
756
755
|
/* @__PURE__ */ r.jsxs(
|
|
757
756
|
"button",
|
|
758
757
|
{
|
|
@@ -761,21 +760,21 @@ 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" })
|
|
768
767
|
]
|
|
769
768
|
}
|
|
770
769
|
),
|
|
771
|
-
/* @__PURE__ */ r.jsx(me, { fallback: null, children:
|
|
770
|
+
/* @__PURE__ */ r.jsx(me, { fallback: null, children: o.renderSearch({
|
|
772
771
|
isOpen: s,
|
|
773
772
|
onClose: a
|
|
774
773
|
}) })
|
|
775
774
|
] }) : null;
|
|
776
775
|
}, Je = () => {
|
|
777
776
|
const { resolvedTheme: t, setTheme: e } = ze();
|
|
778
|
-
return /* @__PURE__ */ r.jsx(ge, { fallback: /* @__PURE__ */ r.jsx(
|
|
777
|
+
return /* @__PURE__ */ r.jsx(ge, { fallback: /* @__PURE__ */ r.jsx(ie, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ r.jsxs(
|
|
779
778
|
"button",
|
|
780
779
|
{
|
|
781
780
|
type: "button",
|
|
@@ -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],
|
|
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,31 +865,31 @@ 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: [
|
|
883
882
|
/* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(de, { to: "/", children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
884
|
-
(
|
|
883
|
+
(i == null ? void 0 : i.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
885
884
|
/* @__PURE__ */ r.jsx(
|
|
886
885
|
"img",
|
|
887
886
|
{
|
|
888
|
-
src: /https?:\/\//.test(
|
|
887
|
+
src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : H(
|
|
889
888
|
"/",
|
|
890
|
-
|
|
889
|
+
i.logo.src.light
|
|
891
890
|
),
|
|
892
|
-
alt:
|
|
893
|
-
style: { width:
|
|
891
|
+
alt: i.logo.alt ?? i.pageTitle,
|
|
892
|
+
style: { width: i.logo.width },
|
|
894
893
|
className: "h-10 dark:hidden",
|
|
895
894
|
loading: "lazy"
|
|
896
895
|
}
|
|
@@ -898,47 +897,47 @@ const Te = {
|
|
|
898
897
|
/* @__PURE__ */ r.jsx(
|
|
899
898
|
"img",
|
|
900
899
|
{
|
|
901
|
-
src: /https?:\/\//.test(
|
|
900
|
+
src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : H(
|
|
902
901
|
"/",
|
|
903
|
-
|
|
902
|
+
i.logo.src.dark
|
|
904
903
|
),
|
|
905
|
-
alt:
|
|
906
|
-
style: { width:
|
|
904
|
+
alt: i.logo.alt ?? i.pageTitle,
|
|
905
|
+
style: { width: i.logo.width },
|
|
907
906
|
className: "h-10 hidden dark:block",
|
|
908
907
|
loading: "lazy"
|
|
909
908
|
}
|
|
910
909
|
)
|
|
911
910
|
] }),
|
|
912
|
-
/* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children:
|
|
911
|
+
/* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
|
|
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
|
-
d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(
|
|
931
|
-
d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(
|
|
929
|
+
d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
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
|
-
).length > 0 && /* @__PURE__ */ r.jsx(
|
|
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(
|
|
938
|
-
d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(
|
|
939
|
-
d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(
|
|
936
|
+
).map((c) => /* @__PURE__ */ r.jsx(se, { item: c }, c.label)),
|
|
937
|
+
d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
938
|
+
d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(se, { item: c }, c.label))
|
|
940
939
|
] })
|
|
941
|
-
] }) : /* @__PURE__ */ r.jsx(
|
|
940
|
+
] }) : /* @__PURE__ */ r.jsx(ie, { variant: "ghost", onClick: () => e.login(), children: "Login" })
|
|
942
941
|
}
|
|
943
942
|
),
|
|
944
943
|
/* @__PURE__ */ r.jsx(D, { name: "head-navigation-end" }),
|
|
@@ -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 = q.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 = q.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 = q.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 = q.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,24 +1065,24 @@ 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
|
{
|
|
1074
1073
|
direction: "left",
|
|
1075
1074
|
open: e,
|
|
1076
|
-
onOpenChange: (
|
|
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
|
-
/* @__PURE__ */ r.jsxs(
|
|
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,23 +1206,23 @@ 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
|
-
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
1225
|
+
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ae;
|
|
1216
1226
|
}
|
|
1217
1227
|
static getDerivedStateFromError(e) {
|
|
1218
1228
|
return {
|
|
@@ -1225,12 +1235,12 @@ class ur extends Vt {
|
|
|
1225
1235
|
error: e
|
|
1226
1236
|
} = this.state;
|
|
1227
1237
|
if (e !== null) {
|
|
1228
|
-
for (var s, n, a = arguments.length,
|
|
1229
|
-
i
|
|
1238
|
+
for (var s, n, a = arguments.length, o = new Array(a), i = 0; i < a; i++)
|
|
1239
|
+
o[i] = arguments[i];
|
|
1230
1240
|
(s = (n = this.props).onReset) === null || s === void 0 || s.call(n, {
|
|
1231
|
-
args:
|
|
1241
|
+
args: o,
|
|
1232
1242
|
reason: "imperative-api"
|
|
1233
|
-
}), this.setState(
|
|
1243
|
+
}), this.setState(ae);
|
|
1234
1244
|
}
|
|
1235
1245
|
}
|
|
1236
1246
|
componentDidCatch(e, s) {
|
|
@@ -1243,13 +1253,13 @@ class ur extends Vt {
|
|
|
1243
1253
|
} = this.state, {
|
|
1244
1254
|
resetKeys: a
|
|
1245
1255
|
} = this.props;
|
|
1246
|
-
if (n && s.error !== null &&
|
|
1247
|
-
var
|
|
1248
|
-
(
|
|
1256
|
+
if (n && s.error !== null && hr(e.resetKeys, a)) {
|
|
1257
|
+
var o, i;
|
|
1258
|
+
(o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
|
|
1249
1259
|
next: a,
|
|
1250
1260
|
prev: e.resetKeys,
|
|
1251
1261
|
reason: "keys"
|
|
1252
|
-
}), this.setState(
|
|
1262
|
+
}), this.setState(ae);
|
|
1253
1263
|
}
|
|
1254
1264
|
}
|
|
1255
1265
|
render() {
|
|
@@ -1259,13 +1269,13 @@ class ur extends Vt {
|
|
|
1259
1269
|
FallbackComponent: n,
|
|
1260
1270
|
fallback: a
|
|
1261
1271
|
} = this.props, {
|
|
1262
|
-
didCatch:
|
|
1263
|
-
error:
|
|
1272
|
+
didCatch: o,
|
|
1273
|
+
error: i
|
|
1264
1274
|
} = this.state;
|
|
1265
1275
|
let u = e;
|
|
1266
|
-
if (
|
|
1276
|
+
if (o) {
|
|
1267
1277
|
const d = {
|
|
1268
|
-
error:
|
|
1278
|
+
error: i,
|
|
1269
1279
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1270
1280
|
};
|
|
1271
1281
|
if (typeof s == "function")
|
|
@@ -1275,22 +1285,22 @@ class ur extends Vt {
|
|
|
1275
1285
|
else if (a !== void 0)
|
|
1276
1286
|
u = a;
|
|
1277
1287
|
else
|
|
1278
|
-
throw
|
|
1288
|
+
throw i;
|
|
1279
1289
|
}
|
|
1280
|
-
return De(
|
|
1290
|
+
return De(ur.Provider, {
|
|
1281
1291
|
value: {
|
|
1282
|
-
didCatch:
|
|
1283
|
-
error:
|
|
1292
|
+
didCatch: o,
|
|
1293
|
+
error: i,
|
|
1284
1294
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1285
1295
|
}
|
|
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,45 +1314,49 @@ let hr = () => ({
|
|
|
1304
1314
|
};
|
|
1305
1315
|
}
|
|
1306
1316
|
});
|
|
1307
|
-
class
|
|
1317
|
+
class mr {
|
|
1308
1318
|
constructor(e, s) {
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1319
|
+
j(this, "plugins");
|
|
1320
|
+
j(this, "sidebars");
|
|
1321
|
+
j(this, "topNavigation");
|
|
1322
|
+
j(this, "meta");
|
|
1323
|
+
j(this, "page");
|
|
1324
|
+
j(this, "authentication");
|
|
1325
|
+
j(this, "navigationPlugins");
|
|
1326
|
+
j(this, "emitter", fr());
|
|
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
|
-
|
|
1326
|
-
this.plugins.filter(
|
|
1335
|
+
j(this, "getApiIdentities", async () => (await Promise.all(
|
|
1336
|
+
this.plugins.filter(ds).map((s) => s.getIdentities(this))
|
|
1327
1337
|
)).flat());
|
|
1328
|
-
|
|
1329
|
-
|
|
1338
|
+
j(this, "emitEvent", (e, ...s) => this.emitter.emit(e, ...s));
|
|
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
|
-
|
|
1345
|
-
this.emitter.on(a,
|
|
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]) => {
|
|
1354
|
+
this.emitter.on(a, o);
|
|
1355
|
+
});
|
|
1356
|
+
}), Et.subscribe((n, a) => {
|
|
1357
|
+
this.emitEvent("auth", {
|
|
1358
|
+
prev: a,
|
|
1359
|
+
next: n
|
|
1346
1360
|
});
|
|
1347
1361
|
});
|
|
1348
1362
|
}
|
|
@@ -1350,74 +1364,76 @@ class fr {
|
|
|
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
|
-
var
|
|
1377
|
-
const s =
|
|
1390
|
+
var p, C;
|
|
1391
|
+
const s = re(
|
|
1378
1392
|
() => ({ ...it, ...e.overrides }),
|
|
1379
1393
|
[e.overrides]
|
|
1380
|
-
), n =
|
|
1381
|
-
var
|
|
1394
|
+
), n = _(), a = re(() => {
|
|
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
|
-
...
|
|
1390
|
-
...(
|
|
1403
|
+
...rs,
|
|
1404
|
+
...(y = e.mdx) == null ? void 0 : y.components
|
|
1391
1405
|
};
|
|
1392
|
-
}, [(
|
|
1393
|
-
() => i ? { stagger: !0 } : { stagger:
|
|
1394
|
-
[
|
|
1395
|
-
),
|
|
1396
|
-
|
|
1397
|
-
i ||
|
|
1398
|
-
}, [i,
|
|
1399
|
-
const [
|
|
1400
|
-
() => new
|
|
1401
|
-
),
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1406
|
+
}, [(p = e.mdx) == null ? void 0 : p.components, e.plugins]), { stagger: o } = _t(oe), [i, u] = Z(!1), d = re(
|
|
1407
|
+
() => i ? { stagger: !0 } : { stagger: o },
|
|
1408
|
+
[o, i]
|
|
1409
|
+
), c = ue(), x = Le();
|
|
1410
|
+
Y(() => {
|
|
1411
|
+
i || u(!0);
|
|
1412
|
+
}, [i, c.location]);
|
|
1413
|
+
const [f] = Z(
|
|
1414
|
+
() => new mr(e, x)
|
|
1415
|
+
), h = (C = e.plugins) == null ? void 0 : C.flatMap(
|
|
1416
|
+
(m) => {
|
|
1417
|
+
var y;
|
|
1418
|
+
return fs(m) ? ((y = m.getHead) == null ? void 0 : y.call(m, { location: n })) ?? [] : [];
|
|
1419
|
+
}
|
|
1420
|
+
).map((m, y) => /* @__PURE__ */ r.jsx(le, { children: m }, y));
|
|
1405
1421
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1406
|
-
|
|
1407
|
-
/* @__PURE__ */ r.jsx(
|
|
1408
|
-
/* @__PURE__ */ r.jsx(
|
|
1409
|
-
/* @__PURE__ */ r.jsx(ht, { components:
|
|
1422
|
+
h,
|
|
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, {}) }) }) }) }) })
|
|
1410
1426
|
] }) })
|
|
1411
1427
|
] });
|
|
1412
1428
|
}
|
|
1413
1429
|
);
|
|
1414
1430
|
ot.displayName = "ZudokoInner";
|
|
1415
|
-
const lt = (t) => /* @__PURE__ */ r.jsx(
|
|
1431
|
+
const lt = (t) => /* @__PURE__ */ r.jsx(dr, { FallbackComponent: gr, children: /* @__PURE__ */ r.jsx(ot, { ...t }) });
|
|
1416
1432
|
lt.displayName = "Zudoku";
|
|
1417
|
-
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;
|
|
1418
1434
|
export {
|
|
1419
|
-
|
|
1420
|
-
|
|
1435
|
+
Vr as Bootstrap,
|
|
1436
|
+
_r as BootstrapStatic,
|
|
1421
1437
|
dn as Button,
|
|
1422
1438
|
rn as CACHE_KEYS,
|
|
1423
1439
|
on as Callout,
|
|
@@ -1428,7 +1444,7 @@ export {
|
|
|
1428
1444
|
ln as Markdown,
|
|
1429
1445
|
Wr as RouteGuard,
|
|
1430
1446
|
Xr as RouterError,
|
|
1431
|
-
|
|
1447
|
+
Gr as ServerError,
|
|
1432
1448
|
cn as Spinner,
|
|
1433
1449
|
an as StatusPage,
|
|
1434
1450
|
nn as Zudoku,
|