zudoku 0.3.0-dev.97 → 0.3.0-dev.98
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/app/main.js +4 -0
- package/dist/app/main.js.map +1 -1
- package/dist/config/validators/validate.d.ts +54 -0
- package/dist/config/validators/validate.js +8 -0
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/lib/components/Header.js +3 -2
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Search.d.ts +1 -0
- package/dist/lib/components/Search.js +37 -0
- package/dist/lib/components/Search.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +8 -1
- package/dist/lib/core/plugins.js +1 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +2 -0
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +3 -0
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +1 -0
- package/dist/lib/plugins/search-inkeep/index.d.ts +6 -0
- package/dist/lib/plugins/search-inkeep/index.js +21 -0
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -0
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +6 -0
- package/dist/lib/plugins/search-inkeep/inkeep.js +37 -0
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -0
- package/dist/vite/plugin-component.js +1 -0
- package/dist/vite/plugin-component.js.map +1 -1
- package/lib/InkeepCustomTrigger-CE5-K5ex.js +6 -0
- package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +1 -0
- package/lib/zudoku.components.js +677 -632
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +56 -0
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -0
- package/package.json +7 -2
- package/src/app/main.tsx +4 -0
- package/src/lib/components/Header.tsx +3 -10
- package/src/lib/components/Search.tsx +60 -0
- package/src/lib/core/plugins.ts +14 -1
- package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +3 -0
- package/src/lib/plugins/search-inkeep/index.tsx +55 -0
- package/src/lib/plugins/search-inkeep/inkeep.ts +47 -0
package/lib/zudoku.components.js
CHANGED
|
@@ -2,38 +2,38 @@ var ar = Object.defineProperty;
|
|
|
2
2
|
var dt = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
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
|
-
|
|
5
|
+
var sr = (e, t, n) => t in e ? ar(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var P = (e, t, n) => sr(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), R = (e, t, n, r) => (ht(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
8
|
+
var Me = (e, t, n, r) => ({
|
|
9
|
+
set _(a) {
|
|
10
|
+
R(e, t, a, 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
|
|
18
|
-
import { E as jt, S as
|
|
19
|
-
import { j as
|
|
20
|
-
import { M as
|
|
21
|
-
import { c as
|
|
16
|
+
import { H as St, a as Ge, M as ir, u as cr, A as ur, b as lr } from "./utils-Bh4upQ0e.js";
|
|
17
|
+
import { d as dr, a as hr, R as fr, N as Se, u as De, L as Pe, b as pr, c as mr, O as Pt } from "./index-7kcHaXD6.js";
|
|
18
|
+
import { E as jt, S as gr, a as je, R as vr } from "./SlotletProvider-CzMAO73_.js";
|
|
19
|
+
import { j as o } from "./jsx-runtime-B6kdoens.js";
|
|
20
|
+
import { M as xr, c as yr, a as Et, b as _t, A as wr, u as me, h as br, d as y, e as Mr, F as Cr, D as Rr, C as Sr, P as se, f as He, g as Pr, i as Nt, R as jr, S as Er, j as _r, k as Nr, l as Dt, m as Dr, n as Ee, o as It, p as Ir, B as Qe } from "./Combination-D-9IH0zy.js";
|
|
21
|
+
import { c as ie, a as M, C as kr, b as Ar, u as Or, T as Tr, M as Fr, V as Lr, d as ze, e as Kr, f as $r } from "./Markdown-B_Gax7at.js";
|
|
22
22
|
import * as c from "react";
|
|
23
|
-
import
|
|
24
|
-
import { g as
|
|
23
|
+
import Br, { StrictMode as kt, createContext as At, Component as Qr, createElement as ft, isValidElement as qr, useState as de, useCallback as Ot, useEffect as W, memo as Tt, useMemo as Ke, useContext as Ur, Fragment as Gr, useRef as Ve, forwardRef as Hr, Suspense as zr } from "react";
|
|
24
|
+
import { g as Ye } from "./_commonjsHelpers-BVfed4GL.js";
|
|
25
25
|
import { r as Vr } from "./router-BiRCp01d.js";
|
|
26
|
-
import { S as
|
|
27
|
-
import { S as
|
|
26
|
+
import { S as qe, R as Yr, T as Xr, C as Wr } from "./index-D-9Z7HSn.js";
|
|
27
|
+
import { S as Ft, h as Lt, Q as Jr, n as E, m as pt, a as mt, b as $, e as Zr, c as eo, d as to, f as no, o as gt, r as vt, g as ro, i as xt, p as yt, s as oo, u as Ie, j as ao, Z as so, k as io, l as Kt, q as co } from "./ZudokuContext-BIZ8zHbZ.js";
|
|
28
28
|
import { j as Xe } from "./joinPath-B7kNnUX4.js";
|
|
29
|
-
import { c as
|
|
29
|
+
import { c as $t, P as ke, R as uo, I as lo, S as $e, a as ho } 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
|
|
36
|
+
const Bt = ie("ChevronRight", [
|
|
37
37
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
38
38
|
]);
|
|
39
39
|
/**
|
|
@@ -42,7 +42,7 @@ const $t = pe("ChevronRight", [
|
|
|
42
42
|
* This source code is licensed under the ISC license.
|
|
43
43
|
* See the LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
const
|
|
45
|
+
const fo = ie("Dot", [
|
|
46
46
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
|
47
47
|
]);
|
|
48
48
|
/**
|
|
@@ -51,7 +51,7 @@ const ha = pe("Dot", [
|
|
|
51
51
|
* This source code is licensed under the ISC license.
|
|
52
52
|
* See the LICENSE file in the root directory of this source tree.
|
|
53
53
|
*/
|
|
54
|
-
const
|
|
54
|
+
const po = ie("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 fa = pe("ExternalLink", [
|
|
|
62
62
|
* This source code is licensed under the ISC license.
|
|
63
63
|
* See the LICENSE file in the root directory of this source tree.
|
|
64
64
|
*/
|
|
65
|
-
const
|
|
65
|
+
const mo = ie("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,17 @@ const pa = pe("MoonStar", [
|
|
|
73
73
|
* This source code is licensed under the ISC license.
|
|
74
74
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
75
|
*/
|
|
76
|
-
const
|
|
76
|
+
const go = ie("Search", [
|
|
77
|
+
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
78
|
+
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
79
|
+
]);
|
|
80
|
+
/**
|
|
81
|
+
* @license lucide-react v0.378.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/
|
|
86
|
+
const vo = ie("Sun", [
|
|
77
87
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
78
88
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
79
89
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -84,14 +94,14 @@ const ma = pe("Sun", [
|
|
|
84
94
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
85
95
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
86
96
|
]);
|
|
87
|
-
function
|
|
88
|
-
return /* @__PURE__ */
|
|
97
|
+
function xo({ error: e }) {
|
|
98
|
+
return /* @__PURE__ */ o.jsx(jt, { error: e });
|
|
89
99
|
}
|
|
90
|
-
var
|
|
91
|
-
const
|
|
92
|
-
Object.defineProperty(
|
|
93
|
-
var
|
|
94
|
-
function
|
|
100
|
+
var ge = {};
|
|
101
|
+
const yo = /* @__PURE__ */ Ye(Vr), wo = /* @__PURE__ */ Ye(dr), bo = /* @__PURE__ */ Ye(hr);
|
|
102
|
+
Object.defineProperty(ge, "__esModule", { value: !0 });
|
|
103
|
+
var Mo = Br, F = yo, We = wo, B = bo;
|
|
104
|
+
function Co(e) {
|
|
95
105
|
if (e && e.__esModule) return e;
|
|
96
106
|
var t = /* @__PURE__ */ Object.create(null);
|
|
97
107
|
return e && Object.keys(e).forEach(function(n) {
|
|
@@ -106,41 +116,41 @@ function ba(e) {
|
|
|
106
116
|
}
|
|
107
117
|
}), t.default = e, Object.freeze(t);
|
|
108
118
|
}
|
|
109
|
-
var
|
|
110
|
-
function
|
|
119
|
+
var O = /* @__PURE__ */ Co(Mo);
|
|
120
|
+
function Ro({
|
|
111
121
|
basename: e,
|
|
112
122
|
children: t,
|
|
113
123
|
location: n = "/",
|
|
114
124
|
future: r
|
|
115
125
|
}) {
|
|
116
126
|
typeof n == "string" && (n = B.parsePath(n));
|
|
117
|
-
let
|
|
127
|
+
let a = F.Action.Pop, s = {
|
|
118
128
|
pathname: n.pathname || "/",
|
|
119
129
|
search: n.search || "",
|
|
120
130
|
hash: n.hash || "",
|
|
121
131
|
state: n.state != null ? n.state : null,
|
|
122
132
|
key: n.key || "default"
|
|
123
|
-
}, i =
|
|
124
|
-
return /* @__PURE__ */
|
|
133
|
+
}, i = Qt();
|
|
134
|
+
return /* @__PURE__ */ O.createElement(B.Router, {
|
|
125
135
|
basename: e,
|
|
126
136
|
children: t,
|
|
127
137
|
location: s,
|
|
128
|
-
navigationType:
|
|
138
|
+
navigationType: a,
|
|
129
139
|
navigator: i,
|
|
130
140
|
future: r,
|
|
131
141
|
static: !0
|
|
132
142
|
});
|
|
133
143
|
}
|
|
134
|
-
function
|
|
144
|
+
function So({
|
|
135
145
|
context: e,
|
|
136
146
|
router: t,
|
|
137
147
|
hydrate: n = !0,
|
|
138
148
|
nonce: r
|
|
139
149
|
}) {
|
|
140
150
|
t && e || (process.env.NODE_ENV !== "production" ? F.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : F.UNSAFE_invariant(!1));
|
|
141
|
-
let
|
|
151
|
+
let a = {
|
|
142
152
|
router: t,
|
|
143
|
-
navigator:
|
|
153
|
+
navigator: Qt(),
|
|
144
154
|
static: !0,
|
|
145
155
|
staticContext: e,
|
|
146
156
|
basename: e.basename || "/"
|
|
@@ -149,37 +159,37 @@ function Ca({
|
|
|
149
159
|
let d = {
|
|
150
160
|
loaderData: e.loaderData,
|
|
151
161
|
actionData: e.actionData,
|
|
152
|
-
errors:
|
|
162
|
+
errors: jo(e.errors)
|
|
153
163
|
};
|
|
154
|
-
i = `window.__staticRouterHydrationData = JSON.parse(${
|
|
164
|
+
i = `window.__staticRouterHydrationData = JSON.parse(${ko(JSON.stringify(JSON.stringify(d)))});`;
|
|
155
165
|
}
|
|
156
166
|
let {
|
|
157
167
|
state: u
|
|
158
|
-
} =
|
|
159
|
-
return /* @__PURE__ */
|
|
160
|
-
value:
|
|
161
|
-
}, /* @__PURE__ */
|
|
168
|
+
} = a.router;
|
|
169
|
+
return /* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement(B.UNSAFE_DataRouterContext.Provider, {
|
|
170
|
+
value: a
|
|
171
|
+
}, /* @__PURE__ */ O.createElement(B.UNSAFE_DataRouterStateContext.Provider, {
|
|
162
172
|
value: u
|
|
163
|
-
}, /* @__PURE__ */
|
|
173
|
+
}, /* @__PURE__ */ O.createElement(B.UNSAFE_FetchersContext.Provider, {
|
|
164
174
|
value: s
|
|
165
|
-
}, /* @__PURE__ */
|
|
175
|
+
}, /* @__PURE__ */ O.createElement(B.UNSAFE_ViewTransitionContext.Provider, {
|
|
166
176
|
value: {
|
|
167
177
|
isTransitioning: !1
|
|
168
178
|
}
|
|
169
|
-
}, /* @__PURE__ */
|
|
170
|
-
basename:
|
|
179
|
+
}, /* @__PURE__ */ O.createElement(B.Router, {
|
|
180
|
+
basename: a.basename,
|
|
171
181
|
location: u.location,
|
|
172
182
|
navigationType: u.historyAction,
|
|
173
|
-
navigator:
|
|
174
|
-
static:
|
|
183
|
+
navigator: a.navigator,
|
|
184
|
+
static: a.static,
|
|
175
185
|
future: {
|
|
176
186
|
v7_relativeSplatPath: t.future.v7_relativeSplatPath
|
|
177
187
|
}
|
|
178
|
-
}, /* @__PURE__ */
|
|
188
|
+
}, /* @__PURE__ */ O.createElement(Po, {
|
|
179
189
|
routes: t.routes,
|
|
180
190
|
future: t.future,
|
|
181
191
|
state: u
|
|
182
|
-
})))))), i ? /* @__PURE__ */
|
|
192
|
+
})))))), i ? /* @__PURE__ */ O.createElement("script", {
|
|
183
193
|
suppressHydrationWarning: !0,
|
|
184
194
|
nonce: r,
|
|
185
195
|
dangerouslySetInnerHTML: {
|
|
@@ -187,34 +197,34 @@ function Ca({
|
|
|
187
197
|
}
|
|
188
198
|
}) : null);
|
|
189
199
|
}
|
|
190
|
-
function
|
|
200
|
+
function Po({
|
|
191
201
|
routes: e,
|
|
192
202
|
future: t,
|
|
193
203
|
state: n
|
|
194
204
|
}) {
|
|
195
205
|
return We.UNSAFE_useRoutesImpl(e, void 0, n, t);
|
|
196
206
|
}
|
|
197
|
-
function
|
|
207
|
+
function jo(e) {
|
|
198
208
|
if (!e) return null;
|
|
199
209
|
let t = Object.entries(e), n = {};
|
|
200
|
-
for (let [r,
|
|
201
|
-
F.isRouteErrorResponse(
|
|
202
|
-
...
|
|
210
|
+
for (let [r, a] of t)
|
|
211
|
+
F.isRouteErrorResponse(a) ? n[r] = {
|
|
212
|
+
...a,
|
|
203
213
|
__type: "RouteErrorResponse"
|
|
204
|
-
} :
|
|
205
|
-
message:
|
|
214
|
+
} : a instanceof Error ? n[r] = {
|
|
215
|
+
message: a.message,
|
|
206
216
|
__type: "Error",
|
|
207
217
|
// If this is a subclass (i.e., ReferenceError), send up the type so we
|
|
208
218
|
// can re-create the same type during hydration.
|
|
209
|
-
...
|
|
210
|
-
__subType:
|
|
219
|
+
...a.name !== "Error" ? {
|
|
220
|
+
__subType: a.name
|
|
211
221
|
} : {}
|
|
212
|
-
} : n[r] =
|
|
222
|
+
} : n[r] = a;
|
|
213
223
|
return n;
|
|
214
224
|
}
|
|
215
|
-
function
|
|
225
|
+
function Qt() {
|
|
216
226
|
return {
|
|
217
|
-
createHref:
|
|
227
|
+
createHref: qt,
|
|
218
228
|
encodeLocation: Ut,
|
|
219
229
|
push(e) {
|
|
220
230
|
throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
|
|
@@ -233,14 +243,14 @@ function Bt() {
|
|
|
233
243
|
}
|
|
234
244
|
};
|
|
235
245
|
}
|
|
236
|
-
function
|
|
246
|
+
function Eo(e, t) {
|
|
237
247
|
return F.createStaticHandler(e, {
|
|
238
248
|
...t,
|
|
239
249
|
mapRouteProperties: We.UNSAFE_mapRouteProperties
|
|
240
250
|
});
|
|
241
251
|
}
|
|
242
|
-
function
|
|
243
|
-
let r = {},
|
|
252
|
+
function _o(e, t, n = {}) {
|
|
253
|
+
let r = {}, a = F.UNSAFE_convertRoutesToDataRoutes(e, We.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((u) => {
|
|
244
254
|
let d = r[u.route.id] || u.route;
|
|
245
255
|
return {
|
|
246
256
|
...u,
|
|
@@ -280,7 +290,7 @@ function ja(e, t, n = {}) {
|
|
|
280
290
|
};
|
|
281
291
|
},
|
|
282
292
|
get routes() {
|
|
283
|
-
return
|
|
293
|
+
return a;
|
|
284
294
|
},
|
|
285
295
|
get window() {
|
|
286
296
|
},
|
|
@@ -302,7 +312,7 @@ function ja(e, t, n = {}) {
|
|
|
302
312
|
revalidate() {
|
|
303
313
|
throw i("revalidate");
|
|
304
314
|
},
|
|
305
|
-
createHref:
|
|
315
|
+
createHref: qt,
|
|
306
316
|
encodeLocation: Ut,
|
|
307
317
|
getFetcher() {
|
|
308
318
|
return F.IDLE_FETCHER;
|
|
@@ -329,57 +339,57 @@ function ja(e, t, n = {}) {
|
|
|
329
339
|
}
|
|
330
340
|
};
|
|
331
341
|
}
|
|
332
|
-
function
|
|
342
|
+
function qt(e) {
|
|
333
343
|
return typeof e == "string" ? e : B.createPath(e);
|
|
334
344
|
}
|
|
335
345
|
function Ut(e) {
|
|
336
346
|
let t = typeof e == "string" ? e : B.createPath(e);
|
|
337
347
|
t = t.replace(/ $/, "%20");
|
|
338
|
-
let n =
|
|
348
|
+
let n = No.test(t) ? new URL(t) : new URL(t, "http://localhost");
|
|
339
349
|
return {
|
|
340
350
|
pathname: n.pathname,
|
|
341
351
|
search: n.search,
|
|
342
352
|
hash: n.hash
|
|
343
353
|
};
|
|
344
354
|
}
|
|
345
|
-
const
|
|
355
|
+
const No = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Do = {
|
|
346
356
|
"&": "\\u0026",
|
|
347
357
|
">": "\\u003e",
|
|
348
358
|
"<": "\\u003c",
|
|
349
359
|
"\u2028": "\\u2028",
|
|
350
360
|
"\u2029": "\\u2029"
|
|
351
|
-
},
|
|
352
|
-
function
|
|
353
|
-
return e.replace(
|
|
361
|
+
}, Io = /[&><\u2028\u2029]/g;
|
|
362
|
+
function ko(e) {
|
|
363
|
+
return e.replace(Io, (t) => Do[t]);
|
|
354
364
|
}
|
|
355
|
-
|
|
356
|
-
var
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
const
|
|
365
|
+
ge.StaticRouter = Ro;
|
|
366
|
+
var Ao = ge.StaticRouterProvider = So;
|
|
367
|
+
ge.createStaticHandler = Eo;
|
|
368
|
+
ge.createStaticRouter = _o;
|
|
369
|
+
const Oo = ({
|
|
360
370
|
router: e,
|
|
361
371
|
hydrate: t = !1
|
|
362
|
-
}) => /* @__PURE__ */
|
|
372
|
+
}) => /* @__PURE__ */ o.jsx(kt, { children: /* @__PURE__ */ o.jsx(St, { children: /* @__PURE__ */ o.jsx(qe.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ o.jsx(fr, { router: e }) }) }) }), To = ({
|
|
363
373
|
router: e,
|
|
364
374
|
context: t,
|
|
365
375
|
helmetContext: n
|
|
366
|
-
}) => /* @__PURE__ */
|
|
367
|
-
var T, Mt,
|
|
376
|
+
}) => /* @__PURE__ */ o.jsx(kt, { children: /* @__PURE__ */ o.jsx(St, { context: n, children: /* @__PURE__ */ o.jsx(Ao, { router: e, context: t }) }) });
|
|
377
|
+
var T, Mt, Fo = (Mt = class extends Ft {
|
|
368
378
|
constructor(t = {}) {
|
|
369
379
|
super();
|
|
370
380
|
N(this, T);
|
|
371
|
-
this.config = t,
|
|
381
|
+
this.config = t, R(this, T, /* @__PURE__ */ new Map());
|
|
372
382
|
}
|
|
373
383
|
build(t, n, r) {
|
|
374
|
-
const
|
|
384
|
+
const a = n.queryKey, s = n.queryHash ?? Lt(a, n);
|
|
375
385
|
let i = this.get(s);
|
|
376
386
|
return i || (i = new Jr({
|
|
377
387
|
cache: this,
|
|
378
|
-
queryKey:
|
|
388
|
+
queryKey: a,
|
|
379
389
|
queryHash: s,
|
|
380
390
|
options: t.defaultQueryOptions(n),
|
|
381
391
|
state: r,
|
|
382
|
-
defaultOptions: t.getQueryDefaults(
|
|
392
|
+
defaultOptions: t.getQueryDefaults(a)
|
|
383
393
|
}), this.add(i)), i;
|
|
384
394
|
}
|
|
385
395
|
add(t) {
|
|
@@ -436,43 +446,43 @@ var T, Mt, ka = (Mt = class extends Tt {
|
|
|
436
446
|
});
|
|
437
447
|
});
|
|
438
448
|
}
|
|
439
|
-
}, T = new WeakMap(), Mt), j,
|
|
449
|
+
}, T = new WeakMap(), Mt), j, pe, Ct, Lo = (Ct = class extends Ft {
|
|
440
450
|
constructor(t = {}) {
|
|
441
451
|
super();
|
|
442
452
|
N(this, j);
|
|
443
|
-
N(this,
|
|
444
|
-
this.config = t,
|
|
453
|
+
N(this, pe);
|
|
454
|
+
this.config = t, R(this, j, /* @__PURE__ */ new Map()), R(this, pe, Date.now());
|
|
445
455
|
}
|
|
446
456
|
build(t, n, r) {
|
|
447
|
-
const
|
|
457
|
+
const a = new xr({
|
|
448
458
|
mutationCache: this,
|
|
449
|
-
mutationId: ++
|
|
459
|
+
mutationId: ++Me(this, pe)._,
|
|
450
460
|
options: t.defaultMutationOptions(n),
|
|
451
461
|
state: r
|
|
452
462
|
});
|
|
453
|
-
return this.add(
|
|
463
|
+
return this.add(a), a;
|
|
454
464
|
}
|
|
455
465
|
add(t) {
|
|
456
|
-
const n =
|
|
466
|
+
const n = Ce(t), r = h(this, j).get(n) ?? [];
|
|
457
467
|
r.push(t), h(this, j).set(n, r), this.notify({ type: "added", mutation: t });
|
|
458
468
|
}
|
|
459
469
|
remove(t) {
|
|
460
470
|
var r;
|
|
461
|
-
const n =
|
|
471
|
+
const n = Ce(t);
|
|
462
472
|
if (h(this, j).has(n)) {
|
|
463
|
-
const
|
|
464
|
-
|
|
473
|
+
const a = (r = h(this, j).get(n)) == null ? void 0 : r.filter((s) => s !== t);
|
|
474
|
+
a && (a.length === 0 ? h(this, j).delete(n) : h(this, j).set(n, a));
|
|
465
475
|
}
|
|
466
476
|
this.notify({ type: "removed", mutation: t });
|
|
467
477
|
}
|
|
468
478
|
canRun(t) {
|
|
469
479
|
var r;
|
|
470
|
-
const n = (r = h(this, j).get(
|
|
480
|
+
const n = (r = h(this, j).get(Ce(t))) == null ? void 0 : r.find((a) => a.state.status === "pending");
|
|
471
481
|
return !n || n === t;
|
|
472
482
|
}
|
|
473
483
|
runNext(t) {
|
|
474
484
|
var r;
|
|
475
|
-
const n = (r = h(this, j).get(
|
|
485
|
+
const n = (r = h(this, j).get(Ce(t))) == null ? void 0 : r.find((a) => a !== t && a.state.isPaused);
|
|
476
486
|
return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
|
|
477
487
|
}
|
|
478
488
|
clear() {
|
|
@@ -509,17 +519,17 @@ var T, Mt, ka = (Mt = class extends Tt {
|
|
|
509
519
|
)
|
|
510
520
|
);
|
|
511
521
|
}
|
|
512
|
-
}, j = new WeakMap(),
|
|
513
|
-
function
|
|
522
|
+
}, j = new WeakMap(), pe = new WeakMap(), Ct);
|
|
523
|
+
function Ce(e) {
|
|
514
524
|
var t;
|
|
515
525
|
return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
|
|
516
526
|
}
|
|
517
|
-
function
|
|
527
|
+
function Ko(e) {
|
|
518
528
|
return {
|
|
519
529
|
onFetch: (t, n) => {
|
|
520
530
|
const r = async () => {
|
|
521
531
|
var x, b, I, Q, V;
|
|
522
|
-
const
|
|
532
|
+
const a = t.options, s = (I = (b = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : b.fetchMore) == null ? void 0 : I.direction, i = ((Q = t.state.data) == null ? void 0 : Q.pages) || [], u = ((V = t.state.data) == null ? void 0 : V.pageParams) || [], d = { pages: [], pageParams: [] };
|
|
523
533
|
let g = !1;
|
|
524
534
|
const p = (C) => {
|
|
525
535
|
Object.defineProperty(C, "signal", {
|
|
@@ -528,50 +538,50 @@ function Fa(e) {
|
|
|
528
538
|
g = !0;
|
|
529
539
|
}), t.signal)
|
|
530
540
|
});
|
|
531
|
-
}, l = Zr(t.options, t.fetchOptions), f = async (C,
|
|
541
|
+
}, l = Zr(t.options, t.fetchOptions), f = async (C, k, L) => {
|
|
532
542
|
if (g)
|
|
533
543
|
return Promise.reject();
|
|
534
|
-
if (
|
|
544
|
+
if (k == null && C.pages.length)
|
|
535
545
|
return Promise.resolve(C);
|
|
536
546
|
const Y = {
|
|
537
547
|
queryKey: t.queryKey,
|
|
538
|
-
pageParam:
|
|
548
|
+
pageParam: k,
|
|
539
549
|
direction: L ? "backward" : "forward",
|
|
540
550
|
meta: t.options.meta
|
|
541
551
|
};
|
|
542
552
|
p(Y);
|
|
543
|
-
const
|
|
553
|
+
const Z = await l(
|
|
544
554
|
Y
|
|
545
|
-
), { maxPages:
|
|
555
|
+
), { maxPages: we } = t.options, X = L ? eo : to;
|
|
546
556
|
return {
|
|
547
|
-
pages: X(C.pages,
|
|
548
|
-
pageParams: X(C.pageParams,
|
|
557
|
+
pages: X(C.pages, Z, we),
|
|
558
|
+
pageParams: X(C.pageParams, k, we)
|
|
549
559
|
};
|
|
550
560
|
};
|
|
551
561
|
let v;
|
|
552
562
|
if (s && i.length) {
|
|
553
|
-
const C = s === "backward",
|
|
563
|
+
const C = s === "backward", k = C ? $o : wt, L = {
|
|
554
564
|
pages: i,
|
|
555
565
|
pageParams: u
|
|
556
|
-
}, Y =
|
|
566
|
+
}, Y = k(a, L);
|
|
557
567
|
v = await f(L, Y, C);
|
|
558
568
|
} else {
|
|
559
569
|
v = await f(
|
|
560
570
|
d,
|
|
561
|
-
u[0] ??
|
|
571
|
+
u[0] ?? a.initialPageParam
|
|
562
572
|
);
|
|
563
573
|
const C = e ?? i.length;
|
|
564
|
-
for (let
|
|
565
|
-
const L = wt(
|
|
574
|
+
for (let k = 1; k < C; k++) {
|
|
575
|
+
const L = wt(a, v);
|
|
566
576
|
v = await f(v, L);
|
|
567
577
|
}
|
|
568
578
|
}
|
|
569
579
|
return v;
|
|
570
580
|
};
|
|
571
581
|
t.options.persister ? t.fetchFn = () => {
|
|
572
|
-
var
|
|
573
|
-
return (s = (
|
|
574
|
-
|
|
582
|
+
var a, s;
|
|
583
|
+
return (s = (a = t.options).persister) == null ? void 0 : s.call(
|
|
584
|
+
a,
|
|
575
585
|
r,
|
|
576
586
|
{
|
|
577
587
|
queryKey: t.queryKey,
|
|
@@ -593,7 +603,7 @@ function wt(e, { pages: t, pageParams: n }) {
|
|
|
593
603
|
n
|
|
594
604
|
);
|
|
595
605
|
}
|
|
596
|
-
function
|
|
606
|
+
function $o(e, { pages: t, pageParams: n }) {
|
|
597
607
|
var r;
|
|
598
608
|
return (r = e.getPreviousPageParam) == null ? void 0 : r.call(
|
|
599
609
|
e,
|
|
@@ -603,34 +613,34 @@ function La(e, { pages: t, pageParams: n }) {
|
|
|
603
613
|
n
|
|
604
614
|
);
|
|
605
615
|
}
|
|
606
|
-
var w,
|
|
616
|
+
var w, U, G, ne, re, H, oe, ae, Rt, Bo = (Rt = class {
|
|
607
617
|
constructor(e = {}) {
|
|
608
618
|
N(this, w);
|
|
619
|
+
N(this, U);
|
|
609
620
|
N(this, G);
|
|
610
|
-
N(this, q);
|
|
611
|
-
N(this, te);
|
|
612
621
|
N(this, ne);
|
|
613
|
-
N(this, H);
|
|
614
622
|
N(this, re);
|
|
623
|
+
N(this, H);
|
|
624
|
+
N(this, oe);
|
|
615
625
|
N(this, ae);
|
|
616
|
-
|
|
626
|
+
R(this, w, e.queryCache || new Fo()), R(this, U, e.mutationCache || new Lo()), R(this, G, e.defaultOptions || {}), R(this, ne, /* @__PURE__ */ new Map()), R(this, re, /* @__PURE__ */ new Map()), R(this, H, 0);
|
|
617
627
|
}
|
|
618
628
|
mount() {
|
|
619
|
-
|
|
629
|
+
Me(this, H)._++, h(this, H) === 1 && (R(this, oe, no.subscribe(async (e) => {
|
|
620
630
|
e && (await this.resumePausedMutations(), h(this, w).onFocus());
|
|
621
|
-
})),
|
|
631
|
+
})), R(this, ae, gt.subscribe(async (e) => {
|
|
622
632
|
e && (await this.resumePausedMutations(), h(this, w).onOnline());
|
|
623
633
|
})));
|
|
624
634
|
}
|
|
625
635
|
unmount() {
|
|
626
636
|
var e, t;
|
|
627
|
-
|
|
637
|
+
Me(this, H)._--, h(this, H) === 0 && ((e = h(this, oe)) == null || e.call(this), R(this, oe, void 0), (t = h(this, ae)) == null || t.call(this), R(this, ae, void 0));
|
|
628
638
|
}
|
|
629
639
|
isFetching(e) {
|
|
630
640
|
return h(this, w).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
631
641
|
}
|
|
632
642
|
isMutating(e) {
|
|
633
|
-
return h(this,
|
|
643
|
+
return h(this, U).findAll({ ...e, status: "pending" }).length;
|
|
634
644
|
}
|
|
635
645
|
getQueryData(e) {
|
|
636
646
|
var n;
|
|
@@ -653,9 +663,9 @@ var w, G, q, te, ne, H, re, ae, Pt, Ka = (Pt = class {
|
|
|
653
663
|
});
|
|
654
664
|
}
|
|
655
665
|
setQueryData(e, t, n) {
|
|
656
|
-
const r = this.defaultQueryOptions({ queryKey: e }),
|
|
666
|
+
const r = this.defaultQueryOptions({ queryKey: e }), a = h(this, w).get(
|
|
657
667
|
r.queryHash
|
|
658
|
-
), s =
|
|
668
|
+
), s = a == null ? void 0 : a.state.data, i = ro(t, s);
|
|
659
669
|
if (i !== void 0)
|
|
660
670
|
return h(this, w).build(this, r).setData(i, { ...n, manual: !0 });
|
|
661
671
|
}
|
|
@@ -685,13 +695,13 @@ var w, G, q, te, ne, H, re, ae, Pt, Ka = (Pt = class {
|
|
|
685
695
|
type: "active",
|
|
686
696
|
...e
|
|
687
697
|
};
|
|
688
|
-
return E.batch(() => (n.findAll(e).forEach((
|
|
689
|
-
|
|
698
|
+
return E.batch(() => (n.findAll(e).forEach((a) => {
|
|
699
|
+
a.reset();
|
|
690
700
|
}), this.refetchQueries(r, t)));
|
|
691
701
|
}
|
|
692
702
|
cancelQueries(e = {}, t = {}) {
|
|
693
703
|
const n = { revert: !0, ...t }, r = E.batch(
|
|
694
|
-
() => h(this, w).findAll(e).map((
|
|
704
|
+
() => h(this, w).findAll(e).map((a) => a.cancel(n))
|
|
695
705
|
);
|
|
696
706
|
return Promise.all(r).then($).catch($);
|
|
697
707
|
}
|
|
@@ -713,9 +723,9 @@ var w, G, q, te, ne, H, re, ae, Pt, Ka = (Pt = class {
|
|
|
713
723
|
...t,
|
|
714
724
|
cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
|
|
715
725
|
}, r = E.batch(
|
|
716
|
-
() => h(this, w).findAll(e).filter((
|
|
717
|
-
let s =
|
|
718
|
-
return n.throwOnError || (s = s.catch($)),
|
|
726
|
+
() => h(this, w).findAll(e).filter((a) => !a.isDisabled()).map((a) => {
|
|
727
|
+
let s = a.fetch(void 0, n);
|
|
728
|
+
return n.throwOnError || (s = s.catch($)), a.state.fetchStatus === "paused" ? Promise.resolve() : s;
|
|
719
729
|
})
|
|
720
730
|
);
|
|
721
731
|
return Promise.all(r).then($);
|
|
@@ -732,47 +742,47 @@ var w, G, q, te, ne, H, re, ae, Pt, Ka = (Pt = class {
|
|
|
732
742
|
return this.fetchQuery(e).then($).catch($);
|
|
733
743
|
}
|
|
734
744
|
fetchInfiniteQuery(e) {
|
|
735
|
-
return e.behavior =
|
|
745
|
+
return e.behavior = Ko(e.pages), this.fetchQuery(e);
|
|
736
746
|
}
|
|
737
747
|
prefetchInfiniteQuery(e) {
|
|
738
748
|
return this.fetchInfiniteQuery(e).then($).catch($);
|
|
739
749
|
}
|
|
740
750
|
resumePausedMutations() {
|
|
741
|
-
return gt.isOnline() ? h(this,
|
|
751
|
+
return gt.isOnline() ? h(this, U).resumePausedMutations() : Promise.resolve();
|
|
742
752
|
}
|
|
743
753
|
getQueryCache() {
|
|
744
754
|
return h(this, w);
|
|
745
755
|
}
|
|
746
756
|
getMutationCache() {
|
|
747
|
-
return h(this,
|
|
757
|
+
return h(this, U);
|
|
748
758
|
}
|
|
749
759
|
getDefaultOptions() {
|
|
750
|
-
return h(this,
|
|
760
|
+
return h(this, G);
|
|
751
761
|
}
|
|
752
762
|
setDefaultOptions(e) {
|
|
753
|
-
|
|
763
|
+
R(this, G, e);
|
|
754
764
|
}
|
|
755
765
|
setQueryDefaults(e, t) {
|
|
756
|
-
h(this,
|
|
766
|
+
h(this, ne).set(xt(e), {
|
|
757
767
|
queryKey: e,
|
|
758
768
|
defaultOptions: t
|
|
759
769
|
});
|
|
760
770
|
}
|
|
761
771
|
getQueryDefaults(e) {
|
|
762
|
-
const t = [...h(this,
|
|
772
|
+
const t = [...h(this, ne).values()];
|
|
763
773
|
let n = {};
|
|
764
774
|
return t.forEach((r) => {
|
|
765
775
|
yt(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
|
|
766
776
|
}), n;
|
|
767
777
|
}
|
|
768
778
|
setMutationDefaults(e, t) {
|
|
769
|
-
h(this,
|
|
779
|
+
h(this, re).set(xt(e), {
|
|
770
780
|
mutationKey: e,
|
|
771
781
|
defaultOptions: t
|
|
772
782
|
});
|
|
773
783
|
}
|
|
774
784
|
getMutationDefaults(e) {
|
|
775
|
-
const t = [...h(this,
|
|
785
|
+
const t = [...h(this, re).values()];
|
|
776
786
|
let n = {};
|
|
777
787
|
return t.forEach((r) => {
|
|
778
788
|
yt(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
|
|
@@ -782,35 +792,35 @@ var w, G, q, te, ne, H, re, ae, Pt, Ka = (Pt = class {
|
|
|
782
792
|
if (e._defaulted)
|
|
783
793
|
return e;
|
|
784
794
|
const t = {
|
|
785
|
-
...h(this,
|
|
795
|
+
...h(this, G).queries,
|
|
786
796
|
...this.getQueryDefaults(e.queryKey),
|
|
787
797
|
...e,
|
|
788
798
|
_defaulted: !0
|
|
789
799
|
};
|
|
790
|
-
return t.queryHash || (t.queryHash =
|
|
800
|
+
return t.queryHash || (t.queryHash = Lt(
|
|
791
801
|
t.queryKey,
|
|
792
802
|
t
|
|
793
|
-
)), 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 === oo && (t.enabled = !1), t;
|
|
794
804
|
}
|
|
795
805
|
defaultMutationOptions(e) {
|
|
796
806
|
return e != null && e._defaulted ? e : {
|
|
797
|
-
...h(this,
|
|
807
|
+
...h(this, G).mutations,
|
|
798
808
|
...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
|
|
799
809
|
...e,
|
|
800
810
|
_defaulted: !0
|
|
801
811
|
};
|
|
802
812
|
}
|
|
803
813
|
clear() {
|
|
804
|
-
h(this, w).clear(), h(this,
|
|
814
|
+
h(this, w).clear(), h(this, U).clear();
|
|
805
815
|
}
|
|
806
|
-
}, w = new WeakMap(),
|
|
807
|
-
const
|
|
816
|
+
}, w = new WeakMap(), U = new WeakMap(), G = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), H = new WeakMap(), oe = new WeakMap(), ae = new WeakMap(), Rt);
|
|
817
|
+
const Qo = At(null), Be = {
|
|
808
818
|
didCatch: !1,
|
|
809
819
|
error: null
|
|
810
820
|
};
|
|
811
|
-
class
|
|
821
|
+
class qo extends Qr {
|
|
812
822
|
constructor(t) {
|
|
813
|
-
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
823
|
+
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Be;
|
|
814
824
|
}
|
|
815
825
|
static getDerivedStateFromError(t) {
|
|
816
826
|
return {
|
|
@@ -823,31 +833,31 @@ class Ba extends Br {
|
|
|
823
833
|
error: t
|
|
824
834
|
} = this.state;
|
|
825
835
|
if (t !== null) {
|
|
826
|
-
for (var n, r,
|
|
836
|
+
for (var n, r, a = arguments.length, s = new Array(a), i = 0; i < a; i++)
|
|
827
837
|
s[i] = arguments[i];
|
|
828
838
|
(n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
|
|
829
839
|
args: s,
|
|
830
840
|
reason: "imperative-api"
|
|
831
|
-
}), this.setState(
|
|
841
|
+
}), this.setState(Be);
|
|
832
842
|
}
|
|
833
843
|
}
|
|
834
844
|
componentDidCatch(t, n) {
|
|
835
|
-
var r,
|
|
836
|
-
(r = (
|
|
845
|
+
var r, a;
|
|
846
|
+
(r = (a = this.props).onError) === null || r === void 0 || r.call(a, t, n);
|
|
837
847
|
}
|
|
838
848
|
componentDidUpdate(t, n) {
|
|
839
849
|
const {
|
|
840
850
|
didCatch: r
|
|
841
851
|
} = this.state, {
|
|
842
|
-
resetKeys:
|
|
852
|
+
resetKeys: a
|
|
843
853
|
} = this.props;
|
|
844
|
-
if (r && n.error !== null &&
|
|
854
|
+
if (r && n.error !== null && Uo(t.resetKeys, a)) {
|
|
845
855
|
var s, i;
|
|
846
856
|
(s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
|
|
847
|
-
next:
|
|
857
|
+
next: a,
|
|
848
858
|
prev: t.resetKeys,
|
|
849
859
|
reason: "keys"
|
|
850
|
-
}), this.setState(
|
|
860
|
+
}), this.setState(Be);
|
|
851
861
|
}
|
|
852
862
|
}
|
|
853
863
|
render() {
|
|
@@ -855,7 +865,7 @@ class Ba extends Br {
|
|
|
855
865
|
children: t,
|
|
856
866
|
fallbackRender: n,
|
|
857
867
|
FallbackComponent: r,
|
|
858
|
-
fallback:
|
|
868
|
+
fallback: a
|
|
859
869
|
} = this.props, {
|
|
860
870
|
didCatch: s,
|
|
861
871
|
error: i
|
|
@@ -870,12 +880,12 @@ class Ba extends Br {
|
|
|
870
880
|
u = n(d);
|
|
871
881
|
else if (r)
|
|
872
882
|
u = ft(r, d);
|
|
873
|
-
else if (
|
|
874
|
-
u =
|
|
883
|
+
else if (a === null || qr(a))
|
|
884
|
+
u = a;
|
|
875
885
|
else
|
|
876
886
|
throw i;
|
|
877
887
|
}
|
|
878
|
-
return ft(
|
|
888
|
+
return ft(Qo.Provider, {
|
|
879
889
|
value: {
|
|
880
890
|
didCatch: s,
|
|
881
891
|
error: i,
|
|
@@ -884,70 +894,70 @@ class Ba extends Br {
|
|
|
884
894
|
}, u);
|
|
885
895
|
}
|
|
886
896
|
}
|
|
887
|
-
function
|
|
897
|
+
function Uo() {
|
|
888
898
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
889
899
|
return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
|
|
890
900
|
}
|
|
891
|
-
const
|
|
892
|
-
class
|
|
901
|
+
const Go = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Ho = (e) => "getRoutes" in e && typeof e.getRoutes == "function", zo = (e) => "onRequestSearch" in e && typeof e.onRequestSearch == "function", Vo = (e) => "initialize" in e && typeof e.initialize == "function", Yo = (e) => "getHead" in e && typeof e.getHead == "function", Xo = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Wo = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Gt = new Bo();
|
|
902
|
+
class Jo {
|
|
893
903
|
constructor(t) {
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
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 ({
|
|
902
912
|
navigate: t
|
|
903
913
|
}) => {
|
|
904
914
|
await Promise.all(
|
|
905
|
-
this.plugins.filter(
|
|
915
|
+
this.plugins.filter(Vo).map((n) => {
|
|
906
916
|
var r;
|
|
907
917
|
return (r = n.initialize) == null ? void 0 : r.call(n, this, { navigate: t });
|
|
908
918
|
})
|
|
909
919
|
);
|
|
910
920
|
});
|
|
911
|
-
|
|
921
|
+
P(this, "invalidateCache", async (t) => {
|
|
912
922
|
await Gt.invalidateQueries({ queryKey: t });
|
|
913
923
|
});
|
|
914
|
-
|
|
915
|
-
this.plugins.filter(
|
|
924
|
+
P(this, "getApiIdentities", async () => (await Promise.all(
|
|
925
|
+
this.plugins.filter(Wo).map((n) => n.getIdentities(this))
|
|
916
926
|
)).flat());
|
|
917
|
-
|
|
927
|
+
P(this, "getPluginSidebar", async (t) => (await Promise.all(
|
|
918
928
|
this.navigationPlugins.map(
|
|
919
929
|
(r) => {
|
|
920
|
-
var
|
|
921
|
-
return (
|
|
930
|
+
var a;
|
|
931
|
+
return (a = r.getSidebar) == null ? void 0 : a.call(r, Xe(t));
|
|
922
932
|
}
|
|
923
933
|
)
|
|
924
934
|
)).flatMap((r) => r ?? []));
|
|
925
|
-
|
|
935
|
+
P(this, "signRequest", async (t) => {
|
|
926
936
|
if (!this.authentication)
|
|
927
937
|
throw new Error("No authentication provider configured");
|
|
928
938
|
const n = await this.authentication.getAccessToken();
|
|
929
939
|
return t.headers.set("Authorization", `Bearer ${n}`), t;
|
|
930
940
|
});
|
|
931
|
-
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(Ho), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
|
|
932
942
|
}
|
|
933
943
|
}
|
|
934
|
-
function
|
|
935
|
-
return /* @__PURE__ */
|
|
944
|
+
function Zo({ error: e, resetErrorBoundary: t }) {
|
|
945
|
+
return /* @__PURE__ */ o.jsx(jt, { error: e });
|
|
936
946
|
}
|
|
937
|
-
const
|
|
938
|
-
(!
|
|
939
|
-
var Ue = ["Enter", " "],
|
|
947
|
+
const Re = globalThis;
|
|
948
|
+
(!Re.requestIdleCallback || !Re.cancelIdleCallback) && (Re.requestIdleCallback = (e) => setTimeout(e, 1), Re.cancelIdleCallback = clearTimeout);
|
|
949
|
+
var Ue = ["Enter", " "], ea = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp", "PageDown", "End"], ta = [...ea, ...Ht], na = {
|
|
940
950
|
ltr: [...Ue, "ArrowRight"],
|
|
941
951
|
rtl: [...Ue, "ArrowLeft"]
|
|
942
|
-
},
|
|
952
|
+
}, ra = {
|
|
943
953
|
ltr: ["ArrowLeft"],
|
|
944
954
|
rtl: ["ArrowRight"]
|
|
945
|
-
},
|
|
946
|
-
|
|
955
|
+
}, ve = "Menu", [he, oa, aa] = yr(ve), [J, zt] = Et(ve, [
|
|
956
|
+
aa,
|
|
947
957
|
_t,
|
|
948
|
-
|
|
949
|
-
]),
|
|
950
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir:
|
|
958
|
+
$t
|
|
959
|
+
]), xe = _t(), Vt = $t(), [Yt, z] = J(ve), [sa, ye] = J(ve), Xt = (e) => {
|
|
960
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = e, u = xe(t), [d, g] = c.useState(null), p = c.useRef(!1), l = He(s), f = Nr(a);
|
|
951
961
|
return c.useEffect(() => {
|
|
952
962
|
const v = () => {
|
|
953
963
|
p.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
|
|
@@ -955,16 +965,16 @@ var Ue = ["Enter", " "], Wa = ["ArrowDown", "PageUp", "Home"], qt = ["ArrowUp",
|
|
|
955
965
|
return document.addEventListener("keydown", v, { capture: !0 }), () => {
|
|
956
966
|
document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
|
|
957
967
|
};
|
|
958
|
-
}, []), /* @__PURE__ */
|
|
959
|
-
|
|
968
|
+
}, []), /* @__PURE__ */ o.jsx(Dt, { ...u, children: /* @__PURE__ */ o.jsx(
|
|
969
|
+
Yt,
|
|
960
970
|
{
|
|
961
971
|
scope: t,
|
|
962
972
|
open: n,
|
|
963
973
|
onOpenChange: l,
|
|
964
974
|
content: d,
|
|
965
975
|
onContentChange: g,
|
|
966
|
-
children: /* @__PURE__ */
|
|
967
|
-
|
|
976
|
+
children: /* @__PURE__ */ o.jsx(
|
|
977
|
+
sa,
|
|
968
978
|
{
|
|
969
979
|
scope: t,
|
|
970
980
|
onClose: c.useCallback(() => l(!1), [l]),
|
|
@@ -977,37 +987,37 @@ var Ue = ["Enter", " "], Wa = ["ArrowDown", "PageUp", "Home"], qt = ["ArrowUp",
|
|
|
977
987
|
}
|
|
978
988
|
) });
|
|
979
989
|
};
|
|
980
|
-
|
|
981
|
-
var
|
|
990
|
+
Xt.displayName = ve;
|
|
991
|
+
var ia = "MenuAnchor", Je = c.forwardRef(
|
|
982
992
|
(e, t) => {
|
|
983
|
-
const { __scopeMenu: n, ...r } = e,
|
|
984
|
-
return /* @__PURE__ */
|
|
993
|
+
const { __scopeMenu: n, ...r } = e, a = xe(n);
|
|
994
|
+
return /* @__PURE__ */ o.jsx(wr, { ...a, ...r, ref: t });
|
|
985
995
|
}
|
|
986
996
|
);
|
|
987
|
-
Je.displayName =
|
|
988
|
-
var Ze = "MenuPortal", [
|
|
997
|
+
Je.displayName = ia;
|
|
998
|
+
var Ze = "MenuPortal", [ca, Wt] = J(Ze, {
|
|
989
999
|
forceMount: void 0
|
|
990
|
-
}),
|
|
991
|
-
const { __scopeMenu: t, forceMount: n, children: r, container:
|
|
992
|
-
return /* @__PURE__ */
|
|
1000
|
+
}), Jt = (e) => {
|
|
1001
|
+
const { __scopeMenu: t, forceMount: n, children: r, container: a } = e, s = z(Ze, t);
|
|
1002
|
+
return /* @__PURE__ */ o.jsx(ca, { scope: t, forceMount: n, children: /* @__PURE__ */ o.jsx(ke, { present: n || s.open, children: /* @__PURE__ */ o.jsx(Dr, { asChild: !0, container: a, children: r }) }) });
|
|
993
1003
|
};
|
|
994
|
-
|
|
995
|
-
var D = "MenuContent", [
|
|
1004
|
+
Jt.displayName = Ze;
|
|
1005
|
+
var D = "MenuContent", [ua, et] = J(D), Zt = c.forwardRef(
|
|
996
1006
|
(e, t) => {
|
|
997
|
-
const n =
|
|
998
|
-
return /* @__PURE__ */
|
|
1007
|
+
const n = Wt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, s = z(D, e.__scopeMenu), i = ye(D, e.__scopeMenu);
|
|
1008
|
+
return /* @__PURE__ */ o.jsx(he.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(ke, { present: r || s.open, children: /* @__PURE__ */ o.jsx(he.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(la, { ...a, ref: t }) : /* @__PURE__ */ o.jsx(da, { ...a, ref: t }) }) }) });
|
|
999
1009
|
}
|
|
1000
|
-
),
|
|
1010
|
+
), la = c.forwardRef(
|
|
1001
1011
|
(e, t) => {
|
|
1002
|
-
const n = z(D, e.__scopeMenu), r = c.useRef(null),
|
|
1012
|
+
const n = z(D, e.__scopeMenu), r = c.useRef(null), a = me(t, r);
|
|
1003
1013
|
return c.useEffect(() => {
|
|
1004
1014
|
const s = r.current;
|
|
1005
|
-
if (s) return
|
|
1006
|
-
}, []), /* @__PURE__ */
|
|
1015
|
+
if (s) return br(s);
|
|
1016
|
+
}, []), /* @__PURE__ */ o.jsx(
|
|
1007
1017
|
tt,
|
|
1008
1018
|
{
|
|
1009
1019
|
...e,
|
|
1010
|
-
ref:
|
|
1020
|
+
ref: a,
|
|
1011
1021
|
trapFocus: n.open,
|
|
1012
1022
|
disableOutsidePointerEvents: n.open,
|
|
1013
1023
|
disableOutsideScroll: !0,
|
|
@@ -1020,9 +1030,9 @@ var D = "MenuContent", [so, et] = W(D), Jt = c.forwardRef(
|
|
|
1020
1030
|
}
|
|
1021
1031
|
);
|
|
1022
1032
|
}
|
|
1023
|
-
),
|
|
1033
|
+
), da = c.forwardRef((e, t) => {
|
|
1024
1034
|
const n = z(D, e.__scopeMenu);
|
|
1025
|
-
return /* @__PURE__ */
|
|
1035
|
+
return /* @__PURE__ */ o.jsx(
|
|
1026
1036
|
tt,
|
|
1027
1037
|
{
|
|
1028
1038
|
...e,
|
|
@@ -1038,7 +1048,7 @@ var D = "MenuContent", [so, et] = W(D), Jt = c.forwardRef(
|
|
|
1038
1048
|
const {
|
|
1039
1049
|
__scopeMenu: n,
|
|
1040
1050
|
loop: r = !1,
|
|
1041
|
-
trapFocus:
|
|
1051
|
+
trapFocus: a,
|
|
1042
1052
|
onOpenAutoFocus: s,
|
|
1043
1053
|
onCloseAutoFocus: i,
|
|
1044
1054
|
disableOutsidePointerEvents: u,
|
|
@@ -1050,58 +1060,58 @@ var D = "MenuContent", [so, et] = W(D), Jt = c.forwardRef(
|
|
|
1050
1060
|
onDismiss: v,
|
|
1051
1061
|
disableOutsideScroll: x,
|
|
1052
1062
|
...b
|
|
1053
|
-
} = e, I = z(D, n), Q =
|
|
1054
|
-
var
|
|
1055
|
-
const _ =
|
|
1063
|
+
} = e, I = z(D, n), Q = ye(D, n), V = xe(n), C = Vt(n), k = oa(n), [L, Y] = c.useState(null), Z = c.useRef(null), we = me(t, Z, I.onContentChange), X = c.useRef(0), be = c.useRef(""), tr = c.useRef(0), Oe = c.useRef(null), it = c.useRef("right"), Te = c.useRef(0), nr = x ? jr : c.Fragment, rr = x ? { as: Er, allowPinchZoom: !0 } : void 0, or = (m) => {
|
|
1064
|
+
var te, ut;
|
|
1065
|
+
const _ = be.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 = Ca(Le, _, Fe), ce = (ut = A.find((K) => K.textValue === ct)) == null ? void 0 : ut.ref.current;
|
|
1056
1066
|
(function K(lt) {
|
|
1057
|
-
|
|
1058
|
-
})(_),
|
|
1067
|
+
be.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => K(""), 1e3));
|
|
1068
|
+
})(_), ce && setTimeout(() => ce.focus());
|
|
1059
1069
|
};
|
|
1060
|
-
c.useEffect(() => () => window.clearTimeout(X.current), []),
|
|
1061
|
-
const
|
|
1062
|
-
var
|
|
1063
|
-
return it.current === ((
|
|
1070
|
+
c.useEffect(() => () => window.clearTimeout(X.current), []), Mr();
|
|
1071
|
+
const ee = c.useCallback((m) => {
|
|
1072
|
+
var A, q;
|
|
1073
|
+
return it.current === ((A = Oe.current) == null ? void 0 : A.side) && Sa(m, (q = Oe.current) == null ? void 0 : q.area);
|
|
1064
1074
|
}, []);
|
|
1065
|
-
return /* @__PURE__ */
|
|
1066
|
-
|
|
1075
|
+
return /* @__PURE__ */ o.jsx(
|
|
1076
|
+
ua,
|
|
1067
1077
|
{
|
|
1068
1078
|
scope: n,
|
|
1069
|
-
searchRef:
|
|
1079
|
+
searchRef: be,
|
|
1070
1080
|
onItemEnter: c.useCallback(
|
|
1071
1081
|
(m) => {
|
|
1072
|
-
|
|
1082
|
+
ee(m) && m.preventDefault();
|
|
1073
1083
|
},
|
|
1074
|
-
[
|
|
1084
|
+
[ee]
|
|
1075
1085
|
),
|
|
1076
1086
|
onItemLeave: c.useCallback(
|
|
1077
1087
|
(m) => {
|
|
1078
1088
|
var _;
|
|
1079
|
-
|
|
1089
|
+
ee(m) || ((_ = Z.current) == null || _.focus(), Y(null));
|
|
1080
1090
|
},
|
|
1081
|
-
[
|
|
1091
|
+
[ee]
|
|
1082
1092
|
),
|
|
1083
1093
|
onTriggerLeave: c.useCallback(
|
|
1084
1094
|
(m) => {
|
|
1085
|
-
|
|
1095
|
+
ee(m) && m.preventDefault();
|
|
1086
1096
|
},
|
|
1087
|
-
[
|
|
1097
|
+
[ee]
|
|
1088
1098
|
),
|
|
1089
|
-
pointerGraceTimerRef:
|
|
1099
|
+
pointerGraceTimerRef: tr,
|
|
1090
1100
|
onPointerGraceIntentChange: c.useCallback((m) => {
|
|
1091
1101
|
Oe.current = m;
|
|
1092
1102
|
}, []),
|
|
1093
|
-
children: /* @__PURE__ */
|
|
1094
|
-
|
|
1103
|
+
children: /* @__PURE__ */ o.jsx(nr, { ...rr, children: /* @__PURE__ */ o.jsx(
|
|
1104
|
+
Cr,
|
|
1095
1105
|
{
|
|
1096
1106
|
asChild: !0,
|
|
1097
|
-
trapped:
|
|
1107
|
+
trapped: a,
|
|
1098
1108
|
onMountAutoFocus: y(s, (m) => {
|
|
1099
1109
|
var _;
|
|
1100
|
-
m.preventDefault(), (_ =
|
|
1110
|
+
m.preventDefault(), (_ = Z.current) == null || _.focus({ preventScroll: !0 });
|
|
1101
1111
|
}),
|
|
1102
1112
|
onUnmountAutoFocus: i,
|
|
1103
|
-
children: /* @__PURE__ */
|
|
1104
|
-
|
|
1113
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1114
|
+
Rr,
|
|
1105
1115
|
{
|
|
1106
1116
|
asChild: !0,
|
|
1107
1117
|
disableOutsidePointerEvents: u,
|
|
@@ -1110,8 +1120,8 @@ var D = "MenuContent", [so, et] = W(D), Jt = c.forwardRef(
|
|
|
1110
1120
|
onFocusOutside: l,
|
|
1111
1121
|
onInteractOutside: f,
|
|
1112
1122
|
onDismiss: v,
|
|
1113
|
-
children: /* @__PURE__ */
|
|
1114
|
-
|
|
1123
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1124
|
+
uo,
|
|
1115
1125
|
{
|
|
1116
1126
|
asChild: !0,
|
|
1117
1127
|
...C,
|
|
@@ -1124,37 +1134,37 @@ var D = "MenuContent", [so, et] = W(D), Jt = c.forwardRef(
|
|
|
1124
1134
|
Q.isUsingKeyboardRef.current || m.preventDefault();
|
|
1125
1135
|
}),
|
|
1126
1136
|
preventScrollOnEntryFocus: !0,
|
|
1127
|
-
children: /* @__PURE__ */
|
|
1128
|
-
|
|
1137
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1138
|
+
Sr,
|
|
1129
1139
|
{
|
|
1130
1140
|
role: "menu",
|
|
1131
1141
|
"aria-orientation": "vertical",
|
|
1132
|
-
"data-state":
|
|
1142
|
+
"data-state": vn(I.open),
|
|
1133
1143
|
"data-radix-menu-content": "",
|
|
1134
1144
|
dir: Q.dir,
|
|
1135
1145
|
...V,
|
|
1136
1146
|
...b,
|
|
1137
|
-
ref:
|
|
1147
|
+
ref: we,
|
|
1138
1148
|
style: { outline: "none", ...b.style },
|
|
1139
1149
|
onKeyDown: y(b.onKeyDown, (m) => {
|
|
1140
|
-
const
|
|
1141
|
-
|
|
1142
|
-
const
|
|
1143
|
-
if (m.target !==
|
|
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 && or(m.key));
|
|
1152
|
+
const Le = Z.current;
|
|
1153
|
+
if (m.target !== Le || !ta.includes(m.key)) return;
|
|
1144
1154
|
m.preventDefault();
|
|
1145
|
-
const
|
|
1146
|
-
|
|
1155
|
+
const ce = k().filter((te) => !te.disabled).map((te) => te.ref.current);
|
|
1156
|
+
Ht.includes(m.key) && ce.reverse(), ba(ce);
|
|
1147
1157
|
}),
|
|
1148
1158
|
onBlur: y(e.onBlur, (m) => {
|
|
1149
|
-
m.currentTarget.contains(m.target) || (window.clearTimeout(X.current),
|
|
1159
|
+
m.currentTarget.contains(m.target) || (window.clearTimeout(X.current), be.current = "");
|
|
1150
1160
|
}),
|
|
1151
1161
|
onPointerMove: y(
|
|
1152
1162
|
e.onPointerMove,
|
|
1153
|
-
|
|
1154
|
-
const _ = m.target,
|
|
1155
|
-
if (m.currentTarget.contains(_) &&
|
|
1156
|
-
const
|
|
1157
|
-
it.current =
|
|
1163
|
+
fe((m) => {
|
|
1164
|
+
const _ = m.target, A = Te.current !== m.clientX;
|
|
1165
|
+
if (m.currentTarget.contains(_) && A) {
|
|
1166
|
+
const q = m.clientX > Te.current ? "right" : "left";
|
|
1167
|
+
it.current = q, Te.current = m.clientX;
|
|
1158
1168
|
}
|
|
1159
1169
|
})
|
|
1160
1170
|
)
|
|
@@ -1170,34 +1180,34 @@ var D = "MenuContent", [so, et] = W(D), Jt = c.forwardRef(
|
|
|
1170
1180
|
);
|
|
1171
1181
|
}
|
|
1172
1182
|
);
|
|
1173
|
-
|
|
1174
|
-
var
|
|
1183
|
+
Zt.displayName = D;
|
|
1184
|
+
var ha = "MenuGroup", nt = c.forwardRef(
|
|
1175
1185
|
(e, t) => {
|
|
1176
1186
|
const { __scopeMenu: n, ...r } = e;
|
|
1177
|
-
return /* @__PURE__ */
|
|
1187
|
+
return /* @__PURE__ */ o.jsx(se.div, { role: "group", ...r, ref: t });
|
|
1178
1188
|
}
|
|
1179
1189
|
);
|
|
1180
|
-
nt.displayName =
|
|
1181
|
-
var
|
|
1190
|
+
nt.displayName = ha;
|
|
1191
|
+
var fa = "MenuLabel", en = c.forwardRef(
|
|
1182
1192
|
(e, t) => {
|
|
1183
1193
|
const { __scopeMenu: n, ...r } = e;
|
|
1184
|
-
return /* @__PURE__ */
|
|
1194
|
+
return /* @__PURE__ */ o.jsx(se.div, { ...r, ref: t });
|
|
1185
1195
|
}
|
|
1186
1196
|
);
|
|
1187
|
-
|
|
1197
|
+
en.displayName = fa;
|
|
1188
1198
|
var _e = "MenuItem", bt = "menu.itemSelect", Ae = c.forwardRef(
|
|
1189
1199
|
(e, t) => {
|
|
1190
|
-
const { disabled: n = !1, onSelect: r, ...
|
|
1200
|
+
const { disabled: n = !1, onSelect: r, ...a } = e, s = c.useRef(null), i = ye(_e, e.__scopeMenu), u = et(_e, e.__scopeMenu), d = me(t, s), g = c.useRef(!1), p = () => {
|
|
1191
1201
|
const l = s.current;
|
|
1192
1202
|
if (!n && l) {
|
|
1193
1203
|
const f = new CustomEvent(bt, { bubbles: !0, cancelable: !0 });
|
|
1194
|
-
l.addEventListener(bt, (v) => r == null ? void 0 : r(v), { once: !0 }),
|
|
1204
|
+
l.addEventListener(bt, (v) => r == null ? void 0 : r(v), { once: !0 }), _r(l, f), f.defaultPrevented ? g.current = !1 : i.onClose();
|
|
1195
1205
|
}
|
|
1196
1206
|
};
|
|
1197
|
-
return /* @__PURE__ */
|
|
1198
|
-
|
|
1207
|
+
return /* @__PURE__ */ o.jsx(
|
|
1208
|
+
tn,
|
|
1199
1209
|
{
|
|
1200
|
-
...
|
|
1210
|
+
...a,
|
|
1201
1211
|
ref: d,
|
|
1202
1212
|
disabled: n,
|
|
1203
1213
|
onClick: y(e.onClick, p),
|
|
@@ -1218,20 +1228,20 @@ var _e = "MenuItem", bt = "menu.itemSelect", Ae = c.forwardRef(
|
|
|
1218
1228
|
}
|
|
1219
1229
|
);
|
|
1220
1230
|
Ae.displayName = _e;
|
|
1221
|
-
var
|
|
1231
|
+
var tn = c.forwardRef(
|
|
1222
1232
|
(e, t) => {
|
|
1223
|
-
const { __scopeMenu: n, disabled: r = !1, textValue:
|
|
1233
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = e, i = et(_e, n), u = Vt(n), d = c.useRef(null), g = me(t, d), [p, l] = c.useState(!1), [f, v] = c.useState("");
|
|
1224
1234
|
return c.useEffect(() => {
|
|
1225
1235
|
const x = d.current;
|
|
1226
1236
|
x && v((x.textContent ?? "").trim());
|
|
1227
|
-
}, [s.children]), /* @__PURE__ */
|
|
1228
|
-
|
|
1237
|
+
}, [s.children]), /* @__PURE__ */ o.jsx(
|
|
1238
|
+
he.ItemSlot,
|
|
1229
1239
|
{
|
|
1230
1240
|
scope: n,
|
|
1231
1241
|
disabled: r,
|
|
1232
|
-
textValue:
|
|
1233
|
-
children: /* @__PURE__ */
|
|
1234
|
-
|
|
1242
|
+
textValue: a ?? f,
|
|
1243
|
+
children: /* @__PURE__ */ o.jsx(lo, { asChild: !0, ...u, focusable: !r, children: /* @__PURE__ */ o.jsx(
|
|
1244
|
+
se.div,
|
|
1235
1245
|
{
|
|
1236
1246
|
role: "menuitem",
|
|
1237
1247
|
"data-highlighted": p ? "" : void 0,
|
|
@@ -1241,13 +1251,13 @@ var en = c.forwardRef(
|
|
|
1241
1251
|
ref: g,
|
|
1242
1252
|
onPointerMove: y(
|
|
1243
1253
|
e.onPointerMove,
|
|
1244
|
-
|
|
1254
|
+
fe((x) => {
|
|
1245
1255
|
r ? i.onItemLeave(x) : (i.onItemEnter(x), x.defaultPrevented || x.currentTarget.focus({ preventScroll: !0 }));
|
|
1246
1256
|
})
|
|
1247
1257
|
),
|
|
1248
1258
|
onPointerLeave: y(
|
|
1249
1259
|
e.onPointerLeave,
|
|
1250
|
-
|
|
1260
|
+
fe((x) => i.onItemLeave(x))
|
|
1251
1261
|
),
|
|
1252
1262
|
onFocus: y(e.onFocus, () => l(!0)),
|
|
1253
1263
|
onBlur: y(e.onBlur, () => l(!1))
|
|
@@ -1256,19 +1266,19 @@ var en = c.forwardRef(
|
|
|
1256
1266
|
}
|
|
1257
1267
|
);
|
|
1258
1268
|
}
|
|
1259
|
-
),
|
|
1269
|
+
), pa = "MenuCheckboxItem", nn = c.forwardRef(
|
|
1260
1270
|
(e, t) => {
|
|
1261
|
-
const { checked: n = !1, onCheckedChange: r, ...
|
|
1262
|
-
return /* @__PURE__ */
|
|
1271
|
+
const { checked: n = !1, onCheckedChange: r, ...a } = e;
|
|
1272
|
+
return /* @__PURE__ */ o.jsx(cn, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ o.jsx(
|
|
1263
1273
|
Ae,
|
|
1264
1274
|
{
|
|
1265
1275
|
role: "menuitemcheckbox",
|
|
1266
1276
|
"aria-checked": Ne(n) ? "mixed" : n,
|
|
1267
|
-
...
|
|
1277
|
+
...a,
|
|
1268
1278
|
ref: t,
|
|
1269
|
-
"data-state":
|
|
1279
|
+
"data-state": at(n),
|
|
1270
1280
|
onSelect: y(
|
|
1271
|
-
|
|
1281
|
+
a.onSelect,
|
|
1272
1282
|
() => r == null ? void 0 : r(Ne(n) ? !0 : !n),
|
|
1273
1283
|
{ checkForDefaultPrevented: !1 }
|
|
1274
1284
|
)
|
|
@@ -1276,34 +1286,34 @@ var en = c.forwardRef(
|
|
|
1276
1286
|
) });
|
|
1277
1287
|
}
|
|
1278
1288
|
);
|
|
1279
|
-
|
|
1280
|
-
var
|
|
1281
|
-
|
|
1289
|
+
nn.displayName = pa;
|
|
1290
|
+
var rn = "MenuRadioGroup", [ma, ga] = J(
|
|
1291
|
+
rn,
|
|
1282
1292
|
{ value: void 0, onValueChange: () => {
|
|
1283
1293
|
} }
|
|
1284
|
-
),
|
|
1294
|
+
), on = c.forwardRef(
|
|
1285
1295
|
(e, t) => {
|
|
1286
|
-
const { value: n, onValueChange: r, ...
|
|
1287
|
-
return /* @__PURE__ */
|
|
1296
|
+
const { value: n, onValueChange: r, ...a } = e, s = He(r);
|
|
1297
|
+
return /* @__PURE__ */ o.jsx(ma, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(nt, { ...a, ref: t }) });
|
|
1288
1298
|
}
|
|
1289
1299
|
);
|
|
1290
|
-
|
|
1291
|
-
var an = "MenuRadioItem",
|
|
1300
|
+
on.displayName = rn;
|
|
1301
|
+
var an = "MenuRadioItem", sn = c.forwardRef(
|
|
1292
1302
|
(e, t) => {
|
|
1293
|
-
const { value: n, ...r } = e,
|
|
1294
|
-
return /* @__PURE__ */
|
|
1303
|
+
const { value: n, ...r } = e, a = ga(an, e.__scopeMenu), s = n === a.value;
|
|
1304
|
+
return /* @__PURE__ */ o.jsx(cn, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ o.jsx(
|
|
1295
1305
|
Ae,
|
|
1296
1306
|
{
|
|
1297
1307
|
role: "menuitemradio",
|
|
1298
1308
|
"aria-checked": s,
|
|
1299
1309
|
...r,
|
|
1300
1310
|
ref: t,
|
|
1301
|
-
"data-state":
|
|
1311
|
+
"data-state": at(s),
|
|
1302
1312
|
onSelect: y(
|
|
1303
1313
|
r.onSelect,
|
|
1304
1314
|
() => {
|
|
1305
1315
|
var i;
|
|
1306
|
-
return (i =
|
|
1316
|
+
return (i = a.onValueChange) == null ? void 0 : i.call(a, n);
|
|
1307
1317
|
},
|
|
1308
1318
|
{ checkForDefaultPrevented: !1 }
|
|
1309
1319
|
)
|
|
@@ -1311,35 +1321,35 @@ var an = "MenuRadioItem", on = c.forwardRef(
|
|
|
1311
1321
|
) });
|
|
1312
1322
|
}
|
|
1313
1323
|
);
|
|
1314
|
-
|
|
1315
|
-
var rt = "MenuItemIndicator", [
|
|
1324
|
+
sn.displayName = an;
|
|
1325
|
+
var rt = "MenuItemIndicator", [cn, va] = J(
|
|
1316
1326
|
rt,
|
|
1317
1327
|
{ checked: !1 }
|
|
1318
|
-
),
|
|
1328
|
+
), un = c.forwardRef(
|
|
1319
1329
|
(e, t) => {
|
|
1320
|
-
const { __scopeMenu: n, forceMount: r, ...
|
|
1321
|
-
return /* @__PURE__ */
|
|
1322
|
-
|
|
1330
|
+
const { __scopeMenu: n, forceMount: r, ...a } = e, s = va(rt, n);
|
|
1331
|
+
return /* @__PURE__ */ o.jsx(
|
|
1332
|
+
ke,
|
|
1323
1333
|
{
|
|
1324
1334
|
present: r || Ne(s.checked) || s.checked === !0,
|
|
1325
|
-
children: /* @__PURE__ */
|
|
1326
|
-
|
|
1335
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1336
|
+
se.span,
|
|
1327
1337
|
{
|
|
1328
|
-
...
|
|
1338
|
+
...a,
|
|
1329
1339
|
ref: t,
|
|
1330
|
-
"data-state":
|
|
1340
|
+
"data-state": at(s.checked)
|
|
1331
1341
|
}
|
|
1332
1342
|
)
|
|
1333
1343
|
}
|
|
1334
1344
|
);
|
|
1335
1345
|
}
|
|
1336
1346
|
);
|
|
1337
|
-
|
|
1338
|
-
var
|
|
1347
|
+
un.displayName = rt;
|
|
1348
|
+
var xa = "MenuSeparator", ln = c.forwardRef(
|
|
1339
1349
|
(e, t) => {
|
|
1340
1350
|
const { __scopeMenu: n, ...r } = e;
|
|
1341
|
-
return /* @__PURE__ */
|
|
1342
|
-
|
|
1351
|
+
return /* @__PURE__ */ o.jsx(
|
|
1352
|
+
se.div,
|
|
1343
1353
|
{
|
|
1344
1354
|
role: "separator",
|
|
1345
1355
|
"aria-orientation": "horizontal",
|
|
@@ -1349,30 +1359,30 @@ var go = "MenuSeparator", un = c.forwardRef(
|
|
|
1349
1359
|
);
|
|
1350
1360
|
}
|
|
1351
1361
|
);
|
|
1352
|
-
|
|
1353
|
-
var
|
|
1362
|
+
ln.displayName = xa;
|
|
1363
|
+
var ya = "MenuArrow", dn = c.forwardRef(
|
|
1354
1364
|
(e, t) => {
|
|
1355
|
-
const { __scopeMenu: n, ...r } = e,
|
|
1356
|
-
return /* @__PURE__ */
|
|
1365
|
+
const { __scopeMenu: n, ...r } = e, a = xe(n);
|
|
1366
|
+
return /* @__PURE__ */ o.jsx(Pr, { ...a, ...r, ref: t });
|
|
1357
1367
|
}
|
|
1358
1368
|
);
|
|
1359
|
-
|
|
1360
|
-
var
|
|
1361
|
-
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange:
|
|
1362
|
-
return c.useEffect(() => (s.open === !1 && l(!1), () => l(!1)), [s.open, l]), /* @__PURE__ */
|
|
1363
|
-
|
|
1369
|
+
dn.displayName = ya;
|
|
1370
|
+
var ot = "MenuSub", [wa, hn] = J(ot), fn = (e) => {
|
|
1371
|
+
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: a } = e, s = z(ot, t), i = xe(t), [u, d] = c.useState(null), [g, p] = c.useState(null), l = He(a);
|
|
1372
|
+
return c.useEffect(() => (s.open === !1 && l(!1), () => l(!1)), [s.open, l]), /* @__PURE__ */ o.jsx(Dt, { ...i, children: /* @__PURE__ */ o.jsx(
|
|
1373
|
+
Yt,
|
|
1364
1374
|
{
|
|
1365
1375
|
scope: t,
|
|
1366
1376
|
open: r,
|
|
1367
1377
|
onOpenChange: l,
|
|
1368
1378
|
content: g,
|
|
1369
1379
|
onContentChange: p,
|
|
1370
|
-
children: /* @__PURE__ */
|
|
1371
|
-
|
|
1380
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1381
|
+
wa,
|
|
1372
1382
|
{
|
|
1373
1383
|
scope: t,
|
|
1374
|
-
contentId:
|
|
1375
|
-
triggerId:
|
|
1384
|
+
contentId: Ee(),
|
|
1385
|
+
triggerId: Ee(),
|
|
1376
1386
|
trigger: u,
|
|
1377
1387
|
onTriggerChange: d,
|
|
1378
1388
|
children: n
|
|
@@ -1381,10 +1391,10 @@ var at = "MenuSub", [xo, dn] = W(at), hn = (e) => {
|
|
|
1381
1391
|
}
|
|
1382
1392
|
) });
|
|
1383
1393
|
};
|
|
1384
|
-
|
|
1385
|
-
var
|
|
1394
|
+
fn.displayName = ot;
|
|
1395
|
+
var ue = "MenuSubTrigger", pn = c.forwardRef(
|
|
1386
1396
|
(e, t) => {
|
|
1387
|
-
const n = z(
|
|
1397
|
+
const n = z(ue, e.__scopeMenu), r = ye(ue, e.__scopeMenu), a = hn(ue, e.__scopeMenu), s = et(ue, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: d } = s, g = { __scopeMenu: e.__scopeMenu }, p = c.useCallback(() => {
|
|
1388
1398
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
1389
1399
|
}, []);
|
|
1390
1400
|
return c.useEffect(() => p, [p]), c.useEffect(() => {
|
|
@@ -1392,23 +1402,23 @@ var ce = "MenuSubTrigger", fn = c.forwardRef(
|
|
|
1392
1402
|
return () => {
|
|
1393
1403
|
window.clearTimeout(l), d(null);
|
|
1394
1404
|
};
|
|
1395
|
-
}, [u, d]), /* @__PURE__ */
|
|
1396
|
-
|
|
1405
|
+
}, [u, d]), /* @__PURE__ */ o.jsx(Je, { asChild: !0, ...g, children: /* @__PURE__ */ o.jsx(
|
|
1406
|
+
tn,
|
|
1397
1407
|
{
|
|
1398
|
-
id:
|
|
1408
|
+
id: a.triggerId,
|
|
1399
1409
|
"aria-haspopup": "menu",
|
|
1400
1410
|
"aria-expanded": n.open,
|
|
1401
|
-
"aria-controls":
|
|
1402
|
-
"data-state":
|
|
1411
|
+
"aria-controls": a.contentId,
|
|
1412
|
+
"data-state": vn(n.open),
|
|
1403
1413
|
...e,
|
|
1404
|
-
ref: Nt(t,
|
|
1414
|
+
ref: Nt(t, a.onTriggerChange),
|
|
1405
1415
|
onClick: (l) => {
|
|
1406
1416
|
var f;
|
|
1407
1417
|
(f = e.onClick) == null || f.call(e, l), !(e.disabled || l.defaultPrevented) && (l.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
1408
1418
|
},
|
|
1409
1419
|
onPointerMove: y(
|
|
1410
1420
|
e.onPointerMove,
|
|
1411
|
-
|
|
1421
|
+
fe((l) => {
|
|
1412
1422
|
s.onItemEnter(l), !l.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
|
|
1413
1423
|
n.onOpenChange(!0), p();
|
|
1414
1424
|
}, 100));
|
|
@@ -1416,7 +1426,7 @@ var ce = "MenuSubTrigger", fn = c.forwardRef(
|
|
|
1416
1426
|
),
|
|
1417
1427
|
onPointerLeave: y(
|
|
1418
1428
|
e.onPointerLeave,
|
|
1419
|
-
|
|
1429
|
+
fe((l) => {
|
|
1420
1430
|
var v, x;
|
|
1421
1431
|
p();
|
|
1422
1432
|
const f = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
|
|
@@ -1446,22 +1456,22 @@ var ce = "MenuSubTrigger", fn = c.forwardRef(
|
|
|
1446
1456
|
onKeyDown: y(e.onKeyDown, (l) => {
|
|
1447
1457
|
var v;
|
|
1448
1458
|
const f = s.searchRef.current !== "";
|
|
1449
|
-
e.disabled || f && l.key === " " ||
|
|
1459
|
+
e.disabled || f && l.key === " " || na[r.dir].includes(l.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), l.preventDefault());
|
|
1450
1460
|
})
|
|
1451
1461
|
}
|
|
1452
1462
|
) });
|
|
1453
1463
|
}
|
|
1454
1464
|
);
|
|
1455
|
-
|
|
1456
|
-
var
|
|
1465
|
+
pn.displayName = ue;
|
|
1466
|
+
var mn = "MenuSubContent", gn = c.forwardRef(
|
|
1457
1467
|
(e, t) => {
|
|
1458
|
-
const n =
|
|
1459
|
-
return /* @__PURE__ */
|
|
1468
|
+
const n = Wt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, s = z(D, e.__scopeMenu), i = ye(D, e.__scopeMenu), u = hn(mn, e.__scopeMenu), d = c.useRef(null), g = me(t, d);
|
|
1469
|
+
return /* @__PURE__ */ o.jsx(he.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(ke, { present: r || s.open, children: /* @__PURE__ */ o.jsx(he.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(
|
|
1460
1470
|
tt,
|
|
1461
1471
|
{
|
|
1462
1472
|
id: u.contentId,
|
|
1463
1473
|
"aria-labelledby": u.triggerId,
|
|
1464
|
-
...
|
|
1474
|
+
...a,
|
|
1465
1475
|
ref: g,
|
|
1466
1476
|
align: "start",
|
|
1467
1477
|
side: i.dir === "rtl" ? "left" : "right",
|
|
@@ -1481,95 +1491,95 @@ var pn = "MenuSubContent", mn = c.forwardRef(
|
|
|
1481
1491
|
}),
|
|
1482
1492
|
onKeyDown: y(e.onKeyDown, (p) => {
|
|
1483
1493
|
var v;
|
|
1484
|
-
const l = p.currentTarget.contains(p.target), f =
|
|
1494
|
+
const l = p.currentTarget.contains(p.target), f = ra[i.dir].includes(p.key);
|
|
1485
1495
|
l && f && (s.onOpenChange(!1), (v = u.trigger) == null || v.focus(), p.preventDefault());
|
|
1486
1496
|
})
|
|
1487
1497
|
}
|
|
1488
1498
|
) }) }) });
|
|
1489
1499
|
}
|
|
1490
1500
|
);
|
|
1491
|
-
|
|
1492
|
-
function
|
|
1501
|
+
gn.displayName = mn;
|
|
1502
|
+
function vn(e) {
|
|
1493
1503
|
return e ? "open" : "closed";
|
|
1494
1504
|
}
|
|
1495
1505
|
function Ne(e) {
|
|
1496
1506
|
return e === "indeterminate";
|
|
1497
1507
|
}
|
|
1498
|
-
function
|
|
1508
|
+
function at(e) {
|
|
1499
1509
|
return Ne(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
1500
1510
|
}
|
|
1501
|
-
function
|
|
1511
|
+
function ba(e) {
|
|
1502
1512
|
const t = document.activeElement;
|
|
1503
1513
|
for (const n of e)
|
|
1504
1514
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
1505
1515
|
}
|
|
1506
|
-
function
|
|
1516
|
+
function Ma(e, t) {
|
|
1507
1517
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
1508
1518
|
}
|
|
1509
|
-
function
|
|
1510
|
-
const
|
|
1511
|
-
let i =
|
|
1512
|
-
|
|
1519
|
+
function Ca(e, t, n) {
|
|
1520
|
+
const a = t.length > 1 && Array.from(t).every((g) => g === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
1521
|
+
let i = Ma(e, Math.max(s, 0));
|
|
1522
|
+
a.length === 1 && (i = i.filter((g) => g !== n));
|
|
1513
1523
|
const d = i.find(
|
|
1514
|
-
(g) => g.toLowerCase().startsWith(
|
|
1524
|
+
(g) => g.toLowerCase().startsWith(a.toLowerCase())
|
|
1515
1525
|
);
|
|
1516
1526
|
return d !== n ? d : void 0;
|
|
1517
1527
|
}
|
|
1518
|
-
function
|
|
1528
|
+
function Ra(e, t) {
|
|
1519
1529
|
const { x: n, y: r } = e;
|
|
1520
|
-
let
|
|
1530
|
+
let a = !1;
|
|
1521
1531
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
1522
1532
|
const u = t[s].x, d = t[s].y, g = t[i].x, p = t[i].y;
|
|
1523
|
-
d > r != p > r && n < (g - u) * (r - d) / (p - d) + u && (
|
|
1533
|
+
d > r != p > r && n < (g - u) * (r - d) / (p - d) + u && (a = !a);
|
|
1524
1534
|
}
|
|
1525
|
-
return
|
|
1535
|
+
return a;
|
|
1526
1536
|
}
|
|
1527
|
-
function
|
|
1537
|
+
function Sa(e, t) {
|
|
1528
1538
|
if (!t) return !1;
|
|
1529
1539
|
const n = { x: e.clientX, y: e.clientY };
|
|
1530
|
-
return
|
|
1540
|
+
return Ra(n, t);
|
|
1531
1541
|
}
|
|
1532
|
-
function
|
|
1542
|
+
function fe(e) {
|
|
1533
1543
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
1534
1544
|
}
|
|
1535
|
-
var
|
|
1545
|
+
var Pa = Xt, ja = Je, Ea = Jt, _a = Zt, Na = nt, Da = en, Ia = Ae, ka = nn, Aa = on, Oa = sn, Ta = un, Fa = ln, La = dn, Ka = fn, $a = pn, Ba = gn, st = "DropdownMenu", [Qa, Us] = Et(
|
|
1536
1546
|
st,
|
|
1537
|
-
[
|
|
1538
|
-
),
|
|
1547
|
+
[zt]
|
|
1548
|
+
), S = zt(), [qa, xn] = Qa(st), yn = (e) => {
|
|
1539
1549
|
const {
|
|
1540
1550
|
__scopeDropdownMenu: t,
|
|
1541
1551
|
children: n,
|
|
1542
1552
|
dir: r,
|
|
1543
|
-
open:
|
|
1553
|
+
open: a,
|
|
1544
1554
|
defaultOpen: s,
|
|
1545
1555
|
onOpenChange: i,
|
|
1546
1556
|
modal: u = !0
|
|
1547
|
-
} = e, d =
|
|
1548
|
-
prop:
|
|
1557
|
+
} = e, d = S(t), g = c.useRef(null), [p = !1, l] = It({
|
|
1558
|
+
prop: a,
|
|
1549
1559
|
defaultProp: s,
|
|
1550
1560
|
onChange: i
|
|
1551
1561
|
});
|
|
1552
|
-
return /* @__PURE__ */
|
|
1553
|
-
|
|
1562
|
+
return /* @__PURE__ */ o.jsx(
|
|
1563
|
+
qa,
|
|
1554
1564
|
{
|
|
1555
1565
|
scope: t,
|
|
1556
|
-
triggerId:
|
|
1566
|
+
triggerId: Ee(),
|
|
1557
1567
|
triggerRef: g,
|
|
1558
|
-
contentId:
|
|
1568
|
+
contentId: Ee(),
|
|
1559
1569
|
open: p,
|
|
1560
1570
|
onOpenChange: l,
|
|
1561
1571
|
onOpenToggle: c.useCallback(() => l((f) => !f), [l]),
|
|
1562
1572
|
modal: u,
|
|
1563
|
-
children: /* @__PURE__ */
|
|
1573
|
+
children: /* @__PURE__ */ o.jsx(Pa, { ...d, open: p, onOpenChange: l, dir: r, modal: u, children: n })
|
|
1564
1574
|
}
|
|
1565
1575
|
);
|
|
1566
1576
|
};
|
|
1567
|
-
|
|
1568
|
-
var
|
|
1577
|
+
yn.displayName = st;
|
|
1578
|
+
var wn = "DropdownMenuTrigger", bn = c.forwardRef(
|
|
1569
1579
|
(e, t) => {
|
|
1570
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...
|
|
1571
|
-
return /* @__PURE__ */
|
|
1572
|
-
|
|
1580
|
+
const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = e, s = xn(wn, n), i = S(n);
|
|
1581
|
+
return /* @__PURE__ */ o.jsx(ja, { asChild: !0, ...i, children: /* @__PURE__ */ o.jsx(
|
|
1582
|
+
se.button,
|
|
1573
1583
|
{
|
|
1574
1584
|
type: "button",
|
|
1575
1585
|
id: s.triggerId,
|
|
@@ -1579,7 +1589,7 @@ var yn = "DropdownMenuTrigger", wn = c.forwardRef(
|
|
|
1579
1589
|
"data-state": s.open ? "open" : "closed",
|
|
1580
1590
|
"data-disabled": r ? "" : void 0,
|
|
1581
1591
|
disabled: r,
|
|
1582
|
-
...
|
|
1592
|
+
...a,
|
|
1583
1593
|
ref: Nt(t, s.triggerRef),
|
|
1584
1594
|
onPointerDown: y(e.onPointerDown, (u) => {
|
|
1585
1595
|
!r && u.button === 0 && u.ctrlKey === !1 && (s.onOpenToggle(), s.open || u.preventDefault());
|
|
@@ -1591,30 +1601,30 @@ var yn = "DropdownMenuTrigger", wn = c.forwardRef(
|
|
|
1591
1601
|
) });
|
|
1592
1602
|
}
|
|
1593
1603
|
);
|
|
1594
|
-
|
|
1595
|
-
var
|
|
1596
|
-
const { __scopeDropdownMenu: t, ...n } = e, r =
|
|
1597
|
-
return /* @__PURE__ */
|
|
1604
|
+
bn.displayName = wn;
|
|
1605
|
+
var Ua = "DropdownMenuPortal", Mn = (e) => {
|
|
1606
|
+
const { __scopeDropdownMenu: t, ...n } = e, r = S(t);
|
|
1607
|
+
return /* @__PURE__ */ o.jsx(Ea, { ...r, ...n });
|
|
1598
1608
|
};
|
|
1599
|
-
|
|
1600
|
-
var
|
|
1609
|
+
Mn.displayName = Ua;
|
|
1610
|
+
var Cn = "DropdownMenuContent", Rn = c.forwardRef(
|
|
1601
1611
|
(e, t) => {
|
|
1602
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1603
|
-
return /* @__PURE__ */
|
|
1604
|
-
|
|
1612
|
+
const { __scopeDropdownMenu: n, ...r } = e, a = xn(Cn, n), s = S(n), i = c.useRef(!1);
|
|
1613
|
+
return /* @__PURE__ */ o.jsx(
|
|
1614
|
+
_a,
|
|
1605
1615
|
{
|
|
1606
|
-
id:
|
|
1607
|
-
"aria-labelledby":
|
|
1616
|
+
id: a.contentId,
|
|
1617
|
+
"aria-labelledby": a.triggerId,
|
|
1608
1618
|
...s,
|
|
1609
1619
|
...r,
|
|
1610
1620
|
ref: t,
|
|
1611
1621
|
onCloseAutoFocus: y(e.onCloseAutoFocus, (u) => {
|
|
1612
1622
|
var d;
|
|
1613
|
-
i.current || (d =
|
|
1623
|
+
i.current || (d = a.triggerRef.current) == null || d.focus(), i.current = !1, u.preventDefault();
|
|
1614
1624
|
}),
|
|
1615
1625
|
onInteractOutside: y(e.onInteractOutside, (u) => {
|
|
1616
1626
|
const d = u.detail.originalEvent, g = d.button === 0 && d.ctrlKey === !0, p = d.button === 2 || g;
|
|
1617
|
-
(!
|
|
1627
|
+
(!a.modal || p) && (i.current = !0);
|
|
1618
1628
|
}),
|
|
1619
1629
|
style: {
|
|
1620
1630
|
...e.style,
|
|
@@ -1628,78 +1638,78 @@ var Mn = "DropdownMenuContent", Cn = c.forwardRef(
|
|
|
1628
1638
|
);
|
|
1629
1639
|
}
|
|
1630
1640
|
);
|
|
1631
|
-
|
|
1632
|
-
var
|
|
1641
|
+
Rn.displayName = Cn;
|
|
1642
|
+
var Ga = "DropdownMenuGroup", Ha = c.forwardRef(
|
|
1633
1643
|
(e, t) => {
|
|
1634
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1635
|
-
return /* @__PURE__ */
|
|
1644
|
+
const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
|
|
1645
|
+
return /* @__PURE__ */ o.jsx(Na, { ...a, ...r, ref: t });
|
|
1636
1646
|
}
|
|
1637
1647
|
);
|
|
1638
|
-
|
|
1639
|
-
var
|
|
1648
|
+
Ha.displayName = Ga;
|
|
1649
|
+
var za = "DropdownMenuLabel", Sn = c.forwardRef(
|
|
1640
1650
|
(e, t) => {
|
|
1641
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1642
|
-
return /* @__PURE__ */
|
|
1651
|
+
const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
|
|
1652
|
+
return /* @__PURE__ */ o.jsx(Da, { ...a, ...r, ref: t });
|
|
1643
1653
|
}
|
|
1644
1654
|
);
|
|
1645
|
-
|
|
1646
|
-
var
|
|
1655
|
+
Sn.displayName = za;
|
|
1656
|
+
var Va = "DropdownMenuItem", Pn = c.forwardRef(
|
|
1647
1657
|
(e, t) => {
|
|
1648
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1649
|
-
return /* @__PURE__ */
|
|
1658
|
+
const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
|
|
1659
|
+
return /* @__PURE__ */ o.jsx(Ia, { ...a, ...r, ref: t });
|
|
1650
1660
|
}
|
|
1651
1661
|
);
|
|
1652
|
-
|
|
1653
|
-
var
|
|
1654
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1655
|
-
return /* @__PURE__ */
|
|
1662
|
+
Pn.displayName = Va;
|
|
1663
|
+
var Ya = "DropdownMenuCheckboxItem", jn = c.forwardRef((e, t) => {
|
|
1664
|
+
const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
|
|
1665
|
+
return /* @__PURE__ */ o.jsx(ka, { ...a, ...r, ref: t });
|
|
1656
1666
|
});
|
|
1657
|
-
|
|
1658
|
-
var
|
|
1659
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1660
|
-
return /* @__PURE__ */
|
|
1667
|
+
jn.displayName = Ya;
|
|
1668
|
+
var Xa = "DropdownMenuRadioGroup", Wa = c.forwardRef((e, t) => {
|
|
1669
|
+
const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
|
|
1670
|
+
return /* @__PURE__ */ o.jsx(Aa, { ...a, ...r, ref: t });
|
|
1661
1671
|
});
|
|
1662
|
-
|
|
1663
|
-
var
|
|
1664
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1665
|
-
return /* @__PURE__ */
|
|
1672
|
+
Wa.displayName = Xa;
|
|
1673
|
+
var Ja = "DropdownMenuRadioItem", En = c.forwardRef((e, t) => {
|
|
1674
|
+
const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
|
|
1675
|
+
return /* @__PURE__ */ o.jsx(Oa, { ...a, ...r, ref: t });
|
|
1666
1676
|
});
|
|
1667
|
-
|
|
1668
|
-
var
|
|
1669
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1670
|
-
return /* @__PURE__ */
|
|
1677
|
+
En.displayName = Ja;
|
|
1678
|
+
var Za = "DropdownMenuItemIndicator", _n = c.forwardRef((e, t) => {
|
|
1679
|
+
const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
|
|
1680
|
+
return /* @__PURE__ */ o.jsx(Ta, { ...a, ...r, ref: t });
|
|
1671
1681
|
});
|
|
1672
|
-
|
|
1673
|
-
var
|
|
1674
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1675
|
-
return /* @__PURE__ */
|
|
1682
|
+
_n.displayName = Za;
|
|
1683
|
+
var es = "DropdownMenuSeparator", Nn = c.forwardRef((e, t) => {
|
|
1684
|
+
const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
|
|
1685
|
+
return /* @__PURE__ */ o.jsx(Fa, { ...a, ...r, ref: t });
|
|
1676
1686
|
});
|
|
1677
|
-
|
|
1678
|
-
var
|
|
1687
|
+
Nn.displayName = es;
|
|
1688
|
+
var ts = "DropdownMenuArrow", ns = c.forwardRef(
|
|
1679
1689
|
(e, t) => {
|
|
1680
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1681
|
-
return /* @__PURE__ */
|
|
1690
|
+
const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
|
|
1691
|
+
return /* @__PURE__ */ o.jsx(La, { ...a, ...r, ref: t });
|
|
1682
1692
|
}
|
|
1683
1693
|
);
|
|
1684
|
-
|
|
1685
|
-
var
|
|
1686
|
-
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange:
|
|
1694
|
+
ns.displayName = ts;
|
|
1695
|
+
var rs = (e) => {
|
|
1696
|
+
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: a, defaultOpen: s } = e, i = S(t), [u = !1, d] = It({
|
|
1687
1697
|
prop: r,
|
|
1688
1698
|
defaultProp: s,
|
|
1689
|
-
onChange:
|
|
1699
|
+
onChange: a
|
|
1690
1700
|
});
|
|
1691
|
-
return /* @__PURE__ */
|
|
1692
|
-
},
|
|
1693
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1694
|
-
return /* @__PURE__ */
|
|
1701
|
+
return /* @__PURE__ */ o.jsx(Ka, { ...i, open: u, onOpenChange: d, children: n });
|
|
1702
|
+
}, os = "DropdownMenuSubTrigger", Dn = c.forwardRef((e, t) => {
|
|
1703
|
+
const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
|
|
1704
|
+
return /* @__PURE__ */ o.jsx($a, { ...a, ...r, ref: t });
|
|
1695
1705
|
});
|
|
1696
|
-
|
|
1697
|
-
var
|
|
1698
|
-
const { __scopeDropdownMenu: n, ...r } = e,
|
|
1699
|
-
return /* @__PURE__ */
|
|
1700
|
-
|
|
1706
|
+
Dn.displayName = os;
|
|
1707
|
+
var as = "DropdownMenuSubContent", In = c.forwardRef((e, t) => {
|
|
1708
|
+
const { __scopeDropdownMenu: n, ...r } = e, a = S(n);
|
|
1709
|
+
return /* @__PURE__ */ o.jsx(
|
|
1710
|
+
Ba,
|
|
1701
1711
|
{
|
|
1702
|
-
...
|
|
1712
|
+
...a,
|
|
1703
1713
|
...r,
|
|
1704
1714
|
ref: t,
|
|
1705
1715
|
style: {
|
|
@@ -1713,12 +1723,12 @@ var rs = "DropdownMenuSubContent", Dn = c.forwardRef((e, t) => {
|
|
|
1713
1723
|
}
|
|
1714
1724
|
);
|
|
1715
1725
|
});
|
|
1716
|
-
|
|
1717
|
-
var
|
|
1718
|
-
const
|
|
1719
|
-
|
|
1726
|
+
In.displayName = as;
|
|
1727
|
+
var ss = yn, is = bn, kn = Mn, An = Rn, On = Sn, Tn = Pn, Fn = jn, Ln = En, Kn = _n, $n = Nn, cs = rs, Bn = Dn, Qn = In;
|
|
1728
|
+
const us = ss, ls = is, ds = kn, hs = cs, qn = c.forwardRef(({ className: e, inset: t, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
|
|
1729
|
+
Bn,
|
|
1720
1730
|
{
|
|
1721
|
-
ref:
|
|
1731
|
+
ref: a,
|
|
1722
1732
|
className: M(
|
|
1723
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",
|
|
1724
1734
|
t && "pl-8",
|
|
@@ -1727,13 +1737,13 @@ const is = as, cs = os, us = In, ls = ss, Qn = c.forwardRef(({ className: e, ins
|
|
|
1727
1737
|
...r,
|
|
1728
1738
|
children: [
|
|
1729
1739
|
n,
|
|
1730
|
-
/* @__PURE__ */
|
|
1740
|
+
/* @__PURE__ */ o.jsx(Bt, { className: "ml-auto h-4 w-4" })
|
|
1731
1741
|
]
|
|
1732
1742
|
}
|
|
1733
1743
|
));
|
|
1734
|
-
|
|
1735
|
-
const Un = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
1736
|
-
|
|
1744
|
+
qn.displayName = Bn.displayName;
|
|
1745
|
+
const Un = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
1746
|
+
Qn,
|
|
1737
1747
|
{
|
|
1738
1748
|
ref: n,
|
|
1739
1749
|
className: M(
|
|
@@ -1743,8 +1753,8 @@ const Un = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
|
1743
1753
|
...t
|
|
1744
1754
|
}
|
|
1745
1755
|
));
|
|
1746
|
-
Un.displayName =
|
|
1747
|
-
const Gn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */
|
|
1756
|
+
Un.displayName = Qn.displayName;
|
|
1757
|
+
const Gn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ o.jsx(kn, { children: /* @__PURE__ */ o.jsx(
|
|
1748
1758
|
An,
|
|
1749
1759
|
{
|
|
1750
1760
|
ref: r,
|
|
@@ -1758,8 +1768,8 @@ const Gn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
|
|
|
1758
1768
|
}
|
|
1759
1769
|
) }));
|
|
1760
1770
|
Gn.displayName = An.displayName;
|
|
1761
|
-
const
|
|
1762
|
-
|
|
1771
|
+
const Hn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ o.jsx(
|
|
1772
|
+
Tn,
|
|
1763
1773
|
{
|
|
1764
1774
|
ref: r,
|
|
1765
1775
|
className: M(
|
|
@@ -1770,11 +1780,11 @@ const qn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
1770
1780
|
...n
|
|
1771
1781
|
}
|
|
1772
1782
|
));
|
|
1773
|
-
|
|
1774
|
-
const
|
|
1775
|
-
|
|
1783
|
+
Hn.displayName = Tn.displayName;
|
|
1784
|
+
const fs = c.forwardRef(({ className: e, children: t, checked: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
|
|
1785
|
+
Fn,
|
|
1776
1786
|
{
|
|
1777
|
-
ref:
|
|
1787
|
+
ref: a,
|
|
1778
1788
|
className: M(
|
|
1779
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",
|
|
1780
1790
|
e
|
|
@@ -1782,14 +1792,14 @@ const ds = c.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
|
|
|
1782
1792
|
checked: n,
|
|
1783
1793
|
...r,
|
|
1784
1794
|
children: [
|
|
1785
|
-
/* @__PURE__ */
|
|
1795
|
+
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Kn, { children: /* @__PURE__ */ o.jsx(kr, { className: "h-4 w-4" }) }) }),
|
|
1786
1796
|
t
|
|
1787
1797
|
]
|
|
1788
1798
|
}
|
|
1789
1799
|
));
|
|
1790
|
-
|
|
1791
|
-
const
|
|
1792
|
-
|
|
1800
|
+
fs.displayName = Fn.displayName;
|
|
1801
|
+
const ps = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ o.jsxs(
|
|
1802
|
+
Ln,
|
|
1793
1803
|
{
|
|
1794
1804
|
ref: r,
|
|
1795
1805
|
className: M(
|
|
@@ -1798,13 +1808,13 @@ const hs = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
1798
1808
|
),
|
|
1799
1809
|
...n,
|
|
1800
1810
|
children: [
|
|
1801
|
-
/* @__PURE__ */
|
|
1811
|
+
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Kn, { children: /* @__PURE__ */ o.jsx(fo, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1802
1812
|
t
|
|
1803
1813
|
]
|
|
1804
1814
|
}
|
|
1805
1815
|
));
|
|
1806
|
-
|
|
1807
|
-
const
|
|
1816
|
+
ps.displayName = Ln.displayName;
|
|
1817
|
+
const zn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ o.jsx(
|
|
1808
1818
|
On,
|
|
1809
1819
|
{
|
|
1810
1820
|
ref: r,
|
|
@@ -1816,20 +1826,55 @@ const Hn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
1816
1826
|
...n
|
|
1817
1827
|
}
|
|
1818
1828
|
));
|
|
1819
|
-
|
|
1820
|
-
const
|
|
1821
|
-
|
|
1829
|
+
zn.displayName = On.displayName;
|
|
1830
|
+
const Vn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
1831
|
+
$n,
|
|
1822
1832
|
{
|
|
1823
1833
|
ref: n,
|
|
1824
1834
|
className: M("-mx-1 my-1 h-px bg-muted", e),
|
|
1825
1835
|
...t
|
|
1826
1836
|
}
|
|
1827
1837
|
));
|
|
1828
|
-
|
|
1829
|
-
const
|
|
1830
|
-
const
|
|
1831
|
-
|
|
1832
|
-
|
|
1838
|
+
Vn.displayName = $n.displayName;
|
|
1839
|
+
const ms = () => {
|
|
1840
|
+
const e = Ie(), [t, n] = de(!0), r = Ot(() => {
|
|
1841
|
+
n(!1);
|
|
1842
|
+
}, []);
|
|
1843
|
+
W(() => {
|
|
1844
|
+
if (t)
|
|
1845
|
+
return;
|
|
1846
|
+
function s(i) {
|
|
1847
|
+
i.key === "k" && (i.metaKey || i.ctrlKey) && (i.preventDefault(), n(!0));
|
|
1848
|
+
}
|
|
1849
|
+
return window.addEventListener("keydown", s), () => {
|
|
1850
|
+
window.removeEventListener("keydown", s);
|
|
1851
|
+
};
|
|
1852
|
+
}, [t, n]);
|
|
1853
|
+
const a = e.plugins.find(zo);
|
|
1854
|
+
return a ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1855
|
+
/* @__PURE__ */ o.jsxs(
|
|
1856
|
+
"button",
|
|
1857
|
+
{
|
|
1858
|
+
type: "button",
|
|
1859
|
+
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",
|
|
1860
|
+
children: [
|
|
1861
|
+
/* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
1862
|
+
/* @__PURE__ */ o.jsx(go, { size: 14 }),
|
|
1863
|
+
"Search"
|
|
1864
|
+
] }),
|
|
1865
|
+
/* @__PURE__ */ o.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" })
|
|
1866
|
+
]
|
|
1867
|
+
}
|
|
1868
|
+
),
|
|
1869
|
+
t && a.onRequestSearch({
|
|
1870
|
+
isOpen: t,
|
|
1871
|
+
onClose: r
|
|
1872
|
+
})
|
|
1873
|
+
] }) : null;
|
|
1874
|
+
}, gs = () => {
|
|
1875
|
+
const { topNavigation: e } = Ie();
|
|
1876
|
+
return e.length <= 1 ? null : /* @__PURE__ */ o.jsx("nav", { className: "border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ o.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.map((t) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
|
|
1877
|
+
Se,
|
|
1833
1878
|
{
|
|
1834
1879
|
className: ({ isActive: n }) => Ar(
|
|
1835
1880
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
@@ -1839,19 +1884,19 @@ const fs = () => {
|
|
|
1839
1884
|
children: t.label
|
|
1840
1885
|
}
|
|
1841
1886
|
) }, t.label)) }) });
|
|
1842
|
-
},
|
|
1843
|
-
/* @__PURE__ */
|
|
1844
|
-
/* @__PURE__ */
|
|
1887
|
+
}, Yn = ({ item: e }) => e.children ? /* @__PURE__ */ o.jsxs(hs, { children: [
|
|
1888
|
+
/* @__PURE__ */ o.jsx(qn, { children: e.label }),
|
|
1889
|
+
/* @__PURE__ */ o.jsx(ds, { children: /* @__PURE__ */ o.jsx(Un, { children: e.children.map((t, n) => (
|
|
1845
1890
|
// eslint-disable-next-line react/no-array-index-key
|
|
1846
|
-
/* @__PURE__ */
|
|
1891
|
+
/* @__PURE__ */ o.jsx(Yn, { item: t }, n)
|
|
1847
1892
|
)) }) })
|
|
1848
|
-
] }, e.label) : /* @__PURE__ */
|
|
1849
|
-
const [t, n] = Or(), { isAuthenticated: r, profile:
|
|
1850
|
-
return /* @__PURE__ */
|
|
1851
|
-
/* @__PURE__ */
|
|
1852
|
-
/* @__PURE__ */
|
|
1853
|
-
(d == null ? void 0 : d.logo) && /* @__PURE__ */
|
|
1854
|
-
/* @__PURE__ */
|
|
1893
|
+
] }, e.label) : /* @__PURE__ */ o.jsx(Pe, { to: e.path ?? "", children: /* @__PURE__ */ o.jsx(Hn, { children: e.label }, e.label) }), Xn = Tt(function() {
|
|
1894
|
+
const [t, n] = Or(), { isAuthenticated: r, profile: a, isAuthEnabled: s } = Ir(), { pathname: i } = De(), u = Ie(), { page: d, plugins: g } = u, p = g.filter((f) => Go(f)).flatMap((f) => f.getProfileMenuItems(u)).map((f) => /* @__PURE__ */ o.jsx(Yn, { item: f }, f.label)), l = t ? mo : vo;
|
|
1895
|
+
return /* @__PURE__ */ o.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ o.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
1896
|
+
/* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
|
|
1897
|
+
/* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(Pe, { to: "/", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
1898
|
+
(d == null ? void 0 : d.logo) && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1899
|
+
/* @__PURE__ */ o.jsx(
|
|
1855
1900
|
"img",
|
|
1856
1901
|
{
|
|
1857
1902
|
src: d.logo.src.light,
|
|
@@ -1861,7 +1906,7 @@ const fs = () => {
|
|
|
1861
1906
|
loading: "lazy"
|
|
1862
1907
|
}
|
|
1863
1908
|
),
|
|
1864
|
-
/* @__PURE__ */
|
|
1909
|
+
/* @__PURE__ */ o.jsx(
|
|
1865
1910
|
"img",
|
|
1866
1911
|
{
|
|
1867
1912
|
src: d.logo.src.dark,
|
|
@@ -1872,13 +1917,13 @@ const fs = () => {
|
|
|
1872
1917
|
}
|
|
1873
1918
|
)
|
|
1874
1919
|
] }),
|
|
1875
|
-
/* @__PURE__ */
|
|
1920
|
+
/* @__PURE__ */ o.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: d == null ? void 0 : d.pageTitle })
|
|
1876
1921
|
] }) }) }),
|
|
1877
|
-
/* @__PURE__ */
|
|
1878
|
-
/* @__PURE__ */
|
|
1879
|
-
/* @__PURE__ */
|
|
1880
|
-
s && !r ? /* @__PURE__ */
|
|
1881
|
-
|
|
1922
|
+
/* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
1923
|
+
/* @__PURE__ */ o.jsx("div", { className: "w-full max-w-prose", children: /* @__PURE__ */ o.jsx(ms, {}) }),
|
|
1924
|
+
/* @__PURE__ */ o.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
|
|
1925
|
+
s && !r ? /* @__PURE__ */ o.jsx(Qe, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ o.jsx(
|
|
1926
|
+
Pe,
|
|
1882
1927
|
{
|
|
1883
1928
|
to: {
|
|
1884
1929
|
pathname: "/signin",
|
|
@@ -1886,103 +1931,103 @@ const fs = () => {
|
|
|
1886
1931
|
},
|
|
1887
1932
|
children: "Login"
|
|
1888
1933
|
}
|
|
1889
|
-
) }) : p.length > 0 && /* @__PURE__ */
|
|
1890
|
-
/* @__PURE__ */
|
|
1891
|
-
/* @__PURE__ */
|
|
1892
|
-
/* @__PURE__ */
|
|
1893
|
-
/* @__PURE__ */
|
|
1934
|
+
) }) : p.length > 0 && /* @__PURE__ */ o.jsxs(us, { children: [
|
|
1935
|
+
/* @__PURE__ */ o.jsx(ls, { asChild: !0, children: /* @__PURE__ */ o.jsx(Qe, { variant: "ghost", children: a != null && a.email ? `${a.email}` : "My Account" }) }),
|
|
1936
|
+
/* @__PURE__ */ o.jsxs(Gn, { className: "w-56", children: [
|
|
1937
|
+
/* @__PURE__ */ o.jsx(zn, { children: "My Account" }),
|
|
1938
|
+
/* @__PURE__ */ o.jsx(Vn, {}),
|
|
1894
1939
|
p
|
|
1895
1940
|
] })
|
|
1896
1941
|
] }),
|
|
1897
|
-
/* @__PURE__ */
|
|
1942
|
+
/* @__PURE__ */ o.jsx(
|
|
1898
1943
|
"button",
|
|
1899
1944
|
{
|
|
1900
1945
|
type: "button",
|
|
1901
1946
|
"aria-label": t ? "Switch to light mode" : "Switch to dark mode",
|
|
1902
1947
|
className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
|
|
1903
1948
|
onClick: n,
|
|
1904
|
-
children: /* @__PURE__ */
|
|
1949
|
+
children: /* @__PURE__ */ o.jsx(l, { size: 18 })
|
|
1905
1950
|
}
|
|
1906
1951
|
)
|
|
1907
1952
|
] })
|
|
1908
1953
|
] })
|
|
1909
1954
|
] }),
|
|
1910
|
-
/* @__PURE__ */
|
|
1955
|
+
/* @__PURE__ */ o.jsx(gs, {})
|
|
1911
1956
|
] }) });
|
|
1912
|
-
}),
|
|
1913
|
-
Header:
|
|
1914
|
-
},
|
|
1915
|
-
const [t, n] =
|
|
1916
|
-
|
|
1957
|
+
}), Wn = {
|
|
1958
|
+
Header: Xn
|
|
1959
|
+
}, vs = At(Wn), xs = vs.Provider, ys = (e) => {
|
|
1960
|
+
const [t, n] = de(!1);
|
|
1961
|
+
W(() => {
|
|
1917
1962
|
const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), u = s === "dark" || !s && i.matches;
|
|
1918
1963
|
n(u);
|
|
1919
1964
|
}, [t]);
|
|
1920
|
-
const r =
|
|
1965
|
+
const r = Ot(() => {
|
|
1921
1966
|
const s = !t;
|
|
1922
1967
|
document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
|
|
1923
|
-
}, [t]),
|
|
1924
|
-
return /* @__PURE__ */
|
|
1925
|
-
},
|
|
1968
|
+
}, [t]), a = [t, r];
|
|
1969
|
+
return /* @__PURE__ */ o.jsx(Tr.Provider, { value: a, ...e });
|
|
1970
|
+
}, ws = ({
|
|
1926
1971
|
children: e,
|
|
1927
1972
|
context: t
|
|
1928
1973
|
}) => {
|
|
1929
|
-
const n =
|
|
1930
|
-
return
|
|
1974
|
+
const n = pr();
|
|
1975
|
+
return ao({
|
|
1931
1976
|
queryFn: async () => (await t.initialize({ navigate: n }), !0),
|
|
1932
1977
|
queryKey: ["zudoku-initialize"]
|
|
1933
|
-
}), /* @__PURE__ */
|
|
1934
|
-
},
|
|
1978
|
+
}), /* @__PURE__ */ o.jsx(so.Provider, { value: t, children: e });
|
|
1979
|
+
}, bs = ({
|
|
1935
1980
|
children: e,
|
|
1936
1981
|
...t
|
|
1937
1982
|
}) => {
|
|
1938
1983
|
var l, f;
|
|
1939
|
-
const n =
|
|
1940
|
-
() => ({ ...
|
|
1984
|
+
const n = Ke(
|
|
1985
|
+
() => ({ ...Wn, ...t.overrides }),
|
|
1941
1986
|
[t.overrides]
|
|
1942
|
-
), r =
|
|
1987
|
+
), r = Ke(() => {
|
|
1943
1988
|
var x;
|
|
1944
1989
|
return {
|
|
1945
|
-
...(t.plugins ?? []).filter(
|
|
1990
|
+
...(t.plugins ?? []).filter(Xo).flatMap(
|
|
1946
1991
|
(b) => b.getMdxComponents ? [b.getMdxComponents()] : []
|
|
1947
1992
|
).reduce((b, I) => ({ ...b, ...I }), {}),
|
|
1948
|
-
...
|
|
1993
|
+
...Fr,
|
|
1949
1994
|
...(x = t.mdx) == null ? void 0 : x.components
|
|
1950
1995
|
};
|
|
1951
|
-
}, [(l = t.mdx) == null ? void 0 : l.components, t.plugins]), { stagger:
|
|
1952
|
-
() => s ? { stagger: !0 } : { stagger:
|
|
1953
|
-
[
|
|
1954
|
-
), d =
|
|
1955
|
-
|
|
1996
|
+
}, [(l = t.mdx) == null ? void 0 : l.components, t.plugins]), { stagger: a } = Ur(qe), [s, i] = de(!1), u = Ke(
|
|
1997
|
+
() => s ? { stagger: !0 } : { stagger: a },
|
|
1998
|
+
[a, s]
|
|
1999
|
+
), d = mr();
|
|
2000
|
+
W(() => {
|
|
1956
2001
|
s || i(!0);
|
|
1957
2002
|
}, [s, d.location]);
|
|
1958
|
-
const [g] =
|
|
2003
|
+
const [g] = de(() => new Jo(t)), p = (f = t.plugins) == null ? void 0 : f.filter(Yo).map((v, x) => {
|
|
1959
2004
|
var b;
|
|
1960
|
-
return /* @__PURE__ */
|
|
2005
|
+
return /* @__PURE__ */ o.jsx(Gr, { children: (b = v.getHead) == null ? void 0 : b.call(v) }, x);
|
|
1961
2006
|
});
|
|
1962
|
-
return /* @__PURE__ */
|
|
1963
|
-
/* @__PURE__ */
|
|
1964
|
-
/* @__PURE__ */
|
|
2007
|
+
return /* @__PURE__ */ o.jsxs(io, { client: Gt, children: [
|
|
2008
|
+
/* @__PURE__ */ o.jsx(Ge, { children: p }),
|
|
2009
|
+
/* @__PURE__ */ o.jsx(qe.Provider, { value: u, children: /* @__PURE__ */ o.jsx(ws, { context: g, children: /* @__PURE__ */ o.jsx(ir, { components: r, children: /* @__PURE__ */ o.jsx(ys, { children: /* @__PURE__ */ o.jsx(xs, { value: n, children: /* @__PURE__ */ o.jsx(gr, { slotlets: t.slotlets, children: /* @__PURE__ */ o.jsx(Lr, { children: e ?? /* @__PURE__ */ o.jsx(Pt, {}) }) }) }) }) }) }) })
|
|
1965
2010
|
] });
|
|
1966
|
-
},
|
|
1967
|
-
|
|
1968
|
-
const
|
|
2011
|
+
}, Ms = Tt(bs), Jn = (e) => /* @__PURE__ */ o.jsx(qo, { FallbackComponent: Zo, children: /* @__PURE__ */ o.jsx(Ms, { ...e }) });
|
|
2012
|
+
Jn.displayName = "DevPortal";
|
|
2013
|
+
const Cs = ({
|
|
1969
2014
|
category: e,
|
|
1970
2015
|
level: t
|
|
1971
2016
|
}) => {
|
|
1972
2017
|
var p;
|
|
1973
|
-
const n =
|
|
1974
|
-
|
|
2018
|
+
const n = Kt(), r = cr(e), a = e.collapsible ?? !0, s = e.collapsed ?? !0, i = !!(!a || !s || r), [u, d] = de(i);
|
|
2019
|
+
W(() => {
|
|
1975
2020
|
r && d(!0);
|
|
1976
2021
|
}, [r]);
|
|
1977
|
-
const g =
|
|
2022
|
+
const g = a && /* @__PURE__ */ o.jsx(
|
|
1978
2023
|
"button",
|
|
1979
2024
|
{
|
|
1980
2025
|
type: "button",
|
|
1981
2026
|
onClick: (l) => {
|
|
1982
2027
|
l.preventDefault(), d((f) => !f);
|
|
1983
2028
|
},
|
|
1984
|
-
children: /* @__PURE__ */
|
|
1985
|
-
|
|
2029
|
+
children: /* @__PURE__ */ o.jsx(
|
|
2030
|
+
Bt,
|
|
1986
2031
|
{
|
|
1987
2032
|
size: 16,
|
|
1988
2033
|
className: "transition shrink-0 group-data-[state=open]:rotate-90"
|
|
@@ -1990,7 +2035,7 @@ const ws = ({
|
|
|
1990
2035
|
)
|
|
1991
2036
|
}
|
|
1992
2037
|
);
|
|
1993
|
-
return /* @__PURE__ */
|
|
2038
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1994
2039
|
Yr,
|
|
1995
2040
|
{
|
|
1996
2041
|
className: M("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
|
|
@@ -1998,17 +2043,17 @@ const ws = ({
|
|
|
1998
2043
|
open: u,
|
|
1999
2044
|
onOpenChange: () => d(!0),
|
|
2000
2045
|
children: [
|
|
2001
|
-
/* @__PURE__ */
|
|
2046
|
+
/* @__PURE__ */ o.jsx(
|
|
2002
2047
|
Xr,
|
|
2003
2048
|
{
|
|
2004
2049
|
className: M(
|
|
2005
2050
|
"group text-start",
|
|
2006
|
-
|
|
2007
|
-
|
|
2051
|
+
le({ isActive: !1, isTopLevel: t === 0 }),
|
|
2052
|
+
a ? "cursor-pointer" : "cursor-default hover:bg-transparent"
|
|
2008
2053
|
),
|
|
2009
2054
|
asChild: !0,
|
|
2010
|
-
disabled: !
|
|
2011
|
-
children: ((p = e.link) == null ? void 0 : p.type) === "doc" ? /* @__PURE__ */
|
|
2055
|
+
disabled: !a,
|
|
2056
|
+
children: ((p = e.link) == null ? void 0 : p.type) === "doc" ? /* @__PURE__ */ o.jsx(Se, { to: Xe(n == null ? void 0 : n.id, e.link.id), children: ({ isActive: l }) => /* @__PURE__ */ o.jsxs(
|
|
2012
2057
|
"div",
|
|
2013
2058
|
{
|
|
2014
2059
|
className: M(
|
|
@@ -2016,18 +2061,18 @@ const ws = ({
|
|
|
2016
2061
|
l ? "text-primary font-medium" : "text-foreground/80"
|
|
2017
2062
|
),
|
|
2018
2063
|
children: [
|
|
2019
|
-
/* @__PURE__ */
|
|
2064
|
+
/* @__PURE__ */ o.jsx("div", { className: "truncate", children: e.label }),
|
|
2020
2065
|
g
|
|
2021
2066
|
]
|
|
2022
2067
|
}
|
|
2023
|
-
) }) : /* @__PURE__ */
|
|
2024
|
-
/* @__PURE__ */
|
|
2068
|
+
) }) : /* @__PURE__ */ o.jsxs("div", { className: "flex items-center justify-between w-full", children: [
|
|
2069
|
+
/* @__PURE__ */ o.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
|
|
2025
2070
|
g
|
|
2026
2071
|
] })
|
|
2027
2072
|
}
|
|
2028
2073
|
),
|
|
2029
|
-
/* @__PURE__ */
|
|
2030
|
-
|
|
2074
|
+
/* @__PURE__ */ o.jsx(Wr, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((l) => /* @__PURE__ */ o.jsx(
|
|
2075
|
+
er,
|
|
2031
2076
|
{
|
|
2032
2077
|
level: t + 1,
|
|
2033
2078
|
item: l
|
|
@@ -2037,7 +2082,7 @@ const ws = ({
|
|
|
2037
2082
|
]
|
|
2038
2083
|
}
|
|
2039
2084
|
);
|
|
2040
|
-
},
|
|
2085
|
+
}, le = Kr(
|
|
2041
2086
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
2042
2087
|
{
|
|
2043
2088
|
variants: {
|
|
@@ -2054,100 +2099,100 @@ const ws = ({
|
|
|
2054
2099
|
}
|
|
2055
2100
|
}
|
|
2056
2101
|
}
|
|
2057
|
-
),
|
|
2102
|
+
), Zn = "data-anchor", er = ({
|
|
2058
2103
|
item: e,
|
|
2059
2104
|
level: t = 0
|
|
2060
2105
|
}) => {
|
|
2061
|
-
const n =
|
|
2106
|
+
const n = Kt(), { activeAnchor: r } = ze();
|
|
2062
2107
|
switch (e.type) {
|
|
2063
2108
|
case "category":
|
|
2064
|
-
return /* @__PURE__ */
|
|
2109
|
+
return /* @__PURE__ */ o.jsx(Cs, { category: e, level: t });
|
|
2065
2110
|
case "doc":
|
|
2066
|
-
return /* @__PURE__ */
|
|
2067
|
-
|
|
2111
|
+
return /* @__PURE__ */ o.jsx(
|
|
2112
|
+
Se,
|
|
2068
2113
|
{
|
|
2069
|
-
className: ({ isActive:
|
|
2114
|
+
className: ({ isActive: a }) => le({ isActive: a, isTopLevel: t === 0 }),
|
|
2070
2115
|
to: Xe(n == null ? void 0 : n.id, e.id),
|
|
2071
|
-
children: e.badge ? /* @__PURE__ */
|
|
2072
|
-
/* @__PURE__ */
|
|
2073
|
-
/* @__PURE__ */
|
|
2116
|
+
children: e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2117
|
+
/* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
2118
|
+
/* @__PURE__ */ o.jsx($e, { ...e.badge })
|
|
2074
2119
|
] }) : e.label
|
|
2075
2120
|
}
|
|
2076
2121
|
);
|
|
2077
2122
|
case "link":
|
|
2078
|
-
return e.href.startsWith("#") ? /* @__PURE__ */
|
|
2079
|
-
|
|
2123
|
+
return e.href.startsWith("#") ? /* @__PURE__ */ o.jsx(
|
|
2124
|
+
ur,
|
|
2080
2125
|
{
|
|
2081
2126
|
to: e.href,
|
|
2082
|
-
[
|
|
2127
|
+
[Zn]: e.href.slice(1),
|
|
2083
2128
|
className: M(
|
|
2084
2129
|
"flex gap-2.5 justify-between",
|
|
2085
2130
|
t === 0 && "-mx-[--padding-nav-item]",
|
|
2086
|
-
|
|
2131
|
+
le({
|
|
2087
2132
|
isActive: e.href.slice(1) === r
|
|
2088
2133
|
})
|
|
2089
2134
|
),
|
|
2090
|
-
children: e.badge ? /* @__PURE__ */
|
|
2091
|
-
/* @__PURE__ */
|
|
2092
|
-
/* @__PURE__ */
|
|
2093
|
-
] }) : /* @__PURE__ */
|
|
2135
|
+
children: e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2136
|
+
/* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
2137
|
+
/* @__PURE__ */ o.jsx($e, { ...e.badge })
|
|
2138
|
+
] }) : /* @__PURE__ */ o.jsx("span", { className: "break-all", children: e.label })
|
|
2094
2139
|
}
|
|
2095
|
-
) : e.href.startsWith("http") ? /* @__PURE__ */
|
|
2140
|
+
) : e.href.startsWith("http") ? /* @__PURE__ */ o.jsxs(
|
|
2096
2141
|
"a",
|
|
2097
2142
|
{
|
|
2098
2143
|
className: M(
|
|
2099
|
-
|
|
2144
|
+
le({ isTopLevel: t === 0 }),
|
|
2100
2145
|
"block"
|
|
2101
2146
|
),
|
|
2102
2147
|
href: e.href,
|
|
2103
2148
|
target: "_blank",
|
|
2104
2149
|
rel: "noopener noreferrer",
|
|
2105
2150
|
children: [
|
|
2106
|
-
/* @__PURE__ */
|
|
2107
|
-
/* @__PURE__ */
|
|
2151
|
+
/* @__PURE__ */ o.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
2152
|
+
/* @__PURE__ */ o.jsxs("span", { className: "whitespace-nowrap", children: [
|
|
2108
2153
|
" ",
|
|
2109
|
-
/* @__PURE__ */
|
|
2154
|
+
/* @__PURE__ */ o.jsx(po, { className: "inline ml-1", size: 12 })
|
|
2110
2155
|
] })
|
|
2111
2156
|
]
|
|
2112
2157
|
}
|
|
2113
|
-
) : /* @__PURE__ */
|
|
2114
|
-
|
|
2158
|
+
) : /* @__PURE__ */ o.jsx(
|
|
2159
|
+
Se,
|
|
2115
2160
|
{
|
|
2116
|
-
className: M("flex gap-2.5 justify-between",
|
|
2161
|
+
className: M("flex gap-2.5 justify-between", le()),
|
|
2117
2162
|
to: e.href,
|
|
2118
|
-
children: e.badge ? /* @__PURE__ */
|
|
2119
|
-
/* @__PURE__ */
|
|
2120
|
-
/* @__PURE__ */
|
|
2121
|
-
] }) : /* @__PURE__ */
|
|
2163
|
+
children: e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2164
|
+
/* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
2165
|
+
/* @__PURE__ */ o.jsx($e, { ...e.badge })
|
|
2166
|
+
] }) : /* @__PURE__ */ o.jsx("span", { className: "break-all", children: e.label })
|
|
2122
2167
|
}
|
|
2123
2168
|
);
|
|
2124
2169
|
}
|
|
2125
|
-
},
|
|
2170
|
+
}, Rs = (e, t = { block: "center" }) => {
|
|
2126
2171
|
if (!e) return;
|
|
2127
2172
|
const n = e.getBoundingClientRect();
|
|
2128
2173
|
n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
2129
|
-
},
|
|
2130
|
-
const e = De(), { setActiveAnchor: t } =
|
|
2131
|
-
|
|
2174
|
+
}, Ss = () => {
|
|
2175
|
+
const e = De(), { setActiveAnchor: t } = ze();
|
|
2176
|
+
W(() => {
|
|
2132
2177
|
if (!e.hash) return;
|
|
2133
2178
|
const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
|
|
2134
|
-
const
|
|
2135
|
-
return
|
|
2179
|
+
const a = document.getElementById(n), s = document.querySelector(`[${Zn}="${n}"]`);
|
|
2180
|
+
return a ? (a.scrollIntoView(), Rs(s), requestIdleCallback(() => t(n)), !0) : !1;
|
|
2136
2181
|
};
|
|
2137
2182
|
if (!r()) {
|
|
2138
|
-
const
|
|
2183
|
+
const a = new MutationObserver((s, i) => {
|
|
2139
2184
|
r() && i.disconnect();
|
|
2140
2185
|
});
|
|
2141
|
-
return
|
|
2186
|
+
return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
|
|
2142
2187
|
}
|
|
2143
2188
|
}, [e.hash, t]);
|
|
2144
|
-
},
|
|
2145
|
-
const e = De(), t =
|
|
2146
|
-
|
|
2189
|
+
}, Ps = () => {
|
|
2190
|
+
const e = De(), t = Ve(e.pathname);
|
|
2191
|
+
W(() => {
|
|
2147
2192
|
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
2148
2193
|
}, [e.pathname]);
|
|
2149
|
-
},
|
|
2150
|
-
return /* @__PURE__ */
|
|
2194
|
+
}, js = Hr(function({ children: t, className: n, pushMainContent: r }, a) {
|
|
2195
|
+
return /* @__PURE__ */ o.jsx(
|
|
2151
2196
|
"nav",
|
|
2152
2197
|
{
|
|
2153
2198
|
"data-navigation": String(r),
|
|
@@ -2155,44 +2200,44 @@ const ws = ({
|
|
|
2155
2200
|
"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",
|
|
2156
2201
|
n
|
|
2157
2202
|
),
|
|
2158
|
-
ref:
|
|
2203
|
+
ref: a,
|
|
2159
2204
|
children: t
|
|
2160
2205
|
}
|
|
2161
2206
|
);
|
|
2162
|
-
}),
|
|
2163
|
-
const e =
|
|
2164
|
-
return /* @__PURE__ */
|
|
2165
|
-
|
|
2207
|
+
}), Es = () => {
|
|
2208
|
+
const e = Ve(null), t = co();
|
|
2209
|
+
return /* @__PURE__ */ o.jsxs(
|
|
2210
|
+
js,
|
|
2166
2211
|
{
|
|
2167
2212
|
ref: e,
|
|
2168
2213
|
pushMainContent: t.data.items.length > 0,
|
|
2169
2214
|
children: [
|
|
2170
|
-
/* @__PURE__ */
|
|
2171
|
-
t.data.items.map((n) => /* @__PURE__ */
|
|
2172
|
-
/* @__PURE__ */
|
|
2215
|
+
/* @__PURE__ */ o.jsx(je, { name: "zudoku-before-navigation" }),
|
|
2216
|
+
t.data.items.map((n) => /* @__PURE__ */ o.jsx(er, { item: n }, n.label)),
|
|
2217
|
+
/* @__PURE__ */ o.jsx(je, { name: "zudoku-after-navigation" })
|
|
2173
2218
|
]
|
|
2174
2219
|
}
|
|
2175
2220
|
);
|
|
2176
|
-
},
|
|
2177
|
-
const t = De(), { setActiveAnchor: n } =
|
|
2178
|
-
|
|
2179
|
-
const
|
|
2180
|
-
return
|
|
2181
|
-
t.pathname !==
|
|
2182
|
-
}, [t.pathname, n]), /* @__PURE__ */
|
|
2221
|
+
}, _s = ({ children: e }) => {
|
|
2222
|
+
const t = De(), { setActiveAnchor: n } = ze(), { meta: r } = Ie();
|
|
2223
|
+
Ss(), Ps();
|
|
2224
|
+
const a = Ve(t.pathname);
|
|
2225
|
+
return W(() => {
|
|
2226
|
+
t.pathname !== a.current && n(""), a.current = t.pathname;
|
|
2227
|
+
}, [t.pathname, n]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2183
2228
|
!1,
|
|
2184
|
-
/* @__PURE__ */
|
|
2185
|
-
(r == null ? void 0 : r.description) && /* @__PURE__ */
|
|
2186
|
-
(r == null ? void 0 : r.favicon) && /* @__PURE__ */
|
|
2229
|
+
/* @__PURE__ */ o.jsxs(Ge, { titleTemplate: r == null ? void 0 : r.title, children: [
|
|
2230
|
+
(r == null ? void 0 : r.description) && /* @__PURE__ */ o.jsx("meta", { name: "description", content: r.description }),
|
|
2231
|
+
(r == null ? void 0 : r.favicon) && /* @__PURE__ */ o.jsx("link", { rel: "icon", href: r.favicon })
|
|
2187
2232
|
] }),
|
|
2188
|
-
/* @__PURE__ */
|
|
2189
|
-
/* @__PURE__ */
|
|
2233
|
+
/* @__PURE__ */ o.jsx(Xn, {}),
|
|
2234
|
+
/* @__PURE__ */ o.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ o.jsxs(
|
|
2190
2235
|
zr,
|
|
2191
2236
|
{
|
|
2192
|
-
fallback: /* @__PURE__ */
|
|
2237
|
+
fallback: /* @__PURE__ */ o.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ o.jsx(ho, {}) }),
|
|
2193
2238
|
children: [
|
|
2194
|
-
/* @__PURE__ */
|
|
2195
|
-
/* @__PURE__ */
|
|
2239
|
+
/* @__PURE__ */ o.jsx(Es, {}),
|
|
2240
|
+
/* @__PURE__ */ o.jsxs(
|
|
2196
2241
|
"main",
|
|
2197
2242
|
{
|
|
2198
2243
|
className: M(
|
|
@@ -2202,9 +2247,9 @@ const ws = ({
|
|
|
2202
2247
|
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
|
|
2203
2248
|
),
|
|
2204
2249
|
children: [
|
|
2205
|
-
/* @__PURE__ */
|
|
2206
|
-
e ?? /* @__PURE__ */
|
|
2207
|
-
/* @__PURE__ */
|
|
2250
|
+
/* @__PURE__ */ o.jsx(je, { name: "zudoku-before-content" }),
|
|
2251
|
+
e ?? /* @__PURE__ */ o.jsx(Pt, {}),
|
|
2252
|
+
/* @__PURE__ */ o.jsx(je, { name: "zudoku-after-content" })
|
|
2208
2253
|
]
|
|
2209
2254
|
}
|
|
2210
2255
|
)
|
|
@@ -2212,18 +2257,18 @@ const ws = ({
|
|
|
2212
2257
|
}
|
|
2213
2258
|
) })
|
|
2214
2259
|
] });
|
|
2215
|
-
},
|
|
2260
|
+
}, Gs = lr, Hs = $r, zs = Jn, Vs = _s, Ys = Pe, Xs = vr, Ws = xo, Js = Oo, Zs = To, ei = Qe, ti = Ge;
|
|
2216
2261
|
export {
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2262
|
+
Js as Bootstrap,
|
|
2263
|
+
Zs as BootstrapStatic,
|
|
2264
|
+
ei as Button,
|
|
2265
|
+
Hs as Callout,
|
|
2266
|
+
zs as DevPortal,
|
|
2267
|
+
ti as Head,
|
|
2268
|
+
Vs as Layout,
|
|
2269
|
+
Ys as Link,
|
|
2270
|
+
Xs as RouterError,
|
|
2271
|
+
Ws as ServerError,
|
|
2272
|
+
Gs as useMDXComponents
|
|
2228
2273
|
};
|
|
2229
2274
|
//# sourceMappingURL=zudoku.components.js.map
|