zudoku 0.39.2 → 0.39.4
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/cli/build/handler.js +2 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/dev/handler.js +2 -1
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/validators/common.d.ts +871 -23
- package/dist/config/validators/common.js +44 -1
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +280 -9
- package/dist/lib/components/Footer.d.ts +1 -0
- package/dist/lib/components/Footer.js +32 -0
- package/dist/lib/components/Footer.js.map +1 -0
- package/dist/lib/components/Layout.js +2 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Pagination.d.ts +2 -1
- package/dist/lib/components/Pagination.js +2 -2
- package/dist/lib/components/Pagination.js.map +1 -1
- package/dist/lib/components/navigation/Sidebar.js +1 -10
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +2 -3
- package/dist/lib/components/navigation/SidebarWrapper.js +12 -3
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +4 -2
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.js +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/vite/api/schema-codegen.js +4 -1
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/plugin-api.js +3 -0
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-config-reload.js +3 -2
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/lib/{MdxPage-JscVnWM8.js → MdxPage-Vw_dc9Yz.js} +24 -23
- package/lib/MdxPage-Vw_dc9Yz.js.map +1 -0
- package/lib/{OasProvider-C4T5TU8Z.js → OasProvider-CjXTP-nz.js} +2 -2
- package/lib/{OasProvider-C4T5TU8Z.js.map → OasProvider-CjXTP-nz.js.map} +1 -1
- package/lib/{OperationList-C-gBHUou.js → OperationList-BYemrDYk.js} +17 -15
- package/lib/{OperationList-C-gBHUou.js.map → OperationList-BYemrDYk.js.map} +1 -1
- package/lib/{Pagination-DCCvGq0m.js → Pagination-SdlocK96.js} +14 -12
- package/lib/Pagination-SdlocK96.js.map +1 -0
- package/lib/{SchemaList-DuN6ThXR.js → SchemaList-CAeKy9pV.js} +2 -2
- package/lib/{SchemaList-DuN6ThXR.js.map → SchemaList-CAeKy9pV.js.map} +1 -1
- package/lib/{index-DsdAaiwx.js → index-C1OzjGUK.js} +4 -4
- package/lib/{index-DsdAaiwx.js.map → index-C1OzjGUK.js.map} +1 -1
- package/lib/{index-D6ktNq4i.js → index-D48iOQvJ.js} +433 -323
- package/lib/index-D48iOQvJ.js.map +1 -0
- package/lib/zudoku.components.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +48 -55
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +3 -3
- package/src/lib/components/Footer.tsx +136 -0
- package/src/lib/components/Layout.tsx +2 -0
- package/src/lib/components/Pagination.tsx +4 -1
- package/src/lib/components/navigation/Sidebar.tsx +26 -38
- package/src/lib/components/navigation/SidebarWrapper.tsx +12 -5
- package/src/lib/core/ZudokuContext.ts +7 -2
- package/src/lib/plugins/api-catalog/Catalog.tsx +1 -4
- package/src/lib/plugins/markdown/MdxPage.tsx +3 -2
- package/src/lib/plugins/openapi/OperationList.tsx +8 -6
- package/src/lib/plugins/openapi/OperationListItem.tsx +2 -2
- package/lib/MdxPage-JscVnWM8.js.map +0 -1
- package/lib/Pagination-DCCvGq0m.js.map +0 -1
- package/lib/index-D6ktNq4i.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
1
|
+
var sr = Object.defineProperty;
|
|
2
2
|
var De = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var O = (t, e, r) =>
|
|
7
|
-
var d = (t, e, r) => (qe(t, e, "read from private field"), r ? r.call(t) : e.get(t)),
|
|
5
|
+
var nr = (t, e, r) => e in t ? sr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
6
|
+
var O = (t, e, r) => nr(t, typeof e != "symbol" ? e + "" : e, r), qe = (t, e, r) => e.has(t) || De("Cannot " + r);
|
|
7
|
+
var d = (t, e, r) => (qe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), R = (t, e, r) => e.has(t) ? De("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), M = (t, e, r, n) => (qe(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
|
|
8
8
|
var ce = (t, e, r, n) => ({
|
|
9
9
|
set _(a) {
|
|
10
10
|
M(t, e, a, r);
|
|
@@ -16,28 +16,28 @@ var ce = (t, e, r, n) => ({
|
|
|
16
16
|
import { B as ot, a as it, H as Ne, R as ar } from "./RouteGuard-CqZPoZYJ.js";
|
|
17
17
|
import { z as ct, J as or } from "./index-DwT-v3zK.js";
|
|
18
18
|
import { R as ir, S as cr, u as pe, f as ge, g as lr, L as Te, O as lt } from "./chunk-HA7DTUK3-C4gP41vD.js";
|
|
19
|
-
import { S as ut, v as dt, Q as ur, n as
|
|
20
|
-
import { E as pt, S as
|
|
19
|
+
import { S as ut, v as dt, Q as ur, n as k, w as $e, x as Fe, y as B, z as dr, A as fr, B as hr, C as mr, D as Ie, E as Qe, F as pr, h as ze, G as Le, H as gr, g as ft, I as ht, e as I, l as ae, J as mt, K as vr, f as ee, u as xr, j as yr, d as br, Z as jr, L as wr, M as Pr } from "./hook-CqpVYDqN.js";
|
|
20
|
+
import { E as pt, S as _, a as Sr, R as Cr } from "./SlotletProvider-DXvc0aY6.js";
|
|
21
21
|
import { j as s } from "./jsx-runtime-CYK1ROHF.js";
|
|
22
22
|
import { Button as Er } from "./ui/Button.js";
|
|
23
23
|
import { Callout as Nr } from "./ui/Callout.js";
|
|
24
24
|
import { M as Tr } from "./mutation-8LjrN7uz.js";
|
|
25
25
|
import * as K from "react";
|
|
26
|
-
import he, { createContext as Me, StrictMode as gt, useRef as G, useEffect as Q, useState as J, useCallback as W, Suspense as Oe, memo as vt, Component as Mr, createElement as Be, useMemo as
|
|
26
|
+
import he, { createContext as Me, StrictMode as gt, useRef as G, useEffect as Q, useState as J, useCallback as W, Suspense as Oe, memo as vt, Component as Mr, createElement as Be, useMemo as ye, useContext as Or } from "react";
|
|
27
27
|
import * as Ar from "react-dom";
|
|
28
28
|
import { C as Ae } from "./ClientOnly-E7hGysn1.js";
|
|
29
|
-
import {
|
|
29
|
+
import { A as Rr, s as kr, a as He, b as _r, H as Dr, P as qr, c as $r, V as Fr, M as Ir } from "./Markdown-aF5FdsNi.js";
|
|
30
|
+
import { ExternalLink as Qr, CircleXIcon as zr, ChevronRightIcon as Lr, SearchIcon as Br, SunIcon as Hr, MoonIcon as Kr, MenuIcon as Ur, PanelLeftIcon as Yr } from "lucide-react";
|
|
31
|
+
import { c as A } from "./cn-qaFjX9_3.js";
|
|
32
|
+
import { S as xt } from "./Spinner-CE68iCm0.js";
|
|
33
|
+
import { C as Zr } from "./CategoryHeading-DpB47wvk.js";
|
|
34
|
+
import { isSearchPlugin as Vr, isProfileMenuPlugin as Wr, isNavigationPlugin as Gr, isEventConsumerPlugin as Xr, needsInitialization as Jr, isApiIdentityPlugin as es, isMdxProviderPlugin as ts, hasHead as rs } from "./zudoku.plugins.js";
|
|
35
|
+
import { o as ss } from "./objectEntries-yMIkr2mI.js";
|
|
30
36
|
import { B as Se } from "./Button-Fp19CMUr.js";
|
|
31
|
-
import {
|
|
32
|
-
import { isSearchPlugin as Ir, isProfileMenuPlugin as Qr, isNavigationPlugin as zr, isEventConsumerPlugin as Lr, needsInitialization as Br, isApiIdentityPlugin as Hr, isMdxProviderPlugin as Kr, hasHead as Ur } from "./zudoku.plugins.js";
|
|
33
|
-
import { DropdownMenu as Yr, DropdownMenuTrigger as Zr, DropdownMenuContent as Vr, DropdownMenuLabel as Wr, DropdownMenuSeparator as be, DropdownMenuSub as Gr, DropdownMenuSubTrigger as Xr, DropdownMenuPortal as Jr, DropdownMenuSubContent as en, DropdownMenuItem as tn } from "./ui/DropdownMenu.js";
|
|
34
|
-
import { CircleXIcon as rn, ChevronRightIcon as nn, SearchIcon as sn, SunIcon as an, MoonIcon as on, MenuIcon as cn, PanelLeftIcon as ln } from "lucide-react";
|
|
37
|
+
import { DropdownMenu as ns, DropdownMenuTrigger as as, DropdownMenuContent as os, DropdownMenuLabel as is, DropdownMenuSeparator as be, DropdownMenuSub as cs, DropdownMenuSubTrigger as ls, DropdownMenuPortal as us, DropdownMenuSubContent as ds, DropdownMenuItem as fs } from "./ui/DropdownMenu.js";
|
|
35
38
|
import { VisuallyHidden as yt } from "@radix-ui/react-visually-hidden";
|
|
36
|
-
import { D as
|
|
37
|
-
import { a as
|
|
38
|
-
import { S as jt } from "./Spinner-CE68iCm0.js";
|
|
39
|
-
import { C as hn } from "./CategoryHeading-DpB47wvk.js";
|
|
40
|
-
import { o as mn } from "./objectEntries-yMIkr2mI.js";
|
|
39
|
+
import { D as hs, a as ms, b as bt, c as jt, d as z } from "./Drawer-kDAfOq_2.js";
|
|
40
|
+
import { a as ps } from "./index-CPNSgwSb.js";
|
|
41
41
|
const Ce = {}, wt = he.createContext(Ce);
|
|
42
42
|
function Pt(t) {
|
|
43
43
|
const e = he.useContext(wt);
|
|
@@ -48,7 +48,7 @@ function Pt(t) {
|
|
|
48
48
|
[e, t]
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function gs(t) {
|
|
52
52
|
let e;
|
|
53
53
|
return t.disableParentContext ? e = typeof t.components == "function" ? t.components(Ce) : t.components || Ce : e = Pt(t.components), he.createElement(
|
|
54
54
|
wt.Provider,
|
|
@@ -56,10 +56,10 @@ function pn(t) {
|
|
|
56
56
|
t.children
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
|
-
var F,
|
|
59
|
+
var F, st, vs = (st = class extends ut {
|
|
60
60
|
constructor(e = {}) {
|
|
61
61
|
super();
|
|
62
|
-
|
|
62
|
+
R(this, F);
|
|
63
63
|
this.config = e, M(this, F, /* @__PURE__ */ new Map());
|
|
64
64
|
}
|
|
65
65
|
build(e, r, n) {
|
|
@@ -85,7 +85,7 @@ var F, nt, gn = (nt = class extends ut {
|
|
|
85
85
|
r && (e.destroy(), r === e && d(this, F).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
86
86
|
}
|
|
87
87
|
clear() {
|
|
88
|
-
|
|
88
|
+
k.batch(() => {
|
|
89
89
|
this.getAll().forEach((e) => {
|
|
90
90
|
this.remove(e);
|
|
91
91
|
});
|
|
@@ -108,33 +108,33 @@ var F, nt, gn = (nt = class extends ut {
|
|
|
108
108
|
return Object.keys(e).length > 0 ? r.filter((n) => $e(e, n)) : r;
|
|
109
109
|
}
|
|
110
110
|
notify(e) {
|
|
111
|
-
|
|
111
|
+
k.batch(() => {
|
|
112
112
|
this.listeners.forEach((r) => {
|
|
113
113
|
r(e);
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
onFocus() {
|
|
118
|
-
|
|
118
|
+
k.batch(() => {
|
|
119
119
|
this.getAll().forEach((e) => {
|
|
120
120
|
e.onFocus();
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
onOnline() {
|
|
125
|
-
|
|
125
|
+
k.batch(() => {
|
|
126
126
|
this.getAll().forEach((e) => {
|
|
127
127
|
e.onOnline();
|
|
128
128
|
});
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
-
}, F = new WeakMap(),
|
|
131
|
+
}, F = new WeakMap(), st), H, $, oe, nt, xs = (nt = class extends ut {
|
|
132
132
|
constructor(e = {}) {
|
|
133
133
|
super();
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
this.config = e, M(this, H, /* @__PURE__ */ new Set()), M(this,
|
|
134
|
+
R(this, H);
|
|
135
|
+
R(this, $);
|
|
136
|
+
R(this, oe);
|
|
137
|
+
this.config = e, M(this, H, /* @__PURE__ */ new Set()), M(this, $, /* @__PURE__ */ new Map()), M(this, oe, 0);
|
|
138
138
|
}
|
|
139
139
|
build(e, r, n) {
|
|
140
140
|
const a = new Tr({
|
|
@@ -149,8 +149,8 @@ var F, nt, gn = (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 n = d(this,
|
|
153
|
-
n ? n.push(e) : d(this,
|
|
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 F, nt, gn = (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 n = d(this,
|
|
161
|
+
const n = d(this, $).get(r);
|
|
162
162
|
if (n)
|
|
163
163
|
if (n.length > 1) {
|
|
164
164
|
const a = n.indexOf(e);
|
|
165
165
|
a !== -1 && n.splice(a, 1);
|
|
166
|
-
} else n[0] === e && d(this,
|
|
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 F, nt, gn = (nt = class extends ut {
|
|
|
171
171
|
canRun(e) {
|
|
172
172
|
const r = le(e);
|
|
173
173
|
if (typeof r == "string") {
|
|
174
|
-
const n = d(this,
|
|
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;
|
|
@@ -182,16 +182,16 @@ var F, nt, gn = (nt = class extends ut {
|
|
|
182
182
|
var n;
|
|
183
183
|
const r = le(e);
|
|
184
184
|
if (typeof r == "string") {
|
|
185
|
-
const a = (n = d(this,
|
|
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
|
+
k.batch(() => {
|
|
192
192
|
d(this, H).forEach((e) => {
|
|
193
193
|
this.notify({ type: "removed", mutation: e });
|
|
194
|
-
}), d(this, H).clear(), d(this,
|
|
194
|
+
}), d(this, H).clear(), d(this, $).clear();
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
getAll() {
|
|
@@ -207,7 +207,7 @@ var F, nt, gn = (nt = class extends ut {
|
|
|
207
207
|
return this.getAll().filter((r) => Fe(e, r));
|
|
208
208
|
}
|
|
209
209
|
notify(e) {
|
|
210
|
-
|
|
210
|
+
k.batch(() => {
|
|
211
211
|
this.listeners.forEach((r) => {
|
|
212
212
|
r(e);
|
|
213
213
|
});
|
|
@@ -215,13 +215,13 @@ var F, nt, gn = (nt = class extends ut {
|
|
|
215
215
|
}
|
|
216
216
|
resumePausedMutations() {
|
|
217
217
|
const e = this.getAll().filter((r) => r.state.isPaused);
|
|
218
|
-
return
|
|
218
|
+
return k.batch(
|
|
219
219
|
() => Promise.all(
|
|
220
220
|
e.map((r) => r.continue().catch(B))
|
|
221
221
|
)
|
|
222
222
|
);
|
|
223
223
|
}
|
|
224
|
-
}, H = 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;
|
|
@@ -229,8 +229,8 @@ function le(t) {
|
|
|
229
229
|
function Ke(t) {
|
|
230
230
|
return {
|
|
231
231
|
onFetch: (e, r) => {
|
|
232
|
-
var b,
|
|
233
|
-
const n = e.options, a = (g = (
|
|
232
|
+
var b, x, g, y, m;
|
|
233
|
+
const n = e.options, a = (g = (x = (b = e.fetchOptions) == null ? void 0 : b.meta) == null ? void 0 : x.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
236
|
let p = !1;
|
|
@@ -254,16 +254,16 @@ function Ke(t) {
|
|
|
254
254
|
meta: e.options.meta
|
|
255
255
|
};
|
|
256
256
|
C(S);
|
|
257
|
-
const
|
|
257
|
+
const D = await N(
|
|
258
258
|
S
|
|
259
|
-
), { maxPages:
|
|
259
|
+
), { maxPages: q } = e.options, L = c ? fr : hr;
|
|
260
260
|
return {
|
|
261
|
-
pages: L(v.pages,
|
|
262
|
-
pageParams: L(v.pageParams, j,
|
|
261
|
+
pages: L(v.pages, D, q),
|
|
262
|
+
pageParams: L(v.pageParams, j, q)
|
|
263
263
|
};
|
|
264
264
|
};
|
|
265
265
|
if (a && i.length) {
|
|
266
|
-
const v = a === "backward", j = v ?
|
|
266
|
+
const v = a === "backward", j = v ? ys : Ue, c = {
|
|
267
267
|
pages: i,
|
|
268
268
|
pageParams: o
|
|
269
269
|
}, S = j(n, c);
|
|
@@ -305,32 +305,32 @@ function Ue(t, { pages: e, pageParams: r }) {
|
|
|
305
305
|
r
|
|
306
306
|
) : void 0;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function ys(t, { pages: e, pageParams: r }) {
|
|
309
309
|
var n;
|
|
310
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 E, Y, Z, te, re, V,
|
|
312
|
+
var E, Y, Z, te, re, V, se, ne, at, bs = (at = class {
|
|
313
313
|
constructor(t = {}) {
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
M(this, E, t.queryCache || new
|
|
314
|
+
R(this, E);
|
|
315
|
+
R(this, Y);
|
|
316
|
+
R(this, Z);
|
|
317
|
+
R(this, te);
|
|
318
|
+
R(this, re);
|
|
319
|
+
R(this, V);
|
|
320
|
+
R(this, se);
|
|
321
|
+
R(this, ne);
|
|
322
|
+
M(this, E, t.queryCache || new vs()), M(this, Y, t.mutationCache || new xs()), 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,
|
|
325
|
+
ce(this, V)._++, d(this, V) === 1 && (M(this, se, mr.subscribe(async (t) => {
|
|
326
326
|
t && (await this.resumePausedMutations(), d(this, E).onFocus());
|
|
327
|
-
})), M(this,
|
|
327
|
+
})), M(this, ne, Ie.subscribe(async (t) => {
|
|
328
328
|
t && (await this.resumePausedMutations(), d(this, E).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
336
|
return d(this, E).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
@@ -361,7 +361,7 @@ var E, Y, Z, te, re, V, ne, se, at, xn = (at = class {
|
|
|
361
361
|
return d(this, E).build(this, n).setData(o, { ...r, manual: !0 });
|
|
362
362
|
}
|
|
363
363
|
setQueriesData(t, e, r) {
|
|
364
|
-
return
|
|
364
|
+
return k.batch(
|
|
365
365
|
() => d(this, E).findAll(t).map(({ queryKey: n }) => [
|
|
366
366
|
n,
|
|
367
367
|
this.setQueryData(n, e, r)
|
|
@@ -377,7 +377,7 @@ var E, Y, Z, te, re, V, ne, se, at, xn = (at = class {
|
|
|
377
377
|
}
|
|
378
378
|
removeQueries(t) {
|
|
379
379
|
const e = d(this, E);
|
|
380
|
-
|
|
380
|
+
k.batch(() => {
|
|
381
381
|
e.findAll(t).forEach((r) => {
|
|
382
382
|
e.remove(r);
|
|
383
383
|
});
|
|
@@ -388,18 +388,18 @@ var E, Y, Z, te, re, V, ne, se, at, xn = (at = class {
|
|
|
388
388
|
type: "active",
|
|
389
389
|
...t
|
|
390
390
|
};
|
|
391
|
-
return
|
|
391
|
+
return k.batch(() => (r.findAll(t).forEach((a) => {
|
|
392
392
|
a.reset();
|
|
393
393
|
}), this.refetchQueries(n, e)));
|
|
394
394
|
}
|
|
395
395
|
cancelQueries(t, e = {}) {
|
|
396
|
-
const r = { revert: !0, ...e }, n =
|
|
396
|
+
const r = { revert: !0, ...e }, n = k.batch(
|
|
397
397
|
() => d(this, E).findAll(t).map((a) => a.cancel(r))
|
|
398
398
|
);
|
|
399
399
|
return Promise.all(n).then(B).catch(B);
|
|
400
400
|
}
|
|
401
401
|
invalidateQueries(t, e = {}) {
|
|
402
|
-
return
|
|
402
|
+
return k.batch(() => {
|
|
403
403
|
if (d(this, E).findAll(t).forEach((n) => {
|
|
404
404
|
n.invalidate();
|
|
405
405
|
}), (t == null ? void 0 : t.refetchType) === "none")
|
|
@@ -415,7 +415,7 @@ var E, Y, Z, te, re, V, ne, se, at, xn = (at = class {
|
|
|
415
415
|
const r = {
|
|
416
416
|
...e,
|
|
417
417
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
418
|
-
}, n =
|
|
418
|
+
}, n = k.batch(
|
|
419
419
|
() => d(this, E).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
|
|
420
420
|
let i = a.fetch(void 0, r);
|
|
421
421
|
return r.throwOnError || (i = i.catch(B)), a.state.fetchStatus === "paused" ? Promise.resolve() : i;
|
|
@@ -508,33 +508,33 @@ var E, Y, Z, te, re, V, ne, se, at, xn = (at = class {
|
|
|
508
508
|
clear() {
|
|
509
509
|
d(this, E).clear(), d(this, Y).clear();
|
|
510
510
|
}
|
|
511
|
-
}, E = new WeakMap(), Y = new WeakMap(), Z = new WeakMap(), te = new WeakMap(), re = new WeakMap(), V = new WeakMap(),
|
|
512
|
-
function
|
|
511
|
+
}, E = new WeakMap(), Y = new WeakMap(), Z = new WeakMap(), te = new WeakMap(), re = new WeakMap(), V = new WeakMap(), se = new WeakMap(), ne = new WeakMap(), at);
|
|
512
|
+
function js(t) {
|
|
513
513
|
return t;
|
|
514
514
|
}
|
|
515
515
|
function Ye(t, e, r) {
|
|
516
516
|
var h, l;
|
|
517
517
|
if (typeof e != "object" || e === null)
|
|
518
518
|
return;
|
|
519
|
-
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) ??
|
|
520
|
-
o.forEach(({ state: b, ...
|
|
521
|
-
var g,
|
|
519
|
+
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) ?? js, o = e.mutations || [], f = e.queries || [];
|
|
520
|
+
o.forEach(({ state: b, ...x }) => {
|
|
521
|
+
var g, y;
|
|
522
522
|
n.build(
|
|
523
523
|
t,
|
|
524
524
|
{
|
|
525
525
|
...(g = t.getDefaultOptions().hydrate) == null ? void 0 : g.mutations,
|
|
526
|
-
...(
|
|
527
|
-
...
|
|
526
|
+
...(y = r == null ? void 0 : r.defaultOptions) == null ? void 0 : y.mutations,
|
|
527
|
+
...x
|
|
528
528
|
},
|
|
529
529
|
b
|
|
530
530
|
);
|
|
531
|
-
}), f.forEach(({ queryKey: b, state:
|
|
531
|
+
}), f.forEach(({ queryKey: b, state: x, queryHash: g, meta: y, promise: m }) => {
|
|
532
532
|
var N, T;
|
|
533
533
|
let p = a.get(g);
|
|
534
|
-
const C =
|
|
534
|
+
const C = x.data === void 0 ? x.data : i(x.data);
|
|
535
535
|
if (p) {
|
|
536
|
-
if (p.state.dataUpdatedAt <
|
|
537
|
-
const { fetchStatus: v, ...j } =
|
|
536
|
+
if (p.state.dataUpdatedAt < x.dataUpdatedAt) {
|
|
537
|
+
const { fetchStatus: v, ...j } = x;
|
|
538
538
|
p.setState({
|
|
539
539
|
...j,
|
|
540
540
|
data: C
|
|
@@ -548,12 +548,12 @@ function Ye(t, e, r) {
|
|
|
548
548
|
...(T = r == null ? void 0 : r.defaultOptions) == null ? void 0 : T.queries,
|
|
549
549
|
queryKey: b,
|
|
550
550
|
queryHash: g,
|
|
551
|
-
meta:
|
|
551
|
+
meta: y
|
|
552
552
|
},
|
|
553
553
|
// Reset fetch status to idle to avoid
|
|
554
554
|
// query being stuck in fetching state upon hydration
|
|
555
555
|
{
|
|
556
|
-
...
|
|
556
|
+
...x,
|
|
557
557
|
data: C,
|
|
558
558
|
fetchStatus: "idle"
|
|
559
559
|
}
|
|
@@ -564,7 +564,7 @@ function Ye(t, e, r) {
|
|
|
564
564
|
}
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
|
-
var Ze = (t, e) => typeof t == "object" && t !== null && e in t,
|
|
567
|
+
var Ze = (t, e) => typeof t == "object" && t !== null && e in t, ws = ({
|
|
568
568
|
children: t,
|
|
569
569
|
options: e = {},
|
|
570
570
|
state: r,
|
|
@@ -575,28 +575,28 @@ var Ze = (t, e) => typeof t == "object" && t !== null && e in t, jn = ({
|
|
|
575
575
|
if (r) {
|
|
576
576
|
if (typeof r != "object")
|
|
577
577
|
return;
|
|
578
|
-
const h = a.getQueryCache(), l = r.queries || [], b = [],
|
|
578
|
+
const h = a.getQueryCache(), l = r.queries || [], b = [], x = [];
|
|
579
579
|
for (const g of l) {
|
|
580
|
-
const
|
|
581
|
-
if (!
|
|
580
|
+
const y = h.get(g.queryHash);
|
|
581
|
+
if (!y)
|
|
582
582
|
b.push(g);
|
|
583
583
|
else {
|
|
584
|
-
const m = g.state.dataUpdatedAt >
|
|
585
|
-
Ze(g.promise, "status") && Ze(
|
|
584
|
+
const m = g.state.dataUpdatedAt > y.state.dataUpdatedAt || // RSC special serialized then-able chunks
|
|
585
|
+
Ze(g.promise, "status") && Ze(y.promise, "status") && g.promise.status !== y.promise.status, p = i == null ? void 0 : i.find(
|
|
586
586
|
(C) => C.queryHash === g.queryHash
|
|
587
587
|
);
|
|
588
|
-
m && (!p || g.state.dataUpdatedAt > p.state.dataUpdatedAt) &&
|
|
588
|
+
m && (!p || g.state.dataUpdatedAt > p.state.dataUpdatedAt) && x.push(g);
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
b.length > 0 && Ye(a, { queries: b }, f.current),
|
|
592
|
-
(g) => g ? [...g, ...
|
|
591
|
+
b.length > 0 && Ye(a, { queries: b }, f.current), x.length > 0 && o(
|
|
592
|
+
(g) => g ? [...g, ...x] : x
|
|
593
593
|
);
|
|
594
594
|
}
|
|
595
595
|
}, [a, i, r]), K.useEffect(() => {
|
|
596
596
|
i && (Ye(a, { queries: i }, f.current), o(void 0));
|
|
597
597
|
}, [a, i]), t;
|
|
598
598
|
};
|
|
599
|
-
function
|
|
599
|
+
function Ps({ error: t }) {
|
|
600
600
|
return /* @__PURE__ */ s.jsx(pt, { error: t });
|
|
601
601
|
}
|
|
602
602
|
/**
|
|
@@ -609,39 +609,150 @@ function wn({ error: t }) {
|
|
|
609
609
|
*
|
|
610
610
|
* @license MIT
|
|
611
611
|
*/
|
|
612
|
-
function
|
|
612
|
+
function Ss(t) {
|
|
613
613
|
return /* @__PURE__ */ K.createElement(ir, { flushSync: Ar.flushSync, ...t });
|
|
614
614
|
}
|
|
615
|
-
const Ee = Me({ stagger: !1 }),
|
|
615
|
+
const Ee = Me({ stagger: !1 }), Cs = new bs({
|
|
616
616
|
defaultOptions: {
|
|
617
617
|
queries: {
|
|
618
618
|
staleTime: 1e3 * 60 * 5
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
}),
|
|
621
|
+
}), Es = ({
|
|
622
622
|
router: t,
|
|
623
623
|
hydrate: e = !1
|
|
624
|
-
}) => /* @__PURE__ */ s.jsx(gt, { children: /* @__PURE__ */ s.jsx(ht, { client:
|
|
624
|
+
}) => /* @__PURE__ */ s.jsx(gt, { children: /* @__PURE__ */ s.jsx(ht, { client: Cs, children: /* @__PURE__ */ s.jsx(ws, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ s.jsx(ot, { value: !1, children: /* @__PURE__ */ s.jsx(it, { children: /* @__PURE__ */ s.jsx(Ee.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ s.jsx(Ss, { router: t }) }) }) }) }) }) }), Ns = ({
|
|
625
625
|
router: t,
|
|
626
626
|
context: e,
|
|
627
627
|
queryClient: r,
|
|
628
628
|
helmetContext: n,
|
|
629
629
|
bypassProtection: a = !1
|
|
630
|
-
}) => /* @__PURE__ */ s.jsx(gt, { 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(cr, { router: t, context: e }) }) }) }) }),
|
|
630
|
+
}) => /* @__PURE__ */ s.jsx(gt, { 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(cr, { router: t, context: e }) }) }) }) }), Ts = () => {
|
|
631
631
|
const t = pe(), e = G(t.pathname);
|
|
632
632
|
Q(() => {
|
|
633
633
|
const r = e.current !== t.pathname, n = t.hash !== "";
|
|
634
634
|
r && !n && window.scrollTo(0, 0), e.current = t.pathname;
|
|
635
635
|
}, [t.pathname, t.hash]);
|
|
636
|
+
}, Ms = ({
|
|
637
|
+
icon: t
|
|
638
|
+
}) => typeof t == "string" ? /* @__PURE__ */ s.jsx(
|
|
639
|
+
"img",
|
|
640
|
+
{
|
|
641
|
+
src: `https://cdn.simpleicons.org/${t}/000000/ffffff`,
|
|
642
|
+
className: "size-5",
|
|
643
|
+
alt: t
|
|
644
|
+
}
|
|
645
|
+
) : t, Os = (t) => /^https?:/.test(t), As = () => {
|
|
646
|
+
var r;
|
|
647
|
+
const { page: t } = vn(), e = t == null ? void 0 : t.footer;
|
|
648
|
+
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: [
|
|
649
|
+
/* @__PURE__ */ s.jsxs(
|
|
650
|
+
"div",
|
|
651
|
+
{
|
|
652
|
+
className: A("flex flex-row gap-8", {
|
|
653
|
+
"justify-center": !e.position || e.position === "center",
|
|
654
|
+
"justify-start": e.position === "start",
|
|
655
|
+
"justify-end": e.position === "end"
|
|
656
|
+
}),
|
|
657
|
+
children: [
|
|
658
|
+
/* @__PURE__ */ s.jsx(_, { name: "footer-before" }),
|
|
659
|
+
e.columns && /* @__PURE__ */ s.jsx(
|
|
660
|
+
"div",
|
|
661
|
+
{
|
|
662
|
+
className: "w-full md:max-w-screen-md grid grid-cols-[1fr_1fr] gap-8 md:grid-cols-[repeat(var(--columns),minmax(0,1fr))]",
|
|
663
|
+
style: { "--columns": e.columns.length },
|
|
664
|
+
children: e.columns.map((n) => /* @__PURE__ */ s.jsxs(
|
|
665
|
+
"div",
|
|
666
|
+
{
|
|
667
|
+
className: A({
|
|
668
|
+
"justify-self-center": !n.position || n.position === "center",
|
|
669
|
+
"justify-self-start": n.position === "start",
|
|
670
|
+
"justify-self-end": n.position === "end"
|
|
671
|
+
}),
|
|
672
|
+
children: [
|
|
673
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-sm font-semibold", children: n.title }),
|
|
674
|
+
/* @__PURE__ */ s.jsx("ul", { className: "mt-4 space-y-2", children: n.links.map((a) => {
|
|
675
|
+
const i = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
|
|
676
|
+
return /* @__PURE__ */ s.jsx("li", { children: Os(a.href) ? /* @__PURE__ */ s.jsxs(
|
|
677
|
+
"a",
|
|
678
|
+
{
|
|
679
|
+
href: a.href,
|
|
680
|
+
target: "_blank",
|
|
681
|
+
rel: "noopener noreferrer",
|
|
682
|
+
className: i,
|
|
683
|
+
children: [
|
|
684
|
+
/* @__PURE__ */ s.jsx("span", { children: a.label }),
|
|
685
|
+
/* @__PURE__ */ s.jsx(Qr, { size: 12 })
|
|
686
|
+
]
|
|
687
|
+
}
|
|
688
|
+
) : /* @__PURE__ */ s.jsx(Rr, { to: a.href, className: i, children: /* @__PURE__ */ s.jsx("span", { children: a.label }) }) }, a.href);
|
|
689
|
+
}) })
|
|
690
|
+
]
|
|
691
|
+
},
|
|
692
|
+
n.title
|
|
693
|
+
))
|
|
694
|
+
}
|
|
695
|
+
),
|
|
696
|
+
/* @__PURE__ */ s.jsx(_, { name: "footer-after" })
|
|
697
|
+
]
|
|
698
|
+
}
|
|
699
|
+
),
|
|
700
|
+
/* @__PURE__ */ s.jsxs(
|
|
701
|
+
"div",
|
|
702
|
+
{
|
|
703
|
+
className: A(
|
|
704
|
+
"flex items-center justify-between",
|
|
705
|
+
e.columns && "border-t mt-8 pt-8"
|
|
706
|
+
),
|
|
707
|
+
children: [
|
|
708
|
+
e.logo && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
709
|
+
/* @__PURE__ */ s.jsx(
|
|
710
|
+
"img",
|
|
711
|
+
{
|
|
712
|
+
src: e.logo.src.light,
|
|
713
|
+
alt: e.logo.alt,
|
|
714
|
+
className: "w-8 dark:hidden",
|
|
715
|
+
style: { width: e.logo.width }
|
|
716
|
+
}
|
|
717
|
+
),
|
|
718
|
+
/* @__PURE__ */ s.jsx(
|
|
719
|
+
"img",
|
|
720
|
+
{
|
|
721
|
+
src: e.logo.src.dark,
|
|
722
|
+
alt: e.logo.alt,
|
|
723
|
+
className: "w-8 hidden dark:block",
|
|
724
|
+
style: { width: e.logo.width }
|
|
725
|
+
}
|
|
726
|
+
)
|
|
727
|
+
] }),
|
|
728
|
+
e.copyright && /* @__PURE__ */ s.jsx("p", { className: "text-sm text-muted-foreground", children: e.copyright }),
|
|
729
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex items-center gap-2", children: (r = e.social) == null ? void 0 : r.map((n) => /* @__PURE__ */ s.jsxs(
|
|
730
|
+
"a",
|
|
731
|
+
{
|
|
732
|
+
href: n.href,
|
|
733
|
+
target: "_blank",
|
|
734
|
+
rel: "noopener noreferrer",
|
|
735
|
+
className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
|
|
736
|
+
children: [
|
|
737
|
+
/* @__PURE__ */ s.jsx(Ms, { icon: n.icon }),
|
|
738
|
+
n.label
|
|
739
|
+
]
|
|
740
|
+
},
|
|
741
|
+
n.href
|
|
742
|
+
)) })
|
|
743
|
+
]
|
|
744
|
+
}
|
|
745
|
+
)
|
|
746
|
+
] }) }) : null;
|
|
636
747
|
};
|
|
637
|
-
function
|
|
748
|
+
function Rs({
|
|
638
749
|
className: t,
|
|
639
750
|
...e
|
|
640
751
|
}) {
|
|
641
752
|
return /* @__PURE__ */ s.jsx(
|
|
642
753
|
"div",
|
|
643
754
|
{
|
|
644
|
-
className:
|
|
755
|
+
className: A("animate-pulse rounded-md bg-muted", t),
|
|
645
756
|
...e
|
|
646
757
|
}
|
|
647
758
|
);
|
|
@@ -652,7 +763,7 @@ const Ve = {
|
|
|
652
763
|
tip: "bg-green-600",
|
|
653
764
|
caution: "bg-orange-500",
|
|
654
765
|
danger: "bg-rose-500"
|
|
655
|
-
},
|
|
766
|
+
}, ks = () => {
|
|
656
767
|
const { page: t } = I(), [e, r] = J(!0);
|
|
657
768
|
if (!(t != null && t.banner) || !e)
|
|
658
769
|
return /* @__PURE__ */ s.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
@@ -660,7 +771,7 @@ const Ve = {
|
|
|
660
771
|
return /* @__PURE__ */ s.jsxs(
|
|
661
772
|
"div",
|
|
662
773
|
{
|
|
663
|
-
className:
|
|
774
|
+
className: A(
|
|
664
775
|
"relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
|
|
665
776
|
n
|
|
666
777
|
),
|
|
@@ -674,7 +785,7 @@ const Ve = {
|
|
|
674
785
|
type: "button",
|
|
675
786
|
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
676
787
|
onClick: () => r(!1),
|
|
677
|
-
children: /* @__PURE__ */ s.jsx(
|
|
788
|
+
children: /* @__PURE__ */ s.jsx(zr, { size: 16 })
|
|
678
789
|
}
|
|
679
790
|
)
|
|
680
791
|
]
|
|
@@ -714,7 +825,7 @@ const Ct = ({ className: t }) => /* @__PURE__ */ s.jsxs(
|
|
|
714
825
|
href: "https://zudoku.dev",
|
|
715
826
|
target: "_blank",
|
|
716
827
|
rel: "noopener noreferrer",
|
|
717
|
-
className:
|
|
828
|
+
className: A(
|
|
718
829
|
"flex justify-between items-center w-full border border-transparent hover:border-border rounded-full hover:shadow-sm h-7 px-3 text-nowrap hover:bg-muted/80 transition-all",
|
|
719
830
|
t
|
|
720
831
|
),
|
|
@@ -723,7 +834,7 @@ const Ct = ({ className: t }) => /* @__PURE__ */ s.jsxs(
|
|
|
723
834
|
/* @__PURE__ */ s.jsx(St, { className: "w-3.5 h-3.5 dark:fill-white" }),
|
|
724
835
|
"powered by Zudoku"
|
|
725
836
|
] }),
|
|
726
|
-
/* @__PURE__ */ s.jsx("div", { className: "text-xs font-medium opacity-70 hover:text-foreground transition-colors cursor-pointer", children: /* @__PURE__ */ s.jsx(
|
|
837
|
+
/* @__PURE__ */ s.jsx("div", { className: "text-xs font-medium opacity-70 hover:text-foreground transition-colors cursor-pointer", children: /* @__PURE__ */ s.jsx(Lr, { size: 12, absoluteStrokeWidth: !0, strokeWidth: 1.5 }) })
|
|
727
838
|
]
|
|
728
839
|
}
|
|
729
840
|
), Et = ({ className: t }) => {
|
|
@@ -738,7 +849,7 @@ const Ct = ({ className: t }) => /* @__PURE__ */ s.jsxs(
|
|
|
738
849
|
window.removeEventListener("keydown", o);
|
|
739
850
|
};
|
|
740
851
|
}, [r, n]);
|
|
741
|
-
const i = e.plugins.find(
|
|
852
|
+
const i = e.plugins.find(Vr);
|
|
742
853
|
return i ? /* @__PURE__ */ s.jsxs("div", { className: t, children: [
|
|
743
854
|
/* @__PURE__ */ s.jsxs(
|
|
744
855
|
"button",
|
|
@@ -748,7 +859,7 @@ const Ct = ({ className: t }) => /* @__PURE__ */ s.jsxs(
|
|
|
748
859
|
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",
|
|
749
860
|
children: [
|
|
750
861
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
751
|
-
/* @__PURE__ */ s.jsx(
|
|
862
|
+
/* @__PURE__ */ s.jsx(Br, { size: 14 }),
|
|
752
863
|
"Search"
|
|
753
864
|
] }),
|
|
754
865
|
/* @__PURE__ */ s.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
|
|
@@ -773,23 +884,23 @@ const Ct = ({ className: t }) => /* @__PURE__ */ s.jsxs(
|
|
|
773
884
|
/* @__PURE__ */ s.jsx(
|
|
774
885
|
"div",
|
|
775
886
|
{
|
|
776
|
-
className:
|
|
887
|
+
className: A(
|
|
777
888
|
"border border-transparent rounded-full p-0.5 [&>svg>circle]:transition-colors [&>svg>path]:transition-transform transition-all [&>svg>path]:duration-200 [&>svg>circle]:duration-500 [&>svg>circle]:fill-transparent",
|
|
778
889
|
t === "light" && "border-border bg-muted",
|
|
779
890
|
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] "
|
|
780
891
|
),
|
|
781
|
-
children: /* @__PURE__ */ s.jsx(
|
|
892
|
+
children: /* @__PURE__ */ s.jsx(Hr, { size: 16 })
|
|
782
893
|
}
|
|
783
894
|
),
|
|
784
895
|
/* @__PURE__ */ s.jsx(
|
|
785
896
|
"div",
|
|
786
897
|
{
|
|
787
|
-
className:
|
|
898
|
+
className: A(
|
|
788
899
|
"border border-transparent rounded-full p-0.5 transition-transform transform-gpu duration-500",
|
|
789
900
|
t === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
|
|
790
901
|
t === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
|
|
791
902
|
),
|
|
792
|
-
children: /* @__PURE__ */ s.jsx(
|
|
903
|
+
children: /* @__PURE__ */ s.jsx(Kr, { size: 16 })
|
|
793
904
|
}
|
|
794
905
|
)
|
|
795
906
|
]
|
|
@@ -815,10 +926,10 @@ var ue = { exports: {} }, w = {};
|
|
|
815
926
|
* LICENSE file in the root directory of this source tree.
|
|
816
927
|
*/
|
|
817
928
|
var We;
|
|
818
|
-
function
|
|
929
|
+
function _s() {
|
|
819
930
|
if (We) return w;
|
|
820
931
|
We = 1;
|
|
821
|
-
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,
|
|
932
|
+
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, x = 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, N = t ? Symbol.for("react.responder") : 60118, T = t ? Symbol.for("react.scope") : 60119;
|
|
822
933
|
function v(c) {
|
|
823
934
|
if (typeof c == "object" && c !== null) {
|
|
824
935
|
var S = c.$$typeof;
|
|
@@ -830,14 +941,14 @@ function On() {
|
|
|
830
941
|
case n:
|
|
831
942
|
case i:
|
|
832
943
|
case a:
|
|
833
|
-
case
|
|
944
|
+
case x:
|
|
834
945
|
return c;
|
|
835
946
|
default:
|
|
836
947
|
switch (c = c && c.$$typeof, c) {
|
|
837
948
|
case f:
|
|
838
949
|
case b:
|
|
839
950
|
case m:
|
|
840
|
-
case
|
|
951
|
+
case y:
|
|
841
952
|
case o:
|
|
842
953
|
return c;
|
|
843
954
|
default:
|
|
@@ -852,7 +963,7 @@ function On() {
|
|
|
852
963
|
function j(c) {
|
|
853
964
|
return v(c) === l;
|
|
854
965
|
}
|
|
855
|
-
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 =
|
|
966
|
+
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 = x, w.isAsyncMode = function(c) {
|
|
856
967
|
return j(c) || v(c) === h;
|
|
857
968
|
}, w.isConcurrentMode = j, w.isContextConsumer = function(c) {
|
|
858
969
|
return v(c) === f;
|
|
@@ -867,7 +978,7 @@ function On() {
|
|
|
867
978
|
}, w.isLazy = function(c) {
|
|
868
979
|
return v(c) === m;
|
|
869
980
|
}, w.isMemo = function(c) {
|
|
870
|
-
return v(c) ===
|
|
981
|
+
return v(c) === y;
|
|
871
982
|
}, w.isPortal = function(c) {
|
|
872
983
|
return v(c) === r;
|
|
873
984
|
}, w.isProfiler = function(c) {
|
|
@@ -875,9 +986,9 @@ function On() {
|
|
|
875
986
|
}, w.isStrictMode = function(c) {
|
|
876
987
|
return v(c) === a;
|
|
877
988
|
}, w.isSuspense = function(c) {
|
|
878
|
-
return v(c) ===
|
|
989
|
+
return v(c) === x;
|
|
879
990
|
}, w.isValidElementType = function(c) {
|
|
880
|
-
return typeof c == "string" || typeof c == "function" || c === n || c === l || c === i || c === a || c ===
|
|
991
|
+
return typeof c == "string" || typeof c == "function" || c === n || c === l || c === i || c === a || c === x || 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 === N || c.$$typeof === T || c.$$typeof === p);
|
|
881
992
|
}, w.typeOf = v, w;
|
|
882
993
|
}
|
|
883
994
|
var P = {};
|
|
@@ -890,17 +1001,17 @@ var P = {};
|
|
|
890
1001
|
* LICENSE file in the root directory of this source tree.
|
|
891
1002
|
*/
|
|
892
1003
|
var Ge;
|
|
893
|
-
function
|
|
1004
|
+
function Ds() {
|
|
894
1005
|
return Ge || (Ge = 1, process.env.NODE_ENV !== "production" && function() {
|
|
895
|
-
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,
|
|
1006
|
+
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, x = 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, N = t ? Symbol.for("react.responder") : 60118, T = t ? Symbol.for("react.scope") : 60119;
|
|
896
1007
|
function v(u) {
|
|
897
1008
|
return typeof u == "string" || typeof u == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
898
|
-
u === n || u === l || u === i || u === a || u ===
|
|
1009
|
+
u === n || u === l || u === i || u === a || u === x || 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 === N || u.$$typeof === T || u.$$typeof === p);
|
|
899
1010
|
}
|
|
900
1011
|
function j(u) {
|
|
901
1012
|
if (typeof u == "object" && u !== null) {
|
|
902
|
-
var
|
|
903
|
-
switch (
|
|
1013
|
+
var xe = u.$$typeof;
|
|
1014
|
+
switch (xe) {
|
|
904
1015
|
case e:
|
|
905
1016
|
var ie = u.type;
|
|
906
1017
|
switch (ie) {
|
|
@@ -909,7 +1020,7 @@ function An() {
|
|
|
909
1020
|
case n:
|
|
910
1021
|
case i:
|
|
911
1022
|
case a:
|
|
912
|
-
case
|
|
1023
|
+
case x:
|
|
913
1024
|
return ie;
|
|
914
1025
|
default:
|
|
915
1026
|
var _e = ie && ie.$$typeof;
|
|
@@ -917,19 +1028,19 @@ function An() {
|
|
|
917
1028
|
case f:
|
|
918
1029
|
case b:
|
|
919
1030
|
case m:
|
|
920
|
-
case
|
|
1031
|
+
case y:
|
|
921
1032
|
case o:
|
|
922
1033
|
return _e;
|
|
923
1034
|
default:
|
|
924
|
-
return
|
|
1035
|
+
return xe;
|
|
925
1036
|
}
|
|
926
1037
|
}
|
|
927
1038
|
case r:
|
|
928
|
-
return
|
|
1039
|
+
return xe;
|
|
929
1040
|
}
|
|
930
1041
|
}
|
|
931
1042
|
}
|
|
932
|
-
var c = h, S = l,
|
|
1043
|
+
var c = h, S = l, D = f, q = o, L = e, U = b, ve = n, X = m, Qt = y, zt = r, Lt = i, Bt = a, Ht = x, Re = !1;
|
|
933
1044
|
function Kt(u) {
|
|
934
1045
|
return Re || (Re = !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;
|
|
935
1046
|
}
|
|
@@ -955,7 +1066,7 @@ function An() {
|
|
|
955
1066
|
return j(u) === m;
|
|
956
1067
|
}
|
|
957
1068
|
function Xt(u) {
|
|
958
|
-
return j(u) ===
|
|
1069
|
+
return j(u) === y;
|
|
959
1070
|
}
|
|
960
1071
|
function Jt(u) {
|
|
961
1072
|
return j(u) === r;
|
|
@@ -967,20 +1078,20 @@ function An() {
|
|
|
967
1078
|
return j(u) === a;
|
|
968
1079
|
}
|
|
969
1080
|
function rr(u) {
|
|
970
|
-
return j(u) ===
|
|
1081
|
+
return j(u) === x;
|
|
971
1082
|
}
|
|
972
|
-
P.AsyncMode = c, P.ConcurrentMode = S, P.ContextConsumer =
|
|
1083
|
+
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 = Qt, P.Portal = zt, P.Profiler = Lt, P.StrictMode = Bt, P.Suspense = Ht, P.isAsyncMode = Kt, P.isConcurrentMode = ke, P.isContextConsumer = Ut, P.isContextProvider = Yt, P.isElement = Zt, P.isForwardRef = Vt, P.isFragment = Wt, P.isLazy = Gt, P.isMemo = Xt, P.isPortal = Jt, P.isProfiler = er, P.isStrictMode = tr, P.isSuspense = rr, P.isValidElementType = v, P.typeOf = j;
|
|
973
1084
|
}()), P;
|
|
974
1085
|
}
|
|
975
1086
|
var Xe;
|
|
976
|
-
function
|
|
977
|
-
return Xe || (Xe = 1, process.env.NODE_ENV === "production" ? ue.exports =
|
|
1087
|
+
function qs() {
|
|
1088
|
+
return Xe || (Xe = 1, process.env.NODE_ENV === "production" ? ue.exports = _s() : ue.exports = Ds()), ue.exports;
|
|
978
1089
|
}
|
|
979
1090
|
var je, Je;
|
|
980
|
-
function
|
|
1091
|
+
function $s() {
|
|
981
1092
|
if (Je) return je;
|
|
982
1093
|
Je = 1;
|
|
983
|
-
var t =
|
|
1094
|
+
var t = qs(), e = {
|
|
984
1095
|
childContextTypes: !0,
|
|
985
1096
|
contextType: !0,
|
|
986
1097
|
contextTypes: !0,
|
|
@@ -1018,21 +1129,21 @@ function kn() {
|
|
|
1018
1129
|
function o(m) {
|
|
1019
1130
|
return t.isMemo(m) ? a : i[m.$$typeof] || e;
|
|
1020
1131
|
}
|
|
1021
|
-
var f = Object.defineProperty, h = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, b = Object.getOwnPropertyDescriptor,
|
|
1022
|
-
function
|
|
1132
|
+
var f = Object.defineProperty, h = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, b = Object.getOwnPropertyDescriptor, x = Object.getPrototypeOf, g = Object.prototype;
|
|
1133
|
+
function y(m, p, C) {
|
|
1023
1134
|
if (typeof p != "string") {
|
|
1024
1135
|
if (g) {
|
|
1025
|
-
var N =
|
|
1026
|
-
N && N !== g &&
|
|
1136
|
+
var N = x(p);
|
|
1137
|
+
N && N !== g && y(m, N, C);
|
|
1027
1138
|
}
|
|
1028
1139
|
var T = h(p);
|
|
1029
1140
|
l && (T = T.concat(l(p)));
|
|
1030
1141
|
for (var v = o(m), j = o(p), c = 0; c < T.length; ++c) {
|
|
1031
1142
|
var S = T[c];
|
|
1032
1143
|
if (!r[S] && !(C && C[S]) && !(j && j[S]) && !(v && v[S])) {
|
|
1033
|
-
var
|
|
1144
|
+
var D = b(p, S);
|
|
1034
1145
|
try {
|
|
1035
|
-
f(m, S,
|
|
1146
|
+
f(m, S, D);
|
|
1036
1147
|
} catch {
|
|
1037
1148
|
}
|
|
1038
1149
|
}
|
|
@@ -1040,12 +1151,12 @@ function kn() {
|
|
|
1040
1151
|
}
|
|
1041
1152
|
return m;
|
|
1042
1153
|
}
|
|
1043
|
-
return je =
|
|
1154
|
+
return je = y, je;
|
|
1044
1155
|
}
|
|
1045
|
-
|
|
1156
|
+
$s();
|
|
1046
1157
|
var Tt = function(e, r, n) {
|
|
1047
1158
|
return e = e <= n ? e : n, e = e >= r ? e : r, e;
|
|
1048
|
-
},
|
|
1159
|
+
}, Fs = function() {
|
|
1049
1160
|
var e = !1, r = [], n = function() {
|
|
1050
1161
|
e = !0;
|
|
1051
1162
|
var f = r.shift();
|
|
@@ -1061,12 +1172,12 @@ var Tt = function(e, r, n) {
|
|
|
1061
1172
|
clear: a,
|
|
1062
1173
|
enqueue: i
|
|
1063
1174
|
};
|
|
1064
|
-
},
|
|
1175
|
+
}, Is = function() {
|
|
1065
1176
|
var e, r = function() {
|
|
1066
1177
|
e && window.cancelAnimationFrame(e);
|
|
1067
1178
|
}, n = function(i, o) {
|
|
1068
|
-
var f, h, l = function(
|
|
1069
|
-
if (h = h ||
|
|
1179
|
+
var f, h, l = function(x) {
|
|
1180
|
+
if (h = h || x, f = x - h, f > o) {
|
|
1070
1181
|
i();
|
|
1071
1182
|
return;
|
|
1072
1183
|
}
|
|
@@ -1078,31 +1189,31 @@ var Tt = function(e, r, n) {
|
|
|
1078
1189
|
cancel: r,
|
|
1079
1190
|
schedule: n
|
|
1080
1191
|
};
|
|
1081
|
-
},
|
|
1192
|
+
}, Qs = function(e) {
|
|
1082
1193
|
var r = 0;
|
|
1083
1194
|
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), Tt(e + r, 0, 0.994);
|
|
1084
1195
|
}, et = function(e) {
|
|
1085
1196
|
Q(e, []);
|
|
1086
|
-
},
|
|
1197
|
+
}, zs = function(e) {
|
|
1087
1198
|
return ++e % 1e6;
|
|
1088
|
-
},
|
|
1199
|
+
}, Ls = function() {
|
|
1089
1200
|
var e = J(0), r = e[1];
|
|
1090
1201
|
return W(function() {
|
|
1091
|
-
return r(
|
|
1202
|
+
return r(zs);
|
|
1092
1203
|
}, []);
|
|
1093
|
-
},
|
|
1204
|
+
}, Bs = function(e) {
|
|
1094
1205
|
e === void 0 && (e = {});
|
|
1095
|
-
var r =
|
|
1206
|
+
var r = Ls(), n = G(me({}, e)), a = W(function() {
|
|
1096
1207
|
return n.current;
|
|
1097
1208
|
}, []), i = W(function(o) {
|
|
1098
1209
|
o && (Object.assign(n.current, o), r());
|
|
1099
1210
|
}, []);
|
|
1100
1211
|
return [a, i];
|
|
1101
|
-
},
|
|
1212
|
+
}, Hs = function() {
|
|
1102
1213
|
var e = G(!0);
|
|
1103
1214
|
return e.current ? (e.current = !1, !0) : e.current;
|
|
1104
1215
|
}, tt = function(e, r) {
|
|
1105
|
-
var n =
|
|
1216
|
+
var n = Hs();
|
|
1106
1217
|
Q(function() {
|
|
1107
1218
|
if (!n)
|
|
1108
1219
|
return e();
|
|
@@ -1112,20 +1223,20 @@ var Tt = function(e, r, n) {
|
|
|
1112
1223
|
isFinished: !0,
|
|
1113
1224
|
progress: 0,
|
|
1114
1225
|
sideEffect: Mt
|
|
1115
|
-
},
|
|
1116
|
-
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,
|
|
1226
|
+
}, Ks = function(e) {
|
|
1227
|
+
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, x = Bs(rt), g = x[0], y = x[1], m = G(null), p = G(null);
|
|
1117
1228
|
et(function() {
|
|
1118
|
-
m.current =
|
|
1229
|
+
m.current = Fs(), p.current = Is();
|
|
1119
1230
|
});
|
|
1120
1231
|
var C = W(function() {
|
|
1121
|
-
var S,
|
|
1122
|
-
(S = p.current) == null || S.cancel(), (
|
|
1232
|
+
var S, D;
|
|
1233
|
+
(S = p.current) == null || S.cancel(), (D = m.current) == null || D.clear();
|
|
1123
1234
|
}, []), N = W(function(S) {
|
|
1124
|
-
var
|
|
1235
|
+
var D;
|
|
1125
1236
|
if (S = Tt(S, b, 1), S === 1) {
|
|
1126
|
-
var
|
|
1127
|
-
C(), (
|
|
1128
|
-
|
|
1237
|
+
var q, L;
|
|
1238
|
+
C(), (q = m.current) == null || q.enqueue(function(U) {
|
|
1239
|
+
y({
|
|
1129
1240
|
progress: S,
|
|
1130
1241
|
sideEffect: function() {
|
|
1131
1242
|
var X;
|
|
@@ -1133,15 +1244,15 @@ var Tt = function(e, r, n) {
|
|
|
1133
1244
|
}
|
|
1134
1245
|
});
|
|
1135
1246
|
}), (L = m.current) == null || L.enqueue(function() {
|
|
1136
|
-
|
|
1247
|
+
y({
|
|
1137
1248
|
isFinished: !0,
|
|
1138
1249
|
sideEffect: C
|
|
1139
1250
|
});
|
|
1140
1251
|
});
|
|
1141
1252
|
return;
|
|
1142
1253
|
}
|
|
1143
|
-
(
|
|
1144
|
-
|
|
1254
|
+
(D = m.current) == null || D.enqueue(function(U) {
|
|
1255
|
+
y({
|
|
1145
1256
|
isFinished: !1,
|
|
1146
1257
|
progress: S,
|
|
1147
1258
|
sideEffect: function() {
|
|
@@ -1150,12 +1261,12 @@ var Tt = function(e, r, n) {
|
|
|
1150
1261
|
}
|
|
1151
1262
|
});
|
|
1152
1263
|
});
|
|
1153
|
-
}, [a, C, b, m,
|
|
1154
|
-
N(
|
|
1264
|
+
}, [a, C, b, m, y, p]), T = W(function() {
|
|
1265
|
+
N(Qs(g().progress));
|
|
1155
1266
|
}, [g, N]), v = W(function() {
|
|
1156
1267
|
var S = function() {
|
|
1157
|
-
var
|
|
1158
|
-
T(), (
|
|
1268
|
+
var q;
|
|
1269
|
+
T(), (q = m.current) == null || q.enqueue(function(L) {
|
|
1159
1270
|
var U;
|
|
1160
1271
|
(U = p.current) == null || U.schedule(function() {
|
|
1161
1272
|
S(), L();
|
|
@@ -1171,10 +1282,10 @@ var Tt = function(e, r, n) {
|
|
|
1171
1282
|
}), tt(function() {
|
|
1172
1283
|
g().sideEffect();
|
|
1173
1284
|
}, [g, c]), tt(function() {
|
|
1174
|
-
h ?
|
|
1285
|
+
h ? y(me({}, rt, {
|
|
1175
1286
|
sideEffect: v
|
|
1176
1287
|
})) : N(1);
|
|
1177
|
-
}, [h, N,
|
|
1288
|
+
}, [h, N, y, v]), {
|
|
1178
1289
|
animationDuration: a,
|
|
1179
1290
|
isFinished: g().isFinished,
|
|
1180
1291
|
progress: g().progress
|
|
@@ -1186,7 +1297,7 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
|
|
|
1186
1297
|
const o = setTimeout(() => n(e), 100);
|
|
1187
1298
|
return () => clearTimeout(o);
|
|
1188
1299
|
}, [e]);
|
|
1189
|
-
const { isFinished: a, progress: i } =
|
|
1300
|
+
const { isFinished: a, progress: i } = Ks({ isAnimating: r });
|
|
1190
1301
|
return /* @__PURE__ */ s.jsx(
|
|
1191
1302
|
"div",
|
|
1192
1303
|
{
|
|
@@ -1197,12 +1308,12 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
|
|
|
1197
1308
|
}
|
|
1198
1309
|
}
|
|
1199
1310
|
);
|
|
1200
|
-
},
|
|
1311
|
+
}, Us = () => {
|
|
1201
1312
|
const { topNavigation: t } = I(), { isAuthenticated: e } = ae(), r = t.filter(Ot(e));
|
|
1202
1313
|
return r.length === 0 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsxs(Oe, { children: [
|
|
1203
1314
|
/* @__PURE__ */ s.jsxs("div", { className: "items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm relative", children: [
|
|
1204
1315
|
/* @__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)) }) }),
|
|
1205
|
-
/* @__PURE__ */ s.jsx(
|
|
1316
|
+
/* @__PURE__ */ s.jsx(_, { name: "top-navigation-side" })
|
|
1206
1317
|
] }),
|
|
1207
1318
|
/* @__PURE__ */ s.jsx(At, {})
|
|
1208
1319
|
] });
|
|
@@ -1221,7 +1332,7 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
|
|
|
1221
1332
|
/* @__PURE__ */ s.jsx(
|
|
1222
1333
|
lr,
|
|
1223
1334
|
{
|
|
1224
|
-
className: ({ isPending: b }) =>
|
|
1335
|
+
className: ({ isPending: b }) => ps(
|
|
1225
1336
|
"block lg:py-3.5 font-medium -mb-px",
|
|
1226
1337
|
f || b ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
1227
1338
|
),
|
|
@@ -1230,28 +1341,28 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
|
|
|
1230
1341
|
}
|
|
1231
1342
|
)
|
|
1232
1343
|
);
|
|
1233
|
-
},
|
|
1344
|
+
}, Ys = () => {
|
|
1234
1345
|
var i;
|
|
1235
1346
|
const { topNavigation: t, options: e } = I(), { isAuthenticated: r } = ae(), [n, a] = J(!1);
|
|
1236
1347
|
return /* @__PURE__ */ s.jsxs(
|
|
1237
|
-
|
|
1348
|
+
hs,
|
|
1238
1349
|
{
|
|
1239
1350
|
direction: "right",
|
|
1240
1351
|
open: n,
|
|
1241
1352
|
onOpenChange: (o) => a(o),
|
|
1242
1353
|
children: [
|
|
1243
1354
|
/* @__PURE__ */ s.jsxs("div", { className: "flex lg:hidden justify-self-end", children: [
|
|
1244
|
-
/* @__PURE__ */ s.jsx(
|
|
1355
|
+
/* @__PURE__ */ s.jsx(ms, { className: "lg:hidden", children: /* @__PURE__ */ s.jsx(Ur, { size: 22 }) }),
|
|
1245
1356
|
/* @__PURE__ */ s.jsx(At, {})
|
|
1246
1357
|
] }),
|
|
1247
1358
|
/* @__PURE__ */ s.jsx(
|
|
1248
|
-
|
|
1359
|
+
bt,
|
|
1249
1360
|
{
|
|
1250
1361
|
className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
|
|
1251
1362
|
"aria-describedby": void 0,
|
|
1252
1363
|
children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none h-full flex flex-col justify-between", children: [
|
|
1253
1364
|
/* @__PURE__ */ s.jsxs("div", { children: [
|
|
1254
|
-
/* @__PURE__ */ s.jsx(yt, { children: /* @__PURE__ */ s.jsx(
|
|
1365
|
+
/* @__PURE__ */ s.jsx(yt, { children: /* @__PURE__ */ s.jsx(jt, { children: "Navigation" }) }),
|
|
1255
1366
|
/* @__PURE__ */ s.jsx(Et, { className: "flex p-4" }),
|
|
1256
1367
|
/* @__PURE__ */ s.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
1257
1368
|
/* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Nt, {}) }),
|
|
@@ -1265,19 +1376,19 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
|
|
|
1265
1376
|
]
|
|
1266
1377
|
}
|
|
1267
1378
|
);
|
|
1268
|
-
}, fe = ({ item: t }) => t.children ? /* @__PURE__ */ s.jsxs(
|
|
1269
|
-
/* @__PURE__ */ s.jsx(
|
|
1270
|
-
/* @__PURE__ */ s.jsx(
|
|
1379
|
+
}, fe = ({ item: t }) => t.children ? /* @__PURE__ */ s.jsxs(cs, { children: [
|
|
1380
|
+
/* @__PURE__ */ s.jsx(ls, { children: t.label }),
|
|
1381
|
+
/* @__PURE__ */ s.jsx(us, { children: /* @__PURE__ */ s.jsx(ds, { children: t.children.map((e, r) => (
|
|
1271
1382
|
// eslint-disable-next-line react/no-array-index-key
|
|
1272
1383
|
/* @__PURE__ */ s.jsx(fe, { item: e }, r)
|
|
1273
1384
|
)) }) })
|
|
1274
|
-
] }, t.label) : /* @__PURE__ */ s.jsx(Te, { to: t.path ?? "", children: /* @__PURE__ */ s.jsxs(
|
|
1385
|
+
] }, t.label) : /* @__PURE__ */ s.jsx(Te, { to: t.path ?? "", children: /* @__PURE__ */ s.jsxs(fs, { className: "flex gap-2", children: [
|
|
1275
1386
|
t.icon && /* @__PURE__ */ s.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
1276
1387
|
t.label
|
|
1277
1388
|
] }, t.label) }), kt = vt(function() {
|
|
1278
|
-
const e = ae(), { isAuthenticated: r, profile: n, isAuthEnabled: a } = ae(), i = I(), { page: o, plugins: f } = i, h = f.filter((l) =>
|
|
1389
|
+
const e = ae(), { isAuthenticated: r, profile: n, isAuthEnabled: a } = ae(), i = I(), { page: o, plugins: f } = i, h = f.filter((l) => Wr(l)).flatMap((l) => l.getProfileMenuItems(i)).sort((l) => l.weight ?? 0);
|
|
1279
1390
|
return /* @__PURE__ */ s.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
1280
|
-
/* @__PURE__ */ s.jsx(
|
|
1391
|
+
/* @__PURE__ */ s.jsx(ks, {}),
|
|
1281
1392
|
/* @__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: [
|
|
1282
1393
|
/* @__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: [
|
|
1283
1394
|
(o == null ? void 0 : o.logo) && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
@@ -1312,17 +1423,17 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
|
|
|
1312
1423
|
] }) }) }),
|
|
1313
1424
|
/* @__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" }) }),
|
|
1314
1425
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-8", children: [
|
|
1315
|
-
/* @__PURE__ */ s.jsx(
|
|
1426
|
+
/* @__PURE__ */ s.jsx(Ys, {}),
|
|
1316
1427
|
/* @__PURE__ */ s.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
1317
|
-
/* @__PURE__ */ s.jsx(
|
|
1428
|
+
/* @__PURE__ */ s.jsx(_, { name: "head-navigation-start" }),
|
|
1318
1429
|
a && /* @__PURE__ */ s.jsx(
|
|
1319
1430
|
Ae,
|
|
1320
1431
|
{
|
|
1321
|
-
fallback: /* @__PURE__ */ s.jsx(
|
|
1322
|
-
children: r ? Object.values(h).length > 0 && /* @__PURE__ */ s.jsxs(
|
|
1323
|
-
/* @__PURE__ */ s.jsx(
|
|
1324
|
-
/* @__PURE__ */ s.jsxs(
|
|
1325
|
-
/* @__PURE__ */ s.jsxs(
|
|
1432
|
+
fallback: /* @__PURE__ */ s.jsx(Rs, { className: "rounded h-5 w-24 mr-4" }),
|
|
1433
|
+
children: r ? Object.values(h).length > 0 && /* @__PURE__ */ s.jsxs(ns, { modal: !1, children: [
|
|
1434
|
+
/* @__PURE__ */ s.jsx(as, { asChild: !0, children: /* @__PURE__ */ s.jsx(Se, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
|
|
1435
|
+
/* @__PURE__ */ s.jsxs(os, { className: "w-56", children: [
|
|
1436
|
+
/* @__PURE__ */ s.jsxs(is, { children: [
|
|
1326
1437
|
n != null && n.name ? `${n.name}` : "My Account",
|
|
1327
1438
|
(n == null ? void 0 : n.email) && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
|
|
1328
1439
|
] }),
|
|
@@ -1340,15 +1451,15 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
|
|
|
1340
1451
|
] }) : /* @__PURE__ */ s.jsx(Se, { variant: "ghost", onClick: () => e.login(), children: "Login" })
|
|
1341
1452
|
}
|
|
1342
1453
|
),
|
|
1343
|
-
/* @__PURE__ */ s.jsx(
|
|
1454
|
+
/* @__PURE__ */ s.jsx(_, { name: "head-navigation-end" }),
|
|
1344
1455
|
/* @__PURE__ */ s.jsx(Nt, {})
|
|
1345
1456
|
] })
|
|
1346
1457
|
] })
|
|
1347
1458
|
] }) }),
|
|
1348
1459
|
/* @__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: [
|
|
1349
|
-
/* @__PURE__ */ s.jsx(
|
|
1350
|
-
/* @__PURE__ */ s.jsx(
|
|
1351
|
-
/* @__PURE__ */ s.jsx(
|
|
1460
|
+
/* @__PURE__ */ s.jsx(_, { name: "top-navigation-before" }),
|
|
1461
|
+
/* @__PURE__ */ s.jsx(Us, {}),
|
|
1462
|
+
/* @__PURE__ */ s.jsx(_, { name: "top-navigation-after" })
|
|
1352
1463
|
] }) })
|
|
1353
1464
|
] });
|
|
1354
1465
|
}), _t = ({
|
|
@@ -1362,23 +1473,23 @@ const Ot = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t |
|
|
|
1362
1473
|
}
|
|
1363
1474
|
);
|
|
1364
1475
|
_t.displayName = "Drawer";
|
|
1365
|
-
const
|
|
1476
|
+
const Zs = z.Trigger, Vs = z.Portal, Dt = K.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ s.jsx(
|
|
1366
1477
|
z.Overlay,
|
|
1367
1478
|
{
|
|
1368
1479
|
ref: r,
|
|
1369
|
-
className:
|
|
1480
|
+
className: A("fixed inset-0 z-50 bg-black/80", t),
|
|
1370
1481
|
...e
|
|
1371
1482
|
}
|
|
1372
1483
|
));
|
|
1373
1484
|
Dt.displayName = z.Overlay.displayName;
|
|
1374
|
-
const
|
|
1375
|
-
({ className: t, children: e, hideBar: r = !0, ...n }, a) => /* @__PURE__ */ s.jsxs(
|
|
1485
|
+
const Ws = K.forwardRef(
|
|
1486
|
+
({ className: t, children: e, hideBar: r = !0, ...n }, a) => /* @__PURE__ */ s.jsxs(Vs, { children: [
|
|
1376
1487
|
/* @__PURE__ */ s.jsx(Dt, {}),
|
|
1377
1488
|
/* @__PURE__ */ s.jsxs(
|
|
1378
1489
|
z.Content,
|
|
1379
1490
|
{
|
|
1380
1491
|
ref: a,
|
|
1381
|
-
className:
|
|
1492
|
+
className: A(
|
|
1382
1493
|
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
|
1383
1494
|
t
|
|
1384
1495
|
),
|
|
@@ -1391,90 +1502,88 @@ const Un = K.forwardRef(
|
|
|
1391
1502
|
)
|
|
1392
1503
|
] })
|
|
1393
1504
|
);
|
|
1394
|
-
|
|
1395
|
-
const
|
|
1505
|
+
Ws.displayName = "DrawerContent";
|
|
1506
|
+
const Gs = K.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ s.jsx(
|
|
1396
1507
|
z.Title,
|
|
1397
1508
|
{
|
|
1398
1509
|
ref: r,
|
|
1399
|
-
className:
|
|
1510
|
+
className: A(
|
|
1400
1511
|
"text-lg font-semibold leading-none tracking-tight",
|
|
1401
1512
|
t
|
|
1402
1513
|
),
|
|
1403
1514
|
...e
|
|
1404
1515
|
}
|
|
1405
1516
|
));
|
|
1406
|
-
|
|
1407
|
-
const
|
|
1517
|
+
Gs.displayName = z.Title.displayName;
|
|
1518
|
+
const Xs = K.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ s.jsx(
|
|
1408
1519
|
z.Description,
|
|
1409
1520
|
{
|
|
1410
1521
|
ref: r,
|
|
1411
|
-
className:
|
|
1522
|
+
className: A("text-sm text-muted-foreground", t),
|
|
1412
1523
|
...e
|
|
1413
1524
|
}
|
|
1414
1525
|
));
|
|
1415
|
-
|
|
1526
|
+
Xs.displayName = z.Description.displayName;
|
|
1416
1527
|
const qt = ({
|
|
1417
1528
|
children: t,
|
|
1418
|
-
className: e
|
|
1419
|
-
ref: r
|
|
1529
|
+
className: e
|
|
1420
1530
|
}) => {
|
|
1421
1531
|
var a;
|
|
1422
|
-
const { options:
|
|
1423
|
-
return
|
|
1532
|
+
const { options: r } = I(), n = G(null);
|
|
1533
|
+
return Q(() => {
|
|
1534
|
+
var o;
|
|
1535
|
+
const i = (o = n.current) == null ? void 0 : o.querySelector('[aria-current="page"]');
|
|
1536
|
+
kr(i ?? null);
|
|
1537
|
+
}, []), /* @__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: [
|
|
1424
1538
|
/* @__PURE__ */ s.jsx(
|
|
1425
1539
|
"nav",
|
|
1426
1540
|
{
|
|
1427
|
-
|
|
1541
|
+
ref: n,
|
|
1542
|
+
className: A(
|
|
1428
1543
|
"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",
|
|
1429
|
-
"-mx-[--padding-nav-item] pb-
|
|
1544
|
+
"-mx-[--padding-nav-item] pb-3 pt-[--padding-content-top] scroll-pt-2 gap-1",
|
|
1545
|
+
// Revert the padding/margin on the first child
|
|
1546
|
+
"-mt-2.5",
|
|
1430
1547
|
e
|
|
1431
1548
|
),
|
|
1432
1549
|
style: {
|
|
1433
1550
|
maskImage: "linear-gradient(180deg, transparent 1%, rgba(0, 0, 0, 1) 20px, rgba(0, 0, 0, 1) 90%, transparent 99%)"
|
|
1434
1551
|
},
|
|
1435
|
-
ref: r,
|
|
1436
1552
|
children: t
|
|
1437
1553
|
}
|
|
1438
1554
|
),
|
|
1439
|
-
/* @__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 =
|
|
1555
|
+
/* @__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(Ct, {}) })
|
|
1440
1556
|
] });
|
|
1441
1557
|
};
|
|
1442
1558
|
qt.displayName = "SidebarWrapper";
|
|
1443
|
-
const
|
|
1559
|
+
const Js = ({
|
|
1444
1560
|
onRequestClose: t,
|
|
1445
1561
|
sidebar: e
|
|
1446
|
-
}) => {
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
n.label
|
|
1472
|
-
))
|
|
1473
|
-
] })
|
|
1474
|
-
}
|
|
1475
|
-
)
|
|
1476
|
-
] });
|
|
1477
|
-
}, Wn = ({ children: t }) => {
|
|
1562
|
+
}) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1563
|
+
/* @__PURE__ */ s.jsxs(qt, { children: [
|
|
1564
|
+
/* @__PURE__ */ s.jsx(_, { name: "zudoku-before-navigation" }),
|
|
1565
|
+
e.map((r) => /* @__PURE__ */ s.jsx(He, { item: r }, r.label)),
|
|
1566
|
+
/* @__PURE__ */ s.jsx(_, { name: "zudoku-after-navigation" })
|
|
1567
|
+
] }),
|
|
1568
|
+
/* @__PURE__ */ s.jsx(
|
|
1569
|
+
bt,
|
|
1570
|
+
{
|
|
1571
|
+
className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
|
|
1572
|
+
"aria-describedby": void 0,
|
|
1573
|
+
children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
1574
|
+
/* @__PURE__ */ s.jsx(yt, { children: /* @__PURE__ */ s.jsx(jt, { children: "Sidebar" }) }),
|
|
1575
|
+
e.map((r) => /* @__PURE__ */ s.jsx(
|
|
1576
|
+
He,
|
|
1577
|
+
{
|
|
1578
|
+
item: r,
|
|
1579
|
+
onRequestClose: t
|
|
1580
|
+
},
|
|
1581
|
+
r.label
|
|
1582
|
+
))
|
|
1583
|
+
] })
|
|
1584
|
+
}
|
|
1585
|
+
)
|
|
1586
|
+
] }), en = ({ children: t }) => {
|
|
1478
1587
|
const [e, r] = J(!1), { sidebar: n } = mt(), a = n.length > 0, i = ge().state === "loading";
|
|
1479
1588
|
return /* @__PURE__ */ s.jsxs(
|
|
1480
1589
|
_t,
|
|
@@ -1484,38 +1593,38 @@ const Vn = ({
|
|
|
1484
1593
|
onOpenChange: (o) => r(o),
|
|
1485
1594
|
children: [
|
|
1486
1595
|
a && /* @__PURE__ */ s.jsx(
|
|
1487
|
-
|
|
1596
|
+
Js,
|
|
1488
1597
|
{
|
|
1489
1598
|
onRequestClose: () => r(!1),
|
|
1490
1599
|
sidebar: n
|
|
1491
1600
|
}
|
|
1492
1601
|
),
|
|
1493
|
-
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(
|
|
1494
|
-
/* @__PURE__ */ s.jsx(
|
|
1602
|
+
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(Zs, { className: "flex items-center gap-2 px-4", children: [
|
|
1603
|
+
/* @__PURE__ */ s.jsx(Yr, { size: 16, strokeWidth: 1.5 }),
|
|
1495
1604
|
/* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1496
1605
|
] }) }),
|
|
1497
1606
|
/* @__PURE__ */ s.jsxs(
|
|
1498
1607
|
"main",
|
|
1499
1608
|
{
|
|
1500
1609
|
"data-pagefind-body": !0,
|
|
1501
|
-
className:
|
|
1610
|
+
className: A(
|
|
1502
1611
|
"px-4 lg:pe-8 lg:px-8",
|
|
1503
1612
|
!a && "col-span-full",
|
|
1504
1613
|
i && "animate-pulse"
|
|
1505
1614
|
),
|
|
1506
1615
|
children: [
|
|
1507
|
-
/* @__PURE__ */ s.jsx(
|
|
1616
|
+
/* @__PURE__ */ s.jsx(_, { name: "zudoku-before-content" }),
|
|
1508
1617
|
t,
|
|
1509
|
-
/* @__PURE__ */ s.jsx(
|
|
1618
|
+
/* @__PURE__ */ s.jsx(_, { name: "zudoku-after-content" })
|
|
1510
1619
|
]
|
|
1511
1620
|
}
|
|
1512
1621
|
)
|
|
1513
1622
|
]
|
|
1514
1623
|
}
|
|
1515
1624
|
);
|
|
1516
|
-
},
|
|
1625
|
+
}, tn = () => /* @__PURE__ */ s.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ s.jsx(xt, {}) }), rn = ({ children: t }) => {
|
|
1517
1626
|
const { meta: e, authentication: r, options: n } = I(), a = pe();
|
|
1518
|
-
return
|
|
1627
|
+
return _r(), Ts(), Q(() => {
|
|
1519
1628
|
var i;
|
|
1520
1629
|
(i = r == null ? void 0 : r.onPageLoad) == null || i.call(r);
|
|
1521
1630
|
}, [r]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
@@ -1535,20 +1644,21 @@ const Vn = ({
|
|
|
1535
1644
|
(e == null ? void 0 : e.description) && /* @__PURE__ */ s.jsx("meta", { name: "description", content: e.description }),
|
|
1536
1645
|
(e == null ? void 0 : e.favicon) && /* @__PURE__ */ s.jsx("link", { rel: "icon", href: e.favicon })
|
|
1537
1646
|
] }),
|
|
1538
|
-
/* @__PURE__ */ s.jsx(
|
|
1647
|
+
/* @__PURE__ */ s.jsx(_, { name: "layout-before-head" }),
|
|
1539
1648
|
/* @__PURE__ */ s.jsx(kt, {}),
|
|
1540
|
-
/* @__PURE__ */ s.jsx(
|
|
1541
|
-
/* @__PURE__ */ s.jsx("div", { className: "grid grid-cols-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr] lg:grid-cols-[var(--side-nav-width)_1fr] max-w-screen-2xl w-full lg:mx-auto", children: /* @__PURE__ */ s.jsx(Oe, { fallback: /* @__PURE__ */ s.jsx(
|
|
1649
|
+
/* @__PURE__ */ s.jsx(_, { name: "layout-after-head" }),
|
|
1650
|
+
/* @__PURE__ */ s.jsx("div", { className: "grid grid-cols-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr] lg:grid-cols-[var(--side-nav-width)_1fr] max-w-screen-2xl w-full lg:mx-auto", children: /* @__PURE__ */ s.jsx(Oe, { fallback: /* @__PURE__ */ s.jsx(tn, {}), children: /* @__PURE__ */ s.jsx(en, { children: t ?? /* @__PURE__ */ s.jsx(lt, {}) }) }) }),
|
|
1651
|
+
/* @__PURE__ */ s.jsx(As, {})
|
|
1542
1652
|
] });
|
|
1543
|
-
},
|
|
1653
|
+
}, sn = ({
|
|
1544
1654
|
title: t = "An error occurred",
|
|
1545
1655
|
message: e,
|
|
1546
1656
|
category: r
|
|
1547
|
-
}) => /* @__PURE__ */ s.jsxs("div", { className:
|
|
1548
|
-
r && /* @__PURE__ */ s.jsx(
|
|
1549
|
-
t && /* @__PURE__ */ s.jsx(
|
|
1657
|
+
}) => /* @__PURE__ */ s.jsxs("div", { className: qr + " h-full pt-[--padding-content-top]", children: [
|
|
1658
|
+
r && /* @__PURE__ */ s.jsx(Zr, { children: r }),
|
|
1659
|
+
t && /* @__PURE__ */ s.jsx(Dr, { level: 1, className: "flex gap-3.5 items-center", children: t }),
|
|
1550
1660
|
/* @__PURE__ */ s.jsx("p", { children: e })
|
|
1551
|
-
] }),
|
|
1661
|
+
] }), nn = (t) => {
|
|
1552
1662
|
switch (t) {
|
|
1553
1663
|
case 400:
|
|
1554
1664
|
return {
|
|
@@ -1611,21 +1721,21 @@ const Vn = ({
|
|
|
1611
1721
|
message: "Something went wrong while processing your request."
|
|
1612
1722
|
};
|
|
1613
1723
|
}
|
|
1614
|
-
},
|
|
1615
|
-
const r =
|
|
1724
|
+
}, an = ({ statusCode: t, message: e }) => {
|
|
1725
|
+
const r = nn(t);
|
|
1616
1726
|
return /* @__PURE__ */ s.jsx(
|
|
1617
|
-
|
|
1727
|
+
sn,
|
|
1618
1728
|
{
|
|
1619
1729
|
title: r.title,
|
|
1620
1730
|
message: e ?? r.message,
|
|
1621
1731
|
category: t
|
|
1622
1732
|
}
|
|
1623
1733
|
);
|
|
1624
|
-
},
|
|
1734
|
+
}, on = Me(null), we = {
|
|
1625
1735
|
didCatch: !1,
|
|
1626
1736
|
error: null
|
|
1627
1737
|
};
|
|
1628
|
-
class
|
|
1738
|
+
class cn extends Mr {
|
|
1629
1739
|
constructor(e) {
|
|
1630
1740
|
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = we;
|
|
1631
1741
|
}
|
|
@@ -1658,7 +1768,7 @@ class ns extends Mr {
|
|
|
1658
1768
|
} = this.state, {
|
|
1659
1769
|
resetKeys: a
|
|
1660
1770
|
} = this.props;
|
|
1661
|
-
if (n && r.error !== null &&
|
|
1771
|
+
if (n && r.error !== null && ln(e.resetKeys, a)) {
|
|
1662
1772
|
var i, o;
|
|
1663
1773
|
(i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
|
|
1664
1774
|
next: a,
|
|
@@ -1692,7 +1802,7 @@ class ns extends Mr {
|
|
|
1692
1802
|
else
|
|
1693
1803
|
throw o;
|
|
1694
1804
|
}
|
|
1695
|
-
return Be(
|
|
1805
|
+
return Be(on.Provider, {
|
|
1696
1806
|
value: {
|
|
1697
1807
|
didCatch: i,
|
|
1698
1808
|
error: o,
|
|
@@ -1701,11 +1811,11 @@ class ns extends Mr {
|
|
|
1701
1811
|
}, f);
|
|
1702
1812
|
}
|
|
1703
1813
|
}
|
|
1704
|
-
function
|
|
1814
|
+
function ln() {
|
|
1705
1815
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1706
1816
|
return t.length !== e.length || t.some((r, n) => !Object.is(r, e[n]));
|
|
1707
1817
|
}
|
|
1708
|
-
let
|
|
1818
|
+
let un = () => ({
|
|
1709
1819
|
emit(t, ...e) {
|
|
1710
1820
|
for (let r = this.events[t] || [], n = 0, a = r.length; n < a; n++)
|
|
1711
1821
|
r[n](...e);
|
|
@@ -1719,7 +1829,7 @@ let as = () => ({
|
|
|
1719
1829
|
};
|
|
1720
1830
|
}
|
|
1721
1831
|
});
|
|
1722
|
-
class
|
|
1832
|
+
class dn {
|
|
1723
1833
|
constructor(e, r) {
|
|
1724
1834
|
O(this, "plugins");
|
|
1725
1835
|
O(this, "sidebars");
|
|
@@ -1728,24 +1838,24 @@ class os {
|
|
|
1728
1838
|
O(this, "page");
|
|
1729
1839
|
O(this, "authentication");
|
|
1730
1840
|
O(this, "navigationPlugins");
|
|
1731
|
-
O(this, "emitter",
|
|
1841
|
+
O(this, "emitter", un());
|
|
1732
1842
|
O(this, "initialize", async () => {
|
|
1733
1843
|
await Promise.all(
|
|
1734
|
-
this.plugins.filter(
|
|
1844
|
+
this.plugins.filter(Jr).map((e) => {
|
|
1735
1845
|
var r;
|
|
1736
1846
|
return (r = e.initialize) == null ? void 0 : r.call(e, this);
|
|
1737
1847
|
})
|
|
1738
1848
|
);
|
|
1739
1849
|
});
|
|
1740
1850
|
O(this, "getApiIdentities", async () => (await Promise.all(
|
|
1741
|
-
this.plugins.filter(
|
|
1851
|
+
this.plugins.filter(es).map((r) => r.getIdentities(this))
|
|
1742
1852
|
)).flat());
|
|
1743
1853
|
O(this, "emitEvent", (e, ...r) => this.emitter.emit(e, ...r));
|
|
1744
1854
|
O(this, "getPluginSidebar", async (e) => (await Promise.all(
|
|
1745
1855
|
this.navigationPlugins.map(
|
|
1746
1856
|
(n) => {
|
|
1747
1857
|
var a;
|
|
1748
|
-
return (a = n.getSidebar) == null ? void 0 : a.call(n,
|
|
1858
|
+
return (a = n.getSidebar) == null ? void 0 : a.call(n, yr(e), this);
|
|
1749
1859
|
}
|
|
1750
1860
|
)
|
|
1751
1861
|
)).flatMap((n) => n ?? []));
|
|
@@ -1754,11 +1864,11 @@ class os {
|
|
|
1754
1864
|
throw new Error("No authentication provider configured");
|
|
1755
1865
|
return await this.authentication.signRequest(e);
|
|
1756
1866
|
});
|
|
1757
|
-
this.options = e, this.queryClient = r, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(
|
|
1758
|
-
|
|
1867
|
+
this.options = e, this.queryClient = r, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Gr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((n) => {
|
|
1868
|
+
Xr(n) && ss(n.events).forEach(([a, i]) => {
|
|
1759
1869
|
this.emitter.on(a, i);
|
|
1760
1870
|
});
|
|
1761
|
-
}),
|
|
1871
|
+
}), xr.subscribe((n, a) => {
|
|
1762
1872
|
this.emitEvent("auth", {
|
|
1763
1873
|
prev: a,
|
|
1764
1874
|
next: n
|
|
@@ -1769,14 +1879,14 @@ class os {
|
|
|
1769
1879
|
return this.emitter.on(e, r);
|
|
1770
1880
|
}
|
|
1771
1881
|
}
|
|
1772
|
-
function
|
|
1882
|
+
function fn({ error: t, resetErrorBoundary: e }) {
|
|
1773
1883
|
return /* @__PURE__ */ s.jsx(pt, { error: t });
|
|
1774
1884
|
}
|
|
1775
1885
|
const de = globalThis;
|
|
1776
1886
|
(!de.requestIdleCallback || !de.cancelIdleCallback) && (de.requestIdleCallback = (t) => setTimeout(t, 1), de.cancelIdleCallback = clearTimeout);
|
|
1777
1887
|
const $t = {
|
|
1778
1888
|
Header: kt
|
|
1779
|
-
},
|
|
1889
|
+
}, hn = Me($t), mn = hn.Provider, pn = () => {
|
|
1780
1890
|
const t = pe(), e = I(), r = G(void 0);
|
|
1781
1891
|
return Q(() => {
|
|
1782
1892
|
e.emitEvent("location", {
|
|
@@ -1784,7 +1894,7 @@ const $t = {
|
|
|
1784
1894
|
to: t
|
|
1785
1895
|
}), r.current = t;
|
|
1786
1896
|
}, [e, t]), null;
|
|
1787
|
-
},
|
|
1897
|
+
}, gn = ({
|
|
1788
1898
|
children: t,
|
|
1789
1899
|
context: e
|
|
1790
1900
|
}) => (br({
|
|
@@ -1794,70 +1904,70 @@ const $t = {
|
|
|
1794
1904
|
let Pe;
|
|
1795
1905
|
const Ft = vt(
|
|
1796
1906
|
({ children: t, ...e }) => {
|
|
1797
|
-
var g,
|
|
1798
|
-
const r =
|
|
1907
|
+
var g, y;
|
|
1908
|
+
const r = ye(
|
|
1799
1909
|
() => ({ ...$t, ...e.overrides }),
|
|
1800
1910
|
[e.overrides]
|
|
1801
|
-
), n = pe(), a =
|
|
1911
|
+
), n = pe(), a = ye(() => {
|
|
1802
1912
|
var p;
|
|
1803
1913
|
return {
|
|
1804
|
-
...(e.plugins ?? []).filter(
|
|
1914
|
+
...(e.plugins ?? []).filter(ts).flatMap(
|
|
1805
1915
|
(C) => C.getMdxComponents ? [C.getMdxComponents()] : []
|
|
1806
1916
|
).reduce(
|
|
1807
1917
|
(C, N) => ({ ...C, ...N }),
|
|
1808
1918
|
{}
|
|
1809
1919
|
),
|
|
1810
|
-
|
|
1920
|
+
...$r,
|
|
1811
1921
|
...(p = e.mdx) == null ? void 0 : p.components
|
|
1812
1922
|
};
|
|
1813
|
-
}, [(g = e.mdx) == null ? void 0 : g.components, e.plugins]), { stagger: i } = Or(Ee), [o, f] = J(!1), h =
|
|
1923
|
+
}, [(g = e.mdx) == null ? void 0 : g.components, e.plugins]), { stagger: i } = Or(Ee), [o, f] = J(!1), h = ye(
|
|
1814
1924
|
() => o ? { stagger: !0 } : { stagger: i },
|
|
1815
1925
|
[i, o]
|
|
1816
1926
|
), l = ge(), b = ft();
|
|
1817
1927
|
Q(() => {
|
|
1818
1928
|
o || f(!0);
|
|
1819
|
-
}, [o, l.location]), Pe || (Pe = new
|
|
1820
|
-
const
|
|
1929
|
+
}, [o, l.location]), Pe || (Pe = new dn(e, b));
|
|
1930
|
+
const x = (y = e.plugins) == null ? void 0 : y.flatMap(
|
|
1821
1931
|
(m) => {
|
|
1822
1932
|
var p;
|
|
1823
|
-
return
|
|
1933
|
+
return rs(m) ? ((p = m.getHead) == null ? void 0 : p.call(m, { location: n })) ?? [] : [];
|
|
1824
1934
|
}
|
|
1825
1935
|
).map((m, p) => /* @__PURE__ */ s.jsx(Ne, { children: m }, p));
|
|
1826
1936
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1827
|
-
|
|
1828
|
-
/* @__PURE__ */ s.jsx(Ee.Provider, { value: h, children: /* @__PURE__ */ s.jsxs(
|
|
1829
|
-
/* @__PURE__ */ s.jsx(
|
|
1830
|
-
/* @__PURE__ */ s.jsx(
|
|
1937
|
+
x,
|
|
1938
|
+
/* @__PURE__ */ s.jsx(Ee.Provider, { value: h, children: /* @__PURE__ */ s.jsxs(gn, { context: Pe, children: [
|
|
1939
|
+
/* @__PURE__ */ s.jsx(pn, {}),
|
|
1940
|
+
/* @__PURE__ */ s.jsx(gs, { components: a, children: /* @__PURE__ */ s.jsx(or, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(mn, { value: r, children: /* @__PURE__ */ s.jsx(Sr, { slotlets: e.slotlets, children: /* @__PURE__ */ s.jsx(Fr, { children: t ?? /* @__PURE__ */ s.jsx(lt, {}) }) }) }) }) })
|
|
1831
1941
|
] }) })
|
|
1832
1942
|
] });
|
|
1833
1943
|
}
|
|
1834
1944
|
);
|
|
1835
1945
|
Ft.displayName = "ZudokoInner";
|
|
1836
|
-
const It = (t) => /* @__PURE__ */ s.jsx(
|
|
1946
|
+
const It = (t) => /* @__PURE__ */ s.jsx(cn, { FallbackComponent: fn, children: /* @__PURE__ */ s.jsx(Ft, { ...t }) });
|
|
1837
1947
|
It.displayName = "Zudoku";
|
|
1838
|
-
const
|
|
1948
|
+
const Ln = Pt, Bn = rn, Hn = Cr, Kn = Ps, Un = Es, Yn = Ns, Zn = ar, Vn = Ne, vn = I, Wn = ae, Gn = wr, Xn = Pr, Jn = It, ea = an, ta = Nr, ra = Ir, sa = xt, na = Ae, aa = Er, oa = Te, ia = ct;
|
|
1839
1949
|
export {
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1950
|
+
aa as B,
|
|
1951
|
+
Xn as C,
|
|
1952
|
+
Vn as H,
|
|
1953
|
+
oa as L,
|
|
1954
|
+
ra as M,
|
|
1955
|
+
Hn as R,
|
|
1956
|
+
Kn as S,
|
|
1957
|
+
Jn as Z,
|
|
1958
|
+
Wn as a,
|
|
1959
|
+
vn as b,
|
|
1960
|
+
Ln as c,
|
|
1961
|
+
Bn as d,
|
|
1962
|
+
Un as e,
|
|
1963
|
+
Yn as f,
|
|
1964
|
+
Zn as g,
|
|
1965
|
+
Gn as h,
|
|
1966
|
+
ea as i,
|
|
1967
|
+
ta as j,
|
|
1968
|
+
sa as k,
|
|
1969
|
+
na as l,
|
|
1970
|
+
ia as m,
|
|
1861
1971
|
Pt as u
|
|
1862
1972
|
};
|
|
1863
|
-
//# sourceMappingURL=index-
|
|
1973
|
+
//# sourceMappingURL=index-D48iOQvJ.js.map
|