@marimo-team/islands 0.24.1-dev42 → 0.24.1-dev43
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/{ConnectedDataExplorerComponent-4UvlnITc.js → ConnectedDataExplorerComponent-CxLgYj_n.js} +1038 -1038
- package/dist/{any-language-editor-ClDhQoll.js → any-language-editor-BrPYtXHK.js} +1 -1
- package/dist/{chat-ui-BzZL5_XE.js → chat-ui-Mjq3lBLn.js} +1335 -1335
- package/dist/{common-DiHZo6cj.js → common-IoLWZR0C.js} +20955 -20975
- package/dist/{input-CIaA2N0m.js → dropdown-menu-DEu759Oe.js} +930 -927
- package/dist/{error-banner-BbxpEiD5.js → error-banner-BT4uIIQ2.js} +190 -192
- package/dist/{glide-data-editor-CgO5z9xu.js → glide-data-editor-C2RTkAgQ.js} +51 -51
- package/dist/{html-to-image-DPAZGZSi.js → html-to-image-hKcfSWj_.js} +5795 -5590
- package/dist/main.js +8696 -8703
- package/dist/{mermaid-BBTUHwCi.js → mermaid-OsTxhZOI.js} +12 -12
- package/dist/{process-output-oZcxC_tq.js → process-output-BkHK-KDc.js} +6 -6
- package/dist/{reveal-component-UCcAUoNH.js → reveal-component-DUBiSLUI.js} +11 -11
- package/dist/{strings-CoQ5sA4r.js → select-Bakm9EUs.js} +50 -53
- package/dist/{spec-6c0_fLYz.js → spec-DqUrBQpS.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{useDateFormatter-6ImHK1ln.js → useDateFormatter-DjRKOAkR.js} +1 -1
- package/dist/{vega-component-DlnGFDeY.js → vega-component-A2xO4BUa.js} +17 -17
- package/package.json +1 -1
- package/src/components/datasources/datasources.tsx +16 -17
- package/src/components/editor/actions/useNotebookActions.tsx +50 -0
- package/src/components/editor/chrome/panels/components.tsx +1 -1
- package/src/components/editor/connections/__tests__/add-connection-button.test.tsx +129 -0
- package/src/components/editor/connections/add-connection-button.tsx +132 -0
- package/src/components/editor/connections/components.tsx +11 -0
- package/src/components/editor/connections/quick-add-data-sources.tsx +11 -11
- package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +109 -1
- package/src/components/storage/storage-inspector.tsx +15 -17
- package/src/core/codemirror/language/panel/sql.test.tsx +69 -0
- package/src/core/codemirror/language/panel/sql.tsx +81 -4
|
@@ -4,23 +4,23 @@ import { t as s } from "./react-DMWcHin-.js";
|
|
|
4
4
|
import { t as c } from "./compiler-runtime-CAH9RLw2.js";
|
|
5
5
|
import { a as l, i as u, n as d, r as f, t as p, u as m } from "./dist-DTSuOdDc.js";
|
|
6
6
|
import { t as h } from "./check-DIJJHY-E.js";
|
|
7
|
-
import { E as g, F as _, I as v, L as y, P as b, R as x, T as S, _ as C,
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { Ac as
|
|
12
|
-
import { t as
|
|
13
|
-
import { A as
|
|
14
|
-
import { t as
|
|
15
|
-
var
|
|
7
|
+
import { E as g, F as _, I as v, L as y, P as b, R as x, T as S, _ as C, f as w, g as T, h as E, k as D, m as O, p as k, v as A, w as j, y as M } from "./select-Bakm9EUs.js";
|
|
8
|
+
import { t as N } from "./clsx-CoeGtWvn.js";
|
|
9
|
+
import { t as P } from "./react-dom-C94wmq5w.js";
|
|
10
|
+
import { t as F } from "./jsx-runtime-CpoKNRgu.js";
|
|
11
|
+
import { Ac as I, Bc as L, Dc as ee, Ec as te, Fc as ne, Hc as re, Jc as ie, Kc as ae, Lc as oe, Nc as se, Pc as ce, Vc as le, Wc as R, jc as ue, kc as de, qc as fe, wc as pe, zc as me } from "./schemas-DeBAkn_c.js";
|
|
12
|
+
import { t as he } from "./debounce-C3jyATpc.js";
|
|
13
|
+
import { A as ge } from "./useTheme-CLjV5H1i.js";
|
|
14
|
+
import { t as _e } from "./once-BtE-wKRL.js";
|
|
15
|
+
var ve = m("chevron-right", [["path", {
|
|
16
16
|
d: "m9 18 6-6-6-6",
|
|
17
17
|
key: "mthhwq"
|
|
18
|
-
}]]),
|
|
18
|
+
}]]), ye = m("circle", [["circle", {
|
|
19
19
|
cx: "12",
|
|
20
20
|
cy: "12",
|
|
21
21
|
r: "10",
|
|
22
22
|
key: "1mglay"
|
|
23
|
-
}]]),
|
|
23
|
+
}]]), be = m("search", [["path", {
|
|
24
24
|
d: "m21 21-4.34-4.34",
|
|
25
25
|
key: "14j7rj"
|
|
26
26
|
}], ["circle", {
|
|
@@ -28,42 +28,42 @@ var ye = m("chevron-right", [["path", {
|
|
|
28
28
|
cy: "11",
|
|
29
29
|
r: "8",
|
|
30
30
|
key: "4ej97u"
|
|
31
|
-
}]]),
|
|
31
|
+
}]]), z = /* @__PURE__ */ e(s(), 1), B = F(), xe = "rovingFocusGroup.onEntryFocus", Se = {
|
|
32
32
|
bubbles: !1,
|
|
33
33
|
cancelable: !0
|
|
34
|
-
},
|
|
34
|
+
}, Ce = "RovingFocusGroup", [we, Te, Ee] = _(Ce), [De, Oe] = ae(Ce, [Ee]), [ke, Ae] = De(Ce), je = z.forwardRef((e, t) => /* @__PURE__ */ (0, B.jsx)(we.Provider, {
|
|
35
35
|
scope: e.__scopeRovingFocusGroup,
|
|
36
|
-
children: /* @__PURE__ */ (0,
|
|
36
|
+
children: /* @__PURE__ */ (0, B.jsx)(we.Slot, {
|
|
37
37
|
scope: e.__scopeRovingFocusGroup,
|
|
38
|
-
children: /* @__PURE__ */ (0,
|
|
38
|
+
children: /* @__PURE__ */ (0, B.jsx)(Me, {
|
|
39
39
|
...e,
|
|
40
40
|
ref: t
|
|
41
41
|
})
|
|
42
42
|
})
|
|
43
43
|
}));
|
|
44
|
-
|
|
45
|
-
var
|
|
46
|
-
let { __scopeRovingFocusGroup: n, orientation: r, loop: i = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: d = !1, ...f } = e, p =
|
|
44
|
+
je.displayName = Ce;
|
|
45
|
+
var Me = z.forwardRef((e, t) => {
|
|
46
|
+
let { __scopeRovingFocusGroup: n, orientation: r, loop: i = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: d = !1, ...f } = e, p = z.useRef(null), m = a(t, p), h = b(o), [g, _] = re({
|
|
47
47
|
prop: s,
|
|
48
48
|
defaultProp: c ?? null,
|
|
49
49
|
onChange: l,
|
|
50
|
-
caller:
|
|
51
|
-
}), [v, y] =
|
|
52
|
-
return
|
|
50
|
+
caller: Ce
|
|
51
|
+
}), [v, y] = z.useState(!1), x = me(u), S = Te(n), C = z.useRef(!1), [w, T] = z.useState(0);
|
|
52
|
+
return z.useEffect(() => {
|
|
53
53
|
let e = p.current;
|
|
54
|
-
if (e) return e.addEventListener(
|
|
55
|
-
}, [x]), /* @__PURE__ */ (0,
|
|
54
|
+
if (e) return e.addEventListener(xe, x), () => e.removeEventListener(xe, x);
|
|
55
|
+
}, [x]), /* @__PURE__ */ (0, B.jsx)(ke, {
|
|
56
56
|
scope: n,
|
|
57
57
|
orientation: r,
|
|
58
58
|
dir: h,
|
|
59
59
|
loop: i,
|
|
60
60
|
currentTabStopId: g,
|
|
61
|
-
onItemFocus:
|
|
62
|
-
onItemShiftTab:
|
|
63
|
-
onFocusableItemAdd:
|
|
64
|
-
onFocusableItemRemove:
|
|
65
|
-
children: /* @__PURE__ */ (0,
|
|
66
|
-
tabIndex: v ||
|
|
61
|
+
onItemFocus: z.useCallback((e) => _(e), [_]),
|
|
62
|
+
onItemShiftTab: z.useCallback(() => y(!0), []),
|
|
63
|
+
onFocusableItemAdd: z.useCallback(() => T((e) => e + 1), []),
|
|
64
|
+
onFocusableItemRemove: z.useCallback(() => T((e) => e - 1), []),
|
|
65
|
+
children: /* @__PURE__ */ (0, B.jsx)(fe.div, {
|
|
66
|
+
tabIndex: v || w === 0 ? -1 : 0,
|
|
67
67
|
"data-orientation": r,
|
|
68
68
|
...f,
|
|
69
69
|
ref: m,
|
|
@@ -71,16 +71,16 @@ var Ne = R.forwardRef((e, t) => {
|
|
|
71
71
|
outline: "none",
|
|
72
72
|
...e.style
|
|
73
73
|
},
|
|
74
|
-
onMouseDown:
|
|
74
|
+
onMouseDown: R(e.onMouseDown, () => {
|
|
75
75
|
C.current = !0;
|
|
76
76
|
}),
|
|
77
|
-
onFocus:
|
|
77
|
+
onFocus: R(e.onFocus, (e) => {
|
|
78
78
|
let t = !C.current;
|
|
79
79
|
if (e.target === e.currentTarget && t && !v) {
|
|
80
|
-
let t = new CustomEvent(
|
|
80
|
+
let t = new CustomEvent(xe, Se);
|
|
81
81
|
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
82
82
|
let e = S().filter((e) => e.focusable);
|
|
83
|
-
|
|
83
|
+
Re([
|
|
84
84
|
e.find((e) => e.active),
|
|
85
85
|
e.find((e) => e.id === g),
|
|
86
86
|
...e
|
|
@@ -89,38 +89,38 @@ var Ne = R.forwardRef((e, t) => {
|
|
|
89
89
|
}
|
|
90
90
|
C.current = !1;
|
|
91
91
|
}),
|
|
92
|
-
onBlur:
|
|
92
|
+
onBlur: R(e.onBlur, () => y(!1))
|
|
93
93
|
})
|
|
94
94
|
});
|
|
95
|
-
}),
|
|
96
|
-
let { __scopeRovingFocusGroup: n, focusable: r = !0, active: i = !1, tabStopId: a, children: o, ...s } = e, c =
|
|
97
|
-
return
|
|
95
|
+
}), Ne = "RovingFocusGroupItem", Pe = z.forwardRef((e, t) => {
|
|
96
|
+
let { __scopeRovingFocusGroup: n, focusable: r = !0, active: i = !1, tabStopId: a, children: o, ...s } = e, c = L(), l = a || c, u = Ae(Ne, n), d = u.currentTabStopId === l, f = Te(n), { onFocusableItemAdd: p, onFocusableItemRemove: m, currentTabStopId: h } = u;
|
|
97
|
+
return z.useEffect(() => {
|
|
98
98
|
if (r) return p(), () => m();
|
|
99
99
|
}, [
|
|
100
100
|
r,
|
|
101
101
|
p,
|
|
102
102
|
m
|
|
103
|
-
]), /* @__PURE__ */ (0,
|
|
103
|
+
]), /* @__PURE__ */ (0, B.jsx)(we.ItemSlot, {
|
|
104
104
|
scope: n,
|
|
105
105
|
id: l,
|
|
106
106
|
focusable: r,
|
|
107
107
|
active: i,
|
|
108
|
-
children: /* @__PURE__ */ (0,
|
|
108
|
+
children: /* @__PURE__ */ (0, B.jsx)(fe.span, {
|
|
109
109
|
tabIndex: d ? 0 : -1,
|
|
110
110
|
"data-orientation": u.orientation,
|
|
111
111
|
...s,
|
|
112
112
|
ref: t,
|
|
113
|
-
onMouseDown:
|
|
113
|
+
onMouseDown: R(e.onMouseDown, (e) => {
|
|
114
114
|
r ? u.onItemFocus(l) : e.preventDefault();
|
|
115
115
|
}),
|
|
116
|
-
onFocus:
|
|
117
|
-
onKeyDown:
|
|
116
|
+
onFocus: R(e.onFocus, () => u.onItemFocus(l)),
|
|
117
|
+
onKeyDown: R(e.onKeyDown, (e) => {
|
|
118
118
|
if (e.key === "Tab" && e.shiftKey) {
|
|
119
119
|
u.onItemShiftTab();
|
|
120
120
|
return;
|
|
121
121
|
}
|
|
122
122
|
if (e.target !== e.currentTarget) return;
|
|
123
|
-
let t =
|
|
123
|
+
let t = Le(e, u.orientation, u.dir);
|
|
124
124
|
if (t !== void 0) {
|
|
125
125
|
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
126
126
|
e.preventDefault();
|
|
@@ -129,9 +129,9 @@ var Ne = R.forwardRef((e, t) => {
|
|
|
129
129
|
else if (t === "prev" || t === "next") {
|
|
130
130
|
t === "prev" && n.reverse();
|
|
131
131
|
let r = n.indexOf(e.currentTarget);
|
|
132
|
-
n = u.loop ?
|
|
132
|
+
n = u.loop ? ze(n, r + 1) : n.slice(r + 1);
|
|
133
133
|
}
|
|
134
|
-
setTimeout(() =>
|
|
134
|
+
setTimeout(() => Re(n));
|
|
135
135
|
}
|
|
136
136
|
}),
|
|
137
137
|
children: typeof o == "function" ? o({
|
|
@@ -141,8 +141,8 @@ var Ne = R.forwardRef((e, t) => {
|
|
|
141
141
|
})
|
|
142
142
|
});
|
|
143
143
|
});
|
|
144
|
-
|
|
145
|
-
var
|
|
144
|
+
Pe.displayName = Ne;
|
|
145
|
+
var Fe = {
|
|
146
146
|
ArrowLeft: "prev",
|
|
147
147
|
ArrowUp: "prev",
|
|
148
148
|
ArrowRight: "next",
|
|
@@ -152,41 +152,41 @@ var Ie = {
|
|
|
152
152
|
PageDown: "last",
|
|
153
153
|
End: "last"
|
|
154
154
|
};
|
|
155
|
-
function
|
|
155
|
+
function Ie(e, t) {
|
|
156
156
|
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
let r =
|
|
160
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return
|
|
158
|
+
function Le(e, t, n) {
|
|
159
|
+
let r = Ie(e.key, n);
|
|
160
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return Fe[r];
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Re(e, t = !1) {
|
|
163
163
|
let n = document.activeElement;
|
|
164
164
|
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function ze(e, t) {
|
|
167
167
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
168
168
|
}
|
|
169
|
-
var
|
|
169
|
+
var Be = je, Ve = Pe, He = ["Enter", " "], Ue = [
|
|
170
170
|
"ArrowDown",
|
|
171
171
|
"PageUp",
|
|
172
172
|
"Home"
|
|
173
|
-
],
|
|
173
|
+
], We = [
|
|
174
174
|
"ArrowUp",
|
|
175
175
|
"PageDown",
|
|
176
176
|
"End"
|
|
177
|
-
],
|
|
178
|
-
ltr: [...
|
|
179
|
-
rtl: [...
|
|
180
|
-
},
|
|
177
|
+
], Ge = [...Ue, ...We], Ke = {
|
|
178
|
+
ltr: [...He, "ArrowRight"],
|
|
179
|
+
rtl: [...He, "ArrowLeft"]
|
|
180
|
+
}, qe = {
|
|
181
181
|
ltr: ["ArrowLeft"],
|
|
182
182
|
rtl: ["ArrowRight"]
|
|
183
|
-
},
|
|
184
|
-
|
|
183
|
+
}, Je = "Menu", [Ye, Xe, Ze] = _(Je), [Qe, $e] = ae(Je, [
|
|
184
|
+
Ze,
|
|
185
185
|
l,
|
|
186
|
-
|
|
187
|
-
]),
|
|
188
|
-
let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s =
|
|
189
|
-
return
|
|
186
|
+
Oe
|
|
187
|
+
]), et = l(), tt = Oe(), [nt, rt] = Qe(Je), [it, at] = Qe(Je), ot = (e) => {
|
|
188
|
+
let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s = et(t), [c, l] = z.useState(null), d = z.useRef(!1), f = me(a), p = b(i);
|
|
189
|
+
return z.useEffect(() => {
|
|
190
190
|
let e = () => {
|
|
191
191
|
d.current = !0, document.addEventListener("pointerdown", t, {
|
|
192
192
|
capture: !0,
|
|
@@ -199,17 +199,17 @@ var Ve = Me, He = Fe, Ue = ["Enter", " "], We = [
|
|
|
199
199
|
return document.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
200
200
|
document.removeEventListener("keydown", e, { capture: !0 }), document.removeEventListener("pointerdown", t, { capture: !0 }), document.removeEventListener("pointermove", t, { capture: !0 });
|
|
201
201
|
};
|
|
202
|
-
}, []), /* @__PURE__ */ (0,
|
|
202
|
+
}, []), /* @__PURE__ */ (0, B.jsx)(u, {
|
|
203
203
|
...s,
|
|
204
|
-
children: /* @__PURE__ */ (0,
|
|
204
|
+
children: /* @__PURE__ */ (0, B.jsx)(nt, {
|
|
205
205
|
scope: t,
|
|
206
206
|
open: n,
|
|
207
207
|
onOpenChange: f,
|
|
208
208
|
content: c,
|
|
209
209
|
onContentChange: l,
|
|
210
|
-
children: /* @__PURE__ */ (0,
|
|
210
|
+
children: /* @__PURE__ */ (0, B.jsx)(it, {
|
|
211
211
|
scope: t,
|
|
212
|
-
onClose:
|
|
212
|
+
onClose: z.useCallback(() => f(!1), [f]),
|
|
213
213
|
isUsingKeyboardRef: d,
|
|
214
214
|
dir: p,
|
|
215
215
|
modal: o,
|
|
@@ -218,24 +218,24 @@ var Ve = Me, He = Fe, Ue = ["Enter", " "], We = [
|
|
|
218
218
|
})
|
|
219
219
|
});
|
|
220
220
|
};
|
|
221
|
-
|
|
222
|
-
var
|
|
223
|
-
let { __scopeMenu: n, ...r } = e, i =
|
|
224
|
-
return /* @__PURE__ */ (0,
|
|
221
|
+
ot.displayName = Je;
|
|
222
|
+
var st = "MenuAnchor", ct = z.forwardRef((e, t) => {
|
|
223
|
+
let { __scopeMenu: n, ...r } = e, i = et(n);
|
|
224
|
+
return /* @__PURE__ */ (0, B.jsx)(p, {
|
|
225
225
|
...i,
|
|
226
226
|
...r,
|
|
227
227
|
ref: t
|
|
228
228
|
});
|
|
229
229
|
});
|
|
230
|
-
|
|
231
|
-
var
|
|
232
|
-
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a =
|
|
233
|
-
return /* @__PURE__ */ (0,
|
|
230
|
+
ct.displayName = st;
|
|
231
|
+
var lt = "MenuPortal", [ut, dt] = Qe(lt, { forceMount: void 0 }), ft = (e) => {
|
|
232
|
+
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a = rt(lt, t);
|
|
233
|
+
return /* @__PURE__ */ (0, B.jsx)(ut, {
|
|
234
234
|
scope: t,
|
|
235
235
|
forceMount: n,
|
|
236
|
-
children: /* @__PURE__ */ (0,
|
|
236
|
+
children: /* @__PURE__ */ (0, B.jsx)(le, {
|
|
237
237
|
present: n || a.open,
|
|
238
|
-
children: /* @__PURE__ */ (0,
|
|
238
|
+
children: /* @__PURE__ */ (0, B.jsx)(ce, {
|
|
239
239
|
asChild: !0,
|
|
240
240
|
container: i,
|
|
241
241
|
children: r
|
|
@@ -243,42 +243,42 @@ var ut = "MenuPortal", [dt, ft] = $e(ut, { forceMount: void 0 }), pt = (e) => {
|
|
|
243
243
|
})
|
|
244
244
|
});
|
|
245
245
|
};
|
|
246
|
-
|
|
247
|
-
var
|
|
248
|
-
let n =
|
|
249
|
-
return /* @__PURE__ */ (0,
|
|
246
|
+
ft.displayName = lt;
|
|
247
|
+
var V = "MenuContent", [pt, mt] = Qe(V), ht = z.forwardRef((e, t) => {
|
|
248
|
+
let n = dt(V, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = rt(V, e.__scopeMenu), o = at(V, e.__scopeMenu);
|
|
249
|
+
return /* @__PURE__ */ (0, B.jsx)(Ye.Provider, {
|
|
250
250
|
scope: e.__scopeMenu,
|
|
251
|
-
children: /* @__PURE__ */ (0,
|
|
251
|
+
children: /* @__PURE__ */ (0, B.jsx)(le, {
|
|
252
252
|
present: r || a.open,
|
|
253
|
-
children: /* @__PURE__ */ (0,
|
|
253
|
+
children: /* @__PURE__ */ (0, B.jsx)(Ye.Slot, {
|
|
254
254
|
scope: e.__scopeMenu,
|
|
255
|
-
children: o.modal ? /* @__PURE__ */ (0,
|
|
255
|
+
children: o.modal ? /* @__PURE__ */ (0, B.jsx)(gt, {
|
|
256
256
|
...i,
|
|
257
257
|
ref: t
|
|
258
|
-
}) : /* @__PURE__ */ (0,
|
|
258
|
+
}) : /* @__PURE__ */ (0, B.jsx)(_t, {
|
|
259
259
|
...i,
|
|
260
260
|
ref: t
|
|
261
261
|
})
|
|
262
262
|
})
|
|
263
263
|
})
|
|
264
264
|
});
|
|
265
|
-
}),
|
|
266
|
-
let n =
|
|
267
|
-
return
|
|
265
|
+
}), gt = z.forwardRef((e, t) => {
|
|
266
|
+
let n = rt(V, e.__scopeMenu), r = z.useRef(null), i = a(t, r);
|
|
267
|
+
return z.useEffect(() => {
|
|
268
268
|
let e = r.current;
|
|
269
|
-
if (e) return
|
|
270
|
-
}, []), /* @__PURE__ */ (0,
|
|
269
|
+
if (e) return I(e);
|
|
270
|
+
}, []), /* @__PURE__ */ (0, B.jsx)(yt, {
|
|
271
271
|
...e,
|
|
272
272
|
ref: i,
|
|
273
273
|
trapFocus: n.open,
|
|
274
274
|
disableOutsidePointerEvents: n.open,
|
|
275
275
|
disableOutsideScroll: !0,
|
|
276
|
-
onFocusOutside:
|
|
276
|
+
onFocusOutside: R(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 }),
|
|
277
277
|
onDismiss: () => n.onOpenChange(!1)
|
|
278
278
|
});
|
|
279
|
-
}),
|
|
280
|
-
let n =
|
|
281
|
-
return /* @__PURE__ */ (0,
|
|
279
|
+
}), _t = z.forwardRef((e, t) => {
|
|
280
|
+
let n = rt(V, e.__scopeMenu);
|
|
281
|
+
return /* @__PURE__ */ (0, B.jsx)(yt, {
|
|
282
282
|
...e,
|
|
283
283
|
ref: t,
|
|
284
284
|
trapFocus: !1,
|
|
@@ -286,44 +286,44 @@ var B = "MenuContent", [mt, ht] = $e(B), gt = R.forwardRef((e, t) => {
|
|
|
286
286
|
disableOutsideScroll: !1,
|
|
287
287
|
onDismiss: () => n.onOpenChange(!1)
|
|
288
288
|
});
|
|
289
|
-
}),
|
|
290
|
-
let { __scopeMenu: n, loop: r = !1, trapFocus: i, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: p, onInteractOutside: m, onDismiss: h, disableOutsideScroll: g, ..._ } = e, v =
|
|
291
|
-
as:
|
|
289
|
+
}), vt = o("MenuContent.ScrollLock"), yt = z.forwardRef((e, t) => {
|
|
290
|
+
let { __scopeMenu: n, loop: r = !1, trapFocus: i, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: p, onInteractOutside: m, onDismiss: h, disableOutsideScroll: g, ..._ } = e, v = rt(V, n), y = at(V, n), b = et(n), x = tt(n), S = Xe(n), [C, w] = z.useState(null), T = z.useRef(null), E = a(t, T, v.onContentChange), D = z.useRef(0), O = z.useRef(""), k = z.useRef(0), A = z.useRef(null), j = z.useRef("right"), M = z.useRef(0), N = g ? ue : z.Fragment, P = g ? {
|
|
291
|
+
as: vt,
|
|
292
292
|
allowPinchZoom: !0
|
|
293
|
-
} : void 0,
|
|
294
|
-
let t =
|
|
293
|
+
} : void 0, F = (e) => {
|
|
294
|
+
let t = O.current + e, n = S().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = rn(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
|
|
295
295
|
(function e(t) {
|
|
296
|
-
|
|
296
|
+
O.current = t, window.clearTimeout(D.current), t !== "" && (D.current = window.setTimeout(() => e(""), 1e3));
|
|
297
297
|
})(t), o && setTimeout(() => o.focus());
|
|
298
298
|
};
|
|
299
|
-
|
|
300
|
-
let
|
|
301
|
-
return /* @__PURE__ */ (0,
|
|
299
|
+
z.useEffect(() => () => window.clearTimeout(D.current), []), se();
|
|
300
|
+
let I = z.useCallback((e) => j.current === A.current?.side && on(e, A.current?.area), []);
|
|
301
|
+
return /* @__PURE__ */ (0, B.jsx)(pt, {
|
|
302
302
|
scope: n,
|
|
303
|
-
searchRef:
|
|
304
|
-
onItemEnter:
|
|
305
|
-
|
|
306
|
-
}, [
|
|
307
|
-
onItemLeave:
|
|
308
|
-
|
|
309
|
-
}, [
|
|
310
|
-
onTriggerLeave:
|
|
311
|
-
|
|
312
|
-
}, [
|
|
313
|
-
pointerGraceTimerRef:
|
|
314
|
-
onPointerGraceIntentChange:
|
|
315
|
-
|
|
303
|
+
searchRef: O,
|
|
304
|
+
onItemEnter: z.useCallback((e) => {
|
|
305
|
+
I(e) && e.preventDefault();
|
|
306
|
+
}, [I]),
|
|
307
|
+
onItemLeave: z.useCallback((e) => {
|
|
308
|
+
I(e) || (T.current?.focus(), w(null));
|
|
309
|
+
}, [I]),
|
|
310
|
+
onTriggerLeave: z.useCallback((e) => {
|
|
311
|
+
I(e) && e.preventDefault();
|
|
312
|
+
}, [I]),
|
|
313
|
+
pointerGraceTimerRef: k,
|
|
314
|
+
onPointerGraceIntentChange: z.useCallback((e) => {
|
|
315
|
+
A.current = e;
|
|
316
316
|
}, []),
|
|
317
|
-
children: /* @__PURE__ */ (0,
|
|
318
|
-
...
|
|
319
|
-
children: /* @__PURE__ */ (0,
|
|
317
|
+
children: /* @__PURE__ */ (0, B.jsx)(N, {
|
|
318
|
+
...P,
|
|
319
|
+
children: /* @__PURE__ */ (0, B.jsx)(ne, {
|
|
320
320
|
asChild: !0,
|
|
321
321
|
trapped: i,
|
|
322
|
-
onMountAutoFocus:
|
|
323
|
-
e.preventDefault(),
|
|
322
|
+
onMountAutoFocus: R(o, (e) => {
|
|
323
|
+
e.preventDefault(), T.current?.focus({ preventScroll: !0 });
|
|
324
324
|
}),
|
|
325
325
|
onUnmountAutoFocus: s,
|
|
326
|
-
children: /* @__PURE__ */ (0,
|
|
326
|
+
children: /* @__PURE__ */ (0, B.jsx)(oe, {
|
|
327
327
|
asChild: !0,
|
|
328
328
|
disableOutsidePointerEvents: c,
|
|
329
329
|
onEscapeKeyDown: u,
|
|
@@ -331,48 +331,48 @@ var B = "MenuContent", [mt, ht] = $e(B), gt = R.forwardRef((e, t) => {
|
|
|
331
331
|
onFocusOutside: p,
|
|
332
332
|
onInteractOutside: m,
|
|
333
333
|
onDismiss: h,
|
|
334
|
-
children: /* @__PURE__ */ (0,
|
|
334
|
+
children: /* @__PURE__ */ (0, B.jsx)(Be, {
|
|
335
335
|
asChild: !0,
|
|
336
336
|
...x,
|
|
337
337
|
dir: y.dir,
|
|
338
338
|
orientation: "vertical",
|
|
339
339
|
loop: r,
|
|
340
340
|
currentTabStopId: C,
|
|
341
|
-
onCurrentTabStopIdChange:
|
|
342
|
-
onEntryFocus:
|
|
341
|
+
onCurrentTabStopIdChange: w,
|
|
342
|
+
onEntryFocus: R(l, (e) => {
|
|
343
343
|
y.isUsingKeyboardRef.current || e.preventDefault();
|
|
344
344
|
}),
|
|
345
345
|
preventScrollOnEntryFocus: !0,
|
|
346
|
-
children: /* @__PURE__ */ (0,
|
|
346
|
+
children: /* @__PURE__ */ (0, B.jsx)(f, {
|
|
347
347
|
role: "menu",
|
|
348
348
|
"aria-orientation": "vertical",
|
|
349
|
-
"data-state":
|
|
349
|
+
"data-state": Qt(v.open),
|
|
350
350
|
"data-radix-menu-content": "",
|
|
351
351
|
dir: y.dir,
|
|
352
352
|
...b,
|
|
353
353
|
..._,
|
|
354
|
-
ref:
|
|
354
|
+
ref: E,
|
|
355
355
|
style: {
|
|
356
356
|
outline: "none",
|
|
357
357
|
..._.style
|
|
358
358
|
},
|
|
359
|
-
onKeyDown:
|
|
359
|
+
onKeyDown: R(_.onKeyDown, (e) => {
|
|
360
360
|
let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
|
|
361
|
-
t && (e.key === "Tab" && e.preventDefault(), !n && r &&
|
|
362
|
-
let i =
|
|
363
|
-
if (e.target !== i || !
|
|
361
|
+
t && (e.key === "Tab" && e.preventDefault(), !n && r && F(e.key));
|
|
362
|
+
let i = T.current;
|
|
363
|
+
if (e.target !== i || !Ge.includes(e.key)) return;
|
|
364
364
|
e.preventDefault();
|
|
365
365
|
let a = S().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
366
|
-
|
|
366
|
+
We.includes(e.key) && a.reverse(), tn(a);
|
|
367
367
|
}),
|
|
368
|
-
onBlur:
|
|
369
|
-
e.currentTarget.contains(e.target) || (window.clearTimeout(
|
|
368
|
+
onBlur: R(e.onBlur, (e) => {
|
|
369
|
+
e.currentTarget.contains(e.target) || (window.clearTimeout(D.current), O.current = "");
|
|
370
370
|
}),
|
|
371
|
-
onPointerMove:
|
|
372
|
-
let t = e.target, n =
|
|
371
|
+
onPointerMove: R(e.onPointerMove, sn((e) => {
|
|
372
|
+
let t = e.target, n = M.current !== e.clientX;
|
|
373
373
|
if (e.currentTarget.contains(t) && n) {
|
|
374
|
-
let t = e.clientX >
|
|
375
|
-
|
|
374
|
+
let t = e.clientX > M.current ? "right" : "left";
|
|
375
|
+
j.current = t, M.current = e.clientX;
|
|
376
376
|
}
|
|
377
377
|
}))
|
|
378
378
|
})
|
|
@@ -382,175 +382,175 @@ var B = "MenuContent", [mt, ht] = $e(B), gt = R.forwardRef((e, t) => {
|
|
|
382
382
|
})
|
|
383
383
|
});
|
|
384
384
|
});
|
|
385
|
-
|
|
386
|
-
var
|
|
385
|
+
ht.displayName = V;
|
|
386
|
+
var bt = "MenuGroup", xt = z.forwardRef((e, t) => {
|
|
387
387
|
let { __scopeMenu: n, ...r } = e;
|
|
388
|
-
return /* @__PURE__ */ (0,
|
|
388
|
+
return /* @__PURE__ */ (0, B.jsx)(fe.div, {
|
|
389
389
|
role: "group",
|
|
390
390
|
...r,
|
|
391
391
|
ref: t
|
|
392
392
|
});
|
|
393
393
|
});
|
|
394
|
-
|
|
395
|
-
var
|
|
394
|
+
xt.displayName = bt;
|
|
395
|
+
var St = "MenuLabel", Ct = z.forwardRef((e, t) => {
|
|
396
396
|
let { __scopeMenu: n, ...r } = e;
|
|
397
|
-
return /* @__PURE__ */ (0,
|
|
397
|
+
return /* @__PURE__ */ (0, B.jsx)(fe.div, {
|
|
398
398
|
...r,
|
|
399
399
|
ref: t
|
|
400
400
|
});
|
|
401
401
|
});
|
|
402
|
-
|
|
403
|
-
var
|
|
404
|
-
let { disabled: n = !1, onSelect: r, ...i } = e, o =
|
|
402
|
+
Ct.displayName = St;
|
|
403
|
+
var wt = "MenuItem", Tt = "menu.itemSelect", Et = z.forwardRef((e, t) => {
|
|
404
|
+
let { disabled: n = !1, onSelect: r, ...i } = e, o = z.useRef(null), s = at(wt, e.__scopeMenu), c = mt(wt, e.__scopeMenu), l = a(t, o), u = z.useRef(!1), d = () => {
|
|
405
405
|
let e = o.current;
|
|
406
406
|
if (!n && e) {
|
|
407
|
-
let t = new CustomEvent(
|
|
407
|
+
let t = new CustomEvent(Tt, {
|
|
408
408
|
bubbles: !0,
|
|
409
409
|
cancelable: !0
|
|
410
410
|
});
|
|
411
|
-
e.addEventListener(
|
|
411
|
+
e.addEventListener(Tt, (e) => r?.(e), { once: !0 }), ie(e, t), t.defaultPrevented ? u.current = !1 : s.onClose();
|
|
412
412
|
}
|
|
413
413
|
};
|
|
414
|
-
return /* @__PURE__ */ (0,
|
|
414
|
+
return /* @__PURE__ */ (0, B.jsx)(Dt, {
|
|
415
415
|
...i,
|
|
416
416
|
ref: l,
|
|
417
417
|
disabled: n,
|
|
418
|
-
onClick:
|
|
418
|
+
onClick: R(e.onClick, d),
|
|
419
419
|
onPointerDown: (t) => {
|
|
420
420
|
e.onPointerDown?.(t), u.current = !0;
|
|
421
421
|
},
|
|
422
|
-
onPointerUp:
|
|
422
|
+
onPointerUp: R(e.onPointerUp, (e) => {
|
|
423
423
|
u.current || e.currentTarget?.click();
|
|
424
424
|
}),
|
|
425
|
-
onKeyDown:
|
|
425
|
+
onKeyDown: R(e.onKeyDown, (e) => {
|
|
426
426
|
let t = c.searchRef.current !== "";
|
|
427
|
-
n || t && e.key === " " ||
|
|
427
|
+
n || t && e.key === " " || He.includes(e.key) && (e.currentTarget.click(), e.preventDefault());
|
|
428
428
|
})
|
|
429
429
|
});
|
|
430
430
|
});
|
|
431
|
-
|
|
432
|
-
var
|
|
433
|
-
let { __scopeMenu: n, disabled: r = !1, textValue: i, ...o } = e, s =
|
|
434
|
-
return
|
|
431
|
+
Et.displayName = wt;
|
|
432
|
+
var Dt = z.forwardRef((e, t) => {
|
|
433
|
+
let { __scopeMenu: n, disabled: r = !1, textValue: i, ...o } = e, s = mt(wt, n), c = tt(n), l = z.useRef(null), u = a(t, l), [d, f] = z.useState(!1), [p, m] = z.useState("");
|
|
434
|
+
return z.useEffect(() => {
|
|
435
435
|
let e = l.current;
|
|
436
436
|
e && m((e.textContent ?? "").trim());
|
|
437
|
-
}, [o.children]), /* @__PURE__ */ (0,
|
|
437
|
+
}, [o.children]), /* @__PURE__ */ (0, B.jsx)(Ye.ItemSlot, {
|
|
438
438
|
scope: n,
|
|
439
439
|
disabled: r,
|
|
440
440
|
textValue: i ?? p,
|
|
441
|
-
children: /* @__PURE__ */ (0,
|
|
441
|
+
children: /* @__PURE__ */ (0, B.jsx)(Ve, {
|
|
442
442
|
asChild: !0,
|
|
443
443
|
...c,
|
|
444
444
|
focusable: !r,
|
|
445
|
-
children: /* @__PURE__ */ (0,
|
|
445
|
+
children: /* @__PURE__ */ (0, B.jsx)(fe.div, {
|
|
446
446
|
role: "menuitem",
|
|
447
447
|
"data-highlighted": d ? "" : void 0,
|
|
448
448
|
"aria-disabled": r || void 0,
|
|
449
449
|
"data-disabled": r ? "" : void 0,
|
|
450
450
|
...o,
|
|
451
451
|
ref: u,
|
|
452
|
-
onPointerMove:
|
|
452
|
+
onPointerMove: R(e.onPointerMove, sn((e) => {
|
|
453
453
|
r ? s.onItemLeave(e) : (s.onItemEnter(e), e.defaultPrevented || e.currentTarget.focus({ preventScroll: !0 }));
|
|
454
454
|
})),
|
|
455
|
-
onPointerLeave:
|
|
456
|
-
onFocus:
|
|
457
|
-
onBlur:
|
|
455
|
+
onPointerLeave: R(e.onPointerLeave, sn((e) => s.onItemLeave(e))),
|
|
456
|
+
onFocus: R(e.onFocus, () => f(!0)),
|
|
457
|
+
onBlur: R(e.onBlur, () => f(!1))
|
|
458
458
|
})
|
|
459
459
|
})
|
|
460
460
|
});
|
|
461
|
-
}),
|
|
461
|
+
}), Ot = "MenuCheckboxItem", kt = z.forwardRef((e, t) => {
|
|
462
462
|
let { checked: n = !1, onCheckedChange: r, ...i } = e;
|
|
463
|
-
return /* @__PURE__ */ (0,
|
|
463
|
+
return /* @__PURE__ */ (0, B.jsx)(Lt, {
|
|
464
464
|
scope: e.__scopeMenu,
|
|
465
465
|
checked: n,
|
|
466
|
-
children: /* @__PURE__ */ (0,
|
|
466
|
+
children: /* @__PURE__ */ (0, B.jsx)(Et, {
|
|
467
467
|
role: "menuitemcheckbox",
|
|
468
|
-
"aria-checked":
|
|
468
|
+
"aria-checked": $t(n) ? "mixed" : n,
|
|
469
469
|
...i,
|
|
470
470
|
ref: t,
|
|
471
|
-
"data-state":
|
|
472
|
-
onSelect:
|
|
471
|
+
"data-state": en(n),
|
|
472
|
+
onSelect: R(i.onSelect, () => r?.($t(n) ? !0 : !n), { checkForDefaultPrevented: !1 })
|
|
473
473
|
})
|
|
474
474
|
});
|
|
475
475
|
});
|
|
476
|
-
|
|
477
|
-
var
|
|
476
|
+
kt.displayName = Ot;
|
|
477
|
+
var At = "MenuRadioGroup", [jt, Mt] = Qe(At, {
|
|
478
478
|
value: void 0,
|
|
479
479
|
onValueChange: () => {}
|
|
480
|
-
}),
|
|
481
|
-
let { value: n, onValueChange: r, ...i } = e, a =
|
|
482
|
-
return /* @__PURE__ */ (0,
|
|
480
|
+
}), Nt = z.forwardRef((e, t) => {
|
|
481
|
+
let { value: n, onValueChange: r, ...i } = e, a = me(r);
|
|
482
|
+
return /* @__PURE__ */ (0, B.jsx)(jt, {
|
|
483
483
|
scope: e.__scopeMenu,
|
|
484
484
|
value: n,
|
|
485
485
|
onValueChange: a,
|
|
486
|
-
children: /* @__PURE__ */ (0,
|
|
486
|
+
children: /* @__PURE__ */ (0, B.jsx)(xt, {
|
|
487
487
|
...i,
|
|
488
488
|
ref: t
|
|
489
489
|
})
|
|
490
490
|
});
|
|
491
491
|
});
|
|
492
|
-
|
|
493
|
-
var
|
|
494
|
-
let { value: n, ...r } = e, i =
|
|
495
|
-
return /* @__PURE__ */ (0,
|
|
492
|
+
Nt.displayName = At;
|
|
493
|
+
var Pt = "MenuRadioItem", Ft = z.forwardRef((e, t) => {
|
|
494
|
+
let { value: n, ...r } = e, i = Mt(Pt, e.__scopeMenu), a = n === i.value;
|
|
495
|
+
return /* @__PURE__ */ (0, B.jsx)(Lt, {
|
|
496
496
|
scope: e.__scopeMenu,
|
|
497
497
|
checked: a,
|
|
498
|
-
children: /* @__PURE__ */ (0,
|
|
498
|
+
children: /* @__PURE__ */ (0, B.jsx)(Et, {
|
|
499
499
|
role: "menuitemradio",
|
|
500
500
|
"aria-checked": a,
|
|
501
501
|
...r,
|
|
502
502
|
ref: t,
|
|
503
|
-
"data-state":
|
|
504
|
-
onSelect:
|
|
503
|
+
"data-state": en(a),
|
|
504
|
+
onSelect: R(r.onSelect, () => i.onValueChange?.(n), { checkForDefaultPrevented: !1 })
|
|
505
505
|
})
|
|
506
506
|
});
|
|
507
507
|
});
|
|
508
|
-
|
|
509
|
-
var
|
|
510
|
-
let { __scopeMenu: n, forceMount: r, ...i } = e, a =
|
|
511
|
-
return /* @__PURE__ */ (0,
|
|
512
|
-
present: r ||
|
|
513
|
-
children: /* @__PURE__ */ (0,
|
|
508
|
+
Ft.displayName = Pt;
|
|
509
|
+
var It = "MenuItemIndicator", [Lt, Rt] = Qe(It, { checked: !1 }), zt = z.forwardRef((e, t) => {
|
|
510
|
+
let { __scopeMenu: n, forceMount: r, ...i } = e, a = Rt(It, n);
|
|
511
|
+
return /* @__PURE__ */ (0, B.jsx)(le, {
|
|
512
|
+
present: r || $t(a.checked) || a.checked === !0,
|
|
513
|
+
children: /* @__PURE__ */ (0, B.jsx)(fe.span, {
|
|
514
514
|
...i,
|
|
515
515
|
ref: t,
|
|
516
|
-
"data-state":
|
|
516
|
+
"data-state": en(a.checked)
|
|
517
517
|
})
|
|
518
518
|
});
|
|
519
519
|
});
|
|
520
|
-
|
|
521
|
-
var
|
|
520
|
+
zt.displayName = It;
|
|
521
|
+
var Bt = "MenuSeparator", Vt = z.forwardRef((e, t) => {
|
|
522
522
|
let { __scopeMenu: n, ...r } = e;
|
|
523
|
-
return /* @__PURE__ */ (0,
|
|
523
|
+
return /* @__PURE__ */ (0, B.jsx)(fe.div, {
|
|
524
524
|
role: "separator",
|
|
525
525
|
"aria-orientation": "horizontal",
|
|
526
526
|
...r,
|
|
527
527
|
ref: t
|
|
528
528
|
});
|
|
529
529
|
});
|
|
530
|
-
|
|
531
|
-
var
|
|
532
|
-
let { __scopeMenu: n, ...r } = e, i =
|
|
533
|
-
return /* @__PURE__ */ (0,
|
|
530
|
+
Vt.displayName = Bt;
|
|
531
|
+
var Ht = "MenuArrow", Ut = z.forwardRef((e, t) => {
|
|
532
|
+
let { __scopeMenu: n, ...r } = e, i = et(n);
|
|
533
|
+
return /* @__PURE__ */ (0, B.jsx)(d, {
|
|
534
534
|
...i,
|
|
535
535
|
...r,
|
|
536
536
|
ref: t
|
|
537
537
|
});
|
|
538
538
|
});
|
|
539
|
-
|
|
540
|
-
var
|
|
541
|
-
let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a =
|
|
542
|
-
return
|
|
539
|
+
Ut.displayName = Ht;
|
|
540
|
+
var Wt = "MenuSub", [Gt, Kt] = Qe(Wt), qt = (e) => {
|
|
541
|
+
let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a = rt(Wt, t), o = et(t), [s, c] = z.useState(null), [l, d] = z.useState(null), f = me(i);
|
|
542
|
+
return z.useEffect(() => (a.open === !1 && f(!1), () => f(!1)), [a.open, f]), /* @__PURE__ */ (0, B.jsx)(u, {
|
|
543
543
|
...o,
|
|
544
|
-
children: /* @__PURE__ */ (0,
|
|
544
|
+
children: /* @__PURE__ */ (0, B.jsx)(nt, {
|
|
545
545
|
scope: t,
|
|
546
546
|
open: r,
|
|
547
547
|
onOpenChange: f,
|
|
548
548
|
content: l,
|
|
549
549
|
onContentChange: d,
|
|
550
|
-
children: /* @__PURE__ */ (0,
|
|
550
|
+
children: /* @__PURE__ */ (0, B.jsx)(Gt, {
|
|
551
551
|
scope: t,
|
|
552
|
-
contentId:
|
|
553
|
-
triggerId:
|
|
552
|
+
contentId: L(),
|
|
553
|
+
triggerId: L(),
|
|
554
554
|
trigger: s,
|
|
555
555
|
onTriggerChange: c,
|
|
556
556
|
children: n
|
|
@@ -558,36 +558,36 @@ var Gt = "MenuSub", [Kt, qt] = $e(Gt), Jt = (e) => {
|
|
|
558
558
|
})
|
|
559
559
|
});
|
|
560
560
|
};
|
|
561
|
-
|
|
562
|
-
var
|
|
563
|
-
let r =
|
|
561
|
+
qt.displayName = Wt;
|
|
562
|
+
var Jt = "MenuSubTrigger", Yt = z.forwardRef((e, n) => {
|
|
563
|
+
let r = rt(Jt, e.__scopeMenu), i = at(Jt, e.__scopeMenu), a = Kt(Jt, e.__scopeMenu), o = mt(Jt, e.__scopeMenu), s = z.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = o, u = { __scopeMenu: e.__scopeMenu }, d = z.useCallback(() => {
|
|
564
564
|
s.current && window.clearTimeout(s.current), s.current = null;
|
|
565
565
|
}, []);
|
|
566
|
-
return
|
|
566
|
+
return z.useEffect(() => d, [d]), z.useEffect(() => {
|
|
567
567
|
let e = c.current;
|
|
568
568
|
return () => {
|
|
569
569
|
window.clearTimeout(e), l(null);
|
|
570
570
|
};
|
|
571
|
-
}, [c, l]), /* @__PURE__ */ (0,
|
|
571
|
+
}, [c, l]), /* @__PURE__ */ (0, B.jsx)(ct, {
|
|
572
572
|
asChild: !0,
|
|
573
573
|
...u,
|
|
574
|
-
children: /* @__PURE__ */ (0,
|
|
574
|
+
children: /* @__PURE__ */ (0, B.jsx)(Dt, {
|
|
575
575
|
id: a.triggerId,
|
|
576
576
|
"aria-haspopup": "menu",
|
|
577
577
|
"aria-expanded": r.open,
|
|
578
578
|
"aria-controls": a.contentId,
|
|
579
|
-
"data-state":
|
|
579
|
+
"data-state": Qt(r.open),
|
|
580
580
|
...e,
|
|
581
581
|
ref: t(n, a.onTriggerChange),
|
|
582
582
|
onClick: (t) => {
|
|
583
583
|
e.onClick?.(t), !(e.disabled || t.defaultPrevented) && (t.currentTarget.focus(), r.open || r.onOpenChange(!0));
|
|
584
584
|
},
|
|
585
|
-
onPointerMove:
|
|
585
|
+
onPointerMove: R(e.onPointerMove, sn((t) => {
|
|
586
586
|
o.onItemEnter(t), !t.defaultPrevented && !e.disabled && !r.open && !s.current && (o.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
|
|
587
587
|
r.onOpenChange(!0), d();
|
|
588
588
|
}, 100));
|
|
589
589
|
})),
|
|
590
|
-
onPointerLeave:
|
|
590
|
+
onPointerLeave: R(e.onPointerLeave, sn((e) => {
|
|
591
591
|
d();
|
|
592
592
|
let t = r.content?.getBoundingClientRect();
|
|
593
593
|
if (t) {
|
|
@@ -622,23 +622,23 @@ var Yt = "MenuSubTrigger", Xt = R.forwardRef((e, n) => {
|
|
|
622
622
|
o.onPointerGraceIntentChange(null);
|
|
623
623
|
}
|
|
624
624
|
})),
|
|
625
|
-
onKeyDown:
|
|
625
|
+
onKeyDown: R(e.onKeyDown, (t) => {
|
|
626
626
|
let n = o.searchRef.current !== "";
|
|
627
|
-
e.disabled || n && t.key === " " ||
|
|
627
|
+
e.disabled || n && t.key === " " || Ke[i.dir].includes(t.key) && (r.onOpenChange(!0), r.content?.focus(), t.preventDefault());
|
|
628
628
|
})
|
|
629
629
|
})
|
|
630
630
|
});
|
|
631
631
|
});
|
|
632
|
-
|
|
633
|
-
var
|
|
634
|
-
let n =
|
|
635
|
-
return /* @__PURE__ */ (0,
|
|
632
|
+
Yt.displayName = Jt;
|
|
633
|
+
var Xt = "MenuSubContent", Zt = z.forwardRef((e, t) => {
|
|
634
|
+
let n = dt(V, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, o = rt(V, e.__scopeMenu), s = at(V, e.__scopeMenu), c = Kt(Xt, e.__scopeMenu), l = z.useRef(null), u = a(t, l);
|
|
635
|
+
return /* @__PURE__ */ (0, B.jsx)(Ye.Provider, {
|
|
636
636
|
scope: e.__scopeMenu,
|
|
637
|
-
children: /* @__PURE__ */ (0,
|
|
637
|
+
children: /* @__PURE__ */ (0, B.jsx)(le, {
|
|
638
638
|
present: r || o.open,
|
|
639
|
-
children: /* @__PURE__ */ (0,
|
|
639
|
+
children: /* @__PURE__ */ (0, B.jsx)(Ye.Slot, {
|
|
640
640
|
scope: e.__scopeMenu,
|
|
641
|
-
children: /* @__PURE__ */ (0,
|
|
641
|
+
children: /* @__PURE__ */ (0, B.jsx)(yt, {
|
|
642
642
|
id: c.contentId,
|
|
643
643
|
"aria-labelledby": c.triggerId,
|
|
644
644
|
...i,
|
|
@@ -652,14 +652,14 @@ var Zt = "MenuSubContent", Qt = R.forwardRef((e, t) => {
|
|
|
652
652
|
s.isUsingKeyboardRef.current && l.current?.focus(), e.preventDefault();
|
|
653
653
|
},
|
|
654
654
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
655
|
-
onFocusOutside:
|
|
655
|
+
onFocusOutside: R(e.onFocusOutside, (e) => {
|
|
656
656
|
e.target !== c.trigger && o.onOpenChange(!1);
|
|
657
657
|
}),
|
|
658
|
-
onEscapeKeyDown:
|
|
658
|
+
onEscapeKeyDown: R(e.onEscapeKeyDown, (e) => {
|
|
659
659
|
s.onClose(), e.preventDefault();
|
|
660
660
|
}),
|
|
661
|
-
onKeyDown:
|
|
662
|
-
let t = e.currentTarget.contains(e.target), n =
|
|
661
|
+
onKeyDown: R(e.onKeyDown, (e) => {
|
|
662
|
+
let t = e.currentTarget.contains(e.target), n = qe[s.dir].includes(e.key);
|
|
663
663
|
t && n && (o.onOpenChange(!1), c.trigger?.focus(), e.preventDefault());
|
|
664
664
|
})
|
|
665
665
|
})
|
|
@@ -667,30 +667,30 @@ var Zt = "MenuSubContent", Qt = R.forwardRef((e, t) => {
|
|
|
667
667
|
})
|
|
668
668
|
});
|
|
669
669
|
});
|
|
670
|
-
|
|
671
|
-
function
|
|
670
|
+
Zt.displayName = Xt;
|
|
671
|
+
function Qt(e) {
|
|
672
672
|
return e ? "open" : "closed";
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function $t(e) {
|
|
675
675
|
return e === "indeterminate";
|
|
676
676
|
}
|
|
677
|
-
function
|
|
678
|
-
return
|
|
677
|
+
function en(e) {
|
|
678
|
+
return $t(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function tn(e) {
|
|
681
681
|
let t = document.activeElement;
|
|
682
682
|
for (let n of e) if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function nn(e, t) {
|
|
685
685
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
686
686
|
}
|
|
687
|
-
function
|
|
688
|
-
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a =
|
|
687
|
+
function rn(e, t, n) {
|
|
688
|
+
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = nn(e, Math.max(i, 0));
|
|
689
689
|
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
690
690
|
let o = a.find((e) => e.toLowerCase().startsWith(r.toLowerCase()));
|
|
691
691
|
return o === n ? void 0 : o;
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function an(e, t) {
|
|
694
694
|
let { x: n, y: r } = e, i = !1;
|
|
695
695
|
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
696
696
|
let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
|
|
@@ -698,32 +698,32 @@ function on(e, t) {
|
|
|
698
698
|
}
|
|
699
699
|
return i;
|
|
700
700
|
}
|
|
701
|
-
function
|
|
702
|
-
return t ?
|
|
701
|
+
function on(e, t) {
|
|
702
|
+
return t ? an({
|
|
703
703
|
x: e.clientX,
|
|
704
704
|
y: e.clientY
|
|
705
705
|
}, t) : !1;
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function sn(e) {
|
|
708
708
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
709
709
|
}
|
|
710
|
-
var ln =
|
|
711
|
-
let { __scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, c =
|
|
710
|
+
var cn = ot, ln = ct, un = ft, dn = ht, fn = xt, pn = Ct, mn = Et, hn = kt, gn = Nt, _n = Ft, vn = zt, yn = Vt, bn = Ut, xn = qt, Sn = Yt, Cn = Zt, wn = "DropdownMenu", [Tn, En] = ae(wn, [$e]), H = $e(), [Dn, On] = Tn(wn), kn = (e) => {
|
|
711
|
+
let { __scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, c = H(t), l = z.useRef(null), [u, d] = re({
|
|
712
712
|
prop: i,
|
|
713
713
|
defaultProp: a ?? !1,
|
|
714
714
|
onChange: o,
|
|
715
|
-
caller:
|
|
715
|
+
caller: wn
|
|
716
716
|
});
|
|
717
|
-
return /* @__PURE__ */ (0,
|
|
717
|
+
return /* @__PURE__ */ (0, B.jsx)(Dn, {
|
|
718
718
|
scope: t,
|
|
719
|
-
triggerId:
|
|
719
|
+
triggerId: L(),
|
|
720
720
|
triggerRef: l,
|
|
721
|
-
contentId:
|
|
721
|
+
contentId: L(),
|
|
722
722
|
open: u,
|
|
723
723
|
onOpenChange: d,
|
|
724
|
-
onOpenToggle:
|
|
724
|
+
onOpenToggle: z.useCallback(() => d((e) => !e), [d]),
|
|
725
725
|
modal: s,
|
|
726
|
-
children: /* @__PURE__ */ (0,
|
|
726
|
+
children: /* @__PURE__ */ (0, B.jsx)(cn, {
|
|
727
727
|
...c,
|
|
728
728
|
open: u,
|
|
729
729
|
onOpenChange: d,
|
|
@@ -733,13 +733,13 @@ var ln = st, un = lt, dn = pt, fn = gt, pn = St, mn = wt, hn = Dt, gn = At, _n =
|
|
|
733
733
|
})
|
|
734
734
|
});
|
|
735
735
|
};
|
|
736
|
-
|
|
737
|
-
var
|
|
738
|
-
let { __scopeDropdownMenu: r, disabled: i = !1, ...a } = e, o =
|
|
739
|
-
return /* @__PURE__ */ (0,
|
|
736
|
+
kn.displayName = wn;
|
|
737
|
+
var An = "DropdownMenuTrigger", jn = z.forwardRef((e, n) => {
|
|
738
|
+
let { __scopeDropdownMenu: r, disabled: i = !1, ...a } = e, o = On(An, r), s = H(r);
|
|
739
|
+
return /* @__PURE__ */ (0, B.jsx)(ln, {
|
|
740
740
|
asChild: !0,
|
|
741
741
|
...s,
|
|
742
|
-
children: /* @__PURE__ */ (0,
|
|
742
|
+
children: /* @__PURE__ */ (0, B.jsx)(fe.button, {
|
|
743
743
|
type: "button",
|
|
744
744
|
id: o.triggerId,
|
|
745
745
|
"aria-haspopup": "menu",
|
|
@@ -750,10 +750,10 @@ var jn = "DropdownMenuTrigger", Mn = R.forwardRef((e, n) => {
|
|
|
750
750
|
disabled: i,
|
|
751
751
|
...a,
|
|
752
752
|
ref: t(n, o.triggerRef),
|
|
753
|
-
onPointerDown:
|
|
753
|
+
onPointerDown: R(e.onPointerDown, (e) => {
|
|
754
754
|
!i && e.button === 0 && e.ctrlKey === !1 && (o.onOpenToggle(), o.open || e.preventDefault());
|
|
755
755
|
}),
|
|
756
|
-
onKeyDown:
|
|
756
|
+
onKeyDown: R(e.onKeyDown, (e) => {
|
|
757
757
|
i || (["Enter", " "].includes(e.key) && o.onOpenToggle(), e.key === "ArrowDown" && o.onOpenChange(!0), [
|
|
758
758
|
"Enter",
|
|
759
759
|
" ",
|
|
@@ -763,27 +763,27 @@ var jn = "DropdownMenuTrigger", Mn = R.forwardRef((e, n) => {
|
|
|
763
763
|
})
|
|
764
764
|
});
|
|
765
765
|
});
|
|
766
|
-
|
|
767
|
-
var
|
|
768
|
-
let { __scopeDropdownMenu: t, ...n } = e, r =
|
|
769
|
-
return /* @__PURE__ */ (0,
|
|
766
|
+
jn.displayName = An;
|
|
767
|
+
var Mn = "DropdownMenuPortal", Nn = (e) => {
|
|
768
|
+
let { __scopeDropdownMenu: t, ...n } = e, r = H(t);
|
|
769
|
+
return /* @__PURE__ */ (0, B.jsx)(un, {
|
|
770
770
|
...r,
|
|
771
771
|
...n
|
|
772
772
|
});
|
|
773
773
|
};
|
|
774
|
-
|
|
775
|
-
var
|
|
776
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
777
|
-
return /* @__PURE__ */ (0,
|
|
774
|
+
Nn.displayName = Mn;
|
|
775
|
+
var Pn = "DropdownMenuContent", Fn = z.forwardRef((e, t) => {
|
|
776
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = On(Pn, n), a = H(n), o = z.useRef(!1);
|
|
777
|
+
return /* @__PURE__ */ (0, B.jsx)(dn, {
|
|
778
778
|
id: i.contentId,
|
|
779
779
|
"aria-labelledby": i.triggerId,
|
|
780
780
|
...a,
|
|
781
781
|
...r,
|
|
782
782
|
ref: t,
|
|
783
|
-
onCloseAutoFocus:
|
|
783
|
+
onCloseAutoFocus: R(e.onCloseAutoFocus, (e) => {
|
|
784
784
|
o.current || i.triggerRef.current?.focus(), o.current = !1, e.preventDefault();
|
|
785
785
|
}),
|
|
786
|
-
onInteractOutside:
|
|
786
|
+
onInteractOutside: R(e.onInteractOutside, (e) => {
|
|
787
787
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
788
788
|
(!i.modal || r) && (o.current = !0);
|
|
789
789
|
}),
|
|
@@ -797,113 +797,113 @@ var Fn = "DropdownMenuContent", In = R.forwardRef((e, t) => {
|
|
|
797
797
|
}
|
|
798
798
|
});
|
|
799
799
|
});
|
|
800
|
-
|
|
801
|
-
var
|
|
802
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
803
|
-
return /* @__PURE__ */ (0,
|
|
800
|
+
Fn.displayName = Pn;
|
|
801
|
+
var In = "DropdownMenuGroup", Ln = z.forwardRef((e, t) => {
|
|
802
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
803
|
+
return /* @__PURE__ */ (0, B.jsx)(fn, {
|
|
804
804
|
...i,
|
|
805
805
|
...r,
|
|
806
806
|
ref: t
|
|
807
807
|
});
|
|
808
808
|
});
|
|
809
|
-
|
|
810
|
-
var
|
|
811
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
812
|
-
return /* @__PURE__ */ (0,
|
|
809
|
+
Ln.displayName = In;
|
|
810
|
+
var Rn = "DropdownMenuLabel", zn = z.forwardRef((e, t) => {
|
|
811
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
812
|
+
return /* @__PURE__ */ (0, B.jsx)(pn, {
|
|
813
813
|
...i,
|
|
814
814
|
...r,
|
|
815
815
|
ref: t
|
|
816
816
|
});
|
|
817
817
|
});
|
|
818
|
-
|
|
819
|
-
var
|
|
820
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
821
|
-
return /* @__PURE__ */ (0,
|
|
818
|
+
zn.displayName = Rn;
|
|
819
|
+
var Bn = "DropdownMenuItem", Vn = z.forwardRef((e, t) => {
|
|
820
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
821
|
+
return /* @__PURE__ */ (0, B.jsx)(mn, {
|
|
822
822
|
...i,
|
|
823
823
|
...r,
|
|
824
824
|
ref: t
|
|
825
825
|
});
|
|
826
826
|
});
|
|
827
|
-
|
|
828
|
-
var
|
|
829
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
830
|
-
return /* @__PURE__ */ (0,
|
|
827
|
+
Vn.displayName = Bn;
|
|
828
|
+
var Hn = "DropdownMenuCheckboxItem", Un = z.forwardRef((e, t) => {
|
|
829
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
830
|
+
return /* @__PURE__ */ (0, B.jsx)(hn, {
|
|
831
831
|
...i,
|
|
832
832
|
...r,
|
|
833
833
|
ref: t
|
|
834
834
|
});
|
|
835
835
|
});
|
|
836
|
-
|
|
837
|
-
var
|
|
838
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
839
|
-
return /* @__PURE__ */ (0,
|
|
836
|
+
Un.displayName = Hn;
|
|
837
|
+
var Wn = "DropdownMenuRadioGroup", Gn = z.forwardRef((e, t) => {
|
|
838
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
839
|
+
return /* @__PURE__ */ (0, B.jsx)(gn, {
|
|
840
840
|
...i,
|
|
841
841
|
...r,
|
|
842
842
|
ref: t
|
|
843
843
|
});
|
|
844
844
|
});
|
|
845
|
-
|
|
846
|
-
var
|
|
847
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
848
|
-
return /* @__PURE__ */ (0,
|
|
845
|
+
Gn.displayName = Wn;
|
|
846
|
+
var Kn = "DropdownMenuRadioItem", qn = z.forwardRef((e, t) => {
|
|
847
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
848
|
+
return /* @__PURE__ */ (0, B.jsx)(_n, {
|
|
849
849
|
...i,
|
|
850
850
|
...r,
|
|
851
851
|
ref: t
|
|
852
852
|
});
|
|
853
853
|
});
|
|
854
|
-
|
|
855
|
-
var
|
|
856
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
857
|
-
return /* @__PURE__ */ (0,
|
|
854
|
+
qn.displayName = Kn;
|
|
855
|
+
var Jn = "DropdownMenuItemIndicator", Yn = z.forwardRef((e, t) => {
|
|
856
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
857
|
+
return /* @__PURE__ */ (0, B.jsx)(vn, {
|
|
858
858
|
...i,
|
|
859
859
|
...r,
|
|
860
860
|
ref: t
|
|
861
861
|
});
|
|
862
862
|
});
|
|
863
|
-
|
|
864
|
-
var
|
|
865
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
866
|
-
return /* @__PURE__ */ (0,
|
|
863
|
+
Yn.displayName = Jn;
|
|
864
|
+
var Xn = "DropdownMenuSeparator", Zn = z.forwardRef((e, t) => {
|
|
865
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
866
|
+
return /* @__PURE__ */ (0, B.jsx)(yn, {
|
|
867
867
|
...i,
|
|
868
868
|
...r,
|
|
869
869
|
ref: t
|
|
870
870
|
});
|
|
871
871
|
});
|
|
872
|
-
|
|
873
|
-
var
|
|
874
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
875
|
-
return /* @__PURE__ */ (0,
|
|
872
|
+
Zn.displayName = Xn;
|
|
873
|
+
var Qn = "DropdownMenuArrow", $n = z.forwardRef((e, t) => {
|
|
874
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
875
|
+
return /* @__PURE__ */ (0, B.jsx)(bn, {
|
|
876
876
|
...i,
|
|
877
877
|
...r,
|
|
878
878
|
ref: t
|
|
879
879
|
});
|
|
880
880
|
});
|
|
881
|
-
|
|
882
|
-
var
|
|
883
|
-
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, o =
|
|
881
|
+
$n.displayName = Qn;
|
|
882
|
+
var er = (e) => {
|
|
883
|
+
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, o = H(t), [s, c] = re({
|
|
884
884
|
prop: r,
|
|
885
885
|
defaultProp: a ?? !1,
|
|
886
886
|
onChange: i,
|
|
887
887
|
caller: "DropdownMenuSub"
|
|
888
888
|
});
|
|
889
|
-
return /* @__PURE__ */ (0,
|
|
889
|
+
return /* @__PURE__ */ (0, B.jsx)(xn, {
|
|
890
890
|
...o,
|
|
891
891
|
open: s,
|
|
892
892
|
onOpenChange: c,
|
|
893
893
|
children: n
|
|
894
894
|
});
|
|
895
|
-
},
|
|
896
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
897
|
-
return /* @__PURE__ */ (0,
|
|
895
|
+
}, tr = "DropdownMenuSubTrigger", nr = z.forwardRef((e, t) => {
|
|
896
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
897
|
+
return /* @__PURE__ */ (0, B.jsx)(Sn, {
|
|
898
898
|
...i,
|
|
899
899
|
...r,
|
|
900
900
|
ref: t
|
|
901
901
|
});
|
|
902
902
|
});
|
|
903
|
-
|
|
904
|
-
var
|
|
905
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
906
|
-
return /* @__PURE__ */ (0,
|
|
903
|
+
nr.displayName = tr;
|
|
904
|
+
var rr = "DropdownMenuSubContent", ir = z.forwardRef((e, t) => {
|
|
905
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
906
|
+
return /* @__PURE__ */ (0, B.jsx)(Cn, {
|
|
907
907
|
...i,
|
|
908
908
|
...r,
|
|
909
909
|
ref: t,
|
|
@@ -917,12 +917,12 @@ var ir = "DropdownMenuSubContent", ar = R.forwardRef((e, t) => {
|
|
|
917
917
|
}
|
|
918
918
|
});
|
|
919
919
|
});
|
|
920
|
-
|
|
921
|
-
var or =
|
|
920
|
+
ir.displayName = rr;
|
|
921
|
+
var ar = kn, or = jn, sr = Nn, cr = Fn, lr = Ln, ur = zn, dr = Vn, fr = Un, pr = qn, mr = Yn, hr = Zn, gr = er, _r = nr, vr = ir, U = typeof document < "u" ? z.useLayoutEffect : () => {};
|
|
922
922
|
//#endregion
|
|
923
923
|
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/utils/dist/useValueEffect.mjs
|
|
924
|
-
function
|
|
925
|
-
let [t, n] = (0,
|
|
924
|
+
function yr(e) {
|
|
925
|
+
let [t, n] = (0, z.useState)(e), r = (0, z.useRef)(t), i = (0, z.useRef)(null), a = (0, z.useRef)(() => {
|
|
926
926
|
if (!i.current) return;
|
|
927
927
|
let e = i.current.next();
|
|
928
928
|
if (e.done) {
|
|
@@ -931,50 +931,50 @@ function br(e) {
|
|
|
931
931
|
}
|
|
932
932
|
r.current === e.value ? a.current() : n(e.value);
|
|
933
933
|
});
|
|
934
|
-
return
|
|
934
|
+
return U(() => {
|
|
935
935
|
r.current = t, i.current && a.current();
|
|
936
|
-
}), [t, (0,
|
|
936
|
+
}), [t, (0, z.useCallback)((e) => {
|
|
937
937
|
i.current = e(r.current), a.current();
|
|
938
938
|
}, [a])];
|
|
939
939
|
}
|
|
940
940
|
//#endregion
|
|
941
941
|
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/utils/dist/useId.mjs
|
|
942
|
-
var
|
|
943
|
-
typeof FinalizationRegistry < "u" && (
|
|
944
|
-
|
|
942
|
+
var br = !!(typeof window < "u" && window.document && window.document.createElement), xr = /* @__PURE__ */ new Map(), Sr;
|
|
943
|
+
typeof FinalizationRegistry < "u" && (Sr = new FinalizationRegistry((e) => {
|
|
944
|
+
xr.delete(e);
|
|
945
945
|
}));
|
|
946
|
-
function
|
|
947
|
-
let [t, n] = (0,
|
|
948
|
-
if (
|
|
949
|
-
let e =
|
|
950
|
-
e && !e.includes(r) ? e.push(r) :
|
|
946
|
+
function Cr(e) {
|
|
947
|
+
let [t, n] = (0, z.useState)(e), r = (0, z.useRef)(null), i = D(t), a = (0, z.useRef)(null);
|
|
948
|
+
if (Sr && Sr.register(a, i), br) {
|
|
949
|
+
let e = xr.get(i);
|
|
950
|
+
e && !e.includes(r) ? e.push(r) : xr.set(i, [r]);
|
|
951
951
|
}
|
|
952
|
-
return
|
|
952
|
+
return U(() => {
|
|
953
953
|
let e = i;
|
|
954
954
|
return () => {
|
|
955
|
-
|
|
955
|
+
Sr && Sr.unregister(a), xr.delete(e);
|
|
956
956
|
};
|
|
957
|
-
}, [i]), (0,
|
|
957
|
+
}, [i]), (0, z.useEffect)(() => {
|
|
958
958
|
let e = r.current;
|
|
959
959
|
return e && n(e), () => {
|
|
960
960
|
e && (r.current = null);
|
|
961
961
|
};
|
|
962
962
|
}), i;
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function wr(e, t) {
|
|
965
965
|
if (e === t) return e;
|
|
966
|
-
let n =
|
|
966
|
+
let n = xr.get(e);
|
|
967
967
|
if (n) return n.forEach((e) => e.current = t), t;
|
|
968
|
-
let r =
|
|
968
|
+
let r = xr.get(t);
|
|
969
969
|
return r ? (r.forEach((t) => t.current = e), e) : t;
|
|
970
970
|
}
|
|
971
|
-
function
|
|
972
|
-
let t =
|
|
971
|
+
function Tr(e = []) {
|
|
972
|
+
let t = Cr(), [n, r] = yr(t), i = (0, z.useCallback)(() => {
|
|
973
973
|
r(function* () {
|
|
974
974
|
yield t, yield document.getElementById(t) ? t : void 0;
|
|
975
975
|
});
|
|
976
976
|
}, [t, r]);
|
|
977
|
-
return
|
|
977
|
+
return U(i, [
|
|
978
978
|
t,
|
|
979
979
|
i,
|
|
980
980
|
...e
|
|
@@ -982,46 +982,46 @@ function Er(e = []) {
|
|
|
982
982
|
}
|
|
983
983
|
//#endregion
|
|
984
984
|
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/utils/dist/chain.mjs
|
|
985
|
-
function
|
|
985
|
+
function Er(...e) {
|
|
986
986
|
return (...t) => {
|
|
987
987
|
for (let n of e) typeof n == "function" && n(...t);
|
|
988
988
|
};
|
|
989
989
|
}
|
|
990
990
|
//#endregion
|
|
991
991
|
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/utils/dist/domHelpers.mjs
|
|
992
|
-
var
|
|
993
|
-
function
|
|
992
|
+
var W = (e) => e?.ownerDocument ?? document, G = (e) => e && "window" in e && e.window === e ? e : W(e).defaultView || window;
|
|
993
|
+
function Dr(e) {
|
|
994
994
|
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
|
|
995
995
|
}
|
|
996
|
-
function
|
|
997
|
-
return
|
|
996
|
+
function Or(e) {
|
|
997
|
+
return Dr(e) && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in e;
|
|
998
998
|
}
|
|
999
999
|
//#endregion
|
|
1000
1000
|
//#region ../node_modules/.pnpm/@react-stately+flags@3.1.2/node_modules/@react-stately/flags/dist/import.mjs
|
|
1001
|
-
var
|
|
1002
|
-
function
|
|
1003
|
-
return
|
|
1001
|
+
var kr = !1;
|
|
1002
|
+
function Ar() {
|
|
1003
|
+
return kr;
|
|
1004
1004
|
}
|
|
1005
1005
|
//#endregion
|
|
1006
1006
|
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/utils/dist/DOMFunctions.mjs
|
|
1007
|
-
function
|
|
1008
|
-
if (!
|
|
1007
|
+
function K(e, t) {
|
|
1008
|
+
if (!Ar()) return t && e ? e.contains(t) : !1;
|
|
1009
1009
|
if (!e || !t) return !1;
|
|
1010
1010
|
let n = t;
|
|
1011
1011
|
for (; n !== null;) {
|
|
1012
1012
|
if (n === e) return !0;
|
|
1013
|
-
n = n.tagName === "SLOT" && n.assignedSlot ? n.assignedSlot.parentNode :
|
|
1013
|
+
n = n.tagName === "SLOT" && n.assignedSlot ? n.assignedSlot.parentNode : Or(n) ? n.host : n.parentNode;
|
|
1014
1014
|
}
|
|
1015
1015
|
return !1;
|
|
1016
1016
|
}
|
|
1017
|
-
var
|
|
1018
|
-
if (!
|
|
1017
|
+
var jr = (e = document) => {
|
|
1018
|
+
if (!Ar()) return e.activeElement;
|
|
1019
1019
|
let t = e.activeElement;
|
|
1020
1020
|
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
|
|
1021
1021
|
return t;
|
|
1022
1022
|
};
|
|
1023
1023
|
function q(e) {
|
|
1024
|
-
if (
|
|
1024
|
+
if (Ar() && e.target instanceof Element && e.target.shadowRoot) {
|
|
1025
1025
|
if ("composedPath" in e) return e.composedPath()[0] ?? null;
|
|
1026
1026
|
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
|
|
1027
1027
|
}
|
|
@@ -1029,7 +1029,7 @@ function q(e) {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
function Mr(e) {
|
|
1031
1031
|
if (!e) return !1;
|
|
1032
|
-
let t = e.getRootNode(), n =
|
|
1032
|
+
let t = e.getRootNode(), n = G(e);
|
|
1033
1033
|
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
|
|
1034
1034
|
let r = t.activeElement;
|
|
1035
1035
|
return r != null && e.contains(r);
|
|
@@ -1061,7 +1061,7 @@ function J(...e) {
|
|
|
1061
1061
|
let r = e[n];
|
|
1062
1062
|
for (let e in r) {
|
|
1063
1063
|
let n = t[e], i = r[e];
|
|
1064
|
-
typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] =
|
|
1064
|
+
typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = Er(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = N(n, i) : e === "id" && n && i ? t.id = wr(n, i) : e === "ref" && n && i ? t.ref = Nr(n, i) : t[e] = i === void 0 ? n : i;
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
return t;
|
|
@@ -1221,7 +1221,7 @@ function li(e) {
|
|
|
1221
1221
|
//#endregion
|
|
1222
1222
|
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs
|
|
1223
1223
|
function ui() {
|
|
1224
|
-
let e = (0,
|
|
1224
|
+
let e = (0, z.useRef)(/* @__PURE__ */ new Map()), t = (0, z.useCallback)((t, n, r, i) => {
|
|
1225
1225
|
let a = i?.once ? (...t) => {
|
|
1226
1226
|
e.current.delete(r), r(...t);
|
|
1227
1227
|
} : r;
|
|
@@ -1231,15 +1231,15 @@ function ui() {
|
|
|
1231
1231
|
fn: a,
|
|
1232
1232
|
options: i
|
|
1233
1233
|
}), t.addEventListener(n, a, i);
|
|
1234
|
-
}, []), n = (0,
|
|
1234
|
+
}, []), n = (0, z.useCallback)((t, n, r, i) => {
|
|
1235
1235
|
let a = e.current.get(r)?.fn || r;
|
|
1236
1236
|
t.removeEventListener(n, a, i), e.current.delete(r);
|
|
1237
|
-
}, []), r = (0,
|
|
1237
|
+
}, []), r = (0, z.useCallback)(() => {
|
|
1238
1238
|
e.current.forEach((e, t) => {
|
|
1239
1239
|
n(e.eventTarget, e.type, t, e.options);
|
|
1240
1240
|
});
|
|
1241
1241
|
}, [n]);
|
|
1242
|
-
return (0,
|
|
1242
|
+
return (0, z.useEffect)(() => r, [r]), {
|
|
1243
1243
|
addGlobalListener: t,
|
|
1244
1244
|
removeGlobalListener: n,
|
|
1245
1245
|
removeAllGlobalListeners: r
|
|
@@ -1249,7 +1249,7 @@ function ui() {
|
|
|
1249
1249
|
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/utils/dist/useLabels.mjs
|
|
1250
1250
|
function di(e, t) {
|
|
1251
1251
|
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
|
|
1252
|
-
return n =
|
|
1252
|
+
return n = Cr(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
|
|
1253
1253
|
id: n,
|
|
1254
1254
|
"aria-label": r,
|
|
1255
1255
|
"aria-labelledby": i
|
|
@@ -1258,7 +1258,7 @@ function di(e, t) {
|
|
|
1258
1258
|
//#endregion
|
|
1259
1259
|
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/utils/dist/useObjectRef.mjs
|
|
1260
1260
|
function fi(e) {
|
|
1261
|
-
let t = (0,
|
|
1261
|
+
let t = (0, z.useRef)(null), n = (0, z.useRef)(void 0), r = (0, z.useCallback)((t) => {
|
|
1262
1262
|
if (typeof e == "function") {
|
|
1263
1263
|
let n = e, r = n(t);
|
|
1264
1264
|
return () => {
|
|
@@ -1269,7 +1269,7 @@ function fi(e) {
|
|
|
1269
1269
|
e.current = null;
|
|
1270
1270
|
};
|
|
1271
1271
|
}, [e]);
|
|
1272
|
-
return (0,
|
|
1272
|
+
return (0, z.useMemo)(() => ({
|
|
1273
1273
|
get current() {
|
|
1274
1274
|
return t.current;
|
|
1275
1275
|
},
|
|
@@ -1280,12 +1280,12 @@ function fi(e) {
|
|
|
1280
1280
|
}
|
|
1281
1281
|
//#endregion
|
|
1282
1282
|
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/utils/dist/useEffectEvent.mjs
|
|
1283
|
-
var pi =
|
|
1283
|
+
var pi = z.useInsertionEffect ?? U;
|
|
1284
1284
|
function Y(e) {
|
|
1285
|
-
let t = (0,
|
|
1285
|
+
let t = (0, z.useRef)(null);
|
|
1286
1286
|
return pi(() => {
|
|
1287
1287
|
t.current = e;
|
|
1288
|
-
}, [e]), (0,
|
|
1288
|
+
}, [e]), (0, z.useCallback)((...e) => {
|
|
1289
1289
|
let n = t.current;
|
|
1290
1290
|
return n?.(...e);
|
|
1291
1291
|
}, []);
|
|
@@ -1293,7 +1293,7 @@ function Y(e) {
|
|
|
1293
1293
|
//#endregion
|
|
1294
1294
|
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/utils/dist/useSyncRef.mjs
|
|
1295
1295
|
function mi(e, t) {
|
|
1296
|
-
|
|
1296
|
+
U(() => {
|
|
1297
1297
|
if (e && e.ref && t) return e.ref.current = t.current, () => {
|
|
1298
1298
|
e.ref && (e.ref.current = null);
|
|
1299
1299
|
};
|
|
@@ -1303,7 +1303,7 @@ function mi(e, t) {
|
|
|
1303
1303
|
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/utils/dist/useEvent.mjs
|
|
1304
1304
|
function hi(e, t, n, r) {
|
|
1305
1305
|
let i = Y(n), a = n == null;
|
|
1306
|
-
(0,
|
|
1306
|
+
(0, z.useEffect)(() => {
|
|
1307
1307
|
if (a || !e.current) return;
|
|
1308
1308
|
let n = e.current;
|
|
1309
1309
|
return n.addEventListener(t, i, r), () => {
|
|
@@ -1330,7 +1330,7 @@ function vi(e, t, n) {
|
|
|
1330
1330
|
let r = Y(() => {
|
|
1331
1331
|
n && n(t);
|
|
1332
1332
|
});
|
|
1333
|
-
(0,
|
|
1333
|
+
(0, z.useEffect)(() => {
|
|
1334
1334
|
let t = e?.current?.form;
|
|
1335
1335
|
return t?.addEventListener("reset", r), () => {
|
|
1336
1336
|
t?.removeEventListener("reset", r);
|
|
@@ -1341,7 +1341,7 @@ function vi(e, t, n) {
|
|
|
1341
1341
|
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/utils/dist/isElementVisible.mjs
|
|
1342
1342
|
var yi = typeof Element < "u" && "checkVisibility" in Element.prototype;
|
|
1343
1343
|
function bi(e) {
|
|
1344
|
-
let t =
|
|
1344
|
+
let t = G(e);
|
|
1345
1345
|
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
|
|
1346
1346
|
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
|
|
1347
1347
|
if (i) {
|
|
@@ -1392,18 +1392,18 @@ function Oi(e) {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
//#endregion
|
|
1394
1394
|
//#region ../node_modules/.pnpm/@react-stately+utils@3.11.0_react@19.2.4/node_modules/@react-stately/utils/dist/useControlledState.mjs
|
|
1395
|
-
var ki = typeof document < "u" ?
|
|
1395
|
+
var ki = typeof document < "u" ? z.useInsertionEffect ?? z.useLayoutEffect : () => {};
|
|
1396
1396
|
function Ai(e, t, n) {
|
|
1397
|
-
let [r, i] = (0,
|
|
1398
|
-
(0,
|
|
1397
|
+
let [r, i] = (0, z.useState)(e || t), a = (0, z.useRef)(r), o = (0, z.useRef)(e !== void 0), s = e !== void 0;
|
|
1398
|
+
(0, z.useEffect)(() => {
|
|
1399
1399
|
o.current, o.current = s;
|
|
1400
1400
|
}, [s]);
|
|
1401
1401
|
let c = s ? e : r;
|
|
1402
1402
|
ki(() => {
|
|
1403
1403
|
a.current = c;
|
|
1404
1404
|
});
|
|
1405
|
-
let [, l] = (0,
|
|
1406
|
-
return [c, (0,
|
|
1405
|
+
let [, l] = (0, z.useReducer)(() => ({}), {});
|
|
1406
|
+
return [c, (0, z.useCallback)((e, ...t) => {
|
|
1407
1407
|
let r = typeof e == "function" ? e(a.current) : e;
|
|
1408
1408
|
Object.is(a.current, r) || (a.current = r, i(r), l(), n?.(r, ...t));
|
|
1409
1409
|
}, [n])];
|
|
@@ -1441,16 +1441,16 @@ function Fi(e, t) {
|
|
|
1441
1441
|
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
|
|
1442
1442
|
}
|
|
1443
1443
|
function Ii(e) {
|
|
1444
|
-
let t = (0,
|
|
1444
|
+
let t = (0, z.useRef)({
|
|
1445
1445
|
isFocused: !1,
|
|
1446
1446
|
observer: null
|
|
1447
1447
|
});
|
|
1448
|
-
return
|
|
1448
|
+
return U(() => {
|
|
1449
1449
|
let e = t.current;
|
|
1450
1450
|
return () => {
|
|
1451
1451
|
e.observer &&= (e.observer.disconnect(), null);
|
|
1452
1452
|
};
|
|
1453
|
-
}, []), (0,
|
|
1453
|
+
}, []), (0, z.useCallback)((n) => {
|
|
1454
1454
|
let r = q(n);
|
|
1455
1455
|
if (r instanceof HTMLButtonElement || r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement) {
|
|
1456
1456
|
t.current.isFocused = !0;
|
|
@@ -1465,7 +1465,7 @@ function Ii(e) {
|
|
|
1465
1465
|
if (t.current.isFocused && n.disabled) {
|
|
1466
1466
|
var e;
|
|
1467
1467
|
(e = t.current.observer) == null || e.disconnect();
|
|
1468
|
-
let r = n ===
|
|
1468
|
+
let r = n === jr() ? null : jr();
|
|
1469
1469
|
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: r })), n.dispatchEvent(new FocusEvent("focusout", {
|
|
1470
1470
|
bubbles: !0,
|
|
1471
1471
|
relatedTarget: r
|
|
@@ -1481,7 +1481,7 @@ function Ii(e) {
|
|
|
1481
1481
|
var Li = !1;
|
|
1482
1482
|
function Ri(e) {
|
|
1483
1483
|
for (; e && !Ei(e);) e = e.parentElement;
|
|
1484
|
-
let t =
|
|
1484
|
+
let t = G(e), n = t.document.activeElement;
|
|
1485
1485
|
if (!n || n === e) return;
|
|
1486
1486
|
Li = !0;
|
|
1487
1487
|
let r = !1, i = (e) => {
|
|
@@ -1505,7 +1505,7 @@ var zi = "default", Bi = "", Vi = /* @__PURE__ */ new WeakMap();
|
|
|
1505
1505
|
function Hi(e) {
|
|
1506
1506
|
if ($r()) {
|
|
1507
1507
|
if (zi === "default") {
|
|
1508
|
-
let t =
|
|
1508
|
+
let t = W(e);
|
|
1509
1509
|
Bi = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
|
|
1510
1510
|
}
|
|
1511
1511
|
zi = "disabled";
|
|
@@ -1520,7 +1520,7 @@ function Ui(e) {
|
|
|
1520
1520
|
zi = "restoring", setTimeout(() => {
|
|
1521
1521
|
li(() => {
|
|
1522
1522
|
if (zi === "restoring") {
|
|
1523
|
-
let t =
|
|
1523
|
+
let t = W(e);
|
|
1524
1524
|
t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Bi || ""), Bi = "", zi = "default";
|
|
1525
1525
|
}
|
|
1526
1526
|
});
|
|
@@ -1532,7 +1532,7 @@ function Ui(e) {
|
|
|
1532
1532
|
}
|
|
1533
1533
|
//#endregion
|
|
1534
1534
|
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/interactions/dist/context.mjs
|
|
1535
|
-
var Wi =
|
|
1535
|
+
var Wi = z.createContext({ register: () => {} });
|
|
1536
1536
|
Wi.displayName = "PressResponderContext";
|
|
1537
1537
|
//#endregion
|
|
1538
1538
|
//#region ../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.js
|
|
@@ -1576,9 +1576,9 @@ function Zi(e, t, n) {
|
|
|
1576
1576
|
}
|
|
1577
1577
|
//#endregion
|
|
1578
1578
|
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/interactions/dist/usePress.mjs
|
|
1579
|
-
var Qi = /* @__PURE__ */ e(
|
|
1579
|
+
var Qi = /* @__PURE__ */ e(P(), 1);
|
|
1580
1580
|
function $i(e) {
|
|
1581
|
-
let t = (0,
|
|
1581
|
+
let t = (0, z.useContext)(Wi);
|
|
1582
1582
|
if (t) {
|
|
1583
1583
|
let { register: n, ref: r, ...i } = t;
|
|
1584
1584
|
e = J(i, e), n();
|
|
@@ -1602,7 +1602,7 @@ var ea = /*#__PURE__*/ new WeakMap(), ta = class {
|
|
|
1602
1602
|
}
|
|
1603
1603
|
}, na = Symbol("linkClicked"), ra = "react-aria-pressable-style", ia = "data-react-aria-pressable";
|
|
1604
1604
|
function aa(e) {
|
|
1605
|
-
let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = $i(e), [m, h] = (0,
|
|
1605
|
+
let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = $i(e), [m, h] = (0, z.useState)(!1), g = (0, z.useRef)({
|
|
1606
1606
|
isPressed: !1,
|
|
1607
1607
|
ignoreEmulatedMouseEvents: !1,
|
|
1608
1608
|
didFirePressStart: !1,
|
|
@@ -1612,7 +1612,7 @@ function aa(e) {
|
|
|
1612
1612
|
isOverTarget: !1,
|
|
1613
1613
|
pointerType: null,
|
|
1614
1614
|
disposables: []
|
|
1615
|
-
}), { addGlobalListener: _, removeAllGlobalListeners: v, removeGlobalListener: y } = ui(), b = (0,
|
|
1615
|
+
}), { addGlobalListener: _, removeAllGlobalListeners: v, removeGlobalListener: y } = ui(), b = (0, z.useCallback)((e, t) => {
|
|
1616
1616
|
let i = g.current;
|
|
1617
1617
|
if (s || i.didFirePressStart) return !1;
|
|
1618
1618
|
let a = !0;
|
|
@@ -1625,7 +1625,7 @@ function aa(e) {
|
|
|
1625
1625
|
s,
|
|
1626
1626
|
r,
|
|
1627
1627
|
n
|
|
1628
|
-
]), x = (0,
|
|
1628
|
+
]), x = (0, z.useCallback)((e, r, a = !0) => {
|
|
1629
1629
|
let o = g.current;
|
|
1630
1630
|
if (!o.didFirePressStart) return !1;
|
|
1631
1631
|
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
|
|
@@ -1644,7 +1644,7 @@ function aa(e) {
|
|
|
1644
1644
|
i,
|
|
1645
1645
|
n,
|
|
1646
1646
|
t
|
|
1647
|
-
]), S = Y(x), C = (0,
|
|
1647
|
+
]), S = Y(x), C = (0, z.useCallback)((e, t) => {
|
|
1648
1648
|
let n = g.current;
|
|
1649
1649
|
if (s) return !1;
|
|
1650
1650
|
if (a) {
|
|
@@ -1653,10 +1653,10 @@ function aa(e) {
|
|
|
1653
1653
|
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
|
|
1654
1654
|
}
|
|
1655
1655
|
return !0;
|
|
1656
|
-
}, [s, a]),
|
|
1656
|
+
}, [s, a]), w = Y(C), T = (0, z.useCallback)((e) => {
|
|
1657
1657
|
let t = g.current;
|
|
1658
1658
|
if (t.isPressed && t.target) {
|
|
1659
|
-
t.didFirePressStart && t.pointerType != null && x(ca(t.target, e), t.pointerType, !1), t.isPressed = !1,
|
|
1659
|
+
t.didFirePressStart && t.pointerType != null && x(ca(t.target, e), t.pointerType, !1), t.isPressed = !1, P(null), t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Ui(t.target);
|
|
1660
1660
|
for (let e of t.disposables) e();
|
|
1661
1661
|
t.disposables = [];
|
|
1662
1662
|
}
|
|
@@ -1664,96 +1664,96 @@ function aa(e) {
|
|
|
1664
1664
|
d,
|
|
1665
1665
|
v,
|
|
1666
1666
|
x
|
|
1667
|
-
]),
|
|
1668
|
-
u &&
|
|
1669
|
-
}, [u,
|
|
1667
|
+
]), E = Y(T), D = (0, z.useCallback)((e) => {
|
|
1668
|
+
u && T(e);
|
|
1669
|
+
}, [u, T]), O = (0, z.useCallback)((e) => {
|
|
1670
1670
|
s || o?.(e);
|
|
1671
|
-
}, [s, o]),
|
|
1671
|
+
}, [s, o]), k = (0, z.useCallback)((e, t) => {
|
|
1672
1672
|
if (!s && o) {
|
|
1673
1673
|
let n = new MouseEvent("click", e);
|
|
1674
1674
|
Fi(n, t), o(Pi(n));
|
|
1675
1675
|
}
|
|
1676
|
-
}, [s, o]),
|
|
1677
|
-
|
|
1676
|
+
}, [s, o]), A = Y(k), [j, M] = (0, z.useState)(!1);
|
|
1677
|
+
U(() => {
|
|
1678
1678
|
let e = g.current;
|
|
1679
|
-
if (
|
|
1679
|
+
if (j) {
|
|
1680
1680
|
let t = (t) => {
|
|
1681
1681
|
if (e.isPressed && e.target && sa(t, e.target)) {
|
|
1682
1682
|
var n;
|
|
1683
1683
|
ua(q(t), t.key) && t.preventDefault();
|
|
1684
|
-
let r = q(t), i =
|
|
1685
|
-
S(ca(e.target, t), "keyboard", i), i &&
|
|
1684
|
+
let r = q(t), i = K(e.target, r);
|
|
1685
|
+
S(ca(e.target, t), "keyboard", i), i && A(t, e.target), v(), t.key !== "Enter" && oa(e.target) && K(e.target, r) && !t[na] && (t[na] = !0, ii(e.target, t, !1)), e.isPressed = !1, M(!1), (n = e.metaKeyEvents) == null || n.delete(t.key);
|
|
1686
1686
|
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
|
|
1687
1687
|
var r;
|
|
1688
1688
|
let t = e.metaKeyEvents;
|
|
1689
1689
|
e.metaKeyEvents = void 0;
|
|
1690
1690
|
for (let n of t.values()) (r = e.target) == null || r.dispatchEvent(new KeyboardEvent("keyup", n));
|
|
1691
1691
|
}
|
|
1692
|
-
}, n = e.target, r =
|
|
1693
|
-
n && sa(t, n) && !t.repeat &&
|
|
1692
|
+
}, n = e.target, r = Er((t) => {
|
|
1693
|
+
n && sa(t, n) && !t.repeat && K(n, q(t)) && e.target && w(ca(e.target, t), "keyboard");
|
|
1694
1694
|
}, t);
|
|
1695
|
-
return _(
|
|
1696
|
-
y(
|
|
1695
|
+
return _(W(e.target), "keyup", r, !0), () => {
|
|
1696
|
+
y(W(e.target), "keyup", r, !0);
|
|
1697
1697
|
};
|
|
1698
1698
|
}
|
|
1699
1699
|
}, [
|
|
1700
|
-
|
|
1700
|
+
j,
|
|
1701
1701
|
_,
|
|
1702
1702
|
v,
|
|
1703
1703
|
y
|
|
1704
1704
|
]);
|
|
1705
|
-
let [
|
|
1706
|
-
|
|
1705
|
+
let [N, P] = (0, z.useState)(null);
|
|
1706
|
+
U(() => {
|
|
1707
1707
|
let e = g.current;
|
|
1708
|
-
if (
|
|
1708
|
+
if (N === "pointer") {
|
|
1709
1709
|
let t = (t) => {
|
|
1710
1710
|
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
|
|
1711
|
-
if (
|
|
1711
|
+
if (K(e.target, q(t)) && e.pointerType != null) {
|
|
1712
1712
|
let n = !1, r = setTimeout(() => {
|
|
1713
|
-
e.isPressed && e.target instanceof HTMLElement && (n ?
|
|
1713
|
+
e.isPressed && e.target instanceof HTMLElement && (n ? E(t) : (Hr(e.target), e.target.click()));
|
|
1714
1714
|
}, 80);
|
|
1715
1715
|
t.currentTarget && _(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
|
|
1716
|
-
} else
|
|
1716
|
+
} else E(t);
|
|
1717
1717
|
e.isOverTarget = !1;
|
|
1718
1718
|
}
|
|
1719
1719
|
}, n = (e) => {
|
|
1720
|
-
|
|
1720
|
+
E(e);
|
|
1721
1721
|
};
|
|
1722
|
-
return _(
|
|
1723
|
-
y(
|
|
1722
|
+
return _(W(e.target), "pointerup", t, !1), _(W(e.target), "pointercancel", n, !1), () => {
|
|
1723
|
+
y(W(e.target), "pointerup", t, !1), y(W(e.target), "pointercancel", n, !1);
|
|
1724
1724
|
};
|
|
1725
1725
|
}
|
|
1726
1726
|
}, [
|
|
1727
|
-
|
|
1727
|
+
N,
|
|
1728
1728
|
_,
|
|
1729
1729
|
y
|
|
1730
1730
|
]);
|
|
1731
|
-
let
|
|
1731
|
+
let F = (0, z.useMemo)(() => {
|
|
1732
1732
|
let e = g.current, t = {
|
|
1733
1733
|
onKeyDown(t) {
|
|
1734
|
-
if (sa(t.nativeEvent, t.currentTarget) &&
|
|
1734
|
+
if (sa(t.nativeEvent, t.currentTarget) && K(t.currentTarget, q(t))) {
|
|
1735
1735
|
var n;
|
|
1736
1736
|
ua(q(t), t.key) && t.preventDefault();
|
|
1737
1737
|
let r = !0;
|
|
1738
|
-
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0,
|
|
1738
|
+
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, M(!0), e.pointerType = "keyboard", r = b(t, "keyboard")), r && t.stopPropagation(), t.metaKey && Xr() && ((n = e.metaKeyEvents) == null || n.set(t.key, t.nativeEvent));
|
|
1739
1739
|
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
1740
1740
|
},
|
|
1741
1741
|
onClick(t) {
|
|
1742
|
-
if (!(t && !
|
|
1742
|
+
if (!(t && !K(t.currentTarget, q(t))) && t && t.button === 0 && !e.isTriggeringEvent && !ii.isOpening) {
|
|
1743
1743
|
let n = !0;
|
|
1744
1744
|
if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || gi(t.nativeEvent))) {
|
|
1745
1745
|
let e = b(t, "virtual"), r = C(t, "virtual"), i = x(t, "virtual");
|
|
1746
|
-
|
|
1746
|
+
O(t), n = e && r && i;
|
|
1747
1747
|
} else if (e.isPressed && e.pointerType !== "keyboard") {
|
|
1748
1748
|
let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = C(ca(t.currentTarget, t), r), a = x(ca(t.currentTarget, t), r, !0);
|
|
1749
|
-
n = i && a, e.isOverTarget = !1,
|
|
1749
|
+
n = i && a, e.isOverTarget = !1, O(t), T(t);
|
|
1750
1750
|
}
|
|
1751
1751
|
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
|
|
1752
1752
|
}
|
|
1753
1753
|
}
|
|
1754
1754
|
};
|
|
1755
1755
|
return typeof PointerEvent < "u" && (t.onPointerDown = (t) => {
|
|
1756
|
-
if (t.button !== 0 || !
|
|
1756
|
+
if (t.button !== 0 || !K(t.currentTarget, q(t))) return;
|
|
1757
1757
|
if (_i(t.nativeEvent)) {
|
|
1758
1758
|
e.pointerType = "virtual";
|
|
1759
1759
|
return;
|
|
@@ -1761,13 +1761,13 @@ function aa(e) {
|
|
|
1761
1761
|
e.pointerType = t.pointerType;
|
|
1762
1762
|
let n = !0;
|
|
1763
1763
|
if (!e.isPressed) {
|
|
1764
|
-
e.isPressed = !0,
|
|
1764
|
+
e.isPressed = !0, P("pointer"), e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Hi(e.target), n = b(t, e.pointerType);
|
|
1765
1765
|
let r = q(t);
|
|
1766
1766
|
"releasePointerCapture" in r && ("hasPointerCapture" in r ? r.hasPointerCapture(t.pointerId) && r.releasePointerCapture(t.pointerId) : r.releasePointerCapture(t.pointerId));
|
|
1767
1767
|
}
|
|
1768
1768
|
n && t.stopPropagation();
|
|
1769
1769
|
}, t.onMouseDown = (t) => {
|
|
1770
|
-
if (
|
|
1770
|
+
if (K(t.currentTarget, q(t)) && t.button === 0) {
|
|
1771
1771
|
if (l) {
|
|
1772
1772
|
let n = Ri(t.target);
|
|
1773
1773
|
n && e.disposables.push(n);
|
|
@@ -1775,30 +1775,30 @@ function aa(e) {
|
|
|
1775
1775
|
t.stopPropagation();
|
|
1776
1776
|
}
|
|
1777
1777
|
}, t.onPointerUp = (t) => {
|
|
1778
|
-
!
|
|
1778
|
+
!K(t.currentTarget, q(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && C(t, e.pointerType || t.pointerType);
|
|
1779
1779
|
}, t.onPointerEnter = (t) => {
|
|
1780
1780
|
t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, b(ca(e.target, t), e.pointerType));
|
|
1781
1781
|
}, t.onPointerLeave = (t) => {
|
|
1782
|
-
t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(ca(e.target, t), e.pointerType, !1),
|
|
1782
|
+
t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(ca(e.target, t), e.pointerType, !1), D(t));
|
|
1783
1783
|
}, t.onDragStart = (e) => {
|
|
1784
|
-
|
|
1784
|
+
K(e.currentTarget, q(e)) && T(e);
|
|
1785
1785
|
}), t;
|
|
1786
1786
|
}, [
|
|
1787
1787
|
s,
|
|
1788
1788
|
l,
|
|
1789
1789
|
v,
|
|
1790
1790
|
d,
|
|
1791
|
-
|
|
1792
|
-
|
|
1791
|
+
T,
|
|
1792
|
+
D,
|
|
1793
1793
|
x,
|
|
1794
1794
|
b,
|
|
1795
1795
|
C,
|
|
1796
|
-
|
|
1797
|
-
|
|
1796
|
+
O,
|
|
1797
|
+
k
|
|
1798
1798
|
]);
|
|
1799
|
-
return (0,
|
|
1799
|
+
return (0, z.useEffect)(() => {
|
|
1800
1800
|
if (!f) return;
|
|
1801
|
-
let e =
|
|
1801
|
+
let e = W(f.current);
|
|
1802
1802
|
if (!e || !e.head || e.getElementById(ra)) return;
|
|
1803
1803
|
let t = e.createElement("style");
|
|
1804
1804
|
t.id = ra, t.textContent = `
|
|
@@ -1808,7 +1808,7 @@ function aa(e) {
|
|
|
1808
1808
|
}
|
|
1809
1809
|
}
|
|
1810
1810
|
`.trim(), e.head.prepend(t);
|
|
1811
|
-
}, [f]), (0,
|
|
1811
|
+
}, [f]), (0, z.useEffect)(() => {
|
|
1812
1812
|
let e = g.current;
|
|
1813
1813
|
return () => {
|
|
1814
1814
|
d || Ui(e.target ?? void 0);
|
|
@@ -1817,7 +1817,7 @@ function aa(e) {
|
|
|
1817
1817
|
};
|
|
1818
1818
|
}, [d]), {
|
|
1819
1819
|
isPressed: c || m,
|
|
1820
|
-
pressProps: J(p,
|
|
1820
|
+
pressProps: J(p, F, { [ia]: !0 })
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
1823
|
function oa(e) {
|
|
@@ -1825,7 +1825,7 @@ function oa(e) {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
function sa(e, t) {
|
|
1827
1827
|
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
|
|
1828
|
-
return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof
|
|
1828
|
+
return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof G(i).HTMLInputElement && !fa(i, n) || i instanceof G(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && oa(i)) && n !== "Enter");
|
|
1829
1829
|
}
|
|
1830
1830
|
function ca(e, t) {
|
|
1831
1831
|
let n = t.clientX, r = t.clientY;
|
|
@@ -1888,8 +1888,8 @@ function Ta() {
|
|
|
1888
1888
|
Li || (ga = !1, _a = !0);
|
|
1889
1889
|
}
|
|
1890
1890
|
function Ea(e) {
|
|
1891
|
-
if (typeof window > "u" || typeof document > "u" || ha.get(
|
|
1892
|
-
let t =
|
|
1891
|
+
if (typeof window > "u" || typeof document > "u" || ha.get(G(e))) return;
|
|
1892
|
+
let t = G(e), n = W(e), r = t.HTMLElement.prototype.focus;
|
|
1893
1893
|
t.HTMLElement.prototype.focus = function() {
|
|
1894
1894
|
ga = !0, r.apply(this, arguments);
|
|
1895
1895
|
}, n.addEventListener("keydown", xa, !0), n.addEventListener("keyup", xa, !0), n.addEventListener("click", Ca, !0), t.addEventListener("focus", wa, !0), t.addEventListener("blur", Ta, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Sa, !0), n.addEventListener("pointermove", Sa, !0), n.addEventListener("pointerup", Sa, !0)), t.addEventListener("beforeunload", () => {
|
|
@@ -1897,11 +1897,11 @@ function Ea(e) {
|
|
|
1897
1897
|
}, { once: !0 }), ha.set(t, { focus: r });
|
|
1898
1898
|
}
|
|
1899
1899
|
var Da = (e, t) => {
|
|
1900
|
-
let n =
|
|
1900
|
+
let n = G(e), r = W(e);
|
|
1901
1901
|
t && r.removeEventListener("DOMContentLoaded", t), ha.has(n) && (n.HTMLElement.prototype.focus = ha.get(n).focus, r.removeEventListener("keydown", xa, !0), r.removeEventListener("keyup", xa, !0), r.removeEventListener("click", Ca, !0), n.removeEventListener("focus", wa, !0), n.removeEventListener("blur", Ta, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Sa, !0), r.removeEventListener("pointermove", Sa, !0), r.removeEventListener("pointerup", Sa, !0)), ha.delete(n));
|
|
1902
1902
|
};
|
|
1903
1903
|
function Oa(e) {
|
|
1904
|
-
let t =
|
|
1904
|
+
let t = W(e), n;
|
|
1905
1905
|
return t.readyState === "loading" ? (n = () => {
|
|
1906
1906
|
Ea(e);
|
|
1907
1907
|
}, t.addEventListener("DOMContentLoaded", n)) : Ea(e), () => Da(e, n);
|
|
@@ -1928,11 +1928,11 @@ var Ma = /* @__PURE__ */ new Set([
|
|
|
1928
1928
|
"reset"
|
|
1929
1929
|
]);
|
|
1930
1930
|
function Na(e, t, n) {
|
|
1931
|
-
let r =
|
|
1931
|
+
let r = W(n ? q(n) : void 0), i = n ? q(n) : void 0, a = typeof window < "u" ? G(i).HTMLInputElement : HTMLInputElement, o = typeof window < "u" ? G(i).HTMLTextAreaElement : HTMLTextAreaElement, s = typeof window < "u" ? G(i).HTMLElement : HTMLElement, c = typeof window < "u" ? G(i).KeyboardEvent : KeyboardEvent, l = jr(r);
|
|
1932
1932
|
return e = e || l instanceof a && !Ma.has(l.type) || l instanceof o || l instanceof s && l.isContentEditable, !(e && t === "keyboard" && n instanceof c && !va[n.key]);
|
|
1933
1933
|
}
|
|
1934
1934
|
function Pa(e, t, n) {
|
|
1935
|
-
Ea(), (0,
|
|
1935
|
+
Ea(), (0, z.useEffect)(() => {
|
|
1936
1936
|
if (n?.enabled === !1) return;
|
|
1937
1937
|
let t = (t, r) => {
|
|
1938
1938
|
Na(!!n?.isTextInput, t, r) && e(ka());
|
|
@@ -1946,11 +1946,11 @@ function Pa(e, t, n) {
|
|
|
1946
1946
|
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/interactions/dist/focusSafely.mjs
|
|
1947
1947
|
function Fa(e) {
|
|
1948
1948
|
if (!e.isConnected) return;
|
|
1949
|
-
let t =
|
|
1949
|
+
let t = W(e);
|
|
1950
1950
|
if (Aa() === "virtual") {
|
|
1951
|
-
let n =
|
|
1951
|
+
let n = jr(t);
|
|
1952
1952
|
li(() => {
|
|
1953
|
-
let r =
|
|
1953
|
+
let r = jr(t);
|
|
1954
1954
|
(r === n || r === t.body) && e.isConnected && Hr(e);
|
|
1955
1955
|
});
|
|
1956
1956
|
} else Hr(e);
|
|
@@ -1958,10 +1958,10 @@ function Fa(e) {
|
|
|
1958
1958
|
//#endregion
|
|
1959
1959
|
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/interactions/dist/useFocus.mjs
|
|
1960
1960
|
function Ia(e) {
|
|
1961
|
-
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0,
|
|
1961
|
+
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, z.useCallback)((e) => {
|
|
1962
1962
|
if (q(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
|
|
1963
|
-
}, [r, i]), o = Ii(a), s = (0,
|
|
1964
|
-
let t = q(e), r =
|
|
1963
|
+
}, [r, i]), o = Ii(a), s = (0, z.useCallback)((e) => {
|
|
1964
|
+
let t = q(e), r = W(t), a = r ? jr(r) : jr();
|
|
1965
1965
|
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
|
|
1966
1966
|
}, [
|
|
1967
1967
|
i,
|
|
@@ -2009,16 +2009,16 @@ function Ra(e) {
|
|
|
2009
2009
|
}
|
|
2010
2010
|
//#endregion
|
|
2011
2011
|
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/interactions/dist/useFocusable.mjs
|
|
2012
|
-
var za = /*#__PURE__*/
|
|
2012
|
+
var za = /*#__PURE__*/ z.createContext(null);
|
|
2013
2013
|
function Ba(e) {
|
|
2014
|
-
let t = (0,
|
|
2014
|
+
let t = (0, z.useContext)(za) || {};
|
|
2015
2015
|
mi(t, e);
|
|
2016
2016
|
let { ref: n, ...r } = t;
|
|
2017
2017
|
return r;
|
|
2018
2018
|
}
|
|
2019
2019
|
function Va(e, t) {
|
|
2020
|
-
let { focusProps: n } = Ia(e), { keyboardProps: r } = Ra(e), i = J(n, r), a = Ba(t), o = e.isDisabled ? {} : a, s = (0,
|
|
2021
|
-
(0,
|
|
2020
|
+
let { focusProps: n } = Ia(e), { keyboardProps: r } = Ra(e), i = J(n, r), a = Ba(t), o = e.isDisabled ? {} : a, s = (0, z.useRef)(e.autoFocus);
|
|
2021
|
+
(0, z.useEffect)(() => {
|
|
2022
2022
|
s.current && t.current && Fa(t.current), s.current = !1;
|
|
2023
2023
|
}, [t]);
|
|
2024
2024
|
let c = e.excludeFromTabOrder ? -1 : 0;
|
|
@@ -2030,22 +2030,22 @@ function Va(e, t) {
|
|
|
2030
2030
|
//#endregion
|
|
2031
2031
|
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/interactions/dist/useFocusWithin.mjs
|
|
2032
2032
|
function Ha(e) {
|
|
2033
|
-
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0,
|
|
2034
|
-
|
|
2033
|
+
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, z.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = ui(), c = (0, z.useCallback)((e) => {
|
|
2034
|
+
K(e.currentTarget, q(e)) && a.current.isFocusWithin && !K(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
|
|
2035
2035
|
}, [
|
|
2036
2036
|
n,
|
|
2037
2037
|
i,
|
|
2038
2038
|
a,
|
|
2039
2039
|
s
|
|
2040
|
-
]), l = Ii(c), u = (0,
|
|
2041
|
-
if (!
|
|
2042
|
-
let t = q(e), n =
|
|
2040
|
+
]), l = Ii(c), u = (0, z.useCallback)((e) => {
|
|
2041
|
+
if (!K(e.currentTarget, q(e))) return;
|
|
2042
|
+
let t = q(e), n = W(t), s = jr(n);
|
|
2043
2043
|
if (!a.current.isFocusWithin && s === t) {
|
|
2044
2044
|
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
|
|
2045
2045
|
let t = e.currentTarget;
|
|
2046
2046
|
o(n, "focus", (e) => {
|
|
2047
2047
|
let r = q(e);
|
|
2048
|
-
if (a.current.isFocusWithin && !
|
|
2048
|
+
if (a.current.isFocusWithin && !K(t, r)) {
|
|
2049
2049
|
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
|
|
2050
2050
|
Fi(e, t);
|
|
2051
2051
|
let i = Pi(e);
|
|
@@ -2085,20 +2085,20 @@ function qa() {
|
|
|
2085
2085
|
};
|
|
2086
2086
|
}
|
|
2087
2087
|
function Ja(e) {
|
|
2088
|
-
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0,
|
|
2088
|
+
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, z.useState)(!1), s = (0, z.useRef)({
|
|
2089
2089
|
isHovered: !1,
|
|
2090
2090
|
ignoreEmulatedMouseEvents: !1,
|
|
2091
2091
|
pointerType: "",
|
|
2092
2092
|
target: null
|
|
2093
2093
|
}).current;
|
|
2094
|
-
(0,
|
|
2095
|
-
let { addGlobalListener: c, removeAllGlobalListeners: l } = ui(), { hoverProps: u, triggerHoverEnd: d } = (0,
|
|
2094
|
+
(0, z.useEffect)(qa, []);
|
|
2095
|
+
let { addGlobalListener: c, removeAllGlobalListeners: l } = ui(), { hoverProps: u, triggerHoverEnd: d } = (0, z.useMemo)(() => {
|
|
2096
2096
|
let e = (e, r) => {
|
|
2097
|
-
if (s.pointerType = r, i || r === "touch" || s.isHovered || !
|
|
2097
|
+
if (s.pointerType = r, i || r === "touch" || s.isHovered || !K(e.currentTarget, q(e))) return;
|
|
2098
2098
|
s.isHovered = !0;
|
|
2099
2099
|
let l = e.currentTarget;
|
|
2100
|
-
s.target = l, c(
|
|
2101
|
-
s.isHovered && s.target && !
|
|
2100
|
+
s.target = l, c(W(q(e)), "pointerover", (e) => {
|
|
2101
|
+
s.isHovered && s.target && !K(s.target, q(e)) && a(e, e.pointerType);
|
|
2102
2102
|
}, { capture: !0 }), t && t({
|
|
2103
2103
|
type: "hoverstart",
|
|
2104
2104
|
target: l,
|
|
@@ -2115,7 +2115,7 @@ function Ja(e) {
|
|
|
2115
2115
|
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
|
|
2116
2116
|
Ua && t.pointerType === "mouse" || e(t, t.pointerType);
|
|
2117
2117
|
}, u.onPointerLeave = (e) => {
|
|
2118
|
-
!i &&
|
|
2118
|
+
!i && K(e.currentTarget, q(e)) && a(e, e.pointerType);
|
|
2119
2119
|
}), {
|
|
2120
2120
|
hoverProps: u,
|
|
2121
2121
|
triggerHoverEnd: a
|
|
@@ -2129,7 +2129,7 @@ function Ja(e) {
|
|
|
2129
2129
|
c,
|
|
2130
2130
|
l
|
|
2131
2131
|
]);
|
|
2132
|
-
return (0,
|
|
2132
|
+
return (0, z.useEffect)(() => {
|
|
2133
2133
|
i && d({ currentTarget: s.target }, s.pointerType);
|
|
2134
2134
|
}, [i]), {
|
|
2135
2135
|
hoverProps: u,
|
|
@@ -2139,7 +2139,7 @@ function Ja(e) {
|
|
|
2139
2139
|
//#endregion
|
|
2140
2140
|
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/interactions/dist/useScrollWheel.mjs
|
|
2141
2141
|
function Ya(e, t) {
|
|
2142
|
-
let { onScroll: n, isDisabled: r } = e, i = (0,
|
|
2142
|
+
let { onScroll: n, isDisabled: r } = e, i = (0, z.useCallback)((e) => {
|
|
2143
2143
|
e.ctrlKey || (e.preventDefault(), e.stopPropagation(), n && n({
|
|
2144
2144
|
deltaX: e.deltaX,
|
|
2145
2145
|
deltaY: e.deltaY
|
|
@@ -2220,7 +2220,7 @@ function so(e, t) {
|
|
|
2220
2220
|
}
|
|
2221
2221
|
function co(e, t) {
|
|
2222
2222
|
let { locale: n } = g(), r = so(e, t);
|
|
2223
|
-
return (0,
|
|
2223
|
+
return (0, z.useMemo)(() => new io(n, r), [n, r]);
|
|
2224
2224
|
}
|
|
2225
2225
|
//#endregion
|
|
2226
2226
|
//#region ../node_modules/.pnpm/@internationalized+number@3.6.5/node_modules/@internationalized/number/dist/NumberParser.mjs
|
|
@@ -2394,10 +2394,10 @@ function So(e, t) {
|
|
|
2394
2394
|
//#endregion
|
|
2395
2395
|
//#region ../node_modules/.pnpm/@react-aria+focus@3.21.5_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/focus/dist/useFocusRing.mjs
|
|
2396
2396
|
function Co(e = {}) {
|
|
2397
|
-
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0,
|
|
2397
|
+
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, z.useRef)({
|
|
2398
2398
|
isFocused: !1,
|
|
2399
2399
|
isFocusVisible: t || ka()
|
|
2400
|
-
}), [a, o] = (0,
|
|
2400
|
+
}), [a, o] = (0, z.useState)(!1), [s, c] = (0, z.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, z.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, z.useCallback)((e) => {
|
|
2401
2401
|
i.current.isFocused = e, i.current.isFocusVisible = ka(), o(e), l();
|
|
2402
2402
|
}, [l]);
|
|
2403
2403
|
Pa((e) => {
|
|
@@ -2486,7 +2486,7 @@ var Oo = class {
|
|
|
2486
2486
|
isInvalid: !1,
|
|
2487
2487
|
validationDetails: ko,
|
|
2488
2488
|
validationErrors: []
|
|
2489
|
-
}, Mo = (0,
|
|
2489
|
+
}, Mo = (0, z.createContext)({}), No = "__formValidationState" + Date.now();
|
|
2490
2490
|
function Po(e) {
|
|
2491
2491
|
if (e[No]) {
|
|
2492
2492
|
let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[No];
|
|
@@ -2507,17 +2507,17 @@ function Fo(e) {
|
|
|
2507
2507
|
isInvalid: t,
|
|
2508
2508
|
validationErrors: [],
|
|
2509
2509
|
validationDetails: Ao
|
|
2510
|
-
}, l = (0,
|
|
2510
|
+
}, l = (0, z.useMemo)(() => !o || i == null ? null : Ro(Lo(o, i)), [o, i]);
|
|
2511
2511
|
a?.validationDetails.valid && (a = void 0);
|
|
2512
|
-
let u = (0,
|
|
2512
|
+
let u = (0, z.useContext)(Mo), d = (0, z.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => Io(u[e])) : Io(u[r]) : [], [u, r]), [f, p] = (0, z.useState)(u), [m, h] = (0, z.useState)(!1);
|
|
2513
2513
|
u !== f && (p(u), h(!1));
|
|
2514
|
-
let g = (0,
|
|
2514
|
+
let g = (0, z.useMemo)(() => Ro(m ? [] : d), [m, d]), _ = (0, z.useRef)(jo), [v, y] = (0, z.useState)(jo), b = (0, z.useRef)(jo), x = () => {
|
|
2515
2515
|
if (!S) return;
|
|
2516
2516
|
C(!1);
|
|
2517
2517
|
let e = l || a || _.current;
|
|
2518
2518
|
zo(e, b.current) || (b.current = e, y(e));
|
|
2519
|
-
}, [S, C] = (0,
|
|
2520
|
-
return (0,
|
|
2519
|
+
}, [S, C] = (0, z.useState)(!1);
|
|
2520
|
+
return (0, z.useEffect)(x), {
|
|
2521
2521
|
realtimeValidation: c || g || l || a || jo,
|
|
2522
2522
|
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
|
|
2523
2523
|
updateValidation(e) {
|
|
@@ -2570,13 +2570,13 @@ function Bo(...e) {
|
|
|
2570
2570
|
//#region ../node_modules/.pnpm/@react-aria+form@3.1.5_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/form/dist/useFormValidation.mjs
|
|
2571
2571
|
function Vo(e, t, n) {
|
|
2572
2572
|
let { validationBehavior: r, focus: i } = e;
|
|
2573
|
-
|
|
2573
|
+
U(() => {
|
|
2574
2574
|
if (r === "native" && n?.current && !n.current.disabled) {
|
|
2575
2575
|
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
|
|
2576
2576
|
n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Uo(n.current));
|
|
2577
2577
|
}
|
|
2578
2578
|
});
|
|
2579
|
-
let a = (0,
|
|
2579
|
+
let a = (0, z.useRef)(!1), o = Y(() => {
|
|
2580
2580
|
a.current || t.resetValidation();
|
|
2581
2581
|
}), s = Y((e) => {
|
|
2582
2582
|
t.displayValidation.isInvalid || t.commitValidation();
|
|
@@ -2589,7 +2589,7 @@ function Vo(e, t, n) {
|
|
|
2589
2589
|
}), c = Y(() => {
|
|
2590
2590
|
t.commitValidation();
|
|
2591
2591
|
});
|
|
2592
|
-
(0,
|
|
2592
|
+
(0, z.useEffect)(() => {
|
|
2593
2593
|
let e = n?.current;
|
|
2594
2594
|
if (!e) return;
|
|
2595
2595
|
let t = e.form, r = t?.reset;
|
|
@@ -2634,8 +2634,8 @@ function Wo(e) {
|
|
|
2634
2634
|
//#region ../node_modules/.pnpm/@react-aria+label@3.7.25_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/label/dist/useLabel.mjs
|
|
2635
2635
|
function Go(e) {
|
|
2636
2636
|
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
|
|
2637
|
-
t =
|
|
2638
|
-
let o =
|
|
2637
|
+
t = Cr(t);
|
|
2638
|
+
let o = Cr(), s = {};
|
|
2639
2639
|
n && (r = r ? `${o} ${r}` : o, s = {
|
|
2640
2640
|
id: o,
|
|
2641
2641
|
htmlFor: a === "label" ? t : void 0
|
|
@@ -2653,12 +2653,12 @@ function Go(e) {
|
|
|
2653
2653
|
//#endregion
|
|
2654
2654
|
//#region ../node_modules/.pnpm/@react-aria+label@3.7.25_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/label/dist/useField.mjs
|
|
2655
2655
|
function Ko(e) {
|
|
2656
|
-
let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = Go(e), s =
|
|
2656
|
+
let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = Go(e), s = Tr([
|
|
2657
2657
|
!!t,
|
|
2658
2658
|
!!n,
|
|
2659
2659
|
r,
|
|
2660
2660
|
i
|
|
2661
|
-
]), c =
|
|
2661
|
+
]), c = Tr([
|
|
2662
2662
|
!!t,
|
|
2663
2663
|
!!n,
|
|
2664
2664
|
r,
|
|
@@ -2680,22 +2680,22 @@ function Ko(e) {
|
|
|
2680
2680
|
function qo(e) {
|
|
2681
2681
|
let { minValue: t, maxValue: n, step: r, formatOptions: i, value: a, defaultValue: o = NaN, onChange: s, locale: c, isDisabled: l, isReadOnly: u } = e;
|
|
2682
2682
|
a === null && (a = NaN), a !== void 0 && !isNaN(a) && (a = r !== void 0 && !isNaN(r) ? Ni(a, t, n, r) : ji(a, t, n)), isNaN(o) || (o = r !== void 0 && !isNaN(r) ? Ni(o, t, n, r) : ji(o, t, n));
|
|
2683
|
-
let [d, f] = Ai(a, isNaN(o) ? NaN : o, s), [p] = (0,
|
|
2683
|
+
let [d, f] = Ai(a, isNaN(o) ? NaN : o, s), [p] = (0, z.useState)(d), [m, h] = (0, z.useState)(() => isNaN(d) ? "" : new S(c, i).format(d)), g = (0, z.useMemo)(() => new fo(c, i), [c, i]), _ = (0, z.useMemo)(() => g.getNumberingSystem(m), [g, m]), v = (0, z.useMemo)(() => new S(c, {
|
|
2684
2684
|
...i,
|
|
2685
2685
|
numberingSystem: _
|
|
2686
2686
|
}), [
|
|
2687
2687
|
c,
|
|
2688
2688
|
i,
|
|
2689
2689
|
_
|
|
2690
|
-
]), y = (0,
|
|
2690
|
+
]), y = (0, z.useMemo)(() => v.resolvedOptions(), [v]), b = (0, z.useCallback)((e) => isNaN(e) || e === null ? "" : v.format(e), [v]), x = Po({
|
|
2691
2691
|
...e,
|
|
2692
2692
|
value: d
|
|
2693
2693
|
}), C = r !== void 0 && !isNaN(r) ? r : 1;
|
|
2694
2694
|
y.style === "percent" && (r === void 0 || isNaN(r)) && (C = .01);
|
|
2695
|
-
let [
|
|
2696
|
-
(!Object.is(d,
|
|
2697
|
-
let
|
|
2698
|
-
let i = e === void 0 ? m : e, o =
|
|
2695
|
+
let [w, T] = (0, z.useState)(d), [E, D] = (0, z.useState)(c), [O, k] = (0, z.useState)(i);
|
|
2696
|
+
(!Object.is(d, w) || c !== E || i !== O) && (h(b(d)), T(d), D(c), k(i));
|
|
2697
|
+
let A = (0, z.useMemo)(() => g.parse(m), [g, m]), j = (e) => {
|
|
2698
|
+
let i = e === void 0 ? m : e, o = A;
|
|
2699
2699
|
if (e !== void 0 && (o = g.parse(i)), !i.length) {
|
|
2700
2700
|
f(NaN), h(a === void 0 ? "" : b(d));
|
|
2701
2701
|
return;
|
|
@@ -2706,55 +2706,55 @@ function qo(e) {
|
|
|
2706
2706
|
}
|
|
2707
2707
|
let s;
|
|
2708
2708
|
s = r === void 0 || isNaN(r) ? ji(o, t, n) : Ni(o, t, n, r), s = g.parse(b(s)), f(s), h(b(a === void 0 ? s : d)), x.commitValidation();
|
|
2709
|
-
},
|
|
2710
|
-
let i =
|
|
2709
|
+
}, M = (e, r = 0) => {
|
|
2710
|
+
let i = A;
|
|
2711
2711
|
if (isNaN(i)) return Ni(isNaN(r) ? 0 : r, t, n, C);
|
|
2712
2712
|
{
|
|
2713
2713
|
let r = Ni(i, t, n, C);
|
|
2714
2714
|
return e === "+" && r > i || e === "-" && r < i ? r : Ni(Jo(e, i, C), t, n, C);
|
|
2715
2715
|
}
|
|
2716
|
-
}, M = () => {
|
|
2717
|
-
let e = j("+", t);
|
|
2718
|
-
e === d && h(b(e)), f(e), x.commitValidation();
|
|
2719
2716
|
}, N = () => {
|
|
2720
|
-
let e =
|
|
2717
|
+
let e = M("+", t);
|
|
2721
2718
|
e === d && h(b(e)), f(e), x.commitValidation();
|
|
2722
2719
|
}, P = () => {
|
|
2723
|
-
|
|
2720
|
+
let e = M("-", n);
|
|
2721
|
+
e === d && h(b(e)), f(e), x.commitValidation();
|
|
2724
2722
|
}, F = () => {
|
|
2723
|
+
n != null && (f(Ni(n, t, n, C)), x.commitValidation());
|
|
2724
|
+
}, I = () => {
|
|
2725
2725
|
t != null && (f(t), x.commitValidation());
|
|
2726
|
-
},
|
|
2726
|
+
}, L = (0, z.useMemo)(() => !l && !u && (isNaN(A) || n === void 0 || isNaN(n) || Ni(A, t, n, C) > A || Jo("+", A, C) <= n), [
|
|
2727
2727
|
l,
|
|
2728
2728
|
u,
|
|
2729
2729
|
t,
|
|
2730
2730
|
n,
|
|
2731
2731
|
C,
|
|
2732
|
-
|
|
2733
|
-
]),
|
|
2732
|
+
A
|
|
2733
|
+
]), ee = (0, z.useMemo)(() => !l && !u && (isNaN(A) || t === void 0 || isNaN(t) || Ni(A, t, n, C) < A || Jo("-", A, C) >= t), [
|
|
2734
2734
|
l,
|
|
2735
2735
|
u,
|
|
2736
2736
|
t,
|
|
2737
2737
|
n,
|
|
2738
2738
|
C,
|
|
2739
|
-
|
|
2740
|
-
]),
|
|
2739
|
+
A
|
|
2740
|
+
]), te = (e) => g.isValidPartialNumber(e, t, n);
|
|
2741
2741
|
return {
|
|
2742
2742
|
...x,
|
|
2743
|
-
validate:
|
|
2744
|
-
increment:
|
|
2745
|
-
incrementToMax:
|
|
2746
|
-
decrement:
|
|
2747
|
-
decrementToMin:
|
|
2748
|
-
canIncrement:
|
|
2749
|
-
canDecrement:
|
|
2743
|
+
validate: te,
|
|
2744
|
+
increment: N,
|
|
2745
|
+
incrementToMax: F,
|
|
2746
|
+
decrement: P,
|
|
2747
|
+
decrementToMin: I,
|
|
2748
|
+
canIncrement: L,
|
|
2749
|
+
canDecrement: ee,
|
|
2750
2750
|
minValue: t,
|
|
2751
2751
|
maxValue: n,
|
|
2752
|
-
numberValue:
|
|
2752
|
+
numberValue: A,
|
|
2753
2753
|
defaultNumberValue: isNaN(o) ? p : o,
|
|
2754
2754
|
setNumberValue: f,
|
|
2755
2755
|
setInputValue: h,
|
|
2756
2756
|
inputValue: m,
|
|
2757
|
-
commit:
|
|
2757
|
+
commit: j
|
|
2758
2758
|
};
|
|
2759
2759
|
}
|
|
2760
2760
|
function Jo(e, t, n) {
|
|
@@ -2778,7 +2778,7 @@ function Yo(e, t) {
|
|
|
2778
2778
|
}), y = Vr(e, { labelable: !0 }), b = {
|
|
2779
2779
|
type: o,
|
|
2780
2780
|
pattern: e.pattern
|
|
2781
|
-
}, [x] = (0,
|
|
2781
|
+
}, [x] = (0, z.useState)(c);
|
|
2782
2782
|
return vi(t, e.defaultValue ?? x, l), Vo(e, d, t), {
|
|
2783
2783
|
labelProps: h,
|
|
2784
2784
|
inputProps: J(y, n === "input" ? b : void 0, {
|
|
@@ -2857,7 +2857,7 @@ function Zo(e, t, n) {
|
|
|
2857
2857
|
}
|
|
2858
2858
|
(i == null || !t.validate(i)) && e.preventDefault();
|
|
2859
2859
|
});
|
|
2860
|
-
(0,
|
|
2860
|
+
(0, z.useEffect)(() => {
|
|
2861
2861
|
if (!Xo() || !n.current) return;
|
|
2862
2862
|
let e = n.current;
|
|
2863
2863
|
return e.addEventListener("beforeinput", r, !1), () => {
|
|
@@ -2867,7 +2867,7 @@ function Zo(e, t, n) {
|
|
|
2867
2867
|
let i = Xo() ? null : (e) => {
|
|
2868
2868
|
let n = q(e).value.slice(0, q(e).selectionStart) + e.data + q(e).value.slice(q(e).selectionEnd);
|
|
2869
2869
|
t.validate(n) || e.preventDefault();
|
|
2870
|
-
}, { labelProps: a, inputProps: o, descriptionProps: s, errorMessageProps: c, ...l } = Yo(e, n), u = (0,
|
|
2870
|
+
}, { labelProps: a, inputProps: o, descriptionProps: s, errorMessageProps: c, ...l } = Yo(e, n), u = (0, z.useRef)(null);
|
|
2871
2871
|
return {
|
|
2872
2872
|
inputProps: J(o, {
|
|
2873
2873
|
onBeforeInput: i,
|
|
@@ -3074,12 +3074,12 @@ function Ns(e) {
|
|
|
3074
3074
|
}
|
|
3075
3075
|
var Ps = () => {};
|
|
3076
3076
|
function Fs(e) {
|
|
3077
|
-
let t = (0,
|
|
3077
|
+
let t = (0, z.useRef)(void 0), { value: n, textValue: r, minValue: i, maxValue: a, isDisabled: o, isReadOnly: s, isRequired: c, onIncrement: l, onIncrementPage: u, onDecrement: d, onDecrementPage: f, onDecrementToMin: p, onIncrementToMax: m } = e, h = co(Ns(Ms), "@react-aria/spinbutton"), g = (0, z.useRef)(!1), _ = (0, z.useCallback)(() => {
|
|
3078
3078
|
clearTimeout(t.current), g.current = !1;
|
|
3079
3079
|
}, []), v = Y(() => {
|
|
3080
3080
|
_();
|
|
3081
3081
|
});
|
|
3082
|
-
(0,
|
|
3082
|
+
(0, z.useEffect)(() => () => v(), []);
|
|
3083
3083
|
let y = (e) => {
|
|
3084
3084
|
if (!(e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || s || e.nativeEvent.isComposing)) switch (e.key) {
|
|
3085
3085
|
case "PageUp": if (u) {
|
|
@@ -3103,34 +3103,34 @@ function Fs(e) {
|
|
|
3103
3103
|
break;
|
|
3104
3104
|
case "End": m && (e.preventDefault(), m?.());
|
|
3105
3105
|
}
|
|
3106
|
-
}, b = (0,
|
|
3106
|
+
}, b = (0, z.useRef)(!1), x = () => {
|
|
3107
3107
|
b.current = !0;
|
|
3108
3108
|
}, S = () => {
|
|
3109
3109
|
b.current = !1;
|
|
3110
3110
|
}, C = r === "" ? h.format("Empty") : (r || `${n}`).replace("-", "−");
|
|
3111
|
-
(0,
|
|
3111
|
+
(0, z.useEffect)(() => {
|
|
3112
3112
|
b.current && (Do("assertive"), Eo(C, "assertive"));
|
|
3113
3113
|
}, [C]);
|
|
3114
|
-
let
|
|
3114
|
+
let w = (0, z.useCallback)(() => {
|
|
3115
3115
|
_();
|
|
3116
|
-
}, [_]),
|
|
3117
|
-
(a === void 0 || isNaN(a) || n === void 0 || isNaN(n) || n < a) && (
|
|
3118
|
-
}),
|
|
3119
|
-
v(), g.current = !0, t.current = window.setTimeout(
|
|
3120
|
-
}),
|
|
3121
|
-
(i === void 0 || isNaN(i) || n === void 0 || isNaN(n) || n > i) && (
|
|
3122
|
-
}),
|
|
3123
|
-
v(), g.current = !0, t.current = window.setTimeout(
|
|
3124
|
-
}),
|
|
3116
|
+
}, [_]), T = Y(l ?? Ps), E = Y(d ?? Ps), D = Y(() => {
|
|
3117
|
+
(a === void 0 || isNaN(a) || n === void 0 || isNaN(n) || n < a) && (T(), O(60));
|
|
3118
|
+
}), O = Y((e) => {
|
|
3119
|
+
v(), g.current = !0, t.current = window.setTimeout(D, e);
|
|
3120
|
+
}), k = Y(() => {
|
|
3121
|
+
(i === void 0 || isNaN(i) || n === void 0 || isNaN(n) || n > i) && (E(), A(60));
|
|
3122
|
+
}), A = Y((e) => {
|
|
3123
|
+
v(), g.current = !0, t.current = window.setTimeout(k, e);
|
|
3124
|
+
}), j = (e) => {
|
|
3125
3125
|
e.preventDefault();
|
|
3126
|
-
}, { addGlobalListener:
|
|
3127
|
-
(0,
|
|
3128
|
-
|
|
3129
|
-
}, [
|
|
3130
|
-
let [
|
|
3131
|
-
return (0,
|
|
3132
|
-
|
|
3133
|
-
}, [
|
|
3126
|
+
}, { addGlobalListener: M, removeAllGlobalListeners: N } = ui(), P = (0, z.useRef)(!1), [F, I] = (0, z.useState)(null);
|
|
3127
|
+
(0, z.useEffect)(() => {
|
|
3128
|
+
F === "touch" ? O(600) : F && O(400);
|
|
3129
|
+
}, [F]);
|
|
3130
|
+
let [L, ee] = (0, z.useState)(null);
|
|
3131
|
+
return (0, z.useEffect)(() => {
|
|
3132
|
+
L === "touch" ? A(600) : L && A(400);
|
|
3133
|
+
}, [L]), {
|
|
3134
3134
|
spinButtonProps: {
|
|
3135
3135
|
role: "spinbutton",
|
|
3136
3136
|
"aria-valuenow": n !== void 0 && !isNaN(n) ? n : void 0,
|
|
@@ -3146,26 +3146,26 @@ function Fs(e) {
|
|
|
3146
3146
|
},
|
|
3147
3147
|
incrementButtonProps: {
|
|
3148
3148
|
onPressStart: (e) => {
|
|
3149
|
-
_(), e.pointerType === "touch" ? (
|
|
3149
|
+
_(), e.pointerType === "touch" ? (M(window, "pointercancel", w, { capture: !0 }), P.current = !1, I("touch")) : (l?.(), I("mouse")), M(window, "contextmenu", j);
|
|
3150
3150
|
},
|
|
3151
3151
|
onPressUp: (e) => {
|
|
3152
|
-
_(), e.pointerType === "touch" && (
|
|
3152
|
+
_(), e.pointerType === "touch" && (P.current = !0), N(), I(null);
|
|
3153
3153
|
},
|
|
3154
3154
|
onPressEnd: (e) => {
|
|
3155
|
-
_(), e.pointerType === "touch" && !g.current &&
|
|
3155
|
+
_(), e.pointerType === "touch" && !g.current && P.current && l?.(), P.current = !1, I(null);
|
|
3156
3156
|
},
|
|
3157
3157
|
onFocus: x,
|
|
3158
3158
|
onBlur: S
|
|
3159
3159
|
},
|
|
3160
3160
|
decrementButtonProps: {
|
|
3161
3161
|
onPressStart: (e) => {
|
|
3162
|
-
_(), e.pointerType === "touch" ? (
|
|
3162
|
+
_(), e.pointerType === "touch" ? (M(window, "pointercancel", w, { capture: !0 }), P.current = !1, ee("touch")) : (d?.(), ee("mouse"));
|
|
3163
3163
|
},
|
|
3164
3164
|
onPressUp: (e) => {
|
|
3165
|
-
_(), e.pointerType === "touch" && (
|
|
3165
|
+
_(), e.pointerType === "touch" && (P.current = !0), N(), ee(null);
|
|
3166
3166
|
},
|
|
3167
3167
|
onPressEnd: (e) => {
|
|
3168
|
-
_(), e.pointerType === "touch" && !g.current &&
|
|
3168
|
+
_(), e.pointerType === "touch" && !g.current && P.current && d?.(), P.current = !1, ee(null);
|
|
3169
3169
|
},
|
|
3170
3170
|
onFocus: x,
|
|
3171
3171
|
onBlur: S
|
|
@@ -3489,55 +3489,55 @@ function _c(e) {
|
|
|
3489
3489
|
return e && e.__esModule ? e.default : e;
|
|
3490
3490
|
}
|
|
3491
3491
|
function vc(e, t, n) {
|
|
3492
|
-
let { id: r, decrementAriaLabel: i, incrementAriaLabel: a, isDisabled: o, isReadOnly: s, isRequired: c, minValue: l, maxValue: u, autoFocus: d, label: f, formatOptions: p, onBlur: m = () => {}, onFocus: h, onFocusChange: g, onKeyDown: _, onKeyUp: v, description: y, errorMessage: b, isWheelDisabled: x, ...S } = e, { increment: C, incrementToMax:
|
|
3492
|
+
let { id: r, decrementAriaLabel: i, incrementAriaLabel: a, isDisabled: o, isReadOnly: s, isRequired: c, minValue: l, maxValue: u, autoFocus: d, label: f, formatOptions: p, onBlur: m = () => {}, onFocus: h, onFocusChange: g, onKeyDown: _, onKeyUp: v, description: y, errorMessage: b, isWheelDisabled: x, ...S } = e, { increment: C, incrementToMax: w, decrement: T, decrementToMin: E, numberValue: D, inputValue: O, commit: k, commitValidation: A } = t, M = co(_c(gc), "@react-aria/numberfield"), N = (0, z.useCallback)(() => {
|
|
3493
3493
|
let e = n.current?.value ?? "";
|
|
3494
3494
|
(0, Qi.flushSync)(() => {
|
|
3495
|
-
|
|
3495
|
+
k();
|
|
3496
3496
|
}), n.current?.value !== e && Eo(n.current?.value ?? "", "assertive");
|
|
3497
|
-
}, [
|
|
3498
|
-
|
|
3499
|
-
} }),
|
|
3497
|
+
}, [k, n]), P = Cr(r), { focusProps: F } = Ia({ onBlur() {
|
|
3498
|
+
N();
|
|
3499
|
+
} }), I = j(p), L = (0, z.useMemo)(() => I.resolvedOptions(), [I]), ee = j({
|
|
3500
3500
|
...p,
|
|
3501
3501
|
currencySign: void 0
|
|
3502
|
-
}), { spinButtonProps:
|
|
3502
|
+
}), { spinButtonProps: te, incrementButtonProps: ne, decrementButtonProps: re } = Fs({
|
|
3503
3503
|
isDisabled: o,
|
|
3504
3504
|
isReadOnly: s,
|
|
3505
3505
|
isRequired: c,
|
|
3506
3506
|
maxValue: u,
|
|
3507
3507
|
minValue: l,
|
|
3508
3508
|
onIncrement: C,
|
|
3509
|
-
onIncrementToMax:
|
|
3510
|
-
onDecrement:
|
|
3511
|
-
onDecrementToMin:
|
|
3512
|
-
value:
|
|
3513
|
-
textValue: (0,
|
|
3514
|
-
}), [
|
|
3509
|
+
onIncrementToMax: w,
|
|
3510
|
+
onDecrement: T,
|
|
3511
|
+
onDecrementToMin: E,
|
|
3512
|
+
value: D,
|
|
3513
|
+
textValue: (0, z.useMemo)(() => isNaN(D) ? "" : ee.format(D), [ee, D])
|
|
3514
|
+
}), [ie, ae] = (0, z.useState)(!1), { focusWithinProps: oe } = Ha({
|
|
3515
3515
|
isDisabled: o,
|
|
3516
|
-
onFocusWithinChange:
|
|
3516
|
+
onFocusWithinChange: ae
|
|
3517
3517
|
});
|
|
3518
3518
|
Ya({
|
|
3519
|
-
onScroll: (0,
|
|
3520
|
-
Math.abs(e.deltaY) <= Math.abs(e.deltaX) || (e.deltaY > 0 ? C() : e.deltaY < 0 &&
|
|
3521
|
-
}, [
|
|
3522
|
-
isDisabled: x || o || s || !
|
|
3519
|
+
onScroll: (0, z.useCallback)((e) => {
|
|
3520
|
+
Math.abs(e.deltaY) <= Math.abs(e.deltaX) || (e.deltaY > 0 ? C() : e.deltaY < 0 && T());
|
|
3521
|
+
}, [T, C]),
|
|
3522
|
+
isDisabled: x || o || s || !ie
|
|
3523
3523
|
}, n);
|
|
3524
|
-
let
|
|
3525
|
-
Zr() ?
|
|
3526
|
-
let
|
|
3524
|
+
let se = (L.maximumFractionDigits ?? 0) > 0, ce = t.minValue === void 0 || isNaN(t.minValue) || t.minValue < 0, le = "numeric";
|
|
3525
|
+
Zr() ? ce ? le = "text" : se && (le = "decimal") : ni() && (ce ? le = "numeric" : se && (le = "decimal"));
|
|
3526
|
+
let R = (e) => {
|
|
3527
3527
|
t.validate(e) && t.setInputValue(e);
|
|
3528
|
-
},
|
|
3528
|
+
}, ue = (t) => {
|
|
3529
3529
|
var n;
|
|
3530
3530
|
(n = e.onPaste) == null || n.call(e, t);
|
|
3531
3531
|
let r = q(t);
|
|
3532
3532
|
if (r && (r.selectionEnd ?? -1) - (r.selectionStart ?? 0) === r.value.length) {
|
|
3533
3533
|
var i, a;
|
|
3534
|
-
t.preventDefault(),
|
|
3534
|
+
t.preventDefault(), k(((a = t.clipboardData) == null || (i = a.getData) == null ? void 0 : i.call(a, "text/plain")?.trim()) ?? "");
|
|
3535
3535
|
}
|
|
3536
|
-
},
|
|
3537
|
-
e.nativeEvent.isComposing || (e.key === "Enter" ? (
|
|
3538
|
-
}, [
|
|
3536
|
+
}, de = Vr(e), fe = (0, z.useCallback)((e) => {
|
|
3537
|
+
e.nativeEvent.isComposing || (e.key === "Enter" ? (k(), A()) : e.continuePropagation());
|
|
3538
|
+
}, [k, A]), { isInvalid: pe, validationErrors: me, validationDetails: he } = t.displayValidation, { labelProps: ge, inputProps: _e, descriptionProps: ve, errorMessageProps: ye } = Zo({
|
|
3539
3539
|
...S,
|
|
3540
|
-
...
|
|
3540
|
+
...de,
|
|
3541
3541
|
name: void 0,
|
|
3542
3542
|
form: void 0,
|
|
3543
3543
|
label: f,
|
|
@@ -3547,28 +3547,28 @@ function vc(e, t, n) {
|
|
|
3547
3547
|
isRequired: c,
|
|
3548
3548
|
validate: void 0,
|
|
3549
3549
|
[No]: t,
|
|
3550
|
-
value:
|
|
3550
|
+
value: O,
|
|
3551
3551
|
defaultValue: "!",
|
|
3552
3552
|
autoComplete: "off",
|
|
3553
3553
|
"aria-label": e["aria-label"] || void 0,
|
|
3554
3554
|
"aria-labelledby": e["aria-labelledby"] || void 0,
|
|
3555
|
-
id:
|
|
3555
|
+
id: P,
|
|
3556
3556
|
type: "text",
|
|
3557
|
-
inputMode:
|
|
3558
|
-
onChange:
|
|
3557
|
+
inputMode: le,
|
|
3558
|
+
onChange: R,
|
|
3559
3559
|
onBlur: m,
|
|
3560
3560
|
onFocus: h,
|
|
3561
3561
|
onFocusChange: g,
|
|
3562
|
-
onKeyDown: (0,
|
|
3562
|
+
onKeyDown: (0, z.useMemo)(() => Er(fe, _), [fe, _]),
|
|
3563
3563
|
onKeyUp: v,
|
|
3564
|
-
onPaste:
|
|
3564
|
+
onPaste: ue,
|
|
3565
3565
|
description: y,
|
|
3566
3566
|
errorMessage: b
|
|
3567
3567
|
}, t, n);
|
|
3568
3568
|
vi(n, t.defaultNumberValue, t.setNumberValue);
|
|
3569
|
-
let
|
|
3569
|
+
let be = J(te, F, _e, {
|
|
3570
3570
|
role: null,
|
|
3571
|
-
"aria-roledescription": $r() ? null :
|
|
3571
|
+
"aria-roledescription": $r() ? null : M.format("numberField"),
|
|
3572
3572
|
"aria-valuemax": null,
|
|
3573
3573
|
"aria-valuemin": null,
|
|
3574
3574
|
"aria-valuenow": null,
|
|
@@ -3576,68 +3576,68 @@ function vc(e, t, n) {
|
|
|
3576
3576
|
autoCorrect: "off",
|
|
3577
3577
|
spellCheck: "false"
|
|
3578
3578
|
});
|
|
3579
|
-
e.validationBehavior === "native" && (
|
|
3580
|
-
let
|
|
3579
|
+
e.validationBehavior === "native" && (be["aria-required"] = void 0);
|
|
3580
|
+
let B = (e) => {
|
|
3581
3581
|
var t;
|
|
3582
|
-
|
|
3583
|
-
},
|
|
3584
|
-
|
|
3585
|
-
let
|
|
3586
|
-
"aria-label": a ||
|
|
3587
|
-
id:
|
|
3588
|
-
"aria-labelledby":
|
|
3589
|
-
"aria-controls":
|
|
3582
|
+
jr() !== n.current && (e.pointerType === "mouse" ? (t = n.current) == null || t.focus() : e.target.focus());
|
|
3583
|
+
}, xe = e["aria-label"] || (typeof e.label == "string" ? e.label : ""), Se;
|
|
3584
|
+
xe || (Se = e.label == null ? e["aria-labelledby"] : ge.id);
|
|
3585
|
+
let Ce = Cr(), we = Cr(), Te = J(ne, {
|
|
3586
|
+
"aria-label": a || M.format("increase", { fieldLabel: xe }).trim(),
|
|
3587
|
+
id: Se && !a ? Ce : null,
|
|
3588
|
+
"aria-labelledby": Se && !a ? `${Ce} ${Se}` : null,
|
|
3589
|
+
"aria-controls": P,
|
|
3590
3590
|
excludeFromTabOrder: !0,
|
|
3591
3591
|
preventFocusOnPress: !0,
|
|
3592
3592
|
allowFocusWhenDisabled: !0,
|
|
3593
3593
|
isDisabled: !t.canIncrement,
|
|
3594
|
-
onPressStart:
|
|
3595
|
-
}),
|
|
3596
|
-
"aria-label": i ||
|
|
3597
|
-
id:
|
|
3598
|
-
"aria-labelledby":
|
|
3599
|
-
"aria-controls":
|
|
3594
|
+
onPressStart: B
|
|
3595
|
+
}), Ee = J(re, {
|
|
3596
|
+
"aria-label": i || M.format("decrease", { fieldLabel: xe }).trim(),
|
|
3597
|
+
id: Se && !i ? we : null,
|
|
3598
|
+
"aria-labelledby": Se && !i ? `${we} ${Se}` : null,
|
|
3599
|
+
"aria-controls": P,
|
|
3600
3600
|
excludeFromTabOrder: !0,
|
|
3601
3601
|
preventFocusOnPress: !0,
|
|
3602
3602
|
allowFocusWhenDisabled: !0,
|
|
3603
3603
|
isDisabled: !t.canDecrement,
|
|
3604
|
-
onPressStart:
|
|
3604
|
+
onPressStart: B
|
|
3605
3605
|
});
|
|
3606
3606
|
return {
|
|
3607
3607
|
groupProps: {
|
|
3608
|
-
...
|
|
3608
|
+
...oe,
|
|
3609
3609
|
role: "group",
|
|
3610
3610
|
"aria-disabled": o,
|
|
3611
|
-
"aria-invalid":
|
|
3611
|
+
"aria-invalid": pe ? "true" : void 0
|
|
3612
3612
|
},
|
|
3613
|
-
labelProps:
|
|
3614
|
-
inputProps:
|
|
3615
|
-
incrementButtonProps:
|
|
3616
|
-
decrementButtonProps:
|
|
3617
|
-
errorMessageProps:
|
|
3618
|
-
descriptionProps:
|
|
3619
|
-
isInvalid:
|
|
3620
|
-
validationErrors:
|
|
3621
|
-
validationDetails:
|
|
3613
|
+
labelProps: ge,
|
|
3614
|
+
inputProps: be,
|
|
3615
|
+
incrementButtonProps: Te,
|
|
3616
|
+
decrementButtonProps: Ee,
|
|
3617
|
+
errorMessageProps: ye,
|
|
3618
|
+
descriptionProps: ve,
|
|
3619
|
+
isInvalid: pe,
|
|
3620
|
+
validationErrors: me,
|
|
3621
|
+
validationDetails: he
|
|
3622
3622
|
};
|
|
3623
3623
|
}
|
|
3624
3624
|
//#endregion
|
|
3625
3625
|
//#region src/hooks/useDebounce.ts
|
|
3626
3626
|
var X = c();
|
|
3627
3627
|
function yc(e, t) {
|
|
3628
|
-
let n = (0, X.c)(4), [r, i] = (0,
|
|
3628
|
+
let n = (0, X.c)(4), [r, i] = (0, z.useState)(e), a, o;
|
|
3629
3629
|
return n[0] !== t || n[1] !== e ? (a = () => {
|
|
3630
3630
|
let n = setTimeout(() => i(e), t);
|
|
3631
3631
|
return () => {
|
|
3632
3632
|
clearTimeout(n);
|
|
3633
3633
|
};
|
|
3634
|
-
}, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), (0,
|
|
3634
|
+
}, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), (0, z.useEffect)(a, o), r;
|
|
3635
3635
|
}
|
|
3636
3636
|
function bc(e) {
|
|
3637
|
-
let t = (0, X.c)(18), { initialValue: n, onChange: r, delay: i, disabled: a } = e, [o, s] = (0,
|
|
3637
|
+
let t = (0, X.c)(18), { initialValue: n, onChange: r, delay: i, disabled: a } = e, [o, s] = (0, z.useState)(n), c = yc(o, i || 200), l = ge(r), u, d;
|
|
3638
3638
|
t[0] === n ? (u = t[1], d = t[2]) : (u = () => {
|
|
3639
3639
|
s(n);
|
|
3640
|
-
}, d = [n], t[0] = n, t[1] = u, t[2] = d), (0,
|
|
3640
|
+
}, d = [n], t[0] = n, t[1] = u, t[2] = d), (0, z.useEffect)(u, d);
|
|
3641
3641
|
let f;
|
|
3642
3642
|
t[3] !== c || t[4] !== a || t[5] !== n || t[6] !== l ? (f = () => {
|
|
3643
3643
|
a || c !== n && l(c);
|
|
@@ -3647,7 +3647,7 @@ function bc(e) {
|
|
|
3647
3647
|
c,
|
|
3648
3648
|
a,
|
|
3649
3649
|
l
|
|
3650
|
-
], t[8] = c, t[9] = a, t[10] = l, t[11] = p) : p = t[11], (0,
|
|
3650
|
+
], t[8] = c, t[9] = a, t[10] = l, t[11] = p) : p = t[11], (0, z.useEffect)(f, p), a) {
|
|
3651
3651
|
let e;
|
|
3652
3652
|
return t[12] !== o || t[13] !== r ? (e = {
|
|
3653
3653
|
value: o,
|
|
@@ -3663,8 +3663,8 @@ function bc(e) {
|
|
|
3663
3663
|
}, t[15] = c, t[16] = o, t[17] = m) : m = t[17], m;
|
|
3664
3664
|
}
|
|
3665
3665
|
function xc(e, t) {
|
|
3666
|
-
let n = (0, X.c)(3), r =
|
|
3667
|
-
return n[0] !== t || n[1] !== r ? (i =
|
|
3666
|
+
let n = (0, X.c)(3), r = ge(e), i;
|
|
3667
|
+
return n[0] !== t || n[1] !== r ? (i = he(r, t), n[0] = t, n[1] = r, n[2] = i) : i = n[2], i;
|
|
3668
3668
|
}
|
|
3669
3669
|
//#endregion
|
|
3670
3670
|
//#region ../node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.js
|
|
@@ -5024,26 +5024,15 @@ $.options = $.setOptions = function(e) {
|
|
|
5024
5024
|
return Hl.walkTokens(e, t);
|
|
5025
5025
|
}, $.parseInline = Hl.parseInline, $.Parser = Bl, $.parser = Bl.parse, $.Renderer = Rl, $.TextRenderer = zl, $.Lexer = Ll, $.lexer = Ll.lex, $.Tokenizer = Il, $.Hooks = Vl, $.parse = $, $.options, $.setOptions, $.use, $.walkTokens, $.parseInline, Bl.parse, Ll.lex;
|
|
5026
5026
|
//#endregion
|
|
5027
|
-
//#region src/hooks/useNonce.ts
|
|
5028
|
-
function Ul() {
|
|
5029
|
-
let e = (0, X.c)(1), [, t] = (0, R.useState)(0), n;
|
|
5030
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = () => {
|
|
5031
|
-
t(Wl);
|
|
5032
|
-
}, e[0] = n) : n = e[0], n;
|
|
5033
|
-
}
|
|
5034
|
-
function Wl(e) {
|
|
5035
|
-
return e + 1;
|
|
5036
|
-
}
|
|
5037
|
-
//#endregion
|
|
5038
5027
|
//#region ../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-aria-components/dist/utils.mjs
|
|
5039
|
-
var
|
|
5040
|
-
function
|
|
5041
|
-
for (let [n, r] of e) t = /*#__PURE__*/
|
|
5028
|
+
var Ul = Symbol("default");
|
|
5029
|
+
function Wl({ values: e, children: t }) {
|
|
5030
|
+
for (let [n, r] of e) t = /*#__PURE__*/ z.createElement(n.Provider, { value: r }, t);
|
|
5042
5031
|
return t;
|
|
5043
5032
|
}
|
|
5044
|
-
function
|
|
5033
|
+
function Gl(e) {
|
|
5045
5034
|
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
|
|
5046
|
-
return (0,
|
|
5035
|
+
return (0, z.useMemo)(() => {
|
|
5047
5036
|
let e, l, u;
|
|
5048
5037
|
return e = typeof t == "function" ? t({
|
|
5049
5038
|
...s,
|
|
@@ -5075,14 +5064,14 @@ function ql(e) {
|
|
|
5075
5064
|
c
|
|
5076
5065
|
]);
|
|
5077
5066
|
}
|
|
5078
|
-
function
|
|
5067
|
+
function Kl(e, t) {
|
|
5079
5068
|
return (n) => t(typeof e == "function" ? e(n) : e, n);
|
|
5080
5069
|
}
|
|
5081
|
-
function
|
|
5082
|
-
let n = (0,
|
|
5070
|
+
function ql(e, t) {
|
|
5071
|
+
let n = (0, z.useContext)(e);
|
|
5083
5072
|
if (t === null) return null;
|
|
5084
5073
|
if (n && typeof n == "object" && "slots" in n && n.slots) {
|
|
5085
|
-
let e = t ||
|
|
5074
|
+
let e = t || Ul;
|
|
5086
5075
|
if (!n.slots[e]) {
|
|
5087
5076
|
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
|
|
5088
5077
|
throw Error(`${r} Valid slot names are ${e}.`);
|
|
@@ -5091,8 +5080,8 @@ function Yl(e, t) {
|
|
|
5091
5080
|
}
|
|
5092
5081
|
return n;
|
|
5093
5082
|
}
|
|
5094
|
-
function
|
|
5095
|
-
let { ref: r, ...i } =
|
|
5083
|
+
function Jl(e, t, n) {
|
|
5084
|
+
let { ref: r, ...i } = ql(n, e.slot) || {}, a = fi((0, z.useMemo)(() => Nr(t, r), [t, r])), o = J(i, e);
|
|
5096
5085
|
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
|
|
5097
5086
|
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
|
|
5098
5087
|
...t.defaultStyle,
|
|
@@ -5110,32 +5099,32 @@ function Xl(e, t, n) {
|
|
|
5110
5099
|
...e.style
|
|
5111
5100
|
}), [o, a];
|
|
5112
5101
|
}
|
|
5113
|
-
function
|
|
5114
|
-
let [t, n] = (0,
|
|
5102
|
+
function Yl(e = !0) {
|
|
5103
|
+
let [t, n] = (0, z.useState)(e), r = (0, z.useRef)(!1), i = (0, z.useCallback)((e) => {
|
|
5115
5104
|
r.current = !0, n(!!e);
|
|
5116
5105
|
}, []);
|
|
5117
|
-
return
|
|
5106
|
+
return U(() => {
|
|
5118
5107
|
r.current || n(!1);
|
|
5119
5108
|
}, []), [i, t];
|
|
5120
5109
|
}
|
|
5121
|
-
function
|
|
5110
|
+
function Xl(e) {
|
|
5122
5111
|
let t = /^(data-.*)$/, n = {};
|
|
5123
5112
|
for (let r in e) t.test(r) || (n[r] = e[r]);
|
|
5124
5113
|
return n;
|
|
5125
5114
|
}
|
|
5126
|
-
function
|
|
5127
|
-
let { render: r, ...i } = t, a = (0,
|
|
5128
|
-
|
|
5115
|
+
function Zl(e, t, n) {
|
|
5116
|
+
let { render: r, ...i } = t, a = (0, z.useRef)(null), o = (0, z.useMemo)(() => Nr(n, a), [n, a]);
|
|
5117
|
+
U(() => {}, [e, r]);
|
|
5129
5118
|
let s = {
|
|
5130
5119
|
...i,
|
|
5131
5120
|
ref: o
|
|
5132
5121
|
};
|
|
5133
|
-
return r ? r(s, void 0) : /*#__PURE__*/
|
|
5122
|
+
return r ? r(s, void 0) : /*#__PURE__*/ z.createElement(e, s);
|
|
5134
5123
|
}
|
|
5135
|
-
var
|
|
5124
|
+
var Ql = {}, $l = new Proxy({}, { get(e, t) {
|
|
5136
5125
|
if (typeof t != "string") return;
|
|
5137
|
-
let n =
|
|
5138
|
-
return n || (n = /*#__PURE__*/ (0,
|
|
5126
|
+
let n = Ql[t];
|
|
5127
|
+
return n || (n = /*#__PURE__*/ (0, z.forwardRef)(Zl.bind(null, t)), Ql[t] = n), n;
|
|
5139
5128
|
} });
|
|
5140
5129
|
//#endregion
|
|
5141
5130
|
//#region ../node_modules/.pnpm/@react-aria+collections@3.0.3_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/collections/dist/Hidden.mjs
|
|
@@ -5164,28 +5153,28 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
|
|
|
5164
5153
|
return this.content.insertBefore(e, t);
|
|
5165
5154
|
}
|
|
5166
5155
|
}));
|
|
5167
|
-
var
|
|
5168
|
-
function
|
|
5169
|
-
let t = (t, n) => (0,
|
|
5170
|
-
return t.displayName = e.displayName || e.name, (0,
|
|
5156
|
+
var eu = /*#__PURE__*/ (0, z.createContext)(!1);
|
|
5157
|
+
function tu(e) {
|
|
5158
|
+
let t = (t, n) => (0, z.useContext)(eu) ? null : e(t, n);
|
|
5159
|
+
return t.displayName = e.displayName || e.name, (0, z.forwardRef)(t);
|
|
5171
5160
|
}
|
|
5172
|
-
function
|
|
5173
|
-
return (0,
|
|
5161
|
+
function nu() {
|
|
5162
|
+
return (0, z.useContext)(eu);
|
|
5174
5163
|
}
|
|
5175
5164
|
//#endregion
|
|
5176
5165
|
//#region ../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-aria-components/dist/Label.mjs
|
|
5177
|
-
var
|
|
5178
|
-
[e, t] =
|
|
5179
|
-
let { elementType: n = "label", ...r } = e, i =
|
|
5180
|
-
return /*#__PURE__*/
|
|
5166
|
+
var ru = /*#__PURE__*/ (0, z.createContext)({}), iu = /*#__PURE__*/ tu(function(e, t) {
|
|
5167
|
+
[e, t] = Jl(e, t, ru);
|
|
5168
|
+
let { elementType: n = "label", ...r } = e, i = $l[n];
|
|
5169
|
+
return /*#__PURE__*/ z.createElement(i, {
|
|
5181
5170
|
className: "react-aria-Label",
|
|
5182
5171
|
...r,
|
|
5183
5172
|
ref: t
|
|
5184
5173
|
});
|
|
5185
|
-
}),
|
|
5186
|
-
[e, t] =
|
|
5174
|
+
}), au = /*#__PURE__*/ (0, z.createContext)(null), ou = /*#__PURE__*/ (0, z.createContext)({}), su = /*#__PURE__*/ tu(function(e, t) {
|
|
5175
|
+
[e, t] = Jl(e, t, ou);
|
|
5187
5176
|
let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = So(e, t);
|
|
5188
|
-
i =
|
|
5177
|
+
i = lu(i, r);
|
|
5189
5178
|
let { focusProps: o, isFocused: s, isFocusVisible: c } = Co(e), { hoverProps: l, isHovered: u } = Ja({
|
|
5190
5179
|
...e,
|
|
5191
5180
|
isDisabled: e.isDisabled || r
|
|
@@ -5196,14 +5185,14 @@ var au = /*#__PURE__*/ (0, R.createContext)({}), ou = /*#__PURE__*/ ru(function(
|
|
|
5196
5185
|
isFocusVisible: c,
|
|
5197
5186
|
isDisabled: e.isDisabled || !1,
|
|
5198
5187
|
isPending: r ?? !1
|
|
5199
|
-
}, f =
|
|
5188
|
+
}, f = Gl({
|
|
5200
5189
|
...e,
|
|
5201
5190
|
values: d,
|
|
5202
5191
|
defaultClassName: "react-aria-Button"
|
|
5203
|
-
}), p =
|
|
5192
|
+
}), p = Cr(i.id), m = Cr(), h = i["aria-labelledby"];
|
|
5204
5193
|
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
|
|
5205
|
-
let g = (0,
|
|
5206
|
-
(0,
|
|
5194
|
+
let g = (0, z.useRef)(r);
|
|
5195
|
+
(0, z.useEffect)(() => {
|
|
5207
5196
|
let e = { "aria-labelledby": h || p };
|
|
5208
5197
|
(!g.current && s && r || g.current && s && !r) && Eo(e, "assertive"), g.current = r;
|
|
5209
5198
|
}, [
|
|
@@ -5213,7 +5202,7 @@ var au = /*#__PURE__*/ (0, R.createContext)({}), ou = /*#__PURE__*/ ru(function(
|
|
|
5213
5202
|
p
|
|
5214
5203
|
]);
|
|
5215
5204
|
let _ = Vr(e, { global: !0 });
|
|
5216
|
-
return delete _.onClick, /*#__PURE__*/
|
|
5205
|
+
return delete _.onClick, /*#__PURE__*/ z.createElement($l.button, {
|
|
5217
5206
|
...J(_, f, i, o, l),
|
|
5218
5207
|
type: i.type === "submit" && r ? "button" : i.type,
|
|
5219
5208
|
id: p,
|
|
@@ -5227,45 +5216,45 @@ var au = /*#__PURE__*/ (0, R.createContext)({}), ou = /*#__PURE__*/ ru(function(
|
|
|
5227
5216
|
"data-focused": s || void 0,
|
|
5228
5217
|
"data-pending": r || void 0,
|
|
5229
5218
|
"data-focus-visible": c || void 0
|
|
5230
|
-
}, /*#__PURE__*/
|
|
5231
|
-
}),
|
|
5232
|
-
function
|
|
5219
|
+
}, /*#__PURE__*/ z.createElement(au.Provider, { value: { id: m } }, f.children));
|
|
5220
|
+
}), cu = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
|
|
5221
|
+
function lu(e, t) {
|
|
5233
5222
|
if (t) {
|
|
5234
|
-
for (let t in e) t.startsWith("on") && !
|
|
5223
|
+
for (let t in e) t.startsWith("on") && !cu.test(t) && (e[t] = void 0);
|
|
5235
5224
|
e.href = void 0, e.target = void 0;
|
|
5236
5225
|
}
|
|
5237
5226
|
return e;
|
|
5238
5227
|
}
|
|
5239
5228
|
//#endregion
|
|
5240
5229
|
//#region ../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-aria-components/dist/Text.mjs
|
|
5241
|
-
var
|
|
5242
|
-
[e, t] =
|
|
5243
|
-
let { elementType: n = "span", ...r } = e, i =
|
|
5244
|
-
return /*#__PURE__*/
|
|
5230
|
+
var uu = /*#__PURE__*/ (0, z.createContext)({}), du = /*#__PURE__*/ (0, z.forwardRef)(function(e, t) {
|
|
5231
|
+
[e, t] = Jl(e, t, uu);
|
|
5232
|
+
let { elementType: n = "span", ...r } = e, i = $l[n];
|
|
5233
|
+
return /*#__PURE__*/ z.createElement(i, {
|
|
5245
5234
|
className: "react-aria-Text",
|
|
5246
5235
|
...r,
|
|
5247
5236
|
ref: t
|
|
5248
5237
|
});
|
|
5249
|
-
}),
|
|
5250
|
-
return (0,
|
|
5238
|
+
}), fu = /*#__PURE__*/ (0, z.createContext)(null), pu = /*#__PURE__*/ (0, z.forwardRef)(function(e, t) {
|
|
5239
|
+
return (0, z.useContext)(fu)?.isInvalid ? /*#__PURE__*/ z.createElement(mu, {
|
|
5251
5240
|
...e,
|
|
5252
5241
|
ref: t
|
|
5253
5242
|
}) : null;
|
|
5254
|
-
}),
|
|
5255
|
-
let n = (0,
|
|
5243
|
+
}), mu = /*#__PURE__*/ (0, z.forwardRef)((e, t) => {
|
|
5244
|
+
let n = (0, z.useContext)(fu), r = Vr(e, { global: !0 }), i = Gl({
|
|
5256
5245
|
...e,
|
|
5257
5246
|
defaultClassName: "react-aria-FieldError",
|
|
5258
5247
|
defaultChildren: n.validationErrors.length === 0 ? void 0 : n.validationErrors.join(" "),
|
|
5259
5248
|
values: n
|
|
5260
5249
|
});
|
|
5261
|
-
return i.children == null ? null : /*#__PURE__*/
|
|
5250
|
+
return i.children == null ? null : /*#__PURE__*/ z.createElement(du, {
|
|
5262
5251
|
slot: "errorMessage",
|
|
5263
5252
|
...r,
|
|
5264
5253
|
...i,
|
|
5265
5254
|
ref: t
|
|
5266
5255
|
});
|
|
5267
|
-
}),
|
|
5268
|
-
[e, t] =
|
|
5256
|
+
}), hu = /*#__PURE__*/ (0, z.createContext)(null), gu = /*#__PURE__*/ (0, z.createContext)({}), _u = /*#__PURE__*/ (0, z.forwardRef)(function(e, t) {
|
|
5257
|
+
[e, t] = Jl(e, t, gu);
|
|
5269
5258
|
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
|
|
5270
5259
|
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
|
|
5271
5260
|
let { hoverProps: l, isHovered: u } = Ja({
|
|
@@ -5273,7 +5262,7 @@ var fu = /*#__PURE__*/ (0, R.createContext)({}), pu = /*#__PURE__*/ (0, R.forwar
|
|
|
5273
5262
|
onHoverChange: o,
|
|
5274
5263
|
onHoverEnd: s,
|
|
5275
5264
|
isDisabled: n
|
|
5276
|
-
}), { isFocused: d, isFocusVisible: f, focusProps: p } = Co({ within: !0 }), m =
|
|
5265
|
+
}), { isFocused: d, isFocusVisible: f, focusProps: p } = Co({ within: !0 }), m = Gl({
|
|
5277
5266
|
...e,
|
|
5278
5267
|
values: {
|
|
5279
5268
|
isHovered: u,
|
|
@@ -5284,7 +5273,7 @@ var fu = /*#__PURE__*/ (0, R.createContext)({}), pu = /*#__PURE__*/ (0, R.forwar
|
|
|
5284
5273
|
},
|
|
5285
5274
|
defaultClassName: "react-aria-Group"
|
|
5286
5275
|
});
|
|
5287
|
-
return /*#__PURE__*/
|
|
5276
|
+
return /*#__PURE__*/ z.createElement($l.div, {
|
|
5288
5277
|
...J(c, p, l),
|
|
5289
5278
|
...m,
|
|
5290
5279
|
ref: t,
|
|
@@ -5297,18 +5286,18 @@ var fu = /*#__PURE__*/ (0, R.createContext)({}), pu = /*#__PURE__*/ (0, R.forwar
|
|
|
5297
5286
|
"data-invalid": r || void 0,
|
|
5298
5287
|
"data-readonly": i || void 0
|
|
5299
5288
|
}, m.children);
|
|
5300
|
-
}),
|
|
5289
|
+
}), vu = /*#__PURE__*/ (0, z.createContext)({}), yu = (e) => {
|
|
5301
5290
|
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
|
|
5302
5291
|
return i;
|
|
5303
|
-
},
|
|
5304
|
-
[e, t] =
|
|
5292
|
+
}, bu = /*#__PURE__*/ tu(function(e, t) {
|
|
5293
|
+
[e, t] = Jl(e, t, vu);
|
|
5305
5294
|
let { hoverProps: n, isHovered: r } = Ja({
|
|
5306
5295
|
...e,
|
|
5307
5296
|
isDisabled: e.disabled
|
|
5308
5297
|
}), { isFocused: i, isFocusVisible: a, focusProps: o } = Co({
|
|
5309
5298
|
isTextInput: !0,
|
|
5310
5299
|
autoFocus: e.autoFocus
|
|
5311
|
-
}), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c =
|
|
5300
|
+
}), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Gl({
|
|
5312
5301
|
...e,
|
|
5313
5302
|
values: {
|
|
5314
5303
|
isHovered: r,
|
|
@@ -5319,8 +5308,8 @@ var fu = /*#__PURE__*/ (0, R.createContext)({}), pu = /*#__PURE__*/ (0, R.forwar
|
|
|
5319
5308
|
},
|
|
5320
5309
|
defaultClassName: "react-aria-Input"
|
|
5321
5310
|
});
|
|
5322
|
-
return /*#__PURE__*/
|
|
5323
|
-
...J(
|
|
5311
|
+
return /*#__PURE__*/ z.createElement($l.input, {
|
|
5312
|
+
...J(yu(e), o, n),
|
|
5324
5313
|
...c,
|
|
5325
5314
|
ref: t,
|
|
5326
5315
|
"data-focused": i || void 0,
|
|
@@ -5329,17 +5318,17 @@ var fu = /*#__PURE__*/ (0, R.createContext)({}), pu = /*#__PURE__*/ (0, R.forwar
|
|
|
5329
5318
|
"data-focus-visible": a || void 0,
|
|
5330
5319
|
"data-invalid": s || void 0
|
|
5331
5320
|
});
|
|
5332
|
-
}),
|
|
5333
|
-
[e, t] =
|
|
5334
|
-
let { validationBehavior: n } =
|
|
5321
|
+
}), xu = /*#__PURE__*/ (0, z.createContext)(null), Su = /*#__PURE__*/ (0, z.createContext)(null), Cu = /*#__PURE__*/ (0, z.forwardRef)(function(e, t) {
|
|
5322
|
+
[e, t] = Jl(e, t, xu);
|
|
5323
|
+
let { validationBehavior: n } = ql(hu) || {}, r = e.validationBehavior ?? n ?? "native", { locale: i } = g(), a = qo({
|
|
5335
5324
|
...e,
|
|
5336
5325
|
locale: i,
|
|
5337
5326
|
validationBehavior: r
|
|
5338
|
-
}), o = (0,
|
|
5339
|
-
...
|
|
5327
|
+
}), o = (0, z.useRef)(null), [s, c] = Yl(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: l, groupProps: u, inputProps: d, incrementButtonProps: f, decrementButtonProps: p, descriptionProps: m, errorMessageProps: h, ..._ } = vc({
|
|
5328
|
+
...Xl(e),
|
|
5340
5329
|
label: c,
|
|
5341
5330
|
validationBehavior: r
|
|
5342
|
-
}, a, o), v =
|
|
5331
|
+
}, a, o), v = Gl({
|
|
5343
5332
|
...e,
|
|
5344
5333
|
values: {
|
|
5345
5334
|
state: a,
|
|
@@ -5349,27 +5338,27 @@ var fu = /*#__PURE__*/ (0, R.createContext)({}), pu = /*#__PURE__*/ (0, R.forwar
|
|
|
5349
5338
|
},
|
|
5350
5339
|
defaultClassName: "react-aria-NumberField"
|
|
5351
5340
|
}), y = Vr(e, { global: !0 });
|
|
5352
|
-
return delete y.id, /*#__PURE__*/
|
|
5353
|
-
[
|
|
5354
|
-
[
|
|
5355
|
-
[
|
|
5341
|
+
return delete y.id, /*#__PURE__*/ z.createElement(Wl, { values: [
|
|
5342
|
+
[Su, a],
|
|
5343
|
+
[gu, u],
|
|
5344
|
+
[vu, {
|
|
5356
5345
|
...d,
|
|
5357
5346
|
ref: o
|
|
5358
5347
|
}],
|
|
5359
|
-
[
|
|
5348
|
+
[ru, {
|
|
5360
5349
|
...l,
|
|
5361
5350
|
ref: s
|
|
5362
5351
|
}],
|
|
5363
|
-
[
|
|
5352
|
+
[ou, { slots: {
|
|
5364
5353
|
increment: f,
|
|
5365
5354
|
decrement: p
|
|
5366
5355
|
} }],
|
|
5367
|
-
[
|
|
5356
|
+
[uu, { slots: {
|
|
5368
5357
|
description: m,
|
|
5369
5358
|
errorMessage: h
|
|
5370
5359
|
} }],
|
|
5371
|
-
[
|
|
5372
|
-
] }, /*#__PURE__*/
|
|
5360
|
+
[fu, _]
|
|
5361
|
+
] }, /*#__PURE__*/ z.createElement($l.div, {
|
|
5373
5362
|
...y,
|
|
5374
5363
|
...v,
|
|
5375
5364
|
ref: t,
|
|
@@ -5377,155 +5366,14 @@ var fu = /*#__PURE__*/ (0, R.createContext)({}), pu = /*#__PURE__*/ (0, R.forwar
|
|
|
5377
5366
|
"data-disabled": e.isDisabled || void 0,
|
|
5378
5367
|
"data-required": e.isRequired || void 0,
|
|
5379
5368
|
"data-invalid": _.isInvalid || void 0
|
|
5380
|
-
}), e.name && /*#__PURE__*/
|
|
5369
|
+
}), e.name && /*#__PURE__*/ z.createElement("input", {
|
|
5381
5370
|
type: "hidden",
|
|
5382
5371
|
name: e.name,
|
|
5383
5372
|
form: e.form,
|
|
5384
5373
|
value: isNaN(a.numberValue) ? "" : a.numberValue,
|
|
5385
5374
|
disabled: e.isDisabled || void 0
|
|
5386
5375
|
}));
|
|
5387
|
-
}),
|
|
5388
|
-
let n = (0, X.c)(17), r, i, a, o, s;
|
|
5389
|
-
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5]) : ({className: i, inset: a, showChevron: s, children: r, ...o} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s);
|
|
5390
|
-
let c = s === void 0 || s, l;
|
|
5391
|
-
n[6] !== i || n[7] !== a ? (l = A({
|
|
5392
|
-
className: i,
|
|
5393
|
-
inset: a
|
|
5394
|
-
}), n[6] = i, n[7] = a, n[8] = l) : l = n[8];
|
|
5395
|
-
let u;
|
|
5396
|
-
n[9] === c ? u = n[10] : (u = c && /* @__PURE__ */ (0, z.jsx)(ye, { className: "ml-auto h-4 w-4" }), n[9] = c, n[10] = u);
|
|
5397
|
-
let d;
|
|
5398
|
-
return n[11] !== r || n[12] !== o || n[13] !== t || n[14] !== l || n[15] !== u ? (d = /* @__PURE__ */ (0, z.jsxs)(vr, {
|
|
5399
|
-
ref: t,
|
|
5400
|
-
className: l,
|
|
5401
|
-
...o,
|
|
5402
|
-
children: [r, u]
|
|
5403
|
-
}), n[11] = r, n[12] = o, n[13] = t, n[14] = l, n[15] = u, n[16] = d) : d = n[16], d;
|
|
5404
|
-
});
|
|
5405
|
-
Nu.displayName = vr.displayName;
|
|
5406
|
-
var Pu = R.forwardRef((e, t) => {
|
|
5407
|
-
let n = (0, X.c)(9), i, a;
|
|
5408
|
-
n[0] === e ? (i = n[1], a = n[2]) : ({className: i, ...a} = e, n[0] = e, n[1] = i, n[2] = a);
|
|
5409
|
-
let o;
|
|
5410
|
-
n[3] === i ? o = n[4] : (o = r(T({ subcontent: !0 }), "animate-in data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1", i), n[3] = i, n[4] = o);
|
|
5411
|
-
let s;
|
|
5412
|
-
return n[5] !== a || n[6] !== t || n[7] !== o ? (s = /* @__PURE__ */ (0, z.jsx)(ju, {
|
|
5413
|
-
ref: t,
|
|
5414
|
-
className: o,
|
|
5415
|
-
...a
|
|
5416
|
-
}), n[5] = a, n[6] = t, n[7] = o, n[8] = s) : s = n[8], s;
|
|
5417
|
-
});
|
|
5418
|
-
Pu.displayName = yr.displayName;
|
|
5419
|
-
var Fu = R.forwardRef((e, t) => {
|
|
5420
|
-
let n = (0, X.c)(17), i, a, o, s;
|
|
5421
|
-
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({className: i, scrollable: o, sideOffset: s, ...a} = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
|
|
5422
|
-
let c = o === void 0 || o, l = s === void 0 ? 4 : s, u;
|
|
5423
|
-
n[5] !== i || n[6] !== c ? (u = r(T(), "animate-in 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 print:hidden", c && "overflow-auto", i), n[5] = i, n[6] = c, n[7] = u) : u = n[7];
|
|
5424
|
-
let d = c ? `calc(var(--radix-dropdown-menu-content-available-height) - ${me}px)` : void 0, f;
|
|
5425
|
-
n[8] !== a.style || n[9] !== d ? (f = {
|
|
5426
|
-
...a.style,
|
|
5427
|
-
maxHeight: d
|
|
5428
|
-
}, n[8] = a.style, n[9] = d, n[10] = f) : f = n[10];
|
|
5429
|
-
let p;
|
|
5430
|
-
return n[11] !== a || n[12] !== t || n[13] !== l || n[14] !== u || n[15] !== f ? (p = /* @__PURE__ */ (0, z.jsx)(ku, { children: /* @__PURE__ */ (0, z.jsx)(fe, { children: /* @__PURE__ */ (0, z.jsx)(Au, {
|
|
5431
|
-
ref: t,
|
|
5432
|
-
sideOffset: l,
|
|
5433
|
-
className: u,
|
|
5434
|
-
style: f,
|
|
5435
|
-
...a
|
|
5436
|
-
}) }) }), n[11] = a, n[12] = t, n[13] = l, n[14] = u, n[15] = f, n[16] = p) : p = n[16], p;
|
|
5437
|
-
});
|
|
5438
|
-
Fu.displayName = lr.displayName;
|
|
5439
|
-
var Iu = R.forwardRef((e, t) => {
|
|
5440
|
-
let n = (0, X.c)(13), r, i, a, o;
|
|
5441
|
-
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4]) : ({className: r, inset: i, variant: o, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o);
|
|
5442
|
-
let s;
|
|
5443
|
-
n[5] !== r || n[6] !== i || n[7] !== o ? (s = O({
|
|
5444
|
-
className: r,
|
|
5445
|
-
inset: i,
|
|
5446
|
-
variant: o
|
|
5447
|
-
}), n[5] = r, n[6] = i, n[7] = o, n[8] = s) : s = n[8];
|
|
5448
|
-
let c;
|
|
5449
|
-
return n[9] !== a || n[10] !== t || n[11] !== s ? (c = /* @__PURE__ */ (0, z.jsx)(fr, {
|
|
5450
|
-
ref: t,
|
|
5451
|
-
className: s,
|
|
5452
|
-
...a
|
|
5453
|
-
}), n[9] = a, n[10] = t, n[11] = s, n[12] = c) : c = n[12], c;
|
|
5454
|
-
});
|
|
5455
|
-
Iu.displayName = fr.displayName;
|
|
5456
|
-
var Lu = R.forwardRef((e, t) => {
|
|
5457
|
-
let n = (0, X.c)(15), r, i, a, o;
|
|
5458
|
-
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4]) : ({className: a, children: i, checked: r, ...o} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o);
|
|
5459
|
-
let s;
|
|
5460
|
-
n[5] === a ? s = n[6] : (s = C({ className: a }), n[5] = a, n[6] = s);
|
|
5461
|
-
let c;
|
|
5462
|
-
n[7] === Symbol.for("react.memo_cache_sentinel") ? (c = w(), n[7] = c) : c = n[7];
|
|
5463
|
-
let l;
|
|
5464
|
-
n[8] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, z.jsx)("span", {
|
|
5465
|
-
className: c,
|
|
5466
|
-
children: /* @__PURE__ */ (0, z.jsx)(hr, { children: /* @__PURE__ */ (0, z.jsx)(h, { className: "h-4 w-4" }) })
|
|
5467
|
-
}), n[8] = l) : l = n[8];
|
|
5468
|
-
let u;
|
|
5469
|
-
return n[9] !== r || n[10] !== i || n[11] !== o || n[12] !== t || n[13] !== s ? (u = /* @__PURE__ */ (0, z.jsxs)(pr, {
|
|
5470
|
-
ref: t,
|
|
5471
|
-
className: s,
|
|
5472
|
-
checked: r,
|
|
5473
|
-
...o,
|
|
5474
|
-
children: [l, i]
|
|
5475
|
-
}), n[9] = r, n[10] = i, n[11] = o, n[12] = t, n[13] = s, n[14] = u) : u = n[14], u;
|
|
5476
|
-
});
|
|
5477
|
-
Lu.displayName = pr.displayName;
|
|
5478
|
-
var Ru = R.forwardRef((e, t) => {
|
|
5479
|
-
let n = (0, X.c)(13), r, i, a;
|
|
5480
|
-
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: i, children: r, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
5481
|
-
let o;
|
|
5482
|
-
n[4] === i ? o = n[5] : (o = C({ className: i }), n[4] = i, n[5] = o);
|
|
5483
|
-
let s;
|
|
5484
|
-
n[6] === Symbol.for("react.memo_cache_sentinel") ? (s = w(), n[6] = s) : s = n[6];
|
|
5485
|
-
let c;
|
|
5486
|
-
n[7] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, z.jsx)("span", {
|
|
5487
|
-
className: s,
|
|
5488
|
-
children: /* @__PURE__ */ (0, z.jsx)(hr, { children: /* @__PURE__ */ (0, z.jsx)(be, { className: "h-2 w-2 fill-current" }) })
|
|
5489
|
-
}), n[7] = c) : c = n[7];
|
|
5490
|
-
let l;
|
|
5491
|
-
return n[8] !== r || n[9] !== a || n[10] !== t || n[11] !== o ? (l = /* @__PURE__ */ (0, z.jsxs)(mr, {
|
|
5492
|
-
ref: t,
|
|
5493
|
-
className: o,
|
|
5494
|
-
...a,
|
|
5495
|
-
children: [c, r]
|
|
5496
|
-
}), n[8] = r, n[9] = a, n[10] = t, n[11] = o, n[12] = l) : l = n[12], l;
|
|
5497
|
-
});
|
|
5498
|
-
Ru.displayName = mr.displayName;
|
|
5499
|
-
var zu = R.forwardRef((e, t) => {
|
|
5500
|
-
let n = (0, X.c)(11), r, i, a;
|
|
5501
|
-
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, inset: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
5502
|
-
let o;
|
|
5503
|
-
n[4] !== r || n[5] !== i ? (o = j({
|
|
5504
|
-
className: r,
|
|
5505
|
-
inset: i
|
|
5506
|
-
}), n[4] = r, n[5] = i, n[6] = o) : o = n[6];
|
|
5507
|
-
let s;
|
|
5508
|
-
return n[7] !== a || n[8] !== t || n[9] !== o ? (s = /* @__PURE__ */ (0, z.jsx)(dr, {
|
|
5509
|
-
ref: t,
|
|
5510
|
-
className: o,
|
|
5511
|
-
...a
|
|
5512
|
-
}), n[7] = a, n[8] = t, n[9] = o, n[10] = s) : s = n[10], s;
|
|
5513
|
-
});
|
|
5514
|
-
zu.displayName = dr.displayName;
|
|
5515
|
-
var Bu = R.forwardRef((e, t) => {
|
|
5516
|
-
let n = (0, X.c)(9), r, i;
|
|
5517
|
-
n[0] === e ? (r = n[1], i = n[2]) : ({className: r, ...i} = e, n[0] = e, n[1] = r, n[2] = i);
|
|
5518
|
-
let a;
|
|
5519
|
-
n[3] === r ? a = n[4] : (a = ee({ className: r }), n[3] = r, n[4] = a);
|
|
5520
|
-
let o;
|
|
5521
|
-
return n[5] !== i || n[6] !== t || n[7] !== a ? (o = /* @__PURE__ */ (0, z.jsx)(gr, {
|
|
5522
|
-
ref: t,
|
|
5523
|
-
className: a,
|
|
5524
|
-
...i
|
|
5525
|
-
}), n[5] = i, n[6] = t, n[7] = a, n[8] = o) : o = n[8], o;
|
|
5526
|
-
});
|
|
5527
|
-
Bu.displayName = gr.displayName;
|
|
5528
|
-
var Vu = D, Hu = ve((e) => {
|
|
5376
|
+
}), wu = _e((e) => {
|
|
5529
5377
|
for (let t of [
|
|
5530
5378
|
100,
|
|
5531
5379
|
20,
|
|
@@ -5541,30 +5389,30 @@ var Vu = D, Hu = ve((e) => {
|
|
|
5541
5389
|
}
|
|
5542
5390
|
return 0;
|
|
5543
5391
|
});
|
|
5544
|
-
function
|
|
5392
|
+
function Tu(e) {
|
|
5545
5393
|
if (!Number.isFinite(e) || e === 0) return 0;
|
|
5546
5394
|
let t = e.toFixed(12).replace(/\.?0+$/, ""), n = t.indexOf(".");
|
|
5547
5395
|
return n === -1 ? 0 : t.length - n - 1;
|
|
5548
5396
|
}
|
|
5549
|
-
function
|
|
5550
|
-
let n =
|
|
5551
|
-
for (let t of e) n = Math.max(n,
|
|
5397
|
+
function Eu(e, t) {
|
|
5398
|
+
let n = Tu(t);
|
|
5399
|
+
for (let t of e) n = Math.max(n, Tu(t));
|
|
5552
5400
|
return n;
|
|
5553
5401
|
}
|
|
5554
|
-
function
|
|
5402
|
+
function Du(e, t) {
|
|
5555
5403
|
return Number(e.toFixed(t));
|
|
5556
5404
|
}
|
|
5557
|
-
function
|
|
5405
|
+
function Ou(e, t) {
|
|
5558
5406
|
return e == null ? "" : Array.isArray(e) ? String(e) : typeof e == "string" ? e : typeof e == "boolean" ? String(e) : typeof e == "number" || typeof e == "bigint" ? e.toLocaleString(t, {
|
|
5559
5407
|
minimumFractionDigits: 0,
|
|
5560
5408
|
maximumFractionDigits: 2
|
|
5561
5409
|
}) : String(e);
|
|
5562
5410
|
}
|
|
5563
|
-
function
|
|
5411
|
+
function ku(e) {
|
|
5564
5412
|
return e === 0 ? "0" : Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? null : e > 0 ? "Infinity" : "-Infinity";
|
|
5565
5413
|
}
|
|
5566
|
-
function
|
|
5567
|
-
let n =
|
|
5414
|
+
function Au(e, t) {
|
|
5415
|
+
let n = ku(e);
|
|
5568
5416
|
if (n !== null) return n;
|
|
5569
5417
|
let r = Math.abs(e);
|
|
5570
5418
|
if (r < .01 || r >= 1e6) return new Intl.NumberFormat(t.locale, {
|
|
@@ -5578,10 +5426,10 @@ function Ju(e, t) {
|
|
|
5578
5426
|
maximumFractionDigits: 2
|
|
5579
5427
|
}).format(e) : e.toLocaleString(a, {
|
|
5580
5428
|
minimumFractionDigits: 0,
|
|
5581
|
-
maximumFractionDigits:
|
|
5429
|
+
maximumFractionDigits: wu(a)
|
|
5582
5430
|
});
|
|
5583
5431
|
}
|
|
5584
|
-
var
|
|
5432
|
+
var ju = {
|
|
5585
5433
|
24: "Y",
|
|
5586
5434
|
21: "Z",
|
|
5587
5435
|
18: "E",
|
|
@@ -5600,22 +5448,22 @@ var Yu = {
|
|
|
5600
5448
|
"-21": "z",
|
|
5601
5449
|
"-24": "y"
|
|
5602
5450
|
};
|
|
5603
|
-
function
|
|
5604
|
-
let n =
|
|
5451
|
+
function Mu(e, t) {
|
|
5452
|
+
let n = ku(e);
|
|
5605
5453
|
if (n !== null) return n;
|
|
5606
5454
|
let [r, i] = new Intl.NumberFormat(t, {
|
|
5607
5455
|
notation: "engineering",
|
|
5608
5456
|
maximumSignificantDigits: 3
|
|
5609
5457
|
}).format(e).split("E");
|
|
5610
|
-
return i in
|
|
5458
|
+
return i in ju ? r + ju[i] : `${r}E${i}`;
|
|
5611
5459
|
}
|
|
5612
5460
|
//#endregion
|
|
5613
5461
|
//#region src/components/ui/number-field.tsx
|
|
5614
|
-
var
|
|
5462
|
+
var Nu = z.forwardRef((e, t) => {
|
|
5615
5463
|
let n = (0, X.c)(53), i, a, o, s, c;
|
|
5616
5464
|
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4], c = n[5]) : ({placeholder: o, variant: c, onInputText: a, formatOptions: i, ...s} = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s, n[5] = c);
|
|
5617
5465
|
let l = c === void 0 ? "default" : c, { locale: u } = g(), d;
|
|
5618
|
-
n[6] === u ? d = n[7] : (d =
|
|
5466
|
+
n[6] === u ? d = n[7] : (d = wu(u), n[6] = u, n[7] = d);
|
|
5619
5467
|
let f;
|
|
5620
5468
|
n[8] !== i || n[9] !== d ? (f = {
|
|
5621
5469
|
minimumFractionDigits: 0,
|
|
@@ -5629,89 +5477,89 @@ var Zu = R.forwardRef((e, t) => {
|
|
|
5629
5477
|
let b = l === "default" ? "px-1.5" : "px-1", S;
|
|
5630
5478
|
n[17] === b ? S = n[18] : (S = r("flex-1", "w-full", "placeholder:text-muted-foreground", "outline-hidden", "disabled:cursor-not-allowed disabled:opacity-50", b), n[17] = b, n[18] = S);
|
|
5631
5479
|
let C;
|
|
5632
|
-
n[19] !== o || n[20] !== s.isDisabled || n[21] !== t || n[22] !== S || n[23] !== v ? (C = /* @__PURE__ */ (0,
|
|
5480
|
+
n[19] !== o || n[20] !== s.isDisabled || n[21] !== t || n[22] !== S || n[23] !== v ? (C = /* @__PURE__ */ (0, B.jsx)(bu, {
|
|
5633
5481
|
ref: t,
|
|
5634
5482
|
disabled: _,
|
|
5635
5483
|
placeholder: o,
|
|
5636
|
-
onKeyDown:
|
|
5484
|
+
onKeyDown: Fu,
|
|
5637
5485
|
onInput: v,
|
|
5638
5486
|
className: S
|
|
5639
5487
|
}), n[19] = o, n[20] = s.isDisabled, n[21] = t, n[22] = S, n[23] = v, n[24] = C) : C = n[24];
|
|
5640
|
-
let
|
|
5641
|
-
n[25] ===
|
|
5642
|
-
let E;
|
|
5643
|
-
n[27] === T ? E = n[28] : (E = /* @__PURE__ */ (0, z.jsx)(y, {
|
|
5644
|
-
"aria-hidden": !0,
|
|
5645
|
-
className: T
|
|
5646
|
-
}), n[27] = T, n[28] = E);
|
|
5488
|
+
let w = s.isDisabled, T = l === "xs" && "w-2 h-2", E;
|
|
5489
|
+
n[25] === T ? E = n[26] : (E = r("w-3 h-3 -mb-px", T), n[25] = T, n[26] = E);
|
|
5647
5490
|
let D;
|
|
5648
|
-
n[
|
|
5491
|
+
n[27] === E ? D = n[28] : (D = /* @__PURE__ */ (0, B.jsx)(y, {
|
|
5492
|
+
"aria-hidden": !0,
|
|
5493
|
+
className: E
|
|
5494
|
+
}), n[27] = E, n[28] = D);
|
|
5495
|
+
let O;
|
|
5496
|
+
n[29] !== s.isDisabled || n[30] !== D || n[31] !== l ? (O = /* @__PURE__ */ (0, B.jsx)(Pu, {
|
|
5649
5497
|
slot: "increment",
|
|
5650
|
-
isDisabled:
|
|
5498
|
+
isDisabled: w,
|
|
5651
5499
|
variant: l,
|
|
5652
5500
|
excludeFromTabOrder: !0,
|
|
5653
|
-
children:
|
|
5654
|
-
}), n[29] = s.isDisabled, n[30] =
|
|
5655
|
-
let
|
|
5656
|
-
n[33] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
5657
|
-
let
|
|
5658
|
-
n[34] ===
|
|
5659
|
-
let M;
|
|
5660
|
-
n[36] === j ? M = n[37] : (M = /* @__PURE__ */ (0, z.jsx)(x, {
|
|
5661
|
-
"aria-hidden": !0,
|
|
5662
|
-
className: j
|
|
5663
|
-
}), n[36] = j, n[37] = M);
|
|
5501
|
+
children: D
|
|
5502
|
+
}), n[29] = s.isDisabled, n[30] = D, n[31] = l, n[32] = O) : O = n[32];
|
|
5503
|
+
let k;
|
|
5504
|
+
n[33] === Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ (0, B.jsx)("div", { className: "h-px shrink-0 divider bg-border z-10" }), n[33] = k) : k = n[33];
|
|
5505
|
+
let A = s.isDisabled, j = l === "xs" && "w-2 h-2", M;
|
|
5506
|
+
n[34] === j ? M = n[35] : (M = r("w-3 h-3 -mt-px", j), n[34] = j, n[35] = M);
|
|
5664
5507
|
let N;
|
|
5665
|
-
n[
|
|
5508
|
+
n[36] === M ? N = n[37] : (N = /* @__PURE__ */ (0, B.jsx)(x, {
|
|
5509
|
+
"aria-hidden": !0,
|
|
5510
|
+
className: M
|
|
5511
|
+
}), n[36] = M, n[37] = N);
|
|
5512
|
+
let P;
|
|
5513
|
+
n[38] !== s.isDisabled || n[39] !== N || n[40] !== l ? (P = /* @__PURE__ */ (0, B.jsx)(Pu, {
|
|
5666
5514
|
slot: "decrement",
|
|
5667
|
-
isDisabled:
|
|
5515
|
+
isDisabled: A,
|
|
5668
5516
|
variant: l,
|
|
5669
5517
|
excludeFromTabOrder: !0,
|
|
5670
|
-
children:
|
|
5671
|
-
}), n[38] = s.isDisabled, n[39] =
|
|
5672
|
-
let
|
|
5673
|
-
n[42] !==
|
|
5518
|
+
children: N
|
|
5519
|
+
}), n[38] = s.isDisabled, n[39] = N, n[40] = l, n[41] = P) : P = n[41];
|
|
5520
|
+
let F;
|
|
5521
|
+
n[42] !== O || n[43] !== P ? (F = /* @__PURE__ */ (0, B.jsxs)("div", {
|
|
5674
5522
|
className: "flex flex-col border-s-2",
|
|
5675
5523
|
children: [
|
|
5676
|
-
D,
|
|
5677
5524
|
O,
|
|
5678
|
-
|
|
5525
|
+
k,
|
|
5526
|
+
P
|
|
5679
5527
|
]
|
|
5680
|
-
}), n[42] =
|
|
5681
|
-
let F;
|
|
5682
|
-
n[45] !== C || n[46] !== P || n[47] !== h ? (F = /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
5683
|
-
className: h,
|
|
5684
|
-
children: [C, P]
|
|
5685
|
-
}), n[45] = C, n[46] = P, n[47] = h, n[48] = F) : F = n[48];
|
|
5528
|
+
}), n[42] = O, n[43] = P, n[44] = F) : F = n[44];
|
|
5686
5529
|
let I;
|
|
5687
|
-
|
|
5530
|
+
n[45] !== C || n[46] !== F || n[47] !== h ? (I = /* @__PURE__ */ (0, B.jsxs)("div", {
|
|
5531
|
+
className: h,
|
|
5532
|
+
children: [C, F]
|
|
5533
|
+
}), n[45] = C, n[46] = F, n[47] = h, n[48] = I) : I = n[48];
|
|
5534
|
+
let L;
|
|
5535
|
+
return n[49] !== s || n[50] !== I || n[51] !== f ? (L = /* @__PURE__ */ (0, B.jsx)(Cu, {
|
|
5688
5536
|
...s,
|
|
5689
5537
|
formatOptions: f,
|
|
5690
|
-
children:
|
|
5691
|
-
}), n[49] = s, n[50] =
|
|
5538
|
+
children: I
|
|
5539
|
+
}), n[49] = s, n[50] = I, n[51] = f, n[52] = L) : L = n[52], L;
|
|
5692
5540
|
});
|
|
5693
|
-
|
|
5694
|
-
var
|
|
5541
|
+
Nu.displayName = "NumberField";
|
|
5542
|
+
var Pu = (e) => {
|
|
5695
5543
|
let t = (0, X.c)(6), n = !e.isDisabled && "hover:text-primary hover:bg-muted", i = e.variant === "default" ? "px-0.5" : "px-0.25", a;
|
|
5696
5544
|
t[0] !== n || t[1] !== i ? (a = r("cursor-default text-muted-foreground pressed:bg-muted-foreground group-disabled:text-disabled-foreground outline-hidden focus-visible:text-primary", "disabled:cursor-not-allowed disabled:opacity-50", n, i), t[0] = n, t[1] = i, t[2] = a) : a = t[2];
|
|
5697
5545
|
let o;
|
|
5698
|
-
return t[3] !== e || t[4] !== a ? (o = /* @__PURE__ */ (0,
|
|
5546
|
+
return t[3] !== e || t[4] !== a ? (o = /* @__PURE__ */ (0, B.jsx)(su, {
|
|
5699
5547
|
...e,
|
|
5700
5548
|
className: a
|
|
5701
5549
|
}), t[3] = e, t[4] = a, t[5] = o) : o = t[5], o;
|
|
5702
5550
|
};
|
|
5703
|
-
function
|
|
5551
|
+
function Fu(e) {
|
|
5704
5552
|
(e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
|
|
5705
5553
|
}
|
|
5706
5554
|
//#endregion
|
|
5707
5555
|
//#region src/components/ui/input.tsx
|
|
5708
|
-
var
|
|
5556
|
+
var Iu = z.forwardRef((e, t) => {
|
|
5709
5557
|
let n = (0, X.c)(29), a, o, s, c;
|
|
5710
5558
|
n[0] === e ? (a = n[1], o = n[2], s = n[3], c = n[4]) : ({className: a, type: c, endAdornment: o, ...s} = e, n[0] = e, n[1] = a, n[2] = o, n[3] = s, n[4] = c);
|
|
5711
5559
|
let l = s.icon;
|
|
5712
5560
|
if (c === "hidden") {
|
|
5713
5561
|
let e;
|
|
5714
|
-
return n[5] !== s || n[6] !== t ? (e = /* @__PURE__ */ (0,
|
|
5562
|
+
return n[5] !== s || n[6] !== t ? (e = /* @__PURE__ */ (0, B.jsx)("input", {
|
|
5715
5563
|
type: "hidden",
|
|
5716
5564
|
ref: t,
|
|
5717
5565
|
...s
|
|
@@ -5720,7 +5568,7 @@ var ed = R.forwardRef((e, t) => {
|
|
|
5720
5568
|
let u;
|
|
5721
5569
|
n[8] === s.rootClassName ? u = n[9] : (u = r("relative", s.rootClassName), n[8] = s.rootClassName, n[9] = u);
|
|
5722
5570
|
let d;
|
|
5723
|
-
n[10] === l ? d = n[11] : (d = l && /* @__PURE__ */ (0,
|
|
5571
|
+
n[10] === l ? d = n[11] : (d = l && /* @__PURE__ */ (0, B.jsx)("div", {
|
|
5724
5572
|
className: "absolute inset-y-0 left-0 flex items-center pl-[6px] pointer-events-none text-muted-foreground",
|
|
5725
5573
|
children: l
|
|
5726
5574
|
}), n[10] = l, n[11] = d);
|
|
@@ -5729,7 +5577,7 @@ var ed = R.forwardRef((e, t) => {
|
|
|
5729
5577
|
let h;
|
|
5730
5578
|
n[16] === Symbol.for("react.memo_cache_sentinel") ? (h = i.stopPropagation(), n[16] = h) : h = n[16];
|
|
5731
5579
|
let g;
|
|
5732
|
-
n[17] !== s || n[18] !== t || n[19] !== m || n[20] !== c ? (g = /* @__PURE__ */ (0,
|
|
5580
|
+
n[17] !== s || n[18] !== t || n[19] !== m || n[20] !== c ? (g = /* @__PURE__ */ (0, B.jsx)("input", {
|
|
5733
5581
|
type: c,
|
|
5734
5582
|
className: m,
|
|
5735
5583
|
ref: t,
|
|
@@ -5737,12 +5585,12 @@ var ed = R.forwardRef((e, t) => {
|
|
|
5737
5585
|
...s
|
|
5738
5586
|
}), n[17] = s, n[18] = t, n[19] = m, n[20] = c, n[21] = g) : g = n[21];
|
|
5739
5587
|
let _;
|
|
5740
|
-
n[22] === o ? _ = n[23] : (_ = o && /* @__PURE__ */ (0,
|
|
5588
|
+
n[22] === o ? _ = n[23] : (_ = o && /* @__PURE__ */ (0, B.jsx)("div", {
|
|
5741
5589
|
className: "absolute inset-y-0 right-0 flex items-center pr-[6px] text-muted-foreground h-6",
|
|
5742
5590
|
children: o
|
|
5743
5591
|
}), n[22] = o, n[23] = _);
|
|
5744
5592
|
let v;
|
|
5745
|
-
return n[24] !== u || n[25] !== d || n[26] !== g || n[27] !== _ ? (v = /* @__PURE__ */ (0,
|
|
5593
|
+
return n[24] !== u || n[25] !== d || n[26] !== g || n[27] !== _ ? (v = /* @__PURE__ */ (0, B.jsxs)("div", {
|
|
5746
5594
|
className: u,
|
|
5747
5595
|
children: [
|
|
5748
5596
|
d,
|
|
@@ -5751,8 +5599,8 @@ var ed = R.forwardRef((e, t) => {
|
|
|
5751
5599
|
]
|
|
5752
5600
|
}), n[24] = u, n[25] = d, n[26] = g, n[27] = _, n[28] = v) : v = n[28], v;
|
|
5753
5601
|
});
|
|
5754
|
-
|
|
5755
|
-
var
|
|
5602
|
+
Iu.displayName = "Input";
|
|
5603
|
+
var Lu = z.forwardRef((e, t) => {
|
|
5756
5604
|
let n = (0, X.c)(16), r, i, a;
|
|
5757
5605
|
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, onValueChange: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
5758
5606
|
let o;
|
|
@@ -5764,7 +5612,7 @@ var td = R.forwardRef((e, t) => {
|
|
|
5764
5612
|
let { value: s, onChange: c } = bc(o), l;
|
|
5765
5613
|
n[8] === c ? l = n[9] : (l = (e) => c(e.target.value), n[8] = c, n[9] = l);
|
|
5766
5614
|
let u;
|
|
5767
|
-
return n[10] !== r || n[11] !== a || n[12] !== t || n[13] !== l || n[14] !== s ? (u = /* @__PURE__ */ (0,
|
|
5615
|
+
return n[10] !== r || n[11] !== a || n[12] !== t || n[13] !== l || n[14] !== s ? (u = /* @__PURE__ */ (0, B.jsx)(Iu, {
|
|
5768
5616
|
ref: t,
|
|
5769
5617
|
className: r,
|
|
5770
5618
|
...a,
|
|
@@ -5772,8 +5620,8 @@ var td = R.forwardRef((e, t) => {
|
|
|
5772
5620
|
value: s
|
|
5773
5621
|
}), n[10] = r, n[11] = a, n[12] = t, n[13] = l, n[14] = s, n[15] = u) : u = n[15], u;
|
|
5774
5622
|
});
|
|
5775
|
-
|
|
5776
|
-
var
|
|
5623
|
+
Lu.displayName = "DebouncedInput";
|
|
5624
|
+
var Ru = z.forwardRef((e, t) => {
|
|
5777
5625
|
let n = (0, X.c)(13), r, i, a;
|
|
5778
5626
|
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, onValueChange: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
5779
5627
|
let o;
|
|
@@ -5783,7 +5631,7 @@ var nd = R.forwardRef((e, t) => {
|
|
|
5783
5631
|
onChange: i
|
|
5784
5632
|
}, n[4] = i, n[5] = a.value, n[6] = o) : o = n[6];
|
|
5785
5633
|
let { value: s, onChange: c } = bc(o), l;
|
|
5786
|
-
return n[7] !== r || n[8] !== c || n[9] !== a || n[10] !== t || n[11] !== s ? (l = /* @__PURE__ */ (0,
|
|
5634
|
+
return n[7] !== r || n[8] !== c || n[9] !== a || n[10] !== t || n[11] !== s ? (l = /* @__PURE__ */ (0, B.jsx)(Nu, {
|
|
5787
5635
|
ref: t,
|
|
5788
5636
|
className: r,
|
|
5789
5637
|
...a,
|
|
@@ -5791,20 +5639,20 @@ var nd = R.forwardRef((e, t) => {
|
|
|
5791
5639
|
value: s
|
|
5792
5640
|
}), n[7] = r, n[8] = c, n[9] = a, n[10] = t, n[11] = s, n[12] = l) : l = n[12], l;
|
|
5793
5641
|
});
|
|
5794
|
-
|
|
5795
|
-
var
|
|
5796
|
-
let s =
|
|
5797
|
-
return /* @__PURE__ */ (0,
|
|
5642
|
+
Ru.displayName = "DebouncedNumberInput";
|
|
5643
|
+
var zu = z.forwardRef(({ className: e, rootClassName: t, icon: n = /* @__PURE__ */ (0, B.jsx)(be, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), clearable: i = !0, ...a }, o) => {
|
|
5644
|
+
let s = z.useId(), c = a.id || s;
|
|
5645
|
+
return /* @__PURE__ */ (0, B.jsxs)("div", {
|
|
5798
5646
|
className: r("flex items-center border-b px-3", t),
|
|
5799
5647
|
children: [
|
|
5800
5648
|
n,
|
|
5801
|
-
/* @__PURE__ */ (0,
|
|
5649
|
+
/* @__PURE__ */ (0, B.jsx)("input", {
|
|
5802
5650
|
id: c,
|
|
5803
5651
|
ref: o,
|
|
5804
5652
|
className: r("placeholder:text-foreground-muted flex h-7 m-1 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
5805
5653
|
...a
|
|
5806
5654
|
}),
|
|
5807
|
-
i && a.value && /* @__PURE__ */ (0,
|
|
5655
|
+
i && a.value && /* @__PURE__ */ (0, B.jsx)("span", {
|
|
5808
5656
|
onPointerDown: (e) => {
|
|
5809
5657
|
e.preventDefault(), e.stopPropagation();
|
|
5810
5658
|
let t = document.getElementById(c);
|
|
@@ -5815,25 +5663,25 @@ var rd = R.forwardRef(({ className: e, rootClassName: t, icon: n = /* @__PURE__
|
|
|
5815
5663
|
type: "change"
|
|
5816
5664
|
}));
|
|
5817
5665
|
},
|
|
5818
|
-
children: /* @__PURE__ */ (0,
|
|
5666
|
+
children: /* @__PURE__ */ (0, B.jsx)(v, { className: "h-4 w-4 opacity-50 hover:opacity-90 cursor-pointer" })
|
|
5819
5667
|
})
|
|
5820
5668
|
]
|
|
5821
5669
|
});
|
|
5822
5670
|
});
|
|
5823
|
-
|
|
5824
|
-
var
|
|
5671
|
+
zu.displayName = "SearchInput";
|
|
5672
|
+
var Bu = z.forwardRef((e, t) => {
|
|
5825
5673
|
let n = (0, X.c)(23), r, i, a;
|
|
5826
5674
|
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, onValueChange: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
5827
|
-
let [o, s] =
|
|
5675
|
+
let [o, s] = z.useState(a.value), c;
|
|
5828
5676
|
n[4] !== o || n[5] !== i || n[6] !== a.value ? (c = {
|
|
5829
5677
|
prop: a.value,
|
|
5830
5678
|
defaultProp: o,
|
|
5831
5679
|
onChange: i
|
|
5832
5680
|
}, n[4] = o, n[5] = i, n[6] = a.value, n[7] = c) : c = n[7];
|
|
5833
|
-
let [l, u] =
|
|
5681
|
+
let [l, u] = re(c), d, f;
|
|
5834
5682
|
n[8] === l ? (d = n[9], f = n[10]) : (d = () => {
|
|
5835
5683
|
s(l || "");
|
|
5836
|
-
}, f = [l], n[8] = l, n[9] = d, n[10] = f),
|
|
5684
|
+
}, f = [l], n[8] = l, n[9] = d, n[10] = f), z.useEffect(d, f);
|
|
5837
5685
|
let p;
|
|
5838
5686
|
n[11] === Symbol.for("react.memo_cache_sentinel") ? (p = (e) => s(e.target.value), n[11] = p) : p = n[11];
|
|
5839
5687
|
let m, h;
|
|
@@ -5841,7 +5689,7 @@ var id = R.forwardRef((e, t) => {
|
|
|
5841
5689
|
e.key !== "Enter" || e.shiftKey || u(o || "");
|
|
5842
5690
|
}, n[12] = o, n[13] = u, n[14] = m, n[15] = h) : (m = n[14], h = n[15]);
|
|
5843
5691
|
let g;
|
|
5844
|
-
return n[16] !== r || n[17] !== o || n[18] !== a || n[19] !== t || n[20] !== m || n[21] !== h ? (g = /* @__PURE__ */ (0,
|
|
5692
|
+
return n[16] !== r || n[17] !== o || n[18] !== a || n[19] !== t || n[20] !== m || n[21] !== h ? (g = /* @__PURE__ */ (0, B.jsx)(Iu, {
|
|
5845
5693
|
ref: t,
|
|
5846
5694
|
className: r,
|
|
5847
5695
|
...a,
|
|
@@ -5851,6 +5699,161 @@ var id = R.forwardRef((e, t) => {
|
|
|
5851
5699
|
onKeyDown: h
|
|
5852
5700
|
}), n[16] = r, n[17] = o, n[18] = a, n[19] = t, n[20] = m, n[21] = h, n[22] = g) : g = n[22], g;
|
|
5853
5701
|
});
|
|
5854
|
-
|
|
5702
|
+
Bu.displayName = "OnBlurredInput";
|
|
5703
|
+
//#endregion
|
|
5704
|
+
//#region src/hooks/useNonce.ts
|
|
5705
|
+
function Vu() {
|
|
5706
|
+
let e = (0, X.c)(1), [, t] = (0, z.useState)(0), n;
|
|
5707
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = () => {
|
|
5708
|
+
t(Hu);
|
|
5709
|
+
}, e[0] = n) : n = e[0], n;
|
|
5710
|
+
}
|
|
5711
|
+
function Hu(e) {
|
|
5712
|
+
return e + 1;
|
|
5713
|
+
}
|
|
5714
|
+
//#endregion
|
|
5715
|
+
//#region src/components/ui/dropdown-menu.tsx
|
|
5716
|
+
var Uu = ar, Wu = or, Gu = lr, Ku = te(sr), qu = ee(cr), Ju = ee(vr), Yu = gr, Xu = z.forwardRef((e, t) => {
|
|
5717
|
+
let n = (0, X.c)(17), r, i, a, o, s;
|
|
5718
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5]) : ({className: i, inset: a, showChevron: s, children: r, ...o} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s);
|
|
5719
|
+
let c = s === void 0 || s, l;
|
|
5720
|
+
n[6] !== i || n[7] !== a ? (l = M({
|
|
5721
|
+
className: i,
|
|
5722
|
+
inset: a
|
|
5723
|
+
}), n[6] = i, n[7] = a, n[8] = l) : l = n[8];
|
|
5724
|
+
let u;
|
|
5725
|
+
n[9] === c ? u = n[10] : (u = c && /* @__PURE__ */ (0, B.jsx)(ve, { className: "ml-auto h-4 w-4" }), n[9] = c, n[10] = u);
|
|
5726
|
+
let d;
|
|
5727
|
+
return n[11] !== r || n[12] !== o || n[13] !== t || n[14] !== l || n[15] !== u ? (d = /* @__PURE__ */ (0, B.jsxs)(_r, {
|
|
5728
|
+
ref: t,
|
|
5729
|
+
className: l,
|
|
5730
|
+
...o,
|
|
5731
|
+
children: [r, u]
|
|
5732
|
+
}), n[11] = r, n[12] = o, n[13] = t, n[14] = l, n[15] = u, n[16] = d) : d = n[16], d;
|
|
5733
|
+
});
|
|
5734
|
+
Xu.displayName = _r.displayName;
|
|
5735
|
+
var Zu = z.forwardRef((e, t) => {
|
|
5736
|
+
let n = (0, X.c)(9), i, a;
|
|
5737
|
+
n[0] === e ? (i = n[1], a = n[2]) : ({className: i, ...a} = e, n[0] = e, n[1] = i, n[2] = a);
|
|
5738
|
+
let o;
|
|
5739
|
+
n[3] === i ? o = n[4] : (o = r(k({ subcontent: !0 }), "animate-in data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1", i), n[3] = i, n[4] = o);
|
|
5740
|
+
let s;
|
|
5741
|
+
return n[5] !== a || n[6] !== t || n[7] !== o ? (s = /* @__PURE__ */ (0, B.jsx)(Ju, {
|
|
5742
|
+
ref: t,
|
|
5743
|
+
className: o,
|
|
5744
|
+
...a
|
|
5745
|
+
}), n[5] = a, n[6] = t, n[7] = o, n[8] = s) : s = n[8], s;
|
|
5746
|
+
});
|
|
5747
|
+
Zu.displayName = vr.displayName;
|
|
5748
|
+
var Qu = z.forwardRef((e, t) => {
|
|
5749
|
+
let n = (0, X.c)(17), i, a, o, s;
|
|
5750
|
+
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({className: i, scrollable: o, sideOffset: s, ...a} = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
|
|
5751
|
+
let c = o === void 0 || o, l = s === void 0 ? 4 : s, u;
|
|
5752
|
+
n[5] !== i || n[6] !== c ? (u = r(k(), "animate-in 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 print:hidden", c && "overflow-auto", i), n[5] = i, n[6] = c, n[7] = u) : u = n[7];
|
|
5753
|
+
let d = c ? `calc(var(--radix-dropdown-menu-content-available-height) - ${pe}px)` : void 0, f;
|
|
5754
|
+
n[8] !== a.style || n[9] !== d ? (f = {
|
|
5755
|
+
...a.style,
|
|
5756
|
+
maxHeight: d
|
|
5757
|
+
}, n[8] = a.style, n[9] = d, n[10] = f) : f = n[10];
|
|
5758
|
+
let p;
|
|
5759
|
+
return n[11] !== a || n[12] !== t || n[13] !== l || n[14] !== u || n[15] !== f ? (p = /* @__PURE__ */ (0, B.jsx)(Ku, { children: /* @__PURE__ */ (0, B.jsx)(de, { children: /* @__PURE__ */ (0, B.jsx)(qu, {
|
|
5760
|
+
ref: t,
|
|
5761
|
+
sideOffset: l,
|
|
5762
|
+
className: u,
|
|
5763
|
+
style: f,
|
|
5764
|
+
...a
|
|
5765
|
+
}) }) }), n[11] = a, n[12] = t, n[13] = l, n[14] = u, n[15] = f, n[16] = p) : p = n[16], p;
|
|
5766
|
+
});
|
|
5767
|
+
Qu.displayName = cr.displayName;
|
|
5768
|
+
var $u = z.forwardRef((e, t) => {
|
|
5769
|
+
let n = (0, X.c)(13), r, i, a, o;
|
|
5770
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4]) : ({className: r, inset: i, variant: o, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o);
|
|
5771
|
+
let s;
|
|
5772
|
+
n[5] !== r || n[6] !== i || n[7] !== o ? (s = T({
|
|
5773
|
+
className: r,
|
|
5774
|
+
inset: i,
|
|
5775
|
+
variant: o
|
|
5776
|
+
}), n[5] = r, n[6] = i, n[7] = o, n[8] = s) : s = n[8];
|
|
5777
|
+
let c;
|
|
5778
|
+
return n[9] !== a || n[10] !== t || n[11] !== s ? (c = /* @__PURE__ */ (0, B.jsx)(dr, {
|
|
5779
|
+
ref: t,
|
|
5780
|
+
className: s,
|
|
5781
|
+
...a
|
|
5782
|
+
}), n[9] = a, n[10] = t, n[11] = s, n[12] = c) : c = n[12], c;
|
|
5783
|
+
});
|
|
5784
|
+
$u.displayName = dr.displayName;
|
|
5785
|
+
var ed = z.forwardRef((e, t) => {
|
|
5786
|
+
let n = (0, X.c)(15), r, i, a, o;
|
|
5787
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4]) : ({className: a, children: i, checked: r, ...o} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o);
|
|
5788
|
+
let s;
|
|
5789
|
+
n[5] === a ? s = n[6] : (s = E({ className: a }), n[5] = a, n[6] = s);
|
|
5790
|
+
let c;
|
|
5791
|
+
n[7] === Symbol.for("react.memo_cache_sentinel") ? (c = O(), n[7] = c) : c = n[7];
|
|
5792
|
+
let l;
|
|
5793
|
+
n[8] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, B.jsx)("span", {
|
|
5794
|
+
className: c,
|
|
5795
|
+
children: /* @__PURE__ */ (0, B.jsx)(mr, { children: /* @__PURE__ */ (0, B.jsx)(h, { className: "h-4 w-4" }) })
|
|
5796
|
+
}), n[8] = l) : l = n[8];
|
|
5797
|
+
let u;
|
|
5798
|
+
return n[9] !== r || n[10] !== i || n[11] !== o || n[12] !== t || n[13] !== s ? (u = /* @__PURE__ */ (0, B.jsxs)(fr, {
|
|
5799
|
+
ref: t,
|
|
5800
|
+
className: s,
|
|
5801
|
+
checked: r,
|
|
5802
|
+
...o,
|
|
5803
|
+
children: [l, i]
|
|
5804
|
+
}), n[9] = r, n[10] = i, n[11] = o, n[12] = t, n[13] = s, n[14] = u) : u = n[14], u;
|
|
5805
|
+
});
|
|
5806
|
+
ed.displayName = fr.displayName;
|
|
5807
|
+
var td = z.forwardRef((e, t) => {
|
|
5808
|
+
let n = (0, X.c)(13), r, i, a;
|
|
5809
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: i, children: r, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
5810
|
+
let o;
|
|
5811
|
+
n[4] === i ? o = n[5] : (o = E({ className: i }), n[4] = i, n[5] = o);
|
|
5812
|
+
let s;
|
|
5813
|
+
n[6] === Symbol.for("react.memo_cache_sentinel") ? (s = O(), n[6] = s) : s = n[6];
|
|
5814
|
+
let c;
|
|
5815
|
+
n[7] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, B.jsx)("span", {
|
|
5816
|
+
className: s,
|
|
5817
|
+
children: /* @__PURE__ */ (0, B.jsx)(mr, { children: /* @__PURE__ */ (0, B.jsx)(ye, { className: "h-2 w-2 fill-current" }) })
|
|
5818
|
+
}), n[7] = c) : c = n[7];
|
|
5819
|
+
let l;
|
|
5820
|
+
return n[8] !== r || n[9] !== a || n[10] !== t || n[11] !== o ? (l = /* @__PURE__ */ (0, B.jsxs)(pr, {
|
|
5821
|
+
ref: t,
|
|
5822
|
+
className: o,
|
|
5823
|
+
...a,
|
|
5824
|
+
children: [c, r]
|
|
5825
|
+
}), n[8] = r, n[9] = a, n[10] = t, n[11] = o, n[12] = l) : l = n[12], l;
|
|
5826
|
+
});
|
|
5827
|
+
td.displayName = pr.displayName;
|
|
5828
|
+
var nd = z.forwardRef((e, t) => {
|
|
5829
|
+
let n = (0, X.c)(11), r, i, a;
|
|
5830
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, inset: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
5831
|
+
let o;
|
|
5832
|
+
n[4] !== r || n[5] !== i ? (o = C({
|
|
5833
|
+
className: r,
|
|
5834
|
+
inset: i
|
|
5835
|
+
}), n[4] = r, n[5] = i, n[6] = o) : o = n[6];
|
|
5836
|
+
let s;
|
|
5837
|
+
return n[7] !== a || n[8] !== t || n[9] !== o ? (s = /* @__PURE__ */ (0, B.jsx)(ur, {
|
|
5838
|
+
ref: t,
|
|
5839
|
+
className: o,
|
|
5840
|
+
...a
|
|
5841
|
+
}), n[7] = a, n[8] = t, n[9] = o, n[10] = s) : s = n[10], s;
|
|
5842
|
+
});
|
|
5843
|
+
nd.displayName = ur.displayName;
|
|
5844
|
+
var rd = z.forwardRef((e, t) => {
|
|
5845
|
+
let n = (0, X.c)(9), r, i;
|
|
5846
|
+
n[0] === e ? (r = n[1], i = n[2]) : ({className: r, ...i} = e, n[0] = e, n[1] = r, n[2] = i);
|
|
5847
|
+
let a;
|
|
5848
|
+
n[3] === r ? a = n[4] : (a = A({ className: r }), n[3] = r, n[4] = a);
|
|
5849
|
+
let o;
|
|
5850
|
+
return n[5] !== i || n[6] !== t || n[7] !== a ? (o = /* @__PURE__ */ (0, B.jsx)(hr, {
|
|
5851
|
+
ref: t,
|
|
5852
|
+
className: a,
|
|
5853
|
+
...i
|
|
5854
|
+
}), n[5] = i, n[6] = t, n[7] = a, n[8] = o) : o = n[8], o;
|
|
5855
|
+
});
|
|
5856
|
+
rd.displayName = hr.displayName;
|
|
5857
|
+
var id = w;
|
|
5855
5858
|
//#endregion
|
|
5856
|
-
export { Vo as $,
|
|
5859
|
+
export { Vo as $, mn as $t, pu as A, ei as At, Jl as B, q as Bt, Au as C, Di as Ct, _u as D, fi as Dt, bu as E, Y as Et, su as F, Vr as Ft, $l as G, Tr as Gt, Yl as H, W as Ht, ru as I, J as It, $ as J, ln as Jt, Xl as K, Cr as Kt, iu as L, K as Lt, du as M, ni as Mt, uu as N, $r as Nt, gu as O, di as Ot, ou as P, Hr as Pt, Ko as Q, fn as Qt, nu as R, Mr as Rt, Ou as S, Ei as St, vu as T, hi as Tt, Kl as U, G as Ut, Gl as V, Ar as Vt, Ul as W, Er as Wt, xc as X, hn as Xt, bc as Y, bn as Yt, Fs as Z, dn as Zt, Bu as _, aa as _t, nd as a, cn as an, Eo as at, wu as b, ji as bt, id as c, Cn as cn, fo as ct, Xu as d, Ve as dn, io as dt, vn as en, Bo as et, Wu as f, Be as fn, $a as ft, Iu as g, ve as gn, Aa as gt, Ru as h, ye as hn, Fa as ht, $u as i, _n as in, Po as it, fu as j, Xr as jt, hu as k, ti as kt, Yu as l, Sn as ln, so as lt, Lu as m, be as mn, Ha as mt, Qu as n, un as nn, ko as nt, Ku as o, yn as on, Co as ot, Vu as p, Oe as pn, Ja as pt, ql as q, U as qt, Gu as r, gn as rn, jo as rt, rd as s, xn as sn, So as st, Uu as t, pn as tn, No as tt, Zu as u, $e as un, co as ut, Nu as v, Yi as vt, Du as w, vi as wt, Mu as x, Ai as xt, Eu as y, Wi as yt, Wl as z, jr as zt };
|