zudoku 0.3.0-dev.99 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/demo.js +5 -9
- package/dist/app/demo.js.map +1 -1
- package/dist/app/main.js +9 -7
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +12 -8
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/dev/handler.js +1 -1
- package/dist/config/validators/SidebarSchema.js +9 -4
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/lib/components/ClientOnly.d.ts +3 -0
- package/dist/lib/components/ClientOnly.js +7 -0
- package/dist/lib/components/ClientOnly.js.map +1 -0
- package/dist/lib/components/Header.js +3 -2
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Markdown.js +3 -2
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/Search.js +5 -8
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/SlotletProvider.d.ts +2 -2
- package/dist/lib/components/SlotletProvider.js +7 -2
- package/dist/lib/components/SlotletProvider.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js +6 -2
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +3 -2
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js +2 -3
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +1 -1
- package/dist/lib/core/plugins.js +1 -1
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +18 -3
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +5 -5
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js +3 -1
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +3 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +5 -9
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +3 -1
- package/dist/lib/plugins/openapi/Sidecar.js +11 -5
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +2 -3
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js +5 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +13 -0
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js +28 -0
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +6 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.js +58 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/utils.d.ts +3 -0
- package/dist/lib/plugins/openapi/schema/utils.js +6 -0
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -0
- package/dist/lib/plugins/search-inkeep/index.js +3 -5
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/themeToggle.d.ts +1 -0
- package/dist/lib/themeToggle.js +7 -0
- package/dist/lib/themeToggle.js.map +1 -0
- package/dist/lib/util/MdxComponents.js +4 -4
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/vite/config.d.ts +4 -5
- package/dist/vite/config.js +7 -4
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +2 -2
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/dev-server.d.ts +0 -1
- package/dist/vite/dev-server.js +2 -21
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.js +2 -11
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +3 -3
- package/dist/vite/plugin-api-keys.js +2 -1
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +3 -3
- package/dist/vite/plugin-api.js +2 -1
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +3 -3
- package/dist/vite/plugin-auth.js +2 -1
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +3 -3
- package/dist/vite/plugin-component.js +17 -14
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +4 -0
- package/dist/vite/plugin-config-reload.js +24 -0
- package/dist/vite/plugin-config-reload.js.map +1 -0
- package/dist/vite/plugin-config.d.ts +2 -2
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-css.d.ts +3 -3
- package/dist/vite/plugin-custom-css.js +2 -1
- package/dist/vite/plugin-custom-css.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +3 -3
- package/dist/vite/plugin-docs.js +3 -2
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-html-transform.d.ts +2 -0
- package/dist/vite/plugin-html-transform.js +15 -0
- package/dist/vite/plugin-html-transform.js.map +1 -0
- package/dist/vite/plugin-mdx.d.ts +3 -3
- package/dist/vite/plugin-mdx.js +2 -1
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-metadata.d.ts +1 -1
- package/dist/vite/plugin-redirect.d.ts +3 -3
- package/dist/vite/plugin-redirect.js +2 -1
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-sidebar.d.ts +3 -3
- package/dist/vite/plugin-sidebar.js +5 -4
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin.d.ts +3 -2
- package/dist/vite/plugin.js +16 -11
- package/dist/vite/plugin.js.map +1 -1
- package/lib/{CategoryHeading-BWq12Bfa.js → CategoryHeading-z15xh7Jb.js} +2 -2
- package/lib/{CategoryHeading-BWq12Bfa.js.map → CategoryHeading-z15xh7Jb.js.map} +1 -1
- package/lib/{Combination-D-9IH0zy.js → Combination-DTfV-c98.js} +2 -2
- package/lib/{Combination-D-9IH0zy.js.map → Combination-DTfV-c98.js.map} +1 -1
- package/lib/{Input-HmAaR6kw.js → Input-DB9VROFR.js} +3 -3
- package/lib/{Input-HmAaR6kw.js.map → Input-DB9VROFR.js.map} +1 -1
- package/lib/Markdown-CEccPMI_.js +20508 -0
- package/lib/Markdown-CEccPMI_.js.map +1 -0
- package/lib/{MdxPage-oN3huD58.js → MdxPage-CnqOoqvp.js} +12 -15
- package/lib/MdxPage-CnqOoqvp.js.map +1 -0
- package/lib/OperationList-Cxiw2Z-v.js +457 -0
- package/lib/OperationList-Cxiw2Z-v.js.map +1 -0
- package/lib/{Route-DAF15JAU.js → Route-DfAFiR7v.js} +2 -2
- package/lib/{Route-DAF15JAU.js.map → Route-DfAFiR7v.js.map} +1 -1
- package/lib/SlotletProvider-ByLSCZQa.js +262 -0
- package/lib/SlotletProvider-ByLSCZQa.js.map +1 -0
- package/lib/{Spinner-BCz1kNGw.js → Spinner-BT_AYFrA.js} +3 -3
- package/lib/{Spinner-BCz1kNGw.js.map → Spinner-BT_AYFrA.js.map} +1 -1
- package/lib/assets/{worker-CR7aeKop.js → worker-CzHUifWA.js} +710 -703
- package/lib/assets/{worker-CR7aeKop.js.map → worker-CzHUifWA.js.map} +1 -1
- package/lib/{index-CtKkHGcd.js → index-D-9zqIOh.js} +1159 -1147
- package/lib/index-D-9zqIOh.js.map +1 -0
- package/lib/{index-D-9Z7HSn.js → index-Dz4LyXZI.js} +3 -3
- package/lib/{index-D-9Z7HSn.js.map → index-Dz4LyXZI.js.map} +1 -1
- package/lib/zudoku.components.js +775 -759
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +734 -727
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +4 -4
- package/lib/zudoku.plugin-custom-page.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-search-inkeep.js +23 -22
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/package.json +99 -78
- package/src/app/demo-cdn.html +1 -1
- package/src/app/demo.html +1 -1
- package/src/app/demo.tsx +7 -9
- package/src/app/main.css +22 -0
- package/src/app/main.tsx +11 -8
- package/src/app/standalone.html +1 -1
- package/src/app/standalone.tsx +13 -8
- package/src/lib/components/ClientOnly.tsx +13 -0
- package/src/lib/components/Header.tsx +3 -0
- package/src/lib/components/Markdown.tsx +3 -2
- package/src/lib/components/Search.tsx +7 -7
- package/src/lib/components/SlotletProvider.tsx +10 -5
- package/src/lib/components/navigation/SidebarCategory.tsx +13 -2
- package/src/lib/components/navigation/SidebarItem.tsx +3 -2
- package/src/lib/components/navigation/SidebarWrapper.tsx +20 -18
- package/src/lib/core/plugins.ts +2 -2
- package/src/lib/oas/graphql/index.ts +26 -7
- package/src/lib/plugins/markdown/MdxPage.tsx +0 -1
- package/src/lib/plugins/openapi/OperationListItem.tsx +22 -17
- package/src/lib/plugins/openapi/ParameterList.tsx +10 -8
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +51 -39
- package/src/lib/plugins/openapi/Sidecar.tsx +34 -19
- package/src/lib/plugins/openapi/index.tsx +1 -1
- package/src/lib/plugins/openapi/playground/Playground.tsx +3 -6
- package/src/lib/plugins/openapi/playground/createUrl.ts +6 -5
- package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +126 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +172 -0
- package/src/lib/plugins/openapi/schema/utils.ts +10 -0
- package/src/lib/plugins/search-inkeep/index.tsx +11 -9
- package/src/lib/themeToggle.ts +7 -0
- package/src/lib/util/MdxComponents.tsx +12 -12
- package/LICENSE.md +0 -21
- package/dist/lib/plugins/openapi/SchemaListView.d.ts +0 -7
- package/dist/lib/plugins/openapi/SchemaListView.js +0 -27
- package/dist/lib/plugins/openapi/SchemaListView.js.map +0 -1
- package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +0 -8
- package/dist/lib/plugins/openapi/SchemaListViewItem.js +0 -25
- package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +0 -1
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +0 -8
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +0 -17
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +0 -1
- package/lib/Markdown-B_Gax7at.js +0 -14108
- package/lib/Markdown-B_Gax7at.js.map +0 -1
- package/lib/MdxPage-oN3huD58.js.map +0 -1
- package/lib/OperationList-Ctj0ihBN.js +0 -448
- package/lib/OperationList-Ctj0ihBN.js.map +0 -1
- package/lib/SlotletProvider-CzMAO73_.js +0 -82
- package/lib/SlotletProvider-CzMAO73_.js.map +0 -1
- package/lib/index-CtKkHGcd.js.map +0 -1
- package/src/lib/plugins/openapi/SchemaListView.tsx +0 -75
- package/src/lib/plugins/openapi/SchemaListViewItem.tsx +0 -125
- package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +0 -63
package/lib/zudoku.components.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ir = Object.defineProperty;
|
|
2
2
|
var dt = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
set _(
|
|
10
|
-
|
|
5
|
+
var cr = (e, t, n) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var j = (e, t, n) => cr(e, typeof t != "symbol" ? t + "" : t, n), ht = (e, t, n) => t.has(e) || dt("Cannot " + n);
|
|
7
|
+
var f = (e, t, n) => (ht(e, t, "read from private field"), n ? n.call(e) : t.get(e)), N = (e, t, n) => t.has(e) ? dt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), S = (e, t, n, r) => (ht(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
8
|
+
var Ce = (e, t, n, r) => ({
|
|
9
|
+
set _(o) {
|
|
10
|
+
S(e, t, o, n);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return
|
|
13
|
+
return f(e, t, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { H as
|
|
17
|
-
import { d as
|
|
18
|
-
import { E as
|
|
19
|
-
import { j as
|
|
20
|
-
import { M as
|
|
21
|
-
import { c as
|
|
16
|
+
import { H as Pt, a as Ge, M as ur, u as lr, A as dr, b as hr } from "./utils-Bh4upQ0e.js";
|
|
17
|
+
import { d as fr, a as pr, R as mr, N as je, u as De, L as Re, b as gr, c as vr, O as jt, e as xr } from "./index-7kcHaXD6.js";
|
|
18
|
+
import { E as Rt, S as se, a as yr, R as wr } from "./SlotletProvider-ByLSCZQa.js";
|
|
19
|
+
import { j as a } from "./jsx-runtime-B6kdoens.js";
|
|
20
|
+
import { M as br, c as Mr, a as Et, b as _t, A as Cr, u as ge, h as Sr, d as y, e as Pr, F as jr, D as Rr, C as Er, P as ce, f as He, g as _r, i as Nt, R as Nr, S as Dr, j as Ir, k as kr, l as Dt, m as Ar, n as Ee, o as It, p as Or, B as Qe } from "./Combination-DTfV-c98.js";
|
|
21
|
+
import { c as ue, a as b, C as Tr, b as Fr, u as Lr, T as Kr, M as $r, V as Br, d as ze, e as Qr, f as qr } from "./Markdown-CEccPMI_.js";
|
|
22
22
|
import * as c from "react";
|
|
23
|
-
import
|
|
23
|
+
import Ur, { StrictMode as kt, createContext as At, Component as Gr, createElement as ft, isValidElement as Hr, useState as ie, useCallback as Ot, useEffect as W, Suspense as Tt, memo as Ft, useMemo as Ke, useContext as zr, Fragment as Vr, useRef as Ve, forwardRef as Yr } from "react";
|
|
24
24
|
import { g as Ye } from "./_commonjsHelpers-BVfed4GL.js";
|
|
25
|
-
import { r as
|
|
26
|
-
import { S as qe, R as
|
|
27
|
-
import { S as
|
|
25
|
+
import { r as Xr } from "./router-BiRCp01d.js";
|
|
26
|
+
import { S as qe, R as Wr, T as Jr, C as Zr } from "./index-Dz4LyXZI.js";
|
|
27
|
+
import { S as Lt, h as Kt, Q as ea, n as E, m as pt, a as mt, b as $, e as ta, c as na, d as ra, f as aa, o as gt, r as vt, g as oa, i as xt, p as yt, s as sa, u as Ie, j as ia, Z as ca, k as ua, l as $t, q as la } from "./ZudokuContext-BIZ8zHbZ.js";
|
|
28
28
|
import { j as Xe } from "./joinPath-B7kNnUX4.js";
|
|
29
|
-
import { c as
|
|
29
|
+
import { c as Bt, P as ke, R as da, I as ha, S as $e, a as fa } from "./Spinner-BT_AYFrA.js";
|
|
30
30
|
/**
|
|
31
31
|
* @license lucide-react v0.378.0 - ISC
|
|
32
32
|
*
|
|
33
33
|
* This source code is licensed under the ISC license.
|
|
34
34
|
* See the LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
const
|
|
36
|
+
const Qt = ue("ChevronRight", [
|
|
37
37
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
38
38
|
]);
|
|
39
39
|
/**
|
|
@@ -42,7 +42,7 @@ const Bt = ie("ChevronRight", [
|
|
|
42
42
|
* This source code is licensed under the ISC license.
|
|
43
43
|
* See the LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
const
|
|
45
|
+
const pa = ue("Dot", [
|
|
46
46
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
|
47
47
|
]);
|
|
48
48
|
/**
|
|
@@ -51,7 +51,7 @@ const fo = ie("Dot", [
|
|
|
51
51
|
* This source code is licensed under the ISC license.
|
|
52
52
|
* See the LICENSE file in the root directory of this source tree.
|
|
53
53
|
*/
|
|
54
|
-
const
|
|
54
|
+
const ma = ue("ExternalLink", [
|
|
55
55
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
56
56
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
57
57
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
@@ -62,7 +62,7 @@ const po = ie("ExternalLink", [
|
|
|
62
62
|
* This source code is licensed under the ISC license.
|
|
63
63
|
* See the LICENSE file in the root directory of this source tree.
|
|
64
64
|
*/
|
|
65
|
-
const
|
|
65
|
+
const ga = ue("MoonStar", [
|
|
66
66
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
67
67
|
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
68
68
|
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
@@ -73,7 +73,7 @@ const mo = ie("MoonStar", [
|
|
|
73
73
|
* This source code is licensed under the ISC license.
|
|
74
74
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
75
|
*/
|
|
76
|
-
const
|
|
76
|
+
const va = ue("Search", [
|
|
77
77
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
78
78
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
79
79
|
]);
|
|
@@ -83,7 +83,7 @@ const go = ie("Search", [
|
|
|
83
83
|
* This source code is licensed under the ISC license.
|
|
84
84
|
* See the LICENSE file in the root directory of this source tree.
|
|
85
85
|
*/
|
|
86
|
-
const
|
|
86
|
+
const xa = ue("Sun", [
|
|
87
87
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
88
88
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
89
89
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -94,14 +94,14 @@ const vo = ie("Sun", [
|
|
|
94
94
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
95
95
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
96
96
|
]);
|
|
97
|
-
function
|
|
98
|
-
return /* @__PURE__ */
|
|
97
|
+
function ya({ error: e }) {
|
|
98
|
+
return /* @__PURE__ */ a.jsx(Rt, { error: e });
|
|
99
99
|
}
|
|
100
|
-
var
|
|
101
|
-
const
|
|
102
|
-
Object.defineProperty(
|
|
103
|
-
var
|
|
104
|
-
function
|
|
100
|
+
var ve = {};
|
|
101
|
+
const wa = /* @__PURE__ */ Ye(Xr), ba = /* @__PURE__ */ Ye(fr), Ma = /* @__PURE__ */ Ye(pr);
|
|
102
|
+
Object.defineProperty(ve, "__esModule", { value: !0 });
|
|
103
|
+
var Ca = Ur, F = wa, We = ba, B = Ma;
|
|
104
|
+
function Sa(e) {
|
|
105
105
|
if (e && e.__esModule) return e;
|
|
106
106
|
var t = /* @__PURE__ */ Object.create(null);
|
|
107
107
|
return e && Object.keys(e).forEach(function(n) {
|
|
@@ -116,58 +116,58 @@ function Co(e) {
|
|
|
116
116
|
}
|
|
117
117
|
}), t.default = e, Object.freeze(t);
|
|
118
118
|
}
|
|
119
|
-
var O = /* @__PURE__ */
|
|
120
|
-
function
|
|
119
|
+
var O = /* @__PURE__ */ Sa(Ca);
|
|
120
|
+
function Pa({
|
|
121
121
|
basename: e,
|
|
122
122
|
children: t,
|
|
123
123
|
location: n = "/",
|
|
124
124
|
future: r
|
|
125
125
|
}) {
|
|
126
126
|
typeof n == "string" && (n = B.parsePath(n));
|
|
127
|
-
let
|
|
127
|
+
let o = F.Action.Pop, s = {
|
|
128
128
|
pathname: n.pathname || "/",
|
|
129
129
|
search: n.search || "",
|
|
130
130
|
hash: n.hash || "",
|
|
131
131
|
state: n.state != null ? n.state : null,
|
|
132
132
|
key: n.key || "default"
|
|
133
|
-
}, i =
|
|
133
|
+
}, i = qt();
|
|
134
134
|
return /* @__PURE__ */ O.createElement(B.Router, {
|
|
135
135
|
basename: e,
|
|
136
136
|
children: t,
|
|
137
137
|
location: s,
|
|
138
|
-
navigationType:
|
|
138
|
+
navigationType: o,
|
|
139
139
|
navigator: i,
|
|
140
140
|
future: r,
|
|
141
141
|
static: !0
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function ja({
|
|
145
145
|
context: e,
|
|
146
146
|
router: t,
|
|
147
147
|
hydrate: n = !0,
|
|
148
148
|
nonce: r
|
|
149
149
|
}) {
|
|
150
150
|
t && e || (process.env.NODE_ENV !== "production" ? F.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : F.UNSAFE_invariant(!1));
|
|
151
|
-
let
|
|
151
|
+
let o = {
|
|
152
152
|
router: t,
|
|
153
|
-
navigator:
|
|
153
|
+
navigator: qt(),
|
|
154
154
|
static: !0,
|
|
155
155
|
staticContext: e,
|
|
156
156
|
basename: e.basename || "/"
|
|
157
157
|
}, s = /* @__PURE__ */ new Map(), i = "";
|
|
158
158
|
if (n !== !1) {
|
|
159
|
-
let
|
|
159
|
+
let l = {
|
|
160
160
|
loaderData: e.loaderData,
|
|
161
161
|
actionData: e.actionData,
|
|
162
|
-
errors:
|
|
162
|
+
errors: Ea(e.errors)
|
|
163
163
|
};
|
|
164
|
-
i = `window.__staticRouterHydrationData = JSON.parse(${
|
|
164
|
+
i = `window.__staticRouterHydrationData = JSON.parse(${Aa(JSON.stringify(JSON.stringify(l)))});`;
|
|
165
165
|
}
|
|
166
166
|
let {
|
|
167
167
|
state: u
|
|
168
|
-
} =
|
|
168
|
+
} = o.router;
|
|
169
169
|
return /* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement(B.UNSAFE_DataRouterContext.Provider, {
|
|
170
|
-
value:
|
|
170
|
+
value: o
|
|
171
171
|
}, /* @__PURE__ */ O.createElement(B.UNSAFE_DataRouterStateContext.Provider, {
|
|
172
172
|
value: u
|
|
173
173
|
}, /* @__PURE__ */ O.createElement(B.UNSAFE_FetchersContext.Provider, {
|
|
@@ -177,15 +177,15 @@ function So({
|
|
|
177
177
|
isTransitioning: !1
|
|
178
178
|
}
|
|
179
179
|
}, /* @__PURE__ */ O.createElement(B.Router, {
|
|
180
|
-
basename:
|
|
180
|
+
basename: o.basename,
|
|
181
181
|
location: u.location,
|
|
182
182
|
navigationType: u.historyAction,
|
|
183
|
-
navigator:
|
|
184
|
-
static:
|
|
183
|
+
navigator: o.navigator,
|
|
184
|
+
static: o.static,
|
|
185
185
|
future: {
|
|
186
186
|
v7_relativeSplatPath: t.future.v7_relativeSplatPath
|
|
187
187
|
}
|
|
188
|
-
}, /* @__PURE__ */ O.createElement(
|
|
188
|
+
}, /* @__PURE__ */ O.createElement(Ra, {
|
|
189
189
|
routes: t.routes,
|
|
190
190
|
future: t.future,
|
|
191
191
|
state: u
|
|
@@ -197,35 +197,35 @@ function So({
|
|
|
197
197
|
}
|
|
198
198
|
}) : null);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Ra({
|
|
201
201
|
routes: e,
|
|
202
202
|
future: t,
|
|
203
203
|
state: n
|
|
204
204
|
}) {
|
|
205
205
|
return We.UNSAFE_useRoutesImpl(e, void 0, n, t);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Ea(e) {
|
|
208
208
|
if (!e) return null;
|
|
209
209
|
let t = Object.entries(e), n = {};
|
|
210
|
-
for (let [r,
|
|
211
|
-
F.isRouteErrorResponse(
|
|
212
|
-
...
|
|
210
|
+
for (let [r, o] of t)
|
|
211
|
+
F.isRouteErrorResponse(o) ? n[r] = {
|
|
212
|
+
...o,
|
|
213
213
|
__type: "RouteErrorResponse"
|
|
214
|
-
} :
|
|
215
|
-
message:
|
|
214
|
+
} : o instanceof Error ? n[r] = {
|
|
215
|
+
message: o.message,
|
|
216
216
|
__type: "Error",
|
|
217
217
|
// If this is a subclass (i.e., ReferenceError), send up the type so we
|
|
218
218
|
// can re-create the same type during hydration.
|
|
219
|
-
...
|
|
220
|
-
__subType:
|
|
219
|
+
...o.name !== "Error" ? {
|
|
220
|
+
__subType: o.name
|
|
221
221
|
} : {}
|
|
222
|
-
} : n[r] =
|
|
222
|
+
} : n[r] = o;
|
|
223
223
|
return n;
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function qt() {
|
|
226
226
|
return {
|
|
227
|
-
createHref:
|
|
228
|
-
encodeLocation:
|
|
227
|
+
createHref: Ut,
|
|
228
|
+
encodeLocation: Gt,
|
|
229
229
|
push(e) {
|
|
230
230
|
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.`);
|
|
231
231
|
},
|
|
@@ -243,18 +243,18 @@ function Qt() {
|
|
|
243
243
|
}
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function _a(e, t) {
|
|
247
247
|
return F.createStaticHandler(e, {
|
|
248
248
|
...t,
|
|
249
249
|
mapRouteProperties: We.UNSAFE_mapRouteProperties
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
let r = {},
|
|
254
|
-
let
|
|
252
|
+
function Na(e, t, n = {}) {
|
|
253
|
+
let r = {}, o = F.UNSAFE_convertRoutesToDataRoutes(e, We.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((u) => {
|
|
254
|
+
let l = r[u.route.id] || u.route;
|
|
255
255
|
return {
|
|
256
256
|
...u,
|
|
257
|
-
route:
|
|
257
|
+
route: l
|
|
258
258
|
};
|
|
259
259
|
}), i = (u) => `You cannot use router.${u}() on the server because it is a stateless environment`;
|
|
260
260
|
return {
|
|
@@ -262,13 +262,13 @@ function _o(e, t, n = {}) {
|
|
|
262
262
|
return t.basename;
|
|
263
263
|
},
|
|
264
264
|
get future() {
|
|
265
|
-
var u,
|
|
265
|
+
var u, l;
|
|
266
266
|
return {
|
|
267
267
|
v7_fetcherPersist: !1,
|
|
268
268
|
v7_normalizeFormMethod: !1,
|
|
269
269
|
v7_partialHydration: ((u = n.future) == null ? void 0 : u.v7_partialHydration) === !0,
|
|
270
270
|
v7_prependBasename: !1,
|
|
271
|
-
v7_relativeSplatPath: ((
|
|
271
|
+
v7_relativeSplatPath: ((l = n.future) == null ? void 0 : l.v7_relativeSplatPath) === !0,
|
|
272
272
|
v7_skipActionErrorRevalidation: !1
|
|
273
273
|
};
|
|
274
274
|
},
|
|
@@ -290,7 +290,7 @@ function _o(e, t, n = {}) {
|
|
|
290
290
|
};
|
|
291
291
|
},
|
|
292
292
|
get routes() {
|
|
293
|
-
return
|
|
293
|
+
return o;
|
|
294
294
|
},
|
|
295
295
|
get window() {
|
|
296
296
|
},
|
|
@@ -312,8 +312,8 @@ function _o(e, t, n = {}) {
|
|
|
312
312
|
revalidate() {
|
|
313
313
|
throw i("revalidate");
|
|
314
314
|
},
|
|
315
|
-
createHref:
|
|
316
|
-
encodeLocation:
|
|
315
|
+
createHref: Ut,
|
|
316
|
+
encodeLocation: Gt,
|
|
317
317
|
getFetcher() {
|
|
318
318
|
return F.IDLE_FETCHER;
|
|
319
319
|
},
|
|
@@ -339,68 +339,68 @@ function _o(e, t, n = {}) {
|
|
|
339
339
|
}
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function Ut(e) {
|
|
343
343
|
return typeof e == "string" ? e : B.createPath(e);
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function Gt(e) {
|
|
346
346
|
let t = typeof e == "string" ? e : B.createPath(e);
|
|
347
347
|
t = t.replace(/ $/, "%20");
|
|
348
|
-
let n =
|
|
348
|
+
let n = Da.test(t) ? new URL(t) : new URL(t, "http://localhost");
|
|
349
349
|
return {
|
|
350
350
|
pathname: n.pathname,
|
|
351
351
|
search: n.search,
|
|
352
352
|
hash: n.hash
|
|
353
353
|
};
|
|
354
354
|
}
|
|
355
|
-
const
|
|
355
|
+
const Da = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ia = {
|
|
356
356
|
"&": "\\u0026",
|
|
357
357
|
">": "\\u003e",
|
|
358
358
|
"<": "\\u003c",
|
|
359
359
|
"\u2028": "\\u2028",
|
|
360
360
|
"\u2029": "\\u2029"
|
|
361
|
-
},
|
|
362
|
-
function
|
|
363
|
-
return e.replace(
|
|
361
|
+
}, ka = /[&><\u2028\u2029]/g;
|
|
362
|
+
function Aa(e) {
|
|
363
|
+
return e.replace(ka, (t) => Ia[t]);
|
|
364
364
|
}
|
|
365
|
-
|
|
366
|
-
var
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
const
|
|
365
|
+
ve.StaticRouter = Pa;
|
|
366
|
+
var Oa = ve.StaticRouterProvider = ja;
|
|
367
|
+
ve.createStaticHandler = _a;
|
|
368
|
+
ve.createStaticRouter = Na;
|
|
369
|
+
const Ta = ({
|
|
370
370
|
router: e,
|
|
371
371
|
hydrate: t = !1
|
|
372
|
-
}) => /* @__PURE__ */
|
|
372
|
+
}) => /* @__PURE__ */ a.jsx(kt, { children: /* @__PURE__ */ a.jsx(Pt, { children: /* @__PURE__ */ a.jsx(qe.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(mr, { router: e }) }) }) }), Fa = ({
|
|
373
373
|
router: e,
|
|
374
374
|
context: t,
|
|
375
375
|
helmetContext: n
|
|
376
|
-
}) => /* @__PURE__ */
|
|
377
|
-
var T, Mt,
|
|
376
|
+
}) => /* @__PURE__ */ a.jsx(kt, { children: /* @__PURE__ */ a.jsx(Pt, { context: n, children: /* @__PURE__ */ a.jsx(Oa, { router: e, context: t }) }) });
|
|
377
|
+
var T, Mt, La = (Mt = class extends Lt {
|
|
378
378
|
constructor(t = {}) {
|
|
379
379
|
super();
|
|
380
380
|
N(this, T);
|
|
381
|
-
this.config = t,
|
|
381
|
+
this.config = t, S(this, T, /* @__PURE__ */ new Map());
|
|
382
382
|
}
|
|
383
383
|
build(t, n, r) {
|
|
384
|
-
const
|
|
384
|
+
const o = n.queryKey, s = n.queryHash ?? Kt(o, n);
|
|
385
385
|
let i = this.get(s);
|
|
386
|
-
return i || (i = new
|
|
386
|
+
return i || (i = new ea({
|
|
387
387
|
cache: this,
|
|
388
|
-
queryKey:
|
|
388
|
+
queryKey: o,
|
|
389
389
|
queryHash: s,
|
|
390
390
|
options: t.defaultQueryOptions(n),
|
|
391
391
|
state: r,
|
|
392
|
-
defaultOptions: t.getQueryDefaults(
|
|
392
|
+
defaultOptions: t.getQueryDefaults(o)
|
|
393
393
|
}), this.add(i)), i;
|
|
394
394
|
}
|
|
395
395
|
add(t) {
|
|
396
|
-
|
|
396
|
+
f(this, T).has(t.queryHash) || (f(this, T).set(t.queryHash, t), this.notify({
|
|
397
397
|
type: "added",
|
|
398
398
|
query: t
|
|
399
399
|
}));
|
|
400
400
|
}
|
|
401
401
|
remove(t) {
|
|
402
|
-
const n =
|
|
403
|
-
n && (t.destroy(), n === t &&
|
|
402
|
+
const n = f(this, T).get(t.queryHash);
|
|
403
|
+
n && (t.destroy(), n === t && f(this, T).delete(t.queryHash), this.notify({ type: "removed", query: t }));
|
|
404
404
|
}
|
|
405
405
|
clear() {
|
|
406
406
|
E.batch(() => {
|
|
@@ -410,10 +410,10 @@ var T, Mt, Fo = (Mt = class extends Ft {
|
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
412
|
get(t) {
|
|
413
|
-
return
|
|
413
|
+
return f(this, T).get(t);
|
|
414
414
|
}
|
|
415
415
|
getAll() {
|
|
416
|
-
return [...
|
|
416
|
+
return [...f(this, T).values()];
|
|
417
417
|
}
|
|
418
418
|
find(t) {
|
|
419
419
|
const n = { exact: !0, ...t };
|
|
@@ -446,43 +446,43 @@ var T, Mt, Fo = (Mt = class extends Ft {
|
|
|
446
446
|
});
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
|
-
}, T = new WeakMap(), Mt),
|
|
449
|
+
}, T = new WeakMap(), Mt), R, me, Ct, Ka = (Ct = class extends Lt {
|
|
450
450
|
constructor(t = {}) {
|
|
451
451
|
super();
|
|
452
|
-
N(this,
|
|
453
|
-
N(this,
|
|
454
|
-
this.config = t,
|
|
452
|
+
N(this, R);
|
|
453
|
+
N(this, me);
|
|
454
|
+
this.config = t, S(this, R, /* @__PURE__ */ new Map()), S(this, me, Date.now());
|
|
455
455
|
}
|
|
456
456
|
build(t, n, r) {
|
|
457
|
-
const
|
|
457
|
+
const o = new br({
|
|
458
458
|
mutationCache: this,
|
|
459
|
-
mutationId: ++
|
|
459
|
+
mutationId: ++Ce(this, me)._,
|
|
460
460
|
options: t.defaultMutationOptions(n),
|
|
461
461
|
state: r
|
|
462
462
|
});
|
|
463
|
-
return this.add(
|
|
463
|
+
return this.add(o), o;
|
|
464
464
|
}
|
|
465
465
|
add(t) {
|
|
466
|
-
const n =
|
|
467
|
-
r.push(t),
|
|
466
|
+
const n = Se(t), r = f(this, R).get(n) ?? [];
|
|
467
|
+
r.push(t), f(this, R).set(n, r), this.notify({ type: "added", mutation: t });
|
|
468
468
|
}
|
|
469
469
|
remove(t) {
|
|
470
470
|
var r;
|
|
471
|
-
const n =
|
|
472
|
-
if (
|
|
473
|
-
const
|
|
474
|
-
|
|
471
|
+
const n = Se(t);
|
|
472
|
+
if (f(this, R).has(n)) {
|
|
473
|
+
const o = (r = f(this, R).get(n)) == null ? void 0 : r.filter((s) => s !== t);
|
|
474
|
+
o && (o.length === 0 ? f(this, R).delete(n) : f(this, R).set(n, o));
|
|
475
475
|
}
|
|
476
476
|
this.notify({ type: "removed", mutation: t });
|
|
477
477
|
}
|
|
478
478
|
canRun(t) {
|
|
479
479
|
var r;
|
|
480
|
-
const n = (r =
|
|
480
|
+
const n = (r = f(this, R).get(Se(t))) == null ? void 0 : r.find((o) => o.state.status === "pending");
|
|
481
481
|
return !n || n === t;
|
|
482
482
|
}
|
|
483
483
|
runNext(t) {
|
|
484
484
|
var r;
|
|
485
|
-
const n = (r =
|
|
485
|
+
const n = (r = f(this, R).get(Se(t))) == null ? void 0 : r.find((o) => o !== t && o.state.isPaused);
|
|
486
486
|
return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
|
|
487
487
|
}
|
|
488
488
|
clear() {
|
|
@@ -493,7 +493,7 @@ var T, Mt, Fo = (Mt = class extends Ft {
|
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
495
|
getAll() {
|
|
496
|
-
return [...
|
|
496
|
+
return [...f(this, R).values()].flat();
|
|
497
497
|
}
|
|
498
498
|
find(t) {
|
|
499
499
|
const n = { exact: !0, ...t };
|
|
@@ -519,17 +519,17 @@ var T, Mt, Fo = (Mt = class extends Ft {
|
|
|
519
519
|
)
|
|
520
520
|
);
|
|
521
521
|
}
|
|
522
|
-
},
|
|
523
|
-
function
|
|
522
|
+
}, R = new WeakMap(), me = new WeakMap(), Ct);
|
|
523
|
+
function Se(e) {
|
|
524
524
|
var t;
|
|
525
525
|
return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function $a(e) {
|
|
528
528
|
return {
|
|
529
529
|
onFetch: (t, n) => {
|
|
530
530
|
const r = async () => {
|
|
531
|
-
var x,
|
|
532
|
-
const
|
|
531
|
+
var x, M, I, Q, V;
|
|
532
|
+
const o = t.options, s = (I = (M = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : M.fetchMore) == null ? void 0 : I.direction, i = ((Q = t.state.data) == null ? void 0 : Q.pages) || [], u = ((V = t.state.data) == null ? void 0 : V.pageParams) || [], l = { pages: [], pageParams: [] };
|
|
533
533
|
let g = !1;
|
|
534
534
|
const p = (C) => {
|
|
535
535
|
Object.defineProperty(C, "signal", {
|
|
@@ -538,7 +538,7 @@ function Ko(e) {
|
|
|
538
538
|
g = !0;
|
|
539
539
|
}), t.signal)
|
|
540
540
|
});
|
|
541
|
-
},
|
|
541
|
+
}, d = ta(t.options, t.fetchOptions), h = async (C, k, L) => {
|
|
542
542
|
if (g)
|
|
543
543
|
return Promise.reject();
|
|
544
544
|
if (k == null && C.pages.length)
|
|
@@ -550,38 +550,38 @@ function Ko(e) {
|
|
|
550
550
|
meta: t.options.meta
|
|
551
551
|
};
|
|
552
552
|
p(Y);
|
|
553
|
-
const Z = await
|
|
553
|
+
const Z = await d(
|
|
554
554
|
Y
|
|
555
|
-
), { maxPages:
|
|
555
|
+
), { maxPages: be } = t.options, X = L ? na : ra;
|
|
556
556
|
return {
|
|
557
|
-
pages: X(C.pages, Z,
|
|
558
|
-
pageParams: X(C.pageParams, k,
|
|
557
|
+
pages: X(C.pages, Z, be),
|
|
558
|
+
pageParams: X(C.pageParams, k, be)
|
|
559
559
|
};
|
|
560
560
|
};
|
|
561
561
|
let v;
|
|
562
562
|
if (s && i.length) {
|
|
563
|
-
const C = s === "backward", k = C ?
|
|
563
|
+
const C = s === "backward", k = C ? Ba : wt, L = {
|
|
564
564
|
pages: i,
|
|
565
565
|
pageParams: u
|
|
566
|
-
}, Y = k(
|
|
567
|
-
v = await
|
|
566
|
+
}, Y = k(o, L);
|
|
567
|
+
v = await h(L, Y, C);
|
|
568
568
|
} else {
|
|
569
|
-
v = await
|
|
570
|
-
|
|
571
|
-
u[0] ??
|
|
569
|
+
v = await h(
|
|
570
|
+
l,
|
|
571
|
+
u[0] ?? o.initialPageParam
|
|
572
572
|
);
|
|
573
573
|
const C = e ?? i.length;
|
|
574
574
|
for (let k = 1; k < C; k++) {
|
|
575
|
-
const L = wt(
|
|
576
|
-
v = await
|
|
575
|
+
const L = wt(o, v);
|
|
576
|
+
v = await h(v, L);
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
return v;
|
|
580
580
|
};
|
|
581
581
|
t.options.persister ? t.fetchFn = () => {
|
|
582
|
-
var
|
|
583
|
-
return (s = (
|
|
584
|
-
|
|
582
|
+
var o, s;
|
|
583
|
+
return (s = (o = t.options).persister) == null ? void 0 : s.call(
|
|
584
|
+
o,
|
|
585
585
|
r,
|
|
586
586
|
{
|
|
587
587
|
queryKey: t.queryKey,
|
|
@@ -603,7 +603,7 @@ function wt(e, { pages: t, pageParams: n }) {
|
|
|
603
603
|
n
|
|
604
604
|
);
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function Ba(e, { pages: t, pageParams: n }) {
|
|
607
607
|
var r;
|
|
608
608
|
return (r = e.getPreviousPageParam) == null ? void 0 : r.call(
|
|
609
609
|
e,
|
|
@@ -613,7 +613,7 @@ function $o(e, { pages: t, pageParams: n }) {
|
|
|
613
613
|
n
|
|
614
614
|
);
|
|
615
615
|
}
|
|
616
|
-
var w, U, G, ne, re, H,
|
|
616
|
+
var w, U, G, ne, re, H, ae, oe, St, Qa = (St = class {
|
|
617
617
|
constructor(e = {}) {
|
|
618
618
|
N(this, w);
|
|
619
619
|
N(this, U);
|
|
@@ -621,57 +621,57 @@ var w, U, G, ne, re, H, oe, ae, Rt, Bo = (Rt = class {
|
|
|
621
621
|
N(this, ne);
|
|
622
622
|
N(this, re);
|
|
623
623
|
N(this, H);
|
|
624
|
-
N(this, oe);
|
|
625
624
|
N(this, ae);
|
|
626
|
-
|
|
625
|
+
N(this, oe);
|
|
626
|
+
S(this, w, e.queryCache || new La()), S(this, U, e.mutationCache || new Ka()), S(this, G, e.defaultOptions || {}), S(this, ne, /* @__PURE__ */ new Map()), S(this, re, /* @__PURE__ */ new Map()), S(this, H, 0);
|
|
627
627
|
}
|
|
628
628
|
mount() {
|
|
629
|
-
|
|
630
|
-
e && (await this.resumePausedMutations(),
|
|
631
|
-
})),
|
|
632
|
-
e && (await this.resumePausedMutations(),
|
|
629
|
+
Ce(this, H)._++, f(this, H) === 1 && (S(this, ae, aa.subscribe(async (e) => {
|
|
630
|
+
e && (await this.resumePausedMutations(), f(this, w).onFocus());
|
|
631
|
+
})), S(this, oe, gt.subscribe(async (e) => {
|
|
632
|
+
e && (await this.resumePausedMutations(), f(this, w).onOnline());
|
|
633
633
|
})));
|
|
634
634
|
}
|
|
635
635
|
unmount() {
|
|
636
636
|
var e, t;
|
|
637
|
-
|
|
637
|
+
Ce(this, H)._--, f(this, H) === 0 && ((e = f(this, ae)) == null || e.call(this), S(this, ae, void 0), (t = f(this, oe)) == null || t.call(this), S(this, oe, void 0));
|
|
638
638
|
}
|
|
639
639
|
isFetching(e) {
|
|
640
|
-
return
|
|
640
|
+
return f(this, w).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
641
641
|
}
|
|
642
642
|
isMutating(e) {
|
|
643
|
-
return
|
|
643
|
+
return f(this, U).findAll({ ...e, status: "pending" }).length;
|
|
644
644
|
}
|
|
645
645
|
getQueryData(e) {
|
|
646
646
|
var n;
|
|
647
647
|
const t = this.defaultQueryOptions({ queryKey: e });
|
|
648
|
-
return (n =
|
|
648
|
+
return (n = f(this, w).get(t.queryHash)) == null ? void 0 : n.state.data;
|
|
649
649
|
}
|
|
650
650
|
ensureQueryData(e) {
|
|
651
651
|
const t = this.getQueryData(e.queryKey);
|
|
652
652
|
if (t === void 0)
|
|
653
653
|
return this.fetchQuery(e);
|
|
654
654
|
{
|
|
655
|
-
const n = this.defaultQueryOptions(e), r =
|
|
655
|
+
const n = this.defaultQueryOptions(e), r = f(this, w).build(this, n);
|
|
656
656
|
return e.revalidateIfStale && r.isStaleByTime(vt(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
getQueriesData(e) {
|
|
660
|
-
return
|
|
660
|
+
return f(this, w).findAll(e).map(({ queryKey: t, state: n }) => {
|
|
661
661
|
const r = n.data;
|
|
662
662
|
return [t, r];
|
|
663
663
|
});
|
|
664
664
|
}
|
|
665
665
|
setQueryData(e, t, n) {
|
|
666
|
-
const r = this.defaultQueryOptions({ queryKey: e }),
|
|
666
|
+
const r = this.defaultQueryOptions({ queryKey: e }), o = f(this, w).get(
|
|
667
667
|
r.queryHash
|
|
668
|
-
), s =
|
|
668
|
+
), s = o == null ? void 0 : o.state.data, i = oa(t, s);
|
|
669
669
|
if (i !== void 0)
|
|
670
|
-
return
|
|
670
|
+
return f(this, w).build(this, r).setData(i, { ...n, manual: !0 });
|
|
671
671
|
}
|
|
672
672
|
setQueriesData(e, t, n) {
|
|
673
673
|
return E.batch(
|
|
674
|
-
() =>
|
|
674
|
+
() => f(this, w).findAll(e).map(({ queryKey: r }) => [
|
|
675
675
|
r,
|
|
676
676
|
this.setQueryData(r, t, n)
|
|
677
677
|
])
|
|
@@ -680,10 +680,10 @@ var w, U, G, ne, re, H, oe, ae, Rt, Bo = (Rt = class {
|
|
|
680
680
|
getQueryState(e) {
|
|
681
681
|
var n;
|
|
682
682
|
const t = this.defaultQueryOptions({ queryKey: e });
|
|
683
|
-
return (n =
|
|
683
|
+
return (n = f(this, w).get(t.queryHash)) == null ? void 0 : n.state;
|
|
684
684
|
}
|
|
685
685
|
removeQueries(e) {
|
|
686
|
-
const t =
|
|
686
|
+
const t = f(this, w);
|
|
687
687
|
E.batch(() => {
|
|
688
688
|
t.findAll(e).forEach((n) => {
|
|
689
689
|
t.remove(n);
|
|
@@ -691,23 +691,23 @@ var w, U, G, ne, re, H, oe, ae, Rt, Bo = (Rt = class {
|
|
|
691
691
|
});
|
|
692
692
|
}
|
|
693
693
|
resetQueries(e, t) {
|
|
694
|
-
const n =
|
|
694
|
+
const n = f(this, w), r = {
|
|
695
695
|
type: "active",
|
|
696
696
|
...e
|
|
697
697
|
};
|
|
698
|
-
return E.batch(() => (n.findAll(e).forEach((
|
|
699
|
-
|
|
698
|
+
return E.batch(() => (n.findAll(e).forEach((o) => {
|
|
699
|
+
o.reset();
|
|
700
700
|
}), this.refetchQueries(r, t)));
|
|
701
701
|
}
|
|
702
702
|
cancelQueries(e = {}, t = {}) {
|
|
703
703
|
const n = { revert: !0, ...t }, r = E.batch(
|
|
704
|
-
() =>
|
|
704
|
+
() => f(this, w).findAll(e).map((o) => o.cancel(n))
|
|
705
705
|
);
|
|
706
706
|
return Promise.all(r).then($).catch($);
|
|
707
707
|
}
|
|
708
708
|
invalidateQueries(e = {}, t = {}) {
|
|
709
709
|
return E.batch(() => {
|
|
710
|
-
if (
|
|
710
|
+
if (f(this, w).findAll(e).forEach((r) => {
|
|
711
711
|
r.invalidate();
|
|
712
712
|
}), e.refetchType === "none")
|
|
713
713
|
return Promise.resolve();
|
|
@@ -723,9 +723,9 @@ var w, U, G, ne, re, H, oe, ae, Rt, Bo = (Rt = class {
|
|
|
723
723
|
...t,
|
|
724
724
|
cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
|
|
725
725
|
}, r = E.batch(
|
|
726
|
-
() =>
|
|
727
|
-
let s =
|
|
728
|
-
return n.throwOnError || (s = s.catch($)),
|
|
726
|
+
() => f(this, w).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
|
|
727
|
+
let s = o.fetch(void 0, n);
|
|
728
|
+
return n.throwOnError || (s = s.catch($)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
|
|
729
729
|
})
|
|
730
730
|
);
|
|
731
731
|
return Promise.all(r).then($);
|
|
@@ -733,7 +733,7 @@ var w, U, G, ne, re, H, oe, ae, Rt, Bo = (Rt = class {
|
|
|
733
733
|
fetchQuery(e) {
|
|
734
734
|
const t = this.defaultQueryOptions(e);
|
|
735
735
|
t.retry === void 0 && (t.retry = !1);
|
|
736
|
-
const n =
|
|
736
|
+
const n = f(this, w).build(this, t);
|
|
737
737
|
return n.isStaleByTime(
|
|
738
738
|
vt(t.staleTime, n)
|
|
739
739
|
) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
@@ -742,47 +742,47 @@ var w, U, G, ne, re, H, oe, ae, Rt, Bo = (Rt = class {
|
|
|
742
742
|
return this.fetchQuery(e).then($).catch($);
|
|
743
743
|
}
|
|
744
744
|
fetchInfiniteQuery(e) {
|
|
745
|
-
return e.behavior =
|
|
745
|
+
return e.behavior = $a(e.pages), this.fetchQuery(e);
|
|
746
746
|
}
|
|
747
747
|
prefetchInfiniteQuery(e) {
|
|
748
748
|
return this.fetchInfiniteQuery(e).then($).catch($);
|
|
749
749
|
}
|
|
750
750
|
resumePausedMutations() {
|
|
751
|
-
return gt.isOnline() ?
|
|
751
|
+
return gt.isOnline() ? f(this, U).resumePausedMutations() : Promise.resolve();
|
|
752
752
|
}
|
|
753
753
|
getQueryCache() {
|
|
754
|
-
return
|
|
754
|
+
return f(this, w);
|
|
755
755
|
}
|
|
756
756
|
getMutationCache() {
|
|
757
|
-
return
|
|
757
|
+
return f(this, U);
|
|
758
758
|
}
|
|
759
759
|
getDefaultOptions() {
|
|
760
|
-
return
|
|
760
|
+
return f(this, G);
|
|
761
761
|
}
|
|
762
762
|
setDefaultOptions(e) {
|
|
763
|
-
|
|
763
|
+
S(this, G, e);
|
|
764
764
|
}
|
|
765
765
|
setQueryDefaults(e, t) {
|
|
766
|
-
|
|
766
|
+
f(this, ne).set(xt(e), {
|
|
767
767
|
queryKey: e,
|
|
768
768
|
defaultOptions: t
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
771
|
getQueryDefaults(e) {
|
|
772
|
-
const t = [...
|
|
772
|
+
const t = [...f(this, ne).values()];
|
|
773
773
|
let n = {};
|
|
774
774
|
return t.forEach((r) => {
|
|
775
775
|
yt(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
|
|
776
776
|
}), n;
|
|
777
777
|
}
|
|
778
778
|
setMutationDefaults(e, t) {
|
|
779
|
-
|
|
779
|
+
f(this, re).set(xt(e), {
|
|
780
780
|
mutationKey: e,
|
|
781
781
|
defaultOptions: t
|
|
782
782
|
});
|
|
783
783
|
}
|
|
784
784
|
getMutationDefaults(e) {
|
|
785
|
-
const t = [...
|
|
785
|
+
const t = [...f(this, re).values()];
|
|
786
786
|
let n = {};
|
|
787
787
|
return t.forEach((r) => {
|
|
788
788
|
yt(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
|
|
@@ -792,33 +792,33 @@ var w, U, G, ne, re, H, oe, ae, Rt, Bo = (Rt = class {
|
|
|
792
792
|
if (e._defaulted)
|
|
793
793
|
return e;
|
|
794
794
|
const t = {
|
|
795
|
-
...
|
|
795
|
+
...f(this, G).queries,
|
|
796
796
|
...this.getQueryDefaults(e.queryKey),
|
|
797
797
|
...e,
|
|
798
798
|
_defaulted: !0
|
|
799
799
|
};
|
|
800
|
-
return t.queryHash || (t.queryHash =
|
|
800
|
+
return t.queryHash || (t.queryHash = Kt(
|
|
801
801
|
t.queryKey,
|
|
802
802
|
t
|
|
803
|
-
)), 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 ===
|
|
803
|
+
)), 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 === sa && (t.enabled = !1), t;
|
|
804
804
|
}
|
|
805
805
|
defaultMutationOptions(e) {
|
|
806
806
|
return e != null && e._defaulted ? e : {
|
|
807
|
-
...
|
|
807
|
+
...f(this, G).mutations,
|
|
808
808
|
...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
|
|
809
809
|
...e,
|
|
810
810
|
_defaulted: !0
|
|
811
811
|
};
|
|
812
812
|
}
|
|
813
813
|
clear() {
|
|
814
|
-
|
|
814
|
+
f(this, w).clear(), f(this, U).clear();
|
|
815
815
|
}
|
|
816
|
-
}, w = new WeakMap(), U = new WeakMap(), G = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), H = new WeakMap(),
|
|
817
|
-
const
|
|
816
|
+
}, w = new WeakMap(), U = new WeakMap(), G = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), H = new WeakMap(), ae = new WeakMap(), oe = new WeakMap(), St);
|
|
817
|
+
const qa = At(null), Be = {
|
|
818
818
|
didCatch: !1,
|
|
819
819
|
error: null
|
|
820
820
|
};
|
|
821
|
-
class
|
|
821
|
+
class Ua extends Gr {
|
|
822
822
|
constructor(t) {
|
|
823
823
|
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Be;
|
|
824
824
|
}
|
|
@@ -833,7 +833,7 @@ class qo extends Qr {
|
|
|
833
833
|
error: t
|
|
834
834
|
} = this.state;
|
|
835
835
|
if (t !== null) {
|
|
836
|
-
for (var n, r,
|
|
836
|
+
for (var n, r, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
|
|
837
837
|
s[i] = arguments[i];
|
|
838
838
|
(n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
|
|
839
839
|
args: s,
|
|
@@ -842,19 +842,19 @@ class qo extends Qr {
|
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
componentDidCatch(t, n) {
|
|
845
|
-
var r,
|
|
846
|
-
(r = (
|
|
845
|
+
var r, o;
|
|
846
|
+
(r = (o = this.props).onError) === null || r === void 0 || r.call(o, t, n);
|
|
847
847
|
}
|
|
848
848
|
componentDidUpdate(t, n) {
|
|
849
849
|
const {
|
|
850
850
|
didCatch: r
|
|
851
851
|
} = this.state, {
|
|
852
|
-
resetKeys:
|
|
852
|
+
resetKeys: o
|
|
853
853
|
} = this.props;
|
|
854
|
-
if (r && n.error !== null &&
|
|
854
|
+
if (r && n.error !== null && Ga(t.resetKeys, o)) {
|
|
855
855
|
var s, i;
|
|
856
856
|
(s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
|
|
857
|
-
next:
|
|
857
|
+
next: o,
|
|
858
858
|
prev: t.resetKeys,
|
|
859
859
|
reason: "keys"
|
|
860
860
|
}), this.setState(Be);
|
|
@@ -865,27 +865,27 @@ class qo extends Qr {
|
|
|
865
865
|
children: t,
|
|
866
866
|
fallbackRender: n,
|
|
867
867
|
FallbackComponent: r,
|
|
868
|
-
fallback:
|
|
868
|
+
fallback: o
|
|
869
869
|
} = this.props, {
|
|
870
870
|
didCatch: s,
|
|
871
871
|
error: i
|
|
872
872
|
} = this.state;
|
|
873
873
|
let u = t;
|
|
874
874
|
if (s) {
|
|
875
|
-
const
|
|
875
|
+
const l = {
|
|
876
876
|
error: i,
|
|
877
877
|
resetErrorBoundary: this.resetErrorBoundary
|
|
878
878
|
};
|
|
879
879
|
if (typeof n == "function")
|
|
880
|
-
u = n(
|
|
880
|
+
u = n(l);
|
|
881
881
|
else if (r)
|
|
882
|
-
u = ft(r,
|
|
883
|
-
else if (
|
|
884
|
-
u =
|
|
882
|
+
u = ft(r, l);
|
|
883
|
+
else if (o === null || Hr(o))
|
|
884
|
+
u = o;
|
|
885
885
|
else
|
|
886
886
|
throw i;
|
|
887
887
|
}
|
|
888
|
-
return ft(
|
|
888
|
+
return ft(qa.Provider, {
|
|
889
889
|
value: {
|
|
890
890
|
didCatch: s,
|
|
891
891
|
error: i,
|
|
@@ -894,70 +894,70 @@ class qo extends Qr {
|
|
|
894
894
|
}, u);
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function Ga() {
|
|
898
898
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
899
899
|
return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
|
|
900
900
|
}
|
|
901
|
-
const
|
|
902
|
-
class
|
|
901
|
+
const Ha = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", za = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Va = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Ya = (e) => "initialize" in e && typeof e.initialize == "function", Xa = (e) => "getHead" in e && typeof e.getHead == "function", Wa = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Ja = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Ht = new Qa();
|
|
902
|
+
class Za {
|
|
903
903
|
constructor(t) {
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
904
|
+
j(this, "plugins");
|
|
905
|
+
j(this, "sidebars");
|
|
906
|
+
j(this, "topNavigation");
|
|
907
|
+
j(this, "meta");
|
|
908
|
+
j(this, "page");
|
|
909
|
+
j(this, "authentication");
|
|
910
|
+
j(this, "navigationPlugins");
|
|
911
|
+
j(this, "initialize", async ({
|
|
912
912
|
navigate: t
|
|
913
913
|
}) => {
|
|
914
914
|
await Promise.all(
|
|
915
|
-
this.plugins.filter(
|
|
915
|
+
this.plugins.filter(Ya).map((n) => {
|
|
916
916
|
var r;
|
|
917
917
|
return (r = n.initialize) == null ? void 0 : r.call(n, this, { navigate: t });
|
|
918
918
|
})
|
|
919
919
|
);
|
|
920
920
|
});
|
|
921
|
-
|
|
922
|
-
await
|
|
921
|
+
j(this, "invalidateCache", async (t) => {
|
|
922
|
+
await Ht.invalidateQueries({ queryKey: t });
|
|
923
923
|
});
|
|
924
|
-
|
|
925
|
-
this.plugins.filter(
|
|
924
|
+
j(this, "getApiIdentities", async () => (await Promise.all(
|
|
925
|
+
this.plugins.filter(Ja).map((n) => n.getIdentities(this))
|
|
926
926
|
)).flat());
|
|
927
|
-
|
|
927
|
+
j(this, "getPluginSidebar", async (t) => (await Promise.all(
|
|
928
928
|
this.navigationPlugins.map(
|
|
929
929
|
(r) => {
|
|
930
|
-
var
|
|
931
|
-
return (
|
|
930
|
+
var o;
|
|
931
|
+
return (o = r.getSidebar) == null ? void 0 : o.call(r, Xe(t));
|
|
932
932
|
}
|
|
933
933
|
)
|
|
934
934
|
)).flatMap((r) => r ?? []));
|
|
935
|
-
|
|
935
|
+
j(this, "signRequest", async (t) => {
|
|
936
936
|
if (!this.authentication)
|
|
937
937
|
throw new Error("No authentication provider configured");
|
|
938
938
|
const n = await this.authentication.getAccessToken();
|
|
939
939
|
return t.headers.set("Authorization", `Bearer ${n}`), t;
|
|
940
940
|
});
|
|
941
|
-
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(
|
|
941
|
+
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(za), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
|
-
function
|
|
945
|
-
return /* @__PURE__ */
|
|
944
|
+
function eo({ error: e, resetErrorBoundary: t }) {
|
|
945
|
+
return /* @__PURE__ */ a.jsx(Rt, { error: e });
|
|
946
946
|
}
|
|
947
|
-
const
|
|
948
|
-
(!
|
|
949
|
-
var Ue = ["Enter", " "],
|
|
947
|
+
const Pe = globalThis;
|
|
948
|
+
(!Pe.requestIdleCallback || !Pe.cancelIdleCallback) && (Pe.requestIdleCallback = (e) => setTimeout(e, 1), Pe.cancelIdleCallback = clearTimeout);
|
|
949
|
+
var Ue = ["Enter", " "], to = ["ArrowDown", "PageUp", "Home"], zt = ["ArrowUp", "PageDown", "End"], no = [...to, ...zt], ro = {
|
|
950
950
|
ltr: [...Ue, "ArrowRight"],
|
|
951
951
|
rtl: [...Ue, "ArrowLeft"]
|
|
952
|
-
},
|
|
952
|
+
}, ao = {
|
|
953
953
|
ltr: ["ArrowLeft"],
|
|
954
954
|
rtl: ["ArrowRight"]
|
|
955
|
-
},
|
|
956
|
-
|
|
955
|
+
}, xe = "Menu", [fe, oo, so] = Mr(xe), [J, Vt] = Et(xe, [
|
|
956
|
+
so,
|
|
957
957
|
_t,
|
|
958
|
-
|
|
959
|
-
]),
|
|
960
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir:
|
|
958
|
+
Bt
|
|
959
|
+
]), ye = _t(), Yt = Bt(), [Xt, z] = J(xe), [io, we] = J(xe), Wt = (e) => {
|
|
960
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, u = ye(t), [l, g] = c.useState(null), p = c.useRef(!1), d = He(s), h = kr(o);
|
|
961
961
|
return c.useEffect(() => {
|
|
962
962
|
const v = () => {
|
|
963
963
|
p.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
|
|
@@ -965,21 +965,21 @@ var Ue = ["Enter", " "], ea = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp",
|
|
|
965
965
|
return document.addEventListener("keydown", v, { capture: !0 }), () => {
|
|
966
966
|
document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
|
|
967
967
|
};
|
|
968
|
-
}, []), /* @__PURE__ */
|
|
969
|
-
|
|
968
|
+
}, []), /* @__PURE__ */ a.jsx(Dt, { ...u, children: /* @__PURE__ */ a.jsx(
|
|
969
|
+
Xt,
|
|
970
970
|
{
|
|
971
971
|
scope: t,
|
|
972
972
|
open: n,
|
|
973
|
-
onOpenChange:
|
|
974
|
-
content:
|
|
973
|
+
onOpenChange: d,
|
|
974
|
+
content: l,
|
|
975
975
|
onContentChange: g,
|
|
976
|
-
children: /* @__PURE__ */
|
|
977
|
-
|
|
976
|
+
children: /* @__PURE__ */ a.jsx(
|
|
977
|
+
io,
|
|
978
978
|
{
|
|
979
979
|
scope: t,
|
|
980
|
-
onClose: c.useCallback(() =>
|
|
980
|
+
onClose: c.useCallback(() => d(!1), [d]),
|
|
981
981
|
isUsingKeyboardRef: p,
|
|
982
|
-
dir:
|
|
982
|
+
dir: h,
|
|
983
983
|
modal: i,
|
|
984
984
|
children: r
|
|
985
985
|
}
|
|
@@ -987,37 +987,37 @@ var Ue = ["Enter", " "], ea = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp",
|
|
|
987
987
|
}
|
|
988
988
|
) });
|
|
989
989
|
};
|
|
990
|
-
|
|
991
|
-
var
|
|
990
|
+
Wt.displayName = xe;
|
|
991
|
+
var co = "MenuAnchor", Je = c.forwardRef(
|
|
992
992
|
(e, t) => {
|
|
993
|
-
const { __scopeMenu: n, ...r } = e,
|
|
994
|
-
return /* @__PURE__ */
|
|
993
|
+
const { __scopeMenu: n, ...r } = e, o = ye(n);
|
|
994
|
+
return /* @__PURE__ */ a.jsx(Cr, { ...o, ...r, ref: t });
|
|
995
995
|
}
|
|
996
996
|
);
|
|
997
|
-
Je.displayName =
|
|
998
|
-
var Ze = "MenuPortal", [
|
|
997
|
+
Je.displayName = co;
|
|
998
|
+
var Ze = "MenuPortal", [uo, Jt] = J(Ze, {
|
|
999
999
|
forceMount: void 0
|
|
1000
|
-
}),
|
|
1001
|
-
const { __scopeMenu: t, forceMount: n, children: r, container:
|
|
1002
|
-
return /* @__PURE__ */
|
|
1000
|
+
}), Zt = (e) => {
|
|
1001
|
+
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = z(Ze, t);
|
|
1002
|
+
return /* @__PURE__ */ a.jsx(uo, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(ke, { present: n || s.open, children: /* @__PURE__ */ a.jsx(Ar, { asChild: !0, container: o, children: r }) }) });
|
|
1003
1003
|
};
|
|
1004
|
-
|
|
1005
|
-
var D = "MenuContent", [
|
|
1004
|
+
Zt.displayName = Ze;
|
|
1005
|
+
var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
|
|
1006
1006
|
(e, t) => {
|
|
1007
|
-
const n =
|
|
1008
|
-
return /* @__PURE__ */
|
|
1007
|
+
const n = Jt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = z(D, e.__scopeMenu), i = we(D, e.__scopeMenu);
|
|
1008
|
+
return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(ke, { present: r || s.open, children: /* @__PURE__ */ a.jsx(fe.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(ho, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(fo, { ...o, ref: t }) }) }) });
|
|
1009
1009
|
}
|
|
1010
|
-
),
|
|
1010
|
+
), ho = c.forwardRef(
|
|
1011
1011
|
(e, t) => {
|
|
1012
|
-
const n = z(D, e.__scopeMenu), r = c.useRef(null),
|
|
1012
|
+
const n = z(D, e.__scopeMenu), r = c.useRef(null), o = ge(t, r);
|
|
1013
1013
|
return c.useEffect(() => {
|
|
1014
1014
|
const s = r.current;
|
|
1015
|
-
if (s) return
|
|
1016
|
-
}, []), /* @__PURE__ */
|
|
1015
|
+
if (s) return Sr(s);
|
|
1016
|
+
}, []), /* @__PURE__ */ a.jsx(
|
|
1017
1017
|
tt,
|
|
1018
1018
|
{
|
|
1019
1019
|
...e,
|
|
1020
|
-
ref:
|
|
1020
|
+
ref: o,
|
|
1021
1021
|
trapFocus: n.open,
|
|
1022
1022
|
disableOutsidePointerEvents: n.open,
|
|
1023
1023
|
disableOutsideScroll: !0,
|
|
@@ -1030,9 +1030,9 @@ var D = "MenuContent", [ua, et] = J(D), Zt = c.forwardRef(
|
|
|
1030
1030
|
}
|
|
1031
1031
|
);
|
|
1032
1032
|
}
|
|
1033
|
-
),
|
|
1033
|
+
), fo = c.forwardRef((e, t) => {
|
|
1034
1034
|
const n = z(D, e.__scopeMenu);
|
|
1035
|
-
return /* @__PURE__ */
|
|
1035
|
+
return /* @__PURE__ */ a.jsx(
|
|
1036
1036
|
tt,
|
|
1037
1037
|
{
|
|
1038
1038
|
...e,
|
|
@@ -1048,35 +1048,35 @@ var D = "MenuContent", [ua, et] = J(D), Zt = c.forwardRef(
|
|
|
1048
1048
|
const {
|
|
1049
1049
|
__scopeMenu: n,
|
|
1050
1050
|
loop: r = !1,
|
|
1051
|
-
trapFocus:
|
|
1051
|
+
trapFocus: o,
|
|
1052
1052
|
onOpenAutoFocus: s,
|
|
1053
1053
|
onCloseAutoFocus: i,
|
|
1054
1054
|
disableOutsidePointerEvents: u,
|
|
1055
|
-
onEntryFocus:
|
|
1055
|
+
onEntryFocus: l,
|
|
1056
1056
|
onEscapeKeyDown: g,
|
|
1057
1057
|
onPointerDownOutside: p,
|
|
1058
|
-
onFocusOutside:
|
|
1059
|
-
onInteractOutside:
|
|
1058
|
+
onFocusOutside: d,
|
|
1059
|
+
onInteractOutside: h,
|
|
1060
1060
|
onDismiss: v,
|
|
1061
1061
|
disableOutsideScroll: x,
|
|
1062
|
-
...
|
|
1063
|
-
} = e, I = z(D, n), Q =
|
|
1062
|
+
...M
|
|
1063
|
+
} = e, I = z(D, n), Q = we(D, n), V = ye(n), C = Yt(n), k = oo(n), [L, Y] = c.useState(null), Z = c.useRef(null), be = ge(t, Z, I.onContentChange), X = c.useRef(0), Me = c.useRef(""), rr = c.useRef(0), Oe = c.useRef(null), it = c.useRef("right"), Te = c.useRef(0), ar = x ? Nr : c.Fragment, or = x ? { as: Dr, allowPinchZoom: !0 } : void 0, sr = (m) => {
|
|
1064
1064
|
var te, ut;
|
|
1065
|
-
const _ =
|
|
1065
|
+
const _ = Me.current + m, A = k().filter((K) => !K.disabled), q = document.activeElement, Fe = (te = A.find((K) => K.ref.current === q)) == null ? void 0 : te.textValue, Le = A.map((K) => K.textValue), ct = Po(Le, _, Fe), le = (ut = A.find((K) => K.textValue === ct)) == null ? void 0 : ut.ref.current;
|
|
1066
1066
|
(function K(lt) {
|
|
1067
|
-
|
|
1068
|
-
})(_),
|
|
1067
|
+
Me.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => K(""), 1e3));
|
|
1068
|
+
})(_), le && setTimeout(() => le.focus());
|
|
1069
1069
|
};
|
|
1070
|
-
c.useEffect(() => () => window.clearTimeout(X.current), []),
|
|
1070
|
+
c.useEffect(() => () => window.clearTimeout(X.current), []), Pr();
|
|
1071
1071
|
const ee = c.useCallback((m) => {
|
|
1072
1072
|
var A, q;
|
|
1073
|
-
return it.current === ((A = Oe.current) == null ? void 0 : A.side) &&
|
|
1073
|
+
return it.current === ((A = Oe.current) == null ? void 0 : A.side) && Ro(m, (q = Oe.current) == null ? void 0 : q.area);
|
|
1074
1074
|
}, []);
|
|
1075
|
-
return /* @__PURE__ */
|
|
1076
|
-
|
|
1075
|
+
return /* @__PURE__ */ a.jsx(
|
|
1076
|
+
lo,
|
|
1077
1077
|
{
|
|
1078
1078
|
scope: n,
|
|
1079
|
-
searchRef:
|
|
1079
|
+
searchRef: Me,
|
|
1080
1080
|
onItemEnter: c.useCallback(
|
|
1081
1081
|
(m) => {
|
|
1082
1082
|
ee(m) && m.preventDefault();
|
|
@@ -1096,32 +1096,32 @@ var D = "MenuContent", [ua, et] = J(D), Zt = c.forwardRef(
|
|
|
1096
1096
|
},
|
|
1097
1097
|
[ee]
|
|
1098
1098
|
),
|
|
1099
|
-
pointerGraceTimerRef:
|
|
1099
|
+
pointerGraceTimerRef: rr,
|
|
1100
1100
|
onPointerGraceIntentChange: c.useCallback((m) => {
|
|
1101
1101
|
Oe.current = m;
|
|
1102
1102
|
}, []),
|
|
1103
|
-
children: /* @__PURE__ */
|
|
1104
|
-
|
|
1103
|
+
children: /* @__PURE__ */ a.jsx(ar, { ...or, children: /* @__PURE__ */ a.jsx(
|
|
1104
|
+
jr,
|
|
1105
1105
|
{
|
|
1106
1106
|
asChild: !0,
|
|
1107
|
-
trapped:
|
|
1107
|
+
trapped: o,
|
|
1108
1108
|
onMountAutoFocus: y(s, (m) => {
|
|
1109
1109
|
var _;
|
|
1110
1110
|
m.preventDefault(), (_ = Z.current) == null || _.focus({ preventScroll: !0 });
|
|
1111
1111
|
}),
|
|
1112
1112
|
onUnmountAutoFocus: i,
|
|
1113
|
-
children: /* @__PURE__ */
|
|
1113
|
+
children: /* @__PURE__ */ a.jsx(
|
|
1114
1114
|
Rr,
|
|
1115
1115
|
{
|
|
1116
1116
|
asChild: !0,
|
|
1117
1117
|
disableOutsidePointerEvents: u,
|
|
1118
1118
|
onEscapeKeyDown: g,
|
|
1119
1119
|
onPointerDownOutside: p,
|
|
1120
|
-
onFocusOutside:
|
|
1121
|
-
onInteractOutside:
|
|
1120
|
+
onFocusOutside: d,
|
|
1121
|
+
onInteractOutside: h,
|
|
1122
1122
|
onDismiss: v,
|
|
1123
|
-
children: /* @__PURE__ */
|
|
1124
|
-
|
|
1123
|
+
children: /* @__PURE__ */ a.jsx(
|
|
1124
|
+
da,
|
|
1125
1125
|
{
|
|
1126
1126
|
asChild: !0,
|
|
1127
1127
|
...C,
|
|
@@ -1130,37 +1130,37 @@ var D = "MenuContent", [ua, et] = J(D), Zt = c.forwardRef(
|
|
|
1130
1130
|
loop: r,
|
|
1131
1131
|
currentTabStopId: L,
|
|
1132
1132
|
onCurrentTabStopIdChange: Y,
|
|
1133
|
-
onEntryFocus: y(
|
|
1133
|
+
onEntryFocus: y(l, (m) => {
|
|
1134
1134
|
Q.isUsingKeyboardRef.current || m.preventDefault();
|
|
1135
1135
|
}),
|
|
1136
1136
|
preventScrollOnEntryFocus: !0,
|
|
1137
|
-
children: /* @__PURE__ */
|
|
1138
|
-
|
|
1137
|
+
children: /* @__PURE__ */ a.jsx(
|
|
1138
|
+
Er,
|
|
1139
1139
|
{
|
|
1140
1140
|
role: "menu",
|
|
1141
1141
|
"aria-orientation": "vertical",
|
|
1142
|
-
"data-state":
|
|
1142
|
+
"data-state": xn(I.open),
|
|
1143
1143
|
"data-radix-menu-content": "",
|
|
1144
1144
|
dir: Q.dir,
|
|
1145
1145
|
...V,
|
|
1146
|
-
...
|
|
1147
|
-
ref:
|
|
1148
|
-
style: { outline: "none", ...
|
|
1149
|
-
onKeyDown: y(
|
|
1146
|
+
...M,
|
|
1147
|
+
ref: be,
|
|
1148
|
+
style: { outline: "none", ...M.style },
|
|
1149
|
+
onKeyDown: y(M.onKeyDown, (m) => {
|
|
1150
1150
|
const A = m.target.closest("[data-radix-menu-content]") === m.currentTarget, q = m.ctrlKey || m.altKey || m.metaKey, Fe = m.key.length === 1;
|
|
1151
|
-
A && (m.key === "Tab" && m.preventDefault(), !q && Fe &&
|
|
1151
|
+
A && (m.key === "Tab" && m.preventDefault(), !q && Fe && sr(m.key));
|
|
1152
1152
|
const Le = Z.current;
|
|
1153
|
-
if (m.target !== Le || !
|
|
1153
|
+
if (m.target !== Le || !no.includes(m.key)) return;
|
|
1154
1154
|
m.preventDefault();
|
|
1155
|
-
const
|
|
1156
|
-
|
|
1155
|
+
const le = k().filter((te) => !te.disabled).map((te) => te.ref.current);
|
|
1156
|
+
zt.includes(m.key) && le.reverse(), Co(le);
|
|
1157
1157
|
}),
|
|
1158
1158
|
onBlur: y(e.onBlur, (m) => {
|
|
1159
|
-
m.currentTarget.contains(m.target) || (window.clearTimeout(X.current),
|
|
1159
|
+
m.currentTarget.contains(m.target) || (window.clearTimeout(X.current), Me.current = "");
|
|
1160
1160
|
}),
|
|
1161
1161
|
onPointerMove: y(
|
|
1162
1162
|
e.onPointerMove,
|
|
1163
|
-
|
|
1163
|
+
pe((m) => {
|
|
1164
1164
|
const _ = m.target, A = Te.current !== m.clientX;
|
|
1165
1165
|
if (m.currentTarget.contains(_) && A) {
|
|
1166
1166
|
const q = m.clientX > Te.current ? "right" : "left";
|
|
@@ -1180,68 +1180,68 @@ var D = "MenuContent", [ua, et] = J(D), Zt = c.forwardRef(
|
|
|
1180
1180
|
);
|
|
1181
1181
|
}
|
|
1182
1182
|
);
|
|
1183
|
-
|
|
1184
|
-
var
|
|
1183
|
+
en.displayName = D;
|
|
1184
|
+
var po = "MenuGroup", nt = c.forwardRef(
|
|
1185
1185
|
(e, t) => {
|
|
1186
1186
|
const { __scopeMenu: n, ...r } = e;
|
|
1187
|
-
return /* @__PURE__ */
|
|
1187
|
+
return /* @__PURE__ */ a.jsx(ce.div, { role: "group", ...r, ref: t });
|
|
1188
1188
|
}
|
|
1189
1189
|
);
|
|
1190
|
-
nt.displayName =
|
|
1191
|
-
var
|
|
1190
|
+
nt.displayName = po;
|
|
1191
|
+
var mo = "MenuLabel", tn = c.forwardRef(
|
|
1192
1192
|
(e, t) => {
|
|
1193
1193
|
const { __scopeMenu: n, ...r } = e;
|
|
1194
|
-
return /* @__PURE__ */
|
|
1194
|
+
return /* @__PURE__ */ a.jsx(ce.div, { ...r, ref: t });
|
|
1195
1195
|
}
|
|
1196
1196
|
);
|
|
1197
|
-
|
|
1197
|
+
tn.displayName = mo;
|
|
1198
1198
|
var _e = "MenuItem", bt = "menu.itemSelect", Ae = c.forwardRef(
|
|
1199
1199
|
(e, t) => {
|
|
1200
|
-
const { disabled: n = !1, onSelect: r, ...
|
|
1201
|
-
const
|
|
1202
|
-
if (!n &&
|
|
1203
|
-
const
|
|
1204
|
-
|
|
1200
|
+
const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = we(_e, e.__scopeMenu), u = et(_e, e.__scopeMenu), l = ge(t, s), g = c.useRef(!1), p = () => {
|
|
1201
|
+
const d = s.current;
|
|
1202
|
+
if (!n && d) {
|
|
1203
|
+
const h = new CustomEvent(bt, { bubbles: !0, cancelable: !0 });
|
|
1204
|
+
d.addEventListener(bt, (v) => r == null ? void 0 : r(v), { once: !0 }), Ir(d, h), h.defaultPrevented ? g.current = !1 : i.onClose();
|
|
1205
1205
|
}
|
|
1206
1206
|
};
|
|
1207
|
-
return /* @__PURE__ */
|
|
1208
|
-
|
|
1207
|
+
return /* @__PURE__ */ a.jsx(
|
|
1208
|
+
nn,
|
|
1209
1209
|
{
|
|
1210
|
-
...
|
|
1211
|
-
ref:
|
|
1210
|
+
...o,
|
|
1211
|
+
ref: l,
|
|
1212
1212
|
disabled: n,
|
|
1213
1213
|
onClick: y(e.onClick, p),
|
|
1214
|
-
onPointerDown: (
|
|
1215
|
-
var
|
|
1216
|
-
(
|
|
1214
|
+
onPointerDown: (d) => {
|
|
1215
|
+
var h;
|
|
1216
|
+
(h = e.onPointerDown) == null || h.call(e, d), g.current = !0;
|
|
1217
1217
|
},
|
|
1218
|
-
onPointerUp: y(e.onPointerUp, (
|
|
1219
|
-
var
|
|
1220
|
-
g.current || (
|
|
1218
|
+
onPointerUp: y(e.onPointerUp, (d) => {
|
|
1219
|
+
var h;
|
|
1220
|
+
g.current || (h = d.currentTarget) == null || h.click();
|
|
1221
1221
|
}),
|
|
1222
|
-
onKeyDown: y(e.onKeyDown, (
|
|
1223
|
-
const
|
|
1224
|
-
n ||
|
|
1222
|
+
onKeyDown: y(e.onKeyDown, (d) => {
|
|
1223
|
+
const h = u.searchRef.current !== "";
|
|
1224
|
+
n || h && d.key === " " || Ue.includes(d.key) && (d.currentTarget.click(), d.preventDefault());
|
|
1225
1225
|
})
|
|
1226
1226
|
}
|
|
1227
1227
|
);
|
|
1228
1228
|
}
|
|
1229
1229
|
);
|
|
1230
1230
|
Ae.displayName = _e;
|
|
1231
|
-
var
|
|
1231
|
+
var nn = c.forwardRef(
|
|
1232
1232
|
(e, t) => {
|
|
1233
|
-
const { __scopeMenu: n, disabled: r = !1, textValue:
|
|
1233
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = et(_e, n), u = Yt(n), l = c.useRef(null), g = ge(t, l), [p, d] = c.useState(!1), [h, v] = c.useState("");
|
|
1234
1234
|
return c.useEffect(() => {
|
|
1235
|
-
const x =
|
|
1235
|
+
const x = l.current;
|
|
1236
1236
|
x && v((x.textContent ?? "").trim());
|
|
1237
|
-
}, [s.children]), /* @__PURE__ */
|
|
1238
|
-
|
|
1237
|
+
}, [s.children]), /* @__PURE__ */ a.jsx(
|
|
1238
|
+
fe.ItemSlot,
|
|
1239
1239
|
{
|
|
1240
1240
|
scope: n,
|
|
1241
1241
|
disabled: r,
|
|
1242
|
-
textValue:
|
|
1243
|
-
children: /* @__PURE__ */
|
|
1244
|
-
|
|
1242
|
+
textValue: o ?? h,
|
|
1243
|
+
children: /* @__PURE__ */ a.jsx(ha, { asChild: !0, ...u, focusable: !r, children: /* @__PURE__ */ a.jsx(
|
|
1244
|
+
ce.div,
|
|
1245
1245
|
{
|
|
1246
1246
|
role: "menuitem",
|
|
1247
1247
|
"data-highlighted": p ? "" : void 0,
|
|
@@ -1251,34 +1251,34 @@ var tn = c.forwardRef(
|
|
|
1251
1251
|
ref: g,
|
|
1252
1252
|
onPointerMove: y(
|
|
1253
1253
|
e.onPointerMove,
|
|
1254
|
-
|
|
1254
|
+
pe((x) => {
|
|
1255
1255
|
r ? i.onItemLeave(x) : (i.onItemEnter(x), x.defaultPrevented || x.currentTarget.focus({ preventScroll: !0 }));
|
|
1256
1256
|
})
|
|
1257
1257
|
),
|
|
1258
1258
|
onPointerLeave: y(
|
|
1259
1259
|
e.onPointerLeave,
|
|
1260
|
-
|
|
1260
|
+
pe((x) => i.onItemLeave(x))
|
|
1261
1261
|
),
|
|
1262
|
-
onFocus: y(e.onFocus, () =>
|
|
1263
|
-
onBlur: y(e.onBlur, () =>
|
|
1262
|
+
onFocus: y(e.onFocus, () => d(!0)),
|
|
1263
|
+
onBlur: y(e.onBlur, () => d(!1))
|
|
1264
1264
|
}
|
|
1265
1265
|
) })
|
|
1266
1266
|
}
|
|
1267
1267
|
);
|
|
1268
1268
|
}
|
|
1269
|
-
),
|
|
1269
|
+
), go = "MenuCheckboxItem", rn = c.forwardRef(
|
|
1270
1270
|
(e, t) => {
|
|
1271
|
-
const { checked: n = !1, onCheckedChange: r, ...
|
|
1272
|
-
return /* @__PURE__ */
|
|
1271
|
+
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
1272
|
+
return /* @__PURE__ */ a.jsx(un, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
|
|
1273
1273
|
Ae,
|
|
1274
1274
|
{
|
|
1275
1275
|
role: "menuitemcheckbox",
|
|
1276
1276
|
"aria-checked": Ne(n) ? "mixed" : n,
|
|
1277
|
-
...
|
|
1277
|
+
...o,
|
|
1278
1278
|
ref: t,
|
|
1279
|
-
"data-state":
|
|
1279
|
+
"data-state": ot(n),
|
|
1280
1280
|
onSelect: y(
|
|
1281
|
-
|
|
1281
|
+
o.onSelect,
|
|
1282
1282
|
() => r == null ? void 0 : r(Ne(n) ? !0 : !n),
|
|
1283
1283
|
{ checkForDefaultPrevented: !1 }
|
|
1284
1284
|
)
|
|
@@ -1286,34 +1286,34 @@ var tn = c.forwardRef(
|
|
|
1286
1286
|
) });
|
|
1287
1287
|
}
|
|
1288
1288
|
);
|
|
1289
|
-
|
|
1290
|
-
var
|
|
1291
|
-
|
|
1289
|
+
rn.displayName = go;
|
|
1290
|
+
var an = "MenuRadioGroup", [vo, xo] = J(
|
|
1291
|
+
an,
|
|
1292
1292
|
{ value: void 0, onValueChange: () => {
|
|
1293
1293
|
} }
|
|
1294
1294
|
), on = c.forwardRef(
|
|
1295
1295
|
(e, t) => {
|
|
1296
|
-
const { value: n, onValueChange: r, ...
|
|
1297
|
-
return /* @__PURE__ */
|
|
1296
|
+
const { value: n, onValueChange: r, ...o } = e, s = He(r);
|
|
1297
|
+
return /* @__PURE__ */ a.jsx(vo, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(nt, { ...o, ref: t }) });
|
|
1298
1298
|
}
|
|
1299
1299
|
);
|
|
1300
|
-
on.displayName =
|
|
1301
|
-
var
|
|
1300
|
+
on.displayName = an;
|
|
1301
|
+
var sn = "MenuRadioItem", cn = c.forwardRef(
|
|
1302
1302
|
(e, t) => {
|
|
1303
|
-
const { value: n, ...r } = e,
|
|
1304
|
-
return /* @__PURE__ */
|
|
1303
|
+
const { value: n, ...r } = e, o = xo(sn, e.__scopeMenu), s = n === o.value;
|
|
1304
|
+
return /* @__PURE__ */ a.jsx(un, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
|
|
1305
1305
|
Ae,
|
|
1306
1306
|
{
|
|
1307
1307
|
role: "menuitemradio",
|
|
1308
1308
|
"aria-checked": s,
|
|
1309
1309
|
...r,
|
|
1310
1310
|
ref: t,
|
|
1311
|
-
"data-state":
|
|
1311
|
+
"data-state": ot(s),
|
|
1312
1312
|
onSelect: y(
|
|
1313
1313
|
r.onSelect,
|
|
1314
1314
|
() => {
|
|
1315
1315
|
var i;
|
|
1316
|
-
return (i =
|
|
1316
|
+
return (i = o.onValueChange) == null ? void 0 : i.call(o, n);
|
|
1317
1317
|
},
|
|
1318
1318
|
{ checkForDefaultPrevented: !1 }
|
|
1319
1319
|
)
|
|
@@ -1321,35 +1321,35 @@ var an = "MenuRadioItem", sn = c.forwardRef(
|
|
|
1321
1321
|
) });
|
|
1322
1322
|
}
|
|
1323
1323
|
);
|
|
1324
|
-
|
|
1325
|
-
var rt = "MenuItemIndicator", [
|
|
1324
|
+
cn.displayName = sn;
|
|
1325
|
+
var rt = "MenuItemIndicator", [un, yo] = J(
|
|
1326
1326
|
rt,
|
|
1327
1327
|
{ checked: !1 }
|
|
1328
|
-
),
|
|
1328
|
+
), ln = c.forwardRef(
|
|
1329
1329
|
(e, t) => {
|
|
1330
|
-
const { __scopeMenu: n, forceMount: r, ...
|
|
1331
|
-
return /* @__PURE__ */
|
|
1330
|
+
const { __scopeMenu: n, forceMount: r, ...o } = e, s = yo(rt, n);
|
|
1331
|
+
return /* @__PURE__ */ a.jsx(
|
|
1332
1332
|
ke,
|
|
1333
1333
|
{
|
|
1334
1334
|
present: r || Ne(s.checked) || s.checked === !0,
|
|
1335
|
-
children: /* @__PURE__ */
|
|
1336
|
-
|
|
1335
|
+
children: /* @__PURE__ */ a.jsx(
|
|
1336
|
+
ce.span,
|
|
1337
1337
|
{
|
|
1338
|
-
...
|
|
1338
|
+
...o,
|
|
1339
1339
|
ref: t,
|
|
1340
|
-
"data-state":
|
|
1340
|
+
"data-state": ot(s.checked)
|
|
1341
1341
|
}
|
|
1342
1342
|
)
|
|
1343
1343
|
}
|
|
1344
1344
|
);
|
|
1345
1345
|
}
|
|
1346
1346
|
);
|
|
1347
|
-
|
|
1348
|
-
var
|
|
1347
|
+
ln.displayName = rt;
|
|
1348
|
+
var wo = "MenuSeparator", dn = c.forwardRef(
|
|
1349
1349
|
(e, t) => {
|
|
1350
1350
|
const { __scopeMenu: n, ...r } = e;
|
|
1351
|
-
return /* @__PURE__ */
|
|
1352
|
-
|
|
1351
|
+
return /* @__PURE__ */ a.jsx(
|
|
1352
|
+
ce.div,
|
|
1353
1353
|
{
|
|
1354
1354
|
role: "separator",
|
|
1355
1355
|
"aria-orientation": "horizontal",
|
|
@@ -1359,119 +1359,119 @@ var xa = "MenuSeparator", ln = c.forwardRef(
|
|
|
1359
1359
|
);
|
|
1360
1360
|
}
|
|
1361
1361
|
);
|
|
1362
|
-
|
|
1363
|
-
var
|
|
1362
|
+
dn.displayName = wo;
|
|
1363
|
+
var bo = "MenuArrow", hn = c.forwardRef(
|
|
1364
1364
|
(e, t) => {
|
|
1365
|
-
const { __scopeMenu: n, ...r } = e,
|
|
1366
|
-
return /* @__PURE__ */
|
|
1365
|
+
const { __scopeMenu: n, ...r } = e, o = ye(n);
|
|
1366
|
+
return /* @__PURE__ */ a.jsx(_r, { ...o, ...r, ref: t });
|
|
1367
1367
|
}
|
|
1368
1368
|
);
|
|
1369
|
-
|
|
1370
|
-
var
|
|
1371
|
-
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange:
|
|
1372
|
-
return c.useEffect(() => (s.open === !1 &&
|
|
1373
|
-
|
|
1369
|
+
hn.displayName = bo;
|
|
1370
|
+
var at = "MenuSub", [Mo, fn] = J(at), pn = (e) => {
|
|
1371
|
+
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = z(at, t), i = ye(t), [u, l] = c.useState(null), [g, p] = c.useState(null), d = He(o);
|
|
1372
|
+
return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ a.jsx(Dt, { ...i, children: /* @__PURE__ */ a.jsx(
|
|
1373
|
+
Xt,
|
|
1374
1374
|
{
|
|
1375
1375
|
scope: t,
|
|
1376
1376
|
open: r,
|
|
1377
|
-
onOpenChange:
|
|
1377
|
+
onOpenChange: d,
|
|
1378
1378
|
content: g,
|
|
1379
1379
|
onContentChange: p,
|
|
1380
|
-
children: /* @__PURE__ */
|
|
1381
|
-
|
|
1380
|
+
children: /* @__PURE__ */ a.jsx(
|
|
1381
|
+
Mo,
|
|
1382
1382
|
{
|
|
1383
1383
|
scope: t,
|
|
1384
1384
|
contentId: Ee(),
|
|
1385
1385
|
triggerId: Ee(),
|
|
1386
1386
|
trigger: u,
|
|
1387
|
-
onTriggerChange:
|
|
1387
|
+
onTriggerChange: l,
|
|
1388
1388
|
children: n
|
|
1389
1389
|
}
|
|
1390
1390
|
)
|
|
1391
1391
|
}
|
|
1392
1392
|
) });
|
|
1393
1393
|
};
|
|
1394
|
-
|
|
1395
|
-
var
|
|
1394
|
+
pn.displayName = at;
|
|
1395
|
+
var de = "MenuSubTrigger", mn = c.forwardRef(
|
|
1396
1396
|
(e, t) => {
|
|
1397
|
-
const n = z(
|
|
1397
|
+
const n = z(de, e.__scopeMenu), r = we(de, e.__scopeMenu), o = fn(de, e.__scopeMenu), s = et(de, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: l } = s, g = { __scopeMenu: e.__scopeMenu }, p = c.useCallback(() => {
|
|
1398
1398
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
1399
1399
|
}, []);
|
|
1400
1400
|
return c.useEffect(() => p, [p]), c.useEffect(() => {
|
|
1401
|
-
const
|
|
1401
|
+
const d = u.current;
|
|
1402
1402
|
return () => {
|
|
1403
|
-
window.clearTimeout(
|
|
1403
|
+
window.clearTimeout(d), l(null);
|
|
1404
1404
|
};
|
|
1405
|
-
}, [u,
|
|
1406
|
-
|
|
1405
|
+
}, [u, l]), /* @__PURE__ */ a.jsx(Je, { asChild: !0, ...g, children: /* @__PURE__ */ a.jsx(
|
|
1406
|
+
nn,
|
|
1407
1407
|
{
|
|
1408
|
-
id:
|
|
1408
|
+
id: o.triggerId,
|
|
1409
1409
|
"aria-haspopup": "menu",
|
|
1410
1410
|
"aria-expanded": n.open,
|
|
1411
|
-
"aria-controls":
|
|
1412
|
-
"data-state":
|
|
1411
|
+
"aria-controls": o.contentId,
|
|
1412
|
+
"data-state": xn(n.open),
|
|
1413
1413
|
...e,
|
|
1414
|
-
ref: Nt(t,
|
|
1415
|
-
onClick: (
|
|
1416
|
-
var
|
|
1417
|
-
(
|
|
1414
|
+
ref: Nt(t, o.onTriggerChange),
|
|
1415
|
+
onClick: (d) => {
|
|
1416
|
+
var h;
|
|
1417
|
+
(h = e.onClick) == null || h.call(e, d), !(e.disabled || d.defaultPrevented) && (d.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
1418
1418
|
},
|
|
1419
1419
|
onPointerMove: y(
|
|
1420
1420
|
e.onPointerMove,
|
|
1421
|
-
|
|
1422
|
-
s.onItemEnter(
|
|
1421
|
+
pe((d) => {
|
|
1422
|
+
s.onItemEnter(d), !d.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
|
|
1423
1423
|
n.onOpenChange(!0), p();
|
|
1424
1424
|
}, 100));
|
|
1425
1425
|
})
|
|
1426
1426
|
),
|
|
1427
1427
|
onPointerLeave: y(
|
|
1428
1428
|
e.onPointerLeave,
|
|
1429
|
-
|
|
1429
|
+
pe((d) => {
|
|
1430
1430
|
var v, x;
|
|
1431
1431
|
p();
|
|
1432
|
-
const
|
|
1433
|
-
if (
|
|
1434
|
-
const
|
|
1432
|
+
const h = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
|
|
1433
|
+
if (h) {
|
|
1434
|
+
const M = (x = n.content) == null ? void 0 : x.dataset.side, I = M === "right", Q = I ? -5 : 5, V = h[I ? "left" : "right"], C = h[I ? "right" : "left"];
|
|
1435
1435
|
s.onPointerGraceIntentChange({
|
|
1436
1436
|
area: [
|
|
1437
1437
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
1438
1438
|
// consistently within polygon bounds
|
|
1439
|
-
{ x:
|
|
1440
|
-
{ x: V, y:
|
|
1441
|
-
{ x: C, y:
|
|
1442
|
-
{ x: C, y:
|
|
1443
|
-
{ x: V, y:
|
|
1439
|
+
{ x: d.clientX + Q, y: d.clientY },
|
|
1440
|
+
{ x: V, y: h.top },
|
|
1441
|
+
{ x: C, y: h.top },
|
|
1442
|
+
{ x: C, y: h.bottom },
|
|
1443
|
+
{ x: V, y: h.bottom }
|
|
1444
1444
|
],
|
|
1445
|
-
side:
|
|
1445
|
+
side: M
|
|
1446
1446
|
}), window.clearTimeout(u.current), u.current = window.setTimeout(
|
|
1447
1447
|
() => s.onPointerGraceIntentChange(null),
|
|
1448
1448
|
300
|
|
1449
1449
|
);
|
|
1450
1450
|
} else {
|
|
1451
|
-
if (s.onTriggerLeave(
|
|
1451
|
+
if (s.onTriggerLeave(d), d.defaultPrevented) return;
|
|
1452
1452
|
s.onPointerGraceIntentChange(null);
|
|
1453
1453
|
}
|
|
1454
1454
|
})
|
|
1455
1455
|
),
|
|
1456
|
-
onKeyDown: y(e.onKeyDown, (
|
|
1456
|
+
onKeyDown: y(e.onKeyDown, (d) => {
|
|
1457
1457
|
var v;
|
|
1458
|
-
const
|
|
1459
|
-
e.disabled ||
|
|
1458
|
+
const h = s.searchRef.current !== "";
|
|
1459
|
+
e.disabled || h && d.key === " " || ro[r.dir].includes(d.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), d.preventDefault());
|
|
1460
1460
|
})
|
|
1461
1461
|
}
|
|
1462
1462
|
) });
|
|
1463
1463
|
}
|
|
1464
1464
|
);
|
|
1465
|
-
|
|
1466
|
-
var
|
|
1465
|
+
mn.displayName = de;
|
|
1466
|
+
var gn = "MenuSubContent", vn = c.forwardRef(
|
|
1467
1467
|
(e, t) => {
|
|
1468
|
-
const n =
|
|
1469
|
-
return /* @__PURE__ */
|
|
1468
|
+
const n = Jt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = z(D, e.__scopeMenu), i = we(D, e.__scopeMenu), u = fn(gn, e.__scopeMenu), l = c.useRef(null), g = ge(t, l);
|
|
1469
|
+
return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(ke, { present: r || s.open, children: /* @__PURE__ */ a.jsx(fe.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
|
|
1470
1470
|
tt,
|
|
1471
1471
|
{
|
|
1472
1472
|
id: u.contentId,
|
|
1473
1473
|
"aria-labelledby": u.triggerId,
|
|
1474
|
-
...
|
|
1474
|
+
...o,
|
|
1475
1475
|
ref: g,
|
|
1476
1476
|
align: "start",
|
|
1477
1477
|
side: i.dir === "rtl" ? "left" : "right",
|
|
@@ -1479,8 +1479,8 @@ var mn = "MenuSubContent", gn = c.forwardRef(
|
|
|
1479
1479
|
disableOutsideScroll: !1,
|
|
1480
1480
|
trapFocus: !1,
|
|
1481
1481
|
onOpenAutoFocus: (p) => {
|
|
1482
|
-
var
|
|
1483
|
-
i.isUsingKeyboardRef.current && ((
|
|
1482
|
+
var d;
|
|
1483
|
+
i.isUsingKeyboardRef.current && ((d = l.current) == null || d.focus()), p.preventDefault();
|
|
1484
1484
|
},
|
|
1485
1485
|
onCloseAutoFocus: (p) => p.preventDefault(),
|
|
1486
1486
|
onFocusOutside: y(e.onFocusOutside, (p) => {
|
|
@@ -1491,95 +1491,95 @@ var mn = "MenuSubContent", gn = c.forwardRef(
|
|
|
1491
1491
|
}),
|
|
1492
1492
|
onKeyDown: y(e.onKeyDown, (p) => {
|
|
1493
1493
|
var v;
|
|
1494
|
-
const
|
|
1495
|
-
|
|
1494
|
+
const d = p.currentTarget.contains(p.target), h = ao[i.dir].includes(p.key);
|
|
1495
|
+
d && h && (s.onOpenChange(!1), (v = u.trigger) == null || v.focus(), p.preventDefault());
|
|
1496
1496
|
})
|
|
1497
1497
|
}
|
|
1498
1498
|
) }) }) });
|
|
1499
1499
|
}
|
|
1500
1500
|
);
|
|
1501
|
-
|
|
1502
|
-
function
|
|
1501
|
+
vn.displayName = gn;
|
|
1502
|
+
function xn(e) {
|
|
1503
1503
|
return e ? "open" : "closed";
|
|
1504
1504
|
}
|
|
1505
1505
|
function Ne(e) {
|
|
1506
1506
|
return e === "indeterminate";
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1508
|
+
function ot(e) {
|
|
1509
1509
|
return Ne(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function Co(e) {
|
|
1512
1512
|
const t = document.activeElement;
|
|
1513
1513
|
for (const n of e)
|
|
1514
1514
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1516
|
+
function So(e, t) {
|
|
1517
1517
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1520
|
-
const
|
|
1521
|
-
let i =
|
|
1522
|
-
|
|
1523
|
-
const
|
|
1524
|
-
(g) => g.toLowerCase().startsWith(
|
|
1519
|
+
function Po(e, t, n) {
|
|
1520
|
+
const o = t.length > 1 && Array.from(t).every((g) => g === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
1521
|
+
let i = So(e, Math.max(s, 0));
|
|
1522
|
+
o.length === 1 && (i = i.filter((g) => g !== n));
|
|
1523
|
+
const l = i.find(
|
|
1524
|
+
(g) => g.toLowerCase().startsWith(o.toLowerCase())
|
|
1525
1525
|
);
|
|
1526
|
-
return
|
|
1526
|
+
return l !== n ? l : void 0;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function jo(e, t) {
|
|
1529
1529
|
const { x: n, y: r } = e;
|
|
1530
|
-
let
|
|
1530
|
+
let o = !1;
|
|
1531
1531
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
1532
|
-
const u = t[s].x,
|
|
1533
|
-
|
|
1532
|
+
const u = t[s].x, l = t[s].y, g = t[i].x, p = t[i].y;
|
|
1533
|
+
l > r != p > r && n < (g - u) * (r - l) / (p - l) + u && (o = !o);
|
|
1534
1534
|
}
|
|
1535
|
-
return
|
|
1535
|
+
return o;
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1537
|
+
function Ro(e, t) {
|
|
1538
1538
|
if (!t) return !1;
|
|
1539
1539
|
const n = { x: e.clientX, y: e.clientY };
|
|
1540
|
-
return
|
|
1540
|
+
return jo(n, t);
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function pe(e) {
|
|
1543
1543
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
1544
1544
|
}
|
|
1545
|
-
var
|
|
1545
|
+
var Eo = Wt, _o = Je, No = Zt, Do = en, Io = nt, ko = tn, Ao = Ae, Oo = rn, To = on, Fo = cn, Lo = ln, Ko = dn, $o = hn, Bo = pn, Qo = mn, qo = vn, st = "DropdownMenu", [Uo, Gs] = Et(
|
|
1546
1546
|
st,
|
|
1547
|
-
[
|
|
1548
|
-
),
|
|
1547
|
+
[Vt]
|
|
1548
|
+
), P = Vt(), [Go, yn] = Uo(st), wn = (e) => {
|
|
1549
1549
|
const {
|
|
1550
1550
|
__scopeDropdownMenu: t,
|
|
1551
1551
|
children: n,
|
|
1552
1552
|
dir: r,
|
|
1553
|
-
open:
|
|
1553
|
+
open: o,
|
|
1554
1554
|
defaultOpen: s,
|
|
1555
1555
|
onOpenChange: i,
|
|
1556
1556
|
modal: u = !0
|
|
1557
|
-
} = e,
|
|
1558
|
-
prop:
|
|
1557
|
+
} = e, l = P(t), g = c.useRef(null), [p = !1, d] = It({
|
|
1558
|
+
prop: o,
|
|
1559
1559
|
defaultProp: s,
|
|
1560
1560
|
onChange: i
|
|
1561
1561
|
});
|
|
1562
|
-
return /* @__PURE__ */
|
|
1563
|
-
|
|
1562
|
+
return /* @__PURE__ */ a.jsx(
|
|
1563
|
+
Go,
|
|
1564
1564
|
{
|
|
1565
1565
|
scope: t,
|
|
1566
1566
|
triggerId: Ee(),
|
|
1567
1567
|
triggerRef: g,
|
|
1568
1568
|
contentId: Ee(),
|
|
1569
1569
|
open: p,
|
|
1570
|
-
onOpenChange:
|
|
1571
|
-
onOpenToggle: c.useCallback(() =>
|
|
1570
|
+
onOpenChange: d,
|
|
1571
|
+
onOpenToggle: c.useCallback(() => d((h) => !h), [d]),
|
|
1572
1572
|
modal: u,
|
|
1573
|
-
children: /* @__PURE__ */
|
|
1573
|
+
children: /* @__PURE__ */ a.jsx(Eo, { ...l, open: p, onOpenChange: d, dir: r, modal: u, children: n })
|
|
1574
1574
|
}
|
|
1575
1575
|
);
|
|
1576
1576
|
};
|
|
1577
|
-
|
|
1578
|
-
var
|
|
1577
|
+
wn.displayName = st;
|
|
1578
|
+
var bn = "DropdownMenuTrigger", Mn = c.forwardRef(
|
|
1579
1579
|
(e, t) => {
|
|
1580
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...
|
|
1581
|
-
return /* @__PURE__ */
|
|
1582
|
-
|
|
1580
|
+
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = yn(bn, n), i = P(n);
|
|
1581
|
+
return /* @__PURE__ */ a.jsx(_o, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
|
|
1582
|
+
ce.button,
|
|
1583
1583
|
{
|
|
1584
1584
|
type: "button",
|
|
1585
1585
|
id: s.triggerId,
|
|
@@ -1589,7 +1589,7 @@ var wn = "DropdownMenuTrigger", bn = c.forwardRef(
|
|
|
1589
1589
|
"data-state": s.open ? "open" : "closed",
|
|
1590
1590
|
"data-disabled": r ? "" : void 0,
|
|
1591
1591
|
disabled: r,
|
|
1592
|
-
...
|
|
1592
|
+
...o,
|
|
1593
1593
|
ref: Nt(t, s.triggerRef),
|
|
1594
1594
|
onPointerDown: y(e.onPointerDown, (u) => {
|
|
1595
1595
|
!r && u.button === 0 && u.ctrlKey === !1 && (s.onOpenToggle(), s.open || u.preventDefault());
|
|
@@ -1601,30 +1601,30 @@ var wn = "DropdownMenuTrigger", bn = c.forwardRef(
|
|
|
1601
1601
|
) });
|
|
1602
1602
|
}
|
|
1603
1603
|
);
|
|
1604
|
-
|
|
1605
|
-
var
|
|
1606
|
-
const { __scopeDropdownMenu: t, ...n } = e, r =
|
|
1607
|
-
return /* @__PURE__ */
|
|
1604
|
+
Mn.displayName = bn;
|
|
1605
|
+
var Ho = "DropdownMenuPortal", Cn = (e) => {
|
|
1606
|
+
const { __scopeDropdownMenu: t, ...n } = e, r = P(t);
|
|
1607
|
+
return /* @__PURE__ */ a.jsx(No, { ...r, ...n });
|
|
1608
1608
|
};
|
|
1609
|
-
|
|
1610
|
-
var
|
|
1609
|
+
Cn.displayName = Ho;
|
|
1610
|
+
var Sn = "DropdownMenuContent", Pn = c.forwardRef(
|
|
1611
1611
|
(e, t) => {
|
|
1612
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1613
|
-
return /* @__PURE__ */
|
|
1614
|
-
|
|
1612
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = yn(Sn, n), s = P(n), i = c.useRef(!1);
|
|
1613
|
+
return /* @__PURE__ */ a.jsx(
|
|
1614
|
+
Do,
|
|
1615
1615
|
{
|
|
1616
|
-
id:
|
|
1617
|
-
"aria-labelledby":
|
|
1616
|
+
id: o.contentId,
|
|
1617
|
+
"aria-labelledby": o.triggerId,
|
|
1618
1618
|
...s,
|
|
1619
1619
|
...r,
|
|
1620
1620
|
ref: t,
|
|
1621
1621
|
onCloseAutoFocus: y(e.onCloseAutoFocus, (u) => {
|
|
1622
|
-
var
|
|
1623
|
-
i.current || (
|
|
1622
|
+
var l;
|
|
1623
|
+
i.current || (l = o.triggerRef.current) == null || l.focus(), i.current = !1, u.preventDefault();
|
|
1624
1624
|
}),
|
|
1625
1625
|
onInteractOutside: y(e.onInteractOutside, (u) => {
|
|
1626
|
-
const
|
|
1627
|
-
(!
|
|
1626
|
+
const l = u.detail.originalEvent, g = l.button === 0 && l.ctrlKey === !0, p = l.button === 2 || g;
|
|
1627
|
+
(!o.modal || p) && (i.current = !0);
|
|
1628
1628
|
}),
|
|
1629
1629
|
style: {
|
|
1630
1630
|
...e.style,
|
|
@@ -1638,78 +1638,78 @@ var Cn = "DropdownMenuContent", Rn = c.forwardRef(
|
|
|
1638
1638
|
);
|
|
1639
1639
|
}
|
|
1640
1640
|
);
|
|
1641
|
-
|
|
1642
|
-
var
|
|
1641
|
+
Pn.displayName = Sn;
|
|
1642
|
+
var zo = "DropdownMenuGroup", Vo = c.forwardRef(
|
|
1643
1643
|
(e, t) => {
|
|
1644
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1645
|
-
return /* @__PURE__ */
|
|
1644
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1645
|
+
return /* @__PURE__ */ a.jsx(Io, { ...o, ...r, ref: t });
|
|
1646
1646
|
}
|
|
1647
1647
|
);
|
|
1648
|
-
|
|
1649
|
-
var
|
|
1648
|
+
Vo.displayName = zo;
|
|
1649
|
+
var Yo = "DropdownMenuLabel", jn = c.forwardRef(
|
|
1650
1650
|
(e, t) => {
|
|
1651
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1652
|
-
return /* @__PURE__ */
|
|
1651
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1652
|
+
return /* @__PURE__ */ a.jsx(ko, { ...o, ...r, ref: t });
|
|
1653
1653
|
}
|
|
1654
1654
|
);
|
|
1655
|
-
|
|
1656
|
-
var
|
|
1655
|
+
jn.displayName = Yo;
|
|
1656
|
+
var Xo = "DropdownMenuItem", Rn = c.forwardRef(
|
|
1657
1657
|
(e, t) => {
|
|
1658
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1659
|
-
return /* @__PURE__ */
|
|
1658
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1659
|
+
return /* @__PURE__ */ a.jsx(Ao, { ...o, ...r, ref: t });
|
|
1660
1660
|
}
|
|
1661
1661
|
);
|
|
1662
|
-
|
|
1663
|
-
var
|
|
1664
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1665
|
-
return /* @__PURE__ */
|
|
1662
|
+
Rn.displayName = Xo;
|
|
1663
|
+
var Wo = "DropdownMenuCheckboxItem", En = c.forwardRef((e, t) => {
|
|
1664
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1665
|
+
return /* @__PURE__ */ a.jsx(Oo, { ...o, ...r, ref: t });
|
|
1666
1666
|
});
|
|
1667
|
-
|
|
1668
|
-
var
|
|
1669
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1670
|
-
return /* @__PURE__ */
|
|
1667
|
+
En.displayName = Wo;
|
|
1668
|
+
var Jo = "DropdownMenuRadioGroup", Zo = c.forwardRef((e, t) => {
|
|
1669
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1670
|
+
return /* @__PURE__ */ a.jsx(To, { ...o, ...r, ref: t });
|
|
1671
1671
|
});
|
|
1672
|
-
|
|
1673
|
-
var
|
|
1674
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1675
|
-
return /* @__PURE__ */
|
|
1672
|
+
Zo.displayName = Jo;
|
|
1673
|
+
var es = "DropdownMenuRadioItem", _n = c.forwardRef((e, t) => {
|
|
1674
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1675
|
+
return /* @__PURE__ */ a.jsx(Fo, { ...o, ...r, ref: t });
|
|
1676
1676
|
});
|
|
1677
|
-
|
|
1678
|
-
var
|
|
1679
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1680
|
-
return /* @__PURE__ */
|
|
1677
|
+
_n.displayName = es;
|
|
1678
|
+
var ts = "DropdownMenuItemIndicator", Nn = c.forwardRef((e, t) => {
|
|
1679
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1680
|
+
return /* @__PURE__ */ a.jsx(Lo, { ...o, ...r, ref: t });
|
|
1681
1681
|
});
|
|
1682
|
-
|
|
1683
|
-
var
|
|
1684
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1685
|
-
return /* @__PURE__ */
|
|
1682
|
+
Nn.displayName = ts;
|
|
1683
|
+
var ns = "DropdownMenuSeparator", Dn = c.forwardRef((e, t) => {
|
|
1684
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1685
|
+
return /* @__PURE__ */ a.jsx(Ko, { ...o, ...r, ref: t });
|
|
1686
1686
|
});
|
|
1687
|
-
|
|
1688
|
-
var
|
|
1687
|
+
Dn.displayName = ns;
|
|
1688
|
+
var rs = "DropdownMenuArrow", as = c.forwardRef(
|
|
1689
1689
|
(e, t) => {
|
|
1690
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1691
|
-
return /* @__PURE__ */
|
|
1690
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1691
|
+
return /* @__PURE__ */ a.jsx($o, { ...o, ...r, ref: t });
|
|
1692
1692
|
}
|
|
1693
1693
|
);
|
|
1694
|
-
|
|
1695
|
-
var
|
|
1696
|
-
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange:
|
|
1694
|
+
as.displayName = rs;
|
|
1695
|
+
var os = (e) => {
|
|
1696
|
+
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = P(t), [u = !1, l] = It({
|
|
1697
1697
|
prop: r,
|
|
1698
1698
|
defaultProp: s,
|
|
1699
|
-
onChange:
|
|
1699
|
+
onChange: o
|
|
1700
1700
|
});
|
|
1701
|
-
return /* @__PURE__ */
|
|
1702
|
-
},
|
|
1703
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1704
|
-
return /* @__PURE__ */
|
|
1701
|
+
return /* @__PURE__ */ a.jsx(Bo, { ...i, open: u, onOpenChange: l, children: n });
|
|
1702
|
+
}, ss = "DropdownMenuSubTrigger", In = c.forwardRef((e, t) => {
|
|
1703
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1704
|
+
return /* @__PURE__ */ a.jsx(Qo, { ...o, ...r, ref: t });
|
|
1705
1705
|
});
|
|
1706
|
-
|
|
1707
|
-
var
|
|
1708
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1709
|
-
return /* @__PURE__ */
|
|
1710
|
-
|
|
1706
|
+
In.displayName = ss;
|
|
1707
|
+
var is = "DropdownMenuSubContent", kn = c.forwardRef((e, t) => {
|
|
1708
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1709
|
+
return /* @__PURE__ */ a.jsx(
|
|
1710
|
+
qo,
|
|
1711
1711
|
{
|
|
1712
|
-
...
|
|
1712
|
+
...o,
|
|
1713
1713
|
...r,
|
|
1714
1714
|
ref: t,
|
|
1715
1715
|
style: {
|
|
@@ -1723,13 +1723,13 @@ var as = "DropdownMenuSubContent", In = c.forwardRef((e, t) => {
|
|
|
1723
1723
|
}
|
|
1724
1724
|
);
|
|
1725
1725
|
});
|
|
1726
|
-
|
|
1727
|
-
var
|
|
1728
|
-
const
|
|
1729
|
-
|
|
1726
|
+
kn.displayName = is;
|
|
1727
|
+
var cs = wn, us = Mn, An = Cn, On = Pn, Tn = jn, Fn = Rn, Ln = En, Kn = _n, $n = Nn, Bn = Dn, ls = os, Qn = In, qn = kn;
|
|
1728
|
+
const ds = cs, hs = us, fs = An, ps = ls, Un = c.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
|
|
1729
|
+
Qn,
|
|
1730
1730
|
{
|
|
1731
|
-
ref:
|
|
1732
|
-
className:
|
|
1731
|
+
ref: o,
|
|
1732
|
+
className: b(
|
|
1733
1733
|
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
|
|
1734
1734
|
t && "pl-8",
|
|
1735
1735
|
e
|
|
@@ -1737,29 +1737,29 @@ const us = ss, ls = is, ds = kn, hs = cs, qn = c.forwardRef(({ className: e, ins
|
|
|
1737
1737
|
...r,
|
|
1738
1738
|
children: [
|
|
1739
1739
|
n,
|
|
1740
|
-
/* @__PURE__ */
|
|
1740
|
+
/* @__PURE__ */ a.jsx(Qt, { className: "ml-auto h-4 w-4" })
|
|
1741
1741
|
]
|
|
1742
1742
|
}
|
|
1743
1743
|
));
|
|
1744
|
-
|
|
1745
|
-
const
|
|
1746
|
-
|
|
1744
|
+
Un.displayName = Qn.displayName;
|
|
1745
|
+
const Gn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
1746
|
+
qn,
|
|
1747
1747
|
{
|
|
1748
1748
|
ref: n,
|
|
1749
|
-
className:
|
|
1749
|
+
className: b(
|
|
1750
1750
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1751
1751
|
e
|
|
1752
1752
|
),
|
|
1753
1753
|
...t
|
|
1754
1754
|
}
|
|
1755
1755
|
));
|
|
1756
|
-
|
|
1757
|
-
const
|
|
1758
|
-
|
|
1756
|
+
Gn.displayName = qn.displayName;
|
|
1757
|
+
const Hn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ a.jsx(An, { children: /* @__PURE__ */ a.jsx(
|
|
1758
|
+
On,
|
|
1759
1759
|
{
|
|
1760
1760
|
ref: r,
|
|
1761
1761
|
sideOffset: t,
|
|
1762
|
-
className:
|
|
1762
|
+
className: b(
|
|
1763
1763
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1764
1764
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1765
1765
|
e
|
|
@@ -1767,12 +1767,12 @@ const Gn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
|
|
|
1767
1767
|
...n
|
|
1768
1768
|
}
|
|
1769
1769
|
) }));
|
|
1770
|
-
|
|
1771
|
-
const
|
|
1772
|
-
|
|
1770
|
+
Hn.displayName = On.displayName;
|
|
1771
|
+
const zn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
|
|
1772
|
+
Fn,
|
|
1773
1773
|
{
|
|
1774
1774
|
ref: r,
|
|
1775
|
-
className:
|
|
1775
|
+
className: b(
|
|
1776
1776
|
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1777
1777
|
t && "pl-8",
|
|
1778
1778
|
e
|
|
@@ -1780,45 +1780,45 @@ const Hn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
1780
1780
|
...n
|
|
1781
1781
|
}
|
|
1782
1782
|
));
|
|
1783
|
-
|
|
1784
|
-
const
|
|
1785
|
-
|
|
1783
|
+
zn.displayName = Fn.displayName;
|
|
1784
|
+
const ms = c.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
|
|
1785
|
+
Ln,
|
|
1786
1786
|
{
|
|
1787
|
-
ref:
|
|
1788
|
-
className:
|
|
1787
|
+
ref: o,
|
|
1788
|
+
className: b(
|
|
1789
1789
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1790
1790
|
e
|
|
1791
1791
|
),
|
|
1792
1792
|
checked: n,
|
|
1793
1793
|
...r,
|
|
1794
1794
|
children: [
|
|
1795
|
-
/* @__PURE__ */
|
|
1795
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx($n, { children: /* @__PURE__ */ a.jsx(Tr, { className: "h-4 w-4" }) }) }),
|
|
1796
1796
|
t
|
|
1797
1797
|
]
|
|
1798
1798
|
}
|
|
1799
1799
|
));
|
|
1800
|
-
|
|
1801
|
-
const
|
|
1802
|
-
|
|
1800
|
+
ms.displayName = Ln.displayName;
|
|
1801
|
+
const gs = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
|
|
1802
|
+
Kn,
|
|
1803
1803
|
{
|
|
1804
1804
|
ref: r,
|
|
1805
|
-
className:
|
|
1805
|
+
className: b(
|
|
1806
1806
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1807
1807
|
e
|
|
1808
1808
|
),
|
|
1809
1809
|
...n,
|
|
1810
1810
|
children: [
|
|
1811
|
-
/* @__PURE__ */
|
|
1811
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx($n, { children: /* @__PURE__ */ a.jsx(pa, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1812
1812
|
t
|
|
1813
1813
|
]
|
|
1814
1814
|
}
|
|
1815
1815
|
));
|
|
1816
|
-
|
|
1817
|
-
const
|
|
1818
|
-
|
|
1816
|
+
gs.displayName = Kn.displayName;
|
|
1817
|
+
const Vn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
|
|
1818
|
+
Tn,
|
|
1819
1819
|
{
|
|
1820
1820
|
ref: r,
|
|
1821
|
-
className:
|
|
1821
|
+
className: b(
|
|
1822
1822
|
"px-2 py-1.5 text-sm font-semibold",
|
|
1823
1823
|
t && "pl-8",
|
|
1824
1824
|
e
|
|
@@ -1826,20 +1826,18 @@ const zn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
1826
1826
|
...n
|
|
1827
1827
|
}
|
|
1828
1828
|
));
|
|
1829
|
-
|
|
1830
|
-
const
|
|
1831
|
-
|
|
1829
|
+
Vn.displayName = Tn.displayName;
|
|
1830
|
+
const Yn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
1831
|
+
Bn,
|
|
1832
1832
|
{
|
|
1833
1833
|
ref: n,
|
|
1834
|
-
className:
|
|
1834
|
+
className: b("-mx-1 my-1 h-px bg-muted", e),
|
|
1835
1835
|
...t
|
|
1836
1836
|
}
|
|
1837
1837
|
));
|
|
1838
|
-
|
|
1839
|
-
const
|
|
1840
|
-
const e = Ie(), [t, n] =
|
|
1841
|
-
n(!1);
|
|
1842
|
-
}, []);
|
|
1838
|
+
Yn.displayName = Bn.displayName;
|
|
1839
|
+
const vs = () => {
|
|
1840
|
+
const e = Ie(), [t, n] = ie(!1), r = Ot(() => n(!1), []);
|
|
1843
1841
|
W(() => {
|
|
1844
1842
|
if (t)
|
|
1845
1843
|
return;
|
|
@@ -1850,33 +1848,34 @@ const ms = () => {
|
|
|
1850
1848
|
window.removeEventListener("keydown", s);
|
|
1851
1849
|
};
|
|
1852
1850
|
}, [t, n]);
|
|
1853
|
-
const
|
|
1854
|
-
return
|
|
1855
|
-
/* @__PURE__ */
|
|
1851
|
+
const o = e.plugins.find(Va);
|
|
1852
|
+
return o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1853
|
+
/* @__PURE__ */ a.jsxs(
|
|
1856
1854
|
"button",
|
|
1857
1855
|
{
|
|
1858
1856
|
type: "button",
|
|
1857
|
+
onClick: () => n(!0),
|
|
1859
1858
|
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",
|
|
1860
1859
|
children: [
|
|
1861
|
-
/* @__PURE__ */
|
|
1862
|
-
/* @__PURE__ */
|
|
1860
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
1861
|
+
/* @__PURE__ */ a.jsx(va, { size: 14 }),
|
|
1863
1862
|
"Search"
|
|
1864
1863
|
] }),
|
|
1865
|
-
/* @__PURE__ */
|
|
1864
|
+
/* @__PURE__ */ a.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" })
|
|
1866
1865
|
]
|
|
1867
1866
|
}
|
|
1868
1867
|
),
|
|
1869
|
-
|
|
1868
|
+
/* @__PURE__ */ a.jsx(Tt, { fallback: null, children: o.renderSearch({
|
|
1870
1869
|
isOpen: t,
|
|
1871
1870
|
onClose: r
|
|
1872
|
-
})
|
|
1871
|
+
}) })
|
|
1873
1872
|
] }) : null;
|
|
1874
|
-
},
|
|
1873
|
+
}, xs = () => {
|
|
1875
1874
|
const { topNavigation: e } = Ie();
|
|
1876
|
-
return e.length <= 1 ? null : /* @__PURE__ */
|
|
1877
|
-
|
|
1875
|
+
return e.length <= 1 ? null : /* @__PURE__ */ a.jsx("nav", { className: "border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.map((t) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
1876
|
+
je,
|
|
1878
1877
|
{
|
|
1879
|
-
className: ({ isActive: n }) =>
|
|
1878
|
+
className: ({ isActive: n }) => Fr(
|
|
1880
1879
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
1881
1880
|
n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
1882
1881
|
),
|
|
@@ -1884,46 +1883,47 @@ const ms = () => {
|
|
|
1884
1883
|
children: t.label
|
|
1885
1884
|
}
|
|
1886
1885
|
) }, t.label)) }) });
|
|
1887
|
-
},
|
|
1888
|
-
/* @__PURE__ */
|
|
1889
|
-
/* @__PURE__ */
|
|
1886
|
+
}, Xn = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(ps, { children: [
|
|
1887
|
+
/* @__PURE__ */ a.jsx(Un, { children: e.label }),
|
|
1888
|
+
/* @__PURE__ */ a.jsx(fs, { children: /* @__PURE__ */ a.jsx(Gn, { children: e.children.map((t, n) => (
|
|
1890
1889
|
// eslint-disable-next-line react/no-array-index-key
|
|
1891
|
-
/* @__PURE__ */
|
|
1890
|
+
/* @__PURE__ */ a.jsx(Xn, { item: t }, n)
|
|
1892
1891
|
)) }) })
|
|
1893
|
-
] }, e.label) : /* @__PURE__ */
|
|
1894
|
-
const [t, n] =
|
|
1895
|
-
return /* @__PURE__ */
|
|
1896
|
-
/* @__PURE__ */
|
|
1897
|
-
/* @__PURE__ */
|
|
1898
|
-
(
|
|
1899
|
-
/* @__PURE__ */
|
|
1892
|
+
] }, e.label) : /* @__PURE__ */ a.jsx(Re, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(zn, { children: e.label }, e.label) }), Wn = Ft(function() {
|
|
1893
|
+
const [t, n] = Lr(), { isAuthenticated: r, profile: o, isAuthEnabled: s } = Or(), { pathname: i } = De(), u = Ie(), { page: l, plugins: g } = u, p = g.filter((h) => Ha(h)).flatMap((h) => h.getProfileMenuItems(u)).map((h) => /* @__PURE__ */ a.jsx(Xn, { item: h }, h.label)), d = t ? ga : xa;
|
|
1894
|
+
return /* @__PURE__ */ a.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
1895
|
+
/* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
|
|
1896
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Re, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
1897
|
+
(l == null ? void 0 : l.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1898
|
+
/* @__PURE__ */ a.jsx(
|
|
1900
1899
|
"img",
|
|
1901
1900
|
{
|
|
1902
|
-
src:
|
|
1903
|
-
alt:
|
|
1904
|
-
style: { width:
|
|
1905
|
-
className:
|
|
1901
|
+
src: l.logo.src.light,
|
|
1902
|
+
alt: l.logo.alt ?? l.pageTitle,
|
|
1903
|
+
style: { width: l.logo.width },
|
|
1904
|
+
className: b("h-10", t && "hidden"),
|
|
1906
1905
|
loading: "lazy"
|
|
1907
1906
|
}
|
|
1908
1907
|
),
|
|
1909
|
-
/* @__PURE__ */
|
|
1908
|
+
/* @__PURE__ */ a.jsx(
|
|
1910
1909
|
"img",
|
|
1911
1910
|
{
|
|
1912
|
-
src:
|
|
1913
|
-
alt:
|
|
1914
|
-
style: { width:
|
|
1915
|
-
className:
|
|
1911
|
+
src: l.logo.src.dark,
|
|
1912
|
+
alt: l.logo.alt ?? l.pageTitle,
|
|
1913
|
+
style: { width: l.logo.width },
|
|
1914
|
+
className: b("h-10", !t && "hidden"),
|
|
1916
1915
|
loading: "lazy"
|
|
1917
1916
|
}
|
|
1918
1917
|
)
|
|
1919
1918
|
] }),
|
|
1920
|
-
/* @__PURE__ */
|
|
1919
|
+
/* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: l == null ? void 0 : l.pageTitle })
|
|
1921
1920
|
] }) }) }),
|
|
1922
|
-
/* @__PURE__ */
|
|
1923
|
-
/* @__PURE__ */
|
|
1924
|
-
/* @__PURE__ */
|
|
1925
|
-
|
|
1926
|
-
|
|
1921
|
+
/* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
1922
|
+
/* @__PURE__ */ a.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ a.jsx(vs, {}) }),
|
|
1923
|
+
/* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
|
|
1924
|
+
/* @__PURE__ */ a.jsx(se, { name: "head-navigation-start" }),
|
|
1925
|
+
s && !r ? /* @__PURE__ */ a.jsx(Qe, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
1926
|
+
Re,
|
|
1927
1927
|
{
|
|
1928
1928
|
to: {
|
|
1929
1929
|
pathname: "/signin",
|
|
@@ -1931,33 +1931,34 @@ const ms = () => {
|
|
|
1931
1931
|
},
|
|
1932
1932
|
children: "Login"
|
|
1933
1933
|
}
|
|
1934
|
-
) }) : p.length > 0 && /* @__PURE__ */
|
|
1935
|
-
/* @__PURE__ */
|
|
1936
|
-
/* @__PURE__ */
|
|
1937
|
-
/* @__PURE__ */
|
|
1938
|
-
/* @__PURE__ */
|
|
1934
|
+
) }) : p.length > 0 && /* @__PURE__ */ a.jsxs(ds, { children: [
|
|
1935
|
+
/* @__PURE__ */ a.jsx(hs, { asChild: !0, children: /* @__PURE__ */ a.jsx(Qe, { variant: "ghost", children: o != null && o.email ? `${o.email}` : "My Account" }) }),
|
|
1936
|
+
/* @__PURE__ */ a.jsxs(Hn, { className: "w-56", children: [
|
|
1937
|
+
/* @__PURE__ */ a.jsx(Vn, { children: "My Account" }),
|
|
1938
|
+
/* @__PURE__ */ a.jsx(Yn, {}),
|
|
1939
1939
|
p
|
|
1940
1940
|
] })
|
|
1941
1941
|
] }),
|
|
1942
|
-
/* @__PURE__ */
|
|
1942
|
+
/* @__PURE__ */ a.jsx(
|
|
1943
1943
|
"button",
|
|
1944
1944
|
{
|
|
1945
1945
|
type: "button",
|
|
1946
1946
|
"aria-label": t ? "Switch to light mode" : "Switch to dark mode",
|
|
1947
1947
|
className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
|
|
1948
1948
|
onClick: n,
|
|
1949
|
-
children: /* @__PURE__ */
|
|
1949
|
+
children: /* @__PURE__ */ a.jsx(d, { size: 18 })
|
|
1950
1950
|
}
|
|
1951
|
-
)
|
|
1951
|
+
),
|
|
1952
|
+
/* @__PURE__ */ a.jsx(se, { name: "head-navigation-end" })
|
|
1952
1953
|
] })
|
|
1953
1954
|
] })
|
|
1954
1955
|
] }),
|
|
1955
|
-
/* @__PURE__ */
|
|
1956
|
+
/* @__PURE__ */ a.jsx(xs, {})
|
|
1956
1957
|
] }) });
|
|
1957
|
-
}),
|
|
1958
|
-
Header:
|
|
1959
|
-
},
|
|
1960
|
-
const [t, n] =
|
|
1958
|
+
}), Jn = {
|
|
1959
|
+
Header: Wn
|
|
1960
|
+
}, ys = At(Jn), ws = ys.Provider, bs = (e) => {
|
|
1961
|
+
const [t, n] = ie(!1);
|
|
1961
1962
|
W(() => {
|
|
1962
1963
|
const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), u = s === "dark" || !s && i.matches;
|
|
1963
1964
|
n(u);
|
|
@@ -1965,124 +1966,137 @@ const ms = () => {
|
|
|
1965
1966
|
const r = Ot(() => {
|
|
1966
1967
|
const s = !t;
|
|
1967
1968
|
document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
|
|
1968
|
-
}, [t]),
|
|
1969
|
-
return /* @__PURE__ */
|
|
1970
|
-
},
|
|
1969
|
+
}, [t]), o = [t, r];
|
|
1970
|
+
return /* @__PURE__ */ a.jsx(Kr.Provider, { value: o, ...e });
|
|
1971
|
+
}, Ms = ({
|
|
1971
1972
|
children: e,
|
|
1972
1973
|
context: t
|
|
1973
1974
|
}) => {
|
|
1974
|
-
const n =
|
|
1975
|
-
return
|
|
1975
|
+
const n = gr();
|
|
1976
|
+
return ia({
|
|
1976
1977
|
queryFn: async () => (await t.initialize({ navigate: n }), !0),
|
|
1977
1978
|
queryKey: ["zudoku-initialize"]
|
|
1978
|
-
}), /* @__PURE__ */
|
|
1979
|
-
},
|
|
1979
|
+
}), /* @__PURE__ */ a.jsx(ca.Provider, { value: t, children: e });
|
|
1980
|
+
}, Cs = ({
|
|
1980
1981
|
children: e,
|
|
1981
1982
|
...t
|
|
1982
1983
|
}) => {
|
|
1983
|
-
var
|
|
1984
|
+
var d, h;
|
|
1984
1985
|
const n = Ke(
|
|
1985
|
-
() => ({ ...
|
|
1986
|
+
() => ({ ...Jn, ...t.overrides }),
|
|
1986
1987
|
[t.overrides]
|
|
1987
1988
|
), r = Ke(() => {
|
|
1988
1989
|
var x;
|
|
1989
1990
|
return {
|
|
1990
|
-
...(t.plugins ?? []).filter(
|
|
1991
|
-
(
|
|
1992
|
-
).reduce((
|
|
1993
|
-
|
|
1991
|
+
...(t.plugins ?? []).filter(Wa).flatMap(
|
|
1992
|
+
(M) => M.getMdxComponents ? [M.getMdxComponents()] : []
|
|
1993
|
+
).reduce((M, I) => ({ ...M, ...I }), {}),
|
|
1994
|
+
...$r,
|
|
1994
1995
|
...(x = t.mdx) == null ? void 0 : x.components
|
|
1995
1996
|
};
|
|
1996
|
-
}, [(
|
|
1997
|
-
() => s ? { stagger: !0 } : { stagger:
|
|
1998
|
-
[
|
|
1999
|
-
),
|
|
1997
|
+
}, [(d = t.mdx) == null ? void 0 : d.components, t.plugins]), { stagger: o } = zr(qe), [s, i] = ie(!1), u = Ke(
|
|
1998
|
+
() => s ? { stagger: !0 } : { stagger: o },
|
|
1999
|
+
[o, s]
|
|
2000
|
+
), l = vr();
|
|
2000
2001
|
W(() => {
|
|
2001
2002
|
s || i(!0);
|
|
2002
|
-
}, [s,
|
|
2003
|
-
const [g] =
|
|
2004
|
-
var
|
|
2005
|
-
return /* @__PURE__ */
|
|
2003
|
+
}, [s, l.location]);
|
|
2004
|
+
const [g] = ie(() => new Za(t)), p = (h = t.plugins) == null ? void 0 : h.filter(Xa).map((v, x) => {
|
|
2005
|
+
var M;
|
|
2006
|
+
return /* @__PURE__ */ a.jsx(Vr, { children: (M = v.getHead) == null ? void 0 : M.call(v) }, x);
|
|
2006
2007
|
});
|
|
2007
|
-
return /* @__PURE__ */
|
|
2008
|
-
/* @__PURE__ */
|
|
2009
|
-
/* @__PURE__ */
|
|
2008
|
+
return /* @__PURE__ */ a.jsxs(ua, { client: Ht, children: [
|
|
2009
|
+
/* @__PURE__ */ a.jsx(Ge, { children: p }),
|
|
2010
|
+
/* @__PURE__ */ a.jsx(qe.Provider, { value: u, children: /* @__PURE__ */ a.jsx(Ms, { context: g, children: /* @__PURE__ */ a.jsx(ur, { components: r, children: /* @__PURE__ */ a.jsx(bs, { children: /* @__PURE__ */ a.jsx(ws, { value: n, children: /* @__PURE__ */ a.jsx(yr, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(Br, { children: e ?? /* @__PURE__ */ a.jsx(jt, {}) }) }) }) }) }) }) })
|
|
2010
2011
|
] });
|
|
2011
|
-
},
|
|
2012
|
-
|
|
2013
|
-
const
|
|
2012
|
+
}, Ss = Ft(Cs), Zn = (e) => /* @__PURE__ */ a.jsx(Ua, { FallbackComponent: eo, children: /* @__PURE__ */ a.jsx(Ss, { ...e }) });
|
|
2013
|
+
Zn.displayName = "DevPortal";
|
|
2014
|
+
const Ps = ({
|
|
2014
2015
|
category: e,
|
|
2015
2016
|
level: t
|
|
2016
2017
|
}) => {
|
|
2017
|
-
var
|
|
2018
|
-
const n =
|
|
2018
|
+
var h;
|
|
2019
|
+
const n = $t(), r = lr(e), [o, s] = ie(!1), i = e.collapsible ?? !0, u = e.collapsed ?? !0, l = !!(!i || !u || r), [g, p] = ie(l);
|
|
2019
2020
|
W(() => {
|
|
2020
|
-
r &&
|
|
2021
|
+
r && p(!0);
|
|
2021
2022
|
}, [r]);
|
|
2022
|
-
const
|
|
2023
|
+
const d = i && /* @__PURE__ */ a.jsx(
|
|
2023
2024
|
"button",
|
|
2024
2025
|
{
|
|
2025
2026
|
type: "button",
|
|
2026
|
-
onClick: (
|
|
2027
|
-
|
|
2027
|
+
onClick: (v) => {
|
|
2028
|
+
v.preventDefault(), p((x) => !x), s(!0);
|
|
2028
2029
|
},
|
|
2029
|
-
children: /* @__PURE__ */
|
|
2030
|
-
|
|
2030
|
+
children: /* @__PURE__ */ a.jsx(
|
|
2031
|
+
Qt,
|
|
2031
2032
|
{
|
|
2032
2033
|
size: 16,
|
|
2033
|
-
className:
|
|
2034
|
+
className: b(
|
|
2035
|
+
o && "transition",
|
|
2036
|
+
"shrink-0 group-data-[state=open]:rotate-90"
|
|
2037
|
+
)
|
|
2034
2038
|
}
|
|
2035
2039
|
)
|
|
2036
2040
|
}
|
|
2037
2041
|
);
|
|
2038
|
-
return /* @__PURE__ */
|
|
2039
|
-
|
|
2042
|
+
return /* @__PURE__ */ a.jsxs(
|
|
2043
|
+
Wr,
|
|
2040
2044
|
{
|
|
2041
|
-
className:
|
|
2042
|
-
defaultOpen:
|
|
2043
|
-
open:
|
|
2044
|
-
onOpenChange: () =>
|
|
2045
|
+
className: b("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
|
|
2046
|
+
defaultOpen: l,
|
|
2047
|
+
open: g,
|
|
2048
|
+
onOpenChange: () => p(!0),
|
|
2045
2049
|
children: [
|
|
2046
|
-
/* @__PURE__ */
|
|
2047
|
-
|
|
2050
|
+
/* @__PURE__ */ a.jsx(
|
|
2051
|
+
Jr,
|
|
2048
2052
|
{
|
|
2049
|
-
className:
|
|
2053
|
+
className: b(
|
|
2050
2054
|
"group text-start",
|
|
2051
|
-
|
|
2052
|
-
|
|
2055
|
+
he({ isActive: !1, isTopLevel: t === 0 }),
|
|
2056
|
+
i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
|
|
2053
2057
|
),
|
|
2054
2058
|
asChild: !0,
|
|
2055
|
-
disabled: !
|
|
2056
|
-
children: ((
|
|
2059
|
+
disabled: !i,
|
|
2060
|
+
children: ((h = e.link) == null ? void 0 : h.type) === "doc" ? /* @__PURE__ */ a.jsx(je, { to: Xe(n == null ? void 0 : n.id, e.link.id), children: ({ isActive: v }) => /* @__PURE__ */ a.jsxs(
|
|
2057
2061
|
"div",
|
|
2058
2062
|
{
|
|
2059
|
-
className:
|
|
2063
|
+
className: b(
|
|
2060
2064
|
"flex items-center gap-2 justify-between w-full",
|
|
2061
|
-
|
|
2065
|
+
v ? "text-primary font-medium" : "text-foreground/80"
|
|
2062
2066
|
),
|
|
2063
2067
|
children: [
|
|
2064
|
-
/* @__PURE__ */
|
|
2065
|
-
|
|
2068
|
+
/* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
|
|
2069
|
+
d
|
|
2066
2070
|
]
|
|
2067
2071
|
}
|
|
2068
|
-
) }) : /* @__PURE__ */
|
|
2069
|
-
/* @__PURE__ */
|
|
2070
|
-
|
|
2072
|
+
) }) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
|
|
2073
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
|
|
2074
|
+
d
|
|
2071
2075
|
] })
|
|
2072
2076
|
}
|
|
2073
2077
|
),
|
|
2074
|
-
/* @__PURE__ */
|
|
2075
|
-
|
|
2078
|
+
/* @__PURE__ */ a.jsx(
|
|
2079
|
+
Zr,
|
|
2076
2080
|
{
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2081
|
+
className: b(
|
|
2082
|
+
// CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
|
|
2083
|
+
o && "CollapsibleContent",
|
|
2084
|
+
"ms-[calc(var(--padding-nav-item)*1.125)]"
|
|
2085
|
+
),
|
|
2086
|
+
children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((v) => /* @__PURE__ */ a.jsx(
|
|
2087
|
+
tr,
|
|
2088
|
+
{
|
|
2089
|
+
level: t + 1,
|
|
2090
|
+
item: v
|
|
2091
|
+
},
|
|
2092
|
+
v.label
|
|
2093
|
+
)) })
|
|
2094
|
+
}
|
|
2095
|
+
)
|
|
2082
2096
|
]
|
|
2083
2097
|
}
|
|
2084
2098
|
);
|
|
2085
|
-
},
|
|
2099
|
+
}, he = Qr(
|
|
2086
2100
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
2087
2101
|
{
|
|
2088
2102
|
variants: {
|
|
@@ -2099,157 +2113,159 @@ const Cs = ({
|
|
|
2099
2113
|
}
|
|
2100
2114
|
}
|
|
2101
2115
|
}
|
|
2102
|
-
),
|
|
2116
|
+
), er = "data-anchor", tr = ({
|
|
2103
2117
|
item: e,
|
|
2104
2118
|
level: t = 0
|
|
2105
2119
|
}) => {
|
|
2106
|
-
const n =
|
|
2120
|
+
const n = $t(), { activeAnchor: r } = ze(), [o] = xr();
|
|
2107
2121
|
switch (e.type) {
|
|
2108
2122
|
case "category":
|
|
2109
|
-
return /* @__PURE__ */
|
|
2123
|
+
return /* @__PURE__ */ a.jsx(Ps, { category: e, level: t });
|
|
2110
2124
|
case "doc":
|
|
2111
|
-
return /* @__PURE__ */
|
|
2112
|
-
|
|
2125
|
+
return /* @__PURE__ */ a.jsx(
|
|
2126
|
+
je,
|
|
2113
2127
|
{
|
|
2114
|
-
className: ({ isActive:
|
|
2128
|
+
className: ({ isActive: s }) => he({ isActive: s, isTopLevel: t === 0 }),
|
|
2115
2129
|
to: Xe(n == null ? void 0 : n.id, e.id),
|
|
2116
|
-
children: e.badge ? /* @__PURE__ */
|
|
2117
|
-
/* @__PURE__ */
|
|
2118
|
-
/* @__PURE__ */
|
|
2130
|
+
children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2131
|
+
/* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
2132
|
+
/* @__PURE__ */ a.jsx($e, { ...e.badge })
|
|
2119
2133
|
] }) : e.label
|
|
2120
2134
|
}
|
|
2121
2135
|
);
|
|
2122
2136
|
case "link":
|
|
2123
|
-
return e.href.startsWith("#") ? /* @__PURE__ */
|
|
2124
|
-
|
|
2137
|
+
return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
|
|
2138
|
+
dr,
|
|
2125
2139
|
{
|
|
2126
|
-
to: e.href,
|
|
2127
|
-
[
|
|
2128
|
-
className:
|
|
2140
|
+
to: { hash: e.href, search: o.toString() },
|
|
2141
|
+
[er]: e.href.slice(1),
|
|
2142
|
+
className: b(
|
|
2129
2143
|
"flex gap-2.5 justify-between",
|
|
2130
2144
|
t === 0 && "-mx-[--padding-nav-item]",
|
|
2131
|
-
|
|
2145
|
+
he({
|
|
2132
2146
|
isActive: e.href.slice(1) === r
|
|
2133
2147
|
})
|
|
2134
2148
|
),
|
|
2135
|
-
children: e.badge ? /* @__PURE__ */
|
|
2136
|
-
/* @__PURE__ */
|
|
2137
|
-
/* @__PURE__ */
|
|
2138
|
-
] }) : /* @__PURE__ */
|
|
2149
|
+
children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2150
|
+
/* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
2151
|
+
/* @__PURE__ */ a.jsx($e, { ...e.badge })
|
|
2152
|
+
] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
|
|
2139
2153
|
}
|
|
2140
|
-
) : e.href.startsWith("http") ? /* @__PURE__ */
|
|
2154
|
+
) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
|
|
2141
2155
|
"a",
|
|
2142
2156
|
{
|
|
2143
|
-
className:
|
|
2144
|
-
|
|
2157
|
+
className: b(
|
|
2158
|
+
he({ isTopLevel: t === 0 }),
|
|
2145
2159
|
"block"
|
|
2146
2160
|
),
|
|
2147
2161
|
href: e.href,
|
|
2148
2162
|
target: "_blank",
|
|
2149
2163
|
rel: "noopener noreferrer",
|
|
2150
2164
|
children: [
|
|
2151
|
-
/* @__PURE__ */
|
|
2152
|
-
/* @__PURE__ */
|
|
2165
|
+
/* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
2166
|
+
/* @__PURE__ */ a.jsxs("span", { className: "whitespace-nowrap", children: [
|
|
2153
2167
|
" ",
|
|
2154
|
-
/* @__PURE__ */
|
|
2168
|
+
/* @__PURE__ */ a.jsx(ma, { className: "inline ml-1", size: 12 })
|
|
2155
2169
|
] })
|
|
2156
2170
|
]
|
|
2157
2171
|
}
|
|
2158
|
-
) : /* @__PURE__ */
|
|
2159
|
-
|
|
2172
|
+
) : /* @__PURE__ */ a.jsx(
|
|
2173
|
+
je,
|
|
2160
2174
|
{
|
|
2161
|
-
className:
|
|
2175
|
+
className: b("flex gap-2.5 justify-between", he()),
|
|
2162
2176
|
to: e.href,
|
|
2163
|
-
children: e.badge ? /* @__PURE__ */
|
|
2164
|
-
/* @__PURE__ */
|
|
2165
|
-
/* @__PURE__ */
|
|
2166
|
-
] }) : /* @__PURE__ */
|
|
2177
|
+
children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2178
|
+
/* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
2179
|
+
/* @__PURE__ */ a.jsx($e, { ...e.badge })
|
|
2180
|
+
] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
|
|
2167
2181
|
}
|
|
2168
2182
|
);
|
|
2169
2183
|
}
|
|
2170
|
-
},
|
|
2184
|
+
}, js = (e, t = { block: "center" }) => {
|
|
2171
2185
|
if (!e) return;
|
|
2172
2186
|
const n = e.getBoundingClientRect();
|
|
2173
2187
|
n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
2174
|
-
},
|
|
2188
|
+
}, Rs = () => {
|
|
2175
2189
|
const e = De(), { setActiveAnchor: t } = ze();
|
|
2176
2190
|
W(() => {
|
|
2177
2191
|
if (!e.hash) return;
|
|
2178
2192
|
const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
|
|
2179
|
-
const
|
|
2180
|
-
return
|
|
2193
|
+
const o = document.getElementById(n), s = document.querySelector(`[${er}="${n}"]`);
|
|
2194
|
+
return o ? (o.scrollIntoView(), js(s), requestIdleCallback(() => t(n)), !0) : !1;
|
|
2181
2195
|
};
|
|
2182
2196
|
if (!r()) {
|
|
2183
|
-
const
|
|
2197
|
+
const o = new MutationObserver((s, i) => {
|
|
2184
2198
|
r() && i.disconnect();
|
|
2185
2199
|
});
|
|
2186
|
-
return
|
|
2200
|
+
return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
|
|
2187
2201
|
}
|
|
2188
2202
|
}, [e.hash, t]);
|
|
2189
|
-
},
|
|
2203
|
+
}, Es = () => {
|
|
2190
2204
|
const e = De(), t = Ve(e.pathname);
|
|
2191
2205
|
W(() => {
|
|
2192
2206
|
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
2193
2207
|
}, [e.pathname]);
|
|
2194
|
-
},
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2208
|
+
}, nr = Yr(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
|
|
2209
|
+
"nav",
|
|
2210
|
+
{
|
|
2211
|
+
"data-navigation": String(n),
|
|
2212
|
+
className: b(
|
|
2213
|
+
"scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
|
|
2214
|
+
"px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
|
|
2215
|
+
"w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
|
|
2216
|
+
t
|
|
2217
|
+
),
|
|
2218
|
+
ref: r,
|
|
2219
|
+
children: e
|
|
2220
|
+
}
|
|
2221
|
+
));
|
|
2222
|
+
nr.displayName = "SidebarWrapper";
|
|
2223
|
+
const _s = () => {
|
|
2224
|
+
const e = Ve(null), t = la();
|
|
2225
|
+
return /* @__PURE__ */ a.jsxs(
|
|
2226
|
+
nr,
|
|
2211
2227
|
{
|
|
2212
2228
|
ref: e,
|
|
2213
2229
|
pushMainContent: t.data.items.length > 0,
|
|
2214
2230
|
children: [
|
|
2215
|
-
/* @__PURE__ */
|
|
2216
|
-
t.data.items.map((n) => /* @__PURE__ */
|
|
2217
|
-
/* @__PURE__ */
|
|
2231
|
+
/* @__PURE__ */ a.jsx(se, { name: "zudoku-before-navigation" }),
|
|
2232
|
+
t.data.items.map((n) => /* @__PURE__ */ a.jsx(tr, { item: n }, n.label)),
|
|
2233
|
+
/* @__PURE__ */ a.jsx(se, { name: "zudoku-after-navigation" })
|
|
2218
2234
|
]
|
|
2219
2235
|
}
|
|
2220
2236
|
);
|
|
2221
|
-
},
|
|
2237
|
+
}, Ns = ({ children: e }) => {
|
|
2222
2238
|
const t = De(), { setActiveAnchor: n } = ze(), { meta: r } = Ie();
|
|
2223
|
-
|
|
2224
|
-
const
|
|
2239
|
+
Rs(), Es();
|
|
2240
|
+
const o = Ve(t.pathname);
|
|
2225
2241
|
return W(() => {
|
|
2226
|
-
t.pathname !==
|
|
2227
|
-
}, [t.pathname, n]), /* @__PURE__ */
|
|
2242
|
+
t.pathname !== o.current && n(""), o.current = t.pathname;
|
|
2243
|
+
}, [t.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2228
2244
|
!1,
|
|
2229
|
-
/* @__PURE__ */
|
|
2230
|
-
(r == null ? void 0 : r.description) && /* @__PURE__ */
|
|
2231
|
-
(r == null ? void 0 : r.favicon) && /* @__PURE__ */
|
|
2245
|
+
/* @__PURE__ */ a.jsxs(Ge, { titleTemplate: r == null ? void 0 : r.title, children: [
|
|
2246
|
+
(r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
|
|
2247
|
+
(r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
|
|
2232
2248
|
] }),
|
|
2233
|
-
/* @__PURE__ */
|
|
2234
|
-
/* @__PURE__ */
|
|
2235
|
-
|
|
2249
|
+
/* @__PURE__ */ a.jsx(Wn, {}),
|
|
2250
|
+
/* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ a.jsxs(
|
|
2251
|
+
Tt,
|
|
2236
2252
|
{
|
|
2237
|
-
fallback: /* @__PURE__ */
|
|
2253
|
+
fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(fa, {}) }),
|
|
2238
2254
|
children: [
|
|
2239
|
-
/* @__PURE__ */
|
|
2240
|
-
/* @__PURE__ */
|
|
2255
|
+
/* @__PURE__ */ a.jsx(_s, {}),
|
|
2256
|
+
/* @__PURE__ */ a.jsxs(
|
|
2241
2257
|
"main",
|
|
2242
2258
|
{
|
|
2243
|
-
className:
|
|
2259
|
+
className: b(
|
|
2244
2260
|
"dark:border-white/10 translate-x-0 h-full",
|
|
2245
2261
|
"lg:overflow-visible",
|
|
2246
2262
|
"lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
|
|
2247
2263
|
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
|
|
2248
2264
|
),
|
|
2249
2265
|
children: [
|
|
2250
|
-
/* @__PURE__ */
|
|
2251
|
-
e ?? /* @__PURE__ */
|
|
2252
|
-
/* @__PURE__ */
|
|
2266
|
+
/* @__PURE__ */ a.jsx(se, { name: "zudoku-before-content" }),
|
|
2267
|
+
e ?? /* @__PURE__ */ a.jsx(jt, {}),
|
|
2268
|
+
/* @__PURE__ */ a.jsx(se, { name: "zudoku-after-content" })
|
|
2253
2269
|
]
|
|
2254
2270
|
}
|
|
2255
2271
|
)
|
|
@@ -2257,18 +2273,18 @@ const Cs = ({
|
|
|
2257
2273
|
}
|
|
2258
2274
|
) })
|
|
2259
2275
|
] });
|
|
2260
|
-
},
|
|
2276
|
+
}, Hs = hr, zs = qr, Vs = Zn, Ys = Ns, Xs = Re, Ws = wr, Js = ya, Zs = Ta, ei = Fa, ti = Qe, ni = Ge;
|
|
2261
2277
|
export {
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2278
|
+
Zs as Bootstrap,
|
|
2279
|
+
ei as BootstrapStatic,
|
|
2280
|
+
ti as Button,
|
|
2281
|
+
zs as Callout,
|
|
2282
|
+
Vs as DevPortal,
|
|
2283
|
+
ni as Head,
|
|
2284
|
+
Ys as Layout,
|
|
2285
|
+
Xs as Link,
|
|
2286
|
+
Ws as RouterError,
|
|
2287
|
+
Js as ServerError,
|
|
2288
|
+
Hs as useMDXComponents
|
|
2273
2289
|
};
|
|
2274
2290
|
//# sourceMappingURL=zudoku.components.js.map
|