zudoku 0.3.0-dev.105 → 0.3.0-dev.107
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/Header.js +3 -2
- package/dist/lib/components/Header.js.map +1 -1
- package/lib/{SlotletProvider-CzMAO73_.js → SlotletProvider-D-WxwNAV.js} +3 -3
- package/lib/{SlotletProvider-CzMAO73_.js.map → SlotletProvider-D-WxwNAV.js.map} +1 -1
- package/lib/zudoku.components.js +491 -489
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +1 -1
- package/package.json +1 -1
- package/src/lib/components/Header.tsx +3 -0
package/lib/zudoku.components.js
CHANGED
|
@@ -3,37 +3,37 @@ var dt = (e) => {
|
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
5
|
var ir = (e, t, n) => t in e ? sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
-
var
|
|
7
|
-
var h = (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),
|
|
8
|
-
var
|
|
9
|
-
set _(
|
|
10
|
-
|
|
6
|
+
var P = (e, t, n) => ir(e, typeof t != "symbol" ? t + "" : t, n), ht = (e, t, n) => t.has(e) || dt("Cannot " + n);
|
|
7
|
+
var h = (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), j = (e, t, n, r) => (ht(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
8
|
+
var Ce = (e, t, n, r) => ({
|
|
9
|
+
set _(o) {
|
|
10
|
+
j(e, t, o, n);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
13
|
return h(e, t, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { H as
|
|
17
|
-
import { d as hr, a as fr, R as pr, N as Pe, u as De, L as
|
|
18
|
-
import { E as Rt, S as
|
|
19
|
-
import { j as
|
|
20
|
-
import { M as yr, c as wr, a as Et, b as _t, A as br, u as
|
|
21
|
-
import { c as
|
|
16
|
+
import { H as St, a as Ge, M as cr, u as ur, A as lr, b as dr } from "./utils-Bh4upQ0e.js";
|
|
17
|
+
import { d as hr, a as fr, R as pr, N as Pe, u as De, L as Re, b as mr, c as gr, O as Pt } from "./index-7kcHaXD6.js";
|
|
18
|
+
import { E as Rt, S as se, a as vr, R as xr } from "./SlotletProvider-D-WxwNAV.js";
|
|
19
|
+
import { j as a } from "./jsx-runtime-B6kdoens.js";
|
|
20
|
+
import { M as yr, c as wr, a as Et, b as _t, A as br, u as ge, h as Mr, d as y, e as Cr, F as jr, D as Sr, C as Pr, P as ie, f as He, g as Rr, i as Nt, R as Er, S as _r, j as Nr, k as Dr, l as Dt, m as Ir, n as Ee, o as It, p as kr, B as Qe } from "./Combination-D-9IH0zy.js";
|
|
21
|
+
import { c as ce, a as M, C as Ar, b as Or, u as Tr, T as Fr, M as Lr, V as Kr, d as ze, e as $r, f as Br } from "./Markdown-B_Gax7at.js";
|
|
22
22
|
import * as c from "react";
|
|
23
|
-
import Qr, { StrictMode as kt, createContext as At, Component as qr, createElement as ft, isValidElement as Ur, useState as
|
|
23
|
+
import Qr, { StrictMode as kt, createContext as At, Component as qr, createElement as ft, isValidElement as Ur, useState as he, useCallback as Ot, useEffect as W, Suspense as Tt, memo as Ft, useMemo as Ke, useContext as Gr, Fragment as Hr, useRef as Ve, forwardRef as zr } from "react";
|
|
24
24
|
import { g as Ye } from "./_commonjsHelpers-BVfed4GL.js";
|
|
25
25
|
import { r as Vr } from "./router-BiRCp01d.js";
|
|
26
26
|
import { S as qe, R as Yr, T as Xr, C as Wr } from "./index-D-9Z7HSn.js";
|
|
27
|
-
import { S as Lt, h as Kt, Q as Jr, n as E, m as pt, a as mt, b as $, e as Zr, c as
|
|
27
|
+
import { S as Lt, h as Kt, Q as Jr, n as E, m as pt, a as mt, b as $, e as Zr, c as ea, d as ta, f as na, o as gt, r as vt, g as ra, i as xt, p as yt, s as aa, u as Ie, j as oa, Z as sa, k as ia, l as $t, q as ca } 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 ua, I as la, S as $e, a as da } from "./Spinner-BCz1kNGw.js";
|
|
30
30
|
/**
|
|
31
31
|
* @license lucide-react v0.378.0 - ISC
|
|
32
32
|
*
|
|
33
33
|
* This source code is licensed under the ISC license.
|
|
34
34
|
* See the LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
const Qt =
|
|
36
|
+
const Qt = ce("ChevronRight", [
|
|
37
37
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
38
38
|
]);
|
|
39
39
|
/**
|
|
@@ -42,7 +42,7 @@ const Qt = ie("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 ha = ce("Dot", [
|
|
46
46
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
|
47
47
|
]);
|
|
48
48
|
/**
|
|
@@ -51,7 +51,7 @@ const fo = ie("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 fa = ce("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 po = ie("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 pa = ce("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 mo = ie("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 ma = ce("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 go = ie("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 ga = ce("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 vo = ie("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
|
|
98
|
-
return /* @__PURE__ */
|
|
97
|
+
function va({ error: e }) {
|
|
98
|
+
return /* @__PURE__ */ a.jsx(Rt, { error: e });
|
|
99
99
|
}
|
|
100
|
-
var
|
|
101
|
-
const
|
|
102
|
-
Object.defineProperty(
|
|
103
|
-
var
|
|
104
|
-
function
|
|
100
|
+
var ve = {};
|
|
101
|
+
const xa = /* @__PURE__ */ Ye(Vr), ya = /* @__PURE__ */ Ye(hr), wa = /* @__PURE__ */ Ye(fr);
|
|
102
|
+
Object.defineProperty(ve, "__esModule", { value: !0 });
|
|
103
|
+
var ba = Qr, F = xa, We = ya, B = wa;
|
|
104
|
+
function Ma(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,15 +116,15 @@ function Co(e) {
|
|
|
116
116
|
}
|
|
117
117
|
}), t.default = e, Object.freeze(t);
|
|
118
118
|
}
|
|
119
|
-
var O = /* @__PURE__ */
|
|
120
|
-
function
|
|
119
|
+
var O = /* @__PURE__ */ Ma(ba);
|
|
120
|
+
function Ca({
|
|
121
121
|
basename: e,
|
|
122
122
|
children: t,
|
|
123
123
|
location: n = "/",
|
|
124
124
|
future: r
|
|
125
125
|
}) {
|
|
126
126
|
typeof n == "string" && (n = B.parsePath(n));
|
|
127
|
-
let
|
|
127
|
+
let o = F.Action.Pop, s = {
|
|
128
128
|
pathname: n.pathname || "/",
|
|
129
129
|
search: n.search || "",
|
|
130
130
|
hash: n.hash || "",
|
|
@@ -135,20 +135,20 @@ function So({
|
|
|
135
135
|
basename: e,
|
|
136
136
|
children: t,
|
|
137
137
|
location: s,
|
|
138
|
-
navigationType:
|
|
138
|
+
navigationType: o,
|
|
139
139
|
navigator: i,
|
|
140
140
|
future: r,
|
|
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,
|
|
148
148
|
nonce: r
|
|
149
149
|
}) {
|
|
150
150
|
t && e || (process.env.NODE_ENV !== "production" ? F.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : F.UNSAFE_invariant(!1));
|
|
151
|
-
let
|
|
151
|
+
let o = {
|
|
152
152
|
router: t,
|
|
153
153
|
navigator: qt(),
|
|
154
154
|
static: !0,
|
|
@@ -159,15 +159,15 @@ function Po({
|
|
|
159
159
|
let d = {
|
|
160
160
|
loaderData: e.loaderData,
|
|
161
161
|
actionData: e.actionData,
|
|
162
|
-
errors:
|
|
162
|
+
errors: Pa(e.errors)
|
|
163
163
|
};
|
|
164
|
-
i = `window.__staticRouterHydrationData = JSON.parse(${
|
|
164
|
+
i = `window.__staticRouterHydrationData = JSON.parse(${Ia(JSON.stringify(JSON.stringify(d)))});`;
|
|
165
165
|
}
|
|
166
166
|
let {
|
|
167
167
|
state: u
|
|
168
|
-
} =
|
|
168
|
+
} = o.router;
|
|
169
169
|
return /* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement(B.UNSAFE_DataRouterContext.Provider, {
|
|
170
|
-
value:
|
|
170
|
+
value: o
|
|
171
171
|
}, /* @__PURE__ */ O.createElement(B.UNSAFE_DataRouterStateContext.Provider, {
|
|
172
172
|
value: u
|
|
173
173
|
}, /* @__PURE__ */ O.createElement(B.UNSAFE_FetchersContext.Provider, {
|
|
@@ -177,15 +177,15 @@ function Po({
|
|
|
177
177
|
isTransitioning: !1
|
|
178
178
|
}
|
|
179
179
|
}, /* @__PURE__ */ O.createElement(B.Router, {
|
|
180
|
-
basename:
|
|
180
|
+
basename: o.basename,
|
|
181
181
|
location: u.location,
|
|
182
182
|
navigationType: u.historyAction,
|
|
183
|
-
navigator:
|
|
184
|
-
static:
|
|
183
|
+
navigator: o.navigator,
|
|
184
|
+
static: o.static,
|
|
185
185
|
future: {
|
|
186
186
|
v7_relativeSplatPath: t.future.v7_relativeSplatPath
|
|
187
187
|
}
|
|
188
|
-
}, /* @__PURE__ */ O.createElement(
|
|
188
|
+
}, /* @__PURE__ */ O.createElement(Sa, {
|
|
189
189
|
routes: t.routes,
|
|
190
190
|
future: t.future,
|
|
191
191
|
state: u
|
|
@@ -197,29 +197,29 @@ function Po({
|
|
|
197
197
|
}
|
|
198
198
|
}) : null);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Sa({
|
|
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 Pa(e) {
|
|
208
208
|
if (!e) return null;
|
|
209
209
|
let t = Object.entries(e), n = {};
|
|
210
|
-
for (let [r,
|
|
211
|
-
F.isRouteErrorResponse(
|
|
212
|
-
...
|
|
210
|
+
for (let [r, o] of t)
|
|
211
|
+
F.isRouteErrorResponse(o) ? n[r] = {
|
|
212
|
+
...o,
|
|
213
213
|
__type: "RouteErrorResponse"
|
|
214
|
-
} :
|
|
215
|
-
message:
|
|
214
|
+
} : o instanceof Error ? n[r] = {
|
|
215
|
+
message: o.message,
|
|
216
216
|
__type: "Error",
|
|
217
217
|
// If this is a subclass (i.e., ReferenceError), send up the type so we
|
|
218
218
|
// can re-create the same type during hydration.
|
|
219
|
-
...
|
|
220
|
-
__subType:
|
|
219
|
+
...o.name !== "Error" ? {
|
|
220
|
+
__subType: o.name
|
|
221
221
|
} : {}
|
|
222
|
-
} : n[r] =
|
|
222
|
+
} : n[r] = o;
|
|
223
223
|
return n;
|
|
224
224
|
}
|
|
225
225
|
function qt() {
|
|
@@ -243,14 +243,14 @@ function qt() {
|
|
|
243
243
|
}
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Ra(e, t) {
|
|
247
247
|
return F.createStaticHandler(e, {
|
|
248
248
|
...t,
|
|
249
249
|
mapRouteProperties: We.UNSAFE_mapRouteProperties
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
let r = {},
|
|
252
|
+
function Ea(e, t, n = {}) {
|
|
253
|
+
let r = {}, o = F.UNSAFE_convertRoutesToDataRoutes(e, We.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((u) => {
|
|
254
254
|
let d = r[u.route.id] || u.route;
|
|
255
255
|
return {
|
|
256
256
|
...u,
|
|
@@ -290,7 +290,7 @@ function _o(e, t, n = {}) {
|
|
|
290
290
|
};
|
|
291
291
|
},
|
|
292
292
|
get routes() {
|
|
293
|
-
return
|
|
293
|
+
return o;
|
|
294
294
|
},
|
|
295
295
|
get window() {
|
|
296
296
|
},
|
|
@@ -345,51 +345,51 @@ 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 = _a.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 _a = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Na = {
|
|
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
|
+
}, Da = /[&><\u2028\u2029]/g;
|
|
362
|
+
function Ia(e) {
|
|
363
|
+
return e.replace(Da, (t) => Na[t]);
|
|
364
364
|
}
|
|
365
|
-
|
|
366
|
-
var
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
const
|
|
365
|
+
ve.StaticRouter = Ca;
|
|
366
|
+
var ka = ve.StaticRouterProvider = ja;
|
|
367
|
+
ve.createStaticHandler = Ra;
|
|
368
|
+
ve.createStaticRouter = Ea;
|
|
369
|
+
const Aa = ({
|
|
370
370
|
router: e,
|
|
371
371
|
hydrate: t = !1
|
|
372
|
-
}) => /* @__PURE__ */
|
|
372
|
+
}) => /* @__PURE__ */ a.jsx(kt, { children: /* @__PURE__ */ a.jsx(St, { children: /* @__PURE__ */ a.jsx(qe.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(pr, { router: e }) }) }) }), Oa = ({
|
|
373
373
|
router: e,
|
|
374
374
|
context: t,
|
|
375
375
|
helmetContext: n
|
|
376
|
-
}) => /* @__PURE__ */
|
|
377
|
-
var T, Mt,
|
|
376
|
+
}) => /* @__PURE__ */ a.jsx(kt, { children: /* @__PURE__ */ a.jsx(St, { context: n, children: /* @__PURE__ */ a.jsx(ka, { router: e, context: t }) }) });
|
|
377
|
+
var T, Mt, Ta = (Mt = class extends Lt {
|
|
378
378
|
constructor(t = {}) {
|
|
379
379
|
super();
|
|
380
380
|
N(this, T);
|
|
381
|
-
this.config = t,
|
|
381
|
+
this.config = t, j(this, T, /* @__PURE__ */ new Map());
|
|
382
382
|
}
|
|
383
383
|
build(t, n, r) {
|
|
384
|
-
const
|
|
384
|
+
const o = n.queryKey, s = n.queryHash ?? Kt(o, n);
|
|
385
385
|
let i = this.get(s);
|
|
386
386
|
return i || (i = new Jr({
|
|
387
387
|
cache: this,
|
|
388
|
-
queryKey:
|
|
388
|
+
queryKey: o,
|
|
389
389
|
queryHash: s,
|
|
390
390
|
options: t.defaultQueryOptions(n),
|
|
391
391
|
state: r,
|
|
392
|
-
defaultOptions: t.getQueryDefaults(
|
|
392
|
+
defaultOptions: t.getQueryDefaults(o)
|
|
393
393
|
}), this.add(i)), i;
|
|
394
394
|
}
|
|
395
395
|
add(t) {
|
|
@@ -446,43 +446,43 @@ var T, Mt, Fo = (Mt = class extends Lt {
|
|
|
446
446
|
});
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
|
-
}, T = new WeakMap(), Mt), R,
|
|
449
|
+
}, T = new WeakMap(), Mt), R, me, Ct, Fa = (Ct = class extends Lt {
|
|
450
450
|
constructor(t = {}) {
|
|
451
451
|
super();
|
|
452
452
|
N(this, R);
|
|
453
|
-
N(this,
|
|
454
|
-
this.config = t,
|
|
453
|
+
N(this, me);
|
|
454
|
+
this.config = t, j(this, R, /* @__PURE__ */ new Map()), j(this, me, Date.now());
|
|
455
455
|
}
|
|
456
456
|
build(t, n, r) {
|
|
457
|
-
const
|
|
457
|
+
const o = new yr({
|
|
458
458
|
mutationCache: this,
|
|
459
|
-
mutationId: ++
|
|
459
|
+
mutationId: ++Ce(this, me)._,
|
|
460
460
|
options: t.defaultMutationOptions(n),
|
|
461
461
|
state: r
|
|
462
462
|
});
|
|
463
|
-
return this.add(
|
|
463
|
+
return this.add(o), o;
|
|
464
464
|
}
|
|
465
465
|
add(t) {
|
|
466
|
-
const n =
|
|
466
|
+
const n = je(t), r = h(this, R).get(n) ?? [];
|
|
467
467
|
r.push(t), h(this, R).set(n, r), this.notify({ type: "added", mutation: t });
|
|
468
468
|
}
|
|
469
469
|
remove(t) {
|
|
470
470
|
var r;
|
|
471
|
-
const n =
|
|
471
|
+
const n = je(t);
|
|
472
472
|
if (h(this, R).has(n)) {
|
|
473
|
-
const
|
|
474
|
-
|
|
473
|
+
const o = (r = h(this, R).get(n)) == null ? void 0 : r.filter((s) => s !== t);
|
|
474
|
+
o && (o.length === 0 ? h(this, R).delete(n) : h(this, R).set(n, o));
|
|
475
475
|
}
|
|
476
476
|
this.notify({ type: "removed", mutation: t });
|
|
477
477
|
}
|
|
478
478
|
canRun(t) {
|
|
479
479
|
var r;
|
|
480
|
-
const n = (r = h(this, R).get(
|
|
480
|
+
const n = (r = h(this, R).get(je(t))) == null ? void 0 : r.find((o) => o.state.status === "pending");
|
|
481
481
|
return !n || n === t;
|
|
482
482
|
}
|
|
483
483
|
runNext(t) {
|
|
484
484
|
var r;
|
|
485
|
-
const n = (r = h(this, R).get(
|
|
485
|
+
const n = (r = h(this, R).get(je(t))) == null ? void 0 : r.find((o) => o !== t && o.state.isPaused);
|
|
486
486
|
return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
|
|
487
487
|
}
|
|
488
488
|
clear() {
|
|
@@ -519,17 +519,17 @@ var T, Mt, Fo = (Mt = class extends Lt {
|
|
|
519
519
|
)
|
|
520
520
|
);
|
|
521
521
|
}
|
|
522
|
-
}, R = new WeakMap(),
|
|
523
|
-
function
|
|
522
|
+
}, R = new WeakMap(), me = new WeakMap(), Ct);
|
|
523
|
+
function je(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 La(e) {
|
|
528
528
|
return {
|
|
529
529
|
onFetch: (t, n) => {
|
|
530
530
|
const r = async () => {
|
|
531
531
|
var x, b, I, Q, V;
|
|
532
|
-
const
|
|
532
|
+
const o = t.options, s = (I = (b = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : b.fetchMore) == null ? void 0 : I.direction, i = ((Q = t.state.data) == null ? void 0 : Q.pages) || [], u = ((V = t.state.data) == null ? void 0 : V.pageParams) || [], d = { pages: [], pageParams: [] };
|
|
533
533
|
let g = !1;
|
|
534
534
|
const p = (C) => {
|
|
535
535
|
Object.defineProperty(C, "signal", {
|
|
@@ -552,36 +552,36 @@ function Ko(e) {
|
|
|
552
552
|
p(Y);
|
|
553
553
|
const Z = await l(
|
|
554
554
|
Y
|
|
555
|
-
), { maxPages:
|
|
555
|
+
), { maxPages: be } = t.options, X = L ? ea : ta;
|
|
556
556
|
return {
|
|
557
|
-
pages: X(C.pages, Z,
|
|
558
|
-
pageParams: X(C.pageParams, k,
|
|
557
|
+
pages: X(C.pages, Z, be),
|
|
558
|
+
pageParams: X(C.pageParams, k, be)
|
|
559
559
|
};
|
|
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 ? Ka : wt, L = {
|
|
564
564
|
pages: i,
|
|
565
565
|
pageParams: u
|
|
566
|
-
}, Y = k(
|
|
566
|
+
}, Y = k(o, L);
|
|
567
567
|
v = await f(L, Y, C);
|
|
568
568
|
} else {
|
|
569
569
|
v = await f(
|
|
570
570
|
d,
|
|
571
|
-
u[0] ??
|
|
571
|
+
u[0] ?? o.initialPageParam
|
|
572
572
|
);
|
|
573
573
|
const C = e ?? i.length;
|
|
574
574
|
for (let k = 1; k < C; k++) {
|
|
575
|
-
const L = wt(
|
|
575
|
+
const L = wt(o, v);
|
|
576
576
|
v = await f(v, L);
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
return v;
|
|
580
580
|
};
|
|
581
581
|
t.options.persister ? t.fetchFn = () => {
|
|
582
|
-
var
|
|
583
|
-
return (s = (
|
|
584
|
-
|
|
582
|
+
var o, s;
|
|
583
|
+
return (s = (o = t.options).persister) == null ? void 0 : s.call(
|
|
584
|
+
o,
|
|
585
585
|
r,
|
|
586
586
|
{
|
|
587
587
|
queryKey: t.queryKey,
|
|
@@ -603,7 +603,7 @@ function wt(e, { pages: t, pageParams: n }) {
|
|
|
603
603
|
n
|
|
604
604
|
);
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function Ka(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 $o(e, { pages: t, pageParams: n }) {
|
|
|
613
613
|
n
|
|
614
614
|
);
|
|
615
615
|
}
|
|
616
|
-
var w, U, G, ne, re, H,
|
|
616
|
+
var w, U, G, ne, re, H, ae, oe, jt, $a = (jt = class {
|
|
617
617
|
constructor(e = {}) {
|
|
618
618
|
N(this, w);
|
|
619
619
|
N(this, U);
|
|
@@ -621,20 +621,20 @@ var w, U, G, ne, re, H, oe, ae, St, Bo = (St = class {
|
|
|
621
621
|
N(this, ne);
|
|
622
622
|
N(this, re);
|
|
623
623
|
N(this, H);
|
|
624
|
-
N(this, oe);
|
|
625
624
|
N(this, ae);
|
|
626
|
-
|
|
625
|
+
N(this, oe);
|
|
626
|
+
j(this, w, e.queryCache || new Ta()), j(this, U, e.mutationCache || new Fa()), j(this, G, e.defaultOptions || {}), j(this, ne, /* @__PURE__ */ new Map()), j(this, re, /* @__PURE__ */ new Map()), j(this, H, 0);
|
|
627
627
|
}
|
|
628
628
|
mount() {
|
|
629
|
-
|
|
629
|
+
Ce(this, H)._++, h(this, H) === 1 && (j(this, ae, na.subscribe(async (e) => {
|
|
630
630
|
e && (await this.resumePausedMutations(), h(this, w).onFocus());
|
|
631
|
-
})),
|
|
631
|
+
})), j(this, oe, gt.subscribe(async (e) => {
|
|
632
632
|
e && (await this.resumePausedMutations(), h(this, w).onOnline());
|
|
633
633
|
})));
|
|
634
634
|
}
|
|
635
635
|
unmount() {
|
|
636
636
|
var e, t;
|
|
637
|
-
|
|
637
|
+
Ce(this, H)._--, h(this, H) === 0 && ((e = h(this, ae)) == null || e.call(this), j(this, ae, void 0), (t = h(this, oe)) == null || t.call(this), j(this, oe, void 0));
|
|
638
638
|
}
|
|
639
639
|
isFetching(e) {
|
|
640
640
|
return h(this, w).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -663,9 +663,9 @@ var w, U, G, ne, re, H, oe, ae, St, Bo = (St = class {
|
|
|
663
663
|
});
|
|
664
664
|
}
|
|
665
665
|
setQueryData(e, t, n) {
|
|
666
|
-
const r = this.defaultQueryOptions({ queryKey: e }),
|
|
666
|
+
const r = this.defaultQueryOptions({ queryKey: e }), o = h(this, w).get(
|
|
667
667
|
r.queryHash
|
|
668
|
-
), s =
|
|
668
|
+
), s = o == null ? void 0 : o.state.data, i = ra(t, s);
|
|
669
669
|
if (i !== void 0)
|
|
670
670
|
return h(this, w).build(this, r).setData(i, { ...n, manual: !0 });
|
|
671
671
|
}
|
|
@@ -695,13 +695,13 @@ var w, U, G, ne, re, H, oe, ae, St, Bo = (St = class {
|
|
|
695
695
|
type: "active",
|
|
696
696
|
...e
|
|
697
697
|
};
|
|
698
|
-
return E.batch(() => (n.findAll(e).forEach((
|
|
699
|
-
|
|
698
|
+
return E.batch(() => (n.findAll(e).forEach((o) => {
|
|
699
|
+
o.reset();
|
|
700
700
|
}), this.refetchQueries(r, t)));
|
|
701
701
|
}
|
|
702
702
|
cancelQueries(e = {}, t = {}) {
|
|
703
703
|
const n = { revert: !0, ...t }, r = E.batch(
|
|
704
|
-
() => h(this, w).findAll(e).map((
|
|
704
|
+
() => h(this, w).findAll(e).map((o) => o.cancel(n))
|
|
705
705
|
);
|
|
706
706
|
return Promise.all(r).then($).catch($);
|
|
707
707
|
}
|
|
@@ -723,9 +723,9 @@ var w, U, G, ne, re, H, oe, ae, St, Bo = (St = class {
|
|
|
723
723
|
...t,
|
|
724
724
|
cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
|
|
725
725
|
}, r = E.batch(
|
|
726
|
-
() => h(this, w).findAll(e).filter((
|
|
727
|
-
let s =
|
|
728
|
-
return n.throwOnError || (s = s.catch($)),
|
|
726
|
+
() => h(this, w).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
|
|
727
|
+
let s = o.fetch(void 0, n);
|
|
728
|
+
return n.throwOnError || (s = s.catch($)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
|
|
729
729
|
})
|
|
730
730
|
);
|
|
731
731
|
return Promise.all(r).then($);
|
|
@@ -742,7 +742,7 @@ var w, U, G, ne, re, H, oe, ae, St, Bo = (St = class {
|
|
|
742
742
|
return this.fetchQuery(e).then($).catch($);
|
|
743
743
|
}
|
|
744
744
|
fetchInfiniteQuery(e) {
|
|
745
|
-
return e.behavior =
|
|
745
|
+
return e.behavior = La(e.pages), this.fetchQuery(e);
|
|
746
746
|
}
|
|
747
747
|
prefetchInfiniteQuery(e) {
|
|
748
748
|
return this.fetchInfiniteQuery(e).then($).catch($);
|
|
@@ -760,7 +760,7 @@ var w, U, G, ne, re, H, oe, ae, St, Bo = (St = class {
|
|
|
760
760
|
return h(this, G);
|
|
761
761
|
}
|
|
762
762
|
setDefaultOptions(e) {
|
|
763
|
-
|
|
763
|
+
j(this, G, e);
|
|
764
764
|
}
|
|
765
765
|
setQueryDefaults(e, t) {
|
|
766
766
|
h(this, ne).set(xt(e), {
|
|
@@ -800,7 +800,7 @@ var w, U, G, ne, re, H, oe, ae, St, Bo = (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 === aa && (t.enabled = !1), t;
|
|
804
804
|
}
|
|
805
805
|
defaultMutationOptions(e) {
|
|
806
806
|
return e != null && e._defaulted ? e : {
|
|
@@ -813,12 +813,12 @@ var w, U, G, ne, re, H, oe, ae, St, Bo = (St = class {
|
|
|
813
813
|
clear() {
|
|
814
814
|
h(this, w).clear(), h(this, U).clear();
|
|
815
815
|
}
|
|
816
|
-
}, w = new WeakMap(), U = new WeakMap(), G = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), H = new WeakMap(),
|
|
817
|
-
const
|
|
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(), jt);
|
|
817
|
+
const Ba = At(null), Be = {
|
|
818
818
|
didCatch: !1,
|
|
819
819
|
error: null
|
|
820
820
|
};
|
|
821
|
-
class
|
|
821
|
+
class Qa extends qr {
|
|
822
822
|
constructor(t) {
|
|
823
823
|
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Be;
|
|
824
824
|
}
|
|
@@ -833,7 +833,7 @@ class qo extends qr {
|
|
|
833
833
|
error: t
|
|
834
834
|
} = this.state;
|
|
835
835
|
if (t !== null) {
|
|
836
|
-
for (var n, r,
|
|
836
|
+
for (var n, r, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
|
|
837
837
|
s[i] = arguments[i];
|
|
838
838
|
(n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
|
|
839
839
|
args: s,
|
|
@@ -842,19 +842,19 @@ class qo extends qr {
|
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
componentDidCatch(t, n) {
|
|
845
|
-
var r,
|
|
846
|
-
(r = (
|
|
845
|
+
var r, o;
|
|
846
|
+
(r = (o = this.props).onError) === null || r === void 0 || r.call(o, t, n);
|
|
847
847
|
}
|
|
848
848
|
componentDidUpdate(t, n) {
|
|
849
849
|
const {
|
|
850
850
|
didCatch: r
|
|
851
851
|
} = this.state, {
|
|
852
|
-
resetKeys:
|
|
852
|
+
resetKeys: o
|
|
853
853
|
} = this.props;
|
|
854
|
-
if (r && n.error !== null &&
|
|
854
|
+
if (r && n.error !== null && qa(t.resetKeys, o)) {
|
|
855
855
|
var s, i;
|
|
856
856
|
(s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
|
|
857
|
-
next:
|
|
857
|
+
next: o,
|
|
858
858
|
prev: t.resetKeys,
|
|
859
859
|
reason: "keys"
|
|
860
860
|
}), this.setState(Be);
|
|
@@ -865,7 +865,7 @@ class qo extends qr {
|
|
|
865
865
|
children: t,
|
|
866
866
|
fallbackRender: n,
|
|
867
867
|
FallbackComponent: r,
|
|
868
|
-
fallback:
|
|
868
|
+
fallback: o
|
|
869
869
|
} = this.props, {
|
|
870
870
|
didCatch: s,
|
|
871
871
|
error: i
|
|
@@ -880,12 +880,12 @@ class qo extends qr {
|
|
|
880
880
|
u = n(d);
|
|
881
881
|
else if (r)
|
|
882
882
|
u = ft(r, d);
|
|
883
|
-
else if (
|
|
884
|
-
u =
|
|
883
|
+
else if (o === null || Ur(o))
|
|
884
|
+
u = o;
|
|
885
885
|
else
|
|
886
886
|
throw i;
|
|
887
887
|
}
|
|
888
|
-
return ft(
|
|
888
|
+
return ft(Ba.Provider, {
|
|
889
889
|
value: {
|
|
890
890
|
didCatch: s,
|
|
891
891
|
error: i,
|
|
@@ -894,70 +894,70 @@ class qo extends qr {
|
|
|
894
894
|
}, u);
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function qa() {
|
|
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 Ua = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Ga = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Ha = (e) => "renderSearch" in e && typeof e.renderSearch == "function", za = (e) => "initialize" in e && typeof e.initialize == "function", Va = (e) => "getHead" in e && typeof e.getHead == "function", Ya = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Xa = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Ht = new $a();
|
|
902
|
+
class Wa {
|
|
903
903
|
constructor(t) {
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
904
|
+
P(this, "plugins");
|
|
905
|
+
P(this, "sidebars");
|
|
906
|
+
P(this, "topNavigation");
|
|
907
|
+
P(this, "meta");
|
|
908
|
+
P(this, "page");
|
|
909
|
+
P(this, "authentication");
|
|
910
|
+
P(this, "navigationPlugins");
|
|
911
|
+
P(this, "initialize", async ({
|
|
912
912
|
navigate: t
|
|
913
913
|
}) => {
|
|
914
914
|
await Promise.all(
|
|
915
|
-
this.plugins.filter(
|
|
915
|
+
this.plugins.filter(za).map((n) => {
|
|
916
916
|
var r;
|
|
917
917
|
return (r = n.initialize) == null ? void 0 : r.call(n, this, { navigate: t });
|
|
918
918
|
})
|
|
919
919
|
);
|
|
920
920
|
});
|
|
921
|
-
|
|
921
|
+
P(this, "invalidateCache", async (t) => {
|
|
922
922
|
await Ht.invalidateQueries({ queryKey: t });
|
|
923
923
|
});
|
|
924
|
-
|
|
925
|
-
this.plugins.filter(
|
|
924
|
+
P(this, "getApiIdentities", async () => (await Promise.all(
|
|
925
|
+
this.plugins.filter(Xa).map((n) => n.getIdentities(this))
|
|
926
926
|
)).flat());
|
|
927
|
-
|
|
927
|
+
P(this, "getPluginSidebar", async (t) => (await Promise.all(
|
|
928
928
|
this.navigationPlugins.map(
|
|
929
929
|
(r) => {
|
|
930
|
-
var
|
|
931
|
-
return (
|
|
930
|
+
var o;
|
|
931
|
+
return (o = r.getSidebar) == null ? void 0 : o.call(r, Xe(t));
|
|
932
932
|
}
|
|
933
933
|
)
|
|
934
934
|
)).flatMap((r) => r ?? []));
|
|
935
|
-
|
|
935
|
+
P(this, "signRequest", async (t) => {
|
|
936
936
|
if (!this.authentication)
|
|
937
937
|
throw new Error("No authentication provider configured");
|
|
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(Ga), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
|
-
function
|
|
945
|
-
return /* @__PURE__ */
|
|
944
|
+
function Ja({ error: e, resetErrorBoundary: t }) {
|
|
945
|
+
return /* @__PURE__ */ a.jsx(Rt, { error: e });
|
|
946
946
|
}
|
|
947
947
|
const Se = globalThis;
|
|
948
948
|
(!Se.requestIdleCallback || !Se.cancelIdleCallback) && (Se.requestIdleCallback = (e) => setTimeout(e, 1), Se.cancelIdleCallback = clearTimeout);
|
|
949
|
-
var Ue = ["Enter", " "],
|
|
949
|
+
var Ue = ["Enter", " "], Za = ["ArrowDown", "PageUp", "Home"], zt = ["ArrowUp", "PageDown", "End"], eo = [...Za, ...zt], to = {
|
|
950
950
|
ltr: [...Ue, "ArrowRight"],
|
|
951
951
|
rtl: [...Ue, "ArrowLeft"]
|
|
952
|
-
},
|
|
952
|
+
}, no = {
|
|
953
953
|
ltr: ["ArrowLeft"],
|
|
954
954
|
rtl: ["ArrowRight"]
|
|
955
|
-
},
|
|
956
|
-
|
|
955
|
+
}, xe = "Menu", [fe, ro, ao] = wr(xe), [J, Vt] = Et(xe, [
|
|
956
|
+
ao,
|
|
957
957
|
_t,
|
|
958
958
|
Bt
|
|
959
|
-
]),
|
|
960
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir:
|
|
959
|
+
]), ye = _t(), Yt = Bt(), [Xt, z] = J(xe), [oo, 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), [d, g] = c.useState(null), p = c.useRef(!1), l = He(s), f = Dr(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 });
|
|
@@ -965,7 +965,7 @@ var Ue = ["Enter", " "], ea = ["ArrowDown", "PageUp", "Home"], zt = ["ArrowUp",
|
|
|
965
965
|
return document.addEventListener("keydown", v, { capture: !0 }), () => {
|
|
966
966
|
document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
|
|
967
967
|
};
|
|
968
|
-
}, []), /* @__PURE__ */
|
|
968
|
+
}, []), /* @__PURE__ */ a.jsx(Dt, { ...u, children: /* @__PURE__ */ a.jsx(
|
|
969
969
|
Xt,
|
|
970
970
|
{
|
|
971
971
|
scope: t,
|
|
@@ -973,8 +973,8 @@ var Ue = ["Enter", " "], ea = ["ArrowDown", "PageUp", "Home"], zt = ["ArrowUp",
|
|
|
973
973
|
onOpenChange: l,
|
|
974
974
|
content: d,
|
|
975
975
|
onContentChange: g,
|
|
976
|
-
children: /* @__PURE__ */
|
|
977
|
-
|
|
976
|
+
children: /* @__PURE__ */ a.jsx(
|
|
977
|
+
oo,
|
|
978
978
|
{
|
|
979
979
|
scope: t,
|
|
980
980
|
onClose: c.useCallback(() => l(!1), [l]),
|
|
@@ -987,37 +987,37 @@ var Ue = ["Enter", " "], ea = ["ArrowDown", "PageUp", "Home"], zt = ["ArrowUp",
|
|
|
987
987
|
}
|
|
988
988
|
) });
|
|
989
989
|
};
|
|
990
|
-
Wt.displayName =
|
|
991
|
-
var
|
|
990
|
+
Wt.displayName = xe;
|
|
991
|
+
var so = "MenuAnchor", Je = c.forwardRef(
|
|
992
992
|
(e, t) => {
|
|
993
|
-
const { __scopeMenu: n, ...r } = e,
|
|
994
|
-
return /* @__PURE__ */
|
|
993
|
+
const { __scopeMenu: n, ...r } = e, o = ye(n);
|
|
994
|
+
return /* @__PURE__ */ a.jsx(br, { ...o, ...r, ref: t });
|
|
995
995
|
}
|
|
996
996
|
);
|
|
997
|
-
Je.displayName =
|
|
998
|
-
var Ze = "MenuPortal", [
|
|
997
|
+
Je.displayName = so;
|
|
998
|
+
var Ze = "MenuPortal", [io, Jt] = J(Ze, {
|
|
999
999
|
forceMount: void 0
|
|
1000
1000
|
}), Zt = (e) => {
|
|
1001
|
-
const { __scopeMenu: t, forceMount: n, children: r, container:
|
|
1002
|
-
return /* @__PURE__ */
|
|
1001
|
+
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = z(Ze, t);
|
|
1002
|
+
return /* @__PURE__ */ a.jsx(io, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(ke, { present: n || s.open, children: /* @__PURE__ */ a.jsx(Ir, { asChild: !0, container: o, children: r }) }) });
|
|
1003
1003
|
};
|
|
1004
1004
|
Zt.displayName = Ze;
|
|
1005
|
-
var D = "MenuContent", [
|
|
1005
|
+
var D = "MenuContent", [co, et] = J(D), en = c.forwardRef(
|
|
1006
1006
|
(e, t) => {
|
|
1007
|
-
const n = Jt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...
|
|
1008
|
-
return /* @__PURE__ */
|
|
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(uo, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(lo, { ...o, ref: t }) }) }) });
|
|
1009
1009
|
}
|
|
1010
|
-
),
|
|
1010
|
+
), uo = c.forwardRef(
|
|
1011
1011
|
(e, t) => {
|
|
1012
|
-
const n = z(D, e.__scopeMenu), r = c.useRef(null),
|
|
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
1015
|
if (s) return Mr(s);
|
|
1016
|
-
}, []), /* @__PURE__ */
|
|
1016
|
+
}, []), /* @__PURE__ */ a.jsx(
|
|
1017
1017
|
tt,
|
|
1018
1018
|
{
|
|
1019
1019
|
...e,
|
|
1020
|
-
ref:
|
|
1020
|
+
ref: o,
|
|
1021
1021
|
trapFocus: n.open,
|
|
1022
1022
|
disableOutsidePointerEvents: n.open,
|
|
1023
1023
|
disableOutsideScroll: !0,
|
|
@@ -1030,9 +1030,9 @@ var D = "MenuContent", [ua, et] = J(D), en = c.forwardRef(
|
|
|
1030
1030
|
}
|
|
1031
1031
|
);
|
|
1032
1032
|
}
|
|
1033
|
-
),
|
|
1033
|
+
), lo = c.forwardRef((e, t) => {
|
|
1034
1034
|
const n = z(D, e.__scopeMenu);
|
|
1035
|
-
return /* @__PURE__ */
|
|
1035
|
+
return /* @__PURE__ */ a.jsx(
|
|
1036
1036
|
tt,
|
|
1037
1037
|
{
|
|
1038
1038
|
...e,
|
|
@@ -1048,7 +1048,7 @@ var D = "MenuContent", [ua, et] = J(D), en = c.forwardRef(
|
|
|
1048
1048
|
const {
|
|
1049
1049
|
__scopeMenu: n,
|
|
1050
1050
|
loop: r = !1,
|
|
1051
|
-
trapFocus:
|
|
1051
|
+
trapFocus: o,
|
|
1052
1052
|
onOpenAutoFocus: s,
|
|
1053
1053
|
onCloseAutoFocus: i,
|
|
1054
1054
|
disableOutsidePointerEvents: u,
|
|
@@ -1060,23 +1060,23 @@ var D = "MenuContent", [ua, et] = J(D), en = c.forwardRef(
|
|
|
1060
1060
|
onDismiss: v,
|
|
1061
1061
|
disableOutsideScroll: x,
|
|
1062
1062
|
...b
|
|
1063
|
-
} = e, I = z(D, n), Q =
|
|
1063
|
+
} = e, I = z(D, n), Q = we(D, n), V = ye(n), C = Yt(n), k = ro(n), [L, Y] = c.useState(null), Z = c.useRef(null), be = ge(t, Z, I.onContentChange), X = c.useRef(0), Me = c.useRef(""), nr = c.useRef(0), Oe = c.useRef(null), it = c.useRef("right"), Te = c.useRef(0), rr = x ? Er : c.Fragment, ar = x ? { as: _r, allowPinchZoom: !0 } : void 0, or = (m) => {
|
|
1064
1064
|
var te, ut;
|
|
1065
|
-
const _ =
|
|
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 = Co(Le, _, Fe), ue = (ut = A.find((K) => K.textValue === ct)) == null ? void 0 : ut.ref.current;
|
|
1066
1066
|
(function K(lt) {
|
|
1067
|
-
|
|
1068
|
-
})(_),
|
|
1067
|
+
Me.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => K(""), 1e3));
|
|
1068
|
+
})(_), ue && setTimeout(() => ue.focus());
|
|
1069
1069
|
};
|
|
1070
1070
|
c.useEffect(() => () => window.clearTimeout(X.current), []), Cr();
|
|
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) && So(m, (q = Oe.current) == null ? void 0 : q.area);
|
|
1074
1074
|
}, []);
|
|
1075
|
-
return /* @__PURE__ */
|
|
1076
|
-
|
|
1075
|
+
return /* @__PURE__ */ a.jsx(
|
|
1076
|
+
co,
|
|
1077
1077
|
{
|
|
1078
1078
|
scope: n,
|
|
1079
|
-
searchRef:
|
|
1079
|
+
searchRef: Me,
|
|
1080
1080
|
onItemEnter: c.useCallback(
|
|
1081
1081
|
(m) => {
|
|
1082
1082
|
ee(m) && m.preventDefault();
|
|
@@ -1100,18 +1100,18 @@ var D = "MenuContent", [ua, et] = J(D), en = c.forwardRef(
|
|
|
1100
1100
|
onPointerGraceIntentChange: c.useCallback((m) => {
|
|
1101
1101
|
Oe.current = m;
|
|
1102
1102
|
}, []),
|
|
1103
|
-
children: /* @__PURE__ */
|
|
1104
|
-
|
|
1103
|
+
children: /* @__PURE__ */ a.jsx(rr, { ...ar, children: /* @__PURE__ */ a.jsx(
|
|
1104
|
+
jr,
|
|
1105
1105
|
{
|
|
1106
1106
|
asChild: !0,
|
|
1107
|
-
trapped:
|
|
1107
|
+
trapped: o,
|
|
1108
1108
|
onMountAutoFocus: y(s, (m) => {
|
|
1109
1109
|
var _;
|
|
1110
1110
|
m.preventDefault(), (_ = Z.current) == null || _.focus({ preventScroll: !0 });
|
|
1111
1111
|
}),
|
|
1112
1112
|
onUnmountAutoFocus: i,
|
|
1113
|
-
children: /* @__PURE__ */
|
|
1114
|
-
|
|
1113
|
+
children: /* @__PURE__ */ a.jsx(
|
|
1114
|
+
Sr,
|
|
1115
1115
|
{
|
|
1116
1116
|
asChild: !0,
|
|
1117
1117
|
disableOutsidePointerEvents: u,
|
|
@@ -1120,8 +1120,8 @@ var D = "MenuContent", [ua, et] = J(D), en = c.forwardRef(
|
|
|
1120
1120
|
onFocusOutside: l,
|
|
1121
1121
|
onInteractOutside: f,
|
|
1122
1122
|
onDismiss: v,
|
|
1123
|
-
children: /* @__PURE__ */
|
|
1124
|
-
|
|
1123
|
+
children: /* @__PURE__ */ a.jsx(
|
|
1124
|
+
ua,
|
|
1125
1125
|
{
|
|
1126
1126
|
asChild: !0,
|
|
1127
1127
|
...C,
|
|
@@ -1134,8 +1134,8 @@ var D = "MenuContent", [ua, et] = J(D), en = c.forwardRef(
|
|
|
1134
1134
|
Q.isUsingKeyboardRef.current || m.preventDefault();
|
|
1135
1135
|
}),
|
|
1136
1136
|
preventScrollOnEntryFocus: !0,
|
|
1137
|
-
children: /* @__PURE__ */
|
|
1138
|
-
|
|
1137
|
+
children: /* @__PURE__ */ a.jsx(
|
|
1138
|
+
Pr,
|
|
1139
1139
|
{
|
|
1140
1140
|
role: "menu",
|
|
1141
1141
|
"aria-orientation": "vertical",
|
|
@@ -1144,23 +1144,23 @@ var D = "MenuContent", [ua, et] = J(D), en = c.forwardRef(
|
|
|
1144
1144
|
dir: Q.dir,
|
|
1145
1145
|
...V,
|
|
1146
1146
|
...b,
|
|
1147
|
-
ref:
|
|
1147
|
+
ref: be,
|
|
1148
1148
|
style: { outline: "none", ...b.style },
|
|
1149
1149
|
onKeyDown: y(b.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 && or(m.key));
|
|
1152
1152
|
const Le = Z.current;
|
|
1153
|
-
if (m.target !== Le || !
|
|
1153
|
+
if (m.target !== Le || !eo.includes(m.key)) return;
|
|
1154
1154
|
m.preventDefault();
|
|
1155
|
-
const
|
|
1156
|
-
zt.includes(m.key) &&
|
|
1155
|
+
const ue = k().filter((te) => !te.disabled).map((te) => te.ref.current);
|
|
1156
|
+
zt.includes(m.key) && ue.reverse(), bo(ue);
|
|
1157
1157
|
}),
|
|
1158
1158
|
onBlur: y(e.onBlur, (m) => {
|
|
1159
|
-
m.currentTarget.contains(m.target) || (window.clearTimeout(X.current),
|
|
1159
|
+
m.currentTarget.contains(m.target) || (window.clearTimeout(X.current), Me.current = "");
|
|
1160
1160
|
}),
|
|
1161
1161
|
onPointerMove: y(
|
|
1162
1162
|
e.onPointerMove,
|
|
1163
|
-
|
|
1163
|
+
pe((m) => {
|
|
1164
1164
|
const _ = m.target, A = Te.current !== m.clientX;
|
|
1165
1165
|
if (m.currentTarget.contains(_) && A) {
|
|
1166
1166
|
const q = m.clientX > Te.current ? "right" : "left";
|
|
@@ -1181,33 +1181,33 @@ var D = "MenuContent", [ua, et] = J(D), en = c.forwardRef(
|
|
|
1181
1181
|
}
|
|
1182
1182
|
);
|
|
1183
1183
|
en.displayName = D;
|
|
1184
|
-
var
|
|
1184
|
+
var ho = "MenuGroup", nt = c.forwardRef(
|
|
1185
1185
|
(e, t) => {
|
|
1186
1186
|
const { __scopeMenu: n, ...r } = e;
|
|
1187
|
-
return /* @__PURE__ */
|
|
1187
|
+
return /* @__PURE__ */ a.jsx(ie.div, { role: "group", ...r, ref: t });
|
|
1188
1188
|
}
|
|
1189
1189
|
);
|
|
1190
|
-
nt.displayName =
|
|
1191
|
-
var
|
|
1190
|
+
nt.displayName = ho;
|
|
1191
|
+
var fo = "MenuLabel", tn = c.forwardRef(
|
|
1192
1192
|
(e, t) => {
|
|
1193
1193
|
const { __scopeMenu: n, ...r } = e;
|
|
1194
|
-
return /* @__PURE__ */
|
|
1194
|
+
return /* @__PURE__ */ a.jsx(ie.div, { ...r, ref: t });
|
|
1195
1195
|
}
|
|
1196
1196
|
);
|
|
1197
|
-
tn.displayName =
|
|
1197
|
+
tn.displayName = fo;
|
|
1198
1198
|
var _e = "MenuItem", bt = "menu.itemSelect", Ae = c.forwardRef(
|
|
1199
1199
|
(e, t) => {
|
|
1200
|
-
const { disabled: n = !1, onSelect: r, ...
|
|
1200
|
+
const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = we(_e, e.__scopeMenu), u = et(_e, e.__scopeMenu), d = ge(t, s), g = c.useRef(!1), p = () => {
|
|
1201
1201
|
const l = s.current;
|
|
1202
1202
|
if (!n && l) {
|
|
1203
1203
|
const f = new CustomEvent(bt, { bubbles: !0, cancelable: !0 });
|
|
1204
1204
|
l.addEventListener(bt, (v) => r == null ? void 0 : r(v), { once: !0 }), Nr(l, f), f.defaultPrevented ? g.current = !1 : i.onClose();
|
|
1205
1205
|
}
|
|
1206
1206
|
};
|
|
1207
|
-
return /* @__PURE__ */
|
|
1207
|
+
return /* @__PURE__ */ a.jsx(
|
|
1208
1208
|
nn,
|
|
1209
1209
|
{
|
|
1210
|
-
...
|
|
1210
|
+
...o,
|
|
1211
1211
|
ref: d,
|
|
1212
1212
|
disabled: n,
|
|
1213
1213
|
onClick: y(e.onClick, p),
|
|
@@ -1230,18 +1230,18 @@ var _e = "MenuItem", bt = "menu.itemSelect", Ae = c.forwardRef(
|
|
|
1230
1230
|
Ae.displayName = _e;
|
|
1231
1231
|
var nn = c.forwardRef(
|
|
1232
1232
|
(e, t) => {
|
|
1233
|
-
const { __scopeMenu: n, disabled: r = !1, textValue:
|
|
1233
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = et(_e, n), u = Yt(n), d = c.useRef(null), g = ge(t, d), [p, l] = c.useState(!1), [f, v] = c.useState("");
|
|
1234
1234
|
return c.useEffect(() => {
|
|
1235
1235
|
const x = d.current;
|
|
1236
1236
|
x && v((x.textContent ?? "").trim());
|
|
1237
|
-
}, [s.children]), /* @__PURE__ */
|
|
1238
|
-
|
|
1237
|
+
}, [s.children]), /* @__PURE__ */ a.jsx(
|
|
1238
|
+
fe.ItemSlot,
|
|
1239
1239
|
{
|
|
1240
1240
|
scope: n,
|
|
1241
1241
|
disabled: r,
|
|
1242
|
-
textValue:
|
|
1243
|
-
children: /* @__PURE__ */
|
|
1244
|
-
|
|
1242
|
+
textValue: o ?? f,
|
|
1243
|
+
children: /* @__PURE__ */ a.jsx(la, { asChild: !0, ...u, focusable: !r, children: /* @__PURE__ */ a.jsx(
|
|
1244
|
+
ie.div,
|
|
1245
1245
|
{
|
|
1246
1246
|
role: "menuitem",
|
|
1247
1247
|
"data-highlighted": p ? "" : void 0,
|
|
@@ -1251,13 +1251,13 @@ var nn = c.forwardRef(
|
|
|
1251
1251
|
ref: g,
|
|
1252
1252
|
onPointerMove: y(
|
|
1253
1253
|
e.onPointerMove,
|
|
1254
|
-
|
|
1254
|
+
pe((x) => {
|
|
1255
1255
|
r ? i.onItemLeave(x) : (i.onItemEnter(x), x.defaultPrevented || x.currentTarget.focus({ preventScroll: !0 }));
|
|
1256
1256
|
})
|
|
1257
1257
|
),
|
|
1258
1258
|
onPointerLeave: y(
|
|
1259
1259
|
e.onPointerLeave,
|
|
1260
|
-
|
|
1260
|
+
pe((x) => i.onItemLeave(x))
|
|
1261
1261
|
),
|
|
1262
1262
|
onFocus: y(e.onFocus, () => l(!0)),
|
|
1263
1263
|
onBlur: y(e.onBlur, () => l(!1))
|
|
@@ -1266,19 +1266,19 @@ var nn = c.forwardRef(
|
|
|
1266
1266
|
}
|
|
1267
1267
|
);
|
|
1268
1268
|
}
|
|
1269
|
-
),
|
|
1269
|
+
), po = "MenuCheckboxItem", rn = c.forwardRef(
|
|
1270
1270
|
(e, t) => {
|
|
1271
|
-
const { checked: n = !1, onCheckedChange: r, ...
|
|
1272
|
-
return /* @__PURE__ */
|
|
1271
|
+
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
1272
|
+
return /* @__PURE__ */ a.jsx(un, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
|
|
1273
1273
|
Ae,
|
|
1274
1274
|
{
|
|
1275
1275
|
role: "menuitemcheckbox",
|
|
1276
1276
|
"aria-checked": Ne(n) ? "mixed" : n,
|
|
1277
|
-
...
|
|
1277
|
+
...o,
|
|
1278
1278
|
ref: t,
|
|
1279
|
-
"data-state":
|
|
1279
|
+
"data-state": ot(n),
|
|
1280
1280
|
onSelect: y(
|
|
1281
|
-
|
|
1281
|
+
o.onSelect,
|
|
1282
1282
|
() => r == null ? void 0 : r(Ne(n) ? !0 : !n),
|
|
1283
1283
|
{ checkForDefaultPrevented: !1 }
|
|
1284
1284
|
)
|
|
@@ -1286,34 +1286,34 @@ var nn = c.forwardRef(
|
|
|
1286
1286
|
) });
|
|
1287
1287
|
}
|
|
1288
1288
|
);
|
|
1289
|
-
rn.displayName =
|
|
1290
|
-
var
|
|
1291
|
-
|
|
1289
|
+
rn.displayName = po;
|
|
1290
|
+
var an = "MenuRadioGroup", [mo, go] = J(
|
|
1291
|
+
an,
|
|
1292
1292
|
{ value: void 0, onValueChange: () => {
|
|
1293
1293
|
} }
|
|
1294
|
-
),
|
|
1294
|
+
), on = c.forwardRef(
|
|
1295
1295
|
(e, t) => {
|
|
1296
|
-
const { value: n, onValueChange: r, ...
|
|
1297
|
-
return /* @__PURE__ */
|
|
1296
|
+
const { value: n, onValueChange: r, ...o } = e, s = He(r);
|
|
1297
|
+
return /* @__PURE__ */ a.jsx(mo, { 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,
|
|
1304
|
-
return /* @__PURE__ */
|
|
1303
|
+
const { value: n, ...r } = e, o = go(sn, e.__scopeMenu), s = n === o.value;
|
|
1304
|
+
return /* @__PURE__ */ a.jsx(un, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
|
|
1305
1305
|
Ae,
|
|
1306
1306
|
{
|
|
1307
1307
|
role: "menuitemradio",
|
|
1308
1308
|
"aria-checked": s,
|
|
1309
1309
|
...r,
|
|
1310
1310
|
ref: t,
|
|
1311
|
-
"data-state":
|
|
1311
|
+
"data-state": ot(s),
|
|
1312
1312
|
onSelect: y(
|
|
1313
1313
|
r.onSelect,
|
|
1314
1314
|
() => {
|
|
1315
1315
|
var i;
|
|
1316
|
-
return (i =
|
|
1316
|
+
return (i = o.onValueChange) == null ? void 0 : i.call(o, n);
|
|
1317
1317
|
},
|
|
1318
1318
|
{ checkForDefaultPrevented: !1 }
|
|
1319
1319
|
)
|
|
@@ -1322,22 +1322,22 @@ 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, vo] = J(
|
|
1326
1326
|
rt,
|
|
1327
1327
|
{ checked: !1 }
|
|
1328
1328
|
), ln = c.forwardRef(
|
|
1329
1329
|
(e, t) => {
|
|
1330
|
-
const { __scopeMenu: n, forceMount: r, ...
|
|
1331
|
-
return /* @__PURE__ */
|
|
1330
|
+
const { __scopeMenu: n, forceMount: r, ...o } = e, s = vo(rt, n);
|
|
1331
|
+
return /* @__PURE__ */ a.jsx(
|
|
1332
1332
|
ke,
|
|
1333
1333
|
{
|
|
1334
1334
|
present: r || Ne(s.checked) || s.checked === !0,
|
|
1335
|
-
children: /* @__PURE__ */
|
|
1336
|
-
|
|
1335
|
+
children: /* @__PURE__ */ a.jsx(
|
|
1336
|
+
ie.span,
|
|
1337
1337
|
{
|
|
1338
|
-
...
|
|
1338
|
+
...o,
|
|
1339
1339
|
ref: t,
|
|
1340
|
-
"data-state":
|
|
1340
|
+
"data-state": ot(s.checked)
|
|
1341
1341
|
}
|
|
1342
1342
|
)
|
|
1343
1343
|
}
|
|
@@ -1345,11 +1345,11 @@ var rt = "MenuItemIndicator", [un, va] = J(
|
|
|
1345
1345
|
}
|
|
1346
1346
|
);
|
|
1347
1347
|
ln.displayName = rt;
|
|
1348
|
-
var
|
|
1348
|
+
var xo = "MenuSeparator", dn = c.forwardRef(
|
|
1349
1349
|
(e, t) => {
|
|
1350
1350
|
const { __scopeMenu: n, ...r } = e;
|
|
1351
|
-
return /* @__PURE__ */
|
|
1352
|
-
|
|
1351
|
+
return /* @__PURE__ */ a.jsx(
|
|
1352
|
+
ie.div,
|
|
1353
1353
|
{
|
|
1354
1354
|
role: "separator",
|
|
1355
1355
|
"aria-orientation": "horizontal",
|
|
@@ -1359,17 +1359,17 @@ var xa = "MenuSeparator", dn = c.forwardRef(
|
|
|
1359
1359
|
);
|
|
1360
1360
|
}
|
|
1361
1361
|
);
|
|
1362
|
-
dn.displayName =
|
|
1363
|
-
var
|
|
1362
|
+
dn.displayName = xo;
|
|
1363
|
+
var yo = "MenuArrow", hn = c.forwardRef(
|
|
1364
1364
|
(e, t) => {
|
|
1365
|
-
const { __scopeMenu: n, ...r } = e,
|
|
1366
|
-
return /* @__PURE__ */
|
|
1365
|
+
const { __scopeMenu: n, ...r } = e, o = ye(n);
|
|
1366
|
+
return /* @__PURE__ */ a.jsx(Rr, { ...o, ...r, ref: t });
|
|
1367
1367
|
}
|
|
1368
1368
|
);
|
|
1369
|
-
hn.displayName =
|
|
1370
|
-
var
|
|
1371
|
-
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange:
|
|
1372
|
-
return c.useEffect(() => (s.open === !1 && l(!1), () => l(!1)), [s.open, l]), /* @__PURE__ */
|
|
1369
|
+
hn.displayName = yo;
|
|
1370
|
+
var at = "MenuSub", [wo, fn] = J(at), pn = (e) => {
|
|
1371
|
+
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = z(at, t), i = ye(t), [u, d] = c.useState(null), [g, p] = c.useState(null), l = He(o);
|
|
1372
|
+
return c.useEffect(() => (s.open === !1 && l(!1), () => l(!1)), [s.open, l]), /* @__PURE__ */ a.jsx(Dt, { ...i, children: /* @__PURE__ */ a.jsx(
|
|
1373
1373
|
Xt,
|
|
1374
1374
|
{
|
|
1375
1375
|
scope: t,
|
|
@@ -1377,8 +1377,8 @@ var ot = "MenuSub", [wa, fn] = J(ot), pn = (e) => {
|
|
|
1377
1377
|
onOpenChange: l,
|
|
1378
1378
|
content: g,
|
|
1379
1379
|
onContentChange: p,
|
|
1380
|
-
children: /* @__PURE__ */
|
|
1381
|
-
|
|
1380
|
+
children: /* @__PURE__ */ a.jsx(
|
|
1381
|
+
wo,
|
|
1382
1382
|
{
|
|
1383
1383
|
scope: t,
|
|
1384
1384
|
contentId: Ee(),
|
|
@@ -1391,10 +1391,10 @@ var ot = "MenuSub", [wa, fn] = J(ot), pn = (e) => {
|
|
|
1391
1391
|
}
|
|
1392
1392
|
) });
|
|
1393
1393
|
};
|
|
1394
|
-
pn.displayName =
|
|
1395
|
-
var
|
|
1394
|
+
pn.displayName = at;
|
|
1395
|
+
var le = "MenuSubTrigger", mn = c.forwardRef(
|
|
1396
1396
|
(e, t) => {
|
|
1397
|
-
const n = z(
|
|
1397
|
+
const n = z(le, e.__scopeMenu), r = we(le, e.__scopeMenu), o = fn(le, e.__scopeMenu), s = et(le, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: d } = s, g = { __scopeMenu: e.__scopeMenu }, p = c.useCallback(() => {
|
|
1398
1398
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
1399
1399
|
}, []);
|
|
1400
1400
|
return c.useEffect(() => p, [p]), c.useEffect(() => {
|
|
@@ -1402,23 +1402,23 @@ var ue = "MenuSubTrigger", mn = c.forwardRef(
|
|
|
1402
1402
|
return () => {
|
|
1403
1403
|
window.clearTimeout(l), d(null);
|
|
1404
1404
|
};
|
|
1405
|
-
}, [u, d]), /* @__PURE__ */
|
|
1405
|
+
}, [u, d]), /* @__PURE__ */ a.jsx(Je, { asChild: !0, ...g, children: /* @__PURE__ */ a.jsx(
|
|
1406
1406
|
nn,
|
|
1407
1407
|
{
|
|
1408
|
-
id:
|
|
1408
|
+
id: o.triggerId,
|
|
1409
1409
|
"aria-haspopup": "menu",
|
|
1410
1410
|
"aria-expanded": n.open,
|
|
1411
|
-
"aria-controls":
|
|
1411
|
+
"aria-controls": o.contentId,
|
|
1412
1412
|
"data-state": xn(n.open),
|
|
1413
1413
|
...e,
|
|
1414
|
-
ref: Nt(t,
|
|
1414
|
+
ref: Nt(t, o.onTriggerChange),
|
|
1415
1415
|
onClick: (l) => {
|
|
1416
1416
|
var f;
|
|
1417
1417
|
(f = e.onClick) == null || f.call(e, l), !(e.disabled || l.defaultPrevented) && (l.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
1418
1418
|
},
|
|
1419
1419
|
onPointerMove: y(
|
|
1420
1420
|
e.onPointerMove,
|
|
1421
|
-
|
|
1421
|
+
pe((l) => {
|
|
1422
1422
|
s.onItemEnter(l), !l.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
|
|
1423
1423
|
n.onOpenChange(!0), p();
|
|
1424
1424
|
}, 100));
|
|
@@ -1426,7 +1426,7 @@ var ue = "MenuSubTrigger", mn = c.forwardRef(
|
|
|
1426
1426
|
),
|
|
1427
1427
|
onPointerLeave: y(
|
|
1428
1428
|
e.onPointerLeave,
|
|
1429
|
-
|
|
1429
|
+
pe((l) => {
|
|
1430
1430
|
var v, x;
|
|
1431
1431
|
p();
|
|
1432
1432
|
const f = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
|
|
@@ -1456,22 +1456,22 @@ var ue = "MenuSubTrigger", mn = c.forwardRef(
|
|
|
1456
1456
|
onKeyDown: y(e.onKeyDown, (l) => {
|
|
1457
1457
|
var v;
|
|
1458
1458
|
const f = s.searchRef.current !== "";
|
|
1459
|
-
e.disabled || f && l.key === " " ||
|
|
1459
|
+
e.disabled || f && l.key === " " || to[r.dir].includes(l.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), l.preventDefault());
|
|
1460
1460
|
})
|
|
1461
1461
|
}
|
|
1462
1462
|
) });
|
|
1463
1463
|
}
|
|
1464
1464
|
);
|
|
1465
|
-
mn.displayName =
|
|
1465
|
+
mn.displayName = le;
|
|
1466
1466
|
var gn = "MenuSubContent", vn = c.forwardRef(
|
|
1467
1467
|
(e, t) => {
|
|
1468
|
-
const n = Jt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...
|
|
1469
|
-
return /* @__PURE__ */
|
|
1468
|
+
const n = Jt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = z(D, e.__scopeMenu), i = we(D, e.__scopeMenu), u = fn(gn, e.__scopeMenu), d = c.useRef(null), g = ge(t, d);
|
|
1469
|
+
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: /* @__PURE__ */ a.jsx(
|
|
1470
1470
|
tt,
|
|
1471
1471
|
{
|
|
1472
1472
|
id: u.contentId,
|
|
1473
1473
|
"aria-labelledby": u.triggerId,
|
|
1474
|
-
...
|
|
1474
|
+
...o,
|
|
1475
1475
|
ref: g,
|
|
1476
1476
|
align: "start",
|
|
1477
1477
|
side: i.dir === "rtl" ? "left" : "right",
|
|
@@ -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 l = p.currentTarget.contains(p.target), f =
|
|
1494
|
+
const l = p.currentTarget.contains(p.target), f = no[i.dir].includes(p.key);
|
|
1495
1495
|
l && f && (s.onOpenChange(!1), (v = u.trigger) == null || v.focus(), p.preventDefault());
|
|
1496
1496
|
})
|
|
1497
1497
|
}
|
|
@@ -1505,62 +1505,62 @@ function xn(e) {
|
|
|
1505
1505
|
function Ne(e) {
|
|
1506
1506
|
return e === "indeterminate";
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1508
|
+
function ot(e) {
|
|
1509
1509
|
return Ne(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function bo(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 Mo(e, t) {
|
|
1517
1517
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1520
|
-
const
|
|
1521
|
-
let i =
|
|
1522
|
-
|
|
1519
|
+
function Co(e, t, n) {
|
|
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 = Mo(e, Math.max(s, 0));
|
|
1522
|
+
o.length === 1 && (i = i.filter((g) => g !== n));
|
|
1523
1523
|
const d = i.find(
|
|
1524
|
-
(g) => g.toLowerCase().startsWith(
|
|
1524
|
+
(g) => g.toLowerCase().startsWith(o.toLowerCase())
|
|
1525
1525
|
);
|
|
1526
1526
|
return d !== n ? d : void 0;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function jo(e, t) {
|
|
1529
1529
|
const { x: n, y: r } = e;
|
|
1530
|
-
let
|
|
1530
|
+
let o = !1;
|
|
1531
1531
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
1532
1532
|
const u = t[s].x, d = t[s].y, g = t[i].x, p = t[i].y;
|
|
1533
|
-
d > r != p > r && n < (g - u) * (r - d) / (p - d) + u && (
|
|
1533
|
+
d > r != p > r && n < (g - u) * (r - d) / (p - d) + u && (o = !o);
|
|
1534
1534
|
}
|
|
1535
|
-
return
|
|
1535
|
+
return o;
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1537
|
+
function So(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
|
-
function
|
|
1542
|
+
function pe(e) {
|
|
1543
1543
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
1544
1544
|
}
|
|
1545
|
-
var
|
|
1545
|
+
var Po = Wt, Ro = Je, Eo = Zt, _o = en, No = nt, Do = tn, Io = Ae, ko = rn, Ao = on, Oo = cn, To = ln, Fo = dn, Lo = hn, Ko = pn, $o = mn, Bo = vn, st = "DropdownMenu", [Qo, Us] = Et(
|
|
1546
1546
|
st,
|
|
1547
1547
|
[Vt]
|
|
1548
|
-
),
|
|
1548
|
+
), S = Vt(), [qo, yn] = Qo(st), wn = (e) => {
|
|
1549
1549
|
const {
|
|
1550
1550
|
__scopeDropdownMenu: t,
|
|
1551
1551
|
children: n,
|
|
1552
1552
|
dir: r,
|
|
1553
|
-
open:
|
|
1553
|
+
open: o,
|
|
1554
1554
|
defaultOpen: s,
|
|
1555
1555
|
onOpenChange: i,
|
|
1556
1556
|
modal: u = !0
|
|
1557
|
-
} = e, d =
|
|
1558
|
-
prop:
|
|
1557
|
+
} = e, d = S(t), g = c.useRef(null), [p = !1, l] = It({
|
|
1558
|
+
prop: o,
|
|
1559
1559
|
defaultProp: s,
|
|
1560
1560
|
onChange: i
|
|
1561
1561
|
});
|
|
1562
|
-
return /* @__PURE__ */
|
|
1563
|
-
|
|
1562
|
+
return /* @__PURE__ */ a.jsx(
|
|
1563
|
+
qo,
|
|
1564
1564
|
{
|
|
1565
1565
|
scope: t,
|
|
1566
1566
|
triggerId: Ee(),
|
|
@@ -1570,16 +1570,16 @@ var ja = Wt, Ra = Je, Ea = Zt, _a = en, Na = nt, Da = tn, Ia = Ae, ka = rn, Aa =
|
|
|
1570
1570
|
onOpenChange: l,
|
|
1571
1571
|
onOpenToggle: c.useCallback(() => l((f) => !f), [l]),
|
|
1572
1572
|
modal: u,
|
|
1573
|
-
children: /* @__PURE__ */
|
|
1573
|
+
children: /* @__PURE__ */ a.jsx(Po, { ...d, open: p, onOpenChange: l, dir: r, modal: u, children: n })
|
|
1574
1574
|
}
|
|
1575
1575
|
);
|
|
1576
1576
|
};
|
|
1577
1577
|
wn.displayName = st;
|
|
1578
1578
|
var bn = "DropdownMenuTrigger", Mn = c.forwardRef(
|
|
1579
1579
|
(e, t) => {
|
|
1580
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...
|
|
1581
|
-
return /* @__PURE__ */
|
|
1582
|
-
|
|
1580
|
+
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = yn(bn, n), i = S(n);
|
|
1581
|
+
return /* @__PURE__ */ a.jsx(Ro, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
|
|
1582
|
+
ie.button,
|
|
1583
1583
|
{
|
|
1584
1584
|
type: "button",
|
|
1585
1585
|
id: s.triggerId,
|
|
@@ -1589,7 +1589,7 @@ var bn = "DropdownMenuTrigger", Mn = c.forwardRef(
|
|
|
1589
1589
|
"data-state": s.open ? "open" : "closed",
|
|
1590
1590
|
"data-disabled": r ? "" : void 0,
|
|
1591
1591
|
disabled: r,
|
|
1592
|
-
...
|
|
1592
|
+
...o,
|
|
1593
1593
|
ref: Nt(t, s.triggerRef),
|
|
1594
1594
|
onPointerDown: y(e.onPointerDown, (u) => {
|
|
1595
1595
|
!r && u.button === 0 && u.ctrlKey === !1 && (s.onOpenToggle(), s.open || u.preventDefault());
|
|
@@ -1602,29 +1602,29 @@ var bn = "DropdownMenuTrigger", Mn = c.forwardRef(
|
|
|
1602
1602
|
}
|
|
1603
1603
|
);
|
|
1604
1604
|
Mn.displayName = bn;
|
|
1605
|
-
var
|
|
1606
|
-
const { __scopeDropdownMenu: t, ...n } = e, r =
|
|
1607
|
-
return /* @__PURE__ */
|
|
1605
|
+
var Uo = "DropdownMenuPortal", Cn = (e) => {
|
|
1606
|
+
const { __scopeDropdownMenu: t, ...n } = e, r = S(t);
|
|
1607
|
+
return /* @__PURE__ */ a.jsx(Eo, { ...r, ...n });
|
|
1608
1608
|
};
|
|
1609
|
-
Cn.displayName =
|
|
1610
|
-
var
|
|
1609
|
+
Cn.displayName = Uo;
|
|
1610
|
+
var jn = "DropdownMenuContent", Sn = c.forwardRef(
|
|
1611
1611
|
(e, t) => {
|
|
1612
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1613
|
-
return /* @__PURE__ */
|
|
1614
|
-
|
|
1612
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = yn(jn, n), s = S(n), i = c.useRef(!1);
|
|
1613
|
+
return /* @__PURE__ */ a.jsx(
|
|
1614
|
+
_o,
|
|
1615
1615
|
{
|
|
1616
|
-
id:
|
|
1617
|
-
"aria-labelledby":
|
|
1616
|
+
id: o.contentId,
|
|
1617
|
+
"aria-labelledby": o.triggerId,
|
|
1618
1618
|
...s,
|
|
1619
1619
|
...r,
|
|
1620
1620
|
ref: t,
|
|
1621
1621
|
onCloseAutoFocus: y(e.onCloseAutoFocus, (u) => {
|
|
1622
1622
|
var d;
|
|
1623
|
-
i.current || (d =
|
|
1623
|
+
i.current || (d = o.triggerRef.current) == null || d.focus(), i.current = !1, u.preventDefault();
|
|
1624
1624
|
}),
|
|
1625
1625
|
onInteractOutside: y(e.onInteractOutside, (u) => {
|
|
1626
1626
|
const d = u.detail.originalEvent, g = d.button === 0 && d.ctrlKey === !0, p = d.button === 2 || g;
|
|
1627
|
-
(!
|
|
1627
|
+
(!o.modal || p) && (i.current = !0);
|
|
1628
1628
|
}),
|
|
1629
1629
|
style: {
|
|
1630
1630
|
...e.style,
|
|
@@ -1638,78 +1638,78 @@ var Sn = "DropdownMenuContent", Pn = c.forwardRef(
|
|
|
1638
1638
|
);
|
|
1639
1639
|
}
|
|
1640
1640
|
);
|
|
1641
|
-
|
|
1642
|
-
var
|
|
1641
|
+
Sn.displayName = jn;
|
|
1642
|
+
var Go = "DropdownMenuGroup", Ho = c.forwardRef(
|
|
1643
1643
|
(e, t) => {
|
|
1644
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1645
|
-
return /* @__PURE__ */
|
|
1644
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = S(n);
|
|
1645
|
+
return /* @__PURE__ */ a.jsx(No, { ...o, ...r, ref: t });
|
|
1646
1646
|
}
|
|
1647
1647
|
);
|
|
1648
|
-
|
|
1649
|
-
var
|
|
1648
|
+
Ho.displayName = Go;
|
|
1649
|
+
var zo = "DropdownMenuLabel", Pn = c.forwardRef(
|
|
1650
1650
|
(e, t) => {
|
|
1651
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1652
|
-
return /* @__PURE__ */
|
|
1651
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = S(n);
|
|
1652
|
+
return /* @__PURE__ */ a.jsx(Do, { ...o, ...r, ref: t });
|
|
1653
1653
|
}
|
|
1654
1654
|
);
|
|
1655
|
-
|
|
1656
|
-
var
|
|
1655
|
+
Pn.displayName = zo;
|
|
1656
|
+
var Vo = "DropdownMenuItem", Rn = c.forwardRef(
|
|
1657
1657
|
(e, t) => {
|
|
1658
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1659
|
-
return /* @__PURE__ */
|
|
1658
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = S(n);
|
|
1659
|
+
return /* @__PURE__ */ a.jsx(Io, { ...o, ...r, ref: t });
|
|
1660
1660
|
}
|
|
1661
1661
|
);
|
|
1662
|
-
Rn.displayName =
|
|
1663
|
-
var
|
|
1664
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1665
|
-
return /* @__PURE__ */
|
|
1662
|
+
Rn.displayName = Vo;
|
|
1663
|
+
var Yo = "DropdownMenuCheckboxItem", En = c.forwardRef((e, t) => {
|
|
1664
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = S(n);
|
|
1665
|
+
return /* @__PURE__ */ a.jsx(ko, { ...o, ...r, ref: t });
|
|
1666
1666
|
});
|
|
1667
|
-
En.displayName =
|
|
1668
|
-
var
|
|
1669
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1670
|
-
return /* @__PURE__ */
|
|
1667
|
+
En.displayName = Yo;
|
|
1668
|
+
var Xo = "DropdownMenuRadioGroup", Wo = c.forwardRef((e, t) => {
|
|
1669
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = S(n);
|
|
1670
|
+
return /* @__PURE__ */ a.jsx(Ao, { ...o, ...r, ref: t });
|
|
1671
1671
|
});
|
|
1672
|
-
|
|
1673
|
-
var
|
|
1674
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1675
|
-
return /* @__PURE__ */
|
|
1672
|
+
Wo.displayName = Xo;
|
|
1673
|
+
var Jo = "DropdownMenuRadioItem", _n = c.forwardRef((e, t) => {
|
|
1674
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = S(n);
|
|
1675
|
+
return /* @__PURE__ */ a.jsx(Oo, { ...o, ...r, ref: t });
|
|
1676
1676
|
});
|
|
1677
|
-
_n.displayName =
|
|
1678
|
-
var
|
|
1679
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1680
|
-
return /* @__PURE__ */
|
|
1677
|
+
_n.displayName = Jo;
|
|
1678
|
+
var Zo = "DropdownMenuItemIndicator", Nn = c.forwardRef((e, t) => {
|
|
1679
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = S(n);
|
|
1680
|
+
return /* @__PURE__ */ a.jsx(To, { ...o, ...r, ref: t });
|
|
1681
1681
|
});
|
|
1682
|
-
Nn.displayName =
|
|
1682
|
+
Nn.displayName = Zo;
|
|
1683
1683
|
var es = "DropdownMenuSeparator", Dn = c.forwardRef((e, t) => {
|
|
1684
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1685
|
-
return /* @__PURE__ */
|
|
1684
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = S(n);
|
|
1685
|
+
return /* @__PURE__ */ a.jsx(Fo, { ...o, ...r, ref: t });
|
|
1686
1686
|
});
|
|
1687
1687
|
Dn.displayName = es;
|
|
1688
1688
|
var ts = "DropdownMenuArrow", ns = c.forwardRef(
|
|
1689
1689
|
(e, t) => {
|
|
1690
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1691
|
-
return /* @__PURE__ */
|
|
1690
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = S(n);
|
|
1691
|
+
return /* @__PURE__ */ a.jsx(Lo, { ...o, ...r, ref: t });
|
|
1692
1692
|
}
|
|
1693
1693
|
);
|
|
1694
1694
|
ns.displayName = ts;
|
|
1695
1695
|
var rs = (e) => {
|
|
1696
|
-
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange:
|
|
1696
|
+
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = S(t), [u = !1, d] = It({
|
|
1697
1697
|
prop: r,
|
|
1698
1698
|
defaultProp: s,
|
|
1699
|
-
onChange:
|
|
1699
|
+
onChange: o
|
|
1700
1700
|
});
|
|
1701
|
-
return /* @__PURE__ */
|
|
1702
|
-
},
|
|
1703
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1704
|
-
return /* @__PURE__ */
|
|
1701
|
+
return /* @__PURE__ */ a.jsx(Ko, { ...i, open: u, onOpenChange: d, children: n });
|
|
1702
|
+
}, as = "DropdownMenuSubTrigger", In = c.forwardRef((e, t) => {
|
|
1703
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = S(n);
|
|
1704
|
+
return /* @__PURE__ */ a.jsx($o, { ...o, ...r, ref: t });
|
|
1705
1705
|
});
|
|
1706
|
-
In.displayName =
|
|
1707
|
-
var
|
|
1708
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1709
|
-
return /* @__PURE__ */
|
|
1710
|
-
|
|
1706
|
+
In.displayName = as;
|
|
1707
|
+
var os = "DropdownMenuSubContent", kn = c.forwardRef((e, t) => {
|
|
1708
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = S(n);
|
|
1709
|
+
return /* @__PURE__ */ a.jsx(
|
|
1710
|
+
Bo,
|
|
1711
1711
|
{
|
|
1712
|
-
...
|
|
1712
|
+
...o,
|
|
1713
1713
|
...r,
|
|
1714
1714
|
ref: t,
|
|
1715
1715
|
style: {
|
|
@@ -1723,12 +1723,12 @@ var as = "DropdownMenuSubContent", kn = c.forwardRef((e, t) => {
|
|
|
1723
1723
|
}
|
|
1724
1724
|
);
|
|
1725
1725
|
});
|
|
1726
|
-
kn.displayName =
|
|
1727
|
-
var ss = wn, is = Mn, An = Cn, On =
|
|
1728
|
-
const us = ss, ls = is, ds = An, hs = cs, Un = c.forwardRef(({ className: e, inset: t, children: n, ...r },
|
|
1726
|
+
kn.displayName = os;
|
|
1727
|
+
var ss = wn, is = Mn, An = Cn, On = Sn, Tn = Pn, Fn = Rn, Ln = En, Kn = _n, $n = Nn, Bn = Dn, cs = rs, Qn = In, qn = kn;
|
|
1728
|
+
const us = ss, ls = is, ds = An, hs = cs, Un = c.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
|
|
1729
1729
|
Qn,
|
|
1730
1730
|
{
|
|
1731
|
-
ref:
|
|
1731
|
+
ref: o,
|
|
1732
1732
|
className: M(
|
|
1733
1733
|
"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",
|
|
1734
1734
|
t && "pl-8",
|
|
@@ -1737,12 +1737,12 @@ const us = ss, ls = is, ds = An, hs = cs, Un = c.forwardRef(({ className: e, ins
|
|
|
1737
1737
|
...r,
|
|
1738
1738
|
children: [
|
|
1739
1739
|
n,
|
|
1740
|
-
/* @__PURE__ */
|
|
1740
|
+
/* @__PURE__ */ a.jsx(Qt, { className: "ml-auto h-4 w-4" })
|
|
1741
1741
|
]
|
|
1742
1742
|
}
|
|
1743
1743
|
));
|
|
1744
1744
|
Un.displayName = Qn.displayName;
|
|
1745
|
-
const Gn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
1745
|
+
const Gn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
1746
1746
|
qn,
|
|
1747
1747
|
{
|
|
1748
1748
|
ref: n,
|
|
@@ -1754,7 +1754,7 @@ const Gn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
|
1754
1754
|
}
|
|
1755
1755
|
));
|
|
1756
1756
|
Gn.displayName = qn.displayName;
|
|
1757
|
-
const Hn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */
|
|
1757
|
+
const Hn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ a.jsx(An, { children: /* @__PURE__ */ a.jsx(
|
|
1758
1758
|
On,
|
|
1759
1759
|
{
|
|
1760
1760
|
ref: r,
|
|
@@ -1768,7 +1768,7 @@ const Hn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
|
|
|
1768
1768
|
}
|
|
1769
1769
|
) }));
|
|
1770
1770
|
Hn.displayName = On.displayName;
|
|
1771
|
-
const zn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
1771
|
+
const zn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
|
|
1772
1772
|
Fn,
|
|
1773
1773
|
{
|
|
1774
1774
|
ref: r,
|
|
@@ -1781,10 +1781,10 @@ const zn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
1781
1781
|
}
|
|
1782
1782
|
));
|
|
1783
1783
|
zn.displayName = Fn.displayName;
|
|
1784
|
-
const fs = c.forwardRef(({ className: e, children: t, checked: n, ...r },
|
|
1784
|
+
const fs = c.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
|
|
1785
1785
|
Ln,
|
|
1786
1786
|
{
|
|
1787
|
-
ref:
|
|
1787
|
+
ref: o,
|
|
1788
1788
|
className: M(
|
|
1789
1789
|
"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",
|
|
1790
1790
|
e
|
|
@@ -1792,13 +1792,13 @@ const fs = c.forwardRef(({ className: e, children: t, checked: n, ...r }, a) =>
|
|
|
1792
1792
|
checked: n,
|
|
1793
1793
|
...r,
|
|
1794
1794
|
children: [
|
|
1795
|
-
/* @__PURE__ */
|
|
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(Ar, { className: "h-4 w-4" }) }) }),
|
|
1796
1796
|
t
|
|
1797
1797
|
]
|
|
1798
1798
|
}
|
|
1799
1799
|
));
|
|
1800
1800
|
fs.displayName = Ln.displayName;
|
|
1801
|
-
const ps = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */
|
|
1801
|
+
const ps = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
|
|
1802
1802
|
Kn,
|
|
1803
1803
|
{
|
|
1804
1804
|
ref: r,
|
|
@@ -1808,13 +1808,13 @@ const ps = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
1808
1808
|
),
|
|
1809
1809
|
...n,
|
|
1810
1810
|
children: [
|
|
1811
|
-
/* @__PURE__ */
|
|
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(ha, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1812
1812
|
t
|
|
1813
1813
|
]
|
|
1814
1814
|
}
|
|
1815
1815
|
));
|
|
1816
1816
|
ps.displayName = Kn.displayName;
|
|
1817
|
-
const Vn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
1817
|
+
const Vn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
|
|
1818
1818
|
Tn,
|
|
1819
1819
|
{
|
|
1820
1820
|
ref: r,
|
|
@@ -1827,7 +1827,7 @@ const Vn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
1827
1827
|
}
|
|
1828
1828
|
));
|
|
1829
1829
|
Vn.displayName = Tn.displayName;
|
|
1830
|
-
const Yn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
1830
|
+
const Yn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
1831
1831
|
Bn,
|
|
1832
1832
|
{
|
|
1833
1833
|
ref: n,
|
|
@@ -1837,7 +1837,7 @@ const Yn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
|
1837
1837
|
));
|
|
1838
1838
|
Yn.displayName = Bn.displayName;
|
|
1839
1839
|
const ms = () => {
|
|
1840
|
-
const e = Ie(), [t, n] =
|
|
1840
|
+
const e = Ie(), [t, n] = he(!1), r = Ot(() => n(!1), []);
|
|
1841
1841
|
W(() => {
|
|
1842
1842
|
if (t)
|
|
1843
1843
|
return;
|
|
@@ -1848,31 +1848,31 @@ const ms = () => {
|
|
|
1848
1848
|
window.removeEventListener("keydown", s);
|
|
1849
1849
|
};
|
|
1850
1850
|
}, [t, n]);
|
|
1851
|
-
const
|
|
1852
|
-
return
|
|
1853
|
-
/* @__PURE__ */
|
|
1851
|
+
const o = e.plugins.find(Ha);
|
|
1852
|
+
return o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1853
|
+
/* @__PURE__ */ a.jsxs(
|
|
1854
1854
|
"button",
|
|
1855
1855
|
{
|
|
1856
1856
|
type: "button",
|
|
1857
1857
|
onClick: () => n(!0),
|
|
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
|
-
/* @__PURE__ */
|
|
1861
|
-
/* @__PURE__ */
|
|
1860
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
1861
|
+
/* @__PURE__ */ a.jsx(ma, { size: 14 }),
|
|
1862
1862
|
"Search"
|
|
1863
1863
|
] }),
|
|
1864
|
-
/* @__PURE__ */
|
|
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" })
|
|
1865
1865
|
]
|
|
1866
1866
|
}
|
|
1867
1867
|
),
|
|
1868
|
-
/* @__PURE__ */
|
|
1868
|
+
/* @__PURE__ */ a.jsx(Tt, { fallback: null, children: o.renderSearch({
|
|
1869
1869
|
isOpen: t,
|
|
1870
1870
|
onClose: r
|
|
1871
1871
|
}) })
|
|
1872
1872
|
] }) : null;
|
|
1873
1873
|
}, gs = () => {
|
|
1874
1874
|
const { topNavigation: e } = Ie();
|
|
1875
|
-
return e.length <= 1 ? null : /* @__PURE__ */
|
|
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
|
Pe,
|
|
1877
1877
|
{
|
|
1878
1878
|
className: ({ isActive: n }) => Or(
|
|
@@ -1883,19 +1883,19 @@ const ms = () => {
|
|
|
1883
1883
|
children: t.label
|
|
1884
1884
|
}
|
|
1885
1885
|
) }, t.label)) }) });
|
|
1886
|
-
}, Xn = ({ item: e }) => e.children ? /* @__PURE__ */
|
|
1887
|
-
/* @__PURE__ */
|
|
1888
|
-
/* @__PURE__ */
|
|
1886
|
+
}, Xn = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(hs, { children: [
|
|
1887
|
+
/* @__PURE__ */ a.jsx(Un, { children: e.label }),
|
|
1888
|
+
/* @__PURE__ */ a.jsx(ds, { children: /* @__PURE__ */ a.jsx(Gn, { children: e.children.map((t, n) => (
|
|
1889
1889
|
// eslint-disable-next-line react/no-array-index-key
|
|
1890
|
-
/* @__PURE__ */
|
|
1890
|
+
/* @__PURE__ */ a.jsx(Xn, { item: t }, n)
|
|
1891
1891
|
)) }) })
|
|
1892
|
-
] }, e.label) : /* @__PURE__ */
|
|
1893
|
-
const [t, n] = Tr(), { isAuthenticated: r, profile:
|
|
1894
|
-
return /* @__PURE__ */
|
|
1895
|
-
/* @__PURE__ */
|
|
1896
|
-
/* @__PURE__ */
|
|
1897
|
-
(d == null ? void 0 : d.logo) && /* @__PURE__ */
|
|
1898
|
-
/* @__PURE__ */
|
|
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] = Tr(), { isAuthenticated: r, profile: o, isAuthEnabled: s } = kr(), { pathname: i } = De(), u = Ie(), { page: d, plugins: g } = u, p = g.filter((f) => Ua(f)).flatMap((f) => f.getProfileMenuItems(u)).map((f) => /* @__PURE__ */ a.jsx(Xn, { item: f }, f.label)), l = t ? pa : ga;
|
|
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
|
+
/* @__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
|
+
/* @__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: [
|
|
1897
|
+
(d == null ? void 0 : d.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1898
|
+
/* @__PURE__ */ a.jsx(
|
|
1899
1899
|
"img",
|
|
1900
1900
|
{
|
|
1901
1901
|
src: d.logo.src.light,
|
|
@@ -1905,7 +1905,7 @@ const ms = () => {
|
|
|
1905
1905
|
loading: "lazy"
|
|
1906
1906
|
}
|
|
1907
1907
|
),
|
|
1908
|
-
/* @__PURE__ */
|
|
1908
|
+
/* @__PURE__ */ a.jsx(
|
|
1909
1909
|
"img",
|
|
1910
1910
|
{
|
|
1911
1911
|
src: d.logo.src.dark,
|
|
@@ -1916,13 +1916,14 @@ const ms = () => {
|
|
|
1916
1916
|
}
|
|
1917
1917
|
)
|
|
1918
1918
|
] }),
|
|
1919
|
-
/* @__PURE__ */
|
|
1919
|
+
/* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: d == null ? void 0 : d.pageTitle })
|
|
1920
1920
|
] }) }) }),
|
|
1921
|
-
/* @__PURE__ */
|
|
1922
|
-
/* @__PURE__ */
|
|
1923
|
-
/* @__PURE__ */
|
|
1924
|
-
|
|
1925
|
-
|
|
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(ms, {}) }),
|
|
1923
|
+
/* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
|
|
1924
|
+
/* @__PURE__ */ a.jsx(se, { name: "head-navigation-start" }),
|
|
1925
|
+
s && !r ? /* @__PURE__ */ a.jsx(Qe, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
1926
|
+
Re,
|
|
1926
1927
|
{
|
|
1927
1928
|
to: {
|
|
1928
1929
|
pathname: "/signin",
|
|
@@ -1930,33 +1931,34 @@ const ms = () => {
|
|
|
1930
1931
|
},
|
|
1931
1932
|
children: "Login"
|
|
1932
1933
|
}
|
|
1933
|
-
) }) : p.length > 0 && /* @__PURE__ */
|
|
1934
|
-
/* @__PURE__ */
|
|
1935
|
-
/* @__PURE__ */
|
|
1936
|
-
/* @__PURE__ */
|
|
1937
|
-
/* @__PURE__ */
|
|
1934
|
+
) }) : p.length > 0 && /* @__PURE__ */ a.jsxs(us, { children: [
|
|
1935
|
+
/* @__PURE__ */ a.jsx(ls, { asChild: !0, children: /* @__PURE__ */ a.jsx(Qe, { variant: "ghost", children: o != null && o.email ? `${o.email}` : "My Account" }) }),
|
|
1936
|
+
/* @__PURE__ */ a.jsxs(Hn, { className: "w-56", children: [
|
|
1937
|
+
/* @__PURE__ */ a.jsx(Vn, { children: "My Account" }),
|
|
1938
|
+
/* @__PURE__ */ a.jsx(Yn, {}),
|
|
1938
1939
|
p
|
|
1939
1940
|
] })
|
|
1940
1941
|
] }),
|
|
1941
|
-
/* @__PURE__ */
|
|
1942
|
+
/* @__PURE__ */ a.jsx(
|
|
1942
1943
|
"button",
|
|
1943
1944
|
{
|
|
1944
1945
|
type: "button",
|
|
1945
1946
|
"aria-label": t ? "Switch to light mode" : "Switch to dark mode",
|
|
1946
1947
|
className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
|
|
1947
1948
|
onClick: n,
|
|
1948
|
-
children: /* @__PURE__ */
|
|
1949
|
+
children: /* @__PURE__ */ a.jsx(l, { size: 18 })
|
|
1949
1950
|
}
|
|
1950
|
-
)
|
|
1951
|
+
),
|
|
1952
|
+
/* @__PURE__ */ a.jsx(se, { name: "head-navigation-end" })
|
|
1951
1953
|
] })
|
|
1952
1954
|
] })
|
|
1953
1955
|
] }),
|
|
1954
|
-
/* @__PURE__ */
|
|
1956
|
+
/* @__PURE__ */ a.jsx(gs, {})
|
|
1955
1957
|
] }) });
|
|
1956
1958
|
}), Jn = {
|
|
1957
1959
|
Header: Wn
|
|
1958
1960
|
}, vs = At(Jn), xs = vs.Provider, ys = (e) => {
|
|
1959
|
-
const [t, n] =
|
|
1961
|
+
const [t, n] = he(!1);
|
|
1960
1962
|
W(() => {
|
|
1961
1963
|
const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), u = s === "dark" || !s && i.matches;
|
|
1962
1964
|
n(u);
|
|
@@ -1964,17 +1966,17 @@ const ms = () => {
|
|
|
1964
1966
|
const r = Ot(() => {
|
|
1965
1967
|
const s = !t;
|
|
1966
1968
|
document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
|
|
1967
|
-
}, [t]),
|
|
1968
|
-
return /* @__PURE__ */
|
|
1969
|
+
}, [t]), o = [t, r];
|
|
1970
|
+
return /* @__PURE__ */ a.jsx(Fr.Provider, { value: o, ...e });
|
|
1969
1971
|
}, ws = ({
|
|
1970
1972
|
children: e,
|
|
1971
1973
|
context: t
|
|
1972
1974
|
}) => {
|
|
1973
1975
|
const n = mr();
|
|
1974
|
-
return
|
|
1976
|
+
return oa({
|
|
1975
1977
|
queryFn: async () => (await t.initialize({ navigate: n }), !0),
|
|
1976
1978
|
queryKey: ["zudoku-initialize"]
|
|
1977
|
-
}), /* @__PURE__ */
|
|
1979
|
+
}), /* @__PURE__ */ a.jsx(sa.Provider, { value: t, children: e });
|
|
1978
1980
|
}, bs = ({
|
|
1979
1981
|
children: e,
|
|
1980
1982
|
...t
|
|
@@ -1986,46 +1988,46 @@ const ms = () => {
|
|
|
1986
1988
|
), r = Ke(() => {
|
|
1987
1989
|
var x;
|
|
1988
1990
|
return {
|
|
1989
|
-
...(t.plugins ?? []).filter(
|
|
1991
|
+
...(t.plugins ?? []).filter(Ya).flatMap(
|
|
1990
1992
|
(b) => b.getMdxComponents ? [b.getMdxComponents()] : []
|
|
1991
1993
|
).reduce((b, I) => ({ ...b, ...I }), {}),
|
|
1992
1994
|
...Lr,
|
|
1993
1995
|
...(x = t.mdx) == null ? void 0 : x.components
|
|
1994
1996
|
};
|
|
1995
|
-
}, [(l = t.mdx) == null ? void 0 : l.components, t.plugins]), { stagger:
|
|
1996
|
-
() => s ? { stagger: !0 } : { stagger:
|
|
1997
|
-
[
|
|
1997
|
+
}, [(l = t.mdx) == null ? void 0 : l.components, t.plugins]), { stagger: o } = Gr(qe), [s, i] = he(!1), u = Ke(
|
|
1998
|
+
() => s ? { stagger: !0 } : { stagger: o },
|
|
1999
|
+
[o, s]
|
|
1998
2000
|
), d = gr();
|
|
1999
2001
|
W(() => {
|
|
2000
2002
|
s || i(!0);
|
|
2001
2003
|
}, [s, d.location]);
|
|
2002
|
-
const [g] =
|
|
2004
|
+
const [g] = he(() => new Wa(t)), p = (f = t.plugins) == null ? void 0 : f.filter(Va).map((v, x) => {
|
|
2003
2005
|
var b;
|
|
2004
|
-
return /* @__PURE__ */
|
|
2006
|
+
return /* @__PURE__ */ a.jsx(Hr, { children: (b = v.getHead) == null ? void 0 : b.call(v) }, x);
|
|
2005
2007
|
});
|
|
2006
|
-
return /* @__PURE__ */
|
|
2007
|
-
/* @__PURE__ */
|
|
2008
|
-
/* @__PURE__ */
|
|
2008
|
+
return /* @__PURE__ */ a.jsxs(ia, { client: Ht, children: [
|
|
2009
|
+
/* @__PURE__ */ a.jsx(Ge, { children: p }),
|
|
2010
|
+
/* @__PURE__ */ a.jsx(qe.Provider, { value: u, children: /* @__PURE__ */ a.jsx(ws, { context: g, children: /* @__PURE__ */ a.jsx(cr, { components: r, children: /* @__PURE__ */ a.jsx(ys, { children: /* @__PURE__ */ a.jsx(xs, { value: n, children: /* @__PURE__ */ a.jsx(vr, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(Kr, { children: e ?? /* @__PURE__ */ a.jsx(Pt, {}) }) }) }) }) }) }) })
|
|
2009
2011
|
] });
|
|
2010
|
-
}, Ms = Ft(bs), Zn = (e) => /* @__PURE__ */
|
|
2012
|
+
}, Ms = Ft(bs), Zn = (e) => /* @__PURE__ */ a.jsx(Qa, { FallbackComponent: Ja, children: /* @__PURE__ */ a.jsx(Ms, { ...e }) });
|
|
2011
2013
|
Zn.displayName = "DevPortal";
|
|
2012
2014
|
const Cs = ({
|
|
2013
2015
|
category: e,
|
|
2014
2016
|
level: t
|
|
2015
2017
|
}) => {
|
|
2016
2018
|
var p;
|
|
2017
|
-
const n = $t(), r = ur(e),
|
|
2019
|
+
const n = $t(), r = ur(e), o = e.collapsible ?? !0, s = e.collapsed ?? !0, i = !!(!o || !s || r), [u, d] = he(i);
|
|
2018
2020
|
W(() => {
|
|
2019
2021
|
r && d(!0);
|
|
2020
2022
|
}, [r]);
|
|
2021
|
-
const g =
|
|
2023
|
+
const g = o && /* @__PURE__ */ a.jsx(
|
|
2022
2024
|
"button",
|
|
2023
2025
|
{
|
|
2024
2026
|
type: "button",
|
|
2025
2027
|
onClick: (l) => {
|
|
2026
2028
|
l.preventDefault(), d((f) => !f);
|
|
2027
2029
|
},
|
|
2028
|
-
children: /* @__PURE__ */
|
|
2030
|
+
children: /* @__PURE__ */ a.jsx(
|
|
2029
2031
|
Qt,
|
|
2030
2032
|
{
|
|
2031
2033
|
size: 16,
|
|
@@ -2034,7 +2036,7 @@ const Cs = ({
|
|
|
2034
2036
|
)
|
|
2035
2037
|
}
|
|
2036
2038
|
);
|
|
2037
|
-
return /* @__PURE__ */
|
|
2039
|
+
return /* @__PURE__ */ a.jsxs(
|
|
2038
2040
|
Yr,
|
|
2039
2041
|
{
|
|
2040
2042
|
className: M("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
|
|
@@ -2042,17 +2044,17 @@ const Cs = ({
|
|
|
2042
2044
|
open: u,
|
|
2043
2045
|
onOpenChange: () => d(!0),
|
|
2044
2046
|
children: [
|
|
2045
|
-
/* @__PURE__ */
|
|
2047
|
+
/* @__PURE__ */ a.jsx(
|
|
2046
2048
|
Xr,
|
|
2047
2049
|
{
|
|
2048
2050
|
className: M(
|
|
2049
2051
|
"group text-start",
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
+
de({ isActive: !1, isTopLevel: t === 0 }),
|
|
2053
|
+
o ? "cursor-pointer" : "cursor-default hover:bg-transparent"
|
|
2052
2054
|
),
|
|
2053
2055
|
asChild: !0,
|
|
2054
|
-
disabled: !
|
|
2055
|
-
children: ((p = e.link) == null ? void 0 : p.type) === "doc" ? /* @__PURE__ */
|
|
2056
|
+
disabled: !o,
|
|
2057
|
+
children: ((p = e.link) == null ? void 0 : p.type) === "doc" ? /* @__PURE__ */ a.jsx(Pe, { to: Xe(n == null ? void 0 : n.id, e.link.id), children: ({ isActive: l }) => /* @__PURE__ */ a.jsxs(
|
|
2056
2058
|
"div",
|
|
2057
2059
|
{
|
|
2058
2060
|
className: M(
|
|
@@ -2060,17 +2062,17 @@ const Cs = ({
|
|
|
2060
2062
|
l ? "text-primary font-medium" : "text-foreground/80"
|
|
2061
2063
|
),
|
|
2062
2064
|
children: [
|
|
2063
|
-
/* @__PURE__ */
|
|
2065
|
+
/* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
|
|
2064
2066
|
g
|
|
2065
2067
|
]
|
|
2066
2068
|
}
|
|
2067
|
-
) }) : /* @__PURE__ */
|
|
2068
|
-
/* @__PURE__ */
|
|
2069
|
+
) }) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
|
|
2070
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
|
|
2069
2071
|
g
|
|
2070
2072
|
] })
|
|
2071
2073
|
}
|
|
2072
2074
|
),
|
|
2073
|
-
/* @__PURE__ */
|
|
2075
|
+
/* @__PURE__ */ a.jsx(Wr, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((l) => /* @__PURE__ */ a.jsx(
|
|
2074
2076
|
tr,
|
|
2075
2077
|
{
|
|
2076
2078
|
level: t + 1,
|
|
@@ -2081,7 +2083,7 @@ const Cs = ({
|
|
|
2081
2083
|
]
|
|
2082
2084
|
}
|
|
2083
2085
|
);
|
|
2084
|
-
},
|
|
2086
|
+
}, de = $r(
|
|
2085
2087
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
2086
2088
|
{
|
|
2087
2089
|
variants: {
|
|
@@ -2105,21 +2107,21 @@ const Cs = ({
|
|
|
2105
2107
|
const n = $t(), { activeAnchor: r } = ze();
|
|
2106
2108
|
switch (e.type) {
|
|
2107
2109
|
case "category":
|
|
2108
|
-
return /* @__PURE__ */
|
|
2110
|
+
return /* @__PURE__ */ a.jsx(Cs, { category: e, level: t });
|
|
2109
2111
|
case "doc":
|
|
2110
|
-
return /* @__PURE__ */
|
|
2112
|
+
return /* @__PURE__ */ a.jsx(
|
|
2111
2113
|
Pe,
|
|
2112
2114
|
{
|
|
2113
|
-
className: ({ isActive:
|
|
2115
|
+
className: ({ isActive: o }) => de({ isActive: o, isTopLevel: t === 0 }),
|
|
2114
2116
|
to: Xe(n == null ? void 0 : n.id, e.id),
|
|
2115
|
-
children: e.badge ? /* @__PURE__ */
|
|
2116
|
-
/* @__PURE__ */
|
|
2117
|
-
/* @__PURE__ */
|
|
2117
|
+
children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2118
|
+
/* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
2119
|
+
/* @__PURE__ */ a.jsx($e, { ...e.badge })
|
|
2118
2120
|
] }) : e.label
|
|
2119
2121
|
}
|
|
2120
2122
|
);
|
|
2121
2123
|
case "link":
|
|
2122
|
-
return e.href.startsWith("#") ? /* @__PURE__ */
|
|
2124
|
+
return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
|
|
2123
2125
|
lr,
|
|
2124
2126
|
{
|
|
2125
2127
|
to: e.href,
|
|
@@ -2127,71 +2129,71 @@ const Cs = ({
|
|
|
2127
2129
|
className: M(
|
|
2128
2130
|
"flex gap-2.5 justify-between",
|
|
2129
2131
|
t === 0 && "-mx-[--padding-nav-item]",
|
|
2130
|
-
|
|
2132
|
+
de({
|
|
2131
2133
|
isActive: e.href.slice(1) === r
|
|
2132
2134
|
})
|
|
2133
2135
|
),
|
|
2134
|
-
children: e.badge ? /* @__PURE__ */
|
|
2135
|
-
/* @__PURE__ */
|
|
2136
|
-
/* @__PURE__ */
|
|
2137
|
-
] }) : /* @__PURE__ */
|
|
2136
|
+
children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2137
|
+
/* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
2138
|
+
/* @__PURE__ */ a.jsx($e, { ...e.badge })
|
|
2139
|
+
] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
|
|
2138
2140
|
}
|
|
2139
|
-
) : e.href.startsWith("http") ? /* @__PURE__ */
|
|
2141
|
+
) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
|
|
2140
2142
|
"a",
|
|
2141
2143
|
{
|
|
2142
2144
|
className: M(
|
|
2143
|
-
|
|
2145
|
+
de({ isTopLevel: t === 0 }),
|
|
2144
2146
|
"block"
|
|
2145
2147
|
),
|
|
2146
2148
|
href: e.href,
|
|
2147
2149
|
target: "_blank",
|
|
2148
2150
|
rel: "noopener noreferrer",
|
|
2149
2151
|
children: [
|
|
2150
|
-
/* @__PURE__ */
|
|
2151
|
-
/* @__PURE__ */
|
|
2152
|
+
/* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
2153
|
+
/* @__PURE__ */ a.jsxs("span", { className: "whitespace-nowrap", children: [
|
|
2152
2154
|
" ",
|
|
2153
|
-
/* @__PURE__ */
|
|
2155
|
+
/* @__PURE__ */ a.jsx(fa, { className: "inline ml-1", size: 12 })
|
|
2154
2156
|
] })
|
|
2155
2157
|
]
|
|
2156
2158
|
}
|
|
2157
|
-
) : /* @__PURE__ */
|
|
2159
|
+
) : /* @__PURE__ */ a.jsx(
|
|
2158
2160
|
Pe,
|
|
2159
2161
|
{
|
|
2160
|
-
className: M("flex gap-2.5 justify-between",
|
|
2162
|
+
className: M("flex gap-2.5 justify-between", de()),
|
|
2161
2163
|
to: e.href,
|
|
2162
|
-
children: e.badge ? /* @__PURE__ */
|
|
2163
|
-
/* @__PURE__ */
|
|
2164
|
-
/* @__PURE__ */
|
|
2165
|
-
] }) : /* @__PURE__ */
|
|
2164
|
+
children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2165
|
+
/* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
2166
|
+
/* @__PURE__ */ a.jsx($e, { ...e.badge })
|
|
2167
|
+
] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
|
|
2166
2168
|
}
|
|
2167
2169
|
);
|
|
2168
2170
|
}
|
|
2169
|
-
},
|
|
2171
|
+
}, js = (e, t = { block: "center" }) => {
|
|
2170
2172
|
if (!e) return;
|
|
2171
2173
|
const n = e.getBoundingClientRect();
|
|
2172
2174
|
n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
2173
|
-
},
|
|
2175
|
+
}, Ss = () => {
|
|
2174
2176
|
const e = De(), { setActiveAnchor: t } = ze();
|
|
2175
2177
|
W(() => {
|
|
2176
2178
|
if (!e.hash) return;
|
|
2177
2179
|
const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
|
|
2178
|
-
const
|
|
2179
|
-
return
|
|
2180
|
+
const o = document.getElementById(n), s = document.querySelector(`[${er}="${n}"]`);
|
|
2181
|
+
return o ? (o.scrollIntoView(), js(s), requestIdleCallback(() => t(n)), !0) : !1;
|
|
2180
2182
|
};
|
|
2181
2183
|
if (!r()) {
|
|
2182
|
-
const
|
|
2184
|
+
const o = new MutationObserver((s, i) => {
|
|
2183
2185
|
r() && i.disconnect();
|
|
2184
2186
|
});
|
|
2185
|
-
return
|
|
2187
|
+
return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
|
|
2186
2188
|
}
|
|
2187
2189
|
}, [e.hash, t]);
|
|
2188
|
-
},
|
|
2190
|
+
}, Ps = () => {
|
|
2189
2191
|
const e = De(), t = Ve(e.pathname);
|
|
2190
2192
|
W(() => {
|
|
2191
2193
|
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
2192
2194
|
}, [e.pathname]);
|
|
2193
|
-
}, Rs = zr(function({ children: t, className: n, pushMainContent: r },
|
|
2194
|
-
return /* @__PURE__ */
|
|
2195
|
+
}, Rs = zr(function({ children: t, className: n, pushMainContent: r }, o) {
|
|
2196
|
+
return /* @__PURE__ */ a.jsx(
|
|
2195
2197
|
"nav",
|
|
2196
2198
|
{
|
|
2197
2199
|
"data-navigation": String(r),
|
|
@@ -2199,44 +2201,44 @@ const Cs = ({
|
|
|
2199
2201
|
"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",
|
|
2200
2202
|
n
|
|
2201
2203
|
),
|
|
2202
|
-
ref:
|
|
2204
|
+
ref: o,
|
|
2203
2205
|
children: t
|
|
2204
2206
|
}
|
|
2205
2207
|
);
|
|
2206
2208
|
}), Es = () => {
|
|
2207
|
-
const e = Ve(null), t =
|
|
2208
|
-
return /* @__PURE__ */
|
|
2209
|
+
const e = Ve(null), t = ca();
|
|
2210
|
+
return /* @__PURE__ */ a.jsxs(
|
|
2209
2211
|
Rs,
|
|
2210
2212
|
{
|
|
2211
2213
|
ref: e,
|
|
2212
2214
|
pushMainContent: t.data.items.length > 0,
|
|
2213
2215
|
children: [
|
|
2214
|
-
/* @__PURE__ */
|
|
2215
|
-
t.data.items.map((n) => /* @__PURE__ */
|
|
2216
|
-
/* @__PURE__ */
|
|
2216
|
+
/* @__PURE__ */ a.jsx(se, { name: "zudoku-before-navigation" }),
|
|
2217
|
+
t.data.items.map((n) => /* @__PURE__ */ a.jsx(tr, { item: n }, n.label)),
|
|
2218
|
+
/* @__PURE__ */ a.jsx(se, { name: "zudoku-after-navigation" })
|
|
2217
2219
|
]
|
|
2218
2220
|
}
|
|
2219
2221
|
);
|
|
2220
2222
|
}, _s = ({ children: e }) => {
|
|
2221
2223
|
const t = De(), { setActiveAnchor: n } = ze(), { meta: r } = Ie();
|
|
2222
|
-
|
|
2223
|
-
const
|
|
2224
|
+
Ss(), Ps();
|
|
2225
|
+
const o = Ve(t.pathname);
|
|
2224
2226
|
return W(() => {
|
|
2225
|
-
t.pathname !==
|
|
2226
|
-
}, [t.pathname, n]), /* @__PURE__ */
|
|
2227
|
+
t.pathname !== o.current && n(""), o.current = t.pathname;
|
|
2228
|
+
}, [t.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2227
2229
|
!1,
|
|
2228
|
-
/* @__PURE__ */
|
|
2229
|
-
(r == null ? void 0 : r.description) && /* @__PURE__ */
|
|
2230
|
-
(r == null ? void 0 : r.favicon) && /* @__PURE__ */
|
|
2230
|
+
/* @__PURE__ */ a.jsxs(Ge, { titleTemplate: r == null ? void 0 : r.title, children: [
|
|
2231
|
+
(r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
|
|
2232
|
+
(r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
|
|
2231
2233
|
] }),
|
|
2232
|
-
/* @__PURE__ */
|
|
2233
|
-
/* @__PURE__ */
|
|
2234
|
+
/* @__PURE__ */ a.jsx(Wn, {}),
|
|
2235
|
+
/* @__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(
|
|
2234
2236
|
Tt,
|
|
2235
2237
|
{
|
|
2236
|
-
fallback: /* @__PURE__ */
|
|
2238
|
+
fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(da, {}) }),
|
|
2237
2239
|
children: [
|
|
2238
|
-
/* @__PURE__ */
|
|
2239
|
-
/* @__PURE__ */
|
|
2240
|
+
/* @__PURE__ */ a.jsx(Es, {}),
|
|
2241
|
+
/* @__PURE__ */ a.jsxs(
|
|
2240
2242
|
"main",
|
|
2241
2243
|
{
|
|
2242
2244
|
className: M(
|
|
@@ -2246,9 +2248,9 @@ const Cs = ({
|
|
|
2246
2248
|
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
|
|
2247
2249
|
),
|
|
2248
2250
|
children: [
|
|
2249
|
-
/* @__PURE__ */
|
|
2250
|
-
e ?? /* @__PURE__ */
|
|
2251
|
-
/* @__PURE__ */
|
|
2251
|
+
/* @__PURE__ */ a.jsx(se, { name: "zudoku-before-content" }),
|
|
2252
|
+
e ?? /* @__PURE__ */ a.jsx(Pt, {}),
|
|
2253
|
+
/* @__PURE__ */ a.jsx(se, { name: "zudoku-after-content" })
|
|
2252
2254
|
]
|
|
2253
2255
|
}
|
|
2254
2256
|
)
|
|
@@ -2256,7 +2258,7 @@ const Cs = ({
|
|
|
2256
2258
|
}
|
|
2257
2259
|
) })
|
|
2258
2260
|
] });
|
|
2259
|
-
}, Gs = dr, Hs = Br, zs = Zn, Vs = _s, Ys =
|
|
2261
|
+
}, Gs = dr, Hs = Br, zs = Zn, Vs = _s, Ys = Re, Xs = xr, Ws = va, Js = Aa, Zs = Oa, ei = Qe, ti = Ge;
|
|
2260
2262
|
export {
|
|
2261
2263
|
Js as Bootstrap,
|
|
2262
2264
|
Zs as BootstrapStatic,
|