zudoku 0.3.0-dev.129 → 0.3.0-dev.130
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/components/navigation/SidebarWrapper.js +2 -3
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +2 -4
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +17 -3
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/lib/OperationList-Cxiw2Z-v.js +457 -0
- package/lib/OperationList-Cxiw2Z-v.js.map +1 -0
- package/lib/{Route-DnFLPnPw.js → Route-DfAFiR7v.js} +2 -2
- package/lib/{Route-DnFLPnPw.js.map → Route-DfAFiR7v.js.map} +1 -1
- package/lib/{index-Bx0AgZT5.js → index-D-9zqIOh.js} +7 -7
- package/lib/{index-Bx0AgZT5.js.map → index-D-9zqIOh.js.map} +1 -1
- package/lib/zudoku.components.js +244 -242
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +1 -1
- package/src/app/main.css +22 -0
- package/src/lib/components/navigation/SidebarWrapper.tsx +20 -18
- package/src/lib/plugins/openapi/OperationListItem.tsx +6 -11
- package/src/lib/plugins/openapi/index.tsx +1 -1
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +67 -7
- package/lib/OperationList-BoB5bkdm.js +0 -414
- package/lib/OperationList-BoB5bkdm.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ir = Object.defineProperty;
|
|
2
2
|
var dt = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var j = (e, t, n) =>
|
|
5
|
+
var cr = (e, t, n) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var j = (e, t, n) => cr(e, typeof t != "symbol" ? t + "" : t, n), ht = (e, t, n) => t.has(e) || dt("Cannot " + n);
|
|
7
7
|
var f = (e, t, n) => (ht(e, t, "read from private field"), n ? n.call(e) : t.get(e)), N = (e, t, n) => t.has(e) ? dt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), S = (e, t, n, r) => (ht(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
8
8
|
var Ce = (e, t, n, r) => ({
|
|
9
9
|
set _(o) {
|
|
@@ -13,20 +13,20 @@ var Ce = (e, t, n, r) => ({
|
|
|
13
13
|
return f(e, t, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { H as Pt, a as Ge, M as
|
|
17
|
-
import { d as
|
|
18
|
-
import { E as Rt, S as se, a as
|
|
16
|
+
import { H as Pt, a as Ge, M as ur, u as lr, A as dr, b as hr } from "./utils-Bh4upQ0e.js";
|
|
17
|
+
import { d as fr, a as pr, R as mr, N as je, u as De, L as Re, b as gr, c as vr, O as jt, e as xr } from "./index-7kcHaXD6.js";
|
|
18
|
+
import { E as Rt, S as se, a as yr, R as wr } from "./SlotletProvider-ByLSCZQa.js";
|
|
19
19
|
import { j as a } from "./jsx-runtime-B6kdoens.js";
|
|
20
|
-
import { M as
|
|
21
|
-
import { c as ue, a as b, C as
|
|
20
|
+
import { M as br, c as Mr, a as Et, b as _t, A as Cr, u as ge, h as Sr, d as y, e as Pr, F as jr, D as Rr, C as Er, P as ce, f as He, g as _r, i as Nt, R as Nr, S as Dr, j as Ir, k as kr, l as Dt, m as Ar, n as Ee, o as It, p as Or, B as Qe } from "./Combination-DTfV-c98.js";
|
|
21
|
+
import { c as ue, a as b, C as Tr, b as Fr, u as Lr, T as Kr, M as $r, V as Br, d as ze, e as Qr, f as qr } from "./Markdown-CEccPMI_.js";
|
|
22
22
|
import * as c from "react";
|
|
23
|
-
import
|
|
23
|
+
import Ur, { StrictMode as kt, createContext as At, Component as Gr, createElement as ft, isValidElement as Hr, useState as ie, useCallback as Ot, useEffect as W, Suspense as Tt, memo as Ft, useMemo as Ke, useContext as zr, Fragment as Vr, useRef as Ve, forwardRef as Yr } from "react";
|
|
24
24
|
import { g as Ye } from "./_commonjsHelpers-BVfed4GL.js";
|
|
25
|
-
import { r as
|
|
26
|
-
import { S as qe, R as
|
|
27
|
-
import { S as Lt, h as Kt, Q as
|
|
25
|
+
import { r as Xr } from "./router-BiRCp01d.js";
|
|
26
|
+
import { S as qe, R as Wr, T as Jr, C as Zr } from "./index-Dz4LyXZI.js";
|
|
27
|
+
import { S as Lt, h as Kt, Q as ea, n as E, m as pt, a as mt, b as $, e as ta, c as na, d as ra, f as aa, o as gt, r as vt, g as oa, i as xt, p as yt, s as sa, u as Ie, j as ia, Z as ca, k as ua, l as $t, q as la } from "./ZudokuContext-BIZ8zHbZ.js";
|
|
28
28
|
import { j as Xe } from "./joinPath-B7kNnUX4.js";
|
|
29
|
-
import { c as Bt, P as ke, R as
|
|
29
|
+
import { c as Bt, P as ke, R as da, I as ha, S as $e, a as fa } from "./Spinner-BT_AYFrA.js";
|
|
30
30
|
/**
|
|
31
31
|
* @license lucide-react v0.378.0 - ISC
|
|
32
32
|
*
|
|
@@ -42,7 +42,7 @@ const Qt = ue("ChevronRight", [
|
|
|
42
42
|
* This source code is licensed under the ISC license.
|
|
43
43
|
* See the LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
const
|
|
45
|
+
const pa = ue("Dot", [
|
|
46
46
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
|
47
47
|
]);
|
|
48
48
|
/**
|
|
@@ -51,7 +51,7 @@ const fa = ue("Dot", [
|
|
|
51
51
|
* This source code is licensed under the ISC license.
|
|
52
52
|
* See the LICENSE file in the root directory of this source tree.
|
|
53
53
|
*/
|
|
54
|
-
const
|
|
54
|
+
const ma = ue("ExternalLink", [
|
|
55
55
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
56
56
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
57
57
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
@@ -62,7 +62,7 @@ const pa = ue("ExternalLink", [
|
|
|
62
62
|
* This source code is licensed under the ISC license.
|
|
63
63
|
* See the LICENSE file in the root directory of this source tree.
|
|
64
64
|
*/
|
|
65
|
-
const
|
|
65
|
+
const ga = ue("MoonStar", [
|
|
66
66
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
67
67
|
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
68
68
|
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
@@ -73,7 +73,7 @@ const ma = ue("MoonStar", [
|
|
|
73
73
|
* This source code is licensed under the ISC license.
|
|
74
74
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
75
|
*/
|
|
76
|
-
const
|
|
76
|
+
const va = ue("Search", [
|
|
77
77
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
78
78
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
79
79
|
]);
|
|
@@ -83,7 +83,7 @@ const ga = ue("Search", [
|
|
|
83
83
|
* This source code is licensed under the ISC license.
|
|
84
84
|
* See the LICENSE file in the root directory of this source tree.
|
|
85
85
|
*/
|
|
86
|
-
const
|
|
86
|
+
const xa = ue("Sun", [
|
|
87
87
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
88
88
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
89
89
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -94,14 +94,14 @@ const va = ue("Sun", [
|
|
|
94
94
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
95
95
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
96
96
|
]);
|
|
97
|
-
function
|
|
97
|
+
function ya({ error: e }) {
|
|
98
98
|
return /* @__PURE__ */ a.jsx(Rt, { error: e });
|
|
99
99
|
}
|
|
100
100
|
var ve = {};
|
|
101
|
-
const
|
|
101
|
+
const wa = /* @__PURE__ */ Ye(Xr), ba = /* @__PURE__ */ Ye(fr), Ma = /* @__PURE__ */ Ye(pr);
|
|
102
102
|
Object.defineProperty(ve, "__esModule", { value: !0 });
|
|
103
|
-
var
|
|
104
|
-
function
|
|
103
|
+
var Ca = Ur, F = wa, We = ba, B = Ma;
|
|
104
|
+
function Sa(e) {
|
|
105
105
|
if (e && e.__esModule) return e;
|
|
106
106
|
var t = /* @__PURE__ */ Object.create(null);
|
|
107
107
|
return e && Object.keys(e).forEach(function(n) {
|
|
@@ -116,8 +116,8 @@ function Ca(e) {
|
|
|
116
116
|
}
|
|
117
117
|
}), t.default = e, Object.freeze(t);
|
|
118
118
|
}
|
|
119
|
-
var O = /* @__PURE__ */ Ca
|
|
120
|
-
function
|
|
119
|
+
var O = /* @__PURE__ */ Sa(Ca);
|
|
120
|
+
function Pa({
|
|
121
121
|
basename: e,
|
|
122
122
|
children: t,
|
|
123
123
|
location: n = "/",
|
|
@@ -141,7 +141,7 @@ function Sa({
|
|
|
141
141
|
static: !0
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function ja({
|
|
145
145
|
context: e,
|
|
146
146
|
router: t,
|
|
147
147
|
hydrate: n = !0,
|
|
@@ -159,9 +159,9 @@ function Pa({
|
|
|
159
159
|
let l = {
|
|
160
160
|
loaderData: e.loaderData,
|
|
161
161
|
actionData: e.actionData,
|
|
162
|
-
errors:
|
|
162
|
+
errors: Ea(e.errors)
|
|
163
163
|
};
|
|
164
|
-
i = `window.__staticRouterHydrationData = JSON.parse(${
|
|
164
|
+
i = `window.__staticRouterHydrationData = JSON.parse(${Aa(JSON.stringify(JSON.stringify(l)))});`;
|
|
165
165
|
}
|
|
166
166
|
let {
|
|
167
167
|
state: u
|
|
@@ -185,7 +185,7 @@ function Pa({
|
|
|
185
185
|
future: {
|
|
186
186
|
v7_relativeSplatPath: t.future.v7_relativeSplatPath
|
|
187
187
|
}
|
|
188
|
-
}, /* @__PURE__ */ O.createElement(
|
|
188
|
+
}, /* @__PURE__ */ O.createElement(Ra, {
|
|
189
189
|
routes: t.routes,
|
|
190
190
|
future: t.future,
|
|
191
191
|
state: u
|
|
@@ -197,14 +197,14 @@ function Pa({
|
|
|
197
197
|
}
|
|
198
198
|
}) : null);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Ra({
|
|
201
201
|
routes: e,
|
|
202
202
|
future: t,
|
|
203
203
|
state: n
|
|
204
204
|
}) {
|
|
205
205
|
return We.UNSAFE_useRoutesImpl(e, void 0, n, t);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Ea(e) {
|
|
208
208
|
if (!e) return null;
|
|
209
209
|
let t = Object.entries(e), n = {};
|
|
210
210
|
for (let [r, o] of t)
|
|
@@ -243,13 +243,13 @@ function qt() {
|
|
|
243
243
|
}
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function _a(e, t) {
|
|
247
247
|
return F.createStaticHandler(e, {
|
|
248
248
|
...t,
|
|
249
249
|
mapRouteProperties: We.UNSAFE_mapRouteProperties
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function Na(e, t, n = {}) {
|
|
253
253
|
let r = {}, o = F.UNSAFE_convertRoutesToDataRoutes(e, We.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((u) => {
|
|
254
254
|
let l = r[u.route.id] || u.route;
|
|
255
255
|
return {
|
|
@@ -345,36 +345,36 @@ function Ut(e) {
|
|
|
345
345
|
function Gt(e) {
|
|
346
346
|
let t = typeof e == "string" ? e : B.createPath(e);
|
|
347
347
|
t = t.replace(/ $/, "%20");
|
|
348
|
-
let n =
|
|
348
|
+
let n = Da.test(t) ? new URL(t) : new URL(t, "http://localhost");
|
|
349
349
|
return {
|
|
350
350
|
pathname: n.pathname,
|
|
351
351
|
search: n.search,
|
|
352
352
|
hash: n.hash
|
|
353
353
|
};
|
|
354
354
|
}
|
|
355
|
-
const
|
|
355
|
+
const Da = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ia = {
|
|
356
356
|
"&": "\\u0026",
|
|
357
357
|
">": "\\u003e",
|
|
358
358
|
"<": "\\u003c",
|
|
359
359
|
"\u2028": "\\u2028",
|
|
360
360
|
"\u2029": "\\u2029"
|
|
361
|
-
},
|
|
362
|
-
function
|
|
363
|
-
return e.replace(
|
|
361
|
+
}, ka = /[&><\u2028\u2029]/g;
|
|
362
|
+
function Aa(e) {
|
|
363
|
+
return e.replace(ka, (t) => Ia[t]);
|
|
364
364
|
}
|
|
365
|
-
ve.StaticRouter =
|
|
366
|
-
var
|
|
367
|
-
ve.createStaticHandler =
|
|
368
|
-
ve.createStaticRouter =
|
|
369
|
-
const
|
|
365
|
+
ve.StaticRouter = Pa;
|
|
366
|
+
var Oa = ve.StaticRouterProvider = ja;
|
|
367
|
+
ve.createStaticHandler = _a;
|
|
368
|
+
ve.createStaticRouter = Na;
|
|
369
|
+
const Ta = ({
|
|
370
370
|
router: e,
|
|
371
371
|
hydrate: t = !1
|
|
372
|
-
}) => /* @__PURE__ */ a.jsx(kt, { children: /* @__PURE__ */ a.jsx(Pt, { children: /* @__PURE__ */ a.jsx(qe.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(
|
|
372
|
+
}) => /* @__PURE__ */ a.jsx(kt, { children: /* @__PURE__ */ a.jsx(Pt, { children: /* @__PURE__ */ a.jsx(qe.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(mr, { router: e }) }) }) }), Fa = ({
|
|
373
373
|
router: e,
|
|
374
374
|
context: t,
|
|
375
375
|
helmetContext: n
|
|
376
|
-
}) => /* @__PURE__ */ a.jsx(kt, { children: /* @__PURE__ */ a.jsx(Pt, { context: n, children: /* @__PURE__ */ a.jsx(
|
|
377
|
-
var T, Mt,
|
|
376
|
+
}) => /* @__PURE__ */ a.jsx(kt, { children: /* @__PURE__ */ a.jsx(Pt, { context: n, children: /* @__PURE__ */ a.jsx(Oa, { router: e, context: t }) }) });
|
|
377
|
+
var T, Mt, La = (Mt = class extends Lt {
|
|
378
378
|
constructor(t = {}) {
|
|
379
379
|
super();
|
|
380
380
|
N(this, T);
|
|
@@ -383,7 +383,7 @@ var T, Mt, Fa = (Mt = class extends Lt {
|
|
|
383
383
|
build(t, n, r) {
|
|
384
384
|
const o = n.queryKey, s = n.queryHash ?? Kt(o, n);
|
|
385
385
|
let i = this.get(s);
|
|
386
|
-
return i || (i = new
|
|
386
|
+
return i || (i = new ea({
|
|
387
387
|
cache: this,
|
|
388
388
|
queryKey: o,
|
|
389
389
|
queryHash: s,
|
|
@@ -446,7 +446,7 @@ var T, Mt, Fa = (Mt = class extends Lt {
|
|
|
446
446
|
});
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
|
-
}, T = new WeakMap(), Mt), R, me, Ct,
|
|
449
|
+
}, T = new WeakMap(), Mt), R, me, Ct, Ka = (Ct = class extends Lt {
|
|
450
450
|
constructor(t = {}) {
|
|
451
451
|
super();
|
|
452
452
|
N(this, R);
|
|
@@ -454,7 +454,7 @@ var T, Mt, Fa = (Mt = class extends Lt {
|
|
|
454
454
|
this.config = t, S(this, R, /* @__PURE__ */ new Map()), S(this, me, Date.now());
|
|
455
455
|
}
|
|
456
456
|
build(t, n, r) {
|
|
457
|
-
const o = new
|
|
457
|
+
const o = new br({
|
|
458
458
|
mutationCache: this,
|
|
459
459
|
mutationId: ++Ce(this, me)._,
|
|
460
460
|
options: t.defaultMutationOptions(n),
|
|
@@ -524,7 +524,7 @@ function Se(e) {
|
|
|
524
524
|
var t;
|
|
525
525
|
return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function $a(e) {
|
|
528
528
|
return {
|
|
529
529
|
onFetch: (t, n) => {
|
|
530
530
|
const r = async () => {
|
|
@@ -538,7 +538,7 @@ function Ka(e) {
|
|
|
538
538
|
g = !0;
|
|
539
539
|
}), t.signal)
|
|
540
540
|
});
|
|
541
|
-
}, d =
|
|
541
|
+
}, d = ta(t.options, t.fetchOptions), h = async (C, k, L) => {
|
|
542
542
|
if (g)
|
|
543
543
|
return Promise.reject();
|
|
544
544
|
if (k == null && C.pages.length)
|
|
@@ -552,7 +552,7 @@ function Ka(e) {
|
|
|
552
552
|
p(Y);
|
|
553
553
|
const Z = await d(
|
|
554
554
|
Y
|
|
555
|
-
), { maxPages: be } = t.options, X = L ?
|
|
555
|
+
), { maxPages: be } = t.options, X = L ? na : ra;
|
|
556
556
|
return {
|
|
557
557
|
pages: X(C.pages, Z, be),
|
|
558
558
|
pageParams: X(C.pageParams, k, be)
|
|
@@ -560,7 +560,7 @@ function Ka(e) {
|
|
|
560
560
|
};
|
|
561
561
|
let v;
|
|
562
562
|
if (s && i.length) {
|
|
563
|
-
const C = s === "backward", k = C ?
|
|
563
|
+
const C = s === "backward", k = C ? Ba : wt, L = {
|
|
564
564
|
pages: i,
|
|
565
565
|
pageParams: u
|
|
566
566
|
}, Y = k(o, L);
|
|
@@ -603,7 +603,7 @@ function wt(e, { pages: t, pageParams: n }) {
|
|
|
603
603
|
n
|
|
604
604
|
);
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function Ba(e, { pages: t, pageParams: n }) {
|
|
607
607
|
var r;
|
|
608
608
|
return (r = e.getPreviousPageParam) == null ? void 0 : r.call(
|
|
609
609
|
e,
|
|
@@ -613,7 +613,7 @@ function $a(e, { pages: t, pageParams: n }) {
|
|
|
613
613
|
n
|
|
614
614
|
);
|
|
615
615
|
}
|
|
616
|
-
var w, U, G, ne, re, H, ae, oe, St,
|
|
616
|
+
var w, U, G, ne, re, H, ae, oe, St, Qa = (St = class {
|
|
617
617
|
constructor(e = {}) {
|
|
618
618
|
N(this, w);
|
|
619
619
|
N(this, U);
|
|
@@ -623,10 +623,10 @@ var w, U, G, ne, re, H, ae, oe, St, Ba = (St = class {
|
|
|
623
623
|
N(this, H);
|
|
624
624
|
N(this, ae);
|
|
625
625
|
N(this, oe);
|
|
626
|
-
S(this, w, e.queryCache || new
|
|
626
|
+
S(this, w, e.queryCache || new La()), S(this, U, e.mutationCache || new Ka()), S(this, G, e.defaultOptions || {}), S(this, ne, /* @__PURE__ */ new Map()), S(this, re, /* @__PURE__ */ new Map()), S(this, H, 0);
|
|
627
627
|
}
|
|
628
628
|
mount() {
|
|
629
|
-
Ce(this, H)._++, f(this, H) === 1 && (S(this, ae,
|
|
629
|
+
Ce(this, H)._++, f(this, H) === 1 && (S(this, ae, aa.subscribe(async (e) => {
|
|
630
630
|
e && (await this.resumePausedMutations(), f(this, w).onFocus());
|
|
631
631
|
})), S(this, oe, gt.subscribe(async (e) => {
|
|
632
632
|
e && (await this.resumePausedMutations(), f(this, w).onOnline());
|
|
@@ -665,7 +665,7 @@ var w, U, G, ne, re, H, ae, oe, St, Ba = (St = class {
|
|
|
665
665
|
setQueryData(e, t, n) {
|
|
666
666
|
const r = this.defaultQueryOptions({ queryKey: e }), o = f(this, w).get(
|
|
667
667
|
r.queryHash
|
|
668
|
-
), s = o == null ? void 0 : o.state.data, i =
|
|
668
|
+
), s = o == null ? void 0 : o.state.data, i = oa(t, s);
|
|
669
669
|
if (i !== void 0)
|
|
670
670
|
return f(this, w).build(this, r).setData(i, { ...n, manual: !0 });
|
|
671
671
|
}
|
|
@@ -742,7 +742,7 @@ var w, U, G, ne, re, H, ae, oe, St, Ba = (St = class {
|
|
|
742
742
|
return this.fetchQuery(e).then($).catch($);
|
|
743
743
|
}
|
|
744
744
|
fetchInfiniteQuery(e) {
|
|
745
|
-
return e.behavior =
|
|
745
|
+
return e.behavior = $a(e.pages), this.fetchQuery(e);
|
|
746
746
|
}
|
|
747
747
|
prefetchInfiniteQuery(e) {
|
|
748
748
|
return this.fetchInfiniteQuery(e).then($).catch($);
|
|
@@ -800,7 +800,7 @@ var w, U, G, ne, re, H, ae, oe, St, Ba = (St = class {
|
|
|
800
800
|
return t.queryHash || (t.queryHash = Kt(
|
|
801
801
|
t.queryKey,
|
|
802
802
|
t
|
|
803
|
-
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn ===
|
|
803
|
+
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === sa && (t.enabled = !1), t;
|
|
804
804
|
}
|
|
805
805
|
defaultMutationOptions(e) {
|
|
806
806
|
return e != null && e._defaulted ? e : {
|
|
@@ -814,11 +814,11 @@ var w, U, G, ne, re, H, ae, oe, St, Ba = (St = class {
|
|
|
814
814
|
f(this, w).clear(), f(this, U).clear();
|
|
815
815
|
}
|
|
816
816
|
}, w = new WeakMap(), U = new WeakMap(), G = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), H = new WeakMap(), ae = new WeakMap(), oe = new WeakMap(), St);
|
|
817
|
-
const
|
|
817
|
+
const qa = At(null), Be = {
|
|
818
818
|
didCatch: !1,
|
|
819
819
|
error: null
|
|
820
820
|
};
|
|
821
|
-
class
|
|
821
|
+
class Ua extends Gr {
|
|
822
822
|
constructor(t) {
|
|
823
823
|
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Be;
|
|
824
824
|
}
|
|
@@ -851,7 +851,7 @@ class qa extends Ur {
|
|
|
851
851
|
} = this.state, {
|
|
852
852
|
resetKeys: o
|
|
853
853
|
} = this.props;
|
|
854
|
-
if (r && n.error !== null &&
|
|
854
|
+
if (r && n.error !== null && Ga(t.resetKeys, o)) {
|
|
855
855
|
var s, i;
|
|
856
856
|
(s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
|
|
857
857
|
next: o,
|
|
@@ -880,12 +880,12 @@ class qa extends Ur {
|
|
|
880
880
|
u = n(l);
|
|
881
881
|
else if (r)
|
|
882
882
|
u = ft(r, l);
|
|
883
|
-
else if (o === null ||
|
|
883
|
+
else if (o === null || Hr(o))
|
|
884
884
|
u = o;
|
|
885
885
|
else
|
|
886
886
|
throw i;
|
|
887
887
|
}
|
|
888
|
-
return ft(
|
|
888
|
+
return ft(qa.Provider, {
|
|
889
889
|
value: {
|
|
890
890
|
didCatch: s,
|
|
891
891
|
error: i,
|
|
@@ -894,12 +894,12 @@ class qa extends Ur {
|
|
|
894
894
|
}, u);
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function Ga() {
|
|
898
898
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
899
899
|
return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
|
|
900
900
|
}
|
|
901
|
-
const
|
|
902
|
-
class
|
|
901
|
+
const Ha = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", za = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Va = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Ya = (e) => "initialize" in e && typeof e.initialize == "function", Xa = (e) => "getHead" in e && typeof e.getHead == "function", Wa = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Ja = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Ht = new Qa();
|
|
902
|
+
class Za {
|
|
903
903
|
constructor(t) {
|
|
904
904
|
j(this, "plugins");
|
|
905
905
|
j(this, "sidebars");
|
|
@@ -912,7 +912,7 @@ class Ja {
|
|
|
912
912
|
navigate: t
|
|
913
913
|
}) => {
|
|
914
914
|
await Promise.all(
|
|
915
|
-
this.plugins.filter(
|
|
915
|
+
this.plugins.filter(Ya).map((n) => {
|
|
916
916
|
var r;
|
|
917
917
|
return (r = n.initialize) == null ? void 0 : r.call(n, this, { navigate: t });
|
|
918
918
|
})
|
|
@@ -922,7 +922,7 @@ class Ja {
|
|
|
922
922
|
await Ht.invalidateQueries({ queryKey: t });
|
|
923
923
|
});
|
|
924
924
|
j(this, "getApiIdentities", async () => (await Promise.all(
|
|
925
|
-
this.plugins.filter(
|
|
925
|
+
this.plugins.filter(Ja).map((n) => n.getIdentities(this))
|
|
926
926
|
)).flat());
|
|
927
927
|
j(this, "getPluginSidebar", async (t) => (await Promise.all(
|
|
928
928
|
this.navigationPlugins.map(
|
|
@@ -938,26 +938,26 @@ class Ja {
|
|
|
938
938
|
const n = await this.authentication.getAccessToken();
|
|
939
939
|
return t.headers.set("Authorization", `Bearer ${n}`), t;
|
|
940
940
|
});
|
|
941
|
-
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(
|
|
941
|
+
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(za), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function eo({ error: e, resetErrorBoundary: t }) {
|
|
945
945
|
return /* @__PURE__ */ a.jsx(Rt, { error: e });
|
|
946
946
|
}
|
|
947
947
|
const Pe = globalThis;
|
|
948
948
|
(!Pe.requestIdleCallback || !Pe.cancelIdleCallback) && (Pe.requestIdleCallback = (e) => setTimeout(e, 1), Pe.cancelIdleCallback = clearTimeout);
|
|
949
|
-
var Ue = ["Enter", " "],
|
|
949
|
+
var Ue = ["Enter", " "], to = ["ArrowDown", "PageUp", "Home"], zt = ["ArrowUp", "PageDown", "End"], no = [...to, ...zt], ro = {
|
|
950
950
|
ltr: [...Ue, "ArrowRight"],
|
|
951
951
|
rtl: [...Ue, "ArrowLeft"]
|
|
952
|
-
},
|
|
952
|
+
}, ao = {
|
|
953
953
|
ltr: ["ArrowLeft"],
|
|
954
954
|
rtl: ["ArrowRight"]
|
|
955
|
-
}, xe = "Menu", [fe,
|
|
956
|
-
|
|
955
|
+
}, xe = "Menu", [fe, oo, so] = Mr(xe), [J, Vt] = Et(xe, [
|
|
956
|
+
so,
|
|
957
957
|
_t,
|
|
958
958
|
Bt
|
|
959
|
-
]), ye = _t(), Yt = Bt(), [Xt, z] = J(xe), [
|
|
960
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, u = ye(t), [l, g] = c.useState(null), p = c.useRef(!1), d = He(s), h =
|
|
959
|
+
]), ye = _t(), Yt = Bt(), [Xt, z] = J(xe), [io, we] = J(xe), Wt = (e) => {
|
|
960
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, u = ye(t), [l, g] = c.useState(null), p = c.useRef(!1), d = He(s), h = kr(o);
|
|
961
961
|
return c.useEffect(() => {
|
|
962
962
|
const v = () => {
|
|
963
963
|
p.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
|
|
@@ -974,7 +974,7 @@ var Ue = ["Enter", " "], eo = ["ArrowDown", "PageUp", "Home"], zt = ["ArrowUp",
|
|
|
974
974
|
content: l,
|
|
975
975
|
onContentChange: g,
|
|
976
976
|
children: /* @__PURE__ */ a.jsx(
|
|
977
|
-
|
|
977
|
+
io,
|
|
978
978
|
{
|
|
979
979
|
scope: t,
|
|
980
980
|
onClose: c.useCallback(() => d(!1), [d]),
|
|
@@ -988,31 +988,31 @@ var Ue = ["Enter", " "], eo = ["ArrowDown", "PageUp", "Home"], zt = ["ArrowUp",
|
|
|
988
988
|
) });
|
|
989
989
|
};
|
|
990
990
|
Wt.displayName = xe;
|
|
991
|
-
var
|
|
991
|
+
var co = "MenuAnchor", Je = c.forwardRef(
|
|
992
992
|
(e, t) => {
|
|
993
993
|
const { __scopeMenu: n, ...r } = e, o = ye(n);
|
|
994
|
-
return /* @__PURE__ */ a.jsx(
|
|
994
|
+
return /* @__PURE__ */ a.jsx(Cr, { ...o, ...r, ref: t });
|
|
995
995
|
}
|
|
996
996
|
);
|
|
997
|
-
Je.displayName =
|
|
998
|
-
var Ze = "MenuPortal", [
|
|
997
|
+
Je.displayName = co;
|
|
998
|
+
var Ze = "MenuPortal", [uo, Jt] = J(Ze, {
|
|
999
999
|
forceMount: void 0
|
|
1000
1000
|
}), Zt = (e) => {
|
|
1001
1001
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = z(Ze, t);
|
|
1002
|
-
return /* @__PURE__ */ a.jsx(
|
|
1002
|
+
return /* @__PURE__ */ a.jsx(uo, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(ke, { present: n || s.open, children: /* @__PURE__ */ a.jsx(Ar, { asChild: !0, container: o, children: r }) }) });
|
|
1003
1003
|
};
|
|
1004
1004
|
Zt.displayName = Ze;
|
|
1005
|
-
var D = "MenuContent", [
|
|
1005
|
+
var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
|
|
1006
1006
|
(e, t) => {
|
|
1007
1007
|
const n = Jt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = z(D, e.__scopeMenu), i = we(D, e.__scopeMenu);
|
|
1008
|
-
return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(ke, { present: r || s.open, children: /* @__PURE__ */ a.jsx(fe.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(
|
|
1008
|
+
return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(ke, { present: r || s.open, children: /* @__PURE__ */ a.jsx(fe.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(ho, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(fo, { ...o, ref: t }) }) }) });
|
|
1009
1009
|
}
|
|
1010
|
-
),
|
|
1010
|
+
), ho = c.forwardRef(
|
|
1011
1011
|
(e, t) => {
|
|
1012
1012
|
const n = z(D, e.__scopeMenu), r = c.useRef(null), o = ge(t, r);
|
|
1013
1013
|
return c.useEffect(() => {
|
|
1014
1014
|
const s = r.current;
|
|
1015
|
-
if (s) return
|
|
1015
|
+
if (s) return Sr(s);
|
|
1016
1016
|
}, []), /* @__PURE__ */ a.jsx(
|
|
1017
1017
|
tt,
|
|
1018
1018
|
{
|
|
@@ -1030,7 +1030,7 @@ var D = "MenuContent", [uo, et] = J(D), en = c.forwardRef(
|
|
|
1030
1030
|
}
|
|
1031
1031
|
);
|
|
1032
1032
|
}
|
|
1033
|
-
),
|
|
1033
|
+
), fo = c.forwardRef((e, t) => {
|
|
1034
1034
|
const n = z(D, e.__scopeMenu);
|
|
1035
1035
|
return /* @__PURE__ */ a.jsx(
|
|
1036
1036
|
tt,
|
|
@@ -1060,20 +1060,20 @@ var D = "MenuContent", [uo, et] = J(D), en = c.forwardRef(
|
|
|
1060
1060
|
onDismiss: v,
|
|
1061
1061
|
disableOutsideScroll: x,
|
|
1062
1062
|
...M
|
|
1063
|
-
} = e, I = z(D, n), Q = we(D, n), V = ye(n), C = Yt(n), k =
|
|
1063
|
+
} = e, I = z(D, n), Q = we(D, n), V = ye(n), C = Yt(n), k = oo(n), [L, Y] = c.useState(null), Z = c.useRef(null), be = ge(t, Z, I.onContentChange), X = c.useRef(0), Me = c.useRef(""), rr = c.useRef(0), Oe = c.useRef(null), it = c.useRef("right"), Te = c.useRef(0), ar = x ? Nr : c.Fragment, or = x ? { as: Dr, allowPinchZoom: !0 } : void 0, sr = (m) => {
|
|
1064
1064
|
var te, ut;
|
|
1065
|
-
const _ = Me.current + m, A = k().filter((K) => !K.disabled), q = document.activeElement, Fe = (te = A.find((K) => K.ref.current === q)) == null ? void 0 : te.textValue, Le = A.map((K) => K.textValue), ct =
|
|
1065
|
+
const _ = Me.current + m, A = k().filter((K) => !K.disabled), q = document.activeElement, Fe = (te = A.find((K) => K.ref.current === q)) == null ? void 0 : te.textValue, Le = A.map((K) => K.textValue), ct = Po(Le, _, Fe), le = (ut = A.find((K) => K.textValue === ct)) == null ? void 0 : ut.ref.current;
|
|
1066
1066
|
(function K(lt) {
|
|
1067
1067
|
Me.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => K(""), 1e3));
|
|
1068
1068
|
})(_), le && setTimeout(() => le.focus());
|
|
1069
1069
|
};
|
|
1070
|
-
c.useEffect(() => () => window.clearTimeout(X.current), []),
|
|
1070
|
+
c.useEffect(() => () => window.clearTimeout(X.current), []), Pr();
|
|
1071
1071
|
const ee = c.useCallback((m) => {
|
|
1072
1072
|
var A, q;
|
|
1073
|
-
return it.current === ((A = Oe.current) == null ? void 0 : A.side) &&
|
|
1073
|
+
return it.current === ((A = Oe.current) == null ? void 0 : A.side) && Ro(m, (q = Oe.current) == null ? void 0 : q.area);
|
|
1074
1074
|
}, []);
|
|
1075
1075
|
return /* @__PURE__ */ a.jsx(
|
|
1076
|
-
|
|
1076
|
+
lo,
|
|
1077
1077
|
{
|
|
1078
1078
|
scope: n,
|
|
1079
1079
|
searchRef: Me,
|
|
@@ -1096,12 +1096,12 @@ var D = "MenuContent", [uo, et] = J(D), en = c.forwardRef(
|
|
|
1096
1096
|
},
|
|
1097
1097
|
[ee]
|
|
1098
1098
|
),
|
|
1099
|
-
pointerGraceTimerRef:
|
|
1099
|
+
pointerGraceTimerRef: rr,
|
|
1100
1100
|
onPointerGraceIntentChange: c.useCallback((m) => {
|
|
1101
1101
|
Oe.current = m;
|
|
1102
1102
|
}, []),
|
|
1103
|
-
children: /* @__PURE__ */ a.jsx(
|
|
1104
|
-
|
|
1103
|
+
children: /* @__PURE__ */ a.jsx(ar, { ...or, children: /* @__PURE__ */ a.jsx(
|
|
1104
|
+
jr,
|
|
1105
1105
|
{
|
|
1106
1106
|
asChild: !0,
|
|
1107
1107
|
trapped: o,
|
|
@@ -1111,7 +1111,7 @@ var D = "MenuContent", [uo, et] = J(D), en = c.forwardRef(
|
|
|
1111
1111
|
}),
|
|
1112
1112
|
onUnmountAutoFocus: i,
|
|
1113
1113
|
children: /* @__PURE__ */ a.jsx(
|
|
1114
|
-
|
|
1114
|
+
Rr,
|
|
1115
1115
|
{
|
|
1116
1116
|
asChild: !0,
|
|
1117
1117
|
disableOutsidePointerEvents: u,
|
|
@@ -1121,7 +1121,7 @@ var D = "MenuContent", [uo, et] = J(D), en = c.forwardRef(
|
|
|
1121
1121
|
onInteractOutside: h,
|
|
1122
1122
|
onDismiss: v,
|
|
1123
1123
|
children: /* @__PURE__ */ a.jsx(
|
|
1124
|
-
|
|
1124
|
+
da,
|
|
1125
1125
|
{
|
|
1126
1126
|
asChild: !0,
|
|
1127
1127
|
...C,
|
|
@@ -1135,7 +1135,7 @@ var D = "MenuContent", [uo, et] = J(D), en = c.forwardRef(
|
|
|
1135
1135
|
}),
|
|
1136
1136
|
preventScrollOnEntryFocus: !0,
|
|
1137
1137
|
children: /* @__PURE__ */ a.jsx(
|
|
1138
|
-
|
|
1138
|
+
Er,
|
|
1139
1139
|
{
|
|
1140
1140
|
role: "menu",
|
|
1141
1141
|
"aria-orientation": "vertical",
|
|
@@ -1148,12 +1148,12 @@ var D = "MenuContent", [uo, et] = J(D), en = c.forwardRef(
|
|
|
1148
1148
|
style: { outline: "none", ...M.style },
|
|
1149
1149
|
onKeyDown: y(M.onKeyDown, (m) => {
|
|
1150
1150
|
const A = m.target.closest("[data-radix-menu-content]") === m.currentTarget, q = m.ctrlKey || m.altKey || m.metaKey, Fe = m.key.length === 1;
|
|
1151
|
-
A && (m.key === "Tab" && m.preventDefault(), !q && Fe &&
|
|
1151
|
+
A && (m.key === "Tab" && m.preventDefault(), !q && Fe && sr(m.key));
|
|
1152
1152
|
const Le = Z.current;
|
|
1153
|
-
if (m.target !== Le || !
|
|
1153
|
+
if (m.target !== Le || !no.includes(m.key)) return;
|
|
1154
1154
|
m.preventDefault();
|
|
1155
1155
|
const le = k().filter((te) => !te.disabled).map((te) => te.ref.current);
|
|
1156
|
-
zt.includes(m.key) && le.reverse(),
|
|
1156
|
+
zt.includes(m.key) && le.reverse(), Co(le);
|
|
1157
1157
|
}),
|
|
1158
1158
|
onBlur: y(e.onBlur, (m) => {
|
|
1159
1159
|
m.currentTarget.contains(m.target) || (window.clearTimeout(X.current), Me.current = "");
|
|
@@ -1181,27 +1181,27 @@ var D = "MenuContent", [uo, et] = J(D), en = c.forwardRef(
|
|
|
1181
1181
|
}
|
|
1182
1182
|
);
|
|
1183
1183
|
en.displayName = D;
|
|
1184
|
-
var
|
|
1184
|
+
var po = "MenuGroup", nt = c.forwardRef(
|
|
1185
1185
|
(e, t) => {
|
|
1186
1186
|
const { __scopeMenu: n, ...r } = e;
|
|
1187
1187
|
return /* @__PURE__ */ a.jsx(ce.div, { role: "group", ...r, ref: t });
|
|
1188
1188
|
}
|
|
1189
1189
|
);
|
|
1190
|
-
nt.displayName =
|
|
1191
|
-
var
|
|
1190
|
+
nt.displayName = po;
|
|
1191
|
+
var mo = "MenuLabel", tn = c.forwardRef(
|
|
1192
1192
|
(e, t) => {
|
|
1193
1193
|
const { __scopeMenu: n, ...r } = e;
|
|
1194
1194
|
return /* @__PURE__ */ a.jsx(ce.div, { ...r, ref: t });
|
|
1195
1195
|
}
|
|
1196
1196
|
);
|
|
1197
|
-
tn.displayName =
|
|
1197
|
+
tn.displayName = mo;
|
|
1198
1198
|
var _e = "MenuItem", bt = "menu.itemSelect", Ae = c.forwardRef(
|
|
1199
1199
|
(e, t) => {
|
|
1200
1200
|
const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = we(_e, e.__scopeMenu), u = et(_e, e.__scopeMenu), l = ge(t, s), g = c.useRef(!1), p = () => {
|
|
1201
1201
|
const d = s.current;
|
|
1202
1202
|
if (!n && d) {
|
|
1203
1203
|
const h = new CustomEvent(bt, { bubbles: !0, cancelable: !0 });
|
|
1204
|
-
d.addEventListener(bt, (v) => r == null ? void 0 : r(v), { once: !0 }),
|
|
1204
|
+
d.addEventListener(bt, (v) => r == null ? void 0 : r(v), { once: !0 }), Ir(d, h), h.defaultPrevented ? g.current = !1 : i.onClose();
|
|
1205
1205
|
}
|
|
1206
1206
|
};
|
|
1207
1207
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -1240,7 +1240,7 @@ var nn = c.forwardRef(
|
|
|
1240
1240
|
scope: n,
|
|
1241
1241
|
disabled: r,
|
|
1242
1242
|
textValue: o ?? h,
|
|
1243
|
-
children: /* @__PURE__ */ a.jsx(
|
|
1243
|
+
children: /* @__PURE__ */ a.jsx(ha, { asChild: !0, ...u, focusable: !r, children: /* @__PURE__ */ a.jsx(
|
|
1244
1244
|
ce.div,
|
|
1245
1245
|
{
|
|
1246
1246
|
role: "menuitem",
|
|
@@ -1266,7 +1266,7 @@ var nn = c.forwardRef(
|
|
|
1266
1266
|
}
|
|
1267
1267
|
);
|
|
1268
1268
|
}
|
|
1269
|
-
),
|
|
1269
|
+
), go = "MenuCheckboxItem", rn = c.forwardRef(
|
|
1270
1270
|
(e, t) => {
|
|
1271
1271
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
1272
1272
|
return /* @__PURE__ */ a.jsx(un, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
|
|
@@ -1286,21 +1286,21 @@ var nn = c.forwardRef(
|
|
|
1286
1286
|
) });
|
|
1287
1287
|
}
|
|
1288
1288
|
);
|
|
1289
|
-
rn.displayName =
|
|
1290
|
-
var an = "MenuRadioGroup", [
|
|
1289
|
+
rn.displayName = go;
|
|
1290
|
+
var an = "MenuRadioGroup", [vo, xo] = J(
|
|
1291
1291
|
an,
|
|
1292
1292
|
{ value: void 0, onValueChange: () => {
|
|
1293
1293
|
} }
|
|
1294
1294
|
), on = c.forwardRef(
|
|
1295
1295
|
(e, t) => {
|
|
1296
1296
|
const { value: n, onValueChange: r, ...o } = e, s = He(r);
|
|
1297
|
-
return /* @__PURE__ */ a.jsx(
|
|
1297
|
+
return /* @__PURE__ */ a.jsx(vo, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(nt, { ...o, ref: t }) });
|
|
1298
1298
|
}
|
|
1299
1299
|
);
|
|
1300
1300
|
on.displayName = an;
|
|
1301
1301
|
var sn = "MenuRadioItem", cn = c.forwardRef(
|
|
1302
1302
|
(e, t) => {
|
|
1303
|
-
const { value: n, ...r } = e, o =
|
|
1303
|
+
const { value: n, ...r } = e, o = xo(sn, e.__scopeMenu), s = n === o.value;
|
|
1304
1304
|
return /* @__PURE__ */ a.jsx(un, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
|
|
1305
1305
|
Ae,
|
|
1306
1306
|
{
|
|
@@ -1322,12 +1322,12 @@ var sn = "MenuRadioItem", cn = c.forwardRef(
|
|
|
1322
1322
|
}
|
|
1323
1323
|
);
|
|
1324
1324
|
cn.displayName = sn;
|
|
1325
|
-
var rt = "MenuItemIndicator", [un,
|
|
1325
|
+
var rt = "MenuItemIndicator", [un, yo] = J(
|
|
1326
1326
|
rt,
|
|
1327
1327
|
{ checked: !1 }
|
|
1328
1328
|
), ln = c.forwardRef(
|
|
1329
1329
|
(e, t) => {
|
|
1330
|
-
const { __scopeMenu: n, forceMount: r, ...o } = e, s =
|
|
1330
|
+
const { __scopeMenu: n, forceMount: r, ...o } = e, s = yo(rt, n);
|
|
1331
1331
|
return /* @__PURE__ */ a.jsx(
|
|
1332
1332
|
ke,
|
|
1333
1333
|
{
|
|
@@ -1345,7 +1345,7 @@ var rt = "MenuItemIndicator", [un, xo] = J(
|
|
|
1345
1345
|
}
|
|
1346
1346
|
);
|
|
1347
1347
|
ln.displayName = rt;
|
|
1348
|
-
var
|
|
1348
|
+
var wo = "MenuSeparator", dn = c.forwardRef(
|
|
1349
1349
|
(e, t) => {
|
|
1350
1350
|
const { __scopeMenu: n, ...r } = e;
|
|
1351
1351
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -1359,15 +1359,15 @@ var yo = "MenuSeparator", dn = c.forwardRef(
|
|
|
1359
1359
|
);
|
|
1360
1360
|
}
|
|
1361
1361
|
);
|
|
1362
|
-
dn.displayName =
|
|
1363
|
-
var
|
|
1362
|
+
dn.displayName = wo;
|
|
1363
|
+
var bo = "MenuArrow", hn = c.forwardRef(
|
|
1364
1364
|
(e, t) => {
|
|
1365
1365
|
const { __scopeMenu: n, ...r } = e, o = ye(n);
|
|
1366
|
-
return /* @__PURE__ */ a.jsx(
|
|
1366
|
+
return /* @__PURE__ */ a.jsx(_r, { ...o, ...r, ref: t });
|
|
1367
1367
|
}
|
|
1368
1368
|
);
|
|
1369
|
-
hn.displayName =
|
|
1370
|
-
var at = "MenuSub", [
|
|
1369
|
+
hn.displayName = bo;
|
|
1370
|
+
var at = "MenuSub", [Mo, fn] = J(at), pn = (e) => {
|
|
1371
1371
|
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = z(at, t), i = ye(t), [u, l] = c.useState(null), [g, p] = c.useState(null), d = He(o);
|
|
1372
1372
|
return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ a.jsx(Dt, { ...i, children: /* @__PURE__ */ a.jsx(
|
|
1373
1373
|
Xt,
|
|
@@ -1378,7 +1378,7 @@ var at = "MenuSub", [bo, fn] = J(at), pn = (e) => {
|
|
|
1378
1378
|
content: g,
|
|
1379
1379
|
onContentChange: p,
|
|
1380
1380
|
children: /* @__PURE__ */ a.jsx(
|
|
1381
|
-
|
|
1381
|
+
Mo,
|
|
1382
1382
|
{
|
|
1383
1383
|
scope: t,
|
|
1384
1384
|
contentId: Ee(),
|
|
@@ -1456,7 +1456,7 @@ var de = "MenuSubTrigger", mn = c.forwardRef(
|
|
|
1456
1456
|
onKeyDown: y(e.onKeyDown, (d) => {
|
|
1457
1457
|
var v;
|
|
1458
1458
|
const h = s.searchRef.current !== "";
|
|
1459
|
-
e.disabled || h && d.key === " " ||
|
|
1459
|
+
e.disabled || h && d.key === " " || ro[r.dir].includes(d.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), d.preventDefault());
|
|
1460
1460
|
})
|
|
1461
1461
|
}
|
|
1462
1462
|
) });
|
|
@@ -1491,7 +1491,7 @@ var gn = "MenuSubContent", vn = c.forwardRef(
|
|
|
1491
1491
|
}),
|
|
1492
1492
|
onKeyDown: y(e.onKeyDown, (p) => {
|
|
1493
1493
|
var v;
|
|
1494
|
-
const d = p.currentTarget.contains(p.target), h =
|
|
1494
|
+
const d = p.currentTarget.contains(p.target), h = ao[i.dir].includes(p.key);
|
|
1495
1495
|
d && h && (s.onOpenChange(!1), (v = u.trigger) == null || v.focus(), p.preventDefault());
|
|
1496
1496
|
})
|
|
1497
1497
|
}
|
|
@@ -1508,24 +1508,24 @@ function Ne(e) {
|
|
|
1508
1508
|
function ot(e) {
|
|
1509
1509
|
return Ne(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function Co(e) {
|
|
1512
1512
|
const t = document.activeElement;
|
|
1513
1513
|
for (const n of e)
|
|
1514
1514
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1516
|
+
function So(e, t) {
|
|
1517
1517
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1519
|
+
function Po(e, t, n) {
|
|
1520
1520
|
const o = t.length > 1 && Array.from(t).every((g) => g === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
1521
|
-
let i =
|
|
1521
|
+
let i = So(e, Math.max(s, 0));
|
|
1522
1522
|
o.length === 1 && (i = i.filter((g) => g !== n));
|
|
1523
1523
|
const l = i.find(
|
|
1524
1524
|
(g) => g.toLowerCase().startsWith(o.toLowerCase())
|
|
1525
1525
|
);
|
|
1526
1526
|
return l !== n ? l : void 0;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function jo(e, t) {
|
|
1529
1529
|
const { x: n, y: r } = e;
|
|
1530
1530
|
let o = !1;
|
|
1531
1531
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
@@ -1534,18 +1534,18 @@ function Po(e, t) {
|
|
|
1534
1534
|
}
|
|
1535
1535
|
return o;
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1537
|
+
function Ro(e, t) {
|
|
1538
1538
|
if (!t) return !1;
|
|
1539
1539
|
const n = { x: e.clientX, y: e.clientY };
|
|
1540
|
-
return
|
|
1540
|
+
return jo(n, t);
|
|
1541
1541
|
}
|
|
1542
1542
|
function pe(e) {
|
|
1543
1543
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
1544
1544
|
}
|
|
1545
|
-
var
|
|
1545
|
+
var Eo = Wt, _o = Je, No = Zt, Do = en, Io = nt, ko = tn, Ao = Ae, Oo = rn, To = on, Fo = cn, Lo = ln, Ko = dn, $o = hn, Bo = pn, Qo = mn, qo = vn, st = "DropdownMenu", [Uo, Gs] = Et(
|
|
1546
1546
|
st,
|
|
1547
1547
|
[Vt]
|
|
1548
|
-
), P = Vt(), [
|
|
1548
|
+
), P = Vt(), [Go, yn] = Uo(st), wn = (e) => {
|
|
1549
1549
|
const {
|
|
1550
1550
|
__scopeDropdownMenu: t,
|
|
1551
1551
|
children: n,
|
|
@@ -1560,7 +1560,7 @@ var Ro = Wt, Eo = Je, _o = Zt, No = en, Do = nt, Io = tn, ko = Ae, Ao = rn, Oo =
|
|
|
1560
1560
|
onChange: i
|
|
1561
1561
|
});
|
|
1562
1562
|
return /* @__PURE__ */ a.jsx(
|
|
1563
|
-
|
|
1563
|
+
Go,
|
|
1564
1564
|
{
|
|
1565
1565
|
scope: t,
|
|
1566
1566
|
triggerId: Ee(),
|
|
@@ -1570,7 +1570,7 @@ var Ro = Wt, Eo = Je, _o = Zt, No = en, Do = nt, Io = tn, ko = Ae, Ao = rn, Oo =
|
|
|
1570
1570
|
onOpenChange: d,
|
|
1571
1571
|
onOpenToggle: c.useCallback(() => d((h) => !h), [d]),
|
|
1572
1572
|
modal: u,
|
|
1573
|
-
children: /* @__PURE__ */ a.jsx(
|
|
1573
|
+
children: /* @__PURE__ */ a.jsx(Eo, { ...l, open: p, onOpenChange: d, dir: r, modal: u, children: n })
|
|
1574
1574
|
}
|
|
1575
1575
|
);
|
|
1576
1576
|
};
|
|
@@ -1578,7 +1578,7 @@ wn.displayName = st;
|
|
|
1578
1578
|
var bn = "DropdownMenuTrigger", Mn = c.forwardRef(
|
|
1579
1579
|
(e, t) => {
|
|
1580
1580
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = yn(bn, n), i = P(n);
|
|
1581
|
-
return /* @__PURE__ */ a.jsx(
|
|
1581
|
+
return /* @__PURE__ */ a.jsx(_o, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
|
|
1582
1582
|
ce.button,
|
|
1583
1583
|
{
|
|
1584
1584
|
type: "button",
|
|
@@ -1602,16 +1602,16 @@ var bn = "DropdownMenuTrigger", Mn = c.forwardRef(
|
|
|
1602
1602
|
}
|
|
1603
1603
|
);
|
|
1604
1604
|
Mn.displayName = bn;
|
|
1605
|
-
var
|
|
1605
|
+
var Ho = "DropdownMenuPortal", Cn = (e) => {
|
|
1606
1606
|
const { __scopeDropdownMenu: t, ...n } = e, r = P(t);
|
|
1607
|
-
return /* @__PURE__ */ a.jsx(
|
|
1607
|
+
return /* @__PURE__ */ a.jsx(No, { ...r, ...n });
|
|
1608
1608
|
};
|
|
1609
|
-
Cn.displayName =
|
|
1609
|
+
Cn.displayName = Ho;
|
|
1610
1610
|
var Sn = "DropdownMenuContent", Pn = c.forwardRef(
|
|
1611
1611
|
(e, t) => {
|
|
1612
1612
|
const { __scopeDropdownMenu: n, ...r } = e, o = yn(Sn, n), s = P(n), i = c.useRef(!1);
|
|
1613
1613
|
return /* @__PURE__ */ a.jsx(
|
|
1614
|
-
|
|
1614
|
+
Do,
|
|
1615
1615
|
{
|
|
1616
1616
|
id: o.contentId,
|
|
1617
1617
|
"aria-labelledby": o.triggerId,
|
|
@@ -1639,75 +1639,75 @@ var Sn = "DropdownMenuContent", Pn = c.forwardRef(
|
|
|
1639
1639
|
}
|
|
1640
1640
|
);
|
|
1641
1641
|
Pn.displayName = Sn;
|
|
1642
|
-
var
|
|
1642
|
+
var zo = "DropdownMenuGroup", Vo = c.forwardRef(
|
|
1643
1643
|
(e, t) => {
|
|
1644
1644
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1645
|
-
return /* @__PURE__ */ a.jsx(
|
|
1645
|
+
return /* @__PURE__ */ a.jsx(Io, { ...o, ...r, ref: t });
|
|
1646
1646
|
}
|
|
1647
1647
|
);
|
|
1648
|
-
|
|
1649
|
-
var
|
|
1648
|
+
Vo.displayName = zo;
|
|
1649
|
+
var Yo = "DropdownMenuLabel", jn = c.forwardRef(
|
|
1650
1650
|
(e, t) => {
|
|
1651
1651
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1652
|
-
return /* @__PURE__ */ a.jsx(
|
|
1652
|
+
return /* @__PURE__ */ a.jsx(ko, { ...o, ...r, ref: t });
|
|
1653
1653
|
}
|
|
1654
1654
|
);
|
|
1655
|
-
jn.displayName =
|
|
1656
|
-
var
|
|
1655
|
+
jn.displayName = Yo;
|
|
1656
|
+
var Xo = "DropdownMenuItem", Rn = c.forwardRef(
|
|
1657
1657
|
(e, t) => {
|
|
1658
1658
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1659
|
-
return /* @__PURE__ */ a.jsx(
|
|
1659
|
+
return /* @__PURE__ */ a.jsx(Ao, { ...o, ...r, ref: t });
|
|
1660
1660
|
}
|
|
1661
1661
|
);
|
|
1662
|
-
Rn.displayName =
|
|
1663
|
-
var
|
|
1664
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1665
|
-
return /* @__PURE__ */ a.jsx(Ao, { ...o, ...r, ref: t });
|
|
1666
|
-
});
|
|
1667
|
-
En.displayName = Xo;
|
|
1668
|
-
var Wo = "DropdownMenuRadioGroup", Jo = c.forwardRef((e, t) => {
|
|
1662
|
+
Rn.displayName = Xo;
|
|
1663
|
+
var Wo = "DropdownMenuCheckboxItem", En = c.forwardRef((e, t) => {
|
|
1669
1664
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1670
1665
|
return /* @__PURE__ */ a.jsx(Oo, { ...o, ...r, ref: t });
|
|
1671
1666
|
});
|
|
1672
|
-
|
|
1673
|
-
var
|
|
1667
|
+
En.displayName = Wo;
|
|
1668
|
+
var Jo = "DropdownMenuRadioGroup", Zo = c.forwardRef((e, t) => {
|
|
1674
1669
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1675
1670
|
return /* @__PURE__ */ a.jsx(To, { ...o, ...r, ref: t });
|
|
1676
1671
|
});
|
|
1677
|
-
|
|
1678
|
-
var es = "
|
|
1672
|
+
Zo.displayName = Jo;
|
|
1673
|
+
var es = "DropdownMenuRadioItem", _n = c.forwardRef((e, t) => {
|
|
1679
1674
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1680
1675
|
return /* @__PURE__ */ a.jsx(Fo, { ...o, ...r, ref: t });
|
|
1681
1676
|
});
|
|
1682
|
-
|
|
1683
|
-
var ts = "
|
|
1677
|
+
_n.displayName = es;
|
|
1678
|
+
var ts = "DropdownMenuItemIndicator", Nn = c.forwardRef((e, t) => {
|
|
1684
1679
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1685
1680
|
return /* @__PURE__ */ a.jsx(Lo, { ...o, ...r, ref: t });
|
|
1686
1681
|
});
|
|
1687
|
-
|
|
1688
|
-
var ns = "
|
|
1682
|
+
Nn.displayName = ts;
|
|
1683
|
+
var ns = "DropdownMenuSeparator", Dn = c.forwardRef((e, t) => {
|
|
1684
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1685
|
+
return /* @__PURE__ */ a.jsx(Ko, { ...o, ...r, ref: t });
|
|
1686
|
+
});
|
|
1687
|
+
Dn.displayName = ns;
|
|
1688
|
+
var rs = "DropdownMenuArrow", as = c.forwardRef(
|
|
1689
1689
|
(e, t) => {
|
|
1690
1690
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1691
|
-
return /* @__PURE__ */ a.jsx(
|
|
1691
|
+
return /* @__PURE__ */ a.jsx($o, { ...o, ...r, ref: t });
|
|
1692
1692
|
}
|
|
1693
1693
|
);
|
|
1694
|
-
|
|
1695
|
-
var
|
|
1694
|
+
as.displayName = rs;
|
|
1695
|
+
var os = (e) => {
|
|
1696
1696
|
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = P(t), [u = !1, l] = It({
|
|
1697
1697
|
prop: r,
|
|
1698
1698
|
defaultProp: s,
|
|
1699
1699
|
onChange: o
|
|
1700
1700
|
});
|
|
1701
|
-
return /* @__PURE__ */ a.jsx(
|
|
1702
|
-
},
|
|
1701
|
+
return /* @__PURE__ */ a.jsx(Bo, { ...i, open: u, onOpenChange: l, children: n });
|
|
1702
|
+
}, ss = "DropdownMenuSubTrigger", In = c.forwardRef((e, t) => {
|
|
1703
1703
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1704
|
-
return /* @__PURE__ */ a.jsx(
|
|
1704
|
+
return /* @__PURE__ */ a.jsx(Qo, { ...o, ...r, ref: t });
|
|
1705
1705
|
});
|
|
1706
|
-
In.displayName =
|
|
1707
|
-
var
|
|
1706
|
+
In.displayName = ss;
|
|
1707
|
+
var is = "DropdownMenuSubContent", kn = c.forwardRef((e, t) => {
|
|
1708
1708
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1709
1709
|
return /* @__PURE__ */ a.jsx(
|
|
1710
|
-
|
|
1710
|
+
qo,
|
|
1711
1711
|
{
|
|
1712
1712
|
...o,
|
|
1713
1713
|
...r,
|
|
@@ -1723,9 +1723,9 @@ var ss = "DropdownMenuSubContent", kn = c.forwardRef((e, t) => {
|
|
|
1723
1723
|
}
|
|
1724
1724
|
);
|
|
1725
1725
|
});
|
|
1726
|
-
kn.displayName =
|
|
1727
|
-
var
|
|
1728
|
-
const
|
|
1726
|
+
kn.displayName = is;
|
|
1727
|
+
var cs = wn, us = Mn, An = Cn, On = Pn, Tn = jn, Fn = Rn, Ln = En, Kn = _n, $n = Nn, Bn = Dn, ls = os, Qn = In, qn = kn;
|
|
1728
|
+
const ds = cs, hs = us, fs = An, ps = ls, Un = c.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
|
|
1729
1729
|
Qn,
|
|
1730
1730
|
{
|
|
1731
1731
|
ref: o,
|
|
@@ -1781,7 +1781,7 @@ const zn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
1781
1781
|
}
|
|
1782
1782
|
));
|
|
1783
1783
|
zn.displayName = Fn.displayName;
|
|
1784
|
-
const
|
|
1784
|
+
const ms = c.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
|
|
1785
1785
|
Ln,
|
|
1786
1786
|
{
|
|
1787
1787
|
ref: o,
|
|
@@ -1792,13 +1792,13 @@ const ps = c.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
|
|
|
1792
1792
|
checked: n,
|
|
1793
1793
|
...r,
|
|
1794
1794
|
children: [
|
|
1795
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx($n, { children: /* @__PURE__ */ a.jsx(
|
|
1795
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx($n, { children: /* @__PURE__ */ a.jsx(Tr, { className: "h-4 w-4" }) }) }),
|
|
1796
1796
|
t
|
|
1797
1797
|
]
|
|
1798
1798
|
}
|
|
1799
1799
|
));
|
|
1800
|
-
|
|
1801
|
-
const
|
|
1800
|
+
ms.displayName = Ln.displayName;
|
|
1801
|
+
const gs = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
|
|
1802
1802
|
Kn,
|
|
1803
1803
|
{
|
|
1804
1804
|
ref: r,
|
|
@@ -1808,12 +1808,12 @@ const ms = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
1808
1808
|
),
|
|
1809
1809
|
...n,
|
|
1810
1810
|
children: [
|
|
1811
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx($n, { children: /* @__PURE__ */ a.jsx(
|
|
1811
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx($n, { children: /* @__PURE__ */ a.jsx(pa, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1812
1812
|
t
|
|
1813
1813
|
]
|
|
1814
1814
|
}
|
|
1815
1815
|
));
|
|
1816
|
-
|
|
1816
|
+
gs.displayName = Kn.displayName;
|
|
1817
1817
|
const Vn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
|
|
1818
1818
|
Tn,
|
|
1819
1819
|
{
|
|
@@ -1836,7 +1836,7 @@ const Yn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
|
1836
1836
|
}
|
|
1837
1837
|
));
|
|
1838
1838
|
Yn.displayName = Bn.displayName;
|
|
1839
|
-
const
|
|
1839
|
+
const vs = () => {
|
|
1840
1840
|
const e = Ie(), [t, n] = ie(!1), r = Ot(() => n(!1), []);
|
|
1841
1841
|
W(() => {
|
|
1842
1842
|
if (t)
|
|
@@ -1848,7 +1848,7 @@ const gs = () => {
|
|
|
1848
1848
|
window.removeEventListener("keydown", s);
|
|
1849
1849
|
};
|
|
1850
1850
|
}, [t, n]);
|
|
1851
|
-
const o = e.plugins.find(
|
|
1851
|
+
const o = e.plugins.find(Va);
|
|
1852
1852
|
return o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1853
1853
|
/* @__PURE__ */ a.jsxs(
|
|
1854
1854
|
"button",
|
|
@@ -1858,7 +1858,7 @@ const gs = () => {
|
|
|
1858
1858
|
className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72",
|
|
1859
1859
|
children: [
|
|
1860
1860
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
1861
|
-
/* @__PURE__ */ a.jsx(
|
|
1861
|
+
/* @__PURE__ */ a.jsx(va, { size: 14 }),
|
|
1862
1862
|
"Search"
|
|
1863
1863
|
] }),
|
|
1864
1864
|
/* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
|
|
@@ -1870,12 +1870,12 @@ const gs = () => {
|
|
|
1870
1870
|
onClose: r
|
|
1871
1871
|
}) })
|
|
1872
1872
|
] }) : null;
|
|
1873
|
-
},
|
|
1873
|
+
}, xs = () => {
|
|
1874
1874
|
const { topNavigation: e } = Ie();
|
|
1875
1875
|
return e.length <= 1 ? null : /* @__PURE__ */ a.jsx("nav", { className: "border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.map((t) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
1876
1876
|
je,
|
|
1877
1877
|
{
|
|
1878
|
-
className: ({ isActive: n }) =>
|
|
1878
|
+
className: ({ isActive: n }) => Fr(
|
|
1879
1879
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
1880
1880
|
n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
1881
1881
|
),
|
|
@@ -1883,14 +1883,14 @@ const gs = () => {
|
|
|
1883
1883
|
children: t.label
|
|
1884
1884
|
}
|
|
1885
1885
|
) }, t.label)) }) });
|
|
1886
|
-
}, Xn = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(
|
|
1886
|
+
}, Xn = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(ps, { children: [
|
|
1887
1887
|
/* @__PURE__ */ a.jsx(Un, { children: e.label }),
|
|
1888
|
-
/* @__PURE__ */ a.jsx(
|
|
1888
|
+
/* @__PURE__ */ a.jsx(fs, { children: /* @__PURE__ */ a.jsx(Gn, { children: e.children.map((t, n) => (
|
|
1889
1889
|
// eslint-disable-next-line react/no-array-index-key
|
|
1890
1890
|
/* @__PURE__ */ a.jsx(Xn, { item: t }, n)
|
|
1891
1891
|
)) }) })
|
|
1892
1892
|
] }, e.label) : /* @__PURE__ */ a.jsx(Re, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(zn, { children: e.label }, e.label) }), Wn = Ft(function() {
|
|
1893
|
-
const [t, n] =
|
|
1893
|
+
const [t, n] = Lr(), { isAuthenticated: r, profile: o, isAuthEnabled: s } = Or(), { pathname: i } = De(), u = Ie(), { page: l, plugins: g } = u, p = g.filter((h) => Ha(h)).flatMap((h) => h.getProfileMenuItems(u)).map((h) => /* @__PURE__ */ a.jsx(Xn, { item: h }, h.label)), d = t ? ga : xa;
|
|
1894
1894
|
return /* @__PURE__ */ a.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
1895
1895
|
/* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
|
|
1896
1896
|
/* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Re, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
@@ -1919,7 +1919,7 @@ const gs = () => {
|
|
|
1919
1919
|
/* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: l == null ? void 0 : l.pageTitle })
|
|
1920
1920
|
] }) }) }),
|
|
1921
1921
|
/* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
1922
|
-
/* @__PURE__ */ a.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ a.jsx(
|
|
1922
|
+
/* @__PURE__ */ a.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ a.jsx(vs, {}) }),
|
|
1923
1923
|
/* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
|
|
1924
1924
|
/* @__PURE__ */ a.jsx(se, { name: "head-navigation-start" }),
|
|
1925
1925
|
s && !r ? /* @__PURE__ */ a.jsx(Qe, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
@@ -1931,8 +1931,8 @@ const gs = () => {
|
|
|
1931
1931
|
},
|
|
1932
1932
|
children: "Login"
|
|
1933
1933
|
}
|
|
1934
|
-
) }) : p.length > 0 && /* @__PURE__ */ a.jsxs(
|
|
1935
|
-
/* @__PURE__ */ a.jsx(
|
|
1934
|
+
) }) : p.length > 0 && /* @__PURE__ */ a.jsxs(ds, { children: [
|
|
1935
|
+
/* @__PURE__ */ a.jsx(hs, { asChild: !0, children: /* @__PURE__ */ a.jsx(Qe, { variant: "ghost", children: o != null && o.email ? `${o.email}` : "My Account" }) }),
|
|
1936
1936
|
/* @__PURE__ */ a.jsxs(Hn, { className: "w-56", children: [
|
|
1937
1937
|
/* @__PURE__ */ a.jsx(Vn, { children: "My Account" }),
|
|
1938
1938
|
/* @__PURE__ */ a.jsx(Yn, {}),
|
|
@@ -1953,11 +1953,11 @@ const gs = () => {
|
|
|
1953
1953
|
] })
|
|
1954
1954
|
] })
|
|
1955
1955
|
] }),
|
|
1956
|
-
/* @__PURE__ */ a.jsx(
|
|
1956
|
+
/* @__PURE__ */ a.jsx(xs, {})
|
|
1957
1957
|
] }) });
|
|
1958
1958
|
}), Jn = {
|
|
1959
1959
|
Header: Wn
|
|
1960
|
-
},
|
|
1960
|
+
}, ys = At(Jn), ws = ys.Provider, bs = (e) => {
|
|
1961
1961
|
const [t, n] = ie(!1);
|
|
1962
1962
|
W(() => {
|
|
1963
1963
|
const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), u = s === "dark" || !s && i.matches;
|
|
@@ -1967,17 +1967,17 @@ const gs = () => {
|
|
|
1967
1967
|
const s = !t;
|
|
1968
1968
|
document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
|
|
1969
1969
|
}, [t]), o = [t, r];
|
|
1970
|
-
return /* @__PURE__ */ a.jsx(
|
|
1971
|
-
},
|
|
1970
|
+
return /* @__PURE__ */ a.jsx(Kr.Provider, { value: o, ...e });
|
|
1971
|
+
}, Ms = ({
|
|
1972
1972
|
children: e,
|
|
1973
1973
|
context: t
|
|
1974
1974
|
}) => {
|
|
1975
|
-
const n =
|
|
1976
|
-
return
|
|
1975
|
+
const n = gr();
|
|
1976
|
+
return ia({
|
|
1977
1977
|
queryFn: async () => (await t.initialize({ navigate: n }), !0),
|
|
1978
1978
|
queryKey: ["zudoku-initialize"]
|
|
1979
|
-
}), /* @__PURE__ */ a.jsx(
|
|
1980
|
-
},
|
|
1979
|
+
}), /* @__PURE__ */ a.jsx(ca.Provider, { value: t, children: e });
|
|
1980
|
+
}, Cs = ({
|
|
1981
1981
|
children: e,
|
|
1982
1982
|
...t
|
|
1983
1983
|
}) => {
|
|
@@ -1988,35 +1988,35 @@ const gs = () => {
|
|
|
1988
1988
|
), r = Ke(() => {
|
|
1989
1989
|
var x;
|
|
1990
1990
|
return {
|
|
1991
|
-
...(t.plugins ?? []).filter(
|
|
1991
|
+
...(t.plugins ?? []).filter(Wa).flatMap(
|
|
1992
1992
|
(M) => M.getMdxComponents ? [M.getMdxComponents()] : []
|
|
1993
1993
|
).reduce((M, I) => ({ ...M, ...I }), {}),
|
|
1994
|
-
|
|
1994
|
+
...$r,
|
|
1995
1995
|
...(x = t.mdx) == null ? void 0 : x.components
|
|
1996
1996
|
};
|
|
1997
|
-
}, [(d = t.mdx) == null ? void 0 : d.components, t.plugins]), { stagger: o } =
|
|
1997
|
+
}, [(d = t.mdx) == null ? void 0 : d.components, t.plugins]), { stagger: o } = zr(qe), [s, i] = ie(!1), u = Ke(
|
|
1998
1998
|
() => s ? { stagger: !0 } : { stagger: o },
|
|
1999
1999
|
[o, s]
|
|
2000
|
-
), l =
|
|
2000
|
+
), l = vr();
|
|
2001
2001
|
W(() => {
|
|
2002
2002
|
s || i(!0);
|
|
2003
2003
|
}, [s, l.location]);
|
|
2004
|
-
const [g] = ie(() => new
|
|
2004
|
+
const [g] = ie(() => new Za(t)), p = (h = t.plugins) == null ? void 0 : h.filter(Xa).map((v, x) => {
|
|
2005
2005
|
var M;
|
|
2006
|
-
return /* @__PURE__ */ a.jsx(
|
|
2006
|
+
return /* @__PURE__ */ a.jsx(Vr, { children: (M = v.getHead) == null ? void 0 : M.call(v) }, x);
|
|
2007
2007
|
});
|
|
2008
|
-
return /* @__PURE__ */ a.jsxs(
|
|
2008
|
+
return /* @__PURE__ */ a.jsxs(ua, { client: Ht, children: [
|
|
2009
2009
|
/* @__PURE__ */ a.jsx(Ge, { children: p }),
|
|
2010
|
-
/* @__PURE__ */ a.jsx(qe.Provider, { value: u, children: /* @__PURE__ */ a.jsx(
|
|
2010
|
+
/* @__PURE__ */ a.jsx(qe.Provider, { value: u, children: /* @__PURE__ */ a.jsx(Ms, { context: g, children: /* @__PURE__ */ a.jsx(ur, { components: r, children: /* @__PURE__ */ a.jsx(bs, { children: /* @__PURE__ */ a.jsx(ws, { value: n, children: /* @__PURE__ */ a.jsx(yr, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(Br, { children: e ?? /* @__PURE__ */ a.jsx(jt, {}) }) }) }) }) }) }) })
|
|
2011
2011
|
] });
|
|
2012
|
-
},
|
|
2012
|
+
}, Ss = Ft(Cs), Zn = (e) => /* @__PURE__ */ a.jsx(Ua, { FallbackComponent: eo, children: /* @__PURE__ */ a.jsx(Ss, { ...e }) });
|
|
2013
2013
|
Zn.displayName = "DevPortal";
|
|
2014
|
-
const
|
|
2014
|
+
const Ps = ({
|
|
2015
2015
|
category: e,
|
|
2016
2016
|
level: t
|
|
2017
2017
|
}) => {
|
|
2018
2018
|
var h;
|
|
2019
|
-
const n = $t(), r =
|
|
2019
|
+
const n = $t(), r = lr(e), [o, s] = ie(!1), i = e.collapsible ?? !0, u = e.collapsed ?? !0, l = !!(!i || !u || r), [g, p] = ie(l);
|
|
2020
2020
|
W(() => {
|
|
2021
2021
|
r && p(!0);
|
|
2022
2022
|
}, [r]);
|
|
@@ -2040,7 +2040,7 @@ const Ss = ({
|
|
|
2040
2040
|
}
|
|
2041
2041
|
);
|
|
2042
2042
|
return /* @__PURE__ */ a.jsxs(
|
|
2043
|
-
|
|
2043
|
+
Wr,
|
|
2044
2044
|
{
|
|
2045
2045
|
className: b("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
|
|
2046
2046
|
defaultOpen: l,
|
|
@@ -2048,7 +2048,7 @@ const Ss = ({
|
|
|
2048
2048
|
onOpenChange: () => p(!0),
|
|
2049
2049
|
children: [
|
|
2050
2050
|
/* @__PURE__ */ a.jsx(
|
|
2051
|
-
|
|
2051
|
+
Jr,
|
|
2052
2052
|
{
|
|
2053
2053
|
className: b(
|
|
2054
2054
|
"group text-start",
|
|
@@ -2076,7 +2076,7 @@ const Ss = ({
|
|
|
2076
2076
|
}
|
|
2077
2077
|
),
|
|
2078
2078
|
/* @__PURE__ */ a.jsx(
|
|
2079
|
-
|
|
2079
|
+
Zr,
|
|
2080
2080
|
{
|
|
2081
2081
|
className: b(
|
|
2082
2082
|
// CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
|
|
@@ -2096,7 +2096,7 @@ const Ss = ({
|
|
|
2096
2096
|
]
|
|
2097
2097
|
}
|
|
2098
2098
|
);
|
|
2099
|
-
}, he =
|
|
2099
|
+
}, he = Qr(
|
|
2100
2100
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
2101
2101
|
{
|
|
2102
2102
|
variants: {
|
|
@@ -2117,10 +2117,10 @@ const Ss = ({
|
|
|
2117
2117
|
item: e,
|
|
2118
2118
|
level: t = 0
|
|
2119
2119
|
}) => {
|
|
2120
|
-
const n = $t(), { activeAnchor: r } = ze(), [o] =
|
|
2120
|
+
const n = $t(), { activeAnchor: r } = ze(), [o] = xr();
|
|
2121
2121
|
switch (e.type) {
|
|
2122
2122
|
case "category":
|
|
2123
|
-
return /* @__PURE__ */ a.jsx(
|
|
2123
|
+
return /* @__PURE__ */ a.jsx(Ps, { category: e, level: t });
|
|
2124
2124
|
case "doc":
|
|
2125
2125
|
return /* @__PURE__ */ a.jsx(
|
|
2126
2126
|
je,
|
|
@@ -2135,7 +2135,7 @@ const Ss = ({
|
|
|
2135
2135
|
);
|
|
2136
2136
|
case "link":
|
|
2137
2137
|
return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
|
|
2138
|
-
|
|
2138
|
+
dr,
|
|
2139
2139
|
{
|
|
2140
2140
|
to: { hash: e.href, search: o.toString() },
|
|
2141
2141
|
[er]: e.href.slice(1),
|
|
@@ -2165,7 +2165,7 @@ const Ss = ({
|
|
|
2165
2165
|
/* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
2166
2166
|
/* @__PURE__ */ a.jsxs("span", { className: "whitespace-nowrap", children: [
|
|
2167
2167
|
" ",
|
|
2168
|
-
/* @__PURE__ */ a.jsx(
|
|
2168
|
+
/* @__PURE__ */ a.jsx(ma, { className: "inline ml-1", size: 12 })
|
|
2169
2169
|
] })
|
|
2170
2170
|
]
|
|
2171
2171
|
}
|
|
@@ -2181,17 +2181,17 @@ const Ss = ({
|
|
|
2181
2181
|
}
|
|
2182
2182
|
);
|
|
2183
2183
|
}
|
|
2184
|
-
},
|
|
2184
|
+
}, js = (e, t = { block: "center" }) => {
|
|
2185
2185
|
if (!e) return;
|
|
2186
2186
|
const n = e.getBoundingClientRect();
|
|
2187
2187
|
n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
2188
|
-
},
|
|
2188
|
+
}, Rs = () => {
|
|
2189
2189
|
const e = De(), { setActiveAnchor: t } = ze();
|
|
2190
2190
|
W(() => {
|
|
2191
2191
|
if (!e.hash) return;
|
|
2192
2192
|
const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
|
|
2193
2193
|
const o = document.getElementById(n), s = document.querySelector(`[${er}="${n}"]`);
|
|
2194
|
-
return o ? (o.scrollIntoView(),
|
|
2194
|
+
return o ? (o.scrollIntoView(), js(s), requestIdleCallback(() => t(n)), !0) : !1;
|
|
2195
2195
|
};
|
|
2196
2196
|
if (!r()) {
|
|
2197
2197
|
const o = new MutationObserver((s, i) => {
|
|
@@ -2200,28 +2200,30 @@ const Ss = ({
|
|
|
2200
2200
|
return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
|
|
2201
2201
|
}
|
|
2202
2202
|
}, [e.hash, t]);
|
|
2203
|
-
},
|
|
2203
|
+
}, Es = () => {
|
|
2204
2204
|
const e = De(), t = Ve(e.pathname);
|
|
2205
2205
|
W(() => {
|
|
2206
2206
|
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
2207
2207
|
}, [e.pathname]);
|
|
2208
|
-
},
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2208
|
+
}, nr = Yr(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
|
|
2209
|
+
"nav",
|
|
2210
|
+
{
|
|
2211
|
+
"data-navigation": String(n),
|
|
2212
|
+
className: b(
|
|
2213
|
+
"scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
|
|
2214
|
+
"px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
|
|
2215
|
+
"w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
|
|
2216
|
+
t
|
|
2217
|
+
),
|
|
2218
|
+
ref: r,
|
|
2219
|
+
children: e
|
|
2220
|
+
}
|
|
2221
|
+
));
|
|
2222
|
+
nr.displayName = "SidebarWrapper";
|
|
2223
|
+
const _s = () => {
|
|
2224
|
+
const e = Ve(null), t = la();
|
|
2223
2225
|
return /* @__PURE__ */ a.jsxs(
|
|
2224
|
-
|
|
2226
|
+
nr,
|
|
2225
2227
|
{
|
|
2226
2228
|
ref: e,
|
|
2227
2229
|
pushMainContent: t.data.items.length > 0,
|
|
@@ -2234,7 +2236,7 @@ const Ss = ({
|
|
|
2234
2236
|
);
|
|
2235
2237
|
}, Ns = ({ children: e }) => {
|
|
2236
2238
|
const t = De(), { setActiveAnchor: n } = ze(), { meta: r } = Ie();
|
|
2237
|
-
|
|
2239
|
+
Rs(), Es();
|
|
2238
2240
|
const o = Ve(t.pathname);
|
|
2239
2241
|
return W(() => {
|
|
2240
2242
|
t.pathname !== o.current && n(""), o.current = t.pathname;
|
|
@@ -2248,7 +2250,7 @@ const Ss = ({
|
|
|
2248
2250
|
/* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ a.jsxs(
|
|
2249
2251
|
Tt,
|
|
2250
2252
|
{
|
|
2251
|
-
fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(
|
|
2253
|
+
fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(fa, {}) }),
|
|
2252
2254
|
children: [
|
|
2253
2255
|
/* @__PURE__ */ a.jsx(_s, {}),
|
|
2254
2256
|
/* @__PURE__ */ a.jsxs(
|
|
@@ -2271,7 +2273,7 @@ const Ss = ({
|
|
|
2271
2273
|
}
|
|
2272
2274
|
) })
|
|
2273
2275
|
] });
|
|
2274
|
-
}, Hs =
|
|
2276
|
+
}, Hs = hr, zs = qr, Vs = Zn, Ys = Ns, Xs = Re, Ws = wr, Js = ya, Zs = Ta, ei = Fa, ti = Qe, ni = Ge;
|
|
2275
2277
|
export {
|
|
2276
2278
|
Zs as Bootstrap,
|
|
2277
2279
|
ei as BootstrapStatic,
|