zudoku 0.5.1 → 0.5.2-dev.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/config/validators/SidebarSchema.js +2 -2
- package/dist/config/validators/SidebarSchema.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/vite/dev-server.js +5 -4
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/error-handler.d.ts +3 -0
- package/dist/vite/error-handler.js +39 -0
- package/dist/vite/error-handler.js.map +1 -0
- package/lib/{MdxPage-BUHSDTy6.js → MdxPage-E4NFxzHQ.js} +30 -31
- package/lib/MdxPage-E4NFxzHQ.js.map +1 -0
- package/lib/zudoku.components.js +300 -300
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/package.json +2 -2
- package/src/lib/plugins/markdown/MdxPage.tsx +0 -3
- package/lib/MdxPage-BUHSDTy6.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Io = Object.defineProperty;
|
|
2
2
|
var ln = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var J = (e, t, n) =>
|
|
5
|
+
var Ao = (e, t, n) => t in e ? Io(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var J = (e, t, n) => Ao(e, typeof t != "symbol" ? t + "" : t, n), cn = (e, t, n) => t.has(e) || ln("Cannot " + n);
|
|
7
7
|
var x = (e, t, n) => (cn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ae = (e, t, n) => t.has(e) ? ln("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), G = (e, t, n, r) => (cn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
8
8
|
var lt = (e, t, n, r) => ({
|
|
9
9
|
set _(a) {
|
|
@@ -13,21 +13,21 @@ var lt = (e, t, n, r) => ({
|
|
|
13
13
|
return x(e, t, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { H as Dn, a as Ot, M as
|
|
17
|
-
import { d as
|
|
18
|
-
import { E as Nn, S as Te, a as
|
|
16
|
+
import { H as Dn, a as Ot, M as ko, u as $o, A as Lo, b as Fo } from "./utils-BPHLKjns.js";
|
|
17
|
+
import { d as Ho, a as Uo, R as Bo, N as We, L as It, u as zo, O as jn, b as Ko, c as At } from "./index-ChhUJhLT.js";
|
|
18
|
+
import { E as Nn, S as Te, a as qo, R as Vo } from "./SlotletProvider-CNyl5wU0.js";
|
|
19
19
|
import { j as o } from "./jsx-runtime-B6kdoens.js";
|
|
20
|
-
import { M as
|
|
21
|
-
import { c as Re, a as A, C as
|
|
20
|
+
import { M as Qo, c as Go, a as Pn, b as Tn, A as Wo, u as Ze, h as Yo, d as I, e as Xo, F as Jo, D as Zo, C as ea, P as Ue, f as kt, g as ta, i as _n, R as na, S as ra, j as oa, k as aa, l as On, m as sa, n as pt, o as In, V as An, p as un, B as Dt } from "./index-BGY8VjAV.js";
|
|
21
|
+
import { c as Re, a as A, C as ia, b as kn, u as la, T as ca, M as ua, V as da, d as $t, e as fa, f as ha } from "./Markdown-BZUoEvL7.js";
|
|
22
22
|
import * as h from "react";
|
|
23
|
-
import g, { StrictMode as $n, createContext as Ln, Component as
|
|
23
|
+
import g, { StrictMode as $n, createContext as Ln, Component as pa, createElement as dn, isValidElement as ma, useLayoutEffect as ga, useEffect as xe, useState as He, useCallback as Fn, Suspense as Hn, memo as Un, useMemo as bt, useContext as va, Fragment as wa, useRef as Lt, forwardRef as xa } from "react";
|
|
24
24
|
import { g as Ft } from "./_commonjsHelpers-BVfed4GL.js";
|
|
25
|
-
import { r as
|
|
26
|
-
import { S as jt, R as
|
|
27
|
-
import { S as Bn, h as zn, Q as
|
|
25
|
+
import { r as ya } from "./router-BiRCp01d.js";
|
|
26
|
+
import { S as jt, R as ba, T as Ma, C as Sa } from "./index-CbJpF8Yf.js";
|
|
27
|
+
import { S as Bn, h as zn, Q as Ea, n as ee, m as fn, a as hn, b as ve, e as Ca, c as Ra, d as Da, f as ja, o as pn, r as mn, g as Na, i as gn, p as vn, s as Pa, u as et, j as Ta, Z as _a, k as Oa, l as Kn, q as Ia } from "./ZudokuContext-BHNQL3XO.js";
|
|
28
28
|
import { j as Ht } from "./joinPath-B7kNnUX4.js";
|
|
29
|
-
import { c as qn, P as vt, R as
|
|
30
|
-
import { S as
|
|
29
|
+
import { c as qn, P as vt, R as Aa, I as ka, O as $a, C as La, T as Fa, a as Ha, b as Ua, d as Ba, D as za, e as Ka, S as Mt } from "./SidebarBadge-6EEz-Bwe.js";
|
|
30
|
+
import { S as qa } from "./Spinner-B9eFggre.js";
|
|
31
31
|
/**
|
|
32
32
|
* @license lucide-react v0.378.0 - ISC
|
|
33
33
|
*
|
|
@@ -43,7 +43,7 @@ const Vn = Re("ChevronRight", [
|
|
|
43
43
|
* This source code is licensed under the ISC license.
|
|
44
44
|
* See the LICENSE file in the root directory of this source tree.
|
|
45
45
|
*/
|
|
46
|
-
const
|
|
46
|
+
const Va = Re("Dot", [
|
|
47
47
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
|
48
48
|
]);
|
|
49
49
|
/**
|
|
@@ -52,7 +52,7 @@ const qa = Re("Dot", [
|
|
|
52
52
|
* This source code is licensed under the ISC license.
|
|
53
53
|
* See the LICENSE file in the root directory of this source tree.
|
|
54
54
|
*/
|
|
55
|
-
const
|
|
55
|
+
const Qa = Re("ExternalLink", [
|
|
56
56
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
57
57
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
58
58
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
@@ -63,7 +63,7 @@ const Va = Re("ExternalLink", [
|
|
|
63
63
|
* This source code is licensed under the ISC license.
|
|
64
64
|
* See the LICENSE file in the root directory of this source tree.
|
|
65
65
|
*/
|
|
66
|
-
const
|
|
66
|
+
const Ga = Re("Menu", [
|
|
67
67
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
68
68
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
69
69
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
@@ -74,7 +74,7 @@ const Qa = Re("Menu", [
|
|
|
74
74
|
* This source code is licensed under the ISC license.
|
|
75
75
|
* See the LICENSE file in the root directory of this source tree.
|
|
76
76
|
*/
|
|
77
|
-
const
|
|
77
|
+
const Wa = Re("MoonStar", [
|
|
78
78
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
79
79
|
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
80
80
|
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
@@ -85,7 +85,7 @@ const Ga = Re("MoonStar", [
|
|
|
85
85
|
* This source code is licensed under the ISC license.
|
|
86
86
|
* See the LICENSE file in the root directory of this source tree.
|
|
87
87
|
*/
|
|
88
|
-
const
|
|
88
|
+
const Ya = Re("PanelLeft", [
|
|
89
89
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
90
90
|
["path", { d: "M9 3v18", key: "fh3hqa" }]
|
|
91
91
|
]);
|
|
@@ -95,7 +95,7 @@ const Wa = Re("PanelLeft", [
|
|
|
95
95
|
* This source code is licensed under the ISC license.
|
|
96
96
|
* See the LICENSE file in the root directory of this source tree.
|
|
97
97
|
*/
|
|
98
|
-
const
|
|
98
|
+
const Xa = Re("Search", [
|
|
99
99
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
100
100
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
101
101
|
]);
|
|
@@ -105,7 +105,7 @@ const Ya = Re("Search", [
|
|
|
105
105
|
* This source code is licensed under the ISC license.
|
|
106
106
|
* See the LICENSE file in the root directory of this source tree.
|
|
107
107
|
*/
|
|
108
|
-
const
|
|
108
|
+
const Ja = Re("Sun", [
|
|
109
109
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
110
110
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
111
111
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -116,14 +116,14 @@ const Xa = Re("Sun", [
|
|
|
116
116
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
117
117
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
118
118
|
]);
|
|
119
|
-
function
|
|
119
|
+
function Za({ error: e }) {
|
|
120
120
|
return /* @__PURE__ */ o.jsx(Nn, { error: e });
|
|
121
121
|
}
|
|
122
122
|
var tt = {};
|
|
123
|
-
const
|
|
123
|
+
const es = /* @__PURE__ */ Ft(ya), ts = /* @__PURE__ */ Ft(Ho), ns = /* @__PURE__ */ Ft(Uo);
|
|
124
124
|
Object.defineProperty(tt, "__esModule", { value: !0 });
|
|
125
|
-
var
|
|
126
|
-
function
|
|
125
|
+
var rs = g, fe = es, Ut = ts, we = ns;
|
|
126
|
+
function os(e) {
|
|
127
127
|
if (e && e.__esModule) return e;
|
|
128
128
|
var t = /* @__PURE__ */ Object.create(null);
|
|
129
129
|
return e && Object.keys(e).forEach(function(n) {
|
|
@@ -138,8 +138,8 @@ function rs(e) {
|
|
|
138
138
|
}
|
|
139
139
|
}), t.default = e, Object.freeze(t);
|
|
140
140
|
}
|
|
141
|
-
var ue = /* @__PURE__ */ rs
|
|
142
|
-
function
|
|
141
|
+
var ue = /* @__PURE__ */ os(rs);
|
|
142
|
+
function as({
|
|
143
143
|
basename: e,
|
|
144
144
|
children: t,
|
|
145
145
|
location: n = "/",
|
|
@@ -163,7 +163,7 @@ function os({
|
|
|
163
163
|
static: !0
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function ss({
|
|
167
167
|
context: e,
|
|
168
168
|
router: t,
|
|
169
169
|
hydrate: n = !0,
|
|
@@ -181,9 +181,9 @@ function as({
|
|
|
181
181
|
let u = {
|
|
182
182
|
loaderData: e.loaderData,
|
|
183
183
|
actionData: e.actionData,
|
|
184
|
-
errors:
|
|
184
|
+
errors: ls(e.errors)
|
|
185
185
|
};
|
|
186
|
-
i = `window.__staticRouterHydrationData = JSON.parse(${
|
|
186
|
+
i = `window.__staticRouterHydrationData = JSON.parse(${ps(JSON.stringify(JSON.stringify(u)))});`;
|
|
187
187
|
}
|
|
188
188
|
let {
|
|
189
189
|
state: l
|
|
@@ -207,7 +207,7 @@ function as({
|
|
|
207
207
|
future: {
|
|
208
208
|
v7_relativeSplatPath: t.future.v7_relativeSplatPath
|
|
209
209
|
}
|
|
210
|
-
}, /* @__PURE__ */ ue.createElement(
|
|
210
|
+
}, /* @__PURE__ */ ue.createElement(is, {
|
|
211
211
|
routes: t.routes,
|
|
212
212
|
future: t.future,
|
|
213
213
|
state: l
|
|
@@ -219,14 +219,14 @@ function as({
|
|
|
219
219
|
}
|
|
220
220
|
}) : null);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function is({
|
|
223
223
|
routes: e,
|
|
224
224
|
future: t,
|
|
225
225
|
state: n
|
|
226
226
|
}) {
|
|
227
227
|
return Ut.UNSAFE_useRoutesImpl(e, void 0, n, t);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function ls(e) {
|
|
230
230
|
if (!e) return null;
|
|
231
231
|
let t = Object.entries(e), n = {};
|
|
232
232
|
for (let [r, a] of t)
|
|
@@ -265,13 +265,13 @@ function Qn() {
|
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function cs(e, t) {
|
|
269
269
|
return fe.createStaticHandler(e, {
|
|
270
270
|
...t,
|
|
271
271
|
mapRouteProperties: Ut.UNSAFE_mapRouteProperties
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function us(e, t, n = {}) {
|
|
275
275
|
let r = {}, a = fe.UNSAFE_convertRoutesToDataRoutes(e, Ut.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((l) => {
|
|
276
276
|
let u = r[l.route.id] || l.route;
|
|
277
277
|
return {
|
|
@@ -367,36 +367,36 @@ function Gn(e) {
|
|
|
367
367
|
function Wn(e) {
|
|
368
368
|
let t = typeof e == "string" ? e : we.createPath(e);
|
|
369
369
|
t = t.replace(/ $/, "%20");
|
|
370
|
-
let n =
|
|
370
|
+
let n = ds.test(t) ? new URL(t) : new URL(t, "http://localhost");
|
|
371
371
|
return {
|
|
372
372
|
pathname: n.pathname,
|
|
373
373
|
search: n.search,
|
|
374
374
|
hash: n.hash
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
|
-
const
|
|
377
|
+
const ds = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, fs = {
|
|
378
378
|
"&": "\\u0026",
|
|
379
379
|
">": "\\u003e",
|
|
380
380
|
"<": "\\u003c",
|
|
381
381
|
"\u2028": "\\u2028",
|
|
382
382
|
"\u2029": "\\u2029"
|
|
383
|
-
},
|
|
384
|
-
function
|
|
385
|
-
return e.replace(
|
|
383
|
+
}, hs = /[&><\u2028\u2029]/g;
|
|
384
|
+
function ps(e) {
|
|
385
|
+
return e.replace(hs, (t) => fs[t]);
|
|
386
386
|
}
|
|
387
|
-
tt.StaticRouter =
|
|
388
|
-
var
|
|
389
|
-
tt.createStaticHandler =
|
|
390
|
-
tt.createStaticRouter =
|
|
391
|
-
const
|
|
387
|
+
tt.StaticRouter = as;
|
|
388
|
+
var ms = tt.StaticRouterProvider = ss;
|
|
389
|
+
tt.createStaticHandler = cs;
|
|
390
|
+
tt.createStaticRouter = us;
|
|
391
|
+
const gs = ({
|
|
392
392
|
router: e,
|
|
393
393
|
hydrate: t = !1
|
|
394
|
-
}) => /* @__PURE__ */ o.jsx($n, { children: /* @__PURE__ */ o.jsx(Dn, { children: /* @__PURE__ */ o.jsx(jt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ o.jsx(
|
|
394
|
+
}) => /* @__PURE__ */ o.jsx($n, { children: /* @__PURE__ */ o.jsx(Dn, { children: /* @__PURE__ */ o.jsx(jt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ o.jsx(Bo, { router: e }) }) }) }), vs = ({
|
|
395
395
|
router: e,
|
|
396
396
|
context: t,
|
|
397
397
|
helmetContext: n
|
|
398
|
-
}) => /* @__PURE__ */ o.jsx($n, { children: /* @__PURE__ */ o.jsx(Dn, { context: n, children: /* @__PURE__ */ o.jsx(
|
|
399
|
-
var de, En,
|
|
398
|
+
}) => /* @__PURE__ */ o.jsx($n, { children: /* @__PURE__ */ o.jsx(Dn, { context: n, children: /* @__PURE__ */ o.jsx(ms, { router: e, context: t }) }) });
|
|
399
|
+
var de, En, ws = (En = class extends Bn {
|
|
400
400
|
constructor(t = {}) {
|
|
401
401
|
super();
|
|
402
402
|
ae(this, de);
|
|
@@ -405,7 +405,7 @@ var de, En, vs = (En = class extends Bn {
|
|
|
405
405
|
build(t, n, r) {
|
|
406
406
|
const a = n.queryKey, s = n.queryHash ?? zn(a, n);
|
|
407
407
|
let i = this.get(s);
|
|
408
|
-
return i || (i = new
|
|
408
|
+
return i || (i = new Ea({
|
|
409
409
|
cache: this,
|
|
410
410
|
queryKey: a,
|
|
411
411
|
queryHash: s,
|
|
@@ -468,7 +468,7 @@ var de, En, vs = (En = class extends Bn {
|
|
|
468
468
|
});
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
|
-
}, de = new WeakMap(), En), Z, Je, Cn,
|
|
471
|
+
}, de = new WeakMap(), En), Z, Je, Cn, xs = (Cn = class extends Bn {
|
|
472
472
|
constructor(t = {}) {
|
|
473
473
|
super();
|
|
474
474
|
ae(this, Z);
|
|
@@ -476,7 +476,7 @@ var de, En, vs = (En = class extends Bn {
|
|
|
476
476
|
this.config = t, G(this, Z, /* @__PURE__ */ new Map()), G(this, Je, Date.now());
|
|
477
477
|
}
|
|
478
478
|
build(t, n, r) {
|
|
479
|
-
const a = new
|
|
479
|
+
const a = new Qo({
|
|
480
480
|
mutationCache: this,
|
|
481
481
|
mutationId: ++lt(this, Je)._,
|
|
482
482
|
options: t.defaultMutationOptions(n),
|
|
@@ -546,7 +546,7 @@ function ct(e) {
|
|
|
546
546
|
var t;
|
|
547
547
|
return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function ys(e) {
|
|
550
550
|
return {
|
|
551
551
|
onFetch: (t, n) => {
|
|
552
552
|
const r = async () => {
|
|
@@ -560,7 +560,7 @@ function xs(e) {
|
|
|
560
560
|
v = !0;
|
|
561
561
|
}), t.signal)
|
|
562
562
|
});
|
|
563
|
-
}, c =
|
|
563
|
+
}, c = Ca(t.options, t.fetchOptions), d = async (y, p, C) => {
|
|
564
564
|
if (v)
|
|
565
565
|
return Promise.reject();
|
|
566
566
|
if (p == null && y.pages.length)
|
|
@@ -574,7 +574,7 @@ function xs(e) {
|
|
|
574
574
|
m(N);
|
|
575
575
|
const P = await c(
|
|
576
576
|
N
|
|
577
|
-
), { maxPages: _ } = t.options, w = C ?
|
|
577
|
+
), { maxPages: _ } = t.options, w = C ? Ra : Da;
|
|
578
578
|
return {
|
|
579
579
|
pages: w(y.pages, P, _),
|
|
580
580
|
pageParams: w(y.pageParams, p, _)
|
|
@@ -582,7 +582,7 @@ function xs(e) {
|
|
|
582
582
|
};
|
|
583
583
|
let f;
|
|
584
584
|
if (s && i.length) {
|
|
585
|
-
const y = s === "backward", p = y ?
|
|
585
|
+
const y = s === "backward", p = y ? bs : wn, C = {
|
|
586
586
|
pages: i,
|
|
587
587
|
pageParams: l
|
|
588
588
|
}, N = p(a, C);
|
|
@@ -625,7 +625,7 @@ function wn(e, { pages: t, pageParams: n }) {
|
|
|
625
625
|
n
|
|
626
626
|
);
|
|
627
627
|
}
|
|
628
|
-
function
|
|
628
|
+
function bs(e, { pages: t, pageParams: n }) {
|
|
629
629
|
var r;
|
|
630
630
|
return (r = e.getPreviousPageParam) == null ? void 0 : r.call(
|
|
631
631
|
e,
|
|
@@ -635,7 +635,7 @@ function ys(e, { pages: t, pageParams: n }) {
|
|
|
635
635
|
n
|
|
636
636
|
);
|
|
637
637
|
}
|
|
638
|
-
var $, Se, Ee, ke, $e, Ce, Le, Fe, Rn,
|
|
638
|
+
var $, Se, Ee, ke, $e, Ce, Le, Fe, Rn, Ms = (Rn = class {
|
|
639
639
|
constructor(e = {}) {
|
|
640
640
|
ae(this, $);
|
|
641
641
|
ae(this, Se);
|
|
@@ -645,10 +645,10 @@ var $, Se, Ee, ke, $e, Ce, Le, Fe, Rn, bs = (Rn = class {
|
|
|
645
645
|
ae(this, Ce);
|
|
646
646
|
ae(this, Le);
|
|
647
647
|
ae(this, Fe);
|
|
648
|
-
G(this, $, e.queryCache || new
|
|
648
|
+
G(this, $, e.queryCache || new ws()), G(this, Se, e.mutationCache || new xs()), G(this, Ee, e.defaultOptions || {}), G(this, ke, /* @__PURE__ */ new Map()), G(this, $e, /* @__PURE__ */ new Map()), G(this, Ce, 0);
|
|
649
649
|
}
|
|
650
650
|
mount() {
|
|
651
|
-
lt(this, Ce)._++, x(this, Ce) === 1 && (G(this, Le,
|
|
651
|
+
lt(this, Ce)._++, x(this, Ce) === 1 && (G(this, Le, ja.subscribe(async (e) => {
|
|
652
652
|
e && (await this.resumePausedMutations(), x(this, $).onFocus());
|
|
653
653
|
})), G(this, Fe, pn.subscribe(async (e) => {
|
|
654
654
|
e && (await this.resumePausedMutations(), x(this, $).onOnline());
|
|
@@ -687,7 +687,7 @@ var $, Se, Ee, ke, $e, Ce, Le, Fe, Rn, bs = (Rn = class {
|
|
|
687
687
|
setQueryData(e, t, n) {
|
|
688
688
|
const r = this.defaultQueryOptions({ queryKey: e }), a = x(this, $).get(
|
|
689
689
|
r.queryHash
|
|
690
|
-
), s = a == null ? void 0 : a.state.data, i =
|
|
690
|
+
), s = a == null ? void 0 : a.state.data, i = Na(t, s);
|
|
691
691
|
if (i !== void 0)
|
|
692
692
|
return x(this, $).build(this, r).setData(i, { ...n, manual: !0 });
|
|
693
693
|
}
|
|
@@ -764,7 +764,7 @@ var $, Se, Ee, ke, $e, Ce, Le, Fe, Rn, bs = (Rn = class {
|
|
|
764
764
|
return this.fetchQuery(e).then(ve).catch(ve);
|
|
765
765
|
}
|
|
766
766
|
fetchInfiniteQuery(e) {
|
|
767
|
-
return e.behavior =
|
|
767
|
+
return e.behavior = ys(e.pages), this.fetchQuery(e);
|
|
768
768
|
}
|
|
769
769
|
prefetchInfiniteQuery(e) {
|
|
770
770
|
return this.fetchInfiniteQuery(e).then(ve).catch(ve);
|
|
@@ -822,7 +822,7 @@ var $, Se, Ee, ke, $e, Ce, Le, Fe, Rn, bs = (Rn = class {
|
|
|
822
822
|
return t.queryHash || (t.queryHash = zn(
|
|
823
823
|
t.queryKey,
|
|
824
824
|
t
|
|
825
|
-
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn ===
|
|
825
|
+
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === Pa && (t.enabled = !1), t;
|
|
826
826
|
}
|
|
827
827
|
defaultMutationOptions(e) {
|
|
828
828
|
return e != null && e._defaulted ? e : {
|
|
@@ -836,11 +836,11 @@ var $, Se, Ee, ke, $e, Ce, Le, Fe, Rn, bs = (Rn = class {
|
|
|
836
836
|
x(this, $).clear(), x(this, Se).clear();
|
|
837
837
|
}
|
|
838
838
|
}, $ = new WeakMap(), Se = new WeakMap(), Ee = new WeakMap(), ke = new WeakMap(), $e = new WeakMap(), Ce = new WeakMap(), Le = new WeakMap(), Fe = new WeakMap(), Rn);
|
|
839
|
-
const
|
|
839
|
+
const Ss = Ln(null), St = {
|
|
840
840
|
didCatch: !1,
|
|
841
841
|
error: null
|
|
842
842
|
};
|
|
843
|
-
class
|
|
843
|
+
class Es extends pa {
|
|
844
844
|
constructor(t) {
|
|
845
845
|
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = St;
|
|
846
846
|
}
|
|
@@ -873,7 +873,7 @@ class Ss extends ha {
|
|
|
873
873
|
} = this.state, {
|
|
874
874
|
resetKeys: a
|
|
875
875
|
} = this.props;
|
|
876
|
-
if (r && n.error !== null &&
|
|
876
|
+
if (r && n.error !== null && Cs(t.resetKeys, a)) {
|
|
877
877
|
var s, i;
|
|
878
878
|
(s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
|
|
879
879
|
next: a,
|
|
@@ -902,12 +902,12 @@ class Ss extends ha {
|
|
|
902
902
|
l = n(u);
|
|
903
903
|
else if (r)
|
|
904
904
|
l = dn(r, u);
|
|
905
|
-
else if (a === null ||
|
|
905
|
+
else if (a === null || ma(a))
|
|
906
906
|
l = a;
|
|
907
907
|
else
|
|
908
908
|
throw i;
|
|
909
909
|
}
|
|
910
|
-
return dn(
|
|
910
|
+
return dn(Ss.Provider, {
|
|
911
911
|
value: {
|
|
912
912
|
didCatch: s,
|
|
913
913
|
error: i,
|
|
@@ -916,12 +916,12 @@ class Ss extends ha {
|
|
|
916
916
|
}, l);
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function Cs() {
|
|
920
920
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
921
921
|
return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
|
|
922
922
|
}
|
|
923
|
-
const
|
|
924
|
-
class
|
|
923
|
+
const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Ds = (e) => "getRoutes" in e && typeof e.getRoutes == "function", js = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Ns = (e) => "initialize" in e && typeof e.initialize == "function", Ps = (e) => "getHead" in e && typeof e.getHead == "function", Ts = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", _s = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Yn = new Ms();
|
|
924
|
+
class Os {
|
|
925
925
|
constructor(t) {
|
|
926
926
|
J(this, "plugins");
|
|
927
927
|
J(this, "sidebars");
|
|
@@ -932,7 +932,7 @@ class _s {
|
|
|
932
932
|
J(this, "navigationPlugins");
|
|
933
933
|
J(this, "initialize", async () => {
|
|
934
934
|
await Promise.all(
|
|
935
|
-
this.plugins.filter(
|
|
935
|
+
this.plugins.filter(Ns).map((t) => {
|
|
936
936
|
var n;
|
|
937
937
|
return (n = t.initialize) == null ? void 0 : n.call(t, this);
|
|
938
938
|
})
|
|
@@ -942,7 +942,7 @@ class _s {
|
|
|
942
942
|
await Yn.invalidateQueries({ queryKey: t });
|
|
943
943
|
});
|
|
944
944
|
J(this, "getApiIdentities", async () => (await Promise.all(
|
|
945
|
-
this.plugins.filter(
|
|
945
|
+
this.plugins.filter(_s).map((n) => n.getIdentities(this))
|
|
946
946
|
)).flat());
|
|
947
947
|
J(this, "getPluginSidebar", async (t) => (await Promise.all(
|
|
948
948
|
this.navigationPlugins.map(
|
|
@@ -958,26 +958,26 @@ class _s {
|
|
|
958
958
|
const n = await this.authentication.getAccessToken();
|
|
959
959
|
return t.headers.set("Authorization", `Bearer ${n}`), t;
|
|
960
960
|
});
|
|
961
|
-
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(
|
|
961
|
+
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Ds), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function Is({ error: e, resetErrorBoundary: t }) {
|
|
965
965
|
return /* @__PURE__ */ o.jsx(Nn, { error: e });
|
|
966
966
|
}
|
|
967
967
|
const ut = globalThis;
|
|
968
968
|
(!ut.requestIdleCallback || !ut.cancelIdleCallback) && (ut.requestIdleCallback = (e) => setTimeout(e, 1), ut.cancelIdleCallback = clearTimeout);
|
|
969
|
-
var Nt = ["Enter", " "],
|
|
969
|
+
var Nt = ["Enter", " "], As = ["ArrowDown", "PageUp", "Home"], Xn = ["ArrowUp", "PageDown", "End"], ks = [...As, ...Xn], $s = {
|
|
970
970
|
ltr: [...Nt, "ArrowRight"],
|
|
971
971
|
rtl: [...Nt, "ArrowLeft"]
|
|
972
|
-
},
|
|
972
|
+
}, Ls = {
|
|
973
973
|
ltr: ["ArrowLeft"],
|
|
974
974
|
rtl: ["ArrowRight"]
|
|
975
|
-
}, nt = "Menu", [Ye,
|
|
976
|
-
|
|
975
|
+
}, nt = "Menu", [Ye, Fs, Hs] = Go(nt), [_e, Jn] = Pn(nt, [
|
|
976
|
+
Hs,
|
|
977
977
|
Tn,
|
|
978
978
|
qn
|
|
979
|
-
]), rt = Tn(), Zn = qn(), [er, De] = _e(nt), [
|
|
980
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = e, l = rt(t), [u, v] = h.useState(null), m = h.useRef(!1), c = kt(s), d =
|
|
979
|
+
]), rt = Tn(), Zn = qn(), [er, De] = _e(nt), [Us, ot] = _e(nt), tr = (e) => {
|
|
980
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = e, l = rt(t), [u, v] = h.useState(null), m = h.useRef(!1), c = kt(s), d = aa(a);
|
|
981
981
|
return h.useEffect(() => {
|
|
982
982
|
const f = () => {
|
|
983
983
|
m.current = !0, document.addEventListener("pointerdown", b, { capture: !0, once: !0 }), document.addEventListener("pointermove", b, { capture: !0, once: !0 });
|
|
@@ -994,7 +994,7 @@ var Nt = ["Enter", " "], Is = ["ArrowDown", "PageUp", "Home"], Xn = ["ArrowUp",
|
|
|
994
994
|
content: u,
|
|
995
995
|
onContentChange: v,
|
|
996
996
|
children: /* @__PURE__ */ o.jsx(
|
|
997
|
-
|
|
997
|
+
Us,
|
|
998
998
|
{
|
|
999
999
|
scope: t,
|
|
1000
1000
|
onClose: h.useCallback(() => c(!1), [c]),
|
|
@@ -1008,31 +1008,31 @@ var Nt = ["Enter", " "], Is = ["ArrowDown", "PageUp", "Home"], Xn = ["ArrowUp",
|
|
|
1008
1008
|
) });
|
|
1009
1009
|
};
|
|
1010
1010
|
tr.displayName = nt;
|
|
1011
|
-
var
|
|
1011
|
+
var Bs = "MenuAnchor", Bt = h.forwardRef(
|
|
1012
1012
|
(e, t) => {
|
|
1013
1013
|
const { __scopeMenu: n, ...r } = e, a = rt(n);
|
|
1014
|
-
return /* @__PURE__ */ o.jsx(
|
|
1014
|
+
return /* @__PURE__ */ o.jsx(Wo, { ...a, ...r, ref: t });
|
|
1015
1015
|
}
|
|
1016
1016
|
);
|
|
1017
|
-
Bt.displayName =
|
|
1018
|
-
var zt = "MenuPortal", [
|
|
1017
|
+
Bt.displayName = Bs;
|
|
1018
|
+
var zt = "MenuPortal", [zs, nr] = _e(zt, {
|
|
1019
1019
|
forceMount: void 0
|
|
1020
1020
|
}), rr = (e) => {
|
|
1021
1021
|
const { __scopeMenu: t, forceMount: n, children: r, container: a } = e, s = De(zt, t);
|
|
1022
|
-
return /* @__PURE__ */ o.jsx(
|
|
1022
|
+
return /* @__PURE__ */ o.jsx(zs, { scope: t, forceMount: n, children: /* @__PURE__ */ o.jsx(vt, { present: n || s.open, children: /* @__PURE__ */ o.jsx(sa, { asChild: !0, container: a, children: r }) }) });
|
|
1023
1023
|
};
|
|
1024
1024
|
rr.displayName = zt;
|
|
1025
|
-
var se = "MenuContent", [
|
|
1025
|
+
var se = "MenuContent", [Ks, Kt] = _e(se), or = h.forwardRef(
|
|
1026
1026
|
(e, t) => {
|
|
1027
1027
|
const n = nr(se, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, s = De(se, e.__scopeMenu), i = ot(se, e.__scopeMenu);
|
|
1028
|
-
return /* @__PURE__ */ o.jsx(Ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(vt, { present: r || s.open, children: /* @__PURE__ */ o.jsx(Ye.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(
|
|
1028
|
+
return /* @__PURE__ */ o.jsx(Ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(vt, { present: r || s.open, children: /* @__PURE__ */ o.jsx(Ye.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(qs, { ...a, ref: t }) : /* @__PURE__ */ o.jsx(Vs, { ...a, ref: t }) }) }) });
|
|
1029
1029
|
}
|
|
1030
|
-
),
|
|
1030
|
+
), qs = h.forwardRef(
|
|
1031
1031
|
(e, t) => {
|
|
1032
1032
|
const n = De(se, e.__scopeMenu), r = h.useRef(null), a = Ze(t, r);
|
|
1033
1033
|
return h.useEffect(() => {
|
|
1034
1034
|
const s = r.current;
|
|
1035
|
-
if (s) return
|
|
1035
|
+
if (s) return Yo(s);
|
|
1036
1036
|
}, []), /* @__PURE__ */ o.jsx(
|
|
1037
1037
|
qt,
|
|
1038
1038
|
{
|
|
@@ -1050,7 +1050,7 @@ var se = "MenuContent", [zs, Kt] = _e(se), or = h.forwardRef(
|
|
|
1050
1050
|
}
|
|
1051
1051
|
);
|
|
1052
1052
|
}
|
|
1053
|
-
),
|
|
1053
|
+
), Vs = h.forwardRef((e, t) => {
|
|
1054
1054
|
const n = De(se, e.__scopeMenu);
|
|
1055
1055
|
return /* @__PURE__ */ o.jsx(
|
|
1056
1056
|
qt,
|
|
@@ -1080,20 +1080,20 @@ var se = "MenuContent", [zs, Kt] = _e(se), or = h.forwardRef(
|
|
|
1080
1080
|
onDismiss: f,
|
|
1081
1081
|
disableOutsideScroll: b,
|
|
1082
1082
|
...R
|
|
1083
|
-
} = e, K = De(se, n), H = ot(se, n), Q = rt(n), y = Zn(n), p =
|
|
1083
|
+
} = e, K = De(se, n), H = ot(se, n), Q = rt(n), y = Zn(n), p = Fs(n), [C, N] = h.useState(null), P = h.useRef(null), _ = Ze(t, P, K.onContentChange), w = h.useRef(0), L = h.useRef(""), te = h.useRef(0), V = h.useRef(null), q = h.useRef("right"), X = h.useRef(0), Oe = b ? na : h.Fragment, he = b ? { as: ra, allowPinchZoom: !0 } : void 0, Be = (E) => {
|
|
1084
1084
|
var le, ge;
|
|
1085
|
-
const U = L.current + E, Y = p().filter((re) => !re.disabled), ne = document.activeElement, je = (le = Y.find((re) => re.ref.current === ne)) == null ? void 0 : le.textValue, pe = Y.map((re) => re.textValue), be =
|
|
1085
|
+
const U = L.current + E, Y = p().filter((re) => !re.disabled), ne = document.activeElement, je = (le = Y.find((re) => re.ref.current === ne)) == null ? void 0 : le.textValue, pe = Y.map((re) => re.textValue), be = oi(pe, U, je), me = (ge = Y.find((re) => re.textValue === be)) == null ? void 0 : ge.ref.current;
|
|
1086
1086
|
(function re(M) {
|
|
1087
1087
|
L.current = M, window.clearTimeout(w.current), M !== "" && (w.current = window.setTimeout(() => re(""), 1e3));
|
|
1088
1088
|
})(U), me && setTimeout(() => me.focus());
|
|
1089
1089
|
};
|
|
1090
|
-
h.useEffect(() => () => window.clearTimeout(w.current), []),
|
|
1090
|
+
h.useEffect(() => () => window.clearTimeout(w.current), []), Xo();
|
|
1091
1091
|
const ye = h.useCallback((E) => {
|
|
1092
1092
|
var Y, ne;
|
|
1093
|
-
return q.current === ((Y = V.current) == null ? void 0 : Y.side) &&
|
|
1093
|
+
return q.current === ((Y = V.current) == null ? void 0 : Y.side) && si(E, (ne = V.current) == null ? void 0 : ne.area);
|
|
1094
1094
|
}, []);
|
|
1095
1095
|
return /* @__PURE__ */ o.jsx(
|
|
1096
|
-
|
|
1096
|
+
Ks,
|
|
1097
1097
|
{
|
|
1098
1098
|
scope: n,
|
|
1099
1099
|
searchRef: L,
|
|
@@ -1121,7 +1121,7 @@ var se = "MenuContent", [zs, Kt] = _e(se), or = h.forwardRef(
|
|
|
1121
1121
|
V.current = E;
|
|
1122
1122
|
}, []),
|
|
1123
1123
|
children: /* @__PURE__ */ o.jsx(Oe, { ...he, children: /* @__PURE__ */ o.jsx(
|
|
1124
|
-
|
|
1124
|
+
Jo,
|
|
1125
1125
|
{
|
|
1126
1126
|
asChild: !0,
|
|
1127
1127
|
trapped: a,
|
|
@@ -1131,7 +1131,7 @@ var se = "MenuContent", [zs, Kt] = _e(se), or = h.forwardRef(
|
|
|
1131
1131
|
}),
|
|
1132
1132
|
onUnmountAutoFocus: i,
|
|
1133
1133
|
children: /* @__PURE__ */ o.jsx(
|
|
1134
|
-
|
|
1134
|
+
Zo,
|
|
1135
1135
|
{
|
|
1136
1136
|
asChild: !0,
|
|
1137
1137
|
disableOutsidePointerEvents: l,
|
|
@@ -1141,7 +1141,7 @@ var se = "MenuContent", [zs, Kt] = _e(se), or = h.forwardRef(
|
|
|
1141
1141
|
onInteractOutside: d,
|
|
1142
1142
|
onDismiss: f,
|
|
1143
1143
|
children: /* @__PURE__ */ o.jsx(
|
|
1144
|
-
|
|
1144
|
+
Aa,
|
|
1145
1145
|
{
|
|
1146
1146
|
asChild: !0,
|
|
1147
1147
|
...y,
|
|
@@ -1155,7 +1155,7 @@ var se = "MenuContent", [zs, Kt] = _e(se), or = h.forwardRef(
|
|
|
1155
1155
|
}),
|
|
1156
1156
|
preventScrollOnEntryFocus: !0,
|
|
1157
1157
|
children: /* @__PURE__ */ o.jsx(
|
|
1158
|
-
|
|
1158
|
+
ea,
|
|
1159
1159
|
{
|
|
1160
1160
|
role: "menu",
|
|
1161
1161
|
"aria-orientation": "vertical",
|
|
@@ -1170,10 +1170,10 @@ var se = "MenuContent", [zs, Kt] = _e(se), or = h.forwardRef(
|
|
|
1170
1170
|
const Y = E.target.closest("[data-radix-menu-content]") === E.currentTarget, ne = E.ctrlKey || E.altKey || E.metaKey, je = E.key.length === 1;
|
|
1171
1171
|
Y && (E.key === "Tab" && E.preventDefault(), !ne && je && Be(E.key));
|
|
1172
1172
|
const pe = P.current;
|
|
1173
|
-
if (E.target !== pe || !
|
|
1173
|
+
if (E.target !== pe || !ks.includes(E.key)) return;
|
|
1174
1174
|
E.preventDefault();
|
|
1175
1175
|
const me = p().filter((le) => !le.disabled).map((le) => le.ref.current);
|
|
1176
|
-
Xn.includes(E.key) && me.reverse(),
|
|
1176
|
+
Xn.includes(E.key) && me.reverse(), ni(me);
|
|
1177
1177
|
}),
|
|
1178
1178
|
onBlur: I(e.onBlur, (E) => {
|
|
1179
1179
|
E.currentTarget.contains(E.target) || (window.clearTimeout(w.current), L.current = "");
|
|
@@ -1201,27 +1201,27 @@ var se = "MenuContent", [zs, Kt] = _e(se), or = h.forwardRef(
|
|
|
1201
1201
|
}
|
|
1202
1202
|
);
|
|
1203
1203
|
or.displayName = se;
|
|
1204
|
-
var
|
|
1204
|
+
var Qs = "MenuGroup", Vt = h.forwardRef(
|
|
1205
1205
|
(e, t) => {
|
|
1206
1206
|
const { __scopeMenu: n, ...r } = e;
|
|
1207
1207
|
return /* @__PURE__ */ o.jsx(Ue.div, { role: "group", ...r, ref: t });
|
|
1208
1208
|
}
|
|
1209
1209
|
);
|
|
1210
|
-
Vt.displayName =
|
|
1211
|
-
var
|
|
1210
|
+
Vt.displayName = Qs;
|
|
1211
|
+
var Gs = "MenuLabel", ar = h.forwardRef(
|
|
1212
1212
|
(e, t) => {
|
|
1213
1213
|
const { __scopeMenu: n, ...r } = e;
|
|
1214
1214
|
return /* @__PURE__ */ o.jsx(Ue.div, { ...r, ref: t });
|
|
1215
1215
|
}
|
|
1216
1216
|
);
|
|
1217
|
-
ar.displayName =
|
|
1217
|
+
ar.displayName = Gs;
|
|
1218
1218
|
var mt = "MenuItem", xn = "menu.itemSelect", wt = h.forwardRef(
|
|
1219
1219
|
(e, t) => {
|
|
1220
1220
|
const { disabled: n = !1, onSelect: r, ...a } = e, s = h.useRef(null), i = ot(mt, e.__scopeMenu), l = Kt(mt, e.__scopeMenu), u = Ze(t, s), v = h.useRef(!1), m = () => {
|
|
1221
1221
|
const c = s.current;
|
|
1222
1222
|
if (!n && c) {
|
|
1223
1223
|
const d = new CustomEvent(xn, { bubbles: !0, cancelable: !0 });
|
|
1224
|
-
c.addEventListener(xn, (f) => r == null ? void 0 : r(f), { once: !0 }),
|
|
1224
|
+
c.addEventListener(xn, (f) => r == null ? void 0 : r(f), { once: !0 }), oa(c, d), d.defaultPrevented ? v.current = !1 : i.onClose();
|
|
1225
1225
|
}
|
|
1226
1226
|
};
|
|
1227
1227
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1260,7 +1260,7 @@ var sr = h.forwardRef(
|
|
|
1260
1260
|
scope: n,
|
|
1261
1261
|
disabled: r,
|
|
1262
1262
|
textValue: a ?? d,
|
|
1263
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1263
|
+
children: /* @__PURE__ */ o.jsx(ka, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ o.jsx(
|
|
1264
1264
|
Ue.div,
|
|
1265
1265
|
{
|
|
1266
1266
|
role: "menuitem",
|
|
@@ -1286,7 +1286,7 @@ var sr = h.forwardRef(
|
|
|
1286
1286
|
}
|
|
1287
1287
|
);
|
|
1288
1288
|
}
|
|
1289
|
-
),
|
|
1289
|
+
), Ws = "MenuCheckboxItem", ir = h.forwardRef(
|
|
1290
1290
|
(e, t) => {
|
|
1291
1291
|
const { checked: n = !1, onCheckedChange: r, ...a } = e;
|
|
1292
1292
|
return /* @__PURE__ */ o.jsx(fr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ o.jsx(
|
|
@@ -1306,21 +1306,21 @@ var sr = h.forwardRef(
|
|
|
1306
1306
|
) });
|
|
1307
1307
|
}
|
|
1308
1308
|
);
|
|
1309
|
-
ir.displayName =
|
|
1310
|
-
var lr = "MenuRadioGroup", [
|
|
1309
|
+
ir.displayName = Ws;
|
|
1310
|
+
var lr = "MenuRadioGroup", [Ys, Xs] = _e(
|
|
1311
1311
|
lr,
|
|
1312
1312
|
{ value: void 0, onValueChange: () => {
|
|
1313
1313
|
} }
|
|
1314
1314
|
), cr = h.forwardRef(
|
|
1315
1315
|
(e, t) => {
|
|
1316
1316
|
const { value: n, onValueChange: r, ...a } = e, s = kt(r);
|
|
1317
|
-
return /* @__PURE__ */ o.jsx(
|
|
1317
|
+
return /* @__PURE__ */ o.jsx(Ys, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(Vt, { ...a, ref: t }) });
|
|
1318
1318
|
}
|
|
1319
1319
|
);
|
|
1320
1320
|
cr.displayName = lr;
|
|
1321
1321
|
var ur = "MenuRadioItem", dr = h.forwardRef(
|
|
1322
1322
|
(e, t) => {
|
|
1323
|
-
const { value: n, ...r } = e, a =
|
|
1323
|
+
const { value: n, ...r } = e, a = Xs(ur, e.__scopeMenu), s = n === a.value;
|
|
1324
1324
|
return /* @__PURE__ */ o.jsx(fr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ o.jsx(
|
|
1325
1325
|
wt,
|
|
1326
1326
|
{
|
|
@@ -1342,12 +1342,12 @@ var ur = "MenuRadioItem", dr = h.forwardRef(
|
|
|
1342
1342
|
}
|
|
1343
1343
|
);
|
|
1344
1344
|
dr.displayName = ur;
|
|
1345
|
-
var Qt = "MenuItemIndicator", [fr,
|
|
1345
|
+
var Qt = "MenuItemIndicator", [fr, Js] = _e(
|
|
1346
1346
|
Qt,
|
|
1347
1347
|
{ checked: !1 }
|
|
1348
1348
|
), hr = h.forwardRef(
|
|
1349
1349
|
(e, t) => {
|
|
1350
|
-
const { __scopeMenu: n, forceMount: r, ...a } = e, s =
|
|
1350
|
+
const { __scopeMenu: n, forceMount: r, ...a } = e, s = Js(Qt, n);
|
|
1351
1351
|
return /* @__PURE__ */ o.jsx(
|
|
1352
1352
|
vt,
|
|
1353
1353
|
{
|
|
@@ -1365,7 +1365,7 @@ var Qt = "MenuItemIndicator", [fr, Xs] = _e(
|
|
|
1365
1365
|
}
|
|
1366
1366
|
);
|
|
1367
1367
|
hr.displayName = Qt;
|
|
1368
|
-
var
|
|
1368
|
+
var Zs = "MenuSeparator", pr = h.forwardRef(
|
|
1369
1369
|
(e, t) => {
|
|
1370
1370
|
const { __scopeMenu: n, ...r } = e;
|
|
1371
1371
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1379,15 +1379,15 @@ var Js = "MenuSeparator", pr = h.forwardRef(
|
|
|
1379
1379
|
);
|
|
1380
1380
|
}
|
|
1381
1381
|
);
|
|
1382
|
-
pr.displayName =
|
|
1383
|
-
var
|
|
1382
|
+
pr.displayName = Zs;
|
|
1383
|
+
var ei = "MenuArrow", mr = h.forwardRef(
|
|
1384
1384
|
(e, t) => {
|
|
1385
1385
|
const { __scopeMenu: n, ...r } = e, a = rt(n);
|
|
1386
|
-
return /* @__PURE__ */ o.jsx(
|
|
1386
|
+
return /* @__PURE__ */ o.jsx(ta, { ...a, ...r, ref: t });
|
|
1387
1387
|
}
|
|
1388
1388
|
);
|
|
1389
|
-
mr.displayName =
|
|
1390
|
-
var Gt = "MenuSub", [
|
|
1389
|
+
mr.displayName = ei;
|
|
1390
|
+
var Gt = "MenuSub", [ti, gr] = _e(Gt), vr = (e) => {
|
|
1391
1391
|
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: a } = e, s = De(Gt, t), i = rt(t), [l, u] = h.useState(null), [v, m] = h.useState(null), c = kt(a);
|
|
1392
1392
|
return h.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ o.jsx(On, { ...i, children: /* @__PURE__ */ o.jsx(
|
|
1393
1393
|
er,
|
|
@@ -1398,7 +1398,7 @@ var Gt = "MenuSub", [ei, gr] = _e(Gt), vr = (e) => {
|
|
|
1398
1398
|
content: v,
|
|
1399
1399
|
onContentChange: m,
|
|
1400
1400
|
children: /* @__PURE__ */ o.jsx(
|
|
1401
|
-
|
|
1401
|
+
ti,
|
|
1402
1402
|
{
|
|
1403
1403
|
scope: t,
|
|
1404
1404
|
contentId: pt(),
|
|
@@ -1476,7 +1476,7 @@ var Qe = "MenuSubTrigger", wr = h.forwardRef(
|
|
|
1476
1476
|
onKeyDown: I(e.onKeyDown, (c) => {
|
|
1477
1477
|
var f;
|
|
1478
1478
|
const d = s.searchRef.current !== "";
|
|
1479
|
-
e.disabled || d && c.key === " " ||
|
|
1479
|
+
e.disabled || d && c.key === " " || $s[r.dir].includes(c.key) && (n.onOpenChange(!0), (f = n.content) == null || f.focus(), c.preventDefault());
|
|
1480
1480
|
})
|
|
1481
1481
|
}
|
|
1482
1482
|
) });
|
|
@@ -1511,7 +1511,7 @@ var xr = "MenuSubContent", yr = h.forwardRef(
|
|
|
1511
1511
|
}),
|
|
1512
1512
|
onKeyDown: I(e.onKeyDown, (m) => {
|
|
1513
1513
|
var f;
|
|
1514
|
-
const c = m.currentTarget.contains(m.target), d =
|
|
1514
|
+
const c = m.currentTarget.contains(m.target), d = Ls[i.dir].includes(m.key);
|
|
1515
1515
|
c && d && (s.onOpenChange(!1), (f = l.trigger) == null || f.focus(), m.preventDefault());
|
|
1516
1516
|
})
|
|
1517
1517
|
}
|
|
@@ -1528,24 +1528,24 @@ function gt(e) {
|
|
|
1528
1528
|
function Wt(e) {
|
|
1529
1529
|
return gt(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function ni(e) {
|
|
1532
1532
|
const t = document.activeElement;
|
|
1533
1533
|
for (const n of e)
|
|
1534
1534
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1536
|
+
function ri(e, t) {
|
|
1537
1537
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
1538
1538
|
}
|
|
1539
|
-
function
|
|
1539
|
+
function oi(e, t, n) {
|
|
1540
1540
|
const a = t.length > 1 && Array.from(t).every((v) => v === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
1541
|
-
let i =
|
|
1541
|
+
let i = ri(e, Math.max(s, 0));
|
|
1542
1542
|
a.length === 1 && (i = i.filter((v) => v !== n));
|
|
1543
1543
|
const u = i.find(
|
|
1544
1544
|
(v) => v.toLowerCase().startsWith(a.toLowerCase())
|
|
1545
1545
|
);
|
|
1546
1546
|
return u !== n ? u : void 0;
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function ai(e, t) {
|
|
1549
1549
|
const { x: n, y: r } = e;
|
|
1550
1550
|
let a = !1;
|
|
1551
1551
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
@@ -1554,18 +1554,18 @@ function oi(e, t) {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
return a;
|
|
1556
1556
|
}
|
|
1557
|
-
function
|
|
1557
|
+
function si(e, t) {
|
|
1558
1558
|
if (!t) return !1;
|
|
1559
1559
|
const n = { x: e.clientX, y: e.clientY };
|
|
1560
|
-
return
|
|
1560
|
+
return ai(n, t);
|
|
1561
1561
|
}
|
|
1562
1562
|
function Xe(e) {
|
|
1563
1563
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
1564
1564
|
}
|
|
1565
|
-
var
|
|
1565
|
+
var ii = tr, li = Bt, ci = rr, ui = or, di = Vt, fi = ar, hi = wt, pi = ir, mi = cr, gi = dr, vi = hr, wi = pr, xi = mr, yi = vr, bi = wr, Mi = yr, Yt = "DropdownMenu", [Si, Wl] = Pn(
|
|
1566
1566
|
Yt,
|
|
1567
1567
|
[Jn]
|
|
1568
|
-
), W = Jn(), [
|
|
1568
|
+
), W = Jn(), [Ei, Mr] = Si(Yt), Sr = (e) => {
|
|
1569
1569
|
const {
|
|
1570
1570
|
__scopeDropdownMenu: t,
|
|
1571
1571
|
children: n,
|
|
@@ -1580,7 +1580,7 @@ var si = tr, ii = Bt, li = rr, ci = or, ui = Vt, di = ar, fi = wt, hi = ir, pi =
|
|
|
1580
1580
|
onChange: i
|
|
1581
1581
|
});
|
|
1582
1582
|
return /* @__PURE__ */ o.jsx(
|
|
1583
|
-
|
|
1583
|
+
Ei,
|
|
1584
1584
|
{
|
|
1585
1585
|
scope: t,
|
|
1586
1586
|
triggerId: pt(),
|
|
@@ -1590,7 +1590,7 @@ var si = tr, ii = Bt, li = rr, ci = or, ui = Vt, di = ar, fi = wt, hi = ir, pi =
|
|
|
1590
1590
|
onOpenChange: c,
|
|
1591
1591
|
onOpenToggle: h.useCallback(() => c((d) => !d), [c]),
|
|
1592
1592
|
modal: l,
|
|
1593
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1593
|
+
children: /* @__PURE__ */ o.jsx(ii, { ...u, open: m, onOpenChange: c, dir: r, modal: l, children: n })
|
|
1594
1594
|
}
|
|
1595
1595
|
);
|
|
1596
1596
|
};
|
|
@@ -1598,7 +1598,7 @@ Sr.displayName = Yt;
|
|
|
1598
1598
|
var Er = "DropdownMenuTrigger", Cr = h.forwardRef(
|
|
1599
1599
|
(e, t) => {
|
|
1600
1600
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = e, s = Mr(Er, n), i = W(n);
|
|
1601
|
-
return /* @__PURE__ */ o.jsx(
|
|
1601
|
+
return /* @__PURE__ */ o.jsx(li, { asChild: !0, ...i, children: /* @__PURE__ */ o.jsx(
|
|
1602
1602
|
Ue.button,
|
|
1603
1603
|
{
|
|
1604
1604
|
type: "button",
|
|
@@ -1622,16 +1622,16 @@ var Er = "DropdownMenuTrigger", Cr = h.forwardRef(
|
|
|
1622
1622
|
}
|
|
1623
1623
|
);
|
|
1624
1624
|
Cr.displayName = Er;
|
|
1625
|
-
var
|
|
1625
|
+
var Ci = "DropdownMenuPortal", Rr = (e) => {
|
|
1626
1626
|
const { __scopeDropdownMenu: t, ...n } = e, r = W(t);
|
|
1627
|
-
return /* @__PURE__ */ o.jsx(
|
|
1627
|
+
return /* @__PURE__ */ o.jsx(ci, { ...r, ...n });
|
|
1628
1628
|
};
|
|
1629
|
-
Rr.displayName =
|
|
1629
|
+
Rr.displayName = Ci;
|
|
1630
1630
|
var Dr = "DropdownMenuContent", jr = h.forwardRef(
|
|
1631
1631
|
(e, t) => {
|
|
1632
1632
|
const { __scopeDropdownMenu: n, ...r } = e, a = Mr(Dr, n), s = W(n), i = h.useRef(!1);
|
|
1633
1633
|
return /* @__PURE__ */ o.jsx(
|
|
1634
|
-
|
|
1634
|
+
ui,
|
|
1635
1635
|
{
|
|
1636
1636
|
id: a.contentId,
|
|
1637
1637
|
"aria-labelledby": a.triggerId,
|
|
@@ -1659,75 +1659,75 @@ var Dr = "DropdownMenuContent", jr = h.forwardRef(
|
|
|
1659
1659
|
}
|
|
1660
1660
|
);
|
|
1661
1661
|
jr.displayName = Dr;
|
|
1662
|
-
var
|
|
1662
|
+
var Ri = "DropdownMenuGroup", Di = h.forwardRef(
|
|
1663
1663
|
(e, t) => {
|
|
1664
1664
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1665
|
-
return /* @__PURE__ */ o.jsx(
|
|
1665
|
+
return /* @__PURE__ */ o.jsx(di, { ...a, ...r, ref: t });
|
|
1666
1666
|
}
|
|
1667
1667
|
);
|
|
1668
|
-
|
|
1669
|
-
var
|
|
1668
|
+
Di.displayName = Ri;
|
|
1669
|
+
var ji = "DropdownMenuLabel", Nr = h.forwardRef(
|
|
1670
1670
|
(e, t) => {
|
|
1671
1671
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1672
|
-
return /* @__PURE__ */ o.jsx(
|
|
1672
|
+
return /* @__PURE__ */ o.jsx(fi, { ...a, ...r, ref: t });
|
|
1673
1673
|
}
|
|
1674
1674
|
);
|
|
1675
|
-
Nr.displayName =
|
|
1676
|
-
var
|
|
1675
|
+
Nr.displayName = ji;
|
|
1676
|
+
var Ni = "DropdownMenuItem", Pr = h.forwardRef(
|
|
1677
1677
|
(e, t) => {
|
|
1678
1678
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1679
|
-
return /* @__PURE__ */ o.jsx(
|
|
1679
|
+
return /* @__PURE__ */ o.jsx(hi, { ...a, ...r, ref: t });
|
|
1680
1680
|
}
|
|
1681
1681
|
);
|
|
1682
|
-
Pr.displayName =
|
|
1683
|
-
var
|
|
1684
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1685
|
-
return /* @__PURE__ */ o.jsx(hi, { ...a, ...r, ref: t });
|
|
1686
|
-
});
|
|
1687
|
-
Tr.displayName = Ni;
|
|
1688
|
-
var Pi = "DropdownMenuRadioGroup", Ti = h.forwardRef((e, t) => {
|
|
1682
|
+
Pr.displayName = Ni;
|
|
1683
|
+
var Pi = "DropdownMenuCheckboxItem", Tr = h.forwardRef((e, t) => {
|
|
1689
1684
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1690
1685
|
return /* @__PURE__ */ o.jsx(pi, { ...a, ...r, ref: t });
|
|
1691
1686
|
});
|
|
1692
|
-
|
|
1693
|
-
var
|
|
1687
|
+
Tr.displayName = Pi;
|
|
1688
|
+
var Ti = "DropdownMenuRadioGroup", _i = h.forwardRef((e, t) => {
|
|
1694
1689
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1695
1690
|
return /* @__PURE__ */ o.jsx(mi, { ...a, ...r, ref: t });
|
|
1696
1691
|
});
|
|
1697
|
-
|
|
1698
|
-
var Oi = "
|
|
1692
|
+
_i.displayName = Ti;
|
|
1693
|
+
var Oi = "DropdownMenuRadioItem", _r = h.forwardRef((e, t) => {
|
|
1699
1694
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1700
1695
|
return /* @__PURE__ */ o.jsx(gi, { ...a, ...r, ref: t });
|
|
1701
1696
|
});
|
|
1702
|
-
|
|
1703
|
-
var Ii = "
|
|
1697
|
+
_r.displayName = Oi;
|
|
1698
|
+
var Ii = "DropdownMenuItemIndicator", Or = h.forwardRef((e, t) => {
|
|
1704
1699
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1705
1700
|
return /* @__PURE__ */ o.jsx(vi, { ...a, ...r, ref: t });
|
|
1706
1701
|
});
|
|
1707
|
-
|
|
1708
|
-
var Ai = "
|
|
1702
|
+
Or.displayName = Ii;
|
|
1703
|
+
var Ai = "DropdownMenuSeparator", Ir = h.forwardRef((e, t) => {
|
|
1704
|
+
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1705
|
+
return /* @__PURE__ */ o.jsx(wi, { ...a, ...r, ref: t });
|
|
1706
|
+
});
|
|
1707
|
+
Ir.displayName = Ai;
|
|
1708
|
+
var ki = "DropdownMenuArrow", $i = h.forwardRef(
|
|
1709
1709
|
(e, t) => {
|
|
1710
1710
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1711
|
-
return /* @__PURE__ */ o.jsx(
|
|
1711
|
+
return /* @__PURE__ */ o.jsx(xi, { ...a, ...r, ref: t });
|
|
1712
1712
|
}
|
|
1713
1713
|
);
|
|
1714
|
-
|
|
1715
|
-
var
|
|
1714
|
+
$i.displayName = ki;
|
|
1715
|
+
var Li = (e) => {
|
|
1716
1716
|
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: a, defaultOpen: s } = e, i = W(t), [l = !1, u] = In({
|
|
1717
1717
|
prop: r,
|
|
1718
1718
|
defaultProp: s,
|
|
1719
1719
|
onChange: a
|
|
1720
1720
|
});
|
|
1721
|
-
return /* @__PURE__ */ o.jsx(
|
|
1722
|
-
},
|
|
1721
|
+
return /* @__PURE__ */ o.jsx(yi, { ...i, open: l, onOpenChange: u, children: n });
|
|
1722
|
+
}, Fi = "DropdownMenuSubTrigger", Ar = h.forwardRef((e, t) => {
|
|
1723
1723
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1724
|
-
return /* @__PURE__ */ o.jsx(
|
|
1724
|
+
return /* @__PURE__ */ o.jsx(bi, { ...a, ...r, ref: t });
|
|
1725
1725
|
});
|
|
1726
|
-
Ar.displayName =
|
|
1727
|
-
var
|
|
1726
|
+
Ar.displayName = Fi;
|
|
1727
|
+
var Hi = "DropdownMenuSubContent", kr = h.forwardRef((e, t) => {
|
|
1728
1728
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1729
1729
|
return /* @__PURE__ */ o.jsx(
|
|
1730
|
-
|
|
1730
|
+
Mi,
|
|
1731
1731
|
{
|
|
1732
1732
|
...a,
|
|
1733
1733
|
...r,
|
|
@@ -1743,9 +1743,9 @@ var Fi = "DropdownMenuSubContent", kr = h.forwardRef((e, t) => {
|
|
|
1743
1743
|
}
|
|
1744
1744
|
);
|
|
1745
1745
|
});
|
|
1746
|
-
kr.displayName =
|
|
1747
|
-
var
|
|
1748
|
-
const
|
|
1746
|
+
kr.displayName = Hi;
|
|
1747
|
+
var Ui = Sr, Bi = Cr, $r = Rr, Lr = jr, Fr = Nr, Hr = Pr, Ur = Tr, Br = _r, zr = Or, Kr = Ir, zi = Li, qr = Ar, Vr = kr;
|
|
1748
|
+
const Ki = Ui, qi = Bi, Vi = $r, Qi = zi, Qr = h.forwardRef(({ className: e, inset: t, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
|
|
1749
1749
|
qr,
|
|
1750
1750
|
{
|
|
1751
1751
|
ref: a,
|
|
@@ -1801,7 +1801,7 @@ const Yr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
1801
1801
|
}
|
|
1802
1802
|
));
|
|
1803
1803
|
Yr.displayName = Hr.displayName;
|
|
1804
|
-
const
|
|
1804
|
+
const Gi = h.forwardRef(({ className: e, children: t, checked: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
|
|
1805
1805
|
Ur,
|
|
1806
1806
|
{
|
|
1807
1807
|
ref: a,
|
|
@@ -1812,13 +1812,13 @@ const Qi = h.forwardRef(({ className: e, children: t, checked: n, ...r }, a) =>
|
|
|
1812
1812
|
checked: n,
|
|
1813
1813
|
...r,
|
|
1814
1814
|
children: [
|
|
1815
|
-
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(zr, { children: /* @__PURE__ */ o.jsx(
|
|
1815
|
+
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(zr, { children: /* @__PURE__ */ o.jsx(ia, { className: "h-4 w-4" }) }) }),
|
|
1816
1816
|
t
|
|
1817
1817
|
]
|
|
1818
1818
|
}
|
|
1819
1819
|
));
|
|
1820
|
-
|
|
1821
|
-
const
|
|
1820
|
+
Gi.displayName = Ur.displayName;
|
|
1821
|
+
const Wi = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ o.jsxs(
|
|
1822
1822
|
Br,
|
|
1823
1823
|
{
|
|
1824
1824
|
ref: r,
|
|
@@ -1828,12 +1828,12 @@ const Gi = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
1828
1828
|
),
|
|
1829
1829
|
...n,
|
|
1830
1830
|
children: [
|
|
1831
|
-
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(zr, { children: /* @__PURE__ */ o.jsx(
|
|
1831
|
+
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(zr, { children: /* @__PURE__ */ o.jsx(Va, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1832
1832
|
t
|
|
1833
1833
|
]
|
|
1834
1834
|
}
|
|
1835
1835
|
));
|
|
1836
|
-
|
|
1836
|
+
Wi.displayName = Br.displayName;
|
|
1837
1837
|
const Xr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ o.jsx(
|
|
1838
1838
|
Fr,
|
|
1839
1839
|
{
|
|
@@ -1856,7 +1856,7 @@ const Jr = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
|
1856
1856
|
}
|
|
1857
1857
|
));
|
|
1858
1858
|
Jr.displayName = Kr.displayName;
|
|
1859
|
-
function
|
|
1859
|
+
function Yi(e) {
|
|
1860
1860
|
if (typeof document > "u") return;
|
|
1861
1861
|
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
|
|
1862
1862
|
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
|
|
@@ -1911,8 +1911,8 @@ const Zr = g.createContext({
|
|
|
1911
1911
|
throw new Error("useDrawerContext must be used within a Drawer.Root");
|
|
1912
1912
|
return e;
|
|
1913
1913
|
};
|
|
1914
|
-
|
|
1915
|
-
const
|
|
1914
|
+
Yi("[vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left]{overflow-x:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]::after{content:'';position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-handle]{display:block;position:relative;opacity:.8;margin-left:auto;margin-right:auto;height:5px;width:56px;border-radius:1rem;touch-action:pan-y;cursor:grab}[vaul-handle]:active,[vaul-handle]:hover{opacity:1}[vaul-handle]:active{cursor:grabbing}[vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible=false]){opacity:1}@media (hover:hover) and (pointer:fine){[vaul-drawer]{user-select:none}}@media (pointer:fine){[vaul-handle-hitarea]:{width:100%;height:100%}}");
|
|
1915
|
+
const eo = typeof window < "u" ? ga : xe;
|
|
1916
1916
|
function Pt(...e) {
|
|
1917
1917
|
return (...t) => {
|
|
1918
1918
|
for (let n of e)
|
|
@@ -1929,7 +1929,7 @@ function Zi() {
|
|
|
1929
1929
|
return Xt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
1930
1930
|
Xi() && navigator.maxTouchPoints > 1;
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1932
|
+
function to() {
|
|
1933
1933
|
return Ji() || Zi();
|
|
1934
1934
|
}
|
|
1935
1935
|
function Xt(e) {
|
|
@@ -1940,7 +1940,7 @@ function yn(e) {
|
|
|
1940
1940
|
let t = window.getComputedStyle(e);
|
|
1941
1941
|
return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
|
|
1942
1942
|
}
|
|
1943
|
-
function
|
|
1943
|
+
function no(e) {
|
|
1944
1944
|
for (yn(e) && (e = e.parentElement); e && !yn(e); )
|
|
1945
1945
|
e = e.parentElement;
|
|
1946
1946
|
return e || document.scrollingElement || document.documentElement;
|
|
@@ -1959,9 +1959,9 @@ const el = /* @__PURE__ */ new Set([
|
|
|
1959
1959
|
let dt = 0, Ct;
|
|
1960
1960
|
function tl(e = {}) {
|
|
1961
1961
|
let { isDisabled: t } = e;
|
|
1962
|
-
|
|
1962
|
+
eo(() => {
|
|
1963
1963
|
if (!t)
|
|
1964
|
-
return dt++, dt === 1 && (
|
|
1964
|
+
return dt++, dt === 1 && (to() ? Ct = rl() : Ct = nl()), () => {
|
|
1965
1965
|
dt--, dt === 0 && Ct();
|
|
1966
1966
|
};
|
|
1967
1967
|
}, [
|
|
@@ -1969,11 +1969,11 @@ function tl(e = {}) {
|
|
|
1969
1969
|
]);
|
|
1970
1970
|
}
|
|
1971
1971
|
function nl() {
|
|
1972
|
-
return Pt(
|
|
1972
|
+
return Pt(ro(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
|
|
1973
1973
|
}
|
|
1974
1974
|
function rl() {
|
|
1975
1975
|
let e, t = 0, n = (c) => {
|
|
1976
|
-
e =
|
|
1976
|
+
e = no(c.target), !(e === document.documentElement && e === document.body) && (t = c.changedTouches[0].pageY);
|
|
1977
1977
|
}, r = (c) => {
|
|
1978
1978
|
if (!e || e === document.documentElement || e === document.body) {
|
|
1979
1979
|
c.preventDefault();
|
|
@@ -1997,7 +1997,7 @@ function rl() {
|
|
|
1997
1997
|
}));
|
|
1998
1998
|
}, i = () => {
|
|
1999
1999
|
window.scrollTo(0, 0);
|
|
2000
|
-
}, l = window.pageXOffset, u = window.pageYOffset, v = Pt(
|
|
2000
|
+
}, l = window.pageXOffset, u = window.pageYOffset, v = Pt(ro(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
|
|
2001
2001
|
window.scrollTo(0, 0);
|
|
2002
2002
|
let m = Pt(qe(document, "touchstart", n, {
|
|
2003
2003
|
passive: !1,
|
|
@@ -2013,7 +2013,7 @@ function rl() {
|
|
|
2013
2013
|
v(), m(), window.scrollTo(l, u);
|
|
2014
2014
|
};
|
|
2015
2015
|
}
|
|
2016
|
-
function
|
|
2016
|
+
function ro(e, t, n) {
|
|
2017
2017
|
let r = e.style[t];
|
|
2018
2018
|
return e.style[t] = n, () => {
|
|
2019
2019
|
e.style[t] = r;
|
|
@@ -2027,7 +2027,7 @@ function qe(e, t, n, r) {
|
|
|
2027
2027
|
function bn(e) {
|
|
2028
2028
|
let t = document.scrollingElement || document.documentElement;
|
|
2029
2029
|
for (; e && e !== t; ) {
|
|
2030
|
-
let n =
|
|
2030
|
+
let n = no(e);
|
|
2031
2031
|
if (n !== document.documentElement && n !== document.body && n !== e) {
|
|
2032
2032
|
let r = n.getBoundingClientRect().top, a = e.getBoundingClientRect().top, s = e.getBoundingClientRect().bottom;
|
|
2033
2033
|
const i = n.getBoundingClientRect().bottom;
|
|
@@ -2045,7 +2045,7 @@ function ol(e, t) {
|
|
|
2045
2045
|
function al(...e) {
|
|
2046
2046
|
return (t) => e.forEach((n) => ol(n, t));
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2048
|
+
function oo(...e) {
|
|
2049
2049
|
return h.useCallback(al(...e), e);
|
|
2050
2050
|
}
|
|
2051
2051
|
let Ve = null;
|
|
@@ -2109,7 +2109,7 @@ function sl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
|
|
|
2109
2109
|
restorePositionSetting: m
|
|
2110
2110
|
};
|
|
2111
2111
|
}
|
|
2112
|
-
const
|
|
2112
|
+
const ao = /* @__PURE__ */ new WeakMap();
|
|
2113
2113
|
function O(e, t, n = !1) {
|
|
2114
2114
|
if (!e || !(e instanceof HTMLElement)) return;
|
|
2115
2115
|
let r = {};
|
|
@@ -2119,11 +2119,11 @@ function O(e, t, n = !1) {
|
|
|
2119
2119
|
return;
|
|
2120
2120
|
}
|
|
2121
2121
|
r[a] = e.style[a], e.style[a] = s;
|
|
2122
|
-
}), !n &&
|
|
2122
|
+
}), !n && ao.set(e, r);
|
|
2123
2123
|
}
|
|
2124
2124
|
function ft(e, t) {
|
|
2125
2125
|
if (!e || !(e instanceof HTMLElement)) return;
|
|
2126
|
-
let n =
|
|
2126
|
+
let n = ao.get(e);
|
|
2127
2127
|
n && (t ? e.style[t] = n[t] : Object.entries(n).forEach(([r, a]) => {
|
|
2128
2128
|
e.style[r] = a;
|
|
2129
2129
|
}));
|
|
@@ -2161,15 +2161,15 @@ const T = {
|
|
|
2161
2161
|
0,
|
|
2162
2162
|
1
|
|
2163
2163
|
]
|
|
2164
|
-
},
|
|
2165
|
-
function
|
|
2164
|
+
}, so = 0.4;
|
|
2165
|
+
function io(e) {
|
|
2166
2166
|
const t = g.useRef(e);
|
|
2167
2167
|
return g.useEffect(() => {
|
|
2168
2168
|
t.current = e;
|
|
2169
2169
|
}), g.useMemo(() => (...n) => t.current == null ? void 0 : t.current.call(t, ...n), []);
|
|
2170
2170
|
}
|
|
2171
2171
|
function ll({ defaultProp: e, onChange: t }) {
|
|
2172
|
-
const n = g.useState(e), [r] = n, a = g.useRef(r), s =
|
|
2172
|
+
const n = g.useState(e), [r] = n, a = g.useRef(r), s = io(t);
|
|
2173
2173
|
return g.useEffect(() => {
|
|
2174
2174
|
a.current !== r && (s(r), a.current = r);
|
|
2175
2175
|
}, [
|
|
@@ -2183,7 +2183,7 @@ function cl({ prop: e, defaultProp: t, onChange: n = () => {
|
|
|
2183
2183
|
const [r, a] = ll({
|
|
2184
2184
|
defaultProp: t,
|
|
2185
2185
|
onChange: n
|
|
2186
|
-
}), s = e !== void 0, i = s ? e : r, l =
|
|
2186
|
+
}), s = e !== void 0, i = s ? e : r, l = io(n), u = g.useCallback((v) => {
|
|
2187
2187
|
if (s) {
|
|
2188
2188
|
const c = typeof v == "function" ? v(e) : v;
|
|
2189
2189
|
c !== e && l(c);
|
|
@@ -2276,7 +2276,7 @@ function ul({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
2276
2276
|
return;
|
|
2277
2277
|
}
|
|
2278
2278
|
const te = f == null ? void 0 : f.reduce((q, X) => typeof q != "number" || typeof X != "number" ? q : Math.abs(X - P) < Math.abs(q - P) ? X : q), V = z(l) ? window.innerHeight : window.innerWidth;
|
|
2279
|
-
if (C >
|
|
2279
|
+
if (C > so && Math.abs(y) < V * 0.4) {
|
|
2280
2280
|
const q = L ? 1 : -1;
|
|
2281
2281
|
if (q > 0 && m) {
|
|
2282
2282
|
R(f[n.length - 1]);
|
|
@@ -2318,24 +2318,24 @@ function ul({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
2318
2318
|
};
|
|
2319
2319
|
}
|
|
2320
2320
|
const dl = 0.25, fl = 100, Mn = 8, Pe = 16, Sn = 26, Rt = "vaul-dragging";
|
|
2321
|
-
function
|
|
2321
|
+
function lo({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, onDrag: a, onRelease: s, snapPoints: i, nested: l = !1, setBackgroundColorOnScale: u = !0, closeThreshold: v = dl, scrollLockTimeout: m = fl, dismissible: c = !0, handleOnly: d = !1, fadeFromIndex: f = i && i.length - 1, activeSnapPoint: b, setActiveSnapPoint: R, fixed: K, modal: H = !0, onClose: Q, noBodyStyles: y, direction: p = "bottom", preventScrollRestoration: C = !0, disablePreventScroll: N = !1 }) {
|
|
2322
2322
|
var P;
|
|
2323
|
-
const [_ = !1, w] = g.useState(!1), [L, te] = g.useState(!1), [V, q] = g.useState(!1), [X, Oe] = g.useState(!1), [he, Be] = g.useState(!1), [ye, E] = g.useState(!1), U = g.useRef(null), Y = g.useRef(null), ne = g.useRef(null), je = g.useRef(null), pe = g.useRef(null), be = g.useRef(!1), me = g.useRef(null), le = g.useRef(0), ge = g.useRef(!1), re = g.useRef(0), M = g.useRef(null), tn = g.useRef(((P = M.current) == null ? void 0 : P.getBoundingClientRect().height) || 0), yt = g.useRef(0),
|
|
2323
|
+
const [_ = !1, w] = g.useState(!1), [L, te] = g.useState(!1), [V, q] = g.useState(!1), [X, Oe] = g.useState(!1), [he, Be] = g.useState(!1), [ye, E] = g.useState(!1), U = g.useRef(null), Y = g.useRef(null), ne = g.useRef(null), je = g.useRef(null), pe = g.useRef(null), be = g.useRef(!1), me = g.useRef(null), le = g.useRef(0), ge = g.useRef(!1), re = g.useRef(0), M = g.useRef(null), tn = g.useRef(((P = M.current) == null ? void 0 : P.getBoundingClientRect().height) || 0), yt = g.useRef(0), bo = g.useCallback((S) => {
|
|
2324
2324
|
i && S === Ke.length - 1 && (Y.current = /* @__PURE__ */ new Date());
|
|
2325
|
-
}, []), { activeSnapPoint:
|
|
2325
|
+
}, []), { activeSnapPoint: Mo, activeSnapPointIndex: ze, setActiveSnapPoint: nn, onRelease: So, snapPointsOffset: Ke, onDrag: Eo, shouldFade: rn, getPercentageDragged: Co } = ul({
|
|
2326
2326
|
snapPoints: i,
|
|
2327
2327
|
activeSnapPointProp: b,
|
|
2328
2328
|
setActiveSnapPointProp: R,
|
|
2329
2329
|
drawerRef: M,
|
|
2330
2330
|
fadeFromIndex: f,
|
|
2331
2331
|
overlayRef: U,
|
|
2332
|
-
onSnapPointChange:
|
|
2332
|
+
onSnapPointChange: bo,
|
|
2333
2333
|
direction: p
|
|
2334
2334
|
});
|
|
2335
2335
|
tl({
|
|
2336
2336
|
isDisabled: !_ || he || !H || ye || !L || N
|
|
2337
2337
|
});
|
|
2338
|
-
const { restorePositionSetting:
|
|
2338
|
+
const { restorePositionSetting: Ro } = sl({
|
|
2339
2339
|
isOpen: _,
|
|
2340
2340
|
modal: H,
|
|
2341
2341
|
nested: l,
|
|
@@ -2346,9 +2346,9 @@ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2346
2346
|
function Ie() {
|
|
2347
2347
|
return (window.innerWidth - Sn) / window.innerWidth;
|
|
2348
2348
|
}
|
|
2349
|
-
function
|
|
2349
|
+
function Do(S) {
|
|
2350
2350
|
var D;
|
|
2351
|
-
!c && !i || M.current && !M.current.contains(S.target) || (tn.current = ((D = M.current) == null ? void 0 : D.getBoundingClientRect().height) || 0, Be(!0), ne.current = /* @__PURE__ */ new Date(),
|
|
2351
|
+
!c && !i || M.current && !M.current.contains(S.target) || (tn.current = ((D = M.current) == null ? void 0 : D.getBoundingClientRect().height) || 0, Be(!0), ne.current = /* @__PURE__ */ new Date(), to() && window.addEventListener("touchend", () => be.current = !1, {
|
|
2352
2352
|
once: !0
|
|
2353
2353
|
}), S.target.setPointerCapture(S.pointerId), le.current = z(p) ? S.clientY : S.clientX);
|
|
2354
2354
|
}
|
|
@@ -2379,19 +2379,19 @@ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2379
2379
|
}
|
|
2380
2380
|
return !0;
|
|
2381
2381
|
}
|
|
2382
|
-
function
|
|
2382
|
+
function jo(S) {
|
|
2383
2383
|
if (M.current && he) {
|
|
2384
2384
|
const D = p === "bottom" || p === "right" ? 1 : -1, k = (le.current - (z(p) ? S.clientY : S.clientX)) * D, j = k > 0, F = i && !c && !j;
|
|
2385
2385
|
if (F && ze === 0) return;
|
|
2386
2386
|
const B = Math.abs(k), oe = document.querySelector("[vaul-drawer-wrapper]");
|
|
2387
2387
|
let ce = B / tn.current;
|
|
2388
|
-
const Me =
|
|
2388
|
+
const Me = Co(B, j);
|
|
2389
2389
|
if (Me !== null && (ce = Me), F && ce >= 1 || !be.current && !on(S.target, j)) return;
|
|
2390
2390
|
if (M.current.classList.add(Rt), be.current = !0, O(M.current, {
|
|
2391
2391
|
transition: "none"
|
|
2392
2392
|
}), O(U.current, {
|
|
2393
2393
|
transition: "none"
|
|
2394
|
-
}), i &&
|
|
2394
|
+
}), i && Eo({
|
|
2395
2395
|
draggedDistance: k
|
|
2396
2396
|
}), j && !i) {
|
|
2397
2397
|
const Ne = il(k), it = Math.min(Ne * -1, 0) * D;
|
|
@@ -2421,7 +2421,7 @@ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2421
2421
|
}
|
|
2422
2422
|
}
|
|
2423
2423
|
g.useEffect(() => () => {
|
|
2424
|
-
at(!1),
|
|
2424
|
+
at(!1), Ro();
|
|
2425
2425
|
}, []), g.useEffect(() => {
|
|
2426
2426
|
var S;
|
|
2427
2427
|
function D() {
|
|
@@ -2457,7 +2457,7 @@ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2457
2457
|
Ke
|
|
2458
2458
|
]);
|
|
2459
2459
|
function Ae() {
|
|
2460
|
-
M.current && (
|
|
2460
|
+
M.current && (No(), Q == null || Q(), O(M.current, {
|
|
2461
2461
|
transform: z(p) ? `translate3d(0, ${p === "bottom" ? "100%" : "-100%"}, 0)` : `translate3d(${p === "right" ? "100%" : "-100%"}, 0, 0)`,
|
|
2462
2462
|
transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`
|
|
2463
2463
|
}), O(U.current, {
|
|
@@ -2479,7 +2479,7 @@ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2479
2479
|
}, [
|
|
2480
2480
|
_,
|
|
2481
2481
|
r
|
|
2482
|
-
]),
|
|
2482
|
+
]), eo(() => {
|
|
2483
2483
|
e ? (w(!0), te(!0)) : Ae();
|
|
2484
2484
|
}, [
|
|
2485
2485
|
e
|
|
@@ -2514,10 +2514,10 @@ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2514
2514
|
transitionTimingFunction: `cubic-bezier(${T.EASE.join(",")})`
|
|
2515
2515
|
}, !0);
|
|
2516
2516
|
}
|
|
2517
|
-
function
|
|
2517
|
+
function No() {
|
|
2518
2518
|
!he || !M.current || (M.current.classList.remove(Rt), be.current = !1, Be(!1), je.current = /* @__PURE__ */ new Date());
|
|
2519
2519
|
}
|
|
2520
|
-
function
|
|
2520
|
+
function Po(S) {
|
|
2521
2521
|
if (!he || !M.current) return;
|
|
2522
2522
|
M.current.classList.remove(Rt), be.current = !1, Be(!1), je.current = /* @__PURE__ */ new Date();
|
|
2523
2523
|
const D = ht(M.current, p);
|
|
@@ -2526,7 +2526,7 @@ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2526
2526
|
if (F > 0.05 && (E(!0), setTimeout(() => {
|
|
2527
2527
|
E(!1);
|
|
2528
2528
|
}, 200)), i) {
|
|
2529
|
-
|
|
2529
|
+
So({
|
|
2530
2530
|
draggedDistance: j * (p === "bottom" || p === "right" ? 1 : -1),
|
|
2531
2531
|
closeDrawer: Ae,
|
|
2532
2532
|
velocity: F,
|
|
@@ -2538,7 +2538,7 @@ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2538
2538
|
an(), s == null || s(S, !0);
|
|
2539
2539
|
return;
|
|
2540
2540
|
}
|
|
2541
|
-
if (F >
|
|
2541
|
+
if (F > so) {
|
|
2542
2542
|
Ae(), s == null || s(S, !1);
|
|
2543
2543
|
return;
|
|
2544
2544
|
}
|
|
@@ -2593,7 +2593,7 @@ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2593
2593
|
transitionTimingFunction: `cubic-bezier(${T.EASE.join(",")})`
|
|
2594
2594
|
})));
|
|
2595
2595
|
}
|
|
2596
|
-
function
|
|
2596
|
+
function To(S) {
|
|
2597
2597
|
const D = S ? (window.innerWidth - Pe) / window.innerWidth : 1, k = S ? -Pe : 0;
|
|
2598
2598
|
me.current && window.clearTimeout(me.current), O(M.current, {
|
|
2599
2599
|
transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
|
|
@@ -2606,7 +2606,7 @@ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2606
2606
|
});
|
|
2607
2607
|
}, 500));
|
|
2608
2608
|
}
|
|
2609
|
-
function
|
|
2609
|
+
function _o(S, D) {
|
|
2610
2610
|
if (D < 0) return;
|
|
2611
2611
|
const k = z(p) ? window.innerHeight : window.innerWidth, j = (k - Pe) / k, F = j + D * (1 - j), B = -Pe + D * Pe;
|
|
2612
2612
|
O(M.current, {
|
|
@@ -2614,14 +2614,14 @@ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2614
2614
|
transition: "none"
|
|
2615
2615
|
});
|
|
2616
2616
|
}
|
|
2617
|
-
function
|
|
2617
|
+
function Oo(S, D) {
|
|
2618
2618
|
const k = z(p) ? window.innerHeight : window.innerWidth, j = D ? (k - Pe) / k : 1, F = D ? -Pe : 0;
|
|
2619
2619
|
D && O(M.current, {
|
|
2620
2620
|
transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
|
|
2621
2621
|
transform: z(p) ? `scale(${j}) translate3d(0, ${F}px, 0)` : `scale(${j}) translate3d(${F}px, 0, 0)`
|
|
2622
2622
|
});
|
|
2623
2623
|
}
|
|
2624
|
-
return /* @__PURE__ */ g.createElement(
|
|
2624
|
+
return /* @__PURE__ */ g.createElement(Ka, {
|
|
2625
2625
|
modal: H,
|
|
2626
2626
|
onOpenChange: (S) => {
|
|
2627
2627
|
if (e !== void 0) {
|
|
@@ -2634,26 +2634,26 @@ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2634
2634
|
}, /* @__PURE__ */ g.createElement(Zr.Provider, {
|
|
2635
2635
|
value: {
|
|
2636
2636
|
visible: V,
|
|
2637
|
-
activeSnapPoint:
|
|
2637
|
+
activeSnapPoint: Mo,
|
|
2638
2638
|
snapPoints: i,
|
|
2639
2639
|
setActiveSnapPoint: nn,
|
|
2640
2640
|
drawerRef: M,
|
|
2641
2641
|
overlayRef: U,
|
|
2642
2642
|
scaleBackground: at,
|
|
2643
2643
|
onOpenChange: t,
|
|
2644
|
-
onPress:
|
|
2644
|
+
onPress: Do,
|
|
2645
2645
|
setVisible: q,
|
|
2646
|
-
onRelease:
|
|
2647
|
-
onDrag:
|
|
2646
|
+
onRelease: Po,
|
|
2647
|
+
onDrag: jo,
|
|
2648
2648
|
dismissible: c,
|
|
2649
2649
|
handleOnly: d,
|
|
2650
2650
|
isOpen: _,
|
|
2651
2651
|
isDragging: he,
|
|
2652
2652
|
shouldFade: rn,
|
|
2653
2653
|
closeDrawer: Ae,
|
|
2654
|
-
onNestedDrag:
|
|
2655
|
-
onNestedOpenChange:
|
|
2656
|
-
onNestedRelease:
|
|
2654
|
+
onNestedDrag: _o,
|
|
2655
|
+
onNestedOpenChange: To,
|
|
2656
|
+
onNestedRelease: Oo,
|
|
2657
2657
|
keyboardIsOpen: ge,
|
|
2658
2658
|
openProp: e,
|
|
2659
2659
|
modal: H,
|
|
@@ -2662,7 +2662,7 @@ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2662
2662
|
}
|
|
2663
2663
|
}, n));
|
|
2664
2664
|
}
|
|
2665
|
-
const hl = 250, pl = 120,
|
|
2665
|
+
const hl = 250, pl = 120, co = /* @__PURE__ */ g.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
|
|
2666
2666
|
const { visible: a, closeDrawer: s, isDragging: i, snapPoints: l, activeSnapPoint: u, setActiveSnapPoint: v, dismissible: m, handleOnly: c, onPress: d, onDrag: f } = xt(), b = g.useRef(null), R = g.useRef(!1);
|
|
2667
2667
|
function K() {
|
|
2668
2668
|
if (R.current) {
|
|
@@ -2722,10 +2722,10 @@ const hl = 250, pl = 120, lo = /* @__PURE__ */ g.forwardRef(function({ preventCy
|
|
|
2722
2722
|
"aria-hidden": "true"
|
|
2723
2723
|
}, t));
|
|
2724
2724
|
});
|
|
2725
|
-
|
|
2726
|
-
const
|
|
2727
|
-
const { overlayRef: r, snapPoints: a, onRelease: s, shouldFade: i, isOpen: l, visible: u } = xt(), v =
|
|
2728
|
-
return /* @__PURE__ */ g.createElement(
|
|
2725
|
+
co.displayName = "Drawer.Handle";
|
|
2726
|
+
const uo = /* @__PURE__ */ g.forwardRef(function({ children: e, ...t }, n) {
|
|
2727
|
+
const { overlayRef: r, snapPoints: a, onRelease: s, shouldFade: i, isOpen: l, visible: u } = xt(), v = oo(n, r), m = a && a.length > 0;
|
|
2728
|
+
return /* @__PURE__ */ g.createElement($a, {
|
|
2729
2729
|
onMouseUp: s,
|
|
2730
2730
|
ref: v,
|
|
2731
2731
|
"vaul-drawer-visible": u ? "true" : "false",
|
|
@@ -2735,9 +2735,9 @@ const co = /* @__PURE__ */ g.forwardRef(function({ children: e, ...t }, n) {
|
|
|
2735
2735
|
...t
|
|
2736
2736
|
});
|
|
2737
2737
|
});
|
|
2738
|
-
|
|
2739
|
-
const
|
|
2740
|
-
const { drawerRef: i, onPress: l, onRelease: u, onDrag: v, dismissible: m, keyboardIsOpen: c, snapPointsOffset: d, visible: f, closeDrawer: b, modal: R, openProp: K, onOpenChange: H, setVisible: Q, handleOnly: y, direction: p } = xt(), C =
|
|
2738
|
+
uo.displayName = "Drawer.Overlay";
|
|
2739
|
+
const fo = /* @__PURE__ */ g.forwardRef(function({ onOpenAutoFocus: e, onPointerDownOutside: t, onAnimationEnd: n, style: r, ...a }, s) {
|
|
2740
|
+
const { drawerRef: i, onPress: l, onRelease: u, onDrag: v, dismissible: m, keyboardIsOpen: c, snapPointsOffset: d, visible: f, closeDrawer: b, modal: R, openProp: K, onOpenChange: H, setVisible: Q, handleOnly: y, direction: p } = xt(), C = oo(s, i), N = g.useRef(null), P = g.useRef(!1), _ = (w, L, te = 0) => {
|
|
2741
2741
|
if (P.current) return !0;
|
|
2742
2742
|
const V = Math.abs(w.y), q = Math.abs(w.x), X = q > V, Oe = [
|
|
2743
2743
|
"bottom",
|
|
@@ -2752,7 +2752,7 @@ const uo = /* @__PURE__ */ g.forwardRef(function({ onOpenAutoFocus: e, onPointer
|
|
|
2752
2752
|
};
|
|
2753
2753
|
return g.useEffect(() => {
|
|
2754
2754
|
Q(!0);
|
|
2755
|
-
}, []), /* @__PURE__ */ g.createElement(
|
|
2755
|
+
}, []), /* @__PURE__ */ g.createElement(La, {
|
|
2756
2756
|
"vaul-drawer": "",
|
|
2757
2757
|
"vaul-drawer-direction": p,
|
|
2758
2758
|
"vaul-drawer-visible": f ? "true" : "false",
|
|
@@ -2808,12 +2808,12 @@ const uo = /* @__PURE__ */ g.forwardRef(function({ onOpenAutoFocus: e, onPointer
|
|
|
2808
2808
|
}
|
|
2809
2809
|
});
|
|
2810
2810
|
});
|
|
2811
|
-
|
|
2811
|
+
fo.displayName = "Drawer.Content";
|
|
2812
2812
|
function ml({ onDrag: e, onOpenChange: t, ...n }) {
|
|
2813
2813
|
const { onNestedDrag: r, onNestedOpenChange: a, onNestedRelease: s } = xt();
|
|
2814
2814
|
if (!r)
|
|
2815
2815
|
throw new Error("Drawer.NestedRoot must be placed in another drawer");
|
|
2816
|
-
return /* @__PURE__ */ g.createElement(
|
|
2816
|
+
return /* @__PURE__ */ g.createElement(lo, {
|
|
2817
2817
|
nested: !0,
|
|
2818
2818
|
onClose: () => {
|
|
2819
2819
|
a(!1);
|
|
@@ -2829,16 +2829,16 @@ function ml({ onDrag: e, onOpenChange: t, ...n }) {
|
|
|
2829
2829
|
});
|
|
2830
2830
|
}
|
|
2831
2831
|
const ie = {
|
|
2832
|
-
Root:
|
|
2832
|
+
Root: lo,
|
|
2833
2833
|
NestedRoot: ml,
|
|
2834
|
-
Content:
|
|
2835
|
-
Handle:
|
|
2836
|
-
Overlay:
|
|
2837
|
-
Trigger:
|
|
2838
|
-
Portal:
|
|
2839
|
-
Close:
|
|
2840
|
-
Title:
|
|
2841
|
-
Description:
|
|
2834
|
+
Content: fo,
|
|
2835
|
+
Handle: co,
|
|
2836
|
+
Overlay: uo,
|
|
2837
|
+
Trigger: Fa,
|
|
2838
|
+
Portal: Ha,
|
|
2839
|
+
Close: Ua,
|
|
2840
|
+
Title: Ba,
|
|
2841
|
+
Description: za
|
|
2842
2842
|
}, Jt = ({
|
|
2843
2843
|
shouldScaleBackground: e = !0,
|
|
2844
2844
|
...t
|
|
@@ -2850,7 +2850,7 @@ const ie = {
|
|
|
2850
2850
|
}
|
|
2851
2851
|
);
|
|
2852
2852
|
Jt.displayName = "Drawer";
|
|
2853
|
-
const
|
|
2853
|
+
const ho = ie.Trigger, gl = ie.Portal, vl = ie.Close, po = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
2854
2854
|
ie.Overlay,
|
|
2855
2855
|
{
|
|
2856
2856
|
ref: n,
|
|
@@ -2858,9 +2858,9 @@ const fo = ie.Trigger, gl = ie.Portal, vl = ie.Close, ho = h.forwardRef(({ class
|
|
|
2858
2858
|
...t
|
|
2859
2859
|
}
|
|
2860
2860
|
));
|
|
2861
|
-
|
|
2861
|
+
po.displayName = ie.Overlay.displayName;
|
|
2862
2862
|
const Zt = h.forwardRef(({ className: e, children: t, hideBar: n = !0, ...r }, a) => /* @__PURE__ */ o.jsxs(gl, { children: [
|
|
2863
|
-
/* @__PURE__ */ o.jsx(
|
|
2863
|
+
/* @__PURE__ */ o.jsx(po, {}),
|
|
2864
2864
|
/* @__PURE__ */ o.jsxs(
|
|
2865
2865
|
ie.Content,
|
|
2866
2866
|
{
|
|
@@ -2902,7 +2902,7 @@ wl.displayName = ie.Description.displayName;
|
|
|
2902
2902
|
const xl = () => {
|
|
2903
2903
|
const { topNavigation: e } = et();
|
|
2904
2904
|
return /* @__PURE__ */ o.jsxs(Jt, { direction: "right", children: [
|
|
2905
|
-
/* @__PURE__ */ o.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ o.jsx(
|
|
2905
|
+
/* @__PURE__ */ o.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ o.jsx(ho, { className: "lg:hidden", children: /* @__PURE__ */ o.jsx(Ga, { size: 22 }) }) }),
|
|
2906
2906
|
/* @__PURE__ */ o.jsxs(
|
|
2907
2907
|
Zt,
|
|
2908
2908
|
{
|
|
@@ -2937,7 +2937,7 @@ const xl = () => {
|
|
|
2937
2937
|
window.removeEventListener("keydown", s);
|
|
2938
2938
|
};
|
|
2939
2939
|
}, [t, n]);
|
|
2940
|
-
const a = e.plugins.find(
|
|
2940
|
+
const a = e.plugins.find(js);
|
|
2941
2941
|
return a ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2942
2942
|
/* @__PURE__ */ o.jsxs(
|
|
2943
2943
|
"button",
|
|
@@ -2947,7 +2947,7 @@ const xl = () => {
|
|
|
2947
2947
|
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-40 sm:w-72",
|
|
2948
2948
|
children: [
|
|
2949
2949
|
/* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
2950
|
-
/* @__PURE__ */ o.jsx(
|
|
2950
|
+
/* @__PURE__ */ o.jsx(Xa, { size: 14 }),
|
|
2951
2951
|
"Search"
|
|
2952
2952
|
] }),
|
|
2953
2953
|
/* @__PURE__ */ o.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" })
|
|
@@ -2972,14 +2972,14 @@ const xl = () => {
|
|
|
2972
2972
|
children: t.label
|
|
2973
2973
|
}
|
|
2974
2974
|
) }, t.label)) }) });
|
|
2975
|
-
},
|
|
2975
|
+
}, mo = ({ item: e }) => e.children ? /* @__PURE__ */ o.jsxs(Qi, { children: [
|
|
2976
2976
|
/* @__PURE__ */ o.jsx(Qr, { children: e.label }),
|
|
2977
|
-
/* @__PURE__ */ o.jsx(
|
|
2977
|
+
/* @__PURE__ */ o.jsx(Vi, { children: /* @__PURE__ */ o.jsx(Gr, { children: e.children.map((t, n) => (
|
|
2978
2978
|
// eslint-disable-next-line react/no-array-index-key
|
|
2979
|
-
/* @__PURE__ */ o.jsx(
|
|
2979
|
+
/* @__PURE__ */ o.jsx(mo, { item: t }, n)
|
|
2980
2980
|
)) }) })
|
|
2981
|
-
] }, e.label) : /* @__PURE__ */ o.jsx(It, { to: e.path ?? "", children: /* @__PURE__ */ o.jsx(Yr, { children: e.label }, e.label) }),
|
|
2982
|
-
const t = un(), [n, r] =
|
|
2981
|
+
] }, e.label) : /* @__PURE__ */ o.jsx(It, { to: e.path ?? "", children: /* @__PURE__ */ o.jsx(Yr, { children: e.label }, e.label) }), go = Un(function() {
|
|
2982
|
+
const t = un(), [n, r] = la(), { isAuthenticated: a, profile: s, isAuthEnabled: i } = un(), l = et(), { page: u, plugins: v } = l, m = v.filter((d) => Rs(d)).flatMap((d) => d.getProfileMenuItems(l)).map((d) => /* @__PURE__ */ o.jsx(mo, { item: d }, d.label)), c = n ? Wa : Ja;
|
|
2983
2983
|
return /* @__PURE__ */ o.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
2984
2984
|
/* @__PURE__ */ o.jsx(o.Fragment, { children: u != null && u.banner ? /* @__PURE__ */ o.jsx("div", { className: "h-[--banner-height] bg-primary/90 text-primary-foreground text-center text-sm font-medium py-2 flex items-center justify-center", children: /* @__PURE__ */ o.jsx("div", { children: u.banner.message }) }) : /* @__PURE__ */ o.jsx("style", { children: ":root{ --banner-height: 0px }" }) }),
|
|
2985
2985
|
/* @__PURE__ */ o.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
@@ -3014,8 +3014,8 @@ const xl = () => {
|
|
|
3014
3014
|
/* @__PURE__ */ o.jsx(xl, {}),
|
|
3015
3015
|
/* @__PURE__ */ o.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
3016
3016
|
/* @__PURE__ */ o.jsx(Te, { name: "head-navigation-start" }),
|
|
3017
|
-
i && !a ? /* @__PURE__ */ o.jsx(Dt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : m.length > 0 && /* @__PURE__ */ o.jsxs(
|
|
3018
|
-
/* @__PURE__ */ o.jsx(
|
|
3017
|
+
i && !a ? /* @__PURE__ */ o.jsx(Dt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : m.length > 0 && /* @__PURE__ */ o.jsxs(Ki, { modal: !1, children: [
|
|
3018
|
+
/* @__PURE__ */ o.jsx(qi, { asChild: !0, children: /* @__PURE__ */ o.jsx(Dt, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
|
|
3019
3019
|
/* @__PURE__ */ o.jsxs(Wr, { className: "w-56", children: [
|
|
3020
3020
|
/* @__PURE__ */ o.jsx(Xr, { children: "My Account" }),
|
|
3021
3021
|
/* @__PURE__ */ o.jsx(Jr, {}),
|
|
@@ -3039,9 +3039,9 @@ const xl = () => {
|
|
|
3039
3039
|
/* @__PURE__ */ o.jsx(bl, {})
|
|
3040
3040
|
] })
|
|
3041
3041
|
] });
|
|
3042
|
-
}),
|
|
3043
|
-
Header:
|
|
3044
|
-
}, Ml = Ln(
|
|
3042
|
+
}), vo = {
|
|
3043
|
+
Header: go
|
|
3044
|
+
}, Ml = Ln(vo), Sl = Ml.Provider, El = (e) => {
|
|
3045
3045
|
const [t, n] = He(!1);
|
|
3046
3046
|
xe(() => {
|
|
3047
3047
|
const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), l = s === "dark" || !s && i.matches;
|
|
@@ -3051,53 +3051,53 @@ const xl = () => {
|
|
|
3051
3051
|
const s = !t;
|
|
3052
3052
|
document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
|
|
3053
3053
|
}, [t]), a = [t, r];
|
|
3054
|
-
return /* @__PURE__ */ o.jsx(
|
|
3054
|
+
return /* @__PURE__ */ o.jsx(ca.Provider, { value: a, ...e });
|
|
3055
3055
|
}, Cl = ({
|
|
3056
3056
|
children: e,
|
|
3057
3057
|
context: t
|
|
3058
|
-
}) => (
|
|
3058
|
+
}) => (Ta({
|
|
3059
3059
|
queryFn: async () => (await t.initialize(), !0),
|
|
3060
3060
|
queryKey: ["zudoku-initialize"]
|
|
3061
|
-
}), /* @__PURE__ */ o.jsx(
|
|
3061
|
+
}), /* @__PURE__ */ o.jsx(_a.Provider, { value: t, children: e })), Rl = ({
|
|
3062
3062
|
children: e,
|
|
3063
3063
|
...t
|
|
3064
3064
|
}) => {
|
|
3065
3065
|
var c, d;
|
|
3066
3066
|
const n = bt(
|
|
3067
|
-
() => ({ ...
|
|
3067
|
+
() => ({ ...vo, ...t.overrides }),
|
|
3068
3068
|
[t.overrides]
|
|
3069
3069
|
), r = bt(() => {
|
|
3070
3070
|
var b;
|
|
3071
3071
|
return {
|
|
3072
|
-
...(t.plugins ?? []).filter(
|
|
3072
|
+
...(t.plugins ?? []).filter(Ts).flatMap(
|
|
3073
3073
|
(R) => R.getMdxComponents ? [R.getMdxComponents()] : []
|
|
3074
3074
|
).reduce((R, K) => ({ ...R, ...K }), {}),
|
|
3075
|
-
...
|
|
3075
|
+
...ua,
|
|
3076
3076
|
...(b = t.mdx) == null ? void 0 : b.components
|
|
3077
3077
|
};
|
|
3078
|
-
}, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: a } =
|
|
3078
|
+
}, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: a } = va(jt), [s, i] = He(!1), l = bt(
|
|
3079
3079
|
() => s ? { stagger: !0 } : { stagger: a },
|
|
3080
3080
|
[a, s]
|
|
3081
|
-
), u =
|
|
3081
|
+
), u = zo();
|
|
3082
3082
|
xe(() => {
|
|
3083
3083
|
s || i(!0);
|
|
3084
3084
|
}, [s, u.location]);
|
|
3085
|
-
const [v] = He(() => new
|
|
3085
|
+
const [v] = He(() => new Os(t)), m = (d = t.plugins) == null ? void 0 : d.filter(Ps).map((f, b) => {
|
|
3086
3086
|
var R;
|
|
3087
|
-
return /* @__PURE__ */ o.jsx(
|
|
3087
|
+
return /* @__PURE__ */ o.jsx(wa, { children: (R = f.getHead) == null ? void 0 : R.call(f) }, b);
|
|
3088
3088
|
});
|
|
3089
|
-
return /* @__PURE__ */ o.jsxs(
|
|
3089
|
+
return /* @__PURE__ */ o.jsxs(Oa, { client: Yn, children: [
|
|
3090
3090
|
/* @__PURE__ */ o.jsx(Ot, { children: m }),
|
|
3091
|
-
/* @__PURE__ */ o.jsx(jt.Provider, { value: l, children: /* @__PURE__ */ o.jsx(Cl, { context: v, children: /* @__PURE__ */ o.jsx(
|
|
3091
|
+
/* @__PURE__ */ o.jsx(jt.Provider, { value: l, children: /* @__PURE__ */ o.jsx(Cl, { context: v, children: /* @__PURE__ */ o.jsx(ko, { components: r, children: /* @__PURE__ */ o.jsx(El, { children: /* @__PURE__ */ o.jsx(Sl, { value: n, children: /* @__PURE__ */ o.jsx(qo, { slotlets: t.slotlets, children: /* @__PURE__ */ o.jsx(da, { children: e ?? /* @__PURE__ */ o.jsx(jn, {}) }) }) }) }) }) }) })
|
|
3092
3092
|
] });
|
|
3093
|
-
}, Dl = Un(Rl),
|
|
3094
|
-
|
|
3093
|
+
}, Dl = Un(Rl), wo = (e) => /* @__PURE__ */ o.jsx(Es, { FallbackComponent: Is, children: /* @__PURE__ */ o.jsx(Dl, { ...e }) });
|
|
3094
|
+
wo.displayName = "DevPortal";
|
|
3095
3095
|
const jl = ({
|
|
3096
3096
|
category: e,
|
|
3097
3097
|
level: t
|
|
3098
3098
|
}) => {
|
|
3099
3099
|
var d;
|
|
3100
|
-
const n = Kn(), r =
|
|
3100
|
+
const n = Kn(), r = $o(e), [a, s] = He(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, u = !!(!i || !l || r), [v, m] = He(u);
|
|
3101
3101
|
xe(() => {
|
|
3102
3102
|
r && m(!0);
|
|
3103
3103
|
}, [r]);
|
|
@@ -3121,7 +3121,7 @@ const jl = ({
|
|
|
3121
3121
|
}
|
|
3122
3122
|
);
|
|
3123
3123
|
return /* @__PURE__ */ o.jsxs(
|
|
3124
|
-
|
|
3124
|
+
ba,
|
|
3125
3125
|
{
|
|
3126
3126
|
className: A("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
|
|
3127
3127
|
defaultOpen: u,
|
|
@@ -3129,7 +3129,7 @@ const jl = ({
|
|
|
3129
3129
|
onOpenChange: () => m(!0),
|
|
3130
3130
|
children: [
|
|
3131
3131
|
/* @__PURE__ */ o.jsx(
|
|
3132
|
-
|
|
3132
|
+
Ma,
|
|
3133
3133
|
{
|
|
3134
3134
|
className: A(
|
|
3135
3135
|
"group text-start",
|
|
@@ -3157,7 +3157,7 @@ const jl = ({
|
|
|
3157
3157
|
}
|
|
3158
3158
|
),
|
|
3159
3159
|
/* @__PURE__ */ o.jsx(
|
|
3160
|
-
|
|
3160
|
+
Sa,
|
|
3161
3161
|
{
|
|
3162
3162
|
className: A(
|
|
3163
3163
|
// CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
|
|
@@ -3177,7 +3177,7 @@ const jl = ({
|
|
|
3177
3177
|
]
|
|
3178
3178
|
}
|
|
3179
3179
|
);
|
|
3180
|
-
}, Ge =
|
|
3180
|
+
}, Ge = fa(
|
|
3181
3181
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
3182
3182
|
{
|
|
3183
3183
|
variants: {
|
|
@@ -3194,11 +3194,11 @@ const jl = ({
|
|
|
3194
3194
|
}
|
|
3195
3195
|
}
|
|
3196
3196
|
}
|
|
3197
|
-
),
|
|
3197
|
+
), xo = "data-anchor", _t = ({
|
|
3198
3198
|
item: e,
|
|
3199
3199
|
level: t = 0
|
|
3200
3200
|
}) => {
|
|
3201
|
-
const n = Kn(), { activeAnchor: r } = $t(), [a] =
|
|
3201
|
+
const n = Kn(), { activeAnchor: r } = $t(), [a] = Ko();
|
|
3202
3202
|
switch (e.type) {
|
|
3203
3203
|
case "category":
|
|
3204
3204
|
return /* @__PURE__ */ o.jsx(jl, { category: e, level: t });
|
|
@@ -3216,10 +3216,10 @@ const jl = ({
|
|
|
3216
3216
|
);
|
|
3217
3217
|
case "link":
|
|
3218
3218
|
return e.href.startsWith("#") ? /* @__PURE__ */ o.jsx(
|
|
3219
|
-
|
|
3219
|
+
Lo,
|
|
3220
3220
|
{
|
|
3221
3221
|
to: { hash: e.href, search: a.toString() },
|
|
3222
|
-
[
|
|
3222
|
+
[xo]: e.href.slice(1),
|
|
3223
3223
|
className: A(
|
|
3224
3224
|
"flex gap-2.5 justify-between",
|
|
3225
3225
|
t === 0 && "-mx-[--padding-nav-item]",
|
|
@@ -3246,7 +3246,7 @@ const jl = ({
|
|
|
3246
3246
|
/* @__PURE__ */ o.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
3247
3247
|
/* @__PURE__ */ o.jsxs("span", { className: "whitespace-nowrap", children: [
|
|
3248
3248
|
" ",
|
|
3249
|
-
/* @__PURE__ */ o.jsx(
|
|
3249
|
+
/* @__PURE__ */ o.jsx(Qa, { className: "inline ml-1", size: 12 })
|
|
3250
3250
|
] })
|
|
3251
3251
|
]
|
|
3252
3252
|
}
|
|
@@ -3271,7 +3271,7 @@ const jl = ({
|
|
|
3271
3271
|
xe(() => {
|
|
3272
3272
|
if (!e.hash) return;
|
|
3273
3273
|
const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
|
|
3274
|
-
const a = document.getElementById(n), s = document.querySelector(`[${
|
|
3274
|
+
const a = document.getElementById(n), s = document.querySelector(`[${xo}="${n}"]`);
|
|
3275
3275
|
return a ? (a.scrollIntoView(), Nl(s), requestIdleCallback(() => t(n)), !0) : !1;
|
|
3276
3276
|
};
|
|
3277
3277
|
if (!r()) {
|
|
@@ -3286,7 +3286,7 @@ const jl = ({
|
|
|
3286
3286
|
xe(() => {
|
|
3287
3287
|
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
3288
3288
|
}, [e.pathname]);
|
|
3289
|
-
},
|
|
3289
|
+
}, yo = xa(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ o.jsx(
|
|
3290
3290
|
"nav",
|
|
3291
3291
|
{
|
|
3292
3292
|
"data-navigation": String(n),
|
|
@@ -3300,12 +3300,12 @@ const jl = ({
|
|
|
3300
3300
|
children: e
|
|
3301
3301
|
}
|
|
3302
3302
|
));
|
|
3303
|
-
|
|
3303
|
+
yo.displayName = "SidebarWrapper";
|
|
3304
3304
|
const _l = () => {
|
|
3305
|
-
const e = Lt(null), t =
|
|
3305
|
+
const e = Lt(null), t = Ia();
|
|
3306
3306
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3307
3307
|
/* @__PURE__ */ o.jsxs(
|
|
3308
|
-
|
|
3308
|
+
yo,
|
|
3309
3309
|
{
|
|
3310
3310
|
ref: e,
|
|
3311
3311
|
pushMainContent: t.data.items.length > 0,
|
|
@@ -3344,11 +3344,11 @@ const _l = () => {
|
|
|
3344
3344
|
(r == null ? void 0 : r.favicon) && /* @__PURE__ */ o.jsx("link", { rel: "icon", href: r.favicon })
|
|
3345
3345
|
] }),
|
|
3346
3346
|
/* @__PURE__ */ o.jsx(Te, { name: "layout-before-head" }),
|
|
3347
|
-
/* @__PURE__ */ o.jsx(
|
|
3347
|
+
/* @__PURE__ */ o.jsx(go, {}),
|
|
3348
3348
|
/* @__PURE__ */ o.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ o.jsx(
|
|
3349
3349
|
Hn,
|
|
3350
3350
|
{
|
|
3351
|
-
fallback: /* @__PURE__ */ o.jsx("main", { className: "grid h-full place-items-center", children: /* @__PURE__ */ o.jsx(
|
|
3351
|
+
fallback: /* @__PURE__ */ o.jsx("main", { className: "grid h-full place-items-center", children: /* @__PURE__ */ o.jsx(qa, {}) }),
|
|
3352
3352
|
children: /* @__PURE__ */ o.jsxs(Jt, { direction: "left", children: [
|
|
3353
3353
|
/* @__PURE__ */ o.jsx(_l, {}),
|
|
3354
3354
|
/* @__PURE__ */ o.jsx(
|
|
@@ -3358,8 +3358,8 @@ const _l = () => {
|
|
|
3358
3358
|
"lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
|
|
3359
3359
|
"peer-data-[navigation=false]:hidden"
|
|
3360
3360
|
),
|
|
3361
|
-
children: /* @__PURE__ */ o.jsxs(
|
|
3362
|
-
/* @__PURE__ */ o.jsx(
|
|
3361
|
+
children: /* @__PURE__ */ o.jsxs(ho, { className: "flex items-center gap-2", children: [
|
|
3362
|
+
/* @__PURE__ */ o.jsx(Ya, { size: 16, strokeWidth: 1.5 }),
|
|
3363
3363
|
/* @__PURE__ */ o.jsx("span", { className: "text-sm", children: "Menu" })
|
|
3364
3364
|
] })
|
|
3365
3365
|
}
|
|
@@ -3385,7 +3385,7 @@ const _l = () => {
|
|
|
3385
3385
|
}
|
|
3386
3386
|
) })
|
|
3387
3387
|
] });
|
|
3388
|
-
}, Yl =
|
|
3388
|
+
}, Yl = Fo, Xl = ha, Jl = wo, Zl = Ol, ec = It, tc = Vo, nc = Za, rc = gs, oc = vs, ac = Dt, sc = Ot;
|
|
3389
3389
|
export {
|
|
3390
3390
|
rc as Bootstrap,
|
|
3391
3391
|
oc as BootstrapStatic,
|