zudoku 0.3.0-dev.86 → 0.3.0-dev.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/validators/InputSidebarSchema.d.ts +176 -0
- package/dist/config/validators/InputSidebarSchema.js +71 -0
- package/dist/config/validators/InputSidebarSchema.js.map +1 -0
- package/dist/config/validators/SidebarSchema.d.ts +13 -173
- package/dist/config/validators/SidebarSchema.js +75 -70
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/config/validators/validate.d.ts +5 -5
- package/dist/config/validators/validate.js +4 -3
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/lib/authentication/components/SignIn.js +2 -2
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +2 -2
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/components/SignUp.js +2 -2
- package/dist/lib/authentication/components/SignUp.js.map +1 -1
- package/dist/lib/authentication/hook.js +2 -2
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/components/DevPortal.d.ts +0 -4
- package/dist/lib/components/DevPortal.js +4 -23
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/Header.js +2 -2
- package/dist/lib/components/Header.js.map +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 +2 -2
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/context/{DevPortalProvider.d.ts → ZudokuContext.d.ts} +3 -3
- package/dist/lib/components/context/{DevPortalProvider.js → ZudokuContext.js} +8 -9
- package/dist/lib/components/context/ZudokuContext.js.map +1 -0
- package/dist/lib/components/context/ZudokuProvider.d.ts +5 -0
- package/dist/lib/components/context/ZudokuProvider.js +16 -0
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -0
- package/dist/lib/components/navigation/Sidebar.js +1 -1
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
- package/dist/lib/components/navigation/SidebarCategory.js +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +2 -2
- package/dist/lib/components/navigation/SidebarItem.js +2 -2
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/utils.d.ts +6 -6
- package/dist/lib/components/navigation/utils.js +3 -3
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +3 -3
- package/dist/lib/core/DevPortalContext.js +2 -2
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +2 -2
- package/dist/lib/plugins/api-keys/CreateApiKey.js +2 -2
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +2 -2
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/vite/plugin-sidebar.js +1 -1
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/lib/{AuthenticationPlugin-DgwV0hVu.js → AuthenticationPlugin-C3dzfGaA.js} +2 -2
- package/lib/AuthenticationPlugin-C3dzfGaA.js.map +1 -0
- package/lib/{Combination-DkycFHkm.js → Combination-Djh-LWhb.js} +93 -93
- package/lib/Combination-Djh-LWhb.js.map +1 -0
- package/lib/{Input-BclXSY0g.js → Input-SCGD-EvD.js} +3 -3
- package/lib/{Input-BclXSY0g.js.map → Input-SCGD-EvD.js.map} +1 -1
- package/lib/{MdxPage-Crlr0GmN.js → MdxPage-d02krMBw.js} +2 -2
- package/lib/{MdxPage-Crlr0GmN.js.map → MdxPage-d02krMBw.js.map} +1 -1
- package/lib/{OperationList-CMH3DPpj.js → OperationList-BQweX28o.js} +4 -4
- package/lib/{OperationList-CMH3DPpj.js.map → OperationList-BQweX28o.js.map} +1 -1
- package/lib/{Route-CwXfyIUw.js → Route-BPGW1TS_.js} +2 -2
- package/lib/{Route-CwXfyIUw.js.map → Route-BPGW1TS_.js.map} +1 -1
- package/lib/{Spinner-fF-Xv-gw.js → Spinner-DEgs-1Gu.js} +2 -2
- package/lib/{Spinner-fF-Xv-gw.js.map → Spinner-DEgs-1Gu.js.map} +1 -1
- package/lib/{DevPortalProvider-CTxoCHIT.js → ZudokuContext-C3JtXViU.js} +99 -99
- package/lib/ZudokuContext-C3JtXViU.js.map +1 -0
- package/lib/{index-DkuZvRNP.js → index-B8BCBPkc.js} +3 -3
- package/lib/{index-DkuZvRNP.js.map → index-B8BCBPkc.js.map} +1 -1
- package/lib/{index-DUrF63A6.js → index-DoIWqOG1.js} +8 -8
- package/lib/index-DoIWqOG1.js.map +1 -0
- package/lib/{utils-CzT_9Tsn.js → utils-D3fcGEot.js} +9 -9
- package/lib/{utils-CzT_9Tsn.js.map → utils-D3fcGEot.js.map} +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +1 -1
- package/lib/zudoku.components.js +569 -566
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +16 -16
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/package.json +1 -1
- package/src/lib/authentication/components/SignIn.tsx +2 -2
- package/src/lib/authentication/components/SignOut.tsx +2 -2
- package/src/lib/authentication/components/SignUp.tsx +2 -2
- package/src/lib/authentication/hook.ts +2 -2
- package/src/lib/components/DevPortal.tsx +4 -30
- package/src/lib/components/Header.tsx +2 -2
- package/src/lib/components/Layout.tsx +2 -2
- package/src/lib/components/TopNavigation.tsx +2 -2
- package/src/lib/components/context/{DevPortalProvider.ts → ZudokuContext.ts} +7 -9
- package/src/lib/components/context/ZudokuProvider.tsx +26 -0
- package/src/lib/components/navigation/Sidebar.tsx +1 -1
- package/src/lib/components/navigation/SidebarCategory.tsx +3 -3
- package/src/lib/components/navigation/SidebarItem.tsx +8 -4
- package/src/lib/components/navigation/utils.ts +12 -15
- package/src/lib/core/DevPortalContext.ts +4 -4
- package/src/lib/core/plugins.ts +2 -2
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +2 -2
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +2 -2
- package/src/lib/plugins/openapi/index.tsx +3 -3
- package/src/lib/plugins/openapi/playground/Playground.tsx +1 -1
- package/dist/config/validators/ResolvedSidebarSchema.d.ts +0 -18
- package/dist/config/validators/ResolvedSidebarSchema.js +0 -76
- package/dist/config/validators/ResolvedSidebarSchema.js.map +0 -1
- package/dist/lib/components/context/DevPortalProvider.js.map +0 -1
- package/lib/AuthenticationPlugin-DgwV0hVu.js.map +0 -1
- package/lib/Combination-DkycFHkm.js.map +0 -1
- package/lib/DevPortalProvider-CTxoCHIT.js.map +0 -1
- package/lib/index-DUrF63A6.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -3,30 +3,30 @@ var lt = (e) => {
|
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
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
|
|
7
|
-
var h = (e, t, n) => (dt(e, t, "read from private field"), n ? n.call(e) : t.get(e)),
|
|
6
|
+
var S = (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)), N = (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), P = (e, t, n, r) => (dt(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
8
8
|
var be = (e, t, n, r) => ({
|
|
9
9
|
set _(o) {
|
|
10
|
-
|
|
10
|
+
P(e, t, o, n);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
13
|
return h(e, t, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { H as Rt, a as Ue, M as sr, u as ir, A as cr, b as ur } from "./utils-
|
|
17
|
-
import { d as lr, a as dr, R as hr, N as
|
|
18
|
-
import { E as
|
|
16
|
+
import { H as Rt, a as Ue, M as sr, u as ir, A as cr, b as ur } from "./utils-D3fcGEot.js";
|
|
17
|
+
import { d as lr, a as dr, R as hr, N as Pe, u as De, L as Re, b as fr, c as pr, O as St } from "./index-7kcHaXD6.js";
|
|
18
|
+
import { E as Et, S as mr, a as Se, R as gr } from "./SlotletProvider-CzMAO73_.js";
|
|
19
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
|
|
21
|
-
import { c as pe, a as M, C as Ir, b as Ar, u as Or, T as
|
|
20
|
+
import { M as vr, c as xr, a as _t, b as jt, A as yr, u as fe, h as wr, d as y, e as br, F as Mr, D as Cr, C as Pr, P as ae, f as Ge, g as Rr, i as Nt, R as Sr, S as Er, j as _r, k as jr, l as Dt, m as Nr, n as Ee, o as It, p as Dr, B as $e } from "./Combination-Djh-LWhb.js";
|
|
21
|
+
import { c as pe, a as M, C as Ir, b as Ar, u as Or, T as kr, M as Tr, V as Fr, d as qe, e as Lr, f as Kr } from "./Markdown-B_Gax7at.js";
|
|
22
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
|
|
23
|
+
import $r, { StrictMode as At, createContext as Ot, Component as Br, createElement as ht, isValidElement as Qr, memo as kt, useState as _e, useEffect as se, useCallback as Ur, useMemo as Le, useContext as Gr, Fragment as qr, useRef as He, forwardRef as Hr, Suspense as zr } from "react";
|
|
24
24
|
import { g as ze } from "./_commonjsHelpers-BVfed4GL.js";
|
|
25
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-
|
|
27
|
-
import { S as
|
|
26
|
+
import { S as Be, R as Yr, T as Xr, C as Wr } from "./index-B8BCBPkc.js";
|
|
27
|
+
import { S as Tt, h as Ft, Q as Jr, n as _, m as ft, a as pt, b as $, 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, Z as so, k as io, l as Lt, q as co } from "./ZudokuContext-C3JtXViU.js";
|
|
28
28
|
import { j as Ye } from "./joinPath-VeNuJa7y.js";
|
|
29
|
-
import { c as Kt, P as Ie, R as
|
|
29
|
+
import { c as Kt, P as Ie, R as uo, I as lo, S as yt, a as ho } from "./Spinner-DEgs-1Gu.js";
|
|
30
30
|
/**
|
|
31
31
|
* @license lucide-react v0.378.0 - ISC
|
|
32
32
|
*
|
|
@@ -42,7 +42,7 @@ const $t = pe("ChevronRight", [
|
|
|
42
42
|
* This source code is licensed under the ISC license.
|
|
43
43
|
* See the LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
const
|
|
45
|
+
const fo = pe("Dot", [
|
|
46
46
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
|
47
47
|
]);
|
|
48
48
|
/**
|
|
@@ -51,7 +51,7 @@ const ho = pe("Dot", [
|
|
|
51
51
|
* This source code is licensed under the ISC license.
|
|
52
52
|
* See the LICENSE file in the root directory of this source tree.
|
|
53
53
|
*/
|
|
54
|
-
const
|
|
54
|
+
const po = pe("ExternalLink", [
|
|
55
55
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
56
56
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
57
57
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
@@ -62,7 +62,7 @@ const fo = pe("ExternalLink", [
|
|
|
62
62
|
* This source code is licensed under the ISC license.
|
|
63
63
|
* See the LICENSE file in the root directory of this source tree.
|
|
64
64
|
*/
|
|
65
|
-
const
|
|
65
|
+
const mo = pe("MoonStar", [
|
|
66
66
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
67
67
|
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
68
68
|
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
@@ -73,7 +73,7 @@ const po = pe("MoonStar", [
|
|
|
73
73
|
* This source code is licensed under the ISC license.
|
|
74
74
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
75
|
*/
|
|
76
|
-
const
|
|
76
|
+
const go = pe("Sun", [
|
|
77
77
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
78
78
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
79
79
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -84,14 +84,14 @@ const mo = pe("Sun", [
|
|
|
84
84
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
85
85
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
86
86
|
]);
|
|
87
|
-
function
|
|
88
|
-
return /* @__PURE__ */ a.jsx(
|
|
87
|
+
function vo({ error: e }) {
|
|
88
|
+
return /* @__PURE__ */ a.jsx(Et, { error: e });
|
|
89
89
|
}
|
|
90
90
|
var me = {};
|
|
91
|
-
const
|
|
91
|
+
const xo = /* @__PURE__ */ ze(Vr), yo = /* @__PURE__ */ ze(lr), wo = /* @__PURE__ */ ze(dr);
|
|
92
92
|
Object.defineProperty(me, "__esModule", { value: !0 });
|
|
93
|
-
var
|
|
94
|
-
function
|
|
93
|
+
var bo = $r, F = xo, Xe = yo, B = wo;
|
|
94
|
+
function Mo(e) {
|
|
95
95
|
if (e && e.__esModule) return e;
|
|
96
96
|
var t = /* @__PURE__ */ Object.create(null);
|
|
97
97
|
return e && Object.keys(e).forEach(function(n) {
|
|
@@ -106,22 +106,22 @@ function bo(e) {
|
|
|
106
106
|
}
|
|
107
107
|
}), t.default = e, Object.freeze(t);
|
|
108
108
|
}
|
|
109
|
-
var
|
|
110
|
-
function
|
|
109
|
+
var k = /* @__PURE__ */ Mo(bo);
|
|
110
|
+
function Co({
|
|
111
111
|
basename: e,
|
|
112
112
|
children: t,
|
|
113
113
|
location: n = "/",
|
|
114
114
|
future: r
|
|
115
115
|
}) {
|
|
116
|
-
typeof n == "string" && (n =
|
|
117
|
-
let o =
|
|
116
|
+
typeof n == "string" && (n = B.parsePath(n));
|
|
117
|
+
let o = F.Action.Pop, s = {
|
|
118
118
|
pathname: n.pathname || "/",
|
|
119
119
|
search: n.search || "",
|
|
120
120
|
hash: n.hash || "",
|
|
121
121
|
state: n.state != null ? n.state : null,
|
|
122
122
|
key: n.key || "default"
|
|
123
123
|
}, i = Bt();
|
|
124
|
-
return /* @__PURE__ */
|
|
124
|
+
return /* @__PURE__ */ k.createElement(B.Router, {
|
|
125
125
|
basename: e,
|
|
126
126
|
children: t,
|
|
127
127
|
location: s,
|
|
@@ -131,13 +131,13 @@ function Mo({
|
|
|
131
131
|
static: !0
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Po({
|
|
135
135
|
context: e,
|
|
136
136
|
router: t,
|
|
137
137
|
hydrate: n = !0,
|
|
138
138
|
nonce: r
|
|
139
139
|
}) {
|
|
140
|
-
t && e || (process.env.NODE_ENV !== "production" ?
|
|
140
|
+
t && e || (process.env.NODE_ENV !== "production" ? F.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : F.UNSAFE_invariant(!1));
|
|
141
141
|
let o = {
|
|
142
142
|
router: t,
|
|
143
143
|
navigator: Bt(),
|
|
@@ -149,24 +149,24 @@ function Co({
|
|
|
149
149
|
let d = {
|
|
150
150
|
loaderData: e.loaderData,
|
|
151
151
|
actionData: e.actionData,
|
|
152
|
-
errors:
|
|
152
|
+
errors: So(e.errors)
|
|
153
153
|
};
|
|
154
|
-
i = `window.__staticRouterHydrationData = JSON.parse(${
|
|
154
|
+
i = `window.__staticRouterHydrationData = JSON.parse(${Io(JSON.stringify(JSON.stringify(d)))});`;
|
|
155
155
|
}
|
|
156
156
|
let {
|
|
157
157
|
state: u
|
|
158
158
|
} = o.router;
|
|
159
|
-
return /* @__PURE__ */
|
|
159
|
+
return /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(B.UNSAFE_DataRouterContext.Provider, {
|
|
160
160
|
value: o
|
|
161
|
-
}, /* @__PURE__ */
|
|
161
|
+
}, /* @__PURE__ */ k.createElement(B.UNSAFE_DataRouterStateContext.Provider, {
|
|
162
162
|
value: u
|
|
163
|
-
}, /* @__PURE__ */
|
|
163
|
+
}, /* @__PURE__ */ k.createElement(B.UNSAFE_FetchersContext.Provider, {
|
|
164
164
|
value: s
|
|
165
|
-
}, /* @__PURE__ */
|
|
165
|
+
}, /* @__PURE__ */ k.createElement(B.UNSAFE_ViewTransitionContext.Provider, {
|
|
166
166
|
value: {
|
|
167
167
|
isTransitioning: !1
|
|
168
168
|
}
|
|
169
|
-
}, /* @__PURE__ */
|
|
169
|
+
}, /* @__PURE__ */ k.createElement(B.Router, {
|
|
170
170
|
basename: o.basename,
|
|
171
171
|
location: u.location,
|
|
172
172
|
navigationType: u.historyAction,
|
|
@@ -175,11 +175,11 @@ function Co({
|
|
|
175
175
|
future: {
|
|
176
176
|
v7_relativeSplatPath: t.future.v7_relativeSplatPath
|
|
177
177
|
}
|
|
178
|
-
}, /* @__PURE__ */
|
|
178
|
+
}, /* @__PURE__ */ k.createElement(Ro, {
|
|
179
179
|
routes: t.routes,
|
|
180
180
|
future: t.future,
|
|
181
181
|
state: u
|
|
182
|
-
})))))), i ? /* @__PURE__ */
|
|
182
|
+
})))))), i ? /* @__PURE__ */ k.createElement("script", {
|
|
183
183
|
suppressHydrationWarning: !0,
|
|
184
184
|
nonce: r,
|
|
185
185
|
dangerouslySetInnerHTML: {
|
|
@@ -187,18 +187,18 @@ function Co({
|
|
|
187
187
|
}
|
|
188
188
|
}) : null);
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function Ro({
|
|
191
191
|
routes: e,
|
|
192
192
|
future: t,
|
|
193
193
|
state: n
|
|
194
194
|
}) {
|
|
195
195
|
return Xe.UNSAFE_useRoutesImpl(e, void 0, n, t);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function So(e) {
|
|
198
198
|
if (!e) return null;
|
|
199
199
|
let t = Object.entries(e), n = {};
|
|
200
200
|
for (let [r, o] of t)
|
|
201
|
-
|
|
201
|
+
F.isRouteErrorResponse(o) ? n[r] = {
|
|
202
202
|
...o,
|
|
203
203
|
__type: "RouteErrorResponse"
|
|
204
204
|
} : o instanceof Error ? n[r] = {
|
|
@@ -234,13 +234,13 @@ function Bt() {
|
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
function Eo(e, t) {
|
|
237
|
-
return
|
|
237
|
+
return F.createStaticHandler(e, {
|
|
238
238
|
...t,
|
|
239
239
|
mapRouteProperties: Xe.UNSAFE_mapRouteProperties
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
|
-
function
|
|
243
|
-
let r = {}, o =
|
|
242
|
+
function _o(e, t, n = {}) {
|
|
243
|
+
let r = {}, o = F.UNSAFE_convertRoutesToDataRoutes(e, Xe.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((u) => {
|
|
244
244
|
let d = r[u.route.id] || u.route;
|
|
245
245
|
return {
|
|
246
246
|
...u,
|
|
@@ -264,14 +264,14 @@ function So(e, t, n = {}) {
|
|
|
264
264
|
},
|
|
265
265
|
get state() {
|
|
266
266
|
return {
|
|
267
|
-
historyAction:
|
|
267
|
+
historyAction: F.Action.Pop,
|
|
268
268
|
location: t.location,
|
|
269
269
|
matches: s,
|
|
270
270
|
loaderData: t.loaderData,
|
|
271
271
|
actionData: t.actionData,
|
|
272
272
|
errors: t.errors,
|
|
273
273
|
initialized: !0,
|
|
274
|
-
navigation:
|
|
274
|
+
navigation: F.IDLE_NAVIGATION,
|
|
275
275
|
restoreScrollPosition: null,
|
|
276
276
|
preventScrollReset: !1,
|
|
277
277
|
revalidation: "idle",
|
|
@@ -305,7 +305,7 @@ function So(e, t, n = {}) {
|
|
|
305
305
|
createHref: Qt,
|
|
306
306
|
encodeLocation: Ut,
|
|
307
307
|
getFetcher() {
|
|
308
|
-
return
|
|
308
|
+
return F.IDLE_FETCHER;
|
|
309
309
|
},
|
|
310
310
|
deleteFetcher() {
|
|
311
311
|
throw i("deleteFetcher");
|
|
@@ -314,7 +314,7 @@ function So(e, t, n = {}) {
|
|
|
314
314
|
throw i("dispose");
|
|
315
315
|
},
|
|
316
316
|
getBlocker() {
|
|
317
|
-
return
|
|
317
|
+
return F.IDLE_BLOCKER;
|
|
318
318
|
},
|
|
319
319
|
deleteBlocker() {
|
|
320
320
|
throw i("deleteBlocker");
|
|
@@ -330,45 +330,45 @@ function So(e, t, n = {}) {
|
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
332
|
function Qt(e) {
|
|
333
|
-
return typeof e == "string" ? e :
|
|
333
|
+
return typeof e == "string" ? e : B.createPath(e);
|
|
334
334
|
}
|
|
335
335
|
function Ut(e) {
|
|
336
|
-
let t = typeof e == "string" ? e :
|
|
336
|
+
let t = typeof e == "string" ? e : B.createPath(e);
|
|
337
337
|
t = t.replace(/ $/, "%20");
|
|
338
|
-
let n =
|
|
338
|
+
let n = jo.test(t) ? new URL(t) : new URL(t, "http://localhost");
|
|
339
339
|
return {
|
|
340
340
|
pathname: n.pathname,
|
|
341
341
|
search: n.search,
|
|
342
342
|
hash: n.hash
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
|
-
const
|
|
345
|
+
const jo = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, No = {
|
|
346
346
|
"&": "\\u0026",
|
|
347
347
|
">": "\\u003e",
|
|
348
348
|
"<": "\\u003c",
|
|
349
349
|
"\u2028": "\\u2028",
|
|
350
350
|
"\u2029": "\\u2029"
|
|
351
|
-
},
|
|
352
|
-
function
|
|
353
|
-
return e.replace(
|
|
351
|
+
}, Do = /[&><\u2028\u2029]/g;
|
|
352
|
+
function Io(e) {
|
|
353
|
+
return e.replace(Do, (t) => No[t]);
|
|
354
354
|
}
|
|
355
|
-
me.StaticRouter =
|
|
356
|
-
var
|
|
355
|
+
me.StaticRouter = Co;
|
|
356
|
+
var Ao = me.StaticRouterProvider = Po;
|
|
357
357
|
me.createStaticHandler = Eo;
|
|
358
|
-
me.createStaticRouter =
|
|
359
|
-
const
|
|
358
|
+
me.createStaticRouter = _o;
|
|
359
|
+
const Oo = ({
|
|
360
360
|
router: e,
|
|
361
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 }) }) }) }),
|
|
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 }) }) }) }), ko = ({
|
|
363
363
|
router: e,
|
|
364
364
|
context: t,
|
|
365
365
|
helmetContext: n
|
|
366
|
-
}) => /* @__PURE__ */ a.jsx(At, { children: /* @__PURE__ */ a.jsx(Rt, { context: n, children: /* @__PURE__ */ a.jsx(
|
|
367
|
-
var
|
|
366
|
+
}) => /* @__PURE__ */ a.jsx(At, { children: /* @__PURE__ */ a.jsx(Rt, { context: n, children: /* @__PURE__ */ a.jsx(Ao, { router: e, context: t }) }) });
|
|
367
|
+
var T, Mt, To = (Mt = class extends Tt {
|
|
368
368
|
constructor(t = {}) {
|
|
369
369
|
super();
|
|
370
|
-
|
|
371
|
-
this.config = t,
|
|
370
|
+
N(this, T);
|
|
371
|
+
this.config = t, P(this, T, /* @__PURE__ */ new Map());
|
|
372
372
|
}
|
|
373
373
|
build(t, n, r) {
|
|
374
374
|
const o = n.queryKey, s = n.queryHash ?? Ft(o, n);
|
|
@@ -383,27 +383,27 @@ var L, Mt, To = (Mt = class extends kt {
|
|
|
383
383
|
}), this.add(i)), i;
|
|
384
384
|
}
|
|
385
385
|
add(t) {
|
|
386
|
-
h(this,
|
|
386
|
+
h(this, T).has(t.queryHash) || (h(this, T).set(t.queryHash, t), this.notify({
|
|
387
387
|
type: "added",
|
|
388
388
|
query: t
|
|
389
389
|
}));
|
|
390
390
|
}
|
|
391
391
|
remove(t) {
|
|
392
|
-
const n = h(this,
|
|
393
|
-
n && (t.destroy(), n === t && h(this,
|
|
392
|
+
const n = h(this, T).get(t.queryHash);
|
|
393
|
+
n && (t.destroy(), n === t && h(this, T).delete(t.queryHash), this.notify({ type: "removed", query: t }));
|
|
394
394
|
}
|
|
395
395
|
clear() {
|
|
396
|
-
|
|
396
|
+
_.batch(() => {
|
|
397
397
|
this.getAll().forEach((t) => {
|
|
398
398
|
this.remove(t);
|
|
399
399
|
});
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
get(t) {
|
|
403
|
-
return h(this,
|
|
403
|
+
return h(this, T).get(t);
|
|
404
404
|
}
|
|
405
405
|
getAll() {
|
|
406
|
-
return [...h(this,
|
|
406
|
+
return [...h(this, T).values()];
|
|
407
407
|
}
|
|
408
408
|
find(t) {
|
|
409
409
|
const n = { exact: !0, ...t };
|
|
@@ -416,32 +416,32 @@ var L, Mt, To = (Mt = class extends kt {
|
|
|
416
416
|
return Object.keys(t).length > 0 ? n.filter((r) => ft(t, r)) : n;
|
|
417
417
|
}
|
|
418
418
|
notify(t) {
|
|
419
|
-
|
|
419
|
+
_.batch(() => {
|
|
420
420
|
this.listeners.forEach((n) => {
|
|
421
421
|
n(t);
|
|
422
422
|
});
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
onFocus() {
|
|
426
|
-
|
|
426
|
+
_.batch(() => {
|
|
427
427
|
this.getAll().forEach((t) => {
|
|
428
428
|
t.onFocus();
|
|
429
429
|
});
|
|
430
430
|
});
|
|
431
431
|
}
|
|
432
432
|
onOnline() {
|
|
433
|
-
|
|
433
|
+
_.batch(() => {
|
|
434
434
|
this.getAll().forEach((t) => {
|
|
435
435
|
t.onOnline();
|
|
436
436
|
});
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
|
-
},
|
|
439
|
+
}, T = new WeakMap(), Mt), E, he, Ct, Fo = (Ct = class extends Tt {
|
|
440
440
|
constructor(t = {}) {
|
|
441
441
|
super();
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
this.config = t,
|
|
442
|
+
N(this, E);
|
|
443
|
+
N(this, he);
|
|
444
|
+
this.config = t, P(this, E, /* @__PURE__ */ new Map()), P(this, he, Date.now());
|
|
445
445
|
}
|
|
446
446
|
build(t, n, r) {
|
|
447
447
|
const o = new vr({
|
|
@@ -453,37 +453,37 @@ var L, Mt, To = (Mt = class extends kt {
|
|
|
453
453
|
return this.add(o), o;
|
|
454
454
|
}
|
|
455
455
|
add(t) {
|
|
456
|
-
const n = Me(t), r = h(this,
|
|
457
|
-
r.push(t), h(this,
|
|
456
|
+
const n = Me(t), r = h(this, E).get(n) ?? [];
|
|
457
|
+
r.push(t), h(this, E).set(n, r), this.notify({ type: "added", mutation: t });
|
|
458
458
|
}
|
|
459
459
|
remove(t) {
|
|
460
460
|
var r;
|
|
461
461
|
const n = Me(t);
|
|
462
|
-
if (h(this,
|
|
463
|
-
const o = (r = h(this,
|
|
464
|
-
o && (o.length === 0 ? h(this,
|
|
462
|
+
if (h(this, E).has(n)) {
|
|
463
|
+
const o = (r = h(this, E).get(n)) == null ? void 0 : r.filter((s) => s !== t);
|
|
464
|
+
o && (o.length === 0 ? h(this, E).delete(n) : h(this, E).set(n, o));
|
|
465
465
|
}
|
|
466
466
|
this.notify({ type: "removed", mutation: t });
|
|
467
467
|
}
|
|
468
468
|
canRun(t) {
|
|
469
469
|
var r;
|
|
470
|
-
const n = (r = h(this,
|
|
470
|
+
const n = (r = h(this, E).get(Me(t))) == null ? void 0 : r.find((o) => o.state.status === "pending");
|
|
471
471
|
return !n || n === t;
|
|
472
472
|
}
|
|
473
473
|
runNext(t) {
|
|
474
474
|
var r;
|
|
475
|
-
const n = (r = h(this,
|
|
475
|
+
const n = (r = h(this, E).get(Me(t))) == null ? void 0 : r.find((o) => o !== t && o.state.isPaused);
|
|
476
476
|
return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
|
|
477
477
|
}
|
|
478
478
|
clear() {
|
|
479
|
-
|
|
479
|
+
_.batch(() => {
|
|
480
480
|
this.getAll().forEach((t) => {
|
|
481
481
|
this.remove(t);
|
|
482
482
|
});
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
485
|
getAll() {
|
|
486
|
-
return [...h(this,
|
|
486
|
+
return [...h(this, E).values()].flat();
|
|
487
487
|
}
|
|
488
488
|
find(t) {
|
|
489
489
|
const n = { exact: !0, ...t };
|
|
@@ -495,7 +495,7 @@ var L, Mt, To = (Mt = class extends kt {
|
|
|
495
495
|
return this.getAll().filter((n) => pt(t, n));
|
|
496
496
|
}
|
|
497
497
|
notify(t) {
|
|
498
|
-
|
|
498
|
+
_.batch(() => {
|
|
499
499
|
this.listeners.forEach((n) => {
|
|
500
500
|
n(t);
|
|
501
501
|
});
|
|
@@ -503,67 +503,67 @@ var L, Mt, To = (Mt = class extends kt {
|
|
|
503
503
|
}
|
|
504
504
|
resumePausedMutations() {
|
|
505
505
|
const t = this.getAll().filter((n) => n.state.isPaused);
|
|
506
|
-
return
|
|
506
|
+
return _.batch(
|
|
507
507
|
() => Promise.all(
|
|
508
|
-
t.map((n) => n.continue().catch(
|
|
508
|
+
t.map((n) => n.continue().catch($))
|
|
509
509
|
)
|
|
510
510
|
);
|
|
511
511
|
}
|
|
512
|
-
},
|
|
512
|
+
}, E = new WeakMap(), he = new WeakMap(), Ct);
|
|
513
513
|
function Me(e) {
|
|
514
514
|
var t;
|
|
515
515
|
return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function Lo(e) {
|
|
518
518
|
return {
|
|
519
519
|
onFetch: (t, n) => {
|
|
520
520
|
const r = async () => {
|
|
521
|
-
var x,
|
|
522
|
-
const o = t.options, s = (
|
|
523
|
-
let
|
|
524
|
-
const
|
|
525
|
-
Object.defineProperty(
|
|
521
|
+
var x, b, I, Q, V;
|
|
522
|
+
const o = t.options, s = (I = (b = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : b.fetchMore) == null ? void 0 : I.direction, i = ((Q = t.state.data) == null ? void 0 : Q.pages) || [], u = ((V = t.state.data) == null ? void 0 : V.pageParams) || [], d = { pages: [], pageParams: [] };
|
|
523
|
+
let g = !1;
|
|
524
|
+
const p = (C) => {
|
|
525
|
+
Object.defineProperty(C, "signal", {
|
|
526
526
|
enumerable: !0,
|
|
527
|
-
get: () => (t.signal.aborted ?
|
|
528
|
-
|
|
527
|
+
get: () => (t.signal.aborted ? g = !0 : t.signal.addEventListener("abort", () => {
|
|
528
|
+
g = !0;
|
|
529
529
|
}), t.signal)
|
|
530
530
|
});
|
|
531
|
-
}, l = Zr(t.options, t.fetchOptions),
|
|
532
|
-
if (
|
|
531
|
+
}, l = Zr(t.options, t.fetchOptions), f = async (C, A, L) => {
|
|
532
|
+
if (g)
|
|
533
533
|
return Promise.reject();
|
|
534
|
-
if (
|
|
535
|
-
return Promise.resolve(
|
|
534
|
+
if (A == null && C.pages.length)
|
|
535
|
+
return Promise.resolve(C);
|
|
536
536
|
const Y = {
|
|
537
537
|
queryKey: t.queryKey,
|
|
538
|
-
pageParam:
|
|
539
|
-
direction:
|
|
538
|
+
pageParam: A,
|
|
539
|
+
direction: L ? "backward" : "forward",
|
|
540
540
|
meta: t.options.meta
|
|
541
541
|
};
|
|
542
|
-
|
|
543
|
-
const
|
|
542
|
+
p(Y);
|
|
543
|
+
const J = await l(
|
|
544
544
|
Y
|
|
545
|
-
), { maxPages:
|
|
545
|
+
), { maxPages: ye } = t.options, X = L ? eo : to;
|
|
546
546
|
return {
|
|
547
|
-
pages: X(
|
|
548
|
-
pageParams: X(
|
|
547
|
+
pages: X(C.pages, J, ye),
|
|
548
|
+
pageParams: X(C.pageParams, A, ye)
|
|
549
549
|
};
|
|
550
550
|
};
|
|
551
551
|
let v;
|
|
552
552
|
if (s && i.length) {
|
|
553
|
-
const
|
|
553
|
+
const C = s === "backward", A = C ? Ko : wt, L = {
|
|
554
554
|
pages: i,
|
|
555
555
|
pageParams: u
|
|
556
|
-
}, Y =
|
|
557
|
-
v = await
|
|
556
|
+
}, Y = A(o, L);
|
|
557
|
+
v = await f(L, Y, C);
|
|
558
558
|
} else {
|
|
559
|
-
v = await
|
|
559
|
+
v = await f(
|
|
560
560
|
d,
|
|
561
561
|
u[0] ?? o.initialPageParam
|
|
562
562
|
);
|
|
563
|
-
const
|
|
564
|
-
for (let
|
|
565
|
-
const
|
|
566
|
-
v = await
|
|
563
|
+
const C = e ?? i.length;
|
|
564
|
+
for (let A = 1; A < C; A++) {
|
|
565
|
+
const L = wt(o, v);
|
|
566
|
+
v = await f(v, L);
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
return v;
|
|
@@ -584,7 +584,7 @@ function Fo(e) {
|
|
|
584
584
|
}
|
|
585
585
|
};
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function wt(e, { pages: t, pageParams: n }) {
|
|
588
588
|
const r = t.length - 1;
|
|
589
589
|
return e.getNextPageParam(
|
|
590
590
|
t[r],
|
|
@@ -593,7 +593,7 @@ function yt(e, { pages: t, pageParams: n }) {
|
|
|
593
593
|
n
|
|
594
594
|
);
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function Ko(e, { pages: t, pageParams: n }) {
|
|
597
597
|
var r;
|
|
598
598
|
return (r = e.getPreviousPageParam) == null ? void 0 : r.call(
|
|
599
599
|
e,
|
|
@@ -603,65 +603,65 @@ function Lo(e, { pages: t, pageParams: n }) {
|
|
|
603
603
|
n
|
|
604
604
|
);
|
|
605
605
|
}
|
|
606
|
-
var
|
|
606
|
+
var w, G, q, te, ne, H, re, oe, Pt, $o = (Pt = class {
|
|
607
607
|
constructor(e = {}) {
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
608
|
+
N(this, w);
|
|
609
|
+
N(this, G);
|
|
610
|
+
N(this, q);
|
|
611
|
+
N(this, te);
|
|
612
|
+
N(this, ne);
|
|
613
|
+
N(this, H);
|
|
614
|
+
N(this, re);
|
|
615
|
+
N(this, oe);
|
|
616
|
+
P(this, w, e.queryCache || new To()), P(this, G, e.mutationCache || new Fo()), P(this, q, e.defaultOptions || {}), P(this, te, /* @__PURE__ */ new Map()), P(this, ne, /* @__PURE__ */ new Map()), P(this, H, 0);
|
|
617
617
|
}
|
|
618
618
|
mount() {
|
|
619
|
-
be(this,
|
|
620
|
-
e && (await this.resumePausedMutations(), h(this,
|
|
621
|
-
})),
|
|
622
|
-
e && (await this.resumePausedMutations(), h(this,
|
|
619
|
+
be(this, H)._++, h(this, H) === 1 && (P(this, re, no.subscribe(async (e) => {
|
|
620
|
+
e && (await this.resumePausedMutations(), h(this, w).onFocus());
|
|
621
|
+
})), P(this, oe, mt.subscribe(async (e) => {
|
|
622
|
+
e && (await this.resumePausedMutations(), h(this, w).onOnline());
|
|
623
623
|
})));
|
|
624
624
|
}
|
|
625
625
|
unmount() {
|
|
626
626
|
var e, t;
|
|
627
|
-
be(this,
|
|
627
|
+
be(this, H)._--, h(this, H) === 0 && ((e = h(this, re)) == null || e.call(this), P(this, re, void 0), (t = h(this, oe)) == null || t.call(this), P(this, oe, void 0));
|
|
628
628
|
}
|
|
629
629
|
isFetching(e) {
|
|
630
|
-
return h(this,
|
|
630
|
+
return h(this, w).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
631
631
|
}
|
|
632
632
|
isMutating(e) {
|
|
633
|
-
return h(this,
|
|
633
|
+
return h(this, G).findAll({ ...e, status: "pending" }).length;
|
|
634
634
|
}
|
|
635
635
|
getQueryData(e) {
|
|
636
636
|
var n;
|
|
637
637
|
const t = this.defaultQueryOptions({ queryKey: e });
|
|
638
|
-
return (n = h(this,
|
|
638
|
+
return (n = h(this, w).get(t.queryHash)) == null ? void 0 : n.state.data;
|
|
639
639
|
}
|
|
640
640
|
ensureQueryData(e) {
|
|
641
641
|
const t = this.getQueryData(e.queryKey);
|
|
642
642
|
if (t === void 0)
|
|
643
643
|
return this.fetchQuery(e);
|
|
644
644
|
{
|
|
645
|
-
const n = this.defaultQueryOptions(e), r = h(this,
|
|
645
|
+
const n = this.defaultQueryOptions(e), r = h(this, w).build(this, n);
|
|
646
646
|
return e.revalidateIfStale && r.isStaleByTime(gt(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
getQueriesData(e) {
|
|
650
|
-
return h(this,
|
|
650
|
+
return h(this, w).findAll(e).map(({ queryKey: t, state: n }) => {
|
|
651
651
|
const r = n.data;
|
|
652
652
|
return [t, r];
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
655
|
setQueryData(e, t, n) {
|
|
656
|
-
const r = this.defaultQueryOptions({ queryKey: e }), o = h(this,
|
|
656
|
+
const r = this.defaultQueryOptions({ queryKey: e }), o = h(this, w).get(
|
|
657
657
|
r.queryHash
|
|
658
658
|
), s = o == null ? void 0 : o.state.data, i = ro(t, s);
|
|
659
659
|
if (i !== void 0)
|
|
660
|
-
return h(this,
|
|
660
|
+
return h(this, w).build(this, r).setData(i, { ...n, manual: !0 });
|
|
661
661
|
}
|
|
662
662
|
setQueriesData(e, t, n) {
|
|
663
|
-
return
|
|
664
|
-
() => h(this,
|
|
663
|
+
return _.batch(
|
|
664
|
+
() => h(this, w).findAll(e).map(({ queryKey: r }) => [
|
|
665
665
|
r,
|
|
666
666
|
this.setQueryData(r, t, n)
|
|
667
667
|
])
|
|
@@ -670,34 +670,34 @@ var b, H, q, ne, re, z, oe, ae, Pt, Ko = (Pt = class {
|
|
|
670
670
|
getQueryState(e) {
|
|
671
671
|
var n;
|
|
672
672
|
const t = this.defaultQueryOptions({ queryKey: e });
|
|
673
|
-
return (n = h(this,
|
|
673
|
+
return (n = h(this, w).get(t.queryHash)) == null ? void 0 : n.state;
|
|
674
674
|
}
|
|
675
675
|
removeQueries(e) {
|
|
676
|
-
const t = h(this,
|
|
677
|
-
|
|
676
|
+
const t = h(this, w);
|
|
677
|
+
_.batch(() => {
|
|
678
678
|
t.findAll(e).forEach((n) => {
|
|
679
679
|
t.remove(n);
|
|
680
680
|
});
|
|
681
681
|
});
|
|
682
682
|
}
|
|
683
683
|
resetQueries(e, t) {
|
|
684
|
-
const n = h(this,
|
|
684
|
+
const n = h(this, w), r = {
|
|
685
685
|
type: "active",
|
|
686
686
|
...e
|
|
687
687
|
};
|
|
688
|
-
return
|
|
688
|
+
return _.batch(() => (n.findAll(e).forEach((o) => {
|
|
689
689
|
o.reset();
|
|
690
690
|
}), this.refetchQueries(r, t)));
|
|
691
691
|
}
|
|
692
692
|
cancelQueries(e = {}, t = {}) {
|
|
693
|
-
const n = { revert: !0, ...t }, r =
|
|
694
|
-
() => h(this,
|
|
693
|
+
const n = { revert: !0, ...t }, r = _.batch(
|
|
694
|
+
() => h(this, w).findAll(e).map((o) => o.cancel(n))
|
|
695
695
|
);
|
|
696
|
-
return Promise.all(r).then(
|
|
696
|
+
return Promise.all(r).then($).catch($);
|
|
697
697
|
}
|
|
698
698
|
invalidateQueries(e = {}, t = {}) {
|
|
699
|
-
return
|
|
700
|
-
if (h(this,
|
|
699
|
+
return _.batch(() => {
|
|
700
|
+
if (h(this, w).findAll(e).forEach((r) => {
|
|
701
701
|
r.invalidate();
|
|
702
702
|
}), e.refetchType === "none")
|
|
703
703
|
return Promise.resolve();
|
|
@@ -712,67 +712,67 @@ var b, H, q, ne, re, z, oe, ae, Pt, Ko = (Pt = class {
|
|
|
712
712
|
const n = {
|
|
713
713
|
...t,
|
|
714
714
|
cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
|
|
715
|
-
}, r =
|
|
716
|
-
() => h(this,
|
|
715
|
+
}, r = _.batch(
|
|
716
|
+
() => h(this, w).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
|
|
717
717
|
let s = o.fetch(void 0, n);
|
|
718
|
-
return n.throwOnError || (s = s.catch(
|
|
718
|
+
return n.throwOnError || (s = s.catch($)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
|
|
719
719
|
})
|
|
720
720
|
);
|
|
721
|
-
return Promise.all(r).then(
|
|
721
|
+
return Promise.all(r).then($);
|
|
722
722
|
}
|
|
723
723
|
fetchQuery(e) {
|
|
724
724
|
const t = this.defaultQueryOptions(e);
|
|
725
725
|
t.retry === void 0 && (t.retry = !1);
|
|
726
|
-
const n = h(this,
|
|
726
|
+
const n = h(this, w).build(this, t);
|
|
727
727
|
return n.isStaleByTime(
|
|
728
728
|
gt(t.staleTime, n)
|
|
729
729
|
) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
730
730
|
}
|
|
731
731
|
prefetchQuery(e) {
|
|
732
|
-
return this.fetchQuery(e).then(
|
|
732
|
+
return this.fetchQuery(e).then($).catch($);
|
|
733
733
|
}
|
|
734
734
|
fetchInfiniteQuery(e) {
|
|
735
|
-
return e.behavior =
|
|
735
|
+
return e.behavior = Lo(e.pages), this.fetchQuery(e);
|
|
736
736
|
}
|
|
737
737
|
prefetchInfiniteQuery(e) {
|
|
738
|
-
return this.fetchInfiniteQuery(e).then(
|
|
738
|
+
return this.fetchInfiniteQuery(e).then($).catch($);
|
|
739
739
|
}
|
|
740
740
|
resumePausedMutations() {
|
|
741
|
-
return mt.isOnline() ? h(this,
|
|
741
|
+
return mt.isOnline() ? h(this, G).resumePausedMutations() : Promise.resolve();
|
|
742
742
|
}
|
|
743
743
|
getQueryCache() {
|
|
744
|
-
return h(this,
|
|
744
|
+
return h(this, w);
|
|
745
745
|
}
|
|
746
746
|
getMutationCache() {
|
|
747
|
-
return h(this,
|
|
747
|
+
return h(this, G);
|
|
748
748
|
}
|
|
749
749
|
getDefaultOptions() {
|
|
750
750
|
return h(this, q);
|
|
751
751
|
}
|
|
752
752
|
setDefaultOptions(e) {
|
|
753
|
-
|
|
753
|
+
P(this, q, e);
|
|
754
754
|
}
|
|
755
755
|
setQueryDefaults(e, t) {
|
|
756
|
-
h(this,
|
|
756
|
+
h(this, te).set(vt(e), {
|
|
757
757
|
queryKey: e,
|
|
758
758
|
defaultOptions: t
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
761
|
getQueryDefaults(e) {
|
|
762
|
-
const t = [...h(this,
|
|
762
|
+
const t = [...h(this, te).values()];
|
|
763
763
|
let n = {};
|
|
764
764
|
return t.forEach((r) => {
|
|
765
765
|
xt(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
|
|
766
766
|
}), n;
|
|
767
767
|
}
|
|
768
768
|
setMutationDefaults(e, t) {
|
|
769
|
-
h(this,
|
|
769
|
+
h(this, ne).set(vt(e), {
|
|
770
770
|
mutationKey: e,
|
|
771
771
|
defaultOptions: t
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
774
|
getMutationDefaults(e) {
|
|
775
|
-
const t = [...h(this,
|
|
775
|
+
const t = [...h(this, ne).values()];
|
|
776
776
|
let n = {};
|
|
777
777
|
return t.forEach((r) => {
|
|
778
778
|
xt(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
|
|
@@ -801,14 +801,14 @@ var b, H, q, ne, re, z, oe, ae, Pt, Ko = (Pt = class {
|
|
|
801
801
|
};
|
|
802
802
|
}
|
|
803
803
|
clear() {
|
|
804
|
-
h(this,
|
|
804
|
+
h(this, w).clear(), h(this, G).clear();
|
|
805
805
|
}
|
|
806
|
-
},
|
|
807
|
-
const
|
|
806
|
+
}, w = new WeakMap(), G = new WeakMap(), q = new WeakMap(), te = new WeakMap(), ne = new WeakMap(), H = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), Pt);
|
|
807
|
+
const Bo = Ot(null), Ke = {
|
|
808
808
|
didCatch: !1,
|
|
809
809
|
error: null
|
|
810
810
|
};
|
|
811
|
-
class
|
|
811
|
+
class Qo extends Br {
|
|
812
812
|
constructor(t) {
|
|
813
813
|
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Ke;
|
|
814
814
|
}
|
|
@@ -841,7 +841,7 @@ class Bo extends Br {
|
|
|
841
841
|
} = this.state, {
|
|
842
842
|
resetKeys: o
|
|
843
843
|
} = this.props;
|
|
844
|
-
if (r && n.error !== null &&
|
|
844
|
+
if (r && n.error !== null && Uo(t.resetKeys, o)) {
|
|
845
845
|
var s, i;
|
|
846
846
|
(s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
|
|
847
847
|
next: o,
|
|
@@ -875,7 +875,7 @@ class Bo extends Br {
|
|
|
875
875
|
else
|
|
876
876
|
throw i;
|
|
877
877
|
}
|
|
878
|
-
return ht(
|
|
878
|
+
return ht(Bo.Provider, {
|
|
879
879
|
value: {
|
|
880
880
|
didCatch: s,
|
|
881
881
|
error: i,
|
|
@@ -884,21 +884,21 @@ class Bo extends Br {
|
|
|
884
884
|
}, u);
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function Uo() {
|
|
888
888
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
889
889
|
return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
|
|
890
890
|
}
|
|
891
|
-
const
|
|
892
|
-
class
|
|
891
|
+
const Go = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", qo = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Ho = (e) => "initialize" in e && typeof e.initialize == "function", zo = (e) => "getHead" in e && typeof e.getHead == "function", Vo = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Yo = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Gt = new $o();
|
|
892
|
+
class Xo {
|
|
893
893
|
constructor(t) {
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
894
|
+
S(this, "plugins");
|
|
895
|
+
S(this, "sidebars");
|
|
896
|
+
S(this, "topNavigation");
|
|
897
|
+
S(this, "meta");
|
|
898
|
+
S(this, "page");
|
|
899
|
+
S(this, "authentication");
|
|
900
|
+
S(this, "navigationPlugins");
|
|
901
|
+
S(this, "initialize", async ({
|
|
902
902
|
navigate: t
|
|
903
903
|
}) => {
|
|
904
904
|
await Promise.all(
|
|
@@ -908,50 +908,50 @@ class Yo {
|
|
|
908
908
|
})
|
|
909
909
|
);
|
|
910
910
|
});
|
|
911
|
-
|
|
911
|
+
S(this, "invalidateCache", async (t) => {
|
|
912
912
|
await Gt.invalidateQueries({ queryKey: t });
|
|
913
913
|
});
|
|
914
|
-
|
|
915
|
-
this.plugins.filter(
|
|
914
|
+
S(this, "getApiIdentities", async () => (await Promise.all(
|
|
915
|
+
this.plugins.filter(Yo).map((n) => n.getIdentities(this))
|
|
916
916
|
)).flat());
|
|
917
|
-
|
|
917
|
+
S(this, "getPluginSidebar", async (t) => (await Promise.all(
|
|
918
918
|
this.navigationPlugins.map(
|
|
919
919
|
(r) => {
|
|
920
920
|
var o;
|
|
921
|
-
return (o = r.
|
|
921
|
+
return (o = r.getSidebar) == null ? void 0 : o.call(r, Ye(t));
|
|
922
922
|
}
|
|
923
923
|
)
|
|
924
924
|
)).flatMap((r) => r ?? []));
|
|
925
|
-
|
|
925
|
+
S(this, "signRequest", async (t) => {
|
|
926
926
|
if (!this.authentication)
|
|
927
927
|
throw new Error("No authentication provider configured");
|
|
928
928
|
const n = await this.authentication.getAccessToken();
|
|
929
929
|
return t.headers.set("Authorization", `Bearer ${n}`), t;
|
|
930
930
|
});
|
|
931
|
-
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(
|
|
931
|
+
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(qo), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
|
-
function
|
|
935
|
-
return /* @__PURE__ */ a.jsx(
|
|
934
|
+
function Wo({ error: e, resetErrorBoundary: t }) {
|
|
935
|
+
return /* @__PURE__ */ a.jsx(Et, { error: e });
|
|
936
936
|
}
|
|
937
937
|
const Ce = globalThis;
|
|
938
938
|
(!Ce.requestIdleCallback || !Ce.cancelIdleCallback) && (Ce.requestIdleCallback = (e) => setTimeout(e, 1), Ce.cancelIdleCallback = clearTimeout);
|
|
939
|
-
var Qe = ["Enter", " "],
|
|
939
|
+
var Qe = ["Enter", " "], Jo = ["ArrowDown", "PageUp", "Home"], qt = ["ArrowUp", "PageDown", "End"], Zo = [...Jo, ...qt], ea = {
|
|
940
940
|
ltr: [...Qe, "ArrowRight"],
|
|
941
941
|
rtl: [...Qe, "ArrowLeft"]
|
|
942
|
-
},
|
|
942
|
+
}, ta = {
|
|
943
943
|
ltr: ["ArrowLeft"],
|
|
944
944
|
rtl: ["ArrowRight"]
|
|
945
|
-
}, ge = "Menu", [le,
|
|
946
|
-
|
|
945
|
+
}, ge = "Menu", [le, na, ra] = xr(ge), [W, Ht] = _t(ge, [
|
|
946
|
+
ra,
|
|
947
947
|
jt,
|
|
948
948
|
Kt
|
|
949
|
-
]), ve = jt(), zt = Kt(), [Vt,
|
|
950
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, u = ve(t), [d,
|
|
949
|
+
]), ve = jt(), zt = Kt(), [Vt, z] = W(ge), [oa, xe] = W(ge), Yt = (e) => {
|
|
950
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, u = ve(t), [d, g] = c.useState(null), p = c.useRef(!1), l = Ge(s), f = jr(o);
|
|
951
951
|
return c.useEffect(() => {
|
|
952
952
|
const v = () => {
|
|
953
|
-
|
|
954
|
-
}, x = () =>
|
|
953
|
+
p.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
|
|
954
|
+
}, x = () => p.current = !1;
|
|
955
955
|
return document.addEventListener("keydown", v, { capture: !0 }), () => {
|
|
956
956
|
document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
|
|
957
957
|
};
|
|
@@ -962,14 +962,14 @@ var Qe = ["Enter", " "], Wo = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp",
|
|
|
962
962
|
open: n,
|
|
963
963
|
onOpenChange: l,
|
|
964
964
|
content: d,
|
|
965
|
-
onContentChange:
|
|
965
|
+
onContentChange: g,
|
|
966
966
|
children: /* @__PURE__ */ a.jsx(
|
|
967
|
-
|
|
967
|
+
oa,
|
|
968
968
|
{
|
|
969
969
|
scope: t,
|
|
970
970
|
onClose: c.useCallback(() => l(!1), [l]),
|
|
971
|
-
isUsingKeyboardRef:
|
|
972
|
-
dir:
|
|
971
|
+
isUsingKeyboardRef: p,
|
|
972
|
+
dir: f,
|
|
973
973
|
modal: i,
|
|
974
974
|
children: r
|
|
975
975
|
}
|
|
@@ -978,31 +978,31 @@ var Qe = ["Enter", " "], Wo = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp",
|
|
|
978
978
|
) });
|
|
979
979
|
};
|
|
980
980
|
Yt.displayName = ge;
|
|
981
|
-
var
|
|
981
|
+
var aa = "MenuAnchor", We = c.forwardRef(
|
|
982
982
|
(e, t) => {
|
|
983
983
|
const { __scopeMenu: n, ...r } = e, o = ve(n);
|
|
984
|
-
return /* @__PURE__ */ a.jsx(
|
|
984
|
+
return /* @__PURE__ */ a.jsx(yr, { ...o, ...r, ref: t });
|
|
985
985
|
}
|
|
986
986
|
);
|
|
987
|
-
We.displayName =
|
|
988
|
-
var Je = "MenuPortal", [
|
|
987
|
+
We.displayName = aa;
|
|
988
|
+
var Je = "MenuPortal", [sa, Xt] = W(Je, {
|
|
989
989
|
forceMount: void 0
|
|
990
990
|
}), Wt = (e) => {
|
|
991
|
-
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s =
|
|
992
|
-
return /* @__PURE__ */ a.jsx(
|
|
991
|
+
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = z(Je, t);
|
|
992
|
+
return /* @__PURE__ */ a.jsx(sa, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(Ie, { present: n || s.open, children: /* @__PURE__ */ a.jsx(Nr, { asChild: !0, container: o, children: r }) }) });
|
|
993
993
|
};
|
|
994
994
|
Wt.displayName = Je;
|
|
995
|
-
var
|
|
995
|
+
var D = "MenuContent", [ia, Ze] = W(D), Jt = c.forwardRef(
|
|
996
996
|
(e, t) => {
|
|
997
|
-
const n = Xt(
|
|
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(
|
|
997
|
+
const n = Xt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = z(D, e.__scopeMenu), i = xe(D, 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(ca, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(ua, { ...o, ref: t }) }) }) });
|
|
999
999
|
}
|
|
1000
|
-
),
|
|
1000
|
+
), ca = c.forwardRef(
|
|
1001
1001
|
(e, t) => {
|
|
1002
|
-
const n =
|
|
1002
|
+
const n = z(D, e.__scopeMenu), r = c.useRef(null), o = fe(t, r);
|
|
1003
1003
|
return c.useEffect(() => {
|
|
1004
1004
|
const s = r.current;
|
|
1005
|
-
if (s) return
|
|
1005
|
+
if (s) return wr(s);
|
|
1006
1006
|
}, []), /* @__PURE__ */ a.jsx(
|
|
1007
1007
|
et,
|
|
1008
1008
|
{
|
|
@@ -1011,7 +1011,7 @@ var T = "MenuContent", [sa, Ze] = J(T), Jt = c.forwardRef(
|
|
|
1011
1011
|
trapFocus: n.open,
|
|
1012
1012
|
disableOutsidePointerEvents: n.open,
|
|
1013
1013
|
disableOutsideScroll: !0,
|
|
1014
|
-
onFocusOutside:
|
|
1014
|
+
onFocusOutside: y(
|
|
1015
1015
|
e.onFocusOutside,
|
|
1016
1016
|
(s) => s.preventDefault(),
|
|
1017
1017
|
{ checkForDefaultPrevented: !1 }
|
|
@@ -1020,8 +1020,8 @@ var T = "MenuContent", [sa, Ze] = J(T), Jt = c.forwardRef(
|
|
|
1020
1020
|
}
|
|
1021
1021
|
);
|
|
1022
1022
|
}
|
|
1023
|
-
),
|
|
1024
|
-
const n =
|
|
1023
|
+
), ua = c.forwardRef((e, t) => {
|
|
1024
|
+
const n = z(D, e.__scopeMenu);
|
|
1025
1025
|
return /* @__PURE__ */ a.jsx(
|
|
1026
1026
|
et,
|
|
1027
1027
|
{
|
|
@@ -1043,61 +1043,61 @@ var T = "MenuContent", [sa, Ze] = J(T), Jt = c.forwardRef(
|
|
|
1043
1043
|
onCloseAutoFocus: i,
|
|
1044
1044
|
disableOutsidePointerEvents: u,
|
|
1045
1045
|
onEntryFocus: d,
|
|
1046
|
-
onEscapeKeyDown:
|
|
1047
|
-
onPointerDownOutside:
|
|
1046
|
+
onEscapeKeyDown: g,
|
|
1047
|
+
onPointerDownOutside: p,
|
|
1048
1048
|
onFocusOutside: l,
|
|
1049
|
-
onInteractOutside:
|
|
1049
|
+
onInteractOutside: f,
|
|
1050
1050
|
onDismiss: v,
|
|
1051
1051
|
disableOutsideScroll: x,
|
|
1052
|
-
...
|
|
1053
|
-
} = e,
|
|
1054
|
-
var
|
|
1055
|
-
const
|
|
1056
|
-
(function
|
|
1057
|
-
|
|
1058
|
-
})(
|
|
1052
|
+
...b
|
|
1053
|
+
} = e, I = z(D, n), Q = xe(D, n), V = ve(n), C = zt(n), A = na(n), [L, Y] = c.useState(null), J = c.useRef(null), ye = fe(t, J, I.onContentChange), X = c.useRef(0), we = c.useRef(""), er = c.useRef(0), Oe = c.useRef(null), st = c.useRef("right"), ke = c.useRef(0), tr = x ? Sr : c.Fragment, nr = x ? { as: Er, allowPinchZoom: !0 } : void 0, rr = (m) => {
|
|
1054
|
+
var ee, ct;
|
|
1055
|
+
const j = we.current + m, O = A().filter((K) => !K.disabled), U = document.activeElement, Te = (ee = O.find((K) => K.ref.current === U)) == null ? void 0 : ee.textValue, Fe = O.map((K) => K.textValue), it = ba(Fe, j, Te), ie = (ct = O.find((K) => K.textValue === it)) == null ? void 0 : ct.ref.current;
|
|
1056
|
+
(function K(ut) {
|
|
1057
|
+
we.current = ut, window.clearTimeout(X.current), ut !== "" && (X.current = window.setTimeout(() => K(""), 1e3));
|
|
1058
|
+
})(j), ie && setTimeout(() => ie.focus());
|
|
1059
1059
|
};
|
|
1060
1060
|
c.useEffect(() => () => window.clearTimeout(X.current), []), br();
|
|
1061
|
-
const
|
|
1062
|
-
var
|
|
1063
|
-
return st.current === ((
|
|
1061
|
+
const Z = c.useCallback((m) => {
|
|
1062
|
+
var O, U;
|
|
1063
|
+
return st.current === ((O = Oe.current) == null ? void 0 : O.side) && Ca(m, (U = Oe.current) == null ? void 0 : U.area);
|
|
1064
1064
|
}, []);
|
|
1065
1065
|
return /* @__PURE__ */ a.jsx(
|
|
1066
|
-
|
|
1066
|
+
ia,
|
|
1067
1067
|
{
|
|
1068
1068
|
scope: n,
|
|
1069
|
-
searchRef:
|
|
1069
|
+
searchRef: we,
|
|
1070
1070
|
onItemEnter: c.useCallback(
|
|
1071
|
-
(
|
|
1072
|
-
|
|
1071
|
+
(m) => {
|
|
1072
|
+
Z(m) && m.preventDefault();
|
|
1073
1073
|
},
|
|
1074
|
-
[
|
|
1074
|
+
[Z]
|
|
1075
1075
|
),
|
|
1076
1076
|
onItemLeave: c.useCallback(
|
|
1077
|
-
(
|
|
1078
|
-
var
|
|
1079
|
-
|
|
1077
|
+
(m) => {
|
|
1078
|
+
var j;
|
|
1079
|
+
Z(m) || ((j = J.current) == null || j.focus(), Y(null));
|
|
1080
1080
|
},
|
|
1081
|
-
[
|
|
1081
|
+
[Z]
|
|
1082
1082
|
),
|
|
1083
1083
|
onTriggerLeave: c.useCallback(
|
|
1084
|
-
(
|
|
1085
|
-
|
|
1084
|
+
(m) => {
|
|
1085
|
+
Z(m) && m.preventDefault();
|
|
1086
1086
|
},
|
|
1087
|
-
[
|
|
1087
|
+
[Z]
|
|
1088
1088
|
),
|
|
1089
1089
|
pointerGraceTimerRef: er,
|
|
1090
|
-
onPointerGraceIntentChange: c.useCallback((
|
|
1091
|
-
Oe.current =
|
|
1090
|
+
onPointerGraceIntentChange: c.useCallback((m) => {
|
|
1091
|
+
Oe.current = m;
|
|
1092
1092
|
}, []),
|
|
1093
1093
|
children: /* @__PURE__ */ a.jsx(tr, { ...nr, children: /* @__PURE__ */ a.jsx(
|
|
1094
1094
|
Mr,
|
|
1095
1095
|
{
|
|
1096
1096
|
asChild: !0,
|
|
1097
1097
|
trapped: o,
|
|
1098
|
-
onMountAutoFocus:
|
|
1099
|
-
var
|
|
1100
|
-
|
|
1098
|
+
onMountAutoFocus: y(s, (m) => {
|
|
1099
|
+
var j;
|
|
1100
|
+
m.preventDefault(), (j = J.current) == null || j.focus({ preventScroll: !0 });
|
|
1101
1101
|
}),
|
|
1102
1102
|
onUnmountAutoFocus: i,
|
|
1103
1103
|
children: /* @__PURE__ */ a.jsx(
|
|
@@ -1105,23 +1105,23 @@ var T = "MenuContent", [sa, Ze] = J(T), Jt = c.forwardRef(
|
|
|
1105
1105
|
{
|
|
1106
1106
|
asChild: !0,
|
|
1107
1107
|
disableOutsidePointerEvents: u,
|
|
1108
|
-
onEscapeKeyDown:
|
|
1109
|
-
onPointerDownOutside:
|
|
1108
|
+
onEscapeKeyDown: g,
|
|
1109
|
+
onPointerDownOutside: p,
|
|
1110
1110
|
onFocusOutside: l,
|
|
1111
|
-
onInteractOutside:
|
|
1111
|
+
onInteractOutside: f,
|
|
1112
1112
|
onDismiss: v,
|
|
1113
1113
|
children: /* @__PURE__ */ a.jsx(
|
|
1114
|
-
|
|
1114
|
+
uo,
|
|
1115
1115
|
{
|
|
1116
1116
|
asChild: !0,
|
|
1117
|
-
...
|
|
1118
|
-
dir:
|
|
1117
|
+
...C,
|
|
1118
|
+
dir: Q.dir,
|
|
1119
1119
|
orientation: "vertical",
|
|
1120
1120
|
loop: r,
|
|
1121
|
-
currentTabStopId:
|
|
1121
|
+
currentTabStopId: L,
|
|
1122
1122
|
onCurrentTabStopIdChange: Y,
|
|
1123
|
-
onEntryFocus:
|
|
1124
|
-
|
|
1123
|
+
onEntryFocus: y(d, (m) => {
|
|
1124
|
+
Q.isUsingKeyboardRef.current || m.preventDefault();
|
|
1125
1125
|
}),
|
|
1126
1126
|
preventScrollOnEntryFocus: !0,
|
|
1127
1127
|
children: /* @__PURE__ */ a.jsx(
|
|
@@ -1129,32 +1129,32 @@ var T = "MenuContent", [sa, Ze] = J(T), Jt = c.forwardRef(
|
|
|
1129
1129
|
{
|
|
1130
1130
|
role: "menu",
|
|
1131
1131
|
"aria-orientation": "vertical",
|
|
1132
|
-
"data-state": gn(
|
|
1132
|
+
"data-state": gn(I.open),
|
|
1133
1133
|
"data-radix-menu-content": "",
|
|
1134
|
-
dir:
|
|
1135
|
-
...
|
|
1136
|
-
...
|
|
1137
|
-
ref:
|
|
1138
|
-
style: { outline: "none", ...
|
|
1139
|
-
onKeyDown:
|
|
1140
|
-
const
|
|
1141
|
-
|
|
1142
|
-
const Fe =
|
|
1143
|
-
if (
|
|
1144
|
-
|
|
1145
|
-
const ie =
|
|
1146
|
-
|
|
1134
|
+
dir: Q.dir,
|
|
1135
|
+
...V,
|
|
1136
|
+
...b,
|
|
1137
|
+
ref: ye,
|
|
1138
|
+
style: { outline: "none", ...b.style },
|
|
1139
|
+
onKeyDown: y(b.onKeyDown, (m) => {
|
|
1140
|
+
const O = m.target.closest("[data-radix-menu-content]") === m.currentTarget, U = m.ctrlKey || m.altKey || m.metaKey, Te = m.key.length === 1;
|
|
1141
|
+
O && (m.key === "Tab" && m.preventDefault(), !U && Te && rr(m.key));
|
|
1142
|
+
const Fe = J.current;
|
|
1143
|
+
if (m.target !== Fe || !Zo.includes(m.key)) return;
|
|
1144
|
+
m.preventDefault();
|
|
1145
|
+
const ie = A().filter((ee) => !ee.disabled).map((ee) => ee.ref.current);
|
|
1146
|
+
qt.includes(m.key) && ie.reverse(), ya(ie);
|
|
1147
1147
|
}),
|
|
1148
|
-
onBlur:
|
|
1149
|
-
|
|
1148
|
+
onBlur: y(e.onBlur, (m) => {
|
|
1149
|
+
m.currentTarget.contains(m.target) || (window.clearTimeout(X.current), we.current = "");
|
|
1150
1150
|
}),
|
|
1151
|
-
onPointerMove:
|
|
1151
|
+
onPointerMove: y(
|
|
1152
1152
|
e.onPointerMove,
|
|
1153
|
-
de((
|
|
1154
|
-
const
|
|
1155
|
-
if (
|
|
1156
|
-
const
|
|
1157
|
-
st.current =
|
|
1153
|
+
de((m) => {
|
|
1154
|
+
const j = m.target, O = ke.current !== m.clientX;
|
|
1155
|
+
if (m.currentTarget.contains(j) && O) {
|
|
1156
|
+
const U = m.clientX > ke.current ? "right" : "left";
|
|
1157
|
+
st.current = U, ke.current = m.clientX;
|
|
1158
1158
|
}
|
|
1159
1159
|
})
|
|
1160
1160
|
)
|
|
@@ -1170,28 +1170,28 @@ var T = "MenuContent", [sa, Ze] = J(T), Jt = c.forwardRef(
|
|
|
1170
1170
|
);
|
|
1171
1171
|
}
|
|
1172
1172
|
);
|
|
1173
|
-
Jt.displayName =
|
|
1174
|
-
var
|
|
1173
|
+
Jt.displayName = D;
|
|
1174
|
+
var la = "MenuGroup", tt = c.forwardRef(
|
|
1175
1175
|
(e, t) => {
|
|
1176
1176
|
const { __scopeMenu: n, ...r } = e;
|
|
1177
|
-
return /* @__PURE__ */ a.jsx(
|
|
1177
|
+
return /* @__PURE__ */ a.jsx(ae.div, { role: "group", ...r, ref: t });
|
|
1178
1178
|
}
|
|
1179
1179
|
);
|
|
1180
|
-
tt.displayName =
|
|
1181
|
-
var
|
|
1180
|
+
tt.displayName = la;
|
|
1181
|
+
var da = "MenuLabel", Zt = c.forwardRef(
|
|
1182
1182
|
(e, t) => {
|
|
1183
1183
|
const { __scopeMenu: n, ...r } = e;
|
|
1184
|
-
return /* @__PURE__ */ a.jsx(
|
|
1184
|
+
return /* @__PURE__ */ a.jsx(ae.div, { ...r, ref: t });
|
|
1185
1185
|
}
|
|
1186
1186
|
);
|
|
1187
|
-
Zt.displayName =
|
|
1188
|
-
var
|
|
1187
|
+
Zt.displayName = da;
|
|
1188
|
+
var je = "MenuItem", bt = "menu.itemSelect", Ae = c.forwardRef(
|
|
1189
1189
|
(e, t) => {
|
|
1190
|
-
const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = xe(
|
|
1190
|
+
const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = xe(je, e.__scopeMenu), u = Ze(je, e.__scopeMenu), d = fe(t, s), g = c.useRef(!1), p = () => {
|
|
1191
1191
|
const l = s.current;
|
|
1192
1192
|
if (!n && l) {
|
|
1193
|
-
const
|
|
1194
|
-
l.addEventListener(bt, (v) => r == null ? void 0 : r(v), { once: !0 }), _r(l,
|
|
1193
|
+
const f = new CustomEvent(bt, { bubbles: !0, cancelable: !0 });
|
|
1194
|
+
l.addEventListener(bt, (v) => r == null ? void 0 : r(v), { once: !0 }), _r(l, f), f.defaultPrevented ? g.current = !1 : i.onClose();
|
|
1195
1195
|
}
|
|
1196
1196
|
};
|
|
1197
1197
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -1200,27 +1200,27 @@ var _e = "MenuItem", bt = "menu.itemSelect", Ae = c.forwardRef(
|
|
|
1200
1200
|
...o,
|
|
1201
1201
|
ref: d,
|
|
1202
1202
|
disabled: n,
|
|
1203
|
-
onClick:
|
|
1203
|
+
onClick: y(e.onClick, p),
|
|
1204
1204
|
onPointerDown: (l) => {
|
|
1205
|
-
var
|
|
1206
|
-
(
|
|
1205
|
+
var f;
|
|
1206
|
+
(f = e.onPointerDown) == null || f.call(e, l), g.current = !0;
|
|
1207
1207
|
},
|
|
1208
|
-
onPointerUp:
|
|
1209
|
-
var
|
|
1210
|
-
|
|
1208
|
+
onPointerUp: y(e.onPointerUp, (l) => {
|
|
1209
|
+
var f;
|
|
1210
|
+
g.current || (f = l.currentTarget) == null || f.click();
|
|
1211
1211
|
}),
|
|
1212
|
-
onKeyDown:
|
|
1213
|
-
const
|
|
1214
|
-
n ||
|
|
1212
|
+
onKeyDown: y(e.onKeyDown, (l) => {
|
|
1213
|
+
const f = u.searchRef.current !== "";
|
|
1214
|
+
n || f && l.key === " " || Qe.includes(l.key) && (l.currentTarget.click(), l.preventDefault());
|
|
1215
1215
|
})
|
|
1216
1216
|
}
|
|
1217
1217
|
);
|
|
1218
1218
|
}
|
|
1219
1219
|
);
|
|
1220
|
-
Ae.displayName =
|
|
1220
|
+
Ae.displayName = je;
|
|
1221
1221
|
var en = c.forwardRef(
|
|
1222
1222
|
(e, t) => {
|
|
1223
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Ze(
|
|
1223
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Ze(je, n), u = zt(n), d = c.useRef(null), g = fe(t, d), [p, l] = c.useState(!1), [f, v] = c.useState("");
|
|
1224
1224
|
return c.useEffect(() => {
|
|
1225
1225
|
const x = d.current;
|
|
1226
1226
|
x && v((x.textContent ?? "").trim());
|
|
@@ -1229,68 +1229,68 @@ var en = c.forwardRef(
|
|
|
1229
1229
|
{
|
|
1230
1230
|
scope: n,
|
|
1231
1231
|
disabled: r,
|
|
1232
|
-
textValue: o ??
|
|
1233
|
-
children: /* @__PURE__ */ a.jsx(
|
|
1234
|
-
|
|
1232
|
+
textValue: o ?? f,
|
|
1233
|
+
children: /* @__PURE__ */ a.jsx(lo, { asChild: !0, ...u, focusable: !r, children: /* @__PURE__ */ a.jsx(
|
|
1234
|
+
ae.div,
|
|
1235
1235
|
{
|
|
1236
1236
|
role: "menuitem",
|
|
1237
|
-
"data-highlighted":
|
|
1237
|
+
"data-highlighted": p ? "" : void 0,
|
|
1238
1238
|
"aria-disabled": r || void 0,
|
|
1239
1239
|
"data-disabled": r ? "" : void 0,
|
|
1240
1240
|
...s,
|
|
1241
|
-
ref:
|
|
1242
|
-
onPointerMove:
|
|
1241
|
+
ref: g,
|
|
1242
|
+
onPointerMove: y(
|
|
1243
1243
|
e.onPointerMove,
|
|
1244
1244
|
de((x) => {
|
|
1245
1245
|
r ? i.onItemLeave(x) : (i.onItemEnter(x), x.defaultPrevented || x.currentTarget.focus({ preventScroll: !0 }));
|
|
1246
1246
|
})
|
|
1247
1247
|
),
|
|
1248
|
-
onPointerLeave:
|
|
1248
|
+
onPointerLeave: y(
|
|
1249
1249
|
e.onPointerLeave,
|
|
1250
1250
|
de((x) => i.onItemLeave(x))
|
|
1251
1251
|
),
|
|
1252
|
-
onFocus:
|
|
1253
|
-
onBlur:
|
|
1252
|
+
onFocus: y(e.onFocus, () => l(!0)),
|
|
1253
|
+
onBlur: y(e.onBlur, () => l(!1))
|
|
1254
1254
|
}
|
|
1255
1255
|
) })
|
|
1256
1256
|
}
|
|
1257
1257
|
);
|
|
1258
1258
|
}
|
|
1259
|
-
),
|
|
1259
|
+
), ha = "MenuCheckboxItem", tn = c.forwardRef(
|
|
1260
1260
|
(e, t) => {
|
|
1261
1261
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
1262
1262
|
return /* @__PURE__ */ a.jsx(sn, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
|
|
1263
1263
|
Ae,
|
|
1264
1264
|
{
|
|
1265
1265
|
role: "menuitemcheckbox",
|
|
1266
|
-
"aria-checked":
|
|
1266
|
+
"aria-checked": Ne(n) ? "mixed" : n,
|
|
1267
1267
|
...o,
|
|
1268
1268
|
ref: t,
|
|
1269
1269
|
"data-state": ot(n),
|
|
1270
|
-
onSelect:
|
|
1270
|
+
onSelect: y(
|
|
1271
1271
|
o.onSelect,
|
|
1272
|
-
() => r == null ? void 0 : r(
|
|
1272
|
+
() => r == null ? void 0 : r(Ne(n) ? !0 : !n),
|
|
1273
1273
|
{ checkForDefaultPrevented: !1 }
|
|
1274
1274
|
)
|
|
1275
1275
|
}
|
|
1276
1276
|
) });
|
|
1277
1277
|
}
|
|
1278
1278
|
);
|
|
1279
|
-
tn.displayName =
|
|
1280
|
-
var nn = "MenuRadioGroup", [
|
|
1279
|
+
tn.displayName = ha;
|
|
1280
|
+
var nn = "MenuRadioGroup", [fa, pa] = W(
|
|
1281
1281
|
nn,
|
|
1282
1282
|
{ value: void 0, onValueChange: () => {
|
|
1283
1283
|
} }
|
|
1284
1284
|
), rn = c.forwardRef(
|
|
1285
1285
|
(e, t) => {
|
|
1286
|
-
const { value: n, onValueChange: r, ...o } = e, s =
|
|
1287
|
-
return /* @__PURE__ */ a.jsx(
|
|
1286
|
+
const { value: n, onValueChange: r, ...o } = e, s = Ge(r);
|
|
1287
|
+
return /* @__PURE__ */ a.jsx(fa, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(tt, { ...o, ref: t }) });
|
|
1288
1288
|
}
|
|
1289
1289
|
);
|
|
1290
1290
|
rn.displayName = nn;
|
|
1291
1291
|
var on = "MenuRadioItem", an = c.forwardRef(
|
|
1292
1292
|
(e, t) => {
|
|
1293
|
-
const { value: n, ...r } = e, o =
|
|
1293
|
+
const { value: n, ...r } = e, o = pa(on, e.__scopeMenu), s = n === o.value;
|
|
1294
1294
|
return /* @__PURE__ */ a.jsx(sn, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
|
|
1295
1295
|
Ae,
|
|
1296
1296
|
{
|
|
@@ -1299,7 +1299,7 @@ var on = "MenuRadioItem", an = c.forwardRef(
|
|
|
1299
1299
|
...r,
|
|
1300
1300
|
ref: t,
|
|
1301
1301
|
"data-state": ot(s),
|
|
1302
|
-
onSelect:
|
|
1302
|
+
onSelect: y(
|
|
1303
1303
|
r.onSelect,
|
|
1304
1304
|
() => {
|
|
1305
1305
|
var i;
|
|
@@ -1312,18 +1312,18 @@ var on = "MenuRadioItem", an = c.forwardRef(
|
|
|
1312
1312
|
}
|
|
1313
1313
|
);
|
|
1314
1314
|
an.displayName = on;
|
|
1315
|
-
var nt = "MenuItemIndicator", [sn,
|
|
1315
|
+
var nt = "MenuItemIndicator", [sn, ma] = W(
|
|
1316
1316
|
nt,
|
|
1317
1317
|
{ checked: !1 }
|
|
1318
1318
|
), cn = c.forwardRef(
|
|
1319
1319
|
(e, t) => {
|
|
1320
|
-
const { __scopeMenu: n, forceMount: r, ...o } = e, s =
|
|
1320
|
+
const { __scopeMenu: n, forceMount: r, ...o } = e, s = ma(nt, n);
|
|
1321
1321
|
return /* @__PURE__ */ a.jsx(
|
|
1322
1322
|
Ie,
|
|
1323
1323
|
{
|
|
1324
|
-
present: r ||
|
|
1324
|
+
present: r || Ne(s.checked) || s.checked === !0,
|
|
1325
1325
|
children: /* @__PURE__ */ a.jsx(
|
|
1326
|
-
|
|
1326
|
+
ae.span,
|
|
1327
1327
|
{
|
|
1328
1328
|
...o,
|
|
1329
1329
|
ref: t,
|
|
@@ -1335,11 +1335,11 @@ var nt = "MenuItemIndicator", [sn, pa] = J(
|
|
|
1335
1335
|
}
|
|
1336
1336
|
);
|
|
1337
1337
|
cn.displayName = nt;
|
|
1338
|
-
var
|
|
1338
|
+
var ga = "MenuSeparator", un = c.forwardRef(
|
|
1339
1339
|
(e, t) => {
|
|
1340
1340
|
const { __scopeMenu: n, ...r } = e;
|
|
1341
1341
|
return /* @__PURE__ */ a.jsx(
|
|
1342
|
-
|
|
1342
|
+
ae.div,
|
|
1343
1343
|
{
|
|
1344
1344
|
role: "separator",
|
|
1345
1345
|
"aria-orientation": "horizontal",
|
|
@@ -1349,30 +1349,30 @@ var ma = "MenuSeparator", un = c.forwardRef(
|
|
|
1349
1349
|
);
|
|
1350
1350
|
}
|
|
1351
1351
|
);
|
|
1352
|
-
un.displayName =
|
|
1353
|
-
var
|
|
1352
|
+
un.displayName = ga;
|
|
1353
|
+
var va = "MenuArrow", ln = c.forwardRef(
|
|
1354
1354
|
(e, t) => {
|
|
1355
1355
|
const { __scopeMenu: n, ...r } = e, o = ve(n);
|
|
1356
1356
|
return /* @__PURE__ */ a.jsx(Rr, { ...o, ...r, ref: t });
|
|
1357
1357
|
}
|
|
1358
1358
|
);
|
|
1359
|
-
ln.displayName =
|
|
1360
|
-
var rt = "MenuSub", [
|
|
1361
|
-
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s =
|
|
1359
|
+
ln.displayName = va;
|
|
1360
|
+
var rt = "MenuSub", [xa, dn] = W(rt), hn = (e) => {
|
|
1361
|
+
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = z(rt, t), i = ve(t), [u, d] = c.useState(null), [g, p] = c.useState(null), l = Ge(o);
|
|
1362
1362
|
return c.useEffect(() => (s.open === !1 && l(!1), () => l(!1)), [s.open, l]), /* @__PURE__ */ a.jsx(Dt, { ...i, children: /* @__PURE__ */ a.jsx(
|
|
1363
1363
|
Vt,
|
|
1364
1364
|
{
|
|
1365
1365
|
scope: t,
|
|
1366
1366
|
open: r,
|
|
1367
1367
|
onOpenChange: l,
|
|
1368
|
-
content:
|
|
1369
|
-
onContentChange:
|
|
1368
|
+
content: g,
|
|
1369
|
+
onContentChange: p,
|
|
1370
1370
|
children: /* @__PURE__ */ a.jsx(
|
|
1371
|
-
|
|
1371
|
+
xa,
|
|
1372
1372
|
{
|
|
1373
1373
|
scope: t,
|
|
1374
|
-
contentId:
|
|
1375
|
-
triggerId:
|
|
1374
|
+
contentId: Ee(),
|
|
1375
|
+
triggerId: Ee(),
|
|
1376
1376
|
trigger: u,
|
|
1377
1377
|
onTriggerChange: d,
|
|
1378
1378
|
children: n
|
|
@@ -1384,15 +1384,15 @@ var rt = "MenuSub", [va, dn] = J(rt), hn = (e) => {
|
|
|
1384
1384
|
hn.displayName = rt;
|
|
1385
1385
|
var ce = "MenuSubTrigger", fn = c.forwardRef(
|
|
1386
1386
|
(e, t) => {
|
|
1387
|
-
const n =
|
|
1387
|
+
const n = z(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, g = { __scopeMenu: e.__scopeMenu }, p = c.useCallback(() => {
|
|
1388
1388
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
1389
1389
|
}, []);
|
|
1390
|
-
return c.useEffect(() =>
|
|
1390
|
+
return c.useEffect(() => p, [p]), c.useEffect(() => {
|
|
1391
1391
|
const l = u.current;
|
|
1392
1392
|
return () => {
|
|
1393
1393
|
window.clearTimeout(l), d(null);
|
|
1394
1394
|
};
|
|
1395
|
-
}, [u, d]), /* @__PURE__ */ a.jsx(We, { asChild: !0, ...
|
|
1395
|
+
}, [u, d]), /* @__PURE__ */ a.jsx(We, { asChild: !0, ...g, children: /* @__PURE__ */ a.jsx(
|
|
1396
1396
|
en,
|
|
1397
1397
|
{
|
|
1398
1398
|
id: o.triggerId,
|
|
@@ -1403,36 +1403,36 @@ var ce = "MenuSubTrigger", fn = c.forwardRef(
|
|
|
1403
1403
|
...e,
|
|
1404
1404
|
ref: Nt(t, o.onTriggerChange),
|
|
1405
1405
|
onClick: (l) => {
|
|
1406
|
-
var
|
|
1407
|
-
(
|
|
1406
|
+
var f;
|
|
1407
|
+
(f = e.onClick) == null || f.call(e, l), !(e.disabled || l.defaultPrevented) && (l.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
1408
1408
|
},
|
|
1409
|
-
onPointerMove:
|
|
1409
|
+
onPointerMove: y(
|
|
1410
1410
|
e.onPointerMove,
|
|
1411
1411
|
de((l) => {
|
|
1412
1412
|
s.onItemEnter(l), !l.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
|
|
1413
|
-
n.onOpenChange(!0),
|
|
1413
|
+
n.onOpenChange(!0), p();
|
|
1414
1414
|
}, 100));
|
|
1415
1415
|
})
|
|
1416
1416
|
),
|
|
1417
|
-
onPointerLeave:
|
|
1417
|
+
onPointerLeave: y(
|
|
1418
1418
|
e.onPointerLeave,
|
|
1419
1419
|
de((l) => {
|
|
1420
1420
|
var v, x;
|
|
1421
|
-
|
|
1422
|
-
const
|
|
1423
|
-
if (
|
|
1424
|
-
const
|
|
1421
|
+
p();
|
|
1422
|
+
const f = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
|
|
1423
|
+
if (f) {
|
|
1424
|
+
const b = (x = n.content) == null ? void 0 : x.dataset.side, I = b === "right", Q = I ? -5 : 5, V = f[I ? "left" : "right"], C = f[I ? "right" : "left"];
|
|
1425
1425
|
s.onPointerGraceIntentChange({
|
|
1426
1426
|
area: [
|
|
1427
1427
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
1428
1428
|
// consistently within polygon bounds
|
|
1429
|
-
{ x: l.clientX +
|
|
1430
|
-
{ x:
|
|
1431
|
-
{ x:
|
|
1432
|
-
{ x:
|
|
1433
|
-
{ x:
|
|
1429
|
+
{ x: l.clientX + Q, y: l.clientY },
|
|
1430
|
+
{ x: V, y: f.top },
|
|
1431
|
+
{ x: C, y: f.top },
|
|
1432
|
+
{ x: C, y: f.bottom },
|
|
1433
|
+
{ x: V, y: f.bottom }
|
|
1434
1434
|
],
|
|
1435
|
-
side:
|
|
1435
|
+
side: b
|
|
1436
1436
|
}), window.clearTimeout(u.current), u.current = window.setTimeout(
|
|
1437
1437
|
() => s.onPointerGraceIntentChange(null),
|
|
1438
1438
|
300
|
|
@@ -1443,10 +1443,10 @@ var ce = "MenuSubTrigger", fn = c.forwardRef(
|
|
|
1443
1443
|
}
|
|
1444
1444
|
})
|
|
1445
1445
|
),
|
|
1446
|
-
onKeyDown:
|
|
1446
|
+
onKeyDown: y(e.onKeyDown, (l) => {
|
|
1447
1447
|
var v;
|
|
1448
|
-
const
|
|
1449
|
-
e.disabled ||
|
|
1448
|
+
const f = s.searchRef.current !== "";
|
|
1449
|
+
e.disabled || f && l.key === " " || ea[r.dir].includes(l.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), l.preventDefault());
|
|
1450
1450
|
})
|
|
1451
1451
|
}
|
|
1452
1452
|
) });
|
|
@@ -1455,34 +1455,34 @@ var ce = "MenuSubTrigger", fn = c.forwardRef(
|
|
|
1455
1455
|
fn.displayName = ce;
|
|
1456
1456
|
var pn = "MenuSubContent", mn = c.forwardRef(
|
|
1457
1457
|
(e, t) => {
|
|
1458
|
-
const n = Xt(
|
|
1458
|
+
const n = Xt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = z(D, e.__scopeMenu), i = xe(D, e.__scopeMenu), u = dn(pn, e.__scopeMenu), d = c.useRef(null), g = fe(t, d);
|
|
1459
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
1460
|
et,
|
|
1461
1461
|
{
|
|
1462
1462
|
id: u.contentId,
|
|
1463
1463
|
"aria-labelledby": u.triggerId,
|
|
1464
1464
|
...o,
|
|
1465
|
-
ref:
|
|
1465
|
+
ref: g,
|
|
1466
1466
|
align: "start",
|
|
1467
1467
|
side: i.dir === "rtl" ? "left" : "right",
|
|
1468
1468
|
disableOutsidePointerEvents: !1,
|
|
1469
1469
|
disableOutsideScroll: !1,
|
|
1470
1470
|
trapFocus: !1,
|
|
1471
|
-
onOpenAutoFocus: (
|
|
1471
|
+
onOpenAutoFocus: (p) => {
|
|
1472
1472
|
var l;
|
|
1473
|
-
i.isUsingKeyboardRef.current && ((l = d.current) == null || l.focus()),
|
|
1473
|
+
i.isUsingKeyboardRef.current && ((l = d.current) == null || l.focus()), p.preventDefault();
|
|
1474
1474
|
},
|
|
1475
|
-
onCloseAutoFocus: (
|
|
1476
|
-
onFocusOutside:
|
|
1477
|
-
|
|
1475
|
+
onCloseAutoFocus: (p) => p.preventDefault(),
|
|
1476
|
+
onFocusOutside: y(e.onFocusOutside, (p) => {
|
|
1477
|
+
p.target !== u.trigger && s.onOpenChange(!1);
|
|
1478
1478
|
}),
|
|
1479
|
-
onEscapeKeyDown:
|
|
1480
|
-
i.onClose(),
|
|
1479
|
+
onEscapeKeyDown: y(e.onEscapeKeyDown, (p) => {
|
|
1480
|
+
i.onClose(), p.preventDefault();
|
|
1481
1481
|
}),
|
|
1482
|
-
onKeyDown:
|
|
1482
|
+
onKeyDown: y(e.onKeyDown, (p) => {
|
|
1483
1483
|
var v;
|
|
1484
|
-
const l =
|
|
1485
|
-
l &&
|
|
1484
|
+
const l = p.currentTarget.contains(p.target), f = ta[i.dir].includes(p.key);
|
|
1485
|
+
l && f && (s.onOpenChange(!1), (v = u.trigger) == null || v.focus(), p.preventDefault());
|
|
1486
1486
|
})
|
|
1487
1487
|
}
|
|
1488
1488
|
) }) }) });
|
|
@@ -1492,13 +1492,13 @@ mn.displayName = pn;
|
|
|
1492
1492
|
function gn(e) {
|
|
1493
1493
|
return e ? "open" : "closed";
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function Ne(e) {
|
|
1496
1496
|
return e === "indeterminate";
|
|
1497
1497
|
}
|
|
1498
1498
|
function ot(e) {
|
|
1499
|
-
return
|
|
1499
|
+
return Ne(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function ya(e) {
|
|
1502
1502
|
const t = document.activeElement;
|
|
1503
1503
|
for (const n of e)
|
|
1504
1504
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
@@ -1506,36 +1506,36 @@ function xa(e) {
|
|
|
1506
1506
|
function wa(e, t) {
|
|
1507
1507
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1510
|
-
const o = t.length > 1 && Array.from(t).every((
|
|
1509
|
+
function ba(e, t, n) {
|
|
1510
|
+
const o = t.length > 1 && Array.from(t).every((g) => g === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
1511
1511
|
let i = wa(e, Math.max(s, 0));
|
|
1512
|
-
o.length === 1 && (i = i.filter((
|
|
1512
|
+
o.length === 1 && (i = i.filter((g) => g !== n));
|
|
1513
1513
|
const d = i.find(
|
|
1514
|
-
(
|
|
1514
|
+
(g) => g.toLowerCase().startsWith(o.toLowerCase())
|
|
1515
1515
|
);
|
|
1516
1516
|
return d !== n ? d : void 0;
|
|
1517
1517
|
}
|
|
1518
|
-
function
|
|
1518
|
+
function Ma(e, t) {
|
|
1519
1519
|
const { x: n, y: r } = e;
|
|
1520
1520
|
let o = !1;
|
|
1521
1521
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
1522
|
-
const u = t[s].x, d = t[s].y,
|
|
1523
|
-
d > r !=
|
|
1522
|
+
const u = t[s].x, d = t[s].y, g = t[i].x, p = t[i].y;
|
|
1523
|
+
d > r != p > r && n < (g - u) * (r - d) / (p - d) + u && (o = !o);
|
|
1524
1524
|
}
|
|
1525
1525
|
return o;
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1527
|
+
function Ca(e, t) {
|
|
1528
1528
|
if (!t) return !1;
|
|
1529
1529
|
const n = { x: e.clientX, y: e.clientY };
|
|
1530
|
-
return
|
|
1530
|
+
return Ma(n, t);
|
|
1531
1531
|
}
|
|
1532
1532
|
function de(e) {
|
|
1533
1533
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
1534
1534
|
}
|
|
1535
|
-
var
|
|
1535
|
+
var Pa = Yt, Ra = We, Sa = Wt, Ea = Jt, _a = tt, ja = Zt, Na = Ae, Da = tn, Ia = rn, Aa = an, Oa = cn, ka = un, Ta = ln, Fa = hn, La = fn, Ka = mn, at = "DropdownMenu", [$a, Bs] = _t(
|
|
1536
1536
|
at,
|
|
1537
|
-
[
|
|
1538
|
-
),
|
|
1537
|
+
[Ht]
|
|
1538
|
+
), R = Ht(), [Ba, vn] = $a(at), xn = (e) => {
|
|
1539
1539
|
const {
|
|
1540
1540
|
__scopeDropdownMenu: t,
|
|
1541
1541
|
children: n,
|
|
@@ -1544,32 +1544,32 @@ var Ca = Yt, Pa = We, Ra = Wt, Ea = Jt, Sa = tt, _a = Zt, ja = Ae, Na = tn, Da =
|
|
|
1544
1544
|
defaultOpen: s,
|
|
1545
1545
|
onOpenChange: i,
|
|
1546
1546
|
modal: u = !0
|
|
1547
|
-
} = e, d =
|
|
1547
|
+
} = e, d = R(t), g = c.useRef(null), [p = !1, l] = It({
|
|
1548
1548
|
prop: o,
|
|
1549
1549
|
defaultProp: s,
|
|
1550
1550
|
onChange: i
|
|
1551
1551
|
});
|
|
1552
1552
|
return /* @__PURE__ */ a.jsx(
|
|
1553
|
-
|
|
1553
|
+
Ba,
|
|
1554
1554
|
{
|
|
1555
1555
|
scope: t,
|
|
1556
|
-
triggerId:
|
|
1557
|
-
triggerRef:
|
|
1558
|
-
contentId:
|
|
1559
|
-
open:
|
|
1556
|
+
triggerId: Ee(),
|
|
1557
|
+
triggerRef: g,
|
|
1558
|
+
contentId: Ee(),
|
|
1559
|
+
open: p,
|
|
1560
1560
|
onOpenChange: l,
|
|
1561
|
-
onOpenToggle: c.useCallback(() => l((
|
|
1561
|
+
onOpenToggle: c.useCallback(() => l((f) => !f), [l]),
|
|
1562
1562
|
modal: u,
|
|
1563
|
-
children: /* @__PURE__ */ a.jsx(
|
|
1563
|
+
children: /* @__PURE__ */ a.jsx(Pa, { ...d, open: p, onOpenChange: l, dir: r, modal: u, children: n })
|
|
1564
1564
|
}
|
|
1565
1565
|
);
|
|
1566
1566
|
};
|
|
1567
1567
|
xn.displayName = at;
|
|
1568
|
-
var
|
|
1568
|
+
var yn = "DropdownMenuTrigger", wn = c.forwardRef(
|
|
1569
1569
|
(e, t) => {
|
|
1570
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = vn(
|
|
1571
|
-
return /* @__PURE__ */ a.jsx(
|
|
1572
|
-
|
|
1570
|
+
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = vn(yn, n), i = R(n);
|
|
1571
|
+
return /* @__PURE__ */ a.jsx(Ra, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
|
|
1572
|
+
ae.button,
|
|
1573
1573
|
{
|
|
1574
1574
|
type: "button",
|
|
1575
1575
|
id: s.triggerId,
|
|
@@ -1581,25 +1581,25 @@ var wn = "DropdownMenuTrigger", yn = c.forwardRef(
|
|
|
1581
1581
|
disabled: r,
|
|
1582
1582
|
...o,
|
|
1583
1583
|
ref: Nt(t, s.triggerRef),
|
|
1584
|
-
onPointerDown:
|
|
1584
|
+
onPointerDown: y(e.onPointerDown, (u) => {
|
|
1585
1585
|
!r && u.button === 0 && u.ctrlKey === !1 && (s.onOpenToggle(), s.open || u.preventDefault());
|
|
1586
1586
|
}),
|
|
1587
|
-
onKeyDown:
|
|
1587
|
+
onKeyDown: y(e.onKeyDown, (u) => {
|
|
1588
1588
|
r || (["Enter", " "].includes(u.key) && s.onOpenToggle(), u.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(u.key) && u.preventDefault());
|
|
1589
1589
|
})
|
|
1590
1590
|
}
|
|
1591
1591
|
) });
|
|
1592
1592
|
}
|
|
1593
1593
|
);
|
|
1594
|
-
|
|
1595
|
-
var
|
|
1596
|
-
const { __scopeDropdownMenu: t, ...n } = e, r =
|
|
1597
|
-
return /* @__PURE__ */ a.jsx(
|
|
1594
|
+
wn.displayName = yn;
|
|
1595
|
+
var Qa = "DropdownMenuPortal", bn = (e) => {
|
|
1596
|
+
const { __scopeDropdownMenu: t, ...n } = e, r = R(t);
|
|
1597
|
+
return /* @__PURE__ */ a.jsx(Sa, { ...r, ...n });
|
|
1598
1598
|
};
|
|
1599
|
-
bn.displayName =
|
|
1599
|
+
bn.displayName = Qa;
|
|
1600
1600
|
var Mn = "DropdownMenuContent", Cn = c.forwardRef(
|
|
1601
1601
|
(e, t) => {
|
|
1602
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = vn(Mn, n), s =
|
|
1602
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = vn(Mn, n), s = R(n), i = c.useRef(!1);
|
|
1603
1603
|
return /* @__PURE__ */ a.jsx(
|
|
1604
1604
|
Ea,
|
|
1605
1605
|
{
|
|
@@ -1608,13 +1608,13 @@ var Mn = "DropdownMenuContent", Cn = c.forwardRef(
|
|
|
1608
1608
|
...s,
|
|
1609
1609
|
...r,
|
|
1610
1610
|
ref: t,
|
|
1611
|
-
onCloseAutoFocus:
|
|
1611
|
+
onCloseAutoFocus: y(e.onCloseAutoFocus, (u) => {
|
|
1612
1612
|
var d;
|
|
1613
1613
|
i.current || (d = o.triggerRef.current) == null || d.focus(), i.current = !1, u.preventDefault();
|
|
1614
1614
|
}),
|
|
1615
|
-
onInteractOutside:
|
|
1616
|
-
const d = u.detail.originalEvent,
|
|
1617
|
-
(!o.modal ||
|
|
1615
|
+
onInteractOutside: y(e.onInteractOutside, (u) => {
|
|
1616
|
+
const d = u.detail.originalEvent, g = d.button === 0 && d.ctrlKey === !0, p = d.button === 2 || g;
|
|
1617
|
+
(!o.modal || p) && (i.current = !0);
|
|
1618
1618
|
}),
|
|
1619
1619
|
style: {
|
|
1620
1620
|
...e.style,
|
|
@@ -1629,75 +1629,75 @@ var Mn = "DropdownMenuContent", Cn = c.forwardRef(
|
|
|
1629
1629
|
}
|
|
1630
1630
|
);
|
|
1631
1631
|
Cn.displayName = Mn;
|
|
1632
|
-
var
|
|
1632
|
+
var Ua = "DropdownMenuGroup", Ga = c.forwardRef(
|
|
1633
1633
|
(e, t) => {
|
|
1634
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1635
|
-
return /* @__PURE__ */ a.jsx(
|
|
1634
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = R(n);
|
|
1635
|
+
return /* @__PURE__ */ a.jsx(_a, { ...o, ...r, ref: t });
|
|
1636
1636
|
}
|
|
1637
1637
|
);
|
|
1638
|
-
|
|
1639
|
-
var
|
|
1638
|
+
Ga.displayName = Ua;
|
|
1639
|
+
var qa = "DropdownMenuLabel", Pn = c.forwardRef(
|
|
1640
1640
|
(e, t) => {
|
|
1641
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1642
|
-
return /* @__PURE__ */ a.jsx(
|
|
1641
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = R(n);
|
|
1642
|
+
return /* @__PURE__ */ a.jsx(ja, { ...o, ...r, ref: t });
|
|
1643
1643
|
}
|
|
1644
1644
|
);
|
|
1645
|
-
Pn.displayName =
|
|
1645
|
+
Pn.displayName = qa;
|
|
1646
1646
|
var Ha = "DropdownMenuItem", Rn = c.forwardRef(
|
|
1647
1647
|
(e, t) => {
|
|
1648
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1649
|
-
return /* @__PURE__ */ a.jsx(
|
|
1648
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = R(n);
|
|
1649
|
+
return /* @__PURE__ */ a.jsx(Na, { ...o, ...r, ref: t });
|
|
1650
1650
|
}
|
|
1651
1651
|
);
|
|
1652
1652
|
Rn.displayName = Ha;
|
|
1653
|
-
var
|
|
1654
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1655
|
-
return /* @__PURE__ */ a.jsx(Na, { ...o, ...r, ref: t });
|
|
1656
|
-
});
|
|
1657
|
-
En.displayName = qa;
|
|
1658
|
-
var za = "DropdownMenuRadioGroup", Va = c.forwardRef((e, t) => {
|
|
1659
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1653
|
+
var za = "DropdownMenuCheckboxItem", Sn = c.forwardRef((e, t) => {
|
|
1654
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = R(n);
|
|
1660
1655
|
return /* @__PURE__ */ a.jsx(Da, { ...o, ...r, ref: t });
|
|
1661
1656
|
});
|
|
1662
|
-
|
|
1663
|
-
var
|
|
1664
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1657
|
+
Sn.displayName = za;
|
|
1658
|
+
var Va = "DropdownMenuRadioGroup", Ya = c.forwardRef((e, t) => {
|
|
1659
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = R(n);
|
|
1665
1660
|
return /* @__PURE__ */ a.jsx(Ia, { ...o, ...r, ref: t });
|
|
1666
1661
|
});
|
|
1667
|
-
|
|
1668
|
-
var Xa = "
|
|
1669
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1662
|
+
Ya.displayName = Va;
|
|
1663
|
+
var Xa = "DropdownMenuRadioItem", En = c.forwardRef((e, t) => {
|
|
1664
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = R(n);
|
|
1670
1665
|
return /* @__PURE__ */ a.jsx(Aa, { ...o, ...r, ref: t });
|
|
1671
1666
|
});
|
|
1672
|
-
|
|
1673
|
-
var Wa = "
|
|
1674
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1667
|
+
En.displayName = Xa;
|
|
1668
|
+
var Wa = "DropdownMenuItemIndicator", _n = c.forwardRef((e, t) => {
|
|
1669
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = R(n);
|
|
1675
1670
|
return /* @__PURE__ */ a.jsx(Oa, { ...o, ...r, ref: t });
|
|
1676
1671
|
});
|
|
1677
|
-
|
|
1678
|
-
var Ja = "
|
|
1672
|
+
_n.displayName = Wa;
|
|
1673
|
+
var Ja = "DropdownMenuSeparator", jn = c.forwardRef((e, t) => {
|
|
1674
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = R(n);
|
|
1675
|
+
return /* @__PURE__ */ a.jsx(ka, { ...o, ...r, ref: t });
|
|
1676
|
+
});
|
|
1677
|
+
jn.displayName = Ja;
|
|
1678
|
+
var Za = "DropdownMenuArrow", es = c.forwardRef(
|
|
1679
1679
|
(e, t) => {
|
|
1680
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1680
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = R(n);
|
|
1681
1681
|
return /* @__PURE__ */ a.jsx(Ta, { ...o, ...r, ref: t });
|
|
1682
1682
|
}
|
|
1683
1683
|
);
|
|
1684
|
-
|
|
1685
|
-
var
|
|
1686
|
-
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i =
|
|
1684
|
+
es.displayName = Za;
|
|
1685
|
+
var ts = (e) => {
|
|
1686
|
+
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = R(t), [u = !1, d] = It({
|
|
1687
1687
|
prop: r,
|
|
1688
1688
|
defaultProp: s,
|
|
1689
1689
|
onChange: o
|
|
1690
1690
|
});
|
|
1691
|
-
return /* @__PURE__ */ a.jsx(
|
|
1692
|
-
},
|
|
1693
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1694
|
-
return /* @__PURE__ */ a.jsx(
|
|
1691
|
+
return /* @__PURE__ */ a.jsx(Fa, { ...i, open: u, onOpenChange: d, children: n });
|
|
1692
|
+
}, ns = "DropdownMenuSubTrigger", Nn = c.forwardRef((e, t) => {
|
|
1693
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = R(n);
|
|
1694
|
+
return /* @__PURE__ */ a.jsx(La, { ...o, ...r, ref: t });
|
|
1695
1695
|
});
|
|
1696
|
-
Nn.displayName =
|
|
1697
|
-
var
|
|
1698
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1696
|
+
Nn.displayName = ns;
|
|
1697
|
+
var rs = "DropdownMenuSubContent", Dn = c.forwardRef((e, t) => {
|
|
1698
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = R(n);
|
|
1699
1699
|
return /* @__PURE__ */ a.jsx(
|
|
1700
|
-
|
|
1700
|
+
Ka,
|
|
1701
1701
|
{
|
|
1702
1702
|
...o,
|
|
1703
1703
|
...r,
|
|
@@ -1713,9 +1713,9 @@ var ns = "DropdownMenuSubContent", Dn = c.forwardRef((e, t) => {
|
|
|
1713
1713
|
}
|
|
1714
1714
|
);
|
|
1715
1715
|
});
|
|
1716
|
-
Dn.displayName =
|
|
1717
|
-
var
|
|
1718
|
-
const
|
|
1716
|
+
Dn.displayName = rs;
|
|
1717
|
+
var os = xn, as = wn, In = bn, An = Cn, On = Pn, kn = Rn, Tn = Sn, Fn = En, Ln = _n, Kn = jn, ss = ts, $n = Nn, Bn = Dn;
|
|
1718
|
+
const is = os, cs = as, us = In, ls = ss, Qn = c.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
|
|
1719
1719
|
$n,
|
|
1720
1720
|
{
|
|
1721
1721
|
ref: o,
|
|
@@ -1758,8 +1758,8 @@ const Gn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
|
|
|
1758
1758
|
}
|
|
1759
1759
|
) }));
|
|
1760
1760
|
Gn.displayName = An.displayName;
|
|
1761
|
-
const
|
|
1762
|
-
|
|
1761
|
+
const qn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
|
|
1762
|
+
kn,
|
|
1763
1763
|
{
|
|
1764
1764
|
ref: r,
|
|
1765
1765
|
className: M(
|
|
@@ -1770,9 +1770,9 @@ const Hn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
1770
1770
|
...n
|
|
1771
1771
|
}
|
|
1772
1772
|
));
|
|
1773
|
-
|
|
1774
|
-
const
|
|
1775
|
-
|
|
1773
|
+
qn.displayName = kn.displayName;
|
|
1774
|
+
const ds = c.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
|
|
1775
|
+
Tn,
|
|
1776
1776
|
{
|
|
1777
1777
|
ref: o,
|
|
1778
1778
|
className: M(
|
|
@@ -1787,8 +1787,8 @@ const ls = c.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
|
|
|
1787
1787
|
]
|
|
1788
1788
|
}
|
|
1789
1789
|
));
|
|
1790
|
-
|
|
1791
|
-
const
|
|
1790
|
+
ds.displayName = Tn.displayName;
|
|
1791
|
+
const hs = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
|
|
1792
1792
|
Fn,
|
|
1793
1793
|
{
|
|
1794
1794
|
ref: r,
|
|
@@ -1798,13 +1798,13 @@ const ds = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
1798
1798
|
),
|
|
1799
1799
|
...n,
|
|
1800
1800
|
children: [
|
|
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(
|
|
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(fo, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1802
1802
|
t
|
|
1803
1803
|
]
|
|
1804
1804
|
}
|
|
1805
1805
|
));
|
|
1806
|
-
|
|
1807
|
-
const
|
|
1806
|
+
hs.displayName = Fn.displayName;
|
|
1807
|
+
const Hn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
|
|
1808
1808
|
On,
|
|
1809
1809
|
{
|
|
1810
1810
|
ref: r,
|
|
@@ -1816,7 +1816,7 @@ const qn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
1816
1816
|
...n
|
|
1817
1817
|
}
|
|
1818
1818
|
));
|
|
1819
|
-
|
|
1819
|
+
Hn.displayName = On.displayName;
|
|
1820
1820
|
const zn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
1821
1821
|
Kn,
|
|
1822
1822
|
{
|
|
@@ -1826,10 +1826,10 @@ const zn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
|
1826
1826
|
}
|
|
1827
1827
|
));
|
|
1828
1828
|
zn.displayName = Kn.displayName;
|
|
1829
|
-
const
|
|
1829
|
+
const fs = () => {
|
|
1830
1830
|
const { topNavigation: e } = Ve();
|
|
1831
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
|
-
|
|
1832
|
+
Pe,
|
|
1833
1833
|
{
|
|
1834
1834
|
className: ({ isActive: n }) => Ar(
|
|
1835
1835
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
@@ -1839,14 +1839,14 @@ const hs = () => {
|
|
|
1839
1839
|
children: t.label
|
|
1840
1840
|
}
|
|
1841
1841
|
) }, t.label)) }) });
|
|
1842
|
-
}, Vn = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(
|
|
1842
|
+
}, Vn = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(ls, { children: [
|
|
1843
1843
|
/* @__PURE__ */ a.jsx(Qn, { children: e.label }),
|
|
1844
|
-
/* @__PURE__ */ a.jsx(
|
|
1844
|
+
/* @__PURE__ */ a.jsx(us, { children: /* @__PURE__ */ a.jsx(Un, { children: e.children.map((t, n) => (
|
|
1845
1845
|
// eslint-disable-next-line react/no-array-index-key
|
|
1846
1846
|
/* @__PURE__ */ a.jsx(Vn, { item: t }, n)
|
|
1847
1847
|
)) }) })
|
|
1848
|
-
] }, e.label) : /* @__PURE__ */ a.jsx(Re, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(
|
|
1849
|
-
const [t, n] = Or(), { isAuthenticated: r, profile: o, isAuthEnabled: s } = Dr(), { pathname: i } =
|
|
1848
|
+
] }, e.label) : /* @__PURE__ */ a.jsx(Re, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(qn, { children: e.label }, e.label) }), Yn = kt(function() {
|
|
1849
|
+
const [t, n] = Or(), { isAuthenticated: r, profile: o, isAuthEnabled: s } = Dr(), { pathname: i } = De(), u = Ve(), { page: d, plugins: g } = u, p = g.filter((f) => Go(f)).flatMap((f) => f.getProfileMenuItems(u)).map((f) => /* @__PURE__ */ a.jsx(Vn, { item: f }, f.label)), l = t ? mo : go;
|
|
1850
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
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
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: [
|
|
@@ -1886,12 +1886,12 @@ const hs = () => {
|
|
|
1886
1886
|
},
|
|
1887
1887
|
children: "Login"
|
|
1888
1888
|
}
|
|
1889
|
-
) }) :
|
|
1890
|
-
/* @__PURE__ */ a.jsx(
|
|
1889
|
+
) }) : p.length > 0 && /* @__PURE__ */ a.jsxs(is, { children: [
|
|
1890
|
+
/* @__PURE__ */ a.jsx(cs, { asChild: !0, children: /* @__PURE__ */ a.jsx($e, { variant: "ghost", children: o != null && o.email ? `${o.email}` : "My Account" }) }),
|
|
1891
1891
|
/* @__PURE__ */ a.jsxs(Gn, { className: "w-56", children: [
|
|
1892
|
-
/* @__PURE__ */ a.jsx(
|
|
1892
|
+
/* @__PURE__ */ a.jsx(Hn, { children: "My Account" }),
|
|
1893
1893
|
/* @__PURE__ */ a.jsx(zn, {}),
|
|
1894
|
-
|
|
1894
|
+
p
|
|
1895
1895
|
] })
|
|
1896
1896
|
] }),
|
|
1897
1897
|
/* @__PURE__ */ a.jsx(
|
|
@@ -1907,13 +1907,13 @@ const hs = () => {
|
|
|
1907
1907
|
] })
|
|
1908
1908
|
] })
|
|
1909
1909
|
] }),
|
|
1910
|
-
/* @__PURE__ */ a.jsx(
|
|
1910
|
+
/* @__PURE__ */ a.jsx(fs, {})
|
|
1911
1911
|
] }) });
|
|
1912
1912
|
}), Xn = {
|
|
1913
1913
|
Header: Yn
|
|
1914
|
-
},
|
|
1915
|
-
const [t, n] =
|
|
1916
|
-
|
|
1914
|
+
}, ps = Ot(Xn), ms = ps.Provider, gs = (e) => {
|
|
1915
|
+
const [t, n] = _e(!1);
|
|
1916
|
+
se(() => {
|
|
1917
1917
|
const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), u = s === "dark" || !s && i.matches;
|
|
1918
1918
|
n(u);
|
|
1919
1919
|
}, [t]);
|
|
@@ -1921,62 +1921,65 @@ const hs = () => {
|
|
|
1921
1921
|
const s = !t;
|
|
1922
1922
|
document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
|
|
1923
1923
|
}, [t]), o = [t, r];
|
|
1924
|
-
return /* @__PURE__ */ a.jsx(
|
|
1925
|
-
},
|
|
1924
|
+
return /* @__PURE__ */ a.jsx(kr.Provider, { value: o, ...e });
|
|
1925
|
+
}, vs = ({
|
|
1926
|
+
children: e,
|
|
1927
|
+
context: t
|
|
1928
|
+
}) => {
|
|
1929
|
+
const n = fr();
|
|
1930
|
+
return ao({
|
|
1931
|
+
queryFn: async () => (await t.initialize({ navigate: n }), !0),
|
|
1932
|
+
queryKey: ["zudoku-initialize"]
|
|
1933
|
+
}), /* @__PURE__ */ a.jsx(so.Provider, { value: t, children: e });
|
|
1934
|
+
}, xs = ({
|
|
1926
1935
|
children: e,
|
|
1927
1936
|
...t
|
|
1928
1937
|
}) => {
|
|
1929
|
-
var
|
|
1938
|
+
var l, f;
|
|
1930
1939
|
const n = Le(
|
|
1931
1940
|
() => ({ ...Xn, ...t.overrides }),
|
|
1932
1941
|
[t.overrides]
|
|
1933
1942
|
), r = Le(() => {
|
|
1934
|
-
var
|
|
1943
|
+
var x;
|
|
1935
1944
|
return {
|
|
1936
|
-
...(t.plugins ?? []).filter(
|
|
1937
|
-
(
|
|
1938
|
-
).reduce((
|
|
1939
|
-
...
|
|
1940
|
-
...(
|
|
1945
|
+
...(t.plugins ?? []).filter(Vo).flatMap(
|
|
1946
|
+
(b) => b.getMdxComponents ? [b.getMdxComponents()] : []
|
|
1947
|
+
).reduce((b, I) => ({ ...b, ...I }), {}),
|
|
1948
|
+
...Tr,
|
|
1949
|
+
...(x = t.mdx) == null ? void 0 : x.components
|
|
1941
1950
|
};
|
|
1942
|
-
}, [(
|
|
1943
|
-
() =>
|
|
1944
|
-
[
|
|
1945
|
-
),
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
}, [
|
|
1949
|
-
const [
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
f.current = "done", s(!0);
|
|
1953
|
-
}));
|
|
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);
|
|
1951
|
+
}, [(l = t.mdx) == null ? void 0 : l.components, t.plugins]), { stagger: o } = Gr(Be), [s, i] = _e(!1), u = Le(
|
|
1952
|
+
() => s ? { stagger: !0 } : { stagger: o },
|
|
1953
|
+
[o, s]
|
|
1954
|
+
), d = pr();
|
|
1955
|
+
se(() => {
|
|
1956
|
+
s || i(!0);
|
|
1957
|
+
}, [s, d.location]);
|
|
1958
|
+
const [g] = _e(() => new Xo(t)), p = (f = t.plugins) == null ? void 0 : f.filter(zo).map((v, x) => {
|
|
1959
|
+
var b;
|
|
1960
|
+
return /* @__PURE__ */ a.jsx(qr, { children: (b = v.getHead) == null ? void 0 : b.call(v) }, x);
|
|
1958
1961
|
});
|
|
1959
|
-
return
|
|
1960
|
-
/* @__PURE__ */ a.jsx(Ue, { children:
|
|
1961
|
-
/* @__PURE__ */ a.jsx(Be.Provider, { value:
|
|
1962
|
-
] })
|
|
1963
|
-
},
|
|
1962
|
+
return /* @__PURE__ */ a.jsxs(io, { client: Gt, children: [
|
|
1963
|
+
/* @__PURE__ */ a.jsx(Ue, { children: p }),
|
|
1964
|
+
/* @__PURE__ */ a.jsx(Be.Provider, { value: u, children: /* @__PURE__ */ a.jsx(vs, { context: g, children: /* @__PURE__ */ a.jsx(sr, { components: r, children: /* @__PURE__ */ a.jsx(gs, { children: /* @__PURE__ */ a.jsx(ms, { value: n, children: /* @__PURE__ */ a.jsx(mr, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(Fr, { children: e ?? /* @__PURE__ */ a.jsx(St, {}) }) }) }) }) }) }) })
|
|
1965
|
+
] });
|
|
1966
|
+
}, ys = kt(xs), Wn = (e) => /* @__PURE__ */ a.jsx(Qo, { FallbackComponent: Wo, children: /* @__PURE__ */ a.jsx(ys, { ...e }) });
|
|
1964
1967
|
Wn.displayName = "DevPortal";
|
|
1965
|
-
const
|
|
1968
|
+
const ws = ({
|
|
1966
1969
|
category: e,
|
|
1967
1970
|
level: t
|
|
1968
1971
|
}) => {
|
|
1969
|
-
var
|
|
1970
|
-
const n = Lt(), r = ir(e), o = e.collapsible ?? !0, s = e.collapsed ?? !0, i = !!(!o || !s || r), [u, d] =
|
|
1971
|
-
|
|
1972
|
+
var p;
|
|
1973
|
+
const n = Lt(), r = ir(e), o = e.collapsible ?? !0, s = e.collapsed ?? !0, i = !!(!o || !s || r), [u, d] = _e(i);
|
|
1974
|
+
se(() => {
|
|
1972
1975
|
r && d(!0);
|
|
1973
1976
|
}, [r]);
|
|
1974
|
-
const
|
|
1977
|
+
const g = o && /* @__PURE__ */ a.jsx(
|
|
1975
1978
|
"button",
|
|
1976
1979
|
{
|
|
1977
1980
|
type: "button",
|
|
1978
1981
|
onClick: (l) => {
|
|
1979
|
-
l.preventDefault(), d((
|
|
1982
|
+
l.preventDefault(), d((f) => !f);
|
|
1980
1983
|
},
|
|
1981
1984
|
children: /* @__PURE__ */ a.jsx(
|
|
1982
1985
|
$t,
|
|
@@ -2000,12 +2003,12 @@ const xs = ({
|
|
|
2000
2003
|
{
|
|
2001
2004
|
className: M(
|
|
2002
2005
|
"group text-start",
|
|
2003
|
-
|
|
2006
|
+
ue({ isActive: !1, isTopLevel: t === 0 }),
|
|
2004
2007
|
o ? "cursor-pointer" : "cursor-default hover:bg-transparent"
|
|
2005
2008
|
),
|
|
2006
2009
|
asChild: !0,
|
|
2007
2010
|
disabled: !o,
|
|
2008
|
-
children: ((
|
|
2011
|
+
children: ((p = e.link) == null ? void 0 : p.type) === "doc" ? /* @__PURE__ */ a.jsx(Pe, { to: Ye(n == null ? void 0 : n.id, e.link.id), children: ({ isActive: l }) => /* @__PURE__ */ a.jsxs(
|
|
2009
2012
|
"div",
|
|
2010
2013
|
{
|
|
2011
2014
|
className: M(
|
|
@@ -2014,12 +2017,12 @@ const xs = ({
|
|
|
2014
2017
|
),
|
|
2015
2018
|
children: [
|
|
2016
2019
|
/* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
|
|
2017
|
-
|
|
2020
|
+
g
|
|
2018
2021
|
]
|
|
2019
2022
|
}
|
|
2020
2023
|
) }) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
|
|
2021
2024
|
/* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
|
|
2022
|
-
|
|
2025
|
+
g
|
|
2023
2026
|
] })
|
|
2024
2027
|
}
|
|
2025
2028
|
),
|
|
@@ -2034,7 +2037,7 @@ const xs = ({
|
|
|
2034
2037
|
]
|
|
2035
2038
|
}
|
|
2036
2039
|
);
|
|
2037
|
-
},
|
|
2040
|
+
}, ue = Lr(
|
|
2038
2041
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
2039
2042
|
{
|
|
2040
2043
|
variants: {
|
|
@@ -2058,16 +2061,16 @@ const xs = ({
|
|
|
2058
2061
|
const n = Lt(), { activeAnchor: r } = qe();
|
|
2059
2062
|
switch (e.type) {
|
|
2060
2063
|
case "category":
|
|
2061
|
-
return /* @__PURE__ */ a.jsx(
|
|
2064
|
+
return /* @__PURE__ */ a.jsx(ws, { category: e, level: t });
|
|
2062
2065
|
case "doc":
|
|
2063
2066
|
return /* @__PURE__ */ a.jsxs(
|
|
2064
|
-
|
|
2067
|
+
Pe,
|
|
2065
2068
|
{
|
|
2066
|
-
className: ({ isActive: o }) =>
|
|
2069
|
+
className: ({ isActive: o }) => ue({ isActive: o, isTopLevel: t === 0 }),
|
|
2067
2070
|
to: Ye(n == null ? void 0 : n.id, e.id),
|
|
2068
2071
|
children: [
|
|
2069
2072
|
e.label,
|
|
2070
|
-
e.badge && /* @__PURE__ */ a.jsx(
|
|
2073
|
+
e.badge && /* @__PURE__ */ a.jsx(yt, { ...e.badge })
|
|
2071
2074
|
]
|
|
2072
2075
|
}
|
|
2073
2076
|
);
|
|
@@ -2080,20 +2083,20 @@ const xs = ({
|
|
|
2080
2083
|
className: M(
|
|
2081
2084
|
"flex gap-2.5 justify-between",
|
|
2082
2085
|
t === 0 && "-mx-[--padding-nav-item]",
|
|
2083
|
-
|
|
2086
|
+
ue({
|
|
2084
2087
|
isActive: e.href.slice(1) === r
|
|
2085
2088
|
})
|
|
2086
2089
|
),
|
|
2087
2090
|
children: [
|
|
2088
2091
|
e.label,
|
|
2089
|
-
e.badge && /* @__PURE__ */ a.jsx(
|
|
2092
|
+
e.badge && /* @__PURE__ */ a.jsx(yt, { ...e.badge })
|
|
2090
2093
|
]
|
|
2091
2094
|
}
|
|
2092
|
-
) : /* @__PURE__ */ a.jsxs(
|
|
2095
|
+
) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
|
|
2093
2096
|
"a",
|
|
2094
2097
|
{
|
|
2095
2098
|
className: M(
|
|
2096
|
-
|
|
2099
|
+
ue({ isTopLevel: t === 0 }),
|
|
2097
2100
|
"block"
|
|
2098
2101
|
),
|
|
2099
2102
|
href: e.href,
|
|
@@ -2103,23 +2106,23 @@ const xs = ({
|
|
|
2103
2106
|
/* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
2104
2107
|
/* @__PURE__ */ a.jsxs("span", { className: "whitespace-nowrap", children: [
|
|
2105
2108
|
" ",
|
|
2106
|
-
/* @__PURE__ */ a.jsx(
|
|
2109
|
+
/* @__PURE__ */ a.jsx(po, { className: "inline ml-1", size: 12 })
|
|
2107
2110
|
] })
|
|
2108
2111
|
]
|
|
2109
2112
|
}
|
|
2110
|
-
);
|
|
2113
|
+
) : /* @__PURE__ */ a.jsx(Pe, { className: M(ue({}), "block"), to: e.href, children: e.label });
|
|
2111
2114
|
}
|
|
2112
|
-
},
|
|
2115
|
+
}, bs = (e, t = { block: "center" }) => {
|
|
2113
2116
|
if (!e) return;
|
|
2114
2117
|
const n = e.getBoundingClientRect();
|
|
2115
2118
|
n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
2116
|
-
},
|
|
2117
|
-
const e =
|
|
2118
|
-
|
|
2119
|
+
}, Ms = () => {
|
|
2120
|
+
const e = De(), { setActiveAnchor: t } = qe();
|
|
2121
|
+
se(() => {
|
|
2119
2122
|
if (!e.hash) return;
|
|
2120
2123
|
const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
|
|
2121
2124
|
const o = document.getElementById(n), s = document.querySelector(`[${Jn}="${n}"]`);
|
|
2122
|
-
return o ? (o.scrollIntoView(),
|
|
2125
|
+
return o ? (o.scrollIntoView(), bs(s), requestIdleCallback(() => t(n)), !0) : !1;
|
|
2123
2126
|
};
|
|
2124
2127
|
if (!r()) {
|
|
2125
2128
|
const o = new MutationObserver((s, i) => {
|
|
@@ -2128,12 +2131,12 @@ const xs = ({
|
|
|
2128
2131
|
return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
|
|
2129
2132
|
}
|
|
2130
2133
|
}, [e.hash, t]);
|
|
2131
|
-
},
|
|
2132
|
-
const e =
|
|
2133
|
-
|
|
2134
|
+
}, Cs = () => {
|
|
2135
|
+
const e = De(), t = He(e.pathname);
|
|
2136
|
+
se(() => {
|
|
2134
2137
|
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
2135
2138
|
}, [e.pathname]);
|
|
2136
|
-
},
|
|
2139
|
+
}, Ps = Hr(function({ children: t, className: n, pushMainContent: r }, o) {
|
|
2137
2140
|
return /* @__PURE__ */ a.jsx(
|
|
2138
2141
|
"nav",
|
|
2139
2142
|
{
|
|
@@ -2146,25 +2149,25 @@ const xs = ({
|
|
|
2146
2149
|
children: t
|
|
2147
2150
|
}
|
|
2148
2151
|
);
|
|
2149
|
-
}),
|
|
2150
|
-
const e =
|
|
2152
|
+
}), Rs = () => {
|
|
2153
|
+
const e = He(null), t = co();
|
|
2151
2154
|
return /* @__PURE__ */ a.jsxs(
|
|
2152
|
-
|
|
2155
|
+
Ps,
|
|
2153
2156
|
{
|
|
2154
2157
|
ref: e,
|
|
2155
2158
|
pushMainContent: t.data.items.length > 0,
|
|
2156
2159
|
children: [
|
|
2157
|
-
/* @__PURE__ */ a.jsx(
|
|
2160
|
+
/* @__PURE__ */ a.jsx(Se, { name: "zudoku-before-navigation" }),
|
|
2158
2161
|
t.data.items.map((n) => /* @__PURE__ */ a.jsx(Zn, { item: n }, n.label)),
|
|
2159
|
-
/* @__PURE__ */ a.jsx(
|
|
2162
|
+
/* @__PURE__ */ a.jsx(Se, { name: "zudoku-after-navigation" })
|
|
2160
2163
|
]
|
|
2161
2164
|
}
|
|
2162
2165
|
);
|
|
2163
|
-
},
|
|
2164
|
-
const t =
|
|
2165
|
-
|
|
2166
|
-
const o =
|
|
2167
|
-
return
|
|
2166
|
+
}, Ss = ({ children: e }) => {
|
|
2167
|
+
const t = De(), { setActiveAnchor: n } = qe(), { meta: r } = Ve();
|
|
2168
|
+
Ms(), Cs();
|
|
2169
|
+
const o = He(t.pathname);
|
|
2170
|
+
return se(() => {
|
|
2168
2171
|
t.pathname !== o.current && n(""), o.current = t.pathname;
|
|
2169
2172
|
}, [t.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2170
2173
|
/* @__PURE__ */ a.jsxs(Ue, { titleTemplate: r == null ? void 0 : r.title, children: [
|
|
@@ -2175,9 +2178,9 @@ const xs = ({
|
|
|
2175
2178
|
/* @__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
2179
|
zr,
|
|
2177
2180
|
{
|
|
2178
|
-
fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(
|
|
2181
|
+
fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(ho, {}) }),
|
|
2179
2182
|
children: [
|
|
2180
|
-
/* @__PURE__ */ a.jsx(
|
|
2183
|
+
/* @__PURE__ */ a.jsx(Rs, {}),
|
|
2181
2184
|
/* @__PURE__ */ a.jsxs(
|
|
2182
2185
|
"main",
|
|
2183
2186
|
{
|
|
@@ -2188,9 +2191,9 @@ const xs = ({
|
|
|
2188
2191
|
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
|
|
2189
2192
|
),
|
|
2190
2193
|
children: [
|
|
2191
|
-
/* @__PURE__ */ a.jsx(
|
|
2192
|
-
e ?? /* @__PURE__ */ a.jsx(
|
|
2193
|
-
/* @__PURE__ */ a.jsx(
|
|
2194
|
+
/* @__PURE__ */ a.jsx(Se, { name: "zudoku-before-content" }),
|
|
2195
|
+
e ?? /* @__PURE__ */ a.jsx(St, {}),
|
|
2196
|
+
/* @__PURE__ */ a.jsx(Se, { name: "zudoku-after-content" })
|
|
2194
2197
|
]
|
|
2195
2198
|
}
|
|
2196
2199
|
)
|
|
@@ -2198,18 +2201,18 @@ const xs = ({
|
|
|
2198
2201
|
}
|
|
2199
2202
|
) })
|
|
2200
2203
|
] });
|
|
2201
|
-
},
|
|
2204
|
+
}, Qs = ur, Us = Kr, Gs = Wn, qs = Ss, Hs = Re, zs = gr, Vs = vo, Ys = Oo, Xs = ko, Ws = $e, Js = Ue;
|
|
2202
2205
|
export {
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2206
|
+
Ys as Bootstrap,
|
|
2207
|
+
Xs as BootstrapStatic,
|
|
2208
|
+
Ws as Button,
|
|
2209
|
+
Us as Callout,
|
|
2210
|
+
Gs as DevPortal,
|
|
2211
|
+
Js as Head,
|
|
2212
|
+
qs as Layout,
|
|
2213
|
+
Hs as Link,
|
|
2214
|
+
zs as RouterError,
|
|
2215
|
+
Vs as ServerError,
|
|
2216
|
+
Qs as useMDXComponents
|
|
2214
2217
|
};
|
|
2215
2218
|
//# sourceMappingURL=zudoku.components.js.map
|