zudoku 0.40.1 → 0.41.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/ZuploBuildConfig.d.ts +155 -0
- package/dist/app/ZuploBuildConfig.js +29 -0
- package/dist/app/ZuploBuildConfig.js.map +1 -0
- package/dist/app/env.d.ts +33 -0
- package/dist/app/env.js +29 -0
- package/dist/app/env.js.map +1 -0
- package/dist/app/main.js +7 -4
- package/dist/app/main.js.map +1 -1
- package/dist/cli/cli.js +12 -1
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js +1 -0
- package/dist/cli/common/machine-id/lib.js.map +1 -1
- package/dist/config/loader.js +0 -3
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/common.d.ts +17 -11
- package/dist/config/validators/common.js +1 -1
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +7 -5
- package/dist/lib/authentication/providers/openid.d.ts +3 -1
- package/dist/lib/authentication/providers/openid.js +17 -11
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +4 -0
- package/dist/lib/components/BuildCheck.js +22 -0
- package/dist/lib/components/BuildCheck.js.map +1 -0
- package/dist/lib/components/Search.js +1 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/Zudoku.js +1 -3
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/context/ViewportAnchorContext.js +8 -9
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +4 -0
- package/dist/lib/components/index.js +2 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/PoweredByZudoku.js +2 -1
- package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -1
- package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
- package/dist/lib/components/navigation/ZuploLogo.js +4 -0
- package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
- package/dist/lib/oas/parser/index.d.ts +1 -1
- package/dist/lib/oas/parser/index.js +3 -2
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +6 -4
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js +20 -13
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/util/ensureArray.d.ts +1 -0
- package/dist/lib/util/ensureArray.js +2 -0
- package/dist/lib/util/ensureArray.js.map +1 -0
- package/dist/vite/api/SchemaManager.d.ts +36 -0
- package/dist/vite/api/SchemaManager.js +120 -0
- package/dist/vite/api/SchemaManager.js.map +1 -0
- package/dist/vite/api/SchemaManager.test.d.ts +1 -0
- package/dist/vite/api/SchemaManager.test.js +106 -0
- package/dist/vite/api/SchemaManager.test.js.map +1 -0
- package/dist/vite/config.js +5 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-api.js +38 -110
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-sidebar.d.ts +3 -1
- package/dist/vite/plugin-sidebar.js +8 -2
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/zuplo/with-zuplo-processors.js +1 -1
- package/dist/zuplo/with-zuplo-processors.js.map +1 -1
- package/dist/zuplo/with-zuplo.d.ts +3 -0
- package/dist/zuplo/with-zuplo.js +6 -9
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/{Markdown-C5h6bxbE.js → Markdown-DqDbGCj2.js} +314 -315
- package/lib/{Markdown-C5h6bxbE.js.map → Markdown-DqDbGCj2.js.map} +1 -1
- package/lib/{MdxPage-B66ht0D_.js → MdxPage-B7MyVLV5.js} +5 -5
- package/lib/{MdxPage-B66ht0D_.js.map → MdxPage-B7MyVLV5.js.map} +1 -1
- package/lib/{OasProvider-BKPF0Pbt.js → OasProvider-DY8kA-9x.js} +2 -2
- package/lib/{OasProvider-BKPF0Pbt.js.map → OasProvider-DY8kA-9x.js.map} +1 -1
- package/lib/{OperationList-0bhBU7ME.js → OperationList-BNneqYos.js} +798 -794
- package/lib/{OperationList-0bhBU7ME.js.map → OperationList-BNneqYos.js.map} +1 -1
- package/lib/{Pagination-Bt1czAiJ.js → Pagination-9TA5cwCh.js} +2 -2
- package/lib/{Pagination-Bt1czAiJ.js.map → Pagination-9TA5cwCh.js.map} +1 -1
- package/lib/{SchemaList-CsTIT1pi.js → SchemaList-CbFxph_p.js} +5 -5
- package/lib/{SchemaList-CsTIT1pi.js.map → SchemaList-CbFxph_p.js.map} +1 -1
- package/lib/{SchemaView-DCSWtnYr.js → SchemaView-DwlVvFfp.js} +2 -2
- package/lib/{SchemaView-DCSWtnYr.js.map → SchemaView-DwlVvFfp.js.map} +1 -1
- package/lib/{SlotletProvider-VUmTNmLZ.js → SlotletProvider-p4XaFFOh.js} +2 -2
- package/lib/{SlotletProvider-VUmTNmLZ.js.map → SlotletProvider-p4XaFFOh.js.map} +1 -1
- package/lib/{Toc-BK39DQvI.js → Toc-BVdRaIC0.js} +2 -2
- package/lib/{Toc-BK39DQvI.js.map → Toc-BVdRaIC0.js.map} +1 -1
- package/lib/{createServer-DLN7APz_.js → createServer-D_5UkLtY.js} +1459 -1485
- package/lib/createServer-D_5UkLtY.js.map +1 -0
- package/lib/{index-tpbiZmWp.js → index-BPmAnNGI.js} +686 -648
- package/lib/index-BPmAnNGI.js.map +1 -0
- package/lib/index-BpThvE5R.js +66 -0
- package/lib/index-BpThvE5R.js.map +1 -0
- package/lib/{index-Ba_X7EnR.js → index-pAogBEk7.js} +255 -249
- package/lib/{index-Ba_X7EnR.js.map → index-pAogBEk7.js.map} +1 -1
- package/lib/index-ueM1dihS.js +247 -0
- package/lib/index-ueM1dihS.js.map +1 -0
- package/lib/{index-DcHeSvkE.js → public-api-CrAQFYc4.js} +651 -684
- package/lib/public-api-CrAQFYc4.js.map +1 -0
- package/lib/zudoku.auth-openid.js +144 -138
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +23 -22
- package/lib/zudoku.plugin-api-catalog.js +2 -2
- 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/package.json +2 -2
- package/src/app/ZuploBuildConfig.ts +33 -0
- package/src/app/env.ts +35 -0
- package/src/app/main.tsx +12 -1
- package/src/lib/authentication/providers/openid.tsx +23 -12
- package/src/lib/components/BuildCheck.tsx +60 -0
- package/src/lib/components/Search.tsx +1 -1
- package/src/lib/components/Zudoku.tsx +1 -3
- package/src/lib/components/context/ViewportAnchorContext.tsx +8 -15
- package/src/lib/components/index.ts +2 -0
- package/src/lib/components/navigation/PoweredByZudoku.tsx +8 -3
- package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
- package/src/lib/oas/parser/index.ts +4 -2
- package/src/lib/plugins/openapi/OperationList.tsx +15 -3
- package/src/lib/plugins/openapi/util/getRoutes.tsx +21 -13
- package/src/lib/util/ensureArray.ts +3 -0
- package/client.d.ts +0 -8
- package/dist/lib/oas/parser/upgrade/index.d.ts +0 -9
- package/dist/lib/oas/parser/upgrade/index.js +0 -90
- package/dist/lib/oas/parser/upgrade/index.js.map +0 -1
- package/dist/zuplo/env.d.ts +0 -7
- package/dist/zuplo/env.js +0 -12
- package/dist/zuplo/env.js.map +0 -1
- package/lib/createServer-DLN7APz_.js.map +0 -1
- package/lib/index-DcHeSvkE.js.map +0 -1
- package/lib/index-tpbiZmWp.js.map +0 -1
- package/src/lib/oas/parser/upgrade/index.ts +0 -103
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
var nr = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var _e = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var A = (t, e, r) =>
|
|
7
|
-
var d = (t, e, r) => (
|
|
8
|
-
var ce = (t, e, r,
|
|
5
|
+
var ar = (t, e, r) => e in t ? nr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
6
|
+
var A = (t, e, r) => ar(t, typeof e != "symbol" ? e + "" : e, r), De = (t, e, r) => e.has(t) || _e("Cannot " + r);
|
|
7
|
+
var d = (t, e, r) => (De(t, e, "read from private field"), r ? r.call(t) : e.get(t)), k = (t, e, r) => e.has(t) ? _e("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), M = (t, e, r, n) => (De(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
|
|
8
|
+
var ce = (t, e, r, n) => ({
|
|
9
9
|
set _(a) {
|
|
10
10
|
M(t, e, a, r);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return d(t, e,
|
|
13
|
+
return d(t, e, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { B as ot, a as it, H as
|
|
17
|
-
import { z as ct, J as
|
|
18
|
-
import { R as
|
|
19
|
-
import { S as ut, v as dt, Q as
|
|
20
|
-
import { E as
|
|
21
|
-
import { j as
|
|
22
|
-
import { Button as
|
|
23
|
-
import { Callout as
|
|
24
|
-
import { M as
|
|
16
|
+
import { B as ot, a as it, H as Ee, R as or } from "./RouteGuard-BZ_VsiXc.js";
|
|
17
|
+
import { z as ct, J as ir } from "./index-DwT-v3zK.js";
|
|
18
|
+
import { R as cr, S as lr, u as pe, f as ge, g as ur, L as Te, O as lt } from "./chunk-KNED5TY2-BUPjb3LQ.js";
|
|
19
|
+
import { S as ut, v as dt, Q as dr, n as R, w as qe, x as $e, y as B, z as fr, A as hr, B as mr, C as pr, D as Ie, E as Fe, F as gr, h as Qe, G as ze, H as xr, g as ft, I as ht, m as vr, e as F, l as ae, J as mt, K as yr, f as ee, u as br, j as jr, d as wr, Z as Pr, L as Sr, M as Cr } from "./hook-pPrHCB6G.js";
|
|
20
|
+
import { E as pt, S as _, a as Nr, R as Er } from "./SlotletProvider-p4XaFFOh.js";
|
|
21
|
+
import { j as s } from "./jsx-runtime-C5mzlN2N.js";
|
|
22
|
+
import { Button as gt } from "./ui/Button.js";
|
|
23
|
+
import { Callout as Tr } from "./ui/Callout.js";
|
|
24
|
+
import { M as Mr } from "./mutation-Csa9eQDM.js";
|
|
25
25
|
import * as K from "react";
|
|
26
|
-
import he, { createContext as
|
|
27
|
-
import * as
|
|
28
|
-
import {
|
|
26
|
+
import he, { createContext as Me, StrictMode as xt, useRef as G, useEffect as Q, useState as J, useCallback as W, Suspense as Oe, memo as vt, Component as Or, createElement as Le, useMemo as be, useContext as Ar } from "react";
|
|
27
|
+
import * as kr from "react-dom";
|
|
28
|
+
import { CircleFadingArrowUpIcon as Rr, LoaderCircleIcon as _r, ExternalLink as Dr, CircleXIcon as qr, ChevronRightIcon as $r, SearchIcon as Ir, SunIcon as Fr, MoonIcon as Qr, MenuIcon as zr, PanelLeftIcon as Lr } from "lucide-react";
|
|
29
|
+
import { C as xe } from "./ClientOnly-E7hGysn1.js";
|
|
29
30
|
import { c as O } from "./cn-qaFjX9_3.js";
|
|
30
|
-
import { A as
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const e = he.useContext(wt);
|
|
31
|
+
import { A as Br, s as Hr, a as Be, b as Kr, H as Ur, P as Yr, c as Zr, V as Vr, M as Wr } from "./Markdown-DqDbGCj2.js";
|
|
32
|
+
import { S as yt } from "./Spinner-mNLZ6awP.js";
|
|
33
|
+
import { C as Gr } from "./CategoryHeading-D06WK_Wo.js";
|
|
34
|
+
import { isSearchPlugin as Xr, isProfileMenuPlugin as Jr, isNavigationPlugin as es, isEventConsumerPlugin as ts, needsInitialization as rs, isApiIdentityPlugin as ss, isMdxProviderPlugin as ns, hasHead as as } from "./zudoku.plugins.js";
|
|
35
|
+
import { o as os } from "./objectEntries-yMIkr2mI.js";
|
|
36
|
+
import { B as Se } from "./Button-BBNrKpQd.js";
|
|
37
|
+
import { DropdownMenu as is, DropdownMenuTrigger as cs, DropdownMenuContent as ls, DropdownMenuLabel as us, DropdownMenuSeparator as je, DropdownMenuSub as ds, DropdownMenuSubTrigger as fs, DropdownMenuPortal as hs, DropdownMenuSubContent as ms, DropdownMenuItem as ps } from "./ui/DropdownMenu.js";
|
|
38
|
+
import { VisuallyHidden as bt } from "@radix-ui/react-visually-hidden";
|
|
39
|
+
import { D as gs, a as xs, b as jt, c as wt, d as z } from "./Drawer-CEwbkLDb.js";
|
|
40
|
+
import { a as vs } from "./index-CPNSgwSb.js";
|
|
41
|
+
const Ce = {}, Pt = he.createContext(Ce);
|
|
42
|
+
function St(t) {
|
|
43
|
+
const e = he.useContext(Pt);
|
|
44
44
|
return he.useMemo(
|
|
45
45
|
function() {
|
|
46
46
|
return typeof t == "function" ? t(e) : { ...e, ...t };
|
|
@@ -48,29 +48,29 @@ function Pt(t) {
|
|
|
48
48
|
[e, t]
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function ys(t) {
|
|
52
52
|
let e;
|
|
53
|
-
return t.disableParentContext ? e = typeof t.components == "function" ? t.components(
|
|
54
|
-
|
|
53
|
+
return t.disableParentContext ? e = typeof t.components == "function" ? t.components(Ce) : t.components || Ce : e = St(t.components), he.createElement(
|
|
54
|
+
Pt.Provider,
|
|
55
55
|
{ value: e },
|
|
56
56
|
t.children
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
|
-
var I,
|
|
59
|
+
var I, st, bs = (st = class extends ut {
|
|
60
60
|
constructor(e = {}) {
|
|
61
61
|
super();
|
|
62
|
-
|
|
62
|
+
k(this, I);
|
|
63
63
|
this.config = e, M(this, I, /* @__PURE__ */ new Map());
|
|
64
64
|
}
|
|
65
|
-
build(e, r,
|
|
65
|
+
build(e, r, n) {
|
|
66
66
|
const a = r.queryKey, i = r.queryHash ?? dt(a, r);
|
|
67
67
|
let o = this.get(i);
|
|
68
|
-
return o || (o = new
|
|
68
|
+
return o || (o = new dr({
|
|
69
69
|
client: e,
|
|
70
70
|
queryKey: a,
|
|
71
71
|
queryHash: i,
|
|
72
72
|
options: e.defaultQueryOptions(r),
|
|
73
|
-
state:
|
|
73
|
+
state: n,
|
|
74
74
|
defaultOptions: e.getQueryDefaults(a)
|
|
75
75
|
}), this.add(o)), o;
|
|
76
76
|
}
|
|
@@ -85,7 +85,7 @@ var I, nt, xn = (nt = class extends ut {
|
|
|
85
85
|
r && (e.destroy(), r === e && d(this, I).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
86
86
|
}
|
|
87
87
|
clear() {
|
|
88
|
-
|
|
88
|
+
R.batch(() => {
|
|
89
89
|
this.getAll().forEach((e) => {
|
|
90
90
|
this.remove(e);
|
|
91
91
|
});
|
|
@@ -100,48 +100,48 @@ var I, nt, xn = (nt = class extends ut {
|
|
|
100
100
|
find(e) {
|
|
101
101
|
const r = { exact: !0, ...e };
|
|
102
102
|
return this.getAll().find(
|
|
103
|
-
(
|
|
103
|
+
(n) => qe(r, n)
|
|
104
104
|
);
|
|
105
105
|
}
|
|
106
106
|
findAll(e = {}) {
|
|
107
107
|
const r = this.getAll();
|
|
108
|
-
return Object.keys(e).length > 0 ? r.filter((
|
|
108
|
+
return Object.keys(e).length > 0 ? r.filter((n) => qe(e, n)) : r;
|
|
109
109
|
}
|
|
110
110
|
notify(e) {
|
|
111
|
-
|
|
111
|
+
R.batch(() => {
|
|
112
112
|
this.listeners.forEach((r) => {
|
|
113
113
|
r(e);
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
onFocus() {
|
|
118
|
-
|
|
118
|
+
R.batch(() => {
|
|
119
119
|
this.getAll().forEach((e) => {
|
|
120
120
|
e.onFocus();
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
onOnline() {
|
|
125
|
-
|
|
125
|
+
R.batch(() => {
|
|
126
126
|
this.getAll().forEach((e) => {
|
|
127
127
|
e.onOnline();
|
|
128
128
|
});
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
-
}, I = new WeakMap(),
|
|
131
|
+
}, I = new WeakMap(), st), H, $, oe, nt, js = (nt = class extends ut {
|
|
132
132
|
constructor(e = {}) {
|
|
133
133
|
super();
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
k(this, H);
|
|
135
|
+
k(this, $);
|
|
136
|
+
k(this, oe);
|
|
137
137
|
this.config = e, M(this, H, /* @__PURE__ */ new Set()), M(this, $, /* @__PURE__ */ new Map()), M(this, oe, 0);
|
|
138
138
|
}
|
|
139
|
-
build(e, r,
|
|
140
|
-
const a = new
|
|
139
|
+
build(e, r, n) {
|
|
140
|
+
const a = new Mr({
|
|
141
141
|
mutationCache: this,
|
|
142
142
|
mutationId: ++ce(this, oe)._,
|
|
143
143
|
options: e.defaultMutationOptions(r),
|
|
144
|
-
state:
|
|
144
|
+
state: n
|
|
145
145
|
});
|
|
146
146
|
return this.add(a), a;
|
|
147
147
|
}
|
|
@@ -149,8 +149,8 @@ var I, nt, xn = (nt = class extends ut {
|
|
|
149
149
|
d(this, H).add(e);
|
|
150
150
|
const r = le(e);
|
|
151
151
|
if (typeof r == "string") {
|
|
152
|
-
const
|
|
153
|
-
|
|
152
|
+
const n = d(this, $).get(r);
|
|
153
|
+
n ? n.push(e) : d(this, $).set(r, [e]);
|
|
154
154
|
}
|
|
155
155
|
this.notify({ type: "added", mutation: e });
|
|
156
156
|
}
|
|
@@ -158,12 +158,12 @@ var I, nt, xn = (nt = class extends ut {
|
|
|
158
158
|
if (d(this, H).delete(e)) {
|
|
159
159
|
const r = le(e);
|
|
160
160
|
if (typeof r == "string") {
|
|
161
|
-
const
|
|
162
|
-
if (
|
|
163
|
-
if (
|
|
164
|
-
const a =
|
|
165
|
-
a !== -1 &&
|
|
166
|
-
} else
|
|
161
|
+
const n = d(this, $).get(r);
|
|
162
|
+
if (n)
|
|
163
|
+
if (n.length > 1) {
|
|
164
|
+
const a = n.indexOf(e);
|
|
165
|
+
a !== -1 && n.splice(a, 1);
|
|
166
|
+
} else n[0] === e && d(this, $).delete(r);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
this.notify({ type: "removed", mutation: e });
|
|
@@ -171,7 +171,7 @@ var I, nt, xn = (nt = class extends ut {
|
|
|
171
171
|
canRun(e) {
|
|
172
172
|
const r = le(e);
|
|
173
173
|
if (typeof r == "string") {
|
|
174
|
-
const
|
|
174
|
+
const n = d(this, $).get(r), a = n == null ? void 0 : n.find(
|
|
175
175
|
(i) => i.state.status === "pending"
|
|
176
176
|
);
|
|
177
177
|
return !a || a === e;
|
|
@@ -179,16 +179,16 @@ var I, nt, xn = (nt = class extends ut {
|
|
|
179
179
|
return !0;
|
|
180
180
|
}
|
|
181
181
|
runNext(e) {
|
|
182
|
-
var
|
|
182
|
+
var n;
|
|
183
183
|
const r = le(e);
|
|
184
184
|
if (typeof r == "string") {
|
|
185
|
-
const a = (
|
|
185
|
+
const a = (n = d(this, $).get(r)) == null ? void 0 : n.find((i) => i !== e && i.state.isPaused);
|
|
186
186
|
return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
|
|
187
187
|
} else
|
|
188
188
|
return Promise.resolve();
|
|
189
189
|
}
|
|
190
190
|
clear() {
|
|
191
|
-
|
|
191
|
+
R.batch(() => {
|
|
192
192
|
d(this, H).forEach((e) => {
|
|
193
193
|
this.notify({ type: "removed", mutation: e });
|
|
194
194
|
}), d(this, H).clear(), d(this, $).clear();
|
|
@@ -200,14 +200,14 @@ var I, nt, xn = (nt = class extends ut {
|
|
|
200
200
|
find(e) {
|
|
201
201
|
const r = { exact: !0, ...e };
|
|
202
202
|
return this.getAll().find(
|
|
203
|
-
(
|
|
203
|
+
(n) => $e(r, n)
|
|
204
204
|
);
|
|
205
205
|
}
|
|
206
206
|
findAll(e = {}) {
|
|
207
|
-
return this.getAll().filter((r) =>
|
|
207
|
+
return this.getAll().filter((r) => $e(e, r));
|
|
208
208
|
}
|
|
209
209
|
notify(e) {
|
|
210
|
-
|
|
210
|
+
R.batch(() => {
|
|
211
211
|
this.listeners.forEach((r) => {
|
|
212
212
|
r(e);
|
|
213
213
|
});
|
|
@@ -215,37 +215,37 @@ var I, nt, xn = (nt = class extends ut {
|
|
|
215
215
|
}
|
|
216
216
|
resumePausedMutations() {
|
|
217
217
|
const e = this.getAll().filter((r) => r.state.isPaused);
|
|
218
|
-
return
|
|
218
|
+
return R.batch(
|
|
219
219
|
() => Promise.all(
|
|
220
220
|
e.map((r) => r.continue().catch(B))
|
|
221
221
|
)
|
|
222
222
|
);
|
|
223
223
|
}
|
|
224
|
-
}, H = new WeakMap(), $ = new WeakMap(), oe = new WeakMap(),
|
|
224
|
+
}, H = new WeakMap(), $ = new WeakMap(), oe = new WeakMap(), nt);
|
|
225
225
|
function le(t) {
|
|
226
226
|
var e;
|
|
227
227
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function He(t) {
|
|
230
230
|
return {
|
|
231
231
|
onFetch: (e, r) => {
|
|
232
|
-
var b,
|
|
233
|
-
const
|
|
232
|
+
var b, v, g, y, m;
|
|
233
|
+
const n = e.options, a = (g = (v = (b = e.fetchOptions) == null ? void 0 : b.meta) == null ? void 0 : v.fetchMore) == null ? void 0 : g.direction, i = ((y = e.state.data) == null ? void 0 : y.pages) || [], o = ((m = e.state.data) == null ? void 0 : m.pageParams) || [];
|
|
234
234
|
let f = { pages: [], pageParams: [] }, h = 0;
|
|
235
235
|
const l = async () => {
|
|
236
|
-
let
|
|
237
|
-
const C = (
|
|
238
|
-
Object.defineProperty(
|
|
236
|
+
let p = !1;
|
|
237
|
+
const C = (x) => {
|
|
238
|
+
Object.defineProperty(x, "signal", {
|
|
239
239
|
enumerable: !0,
|
|
240
|
-
get: () => (e.signal.aborted ?
|
|
241
|
-
|
|
240
|
+
get: () => (e.signal.aborted ? p = !0 : e.signal.addEventListener("abort", () => {
|
|
241
|
+
p = !0;
|
|
242
242
|
}), e.signal)
|
|
243
243
|
});
|
|
244
|
-
},
|
|
245
|
-
if (
|
|
244
|
+
}, E = fr(e.options, e.fetchOptions), T = async (x, j, c) => {
|
|
245
|
+
if (p)
|
|
246
246
|
return Promise.reject();
|
|
247
|
-
if (j == null &&
|
|
248
|
-
return Promise.resolve(
|
|
247
|
+
if (j == null && x.pages.length)
|
|
248
|
+
return Promise.resolve(x);
|
|
249
249
|
const S = {
|
|
250
250
|
client: e.client,
|
|
251
251
|
queryKey: e.queryKey,
|
|
@@ -254,35 +254,35 @@ function Ke(t) {
|
|
|
254
254
|
meta: e.options.meta
|
|
255
255
|
};
|
|
256
256
|
C(S);
|
|
257
|
-
const D = await
|
|
257
|
+
const D = await E(
|
|
258
258
|
S
|
|
259
|
-
), { maxPages: q } = e.options, L = c ?
|
|
259
|
+
), { maxPages: q } = e.options, L = c ? hr : mr;
|
|
260
260
|
return {
|
|
261
|
-
pages: L(
|
|
262
|
-
pageParams: L(
|
|
261
|
+
pages: L(x.pages, D, q),
|
|
262
|
+
pageParams: L(x.pageParams, j, q)
|
|
263
263
|
};
|
|
264
264
|
};
|
|
265
265
|
if (a && i.length) {
|
|
266
|
-
const
|
|
266
|
+
const x = a === "backward", j = x ? ws : Ke, c = {
|
|
267
267
|
pages: i,
|
|
268
268
|
pageParams: o
|
|
269
|
-
}, S = j(
|
|
270
|
-
f = await T(c, S,
|
|
269
|
+
}, S = j(n, c);
|
|
270
|
+
f = await T(c, S, x);
|
|
271
271
|
} else {
|
|
272
|
-
const
|
|
272
|
+
const x = t ?? i.length;
|
|
273
273
|
do {
|
|
274
|
-
const j = h === 0 ? o[0] ??
|
|
274
|
+
const j = h === 0 ? o[0] ?? n.initialPageParam : Ke(n, f);
|
|
275
275
|
if (h > 0 && j == null)
|
|
276
276
|
break;
|
|
277
277
|
f = await T(f, j), h++;
|
|
278
|
-
} while (h <
|
|
278
|
+
} while (h < x);
|
|
279
279
|
}
|
|
280
280
|
return f;
|
|
281
281
|
};
|
|
282
282
|
e.options.persister ? e.fetchFn = () => {
|
|
283
|
-
var
|
|
284
|
-
return (C = (
|
|
285
|
-
|
|
283
|
+
var p, C;
|
|
284
|
+
return (C = (p = e.options).persister) == null ? void 0 : C.call(
|
|
285
|
+
p,
|
|
286
286
|
l,
|
|
287
287
|
{
|
|
288
288
|
client: e.client,
|
|
@@ -296,44 +296,44 @@ function Ke(t) {
|
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
const
|
|
299
|
+
function Ke(t, { pages: e, pageParams: r }) {
|
|
300
|
+
const n = e.length - 1;
|
|
301
301
|
return e.length > 0 ? t.getNextPageParam(
|
|
302
|
-
e[
|
|
302
|
+
e[n],
|
|
303
303
|
e,
|
|
304
|
-
r[
|
|
304
|
+
r[n],
|
|
305
305
|
r
|
|
306
306
|
) : void 0;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
309
|
-
var
|
|
310
|
-
return e.length > 0 ? (
|
|
308
|
+
function ws(t, { pages: e, pageParams: r }) {
|
|
309
|
+
var n;
|
|
310
|
+
return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, r[0], r) : void 0;
|
|
311
311
|
}
|
|
312
|
-
var
|
|
312
|
+
var N, Y, Z, te, re, V, se, ne, at, Ps = (at = class {
|
|
313
313
|
constructor(t = {}) {
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
M(this,
|
|
314
|
+
k(this, N);
|
|
315
|
+
k(this, Y);
|
|
316
|
+
k(this, Z);
|
|
317
|
+
k(this, te);
|
|
318
|
+
k(this, re);
|
|
319
|
+
k(this, V);
|
|
320
|
+
k(this, se);
|
|
321
|
+
k(this, ne);
|
|
322
|
+
M(this, N, t.queryCache || new bs()), M(this, Y, t.mutationCache || new js()), M(this, Z, t.defaultOptions || {}), M(this, te, /* @__PURE__ */ new Map()), M(this, re, /* @__PURE__ */ new Map()), M(this, V, 0);
|
|
323
323
|
}
|
|
324
324
|
mount() {
|
|
325
|
-
ce(this, V)._++, d(this, V) === 1 && (M(this,
|
|
326
|
-
t && (await this.resumePausedMutations(), d(this,
|
|
327
|
-
})), M(this,
|
|
328
|
-
t && (await this.resumePausedMutations(), d(this,
|
|
325
|
+
ce(this, V)._++, d(this, V) === 1 && (M(this, se, pr.subscribe(async (t) => {
|
|
326
|
+
t && (await this.resumePausedMutations(), d(this, N).onFocus());
|
|
327
|
+
})), M(this, ne, Ie.subscribe(async (t) => {
|
|
328
|
+
t && (await this.resumePausedMutations(), d(this, N).onOnline());
|
|
329
329
|
})));
|
|
330
330
|
}
|
|
331
331
|
unmount() {
|
|
332
332
|
var t, e;
|
|
333
|
-
ce(this, V)._--, d(this, V) === 0 && ((t = d(this,
|
|
333
|
+
ce(this, V)._--, d(this, V) === 0 && ((t = d(this, se)) == null || t.call(this), M(this, se, void 0), (e = d(this, ne)) == null || e.call(this), M(this, ne, void 0));
|
|
334
334
|
}
|
|
335
335
|
isFetching(t) {
|
|
336
|
-
return d(this,
|
|
336
|
+
return d(this, N).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
337
337
|
}
|
|
338
338
|
isMutating(t) {
|
|
339
339
|
return d(this, Y).findAll({ ...t, status: "pending" }).length;
|
|
@@ -348,52 +348,52 @@ var E, Y, Z, te, re, V, ne, se, at, jn = (at = class {
|
|
|
348
348
|
getQueryData(t) {
|
|
349
349
|
var r;
|
|
350
350
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
351
|
-
return (r = d(this,
|
|
351
|
+
return (r = d(this, N).get(e.queryHash)) == null ? void 0 : r.state.data;
|
|
352
352
|
}
|
|
353
353
|
ensureQueryData(t) {
|
|
354
|
-
const e = this.defaultQueryOptions(t), r = d(this,
|
|
355
|
-
return
|
|
354
|
+
const e = this.defaultQueryOptions(t), r = d(this, N).build(this, e), n = r.state.data;
|
|
355
|
+
return n === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && r.isStaleByTime(Fe(e.staleTime, r)) && this.prefetchQuery(e), Promise.resolve(n));
|
|
356
356
|
}
|
|
357
357
|
getQueriesData(t) {
|
|
358
|
-
return d(this,
|
|
359
|
-
const
|
|
360
|
-
return [e,
|
|
358
|
+
return d(this, N).findAll(t).map(({ queryKey: e, state: r }) => {
|
|
359
|
+
const n = r.data;
|
|
360
|
+
return [e, n];
|
|
361
361
|
});
|
|
362
362
|
}
|
|
363
363
|
setQueryData(t, e, r) {
|
|
364
|
-
const
|
|
365
|
-
|
|
364
|
+
const n = this.defaultQueryOptions({ queryKey: t }), a = d(this, N).get(
|
|
365
|
+
n.queryHash
|
|
366
366
|
), i = a == null ? void 0 : a.state.data, o = gr(e, i);
|
|
367
367
|
if (o !== void 0)
|
|
368
|
-
return d(this,
|
|
368
|
+
return d(this, N).build(this, n).setData(o, { ...r, manual: !0 });
|
|
369
369
|
}
|
|
370
370
|
setQueriesData(t, e, r) {
|
|
371
|
-
return
|
|
372
|
-
() => d(this,
|
|
373
|
-
|
|
374
|
-
this.setQueryData(
|
|
371
|
+
return R.batch(
|
|
372
|
+
() => d(this, N).findAll(t).map(({ queryKey: n }) => [
|
|
373
|
+
n,
|
|
374
|
+
this.setQueryData(n, e, r)
|
|
375
375
|
])
|
|
376
376
|
);
|
|
377
377
|
}
|
|
378
378
|
getQueryState(t) {
|
|
379
379
|
var r;
|
|
380
380
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
381
|
-
return (r = d(this,
|
|
381
|
+
return (r = d(this, N).get(
|
|
382
382
|
e.queryHash
|
|
383
383
|
)) == null ? void 0 : r.state;
|
|
384
384
|
}
|
|
385
385
|
removeQueries(t) {
|
|
386
|
-
const e = d(this,
|
|
387
|
-
|
|
386
|
+
const e = d(this, N);
|
|
387
|
+
R.batch(() => {
|
|
388
388
|
e.findAll(t).forEach((r) => {
|
|
389
389
|
e.remove(r);
|
|
390
390
|
});
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
393
|
resetQueries(t, e) {
|
|
394
|
-
const r = d(this,
|
|
395
|
-
return
|
|
396
|
-
|
|
394
|
+
const r = d(this, N);
|
|
395
|
+
return R.batch(() => (r.findAll(t).forEach((n) => {
|
|
396
|
+
n.reset();
|
|
397
397
|
}), this.refetchQueries(
|
|
398
398
|
{
|
|
399
399
|
type: "active",
|
|
@@ -403,13 +403,13 @@ var E, Y, Z, te, re, V, ne, se, at, jn = (at = class {
|
|
|
403
403
|
)));
|
|
404
404
|
}
|
|
405
405
|
cancelQueries(t, e = {}) {
|
|
406
|
-
const r = { revert: !0, ...e },
|
|
407
|
-
() => d(this,
|
|
406
|
+
const r = { revert: !0, ...e }, n = R.batch(
|
|
407
|
+
() => d(this, N).findAll(t).map((a) => a.cancel(r))
|
|
408
408
|
);
|
|
409
|
-
return Promise.all(
|
|
409
|
+
return Promise.all(n).then(B).catch(B);
|
|
410
410
|
}
|
|
411
411
|
invalidateQueries(t, e = {}) {
|
|
412
|
-
return
|
|
412
|
+
return R.batch(() => (d(this, N).findAll(t).forEach((r) => {
|
|
413
413
|
r.invalidate();
|
|
414
414
|
}), (t == null ? void 0 : t.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
|
|
415
415
|
{
|
|
@@ -423,39 +423,39 @@ var E, Y, Z, te, re, V, ne, se, at, jn = (at = class {
|
|
|
423
423
|
const r = {
|
|
424
424
|
...e,
|
|
425
425
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
426
|
-
},
|
|
427
|
-
() => d(this,
|
|
426
|
+
}, n = R.batch(
|
|
427
|
+
() => d(this, N).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
|
|
428
428
|
let i = a.fetch(void 0, r);
|
|
429
429
|
return r.throwOnError || (i = i.catch(B)), a.state.fetchStatus === "paused" ? Promise.resolve() : i;
|
|
430
430
|
})
|
|
431
431
|
);
|
|
432
|
-
return Promise.all(
|
|
432
|
+
return Promise.all(n).then(B);
|
|
433
433
|
}
|
|
434
434
|
fetchQuery(t) {
|
|
435
435
|
const e = this.defaultQueryOptions(t);
|
|
436
436
|
e.retry === void 0 && (e.retry = !1);
|
|
437
|
-
const r = d(this,
|
|
437
|
+
const r = d(this, N).build(this, e);
|
|
438
438
|
return r.isStaleByTime(
|
|
439
|
-
|
|
439
|
+
Fe(e.staleTime, r)
|
|
440
440
|
) ? r.fetch(e) : Promise.resolve(r.state.data);
|
|
441
441
|
}
|
|
442
442
|
prefetchQuery(t) {
|
|
443
443
|
return this.fetchQuery(t).then(B).catch(B);
|
|
444
444
|
}
|
|
445
445
|
fetchInfiniteQuery(t) {
|
|
446
|
-
return t.behavior =
|
|
446
|
+
return t.behavior = He(t.pages), this.fetchQuery(t);
|
|
447
447
|
}
|
|
448
448
|
prefetchInfiniteQuery(t) {
|
|
449
449
|
return this.fetchInfiniteQuery(t).then(B).catch(B);
|
|
450
450
|
}
|
|
451
451
|
ensureInfiniteQueryData(t) {
|
|
452
|
-
return t.behavior =
|
|
452
|
+
return t.behavior = He(t.pages), this.ensureQueryData(t);
|
|
453
453
|
}
|
|
454
454
|
resumePausedMutations() {
|
|
455
|
-
return
|
|
455
|
+
return Ie.isOnline() ? d(this, Y).resumePausedMutations() : Promise.resolve();
|
|
456
456
|
}
|
|
457
457
|
getQueryCache() {
|
|
458
|
-
return d(this,
|
|
458
|
+
return d(this, N);
|
|
459
459
|
}
|
|
460
460
|
getMutationCache() {
|
|
461
461
|
return d(this, Y);
|
|
@@ -467,27 +467,27 @@ var E, Y, Z, te, re, V, ne, se, at, jn = (at = class {
|
|
|
467
467
|
M(this, Z, t);
|
|
468
468
|
}
|
|
469
469
|
setQueryDefaults(t, e) {
|
|
470
|
-
d(this, te).set(
|
|
470
|
+
d(this, te).set(Qe(t), {
|
|
471
471
|
queryKey: t,
|
|
472
472
|
defaultOptions: e
|
|
473
473
|
});
|
|
474
474
|
}
|
|
475
475
|
getQueryDefaults(t) {
|
|
476
476
|
const e = [...d(this, te).values()], r = {};
|
|
477
|
-
return e.forEach((
|
|
478
|
-
|
|
477
|
+
return e.forEach((n) => {
|
|
478
|
+
ze(t, n.queryKey) && Object.assign(r, n.defaultOptions);
|
|
479
479
|
}), r;
|
|
480
480
|
}
|
|
481
481
|
setMutationDefaults(t, e) {
|
|
482
|
-
d(this, re).set(
|
|
482
|
+
d(this, re).set(Qe(t), {
|
|
483
483
|
mutationKey: t,
|
|
484
484
|
defaultOptions: e
|
|
485
485
|
});
|
|
486
486
|
}
|
|
487
487
|
getMutationDefaults(t) {
|
|
488
488
|
const e = [...d(this, re).values()], r = {};
|
|
489
|
-
return e.forEach((
|
|
490
|
-
|
|
489
|
+
return e.forEach((n) => {
|
|
490
|
+
ze(t, n.mutationKey) && Object.assign(r, n.defaultOptions);
|
|
491
491
|
}), r;
|
|
492
492
|
}
|
|
493
493
|
defaultQueryOptions(t) {
|
|
@@ -502,7 +502,7 @@ var E, Y, Z, te, re, V, ne, se, at, jn = (at = class {
|
|
|
502
502
|
return e.queryHash || (e.queryHash = dt(
|
|
503
503
|
e.queryKey,
|
|
504
504
|
e
|
|
505
|
-
)), 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 ===
|
|
505
|
+
)), 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 === xr && (e.enabled = !1), e;
|
|
506
506
|
}
|
|
507
507
|
defaultMutationOptions(t) {
|
|
508
508
|
return t != null && t._defaulted ? t : {
|
|
@@ -513,98 +513,98 @@ var E, Y, Z, te, re, V, ne, se, at, jn = (at = class {
|
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
515
|
clear() {
|
|
516
|
-
d(this,
|
|
516
|
+
d(this, N).clear(), d(this, Y).clear();
|
|
517
517
|
}
|
|
518
|
-
},
|
|
519
|
-
function
|
|
518
|
+
}, N = new WeakMap(), Y = new WeakMap(), Z = new WeakMap(), te = new WeakMap(), re = new WeakMap(), V = new WeakMap(), se = new WeakMap(), ne = new WeakMap(), at);
|
|
519
|
+
function Ss(t) {
|
|
520
520
|
return t;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Ue(t, e, r) {
|
|
523
523
|
var h, l;
|
|
524
524
|
if (typeof e != "object" || e === null)
|
|
525
525
|
return;
|
|
526
|
-
const
|
|
527
|
-
o.forEach(({ state: b, ...
|
|
528
|
-
var
|
|
529
|
-
|
|
526
|
+
const n = t.getMutationCache(), a = t.getQueryCache(), i = ((h = r == null ? void 0 : r.defaultOptions) == null ? void 0 : h.deserializeData) ?? ((l = t.getDefaultOptions().hydrate) == null ? void 0 : l.deserializeData) ?? Ss, o = e.mutations || [], f = e.queries || [];
|
|
527
|
+
o.forEach(({ state: b, ...v }) => {
|
|
528
|
+
var g, y;
|
|
529
|
+
n.build(
|
|
530
530
|
t,
|
|
531
531
|
{
|
|
532
|
-
...(
|
|
532
|
+
...(g = t.getDefaultOptions().hydrate) == null ? void 0 : g.mutations,
|
|
533
533
|
...(y = r == null ? void 0 : r.defaultOptions) == null ? void 0 : y.mutations,
|
|
534
|
-
...
|
|
534
|
+
...v
|
|
535
535
|
},
|
|
536
536
|
b
|
|
537
537
|
);
|
|
538
|
-
}), f.forEach(({ queryKey: b, state:
|
|
539
|
-
var
|
|
540
|
-
let
|
|
541
|
-
const C =
|
|
542
|
-
if (
|
|
543
|
-
if (
|
|
544
|
-
const { fetchStatus:
|
|
545
|
-
|
|
538
|
+
}), f.forEach(({ queryKey: b, state: v, queryHash: g, meta: y, promise: m }) => {
|
|
539
|
+
var E, T;
|
|
540
|
+
let p = a.get(g);
|
|
541
|
+
const C = v.data === void 0 ? v.data : i(v.data);
|
|
542
|
+
if (p) {
|
|
543
|
+
if (p.state.dataUpdatedAt < v.dataUpdatedAt) {
|
|
544
|
+
const { fetchStatus: x, ...j } = v;
|
|
545
|
+
p.setState({
|
|
546
546
|
...j,
|
|
547
547
|
data: C
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
550
|
} else
|
|
551
|
-
|
|
551
|
+
p = a.build(
|
|
552
552
|
t,
|
|
553
553
|
{
|
|
554
|
-
...(
|
|
554
|
+
...(E = t.getDefaultOptions().hydrate) == null ? void 0 : E.queries,
|
|
555
555
|
...(T = r == null ? void 0 : r.defaultOptions) == null ? void 0 : T.queries,
|
|
556
556
|
queryKey: b,
|
|
557
|
-
queryHash:
|
|
557
|
+
queryHash: g,
|
|
558
558
|
meta: y
|
|
559
559
|
},
|
|
560
560
|
// Reset fetch status to idle to avoid
|
|
561
561
|
// query being stuck in fetching state upon hydration
|
|
562
562
|
{
|
|
563
|
-
...
|
|
563
|
+
...v,
|
|
564
564
|
data: C,
|
|
565
565
|
fetchStatus: "idle"
|
|
566
566
|
}
|
|
567
567
|
);
|
|
568
568
|
if (m) {
|
|
569
|
-
const
|
|
570
|
-
|
|
569
|
+
const x = Promise.resolve(m).then(i);
|
|
570
|
+
p.fetch(void 0, { initialPromise: x });
|
|
571
571
|
}
|
|
572
572
|
});
|
|
573
573
|
}
|
|
574
|
-
var
|
|
574
|
+
var Ye = (t, e) => typeof t == "object" && t !== null && e in t, Cs = ({
|
|
575
575
|
children: t,
|
|
576
576
|
options: e = {},
|
|
577
577
|
state: r,
|
|
578
|
-
queryClient:
|
|
578
|
+
queryClient: n
|
|
579
579
|
}) => {
|
|
580
|
-
const a = ft(
|
|
580
|
+
const a = ft(n), [i, o] = K.useState(), f = K.useRef(e);
|
|
581
581
|
return f.current = e, K.useMemo(() => {
|
|
582
582
|
if (r) {
|
|
583
583
|
if (typeof r != "object")
|
|
584
584
|
return;
|
|
585
|
-
const h = a.getQueryCache(), l = r.queries || [], b = [],
|
|
586
|
-
for (const
|
|
587
|
-
const y = h.get(
|
|
585
|
+
const h = a.getQueryCache(), l = r.queries || [], b = [], v = [];
|
|
586
|
+
for (const g of l) {
|
|
587
|
+
const y = h.get(g.queryHash);
|
|
588
588
|
if (!y)
|
|
589
|
-
b.push(
|
|
589
|
+
b.push(g);
|
|
590
590
|
else {
|
|
591
|
-
const m =
|
|
592
|
-
|
|
593
|
-
(C) => C.queryHash ===
|
|
591
|
+
const m = g.state.dataUpdatedAt > y.state.dataUpdatedAt || // RSC special serialized then-able chunks
|
|
592
|
+
Ye(g.promise, "status") && Ye(y.promise, "status") && g.promise.status !== y.promise.status, p = i == null ? void 0 : i.find(
|
|
593
|
+
(C) => C.queryHash === g.queryHash
|
|
594
594
|
);
|
|
595
|
-
m && (!
|
|
595
|
+
m && (!p || g.state.dataUpdatedAt > p.state.dataUpdatedAt) && v.push(g);
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
-
b.length > 0 &&
|
|
599
|
-
(
|
|
598
|
+
b.length > 0 && Ue(a, { queries: b }, f.current), v.length > 0 && o(
|
|
599
|
+
(g) => g ? [...g, ...v] : v
|
|
600
600
|
);
|
|
601
601
|
}
|
|
602
602
|
}, [a, i, r]), K.useEffect(() => {
|
|
603
|
-
i && (
|
|
603
|
+
i && (Ue(a, { queries: i }, f.current), o(void 0));
|
|
604
604
|
}, [a, i]), t;
|
|
605
605
|
};
|
|
606
|
-
function
|
|
607
|
-
return /* @__PURE__ */
|
|
606
|
+
function Ns({ error: t }) {
|
|
607
|
+
return /* @__PURE__ */ s.jsx(pt, { error: t });
|
|
608
608
|
}
|
|
609
609
|
/**
|
|
610
610
|
* react-router v7.5.0
|
|
@@ -616,44 +616,80 @@ function Sn({ error: t }) {
|
|
|
616
616
|
*
|
|
617
617
|
* @license MIT
|
|
618
618
|
*/
|
|
619
|
-
function
|
|
620
|
-
return /* @__PURE__ */ K.createElement(
|
|
619
|
+
function Es(t) {
|
|
620
|
+
return /* @__PURE__ */ K.createElement(cr, { flushSync: kr.flushSync, ...t });
|
|
621
621
|
}
|
|
622
|
-
const Ne =
|
|
622
|
+
const Ne = Me({ stagger: !1 }), Ts = new Ps({
|
|
623
623
|
defaultOptions: {
|
|
624
624
|
queries: {
|
|
625
625
|
staleTime: 1e3 * 60 * 5
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
|
-
}),
|
|
628
|
+
}), Ms = ({
|
|
629
629
|
router: t,
|
|
630
630
|
hydrate: e = !1
|
|
631
|
-
}) => /* @__PURE__ */
|
|
631
|
+
}) => /* @__PURE__ */ s.jsx(xt, { children: /* @__PURE__ */ s.jsx(ht, { client: Ts, children: /* @__PURE__ */ s.jsx(Cs, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ s.jsx(ot, { value: !1, children: /* @__PURE__ */ s.jsx(it, { children: /* @__PURE__ */ s.jsx(Ne.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ s.jsx(Es, { router: t }) }) }) }) }) }) }), Os = ({
|
|
632
632
|
router: t,
|
|
633
633
|
context: e,
|
|
634
634
|
queryClient: r,
|
|
635
|
-
helmetContext:
|
|
635
|
+
helmetContext: n,
|
|
636
636
|
bypassProtection: a = !1
|
|
637
|
-
}) => /* @__PURE__ */
|
|
638
|
-
|
|
637
|
+
}) => /* @__PURE__ */ s.jsx(xt, { children: /* @__PURE__ */ s.jsx(ht, { client: r, children: /* @__PURE__ */ s.jsx(it, { context: n, children: /* @__PURE__ */ s.jsx(ot, { value: a, children: /* @__PURE__ */ s.jsx(lr, { router: t, context: e }) }) }) }) }), As = ({
|
|
638
|
+
buildId: t,
|
|
639
|
+
endpoint: e = "/__zuplo/docs"
|
|
640
|
+
}) => {
|
|
641
|
+
var a, i;
|
|
642
|
+
const r = vr({
|
|
643
|
+
queryKey: ["zuplo-build-check", t, e],
|
|
644
|
+
refetchInterval: 2e3,
|
|
645
|
+
enabled: !!t,
|
|
646
|
+
queryFn: () => fetch(e).then((o) => o.json())
|
|
647
|
+
});
|
|
648
|
+
if (((a = r.data) == null ? void 0 : a.buildId) === t)
|
|
649
|
+
return null;
|
|
650
|
+
const n = ((i = r.data) == null ? void 0 : i.status) === "completed";
|
|
651
|
+
return /* @__PURE__ */ s.jsxs("div", { className: "fixed flex flex-col gap-3 p-4 rounded-xl w-96 border z-20 bg-background left-0 right-0 top-4 mx-auto shadow-lg", children: [
|
|
652
|
+
n ? /* @__PURE__ */ s.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
653
|
+
/* @__PURE__ */ s.jsx(Rr, { size: 16 }),
|
|
654
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "New version available" })
|
|
655
|
+
] }) : /* @__PURE__ */ s.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
656
|
+
/* @__PURE__ */ s.jsx(_r, { size: 16, className: "animate-spin" }),
|
|
657
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Building new version..." })
|
|
658
|
+
] }),
|
|
659
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-xs", children: n ? "To see the new version, reload the page now." : "A new version of the developer portal will be available soon." }),
|
|
660
|
+
/* @__PURE__ */ s.jsx(
|
|
661
|
+
gt,
|
|
662
|
+
{
|
|
663
|
+
variant: "outline",
|
|
664
|
+
size: "sm",
|
|
665
|
+
className: "w-full",
|
|
666
|
+
onClick: () => {
|
|
667
|
+
window.location.reload();
|
|
668
|
+
},
|
|
669
|
+
children: "Reload"
|
|
670
|
+
}
|
|
671
|
+
)
|
|
672
|
+
] });
|
|
673
|
+
}, ks = () => {
|
|
674
|
+
const t = pe(), e = G(t.pathname);
|
|
639
675
|
Q(() => {
|
|
640
|
-
const r = e.current !== t.pathname,
|
|
641
|
-
r && !
|
|
676
|
+
const r = e.current !== t.pathname, n = t.hash !== "";
|
|
677
|
+
r && !n && window.scrollTo(0, 0), e.current = t.pathname;
|
|
642
678
|
}, [t.pathname, t.hash]);
|
|
643
|
-
},
|
|
679
|
+
}, Rs = ({
|
|
644
680
|
icon: t
|
|
645
|
-
}) => typeof t == "string" ? /* @__PURE__ */
|
|
681
|
+
}) => typeof t == "string" ? /* @__PURE__ */ s.jsx(
|
|
646
682
|
"img",
|
|
647
683
|
{
|
|
648
684
|
src: `https://cdn.simpleicons.org/${t}/000000/ffffff`,
|
|
649
685
|
className: "size-5",
|
|
650
686
|
alt: t
|
|
651
687
|
}
|
|
652
|
-
) : t,
|
|
688
|
+
) : t, _s = (t) => /^https?:/.test(t), Ds = () => {
|
|
653
689
|
var r;
|
|
654
|
-
const { page: t } =
|
|
655
|
-
return e ? /* @__PURE__ */
|
|
656
|
-
/* @__PURE__ */
|
|
690
|
+
const { page: t } = Pn(), e = t == null ? void 0 : t.footer;
|
|
691
|
+
return e ? /* @__PURE__ */ s.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ s.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
|
|
692
|
+
/* @__PURE__ */ s.jsxs(
|
|
657
693
|
"div",
|
|
658
694
|
{
|
|
659
695
|
className: O("flex flex-row gap-8", {
|
|
@@ -662,25 +698,25 @@ const Ne = Oe({ stagger: !1 }), En = new jn({
|
|
|
662
698
|
"justify-end": e.position === "end"
|
|
663
699
|
}),
|
|
664
700
|
children: [
|
|
665
|
-
/* @__PURE__ */
|
|
666
|
-
e.columns && /* @__PURE__ */
|
|
701
|
+
/* @__PURE__ */ s.jsx(_, { name: "footer-before" }),
|
|
702
|
+
e.columns && /* @__PURE__ */ s.jsx(
|
|
667
703
|
"div",
|
|
668
704
|
{
|
|
669
705
|
className: "w-full md:max-w-screen-md grid grid-cols-[1fr_1fr] gap-8 md:grid-cols-[repeat(var(--columns),minmax(0,1fr))]",
|
|
670
706
|
style: { "--columns": e.columns.length },
|
|
671
|
-
children: e.columns.map((
|
|
707
|
+
children: e.columns.map((n) => /* @__PURE__ */ s.jsxs(
|
|
672
708
|
"div",
|
|
673
709
|
{
|
|
674
710
|
className: O({
|
|
675
|
-
"justify-self-center": !
|
|
676
|
-
"justify-self-start":
|
|
677
|
-
"justify-self-end":
|
|
711
|
+
"justify-self-center": !n.position || n.position === "center",
|
|
712
|
+
"justify-self-start": n.position === "start",
|
|
713
|
+
"justify-self-end": n.position === "end"
|
|
678
714
|
}),
|
|
679
715
|
children: [
|
|
680
|
-
/* @__PURE__ */
|
|
681
|
-
/* @__PURE__ */
|
|
716
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-sm font-semibold", children: n.title }),
|
|
717
|
+
/* @__PURE__ */ s.jsx("ul", { className: "mt-4 space-y-2", children: n.links.map((a, i) => {
|
|
682
718
|
const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
|
|
683
|
-
return /* @__PURE__ */
|
|
719
|
+
return /* @__PURE__ */ s.jsx("li", { children: _s(a.href) ? /* @__PURE__ */ s.jsxs(
|
|
684
720
|
"a",
|
|
685
721
|
{
|
|
686
722
|
href: a.href,
|
|
@@ -688,30 +724,30 @@ const Ne = Oe({ stagger: !1 }), En = new jn({
|
|
|
688
724
|
rel: "noopener noreferrer",
|
|
689
725
|
className: o,
|
|
690
726
|
children: [
|
|
691
|
-
/* @__PURE__ */
|
|
692
|
-
/* @__PURE__ */
|
|
727
|
+
/* @__PURE__ */ s.jsx("span", { children: a.label }),
|
|
728
|
+
/* @__PURE__ */ s.jsx(Dr, { size: 12 })
|
|
693
729
|
]
|
|
694
730
|
}
|
|
695
|
-
) : /* @__PURE__ */
|
|
696
|
-
|
|
731
|
+
) : /* @__PURE__ */ s.jsx(
|
|
732
|
+
Br,
|
|
697
733
|
{
|
|
698
734
|
to: a.href + i,
|
|
699
735
|
className: o,
|
|
700
|
-
children: /* @__PURE__ */
|
|
736
|
+
children: /* @__PURE__ */ s.jsx("span", { children: a.label })
|
|
701
737
|
}
|
|
702
738
|
) }, a.href + i);
|
|
703
739
|
}) })
|
|
704
740
|
]
|
|
705
741
|
},
|
|
706
|
-
|
|
742
|
+
n.title
|
|
707
743
|
))
|
|
708
744
|
}
|
|
709
745
|
),
|
|
710
|
-
/* @__PURE__ */
|
|
746
|
+
/* @__PURE__ */ s.jsx(_, { name: "footer-after" })
|
|
711
747
|
]
|
|
712
748
|
}
|
|
713
749
|
),
|
|
714
|
-
/* @__PURE__ */
|
|
750
|
+
/* @__PURE__ */ s.jsxs(
|
|
715
751
|
"div",
|
|
716
752
|
{
|
|
717
753
|
className: O(
|
|
@@ -719,8 +755,8 @@ const Ne = Oe({ stagger: !1 }), En = new jn({
|
|
|
719
755
|
e.columns && "border-t mt-8 pt-8"
|
|
720
756
|
),
|
|
721
757
|
children: [
|
|
722
|
-
e.logo && /* @__PURE__ */
|
|
723
|
-
/* @__PURE__ */
|
|
758
|
+
e.logo && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
759
|
+
/* @__PURE__ */ s.jsx(
|
|
724
760
|
"img",
|
|
725
761
|
{
|
|
726
762
|
src: e.logo.src.light,
|
|
@@ -729,7 +765,7 @@ const Ne = Oe({ stagger: !1 }), En = new jn({
|
|
|
729
765
|
style: { width: e.logo.width }
|
|
730
766
|
}
|
|
731
767
|
),
|
|
732
|
-
/* @__PURE__ */
|
|
768
|
+
/* @__PURE__ */ s.jsx(
|
|
733
769
|
"img",
|
|
734
770
|
{
|
|
735
771
|
src: e.logo.src.dark,
|
|
@@ -739,31 +775,31 @@ const Ne = Oe({ stagger: !1 }), En = new jn({
|
|
|
739
775
|
}
|
|
740
776
|
)
|
|
741
777
|
] }),
|
|
742
|
-
e.copyright && /* @__PURE__ */
|
|
743
|
-
/* @__PURE__ */
|
|
778
|
+
e.copyright && /* @__PURE__ */ s.jsx("p", { className: "text-sm text-muted-foreground", children: e.copyright }),
|
|
779
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex items-center gap-2", children: (r = e.social) == null ? void 0 : r.map((n) => /* @__PURE__ */ s.jsxs(
|
|
744
780
|
"a",
|
|
745
781
|
{
|
|
746
|
-
href:
|
|
782
|
+
href: n.href,
|
|
747
783
|
target: "_blank",
|
|
748
784
|
rel: "noopener noreferrer",
|
|
749
785
|
className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
|
|
750
786
|
children: [
|
|
751
|
-
/* @__PURE__ */
|
|
752
|
-
|
|
787
|
+
/* @__PURE__ */ s.jsx(Rs, { icon: n.icon }),
|
|
788
|
+
n.label
|
|
753
789
|
]
|
|
754
790
|
},
|
|
755
|
-
|
|
791
|
+
n.href
|
|
756
792
|
)) })
|
|
757
793
|
]
|
|
758
794
|
}
|
|
759
795
|
)
|
|
760
796
|
] }) }) : null;
|
|
761
797
|
};
|
|
762
|
-
function
|
|
798
|
+
function qs({
|
|
763
799
|
className: t,
|
|
764
800
|
...e
|
|
765
801
|
}) {
|
|
766
|
-
return /* @__PURE__ */
|
|
802
|
+
return /* @__PURE__ */ s.jsx(
|
|
767
803
|
"div",
|
|
768
804
|
{
|
|
769
805
|
className: O("animate-pulse rounded-md bg-muted", t),
|
|
@@ -771,41 +807,41 @@ function kn({
|
|
|
771
807
|
}
|
|
772
808
|
);
|
|
773
809
|
}
|
|
774
|
-
const
|
|
810
|
+
const Ze = {
|
|
775
811
|
info: "bg-blue-500",
|
|
776
812
|
note: "bg-gray-500",
|
|
777
813
|
tip: "bg-green-600",
|
|
778
814
|
caution: "bg-orange-500",
|
|
779
815
|
danger: "bg-rose-500"
|
|
780
|
-
},
|
|
816
|
+
}, $s = () => {
|
|
781
817
|
const { page: t } = F(), [e, r] = J(!0);
|
|
782
818
|
if (!(t != null && t.banner) || !e)
|
|
783
|
-
return /* @__PURE__ */
|
|
784
|
-
const
|
|
785
|
-
return /* @__PURE__ */
|
|
819
|
+
return /* @__PURE__ */ s.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
820
|
+
const n = t.banner.color && t.banner.color in Ze ? Ze[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
|
|
821
|
+
return /* @__PURE__ */ s.jsxs(
|
|
786
822
|
"div",
|
|
787
823
|
{
|
|
788
824
|
className: O(
|
|
789
825
|
"relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
|
|
790
|
-
|
|
826
|
+
n
|
|
791
827
|
),
|
|
792
828
|
"data-pagefind-ignore": "all",
|
|
793
829
|
style: a,
|
|
794
830
|
children: [
|
|
795
|
-
/* @__PURE__ */
|
|
796
|
-
t.banner.dismissible && /* @__PURE__ */
|
|
831
|
+
/* @__PURE__ */ s.jsx("div", { className: "w-full", children: t.banner.message }),
|
|
832
|
+
t.banner.dismissible && /* @__PURE__ */ s.jsx(
|
|
797
833
|
"button",
|
|
798
834
|
{
|
|
799
835
|
type: "button",
|
|
800
836
|
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
801
837
|
onClick: () => r(!1),
|
|
802
|
-
children: /* @__PURE__ */
|
|
838
|
+
children: /* @__PURE__ */ s.jsx(qr, { size: 16 })
|
|
803
839
|
}
|
|
804
840
|
)
|
|
805
841
|
]
|
|
806
842
|
}
|
|
807
843
|
);
|
|
808
|
-
},
|
|
844
|
+
}, Ct = (t) => /* @__PURE__ */ s.jsxs(
|
|
809
845
|
"svg",
|
|
810
846
|
{
|
|
811
847
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -813,7 +849,7 @@ const Ve = {
|
|
|
813
849
|
fill: "none",
|
|
814
850
|
...t,
|
|
815
851
|
children: [
|
|
816
|
-
/* @__PURE__ */
|
|
852
|
+
/* @__PURE__ */ s.jsx(
|
|
817
853
|
"path",
|
|
818
854
|
{
|
|
819
855
|
fill: "currentColor",
|
|
@@ -822,7 +858,7 @@ const Ve = {
|
|
|
822
858
|
clipRule: "evenodd"
|
|
823
859
|
}
|
|
824
860
|
),
|
|
825
|
-
/* @__PURE__ */
|
|
861
|
+
/* @__PURE__ */ s.jsx(
|
|
826
862
|
"path",
|
|
827
863
|
{
|
|
828
864
|
fill: "currentColor",
|
|
@@ -832,8 +868,8 @@ const Ve = {
|
|
|
832
868
|
]
|
|
833
869
|
}
|
|
834
870
|
);
|
|
835
|
-
|
|
836
|
-
const
|
|
871
|
+
Ct.displayName = "ZudokuLogo";
|
|
872
|
+
const Nt = ({ className: t }) => /* @__PURE__ */ s.jsxs(
|
|
837
873
|
"a",
|
|
838
874
|
{
|
|
839
875
|
href: "https://zudoku.dev",
|
|
@@ -844,63 +880,64 @@ const Ct = ({ className: t }) => /* @__PURE__ */ n.jsxs(
|
|
|
844
880
|
t
|
|
845
881
|
),
|
|
846
882
|
children: [
|
|
847
|
-
/* @__PURE__ */
|
|
848
|
-
/* @__PURE__ */
|
|
849
|
-
"powered by
|
|
883
|
+
/* @__PURE__ */ s.jsxs("div", { className: "opacity-70 hover:opacity-100 transition-opacity gap-1.5 text-[11px] font-medium rounded-full h-7 flex items-center text-nowrap", children: [
|
|
884
|
+
/* @__PURE__ */ s.jsx(Ct, { className: "w-3.5 h-3.5 dark:fill-white" }),
|
|
885
|
+
"powered by ",
|
|
886
|
+
"Zudoku"
|
|
850
887
|
] }),
|
|
851
|
-
/* @__PURE__ */
|
|
888
|
+
/* @__PURE__ */ s.jsx("div", { className: "text-xs font-medium opacity-70 hover:text-foreground transition-colors cursor-pointer", children: /* @__PURE__ */ s.jsx($r, { size: 12, absoluteStrokeWidth: !0, strokeWidth: 1.5 }) })
|
|
852
889
|
]
|
|
853
890
|
}
|
|
854
891
|
);
|
|
855
|
-
function
|
|
892
|
+
function Is() {
|
|
856
893
|
const t = navigator.userAgent.toLowerCase();
|
|
857
894
|
if (t.includes("win")) return "Windows";
|
|
858
895
|
if (t.includes("mac")) return "macOS";
|
|
859
896
|
if (t.includes("linux")) return "Linux";
|
|
860
897
|
}
|
|
861
898
|
const Et = ({ className: t }) => {
|
|
862
|
-
const e = F(), [r,
|
|
899
|
+
const e = F(), [r, n] = J(!1), a = W(() => n(!1), []);
|
|
863
900
|
Q(() => {
|
|
864
901
|
if (r)
|
|
865
902
|
return;
|
|
866
903
|
function o(f) {
|
|
867
|
-
f.key === "k" && (f.metaKey || f.ctrlKey) && (f.preventDefault(),
|
|
904
|
+
f.key === "k" && (f.metaKey || f.ctrlKey) && (f.preventDefault(), n(!0));
|
|
868
905
|
}
|
|
869
906
|
return window.addEventListener("keydown", o), () => {
|
|
870
907
|
window.removeEventListener("keydown", o);
|
|
871
908
|
};
|
|
872
|
-
}, [r,
|
|
873
|
-
const i = e.plugins.find(
|
|
874
|
-
return i ? /* @__PURE__ */
|
|
875
|
-
/* @__PURE__ */
|
|
909
|
+
}, [r, n]);
|
|
910
|
+
const i = e.plugins.find(Xr);
|
|
911
|
+
return i ? /* @__PURE__ */ s.jsxs("div", { className: t, children: [
|
|
912
|
+
/* @__PURE__ */ s.jsxs(
|
|
876
913
|
"button",
|
|
877
914
|
{
|
|
878
915
|
type: "button",
|
|
879
|
-
onClick: () =>
|
|
916
|
+
onClick: () => n(!0),
|
|
880
917
|
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",
|
|
881
918
|
children: [
|
|
882
|
-
/* @__PURE__ */
|
|
883
|
-
/* @__PURE__ */
|
|
919
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
920
|
+
/* @__PURE__ */ s.jsx(Ir, { size: 14 }),
|
|
884
921
|
"Search"
|
|
885
922
|
] }),
|
|
886
|
-
/* @__PURE__ */
|
|
923
|
+
/* @__PURE__ */ s.jsx(xe, { children: /* @__PURE__ */ s.jsx(Fs, {}) })
|
|
887
924
|
]
|
|
888
925
|
}
|
|
889
926
|
),
|
|
890
|
-
/* @__PURE__ */
|
|
927
|
+
/* @__PURE__ */ s.jsx(Oe, { fallback: null, children: i.renderSearch({
|
|
891
928
|
isOpen: r,
|
|
892
929
|
onClose: a
|
|
893
930
|
}) })
|
|
894
931
|
] }) : null;
|
|
895
|
-
},
|
|
896
|
-
const t =
|
|
897
|
-
return /* @__PURE__ */
|
|
932
|
+
}, Fs = () => {
|
|
933
|
+
const t = Is();
|
|
934
|
+
return /* @__PURE__ */ s.jsxs("kbd", { className: "absolute right-1.5 hidden h-5 select-none items-center gap-1 rounded-sm border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: [
|
|
898
935
|
t === "macOS" ? "⌘" : "Ctrl",
|
|
899
936
|
"+K"
|
|
900
937
|
] });
|
|
901
|
-
},
|
|
938
|
+
}, Tt = () => {
|
|
902
939
|
const { resolvedTheme: t, setTheme: e } = ct();
|
|
903
|
-
return /* @__PURE__ */
|
|
940
|
+
return /* @__PURE__ */ s.jsx(xe, { fallback: /* @__PURE__ */ s.jsx(Se, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ s.jsxs(
|
|
904
941
|
"button",
|
|
905
942
|
{
|
|
906
943
|
type: "button",
|
|
@@ -908,7 +945,7 @@ const Et = ({ className: t }) => {
|
|
|
908
945
|
onClick: () => e(t === "dark" ? "light" : "dark"),
|
|
909
946
|
"aria-label": t === "dark" ? "Switch to light mode" : "Switch to dark mode",
|
|
910
947
|
children: [
|
|
911
|
-
/* @__PURE__ */
|
|
948
|
+
/* @__PURE__ */ s.jsx(
|
|
912
949
|
"div",
|
|
913
950
|
{
|
|
914
951
|
className: O(
|
|
@@ -916,10 +953,10 @@ const Et = ({ className: t }) => {
|
|
|
916
953
|
t === "light" && "border-border bg-muted",
|
|
917
954
|
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] "
|
|
918
955
|
),
|
|
919
|
-
children: /* @__PURE__ */
|
|
956
|
+
children: /* @__PURE__ */ s.jsx(Fr, { size: 16 })
|
|
920
957
|
}
|
|
921
958
|
),
|
|
922
|
-
/* @__PURE__ */
|
|
959
|
+
/* @__PURE__ */ s.jsx(
|
|
923
960
|
"div",
|
|
924
961
|
{
|
|
925
962
|
className: O(
|
|
@@ -927,7 +964,7 @@ const Et = ({ className: t }) => {
|
|
|
927
964
|
t === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
|
|
928
965
|
t === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
|
|
929
966
|
),
|
|
930
|
-
children: /* @__PURE__ */
|
|
967
|
+
children: /* @__PURE__ */ s.jsx(Qr, { size: 16 })
|
|
931
968
|
}
|
|
932
969
|
)
|
|
933
970
|
]
|
|
@@ -938,7 +975,7 @@ function me() {
|
|
|
938
975
|
return me = Object.assign ? Object.assign.bind() : function(t) {
|
|
939
976
|
for (var e = 1; e < arguments.length; e++) {
|
|
940
977
|
var r = arguments[e];
|
|
941
|
-
for (var
|
|
978
|
+
for (var n in r) ({}).hasOwnProperty.call(r, n) && (t[n] = r[n]);
|
|
942
979
|
}
|
|
943
980
|
return t;
|
|
944
981
|
}, me.apply(null, arguments);
|
|
@@ -952,12 +989,12 @@ var ue = { exports: {} }, w = {};
|
|
|
952
989
|
* This source code is licensed under the MIT license found in the
|
|
953
990
|
* LICENSE file in the root directory of this source tree.
|
|
954
991
|
*/
|
|
955
|
-
var
|
|
956
|
-
function
|
|
957
|
-
if (
|
|
958
|
-
|
|
959
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106,
|
|
960
|
-
function
|
|
992
|
+
var Ve;
|
|
993
|
+
function Qs() {
|
|
994
|
+
if (Ve) return w;
|
|
995
|
+
Ve = 1;
|
|
996
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, f = t ? Symbol.for("react.context") : 60110, h = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, b = t ? Symbol.for("react.forward_ref") : 60112, v = t ? Symbol.for("react.suspense") : 60113, g = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, m = t ? Symbol.for("react.lazy") : 60116, p = t ? Symbol.for("react.block") : 60121, C = t ? Symbol.for("react.fundamental") : 60117, E = t ? Symbol.for("react.responder") : 60118, T = t ? Symbol.for("react.scope") : 60119;
|
|
997
|
+
function x(c) {
|
|
961
998
|
if (typeof c == "object" && c !== null) {
|
|
962
999
|
var S = c.$$typeof;
|
|
963
1000
|
switch (S) {
|
|
@@ -965,10 +1002,10 @@ function $n() {
|
|
|
965
1002
|
switch (c = c.type, c) {
|
|
966
1003
|
case h:
|
|
967
1004
|
case l:
|
|
968
|
-
case
|
|
1005
|
+
case n:
|
|
969
1006
|
case i:
|
|
970
1007
|
case a:
|
|
971
|
-
case
|
|
1008
|
+
case v:
|
|
972
1009
|
return c;
|
|
973
1010
|
default:
|
|
974
1011
|
switch (c = c && c.$$typeof, c) {
|
|
@@ -988,35 +1025,35 @@ function $n() {
|
|
|
988
1025
|
}
|
|
989
1026
|
}
|
|
990
1027
|
function j(c) {
|
|
991
|
-
return
|
|
1028
|
+
return x(c) === l;
|
|
992
1029
|
}
|
|
993
|
-
return w.AsyncMode = h, w.ConcurrentMode = l, w.ContextConsumer = f, w.ContextProvider = o, w.Element = e, w.ForwardRef = b, w.Fragment =
|
|
994
|
-
return j(c) ||
|
|
1030
|
+
return w.AsyncMode = h, w.ConcurrentMode = l, w.ContextConsumer = f, w.ContextProvider = o, w.Element = e, w.ForwardRef = b, w.Fragment = n, w.Lazy = m, w.Memo = y, w.Portal = r, w.Profiler = i, w.StrictMode = a, w.Suspense = v, w.isAsyncMode = function(c) {
|
|
1031
|
+
return j(c) || x(c) === h;
|
|
995
1032
|
}, w.isConcurrentMode = j, w.isContextConsumer = function(c) {
|
|
996
|
-
return
|
|
1033
|
+
return x(c) === f;
|
|
997
1034
|
}, w.isContextProvider = function(c) {
|
|
998
|
-
return
|
|
1035
|
+
return x(c) === o;
|
|
999
1036
|
}, w.isElement = function(c) {
|
|
1000
1037
|
return typeof c == "object" && c !== null && c.$$typeof === e;
|
|
1001
1038
|
}, w.isForwardRef = function(c) {
|
|
1002
|
-
return
|
|
1039
|
+
return x(c) === b;
|
|
1003
1040
|
}, w.isFragment = function(c) {
|
|
1004
|
-
return
|
|
1041
|
+
return x(c) === n;
|
|
1005
1042
|
}, w.isLazy = function(c) {
|
|
1006
|
-
return
|
|
1043
|
+
return x(c) === m;
|
|
1007
1044
|
}, w.isMemo = function(c) {
|
|
1008
|
-
return
|
|
1045
|
+
return x(c) === y;
|
|
1009
1046
|
}, w.isPortal = function(c) {
|
|
1010
|
-
return
|
|
1047
|
+
return x(c) === r;
|
|
1011
1048
|
}, w.isProfiler = function(c) {
|
|
1012
|
-
return
|
|
1049
|
+
return x(c) === i;
|
|
1013
1050
|
}, w.isStrictMode = function(c) {
|
|
1014
|
-
return
|
|
1051
|
+
return x(c) === a;
|
|
1015
1052
|
}, w.isSuspense = function(c) {
|
|
1016
|
-
return
|
|
1053
|
+
return x(c) === v;
|
|
1017
1054
|
}, w.isValidElementType = function(c) {
|
|
1018
|
-
return typeof c == "string" || typeof c == "function" || c ===
|
|
1019
|
-
}, w.typeOf =
|
|
1055
|
+
return typeof c == "string" || typeof c == "function" || c === n || c === l || c === i || c === a || c === v || c === g || typeof c == "object" && c !== null && (c.$$typeof === m || c.$$typeof === y || c.$$typeof === o || c.$$typeof === f || c.$$typeof === b || c.$$typeof === C || c.$$typeof === E || c.$$typeof === T || c.$$typeof === p);
|
|
1056
|
+
}, w.typeOf = x, w;
|
|
1020
1057
|
}
|
|
1021
1058
|
var P = {};
|
|
1022
1059
|
/** @license React v16.13.1
|
|
@@ -1027,13 +1064,13 @@ var P = {};
|
|
|
1027
1064
|
* This source code is licensed under the MIT license found in the
|
|
1028
1065
|
* LICENSE file in the root directory of this source tree.
|
|
1029
1066
|
*/
|
|
1030
|
-
var
|
|
1031
|
-
function
|
|
1032
|
-
return
|
|
1033
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106,
|
|
1034
|
-
function
|
|
1067
|
+
var We;
|
|
1068
|
+
function zs() {
|
|
1069
|
+
return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1070
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, f = t ? Symbol.for("react.context") : 60110, h = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, b = t ? Symbol.for("react.forward_ref") : 60112, v = t ? Symbol.for("react.suspense") : 60113, g = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, m = t ? Symbol.for("react.lazy") : 60116, p = t ? Symbol.for("react.block") : 60121, C = t ? Symbol.for("react.fundamental") : 60117, E = t ? Symbol.for("react.responder") : 60118, T = t ? Symbol.for("react.scope") : 60119;
|
|
1071
|
+
function x(u) {
|
|
1035
1072
|
return typeof u == "string" || typeof u == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1036
|
-
u ===
|
|
1073
|
+
u === n || u === l || u === i || u === a || u === v || u === g || typeof u == "object" && u !== null && (u.$$typeof === m || u.$$typeof === y || u.$$typeof === o || u.$$typeof === f || u.$$typeof === b || u.$$typeof === C || u.$$typeof === E || u.$$typeof === T || u.$$typeof === p);
|
|
1037
1074
|
}
|
|
1038
1075
|
function j(u) {
|
|
1039
1076
|
if (typeof u == "object" && u !== null) {
|
|
@@ -1044,20 +1081,20 @@ function In() {
|
|
|
1044
1081
|
switch (ie) {
|
|
1045
1082
|
case h:
|
|
1046
1083
|
case l:
|
|
1047
|
-
case
|
|
1084
|
+
case n:
|
|
1048
1085
|
case i:
|
|
1049
1086
|
case a:
|
|
1050
|
-
case
|
|
1087
|
+
case v:
|
|
1051
1088
|
return ie;
|
|
1052
1089
|
default:
|
|
1053
|
-
var
|
|
1054
|
-
switch (
|
|
1090
|
+
var Re = ie && ie.$$typeof;
|
|
1091
|
+
switch (Re) {
|
|
1055
1092
|
case f:
|
|
1056
1093
|
case b:
|
|
1057
1094
|
case m:
|
|
1058
1095
|
case y:
|
|
1059
1096
|
case o:
|
|
1060
|
-
return
|
|
1097
|
+
return Re;
|
|
1061
1098
|
default:
|
|
1062
1099
|
return ye;
|
|
1063
1100
|
}
|
|
@@ -1067,58 +1104,58 @@ function In() {
|
|
|
1067
1104
|
}
|
|
1068
1105
|
}
|
|
1069
1106
|
}
|
|
1070
|
-
var c = h, S = l, D = f, q = o, L = e, U = b,
|
|
1071
|
-
function
|
|
1072
|
-
return
|
|
1107
|
+
var c = h, S = l, D = f, q = o, L = e, U = b, ve = n, X = m, zt = y, Lt = r, Bt = i, Ht = a, Kt = v, Ae = !1;
|
|
1108
|
+
function Ut(u) {
|
|
1109
|
+
return Ae || (Ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ke(u) || j(u) === h;
|
|
1073
1110
|
}
|
|
1074
1111
|
function ke(u) {
|
|
1075
1112
|
return j(u) === l;
|
|
1076
1113
|
}
|
|
1077
|
-
function Ut(u) {
|
|
1078
|
-
return j(u) === f;
|
|
1079
|
-
}
|
|
1080
1114
|
function Yt(u) {
|
|
1081
|
-
return j(u) ===
|
|
1115
|
+
return j(u) === f;
|
|
1082
1116
|
}
|
|
1083
1117
|
function Zt(u) {
|
|
1084
|
-
return
|
|
1118
|
+
return j(u) === o;
|
|
1085
1119
|
}
|
|
1086
1120
|
function Vt(u) {
|
|
1087
|
-
return
|
|
1121
|
+
return typeof u == "object" && u !== null && u.$$typeof === e;
|
|
1088
1122
|
}
|
|
1089
1123
|
function Wt(u) {
|
|
1090
|
-
return j(u) ===
|
|
1124
|
+
return j(u) === b;
|
|
1091
1125
|
}
|
|
1092
1126
|
function Gt(u) {
|
|
1093
|
-
return j(u) ===
|
|
1127
|
+
return j(u) === n;
|
|
1094
1128
|
}
|
|
1095
1129
|
function Xt(u) {
|
|
1096
|
-
return j(u) ===
|
|
1130
|
+
return j(u) === m;
|
|
1097
1131
|
}
|
|
1098
1132
|
function Jt(u) {
|
|
1099
|
-
return j(u) ===
|
|
1133
|
+
return j(u) === y;
|
|
1100
1134
|
}
|
|
1101
1135
|
function er(u) {
|
|
1102
|
-
return j(u) ===
|
|
1136
|
+
return j(u) === r;
|
|
1103
1137
|
}
|
|
1104
1138
|
function tr(u) {
|
|
1105
|
-
return j(u) ===
|
|
1139
|
+
return j(u) === i;
|
|
1106
1140
|
}
|
|
1107
1141
|
function rr(u) {
|
|
1108
|
-
return j(u) ===
|
|
1142
|
+
return j(u) === a;
|
|
1109
1143
|
}
|
|
1110
|
-
|
|
1144
|
+
function sr(u) {
|
|
1145
|
+
return j(u) === v;
|
|
1146
|
+
}
|
|
1147
|
+
P.AsyncMode = c, P.ConcurrentMode = S, P.ContextConsumer = D, P.ContextProvider = q, P.Element = L, P.ForwardRef = U, P.Fragment = ve, P.Lazy = X, P.Memo = zt, P.Portal = Lt, P.Profiler = Bt, P.StrictMode = Ht, P.Suspense = Kt, P.isAsyncMode = Ut, P.isConcurrentMode = ke, P.isContextConsumer = Yt, P.isContextProvider = Zt, P.isElement = Vt, P.isForwardRef = Wt, P.isFragment = Gt, P.isLazy = Xt, P.isMemo = Jt, P.isPortal = er, P.isProfiler = tr, P.isStrictMode = rr, P.isSuspense = sr, P.isValidElementType = x, P.typeOf = j;
|
|
1111
1148
|
}()), P;
|
|
1112
1149
|
}
|
|
1113
|
-
var
|
|
1114
|
-
function
|
|
1115
|
-
return
|
|
1150
|
+
var Ge;
|
|
1151
|
+
function Ls() {
|
|
1152
|
+
return Ge || (Ge = 1, process.env.NODE_ENV === "production" ? ue.exports = Qs() : ue.exports = zs()), ue.exports;
|
|
1116
1153
|
}
|
|
1117
|
-
var we,
|
|
1118
|
-
function
|
|
1119
|
-
if (
|
|
1120
|
-
|
|
1121
|
-
var t =
|
|
1154
|
+
var we, Xe;
|
|
1155
|
+
function Bs() {
|
|
1156
|
+
if (Xe) return we;
|
|
1157
|
+
Xe = 1;
|
|
1158
|
+
var t = Ls(), e = {
|
|
1122
1159
|
childContextTypes: !0,
|
|
1123
1160
|
contextType: !0,
|
|
1124
1161
|
contextTypes: !0,
|
|
@@ -1138,7 +1175,7 @@ function Qn() {
|
|
|
1138
1175
|
callee: !0,
|
|
1139
1176
|
arguments: !0,
|
|
1140
1177
|
arity: !0
|
|
1141
|
-
},
|
|
1178
|
+
}, n = {
|
|
1142
1179
|
$$typeof: !0,
|
|
1143
1180
|
render: !0,
|
|
1144
1181
|
defaultProps: !0,
|
|
@@ -1152,23 +1189,23 @@ function Qn() {
|
|
|
1152
1189
|
propTypes: !0,
|
|
1153
1190
|
type: !0
|
|
1154
1191
|
}, i = {};
|
|
1155
|
-
i[t.ForwardRef] =
|
|
1192
|
+
i[t.ForwardRef] = n, i[t.Memo] = a;
|
|
1156
1193
|
function o(m) {
|
|
1157
1194
|
return t.isMemo(m) ? a : i[m.$$typeof] || e;
|
|
1158
1195
|
}
|
|
1159
|
-
var f = Object.defineProperty, h = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, b = Object.getOwnPropertyDescriptor,
|
|
1160
|
-
function y(m,
|
|
1161
|
-
if (typeof
|
|
1162
|
-
if (
|
|
1163
|
-
var
|
|
1164
|
-
|
|
1196
|
+
var f = Object.defineProperty, h = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, b = Object.getOwnPropertyDescriptor, v = Object.getPrototypeOf, g = Object.prototype;
|
|
1197
|
+
function y(m, p, C) {
|
|
1198
|
+
if (typeof p != "string") {
|
|
1199
|
+
if (g) {
|
|
1200
|
+
var E = v(p);
|
|
1201
|
+
E && E !== g && y(m, E, C);
|
|
1165
1202
|
}
|
|
1166
|
-
var T = h(
|
|
1167
|
-
l && (T = T.concat(l(
|
|
1168
|
-
for (var
|
|
1203
|
+
var T = h(p);
|
|
1204
|
+
l && (T = T.concat(l(p)));
|
|
1205
|
+
for (var x = o(m), j = o(p), c = 0; c < T.length; ++c) {
|
|
1169
1206
|
var S = T[c];
|
|
1170
|
-
if (!r[S] && !(C && C[S]) && !(j && j[S]) && !(
|
|
1171
|
-
var D = b(
|
|
1207
|
+
if (!r[S] && !(C && C[S]) && !(j && j[S]) && !(x && x[S])) {
|
|
1208
|
+
var D = b(p, S);
|
|
1172
1209
|
try {
|
|
1173
1210
|
f(m, S, D);
|
|
1174
1211
|
} catch {
|
|
@@ -1180,31 +1217,31 @@ function Qn() {
|
|
|
1180
1217
|
}
|
|
1181
1218
|
return we = y, we;
|
|
1182
1219
|
}
|
|
1183
|
-
|
|
1184
|
-
var
|
|
1185
|
-
return e = e <=
|
|
1186
|
-
},
|
|
1187
|
-
var e = !1, r = [],
|
|
1220
|
+
Bs();
|
|
1221
|
+
var Mt = function(e, r, n) {
|
|
1222
|
+
return e = e <= n ? e : n, e = e >= r ? e : r, e;
|
|
1223
|
+
}, Hs = function() {
|
|
1224
|
+
var e = !1, r = [], n = function() {
|
|
1188
1225
|
e = !0;
|
|
1189
1226
|
var f = r.shift();
|
|
1190
1227
|
if (f)
|
|
1191
|
-
return f(
|
|
1228
|
+
return f(n);
|
|
1192
1229
|
e = !1;
|
|
1193
1230
|
}, a = function() {
|
|
1194
1231
|
e = !1, r = [];
|
|
1195
1232
|
}, i = function(f) {
|
|
1196
|
-
r.push(f), !e && r.length === 1 &&
|
|
1233
|
+
r.push(f), !e && r.length === 1 && n();
|
|
1197
1234
|
};
|
|
1198
1235
|
return {
|
|
1199
1236
|
clear: a,
|
|
1200
1237
|
enqueue: i
|
|
1201
1238
|
};
|
|
1202
|
-
},
|
|
1239
|
+
}, Ks = function() {
|
|
1203
1240
|
var e, r = function() {
|
|
1204
1241
|
e && window.cancelAnimationFrame(e);
|
|
1205
|
-
},
|
|
1206
|
-
var f, h, l = function(
|
|
1207
|
-
if (h = h ||
|
|
1242
|
+
}, n = function(i, o) {
|
|
1243
|
+
var f, h, l = function(v) {
|
|
1244
|
+
if (h = h || v, f = v - h, f > o) {
|
|
1208
1245
|
i();
|
|
1209
1246
|
return;
|
|
1210
1247
|
}
|
|
@@ -1214,60 +1251,60 @@ var Tt = function(e, r, s) {
|
|
|
1214
1251
|
};
|
|
1215
1252
|
return {
|
|
1216
1253
|
cancel: r,
|
|
1217
|
-
schedule:
|
|
1254
|
+
schedule: n
|
|
1218
1255
|
};
|
|
1219
|
-
},
|
|
1256
|
+
}, Us = function(e) {
|
|
1220
1257
|
var r = 0;
|
|
1221
|
-
return e >= 0 && e < 0.2 ? r = 0.1 : e >= 0.2 && e < 0.5 ? r = 0.04 : e >= 0.5 && e < 0.8 ? r = 0.02 : e >= 0.8 && e < 0.99 && (r = 5e-3),
|
|
1222
|
-
},
|
|
1258
|
+
return e >= 0 && e < 0.2 ? r = 0.1 : e >= 0.2 && e < 0.5 ? r = 0.04 : e >= 0.5 && e < 0.8 ? r = 0.02 : e >= 0.8 && e < 0.99 && (r = 5e-3), Mt(e + r, 0, 0.994);
|
|
1259
|
+
}, Je = function(e) {
|
|
1223
1260
|
Q(e, []);
|
|
1224
|
-
},
|
|
1261
|
+
}, Ys = function(e) {
|
|
1225
1262
|
return ++e % 1e6;
|
|
1226
|
-
},
|
|
1263
|
+
}, Zs = function() {
|
|
1227
1264
|
var e = J(0), r = e[1];
|
|
1228
1265
|
return W(function() {
|
|
1229
|
-
return r(
|
|
1266
|
+
return r(Ys);
|
|
1230
1267
|
}, []);
|
|
1231
|
-
},
|
|
1268
|
+
}, Vs = function(e) {
|
|
1232
1269
|
e === void 0 && (e = {});
|
|
1233
|
-
var r =
|
|
1234
|
-
return
|
|
1270
|
+
var r = Zs(), n = G(me({}, e)), a = W(function() {
|
|
1271
|
+
return n.current;
|
|
1235
1272
|
}, []), i = W(function(o) {
|
|
1236
|
-
o && (Object.assign(
|
|
1273
|
+
o && (Object.assign(n.current, o), r());
|
|
1237
1274
|
}, []);
|
|
1238
1275
|
return [a, i];
|
|
1239
|
-
},
|
|
1276
|
+
}, Ws = function() {
|
|
1240
1277
|
var e = G(!0);
|
|
1241
1278
|
return e.current ? (e.current = !1, !0) : e.current;
|
|
1242
|
-
},
|
|
1243
|
-
var
|
|
1279
|
+
}, et = function(e, r) {
|
|
1280
|
+
var n = Ws();
|
|
1244
1281
|
Q(function() {
|
|
1245
|
-
if (!
|
|
1282
|
+
if (!n)
|
|
1246
1283
|
return e();
|
|
1247
1284
|
}, r);
|
|
1248
|
-
},
|
|
1249
|
-
},
|
|
1285
|
+
}, Ot = function() {
|
|
1286
|
+
}, tt = {
|
|
1250
1287
|
isFinished: !0,
|
|
1251
1288
|
progress: 0,
|
|
1252
|
-
sideEffect:
|
|
1253
|
-
},
|
|
1254
|
-
var r = e === void 0 ? {} : e,
|
|
1255
|
-
|
|
1256
|
-
m.current =
|
|
1289
|
+
sideEffect: Ot
|
|
1290
|
+
}, Gs = function(e) {
|
|
1291
|
+
var r = e === void 0 ? {} : e, n = r.animationDuration, a = n === void 0 ? 200 : n, i = r.incrementDuration, o = i === void 0 ? 800 : i, f = r.isAnimating, h = f === void 0 ? !1 : f, l = r.minimum, b = l === void 0 ? 0.08 : l, v = Vs(tt), g = v[0], y = v[1], m = G(null), p = G(null);
|
|
1292
|
+
Je(function() {
|
|
1293
|
+
m.current = Hs(), p.current = Ks();
|
|
1257
1294
|
});
|
|
1258
1295
|
var C = W(function() {
|
|
1259
1296
|
var S, D;
|
|
1260
|
-
(S =
|
|
1261
|
-
}, []),
|
|
1297
|
+
(S = p.current) == null || S.cancel(), (D = m.current) == null || D.clear();
|
|
1298
|
+
}, []), E = W(function(S) {
|
|
1262
1299
|
var D;
|
|
1263
|
-
if (S =
|
|
1300
|
+
if (S = Mt(S, b, 1), S === 1) {
|
|
1264
1301
|
var q, L;
|
|
1265
1302
|
C(), (q = m.current) == null || q.enqueue(function(U) {
|
|
1266
1303
|
y({
|
|
1267
1304
|
progress: S,
|
|
1268
1305
|
sideEffect: function() {
|
|
1269
1306
|
var X;
|
|
1270
|
-
return (X =
|
|
1307
|
+
return (X = p.current) == null ? void 0 : X.schedule(U, a);
|
|
1271
1308
|
}
|
|
1272
1309
|
});
|
|
1273
1310
|
}), (L = m.current) == null || L.enqueue(function() {
|
|
@@ -1284,48 +1321,48 @@ var Tt = function(e, r, s) {
|
|
|
1284
1321
|
progress: S,
|
|
1285
1322
|
sideEffect: function() {
|
|
1286
1323
|
var X;
|
|
1287
|
-
return (X =
|
|
1324
|
+
return (X = p.current) == null ? void 0 : X.schedule(U, a);
|
|
1288
1325
|
}
|
|
1289
1326
|
});
|
|
1290
1327
|
});
|
|
1291
|
-
}, [a, C, b, m, y,
|
|
1292
|
-
|
|
1293
|
-
}, [
|
|
1328
|
+
}, [a, C, b, m, y, p]), T = W(function() {
|
|
1329
|
+
E(Us(g().progress));
|
|
1330
|
+
}, [g, E]), x = W(function() {
|
|
1294
1331
|
var S = function() {
|
|
1295
1332
|
var q;
|
|
1296
1333
|
T(), (q = m.current) == null || q.enqueue(function(L) {
|
|
1297
1334
|
var U;
|
|
1298
|
-
(U =
|
|
1335
|
+
(U = p.current) == null || U.schedule(function() {
|
|
1299
1336
|
S(), L();
|
|
1300
1337
|
}, o);
|
|
1301
1338
|
});
|
|
1302
1339
|
};
|
|
1303
1340
|
S();
|
|
1304
|
-
}, [o, m,
|
|
1341
|
+
}, [o, m, p, T]), j = G(Ot), c = g().sideEffect;
|
|
1305
1342
|
return Q(function() {
|
|
1306
1343
|
j.current = T;
|
|
1344
|
+
}), Je(function() {
|
|
1345
|
+
return h && x(), C;
|
|
1307
1346
|
}), et(function() {
|
|
1308
|
-
|
|
1309
|
-
}),
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
})) : N(1);
|
|
1315
|
-
}, [h, N, y, v]), {
|
|
1347
|
+
g().sideEffect();
|
|
1348
|
+
}, [g, c]), et(function() {
|
|
1349
|
+
h ? y(me({}, tt, {
|
|
1350
|
+
sideEffect: x
|
|
1351
|
+
})) : E(1);
|
|
1352
|
+
}, [h, E, y, x]), {
|
|
1316
1353
|
animationDuration: a,
|
|
1317
|
-
isFinished:
|
|
1318
|
-
progress:
|
|
1354
|
+
isFinished: g().isFinished,
|
|
1355
|
+
progress: g().progress
|
|
1319
1356
|
};
|
|
1320
1357
|
};
|
|
1321
|
-
const
|
|
1322
|
-
const e =
|
|
1358
|
+
const At = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", kt = () => {
|
|
1359
|
+
const e = ge().state === "loading", [r, n] = J(!1);
|
|
1323
1360
|
Q(() => {
|
|
1324
|
-
const o = setTimeout(() =>
|
|
1361
|
+
const o = setTimeout(() => n(e), 100);
|
|
1325
1362
|
return () => clearTimeout(o);
|
|
1326
1363
|
}, [e]);
|
|
1327
|
-
const { isFinished: a, progress: i } =
|
|
1328
|
-
return /* @__PURE__ */
|
|
1364
|
+
const { isFinished: a, progress: i } = Gs({ isAnimating: r });
|
|
1365
|
+
return /* @__PURE__ */ s.jsx(
|
|
1329
1366
|
"div",
|
|
1330
1367
|
{
|
|
1331
1368
|
className: "absolute w-0 left-0 right-0 bottom-[-1px] h-[2px] bg-primary transition-all duration-300 ease-in-out",
|
|
@@ -1335,14 +1372,14 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
|
|
|
1335
1372
|
}
|
|
1336
1373
|
}
|
|
1337
1374
|
);
|
|
1338
|
-
},
|
|
1339
|
-
const { topNavigation: t } = F(), { isAuthenticated: e } = ae(), r = t.filter(
|
|
1340
|
-
return r.length === 0 ? /* @__PURE__ */
|
|
1341
|
-
/* @__PURE__ */
|
|
1342
|
-
/* @__PURE__ */
|
|
1343
|
-
/* @__PURE__ */
|
|
1375
|
+
}, Xs = () => {
|
|
1376
|
+
const { topNavigation: t } = F(), { isAuthenticated: e } = ae(), r = t.filter(At(e));
|
|
1377
|
+
return r.length === 0 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsxs(Oe, { children: [
|
|
1378
|
+
/* @__PURE__ */ s.jsxs("div", { className: "items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm relative", children: [
|
|
1379
|
+
/* @__PURE__ */ s.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: r.map((n) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Rt, { ...n }) }, n.id)) }) }),
|
|
1380
|
+
/* @__PURE__ */ s.jsx(_, { name: "top-navigation-side" })
|
|
1344
1381
|
] }),
|
|
1345
|
-
/* @__PURE__ */
|
|
1382
|
+
/* @__PURE__ */ s.jsx(kt, {})
|
|
1346
1383
|
] });
|
|
1347
1384
|
}, Rt = ({
|
|
1348
1385
|
id: t,
|
|
@@ -1350,16 +1387,16 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
|
|
|
1350
1387
|
default: r
|
|
1351
1388
|
}) => {
|
|
1352
1389
|
var l;
|
|
1353
|
-
const { sidebars:
|
|
1390
|
+
const { sidebars: n } = F(), a = n[t], i = mt(), o = !!ge().location, f = ((l = i.topNavItem) == null ? void 0 : l.id) === t && !o, h = r ?? (a ? yr(a, (b) => {
|
|
1354
1391
|
if (b.type === "doc") return ee(b.id);
|
|
1355
1392
|
}) : ee(t)) ?? ee(t);
|
|
1356
1393
|
return (
|
|
1357
1394
|
// We don't use isActive here because it has to be inside the sidebar,
|
|
1358
1395
|
// the top nav id doesn't necessarily start with the sidebar id
|
|
1359
|
-
/* @__PURE__ */
|
|
1360
|
-
|
|
1396
|
+
/* @__PURE__ */ s.jsx(
|
|
1397
|
+
ur,
|
|
1361
1398
|
{
|
|
1362
|
-
className: ({ isPending: b }) =>
|
|
1399
|
+
className: ({ isPending: b }) => vs(
|
|
1363
1400
|
"block lg:py-3.5 font-medium -mb-px",
|
|
1364
1401
|
f || b ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
1365
1402
|
),
|
|
@@ -1368,58 +1405,58 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
|
|
|
1368
1405
|
}
|
|
1369
1406
|
)
|
|
1370
1407
|
);
|
|
1371
|
-
},
|
|
1408
|
+
}, Js = () => {
|
|
1372
1409
|
var i;
|
|
1373
|
-
const { topNavigation: t, options: e } = F(), { isAuthenticated: r } = ae(), [
|
|
1374
|
-
return /* @__PURE__ */
|
|
1375
|
-
|
|
1410
|
+
const { topNavigation: t, options: e } = F(), { isAuthenticated: r } = ae(), [n, a] = J(!1);
|
|
1411
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1412
|
+
gs,
|
|
1376
1413
|
{
|
|
1377
1414
|
direction: "right",
|
|
1378
|
-
open:
|
|
1415
|
+
open: n,
|
|
1379
1416
|
onOpenChange: (o) => a(o),
|
|
1380
1417
|
children: [
|
|
1381
|
-
/* @__PURE__ */
|
|
1382
|
-
/* @__PURE__ */
|
|
1383
|
-
/* @__PURE__ */
|
|
1418
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex lg:hidden justify-self-end", children: [
|
|
1419
|
+
/* @__PURE__ */ s.jsx(xs, { className: "lg:hidden", children: /* @__PURE__ */ s.jsx(zr, { size: 22 }) }),
|
|
1420
|
+
/* @__PURE__ */ s.jsx(kt, {})
|
|
1384
1421
|
] }),
|
|
1385
|
-
/* @__PURE__ */
|
|
1386
|
-
|
|
1422
|
+
/* @__PURE__ */ s.jsx(
|
|
1423
|
+
jt,
|
|
1387
1424
|
{
|
|
1388
1425
|
className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
|
|
1389
1426
|
"aria-describedby": void 0,
|
|
1390
|
-
children: /* @__PURE__ */
|
|
1391
|
-
/* @__PURE__ */
|
|
1392
|
-
/* @__PURE__ */
|
|
1393
|
-
/* @__PURE__ */
|
|
1394
|
-
/* @__PURE__ */
|
|
1395
|
-
/* @__PURE__ */
|
|
1396
|
-
t.filter(
|
|
1427
|
+
children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none h-full flex flex-col justify-between", children: [
|
|
1428
|
+
/* @__PURE__ */ s.jsxs("div", { children: [
|
|
1429
|
+
/* @__PURE__ */ s.jsx(bt, { children: /* @__PURE__ */ s.jsx(wt, { children: "Navigation" }) }),
|
|
1430
|
+
/* @__PURE__ */ s.jsx(Et, { className: "flex p-4" }),
|
|
1431
|
+
/* @__PURE__ */ s.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
1432
|
+
/* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Tt, {}) }),
|
|
1433
|
+
t.filter(At(r)).map((o) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => a(!1), children: /* @__PURE__ */ s.jsx(Rt, { ...o }) }) }, o.label))
|
|
1397
1434
|
] })
|
|
1398
1435
|
] }),
|
|
1399
|
-
((i = e.page) == null ? void 0 : i.showPoweredBy) !== !1 && /* @__PURE__ */
|
|
1436
|
+
((i = e.page) == null ? void 0 : i.showPoweredBy) !== !1 && /* @__PURE__ */ s.jsx(Nt, { className: "flex-grow-0 justify-center gap-1" })
|
|
1400
1437
|
] })
|
|
1401
1438
|
}
|
|
1402
1439
|
)
|
|
1403
1440
|
]
|
|
1404
1441
|
}
|
|
1405
1442
|
);
|
|
1406
|
-
}, fe = ({ item: t }) => t.children ? /* @__PURE__ */
|
|
1407
|
-
/* @__PURE__ */
|
|
1408
|
-
/* @__PURE__ */
|
|
1443
|
+
}, fe = ({ item: t }) => t.children ? /* @__PURE__ */ s.jsxs(ds, { children: [
|
|
1444
|
+
/* @__PURE__ */ s.jsx(fs, { children: t.label }),
|
|
1445
|
+
/* @__PURE__ */ s.jsx(hs, { children: /* @__PURE__ */ s.jsx(ms, { children: t.children.map((e, r) => (
|
|
1409
1446
|
// eslint-disable-next-line react/no-array-index-key
|
|
1410
|
-
/* @__PURE__ */
|
|
1447
|
+
/* @__PURE__ */ s.jsx(fe, { item: e }, r)
|
|
1411
1448
|
)) }) })
|
|
1412
|
-
] }, t.label) : /* @__PURE__ */
|
|
1413
|
-
t.icon && /* @__PURE__ */
|
|
1449
|
+
] }, t.label) : /* @__PURE__ */ s.jsx(Te, { to: t.path ?? "", children: /* @__PURE__ */ s.jsxs(ps, { className: "flex gap-2", children: [
|
|
1450
|
+
t.icon && /* @__PURE__ */ s.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
1414
1451
|
t.label
|
|
1415
|
-
] }, t.label) }),
|
|
1416
|
-
const e = ae(), { isAuthenticated: r, profile:
|
|
1417
|
-
return /* @__PURE__ */
|
|
1418
|
-
/* @__PURE__ */
|
|
1419
|
-
/* @__PURE__ */
|
|
1420
|
-
/* @__PURE__ */
|
|
1421
|
-
(o == null ? void 0 : o.logo) && /* @__PURE__ */
|
|
1422
|
-
/* @__PURE__ */
|
|
1452
|
+
] }, t.label) }), _t = vt(function() {
|
|
1453
|
+
const e = ae(), { isAuthenticated: r, profile: n, isAuthEnabled: a } = ae(), i = F(), { page: o, plugins: f } = i, h = f.filter((l) => Jr(l)).flatMap((l) => l.getProfileMenuItems(i)).sort((l) => l.weight ?? 0);
|
|
1454
|
+
return /* @__PURE__ */ s.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
1455
|
+
/* @__PURE__ */ s.jsx($s, {}),
|
|
1456
|
+
/* @__PURE__ */ s.jsx("div", { className: "border-b", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto flex relative items-center justify-between px-4 lg:px-8 h-[--top-header-height] border-transparent", children: [
|
|
1457
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex", children: /* @__PURE__ */ s.jsx(Te, { to: "/", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
1458
|
+
(o == null ? void 0 : o.logo) && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1459
|
+
/* @__PURE__ */ s.jsx(
|
|
1423
1460
|
"img",
|
|
1424
1461
|
{
|
|
1425
1462
|
src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : ee(
|
|
@@ -1432,7 +1469,7 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
|
|
|
1432
1469
|
loading: "lazy"
|
|
1433
1470
|
}
|
|
1434
1471
|
),
|
|
1435
|
-
/* @__PURE__ */
|
|
1472
|
+
/* @__PURE__ */ s.jsx(
|
|
1436
1473
|
"img",
|
|
1437
1474
|
{
|
|
1438
1475
|
src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : ee(
|
|
@@ -1446,61 +1483,61 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
|
|
|
1446
1483
|
}
|
|
1447
1484
|
)
|
|
1448
1485
|
] }),
|
|
1449
|
-
/* @__PURE__ */
|
|
1486
|
+
/* @__PURE__ */ s.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
|
|
1450
1487
|
] }) }) }),
|
|
1451
|
-
/* @__PURE__ */
|
|
1452
|
-
/* @__PURE__ */
|
|
1453
|
-
/* @__PURE__ */
|
|
1454
|
-
/* @__PURE__ */
|
|
1455
|
-
/* @__PURE__ */
|
|
1456
|
-
a && /* @__PURE__ */
|
|
1457
|
-
|
|
1488
|
+
/* @__PURE__ */ s.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ s.jsx(Et, { className: "pointer-events-auto" }) }),
|
|
1489
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-8", children: [
|
|
1490
|
+
/* @__PURE__ */ s.jsx(Js, {}),
|
|
1491
|
+
/* @__PURE__ */ s.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
1492
|
+
/* @__PURE__ */ s.jsx(_, { name: "head-navigation-start" }),
|
|
1493
|
+
a && /* @__PURE__ */ s.jsx(
|
|
1494
|
+
xe,
|
|
1458
1495
|
{
|
|
1459
|
-
fallback: /* @__PURE__ */
|
|
1460
|
-
children: r ? Object.values(h).length > 0 && /* @__PURE__ */
|
|
1461
|
-
/* @__PURE__ */
|
|
1462
|
-
/* @__PURE__ */
|
|
1463
|
-
/* @__PURE__ */
|
|
1464
|
-
|
|
1465
|
-
(
|
|
1496
|
+
fallback: /* @__PURE__ */ s.jsx(qs, { className: "rounded h-5 w-24 mr-4" }),
|
|
1497
|
+
children: r ? Object.values(h).length > 0 && /* @__PURE__ */ s.jsxs(is, { modal: !1, children: [
|
|
1498
|
+
/* @__PURE__ */ s.jsx(cs, { asChild: !0, children: /* @__PURE__ */ s.jsx(Se, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
|
|
1499
|
+
/* @__PURE__ */ s.jsxs(ls, { className: "w-56", children: [
|
|
1500
|
+
/* @__PURE__ */ s.jsxs(us, { children: [
|
|
1501
|
+
n != null && n.name ? `${n.name}` : "My Account",
|
|
1502
|
+
(n == null ? void 0 : n.email) && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
|
|
1466
1503
|
] }),
|
|
1467
|
-
h.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */
|
|
1468
|
-
h.filter((l) => l.category === "top").map((l) => /* @__PURE__ */
|
|
1504
|
+
h.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ s.jsx(je, {}),
|
|
1505
|
+
h.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ s.jsx(fe, { item: l }, l.label)),
|
|
1469
1506
|
h.filter(
|
|
1470
1507
|
(l) => !l.category || l.category === "middle"
|
|
1471
|
-
).length > 0 && /* @__PURE__ */
|
|
1508
|
+
).length > 0 && /* @__PURE__ */ s.jsx(je, {}),
|
|
1472
1509
|
h.filter(
|
|
1473
1510
|
(l) => !l.category || l.category === "middle"
|
|
1474
|
-
).map((l) => /* @__PURE__ */
|
|
1475
|
-
h.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */
|
|
1476
|
-
h.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */
|
|
1511
|
+
).map((l) => /* @__PURE__ */ s.jsx(fe, { item: l }, l.label)),
|
|
1512
|
+
h.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ s.jsx(je, {}),
|
|
1513
|
+
h.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ s.jsx(fe, { item: l }, l.label))
|
|
1477
1514
|
] })
|
|
1478
|
-
] }) : /* @__PURE__ */
|
|
1515
|
+
] }) : /* @__PURE__ */ s.jsx(Se, { variant: "ghost", onClick: () => e.login(), children: "Login" })
|
|
1479
1516
|
}
|
|
1480
1517
|
),
|
|
1481
|
-
/* @__PURE__ */
|
|
1482
|
-
/* @__PURE__ */
|
|
1518
|
+
/* @__PURE__ */ s.jsx(_, { name: "head-navigation-end" }),
|
|
1519
|
+
/* @__PURE__ */ s.jsx(Tt, {})
|
|
1483
1520
|
] })
|
|
1484
1521
|
] })
|
|
1485
1522
|
] }) }),
|
|
1486
|
-
/* @__PURE__ */
|
|
1487
|
-
/* @__PURE__ */
|
|
1488
|
-
/* @__PURE__ */
|
|
1489
|
-
/* @__PURE__ */
|
|
1523
|
+
/* @__PURE__ */ s.jsx("div", { className: "border-b hidden lg:block", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto border-transparent", children: [
|
|
1524
|
+
/* @__PURE__ */ s.jsx(_, { name: "top-navigation-before" }),
|
|
1525
|
+
/* @__PURE__ */ s.jsx(Xs, {}),
|
|
1526
|
+
/* @__PURE__ */ s.jsx(_, { name: "top-navigation-after" })
|
|
1490
1527
|
] }) })
|
|
1491
1528
|
] });
|
|
1492
|
-
}),
|
|
1529
|
+
}), Dt = ({
|
|
1493
1530
|
shouldScaleBackground: t = !0,
|
|
1494
1531
|
...e
|
|
1495
|
-
}) => /* @__PURE__ */
|
|
1532
|
+
}) => /* @__PURE__ */ s.jsx(
|
|
1496
1533
|
z.Root,
|
|
1497
1534
|
{
|
|
1498
1535
|
shouldScaleBackground: t,
|
|
1499
1536
|
...e
|
|
1500
1537
|
}
|
|
1501
1538
|
);
|
|
1502
|
-
|
|
1503
|
-
const
|
|
1539
|
+
Dt.displayName = "Drawer";
|
|
1540
|
+
const en = z.Trigger, tn = z.Portal, qt = K.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ s.jsx(
|
|
1504
1541
|
z.Overlay,
|
|
1505
1542
|
{
|
|
1506
1543
|
ref: r,
|
|
@@ -1508,11 +1545,11 @@ const Gn = z.Trigger, Xn = z.Portal, Dt = K.forwardRef(({ className: t, ...e },
|
|
|
1508
1545
|
...e
|
|
1509
1546
|
}
|
|
1510
1547
|
));
|
|
1511
|
-
|
|
1512
|
-
const
|
|
1513
|
-
({ className: t, children: e, hideBar: r = !0, ...
|
|
1514
|
-
/* @__PURE__ */
|
|
1515
|
-
/* @__PURE__ */
|
|
1548
|
+
qt.displayName = z.Overlay.displayName;
|
|
1549
|
+
const rn = K.forwardRef(
|
|
1550
|
+
({ className: t, children: e, hideBar: r = !0, ...n }, a) => /* @__PURE__ */ s.jsxs(tn, { children: [
|
|
1551
|
+
/* @__PURE__ */ s.jsx(qt, {}),
|
|
1552
|
+
/* @__PURE__ */ s.jsxs(
|
|
1516
1553
|
z.Content,
|
|
1517
1554
|
{
|
|
1518
1555
|
ref: a,
|
|
@@ -1520,17 +1557,17 @@ const Jn = K.forwardRef(
|
|
|
1520
1557
|
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
|
1521
1558
|
t
|
|
1522
1559
|
),
|
|
1523
|
-
...
|
|
1560
|
+
...n,
|
|
1524
1561
|
children: [
|
|
1525
|
-
!r && /* @__PURE__ */
|
|
1562
|
+
!r && /* @__PURE__ */ s.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
1526
1563
|
e
|
|
1527
1564
|
]
|
|
1528
1565
|
}
|
|
1529
1566
|
)
|
|
1530
1567
|
] })
|
|
1531
1568
|
);
|
|
1532
|
-
|
|
1533
|
-
const
|
|
1569
|
+
rn.displayName = "DrawerContent";
|
|
1570
|
+
const sn = K.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ s.jsx(
|
|
1534
1571
|
z.Title,
|
|
1535
1572
|
{
|
|
1536
1573
|
ref: r,
|
|
@@ -1541,8 +1578,8 @@ const es = K.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ n.jsx(
|
|
|
1541
1578
|
...e
|
|
1542
1579
|
}
|
|
1543
1580
|
));
|
|
1544
|
-
|
|
1545
|
-
const
|
|
1581
|
+
sn.displayName = z.Title.displayName;
|
|
1582
|
+
const nn = K.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ s.jsx(
|
|
1546
1583
|
z.Description,
|
|
1547
1584
|
{
|
|
1548
1585
|
ref: r,
|
|
@@ -1550,22 +1587,22 @@ const ts = K.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ n.jsx(
|
|
|
1550
1587
|
...e
|
|
1551
1588
|
}
|
|
1552
1589
|
));
|
|
1553
|
-
|
|
1554
|
-
const
|
|
1590
|
+
nn.displayName = z.Description.displayName;
|
|
1591
|
+
const $t = ({
|
|
1555
1592
|
children: t,
|
|
1556
1593
|
className: e
|
|
1557
1594
|
}) => {
|
|
1558
1595
|
var a;
|
|
1559
|
-
const { options: r } = F(),
|
|
1596
|
+
const { options: r } = F(), n = G(null);
|
|
1560
1597
|
return Q(() => {
|
|
1561
1598
|
var o;
|
|
1562
|
-
const i = (o =
|
|
1563
|
-
|
|
1564
|
-
}, []), /* @__PURE__ */
|
|
1565
|
-
/* @__PURE__ */
|
|
1599
|
+
const i = (o = n.current) == null ? void 0 : o.querySelector('[aria-current="page"]');
|
|
1600
|
+
Hr(i ?? null);
|
|
1601
|
+
}, []), /* @__PURE__ */ s.jsxs("div", { className: "grid sticky top-[--header-height] lg:h-[calc(100vh-var(--header-height))] grid-rows-[1fr_min-content] border-r", children: [
|
|
1602
|
+
/* @__PURE__ */ s.jsx(
|
|
1566
1603
|
"nav",
|
|
1567
1604
|
{
|
|
1568
|
-
ref:
|
|
1605
|
+
ref: n,
|
|
1569
1606
|
className: O(
|
|
1570
1607
|
"hidden max-w-[calc(var(--side-nav-width)+var(--padding-nav-item))] lg:flex scrollbar flex-col overflow-y-auto shrink-0 text-sm pe-3 ps-4 lg:ps-8",
|
|
1571
1608
|
"-mx-[--padding-nav-item] pb-[8vh] pt-[--padding-content-top] scroll-pt-2 gap-1",
|
|
@@ -1579,34 +1616,34 @@ const qt = ({
|
|
|
1579
1616
|
children: t
|
|
1580
1617
|
}
|
|
1581
1618
|
),
|
|
1582
|
-
/* @__PURE__ */
|
|
1619
|
+
/* @__PURE__ */ s.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: ((a = r.page) == null ? void 0 : a.showPoweredBy) !== !1 && /* @__PURE__ */ s.jsx(Nt, {}) })
|
|
1583
1620
|
] });
|
|
1584
1621
|
};
|
|
1585
|
-
|
|
1586
|
-
const
|
|
1622
|
+
$t.displayName = "SidebarWrapper";
|
|
1623
|
+
const an = ({
|
|
1587
1624
|
onRequestClose: t,
|
|
1588
1625
|
sidebar: e
|
|
1589
|
-
}) => /* @__PURE__ */
|
|
1590
|
-
/* @__PURE__ */
|
|
1591
|
-
/* @__PURE__ */
|
|
1592
|
-
e.map((r) => /* @__PURE__ */
|
|
1593
|
-
|
|
1626
|
+
}) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1627
|
+
/* @__PURE__ */ s.jsxs($t, { children: [
|
|
1628
|
+
/* @__PURE__ */ s.jsx(_, { name: "zudoku-before-navigation" }),
|
|
1629
|
+
e.map((r) => /* @__PURE__ */ s.jsx(
|
|
1630
|
+
Be,
|
|
1594
1631
|
{
|
|
1595
1632
|
item: r
|
|
1596
1633
|
},
|
|
1597
1634
|
("id" in r ? r.id : "") + ("href" in r ? r.href : "") + r.label
|
|
1598
1635
|
)),
|
|
1599
|
-
/* @__PURE__ */
|
|
1636
|
+
/* @__PURE__ */ s.jsx(_, { name: "zudoku-after-navigation" })
|
|
1600
1637
|
] }),
|
|
1601
|
-
/* @__PURE__ */
|
|
1602
|
-
|
|
1638
|
+
/* @__PURE__ */ s.jsx(
|
|
1639
|
+
jt,
|
|
1603
1640
|
{
|
|
1604
1641
|
className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
|
|
1605
1642
|
"aria-describedby": void 0,
|
|
1606
|
-
children: /* @__PURE__ */
|
|
1607
|
-
/* @__PURE__ */
|
|
1608
|
-
e.map((r) => /* @__PURE__ */
|
|
1609
|
-
|
|
1643
|
+
children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
1644
|
+
/* @__PURE__ */ s.jsx(bt, { children: /* @__PURE__ */ s.jsx(wt, { children: "Sidebar" }) }),
|
|
1645
|
+
e.map((r) => /* @__PURE__ */ s.jsx(
|
|
1646
|
+
Be,
|
|
1610
1647
|
{
|
|
1611
1648
|
item: r,
|
|
1612
1649
|
onRequestClose: t
|
|
@@ -1616,27 +1653,27 @@ const rs = ({
|
|
|
1616
1653
|
] })
|
|
1617
1654
|
}
|
|
1618
1655
|
)
|
|
1619
|
-
] }),
|
|
1620
|
-
const [e, r] = J(!1), { sidebar:
|
|
1621
|
-
return /* @__PURE__ */
|
|
1622
|
-
|
|
1656
|
+
] }), on = ({ children: t }) => {
|
|
1657
|
+
const [e, r] = J(!1), { sidebar: n } = mt(), a = n.length > 0, i = ge().state === "loading";
|
|
1658
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1659
|
+
Dt,
|
|
1623
1660
|
{
|
|
1624
1661
|
direction: "left",
|
|
1625
1662
|
open: e,
|
|
1626
1663
|
onOpenChange: (o) => r(o),
|
|
1627
1664
|
children: [
|
|
1628
|
-
a && /* @__PURE__ */
|
|
1629
|
-
|
|
1665
|
+
a && /* @__PURE__ */ s.jsx(
|
|
1666
|
+
an,
|
|
1630
1667
|
{
|
|
1631
1668
|
onRequestClose: () => r(!1),
|
|
1632
|
-
sidebar:
|
|
1669
|
+
sidebar: n
|
|
1633
1670
|
}
|
|
1634
1671
|
),
|
|
1635
|
-
a && /* @__PURE__ */
|
|
1636
|
-
/* @__PURE__ */
|
|
1637
|
-
/* @__PURE__ */
|
|
1672
|
+
a && /* @__PURE__ */ s.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__ */ s.jsxs(en, { className: "flex items-center gap-2 px-4", children: [
|
|
1673
|
+
/* @__PURE__ */ s.jsx(Lr, { size: 16, strokeWidth: 1.5 }),
|
|
1674
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1638
1675
|
] }) }),
|
|
1639
|
-
/* @__PURE__ */
|
|
1676
|
+
/* @__PURE__ */ s.jsxs(
|
|
1640
1677
|
"main",
|
|
1641
1678
|
{
|
|
1642
1679
|
"data-pagefind-body": !0,
|
|
@@ -1646,41 +1683,41 @@ const rs = ({
|
|
|
1646
1683
|
i && "animate-pulse"
|
|
1647
1684
|
),
|
|
1648
1685
|
children: [
|
|
1649
|
-
/* @__PURE__ */
|
|
1686
|
+
/* @__PURE__ */ s.jsx(_, { name: "zudoku-before-content" }),
|
|
1650
1687
|
t,
|
|
1651
|
-
/* @__PURE__ */
|
|
1688
|
+
/* @__PURE__ */ s.jsx(_, { name: "zudoku-after-content" })
|
|
1652
1689
|
]
|
|
1653
1690
|
}
|
|
1654
1691
|
)
|
|
1655
1692
|
]
|
|
1656
1693
|
}
|
|
1657
1694
|
);
|
|
1658
|
-
},
|
|
1659
|
-
const { meta: e, authentication: r, options:
|
|
1660
|
-
return
|
|
1695
|
+
}, cn = () => /* @__PURE__ */ s.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ s.jsx(yt, {}) }), ln = ({ children: t }) => {
|
|
1696
|
+
const { meta: e, authentication: r, options: n } = F(), a = pe();
|
|
1697
|
+
return Kr(), ks(), Q(() => {
|
|
1661
1698
|
var i;
|
|
1662
1699
|
(i = r == null ? void 0 : r.onPageLoad) == null || i.call(r);
|
|
1663
|
-
}, [r]), /* @__PURE__ */
|
|
1700
|
+
}, [r]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1664
1701
|
!1,
|
|
1665
|
-
/* @__PURE__ */
|
|
1666
|
-
|
|
1702
|
+
/* @__PURE__ */ s.jsxs(Ee, { titleTemplate: e == null ? void 0 : e.title, children: [
|
|
1703
|
+
n.canonicalUrlOrigin && /* @__PURE__ */ s.jsx(
|
|
1667
1704
|
"link",
|
|
1668
1705
|
{
|
|
1669
1706
|
rel: "canonical",
|
|
1670
1707
|
href: ee(
|
|
1671
|
-
|
|
1672
|
-
|
|
1708
|
+
n.canonicalUrlOrigin,
|
|
1709
|
+
n.basePath,
|
|
1673
1710
|
a.pathname
|
|
1674
1711
|
)
|
|
1675
1712
|
}
|
|
1676
1713
|
),
|
|
1677
|
-
(e == null ? void 0 : e.description) && /* @__PURE__ */
|
|
1678
|
-
(e == null ? void 0 : e.favicon) && /* @__PURE__ */
|
|
1714
|
+
(e == null ? void 0 : e.description) && /* @__PURE__ */ s.jsx("meta", { name: "description", content: e.description }),
|
|
1715
|
+
(e == null ? void 0 : e.favicon) && /* @__PURE__ */ s.jsx("link", { rel: "icon", href: e.favicon })
|
|
1679
1716
|
] }),
|
|
1680
|
-
/* @__PURE__ */
|
|
1681
|
-
/* @__PURE__ */
|
|
1682
|
-
/* @__PURE__ */
|
|
1683
|
-
/* @__PURE__ */
|
|
1717
|
+
/* @__PURE__ */ s.jsx(_, { name: "layout-before-head" }),
|
|
1718
|
+
/* @__PURE__ */ s.jsx(_t, {}),
|
|
1719
|
+
/* @__PURE__ */ s.jsx(_, { name: "layout-after-head" }),
|
|
1720
|
+
/* @__PURE__ */ s.jsx(
|
|
1684
1721
|
"div",
|
|
1685
1722
|
{
|
|
1686
1723
|
className: O(
|
|
@@ -1688,20 +1725,20 @@ const rs = ({
|
|
|
1688
1725
|
"has-[:only-child]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
|
|
1689
1726
|
"grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
|
|
1690
1727
|
),
|
|
1691
|
-
children: /* @__PURE__ */
|
|
1728
|
+
children: /* @__PURE__ */ s.jsx(Oe, { fallback: /* @__PURE__ */ s.jsx(cn, {}), children: /* @__PURE__ */ s.jsx(on, { children: t ?? /* @__PURE__ */ s.jsx(lt, {}) }) })
|
|
1692
1729
|
}
|
|
1693
1730
|
),
|
|
1694
|
-
/* @__PURE__ */
|
|
1731
|
+
/* @__PURE__ */ s.jsx(Ds, {})
|
|
1695
1732
|
] });
|
|
1696
|
-
},
|
|
1733
|
+
}, un = ({
|
|
1697
1734
|
title: t = "An error occurred",
|
|
1698
1735
|
message: e,
|
|
1699
1736
|
category: r
|
|
1700
|
-
}) => /* @__PURE__ */
|
|
1701
|
-
r && /* @__PURE__ */
|
|
1702
|
-
t && /* @__PURE__ */
|
|
1703
|
-
/* @__PURE__ */
|
|
1704
|
-
] }),
|
|
1737
|
+
}) => /* @__PURE__ */ s.jsxs("div", { className: Yr + " h-full pt-[--padding-content-top]", children: [
|
|
1738
|
+
r && /* @__PURE__ */ s.jsx(Gr, { children: r }),
|
|
1739
|
+
t && /* @__PURE__ */ s.jsx(Ur, { level: 1, className: "flex gap-3.5 items-center", children: t }),
|
|
1740
|
+
/* @__PURE__ */ s.jsx("p", { children: e })
|
|
1741
|
+
] }), dn = (t) => {
|
|
1705
1742
|
switch (t) {
|
|
1706
1743
|
case 400:
|
|
1707
1744
|
return {
|
|
@@ -1764,21 +1801,21 @@ const rs = ({
|
|
|
1764
1801
|
message: "Something went wrong while processing your request."
|
|
1765
1802
|
};
|
|
1766
1803
|
}
|
|
1767
|
-
},
|
|
1768
|
-
const r =
|
|
1769
|
-
return /* @__PURE__ */
|
|
1770
|
-
|
|
1804
|
+
}, fn = ({ statusCode: t, message: e }) => {
|
|
1805
|
+
const r = dn(t);
|
|
1806
|
+
return /* @__PURE__ */ s.jsx(
|
|
1807
|
+
un,
|
|
1771
1808
|
{
|
|
1772
1809
|
title: r.title,
|
|
1773
1810
|
message: e ?? r.message,
|
|
1774
1811
|
category: t
|
|
1775
1812
|
}
|
|
1776
1813
|
);
|
|
1777
|
-
},
|
|
1814
|
+
}, hn = Me(null), Pe = {
|
|
1778
1815
|
didCatch: !1,
|
|
1779
1816
|
error: null
|
|
1780
1817
|
};
|
|
1781
|
-
class
|
|
1818
|
+
class mn extends Or {
|
|
1782
1819
|
constructor(e) {
|
|
1783
1820
|
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Pe;
|
|
1784
1821
|
}
|
|
@@ -1793,25 +1830,25 @@ class us extends Mr {
|
|
|
1793
1830
|
error: e
|
|
1794
1831
|
} = this.state;
|
|
1795
1832
|
if (e !== null) {
|
|
1796
|
-
for (var r,
|
|
1833
|
+
for (var r, n, a = arguments.length, i = new Array(a), o = 0; o < a; o++)
|
|
1797
1834
|
i[o] = arguments[o];
|
|
1798
|
-
(r = (
|
|
1835
|
+
(r = (n = this.props).onReset) === null || r === void 0 || r.call(n, {
|
|
1799
1836
|
args: i,
|
|
1800
1837
|
reason: "imperative-api"
|
|
1801
1838
|
}), this.setState(Pe);
|
|
1802
1839
|
}
|
|
1803
1840
|
}
|
|
1804
1841
|
componentDidCatch(e, r) {
|
|
1805
|
-
var
|
|
1806
|
-
(
|
|
1842
|
+
var n, a;
|
|
1843
|
+
(n = (a = this.props).onError) === null || n === void 0 || n.call(a, e, r);
|
|
1807
1844
|
}
|
|
1808
1845
|
componentDidUpdate(e, r) {
|
|
1809
1846
|
const {
|
|
1810
|
-
didCatch:
|
|
1847
|
+
didCatch: n
|
|
1811
1848
|
} = this.state, {
|
|
1812
1849
|
resetKeys: a
|
|
1813
1850
|
} = this.props;
|
|
1814
|
-
if (
|
|
1851
|
+
if (n && r.error !== null && pn(e.resetKeys, a)) {
|
|
1815
1852
|
var i, o;
|
|
1816
1853
|
(i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
|
|
1817
1854
|
next: a,
|
|
@@ -1824,7 +1861,7 @@ class us extends Mr {
|
|
|
1824
1861
|
const {
|
|
1825
1862
|
children: e,
|
|
1826
1863
|
fallbackRender: r,
|
|
1827
|
-
FallbackComponent:
|
|
1864
|
+
FallbackComponent: n,
|
|
1828
1865
|
fallback: a
|
|
1829
1866
|
} = this.props, {
|
|
1830
1867
|
didCatch: i,
|
|
@@ -1838,14 +1875,14 @@ class us extends Mr {
|
|
|
1838
1875
|
};
|
|
1839
1876
|
if (typeof r == "function")
|
|
1840
1877
|
f = r(h);
|
|
1841
|
-
else if (
|
|
1842
|
-
f =
|
|
1878
|
+
else if (n)
|
|
1879
|
+
f = Le(n, h);
|
|
1843
1880
|
else if (a !== void 0)
|
|
1844
1881
|
f = a;
|
|
1845
1882
|
else
|
|
1846
1883
|
throw o;
|
|
1847
1884
|
}
|
|
1848
|
-
return
|
|
1885
|
+
return Le(hn.Provider, {
|
|
1849
1886
|
value: {
|
|
1850
1887
|
didCatch: i,
|
|
1851
1888
|
error: o,
|
|
@@ -1854,25 +1891,25 @@ class us extends Mr {
|
|
|
1854
1891
|
}, f);
|
|
1855
1892
|
}
|
|
1856
1893
|
}
|
|
1857
|
-
function
|
|
1894
|
+
function pn() {
|
|
1858
1895
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1859
|
-
return t.length !== e.length || t.some((r,
|
|
1896
|
+
return t.length !== e.length || t.some((r, n) => !Object.is(r, e[n]));
|
|
1860
1897
|
}
|
|
1861
|
-
let
|
|
1898
|
+
let gn = () => ({
|
|
1862
1899
|
emit(t, ...e) {
|
|
1863
|
-
for (let r = this.events[t] || [],
|
|
1864
|
-
r[
|
|
1900
|
+
for (let r = this.events[t] || [], n = 0, a = r.length; n < a; n++)
|
|
1901
|
+
r[n](...e);
|
|
1865
1902
|
},
|
|
1866
1903
|
events: {},
|
|
1867
1904
|
on(t, e) {
|
|
1868
1905
|
var r;
|
|
1869
1906
|
return ((r = this.events)[t] || (r[t] = [])).push(e), () => {
|
|
1870
|
-
var
|
|
1871
|
-
this.events[t] = (
|
|
1907
|
+
var n;
|
|
1908
|
+
this.events[t] = (n = this.events[t]) == null ? void 0 : n.filter((a) => e !== a);
|
|
1872
1909
|
};
|
|
1873
1910
|
}
|
|
1874
1911
|
});
|
|
1875
|
-
class
|
|
1912
|
+
class xn {
|
|
1876
1913
|
constructor(e, r) {
|
|
1877
1914
|
A(this, "plugins");
|
|
1878
1915
|
A(this, "sidebars");
|
|
@@ -1881,40 +1918,40 @@ class hs {
|
|
|
1881
1918
|
A(this, "page");
|
|
1882
1919
|
A(this, "authentication");
|
|
1883
1920
|
A(this, "navigationPlugins");
|
|
1884
|
-
A(this, "emitter",
|
|
1921
|
+
A(this, "emitter", gn());
|
|
1885
1922
|
A(this, "initialize", async () => {
|
|
1886
1923
|
await Promise.all(
|
|
1887
|
-
this.plugins.filter(
|
|
1924
|
+
this.plugins.filter(rs).map((e) => {
|
|
1888
1925
|
var r;
|
|
1889
1926
|
return (r = e.initialize) == null ? void 0 : r.call(e, this);
|
|
1890
1927
|
})
|
|
1891
1928
|
);
|
|
1892
1929
|
});
|
|
1893
1930
|
A(this, "getApiIdentities", async () => (await Promise.all(
|
|
1894
|
-
this.plugins.filter(
|
|
1931
|
+
this.plugins.filter(ss).map((r) => r.getIdentities(this))
|
|
1895
1932
|
)).flat());
|
|
1896
1933
|
A(this, "emitEvent", (e, ...r) => this.emitter.emit(e, ...r));
|
|
1897
1934
|
A(this, "getPluginSidebar", async (e) => (await Promise.all(
|
|
1898
1935
|
this.navigationPlugins.map(
|
|
1899
|
-
(
|
|
1936
|
+
(n) => {
|
|
1900
1937
|
var a;
|
|
1901
|
-
return (a =
|
|
1938
|
+
return (a = n.getSidebar) == null ? void 0 : a.call(n, jr(e), this);
|
|
1902
1939
|
}
|
|
1903
1940
|
)
|
|
1904
|
-
)).flatMap((
|
|
1941
|
+
)).flatMap((n) => n ?? []));
|
|
1905
1942
|
A(this, "signRequest", async (e) => {
|
|
1906
1943
|
if (!this.authentication)
|
|
1907
1944
|
throw new Error("No authentication provider configured");
|
|
1908
1945
|
return await this.authentication.signRequest(e);
|
|
1909
1946
|
});
|
|
1910
|
-
this.options = e, this.queryClient = r, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(
|
|
1911
|
-
|
|
1947
|
+
this.options = e, this.queryClient = r, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(es), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((n) => {
|
|
1948
|
+
ts(n) && os(n.events).forEach(([a, i]) => {
|
|
1912
1949
|
this.emitter.on(a, i);
|
|
1913
1950
|
});
|
|
1914
|
-
}),
|
|
1951
|
+
}), br.subscribe((n, a) => {
|
|
1915
1952
|
this.emitEvent("auth", {
|
|
1916
1953
|
prev: a,
|
|
1917
|
-
next:
|
|
1954
|
+
next: n
|
|
1918
1955
|
});
|
|
1919
1956
|
});
|
|
1920
1957
|
}
|
|
@@ -1922,95 +1959,96 @@ class hs {
|
|
|
1922
1959
|
return this.emitter.on(e, r);
|
|
1923
1960
|
}
|
|
1924
1961
|
}
|
|
1925
|
-
function
|
|
1926
|
-
return /* @__PURE__ */
|
|
1962
|
+
function vn({ error: t, resetErrorBoundary: e }) {
|
|
1963
|
+
return /* @__PURE__ */ s.jsx(pt, { error: t });
|
|
1927
1964
|
}
|
|
1928
1965
|
const de = globalThis;
|
|
1929
1966
|
(!de.requestIdleCallback || !de.cancelIdleCallback) && (de.requestIdleCallback = (t) => setTimeout(t, 1), de.cancelIdleCallback = clearTimeout);
|
|
1930
|
-
const
|
|
1931
|
-
Header:
|
|
1932
|
-
},
|
|
1933
|
-
const t =
|
|
1967
|
+
const It = {
|
|
1968
|
+
Header: _t
|
|
1969
|
+
}, yn = Me(It), bn = yn.Provider, jn = () => {
|
|
1970
|
+
const t = pe(), e = F(), r = G(void 0);
|
|
1934
1971
|
return Q(() => {
|
|
1935
1972
|
e.emitEvent("location", {
|
|
1936
1973
|
from: r.current,
|
|
1937
1974
|
to: t
|
|
1938
1975
|
}), r.current = t;
|
|
1939
1976
|
}, [e, t]), null;
|
|
1940
|
-
},
|
|
1977
|
+
}, wn = ({
|
|
1941
1978
|
children: t,
|
|
1942
1979
|
context: e
|
|
1943
|
-
}) => (
|
|
1980
|
+
}) => (wr({
|
|
1944
1981
|
queryFn: async () => (await e.initialize(), !0),
|
|
1945
1982
|
queryKey: ["zudoku-initialize"]
|
|
1946
|
-
}), /* @__PURE__ */
|
|
1947
|
-
let
|
|
1948
|
-
const
|
|
1983
|
+
}), /* @__PURE__ */ s.jsx(Pr.Provider, { value: e, children: t }));
|
|
1984
|
+
let rt;
|
|
1985
|
+
const Ft = vt(
|
|
1949
1986
|
({ children: t, ...e }) => {
|
|
1950
|
-
var
|
|
1987
|
+
var g, y;
|
|
1951
1988
|
const r = be(
|
|
1952
|
-
() => ({
|
|
1989
|
+
() => ({ ...It, ...e.overrides }),
|
|
1953
1990
|
[e.overrides]
|
|
1954
|
-
),
|
|
1955
|
-
var
|
|
1991
|
+
), n = pe(), a = be(() => {
|
|
1992
|
+
var p;
|
|
1956
1993
|
return {
|
|
1957
|
-
...(e.plugins ?? []).filter(
|
|
1994
|
+
...(e.plugins ?? []).filter(ns).flatMap(
|
|
1958
1995
|
(C) => C.getMdxComponents ? [C.getMdxComponents()] : []
|
|
1959
1996
|
).reduce(
|
|
1960
|
-
(C,
|
|
1997
|
+
(C, E) => ({ ...C, ...E }),
|
|
1961
1998
|
{}
|
|
1962
1999
|
),
|
|
1963
|
-
|
|
1964
|
-
...(
|
|
2000
|
+
...Zr,
|
|
2001
|
+
...(p = e.mdx) == null ? void 0 : p.components
|
|
1965
2002
|
};
|
|
1966
|
-
}, [(
|
|
2003
|
+
}, [(g = e.mdx) == null ? void 0 : g.components, e.plugins]), { stagger: i } = Ar(Ne), [o, f] = J(!1), h = be(
|
|
1967
2004
|
() => o ? { stagger: !0 } : { stagger: i },
|
|
1968
2005
|
[i, o]
|
|
1969
|
-
), l =
|
|
2006
|
+
), l = ge(), b = ft();
|
|
1970
2007
|
Q(() => {
|
|
1971
2008
|
o || f(!0);
|
|
1972
|
-
}, [o, l.location]),
|
|
1973
|
-
const
|
|
2009
|
+
}, [o, l.location]), rt ?? (rt = new xn(e, b));
|
|
2010
|
+
const v = (y = e.plugins) == null ? void 0 : y.flatMap(
|
|
1974
2011
|
(m) => {
|
|
1975
|
-
var
|
|
1976
|
-
return
|
|
2012
|
+
var p;
|
|
2013
|
+
return as(m) ? ((p = m.getHead) == null ? void 0 : p.call(m, { location: n })) ?? [] : [];
|
|
1977
2014
|
}
|
|
1978
|
-
).map((m,
|
|
1979
|
-
return /* @__PURE__ */
|
|
1980
|
-
|
|
1981
|
-
/* @__PURE__ */
|
|
1982
|
-
/* @__PURE__ */
|
|
1983
|
-
/* @__PURE__ */
|
|
2015
|
+
).map((m, p) => /* @__PURE__ */ s.jsx(Ee, { children: m }, p));
|
|
2016
|
+
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2017
|
+
v,
|
|
2018
|
+
/* @__PURE__ */ s.jsx(Ne.Provider, { value: h, children: /* @__PURE__ */ s.jsxs(wn, { context: rt, children: [
|
|
2019
|
+
/* @__PURE__ */ s.jsx(jn, {}),
|
|
2020
|
+
/* @__PURE__ */ s.jsx(ys, { components: a, children: /* @__PURE__ */ s.jsx(ir, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(bn, { value: r, children: /* @__PURE__ */ s.jsx(Nr, { slotlets: e.slotlets, children: /* @__PURE__ */ s.jsx(Vr, { children: t ?? /* @__PURE__ */ s.jsx(lt, {}) }) }) }) }) })
|
|
1984
2021
|
] }) })
|
|
1985
2022
|
] });
|
|
1986
2023
|
}
|
|
1987
2024
|
);
|
|
1988
|
-
|
|
1989
|
-
const
|
|
1990
|
-
|
|
1991
|
-
const
|
|
2025
|
+
Ft.displayName = "ZudokoInner";
|
|
2026
|
+
const Qt = (t) => /* @__PURE__ */ s.jsx(mn, { FallbackComponent: vn, children: /* @__PURE__ */ s.jsx(Ft, { ...t }) });
|
|
2027
|
+
Qt.displayName = "Zudoku";
|
|
2028
|
+
const Zn = St, Vn = ln, Wn = Er, Gn = Ns, Xn = Ms, Jn = Os, ea = or, ta = Ee, Pn = F, ra = ae, sa = Sr, na = Cr, aa = Qt, oa = fn, ia = Tr, ca = Wr, la = yt, ua = xe, da = gt, fa = Te, ha = ct, ma = As;
|
|
1992
2029
|
export {
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2030
|
+
da as B,
|
|
2031
|
+
na as C,
|
|
2032
|
+
ta as H,
|
|
2033
|
+
fa as L,
|
|
2034
|
+
ca as M,
|
|
2035
|
+
Wn as R,
|
|
2036
|
+
Gn as S,
|
|
2037
|
+
aa as Z,
|
|
2038
|
+
ra as a,
|
|
2039
|
+
Pn as b,
|
|
2040
|
+
Zn as c,
|
|
2041
|
+
Vn as d,
|
|
2042
|
+
Xn as e,
|
|
2043
|
+
Jn as f,
|
|
2044
|
+
ea as g,
|
|
2045
|
+
sa as h,
|
|
2046
|
+
oa as i,
|
|
2047
|
+
ia as j,
|
|
2048
|
+
la as k,
|
|
2049
|
+
ua as l,
|
|
2050
|
+
ha as m,
|
|
2051
|
+
ma as n,
|
|
2052
|
+
St as u
|
|
2015
2053
|
};
|
|
2016
|
-
//# sourceMappingURL=index-
|
|
2054
|
+
//# sourceMappingURL=index-BPmAnNGI.js.map
|