@marimo-team/islands 0.26.1-dev84 → 0.26.1-dev85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-CO9uVewH.js → ConnectedDataExplorerComponent-BJBdnd0O.js} +9 -9
- package/dist/{ErrorBoundary-T8CwNebX.js → ErrorBoundary-BbX80BeS.js} +1 -1
- package/dist/{chat-ui-CjZbdpzb.js → chat-ui-BbJTFtyC.js} +524 -523
- package/dist/circle-question-mark-evCnVIut.js +19 -0
- package/dist/{code-visibility-BBgRhs2A.js → code-visibility-SiV7swyv.js} +5 -5
- package/dist/{common-BF30ifb8.js → common-CaZHHn2u.js} +656 -655
- package/dist/{data-grid-overlay-editor-ChntsIBb.js → data-grid-overlay-editor-B_CloII8.js} +1 -1
- package/dist/{error-entries-CsXAdy1j.js → error-entries-DhZotdzQ.js} +2 -1
- package/dist/{config-CShkLThS.js → export-context-CkgZeARR.js} +80 -70
- package/dist/{feedback-button-nmOvfn22.js → feedback-button-Dcyqig9t.js} +3 -3
- package/dist/{formats-BRDSQgKN.js → formats-CcQrzFo8.js} +2 -2
- package/dist/{glide-data-editor-SkR9hqZZ.js → glide-data-editor-axxUUflO.js} +3 -3
- package/dist/{globals-BjiU5aEs.js → globals-IsQZV-Pn.js} +1 -1
- package/dist/{html-to-image-CwpapHNl.js → html-to-image-B8erjaaD.js} +3890 -3913
- package/dist/{loader-qPmiRXZd.js → loader-CGrYn73j.js} +421 -373
- package/dist/main.js +6443 -6453
- package/dist/{number-overlay-editor-GjrMTG9X.js → number-overlay-editor-CNaE6yaF.js} +1 -1
- package/dist/{process-output-ztSj9cDn.js → process-output-C-2_O5Ry.js} +2 -2
- package/dist/{reveal-component-BrZbx6s7.js → reveal-component-CA2JlAJ6.js} +3 -3
- package/dist/{static-state-DhVFm8Z6.js → static-state-iw0PrHK4.js} +22 -33
- package/dist/toDate-BZg-byuO.js +13 -0
- package/dist/{vega-component-BxJFcD2G.js → vega-component-BzNDFvQf.js} +207 -203
- package/package.json +1 -1
- package/src/plugins/core/__test__/trusted-url.test.ts +53 -1
- package/src/plugins/core/trusted-url.ts +59 -1
- package/src/plugins/impl/vega/__tests__/resolve-data.test.ts +147 -2
- package/src/plugins/impl/vega/loader.ts +49 -2
- package/src/plugins/impl/vega/vega-component.tsx +3 -0
|
@@ -3,39 +3,40 @@ import { _ as t, f as n, g as r, h as i, i as a, m as o, n as s, p as c, r as l,
|
|
|
3
3
|
import { t as d } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as f } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
5
|
import { i as p, n as m, r as h, t as g } from "./copy-icon-CmNLxT5_.js";
|
|
6
|
-
import { A as _,
|
|
6
|
+
import { A as _, At as v, B as y, Bt as b, C as x, Ct as S, D as C, Ft as w, H as T, Ht as E, It as D, J as O, K as k, M as A, Mt as j, N as M, Ot as N, P, Pt as F, R as I, S as ee, St as L, Tt as R, U as z, Ut as B, V as te, Vt as V, W as ne, _t as re, d as ie, gt as ae, k as oe, mt as se, n as ce, nt as le, pt as ue, q as de, r as fe, s as pe, t as me, w as he, x as ge, y as _e, z as ve, zt as ye } from "./html-to-image-B8erjaaD.js";
|
|
7
7
|
import { a as be, f as xe, h as H, n as Se, o as Ce, r as we, t as U } from "./tooltip-DyLdBIM4.js";
|
|
8
8
|
import { r as Te, s as Ee } from "./useLifecycle-tPpAt-OE.js";
|
|
9
9
|
import { a as De, i as Oe, n as ke, o as Ae, r as je, t as Me } from "./useDateFormatter-HpKD0jEC.js";
|
|
10
10
|
import { t as Ne } from "./check-DUIc04aK.js";
|
|
11
11
|
import { A as Pe, C as Fe, M as Ie, S as Le, T as Re, _ as ze, b as Be, c as Ve, d as He, f as Ue, g as We, h as Ge, i as Ke, l as qe, m as Je, n as Ye, s as Xe, t as Ze, u as Qe, v as $e, x as et, y as tt } from "./select-CEnB18uc.js";
|
|
12
12
|
import { $ as nt, $t as rt, A as it, At as at, B as ot, Bt as st, C as ct, Cn as lt, Ct as ut, D as dt, Dt as ft, Et as pt, F as mt, Ft as ht, G as gt, Gt as _t, H as vt, Ht as yt, I as bt, It as xt, J as St, Jt as Ct, K as wt, Kt as Tt, L as Et, Lt as Dt, M as Ot, Mt as kt, N as At, Nt as jt, O as Mt, Ot as Nt, P as Pt, Pt as Ft, Q as It, Qt as Lt, R as Rt, Rt as zt, S as Bt, Sn as Vt, St as Ht, T as Ut, Tt as Wt, U as Gt, Ut as Kt, V as qt, Vt as Jt, W as Yt, Wt as Xt, Xt as Zt, Yt as Qt, Z as $t, Zt as en, _n as tn, _t as nn, a as rn, at as an, bn as on, bt as sn, cn, ct as ln, d as un, dn, dt as fn, en as pn, et as mn, f as hn, fn as gn, ft as _n, g as vn, gn as yn, gt as bn, hn as xn, ht as Sn, i as Cn, in as wn, it as Tn, j as En, jt as Dn, k as On, kt as kn, l as An, ln as jn, lt as Mn, mn as Nn, n as Pn, nn as Fn, nt as In, o as Ln, on as Rn, ot as zn, p as Bn, pt as Vn, q as Hn, qt as Un, rn as Wn, rt as Gn, s as Kn, sn as qn, st as Jn, t as Yn, tn as Xn, tt as Zn, u as Qn, ut as $n, v as er, vn as tr, vt as nr, w as rr, wt as ir, xn as ar, xt as or, yn as sr, yt as cr, z as lr, zt as ur } from "./dropdown-menu-D0DeN-aL.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as Yr } from "./
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as $i } from "./
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { a as
|
|
31
|
-
import { n as
|
|
13
|
+
import { A as dr, At as fr, Et as pr, G as mr, Ht as hr, J as gr, K as _r, Lt as vr, O as yr, P as br, Q as xr, Tt as Sr, Ut as Cr, Vt as wr, W as Tr, Wt as Er, X as Dr, Z as Or, an as kr, b as Ar, in as jr, kt as Mr, on as Nr, t as Pr, u as Fr, y as Ir, yt as Lr, z as Rr, zt as zr } from "./error-entries-DhZotdzQ.js";
|
|
14
|
+
import { n as Br, o as Vr, r as Hr, s as Ur, t as Wr } from "./assertNever-5vhHGKOK.js";
|
|
15
|
+
import { t as Gr } from "./clsx-CoeGtWvn.js";
|
|
16
|
+
import { t as Kr } from "./react-dom-DdqGVp5N.js";
|
|
17
|
+
import { t as qr } from "./jsx-runtime-D8btoEHk.js";
|
|
18
|
+
import { $t as Jr, At as Yr, Bt as Xr, C as Zr, Ct as Qr, Dt as $r, E as ei, Gt as ti, Ht as ni, It as ri, Jt as ii, Kt as ai, Ot as oi, Rt as si, Sn as ci, Ut as li, Vt as ui, Wt as di, Y as fi, Yt as pi, Zt as mi, _ as hi, _n as gi, a as _i, b as vi, bn as yi, d as bi, en as xi, gn as Si, l as Ci, n as wi, o as Ti, ot as Ei, s as Di, ut as Oi, v as ki, vn as Ai, w as ji, wt as Mi, xn as Ni, yn as Pi } from "./use-restore-focus-DJ_-uSn_.js";
|
|
19
|
+
import { a as Fi, c as Ii, d as Li, i as Ri, l as zi, m as Bi, n as Vi, o as Hi, r as Ui, s as Wi, t as Gi, u as Ki } from "./error-banner-CXLjTW24.js";
|
|
20
|
+
import { n as qi } from "./toast-BTjH6fIf.js";
|
|
21
|
+
import { a as Ji } from "./_baseSet-Bd5zh2yg.js";
|
|
22
|
+
import { t as Yi } from "./objects-DCmMvZtn.js";
|
|
23
|
+
import { t as Xi } from "./invariant-DLmrl-hA.js";
|
|
24
|
+
import { t as Zi } from "./useEvent-BoN7U38T.js";
|
|
25
|
+
import { o as Qi, t as $i } from "./arrays-DoQ-AILx.js";
|
|
26
|
+
import { t as ea } from "./createReducer-BUQhgLOI.js";
|
|
27
|
+
import { H as ta } from "./dist-BIaGGUbU.js";
|
|
28
|
+
import { c as na, n as ra, s as ia, u as aa } from "./static-state-iw0PrHK4.js";
|
|
29
|
+
import { i as oa, n as sa, r as ca, t as la } from "./toDate-BZg-byuO.js";
|
|
30
|
+
import { a as ua, i as da, n as fa, r as pa, t as ma } from "./formats-CcQrzFo8.js";
|
|
31
|
+
import { n as ha, t as ga } from "./once-NnpX_HnX.js";
|
|
32
|
+
import { a as _a, c as va } from "./export-context-CkgZeARR.js";
|
|
32
33
|
import { a as ya, i as ba, n as xa, o as Sa, r as Ca, t as wa } from "./dialog-BvjfalZ9.js";
|
|
33
34
|
import { o as Ta } from "./dist-BG-7Qpaj.js";
|
|
34
35
|
import { t as Ea } from "./useAsyncData-P5-Oovhq.js";
|
|
36
|
+
import { i as Da, n as Oa, o as ka, r as Aa } from "./loader-CGrYn73j.js";
|
|
35
37
|
import { n as W, t as G } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
|
|
36
|
-
import { n as
|
|
37
|
-
import { W as
|
|
38
|
-
import { a as ja, n as Ma, r as Na, t as Pa } from "./loader-qPmiRXZd.js";
|
|
38
|
+
import { n as ja, t as Ma } from "./ErrorBoundary-BbX80BeS.js";
|
|
39
|
+
import { W as Na, n as Pa } from "./vega-loader.browser-Co9gYE8Z.js";
|
|
39
40
|
import { t as Fa } from "./useIframeCapabilities-_0KX0nu_.js";
|
|
40
41
|
var Ia = H("arrow-down-wide-narrow", [
|
|
41
42
|
["path", {
|
|
@@ -706,11 +707,11 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
706
707
|
d: "M3 5h18",
|
|
707
708
|
key: "1u36vt"
|
|
708
709
|
}]
|
|
709
|
-
]), K = /* @__PURE__ */ e(d(), 1), q =
|
|
710
|
+
]), K = /* @__PURE__ */ e(d(), 1), q = qr(), Co = Object.defineProperty, wo = (e, t) => Co(e, "name", {
|
|
710
711
|
value: t,
|
|
711
712
|
configurable: !0
|
|
712
|
-
}), To = "Collapsible", [Eo, Do] =
|
|
713
|
-
let { __scopeCollapsible: n, open: r, defaultOpen: i, disabled: a, onOpenChange: o, ...s } = e, [c, l] =
|
|
713
|
+
}), To = "Collapsible", [Eo, Do] = Ni(To), [Oo, ko] = Eo(To), Ao = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ wo(function(e, t) {
|
|
714
|
+
let { __scopeCollapsible: n, open: r, defaultOpen: i, disabled: a, onOpenChange: o, ...s } = e, [c, l] = Ai({
|
|
714
715
|
prop: r,
|
|
715
716
|
defaultProp: i ?? !1,
|
|
716
717
|
onChange: o,
|
|
@@ -719,10 +720,10 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
719
720
|
return /* @__PURE__ */ (0, q.jsx)(Oo, {
|
|
720
721
|
scope: n,
|
|
721
722
|
disabled: a,
|
|
722
|
-
contentId:
|
|
723
|
+
contentId: Si(),
|
|
723
724
|
open: c,
|
|
724
725
|
onOpenToggle: K.useCallback(() => l((e) => !e), [l]),
|
|
725
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
726
|
+
children: /* @__PURE__ */ (0, q.jsx)(ci.div, {
|
|
726
727
|
"data-state": Io(c),
|
|
727
728
|
"data-disabled": a ? "" : void 0,
|
|
728
729
|
...s,
|
|
@@ -731,7 +732,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
731
732
|
});
|
|
732
733
|
}, "Collapsible")), jo = "CollapsibleTrigger", Mo = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ wo(function(e, t) {
|
|
733
734
|
let { __scopeCollapsible: n, ...r } = e, i = ko(jo, n);
|
|
734
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
735
|
+
return /* @__PURE__ */ (0, q.jsx)(ci.button, {
|
|
735
736
|
type: "button",
|
|
736
737
|
"aria-controls": i.open ? i.contentId : void 0,
|
|
737
738
|
"aria-expanded": i.open || !1,
|
|
@@ -740,11 +741,11 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
740
741
|
disabled: i.disabled,
|
|
741
742
|
...r,
|
|
742
743
|
ref: t,
|
|
743
|
-
onClick:
|
|
744
|
+
onClick: Pi(e.onClick, i.onOpenToggle)
|
|
744
745
|
});
|
|
745
746
|
}, "CollapsibleTrigger")), No = "CollapsibleContent", Po = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ wo(function(e, t) {
|
|
746
747
|
let { forceMount: n, ...r } = e, i = ko(No, e.__scopeCollapsible);
|
|
747
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
748
|
+
return /* @__PURE__ */ (0, q.jsx)(gi, {
|
|
748
749
|
present: n || i.open,
|
|
749
750
|
children: ({ present: e }) => /* @__PURE__ */ (0, q.jsx)(Fo, {
|
|
750
751
|
...r,
|
|
@@ -757,7 +758,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
757
758
|
return K.useEffect(() => {
|
|
758
759
|
let e = requestAnimationFrame(() => _.current = !1);
|
|
759
760
|
return () => cancelAnimationFrame(e);
|
|
760
|
-
}, []),
|
|
761
|
+
}, []), yi(() => {
|
|
761
762
|
let e = u.current;
|
|
762
763
|
if (e) {
|
|
763
764
|
v.current = v.current || {
|
|
@@ -767,7 +768,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
767
768
|
let t = e.getBoundingClientRect();
|
|
768
769
|
f.current = t.height, m.current = t.width, _.current || (e.style.transitionDuration = v.current.transitionDuration, e.style.animationName = v.current.animationName), l(r);
|
|
769
770
|
}
|
|
770
|
-
}, [o.open, r]), /* @__PURE__ */ (0, q.jsx)(
|
|
771
|
+
}, [o.open, r]), /* @__PURE__ */ (0, q.jsx)(ci.div, {
|
|
771
772
|
"data-state": Io(o.open),
|
|
772
773
|
"data-disabled": o.disabled ? "" : void 0,
|
|
773
774
|
id: o.contentId,
|
|
@@ -807,7 +808,7 @@ var Lo = Object.defineProperty, Ro = (e, t) => Lo(e, "name", {
|
|
|
807
808
|
"ArrowUp",
|
|
808
809
|
"ArrowLeft",
|
|
809
810
|
"ArrowRight"
|
|
810
|
-
], [Wo, { useGetCollection: Go, createCollectionScope: Ko }] =
|
|
811
|
+
], [Wo, { useGetCollection: Go, createCollectionScope: Ko }] = Vr(Ho), [qo, Jo] = Ni(Ho, [Ko, Do]), Yo = Do(), Xo = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Ro(function(e, t) {
|
|
811
812
|
let { type: n, ...r } = e, i = r, a = r;
|
|
812
813
|
return /* @__PURE__ */ (0, q.jsx)(Wo.Provider, {
|
|
813
814
|
scope: e.__scopeAccordion,
|
|
@@ -820,7 +821,7 @@ var Lo = Object.defineProperty, Ro = (e, t) => Lo(e, "name", {
|
|
|
820
821
|
})
|
|
821
822
|
});
|
|
822
823
|
}, "Accordion")), [Zo, Qo] = qo(Ho), [$o, es] = qo(Ho, { collapsible: !1 }), ts = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Ro(function(e, t) {
|
|
823
|
-
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ Ro(() => {}, "onValueChange"), collapsible: a = !1, ...o } = e, [s, c] =
|
|
824
|
+
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ Ro(() => {}, "onValueChange"), collapsible: a = !1, ...o } = e, [s, c] = Ai({
|
|
824
825
|
prop: n,
|
|
825
826
|
defaultProp: r ?? "",
|
|
826
827
|
onChange: i,
|
|
@@ -841,7 +842,7 @@ var Lo = Object.defineProperty, Ro = (e, t) => Lo(e, "name", {
|
|
|
841
842
|
})
|
|
842
843
|
});
|
|
843
844
|
}, "AccordionImplSingle")), ns = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Ro(function(e, t) {
|
|
844
|
-
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ Ro(() => {}, "onValueChange"), ...a } = e, [o, s] =
|
|
845
|
+
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ Ro(() => {}, "onValueChange"), ...a } = e, [o, s] = Ai({
|
|
845
846
|
prop: n,
|
|
846
847
|
defaultProp: r ?? [],
|
|
847
848
|
onChange: i,
|
|
@@ -862,7 +863,7 @@ var Lo = Object.defineProperty, Ro = (e, t) => Lo(e, "name", {
|
|
|
862
863
|
})
|
|
863
864
|
});
|
|
864
865
|
}, "AccordionImplMultiple")), [rs, is] = qo(Ho), as = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Ro(function(e, t) {
|
|
865
|
-
let { __scopeAccordion: n, disabled: r, dir: i, orientation: a = Bo.Vertical, ...o } = e, s = K.useRef(null), l = c(s, t), u = Go(n), d = Pe(i) === Vo.LTR, f =
|
|
866
|
+
let { __scopeAccordion: n, disabled: r, dir: i, orientation: a = Bo.Vertical, ...o } = e, s = K.useRef(null), l = c(s, t), u = Go(n), d = Pe(i) === Vo.LTR, f = Pi(e.onKeyDown, (e) => {
|
|
866
867
|
if (!Uo.includes(e.key)) return;
|
|
867
868
|
let t = u(), n = e.target, r = t.filter(([, e]) => !e.element.disabled), i = r.findIndex(([, e]) => e.element === n), o = r.size;
|
|
868
869
|
if (i === -1) return;
|
|
@@ -900,7 +901,7 @@ var Lo = Object.defineProperty, Ro = (e, t) => Lo(e, "name", {
|
|
|
900
901
|
orientation: a,
|
|
901
902
|
children: /* @__PURE__ */ (0, q.jsx)(Wo.Slot, {
|
|
902
903
|
scope: n,
|
|
903
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
904
|
+
children: /* @__PURE__ */ (0, q.jsx)(ci.div, {
|
|
904
905
|
...o,
|
|
905
906
|
"data-orientation": a,
|
|
906
907
|
ref: l,
|
|
@@ -909,7 +910,7 @@ var Lo = Object.defineProperty, Ro = (e, t) => Lo(e, "name", {
|
|
|
909
910
|
})
|
|
910
911
|
});
|
|
911
912
|
}, "AccordionImpl")), os = "AccordionItem", [ss, cs] = qo(os), ls = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Ro(function(e, t) {
|
|
912
|
-
let { __scopeAccordion: n, value: r, ...i } = e, a = is(os, n), o = Qo(os, n), s = Yo(n), c =
|
|
913
|
+
let { __scopeAccordion: n, value: r, ...i } = e, a = is(os, n), o = Qo(os, n), s = Yo(n), c = Si(), l = r && o.value.includes(r) || !1, u = a.disabled || e.disabled;
|
|
913
914
|
return /* @__PURE__ */ (0, q.jsx)(ss, {
|
|
914
915
|
scope: n,
|
|
915
916
|
open: l,
|
|
@@ -930,7 +931,7 @@ var Lo = Object.defineProperty, Ro = (e, t) => Lo(e, "name", {
|
|
|
930
931
|
});
|
|
931
932
|
}, "AccordionItem")), us = "AccordionHeader", ds = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Ro(function(e, t) {
|
|
932
933
|
let { __scopeAccordion: n, ...r } = e, i = is(Ho, n), a = cs(us, n);
|
|
933
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
934
|
+
return /* @__PURE__ */ (0, q.jsx)(ci.h3, {
|
|
934
935
|
"data-orientation": i.orientation,
|
|
935
936
|
"data-state": gs(a.open),
|
|
936
937
|
"data-disabled": a.disabled ? "" : void 0,
|
|
@@ -975,8 +976,8 @@ Ro(gs, "getState");
|
|
|
975
976
|
var _s = Object.defineProperty, vs = (e, t) => _s(e, "name", {
|
|
976
977
|
value: t,
|
|
977
978
|
configurable: !0
|
|
978
|
-
}), ys = "ContextMenu", [bs, xs] =
|
|
979
|
-
let { __scopeContextMenu: t, children: n, onOpenChange: r, open: i, dir: a, modal: o = !0 } = e, s = K.useRef(!1), [c, l] =
|
|
979
|
+
}), ys = "ContextMenu", [bs, xs] = Ni(ys, [yn]), Ss = yn(), [Cs, ws] = bs(ys), Ts = /* @__PURE__ */ vs((e) => {
|
|
980
|
+
let { __scopeContextMenu: t, children: n, onOpenChange: r, open: i, dir: a, modal: o = !0 } = e, s = K.useRef(!1), [c, l] = Ai({
|
|
980
981
|
prop: i,
|
|
981
982
|
defaultProp: !1,
|
|
982
983
|
onChange: r,
|
|
@@ -1014,7 +1015,7 @@ var _s = Object.defineProperty, vs = (e, t) => _s(e, "name", {
|
|
|
1014
1015
|
return K.useEffect(() => d, [d]), K.useEffect(() => void (r && d()), [r, d]), /* @__PURE__ */ (0, q.jsxs)(q.Fragment, { children: [/* @__PURE__ */ (0, q.jsx)(Fn, {
|
|
1015
1016
|
...o,
|
|
1016
1017
|
virtualRef: l
|
|
1017
|
-
}), /* @__PURE__ */ (0, q.jsx)(
|
|
1018
|
+
}), /* @__PURE__ */ (0, q.jsx)(ci.span, {
|
|
1018
1019
|
"data-state": a.open ? "open" : "closed",
|
|
1019
1020
|
"data-disabled": r ? "" : void 0,
|
|
1020
1021
|
...i,
|
|
@@ -1023,15 +1024,15 @@ var _s = Object.defineProperty, vs = (e, t) => _s(e, "name", {
|
|
|
1023
1024
|
WebkitTouchCallout: "none",
|
|
1024
1025
|
...e.style
|
|
1025
1026
|
},
|
|
1026
|
-
onContextMenu: r ? e.onContextMenu :
|
|
1027
|
+
onContextMenu: r ? e.onContextMenu : Pi(e.onContextMenu, (e) => {
|
|
1027
1028
|
d(), f(e), e.preventDefault();
|
|
1028
1029
|
}),
|
|
1029
|
-
onPointerDown: r ? e.onPointerDown :
|
|
1030
|
+
onPointerDown: r ? e.onPointerDown : Pi(e.onPointerDown, zs((e) => {
|
|
1030
1031
|
d(), a.open && a.onOpenChange(!1), u.current = window.setTimeout(() => f(e), 700);
|
|
1031
1032
|
})),
|
|
1032
|
-
onPointerMove: r ? e.onPointerMove :
|
|
1033
|
-
onPointerCancel: r ? e.onPointerCancel :
|
|
1034
|
-
onPointerUp: r ? e.onPointerUp :
|
|
1033
|
+
onPointerMove: r ? e.onPointerMove : Pi(e.onPointerMove, zs(d)),
|
|
1034
|
+
onPointerCancel: r ? e.onPointerCancel : Pi(e.onPointerCancel, zs(d)),
|
|
1035
|
+
onPointerUp: r ? e.onPointerUp : Pi(e.onPointerUp, zs(d))
|
|
1035
1036
|
})] });
|
|
1036
1037
|
}, "ContextMenuTrigger")), Os = /* @__PURE__ */ vs((e) => {
|
|
1037
1038
|
let { __scopeContextMenu: t, ...n } = e, r = Ss(t);
|
|
@@ -1137,7 +1138,7 @@ vs(zs, "whenTouchOrPen");
|
|
|
1137
1138
|
var Bs = Object.defineProperty, Vs = (e, t) => Bs(e, "name", {
|
|
1138
1139
|
value: t,
|
|
1139
1140
|
configurable: !0
|
|
1140
|
-
}), Hs = "Progress", Us = 100, [Ws, Gs] =
|
|
1141
|
+
}), Hs = "Progress", Us = 100, [Ws, Gs] = Ni(Hs), [Ks, qs] = Ws(Hs), Js = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Vs(function(e, t) {
|
|
1141
1142
|
let { __scopeProgress: n, value: r = null, max: i, getValueLabel: a = Zs, ...o } = e;
|
|
1142
1143
|
(i || i === 0) && !ec(i) && console.error(nc(`${i}`, "Progress"));
|
|
1143
1144
|
let s = ec(i) ? i : Us;
|
|
@@ -1147,7 +1148,7 @@ var Bs = Object.defineProperty, Vs = (e, t) => Bs(e, "name", {
|
|
|
1147
1148
|
scope: n,
|
|
1148
1149
|
value: c,
|
|
1149
1150
|
max: s,
|
|
1150
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
1151
|
+
children: /* @__PURE__ */ (0, q.jsx)(ci.div, {
|
|
1151
1152
|
"aria-valuemax": s,
|
|
1152
1153
|
"aria-valuemin": 0,
|
|
1153
1154
|
"aria-valuenow": $s(c) ? c : void 0,
|
|
@@ -1162,7 +1163,7 @@ var Bs = Object.defineProperty, Vs = (e, t) => Bs(e, "name", {
|
|
|
1162
1163
|
});
|
|
1163
1164
|
}, "Progress")), Ys = "ProgressIndicator", Xs = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Vs(function(e, t) {
|
|
1164
1165
|
let { __scopeProgress: n, ...r } = e, i = qs(Ys, n);
|
|
1165
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
1166
|
+
return /* @__PURE__ */ (0, q.jsx)(ci.div, {
|
|
1166
1167
|
"data-state": Qs(i.value, i.max),
|
|
1167
1168
|
"data-value": i.value ?? void 0,
|
|
1168
1169
|
"data-max": i.max,
|
|
@@ -1208,7 +1209,7 @@ Vs(rc, "getInvalidValueError");
|
|
|
1208
1209
|
var ic = Object.defineProperty, ac = (e, t) => ic(e, "name", {
|
|
1209
1210
|
value: t,
|
|
1210
1211
|
configurable: !0
|
|
1211
|
-
}), oc = "Radio", [sc, cc] =
|
|
1212
|
+
}), oc = "Radio", [sc, cc] = Ni(oc), [lc, uc] = sc(oc);
|
|
1212
1213
|
function dc(e) {
|
|
1213
1214
|
let { __scopeRadio: t, checked: n = !1, children: r, disabled: i, form: a, name: o, onCheck: s, required: c, value: l = "on", internal_do_not_use_render: u } = e, [d, f] = K.useState(null), [p, m] = K.useState(null), [h, g] = K.useState(null), _ = {
|
|
1214
1215
|
checked: n,
|
|
@@ -1235,7 +1236,7 @@ function dc(e) {
|
|
|
1235
1236
|
ac(dc, "RadioProvider");
|
|
1236
1237
|
var fc = "RadioTrigger", pc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(function({ __scopeRadio: e, onClick: t, ...n }, r) {
|
|
1237
1238
|
let { checked: i, disabled: a, value: o, setControl: s, onCheck: l, onUserClick: u, isFormControl: d, bubbleInput: f } = uc(fc, e), p = c(r, s);
|
|
1238
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
1239
|
+
return /* @__PURE__ */ (0, q.jsx)(ci.button, {
|
|
1239
1240
|
type: "button",
|
|
1240
1241
|
role: "radio",
|
|
1241
1242
|
"aria-checked": i,
|
|
@@ -1245,16 +1246,16 @@ var fc = "RadioTrigger", pc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(fu
|
|
|
1245
1246
|
value: o,
|
|
1246
1247
|
...n,
|
|
1247
1248
|
ref: p,
|
|
1248
|
-
onClick:
|
|
1249
|
+
onClick: Pi(t, (e) => {
|
|
1249
1250
|
let t = e.isPropagationStopped();
|
|
1250
1251
|
i || (u({ hasConsumerStoppedPropagation: t }), l()), f && d && (t || e.stopPropagation());
|
|
1251
1252
|
})
|
|
1252
1253
|
});
|
|
1253
1254
|
}, "RadioTrigger")), mc = "RadioIndicator", hc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(function(e, t) {
|
|
1254
1255
|
let { __scopeRadio: n, forceMount: r, ...i } = e, a = uc(mc, n);
|
|
1255
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
1256
|
+
return /* @__PURE__ */ (0, q.jsx)(gi, {
|
|
1256
1257
|
present: r || a.checked,
|
|
1257
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
1258
|
+
children: /* @__PURE__ */ (0, q.jsx)(ci.span, {
|
|
1258
1259
|
"data-state": yc(a.checked),
|
|
1259
1260
|
"data-disabled": a.disabled ? "" : void 0,
|
|
1260
1261
|
...i,
|
|
@@ -1284,7 +1285,7 @@ var fc = "RadioTrigger", pc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(fu
|
|
|
1284
1285
|
m
|
|
1285
1286
|
]);
|
|
1286
1287
|
let x = K.useRef(a);
|
|
1287
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
1288
|
+
return /* @__PURE__ */ (0, q.jsx)(ci.input, {
|
|
1288
1289
|
type: "radio",
|
|
1289
1290
|
"aria-hidden": !0,
|
|
1290
1291
|
defaultChecked: x.current,
|
|
@@ -1296,7 +1297,7 @@ var fc = "RadioTrigger", pc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(fu
|
|
|
1296
1297
|
...n,
|
|
1297
1298
|
tabIndex: -1,
|
|
1298
1299
|
ref: h,
|
|
1299
|
-
onClick:
|
|
1300
|
+
onClick: Pi(t, (e) => {
|
|
1300
1301
|
_.current && e.stopPropagation();
|
|
1301
1302
|
}),
|
|
1302
1303
|
style: {
|
|
@@ -1323,8 +1324,8 @@ var bc = [
|
|
|
1323
1324
|
"ArrowDown",
|
|
1324
1325
|
"ArrowLeft",
|
|
1325
1326
|
"ArrowRight"
|
|
1326
|
-
], xc = "RadioGroup", [Sc, Cc] =
|
|
1327
|
-
let { __scopeRadioGroup: n, name: r, form: i, defaultValue: a, value: o, required: s = !1, disabled: l = !1, orientation: u, dir: d, loop: f = !0, onValueChange: p, ...m } = e, h = wc(n), g = Pe(d), [_, v] =
|
|
1327
|
+
], xc = "RadioGroup", [Sc, Cc] = Ni(xc, [sr, cc]), wc = sr(), Tc = cc(), [Ec, Dc] = Sc(xc), Oc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(function(e, t) {
|
|
1328
|
+
let { __scopeRadioGroup: n, name: r, form: i, defaultValue: a, value: o, required: s = !1, disabled: l = !1, orientation: u, dir: d, loop: f = !0, onValueChange: p, ...m } = e, h = wc(n), g = Pe(d), [_, v] = Ai({
|
|
1328
1329
|
prop: o,
|
|
1329
1330
|
defaultProp: a ?? null,
|
|
1330
1331
|
onChange: p,
|
|
@@ -1354,7 +1355,7 @@ var bc = [
|
|
|
1354
1355
|
orientation: u,
|
|
1355
1356
|
dir: g,
|
|
1356
1357
|
loop: f,
|
|
1357
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
1358
|
+
children: /* @__PURE__ */ (0, q.jsx)(ci.div, {
|
|
1358
1359
|
role: "radiogroup",
|
|
1359
1360
|
"aria-required": s,
|
|
1360
1361
|
"aria-orientation": u,
|
|
@@ -1400,10 +1401,10 @@ var Mc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(function(e, t) {
|
|
|
1400
1401
|
...a,
|
|
1401
1402
|
...r,
|
|
1402
1403
|
ref: u,
|
|
1403
|
-
onKeyDown:
|
|
1404
|
+
onKeyDown: Pi(r.onKeyDown, (e) => {
|
|
1404
1405
|
e.key === "Enter" && e.preventDefault();
|
|
1405
1406
|
}),
|
|
1406
|
-
onFocus:
|
|
1407
|
+
onFocus: Pi(r.onFocus, () => {
|
|
1407
1408
|
d.current && l.current?.click();
|
|
1408
1409
|
})
|
|
1409
1410
|
})
|
|
@@ -1437,9 +1438,9 @@ var Mc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(function(e, t) {
|
|
|
1437
1438
|
}, "RadioGroupIndicator")), Ic = Object.defineProperty, Lc = (e, t) => Ic(e, "name", {
|
|
1438
1439
|
value: t,
|
|
1439
1440
|
configurable: !0
|
|
1440
|
-
}), Rc = "Switch", [zc, Bc] =
|
|
1441
|
+
}), Rc = "Switch", [zc, Bc] = Ni(Rc), [Vc, Hc] = zc(Rc);
|
|
1441
1442
|
function Uc(e) {
|
|
1442
|
-
let { __scopeSwitch: t, checked: n, children: r, defaultChecked: i, disabled: a, form: o, name: s, onCheckedChange: c, required: l, value: u = "on", internal_do_not_use_render: d } = e, [f, p] =
|
|
1443
|
+
let { __scopeSwitch: t, checked: n, children: r, defaultChecked: i, disabled: a, form: o, name: s, onCheckedChange: c, required: l, value: u = "on", internal_do_not_use_render: d } = e, [f, p] = Ai({
|
|
1443
1444
|
prop: n,
|
|
1444
1445
|
defaultProp: i ?? !1,
|
|
1445
1446
|
onChange: c,
|
|
@@ -1480,7 +1481,7 @@ var Wc = "SwitchTrigger", Gc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Lc(f
|
|
|
1480
1481
|
i,
|
|
1481
1482
|
a,
|
|
1482
1483
|
f
|
|
1483
|
-
]), /* @__PURE__ */ (0, q.jsx)(
|
|
1484
|
+
]), /* @__PURE__ */ (0, q.jsx)(ci.button, {
|
|
1484
1485
|
type: "button",
|
|
1485
1486
|
role: "switch",
|
|
1486
1487
|
"aria-checked": l,
|
|
@@ -1491,7 +1492,7 @@ var Wc = "SwitchTrigger", Gc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Lc(f
|
|
|
1491
1492
|
value: o,
|
|
1492
1493
|
...n,
|
|
1493
1494
|
ref: g,
|
|
1494
|
-
onClick:
|
|
1495
|
+
onClick: Pi(t, (e) => {
|
|
1495
1496
|
let t = e.isPropagationStopped();
|
|
1496
1497
|
p({
|
|
1497
1498
|
requestedChecked: !l,
|
|
@@ -1519,7 +1520,7 @@ var Wc = "SwitchTrigger", Gc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Lc(f
|
|
|
1519
1520
|
});
|
|
1520
1521
|
}, "Switch")), qc = "SwitchThumb", Jc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Lc(function(e, t) {
|
|
1521
1522
|
let { __scopeSwitch: n, ...r } = e, i = Hc(qc, n);
|
|
1522
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
1523
|
+
return /* @__PURE__ */ (0, q.jsx)(ci.span, {
|
|
1523
1524
|
"data-state": Qc(i.checked),
|
|
1524
1525
|
"data-disabled": i.disabled ? "" : void 0,
|
|
1525
1526
|
...r,
|
|
@@ -1548,7 +1549,7 @@ var Wc = "SwitchTrigger", Gc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Lc(f
|
|
|
1548
1549
|
a
|
|
1549
1550
|
]);
|
|
1550
1551
|
let S = K.useRef(o);
|
|
1551
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
1552
|
+
return /* @__PURE__ */ (0, q.jsx)(ci.input, {
|
|
1552
1553
|
type: "checkbox",
|
|
1553
1554
|
"aria-hidden": !0,
|
|
1554
1555
|
defaultChecked: s ?? S.current,
|
|
@@ -1560,7 +1561,7 @@ var Wc = "SwitchTrigger", Gc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Lc(f
|
|
|
1560
1561
|
...n,
|
|
1561
1562
|
tabIndex: -1,
|
|
1562
1563
|
ref: g,
|
|
1563
|
-
onClick:
|
|
1564
|
+
onClick: Pi(t, (e) => {
|
|
1564
1565
|
v.current && e.stopPropagation();
|
|
1565
1566
|
}),
|
|
1566
1567
|
style: {
|
|
@@ -1590,8 +1591,8 @@ var $c = Object.defineProperty, el = (e, t) => $c(e, "name", {
|
|
|
1590
1591
|
}), tl = {
|
|
1591
1592
|
Automatic: "automatic",
|
|
1592
1593
|
Manual: "manual"
|
|
1593
|
-
}, nl = "Tabs", [rl, il] =
|
|
1594
|
-
let { __scopeTabs: n, value: r, onValueChange: i, defaultValue: a, orientation: o = "horizontal", dir: s, activationMode: c = tl.Automatic, ...l } = e, u = Pe(s), [d, f] =
|
|
1594
|
+
}, nl = "Tabs", [rl, il] = Ni(nl, [sr]), al = sr(), [ol, sl] = rl(nl), cl = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ el(function(e, t) {
|
|
1595
|
+
let { __scopeTabs: n, value: r, onValueChange: i, defaultValue: a, orientation: o = "horizontal", dir: s, activationMode: c = tl.Automatic, ...l } = e, u = Pe(s), [d, f] = Ai({
|
|
1595
1596
|
prop: r,
|
|
1596
1597
|
onChange: i,
|
|
1597
1598
|
defaultProp: a ?? "",
|
|
@@ -1599,13 +1600,13 @@ var $c = Object.defineProperty, el = (e, t) => $c(e, "name", {
|
|
|
1599
1600
|
});
|
|
1600
1601
|
return /* @__PURE__ */ (0, q.jsx)(ol, {
|
|
1601
1602
|
scope: n,
|
|
1602
|
-
baseId:
|
|
1603
|
+
baseId: Si(),
|
|
1603
1604
|
value: d,
|
|
1604
1605
|
onValueChange: f,
|
|
1605
1606
|
orientation: o,
|
|
1606
1607
|
dir: u,
|
|
1607
1608
|
activationMode: c,
|
|
1608
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
1609
|
+
children: /* @__PURE__ */ (0, q.jsx)(ci.div, {
|
|
1609
1610
|
dir: u,
|
|
1610
1611
|
"data-orientation": o,
|
|
1611
1612
|
...l,
|
|
@@ -1620,7 +1621,7 @@ var $c = Object.defineProperty, el = (e, t) => $c(e, "name", {
|
|
|
1620
1621
|
orientation: a.orientation,
|
|
1621
1622
|
dir: a.dir,
|
|
1622
1623
|
loop: r,
|
|
1623
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
1624
|
+
children: /* @__PURE__ */ (0, q.jsx)(ci.div, {
|
|
1624
1625
|
role: "tablist",
|
|
1625
1626
|
"aria-orientation": a.orientation,
|
|
1626
1627
|
...i,
|
|
@@ -1634,7 +1635,7 @@ var $c = Object.defineProperty, el = (e, t) => $c(e, "name", {
|
|
|
1634
1635
|
...s,
|
|
1635
1636
|
focusable: !i,
|
|
1636
1637
|
active: u,
|
|
1637
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
1638
|
+
children: /* @__PURE__ */ (0, q.jsx)(ci.button, {
|
|
1638
1639
|
type: "button",
|
|
1639
1640
|
role: "tab",
|
|
1640
1641
|
"aria-selected": u,
|
|
@@ -1645,13 +1646,13 @@ var $c = Object.defineProperty, el = (e, t) => $c(e, "name", {
|
|
|
1645
1646
|
id: c,
|
|
1646
1647
|
...a,
|
|
1647
1648
|
ref: t,
|
|
1648
|
-
onMouseDown:
|
|
1649
|
+
onMouseDown: Pi(e.onMouseDown, (e) => {
|
|
1649
1650
|
!i && e.button === 0 && e.ctrlKey === !1 ? (e.currentTarget.focus(), o.onValueChange(r)) : e.preventDefault();
|
|
1650
1651
|
}),
|
|
1651
|
-
onKeyDown:
|
|
1652
|
+
onKeyDown: Pi(e.onKeyDown, (e) => {
|
|
1652
1653
|
i || e.target !== e.currentTarget || [" ", "Enter"].includes(e.key) && o.onValueChange(r);
|
|
1653
1654
|
}),
|
|
1654
|
-
onFocus:
|
|
1655
|
+
onFocus: Pi(e.onFocus, () => {
|
|
1655
1656
|
let e = o.activationMode !== tl.Manual;
|
|
1656
1657
|
!u && !i && e && o.onValueChange(r);
|
|
1657
1658
|
})
|
|
@@ -1662,9 +1663,9 @@ var $c = Object.defineProperty, el = (e, t) => $c(e, "name", {
|
|
|
1662
1663
|
return K.useEffect(() => {
|
|
1663
1664
|
let e = requestAnimationFrame(() => d.current = !1);
|
|
1664
1665
|
return () => cancelAnimationFrame(e);
|
|
1665
|
-
}, []), /* @__PURE__ */ (0, q.jsx)(
|
|
1666
|
+
}, []), /* @__PURE__ */ (0, q.jsx)(gi, {
|
|
1666
1667
|
present: i || u,
|
|
1667
|
-
children: ({ present: n }) => /* @__PURE__ */ (0, q.jsx)(
|
|
1668
|
+
children: ({ present: n }) => /* @__PURE__ */ (0, q.jsx)(ci.div, {
|
|
1668
1669
|
"data-state": u ? "active" : "inactive",
|
|
1669
1670
|
"data-orientation": s.orientation,
|
|
1670
1671
|
role: "tabpanel",
|
|
@@ -1692,7 +1693,7 @@ function gl(e, t) {
|
|
|
1692
1693
|
el(gl, "makeContentId");
|
|
1693
1694
|
//#endregion
|
|
1694
1695
|
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-aria/dist/private/utils/keyboard.mjs
|
|
1695
|
-
var _l = /* @__PURE__ */ e(
|
|
1696
|
+
var _l = /* @__PURE__ */ e(Kr(), 1), vl = /* @__PURE__ */ new Set([
|
|
1696
1697
|
"checkbox",
|
|
1697
1698
|
"radio",
|
|
1698
1699
|
"range",
|
|
@@ -4334,14 +4335,14 @@ function Wp(e, t, n = {}) {
|
|
|
4334
4335
|
e !== t && Gp(e, t, t.getBoundingClientRect(), n);
|
|
4335
4336
|
}
|
|
4336
4337
|
function Gp(e, t, n, r = {}) {
|
|
4337
|
-
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, N = e === d ? 0 : D + O, P = e === d ? 0 : T + E, F = e === d ? 0 : e.offsetWidth - e.clientWidth - N, I = e === d ? 0 : e.offsetHeight - e.clientHeight - P,
|
|
4338
|
+
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, N = e === d ? 0 : D + O, P = e === d ? 0 : T + E, F = e === d ? 0 : e.offsetWidth - e.clientWidth - N, I = e === d ? 0 : e.offsetHeight - e.clientHeight - P, ee = p + (f ? 0 : T) + x, L = m - (f ? 0 : E) - S - I, R = h + (f ? 0 : D) + C, z = g - (f ? 0 : O) - w;
|
|
4338
4339
|
ur() && Dt() || u.direction === "ltr" ? z -= F : u.direction === "rtl" && (R += F);
|
|
4339
|
-
let B = k <
|
|
4340
|
-
if (B && i === "start") o += k -
|
|
4341
|
-
else if (B && i === "center") o += (k + A) / 2 - (
|
|
4342
|
-
else if (B && i === "end") o += A -
|
|
4340
|
+
let B = k < ee || A > L, te = j < R || M > z;
|
|
4341
|
+
if (B && i === "start") o += k - ee;
|
|
4342
|
+
else if (B && i === "center") o += (k + A) / 2 - (ee + L) / 2;
|
|
4343
|
+
else if (B && i === "end") o += A - L;
|
|
4343
4344
|
else if (B && i === "nearest") {
|
|
4344
|
-
let e = k -
|
|
4345
|
+
let e = k - ee, t = A - L;
|
|
4345
4346
|
o += Math.abs(e) <= Math.abs(t) ? e : t;
|
|
4346
4347
|
}
|
|
4347
4348
|
if (te && a === "start") s += j - R;
|
|
@@ -6707,8 +6708,8 @@ function jg(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
|
|
|
6707
6708
|
w[b] += O;
|
|
6708
6709
|
let k = kg(w, s, l, f, i, a, n.height, D, c, g, _);
|
|
6709
6710
|
p && p < k && (k = p), n.height = Math.min(n.height, k), w = Og(t, s, n, v, T, d, l, f, m, h, c), O = Tg(b, w[b], n[x], s, c, a, l), w[b] += O;
|
|
6710
|
-
let A = {}, j = t[b] - w[b] - i[gg[b]], M = j + .5 * t[x], N = m / 2 + h, P = gg[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[gg[b]]),
|
|
6711
|
-
A[b] = In(
|
|
6711
|
+
let A = {}, j = t[b] - w[b] - i[gg[b]], M = j + .5 * t[x], N = m / 2 + h, P = gg[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[gg[b]]), ee = t[b] + t[x] - m / 2 - (w[b] + i[gg[b]]), L = In(M, I, ee);
|
|
6712
|
+
A[b] = In(L, N, F), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
|
|
6712
6713
|
let R = S === "left" || S === "top" ? n[y] : 0, z = {
|
|
6713
6714
|
x: S === "top" || S === "bottom" ? j : R,
|
|
6714
6715
|
y: S === "left" || S === "right" ? j : R
|
|
@@ -6944,7 +6945,7 @@ function Hg(e, t) {
|
|
|
6944
6945
|
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_supports-color@10.0.0__@babel+template@7.28.6_@types+react@19.3.0_react@19.3.1/node_modules/jotai/esm/react/utils.mjs
|
|
6945
6946
|
var J = f(), Ug = /* @__PURE__ */ new WeakMap();
|
|
6946
6947
|
function Wg(e, t) {
|
|
6947
|
-
let n =
|
|
6948
|
+
let n = ti(t), r = Gg(n);
|
|
6948
6949
|
for (let [i, ...a] of e) (!r.has(i) || t?.dangerouslyForceHydrate) && (r.add(i), n.set(i, ...a));
|
|
6949
6950
|
}
|
|
6950
6951
|
var Gg = (e) => {
|
|
@@ -6977,13 +6978,13 @@ function Kg(e) {
|
|
|
6977
6978
|
//#endregion
|
|
6978
6979
|
//#region src/core/state/create-keyed-selector-hook.ts
|
|
6979
6980
|
function qg(e, t) {
|
|
6980
|
-
return
|
|
6981
|
+
return vr((n) => si(e, (e) => t(e, n)));
|
|
6981
6982
|
}
|
|
6982
6983
|
//#endregion
|
|
6983
6984
|
//#region src/core/executions/hooks.ts
|
|
6984
|
-
var Jg =
|
|
6985
|
+
var Jg = vr(zr), Yg = vr(wr);
|
|
6985
6986
|
function Xg(e) {
|
|
6986
|
-
let t = Kg(
|
|
6987
|
+
let t = Kg(li(vi) && e ? 200 : 0);
|
|
6987
6988
|
return e && t;
|
|
6988
6989
|
}
|
|
6989
6990
|
function Zg(e) {
|
|
@@ -6998,20 +6999,20 @@ function Zg(e) {
|
|
|
6998
6999
|
freshness: a
|
|
6999
7000
|
}, t[3] = n, t[4] = a, t[5] = o) : o = t[5], o;
|
|
7000
7001
|
}
|
|
7001
|
-
var Qg =
|
|
7002
|
-
|
|
7002
|
+
var Qg = vr(Cr), $g = qg(Er, (e, t) => e.results.get(t) != null);
|
|
7003
|
+
vr(hr);
|
|
7003
7004
|
//#endregion
|
|
7004
7005
|
//#region src/utils/traceback.ts
|
|
7005
7006
|
var e_ = (e, t) => {
|
|
7006
7007
|
let [n, ...r] = t.split("."), i = (e.attribs.class || "").split(" ");
|
|
7007
7008
|
return e.tagName === n && r.every((e) => i.includes(e));
|
|
7008
|
-
}, t_ = (e) => e && e_(e, "span.nb") && e.firstChild instanceof
|
|
7009
|
+
}, t_ = (e) => e && e_(e, "span.nb") && e.firstChild instanceof B.Text && e.firstChild.nodeValue?.includes("__marimo__");
|
|
7009
7010
|
function n_(e) {
|
|
7010
|
-
if (e instanceof
|
|
7011
|
+
if (e instanceof B.Element && e.firstChild instanceof B.Text && e_(e, "span.nb")) {
|
|
7011
7012
|
let t = e.next;
|
|
7012
|
-
if (t && t instanceof
|
|
7013
|
+
if (t && t instanceof B.Text) {
|
|
7013
7014
|
let n = t.next;
|
|
7014
|
-
if (n && n instanceof
|
|
7015
|
+
if (n && n instanceof B.Element && n.firstChild instanceof B.Text && e_(n, "span.m")) {
|
|
7015
7016
|
let t = Number.parseInt(n.firstChild.nodeValue || "0", 10);
|
|
7016
7017
|
if (e.firstChild.nodeValue?.includes("__marimo__")) {
|
|
7017
7018
|
let n = /__marimo__cell_(\w+)_/.exec(e.firstChild.nodeValue)?.[1];
|
|
@@ -7035,7 +7036,7 @@ function n_(e) {
|
|
|
7035
7036
|
}
|
|
7036
7037
|
function r_(e) {
|
|
7037
7038
|
let t = [];
|
|
7038
|
-
return
|
|
7039
|
+
return E(e, { replace: (e) => {
|
|
7039
7040
|
let n = n_(e);
|
|
7040
7041
|
if (n) return t.push(n), "dummy";
|
|
7041
7042
|
} }), t;
|
|
@@ -7049,7 +7050,7 @@ function a_() {
|
|
|
7049
7050
|
//#endregion
|
|
7050
7051
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js
|
|
7051
7052
|
function o_(e, t) {
|
|
7052
|
-
let n = a_(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i =
|
|
7053
|
+
let n = a_(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = la(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
|
|
7053
7054
|
return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
|
|
7054
7055
|
}
|
|
7055
7056
|
//#endregion
|
|
@@ -7063,9 +7064,9 @@ function s_(e, t) {
|
|
|
7063
7064
|
//#endregion
|
|
7064
7065
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js
|
|
7065
7066
|
function c_(e, t) {
|
|
7066
|
-
let n =
|
|
7067
|
+
let n = la(e, t?.in), r = n.getFullYear(), i = sa(n, 0);
|
|
7067
7068
|
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
7068
|
-
let a = s_(i), o =
|
|
7069
|
+
let a = s_(i), o = sa(n, 0);
|
|
7069
7070
|
o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
|
|
7070
7071
|
let s = s_(o);
|
|
7071
7072
|
return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
|
|
@@ -7073,37 +7074,37 @@ function c_(e, t) {
|
|
|
7073
7074
|
//#endregion
|
|
7074
7075
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
|
|
7075
7076
|
function l_(e) {
|
|
7076
|
-
let t =
|
|
7077
|
+
let t = la(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
|
|
7077
7078
|
return n.setUTCFullYear(t.getFullYear()), +e - n;
|
|
7078
7079
|
}
|
|
7079
7080
|
//#endregion
|
|
7080
7081
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js
|
|
7081
7082
|
function u_(e, ...t) {
|
|
7082
|
-
let n =
|
|
7083
|
+
let n = sa.bind(null, e || t.find((e) => typeof e == "object"));
|
|
7083
7084
|
return t.map(n);
|
|
7084
7085
|
}
|
|
7085
7086
|
//#endregion
|
|
7086
7087
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js
|
|
7087
7088
|
function d_(e, t) {
|
|
7088
|
-
let n =
|
|
7089
|
+
let n = la(e, t?.in);
|
|
7089
7090
|
return n.setHours(0, 0, 0, 0), n;
|
|
7090
7091
|
}
|
|
7091
7092
|
//#endregion
|
|
7092
7093
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js
|
|
7093
7094
|
function f_(e, t, n) {
|
|
7094
7095
|
let [r, i] = u_(n?.in, e, t), a = d_(r), o = d_(i), s = +a - l_(a), c = +o - l_(o);
|
|
7095
|
-
return Math.round((s - c) /
|
|
7096
|
+
return Math.round((s - c) / ca);
|
|
7096
7097
|
}
|
|
7097
7098
|
//#endregion
|
|
7098
7099
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js
|
|
7099
7100
|
function p_(e, t) {
|
|
7100
|
-
let n = c_(e, t), r =
|
|
7101
|
+
let n = c_(e, t), r = sa(t?.in || e, 0);
|
|
7101
7102
|
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), s_(r);
|
|
7102
7103
|
}
|
|
7103
7104
|
//#endregion
|
|
7104
7105
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js
|
|
7105
7106
|
function m_(e, t) {
|
|
7106
|
-
let n =
|
|
7107
|
+
let n = la(e, t?.in);
|
|
7107
7108
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
7108
7109
|
}
|
|
7109
7110
|
//#endregion
|
|
@@ -7607,21 +7608,21 @@ var D_ = {
|
|
|
7607
7608
|
//#endregion
|
|
7608
7609
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js
|
|
7609
7610
|
function O_(e, t) {
|
|
7610
|
-
let n =
|
|
7611
|
+
let n = la(e, t?.in);
|
|
7611
7612
|
return f_(n, m_(n)) + 1;
|
|
7612
7613
|
}
|
|
7613
7614
|
//#endregion
|
|
7614
7615
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js
|
|
7615
7616
|
function k_(e, t) {
|
|
7616
|
-
let n =
|
|
7617
|
-
return Math.round(r /
|
|
7617
|
+
let n = la(e, t?.in), r = +s_(n) - p_(n);
|
|
7618
|
+
return Math.round(r / oa) + 1;
|
|
7618
7619
|
}
|
|
7619
7620
|
//#endregion
|
|
7620
7621
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js
|
|
7621
7622
|
function A_(e, t) {
|
|
7622
|
-
let n =
|
|
7623
|
+
let n = la(e, t?.in), r = n.getFullYear(), i = a_(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = sa(t?.in || e, 0);
|
|
7623
7624
|
o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
|
|
7624
|
-
let s = o_(o, t), c =
|
|
7625
|
+
let s = o_(o, t), c = sa(t?.in || e, 0);
|
|
7625
7626
|
c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
|
|
7626
7627
|
let l = o_(c, t);
|
|
7627
7628
|
return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
|
|
@@ -7629,14 +7630,14 @@ function A_(e, t) {
|
|
|
7629
7630
|
//#endregion
|
|
7630
7631
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js
|
|
7631
7632
|
function j_(e, t) {
|
|
7632
|
-
let n = a_(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = A_(e, t), a =
|
|
7633
|
+
let n = a_(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = A_(e, t), a = sa(t?.in || e, 0);
|
|
7633
7634
|
return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), o_(a, t);
|
|
7634
7635
|
}
|
|
7635
7636
|
//#endregion
|
|
7636
7637
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js
|
|
7637
7638
|
function M_(e, t) {
|
|
7638
|
-
let n =
|
|
7639
|
-
return Math.round(r /
|
|
7639
|
+
let n = la(e, t?.in), r = +o_(n, t) - j_(n, t);
|
|
7640
|
+
return Math.round(r / oa) + 1;
|
|
7640
7641
|
}
|
|
7641
7642
|
//#endregion
|
|
7642
7643
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js
|
|
@@ -8115,8 +8116,8 @@ function Y_(e, t, n) {
|
|
|
8115
8116
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js
|
|
8116
8117
|
var X_ = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Z_ = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Q_ = /^'([^]*?)'?$/, $_ = /''/g, ev = /[a-zA-Z]/;
|
|
8117
8118
|
function tv(e, t, n) {
|
|
8118
|
-
let r = a_(), i = n?.locale ?? r.locale ?? D_, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s =
|
|
8119
|
-
if (!
|
|
8119
|
+
let r = a_(), i = n?.locale ?? r.locale ?? D_, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = la(e, n?.in);
|
|
8120
|
+
if (!ua(s)) throw RangeError("Invalid time value");
|
|
8120
8121
|
let c = t.match(Z_).map((e) => {
|
|
8121
8122
|
let t = e[0];
|
|
8122
8123
|
if (t === "p" || t === "P") {
|
|
@@ -8166,10 +8167,10 @@ function nv(e) {
|
|
|
8166
8167
|
//#region src/core/codemirror/go-to-definition/utils.ts
|
|
8167
8168
|
function rv(e, t) {
|
|
8168
8169
|
let n = iv(e);
|
|
8169
|
-
return n ?
|
|
8170
|
+
return n ? br(n, t) : !1;
|
|
8170
8171
|
}
|
|
8171
8172
|
function iv(e) {
|
|
8172
|
-
return
|
|
8173
|
+
return Fr(e) ?? null;
|
|
8173
8174
|
}
|
|
8174
8175
|
//#endregion
|
|
8175
8176
|
//#region ../node_modules/.pnpm/react-aria-components@1.21.1_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-aria-components/dist/private/Heading.mjs
|
|
@@ -8292,7 +8293,7 @@ function hv(e) {
|
|
|
8292
8293
|
l,
|
|
8293
8294
|
o,
|
|
8294
8295
|
s
|
|
8295
|
-
]),
|
|
8296
|
+
]), ee = e.isInvalid || e.validationState === "invalid" || I, L = ee ? "invalid" : null, R = (0, K.useMemo)(() => u === "visible" ? a : gv(a), [u, a]);
|
|
8296
8297
|
return {
|
|
8297
8298
|
isDisabled: e.isDisabled ?? !1,
|
|
8298
8299
|
isReadOnly: e.isReadOnly ?? !1,
|
|
@@ -8308,8 +8309,8 @@ function hv(e) {
|
|
|
8308
8309
|
maxValue: s,
|
|
8309
8310
|
focusedDate: x,
|
|
8310
8311
|
timeZone: v,
|
|
8311
|
-
validationState:
|
|
8312
|
-
isValueInvalid:
|
|
8312
|
+
validationState: L,
|
|
8313
|
+
isValueInvalid: ee,
|
|
8313
8314
|
setFocusedDate(e) {
|
|
8314
8315
|
N(e);
|
|
8315
8316
|
},
|
|
@@ -10120,7 +10121,7 @@ function eb(e) {
|
|
|
10120
10121
|
p,
|
|
10121
10122
|
y,
|
|
10122
10123
|
D
|
|
10123
|
-
]),
|
|
10124
|
+
]), ee = (0, K.useMemo)(() => tb(I, b, T, E, m, t, d), [
|
|
10124
10125
|
I,
|
|
10125
10126
|
T,
|
|
10126
10127
|
E,
|
|
@@ -10128,7 +10129,7 @@ function eb(e) {
|
|
|
10128
10129
|
m,
|
|
10129
10130
|
t,
|
|
10130
10131
|
d
|
|
10131
|
-
]),
|
|
10132
|
+
]), L = (e, t) => {
|
|
10132
10133
|
F(b.cycle(e, t, D, O));
|
|
10133
10134
|
}, R = (0, K.useMemo)(() => Iy(g, s, c, l, C), [
|
|
10134
10135
|
g,
|
|
@@ -10148,7 +10149,7 @@ function eb(e) {
|
|
|
10148
10149
|
dateValue: I,
|
|
10149
10150
|
calendar: m,
|
|
10150
10151
|
setValue: F,
|
|
10151
|
-
segments:
|
|
10152
|
+
segments: ee,
|
|
10152
10153
|
dateFormatter: T,
|
|
10153
10154
|
validationState: te,
|
|
10154
10155
|
isInvalid: B,
|
|
@@ -10158,16 +10159,16 @@ function eb(e) {
|
|
|
10158
10159
|
isReadOnly: a,
|
|
10159
10160
|
isRequired: o,
|
|
10160
10161
|
increment(e) {
|
|
10161
|
-
|
|
10162
|
+
L(e, 1);
|
|
10162
10163
|
},
|
|
10163
10164
|
decrement(e) {
|
|
10164
|
-
|
|
10165
|
+
L(e, -1);
|
|
10165
10166
|
},
|
|
10166
10167
|
incrementPage(e) {
|
|
10167
|
-
|
|
10168
|
+
L(e, Qy[e] || 1);
|
|
10168
10169
|
},
|
|
10169
10170
|
decrementPage(e) {
|
|
10170
|
-
|
|
10171
|
+
L(e, -(Qy[e] || 1));
|
|
10171
10172
|
},
|
|
10172
10173
|
incrementToMax(e) {
|
|
10173
10174
|
let t = e === "hour" && h === "h12" ? 11 : b.getSegmentLimits(e).maxValue;
|
|
@@ -10806,12 +10807,12 @@ function wb() {
|
|
|
10806
10807
|
}));
|
|
10807
10808
|
},
|
|
10808
10809
|
openAlert: (n) => {
|
|
10809
|
-
e.setModal(/* @__PURE__ */ (0, q.jsx)(
|
|
10810
|
+
e.setModal(/* @__PURE__ */ (0, q.jsx)(Ui, {
|
|
10810
10811
|
open: !0,
|
|
10811
10812
|
onOpenChange: (e) => {
|
|
10812
10813
|
e || t();
|
|
10813
10814
|
},
|
|
10814
|
-
children: /* @__PURE__ */ (0, q.jsxs)(
|
|
10815
|
+
children: /* @__PURE__ */ (0, q.jsxs)(Hi, { children: [n, /* @__PURE__ */ (0, q.jsx)(zi, { children: /* @__PURE__ */ (0, q.jsx)(Ri, {
|
|
10815
10816
|
autoFocus: !0,
|
|
10816
10817
|
onClick: t,
|
|
10817
10818
|
children: "Ok"
|
|
@@ -10819,18 +10820,18 @@ function wb() {
|
|
|
10819
10820
|
}));
|
|
10820
10821
|
},
|
|
10821
10822
|
openPrompt: (n) => {
|
|
10822
|
-
e.setModal(/* @__PURE__ */ (0, q.jsx)(
|
|
10823
|
+
e.setModal(/* @__PURE__ */ (0, q.jsx)(Ui, {
|
|
10823
10824
|
open: !0,
|
|
10824
10825
|
onOpenChange: (e) => {
|
|
10825
10826
|
e || t();
|
|
10826
10827
|
},
|
|
10827
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
10828
|
+
children: /* @__PURE__ */ (0, q.jsx)(Hi, { children: /* @__PURE__ */ (0, q.jsxs)("form", {
|
|
10828
10829
|
onSubmit: (e) => {
|
|
10829
10830
|
e.preventDefault(), n.onConfirm(e.currentTarget.prompt.value), t();
|
|
10830
10831
|
},
|
|
10831
|
-
children: [/* @__PURE__ */ (0, q.jsxs)(
|
|
10832
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
10833
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
10832
|
+
children: [/* @__PURE__ */ (0, q.jsxs)(Ki, { children: [
|
|
10833
|
+
/* @__PURE__ */ (0, q.jsx)(Li, { children: n.title }),
|
|
10834
|
+
/* @__PURE__ */ (0, q.jsx)(Wi, { children: n.description }),
|
|
10834
10835
|
/* @__PURE__ */ (0, q.jsx)(vn, {
|
|
10835
10836
|
spellCheck: n.spellCheck,
|
|
10836
10837
|
defaultValue: n.defaultValue,
|
|
@@ -10840,7 +10841,7 @@ function wb() {
|
|
|
10840
10841
|
autoFocus: !0,
|
|
10841
10842
|
autoComplete: "off"
|
|
10842
10843
|
})
|
|
10843
|
-
] }), /* @__PURE__ */ (0, q.jsxs)(
|
|
10844
|
+
] }), /* @__PURE__ */ (0, q.jsxs)(zi, { children: [/* @__PURE__ */ (0, q.jsx)(Fi, {
|
|
10844
10845
|
onClick: t,
|
|
10845
10846
|
children: "Cancel"
|
|
10846
10847
|
}), /* @__PURE__ */ (0, q.jsx)(u, {
|
|
@@ -10851,15 +10852,15 @@ function wb() {
|
|
|
10851
10852
|
}));
|
|
10852
10853
|
},
|
|
10853
10854
|
openConfirm: (n) => {
|
|
10854
|
-
e.setModal(/* @__PURE__ */ (0, q.jsx)(
|
|
10855
|
+
e.setModal(/* @__PURE__ */ (0, q.jsx)(Ui, {
|
|
10855
10856
|
open: !0,
|
|
10856
10857
|
onOpenChange: (e) => {
|
|
10857
10858
|
e || t();
|
|
10858
10859
|
},
|
|
10859
|
-
children: /* @__PURE__ */ (0, q.jsxs)(
|
|
10860
|
+
children: /* @__PURE__ */ (0, q.jsxs)(Hi, { children: [/* @__PURE__ */ (0, q.jsxs)(Ki, { children: [/* @__PURE__ */ (0, q.jsx)(Li, {
|
|
10860
10861
|
className: n.variant === "destructive" ? "text-destructive" : "",
|
|
10861
10862
|
children: n.title
|
|
10862
|
-
}), /* @__PURE__ */ (0, q.jsx)(
|
|
10863
|
+
}), /* @__PURE__ */ (0, q.jsx)(Wi, { children: n.description })] }), /* @__PURE__ */ (0, q.jsxs)(zi, { children: [/* @__PURE__ */ (0, q.jsx)(Fi, {
|
|
10863
10864
|
onClick: t,
|
|
10864
10865
|
children: "Cancel"
|
|
10865
10866
|
}), n.confirmAction] })] })
|
|
@@ -10876,13 +10877,13 @@ function Tb(e) {
|
|
|
10876
10877
|
//#endregion
|
|
10877
10878
|
//#region src/core/saving/filename.ts
|
|
10878
10879
|
function Eb() {
|
|
10879
|
-
return
|
|
10880
|
+
return li(Rr);
|
|
10880
10881
|
}
|
|
10881
10882
|
//#endregion
|
|
10882
10883
|
//#region src/components/editor/links/cell-link.tsx
|
|
10883
10884
|
var Db = (e) => {
|
|
10884
|
-
let t = (0, J.c)(15), { className: n, cellId: r, variant: a, onClick: s, formatCellName: c, skipScroll: l } = e, u =
|
|
10885
|
-
t[0] === r ? m = t[1] : (m = r === "__scratch__" ? void 0 : `#${
|
|
10885
|
+
let t = (0, J.c)(15), { className: n, cellId: r, variant: a, onClick: s, formatCellName: c, skipScroll: l } = e, u = Ar()[r] ?? "", d = Ir().indexOf(r), { showCellIfHidden: f } = P(), p = c ?? jb, m;
|
|
10886
|
+
t[0] === r ? m = t[1] : (m = r === "__scratch__" ? void 0 : `#${fr.create(r)}`, t[0] = r, t[1] = m);
|
|
10886
10887
|
let h;
|
|
10887
10888
|
t[2] === n ? h = t[3] : (h = i("inline-block cursor-pointer text-left text-link hover:underline focus-visible:outline focus-visible:outline-ring", n), t[2] = n, t[3] = h);
|
|
10888
10889
|
let g;
|
|
@@ -10890,11 +10891,11 @@ var Db = (e) => {
|
|
|
10890
10891
|
if (!(e.defaultPrevented || e.button !== 0 || o.hasModifier(e))) {
|
|
10891
10892
|
if (r === "__scratch__") return !1;
|
|
10892
10893
|
f({ cellId: r }), e.stopPropagation(), e.preventDefault(), requestAnimationFrame(() => {
|
|
10893
|
-
Ab(r, a, l) && (
|
|
10894
|
+
Ab(r, a, l) && (Or(r, { preventScroll: !0 }), s?.());
|
|
10894
10895
|
});
|
|
10895
10896
|
}
|
|
10896
10897
|
}, t[4] = r, t[5] = s, t[6] = f, t[7] = l, t[8] = a, t[9] = g) : g = t[9];
|
|
10897
|
-
let _ = p(
|
|
10898
|
+
let _ = p(Lr(u, d)), v;
|
|
10898
10899
|
return t[10] !== m || t[11] !== h || t[12] !== g || t[13] !== _ ? (v = /* @__PURE__ */ (0, q.jsx)("a", {
|
|
10899
10900
|
href: m,
|
|
10900
10901
|
className: h,
|
|
@@ -10923,7 +10924,7 @@ var Db = (e) => {
|
|
|
10923
10924
|
}), t[6] = n, t[7] = a, t[8] = o, t[9] = s) : s = t[9], s;
|
|
10924
10925
|
};
|
|
10925
10926
|
function Ab(e, t, n) {
|
|
10926
|
-
let i =
|
|
10927
|
+
let i = fr.create(e), a = n ? document.getElementById(i) : yr(e), o = a?.classList.contains("has-error");
|
|
10927
10928
|
return a === null ? (r.error(`Cell ${i} not found on page.`), !1) : ((t === "destructive" || o && t === void 0) && (a.classList.add("error-outline"), setTimeout(() => {
|
|
10928
10929
|
a.classList.remove("error-outline");
|
|
10929
10930
|
}, 2e3)), (t === "focus" || !o && t === void 0) && (a.classList.add("focus-outline"), setTimeout(() => {
|
|
@@ -10935,19 +10936,19 @@ function jb(e) {
|
|
|
10935
10936
|
}
|
|
10936
10937
|
//#endregion
|
|
10937
10938
|
//#region src/core/codemirror/cells/debugger-state.ts
|
|
10938
|
-
var Mb =
|
|
10939
|
-
|
|
10940
|
-
var Nb =
|
|
10939
|
+
var Mb = ai(null);
|
|
10940
|
+
ai(null);
|
|
10941
|
+
var Nb = ai(/* @__PURE__ */ new Map());
|
|
10941
10942
|
function Pb(e) {
|
|
10942
10943
|
let t = {};
|
|
10943
10944
|
for (let [n, r] of e) r.size > 0 && (t[n] = [...r].toSorted((e, t) => e - t));
|
|
10944
|
-
|
|
10945
|
+
gr().sendSetBreakpoints({ breakpoints: t }).catch((e) => {
|
|
10945
10946
|
r.debug("Failed to sync breakpoints to kernel", { error: e });
|
|
10946
10947
|
});
|
|
10947
10948
|
}
|
|
10948
10949
|
function Fb(e, t) {
|
|
10949
|
-
let n =
|
|
10950
|
-
i.has(t) ? i.delete(t) : i.add(t), i.size > 0 ? r.set(e, i) : r.delete(e),
|
|
10950
|
+
let n = Qr.get(Nb), r = new Map(n), i = new Set(r.get(e) ?? []);
|
|
10951
|
+
i.has(t) ? i.delete(t) : i.add(t), i.size > 0 ? r.set(e, i) : r.delete(e), Qr.set(Nb, r), Pb(r);
|
|
10951
10952
|
}
|
|
10952
10953
|
//#endregion
|
|
10953
10954
|
//#region ../node_modules/.pnpm/cmdk@1.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/cmdk/dist/chunk-NZJY6EH4.mjs
|
|
@@ -10977,7 +10978,7 @@ var Zb = "[cmdk-group=\"\"]", Qb = "[cmdk-group-items=\"\"]", $b = "[cmdk-group-
|
|
|
10977
10978
|
items: /* @__PURE__ */ new Map(),
|
|
10978
10979
|
groups: /* @__PURE__ */ new Set()
|
|
10979
10980
|
}
|
|
10980
|
-
})), r = wx(() => /* @__PURE__ */ new Set()), i = wx(() => /* @__PURE__ */ new Map()), a = wx(() => /* @__PURE__ */ new Map()), o = wx(() => /* @__PURE__ */ new Set()), s = Sx(e), { label: c, children: l, value: u, onValueChange: d, filter: f, shouldFilter: p, loop: m, disablePointerSelection: h = !1, vimBindings: g = !0, ..._ } = e, v =
|
|
10981
|
+
})), r = wx(() => /* @__PURE__ */ new Set()), i = wx(() => /* @__PURE__ */ new Map()), a = wx(() => /* @__PURE__ */ new Map()), o = wx(() => /* @__PURE__ */ new Set()), s = Sx(e), { label: c, children: l, value: u, onValueChange: d, filter: f, shouldFilter: p, loop: m, disablePointerSelection: h = !1, vimBindings: g = !0, ..._ } = e, v = Si(), y = Si(), b = Si(), x = K.useRef(null), S = Dx();
|
|
10981
10982
|
Cx(() => {
|
|
10982
10983
|
if (u !== void 0) {
|
|
10983
10984
|
let e = u.trim();
|
|
@@ -11115,10 +11116,10 @@ var Zb = "[cmdk-group=\"\"]", Qb = "[cmdk-group-items=\"\"]", $b = "[cmdk-group-
|
|
|
11115
11116
|
}
|
|
11116
11117
|
let F = () => M(j().length - 1), I = (e) => {
|
|
11117
11118
|
e.preventDefault(), e.metaKey ? F() : e.altKey ? P(1) : N(1);
|
|
11118
|
-
},
|
|
11119
|
+
}, ee = (e) => {
|
|
11119
11120
|
e.preventDefault(), e.metaKey ? M(0) : e.altKey ? P(-1) : N(-1);
|
|
11120
11121
|
};
|
|
11121
|
-
return K.createElement(
|
|
11122
|
+
return K.createElement(ci.div, {
|
|
11122
11123
|
ref: t,
|
|
11123
11124
|
tabIndex: -1,
|
|
11124
11125
|
..._,
|
|
@@ -11137,10 +11138,10 @@ var Zb = "[cmdk-group=\"\"]", Qb = "[cmdk-group-items=\"\"]", $b = "[cmdk-group-
|
|
|
11137
11138
|
break;
|
|
11138
11139
|
case "p":
|
|
11139
11140
|
case "k":
|
|
11140
|
-
g && e.ctrlKey &&
|
|
11141
|
+
g && e.ctrlKey && ee(e);
|
|
11141
11142
|
break;
|
|
11142
11143
|
case "ArrowUp":
|
|
11143
|
-
|
|
11144
|
+
ee(e);
|
|
11144
11145
|
break;
|
|
11145
11146
|
case "Home":
|
|
11146
11147
|
e.preventDefault(), M(0);
|
|
@@ -11165,7 +11166,7 @@ var Zb = "[cmdk-group=\"\"]", Qb = "[cmdk-group-items=\"\"]", $b = "[cmdk-group-
|
|
|
11165
11166
|
style: Ax
|
|
11166
11167
|
}, c), kx(e, (e) => K.createElement(sx.Provider, { value: C }, K.createElement(ax.Provider, { value: w }, e))));
|
|
11167
11168
|
}), dx = K.forwardRef((e, t) => {
|
|
11168
|
-
let r =
|
|
11169
|
+
let r = Si(), i = K.useRef(null), a = K.useContext(lx), o = ox(), s = Sx(e), c = s.current?.forceMount ?? a?.forceMount;
|
|
11169
11170
|
Cx(() => {
|
|
11170
11171
|
if (!c) return o.item(r, a?.id);
|
|
11171
11172
|
}, [c]);
|
|
@@ -11191,7 +11192,7 @@ var Zb = "[cmdk-group=\"\"]", Qb = "[cmdk-group-items=\"\"]", $b = "[cmdk-group-
|
|
|
11191
11192
|
}
|
|
11192
11193
|
if (!f) return null;
|
|
11193
11194
|
let { disabled: h, value: g, onSelect: _, forceMount: v, keywords: y, ...b } = e;
|
|
11194
|
-
return K.createElement(
|
|
11195
|
+
return K.createElement(ci.div, {
|
|
11195
11196
|
ref: n(i, t),
|
|
11196
11197
|
...b,
|
|
11197
11198
|
id: r,
|
|
@@ -11205,7 +11206,7 @@ var Zb = "[cmdk-group=\"\"]", Qb = "[cmdk-group-items=\"\"]", $b = "[cmdk-group-
|
|
|
11205
11206
|
onClick: h ? void 0 : p
|
|
11206
11207
|
}, e.children);
|
|
11207
11208
|
}), fx = K.forwardRef((e, t) => {
|
|
11208
|
-
let { heading: r, children: i, forceMount: a, ...o } = e, s =
|
|
11209
|
+
let { heading: r, children: i, forceMount: a, ...o } = e, s = Si(), c = K.useRef(null), l = K.useRef(null), u = Si(), d = ox(), f = Tx((e) => a || d.filter() === !1 ? !0 : !e.search || e.filtered.groups.has(s));
|
|
11209
11210
|
Cx(() => d.group(s), []), Ex(s, c, [
|
|
11210
11211
|
e.value,
|
|
11211
11212
|
e.heading,
|
|
@@ -11215,7 +11216,7 @@ var Zb = "[cmdk-group=\"\"]", Qb = "[cmdk-group-items=\"\"]", $b = "[cmdk-group-
|
|
|
11215
11216
|
id: s,
|
|
11216
11217
|
forceMount: a
|
|
11217
11218
|
}), [a]);
|
|
11218
|
-
return K.createElement(
|
|
11219
|
+
return K.createElement(ci.div, {
|
|
11219
11220
|
ref: n(c, t),
|
|
11220
11221
|
...o,
|
|
11221
11222
|
"cmdk-group": "",
|
|
@@ -11233,7 +11234,7 @@ var Zb = "[cmdk-group=\"\"]", Qb = "[cmdk-group-items=\"\"]", $b = "[cmdk-group-
|
|
|
11233
11234
|
}, K.createElement(lx.Provider, { value: p }, e))));
|
|
11234
11235
|
}), px = K.forwardRef((e, t) => {
|
|
11235
11236
|
let { alwaysRender: r, ...i } = e, a = K.useRef(null), o = Tx((e) => !e.search);
|
|
11236
|
-
return !r && !o ? null : K.createElement(
|
|
11237
|
+
return !r && !o ? null : K.createElement(ci.div, {
|
|
11237
11238
|
ref: n(a, t),
|
|
11238
11239
|
...i,
|
|
11239
11240
|
"cmdk-separator": "",
|
|
@@ -11243,7 +11244,7 @@ var Zb = "[cmdk-group=\"\"]", Qb = "[cmdk-group-items=\"\"]", $b = "[cmdk-group-
|
|
|
11243
11244
|
let { onValueChange: n, ...r } = e, i = e.value != null, a = cx(), o = Tx((e) => e.search), s = Tx((e) => e.selectedItemId), c = ox();
|
|
11244
11245
|
return K.useEffect(() => {
|
|
11245
11246
|
e.value != null && a.setState("search", e.value);
|
|
11246
|
-
}, [e.value]), K.createElement(
|
|
11247
|
+
}, [e.value]), K.createElement(ci.input, {
|
|
11247
11248
|
ref: t,
|
|
11248
11249
|
...r,
|
|
11249
11250
|
"cmdk-input": "",
|
|
@@ -11277,7 +11278,7 @@ var Zb = "[cmdk-group=\"\"]", Qb = "[cmdk-group-items=\"\"]", $b = "[cmdk-group-
|
|
|
11277
11278
|
cancelAnimationFrame(n), r.unobserve(e);
|
|
11278
11279
|
};
|
|
11279
11280
|
}
|
|
11280
|
-
}, []), K.createElement(
|
|
11281
|
+
}, []), K.createElement(ci.div, {
|
|
11281
11282
|
ref: n(o, t),
|
|
11282
11283
|
...a,
|
|
11283
11284
|
"cmdk-list": "",
|
|
@@ -11292,13 +11293,13 @@ var Zb = "[cmdk-group=\"\"]", Qb = "[cmdk-group-items=\"\"]", $b = "[cmdk-group-
|
|
|
11292
11293
|
}, e)));
|
|
11293
11294
|
}), gx = K.forwardRef((e, t) => {
|
|
11294
11295
|
let { open: n, onOpenChange: r, overlayClassName: i, contentClassName: a, container: o, ...s } = e;
|
|
11295
|
-
return K.createElement(
|
|
11296
|
+
return K.createElement(pi, {
|
|
11296
11297
|
open: n,
|
|
11297
11298
|
onOpenChange: r
|
|
11298
|
-
}, K.createElement(
|
|
11299
|
+
}, K.createElement(xi, { container: o }, K.createElement(Jr, {
|
|
11299
11300
|
"cmdk-overlay": "",
|
|
11300
11301
|
className: i
|
|
11301
|
-
}), K.createElement(
|
|
11302
|
+
}), K.createElement(mi, {
|
|
11302
11303
|
"aria-label": e.label,
|
|
11303
11304
|
"cmdk-dialog": "",
|
|
11304
11305
|
className: a
|
|
@@ -11306,14 +11307,14 @@ var Zb = "[cmdk-group=\"\"]", Qb = "[cmdk-group-items=\"\"]", $b = "[cmdk-group-
|
|
|
11306
11307
|
ref: t,
|
|
11307
11308
|
...s
|
|
11308
11309
|
}))));
|
|
11309
|
-
}), _x = K.forwardRef((e, t) => Tx((e) => e.filtered.count === 0) ? K.createElement(
|
|
11310
|
+
}), _x = K.forwardRef((e, t) => Tx((e) => e.filtered.count === 0) ? K.createElement(ci.div, {
|
|
11310
11311
|
ref: t,
|
|
11311
11312
|
...e,
|
|
11312
11313
|
"cmdk-empty": "",
|
|
11313
11314
|
role: "presentation"
|
|
11314
11315
|
}) : null), vx = K.forwardRef((e, t) => {
|
|
11315
11316
|
let { progress: n, children: r, label: i = "Loading...", ...a } = e;
|
|
11316
|
-
return K.createElement(
|
|
11317
|
+
return K.createElement(ci.div, {
|
|
11317
11318
|
ref: t,
|
|
11318
11319
|
...a,
|
|
11319
11320
|
"cmdk-loading": "",
|
|
@@ -11512,7 +11513,7 @@ var Bx = K.forwardRef((e, t) => {
|
|
|
11512
11513
|
inset: a
|
|
11513
11514
|
}).replace(Ue, "data-[disabled=false]:pointer-events-all data-[disabled=false]:opacity-100 data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50"), r), n[5] = r, n[6] = a, n[7] = s, n[8] = c) : c = n[8];
|
|
11514
11515
|
let l;
|
|
11515
|
-
n[9] === o.value ? l = n[10] : (l =
|
|
11516
|
+
n[9] === o.value ? l = n[10] : (l = Hr.htmlEscape(o.value), n[9] = o.value, n[10] = l);
|
|
11516
11517
|
let u;
|
|
11517
11518
|
return n[11] !== o || n[12] !== t || n[13] !== c || n[14] !== l ? (u = /* @__PURE__ */ (0, q.jsx)(yx.Item, {
|
|
11518
11519
|
ref: t,
|
|
@@ -11528,28 +11529,28 @@ var Vx = (0, K.createContext)({
|
|
|
11528
11529
|
isSelected: () => !1,
|
|
11529
11530
|
onSelect: t.NOOP
|
|
11530
11531
|
}), Hx = (e) => {
|
|
11531
|
-
let t = (0, J.c)(106), n, r, a, o, s, c, l, u, d, f, p, m, h, g, _, v,
|
|
11532
|
-
t[0] === e ? (n = t[1], r = t[2], a = t[3], o = t[4], s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10], p = t[11], m = t[12], h = t[13], g = t[14], _ = t[15], v = t[16],
|
|
11533
|
-
let O =
|
|
11532
|
+
let t = (0, J.c)(106), n, r, a, o, s, c, l, u, d, f, p, m, h, g, _, v, b, x, S, C, w, T, E, D;
|
|
11533
|
+
t[0] === e ? (n = t[1], r = t[2], a = t[3], o = t[4], s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10], p = t[11], m = t[12], h = t[13], g = t[14], _ = t[15], v = t[16], b = t[17], x = t[18], S = t[19], C = t[20], w = t[21], T = t[22], E = t[23], D = t[24]) : ({children: n, displayValue: c, className: a, placeholder: g, value: D, defaultValue: s, onValueChange: m, multiple: x, shouldFilter: S, filterFn: l, open: h, defaultOpen: o, onOpenChange: f, inputPlaceholder: C, search: b, onSearchChange: p, emptyState: w, chips: T, chipsClassName: r, keepPopoverOpenOnSelect: d, id: u, disabled: E, renderValue: _, ...v} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = a, t[4] = o, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = d, t[10] = f, t[11] = p, t[12] = m, t[13] = h, t[14] = g, t[15] = _, t[16] = v, t[17] = b, t[18] = x, t[19] = S, t[20] = C, t[21] = w, t[22] = T, t[23] = E, t[24] = D);
|
|
11534
|
+
let O = x !== void 0 && x, k = S === void 0 || S, A = C === void 0 ? "Search..." : C, j = w === void 0 ? "Nothing found." : w, M = T !== void 0 && T, N = E !== void 0 && E, P = o ?? !1, F;
|
|
11534
11535
|
t[25] !== f || t[26] !== h || t[27] !== P ? (F = {
|
|
11535
11536
|
prop: h,
|
|
11536
11537
|
defaultProp: P,
|
|
11537
11538
|
onChange: f
|
|
11538
11539
|
}, t[25] = f, t[26] = h, t[27] = P, t[28] = F) : F = t[28];
|
|
11539
|
-
let [
|
|
11540
|
-
t[29] === m ?
|
|
11540
|
+
let [ee, L] = Ai(F), R = ee !== void 0 && ee, z;
|
|
11541
|
+
t[29] === m ? z = t[30] : (z = (e) => {
|
|
11541
11542
|
m?.(e);
|
|
11542
|
-
}, t[29] = m, t[30] =
|
|
11543
|
-
let
|
|
11544
|
-
t[31] !== s || t[32] !==
|
|
11543
|
+
}, t[29] = m, t[30] = z);
|
|
11544
|
+
let B;
|
|
11545
|
+
t[31] !== s || t[32] !== z || t[33] !== D ? (B = {
|
|
11545
11546
|
prop: D,
|
|
11546
11547
|
defaultProp: s,
|
|
11547
|
-
onChange:
|
|
11548
|
-
}, t[31] = s, t[32] =
|
|
11549
|
-
let [V,
|
|
11550
|
-
t[35] === V ?
|
|
11551
|
-
let
|
|
11552
|
-
t[37] !== d || t[38] !== O || t[39] !==
|
|
11548
|
+
onChange: z
|
|
11549
|
+
}, t[31] = s, t[32] = z, t[33] = D, t[34] = B) : B = t[34];
|
|
11550
|
+
let [V, ne] = Ai(B), re;
|
|
11551
|
+
t[35] === V ? re = t[36] : (re = (e) => Array.isArray(V) ? V.includes(e) : V === e, t[35] = V, t[36] = re);
|
|
11552
|
+
let ie = re, ae;
|
|
11553
|
+
t[37] !== d || t[38] !== O || t[39] !== L || t[40] !== ne || t[41] !== V ? (ae = (e) => {
|
|
11553
11554
|
let t = e;
|
|
11554
11555
|
if (O) {
|
|
11555
11556
|
if (Array.isArray(V)) {
|
|
@@ -11559,66 +11560,66 @@ var Vx = (0, K.createContext)({
|
|
|
11559
11560
|
} else t = [...V, t];
|
|
11560
11561
|
} else t = [t];
|
|
11561
11562
|
} else V === e && (t = null);
|
|
11562
|
-
|
|
11563
|
-
}, t[37] = d, t[38] = O, t[39] =
|
|
11564
|
-
let
|
|
11565
|
-
t[43] !== M || t[44] !== c || t[45] !== O || t[46] !== g || t[47] !== V ? (
|
|
11566
|
-
let
|
|
11567
|
-
t[49] !==
|
|
11568
|
-
isSelected:
|
|
11569
|
-
onSelect:
|
|
11570
|
-
}, t[49] =
|
|
11571
|
-
let
|
|
11572
|
-
t[52] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
11573
|
-
let
|
|
11574
|
-
t[53] !== N || t[54] !==
|
|
11575
|
-
N && e ||
|
|
11576
|
-
}, t[53] = N, t[54] =
|
|
11577
|
-
let
|
|
11578
|
-
t[56] !== a || t[57] !==
|
|
11563
|
+
ne(t), (d ?? O) || L(!1);
|
|
11564
|
+
}, t[37] = d, t[38] = O, t[39] = L, t[40] = ne, t[41] = V, t[42] = ae) : ae = t[42];
|
|
11565
|
+
let oe = ae, se;
|
|
11566
|
+
t[43] !== M || t[44] !== c || t[45] !== O || t[46] !== g || t[47] !== V ? (se = () => O && M && g ? g : V == null ? g ?? "--" : Array.isArray(V) ? V.length === 0 ? g ?? "--" : V.length === 1 && c !== void 0 ? c(V[0]) : `${V.length} selected` : c === void 0 ? g ?? "--" : c(V), t[43] = M, t[44] = c, t[45] = O, t[46] = g, t[47] = V, t[48] = se) : se = t[48];
|
|
11567
|
+
let ce = se, le;
|
|
11568
|
+
t[49] !== oe || t[50] !== ie ? (le = {
|
|
11569
|
+
isSelected: ie,
|
|
11570
|
+
onSelect: oe
|
|
11571
|
+
}, t[49] = oe, t[50] = ie, t[51] = le) : le = t[51];
|
|
11572
|
+
let ue = le, de;
|
|
11573
|
+
t[52] === Symbol.for("react.memo_cache_sentinel") ? (de = i("relative"), t[52] = de) : de = t[52];
|
|
11574
|
+
let fe;
|
|
11575
|
+
t[53] !== N || t[54] !== L ? (fe = (e) => {
|
|
11576
|
+
N && e || L(e);
|
|
11577
|
+
}, t[53] = N, t[54] = L, t[55] = fe) : fe = t[55];
|
|
11578
|
+
let pe = N && "cursor-not-allowed opacity-50", me;
|
|
11579
|
+
t[56] !== a || t[57] !== pe ? (me = i("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-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-primary focus-visible:shadow-md-solid", pe, a), t[56] = a, t[57] = pe, t[58] = me) : me = t[58];
|
|
11580
|
+
let he;
|
|
11581
|
+
t[59] !== _ || t[60] !== ce || t[61] !== V ? (he = _ ? _(V ?? null) : ce(), t[59] = _, t[60] = ce, t[61] = V, t[62] = he) : he = t[62];
|
|
11579
11582
|
let ge;
|
|
11580
|
-
t[
|
|
11581
|
-
let _e;
|
|
11582
|
-
t[63] === ge ? _e = t[64] : (_e = /* @__PURE__ */ (0, q.jsx)("span", {
|
|
11583
|
+
t[63] === he ? ge = t[64] : (ge = /* @__PURE__ */ (0, q.jsx)("span", {
|
|
11583
11584
|
className: "truncate flex-1 min-w-0",
|
|
11584
|
-
children:
|
|
11585
|
-
}), t[63] =
|
|
11585
|
+
children: he
|
|
11586
|
+
}), t[63] = he, t[64] = ge);
|
|
11587
|
+
let _e;
|
|
11588
|
+
t[65] === Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ (0, q.jsx)(Ie, { className: "ml-3 w-4 h-4 opacity-50 shrink-0" }), t[65] = _e) : _e = t[65];
|
|
11586
11589
|
let ve;
|
|
11587
|
-
t[
|
|
11588
|
-
let ye;
|
|
11589
|
-
t[66] !== N || t[67] !== u || t[68] !== B || t[69] !== he || t[70] !== _e ? (ye = /* @__PURE__ */ (0, q.jsx)(z, {
|
|
11590
|
+
t[66] !== N || t[67] !== u || t[68] !== R || t[69] !== me || t[70] !== ge ? (ve = /* @__PURE__ */ (0, q.jsx)(te, {
|
|
11590
11591
|
asChild: !0,
|
|
11591
11592
|
children: /* @__PURE__ */ (0, q.jsxs)("button", {
|
|
11592
11593
|
id: u,
|
|
11593
11594
|
type: "button",
|
|
11594
|
-
className:
|
|
11595
|
-
"aria-expanded":
|
|
11595
|
+
className: me,
|
|
11596
|
+
"aria-expanded": R,
|
|
11596
11597
|
"aria-disabled": N,
|
|
11597
|
-
children: [
|
|
11598
|
+
children: [ge, _e]
|
|
11598
11599
|
})
|
|
11599
|
-
}), t[66] = N, t[67] = u, t[68] =
|
|
11600
|
+
}), t[66] = N, t[67] = u, t[68] = R, t[69] = me, t[70] = ge, t[71] = ve) : ve = t[71];
|
|
11600
11601
|
let be;
|
|
11601
|
-
t[72] !== A || t[73] !== p || t[74] !==
|
|
11602
|
+
t[72] !== A || t[73] !== p || t[74] !== b ? (be = /* @__PURE__ */ (0, q.jsx)(Fx, {
|
|
11602
11603
|
placeholder: A,
|
|
11603
11604
|
rootClassName: "px-1 h-8",
|
|
11604
11605
|
autoFocus: !0,
|
|
11605
|
-
value:
|
|
11606
|
+
value: b,
|
|
11606
11607
|
onValueChange: p
|
|
11607
|
-
}), t[72] = A, t[73] = p, t[74] =
|
|
11608
|
+
}), t[72] = A, t[73] = p, t[74] = b, t[75] = be) : be = t[75];
|
|
11608
11609
|
let xe;
|
|
11609
11610
|
t[76] === j ? xe = t[77] : (xe = /* @__PURE__ */ (0, q.jsx)(Lx, { children: j }), t[76] = j, t[77] = xe);
|
|
11610
11611
|
let H;
|
|
11611
|
-
t[78] !== n || t[79] !==
|
|
11612
|
-
value:
|
|
11612
|
+
t[78] !== n || t[79] !== ue ? (H = /* @__PURE__ */ (0, q.jsx)(Vx, {
|
|
11613
|
+
value: ue,
|
|
11613
11614
|
children: n
|
|
11614
|
-
}), t[78] = n, t[79] =
|
|
11615
|
+
}), t[78] = n, t[79] = ue, t[80] = H) : H = t[80];
|
|
11615
11616
|
let Se;
|
|
11616
11617
|
t[81] !== xe || t[82] !== H ? (Se = /* @__PURE__ */ (0, q.jsxs)(Ix, {
|
|
11617
11618
|
className: "max-h-60 py-.5",
|
|
11618
11619
|
children: [xe, H]
|
|
11619
11620
|
}), t[81] = xe, t[82] = H, t[83] = Se) : Se = t[83];
|
|
11620
11621
|
let Ce;
|
|
11621
|
-
t[84] !== l || t[85] !== k || t[86] !== be || t[87] !== Se ? (Ce = /* @__PURE__ */ (0, q.jsx)(
|
|
11622
|
+
t[84] !== l || t[85] !== k || t[86] !== be || t[87] !== Se ? (Ce = /* @__PURE__ */ (0, q.jsx)(y, {
|
|
11622
11623
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
11623
11624
|
align: "start",
|
|
11624
11625
|
children: /* @__PURE__ */ (0, q.jsxs)(Px, {
|
|
@@ -11628,27 +11629,27 @@ var Vx = (0, K.createContext)({
|
|
|
11628
11629
|
})
|
|
11629
11630
|
}), t[84] = l, t[85] = k, t[86] = be, t[87] = Se, t[88] = Ce) : Ce = t[88];
|
|
11630
11631
|
let we;
|
|
11631
|
-
t[89] !==
|
|
11632
|
-
open:
|
|
11633
|
-
onOpenChange:
|
|
11634
|
-
children: [
|
|
11635
|
-
}), t[89] =
|
|
11632
|
+
t[89] !== R || t[90] !== fe || t[91] !== ve || t[92] !== Ce ? (we = /* @__PURE__ */ (0, q.jsxs)(I, {
|
|
11633
|
+
open: R,
|
|
11634
|
+
onOpenChange: fe,
|
|
11635
|
+
children: [ve, Ce]
|
|
11636
|
+
}), t[89] = R, t[90] = fe, t[91] = ve, t[92] = Ce, t[93] = we) : we = t[93];
|
|
11636
11637
|
let U;
|
|
11637
|
-
t[94] !== M || t[95] !== r || t[96] !== N || t[97] !== c || t[98] !==
|
|
11638
|
+
t[94] !== M || t[95] !== r || t[96] !== N || t[97] !== c || t[98] !== oe || t[99] !== O || t[100] !== V ? (U = O && M && /* @__PURE__ */ (0, q.jsx)("div", {
|
|
11638
11639
|
className: i("flex flex-col gap-1 items-start", r),
|
|
11639
11640
|
children: Array.isArray(V) && V.map((e) => e == null ? null : /* @__PURE__ */ (0, q.jsxs)(Te, {
|
|
11640
11641
|
variant: "secondary",
|
|
11641
|
-
children: [c?.(e) ?? String(e), /* @__PURE__ */ (0, q.jsx)(
|
|
11642
|
+
children: [c?.(e) ?? String(e), /* @__PURE__ */ (0, q.jsx)(ye, {
|
|
11642
11643
|
onClick: () => {
|
|
11643
|
-
N ||
|
|
11644
|
+
N || oe(e);
|
|
11644
11645
|
},
|
|
11645
11646
|
className: i("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", N && "pointer-events-none")
|
|
11646
11647
|
})]
|
|
11647
11648
|
}, String(e)))
|
|
11648
|
-
}), t[94] = M, t[95] = r, t[96] = N, t[97] = c, t[98] =
|
|
11649
|
+
}), t[94] = M, t[95] = r, t[96] = N, t[97] = c, t[98] = oe, t[99] = O, t[100] = V, t[101] = U) : U = t[101];
|
|
11649
11650
|
let Ee;
|
|
11650
11651
|
return t[102] !== v || t[103] !== we || t[104] !== U ? (Ee = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
11651
|
-
className:
|
|
11652
|
+
className: de,
|
|
11652
11653
|
...v,
|
|
11653
11654
|
children: [we, U]
|
|
11654
11655
|
}), t[102] = v, t[103] = we, t[104] = U, t[105] = Ee) : Ee = t[105], Ee;
|
|
@@ -13235,7 +13236,7 @@ function Kw(e) {
|
|
|
13235
13236
|
}
|
|
13236
13237
|
}
|
|
13237
13238
|
function qw(e, t) {
|
|
13238
|
-
let n =
|
|
13239
|
+
let n = Tr(e);
|
|
13239
13240
|
if (!Array.isArray(n)) return e;
|
|
13240
13241
|
let r = n.map((e) => eT(e, !0)).join(", ");
|
|
13241
13242
|
switch (t) {
|
|
@@ -13329,7 +13330,7 @@ function tT(e) {
|
|
|
13329
13330
|
function nT(e, { limits: t, pageSize: n }) {
|
|
13330
13331
|
let r = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new Map();
|
|
13331
13332
|
function a(e, o) {
|
|
13332
|
-
if (!Array.isArray(e) && !
|
|
13333
|
+
if (!Array.isArray(e) && !Ji(e)) return e;
|
|
13333
13334
|
let s = JSON.stringify(o), c = t[s] ?? n, l = Array.isArray(e) ? Array.from({ length: Math.min(e.length, c) }, (e, t) => String(t)) : Object.keys(e).slice(0, c), u = Array.isArray(e) ? e.length : Object.keys(e).length, d = Array.isArray(e) ? [] : Object.create(null);
|
|
13334
13335
|
r.set(d, e);
|
|
13335
13336
|
for (let t of l) Object.defineProperty(d, t, {
|
|
@@ -13495,7 +13496,7 @@ dT.displayName = hs.displayName;
|
|
|
13495
13496
|
//#region src/components/ui/kbd.tsx
|
|
13496
13497
|
var fT = (e) => {
|
|
13497
13498
|
let t = (0, J.c)(5), n;
|
|
13498
|
-
t[0] === e.className ? n = t[1] : (n =
|
|
13499
|
+
t[0] === e.className ? n = t[1] : (n = Gr(e.className, "rounded-md bg-muted/40 px-2 text-[0.75rem] font-prose center border border-foreground/20 text-muted-foreground block whitespace-nowrap"), t[0] = e.className, t[1] = n);
|
|
13499
13500
|
let r;
|
|
13500
13501
|
return t[2] !== e.children || t[3] !== n ? (r = /* @__PURE__ */ (0, q.jsx)("kbd", {
|
|
13501
13502
|
className: n,
|
|
@@ -13504,7 +13505,7 @@ var fT = (e) => {
|
|
|
13504
13505
|
}, pT = "Fix this notebook error.";
|
|
13505
13506
|
function mT(e, t) {
|
|
13506
13507
|
let n, r;
|
|
13507
|
-
return "errors" in t ? (n = t.errors.map(
|
|
13508
|
+
return "errors" in t ? (n = t.errors.map(Pr).join("\n"), r = t.errors.flatMap((e) => "traceback" in e && e.traceback ? [Sr(jr(e.traceback))] : []).join("\n\n")) : (r = t.tracebackFormat === "html" ? Sr(jr(t.traceback)) : t.traceback, n = r.split("\n").findLast((e) => e.length > 0) ?? ""), {
|
|
13508
13509
|
type: "cell-output",
|
|
13509
13510
|
cell_id: e,
|
|
13510
13511
|
output: {
|
|
@@ -13534,7 +13535,7 @@ function yT(e) {
|
|
|
13534
13535
|
function bT(e) {
|
|
13535
13536
|
return _T.test(e);
|
|
13536
13537
|
}
|
|
13537
|
-
|
|
13538
|
+
ai(null);
|
|
13538
13539
|
var xT = "packages-install-input", ST = () => {
|
|
13539
13540
|
requestAnimationFrame(() => {
|
|
13540
13541
|
let e = document.getElementById(xT);
|
|
@@ -13542,13 +13543,13 @@ var xT = "packages-install-input", ST = () => {
|
|
|
13542
13543
|
});
|
|
13543
13544
|
}, CT = (e) => {
|
|
13544
13545
|
e.openApplication("packages"), ST();
|
|
13545
|
-
}, wT = "marimo:ai:chatState:v5", TT =
|
|
13546
|
-
|
|
13546
|
+
}, wT = "marimo:ai:chatState:v5", TT = ai(null), ET = ai(null);
|
|
13547
|
+
ai(!1), ri("marimo:ai:chatOptions", { webSearch: !1 }, re), ri("marimo:ai:includeOtherCells", !0, re);
|
|
13547
13548
|
function DT(e) {
|
|
13548
13549
|
let t = /* @__PURE__ */ new Map();
|
|
13549
13550
|
for (let [n, r] of e.entries()) {
|
|
13550
13551
|
if (r.messages.length === 0) continue;
|
|
13551
|
-
let e =
|
|
13552
|
+
let e = Qi(r.messages, (e) => e.id);
|
|
13552
13553
|
t.set(n, {
|
|
13553
13554
|
...r,
|
|
13554
13555
|
messages: e
|
|
@@ -13556,7 +13557,7 @@ function DT(e) {
|
|
|
13556
13557
|
}
|
|
13557
13558
|
return t;
|
|
13558
13559
|
}
|
|
13559
|
-
var OT =
|
|
13560
|
+
var OT = ae({
|
|
13560
13561
|
toSerializable: (e) => ({
|
|
13561
13562
|
chats: [...DT(e.chats).entries()],
|
|
13562
13563
|
activeChatId: e.activeChatId
|
|
@@ -13565,7 +13566,7 @@ var OT = ve({
|
|
|
13565
13566
|
chats: new Map(e.chats),
|
|
13566
13567
|
activeChatId: e.activeChatId
|
|
13567
13568
|
})
|
|
13568
|
-
}), kT =
|
|
13569
|
+
}), kT = ri(wT, {
|
|
13569
13570
|
chats: /* @__PURE__ */ new Map(),
|
|
13570
13571
|
activeChatId: null
|
|
13571
13572
|
}, {
|
|
@@ -13584,7 +13585,7 @@ var OT = ve({
|
|
|
13584
13585
|
}
|
|
13585
13586
|
}
|
|
13586
13587
|
});
|
|
13587
|
-
|
|
13588
|
+
ai((e) => {
|
|
13588
13589
|
let t = e(kT);
|
|
13589
13590
|
return t.activeChatId ? t.chats.get(t.activeChatId) : null;
|
|
13590
13591
|
}, (e, t, n) => {
|
|
@@ -13637,7 +13638,7 @@ function NT(e, t) {
|
|
|
13637
13638
|
description: "Make this cell's variables local by wrapping the cell in a function.",
|
|
13638
13639
|
fixType: "manual",
|
|
13639
13640
|
onFix: async (e) => {
|
|
13640
|
-
|
|
13641
|
+
Xi(e.editor, "Editor is null");
|
|
13641
13642
|
let t = jT(e.editor.state.doc.toString());
|
|
13642
13643
|
e.editor.dispatch({ changes: {
|
|
13643
13644
|
from: 0,
|
|
@@ -13664,7 +13665,7 @@ function NT(e, t) {
|
|
|
13664
13665
|
description: "Fix the SQL statement",
|
|
13665
13666
|
fixType: "ai",
|
|
13666
13667
|
onFix: async (t) => {
|
|
13667
|
-
let n =
|
|
13668
|
+
let n = ie(t.cellId, Qr), r = `Fix the SQL statement: ${e.msg}.`;
|
|
13668
13669
|
n && (r += `\nDatabase schema: ${n}`), t.aiFix?.setAiCompletionCell({
|
|
13669
13670
|
cellId: t.cellId,
|
|
13670
13671
|
initialPrompt: r,
|
|
@@ -13701,11 +13702,11 @@ var FT = {
|
|
|
13701
13702
|
os: "os",
|
|
13702
13703
|
re: "re",
|
|
13703
13704
|
sys: "sys"
|
|
13704
|
-
}, IT =
|
|
13705
|
+
}, IT = ri("marimo:acp:sessions:v1", {
|
|
13705
13706
|
sessions: [],
|
|
13706
13707
|
activeTabId: null
|
|
13707
|
-
},
|
|
13708
|
-
|
|
13708
|
+
}, re);
|
|
13709
|
+
ai((e) => {
|
|
13709
13710
|
let t = e(IT);
|
|
13710
13711
|
return t.activeTabId && t.sessions.find((e) => e.tabId === t.activeTabId) || null;
|
|
13711
13712
|
}, (e, t, n) => {
|
|
@@ -13723,11 +13724,11 @@ var LT = (e) => {
|
|
|
13723
13724
|
case "edit": return "edit_model";
|
|
13724
13725
|
}
|
|
13725
13726
|
}, RT = () => {
|
|
13726
|
-
let e = (0, J.c)(10), t =
|
|
13727
|
+
let e = (0, J.c)(10), t = di(ei), { saveUserConfig: n } = Dr(), r;
|
|
13727
13728
|
e[0] !== n || e[1] !== t ? (r = async (e) => {
|
|
13728
13729
|
let r = { ai: e };
|
|
13729
13730
|
await n({ config: r }).then(() => {
|
|
13730
|
-
t((e) =>
|
|
13731
|
+
t((e) => Zr(e, r));
|
|
13731
13732
|
});
|
|
13732
13733
|
}, e[0] = n, e[1] = t, e[2] = r) : r = e[2];
|
|
13733
13734
|
let i = r, a;
|
|
@@ -13744,9 +13745,9 @@ var LT = (e) => {
|
|
|
13744
13745
|
saveModelChange: o,
|
|
13745
13746
|
saveModeChange: c
|
|
13746
13747
|
}, e[7] = c, e[8] = o, e[9] = l) : l = e[9], l;
|
|
13747
|
-
}, zT =
|
|
13748
|
+
}, zT = ri("marimo:chrome:ai-panel-tab", "chat", re);
|
|
13748
13749
|
function BT() {
|
|
13749
|
-
let e = (0, J.c)(3), [t, n] =
|
|
13750
|
+
let e = (0, J.c)(3), [t, n] = ni(zT), r;
|
|
13750
13751
|
return e[0] !== t || e[1] !== n ? (r = {
|
|
13751
13752
|
aiPanelTab: t,
|
|
13752
13753
|
setAiPanelTab: n
|
|
@@ -13756,12 +13757,12 @@ function BT() {
|
|
|
13756
13757
|
//#region src/components/editor/chrome/wrapper/useOpenAiAssistant.ts
|
|
13757
13758
|
var VT = "code_mode";
|
|
13758
13759
|
function HT(e, t) {
|
|
13759
|
-
return e || (
|
|
13760
|
+
return e || (se("external_agents") ? t : "chat");
|
|
13760
13761
|
}
|
|
13761
13762
|
function UT() {
|
|
13762
|
-
let e = (0, J.c)(6), { openApplication: t } =
|
|
13763
|
+
let e = (0, J.c)(6), { openApplication: t } = ue(), { setAiPanelTab: n } = BT(), { saveModeChange: r } = RT(), i = di(ET), a = ti(), o;
|
|
13763
13764
|
return e[0] !== t || e[1] !== r || e[2] !== n || e[3] !== i || e[4] !== a ? (o = async (e) => {
|
|
13764
|
-
let o = HT(e.panel, a.get(zT)), s = a.get(
|
|
13765
|
+
let o = HT(e.panel, a.get(zT)), s = a.get(ki), c = se("external_agents") && a.get(IT).sessions.length > 0;
|
|
13765
13766
|
(o === "agents" ? c : s) ? (e.panel && n(e.panel), o === "chat" && await r(VT).catch(WT), i({
|
|
13766
13767
|
prompt: e.prompt,
|
|
13767
13768
|
submit: e.submit ?? !1
|
|
@@ -13770,16 +13771,16 @@ function UT() {
|
|
|
13770
13771
|
description: o === "agents" ? "Start an agent session or switch to the chat panel." : "Configure an AI provider and chat model to fix with AI.",
|
|
13771
13772
|
variant: "danger"
|
|
13772
13773
|
});
|
|
13773
|
-
}, e[0] = t, e[1] = r, e[2] = n, e[3] = i, e[4] = a, e[5] = o) : o = e[5],
|
|
13774
|
+
}, e[0] = t, e[1] = r, e[2] = n, e[3] = i, e[4] = a, e[5] = o) : o = e[5], Zi(o);
|
|
13774
13775
|
}
|
|
13775
13776
|
function WT() {
|
|
13776
13777
|
return r.error("Failed to save mode change");
|
|
13777
13778
|
}
|
|
13778
13779
|
//#endregion
|
|
13779
13780
|
//#region src/components/editor/errors/fix-mode.ts
|
|
13780
|
-
var GT =
|
|
13781
|
+
var GT = ri("marimo:ai-autofix-mode", "autofix", re);
|
|
13781
13782
|
function KT() {
|
|
13782
|
-
let e = (0, J.c)(3), [t, n] =
|
|
13783
|
+
let e = (0, J.c)(3), [t, n] = ni(GT), r;
|
|
13783
13784
|
return e[0] !== t || e[1] !== n ? (r = {
|
|
13784
13785
|
fixMode: t,
|
|
13785
13786
|
setFixMode: n
|
|
@@ -13793,16 +13794,16 @@ function qT(e, t) {
|
|
|
13793
13794
|
return n ? `My code gives the following error. Please fix it:\n\n${n}` : "Please fix this error.";
|
|
13794
13795
|
}
|
|
13795
13796
|
var JT = (e) => {
|
|
13796
|
-
let t = (0, J.c)(24), { errors: n, cellId: r, className: a } = e, { createCell: o } =
|
|
13797
|
+
let t = (0, J.c)(24), { errors: n, cellId: r, className: a } = e, { createCell: o } = P(), s = li(hi), c;
|
|
13797
13798
|
if (t[0] !== s || t[1] !== n) {
|
|
13798
13799
|
let e;
|
|
13799
13800
|
t[3] === s ? e = t[4] : (e = (e) => NT(e, { aiEnabled: s }), t[3] = s, t[4] = e), c = n.flatMap(e), t[0] = s, t[1] = n, t[2] = c;
|
|
13800
13801
|
} else c = t[2];
|
|
13801
|
-
let l = c, d =
|
|
13802
|
+
let l = c, d = di(TT), f = UT();
|
|
13802
13803
|
if (l.length === 0) return null;
|
|
13803
13804
|
let p = l[0], m;
|
|
13804
13805
|
t[5] !== r || t[6] !== o || t[7] !== p || t[8] !== d ? (m = (e) => {
|
|
13805
|
-
let t =
|
|
13806
|
+
let t = Fr(r);
|
|
13806
13807
|
p.onFix({
|
|
13807
13808
|
addCodeBelow: (e) => {
|
|
13808
13809
|
o({
|
|
@@ -13817,7 +13818,7 @@ var JT = (e) => {
|
|
|
13817
13818
|
setAiCompletionCell: d,
|
|
13818
13819
|
triggerFix: e
|
|
13819
13820
|
}
|
|
13820
|
-
}), t &&
|
|
13821
|
+
}), t && xr(t);
|
|
13821
13822
|
}, t[5] = r, t[6] = o, t[7] = p, t[8] = d, t[9] = m) : m = t[9];
|
|
13822
13823
|
let h = m, g;
|
|
13823
13824
|
t[10] !== r || t[11] !== f ? (g = () => {
|
|
@@ -13839,17 +13840,17 @@ var JT = (e) => {
|
|
|
13839
13840
|
variant: "outline",
|
|
13840
13841
|
className: "font-normal",
|
|
13841
13842
|
onClick: () => h(!1),
|
|
13842
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
13843
|
+
children: [/* @__PURE__ */ (0, q.jsx)(S, { className: "h-3 w-3 mr-2" }), p.title]
|
|
13843
13844
|
})
|
|
13844
13845
|
}), t[15] = p.description, t[16] = p.fixType, t[17] = p.title, t[18] = h, t[19] = _, t[20] = y) : y = t[20];
|
|
13845
|
-
let
|
|
13846
|
-
return t[21] !== v || t[22] !== y ? (
|
|
13846
|
+
let b;
|
|
13847
|
+
return t[21] !== v || t[22] !== y ? (b = /* @__PURE__ */ (0, q.jsx)("div", {
|
|
13847
13848
|
className: v,
|
|
13848
13849
|
children: y
|
|
13849
|
-
}), t[21] = v, t[22] = y, t[23] =
|
|
13850
|
+
}), t[21] = v, t[22] = y, t[23] = b) : b = t[23], b;
|
|
13850
13851
|
}, YT = {
|
|
13851
13852
|
autofix: {
|
|
13852
|
-
Icon:
|
|
13853
|
+
Icon: S,
|
|
13853
13854
|
title: "Inline AI Fix",
|
|
13854
13855
|
description: "Apply AI fixes inline in the cell"
|
|
13855
13856
|
},
|
|
@@ -13859,7 +13860,7 @@ var JT = (e) => {
|
|
|
13859
13860
|
description: "Open the AI sidebar to fix"
|
|
13860
13861
|
},
|
|
13861
13862
|
prompt: {
|
|
13862
|
-
Icon:
|
|
13863
|
+
Icon: N,
|
|
13863
13864
|
title: "Suggest a prompt",
|
|
13864
13865
|
description: "Edit the prompt before applying"
|
|
13865
13866
|
}
|
|
@@ -13994,24 +13995,24 @@ function nE(e) {
|
|
|
13994
13995
|
});
|
|
13995
13996
|
window.setTimeout(n, t);
|
|
13996
13997
|
}
|
|
13997
|
-
|
|
13998
|
-
command:
|
|
13999
|
-
hostEnabled:
|
|
14000
|
-
templates:
|
|
14001
|
-
prompt:
|
|
14002
|
-
notebook:
|
|
14003
|
-
session:
|
|
14004
|
-
token_file:
|
|
14005
|
-
token:
|
|
13998
|
+
Ei({
|
|
13999
|
+
command: Oi(),
|
|
14000
|
+
hostEnabled: fi().default(!1),
|
|
14001
|
+
templates: Ei({
|
|
14002
|
+
prompt: Oi(),
|
|
14003
|
+
notebook: Oi(),
|
|
14004
|
+
session: Oi(),
|
|
14005
|
+
token_file: Oi(),
|
|
14006
|
+
token: Oi()
|
|
14006
14007
|
})
|
|
14007
14008
|
});
|
|
14008
|
-
var rE =
|
|
14009
|
-
let t = e(
|
|
14009
|
+
var rE = ai(void 0), iE = [], aE = ai((e) => {
|
|
14010
|
+
let t = e(Yr);
|
|
14010
14011
|
return t ? e(t.attachmentsAtom) : iE;
|
|
14011
14012
|
});
|
|
14012
14013
|
function oE(e) {
|
|
14013
14014
|
let t = (0, J.c)(2), n;
|
|
14014
|
-
return t[0] === e ? n = t[1] : (n = e === void 0 ? aE :
|
|
14015
|
+
return t[0] === e ? n = t[1] : (n = e === void 0 ? aE : si(aE, (t) => t.filter((t) => t.kind === e), Xr), t[0] = e, t[1] = n), li(n);
|
|
14015
14016
|
}
|
|
14016
14017
|
function sE(e) {
|
|
14017
14018
|
return e.name || "Agent";
|
|
@@ -14042,18 +14043,18 @@ async function uE({ backend: e, notebookId: t, content: n, to: r, setSending: i
|
|
|
14042
14043
|
nE({
|
|
14043
14044
|
variant: "danger",
|
|
14044
14045
|
title: "Could not send error",
|
|
14045
|
-
description:
|
|
14046
|
+
description: Bi(e)
|
|
14046
14047
|
});
|
|
14047
14048
|
} finally {
|
|
14048
14049
|
i(!1);
|
|
14049
14050
|
}
|
|
14050
14051
|
}
|
|
14051
14052
|
function dE(e) {
|
|
14052
|
-
let t = (0, J.c)(34), { getContent: n } = e, r =
|
|
14053
|
+
let t = (0, J.c)(34), { getContent: n } = e, r = li(rE)?.hostEnabled, i = oE("agent"), a = li($r), o = li(oi), [s, c] = (0, K.useState)(!1), l, d, f, p, m, h, g;
|
|
14053
14054
|
if (t[0] !== i || t[1] !== o || t[2] !== n || t[3] !== r || t[4] !== a || t[5] !== s) {
|
|
14054
14055
|
g = Symbol.for("react.early_return_sentinel");
|
|
14055
14056
|
bb0: {
|
|
14056
|
-
let e =
|
|
14057
|
+
let e = Qi(i.flatMap(pE), fE);
|
|
14057
14058
|
if (!r || !a?.operations.includes("notebook.emit") || !o || e.length === 0) {
|
|
14058
14059
|
g = null;
|
|
14059
14060
|
break bb0;
|
|
@@ -14133,15 +14134,15 @@ function pE(e) {
|
|
|
14133
14134
|
//#endregion
|
|
14134
14135
|
//#region src/components/editor/actions/useRestartKernel.tsx
|
|
14135
14136
|
function mE() {
|
|
14136
|
-
let e = (0, J.c)(3), { openConfirm: t } = wb(), { sendRestart: n } =
|
|
14137
|
+
let e = (0, J.c)(3), { openConfirm: t } = wb(), { sendRestart: n } = Dr(), r;
|
|
14137
14138
|
return e[0] !== t || e[1] !== n ? (r = () => {
|
|
14138
14139
|
t({
|
|
14139
14140
|
title: "Restart Kernel",
|
|
14140
14141
|
description: "This will restart the Python kernel. You'll lose all data that's in memory. You will also lose any unsaved changes, so make sure to save your work before restarting.",
|
|
14141
14142
|
variant: "destructive",
|
|
14142
|
-
confirmAction: /* @__PURE__ */ (0, q.jsx)(
|
|
14143
|
+
confirmAction: /* @__PURE__ */ (0, q.jsx)(Ii, {
|
|
14143
14144
|
onClick: async () => {
|
|
14144
|
-
await n(),
|
|
14145
|
+
await n(), ja();
|
|
14145
14146
|
},
|
|
14146
14147
|
"aria-label": "Confirm Restart",
|
|
14147
14148
|
children: "Restart"
|
|
@@ -14153,7 +14154,7 @@ function mE() {
|
|
|
14153
14154
|
//#region src/core/packages/toast-components.tsx
|
|
14154
14155
|
var hE = "Your dependency changes are saved. Restart the kernel to use the updated environment. Restarting clears in-memory variables.", gE = () => {
|
|
14155
14156
|
let e = (0, J.c)(2), t = mE(), n;
|
|
14156
|
-
return e[0] === t ? n = e[1] : (n = /* @__PURE__ */ (0, q.jsx)(
|
|
14157
|
+
return e[0] === t ? n = e[1] : (n = /* @__PURE__ */ (0, q.jsx)(qi, {
|
|
14157
14158
|
altText: "Restart the kernel to use the updated dependencies",
|
|
14158
14159
|
onClick: t,
|
|
14159
14160
|
children: "Restart Kernel"
|
|
@@ -14192,7 +14193,7 @@ var hE = "Your dependency changes are saved. Restart the kernel to use the updat
|
|
|
14192
14193
|
//#endregion
|
|
14193
14194
|
//#region src/core/packages/useInstallPackage.ts
|
|
14194
14195
|
function yE() {
|
|
14195
|
-
let [e, t] = (0, K.useState)(!1), { addPackage: n } =
|
|
14196
|
+
let [e, t] = (0, K.useState)(!1), { addPackage: n } = Dr();
|
|
14196
14197
|
return {
|
|
14197
14198
|
loading: e,
|
|
14198
14199
|
handleInstallPackages: async (e, i) => {
|
|
@@ -14210,7 +14211,7 @@ function yE() {
|
|
|
14210
14211
|
}
|
|
14211
14212
|
//#endregion
|
|
14212
14213
|
//#region src/components/editor/output/console/text-rendering.tsx
|
|
14213
|
-
var bE = new
|
|
14214
|
+
var bE = new pr(), xE = (e) => {
|
|
14214
14215
|
let t = /* @__PURE__ */ RegExp("\x1B\\[[0-9;]*m", "g");
|
|
14215
14216
|
return e.replaceAll(t, "");
|
|
14216
14217
|
}, SE = /(pip\s+install|uv\s+add|uv\s+pip\s+install)\s+/gi;
|
|
@@ -14243,7 +14244,7 @@ function CE(e) {
|
|
|
14243
14244
|
function wE(e, t = "") {
|
|
14244
14245
|
if (!e) return null;
|
|
14245
14246
|
if (!/https?:\/\//.test(e)) return e;
|
|
14246
|
-
let n =
|
|
14247
|
+
let n = _r(e);
|
|
14247
14248
|
return n.length === 1 && n[0].type === "text" ? e : /* @__PURE__ */ (0, q.jsx)(q.Fragment, { children: n.map((e, n) => {
|
|
14248
14249
|
let r = t ? `${t}-${n}` : n;
|
|
14249
14250
|
if (e.type === "url" || e.type === "image") {
|
|
@@ -14273,7 +14274,7 @@ var TE = (e) => {
|
|
|
14273
14274
|
children: r
|
|
14274
14275
|
}), t[3] = r, t[4] = a, t[5] = o) : o = t[5], o;
|
|
14275
14276
|
}, EE = (e) => {
|
|
14276
|
-
if (!(e instanceof
|
|
14277
|
+
if (!(e instanceof B.Text)) return;
|
|
14277
14278
|
let t = xE(e.data);
|
|
14278
14279
|
if (!/(pip\s+install|uv\s+add|uv\s+pip\s+install)/i.test(t)) return;
|
|
14279
14280
|
let n = [], r = /(pip\s+install|uv\s+add|uv\s+pip\s+install)\s+/gi, i;
|
|
@@ -14303,7 +14304,7 @@ var TE = (e) => {
|
|
|
14303
14304
|
}
|
|
14304
14305
|
return /* @__PURE__ */ (0, q.jsx)(q.Fragment, { children: a });
|
|
14305
14306
|
}, DE = (e) => {
|
|
14306
|
-
if (!(e instanceof
|
|
14307
|
+
if (!(e instanceof B.Text)) return;
|
|
14307
14308
|
let t = e.data;
|
|
14308
14309
|
if (!/https?:\/\//.test(t)) return;
|
|
14309
14310
|
let n = wE(t);
|
|
@@ -14314,7 +14315,7 @@ var TE = (e) => {
|
|
|
14314
14315
|
if (e !== void 0) return e;
|
|
14315
14316
|
}
|
|
14316
14317
|
}, kE = (e, t) => {
|
|
14317
|
-
let n = bE.ansi_to_html(e), r =
|
|
14318
|
+
let n = bE.ansi_to_html(e), r = E(n, { replace: (e) => t(e) });
|
|
14318
14319
|
return /* @__PURE__ */ (0, q.jsx)("span", { children: r });
|
|
14319
14320
|
}, AE = (e) => {
|
|
14320
14321
|
let t = (0, J.c)(2), { text: n } = e, r;
|
|
@@ -14374,7 +14375,7 @@ var TE = (e) => {
|
|
|
14374
14375
|
children: a
|
|
14375
14376
|
}), t[7] = e.className, t[8] = a, t[9] = o) : o = t[9], o;
|
|
14376
14377
|
}, NE = (e) => {
|
|
14377
|
-
let t = (0, J.c)(47), { errors: n, cellId: r, code: a, className: o } = e, s =
|
|
14378
|
+
let t = (0, J.c)(47), { errors: n, cellId: r, code: a, className: o } = e, s = ue(), c = li(ji).display.cell_output === "above", l = li(na).mode !== "edit", d = "This cell wasn't run because it has errors", f = "destructive", p = "text-error", m = null;
|
|
14378
14379
|
if (n.some(PE)) d = "Interrupted";
|
|
14379
14380
|
else if (n.some(FE)) d = "An internal error occurred";
|
|
14380
14381
|
else if (n.some(IE)) d = "Ancestor prevented from running", f = "default", p = "text-secondary-foreground";
|
|
@@ -14387,21 +14388,21 @@ var TE = (e) => {
|
|
|
14387
14388
|
let r = e;
|
|
14388
14389
|
r && "exception_type" in r && (d = r.exception_type);
|
|
14389
14390
|
}
|
|
14390
|
-
let h, g, _,
|
|
14391
|
+
let h, g, _, y, b, x, S;
|
|
14391
14392
|
if (t[2] !== f || t[3] !== r || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== c || t[8] !== l || t[9] !== m || t[10] !== p || t[11] !== d) {
|
|
14392
|
-
let e = n.filter(VE), a = n.filter(HE),
|
|
14393
|
+
let e = n.filter(VE), a = n.filter(HE), C = n.filter(UE), w = n.filter(WE), T = n.filter(GE), E = n.filter(KE), D = n.filter(qE), O = n.filter(JE), k = n.filter(YE), A = n.filter(XE), j = n.filter(ZE), M = n.filter(QE), N = n.filter($E), P = n.filter(eD), I;
|
|
14393
14394
|
t[19] === n ? I = t[20] : (I = n.filter(tD), t[19] = n, t[20] = I), g = I;
|
|
14394
|
-
let
|
|
14395
|
-
t[21] === s ?
|
|
14395
|
+
let ee;
|
|
14396
|
+
t[21] === s ? ee = t[22] : (ee = () => {
|
|
14396
14397
|
s.openApplication("scratchpad");
|
|
14397
|
-
}, t[21] = s, t[22] =
|
|
14398
|
-
let
|
|
14398
|
+
}, t[21] = s, t[22] = ee);
|
|
14399
|
+
let L = ee, R = () => {
|
|
14399
14400
|
let t = [];
|
|
14400
|
-
if (j.length > 0 ||
|
|
14401
|
+
if (j.length > 0 || M.length > 0) {
|
|
14401
14402
|
let e = j.some(nD), n = !e && j.some(rD);
|
|
14402
14403
|
t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [
|
|
14403
14404
|
j.map(iD),
|
|
14404
|
-
|
|
14405
|
+
M.map(aD),
|
|
14405
14406
|
e && /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
14406
14407
|
size: "xs",
|
|
14407
14408
|
variant: "outline",
|
|
@@ -14417,12 +14418,12 @@ var TE = (e) => {
|
|
|
14417
14418
|
children: [/* @__PURE__ */ (0, q.jsx)(bo, { className: "h-3.5 w-3.5 mr-1.5" }), /* @__PURE__ */ (0, q.jsx)("span", { children: "Open terminal" })]
|
|
14418
14419
|
}),
|
|
14419
14420
|
r && /* @__PURE__ */ (0, q.jsx)(JT, {
|
|
14420
|
-
errors: [...j, ...
|
|
14421
|
+
errors: [...j, ...M],
|
|
14421
14422
|
cellId: r
|
|
14422
14423
|
})
|
|
14423
14424
|
] }, "syntax-unknown"));
|
|
14424
14425
|
}
|
|
14425
|
-
if (
|
|
14426
|
+
if (P.length > 0 && t.push(/* @__PURE__ */ (0, q.jsx)("div", { children: P.map(sD) }, "diagnostics")), e.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [
|
|
14426
14427
|
/* @__PURE__ */ (0, q.jsx)("p", {
|
|
14427
14428
|
className: "text-muted-foreground font-medium",
|
|
14428
14429
|
children: "The setup cell cannot be run because it has references."
|
|
@@ -14504,16 +14505,16 @@ var TE = (e) => {
|
|
|
14504
14505
|
})
|
|
14505
14506
|
]
|
|
14506
14507
|
})
|
|
14507
|
-
] }, "cycle")),
|
|
14508
|
-
let e =
|
|
14508
|
+
] }, "cycle")), C.length > 0) {
|
|
14509
|
+
let e = C[0].name;
|
|
14509
14510
|
t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [
|
|
14510
14511
|
/* @__PURE__ */ (0, q.jsx)("p", {
|
|
14511
14512
|
className: "text-muted-foreground font-medium",
|
|
14512
14513
|
children: "This cell redefines variables from other cells."
|
|
14513
14514
|
}),
|
|
14514
|
-
|
|
14515
|
+
C.map(dD),
|
|
14515
14516
|
r && /* @__PURE__ */ (0, q.jsx)(JT, {
|
|
14516
|
-
errors:
|
|
14517
|
+
errors: C,
|
|
14517
14518
|
cellId: r
|
|
14518
14519
|
}),
|
|
14519
14520
|
/* @__PURE__ */ (0, q.jsxs)(ME, {
|
|
@@ -14558,17 +14559,17 @@ var TE = (e) => {
|
|
|
14558
14559
|
size: "xs",
|
|
14559
14560
|
variant: "link",
|
|
14560
14561
|
className: "my-2 font-normal mx-0 px-0",
|
|
14561
|
-
onClick:
|
|
14562
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
14562
|
+
onClick: L,
|
|
14563
|
+
children: [/* @__PURE__ */ (0, q.jsx)(v, { className: "h-3" }), /* @__PURE__ */ (0, q.jsx)("span", { children: "Try the scratchpad" })]
|
|
14563
14564
|
}), /* @__PURE__ */ (0, q.jsx)("span", { children: "to experiment without restrictions on variable names." })]
|
|
14564
14565
|
})
|
|
14565
14566
|
})
|
|
14566
14567
|
] }, "multiple-defs"));
|
|
14567
14568
|
}
|
|
14568
|
-
return
|
|
14569
|
-
|
|
14569
|
+
return w.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [
|
|
14570
|
+
w.map(fD),
|
|
14570
14571
|
r && /* @__PURE__ */ (0, q.jsx)(JT, {
|
|
14571
|
-
errors:
|
|
14572
|
+
errors: w,
|
|
14572
14573
|
cellId: r
|
|
14573
14574
|
}),
|
|
14574
14575
|
/* @__PURE__ */ (0, q.jsxs)(ME, {
|
|
@@ -14602,11 +14603,11 @@ var TE = (e) => {
|
|
|
14602
14603
|
})
|
|
14603
14604
|
]
|
|
14604
14605
|
})
|
|
14605
|
-
] }, "import-star")),
|
|
14606
|
-
errors:
|
|
14606
|
+
] }, "import-star")), T.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [T.map(pD), r && /* @__PURE__ */ (0, q.jsx)(JT, {
|
|
14607
|
+
errors: T,
|
|
14607
14608
|
cellId: r
|
|
14608
|
-
})] }, "interruption")),
|
|
14609
|
-
|
|
14609
|
+
})] }, "interruption")), E.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("ul", { children: [
|
|
14610
|
+
E.map((e, t) => {
|
|
14610
14611
|
if (e.exception_type === "NameError" && e.msg.startsWith("name 'mo'")) return /* @__PURE__ */ (0, q.jsx)("li", {
|
|
14611
14612
|
className: "my-2",
|
|
14612
14613
|
children: /* @__PURE__ */ (0, q.jsxs)("div", { children: [/* @__PURE__ */ (0, q.jsx)("p", {
|
|
@@ -14676,29 +14677,29 @@ var TE = (e) => {
|
|
|
14676
14677
|
] })
|
|
14677
14678
|
}, `exception-${t}`);
|
|
14678
14679
|
}),
|
|
14679
|
-
|
|
14680
|
+
E.some(mD) && /* @__PURE__ */ (0, q.jsx)(ME, { children: "Fix the error in the mentioned cells, or handle the exceptions with try/except blocks." }),
|
|
14680
14681
|
r && /* @__PURE__ */ (0, q.jsx)(JT, {
|
|
14681
|
-
errors:
|
|
14682
|
+
errors: E,
|
|
14682
14683
|
cellId: r
|
|
14683
14684
|
})
|
|
14684
|
-
] }, "exception")),
|
|
14685
|
-
|
|
14685
|
+
] }, "exception")), D.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("ul", { children: [
|
|
14686
|
+
D.map(hD),
|
|
14686
14687
|
r && /* @__PURE__ */ (0, q.jsx)(JT, {
|
|
14687
|
-
errors:
|
|
14688
|
+
errors: D,
|
|
14688
14689
|
cellId: r
|
|
14689
14690
|
}),
|
|
14690
|
-
/* @__PURE__ */ (0, q.jsx)(ME, { children:
|
|
14691
|
-
] }, "strict-exception")),
|
|
14692
|
-
errors: D,
|
|
14693
|
-
cellId: r
|
|
14694
|
-
})] }, "internal")), O.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [O.map(vD), r && /* @__PURE__ */ (0, q.jsx)(JT, {
|
|
14691
|
+
/* @__PURE__ */ (0, q.jsx)(ME, { children: D.some(gD) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution." })
|
|
14692
|
+
] }, "strict-exception")), O.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [O.map(_D), r && /* @__PURE__ */ (0, q.jsx)(JT, {
|
|
14695
14693
|
errors: O,
|
|
14696
14694
|
cellId: r
|
|
14695
|
+
})] }, "internal")), k.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [k.map(vD), r && /* @__PURE__ */ (0, q.jsx)(JT, {
|
|
14696
|
+
errors: k,
|
|
14697
|
+
cellId: r
|
|
14697
14698
|
})] }, "ancestor-prevented")), A.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [A.map(yD), r && /* @__PURE__ */ (0, q.jsx)(JT, {
|
|
14698
14699
|
errors: A,
|
|
14699
14700
|
cellId: r
|
|
14700
|
-
})] }, "ancestor-stopped")),
|
|
14701
|
-
errors:
|
|
14701
|
+
})] }, "ancestor-stopped")), N.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [N.map(bD), r && /* @__PURE__ */ (0, q.jsx)(JT, {
|
|
14702
|
+
errors: N,
|
|
14702
14703
|
cellId: r,
|
|
14703
14704
|
className: "mt-2.5"
|
|
14704
14705
|
})] }, "sql-errors")), t;
|
|
@@ -14708,11 +14709,11 @@ var TE = (e) => {
|
|
|
14708
14709
|
children: [m, /* @__PURE__ */ (0, q.jsx)(U, {
|
|
14709
14710
|
content: "marimo didn't run this cell because it detected an error.",
|
|
14710
14711
|
delayDuration: 200,
|
|
14711
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
14712
|
+
children: /* @__PURE__ */ (0, q.jsx)(F, { className: "size-3 cursor-help" })
|
|
14712
14713
|
})]
|
|
14713
14714
|
}), t[23] = m, t[24] = z);
|
|
14714
14715
|
let B;
|
|
14715
|
-
t[25] !== p || t[26] !== d ? (B = d && /* @__PURE__ */ (0, q.jsx)(
|
|
14716
|
+
t[25] !== p || t[26] !== d ? (B = d && /* @__PURE__ */ (0, q.jsx)(da, {
|
|
14716
14717
|
className: `font-code font-medium ${p}`,
|
|
14717
14718
|
children: d
|
|
14718
14719
|
}), t[25] = p, t[26] = d, t[27] = B) : B = t[27];
|
|
@@ -14721,29 +14722,29 @@ var TE = (e) => {
|
|
|
14721
14722
|
className: "space-y-0.5",
|
|
14722
14723
|
children: [z, B]
|
|
14723
14724
|
}), t[28] = z, t[29] = B, t[30] = te) : te = t[30];
|
|
14724
|
-
let
|
|
14725
|
-
h =
|
|
14726
|
-
} else h = t[12], g = t[13], _ = t[14],
|
|
14727
|
-
let S;
|
|
14728
|
-
t[33] !== _ || t[34] !== v ? (S = /* @__PURE__ */ (0, q.jsx)("div", {
|
|
14729
|
-
className: _,
|
|
14730
|
-
children: v
|
|
14731
|
-
}), t[33] = _, t[34] = v, t[35] = S) : S = t[35];
|
|
14725
|
+
let V = te;
|
|
14726
|
+
h = fa, b = f, t[31] === o ? x = t[32] : (x = i("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", o), t[31] = o, t[32] = x), S = V, _ = "flex flex-col gap-4", y = R(), t[2] = f, t[3] = r, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = l, t[9] = m, t[10] = p, t[11] = d, t[12] = h, t[13] = g, t[14] = _, t[15] = y, t[16] = b, t[17] = x, t[18] = S;
|
|
14727
|
+
} else h = t[12], g = t[13], _ = t[14], y = t[15], b = t[16], x = t[17], S = t[18];
|
|
14732
14728
|
let C;
|
|
14733
|
-
t[
|
|
14729
|
+
t[33] !== _ || t[34] !== y ? (C = /* @__PURE__ */ (0, q.jsx)("div", {
|
|
14730
|
+
className: _,
|
|
14731
|
+
children: y
|
|
14732
|
+
}), t[33] = _, t[34] = y, t[35] = C) : C = t[35];
|
|
14733
|
+
let w;
|
|
14734
|
+
t[36] !== r || t[37] !== a || t[38] !== g ? (w = r && g.length > 0 && /* @__PURE__ */ (0, q.jsx)(dE, { getContent: () => mT(r, {
|
|
14734
14735
|
code: a,
|
|
14735
14736
|
errors: g
|
|
14736
|
-
}) }), t[36] = r, t[37] = a, t[38] = g, t[39] =
|
|
14737
|
-
let
|
|
14738
|
-
return t[40] !== h || t[41] !==
|
|
14739
|
-
variant:
|
|
14740
|
-
className:
|
|
14737
|
+
}) }), t[36] = r, t[37] = a, t[38] = g, t[39] = w) : w = t[39];
|
|
14738
|
+
let T;
|
|
14739
|
+
return t[40] !== h || t[41] !== b || t[42] !== x || t[43] !== S || t[44] !== C || t[45] !== w ? (T = /* @__PURE__ */ (0, q.jsxs)(h, {
|
|
14740
|
+
variant: b,
|
|
14741
|
+
className: x,
|
|
14741
14742
|
children: [
|
|
14742
|
-
x,
|
|
14743
14743
|
S,
|
|
14744
|
-
C
|
|
14744
|
+
C,
|
|
14745
|
+
w
|
|
14745
14746
|
]
|
|
14746
|
-
}), t[40] = h, t[41] =
|
|
14747
|
+
}), t[40] = h, t[41] = b, t[42] = x, t[43] = S, t[44] = C, t[45] = w, t[46] = T) : T = t[46], T;
|
|
14747
14748
|
};
|
|
14748
14749
|
function PE(e) {
|
|
14749
14750
|
return e.type === "interruption";
|
|
@@ -14955,7 +14956,7 @@ var xD = (e) => {
|
|
|
14955
14956
|
}), t[10] = d, t[11] = f, t[12] = p) : p = t[12], p;
|
|
14956
14957
|
}, SD = (e) => {
|
|
14957
14958
|
let t = (0, J.c)(6), { src: n, className: r } = e;
|
|
14958
|
-
if (
|
|
14959
|
+
if (M()) {
|
|
14959
14960
|
let e;
|
|
14960
14961
|
return t[0] !== r || t[1] !== n ? (e = /* @__PURE__ */ (0, q.jsx)("video", {
|
|
14961
14962
|
className: r,
|
|
@@ -14997,7 +14998,7 @@ function wD(e) {
|
|
|
14997
14998
|
hidingRules: n
|
|
14998
14999
|
};
|
|
14999
15000
|
}
|
|
15000
|
-
var TD =
|
|
15001
|
+
var TD = ha(() => {
|
|
15001
15002
|
let e = [
|
|
15002
15003
|
"image/png",
|
|
15003
15004
|
"image/jpeg",
|
|
@@ -15070,7 +15071,7 @@ var kD = K.lazy(() => import("./vega-embed-container-DgpACsCB.js").then((e) => (
|
|
|
15070
15071
|
let e = (0, J.c)(1), t;
|
|
15071
15072
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
15072
15073
|
className: "flex items-center gap-2 justify-center",
|
|
15073
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
15074
|
+
children: [/* @__PURE__ */ (0, q.jsx)(j, {
|
|
15074
15075
|
className: "w-10 h-10 animate-spin",
|
|
15075
15076
|
strokeWidth: 1
|
|
15076
15077
|
}), /* @__PURE__ */ (0, q.jsx)("span", { children: "Loading chart..." })]
|
|
@@ -15079,7 +15080,7 @@ var kD = K.lazy(() => import("./vega-embed-container-DgpACsCB.js").then((e) => (
|
|
|
15079
15080
|
let t = (0, J.c)(2), { error: n } = e, r;
|
|
15080
15081
|
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ (0, q.jsx)("div", {
|
|
15081
15082
|
className: "flex items-center justify-center",
|
|
15082
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
15083
|
+
children: /* @__PURE__ */ (0, q.jsx)(Vi, { error: n })
|
|
15083
15084
|
}), t[0] = n, t[1] = r), r;
|
|
15084
15085
|
}, MD = (e) => {
|
|
15085
15086
|
let t = (0, J.c)(8), { children: n, className: r } = e, a;
|
|
@@ -15617,7 +15618,7 @@ function $O(e) {
|
|
|
15617
15618
|
return i ? (t.leading = i[1] ?? "", t.middle = i[2] ?? "", t.trailing = i[3] ?? "", t) : (t.middle = e, t);
|
|
15618
15619
|
}
|
|
15619
15620
|
async function ek(e) {
|
|
15620
|
-
return Array.isArray(e) ? e : e.startsWith("{") || e.startsWith("[") ?
|
|
15621
|
+
return Array.isArray(e) ? e : e.startsWith("{") || e.startsWith("[") ? Tr(e) : (e = await Aa(e, { type: "json" }, { handleBigIntAndNumberLike: !0 }), e);
|
|
15621
15622
|
}
|
|
15622
15623
|
async function tk(e, t) {
|
|
15623
15624
|
return t ? Promise.all([ek(e), ek(t)]) : [await ek(e), void 0];
|
|
@@ -15713,7 +15714,7 @@ function mk(e, t, n) {
|
|
|
15713
15714
|
let r = e.options.meta?.rawData;
|
|
15714
15715
|
if (r) {
|
|
15715
15716
|
let e = r[t];
|
|
15716
|
-
if (
|
|
15717
|
+
if (le(e)) return e[n];
|
|
15717
15718
|
}
|
|
15718
15719
|
}
|
|
15719
15720
|
//#endregion
|
|
@@ -15803,7 +15804,7 @@ function hk(e, t) {
|
|
|
15803
15804
|
operator: "is False"
|
|
15804
15805
|
};
|
|
15805
15806
|
}
|
|
15806
|
-
|
|
15807
|
+
Br(e);
|
|
15807
15808
|
}
|
|
15808
15809
|
}
|
|
15809
15810
|
//#endregion
|
|
@@ -17367,7 +17368,7 @@ var UA = {
|
|
|
17367
17368
|
}) : n;
|
|
17368
17369
|
};
|
|
17369
17370
|
}
|
|
17370
|
-
}, WA =
|
|
17371
|
+
}, WA = ga((e) => ({
|
|
17371
17372
|
percentFormatter: new Intl.NumberFormat(e, {
|
|
17372
17373
|
style: "percent",
|
|
17373
17374
|
minimumFractionDigits: 0,
|
|
@@ -17438,7 +17439,7 @@ var qA = (e, t) => {
|
|
|
17438
17439
|
case void 0:
|
|
17439
17440
|
case "geometry":
|
|
17440
17441
|
case "unknown": return e;
|
|
17441
|
-
default: return
|
|
17442
|
+
default: return Br(r), e;
|
|
17442
17443
|
}
|
|
17443
17444
|
};
|
|
17444
17445
|
function JA(e, t) {
|
|
@@ -17536,7 +17537,7 @@ function XA(e) {
|
|
|
17536
17537
|
p = null;
|
|
17537
17538
|
break bb0;
|
|
17538
17539
|
}
|
|
17539
|
-
let m =
|
|
17540
|
+
let m = k[a || "unknown"], h;
|
|
17540
17541
|
t[11] === n ? h = t[12] : (h = n.getColumnFormatting?.(), t[11] = n, t[12] = h);
|
|
17541
17542
|
let g = h;
|
|
17542
17543
|
c = An, t[13] === m ? f = t[14] : (f = /* @__PURE__ */ (0, q.jsxs)(un, { children: [/* @__PURE__ */ (0, q.jsx)(m, { className: "mo-dropdown-icon" }), "Format"] }), t[13] = m, t[14] = f), s = Ln, o = Qn, t[15] === r ? l = t[16] : (l = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
@@ -17614,7 +17615,7 @@ function QA(e) {
|
|
|
17614
17615
|
let r;
|
|
17615
17616
|
t[5] === n ? r = t[6] : (r = () => n.pin("left"), t[5] = n, t[6] = r);
|
|
17616
17617
|
let i;
|
|
17617
|
-
t[7] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0, q.jsx)(
|
|
17618
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0, q.jsx)(x, { className: "mo-dropdown-icon" }), t[7] = i) : i = t[7];
|
|
17618
17619
|
let a;
|
|
17619
17620
|
t[8] === r ? a = t[9] : (a = /* @__PURE__ */ (0, q.jsxs)(Cn, {
|
|
17620
17621
|
onClick: r,
|
|
@@ -18327,19 +18328,19 @@ function Ej(e, t, n) {
|
|
|
18327
18328
|
};
|
|
18328
18329
|
}
|
|
18329
18330
|
var Dj = "ARROW1";
|
|
18330
|
-
|
|
18331
|
+
Pa("arrow", ma);
|
|
18331
18332
|
function Oj(e) {
|
|
18332
18333
|
let t, n;
|
|
18333
18334
|
if (typeof e == "string") {
|
|
18334
|
-
if (e.startsWith("./@file") || e.startsWith("/@file")) t = { url:
|
|
18335
|
+
if (e.startsWith("./@file") || e.startsWith("/@file")) t = { url: _a(e).href }, n = "source_0";
|
|
18335
18336
|
else if (_(e)) {
|
|
18336
18337
|
n = "data_0";
|
|
18337
|
-
let r =
|
|
18338
|
+
let r = oe(e), i = window.atob(r);
|
|
18338
18339
|
t = i.startsWith(Dj) ? {
|
|
18339
|
-
values:
|
|
18340
|
+
values: C(r),
|
|
18340
18341
|
format: { type: "arrow" }
|
|
18341
|
-
} : { values:
|
|
18342
|
-
} else t = { values:
|
|
18342
|
+
} : { values: Oa(i) };
|
|
18343
|
+
} else t = { values: Oa(e) }, n = "data_0";
|
|
18343
18344
|
} else t = { values: e }, n = "source_0";
|
|
18344
18345
|
return {
|
|
18345
18346
|
dataSpec: t,
|
|
@@ -18971,11 +18972,11 @@ var Gj = class e {
|
|
|
18971
18972
|
}
|
|
18972
18973
|
case "geometry":
|
|
18973
18974
|
case "unknown": return null;
|
|
18974
|
-
default: return
|
|
18975
|
+
default: return Br(l), null;
|
|
18975
18976
|
}
|
|
18976
18977
|
}
|
|
18977
|
-
}, Kj = K.createContext(Gj.EMPTY), qj =
|
|
18978
|
-
let t = (0, J.c)(21), { columnId: n } = e, { locale: r } = Fe(), i = K.use(Kj), { theme: a } =
|
|
18978
|
+
}, Kj = K.createContext(Gj.EMPTY), qj = Da(), Jj = (e) => {
|
|
18979
|
+
let t = (0, J.c)(21), { columnId: n } = e, { locale: r } = Fe(), i = K.use(Kj), { theme: a } = bi(), o, s, c;
|
|
18979
18980
|
if (t[0] !== i || t[1] !== n || t[2] !== r || t[3] !== a) {
|
|
18980
18981
|
let { spec: e, type: l, stats: u } = i.getHeaderSummary(n), d = null;
|
|
18981
18982
|
if (e) {
|
|
@@ -19076,7 +19077,7 @@ var Gj = class e {
|
|
|
19076
19077
|
className: "flex flex-col whitespace-pre",
|
|
19077
19078
|
children: /* @__PURE__ */ (0, q.jsxs)("span", { children: ["nulls: ", rr(u.nulls, r)] })
|
|
19078
19079
|
});
|
|
19079
|
-
default: return
|
|
19080
|
+
default: return Br(l), null;
|
|
19080
19081
|
}
|
|
19081
19082
|
})(), t[0] = i, t[1] = n, t[2] = r, t[3] = a, t[4] = o, t[5] = s, t[6] = c;
|
|
19082
19083
|
} else o = t[4], s = t[5], c = t[6];
|
|
@@ -19270,7 +19271,7 @@ var sM = (e) => {
|
|
|
19270
19271
|
let u;
|
|
19271
19272
|
t[5] === Symbol.for("react.memo_cache_sentinel") ? (u = () => a(!0), t[5] = u) : u = t[5];
|
|
19272
19273
|
let d;
|
|
19273
|
-
t[6] === n ? d = t[7] : (d = /* @__PURE__ */ (0, q.jsx)(
|
|
19274
|
+
t[6] === n ? d = t[7] : (d = /* @__PURE__ */ (0, q.jsx)(te, {
|
|
19274
19275
|
asChild: !0,
|
|
19275
19276
|
children: /* @__PURE__ */ (0, q.jsx)("div", {
|
|
19276
19277
|
className: "flex max-h-[80px] overflow-hidden cursor-pointer",
|
|
@@ -19287,7 +19288,7 @@ var sM = (e) => {
|
|
|
19287
19288
|
let f;
|
|
19288
19289
|
t[8] === Symbol.for("react.memo_cache_sentinel") ? (f = () => a(!0), t[8] = f) : f = t[8];
|
|
19289
19290
|
let p;
|
|
19290
|
-
t[9] === n ? p = t[10] : (p = /* @__PURE__ */ (0, q.jsx)(
|
|
19291
|
+
t[9] === n ? p = t[10] : (p = /* @__PURE__ */ (0, q.jsx)(y, {
|
|
19291
19292
|
className: "z-50 p-2 bg-popover rounded-md shadow-lg border w-fit",
|
|
19292
19293
|
align: "start",
|
|
19293
19294
|
side: "right",
|
|
@@ -19299,7 +19300,7 @@ var sM = (e) => {
|
|
|
19299
19300
|
})
|
|
19300
19301
|
}), t[9] = n, t[10] = p);
|
|
19301
19302
|
let m;
|
|
19302
|
-
return t[11] !== o || t[12] !== d || t[13] !== p ? (m = /* @__PURE__ */ (0, q.jsxs)(
|
|
19303
|
+
return t[11] !== o || t[12] !== d || t[13] !== p ? (m = /* @__PURE__ */ (0, q.jsxs)(I, {
|
|
19303
19304
|
open: o,
|
|
19304
19305
|
onOpenChange: s,
|
|
19305
19306
|
children: [d, p]
|
|
@@ -19364,7 +19365,7 @@ var fM = (e) => {
|
|
|
19364
19365
|
className: "text-link hover:underline",
|
|
19365
19366
|
children: a
|
|
19366
19367
|
}), t[1] = a, t[2] = n, t[3] = s) : s = t[3], s;
|
|
19367
|
-
}, pM =
|
|
19368
|
+
}, pM = L, mM = "__m_column__", hM = "__select__", gM = 50;
|
|
19368
19369
|
function _M(e) {
|
|
19369
19370
|
return typeof e == "string" ? ["string", "string"] : typeof e == "number" ? ["number", "number"] : e instanceof Date ? ["datetime", "datetime"] : typeof e == "boolean" ? ["boolean", "boolean"] : ["unknown", "object"];
|
|
19370
19371
|
}
|
|
@@ -19375,7 +19376,7 @@ function vM(e) {
|
|
|
19375
19376
|
typeof e == "object" && e && Object.entries(e).forEach(([e, n]) => {
|
|
19376
19377
|
t[e] || (t[e] = _M(n)), n != null && (t[e] = _M(n));
|
|
19377
19378
|
});
|
|
19378
|
-
}),
|
|
19379
|
+
}), Yi.entries(t);
|
|
19379
19380
|
}
|
|
19380
19381
|
function yM({ rowHeaders: e, selection: t, fieldTypes: n, chartSpecModel: a, textJustifyColumns: o, wrappedColumns: s, headerTooltip: c, showDataTypes: l, calculateTopKRows: u, fractionDigitsByColumn: d, columnWidths: f }) {
|
|
19381
19382
|
let p = new Set(e.map(([e]) => e)), m = new Set(s), h = lO.keyBy(n, (e) => e[0]), g = (t) => {
|
|
@@ -19475,14 +19476,14 @@ function yM({ rowHeaders: e, selection: t, fieldTypes: n, chartSpecModel: a, tex
|
|
|
19475
19476
|
return (t === "single" || t === "multi") && b.unshift({
|
|
19476
19477
|
id: hM,
|
|
19477
19478
|
maxSize: 40,
|
|
19478
|
-
header: ({ table: e }) => t === "multi" ? /* @__PURE__ */ (0, q.jsx)(
|
|
19479
|
+
header: ({ table: e }) => t === "multi" ? /* @__PURE__ */ (0, q.jsx)(dr, {
|
|
19479
19480
|
"data-testid": "select-all-checkbox",
|
|
19480
19481
|
checked: e.getIsAllPageRowsSelected(),
|
|
19481
19482
|
onCheckedChange: (t) => e.toggleAllPageRowsSelected(!!t),
|
|
19482
19483
|
"aria-label": "Select all",
|
|
19483
19484
|
className: "mx-1.5 my-4"
|
|
19484
19485
|
}) : null,
|
|
19485
|
-
cell: ({ row: e }) => /* @__PURE__ */ (0, q.jsx)(
|
|
19486
|
+
cell: ({ row: e }) => /* @__PURE__ */ (0, q.jsx)(dr, {
|
|
19486
19487
|
"data-testid": "select-row-checkbox",
|
|
19487
19488
|
checked: e.getIsSelected(),
|
|
19488
19489
|
onCheckedChange: (t) => e.toggleSelected(!!t),
|
|
@@ -19498,7 +19499,7 @@ function yM({ rowHeaders: e, selection: t, fieldTypes: n, chartSpecModel: a, tex
|
|
|
19498
19499
|
}
|
|
19499
19500
|
var bM = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: r, contentClassName: a, scrollable: s = !1, wrapped: c, children: l, buttonText: d }) => {
|
|
19500
19501
|
let f = (0, K.useRef)(null), p = r !== void 0 && (r.leading.length > 0 || r.trailing.length > 0) ? n.slice(r.leading.length, n.length - r.trailing.length) : n;
|
|
19501
|
-
return /* @__PURE__ */ (0, q.jsxs)(
|
|
19502
|
+
return /* @__PURE__ */ (0, q.jsxs)(I, { children: [/* @__PURE__ */ (0, q.jsx)(te, {
|
|
19502
19503
|
ref: f,
|
|
19503
19504
|
className: i(e, "max-w-fit outline-hidden"),
|
|
19504
19505
|
onClick: t,
|
|
@@ -19514,7 +19515,7 @@ var bM = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: r, contentCl
|
|
|
19514
19515
|
r ? /* @__PURE__ */ (0, q.jsx)(eM, { value: r.trailing }) : null
|
|
19515
19516
|
]
|
|
19516
19517
|
})
|
|
19517
|
-
}), /* @__PURE__ */ (0, q.jsxs)(
|
|
19518
|
+
}), /* @__PURE__ */ (0, q.jsxs)(y, {
|
|
19518
19519
|
className: i(a, s && "flex flex-col overflow-hidden"),
|
|
19519
19520
|
align: "start",
|
|
19520
19521
|
alignOffset: 10,
|
|
@@ -19612,11 +19613,11 @@ function DM({ column: e, renderValue: t, getValue: n, selectCell: a, cellStyles:
|
|
|
19612
19613
|
});
|
|
19613
19614
|
if (u === "datetime" && typeof c == "string") try {
|
|
19614
19615
|
let t = new Date(c);
|
|
19615
|
-
return !l || !
|
|
19616
|
+
return !l || !ua(t) ? p(c) : m(t, String(e.applyColumnFormatting(c)));
|
|
19616
19617
|
} catch (e) {
|
|
19617
19618
|
r.error("Error parsing datetime, fallback to string", e);
|
|
19618
19619
|
}
|
|
19619
|
-
if (c instanceof Date) return
|
|
19620
|
+
if (c instanceof Date) return ua(c) ? m(c, l ? String(e.applyColumnFormatting(c)) : void 0) : /* @__PURE__ */ (0, q.jsx)("div", {
|
|
19620
19621
|
onClick: a,
|
|
19621
19622
|
className: o,
|
|
19622
19623
|
children: c.toString()
|
|
@@ -19639,7 +19640,7 @@ function DM({ column: e, renderValue: t, getValue: n, selectCell: a, cellStyles:
|
|
|
19639
19640
|
className: "max-h-64"
|
|
19640
19641
|
})
|
|
19641
19642
|
});
|
|
19642
|
-
let h =
|
|
19643
|
+
let h = _r(p ? u : n);
|
|
19643
19644
|
return h.every((e) => e.type !== "text") || n.length < gM || f ? /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
19644
19645
|
onClick: a,
|
|
19645
19646
|
className: i(o, f && "whitespace-pre-wrap min-w-[200px]"),
|
|
@@ -19665,7 +19666,7 @@ function DM({ column: e, renderValue: t, getValue: n, selectCell: a, cellStyles:
|
|
|
19665
19666
|
buttonText: "X",
|
|
19666
19667
|
children: /* @__PURE__ */ (0, q.jsx)(lM, {
|
|
19667
19668
|
content: n,
|
|
19668
|
-
parts:
|
|
19669
|
+
parts: _r(n)
|
|
19669
19670
|
})
|
|
19670
19671
|
});
|
|
19671
19672
|
}
|
|
@@ -20897,7 +20898,7 @@ function kP({ autoSaveId: e = null, children: t, className: n = "", direction: r
|
|
|
20897
20898
|
}, []), I = (0, K.useCallback)((e) => {
|
|
20898
20899
|
let { panelDataArray: t } = C.current, n = jP(t, e);
|
|
20899
20900
|
n >= 0 && (t.splice(n, 1), delete y.current[e.id], C.current.panelDataArrayChanged = !0, v());
|
|
20900
|
-
}, [v]),
|
|
20901
|
+
}, [v]), ee = (0, K.useMemo)(() => ({
|
|
20901
20902
|
collapsePanel: w,
|
|
20902
20903
|
direction: r,
|
|
20903
20904
|
dragState: m,
|
|
@@ -20932,21 +20933,21 @@ function kP({ autoSaveId: e = null, children: t, className: n = "", direction: r
|
|
|
20932
20933
|
P,
|
|
20933
20934
|
F,
|
|
20934
20935
|
I
|
|
20935
|
-
]),
|
|
20936
|
+
]), L = {
|
|
20936
20937
|
display: "flex",
|
|
20937
20938
|
flexDirection: r === "horizontal" ? "row" : "column",
|
|
20938
20939
|
height: "100%",
|
|
20939
20940
|
overflow: "hidden",
|
|
20940
20941
|
width: "100%"
|
|
20941
20942
|
};
|
|
20942
|
-
return (0, K.createElement)(ZM.Provider, { value:
|
|
20943
|
+
return (0, K.createElement)(ZM.Provider, { value: ee }, (0, K.createElement)(u, {
|
|
20943
20944
|
...d,
|
|
20944
20945
|
children: t,
|
|
20945
20946
|
className: n,
|
|
20946
20947
|
id: a,
|
|
20947
20948
|
ref: p,
|
|
20948
20949
|
style: {
|
|
20949
|
-
...
|
|
20950
|
+
...L,
|
|
20950
20951
|
...l
|
|
20951
20952
|
},
|
|
20952
20953
|
[QM.group]: "",
|
|
@@ -21121,7 +21122,7 @@ var FP = new JM(), IP = {
|
|
|
21121
21122
|
COLUMN_EXPLORER: "column-explorer"
|
|
21122
21123
|
}, RP = (e) => {
|
|
21123
21124
|
let t = (0, J.c)(2), { children: n } = e, r;
|
|
21124
|
-
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ (0, q.jsx)(
|
|
21125
|
+
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ (0, q.jsx)(Ma, { children: /* @__PURE__ */ (0, q.jsx)(zM, {
|
|
21125
21126
|
name: IP.CONTEXT_AWARE_PANEL,
|
|
21126
21127
|
children: n
|
|
21127
21128
|
}) }), t[0] = n, t[1] = r), r;
|
|
@@ -21717,7 +21718,7 @@ var kF = (e) => {
|
|
|
21717
21718
|
className: o
|
|
21718
21719
|
}, e), t[6] = o, t[7] = l, t[8] = e, t[9] = n, t[10] = c) : c = t[10];
|
|
21719
21720
|
let u;
|
|
21720
|
-
t[11] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ (0, q.jsx)(
|
|
21721
|
+
t[11] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ (0, q.jsx)(kr, { className: "h-5 w-5 text-muted-foreground" }), t[11] = u) : u = t[11];
|
|
21721
21722
|
let f = `max-${s}`, p;
|
|
21722
21723
|
t[12] !== r || t[13] !== a ? (p = (e) => a(r, e), t[12] = r, t[13] = a, t[14] = p) : p = t[14];
|
|
21723
21724
|
let h;
|
|
@@ -21988,7 +21989,7 @@ function KF(e) {
|
|
|
21988
21989
|
...e,
|
|
21989
21990
|
run: () => r(zF(HF(n), e.items.map(qF)))
|
|
21990
21991
|
};
|
|
21991
|
-
default: return
|
|
21992
|
+
default: return Wr(e);
|
|
21992
21993
|
}
|
|
21993
21994
|
}, t[8] = r, t[9] = a, t[10] = n, t[11] = l) : l = t[11], e = i.map(l), t[1] = o, t[2] = c, t[3] = r, t[4] = a, t[5] = s, t[6] = n, t[7] = e;
|
|
21994
21995
|
} else e = t[7];
|
|
@@ -22089,10 +22090,10 @@ var QF = {
|
|
|
22089
22090
|
}
|
|
22090
22091
|
}, $F = 30, eI = ({ column: e, calculateTopKRows: t, chosenValues: n, onChange: r, creatable: i = !1 }) => {
|
|
22091
22092
|
let [a, o] = (0, K.useState)(n.length === 0), s = (0, K.useMemo)(() => new Set(n), [n]), c = (0, K.useMemo)(() => [...s].map((e) => uk({ value: e })), [s]);
|
|
22092
|
-
return /* @__PURE__ */ (0, q.jsxs)(
|
|
22093
|
+
return /* @__PURE__ */ (0, q.jsxs)(I, {
|
|
22093
22094
|
open: a,
|
|
22094
22095
|
onOpenChange: o,
|
|
22095
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
22096
|
+
children: [/* @__PURE__ */ (0, q.jsx)(te, {
|
|
22096
22097
|
asChild: !0,
|
|
22097
22098
|
children: /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
22098
22099
|
type: "button",
|
|
@@ -22107,7 +22108,7 @@ var QF = {
|
|
|
22107
22108
|
max: 3
|
|
22108
22109
|
}), /* @__PURE__ */ (0, q.jsx)(Ie, { className: "h-4 w-4 opacity-50 shrink-0" })]
|
|
22109
22110
|
})
|
|
22110
|
-
}), /* @__PURE__ */ (0, q.jsx)(
|
|
22111
|
+
}), /* @__PURE__ */ (0, q.jsx)(y, {
|
|
22111
22112
|
className: "w-80 p-0",
|
|
22112
22113
|
children: /* @__PURE__ */ (0, q.jsx)(tI, {
|
|
22113
22114
|
column: e,
|
|
@@ -22156,10 +22157,10 @@ var QF = {
|
|
|
22156
22157
|
}, h = u.trim(), g = a && h !== "" && !p.some(([e]) => String(e) === h), _ = () => {
|
|
22157
22158
|
g && (i([...n, h]), d(""));
|
|
22158
22159
|
}, v = p.length > 0 && p.every(([e]) => n.has(e)), y = v ? !0 : n.size > 0 && "indeterminate";
|
|
22159
|
-
return s ? /* @__PURE__ */ (0, q.jsx)(
|
|
22160
|
+
return s ? /* @__PURE__ */ (0, q.jsx)(ce, {
|
|
22160
22161
|
size: "medium",
|
|
22161
22162
|
className: "mx-auto mt-12 mb-10"
|
|
22162
|
-
}) : c ? /* @__PURE__ */ (0, q.jsx)(
|
|
22163
|
+
}) : c ? /* @__PURE__ */ (0, q.jsx)(Vi, {
|
|
22163
22164
|
error: c,
|
|
22164
22165
|
className: "my-10 mx-4"
|
|
22165
22166
|
}) : o ? /* @__PURE__ */ (0, q.jsxs)(Px, {
|
|
@@ -22188,7 +22189,7 @@ var QF = {
|
|
|
22188
22189
|
i([...e]);
|
|
22189
22190
|
},
|
|
22190
22191
|
children: [
|
|
22191
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
22192
|
+
/* @__PURE__ */ (0, q.jsx)(dr, {
|
|
22192
22193
|
checked: y,
|
|
22193
22194
|
"aria-label": "Select all",
|
|
22194
22195
|
className: "mr-3 h-3.5 w-3.5"
|
|
@@ -22210,7 +22211,7 @@ var QF = {
|
|
|
22210
22211
|
className: "not-last:border-b rounded-none px-3",
|
|
22211
22212
|
onSelect: () => m(t),
|
|
22212
22213
|
children: [
|
|
22213
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
22214
|
+
/* @__PURE__ */ (0, q.jsx)(dr, {
|
|
22214
22215
|
checked: i,
|
|
22215
22216
|
"aria-label": "Select row",
|
|
22216
22217
|
className: "mr-3 h-3.5 w-3.5"
|
|
@@ -22358,10 +22359,10 @@ var lI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
22358
22359
|
}), r();
|
|
22359
22360
|
}, A = () => {
|
|
22360
22361
|
i !== void 0 && t.setColumnFilters((e) => e.filter((e, t) => t !== i)), r();
|
|
22361
|
-
}, j = !DO.has(g), M = TO[m],
|
|
22362
|
+
}, j = !DO.has(g), M = TO[m], N = (0, K.useRef)(null), P = (0, K.useRef)(null);
|
|
22362
22363
|
return (0, K.useEffect)(() => {
|
|
22363
|
-
let e =
|
|
22364
|
-
e ? e.focus() :
|
|
22364
|
+
let e = N.current?.querySelector("input, [role=\"spinbutton\"], [role=\"combobox\"], button");
|
|
22365
|
+
e ? e.focus() : P.current?.focus();
|
|
22365
22366
|
}, [m, g]), /* @__PURE__ */ (0, q.jsxs)("form", {
|
|
22366
22367
|
className: "flex flex-row gap-4 items-end p-3",
|
|
22367
22368
|
onSubmit: (e) => {
|
|
@@ -22400,7 +22401,7 @@ var lI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
22400
22401
|
value: g,
|
|
22401
22402
|
onValueChange: (e) => T(e),
|
|
22402
22403
|
children: [/* @__PURE__ */ (0, q.jsx)(Xe, {
|
|
22403
|
-
ref:
|
|
22404
|
+
ref: P,
|
|
22404
22405
|
id: o,
|
|
22405
22406
|
className: "h-6 mb-1 bg-transparent",
|
|
22406
22407
|
children: /* @__PURE__ */ (0, q.jsx)(Ve, {})
|
|
@@ -22411,7 +22412,7 @@ var lI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
22411
22412
|
}, m)]
|
|
22412
22413
|
}),
|
|
22413
22414
|
j && /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
22414
|
-
ref:
|
|
22415
|
+
ref: N,
|
|
22415
22416
|
className: "flex flex-col gap-1",
|
|
22416
22417
|
children: [/* @__PURE__ */ (0, q.jsx)("label", {
|
|
22417
22418
|
htmlFor: s,
|
|
@@ -22461,7 +22462,7 @@ var lI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
22461
22462
|
className: "rounded-full text-muted-foreground hover:text-foreground hover:bg-muted",
|
|
22462
22463
|
onClick: r,
|
|
22463
22464
|
"aria-label": "Close without saving",
|
|
22464
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
22465
|
+
children: /* @__PURE__ */ (0, q.jsx)(Ur, {
|
|
22465
22466
|
className: "h-3.5 w-3.5",
|
|
22466
22467
|
"aria-hidden": !0
|
|
22467
22468
|
})
|
|
@@ -22476,7 +22477,7 @@ var lI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
22476
22477
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
22477
22478
|
onClick: A,
|
|
22478
22479
|
"aria-label": "Remove filter",
|
|
22479
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
22480
|
+
children: /* @__PURE__ */ (0, q.jsx)(R, {
|
|
22480
22481
|
className: "h-3.5 w-3.5",
|
|
22481
22482
|
"aria-hidden": !0
|
|
22482
22483
|
})
|
|
@@ -22505,7 +22506,7 @@ var lI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
22505
22506
|
placeholder: "min",
|
|
22506
22507
|
className: "border-input flex-1 min-w-0"
|
|
22507
22508
|
}),
|
|
22508
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
22509
|
+
/* @__PURE__ */ (0, q.jsx)(kr, { className: "h-5 w-5 text-muted-foreground shrink-0" }),
|
|
22509
22510
|
/* @__PURE__ */ (0, q.jsx)(er, {
|
|
22510
22511
|
value: t.max,
|
|
22511
22512
|
onChange: (e) => i({
|
|
@@ -22726,7 +22727,7 @@ var hI = (e) => {
|
|
|
22726
22727
|
t[6] = o.x, t[7] = o.y, t[8] = f;
|
|
22727
22728
|
} else f = t[8];
|
|
22728
22729
|
let p;
|
|
22729
|
-
t[9] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, q.jsx)(
|
|
22730
|
+
t[9] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, q.jsx)(te, {}), t[9] = p) : p = t[9];
|
|
22730
22731
|
let m;
|
|
22731
22732
|
t[10] !== o.x || t[11] !== o.y ? (m = {
|
|
22732
22733
|
position: "fixed",
|
|
@@ -22769,26 +22770,26 @@ var hI = (e) => {
|
|
|
22769
22770
|
className: g,
|
|
22770
22771
|
children: _
|
|
22771
22772
|
}), t[15] = f, t[16] = g, t[17] = v) : v = t[17];
|
|
22772
|
-
let
|
|
22773
|
-
t[18] !== n || t[19] !== r || t[20] !== m || t[21] !== v ? (
|
|
22773
|
+
let b;
|
|
22774
|
+
t[18] !== n || t[19] !== r || t[20] !== m || t[21] !== v ? (b = /* @__PURE__ */ (0, q.jsxs)(y, {
|
|
22774
22775
|
className: r,
|
|
22775
22776
|
style: m,
|
|
22776
22777
|
children: [v, n]
|
|
22777
|
-
}), t[18] = n, t[19] = r, t[20] = m, t[21] = v, t[22] =
|
|
22778
|
-
let
|
|
22779
|
-
return t[23] !== i || t[24] !==
|
|
22778
|
+
}), t[18] = n, t[19] = r, t[20] = m, t[21] = v, t[22] = b) : b = t[22];
|
|
22779
|
+
let x;
|
|
22780
|
+
return t[23] !== i || t[24] !== b ? (x = /* @__PURE__ */ (0, q.jsxs)(I, {
|
|
22780
22781
|
...i,
|
|
22781
|
-
children: [p,
|
|
22782
|
-
}), t[23] = i, t[24] =
|
|
22782
|
+
children: [p, b]
|
|
22783
|
+
}), t[23] = i, t[24] = b, t[25] = x) : x = t[25], x;
|
|
22783
22784
|
}, gI = ({ table: e, calculateTopKRows: t, snapshot: n, onSnapshotChange: r }) => {
|
|
22784
22785
|
let i = cI(e);
|
|
22785
|
-
return i.length === 0 ? null : /* @__PURE__ */ (0, q.jsxs)(
|
|
22786
|
+
return i.length === 0 ? null : /* @__PURE__ */ (0, q.jsxs)(I, {
|
|
22786
22787
|
open: n !== null,
|
|
22787
22788
|
onOpenChange: (e) => {
|
|
22788
22789
|
e ? n === null && r(sI(i[0])) : r(null);
|
|
22789
22790
|
},
|
|
22790
22791
|
modal: !1,
|
|
22791
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
22792
|
+
children: [/* @__PURE__ */ (0, q.jsx)(te, {
|
|
22792
22793
|
asChild: !0,
|
|
22793
22794
|
children: /* @__PURE__ */ (0, q.jsx)(u, {
|
|
22794
22795
|
type: "button",
|
|
@@ -22801,7 +22802,7 @@ var hI = (e) => {
|
|
|
22801
22802
|
"aria-hidden": !0
|
|
22802
22803
|
})
|
|
22803
22804
|
})
|
|
22804
|
-
}), n !== null && /* @__PURE__ */ (0, q.jsx)(
|
|
22805
|
+
}), n !== null && /* @__PURE__ */ (0, q.jsx)(y, {
|
|
22805
22806
|
className: "w-auto p-0",
|
|
22806
22807
|
align: "start",
|
|
22807
22808
|
alignOffset: -10,
|
|
@@ -22868,10 +22869,10 @@ var hI = (e) => {
|
|
|
22868
22869
|
open: c,
|
|
22869
22870
|
onOpenChange: l,
|
|
22870
22871
|
className: "w-fit max-w-[min(90vw,40rem)] p-0",
|
|
22871
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
22872
|
+
children: [/* @__PURE__ */ (0, q.jsx)(ve, {
|
|
22872
22873
|
className: "absolute top-2 right-2",
|
|
22873
22874
|
"aria-label": "Close",
|
|
22874
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
22875
|
+
children: /* @__PURE__ */ (0, q.jsx)(Ur, {
|
|
22875
22876
|
className: "h-4 w-4",
|
|
22876
22877
|
"aria-hidden": !0
|
|
22877
22878
|
})
|
|
@@ -22937,12 +22938,12 @@ var hI = (e) => {
|
|
|
22937
22938
|
className: "ml-1 rounded-full text-destructive/60 hover:text-destructive hover:shadow-none hover:bg-transparent",
|
|
22938
22939
|
onClick: p,
|
|
22939
22940
|
"aria-label": "Remove filter",
|
|
22940
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
22941
|
+
children: /* @__PURE__ */ (0, q.jsx)(Ur, {
|
|
22941
22942
|
className: "h-3.5 w-3.5",
|
|
22942
22943
|
"aria-hidden": !0
|
|
22943
22944
|
})
|
|
22944
22945
|
});
|
|
22945
|
-
return /* @__PURE__ */ (0, q.jsxs)(
|
|
22946
|
+
return /* @__PURE__ */ (0, q.jsxs)(I, {
|
|
22946
22947
|
open: c,
|
|
22947
22948
|
onOpenChange: l,
|
|
22948
22949
|
modal: !1,
|
|
@@ -22954,7 +22955,7 @@ var hI = (e) => {
|
|
|
22954
22955
|
delayDuration: 600,
|
|
22955
22956
|
children: /* @__PURE__ */ (0, q.jsxs)("span", {
|
|
22956
22957
|
className: "inline-flex items-center",
|
|
22957
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
22958
|
+
children: [/* @__PURE__ */ (0, q.jsx)(te, {
|
|
22958
22959
|
asChild: !0,
|
|
22959
22960
|
children: /* @__PURE__ */ (0, q.jsx)("button", {
|
|
22960
22961
|
type: "button",
|
|
@@ -22965,7 +22966,7 @@ var hI = (e) => {
|
|
|
22965
22966
|
}), v]
|
|
22966
22967
|
})
|
|
22967
22968
|
})
|
|
22968
|
-
}), /* @__PURE__ */ (0, q.jsx)(
|
|
22969
|
+
}), /* @__PURE__ */ (0, q.jsx)(y, {
|
|
22969
22970
|
className: "w-auto p-0",
|
|
22970
22971
|
align: "start",
|
|
22971
22972
|
alignOffset: -10,
|
|
@@ -23015,7 +23016,7 @@ function SI(e, t) {
|
|
|
23015
23016
|
let [n, r] = $t({
|
|
23016
23017
|
left: CI(e),
|
|
23017
23018
|
right: t
|
|
23018
|
-
},
|
|
23019
|
+
}, Xr);
|
|
23019
23020
|
return {
|
|
23020
23021
|
columnPinning: n,
|
|
23021
23022
|
setColumnPinning: (e) => {
|
|
@@ -23066,9 +23067,9 @@ function TI(e, t) {
|
|
|
23066
23067
|
function EI(e) {
|
|
23067
23068
|
return "write" in e;
|
|
23068
23069
|
}
|
|
23069
|
-
var DI = "INTERNAL_getBuildingBlocksRev", OI = Number(Object.keys(
|
|
23070
|
+
var DI = "INTERNAL_getBuildingBlocksRev", OI = Number(Object.keys(ii).find((e) => e.startsWith(DI))?.slice(29));
|
|
23070
23071
|
if (Number.isNaN(OI)) throw Error("jotai-compat: unsupported jotai internals revision");
|
|
23071
|
-
var kI =
|
|
23072
|
+
var kI = ii, AI = `INTERNAL_getBuildingBlocksRev${OI}`, jI = kI[`INTERNAL_buildStoreRev${OI}`];
|
|
23072
23073
|
function MI(e) {
|
|
23073
23074
|
return OI < 4 ? jI(...e ? Object.values(e) : []) : jI(Array.isArray(e) ? Object.fromEntries(NI.map(([t, n], r) => [n, e[r]])) : e);
|
|
23074
23075
|
}
|
|
@@ -23119,7 +23120,7 @@ var { atomStateMap: PI, mountedMap: FI, invalidatedAtoms: II, changedAtoms: LI,
|
|
|
23119
23120
|
};
|
|
23120
23121
|
Object.defineProperty(n, i, a), Object.defineProperty(n, r, a);
|
|
23121
23122
|
}), uL.set(t, n)), n;
|
|
23122
|
-
}, fL = /* @__PURE__ */ new WeakMap(), pL = {}, { read: mL, write: hL } =
|
|
23123
|
+
}, fL = /* @__PURE__ */ new WeakMap(), pL = {}, { read: mL, write: hL } = ai(null);
|
|
23123
23124
|
function gL(e, t, n) {
|
|
23124
23125
|
let [r, i, a, , o] = e, s = r.get(t);
|
|
23125
23126
|
if (s) return s;
|
|
@@ -23405,7 +23406,7 @@ function TL(e, t) {
|
|
|
23405
23406
|
});
|
|
23406
23407
|
};
|
|
23407
23408
|
}
|
|
23408
|
-
var EL = TL(
|
|
23409
|
+
var EL = TL(ui, ti);
|
|
23409
23410
|
//#endregion
|
|
23410
23411
|
//#region src/components/data-table/range-focus/utils.ts
|
|
23411
23412
|
function DL(e, t) {
|
|
@@ -23491,7 +23492,7 @@ function PL() {
|
|
|
23491
23492
|
isSelecting: !1
|
|
23492
23493
|
};
|
|
23493
23494
|
}
|
|
23494
|
-
var { valueAtom: FL, useActions: IL, createActions: LL, reducer: RL } =
|
|
23495
|
+
var { valueAtom: FL, useActions: IL, createActions: LL, reducer: RL } = ea(PL, {
|
|
23495
23496
|
setSelectedCells: (e, t) => ({
|
|
23496
23497
|
...e,
|
|
23497
23498
|
selectedCells: t
|
|
@@ -23631,9 +23632,9 @@ var { valueAtom: FL, useActions: IL, createActions: LL, reducer: RL } = na(PL, {
|
|
|
23631
23632
|
isSelecting: !0
|
|
23632
23633
|
};
|
|
23633
23634
|
}
|
|
23634
|
-
}), zL =
|
|
23635
|
-
|
|
23636
|
-
var VL = (e) =>
|
|
23635
|
+
}), zL = ai((e) => e(FL).selectedCells), BL = ai((e) => e(FL).copiedCells);
|
|
23636
|
+
ai((e) => e(FL).selectedStartCell), ai((e) => e(FL).focusedCell), ai((e) => e(FL).isSelecting);
|
|
23637
|
+
var VL = (e) => ai((t) => {
|
|
23637
23638
|
let n = t(zL), r = t(BL);
|
|
23638
23639
|
return {
|
|
23639
23640
|
isSelected: n.has(e),
|
|
@@ -24653,7 +24654,7 @@ function OR(e) {
|
|
|
24653
24654
|
}
|
|
24654
24655
|
//#endregion
|
|
24655
24656
|
//#region src/components/ui/context-menu.tsx
|
|
24656
|
-
var kR = Ts, AR = Ds, jR =
|
|
24657
|
+
var kR = Ts, AR = Ds, jR = Ti(Os), MR = Di(As), NR = Di(Rs), PR = K.forwardRef((e, t) => {
|
|
24657
24658
|
let n = (0, J.c)(14), r, i, a, o;
|
|
24658
24659
|
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4]) : ({className: i, inset: a, children: r, ...o} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o);
|
|
24659
24660
|
let s;
|
|
@@ -24690,13 +24691,13 @@ var LR = K.forwardRef((e, t) => {
|
|
|
24690
24691
|
n[0] === e ? (r = n[1], a = n[2], o = n[3]) : ({className: r, scrollable: o, ...a} = e, n[0] = e, n[1] = r, n[2] = a, n[3] = o);
|
|
24691
24692
|
let s = o === void 0 || o, c;
|
|
24692
24693
|
n[4] !== r || n[5] !== s ? (c = i(Je(), FR, s && "overflow-auto", r), n[4] = r, n[5] = s, n[6] = c) : c = n[6];
|
|
24693
|
-
let l = s ? `calc(var(--radix-context-menu-content-available-height) - ${
|
|
24694
|
+
let l = s ? `calc(var(--radix-context-menu-content-available-height) - ${wi}px)` : void 0, u;
|
|
24694
24695
|
n[7] !== a.style || n[8] !== l ? (u = {
|
|
24695
24696
|
...a.style,
|
|
24696
24697
|
maxHeight: l
|
|
24697
24698
|
}, n[7] = a.style, n[8] = l, n[9] = u) : u = n[9];
|
|
24698
24699
|
let d;
|
|
24699
|
-
return n[10] !== a || n[11] !== t || n[12] !== c || n[13] !== u ? (d = /* @__PURE__ */ (0, q.jsx)(jR, { children: /* @__PURE__ */ (0, q.jsx)(
|
|
24700
|
+
return n[10] !== a || n[11] !== t || n[12] !== c || n[13] !== u ? (d = /* @__PURE__ */ (0, q.jsx)(jR, { children: /* @__PURE__ */ (0, q.jsx)(Ci, { children: /* @__PURE__ */ (0, q.jsx)(MR, {
|
|
24700
24701
|
ref: t,
|
|
24701
24702
|
className: c,
|
|
24702
24703
|
style: u,
|
|
@@ -24753,7 +24754,7 @@ var BR = K.forwardRef((e, t) => {
|
|
|
24753
24754
|
let c;
|
|
24754
24755
|
n[7] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, q.jsx)("span", {
|
|
24755
24756
|
className: s,
|
|
24756
|
-
children: /* @__PURE__ */ (0, q.jsx)(Fs, { children: /* @__PURE__ */ (0, q.jsx)(
|
|
24757
|
+
children: /* @__PURE__ */ (0, q.jsx)(Fs, { children: /* @__PURE__ */ (0, q.jsx)(ee, { className: "h-4 w-4 fill-current" }) })
|
|
24757
24758
|
}), n[7] = c) : c = n[7];
|
|
24758
24759
|
let l;
|
|
24759
24760
|
return n[8] !== r || n[9] !== a || n[10] !== t || n[11] !== o ? (l = /* @__PURE__ */ (0, q.jsxs)(Ps, {
|
|
@@ -24841,7 +24842,7 @@ function GR({ type: e, value: t, comparison: n = "eq", dataType: r, dtype: i })
|
|
|
24841
24842
|
let e = n === "eq" ? t : !t;
|
|
24842
24843
|
return pO.boolean({ operator: e ? "is_true" : "is_false" });
|
|
24843
24844
|
}
|
|
24844
|
-
default:
|
|
24845
|
+
default: Wr(e);
|
|
24845
24846
|
}
|
|
24846
24847
|
}
|
|
24847
24848
|
var KR = (e) => {
|
|
@@ -24853,10 +24854,10 @@ var KR = (e) => {
|
|
|
24853
24854
|
}
|
|
24854
24855
|
let t = n.current;
|
|
24855
24856
|
if (c(t), !t) return;
|
|
24856
|
-
let i = a.current?.querySelector(`[${
|
|
24857
|
+
let i = a.current?.querySelector(`[${T}="${t.id}"]`);
|
|
24857
24858
|
i ? (i.classList.add("bg-(--green-4)"), l.current = i) : r.error("Context menu cell not found in table");
|
|
24858
24859
|
}, t[0] = n, t[1] = a, t[2] = u) : u = t[2];
|
|
24859
|
-
let d =
|
|
24860
|
+
let d = Zi(u), f;
|
|
24860
24861
|
t[3] === d ? f = t[4] : (f = (e) => {
|
|
24861
24862
|
e || d(!1);
|
|
24862
24863
|
}, t[3] = d, t[4] = f);
|
|
@@ -24881,7 +24882,7 @@ var KR = (e) => {
|
|
|
24881
24882
|
children: [m, g]
|
|
24882
24883
|
}), t[15] = f, t[16] = m, t[17] = g, t[18] = _) : _ = t[18], _;
|
|
24883
24884
|
}, qR = (e) => {
|
|
24884
|
-
let t = (0, J.c)(27), { cell: n, copySelectedCells: i } = e, a =
|
|
24885
|
+
let t = (0, J.c)(27), { cell: n, copySelectedCells: i } = e, a = li(zL).size > 1, o, s, c, l, u;
|
|
24885
24886
|
if (t[0] !== n) {
|
|
24886
24887
|
let e = n.getContext().table, i = n.getValue(), a = mk(e, n.row.index, n.column.id) ?? i;
|
|
24887
24888
|
l = () => {
|
|
@@ -25009,7 +25010,7 @@ function QR(e) {
|
|
|
25009
25010
|
t[3] === Symbol.for("react.memo_cache_sentinel") ? (p = () => {
|
|
25010
25011
|
f(), o(null);
|
|
25011
25012
|
}, t[3] = p) : p = t[3];
|
|
25012
|
-
let m =
|
|
25013
|
+
let m = Zi(p), h;
|
|
25013
25014
|
t[4] === Symbol.for("react.memo_cache_sentinel") ? (h = (e, t) => {
|
|
25014
25015
|
l.current = e;
|
|
25015
25016
|
let n = e.getBoundingClientRect();
|
|
@@ -25046,17 +25047,17 @@ function QR(e) {
|
|
|
25046
25047
|
let n = e.currentTarget, r = XR(t, i);
|
|
25047
25048
|
r == null || r === "" ? m() : (f(), s.current = window.setTimeout(() => g(n, r), ZR));
|
|
25048
25049
|
}, t[11] = m, t[12] = i, t[13] = x) : x = t[13];
|
|
25049
|
-
let S =
|
|
25050
|
+
let S = Zi(x), C;
|
|
25050
25051
|
t[14] === m ? C = t[15] : (C = () => m(), t[14] = m, t[15] = C);
|
|
25051
|
-
let w =
|
|
25052
|
+
let w = Zi(C), T;
|
|
25052
25053
|
t[16] === i ? T = t[17] : (T = (e, t) => {
|
|
25053
25054
|
if (f(), u.current) return;
|
|
25054
25055
|
let n = XR(t, i);
|
|
25055
25056
|
n != null && n !== "" && g(e.currentTarget, n);
|
|
25056
25057
|
}, t[16] = i, t[17] = T);
|
|
25057
|
-
let E =
|
|
25058
|
+
let E = Zi(T), D;
|
|
25058
25059
|
t[18] === m ? D = t[19] : (D = () => m(), t[18] = m, t[19] = D);
|
|
25059
|
-
let O =
|
|
25060
|
+
let O = Zi(D), k, A;
|
|
25060
25061
|
t[20] === m ? (k = t[21], A = t[22]) : (k = () => (window.addEventListener("scroll", m, {
|
|
25061
25062
|
passive: !0,
|
|
25062
25063
|
capture: !0
|
|
@@ -25081,7 +25082,7 @@ function QR(e) {
|
|
|
25081
25082
|
var $R = (0, K.memo)((e) => {
|
|
25082
25083
|
let t = (0, J.c)(9), { cellId: n, className: r } = e, a;
|
|
25083
25084
|
t[0] === n ? a = t[1] : (a = VL(n), t[0] = n, t[1] = a);
|
|
25084
|
-
let { isSelected: o, isCopied: s } =
|
|
25085
|
+
let { isSelected: o, isCopied: s } = li(a);
|
|
25085
25086
|
if (!o && !s) return null;
|
|
25086
25087
|
let c = o && "bg-(--green-3)", l = s && "bg-(--green-4) transition-colors duration-150", u;
|
|
25087
25088
|
t[2] !== r || t[3] !== c || t[4] !== l ? (u = i("absolute inset-0 pointer-events-none", c, l, r), t[2] = r, t[3] = c, t[4] = l, t[5] = u) : u = t[5];
|
|
@@ -25106,7 +25107,7 @@ var ez = (e) => {
|
|
|
25106
25107
|
}
|
|
25107
25108
|
});
|
|
25108
25109
|
}, t[0] = r, t[1] = n, t[2] = i) : i = t[2];
|
|
25109
|
-
let a =
|
|
25110
|
+
let a = Zi(i), s;
|
|
25110
25111
|
t[3] !== r || t[4] !== n ? (s = (e, t) => {
|
|
25111
25112
|
r.updateSelection({
|
|
25112
25113
|
newCell: e,
|
|
@@ -25114,7 +25115,7 @@ var ez = (e) => {
|
|
|
25114
25115
|
table: n
|
|
25115
25116
|
});
|
|
25116
25117
|
}, t[3] = r, t[4] = n, t[5] = s) : s = t[5];
|
|
25117
|
-
let c =
|
|
25118
|
+
let c = Zi(s), l;
|
|
25118
25119
|
t[6] !== r || t[7] !== n ? (l = (e, t) => {
|
|
25119
25120
|
r.navigate({
|
|
25120
25121
|
direction: t,
|
|
@@ -25122,7 +25123,7 @@ var ez = (e) => {
|
|
|
25122
25123
|
table: n
|
|
25123
25124
|
});
|
|
25124
25125
|
}, t[6] = r, t[7] = n, t[8] = l) : l = t[8];
|
|
25125
|
-
let u =
|
|
25126
|
+
let u = Zi(l), d;
|
|
25126
25127
|
t[9] === r ? d = t[10] : (d = (e) => {
|
|
25127
25128
|
r.setFocusedCell({
|
|
25128
25129
|
cellId: e.id,
|
|
@@ -25130,7 +25131,7 @@ var ez = (e) => {
|
|
|
25130
25131
|
columnId: e.column.id
|
|
25131
25132
|
});
|
|
25132
25133
|
}, t[9] = r, t[10] = d);
|
|
25133
|
-
let f =
|
|
25134
|
+
let f = Zi(d), p;
|
|
25134
25135
|
t[11] !== r || t[12] !== a || t[13] !== u || t[14] !== n || t[15] !== c ? (p = (e, t) => {
|
|
25135
25136
|
if (!(e.defaultPrevented || rz(e))) bb15: switch (e.key) {
|
|
25136
25137
|
case "c":
|
|
@@ -25162,7 +25163,7 @@ var ez = (e) => {
|
|
|
25162
25163
|
case "a": (e.metaKey || e.ctrlKey) && (e.preventDefault(), r.selectAllCells(n));
|
|
25163
25164
|
}
|
|
25164
25165
|
}, t[11] = r, t[12] = a, t[13] = u, t[14] = n, t[15] = c, t[16] = p) : p = t[16];
|
|
25165
|
-
let m =
|
|
25166
|
+
let m = Zi(p), h;
|
|
25166
25167
|
t[17] !== r || t[18] !== n ? (h = (e, t) => {
|
|
25167
25168
|
e.buttons !== 2 && (rz(e) || r.handleCellMouseDown({
|
|
25168
25169
|
cell: t,
|
|
@@ -25171,18 +25172,18 @@ var ez = (e) => {
|
|
|
25171
25172
|
table: n
|
|
25172
25173
|
}));
|
|
25173
25174
|
}, t[17] = r, t[18] = n, t[19] = h) : h = t[19];
|
|
25174
|
-
let g =
|
|
25175
|
+
let g = Zi(h), _;
|
|
25175
25176
|
t[20] === r ? _ = t[21] : (_ = () => {
|
|
25176
25177
|
r.setIsSelecting(!1);
|
|
25177
25178
|
}, t[20] = r, t[21] = _);
|
|
25178
|
-
let v =
|
|
25179
|
+
let v = Zi(_), y;
|
|
25179
25180
|
t[22] !== r || t[23] !== n ? (y = (e, t) => {
|
|
25180
25181
|
e.buttons === 1 && r.updateRangeSelection({
|
|
25181
25182
|
cell: t,
|
|
25182
25183
|
table: n
|
|
25183
25184
|
});
|
|
25184
25185
|
}, t[22] = r, t[23] = n, t[24] = y) : y = t[24];
|
|
25185
|
-
let b =
|
|
25186
|
+
let b = Zi(y), x;
|
|
25186
25187
|
return t[25] !== r.clearSelection || t[26] !== f || t[27] !== g || t[28] !== b || t[29] !== v || t[30] !== m || t[31] !== a || t[32] !== c ? (x = {
|
|
25187
25188
|
handleCellMouseDown: g,
|
|
25188
25189
|
handleCellMouseUp: v,
|
|
@@ -25210,9 +25211,9 @@ function rz(e) {
|
|
|
25210
25211
|
}
|
|
25211
25212
|
//#endregion
|
|
25212
25213
|
//#region src/components/data-table/range-focus/use-scroll-into-view.ts
|
|
25213
|
-
var iz =
|
|
25214
|
+
var iz = ai((e) => e(FL).focusedCell);
|
|
25214
25215
|
function az(e) {
|
|
25215
|
-
let t = (0, J.c)(3), n =
|
|
25216
|
+
let t = (0, J.c)(3), n = ti(), i;
|
|
25216
25217
|
t[0] !== e || t[1] !== n ? (i = (t) => {
|
|
25217
25218
|
t?.cellId && setTimeout(() => {
|
|
25218
25219
|
if (!e.current || n.get(iz)?.cellId !== t.cellId) return;
|
|
@@ -25228,7 +25229,7 @@ function az(e) {
|
|
|
25228
25229
|
inline: "nearest"
|
|
25229
25230
|
});
|
|
25230
25231
|
}, 0);
|
|
25231
|
-
}, t[0] = e, t[1] = n, t[2] = i) : i = t[2],
|
|
25232
|
+
}, t[0] = e, t[1] = n, t[2] = i) : i = t[2], Mi(iz, i);
|
|
25232
25233
|
}
|
|
25233
25234
|
//#endregion
|
|
25234
25235
|
//#region src/components/data-table/renderers.tsx
|
|
@@ -25274,7 +25275,7 @@ var sz = ({ table: e, columns: t, rowViewerPanelOpen: n, getRowIndex: r, viewedR
|
|
|
25274
25275
|
overscan: 10
|
|
25275
25276
|
});
|
|
25276
25277
|
az(u);
|
|
25277
|
-
let { handleCellMouseDown: f, handleCellMouseUp: p, handleCellMouseOver: m, handleCellsKeyDown: h, handleCellFocus: g, handleCopy: _ } = ez({ table: e }), v = (0, K.useRef)(null), y =
|
|
25278
|
+
let { handleCellMouseDown: f, handleCellMouseUp: p, handleCellMouseOver: m, handleCellsKeyDown: h, handleCellFocus: g, handleCopy: _ } = ez({ table: e }), v = (0, K.useRef)(null), y = Zi((e) => {
|
|
25278
25279
|
v.current = e;
|
|
25279
25280
|
}), b = QR({ table: e }), x = (t) => t.map((t) => {
|
|
25280
25281
|
let { className: n, style: r } = cz(t.column), a = t.column.columnDef.meta?.width, o = Object.assign({}, t.getUserStyling?.() || {}, r);
|
|
@@ -25282,7 +25283,7 @@ var sz = ({ table: e, columns: t, rowViewerPanelOpen: n, getRowIndex: r, viewedR
|
|
|
25282
25283
|
tabIndex: 0,
|
|
25283
25284
|
role: e.options.enableCellSelection ? "gridcell" : void 0,
|
|
25284
25285
|
"aria-selected": e.options.enableCellSelection ? t.getIsSelected?.() : void 0,
|
|
25285
|
-
...
|
|
25286
|
+
...z(t.id),
|
|
25286
25287
|
key: t.id,
|
|
25287
25288
|
className: i("whitespace-pre truncate outline-hidden focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring border-r border-r-border/75", !a && "max-w-[300px]", t.column.getColumnWrapping && t.column.getColumnWrapping?.() === "wrap" && "whitespace-pre-wrap min-w-[200px]", "px-1.5 py-[0.18rem]", n),
|
|
25288
25289
|
style: o,
|
|
@@ -25325,7 +25326,7 @@ var sz = ({ table: e, columns: t, rowViewerPanelOpen: n, getRowIndex: r, viewedR
|
|
|
25325
25326
|
})
|
|
25326
25327
|
]
|
|
25327
25328
|
}, e.id);
|
|
25328
|
-
}, w = t.length <= 4, T = t.length + +!!w,
|
|
25329
|
+
}, w = t.length <= 4, T = t.length + +!!w, E = /* @__PURE__ */ (0, q.jsx)(jM, {
|
|
25329
25330
|
ref: u,
|
|
25330
25331
|
children: (() => {
|
|
25331
25332
|
if (s.length === 0) return /* @__PURE__ */ (0, q.jsx)(NM, { children: /* @__PURE__ */ (0, q.jsx)(FM, {
|
|
@@ -25359,7 +25360,7 @@ var sz = ({ table: e, columns: t, rowViewerPanelOpen: n, getRowIndex: r, viewedR
|
|
|
25359
25360
|
})()
|
|
25360
25361
|
});
|
|
25361
25362
|
return /* @__PURE__ */ (0, q.jsxs)(q.Fragment, { children: [/* @__PURE__ */ (0, q.jsx)(KR, {
|
|
25362
|
-
tableBody:
|
|
25363
|
+
tableBody: E,
|
|
25363
25364
|
contextMenuRef: v,
|
|
25364
25365
|
tableRef: u,
|
|
25365
25366
|
copyAllCells: _
|
|
@@ -25399,7 +25400,7 @@ function lz({ table: e, column: t, thead: n }) {
|
|
|
25399
25400
|
//#endregion
|
|
25400
25401
|
//#region src/components/data-table/hooks/use-column-visibility.ts
|
|
25401
25402
|
function uz(e) {
|
|
25402
|
-
let [t, n] = $t(Object.fromEntries((e ?? []).map((e) => [e, !1])),
|
|
25403
|
+
let [t, n] = $t(Object.fromEntries((e ?? []).map((e) => [e, !1])), Xr);
|
|
25403
25404
|
return {
|
|
25404
25405
|
columnVisibility: t,
|
|
25405
25406
|
setColumnVisibility: n
|
|
@@ -25604,12 +25605,12 @@ var xz = ({ currentPage: e, totalPages: t, onPageChange: n }) => {
|
|
|
25604
25605
|
let [r, a] = K.useState(!1), [o, s] = K.useState(""), c = K.useMemo(() => bz(o, t), [o, t]), l = (e) => {
|
|
25605
25606
|
n(e - 1), s(""), a(!1);
|
|
25606
25607
|
}, u = Math.min(c.count * vz, 240);
|
|
25607
|
-
return /* @__PURE__ */ (0, q.jsxs)(
|
|
25608
|
+
return /* @__PURE__ */ (0, q.jsxs)(I, {
|
|
25608
25609
|
open: t > 1 && r,
|
|
25609
25610
|
onOpenChange: (e) => {
|
|
25610
25611
|
a(e), e || s("");
|
|
25611
25612
|
},
|
|
25612
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
25613
|
+
children: [/* @__PURE__ */ (0, q.jsx)(te, {
|
|
25613
25614
|
asChild: !0,
|
|
25614
25615
|
disabled: t <= 1,
|
|
25615
25616
|
children: /* @__PURE__ */ (0, q.jsxs)("button", {
|
|
@@ -25620,7 +25621,7 @@ var xz = ({ currentPage: e, totalPages: t, onPageChange: n }) => {
|
|
|
25620
25621
|
disabled: t <= 1,
|
|
25621
25622
|
children: [e, /* @__PURE__ */ (0, q.jsx)(Ie, { className: "h-3 w-3 opacity-50 mb-px" })]
|
|
25622
25623
|
})
|
|
25623
|
-
}), /* @__PURE__ */ (0, q.jsx)(
|
|
25624
|
+
}), /* @__PURE__ */ (0, q.jsx)(y, {
|
|
25624
25625
|
className: "w-36 p-0",
|
|
25625
25626
|
align: "center",
|
|
25626
25627
|
sideOffset: 6,
|
|
@@ -25711,16 +25712,16 @@ var xz = ({ currentPage: e, totalPages: t, onPageChange: n }) => {
|
|
|
25711
25712
|
});
|
|
25712
25713
|
};
|
|
25713
25714
|
function Cz(e, t) {
|
|
25714
|
-
return `${rr(e, t)} ${new
|
|
25715
|
+
return `${rr(e, t)} ${new ne("row").pluralize(e)}`;
|
|
25715
25716
|
}
|
|
25716
25717
|
var wz = ({ numRows: e, totalColumns: t, hiddenColumns: n, locale: r }) => {
|
|
25717
25718
|
let i = e === "too_many" ? "Unknown" : Cz(e, r), a = n ?? 0, o = t - a;
|
|
25718
25719
|
return {
|
|
25719
|
-
rowsAndColumns: [i, a > 0 ? `${rr(o, r)} visible` : `${rr(t, r)} ${new
|
|
25720
|
+
rowsAndColumns: [i, a > 0 ? `${rr(o, r)} visible` : `${rr(t, r)} ${new ne("column").pluralize(t)}`].join(", "),
|
|
25720
25721
|
hiddenSuffix: a > 0 ? `(${rr(a, r)} hidden)` : null
|
|
25721
25722
|
};
|
|
25722
25723
|
}, Tz = 3, Ez = (e) => {
|
|
25723
|
-
let t = (0, J.c)(21), { table: n, className: r } = e, { locale: a } = Fe(), o =
|
|
25724
|
+
let t = (0, J.c)(21), { table: n, className: r } = e, { locale: a } = Fe(), o = li(zL), s = kL(o);
|
|
25724
25725
|
if (s < 2) {
|
|
25725
25726
|
let e;
|
|
25726
25727
|
t[0] === r ? e = t[1] : (e = i("text-xs text-muted-foreground/80 italic", r), t[0] = r, t[1] = e);
|
|
@@ -25810,7 +25811,7 @@ function Nz(e, t) {
|
|
|
25810
25811
|
//#endregion
|
|
25811
25812
|
//#region src/components/data-table/TableBottomBar.tsx
|
|
25812
25813
|
var Pz = ({ pagination: e, hasNextPage: t, totalColumns: n, selection: r, onRowSelectionChange: a, table: s, getRowIds: c, showPageSizeSelector: l, tableLoading: d, part: f, className: m }) => {
|
|
25813
|
-
let { locale: h } = Fe(), g =
|
|
25814
|
+
let { locale: h } = Fe(), g = ra(), _ = (e) => {
|
|
25814
25815
|
if (!a) return;
|
|
25815
25816
|
if (!e) {
|
|
25816
25817
|
a({});
|
|
@@ -25908,7 +25909,7 @@ var Pz = ({ pagination: e, hasNextPage: t, totalColumns: n, selection: r, onRowS
|
|
|
25908
25909
|
let t = (0, J.c)(9), { error: n, style: r, className: a, showIcon: o } = e, s = o === void 0 || o, c;
|
|
25909
25910
|
t[0] === a ? c = t[1] : (c = i("text-sm bg-red-50 dark:bg-red-900 text-red-600 dark:text-red-50 flex items-center gap-2 p-2 h-8", a), t[0] = a, t[1] = c);
|
|
25910
25911
|
let l;
|
|
25911
|
-
t[2] === s ? l = t[3] : (l = s && /* @__PURE__ */ (0, q.jsx)(
|
|
25912
|
+
t[2] === s ? l = t[3] : (l = s && /* @__PURE__ */ (0, q.jsx)(Ur, { className: "h-4 w-4 mt-0.5" }), t[2] = s, t[3] = l);
|
|
25912
25913
|
let u;
|
|
25913
25914
|
return t[4] !== n.message || t[5] !== r || t[6] !== c || t[7] !== l ? (u = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
25914
25915
|
className: c,
|
|
@@ -25919,7 +25920,7 @@ var Pz = ({ pagination: e, hasNextPage: t, totalColumns: n, selection: r, onRowS
|
|
|
25919
25920
|
let t = (0, J.c)(7), { message: n, className: r, style: a } = e, o;
|
|
25920
25921
|
t[0] === r ? o = t[1] : (o = i("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);
|
|
25921
25922
|
let s;
|
|
25922
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, q.jsx)(
|
|
25923
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, q.jsx)(j, { className: "h-4 w-4 animate-spin" }), t[2] = s) : s = t[2];
|
|
25923
25924
|
let c;
|
|
25924
25925
|
return t[3] !== n || t[4] !== a || t[5] !== o ? (c = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
25925
25926
|
className: o,
|
|
@@ -25937,8 +25938,8 @@ var Pz = ({ pagination: e, hasNextPage: t, totalColumns: n, selection: r, onRowS
|
|
|
25937
25938
|
}, zz = (e) => {
|
|
25938
25939
|
let t = (0, J.c)(12), { columnName: n, dataType: r, className: a } = e, o, s;
|
|
25939
25940
|
if (t[0] !== r) {
|
|
25940
|
-
let e =
|
|
25941
|
-
o =
|
|
25941
|
+
let e = O(r);
|
|
25942
|
+
o = k[e], s = de(e), t[0] = r, t[1] = o, t[2] = s;
|
|
25942
25943
|
} else o = t[1], s = t[2];
|
|
25943
25944
|
let c = s, l;
|
|
25944
25945
|
t[3] === a ? l = t[4] : (l = i("flex flex-row items-center gap-1.5", a), t[3] = a, t[4] = l);
|
|
@@ -25986,7 +25987,7 @@ var Uz = ({ table: e }) => {
|
|
|
25986
25987
|
label: e.id,
|
|
25987
25988
|
disabled: !e.getCanHide(),
|
|
25988
25989
|
data: { dataType: e.columnDef.meta?.dataType }
|
|
25989
|
-
})), r = t.filter((e) => !e.getIsVisible()).map((e) => e.id), a = t.filter((e) => e.getCanHide()).map((e) => e.id), s =
|
|
25990
|
+
})), r = t.filter((e) => !e.getIsVisible()).map((e) => e.id), a = t.filter((e) => e.getCanHide()).map((e) => e.id), s = $i.difference(a, r), c = s.length, l = (n) => {
|
|
25990
25991
|
let r = new Set(Array.isArray(n) ? n : []);
|
|
25991
25992
|
e.setColumnVisibility((e) => ({
|
|
25992
25993
|
...e,
|
|
@@ -26003,10 +26004,10 @@ var Uz = ({ table: e }) => {
|
|
|
26003
26004
|
visibleHideableColumnIds: s,
|
|
26004
26005
|
hideableColumnIdSet: new Set(a)
|
|
26005
26006
|
}, h = p.length > 0 || f.length > 0;
|
|
26006
|
-
return /* @__PURE__ */ (0, q.jsxs)(
|
|
26007
|
+
return /* @__PURE__ */ (0, q.jsxs)(I, {
|
|
26007
26008
|
open: d.open,
|
|
26008
26009
|
onOpenChange: d.setOpen,
|
|
26009
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
26010
|
+
children: [/* @__PURE__ */ (0, q.jsx)(te, {
|
|
26010
26011
|
asChild: !0,
|
|
26011
26012
|
children: /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
26012
26013
|
variant: "text",
|
|
@@ -26016,7 +26017,7 @@ var Uz = ({ table: e }) => {
|
|
|
26016
26017
|
className: i("print:hidden text-xs gap-1", d.open ? "text-primary" : "text-muted-foreground"),
|
|
26017
26018
|
children: [/* @__PURE__ */ (0, q.jsx)(Ja, { className: "w-3.5 h-3.5" }), "Columns"]
|
|
26018
26019
|
})
|
|
26019
|
-
}), /* @__PURE__ */ (0, q.jsx)(
|
|
26020
|
+
}), /* @__PURE__ */ (0, q.jsx)(y, {
|
|
26020
26021
|
className: "w-64 p-0",
|
|
26021
26022
|
align: "end",
|
|
26022
26023
|
children: /* @__PURE__ */ (0, q.jsxs)(Px, {
|
|
@@ -26033,7 +26034,7 @@ var Uz = ({ table: e }) => {
|
|
|
26033
26034
|
disabled: r.length === 0,
|
|
26034
26035
|
onSelect: () => l([]),
|
|
26035
26036
|
className: "cursor-pointer",
|
|
26036
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
26037
|
+
children: [/* @__PURE__ */ (0, q.jsx)(D, { className: "w-3 h-3 mr-1.5" }), "Show all"]
|
|
26037
26038
|
}),
|
|
26038
26039
|
/* @__PURE__ */ (0, q.jsxs)(Bx, {
|
|
26039
26040
|
value: "__hide_all__",
|
|
@@ -26063,7 +26064,7 @@ var Uz = ({ table: e }) => {
|
|
|
26063
26064
|
onSelect: e.run,
|
|
26064
26065
|
className: "cursor-pointer",
|
|
26065
26066
|
children: [
|
|
26066
|
-
e.kind === "select-matching" ? /* @__PURE__ */ (0, q.jsx)($a, { className: "w-3 h-3 mr-1.5" }) : /* @__PURE__ */ (0, q.jsx)(
|
|
26067
|
+
e.kind === "select-matching" ? /* @__PURE__ */ (0, q.jsx)($a, { className: "w-3 h-3 mr-1.5" }) : /* @__PURE__ */ (0, q.jsx)(D, { className: "w-3 h-3 mr-1.5" }),
|
|
26067
26068
|
e.kind === "select-matching" ? "Hide" : "Show",
|
|
26068
26069
|
" ",
|
|
26069
26070
|
e.items.length,
|
|
@@ -26096,7 +26097,7 @@ var Uz = ({ table: e }) => {
|
|
|
26096
26097
|
iconClassName: "w-3 h-3"
|
|
26097
26098
|
}), /* @__PURE__ */ (0, q.jsx)("span", {
|
|
26098
26099
|
className: i(r ? "text-primary" : "text-muted-foreground"),
|
|
26099
|
-
children: r ? /* @__PURE__ */ (0, q.jsx)($a, { className: "w-3 h-3" }) : /* @__PURE__ */ (0, q.jsx)(
|
|
26100
|
+
children: r ? /* @__PURE__ */ (0, q.jsx)($a, { className: "w-3 h-3" }) : /* @__PURE__ */ (0, q.jsx)(D, { className: "w-3 h-3" })
|
|
26100
26101
|
})]
|
|
26101
26102
|
})]
|
|
26102
26103
|
})] }, t.value);
|
|
@@ -26105,7 +26106,7 @@ var Uz = ({ table: e }) => {
|
|
|
26105
26106
|
})
|
|
26106
26107
|
})]
|
|
26107
26108
|
});
|
|
26108
|
-
}, Wz =
|
|
26109
|
+
}, Wz = ai(null);
|
|
26109
26110
|
//#endregion
|
|
26110
26111
|
//#region src/hooks/useStateForKey.ts
|
|
26111
26112
|
function Gz(e, t) {
|
|
@@ -26258,7 +26259,7 @@ async function eB(e) {
|
|
|
26258
26259
|
} catch (e) {
|
|
26259
26260
|
return r.error("Error downloading as PNG", e), p({
|
|
26260
26261
|
title: "Failed to download as PNG",
|
|
26261
|
-
description:
|
|
26262
|
+
description: Bi(e),
|
|
26262
26263
|
variant: "danger"
|
|
26263
26264
|
}), !1;
|
|
26264
26265
|
} finally {
|
|
@@ -26319,7 +26320,7 @@ function aB({ contents: e, filename: t, mediaType: n }) {
|
|
|
26319
26320
|
//#endregion
|
|
26320
26321
|
//#region src/components/datasources/install-package-button.tsx
|
|
26321
26322
|
var oB = (e) => {
|
|
26322
|
-
let t = (0, J.c)(13), { packages: n, showMaxPackages: r, className: a, onInstall: o } = e, { handleInstallPackages: s } = yE(), c =
|
|
26323
|
+
let t = (0, J.c)(13), { packages: n, showMaxPackages: r, className: a, onInstall: o } = e, { handleInstallPackages: s } = yE(), c = ia();
|
|
26323
26324
|
if (!n || n.length === 0 || !c) return null;
|
|
26324
26325
|
let l;
|
|
26325
26326
|
t[0] !== s || t[1] !== o || t[2] !== n ? (l = () => {
|
|
@@ -26343,7 +26344,7 @@ var oB = (e) => {
|
|
|
26343
26344
|
}), t[9] = l, t[10] = d, t[11] = f, t[12] = p) : p = t[12], p;
|
|
26344
26345
|
}, sB = (e) => {
|
|
26345
26346
|
let t = (0, J.c)(20), { packages: n, featureName: r, description: a, onInstall: o, className: s } = e;
|
|
26346
|
-
if (!
|
|
26347
|
+
if (!ia()) {
|
|
26347
26348
|
let e;
|
|
26348
26349
|
t[0] === s ? e = t[1] : (e = i("text-xs", s), t[0] = s, t[1] = e);
|
|
26349
26350
|
let n;
|
|
@@ -26427,7 +26428,7 @@ var dB = [
|
|
|
26427
26428
|
label: "JSON",
|
|
26428
26429
|
format: "json",
|
|
26429
26430
|
description: "Raw JSON data",
|
|
26430
|
-
icon:
|
|
26431
|
+
icon: V,
|
|
26431
26432
|
canDownload: !0,
|
|
26432
26433
|
canCopy: !0
|
|
26433
26434
|
},
|
|
@@ -26451,7 +26452,7 @@ var dB = [
|
|
|
26451
26452
|
label: "Markdown",
|
|
26452
26453
|
format: "markdown",
|
|
26453
26454
|
description: "Preserves hyperlinks and formatting",
|
|
26454
|
-
icon:
|
|
26455
|
+
icon: w,
|
|
26455
26456
|
canDownload: !1,
|
|
26456
26457
|
canCopy: !0
|
|
26457
26458
|
}
|
|
@@ -26513,7 +26514,7 @@ function vB(e, t, n) {
|
|
|
26513
26514
|
break;
|
|
26514
26515
|
case "parquet":
|
|
26515
26516
|
case "geojson": break;
|
|
26516
|
-
default:
|
|
26517
|
+
default: Br(t);
|
|
26517
26518
|
}
|
|
26518
26519
|
return Object.keys(r).length > 0 ? r : void 0;
|
|
26519
26520
|
}
|
|
@@ -26533,10 +26534,10 @@ function bB(e, t) {
|
|
|
26533
26534
|
case "parquet":
|
|
26534
26535
|
case "geojson":
|
|
26535
26536
|
case "markdown": return null;
|
|
26536
|
-
default: return
|
|
26537
|
+
default: return Br(t), null;
|
|
26537
26538
|
}
|
|
26538
26539
|
}
|
|
26539
|
-
var xB = (e, t = !1) => e === "parquet" && t ? "GeoParquet" : dB.find((t) => t.format === e)?.label ?? e, SB = (e) => e.destination === "download" ? "Failed to download" : "Failed to copy to clipboard", CB = (e) => typeof e == "string" ? e :
|
|
26540
|
+
var xB = (e, t = !1) => e === "parquet" && t ? "GeoParquet" : dB.find((t) => t.format === e)?.label ?? e, SB = (e) => e.destination === "download" ? "Failed to download" : "Failed to copy to clipboard", CB = (e) => typeof e == "string" ? e : Bi(e), wB = "The selected geometry is no longer available. Choose another geometry to export.";
|
|
26540
26541
|
function TB(e, t, n) {
|
|
26541
26542
|
if (e.formats[t]?.available === !1) return "format-unavailable";
|
|
26542
26543
|
let r = e.geometry_columns.find((e) => e.name === n);
|
|
@@ -26551,7 +26552,7 @@ function DB(e, t, n) {
|
|
|
26551
26552
|
case "format-unavailable":
|
|
26552
26553
|
case "geometry-required":
|
|
26553
26554
|
case null: return null;
|
|
26554
|
-
default: return
|
|
26555
|
+
default: return Br(e), null;
|
|
26555
26556
|
}
|
|
26556
26557
|
}
|
|
26557
26558
|
var OB = (e) => {
|
|
@@ -26561,64 +26562,64 @@ var OB = (e) => {
|
|
|
26561
26562
|
d.source !== r && f({ source: r });
|
|
26562
26563
|
let [h, g] = Kz(d, NB), _ = K.useRef(!1), v;
|
|
26563
26564
|
t[2] === d ? v = t[3] : (v = (e) => _.current && e === d, t[2] = d, t[3] = v);
|
|
26564
|
-
let y =
|
|
26565
|
-
t[4] !== d || t[5] !== a || t[6] !== n ? (
|
|
26565
|
+
let y = Zi(v), x, S;
|
|
26566
|
+
t[4] !== d || t[5] !== a || t[6] !== n ? (x = async () => !a || !n ? null : {
|
|
26566
26567
|
context: d,
|
|
26567
26568
|
metadata: await n({})
|
|
26568
|
-
},
|
|
26569
|
+
}, S = [
|
|
26569
26570
|
a,
|
|
26570
26571
|
n,
|
|
26571
26572
|
d
|
|
26572
|
-
], t[4] = d, t[5] = a, t[6] = n, t[7] =
|
|
26573
|
-
let
|
|
26574
|
-
t[9] !==
|
|
26575
|
-
let
|
|
26576
|
-
|
|
26577
|
-
let
|
|
26578
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
26579
|
-
_.current = !1,
|
|
26580
|
-
}), L = [], t[12] =
|
|
26573
|
+
], t[4] = d, t[5] = a, t[6] = n, t[7] = x, t[8] = S) : (x = t[7], S = t[8]);
|
|
26574
|
+
let C = Ea(x, S), w = C.status === "success" && C.data?.context === d ? C.data.metadata : null, T;
|
|
26575
|
+
t[9] !== C.error || t[10] !== C.status ? (T = C.status === "error" ? CB(C.error) : null, t[9] = C.error, t[10] = C.status, t[11] = T) : T = t[11];
|
|
26576
|
+
let E = T, [D, O] = K.useState(null), [k, A] = K.useState(null);
|
|
26577
|
+
w !== k && (A(w), w && O((e) => e !== null && w.geometry_columns.some((t) => t.name === e) ? e : w.default_geometry_column));
|
|
26578
|
+
let j = !!w?.geometry_columns.length, [M, N] = K.useState(null), P = K.useRef(null), F = K.useRef(null), I = K.useRef(0), ee, L;
|
|
26579
|
+
t[12] === Symbol.for("react.memo_cache_sentinel") ? (ee = () => (_.current = !0, () => {
|
|
26580
|
+
_.current = !1, I.current += 1;
|
|
26581
|
+
}), L = [], t[12] = ee, t[13] = L) : (ee = t[12], L = t[13]), K.useLayoutEffect(ee, L);
|
|
26581
26582
|
let R;
|
|
26582
26583
|
t[14] === Symbol.for("react.memo_cache_sentinel") ? (R = () => {
|
|
26583
|
-
|
|
26584
|
+
I.current += 1;
|
|
26584
26585
|
}, t[14] = R) : R = t[14];
|
|
26585
26586
|
let z;
|
|
26586
26587
|
t[15] === r ? z = t[16] : (z = [r], t[15] = r, t[16] = z), K.useEffect(R, z);
|
|
26587
|
-
let B =
|
|
26588
|
+
let B = li(Wz), te = !!(B && e.sizeBytes != null && e.sizeBytes > B.limitBytes), V = !!(B && (e.sizeBytesIsLoading || te)), ne = V ? e.sizeBytesIsLoading ? "Checking download size…" : B?.unavailableMessage : "Export", re = a ? "text-primary" : "text-muted-foreground", ie;
|
|
26588
26589
|
t[17] === re ? ie = t[18] : (ie = i("print:hidden text-xs gap-1", re), t[17] = re, t[18] = ie);
|
|
26589
26590
|
let ae;
|
|
26590
26591
|
t[19] === Symbol.for("react.memo_cache_sentinel") ? (ae = /* @__PURE__ */ (0, q.jsx)(Xa, { className: "w-3.5 h-3.5" }), t[19] = ae) : ae = t[19];
|
|
26591
26592
|
let oe;
|
|
26592
|
-
t[20] !==
|
|
26593
|
-
ref:
|
|
26593
|
+
t[20] !== V || t[21] !== ie ? (oe = /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
26594
|
+
ref: P,
|
|
26594
26595
|
"data-testid": "export-button",
|
|
26595
26596
|
size: "xs",
|
|
26596
26597
|
variant: "text",
|
|
26597
|
-
disabled:
|
|
26598
|
+
disabled: V,
|
|
26598
26599
|
className: ie,
|
|
26599
26600
|
children: [ae, "Export"]
|
|
26600
|
-
}), t[20] =
|
|
26601
|
+
}), t[20] = V, t[21] = ie, t[22] = oe) : oe = t[22];
|
|
26601
26602
|
let se = oe, ce;
|
|
26602
26603
|
t[23] === r ? ce = t[24] : (ce = (e) => {
|
|
26603
|
-
o(e), e || (
|
|
26604
|
+
o(e), e || (I.current += 1, N(null), c(gB), O(null), f({ source: r }));
|
|
26604
26605
|
}, t[23] = r, t[24] = ce);
|
|
26605
26606
|
let le = ce, ue;
|
|
26606
26607
|
t[25] === g ? ue = t[26] : (ue = () => {
|
|
26607
|
-
let e =
|
|
26608
|
-
return
|
|
26608
|
+
let e = I.current + 1;
|
|
26609
|
+
return I.current = e, g(null), e;
|
|
26609
26610
|
}, t[25] = g, t[26] = ue);
|
|
26610
26611
|
let de = ue, fe;
|
|
26611
26612
|
t[27] === g ? fe = t[28] : (fe = (e, t) => {
|
|
26612
|
-
e ===
|
|
26613
|
+
e === I.current && g(t);
|
|
26613
26614
|
}, t[27] = g, t[28] = fe);
|
|
26614
26615
|
let pe = fe, me;
|
|
26615
|
-
t[29] !==
|
|
26616
|
+
t[29] !== D || t[30] !== e || t[31] !== pe || t[32] !== s ? (me = async (t, n, r) => {
|
|
26616
26617
|
let i = vB(s, t, n.destination), a = {
|
|
26617
26618
|
format: t,
|
|
26618
26619
|
...i ? { options: i } : {},
|
|
26619
|
-
...fB(t) &&
|
|
26620
|
+
...fB(t) && D !== null ? { geometry_column: D } : {}
|
|
26620
26621
|
}, o = await e.downloadAs(a);
|
|
26621
|
-
return r ===
|
|
26622
|
+
return r === I.current ? o.missing_packages && o.missing_packages.length > 0 ? (pe(r, {
|
|
26622
26623
|
kind: "missing-packages",
|
|
26623
26624
|
packages: o.missing_packages,
|
|
26624
26625
|
description: o.error,
|
|
@@ -26632,17 +26633,17 @@ var OB = (e) => {
|
|
|
26632
26633
|
url: o.url,
|
|
26633
26634
|
filename: o.filename
|
|
26634
26635
|
} : null;
|
|
26635
|
-
}, t[29] =
|
|
26636
|
+
}, t[29] = D, t[30] = e, t[31] = pe, t[32] = s, t[33] = me) : me = t[33];
|
|
26636
26637
|
let he = me, ge;
|
|
26637
|
-
t[34] !== de || t[35] !==
|
|
26638
|
+
t[34] !== de || t[35] !== j || t[36] !== he || t[37] !== pe ? (ge = async (e) => {
|
|
26638
26639
|
let t = {
|
|
26639
26640
|
destination: "download",
|
|
26640
26641
|
format: e
|
|
26641
|
-
}, n = de(), r = xB(e,
|
|
26642
|
+
}, n = de(), r = xB(e, j);
|
|
26642
26643
|
try {
|
|
26643
26644
|
await Qz(`Preparing ${r} export...`, async () => {
|
|
26644
26645
|
let r = await he(e, t, n);
|
|
26645
|
-
if (!r || n !==
|
|
26646
|
+
if (!r || n !== I.current) return !1;
|
|
26646
26647
|
let i = (r.filename ?? "").trim(), a = `${qz.withoutExtension(i) || "download"}.${e}`, o = r.url;
|
|
26647
26648
|
if (!o.startsWith("data:")) {
|
|
26648
26649
|
let e = o.includes("?") ? "&" : "?", t = new URLSearchParams({
|
|
@@ -26662,10 +26663,10 @@ var OB = (e) => {
|
|
|
26662
26663
|
action: t
|
|
26663
26664
|
});
|
|
26664
26665
|
}
|
|
26665
|
-
}, t[34] = de, t[35] =
|
|
26666
|
+
}, t[34] = de, t[35] = j, t[36] = he, t[37] = pe, t[38] = ge) : ge = t[38];
|
|
26666
26667
|
let _e = ge, ve;
|
|
26667
|
-
t[39] !== le || t[40] !==
|
|
26668
|
-
await Qz(`Preparing ${xB(e,
|
|
26668
|
+
t[39] !== le || t[40] !== j || t[41] !== he ? (ve = async (e, t, n) => {
|
|
26669
|
+
await Qz(`Preparing ${xB(e, j)} for clipboard...`, async () => {
|
|
26669
26670
|
let r = pB[e], i = await he(r, t, n);
|
|
26670
26671
|
if (!i) return;
|
|
26671
26672
|
let a;
|
|
@@ -26682,16 +26683,16 @@ var OB = (e) => {
|
|
|
26682
26683
|
}
|
|
26683
26684
|
case "markdown": {
|
|
26684
26685
|
let e = await jB(i.url);
|
|
26685
|
-
a =
|
|
26686
|
+
a = mr(e);
|
|
26686
26687
|
break bb190;
|
|
26687
26688
|
}
|
|
26688
26689
|
default:
|
|
26689
|
-
|
|
26690
|
+
Br(e);
|
|
26690
26691
|
return;
|
|
26691
26692
|
}
|
|
26692
|
-
n ===
|
|
26693
|
+
n === I.current && (await m(a), p({ title: "Copied to clipboard" }), le(!1));
|
|
26693
26694
|
});
|
|
26694
|
-
}, t[39] = le, t[40] =
|
|
26695
|
+
}, t[39] = le, t[40] = j, t[41] = he, t[42] = ve) : ve = t[42];
|
|
26695
26696
|
let ye = ve, be;
|
|
26696
26697
|
t[43] !== de || t[44] !== ye || t[45] !== pe ? (be = async (e) => {
|
|
26697
26698
|
let t = {
|
|
@@ -26715,28 +26716,28 @@ var OB = (e) => {
|
|
|
26715
26716
|
e.destination === "download" ? _e(e.format) : xe(e.format);
|
|
26716
26717
|
}, t[47] = xe, t[48] = _e, t[49] = H) : H = t[49];
|
|
26717
26718
|
let Se = H, Ce;
|
|
26718
|
-
t[50] !==
|
|
26719
|
+
t[50] !== D || t[51] !== n || t[52] !== y || t[53] !== C || t[54] !== Se || t[55] !== pe || t[56] !== g ? (Ce = async (e, t) => {
|
|
26719
26720
|
if (!y(t)) return;
|
|
26720
26721
|
if (!fB(e.format) || !n) {
|
|
26721
26722
|
Se(e);
|
|
26722
26723
|
return;
|
|
26723
26724
|
}
|
|
26724
|
-
let r =
|
|
26725
|
+
let r = I.current, i = () => y(t) && r === I.current, a;
|
|
26725
26726
|
try {
|
|
26726
26727
|
a = await n({});
|
|
26727
26728
|
} catch {
|
|
26728
|
-
i() &&
|
|
26729
|
+
i() && C.refetch();
|
|
26729
26730
|
return;
|
|
26730
26731
|
}
|
|
26731
26732
|
if (!i()) return;
|
|
26732
|
-
|
|
26733
|
-
let o = TB(a, e.format,
|
|
26733
|
+
C.refetch();
|
|
26734
|
+
let o = TB(a, e.format, D);
|
|
26734
26735
|
switch (o) {
|
|
26735
26736
|
case null:
|
|
26736
26737
|
Se(e);
|
|
26737
26738
|
return;
|
|
26738
26739
|
case "obsolete-geometry":
|
|
26739
|
-
|
|
26740
|
+
O(a.default_geometry_column), pe(r, {
|
|
26740
26741
|
kind: "error",
|
|
26741
26742
|
title: SB(e),
|
|
26742
26743
|
description: wB,
|
|
@@ -26749,10 +26750,10 @@ var OB = (e) => {
|
|
|
26749
26750
|
case "missing-crs":
|
|
26750
26751
|
g(null);
|
|
26751
26752
|
return;
|
|
26752
|
-
default:
|
|
26753
|
+
default: Br(o);
|
|
26753
26754
|
}
|
|
26754
|
-
}, t[50] =
|
|
26755
|
-
let we =
|
|
26755
|
+
}, t[50] = D, t[51] = n, t[52] = y, t[53] = C, t[54] = Se, t[55] = pe, t[56] = g, t[57] = Ce) : Ce = t[57];
|
|
26756
|
+
let we = Zi(Ce), Te;
|
|
26756
26757
|
t[58] !== d || t[59] !== we ? (Te = (e) => {
|
|
26757
26758
|
let t = d;
|
|
26758
26759
|
return () => {
|
|
@@ -26760,28 +26761,28 @@ var OB = (e) => {
|
|
|
26760
26761
|
};
|
|
26761
26762
|
}, t[58] = d, t[59] = we, t[60] = Te) : Te = t[60];
|
|
26762
26763
|
let Ee = Te, De;
|
|
26763
|
-
t[61] ===
|
|
26764
|
-
(_B(e) || fB(e) &&
|
|
26765
|
-
}, t[61] =
|
|
26764
|
+
t[61] === j ? De = t[62] : (De = (e) => {
|
|
26765
|
+
(_B(e) || fB(e) && j) && N((t) => t === e ? null : e);
|
|
26766
|
+
}, t[61] = j, t[62] = De);
|
|
26766
26767
|
let Oe = De, ke;
|
|
26767
|
-
t[63] !== se || t[64] !==
|
|
26768
|
+
t[63] !== se || t[64] !== V ? (ke = V ? /* @__PURE__ */ (0, q.jsx)("span", {
|
|
26768
26769
|
tabIndex: 0,
|
|
26769
26770
|
className: "inline-flex",
|
|
26770
26771
|
children: se
|
|
26771
26772
|
}) : /* @__PURE__ */ (0, q.jsx)(Sa, {
|
|
26772
26773
|
asChild: !0,
|
|
26773
26774
|
children: se
|
|
26774
|
-
}), t[63] = se, t[64] =
|
|
26775
|
+
}), t[63] = se, t[64] = V, t[65] = ke) : ke = t[65];
|
|
26775
26776
|
let Ae;
|
|
26776
|
-
t[66] !== ke || t[67] !==
|
|
26777
|
-
content:
|
|
26777
|
+
t[66] !== ke || t[67] !== ne ? (Ae = /* @__PURE__ */ (0, q.jsx)(U, {
|
|
26778
|
+
content: ne,
|
|
26778
26779
|
children: ke
|
|
26779
|
-
}), t[66] = ke, t[67] =
|
|
26780
|
+
}), t[66] = ke, t[67] = ne, t[68] = Ae) : Ae = t[68];
|
|
26780
26781
|
let je, Me;
|
|
26781
26782
|
t[69] === Symbol.for("react.memo_cache_sentinel") ? (je = (e) => {
|
|
26782
|
-
e.preventDefault(),
|
|
26783
|
+
e.preventDefault(), F.current?.focus();
|
|
26783
26784
|
}, Me = (e) => {
|
|
26784
|
-
e.preventDefault(),
|
|
26785
|
+
e.preventDefault(), P.current?.focus();
|
|
26785
26786
|
}, t[69] = je, t[70] = Me) : (je = t[69], Me = t[70]);
|
|
26786
26787
|
let Ne;
|
|
26787
26788
|
t[71] === le ? Ne = t[72] : (Ne = (e) => {
|
|
@@ -26790,10 +26791,10 @@ var OB = (e) => {
|
|
|
26790
26791
|
let Pe;
|
|
26791
26792
|
t[73] === Symbol.for("react.memo_cache_sentinel") ? (Pe = /* @__PURE__ */ (0, q.jsxs)(ba, { children: [/* @__PURE__ */ (0, q.jsx)(ya, { children: "Export table" }), /* @__PURE__ */ (0, q.jsx)(Ca, { children: "Download a file or copy to the clipboard." })] }), t[73] = Pe) : Pe = t[73];
|
|
26792
26793
|
let Fe;
|
|
26793
|
-
if (t[74] !== Ee || t[75] !==
|
|
26794
|
+
if (t[74] !== Ee || t[75] !== M || t[76] !== h || t[77] !== D || t[78] !== n || t[79] !== xe || t[80] !== _e || t[81] !== j || t[82] !== w || t[83] !== E || t[84] !== C.refetch || t[85] !== s || t[86] !== Oe) {
|
|
26794
26795
|
let e;
|
|
26795
|
-
t[88] ===
|
|
26796
|
-
let t = xB(e.format,
|
|
26796
|
+
t[88] === j ? e = t[89] : (e = (e) => e.format !== "geojson" || j, t[88] = j, t[89] = e), Fe = dB.filter(e).map((e) => {
|
|
26797
|
+
let t = xB(e.format, j), r = _B(e.format) || fB(e.format) && j ? e.format : null, a = r !== null && M === r, o = r ? "button" : "div", l = `export-options-${e.format}`, d = `${l}-description`, f = `${l}-summary`, p = h?.action.format === e.format ? h : null, m = fB(e.format) && j ? EB(D) ?? "Choose geometry" : bB(s, e.format), g = w?.geometry_columns.findIndex((e) => e.name === D) ?? -1, _ = fB(e.format) ? w?.formats[e.format] : void 0, v = fB(e.format) && w ? TB(w, e.format, D) : null, y = E ? `Could not load geometry options: ${E}` : _?.reason ?? DB(v, t, D), x = p?.kind === "missing-packages" ? p : null, S = x?.packages ?? (_?.available === !1 ? _.missing_packages : []), T = fB(e.format) && (!!n && !w || v !== null), k = fB(e.format) && (T || S.length > 0);
|
|
26797
26798
|
return /* @__PURE__ */ (0, q.jsxs)("li", {
|
|
26798
26799
|
"data-testid": `export-row-${e.format}`,
|
|
26799
26800
|
className: i(a && "bg-muted/40"),
|
|
@@ -26834,7 +26835,7 @@ var OB = (e) => {
|
|
|
26834
26835
|
}), /* @__PURE__ */ (0, q.jsx)("span", {
|
|
26835
26836
|
id: d,
|
|
26836
26837
|
className: "text-xs text-muted-foreground leading-tight",
|
|
26837
|
-
children: e.format === "parquet" &&
|
|
26838
|
+
children: e.format === "parquet" && j ? "Parquet with geometry and CRS metadata" : e.description
|
|
26838
26839
|
})]
|
|
26839
26840
|
})]
|
|
26840
26841
|
})]
|
|
@@ -26849,8 +26850,8 @@ var OB = (e) => {
|
|
|
26849
26850
|
variant: "ghost",
|
|
26850
26851
|
size: "icon",
|
|
26851
26852
|
"aria-label": `Download ${t}`,
|
|
26852
|
-
disabled: !e.canDownload ||
|
|
26853
|
-
onClick: e.canDownload && !
|
|
26853
|
+
disabled: !e.canDownload || T || S.length > 0,
|
|
26854
|
+
onClick: e.canDownload && !T && S.length === 0 ? () => {
|
|
26854
26855
|
_e(e.format);
|
|
26855
26856
|
} : void 0,
|
|
26856
26857
|
children: /* @__PURE__ */ (0, q.jsx)(Xa, { className: "h-4 w-4" })
|
|
@@ -26865,8 +26866,8 @@ var OB = (e) => {
|
|
|
26865
26866
|
variant: "ghost",
|
|
26866
26867
|
size: "icon",
|
|
26867
26868
|
"aria-label": `Copy ${t}`,
|
|
26868
|
-
disabled: !e.canCopy ||
|
|
26869
|
-
onClick: e.canCopy && !
|
|
26869
|
+
disabled: !e.canCopy || k,
|
|
26870
|
+
onClick: e.canCopy && !k ? () => {
|
|
26870
26871
|
xe(e.format);
|
|
26871
26872
|
} : void 0,
|
|
26872
26873
|
children: /* @__PURE__ */ (0, q.jsx)(Ka, { className: "h-4 w-4" })
|
|
@@ -26897,13 +26898,13 @@ var OB = (e) => {
|
|
|
26897
26898
|
value: String(g),
|
|
26898
26899
|
onChange: (e) => {
|
|
26899
26900
|
let t = Number(e.target.value);
|
|
26900
|
-
|
|
26901
|
+
O(w?.geometry_columns[t]?.name ?? null);
|
|
26901
26902
|
},
|
|
26902
26903
|
children: [/* @__PURE__ */ (0, q.jsx)("option", {
|
|
26903
26904
|
value: "-1",
|
|
26904
26905
|
disabled: !0,
|
|
26905
26906
|
children: "Choose geometry"
|
|
26906
|
-
}),
|
|
26907
|
+
}), w?.geometry_columns.map(PB)]
|
|
26907
26908
|
})
|
|
26908
26909
|
}) : /* @__PURE__ */ (0, q.jsx)(kB, {
|
|
26909
26910
|
format: r,
|
|
@@ -26912,38 +26913,38 @@ var OB = (e) => {
|
|
|
26912
26913
|
})
|
|
26913
26914
|
]
|
|
26914
26915
|
}),
|
|
26915
|
-
fB(e.format) &&
|
|
26916
|
+
fB(e.format) && S.length === 0 && y && /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
26916
26917
|
className: "flex items-center justify-between gap-2 border-t px-3 py-2 pl-[42px] text-xs text-muted-foreground",
|
|
26917
|
-
children: [/* @__PURE__ */ (0, q.jsx)("span", { children: y }),
|
|
26918
|
+
children: [/* @__PURE__ */ (0, q.jsx)("span", { children: y }), E && /* @__PURE__ */ (0, q.jsx)(u, {
|
|
26918
26919
|
type: "button",
|
|
26919
26920
|
size: "xs",
|
|
26920
26921
|
variant: "outline",
|
|
26921
|
-
onClick:
|
|
26922
|
+
onClick: C.refetch,
|
|
26922
26923
|
children: "Retry"
|
|
26923
26924
|
})]
|
|
26924
26925
|
}),
|
|
26925
|
-
|
|
26926
|
+
S.length > 0 && /* @__PURE__ */ (0, q.jsx)("div", {
|
|
26926
26927
|
className: "border-t px-3 py-2 pl-[42px]",
|
|
26927
26928
|
children: /* @__PURE__ */ (0, q.jsx)(sB, {
|
|
26928
|
-
packages:
|
|
26929
|
+
packages: S,
|
|
26929
26930
|
featureName: `${t} export`,
|
|
26930
|
-
description:
|
|
26931
|
-
onInstall: Ee(
|
|
26931
|
+
description: x?.description ?? _?.reason,
|
|
26932
|
+
onInstall: Ee(x?.action ?? {
|
|
26932
26933
|
destination: "download",
|
|
26933
26934
|
format: e.format === "geojson" ? "geojson" : "parquet"
|
|
26934
26935
|
}),
|
|
26935
26936
|
className: "items-start"
|
|
26936
26937
|
})
|
|
26937
26938
|
}),
|
|
26938
|
-
p?.kind === "error" &&
|
|
26939
|
+
p?.kind === "error" && S.length === 0 && /* @__PURE__ */ (0, q.jsx)("div", {
|
|
26939
26940
|
className: "border-t px-3 py-2 pl-[42px]",
|
|
26940
|
-
children: /* @__PURE__ */ (0, q.jsxs)(
|
|
26941
|
+
children: /* @__PURE__ */ (0, q.jsxs)(fa, {
|
|
26941
26942
|
variant: "destructive",
|
|
26942
26943
|
className: "p-3 has-[svg]:pl-9 [&>svg]:left-3 [&>svg]:top-3",
|
|
26943
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
26944
|
+
children: [/* @__PURE__ */ (0, q.jsx)(b, { className: "h-4 w-4" }), /* @__PURE__ */ (0, q.jsxs)("div", { children: [/* @__PURE__ */ (0, q.jsx)(da, {
|
|
26944
26945
|
className: "text-sm",
|
|
26945
26946
|
children: p.title
|
|
26946
|
-
}), /* @__PURE__ */ (0, q.jsx)(
|
|
26947
|
+
}), /* @__PURE__ */ (0, q.jsx)(pa, {
|
|
26947
26948
|
className: "text-xs",
|
|
26948
26949
|
children: p.description
|
|
26949
26950
|
})] })]
|
|
@@ -26951,7 +26952,7 @@ var OB = (e) => {
|
|
|
26951
26952
|
})
|
|
26952
26953
|
]
|
|
26953
26954
|
}, e.format);
|
|
26954
|
-
}), t[74] = Ee, t[75] =
|
|
26955
|
+
}), t[74] = Ee, t[75] = M, t[76] = h, t[77] = D, t[78] = n, t[79] = xe, t[80] = _e, t[81] = j, t[82] = w, t[83] = E, t[84] = C.refetch, t[85] = s, t[86] = Oe, t[87] = Fe;
|
|
26955
26956
|
} else Fe = t[87];
|
|
26956
26957
|
let Ie;
|
|
26957
26958
|
t[90] === Fe ? Ie = t[91] : (Ie = /* @__PURE__ */ (0, q.jsx)("ul", {
|
|
@@ -26961,7 +26962,7 @@ var OB = (e) => {
|
|
|
26961
26962
|
}), t[90] = Fe, t[91] = Ie);
|
|
26962
26963
|
let Le;
|
|
26963
26964
|
t[92] !== Ne || t[93] !== Ie ? (Le = /* @__PURE__ */ (0, q.jsxs)(xa, {
|
|
26964
|
-
ref:
|
|
26965
|
+
ref: F,
|
|
26965
26966
|
className: "print:hidden gap-4 sm:max-w-[540px]",
|
|
26966
26967
|
onOpenAutoFocus: je,
|
|
26967
26968
|
onCloseAutoFocus: Me,
|
|
@@ -27104,7 +27105,7 @@ var OB = (e) => {
|
|
|
27104
27105
|
children: s
|
|
27105
27106
|
}), t[44] = e, t[45] = s, t[46] = c) : c = t[46], c;
|
|
27106
27107
|
}
|
|
27107
|
-
default: return
|
|
27108
|
+
default: return Br(n), null;
|
|
27108
27109
|
}
|
|
27109
27110
|
}, AB = (e) => {
|
|
27110
27111
|
let t = (0, J.c)(17), { id: n, label: r, help: i, children: a } = e, o;
|
|
@@ -27114,7 +27115,7 @@ var OB = (e) => {
|
|
|
27114
27115
|
children: r
|
|
27115
27116
|
}), t[0] = n, t[1] = r, t[2] = o) : o = t[2];
|
|
27116
27117
|
let s = `${r} help`, c;
|
|
27117
|
-
t[3] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, q.jsx)(
|
|
27118
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, q.jsx)(F, { className: "h-3 w-3" }), t[3] = c) : c = t[3];
|
|
27118
27119
|
let l;
|
|
27119
27120
|
t[4] === s ? l = t[5] : (l = /* @__PURE__ */ (0, q.jsx)("button", {
|
|
27120
27121
|
type: "button",
|
|
@@ -27144,7 +27145,7 @@ var OB = (e) => {
|
|
|
27144
27145
|
}), t[14] = d, t[15] = f, t[16] = p) : p = t[16], p;
|
|
27145
27146
|
};
|
|
27146
27147
|
function jB(e) {
|
|
27147
|
-
return MB(e).then(
|
|
27148
|
+
return MB(e).then(Tr);
|
|
27148
27149
|
}
|
|
27149
27150
|
function MB(e) {
|
|
27150
27151
|
return fetch(e).then((e) => {
|
|
@@ -27176,7 +27177,7 @@ function IB(e) {
|
|
|
27176
27177
|
//#endregion
|
|
27177
27178
|
//#region src/components/data-table/TableTopBar.tsx
|
|
27178
27179
|
var LB = () => {}, RB = ({ table: e, showSearch: t, searchQuery: n, onSearchQueryChange: r, reloading: a, showChartBuilder: o, isChartBuilderOpen: s, toggleDisplayHeader: c, showTableExplorer: l, togglePanel: d, isAnyPanelOpen: f, downloadAs: p, getExportMetadata: m, metadataSource: h, sizeBytes: g, sizeBytesIsLoading: _ }) => {
|
|
27179
|
-
let [v, y] = (0, K.useState)(n || ""), b = uj(v, 500), x =
|
|
27180
|
+
let [v, y] = (0, K.useState)(n || ""), b = uj(v, 500), x = Zi(r ?? LB), S = K.useRef(null);
|
|
27180
27181
|
return (0, K.useEffect)(() => {
|
|
27181
27182
|
x(b);
|
|
27182
27183
|
}, [b, x]), /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
@@ -27197,14 +27198,14 @@ var LB = () => {}, RB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
27197
27198
|
onChange: (e) => y(e.target.value),
|
|
27198
27199
|
placeholder: "Search..."
|
|
27199
27200
|
}),
|
|
27200
|
-
a && /* @__PURE__ */ (0, q.jsx)(
|
|
27201
|
+
a && /* @__PURE__ */ (0, q.jsx)(ce, { size: "small" }),
|
|
27201
27202
|
v && /* @__PURE__ */ (0, q.jsx)(u, {
|
|
27202
27203
|
"aria-label": "Clear table search",
|
|
27203
27204
|
variant: "text",
|
|
27204
27205
|
size: "xs",
|
|
27205
27206
|
className: "h-5 w-5 p-0 shrink-0",
|
|
27206
27207
|
onClick: () => y(""),
|
|
27207
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
27208
|
+
children: /* @__PURE__ */ (0, q.jsx)(Ur, { className: "w-3 h-3 text-muted-foreground" })
|
|
27208
27209
|
})
|
|
27209
27210
|
]
|
|
27210
27211
|
}), /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
@@ -27235,16 +27236,16 @@ var LB = () => {}, RB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
27235
27236
|
]
|
|
27236
27237
|
})]
|
|
27237
27238
|
});
|
|
27238
|
-
}, zB = (0, K.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: r, data: a, rawData: o, selection: s, totalColumns: c, totalRows: l, hasNextPage: d, sizeBytes: f, sizeBytesIsLoading: p, manualSorting: m = !1, sorting: h, setSorting: g, rowSelection: _, cellSelection: v, cellStyling: y, hoverTemplate: b, cellHoverTexts: x, paginationState: S, setPaginationState: C, downloadAs: w, getExportMetadata: T, manualPagination: E = !1, pagination: D = !1, onRowSelectionChange: O, onCellSelectionChange: k, getRowIds: A, showSearch: j = !1, searchQuery: M, onSearchQueryChange: N, showFilters: P = !1, filters: F, onFiltersChange: I, calculateTopKRows:
|
|
27239
|
-
let de =
|
|
27239
|
+
}, zB = (0, K.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: r, data: a, rawData: o, selection: s, totalColumns: c, totalRows: l, hasNextPage: d, sizeBytes: f, sizeBytesIsLoading: p, manualSorting: m = !1, sorting: h, setSorting: g, rowSelection: _, cellSelection: v, cellStyling: y, hoverTemplate: b, cellHoverTexts: x, paginationState: S, setPaginationState: C, downloadAs: w, getExportMetadata: T, manualPagination: E = !1, pagination: D = !1, onRowSelectionChange: O, onCellSelectionChange: k, getRowIds: A, showSearch: j = !1, searchQuery: M, onSearchQueryChange: N, showFilters: P = !1, filters: F, onFiltersChange: I, calculateTopKRows: ee, reloading: L, freezeColumnsLeft: R, freezeColumnsRight: z, hiddenColumns: B, toggleDisplayHeader: te, showChartBuilder: V, isChartBuilderOpen: ne, showPageSizeSelector: re, showTableExplorer: ie, togglePanel: ae, isPanelOpen: oe, isAnyPanelOpen: se, viewedRowIdx: ce, onViewedRowChange: le, renderTableExplorerPanel: ue }) => {
|
|
27240
|
+
let de = ra(), fe = !de, [pe, me] = K.useState(!1), { locale: he } = Fe(), { columnPinning: ge, setColumnPinning: _e } = SI(R, z), { columnVisibility: ve, setColumnVisibility: ye } = uz(B);
|
|
27240
27241
|
K.useEffect(() => {
|
|
27241
27242
|
let e;
|
|
27242
|
-
return
|
|
27243
|
+
return L ? e = setTimeout(() => {
|
|
27243
27244
|
me(!0);
|
|
27244
27245
|
}, 300) : me(!1), () => {
|
|
27245
27246
|
e && clearTimeout(e);
|
|
27246
27247
|
};
|
|
27247
|
-
}, [
|
|
27248
|
+
}, [L]);
|
|
27248
27249
|
function be(e, t) {
|
|
27249
27250
|
return S ? t + (E ? S.pageIndex * S.pageSize : 0) : t;
|
|
27250
27251
|
}
|
|
@@ -27328,7 +27329,7 @@ var LB = () => {}, RB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
27328
27329
|
/* @__PURE__ */ (0, q.jsx)(vI, {
|
|
27329
27330
|
filters: F,
|
|
27330
27331
|
table: H,
|
|
27331
|
-
calculateTopKRows:
|
|
27332
|
+
calculateTopKRows: ee,
|
|
27332
27333
|
addFilterSnapshot: U,
|
|
27333
27334
|
onAddFilterSnapshotChange: Te
|
|
27334
27335
|
}),
|
|
@@ -27342,9 +27343,9 @@ var LB = () => {}, RB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
27342
27343
|
showSearch: j,
|
|
27343
27344
|
searchQuery: M,
|
|
27344
27345
|
onSearchQueryChange: N,
|
|
27345
|
-
reloading:
|
|
27346
|
-
showChartBuilder:
|
|
27347
|
-
isChartBuilderOpen:
|
|
27346
|
+
reloading: L,
|
|
27347
|
+
showChartBuilder: V,
|
|
27348
|
+
isChartBuilderOpen: ne,
|
|
27348
27349
|
toggleDisplayHeader: te,
|
|
27349
27350
|
showTableExplorer: ie,
|
|
27350
27351
|
togglePanel: ae,
|
|
@@ -27355,7 +27356,7 @@ var LB = () => {}, RB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
27355
27356
|
sizeBytes: f,
|
|
27356
27357
|
sizeBytesIsLoading: p
|
|
27357
27358
|
}),
|
|
27358
|
-
Oe && /* @__PURE__ */ (0, q.jsxs)(
|
|
27359
|
+
Oe && /* @__PURE__ */ (0, q.jsxs)(Gi, {
|
|
27359
27360
|
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
27360
27361
|
children: [/* @__PURE__ */ (0, q.jsx)("span", { children: "All columns are hidden." }), /* @__PURE__ */ (0, q.jsx)(u, {
|
|
27361
27362
|
variant: "link",
|
|
@@ -27393,7 +27394,7 @@ var LB = () => {}, RB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
27393
27394
|
table: H,
|
|
27394
27395
|
getRowIds: A,
|
|
27395
27396
|
showPageSizeSelector: re,
|
|
27396
|
-
tableLoading:
|
|
27397
|
+
tableLoading: L
|
|
27397
27398
|
})
|
|
27398
27399
|
]
|
|
27399
27400
|
}) })
|
|
@@ -27402,7 +27403,7 @@ var LB = () => {}, RB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
27402
27403
|
});
|
|
27403
27404
|
}), BB = 25, VB = (e) => {
|
|
27404
27405
|
let t = (0, J.c)(11), { contents: n } = e, r;
|
|
27405
|
-
t[0] === n ? r = t[1] : (r =
|
|
27406
|
+
t[0] === n ? r = t[1] : (r = Oa(n), t[0] = n, t[1] = r);
|
|
27406
27407
|
let i = r, a;
|
|
27407
27408
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
27408
27409
|
pageIndex: 0,
|
|
@@ -27412,7 +27413,7 @@ var LB = () => {}, RB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
27412
27413
|
t[3] === i ? c = t[4] : (c = vM(i), t[3] = i, t[4] = c);
|
|
27413
27414
|
let l = c, u;
|
|
27414
27415
|
t[5] === l ? u = t[6] : (u = yM({
|
|
27415
|
-
rowHeaders:
|
|
27416
|
+
rowHeaders: $i.EMPTY,
|
|
27416
27417
|
selection: null,
|
|
27417
27418
|
fieldTypes: l
|
|
27418
27419
|
}), t[5] = l, t[6] = u);
|
|
@@ -27428,7 +27429,7 @@ var LB = () => {}, RB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
27428
27429
|
wrapperClassName: "h-full justify-between pb-1 px-1",
|
|
27429
27430
|
pagination: !0,
|
|
27430
27431
|
className: "rounded-none border-b flex flex-col overflow-hidden",
|
|
27431
|
-
rowSelection:
|
|
27432
|
+
rowSelection: Yi.EMPTY
|
|
27432
27433
|
}), t[7] = d, t[8] = i, t[9] = o, t[10] = f) : f = t[10], f;
|
|
27433
27434
|
};
|
|
27434
27435
|
//#endregion
|
|
@@ -27450,7 +27451,7 @@ function HB(e, t) {
|
|
|
27450
27451
|
head: c + s.length - 1
|
|
27451
27452
|
},
|
|
27452
27453
|
scrollIntoView: !0,
|
|
27453
|
-
effects: [
|
|
27454
|
+
effects: [ta.scrollIntoView(c, { y: "center" })]
|
|
27454
27455
|
}), e.focus(), !0;
|
|
27455
27456
|
}
|
|
27456
27457
|
//#endregion
|
|
@@ -27466,17 +27467,17 @@ var UB = (e) => {
|
|
|
27466
27467
|
]
|
|
27467
27468
|
}), t[0] = r, t[1] = s, t[2] = c) : c = t[2];
|
|
27468
27469
|
let l = c, d;
|
|
27469
|
-
t[3] !== r || t[4] !== s ? (d = s === "html" ?
|
|
27470
|
+
t[3] !== r || t[4] !== s ? (d = s === "html" ? Sr(jr(r)) : r, t[3] = r, t[4] = s, t[5] = d) : d = t[5];
|
|
27470
27471
|
let f = d, p;
|
|
27471
27472
|
t[6] === f ? p = t[7] : (p = WB(f), t[6] = f, t[7] = p);
|
|
27472
|
-
let g = p, _ =
|
|
27473
|
+
let g = p, _ = li(hi), v = UT(), y;
|
|
27473
27474
|
t[8] === r ? y = t[9] : (y = r_(r)?.at(0), t[8] = r, t[9] = y);
|
|
27474
27475
|
let b = y, x;
|
|
27475
|
-
t[10] !== a || t[11] !== b ? (x = b && b.kind === "cell" && !
|
|
27476
|
+
t[10] !== a || t[11] !== b ? (x = b && b.kind === "cell" && !aa() && !ra() && a !== "__scratch__", t[10] = a, t[11] = b, t[12] = x) : x = t[12];
|
|
27476
27477
|
let S = x, C;
|
|
27477
|
-
t[13] !== _ || t[14] !== n ? (C = n && _ && !
|
|
27478
|
+
t[13] !== _ || t[14] !== n ? (C = n && _ && !ra(), t[13] = _, t[14] = n, t[15] = C) : C = t[15];
|
|
27478
27479
|
let w = C, T;
|
|
27479
|
-
t[16] === Symbol.for("react.memo_cache_sentinel") ? (T =
|
|
27480
|
+
t[16] === Symbol.for("react.memo_cache_sentinel") ? (T = ra(), t[16] = T) : T = t[16];
|
|
27480
27481
|
let E = !T, [D, O] = (0, K.useState)(!0), k;
|
|
27481
27482
|
t[17] !== g || t[18] !== n ? (k = (e) => {
|
|
27482
27483
|
n?.({
|
|
@@ -27492,20 +27493,20 @@ var UB = (e) => {
|
|
|
27492
27493
|
t[24] === D ? P = t[25] : (P = () => O(!D), t[24] = D, t[25] = P);
|
|
27493
27494
|
let F = D ? "Collapse traceback" : "Expand traceback", I;
|
|
27494
27495
|
t[26] === D ? I = t[27] : (I = D ? /* @__PURE__ */ (0, q.jsx)(Ie, { className: "h-3 w-3" }) : /* @__PURE__ */ (0, q.jsx)(lt, { className: "h-3 w-3" }), t[26] = D, t[27] = I);
|
|
27495
|
-
let
|
|
27496
|
-
t[28] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
27496
|
+
let ee;
|
|
27497
|
+
t[28] === Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ (0, q.jsx)("span", {
|
|
27497
27498
|
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
27498
27499
|
children: "Traceback"
|
|
27499
|
-
}), t[28] =
|
|
27500
|
-
let
|
|
27501
|
-
t[29] !== D || t[30] !== P || t[31] !== F || t[32] !== I ? (
|
|
27500
|
+
}), t[28] = ee) : ee = t[28];
|
|
27501
|
+
let L;
|
|
27502
|
+
t[29] !== D || t[30] !== P || t[31] !== F || t[32] !== I ? (L = /* @__PURE__ */ (0, q.jsxs)("button", {
|
|
27502
27503
|
type: "button",
|
|
27503
27504
|
onClick: P,
|
|
27504
27505
|
"aria-expanded": D,
|
|
27505
27506
|
"aria-label": F,
|
|
27506
27507
|
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
27507
|
-
children: [I,
|
|
27508
|
-
}), t[29] = D, t[30] = P, t[31] = F, t[32] = I, t[33] =
|
|
27508
|
+
children: [I, ee]
|
|
27509
|
+
}), t[29] = D, t[30] = P, t[31] = F, t[32] = I, t[33] = L) : L = t[33];
|
|
27509
27510
|
let R;
|
|
27510
27511
|
t[34] !== l || t[35] !== D ? (R = D && /* @__PURE__ */ (0, q.jsx)("div", {
|
|
27511
27512
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
@@ -27531,13 +27532,13 @@ var UB = (e) => {
|
|
|
27531
27532
|
size: "xs",
|
|
27532
27533
|
variant: "outline",
|
|
27533
27534
|
onClick: () => {
|
|
27534
|
-
|
|
27535
|
+
gr().sendPdb({ cellId: b.cellId });
|
|
27535
27536
|
},
|
|
27536
27537
|
children: [/* @__PURE__ */ (0, q.jsx)(za, { className: "h-3 w-3 mr-2" }), "Launch debugger"]
|
|
27537
27538
|
})
|
|
27538
27539
|
}), t[47] = S, t[48] = b, t[49] = te) : te = t[49];
|
|
27539
|
-
let
|
|
27540
|
-
t[50] !== g || t[51] !== f ? (
|
|
27540
|
+
let V;
|
|
27541
|
+
t[50] !== g || t[51] !== f ? (V = E && /* @__PURE__ */ (0, q.jsxs)(Yn, { children: [/* @__PURE__ */ (0, q.jsx)(hn, {
|
|
27541
27542
|
asChild: !0,
|
|
27542
27543
|
children: /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
27543
27544
|
size: "xs",
|
|
@@ -27557,7 +27558,7 @@ var UB = (e) => {
|
|
|
27557
27558
|
children: [
|
|
27558
27559
|
/* @__PURE__ */ (0, q.jsx)(on, { className: "h-4 w-4 mr-2" }),
|
|
27559
27560
|
"Search on Google",
|
|
27560
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
27561
|
+
/* @__PURE__ */ (0, q.jsx)(Nr, { className: "h-3 w-3 ml-auto" })
|
|
27561
27562
|
]
|
|
27562
27563
|
})
|
|
27563
27564
|
}),
|
|
@@ -27570,7 +27571,7 @@ var UB = (e) => {
|
|
|
27570
27571
|
children: [
|
|
27571
27572
|
/* @__PURE__ */ (0, q.jsx)(so, { className: "h-4 w-4 mr-2" }),
|
|
27572
27573
|
"Ask in Discord",
|
|
27573
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
27574
|
+
/* @__PURE__ */ (0, q.jsx)(Nr, { className: "h-3 w-3 ml-auto" })
|
|
27574
27575
|
]
|
|
27575
27576
|
})
|
|
27576
27577
|
}),
|
|
@@ -27581,26 +27582,26 @@ var UB = (e) => {
|
|
|
27581
27582
|
children: [/* @__PURE__ */ (0, q.jsx)(h, { className: "h-4 w-4 mr-2" }), "Copy to clipboard"]
|
|
27582
27583
|
})
|
|
27583
27584
|
]
|
|
27584
|
-
})] }), t[50] = g, t[51] = f, t[52] =
|
|
27585
|
-
let
|
|
27586
|
-
t[53] !== z || t[54] !== B || t[55] !== te || t[56] !==
|
|
27585
|
+
})] }), t[50] = g, t[51] = f, t[52] = V) : V = t[52];
|
|
27586
|
+
let ne;
|
|
27587
|
+
t[53] !== z || t[54] !== B || t[55] !== te || t[56] !== V ? (ne = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
27587
27588
|
className: "flex gap-2",
|
|
27588
27589
|
children: [
|
|
27589
27590
|
z,
|
|
27590
27591
|
B,
|
|
27591
27592
|
te,
|
|
27592
|
-
|
|
27593
|
+
V
|
|
27593
27594
|
]
|
|
27594
|
-
}), t[53] = z, t[54] = B, t[55] = te, t[56] =
|
|
27595
|
+
}), t[53] = z, t[54] = B, t[55] = te, t[56] = V, t[57] = ne) : ne = t[57];
|
|
27595
27596
|
let re;
|
|
27596
|
-
return t[58] !==
|
|
27597
|
+
return t[58] !== L || t[59] !== R || t[60] !== ne ? (re = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
27597
27598
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
27598
27599
|
children: [
|
|
27599
|
-
|
|
27600
|
+
L,
|
|
27600
27601
|
R,
|
|
27601
|
-
|
|
27602
|
+
ne
|
|
27602
27603
|
]
|
|
27603
|
-
}), t[58] =
|
|
27604
|
+
}), t[58] = L, t[59] = R, t[60] = ne, t[61] = re) : re = t[61], re;
|
|
27604
27605
|
};
|
|
27605
27606
|
function WB(e) {
|
|
27606
27607
|
return e.split("\n").filter(Boolean)?.at(-1) || "";
|
|
@@ -27608,7 +27609,7 @@ function WB(e) {
|
|
|
27608
27609
|
var GB = (e) => {
|
|
27609
27610
|
let t = n_(e);
|
|
27610
27611
|
if (t?.kind === "cell") {
|
|
27611
|
-
let e =
|
|
27612
|
+
let e = se("debugger"), n = e ? /* @__PURE__ */ (0, q.jsx)(YB, {}) : /* @__PURE__ */ (0, q.jsx)(JB, {});
|
|
27612
27613
|
return /* @__PURE__ */ (0, q.jsx)("span", {
|
|
27613
27614
|
className: "nb",
|
|
27614
27615
|
children: /* @__PURE__ */ (0, q.jsxs)("span", {
|
|
@@ -27616,18 +27617,18 @@ var GB = (e) => {
|
|
|
27616
27617
|
children: [/* @__PURE__ */ (0, q.jsx)(kb, {
|
|
27617
27618
|
cellId: t.cellId,
|
|
27618
27619
|
lineNumber: t.lineNumber
|
|
27619
|
-
}), !
|
|
27620
|
+
}), !aa() && /* @__PURE__ */ (0, q.jsx)(U, {
|
|
27620
27621
|
content: n,
|
|
27621
27622
|
children: /* @__PURE__ */ (0, q.jsx)("button", {
|
|
27622
27623
|
type: "button",
|
|
27623
27624
|
"aria-label": e ? "Toggle breakpoint" : "Insert breakpoint",
|
|
27624
27625
|
className: "ml-1 p-1 rounded-sm hover:bg-muted transition-colors inline",
|
|
27625
27626
|
onClick: () => {
|
|
27626
|
-
if (e && !
|
|
27627
|
+
if (e && !ra()) {
|
|
27627
27628
|
Fb(t.cellId, t.lineNumber);
|
|
27628
27629
|
return;
|
|
27629
27630
|
}
|
|
27630
|
-
let n =
|
|
27631
|
+
let n = Fr(t.cellId);
|
|
27631
27632
|
n && HB(n, t.lineNumber);
|
|
27632
27633
|
},
|
|
27633
27634
|
children: /* @__PURE__ */ (0, q.jsx)(za, { className: "h-3 w-3" })
|
|
@@ -27640,7 +27641,7 @@ var GB = (e) => {
|
|
|
27640
27641
|
type: "button",
|
|
27641
27642
|
className: "inline-block cursor-pointer text-destructive hover:underline",
|
|
27642
27643
|
onClick: () => {
|
|
27643
|
-
|
|
27644
|
+
gr().openFile({
|
|
27644
27645
|
path: t.filePath,
|
|
27645
27646
|
lineNumber: t.lineNumber
|
|
27646
27647
|
});
|
|
@@ -27655,11 +27656,11 @@ var GB = (e) => {
|
|
|
27655
27656
|
})
|
|
27656
27657
|
});
|
|
27657
27658
|
}, KB = (e) => {
|
|
27658
|
-
if (!(e instanceof
|
|
27659
|
+
if (!(e instanceof B.Text) || !e.nodeValue || !bT(e.nodeValue)) return;
|
|
27659
27660
|
let t = yT(e.nodeValue);
|
|
27660
27661
|
return /* @__PURE__ */ (0, q.jsx)(eE, { segments: t });
|
|
27661
27662
|
}, qB = (e) => {
|
|
27662
|
-
if (e instanceof
|
|
27663
|
+
if (e instanceof B.Text && e.nodeValue?.includes("File") && e.next instanceof B.Element && t_(e.next)) return /* @__PURE__ */ (0, q.jsx)(q.Fragment, { children: e.nodeValue.replace("File", "Cell") });
|
|
27663
27664
|
}, JB = () => {
|
|
27664
27665
|
let e = (0, J.c)(1), t;
|
|
27665
27666
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ (0, q.jsxs)(q.Fragment, { children: [
|
|
@@ -27705,7 +27706,7 @@ function XB(e) {
|
|
|
27705
27706
|
//#endregion
|
|
27706
27707
|
//#region src/components/editor/Output.tsx
|
|
27707
27708
|
var ZB = "__metadata__", QB = (0, K.memo)((e) => {
|
|
27708
|
-
let t = (0, J.c)(57), { message: n, onRefactorWithAI: r, cellId: i, wrapText: a, metadata: o, renderFallback: s } = e, { theme: c } =
|
|
27709
|
+
let t = (0, J.c)(57), { message: n, onRefactorWithAI: r, cellId: i, wrapText: a, metadata: o, renderFallback: s } = e, { theme: c } = bi(), l;
|
|
27709
27710
|
bb0: {
|
|
27710
27711
|
let e = n.data;
|
|
27711
27712
|
switch (n.mimetype) {
|
|
@@ -27726,7 +27727,7 @@ var ZB = "__metadata__", QB = (0, K.memo)((e) => {
|
|
|
27726
27727
|
if (f == null) return null;
|
|
27727
27728
|
switch (p) {
|
|
27728
27729
|
case "text/html": {
|
|
27729
|
-
|
|
27730
|
+
Xi(typeof f == "string", `Expected string data for mime=${p}. Got ${typeof f}`);
|
|
27730
27731
|
let e;
|
|
27731
27732
|
return t[2] !== d || t[3] !== f ? (e = /* @__PURE__ */ (0, q.jsx)(oT, {
|
|
27732
27733
|
className: d,
|
|
@@ -27736,7 +27737,7 @@ var ZB = "__metadata__", QB = (0, K.memo)((e) => {
|
|
|
27736
27737
|
}
|
|
27737
27738
|
case "text/plain":
|
|
27738
27739
|
case "text/password": {
|
|
27739
|
-
|
|
27740
|
+
Xi(typeof f == "string", `Expected string data for mime=${p}. Got ${typeof f}`);
|
|
27740
27741
|
let e;
|
|
27741
27742
|
return t[5] !== d || t[6] !== f || t[7] !== a ? (e = /* @__PURE__ */ (0, q.jsx)(xD, {
|
|
27742
27743
|
channel: d,
|
|
@@ -27759,7 +27760,7 @@ var ZB = "__metadata__", QB = (0, K.memo)((e) => {
|
|
|
27759
27760
|
case "image/gif":
|
|
27760
27761
|
case "image/jpeg":
|
|
27761
27762
|
case "image/svg+xml": {
|
|
27762
|
-
if (
|
|
27763
|
+
if (Xi(typeof f == "string", `Expected string data for mime=${p}. Got ${typeof f}`), p === "image/svg+xml" && !f.startsWith("data:image/svg+xml;base64,")) {
|
|
27763
27764
|
let e;
|
|
27764
27765
|
return t[12] === f ? e = t[13] : (e = A({
|
|
27765
27766
|
html: f,
|
|
@@ -27777,7 +27778,7 @@ var ZB = "__metadata__", QB = (0, K.memo)((e) => {
|
|
|
27777
27778
|
}
|
|
27778
27779
|
case "video/mp4":
|
|
27779
27780
|
case "video/mpeg": {
|
|
27780
|
-
|
|
27781
|
+
Xi(typeof f == "string", `Expected string data for mime=${p}. Got ${typeof f}`);
|
|
27781
27782
|
let e;
|
|
27782
27783
|
return t[19] !== d || t[20] !== f ? (e = /* @__PURE__ */ (0, q.jsx)(SD, {
|
|
27783
27784
|
className: d,
|
|
@@ -27785,7 +27786,7 @@ var ZB = "__metadata__", QB = (0, K.memo)((e) => {
|
|
|
27785
27786
|
}), t[19] = d, t[20] = f, t[21] = e) : e = t[21], e;
|
|
27786
27787
|
}
|
|
27787
27788
|
case "application/vnd.marimo+error": {
|
|
27788
|
-
|
|
27789
|
+
Xi(Array.isArray(f), "Expected array data");
|
|
27789
27790
|
let e;
|
|
27790
27791
|
return t[22] !== i || t[23] !== f || t[24] !== n.code ? (e = /* @__PURE__ */ (0, q.jsx)(NE, {
|
|
27791
27792
|
cellId: i,
|
|
@@ -27794,7 +27795,7 @@ var ZB = "__metadata__", QB = (0, K.memo)((e) => {
|
|
|
27794
27795
|
}), t[22] = i, t[23] = f, t[24] = n.code, t[25] = e) : e = t[25], e;
|
|
27795
27796
|
}
|
|
27796
27797
|
case "application/vnd.marimo+traceback": {
|
|
27797
|
-
|
|
27798
|
+
Xi(typeof f == "string", `Expected string data for mime=${p}. Got ${typeof f}`);
|
|
27798
27799
|
let e;
|
|
27799
27800
|
return t[26] !== i || t[27] !== f || t[28] !== n.code || t[29] !== n.traceback_format || t[30] !== r ? (e = /* @__PURE__ */ (0, q.jsx)(UB, {
|
|
27800
27801
|
onRefactorWithAI: r,
|
|
@@ -27805,13 +27806,13 @@ var ZB = "__metadata__", QB = (0, K.memo)((e) => {
|
|
|
27805
27806
|
}), t[26] = i, t[27] = f, t[28] = n.code, t[29] = n.traceback_format, t[30] = r, t[31] = e) : e = t[31], e;
|
|
27806
27807
|
}
|
|
27807
27808
|
case "text/csv": {
|
|
27808
|
-
|
|
27809
|
+
Xi(typeof f == "string", `Expected string data for mime=${p}. Got ${typeof f}`);
|
|
27809
27810
|
let e;
|
|
27810
27811
|
return t[32] === f ? e = t[33] : (e = /* @__PURE__ */ (0, q.jsx)(VB, { contents: f }), t[32] = f, t[33] = e), e;
|
|
27811
27812
|
}
|
|
27812
27813
|
case "text/latex":
|
|
27813
27814
|
case "text/markdown": {
|
|
27814
|
-
|
|
27815
|
+
Xi(typeof f == "string", `Expected string data for mime=${p}. Got ${typeof f}`);
|
|
27815
27816
|
let e;
|
|
27816
27817
|
return t[34] !== d || t[35] !== f ? (e = /* @__PURE__ */ (0, q.jsx)(oT, {
|
|
27817
27818
|
className: d,
|
|
@@ -27826,12 +27827,12 @@ var ZB = "__metadata__", QB = (0, K.memo)((e) => {
|
|
|
27826
27827
|
let e;
|
|
27827
27828
|
t[37] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, q.jsx)(AD, {}), t[37] = e) : e = t[37];
|
|
27828
27829
|
let n = u, r;
|
|
27829
|
-
t[38] === u ? r = t[39] : (r =
|
|
27830
|
+
t[38] === u ? r = t[39] : (r = Na(u), t[38] = u, t[39] = r);
|
|
27830
27831
|
let i = c === "dark" ? "dark" : void 0, a;
|
|
27831
27832
|
t[40] === i ? a = t[41] : (a = {
|
|
27832
27833
|
theme: i,
|
|
27833
27834
|
mode: "vega-lite",
|
|
27834
|
-
tooltip:
|
|
27835
|
+
tooltip: ka.call,
|
|
27835
27836
|
renderer: "canvas"
|
|
27836
27837
|
}, t[40] = i, t[41] = a);
|
|
27837
27838
|
let o;
|
|
@@ -27857,7 +27858,7 @@ var ZB = "__metadata__", QB = (0, K.memo)((e) => {
|
|
|
27857
27858
|
let n;
|
|
27858
27859
|
t[50] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, q.jsx)("br", {}), t[50] = n) : n = t[50];
|
|
27859
27860
|
let r;
|
|
27860
|
-
return t[51] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0, q.jsxs)(
|
|
27861
|
+
return t[51] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0, q.jsxs)(Gi, {
|
|
27861
27862
|
kind: "warn",
|
|
27862
27863
|
children: [
|
|
27863
27864
|
e,
|
|
@@ -27877,7 +27878,7 @@ var ZB = "__metadata__", QB = (0, K.memo)((e) => {
|
|
|
27877
27878
|
}), t[51] = r) : r = t[51], r;
|
|
27878
27879
|
}
|
|
27879
27880
|
default: {
|
|
27880
|
-
if (
|
|
27881
|
+
if (Br(p), s) {
|
|
27881
27882
|
let e;
|
|
27882
27883
|
return t[52] !== p || t[53] !== s ? (e = s(p), t[52] = p, t[53] = s, t[54] = e) : e = t[54], e;
|
|
27883
27884
|
}
|
|
@@ -27891,11 +27892,11 @@ var ZB = "__metadata__", QB = (0, K.memo)((e) => {
|
|
|
27891
27892
|
});
|
|
27892
27893
|
QB.displayName = "OutputRenderer";
|
|
27893
27894
|
var $B = (0, K.memo)((e) => {
|
|
27894
|
-
let t = (0, J.c)(31), { data: n, channel: r, cellId: a } = e, o = Array.isArray(n) ? n[0] : n, { mode: s } =
|
|
27895
|
+
let t = (0, J.c)(31), { data: n, channel: r, cellId: a } = e, o = Array.isArray(n) ? n[0] : n, { mode: s } = li(na), c = s === "present" || s === "read", l = o[ZB], u, d, f, p, m, h, g, _;
|
|
27895
27896
|
if (t[0] !== c || t[1] !== a || t[2] !== r || t[3] !== l || t[4] !== o) {
|
|
27896
27897
|
_ = Symbol.for("react.early_return_sentinel");
|
|
27897
27898
|
bb0: {
|
|
27898
|
-
let { entries: e } = OD(
|
|
27899
|
+
let { entries: e } = OD(Yi.entries(o).filter(iV).map(aV)), n = e[0]?.[0];
|
|
27899
27900
|
if (!n) {
|
|
27900
27901
|
_ = null;
|
|
27901
27902
|
break bb0;
|
|
@@ -27923,7 +27924,7 @@ var $B = (0, K.memo)((e) => {
|
|
|
27923
27924
|
let [t, n] = e;
|
|
27924
27925
|
return /* @__PURE__ */ (0, q.jsx)(ID, {
|
|
27925
27926
|
value: t,
|
|
27926
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
27927
|
+
children: /* @__PURE__ */ (0, q.jsx)(Ma, { children: /* @__PURE__ */ (0, q.jsx)(QB, {
|
|
27927
27928
|
cellId: a,
|
|
27928
27929
|
message: {
|
|
27929
27930
|
channel: r,
|
|
@@ -27960,7 +27961,7 @@ var eV = K.memo((e) => {
|
|
|
27960
27961
|
let t = (0, J.c)(17), { output: n, cellId: r, stale: a, loading: o, allowExpand: s, forceExpand: c, className: l } = e;
|
|
27961
27962
|
if (n == null || n.channel === "output" && n.data === "") return null;
|
|
27962
27963
|
let u = a ? "This output is stale" : void 0, d = s ? rV : tV, f;
|
|
27963
|
-
t[0] === r ? f = t[1] : (f =
|
|
27964
|
+
t[0] === r ? f = t[1] : (f = Mr.create(r), t[0] = r, t[1] = f);
|
|
27964
27965
|
let p = a && "marimo-output-stale", m = o && "marimo-output-loading", h;
|
|
27965
27966
|
t[2] !== l || t[3] !== p || t[4] !== m ? (h = i(p, m, l), t[2] = l, t[3] = p, t[4] = m, t[5] = h) : h = t[5];
|
|
27966
27967
|
let g;
|
|
@@ -27969,7 +27970,7 @@ var eV = K.memo((e) => {
|
|
|
27969
27970
|
message: n
|
|
27970
27971
|
}), t[6] = r, t[7] = n, t[8] = g) : g = t[8];
|
|
27971
27972
|
let _;
|
|
27972
|
-
return t[9] !== d || t[10] !== r || t[11] !== c || t[12] !== f || t[13] !== h || t[14] !== g || t[15] !== u ? (_ = /* @__PURE__ */ (0, q.jsx)(
|
|
27973
|
+
return t[9] !== d || t[10] !== r || t[11] !== c || t[12] !== f || t[13] !== h || t[14] !== g || t[15] !== u ? (_ = /* @__PURE__ */ (0, q.jsx)(Ma, { children: /* @__PURE__ */ (0, q.jsx)(d, {
|
|
27973
27974
|
title: u,
|
|
27974
27975
|
cellId: r,
|
|
27975
27976
|
forceExpand: c,
|
|
@@ -27995,7 +27996,7 @@ function nV() {
|
|
|
27995
27996
|
var rV = K.memo((e) => {
|
|
27996
27997
|
let t = (0, J.c)(34), n, r, a, s;
|
|
27997
27998
|
t[0] === e ? (n = t[1], r = t[2], a = t[3], s = t[4]) : ({cellId: n, children: r, forceExpand: a, ...s} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = a, t[4] = s);
|
|
27998
|
-
let c = (0, K.useRef)(null), [d, f] = pe(n), p = CD(c), { hasFullscreen: m } = Fa(), h =
|
|
27999
|
+
let c = (0, K.useRef)(null), [d, f] = pe(n), p = CD(c), { hasFullscreen: m } = Fa(), h = _i(c);
|
|
27999
28000
|
l(h ? document : null, "keydown", sV);
|
|
28000
28001
|
let g;
|
|
28001
28002
|
t[5] === m ? g = t[6] : (g = m && /* @__PURE__ */ (0, q.jsx)(U, {
|
|
@@ -28183,7 +28184,7 @@ function pV(e, t, n) {
|
|
|
28183
28184
|
let { value: r } = t;
|
|
28184
28185
|
if (n !== "python") return mV(r);
|
|
28185
28186
|
let i = uV(r);
|
|
28186
|
-
return i === null ?
|
|
28187
|
+
return i === null ? va(r) ? /* @__PURE__ */ (0, q.jsx)("span", {
|
|
28187
28188
|
className: "w-rjv-value",
|
|
28188
28189
|
children: /* @__PURE__ */ (0, q.jsx)("a", {
|
|
28189
28190
|
href: r,
|
|
@@ -28283,7 +28284,7 @@ var _V = gV("True"), vV = gV("False"), yV = gV("None"), bV = gV("null"), xV = {
|
|
|
28283
28284
|
}), t[9] = n, t[10] = r, t[11] = a) : a = t[11], a;
|
|
28284
28285
|
});
|
|
28285
28286
|
function TV(e) {
|
|
28286
|
-
let t = (0, J.c)(60), { data: n, name: r, valueTypes: a, className: o } = e, s = r !== void 0 && r, c = a === void 0 ? "python" : a, { theme: l } =
|
|
28287
|
+
let t = (0, J.c)(60), { data: n, name: r, valueTypes: a, className: o } = e, s = r !== void 0 && r, c = a === void 0 ? "python" : a, { theme: l } = bi(), u = c === "python", d;
|
|
28287
28288
|
t[0] === n ? d = t[1] : (d = aT(n) ?? 30, t[0] = n, t[1] = d);
|
|
28288
28289
|
let f = d, p;
|
|
28289
28290
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (p = {}, t[2] = p) : p = t[2];
|
|
@@ -28312,7 +28313,7 @@ function TV(e) {
|
|
|
28312
28313
|
}
|
|
28313
28314
|
}));
|
|
28314
28315
|
}, t[9] = f, t[10] = x);
|
|
28315
|
-
let S =
|
|
28316
|
+
let S = Zi(x), C;
|
|
28316
28317
|
t[11] !== u || t[12] !== b ? (C = (e) => u && typeof e == "string" && /^(text\/html:|image\/|video\/)/.test(e) ? null : /* @__PURE__ */ (0, q.jsx)(g, {
|
|
28317
28318
|
value: () => u ? tT(b.getOriginal(e)) : JSON.stringify(b.getOriginal(e), null, 2),
|
|
28318
28319
|
tooltip: !1,
|
|
@@ -28361,16 +28362,16 @@ function TV(e) {
|
|
|
28361
28362
|
t[24] === o ? N = t[25] : (N = i("marimo-json-output", o), t[24] = o, t[25] = N);
|
|
28362
28363
|
let P = s || void 0, F = l === "dark" ? CV : SV, I;
|
|
28363
28364
|
t[26] === E ? I = t[27] : (I = /* @__PURE__ */ (0, q.jsx)(Y.String, { render: E }), t[26] = E, t[27] = I);
|
|
28364
|
-
let
|
|
28365
|
-
t[28] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
28365
|
+
let ee, L;
|
|
28366
|
+
t[28] === Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ (0, q.jsx)(Y.Colon, { style: { marginRight: 4 } }), L = /* @__PURE__ */ (0, q.jsx)(Y.Arrow, { render: hV }), t[28] = ee, t[29] = L) : (ee = t[28], L = t[29]);
|
|
28366
28367
|
let R;
|
|
28367
28368
|
t[30] === A ? R = t[31] : (R = /* @__PURE__ */ (0, q.jsx)(Y.CountInfo, { render: A }), t[30] = A, t[31] = R);
|
|
28368
28369
|
let z = u ? dV : void 0, B;
|
|
28369
28370
|
t[32] === z ? B = t[33] : (B = /* @__PURE__ */ (0, q.jsx)(Y.KeyName, { render: z }), t[32] = z, t[33] = B);
|
|
28370
|
-
let te = u ? fV : void 0,
|
|
28371
|
-
t[34] === te ?
|
|
28372
|
-
let
|
|
28373
|
-
t[36] ===
|
|
28371
|
+
let te = u ? fV : void 0, V;
|
|
28372
|
+
t[34] === te ? V = t[35] : (V = /* @__PURE__ */ (0, q.jsx)(Y.Quote, { render: te }), t[34] = te, t[35] = V);
|
|
28373
|
+
let ne = u ? _V : void 0, re;
|
|
28374
|
+
t[36] === ne ? re = t[37] : (re = /* @__PURE__ */ (0, q.jsx)(Y.True, { render: ne }), t[36] = ne, t[37] = re);
|
|
28374
28375
|
let ie = u ? vV : void 0, ae;
|
|
28375
28376
|
t[38] === ie ? ae = t[39] : (ae = /* @__PURE__ */ (0, q.jsx)(Y.False, { render: ie }), t[38] = ie, t[39] = ae);
|
|
28376
28377
|
let oe = u ? yV : bV, se;
|
|
@@ -28380,7 +28381,7 @@ function TV(e) {
|
|
|
28380
28381
|
let le;
|
|
28381
28382
|
t[44] === M ? le = t[45] : (le = /* @__PURE__ */ (0, q.jsx)(Y.CountInfoExtra, { render: M }), t[44] = M, t[45] = le);
|
|
28382
28383
|
let ue;
|
|
28383
|
-
return t[46] !== N || t[47] !== P || t[48] !== F || t[49] !== I || t[50] !== R || t[51] !== B || t[52] !==
|
|
28384
|
+
return t[46] !== N || t[47] !== P || t[48] !== F || t[49] !== I || t[50] !== R || t[51] !== B || t[52] !== V || t[53] !== re || t[54] !== ae || t[55] !== se || t[56] !== ce || t[57] !== le || t[58] !== b.data ? (ue = /* @__PURE__ */ (0, q.jsxs)(Y, {
|
|
28384
28385
|
className: N,
|
|
28385
28386
|
keyName: P,
|
|
28386
28387
|
value: b.data,
|
|
@@ -28393,18 +28394,18 @@ function TV(e) {
|
|
|
28393
28394
|
shouldExpandNodeInitially: iT,
|
|
28394
28395
|
children: [
|
|
28395
28396
|
I,
|
|
28396
|
-
L,
|
|
28397
28397
|
ee,
|
|
28398
|
+
L,
|
|
28398
28399
|
R,
|
|
28399
28400
|
B,
|
|
28400
|
-
|
|
28401
|
+
V,
|
|
28401
28402
|
re,
|
|
28402
28403
|
ae,
|
|
28403
28404
|
se,
|
|
28404
28405
|
ce,
|
|
28405
28406
|
le
|
|
28406
28407
|
]
|
|
28407
|
-
}), t[46] = N, t[47] = P, t[48] = F, t[49] = I, t[50] = R, t[51] = B, t[52] =
|
|
28408
|
+
}), t[46] = N, t[47] = P, t[48] = F, t[49] = I, t[50] = R, t[51] = B, t[52] = V, t[53] = re, t[54] = ae, t[55] = se, t[56] = ce, t[57] = le, t[58] = b.data, t[59] = ue) : ue = t[59], ue;
|
|
28408
28409
|
}
|
|
28409
28410
|
//#endregion
|
|
28410
28411
|
//#region src/core/cells/cell.ts
|
|
@@ -28433,7 +28434,7 @@ var OV = (0, K.memo)((e) => {
|
|
|
28433
28434
|
OV.displayName = "Slide";
|
|
28434
28435
|
//#endregion
|
|
28435
28436
|
//#region src/components/slides/slide-form.tsx
|
|
28436
|
-
var kV = "slide", AV = "slide", jV = "center", MV = 36, NV =
|
|
28437
|
+
var kV = "slide", AV = "slide", jV = "center", MV = 36, NV = ri("marimo:slides:config-open", !0, re, { getOnInit: !0 }), PV = [
|
|
28437
28438
|
{
|
|
28438
28439
|
value: "slide",
|
|
28439
28440
|
label: "Slide",
|
|
@@ -28770,7 +28771,7 @@ var kV = "slide", AV = "slide", jV = "center", MV = 36, NV = ai("marimo:slides:c
|
|
|
28770
28771
|
children: [b, D]
|
|
28771
28772
|
}), t[36] = b, t[37] = D, t[38] = O) : O = t[38], O;
|
|
28772
28773
|
}, WV = (e) => {
|
|
28773
|
-
let t = (0, J.c)(31), { configWidth: n, layout: r, setLayout: a, activeConfigCell: o } = e, [s, c] =
|
|
28774
|
+
let t = (0, J.c)(31), { configWidth: n, layout: r, setLayout: a, activeConfigCell: o } = e, [s, c] = ni(NV), l = s ? n : MV, d;
|
|
28774
28775
|
t[0] === l ? d = t[1] : (d = { width: l }, t[0] = l, t[1] = d);
|
|
28775
28776
|
let f = s ? "justify-between px-2" : "justify-center px-0", p;
|
|
28776
28777
|
t[2] === f ? p = t[3] : (p = i("flex items-center h-9 shrink-0 border-b border-border/60", f), t[2] = f, t[3] = p);
|
|
@@ -28880,7 +28881,7 @@ function eH(e, t) {
|
|
|
28880
28881
|
return {
|
|
28881
28882
|
"data-cell-id": e,
|
|
28882
28883
|
"data-cell-name": t,
|
|
28883
|
-
id:
|
|
28884
|
+
id: fr.create(e)
|
|
28884
28885
|
};
|
|
28885
28886
|
}
|
|
28886
28887
|
//#endregion
|