zudoku 0.18.5 → 0.18.7
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/entry.client.d.ts +1 -0
- package/dist/app/entry.client.js +8 -0
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +1 -0
- package/dist/app/entry.server.js +1 -0
- package/dist/app/entry.server.js.map +1 -1
- package/dist/lib/components/Layout.js +3 -2
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +1 -1
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/Search.d.ts +3 -1
- package/dist/lib/components/Search.js +3 -3
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
- package/dist/lib/components/navigation/Sidebar.js +2 -2
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -1
- package/dist/lib/components/navigation/SidebarCategory.js +2 -2
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +2 -2
- package/dist/lib/components/navigation/SidebarItem.js +5 -5
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +4 -0
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +2 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +1 -0
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +44 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +2 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js +1 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/vite/build.js +7 -1
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.js +10 -0
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.js +7 -0
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/output.js +31 -16
- package/dist/vite/output.js.map +1 -1
- package/dist/vite/plugin-mdx.js +48 -1
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/lib/AnchorLink-BR0MvI7n.js +35 -0
- package/lib/AnchorLink-BR0MvI7n.js.map +1 -0
- package/lib/{MdxPage-B2FpJ9KC.js → MdxPage-HjFSZJQk.js} +85 -80
- package/lib/MdxPage-HjFSZJQk.js.map +1 -0
- package/lib/{OperationList-BkNQEsNs.js → OperationList-DzE32oyS.js} +971 -961
- package/lib/{OperationList-BkNQEsNs.js.map → OperationList-DzE32oyS.js.map} +1 -1
- package/lib/assets/{worker-BHClFO3A.js → worker-CyxLedqF.js} +435 -431
- package/lib/assets/{worker-BHClFO3A.js.map → worker-CyxLedqF.js.map} +1 -1
- package/lib/{createServer-CpJlUPtn.js → createServer-DTiCfoql.js} +5 -1
- package/lib/{createServer-CpJlUPtn.js.map → createServer-DTiCfoql.js.map} +1 -1
- package/lib/{index-C7SaIME0.js → index-NNCc1BSK.js} +5 -4
- package/lib/{index-C7SaIME0.js.map → index-NNCc1BSK.js.map} +1 -1
- package/lib/{AnchorLink-CDlhr8gL.js → index.esm-Bm8pj-bc.js} +223 -254
- package/lib/index.esm-Bm8pj-bc.js.map +1 -0
- package/lib/ui/Drawer.js +79 -79
- package/lib/ui/Drawer.js.map +1 -1
- package/lib/zudoku.components.js +445 -414
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +4 -3
- package/src/app/entry.client.tsx +9 -0
- package/src/app/entry.server.tsx +1 -0
- package/src/lib/components/Layout.tsx +8 -3
- package/src/lib/components/MobileTopNavigation.tsx +18 -18
- package/src/lib/components/Search.tsx +3 -3
- package/src/lib/components/navigation/Sidebar.tsx +18 -8
- package/src/lib/components/navigation/SidebarCategory.tsx +3 -0
- package/src/lib/components/navigation/SidebarItem.tsx +12 -2
- package/src/lib/oas/graphql/index.ts +4 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +2 -0
- package/src/lib/plugins/markdown/index.tsx +1 -0
- package/src/lib/plugins/openapi/OperationList.tsx +62 -2
- package/src/lib/plugins/openapi/graphql/gql.ts +2 -2
- package/src/lib/plugins/openapi/graphql/graphql.ts +3 -0
- package/lib/AnchorLink-CDlhr8gL.js.map +0 -1
- package/lib/MdxPage-B2FpJ9KC.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
var yt = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var Ce = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
5
|
var bt = (e, t, r) => t in e ? yt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var N = (e, t, r) => bt(e, typeof t != "symbol" ? t + "" : t, r), Pe = (e, t, r) => t.has(e) || Ce("Cannot " + r);
|
|
7
|
+
var u = (e, t, r) => (Pe(e, t, "read from private field"), r ? r.call(e) : t.get(e)), E = (e, t, r) => t.has(e) ? Ce("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, s) => (Pe(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r);
|
|
8
8
|
var J = (e, t, r, s) => ({
|
|
9
9
|
set _(n) {
|
|
10
10
|
y(e, t, n, r);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return
|
|
13
|
+
return u(e, t, s);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { a as He,
|
|
17
|
-
import { d as
|
|
18
|
-
import { u as
|
|
19
|
-
import { E as Ue, S as
|
|
16
|
+
import { a as He, H as me } from "./index.esm-Bm8pj-bc.js";
|
|
17
|
+
import { d as jt, R as wt, N as ae, u as St, L as ge } from "./index-Yn8c3UWE.js";
|
|
18
|
+
import { u as Nt } from "./state-tsXBLONe.js";
|
|
19
|
+
import { E as Ue, S as O, a as Et, R as Ct } from "./SlotletProvider-DyomlzGx.js";
|
|
20
20
|
import { j as a } from "./jsx-runtime-B6kdoens.js";
|
|
21
|
-
import { Button as
|
|
22
|
-
import { Callout as
|
|
23
|
-
import { S as $e, l as Ke, Q as
|
|
24
|
-
import { M as
|
|
21
|
+
import { Button as Pt } from "./ui/Button.js";
|
|
22
|
+
import { Callout as kt } from "./ui/Callout.js";
|
|
23
|
+
import { S as $e, l as Ke, Q as Dt, n as S, m as ke, o as De, p as A, q as Ot, r as At, t as Mt, v as Rt, w as Oe, x as Ae, y as It, h as Me, z as Re, A as Tt, d as _t, B as Ve, C as Qt, j as q, u as F, D as Ze, E as Ft, g as qt, Z as Lt } from "./utils-DcpDOncX.js";
|
|
24
|
+
import { M as zt, u as se } from "./hook-hEqe7fPB.js";
|
|
25
25
|
import * as G from "react";
|
|
26
|
-
import Ye, { StrictMode as We, useState as
|
|
27
|
-
import { a as xe, c as
|
|
28
|
-
import { B as
|
|
29
|
-
import { I as
|
|
26
|
+
import Ye, { StrictMode as We, useState as Q, useEffect as L, useRef as pe, useCallback as Bt, Suspense as ve, memo as Xe, forwardRef as Ht, createContext as Je, Component as Ut, createElement as Ie, useMemo as ne, useContext as $t, Fragment as Kt } from "react";
|
|
27
|
+
import { a as xe, c as Vt } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
28
|
+
import { B as Zt } from "./router-lfyopgBI.js";
|
|
29
|
+
import { I as Yt, y as Wt, u as ye, j as be, O as Ge } from "./index-Czzd9rjU.js";
|
|
30
30
|
import { S as ue, a as ie } from "./SidebarBadge-DxFJcJ6V.js";
|
|
31
31
|
import { C as je } from "./ClientOnly-E7hGysn1.js";
|
|
32
|
-
import { ChevronRightIcon as
|
|
32
|
+
import { ChevronRightIcon as Xt, ExternalLinkIcon as Jt, CircleXIcon as Gt, SearchIcon as er, MoonStarIcon as tr, SunIcon as rr, MenuIcon as ar, PanelLeftIcon as sr } from "lucide-react";
|
|
33
33
|
import { Drawer as et, DrawerTrigger as tt, DrawerContent as rt, DrawerTitle as at } from "./ui/Drawer.js";
|
|
34
34
|
import { c as R } from "./cn-BmFQLtkS.js";
|
|
35
|
-
import { u as we, a as
|
|
36
|
-
import { c as
|
|
35
|
+
import { u as we, a as nr, V as ir } from "./Markdown-ievDDhFT.js";
|
|
36
|
+
import { c as or, a as lr } from "./index-BuAyrJe3.js";
|
|
37
|
+
import { A as cr, M as ur, u as dr } from "./AnchorLink-BR0MvI7n.js";
|
|
37
38
|
import * as oe from "@radix-ui/react-collapsible";
|
|
38
39
|
import { B as de } from "./Button-jK0EsymC.js";
|
|
39
40
|
import { DropdownMenu as hr, DropdownMenuTrigger as fr, DropdownMenuContent as mr, DropdownMenuLabel as gr, DropdownMenuSeparator as le, DropdownMenuSub as pr, DropdownMenuSubTrigger as vr, DropdownMenuPortal as xr, DropdownMenuSubContent as yr, DropdownMenuItem as br } from "./ui/DropdownMenu.js";
|
|
@@ -44,16 +45,16 @@ import { S as Nr } from "./Spinner-3cQDBVGr.js";
|
|
|
44
45
|
function Er({ error: e }) {
|
|
45
46
|
return /* @__PURE__ */ a.jsx(Ue, { error: e });
|
|
46
47
|
}
|
|
47
|
-
var k, Le,
|
|
48
|
+
var k, Le, Cr = (Le = class extends $e {
|
|
48
49
|
constructor(t = {}) {
|
|
49
50
|
super();
|
|
50
|
-
|
|
51
|
+
E(this, k);
|
|
51
52
|
this.config = t, y(this, k, /* @__PURE__ */ new Map());
|
|
52
53
|
}
|
|
53
54
|
build(t, r, s) {
|
|
54
55
|
const n = r.queryKey, o = r.queryHash ?? Ke(n, r);
|
|
55
56
|
let i = this.get(o);
|
|
56
|
-
return i || (i = new
|
|
57
|
+
return i || (i = new Dt({
|
|
57
58
|
cache: this,
|
|
58
59
|
queryKey: n,
|
|
59
60
|
queryHash: o,
|
|
@@ -63,27 +64,27 @@ var k, Le, Pr = (Le = class extends $e {
|
|
|
63
64
|
}), this.add(i)), i;
|
|
64
65
|
}
|
|
65
66
|
add(t) {
|
|
66
|
-
|
|
67
|
+
u(this, k).has(t.queryHash) || (u(this, k).set(t.queryHash, t), this.notify({
|
|
67
68
|
type: "added",
|
|
68
69
|
query: t
|
|
69
70
|
}));
|
|
70
71
|
}
|
|
71
72
|
remove(t) {
|
|
72
|
-
const r =
|
|
73
|
-
r && (t.destroy(), r === t &&
|
|
73
|
+
const r = u(this, k).get(t.queryHash);
|
|
74
|
+
r && (t.destroy(), r === t && u(this, k).delete(t.queryHash), this.notify({ type: "removed", query: t }));
|
|
74
75
|
}
|
|
75
76
|
clear() {
|
|
76
|
-
|
|
77
|
+
S.batch(() => {
|
|
77
78
|
this.getAll().forEach((t) => {
|
|
78
79
|
this.remove(t);
|
|
79
80
|
});
|
|
80
81
|
});
|
|
81
82
|
}
|
|
82
83
|
get(t) {
|
|
83
|
-
return
|
|
84
|
+
return u(this, k).get(t);
|
|
84
85
|
}
|
|
85
86
|
getAll() {
|
|
86
|
-
return [...
|
|
87
|
+
return [...u(this, k).values()];
|
|
87
88
|
}
|
|
88
89
|
find(t) {
|
|
89
90
|
const r = { exact: !0, ...t };
|
|
@@ -96,35 +97,35 @@ var k, Le, Pr = (Le = class extends $e {
|
|
|
96
97
|
return Object.keys(t).length > 0 ? r.filter((s) => ke(t, s)) : r;
|
|
97
98
|
}
|
|
98
99
|
notify(t) {
|
|
99
|
-
|
|
100
|
+
S.batch(() => {
|
|
100
101
|
this.listeners.forEach((r) => {
|
|
101
102
|
r(t);
|
|
102
103
|
});
|
|
103
104
|
});
|
|
104
105
|
}
|
|
105
106
|
onFocus() {
|
|
106
|
-
|
|
107
|
+
S.batch(() => {
|
|
107
108
|
this.getAll().forEach((t) => {
|
|
108
109
|
t.onFocus();
|
|
109
110
|
});
|
|
110
111
|
});
|
|
111
112
|
}
|
|
112
113
|
onOnline() {
|
|
113
|
-
|
|
114
|
+
S.batch(() => {
|
|
114
115
|
this.getAll().forEach((t) => {
|
|
115
116
|
t.onOnline();
|
|
116
117
|
});
|
|
117
118
|
});
|
|
118
119
|
}
|
|
119
|
-
}, k = new WeakMap(), Le),
|
|
120
|
+
}, k = new WeakMap(), Le), w, Z, ze, Pr = (ze = class extends $e {
|
|
120
121
|
constructor(t = {}) {
|
|
121
122
|
super();
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
this.config = t, y(this,
|
|
123
|
+
E(this, w);
|
|
124
|
+
E(this, Z);
|
|
125
|
+
this.config = t, y(this, w, /* @__PURE__ */ new Map()), y(this, Z, Date.now());
|
|
125
126
|
}
|
|
126
127
|
build(t, r, s) {
|
|
127
|
-
const n = new
|
|
128
|
+
const n = new zt({
|
|
128
129
|
mutationCache: this,
|
|
129
130
|
mutationId: ++J(this, Z)._,
|
|
130
131
|
options: t.defaultMutationOptions(r),
|
|
@@ -133,49 +134,49 @@ var k, Le, Pr = (Le = class extends $e {
|
|
|
133
134
|
return this.add(n), n;
|
|
134
135
|
}
|
|
135
136
|
add(t) {
|
|
136
|
-
const r = ee(t), s =
|
|
137
|
-
s.push(t),
|
|
137
|
+
const r = ee(t), s = u(this, w).get(r) ?? [];
|
|
138
|
+
s.push(t), u(this, w).set(r, s), this.notify({ type: "added", mutation: t });
|
|
138
139
|
}
|
|
139
140
|
remove(t) {
|
|
140
141
|
var s;
|
|
141
142
|
const r = ee(t);
|
|
142
|
-
if (
|
|
143
|
-
const n = (s =
|
|
144
|
-
n && (n.length === 0 ?
|
|
143
|
+
if (u(this, w).has(r)) {
|
|
144
|
+
const n = (s = u(this, w).get(r)) == null ? void 0 : s.filter((o) => o !== t);
|
|
145
|
+
n && (n.length === 0 ? u(this, w).delete(r) : u(this, w).set(r, n));
|
|
145
146
|
}
|
|
146
147
|
this.notify({ type: "removed", mutation: t });
|
|
147
148
|
}
|
|
148
149
|
canRun(t) {
|
|
149
150
|
var s;
|
|
150
|
-
const r = (s =
|
|
151
|
+
const r = (s = u(this, w).get(ee(t))) == null ? void 0 : s.find((n) => n.state.status === "pending");
|
|
151
152
|
return !r || r === t;
|
|
152
153
|
}
|
|
153
154
|
runNext(t) {
|
|
154
155
|
var s;
|
|
155
|
-
const r = (s =
|
|
156
|
+
const r = (s = u(this, w).get(ee(t))) == null ? void 0 : s.find((n) => n !== t && n.state.isPaused);
|
|
156
157
|
return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
|
|
157
158
|
}
|
|
158
159
|
clear() {
|
|
159
|
-
|
|
160
|
+
S.batch(() => {
|
|
160
161
|
this.getAll().forEach((t) => {
|
|
161
162
|
this.remove(t);
|
|
162
163
|
});
|
|
163
164
|
});
|
|
164
165
|
}
|
|
165
166
|
getAll() {
|
|
166
|
-
return [...
|
|
167
|
+
return [...u(this, w).values()].flat();
|
|
167
168
|
}
|
|
168
169
|
find(t) {
|
|
169
170
|
const r = { exact: !0, ...t };
|
|
170
171
|
return this.getAll().find(
|
|
171
|
-
(s) =>
|
|
172
|
+
(s) => De(r, s)
|
|
172
173
|
);
|
|
173
174
|
}
|
|
174
175
|
findAll(t = {}) {
|
|
175
|
-
return this.getAll().filter((r) =>
|
|
176
|
+
return this.getAll().filter((r) => De(t, r));
|
|
176
177
|
}
|
|
177
178
|
notify(t) {
|
|
178
|
-
|
|
179
|
+
S.batch(() => {
|
|
179
180
|
this.listeners.forEach((r) => {
|
|
180
181
|
r(t);
|
|
181
182
|
});
|
|
@@ -183,13 +184,13 @@ var k, Le, Pr = (Le = class extends $e {
|
|
|
183
184
|
}
|
|
184
185
|
resumePausedMutations() {
|
|
185
186
|
const t = this.getAll().filter((r) => r.state.isPaused);
|
|
186
|
-
return
|
|
187
|
+
return S.batch(
|
|
187
188
|
() => Promise.all(
|
|
188
|
-
t.map((r) => r.continue().catch(
|
|
189
|
+
t.map((r) => r.continue().catch(A))
|
|
189
190
|
)
|
|
190
191
|
);
|
|
191
192
|
}
|
|
192
|
-
},
|
|
193
|
+
}, w = new WeakMap(), Z = new WeakMap(), ze);
|
|
193
194
|
function ee(e) {
|
|
194
195
|
var t;
|
|
195
196
|
return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
|
|
@@ -197,60 +198,60 @@ function ee(e) {
|
|
|
197
198
|
function Te(e) {
|
|
198
199
|
return {
|
|
199
200
|
onFetch: (t, r) => {
|
|
200
|
-
var
|
|
201
|
-
const s = t.options, n = (
|
|
202
|
-
let
|
|
203
|
-
const
|
|
204
|
-
let
|
|
205
|
-
const
|
|
201
|
+
var m, g, f, p, x;
|
|
202
|
+
const s = t.options, n = (f = (g = (m = t.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : f.direction, o = ((p = t.state.data) == null ? void 0 : p.pages) || [], i = ((x = t.state.data) == null ? void 0 : x.pageParams) || [];
|
|
203
|
+
let l = { pages: [], pageParams: [] }, d = 0;
|
|
204
|
+
const c = async () => {
|
|
205
|
+
let h = !1;
|
|
206
|
+
const j = (b) => {
|
|
206
207
|
Object.defineProperty(b, "signal", {
|
|
207
208
|
enumerable: !0,
|
|
208
|
-
get: () => (t.signal.aborted ?
|
|
209
|
-
|
|
209
|
+
get: () => (t.signal.aborted ? h = !0 : t.signal.addEventListener("abort", () => {
|
|
210
|
+
h = !0;
|
|
210
211
|
}), t.signal)
|
|
211
212
|
});
|
|
212
|
-
}, W =
|
|
213
|
-
if (
|
|
213
|
+
}, W = Ot(t.options, t.fetchOptions), $ = async (b, C, K) => {
|
|
214
|
+
if (h)
|
|
214
215
|
return Promise.reject();
|
|
215
|
-
if (
|
|
216
|
+
if (C == null && b.pages.length)
|
|
216
217
|
return Promise.resolve(b);
|
|
217
218
|
const X = {
|
|
218
219
|
queryKey: t.queryKey,
|
|
219
|
-
pageParam:
|
|
220
|
+
pageParam: C,
|
|
220
221
|
direction: K ? "backward" : "forward",
|
|
221
222
|
meta: t.options.meta
|
|
222
223
|
};
|
|
223
|
-
|
|
224
|
+
j(X);
|
|
224
225
|
const xt = await W(
|
|
225
226
|
X
|
|
226
|
-
), { maxPages: Ne } = t.options, Ee = K ?
|
|
227
|
+
), { maxPages: Ne } = t.options, Ee = K ? At : Mt;
|
|
227
228
|
return {
|
|
228
229
|
pages: Ee(b.pages, xt, Ne),
|
|
229
|
-
pageParams: Ee(b.pageParams,
|
|
230
|
+
pageParams: Ee(b.pageParams, C, Ne)
|
|
230
231
|
};
|
|
231
232
|
};
|
|
232
233
|
if (n && o.length) {
|
|
233
|
-
const b = n === "backward",
|
|
234
|
+
const b = n === "backward", C = b ? kr : _e, K = {
|
|
234
235
|
pages: o,
|
|
235
236
|
pageParams: i
|
|
236
|
-
}, X =
|
|
237
|
-
|
|
237
|
+
}, X = C(s, K);
|
|
238
|
+
l = await $(K, X, b);
|
|
238
239
|
} else {
|
|
239
240
|
const b = e ?? o.length;
|
|
240
241
|
do {
|
|
241
|
-
const
|
|
242
|
-
if (d > 0 &&
|
|
242
|
+
const C = d === 0 ? i[0] ?? s.initialPageParam : _e(s, l);
|
|
243
|
+
if (d > 0 && C == null)
|
|
243
244
|
break;
|
|
244
|
-
|
|
245
|
+
l = await $(l, C), d++;
|
|
245
246
|
} while (d < b);
|
|
246
247
|
}
|
|
247
|
-
return
|
|
248
|
+
return l;
|
|
248
249
|
};
|
|
249
250
|
t.options.persister ? t.fetchFn = () => {
|
|
250
|
-
var
|
|
251
|
-
return (
|
|
252
|
-
|
|
253
|
-
|
|
251
|
+
var h, j;
|
|
252
|
+
return (j = (h = t.options).persister) == null ? void 0 : j.call(
|
|
253
|
+
h,
|
|
254
|
+
c,
|
|
254
255
|
{
|
|
255
256
|
queryKey: t.queryKey,
|
|
256
257
|
meta: t.options.meta,
|
|
@@ -258,7 +259,7 @@ function Te(e) {
|
|
|
258
259
|
},
|
|
259
260
|
r
|
|
260
261
|
);
|
|
261
|
-
} : t.fetchFn =
|
|
262
|
+
} : t.fetchFn = c;
|
|
262
263
|
}
|
|
263
264
|
};
|
|
264
265
|
}
|
|
@@ -275,65 +276,65 @@ function kr(e, { pages: t, pageParams: r }) {
|
|
|
275
276
|
var s;
|
|
276
277
|
return t.length > 0 ? (s = e.getPreviousPageParam) == null ? void 0 : s.call(e, t[0], t, r[0], r) : void 0;
|
|
277
278
|
}
|
|
278
|
-
var
|
|
279
|
+
var v, I, T, z, B, _, H, U, Be, Dr = (Be = class {
|
|
279
280
|
constructor(e = {}) {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
y(this,
|
|
281
|
+
E(this, v);
|
|
282
|
+
E(this, I);
|
|
283
|
+
E(this, T);
|
|
284
|
+
E(this, z);
|
|
285
|
+
E(this, B);
|
|
286
|
+
E(this, _);
|
|
287
|
+
E(this, H);
|
|
288
|
+
E(this, U);
|
|
289
|
+
y(this, v, e.queryCache || new Cr()), y(this, I, e.mutationCache || new Pr()), y(this, T, e.defaultOptions || {}), y(this, z, /* @__PURE__ */ new Map()), y(this, B, /* @__PURE__ */ new Map()), y(this, _, 0);
|
|
289
290
|
}
|
|
290
291
|
mount() {
|
|
291
|
-
J(this, _)._++,
|
|
292
|
-
e && (await this.resumePausedMutations(),
|
|
293
|
-
})), y(this, U,
|
|
294
|
-
e && (await this.resumePausedMutations(),
|
|
292
|
+
J(this, _)._++, u(this, _) === 1 && (y(this, H, Rt.subscribe(async (e) => {
|
|
293
|
+
e && (await this.resumePausedMutations(), u(this, v).onFocus());
|
|
294
|
+
})), y(this, U, Oe.subscribe(async (e) => {
|
|
295
|
+
e && (await this.resumePausedMutations(), u(this, v).onOnline());
|
|
295
296
|
})));
|
|
296
297
|
}
|
|
297
298
|
unmount() {
|
|
298
299
|
var e, t;
|
|
299
|
-
J(this, _)._--,
|
|
300
|
+
J(this, _)._--, u(this, _) === 0 && ((e = u(this, H)) == null || e.call(this), y(this, H, void 0), (t = u(this, U)) == null || t.call(this), y(this, U, void 0));
|
|
300
301
|
}
|
|
301
302
|
isFetching(e) {
|
|
302
|
-
return
|
|
303
|
+
return u(this, v).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
303
304
|
}
|
|
304
305
|
isMutating(e) {
|
|
305
|
-
return
|
|
306
|
+
return u(this, I).findAll({ ...e, status: "pending" }).length;
|
|
306
307
|
}
|
|
307
308
|
getQueryData(e) {
|
|
308
309
|
var r;
|
|
309
310
|
const t = this.defaultQueryOptions({ queryKey: e });
|
|
310
|
-
return (r =
|
|
311
|
+
return (r = u(this, v).get(t.queryHash)) == null ? void 0 : r.state.data;
|
|
311
312
|
}
|
|
312
313
|
ensureQueryData(e) {
|
|
313
314
|
const t = this.getQueryData(e.queryKey);
|
|
314
315
|
if (t === void 0)
|
|
315
316
|
return this.fetchQuery(e);
|
|
316
317
|
{
|
|
317
|
-
const r = this.defaultQueryOptions(e), s =
|
|
318
|
-
return e.revalidateIfStale && s.isStaleByTime(
|
|
318
|
+
const r = this.defaultQueryOptions(e), s = u(this, v).build(this, r);
|
|
319
|
+
return e.revalidateIfStale && s.isStaleByTime(Ae(r.staleTime, s)) && this.prefetchQuery(r), Promise.resolve(t);
|
|
319
320
|
}
|
|
320
321
|
}
|
|
321
322
|
getQueriesData(e) {
|
|
322
|
-
return
|
|
323
|
+
return u(this, v).findAll(e).map(({ queryKey: t, state: r }) => {
|
|
323
324
|
const s = r.data;
|
|
324
325
|
return [t, s];
|
|
325
326
|
});
|
|
326
327
|
}
|
|
327
328
|
setQueryData(e, t, r) {
|
|
328
|
-
const s = this.defaultQueryOptions({ queryKey: e }), n =
|
|
329
|
+
const s = this.defaultQueryOptions({ queryKey: e }), n = u(this, v).get(
|
|
329
330
|
s.queryHash
|
|
330
|
-
), o = n == null ? void 0 : n.state.data, i =
|
|
331
|
+
), o = n == null ? void 0 : n.state.data, i = It(t, o);
|
|
331
332
|
if (i !== void 0)
|
|
332
|
-
return
|
|
333
|
+
return u(this, v).build(this, s).setData(i, { ...r, manual: !0 });
|
|
333
334
|
}
|
|
334
335
|
setQueriesData(e, t, r) {
|
|
335
|
-
return
|
|
336
|
-
() =>
|
|
336
|
+
return S.batch(
|
|
337
|
+
() => u(this, v).findAll(e).map(({ queryKey: s }) => [
|
|
337
338
|
s,
|
|
338
339
|
this.setQueryData(s, t, r)
|
|
339
340
|
])
|
|
@@ -342,34 +343,34 @@ var x, I, T, z, B, _, H, U, Be, Ar = (Be = class {
|
|
|
342
343
|
getQueryState(e) {
|
|
343
344
|
var r;
|
|
344
345
|
const t = this.defaultQueryOptions({ queryKey: e });
|
|
345
|
-
return (r =
|
|
346
|
+
return (r = u(this, v).get(t.queryHash)) == null ? void 0 : r.state;
|
|
346
347
|
}
|
|
347
348
|
removeQueries(e) {
|
|
348
|
-
const t =
|
|
349
|
-
|
|
349
|
+
const t = u(this, v);
|
|
350
|
+
S.batch(() => {
|
|
350
351
|
t.findAll(e).forEach((r) => {
|
|
351
352
|
t.remove(r);
|
|
352
353
|
});
|
|
353
354
|
});
|
|
354
355
|
}
|
|
355
356
|
resetQueries(e, t) {
|
|
356
|
-
const r =
|
|
357
|
+
const r = u(this, v), s = {
|
|
357
358
|
type: "active",
|
|
358
359
|
...e
|
|
359
360
|
};
|
|
360
|
-
return
|
|
361
|
+
return S.batch(() => (r.findAll(e).forEach((n) => {
|
|
361
362
|
n.reset();
|
|
362
363
|
}), this.refetchQueries(s, t)));
|
|
363
364
|
}
|
|
364
365
|
cancelQueries(e = {}, t = {}) {
|
|
365
|
-
const r = { revert: !0, ...t }, s =
|
|
366
|
-
() =>
|
|
366
|
+
const r = { revert: !0, ...t }, s = S.batch(
|
|
367
|
+
() => u(this, v).findAll(e).map((n) => n.cancel(r))
|
|
367
368
|
);
|
|
368
|
-
return Promise.all(s).then(
|
|
369
|
+
return Promise.all(s).then(A).catch(A);
|
|
369
370
|
}
|
|
370
371
|
invalidateQueries(e = {}, t = {}) {
|
|
371
|
-
return
|
|
372
|
-
if (
|
|
372
|
+
return S.batch(() => {
|
|
373
|
+
if (u(this, v).findAll(e).forEach((s) => {
|
|
373
374
|
s.invalidate();
|
|
374
375
|
}), e.refetchType === "none")
|
|
375
376
|
return Promise.resolve();
|
|
@@ -384,70 +385,70 @@ var x, I, T, z, B, _, H, U, Be, Ar = (Be = class {
|
|
|
384
385
|
const r = {
|
|
385
386
|
...t,
|
|
386
387
|
cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
|
|
387
|
-
}, s =
|
|
388
|
-
() =>
|
|
388
|
+
}, s = S.batch(
|
|
389
|
+
() => u(this, v).findAll(e).filter((n) => !n.isDisabled()).map((n) => {
|
|
389
390
|
let o = n.fetch(void 0, r);
|
|
390
|
-
return r.throwOnError || (o = o.catch(
|
|
391
|
+
return r.throwOnError || (o = o.catch(A)), n.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
391
392
|
})
|
|
392
393
|
);
|
|
393
|
-
return Promise.all(s).then(
|
|
394
|
+
return Promise.all(s).then(A);
|
|
394
395
|
}
|
|
395
396
|
fetchQuery(e) {
|
|
396
397
|
const t = this.defaultQueryOptions(e);
|
|
397
398
|
t.retry === void 0 && (t.retry = !1);
|
|
398
|
-
const r =
|
|
399
|
+
const r = u(this, v).build(this, t);
|
|
399
400
|
return r.isStaleByTime(
|
|
400
|
-
|
|
401
|
+
Ae(t.staleTime, r)
|
|
401
402
|
) ? r.fetch(t) : Promise.resolve(r.state.data);
|
|
402
403
|
}
|
|
403
404
|
prefetchQuery(e) {
|
|
404
|
-
return this.fetchQuery(e).then(
|
|
405
|
+
return this.fetchQuery(e).then(A).catch(A);
|
|
405
406
|
}
|
|
406
407
|
fetchInfiniteQuery(e) {
|
|
407
408
|
return e.behavior = Te(e.pages), this.fetchQuery(e);
|
|
408
409
|
}
|
|
409
410
|
prefetchInfiniteQuery(e) {
|
|
410
|
-
return this.fetchInfiniteQuery(e).then(
|
|
411
|
+
return this.fetchInfiniteQuery(e).then(A).catch(A);
|
|
411
412
|
}
|
|
412
413
|
ensureInfiniteQueryData(e) {
|
|
413
414
|
return e.behavior = Te(e.pages), this.ensureQueryData(e);
|
|
414
415
|
}
|
|
415
416
|
resumePausedMutations() {
|
|
416
|
-
return
|
|
417
|
+
return Oe.isOnline() ? u(this, I).resumePausedMutations() : Promise.resolve();
|
|
417
418
|
}
|
|
418
419
|
getQueryCache() {
|
|
419
|
-
return
|
|
420
|
+
return u(this, v);
|
|
420
421
|
}
|
|
421
422
|
getMutationCache() {
|
|
422
|
-
return
|
|
423
|
+
return u(this, I);
|
|
423
424
|
}
|
|
424
425
|
getDefaultOptions() {
|
|
425
|
-
return
|
|
426
|
+
return u(this, T);
|
|
426
427
|
}
|
|
427
428
|
setDefaultOptions(e) {
|
|
428
429
|
y(this, T, e);
|
|
429
430
|
}
|
|
430
431
|
setQueryDefaults(e, t) {
|
|
431
|
-
|
|
432
|
+
u(this, z).set(Me(e), {
|
|
432
433
|
queryKey: e,
|
|
433
434
|
defaultOptions: t
|
|
434
435
|
});
|
|
435
436
|
}
|
|
436
437
|
getQueryDefaults(e) {
|
|
437
|
-
const t = [...
|
|
438
|
+
const t = [...u(this, z).values()];
|
|
438
439
|
let r = {};
|
|
439
440
|
return t.forEach((s) => {
|
|
440
441
|
Re(e, s.queryKey) && (r = { ...r, ...s.defaultOptions });
|
|
441
442
|
}), r;
|
|
442
443
|
}
|
|
443
444
|
setMutationDefaults(e, t) {
|
|
444
|
-
|
|
445
|
+
u(this, B).set(Me(e), {
|
|
445
446
|
mutationKey: e,
|
|
446
447
|
defaultOptions: t
|
|
447
448
|
});
|
|
448
449
|
}
|
|
449
450
|
getMutationDefaults(e) {
|
|
450
|
-
const t = [...
|
|
451
|
+
const t = [...u(this, B).values()];
|
|
451
452
|
let r = {};
|
|
452
453
|
return t.forEach((s) => {
|
|
453
454
|
Re(e, s.mutationKey) && (r = { ...r, ...s.defaultOptions });
|
|
@@ -457,7 +458,7 @@ var x, I, T, z, B, _, H, U, Be, Ar = (Be = class {
|
|
|
457
458
|
if (e._defaulted)
|
|
458
459
|
return e;
|
|
459
460
|
const t = {
|
|
460
|
-
...
|
|
461
|
+
...u(this, T).queries,
|
|
461
462
|
...this.getQueryDefaults(e.queryKey),
|
|
462
463
|
...e,
|
|
463
464
|
_defaulted: !0
|
|
@@ -465,109 +466,109 @@ var x, I, T, z, B, _, H, U, Be, Ar = (Be = class {
|
|
|
465
466
|
return t.queryHash || (t.queryHash = Ke(
|
|
466
467
|
t.queryKey,
|
|
467
468
|
t
|
|
468
|
-
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn ===
|
|
469
|
+
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === Tt && (t.enabled = !1), t;
|
|
469
470
|
}
|
|
470
471
|
defaultMutationOptions(e) {
|
|
471
472
|
return e != null && e._defaulted ? e : {
|
|
472
|
-
...
|
|
473
|
+
...u(this, T).mutations,
|
|
473
474
|
...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
|
|
474
475
|
...e,
|
|
475
476
|
_defaulted: !0
|
|
476
477
|
};
|
|
477
478
|
}
|
|
478
479
|
clear() {
|
|
479
|
-
|
|
480
|
+
u(this, v).clear(), u(this, I).clear();
|
|
480
481
|
}
|
|
481
|
-
},
|
|
482
|
-
function
|
|
482
|
+
}, v = new WeakMap(), I = new WeakMap(), T = new WeakMap(), z = new WeakMap(), B = new WeakMap(), _ = new WeakMap(), H = new WeakMap(), U = new WeakMap(), Be);
|
|
483
|
+
function Or(e) {
|
|
483
484
|
return e;
|
|
484
485
|
}
|
|
485
|
-
function
|
|
486
|
-
var d,
|
|
486
|
+
function Qe(e, t, r) {
|
|
487
|
+
var d, c;
|
|
487
488
|
if (typeof t != "object" || t === null)
|
|
488
489
|
return;
|
|
489
|
-
const s = e.getMutationCache(), n = e.getQueryCache(), o = ((d = r == null ? void 0 : r.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((
|
|
490
|
-
i.forEach(({ state:
|
|
491
|
-
var
|
|
490
|
+
const s = e.getMutationCache(), n = e.getQueryCache(), o = ((d = r == null ? void 0 : r.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = e.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Or, i = t.mutations || [], l = t.queries || [];
|
|
491
|
+
i.forEach(({ state: m, ...g }) => {
|
|
492
|
+
var f, p;
|
|
492
493
|
s.build(
|
|
493
494
|
e,
|
|
494
495
|
{
|
|
495
|
-
...(
|
|
496
|
-
...(
|
|
497
|
-
...
|
|
496
|
+
...(f = e.getDefaultOptions().hydrate) == null ? void 0 : f.mutations,
|
|
497
|
+
...(p = r == null ? void 0 : r.defaultOptions) == null ? void 0 : p.mutations,
|
|
498
|
+
...g
|
|
498
499
|
},
|
|
499
|
-
|
|
500
|
+
m
|
|
500
501
|
);
|
|
501
|
-
}),
|
|
502
|
+
}), l.forEach(({ queryKey: m, state: g, queryHash: f, meta: p, promise: x }) => {
|
|
502
503
|
var W, $;
|
|
503
|
-
let
|
|
504
|
-
const
|
|
505
|
-
if (
|
|
506
|
-
if (
|
|
507
|
-
const { fetchStatus: b, ...
|
|
508
|
-
|
|
509
|
-
...
|
|
510
|
-
data:
|
|
504
|
+
let h = n.get(f);
|
|
505
|
+
const j = g.data === void 0 ? g.data : o(g.data);
|
|
506
|
+
if (h) {
|
|
507
|
+
if (h.state.dataUpdatedAt < g.dataUpdatedAt) {
|
|
508
|
+
const { fetchStatus: b, ...C } = g;
|
|
509
|
+
h.setState({
|
|
510
|
+
...C,
|
|
511
|
+
data: j
|
|
511
512
|
});
|
|
512
513
|
}
|
|
513
514
|
} else
|
|
514
|
-
|
|
515
|
+
h = n.build(
|
|
515
516
|
e,
|
|
516
517
|
{
|
|
517
518
|
...(W = e.getDefaultOptions().hydrate) == null ? void 0 : W.queries,
|
|
518
519
|
...($ = r == null ? void 0 : r.defaultOptions) == null ? void 0 : $.queries,
|
|
519
|
-
queryKey:
|
|
520
|
-
queryHash:
|
|
521
|
-
meta:
|
|
520
|
+
queryKey: m,
|
|
521
|
+
queryHash: f,
|
|
522
|
+
meta: p
|
|
522
523
|
},
|
|
523
524
|
// Reset fetch status to idle to avoid
|
|
524
525
|
// query being stuck in fetching state upon hydration
|
|
525
526
|
{
|
|
526
|
-
...
|
|
527
|
-
data:
|
|
527
|
+
...g,
|
|
528
|
+
data: j,
|
|
528
529
|
fetchStatus: "idle"
|
|
529
530
|
}
|
|
530
531
|
);
|
|
531
|
-
if (
|
|
532
|
-
const b = Promise.resolve(
|
|
533
|
-
|
|
532
|
+
if (x) {
|
|
533
|
+
const b = Promise.resolve(x).then(o);
|
|
534
|
+
h.fetch(void 0, { initialPromise: b });
|
|
534
535
|
}
|
|
535
536
|
});
|
|
536
537
|
}
|
|
537
|
-
var
|
|
538
|
+
var Ar = ({
|
|
538
539
|
children: e,
|
|
539
540
|
options: t = {},
|
|
540
541
|
state: r,
|
|
541
542
|
queryClient: s
|
|
542
543
|
}) => {
|
|
543
|
-
const n =
|
|
544
|
-
return
|
|
544
|
+
const n = _t(s), [o, i] = G.useState(), l = G.useRef(t);
|
|
545
|
+
return l.current = t, G.useMemo(() => {
|
|
545
546
|
if (r) {
|
|
546
547
|
if (typeof r != "object")
|
|
547
548
|
return;
|
|
548
|
-
const d = n.getQueryCache(),
|
|
549
|
-
for (const
|
|
550
|
-
const
|
|
551
|
-
if (!
|
|
552
|
-
|
|
549
|
+
const d = n.getQueryCache(), c = r.queries || [], m = [], g = [];
|
|
550
|
+
for (const f of c) {
|
|
551
|
+
const p = d.get(f.queryHash);
|
|
552
|
+
if (!p)
|
|
553
|
+
m.push(f);
|
|
553
554
|
else {
|
|
554
|
-
const
|
|
555
|
-
(
|
|
555
|
+
const x = f.state.dataUpdatedAt > p.state.dataUpdatedAt, h = o == null ? void 0 : o.find(
|
|
556
|
+
(j) => j.queryHash === f.queryHash
|
|
556
557
|
);
|
|
557
|
-
|
|
558
|
+
x && (!h || f.state.dataUpdatedAt > h.state.dataUpdatedAt) && g.push(f);
|
|
558
559
|
}
|
|
559
560
|
}
|
|
560
|
-
|
|
561
|
-
(
|
|
561
|
+
m.length > 0 && Qe(n, { queries: m }, l.current), g.length > 0 && i(
|
|
562
|
+
(f) => f ? [...f, ...g] : g
|
|
562
563
|
);
|
|
563
564
|
}
|
|
564
565
|
}, [n, o, r]), G.useEffect(() => {
|
|
565
|
-
o && (
|
|
566
|
+
o && (Qe(n, { queries: o }, l.current), i(void 0));
|
|
566
567
|
}, [n, o]), e;
|
|
567
568
|
}, Y = {};
|
|
568
|
-
const Mr = /* @__PURE__ */ xe(
|
|
569
|
+
const Mr = /* @__PURE__ */ xe(Zt), Rr = /* @__PURE__ */ xe(Yt), Ir = /* @__PURE__ */ xe(jt);
|
|
569
570
|
Object.defineProperty(Y, "__esModule", { value: !0 });
|
|
570
|
-
var Tr = Ye,
|
|
571
|
+
var Tr = Ye, D = Mr, Se = Rr, M = Ir;
|
|
571
572
|
function _r(e) {
|
|
572
573
|
if (e && e.__esModule) return e;
|
|
573
574
|
var t = /* @__PURE__ */ Object.create(null);
|
|
@@ -583,22 +584,22 @@ function _r(e) {
|
|
|
583
584
|
}
|
|
584
585
|
}), t.default = e, Object.freeze(t);
|
|
585
586
|
}
|
|
586
|
-
var
|
|
587
|
-
function
|
|
587
|
+
var P = /* @__PURE__ */ _r(Tr);
|
|
588
|
+
function Qr({
|
|
588
589
|
basename: e,
|
|
589
590
|
children: t,
|
|
590
591
|
location: r = "/",
|
|
591
592
|
future: s
|
|
592
593
|
}) {
|
|
593
594
|
typeof r == "string" && (r = M.parsePath(r));
|
|
594
|
-
let n =
|
|
595
|
+
let n = D.Action.Pop, o = {
|
|
595
596
|
pathname: r.pathname || "/",
|
|
596
597
|
search: r.search || "",
|
|
597
598
|
hash: r.hash || "",
|
|
598
599
|
state: r.state != null ? r.state : null,
|
|
599
600
|
key: r.key || "default"
|
|
600
601
|
}, i = nt();
|
|
601
|
-
return /* @__PURE__ */
|
|
602
|
+
return /* @__PURE__ */ P.createElement(M.Router, {
|
|
602
603
|
basename: e,
|
|
603
604
|
children: t,
|
|
604
605
|
location: o,
|
|
@@ -608,13 +609,13 @@ function Fr({
|
|
|
608
609
|
static: !0
|
|
609
610
|
});
|
|
610
611
|
}
|
|
611
|
-
function
|
|
612
|
+
function Fr({
|
|
612
613
|
context: e,
|
|
613
614
|
router: t,
|
|
614
615
|
hydrate: r = !0,
|
|
615
616
|
nonce: s
|
|
616
617
|
}) {
|
|
617
|
-
t && e || (process.env.NODE_ENV !== "production" ?
|
|
618
|
+
t && e || (process.env.NODE_ENV !== "production" ? D.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : D.UNSAFE_invariant(!1));
|
|
618
619
|
let n = {
|
|
619
620
|
router: t,
|
|
620
621
|
navigator: nt(),
|
|
@@ -631,32 +632,32 @@ function Qr({
|
|
|
631
632
|
i = `window.__staticRouterHydrationData = JSON.parse(${Kr(JSON.stringify(JSON.stringify(d)))});`;
|
|
632
633
|
}
|
|
633
634
|
let {
|
|
634
|
-
state:
|
|
635
|
+
state: l
|
|
635
636
|
} = n.router;
|
|
636
|
-
return /* @__PURE__ */
|
|
637
|
+
return /* @__PURE__ */ P.createElement(P.Fragment, null, /* @__PURE__ */ P.createElement(M.UNSAFE_DataRouterContext.Provider, {
|
|
637
638
|
value: n
|
|
638
|
-
}, /* @__PURE__ */
|
|
639
|
-
value:
|
|
640
|
-
}, /* @__PURE__ */
|
|
639
|
+
}, /* @__PURE__ */ P.createElement(M.UNSAFE_DataRouterStateContext.Provider, {
|
|
640
|
+
value: l
|
|
641
|
+
}, /* @__PURE__ */ P.createElement(M.UNSAFE_FetchersContext.Provider, {
|
|
641
642
|
value: o
|
|
642
|
-
}, /* @__PURE__ */
|
|
643
|
+
}, /* @__PURE__ */ P.createElement(M.UNSAFE_ViewTransitionContext.Provider, {
|
|
643
644
|
value: {
|
|
644
645
|
isTransitioning: !1
|
|
645
646
|
}
|
|
646
|
-
}, /* @__PURE__ */
|
|
647
|
+
}, /* @__PURE__ */ P.createElement(M.Router, {
|
|
647
648
|
basename: n.basename,
|
|
648
|
-
location:
|
|
649
|
-
navigationType:
|
|
649
|
+
location: l.location,
|
|
650
|
+
navigationType: l.historyAction,
|
|
650
651
|
navigator: n.navigator,
|
|
651
652
|
static: n.static,
|
|
652
653
|
future: {
|
|
653
654
|
v7_relativeSplatPath: t.future.v7_relativeSplatPath
|
|
654
655
|
}
|
|
655
|
-
}, /* @__PURE__ */
|
|
656
|
+
}, /* @__PURE__ */ P.createElement(qr, {
|
|
656
657
|
routes: t.routes,
|
|
657
658
|
future: t.future,
|
|
658
|
-
state:
|
|
659
|
-
})))))), i ? /* @__PURE__ */
|
|
659
|
+
state: l
|
|
660
|
+
})))))), i ? /* @__PURE__ */ P.createElement("script", {
|
|
660
661
|
suppressHydrationWarning: !0,
|
|
661
662
|
nonce: s,
|
|
662
663
|
dangerouslySetInnerHTML: {
|
|
@@ -675,7 +676,7 @@ function Lr(e) {
|
|
|
675
676
|
if (!e) return null;
|
|
676
677
|
let t = Object.entries(e), r = {};
|
|
677
678
|
for (let [s, n] of t)
|
|
678
|
-
|
|
679
|
+
D.isRouteErrorResponse(n) ? r[s] = {
|
|
679
680
|
...n,
|
|
680
681
|
__type: "RouteErrorResponse"
|
|
681
682
|
} : n instanceof Error ? r[s] = {
|
|
@@ -711,29 +712,29 @@ function nt() {
|
|
|
711
712
|
};
|
|
712
713
|
}
|
|
713
714
|
function zr(e, t) {
|
|
714
|
-
return
|
|
715
|
+
return D.createStaticHandler(e, {
|
|
715
716
|
...t,
|
|
716
717
|
mapRouteProperties: Se.UNSAFE_mapRouteProperties
|
|
717
718
|
});
|
|
718
719
|
}
|
|
719
720
|
function Br(e, t, r = {}) {
|
|
720
|
-
let s = {}, n =
|
|
721
|
-
let d = s[
|
|
721
|
+
let s = {}, n = D.UNSAFE_convertRoutesToDataRoutes(e, Se.UNSAFE_mapRouteProperties, void 0, s), o = t.matches.map((l) => {
|
|
722
|
+
let d = s[l.route.id] || l.route;
|
|
722
723
|
return {
|
|
723
|
-
...
|
|
724
|
+
...l,
|
|
724
725
|
route: d
|
|
725
726
|
};
|
|
726
|
-
}), i = (
|
|
727
|
+
}), i = (l) => `You cannot use router.${l}() on the server because it is a stateless environment`;
|
|
727
728
|
return {
|
|
728
729
|
get basename() {
|
|
729
730
|
return t.basename;
|
|
730
731
|
},
|
|
731
732
|
get future() {
|
|
732
|
-
var
|
|
733
|
+
var l, d;
|
|
733
734
|
return {
|
|
734
735
|
v7_fetcherPersist: !1,
|
|
735
736
|
v7_normalizeFormMethod: !1,
|
|
736
|
-
v7_partialHydration: ((
|
|
737
|
+
v7_partialHydration: ((l = r.future) == null ? void 0 : l.v7_partialHydration) === !0,
|
|
737
738
|
v7_prependBasename: !1,
|
|
738
739
|
v7_relativeSplatPath: ((d = r.future) == null ? void 0 : d.v7_relativeSplatPath) === !0,
|
|
739
740
|
v7_skipActionErrorRevalidation: !1
|
|
@@ -741,14 +742,14 @@ function Br(e, t, r = {}) {
|
|
|
741
742
|
},
|
|
742
743
|
get state() {
|
|
743
744
|
return {
|
|
744
|
-
historyAction:
|
|
745
|
+
historyAction: D.Action.Pop,
|
|
745
746
|
location: t.location,
|
|
746
747
|
matches: o,
|
|
747
748
|
loaderData: t.loaderData,
|
|
748
749
|
actionData: t.actionData,
|
|
749
750
|
errors: t.errors,
|
|
750
751
|
initialized: !0,
|
|
751
|
-
navigation:
|
|
752
|
+
navigation: D.IDLE_NAVIGATION,
|
|
752
753
|
restoreScrollPosition: null,
|
|
753
754
|
preventScrollReset: !1,
|
|
754
755
|
revalidation: "idle",
|
|
@@ -782,7 +783,7 @@ function Br(e, t, r = {}) {
|
|
|
782
783
|
createHref: it,
|
|
783
784
|
encodeLocation: ot,
|
|
784
785
|
getFetcher() {
|
|
785
|
-
return
|
|
786
|
+
return D.IDLE_FETCHER;
|
|
786
787
|
},
|
|
787
788
|
deleteFetcher() {
|
|
788
789
|
throw i("deleteFetcher");
|
|
@@ -791,7 +792,7 @@ function Br(e, t, r = {}) {
|
|
|
791
792
|
throw i("dispose");
|
|
792
793
|
},
|
|
793
794
|
getBlocker() {
|
|
794
|
-
return
|
|
795
|
+
return D.IDLE_BLOCKER;
|
|
795
796
|
},
|
|
796
797
|
deleteBlocker() {
|
|
797
798
|
throw i("deleteBlocker");
|
|
@@ -829,11 +830,11 @@ const Hr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ur = {
|
|
|
829
830
|
function Kr(e) {
|
|
830
831
|
return e.replace($r, (t) => Ur[t]);
|
|
831
832
|
}
|
|
832
|
-
Y.StaticRouter =
|
|
833
|
-
var Vr = Y.StaticRouterProvider =
|
|
833
|
+
Y.StaticRouter = Qr;
|
|
834
|
+
var Vr = Y.StaticRouterProvider = Fr;
|
|
834
835
|
Y.createStaticHandler = zr;
|
|
835
836
|
Y.createStaticRouter = Br;
|
|
836
|
-
const Zr = new
|
|
837
|
+
const Zr = new Dr({
|
|
837
838
|
defaultOptions: {
|
|
838
839
|
queries: {
|
|
839
840
|
staleTime: 1e3 * 60 * 5
|
|
@@ -842,8 +843,8 @@ const Zr = new Ar({
|
|
|
842
843
|
}), Yr = ({
|
|
843
844
|
router: e,
|
|
844
845
|
hydrate: t = !1
|
|
845
|
-
}) => /* @__PURE__ */ a.jsx(We, { children: /* @__PURE__ */ a.jsx(Ve, { client: Zr, children: /* @__PURE__ */ a.jsx(
|
|
846
|
-
|
|
846
|
+
}) => /* @__PURE__ */ a.jsx(We, { children: /* @__PURE__ */ a.jsx(Ve, { client: Zr, children: /* @__PURE__ */ a.jsx(Ar, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(He, { children: /* @__PURE__ */ a.jsx(ue.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(
|
|
847
|
+
wt,
|
|
847
848
|
{
|
|
848
849
|
router: e,
|
|
849
850
|
future: { v7_startTransition: !0 }
|
|
@@ -858,35 +859,35 @@ var he = { exports: {} };
|
|
|
858
859
|
(function(e, t) {
|
|
859
860
|
(function(r, s) {
|
|
860
861
|
s(t, Ye);
|
|
861
|
-
})(
|
|
862
|
+
})(Vt, function(r, s) {
|
|
862
863
|
const n = {
|
|
863
864
|
delay: 500,
|
|
864
865
|
minDuration: 200,
|
|
865
866
|
ssr: !0
|
|
866
867
|
};
|
|
867
868
|
function o() {
|
|
868
|
-
const [
|
|
869
|
+
const [l, d] = s.useState(!0);
|
|
869
870
|
return s.useEffect(() => {
|
|
870
871
|
d(!1);
|
|
871
|
-
}, []),
|
|
872
|
+
}, []), l;
|
|
872
873
|
}
|
|
873
|
-
function i(
|
|
874
|
+
function i(l, d) {
|
|
874
875
|
d = Object.assign({}, n, d);
|
|
875
|
-
const
|
|
876
|
+
const c = o() && d.ssr, m = c && l ? "DISPLAY" : "IDLE", [g, f] = s.useState(m), p = s.useRef(null);
|
|
876
877
|
return s.useEffect(() => {
|
|
877
|
-
if (
|
|
878
|
-
clearTimeout(
|
|
879
|
-
const
|
|
880
|
-
|
|
881
|
-
if (!
|
|
882
|
-
return
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
}, d.minDuration),
|
|
886
|
-
},
|
|
878
|
+
if (l && (g === "IDLE" || c)) {
|
|
879
|
+
clearTimeout(p.current);
|
|
880
|
+
const x = c ? 0 : d.delay;
|
|
881
|
+
p.current = setTimeout(() => {
|
|
882
|
+
if (!l)
|
|
883
|
+
return f("IDLE");
|
|
884
|
+
p.current = setTimeout(() => {
|
|
885
|
+
f("EXPIRE");
|
|
886
|
+
}, d.minDuration), f("DISPLAY");
|
|
887
|
+
}, x), c || f("DELAY");
|
|
887
888
|
}
|
|
888
|
-
!
|
|
889
|
-
}, [
|
|
889
|
+
!l && g !== "DISPLAY" && (clearTimeout(p.current), f("IDLE"));
|
|
890
|
+
}, [l, g, d.delay, d.minDuration, c]), s.useEffect(() => () => clearTimeout(p.current), []), g === "DISPLAY" || g === "EXPIRE";
|
|
890
891
|
}
|
|
891
892
|
r.defaultOptions = n, r.useSpinDelay = i;
|
|
892
893
|
});
|
|
@@ -894,26 +895,27 @@ var he = { exports: {} };
|
|
|
894
895
|
var Xr = he.exports;
|
|
895
896
|
const Jr = ({
|
|
896
897
|
category: e,
|
|
897
|
-
level: t
|
|
898
|
+
level: t,
|
|
899
|
+
onRequestClose: r
|
|
898
900
|
}) => {
|
|
899
|
-
var
|
|
900
|
-
const
|
|
901
|
+
var p, x;
|
|
902
|
+
const s = Qt(e), [n, o] = Q(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, d = !!(!i || !l || s), [c, m] = Q(d), g = Wt(((p = e.link) == null ? void 0 : p.id) ?? "");
|
|
901
903
|
L(() => {
|
|
902
|
-
|
|
903
|
-
}, [
|
|
904
|
-
const f =
|
|
904
|
+
s && m(!0);
|
|
905
|
+
}, [s]);
|
|
906
|
+
const f = i && /* @__PURE__ */ a.jsx(
|
|
905
907
|
"button",
|
|
906
908
|
{
|
|
907
909
|
type: "button",
|
|
908
|
-
onClick: (
|
|
909
|
-
|
|
910
|
+
onClick: (h) => {
|
|
911
|
+
h.preventDefault(), m((j) => !j), o(!0);
|
|
910
912
|
},
|
|
911
913
|
children: /* @__PURE__ */ a.jsx(
|
|
912
|
-
|
|
914
|
+
Xt,
|
|
913
915
|
{
|
|
914
916
|
size: 16,
|
|
915
917
|
className: R(
|
|
916
|
-
|
|
918
|
+
n && "transition",
|
|
917
919
|
"shrink-0 group-data-[state=open]:rotate-90"
|
|
918
920
|
)
|
|
919
921
|
}
|
|
@@ -924,20 +926,20 @@ const Jr = ({
|
|
|
924
926
|
oe.Root,
|
|
925
927
|
{
|
|
926
928
|
className: "flex flex-col",
|
|
927
|
-
defaultOpen:
|
|
928
|
-
open:
|
|
929
|
-
onOpenChange: () =>
|
|
929
|
+
defaultOpen: d,
|
|
930
|
+
open: c,
|
|
931
|
+
onOpenChange: () => m(!0),
|
|
930
932
|
children: [
|
|
931
|
-
/* @__PURE__ */ a.jsx(oe.Trigger, { className: "group", asChild: !0, disabled: !
|
|
933
|
+
/* @__PURE__ */ a.jsx(oe.Trigger, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
|
|
932
934
|
"div",
|
|
933
935
|
{
|
|
934
|
-
onClick: () =>
|
|
936
|
+
onClick: () => o(!0),
|
|
935
937
|
className: V({
|
|
936
938
|
isActive: !1,
|
|
937
939
|
isTopLevel: t === 0,
|
|
938
940
|
className: [
|
|
939
941
|
"text-start",
|
|
940
|
-
|
|
942
|
+
i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
|
|
941
943
|
]
|
|
942
944
|
}),
|
|
943
945
|
children: [
|
|
@@ -947,24 +949,24 @@ const Jr = ({
|
|
|
947
949
|
size: 16,
|
|
948
950
|
className: R(
|
|
949
951
|
"align-[-0.125em] -translate-x-1",
|
|
950
|
-
|
|
952
|
+
g && "text-primary"
|
|
951
953
|
)
|
|
952
954
|
}
|
|
953
955
|
),
|
|
954
|
-
((
|
|
956
|
+
((x = e.link) == null ? void 0 : x.type) === "doc" ? /* @__PURE__ */ a.jsx(
|
|
955
957
|
ae,
|
|
956
958
|
{
|
|
957
|
-
to:
|
|
959
|
+
to: q(e.link.id),
|
|
958
960
|
className: "flex-1",
|
|
959
961
|
onClick: () => {
|
|
960
|
-
|
|
962
|
+
g && !c && m(!0);
|
|
961
963
|
},
|
|
962
964
|
children: /* @__PURE__ */ a.jsxs(
|
|
963
965
|
"div",
|
|
964
966
|
{
|
|
965
967
|
className: R(
|
|
966
968
|
"flex items-center gap-2 justify-between w-full",
|
|
967
|
-
|
|
969
|
+
g ? "text-primary" : "text-foreground/80"
|
|
968
970
|
),
|
|
969
971
|
children: [
|
|
970
972
|
/* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
|
|
@@ -985,22 +987,23 @@ const Jr = ({
|
|
|
985
987
|
{
|
|
986
988
|
className: R(
|
|
987
989
|
// CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
|
|
988
|
-
|
|
990
|
+
n && "CollapsibleContent"
|
|
989
991
|
),
|
|
990
|
-
children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: e.items.map((
|
|
992
|
+
children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: e.items.map((h) => /* @__PURE__ */ a.jsx(
|
|
991
993
|
fe,
|
|
992
994
|
{
|
|
995
|
+
onRequestClose: r,
|
|
993
996
|
level: t + 1,
|
|
994
|
-
item:
|
|
997
|
+
item: h
|
|
995
998
|
},
|
|
996
|
-
("id" in
|
|
999
|
+
("id" in h ? h.id : "") + ("href" in h ? h.href : "") + h.label
|
|
997
1000
|
)) })
|
|
998
1001
|
}
|
|
999
1002
|
)
|
|
1000
1003
|
]
|
|
1001
1004
|
}
|
|
1002
1005
|
);
|
|
1003
|
-
}, V =
|
|
1006
|
+
}, V = or(
|
|
1004
1007
|
"flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
1005
1008
|
{
|
|
1006
1009
|
variants: {
|
|
@@ -1023,19 +1026,28 @@ const Jr = ({
|
|
|
1023
1026
|
}
|
|
1024
1027
|
), lt = "data-anchor", fe = ({
|
|
1025
1028
|
item: e,
|
|
1026
|
-
level: t = 0
|
|
1029
|
+
level: t = 0,
|
|
1030
|
+
onRequestClose: r
|
|
1027
1031
|
}) => {
|
|
1028
|
-
var
|
|
1029
|
-
const { activeAnchor:
|
|
1032
|
+
var o, i;
|
|
1033
|
+
const { activeAnchor: s } = we(), [n] = St();
|
|
1030
1034
|
switch (e.type) {
|
|
1031
1035
|
case "category":
|
|
1032
|
-
return /* @__PURE__ */ a.jsx(
|
|
1036
|
+
return /* @__PURE__ */ a.jsx(
|
|
1037
|
+
Jr,
|
|
1038
|
+
{
|
|
1039
|
+
category: e,
|
|
1040
|
+
level: t,
|
|
1041
|
+
onRequestClose: r
|
|
1042
|
+
}
|
|
1043
|
+
);
|
|
1033
1044
|
case "doc":
|
|
1034
1045
|
return /* @__PURE__ */ a.jsxs(
|
|
1035
1046
|
ae,
|
|
1036
1047
|
{
|
|
1037
|
-
className: ({ isActive:
|
|
1038
|
-
to:
|
|
1048
|
+
className: ({ isActive: l }) => V({ isActive: l, isTopLevel: t === 0 }),
|
|
1049
|
+
to: q(e.id),
|
|
1050
|
+
onClick: r,
|
|
1039
1051
|
children: [
|
|
1040
1052
|
e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
|
|
1041
1053
|
e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -1047,15 +1059,16 @@ const Jr = ({
|
|
|
1047
1059
|
);
|
|
1048
1060
|
case "link":
|
|
1049
1061
|
return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
|
|
1050
|
-
|
|
1062
|
+
cr,
|
|
1051
1063
|
{
|
|
1052
|
-
to: { hash: e.href, search:
|
|
1064
|
+
to: { hash: e.href, search: n.toString() },
|
|
1053
1065
|
[lt]: e.href.slice(1),
|
|
1054
1066
|
className: V({
|
|
1055
|
-
isActive: e.href.slice(1) ===
|
|
1067
|
+
isActive: e.href.slice(1) === s,
|
|
1056
1068
|
isTopLevel: t === 0,
|
|
1057
|
-
className: ((
|
|
1069
|
+
className: ((o = e.badge) == null ? void 0 : o.placement) !== "start" && "justify-between"
|
|
1058
1070
|
}),
|
|
1071
|
+
onClick: r,
|
|
1059
1072
|
children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1060
1073
|
/* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
1061
1074
|
/* @__PURE__ */ a.jsx(ie, { ...e.badge })
|
|
@@ -1068,16 +1081,17 @@ const Jr = ({
|
|
|
1068
1081
|
href: e.href,
|
|
1069
1082
|
target: "_blank",
|
|
1070
1083
|
rel: "noopener noreferrer",
|
|
1084
|
+
onClick: r,
|
|
1071
1085
|
children: [
|
|
1072
1086
|
/* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
1073
|
-
/* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(
|
|
1087
|
+
/* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(Jt, { className: "inline -translate-y-0.5", size: 12 }) })
|
|
1074
1088
|
]
|
|
1075
1089
|
}
|
|
1076
1090
|
) : /* @__PURE__ */ a.jsx(
|
|
1077
1091
|
ae,
|
|
1078
1092
|
{
|
|
1079
1093
|
className: V({
|
|
1080
|
-
className: ((
|
|
1094
|
+
className: ((i = e.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
|
|
1081
1095
|
}),
|
|
1082
1096
|
to: e.href,
|
|
1083
1097
|
children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -1124,17 +1138,17 @@ function ra({
|
|
|
1124
1138
|
}
|
|
1125
1139
|
);
|
|
1126
1140
|
}
|
|
1127
|
-
const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", sa = (e) => "getRoutes" in e && typeof e.getRoutes == "function", na = (e) => "renderSearch" in e && typeof e.renderSearch == "function", ia = (e) => "initialize" in e && typeof e.initialize == "function", oa = (e) => "getHead" in e && typeof e.getHead == "function", la = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", ca = (e) => "getIdentities" in e && typeof e.getIdentities == "function",
|
|
1141
|
+
const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", sa = (e) => "getRoutes" in e && typeof e.getRoutes == "function", na = (e) => "renderSearch" in e && typeof e.renderSearch == "function", ia = (e) => "initialize" in e && typeof e.initialize == "function", oa = (e) => "getHead" in e && typeof e.getHead == "function", la = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", ca = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Fe = {
|
|
1128
1142
|
info: "bg-blue-500",
|
|
1129
1143
|
note: "bg-gray-500",
|
|
1130
1144
|
tip: "bg-green-600",
|
|
1131
1145
|
caution: "bg-orange-500",
|
|
1132
1146
|
danger: "bg-rose-500"
|
|
1133
1147
|
}, ua = () => {
|
|
1134
|
-
const { page: e } = F(), [t, r] =
|
|
1148
|
+
const { page: e } = F(), [t, r] = Q(!0);
|
|
1135
1149
|
if (!(e != null && e.banner) || !t)
|
|
1136
1150
|
return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
1137
|
-
const s = e.banner.color && e.banner.color in
|
|
1151
|
+
const s = e.banner.color && e.banner.color in Fe ? Fe[e.banner.color] : e.banner.color ? void 0 : "bg-primary", n = s ? {} : { backgroundColor: e.banner.color };
|
|
1138
1152
|
return /* @__PURE__ */ a.jsxs(
|
|
1139
1153
|
"div",
|
|
1140
1154
|
{
|
|
@@ -1151,48 +1165,48 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1151
1165
|
type: "button",
|
|
1152
1166
|
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
1153
1167
|
onClick: () => r(!1),
|
|
1154
|
-
children: /* @__PURE__ */ a.jsx(
|
|
1168
|
+
children: /* @__PURE__ */ a.jsx(Gt, { size: 16 })
|
|
1155
1169
|
}
|
|
1156
1170
|
)
|
|
1157
1171
|
]
|
|
1158
1172
|
}
|
|
1159
1173
|
);
|
|
1160
|
-
}, ct = () => {
|
|
1161
|
-
const
|
|
1174
|
+
}, ct = ({ className: e }) => {
|
|
1175
|
+
const t = F(), [r, s] = Q(!1), n = Bt(() => s(!1), []);
|
|
1162
1176
|
L(() => {
|
|
1163
|
-
if (
|
|
1177
|
+
if (r)
|
|
1164
1178
|
return;
|
|
1165
|
-
function
|
|
1166
|
-
|
|
1179
|
+
function i(l) {
|
|
1180
|
+
l.key === "k" && (l.metaKey || l.ctrlKey) && (l.preventDefault(), s(!0));
|
|
1167
1181
|
}
|
|
1168
|
-
return window.addEventListener("keydown",
|
|
1169
|
-
window.removeEventListener("keydown",
|
|
1182
|
+
return window.addEventListener("keydown", i), () => {
|
|
1183
|
+
window.removeEventListener("keydown", i);
|
|
1170
1184
|
};
|
|
1171
|
-
}, [
|
|
1172
|
-
const
|
|
1173
|
-
return
|
|
1185
|
+
}, [r, s]);
|
|
1186
|
+
const o = t.plugins.find(na);
|
|
1187
|
+
return o ? /* @__PURE__ */ a.jsxs("div", { className: e, children: [
|
|
1174
1188
|
/* @__PURE__ */ a.jsxs(
|
|
1175
1189
|
"button",
|
|
1176
1190
|
{
|
|
1177
1191
|
type: "button",
|
|
1178
|
-
onClick: () =>
|
|
1192
|
+
onClick: () => s(!0),
|
|
1179
1193
|
className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
|
|
1180
1194
|
children: [
|
|
1181
1195
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
1182
|
-
/* @__PURE__ */ a.jsx(
|
|
1196
|
+
/* @__PURE__ */ a.jsx(er, { size: 14 }),
|
|
1183
1197
|
"Search"
|
|
1184
1198
|
] }),
|
|
1185
1199
|
/* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
|
|
1186
1200
|
]
|
|
1187
1201
|
}
|
|
1188
1202
|
),
|
|
1189
|
-
/* @__PURE__ */ a.jsx(ve, { fallback: null, children:
|
|
1190
|
-
isOpen:
|
|
1191
|
-
onClose:
|
|
1203
|
+
/* @__PURE__ */ a.jsx(ve, { fallback: null, children: o.renderSearch({
|
|
1204
|
+
isOpen: r,
|
|
1205
|
+
onClose: n
|
|
1192
1206
|
}) })
|
|
1193
1207
|
] }) : null;
|
|
1194
1208
|
}, ut = () => {
|
|
1195
|
-
const { resolvedTheme: e, setTheme: t } = jr(), r = e === "dark" ?
|
|
1209
|
+
const { resolvedTheme: e, setTheme: t } = jr(), r = e === "dark" ? tr : rr;
|
|
1196
1210
|
return /* @__PURE__ */ a.jsx(je, { children: /* @__PURE__ */ a.jsx(
|
|
1197
1211
|
de,
|
|
1198
1212
|
{
|
|
@@ -1211,10 +1225,10 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1211
1225
|
label: t,
|
|
1212
1226
|
default: r
|
|
1213
1227
|
}) => {
|
|
1214
|
-
var
|
|
1215
|
-
const { sidebars: s } = F(), n = s[e], o = Ze(), i = !!be().location,
|
|
1216
|
-
if (
|
|
1217
|
-
}) :
|
|
1228
|
+
var c;
|
|
1229
|
+
const { sidebars: s } = F(), n = s[e], o = Ze(), i = !!be().location, l = ((c = o.topNavItem) == null ? void 0 : c.id) === e && !i, d = r ?? (n ? Ft(n, (m) => {
|
|
1230
|
+
if (m.type === "doc") return q(m.id);
|
|
1231
|
+
}) : q(e));
|
|
1218
1232
|
if (!d)
|
|
1219
1233
|
throw new Sr("Page not found.", {
|
|
1220
1234
|
developerHint: `No links found in top navigation for '${e}'. Check that the sidebar isn't empty or that a default link is set.`
|
|
@@ -1225,9 +1239,9 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1225
1239
|
/* @__PURE__ */ a.jsx(
|
|
1226
1240
|
ae,
|
|
1227
1241
|
{
|
|
1228
|
-
className: ({ isPending:
|
|
1242
|
+
className: ({ isPending: m }) => lr(
|
|
1229
1243
|
"block lg:py-3.5 font-medium -mb-px border-b-2",
|
|
1230
|
-
|
|
1244
|
+
l || m ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
1231
1245
|
),
|
|
1232
1246
|
to: d,
|
|
1233
1247
|
children: t
|
|
@@ -1235,7 +1249,7 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1235
1249
|
)
|
|
1236
1250
|
);
|
|
1237
1251
|
}, ha = () => {
|
|
1238
|
-
const { topNavigation: e } = F(), { isAuthenticated: t } = se(), [r, s] =
|
|
1252
|
+
const { topNavigation: e } = F(), { isAuthenticated: t } = se(), [r, s] = Q(!1);
|
|
1239
1253
|
return /* @__PURE__ */ a.jsxs(
|
|
1240
1254
|
et,
|
|
1241
1255
|
{
|
|
@@ -1243,20 +1257,20 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1243
1257
|
open: r,
|
|
1244
1258
|
onOpenChange: (n) => s(n),
|
|
1245
1259
|
children: [
|
|
1246
|
-
/* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(tt, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(
|
|
1247
|
-
/* @__PURE__ */ a.
|
|
1260
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(tt, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(ar, { size: 22 }) }) }),
|
|
1261
|
+
/* @__PURE__ */ a.jsx(
|
|
1248
1262
|
rt,
|
|
1249
1263
|
{
|
|
1250
|
-
className: "lg:hidden h-
|
|
1264
|
+
className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
|
|
1251
1265
|
"aria-describedby": void 0,
|
|
1252
|
-
children: [
|
|
1266
|
+
children: /* @__PURE__ */ a.jsxs("div", { className: "p-6 overflow-y-auto overscroll-none", children: [
|
|
1253
1267
|
/* @__PURE__ */ a.jsx(st, { children: /* @__PURE__ */ a.jsx(at, { children: "Navigation" }) }),
|
|
1254
|
-
/* @__PURE__ */ a.jsx(
|
|
1268
|
+
/* @__PURE__ */ a.jsx(ct, { className: "flex p-4" }),
|
|
1255
1269
|
/* @__PURE__ */ a.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
1256
1270
|
/* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ut, {}) }),
|
|
1257
1271
|
e.filter(dt(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx("button", { onClick: () => s(!1), children: /* @__PURE__ */ a.jsx(ht, { ...n }) }) }, n.label))
|
|
1258
1272
|
] })
|
|
1259
|
-
]
|
|
1273
|
+
] })
|
|
1260
1274
|
}
|
|
1261
1275
|
)
|
|
1262
1276
|
]
|
|
@@ -1272,7 +1286,7 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1272
1286
|
e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
1273
1287
|
e.label
|
|
1274
1288
|
] }, e.label) }), ft = Xe(function() {
|
|
1275
|
-
const t = se(), { isAuthenticated: r, profile: s, isAuthEnabled: n } = se(), o = F(), { page: i, plugins:
|
|
1289
|
+
const t = se(), { isAuthenticated: r, profile: s, isAuthEnabled: n } = se(), o = F(), { page: i, plugins: l } = o, d = l.filter((c) => aa(c)).flatMap((c) => c.getProfileMenuItems(o)).sort((c) => c.weight ?? 0);
|
|
1276
1290
|
return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
1277
1291
|
/* @__PURE__ */ a.jsx(ua, {}),
|
|
1278
1292
|
/* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
@@ -1282,7 +1296,7 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1282
1296
|
/* @__PURE__ */ a.jsx(
|
|
1283
1297
|
"img",
|
|
1284
1298
|
{
|
|
1285
|
-
src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light :
|
|
1299
|
+
src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : q(
|
|
1286
1300
|
"/",
|
|
1287
1301
|
i.logo.src.light
|
|
1288
1302
|
),
|
|
@@ -1295,7 +1309,7 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1295
1309
|
/* @__PURE__ */ a.jsx(
|
|
1296
1310
|
"img",
|
|
1297
1311
|
{
|
|
1298
|
-
src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark :
|
|
1312
|
+
src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : q(
|
|
1299
1313
|
"/",
|
|
1300
1314
|
i.logo.src.dark
|
|
1301
1315
|
),
|
|
@@ -1312,7 +1326,7 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1312
1326
|
/* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(ct, {}) }),
|
|
1313
1327
|
/* @__PURE__ */ a.jsx(ha, {}),
|
|
1314
1328
|
/* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
1315
|
-
/* @__PURE__ */ a.jsx(
|
|
1329
|
+
/* @__PURE__ */ a.jsx(O, { name: "head-navigation-start" }),
|
|
1316
1330
|
n && /* @__PURE__ */ a.jsx(
|
|
1317
1331
|
je,
|
|
1318
1332
|
{
|
|
@@ -1324,31 +1338,31 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1324
1338
|
s != null && s.name ? `${s.name}` : "My Account",
|
|
1325
1339
|
(s == null ? void 0 : s.email) && /* @__PURE__ */ a.jsx("div", { className: "font-normal text-muted-foreground", children: s.email })
|
|
1326
1340
|
] }),
|
|
1327
|
-
d.filter((
|
|
1328
|
-
d.filter((
|
|
1341
|
+
d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ a.jsx(le, {}),
|
|
1342
|
+
d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ a.jsx(re, { item: c }, c.label)),
|
|
1329
1343
|
d.filter(
|
|
1330
|
-
(
|
|
1344
|
+
(c) => !c.category || c.category === "middle"
|
|
1331
1345
|
).length > 0 && /* @__PURE__ */ a.jsx(le, {}),
|
|
1332
1346
|
d.filter(
|
|
1333
|
-
(
|
|
1334
|
-
).map((
|
|
1335
|
-
d.filter((
|
|
1336
|
-
d.filter((
|
|
1347
|
+
(c) => !c.category || c.category === "middle"
|
|
1348
|
+
).map((c) => /* @__PURE__ */ a.jsx(re, { item: c }, c.label)),
|
|
1349
|
+
d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ a.jsx(le, {}),
|
|
1350
|
+
d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ a.jsx(re, { item: c }, c.label))
|
|
1337
1351
|
] })
|
|
1338
1352
|
] }) : /* @__PURE__ */ a.jsx(de, { variant: "ghost", onClick: () => t.login(), children: "Login" })
|
|
1339
1353
|
}
|
|
1340
1354
|
),
|
|
1341
1355
|
/* @__PURE__ */ a.jsx(ut, {}),
|
|
1342
|
-
/* @__PURE__ */ a.jsx(
|
|
1356
|
+
/* @__PURE__ */ a.jsx(O, { name: "head-navigation-end" })
|
|
1343
1357
|
] })
|
|
1344
1358
|
] })
|
|
1345
1359
|
] }),
|
|
1346
|
-
/* @__PURE__ */ a.jsx(
|
|
1360
|
+
/* @__PURE__ */ a.jsx(O, { name: "top-navigation-before" }),
|
|
1347
1361
|
/* @__PURE__ */ a.jsx(da, {}),
|
|
1348
|
-
/* @__PURE__ */ a.jsx(
|
|
1362
|
+
/* @__PURE__ */ a.jsx(O, { name: "top-navigation-after" })
|
|
1349
1363
|
] })
|
|
1350
1364
|
] });
|
|
1351
|
-
}), mt =
|
|
1365
|
+
}), mt = Ht(({ children: e, className: t, pushMainContent: r }, s) => /* @__PURE__ */ a.jsx(
|
|
1352
1366
|
"nav",
|
|
1353
1367
|
{
|
|
1354
1368
|
"data-navigation": String(r),
|
|
@@ -1363,30 +1377,39 @@ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1363
1377
|
}
|
|
1364
1378
|
));
|
|
1365
1379
|
mt.displayName = "SidebarWrapper";
|
|
1366
|
-
const fa = (
|
|
1367
|
-
|
|
1380
|
+
const fa = ({
|
|
1381
|
+
onRequestClose: e
|
|
1382
|
+
}) => {
|
|
1383
|
+
const t = pe(null), r = Ze();
|
|
1368
1384
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1369
1385
|
/* @__PURE__ */ a.jsxs(
|
|
1370
1386
|
mt,
|
|
1371
1387
|
{
|
|
1372
|
-
ref:
|
|
1373
|
-
pushMainContent:
|
|
1388
|
+
ref: t,
|
|
1389
|
+
pushMainContent: r.sidebar.length > 0,
|
|
1374
1390
|
children: [
|
|
1375
|
-
/* @__PURE__ */ a.jsx(
|
|
1376
|
-
|
|
1377
|
-
/* @__PURE__ */ a.jsx(
|
|
1391
|
+
/* @__PURE__ */ a.jsx(O, { name: "zudoku-before-navigation" }),
|
|
1392
|
+
r.sidebar.map((s) => /* @__PURE__ */ a.jsx(fe, { item: s }, s.label)),
|
|
1393
|
+
/* @__PURE__ */ a.jsx(O, { name: "zudoku-after-navigation" })
|
|
1378
1394
|
]
|
|
1379
1395
|
}
|
|
1380
1396
|
),
|
|
1381
|
-
/* @__PURE__ */ a.
|
|
1397
|
+
/* @__PURE__ */ a.jsx(
|
|
1382
1398
|
rt,
|
|
1383
1399
|
{
|
|
1384
|
-
className: "lg:hidden h-
|
|
1400
|
+
className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
|
|
1385
1401
|
"aria-describedby": void 0,
|
|
1386
|
-
children: [
|
|
1402
|
+
children: /* @__PURE__ */ a.jsxs("div", { className: "p-6 overflow-y-auto overscroll-none", children: [
|
|
1387
1403
|
/* @__PURE__ */ a.jsx(st, { children: /* @__PURE__ */ a.jsx(at, { children: "Sidebar" }) }),
|
|
1388
|
-
|
|
1389
|
-
|
|
1404
|
+
r.sidebar.map((s) => /* @__PURE__ */ a.jsx(
|
|
1405
|
+
fe,
|
|
1406
|
+
{
|
|
1407
|
+
item: s,
|
|
1408
|
+
onRequestClose: e
|
|
1409
|
+
},
|
|
1410
|
+
s.label
|
|
1411
|
+
))
|
|
1412
|
+
] })
|
|
1390
1413
|
}
|
|
1391
1414
|
)
|
|
1392
1415
|
] });
|
|
@@ -1395,63 +1418,71 @@ const fa = () => {
|
|
|
1395
1418
|
ea(), ta();
|
|
1396
1419
|
const o = pe(t.pathname);
|
|
1397
1420
|
L(() => {
|
|
1398
|
-
var
|
|
1399
|
-
(
|
|
1421
|
+
var m;
|
|
1422
|
+
(m = n == null ? void 0 : n.onPageLoad) == null || m.call(n);
|
|
1400
1423
|
}, [n]), L(() => {
|
|
1401
1424
|
t.pathname !== o.current && r(""), o.current = t.pathname;
|
|
1402
1425
|
}, [t.pathname, r]);
|
|
1403
|
-
const i = !!be().location,
|
|
1426
|
+
const i = !!be().location, l = Xr.useSpinDelay(i, {
|
|
1404
1427
|
delay: 300,
|
|
1405
1428
|
minDuration: 500
|
|
1406
|
-
});
|
|
1429
|
+
}), [d, c] = Q(!1);
|
|
1407
1430
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1408
1431
|
!1,
|
|
1409
1432
|
/* @__PURE__ */ a.jsxs(me, { titleTemplate: s == null ? void 0 : s.title, children: [
|
|
1410
1433
|
(s == null ? void 0 : s.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: s.description }),
|
|
1411
1434
|
(s == null ? void 0 : s.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: s.favicon })
|
|
1412
1435
|
] }),
|
|
1413
|
-
/* @__PURE__ */ a.jsx(
|
|
1436
|
+
/* @__PURE__ */ a.jsx(O, { name: "layout-before-head" }),
|
|
1414
1437
|
/* @__PURE__ */ a.jsx(ft, {}),
|
|
1415
|
-
/* @__PURE__ */ a.jsx(
|
|
1416
|
-
/* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children:
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
"
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
"lg:overflow-visible",
|
|
1437
|
-
// This works in tandem with the `SidebarWrapper` component
|
|
1438
|
-
"lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
|
|
1439
|
-
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
|
|
1438
|
+
/* @__PURE__ */ a.jsx(O, { name: "layout-after-head" }),
|
|
1439
|
+
/* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: l ? /* @__PURE__ */ a.jsx(qe, {}) : /* @__PURE__ */ a.jsx(ve, { fallback: /* @__PURE__ */ a.jsx(qe, {}), children: /* @__PURE__ */ a.jsxs(
|
|
1440
|
+
et,
|
|
1441
|
+
{
|
|
1442
|
+
direction: "left",
|
|
1443
|
+
open: d,
|
|
1444
|
+
onOpenChange: (m) => c(m),
|
|
1445
|
+
children: [
|
|
1446
|
+
/* @__PURE__ */ a.jsx(fa, { onRequestClose: () => c(!1) }),
|
|
1447
|
+
/* @__PURE__ */ a.jsx(
|
|
1448
|
+
"div",
|
|
1449
|
+
{
|
|
1450
|
+
className: R(
|
|
1451
|
+
"lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
|
|
1452
|
+
"peer-data-[navigation=false]:hidden"
|
|
1453
|
+
),
|
|
1454
|
+
children: /* @__PURE__ */ a.jsxs(tt, { className: "flex items-center gap-2", children: [
|
|
1455
|
+
/* @__PURE__ */ a.jsx(sr, { size: 16, strokeWidth: 1.5 }),
|
|
1456
|
+
/* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1457
|
+
] })
|
|
1458
|
+
}
|
|
1440
1459
|
),
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1460
|
+
/* @__PURE__ */ a.jsxs(
|
|
1461
|
+
"main",
|
|
1462
|
+
{
|
|
1463
|
+
className: R(
|
|
1464
|
+
"h-full dark:border-white/10 translate-x-0",
|
|
1465
|
+
"lg:overflow-visible",
|
|
1466
|
+
// This works in tandem with the `SidebarWrapper` component
|
|
1467
|
+
"lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
|
|
1468
|
+
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
|
|
1469
|
+
),
|
|
1470
|
+
children: [
|
|
1471
|
+
/* @__PURE__ */ a.jsx(O, { name: "zudoku-before-content" }),
|
|
1472
|
+
e ?? /* @__PURE__ */ a.jsx(Ge, {}),
|
|
1473
|
+
/* @__PURE__ */ a.jsx(O, { name: "zudoku-after-content" })
|
|
1474
|
+
]
|
|
1475
|
+
}
|
|
1476
|
+
)
|
|
1477
|
+
]
|
|
1478
|
+
}
|
|
1479
|
+
) }) })
|
|
1449
1480
|
] });
|
|
1450
1481
|
}, ga = Je(null), ce = {
|
|
1451
1482
|
didCatch: !1,
|
|
1452
1483
|
error: null
|
|
1453
1484
|
};
|
|
1454
|
-
class pa extends
|
|
1485
|
+
class pa extends Ut {
|
|
1455
1486
|
constructor(t) {
|
|
1456
1487
|
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ce;
|
|
1457
1488
|
}
|
|
@@ -1503,18 +1534,18 @@ class pa extends Vt {
|
|
|
1503
1534
|
didCatch: o,
|
|
1504
1535
|
error: i
|
|
1505
1536
|
} = this.state;
|
|
1506
|
-
let
|
|
1537
|
+
let l = t;
|
|
1507
1538
|
if (o) {
|
|
1508
1539
|
const d = {
|
|
1509
1540
|
error: i,
|
|
1510
1541
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1511
1542
|
};
|
|
1512
1543
|
if (typeof r == "function")
|
|
1513
|
-
|
|
1544
|
+
l = r(d);
|
|
1514
1545
|
else if (s)
|
|
1515
|
-
|
|
1546
|
+
l = Ie(s, d);
|
|
1516
1547
|
else if (n !== void 0)
|
|
1517
|
-
|
|
1548
|
+
l = n;
|
|
1518
1549
|
else
|
|
1519
1550
|
throw i;
|
|
1520
1551
|
}
|
|
@@ -1524,7 +1555,7 @@ class pa extends Vt {
|
|
|
1524
1555
|
error: i,
|
|
1525
1556
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1526
1557
|
}
|
|
1527
|
-
},
|
|
1558
|
+
}, l);
|
|
1528
1559
|
}
|
|
1529
1560
|
}
|
|
1530
1561
|
function va() {
|
|
@@ -1533,14 +1564,14 @@ function va() {
|
|
|
1533
1564
|
}
|
|
1534
1565
|
class xa {
|
|
1535
1566
|
constructor(t) {
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1567
|
+
N(this, "plugins");
|
|
1568
|
+
N(this, "sidebars");
|
|
1569
|
+
N(this, "topNavigation");
|
|
1570
|
+
N(this, "meta");
|
|
1571
|
+
N(this, "page");
|
|
1572
|
+
N(this, "authentication");
|
|
1573
|
+
N(this, "navigationPlugins");
|
|
1574
|
+
N(this, "initialize", async () => {
|
|
1544
1575
|
await Promise.all(
|
|
1545
1576
|
this.plugins.filter(ia).map((t) => {
|
|
1546
1577
|
var r;
|
|
@@ -1548,18 +1579,18 @@ class xa {
|
|
|
1548
1579
|
})
|
|
1549
1580
|
);
|
|
1550
1581
|
});
|
|
1551
|
-
|
|
1582
|
+
N(this, "getApiIdentities", async () => (await Promise.all(
|
|
1552
1583
|
this.plugins.filter(ca).map((r) => r.getIdentities(this))
|
|
1553
1584
|
)).flat());
|
|
1554
|
-
|
|
1585
|
+
N(this, "getPluginSidebar", async (t) => (await Promise.all(
|
|
1555
1586
|
this.navigationPlugins.map(
|
|
1556
1587
|
(s) => {
|
|
1557
1588
|
var n;
|
|
1558
|
-
return (n = s.getSidebar) == null ? void 0 : n.call(s,
|
|
1589
|
+
return (n = s.getSidebar) == null ? void 0 : n.call(s, q(t));
|
|
1559
1590
|
}
|
|
1560
1591
|
)
|
|
1561
1592
|
)).flatMap((s) => s ?? []));
|
|
1562
|
-
|
|
1593
|
+
N(this, "signRequest", async (t) => {
|
|
1563
1594
|
if (!this.authentication)
|
|
1564
1595
|
throw new Error("No authentication provider configured");
|
|
1565
1596
|
const r = await this.authentication.getAccessToken();
|
|
@@ -1578,62 +1609,62 @@ const gt = {
|
|
|
1578
1609
|
}, ba = Je(gt), ja = ba.Provider, wa = ({
|
|
1579
1610
|
children: e,
|
|
1580
1611
|
context: t
|
|
1581
|
-
}) => (
|
|
1612
|
+
}) => (qt({
|
|
1582
1613
|
queryFn: async () => (await t.initialize(), !0),
|
|
1583
1614
|
queryKey: ["zudoku-initialize"]
|
|
1584
|
-
}), /* @__PURE__ */ a.jsx(
|
|
1615
|
+
}), /* @__PURE__ */ a.jsx(Lt.Provider, { value: t, children: e })), pt = Xe(
|
|
1585
1616
|
({ children: e, ...t }) => {
|
|
1586
|
-
var
|
|
1617
|
+
var g, f;
|
|
1587
1618
|
const r = ne(
|
|
1588
1619
|
() => ({ ...gt, ...t.overrides }),
|
|
1589
1620
|
[t.overrides]
|
|
1590
1621
|
), s = ne(() => {
|
|
1591
|
-
var
|
|
1622
|
+
var x;
|
|
1592
1623
|
return {
|
|
1593
1624
|
...(t.plugins ?? []).filter(la).flatMap(
|
|
1594
|
-
(
|
|
1625
|
+
(h) => h.getMdxComponents ? [h.getMdxComponents()] : []
|
|
1595
1626
|
).reduce(
|
|
1596
|
-
(
|
|
1627
|
+
(h, j) => ({ ...h, ...j }),
|
|
1597
1628
|
{}
|
|
1598
1629
|
),
|
|
1599
|
-
...
|
|
1600
|
-
...(
|
|
1630
|
+
...nr,
|
|
1631
|
+
...(x = t.mdx) == null ? void 0 : x.components
|
|
1601
1632
|
};
|
|
1602
|
-
}, [(
|
|
1633
|
+
}, [(g = t.mdx) == null ? void 0 : g.components, t.plugins]), { stagger: n } = $t(ue), [o, i] = Q(!1), l = ne(
|
|
1603
1634
|
() => o ? { stagger: !0 } : { stagger: n },
|
|
1604
1635
|
[n, o]
|
|
1605
1636
|
), d = be();
|
|
1606
1637
|
L(() => {
|
|
1607
1638
|
o || i(!0);
|
|
1608
1639
|
}, [o, d.location]);
|
|
1609
|
-
const [
|
|
1610
|
-
var
|
|
1611
|
-
return /* @__PURE__ */ a.jsx(
|
|
1640
|
+
const [c] = Q(() => new xa(t)), m = (f = t.plugins) == null ? void 0 : f.filter(oa).map((p, x) => {
|
|
1641
|
+
var h;
|
|
1642
|
+
return /* @__PURE__ */ a.jsx(Kt, { children: (h = p.getHead) == null ? void 0 : h.call(p) }, x);
|
|
1612
1643
|
});
|
|
1613
1644
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1614
|
-
/* @__PURE__ */ a.jsx(me, { children:
|
|
1615
|
-
/* @__PURE__ */ a.jsx(ue.Provider, { value:
|
|
1645
|
+
/* @__PURE__ */ a.jsx(me, { children: m }),
|
|
1646
|
+
/* @__PURE__ */ a.jsx(ue.Provider, { value: l, children: /* @__PURE__ */ a.jsx(wa, { context: c, children: /* @__PURE__ */ a.jsx(ur, { components: s, children: /* @__PURE__ */ a.jsx(wr, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ a.jsx(ja, { value: r, children: /* @__PURE__ */ a.jsx(Et, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(ir, { children: e ?? /* @__PURE__ */ a.jsx(Ge, {}) }) }) }) }) }) }) })
|
|
1616
1647
|
] });
|
|
1617
1648
|
}
|
|
1618
1649
|
);
|
|
1619
1650
|
pt.displayName = "ZudokoInner";
|
|
1620
1651
|
const vt = (e) => /* @__PURE__ */ a.jsx(pa, { FallbackComponent: ya, children: /* @__PURE__ */ a.jsx(pt, { ...e }) });
|
|
1621
1652
|
vt.displayName = "Zudoku";
|
|
1622
|
-
const
|
|
1653
|
+
const Xa = dr, Ja = ma, Ga = Ct, es = Er, ts = Yr, rs = Wr, as = me, ss = F, ns = Nt, is = vt, os = kt, ls = je, cs = Pt, us = ge;
|
|
1623
1654
|
export {
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1655
|
+
ts as Bootstrap,
|
|
1656
|
+
rs as BootstrapStatic,
|
|
1657
|
+
cs as Button,
|
|
1658
|
+
os as Callout,
|
|
1659
|
+
ls as ClientOnly,
|
|
1660
|
+
as as Head,
|
|
1661
|
+
Ja as Layout,
|
|
1662
|
+
us as Link,
|
|
1663
|
+
Ga as RouterError,
|
|
1664
|
+
es as ServerError,
|
|
1665
|
+
is as Zudoku,
|
|
1666
|
+
ns as useAuth,
|
|
1667
|
+
Xa as useMDXComponents,
|
|
1668
|
+
ss as useZudoku
|
|
1638
1669
|
};
|
|
1639
1670
|
//# sourceMappingURL=zudoku.components.js.map
|