@marimo-team/islands 0.25.2-dev53 → 0.25.2-dev61
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-BDizDY3_.js → ConnectedDataExplorerComponent-BZmqc_F0.js} +3 -3
- package/dist/{ErrorBoundary-Bwg2kLKS.js → ErrorBoundary-BL7bFtwp.js} +1 -1
- package/dist/{chat-ui-DMu_DFfr.js → chat-ui-Da2o4rps.js} +4 -4
- package/dist/{code-visibility-D_G0XbX7.js → code-visibility-_ihZ-SEb.js} +1 -1
- package/dist/{common-DcLm9QJY.js → common-ukM0sIeR.js} +8901 -8619
- package/dist/{data-grid-overlay-editor-qKNqq_Xm.js → data-grid-overlay-editor-C1y0BPWs.js} +1 -1
- package/dist/dropdown-menu-Cz4TdOJh.js +4678 -0
- package/dist/{feedback-button-Bvjbm5Qi.js → feedback-button-B-3hznXb.js} +2 -2
- package/dist/{glide-data-editor-DE3Yi97D.js → glide-data-editor-CWMyztM6.js} +5 -5
- package/dist/{globals-C9rLC5XL.js → globals-Iua0hQv2.js} +1 -1
- package/dist/{html-to-image-CFSoonFo.js → html-to-image-C-XXpUFD.js} +3 -3
- package/dist/{label-DPWAFACU.js → label-DQO1jFjf.js} +8 -8
- package/dist/main.js +2612 -2566
- package/dist/{number-overlay-editor-BvtSmUfm.js → number-overlay-editor--czk7lAt.js} +1 -1
- package/dist/{process-output-D8io8maY.js → process-output-CdDN3Pdp.js} +1 -1
- package/dist/{reveal-component-Cpev6-I3.js → reveal-component-DYQDbLdD.js} +3 -3
- package/dist/{spec-rSPz3O6Q.js → spec-DVsoMvYT.js} +102 -123
- package/dist/style.css +1 -1
- package/dist/{useDateFormatter-BTtPAD2R.js → useDateFormatter-C-tz65rD.js} +51 -30
- package/package.json +3 -3
- package/src/components/data-table/TableTopBar.tsx +4 -0
- package/src/components/data-table/__tests__/export-actions.test.tsx +1111 -14
- package/src/components/data-table/__tests__/schemas.test.ts +57 -0
- package/src/components/data-table/data-table.tsx +3 -0
- package/src/components/data-table/export-actions.tsx +365 -81
- package/src/components/data-table/schemas.ts +90 -14
- package/src/components/editor/navigation/__tests__/navigation.test.ts +8 -8
- package/src/plugins/impl/DataTablePlugin.tsx +23 -2
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +65 -8
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +15 -3
- package/src/stories/dataframe.stories.tsx +7 -0
- package/dist/dropdown-menu-R7yCbshA.js +0 -4472
|
@@ -0,0 +1,4678 @@
|
|
|
1
|
+
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
+
import { g as t, h as n, m as r, p as i, u as a } from "./button-BtsM2UqM.js";
|
|
3
|
+
import { t as o } from "./react-ofJbxM4x.js";
|
|
4
|
+
import { t as s } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
|
+
import { c, h as l, l as u, s as d, u as f } from "./tooltip-CuNWg2ay.js";
|
|
6
|
+
import { t as p } from "./check-CNP79M3A.js";
|
|
7
|
+
import { A as m, M as h, O as g, _, f as v, g as y, h as b, j as x, k as S, m as C, p as w, v as T, y as E } from "./select-Bs-nmvm6.js";
|
|
8
|
+
import { t as D } from "./clsx-CoeGtWvn.js";
|
|
9
|
+
import { t as O } from "./react-dom-BUgJ-ab_.js";
|
|
10
|
+
import { t as ee } from "./jsx-runtime-DgDPJV9S.js";
|
|
11
|
+
import { Ct as k, K as A, Q as j, St as M, Tt as N, X as P, Y as F, _t as I, bt as te, ct as ne, dt as re, ft as ie, ht as ae, lt as oe, pt as se, vt as ce, wt as L, xt as le, yt as ue } from "./use-restore-focus-kmgwrL8q.js";
|
|
12
|
+
import { i as de, n as fe, r as pe, s as me } from "./label-DQO1jFjf.js";
|
|
13
|
+
import { t as he } from "./debounce-C3jyATpc.js";
|
|
14
|
+
import { A as ge } from "./useTheme-BwSgeAFb.js";
|
|
15
|
+
import { t as _e } from "./once-BtE-wKRL.js";
|
|
16
|
+
var ve = l("chevron-right", [["path", {
|
|
17
|
+
d: "m9 18 6-6-6-6",
|
|
18
|
+
key: "mthhwq"
|
|
19
|
+
}]]), ye = l("circle", [["circle", {
|
|
20
|
+
cx: "12",
|
|
21
|
+
cy: "12",
|
|
22
|
+
r: "10",
|
|
23
|
+
key: "1mglay"
|
|
24
|
+
}]]), be = l("search", [["path", {
|
|
25
|
+
d: "m21 21-4.34-4.34",
|
|
26
|
+
key: "14j7rj"
|
|
27
|
+
}], ["circle", {
|
|
28
|
+
cx: "11",
|
|
29
|
+
cy: "11",
|
|
30
|
+
r: "8",
|
|
31
|
+
key: "4ej97u"
|
|
32
|
+
}]]), R = /* @__PURE__ */ e(o(), 1), xe = Object.defineProperty, Se = (e, t) => xe(e, "name", {
|
|
33
|
+
value: t,
|
|
34
|
+
configurable: !0
|
|
35
|
+
}), Ce = !1;
|
|
36
|
+
function we() {
|
|
37
|
+
let [e, t] = R.useState(Ce);
|
|
38
|
+
return R.useEffect(() => {
|
|
39
|
+
Ce || (Ce = !0, t(!0));
|
|
40
|
+
}, []), e;
|
|
41
|
+
}
|
|
42
|
+
Se(we, "useIsHydrated");
|
|
43
|
+
var Te = R.useSyncExternalStore;
|
|
44
|
+
function Ee() {
|
|
45
|
+
return () => {};
|
|
46
|
+
}
|
|
47
|
+
Se(Ee, "subscribe");
|
|
48
|
+
function De() {
|
|
49
|
+
return Te(Ee, () => !0, () => !1);
|
|
50
|
+
}
|
|
51
|
+
Se(De, "useIsHydratedModern");
|
|
52
|
+
var Oe = typeof Te == "function" ? De : we, z = ee(), ke = Object.defineProperty, Ae = (e, t) => ke(e, "name", {
|
|
53
|
+
value: t,
|
|
54
|
+
configurable: !0
|
|
55
|
+
}), je = "rovingFocusGroup.onEntryFocus", Me = {
|
|
56
|
+
bubbles: !1,
|
|
57
|
+
cancelable: !0
|
|
58
|
+
}, Ne = "RovingFocusGroup", [Pe, Fe, Ie] = S(Ne), [Le, Re] = k(Ne, [Ie]), [ze, Be] = Le(Ne), Ve = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ Ae(function(e, t) {
|
|
59
|
+
return /* @__PURE__ */ (0, z.jsx)(Pe.Provider, {
|
|
60
|
+
scope: e.__scopeRovingFocusGroup,
|
|
61
|
+
children: /* @__PURE__ */ (0, z.jsx)(Pe.Slot, {
|
|
62
|
+
scope: e.__scopeRovingFocusGroup,
|
|
63
|
+
children: /* @__PURE__ */ (0, z.jsx)(He, {
|
|
64
|
+
...e,
|
|
65
|
+
ref: t
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
}, "RovingFocusGroup")), He = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ Ae(function(e, t) {
|
|
70
|
+
let { __scopeRovingFocusGroup: n, orientation: r, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: d = !1, ...f } = e, p = R.useRef(null), m = i(t, p), h = g(o), [_, v] = te({
|
|
71
|
+
prop: s,
|
|
72
|
+
defaultProp: c ?? null,
|
|
73
|
+
onChange: l,
|
|
74
|
+
caller: Ne
|
|
75
|
+
}), [y, b] = R.useState(!1), x = I(u), S = Fe(n), C = R.useRef(!1), [w, T] = R.useState(0);
|
|
76
|
+
return R.useEffect(() => {
|
|
77
|
+
let e = p.current;
|
|
78
|
+
if (e) return e.addEventListener(je, x), () => e.removeEventListener(je, x);
|
|
79
|
+
}, [x]), /* @__PURE__ */ (0, z.jsx)(ze, {
|
|
80
|
+
scope: n,
|
|
81
|
+
orientation: r,
|
|
82
|
+
dir: h,
|
|
83
|
+
loop: a,
|
|
84
|
+
currentTabStopId: _,
|
|
85
|
+
onItemFocus: R.useCallback((e) => v(e), [v]),
|
|
86
|
+
onItemShiftTab: R.useCallback(() => b(!0), []),
|
|
87
|
+
onFocusableItemAdd: R.useCallback(() => T((e) => e + 1), []),
|
|
88
|
+
onFocusableItemRemove: R.useCallback(() => T((e) => e - 1), []),
|
|
89
|
+
children: /* @__PURE__ */ (0, z.jsx)(L.div, {
|
|
90
|
+
tabIndex: y || w === 0 ? -1 : 0,
|
|
91
|
+
"data-orientation": r,
|
|
92
|
+
...f,
|
|
93
|
+
ref: m,
|
|
94
|
+
style: {
|
|
95
|
+
outline: "none",
|
|
96
|
+
...e.style
|
|
97
|
+
},
|
|
98
|
+
onMouseDown: M(e.onMouseDown, () => {
|
|
99
|
+
C.current = !0;
|
|
100
|
+
}),
|
|
101
|
+
onFocus: M(e.onFocus, (e) => {
|
|
102
|
+
let t = !C.current;
|
|
103
|
+
if (e.target === e.currentTarget && t && !y) {
|
|
104
|
+
let t = new CustomEvent(je, Me);
|
|
105
|
+
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
106
|
+
let e = S().filter((e) => e.focusable);
|
|
107
|
+
Je([
|
|
108
|
+
e.find((e) => e.active),
|
|
109
|
+
e.find((e) => e.id === _),
|
|
110
|
+
...e
|
|
111
|
+
].filter(Boolean).map((e) => e.ref.current), d);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
C.current = !1;
|
|
115
|
+
}),
|
|
116
|
+
onBlur: M(e.onBlur, () => b(!1))
|
|
117
|
+
})
|
|
118
|
+
});
|
|
119
|
+
}, "RovingFocusGroupImpl")), Ue = "RovingFocusGroupItem", We = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ Ae(function(e, t) {
|
|
120
|
+
let { __scopeRovingFocusGroup: n, focusable: r = !0, active: i = !1, tabStopId: a, children: o, ...s } = e, c = ce(), l = a || c, u = Be(Ue, n), d = u.currentTabStopId === l, f = Fe(n), { onFocusableItemAdd: p, onFocusableItemRemove: m, currentTabStopId: h } = u, g = Oe();
|
|
121
|
+
return le(() => {
|
|
122
|
+
if (!(!g || !r)) return p(), () => m();
|
|
123
|
+
}, [
|
|
124
|
+
g,
|
|
125
|
+
r,
|
|
126
|
+
p,
|
|
127
|
+
m
|
|
128
|
+
]), R.useEffect(() => {
|
|
129
|
+
if (!(g || !r)) return p(), () => m();
|
|
130
|
+
}, [
|
|
131
|
+
g,
|
|
132
|
+
r,
|
|
133
|
+
p,
|
|
134
|
+
m
|
|
135
|
+
]), /* @__PURE__ */ (0, z.jsx)(Pe.ItemSlot, {
|
|
136
|
+
scope: n,
|
|
137
|
+
id: l,
|
|
138
|
+
focusable: r,
|
|
139
|
+
active: i,
|
|
140
|
+
children: /* @__PURE__ */ (0, z.jsx)(L.span, {
|
|
141
|
+
tabIndex: d ? 0 : -1,
|
|
142
|
+
"data-orientation": u.orientation,
|
|
143
|
+
...s,
|
|
144
|
+
ref: t,
|
|
145
|
+
onMouseDown: M(e.onMouseDown, (e) => {
|
|
146
|
+
r ? u.onItemFocus(l) : e.preventDefault();
|
|
147
|
+
}),
|
|
148
|
+
onFocus: M(e.onFocus, () => u.onItemFocus(l)),
|
|
149
|
+
onKeyDown: M(e.onKeyDown, (e) => {
|
|
150
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
151
|
+
u.onItemShiftTab();
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
if (e.target !== e.currentTarget) return;
|
|
155
|
+
let t = qe(e, u.orientation, u.dir);
|
|
156
|
+
if (t !== void 0) {
|
|
157
|
+
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
158
|
+
e.preventDefault();
|
|
159
|
+
let n = f().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
160
|
+
if (t === "last") n.reverse();
|
|
161
|
+
else if (t === "prev" || t === "next") {
|
|
162
|
+
t === "prev" && n.reverse();
|
|
163
|
+
let r = n.indexOf(e.currentTarget);
|
|
164
|
+
n = u.loop ? Ye(n, r + 1) : n.slice(r + 1);
|
|
165
|
+
}
|
|
166
|
+
setTimeout(() => Je(n));
|
|
167
|
+
}
|
|
168
|
+
}),
|
|
169
|
+
children: typeof o == "function" ? o({
|
|
170
|
+
isCurrentTabStop: d,
|
|
171
|
+
hasTabStop: h != null
|
|
172
|
+
}) : o
|
|
173
|
+
})
|
|
174
|
+
});
|
|
175
|
+
}, "RovingFocusGroupItem")), Ge = {
|
|
176
|
+
ArrowLeft: "prev",
|
|
177
|
+
ArrowUp: "prev",
|
|
178
|
+
ArrowRight: "next",
|
|
179
|
+
ArrowDown: "next",
|
|
180
|
+
PageUp: "first",
|
|
181
|
+
Home: "first",
|
|
182
|
+
PageDown: "last",
|
|
183
|
+
End: "last"
|
|
184
|
+
};
|
|
185
|
+
function Ke(e, t) {
|
|
186
|
+
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
187
|
+
}
|
|
188
|
+
Ae(Ke, "getDirectionAwareKey");
|
|
189
|
+
function qe(e, t, n) {
|
|
190
|
+
let r = Ke(e.key, n);
|
|
191
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return Ge[r];
|
|
192
|
+
}
|
|
193
|
+
Ae(qe, "getFocusIntent");
|
|
194
|
+
function Je(e, t = !1) {
|
|
195
|
+
let n = document.activeElement;
|
|
196
|
+
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
197
|
+
}
|
|
198
|
+
Ae(Je, "focusFirst");
|
|
199
|
+
function Ye(e, t) {
|
|
200
|
+
return e.map((n, r) => e[(t + r) % e.length]);
|
|
201
|
+
}
|
|
202
|
+
Ae(Ye, "wrapArray");
|
|
203
|
+
var Xe = Ve, Ze = We, Qe = Object.defineProperty, B = (e, t) => Qe(e, "name", {
|
|
204
|
+
value: t,
|
|
205
|
+
configurable: !0
|
|
206
|
+
}), $e = ["Enter", " "], et = [
|
|
207
|
+
"ArrowDown",
|
|
208
|
+
"PageUp",
|
|
209
|
+
"Home"
|
|
210
|
+
], tt = [
|
|
211
|
+
"ArrowUp",
|
|
212
|
+
"PageDown",
|
|
213
|
+
"End"
|
|
214
|
+
], nt = [...et, ...tt], rt = {
|
|
215
|
+
ltr: [...$e, "ArrowRight"],
|
|
216
|
+
rtl: [...$e, "ArrowLeft"]
|
|
217
|
+
}, it = {
|
|
218
|
+
ltr: ["ArrowLeft"],
|
|
219
|
+
rtl: ["ArrowRight"]
|
|
220
|
+
}, at = "Menu", [ot, st, ct] = S(at), [lt, ut] = k(at, [
|
|
221
|
+
ct,
|
|
222
|
+
f,
|
|
223
|
+
Re
|
|
224
|
+
]), dt = f(), ft = Re(), [pt, mt] = lt(at), [ht, gt] = lt(at), _t = /* @__PURE__ */ B((e) => {
|
|
225
|
+
let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s = dt(t), [c, l] = R.useState(null), d = R.useRef(!1), f = I(a), p = g(i);
|
|
226
|
+
return R.useEffect(() => {
|
|
227
|
+
let e = /* @__PURE__ */ B(() => {
|
|
228
|
+
d.current = !0, document.addEventListener("pointerdown", t, {
|
|
229
|
+
capture: !0,
|
|
230
|
+
once: !0
|
|
231
|
+
}), document.addEventListener("pointermove", t, {
|
|
232
|
+
capture: !0,
|
|
233
|
+
once: !0
|
|
234
|
+
});
|
|
235
|
+
}, "handleKeyDown"), t = /* @__PURE__ */ B(() => d.current = !1, "handlePointer");
|
|
236
|
+
return document.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
237
|
+
document.removeEventListener("keydown", e, { capture: !0 }), document.removeEventListener("pointerdown", t, { capture: !0 }), document.removeEventListener("pointermove", t, { capture: !0 });
|
|
238
|
+
};
|
|
239
|
+
}, []), R.useEffect(() => {
|
|
240
|
+
if (!n) return;
|
|
241
|
+
let e = /* @__PURE__ */ B(() => f(!1), "handleBlur");
|
|
242
|
+
return window.addEventListener("blur", e), () => window.removeEventListener("blur", e);
|
|
243
|
+
}, [n, f]), /* @__PURE__ */ (0, z.jsx)(u, {
|
|
244
|
+
...s,
|
|
245
|
+
children: /* @__PURE__ */ (0, z.jsx)(pt, {
|
|
246
|
+
scope: t,
|
|
247
|
+
open: n,
|
|
248
|
+
onOpenChange: f,
|
|
249
|
+
content: c,
|
|
250
|
+
onContentChange: l,
|
|
251
|
+
children: /* @__PURE__ */ (0, z.jsx)(ht, {
|
|
252
|
+
scope: t,
|
|
253
|
+
onClose: R.useCallback(() => f(!1), [f]),
|
|
254
|
+
isUsingKeyboardRef: d,
|
|
255
|
+
dir: p,
|
|
256
|
+
modal: o,
|
|
257
|
+
children: r
|
|
258
|
+
})
|
|
259
|
+
})
|
|
260
|
+
});
|
|
261
|
+
}, "Menu"), vt = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
262
|
+
let { __scopeMenu: n, ...r } = e, i = dt(n);
|
|
263
|
+
return /* @__PURE__ */ (0, z.jsx)(d, {
|
|
264
|
+
...i,
|
|
265
|
+
...r,
|
|
266
|
+
ref: t
|
|
267
|
+
});
|
|
268
|
+
}, "MenuAnchor")), yt = "MenuPortal", [bt, xt] = lt(yt, { forceMount: void 0 }), St = /* @__PURE__ */ B((e) => {
|
|
269
|
+
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a = mt(yt, t);
|
|
270
|
+
return /* @__PURE__ */ (0, z.jsx)(bt, {
|
|
271
|
+
scope: t,
|
|
272
|
+
forceMount: n,
|
|
273
|
+
children: /* @__PURE__ */ (0, z.jsx)(ue, {
|
|
274
|
+
present: n || a.open,
|
|
275
|
+
children: /* @__PURE__ */ (0, z.jsx)(ie, {
|
|
276
|
+
asChild: !0,
|
|
277
|
+
container: i,
|
|
278
|
+
children: r
|
|
279
|
+
})
|
|
280
|
+
})
|
|
281
|
+
});
|
|
282
|
+
}, "MenuPortal"), V = "MenuContent", [Ct, wt] = lt(V), Tt = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
283
|
+
let n = xt(V, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = mt(V, e.__scopeMenu), o = gt(V, e.__scopeMenu);
|
|
284
|
+
return /* @__PURE__ */ (0, z.jsx)(ot.Provider, {
|
|
285
|
+
scope: e.__scopeMenu,
|
|
286
|
+
children: /* @__PURE__ */ (0, z.jsx)(ue, {
|
|
287
|
+
present: r || a.open,
|
|
288
|
+
children: /* @__PURE__ */ (0, z.jsx)(ot.Slot, {
|
|
289
|
+
scope: e.__scopeMenu,
|
|
290
|
+
children: o.modal ? /* @__PURE__ */ (0, z.jsx)(Et, {
|
|
291
|
+
...i,
|
|
292
|
+
ref: t
|
|
293
|
+
}) : /* @__PURE__ */ (0, z.jsx)(Dt, {
|
|
294
|
+
...i,
|
|
295
|
+
ref: t
|
|
296
|
+
})
|
|
297
|
+
})
|
|
298
|
+
})
|
|
299
|
+
});
|
|
300
|
+
}, "MenuContent")), Et = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
301
|
+
let n = mt(V, e.__scopeMenu), r = R.useRef(null), a = i(t, r);
|
|
302
|
+
return R.useEffect(() => {
|
|
303
|
+
let e = r.current;
|
|
304
|
+
if (e) return ne(e);
|
|
305
|
+
}, []), /* @__PURE__ */ (0, z.jsx)(kt, {
|
|
306
|
+
...e,
|
|
307
|
+
ref: a,
|
|
308
|
+
trapFocus: n.open,
|
|
309
|
+
disableOutsidePointerEvents: n.open,
|
|
310
|
+
disableOutsideScroll: !0,
|
|
311
|
+
onFocusOutside: M(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 }),
|
|
312
|
+
onDismiss: () => n.onOpenChange(!1)
|
|
313
|
+
});
|
|
314
|
+
}, "MenuRootContentModal")), Dt = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
315
|
+
let n = mt(V, e.__scopeMenu);
|
|
316
|
+
return /* @__PURE__ */ (0, z.jsx)(kt, {
|
|
317
|
+
...e,
|
|
318
|
+
ref: t,
|
|
319
|
+
trapFocus: !1,
|
|
320
|
+
disableOutsidePointerEvents: !1,
|
|
321
|
+
disableOutsideScroll: !1,
|
|
322
|
+
onDismiss: () => n.onOpenChange(!1)
|
|
323
|
+
});
|
|
324
|
+
}, "MenuRootContentNonModal")), Ot = a("MenuContent.ScrollLock"), kt = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
325
|
+
let { __scopeMenu: n, loop: r = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: l, onEntryFocus: u, onEscapeKeyDown: d, onPointerDownOutside: f, onFocusOutside: p, onInteractOutside: m, onDismiss: h, disableOutsideScroll: g, ..._ } = e, v = mt(V, n), y = gt(V, n), b = dt(n), x = ft(n), S = st(n), [C, w] = R.useState(null), T = R.useRef(null), E = i(t, T, v.onContentChange), D = R.useRef(0), O = R.useRef(""), ee = R.useRef(0), k = R.useRef(null), A = R.useRef("right"), j = R.useRef(0), N = g ? oe : R.Fragment, P = g ? {
|
|
326
|
+
as: Ot,
|
|
327
|
+
allowPinchZoom: !0
|
|
328
|
+
} : void 0, F = /* @__PURE__ */ B((e) => {
|
|
329
|
+
let t = O.current + e, n = S().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = sn(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
|
|
330
|
+
(/* @__PURE__ */ B((function e(t) {
|
|
331
|
+
O.current = t, window.clearTimeout(D.current), t !== "" && (D.current = window.setTimeout(() => e(""), 1e3));
|
|
332
|
+
}), "updateSearch"))(t), o && setTimeout(() => o.focus());
|
|
333
|
+
}, "handleTypeaheadSearch");
|
|
334
|
+
R.useEffect(() => () => window.clearTimeout(D.current), []), re();
|
|
335
|
+
let I = R.useCallback((e) => A.current === k.current?.side && ln(e, k.current?.area), []);
|
|
336
|
+
return /* @__PURE__ */ (0, z.jsx)(Ct, {
|
|
337
|
+
scope: n,
|
|
338
|
+
searchRef: O,
|
|
339
|
+
onItemEnter: R.useCallback((e) => {
|
|
340
|
+
I(e) && e.preventDefault();
|
|
341
|
+
}, [I]),
|
|
342
|
+
onItemLeave: R.useCallback((e) => {
|
|
343
|
+
I(e) || (T.current?.focus(), w(null));
|
|
344
|
+
}, [I]),
|
|
345
|
+
onTriggerLeave: R.useCallback((e) => {
|
|
346
|
+
I(e) && e.preventDefault();
|
|
347
|
+
}, [I]),
|
|
348
|
+
pointerGraceTimerRef: ee,
|
|
349
|
+
onPointerGraceIntentChange: R.useCallback((e) => {
|
|
350
|
+
k.current = e;
|
|
351
|
+
}, []),
|
|
352
|
+
children: /* @__PURE__ */ (0, z.jsx)(N, {
|
|
353
|
+
...P,
|
|
354
|
+
children: /* @__PURE__ */ (0, z.jsx)(se, {
|
|
355
|
+
asChild: !0,
|
|
356
|
+
trapped: a,
|
|
357
|
+
onMountAutoFocus: M(o, (e) => {
|
|
358
|
+
e.preventDefault(), T.current?.focus({ preventScroll: !0 });
|
|
359
|
+
}),
|
|
360
|
+
onUnmountAutoFocus: s,
|
|
361
|
+
children: /* @__PURE__ */ (0, z.jsx)(ae, {
|
|
362
|
+
asChild: !0,
|
|
363
|
+
disableOutsidePointerEvents: l,
|
|
364
|
+
onEscapeKeyDown: d,
|
|
365
|
+
onPointerDownOutside: f,
|
|
366
|
+
onFocusOutside: p,
|
|
367
|
+
onInteractOutside: m,
|
|
368
|
+
onDismiss: h,
|
|
369
|
+
children: /* @__PURE__ */ (0, z.jsx)(Xe, {
|
|
370
|
+
asChild: !0,
|
|
371
|
+
...x,
|
|
372
|
+
dir: y.dir,
|
|
373
|
+
orientation: "vertical",
|
|
374
|
+
loop: r,
|
|
375
|
+
currentTabStopId: C,
|
|
376
|
+
onCurrentTabStopIdChange: w,
|
|
377
|
+
onEntryFocus: M(u, (e) => {
|
|
378
|
+
y.isUsingKeyboardRef.current || e.preventDefault();
|
|
379
|
+
}),
|
|
380
|
+
preventScrollOnEntryFocus: !0,
|
|
381
|
+
children: /* @__PURE__ */ (0, z.jsx)(c, {
|
|
382
|
+
role: "menu",
|
|
383
|
+
"aria-orientation": "vertical",
|
|
384
|
+
"data-state": tn(v.open),
|
|
385
|
+
"data-radix-menu-content": "",
|
|
386
|
+
dir: y.dir,
|
|
387
|
+
...b,
|
|
388
|
+
..._,
|
|
389
|
+
ref: E,
|
|
390
|
+
style: {
|
|
391
|
+
outline: "none",
|
|
392
|
+
..._.style
|
|
393
|
+
},
|
|
394
|
+
onKeyDown: M(_.onKeyDown, (e) => {
|
|
395
|
+
let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
|
|
396
|
+
t && (e.key === "Tab" && e.preventDefault(), !n && r && F(e.key));
|
|
397
|
+
let i = T.current;
|
|
398
|
+
if (e.target !== i || !nt.includes(e.key)) return;
|
|
399
|
+
e.preventDefault();
|
|
400
|
+
let a = S().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
401
|
+
tt.includes(e.key) && a.reverse(), an(a);
|
|
402
|
+
}),
|
|
403
|
+
onBlur: M(e.onBlur, (e) => {
|
|
404
|
+
e.currentTarget.contains(e.target) || (window.clearTimeout(D.current), O.current = "");
|
|
405
|
+
}),
|
|
406
|
+
onPointerMove: M(e.onPointerMove, un((e) => {
|
|
407
|
+
let t = e.target, n = j.current !== e.clientX;
|
|
408
|
+
if (e.currentTarget.contains(t) && n) {
|
|
409
|
+
let t = e.clientX > j.current ? "right" : "left";
|
|
410
|
+
A.current = t, j.current = e.clientX;
|
|
411
|
+
}
|
|
412
|
+
}))
|
|
413
|
+
})
|
|
414
|
+
})
|
|
415
|
+
})
|
|
416
|
+
})
|
|
417
|
+
})
|
|
418
|
+
});
|
|
419
|
+
}, "MenuContentImpl")), At = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
420
|
+
let { __scopeMenu: n, ...r } = e;
|
|
421
|
+
return /* @__PURE__ */ (0, z.jsx)(L.div, {
|
|
422
|
+
role: "group",
|
|
423
|
+
...r,
|
|
424
|
+
ref: t
|
|
425
|
+
});
|
|
426
|
+
}, "MenuGroup")), jt = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
427
|
+
let { __scopeMenu: n, ...r } = e;
|
|
428
|
+
return /* @__PURE__ */ (0, z.jsx)(L.div, {
|
|
429
|
+
...r,
|
|
430
|
+
ref: t
|
|
431
|
+
});
|
|
432
|
+
}, "MenuLabel")), Mt = "MenuItem", Nt = "menu.itemSelect", Pt = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
433
|
+
let { disabled: n = !1, onSelect: r, ...a } = e, o = R.useRef(null), s = gt(Mt, e.__scopeMenu), c = wt(Mt, e.__scopeMenu), l = i(t, o), u = R.useRef(!1), d = /* @__PURE__ */ B(() => {
|
|
434
|
+
let e = o.current;
|
|
435
|
+
if (!n && e) {
|
|
436
|
+
let t = new CustomEvent(Nt, {
|
|
437
|
+
bubbles: !0,
|
|
438
|
+
cancelable: !0
|
|
439
|
+
});
|
|
440
|
+
e.addEventListener(Nt, (e) => r?.(e), { once: !0 }), N(e, t), t.defaultPrevented ? u.current = !1 : s.onClose();
|
|
441
|
+
}
|
|
442
|
+
}, "handleSelect");
|
|
443
|
+
return /* @__PURE__ */ (0, z.jsx)(Ft, {
|
|
444
|
+
...a,
|
|
445
|
+
ref: l,
|
|
446
|
+
disabled: n,
|
|
447
|
+
onClick: M(e.onClick, d),
|
|
448
|
+
onPointerDown: (t) => {
|
|
449
|
+
e.onPointerDown?.(t), u.current = !0;
|
|
450
|
+
},
|
|
451
|
+
onPointerUp: M(e.onPointerUp, (e) => {
|
|
452
|
+
u.current || e.currentTarget?.click();
|
|
453
|
+
}),
|
|
454
|
+
onKeyDown: M(e.onKeyDown, (e) => {
|
|
455
|
+
n || e.target !== e.currentTarget || (c.searchRef.current === "" || e.key !== " ") && $e.includes(e.key) && (e.currentTarget.click(), e.preventDefault());
|
|
456
|
+
})
|
|
457
|
+
});
|
|
458
|
+
}, "MenuItem")), Ft = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
459
|
+
let { __scopeMenu: n, disabled: r = !1, textValue: a, ...o } = e, s = wt(Mt, n), c = ft(n), l = R.useRef(null), u = i(t, l), [d, f] = R.useState(!1), [p, m] = R.useState("");
|
|
460
|
+
return R.useEffect(() => {
|
|
461
|
+
let e = l.current;
|
|
462
|
+
e && m((e.textContent ?? "").trim());
|
|
463
|
+
}, [o.children]), /* @__PURE__ */ (0, z.jsx)(ot.ItemSlot, {
|
|
464
|
+
scope: n,
|
|
465
|
+
disabled: r,
|
|
466
|
+
textValue: a ?? p,
|
|
467
|
+
children: /* @__PURE__ */ (0, z.jsx)(Ze, {
|
|
468
|
+
asChild: !0,
|
|
469
|
+
...c,
|
|
470
|
+
focusable: !r,
|
|
471
|
+
children: /* @__PURE__ */ (0, z.jsx)(L.div, {
|
|
472
|
+
role: "menuitem",
|
|
473
|
+
"data-highlighted": d ? "" : void 0,
|
|
474
|
+
"aria-disabled": r || void 0,
|
|
475
|
+
"data-disabled": r ? "" : void 0,
|
|
476
|
+
...o,
|
|
477
|
+
ref: u,
|
|
478
|
+
onPointerMove: M(e.onPointerMove, un((e) => {
|
|
479
|
+
r ? s.onItemLeave(e) : (s.onItemEnter(e), e.defaultPrevented || e.currentTarget.focus({ preventScroll: !0 }));
|
|
480
|
+
})),
|
|
481
|
+
onPointerLeave: M(e.onPointerLeave, un((e) => s.onItemLeave(e))),
|
|
482
|
+
onFocus: M(e.onFocus, () => f(!0)),
|
|
483
|
+
onBlur: M(e.onBlur, () => f(!1))
|
|
484
|
+
})
|
|
485
|
+
})
|
|
486
|
+
});
|
|
487
|
+
}, "MenuItemImpl")), It = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
488
|
+
let { checked: n = !1, onCheckedChange: r, ...i } = e;
|
|
489
|
+
return /* @__PURE__ */ (0, z.jsx)(Ut, {
|
|
490
|
+
scope: e.__scopeMenu,
|
|
491
|
+
checked: n,
|
|
492
|
+
children: /* @__PURE__ */ (0, z.jsx)(Pt, {
|
|
493
|
+
role: "menuitemcheckbox",
|
|
494
|
+
"aria-checked": nn(n) ? "mixed" : n,
|
|
495
|
+
...i,
|
|
496
|
+
ref: t,
|
|
497
|
+
"data-state": rn(n),
|
|
498
|
+
onSelect: M(i.onSelect, () => r?.(nn(n) ? !0 : !n), { checkForDefaultPrevented: !1 })
|
|
499
|
+
})
|
|
500
|
+
});
|
|
501
|
+
}, "MenuCheckboxItem")), [Lt, Rt] = lt("MenuRadioGroup", {
|
|
502
|
+
value: void 0,
|
|
503
|
+
onValueChange: /* @__PURE__ */ B(() => {}, "onValueChange")
|
|
504
|
+
}), zt = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
505
|
+
let { value: n, onValueChange: r, ...i } = e, a = I(r);
|
|
506
|
+
return /* @__PURE__ */ (0, z.jsx)(Lt, {
|
|
507
|
+
scope: e.__scopeMenu,
|
|
508
|
+
value: n,
|
|
509
|
+
onValueChange: a,
|
|
510
|
+
children: /* @__PURE__ */ (0, z.jsx)(At, {
|
|
511
|
+
...i,
|
|
512
|
+
ref: t
|
|
513
|
+
})
|
|
514
|
+
});
|
|
515
|
+
}, "MenuRadioGroup")), Bt = "MenuRadioItem", Vt = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
516
|
+
let { value: n, ...r } = e, i = Rt(Bt, e.__scopeMenu), a = n === i.value;
|
|
517
|
+
return /* @__PURE__ */ (0, z.jsx)(Ut, {
|
|
518
|
+
scope: e.__scopeMenu,
|
|
519
|
+
checked: a,
|
|
520
|
+
children: /* @__PURE__ */ (0, z.jsx)(Pt, {
|
|
521
|
+
role: "menuitemradio",
|
|
522
|
+
"aria-checked": a,
|
|
523
|
+
...r,
|
|
524
|
+
ref: t,
|
|
525
|
+
"data-state": rn(a),
|
|
526
|
+
onSelect: M(r.onSelect, () => i.onValueChange?.(n), { checkForDefaultPrevented: !1 })
|
|
527
|
+
})
|
|
528
|
+
});
|
|
529
|
+
}, "MenuRadioItem")), Ht = "MenuItemIndicator", [Ut, Wt] = lt(Ht, { checked: !1 }), Gt = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
530
|
+
let { __scopeMenu: n, forceMount: r, ...i } = e, a = Wt(Ht, n);
|
|
531
|
+
return /* @__PURE__ */ (0, z.jsx)(ue, {
|
|
532
|
+
present: r || nn(a.checked) || a.checked === !0,
|
|
533
|
+
children: /* @__PURE__ */ (0, z.jsx)(L.span, {
|
|
534
|
+
...i,
|
|
535
|
+
ref: t,
|
|
536
|
+
"data-state": rn(a.checked)
|
|
537
|
+
})
|
|
538
|
+
});
|
|
539
|
+
}, "MenuItemIndicator")), Kt = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
540
|
+
let { __scopeMenu: n, ...r } = e;
|
|
541
|
+
return /* @__PURE__ */ (0, z.jsx)(L.div, {
|
|
542
|
+
role: "separator",
|
|
543
|
+
"aria-orientation": "horizontal",
|
|
544
|
+
...r,
|
|
545
|
+
ref: t
|
|
546
|
+
});
|
|
547
|
+
}, "MenuSeparator")), qt = "MenuSub", [Jt, Yt] = lt(qt), Xt = /* @__PURE__ */ B((e) => {
|
|
548
|
+
let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a = mt(qt, t), o = dt(t), [s, c] = R.useState(null), [l, d] = R.useState(null), f = I(i);
|
|
549
|
+
return R.useEffect(() => (a.open === !1 && f(!1), () => f(!1)), [a.open, f]), /* @__PURE__ */ (0, z.jsx)(u, {
|
|
550
|
+
...o,
|
|
551
|
+
children: /* @__PURE__ */ (0, z.jsx)(pt, {
|
|
552
|
+
scope: t,
|
|
553
|
+
open: r,
|
|
554
|
+
onOpenChange: f,
|
|
555
|
+
content: l,
|
|
556
|
+
onContentChange: d,
|
|
557
|
+
children: /* @__PURE__ */ (0, z.jsx)(Jt, {
|
|
558
|
+
scope: t,
|
|
559
|
+
contentId: ce(),
|
|
560
|
+
triggerId: ce(),
|
|
561
|
+
trigger: s,
|
|
562
|
+
onTriggerChange: c,
|
|
563
|
+
children: n
|
|
564
|
+
})
|
|
565
|
+
})
|
|
566
|
+
});
|
|
567
|
+
}, "MenuSub"), Zt = "MenuSubTrigger", Qt = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
568
|
+
let n = mt(Zt, e.__scopeMenu), r = gt(Zt, e.__scopeMenu), a = Yt(Zt, e.__scopeMenu), o = wt(Zt, e.__scopeMenu), s = R.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = o, u = { __scopeMenu: e.__scopeMenu }, d = R.useCallback(() => {
|
|
569
|
+
s.current && window.clearTimeout(s.current), s.current = null;
|
|
570
|
+
}, []);
|
|
571
|
+
R.useEffect(() => d, [d]), R.useEffect(() => {
|
|
572
|
+
let e = c.current;
|
|
573
|
+
return () => {
|
|
574
|
+
window.clearTimeout(e), l(null);
|
|
575
|
+
};
|
|
576
|
+
}, [c, l]);
|
|
577
|
+
let f = i(t, a.onTriggerChange);
|
|
578
|
+
return /* @__PURE__ */ (0, z.jsx)(vt, {
|
|
579
|
+
asChild: !0,
|
|
580
|
+
...u,
|
|
581
|
+
children: /* @__PURE__ */ (0, z.jsx)(Ft, {
|
|
582
|
+
id: a.triggerId,
|
|
583
|
+
"aria-haspopup": "menu",
|
|
584
|
+
"aria-expanded": n.open,
|
|
585
|
+
"aria-controls": n.open ? a.contentId : void 0,
|
|
586
|
+
"data-state": tn(n.open),
|
|
587
|
+
...e,
|
|
588
|
+
ref: f,
|
|
589
|
+
onClick: (t) => {
|
|
590
|
+
e.onClick?.(t), !(e.disabled || t.defaultPrevented) && (t.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
591
|
+
},
|
|
592
|
+
onPointerMove: M(e.onPointerMove, un((t) => {
|
|
593
|
+
o.onItemEnter(t), !t.defaultPrevented && !e.disabled && !n.open && !s.current && (o.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
|
|
594
|
+
n.onOpenChange(!0), d();
|
|
595
|
+
}, 100));
|
|
596
|
+
})),
|
|
597
|
+
onPointerLeave: M(e.onPointerLeave, un((e) => {
|
|
598
|
+
d();
|
|
599
|
+
let t = n.content?.getBoundingClientRect();
|
|
600
|
+
if (t) {
|
|
601
|
+
let r = n.content?.dataset.side, i = r === "right", a = i ? -5 : 5, s = t[i ? "left" : "right"], l = t[i ? "right" : "left"];
|
|
602
|
+
o.onPointerGraceIntentChange({
|
|
603
|
+
area: [
|
|
604
|
+
{
|
|
605
|
+
x: e.clientX + a,
|
|
606
|
+
y: e.clientY
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
x: s,
|
|
610
|
+
y: t.top
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
x: l,
|
|
614
|
+
y: t.top
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
x: l,
|
|
618
|
+
y: t.bottom
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
x: s,
|
|
622
|
+
y: t.bottom
|
|
623
|
+
}
|
|
624
|
+
],
|
|
625
|
+
side: r
|
|
626
|
+
}), window.clearTimeout(c.current), c.current = window.setTimeout(() => o.onPointerGraceIntentChange(null), 300);
|
|
627
|
+
} else {
|
|
628
|
+
if (o.onTriggerLeave(e), e.defaultPrevented) return;
|
|
629
|
+
o.onPointerGraceIntentChange(null);
|
|
630
|
+
}
|
|
631
|
+
})),
|
|
632
|
+
onKeyDown: M(e.onKeyDown, (t) => {
|
|
633
|
+
e.disabled || t.target !== t.currentTarget || (o.searchRef.current === "" || t.key !== " ") && rt[r.dir].includes(t.key) && (n.onOpenChange(!0), n.content?.focus(), t.preventDefault());
|
|
634
|
+
})
|
|
635
|
+
})
|
|
636
|
+
});
|
|
637
|
+
}, "MenuSubTrigger")), $t = "MenuSubContent", en = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
638
|
+
let n = xt(V, e.__scopeMenu), { forceMount: r = n.forceMount, align: a = "start", ...o } = e, s = mt(V, e.__scopeMenu), c = gt(V, e.__scopeMenu), l = Yt($t, e.__scopeMenu), u = R.useRef(null), d = i(t, u);
|
|
639
|
+
return /* @__PURE__ */ (0, z.jsx)(ot.Provider, {
|
|
640
|
+
scope: e.__scopeMenu,
|
|
641
|
+
children: /* @__PURE__ */ (0, z.jsx)(ue, {
|
|
642
|
+
present: r || s.open,
|
|
643
|
+
children: /* @__PURE__ */ (0, z.jsx)(ot.Slot, {
|
|
644
|
+
scope: e.__scopeMenu,
|
|
645
|
+
children: /* @__PURE__ */ (0, z.jsx)(kt, {
|
|
646
|
+
id: l.contentId,
|
|
647
|
+
"aria-labelledby": l.triggerId,
|
|
648
|
+
...o,
|
|
649
|
+
ref: d,
|
|
650
|
+
align: a,
|
|
651
|
+
side: c.dir === "rtl" ? "left" : "right",
|
|
652
|
+
disableOutsidePointerEvents: !1,
|
|
653
|
+
disableOutsideScroll: !1,
|
|
654
|
+
trapFocus: !1,
|
|
655
|
+
onOpenAutoFocus: (e) => {
|
|
656
|
+
c.isUsingKeyboardRef.current && u.current?.focus(), e.preventDefault();
|
|
657
|
+
},
|
|
658
|
+
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
659
|
+
onFocusOutside: M(e.onFocusOutside, (e) => {
|
|
660
|
+
e.target !== l.trigger && s.onOpenChange(!1);
|
|
661
|
+
}),
|
|
662
|
+
onEscapeKeyDown: M(e.onEscapeKeyDown, (e) => {
|
|
663
|
+
c.onClose(), e.preventDefault();
|
|
664
|
+
}),
|
|
665
|
+
onKeyDown: M(e.onKeyDown, (e) => {
|
|
666
|
+
let t = e.currentTarget.contains(e.target), n = it[c.dir].includes(e.key);
|
|
667
|
+
t && n && (s.onOpenChange(!1), l.trigger?.focus(), e.preventDefault());
|
|
668
|
+
})
|
|
669
|
+
})
|
|
670
|
+
})
|
|
671
|
+
})
|
|
672
|
+
});
|
|
673
|
+
}, "MenuSubContent"));
|
|
674
|
+
function tn(e) {
|
|
675
|
+
return e ? "open" : "closed";
|
|
676
|
+
}
|
|
677
|
+
B(tn, "getOpenState");
|
|
678
|
+
function nn(e) {
|
|
679
|
+
return e === "indeterminate";
|
|
680
|
+
}
|
|
681
|
+
B(nn, "isIndeterminate");
|
|
682
|
+
function rn(e) {
|
|
683
|
+
return nn(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
684
|
+
}
|
|
685
|
+
B(rn, "getCheckedState");
|
|
686
|
+
function an(e) {
|
|
687
|
+
let t = document.activeElement;
|
|
688
|
+
for (let n of e) if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
689
|
+
}
|
|
690
|
+
B(an, "focusFirst");
|
|
691
|
+
function on(e, t) {
|
|
692
|
+
return e.map((n, r) => e[(t + r) % e.length]);
|
|
693
|
+
}
|
|
694
|
+
B(on, "wrapArray");
|
|
695
|
+
function sn(e, t, n) {
|
|
696
|
+
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = on(e, Math.max(i, 0));
|
|
697
|
+
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
698
|
+
let o = a.find((e) => e.toLowerCase().startsWith(r.toLowerCase()));
|
|
699
|
+
return o === n ? void 0 : o;
|
|
700
|
+
}
|
|
701
|
+
B(sn, "getNextMatch");
|
|
702
|
+
function cn(e, t) {
|
|
703
|
+
let { x: n, y: r } = e, i = !1;
|
|
704
|
+
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
705
|
+
let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
|
|
706
|
+
l > r != d > r && n < (u - c) * (r - l) / (d - l) + c && (i = !i);
|
|
707
|
+
}
|
|
708
|
+
return i;
|
|
709
|
+
}
|
|
710
|
+
B(cn, "isPointInPolygon");
|
|
711
|
+
function ln(e, t) {
|
|
712
|
+
return t ? cn({
|
|
713
|
+
x: e.clientX,
|
|
714
|
+
y: e.clientY
|
|
715
|
+
}, t) : !1;
|
|
716
|
+
}
|
|
717
|
+
B(ln, "isPointerInGraceArea");
|
|
718
|
+
function un(e) {
|
|
719
|
+
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
720
|
+
}
|
|
721
|
+
B(un, "whenMouse");
|
|
722
|
+
var dn = _t, fn = vt, pn = St, mn = Tt, hn = At, gn = jt, _n = Pt, vn = It, yn = zt, bn = Vt, xn = Gt, Sn = Kt, Cn = Xt, wn = Qt, Tn = en, En = Object.defineProperty, H = (e, t) => En(e, "name", {
|
|
723
|
+
value: t,
|
|
724
|
+
configurable: !0
|
|
725
|
+
}), Dn = "DropdownMenu", [On, kn] = k(Dn, [ut]), U = ut(), [An, jn] = On(Dn), Mn = /* @__PURE__ */ H((e) => {
|
|
726
|
+
let { __scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, c = U(t), l = R.useRef(null), [u, d] = te({
|
|
727
|
+
prop: i,
|
|
728
|
+
defaultProp: a ?? !1,
|
|
729
|
+
onChange: o,
|
|
730
|
+
caller: Dn
|
|
731
|
+
});
|
|
732
|
+
return /* @__PURE__ */ (0, z.jsx)(An, {
|
|
733
|
+
scope: t,
|
|
734
|
+
triggerId: ce(),
|
|
735
|
+
triggerRef: l,
|
|
736
|
+
contentId: ce(),
|
|
737
|
+
open: u,
|
|
738
|
+
onOpenChange: d,
|
|
739
|
+
onOpenToggle: R.useCallback(() => d((e) => !e), [d]),
|
|
740
|
+
modal: s,
|
|
741
|
+
children: /* @__PURE__ */ (0, z.jsx)(dn, {
|
|
742
|
+
...c,
|
|
743
|
+
open: u,
|
|
744
|
+
onOpenChange: d,
|
|
745
|
+
dir: r,
|
|
746
|
+
modal: s,
|
|
747
|
+
children: n
|
|
748
|
+
})
|
|
749
|
+
});
|
|
750
|
+
}, "DropdownMenu"), Nn = "DropdownMenuTrigger", Pn = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ H(function(e, t) {
|
|
751
|
+
let { __scopeDropdownMenu: n, disabled: r = !1, ...a } = e, o = jn(Nn, n), s = U(n), c = i(t, o.triggerRef);
|
|
752
|
+
return /* @__PURE__ */ (0, z.jsx)(fn, {
|
|
753
|
+
asChild: !0,
|
|
754
|
+
...s,
|
|
755
|
+
children: /* @__PURE__ */ (0, z.jsx)(L.button, {
|
|
756
|
+
type: "button",
|
|
757
|
+
id: o.triggerId,
|
|
758
|
+
"aria-haspopup": "menu",
|
|
759
|
+
"aria-expanded": o.open,
|
|
760
|
+
"aria-controls": o.open ? o.contentId : void 0,
|
|
761
|
+
"data-state": o.open ? "open" : "closed",
|
|
762
|
+
"data-disabled": r ? "" : void 0,
|
|
763
|
+
disabled: r,
|
|
764
|
+
...a,
|
|
765
|
+
ref: c,
|
|
766
|
+
onPointerDown: M(e.onPointerDown, (e) => {
|
|
767
|
+
!r && e.button === 0 && e.ctrlKey === !1 && (o.onOpenToggle(), o.open || e.preventDefault());
|
|
768
|
+
}),
|
|
769
|
+
onKeyDown: M(e.onKeyDown, (e) => {
|
|
770
|
+
r || (["Enter", " "].includes(e.key) && o.onOpenToggle(), e.key === "ArrowDown" && o.onOpenChange(!0), [
|
|
771
|
+
"Enter",
|
|
772
|
+
" ",
|
|
773
|
+
"ArrowDown"
|
|
774
|
+
].includes(e.key) && e.preventDefault());
|
|
775
|
+
})
|
|
776
|
+
})
|
|
777
|
+
});
|
|
778
|
+
}, "DropdownMenuTrigger")), Fn = /* @__PURE__ */ H((e) => {
|
|
779
|
+
let { __scopeDropdownMenu: t, ...n } = e, r = U(t);
|
|
780
|
+
return /* @__PURE__ */ (0, z.jsx)(pn, {
|
|
781
|
+
...r,
|
|
782
|
+
...n
|
|
783
|
+
});
|
|
784
|
+
}, "DropdownMenuPortal"), In = "DropdownMenuContent", Ln = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ H(function(e, t) {
|
|
785
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = jn(In, n), a = U(n), o = R.useRef(!1);
|
|
786
|
+
return /* @__PURE__ */ (0, z.jsx)(mn, {
|
|
787
|
+
id: i.contentId,
|
|
788
|
+
"aria-labelledby": i.triggerId,
|
|
789
|
+
...a,
|
|
790
|
+
...r,
|
|
791
|
+
ref: t,
|
|
792
|
+
onCloseAutoFocus: M(e.onCloseAutoFocus, (e) => {
|
|
793
|
+
o.current || i.triggerRef.current?.focus(), o.current = !1, e.preventDefault();
|
|
794
|
+
}),
|
|
795
|
+
onInteractOutside: M(e.onInteractOutside, (e) => {
|
|
796
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
797
|
+
(!i.modal || r) && (o.current = !0);
|
|
798
|
+
}),
|
|
799
|
+
style: {
|
|
800
|
+
...e.style,
|
|
801
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
802
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
803
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
804
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
805
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
806
|
+
}
|
|
807
|
+
});
|
|
808
|
+
}, "DropdownMenuContent")), Rn = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ H(function(e, t) {
|
|
809
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = U(n);
|
|
810
|
+
return /* @__PURE__ */ (0, z.jsx)(hn, {
|
|
811
|
+
...i,
|
|
812
|
+
...r,
|
|
813
|
+
ref: t
|
|
814
|
+
});
|
|
815
|
+
}, "DropdownMenuGroup")), zn = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ H(function(e, t) {
|
|
816
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = U(n);
|
|
817
|
+
return /* @__PURE__ */ (0, z.jsx)(gn, {
|
|
818
|
+
...i,
|
|
819
|
+
...r,
|
|
820
|
+
ref: t
|
|
821
|
+
});
|
|
822
|
+
}, "DropdownMenuLabel")), Bn = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ H(function(e, t) {
|
|
823
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = U(n);
|
|
824
|
+
return /* @__PURE__ */ (0, z.jsx)(_n, {
|
|
825
|
+
...i,
|
|
826
|
+
...r,
|
|
827
|
+
ref: t
|
|
828
|
+
});
|
|
829
|
+
}, "DropdownMenuItem")), Vn = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ H(function(e, t) {
|
|
830
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = U(n);
|
|
831
|
+
return /* @__PURE__ */ (0, z.jsx)(vn, {
|
|
832
|
+
...i,
|
|
833
|
+
...r,
|
|
834
|
+
ref: t
|
|
835
|
+
});
|
|
836
|
+
}, "DropdownMenuCheckboxItem")), Hn = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ H(function(e, t) {
|
|
837
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = U(n);
|
|
838
|
+
return /* @__PURE__ */ (0, z.jsx)(bn, {
|
|
839
|
+
...i,
|
|
840
|
+
...r,
|
|
841
|
+
ref: t
|
|
842
|
+
});
|
|
843
|
+
}, "DropdownMenuRadioItem")), Un = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ H(function(e, t) {
|
|
844
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = U(n);
|
|
845
|
+
return /* @__PURE__ */ (0, z.jsx)(xn, {
|
|
846
|
+
...i,
|
|
847
|
+
...r,
|
|
848
|
+
ref: t
|
|
849
|
+
});
|
|
850
|
+
}, "DropdownMenuItemIndicator")), Wn = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ H(function(e, t) {
|
|
851
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = U(n);
|
|
852
|
+
return /* @__PURE__ */ (0, z.jsx)(Sn, {
|
|
853
|
+
...i,
|
|
854
|
+
...r,
|
|
855
|
+
ref: t
|
|
856
|
+
});
|
|
857
|
+
}, "DropdownMenuSeparator")), Gn = /* @__PURE__ */ H((e) => {
|
|
858
|
+
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, o = U(t), [s, c] = te({
|
|
859
|
+
prop: r,
|
|
860
|
+
defaultProp: a ?? !1,
|
|
861
|
+
onChange: i,
|
|
862
|
+
caller: "DropdownMenuSub"
|
|
863
|
+
});
|
|
864
|
+
return /* @__PURE__ */ (0, z.jsx)(Cn, {
|
|
865
|
+
...o,
|
|
866
|
+
open: s,
|
|
867
|
+
onOpenChange: c,
|
|
868
|
+
children: n
|
|
869
|
+
});
|
|
870
|
+
}, "DropdownMenuSub"), Kn = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ H(function(e, t) {
|
|
871
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = U(n);
|
|
872
|
+
return /* @__PURE__ */ (0, z.jsx)(wn, {
|
|
873
|
+
...i,
|
|
874
|
+
...r,
|
|
875
|
+
ref: t
|
|
876
|
+
});
|
|
877
|
+
}, "DropdownMenuSubTrigger")), qn = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ H(function(e, t) {
|
|
878
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = U(n);
|
|
879
|
+
return /* @__PURE__ */ (0, z.jsx)(Tn, {
|
|
880
|
+
...i,
|
|
881
|
+
...r,
|
|
882
|
+
ref: t,
|
|
883
|
+
style: {
|
|
884
|
+
...e.style,
|
|
885
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
886
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
887
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
888
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
889
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
890
|
+
}
|
|
891
|
+
});
|
|
892
|
+
}, "DropdownMenuSubContent")), Jn = Mn, Yn = Pn, Xn = Fn, Zn = Ln, Qn = Rn, $n = zn, er = Bn, tr = Vn, nr = Hn, rr = Un, ir = Wn, ar = Gn, or = Kn, sr = qn;
|
|
893
|
+
//#endregion
|
|
894
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
|
|
895
|
+
function cr(e) {
|
|
896
|
+
if (ur()) e.focus({ preventScroll: !0 });
|
|
897
|
+
else {
|
|
898
|
+
let t = dr(e);
|
|
899
|
+
e.focus(), fr(t);
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
var lr = null;
|
|
903
|
+
function ur() {
|
|
904
|
+
if (lr == null) {
|
|
905
|
+
lr = !1;
|
|
906
|
+
try {
|
|
907
|
+
document.createElement("div").focus({ get preventScroll() {
|
|
908
|
+
return lr = !0, !0;
|
|
909
|
+
} });
|
|
910
|
+
} catch {}
|
|
911
|
+
}
|
|
912
|
+
return lr;
|
|
913
|
+
}
|
|
914
|
+
function dr(e) {
|
|
915
|
+
let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
|
|
916
|
+
for (; t instanceof HTMLElement && t !== r;) (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({
|
|
917
|
+
element: t,
|
|
918
|
+
scrollTop: t.scrollTop,
|
|
919
|
+
scrollLeft: t.scrollLeft
|
|
920
|
+
}), t = t.parentNode;
|
|
921
|
+
return r instanceof HTMLElement && n.push({
|
|
922
|
+
element: r,
|
|
923
|
+
scrollTop: r.scrollTop,
|
|
924
|
+
scrollLeft: r.scrollLeft
|
|
925
|
+
}), n;
|
|
926
|
+
}
|
|
927
|
+
function fr(e) {
|
|
928
|
+
for (let { element: t, scrollTop: n, scrollLeft: r } of e) t.scrollTop = n, t.scrollLeft = r;
|
|
929
|
+
}
|
|
930
|
+
//#endregion
|
|
931
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/domHelpers.mjs
|
|
932
|
+
var W = (e) => mr(e) ? e.document : hr(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), G = (e) => W(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
|
|
933
|
+
function pr(e) {
|
|
934
|
+
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
|
|
935
|
+
}
|
|
936
|
+
function mr(e) {
|
|
937
|
+
return typeof e == "object" && !!e && "window" in e && e.window === e;
|
|
938
|
+
}
|
|
939
|
+
function hr(e) {
|
|
940
|
+
return pr(e) && e.nodeType === 9;
|
|
941
|
+
}
|
|
942
|
+
function gr(e) {
|
|
943
|
+
return pr(e) && e.nodeType === 11 && "host" in e;
|
|
944
|
+
}
|
|
945
|
+
function _r(e, t, n, r) {
|
|
946
|
+
if (n == null || e == null) return () => {};
|
|
947
|
+
let i = Array.isArray(e) ? e : [e];
|
|
948
|
+
for (let e of i) e.addEventListener(t, n, r);
|
|
949
|
+
return () => {
|
|
950
|
+
for (let e of i) e.removeEventListener(t, n, r);
|
|
951
|
+
};
|
|
952
|
+
}
|
|
953
|
+
function vr(e, t, n, r) {
|
|
954
|
+
if (e == null) return () => {};
|
|
955
|
+
let i = [], a = Array.isArray(e) ? e : [e];
|
|
956
|
+
for (let e of a) {
|
|
957
|
+
let a = e.style.getPropertyValue(t), o = e.style.getPropertyPriority(t);
|
|
958
|
+
e.style.setProperty(t, n, r), i.unshift(() => {
|
|
959
|
+
a ? e.style.setProperty(t, a, o) : e.style.removeProperty(t);
|
|
960
|
+
});
|
|
961
|
+
}
|
|
962
|
+
return () => {
|
|
963
|
+
for (let e of i) e();
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
//#endregion
|
|
967
|
+
//#region ../node_modules/.pnpm/react-stately@3.50.0_react@19.2.8/node_modules/react-stately/dist/private/flags/flags.mjs
|
|
968
|
+
var yr = !1;
|
|
969
|
+
function br() {
|
|
970
|
+
return yr;
|
|
971
|
+
}
|
|
972
|
+
//#endregion
|
|
973
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
|
|
974
|
+
function K(e, t) {
|
|
975
|
+
if (!br()) return t && e ? e.contains(t) : !1;
|
|
976
|
+
if (!e || !t) return !1;
|
|
977
|
+
let n = t;
|
|
978
|
+
for (; n !== null;) {
|
|
979
|
+
if (n === e) return !0;
|
|
980
|
+
n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : gr(n) ? n.host : n.parentNode;
|
|
981
|
+
}
|
|
982
|
+
return !1;
|
|
983
|
+
}
|
|
984
|
+
var q = (e = document) => {
|
|
985
|
+
if (!br()) return e.activeElement;
|
|
986
|
+
let t = e.activeElement;
|
|
987
|
+
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
|
|
988
|
+
return t;
|
|
989
|
+
};
|
|
990
|
+
function J(e) {
|
|
991
|
+
if (br() && e.target instanceof Element && e.target.shadowRoot) {
|
|
992
|
+
if ("composedPath" in e) return e.composedPath()[0] ?? null;
|
|
993
|
+
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
|
|
994
|
+
}
|
|
995
|
+
return e.target;
|
|
996
|
+
}
|
|
997
|
+
function xr(e, t) {
|
|
998
|
+
if (t === null) return [];
|
|
999
|
+
t ??= G(e);
|
|
1000
|
+
let n = [t];
|
|
1001
|
+
if (!br() || !e || e === t) return n;
|
|
1002
|
+
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
|
|
1003
|
+
for (; gr(i) && i !== r;) n.push(i), i = i.host.getRootNode();
|
|
1004
|
+
return n;
|
|
1005
|
+
}
|
|
1006
|
+
function Sr(e) {
|
|
1007
|
+
if (!e) return !1;
|
|
1008
|
+
let t = e.getRootNode(), n = G(e);
|
|
1009
|
+
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
|
|
1010
|
+
let r = t.activeElement;
|
|
1011
|
+
return r != null && e.contains(r);
|
|
1012
|
+
}
|
|
1013
|
+
//#endregion
|
|
1014
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/isElementVisible.mjs
|
|
1015
|
+
var Cr = typeof Element < "u" && "checkVisibility" in Element.prototype;
|
|
1016
|
+
function wr(e) {
|
|
1017
|
+
let t = G(e);
|
|
1018
|
+
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
|
|
1019
|
+
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
|
|
1020
|
+
if (i) {
|
|
1021
|
+
let { getComputedStyle: t } = G(e), { display: n, visibility: r } = t(e);
|
|
1022
|
+
i = n !== "none" && r !== "hidden" && r !== "collapse";
|
|
1023
|
+
}
|
|
1024
|
+
return i;
|
|
1025
|
+
}
|
|
1026
|
+
function Tr(e, t) {
|
|
1027
|
+
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
|
|
1028
|
+
}
|
|
1029
|
+
function Er(e, t) {
|
|
1030
|
+
return Cr ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && wr(e) && Tr(e, t) && (!e.parentElement || Er(e.parentElement, e));
|
|
1031
|
+
}
|
|
1032
|
+
//#endregion
|
|
1033
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/isFocusable.mjs
|
|
1034
|
+
var Dr = [
|
|
1035
|
+
"input:not([disabled]):not([type=hidden])",
|
|
1036
|
+
"select:not([disabled])",
|
|
1037
|
+
"textarea:not([disabled])",
|
|
1038
|
+
"button:not([disabled])",
|
|
1039
|
+
"a[href]",
|
|
1040
|
+
"area[href]",
|
|
1041
|
+
"summary",
|
|
1042
|
+
"iframe",
|
|
1043
|
+
"object",
|
|
1044
|
+
"embed",
|
|
1045
|
+
"audio[controls]",
|
|
1046
|
+
"video[controls]",
|
|
1047
|
+
"[contenteditable]:not([contenteditable^=\"false\"])",
|
|
1048
|
+
"permission"
|
|
1049
|
+
], Or = Dr.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
1050
|
+
Dr.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
|
|
1051
|
+
var kr = Dr.join(":not([hidden]):not([tabindex=\"-1\"]),");
|
|
1052
|
+
function Ar(e, t) {
|
|
1053
|
+
return e.matches(Or) && !Mr(e) && (t?.skipVisibilityCheck || Er(e));
|
|
1054
|
+
}
|
|
1055
|
+
function jr(e) {
|
|
1056
|
+
return e.matches(kr) && Er(e) && !Mr(e);
|
|
1057
|
+
}
|
|
1058
|
+
function Mr(e) {
|
|
1059
|
+
let t = e;
|
|
1060
|
+
for (; t != null;) {
|
|
1061
|
+
if (t instanceof G(t).HTMLElement && t.inert) return !0;
|
|
1062
|
+
t = t.parentElement;
|
|
1063
|
+
}
|
|
1064
|
+
return !1;
|
|
1065
|
+
}
|
|
1066
|
+
//#endregion
|
|
1067
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
|
|
1068
|
+
var Y = typeof document < "u" ? R.useLayoutEffect : () => {};
|
|
1069
|
+
//#endregion
|
|
1070
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/interactions/utils.mjs
|
|
1071
|
+
function Nr(e) {
|
|
1072
|
+
let t = e;
|
|
1073
|
+
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
|
|
1074
|
+
}
|
|
1075
|
+
function Pr(e, t) {
|
|
1076
|
+
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
|
|
1077
|
+
}
|
|
1078
|
+
function Fr(e) {
|
|
1079
|
+
let t = (0, R.useRef)({
|
|
1080
|
+
isFocused: !1,
|
|
1081
|
+
observer: null
|
|
1082
|
+
});
|
|
1083
|
+
return Y(() => {
|
|
1084
|
+
let e = t.current;
|
|
1085
|
+
return () => {
|
|
1086
|
+
e.observer &&= (e.observer.disconnect(), null);
|
|
1087
|
+
};
|
|
1088
|
+
}, []), (0, R.useCallback)((n) => {
|
|
1089
|
+
let r = J(n);
|
|
1090
|
+
if (r instanceof HTMLButtonElement || r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement) {
|
|
1091
|
+
t.current.isFocused = !0;
|
|
1092
|
+
let n = r;
|
|
1093
|
+
n.addEventListener("focusout", (r) => {
|
|
1094
|
+
if (t.current.isFocused = !1, n.disabled) {
|
|
1095
|
+
let t = Nr(r);
|
|
1096
|
+
e?.(t);
|
|
1097
|
+
}
|
|
1098
|
+
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
|
|
1099
|
+
}, { once: !0 }), t.current.observer = new MutationObserver(() => {
|
|
1100
|
+
if (t.current.isFocused && n.disabled) {
|
|
1101
|
+
t.current.observer?.disconnect();
|
|
1102
|
+
let e = n === q() ? null : q();
|
|
1103
|
+
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
|
|
1104
|
+
bubbles: !0,
|
|
1105
|
+
relatedTarget: e
|
|
1106
|
+
}));
|
|
1107
|
+
}
|
|
1108
|
+
}), t.current.observer.observe(n, {
|
|
1109
|
+
attributes: !0,
|
|
1110
|
+
attributeFilter: ["disabled"]
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1113
|
+
}, [e]);
|
|
1114
|
+
}
|
|
1115
|
+
var Ir = !1;
|
|
1116
|
+
function Lr(e) {
|
|
1117
|
+
for (; e && !Ar(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
|
|
1118
|
+
let t = q(G(e).document);
|
|
1119
|
+
if (!t || t === e) return;
|
|
1120
|
+
let n = e?.getRootNode(), r = n != null && gr(n) ? n : G(e), i = (t) => t === e || t != null && K(e, t), a = (e) => e === t || t != null && e != null && K(t, e);
|
|
1121
|
+
Ir = !0;
|
|
1122
|
+
let o = !1, s = (e) => {
|
|
1123
|
+
(a(J(e)) || o) && e.stopImmediatePropagation();
|
|
1124
|
+
}, c = (n) => {
|
|
1125
|
+
(a(J(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, cr(t), d()));
|
|
1126
|
+
}, l = (e) => {
|
|
1127
|
+
(i(J(e)) || o) && e.stopImmediatePropagation();
|
|
1128
|
+
}, u = (e) => {
|
|
1129
|
+
(i(J(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, cr(t), d()));
|
|
1130
|
+
};
|
|
1131
|
+
r.addEventListener("blur", s, !0), r.addEventListener("focusout", c, !0), r.addEventListener("focusin", u, !0), r.addEventListener("focus", l, !0);
|
|
1132
|
+
let d = () => {
|
|
1133
|
+
cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), Ir = !1, o = !1;
|
|
1134
|
+
}, f = requestAnimationFrame(d);
|
|
1135
|
+
return d;
|
|
1136
|
+
}
|
|
1137
|
+
//#endregion
|
|
1138
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/platform.mjs
|
|
1139
|
+
function Rr(e) {
|
|
1140
|
+
if (typeof window > "u" || window.navigator == null) return !1;
|
|
1141
|
+
let t = window.navigator.userAgentData?.brands;
|
|
1142
|
+
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
|
|
1143
|
+
}
|
|
1144
|
+
function zr(e) {
|
|
1145
|
+
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
|
|
1146
|
+
}
|
|
1147
|
+
function Br(e) {
|
|
1148
|
+
let t = null;
|
|
1149
|
+
return () => (t ??= e(), t);
|
|
1150
|
+
}
|
|
1151
|
+
var Vr = Br(function() {
|
|
1152
|
+
return zr(/^Mac/i);
|
|
1153
|
+
}), Hr = Br(function() {
|
|
1154
|
+
return zr(/^iPhone/i);
|
|
1155
|
+
}), Ur = Br(function() {
|
|
1156
|
+
return zr(/^iPad/i) || Vr() && navigator.maxTouchPoints > 1;
|
|
1157
|
+
}), Wr = Br(function() {
|
|
1158
|
+
return Hr() || Ur();
|
|
1159
|
+
}), Gr = Br(function() {
|
|
1160
|
+
return Rr(/AppleWebKit/i) && (Wr() || !Kr());
|
|
1161
|
+
}), Kr = Br(function() {
|
|
1162
|
+
return Rr(/Chrome|CriOS|CrMo/i);
|
|
1163
|
+
}), qr = Br(function() {
|
|
1164
|
+
return Rr(/Android/i);
|
|
1165
|
+
}), Jr = Br(function() {
|
|
1166
|
+
return Rr(/(Firefox|FxiOS)/i);
|
|
1167
|
+
});
|
|
1168
|
+
//#endregion
|
|
1169
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
|
|
1170
|
+
function Yr(e) {
|
|
1171
|
+
return e.pointerType === "" && e.isTrusted ? !0 : qr() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
1172
|
+
}
|
|
1173
|
+
function Xr(e) {
|
|
1174
|
+
return !qr() && e.width === 0 && e.height === 0 || qr() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
|
|
1175
|
+
}
|
|
1176
|
+
//#endregion
|
|
1177
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/openLink.mjs
|
|
1178
|
+
function Zr(e, t, n = !0) {
|
|
1179
|
+
let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;
|
|
1180
|
+
!Gr() && Jr() && window.event?.type?.startsWith("key") && e.target === "_blank" && (Vr() ? r = !0 : i = !0);
|
|
1181
|
+
let s = Gr() && Vr() && !Ur() ? new KeyboardEvent("keydown", {
|
|
1182
|
+
keyIdentifier: "Enter",
|
|
1183
|
+
metaKey: r,
|
|
1184
|
+
ctrlKey: i,
|
|
1185
|
+
altKey: a,
|
|
1186
|
+
shiftKey: o
|
|
1187
|
+
}) : new MouseEvent("click", {
|
|
1188
|
+
metaKey: r,
|
|
1189
|
+
ctrlKey: i,
|
|
1190
|
+
altKey: a,
|
|
1191
|
+
shiftKey: o,
|
|
1192
|
+
detail: 1,
|
|
1193
|
+
bubbles: !0,
|
|
1194
|
+
cancelable: !0
|
|
1195
|
+
});
|
|
1196
|
+
Zr.isOpening = n, cr(e), e.dispatchEvent(s), Zr.isOpening = !1;
|
|
1197
|
+
}
|
|
1198
|
+
Zr.isOpening = !1;
|
|
1199
|
+
//#endregion
|
|
1200
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
|
|
1201
|
+
var Qr = null, $r = /* @__PURE__ */ new Set(), ei = /* @__PURE__ */ new Map(), ti = !1, ni = !1, ri = {
|
|
1202
|
+
Tab: !0,
|
|
1203
|
+
Escape: !0
|
|
1204
|
+
};
|
|
1205
|
+
function ii(e, t) {
|
|
1206
|
+
for (let n of $r) n(e, t);
|
|
1207
|
+
}
|
|
1208
|
+
function ai(e) {
|
|
1209
|
+
return !(e.metaKey || !Vr() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
1210
|
+
}
|
|
1211
|
+
function oi(e) {
|
|
1212
|
+
ti = !0, !Zr.isOpening && ai(e) && (Qr = "keyboard", ii("keyboard", e));
|
|
1213
|
+
}
|
|
1214
|
+
function si(e) {
|
|
1215
|
+
Qr = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (ti = !0, ii("pointer", e));
|
|
1216
|
+
}
|
|
1217
|
+
function ci(e) {
|
|
1218
|
+
!Zr.isOpening && Yr(e) && (ti = !0, Qr = "virtual");
|
|
1219
|
+
}
|
|
1220
|
+
function li(e) {
|
|
1221
|
+
if (Ir) return;
|
|
1222
|
+
let t = J(e), n = G(t), r = W(t);
|
|
1223
|
+
if (t === n) {
|
|
1224
|
+
ni = !0;
|
|
1225
|
+
return;
|
|
1226
|
+
}
|
|
1227
|
+
t === r || !e.isTrusted || (!ti && !ni && (Qr = "virtual", ii("virtual", e)), ti = !1, ni = !1);
|
|
1228
|
+
}
|
|
1229
|
+
function ui() {
|
|
1230
|
+
Ir || (ti = !1, ni = !0);
|
|
1231
|
+
}
|
|
1232
|
+
function di(e) {
|
|
1233
|
+
if (typeof window > "u" || typeof document > "u") return;
|
|
1234
|
+
let t = G(e), n = W(e);
|
|
1235
|
+
if (ei.get(t)) return;
|
|
1236
|
+
let r = t.HTMLElement.prototype.focus;
|
|
1237
|
+
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
|
|
1238
|
+
configurable: !0,
|
|
1239
|
+
writable: !0,
|
|
1240
|
+
value: function() {
|
|
1241
|
+
ti = !0, r.apply(this, arguments);
|
|
1242
|
+
}
|
|
1243
|
+
}), n.addEventListener("keydown", oi, !0), n.addEventListener("keyup", oi, !0), n.addEventListener("click", ci, !0), t.addEventListener("focus", li, !0), t.addEventListener("blur", ui, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", si, !0), n.addEventListener("pointermove", si, !0), n.addEventListener("pointerup", si, !0)), t.addEventListener("beforeunload", () => {
|
|
1244
|
+
fi(e);
|
|
1245
|
+
}, { once: !0 }), ei.set(t, { focus: r });
|
|
1246
|
+
}
|
|
1247
|
+
var fi = (e, t) => {
|
|
1248
|
+
let n = G(e), r = W(e);
|
|
1249
|
+
t && r.removeEventListener("DOMContentLoaded", t), ei.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
|
|
1250
|
+
configurable: !0,
|
|
1251
|
+
writable: !0,
|
|
1252
|
+
value: ei.get(n).focus
|
|
1253
|
+
}), r.removeEventListener("keydown", oi, !0), r.removeEventListener("keyup", oi, !0), r.removeEventListener("click", ci, !0), n.removeEventListener("focus", li, !0), n.removeEventListener("blur", ui, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", si, !0), r.removeEventListener("pointermove", si, !0), r.removeEventListener("pointerup", si, !0)), ei.delete(n));
|
|
1254
|
+
};
|
|
1255
|
+
function pi(e) {
|
|
1256
|
+
let t = W(e), n;
|
|
1257
|
+
return t.readyState === "loading" ? (n = () => {
|
|
1258
|
+
di(e);
|
|
1259
|
+
}, t.addEventListener("DOMContentLoaded", n)) : di(e), () => fi(e, n);
|
|
1260
|
+
}
|
|
1261
|
+
typeof document < "u" && pi();
|
|
1262
|
+
function mi() {
|
|
1263
|
+
return Qr !== "pointer";
|
|
1264
|
+
}
|
|
1265
|
+
function hi() {
|
|
1266
|
+
return Qr;
|
|
1267
|
+
}
|
|
1268
|
+
function gi(e) {
|
|
1269
|
+
Qr = e, ii(e, null);
|
|
1270
|
+
}
|
|
1271
|
+
var _i = /* @__PURE__ */ new Set([
|
|
1272
|
+
"checkbox",
|
|
1273
|
+
"radio",
|
|
1274
|
+
"range",
|
|
1275
|
+
"color",
|
|
1276
|
+
"file",
|
|
1277
|
+
"image",
|
|
1278
|
+
"button",
|
|
1279
|
+
"submit",
|
|
1280
|
+
"reset"
|
|
1281
|
+
]);
|
|
1282
|
+
function vi(e, t, n) {
|
|
1283
|
+
let r = n ? J(n) : void 0, i = W(r), a = G(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = q(i);
|
|
1284
|
+
return e = e || u instanceof o && !_i.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !ri[n.key]);
|
|
1285
|
+
}
|
|
1286
|
+
function yi(e, t, n) {
|
|
1287
|
+
di(), (0, R.useEffect)(() => {
|
|
1288
|
+
if (n?.enabled === !1) return;
|
|
1289
|
+
let t = (t, r) => {
|
|
1290
|
+
vi(!!n?.isTextInput, t, r) && e(mi());
|
|
1291
|
+
};
|
|
1292
|
+
return $r.add(t), () => {
|
|
1293
|
+
$r.delete(t);
|
|
1294
|
+
};
|
|
1295
|
+
}, t);
|
|
1296
|
+
}
|
|
1297
|
+
//#endregion
|
|
1298
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
|
|
1299
|
+
var bi = /* @__PURE__ */ new Map(), xi = /* @__PURE__ */ new Set();
|
|
1300
|
+
function Si() {
|
|
1301
|
+
if (typeof window > "u") return;
|
|
1302
|
+
function e(e) {
|
|
1303
|
+
return "propertyName" in e;
|
|
1304
|
+
}
|
|
1305
|
+
let t = (t) => {
|
|
1306
|
+
let r = J(t);
|
|
1307
|
+
if (!e(t) || !r) return;
|
|
1308
|
+
let i = bi.get(r);
|
|
1309
|
+
i || (i = /* @__PURE__ */ new Set(), bi.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
|
|
1310
|
+
}, n = (t) => {
|
|
1311
|
+
let r = J(t);
|
|
1312
|
+
if (!e(t) || !r) return;
|
|
1313
|
+
let i = bi.get(r);
|
|
1314
|
+
if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), bi.delete(r)), bi.size === 0)) {
|
|
1315
|
+
for (let e of xi) e();
|
|
1316
|
+
xi.clear();
|
|
1317
|
+
}
|
|
1318
|
+
};
|
|
1319
|
+
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
|
|
1320
|
+
}
|
|
1321
|
+
typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Si) : Si());
|
|
1322
|
+
function Ci() {
|
|
1323
|
+
for (let [e] of bi) "isConnected" in e && !e.isConnected && bi.delete(e);
|
|
1324
|
+
}
|
|
1325
|
+
function wi(e) {
|
|
1326
|
+
requestAnimationFrame(() => {
|
|
1327
|
+
Ci(), bi.size === 0 ? e() : xi.add(e);
|
|
1328
|
+
});
|
|
1329
|
+
}
|
|
1330
|
+
//#endregion
|
|
1331
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/interactions/focusSafely.mjs
|
|
1332
|
+
function Ti(e) {
|
|
1333
|
+
if (!e.isConnected) return;
|
|
1334
|
+
let t = W(e);
|
|
1335
|
+
if (hi() === "virtual") {
|
|
1336
|
+
let n = q(t);
|
|
1337
|
+
wi(() => {
|
|
1338
|
+
let r = q(t);
|
|
1339
|
+
(r === n || r === t.body) && e.isConnected && cr(e);
|
|
1340
|
+
});
|
|
1341
|
+
} else cr(e);
|
|
1342
|
+
}
|
|
1343
|
+
//#endregion
|
|
1344
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/chain.mjs
|
|
1345
|
+
function Ei(...e) {
|
|
1346
|
+
return (...t) => {
|
|
1347
|
+
for (let n of e) typeof n == "function" && n(...t);
|
|
1348
|
+
};
|
|
1349
|
+
}
|
|
1350
|
+
//#endregion
|
|
1351
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/useValueEffect.mjs
|
|
1352
|
+
function Di(e) {
|
|
1353
|
+
let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(t), i = (0, R.useRef)(null), a = (0, R.useRef)(() => {
|
|
1354
|
+
if (!i.current) return;
|
|
1355
|
+
let e = i.current.next();
|
|
1356
|
+
if (e.done) {
|
|
1357
|
+
i.current = null;
|
|
1358
|
+
return;
|
|
1359
|
+
}
|
|
1360
|
+
r.current === e.value ? a.current() : n(e.value);
|
|
1361
|
+
});
|
|
1362
|
+
return Y(() => {
|
|
1363
|
+
r.current = t, i.current && a.current();
|
|
1364
|
+
}), [t, (0, R.useCallback)((e) => {
|
|
1365
|
+
i.current = e(r.current), a.current();
|
|
1366
|
+
}, [a])];
|
|
1367
|
+
}
|
|
1368
|
+
//#endregion
|
|
1369
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/useId.mjs
|
|
1370
|
+
var Oi = !!(typeof window < "u" && window.document && window.document.createElement), ki = /* @__PURE__ */ new Map(), Ai;
|
|
1371
|
+
typeof FinalizationRegistry < "u" && (Ai = new FinalizationRegistry((e) => {
|
|
1372
|
+
ki.delete(e);
|
|
1373
|
+
}));
|
|
1374
|
+
var ji = /* @__PURE__ */ new WeakMap();
|
|
1375
|
+
function Mi(e) {
|
|
1376
|
+
let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(null), i = me(t), a = (0, R.useRef)(null), o = ji.get(a);
|
|
1377
|
+
if (Ai && o !== i && (o != null && Ai.unregister(a), Ai.register(a, i, a), ji.set(a, i)), Oi) {
|
|
1378
|
+
let e = ki.get(i);
|
|
1379
|
+
e && !e.includes(r) ? e.push(r) : ki.set(i, [r]);
|
|
1380
|
+
}
|
|
1381
|
+
return Y(() => {
|
|
1382
|
+
let e = i;
|
|
1383
|
+
return () => {
|
|
1384
|
+
Ai && (Ai.unregister(a), ji.delete(a)), ki.delete(e);
|
|
1385
|
+
};
|
|
1386
|
+
}, [i]), (0, R.useEffect)(() => {
|
|
1387
|
+
let e = r.current;
|
|
1388
|
+
return e && n(e), () => {
|
|
1389
|
+
e && (r.current = null);
|
|
1390
|
+
};
|
|
1391
|
+
}), i;
|
|
1392
|
+
}
|
|
1393
|
+
function Ni(e, t) {
|
|
1394
|
+
if (e === t) return e;
|
|
1395
|
+
let n = ki.get(e);
|
|
1396
|
+
if (n) return n.forEach((e) => e.current = t), t;
|
|
1397
|
+
let r = ki.get(t);
|
|
1398
|
+
return r ? (r.forEach((t) => t.current = e), e) : t;
|
|
1399
|
+
}
|
|
1400
|
+
function Pi(e = []) {
|
|
1401
|
+
let t = Mi(), [n, r] = Di(t), i = (0, R.useCallback)(() => {
|
|
1402
|
+
r(function* () {
|
|
1403
|
+
yield t, yield document.getElementById(t) ? t : void 0;
|
|
1404
|
+
});
|
|
1405
|
+
}, [t, r]);
|
|
1406
|
+
return Y(i, [
|
|
1407
|
+
t,
|
|
1408
|
+
i,
|
|
1409
|
+
...e
|
|
1410
|
+
]), n;
|
|
1411
|
+
}
|
|
1412
|
+
//#endregion
|
|
1413
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/mergeRefs.mjs
|
|
1414
|
+
function Fi(...e) {
|
|
1415
|
+
return e.length === 1 && e[0] ? e[0] : (t) => {
|
|
1416
|
+
let n = !1, r = e.map((e) => {
|
|
1417
|
+
let r = Ii(e, t);
|
|
1418
|
+
return n ||= typeof r == "function", r;
|
|
1419
|
+
});
|
|
1420
|
+
if (n) return () => {
|
|
1421
|
+
r.forEach((t, n) => {
|
|
1422
|
+
typeof t == "function" ? t() : Ii(e[n], null);
|
|
1423
|
+
});
|
|
1424
|
+
};
|
|
1425
|
+
};
|
|
1426
|
+
}
|
|
1427
|
+
function Ii(e, t) {
|
|
1428
|
+
if (typeof e == "function") return e(t);
|
|
1429
|
+
e != null && (e.current = t);
|
|
1430
|
+
}
|
|
1431
|
+
//#endregion
|
|
1432
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/mergeProps.mjs
|
|
1433
|
+
function X(...e) {
|
|
1434
|
+
let t = { ...e[0] };
|
|
1435
|
+
for (let n = 1; n < e.length; n++) {
|
|
1436
|
+
let r = e[n];
|
|
1437
|
+
for (let e in r) {
|
|
1438
|
+
let n = t[e], i = r[e];
|
|
1439
|
+
typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = Ei(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = D(n, i) : e === "id" && n && i ? t.id = Ni(n, i) : e === "ref" && n && i ? t.ref = Fi(n, i) : t[e] = i === void 0 ? n : i;
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
return t;
|
|
1443
|
+
}
|
|
1444
|
+
//#endregion
|
|
1445
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/interactions/useFocus.mjs
|
|
1446
|
+
function Li(e) {
|
|
1447
|
+
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, R.useCallback)((e) => {
|
|
1448
|
+
if (J(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
|
|
1449
|
+
}, [r, i]), o = Fr(a), s = (0, R.useCallback)((e) => {
|
|
1450
|
+
let t = J(e), r = W(t), a = r ? q(r) : q();
|
|
1451
|
+
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
|
|
1452
|
+
}, [
|
|
1453
|
+
i,
|
|
1454
|
+
n,
|
|
1455
|
+
o
|
|
1456
|
+
]);
|
|
1457
|
+
return { focusProps: {
|
|
1458
|
+
onFocus: !t && (n || i || r) ? s : void 0,
|
|
1459
|
+
onBlur: !t && (r || i) ? a : void 0
|
|
1460
|
+
} };
|
|
1461
|
+
}
|
|
1462
|
+
//#endregion
|
|
1463
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
|
|
1464
|
+
function Ri(e) {
|
|
1465
|
+
if (e) return (t) => {
|
|
1466
|
+
let n = !0;
|
|
1467
|
+
e({
|
|
1468
|
+
...t,
|
|
1469
|
+
preventDefault() {
|
|
1470
|
+
t.preventDefault();
|
|
1471
|
+
},
|
|
1472
|
+
isDefaultPrevented() {
|
|
1473
|
+
return t.isDefaultPrevented();
|
|
1474
|
+
},
|
|
1475
|
+
stopPropagation() {
|
|
1476
|
+
n = !0;
|
|
1477
|
+
},
|
|
1478
|
+
continuePropagation() {
|
|
1479
|
+
n = !1, typeof t.continuePropagation == "function" && t.continuePropagation();
|
|
1480
|
+
},
|
|
1481
|
+
isPropagationStopped() {
|
|
1482
|
+
return n;
|
|
1483
|
+
}
|
|
1484
|
+
}), n && !(typeof t.isPropagationStopped == "function" && t.isPropagationStopped()) && t.stopPropagation();
|
|
1485
|
+
};
|
|
1486
|
+
}
|
|
1487
|
+
//#endregion
|
|
1488
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
|
|
1489
|
+
var zi = /* @__PURE__ */ new Set([
|
|
1490
|
+
"shift",
|
|
1491
|
+
"alt",
|
|
1492
|
+
"control",
|
|
1493
|
+
"meta",
|
|
1494
|
+
"mod"
|
|
1495
|
+
]), Bi = [
|
|
1496
|
+
"Alt",
|
|
1497
|
+
"Control",
|
|
1498
|
+
"Meta",
|
|
1499
|
+
"Shift"
|
|
1500
|
+
];
|
|
1501
|
+
function Vi(e) {
|
|
1502
|
+
let t = /* @__PURE__ */ new Set();
|
|
1503
|
+
return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(Vr() ? "Meta" : "Control"), t;
|
|
1504
|
+
}
|
|
1505
|
+
function Hi(e) {
|
|
1506
|
+
let t = /* @__PURE__ */ new Set();
|
|
1507
|
+
return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
|
|
1508
|
+
}
|
|
1509
|
+
function Ui(e) {
|
|
1510
|
+
return Bi.filter((t) => e.has(t));
|
|
1511
|
+
}
|
|
1512
|
+
function Wi(e) {
|
|
1513
|
+
let t = e.split("+").reduce((e, t) => {
|
|
1514
|
+
let n = t.toLowerCase();
|
|
1515
|
+
return zi.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
|
|
1516
|
+
}, {
|
|
1517
|
+
shift: !1,
|
|
1518
|
+
alt: !1,
|
|
1519
|
+
ctrl: !1,
|
|
1520
|
+
meta: !1,
|
|
1521
|
+
mod: !1,
|
|
1522
|
+
key: ""
|
|
1523
|
+
});
|
|
1524
|
+
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
|
|
1525
|
+
return t;
|
|
1526
|
+
}
|
|
1527
|
+
function Gi(e) {
|
|
1528
|
+
return e.toLowerCase();
|
|
1529
|
+
}
|
|
1530
|
+
var Ki = {
|
|
1531
|
+
space: " ",
|
|
1532
|
+
esc: "escape",
|
|
1533
|
+
del: "delete",
|
|
1534
|
+
ins: "insert",
|
|
1535
|
+
left: "arrowleft",
|
|
1536
|
+
right: "arrowright",
|
|
1537
|
+
up: "arrowup",
|
|
1538
|
+
down: "arrowdown",
|
|
1539
|
+
pageup: "pageup",
|
|
1540
|
+
pagedown: "pagedown"
|
|
1541
|
+
};
|
|
1542
|
+
function qi(e) {
|
|
1543
|
+
let t = Gi(e);
|
|
1544
|
+
return Ki[t] ?? t;
|
|
1545
|
+
}
|
|
1546
|
+
function Ji(e) {
|
|
1547
|
+
let t = Ui(Vi(e)), n = qi(e.key);
|
|
1548
|
+
return t.length > 0 ? `${t.join("+")}+${n}` : n;
|
|
1549
|
+
}
|
|
1550
|
+
function Yi(e) {
|
|
1551
|
+
let t = Ui(Hi(e)), n = Gi(e.key);
|
|
1552
|
+
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
|
|
1553
|
+
}
|
|
1554
|
+
function Xi(e) {
|
|
1555
|
+
let t = /* @__PURE__ */ new Map();
|
|
1556
|
+
for (let [n, r] of Object.entries(e)) {
|
|
1557
|
+
let e = Wi(n);
|
|
1558
|
+
t.set(Ji(e), r);
|
|
1559
|
+
}
|
|
1560
|
+
return (e) => {
|
|
1561
|
+
let n = Yi(e), r = t.get(n), i = r?.(e);
|
|
1562
|
+
i === void 0 && r !== void 0 ? i = {
|
|
1563
|
+
shouldContinuePropagation: !1,
|
|
1564
|
+
shouldPreventDefault: !0
|
|
1565
|
+
} : typeof i == "boolean" && (i = {
|
|
1566
|
+
shouldContinuePropagation: !i,
|
|
1567
|
+
shouldPreventDefault: i
|
|
1568
|
+
}), i?.shouldPreventDefault && e.preventDefault(), (!r || i?.shouldContinuePropagation) && e.continuePropagation();
|
|
1569
|
+
};
|
|
1570
|
+
}
|
|
1571
|
+
//#endregion
|
|
1572
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
|
|
1573
|
+
function Zi(e) {
|
|
1574
|
+
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
|
|
1575
|
+
if (t) {
|
|
1576
|
+
let o = Xi(t), s = Ri((e) => {
|
|
1577
|
+
if (!K(e.currentTarget, J(e))) {
|
|
1578
|
+
e.continuePropagation();
|
|
1579
|
+
return;
|
|
1580
|
+
}
|
|
1581
|
+
if (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r) {
|
|
1582
|
+
e.continuePropagation();
|
|
1583
|
+
return;
|
|
1584
|
+
}
|
|
1585
|
+
o(e);
|
|
1586
|
+
}), c = Ri((e) => {
|
|
1587
|
+
if (!K(e.currentTarget, J(e))) {
|
|
1588
|
+
e.continuePropagation();
|
|
1589
|
+
return;
|
|
1590
|
+
}
|
|
1591
|
+
if (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r) {
|
|
1592
|
+
e.continuePropagation();
|
|
1593
|
+
return;
|
|
1594
|
+
}
|
|
1595
|
+
e.continuePropagation();
|
|
1596
|
+
});
|
|
1597
|
+
i = e.onKeyDown ? Ei(e.onKeyDown, s) : s, a = e.onKeyUp ? Ei(e.onKeyUp, c) : c;
|
|
1598
|
+
} else i = Ri(e.onKeyDown), a = Ri(e.onKeyUp);
|
|
1599
|
+
return { keyboardProps: e.isDisabled ? {} : {
|
|
1600
|
+
onKeyDown: i,
|
|
1601
|
+
onKeyUp: a
|
|
1602
|
+
} };
|
|
1603
|
+
}
|
|
1604
|
+
//#endregion
|
|
1605
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/useObjectRef.mjs
|
|
1606
|
+
function Qi(e) {
|
|
1607
|
+
let t = (0, R.useRef)(null), n = (0, R.useRef)(void 0), r = (0, R.useCallback)((t) => {
|
|
1608
|
+
if (typeof e == "function") {
|
|
1609
|
+
let n = e, r = n(t);
|
|
1610
|
+
return () => {
|
|
1611
|
+
typeof r == "function" ? r() : n(null);
|
|
1612
|
+
};
|
|
1613
|
+
}
|
|
1614
|
+
if (e) return e.current = t, () => {
|
|
1615
|
+
e.current = null;
|
|
1616
|
+
};
|
|
1617
|
+
}, [e]);
|
|
1618
|
+
return (0, R.useMemo)(() => ({
|
|
1619
|
+
get current() {
|
|
1620
|
+
return t.current;
|
|
1621
|
+
},
|
|
1622
|
+
set current(e) {
|
|
1623
|
+
t.current = e, n.current &&= (n.current(), void 0), e != null && (n.current = r(e));
|
|
1624
|
+
}
|
|
1625
|
+
}), [r]);
|
|
1626
|
+
}
|
|
1627
|
+
//#endregion
|
|
1628
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/useSyncRef.mjs
|
|
1629
|
+
function $i(e, t) {
|
|
1630
|
+
Y(() => {
|
|
1631
|
+
if (e && e.ref && t) return e.ref.current = t.current, () => {
|
|
1632
|
+
e.ref && (e.ref.current = null);
|
|
1633
|
+
};
|
|
1634
|
+
});
|
|
1635
|
+
}
|
|
1636
|
+
//#endregion
|
|
1637
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/interactions/useFocusable.mjs
|
|
1638
|
+
var ea = /*#__PURE__*/ R.createContext(null);
|
|
1639
|
+
function ta(e) {
|
|
1640
|
+
let t = (0, R.useContext)(ea) || {};
|
|
1641
|
+
$i(t, e);
|
|
1642
|
+
let { ref: n, ...r } = t;
|
|
1643
|
+
return r;
|
|
1644
|
+
}
|
|
1645
|
+
function na(e, t) {
|
|
1646
|
+
let { focusProps: n } = Li(e), { keyboardProps: r } = Zi(e), i = X(n, r), a = ta(t), o = e.isDisabled ? {} : a, s = (0, R.useRef)(e.autoFocus);
|
|
1647
|
+
(0, R.useEffect)(() => {
|
|
1648
|
+
s.current && t.current && Ti(t.current), s.current = !1;
|
|
1649
|
+
}, [t]);
|
|
1650
|
+
let c = e.excludeFromTabOrder ? -1 : 0;
|
|
1651
|
+
return e.isDisabled && (c = void 0), { focusableProps: X({
|
|
1652
|
+
...i,
|
|
1653
|
+
tabIndex: c
|
|
1654
|
+
}, o) };
|
|
1655
|
+
}
|
|
1656
|
+
//#endregion
|
|
1657
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/collections/Hidden.mjs
|
|
1658
|
+
typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", {
|
|
1659
|
+
configurable: !0,
|
|
1660
|
+
enumerable: !0,
|
|
1661
|
+
get: function() {
|
|
1662
|
+
return this.content.firstChild;
|
|
1663
|
+
}
|
|
1664
|
+
}), Object.defineProperty(HTMLTemplateElement.prototype, "appendChild", {
|
|
1665
|
+
configurable: !0,
|
|
1666
|
+
enumerable: !0,
|
|
1667
|
+
value: function(e) {
|
|
1668
|
+
return this.content.appendChild(e);
|
|
1669
|
+
}
|
|
1670
|
+
}), Object.defineProperty(HTMLTemplateElement.prototype, "removeChild", {
|
|
1671
|
+
configurable: !0,
|
|
1672
|
+
enumerable: !0,
|
|
1673
|
+
value: function(e) {
|
|
1674
|
+
return this.content.removeChild(e);
|
|
1675
|
+
}
|
|
1676
|
+
}), Object.defineProperty(HTMLTemplateElement.prototype, "insertBefore", {
|
|
1677
|
+
configurable: !0,
|
|
1678
|
+
enumerable: !0,
|
|
1679
|
+
value: function(e, t) {
|
|
1680
|
+
return this.content.insertBefore(e, t);
|
|
1681
|
+
}
|
|
1682
|
+
}));
|
|
1683
|
+
var ra = /*#__PURE__*/ (0, R.createContext)(!1);
|
|
1684
|
+
function ia(e) {
|
|
1685
|
+
let t = (t, n) => (0, R.useContext)(ra) ? null : e(t, n);
|
|
1686
|
+
return t.displayName = e.displayName || e.name, (0, R.forwardRef)(t);
|
|
1687
|
+
}
|
|
1688
|
+
function aa() {
|
|
1689
|
+
return (0, R.useContext)(ra);
|
|
1690
|
+
}
|
|
1691
|
+
//#endregion
|
|
1692
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
|
|
1693
|
+
var oa = R.useInsertionEffect ?? Y;
|
|
1694
|
+
function Z(e) {
|
|
1695
|
+
let t = (0, R.useRef)(null);
|
|
1696
|
+
return oa(() => {
|
|
1697
|
+
t.current = e;
|
|
1698
|
+
}, [e]), (0, R.useCallback)((...e) => {
|
|
1699
|
+
let n = t.current;
|
|
1700
|
+
return n?.(...e);
|
|
1701
|
+
}, []);
|
|
1702
|
+
}
|
|
1703
|
+
//#endregion
|
|
1704
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/useEvent.mjs
|
|
1705
|
+
var sa = /* @__PURE__ */ e(O(), 1);
|
|
1706
|
+
function ca(e, t, n, r) {
|
|
1707
|
+
let i = Z(n), a = n == null;
|
|
1708
|
+
(0, R.useEffect)(() => {
|
|
1709
|
+
if (!(a || e.current == null)) return _r(e.current, t, i, r);
|
|
1710
|
+
}, [
|
|
1711
|
+
e,
|
|
1712
|
+
t,
|
|
1713
|
+
r,
|
|
1714
|
+
a
|
|
1715
|
+
]);
|
|
1716
|
+
}
|
|
1717
|
+
//#endregion
|
|
1718
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/useLabels.mjs
|
|
1719
|
+
function la(e, t) {
|
|
1720
|
+
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
|
|
1721
|
+
return n = Mi(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
|
|
1722
|
+
id: n,
|
|
1723
|
+
"aria-label": r,
|
|
1724
|
+
"aria-labelledby": i
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
//#endregion
|
|
1728
|
+
//#region ../node_modules/.pnpm/@internationalized+string@3.2.10/node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
|
|
1729
|
+
var ua = Symbol.for("react-aria.i18n.locale"), da = Symbol.for("react-aria.i18n.strings"), fa = void 0, pa = class e {
|
|
1730
|
+
constructor(e, t = "en-US") {
|
|
1731
|
+
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
|
|
1732
|
+
}
|
|
1733
|
+
getStringForLocale(e, t) {
|
|
1734
|
+
let n = this.getStringsForLocale(t)[e];
|
|
1735
|
+
if (!n) throw Error(`Could not find intl message ${e} in ${t} locale`);
|
|
1736
|
+
return n;
|
|
1737
|
+
}
|
|
1738
|
+
getStringsForLocale(e) {
|
|
1739
|
+
let t = this.strings[e];
|
|
1740
|
+
return t || (t = ma(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
|
|
1741
|
+
}
|
|
1742
|
+
static getGlobalDictionaryForPackage(t) {
|
|
1743
|
+
if (typeof window > "u") return null;
|
|
1744
|
+
let n = window[ua];
|
|
1745
|
+
if (fa === void 0) {
|
|
1746
|
+
let t = window[da];
|
|
1747
|
+
if (!t) return null;
|
|
1748
|
+
fa = {};
|
|
1749
|
+
for (let r in t) fa[r] = new e({ [n]: t[r] }, n);
|
|
1750
|
+
}
|
|
1751
|
+
let r = fa?.[t];
|
|
1752
|
+
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
|
|
1753
|
+
return r;
|
|
1754
|
+
}
|
|
1755
|
+
};
|
|
1756
|
+
function ma(e, t, n = "en-US") {
|
|
1757
|
+
if (t[e]) return t[e];
|
|
1758
|
+
let r = ha(e), i = ga(e);
|
|
1759
|
+
if (i && t[`${r}-${i}`]) return t[`${r}-${i}`];
|
|
1760
|
+
if (t[r]) return t[r];
|
|
1761
|
+
for (let e in t) if (e.startsWith(r + "-")) return t[e];
|
|
1762
|
+
return t[n];
|
|
1763
|
+
}
|
|
1764
|
+
function ha(e) {
|
|
1765
|
+
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
|
|
1766
|
+
}
|
|
1767
|
+
function ga(e) {
|
|
1768
|
+
if (Intl.Locale) return new Intl.Locale(e).script;
|
|
1769
|
+
}
|
|
1770
|
+
//#endregion
|
|
1771
|
+
//#region ../node_modules/.pnpm/@internationalized+string@3.2.10/node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
|
|
1772
|
+
var _a = /* @__PURE__ */ new Map(), va = /* @__PURE__ */ new Map(), ya = class {
|
|
1773
|
+
constructor(e, t) {
|
|
1774
|
+
this.locale = e, this.strings = t;
|
|
1775
|
+
}
|
|
1776
|
+
format(e, t) {
|
|
1777
|
+
let n = this.strings.getStringForLocale(e, this.locale);
|
|
1778
|
+
return typeof n == "function" ? n(t, this) : n;
|
|
1779
|
+
}
|
|
1780
|
+
plural(e, t, n = "cardinal") {
|
|
1781
|
+
let r = t["=" + e];
|
|
1782
|
+
if (r) return typeof r == "function" ? r() : r;
|
|
1783
|
+
let i = this.locale + ":" + n, a = _a.get(i);
|
|
1784
|
+
return a || (a = new Intl.PluralRules(this.locale, { type: n }), _a.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
|
|
1785
|
+
}
|
|
1786
|
+
number(e) {
|
|
1787
|
+
let t = va.get(this.locale);
|
|
1788
|
+
return t || (t = new Intl.NumberFormat(this.locale), va.set(this.locale, t)), t.format(e);
|
|
1789
|
+
}
|
|
1790
|
+
select(e, t) {
|
|
1791
|
+
let n = e[t] || e.other;
|
|
1792
|
+
return typeof n == "function" ? n() : n;
|
|
1793
|
+
}
|
|
1794
|
+
}, ba = /* @__PURE__ */ new WeakMap();
|
|
1795
|
+
function xa(e) {
|
|
1796
|
+
let t = ba.get(e);
|
|
1797
|
+
return t || (t = new pa(e), ba.set(e, t)), t;
|
|
1798
|
+
}
|
|
1799
|
+
function Sa(e, t) {
|
|
1800
|
+
return t && pa.getGlobalDictionaryForPackage(t) || xa(e);
|
|
1801
|
+
}
|
|
1802
|
+
function Ca(e, t) {
|
|
1803
|
+
let { locale: n } = de(), r = Sa(e, t);
|
|
1804
|
+
return (0, R.useMemo)(() => new ya(n, r), [n, r]);
|
|
1805
|
+
}
|
|
1806
|
+
//#endregion
|
|
1807
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
|
|
1808
|
+
var wa = /* @__PURE__ */ new Set(["id"]), Ta = /* @__PURE__ */ new Set([
|
|
1809
|
+
"aria-label",
|
|
1810
|
+
"aria-labelledby",
|
|
1811
|
+
"aria-describedby",
|
|
1812
|
+
"aria-details"
|
|
1813
|
+
]), Ea = /* @__PURE__ */ new Set([
|
|
1814
|
+
"href",
|
|
1815
|
+
"hrefLang",
|
|
1816
|
+
"target",
|
|
1817
|
+
"rel",
|
|
1818
|
+
"download",
|
|
1819
|
+
"ping",
|
|
1820
|
+
"referrerPolicy"
|
|
1821
|
+
]), Da = /* @__PURE__ */ new Set([
|
|
1822
|
+
"dir",
|
|
1823
|
+
"lang",
|
|
1824
|
+
"hidden",
|
|
1825
|
+
"inert",
|
|
1826
|
+
"translate"
|
|
1827
|
+
]), Oa = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), ka = /^(data-.*)$/;
|
|
1828
|
+
function Aa(e, t = {}) {
|
|
1829
|
+
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
|
|
1830
|
+
for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (wa.has(t) || n && Ta.has(t) || r && Ea.has(t) || i && Da.has(t) || a && (Oa.has(t) || t.endsWith("Capture") && Oa.has(t.slice(0, -7))) || o?.has(t) || ka.test(t)) && (s[t] = e[t]);
|
|
1831
|
+
return s;
|
|
1832
|
+
}
|
|
1833
|
+
//#endregion
|
|
1834
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/interactions/textSelection.mjs
|
|
1835
|
+
var ja = "default", Ma = "", Na = /* @__PURE__ */ new WeakMap();
|
|
1836
|
+
function Pa(e) {
|
|
1837
|
+
if (Wr() && Gr()) {
|
|
1838
|
+
if (ja === "default") {
|
|
1839
|
+
let t = W(e);
|
|
1840
|
+
Ma = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
|
|
1841
|
+
}
|
|
1842
|
+
ja = "disabled";
|
|
1843
|
+
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
|
|
1844
|
+
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
|
|
1845
|
+
Na.set(e, e.style[t]), e.style[t] = "none";
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
function Fa(e) {
|
|
1849
|
+
if (Wr() && Gr()) {
|
|
1850
|
+
if (ja !== "disabled") return;
|
|
1851
|
+
ja = "restoring", setTimeout(() => {
|
|
1852
|
+
wi(() => {
|
|
1853
|
+
if (ja === "restoring") {
|
|
1854
|
+
let t = W(e);
|
|
1855
|
+
t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Ma || ""), Ma = "", ja = "default";
|
|
1856
|
+
}
|
|
1857
|
+
});
|
|
1858
|
+
}, 300);
|
|
1859
|
+
} else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Na.has(e)) {
|
|
1860
|
+
let t = Na.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
|
|
1861
|
+
e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Na.delete(e);
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
//#endregion
|
|
1865
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/getMetaValue.mjs
|
|
1866
|
+
function Ia(e, t) {
|
|
1867
|
+
let n = G(t), r = W(t);
|
|
1868
|
+
if (r == null || n == null) return;
|
|
1869
|
+
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
|
|
1870
|
+
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
|
|
1871
|
+
}
|
|
1872
|
+
//#endregion
|
|
1873
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/getNonce.mjs
|
|
1874
|
+
var La = /* @__PURE__ */ new WeakMap();
|
|
1875
|
+
function Ra(e) {
|
|
1876
|
+
let t = W(e), n = La.get(t);
|
|
1877
|
+
return n ??= Ia("csp-nonce", t), n !== void 0 && La.set(t, n), n;
|
|
1878
|
+
}
|
|
1879
|
+
//#endregion
|
|
1880
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/interactions/context.mjs
|
|
1881
|
+
var za = R.createContext({ register: () => {} });
|
|
1882
|
+
za.displayName = "PressResponderContext";
|
|
1883
|
+
//#endregion
|
|
1884
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
|
|
1885
|
+
function Ba() {
|
|
1886
|
+
let e = (0, R.useRef)(/* @__PURE__ */ new Map()), t = (0, R.useCallback)((t, n, r, i) => {
|
|
1887
|
+
let a = i?.once ? (...t) => {
|
|
1888
|
+
e.current.delete(r), r(...t);
|
|
1889
|
+
} : r;
|
|
1890
|
+
e.current.set(r, {
|
|
1891
|
+
type: n,
|
|
1892
|
+
eventTarget: t,
|
|
1893
|
+
fn: a,
|
|
1894
|
+
options: i
|
|
1895
|
+
}), t.addEventListener(n, a, i);
|
|
1896
|
+
}, []), n = (0, R.useCallback)((t, n, r, i) => {
|
|
1897
|
+
let a = e.current.get(r)?.fn || r;
|
|
1898
|
+
t.removeEventListener(n, a, i), e.current.delete(r);
|
|
1899
|
+
}, []), r = (0, R.useCallback)(() => {
|
|
1900
|
+
e.current.forEach((e, t) => {
|
|
1901
|
+
n(e.eventTarget, e.type, t, e.options);
|
|
1902
|
+
});
|
|
1903
|
+
}, [n]);
|
|
1904
|
+
return (0, R.useEffect)(() => r, [r]), {
|
|
1905
|
+
addGlobalListener: t,
|
|
1906
|
+
removeGlobalListener: n,
|
|
1907
|
+
removeAllGlobalListeners: r
|
|
1908
|
+
};
|
|
1909
|
+
}
|
|
1910
|
+
//#endregion
|
|
1911
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/interactions/usePress.mjs
|
|
1912
|
+
function Va(e) {
|
|
1913
|
+
let t = (0, R.useContext)(za);
|
|
1914
|
+
if (t) {
|
|
1915
|
+
let { register: n, ref: r, ...i } = t;
|
|
1916
|
+
e = X(i, e), n();
|
|
1917
|
+
}
|
|
1918
|
+
return $i(t, e.ref), e;
|
|
1919
|
+
}
|
|
1920
|
+
var Ha = class {
|
|
1921
|
+
#e;
|
|
1922
|
+
constructor(e, t, n, r) {
|
|
1923
|
+
this.#e = !0;
|
|
1924
|
+
let i = (r?.target ?? n.currentTarget)?.getBoundingClientRect(), a, o = 0, s, c = null;
|
|
1925
|
+
n.clientX != null && n.clientY != null && (s = n.clientX, c = n.clientY), i && (s != null && c != null ? (a = s - i.left, o = c - i.top) : (a = i.width / 2, o = i.height / 2)), this.type = e, this.pointerType = t, this.target = n.currentTarget, this.shiftKey = n.shiftKey, this.metaKey = n.metaKey, this.ctrlKey = n.ctrlKey, this.altKey = n.altKey, this.x = a, this.y = o, this.key = n.key;
|
|
1926
|
+
}
|
|
1927
|
+
continuePropagation() {
|
|
1928
|
+
this.#e = !1;
|
|
1929
|
+
}
|
|
1930
|
+
get shouldStopPropagation() {
|
|
1931
|
+
return this.#e;
|
|
1932
|
+
}
|
|
1933
|
+
}, Ua = Symbol("linkClicked"), Wa = "react-aria-pressable-style", Ga = "data-react-aria-pressable";
|
|
1934
|
+
function Ka(e) {
|
|
1935
|
+
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 } = Va(e), [m, h] = (0, R.useState)(!1), g = (0, R.useRef)({
|
|
1936
|
+
isPressed: !1,
|
|
1937
|
+
ignoreEmulatedMouseEvents: !1,
|
|
1938
|
+
didFirePressStart: !1,
|
|
1939
|
+
isTriggeringEvent: !1,
|
|
1940
|
+
activePointerId: null,
|
|
1941
|
+
target: null,
|
|
1942
|
+
isOverTarget: !1,
|
|
1943
|
+
pointerType: null,
|
|
1944
|
+
disposables: []
|
|
1945
|
+
}), { addGlobalListener: _, removeAllGlobalListeners: v } = Ba(), y = (0, R.useCallback)((e, t) => {
|
|
1946
|
+
let i = g.current;
|
|
1947
|
+
if (s || i.didFirePressStart) return !1;
|
|
1948
|
+
let a = !0;
|
|
1949
|
+
if (i.isTriggeringEvent = !0, r) {
|
|
1950
|
+
let n = new Ha("pressstart", t, e);
|
|
1951
|
+
r(n), a = n.shouldStopPropagation;
|
|
1952
|
+
}
|
|
1953
|
+
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
|
|
1954
|
+
}, [
|
|
1955
|
+
s,
|
|
1956
|
+
r,
|
|
1957
|
+
n
|
|
1958
|
+
]), b = (0, R.useCallback)((e, r, a = !0) => {
|
|
1959
|
+
let o = g.current;
|
|
1960
|
+
if (!o.didFirePressStart) return !1;
|
|
1961
|
+
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
|
|
1962
|
+
let c = !0;
|
|
1963
|
+
if (i) {
|
|
1964
|
+
let t = new Ha("pressend", r, e);
|
|
1965
|
+
i(t), c = t.shouldStopPropagation;
|
|
1966
|
+
}
|
|
1967
|
+
if (n && n(!1), h(!1), t && a && !s) {
|
|
1968
|
+
let n = new Ha("press", r, e);
|
|
1969
|
+
t(n), c &&= n.shouldStopPropagation;
|
|
1970
|
+
}
|
|
1971
|
+
return o.isTriggeringEvent = !1, c;
|
|
1972
|
+
}, [
|
|
1973
|
+
s,
|
|
1974
|
+
i,
|
|
1975
|
+
n,
|
|
1976
|
+
t
|
|
1977
|
+
]), x = Z(b), S = Z((0, R.useCallback)((e, t) => {
|
|
1978
|
+
let n = g.current;
|
|
1979
|
+
if (s) return !1;
|
|
1980
|
+
if (a) {
|
|
1981
|
+
n.isTriggeringEvent = !0;
|
|
1982
|
+
let r = new Ha("pressup", t, e);
|
|
1983
|
+
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
|
|
1984
|
+
}
|
|
1985
|
+
return !0;
|
|
1986
|
+
}, [s, a])), C = (0, R.useCallback)((e) => {
|
|
1987
|
+
let t = g.current;
|
|
1988
|
+
if (t.isPressed && t.target) {
|
|
1989
|
+
t.didFirePressStart && t.pointerType != null && b(Ya(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Fa(t.target);
|
|
1990
|
+
for (let e of t.disposables) e();
|
|
1991
|
+
t.disposables = [];
|
|
1992
|
+
}
|
|
1993
|
+
}, [
|
|
1994
|
+
d,
|
|
1995
|
+
v,
|
|
1996
|
+
b
|
|
1997
|
+
]), w = Z(C);
|
|
1998
|
+
(0, R.useEffect)(() => {
|
|
1999
|
+
s && g.current.isPressed && w({
|
|
2000
|
+
currentTarget: g.current.target,
|
|
2001
|
+
shiftKey: !1,
|
|
2002
|
+
ctrlKey: !1,
|
|
2003
|
+
metaKey: !1,
|
|
2004
|
+
altKey: !1
|
|
2005
|
+
});
|
|
2006
|
+
}, [s]);
|
|
2007
|
+
let T = (0, R.useCallback)((e) => {
|
|
2008
|
+
u && C(e);
|
|
2009
|
+
}, [u, C]), E = (0, R.useCallback)((e) => {
|
|
2010
|
+
s || o?.(e);
|
|
2011
|
+
}, [s, o]), D = (0, R.useCallback)((e, t) => {
|
|
2012
|
+
if (!s && o) {
|
|
2013
|
+
let n = new MouseEvent("click", e);
|
|
2014
|
+
Pr(n, t), o(Nr(n));
|
|
2015
|
+
}
|
|
2016
|
+
}, [s, o]), O = (0, R.useMemo)(() => {
|
|
2017
|
+
let e = g.current, t = {
|
|
2018
|
+
onKeyDown(t) {
|
|
2019
|
+
if (Ja(t.nativeEvent, t.currentTarget) && K(t.currentTarget, J(t))) {
|
|
2020
|
+
Za(J(t), t.key) && t.preventDefault();
|
|
2021
|
+
let r = !0;
|
|
2022
|
+
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
|
|
2023
|
+
let i = t.currentTarget;
|
|
2024
|
+
_(W(t.currentTarget), "keyup", Ei((t) => {
|
|
2025
|
+
Ja(t, i) && !t.repeat && K(i, J(t)) && e.target && S(Ya(e.target, t), "keyboard");
|
|
2026
|
+
}, n), !0), r && t.stopPropagation(), t.metaKey && Vr() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
|
|
2027
|
+
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
2028
|
+
},
|
|
2029
|
+
onClick(t) {
|
|
2030
|
+
if (!(t && !K(t.currentTarget, J(t))) && t && t.button === 0 && !e.isTriggeringEvent && !Zr.isOpening) {
|
|
2031
|
+
let n = !0;
|
|
2032
|
+
if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Yr(t.nativeEvent))) {
|
|
2033
|
+
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
|
|
2034
|
+
E(t), n = e && r && i;
|
|
2035
|
+
} else if (e.isPressed && e.pointerType !== "keyboard") {
|
|
2036
|
+
let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(Ya(t.currentTarget, t), r), a = x(Ya(t.currentTarget, t), r, !0);
|
|
2037
|
+
n = i && a, e.isOverTarget = !1, E(t), w(t);
|
|
2038
|
+
}
|
|
2039
|
+
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
|
|
2040
|
+
}
|
|
2041
|
+
}
|
|
2042
|
+
}, n = (t) => {
|
|
2043
|
+
if (e.isPressed && e.target && Ja(t, e.target)) {
|
|
2044
|
+
Za(J(t), t.key) && t.preventDefault();
|
|
2045
|
+
let n = J(t), r = K(e.target, n);
|
|
2046
|
+
x(Ya(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && qa(e.target) && K(e.target, n) && !t[Ua] && (t[Ua] = !0, Zr(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
|
|
2047
|
+
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
|
|
2048
|
+
let t = e.metaKeyEvents;
|
|
2049
|
+
e.metaKeyEvents = void 0;
|
|
2050
|
+
for (let n of t.values()) e.target?.dispatchEvent(new KeyboardEvent("keyup", n));
|
|
2051
|
+
}
|
|
2052
|
+
};
|
|
2053
|
+
if (typeof PointerEvent < "u") {
|
|
2054
|
+
t.onPointerDown = (t) => {
|
|
2055
|
+
if (t.button !== 0 || !K(t.currentTarget, J(t))) return;
|
|
2056
|
+
if (Xr(t.nativeEvent)) {
|
|
2057
|
+
e.pointerType = "virtual";
|
|
2058
|
+
return;
|
|
2059
|
+
}
|
|
2060
|
+
e.pointerType = t.pointerType;
|
|
2061
|
+
let i = !0;
|
|
2062
|
+
if (!e.isPressed) {
|
|
2063
|
+
e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Pa(e.target), i = y(t, e.pointerType);
|
|
2064
|
+
let a = J(t);
|
|
2065
|
+
"releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(W(t.currentTarget), "pointerup", n, !1), _(W(t.currentTarget), "pointercancel", r, !1);
|
|
2066
|
+
}
|
|
2067
|
+
i && t.stopPropagation();
|
|
2068
|
+
}, t.onMouseDown = (t) => {
|
|
2069
|
+
if (K(t.currentTarget, J(t)) && t.button === 0) {
|
|
2070
|
+
if (l) {
|
|
2071
|
+
let n = Lr(t.target);
|
|
2072
|
+
n && e.disposables.push(n);
|
|
2073
|
+
}
|
|
2074
|
+
t.stopPropagation();
|
|
2075
|
+
}
|
|
2076
|
+
}, t.onPointerUp = (t) => {
|
|
2077
|
+
!K(t.currentTarget, J(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
|
|
2078
|
+
}, t.onPointerEnter = (t) => {
|
|
2079
|
+
t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(Ya(e.target, t), e.pointerType));
|
|
2080
|
+
}, t.onPointerLeave = (t) => {
|
|
2081
|
+
t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Ya(e.target, t), e.pointerType, !1), T(t));
|
|
2082
|
+
};
|
|
2083
|
+
let n = (t) => {
|
|
2084
|
+
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
|
|
2085
|
+
if (K(e.target, J(t)) && e.pointerType != null) {
|
|
2086
|
+
let n = !1, r = setTimeout(() => {
|
|
2087
|
+
e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (cr(e.target), e.target.click()));
|
|
2088
|
+
}, 80);
|
|
2089
|
+
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
|
|
2090
|
+
} else w(t);
|
|
2091
|
+
e.isOverTarget = !1;
|
|
2092
|
+
}
|
|
2093
|
+
}, r = (e) => {
|
|
2094
|
+
w(e);
|
|
2095
|
+
};
|
|
2096
|
+
t.onDragStart = (e) => {
|
|
2097
|
+
K(e.currentTarget, J(e)) && w(e);
|
|
2098
|
+
};
|
|
2099
|
+
}
|
|
2100
|
+
return t;
|
|
2101
|
+
}, [
|
|
2102
|
+
_,
|
|
2103
|
+
s,
|
|
2104
|
+
l,
|
|
2105
|
+
v,
|
|
2106
|
+
d,
|
|
2107
|
+
T,
|
|
2108
|
+
y,
|
|
2109
|
+
E,
|
|
2110
|
+
D
|
|
2111
|
+
]);
|
|
2112
|
+
return (0, R.useEffect)(() => {
|
|
2113
|
+
if (!f) return;
|
|
2114
|
+
let e = W(f.current);
|
|
2115
|
+
if (!e || !e.head || e.getElementById(Wa)) return;
|
|
2116
|
+
let t = e.createElement("style");
|
|
2117
|
+
t.id = Wa;
|
|
2118
|
+
let n = Ra(e);
|
|
2119
|
+
n && (t.nonce = n), t.textContent = `
|
|
2120
|
+
@layer {
|
|
2121
|
+
[${Ga}] {
|
|
2122
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
`.trim(), e.head.prepend(t);
|
|
2126
|
+
}, [f]), (0, R.useEffect)(() => {
|
|
2127
|
+
let e = g.current;
|
|
2128
|
+
return () => {
|
|
2129
|
+
d || Fa(e.target ?? void 0);
|
|
2130
|
+
for (let t of e.disposables) t();
|
|
2131
|
+
e.disposables = [];
|
|
2132
|
+
};
|
|
2133
|
+
}, [d]), {
|
|
2134
|
+
isPressed: c || m,
|
|
2135
|
+
pressProps: X(p, O, { [Ga]: !0 })
|
|
2136
|
+
};
|
|
2137
|
+
}
|
|
2138
|
+
function qa(e) {
|
|
2139
|
+
return e.tagName === "A" && e.hasAttribute("href");
|
|
2140
|
+
}
|
|
2141
|
+
function Ja(e, t) {
|
|
2142
|
+
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
|
|
2143
|
+
return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof G(i).HTMLInputElement && !$a(i, n) || i instanceof G(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && qa(i)) && n !== "Enter");
|
|
2144
|
+
}
|
|
2145
|
+
function Ya(e, t) {
|
|
2146
|
+
let n = t.clientX, r = t.clientY;
|
|
2147
|
+
return {
|
|
2148
|
+
currentTarget: e,
|
|
2149
|
+
shiftKey: t.shiftKey,
|
|
2150
|
+
ctrlKey: t.ctrlKey,
|
|
2151
|
+
metaKey: t.metaKey,
|
|
2152
|
+
altKey: t.altKey,
|
|
2153
|
+
clientX: n,
|
|
2154
|
+
clientY: r,
|
|
2155
|
+
key: t.key
|
|
2156
|
+
};
|
|
2157
|
+
}
|
|
2158
|
+
function Xa(e) {
|
|
2159
|
+
return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !qa(e);
|
|
2160
|
+
}
|
|
2161
|
+
function Za(e, t) {
|
|
2162
|
+
return Vr() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !$a(e, t) : Xa(e);
|
|
2163
|
+
}
|
|
2164
|
+
var Qa = /* @__PURE__ */ new Set([
|
|
2165
|
+
"checkbox",
|
|
2166
|
+
"radio",
|
|
2167
|
+
"range",
|
|
2168
|
+
"color",
|
|
2169
|
+
"file",
|
|
2170
|
+
"image",
|
|
2171
|
+
"button",
|
|
2172
|
+
"submit",
|
|
2173
|
+
"reset"
|
|
2174
|
+
]);
|
|
2175
|
+
function $a(e, t) {
|
|
2176
|
+
return e.type === "checkbox" || e.type === "radio" ? t === " " : Qa.has(e.type);
|
|
2177
|
+
}
|
|
2178
|
+
//#endregion
|
|
2179
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/button/useButton.mjs
|
|
2180
|
+
function eo(e, t) {
|
|
2181
|
+
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
|
|
2182
|
+
g = n === "button" ? {
|
|
2183
|
+
type: h,
|
|
2184
|
+
disabled: r,
|
|
2185
|
+
form: e.form,
|
|
2186
|
+
formAction: e.formAction,
|
|
2187
|
+
formEncType: e.formEncType,
|
|
2188
|
+
formMethod: e.formMethod,
|
|
2189
|
+
formNoValidate: e.formNoValidate,
|
|
2190
|
+
formTarget: e.formTarget,
|
|
2191
|
+
name: e.name,
|
|
2192
|
+
value: e.value
|
|
2193
|
+
} : {
|
|
2194
|
+
role: "button",
|
|
2195
|
+
href: n === "a" && !r ? f : void 0,
|
|
2196
|
+
target: n === "a" ? p : void 0,
|
|
2197
|
+
type: n === "input" ? h : void 0,
|
|
2198
|
+
disabled: n === "input" ? r : void 0,
|
|
2199
|
+
"aria-disabled": !r || n === "input" ? void 0 : r,
|
|
2200
|
+
rel: n === "a" ? m : void 0
|
|
2201
|
+
};
|
|
2202
|
+
let { pressProps: _, isPressed: v } = Ka({
|
|
2203
|
+
onPressStart: a,
|
|
2204
|
+
onPressEnd: o,
|
|
2205
|
+
onPressChange: c,
|
|
2206
|
+
onPress: i,
|
|
2207
|
+
onPressUp: s,
|
|
2208
|
+
onClick: d,
|
|
2209
|
+
isDisabled: r,
|
|
2210
|
+
preventFocusOnPress: l,
|
|
2211
|
+
ref: t
|
|
2212
|
+
}), { focusableProps: y } = na(e, t);
|
|
2213
|
+
u && (y.tabIndex = r ? -1 : y.tabIndex);
|
|
2214
|
+
let b = X(y, _, Aa(e, { labelable: !0 }));
|
|
2215
|
+
return {
|
|
2216
|
+
isPressed: v,
|
|
2217
|
+
buttonProps: X(g, b, {
|
|
2218
|
+
"aria-haspopup": e["aria-haspopup"],
|
|
2219
|
+
"aria-expanded": e["aria-expanded"],
|
|
2220
|
+
"aria-controls": e["aria-controls"],
|
|
2221
|
+
"aria-pressed": e["aria-pressed"],
|
|
2222
|
+
"aria-current": e["aria-current"],
|
|
2223
|
+
"aria-disabled": e["aria-disabled"]
|
|
2224
|
+
})
|
|
2225
|
+
};
|
|
2226
|
+
}
|
|
2227
|
+
//#endregion
|
|
2228
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/live-announcer/LiveAnnouncer.mjs
|
|
2229
|
+
var to = 7e3, no = null;
|
|
2230
|
+
function ro(e, t = "assertive", n = to) {
|
|
2231
|
+
no ? no.announce(e, t, n) : (no = new ao(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? no.announce(e, t, n) : setTimeout(() => {
|
|
2232
|
+
no?.isAttached() && no?.announce(e, t, n);
|
|
2233
|
+
}, 100));
|
|
2234
|
+
}
|
|
2235
|
+
function io(e) {
|
|
2236
|
+
no && no.clear(e);
|
|
2237
|
+
}
|
|
2238
|
+
var ao = class {
|
|
2239
|
+
constructor() {
|
|
2240
|
+
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
|
|
2241
|
+
border: 0,
|
|
2242
|
+
clip: "rect(0 0 0 0)",
|
|
2243
|
+
clipPath: "inset(50%)",
|
|
2244
|
+
height: "1px",
|
|
2245
|
+
margin: "-1px",
|
|
2246
|
+
overflow: "hidden",
|
|
2247
|
+
padding: 0,
|
|
2248
|
+
position: "absolute",
|
|
2249
|
+
width: "1px",
|
|
2250
|
+
whiteSpace: "nowrap"
|
|
2251
|
+
}), this.assertiveLog = this.createLog("assertive"), this.node.appendChild(this.assertiveLog), this.politeLog = this.createLog("polite"), this.node.appendChild(this.politeLog), document.body.prepend(this.node));
|
|
2252
|
+
}
|
|
2253
|
+
isAttached() {
|
|
2254
|
+
return this.node?.isConnected;
|
|
2255
|
+
}
|
|
2256
|
+
createLog(e) {
|
|
2257
|
+
let t = document.createElement("div");
|
|
2258
|
+
return t.setAttribute("role", "log"), t.setAttribute("aria-live", e), t.setAttribute("aria-relevant", "additions"), t;
|
|
2259
|
+
}
|
|
2260
|
+
destroy() {
|
|
2261
|
+
this.node &&= (document.body.removeChild(this.node), null);
|
|
2262
|
+
}
|
|
2263
|
+
announce(e, t = "assertive", n = to) {
|
|
2264
|
+
if (!this.node) return;
|
|
2265
|
+
let r = document.createElement("div");
|
|
2266
|
+
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
|
|
2267
|
+
r.remove();
|
|
2268
|
+
}, n);
|
|
2269
|
+
}
|
|
2270
|
+
clear(e) {
|
|
2271
|
+
this.node && ((!e || e === "assertive") && this.assertiveLog && (this.assertiveLog.innerHTML = ""), (!e || e === "polite") && this.politeLog && (this.politeLog.innerHTML = ""));
|
|
2272
|
+
}
|
|
2273
|
+
};
|
|
2274
|
+
//#endregion
|
|
2275
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/utils/useFormReset.mjs
|
|
2276
|
+
function oo(e, t, n) {
|
|
2277
|
+
let r = Z((e) => {
|
|
2278
|
+
n && !e.defaultPrevented && n(t);
|
|
2279
|
+
});
|
|
2280
|
+
(0, R.useEffect)(() => {
|
|
2281
|
+
let t = e?.current?.form;
|
|
2282
|
+
return t?.addEventListener("reset", r), () => {
|
|
2283
|
+
t?.removeEventListener("reset", r);
|
|
2284
|
+
};
|
|
2285
|
+
}, [e]);
|
|
2286
|
+
}
|
|
2287
|
+
//#endregion
|
|
2288
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/form/useFormValidation.mjs
|
|
2289
|
+
function so(e, t, n) {
|
|
2290
|
+
let { validationBehavior: r, focus: i } = e;
|
|
2291
|
+
Y(() => {
|
|
2292
|
+
if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {
|
|
2293
|
+
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
|
|
2294
|
+
n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(lo(n.current));
|
|
2295
|
+
}
|
|
2296
|
+
});
|
|
2297
|
+
let a = (0, R.useRef)(!1), o = Z(() => {
|
|
2298
|
+
a.current || t.resetValidation();
|
|
2299
|
+
}), s = Z((e) => {
|
|
2300
|
+
t.displayValidation.isInvalid || t.commitValidation();
|
|
2301
|
+
let r = n?.current?.form;
|
|
2302
|
+
!e.defaultPrevented && n && r && uo(r) === n.current && (i ? i() : n.current?.focus(), gi("keyboard")), e.preventDefault();
|
|
2303
|
+
}), c = Z(() => {
|
|
2304
|
+
t.commitValidation();
|
|
2305
|
+
});
|
|
2306
|
+
(0, R.useEffect)(() => {
|
|
2307
|
+
let e = n?.current;
|
|
2308
|
+
if (!e) return;
|
|
2309
|
+
let t = e.form, r = t?.reset;
|
|
2310
|
+
return t && (t.reset = () => {
|
|
2311
|
+
a.current = !window.event || window.event.type === "message" && J(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
|
|
2312
|
+
}), e.addEventListener("invalid", s), e.addEventListener("change", c), t?.addEventListener("reset", o), () => {
|
|
2313
|
+
e.removeEventListener("invalid", s), e.removeEventListener("change", c), t?.removeEventListener("reset", o), t && (t.reset = r);
|
|
2314
|
+
};
|
|
2315
|
+
}, [n, r]);
|
|
2316
|
+
}
|
|
2317
|
+
function co(e) {
|
|
2318
|
+
let t = e.validity;
|
|
2319
|
+
return {
|
|
2320
|
+
badInput: t.badInput,
|
|
2321
|
+
customError: t.customError,
|
|
2322
|
+
patternMismatch: t.patternMismatch,
|
|
2323
|
+
rangeOverflow: t.rangeOverflow,
|
|
2324
|
+
rangeUnderflow: t.rangeUnderflow,
|
|
2325
|
+
stepMismatch: t.stepMismatch,
|
|
2326
|
+
tooLong: t.tooLong,
|
|
2327
|
+
tooShort: t.tooShort,
|
|
2328
|
+
typeMismatch: t.typeMismatch,
|
|
2329
|
+
valueMissing: t.valueMissing,
|
|
2330
|
+
valid: t.valid
|
|
2331
|
+
};
|
|
2332
|
+
}
|
|
2333
|
+
function lo(e) {
|
|
2334
|
+
return {
|
|
2335
|
+
isInvalid: !e.validity.valid,
|
|
2336
|
+
validationDetails: co(e),
|
|
2337
|
+
validationErrors: e.validationMessage ? [e.validationMessage] : []
|
|
2338
|
+
};
|
|
2339
|
+
}
|
|
2340
|
+
function uo(e) {
|
|
2341
|
+
for (let t = 0; t < e.elements.length; t++) {
|
|
2342
|
+
let n = e.elements[t];
|
|
2343
|
+
if (n.validity?.valid === !1) return n;
|
|
2344
|
+
}
|
|
2345
|
+
return null;
|
|
2346
|
+
}
|
|
2347
|
+
//#endregion
|
|
2348
|
+
//#region ../node_modules/.pnpm/react-stately@3.50.0_react@19.2.8/node_modules/react-stately/dist/private/form/useFormValidationState.mjs
|
|
2349
|
+
var fo = {
|
|
2350
|
+
badInput: !1,
|
|
2351
|
+
customError: !1,
|
|
2352
|
+
patternMismatch: !1,
|
|
2353
|
+
rangeOverflow: !1,
|
|
2354
|
+
rangeUnderflow: !1,
|
|
2355
|
+
stepMismatch: !1,
|
|
2356
|
+
tooLong: !1,
|
|
2357
|
+
tooShort: !1,
|
|
2358
|
+
typeMismatch: !1,
|
|
2359
|
+
valueMissing: !1,
|
|
2360
|
+
valid: !0
|
|
2361
|
+
}, po = {
|
|
2362
|
+
...fo,
|
|
2363
|
+
customError: !0,
|
|
2364
|
+
valid: !1
|
|
2365
|
+
}, mo = {
|
|
2366
|
+
isInvalid: !1,
|
|
2367
|
+
validationDetails: fo,
|
|
2368
|
+
validationErrors: []
|
|
2369
|
+
}, ho = (0, R.createContext)({}), go = "__reactAriaFormValidationState";
|
|
2370
|
+
function _o(e) {
|
|
2371
|
+
if (e.__reactAriaFormValidationState) {
|
|
2372
|
+
let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[go];
|
|
2373
|
+
return {
|
|
2374
|
+
realtimeValidation: t,
|
|
2375
|
+
displayValidation: n,
|
|
2376
|
+
updateValidation: r,
|
|
2377
|
+
resetValidation: i,
|
|
2378
|
+
commitValidation: a
|
|
2379
|
+
};
|
|
2380
|
+
}
|
|
2381
|
+
return vo(e);
|
|
2382
|
+
}
|
|
2383
|
+
function vo(e) {
|
|
2384
|
+
let { isInvalid: t, validationState: n, name: r, value: i, builtinValidation: a, validate: o, validationBehavior: s = "aria" } = e;
|
|
2385
|
+
n && (t ||= n === "invalid");
|
|
2386
|
+
let c = t === void 0 ? null : {
|
|
2387
|
+
isInvalid: t,
|
|
2388
|
+
validationErrors: [],
|
|
2389
|
+
validationDetails: po
|
|
2390
|
+
}, l = (0, R.useMemo)(() => !o || i == null ? null : xo(bo(o, i)), [o, i]);
|
|
2391
|
+
a?.validationDetails.valid && (a = void 0);
|
|
2392
|
+
let u = (0, R.useContext)(ho), d = (0, R.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => yo(u[e])) : yo(u[r]) : [], [u, r]), [f, p] = (0, R.useState)(u), [m, h] = (0, R.useState)(!1);
|
|
2393
|
+
u !== f && (p(u), h(!1));
|
|
2394
|
+
let g = (0, R.useMemo)(() => xo(m ? [] : d), [m, d]), _ = (0, R.useRef)(mo), [v, y] = (0, R.useState)(mo), b = (0, R.useRef)(mo), x = () => {
|
|
2395
|
+
if (!S) return;
|
|
2396
|
+
C(!1);
|
|
2397
|
+
let e = l || a || _.current;
|
|
2398
|
+
So(e, b.current) || (b.current = e, y(e));
|
|
2399
|
+
}, [S, C] = (0, R.useState)(!1);
|
|
2400
|
+
return (0, R.useEffect)(x), {
|
|
2401
|
+
realtimeValidation: c || g || l || a || mo,
|
|
2402
|
+
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
|
|
2403
|
+
updateValidation(e) {
|
|
2404
|
+
s === "aria" && !So(v, e) ? y(e) : _.current = e;
|
|
2405
|
+
},
|
|
2406
|
+
resetValidation() {
|
|
2407
|
+
let e = mo;
|
|
2408
|
+
So(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
|
|
2409
|
+
},
|
|
2410
|
+
commitValidation() {
|
|
2411
|
+
s === "native" && C(!0), h(!0);
|
|
2412
|
+
}
|
|
2413
|
+
};
|
|
2414
|
+
}
|
|
2415
|
+
function yo(e) {
|
|
2416
|
+
return e ? Array.isArray(e) ? e : [e] : [];
|
|
2417
|
+
}
|
|
2418
|
+
function bo(e, t) {
|
|
2419
|
+
if (typeof e == "function") {
|
|
2420
|
+
let n = e(t);
|
|
2421
|
+
if (n && typeof n != "boolean") return yo(n);
|
|
2422
|
+
}
|
|
2423
|
+
return [];
|
|
2424
|
+
}
|
|
2425
|
+
function xo(e) {
|
|
2426
|
+
return e.length ? {
|
|
2427
|
+
isInvalid: !0,
|
|
2428
|
+
validationErrors: e,
|
|
2429
|
+
validationDetails: po
|
|
2430
|
+
} : null;
|
|
2431
|
+
}
|
|
2432
|
+
function So(e, t) {
|
|
2433
|
+
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
|
|
2434
|
+
}
|
|
2435
|
+
function Co(...e) {
|
|
2436
|
+
let t = /* @__PURE__ */ new Set(), n = !1, r = { ...fo };
|
|
2437
|
+
for (let i of e) {
|
|
2438
|
+
for (let e of i.validationErrors) t.add(e);
|
|
2439
|
+
n ||= i.isInvalid;
|
|
2440
|
+
for (let e in r) r[e] ||= i.validationDetails[e];
|
|
2441
|
+
}
|
|
2442
|
+
return r.valid = !n, {
|
|
2443
|
+
isInvalid: n,
|
|
2444
|
+
validationErrors: [...t],
|
|
2445
|
+
validationDetails: r
|
|
2446
|
+
};
|
|
2447
|
+
}
|
|
2448
|
+
//#endregion
|
|
2449
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/label/useLabel.mjs
|
|
2450
|
+
function wo(e) {
|
|
2451
|
+
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
|
|
2452
|
+
t = Mi(t);
|
|
2453
|
+
let o = Mi(), s = {};
|
|
2454
|
+
n && (r = r ? `${o} ${r}` : o, s = {
|
|
2455
|
+
id: o,
|
|
2456
|
+
htmlFor: a === "label" ? t : void 0
|
|
2457
|
+
});
|
|
2458
|
+
let c = la({
|
|
2459
|
+
id: t,
|
|
2460
|
+
"aria-label": i,
|
|
2461
|
+
"aria-labelledby": r
|
|
2462
|
+
});
|
|
2463
|
+
return {
|
|
2464
|
+
labelProps: s,
|
|
2465
|
+
fieldProps: c
|
|
2466
|
+
};
|
|
2467
|
+
}
|
|
2468
|
+
//#endregion
|
|
2469
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/label/useField.mjs
|
|
2470
|
+
function To(e) {
|
|
2471
|
+
let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = wo(e), s = Pi([
|
|
2472
|
+
!!t,
|
|
2473
|
+
!!n,
|
|
2474
|
+
r,
|
|
2475
|
+
i
|
|
2476
|
+
]), c = Pi([
|
|
2477
|
+
!!t,
|
|
2478
|
+
!!n,
|
|
2479
|
+
r,
|
|
2480
|
+
i
|
|
2481
|
+
]);
|
|
2482
|
+
return o = X(o, { "aria-describedby": [
|
|
2483
|
+
s,
|
|
2484
|
+
c,
|
|
2485
|
+
e["aria-describedby"]
|
|
2486
|
+
].filter(Boolean).join(" ") || void 0 }), {
|
|
2487
|
+
labelProps: a,
|
|
2488
|
+
fieldProps: o,
|
|
2489
|
+
descriptionProps: { id: s },
|
|
2490
|
+
errorMessageProps: { id: c }
|
|
2491
|
+
};
|
|
2492
|
+
}
|
|
2493
|
+
//#endregion
|
|
2494
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
|
|
2495
|
+
function Eo(e) {
|
|
2496
|
+
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, R.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Ba(), c = (0, R.useCallback)((e) => {
|
|
2497
|
+
K(e.currentTarget, J(e)) && a.current.isFocusWithin && !K(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
|
|
2498
|
+
}, [
|
|
2499
|
+
n,
|
|
2500
|
+
i,
|
|
2501
|
+
a,
|
|
2502
|
+
s
|
|
2503
|
+
]), l = Fr(c), u = (0, R.useCallback)((e) => {
|
|
2504
|
+
if (!K(e.currentTarget, J(e))) return;
|
|
2505
|
+
let t = J(e), n = W(t), s = q(n);
|
|
2506
|
+
if (!a.current.isFocusWithin && s === t) {
|
|
2507
|
+
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
|
|
2508
|
+
let t = e.currentTarget;
|
|
2509
|
+
o(n, "focus", (e) => {
|
|
2510
|
+
let r = J(e);
|
|
2511
|
+
if (a.current.isFocusWithin && !K(t, r)) {
|
|
2512
|
+
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
|
|
2513
|
+
Pr(e, t);
|
|
2514
|
+
let i = Nr(e);
|
|
2515
|
+
c(i);
|
|
2516
|
+
}
|
|
2517
|
+
}, { capture: !0 });
|
|
2518
|
+
}
|
|
2519
|
+
}, [
|
|
2520
|
+
r,
|
|
2521
|
+
i,
|
|
2522
|
+
l,
|
|
2523
|
+
o,
|
|
2524
|
+
c
|
|
2525
|
+
]);
|
|
2526
|
+
return t ? { focusWithinProps: {
|
|
2527
|
+
onFocus: void 0,
|
|
2528
|
+
onBlur: void 0
|
|
2529
|
+
} } : { focusWithinProps: {
|
|
2530
|
+
onFocus: u,
|
|
2531
|
+
onBlur: c
|
|
2532
|
+
} };
|
|
2533
|
+
}
|
|
2534
|
+
//#endregion
|
|
2535
|
+
//#region ../node_modules/.pnpm/react-stately@3.50.0_react@19.2.8/node_modules/react-stately/dist/private/utils/useControlledState.mjs
|
|
2536
|
+
var Do = typeof document < "u" ? R.useInsertionEffect ?? R.useLayoutEffect : () => {};
|
|
2537
|
+
function Oo(e, t, n) {
|
|
2538
|
+
let [r, i] = (0, R.useState)(e || t), a = (0, R.useRef)(r), o = (0, R.useRef)(e !== void 0), s = e !== void 0;
|
|
2539
|
+
(0, R.useEffect)(() => {
|
|
2540
|
+
o.current, o.current = s;
|
|
2541
|
+
}, [s]);
|
|
2542
|
+
let c = s ? e : r;
|
|
2543
|
+
Do(() => {
|
|
2544
|
+
a.current = c;
|
|
2545
|
+
});
|
|
2546
|
+
let [, l] = (0, R.useReducer)(() => ({}), {});
|
|
2547
|
+
return [c, (0, R.useCallback)((e, ...t) => {
|
|
2548
|
+
let r = typeof e == "function" ? e(a.current) : e;
|
|
2549
|
+
Object.is(a.current, r) || (a.current = r, i(r), l(), n?.(r, ...t));
|
|
2550
|
+
}, [n])];
|
|
2551
|
+
}
|
|
2552
|
+
//#endregion
|
|
2553
|
+
//#region ../node_modules/.pnpm/react-stately@3.50.0_react@19.2.8/node_modules/react-stately/dist/private/utils/number.mjs
|
|
2554
|
+
function ko(e, t = -Infinity, n = Infinity) {
|
|
2555
|
+
return Math.min(Math.max(e, t), n);
|
|
2556
|
+
}
|
|
2557
|
+
function Ao(e, t) {
|
|
2558
|
+
let n = e, r = 0, i = t.toString(), a = i.toLowerCase().indexOf("e-");
|
|
2559
|
+
if (a > 0) r = Math.abs(Math.floor(Math.log10(Math.abs(t)))) + a;
|
|
2560
|
+
else {
|
|
2561
|
+
let e = i.indexOf(".");
|
|
2562
|
+
e >= 0 && (r = i.length - e);
|
|
2563
|
+
}
|
|
2564
|
+
if (r > 0) {
|
|
2565
|
+
let e = 10 ** r;
|
|
2566
|
+
n = Math.round(n * e) / e;
|
|
2567
|
+
}
|
|
2568
|
+
return n;
|
|
2569
|
+
}
|
|
2570
|
+
function jo(e, t, n, r) {
|
|
2571
|
+
t = Number(t), n = Number(n);
|
|
2572
|
+
let i = (e - (isNaN(t) ? 0 : t)) % r, a = Ao(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
|
|
2573
|
+
return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(Ao(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(Ao((n - t) / r, r)) * r), a = Ao(a, r), a;
|
|
2574
|
+
}
|
|
2575
|
+
//#endregion
|
|
2576
|
+
//#region ../node_modules/.pnpm/@internationalized+number@3.6.8/node_modules/@internationalized/number/dist/private/NumberParser.mjs
|
|
2577
|
+
var Mo = /* @__PURE__ */ RegExp("^.*\\(.*\\).*$"), No = [
|
|
2578
|
+
"latn",
|
|
2579
|
+
"arab",
|
|
2580
|
+
"hanidec",
|
|
2581
|
+
"deva",
|
|
2582
|
+
"beng",
|
|
2583
|
+
"fullwide"
|
|
2584
|
+
], Po = class {
|
|
2585
|
+
constructor(e, t = {}) {
|
|
2586
|
+
this.locale = e, this.options = t;
|
|
2587
|
+
}
|
|
2588
|
+
parse(e) {
|
|
2589
|
+
return Io(this.locale, this.options, e).parse(e);
|
|
2590
|
+
}
|
|
2591
|
+
isValidPartialNumber(e, t, n) {
|
|
2592
|
+
return Io(this.locale, this.options, e).isValidPartialNumber(e, t, n);
|
|
2593
|
+
}
|
|
2594
|
+
getNumberingSystem(e) {
|
|
2595
|
+
return Io(this.locale, this.options, e).options.numberingSystem;
|
|
2596
|
+
}
|
|
2597
|
+
}, Fo = /* @__PURE__ */ new Map();
|
|
2598
|
+
function Io(e, t, n) {
|
|
2599
|
+
let r = Lo(e, t);
|
|
2600
|
+
if (!e.includes("-nu-") && !r.isValidPartialNumber(n)) {
|
|
2601
|
+
for (let i of No) if (i !== r.options.numberingSystem) {
|
|
2602
|
+
let r = Lo(e + (e.includes("-u-") ? "-nu-" : "-u-nu-") + i, t);
|
|
2603
|
+
if (r.isValidPartialNumber(n)) return r;
|
|
2604
|
+
}
|
|
2605
|
+
}
|
|
2606
|
+
return r;
|
|
2607
|
+
}
|
|
2608
|
+
function Lo(e, t) {
|
|
2609
|
+
let n = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : ""), r = Fo.get(n);
|
|
2610
|
+
return r || (r = new Ro(e, t), Fo.set(n, r)), r;
|
|
2611
|
+
}
|
|
2612
|
+
var Ro = class {
|
|
2613
|
+
constructor(e, t = {}) {
|
|
2614
|
+
this.locale = e, t.roundingIncrement !== 1 && t.roundingIncrement != null && (t.maximumFractionDigits == null && t.minimumFractionDigits == null ? (t.maximumFractionDigits = 0, t.minimumFractionDigits = 0) : t.maximumFractionDigits == null ? t.maximumFractionDigits = t.minimumFractionDigits : t.minimumFractionDigits ??= t.maximumFractionDigits), this.formatter = new Intl.NumberFormat(e, t), this.options = this.formatter.resolvedOptions(), this.symbols = Vo(e, this.formatter, this.options, t), this.options.style === "percent" && ((this.options.minimumFractionDigits ?? 0) > 18 || (this.options.maximumFractionDigits ?? 0) > 18) && console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.");
|
|
2615
|
+
}
|
|
2616
|
+
parse(e) {
|
|
2617
|
+
let t = this.formatter.resolvedOptions().useGrouping, n = this.sanitize(e);
|
|
2618
|
+
if (!t && this.symbols.group && n.includes(this.symbols.group)) return NaN;
|
|
2619
|
+
if (this.symbols.group && (n = n.replaceAll(this.symbols.group, "")), this.symbols.decimal && (n = n.replace(this.symbols.decimal, ".")), this.symbols.minusSign && (n = n.replace(this.symbols.minusSign, "-")), n = n.replace(this.symbols.numeral, this.symbols.index), this.options.style === "percent") {
|
|
2620
|
+
let e = n.indexOf("-");
|
|
2621
|
+
n = n.replace("-", ""), n = n.replace("+", "");
|
|
2622
|
+
let t = n.indexOf(".");
|
|
2623
|
+
t === -1 && (t = n.length), n = n.replace(".", ""), n = t - 2 == 0 ? `0.${n}` : t - 2 == -1 ? `0.0${n}` : t - 2 == -2 ? "0.00" : `${n.slice(0, t - 2)}.${n.slice(t - 2)}`, e > -1 && (n = `-${n}`);
|
|
2624
|
+
}
|
|
2625
|
+
let r = n ? +n : NaN;
|
|
2626
|
+
if (isNaN(r)) return NaN;
|
|
2627
|
+
if (this.options.style === "percent") {
|
|
2628
|
+
let e = {
|
|
2629
|
+
...this.options,
|
|
2630
|
+
style: "decimal",
|
|
2631
|
+
minimumFractionDigits: Math.min((this.options.minimumFractionDigits ?? 0) + 2, 20),
|
|
2632
|
+
maximumFractionDigits: Math.min((this.options.maximumFractionDigits ?? 0) + 2, 20)
|
|
2633
|
+
};
|
|
2634
|
+
return new Po(this.locale, e).parse(new pe(this.locale, e).format(r));
|
|
2635
|
+
}
|
|
2636
|
+
return this.options.currencySign === "accounting" && Mo.test(e) && (r = -1 * r), r;
|
|
2637
|
+
}
|
|
2638
|
+
sanitize(e) {
|
|
2639
|
+
let t = this.formatter.resolvedOptions().useGrouping;
|
|
2640
|
+
return this.symbols.noNumeralUnits.length > 0 && this.symbols.noNumeralUnits.find((t) => t.unit === e) ? this.symbols.noNumeralUnits.find((t) => t.unit === e).value.toString() : (e = e.replace(this.symbols.literals, ""), this.symbols.minusSign && (e = e.replace("-", this.symbols.minusSign)), this.options.numberingSystem === "arab" && (this.symbols.decimal && (e = Ho(e, ",", this.symbols.decimal), e = Ho(e, "،", this.symbols.decimal)), this.symbols.group && t && (e = Ho(e, ".", this.symbols.group))), this.symbols.group === "’" && e.includes("'") && t && (e = Ho(e, "'", this.symbols.group)), this.symbols.group === "'" && e.includes("’") && t && (e = Ho(e, "’", this.symbols.group)), this.options.locale === "fr-FR" && this.symbols.group && t && (e = Ho(e, " ", this.symbols.group), e = Ho(e, /\u00A0/g, this.symbols.group)), e);
|
|
2641
|
+
}
|
|
2642
|
+
isValidPartialNumber(e, t = -Infinity, n = Infinity) {
|
|
2643
|
+
let r = this.formatter.resolvedOptions().useGrouping;
|
|
2644
|
+
return e = this.sanitize(e), this.symbols.minusSign && e.startsWith(this.symbols.minusSign) && t < 0 ? e = e.slice(this.symbols.minusSign.length) : this.symbols.plusSign && e.startsWith(this.symbols.plusSign) && n > 0 && (e = e.slice(this.symbols.plusSign.length)), this.symbols.decimal && e.indexOf(this.symbols.decimal) > -1 && this.options.maximumFractionDigits === 0 ? !1 : (this.symbols.group && r && (e = Ho(e, this.symbols.group, "")), e = e.replace(this.symbols.numeral, ""), this.symbols.decimal && (e = e.replace(this.symbols.decimal, "")), e.length === 0);
|
|
2645
|
+
}
|
|
2646
|
+
}, zo = /* @__PURE__ */ new Set([
|
|
2647
|
+
"decimal",
|
|
2648
|
+
"fraction",
|
|
2649
|
+
"integer",
|
|
2650
|
+
"minusSign",
|
|
2651
|
+
"plusSign",
|
|
2652
|
+
"group"
|
|
2653
|
+
]), Bo = [
|
|
2654
|
+
0,
|
|
2655
|
+
4,
|
|
2656
|
+
2,
|
|
2657
|
+
1,
|
|
2658
|
+
11,
|
|
2659
|
+
20,
|
|
2660
|
+
3,
|
|
2661
|
+
7,
|
|
2662
|
+
100,
|
|
2663
|
+
21,
|
|
2664
|
+
.1,
|
|
2665
|
+
1.1
|
|
2666
|
+
];
|
|
2667
|
+
function Vo(e, t, n, r) {
|
|
2668
|
+
let i = new Intl.NumberFormat(e, {
|
|
2669
|
+
...n,
|
|
2670
|
+
minimumSignificantDigits: 1,
|
|
2671
|
+
maximumSignificantDigits: 21,
|
|
2672
|
+
roundingIncrement: 1,
|
|
2673
|
+
roundingPriority: "auto",
|
|
2674
|
+
roundingMode: "halfExpand",
|
|
2675
|
+
useGrouping: !0
|
|
2676
|
+
}), a = i.formatToParts(-10000.111), o = i.formatToParts(10000.111), s = Bo.map((e) => i.formatToParts(e)), c = s.map((e, t) => {
|
|
2677
|
+
let n = e.find((e) => e.type === "unit");
|
|
2678
|
+
return n && !e.some((e) => e.type === "integer" || e.type === "fraction") ? {
|
|
2679
|
+
unit: n.value,
|
|
2680
|
+
value: Bo[t]
|
|
2681
|
+
} : null;
|
|
2682
|
+
}).filter((e) => !!e), l = a.find((e) => e.type === "minusSign")?.value ?? "-", u = o.find((e) => e.type === "plusSign")?.value;
|
|
2683
|
+
!u && (r?.signDisplay === "exceptZero" || r?.signDisplay === "always") && (u = "+");
|
|
2684
|
+
let d = new Intl.NumberFormat(e, {
|
|
2685
|
+
...n,
|
|
2686
|
+
minimumFractionDigits: 2,
|
|
2687
|
+
maximumFractionDigits: 2
|
|
2688
|
+
}).formatToParts(.001).find((e) => e.type === "decimal")?.value, f = a.find((e) => e.type === "group")?.value, p = a.filter((e) => !zo.has(e.type)).map((e) => Uo(e.value)), m = s.flatMap((e) => e.filter((e) => !zo.has(e.type)).map((e) => Uo(e.value))), h = [.../* @__PURE__ */ new Set([...p, ...m])].sort((e, t) => t.length - e.length), g = h.length === 0 ? /* @__PURE__ */ RegExp("\\p{White_Space}|\\p{Cf}", "gu") : RegExp(`${h.join("|")}|\\p{White_Space}|\\p{Cf}`, "gu"), _ = [...new Intl.NumberFormat(n.locale, { useGrouping: !1 }).format(9876543210)].reverse(), v = new Map(_.map((e, t) => [e, t])), y = RegExp(`[${_.join("")}]`, "g");
|
|
2689
|
+
return {
|
|
2690
|
+
minusSign: l,
|
|
2691
|
+
plusSign: u,
|
|
2692
|
+
decimal: d,
|
|
2693
|
+
group: f,
|
|
2694
|
+
literals: g,
|
|
2695
|
+
numeral: y,
|
|
2696
|
+
numerals: _,
|
|
2697
|
+
index: (e) => String(v.get(e)),
|
|
2698
|
+
noNumeralUnits: c
|
|
2699
|
+
};
|
|
2700
|
+
}
|
|
2701
|
+
function Ho(e, t, n) {
|
|
2702
|
+
return e.replaceAll ? e.replaceAll(t, n) : e.split(t).join(n);
|
|
2703
|
+
}
|
|
2704
|
+
function Uo(e) {
|
|
2705
|
+
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2706
|
+
}
|
|
2707
|
+
//#endregion
|
|
2708
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/ar-AE.mjs
|
|
2709
|
+
var Wo = {};
|
|
2710
|
+
Wo = {
|
|
2711
|
+
decrease: (e) => `\u{62E}\u{641}\u{636} ${e.fieldLabel}`,
|
|
2712
|
+
increase: (e) => `\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,
|
|
2713
|
+
numberField: "حقل رقمي"
|
|
2714
|
+
};
|
|
2715
|
+
//#endregion
|
|
2716
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/bg-BG.mjs
|
|
2717
|
+
var Go = {};
|
|
2718
|
+
Go = {
|
|
2719
|
+
decrease: (e) => `\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,
|
|
2720
|
+
increase: (e) => `\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,
|
|
2721
|
+
numberField: "Номер на полето"
|
|
2722
|
+
};
|
|
2723
|
+
//#endregion
|
|
2724
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/cs-CZ.mjs
|
|
2725
|
+
var Ko = {};
|
|
2726
|
+
Ko = {
|
|
2727
|
+
decrease: (e) => `Sn\xed\u{17E}it ${e.fieldLabel}`,
|
|
2728
|
+
increase: (e) => `Zv\xfd\u{161}it ${e.fieldLabel}`,
|
|
2729
|
+
numberField: "Číselné pole"
|
|
2730
|
+
};
|
|
2731
|
+
//#endregion
|
|
2732
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/da-DK.mjs
|
|
2733
|
+
var qo = {};
|
|
2734
|
+
qo = {
|
|
2735
|
+
decrease: (e) => `Reducer ${e.fieldLabel}`,
|
|
2736
|
+
increase: (e) => `\xd8g ${e.fieldLabel}`,
|
|
2737
|
+
numberField: "Talfelt"
|
|
2738
|
+
};
|
|
2739
|
+
//#endregion
|
|
2740
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/de-DE.mjs
|
|
2741
|
+
var Jo = {};
|
|
2742
|
+
Jo = {
|
|
2743
|
+
decrease: (e) => `${e.fieldLabel} verringern`,
|
|
2744
|
+
increase: (e) => `${e.fieldLabel} erh\xf6hen`,
|
|
2745
|
+
numberField: "Nummernfeld"
|
|
2746
|
+
};
|
|
2747
|
+
//#endregion
|
|
2748
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/el-GR.mjs
|
|
2749
|
+
var Yo = {};
|
|
2750
|
+
Yo = {
|
|
2751
|
+
decrease: (e) => `\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,
|
|
2752
|
+
increase: (e) => `\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,
|
|
2753
|
+
numberField: "Πεδίο αριθμού"
|
|
2754
|
+
};
|
|
2755
|
+
//#endregion
|
|
2756
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/en-US.mjs
|
|
2757
|
+
var Xo = {};
|
|
2758
|
+
Xo = {
|
|
2759
|
+
decrease: (e) => `Decrease ${e.fieldLabel}`,
|
|
2760
|
+
increase: (e) => `Increase ${e.fieldLabel}`,
|
|
2761
|
+
numberField: "Number field"
|
|
2762
|
+
};
|
|
2763
|
+
//#endregion
|
|
2764
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/es-ES.mjs
|
|
2765
|
+
var Zo = {};
|
|
2766
|
+
Zo = {
|
|
2767
|
+
decrease: (e) => `Reducir ${e.fieldLabel}`,
|
|
2768
|
+
increase: (e) => `Aumentar ${e.fieldLabel}`,
|
|
2769
|
+
numberField: "Campo de número"
|
|
2770
|
+
};
|
|
2771
|
+
//#endregion
|
|
2772
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/et-EE.mjs
|
|
2773
|
+
var Qo = {};
|
|
2774
|
+
Qo = {
|
|
2775
|
+
decrease: (e) => `V\xe4henda ${e.fieldLabel}`,
|
|
2776
|
+
increase: (e) => `Suurenda ${e.fieldLabel}`,
|
|
2777
|
+
numberField: "Numbri väli"
|
|
2778
|
+
};
|
|
2779
|
+
//#endregion
|
|
2780
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/fi-FI.mjs
|
|
2781
|
+
var $o = {};
|
|
2782
|
+
$o = {
|
|
2783
|
+
decrease: (e) => `V\xe4henn\xe4 ${e.fieldLabel}`,
|
|
2784
|
+
increase: (e) => `Lis\xe4\xe4 ${e.fieldLabel}`,
|
|
2785
|
+
numberField: "Numerokenttä"
|
|
2786
|
+
};
|
|
2787
|
+
//#endregion
|
|
2788
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/fr-FR.mjs
|
|
2789
|
+
var es = {};
|
|
2790
|
+
es = {
|
|
2791
|
+
decrease: (e) => `Diminuer ${e.fieldLabel}`,
|
|
2792
|
+
increase: (e) => `Augmenter ${e.fieldLabel}`,
|
|
2793
|
+
numberField: "Champ de nombre"
|
|
2794
|
+
};
|
|
2795
|
+
//#endregion
|
|
2796
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/he-IL.mjs
|
|
2797
|
+
var ts = {};
|
|
2798
|
+
ts = {
|
|
2799
|
+
decrease: (e) => `\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,
|
|
2800
|
+
increase: (e) => `\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,
|
|
2801
|
+
numberField: "שדה מספר"
|
|
2802
|
+
};
|
|
2803
|
+
//#endregion
|
|
2804
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/hr-HR.mjs
|
|
2805
|
+
var ns = {};
|
|
2806
|
+
ns = {
|
|
2807
|
+
decrease: (e) => `Smanji ${e.fieldLabel}`,
|
|
2808
|
+
increase: (e) => `Pove\u{107}aj ${e.fieldLabel}`,
|
|
2809
|
+
numberField: "Polje broja"
|
|
2810
|
+
};
|
|
2811
|
+
//#endregion
|
|
2812
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/hu-HU.mjs
|
|
2813
|
+
var rs = {};
|
|
2814
|
+
rs = {
|
|
2815
|
+
decrease: (e) => `${e.fieldLabel} cs\xf6kkent\xe9se`,
|
|
2816
|
+
increase: (e) => `${e.fieldLabel} n\xf6vel\xe9se`,
|
|
2817
|
+
numberField: "Számmező"
|
|
2818
|
+
};
|
|
2819
|
+
//#endregion
|
|
2820
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/it-IT.mjs
|
|
2821
|
+
var is = {};
|
|
2822
|
+
is = {
|
|
2823
|
+
decrease: (e) => `Riduci ${e.fieldLabel}`,
|
|
2824
|
+
increase: (e) => `Aumenta ${e.fieldLabel}`,
|
|
2825
|
+
numberField: "Campo numero"
|
|
2826
|
+
};
|
|
2827
|
+
//#endregion
|
|
2828
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/ja-JP.mjs
|
|
2829
|
+
var as = {};
|
|
2830
|
+
as = {
|
|
2831
|
+
decrease: (e) => `${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,
|
|
2832
|
+
increase: (e) => `${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,
|
|
2833
|
+
numberField: "数値フィールド"
|
|
2834
|
+
};
|
|
2835
|
+
//#endregion
|
|
2836
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/ko-KR.mjs
|
|
2837
|
+
var os = {};
|
|
2838
|
+
os = {
|
|
2839
|
+
decrease: (e) => `${e.fieldLabel} \u{AC10}\u{C18C}`,
|
|
2840
|
+
increase: (e) => `${e.fieldLabel} \u{C99D}\u{AC00}`,
|
|
2841
|
+
numberField: "번호 필드"
|
|
2842
|
+
};
|
|
2843
|
+
//#endregion
|
|
2844
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/lt-LT.mjs
|
|
2845
|
+
var ss = {};
|
|
2846
|
+
ss = {
|
|
2847
|
+
decrease: (e) => `Suma\u{17E}inti ${e.fieldLabel}`,
|
|
2848
|
+
increase: (e) => `Padidinti ${e.fieldLabel}`,
|
|
2849
|
+
numberField: "Numerio laukas"
|
|
2850
|
+
};
|
|
2851
|
+
//#endregion
|
|
2852
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/lv-LV.mjs
|
|
2853
|
+
var cs = {};
|
|
2854
|
+
cs = {
|
|
2855
|
+
decrease: (e) => `Samazin\u{101}\u{161}ana ${e.fieldLabel}`,
|
|
2856
|
+
increase: (e) => `Palielin\u{101}\u{161}ana ${e.fieldLabel}`,
|
|
2857
|
+
numberField: "Skaitļu lauks"
|
|
2858
|
+
};
|
|
2859
|
+
//#endregion
|
|
2860
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/nb-NO.mjs
|
|
2861
|
+
var ls = {};
|
|
2862
|
+
ls = {
|
|
2863
|
+
decrease: (e) => `Reduser ${e.fieldLabel}`,
|
|
2864
|
+
increase: (e) => `\xd8k ${e.fieldLabel}`,
|
|
2865
|
+
numberField: "Tallfelt"
|
|
2866
|
+
};
|
|
2867
|
+
//#endregion
|
|
2868
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/nl-NL.mjs
|
|
2869
|
+
var us = {};
|
|
2870
|
+
us = {
|
|
2871
|
+
decrease: (e) => `${e.fieldLabel} verlagen`,
|
|
2872
|
+
increase: (e) => `${e.fieldLabel} verhogen`,
|
|
2873
|
+
numberField: "Getalveld"
|
|
2874
|
+
};
|
|
2875
|
+
//#endregion
|
|
2876
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/pl-PL.mjs
|
|
2877
|
+
var ds = {};
|
|
2878
|
+
ds = {
|
|
2879
|
+
decrease: (e) => `Zmniejsz ${e.fieldLabel}`,
|
|
2880
|
+
increase: (e) => `Zwi\u{119}ksz ${e.fieldLabel}`,
|
|
2881
|
+
numberField: "Pole numeru"
|
|
2882
|
+
};
|
|
2883
|
+
//#endregion
|
|
2884
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/pt-BR.mjs
|
|
2885
|
+
var fs = {};
|
|
2886
|
+
fs = {
|
|
2887
|
+
decrease: (e) => `Diminuir ${e.fieldLabel}`,
|
|
2888
|
+
increase: (e) => `Aumentar ${e.fieldLabel}`,
|
|
2889
|
+
numberField: "Campo de número"
|
|
2890
|
+
};
|
|
2891
|
+
//#endregion
|
|
2892
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/pt-PT.mjs
|
|
2893
|
+
var ps = {};
|
|
2894
|
+
ps = {
|
|
2895
|
+
decrease: (e) => `Diminuir ${e.fieldLabel}`,
|
|
2896
|
+
increase: (e) => `Aumentar ${e.fieldLabel}`,
|
|
2897
|
+
numberField: "Campo numérico"
|
|
2898
|
+
};
|
|
2899
|
+
//#endregion
|
|
2900
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/ro-RO.mjs
|
|
2901
|
+
var ms = {};
|
|
2902
|
+
ms = {
|
|
2903
|
+
decrease: (e) => `Sc\u{103}dere ${e.fieldLabel}`,
|
|
2904
|
+
increase: (e) => `Cre\u{219}tere ${e.fieldLabel}`,
|
|
2905
|
+
numberField: "Câmp numeric"
|
|
2906
|
+
};
|
|
2907
|
+
//#endregion
|
|
2908
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/ru-RU.mjs
|
|
2909
|
+
var hs = {};
|
|
2910
|
+
hs = {
|
|
2911
|
+
decrease: (e) => `\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,
|
|
2912
|
+
increase: (e) => `\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,
|
|
2913
|
+
numberField: "Числовое поле"
|
|
2914
|
+
};
|
|
2915
|
+
//#endregion
|
|
2916
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/sk-SK.mjs
|
|
2917
|
+
var gs = {};
|
|
2918
|
+
gs = {
|
|
2919
|
+
decrease: (e) => `Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,
|
|
2920
|
+
increase: (e) => `Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,
|
|
2921
|
+
numberField: "Číselné pole"
|
|
2922
|
+
};
|
|
2923
|
+
//#endregion
|
|
2924
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/sl-SI.mjs
|
|
2925
|
+
var _s = {};
|
|
2926
|
+
_s = {
|
|
2927
|
+
decrease: (e) => `Upadati ${e.fieldLabel}`,
|
|
2928
|
+
increase: (e) => `Pove\u{10D}ajte ${e.fieldLabel}`,
|
|
2929
|
+
numberField: "Številčno polje"
|
|
2930
|
+
};
|
|
2931
|
+
//#endregion
|
|
2932
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/sr-SP.mjs
|
|
2933
|
+
var vs = {};
|
|
2934
|
+
vs = {
|
|
2935
|
+
decrease: (e) => `Smanji ${e.fieldLabel}`,
|
|
2936
|
+
increase: (e) => `Pove\u{107}aj ${e.fieldLabel}`,
|
|
2937
|
+
numberField: "Polje broja"
|
|
2938
|
+
};
|
|
2939
|
+
//#endregion
|
|
2940
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/sv-SE.mjs
|
|
2941
|
+
var ys = {};
|
|
2942
|
+
ys = {
|
|
2943
|
+
decrease: (e) => `Minska ${e.fieldLabel}`,
|
|
2944
|
+
increase: (e) => `\xd6ka ${e.fieldLabel}`,
|
|
2945
|
+
numberField: "Nummerfält"
|
|
2946
|
+
};
|
|
2947
|
+
//#endregion
|
|
2948
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/tr-TR.mjs
|
|
2949
|
+
var bs = {};
|
|
2950
|
+
bs = {
|
|
2951
|
+
decrease: (e) => `${e.fieldLabel} azalt`,
|
|
2952
|
+
increase: (e) => `${e.fieldLabel} artt\u{131}r`,
|
|
2953
|
+
numberField: "Sayı alanı"
|
|
2954
|
+
};
|
|
2955
|
+
//#endregion
|
|
2956
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/uk-UA.mjs
|
|
2957
|
+
var xs = {};
|
|
2958
|
+
xs = {
|
|
2959
|
+
decrease: (e) => `\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,
|
|
2960
|
+
increase: (e) => `\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,
|
|
2961
|
+
numberField: "Поле номера"
|
|
2962
|
+
};
|
|
2963
|
+
//#endregion
|
|
2964
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/zh-CN.mjs
|
|
2965
|
+
var Ss = {};
|
|
2966
|
+
Ss = {
|
|
2967
|
+
decrease: (e) => `\u{964D}\u{4F4E} ${e.fieldLabel}`,
|
|
2968
|
+
increase: (e) => `\u{63D0}\u{9AD8} ${e.fieldLabel}`,
|
|
2969
|
+
numberField: "数字字段"
|
|
2970
|
+
};
|
|
2971
|
+
//#endregion
|
|
2972
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/numberfield/zh-TW.mjs
|
|
2973
|
+
var Cs = {};
|
|
2974
|
+
Cs = {
|
|
2975
|
+
decrease: (e) => `\u{7E2E}\u{5C0F} ${e.fieldLabel}`,
|
|
2976
|
+
increase: (e) => `\u{653E}\u{5927} ${e.fieldLabel}`,
|
|
2977
|
+
numberField: "數字欄位"
|
|
2978
|
+
};
|
|
2979
|
+
//#endregion
|
|
2980
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/numberfield/intlStrings.mjs
|
|
2981
|
+
var ws = {};
|
|
2982
|
+
ws = {
|
|
2983
|
+
"ar-AE": Wo,
|
|
2984
|
+
"bg-BG": Go,
|
|
2985
|
+
"cs-CZ": Ko,
|
|
2986
|
+
"da-DK": qo,
|
|
2987
|
+
"de-DE": Jo,
|
|
2988
|
+
"el-GR": Yo,
|
|
2989
|
+
"en-US": Xo,
|
|
2990
|
+
"es-ES": Zo,
|
|
2991
|
+
"et-EE": Qo,
|
|
2992
|
+
"fi-FI": $o,
|
|
2993
|
+
"fr-FR": es,
|
|
2994
|
+
"he-IL": ts,
|
|
2995
|
+
"hr-HR": ns,
|
|
2996
|
+
"hu-HU": rs,
|
|
2997
|
+
"it-IT": is,
|
|
2998
|
+
"ja-JP": as,
|
|
2999
|
+
"ko-KR": os,
|
|
3000
|
+
"lt-LT": ss,
|
|
3001
|
+
"lv-LV": cs,
|
|
3002
|
+
"nb-NO": ls,
|
|
3003
|
+
"nl-NL": us,
|
|
3004
|
+
"pl-PL": ds,
|
|
3005
|
+
"pt-BR": fs,
|
|
3006
|
+
"pt-PT": ps,
|
|
3007
|
+
"ro-RO": ms,
|
|
3008
|
+
"ru-RU": hs,
|
|
3009
|
+
"sk-SK": gs,
|
|
3010
|
+
"sl-SI": _s,
|
|
3011
|
+
"sr-SP": vs,
|
|
3012
|
+
"sv-SE": ys,
|
|
3013
|
+
"tr-TR": bs,
|
|
3014
|
+
"uk-UA": xs,
|
|
3015
|
+
"zh-CN": Ss,
|
|
3016
|
+
"zh-TW": Cs
|
|
3017
|
+
};
|
|
3018
|
+
//#endregion
|
|
3019
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/textfield/useTextField.mjs
|
|
3020
|
+
function Ts(e, t) {
|
|
3021
|
+
let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = Oo(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = na(e, t), d = _o({
|
|
3022
|
+
...e,
|
|
3023
|
+
value: c
|
|
3024
|
+
}), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = To({
|
|
3025
|
+
...e,
|
|
3026
|
+
isInvalid: f,
|
|
3027
|
+
errorMessage: e.errorMessage || p
|
|
3028
|
+
}), y = Aa(e, { labelable: !0 }), b = {
|
|
3029
|
+
type: o,
|
|
3030
|
+
pattern: e.pattern
|
|
3031
|
+
}, [x] = (0, R.useState)(c);
|
|
3032
|
+
return oo(t, e.defaultValue ?? x, l), so(e, d, t), {
|
|
3033
|
+
labelProps: h,
|
|
3034
|
+
inputProps: X(y, n === "input" ? b : void 0, {
|
|
3035
|
+
disabled: r,
|
|
3036
|
+
readOnly: a,
|
|
3037
|
+
required: i && s === "native",
|
|
3038
|
+
"aria-required": i && s === "aria" || void 0,
|
|
3039
|
+
"aria-invalid": f || void 0,
|
|
3040
|
+
"aria-errormessage": e["aria-errormessage"],
|
|
3041
|
+
"aria-activedescendant": e["aria-activedescendant"],
|
|
3042
|
+
"aria-autocomplete": e["aria-autocomplete"],
|
|
3043
|
+
"aria-haspopup": e["aria-haspopup"],
|
|
3044
|
+
"aria-controls": e["aria-controls"],
|
|
3045
|
+
value: c,
|
|
3046
|
+
onChange: (e) => l(J(e).value),
|
|
3047
|
+
autoComplete: e.autoComplete,
|
|
3048
|
+
autoCapitalize: e.autoCapitalize,
|
|
3049
|
+
maxLength: e.maxLength,
|
|
3050
|
+
minLength: e.minLength,
|
|
3051
|
+
name: e.name,
|
|
3052
|
+
form: e.form,
|
|
3053
|
+
placeholder: e.placeholder,
|
|
3054
|
+
inputMode: e.inputMode,
|
|
3055
|
+
autoCorrect: e.autoCorrect,
|
|
3056
|
+
spellCheck: e.spellCheck,
|
|
3057
|
+
enterKeyHint: e.enterKeyHint,
|
|
3058
|
+
onCopy: e.onCopy,
|
|
3059
|
+
onCut: e.onCut,
|
|
3060
|
+
onPaste: e.onPaste,
|
|
3061
|
+
onCompositionEnd: e.onCompositionEnd,
|
|
3062
|
+
onCompositionStart: e.onCompositionStart,
|
|
3063
|
+
onCompositionUpdate: e.onCompositionUpdate,
|
|
3064
|
+
onSelect: e.onSelect,
|
|
3065
|
+
onBeforeInput: e.onBeforeInput,
|
|
3066
|
+
onInput: e.onInput,
|
|
3067
|
+
...u,
|
|
3068
|
+
...g
|
|
3069
|
+
}),
|
|
3070
|
+
descriptionProps: _,
|
|
3071
|
+
errorMessageProps: v,
|
|
3072
|
+
isInvalid: f,
|
|
3073
|
+
validationErrors: p,
|
|
3074
|
+
validationDetails: m
|
|
3075
|
+
};
|
|
3076
|
+
}
|
|
3077
|
+
//#endregion
|
|
3078
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/textfield/useFormattedTextField.mjs
|
|
3079
|
+
function Es() {
|
|
3080
|
+
return typeof window < "u" && window.InputEvent && typeof InputEvent.prototype.getTargetRanges == "function";
|
|
3081
|
+
}
|
|
3082
|
+
function Ds(e, t, n) {
|
|
3083
|
+
let r = Z((e) => {
|
|
3084
|
+
let r = n.current;
|
|
3085
|
+
if (!r) return;
|
|
3086
|
+
let i = null;
|
|
3087
|
+
switch (e.inputType) {
|
|
3088
|
+
case "historyUndo":
|
|
3089
|
+
case "historyRedo": return;
|
|
3090
|
+
case "insertLineBreak": return;
|
|
3091
|
+
case "deleteContent":
|
|
3092
|
+
case "deleteByCut":
|
|
3093
|
+
case "deleteByDrag":
|
|
3094
|
+
i = r.value.slice(0, r.selectionStart) + r.value.slice(r.selectionEnd);
|
|
3095
|
+
break;
|
|
3096
|
+
case "deleteContentForward":
|
|
3097
|
+
i = r.selectionEnd === r.selectionStart ? r.value.slice(0, r.selectionStart) + r.value.slice(r.selectionEnd + 1) : r.value.slice(0, r.selectionStart) + r.value.slice(r.selectionEnd);
|
|
3098
|
+
break;
|
|
3099
|
+
case "deleteContentBackward":
|
|
3100
|
+
i = r.selectionEnd === r.selectionStart ? r.value.slice(0, r.selectionStart - 1) + r.value.slice(r.selectionStart) : r.value.slice(0, r.selectionStart) + r.value.slice(r.selectionEnd);
|
|
3101
|
+
break;
|
|
3102
|
+
case "deleteSoftLineBackward":
|
|
3103
|
+
case "deleteHardLineBackward":
|
|
3104
|
+
i = r.value.slice(r.selectionStart);
|
|
3105
|
+
break;
|
|
3106
|
+
default: e.data != null && (i = r.value.slice(0, r.selectionStart) + e.data + r.value.slice(r.selectionEnd));
|
|
3107
|
+
}
|
|
3108
|
+
(i == null || !t.validate(i)) && e.preventDefault();
|
|
3109
|
+
});
|
|
3110
|
+
(0, R.useEffect)(() => {
|
|
3111
|
+
if (!Es() || !n.current) return;
|
|
3112
|
+
let e = n.current;
|
|
3113
|
+
return e.addEventListener("beforeinput", r, !1), () => {
|
|
3114
|
+
e.removeEventListener("beforeinput", r, !1);
|
|
3115
|
+
};
|
|
3116
|
+
}, [n]);
|
|
3117
|
+
let i = Es() ? null : (e) => {
|
|
3118
|
+
let n = J(e).value.slice(0, J(e).selectionStart) + e.data + J(e).value.slice(J(e).selectionEnd);
|
|
3119
|
+
t.validate(n) || e.preventDefault();
|
|
3120
|
+
}, { labelProps: a, inputProps: o, descriptionProps: s, errorMessageProps: c, ...l } = Ts(e, n), u = (0, R.useRef)(null);
|
|
3121
|
+
return {
|
|
3122
|
+
inputProps: X(o, {
|
|
3123
|
+
onBeforeInput: i,
|
|
3124
|
+
onCompositionStart() {
|
|
3125
|
+
let { value: e, selectionStart: t, selectionEnd: r } = n.current;
|
|
3126
|
+
u.current = {
|
|
3127
|
+
value: e,
|
|
3128
|
+
selectionStart: t,
|
|
3129
|
+
selectionEnd: r
|
|
3130
|
+
};
|
|
3131
|
+
},
|
|
3132
|
+
onCompositionEnd() {
|
|
3133
|
+
if (n.current && !t.validate(n.current.value)) {
|
|
3134
|
+
let { value: e, selectionStart: r, selectionEnd: i } = u.current;
|
|
3135
|
+
n.current.value = e, n.current.setSelectionRange(r, i), t.setInputValue(e);
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3138
|
+
}),
|
|
3139
|
+
labelProps: a,
|
|
3140
|
+
descriptionProps: s,
|
|
3141
|
+
errorMessageProps: c,
|
|
3142
|
+
...l
|
|
3143
|
+
};
|
|
3144
|
+
}
|
|
3145
|
+
//#endregion
|
|
3146
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/interactions/useScrollWheel.mjs
|
|
3147
|
+
function Os(e, t) {
|
|
3148
|
+
let { onScroll: n, isDisabled: r } = e, i = (0, R.useCallback)((e) => {
|
|
3149
|
+
e.ctrlKey || (e.preventDefault(), e.stopPropagation(), n && n({
|
|
3150
|
+
deltaX: e.deltaX,
|
|
3151
|
+
deltaY: e.deltaY
|
|
3152
|
+
}));
|
|
3153
|
+
}, [n]);
|
|
3154
|
+
ca(t, "wheel", r ? void 0 : i);
|
|
3155
|
+
}
|
|
3156
|
+
//#endregion
|
|
3157
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/ar-AE.mjs
|
|
3158
|
+
var ks = {};
|
|
3159
|
+
ks = { Empty: "فارغ" };
|
|
3160
|
+
//#endregion
|
|
3161
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/bg-BG.mjs
|
|
3162
|
+
var As = {};
|
|
3163
|
+
As = { Empty: "Изпразни" };
|
|
3164
|
+
//#endregion
|
|
3165
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/cs-CZ.mjs
|
|
3166
|
+
var js = {};
|
|
3167
|
+
js = { Empty: "Prázdné" };
|
|
3168
|
+
//#endregion
|
|
3169
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/da-DK.mjs
|
|
3170
|
+
var Ms = {};
|
|
3171
|
+
Ms = { Empty: "Tom" };
|
|
3172
|
+
//#endregion
|
|
3173
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/de-DE.mjs
|
|
3174
|
+
var Ns = {};
|
|
3175
|
+
Ns = { Empty: "Leer" };
|
|
3176
|
+
//#endregion
|
|
3177
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/el-GR.mjs
|
|
3178
|
+
var Ps = {};
|
|
3179
|
+
Ps = { Empty: "Άδειο" };
|
|
3180
|
+
//#endregion
|
|
3181
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/en-US.mjs
|
|
3182
|
+
var Fs = {};
|
|
3183
|
+
Fs = { Empty: "Empty" };
|
|
3184
|
+
//#endregion
|
|
3185
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/es-ES.mjs
|
|
3186
|
+
var Is = {};
|
|
3187
|
+
Is = { Empty: "Vacío" };
|
|
3188
|
+
//#endregion
|
|
3189
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/et-EE.mjs
|
|
3190
|
+
var Ls = {};
|
|
3191
|
+
Ls = { Empty: "Tühjenda" };
|
|
3192
|
+
//#endregion
|
|
3193
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/fi-FI.mjs
|
|
3194
|
+
var Rs = {};
|
|
3195
|
+
Rs = { Empty: "Tyhjä" };
|
|
3196
|
+
//#endregion
|
|
3197
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/fr-FR.mjs
|
|
3198
|
+
var zs = {};
|
|
3199
|
+
zs = { Empty: "Vide" };
|
|
3200
|
+
//#endregion
|
|
3201
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/he-IL.mjs
|
|
3202
|
+
var Bs = {};
|
|
3203
|
+
Bs = { Empty: "ריק" };
|
|
3204
|
+
//#endregion
|
|
3205
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/hr-HR.mjs
|
|
3206
|
+
var Vs = {};
|
|
3207
|
+
Vs = { Empty: "Prazno" };
|
|
3208
|
+
//#endregion
|
|
3209
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/hu-HU.mjs
|
|
3210
|
+
var Hs = {};
|
|
3211
|
+
Hs = { Empty: "Üres" };
|
|
3212
|
+
//#endregion
|
|
3213
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/it-IT.mjs
|
|
3214
|
+
var Us = {};
|
|
3215
|
+
Us = { Empty: "Vuoto" };
|
|
3216
|
+
//#endregion
|
|
3217
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/ja-JP.mjs
|
|
3218
|
+
var Ws = {};
|
|
3219
|
+
Ws = { Empty: "空" };
|
|
3220
|
+
//#endregion
|
|
3221
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/ko-KR.mjs
|
|
3222
|
+
var Gs = {};
|
|
3223
|
+
Gs = { Empty: "비어 있음" };
|
|
3224
|
+
//#endregion
|
|
3225
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/lt-LT.mjs
|
|
3226
|
+
var Ks = {};
|
|
3227
|
+
Ks = { Empty: "Tuščias" };
|
|
3228
|
+
//#endregion
|
|
3229
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/lv-LV.mjs
|
|
3230
|
+
var qs = {};
|
|
3231
|
+
qs = { Empty: "Tukšs" };
|
|
3232
|
+
//#endregion
|
|
3233
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/nb-NO.mjs
|
|
3234
|
+
var Js = {};
|
|
3235
|
+
Js = { Empty: "Tom" };
|
|
3236
|
+
//#endregion
|
|
3237
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/nl-NL.mjs
|
|
3238
|
+
var Ys = {};
|
|
3239
|
+
Ys = { Empty: "Leeg" };
|
|
3240
|
+
//#endregion
|
|
3241
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/pl-PL.mjs
|
|
3242
|
+
var Xs = {};
|
|
3243
|
+
Xs = { Empty: "Pusty" };
|
|
3244
|
+
//#endregion
|
|
3245
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/pt-BR.mjs
|
|
3246
|
+
var Zs = {};
|
|
3247
|
+
Zs = { Empty: "Vazio" };
|
|
3248
|
+
//#endregion
|
|
3249
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/pt-PT.mjs
|
|
3250
|
+
var Qs = {};
|
|
3251
|
+
Qs = { Empty: "Vazio" };
|
|
3252
|
+
//#endregion
|
|
3253
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/ro-RO.mjs
|
|
3254
|
+
var $s = {};
|
|
3255
|
+
$s = { Empty: "Gol" };
|
|
3256
|
+
//#endregion
|
|
3257
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/ru-RU.mjs
|
|
3258
|
+
var ec = {};
|
|
3259
|
+
ec = { Empty: "Не заполнено" };
|
|
3260
|
+
//#endregion
|
|
3261
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/sk-SK.mjs
|
|
3262
|
+
var tc = {};
|
|
3263
|
+
tc = { Empty: "Prázdne" };
|
|
3264
|
+
//#endregion
|
|
3265
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/sl-SI.mjs
|
|
3266
|
+
var nc = {};
|
|
3267
|
+
nc = { Empty: "Prazen" };
|
|
3268
|
+
//#endregion
|
|
3269
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/sr-SP.mjs
|
|
3270
|
+
var rc = {};
|
|
3271
|
+
rc = { Empty: "Prazno" };
|
|
3272
|
+
//#endregion
|
|
3273
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/sv-SE.mjs
|
|
3274
|
+
var ic = {};
|
|
3275
|
+
ic = { Empty: "Tomt" };
|
|
3276
|
+
//#endregion
|
|
3277
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/tr-TR.mjs
|
|
3278
|
+
var ac = {};
|
|
3279
|
+
ac = { Empty: "Boş" };
|
|
3280
|
+
//#endregion
|
|
3281
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/uk-UA.mjs
|
|
3282
|
+
var oc = {};
|
|
3283
|
+
oc = { Empty: "Пусто" };
|
|
3284
|
+
//#endregion
|
|
3285
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/zh-CN.mjs
|
|
3286
|
+
var sc = {};
|
|
3287
|
+
sc = { Empty: "空" };
|
|
3288
|
+
//#endregion
|
|
3289
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/intl/spinbutton/zh-TW.mjs
|
|
3290
|
+
var cc = {};
|
|
3291
|
+
cc = { Empty: "空白" };
|
|
3292
|
+
//#endregion
|
|
3293
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/spinbutton/intlStrings.mjs
|
|
3294
|
+
var lc = {};
|
|
3295
|
+
lc = {
|
|
3296
|
+
"ar-AE": ks,
|
|
3297
|
+
"bg-BG": As,
|
|
3298
|
+
"cs-CZ": js,
|
|
3299
|
+
"da-DK": Ms,
|
|
3300
|
+
"de-DE": Ns,
|
|
3301
|
+
"el-GR": Ps,
|
|
3302
|
+
"en-US": Fs,
|
|
3303
|
+
"es-ES": Is,
|
|
3304
|
+
"et-EE": Ls,
|
|
3305
|
+
"fi-FI": Rs,
|
|
3306
|
+
"fr-FR": zs,
|
|
3307
|
+
"he-IL": Bs,
|
|
3308
|
+
"hr-HR": Vs,
|
|
3309
|
+
"hu-HU": Hs,
|
|
3310
|
+
"it-IT": Us,
|
|
3311
|
+
"ja-JP": Ws,
|
|
3312
|
+
"ko-KR": Gs,
|
|
3313
|
+
"lt-LT": Ks,
|
|
3314
|
+
"lv-LV": qs,
|
|
3315
|
+
"nb-NO": Js,
|
|
3316
|
+
"nl-NL": Ys,
|
|
3317
|
+
"pl-PL": Xs,
|
|
3318
|
+
"pt-BR": Zs,
|
|
3319
|
+
"pt-PT": Qs,
|
|
3320
|
+
"ro-RO": $s,
|
|
3321
|
+
"ru-RU": ec,
|
|
3322
|
+
"sk-SK": tc,
|
|
3323
|
+
"sl-SI": nc,
|
|
3324
|
+
"sr-SP": rc,
|
|
3325
|
+
"sv-SE": ic,
|
|
3326
|
+
"tr-TR": ac,
|
|
3327
|
+
"uk-UA": oc,
|
|
3328
|
+
"zh-CN": sc,
|
|
3329
|
+
"zh-TW": cc
|
|
3330
|
+
};
|
|
3331
|
+
//#endregion
|
|
3332
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/spinbutton/useSpinButton.mjs
|
|
3333
|
+
function uc(e) {
|
|
3334
|
+
return e && e.__esModule ? e.default : e;
|
|
3335
|
+
}
|
|
3336
|
+
var dc = () => {};
|
|
3337
|
+
function fc(e) {
|
|
3338
|
+
let t = (0, R.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 = Ca(uc(lc), "@react-aria/spinbutton"), g = (0, R.useRef)(!1), _ = (0, R.useCallback)(() => {
|
|
3339
|
+
clearTimeout(t.current), g.current = !1;
|
|
3340
|
+
}, []), v = Z(() => {
|
|
3341
|
+
_();
|
|
3342
|
+
});
|
|
3343
|
+
(0, R.useEffect)(() => () => v(), []);
|
|
3344
|
+
let { keyboardProps: y } = Zi({
|
|
3345
|
+
isDisabled: o || s,
|
|
3346
|
+
shortcuts: {
|
|
3347
|
+
PageUp: () => {
|
|
3348
|
+
if (u) {
|
|
3349
|
+
u();
|
|
3350
|
+
return;
|
|
3351
|
+
}
|
|
3352
|
+
if (l) {
|
|
3353
|
+
l();
|
|
3354
|
+
return;
|
|
3355
|
+
}
|
|
3356
|
+
return !1;
|
|
3357
|
+
},
|
|
3358
|
+
ArrowUp: () => {
|
|
3359
|
+
if (l) {
|
|
3360
|
+
l();
|
|
3361
|
+
return;
|
|
3362
|
+
}
|
|
3363
|
+
return !1;
|
|
3364
|
+
},
|
|
3365
|
+
PageDown: () => {
|
|
3366
|
+
if (f) {
|
|
3367
|
+
f();
|
|
3368
|
+
return;
|
|
3369
|
+
}
|
|
3370
|
+
if (d) {
|
|
3371
|
+
d();
|
|
3372
|
+
return;
|
|
3373
|
+
}
|
|
3374
|
+
return !1;
|
|
3375
|
+
},
|
|
3376
|
+
ArrowDown: () => {
|
|
3377
|
+
if (d) {
|
|
3378
|
+
d();
|
|
3379
|
+
return;
|
|
3380
|
+
}
|
|
3381
|
+
return !1;
|
|
3382
|
+
},
|
|
3383
|
+
Home: () => {
|
|
3384
|
+
if (p) {
|
|
3385
|
+
p();
|
|
3386
|
+
return;
|
|
3387
|
+
}
|
|
3388
|
+
return !1;
|
|
3389
|
+
},
|
|
3390
|
+
End: () => {
|
|
3391
|
+
if (m) {
|
|
3392
|
+
m();
|
|
3393
|
+
return;
|
|
3394
|
+
}
|
|
3395
|
+
return !1;
|
|
3396
|
+
}
|
|
3397
|
+
},
|
|
3398
|
+
allowRepeats: !0
|
|
3399
|
+
}), b = (0, R.useRef)(!1), x = () => {
|
|
3400
|
+
b.current = !0;
|
|
3401
|
+
}, S = () => {
|
|
3402
|
+
b.current = !1;
|
|
3403
|
+
}, C = r === "" ? h.format("Empty") : (r || `${n}`).replace("-", "−");
|
|
3404
|
+
(0, R.useEffect)(() => {
|
|
3405
|
+
b.current && (io("assertive"), ro(C, "assertive"));
|
|
3406
|
+
}, [C]);
|
|
3407
|
+
let w = (0, R.useCallback)(() => {
|
|
3408
|
+
_();
|
|
3409
|
+
}, [_]), T = Z(l ?? dc), E = Z(d ?? dc), D = Z(() => {
|
|
3410
|
+
(a === void 0 || isNaN(a) || n === void 0 || isNaN(n) || n < a) && (T(), O(60));
|
|
3411
|
+
}), O = Z((e) => {
|
|
3412
|
+
v(), g.current = !0, t.current = window.setTimeout(D, e);
|
|
3413
|
+
}), ee = Z(() => {
|
|
3414
|
+
(i === void 0 || isNaN(i) || n === void 0 || isNaN(n) || n > i) && (E(), k(60));
|
|
3415
|
+
}), k = Z((e) => {
|
|
3416
|
+
v(), g.current = !0, t.current = window.setTimeout(ee, e);
|
|
3417
|
+
}), A = (e) => {
|
|
3418
|
+
e.preventDefault();
|
|
3419
|
+
}, { addGlobalListener: j, removeAllGlobalListeners: M } = Ba(), N = (0, R.useRef)(!1), [P, F] = (0, R.useState)(null);
|
|
3420
|
+
(0, R.useEffect)(() => {
|
|
3421
|
+
P === "touch" ? O(600) : P ? O(400) : P || v();
|
|
3422
|
+
}, [P]);
|
|
3423
|
+
let [I, te] = (0, R.useState)(null);
|
|
3424
|
+
return (0, R.useEffect)(() => {
|
|
3425
|
+
I === "touch" ? k(600) : I ? k(400) : I || v();
|
|
3426
|
+
}, [I]), {
|
|
3427
|
+
spinButtonProps: {
|
|
3428
|
+
role: "spinbutton",
|
|
3429
|
+
"aria-valuenow": n !== void 0 && !isNaN(n) ? n : void 0,
|
|
3430
|
+
"aria-valuetext": C,
|
|
3431
|
+
"aria-valuemin": i,
|
|
3432
|
+
"aria-valuemax": a,
|
|
3433
|
+
"aria-disabled": o || void 0,
|
|
3434
|
+
"aria-readonly": s || void 0,
|
|
3435
|
+
"aria-required": c || void 0,
|
|
3436
|
+
...y,
|
|
3437
|
+
onFocus: x,
|
|
3438
|
+
onBlur: S
|
|
3439
|
+
},
|
|
3440
|
+
incrementButtonProps: {
|
|
3441
|
+
onPressStart: (e) => {
|
|
3442
|
+
_(), e.pointerType === "touch" ? (j(window, "pointercancel", w, { capture: !0 }), N.current = !1, F("touch")) : (l?.(), F("mouse")), j(window, "contextmenu", A);
|
|
3443
|
+
},
|
|
3444
|
+
onPressUp: (e) => {
|
|
3445
|
+
_(), e.pointerType === "touch" && (N.current = !0), M(), F(null);
|
|
3446
|
+
},
|
|
3447
|
+
onPressEnd: (e) => {
|
|
3448
|
+
_(), e.pointerType === "touch" && !g.current && N.current && l?.(), N.current = !1, F(null);
|
|
3449
|
+
},
|
|
3450
|
+
onFocus: x,
|
|
3451
|
+
onBlur: S
|
|
3452
|
+
},
|
|
3453
|
+
decrementButtonProps: {
|
|
3454
|
+
onPressStart: (e) => {
|
|
3455
|
+
_(), e.pointerType === "touch" ? (j(window, "pointercancel", w, { capture: !0 }), N.current = !1, te("touch")) : (d?.(), te("mouse"));
|
|
3456
|
+
},
|
|
3457
|
+
onPressUp: (e) => {
|
|
3458
|
+
_(), e.pointerType === "touch" && (N.current = !0), M(), te(null);
|
|
3459
|
+
},
|
|
3460
|
+
onPressEnd: (e) => {
|
|
3461
|
+
_(), e.pointerType === "touch" && !g.current && N.current && d?.(), N.current = !1, te(null);
|
|
3462
|
+
},
|
|
3463
|
+
onFocus: x,
|
|
3464
|
+
onBlur: S
|
|
3465
|
+
}
|
|
3466
|
+
};
|
|
3467
|
+
}
|
|
3468
|
+
//#endregion
|
|
3469
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/numberfield/useNumberField.mjs
|
|
3470
|
+
function pc(e) {
|
|
3471
|
+
return e && e.__esModule ? e.default : e;
|
|
3472
|
+
}
|
|
3473
|
+
function mc(e, t, n) {
|
|
3474
|
+
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: ee, commitValidation: k } = t, A = Ca(pc(ws), "@react-aria/numberfield"), j = (0, R.useCallback)(() => {
|
|
3475
|
+
let e = n.current?.value ?? "";
|
|
3476
|
+
(0, sa.flushSync)(() => {
|
|
3477
|
+
ee();
|
|
3478
|
+
}), n.current?.value !== e && ro(n.current?.value ?? "", "assertive");
|
|
3479
|
+
}, [ee, n]), M = Mi(r), { focusProps: N } = Li({ onBlur() {
|
|
3480
|
+
j();
|
|
3481
|
+
} }), P = fe(p), F = (0, R.useMemo)(() => P.resolvedOptions(), [P]), I = fe({
|
|
3482
|
+
...p,
|
|
3483
|
+
currencySign: void 0
|
|
3484
|
+
}), { spinButtonProps: te, incrementButtonProps: ne, decrementButtonProps: re } = fc({
|
|
3485
|
+
isDisabled: o,
|
|
3486
|
+
isReadOnly: s,
|
|
3487
|
+
isRequired: c,
|
|
3488
|
+
maxValue: u,
|
|
3489
|
+
minValue: l,
|
|
3490
|
+
onIncrement: C,
|
|
3491
|
+
onIncrementToMax: w,
|
|
3492
|
+
onDecrement: T,
|
|
3493
|
+
onDecrementToMin: E,
|
|
3494
|
+
value: D,
|
|
3495
|
+
textValue: (0, R.useMemo)(() => isNaN(D) ? "" : I.format(D), [I, D])
|
|
3496
|
+
}), [ie, ae] = (0, R.useState)(!1), { focusWithinProps: oe } = Eo({
|
|
3497
|
+
isDisabled: o,
|
|
3498
|
+
onFocusWithinChange: ae
|
|
3499
|
+
});
|
|
3500
|
+
Os({
|
|
3501
|
+
onScroll: (0, R.useCallback)((e) => {
|
|
3502
|
+
Math.abs(e.deltaY) <= Math.abs(e.deltaX) || (e.deltaY > 0 ? C() : e.deltaY < 0 && T());
|
|
3503
|
+
}, [T, C]),
|
|
3504
|
+
isDisabled: x || o || s || !ie
|
|
3505
|
+
}, n);
|
|
3506
|
+
let se = (F.maximumFractionDigits ?? 0) > 0, ce = t.minValue === void 0 || isNaN(t.minValue) || t.minValue < 0, L = "numeric";
|
|
3507
|
+
Hr() ? ce ? L = "text" : se && (L = "decimal") : qr() && (ce ? L = "numeric" : se && (L = "decimal"));
|
|
3508
|
+
let le = (e) => {
|
|
3509
|
+
t.validate(e) && t.setInputValue(e);
|
|
3510
|
+
}, ue = (t) => {
|
|
3511
|
+
e.onPaste?.(t);
|
|
3512
|
+
let n = J(t);
|
|
3513
|
+
n && (n.selectionEnd ?? -1) - (n.selectionStart ?? 0) === n.value.length && (t.preventDefault(), ee(t.clipboardData?.getData?.("text/plain")?.trim() ?? ""));
|
|
3514
|
+
}, de = Aa(e), { keyboardProps: pe } = Zi({
|
|
3515
|
+
isDisabled: o || s,
|
|
3516
|
+
shortcuts: { Enter: () => ((0, sa.flushSync)(() => {
|
|
3517
|
+
ee();
|
|
3518
|
+
}), k(), { shouldPreventDefault: !1 }) },
|
|
3519
|
+
onKeyDown: _,
|
|
3520
|
+
onKeyUp: v
|
|
3521
|
+
}), { isInvalid: me, validationErrors: he, validationDetails: ge } = t.displayValidation, { labelProps: _e, inputProps: ve, descriptionProps: ye, errorMessageProps: be } = Ds({
|
|
3522
|
+
...S,
|
|
3523
|
+
...de,
|
|
3524
|
+
name: void 0,
|
|
3525
|
+
form: void 0,
|
|
3526
|
+
label: f,
|
|
3527
|
+
autoFocus: d,
|
|
3528
|
+
isDisabled: o,
|
|
3529
|
+
isReadOnly: s,
|
|
3530
|
+
isRequired: c,
|
|
3531
|
+
validate: void 0,
|
|
3532
|
+
[go]: t,
|
|
3533
|
+
value: O,
|
|
3534
|
+
defaultValue: "!",
|
|
3535
|
+
autoComplete: "off",
|
|
3536
|
+
"aria-label": e["aria-label"] || void 0,
|
|
3537
|
+
"aria-labelledby": e["aria-labelledby"] || void 0,
|
|
3538
|
+
id: M,
|
|
3539
|
+
type: "text",
|
|
3540
|
+
inputMode: L,
|
|
3541
|
+
onChange: le,
|
|
3542
|
+
onBlur: m,
|
|
3543
|
+
onFocus: h,
|
|
3544
|
+
onFocusChange: g,
|
|
3545
|
+
onPaste: ue,
|
|
3546
|
+
description: y,
|
|
3547
|
+
errorMessage: b
|
|
3548
|
+
}, t, n), xe = X(pe, ve);
|
|
3549
|
+
oo(n, t.defaultNumberValue, t.setNumberValue), hc(t, e.validationBehavior, e.commitBehavior, n, t.minValue, t.maxValue, e.step, t.numberValue);
|
|
3550
|
+
let Se = X(te, N, xe, {
|
|
3551
|
+
role: null,
|
|
3552
|
+
"aria-roledescription": Wr() ? null : A.format("numberField"),
|
|
3553
|
+
"aria-valuemax": null,
|
|
3554
|
+
"aria-valuemin": null,
|
|
3555
|
+
"aria-valuenow": null,
|
|
3556
|
+
"aria-valuetext": null,
|
|
3557
|
+
autoCorrect: "off",
|
|
3558
|
+
spellCheck: "false"
|
|
3559
|
+
});
|
|
3560
|
+
e.validationBehavior === "native" && (Se["aria-required"] = void 0);
|
|
3561
|
+
let Ce = (e) => {
|
|
3562
|
+
q() !== n.current && (e.pointerType === "mouse" ? n.current?.focus() : e.target.focus());
|
|
3563
|
+
}, we = e["aria-label"] || (typeof e.label == "string" ? e.label : ""), Te;
|
|
3564
|
+
we || (Te = e.label == null ? e["aria-labelledby"] : _e.id);
|
|
3565
|
+
let Ee = Mi(), De = Mi(), Oe = X(ne, {
|
|
3566
|
+
"aria-label": a || A.format("increase", { fieldLabel: we }).trim(),
|
|
3567
|
+
id: Te && !a ? Ee : null,
|
|
3568
|
+
"aria-labelledby": Te && !a ? `${Ee} ${Te}` : null,
|
|
3569
|
+
"aria-controls": M,
|
|
3570
|
+
excludeFromTabOrder: !0,
|
|
3571
|
+
preventFocusOnPress: !0,
|
|
3572
|
+
allowFocusWhenDisabled: !0,
|
|
3573
|
+
isDisabled: !t.canIncrement,
|
|
3574
|
+
onPressStart: Ce
|
|
3575
|
+
}), z = X(re, {
|
|
3576
|
+
"aria-label": i || A.format("decrease", { fieldLabel: we }).trim(),
|
|
3577
|
+
id: Te && !i ? De : null,
|
|
3578
|
+
"aria-labelledby": Te && !i ? `${De} ${Te}` : null,
|
|
3579
|
+
"aria-controls": M,
|
|
3580
|
+
excludeFromTabOrder: !0,
|
|
3581
|
+
preventFocusOnPress: !0,
|
|
3582
|
+
allowFocusWhenDisabled: !0,
|
|
3583
|
+
isDisabled: !t.canDecrement,
|
|
3584
|
+
onPressStart: Ce
|
|
3585
|
+
});
|
|
3586
|
+
return {
|
|
3587
|
+
groupProps: {
|
|
3588
|
+
...oe,
|
|
3589
|
+
role: "group",
|
|
3590
|
+
"aria-disabled": o,
|
|
3591
|
+
"aria-invalid": me ? "true" : void 0
|
|
3592
|
+
},
|
|
3593
|
+
labelProps: _e,
|
|
3594
|
+
inputProps: Se,
|
|
3595
|
+
incrementButtonProps: Oe,
|
|
3596
|
+
decrementButtonProps: z,
|
|
3597
|
+
errorMessageProps: be,
|
|
3598
|
+
descriptionProps: ye,
|
|
3599
|
+
isInvalid: me,
|
|
3600
|
+
validationErrors: he,
|
|
3601
|
+
validationDetails: ge
|
|
3602
|
+
};
|
|
3603
|
+
}
|
|
3604
|
+
var Q = null;
|
|
3605
|
+
function hc(e, t, n, r, i, a, o, s) {
|
|
3606
|
+
Y(() => {
|
|
3607
|
+
let c = r.current;
|
|
3608
|
+
if (n !== "validate" || e.realtimeValidation.isInvalid || !c || c.disabled || (!Q && typeof document < "u" && (Q = document.createElement("input"), Q.type = "number"), !Q)) return;
|
|
3609
|
+
Q.min = i != null && !isNaN(i) ? String(i) : "", Q.max = a != null && !isNaN(a) ? String(a) : "", Q.step = o != null && !isNaN(o) ? String(o) : "", Q.value = s != null && !isNaN(s) ? String(s) : "";
|
|
3610
|
+
let l = c.validity.valid && Q.validity.valid, u = c.validationMessage || Q.validationMessage, d = {
|
|
3611
|
+
isInvalid: !l,
|
|
3612
|
+
validationErrors: u ? [u] : [],
|
|
3613
|
+
validationDetails: {
|
|
3614
|
+
badInput: c.validity.badInput,
|
|
3615
|
+
customError: c.validity.customError,
|
|
3616
|
+
patternMismatch: c.validity.patternMismatch,
|
|
3617
|
+
rangeOverflow: Q.validity.rangeOverflow,
|
|
3618
|
+
rangeUnderflow: Q.validity.rangeUnderflow,
|
|
3619
|
+
stepMismatch: Q.validity.stepMismatch,
|
|
3620
|
+
tooLong: c.validity.tooLong,
|
|
3621
|
+
tooShort: c.validity.tooShort,
|
|
3622
|
+
typeMismatch: c.validity.typeMismatch,
|
|
3623
|
+
valueMissing: c.validity.valueMissing,
|
|
3624
|
+
valid: l
|
|
3625
|
+
}
|
|
3626
|
+
};
|
|
3627
|
+
e.updateValidation(d), t === "native" && !Q.validity.valid && c.setCustomValidity(Q.validationMessage);
|
|
3628
|
+
});
|
|
3629
|
+
}
|
|
3630
|
+
//#endregion
|
|
3631
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/focus/useFocusRing.mjs
|
|
3632
|
+
function gc(e = {}) {
|
|
3633
|
+
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, R.useRef)({
|
|
3634
|
+
isFocused: !1,
|
|
3635
|
+
isFocusVisible: t || mi()
|
|
3636
|
+
}), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, R.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, R.useCallback)((e) => {
|
|
3637
|
+
i.current.isFocused = e, i.current.isFocusVisible = mi(), o(e), l();
|
|
3638
|
+
}, [l]);
|
|
3639
|
+
yi((e) => {
|
|
3640
|
+
i.current.isFocusVisible = e, l();
|
|
3641
|
+
}, [n, a], {
|
|
3642
|
+
enabled: a,
|
|
3643
|
+
isTextInput: n
|
|
3644
|
+
});
|
|
3645
|
+
let { focusProps: d } = Li({
|
|
3646
|
+
isDisabled: r,
|
|
3647
|
+
onFocusChange: u
|
|
3648
|
+
}), { focusWithinProps: f } = Eo({
|
|
3649
|
+
isDisabled: !r,
|
|
3650
|
+
onFocusWithinChange: u
|
|
3651
|
+
});
|
|
3652
|
+
return {
|
|
3653
|
+
isFocused: a,
|
|
3654
|
+
isFocusVisible: s,
|
|
3655
|
+
focusProps: r ? f : d
|
|
3656
|
+
};
|
|
3657
|
+
}
|
|
3658
|
+
//#endregion
|
|
3659
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/interactions/useHover.mjs
|
|
3660
|
+
var _c = !1, vc = 0;
|
|
3661
|
+
function yc() {
|
|
3662
|
+
_c = !0, setTimeout(() => {
|
|
3663
|
+
_c = !1;
|
|
3664
|
+
}, 500);
|
|
3665
|
+
}
|
|
3666
|
+
function bc(e) {
|
|
3667
|
+
e.pointerType === "touch" && yc();
|
|
3668
|
+
}
|
|
3669
|
+
function xc() {
|
|
3670
|
+
let e = W(null);
|
|
3671
|
+
if (e !== void 0) return vc === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", bc), vc++, () => {
|
|
3672
|
+
vc--, !(vc > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", bc);
|
|
3673
|
+
};
|
|
3674
|
+
}
|
|
3675
|
+
function Sc(e) {
|
|
3676
|
+
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, R.useState)(!1), s = (0, R.useRef)({
|
|
3677
|
+
isHovered: !1,
|
|
3678
|
+
ignoreEmulatedMouseEvents: !1,
|
|
3679
|
+
pointerType: "",
|
|
3680
|
+
target: null
|
|
3681
|
+
}).current;
|
|
3682
|
+
(0, R.useEffect)(xc, []);
|
|
3683
|
+
let { addGlobalListener: c, removeAllGlobalListeners: l } = Ba(), { hoverProps: u, triggerHoverEnd: d } = (0, R.useMemo)(() => {
|
|
3684
|
+
let e = (e, r) => {
|
|
3685
|
+
if (s.pointerType = r, i || r === "touch" || s.isHovered || !K(e.currentTarget, J(e))) return;
|
|
3686
|
+
s.isHovered = !0;
|
|
3687
|
+
let l = e.currentTarget;
|
|
3688
|
+
s.target = l, c(W(J(e)), "pointerover", (e) => {
|
|
3689
|
+
s.isHovered && s.target && !K(s.target, J(e)) && a(e, e.pointerType);
|
|
3690
|
+
}, { capture: !0 }), t && t({
|
|
3691
|
+
type: "hoverstart",
|
|
3692
|
+
target: l,
|
|
3693
|
+
pointerType: r
|
|
3694
|
+
}), n && n(!0), o(!0);
|
|
3695
|
+
}, a = (e, t) => {
|
|
3696
|
+
let i = s.target;
|
|
3697
|
+
s.pointerType = "", s.target = null, !(t === "touch" || !s.isHovered || !i) && (s.isHovered = !1, l(), r && r({
|
|
3698
|
+
type: "hoverend",
|
|
3699
|
+
target: i,
|
|
3700
|
+
pointerType: t
|
|
3701
|
+
}), n && n(!1), o(!1));
|
|
3702
|
+
}, u = {};
|
|
3703
|
+
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
|
|
3704
|
+
_c && t.pointerType === "mouse" || e(t, t.pointerType);
|
|
3705
|
+
}, u.onPointerLeave = (e) => {
|
|
3706
|
+
!i && K(e.currentTarget, J(e)) && a(e, e.pointerType);
|
|
3707
|
+
}), {
|
|
3708
|
+
hoverProps: u,
|
|
3709
|
+
triggerHoverEnd: a
|
|
3710
|
+
};
|
|
3711
|
+
}, [
|
|
3712
|
+
t,
|
|
3713
|
+
n,
|
|
3714
|
+
r,
|
|
3715
|
+
i,
|
|
3716
|
+
s,
|
|
3717
|
+
c,
|
|
3718
|
+
l
|
|
3719
|
+
]);
|
|
3720
|
+
return (0, R.useEffect)(() => {
|
|
3721
|
+
i && d({ currentTarget: s.target }, s.pointerType);
|
|
3722
|
+
}, [i]), {
|
|
3723
|
+
hoverProps: u,
|
|
3724
|
+
isHovered: a
|
|
3725
|
+
};
|
|
3726
|
+
}
|
|
3727
|
+
//#endregion
|
|
3728
|
+
//#region src/hooks/useDebounce.ts
|
|
3729
|
+
var $ = s();
|
|
3730
|
+
function Cc(e, t) {
|
|
3731
|
+
let n = (0, $.c)(4), [r, i] = (0, R.useState)(e), a, o;
|
|
3732
|
+
return n[0] !== t || n[1] !== e ? (a = () => {
|
|
3733
|
+
let n = setTimeout(() => i(e), t);
|
|
3734
|
+
return () => {
|
|
3735
|
+
clearTimeout(n);
|
|
3736
|
+
};
|
|
3737
|
+
}, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), (0, R.useEffect)(a, o), r;
|
|
3738
|
+
}
|
|
3739
|
+
function wc(e) {
|
|
3740
|
+
let t = (0, $.c)(18), { initialValue: n, onChange: r, delay: i, disabled: a } = e, [o, s] = (0, R.useState)(n), c = Cc(o, i || 200), l = ge(r), u, d;
|
|
3741
|
+
t[0] === n ? (u = t[1], d = t[2]) : (u = () => {
|
|
3742
|
+
s(n);
|
|
3743
|
+
}, d = [n], t[0] = n, t[1] = u, t[2] = d), (0, R.useEffect)(u, d);
|
|
3744
|
+
let f;
|
|
3745
|
+
t[3] !== c || t[4] !== a || t[5] !== n || t[6] !== l ? (f = () => {
|
|
3746
|
+
a || c !== n && l(c);
|
|
3747
|
+
}, t[3] = c, t[4] = a, t[5] = n, t[6] = l, t[7] = f) : f = t[7];
|
|
3748
|
+
let p;
|
|
3749
|
+
if (t[8] !== c || t[9] !== a || t[10] !== l ? (p = [
|
|
3750
|
+
c,
|
|
3751
|
+
a,
|
|
3752
|
+
l
|
|
3753
|
+
], t[8] = c, t[9] = a, t[10] = l, t[11] = p) : p = t[11], (0, R.useEffect)(f, p), a) {
|
|
3754
|
+
let e;
|
|
3755
|
+
return t[12] !== o || t[13] !== r ? (e = {
|
|
3756
|
+
value: o,
|
|
3757
|
+
debouncedValue: o,
|
|
3758
|
+
onChange: r
|
|
3759
|
+
}, t[12] = o, t[13] = r, t[14] = e) : e = t[14], e;
|
|
3760
|
+
}
|
|
3761
|
+
let m;
|
|
3762
|
+
return t[15] !== c || t[16] !== o ? (m = {
|
|
3763
|
+
value: o,
|
|
3764
|
+
debouncedValue: c,
|
|
3765
|
+
onChange: s
|
|
3766
|
+
}, t[15] = c, t[16] = o, t[17] = m) : m = t[17], m;
|
|
3767
|
+
}
|
|
3768
|
+
function Tc(e, t) {
|
|
3769
|
+
let n = (0, $.c)(3), r = ge(e), i;
|
|
3770
|
+
return n[0] !== t || n[1] !== r ? (i = he(r, t), n[0] = t, n[1] = r, n[2] = i) : i = n[2], i;
|
|
3771
|
+
}
|
|
3772
|
+
//#endregion
|
|
3773
|
+
//#region ../node_modules/.pnpm/react-aria-components@1.21.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria-components/dist/private/utils.mjs
|
|
3774
|
+
var Ec = Symbol("default");
|
|
3775
|
+
function Dc({ values: e, children: t }) {
|
|
3776
|
+
for (let [n, r] of e) t = /*#__PURE__*/ R.createElement(n.Provider, { value: r }, t);
|
|
3777
|
+
return t;
|
|
3778
|
+
}
|
|
3779
|
+
function Oc(e) {
|
|
3780
|
+
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
|
|
3781
|
+
return (0, R.useMemo)(() => {
|
|
3782
|
+
let e, l, u;
|
|
3783
|
+
return e = typeof t == "function" ? t({
|
|
3784
|
+
...s,
|
|
3785
|
+
defaultClassName: i
|
|
3786
|
+
}) : t, l = typeof n == "function" ? n({
|
|
3787
|
+
...s,
|
|
3788
|
+
defaultStyle: o || {}
|
|
3789
|
+
}) : n, u = typeof r == "function" ? r({
|
|
3790
|
+
...s,
|
|
3791
|
+
defaultChildren: a
|
|
3792
|
+
}) : r ?? a, {
|
|
3793
|
+
className: e ?? i,
|
|
3794
|
+
style: l || o ? {
|
|
3795
|
+
...o,
|
|
3796
|
+
...l
|
|
3797
|
+
} : void 0,
|
|
3798
|
+
children: u ?? a,
|
|
3799
|
+
"data-rac": "",
|
|
3800
|
+
render: c ? (e) => c(e, s) : void 0
|
|
3801
|
+
};
|
|
3802
|
+
}, [
|
|
3803
|
+
t,
|
|
3804
|
+
n,
|
|
3805
|
+
r,
|
|
3806
|
+
i,
|
|
3807
|
+
a,
|
|
3808
|
+
o,
|
|
3809
|
+
s,
|
|
3810
|
+
c
|
|
3811
|
+
]);
|
|
3812
|
+
}
|
|
3813
|
+
function kc(e, t) {
|
|
3814
|
+
return (n) => t(typeof e == "function" ? e(n) : e, n);
|
|
3815
|
+
}
|
|
3816
|
+
function Ac(e, t) {
|
|
3817
|
+
let n = (0, R.useContext)(e);
|
|
3818
|
+
if (t === null) return null;
|
|
3819
|
+
if (n && typeof n == "object" && "slots" in n && n.slots) {
|
|
3820
|
+
let e = t || Ec;
|
|
3821
|
+
if (!n.slots[e]) {
|
|
3822
|
+
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
|
|
3823
|
+
throw Error(`${r} Valid slot names are ${e}.`);
|
|
3824
|
+
}
|
|
3825
|
+
return n.slots[e];
|
|
3826
|
+
}
|
|
3827
|
+
return n;
|
|
3828
|
+
}
|
|
3829
|
+
function jc(e, t, n) {
|
|
3830
|
+
let { ref: r, ...i } = Ac(n, e.slot) || {}, a = Qi((0, R.useMemo)(() => Fi(t, r), [t, r])), o = X(i, e);
|
|
3831
|
+
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
|
|
3832
|
+
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
|
|
3833
|
+
...t.defaultStyle,
|
|
3834
|
+
...n
|
|
3835
|
+
}, a = typeof e.style == "function" ? e.style({
|
|
3836
|
+
...t,
|
|
3837
|
+
defaultStyle: r
|
|
3838
|
+
}) : e.style;
|
|
3839
|
+
return {
|
|
3840
|
+
...r,
|
|
3841
|
+
...a
|
|
3842
|
+
};
|
|
3843
|
+
} : {
|
|
3844
|
+
...i.style,
|
|
3845
|
+
...e.style
|
|
3846
|
+
}), [o, a];
|
|
3847
|
+
}
|
|
3848
|
+
function Mc(e = !0) {
|
|
3849
|
+
let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(!1), i = (0, R.useCallback)((e) => {
|
|
3850
|
+
r.current = !0, n(!!e);
|
|
3851
|
+
}, []);
|
|
3852
|
+
return Y(() => {
|
|
3853
|
+
r.current || n(!1);
|
|
3854
|
+
}, []), [i, t];
|
|
3855
|
+
}
|
|
3856
|
+
function Nc(e) {
|
|
3857
|
+
let t = /^(data-.*)$/, n = {};
|
|
3858
|
+
for (let r in e) t.test(r) || (n[r] = e[r]);
|
|
3859
|
+
return n;
|
|
3860
|
+
}
|
|
3861
|
+
function Pc(e, t, n) {
|
|
3862
|
+
let { render: r, ...i } = t, a = (0, R.useRef)(null), o = (0, R.useMemo)(() => Fi(n, a), [n, a]);
|
|
3863
|
+
Y(() => {}, [e, r]);
|
|
3864
|
+
let s = {
|
|
3865
|
+
...i,
|
|
3866
|
+
ref: o
|
|
3867
|
+
};
|
|
3868
|
+
return r ? r(s, void 0) : /*#__PURE__*/ R.createElement(e, s);
|
|
3869
|
+
}
|
|
3870
|
+
var Fc = {}, Ic = new Proxy({}, { get(e, t) {
|
|
3871
|
+
if (typeof t != "string") return;
|
|
3872
|
+
let n = Fc[t];
|
|
3873
|
+
return n || (n = /*#__PURE__*/ (0, R.forwardRef)(Pc.bind(null, t)), Fc[t] = n), n;
|
|
3874
|
+
} }), Lc = /*#__PURE__*/ (0, R.createContext)({}), Rc = /*#__PURE__*/ ia(function(e, t) {
|
|
3875
|
+
[e, t] = jc(e, t, Lc);
|
|
3876
|
+
let { elementType: n = "label", ...r } = e, i = Ic[n];
|
|
3877
|
+
return /*#__PURE__*/ R.createElement(i, {
|
|
3878
|
+
className: "react-aria-Label",
|
|
3879
|
+
...r,
|
|
3880
|
+
ref: t
|
|
3881
|
+
});
|
|
3882
|
+
}), zc = /*#__PURE__*/ (0, R.createContext)(null), Bc = /*#__PURE__*/ (0, R.createContext)({}), Vc = /*#__PURE__*/ ia(function(e, t) {
|
|
3883
|
+
[e, t] = jc(e, t, Bc);
|
|
3884
|
+
let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = eo(e, t);
|
|
3885
|
+
i = Uc(i, r);
|
|
3886
|
+
let { focusProps: o, isFocused: s, isFocusVisible: c } = gc(e), { hoverProps: l, isHovered: u } = Sc({
|
|
3887
|
+
...e,
|
|
3888
|
+
isDisabled: e.isDisabled || r
|
|
3889
|
+
}), d = {
|
|
3890
|
+
isHovered: u,
|
|
3891
|
+
isPressed: (n.isPressed || a) && !r,
|
|
3892
|
+
isFocused: s,
|
|
3893
|
+
isFocusVisible: c,
|
|
3894
|
+
isDisabled: e.isDisabled || !1,
|
|
3895
|
+
isPending: r ?? !1
|
|
3896
|
+
}, f = Oc({
|
|
3897
|
+
...e,
|
|
3898
|
+
values: d,
|
|
3899
|
+
defaultClassName: "react-aria-Button"
|
|
3900
|
+
}), p = Mi(i.id), m = Mi(), h = i["aria-labelledby"];
|
|
3901
|
+
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
|
|
3902
|
+
let g = (0, R.useRef)(r);
|
|
3903
|
+
(0, R.useEffect)(() => {
|
|
3904
|
+
let e = { "aria-labelledby": h || p };
|
|
3905
|
+
(!g.current && s && r || g.current && s && !r) && ro(e, "assertive"), g.current = r;
|
|
3906
|
+
}, [
|
|
3907
|
+
r,
|
|
3908
|
+
s,
|
|
3909
|
+
h,
|
|
3910
|
+
p
|
|
3911
|
+
]);
|
|
3912
|
+
let _ = Aa(e, { global: !0 });
|
|
3913
|
+
return delete _.onClick, /*#__PURE__*/ R.createElement(Ic.button, {
|
|
3914
|
+
...X(_, f, i, o, l),
|
|
3915
|
+
type: i.type === "submit" && r ? "button" : i.type,
|
|
3916
|
+
id: p,
|
|
3917
|
+
ref: t,
|
|
3918
|
+
"aria-labelledby": h,
|
|
3919
|
+
slot: e.slot || void 0,
|
|
3920
|
+
"aria-disabled": r ? "true" : i["aria-disabled"],
|
|
3921
|
+
"data-disabled": e.isDisabled || void 0,
|
|
3922
|
+
"data-pressed": d.isPressed || void 0,
|
|
3923
|
+
"data-hovered": u || void 0,
|
|
3924
|
+
"data-focused": s || void 0,
|
|
3925
|
+
"data-pending": r || void 0,
|
|
3926
|
+
"data-focus-visible": c || void 0
|
|
3927
|
+
}, /*#__PURE__*/ R.createElement(zc.Provider, { value: { id: m } }, f.children));
|
|
3928
|
+
}), Hc = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
|
|
3929
|
+
function Uc(e, t) {
|
|
3930
|
+
if (t) {
|
|
3931
|
+
for (let t in e) t.startsWith("on") && !Hc.test(t) && (e[t] = void 0);
|
|
3932
|
+
e.href = void 0, e.target = void 0;
|
|
3933
|
+
}
|
|
3934
|
+
return e;
|
|
3935
|
+
}
|
|
3936
|
+
//#endregion
|
|
3937
|
+
//#region ../node_modules/.pnpm/react-aria-components@1.21.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria-components/dist/private/Text.mjs
|
|
3938
|
+
var Wc = /*#__PURE__*/ (0, R.createContext)({}), Gc = /*#__PURE__*/ ia(function(e, t) {
|
|
3939
|
+
[e, t] = jc(e, t, Wc);
|
|
3940
|
+
let { elementType: n = "span", ...r } = e, i = Ic[n];
|
|
3941
|
+
return /*#__PURE__*/ R.createElement(i, {
|
|
3942
|
+
className: "react-aria-Text",
|
|
3943
|
+
...r,
|
|
3944
|
+
ref: t
|
|
3945
|
+
});
|
|
3946
|
+
}), Kc = /*#__PURE__*/ (0, R.createContext)(null), qc = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
|
|
3947
|
+
return (0, R.useContext)(Kc)?.isInvalid ? /*#__PURE__*/ R.createElement(Jc, {
|
|
3948
|
+
...e,
|
|
3949
|
+
ref: t
|
|
3950
|
+
}) : null;
|
|
3951
|
+
}), Jc = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
|
|
3952
|
+
let n = (0, R.useContext)(Kc), { elementType: r, ...i } = e, a = Aa(i, { global: !0 }), o = Oc({
|
|
3953
|
+
...i,
|
|
3954
|
+
defaultClassName: "react-aria-FieldError",
|
|
3955
|
+
defaultChildren: n.validationErrors.length === 0 ? void 0 : n.validationErrors.join(" "),
|
|
3956
|
+
values: n
|
|
3957
|
+
});
|
|
3958
|
+
return o.children == null ? null : /*#__PURE__*/ R.createElement(Gc, {
|
|
3959
|
+
slot: "errorMessage",
|
|
3960
|
+
elementType: r,
|
|
3961
|
+
...a,
|
|
3962
|
+
...o,
|
|
3963
|
+
ref: t
|
|
3964
|
+
});
|
|
3965
|
+
}), Yc = /*#__PURE__*/ (0, R.createContext)(null), Xc = /*#__PURE__*/ (0, R.createContext)({}), Zc = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
|
|
3966
|
+
[e, t] = jc(e, t, Xc);
|
|
3967
|
+
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
|
|
3968
|
+
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
|
|
3969
|
+
let { hoverProps: l, isHovered: u } = Sc({
|
|
3970
|
+
onHoverStart: a,
|
|
3971
|
+
onHoverChange: o,
|
|
3972
|
+
onHoverEnd: s,
|
|
3973
|
+
isDisabled: n
|
|
3974
|
+
}), { isFocused: d, isFocusVisible: f, focusProps: p } = gc({ within: !0 }), m = Oc({
|
|
3975
|
+
...e,
|
|
3976
|
+
values: {
|
|
3977
|
+
isHovered: u,
|
|
3978
|
+
isFocusWithin: d,
|
|
3979
|
+
isFocusVisible: f,
|
|
3980
|
+
isDisabled: n,
|
|
3981
|
+
isInvalid: r
|
|
3982
|
+
},
|
|
3983
|
+
defaultClassName: "react-aria-Group"
|
|
3984
|
+
});
|
|
3985
|
+
return /*#__PURE__*/ R.createElement(Ic.div, {
|
|
3986
|
+
...X(c, p, l),
|
|
3987
|
+
...m,
|
|
3988
|
+
ref: t,
|
|
3989
|
+
role: e.role ?? "group",
|
|
3990
|
+
slot: e.slot ?? void 0,
|
|
3991
|
+
"data-focus-within": d || void 0,
|
|
3992
|
+
"data-hovered": u || void 0,
|
|
3993
|
+
"data-focus-visible": f || void 0,
|
|
3994
|
+
"data-disabled": n || void 0,
|
|
3995
|
+
"data-invalid": r || void 0,
|
|
3996
|
+
"data-readonly": i || void 0
|
|
3997
|
+
}, m.children);
|
|
3998
|
+
}), Qc = /*#__PURE__*/ (0, R.createContext)({}), $c = (e) => {
|
|
3999
|
+
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
|
|
4000
|
+
return i;
|
|
4001
|
+
}, el = /*#__PURE__*/ ia(function(e, t) {
|
|
4002
|
+
[e, t] = jc(e, t, Qc);
|
|
4003
|
+
let { hoverProps: n, isHovered: r } = Sc({
|
|
4004
|
+
...e,
|
|
4005
|
+
isDisabled: e.disabled
|
|
4006
|
+
}), { isFocused: i, isFocusVisible: a, focusProps: o } = gc({
|
|
4007
|
+
isTextInput: !0,
|
|
4008
|
+
autoFocus: e.autoFocus
|
|
4009
|
+
}), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Oc({
|
|
4010
|
+
...e,
|
|
4011
|
+
values: {
|
|
4012
|
+
isHovered: r,
|
|
4013
|
+
isFocused: i,
|
|
4014
|
+
isFocusVisible: a,
|
|
4015
|
+
isDisabled: e.disabled || !1,
|
|
4016
|
+
isInvalid: s
|
|
4017
|
+
},
|
|
4018
|
+
defaultClassName: "react-aria-Input"
|
|
4019
|
+
});
|
|
4020
|
+
return /*#__PURE__*/ R.createElement(Ic.input, {
|
|
4021
|
+
...X($c(e), o, n),
|
|
4022
|
+
...c,
|
|
4023
|
+
ref: t,
|
|
4024
|
+
"data-focused": i || void 0,
|
|
4025
|
+
"data-disabled": e.disabled || void 0,
|
|
4026
|
+
"data-hovered": r || void 0,
|
|
4027
|
+
"data-focus-visible": a || void 0,
|
|
4028
|
+
"data-invalid": s || void 0
|
|
4029
|
+
});
|
|
4030
|
+
});
|
|
4031
|
+
//#endregion
|
|
4032
|
+
//#region ../node_modules/.pnpm/react-stately@3.50.0_react@19.2.8/node_modules/react-stately/dist/private/numberfield/useNumberFieldState.mjs
|
|
4033
|
+
function tl(e) {
|
|
4034
|
+
let { minValue: t, maxValue: n, step: r, formatOptions: i, value: a, defaultValue: o = NaN, onChange: s, locale: c, isDisabled: l, isReadOnly: u, commitBehavior: d = "snap" } = e;
|
|
4035
|
+
a === null && (a = NaN);
|
|
4036
|
+
let f = (0, R.useCallback)((e) => r === void 0 || isNaN(r) ? ko(e, t, n) : jo(e, t, n, r), [
|
|
4037
|
+
r,
|
|
4038
|
+
t,
|
|
4039
|
+
n
|
|
4040
|
+
]);
|
|
4041
|
+
a !== void 0 && !isNaN(a) && d === "snap" && (a = f(a)), !isNaN(o) && d === "snap" && (o = f(o));
|
|
4042
|
+
let [p, m] = Oo(a, isNaN(o) ? NaN : o, s), [h] = (0, R.useState)(p), [g, _] = (0, R.useState)(() => isNaN(p) ? "" : new pe(c, i).format(p)), v = (0, R.useMemo)(() => new Po(c, i), [c, i]), y = (0, R.useMemo)(() => v.getNumberingSystem(g), [v, g]), b = (0, R.useMemo)(() => new pe(c, {
|
|
4043
|
+
...i,
|
|
4044
|
+
numberingSystem: y
|
|
4045
|
+
}), [
|
|
4046
|
+
c,
|
|
4047
|
+
i,
|
|
4048
|
+
y
|
|
4049
|
+
]), x = (0, R.useMemo)(() => b.resolvedOptions(), [b]), S = (0, R.useCallback)((e) => isNaN(e) || e === null ? "" : b.format(e), [b]), C = _o({
|
|
4050
|
+
...e,
|
|
4051
|
+
value: p
|
|
4052
|
+
}), w = r !== void 0 && !isNaN(r) ? r : 1;
|
|
4053
|
+
x.style === "percent" && (r === void 0 || isNaN(r)) && (w = .01);
|
|
4054
|
+
let [T, E] = (0, R.useState)(p), [D, O] = (0, R.useState)(c), [ee, k] = (0, R.useState)(i);
|
|
4055
|
+
(!Object.is(p, T) || c !== D || !nl(i, ee)) && (_(S(p)), E(p), O(c), k(i));
|
|
4056
|
+
let A = (0, R.useMemo)(() => v.parse(g), [v, g]), j = (e) => {
|
|
4057
|
+
let t = e === void 0 ? g : e, n = A;
|
|
4058
|
+
if (e !== void 0 && (n = v.parse(t)), !t.length) {
|
|
4059
|
+
m(NaN), _(a === void 0 ? "" : S(p));
|
|
4060
|
+
return;
|
|
4061
|
+
}
|
|
4062
|
+
if (isNaN(n)) {
|
|
4063
|
+
_(S(p));
|
|
4064
|
+
return;
|
|
4065
|
+
}
|
|
4066
|
+
let r = d === "snap" ? f(n) : n;
|
|
4067
|
+
r = v.parse(S(r));
|
|
4068
|
+
let i = r !== p;
|
|
4069
|
+
m(r), _(S(a === void 0 ? r : p)), i && C.commitValidation();
|
|
4070
|
+
}, M = (e, r = 0) => {
|
|
4071
|
+
let i = A;
|
|
4072
|
+
if (isNaN(i)) return jo(isNaN(r) ? 0 : r, t, n, w);
|
|
4073
|
+
{
|
|
4074
|
+
let r = jo(i, t, n, w);
|
|
4075
|
+
return e === "+" && r > i || e === "-" && r < i ? r : jo(rl(e, i, w), t, n, w);
|
|
4076
|
+
}
|
|
4077
|
+
}, N = () => {
|
|
4078
|
+
let e = M("+", t);
|
|
4079
|
+
e === p && _(S(e)), m(e), C.commitValidation();
|
|
4080
|
+
}, P = () => {
|
|
4081
|
+
let e = M("-", n);
|
|
4082
|
+
e === p && _(S(e)), m(e), C.commitValidation();
|
|
4083
|
+
}, F = () => {
|
|
4084
|
+
n != null && (m(jo(n, t, n, w)), C.commitValidation());
|
|
4085
|
+
}, I = () => {
|
|
4086
|
+
t != null && (m(t), C.commitValidation());
|
|
4087
|
+
}, te = (0, R.useMemo)(() => !l && !u && (isNaN(A) || n === void 0 || isNaN(n) || jo(A, t, n, w) > A || rl("+", A, w) <= n), [
|
|
4088
|
+
l,
|
|
4089
|
+
u,
|
|
4090
|
+
t,
|
|
4091
|
+
n,
|
|
4092
|
+
w,
|
|
4093
|
+
A
|
|
4094
|
+
]), ne = (0, R.useMemo)(() => !l && !u && (isNaN(A) || t === void 0 || isNaN(t) || jo(A, t, n, w) < A || rl("-", A, w) >= t), [
|
|
4095
|
+
l,
|
|
4096
|
+
u,
|
|
4097
|
+
t,
|
|
4098
|
+
n,
|
|
4099
|
+
w,
|
|
4100
|
+
A
|
|
4101
|
+
]), re = (e) => v.isValidPartialNumber(e, t, n);
|
|
4102
|
+
return {
|
|
4103
|
+
...C,
|
|
4104
|
+
validate: re,
|
|
4105
|
+
increment: N,
|
|
4106
|
+
incrementToMax: F,
|
|
4107
|
+
decrement: P,
|
|
4108
|
+
decrementToMin: I,
|
|
4109
|
+
canIncrement: te,
|
|
4110
|
+
canDecrement: ne,
|
|
4111
|
+
minValue: t,
|
|
4112
|
+
maxValue: n,
|
|
4113
|
+
numberValue: A,
|
|
4114
|
+
defaultNumberValue: isNaN(o) ? h : o,
|
|
4115
|
+
setNumberValue: m,
|
|
4116
|
+
setInputValue: _,
|
|
4117
|
+
inputValue: g,
|
|
4118
|
+
commit: j
|
|
4119
|
+
};
|
|
4120
|
+
}
|
|
4121
|
+
function nl(e, t) {
|
|
4122
|
+
if (e === t) return !0;
|
|
4123
|
+
if (!e || !t) return !1;
|
|
4124
|
+
let n = Object.keys(e), r = Object.keys(t);
|
|
4125
|
+
if (n.length !== r.length) return !1;
|
|
4126
|
+
for (let r of n) if (t[r] !== e[r]) return !1;
|
|
4127
|
+
return !0;
|
|
4128
|
+
}
|
|
4129
|
+
function rl(e, t, n) {
|
|
4130
|
+
let r = e === "+" ? t + n : t - n;
|
|
4131
|
+
if (t % 1 != 0 || n % 1 != 0) {
|
|
4132
|
+
let i = t.toString().split("."), a = n.toString().split("."), o = i[1] && i[1].length || 0, s = a[1] && a[1].length || 0, c = 10 ** Math.max(o, s);
|
|
4133
|
+
t = Math.round(t * c), n = Math.round(n * c), r = e === "+" ? t + n : t - n, r /= c;
|
|
4134
|
+
}
|
|
4135
|
+
return r;
|
|
4136
|
+
}
|
|
4137
|
+
//#endregion
|
|
4138
|
+
//#region ../node_modules/.pnpm/react-aria-components@1.21.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria-components/dist/private/NumberField.mjs
|
|
4139
|
+
var il = /*#__PURE__*/ (0, R.createContext)(null), al = /*#__PURE__*/ (0, R.createContext)(null), ol = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
|
|
4140
|
+
[e, t] = jc(e, t, il);
|
|
4141
|
+
let { validationBehavior: n } = Ac(Yc) || {}, r = e.validationBehavior ?? n ?? "native", { locale: i } = de(), a = tl({
|
|
4142
|
+
...e,
|
|
4143
|
+
locale: i,
|
|
4144
|
+
validationBehavior: r
|
|
4145
|
+
}), o = (0, R.useRef)(null), [s, c] = Mc(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: l, groupProps: u, inputProps: d, incrementButtonProps: f, decrementButtonProps: p, descriptionProps: m, errorMessageProps: h, ...g } = mc({
|
|
4146
|
+
...Nc(e),
|
|
4147
|
+
label: c,
|
|
4148
|
+
validationBehavior: r
|
|
4149
|
+
}, a, o), _ = Oc({
|
|
4150
|
+
...e,
|
|
4151
|
+
values: {
|
|
4152
|
+
state: a,
|
|
4153
|
+
isDisabled: e.isDisabled || !1,
|
|
4154
|
+
isInvalid: g.isInvalid || !1,
|
|
4155
|
+
isRequired: e.isRequired || !1,
|
|
4156
|
+
isReadOnly: e.isReadOnly || !1
|
|
4157
|
+
},
|
|
4158
|
+
defaultClassName: "react-aria-NumberField"
|
|
4159
|
+
}), v = Aa(e, { global: !0 });
|
|
4160
|
+
return delete v.id, /*#__PURE__*/ R.createElement(Dc, { values: [
|
|
4161
|
+
[al, a],
|
|
4162
|
+
[Xc, u],
|
|
4163
|
+
[Qc, {
|
|
4164
|
+
...d,
|
|
4165
|
+
ref: o
|
|
4166
|
+
}],
|
|
4167
|
+
[Lc, {
|
|
4168
|
+
...l,
|
|
4169
|
+
ref: s
|
|
4170
|
+
}],
|
|
4171
|
+
[Bc, { slots: {
|
|
4172
|
+
increment: f,
|
|
4173
|
+
decrement: p
|
|
4174
|
+
} }],
|
|
4175
|
+
[Wc, { slots: {
|
|
4176
|
+
description: m,
|
|
4177
|
+
errorMessage: h
|
|
4178
|
+
} }],
|
|
4179
|
+
[Kc, g]
|
|
4180
|
+
] }, /*#__PURE__*/ R.createElement(Ic.div, {
|
|
4181
|
+
...v,
|
|
4182
|
+
..._,
|
|
4183
|
+
ref: t,
|
|
4184
|
+
slot: e.slot || void 0,
|
|
4185
|
+
"data-disabled": e.isDisabled || void 0,
|
|
4186
|
+
"data-readonly": e.isReadOnly || void 0,
|
|
4187
|
+
"data-required": e.isRequired || void 0,
|
|
4188
|
+
"data-invalid": g.isInvalid || void 0
|
|
4189
|
+
}), e.name && /*#__PURE__*/ R.createElement("input", {
|
|
4190
|
+
type: "hidden",
|
|
4191
|
+
name: e.name,
|
|
4192
|
+
form: e.form,
|
|
4193
|
+
value: isNaN(a.numberValue) ? "" : a.numberValue,
|
|
4194
|
+
disabled: e.isDisabled || void 0
|
|
4195
|
+
}));
|
|
4196
|
+
}), sl = _e((e) => {
|
|
4197
|
+
for (let n of [
|
|
4198
|
+
100,
|
|
4199
|
+
20,
|
|
4200
|
+
2,
|
|
4201
|
+
0
|
|
4202
|
+
]) try {
|
|
4203
|
+
return new Intl.NumberFormat(e, {
|
|
4204
|
+
minimumFractionDigits: 0,
|
|
4205
|
+
maximumFractionDigits: n
|
|
4206
|
+
}).format(1), n;
|
|
4207
|
+
} catch (e) {
|
|
4208
|
+
t.error(e);
|
|
4209
|
+
}
|
|
4210
|
+
return 0;
|
|
4211
|
+
});
|
|
4212
|
+
function cl(e) {
|
|
4213
|
+
if (!Number.isFinite(e) || e === 0) return 0;
|
|
4214
|
+
let t = e.toFixed(12).replace(/\.?0+$/, ""), n = t.indexOf(".");
|
|
4215
|
+
return n === -1 ? 0 : t.length - n - 1;
|
|
4216
|
+
}
|
|
4217
|
+
function ll(e, t) {
|
|
4218
|
+
let n = cl(t);
|
|
4219
|
+
for (let t of e) n = Math.max(n, cl(t));
|
|
4220
|
+
return n;
|
|
4221
|
+
}
|
|
4222
|
+
function ul(e, t) {
|
|
4223
|
+
return Number(e.toFixed(t));
|
|
4224
|
+
}
|
|
4225
|
+
function dl(e, t) {
|
|
4226
|
+
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, {
|
|
4227
|
+
minimumFractionDigits: 0,
|
|
4228
|
+
maximumFractionDigits: 2
|
|
4229
|
+
}) : String(e);
|
|
4230
|
+
}
|
|
4231
|
+
function fl(e) {
|
|
4232
|
+
return e === 0 ? "0" : Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? null : e > 0 ? "Infinity" : "-Infinity";
|
|
4233
|
+
}
|
|
4234
|
+
function pl(e, t) {
|
|
4235
|
+
let n = fl(e);
|
|
4236
|
+
if (n !== null) return n;
|
|
4237
|
+
let r = Math.abs(e);
|
|
4238
|
+
if (r < .01 || r >= 1e6) return new Intl.NumberFormat(t.locale, {
|
|
4239
|
+
minimumFractionDigits: 1,
|
|
4240
|
+
maximumFractionDigits: 1,
|
|
4241
|
+
notation: "scientific"
|
|
4242
|
+
}).format(e).toLowerCase();
|
|
4243
|
+
let { shouldRound: i, locale: a } = t;
|
|
4244
|
+
return i ? new Intl.NumberFormat(a, {
|
|
4245
|
+
minimumFractionDigits: 0,
|
|
4246
|
+
maximumFractionDigits: 2
|
|
4247
|
+
}).format(e) : e.toLocaleString(a, {
|
|
4248
|
+
minimumFractionDigits: 0,
|
|
4249
|
+
maximumFractionDigits: sl(a)
|
|
4250
|
+
});
|
|
4251
|
+
}
|
|
4252
|
+
var ml = {
|
|
4253
|
+
24: "Y",
|
|
4254
|
+
21: "Z",
|
|
4255
|
+
18: "E",
|
|
4256
|
+
15: "P",
|
|
4257
|
+
12: "T",
|
|
4258
|
+
9: "G",
|
|
4259
|
+
6: "M",
|
|
4260
|
+
3: "k",
|
|
4261
|
+
0: "",
|
|
4262
|
+
"-3": "m",
|
|
4263
|
+
"-6": "µ",
|
|
4264
|
+
"-9": "n",
|
|
4265
|
+
"-12": "p",
|
|
4266
|
+
"-15": "f",
|
|
4267
|
+
"-18": "a",
|
|
4268
|
+
"-21": "z",
|
|
4269
|
+
"-24": "y"
|
|
4270
|
+
};
|
|
4271
|
+
function hl(e, t) {
|
|
4272
|
+
let n = fl(e);
|
|
4273
|
+
if (n !== null) return n;
|
|
4274
|
+
let [r, i] = new Intl.NumberFormat(t, {
|
|
4275
|
+
notation: "engineering",
|
|
4276
|
+
maximumSignificantDigits: 3
|
|
4277
|
+
}).format(e).split("E");
|
|
4278
|
+
return i in ml ? r + ml[i] : `${r}E${i}`;
|
|
4279
|
+
}
|
|
4280
|
+
//#endregion
|
|
4281
|
+
//#region src/components/ui/number-field.tsx
|
|
4282
|
+
var gl = R.forwardRef((e, t) => {
|
|
4283
|
+
let r = (0, $.c)(53), i, a, o, s, c;
|
|
4284
|
+
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5]) : ({placeholder: o, variant: c, onInputText: a, formatOptions: i, ...s} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = c);
|
|
4285
|
+
let l = c === void 0 ? "default" : c, { locale: u } = de(), d;
|
|
4286
|
+
r[6] === u ? d = r[7] : (d = sl(u), r[6] = u, r[7] = d);
|
|
4287
|
+
let f;
|
|
4288
|
+
r[8] !== i || r[9] !== d ? (f = {
|
|
4289
|
+
minimumFractionDigits: 0,
|
|
4290
|
+
maximumFractionDigits: d,
|
|
4291
|
+
...i
|
|
4292
|
+
}, r[8] = i, r[9] = d, r[10] = f) : f = r[10];
|
|
4293
|
+
let p = l === "default" ? "h-6 w-full mb-1" : "h-4 w-full mb-0.5", m = l === "xs" && "text-xs", g;
|
|
4294
|
+
r[11] !== s.className || r[12] !== p || r[13] !== m ? (g = n("shadow-xs-solid hover:shadow-sm-solid hover:focus-within:shadow-md-solid", "flex overflow-hidden rounded-sm border border-input bg-background text-sm font-code ring-offset-background", "disabled:cursor-not-allowed disabled:opacity-50 disabled:shadow-xs-solid", "focus-within:shadow-md-solid focus-within:outline-hidden focus-within:ring-1 focus-within:ring-ring focus-within:border-primary", p, m, s.className), r[11] = s.className, r[12] = p, r[13] = m, r[14] = g) : g = r[14];
|
|
4295
|
+
let _ = s.isDisabled, v;
|
|
4296
|
+
r[15] === a ? v = r[16] : (v = a ? (e) => a(e.currentTarget.value) : void 0, r[15] = a, r[16] = v);
|
|
4297
|
+
let y = l === "default" ? "px-1.5" : "px-1", b;
|
|
4298
|
+
r[17] === y ? b = r[18] : (b = n("flex-1", "w-full", "placeholder:text-muted-foreground", "outline-hidden", "disabled:cursor-not-allowed disabled:opacity-50", y), r[17] = y, r[18] = b);
|
|
4299
|
+
let S;
|
|
4300
|
+
r[19] !== o || r[20] !== s.isDisabled || r[21] !== t || r[22] !== b || r[23] !== v ? (S = /* @__PURE__ */ (0, z.jsx)(el, {
|
|
4301
|
+
ref: t,
|
|
4302
|
+
disabled: _,
|
|
4303
|
+
placeholder: o,
|
|
4304
|
+
onKeyDown: vl,
|
|
4305
|
+
onInput: v,
|
|
4306
|
+
className: b
|
|
4307
|
+
}), r[19] = o, r[20] = s.isDisabled, r[21] = t, r[22] = b, r[23] = v, r[24] = S) : S = r[24];
|
|
4308
|
+
let C = s.isDisabled, w = l === "xs" && "w-2 h-2", T;
|
|
4309
|
+
r[25] === w ? T = r[26] : (T = n("w-3 h-3 -mb-px", w), r[25] = w, r[26] = T);
|
|
4310
|
+
let E;
|
|
4311
|
+
r[27] === T ? E = r[28] : (E = /* @__PURE__ */ (0, z.jsx)(x, {
|
|
4312
|
+
"aria-hidden": !0,
|
|
4313
|
+
className: T
|
|
4314
|
+
}), r[27] = T, r[28] = E);
|
|
4315
|
+
let D;
|
|
4316
|
+
r[29] !== s.isDisabled || r[30] !== E || r[31] !== l ? (D = /* @__PURE__ */ (0, z.jsx)(_l, {
|
|
4317
|
+
slot: "increment",
|
|
4318
|
+
isDisabled: C,
|
|
4319
|
+
variant: l,
|
|
4320
|
+
excludeFromTabOrder: !0,
|
|
4321
|
+
children: E
|
|
4322
|
+
}), r[29] = s.isDisabled, r[30] = E, r[31] = l, r[32] = D) : D = r[32];
|
|
4323
|
+
let O;
|
|
4324
|
+
r[33] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ (0, z.jsx)("div", { className: "h-px shrink-0 divider bg-border z-10" }), r[33] = O) : O = r[33];
|
|
4325
|
+
let ee = s.isDisabled, k = l === "xs" && "w-2 h-2", A;
|
|
4326
|
+
r[34] === k ? A = r[35] : (A = n("w-3 h-3 -mt-px", k), r[34] = k, r[35] = A);
|
|
4327
|
+
let j;
|
|
4328
|
+
r[36] === A ? j = r[37] : (j = /* @__PURE__ */ (0, z.jsx)(h, {
|
|
4329
|
+
"aria-hidden": !0,
|
|
4330
|
+
className: A
|
|
4331
|
+
}), r[36] = A, r[37] = j);
|
|
4332
|
+
let M;
|
|
4333
|
+
r[38] !== s.isDisabled || r[39] !== j || r[40] !== l ? (M = /* @__PURE__ */ (0, z.jsx)(_l, {
|
|
4334
|
+
slot: "decrement",
|
|
4335
|
+
isDisabled: ee,
|
|
4336
|
+
variant: l,
|
|
4337
|
+
excludeFromTabOrder: !0,
|
|
4338
|
+
children: j
|
|
4339
|
+
}), r[38] = s.isDisabled, r[39] = j, r[40] = l, r[41] = M) : M = r[41];
|
|
4340
|
+
let N;
|
|
4341
|
+
r[42] !== D || r[43] !== M ? (N = /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
4342
|
+
className: "flex flex-col border-s-2",
|
|
4343
|
+
children: [
|
|
4344
|
+
D,
|
|
4345
|
+
O,
|
|
4346
|
+
M
|
|
4347
|
+
]
|
|
4348
|
+
}), r[42] = D, r[43] = M, r[44] = N) : N = r[44];
|
|
4349
|
+
let P;
|
|
4350
|
+
r[45] !== S || r[46] !== N || r[47] !== g ? (P = /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
4351
|
+
className: g,
|
|
4352
|
+
children: [S, N]
|
|
4353
|
+
}), r[45] = S, r[46] = N, r[47] = g, r[48] = P) : P = r[48];
|
|
4354
|
+
let F;
|
|
4355
|
+
return r[49] !== s || r[50] !== P || r[51] !== f ? (F = /* @__PURE__ */ (0, z.jsx)(ol, {
|
|
4356
|
+
...s,
|
|
4357
|
+
formatOptions: f,
|
|
4358
|
+
children: P
|
|
4359
|
+
}), r[49] = s, r[50] = P, r[51] = f, r[52] = F) : F = r[52], F;
|
|
4360
|
+
});
|
|
4361
|
+
gl.displayName = "NumberField";
|
|
4362
|
+
var _l = (e) => {
|
|
4363
|
+
let t = (0, $.c)(6), r = !e.isDisabled && "hover:text-primary hover:bg-muted", i = e.variant === "default" ? "px-0.5" : "px-0.25", a;
|
|
4364
|
+
t[0] !== r || t[1] !== i ? (a = n("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", r, i), t[0] = r, t[1] = i, t[2] = a) : a = t[2];
|
|
4365
|
+
let o;
|
|
4366
|
+
return t[3] !== e || t[4] !== a ? (o = /* @__PURE__ */ (0, z.jsx)(Vc, {
|
|
4367
|
+
...e,
|
|
4368
|
+
className: a
|
|
4369
|
+
}), t[3] = e, t[4] = a, t[5] = o) : o = t[5], o;
|
|
4370
|
+
};
|
|
4371
|
+
function vl(e) {
|
|
4372
|
+
(e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
|
|
4373
|
+
}
|
|
4374
|
+
//#endregion
|
|
4375
|
+
//#region src/components/ui/input.tsx
|
|
4376
|
+
var yl = /* @__PURE__ */ (0, z.jsx)(be, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), bl = R.forwardRef((e, t) => {
|
|
4377
|
+
let i = (0, $.c)(29), a, o, s, c;
|
|
4378
|
+
i[0] === e ? (a = i[1], o = i[2], s = i[3], c = i[4]) : ({className: a, type: c, endAdornment: o, ...s} = e, i[0] = e, i[1] = a, i[2] = o, i[3] = s, i[4] = c);
|
|
4379
|
+
let l = s.icon;
|
|
4380
|
+
if (c === "hidden") {
|
|
4381
|
+
let e;
|
|
4382
|
+
return i[5] !== s || i[6] !== t ? (e = /* @__PURE__ */ (0, z.jsx)("input", {
|
|
4383
|
+
type: "hidden",
|
|
4384
|
+
ref: t,
|
|
4385
|
+
...s
|
|
4386
|
+
}), i[5] = s, i[6] = t, i[7] = e) : e = i[7], e;
|
|
4387
|
+
}
|
|
4388
|
+
let u;
|
|
4389
|
+
i[8] === s.rootClassName ? u = i[9] : (u = n("relative", s.rootClassName), i[8] = s.rootClassName, i[9] = u);
|
|
4390
|
+
let d;
|
|
4391
|
+
i[10] === l ? d = i[11] : (d = l && /* @__PURE__ */ (0, z.jsx)("div", {
|
|
4392
|
+
className: "absolute inset-y-0 left-0 flex items-center pl-[6px] pointer-events-none text-muted-foreground",
|
|
4393
|
+
children: l
|
|
4394
|
+
}), i[10] = l, i[11] = d);
|
|
4395
|
+
let f = l && "pl-7", p = o && "pr-10", m;
|
|
4396
|
+
i[12] !== a || i[13] !== f || i[14] !== p ? (m = n("shadow-xs-solid hover:shadow-sm-solid disabled:shadow-xs-solid focus-visible:shadow-md-solid", "flex h-6 w-full mb-1 rounded-sm border border-input bg-background px-1.5 py-1 text-sm font-code ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50", f, p, a), i[12] = a, i[13] = f, i[14] = p, i[15] = m) : m = i[15];
|
|
4397
|
+
let h;
|
|
4398
|
+
i[16] === Symbol.for("react.memo_cache_sentinel") ? (h = r.stopPropagation(), i[16] = h) : h = i[16];
|
|
4399
|
+
let g;
|
|
4400
|
+
i[17] !== s || i[18] !== t || i[19] !== m || i[20] !== c ? (g = /* @__PURE__ */ (0, z.jsx)("input", {
|
|
4401
|
+
type: c,
|
|
4402
|
+
className: m,
|
|
4403
|
+
ref: t,
|
|
4404
|
+
onClick: h,
|
|
4405
|
+
...s
|
|
4406
|
+
}), i[17] = s, i[18] = t, i[19] = m, i[20] = c, i[21] = g) : g = i[21];
|
|
4407
|
+
let _;
|
|
4408
|
+
i[22] === o ? _ = i[23] : (_ = o && /* @__PURE__ */ (0, z.jsx)("div", {
|
|
4409
|
+
className: "absolute inset-y-0 right-0 flex items-center pr-[6px] text-muted-foreground h-6",
|
|
4410
|
+
children: o
|
|
4411
|
+
}), i[22] = o, i[23] = _);
|
|
4412
|
+
let v;
|
|
4413
|
+
return i[24] !== u || i[25] !== d || i[26] !== g || i[27] !== _ ? (v = /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
4414
|
+
className: u,
|
|
4415
|
+
children: [
|
|
4416
|
+
d,
|
|
4417
|
+
g,
|
|
4418
|
+
_
|
|
4419
|
+
]
|
|
4420
|
+
}), i[24] = u, i[25] = d, i[26] = g, i[27] = _, i[28] = v) : v = i[28], v;
|
|
4421
|
+
});
|
|
4422
|
+
bl.displayName = "Input";
|
|
4423
|
+
var xl = R.forwardRef((e, t) => {
|
|
4424
|
+
let n = (0, $.c)(16), r, i, a;
|
|
4425
|
+
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);
|
|
4426
|
+
let o;
|
|
4427
|
+
n[4] !== i || n[5] !== a.delay || n[6] !== a.value ? (o = {
|
|
4428
|
+
initialValue: a.value,
|
|
4429
|
+
delay: a.delay,
|
|
4430
|
+
onChange: i
|
|
4431
|
+
}, n[4] = i, n[5] = a.delay, n[6] = a.value, n[7] = o) : o = n[7];
|
|
4432
|
+
let { value: s, onChange: c } = wc(o), l;
|
|
4433
|
+
n[8] === c ? l = n[9] : (l = (e) => c(e.target.value), n[8] = c, n[9] = l);
|
|
4434
|
+
let u;
|
|
4435
|
+
return n[10] !== r || n[11] !== a || n[12] !== t || n[13] !== l || n[14] !== s ? (u = /* @__PURE__ */ (0, z.jsx)(bl, {
|
|
4436
|
+
ref: t,
|
|
4437
|
+
className: r,
|
|
4438
|
+
...a,
|
|
4439
|
+
onChange: l,
|
|
4440
|
+
value: s
|
|
4441
|
+
}), n[10] = r, n[11] = a, n[12] = t, n[13] = l, n[14] = s, n[15] = u) : u = n[15], u;
|
|
4442
|
+
});
|
|
4443
|
+
xl.displayName = "DebouncedInput";
|
|
4444
|
+
var Sl = R.forwardRef((e, t) => {
|
|
4445
|
+
let n = (0, $.c)(13), r, i, a;
|
|
4446
|
+
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);
|
|
4447
|
+
let o;
|
|
4448
|
+
n[4] !== i || n[5] !== a.value ? (o = {
|
|
4449
|
+
initialValue: a.value,
|
|
4450
|
+
delay: 200,
|
|
4451
|
+
onChange: i
|
|
4452
|
+
}, n[4] = i, n[5] = a.value, n[6] = o) : o = n[6];
|
|
4453
|
+
let { value: s, onChange: c } = wc(o), l;
|
|
4454
|
+
return n[7] !== r || n[8] !== c || n[9] !== a || n[10] !== t || n[11] !== s ? (l = /* @__PURE__ */ (0, z.jsx)(gl, {
|
|
4455
|
+
ref: t,
|
|
4456
|
+
className: r,
|
|
4457
|
+
...a,
|
|
4458
|
+
onChange: c,
|
|
4459
|
+
value: s
|
|
4460
|
+
}), n[7] = r, n[8] = c, n[9] = a, n[10] = t, n[11] = s, n[12] = l) : l = n[12], l;
|
|
4461
|
+
});
|
|
4462
|
+
Sl.displayName = "DebouncedNumberInput";
|
|
4463
|
+
var Cl = R.forwardRef((e, t) => {
|
|
4464
|
+
let r = (0, $.c)(24), i, a, o, s, c;
|
|
4465
|
+
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5]) : ({className: i, rootClassName: o, icon: s, clearable: c, ...a} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = c);
|
|
4466
|
+
let l = s === void 0 ? yl : s, u = c === void 0 || c, d = R.useId(), f = a.id || d, p;
|
|
4467
|
+
r[6] === o ? p = r[7] : (p = n("flex items-center border-b px-3", o), r[6] = o, r[7] = p);
|
|
4468
|
+
let h;
|
|
4469
|
+
r[8] === i ? h = r[9] : (h = n("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", i), r[8] = i, r[9] = h);
|
|
4470
|
+
let g;
|
|
4471
|
+
r[10] !== f || r[11] !== a || r[12] !== t || r[13] !== h ? (g = /* @__PURE__ */ (0, z.jsx)("input", {
|
|
4472
|
+
id: f,
|
|
4473
|
+
ref: t,
|
|
4474
|
+
className: h,
|
|
4475
|
+
...a
|
|
4476
|
+
}), r[10] = f, r[11] = a, r[12] = t, r[13] = h, r[14] = g) : g = r[14];
|
|
4477
|
+
let _;
|
|
4478
|
+
r[15] !== u || r[16] !== f || r[17] !== a ? (_ = u && a.value && /* @__PURE__ */ (0, z.jsx)("span", {
|
|
4479
|
+
onPointerDown: (e) => {
|
|
4480
|
+
e.preventDefault(), e.stopPropagation();
|
|
4481
|
+
let t = document.getElementById(f);
|
|
4482
|
+
t && t instanceof HTMLInputElement && (t.focus(), t.value = "", a.onChange?.({
|
|
4483
|
+
...e,
|
|
4484
|
+
target: t,
|
|
4485
|
+
currentTarget: t,
|
|
4486
|
+
type: "change"
|
|
4487
|
+
}));
|
|
4488
|
+
},
|
|
4489
|
+
children: /* @__PURE__ */ (0, z.jsx)(m, { className: "h-4 w-4 opacity-50 hover:opacity-90 cursor-pointer" })
|
|
4490
|
+
}), r[15] = u, r[16] = f, r[17] = a, r[18] = _) : _ = r[18];
|
|
4491
|
+
let v;
|
|
4492
|
+
return r[19] !== l || r[20] !== p || r[21] !== g || r[22] !== _ ? (v = /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
4493
|
+
className: p,
|
|
4494
|
+
children: [
|
|
4495
|
+
l,
|
|
4496
|
+
g,
|
|
4497
|
+
_
|
|
4498
|
+
]
|
|
4499
|
+
}), r[19] = l, r[20] = p, r[21] = g, r[22] = _, r[23] = v) : v = r[23], v;
|
|
4500
|
+
});
|
|
4501
|
+
Cl.displayName = "SearchInput";
|
|
4502
|
+
var wl = R.forwardRef((e, t) => {
|
|
4503
|
+
let n = (0, $.c)(23), r, i, a;
|
|
4504
|
+
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);
|
|
4505
|
+
let [o, s] = R.useState(a.value), c;
|
|
4506
|
+
n[4] !== o || n[5] !== i || n[6] !== a.value ? (c = {
|
|
4507
|
+
prop: a.value,
|
|
4508
|
+
defaultProp: o,
|
|
4509
|
+
onChange: i
|
|
4510
|
+
}, n[4] = o, n[5] = i, n[6] = a.value, n[7] = c) : c = n[7];
|
|
4511
|
+
let [l, u] = te(c), d, f;
|
|
4512
|
+
n[8] === l ? (d = n[9], f = n[10]) : (d = () => {
|
|
4513
|
+
s(l || "");
|
|
4514
|
+
}, f = [l], n[8] = l, n[9] = d, n[10] = f), R.useEffect(d, f);
|
|
4515
|
+
let p;
|
|
4516
|
+
n[11] === Symbol.for("react.memo_cache_sentinel") ? (p = (e) => s(e.target.value), n[11] = p) : p = n[11];
|
|
4517
|
+
let m, h;
|
|
4518
|
+
n[12] !== o || n[13] !== u ? (m = () => u(o || ""), h = (e) => {
|
|
4519
|
+
e.key !== "Enter" || e.shiftKey || u(o || "");
|
|
4520
|
+
}, n[12] = o, n[13] = u, n[14] = m, n[15] = h) : (m = n[14], h = n[15]);
|
|
4521
|
+
let g;
|
|
4522
|
+
return n[16] !== r || n[17] !== o || n[18] !== a || n[19] !== t || n[20] !== m || n[21] !== h ? (g = /* @__PURE__ */ (0, z.jsx)(bl, {
|
|
4523
|
+
ref: t,
|
|
4524
|
+
className: r,
|
|
4525
|
+
...a,
|
|
4526
|
+
value: o,
|
|
4527
|
+
onChange: p,
|
|
4528
|
+
onBlur: m,
|
|
4529
|
+
onKeyDown: h
|
|
4530
|
+
}), 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;
|
|
4531
|
+
});
|
|
4532
|
+
wl.displayName = "OnBlurredInput";
|
|
4533
|
+
//#endregion
|
|
4534
|
+
//#region src/components/ui/dropdown-menu.tsx
|
|
4535
|
+
var Tl = Jn, El = Yn, Dl = Qn, Ol = F(Xn), kl = P(Zn), Al = P(sr), jl = ar, Ml = R.forwardRef((e, t) => {
|
|
4536
|
+
let n = (0, $.c)(17), r, i, a, o, s;
|
|
4537
|
+
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);
|
|
4538
|
+
let c = s === void 0 || s, l;
|
|
4539
|
+
n[6] !== i || n[7] !== a ? (l = E({
|
|
4540
|
+
className: i,
|
|
4541
|
+
inset: a
|
|
4542
|
+
}), n[6] = i, n[7] = a, n[8] = l) : l = n[8];
|
|
4543
|
+
let u;
|
|
4544
|
+
n[9] === c ? u = n[10] : (u = c && /* @__PURE__ */ (0, z.jsx)(ve, { className: "ml-auto h-4 w-4" }), n[9] = c, n[10] = u);
|
|
4545
|
+
let d;
|
|
4546
|
+
return n[11] !== r || n[12] !== o || n[13] !== t || n[14] !== l || n[15] !== u ? (d = /* @__PURE__ */ (0, z.jsxs)(or, {
|
|
4547
|
+
ref: t,
|
|
4548
|
+
className: l,
|
|
4549
|
+
...o,
|
|
4550
|
+
children: [r, u]
|
|
4551
|
+
}), n[11] = r, n[12] = o, n[13] = t, n[14] = l, n[15] = u, n[16] = d) : d = n[16], d;
|
|
4552
|
+
});
|
|
4553
|
+
Ml.displayName = or.displayName;
|
|
4554
|
+
var Nl = R.forwardRef((e, t) => {
|
|
4555
|
+
let r = (0, $.c)(9), i, a;
|
|
4556
|
+
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
4557
|
+
let o;
|
|
4558
|
+
r[3] === i ? o = r[4] : (o = n(w({ 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), r[3] = i, r[4] = o);
|
|
4559
|
+
let s;
|
|
4560
|
+
return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0, z.jsx)(Al, {
|
|
4561
|
+
ref: t,
|
|
4562
|
+
className: o,
|
|
4563
|
+
...a
|
|
4564
|
+
}), r[5] = a, r[6] = t, r[7] = o, r[8] = s) : s = r[8], s;
|
|
4565
|
+
});
|
|
4566
|
+
Nl.displayName = sr.displayName;
|
|
4567
|
+
var Pl = R.forwardRef((e, t) => {
|
|
4568
|
+
let r = (0, $.c)(17), i, a, o, s;
|
|
4569
|
+
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4]) : ({className: i, scrollable: o, sideOffset: s, ...a} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s);
|
|
4570
|
+
let c = o === void 0 || o, l = s === void 0 ? 4 : s, u;
|
|
4571
|
+
r[5] !== i || r[6] !== c ? (u = n(w(), "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), r[5] = i, r[6] = c, r[7] = u) : u = r[7];
|
|
4572
|
+
let d = c ? `calc(var(--radix-dropdown-menu-content-available-height) - ${A}px)` : void 0, f;
|
|
4573
|
+
r[8] !== a.style || r[9] !== d ? (f = {
|
|
4574
|
+
...a.style,
|
|
4575
|
+
maxHeight: d
|
|
4576
|
+
}, r[8] = a.style, r[9] = d, r[10] = f) : f = r[10];
|
|
4577
|
+
let p;
|
|
4578
|
+
return r[11] !== a || r[12] !== t || r[13] !== l || r[14] !== u || r[15] !== f ? (p = /* @__PURE__ */ (0, z.jsx)(Ol, { children: /* @__PURE__ */ (0, z.jsx)(j, { children: /* @__PURE__ */ (0, z.jsx)(kl, {
|
|
4579
|
+
ref: t,
|
|
4580
|
+
sideOffset: l,
|
|
4581
|
+
className: u,
|
|
4582
|
+
style: f,
|
|
4583
|
+
...a
|
|
4584
|
+
}) }) }), r[11] = a, r[12] = t, r[13] = l, r[14] = u, r[15] = f, r[16] = p) : p = r[16], p;
|
|
4585
|
+
});
|
|
4586
|
+
Pl.displayName = Zn.displayName;
|
|
4587
|
+
var Fl = R.forwardRef((e, t) => {
|
|
4588
|
+
let n = (0, $.c)(13), r, i, a, o;
|
|
4589
|
+
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);
|
|
4590
|
+
let s;
|
|
4591
|
+
n[5] !== r || n[6] !== i || n[7] !== o ? (s = y({
|
|
4592
|
+
className: r,
|
|
4593
|
+
inset: i,
|
|
4594
|
+
variant: o
|
|
4595
|
+
}), n[5] = r, n[6] = i, n[7] = o, n[8] = s) : s = n[8];
|
|
4596
|
+
let c;
|
|
4597
|
+
return n[9] !== a || n[10] !== t || n[11] !== s ? (c = /* @__PURE__ */ (0, z.jsx)(er, {
|
|
4598
|
+
ref: t,
|
|
4599
|
+
className: s,
|
|
4600
|
+
...a
|
|
4601
|
+
}), n[9] = a, n[10] = t, n[11] = s, n[12] = c) : c = n[12], c;
|
|
4602
|
+
});
|
|
4603
|
+
Fl.displayName = er.displayName;
|
|
4604
|
+
var Il = R.forwardRef((e, t) => {
|
|
4605
|
+
let n = (0, $.c)(15), r, i, a, o;
|
|
4606
|
+
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);
|
|
4607
|
+
let s;
|
|
4608
|
+
n[5] === a ? s = n[6] : (s = b({ className: a }), n[5] = a, n[6] = s);
|
|
4609
|
+
let c;
|
|
4610
|
+
n[7] === Symbol.for("react.memo_cache_sentinel") ? (c = C(), n[7] = c) : c = n[7];
|
|
4611
|
+
let l;
|
|
4612
|
+
n[8] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, z.jsx)("span", {
|
|
4613
|
+
className: c,
|
|
4614
|
+
children: /* @__PURE__ */ (0, z.jsx)(rr, { children: /* @__PURE__ */ (0, z.jsx)(p, { className: "h-4 w-4" }) })
|
|
4615
|
+
}), n[8] = l) : l = n[8];
|
|
4616
|
+
let u;
|
|
4617
|
+
return n[9] !== r || n[10] !== i || n[11] !== o || n[12] !== t || n[13] !== s ? (u = /* @__PURE__ */ (0, z.jsxs)(tr, {
|
|
4618
|
+
ref: t,
|
|
4619
|
+
className: s,
|
|
4620
|
+
checked: r,
|
|
4621
|
+
...o,
|
|
4622
|
+
children: [l, i]
|
|
4623
|
+
}), n[9] = r, n[10] = i, n[11] = o, n[12] = t, n[13] = s, n[14] = u) : u = n[14], u;
|
|
4624
|
+
});
|
|
4625
|
+
Il.displayName = tr.displayName;
|
|
4626
|
+
var Ll = R.forwardRef((e, t) => {
|
|
4627
|
+
let n = (0, $.c)(13), r, i, a;
|
|
4628
|
+
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);
|
|
4629
|
+
let o;
|
|
4630
|
+
n[4] === i ? o = n[5] : (o = b({ className: i }), n[4] = i, n[5] = o);
|
|
4631
|
+
let s;
|
|
4632
|
+
n[6] === Symbol.for("react.memo_cache_sentinel") ? (s = C(), n[6] = s) : s = n[6];
|
|
4633
|
+
let c;
|
|
4634
|
+
n[7] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, z.jsx)("span", {
|
|
4635
|
+
className: s,
|
|
4636
|
+
children: /* @__PURE__ */ (0, z.jsx)(rr, { children: /* @__PURE__ */ (0, z.jsx)(ye, { className: "h-2 w-2 fill-current" }) })
|
|
4637
|
+
}), n[7] = c) : c = n[7];
|
|
4638
|
+
let l;
|
|
4639
|
+
return n[8] !== r || n[9] !== a || n[10] !== t || n[11] !== o ? (l = /* @__PURE__ */ (0, z.jsxs)(nr, {
|
|
4640
|
+
ref: t,
|
|
4641
|
+
className: o,
|
|
4642
|
+
...a,
|
|
4643
|
+
children: [c, r]
|
|
4644
|
+
}), n[8] = r, n[9] = a, n[10] = t, n[11] = o, n[12] = l) : l = n[12], l;
|
|
4645
|
+
});
|
|
4646
|
+
Ll.displayName = nr.displayName;
|
|
4647
|
+
var Rl = R.forwardRef((e, t) => {
|
|
4648
|
+
let n = (0, $.c)(11), r, i, a;
|
|
4649
|
+
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);
|
|
4650
|
+
let o;
|
|
4651
|
+
n[4] !== r || n[5] !== i ? (o = _({
|
|
4652
|
+
className: r,
|
|
4653
|
+
inset: i
|
|
4654
|
+
}), n[4] = r, n[5] = i, n[6] = o) : o = n[6];
|
|
4655
|
+
let s;
|
|
4656
|
+
return n[7] !== a || n[8] !== t || n[9] !== o ? (s = /* @__PURE__ */ (0, z.jsx)($n, {
|
|
4657
|
+
ref: t,
|
|
4658
|
+
className: o,
|
|
4659
|
+
...a
|
|
4660
|
+
}), n[7] = a, n[8] = t, n[9] = o, n[10] = s) : s = n[10], s;
|
|
4661
|
+
});
|
|
4662
|
+
Rl.displayName = $n.displayName;
|
|
4663
|
+
var zl = R.forwardRef((e, t) => {
|
|
4664
|
+
let n = (0, $.c)(9), r, i;
|
|
4665
|
+
n[0] === e ? (r = n[1], i = n[2]) : ({className: r, ...i} = e, n[0] = e, n[1] = r, n[2] = i);
|
|
4666
|
+
let a;
|
|
4667
|
+
n[3] === r ? a = n[4] : (a = T({ className: r }), n[3] = r, n[4] = a);
|
|
4668
|
+
let o;
|
|
4669
|
+
return n[5] !== i || n[6] !== t || n[7] !== a ? (o = /* @__PURE__ */ (0, z.jsx)(ir, {
|
|
4670
|
+
ref: t,
|
|
4671
|
+
className: a,
|
|
4672
|
+
...i
|
|
4673
|
+
}), n[5] = i, n[6] = t, n[7] = a, n[8] = o) : o = n[8], o;
|
|
4674
|
+
});
|
|
4675
|
+
zl.displayName = ir.displayName;
|
|
4676
|
+
var Bl = v;
|
|
4677
|
+
//#endregion
|
|
4678
|
+
export { Oo as $, mn as $t, Kc as A, Ti as At, Mc as B, Sr as Bt, ul as C, ea as Ct, Xc as D, Pi as Dt, Zc as E, X as Et, Lc as F, Wr as Ft, Ac as G, vr as Gt, Ec as H, xr as Ht, Rc as I, Y as It, Sc as J, G as Jt, wc as K, gr as Kt, Dc as L, Ar as Lt, Wc as M, Kr as Mt, Bc as N, Gr as Nt, Yc as O, Mi as Ot, Vc as P, qr as Pt, ko as Q, vn as Qt, jc as R, jr as Rt, pl as S, aa as St, el as T, Zi as Tt, Ic as U, J as Ut, kc as V, q as Vt, Nc as W, br as Wt, fc as X, cr as Xt, gc as Y, _r as Yt, Po as Z, fn as Zt, gl as _, ye as _n, ya as _t, Rl as a, yn as an, mo as at, hl as b, ca as bt, Bl as c, Sn as cn, oo as ct, Ml as d, wn as dn, Ka as dt, hn as en, Eo as et, El as f, ut as fn, za as ft, wl as g, be as gn, Ca as gt, bl as h, Re as hn, Sa as ht, Fl as i, pn as in, fo as it, Gc as j, hi as jt, qc as k, Ei as kt, jl as l, Cn as ln, ro as lt, Sl as m, Xe as mn, Aa as mt, Pl as n, xn as nn, Co as nt, Ol as o, bn as on, _o as ot, xl as p, Ze as pn, Ra as pt, Tc as q, W as qt, Dl as r, gn as rn, go as rt, zl as s, dn as sn, so as st, Tl as t, _n as tn, To as tt, Nl as u, Tn as un, eo as ut, ll as v, ve as vn, pa as vt, Qc as w, Qi as wt, dl as x, Z as xt, sl as y, la as yt, Oc as z, K as zt };
|