zudoku 0.34.4 → 0.35.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/config/config.d.ts +13 -8
- package/dist/config/validators/common.d.ts +977 -111
- package/dist/config/validators/common.js +26 -1
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +357 -42
- package/dist/lib/authentication/providers/clerk.d.ts +2 -2
- package/dist/lib/authentication/providers/supabase.d.ts +4 -0
- package/dist/lib/authentication/providers/supabase.js +112 -0
- package/dist/lib/authentication/providers/supabase.js.map +1 -0
- package/dist/lib/components/Header.js +3 -3
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/InlineCode.js +1 -1
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/Layout.js +4 -10
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.d.ts +2 -0
- package/dist/lib/components/Main.js +15 -0
- package/dist/lib/components/Main.js.map +1 -0
- package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
- package/dist/lib/components/context/ViewportAnchorContext.js +2 -4
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +2 -1
- package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
- package/dist/lib/components/navigation/Sidebar.js +2 -4
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +8 -6
- package/dist/lib/components/navigation/SidebarWrapper.js +1 -2
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/core/RouteGuard.js +2 -1
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +34 -0
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +2 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +9 -4
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +6 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js +2 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +1 -1
- package/dist/lib/plugins/openapi/index.js +8 -8
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +7 -10
- package/dist/lib/ui/Callout.d.ts +2 -1
- package/dist/lib/ui/Callout.js +3 -2
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/util/MdxComponents.d.ts +2 -1
- package/dist/vite/plugin-api.js +5 -9
- package/dist/vite/plugin-api.js.map +1 -1
- package/lib/{Callout-B_sEhkYd.js → Callout-B2vsR09t.js} +70 -52
- package/lib/{Callout-B_sEhkYd.js.map → Callout-B2vsR09t.js.map} +1 -1
- package/lib/Drawer-kDAfOq_2.js +1133 -0
- package/lib/Drawer-kDAfOq_2.js.map +1 -0
- package/lib/{Markdown-DZXjQjpH.js → Markdown-D1Y3cd9l.js} +4471 -3315
- package/lib/Markdown-D1Y3cd9l.js.map +1 -0
- package/lib/{MdxPage-52vRwa_7.js → MdxPage-CUL_SQzW.js} +9 -9
- package/lib/MdxPage-CUL_SQzW.js.map +1 -0
- package/lib/{OasProvider-CDyf845G.js → OasProvider-DEL8ulKm.js} +2 -2
- package/lib/{OasProvider-CDyf845G.js.map → OasProvider-DEL8ulKm.js.map} +1 -1
- package/lib/{OperationList-DdCWaqeE.js → OperationList-D6goKbzX.js} +179 -179
- package/lib/OperationList-D6goKbzX.js.map +1 -0
- package/lib/{SlotletProvider-TydSHROc.js → SlotletProvider-iDmNlxD5.js} +2 -2
- package/lib/{SlotletProvider-TydSHROc.js.map → SlotletProvider-iDmNlxD5.js.map} +1 -1
- package/lib/{createServer-DmusVVsi.js → createServer-BNBGpbLa.js} +1764 -1734
- package/lib/{createServer-DmusVVsi.js.map → createServer-BNBGpbLa.js.map} +1 -1
- package/lib/{index-BO-sA1cw.js → index-PKytqmuw.js} +348 -346
- package/lib/index-PKytqmuw.js.map +1 -0
- package/lib/prism-bash.min-HHIMdNJ_.js.map +1 -1
- package/lib/prism-csharp.min-bQAo2pmx.js.map +1 -1
- package/lib/prism-java.min-BpvsOuIa.js.map +1 -1
- package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -1
- package/lib/prism-json.min-B1GJqK1k.js.map +1 -1
- package/lib/prism-markdown.min-C0Qn0m-5.js.map +1 -1
- package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -1
- package/lib/prism-ruby.min-Dx9KO9ds.js.map +1 -1
- package/lib/prism-typescript.min-CD7H2IYQ.js.map +1 -1
- package/lib/ui/Callout.js +39 -21
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Drawer.js +14 -1129
- package/lib/ui/Drawer.js.map +1 -1
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.components.js +675 -621
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +1 -1
- package/package.json +11 -6
- package/src/app/main.css +5 -3
- package/src/lib/authentication/providers/clerk.tsx +2 -2
- package/src/lib/authentication/providers/supabase.tsx +151 -0
- package/src/lib/components/Header.tsx +10 -6
- package/src/lib/components/InlineCode.tsx +1 -1
- package/src/lib/components/Layout.tsx +5 -40
- package/src/lib/components/Main.tsx +47 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +3 -9
- package/src/lib/components/navigation/Sidebar.tsx +7 -9
- package/src/lib/components/navigation/SidebarWrapper.tsx +13 -15
- package/src/lib/core/RouteGuard.tsx +2 -1
- package/src/lib/oas/graphql/index.ts +35 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +2 -2
- package/src/lib/plugins/openapi/OperationList.tsx +3 -2
- package/src/lib/plugins/openapi/Sidecar.tsx +11 -4
- package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
- package/src/lib/plugins/openapi/graphql/gql.ts +3 -3
- package/src/lib/plugins/openapi/graphql/graphql.ts +8 -0
- package/src/lib/plugins/openapi/index.tsx +10 -11
- package/src/lib/plugins/openapi/interfaces.ts +11 -15
- package/src/lib/ui/Callout.tsx +28 -10
- package/lib/Markdown-DZXjQjpH.js.map +0 -1
- package/lib/MdxPage-52vRwa_7.js.map +0 -1
- package/lib/OperationList-DdCWaqeE.js.map +0 -1
- package/lib/index-BO-sA1cw.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var dt = Object.defineProperty;
|
|
2
|
+
var ye = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var j = (t, e,
|
|
7
|
-
var l = (t, e,
|
|
8
|
-
var
|
|
5
|
+
var ht = (t, e, s) => e in t ? dt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
6
|
+
var j = (t, e, s) => ht(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
|
},
|
|
12
12
|
get _() {
|
|
13
13
|
return l(t, e, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { a as
|
|
16
|
+
import { a as ze, H as ce, M as ft, u as mt } from "./index.esm-CltAN0Tf.js";
|
|
17
17
|
import { z as He, J as gt } from "./index-DwT-v3zK.js";
|
|
18
|
-
import { a as
|
|
19
|
-
import { e as
|
|
20
|
-
import { j as
|
|
21
|
-
import { S as
|
|
22
|
-
import { D as
|
|
23
|
-
import { Z as
|
|
18
|
+
import { a as pt, u as te, m as xt, O as ue, R as yt, S as vt, g as de, h as bt, L as he } from "./chunk-HA7DTUK3-ZGg2W6yV.js";
|
|
19
|
+
import { e as K, a as O, f as Le, t as jt, j as ie, b as wt, Z as Pt, g as Ct, C as Nt } from "./hook-CfCFKZ-2.js";
|
|
20
|
+
import { j as r } from "./jsx-runtime-CYK1ROHF.js";
|
|
21
|
+
import { S as Be, i as Ke, j as kt, n as P, m as be, l as je, o as A, p as Dt, q as St, r as Et, t as Ot, v as we, w as Pe, x as Mt, h as Ce, y as Ne, e as At, u as Tt, d as qt, z as $e } from "./useQuery-CQUwWR9i.js";
|
|
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 Ue } from "./invariant-Caa8-XvF.js";
|
|
24
24
|
import { u as Ht, o as Lt } from "./objectEntries-BS7aAgOm.js";
|
|
25
|
-
import { E as
|
|
26
|
-
import { Button as
|
|
27
|
-
import { Callout as
|
|
28
|
-
import { M as
|
|
29
|
-
import * as
|
|
30
|
-
import
|
|
31
|
-
import * as
|
|
25
|
+
import { E as Ze, S as k, a as Bt, R as Kt } from "./SlotletProvider-iDmNlxD5.js";
|
|
26
|
+
import { Button as $t } from "./ui/Button.js";
|
|
27
|
+
import { Callout as Ut } from "./ui/Callout.js";
|
|
28
|
+
import { M as Zt } from "./mutation-B81DztCT.js";
|
|
29
|
+
import * as q from "react";
|
|
30
|
+
import Yt, { createContext as fe, StrictMode as Ye, useRef as se, useEffect as F, useState as $, useCallback as Vt, Suspense as me, memo as Ve, Component as Xt, createElement as ke, useMemo as re, useContext as Gt } from "react";
|
|
31
|
+
import * as Wt from "react-dom";
|
|
32
32
|
import { C as ge } from "./ClientOnly-E7hGysn1.js";
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { c as
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import { a as
|
|
43
|
-
import { C as
|
|
44
|
-
var
|
|
33
|
+
import { s as _t, S as De, u as Jt, a as es, H as ts, P as ss, b as rs, V as ns, M as as } from "./Markdown-D1Y3cd9l.js";
|
|
34
|
+
import { B as oe, S as Xe } from "./Spinner-1KrEmx1V.js";
|
|
35
|
+
import { c as E } from "./cn-qaFjX9_3.js";
|
|
36
|
+
import { isSearchPlugin as is, isProfileMenuPlugin as os, isNavigationPlugin as ls, isEventConsumerPlugin as cs, needsInitialization as us, isApiIdentityPlugin as ds, isMdxProviderPlugin as hs, hasHead as fs } from "./zudoku.plugins.js";
|
|
37
|
+
import { DropdownMenu as ms, DropdownMenuTrigger as gs, DropdownMenuContent as ps, DropdownMenuLabel as xs, DropdownMenuSeparator as ne, DropdownMenuSub as ys, DropdownMenuSubTrigger as vs, DropdownMenuPortal as bs, DropdownMenuSubContent as js, DropdownMenuItem as ws } from "./ui/DropdownMenu.js";
|
|
38
|
+
import { j as Se } from "./joinUrl-10po2Jdj.js";
|
|
39
|
+
import { CircleXIcon as Ps, SearchIcon as Cs, SunIcon as Ns, MoonIcon as ks, MenuIcon as Ds, PanelLeftIcon as Ss } from "lucide-react";
|
|
40
|
+
import { VisuallyHidden as Ge } from "@radix-ui/react-visually-hidden";
|
|
41
|
+
import { D as Es, a as Os, b as We, c as _e, d as M } from "./Drawer-kDAfOq_2.js";
|
|
42
|
+
import { a as Ms } from "./index-CPNSgwSb.js";
|
|
43
|
+
import { C as As } from "./CategoryHeading-DpB47wvk.js";
|
|
44
|
+
var S, Qe, Ts = (Qe = class extends Be {
|
|
45
45
|
constructor(e = {}) {
|
|
46
46
|
super();
|
|
47
|
-
w(this,
|
|
48
|
-
this.config = e,
|
|
47
|
+
w(this, S);
|
|
48
|
+
this.config = e, v(this, S, /* @__PURE__ */ new Map());
|
|
49
49
|
}
|
|
50
|
-
build(e,
|
|
51
|
-
const a =
|
|
52
|
-
let
|
|
53
|
-
return
|
|
50
|
+
build(e, s, n) {
|
|
51
|
+
const a = s.queryKey, o = s.queryHash ?? Ke(a, s);
|
|
52
|
+
let i = this.get(o);
|
|
53
|
+
return i || (i = new kt({
|
|
54
54
|
client: e,
|
|
55
55
|
queryKey: a,
|
|
56
|
-
queryHash:
|
|
57
|
-
options: e.defaultQueryOptions(
|
|
56
|
+
queryHash: o,
|
|
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
|
-
l(this,
|
|
63
|
+
l(this, S).has(e.queryHash) || (l(this, S).set(e.queryHash, e), this.notify({
|
|
64
64
|
type: "added",
|
|
65
65
|
query: e
|
|
66
66
|
}));
|
|
67
67
|
}
|
|
68
68
|
remove(e) {
|
|
69
|
-
const
|
|
70
|
-
|
|
69
|
+
const s = l(this, S).get(e.queryHash);
|
|
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(() => {
|
|
@@ -77,25 +77,25 @@ var D, Ie, Or = (Ie = class extends ze {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
get(e) {
|
|
80
|
-
return l(this,
|
|
80
|
+
return l(this, S).get(e);
|
|
81
81
|
}
|
|
82
82
|
getAll() {
|
|
83
|
-
return [...l(this,
|
|
83
|
+
return [...l(this, S).values()];
|
|
84
84
|
}
|
|
85
85
|
find(e) {
|
|
86
|
-
const
|
|
86
|
+
const s = { exact: !0, ...e };
|
|
87
87
|
return this.getAll().find(
|
|
88
|
-
(n) =>
|
|
88
|
+
(n) => be(s, n)
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
91
|
findAll(e = {}) {
|
|
92
|
-
const
|
|
93
|
-
return Object.keys(e).length > 0 ?
|
|
92
|
+
const s = this.getAll();
|
|
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
|
-
this.listeners.forEach((
|
|
98
|
-
|
|
97
|
+
this.listeners.forEach((s) => {
|
|
98
|
+
s(e);
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
101
|
}
|
|
@@ -113,51 +113,51 @@ var D, Ie, Or = (Ie = class extends ze {
|
|
|
113
113
|
});
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
},
|
|
116
|
+
}, S = new WeakMap(), Qe), T, N, V, Re, qs = (Re = class extends Be {
|
|
117
117
|
constructor(e = {}) {
|
|
118
118
|
super();
|
|
119
|
-
w(this,
|
|
120
|
-
w(this,
|
|
121
|
-
w(this,
|
|
122
|
-
this.config = e,
|
|
119
|
+
w(this, T);
|
|
120
|
+
w(this, N);
|
|
121
|
+
w(this, V);
|
|
122
|
+
this.config = e, v(this, T, /* @__PURE__ */ new Set()), v(this, N, /* @__PURE__ */ new Map()), v(this, V, 0);
|
|
123
123
|
}
|
|
124
|
-
build(e,
|
|
125
|
-
const a = new
|
|
124
|
+
build(e, s, n) {
|
|
125
|
+
const a = new Zt({
|
|
126
126
|
mutationCache: this,
|
|
127
|
-
mutationId: ++
|
|
128
|
-
options: e.defaultMutationOptions(
|
|
127
|
+
mutationId: ++W(this, V)._,
|
|
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
|
|
136
|
-
if (typeof
|
|
137
|
-
const n = l(this,
|
|
138
|
-
n ? n.push(e) : l(this,
|
|
134
|
+
l(this, T).add(e);
|
|
135
|
+
const s = _(e);
|
|
136
|
+
if (typeof s == "string") {
|
|
137
|
+
const n = l(this, N).get(s);
|
|
138
|
+
n ? n.push(e) : l(this, N).set(s, [e]);
|
|
139
139
|
}
|
|
140
140
|
this.notify({ type: "added", mutation: e });
|
|
141
141
|
}
|
|
142
142
|
remove(e) {
|
|
143
|
-
if (l(this,
|
|
144
|
-
const
|
|
145
|
-
if (typeof
|
|
146
|
-
const n = l(this,
|
|
143
|
+
if (l(this, T).delete(e)) {
|
|
144
|
+
const s = _(e);
|
|
145
|
+
if (typeof s == "string") {
|
|
146
|
+
const n = l(this, N).get(s);
|
|
147
147
|
if (n)
|
|
148
148
|
if (n.length > 1) {
|
|
149
149
|
const a = n.indexOf(e);
|
|
150
150
|
a !== -1 && n.splice(a, 1);
|
|
151
|
-
} else n[0] === e && l(this,
|
|
151
|
+
} else n[0] === e && l(this, N).delete(s);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
this.notify({ type: "removed", mutation: e });
|
|
155
155
|
}
|
|
156
156
|
canRun(e) {
|
|
157
|
-
const
|
|
158
|
-
if (typeof
|
|
159
|
-
const n = l(this,
|
|
160
|
-
(
|
|
157
|
+
const s = _(e);
|
|
158
|
+
if (typeof s == "string") {
|
|
159
|
+
const n = l(this, N).get(s), a = n == null ? void 0 : n.find(
|
|
160
|
+
(o) => o.state.status === "pending"
|
|
161
161
|
);
|
|
162
162
|
return !a || a === e;
|
|
163
163
|
} else
|
|
@@ -165,109 +165,109 @@ var D, Ie, Or = (Ie = class extends ze {
|
|
|
165
165
|
}
|
|
166
166
|
runNext(e) {
|
|
167
167
|
var n;
|
|
168
|
-
const
|
|
169
|
-
if (typeof
|
|
170
|
-
const a = (n = l(this,
|
|
168
|
+
const s = _(e);
|
|
169
|
+
if (typeof s == "string") {
|
|
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
176
|
P.batch(() => {
|
|
177
|
-
l(this,
|
|
177
|
+
l(this, T).forEach((e) => {
|
|
178
178
|
this.notify({ type: "removed", mutation: e });
|
|
179
|
-
}), l(this,
|
|
179
|
+
}), l(this, T).clear(), l(this, N).clear();
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
182
|
getAll() {
|
|
183
|
-
return Array.from(l(this,
|
|
183
|
+
return Array.from(l(this, T));
|
|
184
184
|
}
|
|
185
185
|
find(e) {
|
|
186
|
-
const
|
|
186
|
+
const s = { exact: !0, ...e };
|
|
187
187
|
return this.getAll().find(
|
|
188
|
-
(n) =>
|
|
188
|
+
(n) => je(s, n)
|
|
189
189
|
);
|
|
190
190
|
}
|
|
191
191
|
findAll(e = {}) {
|
|
192
|
-
return this.getAll().filter((
|
|
192
|
+
return this.getAll().filter((s) => je(e, s));
|
|
193
193
|
}
|
|
194
194
|
notify(e) {
|
|
195
195
|
P.batch(() => {
|
|
196
|
-
this.listeners.forEach((
|
|
197
|
-
|
|
196
|
+
this.listeners.forEach((s) => {
|
|
197
|
+
s(e);
|
|
198
198
|
});
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
201
|
resumePausedMutations() {
|
|
202
|
-
const e = this.getAll().filter((
|
|
202
|
+
const e = this.getAll().filter((s) => s.state.isPaused);
|
|
203
203
|
return P.batch(
|
|
204
204
|
() => Promise.all(
|
|
205
|
-
e.map((
|
|
205
|
+
e.map((s) => s.continue().catch(A))
|
|
206
206
|
)
|
|
207
207
|
);
|
|
208
208
|
}
|
|
209
|
-
},
|
|
210
|
-
function
|
|
209
|
+
}, T = new WeakMap(), N = new WeakMap(), V = new WeakMap(), Re);
|
|
210
|
+
function _(t) {
|
|
211
211
|
var e;
|
|
212
212
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Ee(t) {
|
|
215
215
|
return {
|
|
216
|
-
onFetch: (e,
|
|
217
|
-
var
|
|
218
|
-
const n = e.options, a = (h = (
|
|
216
|
+
onFetch: (e, s) => {
|
|
217
|
+
var x, m, h, f, y;
|
|
218
|
+
const n = e.options, a = (h = (m = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : m.fetchMore) == null ? void 0 : h.direction, o = ((f = e.state.data) == null ? void 0 : f.pages) || [], i = ((y = e.state.data) == null ? void 0 : y.pageParams) || [];
|
|
219
219
|
let u = { pages: [], pageParams: [] }, d = 0;
|
|
220
220
|
const c = async () => {
|
|
221
|
-
let
|
|
221
|
+
let p = !1;
|
|
222
222
|
const C = (b) => {
|
|
223
223
|
Object.defineProperty(b, "signal", {
|
|
224
224
|
enumerable: !0,
|
|
225
|
-
get: () => (e.signal.aborted ?
|
|
226
|
-
|
|
225
|
+
get: () => (e.signal.aborted ? p = !0 : e.signal.addEventListener("abort", () => {
|
|
226
|
+
p = !0;
|
|
227
227
|
}), e.signal)
|
|
228
228
|
});
|
|
229
|
-
},
|
|
230
|
-
if (
|
|
229
|
+
}, X = Dt(e.options, e.fetchOptions), U = async (b, D, Z) => {
|
|
230
|
+
if (p)
|
|
231
231
|
return Promise.reject();
|
|
232
|
-
if (
|
|
232
|
+
if (D == null && b.pages.length)
|
|
233
233
|
return Promise.resolve(b);
|
|
234
|
-
const
|
|
234
|
+
const G = {
|
|
235
235
|
client: e.client,
|
|
236
236
|
queryKey: e.queryKey,
|
|
237
|
-
pageParam:
|
|
238
|
-
direction:
|
|
237
|
+
pageParam: D,
|
|
238
|
+
direction: Z ? "backward" : "forward",
|
|
239
239
|
meta: e.options.meta
|
|
240
240
|
};
|
|
241
|
-
C(
|
|
242
|
-
const
|
|
243
|
-
|
|
244
|
-
), { maxPages:
|
|
241
|
+
C(G);
|
|
242
|
+
const ut = await X(
|
|
243
|
+
G
|
|
244
|
+
), { maxPages: pe } = e.options, xe = Z ? St : Et;
|
|
245
245
|
return {
|
|
246
|
-
pages:
|
|
247
|
-
pageParams:
|
|
246
|
+
pages: xe(b.pages, ut, pe),
|
|
247
|
+
pageParams: xe(b.pageParams, D, pe)
|
|
248
248
|
};
|
|
249
249
|
};
|
|
250
|
-
if (a &&
|
|
251
|
-
const b = a === "backward",
|
|
252
|
-
pages:
|
|
253
|
-
pageParams:
|
|
254
|
-
},
|
|
255
|
-
u = await
|
|
250
|
+
if (a && o.length) {
|
|
251
|
+
const b = a === "backward", D = b ? Is : Oe, Z = {
|
|
252
|
+
pages: o,
|
|
253
|
+
pageParams: i
|
|
254
|
+
}, G = D(n, Z);
|
|
255
|
+
u = await U(Z, G, b);
|
|
256
256
|
} else {
|
|
257
|
-
const b = t ??
|
|
257
|
+
const b = t ?? o.length;
|
|
258
258
|
do {
|
|
259
|
-
const
|
|
260
|
-
if (d > 0 &&
|
|
259
|
+
const D = d === 0 ? i[0] ?? n.initialPageParam : Oe(n, u);
|
|
260
|
+
if (d > 0 && D == null)
|
|
261
261
|
break;
|
|
262
|
-
u = await
|
|
262
|
+
u = await U(u, D), d++;
|
|
263
263
|
} while (d < b);
|
|
264
264
|
}
|
|
265
265
|
return u;
|
|
266
266
|
};
|
|
267
267
|
e.options.persister ? e.fetchFn = () => {
|
|
268
|
-
var
|
|
269
|
-
return (C = (
|
|
270
|
-
|
|
268
|
+
var p, C;
|
|
269
|
+
return (C = (p = e.options).persister) == null ? void 0 : C.call(
|
|
270
|
+
p,
|
|
271
271
|
c,
|
|
272
272
|
{
|
|
273
273
|
client: e.client,
|
|
@@ -275,316 +275,315 @@ function De(t) {
|
|
|
275
275
|
meta: e.options.meta,
|
|
276
276
|
signal: e.signal
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
s
|
|
279
279
|
);
|
|
280
280
|
} : e.fetchFn = c;
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Oe(t, { pages: e, pageParams: s }) {
|
|
285
285
|
const n = e.length - 1;
|
|
286
286
|
return e.length > 0 ? t.getNextPageParam(
|
|
287
287
|
e[n],
|
|
288
288
|
e,
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
s[n],
|
|
290
|
+
s
|
|
291
291
|
) : void 0;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function Is(t, { pages: e, pageParams: s }) {
|
|
294
294
|
var n;
|
|
295
|
-
return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e,
|
|
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
|
|
297
|
+
var g, I, Q, z, H, R, L, B, Fe, Qs = (Fe = class {
|
|
298
298
|
constructor(t = {}) {
|
|
299
|
-
w(this,
|
|
300
|
-
w(this,
|
|
301
|
-
w(this,
|
|
302
|
-
w(this,
|
|
303
|
-
w(this, F);
|
|
304
|
-
w(this, T);
|
|
299
|
+
w(this, g);
|
|
300
|
+
w(this, I);
|
|
301
|
+
w(this, Q);
|
|
302
|
+
w(this, z);
|
|
305
303
|
w(this, H);
|
|
304
|
+
w(this, R);
|
|
306
305
|
w(this, L);
|
|
307
|
-
|
|
306
|
+
w(this, B);
|
|
307
|
+
v(this, g, t.queryCache || new Ts()), v(this, I, t.mutationCache || new qs()), 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
|
-
|
|
311
|
-
t && (await this.resumePausedMutations(), l(this,
|
|
312
|
-
})),
|
|
313
|
-
t && (await this.resumePausedMutations(), l(this,
|
|
310
|
+
W(this, R)._++, l(this, R) === 1 && (v(this, L, Ot.subscribe(async (t) => {
|
|
311
|
+
t && (await this.resumePausedMutations(), l(this, g).onFocus());
|
|
312
|
+
})), v(this, B, we.subscribe(async (t) => {
|
|
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, R)._--, l(this, R) === 0 && ((t = l(this, L)) == null || t.call(this), v(this, L, void 0), (e = l(this, B)) == null || e.call(this), v(this, B, void 0));
|
|
319
319
|
}
|
|
320
320
|
isFetching(t) {
|
|
321
|
-
return l(this,
|
|
321
|
+
return l(this, g).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
322
322
|
}
|
|
323
323
|
isMutating(t) {
|
|
324
|
-
return l(this,
|
|
324
|
+
return l(this, I).findAll({ ...t, status: "pending" }).length;
|
|
325
325
|
}
|
|
326
326
|
getQueryData(t) {
|
|
327
|
-
var
|
|
327
|
+
var s;
|
|
328
328
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
329
|
-
return (
|
|
329
|
+
return (s = l(this, g).get(e.queryHash)) == null ? void 0 : s.state.data;
|
|
330
330
|
}
|
|
331
331
|
ensureQueryData(t) {
|
|
332
|
-
const e = this.defaultQueryOptions(t),
|
|
333
|
-
return n === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale &&
|
|
332
|
+
const e = this.defaultQueryOptions(t), s = l(this, g).build(this, e), n = s.state.data;
|
|
333
|
+
return n === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && s.isStaleByTime(Pe(e.staleTime, s)) && this.prefetchQuery(e), Promise.resolve(n));
|
|
334
334
|
}
|
|
335
335
|
getQueriesData(t) {
|
|
336
|
-
return l(this,
|
|
337
|
-
const n =
|
|
336
|
+
return l(this, g).findAll(t).map(({ queryKey: e, state: s }) => {
|
|
337
|
+
const n = s.data;
|
|
338
338
|
return [e, n];
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
|
-
setQueryData(t, e,
|
|
342
|
-
const n = this.defaultQueryOptions({ queryKey: t }), a = l(this,
|
|
341
|
+
setQueryData(t, e, s) {
|
|
342
|
+
const n = this.defaultQueryOptions({ queryKey: t }), a = l(this, g).get(
|
|
343
343
|
n.queryHash
|
|
344
|
-
),
|
|
345
|
-
if (
|
|
346
|
-
return l(this,
|
|
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
|
-
setQueriesData(t, e,
|
|
348
|
+
setQueriesData(t, e, s) {
|
|
349
349
|
return P.batch(
|
|
350
|
-
() => l(this,
|
|
350
|
+
() => l(this, g).findAll(t).map(({ queryKey: n }) => [
|
|
351
351
|
n,
|
|
352
|
-
this.setQueryData(n, e,
|
|
352
|
+
this.setQueryData(n, e, s)
|
|
353
353
|
])
|
|
354
354
|
);
|
|
355
355
|
}
|
|
356
356
|
getQueryState(t) {
|
|
357
|
-
var
|
|
357
|
+
var s;
|
|
358
358
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
359
|
-
return (
|
|
359
|
+
return (s = l(this, g).get(
|
|
360
360
|
e.queryHash
|
|
361
|
-
)) == null ? void 0 :
|
|
361
|
+
)) == null ? void 0 : s.state;
|
|
362
362
|
}
|
|
363
363
|
removeQueries(t) {
|
|
364
|
-
const e = l(this,
|
|
364
|
+
const e = l(this, g);
|
|
365
365
|
P.batch(() => {
|
|
366
|
-
e.findAll(t).forEach((
|
|
367
|
-
e.remove(
|
|
366
|
+
e.findAll(t).forEach((s) => {
|
|
367
|
+
e.remove(s);
|
|
368
368
|
});
|
|
369
369
|
});
|
|
370
370
|
}
|
|
371
371
|
resetQueries(t, e) {
|
|
372
|
-
const
|
|
372
|
+
const s = l(this, g), n = {
|
|
373
373
|
type: "active",
|
|
374
374
|
...t
|
|
375
375
|
};
|
|
376
|
-
return P.batch(() => (
|
|
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
|
|
382
|
-
() => l(this,
|
|
381
|
+
const s = { revert: !0, ...e }, n = P.batch(
|
|
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(A).catch(A);
|
|
385
385
|
}
|
|
386
386
|
invalidateQueries(t, e = {}) {
|
|
387
387
|
return P.batch(() => {
|
|
388
|
-
if (l(this,
|
|
388
|
+
if (l(this, g).findAll(t).forEach((n) => {
|
|
389
389
|
n.invalidate();
|
|
390
390
|
}), (t == null ? void 0 : t.refetchType) === "none")
|
|
391
391
|
return Promise.resolve();
|
|
392
|
-
const
|
|
392
|
+
const s = {
|
|
393
393
|
...t,
|
|
394
394
|
type: (t == null ? void 0 : t.refetchType) ?? (t == null ? void 0 : t.type) ?? "active"
|
|
395
395
|
};
|
|
396
|
-
return this.refetchQueries(
|
|
396
|
+
return this.refetchQueries(s, e);
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
399
|
refetchQueries(t, e = {}) {
|
|
400
|
-
const
|
|
400
|
+
const s = {
|
|
401
401
|
...e,
|
|
402
402
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
403
403
|
}, n = P.batch(
|
|
404
|
-
() => l(this,
|
|
405
|
-
let
|
|
406
|
-
return
|
|
404
|
+
() => l(this, g).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
|
|
405
|
+
let o = a.fetch(void 0, s);
|
|
406
|
+
return s.throwOnError || (o = o.catch(A)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
407
407
|
})
|
|
408
408
|
);
|
|
409
|
-
return Promise.all(n).then(
|
|
409
|
+
return Promise.all(n).then(A);
|
|
410
410
|
}
|
|
411
411
|
fetchQuery(t) {
|
|
412
412
|
const e = this.defaultQueryOptions(t);
|
|
413
413
|
e.retry === void 0 && (e.retry = !1);
|
|
414
|
-
const
|
|
415
|
-
return
|
|
416
|
-
|
|
417
|
-
) ?
|
|
414
|
+
const s = l(this, g).build(this, e);
|
|
415
|
+
return s.isStaleByTime(
|
|
416
|
+
Pe(e.staleTime, s)
|
|
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(A).catch(A);
|
|
421
421
|
}
|
|
422
422
|
fetchInfiniteQuery(t) {
|
|
423
|
-
return t.behavior =
|
|
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(A).catch(A);
|
|
427
427
|
}
|
|
428
428
|
ensureInfiniteQueryData(t) {
|
|
429
|
-
return t.behavior =
|
|
429
|
+
return t.behavior = Ee(t.pages), this.ensureQueryData(t);
|
|
430
430
|
}
|
|
431
431
|
resumePausedMutations() {
|
|
432
|
-
return
|
|
432
|
+
return we.isOnline() ? l(this, I).resumePausedMutations() : Promise.resolve();
|
|
433
433
|
}
|
|
434
434
|
getQueryCache() {
|
|
435
|
-
return l(this,
|
|
435
|
+
return l(this, g);
|
|
436
436
|
}
|
|
437
437
|
getMutationCache() {
|
|
438
|
-
return l(this,
|
|
438
|
+
return l(this, I);
|
|
439
439
|
}
|
|
440
440
|
getDefaultOptions() {
|
|
441
|
-
return l(this,
|
|
441
|
+
return l(this, Q);
|
|
442
442
|
}
|
|
443
443
|
setDefaultOptions(t) {
|
|
444
|
-
|
|
444
|
+
v(this, Q, t);
|
|
445
445
|
}
|
|
446
446
|
setQueryDefaults(t, e) {
|
|
447
|
-
l(this,
|
|
447
|
+
l(this, z).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, z).values()], s = {};
|
|
454
454
|
return e.forEach((n) => {
|
|
455
|
-
|
|
456
|
-
}),
|
|
455
|
+
Ne(t, n.queryKey) && Object.assign(s, n.defaultOptions);
|
|
456
|
+
}), s;
|
|
457
457
|
}
|
|
458
458
|
setMutationDefaults(t, e) {
|
|
459
|
-
l(this,
|
|
459
|
+
l(this, H).set(Ce(t), {
|
|
460
460
|
mutationKey: t,
|
|
461
461
|
defaultOptions: e
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
464
|
getMutationDefaults(t) {
|
|
465
|
-
const e = [...l(this,
|
|
466
|
-
let
|
|
465
|
+
const e = [...l(this, H).values()];
|
|
466
|
+
let s = {};
|
|
467
467
|
return e.forEach((n) => {
|
|
468
|
-
|
|
469
|
-
}),
|
|
468
|
+
Ne(t, n.mutationKey) && (s = { ...s, ...n.defaultOptions });
|
|
469
|
+
}), s;
|
|
470
470
|
}
|
|
471
471
|
defaultQueryOptions(t) {
|
|
472
472
|
if (t._defaulted)
|
|
473
473
|
return t;
|
|
474
474
|
const e = {
|
|
475
|
-
...l(this,
|
|
475
|
+
...l(this, Q).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 = Ke(
|
|
481
481
|
e.queryKey,
|
|
482
482
|
e
|
|
483
|
-
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn ===
|
|
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, Q).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,
|
|
494
|
+
l(this, g).clear(), l(this, I).clear();
|
|
495
495
|
}
|
|
496
|
-
},
|
|
497
|
-
function
|
|
496
|
+
}, g = new WeakMap(), I = new WeakMap(), Q = new WeakMap(), z = new WeakMap(), H = new WeakMap(), R = new WeakMap(), L = new WeakMap(), B = new WeakMap(), Fe);
|
|
497
|
+
function Rs(t) {
|
|
498
498
|
return t;
|
|
499
499
|
}
|
|
500
|
-
function Me(t, e,
|
|
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
|
-
|
|
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) ?? Rs, i = e.mutations || [], u = e.queries || [];
|
|
505
|
+
i.forEach(({ state: x, ...m }) => {
|
|
506
506
|
var h, f;
|
|
507
507
|
n.build(
|
|
508
508
|
t,
|
|
509
509
|
{
|
|
510
510
|
...(h = t.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
|
|
511
|
-
...(f =
|
|
512
|
-
...
|
|
511
|
+
...(f = s == null ? void 0 : s.defaultOptions) == null ? void 0 : f.mutations,
|
|
512
|
+
...m
|
|
513
513
|
},
|
|
514
|
-
|
|
514
|
+
x
|
|
515
515
|
);
|
|
516
|
-
}), u.forEach(({ queryKey:
|
|
517
|
-
var
|
|
518
|
-
let
|
|
519
|
-
const C =
|
|
520
|
-
if (
|
|
521
|
-
if (
|
|
522
|
-
const { fetchStatus: b, ...
|
|
523
|
-
|
|
524
|
-
...
|
|
516
|
+
}), u.forEach(({ queryKey: x, state: m, queryHash: h, meta: f, promise: y }) => {
|
|
517
|
+
var X, U;
|
|
518
|
+
let p = a.get(h);
|
|
519
|
+
const C = m.data === void 0 ? m.data : o(m.data);
|
|
520
|
+
if (p) {
|
|
521
|
+
if (p.state.dataUpdatedAt < m.dataUpdatedAt) {
|
|
522
|
+
const { fetchStatus: b, ...D } = m;
|
|
523
|
+
p.setState({
|
|
524
|
+
...D,
|
|
525
525
|
data: C
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
528
|
} else
|
|
529
|
-
|
|
529
|
+
p = a.build(
|
|
530
530
|
t,
|
|
531
531
|
{
|
|
532
|
-
...(
|
|
533
|
-
...(
|
|
534
|
-
queryKey:
|
|
532
|
+
...(X = t.getDefaultOptions().hydrate) == null ? void 0 : X.queries,
|
|
533
|
+
...(U = s == null ? void 0 : s.defaultOptions) == null ? void 0 : U.queries,
|
|
534
|
+
queryKey: x,
|
|
535
535
|
queryHash: h,
|
|
536
536
|
meta: f
|
|
537
537
|
},
|
|
538
538
|
// Reset fetch status to idle to avoid
|
|
539
539
|
// query being stuck in fetching state upon hydration
|
|
540
540
|
{
|
|
541
|
-
...
|
|
541
|
+
...m,
|
|
542
542
|
data: C,
|
|
543
543
|
fetchStatus: "idle"
|
|
544
544
|
}
|
|
545
545
|
);
|
|
546
|
-
if (
|
|
547
|
-
const b = Promise.resolve(
|
|
548
|
-
|
|
546
|
+
if (y) {
|
|
547
|
+
const b = Promise.resolve(y).then(o);
|
|
548
|
+
p.fetch(void 0, { initialPromise: b });
|
|
549
549
|
}
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
var
|
|
552
|
+
var Ae = (t, e) => typeof t == "object" && t !== null && e in t, Fs = ({
|
|
553
553
|
children: t,
|
|
554
554
|
options: e = {},
|
|
555
|
-
state:
|
|
555
|
+
state: s,
|
|
556
556
|
queryClient: n
|
|
557
557
|
}) => {
|
|
558
|
-
const a =
|
|
559
|
-
return u.current = e,
|
|
560
|
-
if (
|
|
561
|
-
if (typeof
|
|
558
|
+
const a = Tt(n), [o, i] = q.useState(), u = q.useRef(e);
|
|
559
|
+
return u.current = e, q.useMemo(() => {
|
|
560
|
+
if (s) {
|
|
561
|
+
if (typeof s != "object")
|
|
562
562
|
return;
|
|
563
|
-
const d = a.getQueryCache(), c =
|
|
563
|
+
const d = a.getQueryCache(), c = s.queries || [], x = [], m = [];
|
|
564
564
|
for (const h of c) {
|
|
565
565
|
const f = d.get(h.queryHash);
|
|
566
566
|
if (!f)
|
|
567
|
-
|
|
567
|
+
x.push(h);
|
|
568
568
|
else {
|
|
569
|
-
const
|
|
570
|
-
|
|
569
|
+
const y = h.state.dataUpdatedAt > f.state.dataUpdatedAt || // RSC special serialized then-able chunks
|
|
570
|
+
Ae(h.promise, "status") && Ae(f.promise, "status") && h.promise.status !== f.promise.status, p = o == null ? void 0 : o.find(
|
|
571
571
|
(C) => C.queryHash === h.queryHash
|
|
572
572
|
);
|
|
573
|
-
|
|
573
|
+
y && (!p || h.state.dataUpdatedAt > p.state.dataUpdatedAt) && m.push(h);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
|
|
577
|
-
(h) => h ? [...h, ...
|
|
576
|
+
x.length > 0 && Me(a, { queries: x }, u.current), m.length > 0 && i(
|
|
577
|
+
(h) => h ? [...h, ...m] : m
|
|
578
578
|
);
|
|
579
579
|
}
|
|
580
|
-
}, [a,
|
|
581
|
-
|
|
582
|
-
}, [a,
|
|
580
|
+
}, [a, o, s]), q.useEffect(() => {
|
|
581
|
+
o && (Me(a, { queries: o }, u.current), i(void 0));
|
|
582
|
+
}, [a, o]), t;
|
|
583
583
|
};
|
|
584
|
-
const
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
(u) => pt({ path: u, end: !0 }, n.pathname)
|
|
584
|
+
const zs = () => {
|
|
585
|
+
const t = K(), e = O(), s = pt(), n = te(), a = Ht(n.pathname), { protectedRoutes: o = [] } = e.options, i = o.some(
|
|
586
|
+
(u) => xt({ path: u, end: !0 }, n.pathname)
|
|
588
587
|
);
|
|
589
588
|
if (qt({
|
|
590
589
|
queryKey: ["login-redirect"],
|
|
@@ -596,28 +595,28 @@ const Rr = () => {
|
|
|
596
595
|
},
|
|
597
596
|
enabled: typeof window < "u" && i && !t.isPending && !t.isAuthenticated
|
|
598
597
|
}), i && !t.isAuthenticated)
|
|
599
|
-
return /* @__PURE__ */
|
|
600
|
-
|
|
598
|
+
return /* @__PURE__ */ r.jsx(
|
|
599
|
+
It,
|
|
601
600
|
{
|
|
602
601
|
open: !0,
|
|
603
602
|
onOpenChange: (u) => {
|
|
604
|
-
u ||
|
|
603
|
+
u || s(-1);
|
|
605
604
|
},
|
|
606
|
-
children: /* @__PURE__ */
|
|
607
|
-
/* @__PURE__ */
|
|
608
|
-
/* @__PURE__ */
|
|
605
|
+
children: /* @__PURE__ */ r.jsxs(Qt, { children: [
|
|
606
|
+
/* @__PURE__ */ r.jsx(Rt, { children: /* @__PURE__ */ r.jsx(Ft, { children: "Logging you in..." }) }),
|
|
607
|
+
/* @__PURE__ */ r.jsx(zt, { children: "Please wait while we log you in." })
|
|
609
608
|
] })
|
|
610
609
|
}
|
|
611
610
|
);
|
|
612
611
|
if (i && !t.isAuthEnabled)
|
|
613
|
-
throw new
|
|
612
|
+
throw new Ue("Authentication is not enabled", {
|
|
614
613
|
title: "Authentication is not enabled",
|
|
615
614
|
developerHint: "To use protectedRoutes you need authentication to be enabled"
|
|
616
615
|
});
|
|
617
|
-
return /* @__PURE__ */
|
|
616
|
+
return /* @__PURE__ */ r.jsx(ue, {});
|
|
618
617
|
};
|
|
619
|
-
function
|
|
620
|
-
return /* @__PURE__ */
|
|
618
|
+
function Hs({ error: t }) {
|
|
619
|
+
return /* @__PURE__ */ r.jsx(Ze, { error: t });
|
|
621
620
|
}
|
|
622
621
|
/**
|
|
623
622
|
* react-router v7.2.0
|
|
@@ -629,79 +628,79 @@ function Fr({ error: t }) {
|
|
|
629
628
|
*
|
|
630
629
|
* @license MIT
|
|
631
630
|
*/
|
|
632
|
-
function
|
|
633
|
-
return /* @__PURE__ */
|
|
631
|
+
function Ls(t) {
|
|
632
|
+
return /* @__PURE__ */ q.createElement(yt, { flushSync: Wt.flushSync, ...t });
|
|
634
633
|
}
|
|
635
|
-
const
|
|
634
|
+
const le = fe({ stagger: !1 }), Bs = new Qs({
|
|
636
635
|
defaultOptions: {
|
|
637
636
|
queries: {
|
|
638
637
|
staleTime: 1e3 * 60 * 5
|
|
639
638
|
}
|
|
640
639
|
}
|
|
641
|
-
}),
|
|
640
|
+
}), Ks = ({
|
|
642
641
|
router: t,
|
|
643
642
|
hydrate: e = !1
|
|
644
|
-
}) => /* @__PURE__ */
|
|
643
|
+
}) => /* @__PURE__ */ r.jsx(Ye, { children: /* @__PURE__ */ r.jsx($e, { client: Bs, children: /* @__PURE__ */ r.jsx(Fs, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ r.jsx(ze, { children: /* @__PURE__ */ r.jsx(le.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ r.jsx(Ls, { router: t }) }) }) }) }) }), $s = ({
|
|
645
644
|
router: t,
|
|
646
645
|
context: e,
|
|
647
|
-
queryClient:
|
|
646
|
+
queryClient: s,
|
|
648
647
|
helmetContext: n
|
|
649
|
-
}) => /* @__PURE__ */
|
|
650
|
-
var
|
|
651
|
-
function
|
|
652
|
-
return
|
|
653
|
-
(function(
|
|
654
|
-
n(e,
|
|
655
|
-
})(
|
|
648
|
+
}) => /* @__PURE__ */ r.jsx(Ye, { children: /* @__PURE__ */ r.jsx($e, { client: s, children: /* @__PURE__ */ r.jsx(ze, { context: n, children: /* @__PURE__ */ r.jsx(vt, { router: t, context: e }) }) }) });
|
|
649
|
+
var Y = { exports: {} }, Us = Y.exports, Te;
|
|
650
|
+
function Zs() {
|
|
651
|
+
return Te || (Te = 1, function(t, e) {
|
|
652
|
+
(function(s, n) {
|
|
653
|
+
n(e, Yt);
|
|
654
|
+
})(Us, function(s, n) {
|
|
656
655
|
const a = {
|
|
657
656
|
delay: 500,
|
|
658
657
|
minDuration: 200,
|
|
659
658
|
ssr: !0
|
|
660
659
|
};
|
|
661
|
-
function
|
|
660
|
+
function o() {
|
|
662
661
|
const [u, d] = n.useState(!0);
|
|
663
662
|
return n.useEffect(() => {
|
|
664
663
|
d(!1);
|
|
665
664
|
}, []), u;
|
|
666
665
|
}
|
|
667
|
-
function
|
|
666
|
+
function i(u, d) {
|
|
668
667
|
d = Object.assign({}, a, d);
|
|
669
|
-
const c =
|
|
668
|
+
const c = o() && d.ssr, x = c && u ? "DISPLAY" : "IDLE", [m, h] = n.useState(x), f = n.useRef(null);
|
|
670
669
|
return n.useEffect(() => {
|
|
671
|
-
if (u && (
|
|
670
|
+
if (u && (m === "IDLE" || c)) {
|
|
672
671
|
clearTimeout(f.current);
|
|
673
|
-
const
|
|
672
|
+
const y = c ? 0 : d.delay;
|
|
674
673
|
f.current = setTimeout(() => {
|
|
675
674
|
if (!u)
|
|
676
675
|
return h("IDLE");
|
|
677
676
|
f.current = setTimeout(() => {
|
|
678
677
|
h("EXPIRE");
|
|
679
678
|
}, d.minDuration), h("DISPLAY");
|
|
680
|
-
},
|
|
679
|
+
}, y), c || h("DELAY");
|
|
681
680
|
}
|
|
682
|
-
!u &&
|
|
683
|
-
}, [u,
|
|
681
|
+
!u && m !== "DISPLAY" && (clearTimeout(f.current), h("IDLE"));
|
|
682
|
+
}, [u, m, d.delay, d.minDuration, c]), n.useEffect(() => () => clearTimeout(f.current), []), m === "DISPLAY" || m === "EXPIRE";
|
|
684
683
|
}
|
|
685
|
-
|
|
684
|
+
s.defaultOptions = a, s.useSpinDelay = i;
|
|
686
685
|
});
|
|
687
|
-
}(
|
|
686
|
+
}(Y, Y.exports)), Y.exports;
|
|
688
687
|
}
|
|
689
|
-
var
|
|
690
|
-
const
|
|
691
|
-
const t =
|
|
692
|
-
|
|
693
|
-
const
|
|
694
|
-
|
|
688
|
+
var Ys = Zs();
|
|
689
|
+
const Vs = () => {
|
|
690
|
+
const t = te(), e = se(t.pathname);
|
|
691
|
+
F(() => {
|
|
692
|
+
const s = e.current !== t.pathname, n = t.hash !== "";
|
|
693
|
+
s && !n && window.scrollTo(0, 0), e.current = t.pathname;
|
|
695
694
|
}, [t.pathname, t.hash]);
|
|
696
695
|
};
|
|
697
|
-
function
|
|
696
|
+
function Xs({
|
|
698
697
|
className: t,
|
|
699
698
|
...e
|
|
700
699
|
}) {
|
|
701
|
-
return /* @__PURE__ */
|
|
700
|
+
return /* @__PURE__ */ r.jsx(
|
|
702
701
|
"div",
|
|
703
702
|
{
|
|
704
|
-
className:
|
|
703
|
+
className: E("animate-pulse rounded-md bg-muted", t),
|
|
705
704
|
...e
|
|
706
705
|
}
|
|
707
706
|
);
|
|
@@ -712,71 +711,71 @@ const qe = {
|
|
|
712
711
|
tip: "bg-green-600",
|
|
713
712
|
caution: "bg-orange-500",
|
|
714
713
|
danger: "bg-rose-500"
|
|
715
|
-
},
|
|
716
|
-
const { page: t } =
|
|
714
|
+
}, Gs = () => {
|
|
715
|
+
const { page: t } = O(), [e, s] = $(!0);
|
|
717
716
|
if (!(t != null && t.banner) || !e)
|
|
718
|
-
return /* @__PURE__ */
|
|
717
|
+
return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
719
718
|
const n = t.banner.color && t.banner.color in qe ? qe[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
|
|
720
|
-
return /* @__PURE__ */
|
|
719
|
+
return /* @__PURE__ */ r.jsxs(
|
|
721
720
|
"div",
|
|
722
721
|
{
|
|
723
|
-
className:
|
|
722
|
+
className: E(
|
|
724
723
|
"relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
|
|
725
724
|
n
|
|
726
725
|
),
|
|
727
726
|
"data-pagefind-ignore": "all",
|
|
728
727
|
style: a,
|
|
729
728
|
children: [
|
|
730
|
-
/* @__PURE__ */
|
|
731
|
-
t.banner.dismissible && /* @__PURE__ */
|
|
729
|
+
/* @__PURE__ */ r.jsx("div", { className: "w-full", children: t.banner.message }),
|
|
730
|
+
t.banner.dismissible && /* @__PURE__ */ r.jsx(
|
|
732
731
|
"button",
|
|
733
732
|
{
|
|
734
733
|
type: "button",
|
|
735
734
|
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
736
|
-
onClick: () =>
|
|
737
|
-
children: /* @__PURE__ */
|
|
735
|
+
onClick: () => s(!1),
|
|
736
|
+
children: /* @__PURE__ */ r.jsx(Ps, { size: 16 })
|
|
738
737
|
}
|
|
739
738
|
)
|
|
740
739
|
]
|
|
741
740
|
}
|
|
742
741
|
);
|
|
743
|
-
},
|
|
744
|
-
const e =
|
|
745
|
-
|
|
746
|
-
if (
|
|
742
|
+
}, Je = ({ className: t }) => {
|
|
743
|
+
const e = O(), [s, n] = $(!1), a = Vt(() => n(!1), []);
|
|
744
|
+
F(() => {
|
|
745
|
+
if (s)
|
|
747
746
|
return;
|
|
748
|
-
function
|
|
747
|
+
function i(u) {
|
|
749
748
|
u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), n(!0));
|
|
750
749
|
}
|
|
751
|
-
return window.addEventListener("keydown",
|
|
752
|
-
window.removeEventListener("keydown",
|
|
750
|
+
return window.addEventListener("keydown", i), () => {
|
|
751
|
+
window.removeEventListener("keydown", i);
|
|
753
752
|
};
|
|
754
|
-
}, [
|
|
755
|
-
const
|
|
756
|
-
return
|
|
757
|
-
/* @__PURE__ */
|
|
753
|
+
}, [s, n]);
|
|
754
|
+
const o = e.plugins.find(is);
|
|
755
|
+
return o ? /* @__PURE__ */ r.jsxs("div", { className: t, children: [
|
|
756
|
+
/* @__PURE__ */ r.jsxs(
|
|
758
757
|
"button",
|
|
759
758
|
{
|
|
760
759
|
type: "button",
|
|
761
760
|
onClick: () => n(!0),
|
|
762
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",
|
|
763
762
|
children: [
|
|
764
|
-
/* @__PURE__ */
|
|
765
|
-
/* @__PURE__ */
|
|
763
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
764
|
+
/* @__PURE__ */ r.jsx(Cs, { size: 14 }),
|
|
766
765
|
"Search"
|
|
767
766
|
] }),
|
|
768
|
-
/* @__PURE__ */
|
|
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" })
|
|
769
768
|
]
|
|
770
769
|
}
|
|
771
770
|
),
|
|
772
|
-
/* @__PURE__ */
|
|
773
|
-
isOpen:
|
|
771
|
+
/* @__PURE__ */ r.jsx(me, { fallback: null, children: o.renderSearch({
|
|
772
|
+
isOpen: s,
|
|
774
773
|
onClose: a
|
|
775
774
|
}) })
|
|
776
775
|
] }) : null;
|
|
777
|
-
},
|
|
776
|
+
}, et = () => {
|
|
778
777
|
const { resolvedTheme: t, setTheme: e } = He();
|
|
779
|
-
return /* @__PURE__ */
|
|
778
|
+
return /* @__PURE__ */ r.jsx(ge, { fallback: /* @__PURE__ */ r.jsx(oe, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ r.jsxs(
|
|
780
779
|
"button",
|
|
781
780
|
{
|
|
782
781
|
type: "button",
|
|
@@ -784,86 +783,86 @@ const qe = {
|
|
|
784
783
|
onClick: () => e(t === "dark" ? "light" : "dark"),
|
|
785
784
|
"aria-label": t === "dark" ? "Switch to light mode" : "Switch to dark mode",
|
|
786
785
|
children: [
|
|
787
|
-
/* @__PURE__ */
|
|
786
|
+
/* @__PURE__ */ r.jsx(
|
|
788
787
|
"div",
|
|
789
788
|
{
|
|
790
|
-
className:
|
|
789
|
+
className: E(
|
|
791
790
|
"border border-transparent rounded-full p-0.5 [&>svg>circle]:transition-colors [&>svg>path]:transition-transform transition-all [&>svg>path]:duration-200 [&>svg>circle]:duration-500 [&>svg>circle]:fill-transparent",
|
|
792
791
|
t === "light" && "border-border bg-muted",
|
|
793
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] "
|
|
794
793
|
),
|
|
795
|
-
children: /* @__PURE__ */
|
|
794
|
+
children: /* @__PURE__ */ r.jsx(Ns, { size: 16 })
|
|
796
795
|
}
|
|
797
796
|
),
|
|
798
|
-
/* @__PURE__ */
|
|
797
|
+
/* @__PURE__ */ r.jsx(
|
|
799
798
|
"div",
|
|
800
799
|
{
|
|
801
|
-
className:
|
|
800
|
+
className: E(
|
|
802
801
|
"border border-transparent rounded-full p-0.5 transition-transform transform-gpu duration-500",
|
|
803
802
|
t === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
|
|
804
803
|
t === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
|
|
805
804
|
),
|
|
806
|
-
children: /* @__PURE__ */
|
|
805
|
+
children: /* @__PURE__ */ r.jsx(ks, { size: 16 })
|
|
807
806
|
}
|
|
808
807
|
)
|
|
809
808
|
]
|
|
810
809
|
}
|
|
811
810
|
) });
|
|
812
|
-
},
|
|
813
|
-
const { topNavigation: t } =
|
|
814
|
-
return t.length <= 1 ? /* @__PURE__ */
|
|
815
|
-
/* @__PURE__ */
|
|
816
|
-
/* @__PURE__ */
|
|
811
|
+
}, tt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", Ws = () => {
|
|
812
|
+
const { topNavigation: t } = O(), { isAuthenticated: e } = K();
|
|
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(tt(e)).map((s) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(st, { ...s }) }, s.id)) }) }),
|
|
815
|
+
/* @__PURE__ */ r.jsx(k, { name: "top-navigation-side" })
|
|
817
816
|
] }) });
|
|
818
817
|
}, st = ({
|
|
819
818
|
id: t,
|
|
820
819
|
label: e,
|
|
821
|
-
default:
|
|
820
|
+
default: s
|
|
822
821
|
}) => {
|
|
823
822
|
var c;
|
|
824
|
-
const { sidebars: n } =
|
|
825
|
-
if (
|
|
826
|
-
}) :
|
|
823
|
+
const { sidebars: n } = O(), a = n[t], o = Le(), i = !!de().location, u = ((c = o.topNavItem) == null ? void 0 : c.id) === t && !i, d = s ?? (a ? jt(a, (x) => {
|
|
824
|
+
if (x.type === "doc") return ie(x.id);
|
|
825
|
+
}) : ie(t));
|
|
827
826
|
if (!d)
|
|
828
|
-
throw new
|
|
827
|
+
throw new Ue("Page not found.", {
|
|
829
828
|
developerHint: `No links found in top navigation for '${t}'. Check that the sidebar isn't empty or that a default link is set.`
|
|
830
829
|
});
|
|
831
830
|
return (
|
|
832
831
|
// We don't use isActive here because it has to be inside the sidebar,
|
|
833
832
|
// the top nav id doesn't necessarily start with the sidebar id
|
|
834
|
-
/* @__PURE__ */
|
|
835
|
-
|
|
833
|
+
/* @__PURE__ */ r.jsx(
|
|
834
|
+
bt,
|
|
836
835
|
{
|
|
837
|
-
className: ({ isPending:
|
|
836
|
+
className: ({ isPending: x }) => Ms(
|
|
838
837
|
"block lg:py-3.5 font-medium -mb-px",
|
|
839
|
-
u ||
|
|
838
|
+
u || x ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
840
839
|
),
|
|
841
840
|
to: d,
|
|
842
841
|
children: e
|
|
843
842
|
}
|
|
844
843
|
)
|
|
845
844
|
);
|
|
846
|
-
},
|
|
847
|
-
const { topNavigation: t } =
|
|
848
|
-
return /* @__PURE__ */
|
|
849
|
-
|
|
845
|
+
}, _s = () => {
|
|
846
|
+
const { topNavigation: t } = O(), { isAuthenticated: e } = K(), [s, n] = $(!1);
|
|
847
|
+
return /* @__PURE__ */ r.jsxs(
|
|
848
|
+
Es,
|
|
850
849
|
{
|
|
851
850
|
direction: "right",
|
|
852
|
-
open:
|
|
851
|
+
open: s,
|
|
853
852
|
onOpenChange: (a) => n(a),
|
|
854
853
|
children: [
|
|
855
|
-
/* @__PURE__ */
|
|
856
|
-
/* @__PURE__ */
|
|
857
|
-
|
|
854
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(Os, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(Ds, { size: 22 }) }) }),
|
|
855
|
+
/* @__PURE__ */ r.jsx(
|
|
856
|
+
We,
|
|
858
857
|
{
|
|
859
858
|
className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
|
|
860
859
|
"aria-describedby": void 0,
|
|
861
|
-
children: /* @__PURE__ */
|
|
862
|
-
/* @__PURE__ */
|
|
863
|
-
/* @__PURE__ */
|
|
864
|
-
/* @__PURE__ */
|
|
865
|
-
/* @__PURE__ */
|
|
866
|
-
t.filter(
|
|
860
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
861
|
+
/* @__PURE__ */ r.jsx(Ge, { children: /* @__PURE__ */ r.jsx(_e, { children: "Navigation" }) }),
|
|
862
|
+
/* @__PURE__ */ r.jsx(Je, { className: "flex p-4" }),
|
|
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(et, {}) }),
|
|
865
|
+
t.filter(tt(e)).map((a) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ r.jsx(st, { ...a }) }) }, a.label))
|
|
867
866
|
] })
|
|
868
867
|
] })
|
|
869
868
|
}
|
|
@@ -871,138 +870,196 @@ const qe = {
|
|
|
871
870
|
]
|
|
872
871
|
}
|
|
873
872
|
);
|
|
874
|
-
},
|
|
875
|
-
/* @__PURE__ */
|
|
876
|
-
/* @__PURE__ */
|
|
873
|
+
}, ee = ({ item: t }) => t.children ? /* @__PURE__ */ r.jsxs(ys, { children: [
|
|
874
|
+
/* @__PURE__ */ r.jsx(vs, { children: t.label }),
|
|
875
|
+
/* @__PURE__ */ r.jsx(bs, { children: /* @__PURE__ */ r.jsx(js, { children: t.children.map((e, s) => (
|
|
877
876
|
// eslint-disable-next-line react/no-array-index-key
|
|
878
|
-
/* @__PURE__ */
|
|
877
|
+
/* @__PURE__ */ r.jsx(ee, { item: e }, s)
|
|
879
878
|
)) }) })
|
|
880
|
-
] }, t.label) : /* @__PURE__ */
|
|
881
|
-
t.icon && /* @__PURE__ */
|
|
879
|
+
] }, t.label) : /* @__PURE__ */ r.jsx(he, { to: t.path ?? "", children: /* @__PURE__ */ r.jsxs(ws, { className: "flex gap-2", children: [
|
|
880
|
+
t.icon && /* @__PURE__ */ r.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
882
881
|
t.label
|
|
883
|
-
] }, t.label) }),
|
|
884
|
-
const e =
|
|
885
|
-
return /* @__PURE__ */
|
|
886
|
-
/* @__PURE__ */
|
|
887
|
-
/* @__PURE__ */
|
|
888
|
-
/* @__PURE__ */
|
|
889
|
-
(
|
|
890
|
-
/* @__PURE__ */
|
|
882
|
+
] }, t.label) }), rt = Ve(function() {
|
|
883
|
+
const e = K(), { isAuthenticated: s, profile: n, isAuthEnabled: a } = K(), o = O(), { page: i, plugins: u } = o, d = u.filter((c) => os(c)).flatMap((c) => c.getProfileMenuItems(o)).sort((c) => c.weight ?? 0);
|
|
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(Gs, {}),
|
|
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(he, { to: "/", children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
888
|
+
(i == null ? void 0 : i.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
889
|
+
/* @__PURE__ */ r.jsx(
|
|
891
890
|
"img",
|
|
892
891
|
{
|
|
893
|
-
src: /https?:\/\//.test(
|
|
892
|
+
src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : Se(
|
|
894
893
|
"/",
|
|
895
|
-
|
|
894
|
+
i.logo.src.light
|
|
896
895
|
),
|
|
897
|
-
alt:
|
|
898
|
-
style: { width:
|
|
896
|
+
alt: i.logo.alt ?? i.pageTitle,
|
|
897
|
+
style: { width: i.logo.width },
|
|
899
898
|
className: "h-10 dark:hidden",
|
|
900
899
|
loading: "lazy"
|
|
901
900
|
}
|
|
902
901
|
),
|
|
903
|
-
/* @__PURE__ */
|
|
902
|
+
/* @__PURE__ */ r.jsx(
|
|
904
903
|
"img",
|
|
905
904
|
{
|
|
906
|
-
src: /https?:\/\//.test(
|
|
905
|
+
src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : Se(
|
|
907
906
|
"/",
|
|
908
|
-
|
|
907
|
+
i.logo.src.dark
|
|
909
908
|
),
|
|
910
|
-
alt:
|
|
911
|
-
style: { width:
|
|
909
|
+
alt: i.logo.alt ?? i.pageTitle,
|
|
910
|
+
style: { width: i.logo.width },
|
|
912
911
|
className: "h-10 hidden dark:block",
|
|
913
912
|
loading: "lazy"
|
|
914
913
|
}
|
|
915
914
|
)
|
|
916
915
|
] }),
|
|
917
|
-
/* @__PURE__ */
|
|
916
|
+
/* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
|
|
918
917
|
] }) }) }),
|
|
919
|
-
/* @__PURE__ */
|
|
920
|
-
|
|
921
|
-
/* @__PURE__ */
|
|
922
|
-
/* @__PURE__ */
|
|
923
|
-
/* @__PURE__ */
|
|
924
|
-
a && /* @__PURE__ */
|
|
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(Je, { className: "pointer-events-auto" }) }),
|
|
919
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-8", children: [
|
|
920
|
+
/* @__PURE__ */ r.jsx(_s, {}),
|
|
921
|
+
/* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
922
|
+
/* @__PURE__ */ r.jsx(k, { name: "head-navigation-start" }),
|
|
923
|
+
a && /* @__PURE__ */ r.jsx(
|
|
925
924
|
ge,
|
|
926
925
|
{
|
|
927
|
-
fallback: /* @__PURE__ */
|
|
928
|
-
children:
|
|
929
|
-
/* @__PURE__ */
|
|
930
|
-
/* @__PURE__ */
|
|
931
|
-
/* @__PURE__ */
|
|
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(ms, { modal: !1, children: [
|
|
928
|
+
/* @__PURE__ */ r.jsx(gs, { asChild: !0, children: /* @__PURE__ */ r.jsx(oe, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
|
|
929
|
+
/* @__PURE__ */ r.jsxs(ps, { className: "w-56", children: [
|
|
930
|
+
/* @__PURE__ */ r.jsxs(xs, { children: [
|
|
932
931
|
n != null && n.name ? `${n.name}` : "My Account",
|
|
933
|
-
(n == null ? void 0 : n.email) && /* @__PURE__ */
|
|
932
|
+
(n == null ? void 0 : n.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
|
|
934
933
|
] }),
|
|
935
|
-
d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */
|
|
936
|
-
d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */
|
|
934
|
+
d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
935
|
+
d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(ee, { item: c }, c.label)),
|
|
937
936
|
d.filter(
|
|
938
937
|
(c) => !c.category || c.category === "middle"
|
|
939
|
-
).length > 0 && /* @__PURE__ */
|
|
938
|
+
).length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
940
939
|
d.filter(
|
|
941
940
|
(c) => !c.category || c.category === "middle"
|
|
942
|
-
).map((c) => /* @__PURE__ */
|
|
943
|
-
d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */
|
|
944
|
-
d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */
|
|
941
|
+
).map((c) => /* @__PURE__ */ r.jsx(ee, { item: c }, c.label)),
|
|
942
|
+
d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
943
|
+
d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(ee, { item: c }, c.label))
|
|
945
944
|
] })
|
|
946
|
-
] }) : /* @__PURE__ */
|
|
945
|
+
] }) : /* @__PURE__ */ r.jsx(oe, { variant: "ghost", onClick: () => e.login(), children: "Login" })
|
|
947
946
|
}
|
|
948
947
|
),
|
|
949
|
-
/* @__PURE__ */
|
|
950
|
-
/* @__PURE__ */
|
|
948
|
+
/* @__PURE__ */ r.jsx(k, { name: "head-navigation-end" }),
|
|
949
|
+
/* @__PURE__ */ r.jsx(et, {})
|
|
951
950
|
] })
|
|
952
951
|
] })
|
|
953
952
|
] }) }),
|
|
954
|
-
/* @__PURE__ */
|
|
955
|
-
/* @__PURE__ */
|
|
956
|
-
/* @__PURE__ */
|
|
957
|
-
/* @__PURE__ */
|
|
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
|
+
/* @__PURE__ */ r.jsx(k, { name: "top-navigation-before" }),
|
|
955
|
+
/* @__PURE__ */ r.jsx(Ws, {}),
|
|
956
|
+
/* @__PURE__ */ r.jsx(k, { name: "top-navigation-after" })
|
|
958
957
|
] }) })
|
|
959
958
|
] });
|
|
960
|
-
}),
|
|
961
|
-
|
|
959
|
+
}), nt = ({
|
|
960
|
+
shouldScaleBackground: t = !0,
|
|
961
|
+
...e
|
|
962
|
+
}) => /* @__PURE__ */ r.jsx(
|
|
963
|
+
M.Root,
|
|
962
964
|
{
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
ref:
|
|
972
|
-
|
|
965
|
+
shouldScaleBackground: t,
|
|
966
|
+
...e
|
|
967
|
+
}
|
|
968
|
+
);
|
|
969
|
+
nt.displayName = "Drawer";
|
|
970
|
+
const Js = M.Trigger, er = M.Portal, at = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
971
|
+
M.Overlay,
|
|
972
|
+
{
|
|
973
|
+
ref: s,
|
|
974
|
+
className: E("fixed inset-0 z-50 bg-black/80", t),
|
|
975
|
+
...e
|
|
973
976
|
}
|
|
974
977
|
));
|
|
975
|
-
at.displayName =
|
|
976
|
-
const
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
var a;
|
|
982
|
-
const n = (a = e.current) == null ? void 0 : a.querySelector('[aria-current="page"]');
|
|
983
|
-
nr(n ?? null);
|
|
984
|
-
}, []), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
985
|
-
/* @__PURE__ */ s.jsxs(
|
|
986
|
-
at,
|
|
978
|
+
at.displayName = M.Overlay.displayName;
|
|
979
|
+
const tr = q.forwardRef(
|
|
980
|
+
({ className: t, children: e, hideBar: s = !0, ...n }, a) => /* @__PURE__ */ r.jsxs(er, { children: [
|
|
981
|
+
/* @__PURE__ */ r.jsx(at, {}),
|
|
982
|
+
/* @__PURE__ */ r.jsxs(
|
|
983
|
+
M.Content,
|
|
987
984
|
{
|
|
988
|
-
ref:
|
|
989
|
-
|
|
985
|
+
ref: a,
|
|
986
|
+
className: E(
|
|
987
|
+
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
|
988
|
+
t
|
|
989
|
+
),
|
|
990
|
+
...n,
|
|
990
991
|
children: [
|
|
991
|
-
/* @__PURE__ */
|
|
992
|
-
|
|
993
|
-
/* @__PURE__ */ s.jsx(S, { name: "zudoku-after-navigation" })
|
|
992
|
+
!s && /* @__PURE__ */ r.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
993
|
+
e
|
|
994
994
|
]
|
|
995
995
|
}
|
|
996
|
+
)
|
|
997
|
+
] })
|
|
998
|
+
);
|
|
999
|
+
tr.displayName = "DrawerContent";
|
|
1000
|
+
const sr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
1001
|
+
M.Title,
|
|
1002
|
+
{
|
|
1003
|
+
ref: s,
|
|
1004
|
+
className: E(
|
|
1005
|
+
"text-lg font-semibold leading-none tracking-tight",
|
|
1006
|
+
t
|
|
996
1007
|
),
|
|
997
|
-
|
|
998
|
-
|
|
1008
|
+
...e
|
|
1009
|
+
}
|
|
1010
|
+
));
|
|
1011
|
+
sr.displayName = M.Title.displayName;
|
|
1012
|
+
const rr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
1013
|
+
M.Description,
|
|
1014
|
+
{
|
|
1015
|
+
ref: s,
|
|
1016
|
+
className: E("text-sm text-muted-foreground", t),
|
|
1017
|
+
...e
|
|
1018
|
+
}
|
|
1019
|
+
));
|
|
1020
|
+
rr.displayName = M.Description.displayName;
|
|
1021
|
+
const it = ({
|
|
1022
|
+
children: t,
|
|
1023
|
+
className: e,
|
|
1024
|
+
ref: s
|
|
1025
|
+
}) => /* @__PURE__ */ r.jsx(
|
|
1026
|
+
"nav",
|
|
1027
|
+
{
|
|
1028
|
+
className: E(
|
|
1029
|
+
"hidden lg:flex h-full scrollbar peer flex-col overflow-y-auto shrink-0 text-sm border-r pr-6",
|
|
1030
|
+
"sticky top-[--header-height] h-[calc(100vh-var(--header-height))]",
|
|
1031
|
+
"-mx-[--padding-nav-item] max-w-[--side-nav-width] pb-20 pt-[--padding-content-top] scroll-pt-2 gap-2",
|
|
1032
|
+
e
|
|
1033
|
+
),
|
|
1034
|
+
ref: s,
|
|
1035
|
+
children: t
|
|
1036
|
+
}
|
|
1037
|
+
);
|
|
1038
|
+
it.displayName = "SidebarWrapper";
|
|
1039
|
+
const nr = ({
|
|
1040
|
+
onRequestClose: t,
|
|
1041
|
+
sidebar: e
|
|
1042
|
+
}) => {
|
|
1043
|
+
const s = se(null);
|
|
1044
|
+
return F(() => {
|
|
1045
|
+
var a;
|
|
1046
|
+
const n = (a = s.current) == null ? void 0 : a.querySelector('[aria-current="page"]');
|
|
1047
|
+
_t(n ?? null);
|
|
1048
|
+
}, []), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1049
|
+
/* @__PURE__ */ r.jsxs(it, { ref: s, children: [
|
|
1050
|
+
/* @__PURE__ */ r.jsx(k, { name: "zudoku-before-navigation" }),
|
|
1051
|
+
e.map((n) => /* @__PURE__ */ r.jsx(De, { item: n }, n.label)),
|
|
1052
|
+
/* @__PURE__ */ r.jsx(k, { name: "zudoku-after-navigation" })
|
|
1053
|
+
] }),
|
|
1054
|
+
/* @__PURE__ */ r.jsx(
|
|
1055
|
+
We,
|
|
999
1056
|
{
|
|
1000
1057
|
className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
|
|
1001
1058
|
"aria-describedby": void 0,
|
|
1002
|
-
children: /* @__PURE__ */
|
|
1003
|
-
/* @__PURE__ */
|
|
1004
|
-
|
|
1005
|
-
|
|
1059
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
1060
|
+
/* @__PURE__ */ r.jsx(Ge, { children: /* @__PURE__ */ r.jsx(_e, { children: "Sidebar" }) }),
|
|
1061
|
+
e.map((n) => /* @__PURE__ */ r.jsx(
|
|
1062
|
+
De,
|
|
1006
1063
|
{
|
|
1007
1064
|
item: n,
|
|
1008
1065
|
onRequestClose: t
|
|
@@ -1013,81 +1070,78 @@ const Gr = ({
|
|
|
1013
1070
|
}
|
|
1014
1071
|
)
|
|
1015
1072
|
] });
|
|
1016
|
-
},
|
|
1017
|
-
const e =
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1073
|
+
}, ar = ({ children: t }) => {
|
|
1074
|
+
const [e, s] = $(!1), { sidebar: n } = Le(), a = n.length > 0;
|
|
1075
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1076
|
+
nt,
|
|
1077
|
+
{
|
|
1078
|
+
direction: "left",
|
|
1079
|
+
open: e,
|
|
1080
|
+
onOpenChange: (o) => s(o),
|
|
1081
|
+
children: [
|
|
1082
|
+
a && /* @__PURE__ */ r.jsx(
|
|
1083
|
+
nr,
|
|
1084
|
+
{
|
|
1085
|
+
onRequestClose: () => s(!1),
|
|
1086
|
+
sidebar: n
|
|
1087
|
+
}
|
|
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(Js, { className: "flex items-center gap-2", children: [
|
|
1090
|
+
/* @__PURE__ */ r.jsx(Ss, { size: 16, strokeWidth: 1.5 }),
|
|
1091
|
+
/* @__PURE__ */ r.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1092
|
+
] }) }),
|
|
1093
|
+
/* @__PURE__ */ r.jsxs(
|
|
1094
|
+
"main",
|
|
1095
|
+
{
|
|
1096
|
+
"data-pagefind-body": !0,
|
|
1097
|
+
className: E(
|
|
1098
|
+
"h-auto dark:border-white/10 translate-x-0",
|
|
1099
|
+
a ? "lg:pl-12" : "col-span-full"
|
|
1100
|
+
),
|
|
1101
|
+
children: [
|
|
1102
|
+
/* @__PURE__ */ r.jsx(k, { name: "zudoku-before-content" }),
|
|
1103
|
+
t,
|
|
1104
|
+
/* @__PURE__ */ r.jsx(k, { name: "zudoku-after-content" })
|
|
1105
|
+
]
|
|
1106
|
+
}
|
|
1107
|
+
)
|
|
1108
|
+
]
|
|
1109
|
+
}
|
|
1110
|
+
);
|
|
1111
|
+
}, Ie = () => /* @__PURE__ */ r.jsx("main", { className: "col-span-full grid place-items-center", children: /* @__PURE__ */ r.jsx(Xe, {}) }), ir = ({ children: t }) => {
|
|
1112
|
+
const e = te(), { setActiveAnchor: s } = Jt(), { meta: n, authentication: a } = O();
|
|
1113
|
+
es(), Vs();
|
|
1114
|
+
const o = se(e.pathname);
|
|
1115
|
+
F(() => {
|
|
1116
|
+
var d;
|
|
1117
|
+
(d = a == null ? void 0 : a.onPageLoad) == null || d.call(a);
|
|
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, {
|
|
1027
1122
|
delay: 300,
|
|
1028
1123
|
minDuration: 500
|
|
1029
|
-
})
|
|
1030
|
-
return /* @__PURE__ */
|
|
1124
|
+
});
|
|
1125
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1031
1126
|
!1,
|
|
1032
|
-
/* @__PURE__ */
|
|
1033
|
-
(n == null ? void 0 : n.description) && /* @__PURE__ */
|
|
1034
|
-
(n == null ? void 0 : n.favicon) && /* @__PURE__ */
|
|
1127
|
+
/* @__PURE__ */ r.jsxs(ce, { titleTemplate: n == null ? void 0 : n.title, children: [
|
|
1128
|
+
(n == null ? void 0 : n.description) && /* @__PURE__ */ r.jsx("meta", { name: "description", content: n.description }),
|
|
1129
|
+
(n == null ? void 0 : n.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: n.favicon })
|
|
1035
1130
|
] }),
|
|
1036
|
-
/* @__PURE__ */
|
|
1037
|
-
/* @__PURE__ */
|
|
1038
|
-
/* @__PURE__ */
|
|
1039
|
-
/* @__PURE__ */
|
|
1040
|
-
Ve,
|
|
1041
|
-
{
|
|
1042
|
-
direction: "left",
|
|
1043
|
-
open: d,
|
|
1044
|
-
onOpenChange: (m) => c(m),
|
|
1045
|
-
children: [
|
|
1046
|
-
/* @__PURE__ */ s.jsx(Gr, { onRequestClose: () => c(!1) }),
|
|
1047
|
-
/* @__PURE__ */ s.jsx(
|
|
1048
|
-
"div",
|
|
1049
|
-
{
|
|
1050
|
-
className: Q(
|
|
1051
|
-
"lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
|
|
1052
|
-
"peer-data-[navigation=false]:hidden"
|
|
1053
|
-
),
|
|
1054
|
-
children: /* @__PURE__ */ s.jsxs(Xe, { className: "flex items-center gap-2", children: [
|
|
1055
|
-
/* @__PURE__ */ s.jsx(sr, { size: 16, strokeWidth: 1.5 }),
|
|
1056
|
-
/* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1057
|
-
] })
|
|
1058
|
-
}
|
|
1059
|
-
),
|
|
1060
|
-
/* @__PURE__ */ s.jsxs(
|
|
1061
|
-
"main",
|
|
1062
|
-
{
|
|
1063
|
-
"data-pagefind-body": !0,
|
|
1064
|
-
className: Q(
|
|
1065
|
-
"h-full dark:border-white/10 translate-x-0",
|
|
1066
|
-
"lg:overflow-visible",
|
|
1067
|
-
// This works in tandem with the `SidebarWrapper` component
|
|
1068
|
-
"lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
|
|
1069
|
-
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
|
|
1070
|
-
),
|
|
1071
|
-
children: [
|
|
1072
|
-
/* @__PURE__ */ s.jsx(S, { name: "zudoku-before-content" }),
|
|
1073
|
-
t ?? /* @__PURE__ */ s.jsx(ce, {}),
|
|
1074
|
-
/* @__PURE__ */ s.jsx(S, { name: "zudoku-after-content" })
|
|
1075
|
-
]
|
|
1076
|
-
}
|
|
1077
|
-
)
|
|
1078
|
-
]
|
|
1079
|
-
}
|
|
1080
|
-
) }) })
|
|
1131
|
+
/* @__PURE__ */ r.jsx(k, { name: "layout-before-head" }),
|
|
1132
|
+
/* @__PURE__ */ r.jsx(rt, {}),
|
|
1133
|
+
/* @__PURE__ */ r.jsx(k, { name: "layout-after-head" }),
|
|
1134
|
+
/* @__PURE__ */ r.jsx("div", { className: "grid 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: u ? /* @__PURE__ */ r.jsx(Ie, {}) : /* @__PURE__ */ r.jsx(me, { fallback: /* @__PURE__ */ r.jsx(Ie, {}), children: /* @__PURE__ */ r.jsx(ar, { children: t ?? /* @__PURE__ */ r.jsx(ue, {}) }) }) })
|
|
1081
1135
|
] });
|
|
1082
|
-
},
|
|
1136
|
+
}, or = ({
|
|
1083
1137
|
title: t = "An error occurred",
|
|
1084
1138
|
message: e,
|
|
1085
|
-
category:
|
|
1086
|
-
}) => /* @__PURE__ */
|
|
1087
|
-
|
|
1088
|
-
t && /* @__PURE__ */
|
|
1089
|
-
/* @__PURE__ */
|
|
1090
|
-
] }),
|
|
1139
|
+
category: s
|
|
1140
|
+
}) => /* @__PURE__ */ r.jsxs("div", { className: ss + " h-full pt-[--padding-content-top]", children: [
|
|
1141
|
+
s && /* @__PURE__ */ r.jsx(As, { children: s }),
|
|
1142
|
+
t && /* @__PURE__ */ r.jsx(ts, { level: 1, className: "flex gap-3.5 items-center", children: t }),
|
|
1143
|
+
/* @__PURE__ */ r.jsx("p", { children: e })
|
|
1144
|
+
] }), lr = (t) => {
|
|
1091
1145
|
switch (t) {
|
|
1092
1146
|
case 400:
|
|
1093
1147
|
return {
|
|
@@ -1150,23 +1204,23 @@ const Gr = ({
|
|
|
1150
1204
|
message: "Something went wrong while processing your request."
|
|
1151
1205
|
};
|
|
1152
1206
|
}
|
|
1153
|
-
},
|
|
1154
|
-
const
|
|
1155
|
-
return /* @__PURE__ */
|
|
1156
|
-
|
|
1207
|
+
}, cr = ({ statusCode: t, message: e }) => {
|
|
1208
|
+
const s = lr(t);
|
|
1209
|
+
return /* @__PURE__ */ r.jsx(
|
|
1210
|
+
or,
|
|
1157
1211
|
{
|
|
1158
|
-
title:
|
|
1159
|
-
message: e ??
|
|
1212
|
+
title: s.title,
|
|
1213
|
+
message: e ?? s.message,
|
|
1160
1214
|
category: t
|
|
1161
1215
|
}
|
|
1162
1216
|
);
|
|
1163
|
-
},
|
|
1217
|
+
}, ur = fe(null), ae = {
|
|
1164
1218
|
didCatch: !1,
|
|
1165
1219
|
error: null
|
|
1166
1220
|
};
|
|
1167
|
-
class
|
|
1221
|
+
class dr extends Xt {
|
|
1168
1222
|
constructor(e) {
|
|
1169
|
-
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
1223
|
+
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ae;
|
|
1170
1224
|
}
|
|
1171
1225
|
static getDerivedStateFromError(e) {
|
|
1172
1226
|
return {
|
|
@@ -1179,86 +1233,86 @@ class ss extends Xt {
|
|
|
1179
1233
|
error: e
|
|
1180
1234
|
} = this.state;
|
|
1181
1235
|
if (e !== null) {
|
|
1182
|
-
for (var
|
|
1183
|
-
i
|
|
1184
|
-
(
|
|
1185
|
-
args:
|
|
1236
|
+
for (var s, n, a = arguments.length, o = new Array(a), i = 0; i < a; i++)
|
|
1237
|
+
o[i] = arguments[i];
|
|
1238
|
+
(s = (n = this.props).onReset) === null || s === void 0 || s.call(n, {
|
|
1239
|
+
args: o,
|
|
1186
1240
|
reason: "imperative-api"
|
|
1187
|
-
}), this.setState(
|
|
1241
|
+
}), this.setState(ae);
|
|
1188
1242
|
}
|
|
1189
1243
|
}
|
|
1190
|
-
componentDidCatch(e,
|
|
1244
|
+
componentDidCatch(e, s) {
|
|
1191
1245
|
var n, a;
|
|
1192
|
-
(n = (a = this.props).onError) === null || n === void 0 || n.call(a, e,
|
|
1246
|
+
(n = (a = this.props).onError) === null || n === void 0 || n.call(a, e, s);
|
|
1193
1247
|
}
|
|
1194
|
-
componentDidUpdate(e,
|
|
1248
|
+
componentDidUpdate(e, s) {
|
|
1195
1249
|
const {
|
|
1196
1250
|
didCatch: n
|
|
1197
1251
|
} = this.state, {
|
|
1198
1252
|
resetKeys: a
|
|
1199
1253
|
} = this.props;
|
|
1200
|
-
if (n &&
|
|
1201
|
-
var
|
|
1202
|
-
(
|
|
1254
|
+
if (n && s.error !== null && hr(e.resetKeys, a)) {
|
|
1255
|
+
var o, i;
|
|
1256
|
+
(o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
|
|
1203
1257
|
next: a,
|
|
1204
1258
|
prev: e.resetKeys,
|
|
1205
1259
|
reason: "keys"
|
|
1206
|
-
}), this.setState(
|
|
1260
|
+
}), this.setState(ae);
|
|
1207
1261
|
}
|
|
1208
1262
|
}
|
|
1209
1263
|
render() {
|
|
1210
1264
|
const {
|
|
1211
1265
|
children: e,
|
|
1212
|
-
fallbackRender:
|
|
1266
|
+
fallbackRender: s,
|
|
1213
1267
|
FallbackComponent: n,
|
|
1214
1268
|
fallback: a
|
|
1215
1269
|
} = this.props, {
|
|
1216
|
-
didCatch:
|
|
1217
|
-
error:
|
|
1270
|
+
didCatch: o,
|
|
1271
|
+
error: i
|
|
1218
1272
|
} = this.state;
|
|
1219
1273
|
let u = e;
|
|
1220
|
-
if (
|
|
1274
|
+
if (o) {
|
|
1221
1275
|
const d = {
|
|
1222
|
-
error:
|
|
1276
|
+
error: i,
|
|
1223
1277
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1224
1278
|
};
|
|
1225
|
-
if (typeof
|
|
1226
|
-
u =
|
|
1279
|
+
if (typeof s == "function")
|
|
1280
|
+
u = s(d);
|
|
1227
1281
|
else if (n)
|
|
1228
1282
|
u = ke(n, d);
|
|
1229
1283
|
else if (a !== void 0)
|
|
1230
1284
|
u = a;
|
|
1231
1285
|
else
|
|
1232
|
-
throw
|
|
1286
|
+
throw i;
|
|
1233
1287
|
}
|
|
1234
|
-
return ke(
|
|
1288
|
+
return ke(ur.Provider, {
|
|
1235
1289
|
value: {
|
|
1236
|
-
didCatch:
|
|
1237
|
-
error:
|
|
1290
|
+
didCatch: o,
|
|
1291
|
+
error: i,
|
|
1238
1292
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1239
1293
|
}
|
|
1240
1294
|
}, u);
|
|
1241
1295
|
}
|
|
1242
1296
|
}
|
|
1243
|
-
function
|
|
1297
|
+
function hr() {
|
|
1244
1298
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1245
|
-
return t.length !== e.length || t.some((
|
|
1299
|
+
return t.length !== e.length || t.some((s, n) => !Object.is(s, e[n]));
|
|
1246
1300
|
}
|
|
1247
|
-
let
|
|
1301
|
+
let fr = () => ({
|
|
1248
1302
|
emit(t, ...e) {
|
|
1249
|
-
for (let
|
|
1250
|
-
|
|
1303
|
+
for (let s = this.events[t] || [], n = 0, a = s.length; n < a; n++)
|
|
1304
|
+
s[n](...e);
|
|
1251
1305
|
},
|
|
1252
1306
|
events: {},
|
|
1253
1307
|
on(t, e) {
|
|
1254
|
-
var
|
|
1255
|
-
return ((
|
|
1308
|
+
var s;
|
|
1309
|
+
return ((s = this.events)[t] || (s[t] = [])).push(e), () => {
|
|
1256
1310
|
var n;
|
|
1257
1311
|
this.events[t] = (n = this.events[t]) == null ? void 0 : n.filter((a) => e !== a);
|
|
1258
1312
|
};
|
|
1259
1313
|
}
|
|
1260
1314
|
});
|
|
1261
|
-
class
|
|
1315
|
+
class mr {
|
|
1262
1316
|
constructor(e) {
|
|
1263
1317
|
j(this, "plugins");
|
|
1264
1318
|
j(this, "sidebars");
|
|
@@ -1267,127 +1321,127 @@ class is {
|
|
|
1267
1321
|
j(this, "page");
|
|
1268
1322
|
j(this, "authentication");
|
|
1269
1323
|
j(this, "navigationPlugins");
|
|
1270
|
-
j(this, "emitter",
|
|
1324
|
+
j(this, "emitter", fr());
|
|
1271
1325
|
j(this, "initialize", async () => {
|
|
1272
1326
|
await Promise.all(
|
|
1273
|
-
this.plugins.filter(
|
|
1274
|
-
var
|
|
1275
|
-
return (
|
|
1327
|
+
this.plugins.filter(us).map((e) => {
|
|
1328
|
+
var s;
|
|
1329
|
+
return (s = e.initialize) == null ? void 0 : s.call(e, this);
|
|
1276
1330
|
})
|
|
1277
1331
|
);
|
|
1278
1332
|
});
|
|
1279
1333
|
j(this, "getApiIdentities", async () => (await Promise.all(
|
|
1280
|
-
this.plugins.filter(
|
|
1334
|
+
this.plugins.filter(ds).map((s) => s.getIdentities(this))
|
|
1281
1335
|
)).flat());
|
|
1282
|
-
j(this, "emitEvent", (e, ...
|
|
1336
|
+
j(this, "emitEvent", (e, ...s) => this.emitter.emit(e, ...s));
|
|
1283
1337
|
j(this, "getPluginSidebar", async (e) => (await Promise.all(
|
|
1284
1338
|
this.navigationPlugins.map(
|
|
1285
1339
|
(n) => {
|
|
1286
1340
|
var a;
|
|
1287
|
-
return (a = n.getSidebar) == null ? void 0 : a.call(n,
|
|
1341
|
+
return (a = n.getSidebar) == null ? void 0 : a.call(n, ie(e));
|
|
1288
1342
|
}
|
|
1289
1343
|
)
|
|
1290
1344
|
)).flatMap((n) => n ?? []));
|
|
1291
1345
|
j(this, "signRequest", async (e) => {
|
|
1292
1346
|
if (!this.authentication)
|
|
1293
1347
|
throw new Error("No authentication provider configured");
|
|
1294
|
-
const
|
|
1295
|
-
return e.headers.set("Authorization", `Bearer ${
|
|
1348
|
+
const s = await this.authentication.getAccessToken();
|
|
1349
|
+
return e.headers.set("Authorization", `Bearer ${s}`), e;
|
|
1296
1350
|
});
|
|
1297
|
-
this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(
|
|
1298
|
-
|
|
1351
|
+
this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(ls), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((s) => {
|
|
1352
|
+
cs(s) && Lt(s.events).forEach(([n, a]) => {
|
|
1299
1353
|
this.emitter.on(n, a);
|
|
1300
1354
|
});
|
|
1301
1355
|
});
|
|
1302
1356
|
}
|
|
1303
|
-
addEventListener(e,
|
|
1304
|
-
return this.emitter.on(e,
|
|
1357
|
+
addEventListener(e, s) {
|
|
1358
|
+
return this.emitter.on(e, s);
|
|
1305
1359
|
}
|
|
1306
1360
|
}
|
|
1307
|
-
function
|
|
1308
|
-
return /* @__PURE__ */
|
|
1361
|
+
function gr({ error: t, resetErrorBoundary: e }) {
|
|
1362
|
+
return /* @__PURE__ */ r.jsx(Ze, { error: t });
|
|
1309
1363
|
}
|
|
1310
|
-
const
|
|
1311
|
-
(!
|
|
1312
|
-
const
|
|
1313
|
-
Header:
|
|
1314
|
-
},
|
|
1315
|
-
const t =
|
|
1316
|
-
return
|
|
1364
|
+
const J = globalThis;
|
|
1365
|
+
(!J.requestIdleCallback || !J.cancelIdleCallback) && (J.requestIdleCallback = (t) => setTimeout(t, 1), J.cancelIdleCallback = clearTimeout);
|
|
1366
|
+
const ot = {
|
|
1367
|
+
Header: rt
|
|
1368
|
+
}, pr = fe(ot), xr = pr.Provider, yr = () => {
|
|
1369
|
+
const t = te(), e = O(), s = se(void 0);
|
|
1370
|
+
return F(() => {
|
|
1317
1371
|
e.emitEvent("location", {
|
|
1318
|
-
from:
|
|
1372
|
+
from: s.current,
|
|
1319
1373
|
to: t
|
|
1320
|
-
}),
|
|
1374
|
+
}), s.current = t;
|
|
1321
1375
|
}, [e, t]), null;
|
|
1322
|
-
},
|
|
1376
|
+
}, vr = ({
|
|
1323
1377
|
children: t,
|
|
1324
1378
|
context: e
|
|
1325
|
-
}) => (
|
|
1379
|
+
}) => (wt({
|
|
1326
1380
|
queryFn: async () => (await e.initialize(), !0),
|
|
1327
1381
|
queryKey: ["zudoku-initialize"]
|
|
1328
|
-
}), /* @__PURE__ */
|
|
1382
|
+
}), /* @__PURE__ */ r.jsx(Pt.Provider, { value: e, children: t })), lt = Ve(
|
|
1329
1383
|
({ children: t, ...e }) => {
|
|
1330
|
-
var
|
|
1331
|
-
const
|
|
1332
|
-
() => ({ ...
|
|
1384
|
+
var m, h;
|
|
1385
|
+
const s = re(
|
|
1386
|
+
() => ({ ...ot, ...e.overrides }),
|
|
1333
1387
|
[e.overrides]
|
|
1334
1388
|
), n = re(() => {
|
|
1335
|
-
var
|
|
1389
|
+
var y;
|
|
1336
1390
|
return {
|
|
1337
|
-
...(e.plugins ?? []).filter(
|
|
1338
|
-
(
|
|
1391
|
+
...(e.plugins ?? []).filter(hs).flatMap(
|
|
1392
|
+
(p) => p.getMdxComponents ? [p.getMdxComponents()] : []
|
|
1339
1393
|
).reduce(
|
|
1340
|
-
(
|
|
1394
|
+
(p, C) => ({ ...p, ...C }),
|
|
1341
1395
|
{}
|
|
1342
1396
|
),
|
|
1343
|
-
...
|
|
1344
|
-
...(
|
|
1397
|
+
...rs,
|
|
1398
|
+
...(y = e.mdx) == null ? void 0 : y.components
|
|
1345
1399
|
};
|
|
1346
|
-
}, [(
|
|
1347
|
-
() =>
|
|
1348
|
-
[a,
|
|
1349
|
-
), d =
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
}, [
|
|
1353
|
-
const [c] =
|
|
1354
|
-
var
|
|
1355
|
-
return
|
|
1356
|
-
}).map((f,
|
|
1357
|
-
return /* @__PURE__ */
|
|
1358
|
-
|
|
1359
|
-
/* @__PURE__ */
|
|
1360
|
-
/* @__PURE__ */
|
|
1361
|
-
/* @__PURE__ */
|
|
1400
|
+
}, [(m = e.mdx) == null ? void 0 : m.components, e.plugins]), { stagger: a } = Gt(le), [o, i] = $(!1), u = re(
|
|
1401
|
+
() => o ? { stagger: !0 } : { stagger: a },
|
|
1402
|
+
[a, o]
|
|
1403
|
+
), d = de();
|
|
1404
|
+
F(() => {
|
|
1405
|
+
o || i(!0);
|
|
1406
|
+
}, [o, d.location]);
|
|
1407
|
+
const [c] = $(() => new mr(e)), x = (h = e.plugins) == null ? void 0 : h.flatMap((f) => {
|
|
1408
|
+
var y;
|
|
1409
|
+
return fs(f) ? ((y = f.getHead) == null ? void 0 : y.call(f)) ?? [] : [];
|
|
1410
|
+
}).map((f, y) => /* @__PURE__ */ r.jsx(ce, { children: f }, y));
|
|
1411
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1412
|
+
x,
|
|
1413
|
+
/* @__PURE__ */ r.jsx(le.Provider, { value: u, children: /* @__PURE__ */ r.jsxs(vr, { context: c, children: [
|
|
1414
|
+
/* @__PURE__ */ r.jsx(yr, {}),
|
|
1415
|
+
/* @__PURE__ */ r.jsx(ft, { components: n, children: /* @__PURE__ */ r.jsx(gt, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(xr, { value: s, children: /* @__PURE__ */ r.jsx(Bt, { slotlets: e.slotlets, children: /* @__PURE__ */ r.jsx(ns, { children: t ?? /* @__PURE__ */ r.jsx(ue, {}) }) }) }) }) })
|
|
1362
1416
|
] }) })
|
|
1363
1417
|
] });
|
|
1364
1418
|
}
|
|
1365
1419
|
);
|
|
1366
|
-
|
|
1367
|
-
const
|
|
1368
|
-
|
|
1369
|
-
const
|
|
1420
|
+
lt.displayName = "ZudokoInner";
|
|
1421
|
+
const ct = (t) => /* @__PURE__ */ r.jsx(dr, { FallbackComponent: gr, children: /* @__PURE__ */ r.jsx(lt, { ...t }) });
|
|
1422
|
+
ct.displayName = "Zudoku";
|
|
1423
|
+
const Yr = mt, Vr = ir, Xr = Kt, Gr = Hs, Wr = Ks, _r = $s, Jr = zs, en = ce, tn = O, sn = K, rn = Ct, nn = Nt, an = ct, on = cr, ln = Ut, cn = as, un = Xe, dn = ge, hn = $t, fn = he, mn = He;
|
|
1370
1424
|
export {
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1425
|
+
Wr as Bootstrap,
|
|
1426
|
+
_r as BootstrapStatic,
|
|
1427
|
+
hn as Button,
|
|
1428
|
+
nn as CACHE_KEYS,
|
|
1429
|
+
ln as Callout,
|
|
1430
|
+
dn as ClientOnly,
|
|
1431
|
+
en as Head,
|
|
1432
|
+
Vr as Layout,
|
|
1433
|
+
fn as Link,
|
|
1434
|
+
cn as Markdown,
|
|
1435
|
+
Jr as RouteGuard,
|
|
1436
|
+
Xr as RouterError,
|
|
1437
|
+
Gr as ServerError,
|
|
1438
|
+
un as Spinner,
|
|
1439
|
+
on as StatusPage,
|
|
1440
|
+
an as Zudoku,
|
|
1441
|
+
sn as useAuth,
|
|
1442
|
+
rn as useCache,
|
|
1443
|
+
Yr as useMDXComponents,
|
|
1444
|
+
mn as useTheme,
|
|
1445
|
+
tn as useZudoku
|
|
1392
1446
|
};
|
|
1393
1447
|
//# sourceMappingURL=zudoku.components.js.map
|