zudoku 0.3.0-dev.77 → 0.3.0-dev.78
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/validate.d.ts +130 -130
- package/dist/lib/components/DevPortal.js +11 -2
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/core/plugins.d.ts +3 -0
- package/dist/lib/core/plugins.js +1 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +2 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +8 -16
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +18 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +6 -6
- package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +15 -15
- package/dist/lib/plugins/openapi/graphql/graphql.js +67 -67
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +8 -0
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +2 -3
- package/dist/lib/plugins/openapi/playground/PathParams.js +3 -4
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +22 -10
- package/dist/lib/plugins/openapi/playground/Playground.js +37 -25
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +2 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/QueryParams.js +10 -5
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/util/fetchTimeout.d.ts +1 -0
- package/dist/lib/util/fetchTimeout.js +14 -0
- package/dist/lib/util/fetchTimeout.js.map +1 -0
- package/lib/{CategoryHeading-D0V23fMT.js → CategoryHeading-DCmchnA1.js} +2 -2
- package/lib/{CategoryHeading-D0V23fMT.js.map → CategoryHeading-DCmchnA1.js.map} +1 -1
- package/lib/{Combination-CgxP9BB4.js → Combination-BIdpLnWg.js} +27 -33
- package/lib/Combination-BIdpLnWg.js.map +1 -0
- package/lib/DeveloperHint-DQVwIery.js +10 -0
- package/lib/DeveloperHint-DQVwIery.js.map +1 -0
- package/lib/{Input-BcZoDid4.js → Input-qyZciIJp.js} +3 -3
- package/lib/{Input-BcZoDid4.js.map → Input-qyZciIJp.js.map} +1 -1
- package/lib/{Markdown-IsabnbGN.js → Markdown-QsZ-PHET.js} +3 -3
- package/lib/{Markdown-IsabnbGN.js.map → Markdown-QsZ-PHET.js.map} +1 -1
- package/lib/{MdxPage-B1B2Inj5.js → MdxPage-V4FCB0C_.js} +3 -3
- package/lib/{MdxPage-B1B2Inj5.js.map → MdxPage-V4FCB0C_.js.map} +1 -1
- package/lib/OperationList-qfNEBPAx.js +4397 -0
- package/lib/OperationList-qfNEBPAx.js.map +1 -0
- package/lib/{Route-D0Ub80Oa.js → Route-CogU1ofM.js} +2 -2
- package/lib/{Route-D0Ub80Oa.js.map → Route-CogU1ofM.js.map} +1 -1
- package/lib/{SlotletProvider-CJXWb2gw.js → SlotletProvider-D_Vz-7c_.js} +4 -4
- package/lib/{SlotletProvider-CJXWb2gw.js.map → SlotletProvider-D_Vz-7c_.js.map} +1 -1
- package/lib/Spinner-yPSFgoZ8.js +244 -0
- package/lib/Spinner-yPSFgoZ8.js.map +1 -0
- package/lib/index-BpO_SgPQ.js +124 -0
- package/lib/index-BpO_SgPQ.js.map +1 -0
- package/lib/index-DccqEFTy.js +1878 -0
- package/lib/index-DccqEFTy.js.map +1 -0
- package/lib/{urql-DMlBWUKL.js → urql-DrBfkb92.js} +2 -3
- package/lib/{urql-DMlBWUKL.js.map → urql-DrBfkb92.js.map} +1 -1
- package/lib/zudoku.components.js +352 -348
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +7 -6
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-page.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -4
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/components/DevPortal.tsx +14 -5
- package/src/lib/core/plugins.ts +7 -0
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +9 -17
- package/src/lib/plugins/openapi/Sidecar.tsx +23 -1
- package/src/lib/plugins/openapi/graphql/gql.ts +8 -8
- package/src/lib/plugins/openapi/graphql/graphql.ts +80 -80
- package/src/lib/plugins/openapi/index.tsx +15 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +14 -20
- package/src/lib/plugins/openapi/playground/Playground.tsx +69 -45
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +8 -6
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +86 -72
- package/src/lib/util/fetchTimeout.tsx +21 -0
- package/lib/Combination-CgxP9BB4.js.map +0 -1
- package/lib/OperationList-B2nsuf1v.js +0 -5471
- package/lib/OperationList-B2nsuf1v.js.map +0 -1
- package/lib/Spinner-BhtSoFka.js +0 -359
- package/lib/Spinner-BhtSoFka.js.map +0 -1
- package/lib/index-BC2Ob2BR.js +0 -727
- package/lib/index-BC2Ob2BR.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -3,11 +3,11 @@ 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 h = (t, e, n) => (ht(t, e, "read from private field"), n ? n.call(t) : e.get(t)),
|
|
6
|
+
var A = (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)), O = (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), b = (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
|
+
b(t, e, a, n);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
13
|
return h(t, e, r);
|
|
@@ -15,16 +15,17 @@ var Ce = (t, e, n, r) => ({
|
|
|
15
15
|
});
|
|
16
16
|
import { H as _t, a as Ge, M as ur, A as lr, u as dr } from "./AnchorLink-BZcpTwOs.js";
|
|
17
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-
|
|
18
|
+
import { E as Et, u as fr, S as mr, a as Se, R as gr } from "./SlotletProvider-D_Vz-7c_.js";
|
|
19
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
|
|
21
|
-
import { c as me, a as
|
|
20
|
+
import { M as wr, c as Mr, a as jt, b as Nt, A as br, 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-BIdpLnWg.js";
|
|
21
|
+
import { c as me, a as P, 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-QsZ-PHET.js";
|
|
22
22
|
import * as u from "react";
|
|
23
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
25
|
import { r as Yr } from "./router-BiRCp01d.js";
|
|
26
|
-
import { S as Qe,
|
|
27
|
-
import { S as
|
|
26
|
+
import { S as Qe, R as Ft, T as Lt, C as Kt } from "./index-BpO_SgPQ.js";
|
|
27
|
+
import { S as $t, h as Bt, Q as Xr, n as j, m as ft, a as mt, b as Q, e as Wr, c as Jr, d as Zr, f as ea, o as gt, r as vt, g as ta, i as xt, p as yt, s as na, u as Ve, j as ra, D as aa, k as Ye, l as wt, q as Qt, t as oa, v as sa, w as ia } from "./DevPortalProvider-BTFqdAEL.js";
|
|
28
|
+
import { c as Ut, P as Ie, R as ca, I as ua, S as la } from "./Spinner-yPSFgoZ8.js";
|
|
28
29
|
/**
|
|
29
30
|
* @license lucide-react v0.378.0 - ISC
|
|
30
31
|
*
|
|
@@ -88,7 +89,7 @@ function ma({ error: t }) {
|
|
|
88
89
|
var ve = {};
|
|
89
90
|
const ga = /* @__PURE__ */ ze(Yr), va = /* @__PURE__ */ ze(vr), xa = /* @__PURE__ */ ze(hr);
|
|
90
91
|
Object.defineProperty(ve, "__esModule", { value: !0 });
|
|
91
|
-
var ya = Qr,
|
|
92
|
+
var ya = Qr, K = ga, We = va, U = xa;
|
|
92
93
|
function wa(t) {
|
|
93
94
|
if (t && t.__esModule) return t;
|
|
94
95
|
var e = /* @__PURE__ */ Object.create(null);
|
|
@@ -104,22 +105,22 @@ function wa(t) {
|
|
|
104
105
|
}
|
|
105
106
|
}), e.default = t, Object.freeze(e);
|
|
106
107
|
}
|
|
107
|
-
var
|
|
108
|
-
function
|
|
108
|
+
var F = /* @__PURE__ */ wa(ya);
|
|
109
|
+
function Ma({
|
|
109
110
|
basename: t,
|
|
110
111
|
children: e,
|
|
111
112
|
location: n = "/",
|
|
112
113
|
future: r
|
|
113
114
|
}) {
|
|
114
115
|
typeof n == "string" && (n = U.parsePath(n));
|
|
115
|
-
let a =
|
|
116
|
+
let a = K.Action.Pop, s = {
|
|
116
117
|
pathname: n.pathname || "/",
|
|
117
118
|
search: n.search || "",
|
|
118
119
|
hash: n.hash || "",
|
|
119
120
|
state: n.state != null ? n.state : null,
|
|
120
121
|
key: n.key || "default"
|
|
121
122
|
}, i = Gt();
|
|
122
|
-
return /* @__PURE__ */
|
|
123
|
+
return /* @__PURE__ */ F.createElement(U.Router, {
|
|
123
124
|
basename: t,
|
|
124
125
|
children: e,
|
|
125
126
|
location: s,
|
|
@@ -129,13 +130,13 @@ function ba({
|
|
|
129
130
|
static: !0
|
|
130
131
|
});
|
|
131
132
|
}
|
|
132
|
-
function
|
|
133
|
+
function ba({
|
|
133
134
|
context: t,
|
|
134
135
|
router: e,
|
|
135
136
|
hydrate: n = !0,
|
|
136
137
|
nonce: r
|
|
137
138
|
}) {
|
|
138
|
-
e && t || (process.env.NODE_ENV !== "production" ?
|
|
139
|
+
e && t || (process.env.NODE_ENV !== "production" ? K.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : K.UNSAFE_invariant(!1));
|
|
139
140
|
let a = {
|
|
140
141
|
router: e,
|
|
141
142
|
navigator: Gt(),
|
|
@@ -154,17 +155,17 @@ function Ma({
|
|
|
154
155
|
let {
|
|
155
156
|
state: c
|
|
156
157
|
} = a.router;
|
|
157
|
-
return /* @__PURE__ */
|
|
158
|
+
return /* @__PURE__ */ F.createElement(F.Fragment, null, /* @__PURE__ */ F.createElement(U.UNSAFE_DataRouterContext.Provider, {
|
|
158
159
|
value: a
|
|
159
|
-
}, /* @__PURE__ */
|
|
160
|
+
}, /* @__PURE__ */ F.createElement(U.UNSAFE_DataRouterStateContext.Provider, {
|
|
160
161
|
value: c
|
|
161
|
-
}, /* @__PURE__ */
|
|
162
|
+
}, /* @__PURE__ */ F.createElement(U.UNSAFE_FetchersContext.Provider, {
|
|
162
163
|
value: s
|
|
163
|
-
}, /* @__PURE__ */
|
|
164
|
+
}, /* @__PURE__ */ F.createElement(U.UNSAFE_ViewTransitionContext.Provider, {
|
|
164
165
|
value: {
|
|
165
166
|
isTransitioning: !1
|
|
166
167
|
}
|
|
167
|
-
}, /* @__PURE__ */
|
|
168
|
+
}, /* @__PURE__ */ F.createElement(U.Router, {
|
|
168
169
|
basename: a.basename,
|
|
169
170
|
location: c.location,
|
|
170
171
|
navigationType: c.historyAction,
|
|
@@ -173,11 +174,11 @@ function Ma({
|
|
|
173
174
|
future: {
|
|
174
175
|
v7_relativeSplatPath: e.future.v7_relativeSplatPath
|
|
175
176
|
}
|
|
176
|
-
}, /* @__PURE__ */
|
|
177
|
+
}, /* @__PURE__ */ F.createElement(Ca, {
|
|
177
178
|
routes: e.routes,
|
|
178
179
|
future: e.future,
|
|
179
180
|
state: c
|
|
180
|
-
})))))), i ? /* @__PURE__ */
|
|
181
|
+
})))))), i ? /* @__PURE__ */ F.createElement("script", {
|
|
181
182
|
suppressHydrationWarning: !0,
|
|
182
183
|
nonce: r,
|
|
183
184
|
dangerouslySetInnerHTML: {
|
|
@@ -196,7 +197,7 @@ function Pa(t) {
|
|
|
196
197
|
if (!t) return null;
|
|
197
198
|
let e = Object.entries(t), n = {};
|
|
198
199
|
for (let [r, a] of e)
|
|
199
|
-
|
|
200
|
+
K.isRouteErrorResponse(a) ? n[r] = {
|
|
200
201
|
...a,
|
|
201
202
|
__type: "RouteErrorResponse"
|
|
202
203
|
} : a instanceof Error ? n[r] = {
|
|
@@ -232,13 +233,13 @@ function Gt() {
|
|
|
232
233
|
};
|
|
233
234
|
}
|
|
234
235
|
function Ra(t, e) {
|
|
235
|
-
return
|
|
236
|
+
return K.createStaticHandler(t, {
|
|
236
237
|
...e,
|
|
237
238
|
mapRouteProperties: We.UNSAFE_mapRouteProperties
|
|
238
239
|
});
|
|
239
240
|
}
|
|
240
241
|
function _a(t, e, n = {}) {
|
|
241
|
-
let r = {}, a =
|
|
242
|
+
let r = {}, a = K.UNSAFE_convertRoutesToDataRoutes(t, We.UNSAFE_mapRouteProperties, void 0, r), s = e.matches.map((c) => {
|
|
242
243
|
let l = r[c.route.id] || c.route;
|
|
243
244
|
return {
|
|
244
245
|
...c,
|
|
@@ -262,14 +263,14 @@ function _a(t, e, n = {}) {
|
|
|
262
263
|
},
|
|
263
264
|
get state() {
|
|
264
265
|
return {
|
|
265
|
-
historyAction:
|
|
266
|
+
historyAction: K.Action.Pop,
|
|
266
267
|
location: e.location,
|
|
267
268
|
matches: s,
|
|
268
269
|
loaderData: e.loaderData,
|
|
269
270
|
actionData: e.actionData,
|
|
270
271
|
errors: e.errors,
|
|
271
272
|
initialized: !0,
|
|
272
|
-
navigation:
|
|
273
|
+
navigation: K.IDLE_NAVIGATION,
|
|
273
274
|
restoreScrollPosition: null,
|
|
274
275
|
preventScrollReset: !1,
|
|
275
276
|
revalidation: "idle",
|
|
@@ -303,7 +304,7 @@ function _a(t, e, n = {}) {
|
|
|
303
304
|
createHref: qt,
|
|
304
305
|
encodeLocation: Ht,
|
|
305
306
|
getFetcher() {
|
|
306
|
-
return
|
|
307
|
+
return K.IDLE_FETCHER;
|
|
307
308
|
},
|
|
308
309
|
deleteFetcher() {
|
|
309
310
|
throw i("deleteFetcher");
|
|
@@ -312,7 +313,7 @@ function _a(t, e, n = {}) {
|
|
|
312
313
|
throw i("dispose");
|
|
313
314
|
},
|
|
314
315
|
getBlocker() {
|
|
315
|
-
return
|
|
316
|
+
return K.IDLE_BLOCKER;
|
|
316
317
|
},
|
|
317
318
|
deleteBlocker() {
|
|
318
319
|
throw i("deleteBlocker");
|
|
@@ -350,8 +351,8 @@ const Ea = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Sa = {
|
|
|
350
351
|
function Na(t) {
|
|
351
352
|
return t.replace(ja, (e) => Sa[e]);
|
|
352
353
|
}
|
|
353
|
-
ve.StaticRouter =
|
|
354
|
-
var Da = ve.StaticRouterProvider =
|
|
354
|
+
ve.StaticRouter = Ma;
|
|
355
|
+
var Da = ve.StaticRouterProvider = ba;
|
|
355
356
|
ve.createStaticHandler = Ra;
|
|
356
357
|
ve.createStaticRouter = _a;
|
|
357
358
|
const Ia = ({
|
|
@@ -362,16 +363,16 @@ const Ia = ({
|
|
|
362
363
|
context: e,
|
|
363
364
|
helmetContext: n
|
|
364
365
|
}) => /* @__PURE__ */ o.jsx(Ot, { children: /* @__PURE__ */ o.jsx(_t, { context: n, children: /* @__PURE__ */ o.jsx(Da, { router: t, context: e }) }) });
|
|
365
|
-
var
|
|
366
|
+
var L, Ct, Oa = (Ct = class extends $t {
|
|
366
367
|
constructor(e = {}) {
|
|
367
368
|
super();
|
|
368
|
-
|
|
369
|
-
this.config = e,
|
|
369
|
+
O(this, L);
|
|
370
|
+
this.config = e, b(this, L, /* @__PURE__ */ new Map());
|
|
370
371
|
}
|
|
371
372
|
build(e, n, r) {
|
|
372
|
-
const a = n.queryKey, s = n.queryHash ??
|
|
373
|
+
const a = n.queryKey, s = n.queryHash ?? Bt(a, n);
|
|
373
374
|
let i = this.get(s);
|
|
374
|
-
return i || (i = new
|
|
375
|
+
return i || (i = new Xr({
|
|
375
376
|
cache: this,
|
|
376
377
|
queryKey: a,
|
|
377
378
|
queryHash: s,
|
|
@@ -381,27 +382,27 @@ var F, Ct, Oa = (Ct = class extends Bt {
|
|
|
381
382
|
}), this.add(i)), i;
|
|
382
383
|
}
|
|
383
384
|
add(e) {
|
|
384
|
-
h(this,
|
|
385
|
+
h(this, L).has(e.queryHash) || (h(this, L).set(e.queryHash, e), this.notify({
|
|
385
386
|
type: "added",
|
|
386
387
|
query: e
|
|
387
388
|
}));
|
|
388
389
|
}
|
|
389
390
|
remove(e) {
|
|
390
|
-
const n = h(this,
|
|
391
|
-
n && (e.destroy(), n === e && h(this,
|
|
391
|
+
const n = h(this, L).get(e.queryHash);
|
|
392
|
+
n && (e.destroy(), n === e && h(this, L).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
392
393
|
}
|
|
393
394
|
clear() {
|
|
394
|
-
|
|
395
|
+
j.batch(() => {
|
|
395
396
|
this.getAll().forEach((e) => {
|
|
396
397
|
this.remove(e);
|
|
397
398
|
});
|
|
398
399
|
});
|
|
399
400
|
}
|
|
400
401
|
get(e) {
|
|
401
|
-
return h(this,
|
|
402
|
+
return h(this, L).get(e);
|
|
402
403
|
}
|
|
403
404
|
getAll() {
|
|
404
|
-
return [...h(this,
|
|
405
|
+
return [...h(this, L).values()];
|
|
405
406
|
}
|
|
406
407
|
find(e) {
|
|
407
408
|
const n = { exact: !0, ...e };
|
|
@@ -414,32 +415,32 @@ var F, Ct, Oa = (Ct = class extends Bt {
|
|
|
414
415
|
return Object.keys(e).length > 0 ? n.filter((r) => ft(e, r)) : n;
|
|
415
416
|
}
|
|
416
417
|
notify(e) {
|
|
417
|
-
|
|
418
|
+
j.batch(() => {
|
|
418
419
|
this.listeners.forEach((n) => {
|
|
419
420
|
n(e);
|
|
420
421
|
});
|
|
421
422
|
});
|
|
422
423
|
}
|
|
423
424
|
onFocus() {
|
|
424
|
-
|
|
425
|
+
j.batch(() => {
|
|
425
426
|
this.getAll().forEach((e) => {
|
|
426
427
|
e.onFocus();
|
|
427
428
|
});
|
|
428
429
|
});
|
|
429
430
|
}
|
|
430
431
|
onOnline() {
|
|
431
|
-
|
|
432
|
+
j.batch(() => {
|
|
432
433
|
this.getAll().forEach((e) => {
|
|
433
434
|
e.onOnline();
|
|
434
435
|
});
|
|
435
436
|
});
|
|
436
437
|
}
|
|
437
|
-
},
|
|
438
|
+
}, L = new WeakMap(), Ct), S, pe, Pt, Ta = (Pt = class extends $t {
|
|
438
439
|
constructor(e = {}) {
|
|
439
440
|
super();
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
this.config = e,
|
|
441
|
+
O(this, S);
|
|
442
|
+
O(this, pe);
|
|
443
|
+
this.config = e, b(this, S, /* @__PURE__ */ new Map()), b(this, pe, Date.now());
|
|
443
444
|
}
|
|
444
445
|
build(e, n, r) {
|
|
445
446
|
const a = new wr({
|
|
@@ -451,37 +452,37 @@ var F, Ct, Oa = (Ct = class extends Bt {
|
|
|
451
452
|
return this.add(a), a;
|
|
452
453
|
}
|
|
453
454
|
add(e) {
|
|
454
|
-
const n = Pe(e), r = h(this,
|
|
455
|
-
r.push(e), h(this,
|
|
455
|
+
const n = Pe(e), r = h(this, S).get(n) ?? [];
|
|
456
|
+
r.push(e), h(this, S).set(n, r), this.notify({ type: "added", mutation: e });
|
|
456
457
|
}
|
|
457
458
|
remove(e) {
|
|
458
459
|
var r;
|
|
459
460
|
const n = Pe(e);
|
|
460
|
-
if (h(this,
|
|
461
|
-
const a = (r = h(this,
|
|
462
|
-
a && (a.length === 0 ? h(this,
|
|
461
|
+
if (h(this, S).has(n)) {
|
|
462
|
+
const a = (r = h(this, S).get(n)) == null ? void 0 : r.filter((s) => s !== e);
|
|
463
|
+
a && (a.length === 0 ? h(this, S).delete(n) : h(this, S).set(n, a));
|
|
463
464
|
}
|
|
464
465
|
this.notify({ type: "removed", mutation: e });
|
|
465
466
|
}
|
|
466
467
|
canRun(e) {
|
|
467
468
|
var r;
|
|
468
|
-
const n = (r = h(this,
|
|
469
|
+
const n = (r = h(this, S).get(Pe(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
|
|
469
470
|
return !n || n === e;
|
|
470
471
|
}
|
|
471
472
|
runNext(e) {
|
|
472
473
|
var r;
|
|
473
|
-
const n = (r = h(this,
|
|
474
|
+
const n = (r = h(this, S).get(Pe(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
|
|
474
475
|
return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
|
|
475
476
|
}
|
|
476
477
|
clear() {
|
|
477
|
-
|
|
478
|
+
j.batch(() => {
|
|
478
479
|
this.getAll().forEach((e) => {
|
|
479
480
|
this.remove(e);
|
|
480
481
|
});
|
|
481
482
|
});
|
|
482
483
|
}
|
|
483
484
|
getAll() {
|
|
484
|
-
return [...h(this,
|
|
485
|
+
return [...h(this, S).values()].flat();
|
|
485
486
|
}
|
|
486
487
|
find(e) {
|
|
487
488
|
const n = { exact: !0, ...e };
|
|
@@ -493,7 +494,7 @@ var F, Ct, Oa = (Ct = class extends Bt {
|
|
|
493
494
|
return this.getAll().filter((n) => mt(e, n));
|
|
494
495
|
}
|
|
495
496
|
notify(e) {
|
|
496
|
-
|
|
497
|
+
j.batch(() => {
|
|
497
498
|
this.listeners.forEach((n) => {
|
|
498
499
|
n(e);
|
|
499
500
|
});
|
|
@@ -501,13 +502,13 @@ var F, Ct, Oa = (Ct = class extends Bt {
|
|
|
501
502
|
}
|
|
502
503
|
resumePausedMutations() {
|
|
503
504
|
const e = this.getAll().filter((n) => n.state.isPaused);
|
|
504
|
-
return
|
|
505
|
+
return j.batch(
|
|
505
506
|
() => Promise.all(
|
|
506
507
|
e.map((n) => n.continue().catch(Q))
|
|
507
508
|
)
|
|
508
509
|
);
|
|
509
510
|
}
|
|
510
|
-
},
|
|
511
|
+
}, S = new WeakMap(), pe = new WeakMap(), Pt);
|
|
511
512
|
function Pe(t) {
|
|
512
513
|
var e;
|
|
513
514
|
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
@@ -516,51 +517,51 @@ function ka(t) {
|
|
|
516
517
|
return {
|
|
517
518
|
onFetch: (e, n) => {
|
|
518
519
|
const r = async () => {
|
|
519
|
-
var x,
|
|
520
|
-
const a = e.options, s = (
|
|
520
|
+
var x, R, N, _, D;
|
|
521
|
+
const a = e.options, s = (N = (R = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : N.direction, i = ((_ = e.state.data) == null ? void 0 : _.pages) || [], c = ((D = e.state.data) == null ? void 0 : D.pageParams) || [], l = { pages: [], pageParams: [] };
|
|
521
522
|
let p = !1;
|
|
522
|
-
const f = (
|
|
523
|
-
Object.defineProperty(
|
|
523
|
+
const f = (w) => {
|
|
524
|
+
Object.defineProperty(w, "signal", {
|
|
524
525
|
enumerable: !0,
|
|
525
526
|
get: () => (e.signal.aborted ? p = !0 : e.signal.addEventListener("abort", () => {
|
|
526
527
|
p = !0;
|
|
527
528
|
}), e.signal)
|
|
528
529
|
});
|
|
529
|
-
}, d =
|
|
530
|
+
}, d = Wr(e.options, e.fetchOptions), g = async (w, E, $) => {
|
|
530
531
|
if (p)
|
|
531
532
|
return Promise.reject();
|
|
532
|
-
if (
|
|
533
|
-
return Promise.resolve(
|
|
533
|
+
if (E == null && w.pages.length)
|
|
534
|
+
return Promise.resolve(w);
|
|
534
535
|
const Y = {
|
|
535
536
|
queryKey: e.queryKey,
|
|
536
|
-
pageParam:
|
|
537
|
+
pageParam: E,
|
|
537
538
|
direction: $ ? "backward" : "forward",
|
|
538
539
|
meta: e.options.meta
|
|
539
540
|
};
|
|
540
541
|
f(Y);
|
|
541
542
|
const ee = await d(
|
|
542
543
|
Y
|
|
543
|
-
), { maxPages:
|
|
544
|
+
), { maxPages: Me } = e.options, X = $ ? Jr : Zr;
|
|
544
545
|
return {
|
|
545
|
-
pages: X(
|
|
546
|
-
pageParams: X(
|
|
546
|
+
pages: X(w.pages, ee, Me),
|
|
547
|
+
pageParams: X(w.pageParams, E, Me)
|
|
547
548
|
};
|
|
548
549
|
};
|
|
549
550
|
let v;
|
|
550
551
|
if (s && i.length) {
|
|
551
|
-
const
|
|
552
|
+
const w = s === "backward", E = w ? Fa : Mt, $ = {
|
|
552
553
|
pages: i,
|
|
553
554
|
pageParams: c
|
|
554
|
-
}, Y =
|
|
555
|
-
v = await g($, Y,
|
|
555
|
+
}, Y = E(a, $);
|
|
556
|
+
v = await g($, Y, w);
|
|
556
557
|
} else {
|
|
557
558
|
v = await g(
|
|
558
559
|
l,
|
|
559
560
|
c[0] ?? a.initialPageParam
|
|
560
561
|
);
|
|
561
|
-
const
|
|
562
|
-
for (let
|
|
563
|
-
const $ =
|
|
562
|
+
const w = t ?? i.length;
|
|
563
|
+
for (let E = 1; E < w; E++) {
|
|
564
|
+
const $ = Mt(a, v);
|
|
564
565
|
v = await g(v, $);
|
|
565
566
|
}
|
|
566
567
|
}
|
|
@@ -582,7 +583,7 @@ function ka(t) {
|
|
|
582
583
|
}
|
|
583
584
|
};
|
|
584
585
|
}
|
|
585
|
-
function
|
|
586
|
+
function Mt(t, { pages: e, pageParams: n }) {
|
|
586
587
|
const r = e.length - 1;
|
|
587
588
|
return t.getNextPageParam(
|
|
588
589
|
e[r],
|
|
@@ -601,31 +602,31 @@ function Fa(t, { pages: e, pageParams: n }) {
|
|
|
601
602
|
n
|
|
602
603
|
);
|
|
603
604
|
}
|
|
604
|
-
var
|
|
605
|
+
var M, q, H, re, ae, z, oe, se, Rt, La = (Rt = class {
|
|
605
606
|
constructor(t = {}) {
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
607
|
+
O(this, M);
|
|
608
|
+
O(this, q);
|
|
609
|
+
O(this, H);
|
|
610
|
+
O(this, re);
|
|
611
|
+
O(this, ae);
|
|
612
|
+
O(this, z);
|
|
613
|
+
O(this, oe);
|
|
614
|
+
O(this, se);
|
|
615
|
+
b(this, M, t.queryCache || new Oa()), b(this, q, t.mutationCache || new Ta()), b(this, H, t.defaultOptions || {}), b(this, re, /* @__PURE__ */ new Map()), b(this, ae, /* @__PURE__ */ new Map()), b(this, z, 0);
|
|
615
616
|
}
|
|
616
617
|
mount() {
|
|
617
|
-
Ce(this, z)._++, h(this, z) === 1 && (
|
|
618
|
-
t && (await this.resumePausedMutations(), h(this,
|
|
619
|
-
})),
|
|
620
|
-
t && (await this.resumePausedMutations(), h(this,
|
|
618
|
+
Ce(this, z)._++, h(this, z) === 1 && (b(this, oe, ea.subscribe(async (t) => {
|
|
619
|
+
t && (await this.resumePausedMutations(), h(this, M).onFocus());
|
|
620
|
+
})), b(this, se, gt.subscribe(async (t) => {
|
|
621
|
+
t && (await this.resumePausedMutations(), h(this, M).onOnline());
|
|
621
622
|
})));
|
|
622
623
|
}
|
|
623
624
|
unmount() {
|
|
624
625
|
var t, e;
|
|
625
|
-
Ce(this, z)._--, h(this, z) === 0 && ((t = h(this, oe)) == null || t.call(this),
|
|
626
|
+
Ce(this, z)._--, h(this, z) === 0 && ((t = h(this, oe)) == null || t.call(this), b(this, oe, void 0), (e = h(this, se)) == null || e.call(this), b(this, se, void 0));
|
|
626
627
|
}
|
|
627
628
|
isFetching(t) {
|
|
628
|
-
return h(this,
|
|
629
|
+
return h(this, M).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
629
630
|
}
|
|
630
631
|
isMutating(t) {
|
|
631
632
|
return h(this, q).findAll({ ...t, status: "pending" }).length;
|
|
@@ -633,33 +634,33 @@ var w, q, H, re, ae, z, oe, se, Rt, La = (Rt = class {
|
|
|
633
634
|
getQueryData(t) {
|
|
634
635
|
var n;
|
|
635
636
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
636
|
-
return (n = h(this,
|
|
637
|
+
return (n = h(this, M).get(e.queryHash)) == null ? void 0 : n.state.data;
|
|
637
638
|
}
|
|
638
639
|
ensureQueryData(t) {
|
|
639
640
|
const e = this.getQueryData(t.queryKey);
|
|
640
641
|
if (e === void 0)
|
|
641
642
|
return this.fetchQuery(t);
|
|
642
643
|
{
|
|
643
|
-
const n = this.defaultQueryOptions(t), r = h(this,
|
|
644
|
+
const n = this.defaultQueryOptions(t), r = h(this, M).build(this, n);
|
|
644
645
|
return t.revalidateIfStale && r.isStaleByTime(vt(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
|
|
645
646
|
}
|
|
646
647
|
}
|
|
647
648
|
getQueriesData(t) {
|
|
648
|
-
return h(this,
|
|
649
|
+
return h(this, M).findAll(t).map(({ queryKey: e, state: n }) => {
|
|
649
650
|
const r = n.data;
|
|
650
651
|
return [e, r];
|
|
651
652
|
});
|
|
652
653
|
}
|
|
653
654
|
setQueryData(t, e, n) {
|
|
654
|
-
const r = this.defaultQueryOptions({ queryKey: t }), a = h(this,
|
|
655
|
+
const r = this.defaultQueryOptions({ queryKey: t }), a = h(this, M).get(
|
|
655
656
|
r.queryHash
|
|
656
|
-
), s = a == null ? void 0 : a.state.data, i =
|
|
657
|
+
), s = a == null ? void 0 : a.state.data, i = ta(e, s);
|
|
657
658
|
if (i !== void 0)
|
|
658
|
-
return h(this,
|
|
659
|
+
return h(this, M).build(this, r).setData(i, { ...n, manual: !0 });
|
|
659
660
|
}
|
|
660
661
|
setQueriesData(t, e, n) {
|
|
661
|
-
return
|
|
662
|
-
() => h(this,
|
|
662
|
+
return j.batch(
|
|
663
|
+
() => h(this, M).findAll(t).map(({ queryKey: r }) => [
|
|
663
664
|
r,
|
|
664
665
|
this.setQueryData(r, e, n)
|
|
665
666
|
])
|
|
@@ -668,34 +669,34 @@ var w, q, H, re, ae, z, oe, se, Rt, La = (Rt = class {
|
|
|
668
669
|
getQueryState(t) {
|
|
669
670
|
var n;
|
|
670
671
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
671
|
-
return (n = h(this,
|
|
672
|
+
return (n = h(this, M).get(e.queryHash)) == null ? void 0 : n.state;
|
|
672
673
|
}
|
|
673
674
|
removeQueries(t) {
|
|
674
|
-
const e = h(this,
|
|
675
|
-
|
|
675
|
+
const e = h(this, M);
|
|
676
|
+
j.batch(() => {
|
|
676
677
|
e.findAll(t).forEach((n) => {
|
|
677
678
|
e.remove(n);
|
|
678
679
|
});
|
|
679
680
|
});
|
|
680
681
|
}
|
|
681
682
|
resetQueries(t, e) {
|
|
682
|
-
const n = h(this,
|
|
683
|
+
const n = h(this, M), r = {
|
|
683
684
|
type: "active",
|
|
684
685
|
...t
|
|
685
686
|
};
|
|
686
|
-
return
|
|
687
|
+
return j.batch(() => (n.findAll(t).forEach((a) => {
|
|
687
688
|
a.reset();
|
|
688
689
|
}), this.refetchQueries(r, e)));
|
|
689
690
|
}
|
|
690
691
|
cancelQueries(t = {}, e = {}) {
|
|
691
|
-
const n = { revert: !0, ...e }, r =
|
|
692
|
-
() => h(this,
|
|
692
|
+
const n = { revert: !0, ...e }, r = j.batch(
|
|
693
|
+
() => h(this, M).findAll(t).map((a) => a.cancel(n))
|
|
693
694
|
);
|
|
694
695
|
return Promise.all(r).then(Q).catch(Q);
|
|
695
696
|
}
|
|
696
697
|
invalidateQueries(t = {}, e = {}) {
|
|
697
|
-
return
|
|
698
|
-
if (h(this,
|
|
698
|
+
return j.batch(() => {
|
|
699
|
+
if (h(this, M).findAll(t).forEach((r) => {
|
|
699
700
|
r.invalidate();
|
|
700
701
|
}), t.refetchType === "none")
|
|
701
702
|
return Promise.resolve();
|
|
@@ -710,8 +711,8 @@ var w, q, H, re, ae, z, oe, se, Rt, La = (Rt = class {
|
|
|
710
711
|
const n = {
|
|
711
712
|
...e,
|
|
712
713
|
cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
|
|
713
|
-
}, r =
|
|
714
|
-
() => h(this,
|
|
714
|
+
}, r = j.batch(
|
|
715
|
+
() => h(this, M).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
|
|
715
716
|
let s = a.fetch(void 0, n);
|
|
716
717
|
return n.throwOnError || (s = s.catch(Q)), a.state.fetchStatus === "paused" ? Promise.resolve() : s;
|
|
717
718
|
})
|
|
@@ -721,7 +722,7 @@ var w, q, H, re, ae, z, oe, se, Rt, La = (Rt = class {
|
|
|
721
722
|
fetchQuery(t) {
|
|
722
723
|
const e = this.defaultQueryOptions(t);
|
|
723
724
|
e.retry === void 0 && (e.retry = !1);
|
|
724
|
-
const n = h(this,
|
|
725
|
+
const n = h(this, M).build(this, e);
|
|
725
726
|
return n.isStaleByTime(
|
|
726
727
|
vt(e.staleTime, n)
|
|
727
728
|
) ? n.fetch(e) : Promise.resolve(n.state.data);
|
|
@@ -739,7 +740,7 @@ var w, q, H, re, ae, z, oe, se, Rt, La = (Rt = class {
|
|
|
739
740
|
return gt.isOnline() ? h(this, q).resumePausedMutations() : Promise.resolve();
|
|
740
741
|
}
|
|
741
742
|
getQueryCache() {
|
|
742
|
-
return h(this,
|
|
743
|
+
return h(this, M);
|
|
743
744
|
}
|
|
744
745
|
getMutationCache() {
|
|
745
746
|
return h(this, q);
|
|
@@ -748,7 +749,7 @@ var w, q, H, re, ae, z, oe, se, Rt, La = (Rt = class {
|
|
|
748
749
|
return h(this, H);
|
|
749
750
|
}
|
|
750
751
|
setDefaultOptions(t) {
|
|
751
|
-
|
|
752
|
+
b(this, H, t);
|
|
752
753
|
}
|
|
753
754
|
setQueryDefaults(t, e) {
|
|
754
755
|
h(this, re).set(xt(t), {
|
|
@@ -785,10 +786,10 @@ var w, q, H, re, ae, z, oe, se, Rt, La = (Rt = class {
|
|
|
785
786
|
...t,
|
|
786
787
|
_defaulted: !0
|
|
787
788
|
};
|
|
788
|
-
return e.queryHash || (e.queryHash =
|
|
789
|
+
return e.queryHash || (e.queryHash = Bt(
|
|
789
790
|
e.queryKey,
|
|
790
791
|
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 ===
|
|
792
|
+
)), 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 === na && (e.enabled = !1), e;
|
|
792
793
|
}
|
|
793
794
|
defaultMutationOptions(t) {
|
|
794
795
|
return t != null && t._defaulted ? t : {
|
|
@@ -799,9 +800,9 @@ var w, q, H, re, ae, z, oe, se, Rt, La = (Rt = class {
|
|
|
799
800
|
};
|
|
800
801
|
}
|
|
801
802
|
clear() {
|
|
802
|
-
h(this,
|
|
803
|
+
h(this, M).clear(), h(this, q).clear();
|
|
803
804
|
}
|
|
804
|
-
},
|
|
805
|
+
}, M = 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
806
|
const Ka = Tt(null), Ke = {
|
|
806
807
|
didCatch: !1,
|
|
807
808
|
error: null
|
|
@@ -886,16 +887,16 @@ function Ba() {
|
|
|
886
887
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
887
888
|
return t.length !== e.length || t.some((n, r) => !Object.is(n, e[r]));
|
|
888
889
|
}
|
|
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
|
|
890
|
+
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) => "getMdxComponents" in t && typeof t.getMdxComponents == "function", za = (t) => "getIdentities" in t && typeof t.getIdentities == "function", zt = new La();
|
|
891
|
+
class Va {
|
|
891
892
|
constructor(e) {
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
893
|
+
A(this, "plugins", []);
|
|
894
|
+
A(this, "navigation");
|
|
895
|
+
A(this, "meta");
|
|
896
|
+
A(this, "page");
|
|
897
|
+
A(this, "authentication");
|
|
898
|
+
A(this, "navigationPlugins");
|
|
899
|
+
A(this, "initialize", async ({
|
|
899
900
|
navigate: e
|
|
900
901
|
}) => {
|
|
901
902
|
await Promise.all(
|
|
@@ -905,13 +906,13 @@ class za {
|
|
|
905
906
|
})
|
|
906
907
|
);
|
|
907
908
|
});
|
|
908
|
-
|
|
909
|
+
A(this, "invalidateCache", async (e) => {
|
|
909
910
|
await zt.invalidateQueries({ queryKey: e });
|
|
910
911
|
});
|
|
911
|
-
|
|
912
|
-
this.plugins.filter(
|
|
912
|
+
A(this, "getApiIdentities", async () => (await Promise.all(
|
|
913
|
+
this.plugins.filter(za).map((n) => n.getIdentities(this))
|
|
913
914
|
)).flat());
|
|
914
|
-
|
|
915
|
+
A(this, "getNavigation", async (e) => (await Promise.all(
|
|
915
916
|
this.navigationPlugins.map(
|
|
916
917
|
async (r) => {
|
|
917
918
|
var a;
|
|
@@ -919,7 +920,7 @@ class za {
|
|
|
919
920
|
}
|
|
920
921
|
)
|
|
921
922
|
)).flatMap((r) => r ?? []));
|
|
922
|
-
|
|
923
|
+
A(this, "signRequest", async (e) => {
|
|
923
924
|
if (!this.authentication)
|
|
924
925
|
throw new Error("No authentication provider configured");
|
|
925
926
|
const n = await this.authentication.getAccessToken();
|
|
@@ -928,22 +929,22 @@ class za {
|
|
|
928
929
|
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;
|
|
929
930
|
}
|
|
930
931
|
}
|
|
931
|
-
function
|
|
932
|
+
function Ya({ error: t, resetErrorBoundary: e }) {
|
|
932
933
|
return /* @__PURE__ */ o.jsx(Et, { error: t });
|
|
933
934
|
}
|
|
934
935
|
const Re = globalThis;
|
|
935
936
|
(!Re.requestIdleCallback || !Re.cancelIdleCallback) && (Re.requestIdleCallback = (t) => setTimeout(t, 1), Re.cancelIdleCallback = clearTimeout);
|
|
936
|
-
var Ue = ["Enter", " "],
|
|
937
|
+
var Ue = ["Enter", " "], Xa = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp", "PageDown", "End"], Wa = [...Xa, ...Vt], Ja = {
|
|
937
938
|
ltr: [...Ue, "ArrowRight"],
|
|
938
939
|
rtl: [...Ue, "ArrowLeft"]
|
|
939
|
-
},
|
|
940
|
+
}, Za = {
|
|
940
941
|
ltr: ["ArrowLeft"],
|
|
941
942
|
rtl: ["ArrowRight"]
|
|
942
|
-
}, xe = "Menu", [de,
|
|
943
|
-
|
|
943
|
+
}, xe = "Menu", [de, eo, to] = Mr(xe), [Z, Yt] = jt(xe, [
|
|
944
|
+
to,
|
|
944
945
|
Nt,
|
|
945
|
-
|
|
946
|
-
]), ye = Nt(), Xt =
|
|
946
|
+
Ut
|
|
947
|
+
]), ye = Nt(), Xt = Ut(), [Wt, V] = Z(xe), [no, we] = Z(xe), Jt = (t) => {
|
|
947
948
|
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);
|
|
948
949
|
return u.useEffect(() => {
|
|
949
950
|
const v = () => {
|
|
@@ -961,7 +962,7 @@ var Ue = ["Enter", " "], Ya = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp",
|
|
|
961
962
|
content: l,
|
|
962
963
|
onContentChange: p,
|
|
963
964
|
children: /* @__PURE__ */ o.jsx(
|
|
964
|
-
|
|
965
|
+
no,
|
|
965
966
|
{
|
|
966
967
|
scope: e,
|
|
967
968
|
onClose: u.useCallback(() => d(!1), [d]),
|
|
@@ -975,28 +976,28 @@ var Ue = ["Enter", " "], Ya = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp",
|
|
|
975
976
|
) });
|
|
976
977
|
};
|
|
977
978
|
Jt.displayName = xe;
|
|
978
|
-
var
|
|
979
|
+
var ro = "MenuAnchor", Je = u.forwardRef(
|
|
979
980
|
(t, e) => {
|
|
980
981
|
const { __scopeMenu: n, ...r } = t, a = ye(n);
|
|
981
|
-
return /* @__PURE__ */ o.jsx(
|
|
982
|
+
return /* @__PURE__ */ o.jsx(br, { ...a, ...r, ref: e });
|
|
982
983
|
}
|
|
983
984
|
);
|
|
984
|
-
Je.displayName =
|
|
985
|
-
var Ze = "MenuPortal", [
|
|
985
|
+
Je.displayName = ro;
|
|
986
|
+
var Ze = "MenuPortal", [ao, Zt] = Z(Ze, {
|
|
986
987
|
forceMount: void 0
|
|
987
988
|
}), en = (t) => {
|
|
988
989
|
const { __scopeMenu: e, forceMount: n, children: r, container: a } = t, s = V(Ze, e);
|
|
989
|
-
return /* @__PURE__ */ o.jsx(
|
|
990
|
+
return /* @__PURE__ */ o.jsx(ao, { scope: e, forceMount: n, children: /* @__PURE__ */ o.jsx(Ie, { present: n || s.open, children: /* @__PURE__ */ o.jsx(Ar, { asChild: !0, container: a, children: r }) }) });
|
|
990
991
|
};
|
|
991
992
|
en.displayName = Ze;
|
|
992
|
-
var
|
|
993
|
+
var T = "MenuContent", [oo, et] = Z(T), tn = u.forwardRef(
|
|
993
994
|
(t, e) => {
|
|
994
|
-
const n = Zt(
|
|
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(
|
|
995
|
+
const n = Zt(T, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = V(T, t.__scopeMenu), i = we(T, t.__scopeMenu);
|
|
996
|
+
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(so, { ...a, ref: e }) : /* @__PURE__ */ o.jsx(io, { ...a, ref: e }) }) }) });
|
|
996
997
|
}
|
|
997
|
-
),
|
|
998
|
+
), so = u.forwardRef(
|
|
998
999
|
(t, e) => {
|
|
999
|
-
const n = V(
|
|
1000
|
+
const n = V(T, t.__scopeMenu), r = u.useRef(null), a = fe(e, r);
|
|
1000
1001
|
return u.useEffect(() => {
|
|
1001
1002
|
const s = r.current;
|
|
1002
1003
|
if (s) return Cr(s);
|
|
@@ -1017,8 +1018,8 @@ var A = "MenuContent", [ao, et] = Z(A), tn = u.forwardRef(
|
|
|
1017
1018
|
}
|
|
1018
1019
|
);
|
|
1019
1020
|
}
|
|
1020
|
-
),
|
|
1021
|
-
const n = V(
|
|
1021
|
+
), io = u.forwardRef((t, e) => {
|
|
1022
|
+
const n = V(T, t.__scopeMenu);
|
|
1022
1023
|
return /* @__PURE__ */ o.jsx(
|
|
1023
1024
|
tt,
|
|
1024
1025
|
{
|
|
@@ -1046,24 +1047,24 @@ var A = "MenuContent", [ao, et] = Z(A), tn = u.forwardRef(
|
|
|
1046
1047
|
onInteractOutside: g,
|
|
1047
1048
|
onDismiss: v,
|
|
1048
1049
|
disableOutsideScroll: x,
|
|
1049
|
-
...
|
|
1050
|
-
} = t,
|
|
1050
|
+
...R
|
|
1051
|
+
} = t, N = V(T, n), _ = we(T, n), D = ye(n), w = Xt(n), E = eo(n), [$, Y] = u.useState(null), ee = u.useRef(null), Me = fe(e, ee, N.onContentChange), X = u.useRef(0), be = 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) => {
|
|
1051
1052
|
var ne, ut;
|
|
1052
|
-
const
|
|
1053
|
+
const I = be.current + m, k = E().filter((B) => !B.disabled), G = document.activeElement, ke = (ne = k.find((B) => B.ref.current === G)) == null ? void 0 : ne.textValue, Fe = k.map((B) => B.textValue), ct = wo(Fe, I, ke), ce = (ut = k.find((B) => B.textValue === ct)) == null ? void 0 : ut.ref.current;
|
|
1053
1054
|
(function B(lt) {
|
|
1054
|
-
|
|
1055
|
-
})(
|
|
1055
|
+
be.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => B(""), 1e3));
|
|
1056
|
+
})(I), ce && setTimeout(() => ce.focus());
|
|
1056
1057
|
};
|
|
1057
1058
|
u.useEffect(() => () => window.clearTimeout(X.current), []), Pr();
|
|
1058
1059
|
const te = u.useCallback((m) => {
|
|
1059
|
-
var
|
|
1060
|
-
return it.current === ((
|
|
1060
|
+
var k, G;
|
|
1061
|
+
return it.current === ((k = Oe.current) == null ? void 0 : k.side) && bo(m, (G = Oe.current) == null ? void 0 : G.area);
|
|
1061
1062
|
}, []);
|
|
1062
1063
|
return /* @__PURE__ */ o.jsx(
|
|
1063
|
-
|
|
1064
|
+
oo,
|
|
1064
1065
|
{
|
|
1065
1066
|
scope: n,
|
|
1066
|
-
searchRef:
|
|
1067
|
+
searchRef: be,
|
|
1067
1068
|
onItemEnter: u.useCallback(
|
|
1068
1069
|
(m) => {
|
|
1069
1070
|
te(m) && m.preventDefault();
|
|
@@ -1072,8 +1073,8 @@ var A = "MenuContent", [ao, et] = Z(A), tn = u.forwardRef(
|
|
|
1072
1073
|
),
|
|
1073
1074
|
onItemLeave: u.useCallback(
|
|
1074
1075
|
(m) => {
|
|
1075
|
-
var
|
|
1076
|
-
te(m) || ((
|
|
1076
|
+
var I;
|
|
1077
|
+
te(m) || ((I = ee.current) == null || I.focus(), Y(null));
|
|
1077
1078
|
},
|
|
1078
1079
|
[te]
|
|
1079
1080
|
),
|
|
@@ -1093,8 +1094,8 @@ var A = "MenuContent", [ao, et] = Z(A), tn = u.forwardRef(
|
|
|
1093
1094
|
asChild: !0,
|
|
1094
1095
|
trapped: a,
|
|
1095
1096
|
onMountAutoFocus: y(s, (m) => {
|
|
1096
|
-
var
|
|
1097
|
-
m.preventDefault(), (
|
|
1097
|
+
var I;
|
|
1098
|
+
m.preventDefault(), (I = ee.current) == null || I.focus({ preventScroll: !0 });
|
|
1098
1099
|
}),
|
|
1099
1100
|
onUnmountAutoFocus: i,
|
|
1100
1101
|
children: /* @__PURE__ */ o.jsx(
|
|
@@ -1108,17 +1109,17 @@ var A = "MenuContent", [ao, et] = Z(A), tn = u.forwardRef(
|
|
|
1108
1109
|
onInteractOutside: g,
|
|
1109
1110
|
onDismiss: v,
|
|
1110
1111
|
children: /* @__PURE__ */ o.jsx(
|
|
1111
|
-
|
|
1112
|
+
ca,
|
|
1112
1113
|
{
|
|
1113
1114
|
asChild: !0,
|
|
1114
|
-
...
|
|
1115
|
-
dir:
|
|
1115
|
+
...w,
|
|
1116
|
+
dir: _.dir,
|
|
1116
1117
|
orientation: "vertical",
|
|
1117
1118
|
loop: r,
|
|
1118
1119
|
currentTabStopId: $,
|
|
1119
1120
|
onCurrentTabStopIdChange: Y,
|
|
1120
1121
|
onEntryFocus: y(l, (m) => {
|
|
1121
|
-
|
|
1122
|
+
_.isUsingKeyboardRef.current || m.preventDefault();
|
|
1122
1123
|
}),
|
|
1123
1124
|
preventScrollOnEntryFocus: !0,
|
|
1124
1125
|
children: /* @__PURE__ */ o.jsx(
|
|
@@ -1126,30 +1127,30 @@ var A = "MenuContent", [ao, et] = Z(A), tn = u.forwardRef(
|
|
|
1126
1127
|
{
|
|
1127
1128
|
role: "menu",
|
|
1128
1129
|
"aria-orientation": "vertical",
|
|
1129
|
-
"data-state": yn(
|
|
1130
|
+
"data-state": yn(N.open),
|
|
1130
1131
|
"data-radix-menu-content": "",
|
|
1131
|
-
dir:
|
|
1132
|
-
...
|
|
1133
|
-
...
|
|
1134
|
-
ref:
|
|
1135
|
-
style: { outline: "none", ...
|
|
1136
|
-
onKeyDown: y(
|
|
1137
|
-
const
|
|
1138
|
-
|
|
1132
|
+
dir: _.dir,
|
|
1133
|
+
...D,
|
|
1134
|
+
...R,
|
|
1135
|
+
ref: Me,
|
|
1136
|
+
style: { outline: "none", ...R.style },
|
|
1137
|
+
onKeyDown: y(R.onKeyDown, (m) => {
|
|
1138
|
+
const k = m.target.closest("[data-radix-menu-content]") === m.currentTarget, G = m.ctrlKey || m.altKey || m.metaKey, ke = m.key.length === 1;
|
|
1139
|
+
k && (m.key === "Tab" && m.preventDefault(), !G && ke && sr(m.key));
|
|
1139
1140
|
const Fe = ee.current;
|
|
1140
|
-
if (m.target !== Fe || !
|
|
1141
|
+
if (m.target !== Fe || !Wa.includes(m.key)) return;
|
|
1141
1142
|
m.preventDefault();
|
|
1142
|
-
const ce =
|
|
1143
|
-
Vt.includes(m.key) && ce.reverse(),
|
|
1143
|
+
const ce = E().filter((ne) => !ne.disabled).map((ne) => ne.ref.current);
|
|
1144
|
+
Vt.includes(m.key) && ce.reverse(), xo(ce);
|
|
1144
1145
|
}),
|
|
1145
1146
|
onBlur: y(t.onBlur, (m) => {
|
|
1146
|
-
m.currentTarget.contains(m.target) || (window.clearTimeout(X.current),
|
|
1147
|
+
m.currentTarget.contains(m.target) || (window.clearTimeout(X.current), be.current = "");
|
|
1147
1148
|
}),
|
|
1148
1149
|
onPointerMove: y(
|
|
1149
1150
|
t.onPointerMove,
|
|
1150
1151
|
he((m) => {
|
|
1151
|
-
const
|
|
1152
|
-
if (m.currentTarget.contains(
|
|
1152
|
+
const I = m.target, k = Te.current !== m.clientX;
|
|
1153
|
+
if (m.currentTarget.contains(I) && k) {
|
|
1153
1154
|
const G = m.clientX > Te.current ? "right" : "left";
|
|
1154
1155
|
it.current = G, Te.current = m.clientX;
|
|
1155
1156
|
}
|
|
@@ -1167,28 +1168,28 @@ var A = "MenuContent", [ao, et] = Z(A), tn = u.forwardRef(
|
|
|
1167
1168
|
);
|
|
1168
1169
|
}
|
|
1169
1170
|
);
|
|
1170
|
-
tn.displayName =
|
|
1171
|
-
var
|
|
1171
|
+
tn.displayName = T;
|
|
1172
|
+
var co = "MenuGroup", nt = u.forwardRef(
|
|
1172
1173
|
(t, e) => {
|
|
1173
1174
|
const { __scopeMenu: n, ...r } = t;
|
|
1174
1175
|
return /* @__PURE__ */ o.jsx(ie.div, { role: "group", ...r, ref: e });
|
|
1175
1176
|
}
|
|
1176
1177
|
);
|
|
1177
|
-
nt.displayName =
|
|
1178
|
-
var
|
|
1178
|
+
nt.displayName = co;
|
|
1179
|
+
var uo = "MenuLabel", nn = u.forwardRef(
|
|
1179
1180
|
(t, e) => {
|
|
1180
1181
|
const { __scopeMenu: n, ...r } = t;
|
|
1181
1182
|
return /* @__PURE__ */ o.jsx(ie.div, { ...r, ref: e });
|
|
1182
1183
|
}
|
|
1183
1184
|
);
|
|
1184
|
-
nn.displayName =
|
|
1185
|
-
var Ne = "MenuItem",
|
|
1185
|
+
nn.displayName = uo;
|
|
1186
|
+
var Ne = "MenuItem", bt = "menu.itemSelect", Ae = u.forwardRef(
|
|
1186
1187
|
(t, e) => {
|
|
1187
1188
|
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 = () => {
|
|
1188
1189
|
const d = s.current;
|
|
1189
1190
|
if (!n && d) {
|
|
1190
|
-
const g = new CustomEvent(
|
|
1191
|
-
d.addEventListener(
|
|
1191
|
+
const g = new CustomEvent(bt, { bubbles: !0, cancelable: !0 });
|
|
1192
|
+
d.addEventListener(bt, (v) => r == null ? void 0 : r(v), { once: !0 }), Dr(d, g), g.defaultPrevented ? p.current = !1 : i.onClose();
|
|
1192
1193
|
}
|
|
1193
1194
|
};
|
|
1194
1195
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1227,7 +1228,7 @@ var rn = u.forwardRef(
|
|
|
1227
1228
|
scope: n,
|
|
1228
1229
|
disabled: r,
|
|
1229
1230
|
textValue: a ?? g,
|
|
1230
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1231
|
+
children: /* @__PURE__ */ o.jsx(ua, { asChild: !0, ...c, focusable: !r, children: /* @__PURE__ */ o.jsx(
|
|
1231
1232
|
ie.div,
|
|
1232
1233
|
{
|
|
1233
1234
|
role: "menuitem",
|
|
@@ -1253,7 +1254,7 @@ var rn = u.forwardRef(
|
|
|
1253
1254
|
}
|
|
1254
1255
|
);
|
|
1255
1256
|
}
|
|
1256
|
-
),
|
|
1257
|
+
), lo = "MenuCheckboxItem", an = u.forwardRef(
|
|
1257
1258
|
(t, e) => {
|
|
1258
1259
|
const { checked: n = !1, onCheckedChange: r, ...a } = t;
|
|
1259
1260
|
return /* @__PURE__ */ o.jsx(ln, { scope: t.__scopeMenu, checked: n, children: /* @__PURE__ */ o.jsx(
|
|
@@ -1273,21 +1274,21 @@ var rn = u.forwardRef(
|
|
|
1273
1274
|
) });
|
|
1274
1275
|
}
|
|
1275
1276
|
);
|
|
1276
|
-
an.displayName =
|
|
1277
|
-
var on = "MenuRadioGroup", [
|
|
1277
|
+
an.displayName = lo;
|
|
1278
|
+
var on = "MenuRadioGroup", [ho, po] = Z(
|
|
1278
1279
|
on,
|
|
1279
1280
|
{ value: void 0, onValueChange: () => {
|
|
1280
1281
|
} }
|
|
1281
1282
|
), sn = u.forwardRef(
|
|
1282
1283
|
(t, e) => {
|
|
1283
1284
|
const { value: n, onValueChange: r, ...a } = t, s = qe(r);
|
|
1284
|
-
return /* @__PURE__ */ o.jsx(
|
|
1285
|
+
return /* @__PURE__ */ o.jsx(ho, { scope: t.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(nt, { ...a, ref: e }) });
|
|
1285
1286
|
}
|
|
1286
1287
|
);
|
|
1287
1288
|
sn.displayName = on;
|
|
1288
1289
|
var cn = "MenuRadioItem", un = u.forwardRef(
|
|
1289
1290
|
(t, e) => {
|
|
1290
|
-
const { value: n, ...r } = t, a =
|
|
1291
|
+
const { value: n, ...r } = t, a = po(cn, t.__scopeMenu), s = n === a.value;
|
|
1291
1292
|
return /* @__PURE__ */ o.jsx(ln, { scope: t.__scopeMenu, checked: s, children: /* @__PURE__ */ o.jsx(
|
|
1292
1293
|
Ae,
|
|
1293
1294
|
{
|
|
@@ -1309,12 +1310,12 @@ var cn = "MenuRadioItem", un = u.forwardRef(
|
|
|
1309
1310
|
}
|
|
1310
1311
|
);
|
|
1311
1312
|
un.displayName = cn;
|
|
1312
|
-
var rt = "MenuItemIndicator", [ln,
|
|
1313
|
+
var rt = "MenuItemIndicator", [ln, fo] = Z(
|
|
1313
1314
|
rt,
|
|
1314
1315
|
{ checked: !1 }
|
|
1315
1316
|
), dn = u.forwardRef(
|
|
1316
1317
|
(t, e) => {
|
|
1317
|
-
const { __scopeMenu: n, forceMount: r, ...a } = t, s =
|
|
1318
|
+
const { __scopeMenu: n, forceMount: r, ...a } = t, s = fo(rt, n);
|
|
1318
1319
|
return /* @__PURE__ */ o.jsx(
|
|
1319
1320
|
Ie,
|
|
1320
1321
|
{
|
|
@@ -1332,7 +1333,7 @@ var rt = "MenuItemIndicator", [ln, po] = Z(
|
|
|
1332
1333
|
}
|
|
1333
1334
|
);
|
|
1334
1335
|
dn.displayName = rt;
|
|
1335
|
-
var
|
|
1336
|
+
var mo = "MenuSeparator", hn = u.forwardRef(
|
|
1336
1337
|
(t, e) => {
|
|
1337
1338
|
const { __scopeMenu: n, ...r } = t;
|
|
1338
1339
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1346,15 +1347,15 @@ var fo = "MenuSeparator", hn = u.forwardRef(
|
|
|
1346
1347
|
);
|
|
1347
1348
|
}
|
|
1348
1349
|
);
|
|
1349
|
-
hn.displayName =
|
|
1350
|
-
var
|
|
1350
|
+
hn.displayName = mo;
|
|
1351
|
+
var go = "MenuArrow", pn = u.forwardRef(
|
|
1351
1352
|
(t, e) => {
|
|
1352
1353
|
const { __scopeMenu: n, ...r } = t, a = ye(n);
|
|
1353
1354
|
return /* @__PURE__ */ o.jsx(Sr, { ...a, ...r, ref: e });
|
|
1354
1355
|
}
|
|
1355
1356
|
);
|
|
1356
|
-
pn.displayName =
|
|
1357
|
-
var at = "MenuSub", [
|
|
1357
|
+
pn.displayName = go;
|
|
1358
|
+
var at = "MenuSub", [vo, fn] = Z(at), mn = (t) => {
|
|
1358
1359
|
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);
|
|
1359
1360
|
return u.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ o.jsx(It, { ...i, children: /* @__PURE__ */ o.jsx(
|
|
1360
1361
|
Wt,
|
|
@@ -1365,7 +1366,7 @@ var at = "MenuSub", [go, fn] = Z(at), mn = (t) => {
|
|
|
1365
1366
|
content: p,
|
|
1366
1367
|
onContentChange: f,
|
|
1367
1368
|
children: /* @__PURE__ */ o.jsx(
|
|
1368
|
-
|
|
1369
|
+
vo,
|
|
1369
1370
|
{
|
|
1370
1371
|
scope: e,
|
|
1371
1372
|
contentId: je(),
|
|
@@ -1418,18 +1419,18 @@ var ue = "MenuSubTrigger", gn = u.forwardRef(
|
|
|
1418
1419
|
f();
|
|
1419
1420
|
const g = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
|
|
1420
1421
|
if (g) {
|
|
1421
|
-
const
|
|
1422
|
+
const R = (x = n.content) == null ? void 0 : x.dataset.side, N = R === "right", _ = N ? -5 : 5, D = g[N ? "left" : "right"], w = g[N ? "right" : "left"];
|
|
1422
1423
|
s.onPointerGraceIntentChange({
|
|
1423
1424
|
area: [
|
|
1424
1425
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
1425
1426
|
// consistently within polygon bounds
|
|
1426
|
-
{ x: d.clientX +
|
|
1427
|
-
{ x:
|
|
1428
|
-
{ x:
|
|
1429
|
-
{ x:
|
|
1430
|
-
{ x:
|
|
1427
|
+
{ x: d.clientX + _, y: d.clientY },
|
|
1428
|
+
{ x: D, y: g.top },
|
|
1429
|
+
{ x: w, y: g.top },
|
|
1430
|
+
{ x: w, y: g.bottom },
|
|
1431
|
+
{ x: D, y: g.bottom }
|
|
1431
1432
|
],
|
|
1432
|
-
side:
|
|
1433
|
+
side: R
|
|
1433
1434
|
}), window.clearTimeout(c.current), c.current = window.setTimeout(
|
|
1434
1435
|
() => s.onPointerGraceIntentChange(null),
|
|
1435
1436
|
300
|
|
@@ -1443,7 +1444,7 @@ var ue = "MenuSubTrigger", gn = u.forwardRef(
|
|
|
1443
1444
|
onKeyDown: y(t.onKeyDown, (d) => {
|
|
1444
1445
|
var v;
|
|
1445
1446
|
const g = s.searchRef.current !== "";
|
|
1446
|
-
t.disabled || g && d.key === " " ||
|
|
1447
|
+
t.disabled || g && d.key === " " || Ja[r.dir].includes(d.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), d.preventDefault());
|
|
1447
1448
|
})
|
|
1448
1449
|
}
|
|
1449
1450
|
) });
|
|
@@ -1452,7 +1453,7 @@ var ue = "MenuSubTrigger", gn = u.forwardRef(
|
|
|
1452
1453
|
gn.displayName = ue;
|
|
1453
1454
|
var vn = "MenuSubContent", xn = u.forwardRef(
|
|
1454
1455
|
(t, e) => {
|
|
1455
|
-
const n = Zt(
|
|
1456
|
+
const n = Zt(T, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = V(T, t.__scopeMenu), i = we(T, t.__scopeMenu), c = fn(vn, t.__scopeMenu), l = u.useRef(null), p = fe(e, l);
|
|
1456
1457
|
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(
|
|
1457
1458
|
tt,
|
|
1458
1459
|
{
|
|
@@ -1478,7 +1479,7 @@ var vn = "MenuSubContent", xn = u.forwardRef(
|
|
|
1478
1479
|
}),
|
|
1479
1480
|
onKeyDown: y(t.onKeyDown, (f) => {
|
|
1480
1481
|
var v;
|
|
1481
|
-
const d = f.currentTarget.contains(f.target), g =
|
|
1482
|
+
const d = f.currentTarget.contains(f.target), g = Za[i.dir].includes(f.key);
|
|
1482
1483
|
d && g && (s.onOpenChange(!1), (v = c.trigger) == null || v.focus(), f.preventDefault());
|
|
1483
1484
|
})
|
|
1484
1485
|
}
|
|
@@ -1495,24 +1496,24 @@ function De(t) {
|
|
|
1495
1496
|
function ot(t) {
|
|
1496
1497
|
return De(t) ? "indeterminate" : t ? "checked" : "unchecked";
|
|
1497
1498
|
}
|
|
1498
|
-
function
|
|
1499
|
+
function xo(t) {
|
|
1499
1500
|
const e = document.activeElement;
|
|
1500
1501
|
for (const n of t)
|
|
1501
1502
|
if (n === e || (n.focus(), document.activeElement !== e)) return;
|
|
1502
1503
|
}
|
|
1503
|
-
function
|
|
1504
|
+
function yo(t, e) {
|
|
1504
1505
|
return t.map((n, r) => t[(e + r) % t.length]);
|
|
1505
1506
|
}
|
|
1506
|
-
function
|
|
1507
|
+
function wo(t, e, n) {
|
|
1507
1508
|
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 =
|
|
1509
|
+
let i = yo(t, Math.max(s, 0));
|
|
1509
1510
|
a.length === 1 && (i = i.filter((p) => p !== n));
|
|
1510
1511
|
const l = i.find(
|
|
1511
1512
|
(p) => p.toLowerCase().startsWith(a.toLowerCase())
|
|
1512
1513
|
);
|
|
1513
1514
|
return l !== n ? l : void 0;
|
|
1514
1515
|
}
|
|
1515
|
-
function
|
|
1516
|
+
function Mo(t, e) {
|
|
1516
1517
|
const { x: n, y: r } = t;
|
|
1517
1518
|
let a = !1;
|
|
1518
1519
|
for (let s = 0, i = e.length - 1; s < e.length; i = s++) {
|
|
@@ -1524,15 +1525,15 @@ function wo(t, e) {
|
|
|
1524
1525
|
function bo(t, e) {
|
|
1525
1526
|
if (!e) return !1;
|
|
1526
1527
|
const n = { x: t.clientX, y: t.clientY };
|
|
1527
|
-
return
|
|
1528
|
+
return Mo(n, e);
|
|
1528
1529
|
}
|
|
1529
1530
|
function he(t) {
|
|
1530
1531
|
return (e) => e.pointerType === "mouse" ? t(e) : void 0;
|
|
1531
1532
|
}
|
|
1532
|
-
var
|
|
1533
|
+
var Co = Jt, Po = Je, Ro = en, _o = tn, Eo = nt, So = nn, jo = Ae, No = an, Do = sn, Io = un, Ao = dn, Oo = hn, To = pn, ko = mn, Fo = gn, Lo = xn, st = "DropdownMenu", [Ko, Fs] = jt(
|
|
1533
1534
|
st,
|
|
1534
1535
|
[Yt]
|
|
1535
|
-
), C = Yt(), [
|
|
1536
|
+
), C = Yt(), [$o, wn] = Ko(st), Mn = (t) => {
|
|
1536
1537
|
const {
|
|
1537
1538
|
__scopeDropdownMenu: e,
|
|
1538
1539
|
children: n,
|
|
@@ -1547,7 +1548,7 @@ var Mo = Jt, Co = Je, Po = en, Ro = tn, _o = nt, Eo = nn, So = Ae, jo = an, No =
|
|
|
1547
1548
|
onChange: i
|
|
1548
1549
|
});
|
|
1549
1550
|
return /* @__PURE__ */ o.jsx(
|
|
1550
|
-
|
|
1551
|
+
$o,
|
|
1551
1552
|
{
|
|
1552
1553
|
scope: e,
|
|
1553
1554
|
triggerId: je(),
|
|
@@ -1557,15 +1558,15 @@ var Mo = Jt, Co = Je, Po = en, Ro = tn, _o = nt, Eo = nn, So = Ae, jo = an, No =
|
|
|
1557
1558
|
onOpenChange: d,
|
|
1558
1559
|
onOpenToggle: u.useCallback(() => d((g) => !g), [d]),
|
|
1559
1560
|
modal: c,
|
|
1560
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1561
|
+
children: /* @__PURE__ */ o.jsx(Co, { ...l, open: f, onOpenChange: d, dir: r, modal: c, children: n })
|
|
1561
1562
|
}
|
|
1562
1563
|
);
|
|
1563
1564
|
};
|
|
1564
|
-
|
|
1565
|
-
var
|
|
1565
|
+
Mn.displayName = st;
|
|
1566
|
+
var bn = "DropdownMenuTrigger", Cn = u.forwardRef(
|
|
1566
1567
|
(t, e) => {
|
|
1567
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = t, s = wn(
|
|
1568
|
-
return /* @__PURE__ */ o.jsx(
|
|
1568
|
+
const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = t, s = wn(bn, n), i = C(n);
|
|
1569
|
+
return /* @__PURE__ */ o.jsx(Po, { asChild: !0, ...i, children: /* @__PURE__ */ o.jsx(
|
|
1569
1570
|
ie.button,
|
|
1570
1571
|
{
|
|
1571
1572
|
type: "button",
|
|
@@ -1588,17 +1589,17 @@ var Mn = "DropdownMenuTrigger", Cn = u.forwardRef(
|
|
|
1588
1589
|
) });
|
|
1589
1590
|
}
|
|
1590
1591
|
);
|
|
1591
|
-
Cn.displayName =
|
|
1592
|
-
var
|
|
1592
|
+
Cn.displayName = bn;
|
|
1593
|
+
var Bo = "DropdownMenuPortal", Pn = (t) => {
|
|
1593
1594
|
const { __scopeDropdownMenu: e, ...n } = t, r = C(e);
|
|
1594
|
-
return /* @__PURE__ */ o.jsx(
|
|
1595
|
+
return /* @__PURE__ */ o.jsx(Ro, { ...r, ...n });
|
|
1595
1596
|
};
|
|
1596
|
-
Pn.displayName =
|
|
1597
|
+
Pn.displayName = Bo;
|
|
1597
1598
|
var Rn = "DropdownMenuContent", _n = u.forwardRef(
|
|
1598
1599
|
(t, e) => {
|
|
1599
1600
|
const { __scopeDropdownMenu: n, ...r } = t, a = wn(Rn, n), s = C(n), i = u.useRef(!1);
|
|
1600
1601
|
return /* @__PURE__ */ o.jsx(
|
|
1601
|
-
|
|
1602
|
+
_o,
|
|
1602
1603
|
{
|
|
1603
1604
|
id: a.contentId,
|
|
1604
1605
|
"aria-labelledby": a.triggerId,
|
|
@@ -1626,75 +1627,75 @@ var Rn = "DropdownMenuContent", _n = u.forwardRef(
|
|
|
1626
1627
|
}
|
|
1627
1628
|
);
|
|
1628
1629
|
_n.displayName = Rn;
|
|
1629
|
-
var
|
|
1630
|
+
var Qo = "DropdownMenuGroup", Uo = u.forwardRef(
|
|
1630
1631
|
(t, e) => {
|
|
1631
1632
|
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1632
|
-
return /* @__PURE__ */ o.jsx(
|
|
1633
|
+
return /* @__PURE__ */ o.jsx(Eo, { ...a, ...r, ref: e });
|
|
1633
1634
|
}
|
|
1634
1635
|
);
|
|
1635
|
-
|
|
1636
|
-
var
|
|
1636
|
+
Uo.displayName = Qo;
|
|
1637
|
+
var Go = "DropdownMenuLabel", En = u.forwardRef(
|
|
1637
1638
|
(t, e) => {
|
|
1638
1639
|
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1639
|
-
return /* @__PURE__ */ o.jsx(
|
|
1640
|
+
return /* @__PURE__ */ o.jsx(So, { ...a, ...r, ref: e });
|
|
1640
1641
|
}
|
|
1641
1642
|
);
|
|
1642
|
-
En.displayName =
|
|
1643
|
-
var
|
|
1643
|
+
En.displayName = Go;
|
|
1644
|
+
var qo = "DropdownMenuItem", Sn = u.forwardRef(
|
|
1644
1645
|
(t, e) => {
|
|
1645
1646
|
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1646
|
-
return /* @__PURE__ */ o.jsx(
|
|
1647
|
+
return /* @__PURE__ */ o.jsx(jo, { ...a, ...r, ref: e });
|
|
1647
1648
|
}
|
|
1648
1649
|
);
|
|
1649
|
-
Sn.displayName =
|
|
1650
|
-
var
|
|
1651
|
-
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1652
|
-
return /* @__PURE__ */ o.jsx(jo, { ...a, ...r, ref: e });
|
|
1653
|
-
});
|
|
1654
|
-
jn.displayName = qo;
|
|
1655
|
-
var Ho = "DropdownMenuRadioGroup", zo = u.forwardRef((t, e) => {
|
|
1650
|
+
Sn.displayName = qo;
|
|
1651
|
+
var Ho = "DropdownMenuCheckboxItem", jn = u.forwardRef((t, e) => {
|
|
1656
1652
|
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1657
1653
|
return /* @__PURE__ */ o.jsx(No, { ...a, ...r, ref: e });
|
|
1658
1654
|
});
|
|
1659
|
-
|
|
1660
|
-
var
|
|
1655
|
+
jn.displayName = Ho;
|
|
1656
|
+
var zo = "DropdownMenuRadioGroup", Vo = u.forwardRef((t, e) => {
|
|
1661
1657
|
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1662
1658
|
return /* @__PURE__ */ o.jsx(Do, { ...a, ...r, ref: e });
|
|
1663
1659
|
});
|
|
1664
|
-
|
|
1665
|
-
var Yo = "
|
|
1660
|
+
Vo.displayName = zo;
|
|
1661
|
+
var Yo = "DropdownMenuRadioItem", Nn = u.forwardRef((t, e) => {
|
|
1666
1662
|
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1667
1663
|
return /* @__PURE__ */ o.jsx(Io, { ...a, ...r, ref: e });
|
|
1668
1664
|
});
|
|
1669
|
-
|
|
1670
|
-
var Xo = "
|
|
1665
|
+
Nn.displayName = Yo;
|
|
1666
|
+
var Xo = "DropdownMenuItemIndicator", Dn = u.forwardRef((t, e) => {
|
|
1671
1667
|
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1672
1668
|
return /* @__PURE__ */ o.jsx(Ao, { ...a, ...r, ref: e });
|
|
1673
1669
|
});
|
|
1674
|
-
|
|
1675
|
-
var Wo = "
|
|
1670
|
+
Dn.displayName = Xo;
|
|
1671
|
+
var Wo = "DropdownMenuSeparator", In = u.forwardRef((t, e) => {
|
|
1672
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1673
|
+
return /* @__PURE__ */ o.jsx(Oo, { ...a, ...r, ref: e });
|
|
1674
|
+
});
|
|
1675
|
+
In.displayName = Wo;
|
|
1676
|
+
var Jo = "DropdownMenuArrow", Zo = u.forwardRef(
|
|
1676
1677
|
(t, e) => {
|
|
1677
1678
|
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1678
|
-
return /* @__PURE__ */ o.jsx(
|
|
1679
|
+
return /* @__PURE__ */ o.jsx(To, { ...a, ...r, ref: e });
|
|
1679
1680
|
}
|
|
1680
1681
|
);
|
|
1681
|
-
|
|
1682
|
-
var
|
|
1682
|
+
Zo.displayName = Jo;
|
|
1683
|
+
var es = (t) => {
|
|
1683
1684
|
const { __scopeDropdownMenu: e, children: n, open: r, onOpenChange: a, defaultOpen: s } = t, i = C(e), [c = !1, l] = At({
|
|
1684
1685
|
prop: r,
|
|
1685
1686
|
defaultProp: s,
|
|
1686
1687
|
onChange: a
|
|
1687
1688
|
});
|
|
1688
|
-
return /* @__PURE__ */ o.jsx(
|
|
1689
|
-
},
|
|
1689
|
+
return /* @__PURE__ */ o.jsx(ko, { ...i, open: c, onOpenChange: l, children: n });
|
|
1690
|
+
}, ts = "DropdownMenuSubTrigger", An = u.forwardRef((t, e) => {
|
|
1690
1691
|
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1691
|
-
return /* @__PURE__ */ o.jsx(
|
|
1692
|
+
return /* @__PURE__ */ o.jsx(Fo, { ...a, ...r, ref: e });
|
|
1692
1693
|
});
|
|
1693
|
-
An.displayName =
|
|
1694
|
-
var
|
|
1694
|
+
An.displayName = ts;
|
|
1695
|
+
var ns = "DropdownMenuSubContent", On = u.forwardRef((t, e) => {
|
|
1695
1696
|
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1696
1697
|
return /* @__PURE__ */ o.jsx(
|
|
1697
|
-
|
|
1698
|
+
Lo,
|
|
1698
1699
|
{
|
|
1699
1700
|
...a,
|
|
1700
1701
|
...r,
|
|
@@ -1710,13 +1711,13 @@ var ts = "DropdownMenuSubContent", On = u.forwardRef((t, e) => {
|
|
|
1710
1711
|
}
|
|
1711
1712
|
);
|
|
1712
1713
|
});
|
|
1713
|
-
On.displayName =
|
|
1714
|
-
var
|
|
1715
|
-
const
|
|
1714
|
+
On.displayName = ns;
|
|
1715
|
+
var rs = Mn, as = Cn, Tn = Pn, kn = _n, Fn = En, Ln = Sn, Kn = jn, $n = Nn, Bn = Dn, Qn = In, os = es, Un = An, Gn = On;
|
|
1716
|
+
const ss = rs, is = as, cs = Tn, us = os, qn = u.forwardRef(({ className: t, inset: e, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
|
|
1716
1717
|
Un,
|
|
1717
1718
|
{
|
|
1718
1719
|
ref: a,
|
|
1719
|
-
className:
|
|
1720
|
+
className: P(
|
|
1720
1721
|
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
|
|
1721
1722
|
e && "pl-8",
|
|
1722
1723
|
t
|
|
@@ -1733,7 +1734,7 @@ const Hn = u.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ o.jsx(
|
|
|
1733
1734
|
Gn,
|
|
1734
1735
|
{
|
|
1735
1736
|
ref: n,
|
|
1736
|
-
className:
|
|
1737
|
+
className: P(
|
|
1737
1738
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1738
1739
|
t
|
|
1739
1740
|
),
|
|
@@ -1746,7 +1747,7 @@ const zn = u.forwardRef(({ className: t, sideOffset: e = 4, ...n }, r) => /* @__
|
|
|
1746
1747
|
{
|
|
1747
1748
|
ref: r,
|
|
1748
1749
|
sideOffset: e,
|
|
1749
|
-
className:
|
|
1750
|
+
className: P(
|
|
1750
1751
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1751
1752
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1752
1753
|
t
|
|
@@ -1759,7 +1760,7 @@ const Vn = u.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */
|
|
|
1759
1760
|
Ln,
|
|
1760
1761
|
{
|
|
1761
1762
|
ref: r,
|
|
1762
|
-
className:
|
|
1763
|
+
className: P(
|
|
1763
1764
|
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1764
1765
|
e && "pl-8",
|
|
1765
1766
|
t
|
|
@@ -1768,11 +1769,11 @@ const Vn = u.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */
|
|
|
1768
1769
|
}
|
|
1769
1770
|
));
|
|
1770
1771
|
Vn.displayName = Ln.displayName;
|
|
1771
|
-
const
|
|
1772
|
+
const ls = u.forwardRef(({ className: t, children: e, checked: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
|
|
1772
1773
|
Kn,
|
|
1773
1774
|
{
|
|
1774
1775
|
ref: a,
|
|
1775
|
-
className:
|
|
1776
|
+
className: P(
|
|
1776
1777
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1777
1778
|
t
|
|
1778
1779
|
),
|
|
@@ -1784,12 +1785,12 @@ const us = u.forwardRef(({ className: t, children: e, checked: n, ...r }, a) =>
|
|
|
1784
1785
|
]
|
|
1785
1786
|
}
|
|
1786
1787
|
));
|
|
1787
|
-
|
|
1788
|
-
const
|
|
1788
|
+
ls.displayName = Kn.displayName;
|
|
1789
|
+
const ds = u.forwardRef(({ className: t, children: e, ...n }, r) => /* @__PURE__ */ o.jsxs(
|
|
1789
1790
|
$n,
|
|
1790
1791
|
{
|
|
1791
1792
|
ref: r,
|
|
1792
|
-
className:
|
|
1793
|
+
className: P(
|
|
1793
1794
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1794
1795
|
t
|
|
1795
1796
|
),
|
|
@@ -1800,12 +1801,12 @@ const ls = u.forwardRef(({ className: t, children: e, ...n }, r) => /* @__PURE__
|
|
|
1800
1801
|
]
|
|
1801
1802
|
}
|
|
1802
1803
|
));
|
|
1803
|
-
|
|
1804
|
+
ds.displayName = $n.displayName;
|
|
1804
1805
|
const Yn = u.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */ o.jsx(
|
|
1805
1806
|
Fn,
|
|
1806
1807
|
{
|
|
1807
1808
|
ref: r,
|
|
1808
|
-
className:
|
|
1809
|
+
className: P(
|
|
1809
1810
|
"px-2 py-1.5 text-sm font-semibold",
|
|
1810
1811
|
e && "pl-8",
|
|
1811
1812
|
t
|
|
@@ -1818,12 +1819,12 @@ const Xn = u.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ o.jsx(
|
|
|
1818
1819
|
Qn,
|
|
1819
1820
|
{
|
|
1820
1821
|
ref: n,
|
|
1821
|
-
className:
|
|
1822
|
+
className: P("-mx-1 my-1 h-px bg-muted", t),
|
|
1822
1823
|
...e
|
|
1823
1824
|
}
|
|
1824
1825
|
));
|
|
1825
1826
|
Xn.displayName = Qn.displayName;
|
|
1826
|
-
const
|
|
1827
|
+
const hs = () => {
|
|
1827
1828
|
const { navigation: t } = Ve();
|
|
1828
1829
|
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(
|
|
1829
1830
|
$e,
|
|
@@ -1836,9 +1837,9 @@ const ds = () => {
|
|
|
1836
1837
|
children: e.label
|
|
1837
1838
|
}
|
|
1838
1839
|
) }, e.label)) }) });
|
|
1839
|
-
}, Wn = ({ item: t }) => t.children ? /* @__PURE__ */ o.jsxs(
|
|
1840
|
+
}, Wn = ({ item: t }) => t.children ? /* @__PURE__ */ o.jsxs(us, { children: [
|
|
1840
1841
|
/* @__PURE__ */ o.jsx(qn, { children: t.label }),
|
|
1841
|
-
/* @__PURE__ */ o.jsx(
|
|
1842
|
+
/* @__PURE__ */ o.jsx(cs, { children: /* @__PURE__ */ o.jsx(Hn, { children: t.children.map((e, n) => (
|
|
1842
1843
|
// eslint-disable-next-line react/no-array-index-key
|
|
1843
1844
|
/* @__PURE__ */ o.jsx(Wn, { item: e }, n)
|
|
1844
1845
|
)) }) })
|
|
@@ -1854,7 +1855,7 @@ const ds = () => {
|
|
|
1854
1855
|
src: l.logo.src.light,
|
|
1855
1856
|
alt: l.logo.alt ?? l.pageTitle,
|
|
1856
1857
|
style: { width: l.logo.width },
|
|
1857
|
-
className:
|
|
1858
|
+
className: P("h-10", e && "hidden"),
|
|
1858
1859
|
loading: "lazy"
|
|
1859
1860
|
}
|
|
1860
1861
|
),
|
|
@@ -1864,7 +1865,7 @@ const ds = () => {
|
|
|
1864
1865
|
src: l.logo.src.dark,
|
|
1865
1866
|
alt: l.logo.alt ?? l.pageTitle,
|
|
1866
1867
|
style: { width: l.logo.width },
|
|
1867
|
-
className:
|
|
1868
|
+
className: P("h-10", !e && "hidden"),
|
|
1868
1869
|
loading: "lazy"
|
|
1869
1870
|
}
|
|
1870
1871
|
)
|
|
@@ -1883,8 +1884,8 @@ const ds = () => {
|
|
|
1883
1884
|
},
|
|
1884
1885
|
children: "Login"
|
|
1885
1886
|
}
|
|
1886
|
-
) }) : /* @__PURE__ */ o.jsxs(
|
|
1887
|
-
/* @__PURE__ */ o.jsx(
|
|
1887
|
+
) }) : /* @__PURE__ */ o.jsxs(ss, { children: [
|
|
1888
|
+
/* @__PURE__ */ o.jsx(is, { asChild: !0, children: /* @__PURE__ */ o.jsx(Be, { variant: "ghost", children: a != null && a.email ? `${a.email}` : "My Account" }) }),
|
|
1888
1889
|
/* @__PURE__ */ o.jsxs(zn, { className: "w-56", children: [
|
|
1889
1890
|
/* @__PURE__ */ o.jsx(Yn, { children: "My Account" }),
|
|
1890
1891
|
/* @__PURE__ */ o.jsx(Xn, {}),
|
|
@@ -1904,48 +1905,51 @@ const ds = () => {
|
|
|
1904
1905
|
] })
|
|
1905
1906
|
] })
|
|
1906
1907
|
] }),
|
|
1907
|
-
/* @__PURE__ */ o.jsx(
|
|
1908
|
+
/* @__PURE__ */ o.jsx(hs, {})
|
|
1908
1909
|
] }) });
|
|
1909
1910
|
}), Zn = {
|
|
1910
1911
|
Header: Jn
|
|
1911
|
-
},
|
|
1912
|
+
}, ps = Tt(Zn), fs = ps.Provider, ms = ({
|
|
1912
1913
|
children: t,
|
|
1913
1914
|
...e
|
|
1914
1915
|
}) => {
|
|
1915
|
-
var
|
|
1916
|
+
var R, N;
|
|
1916
1917
|
const n = Le(
|
|
1917
1918
|
() => ({ ...Zn, ...e.overrides }),
|
|
1918
1919
|
[e.overrides]
|
|
1919
|
-
), r = Le(
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1920
|
+
), r = Le(() => {
|
|
1921
|
+
var D;
|
|
1922
|
+
return {
|
|
1923
|
+
...(e.plugins ?? []).filter(Ha).flatMap(
|
|
1924
|
+
(w) => w.getMdxComponents ? [w.getMdxComponents()] : []
|
|
1925
|
+
).reduce((w, E) => ({ ...w, ...E }), {}),
|
|
1926
|
+
...Fr,
|
|
1927
|
+
...(D = e.mdx) == null ? void 0 : D.components
|
|
1928
|
+
};
|
|
1929
|
+
}, [(R = e.mdx) == null ? void 0 : R.components, e.plugins]), [a, s] = le(!1), { stagger: i } = qr(Qe), [c, l] = le(!1), p = xr(), f = ge("idle"), d = Le(
|
|
1926
1930
|
() => c ? { stagger: !0 } : { stagger: i },
|
|
1927
1931
|
[i, c]
|
|
1928
1932
|
), g = yr();
|
|
1929
1933
|
W(() => {
|
|
1930
1934
|
c || l(!0);
|
|
1931
1935
|
}, [c, g.location]);
|
|
1932
|
-
const [v] = le(() => new
|
|
1936
|
+
const [v] = le(() => new Va(e));
|
|
1933
1937
|
W(() => {
|
|
1934
1938
|
f.current !== "pending" && (f.current = "pending", v.initialize({ navigate: p }).then(() => {
|
|
1935
1939
|
f.current = "done", s(!0);
|
|
1936
1940
|
}));
|
|
1937
1941
|
}, [v, p]);
|
|
1938
|
-
const x = (
|
|
1939
|
-
var
|
|
1940
|
-
return /* @__PURE__ */ o.jsx(Hr, { children: (
|
|
1942
|
+
const x = (N = e.plugins) == null ? void 0 : N.filter(qa).map((_, D) => {
|
|
1943
|
+
var w;
|
|
1944
|
+
return /* @__PURE__ */ o.jsx(Hr, { children: (w = _.getHead) == null ? void 0 : w.call(_) }, D);
|
|
1941
1945
|
});
|
|
1942
|
-
return a ? /* @__PURE__ */ o.jsxs(
|
|
1946
|
+
return a ? /* @__PURE__ */ o.jsxs(ra, { client: zt, children: [
|
|
1943
1947
|
/* @__PURE__ */ o.jsx(Ge, { children: x }),
|
|
1944
|
-
/* @__PURE__ */ o.jsx(Qe.Provider, { value: d, children: /* @__PURE__ */ o.jsx(
|
|
1948
|
+
/* @__PURE__ */ o.jsx(Qe.Provider, { value: d, children: /* @__PURE__ */ o.jsx(aa, { value: v, children: /* @__PURE__ */ o.jsx(ur, { components: r, children: /* @__PURE__ */ o.jsx(Lr, { children: /* @__PURE__ */ o.jsx(fs, { value: n, children: /* @__PURE__ */ o.jsx(mr, { slotlets: e.slotlets, children: /* @__PURE__ */ o.jsx(Kr, { children: t ?? /* @__PURE__ */ o.jsx(St, {}) }) }) }) }) }) }) })
|
|
1945
1949
|
] }) : null;
|
|
1946
|
-
},
|
|
1950
|
+
}, gs = kt(ms), er = (t) => /* @__PURE__ */ o.jsx($a, { FallbackComponent: Ya, children: /* @__PURE__ */ o.jsx(gs, { ...t }) });
|
|
1947
1951
|
er.displayName = "DevPortal";
|
|
1948
|
-
const
|
|
1952
|
+
const vs = () => {
|
|
1949
1953
|
const t = J(), { setActiveAnchor: e } = He();
|
|
1950
1954
|
W(() => {
|
|
1951
1955
|
if (!t.hash) return;
|
|
@@ -1962,7 +1966,7 @@ const gs = () => {
|
|
|
1962
1966
|
});
|
|
1963
1967
|
return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
|
|
1964
1968
|
}, [t.hash, e]);
|
|
1965
|
-
},
|
|
1969
|
+
}, xs = () => {
|
|
1966
1970
|
const t = J(), e = ge(t.pathname);
|
|
1967
1971
|
W(() => {
|
|
1968
1972
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
@@ -2000,20 +2004,20 @@ const gs = () => {
|
|
|
2000
2004
|
}
|
|
2001
2005
|
}
|
|
2002
2006
|
}
|
|
2003
|
-
),
|
|
2007
|
+
), ys = "data-anchor", nr = ({
|
|
2004
2008
|
category: t,
|
|
2005
2009
|
item: e,
|
|
2006
2010
|
activeAnchor: n,
|
|
2007
2011
|
currentTopNavItem: r,
|
|
2008
2012
|
basePath: a = ""
|
|
2009
2013
|
}) => {
|
|
2010
|
-
const s = wt(e) ?
|
|
2014
|
+
const s = wt(e) ? Qt(a, e.path) : "", i = J(), c = tr({
|
|
2011
2015
|
item: e,
|
|
2012
2016
|
path: s,
|
|
2013
2017
|
defaultOpen: () => Ye(e, i.pathname, a)
|
|
2014
2018
|
});
|
|
2015
|
-
if (
|
|
2016
|
-
const p =
|
|
2019
|
+
if (oa(e)) {
|
|
2020
|
+
const p = P(
|
|
2017
2021
|
"flex items-center gap-2",
|
|
2018
2022
|
_e({
|
|
2019
2023
|
isActive: e.href === i.pathname
|
|
@@ -2046,18 +2050,18 @@ const gs = () => {
|
|
|
2046
2050
|
}
|
|
2047
2051
|
)
|
|
2048
2052
|
] });
|
|
2049
|
-
return /* @__PURE__ */ o.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ o.jsxs(
|
|
2053
|
+
return /* @__PURE__ */ o.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ o.jsxs(Ft, { ...c, className: "flex flex-col", children: [
|
|
2050
2054
|
/* @__PURE__ */ o.jsx(
|
|
2051
|
-
|
|
2055
|
+
Lt,
|
|
2052
2056
|
{
|
|
2053
|
-
className:
|
|
2057
|
+
className: P(
|
|
2054
2058
|
"group text-start",
|
|
2055
2059
|
_e({ isActive: !1 })
|
|
2056
2060
|
),
|
|
2057
2061
|
children: l
|
|
2058
2062
|
}
|
|
2059
2063
|
),
|
|
2060
|
-
/* @__PURE__ */ o.jsx(
|
|
2064
|
+
/* @__PURE__ */ o.jsx(Kt, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-1.5", children: e.children.map((p) => /* @__PURE__ */ o.jsx(
|
|
2061
2065
|
nr,
|
|
2062
2066
|
{
|
|
2063
2067
|
category: t,
|
|
@@ -2072,7 +2076,7 @@ const gs = () => {
|
|
|
2072
2076
|
lr,
|
|
2073
2077
|
{
|
|
2074
2078
|
to: e.path,
|
|
2075
|
-
[
|
|
2079
|
+
[ys]: e.path,
|
|
2076
2080
|
className: _e({
|
|
2077
2081
|
isActive: e.path.slice(1) === n,
|
|
2078
2082
|
isMuted: e.muted
|
|
@@ -2087,19 +2091,19 @@ const gs = () => {
|
|
|
2087
2091
|
children: l
|
|
2088
2092
|
}
|
|
2089
2093
|
) });
|
|
2090
|
-
},
|
|
2094
|
+
}, ws = ({
|
|
2091
2095
|
category: t
|
|
2092
2096
|
}) => {
|
|
2093
|
-
const { activeAnchor: e } = He(), n =
|
|
2097
|
+
const { activeAnchor: e } = He(), n = sa(), r = J(), a = t.collapsible ?? !0, s = tr({
|
|
2094
2098
|
item: t,
|
|
2095
2099
|
path: (n == null ? void 0 : n.path) ?? "",
|
|
2096
2100
|
defaultOpen: () => !a || t.expanded || Ye(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
|
|
2097
2101
|
});
|
|
2098
|
-
return /* @__PURE__ */ o.jsxs(
|
|
2099
|
-
t.label.length > 0 ? /* @__PURE__ */ o.jsx(
|
|
2102
|
+
return /* @__PURE__ */ o.jsxs(Ft, { ...s, children: [
|
|
2103
|
+
t.label.length > 0 ? /* @__PURE__ */ o.jsx(Lt, { asChild: a, disabled: !a, children: /* @__PURE__ */ o.jsxs(
|
|
2100
2104
|
"h5",
|
|
2101
2105
|
{
|
|
2102
|
-
className:
|
|
2106
|
+
className: P(
|
|
2103
2107
|
"flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
|
|
2104
2108
|
a ? "hover:bg-accent" : "cursor-auto"
|
|
2105
2109
|
),
|
|
@@ -2115,24 +2119,24 @@ const gs = () => {
|
|
|
2115
2119
|
]
|
|
2116
2120
|
}
|
|
2117
2121
|
) }) : "Endpoints",
|
|
2118
|
-
/* @__PURE__ */ o.jsx(
|
|
2122
|
+
/* @__PURE__ */ o.jsx(Kt, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ o.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((i, c) => /* @__PURE__ */ o.jsx(
|
|
2119
2123
|
nr,
|
|
2120
2124
|
{
|
|
2121
2125
|
category: t,
|
|
2122
2126
|
item: i,
|
|
2123
2127
|
activeAnchor: e,
|
|
2124
2128
|
currentTopNavItem: n,
|
|
2125
|
-
basePath:
|
|
2129
|
+
basePath: Qt(n == null ? void 0 : n.path, t.path)
|
|
2126
2130
|
},
|
|
2127
2131
|
c
|
|
2128
2132
|
)) }) })
|
|
2129
2133
|
] }, t.label);
|
|
2130
|
-
},
|
|
2134
|
+
}, Ms = zr(function({ children: e, className: n, pushMainContent: r }, a) {
|
|
2131
2135
|
return /* @__PURE__ */ o.jsx(
|
|
2132
2136
|
"nav",
|
|
2133
2137
|
{
|
|
2134
2138
|
"data-navigation": String(r),
|
|
2135
|
-
className:
|
|
2139
|
+
className: P(
|
|
2136
2140
|
"peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 p-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 pt-[--padding-content-top] w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
|
|
2137
2141
|
n
|
|
2138
2142
|
),
|
|
@@ -2141,22 +2145,22 @@ const gs = () => {
|
|
|
2141
2145
|
}
|
|
2142
2146
|
);
|
|
2143
2147
|
}), bs = () => {
|
|
2144
|
-
const t = ge(null), e =
|
|
2148
|
+
const t = ge(null), e = ia();
|
|
2145
2149
|
return /* @__PURE__ */ o.jsxs(
|
|
2146
|
-
|
|
2150
|
+
Ms,
|
|
2147
2151
|
{
|
|
2148
2152
|
ref: t,
|
|
2149
2153
|
pushMainContent: e.data.items.length > 0,
|
|
2150
2154
|
children: [
|
|
2151
2155
|
/* @__PURE__ */ o.jsx(Se, { name: "zudoku-before-navigation" }),
|
|
2152
|
-
e.data.items.map((n) => /* @__PURE__ */ o.jsx(
|
|
2156
|
+
e.data.items.map((n) => /* @__PURE__ */ o.jsx(ws, { category: n }, n.label)),
|
|
2153
2157
|
/* @__PURE__ */ o.jsx(Se, { name: "zudoku-after-navigation" })
|
|
2154
2158
|
]
|
|
2155
2159
|
}
|
|
2156
2160
|
);
|
|
2157
|
-
},
|
|
2161
|
+
}, Cs = ({ children: t }) => {
|
|
2158
2162
|
const e = J(), { setActiveAnchor: n } = He(), { meta: r } = Ve();
|
|
2159
|
-
|
|
2163
|
+
vs(), xs();
|
|
2160
2164
|
const a = ge(e.pathname);
|
|
2161
2165
|
return W(() => {
|
|
2162
2166
|
e.pathname !== a.current && n(""), a.current = e.pathname;
|
|
@@ -2169,13 +2173,13 @@ const gs = () => {
|
|
|
2169
2173
|
/* @__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(
|
|
2170
2174
|
Vr,
|
|
2171
2175
|
{
|
|
2172
|
-
fallback: /* @__PURE__ */ o.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ o.jsx(
|
|
2176
|
+
fallback: /* @__PURE__ */ o.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ o.jsx(la, {}) }),
|
|
2173
2177
|
children: [
|
|
2174
2178
|
/* @__PURE__ */ o.jsx(bs, {}),
|
|
2175
2179
|
/* @__PURE__ */ o.jsxs(
|
|
2176
2180
|
"main",
|
|
2177
2181
|
{
|
|
2178
|
-
className:
|
|
2182
|
+
className: P(
|
|
2179
2183
|
"dark:border-white/10 translate-x-0 h-full",
|
|
2180
2184
|
"lg:overflow-visible",
|
|
2181
2185
|
"lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
|
|
@@ -2192,18 +2196,18 @@ const gs = () => {
|
|
|
2192
2196
|
}
|
|
2193
2197
|
) })
|
|
2194
2198
|
] });
|
|
2195
|
-
},
|
|
2199
|
+
}, Ls = dr, Ks = Br, $s = er, Bs = Cs, Qs = Ee, Us = gr, Gs = ma, qs = Ia, Hs = Aa, zs = Be, Vs = Ge;
|
|
2196
2200
|
export {
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2201
|
+
qs as Bootstrap,
|
|
2202
|
+
Hs as BootstrapStatic,
|
|
2203
|
+
zs as Button,
|
|
2204
|
+
Ks as Callout,
|
|
2205
|
+
$s as DevPortal,
|
|
2206
|
+
Vs as Head,
|
|
2207
|
+
Bs as Layout,
|
|
2208
|
+
Qs as Link,
|
|
2209
|
+
Us as RouterError,
|
|
2210
|
+
Gs as ServerError,
|
|
2211
|
+
Ls as useMDXComponents
|
|
2208
2212
|
};
|
|
2209
2213
|
//# sourceMappingURL=zudoku.components.js.map
|