zudoku 0.3.0-dev.75 → 0.3.0-dev.77
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/lib/authentication/components/SignUp.js +1 -1
- package/dist/lib/authentication/components/SignUp.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +5 -0
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +8 -4
- package/dist/lib/authentication/providers/openid.js +19 -12
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/DevPortal.js +4 -3
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +4 -1
- package/dist/lib/core/DevPortalContext.js +2 -2
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +4 -2
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/lib/{AnchorLink-DwUyvkrL.js → AnchorLink-BZcpTwOs.js} +3 -3
- package/lib/{AnchorLink-DwUyvkrL.js.map → AnchorLink-BZcpTwOs.js.map} +1 -1
- package/lib/{AuthenticationPlugin-BuCQtecV.js → AuthenticationPlugin-CngUn5DP.js} +9 -9
- package/lib/AuthenticationPlugin-CngUn5DP.js.map +1 -0
- package/lib/{CategoryHeading-8saHYD9L.js → CategoryHeading-D0V23fMT.js} +3 -3
- package/lib/{CategoryHeading-8saHYD9L.js.map → CategoryHeading-D0V23fMT.js.map} +1 -1
- package/lib/{Combination-BMJg4xHo.js → Combination-CgxP9BB4.js} +4 -4
- package/lib/{Combination-BMJg4xHo.js.map → Combination-CgxP9BB4.js.map} +1 -1
- package/lib/{DevPortalProvider-DMrk4yw1.js → DevPortalProvider-BTFqdAEL.js} +2 -2
- package/lib/{DevPortalProvider-DMrk4yw1.js.map → DevPortalProvider-BTFqdAEL.js.map} +1 -1
- package/lib/{Input-98JuH9ox.js → Input-BcZoDid4.js} +5 -5
- package/lib/{Input-98JuH9ox.js.map → Input-BcZoDid4.js.map} +1 -1
- package/lib/{Markdown-CSdXDuYx.js → Markdown-IsabnbGN.js} +3 -3
- package/lib/{Markdown-CSdXDuYx.js.map → Markdown-IsabnbGN.js.map} +1 -1
- package/lib/{MdxPage-7CszsIct.js → MdxPage-B1B2Inj5.js} +7 -7
- package/lib/{MdxPage-7CszsIct.js.map → MdxPage-B1B2Inj5.js.map} +1 -1
- package/lib/{OperationList-DbFAs7j0.js → OperationList-B2nsuf1v.js} +10 -10
- package/lib/{OperationList-DbFAs7j0.js.map → OperationList-B2nsuf1v.js.map} +1 -1
- package/lib/{Route-CueiECQ0.js → Route-D0Ub80Oa.js} +2 -2
- package/lib/{Route-CueiECQ0.js.map → Route-D0Ub80Oa.js.map} +1 -1
- package/lib/{SlotletProvider-ibdqvOie.js → SlotletProvider-CJXWb2gw.js} +7 -7
- package/lib/{SlotletProvider-ibdqvOie.js.map → SlotletProvider-CJXWb2gw.js.map} +1 -1
- package/lib/{Spinner-D0EmkS4m.js → Spinner-BhtSoFka.js} +4 -4
- package/lib/{Spinner-D0EmkS4m.js.map → Spinner-BhtSoFka.js.map} +1 -1
- package/lib/{index-C5qcuxqm.js → index-BC2Ob2BR.js} +7 -7
- package/lib/{index-C5qcuxqm.js.map → index-BC2Ob2BR.js.map} +1 -1
- package/lib/{index-CjHZiWvQ.js → index-Dt-pU7Vu.js} +2 -2
- package/lib/{index-CjHZiWvQ.js.map → index-Dt-pU7Vu.js.map} +1 -1
- package/lib/{jsx-runtime-D0NHp7nI.js → jsx-runtime-CJBdjYYx.js} +3 -3
- package/lib/{jsx-runtime-D0NHp7nI.js.map → jsx-runtime-CJBdjYYx.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +14 -11
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +324 -345
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +449 -447
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +19 -18
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-page.js +2 -2
- package/lib/zudoku.plugin-markdown.js +3 -3
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/package.json +1 -1
- package/src/lib/authentication/components/SignUp.tsx +1 -1
- package/src/lib/authentication/providers/auth0.tsx +8 -0
- package/src/lib/authentication/providers/openid.tsx +25 -15
- package/src/lib/components/DevPortal.tsx +4 -3
- package/src/lib/core/DevPortalContext.ts +7 -2
- package/src/lib/core/plugins.ts +5 -2
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +2 -0
- package/dist/lib/authentication/Callback.d.ts +0 -3
- package/dist/lib/authentication/Callback.js +0 -33
- package/dist/lib/authentication/Callback.js.map +0 -1
- package/lib/AuthenticationPlugin-BuCQtecV.js.map +0 -1
- package/src/lib/authentication/Callback.tsx +0 -58
package/lib/zudoku.components.js
CHANGED
|
@@ -3,28 +3,28 @@ var dt = (t) => {
|
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
5
|
var cr = (t, e, n) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var D = (t, e, n) => cr(t, typeof e != "symbol" ? e + "" : e, n), ht = (t, e, n) => e.has(t) || dt("Cannot " + n);
|
|
7
|
+
var h = (t, e, n) => (ht(t, e, "read from private field"), n ? n.call(t) : e.get(t)), I = (t, e, n) => e.has(t) ? dt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), M = (t, e, n, r) => (ht(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
|
|
8
8
|
var Ce = (t, e, n, r) => ({
|
|
9
9
|
set _(a) {
|
|
10
|
-
|
|
10
|
+
M(t, e, a, n);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return
|
|
13
|
+
return h(t, e, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { H as _t, a as Ge, M as ur, A as lr, u as dr } from "./AnchorLink-
|
|
17
|
-
import { d as hr, R as pr, N as $e, L as Ee } from "./index-
|
|
18
|
-
import { E as Et, u as fr, S as mr, a as Se, R as gr } from "./SlotletProvider-
|
|
19
|
-
import { j as o, d as vr, u as J, a as xr, O as St } from "./jsx-runtime-
|
|
20
|
-
import { M as
|
|
21
|
-
import { c as me, a as R, C as
|
|
16
|
+
import { H as _t, a as Ge, M as ur, A as lr, u as dr } from "./AnchorLink-BZcpTwOs.js";
|
|
17
|
+
import { d as hr, R as pr, N as $e, L as Ee } from "./index-Dt-pU7Vu.js";
|
|
18
|
+
import { E as Et, u as fr, S as mr, a as Se, R as gr } from "./SlotletProvider-CJXWb2gw.js";
|
|
19
|
+
import { j as o, d as vr, u as J, a as xr, b as yr, O as St } from "./jsx-runtime-CJBdjYYx.js";
|
|
20
|
+
import { M as wr, c as br, a as jt, b as Nt, A as Mr, u as fe, h as Cr, d as y, e as Pr, F as Rr, D as _r, C as Er, P as ie, f as qe, g as Sr, i as Dt, R as jr, S as Nr, j as Dr, k as Ir, l as It, m as Ar, n as je, o as At, B as Be } from "./Combination-CgxP9BB4.js";
|
|
21
|
+
import { c as me, a as R, C as Or, b as Tr, u as kr, M as Fr, T as Lr, V as Kr, d as He, e as $r, f as Br } from "./Markdown-IsabnbGN.js";
|
|
22
22
|
import * as u from "react";
|
|
23
|
-
import
|
|
23
|
+
import Qr, { StrictMode as Ot, createContext as Tt, Component as Ur, createElement as pt, isValidElement as Gr, memo as kt, useMemo as Le, useState as le, useContext as qr, useRef as ge, useEffect as W, Fragment as Hr, forwardRef as zr, Suspense as Vr } from "react";
|
|
24
24
|
import { g as ze } from "./_commonjsHelpers-BVfed4GL.js";
|
|
25
|
-
import { r as
|
|
26
|
-
import { S as Qe, c as Ft, P as Ie, R as
|
|
27
|
-
import { S as Bt, h as Qt, Q as
|
|
25
|
+
import { r as Yr } from "./router-BiRCp01d.js";
|
|
26
|
+
import { S as Qe, c as Ft, P as Ie, R as Xr, I as Wr, a as Lt, T as Kt, C as $t, b as Jr } from "./Spinner-BhtSoFka.js";
|
|
27
|
+
import { S as Bt, h as Qt, Q as Zr, n as S, m as ft, a as mt, b as Q, e as ea, c as ta, d as na, f as ra, o as gt, r as vt, g as aa, i as xt, p as yt, s as oa, u as Ve, j as sa, D as ia, k as Ye, l as wt, q as Ut, t as ca, v as ua, w as la } from "./DevPortalProvider-BTFqdAEL.js";
|
|
28
28
|
/**
|
|
29
29
|
* @license lucide-react v0.378.0 - ISC
|
|
30
30
|
*
|
|
@@ -40,7 +40,7 @@ const Xe = me("ChevronRight", [
|
|
|
40
40
|
* This source code is licensed under the ISC license.
|
|
41
41
|
* See the LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
|
-
const
|
|
43
|
+
const da = me("Dot", [
|
|
44
44
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
|
45
45
|
]);
|
|
46
46
|
/**
|
|
@@ -49,7 +49,7 @@ const la = me("Dot", [
|
|
|
49
49
|
* This source code is licensed under the ISC license.
|
|
50
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
51
|
*/
|
|
52
|
-
const
|
|
52
|
+
const ha = me("ExternalLink", [
|
|
53
53
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
54
54
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
55
55
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
@@ -60,7 +60,7 @@ const da = me("ExternalLink", [
|
|
|
60
60
|
* This source code is licensed under the ISC license.
|
|
61
61
|
* See the LICENSE file in the root directory of this source tree.
|
|
62
62
|
*/
|
|
63
|
-
const
|
|
63
|
+
const pa = me("MoonStar", [
|
|
64
64
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
65
65
|
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
66
66
|
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
@@ -71,7 +71,7 @@ const ha = me("MoonStar", [
|
|
|
71
71
|
* This source code is licensed under the ISC license.
|
|
72
72
|
* See the LICENSE file in the root directory of this source tree.
|
|
73
73
|
*/
|
|
74
|
-
const
|
|
74
|
+
const fa = me("Sun", [
|
|
75
75
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
76
76
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
77
77
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -82,14 +82,14 @@ const pa = me("Sun", [
|
|
|
82
82
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
83
83
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
84
84
|
]);
|
|
85
|
-
function
|
|
85
|
+
function ma({ error: t }) {
|
|
86
86
|
return /* @__PURE__ */ o.jsx(Et, { error: t });
|
|
87
87
|
}
|
|
88
88
|
var ve = {};
|
|
89
|
-
const
|
|
89
|
+
const ga = /* @__PURE__ */ ze(Yr), va = /* @__PURE__ */ ze(vr), xa = /* @__PURE__ */ ze(hr);
|
|
90
90
|
Object.defineProperty(ve, "__esModule", { value: !0 });
|
|
91
|
-
var
|
|
92
|
-
function
|
|
91
|
+
var ya = Qr, L = ga, We = va, U = xa;
|
|
92
|
+
function wa(t) {
|
|
93
93
|
if (t && t.__esModule) return t;
|
|
94
94
|
var e = /* @__PURE__ */ Object.create(null);
|
|
95
95
|
return t && Object.keys(t).forEach(function(n) {
|
|
@@ -104,22 +104,22 @@ function ya(t) {
|
|
|
104
104
|
}
|
|
105
105
|
}), e.default = t, Object.freeze(e);
|
|
106
106
|
}
|
|
107
|
-
var
|
|
108
|
-
function
|
|
107
|
+
var k = /* @__PURE__ */ wa(ya);
|
|
108
|
+
function ba({
|
|
109
109
|
basename: t,
|
|
110
110
|
children: e,
|
|
111
111
|
location: n = "/",
|
|
112
112
|
future: r
|
|
113
113
|
}) {
|
|
114
114
|
typeof n == "string" && (n = U.parsePath(n));
|
|
115
|
-
let a =
|
|
115
|
+
let a = L.Action.Pop, s = {
|
|
116
116
|
pathname: n.pathname || "/",
|
|
117
117
|
search: n.search || "",
|
|
118
118
|
hash: n.hash || "",
|
|
119
119
|
state: n.state != null ? n.state : null,
|
|
120
120
|
key: n.key || "default"
|
|
121
121
|
}, i = Gt();
|
|
122
|
-
return /* @__PURE__ */
|
|
122
|
+
return /* @__PURE__ */ k.createElement(U.Router, {
|
|
123
123
|
basename: t,
|
|
124
124
|
children: e,
|
|
125
125
|
location: s,
|
|
@@ -129,13 +129,13 @@ function wa({
|
|
|
129
129
|
static: !0
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Ma({
|
|
133
133
|
context: t,
|
|
134
134
|
router: e,
|
|
135
135
|
hydrate: n = !0,
|
|
136
136
|
nonce: r
|
|
137
137
|
}) {
|
|
138
|
-
e && t || (process.env.NODE_ENV !== "production" ?
|
|
138
|
+
e && t || (process.env.NODE_ENV !== "production" ? L.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : L.UNSAFE_invariant(!1));
|
|
139
139
|
let a = {
|
|
140
140
|
router: e,
|
|
141
141
|
navigator: Gt(),
|
|
@@ -147,24 +147,24 @@ function ba({
|
|
|
147
147
|
let l = {
|
|
148
148
|
loaderData: t.loaderData,
|
|
149
149
|
actionData: t.actionData,
|
|
150
|
-
errors:
|
|
150
|
+
errors: Pa(t.errors)
|
|
151
151
|
};
|
|
152
|
-
i = `window.__staticRouterHydrationData = JSON.parse(${
|
|
152
|
+
i = `window.__staticRouterHydrationData = JSON.parse(${Na(JSON.stringify(JSON.stringify(l)))});`;
|
|
153
153
|
}
|
|
154
154
|
let {
|
|
155
155
|
state: c
|
|
156
156
|
} = a.router;
|
|
157
|
-
return /* @__PURE__ */
|
|
157
|
+
return /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(U.UNSAFE_DataRouterContext.Provider, {
|
|
158
158
|
value: a
|
|
159
|
-
}, /* @__PURE__ */
|
|
159
|
+
}, /* @__PURE__ */ k.createElement(U.UNSAFE_DataRouterStateContext.Provider, {
|
|
160
160
|
value: c
|
|
161
|
-
}, /* @__PURE__ */
|
|
161
|
+
}, /* @__PURE__ */ k.createElement(U.UNSAFE_FetchersContext.Provider, {
|
|
162
162
|
value: s
|
|
163
|
-
}, /* @__PURE__ */
|
|
163
|
+
}, /* @__PURE__ */ k.createElement(U.UNSAFE_ViewTransitionContext.Provider, {
|
|
164
164
|
value: {
|
|
165
165
|
isTransitioning: !1
|
|
166
166
|
}
|
|
167
|
-
}, /* @__PURE__ */
|
|
167
|
+
}, /* @__PURE__ */ k.createElement(U.Router, {
|
|
168
168
|
basename: a.basename,
|
|
169
169
|
location: c.location,
|
|
170
170
|
navigationType: c.historyAction,
|
|
@@ -173,11 +173,11 @@ function ba({
|
|
|
173
173
|
future: {
|
|
174
174
|
v7_relativeSplatPath: e.future.v7_relativeSplatPath
|
|
175
175
|
}
|
|
176
|
-
}, /* @__PURE__ */
|
|
176
|
+
}, /* @__PURE__ */ k.createElement(Ca, {
|
|
177
177
|
routes: e.routes,
|
|
178
178
|
future: e.future,
|
|
179
179
|
state: c
|
|
180
|
-
})))))), i ? /* @__PURE__ */
|
|
180
|
+
})))))), i ? /* @__PURE__ */ k.createElement("script", {
|
|
181
181
|
suppressHydrationWarning: !0,
|
|
182
182
|
nonce: r,
|
|
183
183
|
dangerouslySetInnerHTML: {
|
|
@@ -185,18 +185,18 @@ function ba({
|
|
|
185
185
|
}
|
|
186
186
|
}) : null);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Ca({
|
|
189
189
|
routes: t,
|
|
190
190
|
future: e,
|
|
191
191
|
state: n
|
|
192
192
|
}) {
|
|
193
193
|
return We.UNSAFE_useRoutesImpl(t, void 0, n, e);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function Pa(t) {
|
|
196
196
|
if (!t) return null;
|
|
197
197
|
let e = Object.entries(t), n = {};
|
|
198
198
|
for (let [r, a] of e)
|
|
199
|
-
|
|
199
|
+
L.isRouteErrorResponse(a) ? n[r] = {
|
|
200
200
|
...a,
|
|
201
201
|
__type: "RouteErrorResponse"
|
|
202
202
|
} : a instanceof Error ? n[r] = {
|
|
@@ -231,14 +231,14 @@ function Gt() {
|
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
|
-
function
|
|
235
|
-
return
|
|
234
|
+
function Ra(t, e) {
|
|
235
|
+
return L.createStaticHandler(t, {
|
|
236
236
|
...e,
|
|
237
237
|
mapRouteProperties: We.UNSAFE_mapRouteProperties
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
let r = {}, a =
|
|
240
|
+
function _a(t, e, n = {}) {
|
|
241
|
+
let r = {}, a = L.UNSAFE_convertRoutesToDataRoutes(t, We.UNSAFE_mapRouteProperties, void 0, r), s = e.matches.map((c) => {
|
|
242
242
|
let l = r[c.route.id] || c.route;
|
|
243
243
|
return {
|
|
244
244
|
...c,
|
|
@@ -262,14 +262,14 @@ function Ra(t, e, n = {}) {
|
|
|
262
262
|
},
|
|
263
263
|
get state() {
|
|
264
264
|
return {
|
|
265
|
-
historyAction:
|
|
265
|
+
historyAction: L.Action.Pop,
|
|
266
266
|
location: e.location,
|
|
267
267
|
matches: s,
|
|
268
268
|
loaderData: e.loaderData,
|
|
269
269
|
actionData: e.actionData,
|
|
270
270
|
errors: e.errors,
|
|
271
271
|
initialized: !0,
|
|
272
|
-
navigation:
|
|
272
|
+
navigation: L.IDLE_NAVIGATION,
|
|
273
273
|
restoreScrollPosition: null,
|
|
274
274
|
preventScrollReset: !1,
|
|
275
275
|
revalidation: "idle",
|
|
@@ -303,7 +303,7 @@ function Ra(t, e, n = {}) {
|
|
|
303
303
|
createHref: qt,
|
|
304
304
|
encodeLocation: Ht,
|
|
305
305
|
getFetcher() {
|
|
306
|
-
return
|
|
306
|
+
return L.IDLE_FETCHER;
|
|
307
307
|
},
|
|
308
308
|
deleteFetcher() {
|
|
309
309
|
throw i("deleteFetcher");
|
|
@@ -312,7 +312,7 @@ function Ra(t, e, n = {}) {
|
|
|
312
312
|
throw i("dispose");
|
|
313
313
|
},
|
|
314
314
|
getBlocker() {
|
|
315
|
-
return
|
|
315
|
+
return L.IDLE_BLOCKER;
|
|
316
316
|
},
|
|
317
317
|
deleteBlocker() {
|
|
318
318
|
throw i("deleteBlocker");
|
|
@@ -333,45 +333,45 @@ function qt(t) {
|
|
|
333
333
|
function Ht(t) {
|
|
334
334
|
let e = typeof t == "string" ? t : U.createPath(t);
|
|
335
335
|
e = e.replace(/ $/, "%20");
|
|
336
|
-
let n =
|
|
336
|
+
let n = Ea.test(e) ? new URL(e) : new URL(e, "http://localhost");
|
|
337
337
|
return {
|
|
338
338
|
pathname: n.pathname,
|
|
339
339
|
search: n.search,
|
|
340
340
|
hash: n.hash
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
|
-
const
|
|
343
|
+
const Ea = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Sa = {
|
|
344
344
|
"&": "\\u0026",
|
|
345
345
|
">": "\\u003e",
|
|
346
346
|
"<": "\\u003c",
|
|
347
347
|
"\u2028": "\\u2028",
|
|
348
348
|
"\u2029": "\\u2029"
|
|
349
|
-
},
|
|
350
|
-
function
|
|
351
|
-
return t.replace(
|
|
349
|
+
}, ja = /[&><\u2028\u2029]/g;
|
|
350
|
+
function Na(t) {
|
|
351
|
+
return t.replace(ja, (e) => Sa[e]);
|
|
352
352
|
}
|
|
353
|
-
ve.StaticRouter =
|
|
354
|
-
var
|
|
355
|
-
ve.createStaticHandler =
|
|
356
|
-
ve.createStaticRouter =
|
|
357
|
-
const
|
|
353
|
+
ve.StaticRouter = ba;
|
|
354
|
+
var Da = ve.StaticRouterProvider = Ma;
|
|
355
|
+
ve.createStaticHandler = Ra;
|
|
356
|
+
ve.createStaticRouter = _a;
|
|
357
|
+
const Ia = ({
|
|
358
358
|
router: t,
|
|
359
359
|
hydrate: e = !1
|
|
360
|
-
}) => /* @__PURE__ */ o.jsx(Ot, { children: /* @__PURE__ */ o.jsx(_t, { children: /* @__PURE__ */ o.jsx(Qe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ o.jsx(pr, { router: t }) }) }) }),
|
|
360
|
+
}) => /* @__PURE__ */ o.jsx(Ot, { children: /* @__PURE__ */ o.jsx(_t, { children: /* @__PURE__ */ o.jsx(Qe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ o.jsx(pr, { router: t }) }) }) }), Aa = ({
|
|
361
361
|
router: t,
|
|
362
362
|
context: e,
|
|
363
363
|
helmetContext: n
|
|
364
|
-
}) => /* @__PURE__ */ o.jsx(Ot, { children: /* @__PURE__ */ o.jsx(_t, { context: n, children: /* @__PURE__ */ o.jsx(
|
|
365
|
-
var
|
|
364
|
+
}) => /* @__PURE__ */ o.jsx(Ot, { children: /* @__PURE__ */ o.jsx(_t, { context: n, children: /* @__PURE__ */ o.jsx(Da, { router: t, context: e }) }) });
|
|
365
|
+
var F, Ct, Oa = (Ct = class extends Bt {
|
|
366
366
|
constructor(e = {}) {
|
|
367
367
|
super();
|
|
368
|
-
|
|
369
|
-
this.config = e,
|
|
368
|
+
I(this, F);
|
|
369
|
+
this.config = e, M(this, F, /* @__PURE__ */ new Map());
|
|
370
370
|
}
|
|
371
371
|
build(e, n, r) {
|
|
372
372
|
const a = n.queryKey, s = n.queryHash ?? Qt(a, n);
|
|
373
373
|
let i = this.get(s);
|
|
374
|
-
return i || (i = new
|
|
374
|
+
return i || (i = new Zr({
|
|
375
375
|
cache: this,
|
|
376
376
|
queryKey: a,
|
|
377
377
|
queryHash: s,
|
|
@@ -381,14 +381,14 @@ var L, Ct, Aa = (Ct = class extends Bt {
|
|
|
381
381
|
}), this.add(i)), i;
|
|
382
382
|
}
|
|
383
383
|
add(e) {
|
|
384
|
-
|
|
384
|
+
h(this, F).has(e.queryHash) || (h(this, F).set(e.queryHash, e), this.notify({
|
|
385
385
|
type: "added",
|
|
386
386
|
query: e
|
|
387
387
|
}));
|
|
388
388
|
}
|
|
389
389
|
remove(e) {
|
|
390
|
-
const n =
|
|
391
|
-
n && (e.destroy(), n === e &&
|
|
390
|
+
const n = h(this, F).get(e.queryHash);
|
|
391
|
+
n && (e.destroy(), n === e && h(this, F).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
392
392
|
}
|
|
393
393
|
clear() {
|
|
394
394
|
S.batch(() => {
|
|
@@ -398,10 +398,10 @@ var L, Ct, Aa = (Ct = class extends Bt {
|
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
get(e) {
|
|
401
|
-
return
|
|
401
|
+
return h(this, F).get(e);
|
|
402
402
|
}
|
|
403
403
|
getAll() {
|
|
404
|
-
return [...
|
|
404
|
+
return [...h(this, F).values()];
|
|
405
405
|
}
|
|
406
406
|
find(e) {
|
|
407
407
|
const n = { exact: !0, ...e };
|
|
@@ -434,15 +434,15 @@ var L, Ct, Aa = (Ct = class extends Bt {
|
|
|
434
434
|
});
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
|
-
},
|
|
437
|
+
}, F = new WeakMap(), Ct), E, pe, Pt, Ta = (Pt = class extends Bt {
|
|
438
438
|
constructor(e = {}) {
|
|
439
439
|
super();
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
this.config = e,
|
|
440
|
+
I(this, E);
|
|
441
|
+
I(this, pe);
|
|
442
|
+
this.config = e, M(this, E, /* @__PURE__ */ new Map()), M(this, pe, Date.now());
|
|
443
443
|
}
|
|
444
444
|
build(e, n, r) {
|
|
445
|
-
const a = new
|
|
445
|
+
const a = new wr({
|
|
446
446
|
mutationCache: this,
|
|
447
447
|
mutationId: ++Ce(this, pe)._,
|
|
448
448
|
options: e.defaultMutationOptions(n),
|
|
@@ -451,26 +451,26 @@ var L, Ct, Aa = (Ct = class extends Bt {
|
|
|
451
451
|
return this.add(a), a;
|
|
452
452
|
}
|
|
453
453
|
add(e) {
|
|
454
|
-
const n = Pe(e), r =
|
|
455
|
-
r.push(e),
|
|
454
|
+
const n = Pe(e), r = h(this, E).get(n) ?? [];
|
|
455
|
+
r.push(e), h(this, E).set(n, r), this.notify({ type: "added", mutation: e });
|
|
456
456
|
}
|
|
457
457
|
remove(e) {
|
|
458
458
|
var r;
|
|
459
459
|
const n = Pe(e);
|
|
460
|
-
if (
|
|
461
|
-
const a = (r =
|
|
462
|
-
a && (a.length === 0 ?
|
|
460
|
+
if (h(this, E).has(n)) {
|
|
461
|
+
const a = (r = h(this, E).get(n)) == null ? void 0 : r.filter((s) => s !== e);
|
|
462
|
+
a && (a.length === 0 ? h(this, E).delete(n) : h(this, E).set(n, a));
|
|
463
463
|
}
|
|
464
464
|
this.notify({ type: "removed", mutation: e });
|
|
465
465
|
}
|
|
466
466
|
canRun(e) {
|
|
467
467
|
var r;
|
|
468
|
-
const n = (r =
|
|
468
|
+
const n = (r = h(this, E).get(Pe(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
|
|
469
469
|
return !n || n === e;
|
|
470
470
|
}
|
|
471
471
|
runNext(e) {
|
|
472
472
|
var r;
|
|
473
|
-
const n = (r =
|
|
473
|
+
const n = (r = h(this, E).get(Pe(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
|
|
474
474
|
return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
|
|
475
475
|
}
|
|
476
476
|
clear() {
|
|
@@ -481,7 +481,7 @@ var L, Ct, Aa = (Ct = class extends Bt {
|
|
|
481
481
|
});
|
|
482
482
|
}
|
|
483
483
|
getAll() {
|
|
484
|
-
return [...
|
|
484
|
+
return [...h(this, E).values()].flat();
|
|
485
485
|
}
|
|
486
486
|
find(e) {
|
|
487
487
|
const n = { exact: !0, ...e };
|
|
@@ -512,56 +512,56 @@ function Pe(t) {
|
|
|
512
512
|
var e;
|
|
513
513
|
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function ka(t) {
|
|
516
516
|
return {
|
|
517
517
|
onFetch: (e, n) => {
|
|
518
518
|
const r = async () => {
|
|
519
|
-
var x, _,
|
|
520
|
-
const a = e.options, s = (
|
|
521
|
-
let
|
|
522
|
-
const f = (
|
|
523
|
-
Object.defineProperty(
|
|
519
|
+
var x, _, j, P, K;
|
|
520
|
+
const a = e.options, s = (j = (_ = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : _.fetchMore) == null ? void 0 : j.direction, i = ((P = e.state.data) == null ? void 0 : P.pages) || [], c = ((K = e.state.data) == null ? void 0 : K.pageParams) || [], l = { pages: [], pageParams: [] };
|
|
521
|
+
let p = !1;
|
|
522
|
+
const f = (b) => {
|
|
523
|
+
Object.defineProperty(b, "signal", {
|
|
524
524
|
enumerable: !0,
|
|
525
|
-
get: () => (e.signal.aborted ?
|
|
526
|
-
|
|
525
|
+
get: () => (e.signal.aborted ? p = !0 : e.signal.addEventListener("abort", () => {
|
|
526
|
+
p = !0;
|
|
527
527
|
}), e.signal)
|
|
528
528
|
});
|
|
529
|
-
}, d =
|
|
530
|
-
if (
|
|
529
|
+
}, d = ea(e.options, e.fetchOptions), g = async (b, O, $) => {
|
|
530
|
+
if (p)
|
|
531
531
|
return Promise.reject();
|
|
532
|
-
if (
|
|
533
|
-
return Promise.resolve(
|
|
532
|
+
if (O == null && b.pages.length)
|
|
533
|
+
return Promise.resolve(b);
|
|
534
534
|
const Y = {
|
|
535
535
|
queryKey: e.queryKey,
|
|
536
|
-
pageParam:
|
|
536
|
+
pageParam: O,
|
|
537
537
|
direction: $ ? "backward" : "forward",
|
|
538
538
|
meta: e.options.meta
|
|
539
539
|
};
|
|
540
540
|
f(Y);
|
|
541
541
|
const ee = await d(
|
|
542
542
|
Y
|
|
543
|
-
), { maxPages: be } = e.options, X = $ ?
|
|
543
|
+
), { maxPages: be } = e.options, X = $ ? ta : na;
|
|
544
544
|
return {
|
|
545
|
-
pages: X(
|
|
546
|
-
pageParams: X(
|
|
545
|
+
pages: X(b.pages, ee, be),
|
|
546
|
+
pageParams: X(b.pageParams, O, be)
|
|
547
547
|
};
|
|
548
548
|
};
|
|
549
549
|
let v;
|
|
550
550
|
if (s && i.length) {
|
|
551
|
-
const
|
|
551
|
+
const b = s === "backward", O = b ? Fa : bt, $ = {
|
|
552
552
|
pages: i,
|
|
553
553
|
pageParams: c
|
|
554
|
-
}, Y =
|
|
555
|
-
v = await
|
|
554
|
+
}, Y = O(a, $);
|
|
555
|
+
v = await g($, Y, b);
|
|
556
556
|
} else {
|
|
557
|
-
v = await
|
|
557
|
+
v = await g(
|
|
558
558
|
l,
|
|
559
559
|
c[0] ?? a.initialPageParam
|
|
560
560
|
);
|
|
561
|
-
const
|
|
562
|
-
for (let
|
|
561
|
+
const b = t ?? i.length;
|
|
562
|
+
for (let O = 1; O < b; O++) {
|
|
563
563
|
const $ = bt(a, v);
|
|
564
|
-
v = await
|
|
564
|
+
v = await g(v, $);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
return v;
|
|
@@ -591,7 +591,7 @@ function bt(t, { pages: e, pageParams: n }) {
|
|
|
591
591
|
n
|
|
592
592
|
);
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Fa(t, { pages: e, pageParams: n }) {
|
|
595
595
|
var r;
|
|
596
596
|
return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
|
|
597
597
|
t,
|
|
@@ -601,65 +601,65 @@ function ka(t, { pages: e, pageParams: n }) {
|
|
|
601
601
|
n
|
|
602
602
|
);
|
|
603
603
|
}
|
|
604
|
-
var w, q, H, re, ae, z, oe, se, Rt,
|
|
604
|
+
var w, q, H, re, ae, z, oe, se, Rt, La = (Rt = class {
|
|
605
605
|
constructor(t = {}) {
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
606
|
+
I(this, w);
|
|
607
|
+
I(this, q);
|
|
608
|
+
I(this, H);
|
|
609
|
+
I(this, re);
|
|
610
|
+
I(this, ae);
|
|
611
|
+
I(this, z);
|
|
612
|
+
I(this, oe);
|
|
613
|
+
I(this, se);
|
|
614
|
+
M(this, w, t.queryCache || new Oa()), M(this, q, t.mutationCache || new Ta()), M(this, H, t.defaultOptions || {}), M(this, re, /* @__PURE__ */ new Map()), M(this, ae, /* @__PURE__ */ new Map()), M(this, z, 0);
|
|
615
615
|
}
|
|
616
616
|
mount() {
|
|
617
|
-
Ce(this, z)._++,
|
|
618
|
-
t && (await this.resumePausedMutations(),
|
|
619
|
-
})),
|
|
620
|
-
t && (await this.resumePausedMutations(),
|
|
617
|
+
Ce(this, z)._++, h(this, z) === 1 && (M(this, oe, ra.subscribe(async (t) => {
|
|
618
|
+
t && (await this.resumePausedMutations(), h(this, w).onFocus());
|
|
619
|
+
})), M(this, se, gt.subscribe(async (t) => {
|
|
620
|
+
t && (await this.resumePausedMutations(), h(this, w).onOnline());
|
|
621
621
|
})));
|
|
622
622
|
}
|
|
623
623
|
unmount() {
|
|
624
624
|
var t, e;
|
|
625
|
-
Ce(this, z)._--,
|
|
625
|
+
Ce(this, z)._--, h(this, z) === 0 && ((t = h(this, oe)) == null || t.call(this), M(this, oe, void 0), (e = h(this, se)) == null || e.call(this), M(this, se, void 0));
|
|
626
626
|
}
|
|
627
627
|
isFetching(t) {
|
|
628
|
-
return
|
|
628
|
+
return h(this, w).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
629
629
|
}
|
|
630
630
|
isMutating(t) {
|
|
631
|
-
return
|
|
631
|
+
return h(this, q).findAll({ ...t, status: "pending" }).length;
|
|
632
632
|
}
|
|
633
633
|
getQueryData(t) {
|
|
634
634
|
var n;
|
|
635
635
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
636
|
-
return (n =
|
|
636
|
+
return (n = h(this, w).get(e.queryHash)) == null ? void 0 : n.state.data;
|
|
637
637
|
}
|
|
638
638
|
ensureQueryData(t) {
|
|
639
639
|
const e = this.getQueryData(t.queryKey);
|
|
640
640
|
if (e === void 0)
|
|
641
641
|
return this.fetchQuery(t);
|
|
642
642
|
{
|
|
643
|
-
const n = this.defaultQueryOptions(t), r =
|
|
643
|
+
const n = this.defaultQueryOptions(t), r = h(this, w).build(this, n);
|
|
644
644
|
return t.revalidateIfStale && r.isStaleByTime(vt(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
getQueriesData(t) {
|
|
648
|
-
return
|
|
648
|
+
return h(this, w).findAll(t).map(({ queryKey: e, state: n }) => {
|
|
649
649
|
const r = n.data;
|
|
650
650
|
return [e, r];
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
653
|
setQueryData(t, e, n) {
|
|
654
|
-
const r = this.defaultQueryOptions({ queryKey: t }), a =
|
|
654
|
+
const r = this.defaultQueryOptions({ queryKey: t }), a = h(this, w).get(
|
|
655
655
|
r.queryHash
|
|
656
|
-
), s = a == null ? void 0 : a.state.data, i =
|
|
656
|
+
), s = a == null ? void 0 : a.state.data, i = aa(e, s);
|
|
657
657
|
if (i !== void 0)
|
|
658
|
-
return
|
|
658
|
+
return h(this, w).build(this, r).setData(i, { ...n, manual: !0 });
|
|
659
659
|
}
|
|
660
660
|
setQueriesData(t, e, n) {
|
|
661
661
|
return S.batch(
|
|
662
|
-
() =>
|
|
662
|
+
() => h(this, w).findAll(t).map(({ queryKey: r }) => [
|
|
663
663
|
r,
|
|
664
664
|
this.setQueryData(r, e, n)
|
|
665
665
|
])
|
|
@@ -668,10 +668,10 @@ var w, q, H, re, ae, z, oe, se, Rt, Fa = (Rt = class {
|
|
|
668
668
|
getQueryState(t) {
|
|
669
669
|
var n;
|
|
670
670
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
671
|
-
return (n =
|
|
671
|
+
return (n = h(this, w).get(e.queryHash)) == null ? void 0 : n.state;
|
|
672
672
|
}
|
|
673
673
|
removeQueries(t) {
|
|
674
|
-
const e =
|
|
674
|
+
const e = h(this, w);
|
|
675
675
|
S.batch(() => {
|
|
676
676
|
e.findAll(t).forEach((n) => {
|
|
677
677
|
e.remove(n);
|
|
@@ -679,7 +679,7 @@ var w, q, H, re, ae, z, oe, se, Rt, Fa = (Rt = class {
|
|
|
679
679
|
});
|
|
680
680
|
}
|
|
681
681
|
resetQueries(t, e) {
|
|
682
|
-
const n =
|
|
682
|
+
const n = h(this, w), r = {
|
|
683
683
|
type: "active",
|
|
684
684
|
...t
|
|
685
685
|
};
|
|
@@ -689,13 +689,13 @@ var w, q, H, re, ae, z, oe, se, Rt, Fa = (Rt = class {
|
|
|
689
689
|
}
|
|
690
690
|
cancelQueries(t = {}, e = {}) {
|
|
691
691
|
const n = { revert: !0, ...e }, r = S.batch(
|
|
692
|
-
() =>
|
|
692
|
+
() => h(this, w).findAll(t).map((a) => a.cancel(n))
|
|
693
693
|
);
|
|
694
694
|
return Promise.all(r).then(Q).catch(Q);
|
|
695
695
|
}
|
|
696
696
|
invalidateQueries(t = {}, e = {}) {
|
|
697
697
|
return S.batch(() => {
|
|
698
|
-
if (
|
|
698
|
+
if (h(this, w).findAll(t).forEach((r) => {
|
|
699
699
|
r.invalidate();
|
|
700
700
|
}), t.refetchType === "none")
|
|
701
701
|
return Promise.resolve();
|
|
@@ -711,7 +711,7 @@ var w, q, H, re, ae, z, oe, se, Rt, Fa = (Rt = class {
|
|
|
711
711
|
...e,
|
|
712
712
|
cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
|
|
713
713
|
}, r = S.batch(
|
|
714
|
-
() =>
|
|
714
|
+
() => h(this, w).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
|
|
715
715
|
let s = a.fetch(void 0, n);
|
|
716
716
|
return n.throwOnError || (s = s.catch(Q)), a.state.fetchStatus === "paused" ? Promise.resolve() : s;
|
|
717
717
|
})
|
|
@@ -721,7 +721,7 @@ var w, q, H, re, ae, z, oe, se, Rt, Fa = (Rt = class {
|
|
|
721
721
|
fetchQuery(t) {
|
|
722
722
|
const e = this.defaultQueryOptions(t);
|
|
723
723
|
e.retry === void 0 && (e.retry = !1);
|
|
724
|
-
const n =
|
|
724
|
+
const n = h(this, w).build(this, e);
|
|
725
725
|
return n.isStaleByTime(
|
|
726
726
|
vt(e.staleTime, n)
|
|
727
727
|
) ? n.fetch(e) : Promise.resolve(n.state.data);
|
|
@@ -730,47 +730,47 @@ var w, q, H, re, ae, z, oe, se, Rt, Fa = (Rt = class {
|
|
|
730
730
|
return this.fetchQuery(t).then(Q).catch(Q);
|
|
731
731
|
}
|
|
732
732
|
fetchInfiniteQuery(t) {
|
|
733
|
-
return t.behavior =
|
|
733
|
+
return t.behavior = ka(t.pages), this.fetchQuery(t);
|
|
734
734
|
}
|
|
735
735
|
prefetchInfiniteQuery(t) {
|
|
736
736
|
return this.fetchInfiniteQuery(t).then(Q).catch(Q);
|
|
737
737
|
}
|
|
738
738
|
resumePausedMutations() {
|
|
739
|
-
return gt.isOnline() ?
|
|
739
|
+
return gt.isOnline() ? h(this, q).resumePausedMutations() : Promise.resolve();
|
|
740
740
|
}
|
|
741
741
|
getQueryCache() {
|
|
742
|
-
return
|
|
742
|
+
return h(this, w);
|
|
743
743
|
}
|
|
744
744
|
getMutationCache() {
|
|
745
|
-
return
|
|
745
|
+
return h(this, q);
|
|
746
746
|
}
|
|
747
747
|
getDefaultOptions() {
|
|
748
|
-
return
|
|
748
|
+
return h(this, H);
|
|
749
749
|
}
|
|
750
750
|
setDefaultOptions(t) {
|
|
751
|
-
|
|
751
|
+
M(this, H, t);
|
|
752
752
|
}
|
|
753
753
|
setQueryDefaults(t, e) {
|
|
754
|
-
|
|
754
|
+
h(this, re).set(xt(t), {
|
|
755
755
|
queryKey: t,
|
|
756
756
|
defaultOptions: e
|
|
757
757
|
});
|
|
758
758
|
}
|
|
759
759
|
getQueryDefaults(t) {
|
|
760
|
-
const e = [...
|
|
760
|
+
const e = [...h(this, re).values()];
|
|
761
761
|
let n = {};
|
|
762
762
|
return e.forEach((r) => {
|
|
763
763
|
yt(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
|
|
764
764
|
}), n;
|
|
765
765
|
}
|
|
766
766
|
setMutationDefaults(t, e) {
|
|
767
|
-
|
|
767
|
+
h(this, ae).set(xt(t), {
|
|
768
768
|
mutationKey: t,
|
|
769
769
|
defaultOptions: e
|
|
770
770
|
});
|
|
771
771
|
}
|
|
772
772
|
getMutationDefaults(t) {
|
|
773
|
-
const e = [...
|
|
773
|
+
const e = [...h(this, ae).values()];
|
|
774
774
|
let n = {};
|
|
775
775
|
return e.forEach((r) => {
|
|
776
776
|
yt(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
|
|
@@ -780,7 +780,7 @@ var w, q, H, re, ae, z, oe, se, Rt, Fa = (Rt = class {
|
|
|
780
780
|
if (t._defaulted)
|
|
781
781
|
return t;
|
|
782
782
|
const e = {
|
|
783
|
-
...
|
|
783
|
+
...h(this, H).queries,
|
|
784
784
|
...this.getQueryDefaults(t.queryKey),
|
|
785
785
|
...t,
|
|
786
786
|
_defaulted: !0
|
|
@@ -788,25 +788,25 @@ var w, q, H, re, ae, z, oe, se, Rt, Fa = (Rt = class {
|
|
|
788
788
|
return e.queryHash || (e.queryHash = Qt(
|
|
789
789
|
e.queryKey,
|
|
790
790
|
e
|
|
791
|
-
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn ===
|
|
791
|
+
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === oa && (e.enabled = !1), e;
|
|
792
792
|
}
|
|
793
793
|
defaultMutationOptions(t) {
|
|
794
794
|
return t != null && t._defaulted ? t : {
|
|
795
|
-
...
|
|
795
|
+
...h(this, H).mutations,
|
|
796
796
|
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
797
797
|
...t,
|
|
798
798
|
_defaulted: !0
|
|
799
799
|
};
|
|
800
800
|
}
|
|
801
801
|
clear() {
|
|
802
|
-
|
|
802
|
+
h(this, w).clear(), h(this, q).clear();
|
|
803
803
|
}
|
|
804
804
|
}, w = new WeakMap(), q = new WeakMap(), H = new WeakMap(), re = new WeakMap(), ae = new WeakMap(), z = new WeakMap(), oe = new WeakMap(), se = new WeakMap(), Rt);
|
|
805
|
-
const
|
|
805
|
+
const Ka = Tt(null), Ke = {
|
|
806
806
|
didCatch: !1,
|
|
807
807
|
error: null
|
|
808
808
|
};
|
|
809
|
-
class
|
|
809
|
+
class $a extends Ur {
|
|
810
810
|
constructor(e) {
|
|
811
811
|
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Ke;
|
|
812
812
|
}
|
|
@@ -839,7 +839,7 @@ class Ka extends Qr {
|
|
|
839
839
|
} = this.state, {
|
|
840
840
|
resetKeys: a
|
|
841
841
|
} = this.props;
|
|
842
|
-
if (r && n.error !== null &&
|
|
842
|
+
if (r && n.error !== null && Ba(e.resetKeys, a)) {
|
|
843
843
|
var s, i;
|
|
844
844
|
(s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
|
|
845
845
|
next: a,
|
|
@@ -868,12 +868,12 @@ class Ka extends Qr {
|
|
|
868
868
|
c = n(l);
|
|
869
869
|
else if (r)
|
|
870
870
|
c = pt(r, l);
|
|
871
|
-
else if (a === null ||
|
|
871
|
+
else if (a === null || Gr(a))
|
|
872
872
|
c = a;
|
|
873
873
|
else
|
|
874
874
|
throw i;
|
|
875
875
|
}
|
|
876
|
-
return pt(
|
|
876
|
+
return pt(Ka.Provider, {
|
|
877
877
|
value: {
|
|
878
878
|
didCatch: s,
|
|
879
879
|
error: i,
|
|
@@ -882,34 +882,36 @@ class Ka extends Qr {
|
|
|
882
882
|
}, c);
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function Ba() {
|
|
886
886
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
887
887
|
return t.length !== e.length || t.some((n, r) => !Object.is(n, e[r]));
|
|
888
888
|
}
|
|
889
|
-
const
|
|
890
|
-
class
|
|
889
|
+
const Qa = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", Ua = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Ga = (t) => "initialize" in t && typeof t.initialize == "function", qa = (t) => "getHead" in t && typeof t.getHead == "function", Ha = (t) => "getIdentities" in t && typeof t.getIdentities == "function", zt = new La();
|
|
890
|
+
class za {
|
|
891
891
|
constructor(e) {
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
892
|
+
D(this, "plugins", []);
|
|
893
|
+
D(this, "navigation");
|
|
894
|
+
D(this, "meta");
|
|
895
|
+
D(this, "page");
|
|
896
|
+
D(this, "authentication");
|
|
897
|
+
D(this, "navigationPlugins");
|
|
898
|
+
D(this, "initialize", async ({
|
|
899
|
+
navigate: e
|
|
900
|
+
}) => {
|
|
899
901
|
await Promise.all(
|
|
900
|
-
this.plugins.filter(
|
|
901
|
-
var
|
|
902
|
-
return (
|
|
902
|
+
this.plugins.filter(Ga).map((n) => {
|
|
903
|
+
var r;
|
|
904
|
+
return (r = n.initialize) == null ? void 0 : r.call(n, this, { navigate: e });
|
|
903
905
|
})
|
|
904
906
|
);
|
|
905
907
|
});
|
|
906
|
-
|
|
908
|
+
D(this, "invalidateCache", async (e) => {
|
|
907
909
|
await zt.invalidateQueries({ queryKey: e });
|
|
908
910
|
});
|
|
909
|
-
|
|
910
|
-
this.plugins.filter(
|
|
911
|
+
D(this, "getApiIdentities", async () => (await Promise.all(
|
|
912
|
+
this.plugins.filter(Ha).map((n) => n.getIdentities(this))
|
|
911
913
|
)).flat());
|
|
912
|
-
|
|
914
|
+
D(this, "getNavigation", async (e) => (await Promise.all(
|
|
913
915
|
this.navigationPlugins.map(
|
|
914
916
|
async (r) => {
|
|
915
917
|
var a;
|
|
@@ -917,32 +919,32 @@ class Ha {
|
|
|
917
919
|
}
|
|
918
920
|
)
|
|
919
921
|
)).flatMap((r) => r ?? []));
|
|
920
|
-
|
|
922
|
+
D(this, "signRequest", async (e) => {
|
|
921
923
|
if (!this.authentication)
|
|
922
924
|
throw new Error("No authentication provider configured");
|
|
923
925
|
const n = await this.authentication.getAccessToken();
|
|
924
926
|
return e.headers.set("Authorization", `Bearer ${n}`), e;
|
|
925
927
|
});
|
|
926
|
-
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(
|
|
928
|
+
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Ua), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
|
|
927
929
|
}
|
|
928
930
|
}
|
|
929
|
-
function
|
|
931
|
+
function Va({ error: t, resetErrorBoundary: e }) {
|
|
930
932
|
return /* @__PURE__ */ o.jsx(Et, { error: t });
|
|
931
933
|
}
|
|
932
934
|
const Re = globalThis;
|
|
933
935
|
(!Re.requestIdleCallback || !Re.cancelIdleCallback) && (Re.requestIdleCallback = (t) => setTimeout(t, 1), Re.cancelIdleCallback = clearTimeout);
|
|
934
|
-
var Ue = ["Enter", " "],
|
|
936
|
+
var Ue = ["Enter", " "], Ya = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp", "PageDown", "End"], Xa = [...Ya, ...Vt], Wa = {
|
|
935
937
|
ltr: [...Ue, "ArrowRight"],
|
|
936
938
|
rtl: [...Ue, "ArrowLeft"]
|
|
937
|
-
},
|
|
939
|
+
}, Ja = {
|
|
938
940
|
ltr: ["ArrowLeft"],
|
|
939
941
|
rtl: ["ArrowRight"]
|
|
940
|
-
}, xe = "Menu", [de,
|
|
941
|
-
|
|
942
|
+
}, xe = "Menu", [de, Za, eo] = br(xe), [Z, Yt] = jt(xe, [
|
|
943
|
+
eo,
|
|
942
944
|
Nt,
|
|
943
945
|
Ft
|
|
944
|
-
]), ye = Nt(), Xt = Ft(), [Wt, V] = Z(xe), [
|
|
945
|
-
const { __scopeMenu: e, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = t, c = ye(e), [l,
|
|
946
|
+
]), ye = Nt(), Xt = Ft(), [Wt, V] = Z(xe), [to, we] = Z(xe), Jt = (t) => {
|
|
947
|
+
const { __scopeMenu: e, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = t, c = ye(e), [l, p] = u.useState(null), f = u.useRef(!1), d = qe(s), g = Ir(a);
|
|
946
948
|
return u.useEffect(() => {
|
|
947
949
|
const v = () => {
|
|
948
950
|
f.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
|
|
@@ -957,14 +959,14 @@ var Ue = ["Enter", " "], Va = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp",
|
|
|
957
959
|
open: n,
|
|
958
960
|
onOpenChange: d,
|
|
959
961
|
content: l,
|
|
960
|
-
onContentChange:
|
|
962
|
+
onContentChange: p,
|
|
961
963
|
children: /* @__PURE__ */ o.jsx(
|
|
962
|
-
|
|
964
|
+
to,
|
|
963
965
|
{
|
|
964
966
|
scope: e,
|
|
965
967
|
onClose: u.useCallback(() => d(!1), [d]),
|
|
966
968
|
isUsingKeyboardRef: f,
|
|
967
|
-
dir:
|
|
969
|
+
dir: g,
|
|
968
970
|
modal: i,
|
|
969
971
|
children: r
|
|
970
972
|
}
|
|
@@ -973,31 +975,31 @@ var Ue = ["Enter", " "], Va = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp",
|
|
|
973
975
|
) });
|
|
974
976
|
};
|
|
975
977
|
Jt.displayName = xe;
|
|
976
|
-
var
|
|
978
|
+
var no = "MenuAnchor", Je = u.forwardRef(
|
|
977
979
|
(t, e) => {
|
|
978
980
|
const { __scopeMenu: n, ...r } = t, a = ye(n);
|
|
979
|
-
return /* @__PURE__ */ o.jsx(
|
|
981
|
+
return /* @__PURE__ */ o.jsx(Mr, { ...a, ...r, ref: e });
|
|
980
982
|
}
|
|
981
983
|
);
|
|
982
|
-
Je.displayName =
|
|
983
|
-
var Ze = "MenuPortal", [
|
|
984
|
+
Je.displayName = no;
|
|
985
|
+
var Ze = "MenuPortal", [ro, Zt] = Z(Ze, {
|
|
984
986
|
forceMount: void 0
|
|
985
987
|
}), en = (t) => {
|
|
986
988
|
const { __scopeMenu: e, forceMount: n, children: r, container: a } = t, s = V(Ze, e);
|
|
987
|
-
return /* @__PURE__ */ o.jsx(
|
|
989
|
+
return /* @__PURE__ */ o.jsx(ro, { scope: e, forceMount: n, children: /* @__PURE__ */ o.jsx(Ie, { present: n || s.open, children: /* @__PURE__ */ o.jsx(Ar, { asChild: !0, container: a, children: r }) }) });
|
|
988
990
|
};
|
|
989
991
|
en.displayName = Ze;
|
|
990
|
-
var
|
|
992
|
+
var A = "MenuContent", [ao, et] = Z(A), tn = u.forwardRef(
|
|
991
993
|
(t, e) => {
|
|
992
|
-
const n = Zt(
|
|
993
|
-
return /* @__PURE__ */ o.jsx(de.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ o.jsx(de.Slot, { scope: t.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(
|
|
994
|
+
const n = Zt(A, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = V(A, t.__scopeMenu), i = we(A, t.__scopeMenu);
|
|
995
|
+
return /* @__PURE__ */ o.jsx(de.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ o.jsx(de.Slot, { scope: t.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(oo, { ...a, ref: e }) : /* @__PURE__ */ o.jsx(so, { ...a, ref: e }) }) }) });
|
|
994
996
|
}
|
|
995
|
-
),
|
|
997
|
+
), oo = u.forwardRef(
|
|
996
998
|
(t, e) => {
|
|
997
|
-
const n = V(
|
|
999
|
+
const n = V(A, t.__scopeMenu), r = u.useRef(null), a = fe(e, r);
|
|
998
1000
|
return u.useEffect(() => {
|
|
999
1001
|
const s = r.current;
|
|
1000
|
-
if (s) return
|
|
1002
|
+
if (s) return Cr(s);
|
|
1001
1003
|
}, []), /* @__PURE__ */ o.jsx(
|
|
1002
1004
|
tt,
|
|
1003
1005
|
{
|
|
@@ -1015,8 +1017,8 @@ var I = "MenuContent", [ro, et] = Z(I), tn = u.forwardRef(
|
|
|
1015
1017
|
}
|
|
1016
1018
|
);
|
|
1017
1019
|
}
|
|
1018
|
-
),
|
|
1019
|
-
const n = V(
|
|
1020
|
+
), so = u.forwardRef((t, e) => {
|
|
1021
|
+
const n = V(A, t.__scopeMenu);
|
|
1020
1022
|
return /* @__PURE__ */ o.jsx(
|
|
1021
1023
|
tt,
|
|
1022
1024
|
{
|
|
@@ -1038,118 +1040,118 @@ var I = "MenuContent", [ro, et] = Z(I), tn = u.forwardRef(
|
|
|
1038
1040
|
onCloseAutoFocus: i,
|
|
1039
1041
|
disableOutsidePointerEvents: c,
|
|
1040
1042
|
onEntryFocus: l,
|
|
1041
|
-
onEscapeKeyDown:
|
|
1043
|
+
onEscapeKeyDown: p,
|
|
1042
1044
|
onPointerDownOutside: f,
|
|
1043
1045
|
onFocusOutside: d,
|
|
1044
|
-
onInteractOutside:
|
|
1046
|
+
onInteractOutside: g,
|
|
1045
1047
|
onDismiss: v,
|
|
1046
1048
|
disableOutsideScroll: x,
|
|
1047
1049
|
..._
|
|
1048
|
-
} = t,
|
|
1050
|
+
} = t, j = V(A, n), P = we(A, n), K = ye(n), b = Xt(n), O = Za(n), [$, Y] = u.useState(null), ee = u.useRef(null), be = fe(e, ee, j.onContentChange), X = u.useRef(0), Me = u.useRef(""), rr = u.useRef(0), Oe = u.useRef(null), it = u.useRef("right"), Te = u.useRef(0), ar = x ? jr : u.Fragment, or = x ? { as: Nr, allowPinchZoom: !0 } : void 0, sr = (m) => {
|
|
1049
1051
|
var ne, ut;
|
|
1050
|
-
const
|
|
1052
|
+
const N = Me.current + m, T = O().filter((B) => !B.disabled), G = document.activeElement, ke = (ne = T.find((B) => B.ref.current === G)) == null ? void 0 : ne.textValue, Fe = T.map((B) => B.textValue), ct = yo(Fe, N, ke), ce = (ut = T.find((B) => B.textValue === ct)) == null ? void 0 : ut.ref.current;
|
|
1051
1053
|
(function B(lt) {
|
|
1052
1054
|
Me.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => B(""), 1e3));
|
|
1053
|
-
})(
|
|
1055
|
+
})(N), ce && setTimeout(() => ce.focus());
|
|
1054
1056
|
};
|
|
1055
|
-
u.useEffect(() => () => window.clearTimeout(X.current), []),
|
|
1056
|
-
const te = u.useCallback((
|
|
1057
|
-
var
|
|
1058
|
-
return it.current === ((
|
|
1057
|
+
u.useEffect(() => () => window.clearTimeout(X.current), []), Pr();
|
|
1058
|
+
const te = u.useCallback((m) => {
|
|
1059
|
+
var T, G;
|
|
1060
|
+
return it.current === ((T = Oe.current) == null ? void 0 : T.side) && bo(m, (G = Oe.current) == null ? void 0 : G.area);
|
|
1059
1061
|
}, []);
|
|
1060
1062
|
return /* @__PURE__ */ o.jsx(
|
|
1061
|
-
|
|
1063
|
+
ao,
|
|
1062
1064
|
{
|
|
1063
1065
|
scope: n,
|
|
1064
1066
|
searchRef: Me,
|
|
1065
1067
|
onItemEnter: u.useCallback(
|
|
1066
|
-
(
|
|
1067
|
-
te(
|
|
1068
|
+
(m) => {
|
|
1069
|
+
te(m) && m.preventDefault();
|
|
1068
1070
|
},
|
|
1069
1071
|
[te]
|
|
1070
1072
|
),
|
|
1071
1073
|
onItemLeave: u.useCallback(
|
|
1072
|
-
(
|
|
1073
|
-
var
|
|
1074
|
-
te(
|
|
1074
|
+
(m) => {
|
|
1075
|
+
var N;
|
|
1076
|
+
te(m) || ((N = ee.current) == null || N.focus(), Y(null));
|
|
1075
1077
|
},
|
|
1076
1078
|
[te]
|
|
1077
1079
|
),
|
|
1078
1080
|
onTriggerLeave: u.useCallback(
|
|
1079
|
-
(
|
|
1080
|
-
te(
|
|
1081
|
+
(m) => {
|
|
1082
|
+
te(m) && m.preventDefault();
|
|
1081
1083
|
},
|
|
1082
1084
|
[te]
|
|
1083
1085
|
),
|
|
1084
1086
|
pointerGraceTimerRef: rr,
|
|
1085
|
-
onPointerGraceIntentChange: u.useCallback((
|
|
1086
|
-
Oe.current =
|
|
1087
|
+
onPointerGraceIntentChange: u.useCallback((m) => {
|
|
1088
|
+
Oe.current = m;
|
|
1087
1089
|
}, []),
|
|
1088
1090
|
children: /* @__PURE__ */ o.jsx(ar, { ...or, children: /* @__PURE__ */ o.jsx(
|
|
1089
|
-
|
|
1091
|
+
Rr,
|
|
1090
1092
|
{
|
|
1091
1093
|
asChild: !0,
|
|
1092
1094
|
trapped: a,
|
|
1093
|
-
onMountAutoFocus: y(s, (
|
|
1094
|
-
var
|
|
1095
|
-
|
|
1095
|
+
onMountAutoFocus: y(s, (m) => {
|
|
1096
|
+
var N;
|
|
1097
|
+
m.preventDefault(), (N = ee.current) == null || N.focus({ preventScroll: !0 });
|
|
1096
1098
|
}),
|
|
1097
1099
|
onUnmountAutoFocus: i,
|
|
1098
1100
|
children: /* @__PURE__ */ o.jsx(
|
|
1099
|
-
|
|
1101
|
+
_r,
|
|
1100
1102
|
{
|
|
1101
1103
|
asChild: !0,
|
|
1102
1104
|
disableOutsidePointerEvents: c,
|
|
1103
|
-
onEscapeKeyDown:
|
|
1105
|
+
onEscapeKeyDown: p,
|
|
1104
1106
|
onPointerDownOutside: f,
|
|
1105
1107
|
onFocusOutside: d,
|
|
1106
|
-
onInteractOutside:
|
|
1108
|
+
onInteractOutside: g,
|
|
1107
1109
|
onDismiss: v,
|
|
1108
1110
|
children: /* @__PURE__ */ o.jsx(
|
|
1109
|
-
|
|
1111
|
+
Xr,
|
|
1110
1112
|
{
|
|
1111
1113
|
asChild: !0,
|
|
1112
|
-
...
|
|
1113
|
-
dir:
|
|
1114
|
+
...b,
|
|
1115
|
+
dir: P.dir,
|
|
1114
1116
|
orientation: "vertical",
|
|
1115
1117
|
loop: r,
|
|
1116
1118
|
currentTabStopId: $,
|
|
1117
1119
|
onCurrentTabStopIdChange: Y,
|
|
1118
|
-
onEntryFocus: y(l, (
|
|
1119
|
-
|
|
1120
|
+
onEntryFocus: y(l, (m) => {
|
|
1121
|
+
P.isUsingKeyboardRef.current || m.preventDefault();
|
|
1120
1122
|
}),
|
|
1121
1123
|
preventScrollOnEntryFocus: !0,
|
|
1122
1124
|
children: /* @__PURE__ */ o.jsx(
|
|
1123
|
-
|
|
1125
|
+
Er,
|
|
1124
1126
|
{
|
|
1125
1127
|
role: "menu",
|
|
1126
1128
|
"aria-orientation": "vertical",
|
|
1127
|
-
"data-state": yn(
|
|
1129
|
+
"data-state": yn(j.open),
|
|
1128
1130
|
"data-radix-menu-content": "",
|
|
1129
|
-
dir:
|
|
1130
|
-
...
|
|
1131
|
+
dir: P.dir,
|
|
1132
|
+
...K,
|
|
1131
1133
|
..._,
|
|
1132
1134
|
ref: be,
|
|
1133
1135
|
style: { outline: "none", ..._.style },
|
|
1134
|
-
onKeyDown: y(_.onKeyDown, (
|
|
1135
|
-
const
|
|
1136
|
-
|
|
1136
|
+
onKeyDown: y(_.onKeyDown, (m) => {
|
|
1137
|
+
const T = m.target.closest("[data-radix-menu-content]") === m.currentTarget, G = m.ctrlKey || m.altKey || m.metaKey, ke = m.key.length === 1;
|
|
1138
|
+
T && (m.key === "Tab" && m.preventDefault(), !G && ke && sr(m.key));
|
|
1137
1139
|
const Fe = ee.current;
|
|
1138
|
-
if (
|
|
1139
|
-
|
|
1140
|
-
const ce =
|
|
1141
|
-
Vt.includes(
|
|
1140
|
+
if (m.target !== Fe || !Xa.includes(m.key)) return;
|
|
1141
|
+
m.preventDefault();
|
|
1142
|
+
const ce = O().filter((ne) => !ne.disabled).map((ne) => ne.ref.current);
|
|
1143
|
+
Vt.includes(m.key) && ce.reverse(), vo(ce);
|
|
1142
1144
|
}),
|
|
1143
|
-
onBlur: y(t.onBlur, (
|
|
1144
|
-
|
|
1145
|
+
onBlur: y(t.onBlur, (m) => {
|
|
1146
|
+
m.currentTarget.contains(m.target) || (window.clearTimeout(X.current), Me.current = "");
|
|
1145
1147
|
}),
|
|
1146
1148
|
onPointerMove: y(
|
|
1147
1149
|
t.onPointerMove,
|
|
1148
|
-
he((
|
|
1149
|
-
const
|
|
1150
|
-
if (
|
|
1151
|
-
const G =
|
|
1152
|
-
it.current = G, Te.current =
|
|
1150
|
+
he((m) => {
|
|
1151
|
+
const N = m.target, T = Te.current !== m.clientX;
|
|
1152
|
+
if (m.currentTarget.contains(N) && T) {
|
|
1153
|
+
const G = m.clientX > Te.current ? "right" : "left";
|
|
1154
|
+
it.current = G, Te.current = m.clientX;
|
|
1153
1155
|
}
|
|
1154
1156
|
})
|
|
1155
1157
|
)
|
|
@@ -1165,28 +1167,28 @@ var I = "MenuContent", [ro, et] = Z(I), tn = u.forwardRef(
|
|
|
1165
1167
|
);
|
|
1166
1168
|
}
|
|
1167
1169
|
);
|
|
1168
|
-
tn.displayName =
|
|
1169
|
-
var
|
|
1170
|
+
tn.displayName = A;
|
|
1171
|
+
var io = "MenuGroup", nt = u.forwardRef(
|
|
1170
1172
|
(t, e) => {
|
|
1171
1173
|
const { __scopeMenu: n, ...r } = t;
|
|
1172
1174
|
return /* @__PURE__ */ o.jsx(ie.div, { role: "group", ...r, ref: e });
|
|
1173
1175
|
}
|
|
1174
1176
|
);
|
|
1175
|
-
nt.displayName =
|
|
1176
|
-
var
|
|
1177
|
+
nt.displayName = io;
|
|
1178
|
+
var co = "MenuLabel", nn = u.forwardRef(
|
|
1177
1179
|
(t, e) => {
|
|
1178
1180
|
const { __scopeMenu: n, ...r } = t;
|
|
1179
1181
|
return /* @__PURE__ */ o.jsx(ie.div, { ...r, ref: e });
|
|
1180
1182
|
}
|
|
1181
1183
|
);
|
|
1182
|
-
nn.displayName =
|
|
1184
|
+
nn.displayName = co;
|
|
1183
1185
|
var Ne = "MenuItem", Mt = "menu.itemSelect", Ae = u.forwardRef(
|
|
1184
1186
|
(t, e) => {
|
|
1185
|
-
const { disabled: n = !1, onSelect: r, ...a } = t, s = u.useRef(null), i = we(Ne, t.__scopeMenu), c = et(Ne, t.__scopeMenu), l = fe(e, s),
|
|
1187
|
+
const { disabled: n = !1, onSelect: r, ...a } = t, s = u.useRef(null), i = we(Ne, t.__scopeMenu), c = et(Ne, t.__scopeMenu), l = fe(e, s), p = u.useRef(!1), f = () => {
|
|
1186
1188
|
const d = s.current;
|
|
1187
1189
|
if (!n && d) {
|
|
1188
|
-
const
|
|
1189
|
-
d.addEventListener(Mt, (v) => r == null ? void 0 : r(v), { once: !0 }),
|
|
1190
|
+
const g = new CustomEvent(Mt, { bubbles: !0, cancelable: !0 });
|
|
1191
|
+
d.addEventListener(Mt, (v) => r == null ? void 0 : r(v), { once: !0 }), Dr(d, g), g.defaultPrevented ? p.current = !1 : i.onClose();
|
|
1190
1192
|
}
|
|
1191
1193
|
};
|
|
1192
1194
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1197,16 +1199,16 @@ var Ne = "MenuItem", Mt = "menu.itemSelect", Ae = u.forwardRef(
|
|
|
1197
1199
|
disabled: n,
|
|
1198
1200
|
onClick: y(t.onClick, f),
|
|
1199
1201
|
onPointerDown: (d) => {
|
|
1200
|
-
var
|
|
1201
|
-
(
|
|
1202
|
+
var g;
|
|
1203
|
+
(g = t.onPointerDown) == null || g.call(t, d), p.current = !0;
|
|
1202
1204
|
},
|
|
1203
1205
|
onPointerUp: y(t.onPointerUp, (d) => {
|
|
1204
|
-
var
|
|
1205
|
-
|
|
1206
|
+
var g;
|
|
1207
|
+
p.current || (g = d.currentTarget) == null || g.click();
|
|
1206
1208
|
}),
|
|
1207
1209
|
onKeyDown: y(t.onKeyDown, (d) => {
|
|
1208
|
-
const
|
|
1209
|
-
n ||
|
|
1210
|
+
const g = c.searchRef.current !== "";
|
|
1211
|
+
n || g && d.key === " " || Ue.includes(d.key) && (d.currentTarget.click(), d.preventDefault());
|
|
1210
1212
|
})
|
|
1211
1213
|
}
|
|
1212
1214
|
);
|
|
@@ -1215,7 +1217,7 @@ var Ne = "MenuItem", Mt = "menu.itemSelect", Ae = u.forwardRef(
|
|
|
1215
1217
|
Ae.displayName = Ne;
|
|
1216
1218
|
var rn = u.forwardRef(
|
|
1217
1219
|
(t, e) => {
|
|
1218
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = t, i = et(Ne, n), c = Xt(n), l = u.useRef(null),
|
|
1220
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = t, i = et(Ne, n), c = Xt(n), l = u.useRef(null), p = fe(e, l), [f, d] = u.useState(!1), [g, v] = u.useState("");
|
|
1219
1221
|
return u.useEffect(() => {
|
|
1220
1222
|
const x = l.current;
|
|
1221
1223
|
x && v((x.textContent ?? "").trim());
|
|
@@ -1224,8 +1226,8 @@ var rn = u.forwardRef(
|
|
|
1224
1226
|
{
|
|
1225
1227
|
scope: n,
|
|
1226
1228
|
disabled: r,
|
|
1227
|
-
textValue: a ??
|
|
1228
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1229
|
+
textValue: a ?? g,
|
|
1230
|
+
children: /* @__PURE__ */ o.jsx(Wr, { asChild: !0, ...c, focusable: !r, children: /* @__PURE__ */ o.jsx(
|
|
1229
1231
|
ie.div,
|
|
1230
1232
|
{
|
|
1231
1233
|
role: "menuitem",
|
|
@@ -1233,7 +1235,7 @@ var rn = u.forwardRef(
|
|
|
1233
1235
|
"aria-disabled": r || void 0,
|
|
1234
1236
|
"data-disabled": r ? "" : void 0,
|
|
1235
1237
|
...s,
|
|
1236
|
-
ref:
|
|
1238
|
+
ref: p,
|
|
1237
1239
|
onPointerMove: y(
|
|
1238
1240
|
t.onPointerMove,
|
|
1239
1241
|
he((x) => {
|
|
@@ -1251,7 +1253,7 @@ var rn = u.forwardRef(
|
|
|
1251
1253
|
}
|
|
1252
1254
|
);
|
|
1253
1255
|
}
|
|
1254
|
-
),
|
|
1256
|
+
), uo = "MenuCheckboxItem", an = u.forwardRef(
|
|
1255
1257
|
(t, e) => {
|
|
1256
1258
|
const { checked: n = !1, onCheckedChange: r, ...a } = t;
|
|
1257
1259
|
return /* @__PURE__ */ o.jsx(ln, { scope: t.__scopeMenu, checked: n, children: /* @__PURE__ */ o.jsx(
|
|
@@ -1271,21 +1273,21 @@ var rn = u.forwardRef(
|
|
|
1271
1273
|
) });
|
|
1272
1274
|
}
|
|
1273
1275
|
);
|
|
1274
|
-
an.displayName =
|
|
1275
|
-
var on = "MenuRadioGroup", [
|
|
1276
|
+
an.displayName = uo;
|
|
1277
|
+
var on = "MenuRadioGroup", [lo, ho] = Z(
|
|
1276
1278
|
on,
|
|
1277
1279
|
{ value: void 0, onValueChange: () => {
|
|
1278
1280
|
} }
|
|
1279
1281
|
), sn = u.forwardRef(
|
|
1280
1282
|
(t, e) => {
|
|
1281
1283
|
const { value: n, onValueChange: r, ...a } = t, s = qe(r);
|
|
1282
|
-
return /* @__PURE__ */ o.jsx(
|
|
1284
|
+
return /* @__PURE__ */ o.jsx(lo, { scope: t.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(nt, { ...a, ref: e }) });
|
|
1283
1285
|
}
|
|
1284
1286
|
);
|
|
1285
1287
|
sn.displayName = on;
|
|
1286
1288
|
var cn = "MenuRadioItem", un = u.forwardRef(
|
|
1287
1289
|
(t, e) => {
|
|
1288
|
-
const { value: n, ...r } = t, a =
|
|
1290
|
+
const { value: n, ...r } = t, a = ho(cn, t.__scopeMenu), s = n === a.value;
|
|
1289
1291
|
return /* @__PURE__ */ o.jsx(ln, { scope: t.__scopeMenu, checked: s, children: /* @__PURE__ */ o.jsx(
|
|
1290
1292
|
Ae,
|
|
1291
1293
|
{
|
|
@@ -1307,12 +1309,12 @@ var cn = "MenuRadioItem", un = u.forwardRef(
|
|
|
1307
1309
|
}
|
|
1308
1310
|
);
|
|
1309
1311
|
un.displayName = cn;
|
|
1310
|
-
var rt = "MenuItemIndicator", [ln,
|
|
1312
|
+
var rt = "MenuItemIndicator", [ln, po] = Z(
|
|
1311
1313
|
rt,
|
|
1312
1314
|
{ checked: !1 }
|
|
1313
1315
|
), dn = u.forwardRef(
|
|
1314
1316
|
(t, e) => {
|
|
1315
|
-
const { __scopeMenu: n, forceMount: r, ...a } = t, s =
|
|
1317
|
+
const { __scopeMenu: n, forceMount: r, ...a } = t, s = po(rt, n);
|
|
1316
1318
|
return /* @__PURE__ */ o.jsx(
|
|
1317
1319
|
Ie,
|
|
1318
1320
|
{
|
|
@@ -1330,7 +1332,7 @@ var rt = "MenuItemIndicator", [ln, ho] = Z(
|
|
|
1330
1332
|
}
|
|
1331
1333
|
);
|
|
1332
1334
|
dn.displayName = rt;
|
|
1333
|
-
var
|
|
1335
|
+
var fo = "MenuSeparator", hn = u.forwardRef(
|
|
1334
1336
|
(t, e) => {
|
|
1335
1337
|
const { __scopeMenu: n, ...r } = t;
|
|
1336
1338
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1344,26 +1346,26 @@ var po = "MenuSeparator", hn = u.forwardRef(
|
|
|
1344
1346
|
);
|
|
1345
1347
|
}
|
|
1346
1348
|
);
|
|
1347
|
-
hn.displayName =
|
|
1348
|
-
var
|
|
1349
|
+
hn.displayName = fo;
|
|
1350
|
+
var mo = "MenuArrow", pn = u.forwardRef(
|
|
1349
1351
|
(t, e) => {
|
|
1350
1352
|
const { __scopeMenu: n, ...r } = t, a = ye(n);
|
|
1351
|
-
return /* @__PURE__ */ o.jsx(
|
|
1353
|
+
return /* @__PURE__ */ o.jsx(Sr, { ...a, ...r, ref: e });
|
|
1352
1354
|
}
|
|
1353
1355
|
);
|
|
1354
|
-
pn.displayName =
|
|
1355
|
-
var at = "MenuSub", [
|
|
1356
|
-
const { __scopeMenu: e, children: n, open: r = !1, onOpenChange: a } = t, s = V(at, e), i = ye(e), [c, l] = u.useState(null), [
|
|
1356
|
+
pn.displayName = mo;
|
|
1357
|
+
var at = "MenuSub", [go, fn] = Z(at), mn = (t) => {
|
|
1358
|
+
const { __scopeMenu: e, children: n, open: r = !1, onOpenChange: a } = t, s = V(at, e), i = ye(e), [c, l] = u.useState(null), [p, f] = u.useState(null), d = qe(a);
|
|
1357
1359
|
return u.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ o.jsx(It, { ...i, children: /* @__PURE__ */ o.jsx(
|
|
1358
1360
|
Wt,
|
|
1359
1361
|
{
|
|
1360
1362
|
scope: e,
|
|
1361
1363
|
open: r,
|
|
1362
1364
|
onOpenChange: d,
|
|
1363
|
-
content:
|
|
1365
|
+
content: p,
|
|
1364
1366
|
onContentChange: f,
|
|
1365
1367
|
children: /* @__PURE__ */ o.jsx(
|
|
1366
|
-
|
|
1368
|
+
go,
|
|
1367
1369
|
{
|
|
1368
1370
|
scope: e,
|
|
1369
1371
|
contentId: je(),
|
|
@@ -1379,7 +1381,7 @@ var at = "MenuSub", [mo, fn] = Z(at), mn = (t) => {
|
|
|
1379
1381
|
mn.displayName = at;
|
|
1380
1382
|
var ue = "MenuSubTrigger", gn = u.forwardRef(
|
|
1381
1383
|
(t, e) => {
|
|
1382
|
-
const n = V(ue, t.__scopeMenu), r = we(ue, t.__scopeMenu), a = fn(ue, t.__scopeMenu), s = et(ue, t.__scopeMenu), i = u.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = s,
|
|
1384
|
+
const n = V(ue, t.__scopeMenu), r = we(ue, t.__scopeMenu), a = fn(ue, t.__scopeMenu), s = et(ue, t.__scopeMenu), i = u.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = s, p = { __scopeMenu: t.__scopeMenu }, f = u.useCallback(() => {
|
|
1383
1385
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
1384
1386
|
}, []);
|
|
1385
1387
|
return u.useEffect(() => f, [f]), u.useEffect(() => {
|
|
@@ -1387,7 +1389,7 @@ var ue = "MenuSubTrigger", gn = u.forwardRef(
|
|
|
1387
1389
|
return () => {
|
|
1388
1390
|
window.clearTimeout(d), l(null);
|
|
1389
1391
|
};
|
|
1390
|
-
}, [c, l]), /* @__PURE__ */ o.jsx(Je, { asChild: !0, ...
|
|
1392
|
+
}, [c, l]), /* @__PURE__ */ o.jsx(Je, { asChild: !0, ...p, children: /* @__PURE__ */ o.jsx(
|
|
1391
1393
|
rn,
|
|
1392
1394
|
{
|
|
1393
1395
|
id: a.triggerId,
|
|
@@ -1398,8 +1400,8 @@ var ue = "MenuSubTrigger", gn = u.forwardRef(
|
|
|
1398
1400
|
...t,
|
|
1399
1401
|
ref: Dt(e, a.onTriggerChange),
|
|
1400
1402
|
onClick: (d) => {
|
|
1401
|
-
var
|
|
1402
|
-
(
|
|
1403
|
+
var g;
|
|
1404
|
+
(g = t.onClick) == null || g.call(t, d), !(t.disabled || d.defaultPrevented) && (d.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
1403
1405
|
},
|
|
1404
1406
|
onPointerMove: y(
|
|
1405
1407
|
t.onPointerMove,
|
|
@@ -1414,18 +1416,18 @@ var ue = "MenuSubTrigger", gn = u.forwardRef(
|
|
|
1414
1416
|
he((d) => {
|
|
1415
1417
|
var v, x;
|
|
1416
1418
|
f();
|
|
1417
|
-
const
|
|
1418
|
-
if (
|
|
1419
|
-
const _ = (x = n.content) == null ? void 0 : x.dataset.side,
|
|
1419
|
+
const g = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
|
|
1420
|
+
if (g) {
|
|
1421
|
+
const _ = (x = n.content) == null ? void 0 : x.dataset.side, j = _ === "right", P = j ? -5 : 5, K = g[j ? "left" : "right"], b = g[j ? "right" : "left"];
|
|
1420
1422
|
s.onPointerGraceIntentChange({
|
|
1421
1423
|
area: [
|
|
1422
1424
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
1423
1425
|
// consistently within polygon bounds
|
|
1424
|
-
{ x: d.clientX +
|
|
1425
|
-
{ x:
|
|
1426
|
-
{ x:
|
|
1427
|
-
{ x:
|
|
1428
|
-
{ x:
|
|
1426
|
+
{ x: d.clientX + P, y: d.clientY },
|
|
1427
|
+
{ x: K, y: g.top },
|
|
1428
|
+
{ x: b, y: g.top },
|
|
1429
|
+
{ x: b, y: g.bottom },
|
|
1430
|
+
{ x: K, y: g.bottom }
|
|
1429
1431
|
],
|
|
1430
1432
|
side: _
|
|
1431
1433
|
}), window.clearTimeout(c.current), c.current = window.setTimeout(
|
|
@@ -1440,8 +1442,8 @@ var ue = "MenuSubTrigger", gn = u.forwardRef(
|
|
|
1440
1442
|
),
|
|
1441
1443
|
onKeyDown: y(t.onKeyDown, (d) => {
|
|
1442
1444
|
var v;
|
|
1443
|
-
const
|
|
1444
|
-
t.disabled ||
|
|
1445
|
+
const g = s.searchRef.current !== "";
|
|
1446
|
+
t.disabled || g && d.key === " " || Wa[r.dir].includes(d.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), d.preventDefault());
|
|
1445
1447
|
})
|
|
1446
1448
|
}
|
|
1447
1449
|
) });
|
|
@@ -1450,14 +1452,14 @@ var ue = "MenuSubTrigger", gn = u.forwardRef(
|
|
|
1450
1452
|
gn.displayName = ue;
|
|
1451
1453
|
var vn = "MenuSubContent", xn = u.forwardRef(
|
|
1452
1454
|
(t, e) => {
|
|
1453
|
-
const n = Zt(
|
|
1455
|
+
const n = Zt(A, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = V(A, t.__scopeMenu), i = we(A, t.__scopeMenu), c = fn(vn, t.__scopeMenu), l = u.useRef(null), p = fe(e, l);
|
|
1454
1456
|
return /* @__PURE__ */ o.jsx(de.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ o.jsx(de.Slot, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(
|
|
1455
1457
|
tt,
|
|
1456
1458
|
{
|
|
1457
1459
|
id: c.contentId,
|
|
1458
1460
|
"aria-labelledby": c.triggerId,
|
|
1459
1461
|
...a,
|
|
1460
|
-
ref:
|
|
1462
|
+
ref: p,
|
|
1461
1463
|
align: "start",
|
|
1462
1464
|
side: i.dir === "rtl" ? "left" : "right",
|
|
1463
1465
|
disableOutsidePointerEvents: !1,
|
|
@@ -1476,8 +1478,8 @@ var vn = "MenuSubContent", xn = u.forwardRef(
|
|
|
1476
1478
|
}),
|
|
1477
1479
|
onKeyDown: y(t.onKeyDown, (f) => {
|
|
1478
1480
|
var v;
|
|
1479
|
-
const d = f.currentTarget.contains(f.target),
|
|
1480
|
-
d &&
|
|
1481
|
+
const d = f.currentTarget.contains(f.target), g = Ja[i.dir].includes(f.key);
|
|
1482
|
+
d && g && (s.onOpenChange(!1), (v = c.trigger) == null || v.focus(), f.preventDefault());
|
|
1481
1483
|
})
|
|
1482
1484
|
}
|
|
1483
1485
|
) }) }) });
|
|
@@ -1493,44 +1495,44 @@ function De(t) {
|
|
|
1493
1495
|
function ot(t) {
|
|
1494
1496
|
return De(t) ? "indeterminate" : t ? "checked" : "unchecked";
|
|
1495
1497
|
}
|
|
1496
|
-
function
|
|
1498
|
+
function vo(t) {
|
|
1497
1499
|
const e = document.activeElement;
|
|
1498
1500
|
for (const n of t)
|
|
1499
1501
|
if (n === e || (n.focus(), document.activeElement !== e)) return;
|
|
1500
1502
|
}
|
|
1501
|
-
function
|
|
1503
|
+
function xo(t, e) {
|
|
1502
1504
|
return t.map((n, r) => t[(e + r) % t.length]);
|
|
1503
1505
|
}
|
|
1504
|
-
function
|
|
1505
|
-
const a = e.length > 1 && Array.from(e).every((
|
|
1506
|
-
let i =
|
|
1507
|
-
a.length === 1 && (i = i.filter((
|
|
1506
|
+
function yo(t, e, n) {
|
|
1507
|
+
const a = e.length > 1 && Array.from(e).every((p) => p === e[0]) ? e[0] : e, s = n ? t.indexOf(n) : -1;
|
|
1508
|
+
let i = xo(t, Math.max(s, 0));
|
|
1509
|
+
a.length === 1 && (i = i.filter((p) => p !== n));
|
|
1508
1510
|
const l = i.find(
|
|
1509
|
-
(
|
|
1511
|
+
(p) => p.toLowerCase().startsWith(a.toLowerCase())
|
|
1510
1512
|
);
|
|
1511
1513
|
return l !== n ? l : void 0;
|
|
1512
1514
|
}
|
|
1513
|
-
function
|
|
1515
|
+
function wo(t, e) {
|
|
1514
1516
|
const { x: n, y: r } = t;
|
|
1515
1517
|
let a = !1;
|
|
1516
1518
|
for (let s = 0, i = e.length - 1; s < e.length; i = s++) {
|
|
1517
|
-
const c = e[s].x, l = e[s].y,
|
|
1518
|
-
l > r != f > r && n < (
|
|
1519
|
+
const c = e[s].x, l = e[s].y, p = e[i].x, f = e[i].y;
|
|
1520
|
+
l > r != f > r && n < (p - c) * (r - l) / (f - l) + c && (a = !a);
|
|
1519
1521
|
}
|
|
1520
1522
|
return a;
|
|
1521
1523
|
}
|
|
1522
|
-
function
|
|
1524
|
+
function bo(t, e) {
|
|
1523
1525
|
if (!e) return !1;
|
|
1524
1526
|
const n = { x: t.clientX, y: t.clientY };
|
|
1525
|
-
return
|
|
1527
|
+
return wo(n, e);
|
|
1526
1528
|
}
|
|
1527
1529
|
function he(t) {
|
|
1528
1530
|
return (e) => e.pointerType === "mouse" ? t(e) : void 0;
|
|
1529
1531
|
}
|
|
1530
|
-
var
|
|
1532
|
+
var Mo = Jt, Co = Je, Po = en, Ro = tn, _o = nt, Eo = nn, So = Ae, jo = an, No = sn, Do = un, Io = dn, Ao = hn, Oo = pn, To = mn, ko = gn, Fo = xn, st = "DropdownMenu", [Lo, Ts] = jt(
|
|
1531
1533
|
st,
|
|
1532
1534
|
[Yt]
|
|
1533
|
-
),
|
|
1535
|
+
), C = Yt(), [Ko, wn] = Lo(st), bn = (t) => {
|
|
1534
1536
|
const {
|
|
1535
1537
|
__scopeDropdownMenu: e,
|
|
1536
1538
|
children: n,
|
|
@@ -1539,31 +1541,31 @@ var bo = Jt, Mo = Je, Co = en, Po = tn, Ro = nt, _o = nn, Eo = Ae, So = an, jo =
|
|
|
1539
1541
|
defaultOpen: s,
|
|
1540
1542
|
onOpenChange: i,
|
|
1541
1543
|
modal: c = !0
|
|
1542
|
-
} = t, l =
|
|
1544
|
+
} = t, l = C(e), p = u.useRef(null), [f = !1, d] = At({
|
|
1543
1545
|
prop: a,
|
|
1544
1546
|
defaultProp: s,
|
|
1545
1547
|
onChange: i
|
|
1546
1548
|
});
|
|
1547
1549
|
return /* @__PURE__ */ o.jsx(
|
|
1548
|
-
|
|
1550
|
+
Ko,
|
|
1549
1551
|
{
|
|
1550
1552
|
scope: e,
|
|
1551
1553
|
triggerId: je(),
|
|
1552
|
-
triggerRef:
|
|
1554
|
+
triggerRef: p,
|
|
1553
1555
|
contentId: je(),
|
|
1554
1556
|
open: f,
|
|
1555
1557
|
onOpenChange: d,
|
|
1556
|
-
onOpenToggle: u.useCallback(() => d((
|
|
1558
|
+
onOpenToggle: u.useCallback(() => d((g) => !g), [d]),
|
|
1557
1559
|
modal: c,
|
|
1558
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1560
|
+
children: /* @__PURE__ */ o.jsx(Mo, { ...l, open: f, onOpenChange: d, dir: r, modal: c, children: n })
|
|
1559
1561
|
}
|
|
1560
1562
|
);
|
|
1561
1563
|
};
|
|
1562
1564
|
bn.displayName = st;
|
|
1563
1565
|
var Mn = "DropdownMenuTrigger", Cn = u.forwardRef(
|
|
1564
1566
|
(t, e) => {
|
|
1565
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = t, s = wn(Mn, n), i =
|
|
1566
|
-
return /* @__PURE__ */ o.jsx(
|
|
1567
|
+
const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = t, s = wn(Mn, n), i = C(n);
|
|
1568
|
+
return /* @__PURE__ */ o.jsx(Co, { asChild: !0, ...i, children: /* @__PURE__ */ o.jsx(
|
|
1567
1569
|
ie.button,
|
|
1568
1570
|
{
|
|
1569
1571
|
type: "button",
|
|
@@ -1587,16 +1589,16 @@ var Mn = "DropdownMenuTrigger", Cn = u.forwardRef(
|
|
|
1587
1589
|
}
|
|
1588
1590
|
);
|
|
1589
1591
|
Cn.displayName = Mn;
|
|
1590
|
-
var
|
|
1591
|
-
const { __scopeDropdownMenu: e, ...n } = t, r =
|
|
1592
|
-
return /* @__PURE__ */ o.jsx(
|
|
1592
|
+
var $o = "DropdownMenuPortal", Pn = (t) => {
|
|
1593
|
+
const { __scopeDropdownMenu: e, ...n } = t, r = C(e);
|
|
1594
|
+
return /* @__PURE__ */ o.jsx(Po, { ...r, ...n });
|
|
1593
1595
|
};
|
|
1594
|
-
Pn.displayName =
|
|
1596
|
+
Pn.displayName = $o;
|
|
1595
1597
|
var Rn = "DropdownMenuContent", _n = u.forwardRef(
|
|
1596
1598
|
(t, e) => {
|
|
1597
|
-
const { __scopeDropdownMenu: n, ...r } = t, a = wn(Rn, n), s =
|
|
1599
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = wn(Rn, n), s = C(n), i = u.useRef(!1);
|
|
1598
1600
|
return /* @__PURE__ */ o.jsx(
|
|
1599
|
-
|
|
1601
|
+
Ro,
|
|
1600
1602
|
{
|
|
1601
1603
|
id: a.contentId,
|
|
1602
1604
|
"aria-labelledby": a.triggerId,
|
|
@@ -1608,7 +1610,7 @@ var Rn = "DropdownMenuContent", _n = u.forwardRef(
|
|
|
1608
1610
|
i.current || (l = a.triggerRef.current) == null || l.focus(), i.current = !1, c.preventDefault();
|
|
1609
1611
|
}),
|
|
1610
1612
|
onInteractOutside: y(t.onInteractOutside, (c) => {
|
|
1611
|
-
const l = c.detail.originalEvent,
|
|
1613
|
+
const l = c.detail.originalEvent, p = l.button === 0 && l.ctrlKey === !0, f = l.button === 2 || p;
|
|
1612
1614
|
(!a.modal || f) && (i.current = !0);
|
|
1613
1615
|
}),
|
|
1614
1616
|
style: {
|
|
@@ -1624,75 +1626,75 @@ var Rn = "DropdownMenuContent", _n = u.forwardRef(
|
|
|
1624
1626
|
}
|
|
1625
1627
|
);
|
|
1626
1628
|
_n.displayName = Rn;
|
|
1627
|
-
var
|
|
1629
|
+
var Bo = "DropdownMenuGroup", Qo = u.forwardRef(
|
|
1628
1630
|
(t, e) => {
|
|
1629
|
-
const { __scopeDropdownMenu: n, ...r } = t, a =
|
|
1630
|
-
return /* @__PURE__ */ o.jsx(
|
|
1631
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1632
|
+
return /* @__PURE__ */ o.jsx(_o, { ...a, ...r, ref: e });
|
|
1631
1633
|
}
|
|
1632
1634
|
);
|
|
1633
|
-
|
|
1634
|
-
var
|
|
1635
|
+
Qo.displayName = Bo;
|
|
1636
|
+
var Uo = "DropdownMenuLabel", En = u.forwardRef(
|
|
1635
1637
|
(t, e) => {
|
|
1636
|
-
const { __scopeDropdownMenu: n, ...r } = t, a =
|
|
1637
|
-
return /* @__PURE__ */ o.jsx(
|
|
1638
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1639
|
+
return /* @__PURE__ */ o.jsx(Eo, { ...a, ...r, ref: e });
|
|
1638
1640
|
}
|
|
1639
1641
|
);
|
|
1640
|
-
En.displayName =
|
|
1641
|
-
var
|
|
1642
|
+
En.displayName = Uo;
|
|
1643
|
+
var Go = "DropdownMenuItem", Sn = u.forwardRef(
|
|
1642
1644
|
(t, e) => {
|
|
1643
|
-
const { __scopeDropdownMenu: n, ...r } = t, a =
|
|
1644
|
-
return /* @__PURE__ */ o.jsx(
|
|
1645
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1646
|
+
return /* @__PURE__ */ o.jsx(So, { ...a, ...r, ref: e });
|
|
1645
1647
|
}
|
|
1646
1648
|
);
|
|
1647
|
-
Sn.displayName =
|
|
1648
|
-
var
|
|
1649
|
-
const { __scopeDropdownMenu: n, ...r } = t, a =
|
|
1650
|
-
return /* @__PURE__ */ o.jsx(So, { ...a, ...r, ref: e });
|
|
1651
|
-
});
|
|
1652
|
-
jn.displayName = Go;
|
|
1653
|
-
var qo = "DropdownMenuRadioGroup", Ho = u.forwardRef((t, e) => {
|
|
1654
|
-
const { __scopeDropdownMenu: n, ...r } = t, a = P(n);
|
|
1649
|
+
Sn.displayName = Go;
|
|
1650
|
+
var qo = "DropdownMenuCheckboxItem", jn = u.forwardRef((t, e) => {
|
|
1651
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1655
1652
|
return /* @__PURE__ */ o.jsx(jo, { ...a, ...r, ref: e });
|
|
1656
1653
|
});
|
|
1657
|
-
|
|
1658
|
-
var
|
|
1659
|
-
const { __scopeDropdownMenu: n, ...r } = t, a =
|
|
1654
|
+
jn.displayName = qo;
|
|
1655
|
+
var Ho = "DropdownMenuRadioGroup", zo = u.forwardRef((t, e) => {
|
|
1656
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1660
1657
|
return /* @__PURE__ */ o.jsx(No, { ...a, ...r, ref: e });
|
|
1661
1658
|
});
|
|
1662
|
-
|
|
1663
|
-
var Vo = "
|
|
1664
|
-
const { __scopeDropdownMenu: n, ...r } = t, a =
|
|
1659
|
+
zo.displayName = Ho;
|
|
1660
|
+
var Vo = "DropdownMenuRadioItem", Nn = u.forwardRef((t, e) => {
|
|
1661
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1665
1662
|
return /* @__PURE__ */ o.jsx(Do, { ...a, ...r, ref: e });
|
|
1666
1663
|
});
|
|
1667
|
-
|
|
1668
|
-
var Yo = "
|
|
1669
|
-
const { __scopeDropdownMenu: n, ...r } = t, a =
|
|
1664
|
+
Nn.displayName = Vo;
|
|
1665
|
+
var Yo = "DropdownMenuItemIndicator", Dn = u.forwardRef((t, e) => {
|
|
1666
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1670
1667
|
return /* @__PURE__ */ o.jsx(Io, { ...a, ...r, ref: e });
|
|
1671
1668
|
});
|
|
1672
|
-
|
|
1673
|
-
var Xo = "
|
|
1669
|
+
Dn.displayName = Yo;
|
|
1670
|
+
var Xo = "DropdownMenuSeparator", In = u.forwardRef((t, e) => {
|
|
1671
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1672
|
+
return /* @__PURE__ */ o.jsx(Ao, { ...a, ...r, ref: e });
|
|
1673
|
+
});
|
|
1674
|
+
In.displayName = Xo;
|
|
1675
|
+
var Wo = "DropdownMenuArrow", Jo = u.forwardRef(
|
|
1674
1676
|
(t, e) => {
|
|
1675
|
-
const { __scopeDropdownMenu: n, ...r } = t, a =
|
|
1676
|
-
return /* @__PURE__ */ o.jsx(
|
|
1677
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1678
|
+
return /* @__PURE__ */ o.jsx(Oo, { ...a, ...r, ref: e });
|
|
1677
1679
|
}
|
|
1678
1680
|
);
|
|
1679
|
-
|
|
1680
|
-
var
|
|
1681
|
-
const { __scopeDropdownMenu: e, children: n, open: r, onOpenChange: a, defaultOpen: s } = t, i =
|
|
1681
|
+
Jo.displayName = Wo;
|
|
1682
|
+
var Zo = (t) => {
|
|
1683
|
+
const { __scopeDropdownMenu: e, children: n, open: r, onOpenChange: a, defaultOpen: s } = t, i = C(e), [c = !1, l] = At({
|
|
1682
1684
|
prop: r,
|
|
1683
1685
|
defaultProp: s,
|
|
1684
1686
|
onChange: a
|
|
1685
1687
|
});
|
|
1686
|
-
return /* @__PURE__ */ o.jsx(
|
|
1687
|
-
},
|
|
1688
|
-
const { __scopeDropdownMenu: n, ...r } = t, a =
|
|
1689
|
-
return /* @__PURE__ */ o.jsx(
|
|
1688
|
+
return /* @__PURE__ */ o.jsx(To, { ...i, open: c, onOpenChange: l, children: n });
|
|
1689
|
+
}, es = "DropdownMenuSubTrigger", An = u.forwardRef((t, e) => {
|
|
1690
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1691
|
+
return /* @__PURE__ */ o.jsx(ko, { ...a, ...r, ref: e });
|
|
1690
1692
|
});
|
|
1691
|
-
An.displayName =
|
|
1692
|
-
var
|
|
1693
|
-
const { __scopeDropdownMenu: n, ...r } = t, a =
|
|
1693
|
+
An.displayName = es;
|
|
1694
|
+
var ts = "DropdownMenuSubContent", On = u.forwardRef((t, e) => {
|
|
1695
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1694
1696
|
return /* @__PURE__ */ o.jsx(
|
|
1695
|
-
|
|
1697
|
+
Fo,
|
|
1696
1698
|
{
|
|
1697
1699
|
...a,
|
|
1698
1700
|
...r,
|
|
@@ -1708,9 +1710,9 @@ var es = "DropdownMenuSubContent", On = u.forwardRef((t, e) => {
|
|
|
1708
1710
|
}
|
|
1709
1711
|
);
|
|
1710
1712
|
});
|
|
1711
|
-
On.displayName =
|
|
1712
|
-
var
|
|
1713
|
-
const
|
|
1713
|
+
On.displayName = ts;
|
|
1714
|
+
var ns = bn, rs = Cn, Tn = Pn, kn = _n, Fn = En, Ln = Sn, Kn = jn, $n = Nn, Bn = Dn, Qn = In, as = Zo, Un = An, Gn = On;
|
|
1715
|
+
const os = ns, ss = rs, is = Tn, cs = as, qn = u.forwardRef(({ className: t, inset: e, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
|
|
1714
1716
|
Un,
|
|
1715
1717
|
{
|
|
1716
1718
|
ref: a,
|
|
@@ -1766,7 +1768,7 @@ const Vn = u.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */
|
|
|
1766
1768
|
}
|
|
1767
1769
|
));
|
|
1768
1770
|
Vn.displayName = Ln.displayName;
|
|
1769
|
-
const
|
|
1771
|
+
const us = u.forwardRef(({ className: t, children: e, checked: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
|
|
1770
1772
|
Kn,
|
|
1771
1773
|
{
|
|
1772
1774
|
ref: a,
|
|
@@ -1777,13 +1779,13 @@ const cs = u.forwardRef(({ className: t, children: e, checked: n, ...r }, a) =>
|
|
|
1777
1779
|
checked: n,
|
|
1778
1780
|
...r,
|
|
1779
1781
|
children: [
|
|
1780
|
-
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Bn, { children: /* @__PURE__ */ o.jsx(
|
|
1782
|
+
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Bn, { children: /* @__PURE__ */ o.jsx(Or, { className: "h-4 w-4" }) }) }),
|
|
1781
1783
|
e
|
|
1782
1784
|
]
|
|
1783
1785
|
}
|
|
1784
1786
|
));
|
|
1785
|
-
|
|
1786
|
-
const
|
|
1787
|
+
us.displayName = Kn.displayName;
|
|
1788
|
+
const ls = u.forwardRef(({ className: t, children: e, ...n }, r) => /* @__PURE__ */ o.jsxs(
|
|
1787
1789
|
$n,
|
|
1788
1790
|
{
|
|
1789
1791
|
ref: r,
|
|
@@ -1793,12 +1795,12 @@ const us = u.forwardRef(({ className: t, children: e, ...n }, r) => /* @__PURE__
|
|
|
1793
1795
|
),
|
|
1794
1796
|
...n,
|
|
1795
1797
|
children: [
|
|
1796
|
-
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Bn, { children: /* @__PURE__ */ o.jsx(
|
|
1798
|
+
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Bn, { children: /* @__PURE__ */ o.jsx(da, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1797
1799
|
e
|
|
1798
1800
|
]
|
|
1799
1801
|
}
|
|
1800
1802
|
));
|
|
1801
|
-
|
|
1803
|
+
ls.displayName = $n.displayName;
|
|
1802
1804
|
const Yn = u.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */ o.jsx(
|
|
1803
1805
|
Fn,
|
|
1804
1806
|
{
|
|
@@ -1821,12 +1823,12 @@ const Xn = u.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ o.jsx(
|
|
|
1821
1823
|
}
|
|
1822
1824
|
));
|
|
1823
1825
|
Xn.displayName = Qn.displayName;
|
|
1824
|
-
const
|
|
1826
|
+
const ds = () => {
|
|
1825
1827
|
const { navigation: t } = Ve();
|
|
1826
1828
|
return t.length <= 1 ? null : /* @__PURE__ */ o.jsx("nav", { className: "border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ o.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
|
|
1827
1829
|
$e,
|
|
1828
1830
|
{
|
|
1829
|
-
className: ({ isActive: n }) =>
|
|
1831
|
+
className: ({ isActive: n }) => Tr(
|
|
1830
1832
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
1831
1833
|
n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
1832
1834
|
),
|
|
@@ -1834,14 +1836,14 @@ const ls = () => {
|
|
|
1834
1836
|
children: e.label
|
|
1835
1837
|
}
|
|
1836
1838
|
) }, e.label)) }) });
|
|
1837
|
-
}, Wn = ({ item: t }) => t.children ? /* @__PURE__ */ o.jsxs(
|
|
1839
|
+
}, Wn = ({ item: t }) => t.children ? /* @__PURE__ */ o.jsxs(cs, { children: [
|
|
1838
1840
|
/* @__PURE__ */ o.jsx(qn, { children: t.label }),
|
|
1839
|
-
/* @__PURE__ */ o.jsx(
|
|
1841
|
+
/* @__PURE__ */ o.jsx(is, { children: /* @__PURE__ */ o.jsx(Hn, { children: t.children.map((e, n) => (
|
|
1840
1842
|
// eslint-disable-next-line react/no-array-index-key
|
|
1841
1843
|
/* @__PURE__ */ o.jsx(Wn, { item: e }, n)
|
|
1842
1844
|
)) }) })
|
|
1843
1845
|
] }, t.label) : /* @__PURE__ */ o.jsx(Ee, { to: t.path ?? "", children: /* @__PURE__ */ o.jsx(Vn, { children: t.label }, t.label) }), Jn = kt(function() {
|
|
1844
|
-
const [e, n] =
|
|
1846
|
+
const [e, n] = kr(), { isAuthenticated: r, profile: a, isAuthEnabled: s } = fr(), { pathname: i } = J(), c = Ve(), { page: l, plugins: p } = c, f = e ? pa : fa;
|
|
1845
1847
|
return /* @__PURE__ */ o.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ o.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
1846
1848
|
/* @__PURE__ */ o.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: [
|
|
1847
1849
|
/* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(Ee, { to: "/", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
@@ -1881,12 +1883,12 @@ const ls = () => {
|
|
|
1881
1883
|
},
|
|
1882
1884
|
children: "Login"
|
|
1883
1885
|
}
|
|
1884
|
-
) }) : /* @__PURE__ */ o.jsxs(
|
|
1885
|
-
/* @__PURE__ */ o.jsx(
|
|
1886
|
+
) }) : /* @__PURE__ */ o.jsxs(os, { children: [
|
|
1887
|
+
/* @__PURE__ */ o.jsx(ss, { asChild: !0, children: /* @__PURE__ */ o.jsx(Be, { variant: "ghost", children: a != null && a.email ? `${a.email}` : "My Account" }) }),
|
|
1886
1888
|
/* @__PURE__ */ o.jsxs(zn, { className: "w-56", children: [
|
|
1887
1889
|
/* @__PURE__ */ o.jsx(Yn, { children: "My Account" }),
|
|
1888
1890
|
/* @__PURE__ */ o.jsx(Xn, {}),
|
|
1889
|
-
|
|
1891
|
+
p.filter((d) => Qa(d)).flatMap((d) => d.getProfileMenuItems(c)).map((d) => /* @__PURE__ */ o.jsx(Wn, { item: d }, d.label))
|
|
1890
1892
|
] })
|
|
1891
1893
|
] }),
|
|
1892
1894
|
/* @__PURE__ */ o.jsx(
|
|
@@ -1902,48 +1904,48 @@ const ls = () => {
|
|
|
1902
1904
|
] })
|
|
1903
1905
|
] })
|
|
1904
1906
|
] }),
|
|
1905
|
-
/* @__PURE__ */ o.jsx(
|
|
1907
|
+
/* @__PURE__ */ o.jsx(ds, {})
|
|
1906
1908
|
] }) });
|
|
1907
1909
|
}), Zn = {
|
|
1908
1910
|
Header: Jn
|
|
1909
|
-
},
|
|
1911
|
+
}, hs = Tt(Zn), ps = hs.Provider, fs = ({
|
|
1910
1912
|
children: t,
|
|
1911
1913
|
...e
|
|
1912
1914
|
}) => {
|
|
1913
|
-
var
|
|
1915
|
+
var _, j;
|
|
1914
1916
|
const n = Le(
|
|
1915
1917
|
() => ({ ...Zn, ...e.overrides }),
|
|
1916
1918
|
[e.overrides]
|
|
1917
1919
|
), r = Le(
|
|
1918
1920
|
() => {
|
|
1919
|
-
var
|
|
1920
|
-
return { ...
|
|
1921
|
+
var P;
|
|
1922
|
+
return { ...Fr, ...(P = e.mdx) == null ? void 0 : P.components };
|
|
1921
1923
|
},
|
|
1922
|
-
[(
|
|
1923
|
-
), [a, s] = le(!1), { stagger: i } =
|
|
1924
|
+
[(_ = e.mdx) == null ? void 0 : _.components]
|
|
1925
|
+
), [a, s] = le(!1), { stagger: i } = qr(Qe), [c, l] = le(!1), p = xr(), f = ge("idle"), d = Le(
|
|
1924
1926
|
() => c ? { stagger: !0 } : { stagger: i },
|
|
1925
1927
|
[i, c]
|
|
1926
|
-
),
|
|
1928
|
+
), g = yr();
|
|
1927
1929
|
W(() => {
|
|
1928
1930
|
c || l(!0);
|
|
1929
|
-
}, [c,
|
|
1930
|
-
const [
|
|
1931
|
+
}, [c, g.location]);
|
|
1932
|
+
const [v] = le(() => new za(e));
|
|
1931
1933
|
W(() => {
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
+
f.current !== "pending" && (f.current = "pending", v.initialize({ navigate: p }).then(() => {
|
|
1935
|
+
f.current = "done", s(!0);
|
|
1934
1936
|
}));
|
|
1935
|
-
}, [
|
|
1936
|
-
const
|
|
1937
|
-
var
|
|
1938
|
-
return /* @__PURE__ */ o.jsx(
|
|
1937
|
+
}, [v, p]);
|
|
1938
|
+
const x = (j = e.plugins) == null ? void 0 : j.filter(qa).map((P, K) => {
|
|
1939
|
+
var b;
|
|
1940
|
+
return /* @__PURE__ */ o.jsx(Hr, { children: (b = P.getHead) == null ? void 0 : b.call(P) }, K);
|
|
1939
1941
|
});
|
|
1940
|
-
return a ? /* @__PURE__ */ o.jsxs(
|
|
1941
|
-
/* @__PURE__ */ o.jsx(Ge, { children:
|
|
1942
|
-
/* @__PURE__ */ o.jsx(Qe.Provider, { value:
|
|
1942
|
+
return a ? /* @__PURE__ */ o.jsxs(sa, { client: zt, children: [
|
|
1943
|
+
/* @__PURE__ */ o.jsx(Ge, { children: x }),
|
|
1944
|
+
/* @__PURE__ */ o.jsx(Qe.Provider, { value: d, children: /* @__PURE__ */ o.jsx(ia, { value: v, children: /* @__PURE__ */ o.jsx(ur, { components: r, children: /* @__PURE__ */ o.jsx(Lr, { children: /* @__PURE__ */ o.jsx(ps, { value: n, children: /* @__PURE__ */ o.jsx(mr, { slotlets: e.slotlets, children: /* @__PURE__ */ o.jsx(Kr, { children: t ?? /* @__PURE__ */ o.jsx(St, {}) }) }) }) }) }) }) })
|
|
1943
1945
|
] }) : null;
|
|
1944
|
-
},
|
|
1946
|
+
}, ms = kt(fs), er = (t) => /* @__PURE__ */ o.jsx($a, { FallbackComponent: Va, children: /* @__PURE__ */ o.jsx(ms, { ...t }) });
|
|
1945
1947
|
er.displayName = "DevPortal";
|
|
1946
|
-
const
|
|
1948
|
+
const gs = () => {
|
|
1947
1949
|
const t = J(), { setActiveAnchor: e } = He();
|
|
1948
1950
|
W(() => {
|
|
1949
1951
|
if (!t.hash) return;
|
|
@@ -1960,7 +1962,7 @@ const ms = () => {
|
|
|
1960
1962
|
});
|
|
1961
1963
|
return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
|
|
1962
1964
|
}, [t.hash, e]);
|
|
1963
|
-
},
|
|
1965
|
+
}, vs = () => {
|
|
1964
1966
|
const t = J(), e = ge(t.pathname);
|
|
1965
1967
|
W(() => {
|
|
1966
1968
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
@@ -1974,17 +1976,17 @@ const ms = () => {
|
|
|
1974
1976
|
W(() => {
|
|
1975
1977
|
!r && i.current !== s.pathname && a(Ye(t, s.pathname, n)), i.current = s.pathname;
|
|
1976
1978
|
}, [r, t, n, s.pathname]);
|
|
1977
|
-
const
|
|
1979
|
+
const p = () => {
|
|
1978
1980
|
l(!0), a((f) => !f);
|
|
1979
1981
|
};
|
|
1980
1982
|
return W(() => {
|
|
1981
1983
|
l(!1);
|
|
1982
1984
|
}, []), {
|
|
1983
1985
|
open: r,
|
|
1984
|
-
onOpenChange:
|
|
1986
|
+
onOpenChange: p,
|
|
1985
1987
|
"data-animate": c
|
|
1986
1988
|
};
|
|
1987
|
-
}, _e =
|
|
1989
|
+
}, _e = $r(
|
|
1988
1990
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
1989
1991
|
{
|
|
1990
1992
|
variants: {
|
|
@@ -1998,7 +2000,7 @@ const ms = () => {
|
|
|
1998
2000
|
}
|
|
1999
2001
|
}
|
|
2000
2002
|
}
|
|
2001
|
-
),
|
|
2003
|
+
), xs = "data-anchor", nr = ({
|
|
2002
2004
|
category: t,
|
|
2003
2005
|
item: e,
|
|
2004
2006
|
activeAnchor: n,
|
|
@@ -2010,8 +2012,8 @@ const ms = () => {
|
|
|
2010
2012
|
path: s,
|
|
2011
2013
|
defaultOpen: () => Ye(e, i.pathname, a)
|
|
2012
2014
|
});
|
|
2013
|
-
if (
|
|
2014
|
-
const
|
|
2015
|
+
if (ca(e)) {
|
|
2016
|
+
const p = R(
|
|
2015
2017
|
"flex items-center gap-2",
|
|
2016
2018
|
_e({
|
|
2017
2019
|
isActive: e.href === i.pathname
|
|
@@ -2020,16 +2022,16 @@ const ms = () => {
|
|
|
2020
2022
|
return e.href.startsWith("http") ? /* @__PURE__ */ o.jsxs(
|
|
2021
2023
|
"a",
|
|
2022
2024
|
{
|
|
2023
|
-
className:
|
|
2025
|
+
className: p,
|
|
2024
2026
|
href: e.href,
|
|
2025
2027
|
target: "_blank",
|
|
2026
2028
|
rel: "noopener noreferrer",
|
|
2027
2029
|
children: [
|
|
2028
2030
|
e.label,
|
|
2029
|
-
/* @__PURE__ */ o.jsx(
|
|
2031
|
+
/* @__PURE__ */ o.jsx(ha, { size: 14 })
|
|
2030
2032
|
]
|
|
2031
2033
|
}
|
|
2032
|
-
) : /* @__PURE__ */ o.jsx($e, { className:
|
|
2034
|
+
) : /* @__PURE__ */ o.jsx($e, { className: p, to: e.href, children: e.label });
|
|
2033
2035
|
}
|
|
2034
2036
|
const l = /* @__PURE__ */ o.jsxs("div", { className: "flex justify-between w-full", children: [
|
|
2035
2037
|
/* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
|
|
@@ -2055,22 +2057,22 @@ const ms = () => {
|
|
|
2055
2057
|
children: l
|
|
2056
2058
|
}
|
|
2057
2059
|
),
|
|
2058
|
-
/* @__PURE__ */ o.jsx($t, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-1.5", children: e.children.map((
|
|
2060
|
+
/* @__PURE__ */ o.jsx($t, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-1.5", children: e.children.map((p) => /* @__PURE__ */ o.jsx(
|
|
2059
2061
|
nr,
|
|
2060
2062
|
{
|
|
2061
2063
|
category: t,
|
|
2062
|
-
item:
|
|
2064
|
+
item: p,
|
|
2063
2065
|
activeAnchor: n,
|
|
2064
2066
|
currentTopNavItem: r,
|
|
2065
2067
|
basePath: s
|
|
2066
2068
|
},
|
|
2067
|
-
wt(
|
|
2069
|
+
wt(p) ? p.path : p.href
|
|
2068
2070
|
)) }) })
|
|
2069
2071
|
] }) : e.path.startsWith("#") ? /* @__PURE__ */ o.jsx(
|
|
2070
2072
|
lr,
|
|
2071
2073
|
{
|
|
2072
2074
|
to: e.path,
|
|
2073
|
-
[
|
|
2075
|
+
[xs]: e.path,
|
|
2074
2076
|
className: _e({
|
|
2075
2077
|
isActive: e.path.slice(1) === n,
|
|
2076
2078
|
isMuted: e.muted
|
|
@@ -2080,15 +2082,15 @@ const ms = () => {
|
|
|
2080
2082
|
) : /* @__PURE__ */ o.jsx(
|
|
2081
2083
|
$e,
|
|
2082
2084
|
{
|
|
2083
|
-
className: ({ isActive:
|
|
2085
|
+
className: ({ isActive: p }) => _e({ isActive: p }),
|
|
2084
2086
|
to: s,
|
|
2085
2087
|
children: l
|
|
2086
2088
|
}
|
|
2087
2089
|
) });
|
|
2088
|
-
},
|
|
2090
|
+
}, ys = ({
|
|
2089
2091
|
category: t
|
|
2090
2092
|
}) => {
|
|
2091
|
-
const { activeAnchor: e } = He(), n =
|
|
2093
|
+
const { activeAnchor: e } = He(), n = ua(), r = J(), a = t.collapsible ?? !0, s = tr({
|
|
2092
2094
|
item: t,
|
|
2093
2095
|
path: (n == null ? void 0 : n.path) ?? "",
|
|
2094
2096
|
defaultOpen: () => !a || t.expanded || Ye(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
|
|
@@ -2125,7 +2127,7 @@ const ms = () => {
|
|
|
2125
2127
|
c
|
|
2126
2128
|
)) }) })
|
|
2127
2129
|
] }, t.label);
|
|
2128
|
-
},
|
|
2130
|
+
}, ws = zr(function({ children: e, className: n, pushMainContent: r }, a) {
|
|
2129
2131
|
return /* @__PURE__ */ o.jsx(
|
|
2130
2132
|
"nav",
|
|
2131
2133
|
{
|
|
@@ -2138,23 +2140,23 @@ const ms = () => {
|
|
|
2138
2140
|
children: e
|
|
2139
2141
|
}
|
|
2140
2142
|
);
|
|
2141
|
-
}),
|
|
2142
|
-
const t = ge(null), e =
|
|
2143
|
+
}), bs = () => {
|
|
2144
|
+
const t = ge(null), e = la();
|
|
2143
2145
|
return /* @__PURE__ */ o.jsxs(
|
|
2144
|
-
|
|
2146
|
+
ws,
|
|
2145
2147
|
{
|
|
2146
2148
|
ref: t,
|
|
2147
2149
|
pushMainContent: e.data.items.length > 0,
|
|
2148
2150
|
children: [
|
|
2149
2151
|
/* @__PURE__ */ o.jsx(Se, { name: "zudoku-before-navigation" }),
|
|
2150
|
-
e.data.items.map((n) => /* @__PURE__ */ o.jsx(
|
|
2152
|
+
e.data.items.map((n) => /* @__PURE__ */ o.jsx(ys, { category: n }, n.label)),
|
|
2151
2153
|
/* @__PURE__ */ o.jsx(Se, { name: "zudoku-after-navigation" })
|
|
2152
2154
|
]
|
|
2153
2155
|
}
|
|
2154
2156
|
);
|
|
2155
|
-
},
|
|
2157
|
+
}, Ms = ({ children: t }) => {
|
|
2156
2158
|
const e = J(), { setActiveAnchor: n } = He(), { meta: r } = Ve();
|
|
2157
|
-
|
|
2159
|
+
gs(), vs();
|
|
2158
2160
|
const a = ge(e.pathname);
|
|
2159
2161
|
return W(() => {
|
|
2160
2162
|
e.pathname !== a.current && n(""), a.current = e.pathname;
|
|
@@ -2165,11 +2167,11 @@ const ms = () => {
|
|
|
2165
2167
|
] }),
|
|
2166
2168
|
/* @__PURE__ */ o.jsx(Jn, {}),
|
|
2167
2169
|
/* @__PURE__ */ o.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ o.jsxs(
|
|
2168
|
-
|
|
2170
|
+
Vr,
|
|
2169
2171
|
{
|
|
2170
|
-
fallback: /* @__PURE__ */ o.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ o.jsx(
|
|
2172
|
+
fallback: /* @__PURE__ */ o.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ o.jsx(Jr, {}) }),
|
|
2171
2173
|
children: [
|
|
2172
|
-
/* @__PURE__ */ o.jsx(
|
|
2174
|
+
/* @__PURE__ */ o.jsx(bs, {}),
|
|
2173
2175
|
/* @__PURE__ */ o.jsxs(
|
|
2174
2176
|
"main",
|
|
2175
2177
|
{
|
|
@@ -2190,18 +2192,18 @@ const ms = () => {
|
|
|
2190
2192
|
}
|
|
2191
2193
|
) })
|
|
2192
2194
|
] });
|
|
2193
|
-
},
|
|
2195
|
+
}, ks = dr, Fs = Br, Ls = er, Ks = Ms, $s = Ee, Bs = gr, Qs = ma, Us = Ia, Gs = Aa, qs = Be, Hs = Ge;
|
|
2194
2196
|
export {
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2197
|
+
Us as Bootstrap,
|
|
2198
|
+
Gs as BootstrapStatic,
|
|
2199
|
+
qs as Button,
|
|
2200
|
+
Fs as Callout,
|
|
2201
|
+
Ls as DevPortal,
|
|
2202
|
+
Hs as Head,
|
|
2203
|
+
Ks as Layout,
|
|
2204
|
+
$s as Link,
|
|
2205
|
+
Bs as RouterError,
|
|
2206
|
+
Qs as ServerError,
|
|
2207
|
+
ks as useMDXComponents
|
|
2206
2208
|
};
|
|
2207
2209
|
//# sourceMappingURL=zudoku.components.js.map
|