@marimo-team/islands 0.25.3-dev232 → 0.25.3-dev234
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-gKbcwbnv.js → ErrorBoundary-CI7K4ONp.js} +1 -1
- package/dist/{chat-ui-DljFsfWf.js → chat-ui-DgaVxFrc.js} +570 -570
- package/dist/{code-visibility-BFAMp8wF.js → code-visibility-D5qD3Vpw.js} +1 -1
- package/dist/{common-B85jDHUj.js → common-jgy6-GsH.js} +5518 -5509
- package/dist/{data-grid-overlay-editor-B5qighbF.js → data-grid-overlay-editor-D-hIH9de.js} +1 -1
- package/dist/{feedback-button-umDYMsWE.js → feedback-button-Di3AyhwB.js} +2 -2
- package/dist/{glide-data-editor-DpC5t4zI.js → glide-data-editor-C4mQ2b_i.js} +3 -3
- package/dist/{globals-CA21KhNt.js → globals-BE0l-pK-.js} +1 -1
- package/dist/{html-to-image-0FooaKop.js → html-to-image-Gx4q3ZoD.js} +1 -1
- package/dist/main.js +271 -271
- package/dist/{number-overlay-editor-Dq9rh69H.js → number-overlay-editor-CLebwF9p.js} +1 -1
- package/dist/{process-output-BOvkTEDt.js → process-output-D2ISIyIs.js} +1 -1
- package/dist/{reveal-component-UGpuydpR.js → reveal-component-CMsZlXqO.js} +2 -2
- package/package.json +1 -1
- package/src/components/editor/actions/useNotebookActions.tsx +6 -6
- package/src/components/editor/output/VideoOutput.tsx +6 -0
- package/src/components/editor/output/__tests__/VideoOutput.test.tsx +131 -0
- package/src/core/vscode/__tests__/vscode-bindings.test.ts +125 -0
- package/src/core/vscode/vscode-bindings.ts +14 -2
- package/src/plugins/impl/data-frames/panel.tsx +1 -0
package/dist/main.js
CHANGED
|
@@ -3,20 +3,20 @@ import { _ as a, a as o, c as s, d as c, g as l, h as u, l as d, m as f, n as p,
|
|
|
3
3
|
import { t as y } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as b } from "./compiler-runtime-CldRdSsv.js";
|
|
5
5
|
import { i as x, n as S, r as C, t as w } from "./copy-icon-CG57cxwb.js";
|
|
6
|
-
import { $ as T, A as E, At as D, B as O, Bt as k,
|
|
6
|
+
import { $ as T, A as E, At as D, B as O, Bt as k, Ct as A, F as j, H as M, Ht as N, I as P, It as F, Kt as I, M as L, Nt as R, Ot as z, Pt as B, Q as ee, R as te, Rt as ne, St as re, Tt as ie, U as ae, Ut as oe, V as se, Vt as ce, W as le, Wt as ue, Z as de, _ as fe, _t as pe, a as me, at as he, b as ge, bt as _e, c as ve, et as ye, ft as be, i as xe, it as Se, jt as Ce, kt as we, mt as Te, n as Ee, nt as De, o as Oe, pt as ke, qt as Ae, tt as je, v as Me, w as Ne, x as Pe, xt as Fe, y as Ie, z as Le, zt as Re } from "./html-to-image-Gx4q3ZoD.js";
|
|
7
7
|
import { a as ze, d as Be, i as Ve, m as He, n as Ue, o as We, p as Ge, r as Ke, t as qe } from "./tooltip-C3UnvsRe.js";
|
|
8
8
|
import { D as Je, E as Ye, O as Xe, S as Ze, T as Qe, _ as $e, a as et, c as tt, d as nt, f as rt, g as it, h as at, i as ot, l as st, m as ct, n as lt, o as ut, p as dt, r as ft, s as pt, t as mt, u as ht, v as gt, w as _t, x as vt, y as yt } from "./spec-Dq8RNplp.js";
|
|
9
|
-
import { $t as bt, A as xt, At as St, B as Ct, Bt as wt, C as Tt, Ct as Et, D as Dt, Dt as Ot, E as kt, Et as At, F as jt, Ft as Mt, G as Nt, Gt as Pt, H as Ft, Ht as It, I as Lt, It as Rt, J as zt, Jt as Bt, K as Vt, Kt as Ht, L as Ut, Lt as Wt, M as Gt, Mt as Kt, N as qt, Nt as Jt, O as Yt, Ot as Xt, P as Zt, Pt as Qt, Qt as $t, R as en, Rt as tn, S as nn, St as rn, T as an, Tt as on, U as sn, Ut as cn, V as ln, Vt as un, W as dn, Wt as fn, X as pn, Xt as mn, Y as hn, Yt as gn, Zt as _n, _ as vn, _t as yn, an as bn, at as xn, b as Sn, c as Cn, cn as wn, ct as Tn, d as En, dn as Dn, dt as On, en as kn, et as An, f as jn, fn as Mn, ft as Nn, g as Pn, gt as Fn, h as In, hn as Ln, ht as Rn, in as zn, it as Bn, j as Vn, jt as Hn, k as Un, kt as Wn, ln as Gn, lt as Kn, m as qn, mn as Jn, mt as Yn, nn as Xn, nt as Zn, ot as Qn, p as $n, pn as er, pt as tr, q as nr, qt as rr, r as ir, rn as ar, rt as or, sn as sr, st as cr, t as lr, tn as ur, tt as dr, u as fr, un as pr, ut as mr, v as hr, vt as gr, w as _r, wt as vr, x as yr, y as br, yt as xr, z as Sr, zt as Cr } from "./common-
|
|
9
|
+
import { $t as bt, A as xt, At as St, B as Ct, Bt as wt, C as Tt, Ct as Et, D as Dt, Dt as Ot, E as kt, Et as At, F as jt, Ft as Mt, G as Nt, Gt as Pt, H as Ft, Ht as It, I as Lt, It as Rt, J as zt, Jt as Bt, K as Vt, Kt as Ht, L as Ut, Lt as Wt, M as Gt, Mt as Kt, N as qt, Nt as Jt, O as Yt, Ot as Xt, P as Zt, Pt as Qt, Qt as $t, R as en, Rt as tn, S as nn, St as rn, T as an, Tt as on, U as sn, Ut as cn, V as ln, Vt as un, W as dn, Wt as fn, X as pn, Xt as mn, Y as hn, Yt as gn, Zt as _n, _ as vn, _t as yn, an as bn, at as xn, b as Sn, c as Cn, cn as wn, ct as Tn, d as En, dn as Dn, dt as On, en as kn, et as An, f as jn, fn as Mn, ft as Nn, g as Pn, gt as Fn, h as In, hn as Ln, ht as Rn, in as zn, it as Bn, j as Vn, jt as Hn, k as Un, kt as Wn, ln as Gn, lt as Kn, m as qn, mn as Jn, mt as Yn, nn as Xn, nt as Zn, ot as Qn, p as $n, pn as er, pt as tr, q as nr, qt as rr, r as ir, rn as ar, rt as or, sn as sr, st as cr, t as lr, tn as ur, tt as dr, u as fr, un as pr, ut as mr, v as hr, vt as gr, w as _r, wt as vr, x as yr, y as br, yt as xr, z as Sr, zt as Cr } from "./common-jgy6-GsH.js";
|
|
10
10
|
import { a as wr, n as Tr, s as Er, t as Dr } from "./useLifecycle-BquH9ET-.js";
|
|
11
11
|
import { t as Or } from "./check-Z_vtI3OL.js";
|
|
12
12
|
import { A as kr, C as Ar, D as jr, M as Mr, O as Nr, a as Pr, c as Fr, d as Ir, i as Lr, k as Rr, l as zr, n as Br, o as Vr, r as Hr, s as Ur, t as Wr, w as Gr, x as Kr } from "./select-BSxlITBo.js";
|
|
13
13
|
import { B as qr, C as Jr, J as Yr, Mt as Xr, Q as Zr, S as Qr, W as $r, X as ei, Y as ti, Z as ni, _ as ri, _t as ii, a as ai, bn as oi, c as si, f as ci, g as li, h as ui, i as di, kt as fi, m as pi, n as mi, nt as hi, p as gi, pt as _i, r as vi, s as yi, t as bi, v as xi, w as Si, xn as Ci, y as wi, z as Ti } from "./dropdown-menu-BRiE7Vnp.js";
|
|
14
14
|
import { c as Ei, i as Di, l as Oi, o as ki, s as Ai, t as ji } from "./config-DbjzjwxX.js";
|
|
15
15
|
import { A as Mi, At as Ni, B as Pi, G as Fi, It as Ii, J as Li, K as Ri, N as zi, Nt as Bi, Ot as Vi, Pt as Hi, R as Ui, St as Wi, T as Gi, Tt as Ki, V as qi, X as Ji, Y as Yi, Z as Xi, _ as Zi, at as Qi, c as $i, ct as ea, d as ta, g as na, h as ra, jt as ia, k as aa, kt as oa, lt as sa, m as ca, ot as la, p as ua, q as da, s as fa, ut as pa, xt as ma, z as ha } from "./error-entries-CRPfxMqm.js";
|
|
16
|
-
import { a as ga, c as _a, d as va, f as ya, i as ba, l as xa, n as Sa, o as Ca, r as wa, s as Ta, t as Ea } from "./process-output-
|
|
16
|
+
import { a as ga, c as _a, d as va, f as ya, i as ba, l as xa, n as Sa, o as Ca, r as wa, s as Ta, t as Ea } from "./process-output-D2ISIyIs.js";
|
|
17
17
|
import { a as Da, c as Oa, d as ka, i as Aa, l as ja, r as Ma, u as Na } from "./glide-utils-CQddGpa-.js";
|
|
18
|
-
import { n as Pa, t as Fa } from "./ErrorBoundary-
|
|
19
|
-
import { n as Ia, t as La } from "./globals-
|
|
18
|
+
import { n as Pa, t as Fa } from "./ErrorBoundary-CI7K4ONp.js";
|
|
19
|
+
import { n as Ia, t as La } from "./globals-BE0l-pK-.js";
|
|
20
20
|
import { a as Ra, i as za, n as Ba, r as Va, s as Ha, t as Ua } from "./strings-BGW-fXVJ.js";
|
|
21
21
|
import { t as Wa } from "./react-dom-DUmH0GXv.js";
|
|
22
22
|
import { t as Ga } from "./jsx-runtime-3BD1kT0s.js";
|
|
@@ -44,7 +44,7 @@ import { t as Vs } from "./useAsyncData-DsZMvNXn.js";
|
|
|
44
44
|
import { t as Hs } from "./semaphore-89jsoHtS.js";
|
|
45
45
|
import { D as Us, O as Ws } from "./vega-loader.browser-B9Pz0EGP.js";
|
|
46
46
|
import { a as Gs, n as Ks } from "./loader-BisjOLiW.js";
|
|
47
|
-
import { c as qs, d as Js, i as Ys, l as Xs, o as Zs, s as Qs, t as $s, u as ec } from "./code-visibility-
|
|
47
|
+
import { c as qs, d as Js, i as Ys, l as Xs, o as Zs, s as Qs, t as $s, u as ec } from "./code-visibility-D5qD3Vpw.js";
|
|
48
48
|
import { t as tc } from "./useDeepCompareMemoize-KMBBux8C.js";
|
|
49
49
|
import { t as nc } from "./esm-BgKjMvWw.js";
|
|
50
50
|
//#region ../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
|
|
@@ -4169,7 +4169,7 @@ function og(e) {
|
|
|
4169
4169
|
}
|
|
4170
4170
|
//#endregion
|
|
4171
4171
|
//#region ../node_modules/.pnpm/react-hook-form@7.54.2_react@19.3.0/node_modules/react-hook-form/dist/index.esm.mjs
|
|
4172
|
-
var X = b(), sg = /* @__PURE__ */ e(
|
|
4172
|
+
var X = b(), sg = /* @__PURE__ */ e(A(), 1), cg = Ai(), lg = (e) => e.type === "checkbox", ug = (e) => e instanceof Date, dg = (e) => e == null, fg = (e) => typeof e == "object", pg = (e) => !dg(e) && !Array.isArray(e) && fg(e) && !ug(e), mg = (e) => pg(e) && e.target ? lg(e.target) ? e.target.checked : e.target.value : e, hg = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, gg = (e, t) => e.has(hg(t)), _g = (e) => {
|
|
4173
4173
|
let t = e.constructor && e.constructor.prototype;
|
|
4174
4174
|
return pg(t) && t.hasOwnProperty("isPrototypeOf");
|
|
4175
4175
|
}, vg = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
|
|
@@ -5587,7 +5587,7 @@ var vv = (e) => {
|
|
|
5587
5587
|
let a;
|
|
5588
5588
|
t[0] === n ? a = t[1] : (a = u("stroke-[1.8px]", n), t[0] = n, t[1] = a);
|
|
5589
5589
|
let o;
|
|
5590
|
-
t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, Y.jsx)(
|
|
5590
|
+
t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, Y.jsx)(I, { className: a }), t[2] = a, t[3] = o);
|
|
5591
5591
|
let s;
|
|
5592
5592
|
return t[4] !== i || t[5] !== o ? (s = /* @__PURE__ */ (0, Y.jsx)(qe, {
|
|
5593
5593
|
content: i,
|
|
@@ -6162,7 +6162,7 @@ var Vv = (e) => {
|
|
|
6162
6162
|
form: r,
|
|
6163
6163
|
path: `${i}[${t}]`,
|
|
6164
6164
|
renderers: o
|
|
6165
|
-
}), v && /* @__PURE__ */ (0, Y.jsx)(
|
|
6165
|
+
}), v && /* @__PURE__ */ (0, Y.jsx)(R, {
|
|
6166
6166
|
className: "w-4 h-4 ml-2 my-1 text-muted-foreground hover:text-destructive cursor-pointer absolute right-0 top-5",
|
|
6167
6167
|
onClick: () => {
|
|
6168
6168
|
h(t);
|
|
@@ -6572,18 +6572,18 @@ function iy(e) {
|
|
|
6572
6572
|
return typeof e == "function";
|
|
6573
6573
|
}
|
|
6574
6574
|
function ay(e) {
|
|
6575
|
-
return
|
|
6575
|
+
return T(e) && (ry(e.render) || iy(e.initialize));
|
|
6576
6576
|
}
|
|
6577
6577
|
function oy(e) {
|
|
6578
6578
|
return typeof e == "function" || ay(e);
|
|
6579
6579
|
}
|
|
6580
6580
|
function sy(e) {
|
|
6581
|
-
return
|
|
6581
|
+
return T(e) && oy(e.default);
|
|
6582
6582
|
}
|
|
6583
6583
|
var cy = /* @__PURE__ */ new Set(), ly = /* @__PURE__ */ new WeakMap();
|
|
6584
6584
|
function uy(e, t) {
|
|
6585
6585
|
if (sy(e)) return e.default;
|
|
6586
|
-
if (!
|
|
6586
|
+
if (!T(e) || e.default !== void 0) return null;
|
|
6587
6587
|
let n = ry(e.render) ? e.render : void 0, r = iy(e.initialize) ? e.initialize : void 0;
|
|
6588
6588
|
if (n === void 0 && r === void 0) return null;
|
|
6589
6589
|
let i = ly.get(e);
|
|
@@ -6596,8 +6596,8 @@ function uy(e, t) {
|
|
|
6596
6596
|
return ly.set(e, a), a;
|
|
6597
6597
|
}
|
|
6598
6598
|
function dy(e, t) {
|
|
6599
|
-
let n = "https://anywidget.dev/en/afm/", r =
|
|
6600
|
-
if (
|
|
6599
|
+
let n = "https://anywidget.dev/en/afm/", r = T(e) && ee(e, "render"), i = T(e) && ee(e, "initialize");
|
|
6600
|
+
if (T(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}`);
|
|
6601
6601
|
if (r || i) {
|
|
6602
6602
|
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 ...";
|
|
6603
6603
|
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}`);
|
|
@@ -6631,7 +6631,7 @@ function gy(e) {
|
|
|
6631
6631
|
return typeof e != "string" || e.length === 0 ? !1 : !!(/^(\.?\/)?@file\/[^?#]+$/.test(e) || vy(e));
|
|
6632
6632
|
}
|
|
6633
6633
|
function _y() {
|
|
6634
|
-
return To.get(
|
|
6634
|
+
return To.get(O) || Le();
|
|
6635
6635
|
}
|
|
6636
6636
|
function vy(e) {
|
|
6637
6637
|
return e.startsWith("data:text/javascript;base64,") || e.startsWith("data:application/javascript;base64,") || e.startsWith("data:text/css;base64,") ? _y() : !1;
|
|
@@ -7026,7 +7026,7 @@ function jy(e) {
|
|
|
7026
7026
|
for (let a of t) {
|
|
7027
7027
|
let t = uo(e, a);
|
|
7028
7028
|
if (t instanceof DataView) {
|
|
7029
|
-
let e =
|
|
7029
|
+
let e = L(t);
|
|
7030
7030
|
r.push(e), i.push(a), ho(n, a, e);
|
|
7031
7031
|
}
|
|
7032
7032
|
}
|
|
@@ -7153,7 +7153,7 @@ async function Fy(e, t) {
|
|
|
7153
7153
|
method: "custom",
|
|
7154
7154
|
content: e
|
|
7155
7155
|
},
|
|
7156
|
-
buffers: t.map(
|
|
7156
|
+
buffers: t.map(L)
|
|
7157
7157
|
});
|
|
7158
7158
|
}
|
|
7159
7159
|
};
|
|
@@ -7184,7 +7184,7 @@ async function Fy(e, t) {
|
|
|
7184
7184
|
default: Va(r);
|
|
7185
7185
|
}
|
|
7186
7186
|
}
|
|
7187
|
-
|
|
7187
|
+
_e(Py, "WIDGET_REGISTRY");
|
|
7188
7188
|
//#endregion
|
|
7189
7189
|
//#region src/components/ui/navigation.tsx
|
|
7190
7190
|
var Iy = J.forwardRef((e, t) => {
|
|
@@ -7235,7 +7235,7 @@ var zy = Vd, By = g("group inline-flex rounded-md bg-background px-4 py-2 text-l
|
|
|
7235
7235
|
let o;
|
|
7236
7236
|
n[4] === i ? o = n[5] : (o = u(By(), "group", i), n[4] = i, n[5] = o);
|
|
7237
7237
|
let s;
|
|
7238
|
-
n[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, Y.jsx)(
|
|
7238
|
+
n[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, Y.jsx)(Ne, {
|
|
7239
7239
|
className: "relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
7240
7240
|
"aria-hidden": "true"
|
|
7241
7241
|
}), n[6] = s) : s = n[6];
|
|
@@ -7342,7 +7342,7 @@ var Yy = (e) => {
|
|
|
7342
7342
|
let t = (0, X.c)(23), { item: n, preserveQueryParams: r, target: i } = e, a = J.useRef(null), [o, s] = J.useState(!1), c;
|
|
7343
7343
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = (e) => s(e !== ""), t[0] = c) : c = t[0];
|
|
7344
7344
|
let l;
|
|
7345
|
-
t[1] === n.label ? l = t[2] : (l =
|
|
7345
|
+
t[1] === n.label ? l = t[2] : (l = P({ html: n.label }), t[1] = n.label, t[2] = l);
|
|
7346
7346
|
let u;
|
|
7347
7347
|
t[3] === l ? u = t[4] : (u = /* @__PURE__ */ (0, Y.jsx)(Vy, {
|
|
7348
7348
|
ref: a,
|
|
@@ -7355,7 +7355,7 @@ var Yy = (e) => {
|
|
|
7355
7355
|
label: e.label,
|
|
7356
7356
|
href: r(e.href),
|
|
7357
7357
|
target: i(e.href),
|
|
7358
|
-
children: e.description &&
|
|
7358
|
+
children: e.description && P({ html: e.description })
|
|
7359
7359
|
}, 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;
|
|
7360
7360
|
} else d = t[8];
|
|
7361
7361
|
let f;
|
|
@@ -7449,7 +7449,7 @@ var Yy = (e) => {
|
|
|
7449
7449
|
target: a
|
|
7450
7450
|
}, e.label) : /* @__PURE__ */ (0, Y.jsxs)(zy, { children: [/* @__PURE__ */ (0, Y.jsx)("div", {
|
|
7451
7451
|
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",
|
|
7452
|
-
children:
|
|
7452
|
+
children: P({ html: e.label })
|
|
7453
7453
|
}), /* @__PURE__ */ (0, Y.jsx)(Ry, {
|
|
7454
7454
|
className: "ml-4 auto-collapse-nav",
|
|
7455
7455
|
orientation: r,
|
|
@@ -7457,13 +7457,13 @@ var Yy = (e) => {
|
|
|
7457
7457
|
href: o(e.href),
|
|
7458
7458
|
target: a(e.href),
|
|
7459
7459
|
className: By({ orientation: r }),
|
|
7460
|
-
children:
|
|
7460
|
+
children: P({ html: e.label })
|
|
7461
7461
|
}, e.label), e.description) }, e.label))
|
|
7462
7462
|
})] }, e.label) : /* @__PURE__ */ (0, Y.jsx)(zy, { children: /* @__PURE__ */ (0, Y.jsx)(Uy, {
|
|
7463
7463
|
href: o(e.href),
|
|
7464
7464
|
target: a(e.href),
|
|
7465
7465
|
className: By({ orientation: r }),
|
|
7466
|
-
children:
|
|
7466
|
+
children: P({ html: e.label })
|
|
7467
7467
|
}) }, e.label), t[0] = r, t[1] = s);
|
|
7468
7468
|
let c = s, l;
|
|
7469
7469
|
if (t[2] !== n || t[3] !== c) {
|
|
@@ -7487,7 +7487,7 @@ var Yy = (e) => {
|
|
|
7487
7487
|
let s;
|
|
7488
7488
|
n[5] === i ? s = n[6] : (s = u("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);
|
|
7489
7489
|
let c;
|
|
7490
|
-
n[7] === a ? c = n[8] : (c =
|
|
7490
|
+
n[7] === a ? c = n[8] : (c = P({ html: a }), n[7] = a, n[8] = c);
|
|
7491
7491
|
let l;
|
|
7492
7492
|
n[9] === c ? l = n[10] : (l = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
7493
7493
|
className: "text-base font-medium leading-none",
|
|
@@ -7513,7 +7513,7 @@ tb.displayName = "ListItem";
|
|
|
7513
7513
|
function nb(e, t) {
|
|
7514
7514
|
return t ? /* @__PURE__ */ (0, Y.jsx)(qe, {
|
|
7515
7515
|
delayDuration: 200,
|
|
7516
|
-
content:
|
|
7516
|
+
content: P({ html: t }),
|
|
7517
7517
|
children: e
|
|
7518
7518
|
}) : e;
|
|
7519
7519
|
}
|
|
@@ -7621,7 +7621,7 @@ var ob = class e {
|
|
|
7621
7621
|
detail: { objectId: t }
|
|
7622
7622
|
})));
|
|
7623
7623
|
}
|
|
7624
|
-
}, sb = ob.INSTANCE, cb = new
|
|
7624
|
+
}, sb = ob.INSTANCE, cb = new ke("function-call-result", async (e, t) => {
|
|
7625
7625
|
await Fi().sendFunctionRequest({
|
|
7626
7626
|
functionCallId: e,
|
|
7627
7627
|
...t
|
|
@@ -11104,7 +11104,7 @@ function OT(e) {
|
|
|
11104
11104
|
}
|
|
11105
11105
|
//#endregion
|
|
11106
11106
|
//#region src/plugins/core/BadPlugin.tsx
|
|
11107
|
-
var kT =
|
|
11107
|
+
var kT = z, AT = we, jT = D, MT = Ce, NT = (e) => {
|
|
11108
11108
|
let t = (0, X.c)(13), { error: n, badData: r } = e;
|
|
11109
11109
|
if (n instanceof os) {
|
|
11110
11110
|
let e;
|
|
@@ -11289,10 +11289,10 @@ function HT(e) {
|
|
|
11289
11289
|
this.pluginRef.current?.reset();
|
|
11290
11290
|
}
|
|
11291
11291
|
getChildren() {
|
|
11292
|
-
return this.children.length === 0 ? null : this.children.length === 1 ?
|
|
11292
|
+
return this.children.length === 0 ? null : this.children.length === 1 ? P({
|
|
11293
11293
|
html: this.innerHTML,
|
|
11294
11294
|
alwaysSanitizeHtml: !1
|
|
11295
|
-
}) : Array.from(this.children).map((e, t) => /* @__PURE__ */ (0, Y.jsx)(J.Fragment, { children:
|
|
11295
|
+
}) : Array.from(this.children).map((e, t) => /* @__PURE__ */ (0, Y.jsx)(J.Fragment, { children: P({
|
|
11296
11296
|
html: e.outerHTML,
|
|
11297
11297
|
alwaysSanitizeHtml: !1
|
|
11298
11298
|
}) }, t));
|
|
@@ -11501,7 +11501,7 @@ function QT() {
|
|
|
11501
11501
|
}
|
|
11502
11502
|
}
|
|
11503
11503
|
getContents() {
|
|
11504
|
-
return
|
|
11504
|
+
return P({ html: this.innerHTML });
|
|
11505
11505
|
}
|
|
11506
11506
|
});
|
|
11507
11507
|
}
|
|
@@ -11768,7 +11768,7 @@ var lE = q([
|
|
|
11768
11768
|
t || (n.stopPropagation(), e.setValue((e) => e + 1));
|
|
11769
11769
|
},
|
|
11770
11770
|
type: "submit",
|
|
11771
|
-
children:
|
|
11771
|
+
children: P({ html: r })
|
|
11772
11772
|
}), c = o && !a ? /* @__PURE__ */ (0, Y.jsx)(nE, { shortcut: o }) : a;
|
|
11773
11773
|
return c ? /* @__PURE__ */ (0, Y.jsx)(qe, {
|
|
11774
11774
|
content: c,
|
|
@@ -11808,7 +11808,7 @@ var fE = (e) => {
|
|
|
11808
11808
|
let f;
|
|
11809
11809
|
t[8] === o ? f = t[9] : (f = u("font-prose", o), t[8] = o, t[9] = f);
|
|
11810
11810
|
let p;
|
|
11811
|
-
t[10] === n ? p = t[11] : (p =
|
|
11811
|
+
t[10] === n ? p = t[11] : (p = P({ html: n }), t[10] = n, t[11] = p);
|
|
11812
11812
|
let m;
|
|
11813
11813
|
t[12] !== l || t[13] !== s || t[14] !== f || t[15] !== p ? (m = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
11814
11814
|
part: "label",
|
|
@@ -11913,7 +11913,7 @@ var fE = (e) => {
|
|
|
11913
11913
|
t[20] === Symbol.for("react.memo_cache_sentinel") ? (n = [], t[20] = n) : n = t[20], x = n;
|
|
11914
11914
|
}
|
|
11915
11915
|
let S = x, C = `cm *:outline-hidden border rounded overflow-hidden ${r}`, w = r === "dark" ? "dark" : "light", T = !e.disabled, E;
|
|
11916
|
-
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)(
|
|
11916
|
+
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)(xe, {
|
|
11917
11917
|
className: C,
|
|
11918
11918
|
theme: w,
|
|
11919
11919
|
minHeight: i,
|
|
@@ -11940,7 +11940,7 @@ var fE = (e) => {
|
|
|
11940
11940
|
output: t
|
|
11941
11941
|
};
|
|
11942
11942
|
} };
|
|
11943
|
-
} }, vE = J.lazy(() => import("./chat-ui-
|
|
11943
|
+
} }, vE = J.lazy(() => import("./chat-ui-DgaVxFrc.js").then((e) => ({ default: e.Chatbot }))), yE = K(G({
|
|
11944
11944
|
id: U(),
|
|
11945
11945
|
role: q([
|
|
11946
11946
|
"system",
|
|
@@ -12406,7 +12406,7 @@ function gD(e, t) {
|
|
|
12406
12406
|
}
|
|
12407
12407
|
//#endregion
|
|
12408
12408
|
//#region src/plugins/impl/DataEditorPlugin.tsx
|
|
12409
|
-
var _D = J.lazy(() => import("./glide-data-editor-
|
|
12409
|
+
var _D = J.lazy(() => import("./glide-data-editor-C4mQ2b_i.js").then((e) => e.t)), vD = $T("marimo-data-editor", { cssStyles: [SE] }).withData(G({
|
|
12410
12410
|
initialValue: G({ edits: K(G({
|
|
12411
12411
|
rowIdx: W(),
|
|
12412
12412
|
columnId: U(),
|
|
@@ -12831,9 +12831,9 @@ function WD(e) {
|
|
|
12831
12831
|
//#endregion
|
|
12832
12832
|
//#region src/components/editor/cell/useAddCell.ts
|
|
12833
12833
|
function GD() {
|
|
12834
|
-
let e = (0, X.c)(4), t = Ao(mo), n =
|
|
12834
|
+
let e = (0, X.c)(4), t = Ao(mo), n = M(), { createCell: r } = ae(), i;
|
|
12835
12835
|
return e[0] !== t || e[1] !== r || e[2] !== n ? (i = (e) => {
|
|
12836
|
-
e.includes("alt") &&
|
|
12836
|
+
e.includes("alt") && le({
|
|
12837
12837
|
autoInstantiate: t,
|
|
12838
12838
|
createCell: r,
|
|
12839
12839
|
fromCellId: n
|
|
@@ -14187,7 +14187,7 @@ var eO = (e) => {
|
|
|
14187
14187
|
}), t[3] = r, t[4] = a), a;
|
|
14188
14188
|
}, tO = (e) => {
|
|
14189
14189
|
let t = (0, X.c)(9), n = e.hidden ? "Show code" : "Hide code", r = e.hidden ? "Show code" : "Hide code", i;
|
|
14190
|
-
t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, Y.jsx)(
|
|
14190
|
+
t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, Y.jsx)(N, {
|
|
14191
14191
|
size: 14,
|
|
14192
14192
|
strokeWidth: 1.5
|
|
14193
14193
|
}) : /* @__PURE__ */ (0, Y.jsx)(bn, {
|
|
@@ -14242,7 +14242,7 @@ var iO = (e) => {
|
|
|
14242
14242
|
let t = (0, X.c)(5), { text: n, tooltip: r } = e, i;
|
|
14243
14243
|
t[0] === r ? i = t[1] : (i = r && /* @__PURE__ */ (0, Y.jsx)(qe, {
|
|
14244
14244
|
content: r,
|
|
14245
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
14245
|
+
children: /* @__PURE__ */ (0, Y.jsx)(k, { className: "w-3 h-3 mt-0.5" })
|
|
14246
14246
|
}), t[0] = r, t[1] = i);
|
|
14247
14247
|
let a;
|
|
14248
14248
|
return t[2] !== i || t[3] !== n ? (a = /* @__PURE__ */ (0, Y.jsxs)("h2", {
|
|
@@ -14284,13 +14284,13 @@ var iO = (e) => {
|
|
|
14284
14284
|
let t = (0, X.c)(5), { children: n, className: r } = e, i;
|
|
14285
14285
|
t[0] === r ? i = t[1] : (i = u("py-1", r), t[0] = r, t[1] = i);
|
|
14286
14286
|
let a;
|
|
14287
|
-
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, Y.jsx)(
|
|
14287
|
+
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, Y.jsx)(ge, {
|
|
14288
14288
|
className: i,
|
|
14289
14289
|
children: n
|
|
14290
14290
|
}), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
|
|
14291
14291
|
}, uO = (e) => {
|
|
14292
14292
|
let t = (0, X.c)(3), { children: n, value: r } = e, i;
|
|
14293
|
-
return t[0] !== n || t[1] !== r ? (i = /* @__PURE__ */ (0, Y.jsx)(
|
|
14293
|
+
return t[0] !== n || t[1] !== r ? (i = /* @__PURE__ */ (0, Y.jsx)(Ie, {
|
|
14294
14294
|
value: r,
|
|
14295
14295
|
className: "border-none",
|
|
14296
14296
|
children: n
|
|
@@ -14299,7 +14299,7 @@ var iO = (e) => {
|
|
|
14299
14299
|
let t = (0, X.c)(5), { children: n, wrapperClassName: r } = e, i;
|
|
14300
14300
|
t[0] === r ? i = t[1] : (i = u("pb-2 flex flex-col gap-2", r), t[0] = r, t[1] = i);
|
|
14301
14301
|
let a;
|
|
14302
|
-
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, Y.jsx)(
|
|
14302
|
+
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, Y.jsx)(Me, {
|
|
14303
14303
|
wrapperClassName: i,
|
|
14304
14304
|
children: n
|
|
14305
14305
|
}), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
|
|
@@ -14617,7 +14617,7 @@ var iO = (e) => {
|
|
|
14617
14617
|
open: o,
|
|
14618
14618
|
onOpenChange: s,
|
|
14619
14619
|
children: [/* @__PURE__ */ (0, Y.jsx)(Ur, { children: /* @__PURE__ */ (0, Y.jsx)(Fr, { placeholder: "Select an option" }) }), /* @__PURE__ */ (0, Y.jsx)(Br, { children: /* @__PURE__ */ (0, Y.jsx)(Hr, { children: nt.map((e) => {
|
|
14620
|
-
let t =
|
|
14620
|
+
let t = he[e], n = e === "string" ? "categorical" : e;
|
|
14621
14621
|
return /* @__PURE__ */ (0, Y.jsx)(Lr, {
|
|
14622
14622
|
value: e,
|
|
14623
14623
|
className: "flex flex-col items-start justify-center",
|
|
@@ -14740,7 +14740,7 @@ var iO = (e) => {
|
|
|
14740
14740
|
};
|
|
14741
14741
|
function DO(e) {
|
|
14742
14742
|
if (e.name.trim() === "") return null;
|
|
14743
|
-
let t =
|
|
14743
|
+
let t = he[e.type];
|
|
14744
14744
|
return /* @__PURE__ */ (0, Y.jsx)(Lr, {
|
|
14745
14745
|
value: e.name,
|
|
14746
14746
|
children: /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
@@ -15187,12 +15187,12 @@ var QO = () => {
|
|
|
15187
15187
|
p,
|
|
15188
15188
|
/* @__PURE__ */ (0, Y.jsxs)("p", {
|
|
15189
15189
|
className: "text-xs",
|
|
15190
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
15190
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(k, { className: "w-2.5 h-2.5 inline mb-1 mr-1" }), "If you are using color range, color scheme will be ignored."]
|
|
15191
15191
|
})
|
|
15192
15192
|
] })]
|
|
15193
15193
|
}), e[12] = m) : m = e[12];
|
|
15194
15194
|
let h;
|
|
15195
|
-
return e[13] === a ? h = e[14] : (h = /* @__PURE__ */ (0, Y.jsxs)(
|
|
15195
|
+
return e[13] === a ? h = e[14] : (h = /* @__PURE__ */ (0, Y.jsxs)(fe, {
|
|
15196
15196
|
type: "multiple",
|
|
15197
15197
|
children: [
|
|
15198
15198
|
a,
|
|
@@ -15230,7 +15230,7 @@ var QO = () => {
|
|
|
15230
15230
|
saveFunction: t
|
|
15231
15231
|
}), e[6] = i, e[7] = t, e[8] = l) : l = e[8];
|
|
15232
15232
|
let u;
|
|
15233
|
-
return e[9] === l ? u = e[10] : (u = /* @__PURE__ */ (0, Y.jsxs)(
|
|
15233
|
+
return e[9] === l ? u = e[10] : (u = /* @__PURE__ */ (0, Y.jsxs)(fe, {
|
|
15234
15234
|
type: "multiple",
|
|
15235
15235
|
children: [o, /* @__PURE__ */ (0, Y.jsxs)(uO, {
|
|
15236
15236
|
value: "tooltips",
|
|
@@ -15501,7 +15501,7 @@ var mk = "marimo:charts:v2", hk = G({
|
|
|
15501
15501
|
}
|
|
15502
15502
|
}, yk = Co(mk, /* @__PURE__ */ new Map(), vk);
|
|
15503
15503
|
function bk() {
|
|
15504
|
-
return
|
|
15504
|
+
return Te();
|
|
15505
15505
|
}
|
|
15506
15506
|
function xk(e, t) {
|
|
15507
15507
|
let n = Ba(t);
|
|
@@ -15819,7 +15819,7 @@ var Ak = (e) => {
|
|
|
15819
15819
|
t[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, Y.jsxs)(Jt, {
|
|
15820
15820
|
value: "data",
|
|
15821
15821
|
className: "w-1/2 h-6",
|
|
15822
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
15822
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(oe, { className: "w-4 h-4 mr-2" }), "Data"]
|
|
15823
15823
|
}), t[10] = f) : f = t[10];
|
|
15824
15824
|
let p;
|
|
15825
15825
|
t[11] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, Y.jsxs)(Kt, {
|
|
@@ -15827,7 +15827,7 @@ var Ak = (e) => {
|
|
|
15827
15827
|
children: [f, /* @__PURE__ */ (0, Y.jsxs)(Jt, {
|
|
15828
15828
|
value: "style",
|
|
15829
15829
|
className: "w-1/2 h-6",
|
|
15830
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
15830
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(F, { className: "w-4 h-4 mr-2" }), "Style"]
|
|
15831
15831
|
})]
|
|
15832
15832
|
}), t[11] = p) : p = t[11];
|
|
15833
15833
|
let m;
|
|
@@ -15889,7 +15889,7 @@ function Lk(e) {
|
|
|
15889
15889
|
//#endregion
|
|
15890
15890
|
//#region src/components/data-table/hooks/use-panel-ownership.ts
|
|
15891
15891
|
function Rk(e, t) {
|
|
15892
|
-
let n = (0, X.c)(16), r = Ao(nx), { focusCell: i } =
|
|
15892
|
+
let n = (0, X.c)(16), r = Ao(nx), { focusCell: i } = se(), a = M(), [o, s] = xo(ex), [c, u] = xo($b), [d, f] = xo(tx), p = zk(e, t);
|
|
15893
15893
|
!t && r && (l.error("CellId is not found, defaulting to fixed mode"), r = !1);
|
|
15894
15894
|
let m = (e) => c === p && d && e === o, h = a === t, g = c && Bk(c, t);
|
|
15895
15895
|
r && h && c !== p && !g && u(p);
|
|
@@ -15981,7 +15981,7 @@ function Jk({ stats: e, dataType: t, locale: n }) {
|
|
|
15981
15981
|
children: [
|
|
15982
15982
|
/* @__PURE__ */ (0, Y.jsx)("span", {
|
|
15983
15983
|
className: "text-xs min-w-[60px] capitalize",
|
|
15984
|
-
children:
|
|
15984
|
+
children: be(e, t)
|
|
15985
15985
|
}),
|
|
15986
15986
|
/* @__PURE__ */ (0, Y.jsx)("span", {
|
|
15987
15987
|
className: "text-xs font-bold text-muted-foreground tracking-wide",
|
|
@@ -15997,7 +15997,7 @@ function Jk({ stats: e, dataType: t, locale: n }) {
|
|
|
15997
15997
|
}
|
|
15998
15998
|
var Yk = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
15999
15999
|
className: "flex justify-center",
|
|
16000
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
16000
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ee, { className: "size-4" })
|
|
16001
16001
|
});
|
|
16002
16002
|
function Xk(e, t) {
|
|
16003
16003
|
return /* @__PURE__ */ (0, Y.jsx)(J.Suspense, {
|
|
@@ -16023,9 +16023,9 @@ function Xk(e, t) {
|
|
|
16023
16023
|
});
|
|
16024
16024
|
}
|
|
16025
16025
|
var Zk = (e) => {
|
|
16026
|
-
let t = (0, X.c)(11), { chartCode: n, columnName: r } = e, i = Ao(mo), a =
|
|
16026
|
+
let t = (0, X.c)(11), { chartCode: n, columnName: r } = e, i = Ao(mo), a = M(), { createCell: o } = ae(), s;
|
|
16027
16027
|
t[0] !== i || t[1] !== o || t[2] !== a ? (s = (e) => {
|
|
16028
|
-
e.includes("alt") &&
|
|
16028
|
+
e.includes("alt") && le({
|
|
16029
16029
|
autoInstantiate: i,
|
|
16030
16030
|
createCell: o,
|
|
16031
16031
|
fromCellId: a
|
|
@@ -16085,7 +16085,7 @@ function Qk({ previewColumn: e, fieldTypes: t, totalRows: n, totalColumns: r, ta
|
|
|
16085
16085
|
className: "gap-1",
|
|
16086
16086
|
disabled: f === 0,
|
|
16087
16087
|
onClick: () => a.toggleAllColumnsVisible(!0),
|
|
16088
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
16088
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(N, { className: "w-3 h-3" }), "Show all"]
|
|
16089
16089
|
})
|
|
16090
16090
|
}), /* @__PURE__ */ (0, Y.jsx)(qe, {
|
|
16091
16091
|
content: "Hide all columns",
|
|
@@ -16168,7 +16168,7 @@ function $k({ columnName: e, column: t, dataType: n, externalType: r, previewCol
|
|
|
16168
16168
|
onClick: (e) => {
|
|
16169
16169
|
e.preventDefault(), e.stopPropagation(), t.toggleVisibility(!t.getIsVisible());
|
|
16170
16170
|
},
|
|
16171
|
-
children: t.getIsVisible() ? /* @__PURE__ */ (0, Y.jsx)(
|
|
16171
|
+
children: t.getIsVisible() ? /* @__PURE__ */ (0, Y.jsx)(N, {
|
|
16172
16172
|
className: "h-3 w-3",
|
|
16173
16173
|
strokeWidth: 2.5
|
|
16174
16174
|
}) : /* @__PURE__ */ (0, Y.jsx)(bn, {
|
|
@@ -16261,12 +16261,12 @@ var eA = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
16261
16261
|
});
|
|
16262
16262
|
if (i === 0) return /* @__PURE__ */ (0, Y.jsx)(rA, {
|
|
16263
16263
|
kind: "info",
|
|
16264
|
-
Icon:
|
|
16264
|
+
Icon: k,
|
|
16265
16265
|
message: "No rows selected"
|
|
16266
16266
|
});
|
|
16267
16267
|
if (!y) return /* @__PURE__ */ (0, Y.jsx)(Yn, {
|
|
16268
16268
|
milliseconds: 200,
|
|
16269
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
16269
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ee, {
|
|
16270
16270
|
size: "medium",
|
|
16271
16271
|
centered: !0
|
|
16272
16272
|
})
|
|
@@ -16333,8 +16333,8 @@ var eA = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
16333
16333
|
}) })]
|
|
16334
16334
|
});
|
|
16335
16335
|
}, t[18] = b, t[19] = a, t[20] = y, t[21] = u, t[22] = h, t[23] = i, t[24] = O) : O = t[24];
|
|
16336
|
-
let
|
|
16337
|
-
t[25] !== p || t[26] !== c || t[27] !== s || t[28] !== T ? (
|
|
16336
|
+
let A = O, j;
|
|
16337
|
+
t[25] !== p || t[26] !== c || t[27] !== s || t[28] !== T ? (j = s && /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
16338
16338
|
className: "flex items-center",
|
|
16339
16339
|
title: "Select/unselect the current row",
|
|
16340
16340
|
children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
@@ -16353,86 +16353,86 @@ var eA = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
16353
16353
|
shortcut: "Space",
|
|
16354
16354
|
className: "scale-75"
|
|
16355
16355
|
})]
|
|
16356
|
-
}), t[25] = p, t[26] = c, t[27] = s, t[28] = T, t[29] =
|
|
16357
|
-
let
|
|
16358
|
-
t[30] === S ?
|
|
16359
|
-
let
|
|
16360
|
-
t[32] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
16361
|
-
let
|
|
16362
|
-
t[33] !==
|
|
16356
|
+
}), t[25] = p, t[26] = c, t[27] = s, t[28] = T, t[29] = j) : j = t[29];
|
|
16357
|
+
let M;
|
|
16358
|
+
t[30] === S ? M = t[31] : (M = () => S(0), t[30] = S, t[31] = M);
|
|
16359
|
+
let N = n === 0, P;
|
|
16360
|
+
t[32] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ (0, Y.jsx)(Mn, {}), t[32] = P) : P = t[32];
|
|
16361
|
+
let F;
|
|
16362
|
+
t[33] !== M || t[34] !== N ? (F = /* @__PURE__ */ (0, Y.jsx)(_, {
|
|
16363
16363
|
variant: "outline",
|
|
16364
16364
|
size: "xs",
|
|
16365
16365
|
className: "h-6 w-6 p-0.5 ml-auto",
|
|
16366
|
-
onClick:
|
|
16367
|
-
disabled:
|
|
16366
|
+
onClick: M,
|
|
16367
|
+
disabled: N,
|
|
16368
16368
|
"aria-label": "Go to first row",
|
|
16369
|
-
children:
|
|
16370
|
-
}), t[33] =
|
|
16371
|
-
let
|
|
16372
|
-
t[36] !== n || t[37] !== S ? (
|
|
16373
|
-
let
|
|
16374
|
-
t[39] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
16375
|
-
let
|
|
16376
|
-
t[40] !==
|
|
16369
|
+
children: P
|
|
16370
|
+
}), t[33] = M, t[34] = N, t[35] = F) : F = t[35];
|
|
16371
|
+
let I;
|
|
16372
|
+
t[36] !== n || t[37] !== S ? (I = () => S(n - 1), t[36] = n, t[37] = S, t[38] = I) : I = t[38];
|
|
16373
|
+
let L = n === 0, R;
|
|
16374
|
+
t[39] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ (0, Y.jsx)(Jn, {}), t[39] = R) : R = t[39];
|
|
16375
|
+
let z;
|
|
16376
|
+
t[40] !== I || t[41] !== L ? (z = /* @__PURE__ */ (0, Y.jsx)(_, {
|
|
16377
16377
|
variant: "outline",
|
|
16378
16378
|
size: "xs",
|
|
16379
16379
|
className: "h-6 w-6 p-0.5",
|
|
16380
|
-
onClick:
|
|
16381
|
-
disabled:
|
|
16380
|
+
onClick: I,
|
|
16381
|
+
disabled: L,
|
|
16382
16382
|
"aria-label": "Previous row",
|
|
16383
|
-
children:
|
|
16384
|
-
}), t[40] =
|
|
16385
|
-
let z;
|
|
16386
|
-
t[43] !== m || t[44] !== n || t[45] !== h || t[46] !== i ? (z = h ? `Row ${n + 1}` : `Row ${n + 1} of ${Gt(i, m)}`, t[43] = m, t[44] = n, t[45] = h, t[46] = i, t[47] = z) : z = t[47];
|
|
16383
|
+
children: R
|
|
16384
|
+
}), t[40] = I, t[41] = L, t[42] = z) : z = t[42];
|
|
16387
16385
|
let B;
|
|
16388
|
-
t[
|
|
16389
|
-
className: "text-xs",
|
|
16390
|
-
children: z
|
|
16391
|
-
}), t[48] = z, t[49] = B);
|
|
16386
|
+
t[43] !== m || t[44] !== n || t[45] !== h || t[46] !== i ? (B = h ? `Row ${n + 1}` : `Row ${n + 1} of ${Gt(i, m)}`, t[43] = m, t[44] = n, t[45] = h, t[46] = i, t[47] = B) : B = t[47];
|
|
16392
16387
|
let ee;
|
|
16393
|
-
t[
|
|
16394
|
-
|
|
16395
|
-
|
|
16396
|
-
|
|
16397
|
-
|
|
16388
|
+
t[48] === B ? ee = t[49] : (ee = /* @__PURE__ */ (0, Y.jsx)("span", {
|
|
16389
|
+
className: "text-xs",
|
|
16390
|
+
children: B
|
|
16391
|
+
}), t[48] = B, t[49] = ee);
|
|
16392
|
+
let te;
|
|
16393
|
+
t[50] !== n || t[51] !== S ? (te = () => S(n + 1), t[50] = n, t[51] = S, t[52] = te) : te = t[52];
|
|
16394
|
+
let ne = !h && n === i - 1, re;
|
|
16395
|
+
t[53] === Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ (0, Y.jsx)(Ci, {}), t[53] = re) : re = t[53];
|
|
16396
|
+
let ie;
|
|
16397
|
+
t[54] !== te || t[55] !== ne ? (ie = /* @__PURE__ */ (0, Y.jsx)(_, {
|
|
16398
16398
|
variant: "outline",
|
|
16399
16399
|
size: "xs",
|
|
16400
16400
|
className: "h-6 w-6 p-0.5",
|
|
16401
|
-
onClick:
|
|
16402
|
-
disabled:
|
|
16401
|
+
onClick: te,
|
|
16402
|
+
disabled: ne,
|
|
16403
16403
|
"aria-label": "Next row",
|
|
16404
|
-
children:
|
|
16405
|
-
}), t[54] =
|
|
16406
|
-
let
|
|
16407
|
-
t[57] !== S || t[58] !== h || t[59] !== i ? (
|
|
16404
|
+
children: re
|
|
16405
|
+
}), t[54] = te, t[55] = ne, t[56] = ie) : ie = t[56];
|
|
16406
|
+
let ae;
|
|
16407
|
+
t[57] !== S || t[58] !== h || t[59] !== i ? (ae = () => {
|
|
16408
16408
|
h || S(i - 1);
|
|
16409
|
-
}, t[57] = S, t[58] = h, t[59] = i, t[60] =
|
|
16410
|
-
let
|
|
16411
|
-
t[61] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
16412
|
-
let
|
|
16413
|
-
t[62] !==
|
|
16409
|
+
}, t[57] = S, t[58] = h, t[59] = i, t[60] = ae) : ae = t[60];
|
|
16410
|
+
let oe = h || n === i - 1, se;
|
|
16411
|
+
t[61] === Symbol.for("react.memo_cache_sentinel") ? (se = /* @__PURE__ */ (0, Y.jsx)(Dn, {}), t[61] = se) : se = t[61];
|
|
16412
|
+
let ce;
|
|
16413
|
+
t[62] !== ae || t[63] !== oe ? (ce = /* @__PURE__ */ (0, Y.jsx)(_, {
|
|
16414
16414
|
variant: "outline",
|
|
16415
16415
|
size: "xs",
|
|
16416
16416
|
className: "h-6 w-6 p-0.5",
|
|
16417
|
-
onClick:
|
|
16418
|
-
disabled:
|
|
16417
|
+
onClick: ae,
|
|
16418
|
+
disabled: oe,
|
|
16419
16419
|
"aria-label": "Go to last row",
|
|
16420
|
-
children:
|
|
16421
|
-
}), t[62] =
|
|
16422
|
-
let
|
|
16423
|
-
t[65] !==
|
|
16420
|
+
children: se
|
|
16421
|
+
}), t[62] = ae, t[63] = oe, t[64] = ce) : ce = t[64];
|
|
16422
|
+
let le;
|
|
16423
|
+
t[65] !== F || t[66] !== z || t[67] !== ee || t[68] !== ie || t[69] !== ce || t[70] !== j ? (le = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
16424
16424
|
className: "flex flex-row gap-2 items-center mr-2 px-2",
|
|
16425
16425
|
children: [
|
|
16426
|
-
|
|
16427
|
-
|
|
16428
|
-
|
|
16429
|
-
|
|
16430
|
-
|
|
16431
|
-
|
|
16426
|
+
j,
|
|
16427
|
+
F,
|
|
16428
|
+
z,
|
|
16429
|
+
ee,
|
|
16430
|
+
ie,
|
|
16431
|
+
ce
|
|
16432
16432
|
]
|
|
16433
|
-
}), t[65] =
|
|
16434
|
-
let
|
|
16435
|
-
t[72] === u ?
|
|
16433
|
+
}), t[65] = F, t[66] = z, t[67] = ee, t[68] = ie, t[69] = ce, t[70] = j, t[71] = le) : le = t[71];
|
|
16434
|
+
let ue;
|
|
16435
|
+
t[72] === u ? ue = t[73] : (ue = /* @__PURE__ */ (0, Y.jsx)(rr, {
|
|
16436
16436
|
className: "bg-background",
|
|
16437
16437
|
shouldFilter: !1,
|
|
16438
16438
|
children: /* @__PURE__ */ (0, Y.jsx)(gn, {
|
|
@@ -16441,21 +16441,21 @@ var eA = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
16441
16441
|
onValueChange: d,
|
|
16442
16442
|
"data-testid": "selection-panel-search-input"
|
|
16443
16443
|
})
|
|
16444
|
-
}), t[72] = u, t[73] =
|
|
16445
|
-
let ue;
|
|
16446
|
-
t[74] === k ? ue = t[75] : (ue = k(), t[74] = k, t[75] = ue);
|
|
16444
|
+
}), t[72] = u, t[73] = ue);
|
|
16447
16445
|
let de;
|
|
16448
|
-
|
|
16446
|
+
t[74] === A ? de = t[75] : (de = A(), t[74] = A, t[75] = de);
|
|
16447
|
+
let fe;
|
|
16448
|
+
return t[76] !== D || t[77] !== le || t[78] !== ue || t[79] !== de ? (fe = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
16449
16449
|
className: "flex flex-col gap-3 focus:outline-hidden",
|
|
16450
16450
|
ref: f,
|
|
16451
16451
|
tabIndex: -1,
|
|
16452
16452
|
onKeyDown: D,
|
|
16453
16453
|
children: [
|
|
16454
|
-
ce,
|
|
16455
16454
|
le,
|
|
16456
|
-
ue
|
|
16455
|
+
ue,
|
|
16456
|
+
de
|
|
16457
16457
|
]
|
|
16458
|
-
}), t[76] = D, t[77] =
|
|
16458
|
+
}), t[76] = D, t[77] = le, t[78] = ue, t[79] = de, t[80] = fe) : fe = t[80], fe;
|
|
16459
16459
|
};
|
|
16460
16460
|
function nA({ columnName: e, columnValue: t, searchQuery: n }) {
|
|
16461
16461
|
let r = e.toLowerCase(), i = n.toLowerCase(), a = typeof t == "object" ? JSON.stringify(t) : String(t);
|
|
@@ -16728,7 +16728,7 @@ var bA = (e) => {
|
|
|
16728
16728
|
yA(l, o), d(!1);
|
|
16729
16729
|
}, t[7] = o, t[8] = l, t[9] = e) : e = t[9];
|
|
16730
16730
|
let n;
|
|
16731
|
-
t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, Y.jsx)(
|
|
16731
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, Y.jsx)(B, { className: "mr-2 h-4 w-4" }), t[10] = n) : n = t[10];
|
|
16732
16732
|
let r;
|
|
16733
16733
|
return t[11] === e ? r = t[12] : (r = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
16734
16734
|
className: "flex h-20 items-center justify-center",
|
|
@@ -17570,7 +17570,7 @@ var KA = J.lazy(() => import("./ConnectedDataExplorerComponent-BBihxHrr.js")), q
|
|
|
17570
17570
|
too_many_values: !1
|
|
17571
17571
|
})), ZA = (e) => {
|
|
17572
17572
|
let t = (0, X.c)(4), { type: n } = e, r;
|
|
17573
|
-
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)(Iu, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, Y.jsx)(Ru, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, Y.jsx)(Er, { size: 14 }) : n.startsWith("bool") ? /* @__PURE__ */ (0, Y.jsx)(wr, { size: 14 }) : /* @__PURE__ */ (0, Y.jsx)(
|
|
17573
|
+
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)(Iu, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, Y.jsx)(Ru, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, Y.jsx)(Er, { size: 14 }) : n.startsWith("bool") ? /* @__PURE__ */ (0, Y.jsx)(wr, { size: 14 }) : /* @__PURE__ */ (0, Y.jsx)(Ae, { size: 14 }), t[0] = n, t[1] = r);
|
|
17574
17574
|
let i = r, a;
|
|
17575
17575
|
return t[2] === i ? a = t[3] : (a = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
17576
17576
|
className: "border p-px border-border bg-(--slate-2) flex items-center justify-center rounded",
|
|
@@ -18051,7 +18051,7 @@ var dj = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
18051
18051
|
"to automatically apply transformations."
|
|
18052
18052
|
] })]
|
|
18053
18053
|
}),
|
|
18054
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
18054
|
+
children: /* @__PURE__ */ (0, Y.jsx)(k, { className: "w-3 h-3 text-muted-foreground hover:text-foreground cursor-help" })
|
|
18055
18055
|
})]
|
|
18056
18056
|
})
|
|
18057
18057
|
]
|
|
@@ -18083,7 +18083,7 @@ var dj = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
18083
18083
|
}
|
|
18084
18084
|
o(t);
|
|
18085
18085
|
},
|
|
18086
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
18086
|
+
children: /* @__PURE__ */ (0, Y.jsx)(R, { className: "w-3 h-3" })
|
|
18087
18087
|
})]
|
|
18088
18088
|
}, i);
|
|
18089
18089
|
}), d;
|
|
@@ -18157,7 +18157,7 @@ var dj = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
18157
18157
|
}), t[9] = i, t[10] = l, t[11] = u) : u = t[11], u;
|
|
18158
18158
|
}, mj = {
|
|
18159
18159
|
aggregate: Je,
|
|
18160
|
-
column_conversion:
|
|
18160
|
+
column_conversion: ue,
|
|
18161
18161
|
filter_rows: zn,
|
|
18162
18162
|
group_by: Qu,
|
|
18163
18163
|
rename_column: ka,
|
|
@@ -18168,10 +18168,10 @@ var dj = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
18168
18168
|
explode_columns: Lu,
|
|
18169
18169
|
expand_dict: Uu,
|
|
18170
18170
|
unique: Vu,
|
|
18171
|
-
pivot:
|
|
18171
|
+
pivot: B
|
|
18172
18172
|
};
|
|
18173
18173
|
function hj(e) {
|
|
18174
|
-
e.stopPropagation(), window.open("https://github.com/marimo-team/marimo/issues/new?title=New%20dataframe%20transform:&labels=enhancement&template=feature_request.yaml", "_blank");
|
|
18174
|
+
e.stopPropagation(), window.open("https://github.com/marimo-team/marimo/issues/new?title=New%20dataframe%20transform:&labels=enhancement&template=feature_request.yaml", "_blank", "noopener");
|
|
18175
18175
|
}
|
|
18176
18176
|
//#endregion
|
|
18177
18177
|
//#region src/plugins/impl/data-frames/DataFramePlugin.tsx
|
|
@@ -18235,63 +18235,63 @@ var gj = $T("marimo-dataframe").withData(G({
|
|
|
18235
18235
|
t[2] === v ? y = t[3] : (y = [v], t[2] = v, t[3] = y);
|
|
18236
18236
|
let { data: b, error: x, isPending: S } = Vs(_, y), C;
|
|
18237
18237
|
t[4] === b ? C = t[5] : (C = b || {}, t[4] = b, t[5] = C);
|
|
18238
|
-
let { url: w, total_rows: T, row_headers: E, field_types: D, column_types_per_step: O, python_code: k, sql_code: A } = C, j = D?.length, [M, N] = (0, J.useState)(s || _j), P = (0, J.useRef)(null),
|
|
18239
|
-
t[6] === o ?
|
|
18238
|
+
let { url: w, total_rows: T, row_headers: E, field_types: D, column_types_per_step: O, python_code: k, sql_code: A } = C, j = D?.length, [M, N] = (0, J.useState)(s || _j), P = (0, J.useRef)(null), F;
|
|
18239
|
+
t[6] === o ? F = t[7] : (F = (e) => {
|
|
18240
18240
|
o && e !== "transform" && P.current?.submit();
|
|
18241
|
-
}, t[6] = o, t[7] =
|
|
18242
|
-
let
|
|
18243
|
-
t[8] === M ?
|
|
18244
|
-
|
|
18245
|
-
}, t[8] = M, t[9] =
|
|
18246
|
-
let
|
|
18247
|
-
t[10] !== c || t[11] !== s?.transforms.length ? (
|
|
18248
|
-
let e =
|
|
18241
|
+
}, t[6] = o, t[7] = F);
|
|
18242
|
+
let I = F, L = (0, J.useRef)(M), R;
|
|
18243
|
+
t[8] === M ? R = t[9] : (R = () => {
|
|
18244
|
+
L.current = M;
|
|
18245
|
+
}, t[8] = M, t[9] = R), (0, J.useEffect)(R);
|
|
18246
|
+
let z;
|
|
18247
|
+
t[10] !== c || t[11] !== s?.transforms.length ? (z = () => {
|
|
18248
|
+
let e = L.current;
|
|
18249
18249
|
s?.transforms.length !== e.transforms.length && c(e);
|
|
18250
|
-
}, t[10] = c, t[11] = s?.transforms.length, t[12] =
|
|
18251
|
-
let
|
|
18252
|
-
t[13] !== b || t[14] !== c || t[15] !==
|
|
18250
|
+
}, t[10] = c, t[11] = s?.transforms.length, t[12] = z) : z = t[12];
|
|
18251
|
+
let B = s?.transforms.length, ee;
|
|
18252
|
+
t[13] !== b || t[14] !== c || t[15] !== B ? (ee = [
|
|
18253
18253
|
b,
|
|
18254
|
-
|
|
18255
|
-
|
|
18254
|
+
B,
|
|
18255
|
+
L,
|
|
18256
18256
|
c
|
|
18257
|
-
], t[13] = b, t[14] = c, t[15] =
|
|
18258
|
-
let
|
|
18259
|
-
t[17] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
18257
|
+
], t[13] = b, t[14] = c, t[15] = B, t[16] = ee) : ee = t[16], (0, J.useEffect)(z, ee);
|
|
18258
|
+
let te;
|
|
18259
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (te = /* @__PURE__ */ (0, Y.jsxs)(Jt, {
|
|
18260
18260
|
value: "transform",
|
|
18261
18261
|
className: "text-xs py-1",
|
|
18262
18262
|
children: [/* @__PURE__ */ (0, Y.jsx)(Je, { className: "w-3 h-3 mr-2" }), "Transform"]
|
|
18263
|
-
}), t[17] =
|
|
18264
|
-
let
|
|
18265
|
-
t[18] === k ?
|
|
18263
|
+
}), t[17] = te) : te = t[17];
|
|
18264
|
+
let ne;
|
|
18265
|
+
t[18] === k ? ne = t[19] : (ne = k && /* @__PURE__ */ (0, Y.jsxs)(Jt, {
|
|
18266
18266
|
value: "python-code",
|
|
18267
18267
|
className: "text-xs py-1",
|
|
18268
18268
|
children: [/* @__PURE__ */ (0, Y.jsx)(zu, { className: "w-3 h-3 mr-2" }), "Python Code"]
|
|
18269
|
-
}), t[18] = k, t[19] =
|
|
18270
|
-
let
|
|
18271
|
-
t[20] === A ?
|
|
18269
|
+
}), t[18] = k, t[19] = ne);
|
|
18270
|
+
let re;
|
|
18271
|
+
t[20] === A ? re = t[21] : (re = A && /* @__PURE__ */ (0, Y.jsxs)(Jt, {
|
|
18272
18272
|
value: "sql-code",
|
|
18273
18273
|
className: "text-xs py-1",
|
|
18274
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
18275
|
-
}), t[20] = A, t[21] =
|
|
18274
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(oe, { className: "w-3 h-3 mr-2" }), "SQL Code"]
|
|
18275
|
+
}), t[20] = A, t[21] = re);
|
|
18276
|
+
let ie;
|
|
18277
|
+
t[22] === Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ (0, Y.jsx)("div", { className: "grow" }), t[22] = ie) : ie = t[22];
|
|
18276
18278
|
let ae;
|
|
18277
|
-
t[
|
|
18278
|
-
let oe;
|
|
18279
|
-
t[23] !== re || t[24] !== ie ? (oe = /* @__PURE__ */ (0, Y.jsxs)(Kt, {
|
|
18279
|
+
t[23] !== ne || t[24] !== re ? (ae = /* @__PURE__ */ (0, Y.jsxs)(Kt, {
|
|
18280
18280
|
className: "h-8",
|
|
18281
18281
|
children: [
|
|
18282
|
+
te,
|
|
18282
18283
|
ne,
|
|
18283
18284
|
re,
|
|
18284
|
-
ie
|
|
18285
|
-
ae
|
|
18285
|
+
ie
|
|
18286
18286
|
]
|
|
18287
|
-
}), t[23] =
|
|
18287
|
+
}), t[23] = ne, t[24] = re, t[25] = ae) : ae = t[25];
|
|
18288
18288
|
let se;
|
|
18289
|
-
t[26] === S ? se = t[27] : (se = S && /* @__PURE__ */ (0, Y.jsx)(
|
|
18289
|
+
t[26] === S ? se = t[27] : (se = S && /* @__PURE__ */ (0, Y.jsx)(Ee, { size: "small" }), t[26] = S, t[27] = se);
|
|
18290
18290
|
let ce;
|
|
18291
|
-
t[28] !==
|
|
18291
|
+
t[28] !== ae || t[29] !== se ? (ce = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
18292
18292
|
className: "flex items-center gap-2",
|
|
18293
|
-
children: [
|
|
18294
|
-
}), t[28] =
|
|
18293
|
+
children: [ae, se]
|
|
18294
|
+
}), t[28] = ae, t[29] = se, t[30] = ce) : ce = t[30];
|
|
18295
18295
|
let le;
|
|
18296
18296
|
t[31] !== c || t[32] !== s ? (le = (e) => {
|
|
18297
18297
|
So(e, s) || (c(e), N(e));
|
|
@@ -18334,16 +18334,16 @@ var gj = $T("marimo-dataframe").withData(G({
|
|
|
18334
18334
|
})
|
|
18335
18335
|
}), t[43] = A, t[44] = fe);
|
|
18336
18336
|
let pe;
|
|
18337
|
-
t[45] !==
|
|
18337
|
+
t[45] !== I || t[46] !== ce || t[47] !== ue || t[48] !== de || t[49] !== fe ? (pe = /* @__PURE__ */ (0, Y.jsxs)(St, {
|
|
18338
18338
|
defaultValue: "transform",
|
|
18339
|
-
onValueChange:
|
|
18339
|
+
onValueChange: I,
|
|
18340
18340
|
children: [
|
|
18341
18341
|
ce,
|
|
18342
18342
|
ue,
|
|
18343
18343
|
de,
|
|
18344
18344
|
fe
|
|
18345
18345
|
]
|
|
18346
|
-
}), t[45] =
|
|
18346
|
+
}), t[45] = I, t[46] = ce, t[47] = ue, t[48] = de, t[49] = fe, t[50] = pe) : pe = t[50];
|
|
18347
18347
|
let me;
|
|
18348
18348
|
t[51] === x ? me = t[52] : (me = x && /* @__PURE__ */ (0, Y.jsx)(so, { error: x }), t[51] = x, t[52] = me);
|
|
18349
18349
|
let he = w || "", ge = T ?? 0, _e = j ?? 0, ve = E || Ps.EMPTY, ye = T && T > 5 || !1, be;
|
|
@@ -18448,12 +18448,12 @@ var Sj = {
|
|
|
18448
18448
|
python: Wu,
|
|
18449
18449
|
code: Wu,
|
|
18450
18450
|
json: Uu,
|
|
18451
|
-
text:
|
|
18451
|
+
text: ce,
|
|
18452
18452
|
image: $u,
|
|
18453
18453
|
audio: Gu,
|
|
18454
18454
|
video: Ku,
|
|
18455
18455
|
data: qu,
|
|
18456
|
-
pdf:
|
|
18456
|
+
pdf: ce,
|
|
18457
18457
|
zip: Ju,
|
|
18458
18458
|
unknown: ya
|
|
18459
18459
|
};
|
|
@@ -18577,12 +18577,12 @@ var Oj = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
18577
18577
|
}), h(0)), (0, J.useLayoutEffect)(() => {
|
|
18578
18578
|
y.current && (y.current = !1, g.current[0]?.focus());
|
|
18579
18579
|
}, [D]);
|
|
18580
|
-
let A = S?.files ?? [], j = new Set(e.map((e) => e.path)), M = r === "directory" || r === "all", N = r === "file" || r === "all",
|
|
18580
|
+
let A = S?.files ?? [], j = new Set(e.map((e) => e.path)), M = r === "directory" || r === "all", N = r === "file" || r === "all", F = A.filter((e) => M && e.is_directory || N && !e.is_directory), I = F.length > 0 && F.every((e) => j.has(e.path));
|
|
18581
18581
|
if (!S && C) return /* @__PURE__ */ (0, Y.jsx)(lo, {
|
|
18582
18582
|
kind: "danger",
|
|
18583
18583
|
children: C.message
|
|
18584
18584
|
});
|
|
18585
|
-
let L =
|
|
18585
|
+
let L = je.guessDeliminator(n).deliminator, R = e.map((e) => /* @__PURE__ */ (0, Y.jsx)("li", { children: e.path }, e.id));
|
|
18586
18586
|
function z(e) {
|
|
18587
18587
|
if (f) return;
|
|
18588
18588
|
if (p(!0), e === Ej) {
|
|
@@ -18590,7 +18590,7 @@ var Oj = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
18590
18590
|
p(!1);
|
|
18591
18591
|
return;
|
|
18592
18592
|
}
|
|
18593
|
-
e =
|
|
18593
|
+
e = De.dirname(l), e === "" && (e = L);
|
|
18594
18594
|
}
|
|
18595
18595
|
let t = e.length < n.length;
|
|
18596
18596
|
if (o && t) {
|
|
@@ -18620,7 +18620,7 @@ var Oj = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
18620
18620
|
j.has(n) ? t(e.filter((e) => e.path !== n)) : t(i ? [...e, o] : [o]);
|
|
18621
18621
|
}
|
|
18622
18622
|
function te() {
|
|
18623
|
-
t(e.filter((e) =>
|
|
18623
|
+
t(e.filter((e) => De.dirname(e.path) !== l));
|
|
18624
18624
|
}
|
|
18625
18625
|
function ne() {
|
|
18626
18626
|
let n = [];
|
|
@@ -18693,14 +18693,14 @@ var Oj = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
18693
18693
|
}), ce = se.toReversed().map((e) => ({
|
|
18694
18694
|
path: e,
|
|
18695
18695
|
name: e === oe ? oe : e.split(L).findLast(Boolean) ?? e
|
|
18696
|
-
})), le = r === "all" ?
|
|
18696
|
+
})), le = r === "all" ? Se.of("file", "folder") : r === "directory" ? Se.of("folder") : Se.of("file");
|
|
18697
18697
|
return /* @__PURE__ */ (0, Y.jsxs)("div", { children: [
|
|
18698
18698
|
C && /* @__PURE__ */ (0, Y.jsx)(lo, {
|
|
18699
18699
|
kind: "danger",
|
|
18700
18700
|
children: C.message
|
|
18701
18701
|
}),
|
|
18702
18702
|
(() => {
|
|
18703
|
-
let e = a ?? `Select ${le.join(" and ", 2)}...`, t = /* @__PURE__ */ (0, Y.jsx)(Ir, { children:
|
|
18703
|
+
let e = a ?? `Select ${le.join(" and ", 2)}...`, t = /* @__PURE__ */ (0, Y.jsx)(Ir, { children: P({ html: e }) });
|
|
18704
18704
|
return i ? /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
18705
18705
|
className: "flex items-center justify-between border px-2",
|
|
18706
18706
|
children: [/* @__PURE__ */ (0, Y.jsx)("div", {
|
|
@@ -18709,8 +18709,8 @@ var Oj = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
18709
18709
|
}), /* @__PURE__ */ (0, Y.jsx)("div", { children: /* @__PURE__ */ (0, Y.jsx)(_, {
|
|
18710
18710
|
size: "xs",
|
|
18711
18711
|
variant: "link",
|
|
18712
|
-
onClick:
|
|
18713
|
-
children:
|
|
18712
|
+
onClick: I ? te : ne,
|
|
18713
|
+
children: I ? "Deselect all" : "Select all"
|
|
18714
18714
|
}) })]
|
|
18715
18715
|
}) : t;
|
|
18716
18716
|
})(),
|
|
@@ -18753,7 +18753,7 @@ var Oj = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
18753
18753
|
children: [E && /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
18754
18754
|
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",
|
|
18755
18755
|
role: "status",
|
|
18756
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
18756
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ee, { size: "small" }), /* @__PURE__ */ (0, Y.jsx)("span", { children: "Listing files..." })]
|
|
18757
18757
|
}), /* @__PURE__ */ (0, Y.jsx)(Zn, {
|
|
18758
18758
|
ref: v,
|
|
18759
18759
|
className: "cursor-pointer table-fixed",
|
|
@@ -20931,7 +20931,7 @@ var fN = (e) => {
|
|
|
20931
20931
|
size: "xs"
|
|
20932
20932
|
}), t[15] = a) : a = t[15];
|
|
20933
20933
|
let o;
|
|
20934
|
-
t[16] === n ? o = t[17] : (o =
|
|
20934
|
+
t[16] === n ? o = t[17] : (o = P({ html: n }), t[16] = n, t[17] = o);
|
|
20935
20935
|
let c;
|
|
20936
20936
|
t[18] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, Y.jsx)(fd, {
|
|
20937
20937
|
size: 14,
|
|
@@ -20995,9 +20995,9 @@ var fN = (e) => {
|
|
|
20995
20995
|
let O;
|
|
20996
20996
|
t[43] === D ? O = t[44] : (O = /* @__PURE__ */ (0, Y.jsx)("input", { ...D }), t[43] = D, t[44] = O);
|
|
20997
20997
|
let k;
|
|
20998
|
-
t[45] !== S || t[46] !== x ? (k = x ? /* @__PURE__ */ (0, Y.jsxs)("span", { children: ["To re-upload: ",
|
|
20998
|
+
t[45] !== S || t[46] !== x ? (k = x ? /* @__PURE__ */ (0, Y.jsxs)("span", { children: ["To re-upload: ", P({ html: S })] }) : /* @__PURE__ */ (0, Y.jsx)("span", {
|
|
20999
20999
|
className: "mt-0",
|
|
21000
|
-
children:
|
|
21000
|
+
children: P({ html: S })
|
|
21001
21001
|
}), t[45] = S, t[46] = x, t[47] = k) : k = t[47];
|
|
21002
21002
|
let A = g && "text-primary", j = _ && "text-destructive", M;
|
|
21003
21003
|
t[48] !== A || t[49] !== j ? (M = u(A, j), t[48] = A, t[49] = j, t[50] = M) : M = t[50];
|
|
@@ -21006,8 +21006,8 @@ var fN = (e) => {
|
|
|
21006
21006
|
strokeWidth: 1.4,
|
|
21007
21007
|
className: M
|
|
21008
21008
|
}), t[51] = M, t[52] = N);
|
|
21009
|
-
let
|
|
21010
|
-
t[53] !==
|
|
21009
|
+
let F = g && "text-primary", I = _ && "text-destructive", L;
|
|
21010
|
+
t[53] !== F || t[54] !== I ? (L = u(F, I), t[53] = F, t[54] = I, t[55] = L) : L = t[55];
|
|
21011
21011
|
let R;
|
|
21012
21012
|
t[56] === L ? R = t[57] : (R = /* @__PURE__ */ (0, Y.jsx)(sd, {
|
|
21013
21013
|
strokeWidth: 1.4,
|
|
@@ -21158,7 +21158,7 @@ var yN = $T("marimo-form").withData(G({
|
|
|
21158
21158
|
let j;
|
|
21159
21159
|
t[11] === o ? j = t[12] : (j = o === null ? null : /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
21160
21160
|
className: "text-center",
|
|
21161
|
-
children:
|
|
21161
|
+
children: P({ html: o })
|
|
21162
21162
|
}), t[11] = o, t[12] = j);
|
|
21163
21163
|
let M;
|
|
21164
21164
|
t[13] === C ? M = t[14] : (M = C != null && /* @__PURE__ */ (0, Y.jsx)(lo, {
|
|
@@ -21168,50 +21168,50 @@ var yN = $T("marimo-form").withData(G({
|
|
|
21168
21168
|
}), t[13] = C, t[14] = M);
|
|
21169
21169
|
let N;
|
|
21170
21170
|
t[15] === n ? N = t[16] : (N = /* @__PURE__ */ (0, Y.jsx)("div", { children: n }), t[15] = n, t[16] = N);
|
|
21171
|
-
let
|
|
21172
|
-
t[17] !== h || t[18] !== g || t[19] !== m ? (
|
|
21171
|
+
let F;
|
|
21172
|
+
t[17] !== h || t[18] !== g || t[19] !== m ? (F = m && SN(/* @__PURE__ */ (0, Y.jsx)(_, {
|
|
21173
21173
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
21174
21174
|
variant: "text",
|
|
21175
21175
|
onClick: (e) => {
|
|
21176
21176
|
e.preventDefault(), E();
|
|
21177
21177
|
},
|
|
21178
21178
|
children: h
|
|
21179
|
-
}), g), t[17] = h, t[18] = g, t[19] = m, t[20] =
|
|
21180
|
-
let
|
|
21181
|
-
t[21] === c ? L = t[22] : (L = c && /* @__PURE__ */ (0, Y.jsx)(
|
|
21179
|
+
}), g), t[17] = h, t[18] = g, t[19] = m, t[20] = F) : F = t[20];
|
|
21180
|
+
let I = f || c, L;
|
|
21181
|
+
t[21] === c ? L = t[22] : (L = c && /* @__PURE__ */ (0, Y.jsx)(ne, { className: "h-4 w-4 mr-2 animate-spin" }), t[21] = c, t[22] = L);
|
|
21182
21182
|
let R;
|
|
21183
|
-
t[23] !== l || t[24] !==
|
|
21183
|
+
t[23] !== l || t[24] !== I || t[25] !== L || t[26] !== S ? (R = /* @__PURE__ */ (0, Y.jsxs)(_, {
|
|
21184
21184
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
21185
21185
|
variant: S,
|
|
21186
|
-
disabled:
|
|
21186
|
+
disabled: I,
|
|
21187
21187
|
type: "submit",
|
|
21188
21188
|
children: [L, l]
|
|
21189
|
-
}), t[23] = l, t[24] =
|
|
21189
|
+
}), t[23] = l, t[24] = I, t[25] = L, t[26] = S, t[27] = R) : R = t[27];
|
|
21190
|
+
let z;
|
|
21191
|
+
t[28] !== d || t[29] !== R ? (z = SN(R, d), t[28] = d, t[29] = R, t[30] = z) : z = t[30];
|
|
21190
21192
|
let B;
|
|
21191
|
-
t[
|
|
21192
|
-
let ee;
|
|
21193
|
-
t[31] !== B || t[32] !== P ? (ee = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
21193
|
+
t[31] !== z || t[32] !== F ? (B = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
21194
21194
|
className: "flex justify-end gap-2 font-code",
|
|
21195
|
-
children: [
|
|
21196
|
-
}), t[31] =
|
|
21197
|
-
let
|
|
21198
|
-
t[34] !==
|
|
21195
|
+
children: [F, z]
|
|
21196
|
+
}), t[31] = z, t[32] = F, t[33] = B) : B = t[33];
|
|
21197
|
+
let ee;
|
|
21198
|
+
t[34] !== B || t[35] !== k || t[36] !== j || t[37] !== M || t[38] !== N ? (ee = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
21199
21199
|
className: k,
|
|
21200
21200
|
onKeyDown: A,
|
|
21201
21201
|
children: [
|
|
21202
21202
|
j,
|
|
21203
21203
|
M,
|
|
21204
21204
|
N,
|
|
21205
|
-
|
|
21205
|
+
B
|
|
21206
21206
|
]
|
|
21207
|
-
}), t[34] =
|
|
21208
|
-
let
|
|
21209
|
-
return t[40] !==
|
|
21207
|
+
}), t[34] = B, t[35] = k, t[36] = j, t[37] = M, t[38] = N, t[39] = ee) : ee = t[39];
|
|
21208
|
+
let te;
|
|
21209
|
+
return t[40] !== ee || t[41] !== D ? (te = /* @__PURE__ */ (0, Y.jsx)("form", {
|
|
21210
21210
|
className: "contents",
|
|
21211
21211
|
ref: b,
|
|
21212
21212
|
onSubmit: D,
|
|
21213
|
-
children:
|
|
21214
|
-
}), t[40] =
|
|
21213
|
+
children: ee
|
|
21214
|
+
}), t[40] = ee, t[41] = D, t[42] = te) : te = t[42], te;
|
|
21215
21215
|
}, xN = (e) => {
|
|
21216
21216
|
let t = (0, X.c)(24), n, r, i, a, o, s;
|
|
21217
21217
|
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5], s = t[6]) : ({elementId: i, value: s, setValue: a, children: n, validate: o, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o, t[6] = s);
|
|
@@ -22324,7 +22324,7 @@ var fP = class {
|
|
|
22324
22324
|
onChange: e.setValue
|
|
22325
22325
|
}, t[2] = i, t[3] = e.setValue, t[4] = a, t[5] = o) : o = t[5];
|
|
22326
22326
|
let { value: s, onChange: c } = Yr(o), l;
|
|
22327
|
-
t[6] !== e.start || t[7] !== e.stop ? (l = (t) =>
|
|
22327
|
+
t[6] !== e.start || t[7] !== e.stop ? (l = (t) => ie(t, e.start ?? -Infinity, e.stop ?? Infinity), t[6] = e.start, t[7] = e.stop, t[8] = l) : l = t[8];
|
|
22328
22328
|
let d = l, f;
|
|
22329
22329
|
t[9] !== d || t[10] !== c || t[11] !== s ? (f = (e) => {
|
|
22330
22330
|
let t = mP(e), n = t == null ? null : d(t);
|
|
@@ -23420,7 +23420,7 @@ var yF = class {
|
|
|
23420
23420
|
render(e) {
|
|
23421
23421
|
let t = (t) => {
|
|
23422
23422
|
let { steps: n } = e.data;
|
|
23423
|
-
return n && n.length > 0 ? n[
|
|
23423
|
+
return n && n.length > 0 ? n[ie(t, 0, n.length - 1)] : t;
|
|
23424
23424
|
};
|
|
23425
23425
|
return /* @__PURE__ */ (0, Y.jsx)(jF, {
|
|
23426
23426
|
...e.data,
|
|
@@ -23618,7 +23618,7 @@ var jF = (e) => {
|
|
|
23618
23618
|
t[11] === p ? e = t[12] : (e = (e, t) => /* @__PURE__ */ (0, Y.jsx)(Jt, {
|
|
23619
23619
|
value: t.toString(),
|
|
23620
23620
|
className: u(p && "w-full justify-start"),
|
|
23621
|
-
children:
|
|
23621
|
+
children: P({ html: e })
|
|
23622
23622
|
}, t), t[11] = p, t[12] = e), b = n.map(e), t[8] = p, t[9] = n, t[10] = b;
|
|
23623
23623
|
} else b = t[10];
|
|
23624
23624
|
let x;
|
|
@@ -23959,19 +23959,19 @@ var UF = J.lazy(() => import("./vega-component-Bwg_Kuh-.js")), WF = class {
|
|
|
23959
23959
|
let s = o, c;
|
|
23960
23960
|
if (t[3] !== a || t[4] !== n) {
|
|
23961
23961
|
let e;
|
|
23962
|
-
t[6] === n ? e = t[7] : (e = (e, t) => /* @__PURE__ */ (0, Y.jsxs)(
|
|
23962
|
+
t[6] === n ? e = t[7] : (e = (e, t) => /* @__PURE__ */ (0, Y.jsxs)(Ie, {
|
|
23963
23963
|
value: t.toString(),
|
|
23964
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
23964
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(ge, {
|
|
23965
23965
|
className: "py-2 text-md",
|
|
23966
|
-
children:
|
|
23967
|
-
}), /* @__PURE__ */ (0, Y.jsx)(
|
|
23966
|
+
children: P({ html: n[t] })
|
|
23967
|
+
}), /* @__PURE__ */ (0, Y.jsx)(Me, {
|
|
23968
23968
|
className: "text-md",
|
|
23969
23969
|
children: e
|
|
23970
23970
|
})]
|
|
23971
23971
|
}, t), t[6] = n, t[7] = e), c = J.Children.map(a, e), t[3] = a, t[4] = n, t[5] = c;
|
|
23972
23972
|
} else c = t[5];
|
|
23973
23973
|
let l;
|
|
23974
|
-
return t[8] !== s || t[9] !== c ? (l = /* @__PURE__ */ (0, Y.jsx)(
|
|
23974
|
+
return t[8] !== s || t[9] !== c ? (l = /* @__PURE__ */ (0, Y.jsx)(fe, {
|
|
23975
23975
|
...s,
|
|
23976
23976
|
className: "text-muted-foreground",
|
|
23977
23977
|
children: c
|
|
@@ -24075,7 +24075,7 @@ var YF = class {
|
|
|
24075
24075
|
} finally {
|
|
24076
24076
|
r(!1);
|
|
24077
24077
|
}
|
|
24078
|
-
}, a = n ?
|
|
24078
|
+
}, a = n ? ne : wn, o = e.label ? P({ html: e.label }) : "Download";
|
|
24079
24079
|
return /* @__PURE__ */ (0, Y.jsxs)("a", {
|
|
24080
24080
|
href: e.data,
|
|
24081
24081
|
download: e.filename ?? "",
|
|
@@ -24142,7 +24142,7 @@ var YF = class {
|
|
|
24142
24142
|
return t[6] === f ? e = t[7] : (e = /* @__PURE__ */ (0, Y.jsx)(so, { error: f }), t[6] = f, t[7] = e), e;
|
|
24143
24143
|
}
|
|
24144
24144
|
let m;
|
|
24145
|
-
t[8] !== d || t[9] !== p || t[10] !== r ? (m = p && r ? /* @__PURE__ */ (0, Y.jsx)(
|
|
24145
|
+
t[8] !== d || t[9] !== p || t[10] !== r ? (m = p && r ? /* @__PURE__ */ (0, Y.jsx)(ne, { className: "w-12 h-12 animate-spin text-primary my-4 mx-4" }) : d && P({ html: d.html }), t[8] = d, t[9] = p, t[10] = r, t[11] = m) : m = t[11];
|
|
24146
24146
|
let h;
|
|
24147
24147
|
return t[12] !== s || t[13] !== m ? (h = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
24148
24148
|
ref: s,
|
|
@@ -25154,7 +25154,7 @@ var xI = () => {
|
|
|
25154
25154
|
a
|
|
25155
25155
|
]
|
|
25156
25156
|
})]
|
|
25157
|
-
}) : /* @__PURE__ */ (0, Y.jsx)(
|
|
25157
|
+
}) : /* @__PURE__ */ (0, Y.jsx)(ne, { className: "w-12 h-12 animate-spin text-primary mx-auto" }), t[0] = i, t[1] = a, t[2] = l) : l = t[2];
|
|
25158
25158
|
let u = l, d;
|
|
25159
25159
|
t[3] !== o || t[4] !== i || t[5] !== s || t[6] !== a ? (d = () => {
|
|
25160
25160
|
let e = typeof i == "number" && a != null && i >= a, t = [];
|
|
@@ -25170,12 +25170,12 @@ var xI = () => {
|
|
|
25170
25170
|
let f = d, p = `flex flex-col ${c} max-w-sm p-6 mx-auto`, m;
|
|
25171
25171
|
t[8] === n ? m = t[9] : (m = n && /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
25172
25172
|
className: "text-lg font-bold text-foreground/60",
|
|
25173
|
-
children:
|
|
25173
|
+
children: P({ html: n })
|
|
25174
25174
|
}), t[8] = n, t[9] = m);
|
|
25175
25175
|
let h;
|
|
25176
25176
|
t[10] === r ? h = t[11] : (h = r && /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
25177
25177
|
className: "text-sm text-muted-foreground",
|
|
25178
|
-
children:
|
|
25178
|
+
children: P({ html: r })
|
|
25179
25179
|
}), t[10] = r, t[11] = h);
|
|
25180
25180
|
let g;
|
|
25181
25181
|
t[12] === u ? g = t[13] : (g = u(), t[12] = u, t[13] = g);
|
|
@@ -25197,7 +25197,7 @@ var xI = () => {
|
|
|
25197
25197
|
}), t[19] = p, t[20] = m, t[21] = h, t[22] = v, t[23] = y) : y = t[23], y;
|
|
25198
25198
|
};
|
|
25199
25199
|
function kI(e) {
|
|
25200
|
-
return
|
|
25200
|
+
return ie(e, 0, 100);
|
|
25201
25201
|
}
|
|
25202
25202
|
var AI = EI.default.humanizer({
|
|
25203
25203
|
language: "shortEn",
|
|
@@ -25459,7 +25459,7 @@ var MI = (/* @__PURE__ */ i(((e) => {
|
|
|
25459
25459
|
let e = vr(c);
|
|
25460
25460
|
if (e?.[0]) {
|
|
25461
25461
|
let { mimetype: t, data: n } = e[0];
|
|
25462
|
-
return t !== "text/html" && l.warn(`Expected text/html, got ${t}`),
|
|
25462
|
+
return t !== "text/html" && l.warn(`Expected text/html, got ${t}`), P({
|
|
25463
25463
|
html: n,
|
|
25464
25464
|
alwaysSanitizeHtml: !0
|
|
25465
25465
|
});
|
|
@@ -29006,7 +29006,7 @@ var iR = (e) => {
|
|
|
29006
29006
|
t[21] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsxs)(Ir, {
|
|
29007
29007
|
className: "flex flex-row items-center gap-1",
|
|
29008
29008
|
htmlFor: "lock",
|
|
29009
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
29009
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Pe, { className: "h-3 w-3" }), "Bordered"]
|
|
29010
29010
|
}), t[21] = h) : h = t[21];
|
|
29011
29011
|
let g;
|
|
29012
29012
|
t[22] !== n || t[23] !== r ? (g = (e) => {
|
|
@@ -29324,7 +29324,7 @@ var gR = (e) => {
|
|
|
29324
29324
|
//#endregion
|
|
29325
29325
|
//#region src/components/editor/cell/useDeleteCell.tsx
|
|
29326
29326
|
function _R() {
|
|
29327
|
-
let e = (0, X.c)(3), { deleteCells: t, undoDeleteCell: n } =
|
|
29327
|
+
let e = (0, X.c)(3), { deleteCells: t, undoDeleteCell: n } = ae(), r;
|
|
29328
29328
|
return e[0] !== t || e[1] !== n ? (r = (e) => {
|
|
29329
29329
|
let { cellId: r } = e, i = (To.get(ra).cellData[r]?.code ?? "").trim() === "";
|
|
29330
29330
|
if (t({ cellIds: [r] }) && !i) {
|
|
@@ -31854,7 +31854,7 @@ function aH() {
|
|
|
31854
31854
|
return /* @__PURE__ */ new Set();
|
|
31855
31855
|
}
|
|
31856
31856
|
var oH = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skippedIds: i, noOutputIds: a, slideTypes: o, onSlideClick: s }) => {
|
|
31857
|
-
let c = Wi(), { moveCellToIndex: u, createCell: d } =
|
|
31857
|
+
let c = Wi(), { moveCellToIndex: u, createCell: d } = ae(), f = _R(), p = (0, J.useRef)(null), m = iH(p), [h, g] = (0, J.useState)(null), [_, v] = (0, J.useState)(null), y = $V(t), b = (e, t) => {
|
|
31858
31858
|
d({
|
|
31859
31859
|
...t ? { before: e } : { after: e },
|
|
31860
31860
|
focus: !1
|
|
@@ -31936,7 +31936,7 @@ var oH = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
|
|
|
31936
31936
|
ref: p,
|
|
31937
31937
|
children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
31938
31938
|
className: "text-xs text-gray-500 flex items-center gap-0.5",
|
|
31939
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
31939
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(k, { className: "h-3 w-3" }), "Reordering is not supported in multi-column mode"]
|
|
31940
31940
|
}), e.map((e, t) => /* @__PURE__ */ (0, Y.jsx)(lH, {
|
|
31941
31941
|
cell: e,
|
|
31942
31942
|
dimensions: y,
|
|
@@ -32051,7 +32051,7 @@ var oH = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
|
|
|
32051
32051
|
t[51] === l ? F = t[52] : (F = l && /* @__PURE__ */ (0, Y.jsxs)(Ct, {
|
|
32052
32052
|
variant: "danger",
|
|
32053
32053
|
onSelect: l,
|
|
32054
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
32054
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(R, { className: "mr-2 h-3.5 w-3.5" }), "Delete cell"]
|
|
32055
32055
|
}), t[51] = l, t[52] = F);
|
|
32056
32056
|
let I;
|
|
32057
32057
|
t[53] !== N || t[54] !== F ? (I = /* @__PURE__ */ (0, Y.jsxs)(Sr, { children: [
|
|
@@ -32197,7 +32197,7 @@ function _H(e) {
|
|
|
32197
32197
|
}
|
|
32198
32198
|
//#endregion
|
|
32199
32199
|
//#region src/components/editor/renderers/slides-layout/slides-layout.tsx
|
|
32200
|
-
var vH = J.lazy(() => import("./reveal-component-
|
|
32200
|
+
var vH = J.lazy(() => import("./reveal-component-CMsZlXqO.js")), yH = (e) => {
|
|
32201
32201
|
let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = Ao(Uo), s = a === "read" || o, c = Ao(ma) > 1, [l, u] = (0, J.useState)(null), d;
|
|
32202
32202
|
t[0] !== i || t[1] !== n ? (d = hR(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
|
|
32203
32203
|
let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
|
|
@@ -32414,7 +32414,7 @@ var OH = (e) => {
|
|
|
32414
32414
|
let m;
|
|
32415
32415
|
t[12] === n ? m = t[13] : (m = () => n("bt"), t[12] = n, t[13] = m);
|
|
32416
32416
|
let h;
|
|
32417
|
-
t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsx)(
|
|
32417
|
+
t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsx)(Re, {
|
|
32418
32418
|
fontSize: 36,
|
|
32419
32419
|
className: "w-5 h-5"
|
|
32420
32420
|
}), t[14] = h) : h = t[14];
|
|
@@ -32498,7 +32498,7 @@ function kH(e = !0) {
|
|
|
32498
32498
|
//#endregion
|
|
32499
32499
|
//#region src/components/editor/actions/name-cell-input.tsx
|
|
32500
32500
|
var AH = (e) => {
|
|
32501
|
-
let t = (0, X.c)(12), { value: n, cellId: r, className: i } = e, a =
|
|
32501
|
+
let t = (0, X.c)(12), { value: n, cellId: r, className: i } = e, a = ve(), o;
|
|
32502
32502
|
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];
|
|
32503
32503
|
let s = jH(n, o);
|
|
32504
32504
|
if (sa(n)) return null;
|
|
@@ -32565,7 +32565,7 @@ function MH(e) {
|
|
|
32565
32565
|
}
|
|
32566
32566
|
//#endregion
|
|
32567
32567
|
//#region src/components/editor/output/useWrapText.ts
|
|
32568
|
-
var NH = Co("marimo:console:wrapText", !1,
|
|
32568
|
+
var NH = Co("marimo:console:wrapText", !1, pe);
|
|
32569
32569
|
function PH() {
|
|
32570
32570
|
let e = (0, X.c)(3), [t, n] = xo(NH), r;
|
|
32571
32571
|
return e[0] !== n || e[1] !== t ? (r = {
|
|
@@ -32591,7 +32591,7 @@ var IH = (e) => {
|
|
|
32591
32591
|
let t = (0, X.c)(2), n;
|
|
32592
32592
|
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ (0, Y.jsx)(Fa, { children: /* @__PURE__ */ (0, Y.jsx)(LH, { ...e }) }), t[0] = e, t[1] = n), n;
|
|
32593
32593
|
}, LH = (e) => {
|
|
32594
|
-
let t = (0, X.c)(63), n = J.useRef(null), { wrapText: r, setWrapText: i } = PH(), [a, o] =
|
|
32594
|
+
let t = (0, X.c)(63), n = J.useRef(null), { wrapText: r, setWrapText: i } = PH(), [a, o] = Oe(e.cellId), [s, c] = J.useState(""), l;
|
|
32595
32595
|
t[0] === s ? l = t[1] : (l = {
|
|
32596
32596
|
value: s,
|
|
32597
32597
|
setValue: c
|
|
@@ -32778,7 +32778,7 @@ function WH(e) {
|
|
|
32778
32778
|
}
|
|
32779
32779
|
//#endregion
|
|
32780
32780
|
//#region src/core/cells/readonly-code-display.ts
|
|
32781
|
-
var GH = new
|
|
32781
|
+
var GH = new re(), KH = new Fe();
|
|
32782
32782
|
function qH(e) {
|
|
32783
32783
|
let t = e.trim();
|
|
32784
32784
|
return t ? GH.isSupported(t) ? {
|
|
@@ -32857,7 +32857,7 @@ function eU(e, t) {
|
|
|
32857
32857
|
i(!1);
|
|
32858
32858
|
return;
|
|
32859
32859
|
}
|
|
32860
|
-
let n =
|
|
32860
|
+
let n = ie((e - 1) * $H, 100, 2e3), r = setTimeout(() => {
|
|
32861
32861
|
i(!1);
|
|
32862
32862
|
}, n);
|
|
32863
32863
|
return () => clearTimeout(r);
|
|
@@ -32885,7 +32885,7 @@ function rU(e) {
|
|
|
32885
32885
|
}), [...t.entries()].toSorted(([e], [t]) => e - t);
|
|
32886
32886
|
}
|
|
32887
32887
|
function iU(e, t) {
|
|
32888
|
-
let n = new
|
|
32888
|
+
let n = new ye().isSupported(e), r = t !== null && !me(t);
|
|
32889
32889
|
return n && r || e.trim() === "";
|
|
32890
32890
|
}
|
|
32891
32891
|
//#endregion
|
|
@@ -32958,7 +32958,7 @@ var aU = (e) => {
|
|
|
32958
32958
|
})
|
|
32959
32959
|
}) : /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
32960
32960
|
className: "flex-1 flex flex-col items-center justify-center py-8",
|
|
32961
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
32961
|
+
children: /* @__PURE__ */ (0, Y.jsx)(ne, { className: "w-8 h-8 animate-spin text-muted-foreground" })
|
|
32962
32962
|
}) : /* @__PURE__ */ (0, Y.jsx)(Y.Fragment, { children: n.map(v) });
|
|
32963
32963
|
}, t[10] = r.width, t[11] = n, t[12] = a, t[13] = s, t[14] = v, t[15] = y) : y = t[15];
|
|
32964
32964
|
let b = y, x = f && m && "gap-5", S;
|
|
@@ -33098,20 +33098,20 @@ var aU = (e) => {
|
|
|
33098
33098
|
}, !1), t[0] = d, t[1] = n, t[2] = p, t[3] = f, t[4] = o, t[5] = x) : x = t[5];
|
|
33099
33099
|
let S = x, C;
|
|
33100
33100
|
t[6] === o ? C = t[7] : (C = Bi(o), t[6] = o, t[7] = C);
|
|
33101
|
-
let w = C,
|
|
33102
|
-
if (t[8] !== m || t[9] !== c || t[10] !==
|
|
33103
|
-
let e = new
|
|
33104
|
-
|
|
33101
|
+
let w = C, T = v && g !== "present", E;
|
|
33102
|
+
if (t[8] !== m || t[9] !== c || t[10] !== T || t[11] !== h || t[12] !== s) {
|
|
33103
|
+
let e = new ye().isSupported(m);
|
|
33104
|
+
E = u("marimo-cell", "hover-actions-parent empty:invisible", !h && !T ? Ji({
|
|
33105
33105
|
errored: c,
|
|
33106
33106
|
stopped: s
|
|
33107
33107
|
}) : {
|
|
33108
33108
|
"has-error": c,
|
|
33109
33109
|
stopped: s,
|
|
33110
33110
|
borderless: e
|
|
33111
|
-
}), t[8] = m, t[9] = c, t[10] =
|
|
33112
|
-
} else
|
|
33113
|
-
let
|
|
33114
|
-
if (g === "read" && h ||
|
|
33111
|
+
}), t[8] = m, t[9] = c, t[10] = T, t[11] = h, t[12] = s, t[13] = E;
|
|
33112
|
+
} else E = t[13];
|
|
33113
|
+
let D = E;
|
|
33114
|
+
if (g === "read" && h || T) {
|
|
33115
33115
|
let e;
|
|
33116
33116
|
t[14] !== a || t[15] !== w || t[16] !== n || t[17] !== S ? (e = /* @__PURE__ */ (0, Y.jsx)(jn, {
|
|
33117
33117
|
allowExpand: !0,
|
|
@@ -33147,10 +33147,10 @@ var aU = (e) => {
|
|
|
33147
33147
|
debuggerActive: !1
|
|
33148
33148
|
}), t[31] = a, t[32] = r, t[33] = d, t[34] = _, t[35] = S, t[36] = y) : y = t[36];
|
|
33149
33149
|
let x;
|
|
33150
|
-
return t[37] !==
|
|
33150
|
+
return t[37] !== D || t[38] !== v || t[39] !== y || t[40] !== p || t[41] !== h || t[42] !== g ? (x = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
33151
33151
|
tabIndex: -1,
|
|
33152
33152
|
ref: b,
|
|
33153
|
-
className:
|
|
33153
|
+
className: D,
|
|
33154
33154
|
...p,
|
|
33155
33155
|
children: [
|
|
33156
33156
|
h,
|
|
@@ -33158,7 +33158,7 @@ var aU = (e) => {
|
|
|
33158
33158
|
v,
|
|
33159
33159
|
y
|
|
33160
33160
|
]
|
|
33161
|
-
}), t[37] =
|
|
33161
|
+
}), t[37] = D, t[38] = v, t[39] = y, t[40] = p, t[41] = h, t[42] = g, t[43] = x) : x = t[43], x;
|
|
33162
33162
|
}
|
|
33163
33163
|
if (Xi({
|
|
33164
33164
|
errored: c,
|
|
@@ -33167,25 +33167,25 @@ var aU = (e) => {
|
|
|
33167
33167
|
output: n,
|
|
33168
33168
|
showErrorTracebacks: y
|
|
33169
33169
|
})) return null;
|
|
33170
|
-
let
|
|
33171
|
-
t[44] !== a || t[45] !== _ ? (
|
|
33172
|
-
let
|
|
33173
|
-
t[47] !== a || t[48] !== w || t[49] !== n || t[50] !== S || t[51] !==
|
|
33174
|
-
allowExpand:
|
|
33170
|
+
let O;
|
|
33171
|
+
t[44] !== a || t[45] !== _ ? (O = lr(a, _), t[44] = a, t[45] = _, t[46] = O) : O = t[46];
|
|
33172
|
+
let k = g === "edit", A;
|
|
33173
|
+
t[47] !== a || t[48] !== w || t[49] !== n || t[50] !== S || t[51] !== k ? (A = /* @__PURE__ */ (0, Y.jsx)(jn, {
|
|
33174
|
+
allowExpand: k,
|
|
33175
33175
|
output: n,
|
|
33176
33176
|
className: Do.outputArea,
|
|
33177
33177
|
cellId: a,
|
|
33178
33178
|
stale: S,
|
|
33179
33179
|
loading: w
|
|
33180
|
-
}), t[47] = a, t[48] = w, t[49] = n, t[50] = S, t[51] =
|
|
33181
|
-
let
|
|
33182
|
-
return t[53] !==
|
|
33180
|
+
}), t[47] = a, t[48] = w, t[49] = n, t[50] = S, t[51] = k, t[52] = A) : A = t[52];
|
|
33181
|
+
let j;
|
|
33182
|
+
return t[53] !== D || t[54] !== O || t[55] !== A ? (j = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
33183
33183
|
tabIndex: -1,
|
|
33184
33184
|
ref: b,
|
|
33185
|
-
className:
|
|
33186
|
-
...
|
|
33187
|
-
children:
|
|
33188
|
-
}), t[53] =
|
|
33185
|
+
className: D,
|
|
33186
|
+
...O,
|
|
33187
|
+
children: A
|
|
33188
|
+
}), t[53] = D, t[54] = O, t[55] = A, t[56] = j) : j = t[56], j;
|
|
33189
33189
|
});
|
|
33190
33190
|
cU.displayName = "VerticalCell";
|
|
33191
33191
|
var lU = {
|
|
@@ -33596,10 +33596,10 @@ function JU(e) {
|
|
|
33596
33596
|
return null;
|
|
33597
33597
|
}
|
|
33598
33598
|
function YU(e) {
|
|
33599
|
-
return
|
|
33599
|
+
return T(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(XU) : !1;
|
|
33600
33600
|
}
|
|
33601
33601
|
function XU(e) {
|
|
33602
|
-
return
|
|
33602
|
+
return T(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;
|
|
33603
33603
|
}
|
|
33604
33604
|
//#endregion
|
|
33605
33605
|
//#region src/core/islands/components/IslandControls.tsx
|
|
@@ -33740,7 +33740,7 @@ var rW = (e) => {
|
|
|
33740
33740
|
let e;
|
|
33741
33741
|
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)(iW, { children: /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
33742
33742
|
className: "absolute top-1 right-1",
|
|
33743
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
33743
|
+
children: /* @__PURE__ */ (0, Y.jsx)(ne, { className: "animate-spin size-4" })
|
|
33744
33744
|
}) }), t[0] = e) : e = t[0], e;
|
|
33745
33745
|
}
|
|
33746
33746
|
return null;
|
|
@@ -33823,7 +33823,7 @@ var rW = (e) => {
|
|
|
33823
33823
|
renderIsland() {
|
|
33824
33824
|
let e = this.renderConfig;
|
|
33825
33825
|
if (!e) return;
|
|
33826
|
-
let { html: t, codeCallback: n, editor: r } = e, i = this.runtimeCellId, a = !!r, o = t.trim(), s = o === "<span></span>" || o === "" ? null :
|
|
33826
|
+
let { html: t, codeCallback: n, editor: r } = e, i = this.runtimeCellId, a = !!r, o = t.trim(), s = o === "<span></span>" || o === "" ? null : P({ html: o });
|
|
33827
33827
|
if (!i) {
|
|
33828
33828
|
this.removeAttribute("data-status"), this.root?.render(/* @__PURE__ */ (0, Y.jsx)(Fa, { children: /* @__PURE__ */ (0, Y.jsx)(jo, {
|
|
33829
33829
|
store: To,
|
|
@@ -33844,7 +33844,7 @@ var rW = (e) => {
|
|
|
33844
33844
|
getOptionalEditor() {
|
|
33845
33845
|
let t = this.querySelector(e.editorTagName)?.parentNode?.outerHTML;
|
|
33846
33846
|
if (t) {
|
|
33847
|
-
let e =
|
|
33847
|
+
let e = P({ html: t });
|
|
33848
33848
|
if ((0, J.isValidElement)(e)) return e;
|
|
33849
33849
|
}
|
|
33850
33850
|
return null;
|
|
@@ -33975,7 +33975,7 @@ function dW(e, t, n, r) {
|
|
|
33975
33975
|
case "alert":
|
|
33976
33976
|
x({
|
|
33977
33977
|
title: e.title,
|
|
33978
|
-
description:
|
|
33978
|
+
description: P({ html: e.description }),
|
|
33979
33979
|
variant: e.variant
|
|
33980
33980
|
});
|
|
33981
33981
|
return;
|
|
@@ -34314,7 +34314,7 @@ var OW = class {
|
|
|
34314
34314
|
async startApps() {
|
|
34315
34315
|
let e = NU(this.root, { materialize: !1 }), t = e.length === 1;
|
|
34316
34316
|
l.debug(`Starting sessions for ${e.length} app(s):`, e.map((e) => `${e.id} (${e.cells.length} cells)`));
|
|
34317
|
-
let n = (e.length === 1 && !e[0]?.payloadBacked ?
|
|
34317
|
+
let n = (e.length === 1 && !e[0]?.payloadBacked ? te() : void 0)?.notebookCode, r = t ? e[0] : void 0, i = r ? n || HU(r) : void 0;
|
|
34318
34318
|
if (r && this.session?.appId === r.id && this.session.code === i) {
|
|
34319
34319
|
NU(this.root);
|
|
34320
34320
|
return;
|
|
@@ -34362,7 +34362,7 @@ var OW = class {
|
|
|
34362
34362
|
sendComponentValues = async (e) => (await this.putControlRequest({
|
|
34363
34363
|
type: "update-ui-element",
|
|
34364
34364
|
...e,
|
|
34365
|
-
token:
|
|
34365
|
+
token: Te()
|
|
34366
34366
|
}), null);
|
|
34367
34367
|
sendInstantiate = async () => null;
|
|
34368
34368
|
sendFunctionRequest = async (e) => (await this.putControlRequest({
|