zudoku 0.35.6 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/entry.server.js +5 -1
- package/dist/app/entry.server.js.map +1 -1
- package/dist/config/validators/common.d.ts +176 -176
- package/dist/config/validators/common.js +8 -6
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +63 -63
- package/dist/lib/components/Layout.js +3 -14
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Zudoku.js +3 -1
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/cache.d.ts +7 -0
- package/dist/lib/components/cache.js +7 -0
- package/dist/lib/components/cache.js.map +1 -1
- package/dist/lib/components/context/ViewportAnchorContext.js +3 -6
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
- package/dist/lib/components/context/ZudokuContext.js +4 -3
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +8 -6
- package/dist/lib/core/ZudokuContext.js +4 -2
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +3 -3
- package/dist/lib/hooks/useEvent.test.js +1 -1
- package/dist/lib/hooks/useEvent.test.js.map +1 -1
- package/dist/lib/oas/graphql/index.d.ts +13 -2
- package/dist/lib/oas/graphql/index.js +59 -39
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +19 -5
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +2 -2
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +2 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +4 -4
- package/dist/lib/plugins/openapi/graphql/gql.js +3 -3
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +33 -44
- package/dist/lib/plugins/openapi/graphql/graphql.js +19 -29
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +5 -10
- package/dist/lib/plugins/openapi/index.js +29 -60
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +3 -1
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js +5 -7
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -1
- package/dist/lib/util/traverse.js +2 -2
- package/dist/lib/util/traverse.js.map +1 -1
- package/dist/lib/util/useScrollToAnchor.js +2 -0
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/api/schema-codegen.js +19 -4
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +61 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -1
- package/dist/vite/plugin-api.js +3 -11
- package/dist/vite/plugin-api.js.map +1 -1
- package/lib/{AuthenticationPlugin-4ip08maU.js → AuthenticationPlugin-Cr6xjOJD.js} +2 -2
- package/lib/{AuthenticationPlugin-4ip08maU.js.map → AuthenticationPlugin-Cr6xjOJD.js.map} +1 -1
- package/lib/{Markdown-C0eXdzGn.js → Markdown-BlioIqkZ.js} +8 -6
- package/lib/Markdown-BlioIqkZ.js.map +1 -0
- package/lib/{MdxPage-BKkG1cm1.js → MdxPage-7XnN9J9R.js} +3 -3
- package/lib/{MdxPage-BKkG1cm1.js.map → MdxPage-7XnN9J9R.js.map} +1 -1
- package/lib/{OasProvider-CwhKwrwl.js → OasProvider-BaRRMSsD.js} +3 -3
- package/lib/{OasProvider-CwhKwrwl.js.map → OasProvider-BaRRMSsD.js.map} +1 -1
- package/lib/{OperationList-DGYoFitT.js → OperationList-BjL1hzSx.js} +987 -960
- package/lib/OperationList-BjL1hzSx.js.map +1 -0
- package/lib/{SlotletProvider-BJC58V32.js → SlotletProvider-CXb3wQiR.js} +2 -2
- package/lib/{SlotletProvider-BJC58V32.js.map → SlotletProvider-CXb3wQiR.js.map} +1 -1
- package/lib/{circular-v7K6lDDh.js → circular-ByJI6Mci.js} +4887 -4419
- package/lib/circular-ByJI6Mci.js.map +1 -0
- package/lib/{createServer-CbL1Uh2Q.js → createServer-DjgKDpGV.js} +3301 -3747
- package/lib/createServer-DjgKDpGV.js.map +1 -0
- package/lib/{hook-CfCFKZ-2.js → hook-Bo80UX00.js} +75 -74
- package/lib/hook-Bo80UX00.js.map +1 -0
- package/lib/{index-Dm1QJHVl.js → index-D5m8_oyY.js} +605 -645
- package/lib/index-D5m8_oyY.js.map +1 -0
- package/lib/post-processors/traverse.js +2 -2
- package/lib/post-processors/traverse.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +2 -2
- package/lib/zudoku.components.js +395 -397
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +2 -2
- package/lib/zudoku.plugin-api-keys.js +2 -2
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +4 -5
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +1 -1
- package/src/app/entry.server.tsx +7 -1
- package/src/lib/components/Layout.tsx +3 -16
- package/src/lib/components/Zudoku.tsx +5 -1
- package/src/lib/components/cache.ts +8 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +3 -6
- package/src/lib/components/context/ZudokuContext.ts +5 -4
- package/src/lib/core/ZudokuContext.ts +11 -8
- package/src/lib/core/plugins.ts +4 -4
- package/src/lib/hooks/useEvent.test.tsx +1 -1
- package/src/lib/oas/graphql/index.ts +104 -64
- package/src/lib/plugins/openapi/OperationList.tsx +30 -36
- package/src/lib/plugins/openapi/OperationListItem.tsx +1 -1
- package/src/lib/plugins/openapi/Sidecar.tsx +2 -2
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +2 -1
- package/src/lib/plugins/openapi/graphql/gql.ts +17 -17
- package/src/lib/plugins/openapi/graphql/graphql.ts +57 -75
- package/src/lib/plugins/openapi/index.tsx +40 -84
- package/src/lib/plugins/openapi/interfaces.ts +4 -1
- package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +5 -7
- package/src/lib/util/traverse.ts +2 -2
- package/src/lib/util/useScrollToAnchor.ts +2 -0
- package/lib/Markdown-C0eXdzGn.js.map +0 -1
- package/lib/OperationList-DGYoFitT.js.map +0 -1
- package/lib/circular-v7K6lDDh.js.map +0 -1
- package/lib/createServer-CbL1Uh2Q.js.map +0 -1
- package/lib/hook-CfCFKZ-2.js.map +0 -1
- package/lib/index-Dm1QJHVl.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ht = 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)),
|
|
5
|
+
var ft = (t, e, s) => e in t ? ht(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
6
|
+
var w = (t, e, s) => ft(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)), P = (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
8
|
var G = (t, e, s, n) => ({
|
|
9
9
|
set _(a) {
|
|
10
10
|
v(t, e, a, s);
|
|
@@ -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 ze, H as
|
|
17
|
-
import { z as He, J as
|
|
18
|
-
import { a as
|
|
19
|
-
import { e as K, a as O, f as
|
|
16
|
+
import { a as ze, H as oe, M as mt, u as gt } from "./index.esm-CltAN0Tf.js";
|
|
17
|
+
import { z as He, J as pt } from "./index-DwT-v3zK.js";
|
|
18
|
+
import { a as xt, u as le, m as yt, O as ce, R as vt, S as bt, g as ue, h as jt, L as de } from "./chunk-HA7DTUK3-ZGg2W6yV.js";
|
|
19
|
+
import { e as K, a as O, f as Be, t as wt, j as ne, b as Pt, Z as Ct, g as Nt, C as kt } from "./hook-Bo80UX00.js";
|
|
20
20
|
import { j as r } from "./jsx-runtime-CYK1ROHF.js";
|
|
21
|
-
import { S as
|
|
21
|
+
import { S as Le, i as Ke, j as Dt, n as C, m as be, l as je, o as T, p as St, q as Et, r as Ot, t as Mt, v as we, w as Pe, x as Tt, h as Ce, y as Ne, e as At, u as $e, d as qt, z as Ue } from "./useQuery-CQUwWR9i.js";
|
|
22
22
|
import { D as It, a as Qt, c as Rt, b as Ft, d as zt } from "./Dialog-sbgekbjb.js";
|
|
23
|
-
import { Z as
|
|
24
|
-
import { u as Ht, o as
|
|
25
|
-
import { E as
|
|
23
|
+
import { Z as Ze } from "./invariant-Caa8-XvF.js";
|
|
24
|
+
import { u as Ht, o as Bt } from "./objectEntries-BS7aAgOm.js";
|
|
25
|
+
import { E as Ye, S as k, a as Lt, R as Kt } from "./SlotletProvider-CXb3wQiR.js";
|
|
26
26
|
import { Button as $t } from "./ui/Button.js";
|
|
27
27
|
import { Callout as Ut } from "./ui/Callout.js";
|
|
28
28
|
import { M as Zt } from "./mutation-B81DztCT.js";
|
|
29
29
|
import * as q from "react";
|
|
30
|
-
import Yt, { createContext as
|
|
30
|
+
import Yt, { createContext as he, StrictMode as Xe, useRef as fe, useEffect as U, useState as $, useCallback as Xt, Suspense as me, memo as Ve, Component as Vt, createElement as ke, useMemo as te, 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 De,
|
|
34
|
-
import { B as
|
|
33
|
+
import { s as Wt, S as De, a as Jt, H as es, P as ts, b as ss, V as rs, M as ns } from "./Markdown-BlioIqkZ.js";
|
|
34
|
+
import { B as ae, S as _e } from "./Spinner-C6n4eOvh.js";
|
|
35
35
|
import { c as E } from "./cn-qaFjX9_3.js";
|
|
36
|
-
import { isSearchPlugin as
|
|
37
|
-
import { DropdownMenu as
|
|
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 se, DropdownMenuSub as xs, DropdownMenuSubTrigger as ys, DropdownMenuPortal as vs, DropdownMenuSubContent as bs, DropdownMenuItem as js } from "./ui/DropdownMenu.js";
|
|
38
38
|
import { j as Se } from "./joinUrl-10po2Jdj.js";
|
|
39
|
-
import { CircleXIcon as
|
|
40
|
-
import { VisuallyHidden as
|
|
41
|
-
import { D as
|
|
42
|
-
import { a as
|
|
43
|
-
import { C as
|
|
44
|
-
var S, Qe, Ts = (Qe = class extends
|
|
39
|
+
import { CircleXIcon as ws, SearchIcon as Ps, SunIcon as Cs, MoonIcon as Ns, MenuIcon as ks, PanelLeftIcon as Ds } from "lucide-react";
|
|
40
|
+
import { VisuallyHidden as Ge } from "@radix-ui/react-visually-hidden";
|
|
41
|
+
import { D as Ss, a as Es, b as We, c as Je, d as M } from "./Drawer-kDAfOq_2.js";
|
|
42
|
+
import { a as Os } from "./index-CPNSgwSb.js";
|
|
43
|
+
import { C as Ms } from "./CategoryHeading-DpB47wvk.js";
|
|
44
|
+
var S, Qe, Ts = (Qe = class extends Le {
|
|
45
45
|
constructor(e = {}) {
|
|
46
46
|
super();
|
|
47
|
-
|
|
47
|
+
P(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, i = s.queryHash ?? Ke(a, s);
|
|
52
|
+
let o = this.get(i);
|
|
53
|
+
return o || (o = new Dt({
|
|
54
54
|
client: e,
|
|
55
55
|
queryKey: a,
|
|
56
|
-
queryHash:
|
|
56
|
+
queryHash: i,
|
|
57
57
|
options: e.defaultQueryOptions(s),
|
|
58
58
|
state: n,
|
|
59
59
|
defaultOptions: e.getQueryDefaults(a)
|
|
60
|
-
}), this.add(
|
|
60
|
+
}), this.add(o)), o;
|
|
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 Be {
|
|
|
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
|
+
C.batch(() => {
|
|
74
74
|
this.getAll().forEach((e) => {
|
|
75
75
|
this.remove(e);
|
|
76
76
|
});
|
|
@@ -93,33 +93,33 @@ var S, Qe, Ts = (Qe = class extends Be {
|
|
|
93
93
|
return Object.keys(e).length > 0 ? s.filter((n) => be(e, n)) : s;
|
|
94
94
|
}
|
|
95
95
|
notify(e) {
|
|
96
|
-
|
|
96
|
+
C.batch(() => {
|
|
97
97
|
this.listeners.forEach((s) => {
|
|
98
98
|
s(e);
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
onFocus() {
|
|
103
|
-
|
|
103
|
+
C.batch(() => {
|
|
104
104
|
this.getAll().forEach((e) => {
|
|
105
105
|
e.onFocus();
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
onOnline() {
|
|
110
|
-
|
|
110
|
+
C.batch(() => {
|
|
111
111
|
this.getAll().forEach((e) => {
|
|
112
112
|
e.onOnline();
|
|
113
113
|
});
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
}, S = new WeakMap(), Qe),
|
|
116
|
+
}, S = new WeakMap(), Qe), A, N, V, Re, As = (Re = class extends Le {
|
|
117
117
|
constructor(e = {}) {
|
|
118
118
|
super();
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
this.config = e, v(this,
|
|
119
|
+
P(this, A);
|
|
120
|
+
P(this, N);
|
|
121
|
+
P(this, V);
|
|
122
|
+
this.config = e, v(this, A, /* @__PURE__ */ new Set()), v(this, N, /* @__PURE__ */ new Map()), v(this, V, 0);
|
|
123
123
|
}
|
|
124
124
|
build(e, s, n) {
|
|
125
125
|
const a = new Zt({
|
|
@@ -131,7 +131,7 @@ var S, Qe, Ts = (Qe = class extends Be {
|
|
|
131
131
|
return this.add(a), a;
|
|
132
132
|
}
|
|
133
133
|
add(e) {
|
|
134
|
-
l(this,
|
|
134
|
+
l(this, A).add(e);
|
|
135
135
|
const s = W(e);
|
|
136
136
|
if (typeof s == "string") {
|
|
137
137
|
const n = l(this, N).get(s);
|
|
@@ -140,7 +140,7 @@ var S, Qe, Ts = (Qe = class extends Be {
|
|
|
140
140
|
this.notify({ type: "added", mutation: e });
|
|
141
141
|
}
|
|
142
142
|
remove(e) {
|
|
143
|
-
if (l(this,
|
|
143
|
+
if (l(this, A).delete(e)) {
|
|
144
144
|
const s = W(e);
|
|
145
145
|
if (typeof s == "string") {
|
|
146
146
|
const n = l(this, N).get(s);
|
|
@@ -157,7 +157,7 @@ var S, Qe, Ts = (Qe = class extends Be {
|
|
|
157
157
|
const s = W(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
|
+
(i) => i.state.status === "pending"
|
|
161
161
|
);
|
|
162
162
|
return !a || a === e;
|
|
163
163
|
} else
|
|
@@ -167,20 +167,20 @@ var S, Qe, Ts = (Qe = class extends Be {
|
|
|
167
167
|
var n;
|
|
168
168
|
const s = W(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((i) => i !== e && i.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
|
+
C.batch(() => {
|
|
177
|
+
l(this, A).forEach((e) => {
|
|
178
178
|
this.notify({ type: "removed", mutation: e });
|
|
179
|
-
}), l(this,
|
|
179
|
+
}), l(this, A).clear(), l(this, N).clear();
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
182
|
getAll() {
|
|
183
|
-
return Array.from(l(this,
|
|
183
|
+
return Array.from(l(this, A));
|
|
184
184
|
}
|
|
185
185
|
find(e) {
|
|
186
186
|
const s = { exact: !0, ...e };
|
|
@@ -192,7 +192,7 @@ var S, Qe, Ts = (Qe = class extends Be {
|
|
|
192
192
|
return this.getAll().filter((s) => je(e, s));
|
|
193
193
|
}
|
|
194
194
|
notify(e) {
|
|
195
|
-
|
|
195
|
+
C.batch(() => {
|
|
196
196
|
this.listeners.forEach((s) => {
|
|
197
197
|
s(e);
|
|
198
198
|
});
|
|
@@ -200,13 +200,13 @@ var S, Qe, Ts = (Qe = class extends Be {
|
|
|
200
200
|
}
|
|
201
201
|
resumePausedMutations() {
|
|
202
202
|
const e = this.getAll().filter((s) => s.state.isPaused);
|
|
203
|
-
return
|
|
203
|
+
return C.batch(
|
|
204
204
|
() => Promise.all(
|
|
205
|
-
e.map((s) => s.continue().catch(
|
|
205
|
+
e.map((s) => s.continue().catch(T))
|
|
206
206
|
)
|
|
207
207
|
);
|
|
208
208
|
}
|
|
209
|
-
},
|
|
209
|
+
}, A = new WeakMap(), N = new WeakMap(), V = new WeakMap(), Re);
|
|
210
210
|
function W(t) {
|
|
211
211
|
var e;
|
|
212
212
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
@@ -214,60 +214,60 @@ function W(t) {
|
|
|
214
214
|
function Ee(t) {
|
|
215
215
|
return {
|
|
216
216
|
onFetch: (e, s) => {
|
|
217
|
-
var x,
|
|
218
|
-
const n = e.options, a = (h = (
|
|
217
|
+
var x, f, h, p, y;
|
|
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, i = ((p = e.state.data) == null ? void 0 : p.pages) || [], o = ((y = e.state.data) == null ? void 0 : y.pageParams) || [];
|
|
219
219
|
let u = { pages: [], pageParams: [] }, d = 0;
|
|
220
220
|
const c = async () => {
|
|
221
|
-
let
|
|
222
|
-
const
|
|
223
|
-
Object.defineProperty(
|
|
221
|
+
let m = !1;
|
|
222
|
+
const b = (j) => {
|
|
223
|
+
Object.defineProperty(j, "signal", {
|
|
224
224
|
enumerable: !0,
|
|
225
|
-
get: () => (e.signal.aborted ?
|
|
226
|
-
|
|
225
|
+
get: () => (e.signal.aborted ? m = !0 : e.signal.addEventListener("abort", () => {
|
|
226
|
+
m = !0;
|
|
227
227
|
}), e.signal)
|
|
228
228
|
});
|
|
229
|
-
},
|
|
230
|
-
if (
|
|
229
|
+
}, F = St(e.options, e.fetchOptions), Z = async (j, D, Y) => {
|
|
230
|
+
if (m)
|
|
231
231
|
return Promise.reject();
|
|
232
|
-
if (D == null &&
|
|
233
|
-
return Promise.resolve(
|
|
232
|
+
if (D == null && j.pages.length)
|
|
233
|
+
return Promise.resolve(j);
|
|
234
234
|
const _ = {
|
|
235
235
|
client: e.client,
|
|
236
236
|
queryKey: e.queryKey,
|
|
237
237
|
pageParam: D,
|
|
238
|
-
direction:
|
|
238
|
+
direction: Y ? "backward" : "forward",
|
|
239
239
|
meta: e.options.meta
|
|
240
240
|
};
|
|
241
|
-
|
|
242
|
-
const
|
|
241
|
+
b(_);
|
|
242
|
+
const dt = await F(
|
|
243
243
|
_
|
|
244
|
-
), { maxPages: pe } = e.options, xe =
|
|
244
|
+
), { maxPages: pe } = e.options, xe = Y ? Et : Ot;
|
|
245
245
|
return {
|
|
246
|
-
pages: xe(
|
|
247
|
-
pageParams: xe(
|
|
246
|
+
pages: xe(j.pages, dt, pe),
|
|
247
|
+
pageParams: xe(j.pageParams, D, pe)
|
|
248
248
|
};
|
|
249
249
|
};
|
|
250
|
-
if (a &&
|
|
251
|
-
const
|
|
252
|
-
pages:
|
|
253
|
-
pageParams:
|
|
254
|
-
}, _ = D(n,
|
|
255
|
-
u = await
|
|
250
|
+
if (a && i.length) {
|
|
251
|
+
const j = a === "backward", D = j ? qs : Oe, Y = {
|
|
252
|
+
pages: i,
|
|
253
|
+
pageParams: o
|
|
254
|
+
}, _ = D(n, Y);
|
|
255
|
+
u = await Z(Y, _, j);
|
|
256
256
|
} else {
|
|
257
|
-
const
|
|
257
|
+
const j = t ?? i.length;
|
|
258
258
|
do {
|
|
259
|
-
const D = d === 0 ?
|
|
259
|
+
const D = d === 0 ? o[0] ?? n.initialPageParam : Oe(n, u);
|
|
260
260
|
if (d > 0 && D == null)
|
|
261
261
|
break;
|
|
262
|
-
u = await
|
|
263
|
-
} while (d <
|
|
262
|
+
u = await Z(u, D), d++;
|
|
263
|
+
} while (d < j);
|
|
264
264
|
}
|
|
265
265
|
return u;
|
|
266
266
|
};
|
|
267
267
|
e.options.persister ? e.fetchFn = () => {
|
|
268
|
-
var
|
|
269
|
-
return (
|
|
270
|
-
|
|
268
|
+
var m, b;
|
|
269
|
+
return (b = (m = e.options).persister) == null ? void 0 : b.call(
|
|
270
|
+
m,
|
|
271
271
|
c,
|
|
272
272
|
{
|
|
273
273
|
client: e.client,
|
|
@@ -290,32 +290,32 @@ function Oe(t, { pages: e, pageParams: s }) {
|
|
|
290
290
|
s
|
|
291
291
|
) : void 0;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
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, I, Q, z, H, R,
|
|
297
|
+
var g, I, Q, z, H, R, B, L, Fe, Is = (Fe = class {
|
|
298
298
|
constructor(t = {}) {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
v(this, g, t.queryCache || new Ts()), v(this, I, t.mutationCache || new
|
|
299
|
+
P(this, g);
|
|
300
|
+
P(this, I);
|
|
301
|
+
P(this, Q);
|
|
302
|
+
P(this, z);
|
|
303
|
+
P(this, H);
|
|
304
|
+
P(this, R);
|
|
305
|
+
P(this, B);
|
|
306
|
+
P(this, L);
|
|
307
|
+
v(this, g, t.queryCache || new Ts()), v(this, I, t.mutationCache || new As()), v(this, Q, t.defaultOptions || {}), v(this, z, /* @__PURE__ */ new Map()), v(this, H, /* @__PURE__ */ new Map()), v(this, R, 0);
|
|
308
308
|
}
|
|
309
309
|
mount() {
|
|
310
|
-
G(this, R)._++, l(this, R) === 1 && (v(this,
|
|
310
|
+
G(this, R)._++, l(this, R) === 1 && (v(this, B, Mt.subscribe(async (t) => {
|
|
311
311
|
t && (await this.resumePausedMutations(), l(this, g).onFocus());
|
|
312
|
-
})), v(this,
|
|
312
|
+
})), v(this, L, 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
|
-
G(this, R)._--, l(this, R) === 0 && ((t = l(this,
|
|
318
|
+
G(this, R)._--, l(this, R) === 0 && ((t = l(this, B)) == null || t.call(this), v(this, B, void 0), (e = l(this, L)) == null || e.call(this), v(this, L, void 0));
|
|
319
319
|
}
|
|
320
320
|
isFetching(t) {
|
|
321
321
|
return l(this, g).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
@@ -341,12 +341,12 @@ var g, I, Q, z, H, R, L, B, Fe, Qs = (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
|
+
), i = a == null ? void 0 : a.state.data, o = Tt(e, i);
|
|
345
|
+
if (o !== void 0)
|
|
346
|
+
return l(this, g).build(this, n).setData(o, { ...s, manual: !0 });
|
|
347
347
|
}
|
|
348
348
|
setQueriesData(t, e, s) {
|
|
349
|
-
return
|
|
349
|
+
return C.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, L, B, Fe, Qs = (Fe = class {
|
|
|
362
362
|
}
|
|
363
363
|
removeQueries(t) {
|
|
364
364
|
const e = l(this, g);
|
|
365
|
-
|
|
365
|
+
C.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, L, B, Fe, Qs = (Fe = class {
|
|
|
373
373
|
type: "active",
|
|
374
374
|
...t
|
|
375
375
|
};
|
|
376
|
-
return
|
|
376
|
+
return C.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 = C.batch(
|
|
382
382
|
() => l(this, g).findAll(t).map((a) => a.cancel(s))
|
|
383
383
|
);
|
|
384
|
-
return Promise.all(n).then(
|
|
384
|
+
return Promise.all(n).then(T).catch(T);
|
|
385
385
|
}
|
|
386
386
|
invalidateQueries(t, e = {}) {
|
|
387
|
-
return
|
|
387
|
+
return C.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,13 +400,13 @@ var g, I, Q, z, H, R, L, B, Fe, Qs = (Fe = class {
|
|
|
400
400
|
const s = {
|
|
401
401
|
...e,
|
|
402
402
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
403
|
-
}, n =
|
|
403
|
+
}, n = C.batch(
|
|
404
404
|
() => l(this, g).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
|
|
405
|
-
let
|
|
406
|
-
return s.throwOnError || (
|
|
405
|
+
let i = a.fetch(void 0, s);
|
|
406
|
+
return s.throwOnError || (i = i.catch(T)), a.state.fetchStatus === "paused" ? Promise.resolve() : i;
|
|
407
407
|
})
|
|
408
408
|
);
|
|
409
|
-
return Promise.all(n).then(
|
|
409
|
+
return Promise.all(n).then(T);
|
|
410
410
|
}
|
|
411
411
|
fetchQuery(t) {
|
|
412
412
|
const e = this.defaultQueryOptions(t);
|
|
@@ -417,13 +417,13 @@ var g, I, Q, z, H, R, L, B, Fe, Qs = (Fe = class {
|
|
|
417
417
|
) ? s.fetch(e) : Promise.resolve(s.state.data);
|
|
418
418
|
}
|
|
419
419
|
prefetchQuery(t) {
|
|
420
|
-
return this.fetchQuery(t).then(
|
|
420
|
+
return this.fetchQuery(t).then(T).catch(T);
|
|
421
421
|
}
|
|
422
422
|
fetchInfiniteQuery(t) {
|
|
423
423
|
return t.behavior = Ee(t.pages), this.fetchQuery(t);
|
|
424
424
|
}
|
|
425
425
|
prefetchInfiniteQuery(t) {
|
|
426
|
-
return this.fetchInfiniteQuery(t).then(
|
|
426
|
+
return this.fetchInfiniteQuery(t).then(T).catch(T);
|
|
427
427
|
}
|
|
428
428
|
ensureInfiniteQueryData(t) {
|
|
429
429
|
return t.behavior = Ee(t.pages), this.ensureQueryData(t);
|
|
@@ -493,97 +493,97 @@ var g, I, Q, z, H, R, L, B, Fe, Qs = (Fe = class {
|
|
|
493
493
|
clear() {
|
|
494
494
|
l(this, g).clear(), l(this, I).clear();
|
|
495
495
|
}
|
|
496
|
-
}, g = new WeakMap(), I = new WeakMap(), Q = new WeakMap(), z = new WeakMap(), H = new WeakMap(), R = new WeakMap(),
|
|
497
|
-
function
|
|
496
|
+
}, g = new WeakMap(), I = new WeakMap(), Q = new WeakMap(), z = new WeakMap(), H = new WeakMap(), R = new WeakMap(), B = new WeakMap(), L = new WeakMap(), Fe);
|
|
497
|
+
function Qs(t) {
|
|
498
498
|
return t;
|
|
499
499
|
}
|
|
500
500
|
function Me(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
|
-
|
|
506
|
-
var h,
|
|
504
|
+
const n = t.getMutationCache(), a = t.getQueryCache(), i = ((d = s == null ? void 0 : s.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Qs, o = e.mutations || [], u = e.queries || [];
|
|
505
|
+
o.forEach(({ state: x, ...f }) => {
|
|
506
|
+
var h, p;
|
|
507
507
|
n.build(
|
|
508
508
|
t,
|
|
509
509
|
{
|
|
510
510
|
...(h = t.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
|
|
511
|
-
...(
|
|
512
|
-
...
|
|
511
|
+
...(p = s == null ? void 0 : s.defaultOptions) == null ? void 0 : p.mutations,
|
|
512
|
+
...f
|
|
513
513
|
},
|
|
514
514
|
x
|
|
515
515
|
);
|
|
516
|
-
}), u.forEach(({ queryKey: x, state:
|
|
517
|
-
var
|
|
518
|
-
let
|
|
519
|
-
const
|
|
520
|
-
if (
|
|
521
|
-
if (
|
|
522
|
-
const { fetchStatus:
|
|
523
|
-
|
|
516
|
+
}), u.forEach(({ queryKey: x, state: f, queryHash: h, meta: p, promise: y }) => {
|
|
517
|
+
var F, Z;
|
|
518
|
+
let m = a.get(h);
|
|
519
|
+
const b = f.data === void 0 ? f.data : i(f.data);
|
|
520
|
+
if (m) {
|
|
521
|
+
if (m.state.dataUpdatedAt < f.dataUpdatedAt) {
|
|
522
|
+
const { fetchStatus: j, ...D } = f;
|
|
523
|
+
m.setState({
|
|
524
524
|
...D,
|
|
525
|
-
data:
|
|
525
|
+
data: b
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
528
|
} else
|
|
529
|
-
|
|
529
|
+
m = a.build(
|
|
530
530
|
t,
|
|
531
531
|
{
|
|
532
|
-
...(
|
|
533
|
-
...(
|
|
532
|
+
...(F = t.getDefaultOptions().hydrate) == null ? void 0 : F.queries,
|
|
533
|
+
...(Z = s == null ? void 0 : s.defaultOptions) == null ? void 0 : Z.queries,
|
|
534
534
|
queryKey: x,
|
|
535
535
|
queryHash: h,
|
|
536
|
-
meta:
|
|
536
|
+
meta: p
|
|
537
537
|
},
|
|
538
538
|
// Reset fetch status to idle to avoid
|
|
539
539
|
// query being stuck in fetching state upon hydration
|
|
540
540
|
{
|
|
541
|
-
...
|
|
542
|
-
data:
|
|
541
|
+
...f,
|
|
542
|
+
data: b,
|
|
543
543
|
fetchStatus: "idle"
|
|
544
544
|
}
|
|
545
545
|
);
|
|
546
546
|
if (y) {
|
|
547
|
-
const
|
|
548
|
-
|
|
547
|
+
const j = Promise.resolve(y).then(i);
|
|
548
|
+
m.fetch(void 0, { initialPromise: j });
|
|
549
549
|
}
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
var
|
|
552
|
+
var Te = (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 =
|
|
558
|
+
const a = $e(n), [i, o] = q.useState(), u = q.useRef(e);
|
|
559
559
|
return u.current = e, q.useMemo(() => {
|
|
560
560
|
if (s) {
|
|
561
561
|
if (typeof s != "object")
|
|
562
562
|
return;
|
|
563
|
-
const d = a.getQueryCache(), c = s.queries || [], x = [],
|
|
563
|
+
const d = a.getQueryCache(), c = s.queries || [], x = [], f = [];
|
|
564
564
|
for (const h of c) {
|
|
565
|
-
const
|
|
566
|
-
if (!
|
|
565
|
+
const p = d.get(h.queryHash);
|
|
566
|
+
if (!p)
|
|
567
567
|
x.push(h);
|
|
568
568
|
else {
|
|
569
|
-
const y = h.state.dataUpdatedAt >
|
|
570
|
-
|
|
571
|
-
(
|
|
569
|
+
const y = h.state.dataUpdatedAt > p.state.dataUpdatedAt || // RSC special serialized then-able chunks
|
|
570
|
+
Te(h.promise, "status") && Te(p.promise, "status") && h.promise.status !== p.promise.status, m = i == null ? void 0 : i.find(
|
|
571
|
+
(b) => b.queryHash === h.queryHash
|
|
572
572
|
);
|
|
573
|
-
y && (!
|
|
573
|
+
y && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && f.push(h);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
x.length > 0 && Me(a, { queries: x }, u.current),
|
|
577
|
-
(h) => h ? [...h, ...
|
|
576
|
+
x.length > 0 && Me(a, { queries: x }, u.current), f.length > 0 && o(
|
|
577
|
+
(h) => h ? [...h, ...f] : f
|
|
578
578
|
);
|
|
579
579
|
}
|
|
580
|
-
}, [a,
|
|
581
|
-
|
|
582
|
-
}, [a,
|
|
580
|
+
}, [a, i, s]), q.useEffect(() => {
|
|
581
|
+
i && (Me(a, { queries: i }, u.current), o(void 0));
|
|
582
|
+
}, [a, i]), t;
|
|
583
583
|
};
|
|
584
|
-
const
|
|
585
|
-
const t = K(), e = O(), s =
|
|
586
|
-
(u) =>
|
|
584
|
+
const Fs = () => {
|
|
585
|
+
const t = K(), e = O(), s = xt(), n = le(), a = Ht(n.pathname), { protectedRoutes: i = [] } = e.options, o = i.some(
|
|
586
|
+
(u) => yt({ path: u, end: !0 }, n.pathname)
|
|
587
587
|
);
|
|
588
588
|
if (qt({
|
|
589
589
|
queryKey: ["login-redirect"],
|
|
@@ -593,8 +593,8 @@ const zs = () => {
|
|
|
593
593
|
redirectTo: a.current
|
|
594
594
|
})), !0;
|
|
595
595
|
},
|
|
596
|
-
enabled: typeof window < "u" &&
|
|
597
|
-
}),
|
|
596
|
+
enabled: typeof window < "u" && o && !t.isPending && !t.isAuthenticated
|
|
597
|
+
}), o && !t.isAuthenticated)
|
|
598
598
|
return /* @__PURE__ */ r.jsx(
|
|
599
599
|
It,
|
|
600
600
|
{
|
|
@@ -608,15 +608,15 @@ const zs = () => {
|
|
|
608
608
|
] })
|
|
609
609
|
}
|
|
610
610
|
);
|
|
611
|
-
if (
|
|
612
|
-
throw new
|
|
611
|
+
if (o && !t.isAuthEnabled)
|
|
612
|
+
throw new Ze("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
|
-
return /* @__PURE__ */ r.jsx(
|
|
616
|
+
return /* @__PURE__ */ r.jsx(ce, {});
|
|
617
617
|
};
|
|
618
|
-
function
|
|
619
|
-
return /* @__PURE__ */ r.jsx(
|
|
618
|
+
function zs({ error: t }) {
|
|
619
|
+
return /* @__PURE__ */ r.jsx(Ye, { error: t });
|
|
620
620
|
}
|
|
621
621
|
/**
|
|
622
622
|
* react-router v7.2.0
|
|
@@ -628,67 +628,67 @@ function Hs({ error: t }) {
|
|
|
628
628
|
*
|
|
629
629
|
* @license MIT
|
|
630
630
|
*/
|
|
631
|
-
function
|
|
632
|
-
return /* @__PURE__ */ q.createElement(
|
|
631
|
+
function Hs(t) {
|
|
632
|
+
return /* @__PURE__ */ q.createElement(vt, { flushSync: Gt.flushSync, ...t });
|
|
633
633
|
}
|
|
634
|
-
const
|
|
634
|
+
const ie = he({ stagger: !1 }), Bs = new Is({
|
|
635
635
|
defaultOptions: {
|
|
636
636
|
queries: {
|
|
637
637
|
staleTime: 1e3 * 60 * 5
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
|
-
}),
|
|
640
|
+
}), Ls = ({
|
|
641
641
|
router: t,
|
|
642
642
|
hydrate: e = !1
|
|
643
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
643
|
+
}) => /* @__PURE__ */ r.jsx(Xe, { children: /* @__PURE__ */ r.jsx(Ue, { client: Bs, children: /* @__PURE__ */ r.jsx(Rs, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ r.jsx(ze, { children: /* @__PURE__ */ r.jsx(ie.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ r.jsx(Hs, { router: t }) }) }) }) }) }), Ks = ({
|
|
644
644
|
router: t,
|
|
645
645
|
context: e,
|
|
646
646
|
queryClient: s,
|
|
647
647
|
helmetContext: n
|
|
648
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
649
|
-
var
|
|
650
|
-
function
|
|
651
|
-
return
|
|
648
|
+
}) => /* @__PURE__ */ r.jsx(Xe, { children: /* @__PURE__ */ r.jsx(Ue, { client: s, children: /* @__PURE__ */ r.jsx(ze, { context: n, children: /* @__PURE__ */ r.jsx(bt, { router: t, context: e }) }) }) });
|
|
649
|
+
var X = { exports: {} }, $s = X.exports, Ae;
|
|
650
|
+
function Us() {
|
|
651
|
+
return Ae || (Ae = 1, function(t, e) {
|
|
652
652
|
(function(s, n) {
|
|
653
653
|
n(e, Yt);
|
|
654
|
-
})(
|
|
654
|
+
})($s, function(s, n) {
|
|
655
655
|
const a = {
|
|
656
656
|
delay: 500,
|
|
657
657
|
minDuration: 200,
|
|
658
658
|
ssr: !0
|
|
659
659
|
};
|
|
660
|
-
function
|
|
660
|
+
function i() {
|
|
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 o(u, d) {
|
|
667
667
|
d = Object.assign({}, a, d);
|
|
668
|
-
const c =
|
|
668
|
+
const c = i() && d.ssr, x = c && u ? "DISPLAY" : "IDLE", [f, h] = n.useState(x), p = n.useRef(null);
|
|
669
669
|
return n.useEffect(() => {
|
|
670
|
-
if (u && (
|
|
671
|
-
clearTimeout(
|
|
670
|
+
if (u && (f === "IDLE" || c)) {
|
|
671
|
+
clearTimeout(p.current);
|
|
672
672
|
const y = 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
|
}, y), c || h("DELAY");
|
|
680
680
|
}
|
|
681
|
-
!u &&
|
|
682
|
-
}, [u,
|
|
681
|
+
!u && f !== "DISPLAY" && (clearTimeout(p.current), h("IDLE"));
|
|
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 = o;
|
|
685
685
|
});
|
|
686
|
-
}(
|
|
686
|
+
}(X, X.exports)), X.exports;
|
|
687
687
|
}
|
|
688
|
-
var
|
|
689
|
-
const
|
|
690
|
-
const t =
|
|
691
|
-
|
|
688
|
+
var Zs = Us();
|
|
689
|
+
const Ys = () => {
|
|
690
|
+
const t = le(), e = fe(t.pathname);
|
|
691
|
+
U(() => {
|
|
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]);
|
|
@@ -711,7 +711,7 @@ const qe = {
|
|
|
711
711
|
tip: "bg-green-600",
|
|
712
712
|
caution: "bg-orange-500",
|
|
713
713
|
danger: "bg-rose-500"
|
|
714
|
-
},
|
|
714
|
+
}, Vs = () => {
|
|
715
715
|
const { page: t } = O(), [e, s] = $(!0);
|
|
716
716
|
if (!(t != null && t.banner) || !e)
|
|
717
717
|
return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
@@ -733,26 +733,26 @@ const qe = {
|
|
|
733
733
|
type: "button",
|
|
734
734
|
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
735
735
|
onClick: () => s(!1),
|
|
736
|
-
children: /* @__PURE__ */ r.jsx(
|
|
736
|
+
children: /* @__PURE__ */ r.jsx(ws, { size: 16 })
|
|
737
737
|
}
|
|
738
738
|
)
|
|
739
739
|
]
|
|
740
740
|
}
|
|
741
741
|
);
|
|
742
|
-
},
|
|
743
|
-
const e = O(), [s, n] = $(!1), a =
|
|
744
|
-
|
|
742
|
+
}, et = ({ className: t }) => {
|
|
743
|
+
const e = O(), [s, n] = $(!1), a = Xt(() => n(!1), []);
|
|
744
|
+
U(() => {
|
|
745
745
|
if (s)
|
|
746
746
|
return;
|
|
747
|
-
function
|
|
747
|
+
function o(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", o), () => {
|
|
751
|
+
window.removeEventListener("keydown", o);
|
|
752
752
|
};
|
|
753
753
|
}, [s, n]);
|
|
754
|
-
const
|
|
755
|
-
return
|
|
754
|
+
const i = e.plugins.find(as);
|
|
755
|
+
return i ? /* @__PURE__ */ r.jsxs("div", { className: t, children: [
|
|
756
756
|
/* @__PURE__ */ r.jsxs(
|
|
757
757
|
"button",
|
|
758
758
|
{
|
|
@@ -761,21 +761,21 @@ const qe = {
|
|
|
761
761
|
className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
|
|
762
762
|
children: [
|
|
763
763
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
764
|
-
/* @__PURE__ */ r.jsx(
|
|
764
|
+
/* @__PURE__ */ r.jsx(Ps, { size: 14 }),
|
|
765
765
|
"Search"
|
|
766
766
|
] }),
|
|
767
767
|
/* @__PURE__ */ r.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
|
|
768
768
|
]
|
|
769
769
|
}
|
|
770
770
|
),
|
|
771
|
-
/* @__PURE__ */ r.jsx(me, { fallback: null, children:
|
|
771
|
+
/* @__PURE__ */ r.jsx(me, { fallback: null, children: i.renderSearch({
|
|
772
772
|
isOpen: s,
|
|
773
773
|
onClose: a
|
|
774
774
|
}) })
|
|
775
775
|
] }) : null;
|
|
776
|
-
},
|
|
776
|
+
}, tt = () => {
|
|
777
777
|
const { resolvedTheme: t, setTheme: e } = He();
|
|
778
|
-
return /* @__PURE__ */ r.jsx(ge, { fallback: /* @__PURE__ */ r.jsx(
|
|
778
|
+
return /* @__PURE__ */ r.jsx(ge, { fallback: /* @__PURE__ */ r.jsx(ae, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ r.jsxs(
|
|
779
779
|
"button",
|
|
780
780
|
{
|
|
781
781
|
type: "button",
|
|
@@ -791,7 +791,7 @@ const qe = {
|
|
|
791
791
|
t === "light" && "border-border bg-muted",
|
|
792
792
|
t === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
|
|
793
793
|
),
|
|
794
|
-
children: /* @__PURE__ */ r.jsx(
|
|
794
|
+
children: /* @__PURE__ */ r.jsx(Cs, { size: 16 })
|
|
795
795
|
}
|
|
796
796
|
),
|
|
797
797
|
/* @__PURE__ */ r.jsx(
|
|
@@ -802,38 +802,38 @@ const qe = {
|
|
|
802
802
|
t === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
|
|
803
803
|
t === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
|
|
804
804
|
),
|
|
805
|
-
children: /* @__PURE__ */ r.jsx(
|
|
805
|
+
children: /* @__PURE__ */ r.jsx(Ns, { size: 16 })
|
|
806
806
|
}
|
|
807
807
|
)
|
|
808
808
|
]
|
|
809
809
|
}
|
|
810
810
|
) });
|
|
811
|
-
},
|
|
811
|
+
}, st = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", _s = () => {
|
|
812
812
|
const { topNavigation: t } = O(), { isAuthenticated: e } = K();
|
|
813
813
|
return t.length <= 1 ? /* @__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: t.filter(
|
|
814
|
+
/* @__PURE__ */ r.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(st(e)).map((s) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(rt, { ...s }) }, s.id)) }) }),
|
|
815
815
|
/* @__PURE__ */ r.jsx(k, { name: "top-navigation-side" })
|
|
816
816
|
] }) });
|
|
817
|
-
},
|
|
817
|
+
}, rt = ({
|
|
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
|
-
}) :
|
|
823
|
+
const { sidebars: n } = O(), a = n[t], i = Be(), o = !!ue().location, u = ((c = i.topNavItem) == null ? void 0 : c.id) === t && !o, d = s ?? (a ? wt(a, (x) => {
|
|
824
|
+
if (x.type === "doc") return ne(x.id);
|
|
825
|
+
}) : ne(t));
|
|
826
826
|
if (!d)
|
|
827
|
-
throw new
|
|
827
|
+
throw new Ze("Page not found.", {
|
|
828
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
829
|
});
|
|
830
830
|
return (
|
|
831
831
|
// We don't use isActive here because it has to be inside the sidebar,
|
|
832
832
|
// the top nav id doesn't necessarily start with the sidebar id
|
|
833
833
|
/* @__PURE__ */ r.jsx(
|
|
834
|
-
|
|
834
|
+
jt,
|
|
835
835
|
{
|
|
836
|
-
className: ({ isPending: x }) =>
|
|
836
|
+
className: ({ isPending: x }) => Os(
|
|
837
837
|
"block lg:py-3.5 font-medium -mb-px",
|
|
838
838
|
u || x ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
839
839
|
),
|
|
@@ -842,27 +842,27 @@ const qe = {
|
|
|
842
842
|
}
|
|
843
843
|
)
|
|
844
844
|
);
|
|
845
|
-
},
|
|
845
|
+
}, Gs = () => {
|
|
846
846
|
const { topNavigation: t } = O(), { isAuthenticated: e } = K(), [s, n] = $(!1);
|
|
847
847
|
return /* @__PURE__ */ r.jsxs(
|
|
848
|
-
|
|
848
|
+
Ss,
|
|
849
849
|
{
|
|
850
850
|
direction: "right",
|
|
851
851
|
open: s,
|
|
852
852
|
onOpenChange: (a) => n(a),
|
|
853
853
|
children: [
|
|
854
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(
|
|
854
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(Es, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(ks, { size: 22 }) }) }),
|
|
855
855
|
/* @__PURE__ */ r.jsx(
|
|
856
|
-
|
|
856
|
+
We,
|
|
857
857
|
{
|
|
858
858
|
className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
|
|
859
859
|
"aria-describedby": void 0,
|
|
860
860
|
children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
861
|
-
/* @__PURE__ */ r.jsx(
|
|
862
|
-
/* @__PURE__ */ r.jsx(
|
|
861
|
+
/* @__PURE__ */ r.jsx(Ge, { children: /* @__PURE__ */ r.jsx(Je, { children: "Navigation" }) }),
|
|
862
|
+
/* @__PURE__ */ r.jsx(et, { className: "flex p-4" }),
|
|
863
863
|
/* @__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(
|
|
864
|
+
/* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(tt, {}) }),
|
|
865
|
+
t.filter(st(e)).map((a) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ r.jsx(rt, { ...a }) }) }, a.label))
|
|
866
866
|
] })
|
|
867
867
|
] })
|
|
868
868
|
}
|
|
@@ -870,31 +870,31 @@ const qe = {
|
|
|
870
870
|
]
|
|
871
871
|
}
|
|
872
872
|
);
|
|
873
|
-
}, ee = ({ item: t }) => t.children ? /* @__PURE__ */ r.jsxs(
|
|
874
|
-
/* @__PURE__ */ r.jsx(
|
|
875
|
-
/* @__PURE__ */ r.jsx(
|
|
873
|
+
}, ee = ({ item: t }) => t.children ? /* @__PURE__ */ r.jsxs(xs, { children: [
|
|
874
|
+
/* @__PURE__ */ r.jsx(ys, { children: t.label }),
|
|
875
|
+
/* @__PURE__ */ r.jsx(vs, { children: /* @__PURE__ */ r.jsx(bs, { children: t.children.map((e, s) => (
|
|
876
876
|
// eslint-disable-next-line react/no-array-index-key
|
|
877
877
|
/* @__PURE__ */ r.jsx(ee, { item: e }, s)
|
|
878
878
|
)) }) })
|
|
879
|
-
] }, t.label) : /* @__PURE__ */ r.jsx(
|
|
879
|
+
] }, t.label) : /* @__PURE__ */ r.jsx(de, { to: t.path ?? "", children: /* @__PURE__ */ r.jsxs(js, { className: "flex gap-2", children: [
|
|
880
880
|
t.icon && /* @__PURE__ */ r.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
881
881
|
t.label
|
|
882
|
-
] }, t.label) }),
|
|
883
|
-
const e = K(), { isAuthenticated: s, profile: n, isAuthEnabled: a } = K(),
|
|
882
|
+
] }, t.label) }), nt = Ve(function() {
|
|
883
|
+
const e = K(), { isAuthenticated: s, profile: n, isAuthEnabled: a } = K(), i = O(), { page: o, plugins: u } = i, d = u.filter((c) => is(c)).flatMap((c) => c.getProfileMenuItems(i)).sort((c) => c.weight ?? 0);
|
|
884
884
|
return /* @__PURE__ */ r.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
885
|
-
/* @__PURE__ */ r.jsx(
|
|
885
|
+
/* @__PURE__ */ r.jsx(Vs, {}),
|
|
886
886
|
/* @__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
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(
|
|
888
|
-
(
|
|
887
|
+
/* @__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
|
+
(o == null ? void 0 : o.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
889
889
|
/* @__PURE__ */ r.jsx(
|
|
890
890
|
"img",
|
|
891
891
|
{
|
|
892
|
-
src: /https?:\/\//.test(
|
|
892
|
+
src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : Se(
|
|
893
893
|
"/",
|
|
894
|
-
|
|
894
|
+
o.logo.src.light
|
|
895
895
|
),
|
|
896
|
-
alt:
|
|
897
|
-
style: { width:
|
|
896
|
+
alt: o.logo.alt ?? o.pageTitle,
|
|
897
|
+
style: { width: o.logo.width },
|
|
898
898
|
className: "h-10 dark:hidden",
|
|
899
899
|
loading: "lazy"
|
|
900
900
|
}
|
|
@@ -902,61 +902,61 @@ const qe = {
|
|
|
902
902
|
/* @__PURE__ */ r.jsx(
|
|
903
903
|
"img",
|
|
904
904
|
{
|
|
905
|
-
src: /https?:\/\//.test(
|
|
905
|
+
src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : Se(
|
|
906
906
|
"/",
|
|
907
|
-
|
|
907
|
+
o.logo.src.dark
|
|
908
908
|
),
|
|
909
|
-
alt:
|
|
910
|
-
style: { width:
|
|
909
|
+
alt: o.logo.alt ?? o.pageTitle,
|
|
910
|
+
style: { width: o.logo.width },
|
|
911
911
|
className: "h-10 hidden dark:block",
|
|
912
912
|
loading: "lazy"
|
|
913
913
|
}
|
|
914
914
|
)
|
|
915
915
|
] }),
|
|
916
|
-
/* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children:
|
|
916
|
+
/* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
|
|
917
917
|
] }) }) }),
|
|
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(
|
|
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(et, { className: "pointer-events-auto" }) }),
|
|
919
919
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-8", children: [
|
|
920
|
-
/* @__PURE__ */ r.jsx(
|
|
920
|
+
/* @__PURE__ */ r.jsx(Gs, {}),
|
|
921
921
|
/* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
922
922
|
/* @__PURE__ */ r.jsx(k, { name: "head-navigation-start" }),
|
|
923
923
|
a && /* @__PURE__ */ r.jsx(
|
|
924
924
|
ge,
|
|
925
925
|
{
|
|
926
926
|
fallback: /* @__PURE__ */ r.jsx(Xs, { className: "rounded h-5 w-24 mr-4" }),
|
|
927
|
-
children: s ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(
|
|
928
|
-
/* @__PURE__ */ r.jsx(
|
|
929
|
-
/* @__PURE__ */ r.jsxs(
|
|
930
|
-
/* @__PURE__ */ r.jsxs(
|
|
927
|
+
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(ae, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
|
|
929
|
+
/* @__PURE__ */ r.jsxs(gs, { className: "w-56", children: [
|
|
930
|
+
/* @__PURE__ */ r.jsxs(ps, { children: [
|
|
931
931
|
n != null && n.name ? `${n.name}` : "My Account",
|
|
932
932
|
(n == null ? void 0 : n.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
|
|
933
933
|
] }),
|
|
934
|
-
d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(
|
|
934
|
+
d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(se, {}),
|
|
935
935
|
d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(ee, { item: c }, c.label)),
|
|
936
936
|
d.filter(
|
|
937
937
|
(c) => !c.category || c.category === "middle"
|
|
938
|
-
).length > 0 && /* @__PURE__ */ r.jsx(
|
|
938
|
+
).length > 0 && /* @__PURE__ */ r.jsx(se, {}),
|
|
939
939
|
d.filter(
|
|
940
940
|
(c) => !c.category || c.category === "middle"
|
|
941
941
|
).map((c) => /* @__PURE__ */ r.jsx(ee, { item: c }, c.label)),
|
|
942
|
-
d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(
|
|
942
|
+
d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(se, {}),
|
|
943
943
|
d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(ee, { item: c }, c.label))
|
|
944
944
|
] })
|
|
945
|
-
] }) : /* @__PURE__ */ r.jsx(
|
|
945
|
+
] }) : /* @__PURE__ */ r.jsx(ae, { variant: "ghost", onClick: () => e.login(), children: "Login" })
|
|
946
946
|
}
|
|
947
947
|
),
|
|
948
948
|
/* @__PURE__ */ r.jsx(k, { name: "head-navigation-end" }),
|
|
949
|
-
/* @__PURE__ */ r.jsx(
|
|
949
|
+
/* @__PURE__ */ r.jsx(tt, {})
|
|
950
950
|
] })
|
|
951
951
|
] })
|
|
952
952
|
] }) }),
|
|
953
953
|
/* @__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
954
|
/* @__PURE__ */ r.jsx(k, { name: "top-navigation-before" }),
|
|
955
|
-
/* @__PURE__ */ r.jsx(
|
|
955
|
+
/* @__PURE__ */ r.jsx(_s, {}),
|
|
956
956
|
/* @__PURE__ */ r.jsx(k, { name: "top-navigation-after" })
|
|
957
957
|
] }) })
|
|
958
958
|
] });
|
|
959
|
-
}),
|
|
959
|
+
}), at = ({
|
|
960
960
|
shouldScaleBackground: t = !0,
|
|
961
961
|
...e
|
|
962
962
|
}) => /* @__PURE__ */ r.jsx(
|
|
@@ -966,8 +966,8 @@ const qe = {
|
|
|
966
966
|
...e
|
|
967
967
|
}
|
|
968
968
|
);
|
|
969
|
-
|
|
970
|
-
const
|
|
969
|
+
at.displayName = "Drawer";
|
|
970
|
+
const Ws = M.Trigger, Js = M.Portal, it = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
971
971
|
M.Overlay,
|
|
972
972
|
{
|
|
973
973
|
ref: s,
|
|
@@ -975,10 +975,10 @@ const Js = M.Trigger, er = M.Portal, at = q.forwardRef(({ className: t, ...e },
|
|
|
975
975
|
...e
|
|
976
976
|
}
|
|
977
977
|
));
|
|
978
|
-
|
|
979
|
-
const
|
|
980
|
-
({ className: t, children: e, hideBar: s = !0, ...n }, a) => /* @__PURE__ */ r.jsxs(
|
|
981
|
-
/* @__PURE__ */ r.jsx(
|
|
978
|
+
it.displayName = M.Overlay.displayName;
|
|
979
|
+
const er = q.forwardRef(
|
|
980
|
+
({ className: t, children: e, hideBar: s = !0, ...n }, a) => /* @__PURE__ */ r.jsxs(Js, { children: [
|
|
981
|
+
/* @__PURE__ */ r.jsx(it, {}),
|
|
982
982
|
/* @__PURE__ */ r.jsxs(
|
|
983
983
|
M.Content,
|
|
984
984
|
{
|
|
@@ -996,8 +996,8 @@ const tr = q.forwardRef(
|
|
|
996
996
|
)
|
|
997
997
|
] })
|
|
998
998
|
);
|
|
999
|
-
|
|
1000
|
-
const
|
|
999
|
+
er.displayName = "DrawerContent";
|
|
1000
|
+
const tr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
1001
1001
|
M.Title,
|
|
1002
1002
|
{
|
|
1003
1003
|
ref: s,
|
|
@@ -1008,8 +1008,8 @@ const sr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
|
1008
1008
|
...e
|
|
1009
1009
|
}
|
|
1010
1010
|
));
|
|
1011
|
-
|
|
1012
|
-
const
|
|
1011
|
+
tr.displayName = M.Title.displayName;
|
|
1012
|
+
const sr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
1013
1013
|
M.Description,
|
|
1014
1014
|
{
|
|
1015
1015
|
ref: s,
|
|
@@ -1017,8 +1017,8 @@ const rr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
|
1017
1017
|
...e
|
|
1018
1018
|
}
|
|
1019
1019
|
));
|
|
1020
|
-
|
|
1021
|
-
const
|
|
1020
|
+
sr.displayName = M.Description.displayName;
|
|
1021
|
+
const ot = ({
|
|
1022
1022
|
children: t,
|
|
1023
1023
|
className: e,
|
|
1024
1024
|
ref: s
|
|
@@ -1035,29 +1035,29 @@ const it = ({
|
|
|
1035
1035
|
children: t
|
|
1036
1036
|
}
|
|
1037
1037
|
);
|
|
1038
|
-
|
|
1039
|
-
const
|
|
1038
|
+
ot.displayName = "SidebarWrapper";
|
|
1039
|
+
const rr = ({
|
|
1040
1040
|
onRequestClose: t,
|
|
1041
1041
|
sidebar: e
|
|
1042
1042
|
}) => {
|
|
1043
|
-
const s =
|
|
1044
|
-
return
|
|
1043
|
+
const s = fe(null);
|
|
1044
|
+
return U(() => {
|
|
1045
1045
|
var a;
|
|
1046
1046
|
const n = (a = s.current) == null ? void 0 : a.querySelector('[aria-current="page"]');
|
|
1047
1047
|
Wt(n ?? null);
|
|
1048
1048
|
}, []), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1049
|
-
/* @__PURE__ */ r.jsxs(
|
|
1049
|
+
/* @__PURE__ */ r.jsxs(ot, { ref: s, children: [
|
|
1050
1050
|
/* @__PURE__ */ r.jsx(k, { name: "zudoku-before-navigation" }),
|
|
1051
1051
|
e.map((n) => /* @__PURE__ */ r.jsx(De, { item: n }, n.label)),
|
|
1052
1052
|
/* @__PURE__ */ r.jsx(k, { name: "zudoku-after-navigation" })
|
|
1053
1053
|
] }),
|
|
1054
1054
|
/* @__PURE__ */ r.jsx(
|
|
1055
|
-
|
|
1055
|
+
We,
|
|
1056
1056
|
{
|
|
1057
1057
|
className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
|
|
1058
1058
|
"aria-describedby": void 0,
|
|
1059
1059
|
children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
1060
|
-
/* @__PURE__ */ r.jsx(
|
|
1060
|
+
/* @__PURE__ */ r.jsx(Ge, { children: /* @__PURE__ */ r.jsx(Je, { children: "Sidebar" }) }),
|
|
1061
1061
|
e.map((n) => /* @__PURE__ */ r.jsx(
|
|
1062
1062
|
De,
|
|
1063
1063
|
{
|
|
@@ -1070,24 +1070,24 @@ const nr = ({
|
|
|
1070
1070
|
}
|
|
1071
1071
|
)
|
|
1072
1072
|
] });
|
|
1073
|
-
},
|
|
1074
|
-
const [e, s] = $(!1), { sidebar: n } =
|
|
1073
|
+
}, nr = ({ children: t }) => {
|
|
1074
|
+
const [e, s] = $(!1), { sidebar: n } = Be(), a = n.length > 0;
|
|
1075
1075
|
return /* @__PURE__ */ r.jsxs(
|
|
1076
|
-
|
|
1076
|
+
at,
|
|
1077
1077
|
{
|
|
1078
1078
|
direction: "left",
|
|
1079
1079
|
open: e,
|
|
1080
|
-
onOpenChange: (
|
|
1080
|
+
onOpenChange: (i) => s(i),
|
|
1081
1081
|
children: [
|
|
1082
1082
|
a && /* @__PURE__ */ r.jsx(
|
|
1083
|
-
|
|
1083
|
+
rr,
|
|
1084
1084
|
{
|
|
1085
1085
|
onRequestClose: () => s(!1),
|
|
1086
1086
|
sidebar: n
|
|
1087
1087
|
}
|
|
1088
1088
|
),
|
|
1089
|
-
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(
|
|
1090
|
-
/* @__PURE__ */ r.jsx(
|
|
1089
|
+
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(Ds, { size: 16, strokeWidth: 1.5 }),
|
|
1091
1091
|
/* @__PURE__ */ r.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1092
1092
|
] }) }),
|
|
1093
1093
|
/* @__PURE__ */ r.jsxs(
|
|
@@ -1108,40 +1108,36 @@ const nr = ({
|
|
|
1108
1108
|
]
|
|
1109
1109
|
}
|
|
1110
1110
|
);
|
|
1111
|
-
}, Ie = () => /* @__PURE__ */ r.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ r.jsx(
|
|
1112
|
-
const
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
}, [a]), F(() => {
|
|
1119
|
-
e.pathname !== o.current && s(""), o.current = e.pathname;
|
|
1120
|
-
}, [e.pathname, s]);
|
|
1121
|
-
const i = !!de().location, u = Ys.useSpinDelay(i, {
|
|
1111
|
+
}, Ie = () => /* @__PURE__ */ r.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ r.jsx(_e, {}) }), ar = ({ children: t }) => {
|
|
1112
|
+
const { meta: e, authentication: s } = O();
|
|
1113
|
+
Jt(), Ys(), U(() => {
|
|
1114
|
+
var i;
|
|
1115
|
+
(i = s == null ? void 0 : s.onPageLoad) == null || i.call(s);
|
|
1116
|
+
}, [s]);
|
|
1117
|
+
const n = !!ue().location, a = Zs.useSpinDelay(n, {
|
|
1122
1118
|
delay: 300,
|
|
1123
1119
|
minDuration: 500
|
|
1124
1120
|
});
|
|
1125
1121
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1126
1122
|
!1,
|
|
1127
|
-
/* @__PURE__ */ r.jsxs(
|
|
1128
|
-
(
|
|
1129
|
-
(
|
|
1123
|
+
/* @__PURE__ */ r.jsxs(oe, { titleTemplate: e == null ? void 0 : e.title, children: [
|
|
1124
|
+
(e == null ? void 0 : e.description) && /* @__PURE__ */ r.jsx("meta", { name: "description", content: e.description }),
|
|
1125
|
+
(e == null ? void 0 : e.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: e.favicon })
|
|
1130
1126
|
] }),
|
|
1131
1127
|
/* @__PURE__ */ r.jsx(k, { name: "layout-before-head" }),
|
|
1132
|
-
/* @__PURE__ */ r.jsx(
|
|
1128
|
+
/* @__PURE__ */ r.jsx(nt, {}),
|
|
1133
1129
|
/* @__PURE__ */ r.jsx(k, { name: "layout-after-head" }),
|
|
1134
|
-
/* @__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:
|
|
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(Ie, {}) : /* @__PURE__ */ r.jsx(me, { fallback: /* @__PURE__ */ r.jsx(Ie, {}), children: /* @__PURE__ */ r.jsx(nr, { children: t ?? /* @__PURE__ */ r.jsx(ce, {}) }) }) })
|
|
1135
1131
|
] });
|
|
1136
|
-
},
|
|
1132
|
+
}, ir = ({
|
|
1137
1133
|
title: t = "An error occurred",
|
|
1138
1134
|
message: e,
|
|
1139
1135
|
category: s
|
|
1140
|
-
}) => /* @__PURE__ */ r.jsxs("div", { className:
|
|
1141
|
-
s && /* @__PURE__ */ r.jsx(
|
|
1142
|
-
t && /* @__PURE__ */ r.jsx(
|
|
1136
|
+
}) => /* @__PURE__ */ r.jsxs("div", { className: ts + " h-full pt-[--padding-content-top]", children: [
|
|
1137
|
+
s && /* @__PURE__ */ r.jsx(Ms, { children: s }),
|
|
1138
|
+
t && /* @__PURE__ */ r.jsx(es, { level: 1, className: "flex gap-3.5 items-center", children: t }),
|
|
1143
1139
|
/* @__PURE__ */ r.jsx("p", { children: e })
|
|
1144
|
-
] }),
|
|
1140
|
+
] }), or = (t) => {
|
|
1145
1141
|
switch (t) {
|
|
1146
1142
|
case 400:
|
|
1147
1143
|
return {
|
|
@@ -1204,23 +1200,23 @@ const nr = ({
|
|
|
1204
1200
|
message: "Something went wrong while processing your request."
|
|
1205
1201
|
};
|
|
1206
1202
|
}
|
|
1207
|
-
},
|
|
1208
|
-
const s =
|
|
1203
|
+
}, lr = ({ statusCode: t, message: e }) => {
|
|
1204
|
+
const s = or(t);
|
|
1209
1205
|
return /* @__PURE__ */ r.jsx(
|
|
1210
|
-
|
|
1206
|
+
ir,
|
|
1211
1207
|
{
|
|
1212
1208
|
title: s.title,
|
|
1213
1209
|
message: e ?? s.message,
|
|
1214
1210
|
category: t
|
|
1215
1211
|
}
|
|
1216
1212
|
);
|
|
1217
|
-
},
|
|
1213
|
+
}, cr = he(null), re = {
|
|
1218
1214
|
didCatch: !1,
|
|
1219
1215
|
error: null
|
|
1220
1216
|
};
|
|
1221
|
-
class
|
|
1217
|
+
class ur extends Vt {
|
|
1222
1218
|
constructor(e) {
|
|
1223
|
-
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
1219
|
+
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = re;
|
|
1224
1220
|
}
|
|
1225
1221
|
static getDerivedStateFromError(e) {
|
|
1226
1222
|
return {
|
|
@@ -1233,12 +1229,12 @@ class dr extends Xt {
|
|
|
1233
1229
|
error: e
|
|
1234
1230
|
} = this.state;
|
|
1235
1231
|
if (e !== null) {
|
|
1236
|
-
for (var s, n, a = arguments.length,
|
|
1237
|
-
o
|
|
1232
|
+
for (var s, n, a = arguments.length, i = new Array(a), o = 0; o < a; o++)
|
|
1233
|
+
i[o] = arguments[o];
|
|
1238
1234
|
(s = (n = this.props).onReset) === null || s === void 0 || s.call(n, {
|
|
1239
|
-
args:
|
|
1235
|
+
args: i,
|
|
1240
1236
|
reason: "imperative-api"
|
|
1241
|
-
}), this.setState(
|
|
1237
|
+
}), this.setState(re);
|
|
1242
1238
|
}
|
|
1243
1239
|
}
|
|
1244
1240
|
componentDidCatch(e, s) {
|
|
@@ -1251,13 +1247,13 @@ class dr extends Xt {
|
|
|
1251
1247
|
} = this.state, {
|
|
1252
1248
|
resetKeys: a
|
|
1253
1249
|
} = this.props;
|
|
1254
|
-
if (n && s.error !== null &&
|
|
1255
|
-
var
|
|
1256
|
-
(
|
|
1250
|
+
if (n && s.error !== null && dr(e.resetKeys, a)) {
|
|
1251
|
+
var i, o;
|
|
1252
|
+
(i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
|
|
1257
1253
|
next: a,
|
|
1258
1254
|
prev: e.resetKeys,
|
|
1259
1255
|
reason: "keys"
|
|
1260
|
-
}), this.setState(
|
|
1256
|
+
}), this.setState(re);
|
|
1261
1257
|
}
|
|
1262
1258
|
}
|
|
1263
1259
|
render() {
|
|
@@ -1267,13 +1263,13 @@ class dr extends Xt {
|
|
|
1267
1263
|
FallbackComponent: n,
|
|
1268
1264
|
fallback: a
|
|
1269
1265
|
} = this.props, {
|
|
1270
|
-
didCatch:
|
|
1271
|
-
error:
|
|
1266
|
+
didCatch: i,
|
|
1267
|
+
error: o
|
|
1272
1268
|
} = this.state;
|
|
1273
1269
|
let u = e;
|
|
1274
|
-
if (
|
|
1270
|
+
if (i) {
|
|
1275
1271
|
const d = {
|
|
1276
|
-
error:
|
|
1272
|
+
error: o,
|
|
1277
1273
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1278
1274
|
};
|
|
1279
1275
|
if (typeof s == "function")
|
|
@@ -1283,22 +1279,22 @@ class dr extends Xt {
|
|
|
1283
1279
|
else if (a !== void 0)
|
|
1284
1280
|
u = a;
|
|
1285
1281
|
else
|
|
1286
|
-
throw
|
|
1282
|
+
throw o;
|
|
1287
1283
|
}
|
|
1288
|
-
return ke(
|
|
1284
|
+
return ke(cr.Provider, {
|
|
1289
1285
|
value: {
|
|
1290
|
-
didCatch:
|
|
1291
|
-
error:
|
|
1286
|
+
didCatch: i,
|
|
1287
|
+
error: o,
|
|
1292
1288
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1293
1289
|
}
|
|
1294
1290
|
}, u);
|
|
1295
1291
|
}
|
|
1296
1292
|
}
|
|
1297
|
-
function
|
|
1293
|
+
function dr() {
|
|
1298
1294
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1299
1295
|
return t.length !== e.length || t.some((s, n) => !Object.is(s, e[n]));
|
|
1300
1296
|
}
|
|
1301
|
-
let
|
|
1297
|
+
let hr = () => ({
|
|
1302
1298
|
emit(t, ...e) {
|
|
1303
1299
|
for (let s = this.events[t] || [], n = 0, a = s.length; n < a; n++)
|
|
1304
1300
|
s[n](...e);
|
|
@@ -1312,45 +1308,45 @@ let fr = () => ({
|
|
|
1312
1308
|
};
|
|
1313
1309
|
}
|
|
1314
1310
|
});
|
|
1315
|
-
class
|
|
1316
|
-
constructor(e) {
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1311
|
+
class fr {
|
|
1312
|
+
constructor(e, s) {
|
|
1313
|
+
w(this, "plugins");
|
|
1314
|
+
w(this, "sidebars");
|
|
1315
|
+
w(this, "topNavigation");
|
|
1316
|
+
w(this, "meta");
|
|
1317
|
+
w(this, "page");
|
|
1318
|
+
w(this, "authentication");
|
|
1319
|
+
w(this, "navigationPlugins");
|
|
1320
|
+
w(this, "emitter", hr());
|
|
1321
|
+
w(this, "initialize", async () => {
|
|
1326
1322
|
await Promise.all(
|
|
1327
|
-
this.plugins.filter(
|
|
1323
|
+
this.plugins.filter(cs).map((e) => {
|
|
1328
1324
|
var s;
|
|
1329
1325
|
return (s = e.initialize) == null ? void 0 : s.call(e, this);
|
|
1330
1326
|
})
|
|
1331
1327
|
);
|
|
1332
1328
|
});
|
|
1333
|
-
|
|
1334
|
-
this.plugins.filter(
|
|
1329
|
+
w(this, "getApiIdentities", async () => (await Promise.all(
|
|
1330
|
+
this.plugins.filter(us).map((s) => s.getIdentities(this))
|
|
1335
1331
|
)).flat());
|
|
1336
|
-
|
|
1337
|
-
|
|
1332
|
+
w(this, "emitEvent", (e, ...s) => this.emitter.emit(e, ...s));
|
|
1333
|
+
w(this, "getPluginSidebar", async (e) => (await Promise.all(
|
|
1338
1334
|
this.navigationPlugins.map(
|
|
1339
1335
|
(n) => {
|
|
1340
1336
|
var a;
|
|
1341
|
-
return (a = n.getSidebar) == null ? void 0 : a.call(n,
|
|
1337
|
+
return (a = n.getSidebar) == null ? void 0 : a.call(n, ne(e), this);
|
|
1342
1338
|
}
|
|
1343
1339
|
)
|
|
1344
1340
|
)).flatMap((n) => n ?? []));
|
|
1345
|
-
|
|
1341
|
+
w(this, "signRequest", async (e) => {
|
|
1346
1342
|
if (!this.authentication)
|
|
1347
1343
|
throw new Error("No authentication provider configured");
|
|
1348
1344
|
const s = await this.authentication.getAccessToken();
|
|
1349
1345
|
return e.headers.set("Authorization", `Bearer ${s}`), e;
|
|
1350
1346
|
});
|
|
1351
|
-
this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(
|
|
1352
|
-
|
|
1353
|
-
this.emitter.on(
|
|
1347
|
+
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) && Bt(n.events).forEach(([a, i]) => {
|
|
1349
|
+
this.emitter.on(a, i);
|
|
1354
1350
|
});
|
|
1355
1351
|
});
|
|
1356
1352
|
}
|
|
@@ -1358,90 +1354,92 @@ class mr {
|
|
|
1358
1354
|
return this.emitter.on(e, s);
|
|
1359
1355
|
}
|
|
1360
1356
|
}
|
|
1361
|
-
function
|
|
1362
|
-
return /* @__PURE__ */ r.jsx(
|
|
1357
|
+
function mr({ error: t, resetErrorBoundary: e }) {
|
|
1358
|
+
return /* @__PURE__ */ r.jsx(Ye, { error: t });
|
|
1363
1359
|
}
|
|
1364
1360
|
const J = globalThis;
|
|
1365
1361
|
(!J.requestIdleCallback || !J.cancelIdleCallback) && (J.requestIdleCallback = (t) => setTimeout(t, 1), J.cancelIdleCallback = clearTimeout);
|
|
1366
|
-
const
|
|
1367
|
-
Header:
|
|
1368
|
-
},
|
|
1369
|
-
const t =
|
|
1370
|
-
return
|
|
1362
|
+
const lt = {
|
|
1363
|
+
Header: nt
|
|
1364
|
+
}, gr = he(lt), pr = gr.Provider, xr = () => {
|
|
1365
|
+
const t = le(), e = O(), s = fe(void 0);
|
|
1366
|
+
return U(() => {
|
|
1371
1367
|
e.emitEvent("location", {
|
|
1372
1368
|
from: s.current,
|
|
1373
1369
|
to: t
|
|
1374
1370
|
}), s.current = t;
|
|
1375
1371
|
}, [e, t]), null;
|
|
1376
|
-
},
|
|
1372
|
+
}, yr = ({
|
|
1377
1373
|
children: t,
|
|
1378
1374
|
context: e
|
|
1379
|
-
}) => (
|
|
1375
|
+
}) => (Pt({
|
|
1380
1376
|
queryFn: async () => (await e.initialize(), !0),
|
|
1381
1377
|
queryKey: ["zudoku-initialize"]
|
|
1382
|
-
}), /* @__PURE__ */ r.jsx(
|
|
1378
|
+
}), /* @__PURE__ */ r.jsx(Ct.Provider, { value: e, children: t })), ct = Ve(
|
|
1383
1379
|
({ children: t, ...e }) => {
|
|
1384
|
-
var
|
|
1385
|
-
const s =
|
|
1386
|
-
() => ({ ...
|
|
1380
|
+
var h, p;
|
|
1381
|
+
const s = te(
|
|
1382
|
+
() => ({ ...lt, ...e.overrides }),
|
|
1387
1383
|
[e.overrides]
|
|
1388
|
-
), n =
|
|
1389
|
-
var
|
|
1384
|
+
), n = te(() => {
|
|
1385
|
+
var m;
|
|
1390
1386
|
return {
|
|
1391
|
-
...(e.plugins ?? []).filter(
|
|
1392
|
-
(
|
|
1387
|
+
...(e.plugins ?? []).filter(ds).flatMap(
|
|
1388
|
+
(b) => b.getMdxComponents ? [b.getMdxComponents()] : []
|
|
1393
1389
|
).reduce(
|
|
1394
|
-
(
|
|
1390
|
+
(b, F) => ({ ...b, ...F }),
|
|
1395
1391
|
{}
|
|
1396
1392
|
),
|
|
1397
|
-
...
|
|
1398
|
-
...(
|
|
1393
|
+
...ss,
|
|
1394
|
+
...(m = e.mdx) == null ? void 0 : m.components
|
|
1399
1395
|
};
|
|
1400
|
-
}, [(
|
|
1401
|
-
() =>
|
|
1402
|
-
[a,
|
|
1403
|
-
), d =
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
}, [
|
|
1407
|
-
const [
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1396
|
+
}, [(h = e.mdx) == null ? void 0 : h.components, e.plugins]), { stagger: a } = _t(ie), [i, o] = $(!1), u = te(
|
|
1397
|
+
() => i ? { stagger: !0 } : { stagger: a },
|
|
1398
|
+
[a, i]
|
|
1399
|
+
), d = ue(), c = $e();
|
|
1400
|
+
U(() => {
|
|
1401
|
+
i || o(!0);
|
|
1402
|
+
}, [i, d.location]);
|
|
1403
|
+
const [x] = $(
|
|
1404
|
+
() => new fr(e, c)
|
|
1405
|
+
), f = (p = e.plugins) == null ? void 0 : p.flatMap((y) => {
|
|
1406
|
+
var m;
|
|
1407
|
+
return hs(y) ? ((m = y.getHead) == null ? void 0 : m.call(y)) ?? [] : [];
|
|
1408
|
+
}).map((y, m) => /* @__PURE__ */ r.jsx(oe, { children: y }, m));
|
|
1411
1409
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1412
|
-
|
|
1413
|
-
/* @__PURE__ */ r.jsx(
|
|
1414
|
-
/* @__PURE__ */ r.jsx(
|
|
1415
|
-
/* @__PURE__ */ r.jsx(
|
|
1410
|
+
f,
|
|
1411
|
+
/* @__PURE__ */ r.jsx(ie.Provider, { value: u, children: /* @__PURE__ */ r.jsxs(yr, { context: x, children: [
|
|
1412
|
+
/* @__PURE__ */ r.jsx(xr, {}),
|
|
1413
|
+
/* @__PURE__ */ r.jsx(mt, { components: n, children: /* @__PURE__ */ r.jsx(pt, { 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, {}) }) }) }) }) })
|
|
1416
1414
|
] }) })
|
|
1417
1415
|
] });
|
|
1418
1416
|
}
|
|
1419
1417
|
);
|
|
1420
|
-
|
|
1421
|
-
const
|
|
1422
|
-
|
|
1423
|
-
const
|
|
1418
|
+
ct.displayName = "ZudokoInner";
|
|
1419
|
+
const ut = (t) => /* @__PURE__ */ r.jsx(ur, { FallbackComponent: mr, children: /* @__PURE__ */ r.jsx(ct, { ...t }) });
|
|
1420
|
+
ut.displayName = "Zudoku";
|
|
1421
|
+
const Zr = gt, Yr = ar, Xr = Kt, Vr = zs, _r = Ls, Gr = Ks, Wr = Fs, Jr = oe, en = O, tn = K, sn = Nt, rn = kt, nn = ut, an = lr, on = Ut, ln = ns, cn = _e, un = ge, dn = $t, hn = de, fn = He;
|
|
1424
1422
|
export {
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1423
|
+
_r as Bootstrap,
|
|
1424
|
+
Gr as BootstrapStatic,
|
|
1425
|
+
dn as Button,
|
|
1426
|
+
rn as CACHE_KEYS,
|
|
1427
|
+
on as Callout,
|
|
1428
|
+
un as ClientOnly,
|
|
1429
|
+
Jr as Head,
|
|
1430
|
+
Yr as Layout,
|
|
1431
|
+
hn as Link,
|
|
1432
|
+
ln as Markdown,
|
|
1433
|
+
Wr as RouteGuard,
|
|
1436
1434
|
Xr as RouterError,
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1435
|
+
Vr as ServerError,
|
|
1436
|
+
cn as Spinner,
|
|
1437
|
+
an as StatusPage,
|
|
1438
|
+
nn as Zudoku,
|
|
1439
|
+
tn as useAuth,
|
|
1440
|
+
sn as useCache,
|
|
1441
|
+
Zr as useMDXComponents,
|
|
1442
|
+
fn as useTheme,
|
|
1443
|
+
en as useZudoku
|
|
1446
1444
|
};
|
|
1447
1445
|
//# sourceMappingURL=zudoku.components.js.map
|