zudoku 0.6.2-dev.3 → 0.6.2-dev.5
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/dev/handler.js +5 -1
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/validators/InputSidebarSchema.d.ts +9 -0
- package/dist/config/validators/InputSidebarSchema.js +2 -0
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/SidebarSchema.d.ts +9 -3
- package/dist/config/validators/SidebarSchema.js +7 -3
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js +5 -3
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +2 -2
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/icons.d.ts +1 -0
- package/dist/lib/icons.js +2 -0
- package/dist/lib/icons.js.map +1 -0
- package/dist/lib/ui/Button.d.ts +2 -2
- package/dist/vite/plugin-icons.d.ts +3 -0
- package/dist/vite/plugin-icons.js +47 -0
- package/dist/vite/plugin-icons.js.map +1 -0
- package/dist/vite/plugin-sidebar.js +10 -1
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin.js +2 -0
- package/dist/vite/plugin.js.map +1 -1
- package/lib/{AuthenticationPlugin-DYnkydqa.js → AuthenticationPlugin-Bx9FK124.js} +3 -3
- package/lib/{AuthenticationPlugin-DYnkydqa.js.map → AuthenticationPlugin-Bx9FK124.js.map} +1 -1
- package/lib/{CategoryHeading-w2EW676o.js → CategoryHeading-XnFqN2lJ.js} +2 -2
- package/lib/{CategoryHeading-w2EW676o.js.map → CategoryHeading-XnFqN2lJ.js.map} +1 -1
- package/lib/{DeveloperHint-D87KcpDW.js → DeveloperHint-FBb2uXJe.js} +2 -2
- package/lib/{DeveloperHint-D87KcpDW.js.map → DeveloperHint-FBb2uXJe.js.map} +1 -1
- package/lib/{ErrorPage-BdHAg3Rg.js → ErrorPage-knunPbKI.js} +4 -4
- package/lib/{ErrorPage-BdHAg3Rg.js.map → ErrorPage-knunPbKI.js.map} +1 -1
- package/lib/{Input-BmwltPfA.js → Input-BEDZAKw0.js} +350 -366
- package/lib/Input-BEDZAKw0.js.map +1 -0
- package/lib/{Markdown-BZUoEvL7.js → Markdown-B4aR03g6.js} +2494 -2650
- package/lib/Markdown-B4aR03g6.js.map +1 -0
- package/lib/{MdxPage-E4NFxzHQ.js → MdxPage-BZyQsH8Z.js} +44 -55
- package/lib/MdxPage-BZyQsH8Z.js.map +1 -0
- package/lib/{OperationList-DVIuzHN7.js → OperationList-2NeWEM0u.js} +103 -171
- package/lib/OperationList-2NeWEM0u.js.map +1 -0
- package/lib/{Route-5sI-urRK.js → Route-BZPewmrN.js} +3 -3
- package/lib/{Route-5sI-urRK.js.map → Route-BZPewmrN.js.map} +1 -1
- package/lib/{SidebarBadge-6EEz-Bwe.js → SidebarBadge-COz0hgfa.js} +39 -39
- package/lib/{SidebarBadge-6EEz-Bwe.js.map → SidebarBadge-COz0hgfa.js.map} +1 -1
- package/lib/{SlotletProvider-CNyl5wU0.js → SlotletProvider-DJMaOUDs.js} +70 -94
- package/lib/SlotletProvider-DJMaOUDs.js.map +1 -0
- package/lib/Spinner-3cQDBVGr.js +7 -0
- package/lib/Spinner-3cQDBVGr.js.map +1 -0
- package/lib/{ZudokuContext-BHNQL3XO.js → ZudokuContext-cr-pTRY1.js} +25 -25
- package/lib/{ZudokuContext-BHNQL3XO.js.map → ZudokuContext-cr-pTRY1.js.map} +1 -1
- package/lib/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +3 -3
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +1 -0
- package/lib/{index-CbJpF8Yf.js → index-1EDgIO6b.js} +7 -7
- package/lib/{index-CbJpF8Yf.js.map → index-1EDgIO6b.js.map} +1 -1
- package/lib/{index-ChhUJhLT.js → index-BG0g4WW0.js} +10 -10
- package/lib/{index-ChhUJhLT.js.map → index-BG0g4WW0.js.map} +1 -1
- package/lib/{index-DdUotMOQ.js → index-Dv2KZuEw.js} +1113 -1169
- package/lib/index-Dv2KZuEw.js.map +1 -0
- package/lib/{index-BGY8VjAV.js → index-Zezcv0xb.js} +24 -24
- package/lib/{index-BGY8VjAV.js.map → index-Zezcv0xb.js.map} +1 -1
- package/lib/{router-BiRCp01d.js → router-D2p7Olpn.js} +22 -22
- package/lib/{router-BiRCp01d.js.map → router-D2p7Olpn.js.map} +1 -1
- package/lib/{slugify-CiPVjteN.js → slugify-DbLhpSPt.js} +2 -2
- package/lib/{slugify-CiPVjteN.js.map → slugify-DbLhpSPt.js.map} +1 -1
- package/lib/{state-DsXXkBLH.js → state-lIwt9isb.js} +15 -15
- package/lib/{state-DsXXkBLH.js.map → state-lIwt9isb.js.map} +1 -1
- package/lib/{utils-BPHLKjns.js → utils-ByIc_KIM.js} +68 -68
- package/lib/{utils-BPHLKjns.js.map → utils-ByIc_KIM.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +8 -8
- package/lib/zudoku.components.js +754 -834
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.icons.js +2 -0
- package/lib/zudoku.icons.js.map +1 -0
- package/lib/zudoku.openapi-worker.js +2 -2
- package/lib/zudoku.plugin-api-keys.js +80 -131
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-page.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +9 -8
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +3 -3
- package/package.json +6 -2
- package/src/lib/components/navigation/SidebarCategory.tsx +43 -31
- package/src/lib/components/navigation/SidebarItem.tsx +2 -1
- package/src/lib/icons.ts +1 -0
- package/lib/Input-BmwltPfA.js.map +0 -1
- package/lib/Markdown-BZUoEvL7.js.map +0 -1
- package/lib/MdxPage-E4NFxzHQ.js.map +0 -1
- package/lib/OperationList-DVIuzHN7.js.map +0 -1
- package/lib/SlotletProvider-CNyl5wU0.js.map +0 -1
- package/lib/Spinner-B9eFggre.js +0 -15
- package/lib/Spinner-B9eFggre.js.map +0 -1
- package/lib/_commonjsHelpers-BVfed4GL.js.map +0 -1
- package/lib/index-DdUotMOQ.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Oo = Object.defineProperty;
|
|
2
|
+
var sn = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var J = (e, t, n) =>
|
|
7
|
-
var b = (e, t, n) => (
|
|
8
|
-
var
|
|
5
|
+
var Io = (e, t, n) => t in e ? Oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var J = (e, t, n) => Io(e, typeof t != "symbol" ? t + "" : t, n), ln = (e, t, n) => t.has(e) || sn("Cannot " + n);
|
|
7
|
+
var b = (e, t, n) => (ln(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ae = (e, t, n) => t.has(e) ? sn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), G = (e, t, n, r) => (ln(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
8
|
+
var it = (e, t, n, r) => ({
|
|
9
9
|
set _(a) {
|
|
10
10
|
G(e, t, a, n);
|
|
11
11
|
},
|
|
@@ -13,128 +13,30 @@ var lt = (e, t, n, r) => ({
|
|
|
13
13
|
return b(e, t, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { E as
|
|
16
|
+
import { c as Rn, H as _t, M as Ao, d as ko, A as $o, b as Lo } from "./utils-ByIc_KIM.js";
|
|
17
|
+
import { e as Fo, f as Ho, R as Uo, N as We, L as Ot, g as Bo, O as Dn, u as zo, b as It } from "./index-BG0g4WW0.js";
|
|
18
|
+
import { E as jn, S as Pe, a as Ko, R as Vo } from "./SlotletProvider-DJMaOUDs.js";
|
|
19
19
|
import { j as o } from "./jsx-runtime-B6kdoens.js";
|
|
20
|
-
import { M as Qo,
|
|
21
|
-
import {
|
|
20
|
+
import { M as Qo, f as qo, c as Nn, o as Pn, A as Go, d as Ze, i as Wo, b as A, j as Yo, F as Xo, D as Jo, C as Zo, P as He, h as At, p as ea, r as Tn, R as ta, S as na, s as ra, g as oa, q as _n, l as aa, a as ht, u as On, V as In, m as cn, B as Rt } from "./index-Zezcv0xb.js";
|
|
21
|
+
import { a as O, c as An, b as sa, T as ia, d as la, V as ca, u as kt, e as ua, C as da } from "./Markdown-B4aR03g6.js";
|
|
22
22
|
import * as h from "react";
|
|
23
|
-
import g, { StrictMode as
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { S as
|
|
28
|
-
import { j as
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
* This source code is licensed under the ISC license.
|
|
35
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/
|
|
37
|
-
const Vn = xe("ChevronRight", [
|
|
38
|
-
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
39
|
-
]);
|
|
40
|
-
/**
|
|
41
|
-
* @license lucide-react v0.378.0 - ISC
|
|
42
|
-
*
|
|
43
|
-
* This source code is licensed under the ISC license.
|
|
44
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/
|
|
46
|
-
const Va = xe("CircleX", [
|
|
47
|
-
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
48
|
-
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
49
|
-
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
50
|
-
]);
|
|
51
|
-
/**
|
|
52
|
-
* @license lucide-react v0.378.0 - ISC
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the ISC license.
|
|
55
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/
|
|
57
|
-
const Qa = xe("Dot", [
|
|
58
|
-
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
|
59
|
-
]);
|
|
60
|
-
/**
|
|
61
|
-
* @license lucide-react v0.378.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/
|
|
66
|
-
const Ga = xe("ExternalLink", [
|
|
67
|
-
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
68
|
-
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
69
|
-
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
70
|
-
]);
|
|
71
|
-
/**
|
|
72
|
-
* @license lucide-react v0.378.0 - ISC
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the ISC license.
|
|
75
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/
|
|
77
|
-
const Wa = xe("Menu", [
|
|
78
|
-
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
79
|
-
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
80
|
-
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
81
|
-
]);
|
|
82
|
-
/**
|
|
83
|
-
* @license lucide-react v0.378.0 - ISC
|
|
84
|
-
*
|
|
85
|
-
* This source code is licensed under the ISC license.
|
|
86
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/
|
|
88
|
-
const Ya = xe("MoonStar", [
|
|
89
|
-
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
90
|
-
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
91
|
-
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
92
|
-
]);
|
|
93
|
-
/**
|
|
94
|
-
* @license lucide-react v0.378.0 - ISC
|
|
95
|
-
*
|
|
96
|
-
* This source code is licensed under the ISC license.
|
|
97
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
-
*/
|
|
99
|
-
const Xa = xe("PanelLeft", [
|
|
100
|
-
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
101
|
-
["path", { d: "M9 3v18", key: "fh3hqa" }]
|
|
102
|
-
]);
|
|
103
|
-
/**
|
|
104
|
-
* @license lucide-react v0.378.0 - ISC
|
|
105
|
-
*
|
|
106
|
-
* This source code is licensed under the ISC license.
|
|
107
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/
|
|
109
|
-
const Ja = xe("Search", [
|
|
110
|
-
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
111
|
-
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
112
|
-
]);
|
|
113
|
-
/**
|
|
114
|
-
* @license lucide-react v0.378.0 - ISC
|
|
115
|
-
*
|
|
116
|
-
* This source code is licensed under the ISC license.
|
|
117
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
-
*/
|
|
119
|
-
const Za = xe("Sun", [
|
|
120
|
-
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
121
|
-
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
122
|
-
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
123
|
-
["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
|
|
124
|
-
["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
|
|
125
|
-
["path", { d: "M2 12h2", key: "1t8f8n" }],
|
|
126
|
-
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
127
|
-
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
128
|
-
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
129
|
-
]);
|
|
130
|
-
function es({ error: e }) {
|
|
131
|
-
return /* @__PURE__ */ o.jsx(Nn, { error: e });
|
|
23
|
+
import g, { StrictMode as kn, createContext as $n, Component as fa, createElement as un, isValidElement as ha, useState as Te, useLayoutEffect as pa, useEffect as be, useCallback as Ln, Suspense as Fn, memo as Hn, useMemo as xt, useContext as ma, Fragment as ga, useRef as $t, forwardRef as va } from "react";
|
|
24
|
+
import { a as Lt } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
25
|
+
import { z as wa } from "./router-D2p7Olpn.js";
|
|
26
|
+
import { a as Dt, R as ba, T as xa, C as ya } from "./index-1EDgIO6b.js";
|
|
27
|
+
import { S as Un, f as Bn, Q as Ma, n as ee, m as dn, g as fn, i as ve, j as Sa, k as Ea, l as Ca, o as Ra, p as hn, r as pn, q as Da, h as mn, t as gn, v as ja, u as Ue, b as Na, Z as Pa, w as Ta, c as zn, x as _a } from "./ZudokuContext-cr-pTRY1.js";
|
|
28
|
+
import { j as Ft } from "./joinPath-B7kNnUX4.js";
|
|
29
|
+
import { ChevronRightIcon as Kn, CheckIcon as Oa, DotIcon as Ia, CircleXIcon as Aa, MenuIcon as ka, SearchIcon as $a, MoonStarIcon as La, SunIcon as Fa, ExternalLinkIcon as Ha, PanelLeftIcon as Ua } from "lucide-react";
|
|
30
|
+
import { c as Vn, P as gt, R as Ba, I as za, O as Ka, C as Va, T as Qa, a as qa, b as Ga, d as Wa, D as Ya, e as Xa, S as yt } from "./SidebarBadge-COz0hgfa.js";
|
|
31
|
+
import { S as Ja } from "./Spinner-3cQDBVGr.js";
|
|
32
|
+
function Za({ error: e }) {
|
|
33
|
+
return /* @__PURE__ */ o.jsx(jn, { error: e });
|
|
132
34
|
}
|
|
133
|
-
var
|
|
134
|
-
const
|
|
135
|
-
Object.defineProperty(
|
|
136
|
-
var
|
|
137
|
-
function
|
|
35
|
+
var et = {};
|
|
36
|
+
const es = /* @__PURE__ */ Lt(wa), ts = /* @__PURE__ */ Lt(Fo), ns = /* @__PURE__ */ Lt(Ho);
|
|
37
|
+
Object.defineProperty(et, "__esModule", { value: !0 });
|
|
38
|
+
var rs = g, fe = es, Ht = ts, we = ns;
|
|
39
|
+
function os(e) {
|
|
138
40
|
if (e && e.__esModule) return e;
|
|
139
41
|
var t = /* @__PURE__ */ Object.create(null);
|
|
140
42
|
return e && Object.keys(e).forEach(function(n) {
|
|
@@ -149,8 +51,8 @@ function as(e) {
|
|
|
149
51
|
}
|
|
150
52
|
}), t.default = e, Object.freeze(t);
|
|
151
53
|
}
|
|
152
|
-
var ue = /* @__PURE__ */
|
|
153
|
-
function
|
|
54
|
+
var ue = /* @__PURE__ */ os(rs);
|
|
55
|
+
function as({
|
|
154
56
|
basename: e,
|
|
155
57
|
children: t,
|
|
156
58
|
location: n = "/",
|
|
@@ -174,7 +76,7 @@ function ss({
|
|
|
174
76
|
static: !0
|
|
175
77
|
});
|
|
176
78
|
}
|
|
177
|
-
function
|
|
79
|
+
function ss({
|
|
178
80
|
context: e,
|
|
179
81
|
router: t,
|
|
180
82
|
hydrate: n = !0,
|
|
@@ -192,9 +94,9 @@ function is({
|
|
|
192
94
|
let u = {
|
|
193
95
|
loaderData: e.loaderData,
|
|
194
96
|
actionData: e.actionData,
|
|
195
|
-
errors:
|
|
97
|
+
errors: ls(e.errors)
|
|
196
98
|
};
|
|
197
|
-
i = `window.__staticRouterHydrationData = JSON.parse(${
|
|
99
|
+
i = `window.__staticRouterHydrationData = JSON.parse(${ps(JSON.stringify(JSON.stringify(u)))});`;
|
|
198
100
|
}
|
|
199
101
|
let {
|
|
200
102
|
state: l
|
|
@@ -218,7 +120,7 @@ function is({
|
|
|
218
120
|
future: {
|
|
219
121
|
v7_relativeSplatPath: t.future.v7_relativeSplatPath
|
|
220
122
|
}
|
|
221
|
-
}, /* @__PURE__ */ ue.createElement(
|
|
123
|
+
}, /* @__PURE__ */ ue.createElement(is, {
|
|
222
124
|
routes: t.routes,
|
|
223
125
|
future: t.future,
|
|
224
126
|
state: l
|
|
@@ -230,14 +132,14 @@ function is({
|
|
|
230
132
|
}
|
|
231
133
|
}) : null);
|
|
232
134
|
}
|
|
233
|
-
function
|
|
135
|
+
function is({
|
|
234
136
|
routes: e,
|
|
235
137
|
future: t,
|
|
236
138
|
state: n
|
|
237
139
|
}) {
|
|
238
|
-
return
|
|
140
|
+
return Ht.UNSAFE_useRoutesImpl(e, void 0, n, t);
|
|
239
141
|
}
|
|
240
|
-
function
|
|
142
|
+
function ls(e) {
|
|
241
143
|
if (!e) return null;
|
|
242
144
|
let t = Object.entries(e), n = {};
|
|
243
145
|
for (let [r, a] of t)
|
|
@@ -257,8 +159,8 @@ function cs(e) {
|
|
|
257
159
|
}
|
|
258
160
|
function Qn() {
|
|
259
161
|
return {
|
|
260
|
-
createHref:
|
|
261
|
-
encodeLocation:
|
|
162
|
+
createHref: qn,
|
|
163
|
+
encodeLocation: Gn,
|
|
262
164
|
push(e) {
|
|
263
165
|
throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
|
|
264
166
|
},
|
|
@@ -276,14 +178,14 @@ function Qn() {
|
|
|
276
178
|
}
|
|
277
179
|
};
|
|
278
180
|
}
|
|
279
|
-
function
|
|
181
|
+
function cs(e, t) {
|
|
280
182
|
return fe.createStaticHandler(e, {
|
|
281
183
|
...t,
|
|
282
|
-
mapRouteProperties:
|
|
184
|
+
mapRouteProperties: Ht.UNSAFE_mapRouteProperties
|
|
283
185
|
});
|
|
284
186
|
}
|
|
285
|
-
function
|
|
286
|
-
let r = {}, a = fe.UNSAFE_convertRoutesToDataRoutes(e,
|
|
187
|
+
function us(e, t, n = {}) {
|
|
188
|
+
let r = {}, a = fe.UNSAFE_convertRoutesToDataRoutes(e, Ht.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((l) => {
|
|
287
189
|
let u = r[l.route.id] || l.route;
|
|
288
190
|
return {
|
|
289
191
|
...l,
|
|
@@ -345,8 +247,8 @@ function ds(e, t, n = {}) {
|
|
|
345
247
|
revalidate() {
|
|
346
248
|
throw i("revalidate");
|
|
347
249
|
},
|
|
348
|
-
createHref:
|
|
349
|
-
encodeLocation:
|
|
250
|
+
createHref: qn,
|
|
251
|
+
encodeLocation: Gn,
|
|
350
252
|
getFetcher() {
|
|
351
253
|
return fe.IDLE_FETCHER;
|
|
352
254
|
},
|
|
@@ -372,51 +274,51 @@ function ds(e, t, n = {}) {
|
|
|
372
274
|
}
|
|
373
275
|
};
|
|
374
276
|
}
|
|
375
|
-
function
|
|
277
|
+
function qn(e) {
|
|
376
278
|
return typeof e == "string" ? e : we.createPath(e);
|
|
377
279
|
}
|
|
378
|
-
function
|
|
280
|
+
function Gn(e) {
|
|
379
281
|
let t = typeof e == "string" ? e : we.createPath(e);
|
|
380
282
|
t = t.replace(/ $/, "%20");
|
|
381
|
-
let n =
|
|
283
|
+
let n = ds.test(t) ? new URL(t) : new URL(t, "http://localhost");
|
|
382
284
|
return {
|
|
383
285
|
pathname: n.pathname,
|
|
384
286
|
search: n.search,
|
|
385
287
|
hash: n.hash
|
|
386
288
|
};
|
|
387
289
|
}
|
|
388
|
-
const
|
|
290
|
+
const ds = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, fs = {
|
|
389
291
|
"&": "\\u0026",
|
|
390
292
|
">": "\\u003e",
|
|
391
293
|
"<": "\\u003c",
|
|
392
294
|
"\u2028": "\\u2028",
|
|
393
295
|
"\u2029": "\\u2029"
|
|
394
|
-
},
|
|
395
|
-
function
|
|
396
|
-
return e.replace(
|
|
296
|
+
}, hs = /[&><\u2028\u2029]/g;
|
|
297
|
+
function ps(e) {
|
|
298
|
+
return e.replace(hs, (t) => fs[t]);
|
|
397
299
|
}
|
|
398
|
-
|
|
399
|
-
var
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
const
|
|
300
|
+
et.StaticRouter = as;
|
|
301
|
+
var ms = et.StaticRouterProvider = ss;
|
|
302
|
+
et.createStaticHandler = cs;
|
|
303
|
+
et.createStaticRouter = us;
|
|
304
|
+
const gs = ({
|
|
403
305
|
router: e,
|
|
404
306
|
hydrate: t = !1
|
|
405
|
-
}) => /* @__PURE__ */ o.jsx(
|
|
307
|
+
}) => /* @__PURE__ */ o.jsx(kn, { children: /* @__PURE__ */ o.jsx(Rn, { children: /* @__PURE__ */ o.jsx(Dt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ o.jsx(Uo, { router: e }) }) }) }), vs = ({
|
|
406
308
|
router: e,
|
|
407
309
|
context: t,
|
|
408
310
|
helmetContext: n
|
|
409
|
-
}) => /* @__PURE__ */ o.jsx(
|
|
410
|
-
var de,
|
|
311
|
+
}) => /* @__PURE__ */ o.jsx(kn, { children: /* @__PURE__ */ o.jsx(Rn, { context: n, children: /* @__PURE__ */ o.jsx(ms, { router: e, context: t }) }) });
|
|
312
|
+
var de, Sn, ws = (Sn = class extends Un {
|
|
411
313
|
constructor(t = {}) {
|
|
412
314
|
super();
|
|
413
315
|
ae(this, de);
|
|
414
316
|
this.config = t, G(this, de, /* @__PURE__ */ new Map());
|
|
415
317
|
}
|
|
416
318
|
build(t, n, r) {
|
|
417
|
-
const a = n.queryKey, s = n.queryHash ??
|
|
319
|
+
const a = n.queryKey, s = n.queryHash ?? Bn(a, n);
|
|
418
320
|
let i = this.get(s);
|
|
419
|
-
return i || (i = new
|
|
321
|
+
return i || (i = new Ma({
|
|
420
322
|
cache: this,
|
|
421
323
|
queryKey: a,
|
|
422
324
|
queryHash: s,
|
|
@@ -451,12 +353,12 @@ var de, En, bs = (En = class extends Bn {
|
|
|
451
353
|
find(t) {
|
|
452
354
|
const n = { exact: !0, ...t };
|
|
453
355
|
return this.getAll().find(
|
|
454
|
-
(r) =>
|
|
356
|
+
(r) => dn(n, r)
|
|
455
357
|
);
|
|
456
358
|
}
|
|
457
359
|
findAll(t = {}) {
|
|
458
360
|
const n = this.getAll();
|
|
459
|
-
return Object.keys(t).length > 0 ? n.filter((r) =>
|
|
361
|
+
return Object.keys(t).length > 0 ? n.filter((r) => dn(t, r)) : n;
|
|
460
362
|
}
|
|
461
363
|
notify(t) {
|
|
462
364
|
ee.batch(() => {
|
|
@@ -479,29 +381,29 @@ var de, En, bs = (En = class extends Bn {
|
|
|
479
381
|
});
|
|
480
382
|
});
|
|
481
383
|
}
|
|
482
|
-
}, de = new WeakMap(),
|
|
384
|
+
}, de = new WeakMap(), Sn), Z, Je, En, bs = (En = class extends Un {
|
|
483
385
|
constructor(t = {}) {
|
|
484
386
|
super();
|
|
485
387
|
ae(this, Z);
|
|
486
|
-
ae(this,
|
|
487
|
-
this.config = t, G(this, Z, /* @__PURE__ */ new Map()), G(this,
|
|
388
|
+
ae(this, Je);
|
|
389
|
+
this.config = t, G(this, Z, /* @__PURE__ */ new Map()), G(this, Je, Date.now());
|
|
488
390
|
}
|
|
489
391
|
build(t, n, r) {
|
|
490
392
|
const a = new Qo({
|
|
491
393
|
mutationCache: this,
|
|
492
|
-
mutationId: ++
|
|
394
|
+
mutationId: ++it(this, Je)._,
|
|
493
395
|
options: t.defaultMutationOptions(n),
|
|
494
396
|
state: r
|
|
495
397
|
});
|
|
496
398
|
return this.add(a), a;
|
|
497
399
|
}
|
|
498
400
|
add(t) {
|
|
499
|
-
const n =
|
|
401
|
+
const n = lt(t), r = b(this, Z).get(n) ?? [];
|
|
500
402
|
r.push(t), b(this, Z).set(n, r), this.notify({ type: "added", mutation: t });
|
|
501
403
|
}
|
|
502
404
|
remove(t) {
|
|
503
405
|
var r;
|
|
504
|
-
const n =
|
|
406
|
+
const n = lt(t);
|
|
505
407
|
if (b(this, Z).has(n)) {
|
|
506
408
|
const a = (r = b(this, Z).get(n)) == null ? void 0 : r.filter((s) => s !== t);
|
|
507
409
|
a && (a.length === 0 ? b(this, Z).delete(n) : b(this, Z).set(n, a));
|
|
@@ -510,12 +412,12 @@ var de, En, bs = (En = class extends Bn {
|
|
|
510
412
|
}
|
|
511
413
|
canRun(t) {
|
|
512
414
|
var r;
|
|
513
|
-
const n = (r = b(this, Z).get(
|
|
415
|
+
const n = (r = b(this, Z).get(lt(t))) == null ? void 0 : r.find((a) => a.state.status === "pending");
|
|
514
416
|
return !n || n === t;
|
|
515
417
|
}
|
|
516
418
|
runNext(t) {
|
|
517
419
|
var r;
|
|
518
|
-
const n = (r = b(this, Z).get(
|
|
420
|
+
const n = (r = b(this, Z).get(lt(t))) == null ? void 0 : r.find((a) => a !== t && a.state.isPaused);
|
|
519
421
|
return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
|
|
520
422
|
}
|
|
521
423
|
clear() {
|
|
@@ -531,11 +433,11 @@ var de, En, bs = (En = class extends Bn {
|
|
|
531
433
|
find(t) {
|
|
532
434
|
const n = { exact: !0, ...t };
|
|
533
435
|
return this.getAll().find(
|
|
534
|
-
(r) =>
|
|
436
|
+
(r) => fn(n, r)
|
|
535
437
|
);
|
|
536
438
|
}
|
|
537
439
|
findAll(t = {}) {
|
|
538
|
-
return this.getAll().filter((n) =>
|
|
440
|
+
return this.getAll().filter((n) => fn(t, n));
|
|
539
441
|
}
|
|
540
442
|
notify(t) {
|
|
541
443
|
ee.batch(() => {
|
|
@@ -552,17 +454,17 @@ var de, En, bs = (En = class extends Bn {
|
|
|
552
454
|
)
|
|
553
455
|
);
|
|
554
456
|
}
|
|
555
|
-
}, Z = new WeakMap(),
|
|
556
|
-
function
|
|
457
|
+
}, Z = new WeakMap(), Je = new WeakMap(), En);
|
|
458
|
+
function lt(e) {
|
|
557
459
|
var t;
|
|
558
460
|
return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
|
|
559
461
|
}
|
|
560
|
-
function
|
|
462
|
+
function xs(e) {
|
|
561
463
|
return {
|
|
562
464
|
onFetch: (t, n) => {
|
|
563
465
|
const r = async () => {
|
|
564
|
-
var y, R, K, H,
|
|
565
|
-
const a = t.options, s = (K = (R = (y = t.fetchOptions) == null ? void 0 : y.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : K.direction, i = ((H = t.state.data) == null ? void 0 : H.pages) || [], l = ((
|
|
466
|
+
var y, R, K, H, q;
|
|
467
|
+
const a = t.options, s = (K = (R = (y = t.fetchOptions) == null ? void 0 : y.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : K.direction, i = ((H = t.state.data) == null ? void 0 : H.pages) || [], l = ((q = t.state.data) == null ? void 0 : q.pageParams) || [], u = { pages: [], pageParams: [] };
|
|
566
468
|
let v = !1;
|
|
567
469
|
const m = (x) => {
|
|
568
470
|
Object.defineProperty(x, "signal", {
|
|
@@ -571,7 +473,7 @@ function ys(e) {
|
|
|
571
473
|
v = !0;
|
|
572
474
|
}), t.signal)
|
|
573
475
|
});
|
|
574
|
-
}, c =
|
|
476
|
+
}, c = Sa(t.options, t.fetchOptions), d = async (x, p, C) => {
|
|
575
477
|
if (v)
|
|
576
478
|
return Promise.reject();
|
|
577
479
|
if (p == null && x.pages.length)
|
|
@@ -585,7 +487,7 @@ function ys(e) {
|
|
|
585
487
|
m(N);
|
|
586
488
|
const P = await c(
|
|
587
489
|
N
|
|
588
|
-
), { maxPages: _ } = t.options, w = C ?
|
|
490
|
+
), { maxPages: _ } = t.options, w = C ? Ea : Ca;
|
|
589
491
|
return {
|
|
590
492
|
pages: w(x.pages, P, _),
|
|
591
493
|
pageParams: w(x.pageParams, p, _)
|
|
@@ -593,7 +495,7 @@ function ys(e) {
|
|
|
593
495
|
};
|
|
594
496
|
let f;
|
|
595
497
|
if (s && i.length) {
|
|
596
|
-
const x = s === "backward", p = x ?
|
|
498
|
+
const x = s === "backward", p = x ? ys : vn, C = {
|
|
597
499
|
pages: i,
|
|
598
500
|
pageParams: l
|
|
599
501
|
}, N = p(a, C);
|
|
@@ -605,7 +507,7 @@ function ys(e) {
|
|
|
605
507
|
);
|
|
606
508
|
const x = e ?? i.length;
|
|
607
509
|
for (let p = 1; p < x; p++) {
|
|
608
|
-
const C =
|
|
510
|
+
const C = vn(a, f);
|
|
609
511
|
f = await d(f, C);
|
|
610
512
|
}
|
|
611
513
|
}
|
|
@@ -627,7 +529,7 @@ function ys(e) {
|
|
|
627
529
|
}
|
|
628
530
|
};
|
|
629
531
|
}
|
|
630
|
-
function
|
|
532
|
+
function vn(e, { pages: t, pageParams: n }) {
|
|
631
533
|
const r = t.length - 1;
|
|
632
534
|
return e.getNextPageParam(
|
|
633
535
|
t[r],
|
|
@@ -636,7 +538,7 @@ function wn(e, { pages: t, pageParams: n }) {
|
|
|
636
538
|
n
|
|
637
539
|
);
|
|
638
540
|
}
|
|
639
|
-
function
|
|
541
|
+
function ys(e, { pages: t, pageParams: n }) {
|
|
640
542
|
var r;
|
|
641
543
|
return (r = e.getPreviousPageParam) == null ? void 0 : r.call(
|
|
642
544
|
e,
|
|
@@ -646,34 +548,34 @@ function Ms(e, { pages: t, pageParams: n }) {
|
|
|
646
548
|
n
|
|
647
549
|
);
|
|
648
550
|
}
|
|
649
|
-
var $, Ee,
|
|
551
|
+
var $, Se, Ee, ke, $e, Ce, Le, Fe, Cn, Ms = (Cn = class {
|
|
650
552
|
constructor(e = {}) {
|
|
651
553
|
ae(this, $);
|
|
554
|
+
ae(this, Se);
|
|
652
555
|
ae(this, Ee);
|
|
653
|
-
ae(this,
|
|
556
|
+
ae(this, ke);
|
|
654
557
|
ae(this, $e);
|
|
558
|
+
ae(this, Ce);
|
|
655
559
|
ae(this, Le);
|
|
656
|
-
ae(this, Re);
|
|
657
560
|
ae(this, Fe);
|
|
658
|
-
|
|
659
|
-
G(this, $, e.queryCache || new bs()), G(this, Ee, e.mutationCache || new xs()), G(this, Ce, e.defaultOptions || {}), G(this, $e, /* @__PURE__ */ new Map()), G(this, Le, /* @__PURE__ */ new Map()), G(this, Re, 0);
|
|
561
|
+
G(this, $, e.queryCache || new ws()), G(this, Se, e.mutationCache || new bs()), G(this, Ee, e.defaultOptions || {}), G(this, ke, /* @__PURE__ */ new Map()), G(this, $e, /* @__PURE__ */ new Map()), G(this, Ce, 0);
|
|
660
562
|
}
|
|
661
563
|
mount() {
|
|
662
|
-
|
|
564
|
+
it(this, Ce)._++, b(this, Ce) === 1 && (G(this, Le, Ra.subscribe(async (e) => {
|
|
663
565
|
e && (await this.resumePausedMutations(), b(this, $).onFocus());
|
|
664
|
-
})), G(this,
|
|
566
|
+
})), G(this, Fe, hn.subscribe(async (e) => {
|
|
665
567
|
e && (await this.resumePausedMutations(), b(this, $).onOnline());
|
|
666
568
|
})));
|
|
667
569
|
}
|
|
668
570
|
unmount() {
|
|
669
571
|
var e, t;
|
|
670
|
-
|
|
572
|
+
it(this, Ce)._--, b(this, Ce) === 0 && ((e = b(this, Le)) == null || e.call(this), G(this, Le, void 0), (t = b(this, Fe)) == null || t.call(this), G(this, Fe, void 0));
|
|
671
573
|
}
|
|
672
574
|
isFetching(e) {
|
|
673
575
|
return b(this, $).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
674
576
|
}
|
|
675
577
|
isMutating(e) {
|
|
676
|
-
return b(this,
|
|
578
|
+
return b(this, Se).findAll({ ...e, status: "pending" }).length;
|
|
677
579
|
}
|
|
678
580
|
getQueryData(e) {
|
|
679
581
|
var n;
|
|
@@ -686,7 +588,7 @@ var $, Ee, Ce, $e, Le, Re, Fe, He, Rn, Ss = (Rn = class {
|
|
|
686
588
|
return this.fetchQuery(e);
|
|
687
589
|
{
|
|
688
590
|
const n = this.defaultQueryOptions(e), r = b(this, $).build(this, n);
|
|
689
|
-
return e.revalidateIfStale && r.isStaleByTime(
|
|
591
|
+
return e.revalidateIfStale && r.isStaleByTime(pn(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
|
|
690
592
|
}
|
|
691
593
|
}
|
|
692
594
|
getQueriesData(e) {
|
|
@@ -698,7 +600,7 @@ var $, Ee, Ce, $e, Le, Re, Fe, He, Rn, Ss = (Rn = class {
|
|
|
698
600
|
setQueryData(e, t, n) {
|
|
699
601
|
const r = this.defaultQueryOptions({ queryKey: e }), a = b(this, $).get(
|
|
700
602
|
r.queryHash
|
|
701
|
-
), s = a == null ? void 0 : a.state.data, i =
|
|
603
|
+
), s = a == null ? void 0 : a.state.data, i = Da(t, s);
|
|
702
604
|
if (i !== void 0)
|
|
703
605
|
return b(this, $).build(this, r).setData(i, { ...n, manual: !0 });
|
|
704
606
|
}
|
|
@@ -768,92 +670,92 @@ var $, Ee, Ce, $e, Le, Re, Fe, He, Rn, Ss = (Rn = class {
|
|
|
768
670
|
t.retry === void 0 && (t.retry = !1);
|
|
769
671
|
const n = b(this, $).build(this, t);
|
|
770
672
|
return n.isStaleByTime(
|
|
771
|
-
|
|
673
|
+
pn(t.staleTime, n)
|
|
772
674
|
) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
773
675
|
}
|
|
774
676
|
prefetchQuery(e) {
|
|
775
677
|
return this.fetchQuery(e).then(ve).catch(ve);
|
|
776
678
|
}
|
|
777
679
|
fetchInfiniteQuery(e) {
|
|
778
|
-
return e.behavior =
|
|
680
|
+
return e.behavior = xs(e.pages), this.fetchQuery(e);
|
|
779
681
|
}
|
|
780
682
|
prefetchInfiniteQuery(e) {
|
|
781
683
|
return this.fetchInfiniteQuery(e).then(ve).catch(ve);
|
|
782
684
|
}
|
|
783
685
|
resumePausedMutations() {
|
|
784
|
-
return
|
|
686
|
+
return hn.isOnline() ? b(this, Se).resumePausedMutations() : Promise.resolve();
|
|
785
687
|
}
|
|
786
688
|
getQueryCache() {
|
|
787
689
|
return b(this, $);
|
|
788
690
|
}
|
|
789
691
|
getMutationCache() {
|
|
790
|
-
return b(this,
|
|
692
|
+
return b(this, Se);
|
|
791
693
|
}
|
|
792
694
|
getDefaultOptions() {
|
|
793
|
-
return b(this,
|
|
695
|
+
return b(this, Ee);
|
|
794
696
|
}
|
|
795
697
|
setDefaultOptions(e) {
|
|
796
|
-
G(this,
|
|
698
|
+
G(this, Ee, e);
|
|
797
699
|
}
|
|
798
700
|
setQueryDefaults(e, t) {
|
|
799
|
-
b(this,
|
|
701
|
+
b(this, ke).set(mn(e), {
|
|
800
702
|
queryKey: e,
|
|
801
703
|
defaultOptions: t
|
|
802
704
|
});
|
|
803
705
|
}
|
|
804
706
|
getQueryDefaults(e) {
|
|
805
|
-
const t = [...b(this,
|
|
707
|
+
const t = [...b(this, ke).values()];
|
|
806
708
|
let n = {};
|
|
807
709
|
return t.forEach((r) => {
|
|
808
|
-
|
|
710
|
+
gn(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
|
|
809
711
|
}), n;
|
|
810
712
|
}
|
|
811
713
|
setMutationDefaults(e, t) {
|
|
812
|
-
b(this,
|
|
714
|
+
b(this, $e).set(mn(e), {
|
|
813
715
|
mutationKey: e,
|
|
814
716
|
defaultOptions: t
|
|
815
717
|
});
|
|
816
718
|
}
|
|
817
719
|
getMutationDefaults(e) {
|
|
818
|
-
const t = [...b(this,
|
|
720
|
+
const t = [...b(this, $e).values()];
|
|
819
721
|
let n = {};
|
|
820
722
|
return t.forEach((r) => {
|
|
821
|
-
|
|
723
|
+
gn(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
|
|
822
724
|
}), n;
|
|
823
725
|
}
|
|
824
726
|
defaultQueryOptions(e) {
|
|
825
727
|
if (e._defaulted)
|
|
826
728
|
return e;
|
|
827
729
|
const t = {
|
|
828
|
-
...b(this,
|
|
730
|
+
...b(this, Ee).queries,
|
|
829
731
|
...this.getQueryDefaults(e.queryKey),
|
|
830
732
|
...e,
|
|
831
733
|
_defaulted: !0
|
|
832
734
|
};
|
|
833
|
-
return t.queryHash || (t.queryHash =
|
|
735
|
+
return t.queryHash || (t.queryHash = Bn(
|
|
834
736
|
t.queryKey,
|
|
835
737
|
t
|
|
836
|
-
)), 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 ===
|
|
738
|
+
)), 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 === ja && (t.enabled = !1), t;
|
|
837
739
|
}
|
|
838
740
|
defaultMutationOptions(e) {
|
|
839
741
|
return e != null && e._defaulted ? e : {
|
|
840
|
-
...b(this,
|
|
742
|
+
...b(this, Ee).mutations,
|
|
841
743
|
...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
|
|
842
744
|
...e,
|
|
843
745
|
_defaulted: !0
|
|
844
746
|
};
|
|
845
747
|
}
|
|
846
748
|
clear() {
|
|
847
|
-
b(this, $).clear(), b(this,
|
|
749
|
+
b(this, $).clear(), b(this, Se).clear();
|
|
848
750
|
}
|
|
849
|
-
}, $ = new WeakMap(),
|
|
850
|
-
const
|
|
751
|
+
}, $ = new WeakMap(), Se = new WeakMap(), Ee = new WeakMap(), ke = new WeakMap(), $e = new WeakMap(), Ce = new WeakMap(), Le = new WeakMap(), Fe = new WeakMap(), Cn);
|
|
752
|
+
const Ss = $n(null), Mt = {
|
|
851
753
|
didCatch: !1,
|
|
852
754
|
error: null
|
|
853
755
|
};
|
|
854
|
-
class
|
|
756
|
+
class Es extends fa {
|
|
855
757
|
constructor(t) {
|
|
856
|
-
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
758
|
+
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Mt;
|
|
857
759
|
}
|
|
858
760
|
static getDerivedStateFromError(t) {
|
|
859
761
|
return {
|
|
@@ -871,7 +773,7 @@ class Cs extends pa {
|
|
|
871
773
|
(n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
|
|
872
774
|
args: s,
|
|
873
775
|
reason: "imperative-api"
|
|
874
|
-
}), this.setState(
|
|
776
|
+
}), this.setState(Mt);
|
|
875
777
|
}
|
|
876
778
|
}
|
|
877
779
|
componentDidCatch(t, n) {
|
|
@@ -884,13 +786,13 @@ class Cs extends pa {
|
|
|
884
786
|
} = this.state, {
|
|
885
787
|
resetKeys: a
|
|
886
788
|
} = this.props;
|
|
887
|
-
if (r && n.error !== null &&
|
|
789
|
+
if (r && n.error !== null && Cs(t.resetKeys, a)) {
|
|
888
790
|
var s, i;
|
|
889
791
|
(s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
|
|
890
792
|
next: a,
|
|
891
793
|
prev: t.resetKeys,
|
|
892
794
|
reason: "keys"
|
|
893
|
-
}), this.setState(
|
|
795
|
+
}), this.setState(Mt);
|
|
894
796
|
}
|
|
895
797
|
}
|
|
896
798
|
render() {
|
|
@@ -912,13 +814,13 @@ class Cs extends pa {
|
|
|
912
814
|
if (typeof n == "function")
|
|
913
815
|
l = n(u);
|
|
914
816
|
else if (r)
|
|
915
|
-
l =
|
|
916
|
-
else if (a === null ||
|
|
817
|
+
l = un(r, u);
|
|
818
|
+
else if (a === null || ha(a))
|
|
917
819
|
l = a;
|
|
918
820
|
else
|
|
919
821
|
throw i;
|
|
920
822
|
}
|
|
921
|
-
return
|
|
823
|
+
return un(Ss.Provider, {
|
|
922
824
|
value: {
|
|
923
825
|
didCatch: s,
|
|
924
826
|
error: i,
|
|
@@ -927,12 +829,12 @@ class Cs extends pa {
|
|
|
927
829
|
}, l);
|
|
928
830
|
}
|
|
929
831
|
}
|
|
930
|
-
function
|
|
832
|
+
function Cs() {
|
|
931
833
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
932
834
|
return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
|
|
933
835
|
}
|
|
934
|
-
const
|
|
935
|
-
class
|
|
836
|
+
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", Wn = new Ms();
|
|
837
|
+
class Os {
|
|
936
838
|
constructor(t) {
|
|
937
839
|
J(this, "plugins");
|
|
938
840
|
J(this, "sidebars");
|
|
@@ -943,23 +845,23 @@ class Is {
|
|
|
943
845
|
J(this, "navigationPlugins");
|
|
944
846
|
J(this, "initialize", async () => {
|
|
945
847
|
await Promise.all(
|
|
946
|
-
this.plugins.filter(
|
|
848
|
+
this.plugins.filter(Ns).map((t) => {
|
|
947
849
|
var n;
|
|
948
850
|
return (n = t.initialize) == null ? void 0 : n.call(t, this);
|
|
949
851
|
})
|
|
950
852
|
);
|
|
951
853
|
});
|
|
952
854
|
J(this, "invalidateCache", async (t) => {
|
|
953
|
-
await
|
|
855
|
+
await Wn.invalidateQueries({ queryKey: t });
|
|
954
856
|
});
|
|
955
857
|
J(this, "getApiIdentities", async () => (await Promise.all(
|
|
956
|
-
this.plugins.filter(
|
|
858
|
+
this.plugins.filter(_s).map((n) => n.getIdentities(this))
|
|
957
859
|
)).flat());
|
|
958
860
|
J(this, "getPluginSidebar", async (t) => (await Promise.all(
|
|
959
861
|
this.navigationPlugins.map(
|
|
960
862
|
(r) => {
|
|
961
863
|
var a;
|
|
962
|
-
return (a = r.getSidebar) == null ? void 0 : a.call(r,
|
|
864
|
+
return (a = r.getSidebar) == null ? void 0 : a.call(r, Ft(t));
|
|
963
865
|
}
|
|
964
866
|
)
|
|
965
867
|
)).flatMap((r) => r ?? []));
|
|
@@ -969,26 +871,26 @@ class Is {
|
|
|
969
871
|
const n = await this.authentication.getAccessToken();
|
|
970
872
|
return t.headers.set("Authorization", `Bearer ${n}`), t;
|
|
971
873
|
});
|
|
972
|
-
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(
|
|
874
|
+
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;
|
|
973
875
|
}
|
|
974
876
|
}
|
|
975
|
-
function
|
|
976
|
-
return /* @__PURE__ */ o.jsx(
|
|
877
|
+
function Is({ error: e, resetErrorBoundary: t }) {
|
|
878
|
+
return /* @__PURE__ */ o.jsx(jn, { error: e });
|
|
977
879
|
}
|
|
978
|
-
const
|
|
979
|
-
(!
|
|
980
|
-
var
|
|
981
|
-
ltr: [...
|
|
982
|
-
rtl: [...
|
|
983
|
-
},
|
|
880
|
+
const ct = globalThis;
|
|
881
|
+
(!ct.requestIdleCallback || !ct.cancelIdleCallback) && (ct.requestIdleCallback = (e) => setTimeout(e, 1), ct.cancelIdleCallback = clearTimeout);
|
|
882
|
+
var jt = ["Enter", " "], As = ["ArrowDown", "PageUp", "Home"], Yn = ["ArrowUp", "PageDown", "End"], ks = [...As, ...Yn], $s = {
|
|
883
|
+
ltr: [...jt, "ArrowRight"],
|
|
884
|
+
rtl: [...jt, "ArrowLeft"]
|
|
885
|
+
}, Ls = {
|
|
984
886
|
ltr: ["ArrowLeft"],
|
|
985
887
|
rtl: ["ArrowRight"]
|
|
986
|
-
},
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
]),
|
|
991
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = e, l =
|
|
888
|
+
}, tt = "Menu", [Ye, Fs, Hs] = qo(tt), [_e, Xn] = Nn(tt, [
|
|
889
|
+
Hs,
|
|
890
|
+
Pn,
|
|
891
|
+
Vn
|
|
892
|
+
]), nt = Pn(), Jn = Vn(), [Zn, Re] = _e(tt), [Us, rt] = _e(tt), er = (e) => {
|
|
893
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = e, l = nt(t), [u, v] = h.useState(null), m = h.useRef(!1), c = At(s), d = oa(a);
|
|
992
894
|
return h.useEffect(() => {
|
|
993
895
|
const f = () => {
|
|
994
896
|
m.current = !0, document.addEventListener("pointerdown", y, { capture: !0, once: !0 }), document.addEventListener("pointermove", y, { capture: !0, once: !0 });
|
|
@@ -996,8 +898,8 @@ var Nt = ["Enter", " "], ks = ["ArrowDown", "PageUp", "Home"], Xn = ["ArrowUp",
|
|
|
996
898
|
return document.addEventListener("keydown", f, { capture: !0 }), () => {
|
|
997
899
|
document.removeEventListener("keydown", f, { capture: !0 }), document.removeEventListener("pointerdown", y, { capture: !0 }), document.removeEventListener("pointermove", y, { capture: !0 });
|
|
998
900
|
};
|
|
999
|
-
}, []), /* @__PURE__ */ o.jsx(
|
|
1000
|
-
|
|
901
|
+
}, []), /* @__PURE__ */ o.jsx(_n, { ...l, children: /* @__PURE__ */ o.jsx(
|
|
902
|
+
Zn,
|
|
1001
903
|
{
|
|
1002
904
|
scope: t,
|
|
1003
905
|
open: n,
|
|
@@ -1005,7 +907,7 @@ var Nt = ["Enter", " "], ks = ["ArrowDown", "PageUp", "Home"], Xn = ["ArrowUp",
|
|
|
1005
907
|
content: u,
|
|
1006
908
|
onContentChange: v,
|
|
1007
909
|
children: /* @__PURE__ */ o.jsx(
|
|
1008
|
-
|
|
910
|
+
Us,
|
|
1009
911
|
{
|
|
1010
912
|
scope: t,
|
|
1011
913
|
onClose: h.useCallback(() => c(!1), [c]),
|
|
@@ -1018,34 +920,34 @@ var Nt = ["Enter", " "], ks = ["ArrowDown", "PageUp", "Home"], Xn = ["ArrowUp",
|
|
|
1018
920
|
}
|
|
1019
921
|
) });
|
|
1020
922
|
};
|
|
1021
|
-
|
|
1022
|
-
var
|
|
923
|
+
er.displayName = tt;
|
|
924
|
+
var Bs = "MenuAnchor", Ut = h.forwardRef(
|
|
1023
925
|
(e, t) => {
|
|
1024
|
-
const { __scopeMenu: n, ...r } = e, a =
|
|
1025
|
-
return /* @__PURE__ */ o.jsx(
|
|
926
|
+
const { __scopeMenu: n, ...r } = e, a = nt(n);
|
|
927
|
+
return /* @__PURE__ */ o.jsx(Go, { ...a, ...r, ref: t });
|
|
1026
928
|
}
|
|
1027
929
|
);
|
|
1028
|
-
|
|
1029
|
-
var
|
|
930
|
+
Ut.displayName = Bs;
|
|
931
|
+
var Bt = "MenuPortal", [zs, tr] = _e(Bt, {
|
|
1030
932
|
forceMount: void 0
|
|
1031
|
-
}),
|
|
1032
|
-
const { __scopeMenu: t, forceMount: n, children: r, container: a } = e, s =
|
|
1033
|
-
return /* @__PURE__ */ o.jsx(
|
|
933
|
+
}), nr = (e) => {
|
|
934
|
+
const { __scopeMenu: t, forceMount: n, children: r, container: a } = e, s = Re(Bt, t);
|
|
935
|
+
return /* @__PURE__ */ o.jsx(zs, { scope: t, forceMount: n, children: /* @__PURE__ */ o.jsx(gt, { present: n || s.open, children: /* @__PURE__ */ o.jsx(aa, { asChild: !0, container: a, children: r }) }) });
|
|
1034
936
|
};
|
|
1035
|
-
|
|
1036
|
-
var se = "MenuContent", [
|
|
937
|
+
nr.displayName = Bt;
|
|
938
|
+
var se = "MenuContent", [Ks, zt] = _e(se), rr = h.forwardRef(
|
|
1037
939
|
(e, t) => {
|
|
1038
|
-
const n =
|
|
1039
|
-
return /* @__PURE__ */ o.jsx(
|
|
940
|
+
const n = tr(se, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, s = Re(se, e.__scopeMenu), i = rt(se, e.__scopeMenu);
|
|
941
|
+
return /* @__PURE__ */ o.jsx(Ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(gt, { present: r || s.open, children: /* @__PURE__ */ o.jsx(Ye.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(Vs, { ...a, ref: t }) : /* @__PURE__ */ o.jsx(Qs, { ...a, ref: t }) }) }) });
|
|
1040
942
|
}
|
|
1041
943
|
), Vs = h.forwardRef(
|
|
1042
944
|
(e, t) => {
|
|
1043
|
-
const n =
|
|
945
|
+
const n = Re(se, e.__scopeMenu), r = h.useRef(null), a = Ze(t, r);
|
|
1044
946
|
return h.useEffect(() => {
|
|
1045
947
|
const s = r.current;
|
|
1046
|
-
if (s) return
|
|
948
|
+
if (s) return Wo(s);
|
|
1047
949
|
}, []), /* @__PURE__ */ o.jsx(
|
|
1048
|
-
|
|
950
|
+
Kt,
|
|
1049
951
|
{
|
|
1050
952
|
...e,
|
|
1051
953
|
ref: a,
|
|
@@ -1062,9 +964,9 @@ var se = "MenuContent", [qs, Kt] = Oe(se), or = h.forwardRef(
|
|
|
1062
964
|
);
|
|
1063
965
|
}
|
|
1064
966
|
), Qs = h.forwardRef((e, t) => {
|
|
1065
|
-
const n =
|
|
967
|
+
const n = Re(se, e.__scopeMenu);
|
|
1066
968
|
return /* @__PURE__ */ o.jsx(
|
|
1067
|
-
|
|
969
|
+
Kt,
|
|
1068
970
|
{
|
|
1069
971
|
...e,
|
|
1070
972
|
ref: t,
|
|
@@ -1074,7 +976,7 @@ var se = "MenuContent", [qs, Kt] = Oe(se), or = h.forwardRef(
|
|
|
1074
976
|
onDismiss: () => n.onOpenChange(!1)
|
|
1075
977
|
}
|
|
1076
978
|
);
|
|
1077
|
-
}),
|
|
979
|
+
}), Kt = h.forwardRef(
|
|
1078
980
|
(e, t) => {
|
|
1079
981
|
const {
|
|
1080
982
|
__scopeMenu: n,
|
|
@@ -1091,48 +993,48 @@ var se = "MenuContent", [qs, Kt] = Oe(se), or = h.forwardRef(
|
|
|
1091
993
|
onDismiss: f,
|
|
1092
994
|
disableOutsideScroll: y,
|
|
1093
995
|
...R
|
|
1094
|
-
} = e, K =
|
|
996
|
+
} = e, K = Re(se, n), H = rt(se, n), q = nt(n), x = Jn(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), Q = h.useRef(null), V = h.useRef("right"), X = h.useRef(0), Oe = y ? ta : h.Fragment, he = y ? { as: na, allowPinchZoom: !0 } : void 0, Be = (E) => {
|
|
1095
997
|
var le, ge;
|
|
1096
|
-
const U = L.current + E, Y = p().filter((re) => !re.disabled), ne = document.activeElement,
|
|
998
|
+
const U = L.current + E, Y = p().filter((re) => !re.disabled), ne = document.activeElement, De = (le = Y.find((re) => re.ref.current === ne)) == null ? void 0 : le.textValue, pe = Y.map((re) => re.textValue), ye = oi(pe, U, De), me = (ge = Y.find((re) => re.textValue === ye)) == null ? void 0 : ge.ref.current;
|
|
1097
999
|
(function re(M) {
|
|
1098
1000
|
L.current = M, window.clearTimeout(w.current), M !== "" && (w.current = window.setTimeout(() => re(""), 1e3));
|
|
1099
1001
|
})(U), me && setTimeout(() => me.focus());
|
|
1100
1002
|
};
|
|
1101
|
-
h.useEffect(() => () => window.clearTimeout(w.current), []),
|
|
1102
|
-
const
|
|
1003
|
+
h.useEffect(() => () => window.clearTimeout(w.current), []), Yo();
|
|
1004
|
+
const xe = h.useCallback((E) => {
|
|
1103
1005
|
var Y, ne;
|
|
1104
|
-
return
|
|
1006
|
+
return V.current === ((Y = Q.current) == null ? void 0 : Y.side) && si(E, (ne = Q.current) == null ? void 0 : ne.area);
|
|
1105
1007
|
}, []);
|
|
1106
1008
|
return /* @__PURE__ */ o.jsx(
|
|
1107
|
-
|
|
1009
|
+
Ks,
|
|
1108
1010
|
{
|
|
1109
1011
|
scope: n,
|
|
1110
1012
|
searchRef: L,
|
|
1111
1013
|
onItemEnter: h.useCallback(
|
|
1112
1014
|
(E) => {
|
|
1113
|
-
|
|
1015
|
+
xe(E) && E.preventDefault();
|
|
1114
1016
|
},
|
|
1115
|
-
[
|
|
1017
|
+
[xe]
|
|
1116
1018
|
),
|
|
1117
1019
|
onItemLeave: h.useCallback(
|
|
1118
1020
|
(E) => {
|
|
1119
1021
|
var U;
|
|
1120
|
-
|
|
1022
|
+
xe(E) || ((U = P.current) == null || U.focus(), N(null));
|
|
1121
1023
|
},
|
|
1122
|
-
[
|
|
1024
|
+
[xe]
|
|
1123
1025
|
),
|
|
1124
1026
|
onTriggerLeave: h.useCallback(
|
|
1125
1027
|
(E) => {
|
|
1126
|
-
|
|
1028
|
+
xe(E) && E.preventDefault();
|
|
1127
1029
|
},
|
|
1128
|
-
[
|
|
1030
|
+
[xe]
|
|
1129
1031
|
),
|
|
1130
1032
|
pointerGraceTimerRef: te,
|
|
1131
1033
|
onPointerGraceIntentChange: h.useCallback((E) => {
|
|
1132
|
-
|
|
1034
|
+
Q.current = E;
|
|
1133
1035
|
}, []),
|
|
1134
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1135
|
-
|
|
1036
|
+
children: /* @__PURE__ */ o.jsx(Oe, { ...he, children: /* @__PURE__ */ o.jsx(
|
|
1037
|
+
Xo,
|
|
1136
1038
|
{
|
|
1137
1039
|
asChild: !0,
|
|
1138
1040
|
trapped: a,
|
|
@@ -1142,7 +1044,7 @@ var se = "MenuContent", [qs, Kt] = Oe(se), or = h.forwardRef(
|
|
|
1142
1044
|
}),
|
|
1143
1045
|
onUnmountAutoFocus: i,
|
|
1144
1046
|
children: /* @__PURE__ */ o.jsx(
|
|
1145
|
-
|
|
1047
|
+
Jo,
|
|
1146
1048
|
{
|
|
1147
1049
|
asChild: !0,
|
|
1148
1050
|
disableOutsidePointerEvents: l,
|
|
@@ -1152,7 +1054,7 @@ var se = "MenuContent", [qs, Kt] = Oe(se), or = h.forwardRef(
|
|
|
1152
1054
|
onInteractOutside: d,
|
|
1153
1055
|
onDismiss: f,
|
|
1154
1056
|
children: /* @__PURE__ */ o.jsx(
|
|
1155
|
-
|
|
1057
|
+
Ba,
|
|
1156
1058
|
{
|
|
1157
1059
|
asChild: !0,
|
|
1158
1060
|
...x,
|
|
@@ -1166,36 +1068,36 @@ var se = "MenuContent", [qs, Kt] = Oe(se), or = h.forwardRef(
|
|
|
1166
1068
|
}),
|
|
1167
1069
|
preventScrollOnEntryFocus: !0,
|
|
1168
1070
|
children: /* @__PURE__ */ o.jsx(
|
|
1169
|
-
|
|
1071
|
+
Zo,
|
|
1170
1072
|
{
|
|
1171
1073
|
role: "menu",
|
|
1172
1074
|
"aria-orientation": "vertical",
|
|
1173
|
-
"data-state":
|
|
1075
|
+
"data-state": xr(K.open),
|
|
1174
1076
|
"data-radix-menu-content": "",
|
|
1175
1077
|
dir: H.dir,
|
|
1176
|
-
...
|
|
1078
|
+
...q,
|
|
1177
1079
|
...R,
|
|
1178
1080
|
ref: _,
|
|
1179
1081
|
style: { outline: "none", ...R.style },
|
|
1180
1082
|
onKeyDown: A(R.onKeyDown, (E) => {
|
|
1181
|
-
const Y = E.target.closest("[data-radix-menu-content]") === E.currentTarget, ne = E.ctrlKey || E.altKey || E.metaKey,
|
|
1182
|
-
Y && (E.key === "Tab" && E.preventDefault(), !ne &&
|
|
1083
|
+
const Y = E.target.closest("[data-radix-menu-content]") === E.currentTarget, ne = E.ctrlKey || E.altKey || E.metaKey, De = E.key.length === 1;
|
|
1084
|
+
Y && (E.key === "Tab" && E.preventDefault(), !ne && De && Be(E.key));
|
|
1183
1085
|
const pe = P.current;
|
|
1184
|
-
if (E.target !== pe ||
|
|
1086
|
+
if (E.target !== pe || !ks.includes(E.key)) return;
|
|
1185
1087
|
E.preventDefault();
|
|
1186
1088
|
const me = p().filter((le) => !le.disabled).map((le) => le.ref.current);
|
|
1187
|
-
|
|
1089
|
+
Yn.includes(E.key) && me.reverse(), ni(me);
|
|
1188
1090
|
}),
|
|
1189
1091
|
onBlur: A(e.onBlur, (E) => {
|
|
1190
1092
|
E.currentTarget.contains(E.target) || (window.clearTimeout(w.current), L.current = "");
|
|
1191
1093
|
}),
|
|
1192
1094
|
onPointerMove: A(
|
|
1193
1095
|
e.onPointerMove,
|
|
1194
|
-
|
|
1096
|
+
Xe((E) => {
|
|
1195
1097
|
const U = E.target, Y = X.current !== E.clientX;
|
|
1196
1098
|
if (E.currentTarget.contains(U) && Y) {
|
|
1197
1099
|
const ne = E.clientX > X.current ? "right" : "left";
|
|
1198
|
-
|
|
1100
|
+
V.current = ne, X.current = E.clientX;
|
|
1199
1101
|
}
|
|
1200
1102
|
})
|
|
1201
1103
|
)
|
|
@@ -1211,32 +1113,32 @@ var se = "MenuContent", [qs, Kt] = Oe(se), or = h.forwardRef(
|
|
|
1211
1113
|
);
|
|
1212
1114
|
}
|
|
1213
1115
|
);
|
|
1214
|
-
|
|
1215
|
-
var
|
|
1116
|
+
rr.displayName = se;
|
|
1117
|
+
var qs = "MenuGroup", Vt = h.forwardRef(
|
|
1216
1118
|
(e, t) => {
|
|
1217
1119
|
const { __scopeMenu: n, ...r } = e;
|
|
1218
|
-
return /* @__PURE__ */ o.jsx(
|
|
1120
|
+
return /* @__PURE__ */ o.jsx(He.div, { role: "group", ...r, ref: t });
|
|
1219
1121
|
}
|
|
1220
1122
|
);
|
|
1221
|
-
Vt.displayName =
|
|
1222
|
-
var
|
|
1123
|
+
Vt.displayName = qs;
|
|
1124
|
+
var Gs = "MenuLabel", or = h.forwardRef(
|
|
1223
1125
|
(e, t) => {
|
|
1224
1126
|
const { __scopeMenu: n, ...r } = e;
|
|
1225
|
-
return /* @__PURE__ */ o.jsx(
|
|
1127
|
+
return /* @__PURE__ */ o.jsx(He.div, { ...r, ref: t });
|
|
1226
1128
|
}
|
|
1227
1129
|
);
|
|
1228
|
-
|
|
1229
|
-
var
|
|
1130
|
+
or.displayName = Gs;
|
|
1131
|
+
var pt = "MenuItem", wn = "menu.itemSelect", vt = h.forwardRef(
|
|
1230
1132
|
(e, t) => {
|
|
1231
|
-
const { disabled: n = !1, onSelect: r, ...a } = e, s = h.useRef(null), i =
|
|
1133
|
+
const { disabled: n = !1, onSelect: r, ...a } = e, s = h.useRef(null), i = rt(pt, e.__scopeMenu), l = zt(pt, e.__scopeMenu), u = Ze(t, s), v = h.useRef(!1), m = () => {
|
|
1232
1134
|
const c = s.current;
|
|
1233
1135
|
if (!n && c) {
|
|
1234
|
-
const d = new CustomEvent(
|
|
1235
|
-
c.addEventListener(
|
|
1136
|
+
const d = new CustomEvent(wn, { bubbles: !0, cancelable: !0 });
|
|
1137
|
+
c.addEventListener(wn, (f) => r == null ? void 0 : r(f), { once: !0 }), ra(c, d), d.defaultPrevented ? v.current = !1 : i.onClose();
|
|
1236
1138
|
}
|
|
1237
1139
|
};
|
|
1238
1140
|
return /* @__PURE__ */ o.jsx(
|
|
1239
|
-
|
|
1141
|
+
ar,
|
|
1240
1142
|
{
|
|
1241
1143
|
...a,
|
|
1242
1144
|
ref: u,
|
|
@@ -1252,27 +1154,27 @@ var mt = "MenuItem", bn = "menu.itemSelect", wt = h.forwardRef(
|
|
|
1252
1154
|
}),
|
|
1253
1155
|
onKeyDown: A(e.onKeyDown, (c) => {
|
|
1254
1156
|
const d = l.searchRef.current !== "";
|
|
1255
|
-
n || d && c.key === " " ||
|
|
1157
|
+
n || d && c.key === " " || jt.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
|
|
1256
1158
|
})
|
|
1257
1159
|
}
|
|
1258
1160
|
);
|
|
1259
1161
|
}
|
|
1260
1162
|
);
|
|
1261
|
-
|
|
1262
|
-
var
|
|
1163
|
+
vt.displayName = pt;
|
|
1164
|
+
var ar = h.forwardRef(
|
|
1263
1165
|
(e, t) => {
|
|
1264
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = e, i =
|
|
1166
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = e, i = zt(pt, n), l = Jn(n), u = h.useRef(null), v = Ze(t, u), [m, c] = h.useState(!1), [d, f] = h.useState("");
|
|
1265
1167
|
return h.useEffect(() => {
|
|
1266
1168
|
const y = u.current;
|
|
1267
1169
|
y && f((y.textContent ?? "").trim());
|
|
1268
1170
|
}, [s.children]), /* @__PURE__ */ o.jsx(
|
|
1269
|
-
|
|
1171
|
+
Ye.ItemSlot,
|
|
1270
1172
|
{
|
|
1271
1173
|
scope: n,
|
|
1272
1174
|
disabled: r,
|
|
1273
1175
|
textValue: a ?? d,
|
|
1274
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1275
|
-
|
|
1176
|
+
children: /* @__PURE__ */ o.jsx(za, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ o.jsx(
|
|
1177
|
+
He.div,
|
|
1276
1178
|
{
|
|
1277
1179
|
role: "menuitem",
|
|
1278
1180
|
"data-highlighted": m ? "" : void 0,
|
|
@@ -1282,13 +1184,13 @@ var sr = h.forwardRef(
|
|
|
1282
1184
|
ref: v,
|
|
1283
1185
|
onPointerMove: A(
|
|
1284
1186
|
e.onPointerMove,
|
|
1285
|
-
|
|
1187
|
+
Xe((y) => {
|
|
1286
1188
|
r ? i.onItemLeave(y) : (i.onItemEnter(y), y.defaultPrevented || y.currentTarget.focus({ preventScroll: !0 }));
|
|
1287
1189
|
})
|
|
1288
1190
|
),
|
|
1289
1191
|
onPointerLeave: A(
|
|
1290
1192
|
e.onPointerLeave,
|
|
1291
|
-
|
|
1193
|
+
Xe((y) => i.onItemLeave(y))
|
|
1292
1194
|
),
|
|
1293
1195
|
onFocus: A(e.onFocus, () => c(!0)),
|
|
1294
1196
|
onBlur: A(e.onBlur, () => c(!1))
|
|
@@ -1297,49 +1199,49 @@ var sr = h.forwardRef(
|
|
|
1297
1199
|
}
|
|
1298
1200
|
);
|
|
1299
1201
|
}
|
|
1300
|
-
),
|
|
1202
|
+
), Ws = "MenuCheckboxItem", sr = h.forwardRef(
|
|
1301
1203
|
(e, t) => {
|
|
1302
1204
|
const { checked: n = !1, onCheckedChange: r, ...a } = e;
|
|
1303
|
-
return /* @__PURE__ */ o.jsx(
|
|
1304
|
-
|
|
1205
|
+
return /* @__PURE__ */ o.jsx(dr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ o.jsx(
|
|
1206
|
+
vt,
|
|
1305
1207
|
{
|
|
1306
1208
|
role: "menuitemcheckbox",
|
|
1307
|
-
"aria-checked":
|
|
1209
|
+
"aria-checked": mt(n) ? "mixed" : n,
|
|
1308
1210
|
...a,
|
|
1309
1211
|
ref: t,
|
|
1310
|
-
"data-state":
|
|
1212
|
+
"data-state": Gt(n),
|
|
1311
1213
|
onSelect: A(
|
|
1312
1214
|
a.onSelect,
|
|
1313
|
-
() => r == null ? void 0 : r(
|
|
1215
|
+
() => r == null ? void 0 : r(mt(n) ? !0 : !n),
|
|
1314
1216
|
{ checkForDefaultPrevented: !1 }
|
|
1315
1217
|
)
|
|
1316
1218
|
}
|
|
1317
1219
|
) });
|
|
1318
1220
|
}
|
|
1319
1221
|
);
|
|
1320
|
-
|
|
1321
|
-
var
|
|
1322
|
-
|
|
1222
|
+
sr.displayName = Ws;
|
|
1223
|
+
var ir = "MenuRadioGroup", [Ys, Xs] = _e(
|
|
1224
|
+
ir,
|
|
1323
1225
|
{ value: void 0, onValueChange: () => {
|
|
1324
1226
|
} }
|
|
1325
|
-
),
|
|
1227
|
+
), lr = h.forwardRef(
|
|
1326
1228
|
(e, t) => {
|
|
1327
|
-
const { value: n, onValueChange: r, ...a } = e, s =
|
|
1328
|
-
return /* @__PURE__ */ o.jsx(
|
|
1229
|
+
const { value: n, onValueChange: r, ...a } = e, s = At(r);
|
|
1230
|
+
return /* @__PURE__ */ o.jsx(Ys, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(Vt, { ...a, ref: t }) });
|
|
1329
1231
|
}
|
|
1330
1232
|
);
|
|
1331
|
-
|
|
1332
|
-
var
|
|
1233
|
+
lr.displayName = ir;
|
|
1234
|
+
var cr = "MenuRadioItem", ur = h.forwardRef(
|
|
1333
1235
|
(e, t) => {
|
|
1334
|
-
const { value: n, ...r } = e, a =
|
|
1335
|
-
return /* @__PURE__ */ o.jsx(
|
|
1336
|
-
|
|
1236
|
+
const { value: n, ...r } = e, a = Xs(cr, e.__scopeMenu), s = n === a.value;
|
|
1237
|
+
return /* @__PURE__ */ o.jsx(dr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ o.jsx(
|
|
1238
|
+
vt,
|
|
1337
1239
|
{
|
|
1338
1240
|
role: "menuitemradio",
|
|
1339
1241
|
"aria-checked": s,
|
|
1340
1242
|
...r,
|
|
1341
1243
|
ref: t,
|
|
1342
|
-
"data-state":
|
|
1244
|
+
"data-state": Gt(s),
|
|
1343
1245
|
onSelect: A(
|
|
1344
1246
|
r.onSelect,
|
|
1345
1247
|
() => {
|
|
@@ -1352,35 +1254,35 @@ var ur = "MenuRadioItem", dr = h.forwardRef(
|
|
|
1352
1254
|
) });
|
|
1353
1255
|
}
|
|
1354
1256
|
);
|
|
1355
|
-
|
|
1356
|
-
var Qt = "MenuItemIndicator", [
|
|
1257
|
+
ur.displayName = cr;
|
|
1258
|
+
var Qt = "MenuItemIndicator", [dr, Js] = _e(
|
|
1357
1259
|
Qt,
|
|
1358
1260
|
{ checked: !1 }
|
|
1359
|
-
),
|
|
1261
|
+
), fr = h.forwardRef(
|
|
1360
1262
|
(e, t) => {
|
|
1361
|
-
const { __scopeMenu: n, forceMount: r, ...a } = e, s =
|
|
1263
|
+
const { __scopeMenu: n, forceMount: r, ...a } = e, s = Js(Qt, n);
|
|
1362
1264
|
return /* @__PURE__ */ o.jsx(
|
|
1363
|
-
|
|
1265
|
+
gt,
|
|
1364
1266
|
{
|
|
1365
|
-
present: r ||
|
|
1267
|
+
present: r || mt(s.checked) || s.checked === !0,
|
|
1366
1268
|
children: /* @__PURE__ */ o.jsx(
|
|
1367
|
-
|
|
1269
|
+
He.span,
|
|
1368
1270
|
{
|
|
1369
1271
|
...a,
|
|
1370
1272
|
ref: t,
|
|
1371
|
-
"data-state":
|
|
1273
|
+
"data-state": Gt(s.checked)
|
|
1372
1274
|
}
|
|
1373
1275
|
)
|
|
1374
1276
|
}
|
|
1375
1277
|
);
|
|
1376
1278
|
}
|
|
1377
1279
|
);
|
|
1378
|
-
|
|
1379
|
-
var
|
|
1280
|
+
fr.displayName = Qt;
|
|
1281
|
+
var Zs = "MenuSeparator", hr = h.forwardRef(
|
|
1380
1282
|
(e, t) => {
|
|
1381
1283
|
const { __scopeMenu: n, ...r } = e;
|
|
1382
1284
|
return /* @__PURE__ */ o.jsx(
|
|
1383
|
-
|
|
1285
|
+
He.div,
|
|
1384
1286
|
{
|
|
1385
1287
|
role: "separator",
|
|
1386
1288
|
"aria-orientation": "horizontal",
|
|
@@ -1390,18 +1292,18 @@ var ei = "MenuSeparator", pr = h.forwardRef(
|
|
|
1390
1292
|
);
|
|
1391
1293
|
}
|
|
1392
1294
|
);
|
|
1393
|
-
|
|
1394
|
-
var
|
|
1295
|
+
hr.displayName = Zs;
|
|
1296
|
+
var ei = "MenuArrow", pr = h.forwardRef(
|
|
1395
1297
|
(e, t) => {
|
|
1396
|
-
const { __scopeMenu: n, ...r } = e, a =
|
|
1397
|
-
return /* @__PURE__ */ o.jsx(
|
|
1298
|
+
const { __scopeMenu: n, ...r } = e, a = nt(n);
|
|
1299
|
+
return /* @__PURE__ */ o.jsx(ea, { ...a, ...r, ref: t });
|
|
1398
1300
|
}
|
|
1399
1301
|
);
|
|
1400
|
-
|
|
1401
|
-
var
|
|
1402
|
-
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: a } = e, s =
|
|
1403
|
-
return h.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ o.jsx(
|
|
1404
|
-
|
|
1302
|
+
pr.displayName = ei;
|
|
1303
|
+
var qt = "MenuSub", [ti, mr] = _e(qt), gr = (e) => {
|
|
1304
|
+
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: a } = e, s = Re(qt, t), i = nt(t), [l, u] = h.useState(null), [v, m] = h.useState(null), c = At(a);
|
|
1305
|
+
return h.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ o.jsx(_n, { ...i, children: /* @__PURE__ */ o.jsx(
|
|
1306
|
+
Zn,
|
|
1405
1307
|
{
|
|
1406
1308
|
scope: t,
|
|
1407
1309
|
open: r,
|
|
@@ -1409,11 +1311,11 @@ var Gt = "MenuSub", [ni, gr] = Oe(Gt), vr = (e) => {
|
|
|
1409
1311
|
content: v,
|
|
1410
1312
|
onContentChange: m,
|
|
1411
1313
|
children: /* @__PURE__ */ o.jsx(
|
|
1412
|
-
|
|
1314
|
+
ti,
|
|
1413
1315
|
{
|
|
1414
1316
|
scope: t,
|
|
1415
|
-
contentId:
|
|
1416
|
-
triggerId:
|
|
1317
|
+
contentId: ht(),
|
|
1318
|
+
triggerId: ht(),
|
|
1417
1319
|
trigger: l,
|
|
1418
1320
|
onTriggerChange: u,
|
|
1419
1321
|
children: n
|
|
@@ -1422,10 +1324,10 @@ var Gt = "MenuSub", [ni, gr] = Oe(Gt), vr = (e) => {
|
|
|
1422
1324
|
}
|
|
1423
1325
|
) });
|
|
1424
1326
|
};
|
|
1425
|
-
|
|
1426
|
-
var
|
|
1327
|
+
gr.displayName = qt;
|
|
1328
|
+
var qe = "MenuSubTrigger", vr = h.forwardRef(
|
|
1427
1329
|
(e, t) => {
|
|
1428
|
-
const n =
|
|
1330
|
+
const n = Re(qe, e.__scopeMenu), r = rt(qe, e.__scopeMenu), a = mr(qe, e.__scopeMenu), s = zt(qe, e.__scopeMenu), i = h.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, v = { __scopeMenu: e.__scopeMenu }, m = h.useCallback(() => {
|
|
1429
1331
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
1430
1332
|
}, []);
|
|
1431
1333
|
return h.useEffect(() => m, [m]), h.useEffect(() => {
|
|
@@ -1433,23 +1335,23 @@ var Ge = "MenuSubTrigger", wr = h.forwardRef(
|
|
|
1433
1335
|
return () => {
|
|
1434
1336
|
window.clearTimeout(c), u(null);
|
|
1435
1337
|
};
|
|
1436
|
-
}, [l, u]), /* @__PURE__ */ o.jsx(
|
|
1437
|
-
|
|
1338
|
+
}, [l, u]), /* @__PURE__ */ o.jsx(Ut, { asChild: !0, ...v, children: /* @__PURE__ */ o.jsx(
|
|
1339
|
+
ar,
|
|
1438
1340
|
{
|
|
1439
1341
|
id: a.triggerId,
|
|
1440
1342
|
"aria-haspopup": "menu",
|
|
1441
1343
|
"aria-expanded": n.open,
|
|
1442
1344
|
"aria-controls": a.contentId,
|
|
1443
|
-
"data-state":
|
|
1345
|
+
"data-state": xr(n.open),
|
|
1444
1346
|
...e,
|
|
1445
|
-
ref:
|
|
1347
|
+
ref: Tn(t, a.onTriggerChange),
|
|
1446
1348
|
onClick: (c) => {
|
|
1447
1349
|
var d;
|
|
1448
1350
|
(d = e.onClick) == null || d.call(e, c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
1449
1351
|
},
|
|
1450
1352
|
onPointerMove: A(
|
|
1451
1353
|
e.onPointerMove,
|
|
1452
|
-
|
|
1354
|
+
Xe((c) => {
|
|
1453
1355
|
s.onItemEnter(c), !c.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
|
|
1454
1356
|
n.onOpenChange(!0), m();
|
|
1455
1357
|
}, 100));
|
|
@@ -1457,21 +1359,21 @@ var Ge = "MenuSubTrigger", wr = h.forwardRef(
|
|
|
1457
1359
|
),
|
|
1458
1360
|
onPointerLeave: A(
|
|
1459
1361
|
e.onPointerLeave,
|
|
1460
|
-
|
|
1362
|
+
Xe((c) => {
|
|
1461
1363
|
var f, y;
|
|
1462
1364
|
m();
|
|
1463
1365
|
const d = (f = n.content) == null ? void 0 : f.getBoundingClientRect();
|
|
1464
1366
|
if (d) {
|
|
1465
|
-
const R = (y = n.content) == null ? void 0 : y.dataset.side, K = R === "right", H = K ? -5 : 5,
|
|
1367
|
+
const R = (y = n.content) == null ? void 0 : y.dataset.side, K = R === "right", H = K ? -5 : 5, q = d[K ? "left" : "right"], x = d[K ? "right" : "left"];
|
|
1466
1368
|
s.onPointerGraceIntentChange({
|
|
1467
1369
|
area: [
|
|
1468
1370
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
1469
1371
|
// consistently within polygon bounds
|
|
1470
1372
|
{ x: c.clientX + H, y: c.clientY },
|
|
1471
|
-
{ x:
|
|
1373
|
+
{ x: q, y: d.top },
|
|
1472
1374
|
{ x, y: d.top },
|
|
1473
1375
|
{ x, y: d.bottom },
|
|
1474
|
-
{ x:
|
|
1376
|
+
{ x: q, y: d.bottom }
|
|
1475
1377
|
],
|
|
1476
1378
|
side: R
|
|
1477
1379
|
}), window.clearTimeout(l.current), l.current = window.setTimeout(
|
|
@@ -1487,18 +1389,18 @@ var Ge = "MenuSubTrigger", wr = h.forwardRef(
|
|
|
1487
1389
|
onKeyDown: A(e.onKeyDown, (c) => {
|
|
1488
1390
|
var f;
|
|
1489
1391
|
const d = s.searchRef.current !== "";
|
|
1490
|
-
e.disabled || d && c.key === " " ||
|
|
1392
|
+
e.disabled || d && c.key === " " || $s[r.dir].includes(c.key) && (n.onOpenChange(!0), (f = n.content) == null || f.focus(), c.preventDefault());
|
|
1491
1393
|
})
|
|
1492
1394
|
}
|
|
1493
1395
|
) });
|
|
1494
1396
|
}
|
|
1495
1397
|
);
|
|
1496
|
-
|
|
1497
|
-
var
|
|
1398
|
+
vr.displayName = qe;
|
|
1399
|
+
var wr = "MenuSubContent", br = h.forwardRef(
|
|
1498
1400
|
(e, t) => {
|
|
1499
|
-
const n =
|
|
1500
|
-
return /* @__PURE__ */ o.jsx(
|
|
1501
|
-
|
|
1401
|
+
const n = tr(se, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, s = Re(se, e.__scopeMenu), i = rt(se, e.__scopeMenu), l = mr(wr, e.__scopeMenu), u = h.useRef(null), v = Ze(t, u);
|
|
1402
|
+
return /* @__PURE__ */ o.jsx(Ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(gt, { present: r || s.open, children: /* @__PURE__ */ o.jsx(Ye.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(
|
|
1403
|
+
Kt,
|
|
1502
1404
|
{
|
|
1503
1405
|
id: l.contentId,
|
|
1504
1406
|
"aria-labelledby": l.triggerId,
|
|
@@ -1522,41 +1424,41 @@ var br = "MenuSubContent", xr = h.forwardRef(
|
|
|
1522
1424
|
}),
|
|
1523
1425
|
onKeyDown: A(e.onKeyDown, (m) => {
|
|
1524
1426
|
var f;
|
|
1525
|
-
const c = m.currentTarget.contains(m.target), d =
|
|
1427
|
+
const c = m.currentTarget.contains(m.target), d = Ls[i.dir].includes(m.key);
|
|
1526
1428
|
c && d && (s.onOpenChange(!1), (f = l.trigger) == null || f.focus(), m.preventDefault());
|
|
1527
1429
|
})
|
|
1528
1430
|
}
|
|
1529
1431
|
) }) }) });
|
|
1530
1432
|
}
|
|
1531
1433
|
);
|
|
1532
|
-
|
|
1533
|
-
function
|
|
1434
|
+
br.displayName = wr;
|
|
1435
|
+
function xr(e) {
|
|
1534
1436
|
return e ? "open" : "closed";
|
|
1535
1437
|
}
|
|
1536
|
-
function
|
|
1438
|
+
function mt(e) {
|
|
1537
1439
|
return e === "indeterminate";
|
|
1538
1440
|
}
|
|
1539
|
-
function
|
|
1540
|
-
return
|
|
1441
|
+
function Gt(e) {
|
|
1442
|
+
return mt(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
1541
1443
|
}
|
|
1542
|
-
function
|
|
1444
|
+
function ni(e) {
|
|
1543
1445
|
const t = document.activeElement;
|
|
1544
1446
|
for (const n of e)
|
|
1545
1447
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
1546
1448
|
}
|
|
1547
|
-
function
|
|
1449
|
+
function ri(e, t) {
|
|
1548
1450
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
1549
1451
|
}
|
|
1550
|
-
function
|
|
1452
|
+
function oi(e, t, n) {
|
|
1551
1453
|
const a = t.length > 1 && Array.from(t).every((v) => v === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
1552
|
-
let i =
|
|
1454
|
+
let i = ri(e, Math.max(s, 0));
|
|
1553
1455
|
a.length === 1 && (i = i.filter((v) => v !== n));
|
|
1554
1456
|
const u = i.find(
|
|
1555
1457
|
(v) => v.toLowerCase().startsWith(a.toLowerCase())
|
|
1556
1458
|
);
|
|
1557
1459
|
return u !== n ? u : void 0;
|
|
1558
1460
|
}
|
|
1559
|
-
function
|
|
1461
|
+
function ai(e, t) {
|
|
1560
1462
|
const { x: n, y: r } = e;
|
|
1561
1463
|
let a = !1;
|
|
1562
1464
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
@@ -1565,18 +1467,18 @@ function si(e, t) {
|
|
|
1565
1467
|
}
|
|
1566
1468
|
return a;
|
|
1567
1469
|
}
|
|
1568
|
-
function
|
|
1470
|
+
function si(e, t) {
|
|
1569
1471
|
if (!t) return !1;
|
|
1570
1472
|
const n = { x: e.clientX, y: e.clientY };
|
|
1571
|
-
return
|
|
1473
|
+
return ai(n, t);
|
|
1572
1474
|
}
|
|
1573
|
-
function
|
|
1475
|
+
function Xe(e) {
|
|
1574
1476
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
1575
1477
|
}
|
|
1576
|
-
var li =
|
|
1577
|
-
|
|
1578
|
-
[
|
|
1579
|
-
), W =
|
|
1478
|
+
var ii = er, li = Ut, ci = nr, ui = rr, di = Vt, fi = or, hi = vt, pi = sr, mi = lr, gi = ur, vi = fr, wi = hr, bi = pr, xi = gr, yi = vr, Mi = br, Wt = "DropdownMenu", [Si, Jl] = Nn(
|
|
1479
|
+
Wt,
|
|
1480
|
+
[Xn]
|
|
1481
|
+
), W = Xn(), [Ei, yr] = Si(Wt), Mr = (e) => {
|
|
1580
1482
|
const {
|
|
1581
1483
|
__scopeDropdownMenu: t,
|
|
1582
1484
|
children: n,
|
|
@@ -1585,32 +1487,32 @@ var li = tr, ci = Bt, ui = rr, di = or, fi = Vt, hi = ar, pi = wt, mi = ir, gi =
|
|
|
1585
1487
|
defaultOpen: s,
|
|
1586
1488
|
onOpenChange: i,
|
|
1587
1489
|
modal: l = !0
|
|
1588
|
-
} = e, u = W(t), v = h.useRef(null), [m = !1, c] =
|
|
1490
|
+
} = e, u = W(t), v = h.useRef(null), [m = !1, c] = On({
|
|
1589
1491
|
prop: a,
|
|
1590
1492
|
defaultProp: s,
|
|
1591
1493
|
onChange: i
|
|
1592
1494
|
});
|
|
1593
1495
|
return /* @__PURE__ */ o.jsx(
|
|
1594
|
-
|
|
1496
|
+
Ei,
|
|
1595
1497
|
{
|
|
1596
1498
|
scope: t,
|
|
1597
|
-
triggerId:
|
|
1499
|
+
triggerId: ht(),
|
|
1598
1500
|
triggerRef: v,
|
|
1599
|
-
contentId:
|
|
1501
|
+
contentId: ht(),
|
|
1600
1502
|
open: m,
|
|
1601
1503
|
onOpenChange: c,
|
|
1602
1504
|
onOpenToggle: h.useCallback(() => c((d) => !d), [c]),
|
|
1603
1505
|
modal: l,
|
|
1604
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1506
|
+
children: /* @__PURE__ */ o.jsx(ii, { ...u, open: m, onOpenChange: c, dir: r, modal: l, children: n })
|
|
1605
1507
|
}
|
|
1606
1508
|
);
|
|
1607
1509
|
};
|
|
1608
|
-
|
|
1609
|
-
var
|
|
1510
|
+
Mr.displayName = Wt;
|
|
1511
|
+
var Sr = "DropdownMenuTrigger", Er = h.forwardRef(
|
|
1610
1512
|
(e, t) => {
|
|
1611
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = e, s =
|
|
1612
|
-
return /* @__PURE__ */ o.jsx(
|
|
1613
|
-
|
|
1513
|
+
const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = e, s = yr(Sr, n), i = W(n);
|
|
1514
|
+
return /* @__PURE__ */ o.jsx(li, { asChild: !0, ...i, children: /* @__PURE__ */ o.jsx(
|
|
1515
|
+
He.button,
|
|
1614
1516
|
{
|
|
1615
1517
|
type: "button",
|
|
1616
1518
|
id: s.triggerId,
|
|
@@ -1621,7 +1523,7 @@ var Er = "DropdownMenuTrigger", Cr = h.forwardRef(
|
|
|
1621
1523
|
"data-disabled": r ? "" : void 0,
|
|
1622
1524
|
disabled: r,
|
|
1623
1525
|
...a,
|
|
1624
|
-
ref:
|
|
1526
|
+
ref: Tn(t, s.triggerRef),
|
|
1625
1527
|
onPointerDown: A(e.onPointerDown, (l) => {
|
|
1626
1528
|
!r && l.button === 0 && l.ctrlKey === !1 && (s.onOpenToggle(), s.open || l.preventDefault());
|
|
1627
1529
|
}),
|
|
@@ -1632,17 +1534,17 @@ var Er = "DropdownMenuTrigger", Cr = h.forwardRef(
|
|
|
1632
1534
|
) });
|
|
1633
1535
|
}
|
|
1634
1536
|
);
|
|
1635
|
-
|
|
1636
|
-
var
|
|
1537
|
+
Er.displayName = Sr;
|
|
1538
|
+
var Ci = "DropdownMenuPortal", Cr = (e) => {
|
|
1637
1539
|
const { __scopeDropdownMenu: t, ...n } = e, r = W(t);
|
|
1638
|
-
return /* @__PURE__ */ o.jsx(
|
|
1540
|
+
return /* @__PURE__ */ o.jsx(ci, { ...r, ...n });
|
|
1639
1541
|
};
|
|
1640
|
-
|
|
1641
|
-
var
|
|
1542
|
+
Cr.displayName = Ci;
|
|
1543
|
+
var Rr = "DropdownMenuContent", Dr = h.forwardRef(
|
|
1642
1544
|
(e, t) => {
|
|
1643
|
-
const { __scopeDropdownMenu: n, ...r } = e, a =
|
|
1545
|
+
const { __scopeDropdownMenu: n, ...r } = e, a = yr(Rr, n), s = W(n), i = h.useRef(!1);
|
|
1644
1546
|
return /* @__PURE__ */ o.jsx(
|
|
1645
|
-
|
|
1547
|
+
ui,
|
|
1646
1548
|
{
|
|
1647
1549
|
id: a.contentId,
|
|
1648
1550
|
"aria-labelledby": a.triggerId,
|
|
@@ -1669,76 +1571,76 @@ var Dr = "DropdownMenuContent", jr = h.forwardRef(
|
|
|
1669
1571
|
);
|
|
1670
1572
|
}
|
|
1671
1573
|
);
|
|
1672
|
-
|
|
1673
|
-
var
|
|
1574
|
+
Dr.displayName = Rr;
|
|
1575
|
+
var Ri = "DropdownMenuGroup", Di = h.forwardRef(
|
|
1674
1576
|
(e, t) => {
|
|
1675
1577
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1676
|
-
return /* @__PURE__ */ o.jsx(
|
|
1578
|
+
return /* @__PURE__ */ o.jsx(di, { ...a, ...r, ref: t });
|
|
1677
1579
|
}
|
|
1678
1580
|
);
|
|
1679
|
-
|
|
1680
|
-
var
|
|
1581
|
+
Di.displayName = Ri;
|
|
1582
|
+
var ji = "DropdownMenuLabel", jr = h.forwardRef(
|
|
1681
1583
|
(e, t) => {
|
|
1682
1584
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1683
|
-
return /* @__PURE__ */ o.jsx(
|
|
1585
|
+
return /* @__PURE__ */ o.jsx(fi, { ...a, ...r, ref: t });
|
|
1684
1586
|
}
|
|
1685
1587
|
);
|
|
1686
|
-
|
|
1687
|
-
var
|
|
1588
|
+
jr.displayName = ji;
|
|
1589
|
+
var Ni = "DropdownMenuItem", Nr = h.forwardRef(
|
|
1688
1590
|
(e, t) => {
|
|
1689
1591
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1690
|
-
return /* @__PURE__ */ o.jsx(
|
|
1592
|
+
return /* @__PURE__ */ o.jsx(hi, { ...a, ...r, ref: t });
|
|
1691
1593
|
}
|
|
1692
1594
|
);
|
|
1595
|
+
Nr.displayName = Ni;
|
|
1596
|
+
var Pi = "DropdownMenuCheckboxItem", Pr = h.forwardRef((e, t) => {
|
|
1597
|
+
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1598
|
+
return /* @__PURE__ */ o.jsx(pi, { ...a, ...r, ref: t });
|
|
1599
|
+
});
|
|
1693
1600
|
Pr.displayName = Pi;
|
|
1694
|
-
var Ti = "
|
|
1601
|
+
var Ti = "DropdownMenuRadioGroup", _i = h.forwardRef((e, t) => {
|
|
1695
1602
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1696
1603
|
return /* @__PURE__ */ o.jsx(mi, { ...a, ...r, ref: t });
|
|
1697
1604
|
});
|
|
1698
|
-
|
|
1699
|
-
var
|
|
1605
|
+
_i.displayName = Ti;
|
|
1606
|
+
var Oi = "DropdownMenuRadioItem", Tr = h.forwardRef((e, t) => {
|
|
1700
1607
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1701
1608
|
return /* @__PURE__ */ o.jsx(gi, { ...a, ...r, ref: t });
|
|
1702
1609
|
});
|
|
1703
|
-
|
|
1704
|
-
var Ii = "
|
|
1610
|
+
Tr.displayName = Oi;
|
|
1611
|
+
var Ii = "DropdownMenuItemIndicator", _r = h.forwardRef((e, t) => {
|
|
1705
1612
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1706
1613
|
return /* @__PURE__ */ o.jsx(vi, { ...a, ...r, ref: t });
|
|
1707
1614
|
});
|
|
1708
1615
|
_r.displayName = Ii;
|
|
1709
|
-
var Ai = "
|
|
1616
|
+
var Ai = "DropdownMenuSeparator", Or = h.forwardRef((e, t) => {
|
|
1710
1617
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1711
1618
|
return /* @__PURE__ */ o.jsx(wi, { ...a, ...r, ref: t });
|
|
1712
1619
|
});
|
|
1713
1620
|
Or.displayName = Ai;
|
|
1714
|
-
var ki = "
|
|
1715
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1716
|
-
return /* @__PURE__ */ o.jsx(bi, { ...a, ...r, ref: t });
|
|
1717
|
-
});
|
|
1718
|
-
Ir.displayName = ki;
|
|
1719
|
-
var $i = "DropdownMenuArrow", Li = h.forwardRef(
|
|
1621
|
+
var ki = "DropdownMenuArrow", $i = h.forwardRef(
|
|
1720
1622
|
(e, t) => {
|
|
1721
1623
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1722
|
-
return /* @__PURE__ */ o.jsx(
|
|
1624
|
+
return /* @__PURE__ */ o.jsx(bi, { ...a, ...r, ref: t });
|
|
1723
1625
|
}
|
|
1724
1626
|
);
|
|
1725
|
-
|
|
1726
|
-
var
|
|
1727
|
-
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: a, defaultOpen: s } = e, i = W(t), [l = !1, u] =
|
|
1627
|
+
$i.displayName = ki;
|
|
1628
|
+
var Li = (e) => {
|
|
1629
|
+
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: a, defaultOpen: s } = e, i = W(t), [l = !1, u] = On({
|
|
1728
1630
|
prop: r,
|
|
1729
1631
|
defaultProp: s,
|
|
1730
1632
|
onChange: a
|
|
1731
1633
|
});
|
|
1732
|
-
return /* @__PURE__ */ o.jsx(
|
|
1733
|
-
},
|
|
1634
|
+
return /* @__PURE__ */ o.jsx(xi, { ...i, open: l, onOpenChange: u, children: n });
|
|
1635
|
+
}, Fi = "DropdownMenuSubTrigger", Ir = h.forwardRef((e, t) => {
|
|
1734
1636
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1735
|
-
return /* @__PURE__ */ o.jsx(
|
|
1637
|
+
return /* @__PURE__ */ o.jsx(yi, { ...a, ...r, ref: t });
|
|
1736
1638
|
});
|
|
1737
|
-
|
|
1738
|
-
var
|
|
1639
|
+
Ir.displayName = Fi;
|
|
1640
|
+
var Hi = "DropdownMenuSubContent", Ar = h.forwardRef((e, t) => {
|
|
1739
1641
|
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1740
1642
|
return /* @__PURE__ */ o.jsx(
|
|
1741
|
-
|
|
1643
|
+
Mi,
|
|
1742
1644
|
{
|
|
1743
1645
|
...a,
|
|
1744
1646
|
...r,
|
|
@@ -1754,10 +1656,10 @@ var Ui = "DropdownMenuSubContent", kr = h.forwardRef((e, t) => {
|
|
|
1754
1656
|
}
|
|
1755
1657
|
);
|
|
1756
1658
|
});
|
|
1757
|
-
|
|
1758
|
-
var Bi =
|
|
1759
|
-
const
|
|
1760
|
-
|
|
1659
|
+
Ar.displayName = Hi;
|
|
1660
|
+
var Ui = Mr, Bi = Er, kr = Cr, $r = Dr, Lr = jr, Fr = Nr, Hr = Pr, Ur = Tr, Br = _r, zr = Or, zi = Li, Kr = Ir, Vr = Ar;
|
|
1661
|
+
const Ki = Ui, Vi = Bi, Qi = kr, qi = zi, Qr = h.forwardRef(({ className: e, inset: t, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
|
|
1662
|
+
Kr,
|
|
1761
1663
|
{
|
|
1762
1664
|
ref: a,
|
|
1763
1665
|
className: O(
|
|
@@ -1768,12 +1670,12 @@ const qi = Bi, Vi = zi, Qi = $r, Gi = Ki, Qr = h.forwardRef(({ className: e, ins
|
|
|
1768
1670
|
...r,
|
|
1769
1671
|
children: [
|
|
1770
1672
|
n,
|
|
1771
|
-
/* @__PURE__ */ o.jsx(
|
|
1673
|
+
/* @__PURE__ */ o.jsx(Kn, { className: "ml-auto h-4 w-4" })
|
|
1772
1674
|
]
|
|
1773
1675
|
}
|
|
1774
1676
|
));
|
|
1775
|
-
Qr.displayName =
|
|
1776
|
-
const
|
|
1677
|
+
Qr.displayName = Kr.displayName;
|
|
1678
|
+
const qr = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
1777
1679
|
Vr,
|
|
1778
1680
|
{
|
|
1779
1681
|
ref: n,
|
|
@@ -1784,9 +1686,9 @@ const Gr = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
|
1784
1686
|
...t
|
|
1785
1687
|
}
|
|
1786
1688
|
));
|
|
1787
|
-
|
|
1788
|
-
const
|
|
1789
|
-
|
|
1689
|
+
qr.displayName = Vr.displayName;
|
|
1690
|
+
const Gr = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ o.jsx(kr, { children: /* @__PURE__ */ o.jsx(
|
|
1691
|
+
$r,
|
|
1790
1692
|
{
|
|
1791
1693
|
ref: r,
|
|
1792
1694
|
sideOffset: t,
|
|
@@ -1798,9 +1700,9 @@ const Wr = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
|
|
|
1798
1700
|
...n
|
|
1799
1701
|
}
|
|
1800
1702
|
) }));
|
|
1801
|
-
|
|
1802
|
-
const
|
|
1803
|
-
|
|
1703
|
+
Gr.displayName = $r.displayName;
|
|
1704
|
+
const Wr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ o.jsx(
|
|
1705
|
+
Fr,
|
|
1804
1706
|
{
|
|
1805
1707
|
ref: r,
|
|
1806
1708
|
className: O(
|
|
@@ -1811,9 +1713,9 @@ const Yr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
1811
1713
|
...n
|
|
1812
1714
|
}
|
|
1813
1715
|
));
|
|
1814
|
-
|
|
1815
|
-
const
|
|
1816
|
-
|
|
1716
|
+
Wr.displayName = Fr.displayName;
|
|
1717
|
+
const Gi = h.forwardRef(({ className: e, children: t, checked: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
|
|
1718
|
+
Hr,
|
|
1817
1719
|
{
|
|
1818
1720
|
ref: a,
|
|
1819
1721
|
className: O(
|
|
@@ -1823,14 +1725,14 @@ const Wi = h.forwardRef(({ className: e, children: t, checked: n, ...r }, a) =>
|
|
|
1823
1725
|
checked: n,
|
|
1824
1726
|
...r,
|
|
1825
1727
|
children: [
|
|
1826
|
-
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(
|
|
1728
|
+
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Br, { children: /* @__PURE__ */ o.jsx(Oa, { className: "h-4 w-4" }) }) }),
|
|
1827
1729
|
t
|
|
1828
1730
|
]
|
|
1829
1731
|
}
|
|
1830
1732
|
));
|
|
1831
|
-
|
|
1832
|
-
const
|
|
1833
|
-
|
|
1733
|
+
Gi.displayName = Hr.displayName;
|
|
1734
|
+
const Wi = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ o.jsxs(
|
|
1735
|
+
Ur,
|
|
1834
1736
|
{
|
|
1835
1737
|
ref: r,
|
|
1836
1738
|
className: O(
|
|
@@ -1839,14 +1741,14 @@ const Yi = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
1839
1741
|
),
|
|
1840
1742
|
...n,
|
|
1841
1743
|
children: [
|
|
1842
|
-
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(
|
|
1744
|
+
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Br, { children: /* @__PURE__ */ o.jsx(Ia, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1843
1745
|
t
|
|
1844
1746
|
]
|
|
1845
1747
|
}
|
|
1846
1748
|
));
|
|
1847
|
-
|
|
1848
|
-
const
|
|
1849
|
-
|
|
1749
|
+
Wi.displayName = Ur.displayName;
|
|
1750
|
+
const Yr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ o.jsx(
|
|
1751
|
+
Lr,
|
|
1850
1752
|
{
|
|
1851
1753
|
ref: r,
|
|
1852
1754
|
className: O(
|
|
@@ -1857,30 +1759,30 @@ const Xr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
1857
1759
|
...n
|
|
1858
1760
|
}
|
|
1859
1761
|
));
|
|
1860
|
-
|
|
1861
|
-
const
|
|
1862
|
-
|
|
1762
|
+
Yr.displayName = Lr.displayName;
|
|
1763
|
+
const Xr = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
1764
|
+
zr,
|
|
1863
1765
|
{
|
|
1864
1766
|
ref: n,
|
|
1865
1767
|
className: O("-mx-1 my-1 h-px bg-muted", e),
|
|
1866
1768
|
...t
|
|
1867
1769
|
}
|
|
1868
1770
|
));
|
|
1869
|
-
|
|
1870
|
-
const
|
|
1771
|
+
Xr.displayName = zr.displayName;
|
|
1772
|
+
const Yi = {
|
|
1871
1773
|
info: "bg-blue-500",
|
|
1872
1774
|
note: "bg-gray-500",
|
|
1873
1775
|
tip: "bg-green-600",
|
|
1874
1776
|
caution: "bg-orange-500",
|
|
1875
1777
|
danger: "bg-rose-500"
|
|
1876
|
-
},
|
|
1877
|
-
const { page: e } =
|
|
1778
|
+
}, Xi = () => {
|
|
1779
|
+
const { page: e } = Ue(), [t, n] = Te(!0);
|
|
1878
1780
|
return !(e != null && e.banner) || !t ? /* @__PURE__ */ o.jsx("style", { children: ":root { --banner-height: 0px; }" }) : /* @__PURE__ */ o.jsxs(
|
|
1879
1781
|
"div",
|
|
1880
1782
|
{
|
|
1881
1783
|
className: O(
|
|
1882
1784
|
"relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
|
|
1883
|
-
e.banner.color ?
|
|
1785
|
+
e.banner.color ? Yi[e.banner.color] : "bg-primary"
|
|
1884
1786
|
),
|
|
1885
1787
|
children: [
|
|
1886
1788
|
/* @__PURE__ */ o.jsx("div", { className: "w-full", children: e.banner.message }),
|
|
@@ -1890,19 +1792,19 @@ const Xi = {
|
|
|
1890
1792
|
type: "button",
|
|
1891
1793
|
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
1892
1794
|
onClick: () => n(!1),
|
|
1893
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1795
|
+
children: /* @__PURE__ */ o.jsx(Aa, { size: 16 })
|
|
1894
1796
|
}
|
|
1895
1797
|
)
|
|
1896
1798
|
]
|
|
1897
1799
|
}
|
|
1898
1800
|
);
|
|
1899
1801
|
};
|
|
1900
|
-
function
|
|
1802
|
+
function Ji(e) {
|
|
1901
1803
|
if (typeof document > "u") return;
|
|
1902
1804
|
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
|
|
1903
1805
|
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
|
|
1904
1806
|
}
|
|
1905
|
-
const
|
|
1807
|
+
const Jr = g.createContext({
|
|
1906
1808
|
drawerRef: {
|
|
1907
1809
|
current: null
|
|
1908
1810
|
},
|
|
@@ -1946,47 +1848,47 @@ const Zr = g.createContext({
|
|
|
1946
1848
|
setVisible: () => {
|
|
1947
1849
|
},
|
|
1948
1850
|
direction: "bottom"
|
|
1949
|
-
}),
|
|
1950
|
-
const e = g.useContext(
|
|
1851
|
+
}), wt = () => {
|
|
1852
|
+
const e = g.useContext(Jr);
|
|
1951
1853
|
if (!e)
|
|
1952
1854
|
throw new Error("useDrawerContext must be used within a Drawer.Root");
|
|
1953
1855
|
return e;
|
|
1954
1856
|
};
|
|
1955
|
-
|
|
1956
|
-
const
|
|
1957
|
-
function
|
|
1857
|
+
Ji("[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%}}");
|
|
1858
|
+
const Zr = typeof window < "u" ? pa : be;
|
|
1859
|
+
function Nt(...e) {
|
|
1958
1860
|
return (...t) => {
|
|
1959
1861
|
for (let n of e)
|
|
1960
1862
|
typeof n == "function" && n(...t);
|
|
1961
1863
|
};
|
|
1962
1864
|
}
|
|
1865
|
+
function Zi() {
|
|
1866
|
+
return Yt(/^Mac/);
|
|
1867
|
+
}
|
|
1963
1868
|
function el() {
|
|
1964
|
-
return
|
|
1869
|
+
return Yt(/^iPhone/);
|
|
1965
1870
|
}
|
|
1966
1871
|
function tl() {
|
|
1967
|
-
return
|
|
1968
|
-
|
|
1969
|
-
function nl() {
|
|
1970
|
-
return Xt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
1971
|
-
el() && navigator.maxTouchPoints > 1;
|
|
1872
|
+
return Yt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
1873
|
+
Zi() && navigator.maxTouchPoints > 1;
|
|
1972
1874
|
}
|
|
1973
|
-
function
|
|
1974
|
-
return
|
|
1875
|
+
function eo() {
|
|
1876
|
+
return el() || tl();
|
|
1975
1877
|
}
|
|
1976
|
-
function
|
|
1878
|
+
function Yt(e) {
|
|
1977
1879
|
return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
|
|
1978
1880
|
}
|
|
1979
|
-
const
|
|
1980
|
-
function
|
|
1881
|
+
const St = typeof document < "u" && window.visualViewport;
|
|
1882
|
+
function bn(e) {
|
|
1981
1883
|
let t = window.getComputedStyle(e);
|
|
1982
1884
|
return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
|
|
1983
1885
|
}
|
|
1984
|
-
function
|
|
1985
|
-
for (
|
|
1886
|
+
function to(e) {
|
|
1887
|
+
for (bn(e) && (e = e.parentElement); e && !bn(e); )
|
|
1986
1888
|
e = e.parentElement;
|
|
1987
1889
|
return e || document.scrollingElement || document.documentElement;
|
|
1988
1890
|
}
|
|
1989
|
-
const
|
|
1891
|
+
const nl = /* @__PURE__ */ new Set([
|
|
1990
1892
|
"checkbox",
|
|
1991
1893
|
"radio",
|
|
1992
1894
|
"range",
|
|
@@ -1997,24 +1899,24 @@ const rl = /* @__PURE__ */ new Set([
|
|
|
1997
1899
|
"submit",
|
|
1998
1900
|
"reset"
|
|
1999
1901
|
]);
|
|
2000
|
-
let
|
|
2001
|
-
function
|
|
1902
|
+
let ut = 0, Et;
|
|
1903
|
+
function rl(e = {}) {
|
|
2002
1904
|
let { isDisabled: t } = e;
|
|
2003
|
-
|
|
1905
|
+
Zr(() => {
|
|
2004
1906
|
if (!t)
|
|
2005
|
-
return
|
|
2006
|
-
|
|
1907
|
+
return ut++, ut === 1 && (eo() ? Et = al() : Et = ol()), () => {
|
|
1908
|
+
ut--, ut === 0 && Et();
|
|
2007
1909
|
};
|
|
2008
1910
|
}, [
|
|
2009
1911
|
t
|
|
2010
1912
|
]);
|
|
2011
1913
|
}
|
|
2012
|
-
function
|
|
2013
|
-
return
|
|
1914
|
+
function ol() {
|
|
1915
|
+
return Nt(no(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
|
|
2014
1916
|
}
|
|
2015
|
-
function
|
|
1917
|
+
function al() {
|
|
2016
1918
|
let e, t = 0, n = (c) => {
|
|
2017
|
-
e =
|
|
1919
|
+
e = to(c.target), !(e === document.documentElement && e === document.body) && (t = c.changedTouches[0].pageY);
|
|
2018
1920
|
}, r = (c) => {
|
|
2019
1921
|
if (!e || e === document.documentElement || e === document.body) {
|
|
2020
1922
|
c.preventDefault();
|
|
@@ -2024,23 +1926,23 @@ function sl() {
|
|
|
2024
1926
|
y !== 0 && ((f <= 0 && d > t || f >= y && d < t) && c.preventDefault(), t = d);
|
|
2025
1927
|
}, a = (c) => {
|
|
2026
1928
|
let d = c.target;
|
|
2027
|
-
|
|
1929
|
+
Pt(d) && d !== document.activeElement && (c.preventDefault(), d.style.transform = "translateY(-2000px)", d.focus(), requestAnimationFrame(() => {
|
|
2028
1930
|
d.style.transform = "";
|
|
2029
1931
|
}));
|
|
2030
1932
|
}, s = (c) => {
|
|
2031
1933
|
let d = c.target;
|
|
2032
|
-
|
|
2033
|
-
d.style.transform = "",
|
|
2034
|
-
|
|
2035
|
-
}) :
|
|
1934
|
+
Pt(d) && (d.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
|
|
1935
|
+
d.style.transform = "", St && (St.height < window.innerHeight ? requestAnimationFrame(() => {
|
|
1936
|
+
xn(d);
|
|
1937
|
+
}) : St.addEventListener("resize", () => xn(d), {
|
|
2036
1938
|
once: !0
|
|
2037
1939
|
}));
|
|
2038
1940
|
}));
|
|
2039
1941
|
}, i = () => {
|
|
2040
1942
|
window.scrollTo(0, 0);
|
|
2041
|
-
}, l = window.pageXOffset, u = window.pageYOffset, v =
|
|
1943
|
+
}, l = window.pageXOffset, u = window.pageYOffset, v = Nt(no(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
|
|
2042
1944
|
window.scrollTo(0, 0);
|
|
2043
|
-
let m =
|
|
1945
|
+
let m = Nt(Ve(document, "touchstart", n, {
|
|
2044
1946
|
passive: !1,
|
|
2045
1947
|
capture: !0
|
|
2046
1948
|
}), Ve(document, "touchmove", r, {
|
|
@@ -2054,7 +1956,7 @@ function sl() {
|
|
|
2054
1956
|
v(), m(), window.scrollTo(l, u);
|
|
2055
1957
|
};
|
|
2056
1958
|
}
|
|
2057
|
-
function
|
|
1959
|
+
function no(e, t, n) {
|
|
2058
1960
|
let r = e.style[t];
|
|
2059
1961
|
return e.style[t] = n, () => {
|
|
2060
1962
|
e.style[t] = r;
|
|
@@ -2065,10 +1967,10 @@ function Ve(e, t, n, r) {
|
|
|
2065
1967
|
e.removeEventListener(t, n, r);
|
|
2066
1968
|
};
|
|
2067
1969
|
}
|
|
2068
|
-
function
|
|
1970
|
+
function xn(e) {
|
|
2069
1971
|
let t = document.scrollingElement || document.documentElement;
|
|
2070
1972
|
for (; e && e !== t; ) {
|
|
2071
|
-
let n =
|
|
1973
|
+
let n = to(e);
|
|
2072
1974
|
if (n !== document.documentElement && n !== document.body && n !== e) {
|
|
2073
1975
|
let r = n.getBoundingClientRect().top, a = e.getBoundingClientRect().top, s = e.getBoundingClientRect().bottom;
|
|
2074
1976
|
const i = n.getBoundingClientRect().bottom;
|
|
@@ -2077,20 +1979,20 @@ function yn(e) {
|
|
|
2077
1979
|
e = n.parentElement;
|
|
2078
1980
|
}
|
|
2079
1981
|
}
|
|
2080
|
-
function
|
|
2081
|
-
return e instanceof HTMLInputElement && !
|
|
1982
|
+
function Pt(e) {
|
|
1983
|
+
return e instanceof HTMLInputElement && !nl.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
|
|
2082
1984
|
}
|
|
2083
|
-
function
|
|
1985
|
+
function sl(e, t) {
|
|
2084
1986
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
2085
1987
|
}
|
|
2086
|
-
function
|
|
2087
|
-
return (t) => e.forEach((n) =>
|
|
1988
|
+
function il(...e) {
|
|
1989
|
+
return (t) => e.forEach((n) => sl(n, t));
|
|
2088
1990
|
}
|
|
2089
|
-
function
|
|
2090
|
-
return h.useCallback(
|
|
1991
|
+
function ro(...e) {
|
|
1992
|
+
return h.useCallback(il(...e), e);
|
|
2091
1993
|
}
|
|
2092
1994
|
let Qe = null;
|
|
2093
|
-
function
|
|
1995
|
+
function ll({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: a, noBodyStyles: s }) {
|
|
2094
1996
|
const [i, l] = g.useState(() => typeof window < "u" ? window.location.href : ""), u = g.useRef(0), v = g.useCallback(() => {
|
|
2095
1997
|
if (Qe === null && e && !s) {
|
|
2096
1998
|
Qe = {
|
|
@@ -2150,7 +2052,7 @@ function cl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
|
|
|
2150
2052
|
restorePositionSetting: m
|
|
2151
2053
|
};
|
|
2152
2054
|
}
|
|
2153
|
-
const
|
|
2055
|
+
const oo = /* @__PURE__ */ new WeakMap();
|
|
2154
2056
|
function I(e, t, n = !1) {
|
|
2155
2057
|
if (!e || !(e instanceof HTMLElement)) return;
|
|
2156
2058
|
let r = {};
|
|
@@ -2160,11 +2062,11 @@ function I(e, t, n = !1) {
|
|
|
2160
2062
|
return;
|
|
2161
2063
|
}
|
|
2162
2064
|
r[a] = e.style[a], e.style[a] = s;
|
|
2163
|
-
}), !n &&
|
|
2065
|
+
}), !n && oo.set(e, r);
|
|
2164
2066
|
}
|
|
2165
|
-
function
|
|
2067
|
+
function dt(e, t) {
|
|
2166
2068
|
if (!e || !(e instanceof HTMLElement)) return;
|
|
2167
|
-
let n =
|
|
2069
|
+
let n = oo.get(e);
|
|
2168
2070
|
n && (t ? e.style[t] = n[t] : Object.entries(n).forEach(([r, a]) => {
|
|
2169
2071
|
e.style[r] = a;
|
|
2170
2072
|
}));
|
|
@@ -2181,7 +2083,7 @@ const z = (e) => {
|
|
|
2181
2083
|
return e;
|
|
2182
2084
|
}
|
|
2183
2085
|
};
|
|
2184
|
-
function
|
|
2086
|
+
function ft(e, t) {
|
|
2185
2087
|
if (!e)
|
|
2186
2088
|
return null;
|
|
2187
2089
|
const n = window.getComputedStyle(e), r = (
|
|
@@ -2191,7 +2093,7 @@ function ht(e, t) {
|
|
|
2191
2093
|
let a = r.match(/^matrix3d\((.+)\)$/);
|
|
2192
2094
|
return a ? parseFloat(a[1].split(", ")[z(t) ? 13 : 12]) : (a = r.match(/^matrix\((.+)\)$/), a ? parseFloat(a[1].split(", ")[z(t) ? 5 : 4]) : null);
|
|
2193
2095
|
}
|
|
2194
|
-
function
|
|
2096
|
+
function cl(e) {
|
|
2195
2097
|
return 8 * (Math.log(e + 1) - 2);
|
|
2196
2098
|
}
|
|
2197
2099
|
const T = {
|
|
@@ -2202,15 +2104,15 @@ const T = {
|
|
|
2202
2104
|
0,
|
|
2203
2105
|
1
|
|
2204
2106
|
]
|
|
2205
|
-
},
|
|
2206
|
-
function
|
|
2107
|
+
}, ao = 0.4;
|
|
2108
|
+
function so(e) {
|
|
2207
2109
|
const t = g.useRef(e);
|
|
2208
2110
|
return g.useEffect(() => {
|
|
2209
2111
|
t.current = e;
|
|
2210
2112
|
}), g.useMemo(() => (...n) => t.current == null ? void 0 : t.current.call(t, ...n), []);
|
|
2211
2113
|
}
|
|
2212
|
-
function
|
|
2213
|
-
const n = g.useState(e), [r] = n, a = g.useRef(r), s =
|
|
2114
|
+
function ul({ defaultProp: e, onChange: t }) {
|
|
2115
|
+
const n = g.useState(e), [r] = n, a = g.useRef(r), s = so(t);
|
|
2214
2116
|
return g.useEffect(() => {
|
|
2215
2117
|
a.current !== r && (s(r), a.current = r);
|
|
2216
2118
|
}, [
|
|
@@ -2219,12 +2121,12 @@ function dl({ defaultProp: e, onChange: t }) {
|
|
|
2219
2121
|
s
|
|
2220
2122
|
]), n;
|
|
2221
2123
|
}
|
|
2222
|
-
function
|
|
2124
|
+
function dl({ prop: e, defaultProp: t, onChange: n = () => {
|
|
2223
2125
|
} }) {
|
|
2224
|
-
const [r, a] =
|
|
2126
|
+
const [r, a] = ul({
|
|
2225
2127
|
defaultProp: t,
|
|
2226
2128
|
onChange: n
|
|
2227
|
-
}), s = e !== void 0, i = s ? e : r, l =
|
|
2129
|
+
}), s = e !== void 0, i = s ? e : r, l = so(n), u = g.useCallback((v) => {
|
|
2228
2130
|
if (s) {
|
|
2229
2131
|
const c = typeof v == "function" ? v(e) : v;
|
|
2230
2132
|
c !== e && l(c);
|
|
@@ -2241,8 +2143,8 @@ function fl({ prop: e, defaultProp: t, onChange: n = () => {
|
|
|
2241
2143
|
u
|
|
2242
2144
|
];
|
|
2243
2145
|
}
|
|
2244
|
-
function
|
|
2245
|
-
const [u, v] =
|
|
2146
|
+
function fl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: a, fadeFromIndex: s, onSnapPointChange: i, direction: l = "bottom" }) {
|
|
2147
|
+
const [u, v] = dl({
|
|
2246
2148
|
prop: e,
|
|
2247
2149
|
defaultProp: n == null ? void 0 : n[0],
|
|
2248
2150
|
onChange: t
|
|
@@ -2316,15 +2218,15 @@ function hl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
2316
2218
|
R(f[n.length - 1]);
|
|
2317
2219
|
return;
|
|
2318
2220
|
}
|
|
2319
|
-
const te = f == null ? void 0 : f.reduce((
|
|
2320
|
-
if (C >
|
|
2321
|
-
const
|
|
2322
|
-
if (
|
|
2221
|
+
const te = f == null ? void 0 : f.reduce((V, X) => typeof V != "number" || typeof X != "number" ? V : Math.abs(X - P) < Math.abs(V - P) ? X : V), Q = z(l) ? window.innerHeight : window.innerWidth;
|
|
2222
|
+
if (C > ao && Math.abs(x) < Q * 0.4) {
|
|
2223
|
+
const V = L ? 1 : -1;
|
|
2224
|
+
if (V > 0 && m) {
|
|
2323
2225
|
R(f[n.length - 1]);
|
|
2324
2226
|
return;
|
|
2325
2227
|
}
|
|
2326
|
-
if (w &&
|
|
2327
|
-
R(f[d +
|
|
2228
|
+
if (w && V < 0 && N && p(), d === null) return;
|
|
2229
|
+
R(f[d + V]);
|
|
2328
2230
|
return;
|
|
2329
2231
|
}
|
|
2330
2232
|
R(te);
|
|
@@ -2336,7 +2238,7 @@ function hl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
2336
2238
|
transform: z(l) ? `translate3d(0, ${p}px, 0)` : `translate3d(${p}px, 0, 0)`
|
|
2337
2239
|
});
|
|
2338
2240
|
}
|
|
2339
|
-
function
|
|
2241
|
+
function q(x, p) {
|
|
2340
2242
|
if (!n || typeof d != "number" || !f || s === void 0) return null;
|
|
2341
2243
|
const C = d === s - 1;
|
|
2342
2244
|
if (d >= s && p)
|
|
@@ -2350,7 +2252,7 @@ function hl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
2350
2252
|
isLastSnapPoint: m,
|
|
2351
2253
|
activeSnapPoint: u,
|
|
2352
2254
|
shouldFade: c,
|
|
2353
|
-
getPercentageDragged:
|
|
2255
|
+
getPercentageDragged: q,
|
|
2354
2256
|
setActiveSnapPoint: v,
|
|
2355
2257
|
activeSnapPointIndex: d,
|
|
2356
2258
|
onRelease: K,
|
|
@@ -2358,25 +2260,25 @@ function hl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
2358
2260
|
snapPointsOffset: f
|
|
2359
2261
|
};
|
|
2360
2262
|
}
|
|
2361
|
-
const
|
|
2362
|
-
function
|
|
2263
|
+
const hl = 0.25, pl = 100, yn = 8, Ne = 16, Mn = 26, Ct = "vaul-dragging";
|
|
2264
|
+
function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, onDrag: a, onRelease: s, snapPoints: i, nested: l = !1, setBackgroundColorOnScale: u = !0, closeThreshold: v = hl, scrollLockTimeout: m = pl, dismissible: c = !0, handleOnly: d = !1, fadeFromIndex: f = i && i.length - 1, activeSnapPoint: y, setActiveSnapPoint: R, fixed: K, modal: H = !0, onClose: q, noBodyStyles: x, direction: p = "bottom", preventScrollRestoration: C = !0, disablePreventScroll: N = !1 }) {
|
|
2363
2265
|
var P;
|
|
2364
|
-
const [_ = !1, w] = g.useState(!1), [L, te] = g.useState(!1), [
|
|
2365
|
-
i && S ===
|
|
2366
|
-
}, []), { activeSnapPoint:
|
|
2266
|
+
const [_ = !1, w] = g.useState(!1), [L, te] = g.useState(!1), [Q, V] = g.useState(!1), [X, Oe] = g.useState(!1), [he, Be] = g.useState(!1), [xe, E] = g.useState(!1), U = g.useRef(null), Y = g.useRef(null), ne = g.useRef(null), De = g.useRef(null), pe = g.useRef(null), ye = g.useRef(!1), me = g.useRef(null), le = g.useRef(0), ge = g.useRef(!1), re = g.useRef(0), M = g.useRef(null), en = g.useRef(((P = M.current) == null ? void 0 : P.getBoundingClientRect().height) || 0), bt = g.useRef(0), xo = g.useCallback((S) => {
|
|
2267
|
+
i && S === Ke.length - 1 && (Y.current = /* @__PURE__ */ new Date());
|
|
2268
|
+
}, []), { activeSnapPoint: yo, activeSnapPointIndex: ze, setActiveSnapPoint: tn, onRelease: Mo, snapPointsOffset: Ke, onDrag: So, shouldFade: nn, getPercentageDragged: Eo } = fl({
|
|
2367
2269
|
snapPoints: i,
|
|
2368
2270
|
activeSnapPointProp: y,
|
|
2369
2271
|
setActiveSnapPointProp: R,
|
|
2370
2272
|
drawerRef: M,
|
|
2371
2273
|
fadeFromIndex: f,
|
|
2372
2274
|
overlayRef: U,
|
|
2373
|
-
onSnapPointChange:
|
|
2275
|
+
onSnapPointChange: xo,
|
|
2374
2276
|
direction: p
|
|
2375
2277
|
});
|
|
2376
|
-
|
|
2377
|
-
isDisabled: !_ || he || !H ||
|
|
2278
|
+
rl({
|
|
2279
|
+
isDisabled: !_ || he || !H || xe || !L || N
|
|
2378
2280
|
});
|
|
2379
|
-
const { restorePositionSetting:
|
|
2281
|
+
const { restorePositionSetting: Co } = ll({
|
|
2380
2282
|
isOpen: _,
|
|
2381
2283
|
modal: H,
|
|
2382
2284
|
nested: l,
|
|
@@ -2384,19 +2286,19 @@ function lo({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2384
2286
|
preventScrollRestoration: C,
|
|
2385
2287
|
noBodyStyles: x
|
|
2386
2288
|
});
|
|
2387
|
-
function
|
|
2388
|
-
return (window.innerWidth -
|
|
2289
|
+
function Ie() {
|
|
2290
|
+
return (window.innerWidth - Mn) / window.innerWidth;
|
|
2389
2291
|
}
|
|
2390
|
-
function
|
|
2292
|
+
function Ro(S) {
|
|
2391
2293
|
var D;
|
|
2392
|
-
!c && !i || M.current && !M.current.contains(S.target) || (
|
|
2294
|
+
!c && !i || M.current && !M.current.contains(S.target) || (en.current = ((D = M.current) == null ? void 0 : D.getBoundingClientRect().height) || 0, Be(!0), ne.current = /* @__PURE__ */ new Date(), eo() && window.addEventListener("touchend", () => ye.current = !1, {
|
|
2393
2295
|
once: !0
|
|
2394
2296
|
}), S.target.setPointerCapture(S.pointerId), le.current = z(p) ? S.clientY : S.clientX);
|
|
2395
2297
|
}
|
|
2396
|
-
function
|
|
2298
|
+
function rn(S, D) {
|
|
2397
2299
|
var k;
|
|
2398
2300
|
let j = S;
|
|
2399
|
-
const F = (k = window.getSelection()) == null ? void 0 : k.toString(), B = M.current ?
|
|
2301
|
+
const F = (k = window.getSelection()) == null ? void 0 : k.toString(), B = M.current ? ft(M.current, p) : null, oe = /* @__PURE__ */ new Date();
|
|
2400
2302
|
if (j.hasAttribute("data-vaul-no-drag") || j.closest("[data-vaul-no-drag]"))
|
|
2401
2303
|
return !1;
|
|
2402
2304
|
if (p === "right" || p === "left")
|
|
@@ -2420,71 +2322,71 @@ function lo({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2420
2322
|
}
|
|
2421
2323
|
return !0;
|
|
2422
2324
|
}
|
|
2423
|
-
function
|
|
2325
|
+
function Do(S) {
|
|
2424
2326
|
if (M.current && he) {
|
|
2425
2327
|
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;
|
|
2426
|
-
if (F &&
|
|
2328
|
+
if (F && ze === 0) return;
|
|
2427
2329
|
const B = Math.abs(k), oe = document.querySelector("[vaul-drawer-wrapper]");
|
|
2428
|
-
let ce = B /
|
|
2429
|
-
const
|
|
2430
|
-
if (
|
|
2431
|
-
if (M.current.classList.add(
|
|
2330
|
+
let ce = B / en.current;
|
|
2331
|
+
const Me = Eo(B, j);
|
|
2332
|
+
if (Me !== null && (ce = Me), F && ce >= 1 || !ye.current && !rn(S.target, j)) return;
|
|
2333
|
+
if (M.current.classList.add(Ct), ye.current = !0, I(M.current, {
|
|
2432
2334
|
transition: "none"
|
|
2433
2335
|
}), I(U.current, {
|
|
2434
2336
|
transition: "none"
|
|
2435
|
-
}), i &&
|
|
2337
|
+
}), i && So({
|
|
2436
2338
|
draggedDistance: k
|
|
2437
2339
|
}), j && !i) {
|
|
2438
|
-
const
|
|
2340
|
+
const je = cl(k), st = Math.min(je * -1, 0) * D;
|
|
2439
2341
|
I(M.current, {
|
|
2440
|
-
transform: z(p) ? `translate3d(0, ${
|
|
2342
|
+
transform: z(p) ? `translate3d(0, ${st}px, 0)` : `translate3d(${st}px, 0, 0)`
|
|
2441
2343
|
});
|
|
2442
2344
|
return;
|
|
2443
2345
|
}
|
|
2444
|
-
const
|
|
2445
|
-
if ((
|
|
2446
|
-
opacity: `${
|
|
2346
|
+
const at = 1 - ce;
|
|
2347
|
+
if ((nn || f && ze === f - 1) && (a == null || a(S, ce), I(U.current, {
|
|
2348
|
+
opacity: `${at}`,
|
|
2447
2349
|
transition: "none"
|
|
2448
2350
|
}, !0)), oe && U.current && r) {
|
|
2449
|
-
const
|
|
2351
|
+
const je = Math.min(Ie() + ce * (1 - Ie()), 1), st = 8 - ce * 8, an = Math.max(0, 14 - ce * 14);
|
|
2450
2352
|
I(oe, {
|
|
2451
|
-
borderRadius: `${
|
|
2452
|
-
transform: z(p) ? `scale(${
|
|
2353
|
+
borderRadius: `${st}px`,
|
|
2354
|
+
transform: z(p) ? `scale(${je}) translate3d(0, ${an}px, 0)` : `scale(${je}) translate3d(${an}px, 0, 0)`,
|
|
2453
2355
|
transition: "none"
|
|
2454
2356
|
}, !0);
|
|
2455
2357
|
}
|
|
2456
2358
|
if (!i) {
|
|
2457
|
-
const
|
|
2359
|
+
const je = B * D;
|
|
2458
2360
|
I(M.current, {
|
|
2459
|
-
transform: z(p) ? `translate3d(0, ${
|
|
2361
|
+
transform: z(p) ? `translate3d(0, ${je}px, 0)` : `translate3d(${je}px, 0, 0)`
|
|
2460
2362
|
});
|
|
2461
2363
|
}
|
|
2462
2364
|
}
|
|
2463
2365
|
}
|
|
2464
2366
|
g.useEffect(() => () => {
|
|
2465
|
-
|
|
2367
|
+
ot(!1), Co();
|
|
2466
2368
|
}, []), g.useEffect(() => {
|
|
2467
2369
|
var S;
|
|
2468
2370
|
function D() {
|
|
2469
2371
|
if (!M.current) return;
|
|
2470
2372
|
const k = document.activeElement;
|
|
2471
|
-
if (
|
|
2373
|
+
if (Pt(k) || ge.current) {
|
|
2472
2374
|
var j;
|
|
2473
2375
|
const F = ((j = window.visualViewport) == null ? void 0 : j.height) || 0;
|
|
2474
2376
|
let B = window.innerHeight - F;
|
|
2475
2377
|
const oe = M.current.getBoundingClientRect().height || 0;
|
|
2476
|
-
|
|
2378
|
+
bt.current || (bt.current = oe);
|
|
2477
2379
|
const ce = M.current.getBoundingClientRect().top;
|
|
2478
|
-
if (Math.abs(re.current - B) > 60 && (ge.current = !ge.current), i && i.length > 0 &&
|
|
2479
|
-
const
|
|
2480
|
-
B +=
|
|
2380
|
+
if (Math.abs(re.current - B) > 60 && (ge.current = !ge.current), i && i.length > 0 && Ke && ze) {
|
|
2381
|
+
const Me = Ke[ze] || 0;
|
|
2382
|
+
B += Me;
|
|
2481
2383
|
}
|
|
2482
2384
|
if (re.current = B, oe > F || ge.current) {
|
|
2483
|
-
const
|
|
2484
|
-
let
|
|
2485
|
-
|
|
2385
|
+
const Me = M.current.getBoundingClientRect().height;
|
|
2386
|
+
let at = Me;
|
|
2387
|
+
Me > F && (at = F - Mn), K ? M.current.style.height = `${Me - Math.max(B, 0)}px` : M.current.style.height = `${Math.max(at, F - ce)}px`;
|
|
2486
2388
|
} else
|
|
2487
|
-
M.current.style.height = `${
|
|
2389
|
+
M.current.style.height = `${bt.current}px`;
|
|
2488
2390
|
i && i.length > 0 && !ge.current ? M.current.style.bottom = "0px" : M.current.style.bottom = `${Math.max(B, 0)}px`;
|
|
2489
2391
|
}
|
|
2490
2392
|
}
|
|
@@ -2493,35 +2395,35 @@ function lo({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2493
2395
|
return (k = window.visualViewport) == null ? void 0 : k.removeEventListener("resize", D);
|
|
2494
2396
|
};
|
|
2495
2397
|
}, [
|
|
2496
|
-
|
|
2398
|
+
ze,
|
|
2497
2399
|
i,
|
|
2498
|
-
|
|
2400
|
+
Ke
|
|
2499
2401
|
]);
|
|
2500
|
-
function
|
|
2501
|
-
M.current && (
|
|
2402
|
+
function Ae() {
|
|
2403
|
+
M.current && (jo(), q == null || q(), I(M.current, {
|
|
2502
2404
|
transform: z(p) ? `translate3d(0, ${p === "bottom" ? "100%" : "-100%"}, 0)` : `translate3d(${p === "right" ? "100%" : "-100%"}, 0, 0)`,
|
|
2503
2405
|
transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`
|
|
2504
2406
|
}), I(U.current, {
|
|
2505
2407
|
opacity: "0",
|
|
2506
2408
|
transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`
|
|
2507
|
-
}),
|
|
2508
|
-
|
|
2409
|
+
}), ot(!1), setTimeout(() => {
|
|
2410
|
+
V(!1), w(!1);
|
|
2509
2411
|
}, 300), setTimeout(() => {
|
|
2510
|
-
i &&
|
|
2412
|
+
i && tn(i[0]);
|
|
2511
2413
|
}, T.DURATION * 1e3));
|
|
2512
2414
|
}
|
|
2513
2415
|
g.useEffect(() => {
|
|
2514
2416
|
if (!_ && r) {
|
|
2515
2417
|
const S = setTimeout(() => {
|
|
2516
|
-
|
|
2418
|
+
dt(document.body);
|
|
2517
2419
|
}, 200);
|
|
2518
2420
|
return () => clearTimeout(S);
|
|
2519
2421
|
}
|
|
2520
2422
|
}, [
|
|
2521
2423
|
_,
|
|
2522
2424
|
r
|
|
2523
|
-
]),
|
|
2524
|
-
e ? (w(!0), te(!0)) :
|
|
2425
|
+
]), Zr(() => {
|
|
2426
|
+
e ? (w(!0), te(!0)) : Ae();
|
|
2525
2427
|
}, [
|
|
2526
2428
|
e
|
|
2527
2429
|
]), g.useEffect(() => {
|
|
@@ -2529,11 +2431,11 @@ function lo({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2529
2431
|
}, [
|
|
2530
2432
|
_
|
|
2531
2433
|
]), g.useEffect(() => {
|
|
2532
|
-
|
|
2434
|
+
Oe(!0);
|
|
2533
2435
|
}, []);
|
|
2534
|
-
function
|
|
2436
|
+
function on() {
|
|
2535
2437
|
if (!M.current) return;
|
|
2536
|
-
const S = document.querySelector("[vaul-drawer-wrapper]"), D =
|
|
2438
|
+
const S = document.querySelector("[vaul-drawer-wrapper]"), D = ft(M.current, p);
|
|
2537
2439
|
I(M.current, {
|
|
2538
2440
|
transform: "translate3d(0, 0, 0)",
|
|
2539
2441
|
transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`
|
|
@@ -2541,13 +2443,13 @@ function lo({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2541
2443
|
transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
|
|
2542
2444
|
opacity: "1"
|
|
2543
2445
|
}), r && D && D > 0 && _ && I(S, {
|
|
2544
|
-
borderRadius: `${
|
|
2446
|
+
borderRadius: `${yn}px`,
|
|
2545
2447
|
overflow: "hidden",
|
|
2546
2448
|
...z(p) ? {
|
|
2547
|
-
transform: `scale(${
|
|
2449
|
+
transform: `scale(${Ie()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
|
|
2548
2450
|
transformOrigin: "top"
|
|
2549
2451
|
} : {
|
|
2550
|
-
transform: `scale(${
|
|
2452
|
+
transform: `scale(${Ie()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
|
|
2551
2453
|
transformOrigin: "left"
|
|
2552
2454
|
},
|
|
2553
2455
|
transitionProperty: "transform, border-radius",
|
|
@@ -2555,50 +2457,50 @@ function lo({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2555
2457
|
transitionTimingFunction: `cubic-bezier(${T.EASE.join(",")})`
|
|
2556
2458
|
}, !0);
|
|
2557
2459
|
}
|
|
2558
|
-
function
|
|
2559
|
-
!he || !M.current || (M.current.classList.remove(
|
|
2460
|
+
function jo() {
|
|
2461
|
+
!he || !M.current || (M.current.classList.remove(Ct), ye.current = !1, Be(!1), De.current = /* @__PURE__ */ new Date());
|
|
2560
2462
|
}
|
|
2561
|
-
function
|
|
2463
|
+
function No(S) {
|
|
2562
2464
|
if (!he || !M.current) return;
|
|
2563
|
-
M.current.classList.remove(
|
|
2564
|
-
const D =
|
|
2565
|
-
if (!
|
|
2566
|
-
const k =
|
|
2465
|
+
M.current.classList.remove(Ct), ye.current = !1, Be(!1), De.current = /* @__PURE__ */ new Date();
|
|
2466
|
+
const D = ft(M.current, p);
|
|
2467
|
+
if (!rn(S.target, !1) || !D || Number.isNaN(D) || ne.current === null) return;
|
|
2468
|
+
const k = De.current.getTime() - ne.current.getTime(), j = le.current - (z(p) ? S.clientY : S.clientX), F = Math.abs(j) / k;
|
|
2567
2469
|
if (F > 0.05 && (E(!0), setTimeout(() => {
|
|
2568
2470
|
E(!1);
|
|
2569
2471
|
}, 200)), i) {
|
|
2570
|
-
|
|
2472
|
+
Mo({
|
|
2571
2473
|
draggedDistance: j * (p === "bottom" || p === "right" ? 1 : -1),
|
|
2572
|
-
closeDrawer:
|
|
2474
|
+
closeDrawer: Ae,
|
|
2573
2475
|
velocity: F,
|
|
2574
2476
|
dismissible: c
|
|
2575
2477
|
}), s == null || s(S, !0);
|
|
2576
2478
|
return;
|
|
2577
2479
|
}
|
|
2578
2480
|
if (p === "bottom" || p === "right" ? j > 0 : j < 0) {
|
|
2579
|
-
|
|
2481
|
+
on(), s == null || s(S, !0);
|
|
2580
2482
|
return;
|
|
2581
2483
|
}
|
|
2582
|
-
if (F >
|
|
2583
|
-
|
|
2484
|
+
if (F > ao) {
|
|
2485
|
+
Ae(), s == null || s(S, !1);
|
|
2584
2486
|
return;
|
|
2585
2487
|
}
|
|
2586
2488
|
var B;
|
|
2587
2489
|
const oe = Math.min((B = M.current.getBoundingClientRect().height) != null ? B : 0, window.innerHeight);
|
|
2588
2490
|
if (D >= oe * v) {
|
|
2589
|
-
|
|
2491
|
+
Ae(), s == null || s(S, !1);
|
|
2590
2492
|
return;
|
|
2591
2493
|
}
|
|
2592
|
-
s == null || s(S, !0),
|
|
2494
|
+
s == null || s(S, !0), on();
|
|
2593
2495
|
}
|
|
2594
2496
|
g.useEffect(() => {
|
|
2595
2497
|
_ && (I(document.documentElement, {
|
|
2596
2498
|
scrollBehavior: "auto"
|
|
2597
|
-
}), Y.current = /* @__PURE__ */ new Date(),
|
|
2499
|
+
}), Y.current = /* @__PURE__ */ new Date(), ot(!0));
|
|
2598
2500
|
}, [
|
|
2599
2501
|
_
|
|
2600
2502
|
]), g.useEffect(() => {
|
|
2601
|
-
if (M.current &&
|
|
2503
|
+
if (M.current && Q) {
|
|
2602
2504
|
var S;
|
|
2603
2505
|
const D = M == null || (S = M.current) == null ? void 0 : S.querySelectorAll("*");
|
|
2604
2506
|
D == null || D.forEach((k) => {
|
|
@@ -2607,104 +2509,104 @@ function lo({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
|
|
|
2607
2509
|
});
|
|
2608
2510
|
}
|
|
2609
2511
|
}, [
|
|
2610
|
-
|
|
2512
|
+
Q
|
|
2611
2513
|
]);
|
|
2612
|
-
function
|
|
2514
|
+
function ot(S) {
|
|
2613
2515
|
const D = document.querySelector("[vaul-drawer-wrapper]");
|
|
2614
2516
|
!D || !r || (S ? (u && (x || (I(document.body, {
|
|
2615
2517
|
background: document.body.style.backgroundColor || document.body.style.background
|
|
2616
2518
|
}), I(document.body, {
|
|
2617
2519
|
background: "black"
|
|
2618
2520
|
}, !0))), I(D, {
|
|
2619
|
-
borderRadius: `${
|
|
2521
|
+
borderRadius: `${yn}px`,
|
|
2620
2522
|
overflow: "hidden",
|
|
2621
2523
|
...z(p) ? {
|
|
2622
|
-
transform: `scale(${
|
|
2524
|
+
transform: `scale(${Ie()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
|
|
2623
2525
|
transformOrigin: "top"
|
|
2624
2526
|
} : {
|
|
2625
|
-
transform: `scale(${
|
|
2527
|
+
transform: `scale(${Ie()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
|
|
2626
2528
|
transformOrigin: "left"
|
|
2627
2529
|
},
|
|
2628
2530
|
transitionProperty: "transform, border-radius",
|
|
2629
2531
|
transitionDuration: `${T.DURATION}s`,
|
|
2630
2532
|
transitionTimingFunction: `cubic-bezier(${T.EASE.join(",")})`
|
|
2631
|
-
})) : (
|
|
2533
|
+
})) : (dt(D, "overflow"), dt(D, "transform"), dt(D, "borderRadius"), I(D, {
|
|
2632
2534
|
transitionProperty: "transform, border-radius",
|
|
2633
2535
|
transitionDuration: `${T.DURATION}s`,
|
|
2634
2536
|
transitionTimingFunction: `cubic-bezier(${T.EASE.join(",")})`
|
|
2635
2537
|
})));
|
|
2636
2538
|
}
|
|
2637
|
-
function
|
|
2638
|
-
const D = S ? (window.innerWidth -
|
|
2539
|
+
function Po(S) {
|
|
2540
|
+
const D = S ? (window.innerWidth - Ne) / window.innerWidth : 1, k = S ? -Ne : 0;
|
|
2639
2541
|
me.current && window.clearTimeout(me.current), I(M.current, {
|
|
2640
2542
|
transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
|
|
2641
2543
|
transform: `scale(${D}) translate3d(0, ${k}px, 0)`
|
|
2642
2544
|
}), !S && M.current && (me.current = setTimeout(() => {
|
|
2643
|
-
const j =
|
|
2545
|
+
const j = ft(M.current, p);
|
|
2644
2546
|
I(M.current, {
|
|
2645
2547
|
transition: "none",
|
|
2646
2548
|
transform: z(p) ? `translate3d(0, ${j}px, 0)` : `translate3d(${j}px, 0, 0)`
|
|
2647
2549
|
});
|
|
2648
2550
|
}, 500));
|
|
2649
2551
|
}
|
|
2650
|
-
function
|
|
2552
|
+
function To(S, D) {
|
|
2651
2553
|
if (D < 0) return;
|
|
2652
|
-
const k = z(p) ? window.innerHeight : window.innerWidth, j = (k -
|
|
2554
|
+
const k = z(p) ? window.innerHeight : window.innerWidth, j = (k - Ne) / k, F = j + D * (1 - j), B = -Ne + D * Ne;
|
|
2653
2555
|
I(M.current, {
|
|
2654
2556
|
transform: z(p) ? `scale(${F}) translate3d(0, ${B}px, 0)` : `scale(${F}) translate3d(${B}px, 0, 0)`,
|
|
2655
2557
|
transition: "none"
|
|
2656
2558
|
});
|
|
2657
2559
|
}
|
|
2658
|
-
function
|
|
2659
|
-
const k = z(p) ? window.innerHeight : window.innerWidth, j = D ? (k -
|
|
2560
|
+
function _o(S, D) {
|
|
2561
|
+
const k = z(p) ? window.innerHeight : window.innerWidth, j = D ? (k - Ne) / k : 1, F = D ? -Ne : 0;
|
|
2660
2562
|
D && I(M.current, {
|
|
2661
2563
|
transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
|
|
2662
2564
|
transform: z(p) ? `scale(${j}) translate3d(0, ${F}px, 0)` : `scale(${j}) translate3d(${F}px, 0, 0)`
|
|
2663
2565
|
});
|
|
2664
2566
|
}
|
|
2665
|
-
return /* @__PURE__ */ g.createElement(
|
|
2567
|
+
return /* @__PURE__ */ g.createElement(Xa, {
|
|
2666
2568
|
modal: H,
|
|
2667
2569
|
onOpenChange: (S) => {
|
|
2668
2570
|
if (e !== void 0) {
|
|
2669
2571
|
t == null || t(S);
|
|
2670
2572
|
return;
|
|
2671
2573
|
}
|
|
2672
|
-
S ? (te(!0), w(S)) :
|
|
2574
|
+
S ? (te(!0), w(S)) : Ae();
|
|
2673
2575
|
},
|
|
2674
2576
|
open: _
|
|
2675
|
-
}, /* @__PURE__ */ g.createElement(
|
|
2577
|
+
}, /* @__PURE__ */ g.createElement(Jr.Provider, {
|
|
2676
2578
|
value: {
|
|
2677
|
-
visible:
|
|
2678
|
-
activeSnapPoint:
|
|
2579
|
+
visible: Q,
|
|
2580
|
+
activeSnapPoint: yo,
|
|
2679
2581
|
snapPoints: i,
|
|
2680
|
-
setActiveSnapPoint:
|
|
2582
|
+
setActiveSnapPoint: tn,
|
|
2681
2583
|
drawerRef: M,
|
|
2682
2584
|
overlayRef: U,
|
|
2683
|
-
scaleBackground:
|
|
2585
|
+
scaleBackground: ot,
|
|
2684
2586
|
onOpenChange: t,
|
|
2685
|
-
onPress:
|
|
2686
|
-
setVisible:
|
|
2687
|
-
onRelease:
|
|
2688
|
-
onDrag:
|
|
2587
|
+
onPress: Ro,
|
|
2588
|
+
setVisible: V,
|
|
2589
|
+
onRelease: No,
|
|
2590
|
+
onDrag: Do,
|
|
2689
2591
|
dismissible: c,
|
|
2690
2592
|
handleOnly: d,
|
|
2691
2593
|
isOpen: _,
|
|
2692
2594
|
isDragging: he,
|
|
2693
|
-
shouldFade:
|
|
2694
|
-
closeDrawer:
|
|
2695
|
-
onNestedDrag:
|
|
2696
|
-
onNestedOpenChange:
|
|
2697
|
-
onNestedRelease:
|
|
2595
|
+
shouldFade: nn,
|
|
2596
|
+
closeDrawer: Ae,
|
|
2597
|
+
onNestedDrag: To,
|
|
2598
|
+
onNestedOpenChange: Po,
|
|
2599
|
+
onNestedRelease: _o,
|
|
2698
2600
|
keyboardIsOpen: ge,
|
|
2699
2601
|
openProp: e,
|
|
2700
2602
|
modal: H,
|
|
2701
|
-
snapPointsOffset:
|
|
2603
|
+
snapPointsOffset: Ke,
|
|
2702
2604
|
direction: p
|
|
2703
2605
|
}
|
|
2704
2606
|
}, n));
|
|
2705
2607
|
}
|
|
2706
|
-
const
|
|
2707
|
-
const { visible: a, closeDrawer: s, isDragging: i, snapPoints: l, activeSnapPoint: u, setActiveSnapPoint: v, dismissible: m, handleOnly: c, onPress: d, onDrag: f } =
|
|
2608
|
+
const ml = 250, gl = 120, lo = /* @__PURE__ */ g.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
|
|
2609
|
+
const { visible: a, closeDrawer: s, isDragging: i, snapPoints: l, activeSnapPoint: u, setActiveSnapPoint: v, dismissible: m, handleOnly: c, onPress: d, onDrag: f } = wt(), y = g.useRef(null), R = g.useRef(!1);
|
|
2708
2610
|
function K() {
|
|
2709
2611
|
if (R.current) {
|
|
2710
2612
|
x();
|
|
@@ -2712,7 +2614,7 @@ const gl = 250, vl = 120, co = /* @__PURE__ */ g.forwardRef(function({ preventCy
|
|
|
2712
2614
|
}
|
|
2713
2615
|
window.setTimeout(() => {
|
|
2714
2616
|
H();
|
|
2715
|
-
},
|
|
2617
|
+
}, gl);
|
|
2716
2618
|
}
|
|
2717
2619
|
function H() {
|
|
2718
2620
|
if (i || e || R.current) {
|
|
@@ -2732,10 +2634,10 @@ const gl = 250, vl = 120, co = /* @__PURE__ */ g.forwardRef(function({ preventCy
|
|
|
2732
2634
|
const N = l[C + 1];
|
|
2733
2635
|
v(N);
|
|
2734
2636
|
}
|
|
2735
|
-
function
|
|
2637
|
+
function q() {
|
|
2736
2638
|
y.current = window.setTimeout(() => {
|
|
2737
2639
|
R.current = !0;
|
|
2738
|
-
},
|
|
2640
|
+
}, ml);
|
|
2739
2641
|
}
|
|
2740
2642
|
function x() {
|
|
2741
2643
|
window.clearTimeout(y.current), R.current = !1;
|
|
@@ -2747,7 +2649,7 @@ const gl = 250, vl = 120, co = /* @__PURE__ */ g.forwardRef(function({ preventCy
|
|
|
2747
2649
|
},
|
|
2748
2650
|
onPointerCancel: x,
|
|
2749
2651
|
onPointerDown: (p) => {
|
|
2750
|
-
c && d(p),
|
|
2652
|
+
c && d(p), q();
|
|
2751
2653
|
},
|
|
2752
2654
|
onPointerMove: (p) => {
|
|
2753
2655
|
c && f(p);
|
|
@@ -2763,10 +2665,10 @@ const gl = 250, vl = 120, co = /* @__PURE__ */ g.forwardRef(function({ preventCy
|
|
|
2763
2665
|
"aria-hidden": "true"
|
|
2764
2666
|
}, t));
|
|
2765
2667
|
});
|
|
2766
|
-
|
|
2767
|
-
const
|
|
2768
|
-
const { overlayRef: r, snapPoints: a, onRelease: s, shouldFade: i, isOpen: l, visible: u } =
|
|
2769
|
-
return /* @__PURE__ */ g.createElement(
|
|
2668
|
+
lo.displayName = "Drawer.Handle";
|
|
2669
|
+
const co = /* @__PURE__ */ g.forwardRef(function({ children: e, ...t }, n) {
|
|
2670
|
+
const { overlayRef: r, snapPoints: a, onRelease: s, shouldFade: i, isOpen: l, visible: u } = wt(), v = ro(n, r), m = a && a.length > 0;
|
|
2671
|
+
return /* @__PURE__ */ g.createElement(Ka, {
|
|
2770
2672
|
onMouseUp: s,
|
|
2771
2673
|
ref: v,
|
|
2772
2674
|
"vaul-drawer-visible": u ? "true" : "false",
|
|
@@ -2776,24 +2678,24 @@ const uo = /* @__PURE__ */ g.forwardRef(function({ children: e, ...t }, n) {
|
|
|
2776
2678
|
...t
|
|
2777
2679
|
});
|
|
2778
2680
|
});
|
|
2779
|
-
|
|
2780
|
-
const
|
|
2781
|
-
const { drawerRef: i, onPress: l, onRelease: u, onDrag: v, dismissible: m, keyboardIsOpen: c, snapPointsOffset: d, visible: f, closeDrawer: y, modal: R, openProp: K, onOpenChange: H, setVisible:
|
|
2681
|
+
co.displayName = "Drawer.Overlay";
|
|
2682
|
+
const uo = /* @__PURE__ */ g.forwardRef(function({ onOpenAutoFocus: e, onPointerDownOutside: t, onAnimationEnd: n, style: r, ...a }, s) {
|
|
2683
|
+
const { drawerRef: i, onPress: l, onRelease: u, onDrag: v, dismissible: m, keyboardIsOpen: c, snapPointsOffset: d, visible: f, closeDrawer: y, modal: R, openProp: K, onOpenChange: H, setVisible: q, handleOnly: x, direction: p } = wt(), C = ro(s, i), N = g.useRef(null), P = g.useRef(!1), _ = (w, L, te = 0) => {
|
|
2782
2684
|
if (P.current) return !0;
|
|
2783
|
-
const
|
|
2685
|
+
const Q = Math.abs(w.y), V = Math.abs(w.x), X = V > Q, Oe = [
|
|
2784
2686
|
"bottom",
|
|
2785
2687
|
"right"
|
|
2786
2688
|
].includes(L) ? 1 : -1;
|
|
2787
2689
|
if (L === "left" || L === "right") {
|
|
2788
|
-
if (!(w.x *
|
|
2690
|
+
if (!(w.x * Oe < 0) && V >= 0 && V <= te)
|
|
2789
2691
|
return X;
|
|
2790
|
-
} else if (!(w.y *
|
|
2692
|
+
} else if (!(w.y * Oe < 0) && Q >= 0 && Q <= te)
|
|
2791
2693
|
return !X;
|
|
2792
2694
|
return P.current = !0, !0;
|
|
2793
2695
|
};
|
|
2794
2696
|
return g.useEffect(() => {
|
|
2795
|
-
|
|
2796
|
-
}, []), /* @__PURE__ */ g.createElement(
|
|
2697
|
+
q(!0);
|
|
2698
|
+
}, []), /* @__PURE__ */ g.createElement(Va, {
|
|
2797
2699
|
"vaul-drawer": "",
|
|
2798
2700
|
"vaul-drawer-direction": p,
|
|
2799
2701
|
"vaul-drawer-visible": f ? "true" : "false",
|
|
@@ -2838,23 +2740,23 @@ const fo = /* @__PURE__ */ g.forwardRef(function({ onOpenAutoFocus: e, onPointer
|
|
|
2838
2740
|
},
|
|
2839
2741
|
onPointerMove: (w) => {
|
|
2840
2742
|
if (x || (a.onPointerMove == null || a.onPointerMove.call(a, w), !N.current)) return;
|
|
2841
|
-
const L = w.clientY - N.current.y, te = w.clientX - N.current.x,
|
|
2743
|
+
const L = w.clientY - N.current.y, te = w.clientX - N.current.x, Q = w.pointerType === "touch" ? 10 : 2;
|
|
2842
2744
|
_({
|
|
2843
2745
|
x: te,
|
|
2844
2746
|
y: L
|
|
2845
|
-
}, p,
|
|
2747
|
+
}, p, Q) ? v(w) : (Math.abs(te) > Q || Math.abs(L) > Q) && (N.current = null);
|
|
2846
2748
|
},
|
|
2847
2749
|
onPointerUp: (w) => {
|
|
2848
2750
|
a.onPointerUp == null || a.onPointerUp.call(a, w), N.current = null, P.current = !1, u(w);
|
|
2849
2751
|
}
|
|
2850
2752
|
});
|
|
2851
2753
|
});
|
|
2852
|
-
|
|
2853
|
-
function
|
|
2854
|
-
const { onNestedDrag: r, onNestedOpenChange: a, onNestedRelease: s } =
|
|
2754
|
+
uo.displayName = "Drawer.Content";
|
|
2755
|
+
function vl({ onDrag: e, onOpenChange: t, ...n }) {
|
|
2756
|
+
const { onNestedDrag: r, onNestedOpenChange: a, onNestedRelease: s } = wt();
|
|
2855
2757
|
if (!r)
|
|
2856
2758
|
throw new Error("Drawer.NestedRoot must be placed in another drawer");
|
|
2857
|
-
return /* @__PURE__ */ g.createElement(
|
|
2759
|
+
return /* @__PURE__ */ g.createElement(io, {
|
|
2858
2760
|
nested: !0,
|
|
2859
2761
|
onClose: () => {
|
|
2860
2762
|
a(!1);
|
|
@@ -2870,17 +2772,17 @@ function wl({ onDrag: e, onOpenChange: t, ...n }) {
|
|
|
2870
2772
|
});
|
|
2871
2773
|
}
|
|
2872
2774
|
const ie = {
|
|
2873
|
-
Root:
|
|
2874
|
-
NestedRoot:
|
|
2875
|
-
Content:
|
|
2876
|
-
Handle:
|
|
2877
|
-
Overlay:
|
|
2878
|
-
Trigger:
|
|
2879
|
-
Portal:
|
|
2880
|
-
Close:
|
|
2881
|
-
Title:
|
|
2882
|
-
Description:
|
|
2883
|
-
},
|
|
2775
|
+
Root: io,
|
|
2776
|
+
NestedRoot: vl,
|
|
2777
|
+
Content: uo,
|
|
2778
|
+
Handle: lo,
|
|
2779
|
+
Overlay: co,
|
|
2780
|
+
Trigger: Qa,
|
|
2781
|
+
Portal: qa,
|
|
2782
|
+
Close: Ga,
|
|
2783
|
+
Title: Wa,
|
|
2784
|
+
Description: Ya
|
|
2785
|
+
}, Xt = ({
|
|
2884
2786
|
shouldScaleBackground: e = !0,
|
|
2885
2787
|
...t
|
|
2886
2788
|
}) => /* @__PURE__ */ o.jsx(
|
|
@@ -2890,8 +2792,8 @@ const ie = {
|
|
|
2890
2792
|
...t
|
|
2891
2793
|
}
|
|
2892
2794
|
);
|
|
2893
|
-
|
|
2894
|
-
const
|
|
2795
|
+
Xt.displayName = "Drawer";
|
|
2796
|
+
const fo = ie.Trigger, wl = ie.Portal, bl = ie.Close, ho = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
2895
2797
|
ie.Overlay,
|
|
2896
2798
|
{
|
|
2897
2799
|
ref: n,
|
|
@@ -2899,9 +2801,9 @@ const ho = ie.Trigger, bl = ie.Portal, xl = ie.Close, po = h.forwardRef(({ class
|
|
|
2899
2801
|
...t
|
|
2900
2802
|
}
|
|
2901
2803
|
));
|
|
2902
|
-
|
|
2903
|
-
const
|
|
2904
|
-
/* @__PURE__ */ o.jsx(
|
|
2804
|
+
ho.displayName = ie.Overlay.displayName;
|
|
2805
|
+
const Jt = h.forwardRef(({ className: e, children: t, hideBar: n = !0, ...r }, a) => /* @__PURE__ */ o.jsxs(wl, { children: [
|
|
2806
|
+
/* @__PURE__ */ o.jsx(ho, {}),
|
|
2905
2807
|
/* @__PURE__ */ o.jsxs(
|
|
2906
2808
|
ie.Content,
|
|
2907
2809
|
{
|
|
@@ -2918,8 +2820,8 @@ const Zt = h.forwardRef(({ className: e, children: t, hideBar: n = !0, ...r }, a
|
|
|
2918
2820
|
}
|
|
2919
2821
|
)
|
|
2920
2822
|
] }));
|
|
2921
|
-
|
|
2922
|
-
const
|
|
2823
|
+
Jt.displayName = "DrawerContent";
|
|
2824
|
+
const Zt = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
2923
2825
|
ie.Title,
|
|
2924
2826
|
{
|
|
2925
2827
|
ref: n,
|
|
@@ -2930,8 +2832,8 @@ const en = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
|
2930
2832
|
...t
|
|
2931
2833
|
}
|
|
2932
2834
|
));
|
|
2933
|
-
|
|
2934
|
-
const
|
|
2835
|
+
Zt.displayName = ie.Title.displayName;
|
|
2836
|
+
const xl = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
2935
2837
|
ie.Description,
|
|
2936
2838
|
{
|
|
2937
2839
|
ref: n,
|
|
@@ -2939,35 +2841,35 @@ const yl = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
|
2939
2841
|
...t
|
|
2940
2842
|
}
|
|
2941
2843
|
));
|
|
2942
|
-
|
|
2943
|
-
const
|
|
2944
|
-
const { topNavigation: e } =
|
|
2945
|
-
return /* @__PURE__ */ o.jsxs(
|
|
2946
|
-
/* @__PURE__ */ o.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ o.jsx(
|
|
2844
|
+
xl.displayName = ie.Description.displayName;
|
|
2845
|
+
const yl = () => {
|
|
2846
|
+
const { topNavigation: e } = Ue();
|
|
2847
|
+
return /* @__PURE__ */ o.jsxs(Xt, { direction: "right", children: [
|
|
2848
|
+
/* @__PURE__ */ o.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ o.jsx(fo, { className: "lg:hidden", children: /* @__PURE__ */ o.jsx(ka, { size: 22 }) }) }),
|
|
2947
2849
|
/* @__PURE__ */ o.jsxs(
|
|
2948
|
-
|
|
2850
|
+
Jt,
|
|
2949
2851
|
{
|
|
2950
2852
|
className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none",
|
|
2951
2853
|
"aria-describedby": void 0,
|
|
2952
2854
|
children: [
|
|
2953
|
-
/* @__PURE__ */ o.jsx(
|
|
2855
|
+
/* @__PURE__ */ o.jsx(In, { children: /* @__PURE__ */ o.jsx(Zt, { children: "Navigation" }) }),
|
|
2954
2856
|
/* @__PURE__ */ o.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: e.map((t) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
|
|
2955
|
-
|
|
2857
|
+
We,
|
|
2956
2858
|
{
|
|
2957
|
-
className: ({ isActive: n }) =>
|
|
2859
|
+
className: ({ isActive: n }) => An(
|
|
2958
2860
|
"block font-medium border-b-2",
|
|
2959
2861
|
n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
2960
2862
|
),
|
|
2961
2863
|
to: t.id,
|
|
2962
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2864
|
+
children: /* @__PURE__ */ o.jsx(bl, { children: t.label })
|
|
2963
2865
|
}
|
|
2964
2866
|
) }, t.label)) })
|
|
2965
2867
|
]
|
|
2966
2868
|
}
|
|
2967
2869
|
)
|
|
2968
2870
|
] });
|
|
2969
|
-
},
|
|
2970
|
-
const e =
|
|
2871
|
+
}, Ml = () => {
|
|
2872
|
+
const e = Ue(), [t, n] = Te(!1), r = Ln(() => n(!1), []);
|
|
2971
2873
|
be(() => {
|
|
2972
2874
|
if (t)
|
|
2973
2875
|
return;
|
|
@@ -2978,7 +2880,7 @@ const Ml = () => {
|
|
|
2978
2880
|
window.removeEventListener("keydown", s);
|
|
2979
2881
|
};
|
|
2980
2882
|
}, [t, n]);
|
|
2981
|
-
const a = e.plugins.find(
|
|
2883
|
+
const a = e.plugins.find(js);
|
|
2982
2884
|
return a ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2983
2885
|
/* @__PURE__ */ o.jsxs(
|
|
2984
2886
|
"button",
|
|
@@ -2988,24 +2890,24 @@ const Ml = () => {
|
|
|
2988
2890
|
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",
|
|
2989
2891
|
children: [
|
|
2990
2892
|
/* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
2991
|
-
/* @__PURE__ */ o.jsx(
|
|
2893
|
+
/* @__PURE__ */ o.jsx($a, { size: 14 }),
|
|
2992
2894
|
"Search"
|
|
2993
2895
|
] }),
|
|
2994
2896
|
/* @__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" })
|
|
2995
2897
|
]
|
|
2996
2898
|
}
|
|
2997
2899
|
),
|
|
2998
|
-
/* @__PURE__ */ o.jsx(
|
|
2900
|
+
/* @__PURE__ */ o.jsx(Fn, { fallback: null, children: a.renderSearch({
|
|
2999
2901
|
isOpen: t,
|
|
3000
2902
|
onClose: r
|
|
3001
2903
|
}) })
|
|
3002
2904
|
] }) : null;
|
|
3003
|
-
},
|
|
3004
|
-
const { topNavigation: e } =
|
|
2905
|
+
}, Sl = () => {
|
|
2906
|
+
const { topNavigation: e } = Ue();
|
|
3005
2907
|
return e.length <= 1 ? /* @__PURE__ */ o.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ o.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ o.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.map((t) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
|
|
3006
|
-
|
|
2908
|
+
We,
|
|
3007
2909
|
{
|
|
3008
|
-
className: ({ isActive: n }) =>
|
|
2910
|
+
className: ({ isActive: n }) => An(
|
|
3009
2911
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
3010
2912
|
n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
3011
2913
|
),
|
|
@@ -3013,19 +2915,19 @@ const Ml = () => {
|
|
|
3013
2915
|
children: t.label
|
|
3014
2916
|
}
|
|
3015
2917
|
) }, t.label)) }) });
|
|
3016
|
-
},
|
|
2918
|
+
}, po = ({ item: e }) => e.children ? /* @__PURE__ */ o.jsxs(qi, { children: [
|
|
3017
2919
|
/* @__PURE__ */ o.jsx(Qr, { children: e.label }),
|
|
3018
|
-
/* @__PURE__ */ o.jsx(Qi, { children: /* @__PURE__ */ o.jsx(
|
|
2920
|
+
/* @__PURE__ */ o.jsx(Qi, { children: /* @__PURE__ */ o.jsx(qr, { children: e.children.map((t, n) => (
|
|
3019
2921
|
// eslint-disable-next-line react/no-array-index-key
|
|
3020
|
-
/* @__PURE__ */ o.jsx(
|
|
2922
|
+
/* @__PURE__ */ o.jsx(po, { item: t }, n)
|
|
3021
2923
|
)) }) })
|
|
3022
|
-
] }, e.label) : /* @__PURE__ */ o.jsx(
|
|
3023
|
-
const t =
|
|
2924
|
+
] }, e.label) : /* @__PURE__ */ o.jsx(Ot, { to: e.path ?? "", children: /* @__PURE__ */ o.jsx(Wr, { children: e.label }, e.label) }), mo = Hn(function() {
|
|
2925
|
+
const t = cn(), [n, r] = sa(), { isAuthenticated: a, profile: s, isAuthEnabled: i } = cn(), l = Ue(), { page: u, plugins: v } = l, m = v.filter((d) => Rs(d)).flatMap((d) => d.getProfileMenuItems(l)).map((d) => /* @__PURE__ */ o.jsx(po, { item: d }, d.label)), c = n ? La : Fa;
|
|
3024
2926
|
return /* @__PURE__ */ o.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
3025
|
-
/* @__PURE__ */ o.jsx(
|
|
2927
|
+
/* @__PURE__ */ o.jsx(Xi, {}),
|
|
3026
2928
|
/* @__PURE__ */ o.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
3027
2929
|
/* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
|
|
3028
|
-
/* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(
|
|
2930
|
+
/* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(Ot, { to: "/", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
3029
2931
|
(u == null ? void 0 : u.logo) && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3030
2932
|
/* @__PURE__ */ o.jsx(
|
|
3031
2933
|
"img",
|
|
@@ -3051,15 +2953,15 @@ const Ml = () => {
|
|
|
3051
2953
|
/* @__PURE__ */ o.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
|
|
3052
2954
|
] }) }) }),
|
|
3053
2955
|
/* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-2 md:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
3054
|
-
/* @__PURE__ */ o.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ o.jsx(
|
|
3055
|
-
/* @__PURE__ */ o.jsx(
|
|
2956
|
+
/* @__PURE__ */ o.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ o.jsx(Ml, {}) }),
|
|
2957
|
+
/* @__PURE__ */ o.jsx(yl, {}),
|
|
3056
2958
|
/* @__PURE__ */ o.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
3057
|
-
/* @__PURE__ */ o.jsx(
|
|
3058
|
-
i && !a ? /* @__PURE__ */ o.jsx(
|
|
3059
|
-
/* @__PURE__ */ o.jsx(Vi, { asChild: !0, children: /* @__PURE__ */ o.jsx(
|
|
3060
|
-
/* @__PURE__ */ o.jsxs(
|
|
3061
|
-
/* @__PURE__ */ o.jsx(
|
|
3062
|
-
/* @__PURE__ */ o.jsx(
|
|
2959
|
+
/* @__PURE__ */ o.jsx(Pe, { name: "head-navigation-start" }),
|
|
2960
|
+
i && !a ? /* @__PURE__ */ o.jsx(Rt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : m.length > 0 && /* @__PURE__ */ o.jsxs(Ki, { modal: !1, children: [
|
|
2961
|
+
/* @__PURE__ */ o.jsx(Vi, { asChild: !0, children: /* @__PURE__ */ o.jsx(Rt, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
|
|
2962
|
+
/* @__PURE__ */ o.jsxs(Gr, { className: "w-56", children: [
|
|
2963
|
+
/* @__PURE__ */ o.jsx(Yr, { children: "My Account" }),
|
|
2964
|
+
/* @__PURE__ */ o.jsx(Xr, {}),
|
|
3063
2965
|
m
|
|
3064
2966
|
] })
|
|
3065
2967
|
] }),
|
|
@@ -3073,72 +2975,72 @@ const Ml = () => {
|
|
|
3073
2975
|
children: /* @__PURE__ */ o.jsx(c, { size: 18 })
|
|
3074
2976
|
}
|
|
3075
2977
|
),
|
|
3076
|
-
/* @__PURE__ */ o.jsx(
|
|
2978
|
+
/* @__PURE__ */ o.jsx(Pe, { name: "head-navigation-end" })
|
|
3077
2979
|
] })
|
|
3078
2980
|
] })
|
|
3079
2981
|
] }),
|
|
3080
|
-
/* @__PURE__ */ o.jsx(
|
|
2982
|
+
/* @__PURE__ */ o.jsx(Sl, {})
|
|
3081
2983
|
] })
|
|
3082
2984
|
] });
|
|
3083
|
-
}),
|
|
3084
|
-
Header:
|
|
3085
|
-
},
|
|
3086
|
-
const [t, n] =
|
|
2985
|
+
}), go = {
|
|
2986
|
+
Header: mo
|
|
2987
|
+
}, El = $n(go), Cl = El.Provider, Rl = (e) => {
|
|
2988
|
+
const [t, n] = Te(!1);
|
|
3087
2989
|
be(() => {
|
|
3088
2990
|
const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), l = s === "dark" || !s && i.matches;
|
|
3089
2991
|
n(l);
|
|
3090
2992
|
}, [t]);
|
|
3091
|
-
const r =
|
|
2993
|
+
const r = Ln(() => {
|
|
3092
2994
|
const s = !t;
|
|
3093
2995
|
document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
|
|
3094
2996
|
}, [t]), a = [t, r];
|
|
3095
|
-
return /* @__PURE__ */ o.jsx(
|
|
3096
|
-
},
|
|
2997
|
+
return /* @__PURE__ */ o.jsx(ia.Provider, { value: a, ...e });
|
|
2998
|
+
}, Dl = ({
|
|
3097
2999
|
children: e,
|
|
3098
3000
|
context: t
|
|
3099
|
-
}) => (
|
|
3001
|
+
}) => (Na({
|
|
3100
3002
|
queryFn: async () => (await t.initialize(), !0),
|
|
3101
3003
|
queryKey: ["zudoku-initialize"]
|
|
3102
|
-
}), /* @__PURE__ */ o.jsx(
|
|
3004
|
+
}), /* @__PURE__ */ o.jsx(Pa.Provider, { value: t, children: e })), jl = ({
|
|
3103
3005
|
children: e,
|
|
3104
3006
|
...t
|
|
3105
3007
|
}) => {
|
|
3106
3008
|
var c, d;
|
|
3107
|
-
const n =
|
|
3108
|
-
() => ({ ...
|
|
3009
|
+
const n = xt(
|
|
3010
|
+
() => ({ ...go, ...t.overrides }),
|
|
3109
3011
|
[t.overrides]
|
|
3110
|
-
), r =
|
|
3012
|
+
), r = xt(() => {
|
|
3111
3013
|
var y;
|
|
3112
3014
|
return {
|
|
3113
|
-
...(t.plugins ?? []).filter(
|
|
3015
|
+
...(t.plugins ?? []).filter(Ts).flatMap(
|
|
3114
3016
|
(R) => R.getMdxComponents ? [R.getMdxComponents()] : []
|
|
3115
3017
|
).reduce((R, K) => ({ ...R, ...K }), {}),
|
|
3116
|
-
...
|
|
3018
|
+
...la,
|
|
3117
3019
|
...(y = t.mdx) == null ? void 0 : y.components
|
|
3118
3020
|
};
|
|
3119
|
-
}, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: a } =
|
|
3021
|
+
}, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: a } = ma(Dt), [s, i] = Te(!1), l = xt(
|
|
3120
3022
|
() => s ? { stagger: !0 } : { stagger: a },
|
|
3121
3023
|
[a, s]
|
|
3122
|
-
), u =
|
|
3024
|
+
), u = Bo();
|
|
3123
3025
|
be(() => {
|
|
3124
3026
|
s || i(!0);
|
|
3125
3027
|
}, [s, u.location]);
|
|
3126
|
-
const [v] =
|
|
3028
|
+
const [v] = Te(() => new Os(t)), m = (d = t.plugins) == null ? void 0 : d.filter(Ps).map((f, y) => {
|
|
3127
3029
|
var R;
|
|
3128
|
-
return /* @__PURE__ */ o.jsx(
|
|
3030
|
+
return /* @__PURE__ */ o.jsx(ga, { children: (R = f.getHead) == null ? void 0 : R.call(f) }, y);
|
|
3129
3031
|
});
|
|
3130
|
-
return /* @__PURE__ */ o.jsxs(
|
|
3131
|
-
/* @__PURE__ */ o.jsx(
|
|
3132
|
-
/* @__PURE__ */ o.jsx(
|
|
3032
|
+
return /* @__PURE__ */ o.jsxs(Ta, { client: Wn, children: [
|
|
3033
|
+
/* @__PURE__ */ o.jsx(_t, { children: m }),
|
|
3034
|
+
/* @__PURE__ */ o.jsx(Dt.Provider, { value: l, children: /* @__PURE__ */ o.jsx(Dl, { context: v, children: /* @__PURE__ */ o.jsx(Ao, { components: r, children: /* @__PURE__ */ o.jsx(Rl, { children: /* @__PURE__ */ o.jsx(Cl, { value: n, children: /* @__PURE__ */ o.jsx(Ko, { slotlets: t.slotlets, children: /* @__PURE__ */ o.jsx(ca, { children: e ?? /* @__PURE__ */ o.jsx(Dn, {}) }) }) }) }) }) }) })
|
|
3133
3035
|
] });
|
|
3134
|
-
},
|
|
3135
|
-
|
|
3136
|
-
const
|
|
3036
|
+
}, Nl = Hn(jl), vo = (e) => /* @__PURE__ */ o.jsx(Es, { FallbackComponent: Is, children: /* @__PURE__ */ o.jsx(Nl, { ...e }) });
|
|
3037
|
+
vo.displayName = "DevPortal";
|
|
3038
|
+
const Pl = ({
|
|
3137
3039
|
category: e,
|
|
3138
3040
|
level: t
|
|
3139
3041
|
}) => {
|
|
3140
3042
|
var d;
|
|
3141
|
-
const n =
|
|
3043
|
+
const n = zn(), r = ko(e), [a, s] = Te(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, u = !!(!i || !l || r), [v, m] = Te(u);
|
|
3142
3044
|
be(() => {
|
|
3143
3045
|
r && m(!0);
|
|
3144
3046
|
}, [r]);
|
|
@@ -3150,7 +3052,7 @@ const Tl = ({
|
|
|
3150
3052
|
f.preventDefault(), m((y) => !y), s(!0);
|
|
3151
3053
|
},
|
|
3152
3054
|
children: /* @__PURE__ */ o.jsx(
|
|
3153
|
-
|
|
3055
|
+
Kn,
|
|
3154
3056
|
{
|
|
3155
3057
|
size: 16,
|
|
3156
3058
|
className: O(
|
|
@@ -3162,43 +3064,58 @@ const Tl = ({
|
|
|
3162
3064
|
}
|
|
3163
3065
|
);
|
|
3164
3066
|
return /* @__PURE__ */ o.jsxs(
|
|
3165
|
-
|
|
3067
|
+
ba,
|
|
3166
3068
|
{
|
|
3167
3069
|
className: O("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
|
|
3168
3070
|
defaultOpen: u,
|
|
3169
3071
|
open: v,
|
|
3170
3072
|
onOpenChange: () => m(!0),
|
|
3171
3073
|
children: [
|
|
3172
|
-
/* @__PURE__ */ o.jsx(
|
|
3173
|
-
|
|
3074
|
+
/* @__PURE__ */ o.jsx(xa, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ o.jsxs(
|
|
3075
|
+
"div",
|
|
3174
3076
|
{
|
|
3175
3077
|
className: O(
|
|
3176
|
-
"
|
|
3177
|
-
|
|
3078
|
+
"text-start",
|
|
3079
|
+
Ge({ isActive: !1, isTopLevel: t === 0 }),
|
|
3178
3080
|
i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
|
|
3179
3081
|
),
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3082
|
+
children: [
|
|
3083
|
+
e.icon && /* @__PURE__ */ o.jsx(
|
|
3084
|
+
e.icon,
|
|
3085
|
+
{
|
|
3086
|
+
size: 16,
|
|
3087
|
+
className: "align-[-0.125em] -translate-x-1"
|
|
3088
|
+
}
|
|
3089
|
+
),
|
|
3090
|
+
((d = e.link) == null ? void 0 : d.type) === "doc" ? /* @__PURE__ */ o.jsx(
|
|
3091
|
+
We,
|
|
3092
|
+
{
|
|
3093
|
+
to: Ft(n == null ? void 0 : n.id, e.link.id),
|
|
3094
|
+
className: "flex-1",
|
|
3095
|
+
onClick: () => s(!0),
|
|
3096
|
+
children: ({ isActive: f }) => /* @__PURE__ */ o.jsxs(
|
|
3097
|
+
"div",
|
|
3098
|
+
{
|
|
3099
|
+
className: O(
|
|
3100
|
+
"flex items-center gap-2 justify-between w-full",
|
|
3101
|
+
f ? "text-primary font-medium" : "text-foreground/80"
|
|
3102
|
+
),
|
|
3103
|
+
children: [
|
|
3104
|
+
/* @__PURE__ */ o.jsx("div", { className: "truncate", children: e.label }),
|
|
3105
|
+
c
|
|
3106
|
+
]
|
|
3107
|
+
}
|
|
3108
|
+
)
|
|
3109
|
+
}
|
|
3110
|
+
) : /* @__PURE__ */ o.jsxs("div", { className: "flex items-center justify-between w-full", children: [
|
|
3111
|
+
/* @__PURE__ */ o.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
|
|
3112
|
+
c
|
|
3113
|
+
] })
|
|
3114
|
+
]
|
|
3198
3115
|
}
|
|
3199
|
-
),
|
|
3116
|
+
) }),
|
|
3200
3117
|
/* @__PURE__ */ o.jsx(
|
|
3201
|
-
|
|
3118
|
+
ya,
|
|
3202
3119
|
{
|
|
3203
3120
|
className: O(
|
|
3204
3121
|
// CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
|
|
@@ -3206,7 +3123,7 @@ const Tl = ({
|
|
|
3206
3123
|
"ms-[calc(var(--padding-nav-item)*1.125)]"
|
|
3207
3124
|
),
|
|
3208
3125
|
children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((f) => /* @__PURE__ */ o.jsx(
|
|
3209
|
-
|
|
3126
|
+
Tt,
|
|
3210
3127
|
{
|
|
3211
3128
|
level: t + 1,
|
|
3212
3129
|
item: f
|
|
@@ -3218,8 +3135,8 @@ const Tl = ({
|
|
|
3218
3135
|
]
|
|
3219
3136
|
}
|
|
3220
3137
|
);
|
|
3221
|
-
},
|
|
3222
|
-
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
3138
|
+
}, Ge = ua(
|
|
3139
|
+
"flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
3223
3140
|
{
|
|
3224
3141
|
variants: {
|
|
3225
3142
|
isTopLevel: {
|
|
@@ -3235,49 +3152,52 @@ const Tl = ({
|
|
|
3235
3152
|
}
|
|
3236
3153
|
}
|
|
3237
3154
|
}
|
|
3238
|
-
),
|
|
3155
|
+
), wo = "data-anchor", Tt = ({
|
|
3239
3156
|
item: e,
|
|
3240
3157
|
level: t = 0
|
|
3241
3158
|
}) => {
|
|
3242
|
-
const n =
|
|
3159
|
+
const n = zn(), { activeAnchor: r } = kt(), [a] = zo();
|
|
3243
3160
|
switch (e.type) {
|
|
3244
3161
|
case "category":
|
|
3245
|
-
return /* @__PURE__ */ o.jsx(
|
|
3162
|
+
return /* @__PURE__ */ o.jsx(Pl, { category: e, level: t });
|
|
3246
3163
|
case "doc":
|
|
3247
|
-
return /* @__PURE__ */ o.
|
|
3248
|
-
|
|
3164
|
+
return /* @__PURE__ */ o.jsxs(
|
|
3165
|
+
We,
|
|
3249
3166
|
{
|
|
3250
|
-
className: ({ isActive: s }) =>
|
|
3251
|
-
to:
|
|
3252
|
-
children:
|
|
3253
|
-
/* @__PURE__ */ o.jsx(
|
|
3254
|
-
/* @__PURE__ */ o.
|
|
3255
|
-
|
|
3167
|
+
className: ({ isActive: s }) => Ge({ isActive: s, isTopLevel: t === 0 }),
|
|
3168
|
+
to: Ft(n == null ? void 0 : n.id, e.id),
|
|
3169
|
+
children: [
|
|
3170
|
+
e.icon && /* @__PURE__ */ o.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
|
|
3171
|
+
e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3172
|
+
/* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
3173
|
+
/* @__PURE__ */ o.jsx(yt, { ...e.badge })
|
|
3174
|
+
] }) : e.label
|
|
3175
|
+
]
|
|
3256
3176
|
}
|
|
3257
3177
|
);
|
|
3258
3178
|
case "link":
|
|
3259
3179
|
return e.href.startsWith("#") ? /* @__PURE__ */ o.jsx(
|
|
3260
|
-
|
|
3180
|
+
$o,
|
|
3261
3181
|
{
|
|
3262
3182
|
to: { hash: e.href, search: a.toString() },
|
|
3263
|
-
[
|
|
3183
|
+
[wo]: e.href.slice(1),
|
|
3264
3184
|
className: O(
|
|
3265
3185
|
"flex gap-2.5 justify-between",
|
|
3266
3186
|
t === 0 && "-mx-[--padding-nav-item]",
|
|
3267
|
-
|
|
3187
|
+
Ge({
|
|
3268
3188
|
isActive: e.href.slice(1) === r
|
|
3269
3189
|
})
|
|
3270
3190
|
),
|
|
3271
3191
|
children: e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3272
3192
|
/* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
3273
|
-
/* @__PURE__ */ o.jsx(
|
|
3193
|
+
/* @__PURE__ */ o.jsx(yt, { ...e.badge })
|
|
3274
3194
|
] }) : /* @__PURE__ */ o.jsx("span", { className: "break-all", children: e.label })
|
|
3275
3195
|
}
|
|
3276
3196
|
) : e.href.startsWith("http") ? /* @__PURE__ */ o.jsxs(
|
|
3277
3197
|
"a",
|
|
3278
3198
|
{
|
|
3279
3199
|
className: O(
|
|
3280
|
-
|
|
3200
|
+
Ge({ isTopLevel: t === 0 }),
|
|
3281
3201
|
"block"
|
|
3282
3202
|
),
|
|
3283
3203
|
href: e.href,
|
|
@@ -3287,33 +3207,33 @@ const Tl = ({
|
|
|
3287
3207
|
/* @__PURE__ */ o.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
3288
3208
|
/* @__PURE__ */ o.jsxs("span", { className: "whitespace-nowrap", children: [
|
|
3289
3209
|
" ",
|
|
3290
|
-
/* @__PURE__ */ o.jsx(
|
|
3210
|
+
/* @__PURE__ */ o.jsx(Ha, { className: "inline ml-1", size: 12 })
|
|
3291
3211
|
] })
|
|
3292
3212
|
]
|
|
3293
3213
|
}
|
|
3294
3214
|
) : /* @__PURE__ */ o.jsx(
|
|
3295
|
-
|
|
3215
|
+
We,
|
|
3296
3216
|
{
|
|
3297
|
-
className: O("flex gap-2.5 justify-between",
|
|
3217
|
+
className: O("flex gap-2.5 justify-between", Ge()),
|
|
3298
3218
|
to: e.href,
|
|
3299
3219
|
children: e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3300
3220
|
/* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
3301
|
-
/* @__PURE__ */ o.jsx(
|
|
3221
|
+
/* @__PURE__ */ o.jsx(yt, { ...e.badge })
|
|
3302
3222
|
] }) : /* @__PURE__ */ o.jsx("span", { className: "break-all", children: e.label })
|
|
3303
3223
|
}
|
|
3304
3224
|
);
|
|
3305
3225
|
}
|
|
3306
|
-
},
|
|
3226
|
+
}, Tl = (e, t = { block: "center" }) => {
|
|
3307
3227
|
if (!e) return;
|
|
3308
3228
|
const n = e.getBoundingClientRect();
|
|
3309
3229
|
n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
3310
|
-
},
|
|
3311
|
-
const e =
|
|
3230
|
+
}, _l = () => {
|
|
3231
|
+
const e = It(), { setActiveAnchor: t } = kt();
|
|
3312
3232
|
be(() => {
|
|
3313
3233
|
if (!e.hash) return;
|
|
3314
3234
|
const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
|
|
3315
|
-
const a = document.getElementById(n), s = document.querySelector(`[${
|
|
3316
|
-
return a ? (a.scrollIntoView(),
|
|
3235
|
+
const a = document.getElementById(n), s = document.querySelector(`[${wo}="${n}"]`);
|
|
3236
|
+
return a ? (a.scrollIntoView(), Tl(s), requestIdleCallback(() => t(n)), !0) : !1;
|
|
3317
3237
|
};
|
|
3318
3238
|
if (!r()) {
|
|
3319
3239
|
const a = new MutationObserver((s, i) => {
|
|
@@ -3322,12 +3242,12 @@ const Tl = ({
|
|
|
3322
3242
|
return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
|
|
3323
3243
|
}
|
|
3324
3244
|
}, [e.hash, t]);
|
|
3325
|
-
},
|
|
3326
|
-
const e =
|
|
3245
|
+
}, Ol = () => {
|
|
3246
|
+
const e = It(), t = $t(e.pathname);
|
|
3327
3247
|
be(() => {
|
|
3328
3248
|
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
3329
3249
|
}, [e.pathname]);
|
|
3330
|
-
},
|
|
3250
|
+
}, bo = va(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ o.jsx(
|
|
3331
3251
|
"nav",
|
|
3332
3252
|
{
|
|
3333
3253
|
"data-navigation": String(n),
|
|
@@ -3341,38 +3261,38 @@ const Tl = ({
|
|
|
3341
3261
|
children: e
|
|
3342
3262
|
}
|
|
3343
3263
|
));
|
|
3344
|
-
|
|
3345
|
-
const
|
|
3346
|
-
const e =
|
|
3264
|
+
bo.displayName = "SidebarWrapper";
|
|
3265
|
+
const Il = () => {
|
|
3266
|
+
const e = $t(null), t = _a();
|
|
3347
3267
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3348
3268
|
/* @__PURE__ */ o.jsxs(
|
|
3349
|
-
|
|
3269
|
+
bo,
|
|
3350
3270
|
{
|
|
3351
3271
|
ref: e,
|
|
3352
3272
|
pushMainContent: t.data.items.length > 0,
|
|
3353
3273
|
children: [
|
|
3354
|
-
/* @__PURE__ */ o.jsx(
|
|
3355
|
-
t.data.items.map((n) => /* @__PURE__ */ o.jsx(
|
|
3356
|
-
/* @__PURE__ */ o.jsx(
|
|
3274
|
+
/* @__PURE__ */ o.jsx(Pe, { name: "zudoku-before-navigation" }),
|
|
3275
|
+
t.data.items.map((n) => /* @__PURE__ */ o.jsx(Tt, { item: n }, n.label)),
|
|
3276
|
+
/* @__PURE__ */ o.jsx(Pe, { name: "zudoku-after-navigation" })
|
|
3357
3277
|
]
|
|
3358
3278
|
}
|
|
3359
3279
|
),
|
|
3360
3280
|
/* @__PURE__ */ o.jsxs(
|
|
3361
|
-
|
|
3281
|
+
Jt,
|
|
3362
3282
|
{
|
|
3363
3283
|
className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none",
|
|
3364
3284
|
"aria-describedby": void 0,
|
|
3365
3285
|
children: [
|
|
3366
|
-
/* @__PURE__ */ o.jsx(
|
|
3367
|
-
t.data.items.map((n) => /* @__PURE__ */ o.jsx(
|
|
3286
|
+
/* @__PURE__ */ o.jsx(In, { children: /* @__PURE__ */ o.jsx(Zt, { children: "Sidebar" }) }),
|
|
3287
|
+
t.data.items.map((n) => /* @__PURE__ */ o.jsx(Tt, { item: n }, n.label))
|
|
3368
3288
|
]
|
|
3369
3289
|
}
|
|
3370
3290
|
)
|
|
3371
3291
|
] });
|
|
3372
|
-
},
|
|
3373
|
-
const t =
|
|
3374
|
-
|
|
3375
|
-
const s =
|
|
3292
|
+
}, Al = ({ children: e }) => {
|
|
3293
|
+
const t = It(), { setActiveAnchor: n } = kt(), { meta: r, authentication: a } = Ue();
|
|
3294
|
+
_l(), Ol();
|
|
3295
|
+
const s = $t(t.pathname);
|
|
3376
3296
|
return be(() => {
|
|
3377
3297
|
var i;
|
|
3378
3298
|
(i = a == null ? void 0 : a.pageLoad) == null || i.call(a);
|
|
@@ -3380,18 +3300,18 @@ const Al = () => {
|
|
|
3380
3300
|
t.pathname !== s.current && n(""), s.current = t.pathname;
|
|
3381
3301
|
}, [t.pathname, n]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3382
3302
|
!1,
|
|
3383
|
-
/* @__PURE__ */ o.jsxs(
|
|
3303
|
+
/* @__PURE__ */ o.jsxs(_t, { titleTemplate: r == null ? void 0 : r.title, children: [
|
|
3384
3304
|
(r == null ? void 0 : r.description) && /* @__PURE__ */ o.jsx("meta", { name: "description", content: r.description }),
|
|
3385
3305
|
(r == null ? void 0 : r.favicon) && /* @__PURE__ */ o.jsx("link", { rel: "icon", href: r.favicon })
|
|
3386
3306
|
] }),
|
|
3387
|
-
/* @__PURE__ */ o.jsx(
|
|
3388
|
-
/* @__PURE__ */ o.jsx(
|
|
3307
|
+
/* @__PURE__ */ o.jsx(Pe, { name: "layout-before-head" }),
|
|
3308
|
+
/* @__PURE__ */ o.jsx(mo, {}),
|
|
3389
3309
|
/* @__PURE__ */ o.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ o.jsx(
|
|
3390
|
-
|
|
3310
|
+
Fn,
|
|
3391
3311
|
{
|
|
3392
|
-
fallback: /* @__PURE__ */ o.jsx("main", { className: "grid h-full place-items-center", children: /* @__PURE__ */ o.jsx(
|
|
3393
|
-
children: /* @__PURE__ */ o.jsxs(
|
|
3394
|
-
/* @__PURE__ */ o.jsx(
|
|
3312
|
+
fallback: /* @__PURE__ */ o.jsx("main", { className: "grid h-full place-items-center", children: /* @__PURE__ */ o.jsx(Ja, {}) }),
|
|
3313
|
+
children: /* @__PURE__ */ o.jsxs(Xt, { direction: "left", children: [
|
|
3314
|
+
/* @__PURE__ */ o.jsx(Il, {}),
|
|
3395
3315
|
/* @__PURE__ */ o.jsx(
|
|
3396
3316
|
"div",
|
|
3397
3317
|
{
|
|
@@ -3399,8 +3319,8 @@ const Al = () => {
|
|
|
3399
3319
|
"lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
|
|
3400
3320
|
"peer-data-[navigation=false]:hidden"
|
|
3401
3321
|
),
|
|
3402
|
-
children: /* @__PURE__ */ o.jsxs(
|
|
3403
|
-
/* @__PURE__ */ o.jsx(
|
|
3322
|
+
children: /* @__PURE__ */ o.jsxs(fo, { className: "flex items-center gap-2", children: [
|
|
3323
|
+
/* @__PURE__ */ o.jsx(Ua, { size: 16, strokeWidth: 1.5 }),
|
|
3404
3324
|
/* @__PURE__ */ o.jsx("span", { className: "text-sm", children: "Menu" })
|
|
3405
3325
|
] })
|
|
3406
3326
|
}
|
|
@@ -3416,9 +3336,9 @@ const Al = () => {
|
|
|
3416
3336
|
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
|
|
3417
3337
|
),
|
|
3418
3338
|
children: [
|
|
3419
|
-
/* @__PURE__ */ o.jsx(
|
|
3420
|
-
e ?? /* @__PURE__ */ o.jsx(
|
|
3421
|
-
/* @__PURE__ */ o.jsx(
|
|
3339
|
+
/* @__PURE__ */ o.jsx(Pe, { name: "zudoku-before-content" }),
|
|
3340
|
+
e ?? /* @__PURE__ */ o.jsx(Dn, {}),
|
|
3341
|
+
/* @__PURE__ */ o.jsx(Pe, { name: "zudoku-after-content" })
|
|
3422
3342
|
]
|
|
3423
3343
|
}
|
|
3424
3344
|
)
|
|
@@ -3426,7 +3346,7 @@ const Al = () => {
|
|
|
3426
3346
|
}
|
|
3427
3347
|
) })
|
|
3428
3348
|
] });
|
|
3429
|
-
}, Zl =
|
|
3349
|
+
}, Zl = Lo, ec = da, tc = vo, nc = Al, rc = Ot, oc = Vo, ac = Za, sc = gs, ic = vs, lc = Rt, cc = _t;
|
|
3430
3350
|
export {
|
|
3431
3351
|
sc as Bootstrap,
|
|
3432
3352
|
ic as BootstrapStatic,
|