@marimo-team/islands 0.25.3-dev431 → 0.25.3-dev432
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/{ErrorBoundary-CRk39Htl.js → ErrorBoundary-B43oV3b6.js} +1 -1
- package/dist/{chat-ui-BrqZd6Qb.js → chat-ui-BEMyRpmS.js} +720 -721
- package/dist/{code-visibility-IOaiwld2.js → code-visibility-S6mDxnr2.js} +1 -1
- package/dist/{common-e3QeLbF6.js → common-CIHg51sQ.js} +301 -301
- package/dist/{data-grid-overlay-editor-BNtYFq14.js → data-grid-overlay-editor-BCWPWxh4.js} +1 -1
- package/dist/{feedback-button-DEHXkqTr.js → feedback-button-DI9se_Ct.js} +2 -2
- package/dist/{glide-data-editor-CcmkcHzC.js → glide-data-editor-BeLtV7nF.js} +3 -3
- package/dist/{globals-Bwn2Opww.js → globals-DLPrOEeB.js} +1 -1
- package/dist/{html-to-image-ffxLmS29.js → html-to-image-DuNAF8H5.js} +1 -1
- package/dist/main.js +251 -251
- package/dist/{number-overlay-editor-iF4C4jgs.js → number-overlay-editor-CZLODMHG.js} +1 -1
- package/dist/{process-output-BEi2k7G4.js → process-output-Cl97_Reh.js} +1 -1
- package/dist/{reveal-component-Lmc4rqUp.js → reveal-component-CcavTIL_.js} +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/chat/chat-panel.tsx +21 -11
- package/src/components/editor/ai/prompt-input.tsx +11 -1
- package/src/components/chat/chat-empty-state.tsx +0 -55
package/dist/main.js
CHANGED
|
@@ -3,20 +3,20 @@ import { _ as a, a as o, d as s, g as c, h as l, i as u, l as d, m as f, n as p,
|
|
|
3
3
|
import { t as y } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as b } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
5
|
import { i as x, n as S, r as C, t as w } from "./copy-icon-Bv5SAA0w.js";
|
|
6
|
-
import { B as T, Bt as E,
|
|
6
|
+
import { B as T, Bt as E, Ct as D, E as O, F as k, Ft as A, I as j, It as M, L as N, Lt as P, M as F, Mt as I, O as L, Ot as R, P as z, R as B, Rt as ee, St as te, Ut as ne, Vt as re, Wt as ie, X as ae, Z as oe, _ as se, _t as ce, a as le, at as ue, b as de, bt as fe, c as pe, ct as me, dt as he, i as ge, it as _e, j as ve, kt as ye, lt as be, mt as xe, n as Se, o as Ce, ot as we, q as Te, rt as Ee, ut as De, vt as Oe, yt as ke, z as Ae, zt as je } from "./html-to-image-DuNAF8H5.js";
|
|
7
7
|
import { a as Me, f as Ne, h as Pe, i as Fe, m as Ie, n as Le, o as Re, r as ze, t as Be } from "./tooltip-DsQZP310.js";
|
|
8
8
|
import { D as Ve, E as He, S as Ue, T as We, _ as Ge, a as Ke, c as qe, d as Je, f as Ye, g as Xe, h as Ze, i as Qe, l as $e, m as et, n as tt, o as nt, p as rt, r as it, s as at, t as ot, u as st, v as ct, w as lt, x as ut, y as dt } from "./spec-BWpscSQi.js";
|
|
9
|
-
import { $t as ft, A as pt, At as mt, B as ht, Bt as gt, C as _t, Cn as vt, Ct as yt, D as bt, Dn as xt, Dt as St, E as Ct, En as wt, Et as Tt, F as Et, Ft as Dt, G as Ot, Gt as kt, H as At, Ht as jt, I as Mt, It as Nt, J as Pt, Jt as Ft, K as It, Kt as Lt, L as Rt, Lt as zt, M as Bt, Mt as Vt, N as Ht, Nt as Ut, O as Wt, On as Gt, Ot as Kt, P as qt, Pt as Jt, Qt as Yt, R as Xt, Rt as Zt, S as Qt, Sn as $t, T as en, Tn as tn, Tt as nn, U as rn, Ut as an, V as on, Vt as sn, W as cn, Wt as ln, X as un, Xt as dn, Y as fn, Yt as pn, Z as mn, Zt as hn, _ as gn, _n, _t as vn, an as yn, at as bn, b as xn, bn as Sn, bt as Cn, c as wn, cn as Tn, ct as En, d as Dn, dn as On, dt as kn, en as An, f as jn, fn as Mn, ft as Nn, g as Pn, gn as Fn, gt as In, h as Ln, hn as Rn, ht as zn, in as Bn, it as Vn, j as Hn, jt as Un, k as Wn, kt as Gn, ln as Kn, lt as qn, m as Jn, mn as Yn, mt as Xn, nn as Zn, nt as Qn, on as $n, ot as er, p as tr, pn as nr, pt as rr, q as ir, qt as ar, r as or, rn as sr, rt as cr, sn as lr, st as ur, t as dr, tn as fr, tt as pr, u as mr, un as hr, ut as gr, v as _r, vn as vr, vt as yr, w as br, wn as xr, wt as Sr, x as Cr, xn as wr, y as Tr, yt as Er, z as Dr, zt as Or } from "./common-
|
|
9
|
+
import { $t as ft, A as pt, At as mt, B as ht, Bt as gt, C as _t, Cn as vt, Ct as yt, D as bt, Dn as xt, Dt as St, E as Ct, En as wt, Et as Tt, F as Et, Ft as Dt, G as Ot, Gt as kt, H as At, Ht as jt, I as Mt, It as Nt, J as Pt, Jt as Ft, K as It, Kt as Lt, L as Rt, Lt as zt, M as Bt, Mt as Vt, N as Ht, Nt as Ut, O as Wt, On as Gt, Ot as Kt, P as qt, Pt as Jt, Qt as Yt, R as Xt, Rt as Zt, S as Qt, Sn as $t, T as en, Tn as tn, Tt as nn, U as rn, Ut as an, V as on, Vt as sn, W as cn, Wt as ln, X as un, Xt as dn, Y as fn, Yt as pn, Z as mn, Zt as hn, _ as gn, _n, _t as vn, an as yn, at as bn, b as xn, bn as Sn, bt as Cn, c as wn, cn as Tn, ct as En, d as Dn, dn as On, dt as kn, en as An, f as jn, fn as Mn, ft as Nn, g as Pn, gn as Fn, gt as In, h as Ln, hn as Rn, ht as zn, in as Bn, it as Vn, j as Hn, jt as Un, k as Wn, kt as Gn, ln as Kn, lt as qn, m as Jn, mn as Yn, mt as Xn, nn as Zn, nt as Qn, on as $n, ot as er, p as tr, pn as nr, pt as rr, q as ir, qt as ar, r as or, rn as sr, rt as cr, sn as lr, st as ur, t as dr, tn as fr, tt as pr, u as mr, un as hr, ut as gr, v as _r, vn as vr, vt as yr, w as br, wn as xr, wt as Sr, x as Cr, xn as wr, y as Tr, yt as Er, z as Dr, zt as Or } from "./common-CIHg51sQ.js";
|
|
10
10
|
import { a as kr, n as Ar, s as jr, t as Mr } from "./useLifecycle-Bw0JtmoB.js";
|
|
11
11
|
import { t as Nr } from "./check-BHRB6N0I.js";
|
|
12
12
|
import { A as Pr, C as Fr, D as Ir, M as Lr, O as Rr, a as zr, c as Br, d as Vr, i as Hr, k as Ur, l as Wr, n as Gr, o as Kr, r as qr, s as Jr, t as Yr, w as Xr, x as Zr } from "./select-Brvb-RwP.js";
|
|
13
13
|
import { $ as Qr, At as $r, B as ei, C as ti, Cn as ni, G as ri, Nt as ii, Q as ai, Sn as oi, T as si, V as ci, X as li, Y as ui, Z as di, _ as fi, a as pi, b as mi, c as hi, f as gi, g as _i, h as vi, i as yi, m as bi, mt as xi, n as Si, p as Ci, r as wi, rt as Ti, s as Ei, t as Di, v as Oi, vt as ki, w as Ai, xn as ji, y as Mi } from "./dropdown-menu-DzhAnAhr.js";
|
|
14
14
|
import { c as Ni, i as Pi, l as Fi, o as Ii, s as Li, t as Ri } from "./config-EJnOxh0i.js";
|
|
15
15
|
import { At as zi, B as Bi, Dt as Vi, E as Hi, Ft as Ui, G as Wi, Ht as Gi, J as Ki, Jt as qi, K as Ji, L as Yi, M as Xi, Mt as Zi, Nt as Qi, Ot as $i, R as ea, W as ta, Wt as na, X as ra, Y as ia, Yt as aa, Zt as oa, _ as sa, at as ca, bt as la, c as ua, ct as da, d as fa, g as pa, h as ma, it as ha, kt as ga, lt as _a, m as va, p as ya, q as ba, qt as xa, s as Sa, st as Ca, wt as wa, xt as Ta, z as Ea } from "./error-entries-BbxtqUQ4.js";
|
|
16
|
-
import { a as Da, d as Oa, i as ka, n as Aa, o as ja, r as Ma, s as Na, t as Pa, u as Fa } from "./process-output-
|
|
16
|
+
import { a as Da, d as Oa, i as ka, n as Aa, o as ja, r as Ma, s as Na, t as Pa, u as Fa } from "./process-output-Cl97_Reh.js";
|
|
17
17
|
import { t as Ia } from "./pencil-DWRFEz2B.js";
|
|
18
18
|
import { a as La, c as Ra, d as za, f as Ba, i as Va, l as Ha, r as Ua } from "./glide-utils-BzjESEmr.js";
|
|
19
|
-
import { n as Wa, t as Ga } from "./globals-
|
|
19
|
+
import { n as Wa, t as Ga } from "./globals-DLPrOEeB.js";
|
|
20
20
|
import { a as Ka, i as qa, n as Ja, r as Ya, s as Xa, t as Za } from "./assertNever-ChGm2jYv.js";
|
|
21
21
|
import { t as Qa } from "./react-dom-DdqGVp5N.js";
|
|
22
22
|
import { t as $a } from "./jsx-runtime-D8btoEHk.js";
|
|
@@ -40,10 +40,10 @@ import { n as Xs, t as Zs } from "./esm-Bwp_FHP0.js";
|
|
|
40
40
|
import { p as Qs } from "./dist-DpYpG8Yc.js";
|
|
41
41
|
import { t as $s } from "./useAsyncData-P5-Oovhq.js";
|
|
42
42
|
import { n as ec, r as tc, t as nc } from "./useDeepCompareMemoize-B2RNcTmn.js";
|
|
43
|
-
import { t as rc } from "./ErrorBoundary-
|
|
43
|
+
import { t as rc } from "./ErrorBoundary-B43oV3b6.js";
|
|
44
44
|
import { G as ic, W as ac } from "./vega-loader.browser-Co9gYE8Z.js";
|
|
45
45
|
import { a as oc, n as sc } from "./loader-Bin_dutt.js";
|
|
46
|
-
import { a as cc, c as lc, i as uc, l as dc, o as fc, s as pc, t as mc } from "./code-visibility-
|
|
46
|
+
import { a as cc, c as lc, i as uc, l as dc, o as fc, s as pc, t as mc } from "./code-visibility-S6mDxnr2.js";
|
|
47
47
|
import { t as hc } from "./esm-B9n0caHs.js";
|
|
48
48
|
//#region ../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
|
|
49
49
|
var gc = Object.freeze({
|
|
@@ -4761,7 +4761,7 @@ function t_(e) {
|
|
|
4761
4761
|
}
|
|
4762
4762
|
//#endregion
|
|
4763
4763
|
//#region ../node_modules/.pnpm/react-hook-form@7.54.2_react@19.3.1/node_modules/react-hook-form/dist/index.esm.mjs
|
|
4764
|
-
var X = b(), n_ = /* @__PURE__ */ e(
|
|
4764
|
+
var X = b(), n_ = /* @__PURE__ */ e(fe(), 1), r_ = Li(), i_ = (e) => e.type === "checkbox", a_ = (e) => e instanceof Date, o_ = (e) => e == null, s_ = (e) => typeof e == "object", c_ = (e) => !o_(e) && !Array.isArray(e) && s_(e) && !a_(e), l_ = (e) => c_(e) && e.target ? i_(e.target) ? e.target.checked : e.target.value : e, u_ = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, d_ = (e, t) => e.has(u_(t)), f_ = (e) => {
|
|
4765
4765
|
let t = e.constructor && e.constructor.prototype;
|
|
4766
4766
|
return c_(t) && t.hasOwnProperty("isPrototypeOf");
|
|
4767
4767
|
}, p_ = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
|
|
@@ -6179,7 +6179,7 @@ var py = (e) => {
|
|
|
6179
6179
|
let a;
|
|
6180
6180
|
t[0] === n ? a = t[1] : (a = l("stroke-[1.8px]", n), t[0] = n, t[1] = a);
|
|
6181
6181
|
let o;
|
|
6182
|
-
t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, Y.jsx)(
|
|
6182
|
+
t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, Y.jsx)(ne, { className: a }), t[2] = a, t[3] = o);
|
|
6183
6183
|
let s;
|
|
6184
6184
|
return t[4] !== i || t[5] !== o ? (s = /* @__PURE__ */ (0, Y.jsx)(Be, {
|
|
6185
6185
|
content: i,
|
|
@@ -6741,7 +6741,7 @@ var Iy = (e) => {
|
|
|
6741
6741
|
form: r,
|
|
6742
6742
|
path: `${i}[${t}]`,
|
|
6743
6743
|
renderers: o
|
|
6744
|
-
}), v && /* @__PURE__ */ (0, Y.jsx)(
|
|
6744
|
+
}), v && /* @__PURE__ */ (0, Y.jsx)(R, {
|
|
6745
6745
|
className: "w-4 h-4 ml-2 my-1 text-muted-foreground hover:text-destructive cursor-pointer absolute right-0 top-5",
|
|
6746
6746
|
onClick: () => {
|
|
6747
6747
|
h(t);
|
|
@@ -7143,18 +7143,18 @@ function $y(e) {
|
|
|
7143
7143
|
return typeof e == "function";
|
|
7144
7144
|
}
|
|
7145
7145
|
function eb(e) {
|
|
7146
|
-
return
|
|
7146
|
+
return ue(e) && (Qy(e.render) || $y(e.initialize));
|
|
7147
7147
|
}
|
|
7148
7148
|
function tb(e) {
|
|
7149
7149
|
return typeof e == "function" || eb(e);
|
|
7150
7150
|
}
|
|
7151
7151
|
function nb(e) {
|
|
7152
|
-
return
|
|
7152
|
+
return ue(e) && tb(e.default);
|
|
7153
7153
|
}
|
|
7154
7154
|
var rb = /* @__PURE__ */ new Set(), ib = /* @__PURE__ */ new WeakMap();
|
|
7155
7155
|
function ab(e, t) {
|
|
7156
7156
|
if (nb(e)) return e.default;
|
|
7157
|
-
if (!
|
|
7157
|
+
if (!ue(e) || e.default !== void 0) return null;
|
|
7158
7158
|
let n = Qy(e.render) ? e.render : void 0, r = $y(e.initialize) ? e.initialize : void 0;
|
|
7159
7159
|
if (n === void 0 && r === void 0) return null;
|
|
7160
7160
|
let i = ib.get(e);
|
|
@@ -7167,8 +7167,8 @@ function ab(e, t) {
|
|
|
7167
7167
|
return ib.set(e, a), a;
|
|
7168
7168
|
}
|
|
7169
7169
|
function ob(e, t) {
|
|
7170
|
-
let n = "https://anywidget.dev/en/afm/", r =
|
|
7171
|
-
if (
|
|
7170
|
+
let n = "https://anywidget.dev/en/afm/", r = ue(e) && _e(e, "render"), i = ue(e) && _e(e, "initialize");
|
|
7171
|
+
if (ue(e) && e.default !== void 0) return /* @__PURE__ */ Error(`Anywidget module at ${t} has an invalid default export. Expected a factory function or an object with \`render\` or \`initialize\`. See ${n}`);
|
|
7172
7172
|
if (r || i) {
|
|
7173
7173
|
let e = [r ? "`render`" : null, i ? "`initialize`" : null].filter(Boolean).join(" and "), a = [r ? "render" : null, i ? "initialize" : null].filter((e) => e !== null), o = `export default { ${a.join(", ")} }`, s = a.length === 1 ? `export function ${a[0]}` : "named export function ...";
|
|
7174
7174
|
return /* @__PURE__ */ Error(`Anywidget module at ${t} uses named exports (${e}). Per the AFM spec, use a default export instead: \`${o}\` (not \`${s}\`). See ${n}`);
|
|
@@ -7202,7 +7202,7 @@ function db(e) {
|
|
|
7202
7202
|
return typeof e != "string" || e.length === 0 ? !1 : !!(/^(\.?\/)?@file\/[^?#]+$/.test(e) || pb(e));
|
|
7203
7203
|
}
|
|
7204
7204
|
function fb() {
|
|
7205
|
-
return ms.get(
|
|
7205
|
+
return ms.get(j) || k();
|
|
7206
7206
|
}
|
|
7207
7207
|
function pb(e) {
|
|
7208
7208
|
return e.startsWith("data:text/javascript;base64,") || e.startsWith("data:application/javascript;base64,") || e.startsWith("data:text/css;base64,") ? fb() : !1;
|
|
@@ -7739,7 +7739,7 @@ async function Ab(e, t) {
|
|
|
7739
7739
|
default: Za(r);
|
|
7740
7740
|
}
|
|
7741
7741
|
}
|
|
7742
|
-
|
|
7742
|
+
ce(kb, "WIDGET_REGISTRY");
|
|
7743
7743
|
//#endregion
|
|
7744
7744
|
//#region src/components/ui/navigation.tsx
|
|
7745
7745
|
var jb = J.forwardRef((e, t) => {
|
|
@@ -7790,7 +7790,7 @@ var Pb = ef, Fb = h("group inline-flex rounded-md bg-background px-4 py-2 text-l
|
|
|
7790
7790
|
let o;
|
|
7791
7791
|
n[4] === i ? o = n[5] : (o = l(Fb(), "group", i), n[4] = i, n[5] = o);
|
|
7792
7792
|
let s;
|
|
7793
|
-
n[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, Y.jsx)(
|
|
7793
|
+
n[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, Y.jsx)(de, {
|
|
7794
7794
|
className: "relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
7795
7795
|
"aria-hidden": "true"
|
|
7796
7796
|
}), n[6] = s) : s = n[6];
|
|
@@ -7897,7 +7897,7 @@ var Wb = (e) => {
|
|
|
7897
7897
|
let t = (0, X.c)(23), { item: n, preserveQueryParams: r, target: i } = e, a = J.useRef(null), [o, s] = J.useState(!1), c;
|
|
7898
7898
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = (e) => s(e !== ""), t[0] = c) : c = t[0];
|
|
7899
7899
|
let l;
|
|
7900
|
-
t[1] === n.label ? l = t[2] : (l =
|
|
7900
|
+
t[1] === n.label ? l = t[2] : (l = F({ html: n.label }), t[1] = n.label, t[2] = l);
|
|
7901
7901
|
let u;
|
|
7902
7902
|
t[3] === l ? u = t[4] : (u = /* @__PURE__ */ (0, Y.jsx)(Ib, {
|
|
7903
7903
|
ref: a,
|
|
@@ -7910,7 +7910,7 @@ var Wb = (e) => {
|
|
|
7910
7910
|
label: e.label,
|
|
7911
7911
|
href: r(e.href),
|
|
7912
7912
|
target: i(e.href),
|
|
7913
|
-
children: e.description &&
|
|
7913
|
+
children: e.description && F({ html: e.description })
|
|
7914
7914
|
}, e.label), t[9] = r, t[10] = i, t[11] = e) : e = t[11], d = n.items.map(e), t[5] = n.items, t[6] = r, t[7] = i, t[8] = d;
|
|
7915
7915
|
} else d = t[8];
|
|
7916
7916
|
let f;
|
|
@@ -8004,7 +8004,7 @@ var Wb = (e) => {
|
|
|
8004
8004
|
target: a
|
|
8005
8005
|
}, e.label) : /* @__PURE__ */ (0, Y.jsxs)(Pb, { children: [/* @__PURE__ */ (0, Y.jsx)("div", {
|
|
8006
8006
|
className: "inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-base font-medium text-muted-foreground/80 tracking-wide font-semibold",
|
|
8007
|
-
children:
|
|
8007
|
+
children: F({ html: e.label })
|
|
8008
8008
|
}), /* @__PURE__ */ (0, Y.jsx)(Nb, {
|
|
8009
8009
|
className: "ml-4 auto-collapse-nav",
|
|
8010
8010
|
orientation: r,
|
|
@@ -8012,13 +8012,13 @@ var Wb = (e) => {
|
|
|
8012
8012
|
href: o(e.href),
|
|
8013
8013
|
target: a(e.href),
|
|
8014
8014
|
className: Fb({ orientation: r }),
|
|
8015
|
-
children:
|
|
8015
|
+
children: F({ html: e.label })
|
|
8016
8016
|
}, e.label), e.description) }, e.label))
|
|
8017
8017
|
})] }, e.label) : /* @__PURE__ */ (0, Y.jsx)(Pb, { children: /* @__PURE__ */ (0, Y.jsx)(Rb, {
|
|
8018
8018
|
href: o(e.href),
|
|
8019
8019
|
target: a(e.href),
|
|
8020
8020
|
className: Fb({ orientation: r }),
|
|
8021
|
-
children:
|
|
8021
|
+
children: F({ html: e.label })
|
|
8022
8022
|
}) }, e.label), t[0] = r, t[1] = s);
|
|
8023
8023
|
let c = s, l;
|
|
8024
8024
|
if (t[2] !== n || t[3] !== c) {
|
|
@@ -8042,7 +8042,7 @@ var Wb = (e) => {
|
|
|
8042
8042
|
let s;
|
|
8043
8043
|
n[5] === i ? s = n[6] : (s = l("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground", i), n[5] = i, n[6] = s);
|
|
8044
8044
|
let c;
|
|
8045
|
-
n[7] === a ? c = n[8] : (c =
|
|
8045
|
+
n[7] === a ? c = n[8] : (c = F({ html: a }), n[7] = a, n[8] = c);
|
|
8046
8046
|
let u;
|
|
8047
8047
|
n[9] === c ? u = n[10] : (u = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
8048
8048
|
className: "text-base font-medium leading-none",
|
|
@@ -8068,7 +8068,7 @@ Xb.displayName = "ListItem";
|
|
|
8068
8068
|
function Zb(e, t) {
|
|
8069
8069
|
return t ? /* @__PURE__ */ (0, Y.jsx)(Be, {
|
|
8070
8070
|
delayDuration: 200,
|
|
8071
|
-
content:
|
|
8071
|
+
content: F({ html: t }),
|
|
8072
8072
|
children: e
|
|
8073
8073
|
}) : e;
|
|
8074
8074
|
}
|
|
@@ -8168,7 +8168,7 @@ var tx = class e {
|
|
|
8168
8168
|
detail: { objectId: t }
|
|
8169
8169
|
})));
|
|
8170
8170
|
}
|
|
8171
|
-
}, nx = tx.INSTANCE, rx = new
|
|
8171
|
+
}, nx = tx.INSTANCE, rx = new De("function-call-result", async (e, t) => {
|
|
8172
8172
|
await ta().sendFunctionRequest({
|
|
8173
8173
|
functionCallId: e,
|
|
8174
8174
|
...t
|
|
@@ -11850,10 +11850,10 @@ function RE(e) {
|
|
|
11850
11850
|
this.pluginRef.current?.reset();
|
|
11851
11851
|
}
|
|
11852
11852
|
getChildren() {
|
|
11853
|
-
return this.children.length === 0 ? null : this.children.length === 1 ?
|
|
11853
|
+
return this.children.length === 0 ? null : this.children.length === 1 ? F({
|
|
11854
11854
|
html: this.innerHTML,
|
|
11855
11855
|
alwaysSanitizeHtml: !1
|
|
11856
|
-
}) : Array.from(this.children).map((e, t) => /* @__PURE__ */ (0, Y.jsx)(J.Fragment, { children:
|
|
11856
|
+
}) : Array.from(this.children).map((e, t) => /* @__PURE__ */ (0, Y.jsx)(J.Fragment, { children: F({
|
|
11857
11857
|
html: e.outerHTML,
|
|
11858
11858
|
alwaysSanitizeHtml: !1
|
|
11859
11859
|
}) }, t));
|
|
@@ -12050,7 +12050,7 @@ function JE() {
|
|
|
12050
12050
|
}
|
|
12051
12051
|
}
|
|
12052
12052
|
getContents() {
|
|
12053
|
-
return
|
|
12053
|
+
return F({ html: this.innerHTML });
|
|
12054
12054
|
}
|
|
12055
12055
|
});
|
|
12056
12056
|
}
|
|
@@ -12317,7 +12317,7 @@ var aD = H([
|
|
|
12317
12317
|
t || (n.stopPropagation(), e.setValue((e) => e + 1));
|
|
12318
12318
|
},
|
|
12319
12319
|
type: "submit",
|
|
12320
|
-
children:
|
|
12320
|
+
children: F({ html: r })
|
|
12321
12321
|
}), c = o && !a ? /* @__PURE__ */ (0, Y.jsx)(QE, { shortcut: o }) : a;
|
|
12322
12322
|
return c ? /* @__PURE__ */ (0, Y.jsx)(Be, {
|
|
12323
12323
|
content: c,
|
|
@@ -12357,7 +12357,7 @@ var cD = (e) => {
|
|
|
12357
12357
|
let f;
|
|
12358
12358
|
t[8] === o ? f = t[9] : (f = l("font-prose", o), t[8] = o, t[9] = f);
|
|
12359
12359
|
let p;
|
|
12360
|
-
t[10] === n ? p = t[11] : (p =
|
|
12360
|
+
t[10] === n ? p = t[11] : (p = F({ html: n }), t[10] = n, t[11] = p);
|
|
12361
12361
|
let m;
|
|
12362
12362
|
t[12] !== u || t[13] !== s || t[14] !== f || t[15] !== p ? (m = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
12363
12363
|
part: "label",
|
|
@@ -12462,7 +12462,7 @@ var cD = (e) => {
|
|
|
12462
12462
|
t[20] === Symbol.for("react.memo_cache_sentinel") ? (n = [], t[20] = n) : n = t[20], x = n;
|
|
12463
12463
|
}
|
|
12464
12464
|
let S = x, C = `cm *:outline-hidden border rounded overflow-hidden ${r}`, w = r === "dark" ? "dark" : "light", T = !e.disabled, E;
|
|
12465
|
-
t[21] !== S || t[22] !== g || t[23] !== o || t[24] !== a || t[25] !== i || t[26] !== e.language || t[27] !== e.placeholder || t[28] !== e.showCopyButton || t[29] !== C || t[30] !== w || t[31] !== T ? (E = /* @__PURE__ */ (0, Y.jsx)(
|
|
12465
|
+
t[21] !== S || t[22] !== g || t[23] !== o || t[24] !== a || t[25] !== i || t[26] !== e.language || t[27] !== e.placeholder || t[28] !== e.showCopyButton || t[29] !== C || t[30] !== w || t[31] !== T ? (E = /* @__PURE__ */ (0, Y.jsx)(ge, {
|
|
12466
12466
|
className: C,
|
|
12467
12467
|
theme: w,
|
|
12468
12468
|
minHeight: i,
|
|
@@ -12489,7 +12489,7 @@ var cD = (e) => {
|
|
|
12489
12489
|
output: t
|
|
12490
12490
|
};
|
|
12491
12491
|
} };
|
|
12492
|
-
} }, mD = J.lazy(() => import("./chat-ui-
|
|
12492
|
+
} }, mD = J.lazy(() => import("./chat-ui-BEMyRpmS.js").then((e) => ({ default: e.Chatbot }))), hD = G(W({
|
|
12493
12493
|
id: U(),
|
|
12494
12494
|
role: H([
|
|
12495
12495
|
"system",
|
|
@@ -12958,7 +12958,7 @@ function pO(e, t) {
|
|
|
12958
12958
|
}
|
|
12959
12959
|
//#endregion
|
|
12960
12960
|
//#region src/plugins/impl/DataEditorPlugin.tsx
|
|
12961
|
-
var mO = J.lazy(() => import("./glide-data-editor-
|
|
12961
|
+
var mO = J.lazy(() => import("./glide-data-editor-BeLtV7nF.js").then((e) => e.t)), hO = YE("marimo-data-editor", { cssStyles: [vD, yD] }).withData(W({
|
|
12962
12962
|
initialValue: W({ edits: G(W({
|
|
12963
12963
|
rowIdx: K(),
|
|
12964
12964
|
columnId: U(),
|
|
@@ -13397,7 +13397,7 @@ function VO(e) {
|
|
|
13397
13397
|
//#endregion
|
|
13398
13398
|
//#region src/components/editor/cell/useAddCell.ts
|
|
13399
13399
|
function HO() {
|
|
13400
|
-
let e = (0, X.c)(4), t = _o(hs), n =
|
|
13400
|
+
let e = (0, X.c)(4), t = _o(hs), n = B(), { createCell: r } = Ae(), i;
|
|
13401
13401
|
return e[0] !== t || e[1] !== r || e[2] !== n ? (i = (e) => {
|
|
13402
13402
|
e.includes("alt") && T({
|
|
13403
13403
|
autoInstantiate: t,
|
|
@@ -14669,7 +14669,7 @@ var WO = [UO({
|
|
|
14669
14669
|
borderBottom: "2px solid var(--cm-reactive-reference-border-color)"
|
|
14670
14670
|
},
|
|
14671
14671
|
".mo-cm-reactive-reference-hover": { cursor: "pointer" }
|
|
14672
|
-
})], KO = [
|
|
14672
|
+
})], KO = [Te(), As.lineWrapping], qO = [Qs(), As.lineWrapping], JO = [Js(), As.lineWrapping];
|
|
14673
14673
|
function YO(e) {
|
|
14674
14674
|
switch (e) {
|
|
14675
14675
|
case "sql": return qO;
|
|
@@ -14753,7 +14753,7 @@ var ZO = (e) => {
|
|
|
14753
14753
|
}), t[3] = r, t[4] = a), a;
|
|
14754
14754
|
}, QO = (e) => {
|
|
14755
14755
|
let t = (0, X.c)(9), n = e.hidden ? "Show code" : "Hide code", r = e.hidden ? "Show code" : "Hide code", i;
|
|
14756
|
-
t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, Y.jsx)(
|
|
14756
|
+
t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, Y.jsx)(je, {
|
|
14757
14757
|
size: 14,
|
|
14758
14758
|
strokeWidth: 1.5
|
|
14759
14759
|
}) : /* @__PURE__ */ (0, Y.jsx)(vr, {
|
|
@@ -14808,7 +14808,7 @@ var tk = (e) => {
|
|
|
14808
14808
|
let t = (0, X.c)(5), { text: n, tooltip: r } = e, i;
|
|
14809
14809
|
t[0] === r ? i = t[1] : (i = r && /* @__PURE__ */ (0, Y.jsx)(Be, {
|
|
14810
14810
|
content: r,
|
|
14811
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
14811
|
+
children: /* @__PURE__ */ (0, Y.jsx)(P, { className: "w-3 h-3 mt-0.5" })
|
|
14812
14812
|
}), t[0] = r, t[1] = i);
|
|
14813
14813
|
let a;
|
|
14814
14814
|
return t[2] !== i || t[3] !== n ? (a = /* @__PURE__ */ (0, Y.jsxs)("h2", {
|
|
@@ -15183,7 +15183,7 @@ var tk = (e) => {
|
|
|
15183
15183
|
open: o,
|
|
15184
15184
|
onOpenChange: s,
|
|
15185
15185
|
children: [/* @__PURE__ */ (0, Y.jsx)(Jr, { children: /* @__PURE__ */ (0, Y.jsx)(Br, { placeholder: "Select an option" }) }), /* @__PURE__ */ (0, Y.jsx)(Gr, { children: /* @__PURE__ */ (0, Y.jsx)(qr, { children: Je.map((e) => {
|
|
15186
|
-
let t =
|
|
15186
|
+
let t = oe[e], n = e === "string" ? "categorical" : e;
|
|
15187
15187
|
return /* @__PURE__ */ (0, Y.jsx)(Hr, {
|
|
15188
15188
|
value: e,
|
|
15189
15189
|
className: "flex flex-col items-start justify-center",
|
|
@@ -15306,7 +15306,7 @@ var tk = (e) => {
|
|
|
15306
15306
|
};
|
|
15307
15307
|
function wk(e) {
|
|
15308
15308
|
if (e.name.trim() === "") return null;
|
|
15309
|
-
let t =
|
|
15309
|
+
let t = oe[e.type];
|
|
15310
15310
|
return /* @__PURE__ */ (0, Y.jsx)(Hr, {
|
|
15311
15311
|
value: e.name,
|
|
15312
15312
|
children: /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
@@ -15753,7 +15753,7 @@ var Yk = () => {
|
|
|
15753
15753
|
p,
|
|
15754
15754
|
/* @__PURE__ */ (0, Y.jsxs)("p", {
|
|
15755
15755
|
className: "text-xs",
|
|
15756
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
15756
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(P, { className: "w-2.5 h-2.5 inline mb-1 mr-1" }), "If you are using color range, color scheme will be ignored."]
|
|
15757
15757
|
})
|
|
15758
15758
|
] })]
|
|
15759
15759
|
}), e[12] = m) : m = e[12];
|
|
@@ -16067,7 +16067,7 @@ var dA = "marimo:charts:v2", fA = W({
|
|
|
16067
16067
|
}
|
|
16068
16068
|
}, gA = no(dA, /* @__PURE__ */ new Map(), hA);
|
|
16069
16069
|
function _A() {
|
|
16070
|
-
return
|
|
16070
|
+
return he();
|
|
16071
16071
|
}
|
|
16072
16072
|
function vA(e, t) {
|
|
16073
16073
|
let n = qa(t);
|
|
@@ -16385,7 +16385,7 @@ var DA = (e) => {
|
|
|
16385
16385
|
t[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, Y.jsxs)(Jt, {
|
|
16386
16386
|
value: "data",
|
|
16387
16387
|
className: "w-1/2 h-6",
|
|
16388
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
16388
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(E, { className: "w-4 h-4 mr-2" }), "Data"]
|
|
16389
16389
|
}), t[10] = f) : f = t[10];
|
|
16390
16390
|
let p;
|
|
16391
16391
|
t[11] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, Y.jsxs)(Ut, {
|
|
@@ -16393,7 +16393,7 @@ var DA = (e) => {
|
|
|
16393
16393
|
children: [f, /* @__PURE__ */ (0, Y.jsxs)(Jt, {
|
|
16394
16394
|
value: "style",
|
|
16395
16395
|
className: "w-1/2 h-6",
|
|
16396
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
16396
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(I, { className: "w-4 h-4 mr-2" }), "Style"]
|
|
16397
16397
|
})]
|
|
16398
16398
|
}), t[11] = p) : p = t[11];
|
|
16399
16399
|
let m;
|
|
@@ -16455,7 +16455,7 @@ function PA(e) {
|
|
|
16455
16455
|
//#endregion
|
|
16456
16456
|
//#region src/components/data-table/hooks/use-panel-ownership.ts
|
|
16457
16457
|
function FA(e, t) {
|
|
16458
|
-
let n = (0, X.c)(16), r = _o(Qx), { focusCell: i } =
|
|
16458
|
+
let n = (0, X.c)(16), r = _o(Qx), { focusCell: i } = N(), a = B(), [o, s] = mo(Xx), [l, u] = mo(Yx), [d, f] = mo(Zx), p = IA(e, t);
|
|
16459
16459
|
!t && r && (c.error("CellId is not found, defaulting to fixed mode"), r = !1);
|
|
16460
16460
|
let m = (e) => l === p && d && e === o, h = a === t, g = l && LA(l, t);
|
|
16461
16461
|
r && h && l !== p && !g && u(p);
|
|
@@ -16547,7 +16547,7 @@ function GA({ stats: e, dataType: t, locale: n }) {
|
|
|
16547
16547
|
children: [
|
|
16548
16548
|
/* @__PURE__ */ (0, Y.jsx)("span", {
|
|
16549
16549
|
className: "text-xs min-w-[60px] capitalize",
|
|
16550
|
-
children:
|
|
16550
|
+
children: Ee(e, t)
|
|
16551
16551
|
}),
|
|
16552
16552
|
/* @__PURE__ */ (0, Y.jsx)("span", {
|
|
16553
16553
|
className: "text-xs font-bold text-muted-foreground tracking-wide",
|
|
@@ -16563,7 +16563,7 @@ function GA({ stats: e, dataType: t, locale: n }) {
|
|
|
16563
16563
|
}
|
|
16564
16564
|
var KA = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
16565
16565
|
className: "flex justify-center",
|
|
16566
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
16566
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Se, { className: "size-4" })
|
|
16567
16567
|
});
|
|
16568
16568
|
function qA(e, t) {
|
|
16569
16569
|
return /* @__PURE__ */ (0, Y.jsx)(J.Suspense, {
|
|
@@ -16589,7 +16589,7 @@ function qA(e, t) {
|
|
|
16589
16589
|
});
|
|
16590
16590
|
}
|
|
16591
16591
|
var JA = (e) => {
|
|
16592
|
-
let t = (0, X.c)(11), { chartCode: n, columnName: r } = e, i = _o(hs), a =
|
|
16592
|
+
let t = (0, X.c)(11), { chartCode: n, columnName: r } = e, i = _o(hs), a = B(), { createCell: o } = Ae(), s;
|
|
16593
16593
|
t[0] !== i || t[1] !== o || t[2] !== a ? (s = (e) => {
|
|
16594
16594
|
e.includes("alt") && T({
|
|
16595
16595
|
autoInstantiate: i,
|
|
@@ -16651,7 +16651,7 @@ function YA({ previewColumn: e, fieldTypes: t, totalRows: n, totalColumns: r, ta
|
|
|
16651
16651
|
className: "gap-1",
|
|
16652
16652
|
disabled: f === 0,
|
|
16653
16653
|
onClick: () => a.toggleAllColumnsVisible(!0),
|
|
16654
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
16654
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(je, { className: "w-3 h-3" }), "Show all"]
|
|
16655
16655
|
})
|
|
16656
16656
|
}), /* @__PURE__ */ (0, Y.jsx)(Be, {
|
|
16657
16657
|
content: "Hide all columns",
|
|
@@ -16734,7 +16734,7 @@ function XA({ columnName: e, column: t, dataType: n, externalType: r, previewCol
|
|
|
16734
16734
|
onClick: (e) => {
|
|
16735
16735
|
e.preventDefault(), e.stopPropagation(), t.toggleVisibility(!t.getIsVisible());
|
|
16736
16736
|
},
|
|
16737
|
-
children: t.getIsVisible() ? /* @__PURE__ */ (0, Y.jsx)(
|
|
16737
|
+
children: t.getIsVisible() ? /* @__PURE__ */ (0, Y.jsx)(je, {
|
|
16738
16738
|
className: "h-3 w-3",
|
|
16739
16739
|
strokeWidth: 2.5
|
|
16740
16740
|
}) : /* @__PURE__ */ (0, Y.jsx)(vr, {
|
|
@@ -16827,12 +16827,12 @@ var ZA = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
16827
16827
|
});
|
|
16828
16828
|
if (i === 0) return /* @__PURE__ */ (0, Y.jsx)(ej, {
|
|
16829
16829
|
kind: "info",
|
|
16830
|
-
Icon:
|
|
16830
|
+
Icon: P,
|
|
16831
16831
|
message: "No rows selected"
|
|
16832
16832
|
});
|
|
16833
16833
|
if (!y) return /* @__PURE__ */ (0, Y.jsx)(zn, {
|
|
16834
16834
|
milliseconds: 200,
|
|
16835
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
16835
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Se, {
|
|
16836
16836
|
size: "medium",
|
|
16837
16837
|
centered: !0
|
|
16838
16838
|
})
|
|
@@ -16922,8 +16922,8 @@ var ZA = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
16922
16922
|
}), t[25] = p, t[26] = c, t[27] = s, t[28] = T, t[29] = A) : A = t[29];
|
|
16923
16923
|
let j;
|
|
16924
16924
|
t[30] === S ? j = t[31] : (j = () => S(0), t[30] = S, t[31] = j);
|
|
16925
|
-
let M = n === 0,
|
|
16926
|
-
t[32] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
16925
|
+
let M = n === 0, N;
|
|
16926
|
+
t[32] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ (0, Y.jsx)(tn, {}), t[32] = N) : N = t[32];
|
|
16927
16927
|
let F;
|
|
16928
16928
|
t[33] !== j || t[34] !== M ? (F = /* @__PURE__ */ (0, Y.jsx)(_, {
|
|
16929
16929
|
variant: "outline",
|
|
@@ -16932,7 +16932,7 @@ var ZA = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
16932
16932
|
onClick: j,
|
|
16933
16933
|
disabled: M,
|
|
16934
16934
|
"aria-label": "Go to first row",
|
|
16935
|
-
children:
|
|
16935
|
+
children: N
|
|
16936
16936
|
}), t[33] = j, t[34] = M, t[35] = F) : F = t[35];
|
|
16937
16937
|
let I;
|
|
16938
16938
|
t[36] !== n || t[37] !== S ? (I = () => S(n - 1), t[36] = n, t[37] = S, t[38] = I) : I = t[38];
|
|
@@ -17290,7 +17290,7 @@ var _j = (e) => {
|
|
|
17290
17290
|
gj(l, o), d(!1);
|
|
17291
17291
|
}, t[7] = o, t[8] = l, t[9] = e) : e = t[9];
|
|
17292
17292
|
let n;
|
|
17293
|
-
t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, Y.jsx)(
|
|
17293
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, Y.jsx)(ye, { className: "mr-2 h-4 w-4" }), t[10] = n) : n = t[10];
|
|
17294
17294
|
let r;
|
|
17295
17295
|
return t[11] === e ? r = t[12] : (r = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
17296
17296
|
className: "flex h-20 items-center justify-center",
|
|
@@ -18128,7 +18128,7 @@ var Uj = J.lazy(() => import("./ConnectedDataExplorerComponent-CoEU9snz.js")), W
|
|
|
18128
18128
|
too_many_values: !1
|
|
18129
18129
|
})), Jj = (e) => {
|
|
18130
18130
|
let t = (0, X.c)(4), { type: n } = e, r;
|
|
18131
|
-
t[0] === n ? r = t[1] : (r = () => n.startsWith("int") || n.startsWith("float") || n.startsWith("uint") || n.startsWith("number") || n.startsWith("complex") ? /* @__PURE__ */ (0, Y.jsx)(Yu, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, Y.jsx)(Zu, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, Y.jsx)(jr, { size: 14 }) : n.startsWith("bool") ? /* @__PURE__ */ (0, Y.jsx)(kr, { size: 14 }) : /* @__PURE__ */ (0, Y.jsx)(
|
|
18131
|
+
t[0] === n ? r = t[1] : (r = () => n.startsWith("int") || n.startsWith("float") || n.startsWith("uint") || n.startsWith("number") || n.startsWith("complex") ? /* @__PURE__ */ (0, Y.jsx)(Yu, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, Y.jsx)(Zu, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, Y.jsx)(jr, { size: 14 }) : n.startsWith("bool") ? /* @__PURE__ */ (0, Y.jsx)(kr, { size: 14 }) : /* @__PURE__ */ (0, Y.jsx)(ie, { size: 14 }), t[0] = n, t[1] = r);
|
|
18132
18132
|
let i = r, a;
|
|
18133
18133
|
return t[2] === i ? a = t[3] : (a = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
18134
18134
|
className: "border p-px border-border bg-(--slate-2) flex items-center justify-center rounded",
|
|
@@ -18609,7 +18609,7 @@ var cM = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
18609
18609
|
"to automatically apply transformations."
|
|
18610
18610
|
] })]
|
|
18611
18611
|
}),
|
|
18612
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
18612
|
+
children: /* @__PURE__ */ (0, Y.jsx)(P, { className: "w-3 h-3 text-muted-foreground hover:text-foreground cursor-help" })
|
|
18613
18613
|
})]
|
|
18614
18614
|
})
|
|
18615
18615
|
]
|
|
@@ -18641,7 +18641,7 @@ var cM = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
18641
18641
|
}
|
|
18642
18642
|
o(t);
|
|
18643
18643
|
},
|
|
18644
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
18644
|
+
children: /* @__PURE__ */ (0, Y.jsx)(R, { className: "w-3 h-3" })
|
|
18645
18645
|
})]
|
|
18646
18646
|
}, i);
|
|
18647
18647
|
}), d;
|
|
@@ -18715,7 +18715,7 @@ var cM = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
18715
18715
|
}), t[9] = i, t[10] = l, t[11] = u) : u = t[11], u;
|
|
18716
18716
|
}, dM = {
|
|
18717
18717
|
aggregate: He,
|
|
18718
|
-
column_conversion:
|
|
18718
|
+
column_conversion: re,
|
|
18719
18719
|
filter_rows: _n,
|
|
18720
18720
|
group_by: dd,
|
|
18721
18721
|
rename_column: Ia,
|
|
@@ -18726,7 +18726,7 @@ var cM = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
18726
18726
|
explode_columns: Xu,
|
|
18727
18727
|
expand_dict: nd,
|
|
18728
18728
|
unique: ed,
|
|
18729
|
-
pivot:
|
|
18729
|
+
pivot: ye
|
|
18730
18730
|
};
|
|
18731
18731
|
function fM(e) {
|
|
18732
18732
|
e.stopPropagation(), window.open("https://github.com/marimo-team/marimo/issues/new?title=New%20dataframe%20transform:&labels=enhancement&template=feature_request.yaml", "_blank", "noopener");
|
|
@@ -18793,130 +18793,130 @@ var pM = YE("marimo-dataframe").withData(W({
|
|
|
18793
18793
|
t[2] === v ? y = t[3] : (y = [v], t[2] = v, t[3] = y);
|
|
18794
18794
|
let { data: b, error: x, isPending: S } = $s(_, y), C;
|
|
18795
18795
|
t[4] === b ? C = t[5] : (C = b || {}, t[4] = b, t[5] = C);
|
|
18796
|
-
let { url: w, total_rows: T, row_headers:
|
|
18797
|
-
t[6] === o ?
|
|
18798
|
-
o && e !== "transform" &&
|
|
18799
|
-
}, t[6] = o, t[7] =
|
|
18800
|
-
let
|
|
18801
|
-
t[8] ===
|
|
18802
|
-
|
|
18803
|
-
}, t[8] =
|
|
18804
|
-
let
|
|
18805
|
-
t[10] !== c || t[11] !== s?.transforms.length ? (
|
|
18806
|
-
let e =
|
|
18796
|
+
let { url: w, total_rows: T, row_headers: D, field_types: O, column_types_per_step: k, python_code: A, sql_code: j } = C, M = O?.length, [N, P] = (0, J.useState)(s || mM), F = (0, J.useRef)(null), I;
|
|
18797
|
+
t[6] === o ? I = t[7] : (I = (e) => {
|
|
18798
|
+
o && e !== "transform" && F.current?.submit();
|
|
18799
|
+
}, t[6] = o, t[7] = I);
|
|
18800
|
+
let L = I, R = (0, J.useRef)(N), z;
|
|
18801
|
+
t[8] === N ? z = t[9] : (z = () => {
|
|
18802
|
+
R.current = N;
|
|
18803
|
+
}, t[8] = N, t[9] = z), (0, J.useEffect)(z);
|
|
18804
|
+
let B;
|
|
18805
|
+
t[10] !== c || t[11] !== s?.transforms.length ? (B = () => {
|
|
18806
|
+
let e = R.current;
|
|
18807
18807
|
s?.transforms.length !== e.transforms.length && c(e);
|
|
18808
|
-
}, t[10] = c, t[11] = s?.transforms.length, t[12] =
|
|
18809
|
-
let
|
|
18810
|
-
t[13] !== b || t[14] !== c || t[15] !==
|
|
18808
|
+
}, t[10] = c, t[11] = s?.transforms.length, t[12] = B) : B = t[12];
|
|
18809
|
+
let ee = s?.transforms.length, te;
|
|
18810
|
+
t[13] !== b || t[14] !== c || t[15] !== ee ? (te = [
|
|
18811
18811
|
b,
|
|
18812
|
-
|
|
18813
|
-
|
|
18812
|
+
ee,
|
|
18813
|
+
R,
|
|
18814
18814
|
c
|
|
18815
|
-
], t[13] = b, t[14] = c, t[15] =
|
|
18816
|
-
let
|
|
18817
|
-
t[17] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
18815
|
+
], t[13] = b, t[14] = c, t[15] = ee, t[16] = te) : te = t[16], (0, J.useEffect)(B, te);
|
|
18816
|
+
let ne;
|
|
18817
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ (0, Y.jsxs)(Jt, {
|
|
18818
18818
|
value: "transform",
|
|
18819
18819
|
className: "text-xs py-1",
|
|
18820
18820
|
children: [/* @__PURE__ */ (0, Y.jsx)(He, { className: "w-3 h-3 mr-2" }), "Transform"]
|
|
18821
|
-
}), t[17] =
|
|
18822
|
-
let
|
|
18823
|
-
t[18] ===
|
|
18821
|
+
}), t[17] = ne) : ne = t[17];
|
|
18822
|
+
let re;
|
|
18823
|
+
t[18] === A ? re = t[19] : (re = A && /* @__PURE__ */ (0, Y.jsxs)(Jt, {
|
|
18824
18824
|
value: "python-code",
|
|
18825
18825
|
className: "text-xs py-1",
|
|
18826
18826
|
children: [/* @__PURE__ */ (0, Y.jsx)(Qu, { className: "w-3 h-3 mr-2" }), "Python Code"]
|
|
18827
|
-
}), t[18] =
|
|
18828
|
-
let
|
|
18829
|
-
t[20] ===
|
|
18827
|
+
}), t[18] = A, t[19] = re);
|
|
18828
|
+
let ie;
|
|
18829
|
+
t[20] === j ? ie = t[21] : (ie = j && /* @__PURE__ */ (0, Y.jsxs)(Jt, {
|
|
18830
18830
|
value: "sql-code",
|
|
18831
18831
|
className: "text-xs py-1",
|
|
18832
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
18833
|
-
}), t[20] =
|
|
18834
|
-
let ie;
|
|
18835
|
-
t[22] === Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ (0, Y.jsx)("div", { className: "grow" }), t[22] = ie) : ie = t[22];
|
|
18832
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(E, { className: "w-3 h-3 mr-2" }), "SQL Code"]
|
|
18833
|
+
}), t[20] = j, t[21] = ie);
|
|
18836
18834
|
let ae;
|
|
18837
|
-
t[
|
|
18835
|
+
t[22] === Symbol.for("react.memo_cache_sentinel") ? (ae = /* @__PURE__ */ (0, Y.jsx)("div", { className: "grow" }), t[22] = ae) : ae = t[22];
|
|
18836
|
+
let oe;
|
|
18837
|
+
t[23] !== re || t[24] !== ie ? (oe = /* @__PURE__ */ (0, Y.jsxs)(Ut, {
|
|
18838
18838
|
className: "h-8",
|
|
18839
18839
|
children: [
|
|
18840
|
-
te,
|
|
18841
18840
|
ne,
|
|
18842
18841
|
re,
|
|
18843
|
-
ie
|
|
18842
|
+
ie,
|
|
18843
|
+
ae
|
|
18844
18844
|
]
|
|
18845
|
-
}), t[23] =
|
|
18846
|
-
let oe;
|
|
18847
|
-
t[26] === S ? oe = t[27] : (oe = S && /* @__PURE__ */ (0, Y.jsx)(ye, { size: "small" }), t[26] = S, t[27] = oe);
|
|
18845
|
+
}), t[23] = re, t[24] = ie, t[25] = oe) : oe = t[25];
|
|
18848
18846
|
let se;
|
|
18849
|
-
t[
|
|
18850
|
-
className: "flex items-center gap-2",
|
|
18851
|
-
children: [ae, oe]
|
|
18852
|
-
}), t[28] = ae, t[29] = oe, t[30] = se) : se = t[30];
|
|
18847
|
+
t[26] === S ? se = t[27] : (se = S && /* @__PURE__ */ (0, Y.jsx)(Se, { size: "small" }), t[26] = S, t[27] = se);
|
|
18853
18848
|
let ce;
|
|
18854
|
-
t[
|
|
18855
|
-
|
|
18856
|
-
|
|
18849
|
+
t[28] !== oe || t[29] !== se ? (ce = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
18850
|
+
className: "flex items-center gap-2",
|
|
18851
|
+
children: [oe, se]
|
|
18852
|
+
}), t[28] = oe, t[29] = se, t[30] = ce) : ce = t[30];
|
|
18857
18853
|
let le;
|
|
18858
|
-
t[
|
|
18854
|
+
t[31] !== c || t[32] !== s ? (le = (e) => {
|
|
18855
|
+
So(e, s) || (c(e), P(e));
|
|
18856
|
+
}, t[31] = c, t[32] = s, t[33] = le) : le = t[33];
|
|
18857
|
+
let ue;
|
|
18858
|
+
t[34] !== k || t[35] !== n || t[36] !== u || t[37] !== N || t[38] !== o || t[39] !== le ? (ue = /* @__PURE__ */ (0, Y.jsx)(Vt, {
|
|
18859
18859
|
value: "transform",
|
|
18860
18860
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18861
18861
|
children: /* @__PURE__ */ (0, Y.jsx)(cM, {
|
|
18862
|
-
ref:
|
|
18863
|
-
initialValue:
|
|
18862
|
+
ref: F,
|
|
18863
|
+
initialValue: N,
|
|
18864
18864
|
columns: n,
|
|
18865
|
-
onChange:
|
|
18866
|
-
onInvalidChange:
|
|
18865
|
+
onChange: le,
|
|
18866
|
+
onInvalidChange: P,
|
|
18867
18867
|
getColumnValues: u,
|
|
18868
|
-
columnTypesPerStep:
|
|
18868
|
+
columnTypesPerStep: k,
|
|
18869
18869
|
lazy: o
|
|
18870
18870
|
})
|
|
18871
|
-
}), t[34] =
|
|
18872
|
-
let
|
|
18873
|
-
t[41] ===
|
|
18871
|
+
}), t[34] = k, t[35] = n, t[36] = u, t[37] = N, t[38] = o, t[39] = le, t[40] = ue) : ue = t[40];
|
|
18872
|
+
let de;
|
|
18873
|
+
t[41] === A ? de = t[42] : (de = A && /* @__PURE__ */ (0, Y.jsx)(Vt, {
|
|
18874
18874
|
value: "python-code",
|
|
18875
18875
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18876
18876
|
children: /* @__PURE__ */ (0, Y.jsx)(XO, {
|
|
18877
18877
|
minHeight: "215px",
|
|
18878
18878
|
maxHeight: "215px",
|
|
18879
|
-
code:
|
|
18879
|
+
code: A,
|
|
18880
18880
|
language: "python"
|
|
18881
18881
|
})
|
|
18882
|
-
}), t[41] =
|
|
18883
|
-
let
|
|
18884
|
-
t[43] ===
|
|
18882
|
+
}), t[41] = A, t[42] = de);
|
|
18883
|
+
let fe;
|
|
18884
|
+
t[43] === j ? fe = t[44] : (fe = j && /* @__PURE__ */ (0, Y.jsx)(Vt, {
|
|
18885
18885
|
value: "sql-code",
|
|
18886
18886
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18887
18887
|
children: /* @__PURE__ */ (0, Y.jsx)(XO, {
|
|
18888
18888
|
minHeight: "215px",
|
|
18889
18889
|
maxHeight: "215px",
|
|
18890
|
-
code:
|
|
18890
|
+
code: j,
|
|
18891
18891
|
language: "sql"
|
|
18892
18892
|
})
|
|
18893
|
-
}), t[43] =
|
|
18894
|
-
let
|
|
18895
|
-
t[45] !==
|
|
18893
|
+
}), t[43] = j, t[44] = fe);
|
|
18894
|
+
let pe;
|
|
18895
|
+
t[45] !== L || t[46] !== ce || t[47] !== ue || t[48] !== de || t[49] !== fe ? (pe = /* @__PURE__ */ (0, Y.jsxs)(Un, {
|
|
18896
18896
|
defaultValue: "transform",
|
|
18897
|
-
onValueChange:
|
|
18897
|
+
onValueChange: L,
|
|
18898
18898
|
children: [
|
|
18899
|
-
|
|
18900
|
-
le,
|
|
18899
|
+
ce,
|
|
18901
18900
|
ue,
|
|
18902
|
-
de
|
|
18901
|
+
de,
|
|
18902
|
+
fe
|
|
18903
18903
|
]
|
|
18904
|
-
}), t[45] =
|
|
18905
|
-
let
|
|
18906
|
-
t[51] === x ?
|
|
18907
|
-
let
|
|
18908
|
-
t[53] !== f || t[54] !== p || t[55] !==
|
|
18904
|
+
}), t[45] = L, t[46] = ce, t[47] = ue, t[48] = de, t[49] = fe, t[50] = pe) : pe = t[50];
|
|
18905
|
+
let me;
|
|
18906
|
+
t[51] === x ? me = t[52] : (me = x && /* @__PURE__ */ (0, Y.jsx)(bs, { error: x }), t[51] = x, t[52] = me);
|
|
18907
|
+
let he = w || "", ge = T ?? 0, _e = M ?? 0, ve = D || Ks.EMPTY, ye = T && T > 5 || !1, be;
|
|
18908
|
+
t[53] !== f || t[54] !== p || t[55] !== O || t[56] !== m || t[57] !== h || t[58] !== g || t[59] !== r || t[60] !== d || t[61] !== i || t[62] !== he || t[63] !== ge || t[64] !== _e || t[65] !== ve || t[66] !== ye ? (be = /* @__PURE__ */ (0, Y.jsx)(vj, {
|
|
18909
18909
|
label: null,
|
|
18910
18910
|
className: "rounded-b border-x border-b",
|
|
18911
|
-
data:
|
|
18911
|
+
data: he,
|
|
18912
18912
|
hasStableRowId: !1,
|
|
18913
|
-
totalRows:
|
|
18914
|
-
totalColumns:
|
|
18913
|
+
totalRows: ge,
|
|
18914
|
+
totalColumns: _e,
|
|
18915
18915
|
maxColumns: "all",
|
|
18916
18916
|
pageSize: r,
|
|
18917
18917
|
pagination: !0,
|
|
18918
|
-
fieldTypes:
|
|
18919
|
-
rowHeaders:
|
|
18918
|
+
fieldTypes: O,
|
|
18919
|
+
rowHeaders: ve,
|
|
18920
18920
|
showDownload: i,
|
|
18921
18921
|
download_as: f,
|
|
18922
18922
|
download_geojson: p,
|
|
@@ -18928,7 +18928,7 @@ var pM = YE("marimo-dataframe").withData(W({
|
|
|
18928
18928
|
showColumnSummaries: !1,
|
|
18929
18929
|
showDataTypes: !0,
|
|
18930
18930
|
get_column_summaries: gM,
|
|
18931
|
-
showPageSizeSelector:
|
|
18931
|
+
showPageSizeSelector: ye,
|
|
18932
18932
|
showColumnExplorer: !1,
|
|
18933
18933
|
showRowExplorer: !0,
|
|
18934
18934
|
showChartBuilder: !1,
|
|
@@ -18937,13 +18937,13 @@ var pM = YE("marimo-dataframe").withData(W({
|
|
|
18937
18937
|
selection: null,
|
|
18938
18938
|
lazy: !1,
|
|
18939
18939
|
host: g
|
|
18940
|
-
}), t[53] = f, t[54] = p, t[55] =
|
|
18940
|
+
}), t[53] = f, t[54] = p, t[55] = O, t[56] = m, t[57] = h, t[58] = g, t[59] = r, t[60] = d, t[61] = i, t[62] = he, t[63] = ge, t[64] = _e, t[65] = ve, t[66] = ye, t[67] = be) : be = t[67];
|
|
18941
18941
|
let xe;
|
|
18942
|
-
return t[68] !==
|
|
18943
|
-
fe,
|
|
18942
|
+
return t[68] !== pe || t[69] !== me || t[70] !== be ? (xe = /* @__PURE__ */ (0, Y.jsxs)("div", { children: [
|
|
18944
18943
|
pe,
|
|
18944
|
+
me,
|
|
18945
18945
|
be
|
|
18946
|
-
] }), t[68] =
|
|
18946
|
+
] }), t[68] = pe, t[69] = me, t[70] = be, t[71] = xe) : xe = t[71], xe;
|
|
18947
18947
|
});
|
|
18948
18948
|
hM.displayName = "DataFrameComponent";
|
|
18949
18949
|
function gM() {
|
|
@@ -19006,12 +19006,12 @@ var yM = {
|
|
|
19006
19006
|
python: rd,
|
|
19007
19007
|
code: rd,
|
|
19008
19008
|
json: nd,
|
|
19009
|
-
text:
|
|
19009
|
+
text: ee,
|
|
19010
19010
|
image: fd,
|
|
19011
19011
|
audio: id,
|
|
19012
19012
|
video: ad,
|
|
19013
19013
|
data: od,
|
|
19014
|
-
pdf:
|
|
19014
|
+
pdf: ee,
|
|
19015
19015
|
zip: sd,
|
|
19016
19016
|
unknown: Oa
|
|
19017
19017
|
};
|
|
@@ -19135,12 +19135,12 @@ var TM = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
19135
19135
|
}), h(0)), (0, J.useLayoutEffect)(() => {
|
|
19136
19136
|
y.current && (y.current = !1, g.current[0]?.focus());
|
|
19137
19137
|
}, [D]);
|
|
19138
|
-
let A = S?.files ?? [], j = new Set(e.map((e) => e.path)), M = r === "directory" || r === "all", N = r === "file" || r === "all", P = A.filter((e) => M && e.is_directory || N && !e.is_directory),
|
|
19138
|
+
let A = S?.files ?? [], j = new Set(e.map((e) => e.path)), M = r === "directory" || r === "all", N = r === "file" || r === "all", P = A.filter((e) => M && e.is_directory || N && !e.is_directory), I = P.length > 0 && P.every((e) => j.has(e.path));
|
|
19139
19139
|
if (!S && C) return /* @__PURE__ */ (0, Y.jsx)(Ss, {
|
|
19140
19140
|
kind: "danger",
|
|
19141
19141
|
children: C.message
|
|
19142
19142
|
});
|
|
19143
|
-
let L =
|
|
19143
|
+
let L = me.guessDeliminator(n).deliminator, R = e.map((e) => /* @__PURE__ */ (0, Y.jsx)("li", { children: e.path }, e.id));
|
|
19144
19144
|
function z(e) {
|
|
19145
19145
|
if (f) return;
|
|
19146
19146
|
if (p(!0), e === CM) {
|
|
@@ -19148,7 +19148,7 @@ var TM = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
19148
19148
|
p(!1);
|
|
19149
19149
|
return;
|
|
19150
19150
|
}
|
|
19151
|
-
e =
|
|
19151
|
+
e = be.dirname(u), e === "" && (e = L);
|
|
19152
19152
|
}
|
|
19153
19153
|
let t = e.length < n.length;
|
|
19154
19154
|
o && t ? (x({
|
|
@@ -19174,7 +19174,7 @@ var TM = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
19174
19174
|
j.has(n) ? t(e.filter((e) => e.path !== n)) : t(i ? [...e, o] : [o]);
|
|
19175
19175
|
}
|
|
19176
19176
|
function te() {
|
|
19177
|
-
t(e.filter((e) =>
|
|
19177
|
+
t(e.filter((e) => be.dirname(e.path) !== u));
|
|
19178
19178
|
}
|
|
19179
19179
|
function ne() {
|
|
19180
19180
|
let n = [];
|
|
@@ -19254,7 +19254,7 @@ var TM = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
19254
19254
|
children: C.message
|
|
19255
19255
|
}),
|
|
19256
19256
|
(() => {
|
|
19257
|
-
let e = a ?? `Select ${ue.join(" and ", 2)}...`, t = /* @__PURE__ */ (0, Y.jsx)(Vr, { children:
|
|
19257
|
+
let e = a ?? `Select ${ue.join(" and ", 2)}...`, t = /* @__PURE__ */ (0, Y.jsx)(Vr, { children: F({ html: e }) });
|
|
19258
19258
|
return i ? /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
19259
19259
|
className: "flex items-center justify-between border px-2",
|
|
19260
19260
|
children: [/* @__PURE__ */ (0, Y.jsx)("div", {
|
|
@@ -19263,8 +19263,8 @@ var TM = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
19263
19263
|
}), /* @__PURE__ */ (0, Y.jsx)("div", { children: /* @__PURE__ */ (0, Y.jsx)(_, {
|
|
19264
19264
|
size: "xs",
|
|
19265
19265
|
variant: "link",
|
|
19266
|
-
onClick:
|
|
19267
|
-
children:
|
|
19266
|
+
onClick: I ? te : ne,
|
|
19267
|
+
children: I ? "Deselect all" : "Select all"
|
|
19268
19268
|
}) })]
|
|
19269
19269
|
}) : t;
|
|
19270
19270
|
})(),
|
|
@@ -19307,7 +19307,7 @@ var TM = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
19307
19307
|
children: [E && /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
19308
19308
|
className: "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-background/80 text-xs text-muted-foreground pointer-events-none z-10",
|
|
19309
19309
|
role: "status",
|
|
19310
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
19310
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Se, { size: "small" }), /* @__PURE__ */ (0, Y.jsx)("span", { children: "Listing files..." })]
|
|
19311
19311
|
}), /* @__PURE__ */ (0, Y.jsx)(cr, {
|
|
19312
19312
|
ref: v,
|
|
19313
19313
|
className: "cursor-pointer table-fixed",
|
|
@@ -21502,7 +21502,7 @@ var fP = (e) => {
|
|
|
21502
21502
|
size: "xs"
|
|
21503
21503
|
}), t[15] = a) : a = t[15];
|
|
21504
21504
|
let o;
|
|
21505
|
-
t[16] === n ? o = t[17] : (o =
|
|
21505
|
+
t[16] === n ? o = t[17] : (o = F({ html: n }), t[16] = n, t[17] = o);
|
|
21506
21506
|
let c;
|
|
21507
21507
|
t[18] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, Y.jsx)(Td, {
|
|
21508
21508
|
size: 14,
|
|
@@ -21566,9 +21566,9 @@ var fP = (e) => {
|
|
|
21566
21566
|
let O;
|
|
21567
21567
|
t[43] === D ? O = t[44] : (O = /* @__PURE__ */ (0, Y.jsx)("input", { ...D }), t[43] = D, t[44] = O);
|
|
21568
21568
|
let k;
|
|
21569
|
-
t[45] !== S || t[46] !== x ? (k = x ? /* @__PURE__ */ (0, Y.jsxs)("span", { children: ["To re-upload: ",
|
|
21569
|
+
t[45] !== S || t[46] !== x ? (k = x ? /* @__PURE__ */ (0, Y.jsxs)("span", { children: ["To re-upload: ", F({ html: S })] }) : /* @__PURE__ */ (0, Y.jsx)("span", {
|
|
21570
21570
|
className: "mt-0",
|
|
21571
|
-
children:
|
|
21571
|
+
children: F({ html: S })
|
|
21572
21572
|
}), t[45] = S, t[46] = x, t[47] = k) : k = t[47];
|
|
21573
21573
|
let A = g && "text-primary", j = _ && "text-destructive", M;
|
|
21574
21574
|
t[48] !== A || t[49] !== j ? (M = l(A, j), t[48] = A, t[49] = j, t[50] = M) : M = t[50];
|
|
@@ -21577,8 +21577,8 @@ var fP = (e) => {
|
|
|
21577
21577
|
strokeWidth: 1.4,
|
|
21578
21578
|
className: M
|
|
21579
21579
|
}), t[51] = M, t[52] = N);
|
|
21580
|
-
let P = g && "text-primary",
|
|
21581
|
-
t[53] !== P || t[54] !==
|
|
21580
|
+
let P = g && "text-primary", I = _ && "text-destructive", L;
|
|
21581
|
+
t[53] !== P || t[54] !== I ? (L = l(P, I), t[53] = P, t[54] = I, t[55] = L) : L = t[55];
|
|
21582
21582
|
let R;
|
|
21583
21583
|
t[56] === L ? R = t[57] : (R = /* @__PURE__ */ (0, Y.jsx)(bd, {
|
|
21584
21584
|
strokeWidth: 1.4,
|
|
@@ -21722,60 +21722,60 @@ var yP = YE("marimo-form").withData(W({
|
|
|
21722
21722
|
"bg-(--gray-1) shadow-md border border-input": s,
|
|
21723
21723
|
"bg-(--amber-1) border-(--amber-7)": O
|
|
21724
21724
|
}), t[7] = s, t[8] = O, t[9] = k) : k = t[9];
|
|
21725
|
-
let A;
|
|
21726
|
-
t[10] === Symbol.for("react.memo_cache_sentinel") ? (A = (e) => {
|
|
21727
|
-
e.key === "Enter" && (e.ctrlKey || e.metaKey) && (e.preventDefault(), e.stopPropagation(), b.current?.requestSubmit());
|
|
21728
|
-
}, t[10] = A) : A = t[10];
|
|
21729
21725
|
let j;
|
|
21730
|
-
t[
|
|
21731
|
-
|
|
21732
|
-
|
|
21733
|
-
}), t[11] = o, t[12] = j);
|
|
21726
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (j = (e) => {
|
|
21727
|
+
e.key === "Enter" && (e.ctrlKey || e.metaKey) && (e.preventDefault(), e.stopPropagation(), b.current?.requestSubmit());
|
|
21728
|
+
}, t[10] = j) : j = t[10];
|
|
21734
21729
|
let M;
|
|
21735
|
-
t[
|
|
21730
|
+
t[11] === o ? M = t[12] : (M = o === null ? null : /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
21731
|
+
className: "text-center",
|
|
21732
|
+
children: F({ html: o })
|
|
21733
|
+
}), t[11] = o, t[12] = M);
|
|
21734
|
+
let N;
|
|
21735
|
+
t[13] === C ? N = t[14] : (N = C != null && /* @__PURE__ */ (0, Y.jsx)(Ss, {
|
|
21736
21736
|
kind: "danger",
|
|
21737
21737
|
className: "rounded",
|
|
21738
21738
|
children: C ?? "Invalid input"
|
|
21739
|
-
}), t[13] = C, t[14] =
|
|
21740
|
-
let N;
|
|
21741
|
-
t[15] === n ? N = t[16] : (N = /* @__PURE__ */ (0, Y.jsx)("div", { children: n }), t[15] = n, t[16] = N);
|
|
21739
|
+
}), t[13] = C, t[14] = N);
|
|
21742
21740
|
let P;
|
|
21743
|
-
t[
|
|
21741
|
+
t[15] === n ? P = t[16] : (P = /* @__PURE__ */ (0, Y.jsx)("div", { children: n }), t[15] = n, t[16] = P);
|
|
21742
|
+
let I;
|
|
21743
|
+
t[17] !== h || t[18] !== g || t[19] !== m ? (I = m && SP(/* @__PURE__ */ (0, Y.jsx)(_, {
|
|
21744
21744
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
21745
21745
|
variant: "text",
|
|
21746
21746
|
onClick: (e) => {
|
|
21747
21747
|
e.preventDefault(), E();
|
|
21748
21748
|
},
|
|
21749
21749
|
children: h
|
|
21750
|
-
}), g), t[17] = h, t[18] = g, t[19] = m, t[20] =
|
|
21751
|
-
let
|
|
21752
|
-
t[21] === c ?
|
|
21753
|
-
let
|
|
21754
|
-
t[23] !== u || t[24] !==
|
|
21750
|
+
}), g), t[17] = h, t[18] = g, t[19] = m, t[20] = I) : I = t[20];
|
|
21751
|
+
let L = f || c, R;
|
|
21752
|
+
t[21] === c ? R = t[22] : (R = c && /* @__PURE__ */ (0, Y.jsx)(A, { className: "h-4 w-4 mr-2 animate-spin" }), t[21] = c, t[22] = R);
|
|
21753
|
+
let z;
|
|
21754
|
+
t[23] !== u || t[24] !== L || t[25] !== R || t[26] !== S ? (z = /* @__PURE__ */ (0, Y.jsxs)(_, {
|
|
21755
21755
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
21756
21756
|
variant: S,
|
|
21757
|
-
disabled:
|
|
21757
|
+
disabled: L,
|
|
21758
21758
|
type: "submit",
|
|
21759
|
-
children: [
|
|
21760
|
-
}), t[23] = u, t[24] =
|
|
21761
|
-
let
|
|
21762
|
-
t[28] !== d || t[29] !==
|
|
21759
|
+
children: [R, u]
|
|
21760
|
+
}), t[23] = u, t[24] = L, t[25] = R, t[26] = S, t[27] = z) : z = t[27];
|
|
21761
|
+
let B;
|
|
21762
|
+
t[28] !== d || t[29] !== z ? (B = SP(z, d), t[28] = d, t[29] = z, t[30] = B) : B = t[30];
|
|
21763
21763
|
let ee;
|
|
21764
|
-
t[31] !==
|
|
21764
|
+
t[31] !== B || t[32] !== I ? (ee = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
21765
21765
|
className: "flex justify-end gap-2 font-code",
|
|
21766
|
-
children: [
|
|
21767
|
-
}), t[31] =
|
|
21766
|
+
children: [I, B]
|
|
21767
|
+
}), t[31] = B, t[32] = I, t[33] = ee) : ee = t[33];
|
|
21768
21768
|
let te;
|
|
21769
|
-
t[34] !== ee || t[35] !== k || t[36] !==
|
|
21769
|
+
t[34] !== ee || t[35] !== k || t[36] !== M || t[37] !== N || t[38] !== P ? (te = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
21770
21770
|
className: k,
|
|
21771
|
-
onKeyDown:
|
|
21771
|
+
onKeyDown: j,
|
|
21772
21772
|
children: [
|
|
21773
|
-
j,
|
|
21774
21773
|
M,
|
|
21775
21774
|
N,
|
|
21775
|
+
P,
|
|
21776
21776
|
ee
|
|
21777
21777
|
]
|
|
21778
|
-
}), t[34] = ee, t[35] = k, t[36] =
|
|
21778
|
+
}), t[34] = ee, t[35] = k, t[36] = M, t[37] = N, t[38] = P, t[39] = te) : te = t[39];
|
|
21779
21779
|
let ne;
|
|
21780
21780
|
return t[40] !== te || t[41] !== D ? (ne = /* @__PURE__ */ (0, Y.jsx)("form", {
|
|
21781
21781
|
className: "contents",
|
|
@@ -22862,7 +22862,7 @@ var fF = class {
|
|
|
22862
22862
|
onChange: e.setValue
|
|
22863
22863
|
}, t[2] = i, t[3] = e.setValue, t[4] = a, t[5] = o) : o = t[5];
|
|
22864
22864
|
let { value: s, onChange: c } = ui(o), u;
|
|
22865
|
-
t[6] !== e.start || t[7] !== e.stop ? (u = (t) =>
|
|
22865
|
+
t[6] !== e.start || t[7] !== e.stop ? (u = (t) => te(t, e.start ?? -Infinity, e.stop ?? Infinity), t[6] = e.start, t[7] = e.stop, t[8] = u) : u = t[8];
|
|
22866
22866
|
let d = u, f;
|
|
22867
22867
|
t[9] !== d || t[10] !== c || t[11] !== s ? (f = (e) => {
|
|
22868
22868
|
let t = mF(e), n = t == null ? null : d(t);
|
|
@@ -23956,7 +23956,7 @@ var yI = class {
|
|
|
23956
23956
|
render(e) {
|
|
23957
23957
|
let t = (t) => {
|
|
23958
23958
|
let { steps: n } = e.data;
|
|
23959
|
-
return n && n.length > 0 ? n[
|
|
23959
|
+
return n && n.length > 0 ? n[te(t, 0, n.length - 1)] : t;
|
|
23960
23960
|
};
|
|
23961
23961
|
return /* @__PURE__ */ (0, Y.jsx)(jI, {
|
|
23962
23962
|
...e.data,
|
|
@@ -24162,7 +24162,7 @@ var jI = (e) => {
|
|
|
24162
24162
|
t[11] === p ? e = t[12] : (e = (e, t) => /* @__PURE__ */ (0, Y.jsx)(Jt, {
|
|
24163
24163
|
value: t.toString(),
|
|
24164
24164
|
className: l(p && "w-full justify-start"),
|
|
24165
|
-
children:
|
|
24165
|
+
children: F({ html: e })
|
|
24166
24166
|
}, t), t[11] = p, t[12] = e), b = n.map(e), t[8] = p, t[9] = n, t[10] = b;
|
|
24167
24167
|
} else b = t[10];
|
|
24168
24168
|
let x;
|
|
@@ -24507,7 +24507,7 @@ var UI = J.lazy(() => import("./vega-component-BV9sYHhU.js")), WI = class {
|
|
|
24507
24507
|
value: t.toString(),
|
|
24508
24508
|
children: [/* @__PURE__ */ (0, Y.jsx)(kt, {
|
|
24509
24509
|
className: "py-2 text-md",
|
|
24510
|
-
children:
|
|
24510
|
+
children: F({ html: n[t] ?? "" })
|
|
24511
24511
|
}), /* @__PURE__ */ (0, Y.jsx)(an, {
|
|
24512
24512
|
className: "text-md",
|
|
24513
24513
|
children: e
|
|
@@ -24615,7 +24615,7 @@ var YI = class {
|
|
|
24615
24615
|
r(!1);
|
|
24616
24616
|
}
|
|
24617
24617
|
}
|
|
24618
|
-
}, a = n ?
|
|
24618
|
+
}, a = n ? A : wr, o = e.label ? F({ html: e.label }) : "Download";
|
|
24619
24619
|
return /* @__PURE__ */ (0, Y.jsxs)("a", {
|
|
24620
24620
|
href: Qt(e.data) ? e.data : void 0,
|
|
24621
24621
|
download: e.filename ?? "",
|
|
@@ -24688,7 +24688,7 @@ var YI = class {
|
|
|
24688
24688
|
return t[11] === h ? e = t[12] : (e = /* @__PURE__ */ (0, Y.jsx)(bs, { error: h }), t[11] = h, t[12] = e), e;
|
|
24689
24689
|
}
|
|
24690
24690
|
let _;
|
|
24691
|
-
t[13] !== m || t[14] !== g || t[15] !== r ? (_ = g && r ? /* @__PURE__ */ (0, Y.jsx)(
|
|
24691
|
+
t[13] !== m || t[14] !== g || t[15] !== r ? (_ = g && r ? /* @__PURE__ */ (0, Y.jsx)(A, { className: "w-12 h-12 animate-spin text-primary my-4 mx-4" }) : m && F({ html: m.html }), t[13] = m, t[14] = g, t[15] = r, t[16] = _) : _ = t[16];
|
|
24692
24692
|
let v;
|
|
24693
24693
|
return t[17] !== s || t[18] !== _ ? (v = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
24694
24694
|
ref: s,
|
|
@@ -25696,7 +25696,7 @@ var xL = () => {
|
|
|
25696
25696
|
a
|
|
25697
25697
|
]
|
|
25698
25698
|
})]
|
|
25699
|
-
}) : /* @__PURE__ */ (0, Y.jsx)(
|
|
25699
|
+
}) : /* @__PURE__ */ (0, Y.jsx)(A, { className: "w-12 h-12 animate-spin text-primary mx-auto" }), t[0] = i, t[1] = a, t[2] = l) : l = t[2];
|
|
25700
25700
|
let u = l, d;
|
|
25701
25701
|
t[3] !== o || t[4] !== i || t[5] !== s || t[6] !== a ? (d = () => {
|
|
25702
25702
|
let e = typeof i == "number" && a != null && i >= a, t = [];
|
|
@@ -25712,12 +25712,12 @@ var xL = () => {
|
|
|
25712
25712
|
let f = d, p = `flex flex-col ${c} max-w-sm p-6 mx-auto`, m;
|
|
25713
25713
|
t[8] === n ? m = t[9] : (m = n && /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
25714
25714
|
className: "text-lg font-bold text-foreground/60",
|
|
25715
|
-
children:
|
|
25715
|
+
children: F({ html: n })
|
|
25716
25716
|
}), t[8] = n, t[9] = m);
|
|
25717
25717
|
let h;
|
|
25718
25718
|
t[10] === r ? h = t[11] : (h = r && /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
25719
25719
|
className: "text-sm text-muted-foreground",
|
|
25720
|
-
children:
|
|
25720
|
+
children: F({ html: r })
|
|
25721
25721
|
}), t[10] = r, t[11] = h);
|
|
25722
25722
|
let g;
|
|
25723
25723
|
t[12] === u ? g = t[13] : (g = u(), t[12] = u, t[13] = g);
|
|
@@ -25739,7 +25739,7 @@ var xL = () => {
|
|
|
25739
25739
|
}), t[19] = p, t[20] = m, t[21] = h, t[22] = v, t[23] = y) : y = t[23], y;
|
|
25740
25740
|
};
|
|
25741
25741
|
function kL(e) {
|
|
25742
|
-
return
|
|
25742
|
+
return te(e, 0, 100);
|
|
25743
25743
|
}
|
|
25744
25744
|
var AL = EL.default.humanizer({
|
|
25745
25745
|
language: "shortEn",
|
|
@@ -25989,7 +25989,7 @@ var ML = (/* @__PURE__ */ i(((e) => {
|
|
|
25989
25989
|
let e = nn(u);
|
|
25990
25990
|
if (e?.[0]) {
|
|
25991
25991
|
let { mimetype: t, data: n } = e[0];
|
|
25992
|
-
return t !== "text/html" && c.warn(`Expected text/html, got ${t}`),
|
|
25992
|
+
return t !== "text/html" && c.warn(`Expected text/html, got ${t}`), F({
|
|
25993
25993
|
html: n,
|
|
25994
25994
|
alwaysSanitizeHtml: !0
|
|
25995
25995
|
});
|
|
@@ -29524,7 +29524,7 @@ var iz = (e) => {
|
|
|
29524
29524
|
t[21] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsxs)(Vr, {
|
|
29525
29525
|
className: "flex flex-row items-center gap-1",
|
|
29526
29526
|
htmlFor: "lock",
|
|
29527
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
29527
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(se, { className: "h-3 w-3" }), "Bordered"]
|
|
29528
29528
|
}), t[21] = h) : h = t[21];
|
|
29529
29529
|
let g;
|
|
29530
29530
|
t[22] !== n || t[23] !== r ? (g = (e) => {
|
|
@@ -32443,7 +32443,7 @@ var oU = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
|
|
|
32443
32443
|
ref: p,
|
|
32444
32444
|
children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
32445
32445
|
className: "text-xs text-gray-500 flex items-center gap-0.5",
|
|
32446
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
32446
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(P, { className: "h-3 w-3" }), "Reordering is not supported in multi-column mode"]
|
|
32447
32447
|
}), e.map((e, t) => /* @__PURE__ */ (0, Y.jsx)(lU, {
|
|
32448
32448
|
cell: e,
|
|
32449
32449
|
dimensions: y,
|
|
@@ -32502,13 +32502,13 @@ var oU = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
|
|
|
32502
32502
|
t[19] === r ? T = t[20] : (T = l("relative shrink-0 appearance-none text-left p-0 bg-transparent outline-hidden", r), t[19] = r, t[20] = T);
|
|
32503
32503
|
let E;
|
|
32504
32504
|
t[21] === a ? E = t[22] : (E = a && /* @__PURE__ */ (0, Y.jsx)("div", { className: l("absolute left-2 right-2 h-0.5 rounded-full bg-blue-500 z-20 pointer-events-none", a === "after" ? "bottom-0 translate-y-1/2" : "top-0 -translate-y-1/2") }), t[21] = a, t[22] = E);
|
|
32505
|
-
let
|
|
32506
|
-
t[23] === d ?
|
|
32505
|
+
let D;
|
|
32506
|
+
t[23] === d ? D = t[24] : (D = d && /* @__PURE__ */ (0, Y.jsx)(uU, {
|
|
32507
32507
|
position: "above",
|
|
32508
32508
|
onInsert: d
|
|
32509
|
-
}), t[23] = d, t[24] =
|
|
32510
|
-
let
|
|
32511
|
-
t[25] !== n || t[26] !== i || t[27] !== b || t[28] !== y || t[29] !== o || t[30] !== s || t[31] !== h ? (
|
|
32509
|
+
}), t[23] = d, t[24] = D);
|
|
32510
|
+
let O;
|
|
32511
|
+
t[25] !== n || t[26] !== i || t[27] !== b || t[28] !== y || t[29] !== o || t[30] !== s || t[31] !== h ? (O = /* @__PURE__ */ (0, Y.jsx)(dU, {
|
|
32512
32512
|
cell: n,
|
|
32513
32513
|
dimensions: i,
|
|
32514
32514
|
isActiveSlide: y,
|
|
@@ -32516,14 +32516,14 @@ var oU = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
|
|
|
32516
32516
|
isVisible: s,
|
|
32517
32517
|
isNoOutput: o,
|
|
32518
32518
|
slideType: h
|
|
32519
|
-
}), t[25] = n, t[26] = i, t[27] = b, t[28] = y, t[29] = o, t[30] = s, t[31] = h, t[32] =
|
|
32520
|
-
let
|
|
32521
|
-
t[33] === f ?
|
|
32519
|
+
}), t[25] = n, t[26] = i, t[27] = b, t[28] = y, t[29] = o, t[30] = s, t[31] = h, t[32] = O) : O = t[32];
|
|
32520
|
+
let k;
|
|
32521
|
+
t[33] === f ? k = t[34] : (k = f && /* @__PURE__ */ (0, Y.jsx)(uU, {
|
|
32522
32522
|
position: "below",
|
|
32523
32523
|
onInsert: f
|
|
32524
|
-
}), t[33] = f, t[34] =
|
|
32525
|
-
let
|
|
32526
|
-
t[35] !== n.id || t[36] !== c || t[37] !== p || t[38] !== m || t[39] !== S || t[40] !== T || t[41] !== E || t[42] !==
|
|
32524
|
+
}), t[33] = f, t[34] = k);
|
|
32525
|
+
let A;
|
|
32526
|
+
t[35] !== n.id || t[36] !== c || t[37] !== p || t[38] !== m || t[39] !== S || t[40] !== T || t[41] !== E || t[42] !== D || t[43] !== O || t[44] !== k ? (A = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
32527
32527
|
ref: m,
|
|
32528
32528
|
role: "button",
|
|
32529
32529
|
tabIndex: 0,
|
|
@@ -32535,39 +32535,39 @@ var oU = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
|
|
|
32535
32535
|
...p,
|
|
32536
32536
|
children: [
|
|
32537
32537
|
E,
|
|
32538
|
+
D,
|
|
32538
32539
|
O,
|
|
32539
|
-
k
|
|
32540
|
-
A
|
|
32540
|
+
k
|
|
32541
32541
|
]
|
|
32542
|
-
}), t[35] = n.id, t[36] = c, t[37] = p, t[38] = m, t[39] = S, t[40] = T, t[41] = E, t[42] =
|
|
32543
|
-
let
|
|
32544
|
-
if (!f && !u) return
|
|
32545
|
-
let
|
|
32546
|
-
t[46] ===
|
|
32542
|
+
}), t[35] = n.id, t[36] = c, t[37] = p, t[38] = m, t[39] = S, t[40] = T, t[41] = E, t[42] = D, t[43] = O, t[44] = k, t[45] = A) : A = t[45];
|
|
32543
|
+
let j = A;
|
|
32544
|
+
if (!f && !u) return j;
|
|
32545
|
+
let M;
|
|
32546
|
+
t[46] === j ? M = t[47] : (M = /* @__PURE__ */ (0, Y.jsx)(rn, {
|
|
32547
32547
|
asChild: !0,
|
|
32548
|
-
children:
|
|
32549
|
-
}), t[46] =
|
|
32550
|
-
let
|
|
32551
|
-
t[48] === f ?
|
|
32548
|
+
children: j
|
|
32549
|
+
}), t[46] = j, t[47] = M);
|
|
32550
|
+
let N;
|
|
32551
|
+
t[48] === f ? N = t[49] : (N = f && /* @__PURE__ */ (0, Y.jsxs)(on, {
|
|
32552
32552
|
onSelect: f,
|
|
32553
32553
|
children: [/* @__PURE__ */ (0, Y.jsx)(ji, { className: "mr-2 h-3.5 w-3.5" }), "Add cell"]
|
|
32554
|
-
}), t[48] = f, t[49] =
|
|
32554
|
+
}), t[48] = f, t[49] = N);
|
|
32555
|
+
let P;
|
|
32556
|
+
t[50] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ (0, Y.jsx)(At, {}), t[50] = P) : P = t[50];
|
|
32555
32557
|
let F;
|
|
32556
|
-
t[
|
|
32557
|
-
let I;
|
|
32558
|
-
t[51] === u ? I = t[52] : (I = u && /* @__PURE__ */ (0, Y.jsxs)(on, {
|
|
32558
|
+
t[51] === u ? F = t[52] : (F = u && /* @__PURE__ */ (0, Y.jsxs)(on, {
|
|
32559
32559
|
variant: "danger",
|
|
32560
32560
|
onSelect: u,
|
|
32561
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
32562
|
-
}), t[51] = u, t[52] =
|
|
32563
|
-
let
|
|
32564
|
-
t[53] !==
|
|
32561
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(R, { className: "mr-2 h-3.5 w-3.5" }), "Delete cell"]
|
|
32562
|
+
}), t[51] = u, t[52] = F);
|
|
32563
|
+
let I;
|
|
32564
|
+
t[53] !== N || t[54] !== F ? (I = /* @__PURE__ */ (0, Y.jsxs)(ht, { children: [
|
|
32565
|
+
N,
|
|
32565
32566
|
P,
|
|
32566
|
-
F
|
|
32567
|
-
|
|
32568
|
-
|
|
32569
|
-
|
|
32570
|
-
return t[56] !== N || t[57] !== L ? (R = /* @__PURE__ */ (0, Y.jsxs)(Dr, { children: [N, L] }), t[56] = N, t[57] = L, t[58] = R) : R = t[58], R;
|
|
32567
|
+
F
|
|
32568
|
+
] }), t[53] = N, t[54] = F, t[55] = I) : I = t[55];
|
|
32569
|
+
let L;
|
|
32570
|
+
return t[56] !== M || t[57] !== I ? (L = /* @__PURE__ */ (0, Y.jsxs)(Dr, { children: [M, I] }), t[56] = M, t[57] = I, t[58] = L) : L = t[58], L;
|
|
32571
32571
|
}, uU = (e) => {
|
|
32572
32572
|
let t = (0, X.c)(10), { position: n, onInsert: r } = e, i = n === "below" ? "bottom-0 translate-y-1/2" : "top-0 -translate-y-1/2", a;
|
|
32573
32573
|
t[0] === i ? a = t[1] : (a = l("absolute left-0 right-0 z-30 flex h-3 items-center justify-center", "opacity-0 transition-opacity hover:opacity-80 focus-visible:opacity-100 focus:outline-hidden", i), t[0] = i, t[1] = a);
|
|
@@ -32704,7 +32704,7 @@ function _U(e) {
|
|
|
32704
32704
|
}
|
|
32705
32705
|
//#endregion
|
|
32706
32706
|
//#region src/components/editor/renderers/slides-layout/slides-layout.tsx
|
|
32707
|
-
var vU = J.lazy(() => import("./reveal-component-
|
|
32707
|
+
var vU = J.lazy(() => import("./reveal-component-CcavTIL_.js")), yU = (e) => {
|
|
32708
32708
|
let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = _o(Rs), s = a === "read" || o, c = _o(la) > 1, [l, u] = (0, J.useState)(null), d;
|
|
32709
32709
|
t[0] !== i || t[1] !== n ? (d = hz(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
|
|
32710
32710
|
let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
|
|
@@ -32921,7 +32921,7 @@ var OU = (e) => {
|
|
|
32921
32921
|
let m;
|
|
32922
32922
|
t[12] === n ? m = t[13] : (m = () => n("bt"), t[12] = n, t[13] = m);
|
|
32923
32923
|
let h;
|
|
32924
|
-
t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsx)(
|
|
32924
|
+
t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsx)(M, {
|
|
32925
32925
|
fontSize: 36,
|
|
32926
32926
|
className: "w-5 h-5"
|
|
32927
32927
|
}), t[14] = h) : h = t[14];
|
|
@@ -33005,7 +33005,7 @@ function kU(e = !0) {
|
|
|
33005
33005
|
//#endregion
|
|
33006
33006
|
//#region src/components/editor/actions/name-cell-input.tsx
|
|
33007
33007
|
var AU = (e) => {
|
|
33008
|
-
let t = (0, X.c)(12), { value: n, cellId: r, className: i } = e, a =
|
|
33008
|
+
let t = (0, X.c)(12), { value: n, cellId: r, className: i } = e, a = pe(), o;
|
|
33009
33009
|
t[0] !== r || t[1] !== a ? (o = (e) => a((t) => t.setName(r, e)), t[0] = r, t[1] = a, t[2] = o) : o = t[2];
|
|
33010
33010
|
let s = jU(n, o);
|
|
33011
33011
|
if (da(n)) return null;
|
|
@@ -33066,7 +33066,7 @@ function MU(e) {
|
|
|
33066
33066
|
}
|
|
33067
33067
|
//#endregion
|
|
33068
33068
|
//#region src/components/editor/output/useWrapText.ts
|
|
33069
|
-
var NU = no("marimo:console:wrapText", !1,
|
|
33069
|
+
var NU = no("marimo:console:wrapText", !1, xe);
|
|
33070
33070
|
function PU() {
|
|
33071
33071
|
let e = (0, X.c)(3), [t, n] = mo(NU), r;
|
|
33072
33072
|
return e[0] !== n || e[1] !== t ? (r = {
|
|
@@ -33092,7 +33092,7 @@ var IU = (e) => {
|
|
|
33092
33092
|
let t = (0, X.c)(2), n;
|
|
33093
33093
|
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ (0, Y.jsx)(rc, { children: /* @__PURE__ */ (0, Y.jsx)(LU, { ...e }) }), t[0] = e, t[1] = n), n;
|
|
33094
33094
|
}, LU = (e) => {
|
|
33095
|
-
let t = (0, X.c)(63), n = J.useRef(null), { wrapText: r, setWrapText: i } = PU(), [a, o] =
|
|
33095
|
+
let t = (0, X.c)(63), n = J.useRef(null), { wrapText: r, setWrapText: i } = PU(), [a, o] = Ce(e.cellId), [s, c] = J.useState(""), u;
|
|
33096
33096
|
t[0] === s ? u = t[1] : (u = {
|
|
33097
33097
|
value: s,
|
|
33098
33098
|
setValue: c
|
|
@@ -33275,7 +33275,7 @@ function WU(e) {
|
|
|
33275
33275
|
}
|
|
33276
33276
|
//#endregion
|
|
33277
33277
|
//#region src/core/cells/readonly-code-display.ts
|
|
33278
|
-
var GU = new
|
|
33278
|
+
var GU = new ke(), KU = new Oe();
|
|
33279
33279
|
function qU(e) {
|
|
33280
33280
|
let t = e.trim();
|
|
33281
33281
|
return t ? GU.isSupported(t) ? {
|
|
@@ -33354,7 +33354,7 @@ function eW(e, t) {
|
|
|
33354
33354
|
i(!1);
|
|
33355
33355
|
return;
|
|
33356
33356
|
}
|
|
33357
|
-
let n =
|
|
33357
|
+
let n = te((e - 1) * $U, 100, 2e3), r = setTimeout(() => {
|
|
33358
33358
|
i(!1);
|
|
33359
33359
|
}, n);
|
|
33360
33360
|
return () => clearTimeout(r);
|
|
@@ -33382,7 +33382,7 @@ function rW(e) {
|
|
|
33382
33382
|
}), [...t.entries()].toSorted(([e], [t]) => e - t);
|
|
33383
33383
|
}
|
|
33384
33384
|
function iW(e, t) {
|
|
33385
|
-
let n = new
|
|
33385
|
+
let n = new we().isSupported(e), r = t !== null && !le(t);
|
|
33386
33386
|
return n && r || e.trim() === "";
|
|
33387
33387
|
}
|
|
33388
33388
|
//#endregion
|
|
@@ -33442,7 +33442,7 @@ var aW = (e) => {
|
|
|
33442
33442
|
}
|
|
33443
33443
|
return n.length === 0 && !a ? s !== "running" && !Ls() ? /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
33444
33444
|
className: "flex-1 flex flex-col items-center justify-center py-8",
|
|
33445
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
33445
|
+
children: /* @__PURE__ */ (0, Y.jsx)(A, { className: "w-8 h-8 animate-spin text-muted-foreground" })
|
|
33446
33446
|
}) : /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
33447
33447
|
className: "flex-1 flex flex-col items-center justify-center py-8",
|
|
33448
33448
|
children: /* @__PURE__ */ (0, Y.jsxs)(Hs, {
|
|
@@ -33584,7 +33584,7 @@ var aW = (e) => {
|
|
|
33584
33584
|
t[3] === h.status ? S = t[4] : (S = Zi(h.status), t[3] = h.status, t[4] = S);
|
|
33585
33585
|
let C = S, w = d && c !== "present", T;
|
|
33586
33586
|
if (t[5] !== o || t[6] !== _ || t[7] !== w || t[8] !== s || t[9] !== y) {
|
|
33587
|
-
let e = new
|
|
33587
|
+
let e = new we().isSupported(o);
|
|
33588
33588
|
T = l("marimo-cell", "hover-actions-parent empty:invisible", !s && !w ? ia({
|
|
33589
33589
|
errored: _,
|
|
33590
33590
|
stopped: y
|
|
@@ -34041,10 +34041,10 @@ function qW(e) {
|
|
|
34041
34041
|
return null;
|
|
34042
34042
|
}
|
|
34043
34043
|
function JW(e) {
|
|
34044
|
-
return
|
|
34044
|
+
return ue(e) ? e.schemaVersion === 1 && typeof e.appId == "string" && (e.dependencies === void 0 || Array.isArray(e.dependencies) && e.dependencies.every((e) => typeof e == "string")) && Array.isArray(e.cells) && e.cells.every(YW) : !1;
|
|
34045
34045
|
}
|
|
34046
34046
|
function YW(e) {
|
|
34047
|
-
return
|
|
34047
|
+
return ue(e) ? typeof e.cellId == "string" && typeof e.code == "string" && typeof e.outputHtml == "string" && typeof e.outputMimetype == "string" && typeof e.reactive == "boolean" && typeof e.displayCode == "boolean" && typeof e.displayOutput == "boolean" : !1;
|
|
34048
34048
|
}
|
|
34049
34049
|
//#endregion
|
|
34050
34050
|
//#region src/core/islands/components/IslandControls.tsx
|
|
@@ -34079,7 +34079,7 @@ var XW = (e) => {
|
|
|
34079
34079
|
c.error("The island's cell is not in the document", t);
|
|
34080
34080
|
return;
|
|
34081
34081
|
}
|
|
34082
|
-
await
|
|
34082
|
+
await D(a, [n]);
|
|
34083
34083
|
}, t[2] = n, t[3] = r, t[4] = o, t[5] = a, t[6] = u) : u = t[6];
|
|
34084
34084
|
let d = u, f = i ? "flex" : "none", p;
|
|
34085
34085
|
t[7] === f ? p = t[8] : (p = { display: f }, t[7] = f, t[8] = p);
|
|
@@ -34145,7 +34145,7 @@ var eG = (e) => {
|
|
|
34145
34145
|
children: a
|
|
34146
34146
|
}), t[0] = a, t[1] = e), e;
|
|
34147
34147
|
}
|
|
34148
|
-
if (c === null ||
|
|
34148
|
+
if (c === null || le(c)) {
|
|
34149
34149
|
let e;
|
|
34150
34150
|
return t[2] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)("div", { ref: s }), t[2] = e) : e = t[2], e;
|
|
34151
34151
|
}
|
|
@@ -34182,7 +34182,7 @@ var nG = (e) => {
|
|
|
34182
34182
|
let e;
|
|
34183
34183
|
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)(rG, { children: /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
34184
34184
|
className: "absolute top-1 right-1",
|
|
34185
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
34185
|
+
children: /* @__PURE__ */ (0, Y.jsx)(A, { className: "animate-spin size-4" })
|
|
34186
34186
|
}) }), t[0] = e) : e = t[0], e;
|
|
34187
34187
|
}
|
|
34188
34188
|
return null;
|
|
@@ -34267,7 +34267,7 @@ var nG = (e) => {
|
|
|
34267
34267
|
renderIsland() {
|
|
34268
34268
|
let e = this.renderConfig;
|
|
34269
34269
|
if (!e) return;
|
|
34270
|
-
let { html: t, codeCallback: n, editor: r } = e, i = this.runtimeCellId, a = !!r, o = t.trim(), s = o === "<span></span>" || o === "" ? null :
|
|
34270
|
+
let { html: t, codeCallback: n, editor: r } = e, i = this.runtimeCellId, a = !!r, o = t.trim(), s = o === "<span></span>" || o === "" ? null : F({ html: o });
|
|
34271
34271
|
i ? this.root?.render(/* @__PURE__ */ (0, Y.jsx)(rc, { children: /* @__PURE__ */ (0, Y.jsx)(lo, {
|
|
34272
34272
|
store: ms,
|
|
34273
34273
|
children: /* @__PURE__ */ (0, Y.jsx)(ix, { children: /* @__PURE__ */ (0, Y.jsxs)(Fe, { children: [/* @__PURE__ */ (0, Y.jsx)(eG, {
|
|
@@ -34284,7 +34284,7 @@ var nG = (e) => {
|
|
|
34284
34284
|
getOptionalEditor() {
|
|
34285
34285
|
let t = this.querySelector(e.editorTagName)?.parentNode?.outerHTML;
|
|
34286
34286
|
if (t) {
|
|
34287
|
-
let e =
|
|
34287
|
+
let e = F({ html: t });
|
|
34288
34288
|
if ((0, J.isValidElement)(e)) return e;
|
|
34289
34289
|
}
|
|
34290
34290
|
return null;
|
|
@@ -34398,7 +34398,7 @@ function uG(e, t, n, r) {
|
|
|
34398
34398
|
}), window.customElements?.get(Ru.ISLAND) || sx(Ru.ISLAND, iG);
|
|
34399
34399
|
return;
|
|
34400
34400
|
case "send-ui-element-message":
|
|
34401
|
-
nx.broadcastMessage(e.ui_element, e.message,
|
|
34401
|
+
nx.broadcastMessage(e.ui_element, e.message, ve(e));
|
|
34402
34402
|
return;
|
|
34403
34403
|
case "remove-ui-elements":
|
|
34404
34404
|
DW(e);
|
|
@@ -34412,7 +34412,7 @@ function uG(e, t, n, r) {
|
|
|
34412
34412
|
case "alert":
|
|
34413
34413
|
x({
|
|
34414
34414
|
title: e.title,
|
|
34415
|
-
description:
|
|
34415
|
+
description: F({ html: e.description }),
|
|
34416
34416
|
variant: e.variant
|
|
34417
34417
|
});
|
|
34418
34418
|
return;
|
|
@@ -34783,7 +34783,7 @@ var DG = class {
|
|
|
34783
34783
|
sendComponentValues = async (e) => (await this.putControlRequest({
|
|
34784
34784
|
type: "update-ui-element",
|
|
34785
34785
|
...e,
|
|
34786
|
-
token:
|
|
34786
|
+
token: he()
|
|
34787
34787
|
}), null);
|
|
34788
34788
|
sendFunctionRequest = async (e) => (await this.putControlRequest({
|
|
34789
34789
|
type: "invoke-function",
|