@factorialco/f0-react 14.32.0 → 15.0.0
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/{ArchiveThumbnail-DqVIQZoW.js → ArchiveThumbnail-CMOY3hug.js} +5 -5
- package/dist/{ArchiveViewer-b2Wp0JUG.js → ArchiveViewer-Bc5iN2gm.js} +15 -15
- package/dist/{ChatPostComposerDialog-Zsz4Ni_S.js → ChatPostComposerDialog-NOdBRHQW.js} +3 -3
- package/dist/{CoachmarkProvider-C78Xiefk.js → CoachmarkProvider-CQE9J_S1.js} +26525 -26539
- package/dist/{CodeThumbnail-u2nL4mSO.js → CodeThumbnail-JLPjPSHE.js} +1 -1
- package/dist/{CodeViewer-hVg25taQ.js → CodeViewer-HhRZ_KtU.js} +8 -8
- package/dist/{DocumentToolbar-DY5GWF2m.js → DocumentToolbar-C3YeGLiY.js} +5 -5
- package/dist/{DocxViewer-BvNPALXn.js → DocxViewer-B_pUywX2.js} +3 -3
- package/dist/{F0AiProcessingOverlay-DJL2v246.js → F0AiProcessingOverlay-CreyUmNt.js} +2869 -2398
- package/dist/{F0Alert-BLx10d2-.js → F0Alert-Dfw9wvmG.js} +15 -15
- package/dist/F0AudioPlayer-BqKZE5cb.js +2 -0
- package/dist/{F0Button-BfcH39fa.js → F0Button-Hs9dD3kp.js} +3281 -3224
- package/dist/{F0CanvasPanel-D7WW8pd6.js → F0CanvasPanel-QAikAHrt.js} +9045 -8669
- package/dist/F0CanvasPanel.css +1 -1
- package/dist/{F0DocumentViewer-DqmvgGr8.js → F0DocumentViewer-BBZNZzXF.js} +1 -1
- package/dist/{F0DocumentViewer-CjrlS3ZO.js → F0DocumentViewer-DtBBvHeY.js} +4 -4
- package/dist/{F0Icon-BODMWayd.js → F0Icon-C0Ks-zGo.js} +1 -1
- package/dist/{F0Map-CVeX6rRX.js → F0Map-DrGsOz1c.js} +609 -599
- package/dist/{F0Select-CYFD0h9x.js → F0Select-D8elfH2c.js} +7134 -7107
- package/dist/{F0Text-DYI-dgwG.js → F0Text-BdLMC6rw.js} +2 -2
- package/dist/F0VideoPlayer-BzehPrsz.js +1 -0
- package/dist/{F0VideoPlayer-Z7YNLq4v.js → F0VideoPlayer-mLzBl6O5.js} +255 -255
- package/dist/{HtmlThumbnail-CENW-PSn.js → HtmlThumbnail-C2fHnIU5.js} +1 -1
- package/dist/{HtmlViewer-CkYgtVYE.js → HtmlViewer-CNHsP0_Q.js} +9 -9
- package/dist/{LayoutGroup-BDMkthvj.js → LayoutGroup-B5tU1ztA.js} +14 -14
- package/dist/{Map-BDHD0YwP.js → Map-Cfzh4DYS.js} +13 -13
- package/dist/{PdfThumbnail-8GNGxMJt.js → PdfThumbnail-BhMepsUK.js} +1 -1
- package/dist/{PdfViewer-Dnw3HwAO.js → PdfViewer-CL30Vr4B.js} +11 -11
- package/dist/{SandboxedHtmlFrame-DulTTwnE.js → SandboxedHtmlFrame-QjmWXSV-.js} +2 -2
- package/dist/{SheetViewer-zWlafaWN.js → SheetViewer-Cs_vLeh4.js} +15 -15
- package/dist/{TextViewer-Z77_eAGH.js → TextViewer-CGoMovpP.js} +4 -4
- package/dist/ai.d.ts +4 -4
- package/dist/ai.js +5 -5
- package/dist/component-status.js +34 -12
- package/dist/{dist-Cuwaibqg.js → dist-BCNVh6y5.js} +2 -1
- package/dist/dist-C8J2FPJo.js +970 -0
- package/dist/{dist-Dh-hHue-.js → dist-CJIEhLuL.js} +3 -3
- package/dist/dist-CQSuXDpA.js +12 -0
- package/dist/{dist-B1ho8lUr.js → dist-DVsrUl0U.js} +6 -6
- package/dist/{dist-CYzeNTKV.js → dist-DpAd2wW2.js} +40 -40
- package/dist/experimental.d.ts +34 -73
- package/dist/experimental.js +6659 -7078
- package/dist/{exports-Ck-BjPQ_.d.ts → exports-BSI98RKf.d.ts} +96 -94
- package/dist/f0.d.ts +52 -8
- package/dist/f0.js +1761 -1761
- package/dist/{google-D1V0swd7.js → google-CG30Y63J.js} +1 -1
- package/dist/{highlight-CXWCrLa3.js → highlight-DUGKJ8WM.js} +7 -7
- package/dist/{i18n-provider-C0z4575b.js → i18n-provider-DoTL-0tJ.js} +1 -1
- package/dist/{i18n-provider-defaults-D87XbZtT.d.ts → i18n-provider-defaults-BkNbvakp.d.ts} +21 -15
- package/dist/{i18n-provider-defaults-BeyCAnkS.js → i18n-provider-defaults-ZqFx7uFw.js} +21 -19
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-BakET5p_.d.ts → index-CeGTmQfe.d.ts} +308 -385
- package/dist/{maplibre-HGgd69Ss.js → maplibre-iSstWV_1.js} +2 -2
- package/dist/{pdfWorker-t0S8Tmzi.js → pdfWorker-DwNAnhfp.js} +1 -1
- package/dist/{popover-BsFj9cmb.js → popover-CCSQvMSp.js} +898 -1678
- package/dist/{skeleton-DWdckpXm.js → skeleton-BsalZgC5.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{toolbarStyles-B9vf6pee.js → toolbarStyles-DGCICoyx.js} +1 -1
- package/dist/{types-BqSHd7u-.d.ts → types-Brch_2zb.d.ts} +2 -2
- package/dist/{useData-C7KI_3q1.js → useData-D4FE64eT.js} +110 -109
- package/package.json +6 -3
- package/tailwind.config.ts +49 -0
- package/dist/F0AudioPlayer-D6O-SSQc.js +0 -2
- package/dist/F0VideoPlayer-DSAREEuf.js +0 -1
- package/dist/scrollarea-CStky4Xl.js +0 -691
|
@@ -1,39 +1,56 @@
|
|
|
1
1
|
import { L as e, s as t } from "./tooltip-DFMOxXQO.js";
|
|
2
|
-
import { n } from "./F0Icon-
|
|
2
|
+
import { n } from "./F0Icon-C0Ks-zGo.js";
|
|
3
3
|
import * as r from "react";
|
|
4
4
|
import i, { createElement as a, forwardRef as o, useEffect as s, useLayoutEffect as c, useState as l } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
5
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
6
|
+
import f, * as p from "react-dom";
|
|
7
7
|
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
8
|
-
function
|
|
8
|
+
function m(e, t) {
|
|
9
9
|
if (typeof e == "function") return e(t);
|
|
10
10
|
e != null && (e.current = t);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function h(...e) {
|
|
13
13
|
return (t) => {
|
|
14
14
|
let n = !1, r = e.map((e) => {
|
|
15
|
-
let r =
|
|
15
|
+
let r = m(e, t);
|
|
16
16
|
return !n && typeof r == "function" && (n = !0), r;
|
|
17
17
|
});
|
|
18
18
|
if (n) return () => {
|
|
19
19
|
for (let t = 0; t < r.length; t++) {
|
|
20
20
|
let n = r[t];
|
|
21
|
-
typeof n == "function" ? n() :
|
|
21
|
+
typeof n == "function" ? n() : m(e[t], null);
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
return r.useCallback(
|
|
26
|
+
function g(...e) {
|
|
27
|
+
return r.useCallback(h(...e), e);
|
|
28
28
|
}
|
|
29
29
|
typeof window < "u" && window.document && window.document.createElement;
|
|
30
|
-
function
|
|
30
|
+
function _(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
31
31
|
return function(r) {
|
|
32
32
|
if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region ../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
37
|
+
function v(e, t) {
|
|
38
|
+
let n = r.createContext(t), i = (e) => {
|
|
39
|
+
let { children: t, ...i } = e, a = r.useMemo(() => i, Object.values(i));
|
|
40
|
+
return /* @__PURE__ */ u(n.Provider, {
|
|
41
|
+
value: a,
|
|
42
|
+
children: t
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
i.displayName = e + "Provider";
|
|
46
|
+
function a(i) {
|
|
47
|
+
let a = r.useContext(n);
|
|
48
|
+
if (a) return a;
|
|
49
|
+
if (t !== void 0) return t;
|
|
50
|
+
throw Error(`\`${i}\` must be used within \`${e}\``);
|
|
51
|
+
}
|
|
52
|
+
return [i, a];
|
|
53
|
+
}
|
|
37
54
|
function y(e, t = []) {
|
|
38
55
|
let n = [];
|
|
39
56
|
function i(t, i) {
|
|
@@ -41,7 +58,7 @@ function y(e, t = []) {
|
|
|
41
58
|
n = [...n, i];
|
|
42
59
|
let s = (t) => {
|
|
43
60
|
let { scope: n, children: i, ...s } = t, c = n?.[e]?.[o] || a, l = r.useMemo(() => s, Object.values(s));
|
|
44
|
-
return /* @__PURE__ */
|
|
61
|
+
return /* @__PURE__ */ u(c.Provider, {
|
|
45
62
|
value: l,
|
|
46
63
|
children: i
|
|
47
64
|
});
|
|
@@ -138,13 +155,13 @@ function E(e) {
|
|
|
138
155
|
let { children: i, ...a } = e, o = r.Children.toArray(i), s = o.find(A);
|
|
139
156
|
if (s) {
|
|
140
157
|
let e = s.props.children, i = o.map((t) => t === s ? r.Children.count(e) > 1 ? r.Children.only(null) : r.isValidElement(e) ? e.props.children : null : t);
|
|
141
|
-
return /* @__PURE__ */
|
|
158
|
+
return /* @__PURE__ */ u(t, {
|
|
142
159
|
...a,
|
|
143
160
|
ref: n,
|
|
144
161
|
children: r.isValidElement(e) ? r.cloneElement(e, void 0, i) : null
|
|
145
162
|
});
|
|
146
163
|
}
|
|
147
|
-
return /* @__PURE__ */
|
|
164
|
+
return /* @__PURE__ */ u(t, {
|
|
148
165
|
...a,
|
|
149
166
|
ref: n,
|
|
150
167
|
children: i
|
|
@@ -159,7 +176,7 @@ function O(e) {
|
|
|
159
176
|
let { children: n, ...i } = e;
|
|
160
177
|
if (r.isValidElement(n)) {
|
|
161
178
|
let e = M(n), a = j(i, n.props);
|
|
162
|
-
return n.type !== r.Fragment && (a.ref = t ?
|
|
179
|
+
return n.type !== r.Fragment && (a.ref = t ? h(t, e) : e), r.cloneElement(n, a);
|
|
163
180
|
}
|
|
164
181
|
return r.Children.count(n) > 1 ? r.Children.only(null) : null;
|
|
165
182
|
});
|
|
@@ -213,7 +230,7 @@ var N = [
|
|
|
213
230
|
].reduce((e, t) => {
|
|
214
231
|
let n = /* @__PURE__ */ E(`Primitive.${t}`), i = r.forwardRef((e, r) => {
|
|
215
232
|
let { asChild: i, ...a } = e, o = i ? n : t;
|
|
216
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
233
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(o, {
|
|
217
234
|
...a,
|
|
218
235
|
ref: r
|
|
219
236
|
});
|
|
@@ -224,17 +241,17 @@ var N = [
|
|
|
224
241
|
};
|
|
225
242
|
}, {});
|
|
226
243
|
function P(e, t) {
|
|
227
|
-
e &&
|
|
244
|
+
e && p.flushSync(() => e.dispatchEvent(t));
|
|
228
245
|
}
|
|
229
246
|
//#endregion
|
|
230
247
|
//#region ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom_0e4230adea206cfc9ffba4b61b225db3/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
231
|
-
function
|
|
248
|
+
function ee(e) {
|
|
232
249
|
let t = e + "CollectionProvider", [n, r] = y(t), [a, o] = n(t, {
|
|
233
250
|
collectionRef: { current: null },
|
|
234
251
|
itemMap: /* @__PURE__ */ new Map()
|
|
235
252
|
}), s = (e) => {
|
|
236
253
|
let { scope: t, children: n } = e, r = i.useRef(null), o = i.useRef(/* @__PURE__ */ new Map()).current;
|
|
237
|
-
return /* @__PURE__ */
|
|
254
|
+
return /* @__PURE__ */ u(a, {
|
|
238
255
|
scope: t,
|
|
239
256
|
itemMap: o,
|
|
240
257
|
collectionRef: r,
|
|
@@ -242,27 +259,27 @@ function F(e) {
|
|
|
242
259
|
});
|
|
243
260
|
};
|
|
244
261
|
s.displayName = t;
|
|
245
|
-
let c = e + "CollectionSlot", l = /* @__PURE__ */ E(c),
|
|
246
|
-
let { scope: n, children: r } = e, i =
|
|
247
|
-
return /* @__PURE__ */
|
|
262
|
+
let c = e + "CollectionSlot", l = /* @__PURE__ */ E(c), d = i.forwardRef((e, t) => {
|
|
263
|
+
let { scope: n, children: r } = e, i = g(t, o(c, n).collectionRef);
|
|
264
|
+
return /* @__PURE__ */ u(l, {
|
|
248
265
|
ref: i,
|
|
249
266
|
children: r
|
|
250
267
|
});
|
|
251
268
|
});
|
|
252
|
-
|
|
269
|
+
d.displayName = c;
|
|
253
270
|
let f = e + "CollectionItemSlot", p = "data-radix-collection-item", m = /* @__PURE__ */ E(f), h = i.forwardRef((e, t) => {
|
|
254
|
-
let { scope: n, children: r, ...a } = e, s = i.useRef(null), c =
|
|
271
|
+
let { scope: n, children: r, ...a } = e, s = i.useRef(null), c = g(t, s), l = o(f, n);
|
|
255
272
|
return i.useEffect(() => (l.itemMap.set(s, {
|
|
256
273
|
ref: s,
|
|
257
274
|
...a
|
|
258
|
-
}), () => void l.itemMap.delete(s))), /* @__PURE__ */
|
|
275
|
+
}), () => void l.itemMap.delete(s))), /* @__PURE__ */ u(m, {
|
|
259
276
|
[p]: "",
|
|
260
277
|
ref: c,
|
|
261
278
|
children: r
|
|
262
279
|
});
|
|
263
280
|
});
|
|
264
281
|
h.displayName = f;
|
|
265
|
-
function
|
|
282
|
+
function _(t) {
|
|
266
283
|
let n = o(e + "CollectionConsumer", t);
|
|
267
284
|
return i.useCallback(() => {
|
|
268
285
|
let e = n.collectionRef.current;
|
|
@@ -274,23 +291,23 @@ function F(e) {
|
|
|
274
291
|
return [
|
|
275
292
|
{
|
|
276
293
|
Provider: s,
|
|
277
|
-
Slot:
|
|
294
|
+
Slot: d,
|
|
278
295
|
ItemSlot: h
|
|
279
296
|
},
|
|
280
|
-
|
|
297
|
+
_,
|
|
281
298
|
r
|
|
282
299
|
];
|
|
283
300
|
}
|
|
284
301
|
//#endregion
|
|
285
302
|
//#region ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
286
|
-
var
|
|
287
|
-
function
|
|
288
|
-
let t = r.useContext(
|
|
303
|
+
var te = r.createContext(void 0);
|
|
304
|
+
function ne(e) {
|
|
305
|
+
let t = r.useContext(te);
|
|
289
306
|
return e || t || "ltr";
|
|
290
307
|
}
|
|
291
308
|
//#endregion
|
|
292
309
|
//#region ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
293
|
-
function
|
|
310
|
+
function F(e) {
|
|
294
311
|
let t = r.useRef(e);
|
|
295
312
|
return r.useEffect(() => {
|
|
296
313
|
t.current = e;
|
|
@@ -298,8 +315,8 @@ function L(e) {
|
|
|
298
315
|
}
|
|
299
316
|
//#endregion
|
|
300
317
|
//#region ../../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
301
|
-
function
|
|
302
|
-
let n =
|
|
318
|
+
function re(e, t = globalThis?.document) {
|
|
319
|
+
let n = F(e);
|
|
303
320
|
r.useEffect(() => {
|
|
304
321
|
let e = (e) => {
|
|
305
322
|
e.key === "Escape" && n(e);
|
|
@@ -309,67 +326,67 @@ function te(e, t = globalThis?.document) {
|
|
|
309
326
|
}
|
|
310
327
|
//#endregion
|
|
311
328
|
//#region ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.11_@types+react-dom@18.3.1_@types+react@18.3.18_r_1a66cbccf1f1ad5632e26da06aa2c05c/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
312
|
-
var
|
|
329
|
+
var ie = "DismissableLayer", ae = "dismissableLayer.update", oe = "dismissableLayer.pointerDownOutside", se = "dismissableLayer.focusOutside", ce, le = r.createContext({
|
|
313
330
|
layers: /* @__PURE__ */ new Set(),
|
|
314
331
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
315
332
|
branches: /* @__PURE__ */ new Set()
|
|
316
|
-
}),
|
|
317
|
-
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = e,
|
|
318
|
-
let t = e.target, n = [...
|
|
333
|
+
}), ue = r.forwardRef((e, t) => {
|
|
334
|
+
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = e, d = r.useContext(le), [f, p] = r.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, h] = r.useState({}), v = g(t, (e) => p(e)), y = Array.from(d.layers), [b] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = y.indexOf(b), S = f ? y.indexOf(f) : -1, C = d.layersWithOutsidePointerEventsDisabled.size > 0, w = S >= x, T = pe((e) => {
|
|
335
|
+
let t = e.target, n = [...d.branches].some((e) => e.contains(t));
|
|
319
336
|
w && !n && (a?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
320
|
-
}, m), E =
|
|
337
|
+
}, m), E = me((e) => {
|
|
321
338
|
let t = e.target;
|
|
322
|
-
[...
|
|
339
|
+
[...d.branches].some((e) => e.contains(t)) || (o?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
323
340
|
}, m);
|
|
324
|
-
return
|
|
325
|
-
S ===
|
|
341
|
+
return re((e) => {
|
|
342
|
+
S === d.layers.size - 1 && (i?.(e), !e.defaultPrevented && c && (e.preventDefault(), c()));
|
|
326
343
|
}, m), r.useEffect(() => {
|
|
327
|
-
if (f) return n && (
|
|
328
|
-
n &&
|
|
344
|
+
if (f) return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (ce = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), he(), () => {
|
|
345
|
+
n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = ce);
|
|
329
346
|
};
|
|
330
347
|
}, [
|
|
331
348
|
f,
|
|
332
349
|
m,
|
|
333
350
|
n,
|
|
334
|
-
|
|
351
|
+
d
|
|
335
352
|
]), r.useEffect(() => () => {
|
|
336
|
-
f && (
|
|
337
|
-
}, [f,
|
|
353
|
+
f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f), he());
|
|
354
|
+
}, [f, d]), r.useEffect(() => {
|
|
338
355
|
let e = () => h({});
|
|
339
|
-
return document.addEventListener(
|
|
340
|
-
}, []), /* @__PURE__ */
|
|
356
|
+
return document.addEventListener(ae, e), () => document.removeEventListener(ae, e);
|
|
357
|
+
}, []), /* @__PURE__ */ u(N.div, {
|
|
341
358
|
...l,
|
|
342
|
-
ref:
|
|
359
|
+
ref: v,
|
|
343
360
|
style: {
|
|
344
361
|
pointerEvents: C ? w ? "auto" : "none" : void 0,
|
|
345
362
|
...e.style
|
|
346
363
|
},
|
|
347
|
-
onFocusCapture:
|
|
348
|
-
onBlurCapture:
|
|
349
|
-
onPointerDownCapture:
|
|
364
|
+
onFocusCapture: _(e.onFocusCapture, E.onFocusCapture),
|
|
365
|
+
onBlurCapture: _(e.onBlurCapture, E.onBlurCapture),
|
|
366
|
+
onPointerDownCapture: _(e.onPointerDownCapture, T.onPointerDownCapture)
|
|
350
367
|
});
|
|
351
368
|
});
|
|
352
|
-
|
|
353
|
-
var
|
|
354
|
-
let n = r.useContext(
|
|
369
|
+
ue.displayName = ie;
|
|
370
|
+
var de = "DismissableLayerBranch", fe = r.forwardRef((e, t) => {
|
|
371
|
+
let n = r.useContext(le), i = r.useRef(null), a = g(t, i);
|
|
355
372
|
return r.useEffect(() => {
|
|
356
373
|
let e = i.current;
|
|
357
374
|
if (e) return n.branches.add(e), () => {
|
|
358
375
|
n.branches.delete(e);
|
|
359
376
|
};
|
|
360
|
-
}, [n.branches]), /* @__PURE__ */
|
|
377
|
+
}, [n.branches]), /* @__PURE__ */ u(N.div, {
|
|
361
378
|
...e,
|
|
362
379
|
ref: a
|
|
363
380
|
});
|
|
364
381
|
});
|
|
365
|
-
|
|
366
|
-
function
|
|
367
|
-
let n =
|
|
382
|
+
fe.displayName = de;
|
|
383
|
+
function pe(e, t = globalThis?.document) {
|
|
384
|
+
let n = F(e), i = r.useRef(!1), a = r.useRef(() => {});
|
|
368
385
|
return r.useEffect(() => {
|
|
369
386
|
let e = (e) => {
|
|
370
387
|
if (e.target && !i.current) {
|
|
371
388
|
let r = function() {
|
|
372
|
-
|
|
389
|
+
ge(oe, n, i, { discrete: !0 });
|
|
373
390
|
}, i = { originalEvent: e };
|
|
374
391
|
e.pointerType === "touch" ? (t.removeEventListener("click", a.current), a.current = r, t.addEventListener("click", a.current, { once: !0 })) : r();
|
|
375
392
|
} else t.removeEventListener("click", a.current);
|
|
@@ -382,11 +399,11 @@ function de(e, t = globalThis?.document) {
|
|
|
382
399
|
};
|
|
383
400
|
}, [t, n]), { onPointerDownCapture: () => i.current = !0 };
|
|
384
401
|
}
|
|
385
|
-
function
|
|
386
|
-
let n =
|
|
402
|
+
function me(e, t = globalThis?.document) {
|
|
403
|
+
let n = F(e), i = r.useRef(!1);
|
|
387
404
|
return r.useEffect(() => {
|
|
388
405
|
let e = (e) => {
|
|
389
|
-
e.target && !i.current &&
|
|
406
|
+
e.target && !i.current && ge(se, n, { originalEvent: e }, { discrete: !1 });
|
|
390
407
|
};
|
|
391
408
|
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
|
|
392
409
|
}, [t, n]), {
|
|
@@ -394,11 +411,11 @@ function fe(e, t = globalThis?.document) {
|
|
|
394
411
|
onBlurCapture: () => i.current = !1
|
|
395
412
|
};
|
|
396
413
|
}
|
|
397
|
-
function
|
|
398
|
-
let e = new CustomEvent(
|
|
414
|
+
function he() {
|
|
415
|
+
let e = new CustomEvent(ae);
|
|
399
416
|
document.dispatchEvent(e);
|
|
400
417
|
}
|
|
401
|
-
function
|
|
418
|
+
function ge(e, t, n, { discrete: r }) {
|
|
402
419
|
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
403
420
|
bubbles: !1,
|
|
404
421
|
cancelable: !0,
|
|
@@ -408,26 +425,26 @@ function me(e, t, n, { discrete: r }) {
|
|
|
408
425
|
}
|
|
409
426
|
//#endregion
|
|
410
427
|
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.3_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
411
|
-
var
|
|
412
|
-
function
|
|
428
|
+
var _e = 0;
|
|
429
|
+
function ve() {
|
|
413
430
|
r.useEffect(() => {
|
|
414
431
|
let e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
415
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
416
|
-
|
|
432
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? ye()), document.body.insertAdjacentElement("beforeend", e[1] ?? ye()), _e++, () => {
|
|
433
|
+
_e === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((e) => e.remove()), _e--;
|
|
417
434
|
};
|
|
418
435
|
}, []);
|
|
419
436
|
}
|
|
420
|
-
function
|
|
437
|
+
function ye() {
|
|
421
438
|
let e = document.createElement("span");
|
|
422
439
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
423
440
|
}
|
|
424
441
|
//#endregion
|
|
425
442
|
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@18.3.1_@types+react@18.3.18_react-do_56ad7e199d329ef9fa7b3e23f78502a0/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
426
|
-
var
|
|
443
|
+
var be = "focusScope.autoFocusOnMount", xe = "focusScope.autoFocusOnUnmount", Se = {
|
|
427
444
|
bubbles: !1,
|
|
428
445
|
cancelable: !0
|
|
429
|
-
},
|
|
430
|
-
let { loop: n = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = e, [c, l] = r.useState(null),
|
|
446
|
+
}, Ce = "FocusScope", we = r.forwardRef((e, t) => {
|
|
447
|
+
let { loop: n = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = e, [c, l] = r.useState(null), d = F(a), f = F(o), p = r.useRef(null), m = g(t, (e) => l(e)), h = r.useRef({
|
|
431
448
|
paused: !1,
|
|
432
449
|
pause() {
|
|
433
450
|
this.paused = !0;
|
|
@@ -441,13 +458,13 @@ var ve = "focusScope.autoFocusOnMount", ye = "focusScope.autoFocusOnUnmount", be
|
|
|
441
458
|
let e = function(e) {
|
|
442
459
|
if (h.paused || !c) return;
|
|
443
460
|
let t = e.target;
|
|
444
|
-
c.contains(t) ? p.current = t :
|
|
461
|
+
c.contains(t) ? p.current = t : I(p.current, { select: !0 });
|
|
445
462
|
}, t = function(e) {
|
|
446
463
|
if (h.paused || !c) return;
|
|
447
464
|
let t = e.relatedTarget;
|
|
448
|
-
t !== null && (c.contains(t) ||
|
|
465
|
+
t !== null && (c.contains(t) || I(p.current, { select: !0 }));
|
|
449
466
|
}, n = function(e) {
|
|
450
|
-
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 &&
|
|
467
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && I(c);
|
|
451
468
|
};
|
|
452
469
|
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
453
470
|
let r = new MutationObserver(n);
|
|
@@ -464,54 +481,54 @@ var ve = "focusScope.autoFocusOnMount", ye = "focusScope.autoFocusOnUnmount", be
|
|
|
464
481
|
h.paused
|
|
465
482
|
]), r.useEffect(() => {
|
|
466
483
|
if (c) {
|
|
467
|
-
|
|
484
|
+
je.add(h);
|
|
468
485
|
let e = document.activeElement;
|
|
469
486
|
if (!c.contains(e)) {
|
|
470
|
-
let t = new CustomEvent(
|
|
471
|
-
c.addEventListener(
|
|
487
|
+
let t = new CustomEvent(be, Se);
|
|
488
|
+
c.addEventListener(be, d), c.dispatchEvent(t), t.defaultPrevented || (Te(Pe(De(c)), { select: !0 }), document.activeElement === e && I(c));
|
|
472
489
|
}
|
|
473
490
|
return () => {
|
|
474
|
-
c.removeEventListener(
|
|
475
|
-
let t = new CustomEvent(
|
|
476
|
-
c.addEventListener(
|
|
491
|
+
c.removeEventListener(be, d), setTimeout(() => {
|
|
492
|
+
let t = new CustomEvent(xe, Se);
|
|
493
|
+
c.addEventListener(xe, f), c.dispatchEvent(t), t.defaultPrevented || I(e ?? document.body, { select: !0 }), c.removeEventListener(xe, f), je.remove(h);
|
|
477
494
|
}, 0);
|
|
478
495
|
};
|
|
479
496
|
}
|
|
480
497
|
}, [
|
|
481
498
|
c,
|
|
482
|
-
|
|
499
|
+
d,
|
|
483
500
|
f,
|
|
484
501
|
h
|
|
485
502
|
]);
|
|
486
|
-
let
|
|
503
|
+
let _ = r.useCallback((e) => {
|
|
487
504
|
if (!n && !i || h.paused) return;
|
|
488
505
|
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, r = document.activeElement;
|
|
489
506
|
if (t && r) {
|
|
490
|
-
let t = e.currentTarget, [i, a] =
|
|
491
|
-
i && a ? !e.shiftKey && r === a ? (e.preventDefault(), n &&
|
|
507
|
+
let t = e.currentTarget, [i, a] = Ee(t);
|
|
508
|
+
i && a ? !e.shiftKey && r === a ? (e.preventDefault(), n && I(i, { select: !0 })) : e.shiftKey && r === i && (e.preventDefault(), n && I(a, { select: !0 })) : r === t && e.preventDefault();
|
|
492
509
|
}
|
|
493
510
|
}, [
|
|
494
511
|
n,
|
|
495
512
|
i,
|
|
496
513
|
h.paused
|
|
497
514
|
]);
|
|
498
|
-
return /* @__PURE__ */
|
|
515
|
+
return /* @__PURE__ */ u(N.div, {
|
|
499
516
|
tabIndex: -1,
|
|
500
517
|
...s,
|
|
501
518
|
ref: m,
|
|
502
|
-
onKeyDown:
|
|
519
|
+
onKeyDown: _
|
|
503
520
|
});
|
|
504
521
|
});
|
|
505
|
-
|
|
506
|
-
function
|
|
522
|
+
we.displayName = Ce;
|
|
523
|
+
function Te(e, { select: t = !1 } = {}) {
|
|
507
524
|
let n = document.activeElement;
|
|
508
|
-
for (let r of e) if (
|
|
525
|
+
for (let r of e) if (I(r, { select: t }), document.activeElement !== n) return;
|
|
509
526
|
}
|
|
510
|
-
function
|
|
511
|
-
let t =
|
|
512
|
-
return [
|
|
527
|
+
function Ee(e) {
|
|
528
|
+
let t = De(e);
|
|
529
|
+
return [Oe(t, e), Oe(t.reverse(), e)];
|
|
513
530
|
}
|
|
514
|
-
function
|
|
531
|
+
function De(e) {
|
|
515
532
|
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
516
533
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
517
534
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
@@ -519,10 +536,10 @@ function Te(e) {
|
|
|
519
536
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
520
537
|
return t;
|
|
521
538
|
}
|
|
522
|
-
function
|
|
523
|
-
for (let n of e) if (!
|
|
539
|
+
function Oe(e, t) {
|
|
540
|
+
for (let n of e) if (!ke(n, { upTo: t })) return n;
|
|
524
541
|
}
|
|
525
|
-
function
|
|
542
|
+
function ke(e, { upTo: t }) {
|
|
526
543
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
527
544
|
for (; e;) {
|
|
528
545
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -531,52 +548,52 @@ function De(e, { upTo: t }) {
|
|
|
531
548
|
}
|
|
532
549
|
return !1;
|
|
533
550
|
}
|
|
534
|
-
function
|
|
551
|
+
function Ae(e) {
|
|
535
552
|
return e instanceof HTMLInputElement && "select" in e;
|
|
536
553
|
}
|
|
537
|
-
function
|
|
554
|
+
function I(e, { select: t = !1 } = {}) {
|
|
538
555
|
if (e && e.focus) {
|
|
539
556
|
let n = document.activeElement;
|
|
540
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
557
|
+
e.focus({ preventScroll: !0 }), e !== n && Ae(e) && t && e.select();
|
|
541
558
|
}
|
|
542
559
|
}
|
|
543
|
-
var
|
|
544
|
-
function
|
|
560
|
+
var je = Me();
|
|
561
|
+
function Me() {
|
|
545
562
|
let e = [];
|
|
546
563
|
return {
|
|
547
564
|
add(t) {
|
|
548
565
|
let n = e[0];
|
|
549
|
-
t !== n && n?.pause(), e =
|
|
566
|
+
t !== n && n?.pause(), e = Ne(e, t), e.unshift(t);
|
|
550
567
|
},
|
|
551
568
|
remove(t) {
|
|
552
|
-
e =
|
|
569
|
+
e = Ne(e, t), e[0]?.resume();
|
|
553
570
|
}
|
|
554
571
|
};
|
|
555
572
|
}
|
|
556
|
-
function
|
|
573
|
+
function Ne(e, t) {
|
|
557
574
|
let n = [...e], r = n.indexOf(t);
|
|
558
575
|
return r !== -1 && n.splice(r, 1), n;
|
|
559
576
|
}
|
|
560
|
-
function
|
|
577
|
+
function Pe(e) {
|
|
561
578
|
return e.filter((e) => e.tagName !== "A");
|
|
562
579
|
}
|
|
563
580
|
//#endregion
|
|
564
581
|
//#region ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
565
|
-
var
|
|
566
|
-
function
|
|
567
|
-
let [t, n] = r.useState(
|
|
582
|
+
var Fe = r.useId || (() => void 0), Ie = 0;
|
|
583
|
+
function Le(e) {
|
|
584
|
+
let [t, n] = r.useState(Fe());
|
|
568
585
|
return x(() => {
|
|
569
|
-
e || n((e) => e ?? String(
|
|
586
|
+
e || n((e) => e ?? String(Ie++));
|
|
570
587
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
571
588
|
}
|
|
572
589
|
//#endregion
|
|
573
590
|
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
574
|
-
var
|
|
591
|
+
var Re = [
|
|
575
592
|
"top",
|
|
576
593
|
"right",
|
|
577
594
|
"bottom",
|
|
578
595
|
"left"
|
|
579
|
-
],
|
|
596
|
+
], L = Math.min, R = Math.max, ze = Math.round, Be = Math.floor, z = (e) => ({
|
|
580
597
|
x: e,
|
|
581
598
|
y: e
|
|
582
599
|
}), Ve = {
|
|
@@ -589,7 +606,7 @@ var Le = [
|
|
|
589
606
|
end: "start"
|
|
590
607
|
};
|
|
591
608
|
function Ue(e, t, n) {
|
|
592
|
-
return R(e,
|
|
609
|
+
return R(e, L(t, n));
|
|
593
610
|
}
|
|
594
611
|
function B(e, t) {
|
|
595
612
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -800,7 +817,7 @@ var ut = async (e, t, n) => {
|
|
|
800
817
|
y: r
|
|
801
818
|
}, p = Je(i), m = Ke(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
802
819
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
803
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E =
|
|
820
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = L(d[_], T), D = L(d[v], T), O = E, k = C - h[m] - D, A = C / 2 - h[m] / 2 + w, j = Ue(O, A, k), M = !c.arrow && We(i) != null && A !== j && a.reference[m] / 2 - (A < O ? E : D) - h[m] / 2 < 0, N = M ? A < O ? A - O : A - k : 0;
|
|
804
821
|
return {
|
|
805
822
|
[p]: f[p] + N,
|
|
806
823
|
data: {
|
|
@@ -868,7 +885,7 @@ function pt(e, t) {
|
|
|
868
885
|
};
|
|
869
886
|
}
|
|
870
887
|
function mt(e) {
|
|
871
|
-
return
|
|
888
|
+
return Re.some((t) => e[t] >= 0);
|
|
872
889
|
}
|
|
873
890
|
var ht = function(e) {
|
|
874
891
|
return e === void 0 && (e = {}), {
|
|
@@ -1015,7 +1032,7 @@ var vt = function(e) {
|
|
|
1015
1032
|
var n, r;
|
|
1016
1033
|
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = B(e, t), u = await o.detectOverflow(t, l), d = V(i), f = We(i), p = H(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
1017
1034
|
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
1018
|
-
let v = h - u.top - u.bottom, y = m - u.left - u.right, b =
|
|
1035
|
+
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = L(h - u[g], v), x = L(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
1019
1036
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
1020
1037
|
let e = R(u.left, 0), t = R(u.right, 0), n = R(u.top, 0), r = R(u.bottom, 0);
|
|
1021
1038
|
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : R(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : R(u.top, u.bottom));
|
|
@@ -1104,11 +1121,11 @@ function Ft(e) {
|
|
|
1104
1121
|
return Mt.some((e) => n[e] ? n[e] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Nt.some((e) => (n.willChange || "").includes(e)) || Pt.some((e) => (n.contain || "").includes(e));
|
|
1105
1122
|
}
|
|
1106
1123
|
function It(e) {
|
|
1107
|
-
let t =
|
|
1124
|
+
let t = J(e);
|
|
1108
1125
|
for (; K(t) && !zt(t);) {
|
|
1109
1126
|
if (Ft(t)) return t;
|
|
1110
1127
|
if (jt(t)) return null;
|
|
1111
|
-
t =
|
|
1128
|
+
t = J(t);
|
|
1112
1129
|
}
|
|
1113
1130
|
return null;
|
|
1114
1131
|
}
|
|
@@ -1135,30 +1152,30 @@ function Bt(e) {
|
|
|
1135
1152
|
scrollTop: e.scrollY
|
|
1136
1153
|
};
|
|
1137
1154
|
}
|
|
1138
|
-
function
|
|
1155
|
+
function J(e) {
|
|
1139
1156
|
if (Ct(e) === "html") return e;
|
|
1140
1157
|
let t = e.assignedSlot || e.parentNode || Tt(e) && e.host || W(e);
|
|
1141
1158
|
return Tt(t) ? t.host : t;
|
|
1142
1159
|
}
|
|
1143
|
-
function
|
|
1144
|
-
let t =
|
|
1145
|
-
return zt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : K(t) && Dt(t) ? t :
|
|
1160
|
+
function Vt(e) {
|
|
1161
|
+
let t = J(e);
|
|
1162
|
+
return zt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : K(t) && Dt(t) ? t : Vt(t);
|
|
1146
1163
|
}
|
|
1147
|
-
function
|
|
1164
|
+
function Ht(e, t, n) {
|
|
1148
1165
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1149
|
-
let r =
|
|
1166
|
+
let r = Vt(e), i = r === e.ownerDocument?.body, a = U(r);
|
|
1150
1167
|
if (i) {
|
|
1151
|
-
let e =
|
|
1152
|
-
return t.concat(a, a.visualViewport || [], Dt(r) ? r : [], e && n ?
|
|
1168
|
+
let e = Ut(a);
|
|
1169
|
+
return t.concat(a, a.visualViewport || [], Dt(r) ? r : [], e && n ? Ht(e) : []);
|
|
1153
1170
|
}
|
|
1154
|
-
return t.concat(r,
|
|
1171
|
+
return t.concat(r, Ht(r, [], n));
|
|
1155
1172
|
}
|
|
1156
|
-
function
|
|
1173
|
+
function Ut(e) {
|
|
1157
1174
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1158
1175
|
}
|
|
1159
1176
|
//#endregion
|
|
1160
1177
|
//#region ../../node_modules/.pnpm/@floating-ui+dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
1161
|
-
function
|
|
1178
|
+
function Wt(e) {
|
|
1162
1179
|
let t = q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = K(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = ze(n) !== a || ze(r) !== o;
|
|
1163
1180
|
return s && (n = a, r = o), {
|
|
1164
1181
|
width: n,
|
|
@@ -1166,39 +1183,39 @@ function Gt(e) {
|
|
|
1166
1183
|
$: s
|
|
1167
1184
|
};
|
|
1168
1185
|
}
|
|
1169
|
-
function
|
|
1186
|
+
function Gt(e) {
|
|
1170
1187
|
return G(e) ? e : e.contextElement;
|
|
1171
1188
|
}
|
|
1172
|
-
function
|
|
1173
|
-
let t =
|
|
1189
|
+
function Kt(e) {
|
|
1190
|
+
let t = Gt(e);
|
|
1174
1191
|
if (!K(t)) return z(1);
|
|
1175
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
1192
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Wt(t), o = (a ? ze(n.width) : n.width) / r, s = (a ? ze(n.height) : n.height) / i;
|
|
1176
1193
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
1177
1194
|
x: o,
|
|
1178
1195
|
y: s
|
|
1179
1196
|
};
|
|
1180
1197
|
}
|
|
1181
|
-
var
|
|
1182
|
-
function
|
|
1198
|
+
var qt = /*#__PURE__*/ z(0);
|
|
1199
|
+
function Jt(e) {
|
|
1183
1200
|
let t = U(e);
|
|
1184
|
-
return !Lt() || !t.visualViewport ?
|
|
1201
|
+
return !Lt() || !t.visualViewport ? qt : {
|
|
1185
1202
|
x: t.visualViewport.offsetLeft,
|
|
1186
1203
|
y: t.visualViewport.offsetTop
|
|
1187
1204
|
};
|
|
1188
1205
|
}
|
|
1189
|
-
function
|
|
1206
|
+
function Yt(e, t, n) {
|
|
1190
1207
|
return t === void 0 && (t = !1), !n || t && n !== U(e) ? !1 : t;
|
|
1191
1208
|
}
|
|
1192
|
-
function
|
|
1209
|
+
function Xt(e, t, n, r) {
|
|
1193
1210
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1194
|
-
let i = e.getBoundingClientRect(), a =
|
|
1195
|
-
t && (r ? G(r) && (o =
|
|
1196
|
-
let s =
|
|
1211
|
+
let i = e.getBoundingClientRect(), a = Gt(e), o = z(1);
|
|
1212
|
+
t && (r ? G(r) && (o = Kt(r)) : o = Kt(e));
|
|
1213
|
+
let s = Yt(a, n, r) ? Jt(a) : z(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
1197
1214
|
if (a) {
|
|
1198
|
-
let e = U(a), t = r && G(r) ? U(r) : r, n = e, i =
|
|
1215
|
+
let e = U(a), t = r && G(r) ? U(r) : r, n = e, i = Ut(n);
|
|
1199
1216
|
for (; i && r && t !== n;) {
|
|
1200
|
-
let e =
|
|
1201
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = U(i), i =
|
|
1217
|
+
let e = Kt(i), t = i.getBoundingClientRect(), r = q(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
1218
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = U(i), i = Ut(n);
|
|
1202
1219
|
}
|
|
1203
1220
|
}
|
|
1204
1221
|
return st({
|
|
@@ -1208,18 +1225,18 @@ function Zt(e, t, n, r) {
|
|
|
1208
1225
|
y: l
|
|
1209
1226
|
});
|
|
1210
1227
|
}
|
|
1211
|
-
function
|
|
1228
|
+
function Zt(e, t) {
|
|
1212
1229
|
let n = Bt(e).scrollLeft;
|
|
1213
|
-
return t ? t.left + n :
|
|
1230
|
+
return t ? t.left + n : Xt(W(e)).left + n;
|
|
1214
1231
|
}
|
|
1215
|
-
function
|
|
1232
|
+
function Qt(e, t) {
|
|
1216
1233
|
let n = e.getBoundingClientRect();
|
|
1217
1234
|
return {
|
|
1218
|
-
x: n.left + t.scrollLeft -
|
|
1235
|
+
x: n.left + t.scrollLeft - Zt(e, n),
|
|
1219
1236
|
y: n.top + t.scrollTop
|
|
1220
1237
|
};
|
|
1221
1238
|
}
|
|
1222
|
-
function
|
|
1239
|
+
function $t(e) {
|
|
1223
1240
|
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = W(r), s = t ? jt(t.floating) : !1;
|
|
1224
1241
|
if (r === o || s && a) return n;
|
|
1225
1242
|
let c = {
|
|
@@ -1227,10 +1244,10 @@ function en(e) {
|
|
|
1227
1244
|
scrollTop: 0
|
|
1228
1245
|
}, l = z(1), u = z(0), d = K(r);
|
|
1229
1246
|
if ((d || !d && !a) && ((Ct(r) !== "body" || Dt(o)) && (c = Bt(r)), K(r))) {
|
|
1230
|
-
let e =
|
|
1231
|
-
l =
|
|
1247
|
+
let e = Xt(r);
|
|
1248
|
+
l = Kt(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
1232
1249
|
}
|
|
1233
|
-
let f = o && !d && !a ?
|
|
1250
|
+
let f = o && !d && !a ? Qt(o, c) : z(0);
|
|
1234
1251
|
return {
|
|
1235
1252
|
width: n.width * l.x,
|
|
1236
1253
|
height: n.height * l.y,
|
|
@@ -1238,11 +1255,11 @@ function en(e) {
|
|
|
1238
1255
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
1239
1256
|
};
|
|
1240
1257
|
}
|
|
1241
|
-
function
|
|
1258
|
+
function en(e) {
|
|
1242
1259
|
return Array.from(e.getClientRects());
|
|
1243
1260
|
}
|
|
1244
|
-
function
|
|
1245
|
-
let t = W(e), n = Bt(e), r = e.ownerDocument.body, i = R(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = R(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft +
|
|
1261
|
+
function tn(e) {
|
|
1262
|
+
let t = W(e), n = Bt(e), r = e.ownerDocument.body, i = R(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = R(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Zt(e), s = -n.scrollTop;
|
|
1246
1263
|
return q(r).direction === "rtl" && (o += R(t.clientWidth, r.clientWidth) - i), {
|
|
1247
1264
|
width: i,
|
|
1248
1265
|
height: a,
|
|
@@ -1250,19 +1267,19 @@ function nn(e) {
|
|
|
1250
1267
|
y: s
|
|
1251
1268
|
};
|
|
1252
1269
|
}
|
|
1253
|
-
var
|
|
1254
|
-
function
|
|
1270
|
+
var nn = 25;
|
|
1271
|
+
function rn(e, t) {
|
|
1255
1272
|
let n = U(e), r = W(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
1256
1273
|
if (i) {
|
|
1257
1274
|
a = i.width, o = i.height;
|
|
1258
1275
|
let e = Lt();
|
|
1259
1276
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
1260
1277
|
}
|
|
1261
|
-
let l =
|
|
1278
|
+
let l = Zt(r);
|
|
1262
1279
|
if (l <= 0) {
|
|
1263
1280
|
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
1264
|
-
o <=
|
|
1265
|
-
} else l <=
|
|
1281
|
+
o <= nn && (a -= o);
|
|
1282
|
+
} else l <= nn && (a += l);
|
|
1266
1283
|
return {
|
|
1267
1284
|
width: a,
|
|
1268
1285
|
height: o,
|
|
@@ -1270,9 +1287,9 @@ function an(e, t) {
|
|
|
1270
1287
|
y: c
|
|
1271
1288
|
};
|
|
1272
1289
|
}
|
|
1273
|
-
var
|
|
1274
|
-
function
|
|
1275
|
-
let n =
|
|
1290
|
+
var an = /*#__PURE__*/ new Set(["absolute", "fixed"]);
|
|
1291
|
+
function on(e, t) {
|
|
1292
|
+
let n = Xt(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = K(e) ? Kt(e) : z(1);
|
|
1276
1293
|
return {
|
|
1277
1294
|
width: e.clientWidth * a.x,
|
|
1278
1295
|
height: e.clientHeight * a.y,
|
|
@@ -1280,13 +1297,13 @@ function sn(e, t) {
|
|
|
1280
1297
|
y: r * a.y
|
|
1281
1298
|
};
|
|
1282
1299
|
}
|
|
1283
|
-
function
|
|
1300
|
+
function sn(e, t, n) {
|
|
1284
1301
|
let r;
|
|
1285
|
-
if (t === "viewport") r =
|
|
1286
|
-
else if (t === "document") r =
|
|
1287
|
-
else if (G(t)) r =
|
|
1302
|
+
if (t === "viewport") r = rn(e, n);
|
|
1303
|
+
else if (t === "document") r = tn(W(e));
|
|
1304
|
+
else if (G(t)) r = on(t, n);
|
|
1288
1305
|
else {
|
|
1289
|
-
let n =
|
|
1306
|
+
let n = Jt(e);
|
|
1290
1307
|
r = {
|
|
1291
1308
|
x: t.x - n.x,
|
|
1292
1309
|
y: t.y - n.y,
|
|
@@ -1296,25 +1313,25 @@ function cn(e, t, n) {
|
|
|
1296
1313
|
}
|
|
1297
1314
|
return st(r);
|
|
1298
1315
|
}
|
|
1299
|
-
function
|
|
1300
|
-
let n =
|
|
1301
|
-
return n === t || !G(n) || zt(n) ? !1 : q(n).position === "fixed" ||
|
|
1316
|
+
function cn(e, t) {
|
|
1317
|
+
let n = J(e);
|
|
1318
|
+
return n === t || !G(n) || zt(n) ? !1 : q(n).position === "fixed" || cn(n, t);
|
|
1302
1319
|
}
|
|
1303
|
-
function
|
|
1320
|
+
function ln(e, t) {
|
|
1304
1321
|
let n = t.get(e);
|
|
1305
1322
|
if (n) return n;
|
|
1306
|
-
let r =
|
|
1323
|
+
let r = Ht(e, [], !1).filter((e) => G(e) && Ct(e) !== "body"), i = null, a = q(e).position === "fixed", o = a ? J(e) : e;
|
|
1307
1324
|
for (; G(o) && !zt(o);) {
|
|
1308
1325
|
let t = q(o), n = Ft(o);
|
|
1309
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i &&
|
|
1326
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && an.has(i.position) || Dt(o) && !n && cn(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = J(o);
|
|
1310
1327
|
}
|
|
1311
1328
|
return t.set(e, r), r;
|
|
1312
1329
|
}
|
|
1313
|
-
function
|
|
1314
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? jt(t) ? [] :
|
|
1315
|
-
let r =
|
|
1316
|
-
return e.top = R(r.top, e.top), e.right =
|
|
1317
|
-
},
|
|
1330
|
+
function un(e) {
|
|
1331
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? jt(t) ? [] : ln(t, this._c) : [].concat(n), r], o = a[0], s = a.reduce((e, n) => {
|
|
1332
|
+
let r = sn(t, n, i);
|
|
1333
|
+
return e.top = R(r.top, e.top), e.right = L(r.right, e.right), e.bottom = L(r.bottom, e.bottom), e.left = R(r.left, e.left), e;
|
|
1334
|
+
}, sn(t, o, i));
|
|
1318
1335
|
return {
|
|
1319
1336
|
width: s.right - s.left,
|
|
1320
1337
|
height: s.bottom - s.top,
|
|
@@ -1322,29 +1339,29 @@ function dn(e) {
|
|
|
1322
1339
|
y: s.top
|
|
1323
1340
|
};
|
|
1324
1341
|
}
|
|
1325
|
-
function
|
|
1326
|
-
let { width: t, height: n } =
|
|
1342
|
+
function dn(e) {
|
|
1343
|
+
let { width: t, height: n } = Wt(e);
|
|
1327
1344
|
return {
|
|
1328
1345
|
width: t,
|
|
1329
1346
|
height: n
|
|
1330
1347
|
};
|
|
1331
1348
|
}
|
|
1332
|
-
function
|
|
1333
|
-
let r = K(t), i = W(t), a = n === "fixed", o =
|
|
1349
|
+
function fn(e, t, n) {
|
|
1350
|
+
let r = K(t), i = W(t), a = n === "fixed", o = Xt(e, !0, a, t), s = {
|
|
1334
1351
|
scrollLeft: 0,
|
|
1335
1352
|
scrollTop: 0
|
|
1336
1353
|
}, c = z(0);
|
|
1337
1354
|
function l() {
|
|
1338
|
-
c.x =
|
|
1355
|
+
c.x = Zt(i);
|
|
1339
1356
|
}
|
|
1340
1357
|
if (r || !r && !a) {
|
|
1341
1358
|
if ((Ct(t) !== "body" || Dt(i)) && (s = Bt(t)), r) {
|
|
1342
|
-
let e =
|
|
1359
|
+
let e = Xt(t, !0, a, t);
|
|
1343
1360
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
1344
1361
|
} else i && l();
|
|
1345
1362
|
}
|
|
1346
1363
|
a && !r && i && l();
|
|
1347
|
-
let u = i && !r && !a ?
|
|
1364
|
+
let u = i && !r && !a ? Qt(i, s) : z(0);
|
|
1348
1365
|
return {
|
|
1349
1366
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
1350
1367
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -1352,34 +1369,34 @@ function pn(e, t, n) {
|
|
|
1352
1369
|
height: o.height
|
|
1353
1370
|
};
|
|
1354
1371
|
}
|
|
1355
|
-
function
|
|
1372
|
+
function pn(e) {
|
|
1356
1373
|
return q(e).position === "static";
|
|
1357
1374
|
}
|
|
1358
|
-
function
|
|
1375
|
+
function mn(e, t) {
|
|
1359
1376
|
if (!K(e) || q(e).position === "fixed") return null;
|
|
1360
1377
|
if (t) return t(e);
|
|
1361
1378
|
let n = e.offsetParent;
|
|
1362
1379
|
return W(e) === n && (n = n.ownerDocument.body), n;
|
|
1363
1380
|
}
|
|
1364
|
-
function
|
|
1381
|
+
function hn(e, t) {
|
|
1365
1382
|
let n = U(e);
|
|
1366
1383
|
if (jt(e)) return n;
|
|
1367
1384
|
if (!K(e)) {
|
|
1368
|
-
let t =
|
|
1385
|
+
let t = J(e);
|
|
1369
1386
|
for (; t && !zt(t);) {
|
|
1370
|
-
if (G(t) && !
|
|
1371
|
-
t =
|
|
1387
|
+
if (G(t) && !pn(t)) return t;
|
|
1388
|
+
t = J(t);
|
|
1372
1389
|
}
|
|
1373
1390
|
return n;
|
|
1374
1391
|
}
|
|
1375
|
-
let r =
|
|
1376
|
-
for (; r && kt(r) &&
|
|
1377
|
-
return r && zt(r) &&
|
|
1392
|
+
let r = mn(e, t);
|
|
1393
|
+
for (; r && kt(r) && pn(r);) r = mn(r, t);
|
|
1394
|
+
return r && zt(r) && pn(r) && !Ft(r) ? n : r || It(e) || n;
|
|
1378
1395
|
}
|
|
1379
|
-
var
|
|
1380
|
-
let t = this.getOffsetParent ||
|
|
1396
|
+
var gn = async function(e) {
|
|
1397
|
+
let t = this.getOffsetParent || hn, n = this.getDimensions, r = await n(e.floating);
|
|
1381
1398
|
return {
|
|
1382
|
-
reference:
|
|
1399
|
+
reference: fn(e.reference, await t(e.floating), e.strategy),
|
|
1383
1400
|
floating: {
|
|
1384
1401
|
x: 0,
|
|
1385
1402
|
y: 0,
|
|
@@ -1388,25 +1405,25 @@ var _n = async function(e) {
|
|
|
1388
1405
|
}
|
|
1389
1406
|
};
|
|
1390
1407
|
};
|
|
1391
|
-
function
|
|
1408
|
+
function _n(e) {
|
|
1392
1409
|
return q(e).direction === "rtl";
|
|
1393
1410
|
}
|
|
1394
|
-
var
|
|
1395
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1411
|
+
var vn = {
|
|
1412
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: $t,
|
|
1396
1413
|
getDocumentElement: W,
|
|
1397
|
-
getClippingRect:
|
|
1398
|
-
getOffsetParent:
|
|
1399
|
-
getElementRects:
|
|
1400
|
-
getClientRects:
|
|
1401
|
-
getDimensions:
|
|
1402
|
-
getScale:
|
|
1414
|
+
getClippingRect: un,
|
|
1415
|
+
getOffsetParent: hn,
|
|
1416
|
+
getElementRects: gn,
|
|
1417
|
+
getClientRects: en,
|
|
1418
|
+
getDimensions: dn,
|
|
1419
|
+
getScale: Kt,
|
|
1403
1420
|
isElement: G,
|
|
1404
|
-
isRTL:
|
|
1421
|
+
isRTL: _n
|
|
1405
1422
|
};
|
|
1406
|
-
function
|
|
1423
|
+
function yn(e, t) {
|
|
1407
1424
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1408
1425
|
}
|
|
1409
|
-
function
|
|
1426
|
+
function bn(e, t) {
|
|
1410
1427
|
let n = null, r, i = W(e);
|
|
1411
1428
|
function a() {
|
|
1412
1429
|
var e;
|
|
@@ -1418,7 +1435,7 @@ function xn(e, t) {
|
|
|
1418
1435
|
if (s || t(), !f || !p) return;
|
|
1419
1436
|
let m = Be(d), h = Be(i.clientWidth - (u + f)), g = Be(i.clientHeight - (d + p)), _ = Be(u), v = {
|
|
1420
1437
|
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
1421
|
-
threshold: R(0,
|
|
1438
|
+
threshold: R(0, L(1, c)) || 1
|
|
1422
1439
|
}, y = !0;
|
|
1423
1440
|
function b(t) {
|
|
1424
1441
|
let n = t[0].intersectionRatio;
|
|
@@ -1428,7 +1445,7 @@ function xn(e, t) {
|
|
|
1428
1445
|
o(!1, 1e-7);
|
|
1429
1446
|
}, 1e3);
|
|
1430
1447
|
}
|
|
1431
|
-
n === 1 && !
|
|
1448
|
+
n === 1 && !yn(l, e.getBoundingClientRect()) && o(), y = !1;
|
|
1432
1449
|
}
|
|
1433
1450
|
try {
|
|
1434
1451
|
n = new IntersectionObserver(b, {
|
|
@@ -1442,13 +1459,13 @@ function xn(e, t) {
|
|
|
1442
1459
|
}
|
|
1443
1460
|
return o(!0), a;
|
|
1444
1461
|
}
|
|
1445
|
-
function
|
|
1462
|
+
function xn(e, t, n, r) {
|
|
1446
1463
|
r === void 0 && (r = {});
|
|
1447
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
1464
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Gt(e), u = i || a ? [...l ? Ht(l) : [], ...Ht(t)] : [];
|
|
1448
1465
|
u.forEach((e) => {
|
|
1449
1466
|
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
1450
1467
|
});
|
|
1451
|
-
let d = l && s ?
|
|
1468
|
+
let d = l && s ? bn(l, n) : null, f = -1, p = null;
|
|
1452
1469
|
o && (p = new ResizeObserver((e) => {
|
|
1453
1470
|
let [r] = e;
|
|
1454
1471
|
r && r.target === l && p && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
@@ -1456,11 +1473,11 @@ function Sn(e, t, n, r) {
|
|
|
1456
1473
|
(e = p) == null || e.observe(t);
|
|
1457
1474
|
})), n();
|
|
1458
1475
|
}), l && !c && p.observe(l), p.observe(t));
|
|
1459
|
-
let m, h = c ?
|
|
1476
|
+
let m, h = c ? Xt(e) : null;
|
|
1460
1477
|
c && g();
|
|
1461
1478
|
function g() {
|
|
1462
|
-
let t =
|
|
1463
|
-
h && !
|
|
1479
|
+
let t = Xt(e);
|
|
1480
|
+
h && !yn(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
1464
1481
|
}
|
|
1465
1482
|
return n(), () => {
|
|
1466
1483
|
var e;
|
|
@@ -1469,9 +1486,9 @@ function Sn(e, t, n, r) {
|
|
|
1469
1486
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
1470
1487
|
};
|
|
1471
1488
|
}
|
|
1472
|
-
var
|
|
1489
|
+
var Sn = vt, Cn = yt, wn = ft, Tn = xt, En = ht, Dn = dt, On = bt, kn = (e, t, n) => {
|
|
1473
1490
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
1474
|
-
platform:
|
|
1491
|
+
platform: vn,
|
|
1475
1492
|
...n
|
|
1476
1493
|
}, a = {
|
|
1477
1494
|
...i.platform,
|
|
@@ -1481,8 +1498,8 @@ var Cn = vt, wn = yt, Tn = ft, En = xt, Dn = ht, On = dt, kn = bt, An = (e, t, n
|
|
|
1481
1498
|
...i,
|
|
1482
1499
|
platform: a
|
|
1483
1500
|
});
|
|
1484
|
-
},
|
|
1485
|
-
function
|
|
1501
|
+
}, An = typeof document < "u" ? c : s;
|
|
1502
|
+
function jn(e, t) {
|
|
1486
1503
|
if (e === t) return !0;
|
|
1487
1504
|
if (typeof e != typeof t) return !1;
|
|
1488
1505
|
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
@@ -1490,33 +1507,33 @@ function Mn(e, t) {
|
|
|
1490
1507
|
if (e && t && typeof e == "object") {
|
|
1491
1508
|
if (Array.isArray(e)) {
|
|
1492
1509
|
if (n = e.length, n !== t.length) return !1;
|
|
1493
|
-
for (r = n; r-- !== 0;) if (!
|
|
1510
|
+
for (r = n; r-- !== 0;) if (!jn(e[r], t[r])) return !1;
|
|
1494
1511
|
return !0;
|
|
1495
1512
|
}
|
|
1496
1513
|
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
1497
1514
|
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
1498
1515
|
for (r = n; r-- !== 0;) {
|
|
1499
1516
|
let n = i[r];
|
|
1500
|
-
if (!(n === "_owner" && e.$$typeof) && !
|
|
1517
|
+
if (!(n === "_owner" && e.$$typeof) && !jn(e[n], t[n])) return !1;
|
|
1501
1518
|
}
|
|
1502
1519
|
return !0;
|
|
1503
1520
|
}
|
|
1504
1521
|
return e !== e && t !== t;
|
|
1505
1522
|
}
|
|
1506
|
-
function
|
|
1523
|
+
function Mn(e) {
|
|
1507
1524
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1508
1525
|
}
|
|
1509
|
-
function
|
|
1510
|
-
let n =
|
|
1526
|
+
function Nn(e, t) {
|
|
1527
|
+
let n = Mn(e);
|
|
1511
1528
|
return Math.round(t * n) / n;
|
|
1512
1529
|
}
|
|
1513
|
-
function
|
|
1530
|
+
function Pn(e) {
|
|
1514
1531
|
let t = r.useRef(e);
|
|
1515
|
-
return
|
|
1532
|
+
return An(() => {
|
|
1516
1533
|
t.current = e;
|
|
1517
1534
|
}), t;
|
|
1518
1535
|
}
|
|
1519
|
-
function
|
|
1536
|
+
function Fn(e) {
|
|
1520
1537
|
e === void 0 && (e = {});
|
|
1521
1538
|
let { placement: t = "bottom", strategy: n = "absolute", middleware: i = [], platform: a, elements: { reference: o, floating: s } = {}, transform: c = !0, whileElementsMounted: l, open: u } = e, [d, f] = r.useState({
|
|
1522
1539
|
x: 0,
|
|
@@ -1525,45 +1542,45 @@ function In(e) {
|
|
|
1525
1542
|
placement: t,
|
|
1526
1543
|
middlewareData: {},
|
|
1527
1544
|
isPositioned: !1
|
|
1528
|
-
}), [
|
|
1529
|
-
|
|
1545
|
+
}), [m, h] = r.useState(i);
|
|
1546
|
+
jn(m, i) || h(i);
|
|
1530
1547
|
let [g, _] = r.useState(null), [v, y] = r.useState(null), b = r.useCallback((e) => {
|
|
1531
1548
|
e !== w.current && (w.current = e, _(e));
|
|
1532
1549
|
}, []), x = r.useCallback((e) => {
|
|
1533
1550
|
e !== T.current && (T.current = e, y(e));
|
|
1534
|
-
}, []), S = o || g, C = s || v, w = r.useRef(null), T = r.useRef(null), E = r.useRef(d), D = l != null, O =
|
|
1551
|
+
}, []), S = o || g, C = s || v, w = r.useRef(null), T = r.useRef(null), E = r.useRef(d), D = l != null, O = Pn(l), k = Pn(a), A = Pn(u), j = r.useCallback(() => {
|
|
1535
1552
|
if (!w.current || !T.current) return;
|
|
1536
1553
|
let e = {
|
|
1537
1554
|
placement: t,
|
|
1538
1555
|
strategy: n,
|
|
1539
|
-
middleware:
|
|
1556
|
+
middleware: m
|
|
1540
1557
|
};
|
|
1541
|
-
k.current && (e.platform = k.current),
|
|
1558
|
+
k.current && (e.platform = k.current), kn(w.current, T.current, e).then((e) => {
|
|
1542
1559
|
let t = {
|
|
1543
1560
|
...e,
|
|
1544
1561
|
isPositioned: A.current !== !1
|
|
1545
1562
|
};
|
|
1546
|
-
M.current && !
|
|
1563
|
+
M.current && !jn(E.current, t) && (E.current = t, p.flushSync(() => {
|
|
1547
1564
|
f(t);
|
|
1548
1565
|
}));
|
|
1549
1566
|
});
|
|
1550
1567
|
}, [
|
|
1551
|
-
|
|
1568
|
+
m,
|
|
1552
1569
|
t,
|
|
1553
1570
|
n,
|
|
1554
1571
|
k,
|
|
1555
1572
|
A
|
|
1556
1573
|
]);
|
|
1557
|
-
|
|
1574
|
+
An(() => {
|
|
1558
1575
|
u === !1 && E.current.isPositioned && (E.current.isPositioned = !1, f((e) => ({
|
|
1559
1576
|
...e,
|
|
1560
1577
|
isPositioned: !1
|
|
1561
1578
|
})));
|
|
1562
1579
|
}, [u]);
|
|
1563
1580
|
let M = r.useRef(!1);
|
|
1564
|
-
|
|
1581
|
+
An(() => (M.current = !0, () => {
|
|
1565
1582
|
M.current = !1;
|
|
1566
|
-
}), []),
|
|
1583
|
+
}), []), An(() => {
|
|
1567
1584
|
if (S && (w.current = S), C && (T.current = C), S && C) {
|
|
1568
1585
|
if (O.current) return O.current(S, C, j);
|
|
1569
1586
|
j();
|
|
@@ -1583,18 +1600,18 @@ function In(e) {
|
|
|
1583
1600
|
}), [b, x]), P = r.useMemo(() => ({
|
|
1584
1601
|
reference: S,
|
|
1585
1602
|
floating: C
|
|
1586
|
-
}), [S, C]),
|
|
1603
|
+
}), [S, C]), ee = r.useMemo(() => {
|
|
1587
1604
|
let e = {
|
|
1588
1605
|
position: n,
|
|
1589
1606
|
left: 0,
|
|
1590
1607
|
top: 0
|
|
1591
1608
|
};
|
|
1592
1609
|
if (!P.floating) return e;
|
|
1593
|
-
let t =
|
|
1610
|
+
let t = Nn(P.floating, d.x), r = Nn(P.floating, d.y);
|
|
1594
1611
|
return c ? {
|
|
1595
1612
|
...e,
|
|
1596
1613
|
transform: "translate(" + t + "px, " + r + "px)",
|
|
1597
|
-
...
|
|
1614
|
+
...Mn(P.floating) >= 1.5 && { willChange: "transform" }
|
|
1598
1615
|
} : {
|
|
1599
1616
|
position: n,
|
|
1600
1617
|
left: t,
|
|
@@ -1612,16 +1629,16 @@ function In(e) {
|
|
|
1612
1629
|
update: j,
|
|
1613
1630
|
refs: N,
|
|
1614
1631
|
elements: P,
|
|
1615
|
-
floatingStyles:
|
|
1632
|
+
floatingStyles: ee
|
|
1616
1633
|
}), [
|
|
1617
1634
|
d,
|
|
1618
1635
|
j,
|
|
1619
1636
|
N,
|
|
1620
1637
|
P,
|
|
1621
|
-
|
|
1638
|
+
ee
|
|
1622
1639
|
]);
|
|
1623
1640
|
}
|
|
1624
|
-
var
|
|
1641
|
+
var In = (e) => {
|
|
1625
1642
|
function t(e) {
|
|
1626
1643
|
return {}.hasOwnProperty.call(e, "current");
|
|
1627
1644
|
}
|
|
@@ -1630,23 +1647,26 @@ var Ln = (e) => {
|
|
|
1630
1647
|
options: e,
|
|
1631
1648
|
fn(n) {
|
|
1632
1649
|
let { element: r, padding: i } = typeof e == "function" ? e(n) : e;
|
|
1633
|
-
return r && t(r) ? r.current == null ? {} :
|
|
1650
|
+
return r && t(r) ? r.current == null ? {} : Dn({
|
|
1634
1651
|
element: r.current,
|
|
1635
1652
|
padding: i
|
|
1636
|
-
}).fn(n) : r ?
|
|
1653
|
+
}).fn(n) : r ? Dn({
|
|
1637
1654
|
element: r,
|
|
1638
1655
|
padding: i
|
|
1639
1656
|
}).fn(n) : {};
|
|
1640
1657
|
}
|
|
1641
1658
|
};
|
|
1642
|
-
},
|
|
1659
|
+
}, Ln = (e, t) => ({
|
|
1660
|
+
...Sn(e),
|
|
1661
|
+
options: [e, t]
|
|
1662
|
+
}), Rn = (e, t) => ({
|
|
1643
1663
|
...Cn(e),
|
|
1644
1664
|
options: [e, t]
|
|
1645
1665
|
}), zn = (e, t) => ({
|
|
1646
|
-
...
|
|
1666
|
+
...On(e),
|
|
1647
1667
|
options: [e, t]
|
|
1648
1668
|
}), Bn = (e, t) => ({
|
|
1649
|
-
...
|
|
1669
|
+
...wn(e),
|
|
1650
1670
|
options: [e, t]
|
|
1651
1671
|
}), Vn = (e, t) => ({
|
|
1652
1672
|
...Tn(e),
|
|
@@ -1655,28 +1675,25 @@ var Ln = (e) => {
|
|
|
1655
1675
|
...En(e),
|
|
1656
1676
|
options: [e, t]
|
|
1657
1677
|
}), Un = (e, t) => ({
|
|
1658
|
-
...
|
|
1678
|
+
...In(e),
|
|
1659
1679
|
options: [e, t]
|
|
1660
|
-
}), Wn = (e, t) =>
|
|
1661
|
-
...Ln(e),
|
|
1662
|
-
options: [e, t]
|
|
1663
|
-
}), Gn = "Arrow", Kn = r.forwardRef((e, t) => {
|
|
1680
|
+
}), Wn = "Arrow", Gn = r.forwardRef((e, t) => {
|
|
1664
1681
|
let { children: n, width: r = 10, height: i = 5, ...a } = e;
|
|
1665
|
-
return /* @__PURE__ */
|
|
1682
|
+
return /* @__PURE__ */ u(N.svg, {
|
|
1666
1683
|
...a,
|
|
1667
1684
|
ref: t,
|
|
1668
1685
|
width: r,
|
|
1669
1686
|
height: i,
|
|
1670
1687
|
viewBox: "0 0 30 10",
|
|
1671
1688
|
preserveAspectRatio: "none",
|
|
1672
|
-
children: e.asChild ? n : /* @__PURE__ */
|
|
1689
|
+
children: e.asChild ? n : /* @__PURE__ */ u("polygon", { points: "0,0 30,0 15,10" })
|
|
1673
1690
|
});
|
|
1674
1691
|
});
|
|
1675
|
-
|
|
1676
|
-
var
|
|
1692
|
+
Gn.displayName = Wn;
|
|
1693
|
+
var Kn = Gn;
|
|
1677
1694
|
//#endregion
|
|
1678
1695
|
//#region ../../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
1679
|
-
function
|
|
1696
|
+
function qn(e) {
|
|
1680
1697
|
let [t, n] = r.useState(void 0);
|
|
1681
1698
|
return x(() => {
|
|
1682
1699
|
if (e) {
|
|
@@ -1703,126 +1720,126 @@ function Jn(e) {
|
|
|
1703
1720
|
}
|
|
1704
1721
|
//#endregion
|
|
1705
1722
|
//#region ../../node_modules/.pnpm/@radix-ui+react-popper@1.2.8_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
1706
|
-
var
|
|
1723
|
+
var Jn = "Popper", [Yn, Xn] = y(Jn), [Zn, Qn] = Yn(Jn), $n = (e) => {
|
|
1707
1724
|
let { __scopePopper: t, children: n } = e, [i, a] = r.useState(null);
|
|
1708
|
-
return /* @__PURE__ */
|
|
1725
|
+
return /* @__PURE__ */ u(Zn, {
|
|
1709
1726
|
scope: t,
|
|
1710
1727
|
anchor: i,
|
|
1711
1728
|
onAnchorChange: a,
|
|
1712
1729
|
children: n
|
|
1713
1730
|
});
|
|
1714
1731
|
};
|
|
1715
|
-
|
|
1716
|
-
var
|
|
1717
|
-
let { __scopePopper: n, virtualRef: i, ...a } = e, o =
|
|
1732
|
+
$n.displayName = Jn;
|
|
1733
|
+
var er = "PopperAnchor", tr = r.forwardRef((e, t) => {
|
|
1734
|
+
let { __scopePopper: n, virtualRef: i, ...a } = e, o = Qn(er, n), s = r.useRef(null), c = g(t, s), l = r.useRef(null);
|
|
1718
1735
|
return r.useEffect(() => {
|
|
1719
1736
|
let e = l.current;
|
|
1720
1737
|
l.current = i?.current || s.current, e !== l.current && o.onAnchorChange(l.current);
|
|
1721
|
-
}), i ? null : /* @__PURE__ */
|
|
1738
|
+
}), i ? null : /* @__PURE__ */ u(N.div, {
|
|
1722
1739
|
...a,
|
|
1723
1740
|
ref: c
|
|
1724
1741
|
});
|
|
1725
1742
|
});
|
|
1726
|
-
|
|
1727
|
-
var
|
|
1728
|
-
let { __scopePopper: n, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary:
|
|
1743
|
+
tr.displayName = er;
|
|
1744
|
+
var nr = "PopperContent", [rr, ir] = Yn(nr), ar = r.forwardRef((e, t) => {
|
|
1745
|
+
let { __scopePopper: n, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: d = [], collisionPadding: f = 0, sticky: p = "partial", hideWhenDetached: m = !1, updatePositionStrategy: h = "optimized", onPlaced: _, ...v } = e, y = Qn(nr, n), [b, S] = r.useState(null), C = g(t, (e) => S(e)), [w, T] = r.useState(null), E = qn(w), D = E?.width ?? 0, O = E?.height ?? 0, k = i + (o === "center" ? "" : "-" + o), A = typeof f == "number" ? f : {
|
|
1729
1746
|
top: 0,
|
|
1730
1747
|
right: 0,
|
|
1731
1748
|
bottom: 0,
|
|
1732
1749
|
left: 0,
|
|
1733
1750
|
...f
|
|
1734
|
-
}, j = Array.isArray(
|
|
1751
|
+
}, j = Array.isArray(d) ? d : [d], M = j.length > 0, P = {
|
|
1735
1752
|
padding: A,
|
|
1736
|
-
boundary: j.filter(
|
|
1753
|
+
boundary: j.filter(lr),
|
|
1737
1754
|
altBoundary: M
|
|
1738
|
-
}, { refs:
|
|
1755
|
+
}, { refs: ee, floatingStyles: te, placement: ne, isPositioned: re, middlewareData: ie } = Fn({
|
|
1739
1756
|
strategy: "fixed",
|
|
1740
1757
|
placement: k,
|
|
1741
|
-
whileElementsMounted: (...e) =>
|
|
1758
|
+
whileElementsMounted: (...e) => xn(...e, { animationFrame: h === "always" }),
|
|
1742
1759
|
elements: { reference: y.anchor },
|
|
1743
1760
|
middleware: [
|
|
1744
|
-
|
|
1761
|
+
Ln({
|
|
1745
1762
|
mainAxis: a + O,
|
|
1746
1763
|
alignmentAxis: s
|
|
1747
1764
|
}),
|
|
1748
|
-
l &&
|
|
1765
|
+
l && Rn({
|
|
1749
1766
|
mainAxis: !0,
|
|
1750
1767
|
crossAxis: !1,
|
|
1751
|
-
limiter: p === "partial" ?
|
|
1768
|
+
limiter: p === "partial" ? zn() : void 0,
|
|
1752
1769
|
...P
|
|
1753
1770
|
}),
|
|
1754
|
-
l &&
|
|
1755
|
-
|
|
1771
|
+
l && Bn({ ...P }),
|
|
1772
|
+
Vn({
|
|
1756
1773
|
...P,
|
|
1757
1774
|
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
1758
1775
|
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
1759
1776
|
o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
|
|
1760
1777
|
}
|
|
1761
1778
|
}),
|
|
1762
|
-
w &&
|
|
1779
|
+
w && Un({
|
|
1763
1780
|
element: w,
|
|
1764
1781
|
padding: c
|
|
1765
1782
|
}),
|
|
1766
|
-
|
|
1783
|
+
ur({
|
|
1767
1784
|
arrowWidth: D,
|
|
1768
1785
|
arrowHeight: O
|
|
1769
1786
|
}),
|
|
1770
|
-
m &&
|
|
1787
|
+
m && Hn({
|
|
1771
1788
|
strategy: "referenceHidden",
|
|
1772
1789
|
...P
|
|
1773
1790
|
})
|
|
1774
1791
|
]
|
|
1775
|
-
}), [
|
|
1792
|
+
}), [ae, oe] = dr(ne), se = F(_);
|
|
1776
1793
|
x(() => {
|
|
1777
|
-
|
|
1778
|
-
}, [
|
|
1779
|
-
let
|
|
1794
|
+
re && se?.();
|
|
1795
|
+
}, [re, se]);
|
|
1796
|
+
let ce = ie.arrow?.x, le = ie.arrow?.y, ue = ie.arrow?.centerOffset !== 0, [de, fe] = r.useState();
|
|
1780
1797
|
return x(() => {
|
|
1781
|
-
b &&
|
|
1782
|
-
}, [b]), /* @__PURE__ */
|
|
1783
|
-
ref:
|
|
1798
|
+
b && fe(window.getComputedStyle(b).zIndex);
|
|
1799
|
+
}, [b]), /* @__PURE__ */ u("div", {
|
|
1800
|
+
ref: ee.setFloating,
|
|
1784
1801
|
"data-radix-popper-content-wrapper": "",
|
|
1785
1802
|
style: {
|
|
1786
|
-
...
|
|
1787
|
-
transform:
|
|
1803
|
+
...te,
|
|
1804
|
+
transform: re ? te.transform : "translate(0, -200%)",
|
|
1788
1805
|
minWidth: "max-content",
|
|
1789
|
-
zIndex:
|
|
1790
|
-
"--radix-popper-transform-origin": [
|
|
1791
|
-
...
|
|
1806
|
+
zIndex: de,
|
|
1807
|
+
"--radix-popper-transform-origin": [ie.transformOrigin?.x, ie.transformOrigin?.y].join(" "),
|
|
1808
|
+
...ie.hide?.referenceHidden && {
|
|
1792
1809
|
visibility: "hidden",
|
|
1793
1810
|
pointerEvents: "none"
|
|
1794
1811
|
}
|
|
1795
1812
|
},
|
|
1796
1813
|
dir: e.dir,
|
|
1797
|
-
children: /* @__PURE__ */
|
|
1814
|
+
children: /* @__PURE__ */ u(rr, {
|
|
1798
1815
|
scope: n,
|
|
1799
|
-
placedSide:
|
|
1816
|
+
placedSide: ae,
|
|
1800
1817
|
onArrowChange: T,
|
|
1801
|
-
arrowX:
|
|
1802
|
-
arrowY:
|
|
1803
|
-
shouldHideArrow:
|
|
1804
|
-
children: /* @__PURE__ */
|
|
1805
|
-
"data-side":
|
|
1806
|
-
"data-align":
|
|
1818
|
+
arrowX: ce,
|
|
1819
|
+
arrowY: le,
|
|
1820
|
+
shouldHideArrow: ue,
|
|
1821
|
+
children: /* @__PURE__ */ u(N.div, {
|
|
1822
|
+
"data-side": ae,
|
|
1823
|
+
"data-align": oe,
|
|
1807
1824
|
...v,
|
|
1808
1825
|
ref: C,
|
|
1809
1826
|
style: {
|
|
1810
1827
|
...v.style,
|
|
1811
|
-
animation:
|
|
1828
|
+
animation: re ? void 0 : "none"
|
|
1812
1829
|
}
|
|
1813
1830
|
})
|
|
1814
1831
|
})
|
|
1815
1832
|
});
|
|
1816
1833
|
});
|
|
1817
|
-
|
|
1818
|
-
var
|
|
1834
|
+
ar.displayName = nr;
|
|
1835
|
+
var or = "PopperArrow", sr = {
|
|
1819
1836
|
top: "bottom",
|
|
1820
1837
|
right: "left",
|
|
1821
1838
|
bottom: "top",
|
|
1822
1839
|
left: "right"
|
|
1823
|
-
},
|
|
1824
|
-
let { __scopePopper: n, ...r } = e, i =
|
|
1825
|
-
return /* @__PURE__ */
|
|
1840
|
+
}, cr = r.forwardRef(function(e, t) {
|
|
1841
|
+
let { __scopePopper: n, ...r } = e, i = ir(or, n), a = sr[i.placedSide];
|
|
1842
|
+
return /* @__PURE__ */ u("span", {
|
|
1826
1843
|
ref: i.onArrowChange,
|
|
1827
1844
|
style: {
|
|
1828
1845
|
position: "absolute",
|
|
@@ -1843,7 +1860,7 @@ var sr = "PopperArrow", cr = {
|
|
|
1843
1860
|
}[i.placedSide],
|
|
1844
1861
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
1845
1862
|
},
|
|
1846
|
-
children: /* @__PURE__ */
|
|
1863
|
+
children: /* @__PURE__ */ u(Kn, {
|
|
1847
1864
|
...r,
|
|
1848
1865
|
ref: t,
|
|
1849
1866
|
style: {
|
|
@@ -1853,15 +1870,15 @@ var sr = "PopperArrow", cr = {
|
|
|
1853
1870
|
})
|
|
1854
1871
|
});
|
|
1855
1872
|
});
|
|
1856
|
-
|
|
1857
|
-
function
|
|
1873
|
+
cr.displayName = or;
|
|
1874
|
+
function lr(e) {
|
|
1858
1875
|
return e !== null;
|
|
1859
1876
|
}
|
|
1860
|
-
var
|
|
1877
|
+
var ur = (e) => ({
|
|
1861
1878
|
name: "transformOrigin",
|
|
1862
1879
|
options: e,
|
|
1863
1880
|
fn(t) {
|
|
1864
|
-
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] =
|
|
1881
|
+
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = dr(n), u = {
|
|
1865
1882
|
start: "0%",
|
|
1866
1883
|
center: "50%",
|
|
1867
1884
|
end: "100%"
|
|
@@ -1872,32 +1889,32 @@ var dr = (e) => ({
|
|
|
1872
1889
|
} };
|
|
1873
1890
|
}
|
|
1874
1891
|
});
|
|
1875
|
-
function
|
|
1892
|
+
function dr(e) {
|
|
1876
1893
|
let [t, n = "center"] = e.split("-");
|
|
1877
1894
|
return [t, n];
|
|
1878
1895
|
}
|
|
1879
|
-
var
|
|
1896
|
+
var fr = $n, pr = tr, mr = ar, hr = cr, gr = "Portal", _r = r.forwardRef((e, t) => {
|
|
1880
1897
|
let { container: n, ...i } = e, [a, o] = r.useState(!1);
|
|
1881
1898
|
x(() => o(!0), []);
|
|
1882
1899
|
let s = n || a && globalThis?.document?.body;
|
|
1883
|
-
return s ?
|
|
1900
|
+
return s ? f.createPortal(/* @__PURE__ */ u(N.div, {
|
|
1884
1901
|
...i,
|
|
1885
1902
|
ref: t
|
|
1886
1903
|
}), s) : null;
|
|
1887
1904
|
});
|
|
1888
|
-
|
|
1905
|
+
_r.displayName = gr;
|
|
1889
1906
|
//#endregion
|
|
1890
1907
|
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
1891
|
-
function
|
|
1908
|
+
function vr(e, t) {
|
|
1892
1909
|
return r.useReducer((e, n) => t[e][n] ?? e, e);
|
|
1893
1910
|
}
|
|
1894
|
-
var
|
|
1895
|
-
let { present: t, children: n } = e, i =
|
|
1911
|
+
var Y = (e) => {
|
|
1912
|
+
let { present: t, children: n } = e, i = yr(t), a = typeof n == "function" ? n({ present: i.isPresent }) : r.Children.only(n), o = g(i.ref, xr(a));
|
|
1896
1913
|
return typeof n == "function" || i.isPresent ? r.cloneElement(a, { ref: o }) : null;
|
|
1897
1914
|
};
|
|
1898
|
-
|
|
1899
|
-
function
|
|
1900
|
-
let [t, n] = r.useState(), i = r.useRef(null), a = r.useRef(e), o = r.useRef("none"), [s, c] =
|
|
1915
|
+
Y.displayName = "Presence";
|
|
1916
|
+
function yr(e) {
|
|
1917
|
+
let [t, n] = r.useState(), i = r.useRef(null), a = r.useRef(e), o = r.useRef("none"), [s, c] = vr(e ? "mounted" : "unmounted", {
|
|
1901
1918
|
mounted: {
|
|
1902
1919
|
UNMOUNT: "unmounted",
|
|
1903
1920
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -1909,18 +1926,18 @@ function xr(e) {
|
|
|
1909
1926
|
unmounted: { MOUNT: "mounted" }
|
|
1910
1927
|
});
|
|
1911
1928
|
return r.useEffect(() => {
|
|
1912
|
-
let e =
|
|
1929
|
+
let e = br(i.current);
|
|
1913
1930
|
o.current = s === "mounted" ? e : "none";
|
|
1914
1931
|
}, [s]), x(() => {
|
|
1915
1932
|
let t = i.current, n = a.current;
|
|
1916
1933
|
if (n !== e) {
|
|
1917
|
-
let r = o.current, i =
|
|
1934
|
+
let r = o.current, i = br(t);
|
|
1918
1935
|
e ? c("MOUNT") : i === "none" || t?.display === "none" ? c("UNMOUNT") : c(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), a.current = e;
|
|
1919
1936
|
}
|
|
1920
1937
|
}, [e, c]), x(() => {
|
|
1921
1938
|
if (t) {
|
|
1922
1939
|
let e, n = t.ownerDocument.defaultView ?? window, r = (r) => {
|
|
1923
|
-
let o =
|
|
1940
|
+
let o = br(i.current).includes(CSS.escape(r.animationName));
|
|
1924
1941
|
if (r.target === t && o && (c("ANIMATION_END"), !a.current)) {
|
|
1925
1942
|
let r = t.style.animationFillMode;
|
|
1926
1943
|
t.style.animationFillMode = "forwards", e = n.setTimeout(() => {
|
|
@@ -1928,7 +1945,7 @@ function xr(e) {
|
|
|
1928
1945
|
});
|
|
1929
1946
|
}
|
|
1930
1947
|
}, s = (e) => {
|
|
1931
|
-
e.target === t && (o.current =
|
|
1948
|
+
e.target === t && (o.current = br(i.current));
|
|
1932
1949
|
};
|
|
1933
1950
|
return t.addEventListener("animationstart", s), t.addEventListener("animationcancel", r), t.addEventListener("animationend", r), () => {
|
|
1934
1951
|
n.clearTimeout(e), t.removeEventListener("animationstart", s), t.removeEventListener("animationcancel", r), t.removeEventListener("animationend", r);
|
|
@@ -1942,50 +1959,50 @@ function xr(e) {
|
|
|
1942
1959
|
}, [])
|
|
1943
1960
|
};
|
|
1944
1961
|
}
|
|
1945
|
-
function
|
|
1962
|
+
function br(e) {
|
|
1946
1963
|
return e?.animationName || "none";
|
|
1947
1964
|
}
|
|
1948
|
-
function
|
|
1965
|
+
function xr(e) {
|
|
1949
1966
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
1950
1967
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
1951
1968
|
}
|
|
1952
1969
|
//#endregion
|
|
1953
1970
|
//#region ../../node_modules/.pnpm/@radix-ui+react-roving-focus@1.1.11_@types+react-dom@18.3.1_@types+react@18.3.18_react-_5a38b86f3cf460fc62cbabc7e38e59fb/node_modules/@radix-ui/react-roving-focus/dist/index.mjs
|
|
1954
|
-
var
|
|
1971
|
+
var Sr = "rovingFocusGroup.onEntryFocus", Cr = {
|
|
1955
1972
|
bubbles: !1,
|
|
1956
1973
|
cancelable: !0
|
|
1957
|
-
},
|
|
1974
|
+
}, wr = "RovingFocusGroup", [Tr, Er, Dr] = ee(wr), [Or, kr] = y(wr, [Dr]), [Ar, jr] = Or(wr), Mr = r.forwardRef((e, t) => /* @__PURE__ */ u(Tr.Provider, {
|
|
1958
1975
|
scope: e.__scopeRovingFocusGroup,
|
|
1959
|
-
children: /* @__PURE__ */
|
|
1976
|
+
children: /* @__PURE__ */ u(Tr.Slot, {
|
|
1960
1977
|
scope: e.__scopeRovingFocusGroup,
|
|
1961
|
-
children: /* @__PURE__ */
|
|
1978
|
+
children: /* @__PURE__ */ u(Nr, {
|
|
1962
1979
|
...e,
|
|
1963
1980
|
ref: t
|
|
1964
1981
|
})
|
|
1965
1982
|
})
|
|
1966
1983
|
}));
|
|
1967
|
-
|
|
1968
|
-
var
|
|
1969
|
-
let { __scopeRovingFocusGroup: n, orientation: i, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus:
|
|
1984
|
+
Mr.displayName = wr;
|
|
1985
|
+
var Nr = r.forwardRef((e, t) => {
|
|
1986
|
+
let { __scopeRovingFocusGroup: n, orientation: i, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: d, preventScrollOnEntryFocus: f = !1, ...p } = e, m = r.useRef(null), h = g(t, m), v = ne(o), [y, b] = C({
|
|
1970
1987
|
prop: s,
|
|
1971
1988
|
defaultProp: c ?? null,
|
|
1972
1989
|
onChange: l,
|
|
1973
|
-
caller:
|
|
1974
|
-
}), [x, S] = r.useState(!1), w =
|
|
1990
|
+
caller: wr
|
|
1991
|
+
}), [x, S] = r.useState(!1), w = F(d), T = Er(n), E = r.useRef(!1), [D, O] = r.useState(0);
|
|
1975
1992
|
return r.useEffect(() => {
|
|
1976
1993
|
let e = m.current;
|
|
1977
|
-
if (e) return e.addEventListener(
|
|
1978
|
-
}, [w]), /* @__PURE__ */
|
|
1994
|
+
if (e) return e.addEventListener(Sr, w), () => e.removeEventListener(Sr, w);
|
|
1995
|
+
}, [w]), /* @__PURE__ */ u(Ar, {
|
|
1979
1996
|
scope: n,
|
|
1980
1997
|
orientation: i,
|
|
1981
|
-
dir:
|
|
1998
|
+
dir: v,
|
|
1982
1999
|
loop: a,
|
|
1983
2000
|
currentTabStopId: y,
|
|
1984
2001
|
onItemFocus: r.useCallback((e) => b(e), [b]),
|
|
1985
2002
|
onItemShiftTab: r.useCallback(() => S(!0), []),
|
|
1986
2003
|
onFocusableItemAdd: r.useCallback(() => O((e) => e + 1), []),
|
|
1987
2004
|
onFocusableItemRemove: r.useCallback(() => O((e) => e - 1), []),
|
|
1988
|
-
children: /* @__PURE__ */
|
|
2005
|
+
children: /* @__PURE__ */ u(N.div, {
|
|
1989
2006
|
tabIndex: x || D === 0 ? -1 : 0,
|
|
1990
2007
|
"data-orientation": i,
|
|
1991
2008
|
...p,
|
|
@@ -1994,16 +2011,16 @@ var Fr = r.forwardRef((e, t) => {
|
|
|
1994
2011
|
outline: "none",
|
|
1995
2012
|
...e.style
|
|
1996
2013
|
},
|
|
1997
|
-
onMouseDown:
|
|
2014
|
+
onMouseDown: _(e.onMouseDown, () => {
|
|
1998
2015
|
E.current = !0;
|
|
1999
2016
|
}),
|
|
2000
|
-
onFocus:
|
|
2017
|
+
onFocus: _(e.onFocus, (e) => {
|
|
2001
2018
|
let t = !E.current;
|
|
2002
2019
|
if (e.target === e.currentTarget && t && !x) {
|
|
2003
|
-
let t = new CustomEvent(
|
|
2020
|
+
let t = new CustomEvent(Sr, Cr);
|
|
2004
2021
|
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
2005
2022
|
let e = T().filter((e) => e.focusable);
|
|
2006
|
-
|
|
2023
|
+
zr([
|
|
2007
2024
|
e.find((e) => e.active),
|
|
2008
2025
|
e.find((e) => e.id === y),
|
|
2009
2026
|
...e
|
|
@@ -2012,38 +2029,38 @@ var Fr = r.forwardRef((e, t) => {
|
|
|
2012
2029
|
}
|
|
2013
2030
|
E.current = !1;
|
|
2014
2031
|
}),
|
|
2015
|
-
onBlur:
|
|
2032
|
+
onBlur: _(e.onBlur, () => S(!1))
|
|
2016
2033
|
})
|
|
2017
2034
|
});
|
|
2018
|
-
}),
|
|
2019
|
-
let { __scopeRovingFocusGroup: n, focusable: i = !0, active: a = !1, tabStopId: o, children: s, ...c } = e, l =
|
|
2035
|
+
}), Pr = "RovingFocusGroupItem", Fr = r.forwardRef((e, t) => {
|
|
2036
|
+
let { __scopeRovingFocusGroup: n, focusable: i = !0, active: a = !1, tabStopId: o, children: s, ...c } = e, l = Le(), d = o || l, f = jr(Pr, n), p = f.currentTabStopId === d, m = Er(n), { onFocusableItemAdd: h, onFocusableItemRemove: g, currentTabStopId: v } = f;
|
|
2020
2037
|
return r.useEffect(() => {
|
|
2021
2038
|
if (i) return h(), () => g();
|
|
2022
2039
|
}, [
|
|
2023
2040
|
i,
|
|
2024
2041
|
h,
|
|
2025
2042
|
g
|
|
2026
|
-
]), /* @__PURE__ */
|
|
2043
|
+
]), /* @__PURE__ */ u(Tr.ItemSlot, {
|
|
2027
2044
|
scope: n,
|
|
2028
|
-
id:
|
|
2045
|
+
id: d,
|
|
2029
2046
|
focusable: i,
|
|
2030
2047
|
active: a,
|
|
2031
|
-
children: /* @__PURE__ */
|
|
2048
|
+
children: /* @__PURE__ */ u(N.span, {
|
|
2032
2049
|
tabIndex: p ? 0 : -1,
|
|
2033
2050
|
"data-orientation": f.orientation,
|
|
2034
2051
|
...c,
|
|
2035
2052
|
ref: t,
|
|
2036
|
-
onMouseDown:
|
|
2037
|
-
i ? f.onItemFocus(
|
|
2053
|
+
onMouseDown: _(e.onMouseDown, (e) => {
|
|
2054
|
+
i ? f.onItemFocus(d) : e.preventDefault();
|
|
2038
2055
|
}),
|
|
2039
|
-
onFocus:
|
|
2040
|
-
onKeyDown:
|
|
2056
|
+
onFocus: _(e.onFocus, () => f.onItemFocus(d)),
|
|
2057
|
+
onKeyDown: _(e.onKeyDown, (e) => {
|
|
2041
2058
|
if (e.key === "Tab" && e.shiftKey) {
|
|
2042
2059
|
f.onItemShiftTab();
|
|
2043
2060
|
return;
|
|
2044
2061
|
}
|
|
2045
2062
|
if (e.target !== e.currentTarget) return;
|
|
2046
|
-
let t =
|
|
2063
|
+
let t = Rr(e, f.orientation, f.dir);
|
|
2047
2064
|
if (t !== void 0) {
|
|
2048
2065
|
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
2049
2066
|
e.preventDefault();
|
|
@@ -2052,20 +2069,20 @@ var Fr = r.forwardRef((e, t) => {
|
|
|
2052
2069
|
else if (t === "prev" || t === "next") {
|
|
2053
2070
|
t === "prev" && n.reverse();
|
|
2054
2071
|
let r = n.indexOf(e.currentTarget);
|
|
2055
|
-
n = f.loop ?
|
|
2072
|
+
n = f.loop ? Br(n, r + 1) : n.slice(r + 1);
|
|
2056
2073
|
}
|
|
2057
|
-
setTimeout(() =>
|
|
2074
|
+
setTimeout(() => zr(n));
|
|
2058
2075
|
}
|
|
2059
2076
|
}),
|
|
2060
2077
|
children: typeof s == "function" ? s({
|
|
2061
2078
|
isCurrentTabStop: p,
|
|
2062
|
-
hasTabStop:
|
|
2079
|
+
hasTabStop: v != null
|
|
2063
2080
|
}) : s
|
|
2064
2081
|
})
|
|
2065
2082
|
});
|
|
2066
2083
|
});
|
|
2067
|
-
|
|
2068
|
-
var
|
|
2084
|
+
Fr.displayName = Pr;
|
|
2085
|
+
var Ir = {
|
|
2069
2086
|
ArrowLeft: "prev",
|
|
2070
2087
|
ArrowUp: "prev",
|
|
2071
2088
|
ArrowRight: "next",
|
|
@@ -2075,36 +2092,36 @@ var Rr = {
|
|
|
2075
2092
|
PageDown: "last",
|
|
2076
2093
|
End: "last"
|
|
2077
2094
|
};
|
|
2078
|
-
function
|
|
2095
|
+
function Lr(e, t) {
|
|
2079
2096
|
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
2080
2097
|
}
|
|
2081
|
-
function
|
|
2082
|
-
let r =
|
|
2083
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return
|
|
2098
|
+
function Rr(e, t, n) {
|
|
2099
|
+
let r = Lr(e.key, n);
|
|
2100
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return Ir[r];
|
|
2084
2101
|
}
|
|
2085
|
-
function
|
|
2102
|
+
function zr(e, t = !1) {
|
|
2086
2103
|
let n = document.activeElement;
|
|
2087
2104
|
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
2088
2105
|
}
|
|
2089
|
-
function
|
|
2106
|
+
function Br(e, t) {
|
|
2090
2107
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
2091
2108
|
}
|
|
2092
|
-
var
|
|
2109
|
+
var Vr = Mr, Hr = Fr, Ur = function(e) {
|
|
2093
2110
|
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
2094
|
-
},
|
|
2095
|
-
return e && (e.host ||
|
|
2096
|
-
},
|
|
2111
|
+
}, Wr = /* @__PURE__ */ new WeakMap(), Gr = /* @__PURE__ */ new WeakMap(), Kr = {}, qr = 0, Jr = function(e) {
|
|
2112
|
+
return e && (e.host || Jr(e.parentNode));
|
|
2113
|
+
}, Yr = function(e, t) {
|
|
2097
2114
|
return t.map(function(t) {
|
|
2098
2115
|
if (e.contains(t)) return t;
|
|
2099
|
-
var n =
|
|
2116
|
+
var n = Jr(t);
|
|
2100
2117
|
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
2101
2118
|
}).filter(function(e) {
|
|
2102
2119
|
return !!e;
|
|
2103
2120
|
});
|
|
2104
|
-
},
|
|
2105
|
-
var i =
|
|
2106
|
-
|
|
2107
|
-
var a =
|
|
2121
|
+
}, Xr = function(e, t, n, r) {
|
|
2122
|
+
var i = Yr(t, Array.isArray(e) ? e : [e]);
|
|
2123
|
+
Kr[n] || (Kr[n] = /* @__PURE__ */ new WeakMap());
|
|
2124
|
+
var a = Kr[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
2108
2125
|
e && !s.has(e) && (s.add(e), l(e.parentNode));
|
|
2109
2126
|
};
|
|
2110
2127
|
i.forEach(l);
|
|
@@ -2112,52 +2129,52 @@ var Ur = Pr, Wr = Lr, Gr = function(e) {
|
|
|
2112
2129
|
e && !c.has(e) && Array.prototype.forEach.call(e.children, function(e) {
|
|
2113
2130
|
if (s.has(e)) u(e);
|
|
2114
2131
|
else try {
|
|
2115
|
-
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (
|
|
2116
|
-
|
|
2132
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (Wr.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
2133
|
+
Wr.set(e, c), a.set(e, l), o.push(e), c === 1 && i && Gr.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
2117
2134
|
} catch (t) {
|
|
2118
2135
|
console.error("aria-hidden: cannot operate on ", e, t);
|
|
2119
2136
|
}
|
|
2120
2137
|
});
|
|
2121
2138
|
};
|
|
2122
|
-
return u(t), s.clear(),
|
|
2139
|
+
return u(t), s.clear(), qr++, function() {
|
|
2123
2140
|
o.forEach(function(e) {
|
|
2124
|
-
var t =
|
|
2125
|
-
|
|
2126
|
-
}),
|
|
2141
|
+
var t = Wr.get(e) - 1, i = a.get(e) - 1;
|
|
2142
|
+
Wr.set(e, t), a.set(e, i), t || (Gr.has(e) || e.removeAttribute(r), Gr.delete(e)), i || e.removeAttribute(n);
|
|
2143
|
+
}), qr--, qr || (Wr = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), Gr = /* @__PURE__ */ new WeakMap(), Kr = {});
|
|
2127
2144
|
};
|
|
2128
|
-
},
|
|
2145
|
+
}, Zr = function(e, t, n) {
|
|
2129
2146
|
n === void 0 && (n = "data-aria-hidden");
|
|
2130
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), i = t ||
|
|
2131
|
-
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))),
|
|
2147
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Ur(e);
|
|
2148
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Xr(r, i, n, "aria-hidden")) : function() {
|
|
2132
2149
|
return null;
|
|
2133
2150
|
};
|
|
2134
|
-
},
|
|
2135
|
-
return
|
|
2151
|
+
}, X = function() {
|
|
2152
|
+
return X = Object.assign || function(e) {
|
|
2136
2153
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
2137
2154
|
return e;
|
|
2138
|
-
},
|
|
2155
|
+
}, X.apply(this, arguments);
|
|
2139
2156
|
};
|
|
2140
|
-
function
|
|
2157
|
+
function Qr(e, t) {
|
|
2141
2158
|
var n = {};
|
|
2142
2159
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2143
2160
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
2144
2161
|
return n;
|
|
2145
2162
|
}
|
|
2146
|
-
function
|
|
2163
|
+
function $r(e, t, n) {
|
|
2147
2164
|
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
2148
2165
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
2149
2166
|
}
|
|
2150
2167
|
//#endregion
|
|
2151
2168
|
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
2152
|
-
var
|
|
2169
|
+
var ei = "right-scroll-bar-position", ti = "width-before-scroll-bar", ni = "with-scroll-bars-hidden", ri = "--removed-body-scroll-bar-size";
|
|
2153
2170
|
//#endregion
|
|
2154
2171
|
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
2155
|
-
function
|
|
2172
|
+
function ii(e, t) {
|
|
2156
2173
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2157
2174
|
}
|
|
2158
2175
|
//#endregion
|
|
2159
2176
|
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
2160
|
-
function
|
|
2177
|
+
function ai(e, t) {
|
|
2161
2178
|
var n = l(function() {
|
|
2162
2179
|
return {
|
|
2163
2180
|
value: e,
|
|
@@ -2177,33 +2194,33 @@ function si(e, t) {
|
|
|
2177
2194
|
}
|
|
2178
2195
|
//#endregion
|
|
2179
2196
|
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
2180
|
-
var
|
|
2181
|
-
function
|
|
2182
|
-
var n =
|
|
2197
|
+
var oi = typeof window < "u" ? r.useLayoutEffect : r.useEffect, si = /* @__PURE__ */ new WeakMap();
|
|
2198
|
+
function ci(e, t) {
|
|
2199
|
+
var n = ai(t || null, function(t) {
|
|
2183
2200
|
return e.forEach(function(e) {
|
|
2184
|
-
return
|
|
2201
|
+
return ii(e, t);
|
|
2185
2202
|
});
|
|
2186
2203
|
});
|
|
2187
|
-
return
|
|
2188
|
-
var t =
|
|
2204
|
+
return oi(function() {
|
|
2205
|
+
var t = si.get(n);
|
|
2189
2206
|
if (t) {
|
|
2190
2207
|
var r = new Set(t), i = new Set(e), a = n.current;
|
|
2191
2208
|
r.forEach(function(e) {
|
|
2192
|
-
i.has(e) ||
|
|
2209
|
+
i.has(e) || ii(e, null);
|
|
2193
2210
|
}), i.forEach(function(e) {
|
|
2194
|
-
r.has(e) ||
|
|
2211
|
+
r.has(e) || ii(e, a);
|
|
2195
2212
|
});
|
|
2196
2213
|
}
|
|
2197
|
-
|
|
2214
|
+
si.set(n, e);
|
|
2198
2215
|
}, [e]), n;
|
|
2199
2216
|
}
|
|
2200
2217
|
//#endregion
|
|
2201
2218
|
//#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@18.3.18_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.js
|
|
2202
|
-
function
|
|
2219
|
+
function li(e) {
|
|
2203
2220
|
return e;
|
|
2204
2221
|
}
|
|
2205
|
-
function
|
|
2206
|
-
t === void 0 && (t =
|
|
2222
|
+
function ui(e, t) {
|
|
2223
|
+
t === void 0 && (t = li);
|
|
2207
2224
|
var n = [], r = !1;
|
|
2208
2225
|
return {
|
|
2209
2226
|
read: function() {
|
|
@@ -2256,35 +2273,35 @@ function fi(e, t) {
|
|
|
2256
2273
|
}
|
|
2257
2274
|
};
|
|
2258
2275
|
}
|
|
2259
|
-
function
|
|
2276
|
+
function di(e) {
|
|
2260
2277
|
e === void 0 && (e = {});
|
|
2261
|
-
var t =
|
|
2262
|
-
return t.options =
|
|
2278
|
+
var t = ui(null);
|
|
2279
|
+
return t.options = X({
|
|
2263
2280
|
async: !0,
|
|
2264
2281
|
ssr: !1
|
|
2265
2282
|
}, e), t;
|
|
2266
2283
|
}
|
|
2267
2284
|
//#endregion
|
|
2268
2285
|
//#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@18.3.18_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.js
|
|
2269
|
-
var
|
|
2270
|
-
var t = e.sideCar, n =
|
|
2286
|
+
var fi = function(e) {
|
|
2287
|
+
var t = e.sideCar, n = Qr(e, ["sideCar"]);
|
|
2271
2288
|
if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
2272
2289
|
var i = t.read();
|
|
2273
2290
|
if (!i) throw Error("Sidecar medium not found");
|
|
2274
|
-
return r.createElement(i,
|
|
2291
|
+
return r.createElement(i, X({}, n));
|
|
2275
2292
|
};
|
|
2276
|
-
|
|
2277
|
-
function
|
|
2278
|
-
return e.useMedium(t),
|
|
2293
|
+
fi.isSideCarExport = !0;
|
|
2294
|
+
function pi(e, t) {
|
|
2295
|
+
return e.useMedium(t), fi;
|
|
2279
2296
|
}
|
|
2280
2297
|
//#endregion
|
|
2281
2298
|
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
2282
|
-
var
|
|
2299
|
+
var mi = di(), hi = function() {}, gi = r.forwardRef(function(e, t) {
|
|
2283
2300
|
var n = r.useRef(null), i = r.useState({
|
|
2284
|
-
onScrollCapture:
|
|
2285
|
-
onWheelCapture:
|
|
2286
|
-
onTouchMoveCapture:
|
|
2287
|
-
}), a = i[0], o = i[1], s = e.forwardProps, c = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, p = e.sideCar, m = e.noRelative, h = e.noIsolation, g = e.inert, _ = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, b = e.gapMode, x =
|
|
2301
|
+
onScrollCapture: hi,
|
|
2302
|
+
onWheelCapture: hi,
|
|
2303
|
+
onTouchMoveCapture: hi
|
|
2304
|
+
}), a = i[0], o = i[1], s = e.forwardProps, c = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, p = e.sideCar, m = e.noRelative, h = e.noIsolation, g = e.inert, _ = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, b = e.gapMode, x = Qr(e, [
|
|
2288
2305
|
"forwardProps",
|
|
2289
2306
|
"children",
|
|
2290
2307
|
"className",
|
|
@@ -2298,9 +2315,9 @@ var gi = pi(), _i = function() {}, vi = r.forwardRef(function(e, t) {
|
|
|
2298
2315
|
"allowPinchZoom",
|
|
2299
2316
|
"as",
|
|
2300
2317
|
"gapMode"
|
|
2301
|
-
]), S = p, C =
|
|
2318
|
+
]), S = p, C = ci([n, t]), w = X(X({}, x), a);
|
|
2302
2319
|
return r.createElement(r.Fragment, null, d && r.createElement(S, {
|
|
2303
|
-
sideCar:
|
|
2320
|
+
sideCar: mi,
|
|
2304
2321
|
removeScrollBar: u,
|
|
2305
2322
|
shards: f,
|
|
2306
2323
|
noRelative: m,
|
|
@@ -2310,51 +2327,51 @@ var gi = pi(), _i = function() {}, vi = r.forwardRef(function(e, t) {
|
|
|
2310
2327
|
allowPinchZoom: !!_,
|
|
2311
2328
|
lockRef: n,
|
|
2312
2329
|
gapMode: b
|
|
2313
|
-
}), s ? r.cloneElement(r.Children.only(c),
|
|
2330
|
+
}), s ? r.cloneElement(r.Children.only(c), X(X({}, w), { ref: C })) : r.createElement(y, X({}, w, {
|
|
2314
2331
|
className: l,
|
|
2315
2332
|
ref: C
|
|
2316
2333
|
}), c));
|
|
2317
2334
|
});
|
|
2318
|
-
|
|
2335
|
+
gi.defaultProps = {
|
|
2319
2336
|
enabled: !0,
|
|
2320
2337
|
removeScrollBar: !0,
|
|
2321
2338
|
inert: !1
|
|
2322
|
-
},
|
|
2323
|
-
fullWidth:
|
|
2324
|
-
zeroRight:
|
|
2339
|
+
}, gi.classNames = {
|
|
2340
|
+
fullWidth: ti,
|
|
2341
|
+
zeroRight: ei
|
|
2325
2342
|
};
|
|
2326
2343
|
//#endregion
|
|
2327
2344
|
//#region ../../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
|
|
2328
|
-
var
|
|
2345
|
+
var _i = function() {
|
|
2329
2346
|
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
2330
2347
|
};
|
|
2331
2348
|
//#endregion
|
|
2332
2349
|
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
2333
|
-
function
|
|
2350
|
+
function vi() {
|
|
2334
2351
|
if (!document) return null;
|
|
2335
2352
|
var e = document.createElement("style");
|
|
2336
2353
|
e.type = "text/css";
|
|
2337
|
-
var t =
|
|
2354
|
+
var t = _i();
|
|
2338
2355
|
return t && e.setAttribute("nonce", t), e;
|
|
2339
2356
|
}
|
|
2340
|
-
function
|
|
2357
|
+
function yi(e, t) {
|
|
2341
2358
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
2342
2359
|
}
|
|
2343
|
-
function
|
|
2360
|
+
function bi(e) {
|
|
2344
2361
|
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
2345
2362
|
}
|
|
2346
|
-
var
|
|
2363
|
+
var xi = function() {
|
|
2347
2364
|
var e = 0, t = null;
|
|
2348
2365
|
return {
|
|
2349
2366
|
add: function(n) {
|
|
2350
|
-
e == 0 && (t =
|
|
2367
|
+
e == 0 && (t = vi()) && (yi(t, n), bi(t)), e++;
|
|
2351
2368
|
},
|
|
2352
2369
|
remove: function() {
|
|
2353
2370
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
2354
2371
|
}
|
|
2355
2372
|
};
|
|
2356
|
-
},
|
|
2357
|
-
var e =
|
|
2373
|
+
}, Si = function() {
|
|
2374
|
+
var e = xi();
|
|
2358
2375
|
return function(t, n) {
|
|
2359
2376
|
r.useEffect(function() {
|
|
2360
2377
|
return e.add(t), function() {
|
|
@@ -2362,43 +2379,43 @@ var Ci = function() {
|
|
|
2362
2379
|
};
|
|
2363
2380
|
}, [t && n]);
|
|
2364
2381
|
};
|
|
2365
|
-
},
|
|
2366
|
-
var e =
|
|
2382
|
+
}, Ci = function() {
|
|
2383
|
+
var e = Si();
|
|
2367
2384
|
return function(t) {
|
|
2368
2385
|
var n = t.styles, r = t.dynamic;
|
|
2369
2386
|
return e(n, r), null;
|
|
2370
2387
|
};
|
|
2371
|
-
},
|
|
2388
|
+
}, wi = {
|
|
2372
2389
|
left: 0,
|
|
2373
2390
|
top: 0,
|
|
2374
2391
|
right: 0,
|
|
2375
2392
|
gap: 0
|
|
2376
|
-
},
|
|
2393
|
+
}, Ti = function(e) {
|
|
2377
2394
|
return parseInt(e || "", 10) || 0;
|
|
2378
|
-
},
|
|
2395
|
+
}, Ei = function(e) {
|
|
2379
2396
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
2380
2397
|
return [
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2398
|
+
Ti(n),
|
|
2399
|
+
Ti(r),
|
|
2400
|
+
Ti(i)
|
|
2384
2401
|
];
|
|
2385
|
-
},
|
|
2386
|
-
if (e === void 0 && (e = "margin"), typeof window > "u") return
|
|
2387
|
-
var t =
|
|
2402
|
+
}, Di = function(e) {
|
|
2403
|
+
if (e === void 0 && (e = "margin"), typeof window > "u") return wi;
|
|
2404
|
+
var t = Ei(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
2388
2405
|
return {
|
|
2389
2406
|
left: t[0],
|
|
2390
2407
|
top: t[1],
|
|
2391
2408
|
right: t[2],
|
|
2392
2409
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
2393
2410
|
};
|
|
2394
|
-
},
|
|
2411
|
+
}, Oi = Ci(), ki = "data-scroll-locked", Ai = function(e, t, n, r) {
|
|
2395
2412
|
var i = e.left, a = e.top, o = e.right, s = e.gap;
|
|
2396
2413
|
return n === void 0 && (n = "margin"), `
|
|
2397
|
-
.${
|
|
2414
|
+
.${ni} {
|
|
2398
2415
|
overflow: hidden ${r};
|
|
2399
2416
|
padding-right: ${s}px ${r};
|
|
2400
2417
|
}
|
|
2401
|
-
body[${
|
|
2418
|
+
body[${ki}] {
|
|
2402
2419
|
overflow: hidden ${r};
|
|
2403
2420
|
overscroll-behavior: contain;
|
|
2404
2421
|
${[
|
|
@@ -2415,122 +2432,122 @@ var Ci = function() {
|
|
|
2415
2432
|
].filter(Boolean).join("")}
|
|
2416
2433
|
}
|
|
2417
2434
|
|
|
2418
|
-
.${
|
|
2435
|
+
.${ei} {
|
|
2419
2436
|
right: ${s}px ${r};
|
|
2420
2437
|
}
|
|
2421
2438
|
|
|
2422
|
-
.${
|
|
2439
|
+
.${ti} {
|
|
2423
2440
|
margin-right: ${s}px ${r};
|
|
2424
2441
|
}
|
|
2425
2442
|
|
|
2426
|
-
.${
|
|
2443
|
+
.${ei} .${ei} {
|
|
2427
2444
|
right: 0 ${r};
|
|
2428
2445
|
}
|
|
2429
2446
|
|
|
2430
|
-
.${
|
|
2447
|
+
.${ti} .${ti} {
|
|
2431
2448
|
margin-right: 0 ${r};
|
|
2432
2449
|
}
|
|
2433
2450
|
|
|
2434
|
-
body[${
|
|
2435
|
-
${
|
|
2451
|
+
body[${ki}] {
|
|
2452
|
+
${ri}: ${s}px;
|
|
2436
2453
|
}
|
|
2437
2454
|
`;
|
|
2438
|
-
},
|
|
2455
|
+
}, ji = function() {
|
|
2439
2456
|
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
2440
2457
|
return isFinite(e) ? e : 0;
|
|
2441
|
-
},
|
|
2458
|
+
}, Mi = function() {
|
|
2442
2459
|
r.useEffect(function() {
|
|
2443
|
-
return document.body.setAttribute(
|
|
2444
|
-
var e =
|
|
2445
|
-
e <= 0 ? document.body.removeAttribute(
|
|
2460
|
+
return document.body.setAttribute(ki, (ji() + 1).toString()), function() {
|
|
2461
|
+
var e = ji() - 1;
|
|
2462
|
+
e <= 0 ? document.body.removeAttribute(ki) : document.body.setAttribute(ki, e.toString());
|
|
2446
2463
|
};
|
|
2447
2464
|
}, []);
|
|
2448
|
-
},
|
|
2465
|
+
}, Ni = function(e) {
|
|
2449
2466
|
var t = e.noRelative, n = e.noImportant, i = e.gapMode, a = i === void 0 ? "margin" : i;
|
|
2450
|
-
|
|
2467
|
+
Mi();
|
|
2451
2468
|
var o = r.useMemo(function() {
|
|
2452
|
-
return
|
|
2469
|
+
return Di(a);
|
|
2453
2470
|
}, [a]);
|
|
2454
|
-
return r.createElement(
|
|
2455
|
-
},
|
|
2471
|
+
return r.createElement(Oi, { styles: Ai(o, !t, a, n ? "" : "!important") });
|
|
2472
|
+
}, Pi = !1;
|
|
2456
2473
|
if (typeof window < "u") try {
|
|
2457
|
-
var
|
|
2458
|
-
return
|
|
2474
|
+
var Fi = Object.defineProperty({}, "passive", { get: function() {
|
|
2475
|
+
return Pi = !0, !0;
|
|
2459
2476
|
} });
|
|
2460
|
-
window.addEventListener("test",
|
|
2477
|
+
window.addEventListener("test", Fi, Fi), window.removeEventListener("test", Fi, Fi);
|
|
2461
2478
|
} catch {
|
|
2462
|
-
|
|
2479
|
+
Pi = !1;
|
|
2463
2480
|
}
|
|
2464
|
-
var
|
|
2481
|
+
var Ii = Pi ? { passive: !1 } : !1, Li = function(e) {
|
|
2465
2482
|
return e.tagName === "TEXTAREA";
|
|
2466
|
-
},
|
|
2483
|
+
}, Ri = function(e, t) {
|
|
2467
2484
|
if (!(e instanceof Element)) return !1;
|
|
2468
2485
|
var n = window.getComputedStyle(e);
|
|
2469
|
-
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !
|
|
2470
|
-
},
|
|
2471
|
-
return
|
|
2472
|
-
},
|
|
2473
|
-
return
|
|
2474
|
-
},
|
|
2486
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !Li(e) && n[t] === "visible");
|
|
2487
|
+
}, zi = function(e) {
|
|
2488
|
+
return Ri(e, "overflowY");
|
|
2489
|
+
}, Bi = function(e) {
|
|
2490
|
+
return Ri(e, "overflowX");
|
|
2491
|
+
}, Vi = function(e, t) {
|
|
2475
2492
|
var n = t.ownerDocument, r = t;
|
|
2476
2493
|
do {
|
|
2477
|
-
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host),
|
|
2478
|
-
var i =
|
|
2494
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), Wi(e, r)) {
|
|
2495
|
+
var i = Gi(e, r);
|
|
2479
2496
|
if (i[1] > i[2]) return !0;
|
|
2480
2497
|
}
|
|
2481
2498
|
r = r.parentNode;
|
|
2482
2499
|
} while (r && r !== n.body);
|
|
2483
2500
|
return !1;
|
|
2484
|
-
},
|
|
2501
|
+
}, Hi = function(e) {
|
|
2485
2502
|
return [
|
|
2486
2503
|
e.scrollTop,
|
|
2487
2504
|
e.scrollHeight,
|
|
2488
2505
|
e.clientHeight
|
|
2489
2506
|
];
|
|
2490
|
-
},
|
|
2507
|
+
}, Ui = function(e) {
|
|
2491
2508
|
return [
|
|
2492
2509
|
e.scrollLeft,
|
|
2493
2510
|
e.scrollWidth,
|
|
2494
2511
|
e.clientWidth
|
|
2495
2512
|
];
|
|
2513
|
+
}, Wi = function(e, t) {
|
|
2514
|
+
return e === "v" ? zi(t) : Bi(t);
|
|
2515
|
+
}, Gi = function(e, t) {
|
|
2516
|
+
return e === "v" ? Hi(t) : Ui(t);
|
|
2496
2517
|
}, Ki = function(e, t) {
|
|
2497
|
-
return e === "v" ? Vi(t) : Hi(t);
|
|
2498
|
-
}, qi = function(e, t) {
|
|
2499
|
-
return e === "v" ? Wi(t) : Gi(t);
|
|
2500
|
-
}, Ji = function(e, t) {
|
|
2501
2518
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
2502
|
-
},
|
|
2503
|
-
var a =
|
|
2519
|
+
}, qi = function(e, t, n, r, i) {
|
|
2520
|
+
var a = Ki(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
2504
2521
|
do {
|
|
2505
2522
|
if (!s) break;
|
|
2506
|
-
var p =
|
|
2507
|
-
(m || h) &&
|
|
2523
|
+
var p = Gi(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
2524
|
+
(m || h) && Wi(e, s) && (d += h, f += m);
|
|
2508
2525
|
var g = s.parentNode;
|
|
2509
2526
|
s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
|
|
2510
2527
|
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
2511
2528
|
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
2512
|
-
},
|
|
2529
|
+
}, Ji = function(e) {
|
|
2513
2530
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
2514
|
-
},
|
|
2531
|
+
}, Yi = function(e) {
|
|
2515
2532
|
return [e.deltaX, e.deltaY];
|
|
2516
|
-
},
|
|
2533
|
+
}, Xi = function(e) {
|
|
2517
2534
|
return e && "current" in e ? e.current : e;
|
|
2518
|
-
},
|
|
2535
|
+
}, Zi = function(e, t) {
|
|
2519
2536
|
return e[0] === t[0] && e[1] === t[1];
|
|
2520
|
-
},
|
|
2537
|
+
}, Qi = function(e) {
|
|
2521
2538
|
return `
|
|
2522
2539
|
.block-interactivity-${e} {pointer-events: none;}
|
|
2523
2540
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
2524
2541
|
`;
|
|
2525
|
-
},
|
|
2526
|
-
function
|
|
2527
|
-
var t = r.useRef([]), n = r.useRef([0, 0]), i = r.useRef(), a = r.useState(
|
|
2542
|
+
}, $i = 0, ea = [];
|
|
2543
|
+
function ta(e) {
|
|
2544
|
+
var t = r.useRef([]), n = r.useRef([0, 0]), i = r.useRef(), a = r.useState($i++)[0], o = r.useState(Ci)[0], s = r.useRef(e);
|
|
2528
2545
|
r.useEffect(function() {
|
|
2529
2546
|
s.current = e;
|
|
2530
2547
|
}, [e]), r.useEffect(function() {
|
|
2531
2548
|
if (e.inert) {
|
|
2532
2549
|
document.body.classList.add(`block-interactivity-${a}`);
|
|
2533
|
-
var t =
|
|
2550
|
+
var t = $r([e.lockRef.current], (e.shards || []).map(Xi), !0).filter(Boolean);
|
|
2534
2551
|
return t.forEach(function(e) {
|
|
2535
2552
|
return e.classList.add(`allow-interactivity-${a}`);
|
|
2536
2553
|
}), function() {
|
|
@@ -2546,23 +2563,23 @@ function ra(e) {
|
|
|
2546
2563
|
]);
|
|
2547
2564
|
var c = r.useCallback(function(e, t) {
|
|
2548
2565
|
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !s.current.allowPinchZoom;
|
|
2549
|
-
var r =
|
|
2566
|
+
var r = Ji(e), a = n.current, o = "deltaX" in e ? e.deltaX : a[0] - r[0], c = "deltaY" in e ? e.deltaY : a[1] - r[1], l, u = e.target, d = Math.abs(o) > Math.abs(c) ? "h" : "v";
|
|
2550
2567
|
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
2551
|
-
var f =
|
|
2568
|
+
var f = Vi(d, u);
|
|
2552
2569
|
if (!f) return !0;
|
|
2553
|
-
if (f ? l = d : (l = d === "v" ? "h" : "v", f =
|
|
2570
|
+
if (f ? l = d : (l = d === "v" ? "h" : "v", f = Vi(d, u)), !f) return !1;
|
|
2554
2571
|
if (!i.current && "changedTouches" in e && (o || c) && (i.current = l), !l) return !0;
|
|
2555
2572
|
var p = i.current || l;
|
|
2556
|
-
return
|
|
2573
|
+
return qi(p, t, e, p === "h" ? o : c, !0);
|
|
2557
2574
|
}, []), l = r.useCallback(function(e) {
|
|
2558
2575
|
var n = e;
|
|
2559
|
-
if (
|
|
2560
|
-
var r = "deltaY" in n ?
|
|
2561
|
-
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) &&
|
|
2576
|
+
if (ea.length && ea[ea.length - 1] === o) {
|
|
2577
|
+
var r = "deltaY" in n ? Yi(n) : Ji(n), i = t.current.filter(function(e) {
|
|
2578
|
+
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && Zi(e.delta, r);
|
|
2562
2579
|
})[0];
|
|
2563
2580
|
if (i && i.should) n.cancelable && n.preventDefault();
|
|
2564
2581
|
else if (!i) {
|
|
2565
|
-
var a = (s.current.shards || []).map(
|
|
2582
|
+
var a = (s.current.shards || []).map(Xi).filter(Boolean).filter(function(e) {
|
|
2566
2583
|
return e.contains(n.target);
|
|
2567
2584
|
});
|
|
2568
2585
|
(a.length > 0 ? c(n, a[0]) : !s.current.noIsolation) && n.cancelable && n.preventDefault();
|
|
@@ -2574,7 +2591,7 @@ function ra(e) {
|
|
|
2574
2591
|
delta: n,
|
|
2575
2592
|
target: r,
|
|
2576
2593
|
should: i,
|
|
2577
|
-
shadowParent:
|
|
2594
|
+
shadowParent: na(r)
|
|
2578
2595
|
};
|
|
2579
2596
|
t.current.push(a), setTimeout(function() {
|
|
2580
2597
|
t.current = t.current.filter(function(e) {
|
|
@@ -2582,64 +2599,64 @@ function ra(e) {
|
|
|
2582
2599
|
});
|
|
2583
2600
|
}, 1);
|
|
2584
2601
|
}, []), d = r.useCallback(function(e) {
|
|
2585
|
-
n.current =
|
|
2602
|
+
n.current = Ji(e), i.current = void 0;
|
|
2586
2603
|
}, []), f = r.useCallback(function(t) {
|
|
2587
|
-
u(t.type,
|
|
2604
|
+
u(t.type, Yi(t), t.target, c(t, e.lockRef.current));
|
|
2588
2605
|
}, []), p = r.useCallback(function(t) {
|
|
2589
|
-
u(t.type,
|
|
2606
|
+
u(t.type, Ji(t), t.target, c(t, e.lockRef.current));
|
|
2590
2607
|
}, []);
|
|
2591
2608
|
r.useEffect(function() {
|
|
2592
|
-
return
|
|
2609
|
+
return ea.push(o), e.setCallbacks({
|
|
2593
2610
|
onScrollCapture: f,
|
|
2594
2611
|
onWheelCapture: f,
|
|
2595
2612
|
onTouchMoveCapture: p
|
|
2596
|
-
}), document.addEventListener("wheel", l,
|
|
2597
|
-
|
|
2613
|
+
}), document.addEventListener("wheel", l, Ii), document.addEventListener("touchmove", l, Ii), document.addEventListener("touchstart", d, Ii), function() {
|
|
2614
|
+
ea = ea.filter(function(e) {
|
|
2598
2615
|
return e !== o;
|
|
2599
|
-
}), document.removeEventListener("wheel", l,
|
|
2616
|
+
}), document.removeEventListener("wheel", l, Ii), document.removeEventListener("touchmove", l, Ii), document.removeEventListener("touchstart", d, Ii);
|
|
2600
2617
|
};
|
|
2601
2618
|
}, []);
|
|
2602
2619
|
var m = e.removeScrollBar, h = e.inert;
|
|
2603
|
-
return r.createElement(r.Fragment, null, h ? r.createElement(o, { styles:
|
|
2620
|
+
return r.createElement(r.Fragment, null, h ? r.createElement(o, { styles: Qi(a) }) : null, m ? r.createElement(Ni, {
|
|
2604
2621
|
noRelative: e.noRelative,
|
|
2605
2622
|
gapMode: e.gapMode
|
|
2606
2623
|
}) : null);
|
|
2607
2624
|
}
|
|
2608
|
-
function
|
|
2625
|
+
function na(e) {
|
|
2609
2626
|
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
2610
2627
|
return t;
|
|
2611
2628
|
}
|
|
2612
2629
|
//#endregion
|
|
2613
2630
|
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
2614
|
-
var
|
|
2615
|
-
return r.createElement(
|
|
2631
|
+
var ra = pi(mi, ta), ia = r.forwardRef(function(e, t) {
|
|
2632
|
+
return r.createElement(gi, X({}, e, {
|
|
2616
2633
|
ref: t,
|
|
2617
|
-
sideCar:
|
|
2634
|
+
sideCar: ra
|
|
2618
2635
|
}));
|
|
2619
2636
|
});
|
|
2620
|
-
|
|
2637
|
+
ia.classNames = gi.classNames;
|
|
2621
2638
|
//#endregion
|
|
2622
2639
|
//#region ../../node_modules/.pnpm/@radix-ui+react-menu@2.1.16_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-menu/dist/index.mjs
|
|
2623
|
-
var
|
|
2640
|
+
var aa = ["Enter", " "], oa = [
|
|
2624
2641
|
"ArrowDown",
|
|
2625
2642
|
"PageUp",
|
|
2626
2643
|
"Home"
|
|
2627
|
-
],
|
|
2644
|
+
], sa = [
|
|
2628
2645
|
"ArrowUp",
|
|
2629
2646
|
"PageDown",
|
|
2630
2647
|
"End"
|
|
2631
|
-
],
|
|
2632
|
-
ltr: [...
|
|
2633
|
-
rtl: [...
|
|
2634
|
-
},
|
|
2648
|
+
], ca = [...oa, ...sa], la = {
|
|
2649
|
+
ltr: [...aa, "ArrowRight"],
|
|
2650
|
+
rtl: [...aa, "ArrowLeft"]
|
|
2651
|
+
}, ua = {
|
|
2635
2652
|
ltr: ["ArrowLeft"],
|
|
2636
2653
|
rtl: ["ArrowRight"]
|
|
2637
|
-
},
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
]),
|
|
2642
|
-
let { __scopeMenu: t, open: n = !1, children: i, dir: a, onOpenChange: o, modal: s = !0 } = e, c =
|
|
2654
|
+
}, da = "Menu", [fa, pa, ma] = ee(da), [ha, ga] = y(da, [
|
|
2655
|
+
ma,
|
|
2656
|
+
Xn,
|
|
2657
|
+
kr
|
|
2658
|
+
]), _a = Xn(), va = kr(), [ya, Z] = ha(da), [ba, xa] = ha(da), Sa = (e) => {
|
|
2659
|
+
let { __scopeMenu: t, open: n = !1, children: i, dir: a, onOpenChange: o, modal: s = !0 } = e, c = _a(t), [l, d] = r.useState(null), f = r.useRef(!1), p = F(o), m = ne(a);
|
|
2643
2660
|
return r.useEffect(() => {
|
|
2644
2661
|
let e = () => {
|
|
2645
2662
|
f.current = !0, document.addEventListener("pointerdown", t, {
|
|
@@ -2653,15 +2670,15 @@ var sa = ["Enter", " "], ca = [
|
|
|
2653
2670
|
return document.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
2654
2671
|
document.removeEventListener("keydown", e, { capture: !0 }), document.removeEventListener("pointerdown", t, { capture: !0 }), document.removeEventListener("pointermove", t, { capture: !0 });
|
|
2655
2672
|
};
|
|
2656
|
-
}, []), /* @__PURE__ */
|
|
2673
|
+
}, []), /* @__PURE__ */ u(fr, {
|
|
2657
2674
|
...c,
|
|
2658
|
-
children: /* @__PURE__ */
|
|
2675
|
+
children: /* @__PURE__ */ u(ya, {
|
|
2659
2676
|
scope: t,
|
|
2660
2677
|
open: n,
|
|
2661
2678
|
onOpenChange: p,
|
|
2662
2679
|
content: l,
|
|
2663
|
-
onContentChange:
|
|
2664
|
-
children: /* @__PURE__ */
|
|
2680
|
+
onContentChange: d,
|
|
2681
|
+
children: /* @__PURE__ */ u(ba, {
|
|
2665
2682
|
scope: t,
|
|
2666
2683
|
onClose: r.useCallback(() => p(!1), [p]),
|
|
2667
2684
|
isUsingKeyboardRef: f,
|
|
@@ -2672,24 +2689,24 @@ var sa = ["Enter", " "], ca = [
|
|
|
2672
2689
|
})
|
|
2673
2690
|
});
|
|
2674
2691
|
};
|
|
2675
|
-
|
|
2676
|
-
var
|
|
2677
|
-
let { __scopeMenu: n, ...r } = e, i =
|
|
2678
|
-
return /* @__PURE__ */
|
|
2692
|
+
Sa.displayName = da;
|
|
2693
|
+
var Ca = "MenuAnchor", wa = r.forwardRef((e, t) => {
|
|
2694
|
+
let { __scopeMenu: n, ...r } = e, i = _a(n);
|
|
2695
|
+
return /* @__PURE__ */ u(pr, {
|
|
2679
2696
|
...i,
|
|
2680
2697
|
...r,
|
|
2681
2698
|
ref: t
|
|
2682
2699
|
});
|
|
2683
2700
|
});
|
|
2684
|
-
|
|
2685
|
-
var
|
|
2686
|
-
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a =
|
|
2687
|
-
return /* @__PURE__ */
|
|
2701
|
+
wa.displayName = Ca;
|
|
2702
|
+
var Ta = "MenuPortal", [Ea, Da] = ha(Ta, { forceMount: void 0 }), Oa = (e) => {
|
|
2703
|
+
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a = Z(Ta, t);
|
|
2704
|
+
return /* @__PURE__ */ u(Ea, {
|
|
2688
2705
|
scope: t,
|
|
2689
2706
|
forceMount: n,
|
|
2690
|
-
children: /* @__PURE__ */
|
|
2707
|
+
children: /* @__PURE__ */ u(Y, {
|
|
2691
2708
|
present: n || a.open,
|
|
2692
|
-
children: /* @__PURE__ */
|
|
2709
|
+
children: /* @__PURE__ */ u(_r, {
|
|
2693
2710
|
asChild: !0,
|
|
2694
2711
|
container: i,
|
|
2695
2712
|
children: r
|
|
@@ -2697,42 +2714,42 @@ var Oa = "MenuPortal", [ka, Aa] = _a(Oa, { forceMount: void 0 }), ja = (e) => {
|
|
|
2697
2714
|
})
|
|
2698
2715
|
});
|
|
2699
2716
|
};
|
|
2700
|
-
|
|
2701
|
-
var
|
|
2702
|
-
let n =
|
|
2703
|
-
return /* @__PURE__ */
|
|
2717
|
+
Oa.displayName = Ta;
|
|
2718
|
+
var Q = "MenuContent", [ka, Aa] = ha(Q), ja = r.forwardRef((e, t) => {
|
|
2719
|
+
let n = Da(Q, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = Z(Q, e.__scopeMenu), o = xa(Q, e.__scopeMenu);
|
|
2720
|
+
return /* @__PURE__ */ u(fa.Provider, {
|
|
2704
2721
|
scope: e.__scopeMenu,
|
|
2705
|
-
children: /* @__PURE__ */
|
|
2722
|
+
children: /* @__PURE__ */ u(Y, {
|
|
2706
2723
|
present: r || a.open,
|
|
2707
|
-
children: /* @__PURE__ */
|
|
2724
|
+
children: /* @__PURE__ */ u(fa.Slot, {
|
|
2708
2725
|
scope: e.__scopeMenu,
|
|
2709
|
-
children: o.modal ? /* @__PURE__ */
|
|
2726
|
+
children: o.modal ? /* @__PURE__ */ u(Ma, {
|
|
2710
2727
|
...i,
|
|
2711
2728
|
ref: t
|
|
2712
|
-
}) : /* @__PURE__ */
|
|
2729
|
+
}) : /* @__PURE__ */ u(Na, {
|
|
2713
2730
|
...i,
|
|
2714
2731
|
ref: t
|
|
2715
2732
|
})
|
|
2716
2733
|
})
|
|
2717
2734
|
})
|
|
2718
2735
|
});
|
|
2719
|
-
}),
|
|
2720
|
-
let n =
|
|
2736
|
+
}), Ma = r.forwardRef((e, t) => {
|
|
2737
|
+
let n = Z(Q, e.__scopeMenu), i = r.useRef(null), a = g(t, i);
|
|
2721
2738
|
return r.useEffect(() => {
|
|
2722
2739
|
let e = i.current;
|
|
2723
|
-
if (e) return
|
|
2724
|
-
}, []), /* @__PURE__ */
|
|
2740
|
+
if (e) return Zr(e);
|
|
2741
|
+
}, []), /* @__PURE__ */ u(Fa, {
|
|
2725
2742
|
...e,
|
|
2726
2743
|
ref: a,
|
|
2727
2744
|
trapFocus: n.open,
|
|
2728
2745
|
disableOutsidePointerEvents: n.open,
|
|
2729
2746
|
disableOutsideScroll: !0,
|
|
2730
|
-
onFocusOutside:
|
|
2747
|
+
onFocusOutside: _(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 }),
|
|
2731
2748
|
onDismiss: () => n.onOpenChange(!1)
|
|
2732
2749
|
});
|
|
2733
|
-
}),
|
|
2734
|
-
let n =
|
|
2735
|
-
return /* @__PURE__ */
|
|
2750
|
+
}), Na = r.forwardRef((e, t) => {
|
|
2751
|
+
let n = Z(Q, e.__scopeMenu);
|
|
2752
|
+
return /* @__PURE__ */ u(Fa, {
|
|
2736
2753
|
...e,
|
|
2737
2754
|
ref: t,
|
|
2738
2755
|
trapFocus: !1,
|
|
@@ -2740,52 +2757,52 @@ var Y = "MenuContent", [Ma, Na] = _a(Y), Pa = r.forwardRef((e, t) => {
|
|
|
2740
2757
|
disableOutsideScroll: !1,
|
|
2741
2758
|
onDismiss: () => n.onOpenChange(!1)
|
|
2742
2759
|
});
|
|
2743
|
-
}),
|
|
2744
|
-
let { __scopeMenu: n, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown:
|
|
2745
|
-
as:
|
|
2760
|
+
}), Pa = /* @__PURE__ */ E("MenuContent.ScrollLock"), Fa = r.forwardRef((e, t) => {
|
|
2761
|
+
let { __scopeMenu: n, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: d, onPointerDownOutside: f, onFocusOutside: p, onInteractOutside: m, onDismiss: h, disableOutsideScroll: v, ...y } = e, b = Z(Q, n), x = xa(Q, n), S = _a(n), C = va(n), w = pa(n), [T, E] = r.useState(null), D = r.useRef(null), O = g(t, D, b.onContentChange), k = r.useRef(0), A = r.useRef(""), j = r.useRef(0), M = r.useRef(null), N = r.useRef("right"), P = r.useRef(0), ee = v ? ia : r.Fragment, te = v ? {
|
|
2762
|
+
as: Pa,
|
|
2746
2763
|
allowPinchZoom: !0
|
|
2747
|
-
} : void 0,
|
|
2748
|
-
let t = A.current + e, n = w().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a =
|
|
2764
|
+
} : void 0, ne = (e) => {
|
|
2765
|
+
let t = A.current + e, n = w().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = bo(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
|
|
2749
2766
|
(function e(t) {
|
|
2750
2767
|
A.current = t, window.clearTimeout(k.current), t !== "" && (k.current = window.setTimeout(() => e(""), 1e3));
|
|
2751
2768
|
})(t), o && setTimeout(() => o.focus());
|
|
2752
2769
|
};
|
|
2753
|
-
r.useEffect(() => () => window.clearTimeout(k.current), []),
|
|
2754
|
-
let
|
|
2755
|
-
return /* @__PURE__ */
|
|
2770
|
+
r.useEffect(() => () => window.clearTimeout(k.current), []), ve();
|
|
2771
|
+
let F = r.useCallback((e) => N.current === M.current?.side && So(e, M.current?.area), []);
|
|
2772
|
+
return /* @__PURE__ */ u(ka, {
|
|
2756
2773
|
scope: n,
|
|
2757
2774
|
searchRef: A,
|
|
2758
2775
|
onItemEnter: r.useCallback((e) => {
|
|
2759
|
-
|
|
2760
|
-
}, [
|
|
2776
|
+
F(e) && e.preventDefault();
|
|
2777
|
+
}, [F]),
|
|
2761
2778
|
onItemLeave: r.useCallback((e) => {
|
|
2762
|
-
|
|
2763
|
-
}, [
|
|
2779
|
+
F(e) || (D.current?.focus(), E(null));
|
|
2780
|
+
}, [F]),
|
|
2764
2781
|
onTriggerLeave: r.useCallback((e) => {
|
|
2765
|
-
|
|
2766
|
-
}, [
|
|
2782
|
+
F(e) && e.preventDefault();
|
|
2783
|
+
}, [F]),
|
|
2767
2784
|
pointerGraceTimerRef: j,
|
|
2768
2785
|
onPointerGraceIntentChange: r.useCallback((e) => {
|
|
2769
2786
|
M.current = e;
|
|
2770
2787
|
}, []),
|
|
2771
|
-
children: /* @__PURE__ */
|
|
2772
|
-
...
|
|
2773
|
-
children: /* @__PURE__ */
|
|
2788
|
+
children: /* @__PURE__ */ u(ee, {
|
|
2789
|
+
...te,
|
|
2790
|
+
children: /* @__PURE__ */ u(we, {
|
|
2774
2791
|
asChild: !0,
|
|
2775
2792
|
trapped: a,
|
|
2776
|
-
onMountAutoFocus:
|
|
2793
|
+
onMountAutoFocus: _(o, (e) => {
|
|
2777
2794
|
e.preventDefault(), D.current?.focus({ preventScroll: !0 });
|
|
2778
2795
|
}),
|
|
2779
2796
|
onUnmountAutoFocus: s,
|
|
2780
|
-
children: /* @__PURE__ */
|
|
2797
|
+
children: /* @__PURE__ */ u(ue, {
|
|
2781
2798
|
asChild: !0,
|
|
2782
2799
|
disableOutsidePointerEvents: c,
|
|
2783
|
-
onEscapeKeyDown:
|
|
2800
|
+
onEscapeKeyDown: d,
|
|
2784
2801
|
onPointerDownOutside: f,
|
|
2785
2802
|
onFocusOutside: p,
|
|
2786
2803
|
onInteractOutside: m,
|
|
2787
2804
|
onDismiss: h,
|
|
2788
|
-
children: /* @__PURE__ */
|
|
2805
|
+
children: /* @__PURE__ */ u(Vr, {
|
|
2789
2806
|
asChild: !0,
|
|
2790
2807
|
...C,
|
|
2791
2808
|
dir: x.dir,
|
|
@@ -2793,14 +2810,14 @@ var Y = "MenuContent", [Ma, Na] = _a(Y), Pa = r.forwardRef((e, t) => {
|
|
|
2793
2810
|
loop: i,
|
|
2794
2811
|
currentTabStopId: T,
|
|
2795
2812
|
onCurrentTabStopIdChange: E,
|
|
2796
|
-
onEntryFocus:
|
|
2813
|
+
onEntryFocus: _(l, (e) => {
|
|
2797
2814
|
x.isUsingKeyboardRef.current || e.preventDefault();
|
|
2798
2815
|
}),
|
|
2799
2816
|
preventScrollOnEntryFocus: !0,
|
|
2800
|
-
children: /* @__PURE__ */
|
|
2817
|
+
children: /* @__PURE__ */ u(mr, {
|
|
2801
2818
|
role: "menu",
|
|
2802
2819
|
"aria-orientation": "vertical",
|
|
2803
|
-
"data-state":
|
|
2820
|
+
"data-state": ho(b.open),
|
|
2804
2821
|
"data-radix-menu-content": "",
|
|
2805
2822
|
dir: x.dir,
|
|
2806
2823
|
...S,
|
|
@@ -2810,19 +2827,19 @@ var Y = "MenuContent", [Ma, Na] = _a(Y), Pa = r.forwardRef((e, t) => {
|
|
|
2810
2827
|
outline: "none",
|
|
2811
2828
|
...y.style
|
|
2812
2829
|
},
|
|
2813
|
-
onKeyDown:
|
|
2830
|
+
onKeyDown: _(y.onKeyDown, (e) => {
|
|
2814
2831
|
let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
|
|
2815
|
-
t && (e.key === "Tab" && e.preventDefault(), !n && r &&
|
|
2832
|
+
t && (e.key === "Tab" && e.preventDefault(), !n && r && ne(e.key));
|
|
2816
2833
|
let i = D.current;
|
|
2817
|
-
if (e.target !== i || !
|
|
2834
|
+
if (e.target !== i || !ca.includes(e.key)) return;
|
|
2818
2835
|
e.preventDefault();
|
|
2819
2836
|
let a = w().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
2820
|
-
|
|
2837
|
+
sa.includes(e.key) && a.reverse(), vo(a);
|
|
2821
2838
|
}),
|
|
2822
|
-
onBlur:
|
|
2839
|
+
onBlur: _(e.onBlur, (e) => {
|
|
2823
2840
|
e.currentTarget.contains(e.target) || (window.clearTimeout(k.current), A.current = "");
|
|
2824
2841
|
}),
|
|
2825
|
-
onPointerMove:
|
|
2842
|
+
onPointerMove: _(e.onPointerMove, Co((e) => {
|
|
2826
2843
|
let t = e.target, n = P.current !== e.clientX;
|
|
2827
2844
|
if (e.currentTarget.contains(t) && n) {
|
|
2828
2845
|
let t = e.clientX > P.current ? "right" : "left";
|
|
@@ -2836,175 +2853,175 @@ var Y = "MenuContent", [Ma, Na] = _a(Y), Pa = r.forwardRef((e, t) => {
|
|
|
2836
2853
|
})
|
|
2837
2854
|
});
|
|
2838
2855
|
});
|
|
2839
|
-
|
|
2840
|
-
var
|
|
2856
|
+
ja.displayName = Q;
|
|
2857
|
+
var Ia = "MenuGroup", La = r.forwardRef((e, t) => {
|
|
2841
2858
|
let { __scopeMenu: n, ...r } = e;
|
|
2842
|
-
return /* @__PURE__ */
|
|
2859
|
+
return /* @__PURE__ */ u(N.div, {
|
|
2843
2860
|
role: "group",
|
|
2844
2861
|
...r,
|
|
2845
2862
|
ref: t
|
|
2846
2863
|
});
|
|
2847
2864
|
});
|
|
2848
|
-
|
|
2849
|
-
var
|
|
2865
|
+
La.displayName = Ia;
|
|
2866
|
+
var Ra = "MenuLabel", za = r.forwardRef((e, t) => {
|
|
2850
2867
|
let { __scopeMenu: n, ...r } = e;
|
|
2851
|
-
return /* @__PURE__ */
|
|
2868
|
+
return /* @__PURE__ */ u(N.div, {
|
|
2852
2869
|
...r,
|
|
2853
2870
|
ref: t
|
|
2854
2871
|
});
|
|
2855
2872
|
});
|
|
2856
|
-
|
|
2857
|
-
var
|
|
2858
|
-
let { disabled: n = !1, onSelect: i, ...a } = e, o = r.useRef(null), s =
|
|
2873
|
+
za.displayName = Ra;
|
|
2874
|
+
var Ba = "MenuItem", Va = "menu.itemSelect", Ha = r.forwardRef((e, t) => {
|
|
2875
|
+
let { disabled: n = !1, onSelect: i, ...a } = e, o = r.useRef(null), s = xa(Ba, e.__scopeMenu), c = Aa(Ba, e.__scopeMenu), l = g(t, o), d = r.useRef(!1), f = () => {
|
|
2859
2876
|
let e = o.current;
|
|
2860
2877
|
if (!n && e) {
|
|
2861
|
-
let t = new CustomEvent(
|
|
2878
|
+
let t = new CustomEvent(Va, {
|
|
2862
2879
|
bubbles: !0,
|
|
2863
2880
|
cancelable: !0
|
|
2864
2881
|
});
|
|
2865
|
-
e.addEventListener(
|
|
2882
|
+
e.addEventListener(Va, (e) => i?.(e), { once: !0 }), P(e, t), t.defaultPrevented ? d.current = !1 : s.onClose();
|
|
2866
2883
|
}
|
|
2867
2884
|
};
|
|
2868
|
-
return /* @__PURE__ */
|
|
2885
|
+
return /* @__PURE__ */ u(Ua, {
|
|
2869
2886
|
...a,
|
|
2870
2887
|
ref: l,
|
|
2871
2888
|
disabled: n,
|
|
2872
|
-
onClick:
|
|
2889
|
+
onClick: _(e.onClick, f),
|
|
2873
2890
|
onPointerDown: (t) => {
|
|
2874
|
-
e.onPointerDown?.(t),
|
|
2891
|
+
e.onPointerDown?.(t), d.current = !0;
|
|
2875
2892
|
},
|
|
2876
|
-
onPointerUp:
|
|
2877
|
-
|
|
2893
|
+
onPointerUp: _(e.onPointerUp, (e) => {
|
|
2894
|
+
d.current || e.currentTarget?.click();
|
|
2878
2895
|
}),
|
|
2879
|
-
onKeyDown:
|
|
2896
|
+
onKeyDown: _(e.onKeyDown, (e) => {
|
|
2880
2897
|
let t = c.searchRef.current !== "";
|
|
2881
|
-
n || t && e.key === " " ||
|
|
2898
|
+
n || t && e.key === " " || aa.includes(e.key) && (e.currentTarget.click(), e.preventDefault());
|
|
2882
2899
|
})
|
|
2883
2900
|
});
|
|
2884
2901
|
});
|
|
2885
|
-
|
|
2886
|
-
var
|
|
2887
|
-
let { __scopeMenu: n, disabled: i = !1, textValue: a, ...o } = e, s =
|
|
2902
|
+
Ha.displayName = Ba;
|
|
2903
|
+
var Ua = r.forwardRef((e, t) => {
|
|
2904
|
+
let { __scopeMenu: n, disabled: i = !1, textValue: a, ...o } = e, s = Aa(Ba, n), c = va(n), l = r.useRef(null), d = g(t, l), [f, p] = r.useState(!1), [m, h] = r.useState("");
|
|
2888
2905
|
return r.useEffect(() => {
|
|
2889
2906
|
let e = l.current;
|
|
2890
2907
|
e && h((e.textContent ?? "").trim());
|
|
2891
|
-
}, [o.children]), /* @__PURE__ */
|
|
2908
|
+
}, [o.children]), /* @__PURE__ */ u(fa.ItemSlot, {
|
|
2892
2909
|
scope: n,
|
|
2893
2910
|
disabled: i,
|
|
2894
2911
|
textValue: a ?? m,
|
|
2895
|
-
children: /* @__PURE__ */
|
|
2912
|
+
children: /* @__PURE__ */ u(Hr, {
|
|
2896
2913
|
asChild: !0,
|
|
2897
2914
|
...c,
|
|
2898
2915
|
focusable: !i,
|
|
2899
|
-
children: /* @__PURE__ */
|
|
2916
|
+
children: /* @__PURE__ */ u(N.div, {
|
|
2900
2917
|
role: "menuitem",
|
|
2901
2918
|
"data-highlighted": f ? "" : void 0,
|
|
2902
2919
|
"aria-disabled": i || void 0,
|
|
2903
2920
|
"data-disabled": i ? "" : void 0,
|
|
2904
2921
|
...o,
|
|
2905
|
-
ref:
|
|
2906
|
-
onPointerMove:
|
|
2922
|
+
ref: d,
|
|
2923
|
+
onPointerMove: _(e.onPointerMove, Co((e) => {
|
|
2907
2924
|
i ? s.onItemLeave(e) : (s.onItemEnter(e), e.defaultPrevented || e.currentTarget.focus({ preventScroll: !0 }));
|
|
2908
2925
|
})),
|
|
2909
|
-
onPointerLeave:
|
|
2910
|
-
onFocus:
|
|
2911
|
-
onBlur:
|
|
2926
|
+
onPointerLeave: _(e.onPointerLeave, Co((e) => s.onItemLeave(e))),
|
|
2927
|
+
onFocus: _(e.onFocus, () => p(!0)),
|
|
2928
|
+
onBlur: _(e.onBlur, () => p(!1))
|
|
2912
2929
|
})
|
|
2913
2930
|
})
|
|
2914
2931
|
});
|
|
2915
|
-
}),
|
|
2932
|
+
}), Wa = "MenuCheckboxItem", Ga = r.forwardRef((e, t) => {
|
|
2916
2933
|
let { checked: n = !1, onCheckedChange: r, ...i } = e;
|
|
2917
|
-
return /* @__PURE__ */
|
|
2934
|
+
return /* @__PURE__ */ u($a, {
|
|
2918
2935
|
scope: e.__scopeMenu,
|
|
2919
2936
|
checked: n,
|
|
2920
|
-
children: /* @__PURE__ */
|
|
2937
|
+
children: /* @__PURE__ */ u(Ha, {
|
|
2921
2938
|
role: "menuitemcheckbox",
|
|
2922
|
-
"aria-checked":
|
|
2939
|
+
"aria-checked": go(n) ? "mixed" : n,
|
|
2923
2940
|
...i,
|
|
2924
2941
|
ref: t,
|
|
2925
|
-
"data-state":
|
|
2926
|
-
onSelect:
|
|
2942
|
+
"data-state": _o(n),
|
|
2943
|
+
onSelect: _(i.onSelect, () => r?.(go(n) ? !0 : !n), { checkForDefaultPrevented: !1 })
|
|
2927
2944
|
})
|
|
2928
2945
|
});
|
|
2929
2946
|
});
|
|
2930
|
-
|
|
2931
|
-
var
|
|
2947
|
+
Ga.displayName = Wa;
|
|
2948
|
+
var Ka = "MenuRadioGroup", [qa, Ja] = ha(Ka, {
|
|
2932
2949
|
value: void 0,
|
|
2933
2950
|
onValueChange: () => {}
|
|
2934
|
-
}),
|
|
2935
|
-
let { value: n, onValueChange: r, ...i } = e, a =
|
|
2936
|
-
return /* @__PURE__ */
|
|
2951
|
+
}), Ya = r.forwardRef((e, t) => {
|
|
2952
|
+
let { value: n, onValueChange: r, ...i } = e, a = F(r);
|
|
2953
|
+
return /* @__PURE__ */ u(qa, {
|
|
2937
2954
|
scope: e.__scopeMenu,
|
|
2938
2955
|
value: n,
|
|
2939
2956
|
onValueChange: a,
|
|
2940
|
-
children: /* @__PURE__ */
|
|
2957
|
+
children: /* @__PURE__ */ u(La, {
|
|
2941
2958
|
...i,
|
|
2942
2959
|
ref: t
|
|
2943
2960
|
})
|
|
2944
2961
|
});
|
|
2945
2962
|
});
|
|
2946
|
-
|
|
2947
|
-
var
|
|
2948
|
-
let { value: n, ...r } = e, i =
|
|
2949
|
-
return /* @__PURE__ */
|
|
2963
|
+
Ya.displayName = Ka;
|
|
2964
|
+
var Xa = "MenuRadioItem", Za = r.forwardRef((e, t) => {
|
|
2965
|
+
let { value: n, ...r } = e, i = Ja(Xa, e.__scopeMenu), a = n === i.value;
|
|
2966
|
+
return /* @__PURE__ */ u($a, {
|
|
2950
2967
|
scope: e.__scopeMenu,
|
|
2951
2968
|
checked: a,
|
|
2952
|
-
children: /* @__PURE__ */
|
|
2969
|
+
children: /* @__PURE__ */ u(Ha, {
|
|
2953
2970
|
role: "menuitemradio",
|
|
2954
2971
|
"aria-checked": a,
|
|
2955
2972
|
...r,
|
|
2956
2973
|
ref: t,
|
|
2957
|
-
"data-state":
|
|
2958
|
-
onSelect:
|
|
2974
|
+
"data-state": _o(a),
|
|
2975
|
+
onSelect: _(r.onSelect, () => i.onValueChange?.(n), { checkForDefaultPrevented: !1 })
|
|
2959
2976
|
})
|
|
2960
2977
|
});
|
|
2961
2978
|
});
|
|
2962
|
-
|
|
2963
|
-
var
|
|
2964
|
-
let { __scopeMenu: n, forceMount: r, ...i } = e, a =
|
|
2965
|
-
return /* @__PURE__ */
|
|
2966
|
-
present: r ||
|
|
2967
|
-
children: /* @__PURE__ */
|
|
2979
|
+
Za.displayName = Xa;
|
|
2980
|
+
var Qa = "MenuItemIndicator", [$a, eo] = ha(Qa, { checked: !1 }), to = r.forwardRef((e, t) => {
|
|
2981
|
+
let { __scopeMenu: n, forceMount: r, ...i } = e, a = eo(Qa, n);
|
|
2982
|
+
return /* @__PURE__ */ u(Y, {
|
|
2983
|
+
present: r || go(a.checked) || a.checked === !0,
|
|
2984
|
+
children: /* @__PURE__ */ u(N.span, {
|
|
2968
2985
|
...i,
|
|
2969
2986
|
ref: t,
|
|
2970
|
-
"data-state":
|
|
2987
|
+
"data-state": _o(a.checked)
|
|
2971
2988
|
})
|
|
2972
2989
|
});
|
|
2973
2990
|
});
|
|
2974
|
-
|
|
2975
|
-
var
|
|
2991
|
+
to.displayName = Qa;
|
|
2992
|
+
var no = "MenuSeparator", ro = r.forwardRef((e, t) => {
|
|
2976
2993
|
let { __scopeMenu: n, ...r } = e;
|
|
2977
|
-
return /* @__PURE__ */
|
|
2994
|
+
return /* @__PURE__ */ u(N.div, {
|
|
2978
2995
|
role: "separator",
|
|
2979
2996
|
"aria-orientation": "horizontal",
|
|
2980
2997
|
...r,
|
|
2981
2998
|
ref: t
|
|
2982
2999
|
});
|
|
2983
3000
|
});
|
|
2984
|
-
|
|
2985
|
-
var
|
|
2986
|
-
let { __scopeMenu: n, ...r } = e, i =
|
|
2987
|
-
return /* @__PURE__ */
|
|
3001
|
+
ro.displayName = no;
|
|
3002
|
+
var io = "MenuArrow", ao = r.forwardRef((e, t) => {
|
|
3003
|
+
let { __scopeMenu: n, ...r } = e, i = _a(n);
|
|
3004
|
+
return /* @__PURE__ */ u(hr, {
|
|
2988
3005
|
...i,
|
|
2989
3006
|
...r,
|
|
2990
3007
|
ref: t
|
|
2991
3008
|
});
|
|
2992
3009
|
});
|
|
2993
|
-
|
|
2994
|
-
var
|
|
2995
|
-
let { __scopeMenu: t, children: n, open: i = !1, onOpenChange: a } = e, o =
|
|
2996
|
-
return r.useEffect(() => (o.open === !1 && p(!1), () => p(!1)), [o.open, p]), /* @__PURE__ */
|
|
3010
|
+
ao.displayName = io;
|
|
3011
|
+
var oo = "MenuSub", [so, co] = ha(oo), lo = (e) => {
|
|
3012
|
+
let { __scopeMenu: t, children: n, open: i = !1, onOpenChange: a } = e, o = Z(oo, t), s = _a(t), [c, l] = r.useState(null), [d, f] = r.useState(null), p = F(a);
|
|
3013
|
+
return r.useEffect(() => (o.open === !1 && p(!1), () => p(!1)), [o.open, p]), /* @__PURE__ */ u(fr, {
|
|
2997
3014
|
...s,
|
|
2998
|
-
children: /* @__PURE__ */
|
|
3015
|
+
children: /* @__PURE__ */ u(ya, {
|
|
2999
3016
|
scope: t,
|
|
3000
3017
|
open: i,
|
|
3001
3018
|
onOpenChange: p,
|
|
3002
|
-
content:
|
|
3019
|
+
content: d,
|
|
3003
3020
|
onContentChange: f,
|
|
3004
|
-
children: /* @__PURE__ */
|
|
3021
|
+
children: /* @__PURE__ */ u(so, {
|
|
3005
3022
|
scope: t,
|
|
3006
|
-
contentId:
|
|
3007
|
-
triggerId:
|
|
3023
|
+
contentId: Le(),
|
|
3024
|
+
triggerId: Le(),
|
|
3008
3025
|
trigger: c,
|
|
3009
3026
|
onTriggerChange: l,
|
|
3010
3027
|
children: n
|
|
@@ -3012,9 +3029,9 @@ var lo = "MenuSub", [uo, fo] = _a(lo), po = (e) => {
|
|
|
3012
3029
|
})
|
|
3013
3030
|
});
|
|
3014
3031
|
};
|
|
3015
|
-
|
|
3016
|
-
var
|
|
3017
|
-
let n =
|
|
3032
|
+
lo.displayName = oo;
|
|
3033
|
+
var uo = "MenuSubTrigger", fo = r.forwardRef((e, t) => {
|
|
3034
|
+
let n = Z(uo, e.__scopeMenu), i = xa(uo, e.__scopeMenu), a = co(uo, e.__scopeMenu), o = Aa(uo, e.__scopeMenu), s = r.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = o, d = { __scopeMenu: e.__scopeMenu }, f = r.useCallback(() => {
|
|
3018
3035
|
s.current && window.clearTimeout(s.current), s.current = null;
|
|
3019
3036
|
}, []);
|
|
3020
3037
|
return r.useEffect(() => f, [f]), r.useEffect(() => {
|
|
@@ -3022,26 +3039,26 @@ var mo = "MenuSubTrigger", ho = r.forwardRef((e, t) => {
|
|
|
3022
3039
|
return () => {
|
|
3023
3040
|
window.clearTimeout(e), l(null);
|
|
3024
3041
|
};
|
|
3025
|
-
}, [c, l]), /* @__PURE__ */
|
|
3042
|
+
}, [c, l]), /* @__PURE__ */ u(wa, {
|
|
3026
3043
|
asChild: !0,
|
|
3027
|
-
...
|
|
3028
|
-
children: /* @__PURE__ */
|
|
3044
|
+
...d,
|
|
3045
|
+
children: /* @__PURE__ */ u(Ua, {
|
|
3029
3046
|
id: a.triggerId,
|
|
3030
3047
|
"aria-haspopup": "menu",
|
|
3031
3048
|
"aria-expanded": n.open,
|
|
3032
3049
|
"aria-controls": a.contentId,
|
|
3033
|
-
"data-state":
|
|
3050
|
+
"data-state": ho(n.open),
|
|
3034
3051
|
...e,
|
|
3035
|
-
ref:
|
|
3052
|
+
ref: h(t, a.onTriggerChange),
|
|
3036
3053
|
onClick: (t) => {
|
|
3037
3054
|
e.onClick?.(t), !(e.disabled || t.defaultPrevented) && (t.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
3038
3055
|
},
|
|
3039
|
-
onPointerMove:
|
|
3056
|
+
onPointerMove: _(e.onPointerMove, Co((t) => {
|
|
3040
3057
|
o.onItemEnter(t), !t.defaultPrevented && !e.disabled && !n.open && !s.current && (o.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
|
|
3041
3058
|
n.onOpenChange(!0), f();
|
|
3042
3059
|
}, 100));
|
|
3043
3060
|
})),
|
|
3044
|
-
onPointerLeave:
|
|
3061
|
+
onPointerLeave: _(e.onPointerLeave, Co((e) => {
|
|
3045
3062
|
f();
|
|
3046
3063
|
let t = n.content?.getBoundingClientRect();
|
|
3047
3064
|
if (t) {
|
|
@@ -3076,27 +3093,27 @@ var mo = "MenuSubTrigger", ho = r.forwardRef((e, t) => {
|
|
|
3076
3093
|
o.onPointerGraceIntentChange(null);
|
|
3077
3094
|
}
|
|
3078
3095
|
})),
|
|
3079
|
-
onKeyDown:
|
|
3096
|
+
onKeyDown: _(e.onKeyDown, (t) => {
|
|
3080
3097
|
let r = o.searchRef.current !== "";
|
|
3081
|
-
e.disabled || r && t.key === " " ||
|
|
3098
|
+
e.disabled || r && t.key === " " || la[i.dir].includes(t.key) && (n.onOpenChange(!0), n.content?.focus(), t.preventDefault());
|
|
3082
3099
|
})
|
|
3083
3100
|
})
|
|
3084
3101
|
});
|
|
3085
3102
|
});
|
|
3086
|
-
|
|
3087
|
-
var
|
|
3088
|
-
let n =
|
|
3089
|
-
return /* @__PURE__ */
|
|
3103
|
+
fo.displayName = uo;
|
|
3104
|
+
var po = "MenuSubContent", mo = r.forwardRef((e, t) => {
|
|
3105
|
+
let n = Da(Q, e.__scopeMenu), { forceMount: i = n.forceMount, ...a } = e, o = Z(Q, e.__scopeMenu), s = xa(Q, e.__scopeMenu), c = co(po, e.__scopeMenu), l = r.useRef(null), d = g(t, l);
|
|
3106
|
+
return /* @__PURE__ */ u(fa.Provider, {
|
|
3090
3107
|
scope: e.__scopeMenu,
|
|
3091
|
-
children: /* @__PURE__ */
|
|
3108
|
+
children: /* @__PURE__ */ u(Y, {
|
|
3092
3109
|
present: i || o.open,
|
|
3093
|
-
children: /* @__PURE__ */
|
|
3110
|
+
children: /* @__PURE__ */ u(fa.Slot, {
|
|
3094
3111
|
scope: e.__scopeMenu,
|
|
3095
|
-
children: /* @__PURE__ */
|
|
3112
|
+
children: /* @__PURE__ */ u(Fa, {
|
|
3096
3113
|
id: c.contentId,
|
|
3097
3114
|
"aria-labelledby": c.triggerId,
|
|
3098
3115
|
...a,
|
|
3099
|
-
ref:
|
|
3116
|
+
ref: d,
|
|
3100
3117
|
align: "start",
|
|
3101
3118
|
side: s.dir === "rtl" ? "left" : "right",
|
|
3102
3119
|
disableOutsidePointerEvents: !1,
|
|
@@ -3106,14 +3123,14 @@ var go = "MenuSubContent", _o = r.forwardRef((e, t) => {
|
|
|
3106
3123
|
s.isUsingKeyboardRef.current && l.current?.focus(), e.preventDefault();
|
|
3107
3124
|
},
|
|
3108
3125
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
3109
|
-
onFocusOutside:
|
|
3126
|
+
onFocusOutside: _(e.onFocusOutside, (e) => {
|
|
3110
3127
|
e.target !== c.trigger && o.onOpenChange(!1);
|
|
3111
3128
|
}),
|
|
3112
|
-
onEscapeKeyDown:
|
|
3129
|
+
onEscapeKeyDown: _(e.onEscapeKeyDown, (e) => {
|
|
3113
3130
|
s.onClose(), e.preventDefault();
|
|
3114
3131
|
}),
|
|
3115
|
-
onKeyDown:
|
|
3116
|
-
let t = e.currentTarget.contains(e.target), n =
|
|
3132
|
+
onKeyDown: _(e.onKeyDown, (e) => {
|
|
3133
|
+
let t = e.currentTarget.contains(e.target), n = ua[s.dir].includes(e.key);
|
|
3117
3134
|
t && n && (o.onOpenChange(!1), c.trigger?.focus(), e.preventDefault());
|
|
3118
3135
|
})
|
|
3119
3136
|
})
|
|
@@ -3121,30 +3138,30 @@ var go = "MenuSubContent", _o = r.forwardRef((e, t) => {
|
|
|
3121
3138
|
})
|
|
3122
3139
|
});
|
|
3123
3140
|
});
|
|
3124
|
-
|
|
3125
|
-
function
|
|
3141
|
+
mo.displayName = po;
|
|
3142
|
+
function ho(e) {
|
|
3126
3143
|
return e ? "open" : "closed";
|
|
3127
3144
|
}
|
|
3128
|
-
function
|
|
3145
|
+
function go(e) {
|
|
3129
3146
|
return e === "indeterminate";
|
|
3130
3147
|
}
|
|
3131
|
-
function
|
|
3132
|
-
return
|
|
3148
|
+
function _o(e) {
|
|
3149
|
+
return go(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
3133
3150
|
}
|
|
3134
|
-
function
|
|
3151
|
+
function vo(e) {
|
|
3135
3152
|
let t = document.activeElement;
|
|
3136
3153
|
for (let n of e) if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
3137
3154
|
}
|
|
3138
|
-
function
|
|
3155
|
+
function yo(e, t) {
|
|
3139
3156
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
3140
3157
|
}
|
|
3141
|
-
function
|
|
3142
|
-
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a =
|
|
3158
|
+
function bo(e, t, n) {
|
|
3159
|
+
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = yo(e, Math.max(i, 0));
|
|
3143
3160
|
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
3144
3161
|
let o = a.find((e) => e.toLowerCase().startsWith(r.toLowerCase()));
|
|
3145
3162
|
return o === n ? void 0 : o;
|
|
3146
3163
|
}
|
|
3147
|
-
function
|
|
3164
|
+
function xo(e, t) {
|
|
3148
3165
|
let { x: n, y: r } = e, i = !1;
|
|
3149
3166
|
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
3150
3167
|
let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
|
|
@@ -3152,32 +3169,32 @@ function wo(e, t) {
|
|
|
3152
3169
|
}
|
|
3153
3170
|
return i;
|
|
3154
3171
|
}
|
|
3155
|
-
function
|
|
3156
|
-
return t ?
|
|
3172
|
+
function So(e, t) {
|
|
3173
|
+
return t ? xo({
|
|
3157
3174
|
x: e.clientX,
|
|
3158
3175
|
y: e.clientY
|
|
3159
3176
|
}, t) : !1;
|
|
3160
3177
|
}
|
|
3161
|
-
function
|
|
3178
|
+
function Co(e) {
|
|
3162
3179
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
3163
3180
|
}
|
|
3164
|
-
var
|
|
3165
|
-
let { __scopeDropdownMenu: t, children: n, dir: i, open: a, defaultOpen: o, onOpenChange: s, modal: c = !0 } = e, l =
|
|
3181
|
+
var wo = Sa, To = wa, Eo = Oa, Do = ja, Oo = La, ko = za, Ao = Ha, jo = Ga, Mo = Ya, No = Za, Po = to, Fo = ro, Io = ao, Lo = lo, Ro = fo, zo = mo, Bo = "DropdownMenu", [Vo, Ho] = y(Bo, [ga]), $ = ga(), [Uo, Wo] = Vo(Bo), Go = (e) => {
|
|
3182
|
+
let { __scopeDropdownMenu: t, children: n, dir: i, open: a, defaultOpen: o, onOpenChange: s, modal: c = !0 } = e, l = $(t), d = r.useRef(null), [f, p] = C({
|
|
3166
3183
|
prop: a,
|
|
3167
3184
|
defaultProp: o ?? !1,
|
|
3168
3185
|
onChange: s,
|
|
3169
|
-
caller:
|
|
3186
|
+
caller: Bo
|
|
3170
3187
|
});
|
|
3171
|
-
return /* @__PURE__ */
|
|
3188
|
+
return /* @__PURE__ */ u(Uo, {
|
|
3172
3189
|
scope: t,
|
|
3173
|
-
triggerId:
|
|
3174
|
-
triggerRef:
|
|
3175
|
-
contentId:
|
|
3190
|
+
triggerId: Le(),
|
|
3191
|
+
triggerRef: d,
|
|
3192
|
+
contentId: Le(),
|
|
3176
3193
|
open: f,
|
|
3177
3194
|
onOpenChange: p,
|
|
3178
3195
|
onOpenToggle: r.useCallback(() => p((e) => !e), [p]),
|
|
3179
3196
|
modal: c,
|
|
3180
|
-
children: /* @__PURE__ */
|
|
3197
|
+
children: /* @__PURE__ */ u(wo, {
|
|
3181
3198
|
...l,
|
|
3182
3199
|
open: f,
|
|
3183
3200
|
onOpenChange: p,
|
|
@@ -3187,13 +3204,13 @@ var Do = Ta, Oo = Da, ko = ja, Ao = Pa, jo = Ba, Mo = Ha, No = Ga, Po = Ja, Fo =
|
|
|
3187
3204
|
})
|
|
3188
3205
|
});
|
|
3189
3206
|
};
|
|
3190
|
-
|
|
3191
|
-
var
|
|
3192
|
-
let { __scopeDropdownMenu: n, disabled: r = !1, ...i } = e, a =
|
|
3193
|
-
return /* @__PURE__ */
|
|
3207
|
+
Go.displayName = Bo;
|
|
3208
|
+
var Ko = "DropdownMenuTrigger", qo = r.forwardRef((e, t) => {
|
|
3209
|
+
let { __scopeDropdownMenu: n, disabled: r = !1, ...i } = e, a = Wo(Ko, n), o = $(n);
|
|
3210
|
+
return /* @__PURE__ */ u(To, {
|
|
3194
3211
|
asChild: !0,
|
|
3195
3212
|
...o,
|
|
3196
|
-
children: /* @__PURE__ */
|
|
3213
|
+
children: /* @__PURE__ */ u(N.button, {
|
|
3197
3214
|
type: "button",
|
|
3198
3215
|
id: a.triggerId,
|
|
3199
3216
|
"aria-haspopup": "menu",
|
|
@@ -3203,11 +3220,11 @@ var Yo = "DropdownMenuTrigger", Xo = r.forwardRef((e, t) => {
|
|
|
3203
3220
|
"data-disabled": r ? "" : void 0,
|
|
3204
3221
|
disabled: r,
|
|
3205
3222
|
...i,
|
|
3206
|
-
ref:
|
|
3207
|
-
onPointerDown:
|
|
3223
|
+
ref: h(t, a.triggerRef),
|
|
3224
|
+
onPointerDown: _(e.onPointerDown, (e) => {
|
|
3208
3225
|
!r && e.button === 0 && e.ctrlKey === !1 && (a.onOpenToggle(), a.open || e.preventDefault());
|
|
3209
3226
|
}),
|
|
3210
|
-
onKeyDown:
|
|
3227
|
+
onKeyDown: _(e.onKeyDown, (e) => {
|
|
3211
3228
|
r || (["Enter", " "].includes(e.key) && a.onOpenToggle(), e.key === "ArrowDown" && a.onOpenChange(!0), [
|
|
3212
3229
|
"Enter",
|
|
3213
3230
|
" ",
|
|
@@ -3217,27 +3234,27 @@ var Yo = "DropdownMenuTrigger", Xo = r.forwardRef((e, t) => {
|
|
|
3217
3234
|
})
|
|
3218
3235
|
});
|
|
3219
3236
|
});
|
|
3220
|
-
|
|
3221
|
-
var
|
|
3222
|
-
let { __scopeDropdownMenu: t, ...n } = e, r =
|
|
3223
|
-
return /* @__PURE__ */
|
|
3237
|
+
qo.displayName = Ko;
|
|
3238
|
+
var Jo = "DropdownMenuPortal", Yo = (e) => {
|
|
3239
|
+
let { __scopeDropdownMenu: t, ...n } = e, r = $(t);
|
|
3240
|
+
return /* @__PURE__ */ u(Eo, {
|
|
3224
3241
|
...r,
|
|
3225
3242
|
...n
|
|
3226
3243
|
});
|
|
3227
3244
|
};
|
|
3228
|
-
|
|
3229
|
-
var
|
|
3230
|
-
let { __scopeDropdownMenu: n, ...i } = e, a =
|
|
3231
|
-
return /* @__PURE__ */
|
|
3245
|
+
Yo.displayName = Jo;
|
|
3246
|
+
var Xo = "DropdownMenuContent", Zo = r.forwardRef((e, t) => {
|
|
3247
|
+
let { __scopeDropdownMenu: n, ...i } = e, a = Wo(Xo, n), o = $(n), s = r.useRef(!1);
|
|
3248
|
+
return /* @__PURE__ */ u(Do, {
|
|
3232
3249
|
id: a.contentId,
|
|
3233
3250
|
"aria-labelledby": a.triggerId,
|
|
3234
3251
|
...o,
|
|
3235
3252
|
...i,
|
|
3236
3253
|
ref: t,
|
|
3237
|
-
onCloseAutoFocus:
|
|
3254
|
+
onCloseAutoFocus: _(e.onCloseAutoFocus, (e) => {
|
|
3238
3255
|
s.current || a.triggerRef.current?.focus(), s.current = !1, e.preventDefault();
|
|
3239
3256
|
}),
|
|
3240
|
-
onInteractOutside:
|
|
3257
|
+
onInteractOutside: _(e.onInteractOutside, (e) => {
|
|
3241
3258
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
3242
3259
|
(!a.modal || r) && (s.current = !0);
|
|
3243
3260
|
}),
|
|
@@ -3251,113 +3268,113 @@ var $o = "DropdownMenuContent", es = r.forwardRef((e, t) => {
|
|
|
3251
3268
|
}
|
|
3252
3269
|
});
|
|
3253
3270
|
});
|
|
3254
|
-
|
|
3255
|
-
var
|
|
3256
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
3257
|
-
return /* @__PURE__ */
|
|
3271
|
+
Zo.displayName = Xo;
|
|
3272
|
+
var Qo = "DropdownMenuGroup", $o = r.forwardRef((e, t) => {
|
|
3273
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3274
|
+
return /* @__PURE__ */ u(Oo, {
|
|
3258
3275
|
...i,
|
|
3259
3276
|
...r,
|
|
3260
3277
|
ref: t
|
|
3261
3278
|
});
|
|
3262
3279
|
});
|
|
3263
|
-
|
|
3264
|
-
var
|
|
3265
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
3266
|
-
return /* @__PURE__ */
|
|
3280
|
+
$o.displayName = Qo;
|
|
3281
|
+
var es = "DropdownMenuLabel", ts = r.forwardRef((e, t) => {
|
|
3282
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3283
|
+
return /* @__PURE__ */ u(ko, {
|
|
3267
3284
|
...i,
|
|
3268
3285
|
...r,
|
|
3269
3286
|
ref: t
|
|
3270
3287
|
});
|
|
3271
3288
|
});
|
|
3272
|
-
|
|
3273
|
-
var
|
|
3274
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
3275
|
-
return /* @__PURE__ */
|
|
3289
|
+
ts.displayName = es;
|
|
3290
|
+
var ns = "DropdownMenuItem", rs = r.forwardRef((e, t) => {
|
|
3291
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3292
|
+
return /* @__PURE__ */ u(Ao, {
|
|
3276
3293
|
...i,
|
|
3277
3294
|
...r,
|
|
3278
3295
|
ref: t
|
|
3279
3296
|
});
|
|
3280
3297
|
});
|
|
3281
|
-
|
|
3282
|
-
var
|
|
3283
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
3284
|
-
return /* @__PURE__ */
|
|
3298
|
+
rs.displayName = ns;
|
|
3299
|
+
var is = "DropdownMenuCheckboxItem", as = r.forwardRef((e, t) => {
|
|
3300
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3301
|
+
return /* @__PURE__ */ u(jo, {
|
|
3285
3302
|
...i,
|
|
3286
3303
|
...r,
|
|
3287
3304
|
ref: t
|
|
3288
3305
|
});
|
|
3289
3306
|
});
|
|
3290
|
-
|
|
3291
|
-
var
|
|
3292
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
3293
|
-
return /* @__PURE__ */
|
|
3307
|
+
as.displayName = is;
|
|
3308
|
+
var os = "DropdownMenuRadioGroup", ss = r.forwardRef((e, t) => {
|
|
3309
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3310
|
+
return /* @__PURE__ */ u(Mo, {
|
|
3294
3311
|
...i,
|
|
3295
3312
|
...r,
|
|
3296
3313
|
ref: t
|
|
3297
3314
|
});
|
|
3298
3315
|
});
|
|
3299
|
-
|
|
3300
|
-
var
|
|
3301
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
3302
|
-
return /* @__PURE__ */
|
|
3316
|
+
ss.displayName = os;
|
|
3317
|
+
var cs = "DropdownMenuRadioItem", ls = r.forwardRef((e, t) => {
|
|
3318
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3319
|
+
return /* @__PURE__ */ u(No, {
|
|
3303
3320
|
...i,
|
|
3304
3321
|
...r,
|
|
3305
3322
|
ref: t
|
|
3306
3323
|
});
|
|
3307
3324
|
});
|
|
3308
|
-
|
|
3309
|
-
var
|
|
3310
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
3311
|
-
return /* @__PURE__ */
|
|
3325
|
+
ls.displayName = cs;
|
|
3326
|
+
var us = "DropdownMenuItemIndicator", ds = r.forwardRef((e, t) => {
|
|
3327
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3328
|
+
return /* @__PURE__ */ u(Po, {
|
|
3312
3329
|
...i,
|
|
3313
3330
|
...r,
|
|
3314
3331
|
ref: t
|
|
3315
3332
|
});
|
|
3316
3333
|
});
|
|
3317
|
-
|
|
3318
|
-
var
|
|
3319
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
3320
|
-
return /* @__PURE__ */
|
|
3334
|
+
ds.displayName = us;
|
|
3335
|
+
var fs = "DropdownMenuSeparator", ps = r.forwardRef((e, t) => {
|
|
3336
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3337
|
+
return /* @__PURE__ */ u(Fo, {
|
|
3321
3338
|
...i,
|
|
3322
3339
|
...r,
|
|
3323
3340
|
ref: t
|
|
3324
3341
|
});
|
|
3325
3342
|
});
|
|
3326
|
-
|
|
3327
|
-
var
|
|
3328
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
3329
|
-
return /* @__PURE__ */
|
|
3343
|
+
ps.displayName = fs;
|
|
3344
|
+
var ms = "DropdownMenuArrow", hs = r.forwardRef((e, t) => {
|
|
3345
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3346
|
+
return /* @__PURE__ */ u(Io, {
|
|
3330
3347
|
...i,
|
|
3331
3348
|
...r,
|
|
3332
3349
|
ref: t
|
|
3333
3350
|
});
|
|
3334
3351
|
});
|
|
3335
|
-
|
|
3336
|
-
var
|
|
3337
|
-
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, o =
|
|
3352
|
+
hs.displayName = ms;
|
|
3353
|
+
var gs = (e) => {
|
|
3354
|
+
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, o = $(t), [s, c] = C({
|
|
3338
3355
|
prop: r,
|
|
3339
3356
|
defaultProp: a ?? !1,
|
|
3340
3357
|
onChange: i,
|
|
3341
3358
|
caller: "DropdownMenuSub"
|
|
3342
3359
|
});
|
|
3343
|
-
return /* @__PURE__ */
|
|
3360
|
+
return /* @__PURE__ */ u(Lo, {
|
|
3344
3361
|
...o,
|
|
3345
3362
|
open: s,
|
|
3346
3363
|
onOpenChange: c,
|
|
3347
3364
|
children: n
|
|
3348
3365
|
});
|
|
3349
|
-
},
|
|
3350
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
3351
|
-
return /* @__PURE__ */
|
|
3366
|
+
}, _s = "DropdownMenuSubTrigger", vs = r.forwardRef((e, t) => {
|
|
3367
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3368
|
+
return /* @__PURE__ */ u(Ro, {
|
|
3352
3369
|
...i,
|
|
3353
3370
|
...r,
|
|
3354
3371
|
ref: t
|
|
3355
3372
|
});
|
|
3356
3373
|
});
|
|
3357
|
-
|
|
3358
|
-
var
|
|
3359
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
3360
|
-
return /* @__PURE__ */
|
|
3374
|
+
vs.displayName = _s;
|
|
3375
|
+
var ys = "DropdownMenuSubContent", bs = r.forwardRef((e, t) => {
|
|
3376
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3377
|
+
return /* @__PURE__ */ u(zo, {
|
|
3361
3378
|
...i,
|
|
3362
3379
|
...r,
|
|
3363
3380
|
ref: t,
|
|
@@ -3371,8 +3388,8 @@ var Ss = "DropdownMenuSubContent", Cs = r.forwardRef((e, t) => {
|
|
|
3371
3388
|
}
|
|
3372
3389
|
});
|
|
3373
3390
|
});
|
|
3374
|
-
|
|
3375
|
-
var
|
|
3391
|
+
bs.displayName = ys;
|
|
3392
|
+
var xs = Go, Ss = qo, Cs = Yo, ws = Zo, Ts = $o, Es = ts, Ds = rs, Os = as, ks = ss, As = ls, js = ds, Ms = ps, Ns = gs, Ps = vs, Fs = bs, Is = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ls = (...e) => e.filter((e, t, n) => !!e && n.indexOf(e) === t).join(" "), Rs = {
|
|
3376
3393
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3377
3394
|
width: 24,
|
|
3378
3395
|
height: 24,
|
|
@@ -3382,56 +3399,56 @@ var ws = Jo, Ts = Xo, Es = Qo, Ds = es, Os = ns, ks = is, As = os, js = cs, Ms =
|
|
|
3382
3399
|
strokeWidth: 2,
|
|
3383
3400
|
strokeLinecap: "round",
|
|
3384
3401
|
strokeLinejoin: "round"
|
|
3385
|
-
},
|
|
3402
|
+
}, zs = o(({ color: e = "currentColor", size: t = 24, strokeWidth: n = 2, absoluteStrokeWidth: r, className: i = "", children: o, iconNode: s, ...c }, l) => a("svg", {
|
|
3386
3403
|
ref: l,
|
|
3387
|
-
...
|
|
3404
|
+
...Rs,
|
|
3388
3405
|
width: t,
|
|
3389
3406
|
height: t,
|
|
3390
3407
|
stroke: e,
|
|
3391
3408
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
3392
|
-
className:
|
|
3409
|
+
className: Ls("lucide", i),
|
|
3393
3410
|
...c
|
|
3394
|
-
}, [...s.map(([e, t]) => a(e, t)), ...Array.isArray(o) ? o : [o]])),
|
|
3395
|
-
let n = o(({ className: n, ...r }, i) => a(
|
|
3411
|
+
}, [...s.map(([e, t]) => a(e, t)), ...Array.isArray(o) ? o : [o]])), Bs = (e, t) => {
|
|
3412
|
+
let n = o(({ className: n, ...r }, i) => a(zs, {
|
|
3396
3413
|
ref: i,
|
|
3397
3414
|
iconNode: t,
|
|
3398
|
-
className:
|
|
3415
|
+
className: Ls(`lucide-${Is(e)}`, n),
|
|
3399
3416
|
...r
|
|
3400
3417
|
}));
|
|
3401
3418
|
return n.displayName = `${e}`, n;
|
|
3402
|
-
},
|
|
3419
|
+
}, Vs = Bs("Check", [["path", {
|
|
3403
3420
|
d: "M20 6 9 17l-5-5",
|
|
3404
3421
|
key: "1gmf2c"
|
|
3405
|
-
}]]),
|
|
3422
|
+
}]]), Hs = Bs("ChevronRight", [["path", {
|
|
3406
3423
|
d: "m9 18 6-6-6-6",
|
|
3407
3424
|
key: "mthhwq"
|
|
3408
|
-
}]]),
|
|
3425
|
+
}]]), Us = Bs("Circle", [["circle", {
|
|
3409
3426
|
cx: "12",
|
|
3410
3427
|
cy: "12",
|
|
3411
3428
|
r: "10",
|
|
3412
3429
|
key: "1mglay"
|
|
3413
|
-
}]]),
|
|
3430
|
+
}]]), Ws = xs, Gs = Ss, Ks = Ts, qs = Cs, Js = Ns, Ys = ks, Xs = r.forwardRef(({ className: t, inset: r, children: i, ...a }, o) => /* @__PURE__ */ d(Ps, {
|
|
3414
3431
|
ref: o,
|
|
3415
3432
|
className: e("flex cursor-default select-none items-center rounded-2xs px-2 py-1.5 text-sm outline-none focus:bg-f1-background-secondary data-[state=open]:bg-f1-background-secondary", r && "pl-8", t),
|
|
3416
3433
|
...a,
|
|
3417
|
-
children: [i, /* @__PURE__ */
|
|
3418
|
-
icon:
|
|
3434
|
+
children: [i, /* @__PURE__ */ u(n, {
|
|
3435
|
+
icon: Hs,
|
|
3419
3436
|
size: "md",
|
|
3420
3437
|
className: "ml-auto"
|
|
3421
3438
|
})]
|
|
3422
3439
|
}));
|
|
3423
|
-
|
|
3424
|
-
var
|
|
3440
|
+
Xs.displayName = Ps.displayName;
|
|
3441
|
+
var Zs = r.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ u(Fs, {
|
|
3425
3442
|
ref: r,
|
|
3426
3443
|
className: e("z-50 min-w-[--radix-popper-anchor-width] overflow-hidden rounded-md border bg-f1-background text-f1-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", t),
|
|
3427
3444
|
...n
|
|
3428
3445
|
}));
|
|
3429
|
-
|
|
3430
|
-
var
|
|
3446
|
+
Zs.displayName = Fs.displayName;
|
|
3447
|
+
var Qs = r.forwardRef(({ className: n, sideOffset: r = 4, container: i, ...a }, o) => {
|
|
3431
3448
|
let s = t();
|
|
3432
|
-
return /* @__PURE__ */
|
|
3449
|
+
return /* @__PURE__ */ u(Cs, {
|
|
3433
3450
|
container: i ?? s ?? void 0,
|
|
3434
|
-
children: /* @__PURE__ */
|
|
3451
|
+
children: /* @__PURE__ */ u(ws, {
|
|
3435
3452
|
ref: o,
|
|
3436
3453
|
sideOffset: r,
|
|
3437
3454
|
className: e("z-50 min-w-[--radix-popper-anchor-width] overflow-hidden rounded-md border border-solid border-f1-border-secondary bg-f1-background text-f1-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", "origin-[var(--radix-dropdown-menu-content-transform-origin)]", n),
|
|
@@ -3439,30 +3456,30 @@ var tc = r.forwardRef(({ className: n, sideOffset: r = 4, container: i, ...a },
|
|
|
3439
3456
|
})
|
|
3440
3457
|
});
|
|
3441
3458
|
});
|
|
3442
|
-
|
|
3443
|
-
var
|
|
3459
|
+
Qs.displayName = ws.displayName;
|
|
3460
|
+
var $s = e("relative flex cursor-default select-none items-center rounded py-2 pl-3 pr-5 text-base font-medium outline-none transition-colors after:absolute after:inset-x-1 after:inset-y-0 after:h-full after:rounded after:bg-f1-background-hover after:opacity-0 after:transition-opacity after:duration-75 after:content-[''] first:pt-3 first:after:top-1 first:after:h-[calc(100%-0.25rem)] last:pb-3 last:after:bottom-1 last:after:h-[calc(100%-0.25rem)] hover:after:opacity-100 focus:after:opacity-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50", "only:after:inset-y-1 only:after:h-auto", "focus:outline-none focus:ring-0 focus:ring-transparent"), ec = r.forwardRef(({ className: t, inset: n, ...r }, i) => /* @__PURE__ */ u(Ds, {
|
|
3444
3461
|
onClick: (e) => {
|
|
3445
3462
|
e.stopPropagation();
|
|
3446
3463
|
},
|
|
3447
3464
|
ref: i,
|
|
3448
|
-
className: e(
|
|
3465
|
+
className: e($s, n && "pl-8", t),
|
|
3449
3466
|
...r
|
|
3450
3467
|
}));
|
|
3451
|
-
|
|
3452
|
-
var
|
|
3468
|
+
ec.displayName = Ds.displayName;
|
|
3469
|
+
var tc = r.forwardRef(({ className: t, children: n, checked: r, ...i }, a) => /* @__PURE__ */ d(Os, {
|
|
3453
3470
|
ref: a,
|
|
3454
3471
|
className: e("relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-f1-background-secondary focus:text-f1-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t),
|
|
3455
3472
|
checked: r,
|
|
3456
3473
|
...i,
|
|
3457
|
-
children: [/* @__PURE__ */
|
|
3474
|
+
children: [/* @__PURE__ */ u("span", {
|
|
3458
3475
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
3459
|
-
children: /* @__PURE__ */
|
|
3476
|
+
children: /* @__PURE__ */ u(js, { children: /* @__PURE__ */ u(Vs, { className: "h-4 w-4" }) })
|
|
3460
3477
|
}), n]
|
|
3461
3478
|
}));
|
|
3462
|
-
|
|
3463
|
-
var
|
|
3479
|
+
tc.displayName = Os.displayName;
|
|
3480
|
+
var nc = r.forwardRef(({ className: t, children: n, checked: r, onSelect: i, ...a }, o) => /* @__PURE__ */ u(Os, {
|
|
3464
3481
|
ref: o,
|
|
3465
|
-
className: e(
|
|
3482
|
+
className: e($s, t),
|
|
3466
3483
|
checked: r,
|
|
3467
3484
|
onSelect: (e) => {
|
|
3468
3485
|
e.preventDefault(), i?.(e);
|
|
@@ -3470,843 +3487,46 @@ var ac = r.forwardRef(({ className: t, children: n, checked: r, onSelect: i, ...
|
|
|
3470
3487
|
...a,
|
|
3471
3488
|
children: n
|
|
3472
3489
|
}));
|
|
3473
|
-
|
|
3474
|
-
var
|
|
3490
|
+
nc.displayName = "DropdownMenuToggleItem";
|
|
3491
|
+
var rc = r.forwardRef(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ d(As, {
|
|
3475
3492
|
ref: i,
|
|
3476
3493
|
className: e("relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-f1-background-secondary focus:text-f1-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t),
|
|
3477
3494
|
...r,
|
|
3478
|
-
children: [/* @__PURE__ */
|
|
3495
|
+
children: [/* @__PURE__ */ u("span", {
|
|
3479
3496
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
3480
|
-
children: /* @__PURE__ */
|
|
3497
|
+
children: /* @__PURE__ */ u(js, { children: /* @__PURE__ */ u(Us, { className: "h-2 w-2 fill-current" }) })
|
|
3481
3498
|
}), n]
|
|
3482
3499
|
}));
|
|
3483
|
-
|
|
3484
|
-
var
|
|
3500
|
+
rc.displayName = As.displayName;
|
|
3501
|
+
var ic = r.forwardRef(({ className: t, inset: n, ...r }, i) => /* @__PURE__ */ u(Es, {
|
|
3485
3502
|
ref: i,
|
|
3486
3503
|
className: e("px-2 py-1.5 text-sm font-semibold", n && "pl-8", t),
|
|
3487
3504
|
...r
|
|
3488
3505
|
}));
|
|
3489
|
-
|
|
3490
|
-
var
|
|
3506
|
+
ic.displayName = Es.displayName;
|
|
3507
|
+
var ac = r.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ u(Ms, {
|
|
3491
3508
|
ref: r,
|
|
3492
3509
|
className: e("-mx-1 my-1 h-px bg-f1-border-secondary", t),
|
|
3493
3510
|
...n
|
|
3494
3511
|
}));
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
function lc(e, t) {
|
|
3499
|
-
let n = r.createContext(t), i = (e) => {
|
|
3500
|
-
let { children: t, ...i } = e, a = r.useMemo(() => i, Object.values(i));
|
|
3501
|
-
return /* @__PURE__ */ d(n.Provider, {
|
|
3502
|
-
value: a,
|
|
3503
|
-
children: t
|
|
3504
|
-
});
|
|
3505
|
-
};
|
|
3506
|
-
i.displayName = e + "Provider";
|
|
3507
|
-
function a(i) {
|
|
3508
|
-
let a = r.useContext(n);
|
|
3509
|
-
if (a) return a;
|
|
3510
|
-
if (t !== void 0) return t;
|
|
3511
|
-
throw Error(`\`${i}\` must be used within \`${e}\``);
|
|
3512
|
-
}
|
|
3513
|
-
return [i, a];
|
|
3514
|
-
}
|
|
3515
|
-
function uc(e, t = []) {
|
|
3516
|
-
let n = [];
|
|
3517
|
-
function i(t, i) {
|
|
3518
|
-
let a = r.createContext(i), o = n.length;
|
|
3519
|
-
n = [...n, i];
|
|
3520
|
-
let s = (t) => {
|
|
3521
|
-
let { scope: n, children: i, ...s } = t, c = n?.[e]?.[o] || a, l = r.useMemo(() => s, Object.values(s));
|
|
3522
|
-
return /* @__PURE__ */ d(c.Provider, {
|
|
3523
|
-
value: l,
|
|
3524
|
-
children: i
|
|
3525
|
-
});
|
|
3526
|
-
};
|
|
3527
|
-
s.displayName = t + "Provider";
|
|
3528
|
-
function c(n, s) {
|
|
3529
|
-
let c = s?.[e]?.[o] || a, l = r.useContext(c);
|
|
3530
|
-
if (l) return l;
|
|
3531
|
-
if (i !== void 0) return i;
|
|
3532
|
-
throw Error(`\`${n}\` must be used within \`${t}\``);
|
|
3533
|
-
}
|
|
3534
|
-
return [s, c];
|
|
3535
|
-
}
|
|
3536
|
-
let a = () => {
|
|
3537
|
-
let t = n.map((e) => r.createContext(e));
|
|
3538
|
-
return function(n) {
|
|
3539
|
-
let i = n?.[e] || t;
|
|
3540
|
-
return r.useMemo(() => ({ [`__scope${e}`]: {
|
|
3541
|
-
...n,
|
|
3542
|
-
[e]: i
|
|
3543
|
-
} }), [n, i]);
|
|
3544
|
-
};
|
|
3545
|
-
};
|
|
3546
|
-
return a.scopeName = e, [i, dc(a, ...t)];
|
|
3547
|
-
}
|
|
3548
|
-
function dc(...e) {
|
|
3549
|
-
let t = e[0];
|
|
3550
|
-
if (e.length === 1) return t;
|
|
3551
|
-
let n = () => {
|
|
3552
|
-
let n = e.map((e) => ({
|
|
3553
|
-
useScope: e(),
|
|
3554
|
-
scopeName: e.scopeName
|
|
3555
|
-
}));
|
|
3556
|
-
return function(e) {
|
|
3557
|
-
let i = n.reduce((t, { useScope: n, scopeName: r }) => {
|
|
3558
|
-
let i = n(e)[`__scope${r}`];
|
|
3559
|
-
return {
|
|
3560
|
-
...t,
|
|
3561
|
-
...i
|
|
3562
|
-
};
|
|
3563
|
-
}, {});
|
|
3564
|
-
return r.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
|
|
3565
|
-
};
|
|
3566
|
-
};
|
|
3567
|
-
return n.scopeName = t.scopeName, n;
|
|
3568
|
-
}
|
|
3569
|
-
//#endregion
|
|
3570
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
3571
|
-
function Z(e) {
|
|
3572
|
-
let t = r.useRef(e);
|
|
3573
|
-
return r.useEffect(() => {
|
|
3574
|
-
t.current = e;
|
|
3575
|
-
}), r.useMemo(() => (...e) => t.current?.(...e), []);
|
|
3576
|
-
}
|
|
3577
|
-
//#endregion
|
|
3578
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
3579
|
-
var fc = globalThis?.document ? r.useLayoutEffect : () => {};
|
|
3580
|
-
//#endregion
|
|
3581
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
3582
|
-
function pc(e, t) {
|
|
3583
|
-
if (typeof e == "function") return e(t);
|
|
3584
|
-
e != null && (e.current = t);
|
|
3585
|
-
}
|
|
3586
|
-
function mc(...e) {
|
|
3587
|
-
return (t) => {
|
|
3588
|
-
let n = !1, r = e.map((e) => {
|
|
3589
|
-
let r = pc(e, t);
|
|
3590
|
-
return !n && typeof r == "function" && (n = !0), r;
|
|
3591
|
-
});
|
|
3592
|
-
if (n) return () => {
|
|
3593
|
-
for (let t = 0; t < r.length; t++) {
|
|
3594
|
-
let n = r[t];
|
|
3595
|
-
typeof n == "function" ? n() : pc(e[t], null);
|
|
3596
|
-
}
|
|
3597
|
-
};
|
|
3598
|
-
};
|
|
3599
|
-
}
|
|
3600
|
-
function Q(...e) {
|
|
3601
|
-
return r.useCallback(mc(...e), e);
|
|
3602
|
-
}
|
|
3603
|
-
//#endregion
|
|
3604
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
3605
|
-
var hc = r.forwardRef((e, t) => {
|
|
3606
|
-
let { children: n, ...i } = e, a = r.Children.toArray(n), o = a.find(vc);
|
|
3607
|
-
if (o) {
|
|
3608
|
-
let e = o.props.children, n = a.map((t) => t === o ? r.Children.count(e) > 1 ? r.Children.only(null) : r.isValidElement(e) ? e.props.children : null : t);
|
|
3609
|
-
return /* @__PURE__ */ d(gc, {
|
|
3610
|
-
...i,
|
|
3611
|
-
ref: t,
|
|
3612
|
-
children: r.isValidElement(e) ? r.cloneElement(e, void 0, n) : null
|
|
3613
|
-
});
|
|
3614
|
-
}
|
|
3615
|
-
return /* @__PURE__ */ d(gc, {
|
|
3616
|
-
...i,
|
|
3617
|
-
ref: t,
|
|
3618
|
-
children: n
|
|
3619
|
-
});
|
|
3620
|
-
});
|
|
3621
|
-
hc.displayName = "Slot";
|
|
3622
|
-
var gc = r.forwardRef((e, t) => {
|
|
3623
|
-
let { children: n, ...i } = e;
|
|
3624
|
-
if (r.isValidElement(n)) {
|
|
3625
|
-
let e = bc(n);
|
|
3626
|
-
return r.cloneElement(n, {
|
|
3627
|
-
...yc(i, n.props),
|
|
3628
|
-
ref: t ? mc(t, e) : e
|
|
3629
|
-
});
|
|
3630
|
-
}
|
|
3631
|
-
return r.Children.count(n) > 1 ? r.Children.only(null) : null;
|
|
3632
|
-
});
|
|
3633
|
-
gc.displayName = "SlotClone";
|
|
3634
|
-
var _c = ({ children: e }) => /* @__PURE__ */ d(u, { children: e });
|
|
3635
|
-
function vc(e) {
|
|
3636
|
-
return r.isValidElement(e) && e.type === _c;
|
|
3637
|
-
}
|
|
3638
|
-
function yc(e, t) {
|
|
3639
|
-
let n = { ...t };
|
|
3640
|
-
for (let r in t) {
|
|
3641
|
-
let i = e[r], a = t[r];
|
|
3642
|
-
/^on[A-Z]/.test(r) ? i && a ? n[r] = (...e) => {
|
|
3643
|
-
a(...e), i(...e);
|
|
3644
|
-
} : i && (n[r] = i) : r === "style" ? n[r] = {
|
|
3645
|
-
...i,
|
|
3646
|
-
...a
|
|
3647
|
-
} : r === "className" && (n[r] = [i, a].filter(Boolean).join(" "));
|
|
3648
|
-
}
|
|
3649
|
-
return {
|
|
3650
|
-
...e,
|
|
3651
|
-
...n
|
|
3652
|
-
};
|
|
3653
|
-
}
|
|
3654
|
-
function bc(e) {
|
|
3655
|
-
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
3656
|
-
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
3657
|
-
}
|
|
3658
|
-
//#endregion
|
|
3659
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.0.1_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
3660
|
-
var $ = [
|
|
3661
|
-
"a",
|
|
3662
|
-
"button",
|
|
3663
|
-
"div",
|
|
3664
|
-
"form",
|
|
3665
|
-
"h2",
|
|
3666
|
-
"h3",
|
|
3667
|
-
"img",
|
|
3668
|
-
"input",
|
|
3669
|
-
"label",
|
|
3670
|
-
"li",
|
|
3671
|
-
"nav",
|
|
3672
|
-
"ol",
|
|
3673
|
-
"p",
|
|
3674
|
-
"span",
|
|
3675
|
-
"svg",
|
|
3676
|
-
"ul"
|
|
3677
|
-
].reduce((e, t) => {
|
|
3678
|
-
let n = r.forwardRef((e, n) => {
|
|
3679
|
-
let { asChild: r, ...i } = e, a = r ? hc : t;
|
|
3680
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d(a, {
|
|
3681
|
-
...i,
|
|
3682
|
-
ref: n
|
|
3683
|
-
});
|
|
3684
|
-
});
|
|
3685
|
-
return n.displayName = `Primitive.${t}`, {
|
|
3686
|
-
...e,
|
|
3687
|
-
[t]: n
|
|
3688
|
-
};
|
|
3689
|
-
}, {});
|
|
3690
|
-
function xc(e, t) {
|
|
3691
|
-
e && m.flushSync(() => e.dispatchEvent(t));
|
|
3692
|
-
}
|
|
3693
|
-
//#endregion
|
|
3694
|
-
//#region ../../node_modules/.pnpm/@radix-ui+primitive@1.1.1/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
3695
|
-
function Sc(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
3696
|
-
return function(r) {
|
|
3697
|
-
if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
|
|
3698
|
-
};
|
|
3699
|
-
}
|
|
3700
|
-
//#endregion
|
|
3701
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-id@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
3702
|
-
var Cc = r.useId || (() => void 0), wc = 0;
|
|
3703
|
-
function Tc(e) {
|
|
3704
|
-
let [t, n] = r.useState(Cc());
|
|
3705
|
-
return fc(() => {
|
|
3706
|
-
e || n((e) => e ?? String(wc++));
|
|
3707
|
-
}, [e]), e || (t ? `radix-${t}` : "");
|
|
3708
|
-
}
|
|
3709
|
-
//#endregion
|
|
3710
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
3711
|
-
function Ec({ prop: e, defaultProp: t, onChange: n = () => {} }) {
|
|
3712
|
-
let [i, a] = Dc({
|
|
3713
|
-
defaultProp: t,
|
|
3714
|
-
onChange: n
|
|
3715
|
-
}), o = e !== void 0, s = o ? e : i, c = Z(n);
|
|
3716
|
-
return [s, r.useCallback((t) => {
|
|
3717
|
-
if (o) {
|
|
3718
|
-
let n = typeof t == "function" ? t(e) : t;
|
|
3719
|
-
n !== e && c(n);
|
|
3720
|
-
} else a(t);
|
|
3721
|
-
}, [
|
|
3722
|
-
o,
|
|
3723
|
-
e,
|
|
3724
|
-
a,
|
|
3725
|
-
c
|
|
3726
|
-
])];
|
|
3727
|
-
}
|
|
3728
|
-
function Dc({ defaultProp: e, onChange: t }) {
|
|
3729
|
-
let n = r.useState(e), [i] = n, a = r.useRef(i), o = Z(t);
|
|
3730
|
-
return r.useEffect(() => {
|
|
3731
|
-
a.current !== i && (o(i), a.current = i);
|
|
3732
|
-
}, [
|
|
3733
|
-
i,
|
|
3734
|
-
a,
|
|
3735
|
-
o
|
|
3736
|
-
]), n;
|
|
3737
|
-
}
|
|
3738
|
-
//#endregion
|
|
3739
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
3740
|
-
function Oc(e, t = globalThis?.document) {
|
|
3741
|
-
let n = Z(e);
|
|
3742
|
-
r.useEffect(() => {
|
|
3743
|
-
let e = (e) => {
|
|
3744
|
-
e.key === "Escape" && n(e);
|
|
3745
|
-
};
|
|
3746
|
-
return t.addEventListener("keydown", e, { capture: !0 }), () => t.removeEventListener("keydown", e, { capture: !0 });
|
|
3747
|
-
}, [n, t]);
|
|
3748
|
-
}
|
|
3749
|
-
//#endregion
|
|
3750
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.4_@types+react-dom@18.3.1_@types+react@18.3.18_re_6829a286676bb181dfd20166d597ec2d/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
3751
|
-
var kc = "DismissableLayer", Ac = "dismissableLayer.update", jc = "dismissableLayer.pointerDownOutside", Mc = "dismissableLayer.focusOutside", Nc, Pc = r.createContext({
|
|
3752
|
-
layers: /* @__PURE__ */ new Set(),
|
|
3753
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3754
|
-
branches: /* @__PURE__ */ new Set()
|
|
3755
|
-
}), Fc = r.forwardRef((e, t) => {
|
|
3756
|
-
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = e, u = r.useContext(Pc), [f, p] = r.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, h] = r.useState({}), g = Q(t, (e) => p(e)), _ = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = _.indexOf(v), b = f ? _.indexOf(f) : -1, x = u.layersWithOutsidePointerEventsDisabled.size > 0, S = b >= y, C = Rc((e) => {
|
|
3757
|
-
let t = e.target, n = [...u.branches].some((e) => e.contains(t));
|
|
3758
|
-
S && !n && (a?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
3759
|
-
}, m), w = zc((e) => {
|
|
3760
|
-
let t = e.target;
|
|
3761
|
-
[...u.branches].some((e) => e.contains(t)) || (o?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
3762
|
-
}, m);
|
|
3763
|
-
return Oc((e) => {
|
|
3764
|
-
b === u.layers.size - 1 && (i?.(e), !e.defaultPrevented && c && (e.preventDefault(), c()));
|
|
3765
|
-
}, m), r.useEffect(() => {
|
|
3766
|
-
if (f) return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Nc = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), Bc(), () => {
|
|
3767
|
-
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = Nc);
|
|
3768
|
-
};
|
|
3769
|
-
}, [
|
|
3770
|
-
f,
|
|
3771
|
-
m,
|
|
3772
|
-
n,
|
|
3773
|
-
u
|
|
3774
|
-
]), r.useEffect(() => () => {
|
|
3775
|
-
f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), Bc());
|
|
3776
|
-
}, [f, u]), r.useEffect(() => {
|
|
3777
|
-
let e = () => h({});
|
|
3778
|
-
return document.addEventListener(Ac, e), () => document.removeEventListener(Ac, e);
|
|
3779
|
-
}, []), /* @__PURE__ */ d($.div, {
|
|
3780
|
-
...l,
|
|
3781
|
-
ref: g,
|
|
3782
|
-
style: {
|
|
3783
|
-
pointerEvents: x ? S ? "auto" : "none" : void 0,
|
|
3784
|
-
...e.style
|
|
3785
|
-
},
|
|
3786
|
-
onFocusCapture: Sc(e.onFocusCapture, w.onFocusCapture),
|
|
3787
|
-
onBlurCapture: Sc(e.onBlurCapture, w.onBlurCapture),
|
|
3788
|
-
onPointerDownCapture: Sc(e.onPointerDownCapture, C.onPointerDownCapture)
|
|
3789
|
-
});
|
|
3790
|
-
});
|
|
3791
|
-
Fc.displayName = kc;
|
|
3792
|
-
var Ic = "DismissableLayerBranch", Lc = r.forwardRef((e, t) => {
|
|
3793
|
-
let n = r.useContext(Pc), i = r.useRef(null), a = Q(t, i);
|
|
3794
|
-
return r.useEffect(() => {
|
|
3795
|
-
let e = i.current;
|
|
3796
|
-
if (e) return n.branches.add(e), () => {
|
|
3797
|
-
n.branches.delete(e);
|
|
3798
|
-
};
|
|
3799
|
-
}, [n.branches]), /* @__PURE__ */ d($.div, {
|
|
3800
|
-
...e,
|
|
3801
|
-
ref: a
|
|
3802
|
-
});
|
|
3803
|
-
});
|
|
3804
|
-
Lc.displayName = Ic;
|
|
3805
|
-
function Rc(e, t = globalThis?.document) {
|
|
3806
|
-
let n = Z(e), i = r.useRef(!1), a = r.useRef(() => {});
|
|
3807
|
-
return r.useEffect(() => {
|
|
3808
|
-
let e = (e) => {
|
|
3809
|
-
if (e.target && !i.current) {
|
|
3810
|
-
let r = function() {
|
|
3811
|
-
Vc(jc, n, i, { discrete: !0 });
|
|
3812
|
-
}, i = { originalEvent: e };
|
|
3813
|
-
e.pointerType === "touch" ? (t.removeEventListener("click", a.current), a.current = r, t.addEventListener("click", a.current, { once: !0 })) : r();
|
|
3814
|
-
} else t.removeEventListener("click", a.current);
|
|
3815
|
-
i.current = !1;
|
|
3816
|
-
}, r = window.setTimeout(() => {
|
|
3817
|
-
t.addEventListener("pointerdown", e);
|
|
3818
|
-
}, 0);
|
|
3819
|
-
return () => {
|
|
3820
|
-
window.clearTimeout(r), t.removeEventListener("pointerdown", e), t.removeEventListener("click", a.current);
|
|
3821
|
-
};
|
|
3822
|
-
}, [t, n]), { onPointerDownCapture: () => i.current = !0 };
|
|
3823
|
-
}
|
|
3824
|
-
function zc(e, t = globalThis?.document) {
|
|
3825
|
-
let n = Z(e), i = r.useRef(!1);
|
|
3826
|
-
return r.useEffect(() => {
|
|
3827
|
-
let e = (e) => {
|
|
3828
|
-
e.target && !i.current && Vc(Mc, n, { originalEvent: e }, { discrete: !1 });
|
|
3829
|
-
};
|
|
3830
|
-
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
|
|
3831
|
-
}, [t, n]), {
|
|
3832
|
-
onFocusCapture: () => i.current = !0,
|
|
3833
|
-
onBlurCapture: () => i.current = !1
|
|
3834
|
-
};
|
|
3835
|
-
}
|
|
3836
|
-
function Bc() {
|
|
3837
|
-
let e = new CustomEvent(Ac);
|
|
3838
|
-
document.dispatchEvent(e);
|
|
3839
|
-
}
|
|
3840
|
-
function Vc(e, t, n, { discrete: r }) {
|
|
3841
|
-
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
3842
|
-
bubbles: !1,
|
|
3843
|
-
cancelable: !0,
|
|
3844
|
-
detail: n
|
|
3845
|
-
});
|
|
3846
|
-
t && i.addEventListener(e, t, { once: !0 }), r ? xc(i, a) : i.dispatchEvent(a);
|
|
3847
|
-
}
|
|
3848
|
-
//#endregion
|
|
3849
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.1_@types+react-dom@18.3.1_@types+react@18.3.18_react-do_706903c570469dc042edac24aa08aefe/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
3850
|
-
var Hc = "focusScope.autoFocusOnMount", Uc = "focusScope.autoFocusOnUnmount", Wc = {
|
|
3851
|
-
bubbles: !1,
|
|
3852
|
-
cancelable: !0
|
|
3853
|
-
}, Gc = "FocusScope", Kc = r.forwardRef((e, t) => {
|
|
3854
|
-
let { loop: n = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = e, [c, l] = r.useState(null), u = Z(a), f = Z(o), p = r.useRef(null), m = Q(t, (e) => l(e)), h = r.useRef({
|
|
3855
|
-
paused: !1,
|
|
3856
|
-
pause() {
|
|
3857
|
-
this.paused = !0;
|
|
3858
|
-
},
|
|
3859
|
-
resume() {
|
|
3860
|
-
this.paused = !1;
|
|
3861
|
-
}
|
|
3862
|
-
}).current;
|
|
3863
|
-
r.useEffect(() => {
|
|
3864
|
-
if (i) {
|
|
3865
|
-
let e = function(e) {
|
|
3866
|
-
if (h.paused || !c) return;
|
|
3867
|
-
let t = e.target;
|
|
3868
|
-
c.contains(t) ? p.current = t : $c(p.current, { select: !0 });
|
|
3869
|
-
}, t = function(e) {
|
|
3870
|
-
if (h.paused || !c) return;
|
|
3871
|
-
let t = e.relatedTarget;
|
|
3872
|
-
t !== null && (c.contains(t) || $c(p.current, { select: !0 }));
|
|
3873
|
-
}, n = function(e) {
|
|
3874
|
-
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && $c(c);
|
|
3875
|
-
};
|
|
3876
|
-
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
3877
|
-
let r = new MutationObserver(n);
|
|
3878
|
-
return c && r.observe(c, {
|
|
3879
|
-
childList: !0,
|
|
3880
|
-
subtree: !0
|
|
3881
|
-
}), () => {
|
|
3882
|
-
document.removeEventListener("focusin", e), document.removeEventListener("focusout", t), r.disconnect();
|
|
3883
|
-
};
|
|
3884
|
-
}
|
|
3885
|
-
}, [
|
|
3886
|
-
i,
|
|
3887
|
-
c,
|
|
3888
|
-
h.paused
|
|
3889
|
-
]), r.useEffect(() => {
|
|
3890
|
-
if (c) {
|
|
3891
|
-
el.add(h);
|
|
3892
|
-
let e = document.activeElement;
|
|
3893
|
-
if (!c.contains(e)) {
|
|
3894
|
-
let t = new CustomEvent(Hc, Wc);
|
|
3895
|
-
c.addEventListener(Hc, u), c.dispatchEvent(t), t.defaultPrevented || (qc(rl(Yc(c)), { select: !0 }), document.activeElement === e && $c(c));
|
|
3896
|
-
}
|
|
3897
|
-
return () => {
|
|
3898
|
-
c.removeEventListener(Hc, u), setTimeout(() => {
|
|
3899
|
-
let t = new CustomEvent(Uc, Wc);
|
|
3900
|
-
c.addEventListener(Uc, f), c.dispatchEvent(t), t.defaultPrevented || $c(e ?? document.body, { select: !0 }), c.removeEventListener(Uc, f), el.remove(h);
|
|
3901
|
-
}, 0);
|
|
3902
|
-
};
|
|
3903
|
-
}
|
|
3904
|
-
}, [
|
|
3905
|
-
c,
|
|
3906
|
-
u,
|
|
3907
|
-
f,
|
|
3908
|
-
h
|
|
3909
|
-
]);
|
|
3910
|
-
let g = r.useCallback((e) => {
|
|
3911
|
-
if (!n && !i || h.paused) return;
|
|
3912
|
-
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, r = document.activeElement;
|
|
3913
|
-
if (t && r) {
|
|
3914
|
-
let t = e.currentTarget, [i, a] = Jc(t);
|
|
3915
|
-
i && a ? !e.shiftKey && r === a ? (e.preventDefault(), n && $c(i, { select: !0 })) : e.shiftKey && r === i && (e.preventDefault(), n && $c(a, { select: !0 })) : r === t && e.preventDefault();
|
|
3916
|
-
}
|
|
3917
|
-
}, [
|
|
3918
|
-
n,
|
|
3919
|
-
i,
|
|
3920
|
-
h.paused
|
|
3921
|
-
]);
|
|
3922
|
-
return /* @__PURE__ */ d($.div, {
|
|
3923
|
-
tabIndex: -1,
|
|
3924
|
-
...s,
|
|
3925
|
-
ref: m,
|
|
3926
|
-
onKeyDown: g
|
|
3927
|
-
});
|
|
3928
|
-
});
|
|
3929
|
-
Kc.displayName = Gc;
|
|
3930
|
-
function qc(e, { select: t = !1 } = {}) {
|
|
3931
|
-
let n = document.activeElement;
|
|
3932
|
-
for (let r of e) if ($c(r, { select: t }), document.activeElement !== n) return;
|
|
3933
|
-
}
|
|
3934
|
-
function Jc(e) {
|
|
3935
|
-
let t = Yc(e);
|
|
3936
|
-
return [Xc(t, e), Xc(t.reverse(), e)];
|
|
3937
|
-
}
|
|
3938
|
-
function Yc(e) {
|
|
3939
|
-
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
3940
|
-
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
3941
|
-
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
3942
|
-
} });
|
|
3943
|
-
for (; n.nextNode();) t.push(n.currentNode);
|
|
3944
|
-
return t;
|
|
3945
|
-
}
|
|
3946
|
-
function Xc(e, t) {
|
|
3947
|
-
for (let n of e) if (!Zc(n, { upTo: t })) return n;
|
|
3948
|
-
}
|
|
3949
|
-
function Zc(e, { upTo: t }) {
|
|
3950
|
-
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
3951
|
-
for (; e;) {
|
|
3952
|
-
if (t !== void 0 && e === t) return !1;
|
|
3953
|
-
if (getComputedStyle(e).display === "none") return !0;
|
|
3954
|
-
e = e.parentElement;
|
|
3955
|
-
}
|
|
3956
|
-
return !1;
|
|
3957
|
-
}
|
|
3958
|
-
function Qc(e) {
|
|
3959
|
-
return e instanceof HTMLInputElement && "select" in e;
|
|
3960
|
-
}
|
|
3961
|
-
function $c(e, { select: t = !1 } = {}) {
|
|
3962
|
-
if (e && e.focus) {
|
|
3963
|
-
let n = document.activeElement;
|
|
3964
|
-
e.focus({ preventScroll: !0 }), e !== n && Qc(e) && t && e.select();
|
|
3965
|
-
}
|
|
3966
|
-
}
|
|
3967
|
-
var el = tl();
|
|
3968
|
-
function tl() {
|
|
3969
|
-
let e = [];
|
|
3970
|
-
return {
|
|
3971
|
-
add(t) {
|
|
3972
|
-
let n = e[0];
|
|
3973
|
-
t !== n && n?.pause(), e = nl(e, t), e.unshift(t);
|
|
3974
|
-
},
|
|
3975
|
-
remove(t) {
|
|
3976
|
-
e = nl(e, t), e[0]?.resume();
|
|
3977
|
-
}
|
|
3978
|
-
};
|
|
3979
|
-
}
|
|
3980
|
-
function nl(e, t) {
|
|
3981
|
-
let n = [...e], r = n.indexOf(t);
|
|
3982
|
-
return r !== -1 && n.splice(r, 1), n;
|
|
3983
|
-
}
|
|
3984
|
-
function rl(e) {
|
|
3985
|
-
return e.filter((e) => e.tagName !== "A");
|
|
3986
|
-
}
|
|
3987
|
-
//#endregion
|
|
3988
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-portal@1.1.3_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
3989
|
-
var il = "Portal", al = r.forwardRef((e, t) => {
|
|
3990
|
-
let { container: n, ...i } = e, [a, o] = r.useState(!1);
|
|
3991
|
-
fc(() => o(!0), []);
|
|
3992
|
-
let s = n || a && globalThis?.document?.body;
|
|
3993
|
-
return s ? p.createPortal(/* @__PURE__ */ d($.div, {
|
|
3994
|
-
...i,
|
|
3995
|
-
ref: t
|
|
3996
|
-
}), s) : null;
|
|
3997
|
-
});
|
|
3998
|
-
al.displayName = il;
|
|
3999
|
-
//#endregion
|
|
4000
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.2_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
4001
|
-
function ol(e, t) {
|
|
4002
|
-
return r.useReducer((e, n) => t[e][n] ?? e, e);
|
|
4003
|
-
}
|
|
4004
|
-
var sl = (e) => {
|
|
4005
|
-
let { present: t, children: n } = e, i = cl(t), a = typeof n == "function" ? n({ present: i.isPresent }) : r.Children.only(n), o = Q(i.ref, ul(a));
|
|
4006
|
-
return typeof n == "function" || i.isPresent ? r.cloneElement(a, { ref: o }) : null;
|
|
4007
|
-
};
|
|
4008
|
-
sl.displayName = "Presence";
|
|
4009
|
-
function cl(e) {
|
|
4010
|
-
let [t, n] = r.useState(), i = r.useRef({}), a = r.useRef(e), o = r.useRef("none"), [s, c] = ol(e ? "mounted" : "unmounted", {
|
|
4011
|
-
mounted: {
|
|
4012
|
-
UNMOUNT: "unmounted",
|
|
4013
|
-
ANIMATION_OUT: "unmountSuspended"
|
|
4014
|
-
},
|
|
4015
|
-
unmountSuspended: {
|
|
4016
|
-
MOUNT: "mounted",
|
|
4017
|
-
ANIMATION_END: "unmounted"
|
|
4018
|
-
},
|
|
4019
|
-
unmounted: { MOUNT: "mounted" }
|
|
4020
|
-
});
|
|
4021
|
-
return r.useEffect(() => {
|
|
4022
|
-
let e = ll(i.current);
|
|
4023
|
-
o.current = s === "mounted" ? e : "none";
|
|
4024
|
-
}, [s]), fc(() => {
|
|
4025
|
-
let t = i.current, n = a.current;
|
|
4026
|
-
if (n !== e) {
|
|
4027
|
-
let r = o.current, i = ll(t);
|
|
4028
|
-
e ? c("MOUNT") : i === "none" || t?.display === "none" ? c("UNMOUNT") : c(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), a.current = e;
|
|
4029
|
-
}
|
|
4030
|
-
}, [e, c]), fc(() => {
|
|
4031
|
-
if (t) {
|
|
4032
|
-
let e, n = t.ownerDocument.defaultView ?? window, r = (r) => {
|
|
4033
|
-
let o = ll(i.current).includes(r.animationName);
|
|
4034
|
-
if (r.target === t && o && (c("ANIMATION_END"), !a.current)) {
|
|
4035
|
-
let r = t.style.animationFillMode;
|
|
4036
|
-
t.style.animationFillMode = "forwards", e = n.setTimeout(() => {
|
|
4037
|
-
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = r);
|
|
4038
|
-
});
|
|
4039
|
-
}
|
|
4040
|
-
}, s = (e) => {
|
|
4041
|
-
e.target === t && (o.current = ll(i.current));
|
|
4042
|
-
};
|
|
4043
|
-
return t.addEventListener("animationstart", s), t.addEventListener("animationcancel", r), t.addEventListener("animationend", r), () => {
|
|
4044
|
-
n.clearTimeout(e), t.removeEventListener("animationstart", s), t.removeEventListener("animationcancel", r), t.removeEventListener("animationend", r);
|
|
4045
|
-
};
|
|
4046
|
-
}
|
|
4047
|
-
c("ANIMATION_END");
|
|
4048
|
-
}, [t, c]), {
|
|
4049
|
-
isPresent: ["mounted", "unmountSuspended"].includes(s),
|
|
4050
|
-
ref: r.useCallback((e) => {
|
|
4051
|
-
e && (i.current = getComputedStyle(e)), n(e);
|
|
4052
|
-
}, [])
|
|
4053
|
-
};
|
|
4054
|
-
}
|
|
4055
|
-
function ll(e) {
|
|
4056
|
-
return e?.animationName || "none";
|
|
4057
|
-
}
|
|
4058
|
-
function ul(e) {
|
|
4059
|
-
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
4060
|
-
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
4061
|
-
}
|
|
4062
|
-
//#endregion
|
|
4063
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
4064
|
-
var dl = 0;
|
|
4065
|
-
function fl() {
|
|
4066
|
-
r.useEffect(() => {
|
|
4067
|
-
let e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
4068
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? pl()), document.body.insertAdjacentElement("beforeend", e[1] ?? pl()), dl++, () => {
|
|
4069
|
-
dl === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((e) => e.remove()), dl--;
|
|
4070
|
-
};
|
|
4071
|
-
}, []);
|
|
4072
|
-
}
|
|
4073
|
-
function pl() {
|
|
4074
|
-
let e = document.createElement("span");
|
|
4075
|
-
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
4076
|
-
}
|
|
4077
|
-
//#endregion
|
|
4078
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-arrow@1.1.1_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-arrow/dist/index.mjs
|
|
4079
|
-
var ml = "Arrow", hl = r.forwardRef((e, t) => {
|
|
4080
|
-
let { children: n, width: r = 10, height: i = 5, ...a } = e;
|
|
4081
|
-
return /* @__PURE__ */ d($.svg, {
|
|
4082
|
-
...a,
|
|
4083
|
-
ref: t,
|
|
4084
|
-
width: r,
|
|
4085
|
-
height: i,
|
|
4086
|
-
viewBox: "0 0 30 10",
|
|
4087
|
-
preserveAspectRatio: "none",
|
|
4088
|
-
children: e.asChild ? n : /* @__PURE__ */ d("polygon", { points: "0,0 30,0 15,10" })
|
|
4089
|
-
});
|
|
4090
|
-
});
|
|
4091
|
-
hl.displayName = ml;
|
|
4092
|
-
var gl = hl;
|
|
4093
|
-
//#endregion
|
|
4094
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-size@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
4095
|
-
function _l(e) {
|
|
4096
|
-
let [t, n] = r.useState(void 0);
|
|
4097
|
-
return fc(() => {
|
|
4098
|
-
if (e) {
|
|
4099
|
-
n({
|
|
4100
|
-
width: e.offsetWidth,
|
|
4101
|
-
height: e.offsetHeight
|
|
4102
|
-
});
|
|
4103
|
-
let t = new ResizeObserver((t) => {
|
|
4104
|
-
if (!Array.isArray(t) || !t.length) return;
|
|
4105
|
-
let r = t[0], i, a;
|
|
4106
|
-
if ("borderBoxSize" in r) {
|
|
4107
|
-
let e = r.borderBoxSize, t = Array.isArray(e) ? e[0] : e;
|
|
4108
|
-
i = t.inlineSize, a = t.blockSize;
|
|
4109
|
-
} else i = e.offsetWidth, a = e.offsetHeight;
|
|
4110
|
-
n({
|
|
4111
|
-
width: i,
|
|
4112
|
-
height: a
|
|
4113
|
-
});
|
|
4114
|
-
});
|
|
4115
|
-
return t.observe(e, { box: "border-box" }), () => t.unobserve(e);
|
|
4116
|
-
}
|
|
4117
|
-
n(void 0);
|
|
4118
|
-
}, [e]), t;
|
|
4119
|
-
}
|
|
4120
|
-
//#endregion
|
|
4121
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-popper@1.2.1_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
4122
|
-
var vl = "Popper", [yl, bl] = uc(vl), [xl, Sl] = yl(vl), Cl = (e) => {
|
|
4123
|
-
let { __scopePopper: t, children: n } = e, [i, a] = r.useState(null);
|
|
4124
|
-
return /* @__PURE__ */ d(xl, {
|
|
4125
|
-
scope: t,
|
|
4126
|
-
anchor: i,
|
|
4127
|
-
onAnchorChange: a,
|
|
4128
|
-
children: n
|
|
4129
|
-
});
|
|
4130
|
-
};
|
|
4131
|
-
Cl.displayName = vl;
|
|
4132
|
-
var wl = "PopperAnchor", Tl = r.forwardRef((e, t) => {
|
|
4133
|
-
let { __scopePopper: n, virtualRef: i, ...a } = e, o = Sl(wl, n), s = r.useRef(null), c = Q(t, s);
|
|
4134
|
-
return r.useEffect(() => {
|
|
4135
|
-
o.onAnchorChange(i?.current || s.current);
|
|
4136
|
-
}), i ? null : /* @__PURE__ */ d($.div, {
|
|
4137
|
-
...a,
|
|
4138
|
-
ref: c
|
|
4139
|
-
});
|
|
4140
|
-
});
|
|
4141
|
-
Tl.displayName = wl;
|
|
4142
|
-
var El = "PopperContent", [Dl, Ol] = yl(El), kl = r.forwardRef((e, t) => {
|
|
4143
|
-
let { __scopePopper: n, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: f = 0, sticky: p = "partial", hideWhenDetached: m = !1, updatePositionStrategy: h = "optimized", onPlaced: g, ..._ } = e, v = Sl(El, n), [y, b] = r.useState(null), x = Q(t, (e) => b(e)), [S, C] = r.useState(null), w = _l(S), T = w?.width ?? 0, E = w?.height ?? 0, D = i + (o === "center" ? "" : "-" + o), O = typeof f == "number" ? f : {
|
|
4144
|
-
top: 0,
|
|
4145
|
-
right: 0,
|
|
4146
|
-
bottom: 0,
|
|
4147
|
-
left: 0,
|
|
4148
|
-
...f
|
|
4149
|
-
}, k = Array.isArray(u) ? u : [u], A = k.length > 0, j = {
|
|
4150
|
-
padding: O,
|
|
4151
|
-
boundary: k.filter(Nl),
|
|
4152
|
-
altBoundary: A
|
|
4153
|
-
}, { refs: M, floatingStyles: N, placement: P, isPositioned: F, middlewareData: I } = In({
|
|
4154
|
-
strategy: "fixed",
|
|
4155
|
-
placement: D,
|
|
4156
|
-
whileElementsMounted: (...e) => Sn(...e, { animationFrame: h === "always" }),
|
|
4157
|
-
elements: { reference: v.anchor },
|
|
4158
|
-
middleware: [
|
|
4159
|
-
Rn({
|
|
4160
|
-
mainAxis: a + E,
|
|
4161
|
-
alignmentAxis: s
|
|
4162
|
-
}),
|
|
4163
|
-
l && zn({
|
|
4164
|
-
mainAxis: !0,
|
|
4165
|
-
crossAxis: !1,
|
|
4166
|
-
limiter: p === "partial" ? Bn() : void 0,
|
|
4167
|
-
...j
|
|
4168
|
-
}),
|
|
4169
|
-
l && Vn({ ...j }),
|
|
4170
|
-
Hn({
|
|
4171
|
-
...j,
|
|
4172
|
-
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
4173
|
-
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
4174
|
-
o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
|
|
4175
|
-
}
|
|
4176
|
-
}),
|
|
4177
|
-
S && Wn({
|
|
4178
|
-
element: S,
|
|
4179
|
-
padding: c
|
|
4180
|
-
}),
|
|
4181
|
-
Pl({
|
|
4182
|
-
arrowWidth: T,
|
|
4183
|
-
arrowHeight: E
|
|
4184
|
-
}),
|
|
4185
|
-
m && Un({
|
|
4186
|
-
strategy: "referenceHidden",
|
|
4187
|
-
...j
|
|
4188
|
-
})
|
|
4189
|
-
]
|
|
4190
|
-
}), [ee, L] = Fl(P), te = Z(g);
|
|
4191
|
-
fc(() => {
|
|
4192
|
-
F && te?.();
|
|
4193
|
-
}, [F, te]);
|
|
4194
|
-
let ne = I.arrow?.x, re = I.arrow?.y, ie = I.arrow?.centerOffset !== 0, [ae, oe] = r.useState();
|
|
4195
|
-
return fc(() => {
|
|
4196
|
-
y && oe(window.getComputedStyle(y).zIndex);
|
|
4197
|
-
}, [y]), /* @__PURE__ */ d("div", {
|
|
4198
|
-
ref: M.setFloating,
|
|
4199
|
-
"data-radix-popper-content-wrapper": "",
|
|
4200
|
-
style: {
|
|
4201
|
-
...N,
|
|
4202
|
-
transform: F ? N.transform : "translate(0, -200%)",
|
|
4203
|
-
minWidth: "max-content",
|
|
4204
|
-
zIndex: ae,
|
|
4205
|
-
"--radix-popper-transform-origin": [I.transformOrigin?.x, I.transformOrigin?.y].join(" "),
|
|
4206
|
-
...I.hide?.referenceHidden && {
|
|
4207
|
-
visibility: "hidden",
|
|
4208
|
-
pointerEvents: "none"
|
|
4209
|
-
}
|
|
4210
|
-
},
|
|
4211
|
-
dir: e.dir,
|
|
4212
|
-
children: /* @__PURE__ */ d(Dl, {
|
|
4213
|
-
scope: n,
|
|
4214
|
-
placedSide: ee,
|
|
4215
|
-
onArrowChange: C,
|
|
4216
|
-
arrowX: ne,
|
|
4217
|
-
arrowY: re,
|
|
4218
|
-
shouldHideArrow: ie,
|
|
4219
|
-
children: /* @__PURE__ */ d($.div, {
|
|
4220
|
-
"data-side": ee,
|
|
4221
|
-
"data-align": L,
|
|
4222
|
-
..._,
|
|
4223
|
-
ref: x,
|
|
4224
|
-
style: {
|
|
4225
|
-
..._.style,
|
|
4226
|
-
animation: F ? void 0 : "none"
|
|
4227
|
-
}
|
|
4228
|
-
})
|
|
4229
|
-
})
|
|
4230
|
-
});
|
|
4231
|
-
});
|
|
4232
|
-
kl.displayName = El;
|
|
4233
|
-
var Al = "PopperArrow", jl = {
|
|
4234
|
-
top: "bottom",
|
|
4235
|
-
right: "left",
|
|
4236
|
-
bottom: "top",
|
|
4237
|
-
left: "right"
|
|
4238
|
-
}, Ml = r.forwardRef(function(e, t) {
|
|
4239
|
-
let { __scopePopper: n, ...r } = e, i = Ol(Al, n), a = jl[i.placedSide];
|
|
4240
|
-
return /* @__PURE__ */ d("span", {
|
|
4241
|
-
ref: i.onArrowChange,
|
|
4242
|
-
style: {
|
|
4243
|
-
position: "absolute",
|
|
4244
|
-
left: i.arrowX,
|
|
4245
|
-
top: i.arrowY,
|
|
4246
|
-
[a]: 0,
|
|
4247
|
-
transformOrigin: {
|
|
4248
|
-
top: "",
|
|
4249
|
-
right: "0 0",
|
|
4250
|
-
bottom: "center 0",
|
|
4251
|
-
left: "100% 0"
|
|
4252
|
-
}[i.placedSide],
|
|
4253
|
-
transform: {
|
|
4254
|
-
top: "translateY(100%)",
|
|
4255
|
-
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
4256
|
-
bottom: "rotate(180deg)",
|
|
4257
|
-
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
4258
|
-
}[i.placedSide],
|
|
4259
|
-
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
4260
|
-
},
|
|
4261
|
-
children: /* @__PURE__ */ d(gl, {
|
|
4262
|
-
...r,
|
|
4263
|
-
ref: t,
|
|
4264
|
-
style: {
|
|
4265
|
-
...r.style,
|
|
4266
|
-
display: "block"
|
|
4267
|
-
}
|
|
4268
|
-
})
|
|
4269
|
-
});
|
|
4270
|
-
});
|
|
4271
|
-
Ml.displayName = Al;
|
|
4272
|
-
function Nl(e) {
|
|
4273
|
-
return e !== null;
|
|
4274
|
-
}
|
|
4275
|
-
var Pl = (e) => ({
|
|
4276
|
-
name: "transformOrigin",
|
|
4277
|
-
options: e,
|
|
4278
|
-
fn(t) {
|
|
4279
|
-
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = Fl(n), u = {
|
|
4280
|
-
start: "0%",
|
|
4281
|
-
center: "50%",
|
|
4282
|
-
end: "100%"
|
|
4283
|
-
}[l], d = (i.arrow?.x ?? 0) + o / 2, f = (i.arrow?.y ?? 0) + s / 2, p = "", m = "";
|
|
4284
|
-
return c === "bottom" ? (p = a ? u : `${d}px`, m = `${-s}px`) : c === "top" ? (p = a ? u : `${d}px`, m = `${r.floating.height + s}px`) : c === "right" ? (p = `${-s}px`, m = a ? u : `${f}px`) : c === "left" && (p = `${r.floating.width + s}px`, m = a ? u : `${f}px`), { data: {
|
|
4285
|
-
x: p,
|
|
4286
|
-
y: m
|
|
4287
|
-
} };
|
|
4288
|
-
}
|
|
4289
|
-
});
|
|
4290
|
-
function Fl(e) {
|
|
4291
|
-
let [t, n = "center"] = e.split("-");
|
|
4292
|
-
return [t, n];
|
|
4293
|
-
}
|
|
4294
|
-
var Il = Cl, Ll = Tl, Rl = kl, zl = Ml, Bl = "Popover", [Vl, Hl] = uc(Bl, [bl]), Ul = bl(), [Wl, Gl] = Vl(Bl), Kl = (e) => {
|
|
4295
|
-
let { __scopePopover: t, children: n, open: i, defaultOpen: a, onOpenChange: o, modal: s = !1 } = e, c = Ul(t), l = r.useRef(null), [u, f] = r.useState(!1), [p = !1, m] = Ec({
|
|
3512
|
+
ac.displayName = Ms.displayName;
|
|
3513
|
+
var oc = "Popover", [sc, cc] = y(oc, [Xn]), lc = Xn(), [uc, dc] = sc(oc), fc = (e) => {
|
|
3514
|
+
let { __scopePopover: t, children: n, open: i, defaultOpen: a, onOpenChange: o, modal: s = !1 } = e, c = lc(t), l = r.useRef(null), [d, f] = r.useState(!1), [p, m] = C({
|
|
4296
3515
|
prop: i,
|
|
4297
|
-
defaultProp: a,
|
|
4298
|
-
onChange: o
|
|
3516
|
+
defaultProp: a ?? !1,
|
|
3517
|
+
onChange: o,
|
|
3518
|
+
caller: oc
|
|
4299
3519
|
});
|
|
4300
|
-
return /* @__PURE__ */
|
|
3520
|
+
return /* @__PURE__ */ u(fr, {
|
|
4301
3521
|
...c,
|
|
4302
|
-
children: /* @__PURE__ */
|
|
3522
|
+
children: /* @__PURE__ */ u(uc, {
|
|
4303
3523
|
scope: t,
|
|
4304
|
-
contentId:
|
|
3524
|
+
contentId: Le(),
|
|
4305
3525
|
triggerRef: l,
|
|
4306
3526
|
open: p,
|
|
4307
3527
|
onOpenChange: m,
|
|
4308
3528
|
onOpenToggle: r.useCallback(() => m((e) => !e), [m]),
|
|
4309
|
-
hasCustomAnchor:
|
|
3529
|
+
hasCustomAnchor: d,
|
|
4310
3530
|
onCustomAnchorAdd: r.useCallback(() => f(!0), []),
|
|
4311
3531
|
onCustomAnchorRemove: r.useCallback(() => f(!1), []),
|
|
4312
3532
|
modal: s,
|
|
@@ -4314,42 +3534,42 @@ var Il = Cl, Ll = Tl, Rl = kl, zl = Ml, Bl = "Popover", [Vl, Hl] = uc(Bl, [bl]),
|
|
|
4314
3534
|
})
|
|
4315
3535
|
});
|
|
4316
3536
|
};
|
|
4317
|
-
|
|
4318
|
-
var
|
|
4319
|
-
let { __scopePopover: n, ...i } = e, a =
|
|
4320
|
-
return r.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */
|
|
3537
|
+
fc.displayName = oc;
|
|
3538
|
+
var pc = "PopoverAnchor", mc = r.forwardRef((e, t) => {
|
|
3539
|
+
let { __scopePopover: n, ...i } = e, a = dc(pc, n), o = lc(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = a;
|
|
3540
|
+
return r.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ u(pr, {
|
|
4321
3541
|
...o,
|
|
4322
3542
|
...i,
|
|
4323
3543
|
ref: t
|
|
4324
3544
|
});
|
|
4325
3545
|
});
|
|
4326
|
-
|
|
4327
|
-
var
|
|
4328
|
-
let { __scopePopover: n, ...r } = e, i =
|
|
3546
|
+
mc.displayName = pc;
|
|
3547
|
+
var hc = "PopoverTrigger", gc = r.forwardRef((e, t) => {
|
|
3548
|
+
let { __scopePopover: n, ...r } = e, i = dc(hc, n), a = lc(n), o = g(t, i.triggerRef), s = /* @__PURE__ */ u(N.button, {
|
|
4329
3549
|
type: "button",
|
|
4330
3550
|
"aria-haspopup": "dialog",
|
|
4331
3551
|
"aria-expanded": i.open,
|
|
4332
3552
|
"aria-controls": i.contentId,
|
|
4333
|
-
"data-state":
|
|
3553
|
+
"data-state": jc(i.open),
|
|
4334
3554
|
...r,
|
|
4335
3555
|
ref: o,
|
|
4336
|
-
onClick:
|
|
3556
|
+
onClick: _(e.onClick, i.onOpenToggle)
|
|
4337
3557
|
});
|
|
4338
|
-
return i.hasCustomAnchor ? s : /* @__PURE__ */
|
|
3558
|
+
return i.hasCustomAnchor ? s : /* @__PURE__ */ u(pr, {
|
|
4339
3559
|
asChild: !0,
|
|
4340
3560
|
...a,
|
|
4341
3561
|
children: s
|
|
4342
3562
|
});
|
|
4343
3563
|
});
|
|
4344
|
-
|
|
4345
|
-
var
|
|
4346
|
-
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a =
|
|
4347
|
-
return /* @__PURE__ */
|
|
3564
|
+
gc.displayName = hc;
|
|
3565
|
+
var _c = "PopoverPortal", [vc, yc] = sc(_c, { forceMount: void 0 }), bc = (e) => {
|
|
3566
|
+
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = dc(_c, t);
|
|
3567
|
+
return /* @__PURE__ */ u(vc, {
|
|
4348
3568
|
scope: t,
|
|
4349
3569
|
forceMount: n,
|
|
4350
|
-
children: /* @__PURE__ */
|
|
3570
|
+
children: /* @__PURE__ */ u(Y, {
|
|
4351
3571
|
present: n || a.open,
|
|
4352
|
-
children: /* @__PURE__ */
|
|
3572
|
+
children: /* @__PURE__ */ u(_r, {
|
|
4353
3573
|
asChild: !0,
|
|
4354
3574
|
container: i,
|
|
4355
3575
|
children: r
|
|
@@ -4357,47 +3577,47 @@ var Zl = "PopoverPortal", [Ql, $l] = Vl(Zl, { forceMount: void 0 }), eu = (e) =>
|
|
|
4357
3577
|
})
|
|
4358
3578
|
});
|
|
4359
3579
|
};
|
|
4360
|
-
|
|
4361
|
-
var
|
|
4362
|
-
let n =
|
|
4363
|
-
return /* @__PURE__ */
|
|
3580
|
+
bc.displayName = _c;
|
|
3581
|
+
var xc = "PopoverContent", Sc = r.forwardRef((e, t) => {
|
|
3582
|
+
let n = yc(xc, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = dc(xc, e.__scopePopover);
|
|
3583
|
+
return /* @__PURE__ */ u(Y, {
|
|
4364
3584
|
present: r || a.open,
|
|
4365
|
-
children: a.modal ? /* @__PURE__ */
|
|
3585
|
+
children: a.modal ? /* @__PURE__ */ u(wc, {
|
|
4366
3586
|
...i,
|
|
4367
3587
|
ref: t
|
|
4368
|
-
}) : /* @__PURE__ */
|
|
3588
|
+
}) : /* @__PURE__ */ u(Tc, {
|
|
4369
3589
|
...i,
|
|
4370
3590
|
ref: t
|
|
4371
3591
|
})
|
|
4372
3592
|
});
|
|
4373
3593
|
});
|
|
4374
|
-
|
|
4375
|
-
var
|
|
4376
|
-
let n =
|
|
3594
|
+
Sc.displayName = xc;
|
|
3595
|
+
var Cc = /* @__PURE__ */ E("PopoverContent.RemoveScroll"), wc = r.forwardRef((e, t) => {
|
|
3596
|
+
let n = dc(xc, e.__scopePopover), i = r.useRef(null), a = g(t, i), o = r.useRef(!1);
|
|
4377
3597
|
return r.useEffect(() => {
|
|
4378
3598
|
let e = i.current;
|
|
4379
|
-
if (e) return
|
|
4380
|
-
}, []), /* @__PURE__ */
|
|
4381
|
-
as:
|
|
3599
|
+
if (e) return Zr(e);
|
|
3600
|
+
}, []), /* @__PURE__ */ u(ia, {
|
|
3601
|
+
as: Cc,
|
|
4382
3602
|
allowPinchZoom: !0,
|
|
4383
|
-
children: /* @__PURE__ */
|
|
3603
|
+
children: /* @__PURE__ */ u(Ec, {
|
|
4384
3604
|
...e,
|
|
4385
3605
|
ref: a,
|
|
4386
3606
|
trapFocus: n.open,
|
|
4387
3607
|
disableOutsidePointerEvents: !0,
|
|
4388
|
-
onCloseAutoFocus:
|
|
3608
|
+
onCloseAutoFocus: _(e.onCloseAutoFocus, (e) => {
|
|
4389
3609
|
e.preventDefault(), o.current || n.triggerRef.current?.focus();
|
|
4390
3610
|
}),
|
|
4391
|
-
onPointerDownOutside:
|
|
3611
|
+
onPointerDownOutside: _(e.onPointerDownOutside, (e) => {
|
|
4392
3612
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
4393
3613
|
o.current = r;
|
|
4394
3614
|
}, { checkForDefaultPrevented: !1 }),
|
|
4395
|
-
onFocusOutside:
|
|
3615
|
+
onFocusOutside: _(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
4396
3616
|
})
|
|
4397
3617
|
});
|
|
4398
|
-
}),
|
|
4399
|
-
let n =
|
|
4400
|
-
return /* @__PURE__ */
|
|
3618
|
+
}), Tc = r.forwardRef((e, t) => {
|
|
3619
|
+
let n = dc(xc, e.__scopePopover), i = r.useRef(!1), a = r.useRef(!1);
|
|
3620
|
+
return /* @__PURE__ */ u(Ec, {
|
|
4401
3621
|
...e,
|
|
4402
3622
|
ref: t,
|
|
4403
3623
|
trapFocus: !1,
|
|
@@ -4411,24 +3631,24 @@ var ru = r.forwardRef((e, t) => {
|
|
|
4411
3631
|
n.triggerRef.current?.contains(r) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && a.current && t.preventDefault();
|
|
4412
3632
|
}
|
|
4413
3633
|
});
|
|
4414
|
-
}),
|
|
4415
|
-
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: l, onInteractOutside:
|
|
4416
|
-
return
|
|
3634
|
+
}), Ec = r.forwardRef((e, t) => {
|
|
3635
|
+
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: l, onInteractOutside: d, ...f } = e, p = dc(xc, n), m = lc(n);
|
|
3636
|
+
return ve(), /* @__PURE__ */ u(we, {
|
|
4417
3637
|
asChild: !0,
|
|
4418
3638
|
loop: !0,
|
|
4419
3639
|
trapped: r,
|
|
4420
3640
|
onMountAutoFocus: i,
|
|
4421
3641
|
onUnmountAutoFocus: a,
|
|
4422
|
-
children: /* @__PURE__ */
|
|
3642
|
+
children: /* @__PURE__ */ u(ue, {
|
|
4423
3643
|
asChild: !0,
|
|
4424
3644
|
disableOutsidePointerEvents: o,
|
|
4425
|
-
onInteractOutside:
|
|
3645
|
+
onInteractOutside: d,
|
|
4426
3646
|
onEscapeKeyDown: s,
|
|
4427
3647
|
onPointerDownOutside: c,
|
|
4428
3648
|
onFocusOutside: l,
|
|
4429
3649
|
onDismiss: () => p.onOpenChange(!1),
|
|
4430
|
-
children: /* @__PURE__ */
|
|
4431
|
-
"data-state":
|
|
3650
|
+
children: /* @__PURE__ */ u(mr, {
|
|
3651
|
+
"data-state": jc(p.open),
|
|
4432
3652
|
role: "dialog",
|
|
4433
3653
|
id: p.contentId,
|
|
4434
3654
|
...m,
|
|
@@ -4445,33 +3665,33 @@ var ru = r.forwardRef((e, t) => {
|
|
|
4445
3665
|
})
|
|
4446
3666
|
})
|
|
4447
3667
|
});
|
|
4448
|
-
}),
|
|
4449
|
-
let { __scopePopover: n, ...r } = e, i =
|
|
4450
|
-
return /* @__PURE__ */
|
|
3668
|
+
}), Dc = "PopoverClose", Oc = r.forwardRef((e, t) => {
|
|
3669
|
+
let { __scopePopover: n, ...r } = e, i = dc(Dc, n);
|
|
3670
|
+
return /* @__PURE__ */ u(N.button, {
|
|
4451
3671
|
type: "button",
|
|
4452
3672
|
...r,
|
|
4453
3673
|
ref: t,
|
|
4454
|
-
onClick:
|
|
3674
|
+
onClick: _(e.onClick, () => i.onOpenChange(!1))
|
|
4455
3675
|
});
|
|
4456
3676
|
});
|
|
4457
|
-
|
|
4458
|
-
var
|
|
4459
|
-
let { __scopePopover: n, ...r } = e, i =
|
|
4460
|
-
return /* @__PURE__ */
|
|
3677
|
+
Oc.displayName = Dc;
|
|
3678
|
+
var kc = "PopoverArrow", Ac = r.forwardRef((e, t) => {
|
|
3679
|
+
let { __scopePopover: n, ...r } = e, i = lc(n);
|
|
3680
|
+
return /* @__PURE__ */ u(hr, {
|
|
4461
3681
|
...i,
|
|
4462
3682
|
...r,
|
|
4463
3683
|
ref: t
|
|
4464
3684
|
});
|
|
4465
3685
|
});
|
|
4466
|
-
|
|
4467
|
-
function
|
|
3686
|
+
Ac.displayName = kc;
|
|
3687
|
+
function jc(e) {
|
|
4468
3688
|
return e ? "open" : "closed";
|
|
4469
3689
|
}
|
|
4470
|
-
var
|
|
3690
|
+
var Mc = fc, Nc = mc, Pc = gc, Fc = bc, Ic = Sc, Lc = Ac, Rc = Mc, zc = Pc, Bc = Nc, Vc = Lc, Hc = r.forwardRef(({ className: n, align: r = "center", sideOffset: i = 4, container: a, ...o }, s) => {
|
|
4471
3691
|
let c = t();
|
|
4472
|
-
return /* @__PURE__ */
|
|
3692
|
+
return /* @__PURE__ */ u(Fc, {
|
|
4473
3693
|
container: a ?? c,
|
|
4474
|
-
children: /* @__PURE__ */
|
|
3694
|
+
children: /* @__PURE__ */ u(Ic, {
|
|
4475
3695
|
asChild: o.asChild,
|
|
4476
3696
|
ref: s,
|
|
4477
3697
|
align: r,
|
|
@@ -4481,6 +3701,6 @@ var du = Kl, fu = Jl, pu = Xl, mu = eu, hu = nu, gu = lu, _u = du, vu = pu, yu =
|
|
|
4481
3701
|
})
|
|
4482
3702
|
});
|
|
4483
3703
|
});
|
|
4484
|
-
|
|
3704
|
+
Hc.displayName = Ic.displayName;
|
|
4485
3705
|
//#endregion
|
|
4486
|
-
export {
|
|
3706
|
+
export { g as $, Y as A, ve as B, nc as C, Bs as D, Hs as E, fr as F, N as G, F as H, Xn as I, C as J, D as K, qn as L, pr as M, hr as N, ia as O, mr as P, _ as Q, Le as R, Xs as S, $s as T, ne as U, ue as V, ee as W, v as X, x as Y, y as Z, Ys as _, zc as a, Js as b, Fc as c, Ws as d, Qs as f, qs as g, ic as h, Hc as i, _r as j, Zr as k, Mc as l, ec as m, Bc as n, Nc as o, Ks as p, E as q, Vc as r, Ic as s, Rc as t, Pc as u, rc as v, Gs as w, Zs as x, ac as y, we as z };
|