@marimo-team/islands 0.24.1-dev79 → 0.24.1-dev80
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/{chat-ui-DM12Y9is.js → chat-ui-Dcb8pQhM.js} +8 -8
- package/dist/click-outside-container-D_URcm3D.js +167 -0
- package/dist/{common-DuuFqqGa.js → common-C8LWIius.js} +571 -571
- package/dist/{data-grid-overlay-editor-D-p0q7YM.js → data-grid-overlay-editor-DZM4BAaI.js} +49 -48
- package/dist/{click-outside-container-CVJZE0x6.js → data-grid-types-BnZwWG8z.js} +150 -312
- package/dist/{dropdown-menu-C8N-kZzD.js → dropdown-menu-B39I9ARA.js} +20 -31
- package/dist/{glide-data-editor-64-L_DON.js → glide-data-editor-DEJqXbly.js} +2598 -2780
- package/dist/glide-utils-C0dRuWI_.js +201 -0
- package/dist/{html-to-image-B7RQgQQy.js → html-to-image-CvCnIqTI.js} +4476 -4465
- package/dist/main.js +5971 -5913
- package/dist/{process-output-BCqcNNll.js → process-output-C2joqP7d.js} +1 -1
- package/dist/{reveal-component-BDQwrD89.js → reveal-component-CdEcs6WV.js} +3 -3
- package/package.json +1 -1
- package/src/plugins/impl/DataEditorPlugin.tsx +38 -70
- package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +152 -1
- package/src/plugins/impl/data-editor/__tests__/data-utils.test.ts +73 -78
- package/src/plugins/impl/data-editor/__tests__/editor-state.test.ts +113 -0
- package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +49 -13
- package/src/plugins/impl/data-editor/__tests__/glide-utils.test.ts +44 -64
- package/src/plugins/impl/data-editor/data-utils.ts +76 -53
- package/src/plugins/impl/data-editor/editor-state.ts +108 -0
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +40 -223
- package/src/plugins/impl/data-editor/glide-utils.ts +71 -31
- package/src/plugins/impl/data-editor/types.ts +30 -16
- package/dist/types-eyYyHvz7.js +0 -72
|
@@ -3,13 +3,13 @@ import { _ as n, f as r, g as i, h as a, m as o, n as s, p as c, r as l, t as u
|
|
|
3
3
|
import { t as d } from "./react-DMWcHin-.js";
|
|
4
4
|
import { t as f } from "./compiler-runtime-CAH9RLw2.js";
|
|
5
5
|
import { n as p, r as m, t as h } from "./copy-D9h0DuU7.js";
|
|
6
|
-
import { $n as g, A as _, D as v, E as y, En as b, Et as x, F as S, Gn as C, Gt as w, H as T, Hn as E, In as D, Jn as O, Jt as k, K as A, Kn as j, Ln as M, Lt as N, M as P, N as F, Nt as I, On as L, Ot as R, Q as
|
|
6
|
+
import { $n as g, A as _, D as v, E as y, En as b, Et as x, F as S, Gn as C, Gt as w, H as T, Hn as E, In as D, Jn as O, Jt as k, K as A, Kn as j, Ln as M, Lt as N, M as P, N as F, Nt as I, On as L, Ot as R, Q as z, Rt as B, S as ee, T as te, Tn as ne, Tt as re, Un as ie, V as ae, Vn as oe, Vt as se, X as ce, Yt as le, Z as ue, Zn as de, _ as fe, _n as pe, bt as me, dt as he, er as ge, ft as _e, g as ve, gt as ye, ht as be, jn as xe, mt as Se, n as Ce, nt as we, ot as Te, pn as Ee, pt as De, qn as Oe, qt as ke, r as Ae, rn as je, rt as Me, s as Ne, t as Pe, tn as Fe, tr as Ie, u as Le, ut as Re, v as ze, vn as Be, w as Ve, wn as He, wt as Ue, y as We, zn as Ge, zt as Ke } from "./html-to-image-CvCnIqTI.js";
|
|
7
7
|
import { o as qe, u as V } from "./dist-wdOJ5T7-.js";
|
|
8
8
|
import { c as Je, i as Ye, r as Xe } from "./useLifecycle-hEcsyQ2P.js";
|
|
9
9
|
import { a as Ze, i as Qe, n as $e, o as et, r as tt, t as nt } from "./useDateFormatter-CcY1uXEk.js";
|
|
10
10
|
import { t as rt } from "./check-BcJDmQdF.js";
|
|
11
11
|
import { C as it, E as at, I as ot, N as st, O as ct, P as lt, R as ut, S as dt, T as ft, _ as pt, b as mt, c as ht, d as gt, g as _t, h as vt, i as yt, m as bt, n as xt, p as St, s as Ct, t as wt, u as Tt, v as Et, w as Dt, y as Ot } from "./select-DQ9jU_B_.js";
|
|
12
|
-
import { $ as kt, $t as At, A as jt, At as Mt, B as Nt, Bt as Pt,
|
|
12
|
+
import { $ as kt, $t as At, A as jt, At as Mt, B as Nt, Bt as Pt, Ct as Ft, D as It, Dt as Lt, E as Rt, Et as zt, F as Bt, Ft as Vt, G as Ht, Gt as Ut, H as Wt, Ht as Gt, I as Kt, It as qt, Jt, K as Yt, Kt as Xt, L as Zt, Lt as Qt, M as $t, Mt as en, N as tn, Nt as nn, O as rn, Ot as an, P as on, Pt as sn, Q as cn, Qt as ln, R as un, Rt as dn, S as fn, St as pn, T as mn, Tt as hn, U as gn, Ut as _n, V as vn, Vt as yn, W as bn, Wt as xn, X as Sn, Xt as Cn, Yt as wn, Z as Tn, Zt as En, _ as Dn, _t as On, a as kn, an as An, at as jn, b as Mn, bt as Nn, cn as Pn, ct as Fn, d as In, dn as Ln, dt as Rn, en as zn, et as Bn, f as Vn, fn as Hn, ft as Un, gt as Wn, h as Gn, hn as Kn, ht as qn, i as Jn, in as Yn, it as Xn, j as Zn, jt as Qn, k as $n, kt as er, l as tr, ln as nr, lt as rr, mn as ir, mt as ar, n as or, nn as sr, nt as cr, o as lr, pn as ur, pt as dr, q as fr, qt as pr, rn as mr, rt as hr, s as gr, sn as _r, st as vr, t as yr, tn as br, tt as xr, u as Sr, un as Cr, ut as wr, vt as Tr, w as Er, wt as Dr, x as Or, xt as kr, y as Ar, yt as jr, z as Mr, zt as Nr } from "./dropdown-menu-B39I9ARA.js";
|
|
13
13
|
import { a as Pr, c as Fr, d as Ir, g as Lr, i as Rr, n as zr, o as Br, p as Vr, r as Hr, s as Ur, t as Wr } from "./toDate-BfSgxzgl.js";
|
|
14
14
|
import { n as Gr, t as Kr } from "./ErrorBoundary-CTvsyaid.js";
|
|
15
15
|
import { t as qr } from "./clsx-CoeGtWvn.js";
|
|
@@ -652,7 +652,7 @@ var ca = V("arrow-down-wide-narrow", [
|
|
|
652
652
|
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? f : t.useSyncExternalStore;
|
|
653
653
|
})), Wa = /* @__PURE__ */ t(((e, t) => {
|
|
654
654
|
t.exports = Ua();
|
|
655
|
-
})), H = /* @__PURE__ */ e(d(), 1), U = Yr(), Ga = "ContextMenu", [Ka, qa] = ei(Ga, [
|
|
655
|
+
})), H = /* @__PURE__ */ e(d(), 1), U = Yr(), Ga = "ContextMenu", [Ka, qa] = ei(Ga, [nr]), Ja = nr(), [Ya, Xa] = Ka(Ga), Za = (e) => {
|
|
656
656
|
let { __scopeContextMenu: t, children: n, onOpenChange: r, dir: i, modal: a = !0 } = e, [o, s] = H.useState(!1), c = Ja(t), l = oi(r), u = H.useCallback((e) => {
|
|
657
657
|
s(e), l(e);
|
|
658
658
|
}, [l]);
|
|
@@ -661,7 +661,7 @@ var ca = V("arrow-down-wide-narrow", [
|
|
|
661
661
|
open: o,
|
|
662
662
|
onOpenChange: u,
|
|
663
663
|
modal: a,
|
|
664
|
-
children: /* @__PURE__ */ (0, U.jsx)(
|
|
664
|
+
children: /* @__PURE__ */ (0, U.jsx)(Yn, {
|
|
665
665
|
...c,
|
|
666
666
|
dir: i,
|
|
667
667
|
open: o,
|
|
@@ -686,7 +686,7 @@ var Qa = "ContextMenuTrigger", $a = H.forwardRef((e, t) => {
|
|
|
686
686
|
y: e.clientY
|
|
687
687
|
}, a.onOpenChange(!0);
|
|
688
688
|
};
|
|
689
|
-
return H.useEffect(() => u, [u]), H.useEffect(() => void (r && u()), [r, u]), /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(
|
|
689
|
+
return H.useEffect(() => u, [u]), H.useEffect(() => void (r && u()), [r, u]), /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(pr, {
|
|
690
690
|
...o,
|
|
691
691
|
virtualRef: c
|
|
692
692
|
}), /* @__PURE__ */ (0, U.jsx)(ii.span, {
|
|
@@ -712,7 +712,7 @@ var Qa = "ContextMenuTrigger", $a = H.forwardRef((e, t) => {
|
|
|
712
712
|
$a.displayName = Qa;
|
|
713
713
|
var eo = "ContextMenuPortal", to = (e) => {
|
|
714
714
|
let { __scopeContextMenu: t, ...n } = e, r = Ja(t);
|
|
715
|
-
return /* @__PURE__ */ (0, U.jsx)(
|
|
715
|
+
return /* @__PURE__ */ (0, U.jsx)(br, {
|
|
716
716
|
...r,
|
|
717
717
|
...n
|
|
718
718
|
});
|
|
@@ -720,7 +720,7 @@ var eo = "ContextMenuPortal", to = (e) => {
|
|
|
720
720
|
to.displayName = eo;
|
|
721
721
|
var no = "ContextMenuContent", ro = H.forwardRef((e, t) => {
|
|
722
722
|
let { __scopeContextMenu: n, ...r } = e, i = Xa(no, n), a = Ja(n), o = H.useRef(!1);
|
|
723
|
-
return /* @__PURE__ */ (0, U.jsx)(
|
|
723
|
+
return /* @__PURE__ */ (0, U.jsx)(Cn, {
|
|
724
724
|
...a,
|
|
725
725
|
...r,
|
|
726
726
|
ref: t,
|
|
@@ -746,7 +746,7 @@ var no = "ContextMenuContent", ro = H.forwardRef((e, t) => {
|
|
|
746
746
|
ro.displayName = no;
|
|
747
747
|
var io = "ContextMenuGroup", ao = H.forwardRef((e, t) => {
|
|
748
748
|
let { __scopeContextMenu: n, ...r } = e, i = Ja(n);
|
|
749
|
-
return /* @__PURE__ */ (0, U.jsx)(
|
|
749
|
+
return /* @__PURE__ */ (0, U.jsx)(En, {
|
|
750
750
|
...i,
|
|
751
751
|
...r,
|
|
752
752
|
ref: t
|
|
@@ -755,7 +755,7 @@ var io = "ContextMenuGroup", ao = H.forwardRef((e, t) => {
|
|
|
755
755
|
ao.displayName = io;
|
|
756
756
|
var oo = "ContextMenuLabel", so = H.forwardRef((e, t) => {
|
|
757
757
|
let { __scopeContextMenu: n, ...r } = e, i = Ja(n);
|
|
758
|
-
return /* @__PURE__ */ (0, U.jsx)(
|
|
758
|
+
return /* @__PURE__ */ (0, U.jsx)(zn, {
|
|
759
759
|
...i,
|
|
760
760
|
...r,
|
|
761
761
|
ref: t
|
|
@@ -764,7 +764,7 @@ var oo = "ContextMenuLabel", so = H.forwardRef((e, t) => {
|
|
|
764
764
|
so.displayName = oo;
|
|
765
765
|
var co = "ContextMenuItem", lo = H.forwardRef((e, t) => {
|
|
766
766
|
let { __scopeContextMenu: n, ...r } = e, i = Ja(n);
|
|
767
|
-
return /* @__PURE__ */ (0, U.jsx)(
|
|
767
|
+
return /* @__PURE__ */ (0, U.jsx)(ln, {
|
|
768
768
|
...i,
|
|
769
769
|
...r,
|
|
770
770
|
ref: t
|
|
@@ -782,7 +782,7 @@ var uo = "ContextMenuCheckboxItem", fo = H.forwardRef((e, t) => {
|
|
|
782
782
|
fo.displayName = uo;
|
|
783
783
|
var po = "ContextMenuRadioGroup", mo = H.forwardRef((e, t) => {
|
|
784
784
|
let { __scopeContextMenu: n, ...r } = e, i = Ja(n);
|
|
785
|
-
return /* @__PURE__ */ (0, U.jsx)(
|
|
785
|
+
return /* @__PURE__ */ (0, U.jsx)(sr, {
|
|
786
786
|
...i,
|
|
787
787
|
...r,
|
|
788
788
|
ref: t
|
|
@@ -791,7 +791,7 @@ var po = "ContextMenuRadioGroup", mo = H.forwardRef((e, t) => {
|
|
|
791
791
|
mo.displayName = po;
|
|
792
792
|
var ho = "ContextMenuRadioItem", go = H.forwardRef((e, t) => {
|
|
793
793
|
let { __scopeContextMenu: n, ...r } = e, i = Ja(n);
|
|
794
|
-
return /* @__PURE__ */ (0, U.jsx)(
|
|
794
|
+
return /* @__PURE__ */ (0, U.jsx)(mr, {
|
|
795
795
|
...i,
|
|
796
796
|
...r,
|
|
797
797
|
ref: t
|
|
@@ -800,7 +800,7 @@ var ho = "ContextMenuRadioItem", go = H.forwardRef((e, t) => {
|
|
|
800
800
|
go.displayName = ho;
|
|
801
801
|
var _o = "ContextMenuItemIndicator", vo = H.forwardRef((e, t) => {
|
|
802
802
|
let { __scopeContextMenu: n, ...r } = e, i = Ja(n);
|
|
803
|
-
return /* @__PURE__ */ (0, U.jsx)(
|
|
803
|
+
return /* @__PURE__ */ (0, U.jsx)(At, {
|
|
804
804
|
...i,
|
|
805
805
|
...r,
|
|
806
806
|
ref: t
|
|
@@ -809,7 +809,7 @@ var _o = "ContextMenuItemIndicator", vo = H.forwardRef((e, t) => {
|
|
|
809
809
|
vo.displayName = _o;
|
|
810
810
|
var yo = "ContextMenuSeparator", bo = H.forwardRef((e, t) => {
|
|
811
811
|
let { __scopeContextMenu: n, ...r } = e, i = Ja(n);
|
|
812
|
-
return /* @__PURE__ */ (0, U.jsx)(
|
|
812
|
+
return /* @__PURE__ */ (0, U.jsx)(An, {
|
|
813
813
|
...i,
|
|
814
814
|
...r,
|
|
815
815
|
ref: t
|
|
@@ -818,7 +818,7 @@ var yo = "ContextMenuSeparator", bo = H.forwardRef((e, t) => {
|
|
|
818
818
|
bo.displayName = yo;
|
|
819
819
|
var xo = "ContextMenuArrow", So = H.forwardRef((e, t) => {
|
|
820
820
|
let { __scopeContextMenu: n, ...r } = e, i = Ja(n);
|
|
821
|
-
return /* @__PURE__ */ (0, U.jsx)(
|
|
821
|
+
return /* @__PURE__ */ (0, U.jsx)(Jt, {
|
|
822
822
|
...i,
|
|
823
823
|
...r,
|
|
824
824
|
ref: t
|
|
@@ -827,7 +827,7 @@ var xo = "ContextMenuArrow", So = H.forwardRef((e, t) => {
|
|
|
827
827
|
So.displayName = xo;
|
|
828
828
|
var Co = "ContextMenuSubTrigger", wo = H.forwardRef((e, t) => {
|
|
829
829
|
let { __scopeContextMenu: n, ...r } = e, i = Ja(n);
|
|
830
|
-
return /* @__PURE__ */ (0, U.jsx)(
|
|
830
|
+
return /* @__PURE__ */ (0, U.jsx)(Pn, {
|
|
831
831
|
...i,
|
|
832
832
|
...r,
|
|
833
833
|
ref: t
|
|
@@ -836,7 +836,7 @@ var Co = "ContextMenuSubTrigger", wo = H.forwardRef((e, t) => {
|
|
|
836
836
|
wo.displayName = Co;
|
|
837
837
|
var To = "ContextMenuSubContent", Eo = H.forwardRef((e, t) => {
|
|
838
838
|
let { __scopeContextMenu: n, ...r } = e, i = Ja(n);
|
|
839
|
-
return /* @__PURE__ */ (0, U.jsx)(
|
|
839
|
+
return /* @__PURE__ */ (0, U.jsx)(_r, {
|
|
840
840
|
...i,
|
|
841
841
|
...r,
|
|
842
842
|
ref: t,
|
|
@@ -1002,7 +1002,7 @@ var hs = [
|
|
|
1002
1002
|
"ArrowDown",
|
|
1003
1003
|
"ArrowLeft",
|
|
1004
1004
|
"ArrowRight"
|
|
1005
|
-
], gs = "RadioGroup", [_s, vs] = ei(gs, [
|
|
1005
|
+
], gs = "RadioGroup", [_s, vs] = ei(gs, [Hn, os]), ys = Hn(), bs = os(), [xs, Ss] = _s(gs), Cs = H.forwardRef((e, t) => {
|
|
1006
1006
|
let { __scopeRadioGroup: n, name: r, defaultValue: i, value: a, required: o = !1, disabled: s = !1, orientation: c, dir: l, loop: u = !0, onValueChange: d, ...f } = e, p = ys(n), m = lt(l), [h, g] = $r({
|
|
1007
1007
|
prop: a,
|
|
1008
1008
|
defaultProp: i ?? null,
|
|
@@ -1016,7 +1016,7 @@ var hs = [
|
|
|
1016
1016
|
disabled: s,
|
|
1017
1017
|
value: h,
|
|
1018
1018
|
onValueChange: g,
|
|
1019
|
-
children: /* @__PURE__ */ (0, U.jsx)(
|
|
1019
|
+
children: /* @__PURE__ */ (0, U.jsx)(Ln, {
|
|
1020
1020
|
asChild: !0,
|
|
1021
1021
|
...p,
|
|
1022
1022
|
orientation: c,
|
|
@@ -1044,7 +1044,7 @@ var ws = "RadioGroupItem", Ts = H.forwardRef((e, t) => {
|
|
|
1044
1044
|
return document.addEventListener("keydown", e), document.addEventListener("keyup", t), () => {
|
|
1045
1045
|
document.removeEventListener("keydown", e), document.removeEventListener("keyup", t);
|
|
1046
1046
|
};
|
|
1047
|
-
}, []), /* @__PURE__ */ (0, U.jsx)(
|
|
1047
|
+
}, []), /* @__PURE__ */ (0, U.jsx)(Cr, {
|
|
1048
1048
|
asChild: !0,
|
|
1049
1049
|
...s,
|
|
1050
1050
|
focusable: !o,
|
|
@@ -1161,7 +1161,7 @@ Bs.displayName = zs;
|
|
|
1161
1161
|
function Vs(e) {
|
|
1162
1162
|
return e ? "checked" : "unchecked";
|
|
1163
1163
|
}
|
|
1164
|
-
var Hs = Is, Us = Rs, Ws = "Tabs", [Gs, Ks] = ei(Ws, [
|
|
1164
|
+
var Hs = Is, Us = Rs, Ws = "Tabs", [Gs, Ks] = ei(Ws, [Hn]), qs = Hn(), [Js, Ys] = Gs(Ws), Xs = H.forwardRef((e, t) => {
|
|
1165
1165
|
let { __scopeTabs: n, value: r, onValueChange: i, defaultValue: a, orientation: o = "horizontal", dir: s, activationMode: c = "automatic", ...l } = e, u = lt(s), [d, f] = $r({
|
|
1166
1166
|
prop: r,
|
|
1167
1167
|
onChange: i,
|
|
@@ -1187,7 +1187,7 @@ var Hs = Is, Us = Rs, Ws = "Tabs", [Gs, Ks] = ei(Ws, [pr]), qs = pr(), [Js, Ys]
|
|
|
1187
1187
|
Xs.displayName = Ws;
|
|
1188
1188
|
var Zs = "TabsList", Qs = H.forwardRef((e, t) => {
|
|
1189
1189
|
let { __scopeTabs: n, loop: r = !0, ...i } = e, a = Ys(Zs, n), o = qs(n);
|
|
1190
|
-
return /* @__PURE__ */ (0, U.jsx)(
|
|
1190
|
+
return /* @__PURE__ */ (0, U.jsx)(Ln, {
|
|
1191
1191
|
asChild: !0,
|
|
1192
1192
|
...o,
|
|
1193
1193
|
orientation: a.orientation,
|
|
@@ -1204,7 +1204,7 @@ var Zs = "TabsList", Qs = H.forwardRef((e, t) => {
|
|
|
1204
1204
|
Qs.displayName = Zs;
|
|
1205
1205
|
var $s = "TabsTrigger", ec = H.forwardRef((e, t) => {
|
|
1206
1206
|
let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, o = Ys($s, n), s = qs(n), c = rc(o.baseId, r), l = ic(o.baseId, r), u = r === o.value;
|
|
1207
|
-
return /* @__PURE__ */ (0, U.jsx)(
|
|
1207
|
+
return /* @__PURE__ */ (0, U.jsx)(Cr, {
|
|
1208
1208
|
asChild: !0,
|
|
1209
1209
|
...s,
|
|
1210
1210
|
focusable: !i,
|
|
@@ -1271,7 +1271,7 @@ var ac = Xs, oc = Qs, sc = ec, cc = nc, lc = class {
|
|
|
1271
1271
|
return this._currentNode;
|
|
1272
1272
|
}
|
|
1273
1273
|
set currentNode(e) {
|
|
1274
|
-
if (!
|
|
1274
|
+
if (!qt(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
|
|
1275
1275
|
let t = [], n = e, r = e;
|
|
1276
1276
|
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
1277
1277
|
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
|
|
@@ -1285,7 +1285,7 @@ var ac = Xs, oc = Qs, sc = ec, cc = nc, lc = class {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
firstChild() {
|
|
1287
1287
|
let e = this.currentNode, t = this.nextNode();
|
|
1288
|
-
return
|
|
1288
|
+
return qt(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
|
|
1289
1289
|
}
|
|
1290
1290
|
lastChild() {
|
|
1291
1291
|
let e = this._walkerStack[0].lastChild();
|
|
@@ -1370,12 +1370,12 @@ var ac = Xs, oc = Qs, sc = ec, cc = nc, lc = class {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
};
|
|
1372
1372
|
function uc(e, t, n, r) {
|
|
1373
|
-
return
|
|
1373
|
+
return Pt() ? new lc(e, t, n, r) : e.createTreeWalker(t, n, r);
|
|
1374
1374
|
}
|
|
1375
1375
|
//#endregion
|
|
1376
1376
|
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/utils/dist/useUpdateEffect.mjs
|
|
1377
1377
|
function dc(e, t) {
|
|
1378
|
-
let n = (0, H.useRef)(!0), r = (0, H.useRef)(null), i =
|
|
1378
|
+
let n = (0, H.useRef)(!0), r = (0, H.useRef)(null), i = hn(e);
|
|
1379
1379
|
(0, H.useEffect)(() => (n.current = !0, () => {
|
|
1380
1380
|
n.current = !1;
|
|
1381
1381
|
}), []), (0, H.useEffect)(() => {
|
|
@@ -1389,7 +1389,7 @@ function fc() {
|
|
|
1389
1389
|
return window.ResizeObserver !== void 0;
|
|
1390
1390
|
}
|
|
1391
1391
|
function pc(e) {
|
|
1392
|
-
let { ref: t, box: n, onResize: r } = e, i =
|
|
1392
|
+
let { ref: t, box: n, onResize: r } = e, i = hn(r);
|
|
1393
1393
|
(0, H.useEffect)(() => {
|
|
1394
1394
|
let e = t?.current;
|
|
1395
1395
|
if (e) {
|
|
@@ -1451,7 +1451,7 @@ function vc(e) {
|
|
|
1451
1451
|
var yc = 0, bc = /* @__PURE__ */ new Map();
|
|
1452
1452
|
function xc(e) {
|
|
1453
1453
|
let [t, n] = (0, H.useState)();
|
|
1454
|
-
return
|
|
1454
|
+
return Xt(() => {
|
|
1455
1455
|
if (!e) return;
|
|
1456
1456
|
let t = bc.get(e);
|
|
1457
1457
|
if (t) n(t.element.id);
|
|
@@ -1474,21 +1474,21 @@ function xc(e) {
|
|
|
1474
1474
|
function Sc(e, t, n = {}) {
|
|
1475
1475
|
let { block: r = "nearest", inline: i = "nearest" } = n;
|
|
1476
1476
|
if (e === t) return;
|
|
1477
|
-
let a = e.scrollTop, o = e.scrollLeft, s = t.getBoundingClientRect(), c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d ? 0 : c.top, p = e === d ? e.clientHeight : c.bottom, m = e === d ? 0 : c.left, h = e === d ? e.clientWidth : c.right, g = parseInt(l.scrollMarginTop, 10) || 0, _ = parseInt(l.scrollMarginBottom, 10) || 0, v = parseInt(l.scrollMarginLeft, 10) || 0, y = parseInt(l.scrollMarginRight, 10) || 0, b = parseInt(u.scrollPaddingTop, 10) || 0, x = parseInt(u.scrollPaddingBottom, 10) || 0, S = parseInt(u.scrollPaddingLeft, 10) || 0, C = parseInt(u.scrollPaddingRight, 10) || 0, w = parseInt(u.borderTopWidth, 10) || 0, T = parseInt(u.borderBottomWidth, 10) || 0, E = parseInt(u.borderLeftWidth, 10) || 0, D = parseInt(u.borderRightWidth, 10) || 0, O = s.top - g, k = s.bottom + _, A = s.left - v, j = s.right + y, M = e === d ? 0 : E + D, N = e === d ? 0 : w + T, P = e.offsetWidth - e.clientWidth - M, F = e.offsetHeight - e.clientHeight - N, I = f + w + b, L = p - T - x - F, R = m + E + S,
|
|
1478
|
-
u.direction === "rtl" && !
|
|
1479
|
-
let
|
|
1480
|
-
if (
|
|
1481
|
-
else if (
|
|
1482
|
-
else if (
|
|
1483
|
-
else if (
|
|
1477
|
+
let a = e.scrollTop, o = e.scrollLeft, s = t.getBoundingClientRect(), c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d ? 0 : c.top, p = e === d ? e.clientHeight : c.bottom, m = e === d ? 0 : c.left, h = e === d ? e.clientWidth : c.right, g = parseInt(l.scrollMarginTop, 10) || 0, _ = parseInt(l.scrollMarginBottom, 10) || 0, v = parseInt(l.scrollMarginLeft, 10) || 0, y = parseInt(l.scrollMarginRight, 10) || 0, b = parseInt(u.scrollPaddingTop, 10) || 0, x = parseInt(u.scrollPaddingBottom, 10) || 0, S = parseInt(u.scrollPaddingLeft, 10) || 0, C = parseInt(u.scrollPaddingRight, 10) || 0, w = parseInt(u.borderTopWidth, 10) || 0, T = parseInt(u.borderBottomWidth, 10) || 0, E = parseInt(u.borderLeftWidth, 10) || 0, D = parseInt(u.borderRightWidth, 10) || 0, O = s.top - g, k = s.bottom + _, A = s.left - v, j = s.right + y, M = e === d ? 0 : E + D, N = e === d ? 0 : w + T, P = e.offsetWidth - e.clientWidth - M, F = e.offsetHeight - e.clientHeight - N, I = f + w + b, L = p - T - x - F, R = m + E + S, z = h - D - C;
|
|
1478
|
+
u.direction === "rtl" && !en() ? R += P : z -= P;
|
|
1479
|
+
let B = O < I || k > L, ee = A < R || j > z;
|
|
1480
|
+
if (B && r === "start") a += O - I;
|
|
1481
|
+
else if (B && r === "center") a += (O + k) / 2 - (I + L) / 2;
|
|
1482
|
+
else if (B && r === "end") a += k - L;
|
|
1483
|
+
else if (B && r === "nearest") {
|
|
1484
1484
|
let e = O - I, t = k - L;
|
|
1485
1485
|
a += Math.abs(e) <= Math.abs(t) ? e : t;
|
|
1486
1486
|
}
|
|
1487
|
-
if (
|
|
1488
|
-
else if (
|
|
1489
|
-
else if (
|
|
1490
|
-
else if (
|
|
1491
|
-
let e = A - R, t = j -
|
|
1487
|
+
if (ee && i === "start") o += A - R;
|
|
1488
|
+
else if (ee && i === "center") o += (A + j) / 2 - (R + z) / 2;
|
|
1489
|
+
else if (ee && i === "end") o += j - z;
|
|
1490
|
+
else if (ee && i === "nearest") {
|
|
1491
|
+
let e = A - R, t = j - z;
|
|
1492
1492
|
o += Math.abs(e) <= Math.abs(t) ? e : t;
|
|
1493
1493
|
}
|
|
1494
1494
|
e.scrollTo({
|
|
@@ -1500,7 +1500,7 @@ function Cc(e, t = {}) {
|
|
|
1500
1500
|
let { containingElement: n } = t;
|
|
1501
1501
|
if (e && e.isConnected) {
|
|
1502
1502
|
let t = document.scrollingElement || document.documentElement;
|
|
1503
|
-
if (window.getComputedStyle(t).overflow !== "hidden" && !
|
|
1503
|
+
if (window.getComputedStyle(t).overflow !== "hidden" && !an()) {
|
|
1504
1504
|
var r;
|
|
1505
1505
|
let { left: t, top: o } = e.getBoundingClientRect();
|
|
1506
1506
|
e == null || (r = e.scrollIntoView) == null || r.call(e, { block: "nearest" });
|
|
@@ -1531,7 +1531,7 @@ function Cc(e, t = {}) {
|
|
|
1531
1531
|
var wc = /* @__PURE__ */ e(Jr(), 1);
|
|
1532
1532
|
function Tc(e, t = !0) {
|
|
1533
1533
|
let [n, r] = (0, H.useState)(!0), i = n && t;
|
|
1534
|
-
return
|
|
1534
|
+
return Xt(() => {
|
|
1535
1535
|
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
|
|
1536
1536
|
}, [e, i]), Dc(e, i, (0, H.useCallback)(() => r(!1), [])), i;
|
|
1537
1537
|
}
|
|
@@ -1550,7 +1550,7 @@ function Ec(e, t) {
|
|
|
1550
1550
|
}, [])), i;
|
|
1551
1551
|
}
|
|
1552
1552
|
function Dc(e, t, n) {
|
|
1553
|
-
|
|
1553
|
+
Xt(() => {
|
|
1554
1554
|
if (t && e.current) {
|
|
1555
1555
|
if (!("getAnimations" in e.current)) {
|
|
1556
1556
|
n();
|
|
@@ -1580,7 +1580,7 @@ function Dc(e, t, n) {
|
|
|
1580
1580
|
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/interactions/dist/PressResponder.mjs
|
|
1581
1581
|
function Oc({ children: e }) {
|
|
1582
1582
|
let t = (0, H.useMemo)(() => ({ register: () => {} }), []);
|
|
1583
|
-
return /*#__PURE__*/ H.createElement(
|
|
1583
|
+
return /*#__PURE__*/ H.createElement(Tr.Provider, { value: t }, e);
|
|
1584
1584
|
}
|
|
1585
1585
|
//#endregion
|
|
1586
1586
|
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/interactions/dist/useInteractOutside.mjs
|
|
@@ -1588,15 +1588,15 @@ function kc(e) {
|
|
|
1588
1588
|
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, H.useRef)({
|
|
1589
1589
|
isPointerDown: !1,
|
|
1590
1590
|
ignoreEmulatedMouseEvents: !1
|
|
1591
|
-
}), o =
|
|
1591
|
+
}), o = hn((e) => {
|
|
1592
1592
|
n && Ac(e, t) && (i && i(e), a.current.isPointerDown = !0);
|
|
1593
|
-
}), s =
|
|
1593
|
+
}), s = hn((e) => {
|
|
1594
1594
|
n && n(e);
|
|
1595
1595
|
});
|
|
1596
1596
|
(0, H.useEffect)(() => {
|
|
1597
1597
|
let e = a.current;
|
|
1598
1598
|
if (r) return;
|
|
1599
|
-
let n = t.current, i =
|
|
1599
|
+
let n = t.current, i = yn(n);
|
|
1600
1600
|
if (typeof PointerEvent < "u") {
|
|
1601
1601
|
let n = (n) => {
|
|
1602
1602
|
e.isPointerDown && Ac(n, t) && s(n), e.isPointerDown = !1;
|
|
@@ -1609,10 +1609,10 @@ function kc(e) {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
function Ac(e, t) {
|
|
1611
1611
|
if (e.button > 0) return !1;
|
|
1612
|
-
let n =
|
|
1612
|
+
let n = Nr(e);
|
|
1613
1613
|
if (n) {
|
|
1614
1614
|
let e = n.ownerDocument;
|
|
1615
|
-
if (!e || !
|
|
1615
|
+
if (!e || !qt(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
|
|
1616
1616
|
}
|
|
1617
1617
|
return t.current ? !e.composedPath().includes(t.current) : !1;
|
|
1618
1618
|
}
|
|
@@ -2270,7 +2270,7 @@ var _u = /*#__PURE__*/ new WeakMap(), vu = class e {
|
|
|
2270
2270
|
return Yc(this, e);
|
|
2271
2271
|
}
|
|
2272
2272
|
constructor(...e) {
|
|
2273
|
-
|
|
2273
|
+
On(this, _u, {
|
|
2274
2274
|
writable: !0,
|
|
2275
2275
|
value: void 0
|
|
2276
2276
|
});
|
|
@@ -2300,7 +2300,7 @@ var _u = /*#__PURE__*/ new WeakMap(), vu = class e {
|
|
|
2300
2300
|
return Xc(this, e);
|
|
2301
2301
|
}
|
|
2302
2302
|
constructor(e = 0, t = 0, n = 0, r = 0) {
|
|
2303
|
-
|
|
2303
|
+
On(this, yu, {
|
|
2304
2304
|
writable: !0,
|
|
2305
2305
|
value: void 0
|
|
2306
2306
|
}), this.hour = e, this.minute = t, this.second = n, this.millisecond = r, Gl(this);
|
|
@@ -2338,7 +2338,7 @@ var _u = /*#__PURE__*/ new WeakMap(), vu = class e {
|
|
|
2338
2338
|
return t === 0 ? Xc(this, El(e)) : t;
|
|
2339
2339
|
}
|
|
2340
2340
|
constructor(...e) {
|
|
2341
|
-
|
|
2341
|
+
On(this, xu, {
|
|
2342
2342
|
writable: !0,
|
|
2343
2343
|
value: void 0
|
|
2344
2344
|
});
|
|
@@ -2374,7 +2374,7 @@ var _u = /*#__PURE__*/ new WeakMap(), vu = class e {
|
|
|
2374
2374
|
return this.toDate().getTime() - kl(e, this.timeZone).toDate().getTime();
|
|
2375
2375
|
}
|
|
2376
2376
|
constructor(...e) {
|
|
2377
|
-
|
|
2377
|
+
On(this, Cu, {
|
|
2378
2378
|
writable: !0,
|
|
2379
2379
|
value: void 0
|
|
2380
2380
|
});
|
|
@@ -2977,29 +2977,29 @@ function Fd(e) {
|
|
|
2977
2977
|
var Id = /*#__PURE__*/ H.createContext(null), Ld = "react-aria-focus-scope-restore", Rd = null;
|
|
2978
2978
|
function zd(e) {
|
|
2979
2979
|
let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, H.useRef)(null), o = (0, H.useRef)(null), s = (0, H.useRef)([]), { parentNode: c } = (0, H.useContext)(Id) || {}, l = (0, H.useMemo)(() => new uf({ scopeRef: s }), [s]);
|
|
2980
|
-
|
|
2980
|
+
Xt(() => {
|
|
2981
2981
|
let e = c || df.root;
|
|
2982
2982
|
if (df.getTreeNode(e.scopeRef) && Rd && !Xd(Rd, e.scopeRef)) {
|
|
2983
2983
|
let t = df.getTreeNode(Rd);
|
|
2984
2984
|
t && (e = t);
|
|
2985
2985
|
}
|
|
2986
2986
|
e.addChild(l), df.addNode(l);
|
|
2987
|
-
}, [l, c]),
|
|
2987
|
+
}, [l, c]), Xt(() => {
|
|
2988
2988
|
let e = df.getTreeNode(s);
|
|
2989
2989
|
e && (e.contain = !!n);
|
|
2990
|
-
}, [n]),
|
|
2990
|
+
}, [n]), Xt(() => {
|
|
2991
2991
|
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
|
|
2992
2992
|
for (; e && e !== o.current;) t.push(e), e.addEventListener(Ld, n), e = e.nextSibling;
|
|
2993
2993
|
return s.current = t, () => {
|
|
2994
2994
|
for (let e of t) e.removeEventListener(Ld, n);
|
|
2995
2995
|
};
|
|
2996
2996
|
}, [t]), tf(s, r, n), Gd(s, n), rf(s, r, n), ef(s, i), (0, H.useEffect)(() => {
|
|
2997
|
-
let e =
|
|
2997
|
+
let e = dn(yn(s.current ? s.current[0] : void 0)), t = null;
|
|
2998
2998
|
if (qd(e, s.current)) {
|
|
2999
2999
|
for (let n of df.traverse()) n.scopeRef && qd(e, n.scopeRef.current) && (t = n);
|
|
3000
3000
|
t === df.getTreeNode(s) && (Rd = t.scopeRef);
|
|
3001
3001
|
}
|
|
3002
|
-
}, [s]),
|
|
3002
|
+
}, [s]), Xt(() => () => {
|
|
3003
3003
|
let e = df.getTreeNode(s)?.parent?.scopeRef ?? null;
|
|
3004
3004
|
(s === Rd || Xd(s, Rd)) && (!e || df.getTreeNode(e)) && (Rd = e), df.removeTreeNode(s);
|
|
3005
3005
|
}, [s]);
|
|
@@ -3020,7 +3020,7 @@ function zd(e) {
|
|
|
3020
3020
|
function Bd(e) {
|
|
3021
3021
|
return {
|
|
3022
3022
|
focusNext(t = {}) {
|
|
3023
|
-
let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r ||
|
|
3023
|
+
let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || dn(yn(n[0] ?? void 0)), c = n[0].previousElementSibling, l = of(Vd(n), {
|
|
3024
3024
|
tabbable: i,
|
|
3025
3025
|
accept: o
|
|
3026
3026
|
}, n);
|
|
@@ -3029,7 +3029,7 @@ function Bd(e) {
|
|
|
3029
3029
|
return !u && a && (l.currentNode = c, u = l.nextNode()), u && Zd(u, !0), u;
|
|
3030
3030
|
},
|
|
3031
3031
|
focusPrevious(t = {}) {
|
|
3032
|
-
let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r ||
|
|
3032
|
+
let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || dn(yn(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = of(Vd(n), {
|
|
3033
3033
|
tabbable: i,
|
|
3034
3034
|
accept: o
|
|
3035
3035
|
}, n);
|
|
@@ -3069,8 +3069,8 @@ function Hd(e) {
|
|
|
3069
3069
|
return !0;
|
|
3070
3070
|
}
|
|
3071
3071
|
function Ud(e) {
|
|
3072
|
-
if (!e.form) return Array.from(
|
|
3073
|
-
let t = e.form.elements.namedItem(e.name), n =
|
|
3072
|
+
if (!e.form) return Array.from(yn(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
|
|
3073
|
+
let t = e.form.elements.namedItem(e.name), n = Gt(e);
|
|
3074
3074
|
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
|
|
3075
3075
|
}
|
|
3076
3076
|
function Wd(e) {
|
|
@@ -3080,15 +3080,15 @@ function Wd(e) {
|
|
|
3080
3080
|
}
|
|
3081
3081
|
function Gd(e, t) {
|
|
3082
3082
|
let n = (0, H.useRef)(void 0), r = (0, H.useRef)(void 0);
|
|
3083
|
-
|
|
3083
|
+
Xt(() => {
|
|
3084
3084
|
let i = e.current;
|
|
3085
3085
|
if (!t) {
|
|
3086
3086
|
r.current &&= (cancelAnimationFrame(r.current), void 0);
|
|
3087
3087
|
return;
|
|
3088
3088
|
}
|
|
3089
|
-
let a =
|
|
3089
|
+
let a = yn(i ? i[0] : void 0), o = (t) => {
|
|
3090
3090
|
if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Hd(e) || t.isComposing) return;
|
|
3091
|
-
let n =
|
|
3091
|
+
let n = dn(a), r = e.current;
|
|
3092
3092
|
if (!r || !qd(n, r)) return;
|
|
3093
3093
|
let i = of(Vd(r), { tabbable: !0 }, r);
|
|
3094
3094
|
if (!n) return;
|
|
@@ -3096,13 +3096,13 @@ function Gd(e, t) {
|
|
|
3096
3096
|
let o = t.shiftKey ? i.previousNode() : i.nextNode();
|
|
3097
3097
|
o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && Zd(o, !0);
|
|
3098
3098
|
}, s = (t) => {
|
|
3099
|
-
(!Rd || Xd(Rd, e)) && qd(
|
|
3099
|
+
(!Rd || Xd(Rd, e)) && qd(Nr(t), e.current) ? (Rd = e, n.current = Nr(t)) : Hd(e) && !Jd(Nr(t), e) ? n.current ? n.current.focus() : Rd && Rd.current && $d(Rd.current) : Hd(e) && (n.current = Nr(t));
|
|
3100
3100
|
}, c = (t) => {
|
|
3101
3101
|
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
3102
|
-
let r =
|
|
3102
|
+
let r = qn(), i = (r === "virtual" || r === null) && Qn() && an(), o = dn(a);
|
|
3103
3103
|
if (!i && o && Hd(e) && !Jd(o, e)) {
|
|
3104
3104
|
Rd = e;
|
|
3105
|
-
let r =
|
|
3105
|
+
let r = Nr(t);
|
|
3106
3106
|
if (r && r.isConnected) {
|
|
3107
3107
|
var s;
|
|
3108
3108
|
n.current = r, (s = n.current) == null || s.focus();
|
|
@@ -3113,7 +3113,7 @@ function Gd(e, t) {
|
|
|
3113
3113
|
return a.addEventListener("keydown", o, !1), a.addEventListener("focusin", s, !1), i?.forEach((e) => e.addEventListener("focusin", s, !1)), i?.forEach((e) => e.addEventListener("focusout", c, !1)), () => {
|
|
3114
3114
|
a.removeEventListener("keydown", o, !1), a.removeEventListener("focusin", s, !1), i?.forEach((e) => e.removeEventListener("focusin", s, !1)), i?.forEach((e) => e.removeEventListener("focusout", c, !1));
|
|
3115
3115
|
};
|
|
3116
|
-
}, [e, t]),
|
|
3116
|
+
}, [e, t]), Xt(() => () => {
|
|
3117
3117
|
r.current && cancelAnimationFrame(r.current);
|
|
3118
3118
|
}, [r]);
|
|
3119
3119
|
}
|
|
@@ -3121,7 +3121,7 @@ function Kd(e) {
|
|
|
3121
3121
|
return Jd(e);
|
|
3122
3122
|
}
|
|
3123
3123
|
function qd(e, t) {
|
|
3124
|
-
return !e || !t ? !1 : t.some((t) =>
|
|
3124
|
+
return !e || !t ? !1 : t.some((t) => qt(t, e));
|
|
3125
3125
|
}
|
|
3126
3126
|
function Jd(e, t = null) {
|
|
3127
3127
|
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
|
|
@@ -3141,7 +3141,7 @@ function Xd(e, t) {
|
|
|
3141
3141
|
}
|
|
3142
3142
|
function Zd(e, t = !1) {
|
|
3143
3143
|
if (e != null && !t) try {
|
|
3144
|
-
|
|
3144
|
+
ar(e);
|
|
3145
3145
|
} catch {}
|
|
3146
3146
|
else if (e != null) try {
|
|
3147
3147
|
e.focus();
|
|
@@ -3161,17 +3161,17 @@ function ef(e, t) {
|
|
|
3161
3161
|
(0, H.useEffect)(() => {
|
|
3162
3162
|
if (n.current) {
|
|
3163
3163
|
Rd = e;
|
|
3164
|
-
let t =
|
|
3165
|
-
!qd(
|
|
3164
|
+
let t = yn(e.current ? e.current[0] : void 0);
|
|
3165
|
+
!qd(dn(t), Rd.current) && e.current && $d(e.current);
|
|
3166
3166
|
}
|
|
3167
3167
|
n.current = !1;
|
|
3168
3168
|
}, [e]);
|
|
3169
3169
|
}
|
|
3170
3170
|
function tf(e, t, n) {
|
|
3171
|
-
|
|
3171
|
+
Xt(() => {
|
|
3172
3172
|
if (t || n) return;
|
|
3173
|
-
let r = e.current, i =
|
|
3174
|
-
let n =
|
|
3173
|
+
let r = e.current, i = yn(r ? r[0] : void 0), a = (t) => {
|
|
3174
|
+
let n = Nr(t);
|
|
3175
3175
|
qd(n, e.current) ? Rd = e : Kd(n) || (Rd = null);
|
|
3176
3176
|
};
|
|
3177
3177
|
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
|
|
@@ -3192,18 +3192,18 @@ function nf(e) {
|
|
|
3192
3192
|
return t?.scopeRef === e;
|
|
3193
3193
|
}
|
|
3194
3194
|
function rf(e, t, n) {
|
|
3195
|
-
let r = (0, H.useRef)(typeof document < "u" ?
|
|
3196
|
-
|
|
3197
|
-
let r = e.current, i =
|
|
3195
|
+
let r = (0, H.useRef)(typeof document < "u" ? dn(yn(e.current ? e.current[0] : void 0)) : null);
|
|
3196
|
+
Xt(() => {
|
|
3197
|
+
let r = e.current, i = yn(r ? r[0] : void 0);
|
|
3198
3198
|
if (!t || n) return;
|
|
3199
3199
|
let a = () => {
|
|
3200
|
-
(!Rd || Xd(Rd, e)) && qd(
|
|
3200
|
+
(!Rd || Xd(Rd, e)) && qd(dn(i), e.current) && (Rd = e);
|
|
3201
3201
|
};
|
|
3202
3202
|
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
|
|
3203
3203
|
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
|
|
3204
3204
|
};
|
|
3205
|
-
}, [e, n]),
|
|
3206
|
-
let r =
|
|
3205
|
+
}, [e, n]), Xt(() => {
|
|
3206
|
+
let r = yn(e.current ? e.current[0] : void 0);
|
|
3207
3207
|
if (!t) return;
|
|
3208
3208
|
let i = (t) => {
|
|
3209
3209
|
if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Hd(e) || t.isComposing) return;
|
|
@@ -3229,14 +3229,14 @@ function rf(e, t, n) {
|
|
|
3229
3229
|
e,
|
|
3230
3230
|
t,
|
|
3231
3231
|
n
|
|
3232
|
-
]),
|
|
3233
|
-
let n =
|
|
3232
|
+
]), Xt(() => {
|
|
3233
|
+
let n = yn(e.current ? e.current[0] : void 0);
|
|
3234
3234
|
if (!t) return;
|
|
3235
3235
|
let i = df.getTreeNode(e);
|
|
3236
3236
|
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
|
|
3237
3237
|
let r = df.getTreeNode(e);
|
|
3238
3238
|
if (!r) return;
|
|
3239
|
-
let i = r.nodeToRestore, a =
|
|
3239
|
+
let i = r.nodeToRestore, a = dn(n);
|
|
3240
3240
|
if (t && i && (a && Jd(a, e) || a === n.body && nf(e))) {
|
|
3241
3241
|
let t = df.clone();
|
|
3242
3242
|
requestAnimationFrame(() => {
|
|
@@ -3269,8 +3269,8 @@ function af(e) {
|
|
|
3269
3269
|
})) && Zd(e);
|
|
3270
3270
|
}
|
|
3271
3271
|
function of(e, t, n) {
|
|
3272
|
-
let r = t?.tabbable ?
|
|
3273
|
-
return
|
|
3272
|
+
let r = t?.tabbable ? pn : kr, i = e?.nodeType === Node.ELEMENT_NODE ? e : null, a = yn(i), o = uc(a, e || a, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
|
|
3273
|
+
return qt(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Wd(e) || o.currentNode.tagName === "INPUT" && o.currentNode.type === "radio" && o.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || qd(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
3274
3274
|
} });
|
|
3275
3275
|
return t?.from && (o.currentNode = t.from), o;
|
|
3276
3276
|
}
|
|
@@ -3279,22 +3279,22 @@ function sf(e, t = {}) {
|
|
|
3279
3279
|
focusNext(n = {}) {
|
|
3280
3280
|
let r = e.current;
|
|
3281
3281
|
if (!r) return null;
|
|
3282
|
-
let { from: i, tabbable: a = t.tabbable, wrap: o = t.wrap, accept: s = t.accept } = n, c = i ||
|
|
3282
|
+
let { from: i, tabbable: a = t.tabbable, wrap: o = t.wrap, accept: s = t.accept } = n, c = i || dn(yn(r)), l = of(r, {
|
|
3283
3283
|
tabbable: a,
|
|
3284
3284
|
accept: s
|
|
3285
3285
|
});
|
|
3286
|
-
|
|
3286
|
+
qt(r, c) && (l.currentNode = c);
|
|
3287
3287
|
let u = l.nextNode();
|
|
3288
3288
|
return !u && o && (l.currentNode = r, u = l.nextNode()), u && Zd(u, !0), u;
|
|
3289
3289
|
},
|
|
3290
3290
|
focusPrevious(n = t) {
|
|
3291
3291
|
let r = e.current;
|
|
3292
3292
|
if (!r) return null;
|
|
3293
|
-
let { from: i, tabbable: a = t.tabbable, wrap: o = t.wrap, accept: s = t.accept } = n, c = i ||
|
|
3293
|
+
let { from: i, tabbable: a = t.tabbable, wrap: o = t.wrap, accept: s = t.accept } = n, c = i || dn(yn(r)), l = of(r, {
|
|
3294
3294
|
tabbable: a,
|
|
3295
3295
|
accept: s
|
|
3296
3296
|
});
|
|
3297
|
-
if (
|
|
3297
|
+
if (qt(r, c)) l.currentNode = c;
|
|
3298
3298
|
else {
|
|
3299
3299
|
let e = cf(l);
|
|
3300
3300
|
return e && Zd(e, !0), e ?? null;
|
|
@@ -4006,7 +4006,7 @@ function Yf(e) {
|
|
|
4006
4006
|
return e?.calendar.identifier === "gregory" && e.era === "BC" ? "short" : void 0;
|
|
4007
4007
|
}
|
|
4008
4008
|
function Xf(e) {
|
|
4009
|
-
let t =
|
|
4009
|
+
let t = rr(qf(Kf), "@react-aria/calendar"), n, r;
|
|
4010
4010
|
"highlightedRange" in e ? {start: n, end: r} = e.highlightedRange || {} : n = r = e.value ?? void 0;
|
|
4011
4011
|
let i = nt({
|
|
4012
4012
|
weekday: "long",
|
|
@@ -4038,7 +4038,7 @@ function Xf(e) {
|
|
|
4038
4038
|
]);
|
|
4039
4039
|
}
|
|
4040
4040
|
function Zf(e, t, n, r) {
|
|
4041
|
-
let i =
|
|
4041
|
+
let i = rr(qf(Kf), "@react-aria/calendar"), a = Yf(e) || Yf(t), o = nt({
|
|
4042
4042
|
month: "long",
|
|
4043
4043
|
year: "numeric",
|
|
4044
4044
|
era: a,
|
|
@@ -4089,15 +4089,15 @@ function $f(e) {
|
|
|
4089
4089
|
return e && e.__esModule ? e.default : e;
|
|
4090
4090
|
}
|
|
4091
4091
|
function ep(e, t) {
|
|
4092
|
-
let n =
|
|
4092
|
+
let n = rr($f(Kf), "@react-aria/calendar"), r = sn(e), i = Zf(t.visibleRange.start, t.visibleRange.end, t.timeZone, !1), a = Zf(t.visibleRange.start, t.visibleRange.end, t.timeZone, !0);
|
|
4093
4093
|
dc(() => {
|
|
4094
|
-
t.isFocused ||
|
|
4094
|
+
t.isFocused || Xn(a);
|
|
4095
4095
|
}, [a]);
|
|
4096
4096
|
let o = Xf(t);
|
|
4097
4097
|
dc(() => {
|
|
4098
|
-
o &&
|
|
4098
|
+
o && Xn(o, "polite", 4e3);
|
|
4099
4099
|
}, [o]);
|
|
4100
|
-
let s =
|
|
4100
|
+
let s = xn([
|
|
4101
4101
|
!!e.errorMessage,
|
|
4102
4102
|
e.isInvalid,
|
|
4103
4103
|
e.validationState
|
|
@@ -4112,13 +4112,13 @@ function ep(e, t) {
|
|
|
4112
4112
|
u && c && (l(!1), t.setFocused(!0));
|
|
4113
4113
|
let [d, f] = (0, H.useState)(!1), p = e.isDisabled || t.isPreviousVisibleRangeInvalid();
|
|
4114
4114
|
p && d && (f(!1), t.setFocused(!0));
|
|
4115
|
-
let m =
|
|
4115
|
+
let m = Lt({
|
|
4116
4116
|
id: e.id,
|
|
4117
4117
|
"aria-label": [e["aria-label"], a].filter(Boolean).join(", "),
|
|
4118
4118
|
"aria-labelledby": e["aria-labelledby"]
|
|
4119
4119
|
});
|
|
4120
4120
|
return {
|
|
4121
|
-
calendarProps:
|
|
4121
|
+
calendarProps: Vt(r, m, {
|
|
4122
4122
|
role: "application",
|
|
4123
4123
|
"aria-details": e["aria-details"] || void 0,
|
|
4124
4124
|
"aria-describedby": e["aria-describedby"] || void 0
|
|
@@ -4148,19 +4148,19 @@ function tp(e, t) {
|
|
|
4148
4148
|
//#region ../node_modules/.pnpm/@react-aria+calendar@3.9.5_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/calendar/dist/useRangeCalendar.mjs
|
|
4149
4149
|
function np(e, t, n) {
|
|
4150
4150
|
let r = ep(e, t), i = (0, H.useRef)(!1), a = (0, H.useRef)(typeof window < "u" ? window : null);
|
|
4151
|
-
return
|
|
4151
|
+
return Dr(a, "pointerdown", (e) => {
|
|
4152
4152
|
i.current = e.width === 0 && e.height === 0;
|
|
4153
|
-
}),
|
|
4153
|
+
}), Dr(a, "pointerup", (e) => {
|
|
4154
4154
|
if (i.current) {
|
|
4155
4155
|
i.current = !1;
|
|
4156
4156
|
return;
|
|
4157
4157
|
}
|
|
4158
4158
|
if (t.setDragging(!1), !t.anchorDate) return;
|
|
4159
4159
|
let r = e.target;
|
|
4160
|
-
n.current &&
|
|
4160
|
+
n.current && Qt(n.current) && (!qt(n.current, r) || !r.closest("button, [role=\"button\"]")) && t.selectFocusedDate();
|
|
4161
4161
|
}), r.calendarProps.onBlur = (e) => {
|
|
4162
|
-
n.current && (!e.relatedTarget || !
|
|
4163
|
-
},
|
|
4162
|
+
n.current && (!e.relatedTarget || !qt(n.current, e.relatedTarget)) && t.anchorDate && t.selectFocusedDate();
|
|
4163
|
+
}, Dr(n, "touchmove", (e) => {
|
|
4164
4164
|
t.isDragging && e.preventDefault();
|
|
4165
4165
|
}, {
|
|
4166
4166
|
passive: !1,
|
|
@@ -4202,7 +4202,7 @@ function rp(e, t) {
|
|
|
4202
4202
|
break;
|
|
4203
4203
|
case "Escape": "setAnchorDate" in t && (e.preventDefault(), t.setAnchorDate(null));
|
|
4204
4204
|
}
|
|
4205
|
-
}, s = Zf(n, r, t.timeZone, !0), { ariaLabel: c, ariaLabelledBy: l } = Jf.get(t), u =
|
|
4205
|
+
}, s = Zf(n, r, t.timeZone, !0), { ariaLabel: c, ariaLabelledBy: l } = Jf.get(t), u = Lt({
|
|
4206
4206
|
"aria-label": [c, s].filter(Boolean).join(", "),
|
|
4207
4207
|
"aria-labelledby": l
|
|
4208
4208
|
}), d = nt({
|
|
@@ -4221,7 +4221,7 @@ function rp(e, t) {
|
|
|
4221
4221
|
i
|
|
4222
4222
|
]), m = dl(n, f, i);
|
|
4223
4223
|
return {
|
|
4224
|
-
gridProps:
|
|
4224
|
+
gridProps: Vt(u, {
|
|
4225
4225
|
role: "grid",
|
|
4226
4226
|
"aria-readonly": t.isReadOnly || void 0,
|
|
4227
4227
|
"aria-disabled": t.isDisabled || void 0,
|
|
@@ -4241,7 +4241,7 @@ function ip(e) {
|
|
|
4241
4241
|
return e && e.__esModule ? e.default : e;
|
|
4242
4242
|
}
|
|
4243
4243
|
function ap(e, t, n) {
|
|
4244
|
-
let { date: r, isDisabled: i } = e, { errorMessageId: a, selectedDateDescription: o } = Jf.get(t), s =
|
|
4244
|
+
let { date: r, isDisabled: i } = e, { errorMessageId: a, selectedDateDescription: o } = Jf.get(t), s = rr(ip(Kf), "@react-aria/calendar"), c = nt({
|
|
4245
4245
|
weekday: "long",
|
|
4246
4246
|
day: "numeric",
|
|
4247
4247
|
month: "long",
|
|
@@ -4266,7 +4266,7 @@ function ap(e, t, n) {
|
|
|
4266
4266
|
o
|
|
4267
4267
|
]), _ = "";
|
|
4268
4268
|
"anchorDate" in t && u && !t.isReadOnly && f && (_ = t.anchorDate ? s.format("finishRangeSelectionPrompt") : s.format("startRangeSelectionPrompt"));
|
|
4269
|
-
let v = xc(_), y = (0, H.useRef)(!1), b = (0, H.useRef)(!1), x = (0, H.useRef)(void 0), { pressProps: S, isPressed: C } =
|
|
4269
|
+
let v = xc(_), y = (0, H.useRef)(!1), b = (0, H.useRef)(!1), x = (0, H.useRef)(void 0), { pressProps: S, isPressed: C } = Wn({
|
|
4270
4270
|
shouldCancelOnPointerExit: "anchorDate" in t && !!t.anchorDate,
|
|
4271
4271
|
preventFocusOnPress: !0,
|
|
4272
4272
|
isDisabled: !f || t.isReadOnly,
|
|
@@ -4311,7 +4311,7 @@ function ap(e, t, n) {
|
|
|
4311
4311
|
}
|
|
4312
4312
|
}), w;
|
|
4313
4313
|
i || (w = Bc(r, t.focusedDate) ? 0 : -1), (0, H.useEffect)(() => {
|
|
4314
|
-
u && n.current && (
|
|
4314
|
+
u && n.current && (nn(n.current), qn() !== "pointer" && dn() === n.current && Cc(n.current, { containingElement: hc(n.current) }));
|
|
4315
4315
|
}, [u, n]);
|
|
4316
4316
|
let T = nt({
|
|
4317
4317
|
day: "numeric",
|
|
@@ -4325,7 +4325,7 @@ function ap(e, t, n) {
|
|
|
4325
4325
|
"aria-selected": l || void 0,
|
|
4326
4326
|
"aria-invalid": p || void 0
|
|
4327
4327
|
},
|
|
4328
|
-
buttonProps:
|
|
4328
|
+
buttonProps: Vt(S, {
|
|
4329
4329
|
onFocus() {
|
|
4330
4330
|
i || (t.setFocusedDate(r), t.setFocused(!0));
|
|
4331
4331
|
},
|
|
@@ -4339,7 +4339,7 @@ function ap(e, t, n) {
|
|
|
4339
4339
|
"highlightDate" in t && (e.pointerType !== "touch" || t.isDragging) && f && t.highlightDate(r);
|
|
4340
4340
|
},
|
|
4341
4341
|
onPointerDown(e) {
|
|
4342
|
-
let t =
|
|
4342
|
+
let t = Nr(e);
|
|
4343
4343
|
t instanceof HTMLElement && "releasePointerCapture" in t && ("hasPointerCapture" in t ? t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId) : t.releasePointerCapture(e.pointerId));
|
|
4344
4344
|
},
|
|
4345
4345
|
onContextMenu(e) {
|
|
@@ -4371,7 +4371,7 @@ var op = {
|
|
|
4371
4371
|
whiteSpace: "nowrap"
|
|
4372
4372
|
};
|
|
4373
4373
|
function sp(e = {}) {
|
|
4374
|
-
let { style: t, isFocusable: n } = e, [r, i] = (0, H.useState)(!1), { focusWithinProps: a } =
|
|
4374
|
+
let { style: t, isFocusable: n } = e, [r, i] = (0, H.useState)(!1), { focusWithinProps: a } = dr({
|
|
4375
4375
|
isDisabled: !n,
|
|
4376
4376
|
onFocusWithinChange: (e) => i(e)
|
|
4377
4377
|
}), o = (0, H.useMemo)(() => r ? t : t ? {
|
|
@@ -4385,7 +4385,7 @@ function sp(e = {}) {
|
|
|
4385
4385
|
}
|
|
4386
4386
|
function cp(e) {
|
|
4387
4387
|
let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = sp(e);
|
|
4388
|
-
return /*#__PURE__*/ H.createElement(n,
|
|
4388
|
+
return /*#__PURE__*/ H.createElement(n, Vt(a, o), t);
|
|
4389
4389
|
}
|
|
4390
4390
|
//#endregion
|
|
4391
4391
|
//#region ../node_modules/.pnpm/@react-aria+overlays@3.31.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/overlays/dist/calculatePosition.mjs
|
|
@@ -4415,7 +4415,7 @@ function gp(e, t) {
|
|
|
4415
4415
|
let l = document.documentElement;
|
|
4416
4416
|
i = l.clientWidth, a = l.clientHeight, n = t?.width ?? i, r = t?.height ?? a, c.top = l.scrollTop || e.scrollTop, c.left = l.scrollLeft || e.scrollLeft, t && (o = t.offsetTop, s = t.offsetLeft);
|
|
4417
4417
|
} else ({width: n, height: r, top: o, left: s} = Dp(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
|
|
4418
|
-
return
|
|
4418
|
+
return er() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
|
|
4419
4419
|
width: n,
|
|
4420
4420
|
height: r,
|
|
4421
4421
|
totalWidth: i,
|
|
@@ -4464,7 +4464,7 @@ function xp(e, t, n, r, i, a, o, s, c, l, u) {
|
|
|
4464
4464
|
let { placement: d, crossPlacement: f, axis: p, crossAxis: m, size: h, crossSize: g } = r, _ = {};
|
|
4465
4465
|
_[m] = e[m] ?? 0, f === "center" ? _[m] += ((e[g] ?? 0) - (n[g] ?? 0)) / 2 : f !== m && (_[m] += (e[g] ?? 0) - (n[g] ?? 0)), _[m] += a;
|
|
4466
4466
|
let v = e[m] - n[g] + c + l, y = e[m] + e[g] - c - l;
|
|
4467
|
-
if (_[m] =
|
|
4467
|
+
if (_[m] = jr(_[m], v, y), d === p) {
|
|
4468
4468
|
let t = s ? u[h] : u[pp[h]];
|
|
4469
4469
|
_[up[p]] = Math.floor(t - e[p] + i);
|
|
4470
4470
|
} else _[p] = Math.floor(e[p] + e[h] + i);
|
|
@@ -4493,11 +4493,11 @@ function wp(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
|
|
|
4493
4493
|
w[b] += O;
|
|
4494
4494
|
let k = Sp(w, s, l, f, i, a, n.height, D, c, g, _);
|
|
4495
4495
|
p && p < k && (k = p), n.height = Math.min(n.height, k), w = xp(t, s, n, v, T, d, l, f, m, h, c), O = vp(b, w[b], n[x], s, c, a, l), w[b] += O;
|
|
4496
|
-
let A = {}, j = t[b] - w[b] - i[lp[b]], M = j + .5 * t[x], N = m / 2 + h, P = lp[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), F = n[x] - P - m / 2 - h, I = t[b] + m / 2 - (w[b] + i[lp[b]]), L = t[b] + t[x] - m / 2 - (w[b] + i[lp[b]]), R =
|
|
4497
|
-
A[b] =
|
|
4498
|
-
let
|
|
4499
|
-
x: S === "top" || S === "bottom" ? j :
|
|
4500
|
-
y: S === "left" || S === "right" ? j :
|
|
4496
|
+
let A = {}, j = t[b] - w[b] - i[lp[b]], M = j + .5 * t[x], N = m / 2 + h, P = lp[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), F = n[x] - P - m / 2 - h, I = t[b] + m / 2 - (w[b] + i[lp[b]]), L = t[b] + t[x] - m / 2 - (w[b] + i[lp[b]]), R = jr(M, I, L);
|
|
4497
|
+
A[b] = jr(R, N, F), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
|
|
4498
|
+
let z = S === "left" || S === "top" ? n[y] : 0, B = {
|
|
4499
|
+
x: S === "top" || S === "bottom" ? j : z,
|
|
4500
|
+
y: S === "left" || S === "right" ? j : z
|
|
4501
4501
|
};
|
|
4502
4502
|
return {
|
|
4503
4503
|
position: w,
|
|
@@ -4505,7 +4505,7 @@ function wp(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
|
|
|
4505
4505
|
arrowOffsetLeft: A.left,
|
|
4506
4506
|
arrowOffsetTop: A.top,
|
|
4507
4507
|
placement: S,
|
|
4508
|
-
triggerAnchorPoint:
|
|
4508
|
+
triggerAnchorPoint: B
|
|
4509
4509
|
};
|
|
4510
4510
|
}
|
|
4511
4511
|
function Tp(e) {
|
|
@@ -4531,7 +4531,7 @@ function Tp(e) {
|
|
|
4531
4531
|
width: 0,
|
|
4532
4532
|
height: 0
|
|
4533
4533
|
} : Op(s, m, !1);
|
|
4534
|
-
let T =
|
|
4534
|
+
let T = qt(s, m);
|
|
4535
4535
|
return wp(t, v, y, x, b, a, o, S, C, w, c, l, _, u, d, f, T, p);
|
|
4536
4536
|
}
|
|
4537
4537
|
function Ep(e, t) {
|
|
@@ -4579,8 +4579,8 @@ function Mp(e) {
|
|
|
4579
4579
|
(0, H.useEffect)(() => {
|
|
4580
4580
|
if (!n || r === null) return;
|
|
4581
4581
|
let e = (e) => {
|
|
4582
|
-
let n =
|
|
4583
|
-
if (!t.current || n instanceof Node && !
|
|
4582
|
+
let n = Nr(e);
|
|
4583
|
+
if (!t.current || n instanceof Node && !qt(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
|
|
4584
4584
|
let i = r || jp.get(t.current);
|
|
4585
4585
|
i && i();
|
|
4586
4586
|
};
|
|
@@ -4621,8 +4621,8 @@ function Pp(e) {
|
|
|
4621
4621
|
let S = (0, H.useCallback)(() => {
|
|
4622
4622
|
if (p === !1 || !m || !i.current || !r.current || !u || Np?.scale !== x.current) return;
|
|
4623
4623
|
let e = null;
|
|
4624
|
-
if (o.current &&
|
|
4625
|
-
let t =
|
|
4624
|
+
if (o.current && Qt(o.current)) {
|
|
4625
|
+
let t = dn()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
|
|
4626
4626
|
e = {
|
|
4627
4627
|
type: "top",
|
|
4628
4628
|
offset: (t?.top ?? 0) - n.top
|
|
@@ -4646,14 +4646,14 @@ function Pp(e) {
|
|
|
4646
4646
|
});
|
|
4647
4647
|
if (!v.position) return;
|
|
4648
4648
|
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(v.position).forEach((e) => h.style[e] = v.position[e] + "px"), h.style.maxHeight = v.maxHeight == null ? "" : v.maxHeight + "px";
|
|
4649
|
-
let b =
|
|
4649
|
+
let b = dn();
|
|
4650
4650
|
if (e && b && o.current) {
|
|
4651
4651
|
let t = b.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
|
|
4652
4652
|
o.current.scrollTop += r - e.offset;
|
|
4653
4653
|
}
|
|
4654
4654
|
y(v);
|
|
4655
4655
|
}, b);
|
|
4656
|
-
|
|
4656
|
+
Xt(S, b), Fp(S), pc({
|
|
4657
4657
|
ref: i,
|
|
4658
4658
|
onResize: S
|
|
4659
4659
|
}), pc({
|
|
@@ -4661,7 +4661,7 @@ function Pp(e) {
|
|
|
4661
4661
|
onResize: S
|
|
4662
4662
|
});
|
|
4663
4663
|
let C = (0, H.useRef)(!1);
|
|
4664
|
-
|
|
4664
|
+
Xt(() => {
|
|
4665
4665
|
let e, t = () => {
|
|
4666
4666
|
C.current = !0, clearTimeout(e), e = setTimeout(() => {
|
|
4667
4667
|
C.current = !1;
|
|
@@ -4703,7 +4703,7 @@ function Pp(e) {
|
|
|
4703
4703
|
};
|
|
4704
4704
|
}
|
|
4705
4705
|
function Fp(e) {
|
|
4706
|
-
|
|
4706
|
+
Xt(() => (window.addEventListener("resize", e, !1), () => {
|
|
4707
4707
|
window.removeEventListener("resize", e, !1);
|
|
4708
4708
|
}), [e]);
|
|
4709
4709
|
}
|
|
@@ -4725,9 +4725,9 @@ function Rp(e, t) {
|
|
|
4725
4725
|
Lp[Lp.length - 1] === t && n && n();
|
|
4726
4726
|
}, u = (e) => {
|
|
4727
4727
|
let n = Lp[Lp.length - 1];
|
|
4728
|
-
c.current = n, (!s || s(
|
|
4728
|
+
c.current = n, (!s || s(Nr(e))) && n === t && (e.stopPropagation(), e.preventDefault());
|
|
4729
4729
|
}, d = (e) => {
|
|
4730
|
-
(!s || s(
|
|
4730
|
+
(!s || s(Nr(e))) && (Lp[Lp.length - 1] === t && (e.stopPropagation(), e.preventDefault()), c.current === t && l()), c.current = void 0;
|
|
4731
4731
|
}, f = (e) => {
|
|
4732
4732
|
e.key === "Escape" && !o && !e.nativeEvent.isComposing && (e.stopPropagation(), e.preventDefault(), l());
|
|
4733
4733
|
};
|
|
@@ -4736,13 +4736,13 @@ function Rp(e, t) {
|
|
|
4736
4736
|
onInteractOutside: a && i ? d : void 0,
|
|
4737
4737
|
onInteractOutsideStart: u
|
|
4738
4738
|
});
|
|
4739
|
-
let { focusWithinProps: p } =
|
|
4739
|
+
let { focusWithinProps: p } = dr({
|
|
4740
4740
|
isDisabled: !r,
|
|
4741
4741
|
onBlurWithin: (e) => {
|
|
4742
4742
|
!e.relatedTarget || Yd(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
|
|
4743
4743
|
}
|
|
4744
4744
|
}), m = (e) => {
|
|
4745
|
-
|
|
4745
|
+
Nr(e) === e.currentTarget && e.preventDefault();
|
|
4746
4746
|
};
|
|
4747
4747
|
return {
|
|
4748
4748
|
overlayProps: {
|
|
@@ -4757,19 +4757,19 @@ function Rp(e, t) {
|
|
|
4757
4757
|
var zp = typeof document < "u" && window.visualViewport, Bp = 0, Vp;
|
|
4758
4758
|
function Hp(e = {}) {
|
|
4759
4759
|
let { isDisabled: t } = e;
|
|
4760
|
-
|
|
4761
|
-
if (!t) return Bp++, Bp === 1 && (Vp =
|
|
4760
|
+
Xt(() => {
|
|
4761
|
+
if (!t) return Bp++, Bp === 1 && (Vp = en() ? Wp() : Up()), () => {
|
|
4762
4762
|
Bp--, Bp === 0 && Vp();
|
|
4763
4763
|
};
|
|
4764
4764
|
}, [t]);
|
|
4765
4765
|
}
|
|
4766
4766
|
function Up() {
|
|
4767
4767
|
let e = window.innerWidth - document.documentElement.clientWidth;
|
|
4768
|
-
return
|
|
4768
|
+
return _n(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Gp(document.documentElement, "scrollbarGutter", "stable") : Gp(document.documentElement, "paddingRight", `${e}px`)), Gp(document.documentElement, "overflow", "hidden"));
|
|
4769
4769
|
}
|
|
4770
4770
|
function Wp() {
|
|
4771
4771
|
let e = Gp(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
|
|
4772
|
-
let r =
|
|
4772
|
+
let r = Nr(e);
|
|
4773
4773
|
t = mc(r) ? r : hc(r, !0), n = !1;
|
|
4774
4774
|
let i = r.ownerDocument.defaultView.getSelection();
|
|
4775
4775
|
i && !i.isCollapsed && i.containsNode(r, !0) && (n = !0), e.composedPath().some((e) => e instanceof HTMLInputElement && e.type === "range") && (n = !0), "selectionStart" in r && "selectionEnd" in r && r.selectionStart < r.selectionEnd && r.ownerDocument.activeElement === r && (n = !0);
|
|
@@ -4784,17 +4784,17 @@ function Wp() {
|
|
|
4784
4784
|
t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth && e.preventDefault();
|
|
4785
4785
|
}
|
|
4786
4786
|
}, o = (e) => {
|
|
4787
|
-
let t =
|
|
4787
|
+
let t = Nr(e), n = e.relatedTarget;
|
|
4788
4788
|
n && vc(n) ? (n.focus({ preventScroll: !0 }), qp(n, vc(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
|
|
4789
4789
|
}, s = HTMLElement.prototype.focus;
|
|
4790
4790
|
HTMLElement.prototype.focus = function(e) {
|
|
4791
|
-
let t =
|
|
4791
|
+
let t = dn(), n = t != null && vc(t);
|
|
4792
4792
|
s.call(this, {
|
|
4793
4793
|
...e,
|
|
4794
4794
|
preventScroll: !0
|
|
4795
4795
|
}), (!e || !e.preventScroll) && qp(this, n);
|
|
4796
4796
|
};
|
|
4797
|
-
let c =
|
|
4797
|
+
let c = _n(Kp(document, "touchstart", r, {
|
|
4798
4798
|
passive: !1,
|
|
4799
4799
|
capture: !0
|
|
4800
4800
|
}), Kp(document, "touchmove", a, {
|
|
@@ -5025,7 +5025,7 @@ function Mm(e) {
|
|
|
5025
5025
|
return e && e.__esModule ? e.default : e;
|
|
5026
5026
|
}
|
|
5027
5027
|
function Nm(e) {
|
|
5028
|
-
let { onDismiss: t, ...n } = e, r =
|
|
5028
|
+
let { onDismiss: t, ...n } = e, r = rr(Mm(jm), "@react-aria/overlays"), i = Lt(n, r.format("dismiss")), a = () => {
|
|
5029
5029
|
t && t();
|
|
5030
5030
|
};
|
|
5031
5031
|
return /*#__PURE__*/ H.createElement(cp, null, /*#__PURE__*/ H.createElement("button", {
|
|
@@ -5042,10 +5042,10 @@ function Nm(e) {
|
|
|
5042
5042
|
//#region ../node_modules/.pnpm/@react-aria+overlays@3.31.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/overlays/dist/ariaHideOutside.mjs
|
|
5043
5043
|
var Pm = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, Fm = /* @__PURE__ */ new WeakMap(), Im = [];
|
|
5044
5044
|
function Lm(e, t) {
|
|
5045
|
-
let n =
|
|
5045
|
+
let n = Gt(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Pm, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
|
|
5046
5046
|
a && e instanceof n.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof n.HTMLElement && (e.inert = !1));
|
|
5047
5047
|
}, u = /* @__PURE__ */ new Set();
|
|
5048
|
-
if (
|
|
5048
|
+
if (Pt()) for (let t of e) {
|
|
5049
5049
|
let e = t;
|
|
5050
5050
|
for (; e && e !== i;) {
|
|
5051
5051
|
let t = e.getRootNode();
|
|
@@ -5056,9 +5056,9 @@ function Lm(e, t) {
|
|
|
5056
5056
|
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
|
|
5057
5057
|
let t = (e) => {
|
|
5058
5058
|
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
|
|
5059
|
-
for (let t of o) if (
|
|
5059
|
+
for (let t of o) if (qt(e, t)) return NodeFilter.FILTER_SKIP;
|
|
5060
5060
|
return NodeFilter.FILTER_ACCEPT;
|
|
5061
|
-
}, n = uc(
|
|
5061
|
+
}, n = uc(yn(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
|
|
5062
5062
|
if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {
|
|
5063
5063
|
let e = n.nextNode();
|
|
5064
5064
|
for (; e != null;) f(e), e = n.nextNode();
|
|
@@ -5070,8 +5070,8 @@ function Lm(e, t) {
|
|
|
5070
5070
|
Im.length && Im[Im.length - 1].disconnect(), d(i);
|
|
5071
5071
|
let p = new MutationObserver((e) => {
|
|
5072
5072
|
for (let t of e) if (t.type === "childList") {
|
|
5073
|
-
if (t.target.isConnected && ![...o, ...s].some((e) =>
|
|
5074
|
-
if (
|
|
5073
|
+
if (t.target.isConnected && ![...o, ...s].some((e) => qt(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && (e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer === "true") ? o.add(e) : e instanceof Element && d(e);
|
|
5074
|
+
if (Pt()) {
|
|
5075
5075
|
for (let e of u) if (!e.isConnected) {
|
|
5076
5076
|
p.disconnect();
|
|
5077
5077
|
break;
|
|
@@ -5084,11 +5084,11 @@ function Lm(e, t) {
|
|
|
5084
5084
|
subtree: !0
|
|
5085
5085
|
});
|
|
5086
5086
|
let m = /* @__PURE__ */ new Set();
|
|
5087
|
-
if (
|
|
5087
|
+
if (Pt()) for (let e of u) {
|
|
5088
5088
|
let t = new MutationObserver((e) => {
|
|
5089
5089
|
for (let t of e) if (t.type === "childList") {
|
|
5090
|
-
if (t.target.isConnected && ![...o, ...s].some((e) =>
|
|
5091
|
-
if (
|
|
5090
|
+
if (t.target.isConnected && ![...o, ...s].some((e) => qt(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && (e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer === "true") ? o.add(e) : e instanceof Element && d(e);
|
|
5091
|
+
if (Pt()) {
|
|
5092
5092
|
for (let e of u) if (!e.isConnected) {
|
|
5093
5093
|
p.disconnect();
|
|
5094
5094
|
break;
|
|
@@ -5115,7 +5115,7 @@ function Lm(e, t) {
|
|
|
5115
5115
|
}
|
|
5116
5116
|
};
|
|
5117
5117
|
return Im.push(h), () => {
|
|
5118
|
-
if (p.disconnect(),
|
|
5118
|
+
if (p.disconnect(), Pt()) for (let e of m) e.disconnect();
|
|
5119
5119
|
for (let e of s) {
|
|
5120
5120
|
let t = Fm.get(e);
|
|
5121
5121
|
t != null && (t === 1 ? (l(e, !1), Fm.delete(e)) : Fm.set(e, t - 1));
|
|
@@ -5154,7 +5154,7 @@ function zm(e, t) {
|
|
|
5154
5154
|
r,
|
|
5155
5155
|
i
|
|
5156
5156
|
]), {
|
|
5157
|
-
popoverProps:
|
|
5157
|
+
popoverProps: Vt(u, f),
|
|
5158
5158
|
arrowProps: p,
|
|
5159
5159
|
underlayProps: d,
|
|
5160
5160
|
placement: m,
|
|
@@ -5178,7 +5178,7 @@ function Vm(e) {
|
|
|
5178
5178
|
}
|
|
5179
5179
|
function Hm() {
|
|
5180
5180
|
let e = (0, H.useContext)(Bm)?.setContain;
|
|
5181
|
-
|
|
5181
|
+
Xt(() => {
|
|
5182
5182
|
e?.(!0);
|
|
5183
5183
|
}, [e]);
|
|
5184
5184
|
}
|
|
@@ -5939,25 +5939,25 @@ Ch = {
|
|
|
5939
5939
|
//#region ../node_modules/.pnpm/@react-aria+datepicker@3.16.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/datepicker/dist/useDatePickerGroup.mjs
|
|
5940
5940
|
function wh(e, t, n) {
|
|
5941
5941
|
let { direction: r } = at(), i = (0, H.useMemo)(() => sf(t), [t]), a = (a) => {
|
|
5942
|
-
if (
|
|
5942
|
+
if (qt(a.currentTarget, Nr(a)) && (a.altKey && (a.key === "ArrowDown" || a.key === "ArrowUp") && "setOpen" in e && (a.preventDefault(), a.stopPropagation(), e.setOpen(!0)), !n)) switch (a.key) {
|
|
5943
5943
|
case "ArrowLeft":
|
|
5944
5944
|
if (a.preventDefault(), a.stopPropagation(), r === "rtl") {
|
|
5945
5945
|
if (t.current) {
|
|
5946
|
-
let e =
|
|
5946
|
+
let e = Nr(a), n = Th(t.current, e.getBoundingClientRect().left, -1);
|
|
5947
5947
|
n && n.focus();
|
|
5948
5948
|
}
|
|
5949
5949
|
} else i.focusPrevious();
|
|
5950
5950
|
break;
|
|
5951
5951
|
case "ArrowRight": if (a.preventDefault(), a.stopPropagation(), r === "rtl") {
|
|
5952
5952
|
if (t.current) {
|
|
5953
|
-
let e =
|
|
5953
|
+
let e = Nr(a), n = Th(t.current, e.getBoundingClientRect().left, 1);
|
|
5954
5954
|
n && n.focus();
|
|
5955
5955
|
}
|
|
5956
5956
|
} else i.focusNext();
|
|
5957
5957
|
}
|
|
5958
5958
|
}, o = () => {
|
|
5959
5959
|
if (!t.current) return;
|
|
5960
|
-
let e = window.event ?
|
|
5960
|
+
let e = window.event ? Nr(window.event) : null, n = of(t.current, { tabbable: !0 });
|
|
5961
5961
|
if (e &&= (n.currentNode = e, n.previousNode()), !e) {
|
|
5962
5962
|
let t;
|
|
5963
5963
|
do
|
|
@@ -5970,7 +5970,7 @@ function wh(e, t, n) {
|
|
|
5970
5970
|
else break;
|
|
5971
5971
|
}
|
|
5972
5972
|
e && e.focus();
|
|
5973
|
-
}, { pressProps: s } =
|
|
5973
|
+
}, { pressProps: s } = Wn({
|
|
5974
5974
|
preventFocusOnPress: !0,
|
|
5975
5975
|
allowTextSelectionOnPress: !0,
|
|
5976
5976
|
onPressStart(e) {
|
|
@@ -5980,7 +5980,7 @@ function wh(e, t, n) {
|
|
|
5980
5980
|
(e.pointerType === "touch" || e.pointerType === "pen") && o();
|
|
5981
5981
|
}
|
|
5982
5982
|
});
|
|
5983
|
-
return
|
|
5983
|
+
return Vt(s, { onKeyDown: a });
|
|
5984
5984
|
}
|
|
5985
5985
|
function Th(e, t, n) {
|
|
5986
5986
|
let r = of(e, { tabbable: !0 }), i = r.nextNode(), a = null, o = Infinity;
|
|
@@ -5997,12 +5997,12 @@ function Eh(e) {
|
|
|
5997
5997
|
}
|
|
5998
5998
|
var Dh = /* @__PURE__ */ new WeakMap(), Oh = "__role_" + Date.now(), kh = "__focusManager_" + Date.now();
|
|
5999
5999
|
function Ah(e, t, n) {
|
|
6000
|
-
let { isInvalid: r, validationErrors: i, validationDetails: a } = t.displayValidation, { labelProps: o, fieldProps: s, descriptionProps: c, errorMessageProps: l } =
|
|
6000
|
+
let { isInvalid: r, validationErrors: i, validationDetails: a } = t.displayValidation, { labelProps: o, fieldProps: s, descriptionProps: c, errorMessageProps: l } = Tn({
|
|
6001
6001
|
...e,
|
|
6002
6002
|
labelElementType: "span",
|
|
6003
6003
|
isInvalid: r,
|
|
6004
6004
|
errorMessage: e.errorMessage || i
|
|
6005
|
-
}), u = (0, H.useRef)(null), { focusWithinProps: d } =
|
|
6005
|
+
}), u = (0, H.useRef)(null), { focusWithinProps: d } = dr({
|
|
6006
6006
|
...e,
|
|
6007
6007
|
onFocusWithin(n) {
|
|
6008
6008
|
var r;
|
|
@@ -6013,7 +6013,7 @@ function Ah(e, t, n) {
|
|
|
6013
6013
|
t.confirmPlaceholder(), t.value !== u.current && t.commitValidation(), (r = e.onBlur) == null || r.call(e, n);
|
|
6014
6014
|
},
|
|
6015
6015
|
onFocusWithinChange: e.onFocusChange
|
|
6016
|
-
}), f =
|
|
6016
|
+
}), f = rr(Eh(Ch), "@react-aria/datepicker"), p = t.maxGranularity === "hour" ? "selectedTimeDescription" : "selectedDateDescription", m = t.maxGranularity === "hour" ? "time" : "date", h = xc(t.value ? f.format(p, { [m]: t.formatValue({ month: "long" }) }) : ""), g = e[Oh] === "presentation" ? s["aria-describedby"] : [h["aria-describedby"], s["aria-describedby"]].filter(Boolean).join(" ") || void 0, _ = e[kh], v = (0, H.useMemo)(() => _ || sf(n), [_, n]), y = wh(t, n, e[Oh] === "presentation");
|
|
6017
6017
|
Dh.set(t, {
|
|
6018
6018
|
ariaLabel: e["aria-label"],
|
|
6019
6019
|
ariaLabelledBy: [o.id, e["aria-labelledby"]].filter(Boolean).join(" ") || void 0,
|
|
@@ -6021,13 +6021,13 @@ function Ah(e, t, n) {
|
|
|
6021
6021
|
focusManager: v
|
|
6022
6022
|
});
|
|
6023
6023
|
let b = (0, H.useRef)(e.autoFocus), x;
|
|
6024
|
-
x = e[Oh] === "presentation" ? { role: "presentation" } :
|
|
6024
|
+
x = e[Oh] === "presentation" ? { role: "presentation" } : Vt(s, {
|
|
6025
6025
|
role: "group",
|
|
6026
6026
|
"aria-disabled": e.isDisabled || void 0,
|
|
6027
6027
|
"aria-describedby": g
|
|
6028
6028
|
}), (0, H.useEffect)(() => {
|
|
6029
6029
|
b.current && v.focusFirst(), b.current = !1;
|
|
6030
|
-
}, [v]),
|
|
6030
|
+
}, [v]), Ft(e.inputRef, t.defaultValue, t.setValue), cn({
|
|
6031
6031
|
...e,
|
|
6032
6032
|
focus() {
|
|
6033
6033
|
v.focusFirst();
|
|
@@ -6041,7 +6041,7 @@ function Ah(e, t, n) {
|
|
|
6041
6041
|
disabled: e.isDisabled
|
|
6042
6042
|
};
|
|
6043
6043
|
e.validationBehavior === "native" && (S.type = "text", S.hidden = !0, S.required = e.isRequired, S.onChange = () => {});
|
|
6044
|
-
let C =
|
|
6044
|
+
let C = sn(e);
|
|
6045
6045
|
return {
|
|
6046
6046
|
labelProps: {
|
|
6047
6047
|
...o,
|
|
@@ -6049,7 +6049,7 @@ function Ah(e, t, n) {
|
|
|
6049
6049
|
v.focusFirst();
|
|
6050
6050
|
}
|
|
6051
6051
|
},
|
|
6052
|
-
fieldProps:
|
|
6052
|
+
fieldProps: Vt(C, x, y, d, {
|
|
6053
6053
|
onKeyDown(t) {
|
|
6054
6054
|
e.onKeyDown && e.onKeyDown(t);
|
|
6055
6055
|
},
|
|
@@ -6076,17 +6076,17 @@ function Mh(e) {
|
|
|
6076
6076
|
return e && e.__esModule ? e.default : e;
|
|
6077
6077
|
}
|
|
6078
6078
|
function Nh(e, t, n) {
|
|
6079
|
-
let r =
|
|
6079
|
+
let r = Ut(), i = Ut(), a = Ut(), o = rr(Mh(Ch), "@react-aria/datepicker"), { isInvalid: s, validationErrors: c, validationDetails: l } = t.displayValidation, { labelProps: u, fieldProps: d, descriptionProps: f, errorMessageProps: p } = Tn({
|
|
6080
6080
|
...e,
|
|
6081
6081
|
labelElementType: "span",
|
|
6082
6082
|
isInvalid: s,
|
|
6083
6083
|
errorMessage: e.errorMessage || c
|
|
6084
|
-
}), m = wh(t, n), h = d["aria-labelledby"] || d.id, { locale: g } = at(), _ = t.formatValue(g, { month: "long" }), v = xc(_ ? o.format("selectedDateDescription", { date: _ }) : ""), y = [v["aria-describedby"], d["aria-describedby"]].filter(Boolean).join(" ") || void 0, b =
|
|
6084
|
+
}), m = wh(t, n), h = d["aria-labelledby"] || d.id, { locale: g } = at(), _ = t.formatValue(g, { month: "long" }), v = xc(_ ? o.format("selectedDateDescription", { date: _ }) : ""), y = [v["aria-describedby"], d["aria-describedby"]].filter(Boolean).join(" ") || void 0, b = sn(e), x = (0, H.useMemo)(() => sf(n), [n]), S = (0, H.useRef)(!1), { focusWithinProps: C } = dr({
|
|
6085
6085
|
...e,
|
|
6086
6086
|
isDisabled: t.isOpen,
|
|
6087
6087
|
onBlurWithin: (t) => {
|
|
6088
6088
|
let n = document.getElementById(i);
|
|
6089
|
-
if (!
|
|
6089
|
+
if (!qt(n, t.relatedTarget)) {
|
|
6090
6090
|
var r, a;
|
|
6091
6091
|
S.current = !1, (r = e.onBlur) == null || r.call(e, t), (a = e.onFocusChange) == null || a.call(e, !1);
|
|
6092
6092
|
}
|
|
@@ -6099,7 +6099,7 @@ function Nh(e, t, n) {
|
|
|
6099
6099
|
}
|
|
6100
6100
|
});
|
|
6101
6101
|
return {
|
|
6102
|
-
groupProps:
|
|
6102
|
+
groupProps: Vt(b, m, d, v, C, {
|
|
6103
6103
|
role: "group",
|
|
6104
6104
|
"aria-disabled": e.isDisabled || null,
|
|
6105
6105
|
"aria-labelledby": h,
|
|
@@ -6134,7 +6134,7 @@ function Nh(e, t, n) {
|
|
|
6134
6134
|
isReadOnly: e.isReadOnly,
|
|
6135
6135
|
isRequired: e.isRequired,
|
|
6136
6136
|
validationBehavior: e.validationBehavior,
|
|
6137
|
-
[
|
|
6137
|
+
[Bn]: t,
|
|
6138
6138
|
autoFocus: e.autoFocus,
|
|
6139
6139
|
name: e.name,
|
|
6140
6140
|
form: e.form
|
|
@@ -6182,7 +6182,7 @@ function Ph(e) {
|
|
|
6182
6182
|
return e && e.__esModule ? e.default : e;
|
|
6183
6183
|
}
|
|
6184
6184
|
function Fh() {
|
|
6185
|
-
let { locale: e } = at(), t =
|
|
6185
|
+
let { locale: e } = at(), t = Fn(Ph(Ch), "@react-aria/datepicker");
|
|
6186
6186
|
return (0, H.useMemo)(() => {
|
|
6187
6187
|
try {
|
|
6188
6188
|
return new Intl.DisplayNames(e, { type: "dateTimeField" });
|
|
@@ -6214,7 +6214,7 @@ function Lh(e, t, n) {
|
|
|
6214
6214
|
let e = p.format(t.dateValue);
|
|
6215
6215
|
d = e === d ? e : `${d} \u{2013} ${e}`;
|
|
6216
6216
|
} else e.type === "hour" && !e.isPlaceholder && (d = m.format(t.dateValue));
|
|
6217
|
-
let { spinButtonProps: h } =
|
|
6217
|
+
let { spinButtonProps: h } = Sn({
|
|
6218
6218
|
value: e.value ?? void 0,
|
|
6219
6219
|
textValue: d,
|
|
6220
6220
|
minValue: e.minValue,
|
|
@@ -6240,13 +6240,13 @@ function Lh(e, t, n) {
|
|
|
6240
6240
|
onDecrementToMin: () => {
|
|
6241
6241
|
r.current = "", t.decrementToMin(e.type);
|
|
6242
6242
|
}
|
|
6243
|
-
}), g = (0, H.useMemo)(() => new
|
|
6243
|
+
}), g = (0, H.useMemo)(() => new vr(i, { maximumFractionDigits: 0 }), [i]), _ = () => {
|
|
6244
6244
|
if (e.text === e.placeholder && u.focusPrevious(), g.isValidPartialNumber(e.text) && !t.isReadOnly && !e.isPlaceholder) {
|
|
6245
6245
|
let n = e.text.slice(0, -1), i = g.parse(n);
|
|
6246
6246
|
n = i === 0 ? "" : n, n.length === 0 || i === 0 ? t.clearSegment(e.type) : t.setSegment(e.type, i), r.current = n;
|
|
6247
6247
|
} else (e.type === "dayPeriod" || e.type === "era") && t.clearSegment(e.type);
|
|
6248
6248
|
}, v = (e) => {
|
|
6249
|
-
if (e.key === "a" && (
|
|
6249
|
+
if (e.key === "a" && (Mt() ? e.metaKey : e.ctrlKey) && e.preventDefault(), !(e.ctrlKey || e.metaKey || e.shiftKey || e.altKey)) switch (e.key) {
|
|
6250
6250
|
case "Backspace":
|
|
6251
6251
|
case "Delete": e.preventDefault(), e.stopPropagation(), _();
|
|
6252
6252
|
}
|
|
@@ -6314,12 +6314,12 @@ function Lh(e, t, n) {
|
|
|
6314
6314
|
}, E = () => {
|
|
6315
6315
|
r.current = "", n.current && Cc(n.current, { containingElement: hc(n.current) }), window.getSelection()?.collapse(n.current);
|
|
6316
6316
|
}, D = (0, H.useRef)(typeof document < "u" ? document : null);
|
|
6317
|
-
|
|
6317
|
+
Dr(D, "selectionchange", () => {
|
|
6318
6318
|
let e = window.getSelection();
|
|
6319
|
-
e?.anchorNode &&
|
|
6319
|
+
e?.anchorNode && qt(n.current, e?.anchorNode) && e.collapse(n.current);
|
|
6320
6320
|
});
|
|
6321
6321
|
let O = (0, H.useRef)("");
|
|
6322
|
-
|
|
6322
|
+
Dr(n, "beforeinput", (r) => {
|
|
6323
6323
|
if (n.current) switch (r.preventDefault(), r.inputType) {
|
|
6324
6324
|
case "deleteContentBackward":
|
|
6325
6325
|
case "deleteContentForward":
|
|
@@ -6330,16 +6330,16 @@ function Lh(e, t, n) {
|
|
|
6330
6330
|
break;
|
|
6331
6331
|
default: r.data != null && T(r.data);
|
|
6332
6332
|
}
|
|
6333
|
-
}),
|
|
6333
|
+
}), Dr(n, "input", (e) => {
|
|
6334
6334
|
let { inputType: t, data: r } = e;
|
|
6335
6335
|
t === "insertCompositionText" && (n.current && (n.current.textContent = O.current), r != null && (y(x, r) || y(S, r)) && T(r));
|
|
6336
|
-
}),
|
|
6336
|
+
}), Xt(() => {
|
|
6337
6337
|
let e = n.current;
|
|
6338
6338
|
return () => {
|
|
6339
|
-
|
|
6339
|
+
dn() === e && (u.focusPrevious() || u.focusNext());
|
|
6340
6340
|
};
|
|
6341
6341
|
}, [n, u]);
|
|
6342
|
-
let k =
|
|
6342
|
+
let k = en() || e.type === "timeZoneName" ? {
|
|
6343
6343
|
role: "textbox",
|
|
6344
6344
|
"aria-valuemax": null,
|
|
6345
6345
|
"aria-valuemin": null,
|
|
@@ -6347,7 +6347,7 @@ function Lh(e, t, n) {
|
|
|
6347
6347
|
"aria-valuenow": null
|
|
6348
6348
|
} : {};
|
|
6349
6349
|
e !== (0, H.useMemo)(() => t.segments.find((e) => e.isEditable), [t.segments]) && !t.isInvalid && (l = void 0);
|
|
6350
|
-
let A =
|
|
6350
|
+
let A = Ut(), j = !t.isDisabled && !t.isReadOnly && e.isEditable, M = e.type === "literal" ? "" : o.of(e.type), N = Lt({
|
|
6351
6351
|
"aria-label": `${M}${s ? `, ${s}` : ""}${c ? ", " : ""}`,
|
|
6352
6352
|
"aria-labelledby": c
|
|
6353
6353
|
});
|
|
@@ -6358,7 +6358,7 @@ function Lh(e, t, n) {
|
|
|
6358
6358
|
let t = f[e.type];
|
|
6359
6359
|
(t === "numeric" || t === "2-digit") && (P.direction = "ltr");
|
|
6360
6360
|
}
|
|
6361
|
-
return { segmentProps:
|
|
6361
|
+
return { segmentProps: Vt(h, N, {
|
|
6362
6362
|
id: A,
|
|
6363
6363
|
...k,
|
|
6364
6364
|
"aria-invalid": t.isInvalid ? "true" : void 0,
|
|
@@ -6395,7 +6395,7 @@ function zh(e) {
|
|
|
6395
6395
|
return e && e.__esModule ? e.default : e;
|
|
6396
6396
|
}
|
|
6397
6397
|
function Bh(e, t, n) {
|
|
6398
|
-
let r =
|
|
6398
|
+
let r = rr(zh(Ch), "@react-aria/datepicker"), { isInvalid: i, validationErrors: a, validationDetails: o } = t.displayValidation, { labelProps: s, fieldProps: c, descriptionProps: l, errorMessageProps: u } = Tn({
|
|
6399
6399
|
...e,
|
|
6400
6400
|
labelElementType: "span",
|
|
6401
6401
|
isInvalid: i,
|
|
@@ -6409,7 +6409,7 @@ function Bh(e, t, n) {
|
|
|
6409
6409
|
}, g = {
|
|
6410
6410
|
"aria-label": r.format("endDate"),
|
|
6411
6411
|
"aria-labelledby": d
|
|
6412
|
-
}, _ =
|
|
6412
|
+
}, _ = Ut(), v = Ut(), y = wh(t, n), b = [m["aria-describedby"], c["aria-describedby"]].filter(Boolean).join(" ") || void 0, x = (0, H.useMemo)(() => sf(n, { accept: (e) => e.id !== _ }), [n, _]), S = {
|
|
6413
6413
|
[kh]: x,
|
|
6414
6414
|
[Oh]: "presentation",
|
|
6415
6415
|
"aria-describedby": b,
|
|
@@ -6422,12 +6422,12 @@ function Bh(e, t, n) {
|
|
|
6422
6422
|
isReadOnly: e.isReadOnly,
|
|
6423
6423
|
isRequired: e.isRequired,
|
|
6424
6424
|
validationBehavior: e.validationBehavior
|
|
6425
|
-
}, C =
|
|
6425
|
+
}, C = sn(e), w = (0, H.useRef)(!1), { focusWithinProps: T } = dr({
|
|
6426
6426
|
...e,
|
|
6427
6427
|
isDisabled: t.isOpen,
|
|
6428
6428
|
onBlurWithin: (t) => {
|
|
6429
6429
|
let n = document.getElementById(v);
|
|
6430
|
-
if (!
|
|
6430
|
+
if (!qt(n, t.relatedTarget)) {
|
|
6431
6431
|
var r, i;
|
|
6432
6432
|
w.current = !1, (r = e.onBlur) == null || r.call(e, t), (i = e.onFocusChange) == null || i.call(e, !1);
|
|
6433
6433
|
}
|
|
@@ -6438,9 +6438,9 @@ function Bh(e, t, n) {
|
|
|
6438
6438
|
w.current = !0, (n = e.onFocus) == null || n.call(e, t), (r = e.onFocusChange) == null || r.call(e, !0);
|
|
6439
6439
|
}
|
|
6440
6440
|
}
|
|
6441
|
-
}), E = (0, H.useRef)(
|
|
6441
|
+
}), E = (0, H.useRef)(cr), D = (0, H.useRef)(cr);
|
|
6442
6442
|
return {
|
|
6443
|
-
groupProps:
|
|
6443
|
+
groupProps: Vt(C, y, c, m, T, {
|
|
6444
6444
|
role: "group",
|
|
6445
6445
|
"aria-disabled": e.isDisabled || null,
|
|
6446
6446
|
"aria-describedby": b,
|
|
@@ -6481,11 +6481,11 @@ function Bh(e, t, n) {
|
|
|
6481
6481
|
autoFocus: e.autoFocus,
|
|
6482
6482
|
name: e.startName,
|
|
6483
6483
|
form: e.form,
|
|
6484
|
-
[
|
|
6484
|
+
[Bn]: {
|
|
6485
6485
|
realtimeValidation: t.realtimeValidation,
|
|
6486
6486
|
displayValidation: t.displayValidation,
|
|
6487
6487
|
updateValidation(e) {
|
|
6488
|
-
E.current = e, t.updateValidation(
|
|
6488
|
+
E.current = e, t.updateValidation(kt(e, D.current));
|
|
6489
6489
|
},
|
|
6490
6490
|
resetValidation: t.resetValidation,
|
|
6491
6491
|
commitValidation: t.commitValidation
|
|
@@ -6499,11 +6499,11 @@ function Bh(e, t, n) {
|
|
|
6499
6499
|
onChange: (e) => t.setDateTime("end", e),
|
|
6500
6500
|
name: e.endName,
|
|
6501
6501
|
form: e.form,
|
|
6502
|
-
[
|
|
6502
|
+
[Bn]: {
|
|
6503
6503
|
realtimeValidation: t.realtimeValidation,
|
|
6504
6504
|
displayValidation: t.displayValidation,
|
|
6505
6505
|
updateValidation(e) {
|
|
6506
|
-
D.current = e, t.updateValidation(
|
|
6506
|
+
D.current = e, t.updateValidation(kt(E.current, e));
|
|
6507
6507
|
},
|
|
6508
6508
|
resetValidation: t.resetValidation,
|
|
6509
6509
|
commitValidation: t.commitValidation
|
|
@@ -6535,14 +6535,14 @@ function Bh(e, t, n) {
|
|
|
6535
6535
|
//#endregion
|
|
6536
6536
|
//#region ../node_modules/.pnpm/@react-aria+dialog@3.5.34_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/dialog/dist/useDialog.mjs
|
|
6537
6537
|
function Vh(e, t) {
|
|
6538
|
-
let { role: n = "dialog" } = e, r =
|
|
6538
|
+
let { role: n = "dialog" } = e, r = xn();
|
|
6539
6539
|
r = e["aria-label"] ? void 0 : r;
|
|
6540
6540
|
let i = (0, H.useRef)(!1);
|
|
6541
6541
|
return (0, H.useEffect)(() => {
|
|
6542
|
-
if (t.current && !
|
|
6543
|
-
|
|
6542
|
+
if (t.current && !Qt(t.current)) {
|
|
6543
|
+
ar(t.current);
|
|
6544
6544
|
let e = setTimeout(() => {
|
|
6545
|
-
(
|
|
6545
|
+
(dn() === t.current || dn() === document.body) && (i.current = !0, t.current && (t.current.blur(), ar(t.current)), i.current = !1);
|
|
6546
6546
|
}, 500);
|
|
6547
6547
|
return () => {
|
|
6548
6548
|
clearTimeout(e);
|
|
@@ -6550,7 +6550,7 @@ function Vh(e, t) {
|
|
|
6550
6550
|
}
|
|
6551
6551
|
}, [t]), Hm(), {
|
|
6552
6552
|
dialogProps: {
|
|
6553
|
-
...
|
|
6553
|
+
...sn(e, { labelable: !0 }),
|
|
6554
6554
|
role: n,
|
|
6555
6555
|
tabIndex: -1,
|
|
6556
6556
|
"aria-labelledby": e["aria-labelledby"] || r,
|
|
@@ -6616,7 +6616,7 @@ function Yh(e, t) {
|
|
|
6616
6616
|
return n ? I(n, t) : !1;
|
|
6617
6617
|
}
|
|
6618
6618
|
function Xh(e) {
|
|
6619
|
-
return
|
|
6619
|
+
return ae(e) ?? null;
|
|
6620
6620
|
}
|
|
6621
6621
|
Ci(null);
|
|
6622
6622
|
var Zh = Ci(/* @__PURE__ */ new Map());
|
|
@@ -7218,7 +7218,7 @@ var u_ = H.forwardRef((e, t) => {
|
|
|
7218
7218
|
let c;
|
|
7219
7219
|
n[5] === s ? c = n[6] : (c = a("flex items-center border-b px-3", s), n[5] = s, n[6] = c);
|
|
7220
7220
|
let l;
|
|
7221
|
-
n[7] === i ? l = n[8] : (l = i === null ? null : /* @__PURE__ */ (0, U.jsx)(
|
|
7221
|
+
n[7] === i ? l = n[8] : (l = i === null ? null : /* @__PURE__ */ (0, U.jsx)(ur, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), n[7] = i, n[8] = l);
|
|
7222
7222
|
let u;
|
|
7223
7223
|
n[9] === r ? u = n[10] : (u = a("placeholder:text-foreground-muted flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", r), n[9] = r, n[10] = u);
|
|
7224
7224
|
let d;
|
|
@@ -7320,35 +7320,35 @@ var g_ = (0, H.createContext)({
|
|
|
7320
7320
|
t[29] === m ? R = t[30] : (R = (e) => {
|
|
7321
7321
|
m?.(e);
|
|
7322
7322
|
}, t[29] = m, t[30] = R);
|
|
7323
|
-
let
|
|
7324
|
-
t[31] !== s || t[32] !== R || t[33] !== E ? (
|
|
7323
|
+
let z;
|
|
7324
|
+
t[31] !== s || t[32] !== R || t[33] !== E ? (z = {
|
|
7325
7325
|
prop: E,
|
|
7326
7326
|
defaultProp: s,
|
|
7327
7327
|
onChange: R
|
|
7328
|
-
}, t[31] = s, t[32] = R, t[33] = E, t[34] =
|
|
7329
|
-
let [
|
|
7330
|
-
t[35] ===
|
|
7331
|
-
let
|
|
7332
|
-
t[37] !== d || t[38] !== D || t[39] !== I || t[40] !==
|
|
7328
|
+
}, t[31] = s, t[32] = R, t[33] = E, t[34] = z) : z = t[34];
|
|
7329
|
+
let [B, ee] = $r(z), te;
|
|
7330
|
+
t[35] === B ? te = t[36] : (te = (e) => Array.isArray(B) ? B.includes(e) : B === e, t[35] = B, t[36] = te);
|
|
7331
|
+
let ne = te, re;
|
|
7332
|
+
t[37] !== d || t[38] !== D || t[39] !== I || t[40] !== ee || t[41] !== B ? (re = (e) => {
|
|
7333
7333
|
let t = e;
|
|
7334
7334
|
if (D) {
|
|
7335
|
-
if (Array.isArray(
|
|
7336
|
-
if (
|
|
7337
|
-
let n =
|
|
7335
|
+
if (Array.isArray(B)) {
|
|
7336
|
+
if (B.includes(t)) {
|
|
7337
|
+
let n = B.filter((t) => t !== e);
|
|
7338
7338
|
t = n.length > 0 ? n : [];
|
|
7339
|
-
} else t = [...
|
|
7339
|
+
} else t = [...B, t];
|
|
7340
7340
|
} else t = [t];
|
|
7341
|
-
} else
|
|
7342
|
-
|
|
7343
|
-
}, t[37] = d, t[38] = D, t[39] = I, t[40] =
|
|
7344
|
-
let
|
|
7345
|
-
t[43] !== j || t[44] !== c || t[45] !== D || t[46] !== g || t[47] !==
|
|
7346
|
-
let
|
|
7347
|
-
t[49] !==
|
|
7348
|
-
isSelected:
|
|
7349
|
-
onSelect:
|
|
7350
|
-
}, t[49] =
|
|
7351
|
-
let
|
|
7341
|
+
} else B === e && (t = null);
|
|
7342
|
+
ee(t), (d ?? D) || I(!1);
|
|
7343
|
+
}, t[37] = d, t[38] = D, t[39] = I, t[40] = ee, t[41] = B, t[42] = re) : re = t[42];
|
|
7344
|
+
let ie = re, ae;
|
|
7345
|
+
t[43] !== j || t[44] !== c || t[45] !== D || t[46] !== g || t[47] !== B ? (ae = () => D && j && g ? g : B == null ? g ?? "--" : Array.isArray(B) ? B.length === 0 ? g ?? "--" : B.length === 1 && c !== void 0 ? c(B[0]) : `${B.length} selected` : c === void 0 ? g ?? "--" : c(B), t[43] = j, t[44] = c, t[45] = D, t[46] = g, t[47] = B, t[48] = ae) : ae = t[48];
|
|
7346
|
+
let oe = ae, se;
|
|
7347
|
+
t[49] !== ie || t[50] !== ne ? (se = {
|
|
7348
|
+
isSelected: ne,
|
|
7349
|
+
onSelect: ie
|
|
7350
|
+
}, t[49] = ie, t[50] = ne, t[51] = se) : se = t[51];
|
|
7351
|
+
let ce = se, le;
|
|
7352
7352
|
t[52] === Symbol.for("react.memo_cache_sentinel") ? (le = a("relative"), t[52] = le) : le = t[52];
|
|
7353
7353
|
let ue;
|
|
7354
7354
|
t[53] !== M || t[54] !== I ? (ue = (e) => {
|
|
@@ -7357,7 +7357,7 @@ var g_ = (0, H.createContext)({
|
|
|
7357
7357
|
let fe = M && "cursor-not-allowed opacity-50", pe;
|
|
7358
7358
|
t[56] !== i || t[57] !== fe ? (pe = a("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", fe, i), t[56] = i, t[57] = fe, t[58] = pe) : pe = t[58];
|
|
7359
7359
|
let me;
|
|
7360
|
-
t[59] !== _ || t[60] !==
|
|
7360
|
+
t[59] !== _ || t[60] !== oe || t[61] !== B ? (me = _ ? _(B ?? null) : oe(), t[59] = _, t[60] = oe, t[61] = B, t[62] = me) : me = t[62];
|
|
7361
7361
|
let he;
|
|
7362
7362
|
t[63] === me ? he = t[64] : (he = /* @__PURE__ */ (0, U.jsx)("span", {
|
|
7363
7363
|
className: "truncate flex-1 min-w-0",
|
|
@@ -7388,10 +7388,10 @@ var g_ = (0, H.createContext)({
|
|
|
7388
7388
|
let be;
|
|
7389
7389
|
t[76] === A ? be = t[77] : (be = /* @__PURE__ */ (0, U.jsx)(f_, { children: A }), t[76] = A, t[77] = be);
|
|
7390
7390
|
let xe;
|
|
7391
|
-
t[78] !== n || t[79] !==
|
|
7392
|
-
value:
|
|
7391
|
+
t[78] !== n || t[79] !== ce ? (xe = /* @__PURE__ */ (0, U.jsx)(g_, {
|
|
7392
|
+
value: ce,
|
|
7393
7393
|
children: n
|
|
7394
|
-
}), t[78] = n, t[79] =
|
|
7394
|
+
}), t[78] = n, t[79] = ce, t[80] = xe) : xe = t[80];
|
|
7395
7395
|
let Se;
|
|
7396
7396
|
t[81] !== be || t[82] !== xe ? (Se = /* @__PURE__ */ (0, U.jsxs)(d_, {
|
|
7397
7397
|
className: "max-h-60 py-.5",
|
|
@@ -7414,18 +7414,18 @@ var g_ = (0, H.createContext)({
|
|
|
7414
7414
|
children: [ve, Ce]
|
|
7415
7415
|
}), t[89] = L, t[90] = ue, t[91] = ve, t[92] = Ce, t[93] = we) : we = t[93];
|
|
7416
7416
|
let Te;
|
|
7417
|
-
t[94] !== j || t[95] !== r || t[96] !== M || t[97] !== c || t[98] !==
|
|
7417
|
+
t[94] !== j || t[95] !== r || t[96] !== M || t[97] !== c || t[98] !== ie || t[99] !== D || t[100] !== B ? (Te = D && j && /* @__PURE__ */ (0, U.jsx)("div", {
|
|
7418
7418
|
className: a("flex flex-col gap-1 items-start", r),
|
|
7419
|
-
children: Array.isArray(
|
|
7419
|
+
children: Array.isArray(B) && B.map((e) => e == null ? null : /* @__PURE__ */ (0, U.jsxs)(Xe, {
|
|
7420
7420
|
variant: "secondary",
|
|
7421
7421
|
children: [c?.(e) ?? String(e), /* @__PURE__ */ (0, U.jsx)(de, {
|
|
7422
7422
|
onClick: () => {
|
|
7423
|
-
M ||
|
|
7423
|
+
M || ie(e);
|
|
7424
7424
|
},
|
|
7425
7425
|
className: a("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", M && "pointer-events-none")
|
|
7426
7426
|
})]
|
|
7427
7427
|
}, String(e)))
|
|
7428
|
-
}), t[94] = j, t[95] = r, t[96] = M, t[97] = c, t[98] =
|
|
7428
|
+
}), t[94] = j, t[95] = r, t[96] = M, t[97] = c, t[98] = ie, t[99] = D, t[100] = B, t[101] = Te) : Te = t[101];
|
|
7429
7429
|
let Ee;
|
|
7430
7430
|
return t[102] !== v || t[103] !== we || t[104] !== Te ? (Ee = /* @__PURE__ */ (0, U.jsxs)("div", {
|
|
7431
7431
|
className: le,
|
|
@@ -7479,7 +7479,7 @@ var b_ = H.forwardRef((e, t) => {
|
|
|
7479
7479
|
let c;
|
|
7480
7480
|
n[6] === r ? c = n[7] : (c = r ?? /* @__PURE__ */ (0, U.jsx)(As, {
|
|
7481
7481
|
className: "flex items-center justify-center",
|
|
7482
|
-
children: /* @__PURE__ */ (0, U.jsx)(
|
|
7482
|
+
children: /* @__PURE__ */ (0, U.jsx)(ir, { className: "h-[10px] w-[10px] fill-primary text-current" })
|
|
7483
7483
|
}), n[6] = r, n[7] = c);
|
|
7484
7484
|
let l;
|
|
7485
7485
|
return n[8] !== o || n[9] !== t || n[10] !== s || n[11] !== c ? (l = /* @__PURE__ */ (0, U.jsx)(ks, {
|
|
@@ -7540,7 +7540,7 @@ function O_(e, t, n) {
|
|
|
7540
7540
|
//#endregion
|
|
7541
7541
|
//#region ../node_modules/.pnpm/@react-stately+calendar@3.9.3_react@19.2.4/node_modules/@react-stately/calendar/dist/useCalendarState.mjs
|
|
7542
7542
|
function k_(e) {
|
|
7543
|
-
let t = (0, H.useMemo)(() => new $e(e.locale), [e.locale]), n = (0, H.useMemo)(() => t.resolvedOptions(), [t]), { locale: r, createCalendar: i, visibleDuration: a = { months: 1 }, minValue: o, maxValue: s, selectionAlignment: c, isDateUnavailable: l, pageBehavior: u = "visible", firstDayOfWeek: d } = e, f = (0, H.useMemo)(() => i(n.calendar), [i, n.calendar]), [p, m] =
|
|
7543
|
+
let t = (0, H.useMemo)(() => new $e(e.locale), [e.locale]), n = (0, H.useMemo)(() => t.resolvedOptions(), [t]), { locale: r, createCalendar: i, visibleDuration: a = { months: 1 }, minValue: o, maxValue: s, selectionAlignment: c, isDateUnavailable: l, pageBehavior: u = "visible", firstDayOfWeek: d } = e, f = (0, H.useMemo)(() => i(n.calendar), [i, n.calendar]), [p, m] = Nn(e.value, e.defaultValue ?? null, e.onChange), h = (0, H.useMemo)(() => p ? Ol(Tl(p), f) : null, [p, f]), g = (0, H.useMemo)(() => p && "timeZone" in p ? p.timeZone : n.timeZone, [p, n.timeZone]), _ = (0, H.useMemo)(() => e.focusedValue ? D_(Ol(Tl(e.focusedValue), f), o, s) : void 0, [
|
|
7544
7544
|
e.focusedValue,
|
|
7545
7545
|
f,
|
|
7546
7546
|
o,
|
|
@@ -7552,7 +7552,7 @@ function k_(e) {
|
|
|
7552
7552
|
f,
|
|
7553
7553
|
o,
|
|
7554
7554
|
s
|
|
7555
|
-
]), [y, b] =
|
|
7555
|
+
]), [y, b] = Nn(_, v, e.onFocusChange), [x, S] = (0, H.useState)(() => {
|
|
7556
7556
|
switch (c) {
|
|
7557
7557
|
case "start": return w_(y, a, r, o, s);
|
|
7558
7558
|
case "end": return T_(y, a, r, o, s);
|
|
@@ -7700,7 +7700,7 @@ function A_(e) {
|
|
|
7700
7700
|
//#endregion
|
|
7701
7701
|
//#region ../node_modules/.pnpm/@react-stately+calendar@3.9.3_react@19.2.4/node_modules/@react-stately/calendar/dist/useRangeCalendarState.mjs
|
|
7702
7702
|
function j_(e) {
|
|
7703
|
-
let { value: t, defaultValue: n, onChange: r, createCalendar: i, locale: a, visibleDuration: o = { months: 1 }, minValue: s, maxValue: c, ...l } = e, [u, d] =
|
|
7703
|
+
let { value: t, defaultValue: n, onChange: r, createCalendar: i, locale: a, visibleDuration: o = { months: 1 }, minValue: s, maxValue: c, ...l } = e, [u, d] = Nn(t, n || null, r), [f, p] = (0, H.useState)(null), m = "center";
|
|
7704
7704
|
if (u && u.start && u.end) {
|
|
7705
7705
|
let e = C_(Tl(u.start), o, a, s, c).add(o).subtract({ days: 1 });
|
|
7706
7706
|
u.end.compare(e) > 0 && (m = "start");
|
|
@@ -7789,7 +7789,7 @@ function P_(e, t, n) {
|
|
|
7789
7789
|
//#endregion
|
|
7790
7790
|
//#region ../node_modules/.pnpm/@react-stately+overlays@3.6.23_react@19.2.4/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.mjs
|
|
7791
7791
|
function F_(e) {
|
|
7792
|
-
let [t, n] =
|
|
7792
|
+
let [t, n] = Nn(e.isOpen, e.defaultOpen || !1, e.onOpenChange);
|
|
7793
7793
|
return {
|
|
7794
7794
|
isOpen: t,
|
|
7795
7795
|
setOpen: n,
|
|
@@ -8154,7 +8154,7 @@ gv = {
|
|
|
8154
8154
|
function _v(e) {
|
|
8155
8155
|
return e && e.__esModule ? e.default : e;
|
|
8156
8156
|
}
|
|
8157
|
-
var vv = new
|
|
8157
|
+
var vv = new Rn(_v(gv));
|
|
8158
8158
|
function yv() {
|
|
8159
8159
|
let e = typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
|
|
8160
8160
|
try {
|
|
@@ -8167,7 +8167,7 @@ function yv() {
|
|
|
8167
8167
|
function bv(e, t, n, r, i) {
|
|
8168
8168
|
let a = e != null && n != null && e.compare(n) > 0, o = e != null && t != null && e.compare(t) < 0, s = e != null && r?.(e) || !1, c = a || o || s, l = [];
|
|
8169
8169
|
if (c) {
|
|
8170
|
-
let e = yv(), r =
|
|
8170
|
+
let e = yv(), r = Rn.getGlobalDictionaryForPackage("@react-stately/datepicker") || vv, c = new wr(e, r), u = new $e(e, wv({}, i)), d = u.resolvedOptions().timeZone;
|
|
8171
8171
|
o && t != null && l.push(c.format("rangeUnderflow", { minValue: u.format(t.toDate(d)) })), a && n != null && l.push(c.format("rangeOverflow", { maxValue: u.format(n.toDate(d)) })), s && l.push(c.format("unavailableDate"));
|
|
8172
8172
|
}
|
|
8173
8173
|
return {
|
|
@@ -8189,14 +8189,14 @@ function bv(e, t, n, r, i) {
|
|
|
8189
8189
|
};
|
|
8190
8190
|
}
|
|
8191
8191
|
function xv(e, t, n, r, i) {
|
|
8192
|
-
let a = bv(e?.start ?? null, t, n, r, i), o = bv(e?.end ?? null, t, n, r, i), s =
|
|
8192
|
+
let a = bv(e?.start ?? null, t, n, r, i), o = bv(e?.end ?? null, t, n, r, i), s = kt(a, o);
|
|
8193
8193
|
if (e?.end != null && e.start != null && e.end.compare(e.start) < 0) {
|
|
8194
|
-
let e =
|
|
8195
|
-
s =
|
|
8194
|
+
let e = Rn.getGlobalDictionaryForPackage("@react-stately/datepicker") || vv;
|
|
8195
|
+
s = kt(s, {
|
|
8196
8196
|
isInvalid: !0,
|
|
8197
8197
|
validationErrors: [e.getStringForLocale("rangeReversed", yv())],
|
|
8198
8198
|
validationDetails: {
|
|
8199
|
-
...
|
|
8199
|
+
...xr,
|
|
8200
8200
|
rangeUnderflow: !0,
|
|
8201
8201
|
rangeOverflow: !0,
|
|
8202
8202
|
valid: !1
|
|
@@ -8260,7 +8260,7 @@ function Ov(e, t) {
|
|
|
8260
8260
|
//#endregion
|
|
8261
8261
|
//#region ../node_modules/.pnpm/@react-stately+datepicker@3.16.1_react@19.2.4/node_modules/@react-stately/datepicker/dist/useDatePickerState.mjs
|
|
8262
8262
|
function kv(e) {
|
|
8263
|
-
let t = F_(e), [n, r] =
|
|
8263
|
+
let t = F_(e), [n, r] = Nn(e.value, e.defaultValue || null, e.onChange), [i] = (0, H.useState)(n), a = n || e.placeholderValue || null, [o, s] = Ov(a, e.granularity), c = n == null ? null : n.toDate(s ?? "UTC"), l = o === "hour" || o === "minute" || o === "second", u = e.shouldCloseOnSelect ?? !0, [d, f] = (0, H.useState)(null), [p, m] = (0, H.useState)(null);
|
|
8264
8264
|
if (n && (d = n, "hour" in n && (p = n)), a && !(o in a)) throw Error("Invalid granularity " + o + " for value " + a.toString());
|
|
8265
8265
|
let h = n?.calendar.identifier === "gregory" && n.era === "BC", g = (0, H.useMemo)(() => ({
|
|
8266
8266
|
granularity: o,
|
|
@@ -8282,7 +8282,7 @@ function kv(e) {
|
|
|
8282
8282
|
v,
|
|
8283
8283
|
y,
|
|
8284
8284
|
g
|
|
8285
|
-
]), x =
|
|
8285
|
+
]), x = hr({
|
|
8286
8286
|
...e,
|
|
8287
8287
|
value: n,
|
|
8288
8288
|
builtinValidation: b
|
|
@@ -8327,7 +8327,7 @@ function kv(e) {
|
|
|
8327
8327
|
}
|
|
8328
8328
|
//#endregion
|
|
8329
8329
|
//#region ../node_modules/.pnpm/@react-stately+datepicker@3.16.1_react@19.2.4/node_modules/@react-stately/datepicker/dist/placeholders.mjs
|
|
8330
|
-
var Av = new
|
|
8330
|
+
var Av = new Rn({
|
|
8331
8331
|
ach: {
|
|
8332
8332
|
year: "mwaka",
|
|
8333
8333
|
month: "dwe",
|
|
@@ -8957,7 +8957,7 @@ function zv(e) {
|
|
|
8957
8957
|
t,
|
|
8958
8958
|
e.hourCycle,
|
|
8959
8959
|
n
|
|
8960
|
-
]), [g, _] =
|
|
8960
|
+
]), [g, _] = Nn(e.value, e.defaultValue ?? null, e.onChange), [v] = (0, H.useState)(g), y = (0, H.useMemo)(() => Ev(g, m) ?? null, [g, m]), [b, x] = (0, H.useState)(() => new Mv(m, h, y)), S = m.identifier === "gregory" && b.era === "BC", C = (0, H.useMemo)(() => ({
|
|
8961
8961
|
granularity: d,
|
|
8962
8962
|
maxGranularity: e.maxGranularity ?? "year",
|
|
8963
8963
|
timeZone: f,
|
|
@@ -9029,19 +9029,19 @@ function zv(e) {
|
|
|
9029
9029
|
d
|
|
9030
9030
|
]), R = (e, t) => {
|
|
9031
9031
|
F(b.cycle(e, t, D, O));
|
|
9032
|
-
},
|
|
9032
|
+
}, z = (0, H.useMemo)(() => bv(g, s, c, l, C), [
|
|
9033
9033
|
g,
|
|
9034
9034
|
s,
|
|
9035
9035
|
c,
|
|
9036
9036
|
l,
|
|
9037
9037
|
C
|
|
9038
|
-
]),
|
|
9038
|
+
]), B = hr({
|
|
9039
9039
|
...e,
|
|
9040
9040
|
value: g,
|
|
9041
|
-
builtinValidation:
|
|
9042
|
-
}),
|
|
9041
|
+
builtinValidation: z
|
|
9042
|
+
}), ee = B.displayValidation.isInvalid, te = e.validationState || (ee ? "invalid" : null);
|
|
9043
9043
|
return {
|
|
9044
|
-
...
|
|
9044
|
+
...B,
|
|
9045
9045
|
value: y,
|
|
9046
9046
|
defaultValue: e.defaultValue ?? v,
|
|
9047
9047
|
dateValue: I,
|
|
@@ -9049,8 +9049,8 @@ function zv(e) {
|
|
|
9049
9049
|
setValue: F,
|
|
9050
9050
|
segments: L,
|
|
9051
9051
|
dateFormatter: T,
|
|
9052
|
-
validationState:
|
|
9053
|
-
isInvalid:
|
|
9052
|
+
validationState: te,
|
|
9053
|
+
isInvalid: ee,
|
|
9054
9054
|
granularity: d,
|
|
9055
9055
|
maxGranularity: e.maxGranularity ?? "year",
|
|
9056
9056
|
isDisabled: i,
|
|
@@ -9153,7 +9153,7 @@ function Bv(e, t, n, r, i, a, o) {
|
|
|
9153
9153
|
//#endregion
|
|
9154
9154
|
//#region ../node_modules/.pnpm/@react-stately+datepicker@3.16.1_react@19.2.4/node_modules/@react-stately/datepicker/dist/useDateRangePickerState.mjs
|
|
9155
9155
|
function Vv(e) {
|
|
9156
|
-
let t = F_(e), [n, r] =
|
|
9156
|
+
let t = F_(e), [n, r] = Nn(e.value, e.defaultValue || null, e.onChange), [i] = (0, H.useState)(n), [a, o] = (0, H.useState)(() => n || {
|
|
9157
9157
|
start: null,
|
|
9158
9158
|
end: null
|
|
9159
9159
|
});
|
|
@@ -9201,7 +9201,7 @@ function Vv(e) {
|
|
|
9201
9201
|
C,
|
|
9202
9202
|
w,
|
|
9203
9203
|
x
|
|
9204
|
-
]), E =
|
|
9204
|
+
]), E = hr({
|
|
9205
9205
|
...e,
|
|
9206
9206
|
value: n,
|
|
9207
9207
|
name: (0, H.useMemo)(() => [e.startName, e.endName].filter((e) => e != null), [e.startName, e.endName]),
|
|
@@ -9308,7 +9308,7 @@ function Hv(e) {
|
|
|
9308
9308
|
//#endregion
|
|
9309
9309
|
//#region ../node_modules/.pnpm/@react-stately+datepicker@3.16.1_react@19.2.4/node_modules/@react-stately/datepicker/dist/useTimeFieldState.mjs
|
|
9310
9310
|
function Uv(e) {
|
|
9311
|
-
let { placeholderValue: t = new bu(), minValue: n, maxValue: r, defaultValue: i, granularity: a, validate: o } = e, [s, c] =
|
|
9311
|
+
let { placeholderValue: t = new bu(), minValue: n, maxValue: r, defaultValue: i, granularity: a, validate: o } = e, [s, c] = Nn(e.value, i ?? null, e.onChange), l = s || t, u = l && "day" in l ? l : void 0, d = i && "timeZone" in i ? i.timeZone : void 0, f = (0, H.useMemo)(() => {
|
|
9312
9312
|
let e = l && "timeZone" in l ? l.timeZone : void 0;
|
|
9313
9313
|
return (e || d) && t ? kl(Wv(t), e || d) : Wv(t);
|
|
9314
9314
|
}, [
|
|
@@ -9341,12 +9341,12 @@ function Wv(e, t = Jc(el())) {
|
|
|
9341
9341
|
//#endregion
|
|
9342
9342
|
//#region ../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-aria-components/dist/Calendar.mjs
|
|
9343
9343
|
var Gv = /*#__PURE__*/ (0, H.createContext)(null), Kv = /*#__PURE__*/ (0, H.createContext)(null), qv = /*#__PURE__*/ (0, H.createContext)(null), Jv = /*#__PURE__*/ (0, H.createContext)(null), Yv = /*#__PURE__*/ (0, H.forwardRef)(function(e, t) {
|
|
9344
|
-
[e, t] =
|
|
9344
|
+
[e, t] = Mr(e, t, Gv);
|
|
9345
9345
|
let { locale: n } = at(), r = k_({
|
|
9346
9346
|
...e,
|
|
9347
9347
|
locale: n,
|
|
9348
9348
|
createCalendar: e.createCalendar || Md
|
|
9349
|
-
}), { calendarProps: i, prevButtonProps: a, nextButtonProps: o, errorMessageProps: s, title: c } = tp(e, r), l =
|
|
9349
|
+
}), { calendarProps: i, prevButtonProps: a, nextButtonProps: o, errorMessageProps: s, title: c } = tp(e, r), l = Nt({
|
|
9350
9350
|
...e,
|
|
9351
9351
|
values: {
|
|
9352
9352
|
state: r,
|
|
@@ -9354,15 +9354,15 @@ var Gv = /*#__PURE__*/ (0, H.createContext)(null), Kv = /*#__PURE__*/ (0, H.crea
|
|
|
9354
9354
|
isInvalid: r.isValueInvalid
|
|
9355
9355
|
},
|
|
9356
9356
|
defaultClassName: "react-aria-Calendar"
|
|
9357
|
-
}), u =
|
|
9358
|
-
return /*#__PURE__*/ H.createElement(
|
|
9359
|
-
...
|
|
9357
|
+
}), u = sn(e, { global: !0 });
|
|
9358
|
+
return /*#__PURE__*/ H.createElement(bn.div, {
|
|
9359
|
+
...Vt(u, l, i),
|
|
9360
9360
|
ref: t,
|
|
9361
9361
|
slot: e.slot || void 0,
|
|
9362
9362
|
"data-disabled": e.isDisabled || void 0,
|
|
9363
9363
|
"data-invalid": r.isValueInvalid || void 0
|
|
9364
|
-
}, /*#__PURE__*/ H.createElement(
|
|
9365
|
-
[
|
|
9364
|
+
}, /*#__PURE__*/ H.createElement(un, { values: [
|
|
9365
|
+
[tn, { slots: {
|
|
9366
9366
|
previous: a,
|
|
9367
9367
|
next: o
|
|
9368
9368
|
} }],
|
|
@@ -9373,7 +9373,7 @@ var Gv = /*#__PURE__*/ (0, H.createContext)(null), Kv = /*#__PURE__*/ (0, H.crea
|
|
|
9373
9373
|
}],
|
|
9374
9374
|
[qv, r],
|
|
9375
9375
|
[Gv, e],
|
|
9376
|
-
[
|
|
9376
|
+
[$t, { slots: { errorMessage: s } }]
|
|
9377
9377
|
] }, /*#__PURE__*/ H.createElement(cp, null, /*#__PURE__*/ H.createElement("h2", null, i["aria-label"])), l.children, /*#__PURE__*/ H.createElement(cp, null, /*#__PURE__*/ H.createElement("button", {
|
|
9378
9378
|
"aria-label": o["aria-label"],
|
|
9379
9379
|
disabled: o.isDisabled,
|
|
@@ -9381,12 +9381,12 @@ var Gv = /*#__PURE__*/ (0, H.createContext)(null), Kv = /*#__PURE__*/ (0, H.crea
|
|
|
9381
9381
|
tabIndex: -1
|
|
9382
9382
|
}))));
|
|
9383
9383
|
}), Xv = /*#__PURE__*/ (0, H.forwardRef)(function(e, t) {
|
|
9384
|
-
[e, t] =
|
|
9384
|
+
[e, t] = Mr(e, t, Kv);
|
|
9385
9385
|
let { locale: n } = at(), r = j_({
|
|
9386
9386
|
...e,
|
|
9387
9387
|
locale: n,
|
|
9388
9388
|
createCalendar: e.createCalendar || Md
|
|
9389
|
-
}), { calendarProps: i, prevButtonProps: a, nextButtonProps: o, errorMessageProps: s, title: c } = np(e, r, t), l =
|
|
9389
|
+
}), { calendarProps: i, prevButtonProps: a, nextButtonProps: o, errorMessageProps: s, title: c } = np(e, r, t), l = Nt({
|
|
9390
9390
|
...e,
|
|
9391
9391
|
values: {
|
|
9392
9392
|
state: r,
|
|
@@ -9394,15 +9394,15 @@ var Gv = /*#__PURE__*/ (0, H.createContext)(null), Kv = /*#__PURE__*/ (0, H.crea
|
|
|
9394
9394
|
isInvalid: r.isValueInvalid
|
|
9395
9395
|
},
|
|
9396
9396
|
defaultClassName: "react-aria-RangeCalendar"
|
|
9397
|
-
}), u =
|
|
9398
|
-
return /*#__PURE__*/ H.createElement(
|
|
9399
|
-
...
|
|
9397
|
+
}), u = sn(e, { global: !0 });
|
|
9398
|
+
return /*#__PURE__*/ H.createElement(bn.div, {
|
|
9399
|
+
...Vt(l, u, i),
|
|
9400
9400
|
ref: t,
|
|
9401
9401
|
slot: e.slot || void 0,
|
|
9402
9402
|
"data-disabled": e.isDisabled || void 0,
|
|
9403
9403
|
"data-invalid": r.isValueInvalid || void 0
|
|
9404
|
-
}, /*#__PURE__*/ H.createElement(
|
|
9405
|
-
[
|
|
9404
|
+
}, /*#__PURE__*/ H.createElement(un, { values: [
|
|
9405
|
+
[tn, { slots: {
|
|
9406
9406
|
previous: a,
|
|
9407
9407
|
next: o
|
|
9408
9408
|
} }],
|
|
@@ -9413,7 +9413,7 @@ var Gv = /*#__PURE__*/ (0, H.createContext)(null), Kv = /*#__PURE__*/ (0, H.crea
|
|
|
9413
9413
|
}],
|
|
9414
9414
|
[Jv, r],
|
|
9415
9415
|
[Kv, e],
|
|
9416
|
-
[
|
|
9416
|
+
[$t, { slots: { errorMessage: s } }]
|
|
9417
9417
|
] }, /*#__PURE__*/ H.createElement(cp, null, /*#__PURE__*/ H.createElement("h2", null, i["aria-label"])), l.children, /*#__PURE__*/ H.createElement(cp, null, /*#__PURE__*/ H.createElement("button", {
|
|
9418
9418
|
"aria-label": o["aria-label"],
|
|
9419
9419
|
disabled: o.isDisabled,
|
|
@@ -9421,22 +9421,22 @@ var Gv = /*#__PURE__*/ (0, H.createContext)(null), Kv = /*#__PURE__*/ (0, H.crea
|
|
|
9421
9421
|
tabIndex: -1
|
|
9422
9422
|
}))));
|
|
9423
9423
|
}), Zv = /*#__PURE__*/ (0, H.createContext)(null), Qv = /*#__PURE__*/ (0, H.forwardRef)(function(e, t) {
|
|
9424
|
-
let n = (0, H.useContext)(qv), r = (0, H.useContext)(Jv), i =
|
|
9424
|
+
let n = (0, H.useContext)(qv), r = (0, H.useContext)(Jv), i = Yt(Gv), a = Yt(Kv), o = n ?? r, s = o.visibleRange.start;
|
|
9425
9425
|
e.offset && (s = s.add(e.offset));
|
|
9426
9426
|
let c = i?.firstDayOfWeek ?? a?.firstDayOfWeek, { gridProps: l, headerProps: u, weekDays: d, weeksInMonth: f } = rp({
|
|
9427
9427
|
startDate: s,
|
|
9428
9428
|
endDate: rl(s),
|
|
9429
9429
|
weekdayStyle: e.weekdayStyle,
|
|
9430
9430
|
firstDayOfWeek: c
|
|
9431
|
-
}, o), p =
|
|
9431
|
+
}, o), p = sn(e, { global: !0 });
|
|
9432
9432
|
return /*#__PURE__*/ H.createElement(Zv.Provider, { value: {
|
|
9433
9433
|
headerProps: u,
|
|
9434
9434
|
weekDays: d,
|
|
9435
9435
|
startDate: s,
|
|
9436
9436
|
weeksInMonth: f
|
|
9437
|
-
} }, /*#__PURE__*/ H.createElement(
|
|
9437
|
+
} }, /*#__PURE__*/ H.createElement(bn.table, {
|
|
9438
9438
|
render: e.render,
|
|
9439
|
-
...
|
|
9439
|
+
...Vt(p, l),
|
|
9440
9440
|
ref: t,
|
|
9441
9441
|
style: e.style,
|
|
9442
9442
|
cellPadding: 0,
|
|
@@ -9444,10 +9444,10 @@ var Gv = /*#__PURE__*/ (0, H.createContext)(null), Kv = /*#__PURE__*/ (0, H.crea
|
|
|
9444
9444
|
}, typeof e.children == "function" ? /*#__PURE__*/ H.createElement(H.Fragment, null, /*#__PURE__*/ H.createElement(ey, null, (e) => /*#__PURE__*/ H.createElement(ny, null, e)), /*#__PURE__*/ H.createElement(iy, null, e.children)) : e.children));
|
|
9445
9445
|
});
|
|
9446
9446
|
function $v(e, t) {
|
|
9447
|
-
let { children: n, style: r, className: i } = e, { headerProps: a, weekDays: o } = (0, H.useContext)(Zv), s =
|
|
9448
|
-
return /*#__PURE__*/ H.createElement(
|
|
9447
|
+
let { children: n, style: r, className: i } = e, { headerProps: a, weekDays: o } = (0, H.useContext)(Zv), s = sn(e, { global: !0 });
|
|
9448
|
+
return /*#__PURE__*/ H.createElement(bn.thead, {
|
|
9449
9449
|
render: e.render,
|
|
9450
|
-
...
|
|
9450
|
+
...Vt(s, a),
|
|
9451
9451
|
ref: t,
|
|
9452
9452
|
style: r,
|
|
9453
9453
|
className: i ?? "react-aria-CalendarGridHeader"
|
|
@@ -9455,8 +9455,8 @@ function $v(e, t) {
|
|
|
9455
9455
|
}
|
|
9456
9456
|
var ey = /*#__PURE__*/ (0, H.forwardRef)($v);
|
|
9457
9457
|
function ty(e, t) {
|
|
9458
|
-
let { children: n, style: r, className: i } = e, a =
|
|
9459
|
-
return /*#__PURE__*/ H.createElement(
|
|
9458
|
+
let { children: n, style: r, className: i } = e, a = sn(e, { global: !0 });
|
|
9459
|
+
return /*#__PURE__*/ H.createElement(bn.th, {
|
|
9460
9460
|
render: e.render,
|
|
9461
9461
|
...a,
|
|
9462
9462
|
ref: t,
|
|
@@ -9466,8 +9466,8 @@ function ty(e, t) {
|
|
|
9466
9466
|
}
|
|
9467
9467
|
var ny = /*#__PURE__*/ (0, H.forwardRef)(ty);
|
|
9468
9468
|
function ry(e, t) {
|
|
9469
|
-
let { children: n, style: r, className: i } = e, a = (0, H.useContext)(qv), o = (0, H.useContext)(Jv), s = a ?? o, { startDate: c, weeksInMonth: l } = (0, H.useContext)(Zv), u =
|
|
9470
|
-
return /*#__PURE__*/ H.createElement(
|
|
9469
|
+
let { children: n, style: r, className: i } = e, a = (0, H.useContext)(qv), o = (0, H.useContext)(Jv), s = a ?? o, { startDate: c, weeksInMonth: l } = (0, H.useContext)(Zv), u = sn(e, { global: !0 });
|
|
9470
|
+
return /*#__PURE__*/ H.createElement(bn.tbody, {
|
|
9471
9471
|
render: e.render,
|
|
9472
9472
|
...u,
|
|
9473
9473
|
ref: t,
|
|
@@ -9479,14 +9479,14 @@ var iy = /*#__PURE__*/ (0, H.forwardRef)(ry), ay = /*#__PURE__*/ (0, H.forwardRe
|
|
|
9479
9479
|
let r = (0, H.useContext)(qv), i = (0, H.useContext)(Jv), a = r ?? i, { startDate: o } = (0, H.useContext)(Zv) ?? { startDate: a.visibleRange.start }, s = !Vc(o, e), c = Wc(e, a.timeZone), l = (0, H.useRef)(null), { cellProps: u, buttonProps: d, ...f } = ap({
|
|
9480
9480
|
date: e,
|
|
9481
9481
|
isOutsideMonth: s
|
|
9482
|
-
}, a, l), { hoverProps: p, isHovered: m } =
|
|
9482
|
+
}, a, l), { hoverProps: p, isHovered: m } = Un({
|
|
9483
9483
|
...t,
|
|
9484
9484
|
isDisabled: f.isDisabled
|
|
9485
|
-
}), { focusProps: h, isFocusVisible: g } =
|
|
9485
|
+
}), { focusProps: h, isFocusVisible: g } = jn();
|
|
9486
9486
|
g &&= f.isFocused;
|
|
9487
9487
|
let _ = !1, v = !1;
|
|
9488
9488
|
"highlightedRange" in a && a.highlightedRange && (_ = Bc(e, a.highlightedRange.start), v = Bc(e, a.highlightedRange.end));
|
|
9489
|
-
let y =
|
|
9489
|
+
let y = Nt({
|
|
9490
9490
|
...t,
|
|
9491
9491
|
defaultChildren: f.formattedDate,
|
|
9492
9492
|
defaultClassName: "react-aria-CalendarCell",
|
|
@@ -9514,17 +9514,17 @@ var iy = /*#__PURE__*/ (0, H.forwardRef)(ry), ay = /*#__PURE__*/ (0, H.forwardRe
|
|
|
9514
9514
|
"data-selection-end": v || void 0,
|
|
9515
9515
|
"data-invalid": f.isInvalid || void 0,
|
|
9516
9516
|
"data-today": c || void 0
|
|
9517
|
-
}, x =
|
|
9517
|
+
}, x = sn(t, { global: !0 });
|
|
9518
9518
|
return /*#__PURE__*/ H.createElement("td", {
|
|
9519
9519
|
...u,
|
|
9520
9520
|
ref: n
|
|
9521
|
-
}, /*#__PURE__*/ H.createElement(
|
|
9522
|
-
...
|
|
9521
|
+
}, /*#__PURE__*/ H.createElement(bn.div, {
|
|
9522
|
+
...Vt(x, d, h, p, b, y),
|
|
9523
9523
|
ref: l
|
|
9524
9524
|
}));
|
|
9525
9525
|
}), oy = /*#__PURE__*/ (0, H.createContext)({ placement: "bottom" }), sy = /*#__PURE__*/ (0, H.createContext)(null), cy = /*#__PURE__*/ (0, H.createContext)(null), ly = /*#__PURE__*/ (0, H.forwardRef)(function(e, t) {
|
|
9526
|
-
[e, t] =
|
|
9527
|
-
let n = (0, H.useContext)(fy), r = F_(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Ec(t, i.isOpen) || e.isExiting || !1, o =
|
|
9526
|
+
[e, t] = Mr(e, t, sy);
|
|
9527
|
+
let n = (0, H.useContext)(fy), r = F_(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Ec(t, i.isOpen) || e.isExiting || !1, o = Zt(), { direction: s } = at();
|
|
9528
9528
|
if (o) {
|
|
9529
9529
|
let t = e.children;
|
|
9530
9530
|
return typeof t == "function" && (t = t({
|
|
@@ -9550,7 +9550,7 @@ function uy({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
|
|
|
9550
9550
|
offset: i.offset ?? 8,
|
|
9551
9551
|
arrowRef: a,
|
|
9552
9552
|
groupRef: c ? s : o
|
|
9553
|
-
}, e), m = i.popoverRef, h = Tc(m, !!f) || i.isEntering || !1, g =
|
|
9553
|
+
}, e), m = i.popoverRef, h = Tc(m, !!f) || i.isEntering || !1, g = Nt({
|
|
9554
9554
|
...i,
|
|
9555
9555
|
defaultClassName: "react-aria-Popover",
|
|
9556
9556
|
values: {
|
|
@@ -9560,10 +9560,10 @@ function uy({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
|
|
|
9560
9560
|
isExiting: t
|
|
9561
9561
|
}
|
|
9562
9562
|
}), _ = !i.isNonModal || i.trigger === "SubmenuTrigger", [v, y] = (0, H.useState)(!1);
|
|
9563
|
-
|
|
9563
|
+
Xt(() => {
|
|
9564
9564
|
m.current && y(_ && !m.current.querySelector("[role=dialog]"));
|
|
9565
9565
|
}, [m, _]), (0, H.useEffect)(() => {
|
|
9566
|
-
v && (i.trigger !== "SubmenuTrigger" ||
|
|
9566
|
+
v && (i.trigger !== "SubmenuTrigger" || qn() !== "pointer") && m.current && !Qt(m.current) && ar(m.current);
|
|
9567
9567
|
}, [
|
|
9568
9568
|
v,
|
|
9569
9569
|
m,
|
|
@@ -9577,8 +9577,8 @@ function uy({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
|
|
|
9577
9577
|
...l.style,
|
|
9578
9578
|
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
|
|
9579
9579
|
...g.style
|
|
9580
|
-
}, S = /*#__PURE__*/ H.createElement(
|
|
9581
|
-
...
|
|
9580
|
+
}, S = /*#__PURE__*/ H.createElement(bn.div, {
|
|
9581
|
+
...Vt(sn(i, { global: !0 }), l),
|
|
9582
9582
|
...g,
|
|
9583
9583
|
role: v ? "dialog" : void 0,
|
|
9584
9584
|
tabIndex: v ? -1 : void 0,
|
|
@@ -9623,32 +9623,32 @@ function uy({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
|
|
|
9623
9623
|
//#region ../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-aria-components/dist/Dialog.mjs
|
|
9624
9624
|
var dy = /*#__PURE__*/ (0, H.createContext)(null), fy = /*#__PURE__*/ (0, H.createContext)(null), py = /*#__PURE__*/ (0, H.forwardRef)(function(e, t) {
|
|
9625
9625
|
let n = e["aria-labelledby"];
|
|
9626
|
-
[e, t] =
|
|
9626
|
+
[e, t] = Mr(e, t, dy);
|
|
9627
9627
|
let { dialogProps: r, titleProps: i } = Vh({
|
|
9628
9628
|
...e,
|
|
9629
9629
|
"aria-labelledby": n
|
|
9630
9630
|
}, t), a = (0, H.useContext)(fy);
|
|
9631
9631
|
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
|
|
9632
|
-
let o =
|
|
9632
|
+
let o = Nt({
|
|
9633
9633
|
defaultClassName: "react-aria-Dialog",
|
|
9634
9634
|
className: e.className,
|
|
9635
9635
|
style: e.style,
|
|
9636
9636
|
children: e.children,
|
|
9637
9637
|
values: { close: a?.close || (() => {}) }
|
|
9638
|
-
}), s =
|
|
9639
|
-
return /*#__PURE__*/ H.createElement(
|
|
9640
|
-
...
|
|
9638
|
+
}), s = sn(e, { global: !0 });
|
|
9639
|
+
return /*#__PURE__*/ H.createElement(bn.section, {
|
|
9640
|
+
...Vt(s, o, r),
|
|
9641
9641
|
render: e.render,
|
|
9642
9642
|
ref: t,
|
|
9643
9643
|
slot: e.slot || void 0
|
|
9644
|
-
}, /*#__PURE__*/ H.createElement(
|
|
9645
|
-
[
|
|
9644
|
+
}, /*#__PURE__*/ H.createElement(un, { values: [[x_, { slots: {
|
|
9645
|
+
[gn]: {},
|
|
9646
9646
|
title: {
|
|
9647
9647
|
...i,
|
|
9648
9648
|
level: 2
|
|
9649
9649
|
}
|
|
9650
|
-
} }], [
|
|
9651
|
-
[
|
|
9650
|
+
} }], [tn, { slots: {
|
|
9651
|
+
[gn]: {},
|
|
9652
9652
|
close: { onPress: () => a?.close() }
|
|
9653
9653
|
} }]] }, o.children));
|
|
9654
9654
|
}), my = [
|
|
@@ -9691,7 +9691,7 @@ function gy(e, t) {
|
|
|
9691
9691
|
step: o,
|
|
9692
9692
|
value: s,
|
|
9693
9693
|
onChange: (e) => {
|
|
9694
|
-
let n =
|
|
9694
|
+
let n = Nr(e).value.toString();
|
|
9695
9695
|
if (n) try {
|
|
9696
9696
|
let e = lu(n);
|
|
9697
9697
|
if (t.granularity === "day" && (e = cu(n)), "setSegment" in t) for (let n in e) my.includes(n) && t.setSegment(n, e[n]), l.includes(n) && t.setSegment(n, e[n]);
|
|
@@ -9711,17 +9711,17 @@ function _y(e) {
|
|
|
9711
9711
|
//#endregion
|
|
9712
9712
|
//#region ../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-aria-components/dist/DateField.mjs
|
|
9713
9713
|
var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.createContext)(null), by = /*#__PURE__*/ (0, H.createContext)(null), xy = /*#__PURE__*/ (0, H.createContext)(null), Sy = /*#__PURE__*/ (0, H.forwardRef)(function(e, t) {
|
|
9714
|
-
[e, t] =
|
|
9715
|
-
let { validationBehavior: n } =
|
|
9714
|
+
[e, t] = Mr(e, t, yy);
|
|
9715
|
+
let { validationBehavior: n } = Yt(rn) || {}, r = e.validationBehavior ?? n ?? "native", { locale: i } = at(), a = Uv({
|
|
9716
9716
|
...e,
|
|
9717
9717
|
locale: i,
|
|
9718
9718
|
validationBehavior: r
|
|
9719
|
-
}), o = (0, H.useRef)(null), [s, c] =
|
|
9720
|
-
...
|
|
9719
|
+
}), o = (0, H.useRef)(null), [s, c] = vn(!e["aria-label"] && !e["aria-labelledby"]), l = (0, H.useRef)(null), { labelProps: u, fieldProps: d, inputProps: f, descriptionProps: p, errorMessageProps: m, ...h } = jh({
|
|
9720
|
+
...Ht(e),
|
|
9721
9721
|
label: c,
|
|
9722
9722
|
inputRef: l,
|
|
9723
9723
|
validationBehavior: r
|
|
9724
|
-
}, a, o), g =
|
|
9724
|
+
}, a, o), g = Nt({
|
|
9725
9725
|
...e,
|
|
9726
9726
|
values: {
|
|
9727
9727
|
state: a,
|
|
@@ -9731,30 +9731,30 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
9731
9731
|
isRequired: e.isRequired || !1
|
|
9732
9732
|
},
|
|
9733
9733
|
defaultClassName: "react-aria-TimeField"
|
|
9734
|
-
}), _ =
|
|
9735
|
-
return delete _.id, /*#__PURE__*/ H.createElement(
|
|
9734
|
+
}), _ = sn(e, { global: !0 });
|
|
9735
|
+
return delete _.id, /*#__PURE__*/ H.createElement(un, { values: [
|
|
9736
9736
|
[xy, a],
|
|
9737
|
-
[
|
|
9737
|
+
[It, {
|
|
9738
9738
|
...d,
|
|
9739
9739
|
ref: o,
|
|
9740
9740
|
isInvalid: a.isInvalid,
|
|
9741
9741
|
isDisabled: a.isDisabled
|
|
9742
9742
|
}],
|
|
9743
|
-
[
|
|
9743
|
+
[Er, {
|
|
9744
9744
|
...f,
|
|
9745
9745
|
ref: l
|
|
9746
9746
|
}],
|
|
9747
|
-
[
|
|
9747
|
+
[Bt, {
|
|
9748
9748
|
...u,
|
|
9749
9749
|
ref: s,
|
|
9750
9750
|
elementType: "span"
|
|
9751
9751
|
}],
|
|
9752
|
-
[
|
|
9752
|
+
[$t, { slots: {
|
|
9753
9753
|
description: p,
|
|
9754
9754
|
errorMessage: m
|
|
9755
9755
|
} }],
|
|
9756
|
-
[
|
|
9757
|
-
] }, /*#__PURE__*/ H.createElement(
|
|
9756
|
+
[jt, h]
|
|
9757
|
+
] }, /*#__PURE__*/ H.createElement(bn.div, {
|
|
9758
9758
|
..._,
|
|
9759
9759
|
...g,
|
|
9760
9760
|
ref: t,
|
|
@@ -9774,7 +9774,7 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
9774
9774
|
ref: t
|
|
9775
9775
|
});
|
|
9776
9776
|
}), wy = /*#__PURE__*/ (0, H.forwardRef)((e, t) => {
|
|
9777
|
-
let [n, r] =
|
|
9777
|
+
let [n, r] = Mr({ slot: e.slot }, t, vy), { locale: i } = at(), a = zv({
|
|
9778
9778
|
...n,
|
|
9779
9779
|
locale: i,
|
|
9780
9780
|
createCalendar: Md
|
|
@@ -9782,13 +9782,13 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
9782
9782
|
...n,
|
|
9783
9783
|
inputRef: o
|
|
9784
9784
|
}, a, r);
|
|
9785
|
-
return /*#__PURE__*/ H.createElement(
|
|
9785
|
+
return /*#__PURE__*/ H.createElement(un, { values: [
|
|
9786
9786
|
[by, a],
|
|
9787
|
-
[
|
|
9787
|
+
[Er, {
|
|
9788
9788
|
...c,
|
|
9789
9789
|
ref: o
|
|
9790
9790
|
}],
|
|
9791
|
-
[
|
|
9791
|
+
[It, {
|
|
9792
9792
|
...s,
|
|
9793
9793
|
ref: r,
|
|
9794
9794
|
isInvalid: a.isInvalid,
|
|
@@ -9797,7 +9797,7 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
9797
9797
|
] }, /*#__PURE__*/ H.createElement(Ty, e));
|
|
9798
9798
|
}), Ty = /*#__PURE__*/ (0, H.forwardRef)((e, t) => {
|
|
9799
9799
|
let { className: n, children: r } = e, i = (0, H.useContext)(by), a = (0, H.useContext)(xy), o = i ?? a;
|
|
9800
|
-
return /*#__PURE__*/ H.createElement(H.Fragment, null, /*#__PURE__*/ H.createElement(
|
|
9800
|
+
return /*#__PURE__*/ H.createElement(H.Fragment, null, /*#__PURE__*/ H.createElement(Rt, {
|
|
9801
9801
|
...e,
|
|
9802
9802
|
ref: t,
|
|
9803
9803
|
slot: e.slot || void 0,
|
|
@@ -9805,12 +9805,12 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
9805
9805
|
isReadOnly: o.isReadOnly,
|
|
9806
9806
|
isInvalid: o.isInvalid,
|
|
9807
9807
|
isDisabled: o.isDisabled
|
|
9808
|
-
}, o.segments.map((e, t) => /*#__PURE__*/ (0, H.cloneElement)(r(e), { key: t }))), /*#__PURE__*/ H.createElement(
|
|
9808
|
+
}, o.segments.map((e, t) => /*#__PURE__*/ (0, H.cloneElement)(r(e), { key: t }))), /*#__PURE__*/ H.createElement(mn, { className: "" }));
|
|
9809
9809
|
}), Ey = /*#__PURE__*/ (0, H.forwardRef)(function({ segment: e, ...t }, n) {
|
|
9810
|
-
let r = (0, H.useContext)(by), i = (0, H.useContext)(xy), a = r ?? i, o =
|
|
9810
|
+
let r = (0, H.useContext)(by), i = (0, H.useContext)(xy), a = r ?? i, o = zt(n), { segmentProps: s } = Lh(e, a, o), { focusProps: c, isFocused: l, isFocusVisible: u } = jn(), { hoverProps: d, isHovered: f } = Un({
|
|
9811
9811
|
...t,
|
|
9812
9812
|
isDisabled: a.isDisabled || e.type === "literal"
|
|
9813
|
-
}), p =
|
|
9813
|
+
}), p = Nt({
|
|
9814
9814
|
...t,
|
|
9815
9815
|
values: {
|
|
9816
9816
|
...e,
|
|
@@ -9824,8 +9824,8 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
9824
9824
|
defaultChildren: e.text,
|
|
9825
9825
|
defaultClassName: "react-aria-DateSegment"
|
|
9826
9826
|
});
|
|
9827
|
-
return /*#__PURE__*/ H.createElement(
|
|
9828
|
-
...
|
|
9827
|
+
return /*#__PURE__*/ H.createElement(bn.span, {
|
|
9828
|
+
...Vt(sn(t, { global: !0 }), s, c, d),
|
|
9829
9829
|
...p,
|
|
9830
9830
|
style: s.style,
|
|
9831
9831
|
ref: o,
|
|
@@ -9839,17 +9839,17 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
9839
9839
|
"data-focus-visible": u || void 0
|
|
9840
9840
|
});
|
|
9841
9841
|
}), Dy = /*#__PURE__*/ (0, H.createContext)(null), Oy = /*#__PURE__*/ (0, H.createContext)(null), ky = /*#__PURE__*/ (0, H.createContext)(null), Ay = /*#__PURE__*/ (0, H.createContext)(null), jy = [
|
|
9842
|
-
|
|
9843
|
-
|
|
9844
|
-
|
|
9845
|
-
|
|
9842
|
+
It,
|
|
9843
|
+
tn,
|
|
9844
|
+
Bt,
|
|
9845
|
+
$t
|
|
9846
9846
|
], My = /*#__PURE__*/ (0, H.forwardRef)(function(e, t) {
|
|
9847
|
-
[e, t] =
|
|
9848
|
-
let { validationBehavior: n } =
|
|
9847
|
+
[e, t] = Mr(e, t, Dy);
|
|
9848
|
+
let { validationBehavior: n } = Yt(rn) || {}, r = e.validationBehavior ?? n ?? "native", i = kv({
|
|
9849
9849
|
...e,
|
|
9850
9850
|
validationBehavior: r
|
|
9851
|
-
}), a = (0, H.useRef)(null), [o, s] =
|
|
9852
|
-
...
|
|
9851
|
+
}), a = (0, H.useRef)(null), [o, s] = vn(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: c, labelProps: l, fieldProps: u, buttonProps: d, dialogProps: f, calendarProps: p, descriptionProps: m, errorMessageProps: h, ...g } = Nh({
|
|
9852
|
+
...Ht(e),
|
|
9853
9853
|
label: s,
|
|
9854
9854
|
validationBehavior: r
|
|
9855
9855
|
}, i, a), [_, v] = (0, H.useState)(null);
|
|
@@ -9859,7 +9859,7 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
9859
9859
|
a.current && v(a.current.offsetWidth + "px");
|
|
9860
9860
|
}, [])
|
|
9861
9861
|
});
|
|
9862
|
-
let { focusProps: y, isFocused: b, isFocusVisible: x } =
|
|
9862
|
+
let { focusProps: y, isFocused: b, isFocusVisible: x } = jn({ within: !0 }), S = Nt({
|
|
9863
9863
|
...e,
|
|
9864
9864
|
values: {
|
|
9865
9865
|
state: i,
|
|
@@ -9872,20 +9872,20 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
9872
9872
|
isRequired: e.isRequired || !1
|
|
9873
9873
|
},
|
|
9874
9874
|
defaultClassName: "react-aria-DatePicker"
|
|
9875
|
-
}), C =
|
|
9876
|
-
return delete C.id, /*#__PURE__*/ H.createElement(
|
|
9875
|
+
}), C = sn(e, { global: !0 });
|
|
9876
|
+
return delete C.id, /*#__PURE__*/ H.createElement(un, { values: [
|
|
9877
9877
|
[ky, i],
|
|
9878
|
-
[
|
|
9878
|
+
[It, {
|
|
9879
9879
|
...c,
|
|
9880
9880
|
ref: a,
|
|
9881
9881
|
isInvalid: i.isInvalid
|
|
9882
9882
|
}],
|
|
9883
9883
|
[vy, u],
|
|
9884
|
-
[
|
|
9884
|
+
[tn, {
|
|
9885
9885
|
...d,
|
|
9886
9886
|
isPressed: i.isOpen
|
|
9887
9887
|
}],
|
|
9888
|
-
[
|
|
9888
|
+
[Bt, {
|
|
9889
9889
|
...l,
|
|
9890
9890
|
ref: o,
|
|
9891
9891
|
elementType: "span"
|
|
@@ -9900,13 +9900,13 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
9900
9900
|
clearContexts: jy
|
|
9901
9901
|
}],
|
|
9902
9902
|
[dy, f],
|
|
9903
|
-
[
|
|
9903
|
+
[$t, { slots: {
|
|
9904
9904
|
description: m,
|
|
9905
9905
|
errorMessage: h
|
|
9906
9906
|
} }],
|
|
9907
|
-
[
|
|
9908
|
-
] }, /*#__PURE__*/ H.createElement(
|
|
9909
|
-
...
|
|
9907
|
+
[jt, g]
|
|
9908
|
+
] }, /*#__PURE__*/ H.createElement(bn.div, {
|
|
9909
|
+
...Vt(C, S, y),
|
|
9910
9910
|
ref: t,
|
|
9911
9911
|
slot: e.slot || void 0,
|
|
9912
9912
|
"data-focus-within": b || void 0,
|
|
@@ -9923,12 +9923,12 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
9923
9923
|
state: i
|
|
9924
9924
|
}));
|
|
9925
9925
|
}), Ny = /*#__PURE__*/ (0, H.forwardRef)(function(e, t) {
|
|
9926
|
-
[e, t] =
|
|
9927
|
-
let { validationBehavior: n } =
|
|
9926
|
+
[e, t] = Mr(e, t, Oy);
|
|
9927
|
+
let { validationBehavior: n } = Yt(rn) || {}, r = e.validationBehavior ?? n ?? "native", i = Vv({
|
|
9928
9928
|
...e,
|
|
9929
9929
|
validationBehavior: r
|
|
9930
|
-
}), a = (0, H.useRef)(null), [o, s] =
|
|
9931
|
-
...
|
|
9930
|
+
}), a = (0, H.useRef)(null), [o, s] = vn(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: c, labelProps: l, startFieldProps: u, endFieldProps: d, buttonProps: f, dialogProps: p, calendarProps: m, descriptionProps: h, errorMessageProps: g, ..._ } = Bh({
|
|
9931
|
+
...Ht(e),
|
|
9932
9932
|
label: s,
|
|
9933
9933
|
validationBehavior: r
|
|
9934
9934
|
}, i, a), [v, y] = (0, H.useState)(null);
|
|
@@ -9938,7 +9938,7 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
9938
9938
|
a.current && y(a.current.offsetWidth + "px");
|
|
9939
9939
|
}, [])
|
|
9940
9940
|
});
|
|
9941
|
-
let { focusProps: b, isFocused: x, isFocusVisible: S } =
|
|
9941
|
+
let { focusProps: b, isFocused: x, isFocusVisible: S } = jn({ within: !0 }), C = Nt({
|
|
9942
9942
|
...e,
|
|
9943
9943
|
values: {
|
|
9944
9944
|
state: i,
|
|
@@ -9951,19 +9951,19 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
9951
9951
|
isRequired: e.isRequired || !1
|
|
9952
9952
|
},
|
|
9953
9953
|
defaultClassName: "react-aria-DateRangePicker"
|
|
9954
|
-
}), w =
|
|
9955
|
-
return delete w.id, /*#__PURE__*/ H.createElement(
|
|
9954
|
+
}), w = sn(e, { global: !0 });
|
|
9955
|
+
return delete w.id, /*#__PURE__*/ H.createElement(un, { values: [
|
|
9956
9956
|
[Ay, i],
|
|
9957
|
-
[
|
|
9957
|
+
[It, {
|
|
9958
9958
|
...c,
|
|
9959
9959
|
ref: a,
|
|
9960
9960
|
isInvalid: i.isInvalid
|
|
9961
9961
|
}],
|
|
9962
|
-
[
|
|
9962
|
+
[tn, {
|
|
9963
9963
|
...f,
|
|
9964
9964
|
isPressed: i.isOpen
|
|
9965
9965
|
}],
|
|
9966
|
-
[
|
|
9966
|
+
[Bt, {
|
|
9967
9967
|
...l,
|
|
9968
9968
|
ref: o,
|
|
9969
9969
|
elementType: "span"
|
|
@@ -9982,13 +9982,13 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
9982
9982
|
start: u,
|
|
9983
9983
|
end: d
|
|
9984
9984
|
} }],
|
|
9985
|
-
[
|
|
9985
|
+
[$t, { slots: {
|
|
9986
9986
|
description: h,
|
|
9987
9987
|
errorMessage: g
|
|
9988
9988
|
} }],
|
|
9989
|
-
[
|
|
9990
|
-
] }, /*#__PURE__*/ H.createElement(
|
|
9991
|
-
...
|
|
9989
|
+
[jt, _]
|
|
9990
|
+
] }, /*#__PURE__*/ H.createElement(bn.div, {
|
|
9991
|
+
...Vt(w, C, b),
|
|
9992
9992
|
ref: t,
|
|
9993
9993
|
slot: e.slot || void 0,
|
|
9994
9994
|
"data-focus-within": x || void 0,
|
|
@@ -10000,8 +10000,8 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
10000
10000
|
"data-open": i.isOpen || void 0
|
|
10001
10001
|
}));
|
|
10002
10002
|
}), Py = /*#__PURE__*/ (0, H.forwardRef)(function(e, t) {
|
|
10003
|
-
[e, t] =
|
|
10004
|
-
let { children: n, level: r = 3, className: i, ...a } = e, o =
|
|
10003
|
+
[e, t] = Mr(e, t, x_);
|
|
10004
|
+
let { children: n, level: r = 3, className: i, ...a } = e, o = bn[`h${r}`];
|
|
10005
10005
|
return /*#__PURE__*/ H.createElement(o, {
|
|
10006
10006
|
...a,
|
|
10007
10007
|
ref: t,
|
|
@@ -10017,7 +10017,7 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
10017
10017
|
let i;
|
|
10018
10018
|
t[3] === n ? i = t[4] : (i = a(Fy(), n), t[3] = n, t[4] = i);
|
|
10019
10019
|
let o;
|
|
10020
|
-
return t[5] !== r || t[6] !== i ? (o = /* @__PURE__ */ (0, U.jsx)(
|
|
10020
|
+
return t[5] !== r || t[6] !== i ? (o = /* @__PURE__ */ (0, U.jsx)(Kt, {
|
|
10021
10021
|
className: i,
|
|
10022
10022
|
...r
|
|
10023
10023
|
}), t[5] = r, t[6] = i, t[7] = o) : o = t[7], o;
|
|
@@ -10027,7 +10027,7 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
10027
10027
|
let i;
|
|
10028
10028
|
t[3] === n ? i = t[4] : (i = a("text-sm font-medium text-destructive", n), t[3] = n, t[4] = i);
|
|
10029
10029
|
let o;
|
|
10030
|
-
return t[5] !== r || t[6] !== i ? (o = /* @__PURE__ */ (0, U.jsx)(
|
|
10030
|
+
return t[5] !== r || t[6] !== i ? (o = /* @__PURE__ */ (0, U.jsx)($n, {
|
|
10031
10031
|
className: i,
|
|
10032
10032
|
...r
|
|
10033
10033
|
}), t[5] = r, t[6] = i, t[7] = o) : o = t[7], o;
|
|
@@ -10048,9 +10048,9 @@ var vy = /*#__PURE__*/ (0, H.createContext)(null), yy = /*#__PURE__*/ (0, H.crea
|
|
|
10048
10048
|
let o;
|
|
10049
10049
|
t[4] === i ? o = t[5] : (o = (e) => a(Ry({ variant: i }), e), t[4] = i, t[5] = o);
|
|
10050
10050
|
let s;
|
|
10051
|
-
t[6] !== n || t[7] !== o ? (s =
|
|
10051
|
+
t[6] !== n || t[7] !== o ? (s = Wt(n, o), t[6] = n, t[7] = o, t[8] = s) : s = t[8];
|
|
10052
10052
|
let c;
|
|
10053
|
-
return t[9] !== r || t[10] !== s ? (c = /* @__PURE__ */ (0, U.jsx)(
|
|
10053
|
+
return t[9] !== r || t[10] !== s ? (c = /* @__PURE__ */ (0, U.jsx)(Rt, {
|
|
10054
10054
|
className: s,
|
|
10055
10055
|
...r
|
|
10056
10056
|
}), t[9] = r, t[10] = s, t[11] = c) : c = t[11], c;
|
|
@@ -15136,7 +15136,7 @@ function mD(e) {
|
|
|
15136
15136
|
systemMode: void 0
|
|
15137
15137
|
}, l = /*#__PURE__*/ H.createContext(void 0), u = () => H.useContext(l) || c, d = {}, f = {};
|
|
15138
15138
|
function p(e) {
|
|
15139
|
-
let { children: c, theme: u, modeStorageKey: p = r, colorSchemeStorageKey: m = i, disableTransitionOnChange: h = a, storageManager: g, storageWindow: _ = typeof window > "u" ? void 0 : window, documentNode: v = typeof document > "u" ? void 0 : document, colorSchemeNode: y = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: b = !1, disableStyleSheetGeneration: x = !1, defaultMode: S = "system", noSsr: C } = e, w = H.useRef(!1), T = BE(), E = H.useContext(l), D = !!E && !b, O = H.useMemo(() => u || (typeof n == "function" ? n() : n), [u]), k = O[t], A = k || O, { colorSchemes: j = d, components: M = f, cssVarPrefix: N } = A, P = Object.keys(j).filter((e) => !!j[e]).join(","), F = H.useMemo(() => P.split(","), [P]), I = typeof o == "string" ? o : o.light, L = typeof o == "string" ? o : o.dark, { mode: R, setMode:
|
|
15139
|
+
let { children: c, theme: u, modeStorageKey: p = r, colorSchemeStorageKey: m = i, disableTransitionOnChange: h = a, storageManager: g, storageWindow: _ = typeof window > "u" ? void 0 : window, documentNode: v = typeof document > "u" ? void 0 : document, colorSchemeNode: y = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: b = !1, disableStyleSheetGeneration: x = !1, defaultMode: S = "system", noSsr: C } = e, w = H.useRef(!1), T = BE(), E = H.useContext(l), D = !!E && !b, O = H.useMemo(() => u || (typeof n == "function" ? n() : n), [u]), k = O[t], A = k || O, { colorSchemes: j = d, components: M = f, cssVarPrefix: N } = A, P = Object.keys(j).filter((e) => !!j[e]).join(","), F = H.useMemo(() => P.split(","), [P]), I = typeof o == "string" ? o : o.light, L = typeof o == "string" ? o : o.dark, { mode: R, setMode: z, systemMode: B, lightColorScheme: ee, darkColorScheme: te, colorScheme: ne, setColorScheme: re } = fD({
|
|
15140
15140
|
supportedColorSchemes: F,
|
|
15141
15141
|
defaultLightColorScheme: I,
|
|
15142
15142
|
defaultDarkColorScheme: L,
|
|
@@ -15146,10 +15146,10 @@ function mD(e) {
|
|
|
15146
15146
|
storageManager: g,
|
|
15147
15147
|
storageWindow: _,
|
|
15148
15148
|
noSsr: C
|
|
15149
|
-
}),
|
|
15150
|
-
D && (
|
|
15151
|
-
let
|
|
15152
|
-
let e =
|
|
15149
|
+
}), ie = R, ae = ne;
|
|
15150
|
+
D && (ie = E.mode, ae = E.colorScheme);
|
|
15151
|
+
let oe = H.useMemo(() => {
|
|
15152
|
+
let e = ae || A.defaultColorScheme, t = A.generateThemeVars?.() || A.vars, n = {
|
|
15153
15153
|
...A,
|
|
15154
15154
|
components: M,
|
|
15155
15155
|
colorSchemes: j,
|
|
@@ -15168,28 +15168,28 @@ function mD(e) {
|
|
|
15168
15168
|
return s ? s(n) : n;
|
|
15169
15169
|
}, [
|
|
15170
15170
|
A,
|
|
15171
|
-
|
|
15171
|
+
ae,
|
|
15172
15172
|
M,
|
|
15173
15173
|
j,
|
|
15174
15174
|
N
|
|
15175
|
-
]),
|
|
15175
|
+
]), se = A.colorSchemeSelector;
|
|
15176
15176
|
uE(() => {
|
|
15177
|
-
if (
|
|
15178
|
-
let e =
|
|
15179
|
-
if (e === "class" && (t = ".%s"), e === "data" && (t = "[data-%s]"), e?.startsWith("data-") && !e.includes("%s") && (t = `[${e}="%s"]`), t.startsWith(".")) y.classList.remove(...F.map((e) => t.substring(1).replace("%s", e))), y.classList.add(t.substring(1).replace("%s",
|
|
15177
|
+
if (ae && y && se && se !== "media") {
|
|
15178
|
+
let e = se, t = se;
|
|
15179
|
+
if (e === "class" && (t = ".%s"), e === "data" && (t = "[data-%s]"), e?.startsWith("data-") && !e.includes("%s") && (t = `[${e}="%s"]`), t.startsWith(".")) y.classList.remove(...F.map((e) => t.substring(1).replace("%s", e))), y.classList.add(t.substring(1).replace("%s", ae));
|
|
15180
15180
|
else {
|
|
15181
|
-
let e = t.replace("%s",
|
|
15181
|
+
let e = t.replace("%s", ae).match(/\[([^\]]+)\]/);
|
|
15182
15182
|
if (e) {
|
|
15183
15183
|
let [t, n] = e[1].split("=");
|
|
15184
15184
|
n || F.forEach((e) => {
|
|
15185
|
-
y.removeAttribute(t.replace(
|
|
15185
|
+
y.removeAttribute(t.replace(ae, e));
|
|
15186
15186
|
}), y.setAttribute(t, n ? n.replace(/"|'/g, "") : "");
|
|
15187
|
-
} else y.setAttribute(t,
|
|
15187
|
+
} else y.setAttribute(t, ae);
|
|
15188
15188
|
}
|
|
15189
15189
|
}
|
|
15190
15190
|
}, [
|
|
15191
|
-
|
|
15192
|
-
|
|
15191
|
+
ae,
|
|
15192
|
+
se,
|
|
15193
15193
|
y,
|
|
15194
15194
|
F
|
|
15195
15195
|
]), H.useEffect(() => {
|
|
@@ -15204,40 +15204,40 @@ function mD(e) {
|
|
|
15204
15204
|
clearTimeout(e);
|
|
15205
15205
|
};
|
|
15206
15206
|
}, [
|
|
15207
|
-
|
|
15207
|
+
ae,
|
|
15208
15208
|
h,
|
|
15209
15209
|
v
|
|
15210
15210
|
]), H.useEffect(() => (w.current = !0, () => {
|
|
15211
15211
|
w.current = !1;
|
|
15212
15212
|
}), []);
|
|
15213
|
-
let
|
|
15213
|
+
let ce = H.useMemo(() => ({
|
|
15214
15214
|
allColorSchemes: F,
|
|
15215
|
-
colorScheme:
|
|
15216
|
-
darkColorScheme:
|
|
15217
|
-
lightColorScheme:
|
|
15218
|
-
mode:
|
|
15219
|
-
setColorScheme:
|
|
15220
|
-
setMode:
|
|
15221
|
-
systemMode:
|
|
15215
|
+
colorScheme: ae,
|
|
15216
|
+
darkColorScheme: te,
|
|
15217
|
+
lightColorScheme: ee,
|
|
15218
|
+
mode: ie,
|
|
15219
|
+
setColorScheme: re,
|
|
15220
|
+
setMode: z,
|
|
15221
|
+
systemMode: B
|
|
15222
15222
|
}), [
|
|
15223
15223
|
F,
|
|
15224
|
-
oe,
|
|
15225
|
-
ne,
|
|
15226
|
-
te,
|
|
15227
15224
|
ae,
|
|
15228
|
-
|
|
15225
|
+
te,
|
|
15229
15226
|
ee,
|
|
15227
|
+
ie,
|
|
15228
|
+
re,
|
|
15230
15229
|
z,
|
|
15231
|
-
|
|
15230
|
+
B,
|
|
15231
|
+
oe.colorSchemeSelector
|
|
15232
15232
|
]), le = !0;
|
|
15233
15233
|
(x || A.cssVariables === !1 || D && T?.cssVarPrefix === N) && (le = !1);
|
|
15234
15234
|
let ue = /*#__PURE__*/ (0, U.jsxs)(H.Fragment, { children: [/*#__PURE__*/ (0, U.jsx)($E, {
|
|
15235
15235
|
themeId: k ? t : void 0,
|
|
15236
|
-
theme:
|
|
15236
|
+
theme: oe,
|
|
15237
15237
|
children: c
|
|
15238
|
-
}), le && /*#__PURE__*/ (0, U.jsx)(pw, { styles:
|
|
15238
|
+
}), le && /*#__PURE__*/ (0, U.jsx)(pw, { styles: oe.generateStyleSheets?.() || [] })] });
|
|
15239
15239
|
return D ? ue : /*#__PURE__*/ (0, U.jsx)(l.Provider, {
|
|
15240
|
-
value:
|
|
15240
|
+
value: ce,
|
|
15241
15241
|
children: ue
|
|
15242
15242
|
});
|
|
15243
15243
|
}
|
|
@@ -16603,9 +16603,9 @@ var nk = XT("MuiInputBase", [
|
|
|
16603
16603
|
let n = NO({
|
|
16604
16604
|
props: e,
|
|
16605
16605
|
name: "MuiInputBase"
|
|
16606
|
-
}), { "aria-describedby": r, autoComplete: i, autoFocus: a, className: o, color: s, components: c = {}, componentsProps: l = {}, defaultValue: u, disabled: d, disableInjectingGlobalStyles: f, endAdornment: p, error: m, fullWidth: h = !1, id: g, inputComponent: _ = "input", inputProps: v = {}, inputRef: y, margin: b, maxRows: x, minRows: S, multiline: C = !1, name: w, onBlur: T, onChange: E, onClick: D, onFocus: O, onKeyDown: k, onKeyUp: A, placeholder: j, readOnly: M, renderSuffix: N, rows: P, size: F, slotProps: I = {}, slots: L = {}, startAdornment: R, type:
|
|
16606
|
+
}), { "aria-describedby": r, autoComplete: i, autoFocus: a, className: o, color: s, components: c = {}, componentsProps: l = {}, defaultValue: u, disabled: d, disableInjectingGlobalStyles: f, endAdornment: p, error: m, fullWidth: h = !1, id: g, inputComponent: _ = "input", inputProps: v = {}, inputRef: y, margin: b, maxRows: x, minRows: S, multiline: C = !1, name: w, onBlur: T, onChange: E, onClick: D, onFocus: O, onKeyDown: k, onKeyUp: A, placeholder: j, readOnly: M, renderSuffix: N, rows: P, size: F, slotProps: I = {}, slots: L = {}, startAdornment: R, type: z = "text", value: B, ...ee } = n, te = v.value == null ? B : v.value, { current: ne } = H.useRef(te != null), re = H.useRef(), ie = H.useCallback((e) => {}, []), ae = zO(re, y, v.ref, ie), [oe, se] = H.useState(!1), ce = QO(), le = XO({
|
|
16607
16607
|
props: n,
|
|
16608
|
-
muiFormControl:
|
|
16608
|
+
muiFormControl: ce,
|
|
16609
16609
|
states: [
|
|
16610
16610
|
"color",
|
|
16611
16611
|
"disabled",
|
|
@@ -16616,41 +16616,41 @@ var nk = XT("MuiInputBase", [
|
|
|
16616
16616
|
"filled"
|
|
16617
16617
|
]
|
|
16618
16618
|
});
|
|
16619
|
-
le.focused =
|
|
16620
|
-
!
|
|
16619
|
+
le.focused = ce ? ce.focused : oe, H.useEffect(() => {
|
|
16620
|
+
!ce && d && oe && (se(!1), T && T());
|
|
16621
16621
|
}, [
|
|
16622
|
-
|
|
16622
|
+
ce,
|
|
16623
16623
|
d,
|
|
16624
|
-
|
|
16624
|
+
oe,
|
|
16625
16625
|
T
|
|
16626
16626
|
]);
|
|
16627
|
-
let ue =
|
|
16627
|
+
let ue = ce && ce.onFilled, de = ce && ce.onEmpty, fe = H.useCallback((e) => {
|
|
16628
16628
|
ek(e) ? ue && ue() : de && de();
|
|
16629
16629
|
}, [ue, de]);
|
|
16630
16630
|
RO(() => {
|
|
16631
|
-
|
|
16631
|
+
ne && fe({ value: te });
|
|
16632
16632
|
}, [
|
|
16633
|
-
|
|
16633
|
+
te,
|
|
16634
16634
|
fe,
|
|
16635
|
-
|
|
16635
|
+
ne
|
|
16636
16636
|
]);
|
|
16637
16637
|
let pe = (e) => {
|
|
16638
|
-
O && O(e), v.onFocus && v.onFocus(e),
|
|
16638
|
+
O && O(e), v.onFocus && v.onFocus(e), ce && ce.onFocus ? ce.onFocus(e) : se(!0);
|
|
16639
16639
|
}, me = (e) => {
|
|
16640
|
-
T && T(e), v.onBlur && v.onBlur(e),
|
|
16640
|
+
T && T(e), v.onBlur && v.onBlur(e), ce && ce.onBlur ? ce.onBlur(e) : se(!1);
|
|
16641
16641
|
}, he = (e, ...t) => {
|
|
16642
|
-
if (!
|
|
16643
|
-
let t = e.target ||
|
|
16642
|
+
if (!ne) {
|
|
16643
|
+
let t = e.target || re.current;
|
|
16644
16644
|
if (t == null) throw Error(nw(1));
|
|
16645
16645
|
fe({ value: t.value });
|
|
16646
16646
|
}
|
|
16647
16647
|
v.onChange && v.onChange(e, ...t), E && E(e, ...t);
|
|
16648
16648
|
};
|
|
16649
16649
|
H.useEffect(() => {
|
|
16650
|
-
fe(
|
|
16650
|
+
fe(re.current);
|
|
16651
16651
|
}, []);
|
|
16652
16652
|
let ge = (e) => {
|
|
16653
|
-
|
|
16653
|
+
re.current && e.currentTarget === e.target && re.current.focus(), D && D(e);
|
|
16654
16654
|
}, _e = _, ve = v;
|
|
16655
16655
|
C && _e === "input" && (ve = P ? {
|
|
16656
16656
|
type: void 0,
|
|
@@ -16664,11 +16664,11 @@ var nk = XT("MuiInputBase", [
|
|
|
16664
16664
|
...ve
|
|
16665
16665
|
}, _e = JO);
|
|
16666
16666
|
let ye = (e) => {
|
|
16667
|
-
fe(e.animationName === "mui-auto-fill-cancel" ?
|
|
16667
|
+
fe(e.animationName === "mui-auto-fill-cancel" ? re.current : { value: "x" });
|
|
16668
16668
|
};
|
|
16669
16669
|
H.useEffect(() => {
|
|
16670
|
-
|
|
16671
|
-
}, [
|
|
16670
|
+
ce && ce.setAdornedStart(!!R);
|
|
16671
|
+
}, [ce, R]);
|
|
16672
16672
|
let be = {
|
|
16673
16673
|
...n,
|
|
16674
16674
|
color: le.color || "primary",
|
|
@@ -16676,13 +16676,13 @@ var nk = XT("MuiInputBase", [
|
|
|
16676
16676
|
endAdornment: p,
|
|
16677
16677
|
error: le.error,
|
|
16678
16678
|
focused: le.focused,
|
|
16679
|
-
formControl:
|
|
16679
|
+
formControl: ce,
|
|
16680
16680
|
fullWidth: h,
|
|
16681
16681
|
hiddenLabel: le.hiddenLabel,
|
|
16682
16682
|
multiline: C,
|
|
16683
16683
|
size: le.size,
|
|
16684
16684
|
startAdornment: R,
|
|
16685
|
-
type:
|
|
16685
|
+
type: z
|
|
16686
16686
|
}, xe = ok(be), Se = L.root || c.Root || sk, Ce = I.root || l.root || {}, we = L.input || c.Input || ck;
|
|
16687
16687
|
return ve = {
|
|
16688
16688
|
...ve,
|
|
@@ -16691,7 +16691,7 @@ var nk = XT("MuiInputBase", [
|
|
|
16691
16691
|
...Ce,
|
|
16692
16692
|
ref: t,
|
|
16693
16693
|
onClick: ge,
|
|
16694
|
-
...
|
|
16694
|
+
...ee,
|
|
16695
16695
|
...!YO(Se) && { ownerState: {
|
|
16696
16696
|
...be,
|
|
16697
16697
|
...Ce.ownerState
|
|
@@ -16715,10 +16715,10 @@ var nk = XT("MuiInputBase", [
|
|
|
16715
16715
|
readOnly: M,
|
|
16716
16716
|
required: le.required,
|
|
16717
16717
|
rows: P,
|
|
16718
|
-
value:
|
|
16718
|
+
value: te,
|
|
16719
16719
|
onKeyDown: k,
|
|
16720
16720
|
onKeyUp: A,
|
|
16721
|
-
type:
|
|
16721
|
+
type: z,
|
|
16722
16722
|
...ve,
|
|
16723
16723
|
...!YO(we) && {
|
|
16724
16724
|
as: _e,
|
|
@@ -16727,7 +16727,7 @@ var nk = XT("MuiInputBase", [
|
|
|
16727
16727
|
...ve.ownerState
|
|
16728
16728
|
}
|
|
16729
16729
|
},
|
|
16730
|
-
ref:
|
|
16730
|
+
ref: ae,
|
|
16731
16731
|
className: qr(xe.input, ve.className, M && "MuiInputBase-readOnly"),
|
|
16732
16732
|
onBlur: me,
|
|
16733
16733
|
onChange: he,
|
|
@@ -17722,33 +17722,33 @@ var GA = (e) => /*#__PURE__*/ (0, U.jsx)(fk, {
|
|
|
17722
17722
|
I,
|
|
17723
17723
|
f,
|
|
17724
17724
|
t
|
|
17725
|
-
]),
|
|
17726
|
-
|
|
17725
|
+
]), z = X((e) => e.enableDelete), B = X((e) => e.onDelete), ee = (0, H.useMemo)(() => !B || i !== void 0 || P || z === !1 || f === !1 ? !1 : typeof z == "function" ? !!z(r, t) : z, [
|
|
17726
|
+
B,
|
|
17727
17727
|
i,
|
|
17728
17728
|
P,
|
|
17729
17729
|
r,
|
|
17730
|
-
|
|
17730
|
+
z,
|
|
17731
17731
|
f,
|
|
17732
17732
|
t
|
|
17733
|
-
]),
|
|
17734
|
-
|
|
17733
|
+
]), te = X((e) => e.enableClipboard), { copy: ne, copied: re } = Hk(), ie = X((e) => e.highlightUpdates), ae = (0, H.useMemo)(() => !ie || n === void 0 ? !1 : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? !1 : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? !1 : t !== n : !0 : !0, [
|
|
17734
|
+
ie,
|
|
17735
17735
|
n,
|
|
17736
17736
|
t
|
|
17737
|
-
]),
|
|
17737
|
+
]), oe = (0, H.useRef)();
|
|
17738
17738
|
(0, H.useEffect)(() => {
|
|
17739
|
-
|
|
17739
|
+
oe.current && ae && "animate" in oe.current && oe.current.animate([{ backgroundColor: A }, { backgroundColor: "" }], {
|
|
17740
17740
|
duration: 1e3,
|
|
17741
17741
|
easing: "ease-in"
|
|
17742
17742
|
});
|
|
17743
17743
|
}, [
|
|
17744
17744
|
A,
|
|
17745
|
-
|
|
17745
|
+
ae,
|
|
17746
17746
|
n,
|
|
17747
17747
|
t
|
|
17748
17748
|
]);
|
|
17749
|
-
let
|
|
17749
|
+
let se = (0, H.useCallback)((e) => {
|
|
17750
17750
|
e.preventDefault(), u && g(u(t)), E(!0);
|
|
17751
|
-
}, [u, t]),
|
|
17751
|
+
}, [u, t]), ce = (0, H.useCallback)(() => {
|
|
17752
17752
|
E(!1), g("");
|
|
17753
17753
|
}, [E, g]), le = (0, H.useCallback)((e) => {
|
|
17754
17754
|
if (E(!1), d) try {
|
|
@@ -17762,24 +17762,24 @@ var GA = (e) => /*#__PURE__*/ (0, U.jsx)(fk, {
|
|
|
17762
17762
|
t
|
|
17763
17763
|
]), ue = (0, H.useMemo)(() => T ? /*#__PURE__*/ (0, U.jsxs)(U.Fragment, { children: [/*#__PURE__*/ (0, U.jsx)(GA, { children: /*#__PURE__*/ (0, U.jsx)(SA, {
|
|
17764
17764
|
sx: { fontSize: ".8rem" },
|
|
17765
|
-
onClick:
|
|
17765
|
+
onClick: ce
|
|
17766
17766
|
}) }), /*#__PURE__*/ (0, U.jsx)(GA, { children: /*#__PURE__*/ (0, U.jsx)(yA, {
|
|
17767
17767
|
sx: { fontSize: ".8rem" },
|
|
17768
17768
|
onClick: () => le(h)
|
|
17769
17769
|
}) })] }) : /*#__PURE__*/ (0, U.jsxs)(U.Fragment, { children: [
|
|
17770
|
-
|
|
17770
|
+
te && /*#__PURE__*/ (0, U.jsx)(GA, {
|
|
17771
17771
|
onClick: (e) => {
|
|
17772
17772
|
e.preventDefault();
|
|
17773
17773
|
try {
|
|
17774
|
-
|
|
17774
|
+
ne(r, t, Vk);
|
|
17775
17775
|
} catch (e) {
|
|
17776
17776
|
console.error(e);
|
|
17777
17777
|
}
|
|
17778
17778
|
},
|
|
17779
|
-
children:
|
|
17779
|
+
children: re ? /*#__PURE__*/ (0, U.jsx)(yA, { sx: { fontSize: ".8rem" } }) : /*#__PURE__*/ (0, U.jsx)(CA, { sx: { fontSize: ".8rem" } })
|
|
17780
17780
|
}),
|
|
17781
17781
|
l && m && u && d && /*#__PURE__*/ (0, U.jsx)(GA, {
|
|
17782
|
-
onClick:
|
|
17782
|
+
onClick: se,
|
|
17783
17783
|
children: /*#__PURE__*/ (0, U.jsx)(wA, { sx: { fontSize: ".8rem" } })
|
|
17784
17784
|
}),
|
|
17785
17785
|
R && /*#__PURE__*/ (0, U.jsx)(GA, {
|
|
@@ -17788,9 +17788,9 @@ var GA = (e) => /*#__PURE__*/ (0, U.jsx)(fk, {
|
|
|
17788
17788
|
},
|
|
17789
17789
|
children: /*#__PURE__*/ (0, U.jsx)(vA, { sx: { fontSize: ".8rem" } })
|
|
17790
17790
|
}),
|
|
17791
|
-
|
|
17791
|
+
ee && /*#__PURE__*/ (0, U.jsx)(GA, {
|
|
17792
17792
|
onClick: (e) => {
|
|
17793
|
-
e.preventDefault(),
|
|
17793
|
+
e.preventDefault(), B?.(r, t);
|
|
17794
17794
|
},
|
|
17795
17795
|
children: /*#__PURE__*/ (0, U.jsx)(EA, { sx: { fontSize: ".9rem" } })
|
|
17796
17796
|
})
|
|
@@ -17798,20 +17798,20 @@ var GA = (e) => /*#__PURE__*/ (0, U.jsx)(fk, {
|
|
|
17798
17798
|
l,
|
|
17799
17799
|
u,
|
|
17800
17800
|
d,
|
|
17801
|
-
ie,
|
|
17802
17801
|
re,
|
|
17802
|
+
ne,
|
|
17803
17803
|
m,
|
|
17804
17804
|
T,
|
|
17805
|
-
ne,
|
|
17806
|
-
R,
|
|
17807
17805
|
te,
|
|
17806
|
+
R,
|
|
17807
|
+
ee,
|
|
17808
17808
|
h,
|
|
17809
17809
|
r,
|
|
17810
17810
|
t,
|
|
17811
17811
|
L,
|
|
17812
|
-
z,
|
|
17813
|
-
ce,
|
|
17814
17812
|
B,
|
|
17813
|
+
se,
|
|
17814
|
+
ce,
|
|
17815
17815
|
le
|
|
17816
17816
|
]), de = (0, H.useMemo)(() => Rk(t) === 0, [t]), fe = !de && !!(s && c), pe = X((e) => e.keyRenderer), me = (0, H.useMemo)(() => ({
|
|
17817
17817
|
path: r,
|
|
@@ -17865,7 +17865,7 @@ var GA = (e) => /*#__PURE__*/ (0, U.jsx)(fk, {
|
|
|
17865
17865
|
}
|
|
17866
17866
|
}) : null,
|
|
17867
17867
|
/*#__PURE__*/ (0, U.jsx)(fk, {
|
|
17868
|
-
ref:
|
|
17868
|
+
ref: oe,
|
|
17869
17869
|
className: "data-key-key",
|
|
17870
17870
|
component: "span",
|
|
17871
17871
|
children: P && _ === 0 ? N === !1 ? null : M ? /*#__PURE__*/ (0, U.jsxs)(U.Fragment, { children: [
|
|
@@ -17906,7 +17906,7 @@ var GA = (e) => /*#__PURE__*/ (0, U.jsx)(fk, {
|
|
|
17906
17906
|
path: r,
|
|
17907
17907
|
value: h,
|
|
17908
17908
|
setValue: g,
|
|
17909
|
-
abortEditing:
|
|
17909
|
+
abortEditing: ce,
|
|
17910
17910
|
commitEditing: le
|
|
17911
17911
|
}) : o ? /*#__PURE__*/ (0, U.jsx)(o, { ...me }) : /*#__PURE__*/ (0, U.jsx)(fk, {
|
|
17912
17912
|
component: "span",
|
|
@@ -18088,7 +18088,7 @@ function pj(e) {
|
|
|
18088
18088
|
var mj = L(uj, {
|
|
18089
18089
|
chats: /* @__PURE__ */ new Map(),
|
|
18090
18090
|
activeChatId: null
|
|
18091
|
-
},
|
|
18091
|
+
}, B({
|
|
18092
18092
|
toSerializable: (e) => ({
|
|
18093
18093
|
chats: [...pj(e.chats).entries()],
|
|
18094
18094
|
activeChatId: e.activeChatId
|
|
@@ -18270,12 +18270,12 @@ function Tj() {
|
|
|
18270
18270
|
//#region src/components/editor/chrome/wrapper/useOpenAiAssistant.ts
|
|
18271
18271
|
var Ej = "code_mode";
|
|
18272
18272
|
function Dj(e, t) {
|
|
18273
|
-
return e || (
|
|
18273
|
+
return e || (se("external_agents") ? t : "chat");
|
|
18274
18274
|
}
|
|
18275
18275
|
function Oj() {
|
|
18276
18276
|
let e = (0, W.c)(6), { openApplication: t } = N(), { setAiPanelTab: n } = Tj(), { saveModeChange: r } = Cj(), i = Ri(fj), a = Ei(), o;
|
|
18277
18277
|
return e[0] !== t || e[1] !== r || e[2] !== n || e[3] !== i || e[4] !== a ? (o = async (e) => {
|
|
18278
|
-
let o = Dj(e.panel, a.get(wj)), s = a.get(Ii), c =
|
|
18278
|
+
let o = Dj(e.panel, a.get(wj)), s = a.get(Ii), c = se("external_agents") && a.get(xj).sessions.length > 0;
|
|
18279
18279
|
if (!(o === "agents" ? c : s)) {
|
|
18280
18280
|
m({
|
|
18281
18281
|
title: o === "agents" ? "No agent session" : "AI not configured",
|
|
@@ -18311,7 +18311,7 @@ function Mj(e, t) {
|
|
|
18311
18311
|
return n ? `My code gives the following error. Please fix it:\n\n${n}` : "Please fix this error.";
|
|
18312
18312
|
}
|
|
18313
18313
|
var Nj = (e) => {
|
|
18314
|
-
let t = (0, W.c)(25), { errors: n, cellId: r, className: i } = e, o = Ei(), { createNewCell: s } =
|
|
18314
|
+
let t = (0, W.c)(25), { errors: n, cellId: r, className: i } = e, o = Ei(), { createNewCell: s } = ce(), c = Si(Fi), l;
|
|
18315
18315
|
if (t[0] !== c || t[1] !== n) {
|
|
18316
18316
|
let e;
|
|
18317
18317
|
t[3] === c ? e = t[4] : (e = (e) => vj(e, { aiEnabled: c }), t[3] = c, t[4] = e), l = n.flatMap(e), t[0] = c, t[1] = n, t[2] = l;
|
|
@@ -18417,7 +18417,7 @@ var Nj = (e) => {
|
|
|
18417
18417
|
})
|
|
18418
18418
|
}), t[9] = h) : h = t[9];
|
|
18419
18419
|
let g;
|
|
18420
|
-
t[10] !== o || t[11] !== s ? (g = Fj.map((e) => /* @__PURE__ */ (0, U.jsx)(
|
|
18420
|
+
t[10] !== o || t[11] !== s ? (g = Fj.map((e) => /* @__PURE__ */ (0, U.jsx)(Jn, {
|
|
18421
18421
|
className: "flex items-center gap-2",
|
|
18422
18422
|
onClick: () => s(e),
|
|
18423
18423
|
children: /* @__PURE__ */ (0, U.jsx)(Lj, {
|
|
@@ -18426,7 +18426,7 @@ var Nj = (e) => {
|
|
|
18426
18426
|
})
|
|
18427
18427
|
}, e)), t[10] = o, t[11] = s, t[12] = g) : g = t[12];
|
|
18428
18428
|
let _;
|
|
18429
|
-
t[13] === g ? _ = t[14] : (_ = /* @__PURE__ */ (0, U.jsxs)(
|
|
18429
|
+
t[13] === g ? _ = t[14] : (_ = /* @__PURE__ */ (0, U.jsxs)(yr, { children: [h, /* @__PURE__ */ (0, U.jsx)(or, {
|
|
18430
18430
|
align: "end",
|
|
18431
18431
|
className: "w-56",
|
|
18432
18432
|
children: g
|
|
@@ -18474,7 +18474,7 @@ function Rj() {
|
|
|
18474
18474
|
//#endregion
|
|
18475
18475
|
//#region src/components/editor/links/cell-link.tsx
|
|
18476
18476
|
var zj = (e) => {
|
|
18477
|
-
let t = (0, W.c)(12), { className: n, cellId: r, variant: i, onClick: o, formatCellName: s, skipScroll: c } = e, l =
|
|
18477
|
+
let t = (0, W.c)(12), { className: n, cellId: r, variant: i, onClick: o, formatCellName: s, skipScroll: c } = e, l = z()[r] ?? "", u = ue().inOrderIds.indexOf(r), { showCellIfHidden: d } = ce(), f = s ?? Uj, p;
|
|
18478
18478
|
t[0] === n ? p = t[1] : (p = a("inline-block cursor-pointer text-link hover:underline", n), t[0] = n, t[1] = p);
|
|
18479
18479
|
let m;
|
|
18480
18480
|
t[2] !== r || t[3] !== o || t[4] !== d || t[5] !== c || t[6] !== i ? (m = (e) => {
|
|
@@ -18740,7 +18740,7 @@ var eM = (e) => {
|
|
|
18740
18740
|
let t = (0, W.c)(16), { traceback: n } = e, [r, i] = (0, H.useState)(!0), a;
|
|
18741
18741
|
t[0] === r ? a = t[1] : (a = () => i(!r), t[0] = r, t[1] = a);
|
|
18742
18742
|
let o = r ? "Collapse traceback" : "Expand traceback", s;
|
|
18743
|
-
t[2] === r ? s = t[3] : (s = r ? /* @__PURE__ */ (0, U.jsx)(ut, { className: "h-3 w-3" }) : /* @__PURE__ */ (0, U.jsx)(
|
|
18743
|
+
t[2] === r ? s = t[3] : (s = r ? /* @__PURE__ */ (0, U.jsx)(ut, { className: "h-3 w-3" }) : /* @__PURE__ */ (0, U.jsx)(Kn, { className: "h-3 w-3" }), t[2] = r, t[3] = s);
|
|
18744
18744
|
let c;
|
|
18745
18745
|
t[4] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, U.jsx)("span", {
|
|
18746
18746
|
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
@@ -18974,7 +18974,7 @@ var eM = (e) => {
|
|
|
18974
18974
|
variant: "link",
|
|
18975
18975
|
className: "my-2 font-normal mx-0 px-0",
|
|
18976
18976
|
onClick: N,
|
|
18977
|
-
children: [/* @__PURE__ */ (0, U.jsx)(
|
|
18977
|
+
children: [/* @__PURE__ */ (0, U.jsx)(oe, { className: "h-3" }), /* @__PURE__ */ (0, U.jsx)("span", { children: "Try the scratchpad" })]
|
|
18978
18978
|
}), /* @__PURE__ */ (0, U.jsx)("span", { children: "to experiment without restrictions on variable names." })]
|
|
18979
18979
|
})
|
|
18980
18980
|
})
|
|
@@ -19441,7 +19441,7 @@ var eN = H.lazy(() => import("./vega-embed-container-TJ5z5dZw.js").then((e) => (
|
|
|
19441
19441
|
let e = (0, W.c)(1), t;
|
|
19442
19442
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ (0, U.jsxs)("div", {
|
|
19443
19443
|
className: "flex items-center gap-2 justify-center",
|
|
19444
|
-
children: [/* @__PURE__ */ (0, U.jsx)(
|
|
19444
|
+
children: [/* @__PURE__ */ (0, U.jsx)(ie, {
|
|
19445
19445
|
className: "w-10 h-10 animate-spin",
|
|
19446
19446
|
strokeWidth: 1
|
|
19447
19447
|
}), /* @__PURE__ */ (0, U.jsx)("span", { children: "Loading chart..." })]
|
|
@@ -21748,13 +21748,13 @@ var lI = {
|
|
|
21748
21748
|
case "number": {
|
|
21749
21749
|
let t = Number.parseFloat(e);
|
|
21750
21750
|
switch (n) {
|
|
21751
|
-
case "Auto": return
|
|
21751
|
+
case "Auto": return Or(t, i);
|
|
21752
21752
|
case "Percent": return a.format(t);
|
|
21753
|
-
case "Scientific": return
|
|
21753
|
+
case "Scientific": return fn(t, {
|
|
21754
21754
|
shouldRound: !0,
|
|
21755
21755
|
locale: i
|
|
21756
21756
|
});
|
|
21757
|
-
case "Engineering": return
|
|
21757
|
+
case "Engineering": return Mn(t, i);
|
|
21758
21758
|
case "Integer": return l.format(t);
|
|
21759
21759
|
default: return e;
|
|
21760
21760
|
}
|
|
@@ -21875,16 +21875,16 @@ function mI(e) {
|
|
|
21875
21875
|
let m = ke[i || "unknown"], h;
|
|
21876
21876
|
t[11] === n ? h = t[12] : (h = n.getColumnFormatting?.(), t[11] = n, t[12] = h);
|
|
21877
21877
|
let g = h;
|
|
21878
|
-
c =
|
|
21878
|
+
c = tr, t[13] === m ? f = t[14] : (f = /* @__PURE__ */ (0, U.jsxs)(In, { children: [/* @__PURE__ */ (0, U.jsx)(m, { className: "mo-dropdown-icon" }), "Format"] }), t[13] = m, t[14] = f), s = lr, o = Sr, t[15] === r ? l = t[16] : (l = /* @__PURE__ */ (0, U.jsxs)("div", {
|
|
21879
21879
|
className: "text-xs text-muted-foreground px-2 py-1",
|
|
21880
21880
|
children: ["Locale: ", r]
|
|
21881
|
-
}), t[15] = r, t[16] = l), t[17] !== n || t[18] !== g ? (u = !!g && /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(
|
|
21881
|
+
}), t[15] = r, t[16] = l), t[17] !== n || t[18] !== g ? (u = !!g && /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(Jn, {
|
|
21882
21882
|
variant: "danger",
|
|
21883
21883
|
onClick: () => n.setColumnFormatting(void 0),
|
|
21884
21884
|
children: "Clear"
|
|
21885
|
-
}, "clear"), /* @__PURE__ */ (0, U.jsx)(
|
|
21885
|
+
}, "clear"), /* @__PURE__ */ (0, U.jsx)(gr, {})] }), t[17] = n, t[18] = g, t[19] = u) : u = t[19];
|
|
21886
21886
|
let _;
|
|
21887
|
-
t[20] !== n || t[21] !== g || t[22] !== r ? (_ = (e) => /* @__PURE__ */ (0, U.jsxs)(
|
|
21887
|
+
t[20] !== n || t[21] !== g || t[22] !== r ? (_ = (e) => /* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
21888
21888
|
onClick: () => n.setColumnFormatting(e),
|
|
21889
21889
|
children: [/* @__PURE__ */ (0, U.jsx)("span", {
|
|
21890
21890
|
className: a(g === e && "font-semibold"),
|
|
@@ -21918,7 +21918,7 @@ function hI(e) {
|
|
|
21918
21918
|
let r;
|
|
21919
21919
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0, U.jsx)(Va, { className: "mo-dropdown-icon" }), t[2] = r) : r = t[2];
|
|
21920
21920
|
let i;
|
|
21921
|
-
return t[3] === e ? i = t[4] : (i = /* @__PURE__ */ (0, U.jsxs)(
|
|
21921
|
+
return t[3] === e ? i = t[4] : (i = /* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
21922
21922
|
onClick: e,
|
|
21923
21923
|
children: [r, "No wrap text"]
|
|
21924
21924
|
}), t[3] = e, t[4] = i), i;
|
|
@@ -21928,7 +21928,7 @@ function hI(e) {
|
|
|
21928
21928
|
let i;
|
|
21929
21929
|
t[7] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0, U.jsx)(Ha, { className: "mo-dropdown-icon" }), t[7] = i) : i = t[7];
|
|
21930
21930
|
let a;
|
|
21931
|
-
return t[8] === r ? a = t[9] : (a = /* @__PURE__ */ (0, U.jsxs)(
|
|
21931
|
+
return t[8] === r ? a = t[9] : (a = /* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
21932
21932
|
onClick: r,
|
|
21933
21933
|
children: [i, "Wrap text"]
|
|
21934
21934
|
}), t[8] = r, t[9] = a), a;
|
|
@@ -21942,7 +21942,7 @@ function gI(e) {
|
|
|
21942
21942
|
let r;
|
|
21943
21943
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0, U.jsx)(Ia, { className: "mo-dropdown-icon" }), t[2] = r) : r = t[2];
|
|
21944
21944
|
let i;
|
|
21945
|
-
return t[3] === e ? i = t[4] : (i = /* @__PURE__ */ (0, U.jsxs)(
|
|
21945
|
+
return t[3] === e ? i = t[4] : (i = /* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
21946
21946
|
onClick: e,
|
|
21947
21947
|
children: [r, "Unfreeze"]
|
|
21948
21948
|
}), t[3] = e, t[4] = i), i;
|
|
@@ -21952,7 +21952,7 @@ function gI(e) {
|
|
|
21952
21952
|
let i;
|
|
21953
21953
|
t[7] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0, U.jsx)(y, { className: "mo-dropdown-icon" }), t[7] = i) : i = t[7];
|
|
21954
21954
|
let a;
|
|
21955
|
-
t[8] === r ? a = t[9] : (a = /* @__PURE__ */ (0, U.jsxs)(
|
|
21955
|
+
t[8] === r ? a = t[9] : (a = /* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
21956
21956
|
onClick: r,
|
|
21957
21957
|
children: [i, "Freeze left"]
|
|
21958
21958
|
}), t[8] = r, t[9] = a);
|
|
@@ -21961,7 +21961,7 @@ function gI(e) {
|
|
|
21961
21961
|
let s;
|
|
21962
21962
|
t[12] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, U.jsx)(v, { className: "mo-dropdown-icon" }), t[12] = s) : s = t[12];
|
|
21963
21963
|
let c;
|
|
21964
|
-
t[13] === o ? c = t[14] : (c = /* @__PURE__ */ (0, U.jsxs)(
|
|
21964
|
+
t[13] === o ? c = t[14] : (c = /* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
21965
21965
|
onClick: o,
|
|
21966
21966
|
children: [s, "Freeze right"]
|
|
21967
21967
|
}), t[13] = o, t[14] = c);
|
|
@@ -21976,7 +21976,7 @@ function _I(e) {
|
|
|
21976
21976
|
let i;
|
|
21977
21977
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0, U.jsx)(wa, { className: "mo-dropdown-icon" }), t[2] = i) : i = t[2];
|
|
21978
21978
|
let a;
|
|
21979
|
-
return t[3] === r ? a = t[4] : (a = /* @__PURE__ */ (0, U.jsxs)(
|
|
21979
|
+
return t[3] === r ? a = t[4] : (a = /* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
21980
21980
|
onClick: r,
|
|
21981
21981
|
children: [i, "Hide column"]
|
|
21982
21982
|
}), t[3] = r, t[4] = a), a;
|
|
@@ -21989,7 +21989,7 @@ function vI(e) {
|
|
|
21989
21989
|
let i;
|
|
21990
21990
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0, U.jsx)(p, { className: "mo-dropdown-icon" }), t[2] = i) : i = t[2];
|
|
21991
21991
|
let a;
|
|
21992
|
-
return t[3] === r ? a = t[4] : (a = /* @__PURE__ */ (0, U.jsxs)(
|
|
21992
|
+
return t[3] === r ? a = t[4] : (a = /* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
21993
21993
|
onClick: r,
|
|
21994
21994
|
children: [i, "Copy column name"]
|
|
21995
21995
|
}), t[3] = r, t[4] = a), a;
|
|
@@ -22008,10 +22008,10 @@ function xI(e) {
|
|
|
22008
22008
|
children: o + 1
|
|
22009
22009
|
}), t[4] = o, t[5] = u);
|
|
22010
22010
|
let d = u, f;
|
|
22011
|
-
t[6] !== n || t[7] !== l || t[8] !== a || t[9] !== r ? (f = () => a ? l ? /* @__PURE__ */ (0, U.jsxs)(
|
|
22011
|
+
t[6] !== n || t[7] !== l || t[8] !== a || t[9] !== r ? (f = () => a ? l ? /* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
22012
22012
|
onClick: () => r?.resetSorting(),
|
|
22013
22013
|
children: [/* @__PURE__ */ (0, U.jsx)(_a, { className: "mo-dropdown-icon" }), "Clear all sorts"]
|
|
22014
|
-
}) : /* @__PURE__ */ (0, U.jsxs)(
|
|
22014
|
+
}) : /* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
22015
22015
|
onClick: () => n.clearSorting(),
|
|
22016
22016
|
children: [/* @__PURE__ */ (0, U.jsx)(_a, { className: "mo-dropdown-icon" }), "Clear sort"]
|
|
22017
22017
|
}) : null, t[6] = n, t[7] = l, t[8] = a, t[9] = r, t[10] = f) : f = t[10];
|
|
@@ -22030,7 +22030,7 @@ function xI(e) {
|
|
|
22030
22030
|
let y;
|
|
22031
22031
|
t[17] !== d || t[18] !== a ? (y = a === "asc" && d(), t[17] = d, t[18] = a, t[19] = y) : y = t[19];
|
|
22032
22032
|
let b;
|
|
22033
|
-
t[20] !== g || t[21] !== _ || t[22] !== y ? (b = /* @__PURE__ */ (0, U.jsxs)(
|
|
22033
|
+
t[20] !== g || t[21] !== _ || t[22] !== y ? (b = /* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
22034
22034
|
onClick: g,
|
|
22035
22035
|
className: _,
|
|
22036
22036
|
children: [
|
|
@@ -22046,7 +22046,7 @@ function xI(e) {
|
|
|
22046
22046
|
let w;
|
|
22047
22047
|
t[27] !== d || t[28] !== a ? (w = a === "desc" && d(), t[27] = d, t[28] = a, t[29] = w) : w = t[29];
|
|
22048
22048
|
let T;
|
|
22049
|
-
t[30] !== x || t[31] !== S || t[32] !== w ? (T = /* @__PURE__ */ (0, U.jsxs)(
|
|
22049
|
+
t[30] !== x || t[31] !== S || t[32] !== w ? (T = /* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
22050
22050
|
onClick: x,
|
|
22051
22051
|
className: S,
|
|
22052
22052
|
children: [
|
|
@@ -22078,7 +22078,7 @@ function CI(e) {
|
|
|
22078
22078
|
children: r
|
|
22079
22079
|
}), t[0] = r, t[1] = i);
|
|
22080
22080
|
let a;
|
|
22081
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ (0, U.jsx)(
|
|
22081
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ (0, U.jsx)(gr, {}), t[2] = a) : a = t[2];
|
|
22082
22082
|
let o;
|
|
22083
22083
|
return t[3] === i ? o = t[4] : (o = /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [i, a] }), t[3] = i, t[4] = o), o;
|
|
22084
22084
|
}
|
|
@@ -22088,7 +22088,7 @@ var wI = (e) => {
|
|
|
22088
22088
|
let i;
|
|
22089
22089
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0, U.jsx)(Ta, { className: "mo-dropdown-icon" }), t[2] = i) : i = t[2];
|
|
22090
22090
|
let a;
|
|
22091
|
-
return t[3] === r ? a = t[4] : (a = /* @__PURE__ */ (0, U.jsxs)(
|
|
22091
|
+
return t[3] === r ? a = t[4] : (a = /* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
22092
22092
|
onClick: r,
|
|
22093
22093
|
children: [i, "Clear filter"]
|
|
22094
22094
|
}), t[3] = r, t[4] = a), a;
|
|
@@ -22112,7 +22112,7 @@ var wI = (e) => {
|
|
|
22112
22112
|
/* @__PURE__ */ (0, U.jsx)("span", { children: t }),
|
|
22113
22113
|
l && /* @__PURE__ */ (0, U.jsx)(EI, {}),
|
|
22114
22114
|
e.getCanSort() && /* @__PURE__ */ (0, U.jsx)(DI, { column: e })
|
|
22115
|
-
] }), /* @__PURE__ */ (0, U.jsxs)(
|
|
22115
|
+
] }), /* @__PURE__ */ (0, U.jsxs)(yr, {
|
|
22116
22116
|
modal: !1,
|
|
22117
22117
|
children: [/* @__PURE__ */ (0, U.jsx)(Vn, {
|
|
22118
22118
|
asChild: !0,
|
|
@@ -22123,7 +22123,7 @@ var wI = (e) => {
|
|
|
22123
22123
|
"data-testid": "data-table-column-menu-button",
|
|
22124
22124
|
children: /* @__PURE__ */ (0, U.jsx)(Sa, { className: "h-3.5 w-3.5" })
|
|
22125
22125
|
})
|
|
22126
|
-
}), /* @__PURE__ */ (0, U.jsxs)(
|
|
22126
|
+
}), /* @__PURE__ */ (0, U.jsxs)(or, {
|
|
22127
22127
|
align: "start",
|
|
22128
22128
|
children: [
|
|
22129
22129
|
/* @__PURE__ */ (0, U.jsx)(CI, { column: e }),
|
|
@@ -22139,12 +22139,12 @@ var wI = (e) => {
|
|
|
22139
22139
|
locale: s
|
|
22140
22140
|
}),
|
|
22141
22141
|
/* @__PURE__ */ (0, U.jsx)(_I, { column: e }),
|
|
22142
|
-
d && /* @__PURE__ */ (0, U.jsx)(
|
|
22143
|
-
d && /* @__PURE__ */ (0, U.jsxs)(
|
|
22142
|
+
d && /* @__PURE__ */ (0, U.jsx)(gr, {}),
|
|
22143
|
+
d && /* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
22144
22144
|
onSelect: () => c.requestAddFilter({ columnId: e.id }),
|
|
22145
22145
|
children: [/* @__PURE__ */ (0, U.jsx)(Ea, { className: "mo-dropdown-icon" }), "Filter"]
|
|
22146
22146
|
}),
|
|
22147
|
-
f && /* @__PURE__ */ (0, U.jsxs)(
|
|
22147
|
+
f && /* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
22148
22148
|
onSelect: () => c.requestAddFilter({
|
|
22149
22149
|
columnId: e.id,
|
|
22150
22150
|
operator: "in"
|
|
@@ -23363,7 +23363,7 @@ var lL = class e {
|
|
|
23363
23363
|
children: [
|
|
23364
23364
|
/* @__PURE__ */ (0, U.jsxs)("span", { children: ["min: ", p(u.min, l)] }),
|
|
23365
23365
|
/* @__PURE__ */ (0, U.jsxs)("span", { children: ["max: ", p(u.max, l)] }),
|
|
23366
|
-
/* @__PURE__ */ (0, U.jsxs)("span", { children: ["unique: ",
|
|
23366
|
+
/* @__PURE__ */ (0, U.jsxs)("span", { children: ["unique: ", Or(u.unique, r)] })
|
|
23367
23367
|
]
|
|
23368
23368
|
});
|
|
23369
23369
|
case "integer":
|
|
@@ -23373,7 +23373,7 @@ var lL = class e {
|
|
|
23373
23373
|
/* @__PURE__ */ (0, U.jsxs)("span", { children: [
|
|
23374
23374
|
"min:",
|
|
23375
23375
|
" ",
|
|
23376
|
-
typeof u.min == "number" ?
|
|
23376
|
+
typeof u.min == "number" ? fn(u.min, {
|
|
23377
23377
|
shouldRound: !0,
|
|
23378
23378
|
locale: r
|
|
23379
23379
|
}) : u.min
|
|
@@ -23381,27 +23381,27 @@ var lL = class e {
|
|
|
23381
23381
|
/* @__PURE__ */ (0, U.jsxs)("span", { children: [
|
|
23382
23382
|
"max:",
|
|
23383
23383
|
" ",
|
|
23384
|
-
typeof u.max == "number" ?
|
|
23384
|
+
typeof u.max == "number" ? fn(u.max, {
|
|
23385
23385
|
shouldRound: !0,
|
|
23386
23386
|
locale: r
|
|
23387
23387
|
}) : u.max
|
|
23388
23388
|
] }),
|
|
23389
|
-
/* @__PURE__ */ (0, U.jsxs)("span", { children: ["unique: ",
|
|
23389
|
+
/* @__PURE__ */ (0, U.jsxs)("span", { children: ["unique: ", Or(u.unique, r)] })
|
|
23390
23390
|
]
|
|
23391
23391
|
});
|
|
23392
23392
|
case "boolean": return e ? null : /* @__PURE__ */ (0, U.jsxs)("div", {
|
|
23393
23393
|
className: "flex flex-col whitespace-pre",
|
|
23394
|
-
children: [/* @__PURE__ */ (0, U.jsxs)("span", { children: ["true: ",
|
|
23394
|
+
children: [/* @__PURE__ */ (0, U.jsxs)("span", { children: ["true: ", Or(u.true, r)] }), /* @__PURE__ */ (0, U.jsxs)("span", { children: ["false: ", Or(u.false, r)] })]
|
|
23395
23395
|
});
|
|
23396
23396
|
case "time": return null;
|
|
23397
23397
|
case "string": return e ? null : /* @__PURE__ */ (0, U.jsx)("div", {
|
|
23398
23398
|
className: "flex flex-col whitespace-pre",
|
|
23399
|
-
children: /* @__PURE__ */ (0, U.jsxs)("span", { children: ["unique: ",
|
|
23399
|
+
children: /* @__PURE__ */ (0, U.jsxs)("span", { children: ["unique: ", Or(u.unique, r)] })
|
|
23400
23400
|
});
|
|
23401
23401
|
case "geometry":
|
|
23402
23402
|
case "unknown": return /* @__PURE__ */ (0, U.jsx)("div", {
|
|
23403
23403
|
className: "flex flex-col whitespace-pre",
|
|
23404
|
-
children: /* @__PURE__ */ (0, U.jsxs)("span", { children: ["nulls: ",
|
|
23404
|
+
children: /* @__PURE__ */ (0, U.jsxs)("span", { children: ["nulls: ", Or(u.nulls, r)] })
|
|
23405
23405
|
});
|
|
23406
23406
|
default: return it(l), null;
|
|
23407
23407
|
}
|
|
@@ -23603,7 +23603,7 @@ var xL = (e) => {
|
|
|
23603
23603
|
}), t[10] = a, t[11] = u, t[12] = f, t[13] = p) : p = t[13], p;
|
|
23604
23604
|
};
|
|
23605
23605
|
function SL(e) {
|
|
23606
|
-
let t =
|
|
23606
|
+
let t = fr.lexer(e), n = /* @__PURE__ */ new Set([
|
|
23607
23607
|
"space",
|
|
23608
23608
|
"code",
|
|
23609
23609
|
"fences",
|
|
@@ -24006,7 +24006,7 @@ var VL = ({ value: e, minFractionDigits: t }) => {
|
|
|
24006
24006
|
let { locale: n } = at();
|
|
24007
24007
|
return Dt({
|
|
24008
24008
|
minimumFractionDigits: t,
|
|
24009
|
-
maximumFractionDigits:
|
|
24009
|
+
maximumFractionDigits: Ar(n)
|
|
24010
24010
|
}).format(e);
|
|
24011
24011
|
}, HL = H.forwardRef((e, t) => {
|
|
24012
24012
|
let n = (0, W.c)(9), r, i;
|
|
@@ -25513,7 +25513,7 @@ var oB = {
|
|
|
25513
25513
|
let t = (0, W.c)(8), n, r;
|
|
25514
25514
|
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
25515
25515
|
let i;
|
|
25516
|
-
t[3] === n ? i = t[4] : (i =
|
|
25516
|
+
t[3] === n ? i = t[4] : (i = Wt(n, dB), t[3] = n, t[4] = i);
|
|
25517
25517
|
let a;
|
|
25518
25518
|
return t[5] !== r || t[6] !== i ? (a = /* @__PURE__ */ (0, U.jsx)(Ey, {
|
|
25519
25519
|
className: i,
|
|
@@ -25525,7 +25525,7 @@ var oB = {
|
|
|
25525
25525
|
let o;
|
|
25526
25526
|
t[4] === i ? o = t[5] : (o = (e) => a(Ry({ variant: i }), "text-sm", e), t[4] = i, t[5] = o);
|
|
25527
25527
|
let s;
|
|
25528
|
-
t[6] !== n || t[7] !== o ? (s =
|
|
25528
|
+
t[6] !== n || t[7] !== o ? (s = Wt(n, o), t[6] = n, t[7] = o, t[8] = s) : s = t[8];
|
|
25529
25529
|
let c;
|
|
25530
25530
|
return t[9] !== r || t[10] !== s ? (c = /* @__PURE__ */ (0, U.jsx)(Cy, {
|
|
25531
25531
|
className: s,
|
|
@@ -25536,13 +25536,13 @@ var oB = {
|
|
|
25536
25536
|
let t = (0, W.c)(21), n, r, i, a, o;
|
|
25537
25537
|
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5]) : ({label: a, description: r, errorMessage: i, className: n, ...o} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o);
|
|
25538
25538
|
let s;
|
|
25539
|
-
t[6] === n ? s = t[7] : (s =
|
|
25539
|
+
t[6] === n ? s = t[7] : (s = Wt(n, pB), t[6] = n, t[7] = s);
|
|
25540
25540
|
let c;
|
|
25541
25541
|
t[8] === a ? c = t[9] : (c = /* @__PURE__ */ (0, U.jsx)(Iy, { children: a }), t[8] = a, t[9] = c);
|
|
25542
25542
|
let l;
|
|
25543
25543
|
t[10] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, U.jsx)(lB, {}), t[10] = l) : l = t[10];
|
|
25544
25544
|
let u;
|
|
25545
|
-
t[11] === r ? u = t[12] : (u = r && /* @__PURE__ */ (0, U.jsx)(
|
|
25545
|
+
t[11] === r ? u = t[12] : (u = r && /* @__PURE__ */ (0, U.jsx)(Zn, {
|
|
25546
25546
|
slot: "description",
|
|
25547
25547
|
children: r
|
|
25548
25548
|
}), t[11] = r, t[12] = u);
|
|
@@ -25575,7 +25575,7 @@ var mB = (e) => {
|
|
|
25575
25575
|
let t = (0, W.c)(10), n, r, i;
|
|
25576
25576
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({className: n, offset: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
25577
25577
|
let a = i === void 0 ? 4 : i, o;
|
|
25578
|
-
t[4] === n ? o = t[5] : (o =
|
|
25578
|
+
t[4] === n ? o = t[5] : (o = Wt(n, hB), t[4] = n, t[5] = o);
|
|
25579
25579
|
let s;
|
|
25580
25580
|
return t[6] !== a || t[7] !== r || t[8] !== o ? (s = /* @__PURE__ */ (0, U.jsx)(ly, {
|
|
25581
25581
|
offset: a,
|
|
@@ -25592,10 +25592,10 @@ var gB = (e) => {
|
|
|
25592
25592
|
let t = (0, W.c)(11), { direction: n } = at(), r;
|
|
25593
25593
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (r = a(s({ variant: "outline" }), "size-7 bg-transparent p-0 opacity-50", "data-hovered:opacity-100"), t[0] = r) : r = t[0];
|
|
25594
25594
|
let i;
|
|
25595
|
-
t[1] === n ? i = t[2] : (i = /* @__PURE__ */ (0, U.jsx)(
|
|
25595
|
+
t[1] === n ? i = t[2] : (i = /* @__PURE__ */ (0, U.jsx)(on, {
|
|
25596
25596
|
slot: "previous",
|
|
25597
25597
|
className: r,
|
|
25598
|
-
children: n === "rtl" ? /* @__PURE__ */ (0, U.jsx)(
|
|
25598
|
+
children: n === "rtl" ? /* @__PURE__ */ (0, U.jsx)(Kn, {
|
|
25599
25599
|
"aria-hidden": !0,
|
|
25600
25600
|
className: "size-4"
|
|
25601
25601
|
}) : /* @__PURE__ */ (0, U.jsx)(pa, {
|
|
@@ -25608,13 +25608,13 @@ var gB = (e) => {
|
|
|
25608
25608
|
let c;
|
|
25609
25609
|
t[4] === Symbol.for("react.memo_cache_sentinel") ? (c = a(s({ variant: "outline" }), "size-7 bg-transparent p-0 opacity-50", "data-hovered:opacity-100"), t[4] = c) : c = t[4];
|
|
25610
25610
|
let l;
|
|
25611
|
-
t[5] === n ? l = t[6] : (l = /* @__PURE__ */ (0, U.jsx)(
|
|
25611
|
+
t[5] === n ? l = t[6] : (l = /* @__PURE__ */ (0, U.jsx)(on, {
|
|
25612
25612
|
slot: "next",
|
|
25613
25613
|
className: c,
|
|
25614
25614
|
children: n === "rtl" ? /* @__PURE__ */ (0, U.jsx)(pa, {
|
|
25615
25615
|
"aria-hidden": !0,
|
|
25616
25616
|
className: "size-4"
|
|
25617
|
-
}) : /* @__PURE__ */ (0, U.jsx)(
|
|
25617
|
+
}) : /* @__PURE__ */ (0, U.jsx)(Kn, {
|
|
25618
25618
|
"aria-hidden": !0,
|
|
25619
25619
|
className: "size-4"
|
|
25620
25620
|
})
|
|
@@ -25670,7 +25670,7 @@ var gB = (e) => {
|
|
|
25670
25670
|
let i = !!H.use(Jv), o;
|
|
25671
25671
|
t[3] === i ? o = t[4] : (o = (e, t) => a(s({ variant: "ghost" }), "relative flex size-9 items-center justify-center p-0 text-sm font-normal", t.isDisabled && "text-muted-foreground opacity-50", t.isSelected && "bg-primary text-primary-foreground data-focused:bg-primary data-focused:text-primary-foreground", t.isHovered && t.isSelected && (t.isSelectionStart || t.isSelectionEnd || !i) && "data-hovered:bg-primary data-hovered:text-primary-foreground", t.isSelected && i && !t.isSelectionStart && !t.isSelectionEnd && "rounded-none bg-accent text-accent-foreground", t.isOutsideMonth && "text-muted-foreground opacity-50 data-selected:bg-accent/50 data-selected:text-muted-foreground data-selected:opacity-30", t.date.compare(Jc(el())) === 0 && !t.isSelected && "bg-accent text-accent-foreground", t.isUnavailable && "cursor-default text-destructive ", t.isInvalid && "bg-destructive text-destructive-foreground data-focused:bg-destructive data-hovered:bg-destructive data-focused:text-destructive-foreground data-hovered:text-destructive-foreground", e), t[3] = i, t[4] = o);
|
|
25672
25672
|
let c;
|
|
25673
|
-
t[5] !== n || t[6] !== o ? (c =
|
|
25673
|
+
t[5] !== n || t[6] !== o ? (c = Wt(n, o), t[5] = n, t[6] = o, t[7] = c) : c = t[7];
|
|
25674
25674
|
let l;
|
|
25675
25675
|
return t[8] !== r || t[9] !== c ? (l = /* @__PURE__ */ (0, U.jsx)(ay, {
|
|
25676
25676
|
className: c,
|
|
@@ -25680,13 +25680,13 @@ var gB = (e) => {
|
|
|
25680
25680
|
let t = (0, W.c)(14), n, r, i;
|
|
25681
25681
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({errorMessage: r, className: n, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
25682
25682
|
let a;
|
|
25683
|
-
t[4] === n ? a = t[5] : (a =
|
|
25683
|
+
t[4] === n ? a = t[5] : (a = Wt(n, wB), t[4] = n, t[5] = a);
|
|
25684
25684
|
let o;
|
|
25685
25685
|
t[6] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, U.jsx)(gB, {}), t[6] = o) : o = t[6];
|
|
25686
25686
|
let s;
|
|
25687
25687
|
t[7] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, U.jsxs)(_B, { children: [/* @__PURE__ */ (0, U.jsx)(vB, { children: TB }), /* @__PURE__ */ (0, U.jsx)(bB, { children: EB })] }), t[7] = s) : s = t[7];
|
|
25688
25688
|
let c;
|
|
25689
|
-
t[8] === r ? c = t[9] : (c = r && /* @__PURE__ */ (0, U.jsx)(
|
|
25689
|
+
t[8] === r ? c = t[9] : (c = r && /* @__PURE__ */ (0, U.jsx)(Zn, {
|
|
25690
25690
|
className: "text-sm text-destructive",
|
|
25691
25691
|
slot: "errorMessage",
|
|
25692
25692
|
children: r
|
|
@@ -25705,13 +25705,13 @@ var gB = (e) => {
|
|
|
25705
25705
|
let t = (0, W.c)(14), n, r, i;
|
|
25706
25706
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({errorMessage: r, className: n, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
25707
25707
|
let a;
|
|
25708
|
-
t[4] === n ? a = t[5] : (a =
|
|
25708
|
+
t[4] === n ? a = t[5] : (a = Wt(n, DB), t[4] = n, t[5] = a);
|
|
25709
25709
|
let o;
|
|
25710
25710
|
t[6] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, U.jsx)(gB, {}), t[6] = o) : o = t[6];
|
|
25711
25711
|
let s;
|
|
25712
25712
|
t[7] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, U.jsxs)(_B, { children: [/* @__PURE__ */ (0, U.jsx)(vB, { children: OB }), /* @__PURE__ */ (0, U.jsx)(bB, { children: kB })] }), t[7] = s) : s = t[7];
|
|
25713
25713
|
let c;
|
|
25714
|
-
t[8] === r ? c = t[9] : (c = r && /* @__PURE__ */ (0, U.jsx)(
|
|
25714
|
+
t[8] === r ? c = t[9] : (c = r && /* @__PURE__ */ (0, U.jsx)(Zn, {
|
|
25715
25715
|
slot: "errorMessage",
|
|
25716
25716
|
className: "text-sm text-destructive",
|
|
25717
25717
|
children: r
|
|
@@ -25751,7 +25751,7 @@ var AB = (e) => {
|
|
|
25751
25751
|
let t = (0, W.c)(14), n, r, i;
|
|
25752
25752
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({className: n, popoverClassName: r, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
25753
25753
|
let o;
|
|
25754
|
-
t[4] === r ? o = t[5] : (o =
|
|
25754
|
+
t[4] === r ? o = t[5] : (o = Wt(r, NB), t[4] = r, t[5] = o);
|
|
25755
25755
|
let s;
|
|
25756
25756
|
t[6] === n ? s = t[7] : (s = a("flex w-full flex-col space-y-4 outline-hidden sm:flex-row sm:space-x-4 sm:space-y-0", n), t[6] = n, t[7] = s);
|
|
25757
25757
|
let c;
|
|
@@ -25768,7 +25768,7 @@ var AB = (e) => {
|
|
|
25768
25768
|
let t = (0, W.c)(26), n, r, i, o, c;
|
|
25769
25769
|
t[0] === e ? (n = t[1], r = t[2], i = t[3], o = t[4], c = t[5]) : ({label: o, description: r, errorMessage: i, className: n, ...c} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = o, t[5] = c);
|
|
25770
25770
|
let [l, u] = (0, H.useState)(!1), d;
|
|
25771
|
-
t[6] === n ? d = t[7] : (d =
|
|
25771
|
+
t[6] === n ? d = t[7] : (d = Wt(n, PB), t[6] = n, t[7] = d);
|
|
25772
25772
|
let f;
|
|
25773
25773
|
t[8] === Symbol.for("react.memo_cache_sentinel") ? (f = (e) => {
|
|
25774
25774
|
u(e);
|
|
@@ -25782,7 +25782,7 @@ var AB = (e) => {
|
|
|
25782
25782
|
variant: "ghost"
|
|
25783
25783
|
}), t[11] = m) : m = t[11];
|
|
25784
25784
|
let h;
|
|
25785
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, U.jsxs)(zy, { children: [m, /* @__PURE__ */ (0, U.jsx)(
|
|
25785
|
+
t[12] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, U.jsxs)(zy, { children: [m, /* @__PURE__ */ (0, U.jsx)(on, {
|
|
25786
25786
|
onPressChange: () => {
|
|
25787
25787
|
u(!0);
|
|
25788
25788
|
},
|
|
@@ -25796,7 +25796,7 @@ var AB = (e) => {
|
|
|
25796
25796
|
})
|
|
25797
25797
|
})] }), t[12] = h) : h = t[12];
|
|
25798
25798
|
let g;
|
|
25799
|
-
t[13] === r ? g = t[14] : (g = r && /* @__PURE__ */ (0, U.jsx)(
|
|
25799
|
+
t[13] === r ? g = t[14] : (g = r && /* @__PURE__ */ (0, U.jsx)(Zn, {
|
|
25800
25800
|
className: "text-sm text-muted-foreground",
|
|
25801
25801
|
slot: "description",
|
|
25802
25802
|
children: r
|
|
@@ -25825,7 +25825,7 @@ var AB = (e) => {
|
|
|
25825
25825
|
let t = (0, W.c)(28), n, r, i, o, c;
|
|
25826
25826
|
t[0] === e ? (n = t[1], r = t[2], i = t[3], o = t[4], c = t[5]) : ({label: o, description: r, errorMessage: i, className: n, ...c} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = o, t[5] = c);
|
|
25827
25827
|
let [l, u] = (0, H.useState)(!1), d;
|
|
25828
|
-
t[6] === n ? d = t[7] : (d =
|
|
25828
|
+
t[6] === n ? d = t[7] : (d = Wt(n, LB), t[6] = n, t[7] = d);
|
|
25829
25829
|
let f;
|
|
25830
25830
|
t[8] === Symbol.for("react.memo_cache_sentinel") ? (f = (e) => {
|
|
25831
25831
|
u(e);
|
|
@@ -25850,7 +25850,7 @@ var AB = (e) => {
|
|
|
25850
25850
|
m,
|
|
25851
25851
|
h,
|
|
25852
25852
|
g,
|
|
25853
|
-
/* @__PURE__ */ (0, U.jsx)(
|
|
25853
|
+
/* @__PURE__ */ (0, U.jsx)(on, {
|
|
25854
25854
|
onPressChange: () => {
|
|
25855
25855
|
u(!0);
|
|
25856
25856
|
},
|
|
@@ -25865,7 +25865,7 @@ var AB = (e) => {
|
|
|
25865
25865
|
})
|
|
25866
25866
|
] }), t[14] = _) : _ = t[14];
|
|
25867
25867
|
let v;
|
|
25868
|
-
t[15] === r ? v = t[16] : (v = r && /* @__PURE__ */ (0, U.jsx)(
|
|
25868
|
+
t[15] === r ? v = t[16] : (v = r && /* @__PURE__ */ (0, U.jsx)(Zn, {
|
|
25869
25869
|
className: "text-sm text-muted-foreground",
|
|
25870
25870
|
slot: "description",
|
|
25871
25871
|
children: r
|
|
@@ -26571,7 +26571,7 @@ var pV = {
|
|
|
26571
26571
|
let h;
|
|
26572
26572
|
n[3] === o ? h = n[4] : (h = (e) => o(e.target.value), n[3] = o, n[4] = h);
|
|
26573
26573
|
let g;
|
|
26574
|
-
n[5] !== d || n[6] !== u || n[7] !== r || n[8] !== s || n[9] !== f || n[10] !== t || n[11] !== h || n[12] !== i ? (g = /* @__PURE__ */ (0, U.jsx)(
|
|
26574
|
+
n[5] !== d || n[6] !== u || n[7] !== r || n[8] !== s || n[9] !== f || n[10] !== t || n[11] !== h || n[12] !== i ? (g = /* @__PURE__ */ (0, U.jsx)(Gn, {
|
|
26575
26575
|
ref: t,
|
|
26576
26576
|
id: r,
|
|
26577
26577
|
type: "text",
|
|
@@ -26805,7 +26805,7 @@ var wV = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
26805
26805
|
return /* @__PURE__ */ (0, U.jsxs)("div", {
|
|
26806
26806
|
className: "flex gap-1 items-center w-44",
|
|
26807
26807
|
children: [
|
|
26808
|
-
/* @__PURE__ */ (0, U.jsx)(
|
|
26808
|
+
/* @__PURE__ */ (0, U.jsx)(Dn, {
|
|
26809
26809
|
id: e,
|
|
26810
26810
|
value: t.min,
|
|
26811
26811
|
onChange: (e) => i({
|
|
@@ -26819,7 +26819,7 @@ var wV = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
26819
26819
|
className: "border-input flex-1 min-w-0"
|
|
26820
26820
|
}),
|
|
26821
26821
|
/* @__PURE__ */ (0, U.jsx)(E, { className: "h-5 w-5 text-muted-foreground shrink-0" }),
|
|
26822
|
-
/* @__PURE__ */ (0, U.jsx)(
|
|
26822
|
+
/* @__PURE__ */ (0, U.jsx)(Dn, {
|
|
26823
26823
|
value: t.max,
|
|
26824
26824
|
onChange: (e) => i({
|
|
26825
26825
|
kind: "between",
|
|
@@ -26836,7 +26836,7 @@ var wV = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
26836
26836
|
}
|
|
26837
26837
|
if (t === "number" && ZN(n)) {
|
|
26838
26838
|
let t = r.kind === "single-number" ? r : { kind: "single-number" };
|
|
26839
|
-
return /* @__PURE__ */ (0, U.jsx)(
|
|
26839
|
+
return /* @__PURE__ */ (0, U.jsx)(Dn, {
|
|
26840
26840
|
id: e,
|
|
26841
26841
|
value: t.value,
|
|
26842
26842
|
onChange: (e) => i({
|
|
@@ -26875,7 +26875,7 @@ var wV = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
26875
26875
|
text: e
|
|
26876
26876
|
}),
|
|
26877
26877
|
className: "w-40"
|
|
26878
|
-
}) : /* @__PURE__ */ (0, U.jsx)(
|
|
26878
|
+
}) : /* @__PURE__ */ (0, U.jsx)(Gn, {
|
|
26879
26879
|
id: e,
|
|
26880
26880
|
type: "text",
|
|
26881
26881
|
value: t.text ?? "",
|
|
@@ -28484,7 +28484,7 @@ var XH = H.forwardRef((e, t) => {
|
|
|
28484
28484
|
let l;
|
|
28485
28485
|
n[8] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, U.jsx)("span", {
|
|
28486
28486
|
className: c,
|
|
28487
|
-
children: /* @__PURE__ */ (0, U.jsx)(Io, { children: /* @__PURE__ */ (0, U.jsx)(
|
|
28487
|
+
children: /* @__PURE__ */ (0, U.jsx)(Io, { children: /* @__PURE__ */ (0, U.jsx)(ee, { className: "h-4 w-4" }) })
|
|
28488
28488
|
}), n[8] = l) : l = n[8];
|
|
28489
28489
|
let u;
|
|
28490
28490
|
return n[9] !== r || n[10] !== i || n[11] !== o || n[12] !== t || n[13] !== s ? (u = /* @__PURE__ */ (0, U.jsxs)(Po, {
|
|
@@ -28506,7 +28506,7 @@ var ZH = H.forwardRef((e, t) => {
|
|
|
28506
28506
|
let c;
|
|
28507
28507
|
n[7] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, U.jsx)("span", {
|
|
28508
28508
|
className: s,
|
|
28509
|
-
children: /* @__PURE__ */ (0, U.jsx)(Io, { children: /* @__PURE__ */ (0, U.jsx)(
|
|
28509
|
+
children: /* @__PURE__ */ (0, U.jsx)(Io, { children: /* @__PURE__ */ (0, U.jsx)(te, { className: "h-4 w-4 fill-current" }) })
|
|
28510
28510
|
}), n[7] = c) : c = n[7];
|
|
28511
28511
|
let l;
|
|
28512
28512
|
return n[8] !== r || n[9] !== a || n[10] !== t || n[11] !== o ? (l = /* @__PURE__ */ (0, U.jsxs)(Fo, {
|
|
@@ -29098,7 +29098,7 @@ var xU = ({ table: e, tableLoading: t, showPageSizeSelector: n }) => {
|
|
|
29098
29098
|
className: "order-2 lg:order-first",
|
|
29099
29099
|
children: n && /* @__PURE__ */ (0, U.jsx)("div", {
|
|
29100
29100
|
className: "flex items-center text-xs whitespace-nowrap mr-1 print:hidden",
|
|
29101
|
-
children: /* @__PURE__ */ (0, U.jsxs)(
|
|
29101
|
+
children: /* @__PURE__ */ (0, U.jsxs)(yr, { children: [/* @__PURE__ */ (0, U.jsx)(Vn, {
|
|
29102
29102
|
asChild: !0,
|
|
29103
29103
|
children: /* @__PURE__ */ (0, U.jsxs)("button", {
|
|
29104
29104
|
type: "button",
|
|
@@ -29109,13 +29109,13 @@ var xU = ({ table: e, tableLoading: t, showPageSizeSelector: n }) => {
|
|
|
29109
29109
|
/* @__PURE__ */ (0, U.jsx)(ut, { className: "h-3 w-3 opacity-50 mb-px" })
|
|
29110
29110
|
]
|
|
29111
29111
|
})
|
|
29112
|
-
}), /* @__PURE__ */ (0, U.jsxs)(
|
|
29112
|
+
}), /* @__PURE__ */ (0, U.jsxs)(or, {
|
|
29113
29113
|
align: "center",
|
|
29114
29114
|
sideOffset: 6,
|
|
29115
29115
|
children: [/* @__PURE__ */ (0, U.jsx)(kn, {
|
|
29116
29116
|
className: "text-xs text-muted-foreground",
|
|
29117
29117
|
children: "Rows per page"
|
|
29118
|
-
}), [...d].map((t) => /* @__PURE__ */ (0, U.jsx)(
|
|
29118
|
+
}), [...d].map((t) => /* @__PURE__ */ (0, U.jsx)(Jn, {
|
|
29119
29119
|
className: a("text-xs cursor-pointer", t === c && "font-semibold bg-accent"),
|
|
29120
29120
|
onSelect: () => e.setPageSize(t),
|
|
29121
29121
|
onMouseDown: o.preventFocus,
|
|
@@ -29163,7 +29163,7 @@ var xU = ({ table: e, tableLoading: t, showPageSizeSelector: n }) => {
|
|
|
29163
29163
|
}),
|
|
29164
29164
|
/* @__PURE__ */ (0, U.jsxs)("span", {
|
|
29165
29165
|
className: "shrink-0",
|
|
29166
|
-
children: ["of ",
|
|
29166
|
+
children: ["of ", Or(s, r)]
|
|
29167
29167
|
})
|
|
29168
29168
|
]
|
|
29169
29169
|
}),
|
|
@@ -29177,7 +29177,7 @@ var xU = ({ table: e, tableLoading: t, showPageSizeSelector: n }) => {
|
|
|
29177
29177
|
onClick: () => l(() => e.nextPage()),
|
|
29178
29178
|
onMouseDown: o.preventFocus,
|
|
29179
29179
|
disabled: !e.getCanNextPage(),
|
|
29180
|
-
children: /* @__PURE__ */ (0, U.jsx)(
|
|
29180
|
+
children: /* @__PURE__ */ (0, U.jsx)(Kn, { className: "h-4 w-4" })
|
|
29181
29181
|
})
|
|
29182
29182
|
}),
|
|
29183
29183
|
/* @__PURE__ */ (0, U.jsx)(vi, {
|
|
@@ -29344,13 +29344,13 @@ var TU = ({ currentPage: e, totalPages: t, onPageChange: n }) => {
|
|
|
29344
29344
|
});
|
|
29345
29345
|
};
|
|
29346
29346
|
function DU(e, t) {
|
|
29347
|
-
return `${
|
|
29347
|
+
return `${Or(e, t)} ${new w("row").pluralize(e)}`;
|
|
29348
29348
|
}
|
|
29349
29349
|
var OU = ({ numRows: e, totalColumns: t, hiddenColumns: n, locale: r }) => {
|
|
29350
29350
|
let i = e === "too_many" ? "Unknown" : DU(e, r), a = n ?? 0, o = t - a;
|
|
29351
29351
|
return {
|
|
29352
|
-
rowsAndColumns: [i, a > 0 ? `${
|
|
29353
|
-
hiddenSuffix: a > 0 ? `(${
|
|
29352
|
+
rowsAndColumns: [i, a > 0 ? `${Or(o, r)} visible` : `${Or(t, r)} ${new w("column").pluralize(t)}`].join(", "),
|
|
29353
|
+
hiddenSuffix: a > 0 ? `(${Or(a, r)} hidden)` : null
|
|
29354
29354
|
};
|
|
29355
29355
|
}, kU = 3, AU = (e) => {
|
|
29356
29356
|
let t = (0, W.c)(21), { table: n, className: r } = e, { locale: i } = at(), o = Si(gH), s = oH(o);
|
|
@@ -29479,16 +29479,16 @@ var RU = ({ pagination: e, totalColumns: t, selection: n, onRowSelectionChange:
|
|
|
29479
29479
|
className: "flex items-center gap-1",
|
|
29480
29480
|
children: (() => {
|
|
29481
29481
|
let { rowSelection: e, cellSelection: r } = i.getState(), a = Object.keys(e).length, s = i.getIsAllPageRowsSelected(), c = i.getRowCount(), l = a === c, d = n === "single-cell" || n === "multi-cell";
|
|
29482
|
-
if (d && (a = r.length, s = !1, l = !1), s && !l) return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsxs)("span", { children: [
|
|
29482
|
+
if (d && (a = r.length, s = !1, l = !1), s && !l) return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsxs)("span", { children: [Or(a, p), " selected"] }), /* @__PURE__ */ (0, U.jsxs)(u, {
|
|
29483
29483
|
size: "xs",
|
|
29484
29484
|
"data-testid": "select-all-button",
|
|
29485
29485
|
variant: "link",
|
|
29486
29486
|
className: "h-4 print:hidden",
|
|
29487
29487
|
onMouseDown: o.preventFocus,
|
|
29488
29488
|
onClick: () => g(!0),
|
|
29489
|
-
children: ["Select all ",
|
|
29489
|
+
children: ["Select all ", Or(c, p)]
|
|
29490
29490
|
})] });
|
|
29491
|
-
if (a) return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsxs)("span", { children: [
|
|
29491
|
+
if (a) return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsxs)("span", { children: [Or(a, p), " selected"] }), /* @__PURE__ */ (0, U.jsx)(u, {
|
|
29492
29492
|
size: "xs",
|
|
29493
29493
|
"data-testid": "clear-selection-button",
|
|
29494
29494
|
variant: "link",
|
|
@@ -29559,7 +29559,7 @@ var RU = ({ pagination: e, totalColumns: t, selection: n, onRowSelectionChange:
|
|
|
29559
29559
|
let t = (0, W.c)(7), { message: n, className: r, style: i } = e, o;
|
|
29560
29560
|
t[0] === r ? o = t[1] : (o = a("text-sm bg-blue-50 dark:bg-(--accent) text-blue-500 dark:text-blue-50 flex items-center gap-2 p-2 h-8", r), t[0] = r, t[1] = o);
|
|
29561
29561
|
let s;
|
|
29562
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, U.jsx)(
|
|
29562
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, U.jsx)(ie, { className: "h-4 w-4 animate-spin" }), t[2] = s) : s = t[2];
|
|
29563
29563
|
let c;
|
|
29564
29564
|
return t[3] !== n || t[4] !== i || t[5] !== o ? (c = /* @__PURE__ */ (0, U.jsxs)("div", {
|
|
29565
29565
|
className: o,
|
|
@@ -29820,7 +29820,7 @@ function rW({ contents: e, filename: t, mediaType: n }) {
|
|
|
29820
29820
|
//#endregion
|
|
29821
29821
|
//#region src/components/datasources/install-package-button.tsx
|
|
29822
29822
|
var iW = (e) => {
|
|
29823
|
-
let t = (0, W.c)(13), { packages: n, showMaxPackages: r, className: i, onInstall: o } = e, { handleInstallPackages: s } = Jj(), c =
|
|
29823
|
+
let t = (0, W.c)(13), { packages: n, showMaxPackages: r, className: i, onInstall: o } = e, { handleInstallPackages: s } = Jj(), c = re();
|
|
29824
29824
|
if (!n || n.length === 0 || !c) return null;
|
|
29825
29825
|
let l;
|
|
29826
29826
|
t[0] !== s || t[1] !== o || t[2] !== n ? (l = () => {
|
|
@@ -29844,7 +29844,7 @@ var iW = (e) => {
|
|
|
29844
29844
|
}), t[9] = l, t[10] = d, t[11] = f, t[12] = p) : p = t[12], p;
|
|
29845
29845
|
}, aW = (e) => {
|
|
29846
29846
|
let t = (0, W.c)(20), { packages: n, featureName: r, description: i, onInstall: o, className: s } = e;
|
|
29847
|
-
if (!
|
|
29847
|
+
if (!re()) {
|
|
29848
29848
|
let e;
|
|
29849
29849
|
t[0] === s ? e = t[1] : (e = a("text-xs", s), t[0] = s, t[1] = e);
|
|
29850
29850
|
let n;
|
|
@@ -29996,7 +29996,7 @@ var iW = (e) => {
|
|
|
29996
29996
|
}
|
|
29997
29997
|
case "markdown": {
|
|
29998
29998
|
let e = await pW(n.url);
|
|
29999
|
-
r =
|
|
29999
|
+
r = ne(e);
|
|
30000
30000
|
break bb94;
|
|
30001
30001
|
}
|
|
30002
30002
|
default:
|
|
@@ -30006,7 +30006,7 @@ var iW = (e) => {
|
|
|
30006
30006
|
await h(r), m({ title: "Copied to clipboard" });
|
|
30007
30007
|
});
|
|
30008
30008
|
};
|
|
30009
|
-
b =
|
|
30009
|
+
b = yr, C = !1, w = n, T = r;
|
|
30010
30010
|
let a = !n && void 0, o = s ? 0 : -1, l;
|
|
30011
30011
|
t[26] !== g || t[27] !== o ? (l = /* @__PURE__ */ (0, U.jsx)("span", {
|
|
30012
30012
|
tabIndex: o,
|
|
@@ -30022,10 +30022,10 @@ var iW = (e) => {
|
|
|
30022
30022
|
content: c,
|
|
30023
30023
|
open: a,
|
|
30024
30024
|
children: u
|
|
30025
|
-
}), t[32] = a, t[33] = u, t[34] = c, t[35] = E) : E = t[35], y =
|
|
30025
|
+
}), t[32] = a, t[33] = u, t[34] = c, t[35] = E) : E = t[35], y = or, D = "bottom", O = "print:hidden", t[36] === Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ (0, U.jsx)(kn, {
|
|
30026
30026
|
className: "text-xs text-muted-foreground",
|
|
30027
30027
|
children: "Download"
|
|
30028
|
-
}), t[36] = k) : k = t[36], A = sW.map((t) => /* @__PURE__ */ (0, U.jsxs)(
|
|
30028
|
+
}), t[36] = k) : k = t[36], A = sW.map((t) => /* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
30029
30029
|
onSelect: () => {
|
|
30030
30030
|
e(t.format);
|
|
30031
30031
|
},
|
|
@@ -30036,10 +30036,10 @@ var iW = (e) => {
|
|
|
30036
30036
|
children: t.description
|
|
30037
30037
|
})]
|
|
30038
30038
|
})]
|
|
30039
|
-
}, t.label)), t[37] === Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ (0, U.jsx)(
|
|
30039
|
+
}, t.label)), t[37] === Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ (0, U.jsx)(gr, {}), x = /* @__PURE__ */ (0, U.jsx)(kn, {
|
|
30040
30040
|
className: "text-xs text-muted-foreground",
|
|
30041
30041
|
children: "Copy to clipboard"
|
|
30042
|
-
}), t[37] = x, t[38] = j) : (x = t[37], j = t[38]), S = cW.map((e) => /* @__PURE__ */ (0, U.jsxs)(
|
|
30042
|
+
}), t[37] = x, t[38] = j) : (x = t[37], j = t[38]), S = cW.map((e) => /* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
30043
30043
|
onSelect: async () => {
|
|
30044
30044
|
try {
|
|
30045
30045
|
await i(e.format);
|
|
@@ -30100,7 +30100,7 @@ var hW = () => {}, gW = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
30100
30100
|
children: [r && t && /* @__PURE__ */ (0, U.jsxs)("div", {
|
|
30101
30101
|
className: "flex flex-1 items-center gap-1 px-2 rounded-sm focus-within:ring-1 focus-within:ring-border transition-shadow",
|
|
30102
30102
|
children: [
|
|
30103
|
-
/* @__PURE__ */ (0, U.jsx)(
|
|
30103
|
+
/* @__PURE__ */ (0, U.jsx)(ur, { className: "w-4 h-4 text-muted-foreground shrink-0" }),
|
|
30104
30104
|
/* @__PURE__ */ (0, U.jsx)("input", {
|
|
30105
30105
|
ref: b,
|
|
30106
30106
|
type: "text",
|
|
@@ -30147,8 +30147,8 @@ var hW = () => {}, gW = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
30147
30147
|
]
|
|
30148
30148
|
})]
|
|
30149
30149
|
});
|
|
30150
|
-
}, _W = (0, H.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: r, data: i, rawData: o, selection: s, totalColumns: c, totalRows: l, sizeBytes: d, sizeBytesIsLoading: f, manualSorting: p = !1, sorting: m, setSorting: h, rowSelection: g, cellSelection: _, cellStyling: v, hoverTemplate: y, cellHoverTexts: b, paginationState: x, setPaginationState: S, downloadAs: C, manualPagination: w = !1, pagination: T = !1, onRowSelectionChange: E, onCellSelectionChange: D, getRowIds: O, showSearch: k = !1, searchQuery: A, onSearchQueryChange: j, showFilters: M = !1, filters: N, onFiltersChange: P, calculateTopKRows: F, reloading: I, freezeColumnsLeft: L, freezeColumnsRight: R, hiddenColumns:
|
|
30151
|
-
let ue = Ir(), de = !ue, [fe, pe] = H.useState(!1), { locale: me } = at(), { columnPinning: he, setColumnPinning: ge } = zV(L, R), { columnVisibility: _e, setColumnVisibility: ve } = vU(
|
|
30150
|
+
}, _W = (0, H.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: r, data: i, rawData: o, selection: s, totalColumns: c, totalRows: l, sizeBytes: d, sizeBytesIsLoading: f, manualSorting: p = !1, sorting: m, setSorting: h, rowSelection: g, cellSelection: _, cellStyling: v, hoverTemplate: y, cellHoverTexts: b, paginationState: x, setPaginationState: S, downloadAs: C, manualPagination: w = !1, pagination: T = !1, onRowSelectionChange: E, onCellSelectionChange: D, getRowIds: O, showSearch: k = !1, searchQuery: A, onSearchQueryChange: j, showFilters: M = !1, filters: N, onFiltersChange: P, calculateTopKRows: F, reloading: I, freezeColumnsLeft: L, freezeColumnsRight: R, hiddenColumns: z, toggleDisplayHeader: B, showChartBuilder: ee, isChartBuilderOpen: te, showPageSizeSelector: ne, showTableExplorer: re, togglePanel: ie, isPanelOpen: ae, isAnyPanelOpen: oe, viewedRowIdx: se, onViewedRowChange: ce, renderTableExplorerPanel: le }) => {
|
|
30151
|
+
let ue = Ir(), de = !ue, [fe, pe] = H.useState(!1), { locale: me } = at(), { columnPinning: he, setColumnPinning: ge } = zV(L, R), { columnVisibility: _e, setColumnVisibility: ve } = vU(z);
|
|
30152
30152
|
H.useEffect(() => {
|
|
30153
30153
|
let e;
|
|
30154
30154
|
return I ? e = setTimeout(() => {
|
|
@@ -30205,7 +30205,7 @@ var hW = () => {}, gW = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
30205
30205
|
onColumnPinningChange: ge,
|
|
30206
30206
|
onColumnVisibilityChange: ve,
|
|
30207
30207
|
enableFocusRow: !0,
|
|
30208
|
-
onFocusRowChange:
|
|
30208
|
+
onFocusRowChange: ce,
|
|
30209
30209
|
state: {
|
|
30210
30210
|
...m ? { sorting: m } : {},
|
|
30211
30211
|
columnFilters: N,
|
|
@@ -30221,7 +30221,7 @@ var hW = () => {}, gW = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
30221
30221
|
cellHoverTemplate: y,
|
|
30222
30222
|
cellHoverTexts: b ?? {}
|
|
30223
30223
|
}
|
|
30224
|
-
}), xe =
|
|
30224
|
+
}), xe = ae?.(Qz.ROW_VIEWER) ?? !1, Se = !T && i.length > 100, Ce = VV({
|
|
30225
30225
|
maxHeight: n,
|
|
30226
30226
|
virtualize: Se
|
|
30227
30227
|
}), [we, Te] = H.useState(null), Ee = H.useMemo(() => ({ requestAddFilter: (e) => {
|
|
@@ -30251,12 +30251,12 @@ var hW = () => {}, gW = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
30251
30251
|
searchQuery: A,
|
|
30252
30252
|
onSearchQueryChange: j,
|
|
30253
30253
|
reloading: I,
|
|
30254
|
-
showChartBuilder:
|
|
30255
|
-
isChartBuilderOpen:
|
|
30256
|
-
toggleDisplayHeader:
|
|
30257
|
-
showTableExplorer:
|
|
30258
|
-
togglePanel:
|
|
30259
|
-
isAnyPanelOpen:
|
|
30254
|
+
showChartBuilder: ee,
|
|
30255
|
+
isChartBuilderOpen: te,
|
|
30256
|
+
toggleDisplayHeader: B,
|
|
30257
|
+
showTableExplorer: re,
|
|
30258
|
+
togglePanel: ie,
|
|
30259
|
+
isAnyPanelOpen: oe,
|
|
30260
30260
|
downloadAs: C,
|
|
30261
30261
|
sizeBytes: d,
|
|
30262
30262
|
sizeBytesIsLoading: f
|
|
@@ -30281,7 +30281,7 @@ var hW = () => {}, gW = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
30281
30281
|
columns: r,
|
|
30282
30282
|
rowViewerPanelOpen: xe,
|
|
30283
30283
|
getRowIndex: ye,
|
|
30284
|
-
viewedRowIdx:
|
|
30284
|
+
viewedRowIdx: se,
|
|
30285
30285
|
virtualize: Se
|
|
30286
30286
|
})
|
|
30287
30287
|
]
|
|
@@ -30295,7 +30295,7 @@ var hW = () => {}, gW = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
30295
30295
|
onRowSelectionChange: E,
|
|
30296
30296
|
table: be,
|
|
30297
30297
|
getRowIds: O,
|
|
30298
|
-
showPageSizeSelector:
|
|
30298
|
+
showPageSizeSelector: ne,
|
|
30299
30299
|
tableLoading: I
|
|
30300
30300
|
})
|
|
30301
30301
|
]
|
|
@@ -30392,7 +30392,7 @@ var xW = (e) => {
|
|
|
30392
30392
|
let k = D, A;
|
|
30393
30393
|
t[20] === C ? A = t[21] : (A = () => w(!C), t[20] = C, t[21] = A);
|
|
30394
30394
|
let j = C ? "Collapse traceback" : "Expand traceback", M;
|
|
30395
|
-
t[22] === C ? M = t[23] : (M = C ? /* @__PURE__ */ (0, U.jsx)(ut, { className: "h-3 w-3" }) : /* @__PURE__ */ (0, U.jsx)(
|
|
30395
|
+
t[22] === C ? M = t[23] : (M = C ? /* @__PURE__ */ (0, U.jsx)(ut, { className: "h-3 w-3" }) : /* @__PURE__ */ (0, U.jsx)(Kn, { className: "h-3 w-3" }), t[22] = C, t[23] = M);
|
|
30396
30396
|
let N;
|
|
30397
30397
|
t[24] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ (0, U.jsx)("span", {
|
|
30398
30398
|
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
@@ -30432,31 +30432,31 @@ var xW = (e) => {
|
|
|
30432
30432
|
})
|
|
30433
30433
|
}), t[37] = _, t[38] = m, t[39] = L) : L = t[39];
|
|
30434
30434
|
let R;
|
|
30435
|
-
t[40] !== c || t[41] !== r ? (R = x && /* @__PURE__ */ (0, U.jsxs)(
|
|
30435
|
+
t[40] !== c || t[41] !== r ? (R = x && /* @__PURE__ */ (0, U.jsxs)(yr, { children: [/* @__PURE__ */ (0, U.jsx)(Vn, {
|
|
30436
30436
|
asChild: !0,
|
|
30437
30437
|
children: /* @__PURE__ */ (0, U.jsxs)(u, {
|
|
30438
30438
|
size: "xs",
|
|
30439
30439
|
variant: "text",
|
|
30440
30440
|
children: ["Get help", /* @__PURE__ */ (0, U.jsx)(ut, { className: "h-3 w-3 ml-1" })]
|
|
30441
30441
|
})
|
|
30442
|
-
}), /* @__PURE__ */ (0, U.jsxs)(
|
|
30442
|
+
}), /* @__PURE__ */ (0, U.jsxs)(or, {
|
|
30443
30443
|
align: "end",
|
|
30444
30444
|
className: "w-56",
|
|
30445
30445
|
children: [
|
|
30446
|
-
/* @__PURE__ */ (0, U.jsx)(
|
|
30446
|
+
/* @__PURE__ */ (0, U.jsx)(Jn, {
|
|
30447
30447
|
asChild: !0,
|
|
30448
30448
|
children: /* @__PURE__ */ (0, U.jsxs)("a", {
|
|
30449
30449
|
target: "_blank",
|
|
30450
30450
|
href: `https://www.google.com/search?q=${encodeURIComponent(c)}`,
|
|
30451
30451
|
rel: "noreferrer",
|
|
30452
30452
|
children: [
|
|
30453
|
-
/* @__PURE__ */ (0, U.jsx)(
|
|
30453
|
+
/* @__PURE__ */ (0, U.jsx)(ur, { className: "h-4 w-4 mr-2" }),
|
|
30454
30454
|
"Search on Google",
|
|
30455
30455
|
/* @__PURE__ */ (0, U.jsx)(O, { className: "h-3 w-3 ml-auto" })
|
|
30456
30456
|
]
|
|
30457
30457
|
})
|
|
30458
30458
|
}),
|
|
30459
|
-
/* @__PURE__ */ (0, U.jsx)(
|
|
30459
|
+
/* @__PURE__ */ (0, U.jsx)(Jn, {
|
|
30460
30460
|
asChild: !0,
|
|
30461
30461
|
children: /* @__PURE__ */ (0, U.jsxs)("a", {
|
|
30462
30462
|
target: "_blank",
|
|
@@ -30469,7 +30469,7 @@ var xW = (e) => {
|
|
|
30469
30469
|
]
|
|
30470
30470
|
})
|
|
30471
30471
|
}),
|
|
30472
|
-
/* @__PURE__ */ (0, U.jsxs)(
|
|
30472
|
+
/* @__PURE__ */ (0, U.jsxs)(Jn, {
|
|
30473
30473
|
onClick: () => {
|
|
30474
30474
|
let e = document.createElement("div");
|
|
30475
30475
|
e.innerHTML = Te(r);
|
|
@@ -30480,24 +30480,24 @@ var xW = (e) => {
|
|
|
30480
30480
|
})
|
|
30481
30481
|
]
|
|
30482
30482
|
})] }), t[40] = c, t[41] = r, t[42] = R) : R = t[42];
|
|
30483
|
-
let
|
|
30484
|
-
t[43] !== I || t[44] !== L || t[45] !== R ? (
|
|
30483
|
+
let z;
|
|
30484
|
+
t[43] !== I || t[44] !== L || t[45] !== R ? (z = /* @__PURE__ */ (0, U.jsxs)("div", {
|
|
30485
30485
|
className: "flex gap-2",
|
|
30486
30486
|
children: [
|
|
30487
30487
|
I,
|
|
30488
30488
|
L,
|
|
30489
30489
|
R
|
|
30490
30490
|
]
|
|
30491
|
-
}), t[43] = I, t[44] = L, t[45] = R, t[46] =
|
|
30492
|
-
let
|
|
30493
|
-
return t[47] !== P || t[48] !== F || t[49] !==
|
|
30491
|
+
}), t[43] = I, t[44] = L, t[45] = R, t[46] = z) : z = t[46];
|
|
30492
|
+
let B;
|
|
30493
|
+
return t[47] !== P || t[48] !== F || t[49] !== z ? (B = /* @__PURE__ */ (0, U.jsxs)("div", {
|
|
30494
30494
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
30495
30495
|
children: [
|
|
30496
30496
|
P,
|
|
30497
30497
|
F,
|
|
30498
|
-
|
|
30498
|
+
z
|
|
30499
30499
|
]
|
|
30500
|
-
}), t[47] = P, t[48] = F, t[49] =
|
|
30500
|
+
}), t[47] = P, t[48] = F, t[49] = z, t[50] = B) : B = t[50], B;
|
|
30501
30501
|
};
|
|
30502
30502
|
function SW(e) {
|
|
30503
30503
|
let t = document.createElement("div");
|
|
@@ -30506,7 +30506,7 @@ function SW(e) {
|
|
|
30506
30506
|
var CW = (e) => {
|
|
30507
30507
|
let t = qh(e);
|
|
30508
30508
|
if (t?.kind === "cell") {
|
|
30509
|
-
let e =
|
|
30509
|
+
let e = se("debugger"), n = e ? /* @__PURE__ */ (0, U.jsx)(DW, {}) : /* @__PURE__ */ (0, U.jsx)(EW, {});
|
|
30510
30510
|
return /* @__PURE__ */ (0, U.jsx)("span", {
|
|
30511
30511
|
className: "nb",
|
|
30512
30512
|
children: /* @__PURE__ */ (0, U.jsxs)("span", {
|
|
@@ -31787,7 +31787,7 @@ function QG() {
|
|
|
31787
31787
|
return i.warn("Failed to get version from mount config"), null;
|
|
31788
31788
|
}
|
|
31789
31789
|
}
|
|
31790
|
-
var $G = QG() || "0.24.1-
|
|
31790
|
+
var $G = QG() || "0.24.1-dev80", eK = Ci($G), tK = Ci(!0);
|
|
31791
31791
|
Ci(null);
|
|
31792
31792
|
//#endregion
|
|
31793
31793
|
//#region src/core/meta/code-visibility.ts
|