zudoku 0.36.0 → 0.37.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/config/validators/common.d.ts +252 -252
- package/dist/config/validators/common.js +4 -1
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +95 -95
- package/dist/lib/components/InlineCode.d.ts +2 -1
- package/dist/lib/components/InlineCode.js +1 -1
- package/dist/lib/components/InlineCode.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/TopNavigation.d.ts +2 -2
- package/dist/lib/components/TopNavigation.js +9 -12
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.js +3 -2
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
- package/dist/lib/components/context/ZudokuContext.js +9 -4
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
- package/dist/lib/components/navigation/SidebarCategory.js +10 -6
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +2 -2
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +7 -5
- package/dist/lib/plugins/openapi/ParamInfos.js +12 -4
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +3 -3
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +13 -6
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/ui/Badge.d.ts +1 -1
- package/dist/lib/ui/Button.d.ts +1 -1
- package/dist/lib/ui/Button.js +1 -1
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +6 -6
- package/dist/lib/util/joinPath.d.ts +3 -0
- package/dist/lib/util/joinPath.js +3 -0
- package/dist/lib/util/joinPath.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/config.js +1 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-api.js +3 -3
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +1 -1
- package/dist/vite/plugin-docs.js +18 -1
- package/dist/vite/plugin-docs.js.map +1 -1
- package/lib/{AuthenticationPlugin-Cr6xjOJD.js → AuthenticationPlugin-Cij2tPWa.js} +2 -2
- package/lib/{AuthenticationPlugin-Cr6xjOJD.js.map → AuthenticationPlugin-Cij2tPWa.js.map} +1 -1
- package/lib/{Spinner-C6n4eOvh.js → Button-Fp19CMUr.js} +15 -18
- package/lib/Button-Fp19CMUr.js.map +1 -0
- package/lib/{Markdown-BlioIqkZ.js → Markdown-DT5Rrq8_.js} +3520 -3260
- package/lib/Markdown-DT5Rrq8_.js.map +1 -0
- package/lib/{MdxPage-7XnN9J9R.js → MdxPage-D2rD1vC4.js} +3 -3
- package/lib/{MdxPage-7XnN9J9R.js.map → MdxPage-D2rD1vC4.js.map} +1 -1
- package/lib/{OasProvider-BaRRMSsD.js → OasProvider-DdEBf2qS.js} +3 -3
- package/lib/{OasProvider-BaRRMSsD.js.map → OasProvider-DdEBf2qS.js.map} +1 -1
- package/lib/{OperationList-BjL1hzSx.js → OperationList-DT4-gm_S.js} +880 -878
- package/lib/OperationList-DT4-gm_S.js.map +1 -0
- package/lib/{Select-FAYHOYTy.js → Select-z1Lwl0-J.js} +3 -3
- package/lib/{Select-FAYHOYTy.js.map → Select-z1Lwl0-J.js.map} +1 -1
- package/lib/{SlotletProvider-CXb3wQiR.js → SlotletProvider-D8OBnr77.js} +2 -2
- package/lib/{SlotletProvider-CXb3wQiR.js.map → SlotletProvider-D8OBnr77.js.map} +1 -1
- package/lib/Spinner-CE68iCm0.js +7 -0
- package/lib/Spinner-CE68iCm0.js.map +1 -0
- package/lib/{hook-Bo80UX00.js → hook-DzQC8PzJ.js} +78 -74
- package/lib/hook-DzQC8PzJ.js.map +1 -0
- package/lib/{index-D5m8_oyY.js → index-DdQSV2RF.js} +31 -31
- package/lib/{index-D5m8_oyY.js.map → index-DdQSV2RF.js.map} +1 -1
- package/lib/{useQuery-CQUwWR9i.js → joinUrl-BjDooT-T.js} +240 -223
- package/lib/joinUrl-BjDooT-T.js.map +1 -0
- package/lib/{mutation-B81DztCT.js → mutation-_Z5C2wFZ.js} +2 -2
- package/lib/{mutation-B81DztCT.js.map → mutation-_Z5C2wFZ.js.map} +1 -1
- package/lib/ui/ActionButton.js +11 -10
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/ui/Button.js +1 -1
- package/lib/ui/Button.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +3 -3
- package/lib/zudoku.components.js +345 -347
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +3 -3
- package/lib/zudoku.plugin-api-keys.js +4 -4
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-search-pagefind.js +15 -16
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +4 -2
- package/src/lib/components/InlineCode.tsx +3 -1
- package/src/lib/components/MobileTopNavigation.tsx +1 -1
- package/src/lib/components/TopNavigation.tsx +12 -16
- package/src/lib/components/Zudoku.tsx +5 -2
- package/src/lib/components/context/ZudokuContext.ts +12 -4
- package/src/lib/components/navigation/SidebarCategory.tsx +15 -12
- package/src/lib/components/navigation/SidebarItem.tsx +2 -2
- package/src/lib/components/navigation/SidebarWrapper.tsx +2 -2
- package/src/lib/core/plugins.ts +8 -8
- package/src/lib/plugins/openapi/ParamInfos.tsx +27 -4
- package/src/lib/plugins/openapi/ParameterListItem.tsx +5 -1
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +5 -2
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +48 -35
- package/src/lib/ui/Button.tsx +1 -1
- package/src/lib/util/joinPath.tsx +3 -0
- package/lib/Markdown-BlioIqkZ.js.map +0 -1
- package/lib/OperationList-BjL1hzSx.js.map +0 -1
- package/lib/Spinner-C6n4eOvh.js.map +0 -1
- package/lib/hook-Bo80UX00.js.map +0 -1
- package/lib/joinUrl-10po2Jdj.js +0 -20
- package/lib/joinUrl-10po2Jdj.js.map +0 -1
- package/lib/useQuery-CQUwWR9i.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ut = Object.defineProperty;
|
|
2
2
|
var ye = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var l = (t, e, s) => (ve(t, e, "read from private field"), s ? s.call(t) : e.get(t)),
|
|
8
|
-
var
|
|
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 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 W = (t, e, s, n) => ({
|
|
9
9
|
set _(a) {
|
|
10
10
|
v(t, e, a, s);
|
|
11
11
|
},
|
|
@@ -13,51 +13,51 @@ var G = (t, e, s, n) => ({
|
|
|
13
13
|
return l(t, e, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { a as
|
|
17
|
-
import { z as
|
|
18
|
-
import { a as
|
|
19
|
-
import { e as
|
|
16
|
+
import { a as Fe, H as le, M as ht, u as ft } from "./index.esm-CltAN0Tf.js";
|
|
17
|
+
import { z as ze, J as mt } from "./index-DwT-v3zK.js";
|
|
18
|
+
import { a as gt, u as se, m as pt, O as ce, R as xt, S as yt, g as ue, h as vt, L as de } from "./chunk-HA7DTUK3-ZGg2W6yV.js";
|
|
19
|
+
import { e as $, a as O, f as Be, t as bt, j as jt, b as wt, Z as Pt, g as Ct, C as Nt } from "./hook-DzQC8PzJ.js";
|
|
20
20
|
import { j as r } from "./jsx-runtime-CYK1ROHF.js";
|
|
21
|
-
import { S as
|
|
22
|
-
import { D as
|
|
23
|
-
import { Z as
|
|
24
|
-
import { u as
|
|
25
|
-
import { E as
|
|
21
|
+
import { S as He, i as Le, l as Dt, n as P, m as be, o as je, p as T, q as kt, r as St, t as Et, v as Ot, w as we, x as Pe, y as Mt, h as Ce, z as Ne, e as At, u as Ke, d as Tt, A as $e, j as V } from "./joinUrl-BjDooT-T.js";
|
|
22
|
+
import { D as qt, a as It, c as Qt, b as Rt, d as Ft } from "./Dialog-sbgekbjb.js";
|
|
23
|
+
import { Z as zt } from "./invariant-Caa8-XvF.js";
|
|
24
|
+
import { u as Bt, o as Ht } from "./objectEntries-BS7aAgOm.js";
|
|
25
|
+
import { E as Ue, S as D, a as Lt, R as Kt } from "./SlotletProvider-D8OBnr77.js";
|
|
26
26
|
import { Button as $t } from "./ui/Button.js";
|
|
27
27
|
import { Callout as Ut } from "./ui/Callout.js";
|
|
28
|
-
import { M as Zt } from "./mutation-
|
|
29
|
-
import * as
|
|
30
|
-
import Yt, { createContext as he, StrictMode as
|
|
28
|
+
import { M as Zt } from "./mutation-_Z5C2wFZ.js";
|
|
29
|
+
import * as I from "react";
|
|
30
|
+
import Yt, { createContext as he, StrictMode as Ze, useRef as fe, useEffect as Z, useState as U, useCallback as Xt, Suspense as me, memo as Ye, Component as Vt, createElement as De, useMemo as re, useContext as _t } from "react";
|
|
31
31
|
import * as Gt from "react-dom";
|
|
32
32
|
import { C as ge } from "./ClientOnly-E7hGysn1.js";
|
|
33
|
-
import { s as Wt, S as
|
|
34
|
-
import { B as
|
|
33
|
+
import { s as Wt, S as ke, a as Jt, H as es, P as ts, b as ss, V as rs, M as ns } from "./Markdown-DT5Rrq8_.js";
|
|
34
|
+
import { B as ie } from "./Button-Fp19CMUr.js";
|
|
35
35
|
import { c as E } from "./cn-qaFjX9_3.js";
|
|
36
36
|
import { isSearchPlugin as as, isProfileMenuPlugin as is, isNavigationPlugin as os, isEventConsumerPlugin as ls, needsInitialization as cs, isApiIdentityPlugin as us, isMdxProviderPlugin as ds, hasHead as hs } from "./zudoku.plugins.js";
|
|
37
|
-
import { DropdownMenu as fs, DropdownMenuTrigger as ms, DropdownMenuContent as gs, DropdownMenuLabel as ps, DropdownMenuSeparator as
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import { D as Ss, a as Es, b as We, c as Je, d as M } from "./Drawer-kDAfOq_2.js";
|
|
37
|
+
import { DropdownMenu as fs, DropdownMenuTrigger as ms, DropdownMenuContent as gs, DropdownMenuLabel as ps, DropdownMenuSeparator as ne, DropdownMenuSub as xs, DropdownMenuSubTrigger as ys, DropdownMenuPortal as vs, DropdownMenuSubContent as bs, DropdownMenuItem as js } from "./ui/DropdownMenu.js";
|
|
38
|
+
import { CircleXIcon as ws, SearchIcon as Ps, SunIcon as Cs, MoonIcon as Ns, MenuIcon as Ds, PanelLeftIcon as ks } from "lucide-react";
|
|
39
|
+
import { VisuallyHidden as Xe } from "@radix-ui/react-visually-hidden";
|
|
40
|
+
import { D as Ss, a as Es, b as Ve, c as _e, d as M } from "./Drawer-kDAfOq_2.js";
|
|
42
41
|
import { a as Os } from "./index-CPNSgwSb.js";
|
|
42
|
+
import { S as Ge } from "./Spinner-CE68iCm0.js";
|
|
43
43
|
import { C as Ms } from "./CategoryHeading-DpB47wvk.js";
|
|
44
|
-
var S,
|
|
44
|
+
var S, Ie, As = (Ie = class extends He {
|
|
45
45
|
constructor(e = {}) {
|
|
46
46
|
super();
|
|
47
|
-
|
|
47
|
+
w(this, S);
|
|
48
48
|
this.config = e, v(this, S, /* @__PURE__ */ new Map());
|
|
49
49
|
}
|
|
50
50
|
build(e, s, n) {
|
|
51
|
-
const a = s.queryKey,
|
|
52
|
-
let
|
|
53
|
-
return
|
|
51
|
+
const a = s.queryKey, o = s.queryHash ?? Le(a, s);
|
|
52
|
+
let i = this.get(o);
|
|
53
|
+
return i || (i = new Dt({
|
|
54
54
|
client: e,
|
|
55
55
|
queryKey: a,
|
|
56
|
-
queryHash:
|
|
56
|
+
queryHash: o,
|
|
57
57
|
options: e.defaultQueryOptions(s),
|
|
58
58
|
state: n,
|
|
59
59
|
defaultOptions: e.getQueryDefaults(a)
|
|
60
|
-
}), this.add(
|
|
60
|
+
}), this.add(i)), i;
|
|
61
61
|
}
|
|
62
62
|
add(e) {
|
|
63
63
|
l(this, S).has(e.queryHash) || (l(this, S).set(e.queryHash, e), this.notify({
|
|
@@ -70,7 +70,7 @@ var S, Qe, Ts = (Qe = class extends Le {
|
|
|
70
70
|
s && (e.destroy(), s === e && l(this, S).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
71
71
|
}
|
|
72
72
|
clear() {
|
|
73
|
-
|
|
73
|
+
P.batch(() => {
|
|
74
74
|
this.getAll().forEach((e) => {
|
|
75
75
|
this.remove(e);
|
|
76
76
|
});
|
|
@@ -93,46 +93,46 @@ var S, Qe, Ts = (Qe = class extends Le {
|
|
|
93
93
|
return Object.keys(e).length > 0 ? s.filter((n) => be(e, n)) : s;
|
|
94
94
|
}
|
|
95
95
|
notify(e) {
|
|
96
|
-
|
|
96
|
+
P.batch(() => {
|
|
97
97
|
this.listeners.forEach((s) => {
|
|
98
98
|
s(e);
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
onFocus() {
|
|
103
|
-
|
|
103
|
+
P.batch(() => {
|
|
104
104
|
this.getAll().forEach((e) => {
|
|
105
105
|
e.onFocus();
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
onOnline() {
|
|
110
|
-
|
|
110
|
+
P.batch(() => {
|
|
111
111
|
this.getAll().forEach((e) => {
|
|
112
112
|
e.onOnline();
|
|
113
113
|
});
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
}, S = new WeakMap(),
|
|
116
|
+
}, S = new WeakMap(), Ie), q, N, _, Qe, Ts = (Qe = class extends He {
|
|
117
117
|
constructor(e = {}) {
|
|
118
118
|
super();
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
this.config = e, v(this,
|
|
119
|
+
w(this, q);
|
|
120
|
+
w(this, N);
|
|
121
|
+
w(this, _);
|
|
122
|
+
this.config = e, v(this, q, /* @__PURE__ */ new Set()), v(this, N, /* @__PURE__ */ new Map()), v(this, _, 0);
|
|
123
123
|
}
|
|
124
124
|
build(e, s, n) {
|
|
125
125
|
const a = new Zt({
|
|
126
126
|
mutationCache: this,
|
|
127
|
-
mutationId: ++
|
|
127
|
+
mutationId: ++W(this, _)._,
|
|
128
128
|
options: e.defaultMutationOptions(s),
|
|
129
129
|
state: n
|
|
130
130
|
});
|
|
131
131
|
return this.add(a), a;
|
|
132
132
|
}
|
|
133
133
|
add(e) {
|
|
134
|
-
l(this,
|
|
135
|
-
const s =
|
|
134
|
+
l(this, q).add(e);
|
|
135
|
+
const s = J(e);
|
|
136
136
|
if (typeof s == "string") {
|
|
137
137
|
const n = l(this, N).get(s);
|
|
138
138
|
n ? n.push(e) : l(this, N).set(s, [e]);
|
|
@@ -140,8 +140,8 @@ var S, Qe, Ts = (Qe = class extends Le {
|
|
|
140
140
|
this.notify({ type: "added", mutation: e });
|
|
141
141
|
}
|
|
142
142
|
remove(e) {
|
|
143
|
-
if (l(this,
|
|
144
|
-
const s =
|
|
143
|
+
if (l(this, q).delete(e)) {
|
|
144
|
+
const s = J(e);
|
|
145
145
|
if (typeof s == "string") {
|
|
146
146
|
const n = l(this, N).get(s);
|
|
147
147
|
if (n)
|
|
@@ -154,10 +154,10 @@ var S, Qe, Ts = (Qe = class extends Le {
|
|
|
154
154
|
this.notify({ type: "removed", mutation: e });
|
|
155
155
|
}
|
|
156
156
|
canRun(e) {
|
|
157
|
-
const s =
|
|
157
|
+
const s = J(e);
|
|
158
158
|
if (typeof s == "string") {
|
|
159
159
|
const n = l(this, N).get(s), a = n == null ? void 0 : n.find(
|
|
160
|
-
(
|
|
160
|
+
(o) => o.state.status === "pending"
|
|
161
161
|
);
|
|
162
162
|
return !a || a === e;
|
|
163
163
|
} else
|
|
@@ -165,22 +165,22 @@ var S, Qe, Ts = (Qe = class extends Le {
|
|
|
165
165
|
}
|
|
166
166
|
runNext(e) {
|
|
167
167
|
var n;
|
|
168
|
-
const s =
|
|
168
|
+
const s = J(e);
|
|
169
169
|
if (typeof s == "string") {
|
|
170
|
-
const a = (n = l(this, N).get(s)) == null ? void 0 : n.find((
|
|
170
|
+
const a = (n = l(this, N).get(s)) == null ? void 0 : n.find((o) => o !== e && o.state.isPaused);
|
|
171
171
|
return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
|
|
172
172
|
} else
|
|
173
173
|
return Promise.resolve();
|
|
174
174
|
}
|
|
175
175
|
clear() {
|
|
176
|
-
|
|
177
|
-
l(this,
|
|
176
|
+
P.batch(() => {
|
|
177
|
+
l(this, q).forEach((e) => {
|
|
178
178
|
this.notify({ type: "removed", mutation: e });
|
|
179
|
-
}), l(this,
|
|
179
|
+
}), l(this, q).clear(), l(this, N).clear();
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
182
|
getAll() {
|
|
183
|
-
return Array.from(l(this,
|
|
183
|
+
return Array.from(l(this, q));
|
|
184
184
|
}
|
|
185
185
|
find(e) {
|
|
186
186
|
const s = { exact: !0, ...e };
|
|
@@ -192,7 +192,7 @@ var S, Qe, Ts = (Qe = class extends Le {
|
|
|
192
192
|
return this.getAll().filter((s) => je(e, s));
|
|
193
193
|
}
|
|
194
194
|
notify(e) {
|
|
195
|
-
|
|
195
|
+
P.batch(() => {
|
|
196
196
|
this.listeners.forEach((s) => {
|
|
197
197
|
s(e);
|
|
198
198
|
});
|
|
@@ -200,73 +200,73 @@ var S, Qe, Ts = (Qe = class extends Le {
|
|
|
200
200
|
}
|
|
201
201
|
resumePausedMutations() {
|
|
202
202
|
const e = this.getAll().filter((s) => s.state.isPaused);
|
|
203
|
-
return
|
|
203
|
+
return P.batch(
|
|
204
204
|
() => Promise.all(
|
|
205
205
|
e.map((s) => s.continue().catch(T))
|
|
206
206
|
)
|
|
207
207
|
);
|
|
208
208
|
}
|
|
209
|
-
},
|
|
210
|
-
function
|
|
209
|
+
}, q = new WeakMap(), N = new WeakMap(), _ = new WeakMap(), Qe);
|
|
210
|
+
function J(t) {
|
|
211
211
|
var e;
|
|
212
212
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Se(t) {
|
|
215
215
|
return {
|
|
216
216
|
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,
|
|
217
|
+
var x, f, h, p, C;
|
|
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, o = ((p = e.state.data) == null ? void 0 : p.pages) || [], i = ((C = e.state.data) == null ? void 0 : C.pageParams) || [];
|
|
219
219
|
let u = { pages: [], pageParams: [] }, d = 0;
|
|
220
220
|
const c = async () => {
|
|
221
221
|
let m = !1;
|
|
222
|
-
const
|
|
223
|
-
Object.defineProperty(
|
|
222
|
+
const y = (b) => {
|
|
223
|
+
Object.defineProperty(b, "signal", {
|
|
224
224
|
enumerable: !0,
|
|
225
225
|
get: () => (e.signal.aborted ? m = !0 : e.signal.addEventListener("abort", () => {
|
|
226
226
|
m = !0;
|
|
227
227
|
}), e.signal)
|
|
228
228
|
});
|
|
229
|
-
},
|
|
229
|
+
}, A = kt(e.options, e.fetchOptions), z = async (b, k, Y) => {
|
|
230
230
|
if (m)
|
|
231
231
|
return Promise.reject();
|
|
232
|
-
if (
|
|
233
|
-
return Promise.resolve(
|
|
234
|
-
const
|
|
232
|
+
if (k == null && b.pages.length)
|
|
233
|
+
return Promise.resolve(b);
|
|
234
|
+
const G = {
|
|
235
235
|
client: e.client,
|
|
236
236
|
queryKey: e.queryKey,
|
|
237
|
-
pageParam:
|
|
237
|
+
pageParam: k,
|
|
238
238
|
direction: Y ? "backward" : "forward",
|
|
239
239
|
meta: e.options.meta
|
|
240
240
|
};
|
|
241
|
-
|
|
242
|
-
const
|
|
243
|
-
|
|
244
|
-
), { maxPages: pe } = e.options, xe = Y ?
|
|
241
|
+
y(G);
|
|
242
|
+
const ct = await A(
|
|
243
|
+
G
|
|
244
|
+
), { maxPages: pe } = e.options, xe = Y ? St : Et;
|
|
245
245
|
return {
|
|
246
|
-
pages: xe(
|
|
247
|
-
pageParams: xe(
|
|
246
|
+
pages: xe(b.pages, ct, pe),
|
|
247
|
+
pageParams: xe(b.pageParams, k, pe)
|
|
248
248
|
};
|
|
249
249
|
};
|
|
250
|
-
if (a &&
|
|
251
|
-
const
|
|
252
|
-
pages:
|
|
253
|
-
pageParams:
|
|
254
|
-
},
|
|
255
|
-
u = await
|
|
250
|
+
if (a && o.length) {
|
|
251
|
+
const b = a === "backward", k = b ? qs : Ee, Y = {
|
|
252
|
+
pages: o,
|
|
253
|
+
pageParams: i
|
|
254
|
+
}, G = k(n, Y);
|
|
255
|
+
u = await z(Y, G, b);
|
|
256
256
|
} else {
|
|
257
|
-
const
|
|
257
|
+
const b = t ?? o.length;
|
|
258
258
|
do {
|
|
259
|
-
const
|
|
260
|
-
if (d > 0 &&
|
|
259
|
+
const k = d === 0 ? i[0] ?? n.initialPageParam : Ee(n, u);
|
|
260
|
+
if (d > 0 && k == null)
|
|
261
261
|
break;
|
|
262
|
-
u = await
|
|
263
|
-
} while (d <
|
|
262
|
+
u = await z(u, k), d++;
|
|
263
|
+
} while (d < b);
|
|
264
264
|
}
|
|
265
265
|
return u;
|
|
266
266
|
};
|
|
267
267
|
e.options.persister ? e.fetchFn = () => {
|
|
268
|
-
var m,
|
|
269
|
-
return (
|
|
268
|
+
var m, y;
|
|
269
|
+
return (y = (m = e.options).persister) == null ? void 0 : y.call(
|
|
270
270
|
m,
|
|
271
271
|
c,
|
|
272
272
|
{
|
|
@@ -281,7 +281,7 @@ function Ee(t) {
|
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Ee(t, { pages: e, pageParams: s }) {
|
|
285
285
|
const n = e.length - 1;
|
|
286
286
|
return e.length > 0 ? t.getNextPageParam(
|
|
287
287
|
e[n],
|
|
@@ -294,34 +294,34 @@ function qs(t, { pages: e, pageParams: s }) {
|
|
|
294
294
|
var n;
|
|
295
295
|
return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, s[0], s) : void 0;
|
|
296
296
|
}
|
|
297
|
-
var g,
|
|
297
|
+
var g, Q, R, B, H, F, L, K, Re, Is = (Re = class {
|
|
298
298
|
constructor(t = {}) {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
v(this, g, t.queryCache || new
|
|
299
|
+
w(this, g);
|
|
300
|
+
w(this, Q);
|
|
301
|
+
w(this, R);
|
|
302
|
+
w(this, B);
|
|
303
|
+
w(this, H);
|
|
304
|
+
w(this, F);
|
|
305
|
+
w(this, L);
|
|
306
|
+
w(this, K);
|
|
307
|
+
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, H, /* @__PURE__ */ new Map()), v(this, F, 0);
|
|
308
308
|
}
|
|
309
309
|
mount() {
|
|
310
|
-
|
|
310
|
+
W(this, F)._++, l(this, F) === 1 && (v(this, L, Ot.subscribe(async (t) => {
|
|
311
311
|
t && (await this.resumePausedMutations(), l(this, g).onFocus());
|
|
312
|
-
})), v(this,
|
|
312
|
+
})), v(this, K, we.subscribe(async (t) => {
|
|
313
313
|
t && (await this.resumePausedMutations(), l(this, g).onOnline());
|
|
314
314
|
})));
|
|
315
315
|
}
|
|
316
316
|
unmount() {
|
|
317
317
|
var t, e;
|
|
318
|
-
|
|
318
|
+
W(this, F)._--, l(this, F) === 0 && ((t = l(this, L)) == null || t.call(this), v(this, L, void 0), (e = l(this, K)) == null || e.call(this), v(this, K, void 0));
|
|
319
319
|
}
|
|
320
320
|
isFetching(t) {
|
|
321
321
|
return l(this, g).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
322
322
|
}
|
|
323
323
|
isMutating(t) {
|
|
324
|
-
return l(this,
|
|
324
|
+
return l(this, Q).findAll({ ...t, status: "pending" }).length;
|
|
325
325
|
}
|
|
326
326
|
getQueryData(t) {
|
|
327
327
|
var s;
|
|
@@ -341,12 +341,12 @@ var g, I, Q, z, H, R, B, L, Fe, Is = (Fe = class {
|
|
|
341
341
|
setQueryData(t, e, s) {
|
|
342
342
|
const n = this.defaultQueryOptions({ queryKey: t }), a = l(this, g).get(
|
|
343
343
|
n.queryHash
|
|
344
|
-
),
|
|
345
|
-
if (
|
|
346
|
-
return l(this, g).build(this, n).setData(
|
|
344
|
+
), o = a == null ? void 0 : a.state.data, i = Mt(e, o);
|
|
345
|
+
if (i !== void 0)
|
|
346
|
+
return l(this, g).build(this, n).setData(i, { ...s, manual: !0 });
|
|
347
347
|
}
|
|
348
348
|
setQueriesData(t, e, s) {
|
|
349
|
-
return
|
|
349
|
+
return P.batch(
|
|
350
350
|
() => l(this, g).findAll(t).map(({ queryKey: n }) => [
|
|
351
351
|
n,
|
|
352
352
|
this.setQueryData(n, e, s)
|
|
@@ -362,7 +362,7 @@ var g, I, Q, z, H, R, B, L, Fe, Is = (Fe = class {
|
|
|
362
362
|
}
|
|
363
363
|
removeQueries(t) {
|
|
364
364
|
const e = l(this, g);
|
|
365
|
-
|
|
365
|
+
P.batch(() => {
|
|
366
366
|
e.findAll(t).forEach((s) => {
|
|
367
367
|
e.remove(s);
|
|
368
368
|
});
|
|
@@ -373,18 +373,18 @@ var g, I, Q, z, H, R, B, L, Fe, Is = (Fe = class {
|
|
|
373
373
|
type: "active",
|
|
374
374
|
...t
|
|
375
375
|
};
|
|
376
|
-
return
|
|
376
|
+
return P.batch(() => (s.findAll(t).forEach((a) => {
|
|
377
377
|
a.reset();
|
|
378
378
|
}), this.refetchQueries(n, e)));
|
|
379
379
|
}
|
|
380
380
|
cancelQueries(t, e = {}) {
|
|
381
|
-
const s = { revert: !0, ...e }, n =
|
|
381
|
+
const s = { revert: !0, ...e }, n = P.batch(
|
|
382
382
|
() => l(this, g).findAll(t).map((a) => a.cancel(s))
|
|
383
383
|
);
|
|
384
384
|
return Promise.all(n).then(T).catch(T);
|
|
385
385
|
}
|
|
386
386
|
invalidateQueries(t, e = {}) {
|
|
387
|
-
return
|
|
387
|
+
return P.batch(() => {
|
|
388
388
|
if (l(this, g).findAll(t).forEach((n) => {
|
|
389
389
|
n.invalidate();
|
|
390
390
|
}), (t == null ? void 0 : t.refetchType) === "none")
|
|
@@ -400,10 +400,10 @@ var g, I, Q, z, H, R, B, L, Fe, Is = (Fe = class {
|
|
|
400
400
|
const s = {
|
|
401
401
|
...e,
|
|
402
402
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
403
|
-
}, n =
|
|
403
|
+
}, n = P.batch(
|
|
404
404
|
() => l(this, g).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
|
|
405
|
-
let
|
|
406
|
-
return s.throwOnError || (
|
|
405
|
+
let o = a.fetch(void 0, s);
|
|
406
|
+
return s.throwOnError || (o = o.catch(T)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
407
407
|
})
|
|
408
408
|
);
|
|
409
409
|
return Promise.all(n).then(T);
|
|
@@ -420,37 +420,37 @@ var g, I, Q, z, H, R, B, L, Fe, Is = (Fe = class {
|
|
|
420
420
|
return this.fetchQuery(t).then(T).catch(T);
|
|
421
421
|
}
|
|
422
422
|
fetchInfiniteQuery(t) {
|
|
423
|
-
return t.behavior =
|
|
423
|
+
return t.behavior = Se(t.pages), this.fetchQuery(t);
|
|
424
424
|
}
|
|
425
425
|
prefetchInfiniteQuery(t) {
|
|
426
426
|
return this.fetchInfiniteQuery(t).then(T).catch(T);
|
|
427
427
|
}
|
|
428
428
|
ensureInfiniteQueryData(t) {
|
|
429
|
-
return t.behavior =
|
|
429
|
+
return t.behavior = Se(t.pages), this.ensureQueryData(t);
|
|
430
430
|
}
|
|
431
431
|
resumePausedMutations() {
|
|
432
|
-
return we.isOnline() ? l(this,
|
|
432
|
+
return we.isOnline() ? l(this, Q).resumePausedMutations() : Promise.resolve();
|
|
433
433
|
}
|
|
434
434
|
getQueryCache() {
|
|
435
435
|
return l(this, g);
|
|
436
436
|
}
|
|
437
437
|
getMutationCache() {
|
|
438
|
-
return l(this,
|
|
438
|
+
return l(this, Q);
|
|
439
439
|
}
|
|
440
440
|
getDefaultOptions() {
|
|
441
|
-
return l(this,
|
|
441
|
+
return l(this, R);
|
|
442
442
|
}
|
|
443
443
|
setDefaultOptions(t) {
|
|
444
|
-
v(this,
|
|
444
|
+
v(this, R, t);
|
|
445
445
|
}
|
|
446
446
|
setQueryDefaults(t, e) {
|
|
447
|
-
l(this,
|
|
447
|
+
l(this, B).set(Ce(t), {
|
|
448
448
|
queryKey: t,
|
|
449
449
|
defaultOptions: e
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
452
|
getQueryDefaults(t) {
|
|
453
|
-
const e = [...l(this,
|
|
453
|
+
const e = [...l(this, B).values()], s = {};
|
|
454
454
|
return e.forEach((n) => {
|
|
455
455
|
Ne(t, n.queryKey) && Object.assign(s, n.defaultOptions);
|
|
456
456
|
}), s;
|
|
@@ -472,37 +472,37 @@ var g, I, Q, z, H, R, B, L, Fe, Is = (Fe = class {
|
|
|
472
472
|
if (t._defaulted)
|
|
473
473
|
return t;
|
|
474
474
|
const e = {
|
|
475
|
-
...l(this,
|
|
475
|
+
...l(this, R).queries,
|
|
476
476
|
...this.getQueryDefaults(t.queryKey),
|
|
477
477
|
...t,
|
|
478
478
|
_defaulted: !0
|
|
479
479
|
};
|
|
480
|
-
return e.queryHash || (e.queryHash =
|
|
480
|
+
return e.queryHash || (e.queryHash = Le(
|
|
481
481
|
e.queryKey,
|
|
482
482
|
e
|
|
483
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 === At && (e.enabled = !1), e;
|
|
484
484
|
}
|
|
485
485
|
defaultMutationOptions(t) {
|
|
486
486
|
return t != null && t._defaulted ? t : {
|
|
487
|
-
...l(this,
|
|
487
|
+
...l(this, R).mutations,
|
|
488
488
|
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
489
489
|
...t,
|
|
490
490
|
_defaulted: !0
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
493
|
clear() {
|
|
494
|
-
l(this, g).clear(), l(this,
|
|
494
|
+
l(this, g).clear(), l(this, Q).clear();
|
|
495
495
|
}
|
|
496
|
-
}, g = new WeakMap(),
|
|
496
|
+
}, g = new WeakMap(), Q = new WeakMap(), R = new WeakMap(), B = new WeakMap(), H = new WeakMap(), F = new WeakMap(), L = new WeakMap(), K = new WeakMap(), Re);
|
|
497
497
|
function Qs(t) {
|
|
498
498
|
return t;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function Oe(t, e, s) {
|
|
501
501
|
var d, c;
|
|
502
502
|
if (typeof e != "object" || e === null)
|
|
503
503
|
return;
|
|
504
|
-
const n = t.getMutationCache(), a = t.getQueryCache(),
|
|
505
|
-
|
|
504
|
+
const n = t.getMutationCache(), a = t.getQueryCache(), o = ((d = s == null ? void 0 : s.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Qs, i = e.mutations || [], u = e.queries || [];
|
|
505
|
+
i.forEach(({ state: x, ...f }) => {
|
|
506
506
|
var h, p;
|
|
507
507
|
n.build(
|
|
508
508
|
t,
|
|
@@ -513,24 +513,24 @@ function Me(t, e, s) {
|
|
|
513
513
|
},
|
|
514
514
|
x
|
|
515
515
|
);
|
|
516
|
-
}), u.forEach(({ queryKey: x, state: f, queryHash: h, meta: p, promise:
|
|
517
|
-
var
|
|
516
|
+
}), u.forEach(({ queryKey: x, state: f, queryHash: h, meta: p, promise: C }) => {
|
|
517
|
+
var A, z;
|
|
518
518
|
let m = a.get(h);
|
|
519
|
-
const
|
|
519
|
+
const y = f.data === void 0 ? f.data : o(f.data);
|
|
520
520
|
if (m) {
|
|
521
521
|
if (m.state.dataUpdatedAt < f.dataUpdatedAt) {
|
|
522
|
-
const { fetchStatus:
|
|
522
|
+
const { fetchStatus: b, ...k } = f;
|
|
523
523
|
m.setState({
|
|
524
|
-
...
|
|
525
|
-
data:
|
|
524
|
+
...k,
|
|
525
|
+
data: y
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
528
|
} else
|
|
529
529
|
m = a.build(
|
|
530
530
|
t,
|
|
531
531
|
{
|
|
532
|
-
...(
|
|
533
|
-
...(
|
|
532
|
+
...(A = t.getDefaultOptions().hydrate) == null ? void 0 : A.queries,
|
|
533
|
+
...(z = s == null ? void 0 : s.defaultOptions) == null ? void 0 : z.queries,
|
|
534
534
|
queryKey: x,
|
|
535
535
|
queryHash: h,
|
|
536
536
|
meta: p
|
|
@@ -539,24 +539,24 @@ function Me(t, e, s) {
|
|
|
539
539
|
// query being stuck in fetching state upon hydration
|
|
540
540
|
{
|
|
541
541
|
...f,
|
|
542
|
-
data:
|
|
542
|
+
data: y,
|
|
543
543
|
fetchStatus: "idle"
|
|
544
544
|
}
|
|
545
545
|
);
|
|
546
|
-
if (
|
|
547
|
-
const
|
|
548
|
-
m.fetch(void 0, { initialPromise:
|
|
546
|
+
if (C) {
|
|
547
|
+
const b = Promise.resolve(C).then(o);
|
|
548
|
+
m.fetch(void 0, { initialPromise: b });
|
|
549
549
|
}
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
var
|
|
552
|
+
var Me = (t, e) => typeof t == "object" && t !== null && e in t, Rs = ({
|
|
553
553
|
children: t,
|
|
554
554
|
options: e = {},
|
|
555
555
|
state: s,
|
|
556
556
|
queryClient: n
|
|
557
557
|
}) => {
|
|
558
|
-
const a =
|
|
559
|
-
return u.current = e,
|
|
558
|
+
const a = Ke(n), [o, i] = I.useState(), u = I.useRef(e);
|
|
559
|
+
return u.current = e, I.useMemo(() => {
|
|
560
560
|
if (s) {
|
|
561
561
|
if (typeof s != "object")
|
|
562
562
|
return;
|
|
@@ -566,26 +566,26 @@ var Te = (t, e) => typeof t == "object" && t !== null && e in t, Rs = ({
|
|
|
566
566
|
if (!p)
|
|
567
567
|
x.push(h);
|
|
568
568
|
else {
|
|
569
|
-
const
|
|
570
|
-
|
|
571
|
-
(
|
|
569
|
+
const C = h.state.dataUpdatedAt > p.state.dataUpdatedAt || // RSC special serialized then-able chunks
|
|
570
|
+
Me(h.promise, "status") && Me(p.promise, "status") && h.promise.status !== p.promise.status, m = o == null ? void 0 : o.find(
|
|
571
|
+
(y) => y.queryHash === h.queryHash
|
|
572
572
|
);
|
|
573
|
-
|
|
573
|
+
C && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && f.push(h);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
x.length > 0 &&
|
|
576
|
+
x.length > 0 && Oe(a, { queries: x }, u.current), f.length > 0 && i(
|
|
577
577
|
(h) => h ? [...h, ...f] : f
|
|
578
578
|
);
|
|
579
579
|
}
|
|
580
|
-
}, [a,
|
|
581
|
-
|
|
582
|
-
}, [a,
|
|
580
|
+
}, [a, o, s]), I.useEffect(() => {
|
|
581
|
+
o && (Oe(a, { queries: o }, u.current), i(void 0));
|
|
582
|
+
}, [a, o]), t;
|
|
583
583
|
};
|
|
584
584
|
const Fs = () => {
|
|
585
|
-
const t =
|
|
586
|
-
(u) =>
|
|
585
|
+
const t = $(), e = O(), s = gt(), n = se(), a = Bt(n.pathname), { protectedRoutes: o = [] } = e.options, i = o.some(
|
|
586
|
+
(u) => pt({ path: u, end: !0 }, n.pathname)
|
|
587
587
|
);
|
|
588
|
-
if (
|
|
588
|
+
if (Tt({
|
|
589
589
|
queryKey: ["login-redirect"],
|
|
590
590
|
queryFn: async () => {
|
|
591
591
|
var u;
|
|
@@ -593,30 +593,30 @@ const Fs = () => {
|
|
|
593
593
|
redirectTo: a.current
|
|
594
594
|
})), !0;
|
|
595
595
|
},
|
|
596
|
-
enabled: typeof window < "u" &&
|
|
597
|
-
}),
|
|
596
|
+
enabled: typeof window < "u" && i && !t.isPending && !t.isAuthenticated
|
|
597
|
+
}), i && !t.isAuthenticated)
|
|
598
598
|
return /* @__PURE__ */ r.jsx(
|
|
599
|
-
|
|
599
|
+
qt,
|
|
600
600
|
{
|
|
601
601
|
open: !0,
|
|
602
602
|
onOpenChange: (u) => {
|
|
603
603
|
u || s(-1);
|
|
604
604
|
},
|
|
605
|
-
children: /* @__PURE__ */ r.jsxs(
|
|
606
|
-
/* @__PURE__ */ r.jsx(
|
|
607
|
-
/* @__PURE__ */ r.jsx(
|
|
605
|
+
children: /* @__PURE__ */ r.jsxs(It, { children: [
|
|
606
|
+
/* @__PURE__ */ r.jsx(Qt, { children: /* @__PURE__ */ r.jsx(Rt, { children: "Logging you in..." }) }),
|
|
607
|
+
/* @__PURE__ */ r.jsx(Ft, { children: "Please wait while we log you in." })
|
|
608
608
|
] })
|
|
609
609
|
}
|
|
610
610
|
);
|
|
611
|
-
if (
|
|
612
|
-
throw new
|
|
611
|
+
if (i && !t.isAuthEnabled)
|
|
612
|
+
throw new zt("Authentication is not enabled", {
|
|
613
613
|
title: "Authentication is not enabled",
|
|
614
614
|
developerHint: "To use protectedRoutes you need authentication to be enabled"
|
|
615
615
|
});
|
|
616
616
|
return /* @__PURE__ */ r.jsx(ce, {});
|
|
617
617
|
};
|
|
618
618
|
function zs({ error: t }) {
|
|
619
|
-
return /* @__PURE__ */ r.jsx(
|
|
619
|
+
return /* @__PURE__ */ r.jsx(Ue, { error: t });
|
|
620
620
|
}
|
|
621
621
|
/**
|
|
622
622
|
* react-router v7.2.0
|
|
@@ -628,10 +628,10 @@ function zs({ error: t }) {
|
|
|
628
628
|
*
|
|
629
629
|
* @license MIT
|
|
630
630
|
*/
|
|
631
|
-
function
|
|
632
|
-
return /* @__PURE__ */
|
|
631
|
+
function Bs(t) {
|
|
632
|
+
return /* @__PURE__ */ I.createElement(xt, { flushSync: Gt.flushSync, ...t });
|
|
633
633
|
}
|
|
634
|
-
const
|
|
634
|
+
const oe = he({ stagger: !1 }), Hs = new Is({
|
|
635
635
|
defaultOptions: {
|
|
636
636
|
queries: {
|
|
637
637
|
staleTime: 1e3 * 60 * 5
|
|
@@ -640,12 +640,12 @@ const ie = he({ stagger: !1 }), Bs = new Is({
|
|
|
640
640
|
}), Ls = ({
|
|
641
641
|
router: t,
|
|
642
642
|
hydrate: e = !1
|
|
643
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
643
|
+
}) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx($e, { client: Hs, children: /* @__PURE__ */ r.jsx(Rs, { 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 }) }) }) }) }) }), Ks = ({
|
|
644
644
|
router: t,
|
|
645
645
|
context: e,
|
|
646
646
|
queryClient: s,
|
|
647
647
|
helmetContext: n
|
|
648
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
648
|
+
}) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx($e, { client: s, children: /* @__PURE__ */ r.jsx(Fe, { context: n, children: /* @__PURE__ */ r.jsx(yt, { router: t, context: e }) }) }) });
|
|
649
649
|
var X = { exports: {} }, $s = X.exports, Ae;
|
|
650
650
|
function Us() {
|
|
651
651
|
return Ae || (Ae = 1, function(t, e) {
|
|
@@ -657,38 +657,38 @@ function Us() {
|
|
|
657
657
|
minDuration: 200,
|
|
658
658
|
ssr: !0
|
|
659
659
|
};
|
|
660
|
-
function
|
|
660
|
+
function o() {
|
|
661
661
|
const [u, d] = n.useState(!0);
|
|
662
662
|
return n.useEffect(() => {
|
|
663
663
|
d(!1);
|
|
664
664
|
}, []), u;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function i(u, d) {
|
|
667
667
|
d = Object.assign({}, a, d);
|
|
668
|
-
const c =
|
|
668
|
+
const c = o() && d.ssr, x = c && u ? "DISPLAY" : "IDLE", [f, h] = n.useState(x), p = n.useRef(null);
|
|
669
669
|
return n.useEffect(() => {
|
|
670
670
|
if (u && (f === "IDLE" || c)) {
|
|
671
671
|
clearTimeout(p.current);
|
|
672
|
-
const
|
|
672
|
+
const C = c ? 0 : d.delay;
|
|
673
673
|
p.current = setTimeout(() => {
|
|
674
674
|
if (!u)
|
|
675
675
|
return h("IDLE");
|
|
676
676
|
p.current = setTimeout(() => {
|
|
677
677
|
h("EXPIRE");
|
|
678
678
|
}, d.minDuration), h("DISPLAY");
|
|
679
|
-
},
|
|
679
|
+
}, C), c || h("DELAY");
|
|
680
680
|
}
|
|
681
681
|
!u && f !== "DISPLAY" && (clearTimeout(p.current), h("IDLE"));
|
|
682
682
|
}, [u, f, d.delay, d.minDuration, c]), n.useEffect(() => () => clearTimeout(p.current), []), f === "DISPLAY" || f === "EXPIRE";
|
|
683
683
|
}
|
|
684
|
-
s.defaultOptions = a, s.useSpinDelay =
|
|
684
|
+
s.defaultOptions = a, s.useSpinDelay = i;
|
|
685
685
|
});
|
|
686
686
|
}(X, X.exports)), X.exports;
|
|
687
687
|
}
|
|
688
688
|
var Zs = Us();
|
|
689
689
|
const Ys = () => {
|
|
690
|
-
const t =
|
|
691
|
-
|
|
690
|
+
const t = se(), e = fe(t.pathname);
|
|
691
|
+
Z(() => {
|
|
692
692
|
const s = e.current !== t.pathname, n = t.hash !== "";
|
|
693
693
|
s && !n && window.scrollTo(0, 0), e.current = t.pathname;
|
|
694
694
|
}, [t.pathname, t.hash]);
|
|
@@ -705,17 +705,17 @@ function Xs({
|
|
|
705
705
|
}
|
|
706
706
|
);
|
|
707
707
|
}
|
|
708
|
-
const
|
|
708
|
+
const Te = {
|
|
709
709
|
info: "bg-blue-500",
|
|
710
710
|
note: "bg-gray-500",
|
|
711
711
|
tip: "bg-green-600",
|
|
712
712
|
caution: "bg-orange-500",
|
|
713
713
|
danger: "bg-rose-500"
|
|
714
714
|
}, Vs = () => {
|
|
715
|
-
const { page: t } = O(), [e, s] =
|
|
715
|
+
const { page: t } = O(), [e, s] = U(!0);
|
|
716
716
|
if (!(t != null && t.banner) || !e)
|
|
717
717
|
return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
718
|
-
const n = t.banner.color && t.banner.color in
|
|
718
|
+
const n = t.banner.color && t.banner.color in Te ? Te[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
|
|
719
719
|
return /* @__PURE__ */ r.jsxs(
|
|
720
720
|
"div",
|
|
721
721
|
{
|
|
@@ -739,20 +739,20 @@ const qe = {
|
|
|
739
739
|
]
|
|
740
740
|
}
|
|
741
741
|
);
|
|
742
|
-
},
|
|
743
|
-
const e = O(), [s, n] =
|
|
744
|
-
|
|
742
|
+
}, We = ({ className: t }) => {
|
|
743
|
+
const e = O(), [s, n] = U(!1), a = Xt(() => n(!1), []);
|
|
744
|
+
Z(() => {
|
|
745
745
|
if (s)
|
|
746
746
|
return;
|
|
747
|
-
function
|
|
747
|
+
function i(u) {
|
|
748
748
|
u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), n(!0));
|
|
749
749
|
}
|
|
750
|
-
return window.addEventListener("keydown",
|
|
751
|
-
window.removeEventListener("keydown",
|
|
750
|
+
return window.addEventListener("keydown", i), () => {
|
|
751
|
+
window.removeEventListener("keydown", i);
|
|
752
752
|
};
|
|
753
753
|
}, [s, n]);
|
|
754
|
-
const
|
|
755
|
-
return
|
|
754
|
+
const o = e.plugins.find(as);
|
|
755
|
+
return o ? /* @__PURE__ */ r.jsxs("div", { className: t, children: [
|
|
756
756
|
/* @__PURE__ */ r.jsxs(
|
|
757
757
|
"button",
|
|
758
758
|
{
|
|
@@ -768,14 +768,14 @@ const qe = {
|
|
|
768
768
|
]
|
|
769
769
|
}
|
|
770
770
|
),
|
|
771
|
-
/* @__PURE__ */ r.jsx(me, { fallback: null, children:
|
|
771
|
+
/* @__PURE__ */ r.jsx(me, { fallback: null, children: o.renderSearch({
|
|
772
772
|
isOpen: s,
|
|
773
773
|
onClose: a
|
|
774
774
|
}) })
|
|
775
775
|
] }) : null;
|
|
776
|
-
},
|
|
777
|
-
const { resolvedTheme: t, setTheme: e } =
|
|
778
|
-
return /* @__PURE__ */ r.jsx(ge, { fallback: /* @__PURE__ */ r.jsx(
|
|
776
|
+
}, Je = () => {
|
|
777
|
+
const { resolvedTheme: t, setTheme: e } = ze();
|
|
778
|
+
return /* @__PURE__ */ r.jsx(ge, { fallback: /* @__PURE__ */ r.jsx(ie, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ r.jsxs(
|
|
779
779
|
"button",
|
|
780
780
|
{
|
|
781
781
|
type: "button",
|
|
@@ -808,30 +808,26 @@ const qe = {
|
|
|
808
808
|
]
|
|
809
809
|
}
|
|
810
810
|
) });
|
|
811
|
-
},
|
|
812
|
-
const { topNavigation: t } = O(), { isAuthenticated: e } =
|
|
813
|
-
return
|
|
814
|
-
/* @__PURE__ */ r.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children:
|
|
815
|
-
/* @__PURE__ */ r.jsx(
|
|
811
|
+
}, 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 } = $(), s = t.filter(et(e));
|
|
813
|
+
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
|
+
/* @__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
|
+
/* @__PURE__ */ r.jsx(D, { name: "top-navigation-side" })
|
|
816
816
|
] }) });
|
|
817
|
-
},
|
|
817
|
+
}, tt = ({
|
|
818
818
|
id: t,
|
|
819
819
|
label: e,
|
|
820
820
|
default: s
|
|
821
821
|
}) => {
|
|
822
822
|
var c;
|
|
823
|
-
const { sidebars: n } = O(), a = n[t],
|
|
824
|
-
if (x.type === "doc") return
|
|
825
|
-
}) :
|
|
826
|
-
if (!d)
|
|
827
|
-
throw new Ze("Page not found.", {
|
|
828
|
-
developerHint: `No links found in top navigation for '${t}'. Check that the sidebar isn't empty or that a default link is set.`
|
|
829
|
-
});
|
|
823
|
+
const { sidebars: n } = O(), a = n[t], o = Be(), i = !!ue().location, u = ((c = o.topNavItem) == null ? void 0 : c.id) === t && !i, d = s ?? (a ? bt(a, (x) => {
|
|
824
|
+
if (x.type === "doc") return V(x.id);
|
|
825
|
+
}) : V(t)) ?? V(t);
|
|
830
826
|
return (
|
|
831
827
|
// We don't use isActive here because it has to be inside the sidebar,
|
|
832
828
|
// the top nav id doesn't necessarily start with the sidebar id
|
|
833
829
|
/* @__PURE__ */ r.jsx(
|
|
834
|
-
|
|
830
|
+
vt,
|
|
835
831
|
{
|
|
836
832
|
className: ({ isPending: x }) => Os(
|
|
837
833
|
"block lg:py-3.5 font-medium -mb-px",
|
|
@@ -843,7 +839,7 @@ const qe = {
|
|
|
843
839
|
)
|
|
844
840
|
);
|
|
845
841
|
}, Gs = () => {
|
|
846
|
-
const { topNavigation: t } = O(), { isAuthenticated: e } =
|
|
842
|
+
const { topNavigation: t } = O(), { isAuthenticated: e } = $(), [s, n] = U(!1);
|
|
847
843
|
return /* @__PURE__ */ r.jsxs(
|
|
848
844
|
Ss,
|
|
849
845
|
{
|
|
@@ -851,18 +847,18 @@ const qe = {
|
|
|
851
847
|
open: s,
|
|
852
848
|
onOpenChange: (a) => n(a),
|
|
853
849
|
children: [
|
|
854
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(Es, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(
|
|
850
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(Es, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(Ds, { size: 22 }) }) }),
|
|
855
851
|
/* @__PURE__ */ r.jsx(
|
|
856
|
-
|
|
852
|
+
Ve,
|
|
857
853
|
{
|
|
858
854
|
className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
|
|
859
855
|
"aria-describedby": void 0,
|
|
860
856
|
children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
861
|
-
/* @__PURE__ */ r.jsx(
|
|
862
|
-
/* @__PURE__ */ r.jsx(
|
|
857
|
+
/* @__PURE__ */ r.jsx(Xe, { children: /* @__PURE__ */ r.jsx(_e, { children: "Navigation" }) }),
|
|
858
|
+
/* @__PURE__ */ r.jsx(We, { className: "flex p-4" }),
|
|
863
859
|
/* @__PURE__ */ r.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
864
|
-
/* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
865
|
-
t.filter(
|
|
860
|
+
/* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(Je, {}) }),
|
|
861
|
+
t.filter(et(e)).map((a) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { type: "button", onClick: () => n(!1), children: /* @__PURE__ */ r.jsx(tt, { ...a }) }) }, a.label))
|
|
866
862
|
] })
|
|
867
863
|
] })
|
|
868
864
|
}
|
|
@@ -870,31 +866,31 @@ const qe = {
|
|
|
870
866
|
]
|
|
871
867
|
}
|
|
872
868
|
);
|
|
873
|
-
},
|
|
869
|
+
}, te = ({ item: t }) => t.children ? /* @__PURE__ */ r.jsxs(xs, { children: [
|
|
874
870
|
/* @__PURE__ */ r.jsx(ys, { children: t.label }),
|
|
875
871
|
/* @__PURE__ */ r.jsx(vs, { children: /* @__PURE__ */ r.jsx(bs, { children: t.children.map((e, s) => (
|
|
876
872
|
// eslint-disable-next-line react/no-array-index-key
|
|
877
|
-
/* @__PURE__ */ r.jsx(
|
|
873
|
+
/* @__PURE__ */ r.jsx(te, { item: e }, s)
|
|
878
874
|
)) }) })
|
|
879
875
|
] }, t.label) : /* @__PURE__ */ r.jsx(de, { to: t.path ?? "", children: /* @__PURE__ */ r.jsxs(js, { className: "flex gap-2", children: [
|
|
880
876
|
t.icon && /* @__PURE__ */ r.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
881
877
|
t.label
|
|
882
|
-
] }, t.label) }),
|
|
883
|
-
const e =
|
|
878
|
+
] }, t.label) }), st = Ye(function() {
|
|
879
|
+
const e = $(), { isAuthenticated: s, profile: n, isAuthEnabled: a } = $(), o = O(), { page: i, plugins: u } = o, d = u.filter((c) => is(c)).flatMap((c) => c.getProfileMenuItems(o)).sort((c) => c.weight ?? 0);
|
|
884
880
|
return /* @__PURE__ */ r.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
885
881
|
/* @__PURE__ */ r.jsx(Vs, {}),
|
|
886
882
|
/* @__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: [
|
|
887
883
|
/* @__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: [
|
|
888
|
-
(
|
|
884
|
+
(i == null ? void 0 : i.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
889
885
|
/* @__PURE__ */ r.jsx(
|
|
890
886
|
"img",
|
|
891
887
|
{
|
|
892
|
-
src: /https?:\/\//.test(
|
|
888
|
+
src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : V(
|
|
893
889
|
"/",
|
|
894
|
-
|
|
890
|
+
i.logo.src.light
|
|
895
891
|
),
|
|
896
|
-
alt:
|
|
897
|
-
style: { width:
|
|
892
|
+
alt: i.logo.alt ?? i.pageTitle,
|
|
893
|
+
style: { width: i.logo.width },
|
|
898
894
|
className: "h-10 dark:hidden",
|
|
899
895
|
loading: "lazy"
|
|
900
896
|
}
|
|
@@ -902,61 +898,61 @@ const qe = {
|
|
|
902
898
|
/* @__PURE__ */ r.jsx(
|
|
903
899
|
"img",
|
|
904
900
|
{
|
|
905
|
-
src: /https?:\/\//.test(
|
|
901
|
+
src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : V(
|
|
906
902
|
"/",
|
|
907
|
-
|
|
903
|
+
i.logo.src.dark
|
|
908
904
|
),
|
|
909
|
-
alt:
|
|
910
|
-
style: { width:
|
|
905
|
+
alt: i.logo.alt ?? i.pageTitle,
|
|
906
|
+
style: { width: i.logo.width },
|
|
911
907
|
className: "h-10 hidden dark:block",
|
|
912
908
|
loading: "lazy"
|
|
913
909
|
}
|
|
914
910
|
)
|
|
915
911
|
] }),
|
|
916
|
-
/* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children:
|
|
912
|
+
/* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
|
|
917
913
|
] }) }) }),
|
|
918
|
-
/* @__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(
|
|
914
|
+
/* @__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" }) }),
|
|
919
915
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-8", children: [
|
|
920
916
|
/* @__PURE__ */ r.jsx(Gs, {}),
|
|
921
917
|
/* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
922
|
-
/* @__PURE__ */ r.jsx(
|
|
918
|
+
/* @__PURE__ */ r.jsx(D, { name: "head-navigation-start" }),
|
|
923
919
|
a && /* @__PURE__ */ r.jsx(
|
|
924
920
|
ge,
|
|
925
921
|
{
|
|
926
922
|
fallback: /* @__PURE__ */ r.jsx(Xs, { className: "rounded h-5 w-24 mr-4" }),
|
|
927
923
|
children: s ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(fs, { modal: !1, children: [
|
|
928
|
-
/* @__PURE__ */ r.jsx(ms, { asChild: !0, children: /* @__PURE__ */ r.jsx(
|
|
924
|
+
/* @__PURE__ */ r.jsx(ms, { asChild: !0, children: /* @__PURE__ */ r.jsx(ie, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
|
|
929
925
|
/* @__PURE__ */ r.jsxs(gs, { className: "w-56", children: [
|
|
930
926
|
/* @__PURE__ */ r.jsxs(ps, { children: [
|
|
931
927
|
n != null && n.name ? `${n.name}` : "My Account",
|
|
932
928
|
(n == null ? void 0 : n.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
|
|
933
929
|
] }),
|
|
934
|
-
d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(
|
|
935
|
-
d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(
|
|
930
|
+
d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
931
|
+
d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(te, { item: c }, c.label)),
|
|
936
932
|
d.filter(
|
|
937
933
|
(c) => !c.category || c.category === "middle"
|
|
938
|
-
).length > 0 && /* @__PURE__ */ r.jsx(
|
|
934
|
+
).length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
939
935
|
d.filter(
|
|
940
936
|
(c) => !c.category || c.category === "middle"
|
|
941
|
-
).map((c) => /* @__PURE__ */ r.jsx(
|
|
942
|
-
d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(
|
|
943
|
-
d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(
|
|
937
|
+
).map((c) => /* @__PURE__ */ r.jsx(te, { item: c }, c.label)),
|
|
938
|
+
d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
939
|
+
d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(te, { item: c }, c.label))
|
|
944
940
|
] })
|
|
945
|
-
] }) : /* @__PURE__ */ r.jsx(
|
|
941
|
+
] }) : /* @__PURE__ */ r.jsx(ie, { variant: "ghost", onClick: () => e.login(), children: "Login" })
|
|
946
942
|
}
|
|
947
943
|
),
|
|
948
|
-
/* @__PURE__ */ r.jsx(
|
|
949
|
-
/* @__PURE__ */ r.jsx(
|
|
944
|
+
/* @__PURE__ */ r.jsx(D, { name: "head-navigation-end" }),
|
|
945
|
+
/* @__PURE__ */ r.jsx(Je, {})
|
|
950
946
|
] })
|
|
951
947
|
] })
|
|
952
948
|
] }) }),
|
|
953
949
|
/* @__PURE__ */ r.jsx("div", { className: "border-b hidden lg:block", children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl mx-auto 2xl:border-x", children: [
|
|
954
|
-
/* @__PURE__ */ r.jsx(
|
|
950
|
+
/* @__PURE__ */ r.jsx(D, { name: "top-navigation-before" }),
|
|
955
951
|
/* @__PURE__ */ r.jsx(_s, {}),
|
|
956
|
-
/* @__PURE__ */ r.jsx(
|
|
952
|
+
/* @__PURE__ */ r.jsx(D, { name: "top-navigation-after" })
|
|
957
953
|
] }) })
|
|
958
954
|
] });
|
|
959
|
-
}),
|
|
955
|
+
}), rt = ({
|
|
960
956
|
shouldScaleBackground: t = !0,
|
|
961
957
|
...e
|
|
962
958
|
}) => /* @__PURE__ */ r.jsx(
|
|
@@ -966,8 +962,8 @@ const qe = {
|
|
|
966
962
|
...e
|
|
967
963
|
}
|
|
968
964
|
);
|
|
969
|
-
|
|
970
|
-
const Ws = M.Trigger, Js = M.Portal,
|
|
965
|
+
rt.displayName = "Drawer";
|
|
966
|
+
const Ws = M.Trigger, Js = M.Portal, nt = I.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
971
967
|
M.Overlay,
|
|
972
968
|
{
|
|
973
969
|
ref: s,
|
|
@@ -975,10 +971,10 @@ const Ws = M.Trigger, Js = M.Portal, it = q.forwardRef(({ className: t, ...e },
|
|
|
975
971
|
...e
|
|
976
972
|
}
|
|
977
973
|
));
|
|
978
|
-
|
|
979
|
-
const er =
|
|
974
|
+
nt.displayName = M.Overlay.displayName;
|
|
975
|
+
const er = I.forwardRef(
|
|
980
976
|
({ className: t, children: e, hideBar: s = !0, ...n }, a) => /* @__PURE__ */ r.jsxs(Js, { children: [
|
|
981
|
-
/* @__PURE__ */ r.jsx(
|
|
977
|
+
/* @__PURE__ */ r.jsx(nt, {}),
|
|
982
978
|
/* @__PURE__ */ r.jsxs(
|
|
983
979
|
M.Content,
|
|
984
980
|
{
|
|
@@ -997,7 +993,7 @@ const er = q.forwardRef(
|
|
|
997
993
|
] })
|
|
998
994
|
);
|
|
999
995
|
er.displayName = "DrawerContent";
|
|
1000
|
-
const tr =
|
|
996
|
+
const tr = I.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
1001
997
|
M.Title,
|
|
1002
998
|
{
|
|
1003
999
|
ref: s,
|
|
@@ -1009,7 +1005,7 @@ const tr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
|
1009
1005
|
}
|
|
1010
1006
|
));
|
|
1011
1007
|
tr.displayName = M.Title.displayName;
|
|
1012
|
-
const sr =
|
|
1008
|
+
const sr = I.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
1013
1009
|
M.Description,
|
|
1014
1010
|
{
|
|
1015
1011
|
ref: s,
|
|
@@ -1018,7 +1014,7 @@ const sr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
|
1018
1014
|
}
|
|
1019
1015
|
));
|
|
1020
1016
|
sr.displayName = M.Description.displayName;
|
|
1021
|
-
const
|
|
1017
|
+
const at = ({
|
|
1022
1018
|
children: t,
|
|
1023
1019
|
className: e,
|
|
1024
1020
|
ref: s
|
|
@@ -1026,40 +1022,40 @@ const ot = ({
|
|
|
1026
1022
|
"nav",
|
|
1027
1023
|
{
|
|
1028
1024
|
className: E(
|
|
1029
|
-
"hidden lg:flex h-full scrollbar
|
|
1025
|
+
"hidden lg:flex h-full scrollbar flex-col overflow-y-auto shrink-0 text-sm border-r pr-6",
|
|
1030
1026
|
"sticky top-[--header-height] h-[calc(100vh-var(--header-height))]",
|
|
1031
|
-
"-mx-[--padding-nav-item] max-w-[--side-nav-width] pb-
|
|
1027
|
+
"-mx-[--padding-nav-item] max-w-[--side-nav-width] pb-6 pt-[--padding-content-top] scroll-pt-2 gap-2",
|
|
1032
1028
|
e
|
|
1033
1029
|
),
|
|
1034
1030
|
ref: s,
|
|
1035
1031
|
children: t
|
|
1036
1032
|
}
|
|
1037
1033
|
);
|
|
1038
|
-
|
|
1034
|
+
at.displayName = "SidebarWrapper";
|
|
1039
1035
|
const rr = ({
|
|
1040
1036
|
onRequestClose: t,
|
|
1041
1037
|
sidebar: e
|
|
1042
1038
|
}) => {
|
|
1043
1039
|
const s = fe(null);
|
|
1044
|
-
return
|
|
1040
|
+
return Z(() => {
|
|
1045
1041
|
var a;
|
|
1046
1042
|
const n = (a = s.current) == null ? void 0 : a.querySelector('[aria-current="page"]');
|
|
1047
1043
|
Wt(n ?? null);
|
|
1048
1044
|
}, []), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1049
|
-
/* @__PURE__ */ r.jsxs(
|
|
1050
|
-
/* @__PURE__ */ r.jsx(
|
|
1051
|
-
e.map((n) => /* @__PURE__ */ r.jsx(
|
|
1052
|
-
/* @__PURE__ */ r.jsx(
|
|
1045
|
+
/* @__PURE__ */ r.jsxs(at, { ref: s, children: [
|
|
1046
|
+
/* @__PURE__ */ r.jsx(D, { name: "zudoku-before-navigation" }),
|
|
1047
|
+
e.map((n) => /* @__PURE__ */ r.jsx(ke, { item: n }, n.label)),
|
|
1048
|
+
/* @__PURE__ */ r.jsx(D, { name: "zudoku-after-navigation" })
|
|
1053
1049
|
] }),
|
|
1054
1050
|
/* @__PURE__ */ r.jsx(
|
|
1055
|
-
|
|
1051
|
+
Ve,
|
|
1056
1052
|
{
|
|
1057
1053
|
className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
|
|
1058
1054
|
"aria-describedby": void 0,
|
|
1059
1055
|
children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
1060
|
-
/* @__PURE__ */ r.jsx(
|
|
1056
|
+
/* @__PURE__ */ r.jsx(Xe, { children: /* @__PURE__ */ r.jsx(_e, { children: "Sidebar" }) }),
|
|
1061
1057
|
e.map((n) => /* @__PURE__ */ r.jsx(
|
|
1062
|
-
|
|
1058
|
+
ke,
|
|
1063
1059
|
{
|
|
1064
1060
|
item: n,
|
|
1065
1061
|
onRequestClose: t
|
|
@@ -1071,13 +1067,13 @@ const rr = ({
|
|
|
1071
1067
|
)
|
|
1072
1068
|
] });
|
|
1073
1069
|
}, nr = ({ children: t }) => {
|
|
1074
|
-
const [e, s] =
|
|
1070
|
+
const [e, s] = U(!1), { sidebar: n } = Be(), a = n.length > 0;
|
|
1075
1071
|
return /* @__PURE__ */ r.jsxs(
|
|
1076
|
-
|
|
1072
|
+
rt,
|
|
1077
1073
|
{
|
|
1078
1074
|
direction: "left",
|
|
1079
1075
|
open: e,
|
|
1080
|
-
onOpenChange: (
|
|
1076
|
+
onOpenChange: (o) => s(o),
|
|
1081
1077
|
children: [
|
|
1082
1078
|
a && /* @__PURE__ */ r.jsx(
|
|
1083
1079
|
rr,
|
|
@@ -1087,7 +1083,7 @@ const rr = ({
|
|
|
1087
1083
|
}
|
|
1088
1084
|
),
|
|
1089
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(Ws, { className: "flex items-center gap-2", children: [
|
|
1090
|
-
/* @__PURE__ */ r.jsx(
|
|
1086
|
+
/* @__PURE__ */ r.jsx(ks, { size: 16, strokeWidth: 1.5 }),
|
|
1091
1087
|
/* @__PURE__ */ r.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1092
1088
|
] }) }),
|
|
1093
1089
|
/* @__PURE__ */ r.jsxs(
|
|
@@ -1099,20 +1095,20 @@ const rr = ({
|
|
|
1099
1095
|
a ? "lg:pl-12" : "col-span-full"
|
|
1100
1096
|
),
|
|
1101
1097
|
children: [
|
|
1102
|
-
/* @__PURE__ */ r.jsx(
|
|
1098
|
+
/* @__PURE__ */ r.jsx(D, { name: "zudoku-before-content" }),
|
|
1103
1099
|
t,
|
|
1104
|
-
/* @__PURE__ */ r.jsx(
|
|
1100
|
+
/* @__PURE__ */ r.jsx(D, { name: "zudoku-after-content" })
|
|
1105
1101
|
]
|
|
1106
1102
|
}
|
|
1107
1103
|
)
|
|
1108
1104
|
]
|
|
1109
1105
|
}
|
|
1110
1106
|
);
|
|
1111
|
-
},
|
|
1107
|
+
}, qe = () => /* @__PURE__ */ r.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ r.jsx(Ge, {}) }), ar = ({ children: t }) => {
|
|
1112
1108
|
const { meta: e, authentication: s } = O();
|
|
1113
|
-
Jt(), Ys(),
|
|
1114
|
-
var
|
|
1115
|
-
(
|
|
1109
|
+
Jt(), Ys(), Z(() => {
|
|
1110
|
+
var o;
|
|
1111
|
+
(o = s == null ? void 0 : s.onPageLoad) == null || o.call(s);
|
|
1116
1112
|
}, [s]);
|
|
1117
1113
|
const n = !!ue().location, a = Zs.useSpinDelay(n, {
|
|
1118
1114
|
delay: 300,
|
|
@@ -1120,14 +1116,14 @@ const rr = ({
|
|
|
1120
1116
|
});
|
|
1121
1117
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1122
1118
|
!1,
|
|
1123
|
-
/* @__PURE__ */ r.jsxs(
|
|
1119
|
+
/* @__PURE__ */ r.jsxs(le, { titleTemplate: e == null ? void 0 : e.title, children: [
|
|
1124
1120
|
(e == null ? void 0 : e.description) && /* @__PURE__ */ r.jsx("meta", { name: "description", content: e.description }),
|
|
1125
1121
|
(e == null ? void 0 : e.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: e.favicon })
|
|
1126
1122
|
] }),
|
|
1127
|
-
/* @__PURE__ */ r.jsx(
|
|
1128
|
-
/* @__PURE__ */ r.jsx(
|
|
1129
|
-
/* @__PURE__ */ r.jsx(
|
|
1130
|
-
/* @__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: a ? /* @__PURE__ */ r.jsx(
|
|
1123
|
+
/* @__PURE__ */ r.jsx(D, { name: "layout-before-head" }),
|
|
1124
|
+
/* @__PURE__ */ r.jsx(st, {}),
|
|
1125
|
+
/* @__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: a ? /* @__PURE__ */ r.jsx(qe, {}) : /* @__PURE__ */ r.jsx(me, { fallback: /* @__PURE__ */ r.jsx(qe, {}), children: /* @__PURE__ */ r.jsx(nr, { children: t ?? /* @__PURE__ */ r.jsx(ce, {}) }) }) })
|
|
1131
1127
|
] });
|
|
1132
1128
|
}, ir = ({
|
|
1133
1129
|
title: t = "An error occurred",
|
|
@@ -1210,13 +1206,13 @@ const rr = ({
|
|
|
1210
1206
|
category: t
|
|
1211
1207
|
}
|
|
1212
1208
|
);
|
|
1213
|
-
}, cr = he(null),
|
|
1209
|
+
}, cr = he(null), ae = {
|
|
1214
1210
|
didCatch: !1,
|
|
1215
1211
|
error: null
|
|
1216
1212
|
};
|
|
1217
1213
|
class ur extends Vt {
|
|
1218
1214
|
constructor(e) {
|
|
1219
|
-
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
1215
|
+
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ae;
|
|
1220
1216
|
}
|
|
1221
1217
|
static getDerivedStateFromError(e) {
|
|
1222
1218
|
return {
|
|
@@ -1229,12 +1225,12 @@ class ur extends Vt {
|
|
|
1229
1225
|
error: e
|
|
1230
1226
|
} = this.state;
|
|
1231
1227
|
if (e !== null) {
|
|
1232
|
-
for (var s, n, a = arguments.length,
|
|
1233
|
-
i
|
|
1228
|
+
for (var s, n, a = arguments.length, o = new Array(a), i = 0; i < a; i++)
|
|
1229
|
+
o[i] = arguments[i];
|
|
1234
1230
|
(s = (n = this.props).onReset) === null || s === void 0 || s.call(n, {
|
|
1235
|
-
args:
|
|
1231
|
+
args: o,
|
|
1236
1232
|
reason: "imperative-api"
|
|
1237
|
-
}), this.setState(
|
|
1233
|
+
}), this.setState(ae);
|
|
1238
1234
|
}
|
|
1239
1235
|
}
|
|
1240
1236
|
componentDidCatch(e, s) {
|
|
@@ -1248,12 +1244,12 @@ class ur extends Vt {
|
|
|
1248
1244
|
resetKeys: a
|
|
1249
1245
|
} = this.props;
|
|
1250
1246
|
if (n && s.error !== null && dr(e.resetKeys, a)) {
|
|
1251
|
-
var
|
|
1252
|
-
(
|
|
1247
|
+
var o, i;
|
|
1248
|
+
(o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
|
|
1253
1249
|
next: a,
|
|
1254
1250
|
prev: e.resetKeys,
|
|
1255
1251
|
reason: "keys"
|
|
1256
|
-
}), this.setState(
|
|
1252
|
+
}), this.setState(ae);
|
|
1257
1253
|
}
|
|
1258
1254
|
}
|
|
1259
1255
|
render() {
|
|
@@ -1263,28 +1259,28 @@ class ur extends Vt {
|
|
|
1263
1259
|
FallbackComponent: n,
|
|
1264
1260
|
fallback: a
|
|
1265
1261
|
} = this.props, {
|
|
1266
|
-
didCatch:
|
|
1267
|
-
error:
|
|
1262
|
+
didCatch: o,
|
|
1263
|
+
error: i
|
|
1268
1264
|
} = this.state;
|
|
1269
1265
|
let u = e;
|
|
1270
|
-
if (
|
|
1266
|
+
if (o) {
|
|
1271
1267
|
const d = {
|
|
1272
|
-
error:
|
|
1268
|
+
error: i,
|
|
1273
1269
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1274
1270
|
};
|
|
1275
1271
|
if (typeof s == "function")
|
|
1276
1272
|
u = s(d);
|
|
1277
1273
|
else if (n)
|
|
1278
|
-
u =
|
|
1274
|
+
u = De(n, d);
|
|
1279
1275
|
else if (a !== void 0)
|
|
1280
1276
|
u = a;
|
|
1281
1277
|
else
|
|
1282
|
-
throw
|
|
1278
|
+
throw i;
|
|
1283
1279
|
}
|
|
1284
|
-
return
|
|
1280
|
+
return De(cr.Provider, {
|
|
1285
1281
|
value: {
|
|
1286
|
-
didCatch:
|
|
1287
|
-
error:
|
|
1282
|
+
didCatch: o,
|
|
1283
|
+
error: i,
|
|
1288
1284
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1289
1285
|
}
|
|
1290
1286
|
}, u);
|
|
@@ -1310,15 +1306,15 @@ let hr = () => ({
|
|
|
1310
1306
|
});
|
|
1311
1307
|
class fr {
|
|
1312
1308
|
constructor(e, s) {
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1309
|
+
j(this, "plugins");
|
|
1310
|
+
j(this, "sidebars");
|
|
1311
|
+
j(this, "topNavigation");
|
|
1312
|
+
j(this, "meta");
|
|
1313
|
+
j(this, "page");
|
|
1314
|
+
j(this, "authentication");
|
|
1315
|
+
j(this, "navigationPlugins");
|
|
1316
|
+
j(this, "emitter", hr());
|
|
1317
|
+
j(this, "initialize", async () => {
|
|
1322
1318
|
await Promise.all(
|
|
1323
1319
|
this.plugins.filter(cs).map((e) => {
|
|
1324
1320
|
var s;
|
|
@@ -1326,27 +1322,27 @@ class fr {
|
|
|
1326
1322
|
})
|
|
1327
1323
|
);
|
|
1328
1324
|
});
|
|
1329
|
-
|
|
1325
|
+
j(this, "getApiIdentities", async () => (await Promise.all(
|
|
1330
1326
|
this.plugins.filter(us).map((s) => s.getIdentities(this))
|
|
1331
1327
|
)).flat());
|
|
1332
|
-
|
|
1333
|
-
|
|
1328
|
+
j(this, "emitEvent", (e, ...s) => this.emitter.emit(e, ...s));
|
|
1329
|
+
j(this, "getPluginSidebar", async (e) => (await Promise.all(
|
|
1334
1330
|
this.navigationPlugins.map(
|
|
1335
1331
|
(n) => {
|
|
1336
1332
|
var a;
|
|
1337
|
-
return (a = n.getSidebar) == null ? void 0 : a.call(n,
|
|
1333
|
+
return (a = n.getSidebar) == null ? void 0 : a.call(n, jt(e), this);
|
|
1338
1334
|
}
|
|
1339
1335
|
)
|
|
1340
1336
|
)).flatMap((n) => n ?? []));
|
|
1341
|
-
|
|
1337
|
+
j(this, "signRequest", async (e) => {
|
|
1342
1338
|
if (!this.authentication)
|
|
1343
1339
|
throw new Error("No authentication provider configured");
|
|
1344
1340
|
const s = await this.authentication.getAccessToken();
|
|
1345
1341
|
return e.headers.set("Authorization", `Bearer ${s}`), e;
|
|
1346
1342
|
});
|
|
1347
1343
|
this.options = e, this.queryClient = s, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(os), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((n) => {
|
|
1348
|
-
ls(n) &&
|
|
1349
|
-
this.emitter.on(a,
|
|
1344
|
+
ls(n) && Ht(n.events).forEach(([a, o]) => {
|
|
1345
|
+
this.emitter.on(a, o);
|
|
1350
1346
|
});
|
|
1351
1347
|
});
|
|
1352
1348
|
}
|
|
@@ -1355,15 +1351,15 @@ class fr {
|
|
|
1355
1351
|
}
|
|
1356
1352
|
}
|
|
1357
1353
|
function mr({ error: t, resetErrorBoundary: e }) {
|
|
1358
|
-
return /* @__PURE__ */ r.jsx(
|
|
1354
|
+
return /* @__PURE__ */ r.jsx(Ue, { error: t });
|
|
1359
1355
|
}
|
|
1360
|
-
const
|
|
1361
|
-
(!
|
|
1362
|
-
const
|
|
1363
|
-
Header:
|
|
1364
|
-
}, gr = he(
|
|
1365
|
-
const t =
|
|
1366
|
-
return
|
|
1356
|
+
const ee = globalThis;
|
|
1357
|
+
(!ee.requestIdleCallback || !ee.cancelIdleCallback) && (ee.requestIdleCallback = (t) => setTimeout(t, 1), ee.cancelIdleCallback = clearTimeout);
|
|
1358
|
+
const it = {
|
|
1359
|
+
Header: st
|
|
1360
|
+
}, gr = he(it), pr = gr.Provider, xr = () => {
|
|
1361
|
+
const t = se(), e = O(), s = fe(void 0);
|
|
1362
|
+
return Z(() => {
|
|
1367
1363
|
e.emitEvent("location", {
|
|
1368
1364
|
from: s.current,
|
|
1369
1365
|
to: t
|
|
@@ -1372,53 +1368,55 @@ const lt = {
|
|
|
1372
1368
|
}, yr = ({
|
|
1373
1369
|
children: t,
|
|
1374
1370
|
context: e
|
|
1375
|
-
}) => (
|
|
1371
|
+
}) => (wt({
|
|
1376
1372
|
queryFn: async () => (await e.initialize(), !0),
|
|
1377
1373
|
queryKey: ["zudoku-initialize"]
|
|
1378
|
-
}), /* @__PURE__ */ r.jsx(
|
|
1374
|
+
}), /* @__PURE__ */ r.jsx(Pt.Provider, { value: e, children: t })), ot = Ye(
|
|
1379
1375
|
({ children: t, ...e }) => {
|
|
1380
|
-
var
|
|
1381
|
-
const s =
|
|
1382
|
-
() => ({ ...
|
|
1376
|
+
var p, C;
|
|
1377
|
+
const s = re(
|
|
1378
|
+
() => ({ ...it, ...e.overrides }),
|
|
1383
1379
|
[e.overrides]
|
|
1384
|
-
), n =
|
|
1385
|
-
var
|
|
1380
|
+
), n = se(), a = re(() => {
|
|
1381
|
+
var y;
|
|
1386
1382
|
return {
|
|
1387
1383
|
...(e.plugins ?? []).filter(ds).flatMap(
|
|
1388
|
-
(
|
|
1384
|
+
(A) => A.getMdxComponents ? [A.getMdxComponents()] : []
|
|
1389
1385
|
).reduce(
|
|
1390
|
-
(
|
|
1386
|
+
(A, z) => ({ ...A, ...z }),
|
|
1391
1387
|
{}
|
|
1392
1388
|
),
|
|
1393
1389
|
...ss,
|
|
1394
|
-
...(
|
|
1390
|
+
...(y = e.mdx) == null ? void 0 : y.components
|
|
1395
1391
|
};
|
|
1396
|
-
}, [(
|
|
1397
|
-
() => i ? { stagger: !0 } : { stagger:
|
|
1398
|
-
[
|
|
1399
|
-
),
|
|
1400
|
-
|
|
1401
|
-
i ||
|
|
1402
|
-
}, [i,
|
|
1403
|
-
const [
|
|
1404
|
-
() => new fr(e,
|
|
1405
|
-
),
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1392
|
+
}, [(p = e.mdx) == null ? void 0 : p.components, e.plugins]), { stagger: o } = _t(oe), [i, u] = U(!1), d = re(
|
|
1393
|
+
() => i ? { stagger: !0 } : { stagger: o },
|
|
1394
|
+
[o, i]
|
|
1395
|
+
), c = ue(), x = Ke();
|
|
1396
|
+
Z(() => {
|
|
1397
|
+
i || u(!0);
|
|
1398
|
+
}, [i, c.location]);
|
|
1399
|
+
const [f] = U(
|
|
1400
|
+
() => new fr(e, x)
|
|
1401
|
+
), h = (C = e.plugins) == null ? void 0 : C.flatMap(
|
|
1402
|
+
(m) => {
|
|
1403
|
+
var y;
|
|
1404
|
+
return hs(m) ? ((y = m.getHead) == null ? void 0 : y.call(m, { location: n })) ?? [] : [];
|
|
1405
|
+
}
|
|
1406
|
+
).map((m, y) => /* @__PURE__ */ r.jsx(le, { children: m }, y));
|
|
1409
1407
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1410
|
-
|
|
1411
|
-
/* @__PURE__ */ r.jsx(
|
|
1408
|
+
h,
|
|
1409
|
+
/* @__PURE__ */ r.jsx(oe.Provider, { value: d, children: /* @__PURE__ */ r.jsxs(yr, { context: f, children: [
|
|
1412
1410
|
/* @__PURE__ */ r.jsx(xr, {}),
|
|
1413
|
-
/* @__PURE__ */ r.jsx(
|
|
1411
|
+
/* @__PURE__ */ r.jsx(ht, { components: a, children: /* @__PURE__ */ r.jsx(mt, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(pr, { value: s, children: /* @__PURE__ */ r.jsx(Lt, { slotlets: e.slotlets, children: /* @__PURE__ */ r.jsx(rs, { children: t ?? /* @__PURE__ */ r.jsx(ce, {}) }) }) }) }) })
|
|
1414
1412
|
] }) })
|
|
1415
1413
|
] });
|
|
1416
1414
|
}
|
|
1417
1415
|
);
|
|
1418
|
-
|
|
1419
|
-
const
|
|
1420
|
-
|
|
1421
|
-
const Zr =
|
|
1416
|
+
ot.displayName = "ZudokoInner";
|
|
1417
|
+
const lt = (t) => /* @__PURE__ */ r.jsx(ur, { FallbackComponent: mr, children: /* @__PURE__ */ r.jsx(ot, { ...t }) });
|
|
1418
|
+
lt.displayName = "Zudoku";
|
|
1419
|
+
const Zr = ft, Yr = ar, Xr = Kt, Vr = zs, _r = Ls, Gr = Ks, Wr = Fs, Jr = le, en = O, tn = $, sn = Ct, rn = Nt, nn = lt, an = lr, on = Ut, ln = ns, cn = Ge, un = ge, dn = $t, hn = de, fn = ze;
|
|
1422
1420
|
export {
|
|
1423
1421
|
_r as Bootstrap,
|
|
1424
1422
|
Gr as BootstrapStatic,
|