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