@marimo-team/islands 0.24.1-dev67 → 0.24.1-dev68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chat-ui-BKe2HMeo.js → chat-ui-DM12Y9is.js} +1820 -1820
- package/dist/{common-8QNQrcue.js → common-C0qiyUYJ.js} +6971 -6971
- package/dist/{html-to-image-BKk_y4-k.js → html-to-image-B7RQgQQy.js} +3849 -3849
- package/dist/main.js +469 -469
- package/dist/{process-output-BKvXi5lM.js → process-output-BCqcNNll.js} +5 -5
- package/dist/{reveal-component-B6O1FFou.js → reveal-component-D2QMPzcy.js} +16 -16
- package/package.json +1 -1
- package/src/components/variables/__tests__/variables-table.test.tsx +110 -0
- package/src/components/variables/variables-table.tsx +2 -3
- package/src/core/cells/cells.ts +11 -0
- package/src/core/codemirror/go-to-definition/__tests__/utils.test.ts +48 -0
- package/src/core/codemirror/go-to-definition/utils.ts +2 -8
package/dist/main.js
CHANGED
|
@@ -3,16 +3,16 @@ import { _ as a, c as o, f 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-DMWcHin-.js";
|
|
4
4
|
import { t as b } from "./compiler-runtime-CAH9RLw2.js";
|
|
5
5
|
import { n as x, r as S, t as C } from "./copy-D9h0DuU7.js";
|
|
6
|
-
import { $
|
|
6
|
+
import { $ as w, $n as T, B as E, Bn as D, C as O, Cn as k, Ct as A, Dn as j, Dt as M, Et as N, F as P, Fn as F, Ft as I, G as L, Gn as R, Ht as ee, I as z, It as te, J as ne, K as re, Kn as ie, Kt as ae, L as oe, Ln as se, Mn as ce, Mt as le, Nn as ue, On as de, Ot as fe, P as pe, Pn as me, Qn as he, R as ge, Rn as _e, Sn as ve, St as ye, U as be, Un as xe, Ut as Se, W as Ce, Wn as we, Wt as Te, X as Ee, Xn as De, Xt as Oe, Y as ke, Yn as Ae, Z as je, _ as Me, _t as Ne, a as Pe, an as Fe, at as Ie, b as Le, bn as Re, bt as ze, ct as Be, dn as Ve, en as He, g as Ue, gn as We, hn as Ge, i as Ke, in as qe, it as Je, j as Ye, jt as Xe, k as Ze, kn as Qe, kt as $e, lt as et, mn as tt, n as nt, nn as rt, o as it, on as at, q as ot, qn as st, qt as ct, rn as lt, rt as ut, st as dt, tn as ft, v as pt, vn as mt, vt as ht, wn as gt, wt as _t, xn as vt, xt as yt, y as bt, yt as xt, z as St, zt as Ct } from "./html-to-image-B7RQgQQy.js";
|
|
7
7
|
import { o as wt, s as Tt, u as Et } from "./dist-wdOJ5T7-.js";
|
|
8
8
|
import { D as Dt, E as Ot, O as kt, S as At, T as jt, _ as Mt, a as Nt, c as Pt, d as Ft, f as It, g as Lt, h as Rt, i as zt, l as Bt, m as Vt, n as Ht, o as Ut, p as Wt, r as Gt, s as Kt, t as qt, u as Jt, v as Yt, w as Xt, x as Zt, y as Qt } from "./spec-BQ36ell9.js";
|
|
9
|
-
import { $ as $t, $t as en, A as tn, At as nn, B as rn, Bt as an, C as on, Ct as sn, D as cn, Dt as ln, E as un, Et as dn, F as fn, Ft as pn, G as mn, Gt as hn, H as gn, Ht as _n, I as vn, It as yn, Jt as bn, K as xn, Kt as Sn, L as Cn, Lt as wn, M as Tn, Mt as En, N as Dn, Nt as On, O as kn, Ot as An, P as jn, Pt as Mn, Q as Nn, Qt as Pn, R as Fn, Rt as In, S as Ln, St as Rn, T as zn, Tt as Bn, U as Vn, Ut as Hn, V as Un, Vt as Wn, W as Gn, Wt as Kn, Xt as qn, Yt as Jn, Z as Yn, Zt as Xn, _ as Zn, an as Qn, at as $n, b as er, bt as tr, c as nr, cn as rr, ct as ir, d as ar, dn as or, dt as sr, en as cr, et as lr, f as ur, fn as dr, ft as fr, g as pr, gt as mr, h as hr, ht as gr, i as _r, it as vr, j as yr, jt as br, k as xr, kt as Sr, ln as Cr, lt as wr, m as Tr, mt as Er, n as Dr, nn as Or, nt as kr, on as Ar, ot as jr, p as Mr, pn as Nr, pt as Pr, q as Fr, qt as Ir, r as Lr, rn as Rr, rt as zr, sn as Br, st as Vr, t as Hr, tn as Ur, tt as Wr, u as Gr, un as Kr, ut as qr, v as Jr, w as Yr, wt as Xr, x as Zr, xt as Qr, y as $r, yt as ei, z as ti, zt as ni } from "./common-
|
|
9
|
+
import { $ as $t, $t as en, A as tn, At as nn, B as rn, Bt as an, C as on, Ct as sn, D as cn, Dt as ln, E as un, Et as dn, F as fn, Ft as pn, G as mn, Gt as hn, H as gn, Ht as _n, I as vn, It as yn, Jt as bn, K as xn, Kt as Sn, L as Cn, Lt as wn, M as Tn, Mt as En, N as Dn, Nt as On, O as kn, Ot as An, P as jn, Pt as Mn, Q as Nn, Qt as Pn, R as Fn, Rt as In, S as Ln, St as Rn, T as zn, Tt as Bn, U as Vn, Ut as Hn, V as Un, Vt as Wn, W as Gn, Wt as Kn, Xt as qn, Yt as Jn, Z as Yn, Zt as Xn, _ as Zn, an as Qn, at as $n, b as er, bt as tr, c as nr, cn as rr, ct as ir, d as ar, dn as or, dt as sr, en as cr, et as lr, f as ur, fn as dr, ft as fr, g as pr, gt as mr, h as hr, ht as gr, i as _r, it as vr, j as yr, jt as br, k as xr, kt as Sr, ln as Cr, lt as wr, m as Tr, mt as Er, n as Dr, nn as Or, nt as kr, on as Ar, ot as jr, p as Mr, pn as Nr, pt as Pr, q as Fr, qt as Ir, r as Lr, rn as Rr, rt as zr, sn as Br, st as Vr, t as Hr, tn as Ur, tt as Wr, u as Gr, un as Kr, ut as qr, v as Jr, w as Yr, wt as Xr, x as Zr, xt as Qr, y as $r, yt as ei, z as ti, zt as ni } from "./common-C0qiyUYJ.js";
|
|
10
10
|
import { c as ri, i as ii, n as ai, o as oi, t as si } from "./useLifecycle-hEcsyQ2P.js";
|
|
11
11
|
import { t as ci } from "./check-BcJDmQdF.js";
|
|
12
12
|
import { A as li, C as ui, D as di, E as fi, F as pi, I as mi, M as hi, N as gi, P as _i, R as vi, S as yi, a as bi, b as xi, c as Si, i as Ci, j as wi, l as Ti, n as Ei, o as Di, r as Oi, s as ki, t as Ai, w as ji, x as Mi } from "./select-DQ9jU_B_.js";
|
|
13
13
|
import { B as Ni, C as Pi, Ft as Fi, G as Ii, It as Li, S as Ri, V as zi, Wt as Bi, X as Vi, Y as Hi, _ as Ui, a as Wi, c as Gi, f as Ki, g as qi, gn as Ji, h as Yi, hn as Xi, i as Zi, m as Qi, n as $i, ot as ea, pt as ta, r as na, s as ra, st as ia, t as aa, v as oa, w as sa, xt as ca, y as la } from "./dropdown-menu-C8N-kZzD.js";
|
|
14
14
|
import { _ as ua, c as da, d as fa, f as pa, g as ma, h as ha, m as ga, u as _a } from "./toDate-BfSgxzgl.js";
|
|
15
|
-
import { a as va, c as ya, d as ba, f as xa, i as Sa, l as Ca, n as wa, o as Ta, r as Ea, s as Da, t as Oa } from "./process-output-
|
|
15
|
+
import { a as va, c as ya, d as ba, f as xa, i as Sa, l as Ca, n as wa, o as Ta, r as Ea, s as Da, t as Oa } from "./process-output-BCqcNNll.js";
|
|
16
16
|
import { i as ka, n as Aa, r as ja, t as Ma } from "./types-eyYyHvz7.js";
|
|
17
17
|
import { n as Na, t as Pa } from "./ErrorBoundary-CTvsyaid.js";
|
|
18
18
|
import { t as Fa } from "./react-dom-C94wmq5w.js";
|
|
@@ -8285,7 +8285,7 @@ var GS = /* @__PURE__ */ r({
|
|
|
8285
8285
|
Lc(Jb());
|
|
8286
8286
|
//#endregion
|
|
8287
8287
|
//#region ../node_modules/.pnpm/zod@4.3.6/node_modules/zod/index.js
|
|
8288
|
-
var KS = GS, qS = /* @__PURE__ */ e(
|
|
8288
|
+
var KS = GS, qS = /* @__PURE__ */ e(Oe(), 1), JS = ga(), YS = (e) => e.type === "checkbox", XS = (e) => e instanceof Date, ZS = (e) => e == null, QS = (e) => typeof e == "object", $S = (e) => !ZS(e) && !Array.isArray(e) && QS(e) && !XS(e), eC = (e) => $S(e) && e.target ? YS(e.target) ? e.target.checked : e.target.value : e, tC = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, nC = (e, t) => e.has(tC(t)), rC = (e) => {
|
|
8289
8289
|
let t = e.constructor && e.constructor.prototype;
|
|
8290
8290
|
return $S(t) && t.hasOwnProperty("isPrototypeOf");
|
|
8291
8291
|
}, iC = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
|
|
@@ -9040,7 +9040,7 @@ function jw(e = {}) {
|
|
|
9040
9040
|
}, D = () => {
|
|
9041
9041
|
for (let e of s.unMount) {
|
|
9042
9042
|
let t = Z(r, e);
|
|
9043
|
-
t && (t._f.refs ? t._f.refs.every((e) => !hw(e)) : !hw(t._f.ref)) &&
|
|
9043
|
+
t && (t._f.refs ? t._f.refs.every((e) => !hw(e)) : !hw(t._f.ref)) && ne(e);
|
|
9044
9044
|
}
|
|
9045
9045
|
s.unMount = /* @__PURE__ */ new Set();
|
|
9046
9046
|
}, O = (e, n) => !t.disabled && (e && n && dC(a, e, n), !fw(L(), i)), k = (e, t, n) => EC(e, s, { ...o.mount ? a : sC(t) ? i : TC(e) ? { [e]: t } : t }, n, t), A = (e) => oC(Z(o.mount ? a : i, e, t.shouldUnregister ? Z(i, e, []) : [])), j = (e, t, n = {}) => {
|
|
@@ -9116,15 +9116,15 @@ function jw(e = {}) {
|
|
|
9116
9116
|
}, L = (e) => {
|
|
9117
9117
|
let t = { ...o.mount ? a : i };
|
|
9118
9118
|
return sC(e) ? t : TC(e) ? Z(t, e) : e.map((e) => Z(t, e));
|
|
9119
|
-
},
|
|
9119
|
+
}, R = (e, t) => ({
|
|
9120
9120
|
invalid: !!Z((t || n).errors, e),
|
|
9121
9121
|
isDirty: !!Z((t || n).dirtyFields, e),
|
|
9122
9122
|
error: Z((t || n).errors, e),
|
|
9123
9123
|
isValidating: !!Z(n.validatingFields, e),
|
|
9124
9124
|
isTouched: !!Z((t || n).touchedFields, e)
|
|
9125
|
-
}),
|
|
9125
|
+
}), ee = (e) => {
|
|
9126
9126
|
e && xC(e).forEach((e) => sw(n.errors, e)), d.state.next({ errors: e ? n.errors : {} });
|
|
9127
|
-
},
|
|
9127
|
+
}, z = (e, t, i) => {
|
|
9128
9128
|
let a = (Z(r, e, { _f: {} })._f || {}).ref, { ref: o, message: s, type: c, ...l } = Z(n.errors, e) || {};
|
|
9129
9129
|
dC(n.errors, e, {
|
|
9130
9130
|
...l,
|
|
@@ -9135,7 +9135,7 @@ function jw(e = {}) {
|
|
|
9135
9135
|
errors: n.errors,
|
|
9136
9136
|
isValid: !1
|
|
9137
9137
|
}), i && i.shouldFocus && a && a.focus && a.focus();
|
|
9138
|
-
},
|
|
9138
|
+
}, te = (e, t) => RC(e) ? d.values.subscribe({ next: (n) => e(k(void 0, t), n) }) : k(e, t, !0), ne = (e, o = {}) => {
|
|
9139
9139
|
for (let c of e ? xC(e) : s.mount) s.mount.delete(c), s.array.delete(c), o.keepValue || (sw(r, c), sw(a, c)), !o.keepError && sw(n.errors, c), !o.keepDirty && sw(n.dirtyFields, c), !o.keepTouched && sw(n.touchedFields, c), !o.keepIsValidating && sw(n.validatingFields, c), !t.shouldUnregister && !o.keepDefaultValue && sw(i, c);
|
|
9140
9140
|
d.values.next({ values: { ...a } }), d.state.next({
|
|
9141
9141
|
...n,
|
|
@@ -9271,10 +9271,10 @@ function jw(e = {}) {
|
|
|
9271
9271
|
return {
|
|
9272
9272
|
control: {
|
|
9273
9273
|
register: ie,
|
|
9274
|
-
unregister:
|
|
9275
|
-
getFieldState:
|
|
9274
|
+
unregister: ne,
|
|
9275
|
+
getFieldState: R,
|
|
9276
9276
|
handleSubmit: se,
|
|
9277
|
-
setError:
|
|
9277
|
+
setError: z,
|
|
9278
9278
|
_executeSchema: w,
|
|
9279
9279
|
_getWatch: k,
|
|
9280
9280
|
_getDirty: O,
|
|
@@ -9337,14 +9337,14 @@ function jw(e = {}) {
|
|
|
9337
9337
|
trigger: I,
|
|
9338
9338
|
register: ie,
|
|
9339
9339
|
handleSubmit: se,
|
|
9340
|
-
watch:
|
|
9340
|
+
watch: te,
|
|
9341
9341
|
setValue: N,
|
|
9342
9342
|
getValues: L,
|
|
9343
9343
|
reset: ue,
|
|
9344
9344
|
resetField: ce,
|
|
9345
|
-
clearErrors:
|
|
9346
|
-
unregister:
|
|
9347
|
-
setError:
|
|
9345
|
+
clearErrors: ee,
|
|
9346
|
+
unregister: ne,
|
|
9347
|
+
setError: z,
|
|
9348
9348
|
setFocus: (e, t = {}) => {
|
|
9349
9349
|
let n = Z(r, e), i = n && n._f;
|
|
9350
9350
|
if (i) {
|
|
@@ -9352,7 +9352,7 @@ function jw(e = {}) {
|
|
|
9352
9352
|
e.focus && (e.focus(), t.shouldSelect && RC(e.select) && e.select());
|
|
9353
9353
|
}
|
|
9354
9354
|
},
|
|
9355
|
-
getFieldState:
|
|
9355
|
+
getFieldState: R
|
|
9356
9356
|
};
|
|
9357
9357
|
}
|
|
9358
9358
|
function Mw(e = {}) {
|
|
@@ -9687,7 +9687,7 @@ var rT = (e) => {
|
|
|
9687
9687
|
let a;
|
|
9688
9688
|
t[0] === n ? a = t[1] : (a = l("stroke-[1.8px]", n), t[0] = n, t[1] = a);
|
|
9689
9689
|
let o;
|
|
9690
|
-
t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, J.jsx)(
|
|
9690
|
+
t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, J.jsx)(he, { className: a }), t[2] = a, t[3] = o);
|
|
9691
9691
|
let s;
|
|
9692
9692
|
return t[4] !== i || t[5] !== o ? (s = /* @__PURE__ */ (0, J.jsx)(Em, {
|
|
9693
9693
|
content: i,
|
|
@@ -10052,7 +10052,7 @@ function wT({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
10052
10052
|
name: n,
|
|
10053
10053
|
render: ({ field: e }) => /* @__PURE__ */ (0, J.jsxs)(Qw, { children: [/* @__PURE__ */ (0, J.jsxs)("div", {
|
|
10054
10054
|
className: l("flex flex-row gap-2", a ? "items-start" : "items-center"),
|
|
10055
|
-
children: [/* @__PURE__ */ (0, J.jsx)(eT, { children: /* @__PURE__ */ (0, J.jsx)(
|
|
10055
|
+
children: [/* @__PURE__ */ (0, J.jsx)(eT, { children: /* @__PURE__ */ (0, J.jsx)(ze, {
|
|
10056
10056
|
"data-testid": "marimo-plugin-data-frames-boolean-checkbox",
|
|
10057
10057
|
checked: e.value,
|
|
10058
10058
|
onCheckedChange: e.onChange,
|
|
@@ -10264,7 +10264,7 @@ var TT = (e) => {
|
|
|
10264
10264
|
form: r,
|
|
10265
10265
|
path: `${i}[${t}]`,
|
|
10266
10266
|
renderers: o
|
|
10267
|
-
}), v && /* @__PURE__ */ (0, J.jsx)(
|
|
10267
|
+
}), v && /* @__PURE__ */ (0, J.jsx)(se, {
|
|
10268
10268
|
className: "w-4 h-4 ml-2 my-1 text-muted-foreground hover:text-destructive cursor-pointer absolute right-0 top-5",
|
|
10269
10269
|
onClick: () => {
|
|
10270
10270
|
h(t);
|
|
@@ -10672,18 +10672,18 @@ function HT(e) {
|
|
|
10672
10672
|
return typeof e == "function";
|
|
10673
10673
|
}
|
|
10674
10674
|
function UT(e) {
|
|
10675
|
-
return
|
|
10675
|
+
return fe(e) && (VT(e.render) || HT(e.initialize));
|
|
10676
10676
|
}
|
|
10677
10677
|
function WT(e) {
|
|
10678
10678
|
return typeof e == "function" || UT(e);
|
|
10679
10679
|
}
|
|
10680
10680
|
function GT(e) {
|
|
10681
|
-
return
|
|
10681
|
+
return fe(e) && WT(e.default);
|
|
10682
10682
|
}
|
|
10683
10683
|
var KT = /* @__PURE__ */ new Set(), qT = /* @__PURE__ */ new WeakMap();
|
|
10684
10684
|
function JT(e, t) {
|
|
10685
10685
|
if (GT(e)) return e.default;
|
|
10686
|
-
if (!
|
|
10686
|
+
if (!fe(e) || e.default !== void 0) return null;
|
|
10687
10687
|
let n = VT(e.render) ? e.render : void 0, r = HT(e.initialize) ? e.initialize : void 0;
|
|
10688
10688
|
if (n === void 0 && r === void 0) return null;
|
|
10689
10689
|
let i = qT.get(e);
|
|
@@ -10696,8 +10696,8 @@ function JT(e, t) {
|
|
|
10696
10696
|
return qT.set(e, a), a;
|
|
10697
10697
|
}
|
|
10698
10698
|
function YT(e, t) {
|
|
10699
|
-
let n = "https://anywidget.dev/en/afm/", r =
|
|
10700
|
-
if (
|
|
10699
|
+
let n = "https://anywidget.dev/en/afm/", r = fe(e) && M(e, "render"), i = fe(e) && M(e, "initialize");
|
|
10700
|
+
if (fe(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}`);
|
|
10701
10701
|
if (r || i) {
|
|
10702
10702
|
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 ...";
|
|
10703
10703
|
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}`);
|
|
@@ -10731,7 +10731,7 @@ function eE(e) {
|
|
|
10731
10731
|
return typeof e != "string" || e.length === 0 ? !1 : !!(/^(\.?\/)?@file\/[^?#]+$/.test(e) || nE(e));
|
|
10732
10732
|
}
|
|
10733
10733
|
function tE() {
|
|
10734
|
-
return Im.get(
|
|
10734
|
+
return Im.get(ge) || oe();
|
|
10735
10735
|
}
|
|
10736
10736
|
function nE(e) {
|
|
10737
10737
|
return e.startsWith("data:text/javascript;base64,") || e.startsWith("data:application/javascript;base64,") || e.startsWith("data:text/css;base64,") ? tE() : !1;
|
|
@@ -11086,7 +11086,7 @@ function hE(e) {
|
|
|
11086
11086
|
for (let a of t) {
|
|
11087
11087
|
let t = Om(e, a);
|
|
11088
11088
|
if (t instanceof DataView) {
|
|
11089
|
-
let e =
|
|
11089
|
+
let e = Ye(t);
|
|
11090
11090
|
r.push(e), i.push(a), kb(n, a, e);
|
|
11091
11091
|
}
|
|
11092
11092
|
}
|
|
@@ -11107,14 +11107,14 @@ function gE(e) {
|
|
|
11107
11107
|
c.warn("[anywidget] Could not find buffer at path", t);
|
|
11108
11108
|
continue;
|
|
11109
11109
|
}
|
|
11110
|
-
typeof n == "string" ? kb(i, t,
|
|
11110
|
+
typeof n == "string" ? kb(i, t, Ze(n)) : kb(i, t, n);
|
|
11111
11111
|
}
|
|
11112
11112
|
return i;
|
|
11113
11113
|
}
|
|
11114
11114
|
//#endregion
|
|
11115
11115
|
//#region src/plugins/impl/anywidget/registry.ts
|
|
11116
11116
|
function _E() {
|
|
11117
|
-
let e = Im.get(
|
|
11117
|
+
let e = Im.get(N).mode;
|
|
11118
11118
|
return e === "edit" || e === "present";
|
|
11119
11119
|
}
|
|
11120
11120
|
var vE = new class {
|
|
@@ -11169,7 +11169,7 @@ BT._modelManager = vE;
|
|
|
11169
11169
|
async function yE(e, t) {
|
|
11170
11170
|
let n = t.model_id;
|
|
11171
11171
|
if (!FT(n)) throw Error(`[anywidget] Invalid model id: ${String(n)}`);
|
|
11172
|
-
let r = t.message, i = ("buffers" in r ? r.buffers : []).map(
|
|
11172
|
+
let r = t.message, i = ("buffers" in r ? r.buffers : []).map(Ze);
|
|
11173
11173
|
switch (r.method) {
|
|
11174
11174
|
case "open": {
|
|
11175
11175
|
let { state: t, buffer_paths: a = [] } = r;
|
|
@@ -11194,7 +11194,7 @@ async function yE(e, t) {
|
|
|
11194
11194
|
return;
|
|
11195
11195
|
}
|
|
11196
11196
|
let { state: r, buffers: i, bufferPaths: a } = hE(t);
|
|
11197
|
-
await
|
|
11197
|
+
await ft().sendModelValue({
|
|
11198
11198
|
modelId: n,
|
|
11199
11199
|
message: {
|
|
11200
11200
|
method: "update",
|
|
@@ -11209,13 +11209,13 @@ async function yE(e, t) {
|
|
|
11209
11209
|
c.debug(`[Model] sendCustomMessage suppressed for model=${n} (signal aborted)`);
|
|
11210
11210
|
return;
|
|
11211
11211
|
}
|
|
11212
|
-
await
|
|
11212
|
+
await ft().sendModelValue({
|
|
11213
11213
|
modelId: n,
|
|
11214
11214
|
message: {
|
|
11215
11215
|
method: "custom",
|
|
11216
11216
|
content: t
|
|
11217
11217
|
},
|
|
11218
|
-
buffers: r.map(
|
|
11218
|
+
buffers: r.map(Ye)
|
|
11219
11219
|
});
|
|
11220
11220
|
}
|
|
11221
11221
|
};
|
|
@@ -11246,7 +11246,7 @@ async function yE(e, t) {
|
|
|
11246
11246
|
default: yi(r);
|
|
11247
11247
|
}
|
|
11248
11248
|
}
|
|
11249
|
-
|
|
11249
|
+
ee(vE, "WIDGET_REGISTRY");
|
|
11250
11250
|
//#endregion
|
|
11251
11251
|
//#region src/components/ui/navigation.tsx
|
|
11252
11252
|
var bE = q.forwardRef((e, t) => {
|
|
@@ -11297,7 +11297,7 @@ var CE = jy, wE = g("group inline-flex rounded-md bg-background px-4 py-2 text-l
|
|
|
11297
11297
|
let o;
|
|
11298
11298
|
n[4] === i ? o = n[5] : (o = l(wE(), "group", i), n[4] = i, n[5] = o);
|
|
11299
11299
|
let s;
|
|
11300
|
-
n[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, J.jsx)(
|
|
11300
|
+
n[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, J.jsx)(O, {
|
|
11301
11301
|
className: "relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
11302
11302
|
"aria-hidden": "true"
|
|
11303
11303
|
}), n[6] = s) : s = n[6];
|
|
@@ -11613,7 +11613,7 @@ var WE = class e {
|
|
|
11613
11613
|
let n = this.entries.get(e);
|
|
11614
11614
|
n === void 0 ? this.entries.set(e, {
|
|
11615
11615
|
objectId: e,
|
|
11616
|
-
value:
|
|
11616
|
+
value: We(t, this),
|
|
11617
11617
|
elements: /* @__PURE__ */ new Set([t])
|
|
11618
11618
|
}) : n.elements.add(t);
|
|
11619
11619
|
}
|
|
@@ -11678,8 +11678,8 @@ var WE = class e {
|
|
|
11678
11678
|
detail: { objectId: t }
|
|
11679
11679
|
})));
|
|
11680
11680
|
}
|
|
11681
|
-
}, GE = WE.INSTANCE, KE = new
|
|
11682
|
-
await
|
|
11681
|
+
}, GE = WE.INSTANCE, KE = new I("function-call-result", async (e, t) => {
|
|
11682
|
+
await ft().sendFunctionRequest({
|
|
11683
11683
|
functionCallId: e,
|
|
11684
11684
|
...t
|
|
11685
11685
|
});
|
|
@@ -14090,7 +14090,7 @@ var $A = /* @__PURE__ */ zD(([{ increaseViewportBy: e, listBoundary: t, overscan
|
|
|
14090
14090
|
}), D = LD(), O = LD(), k = $(0), A = $(null), j = $({
|
|
14091
14091
|
column: 0,
|
|
14092
14092
|
row: 0
|
|
14093
|
-
}), M = LD(), N = LD(), P = $(!1), F = $(0), I = $(!0), L = $(!1),
|
|
14093
|
+
}), M = LD(), N = LD(), P = $(!1), F = $(0), I = $(!0), L = $(!1), R = $(!1);
|
|
14094
14094
|
vD(Q(m, ND(F), DD(([e, t]) => !!t)), () => {
|
|
14095
14095
|
yD(I, !1);
|
|
14096
14096
|
}), vD(Q(HD(m, I, E, T, F, L), DD(([e, t, n, r, , i]) => e && !t && n.height !== 0 && r.height !== 0 && !i)), ([, , , , e]) => {
|
|
@@ -14131,16 +14131,16 @@ var $A = /* @__PURE__ */ zD(([{ increaseViewportBy: e, listBoundary: t, overscan
|
|
|
14131
14131
|
let { bottom: i, top: a } = tj(e, r, t, n);
|
|
14132
14132
|
return [a, i];
|
|
14133
14133
|
}), ED(wO)), t);
|
|
14134
|
-
let
|
|
14135
|
-
SD(Q(l, ND(
|
|
14136
|
-
let
|
|
14134
|
+
let ee = $(!1);
|
|
14135
|
+
SD(Q(l, ND(ee), OD(([e, t]) => t || e !== 0)), ee);
|
|
14136
|
+
let z = RD(Q(HD(w, S), DD(([{ items: e }]) => e.length > 0), ND(ee), DD(([[e, t], n]) => {
|
|
14137
14137
|
let r = e.items[e.items.length - 1].index === t - 1;
|
|
14138
14138
|
return (n || e.bottom > 0 && e.itemHeight > 0 && e.offsetBottom === 0 && e.items.length === t) && r;
|
|
14139
|
-
}), OD(([[, e]]) => e - 1), ED())),
|
|
14139
|
+
}), OD(([[, e]]) => e - 1), ED())), te = RD(Q(UD(w), DD(({ items: e }) => e.length > 0 && e[0].index === 0), kD(0), ED())), ne = RD(Q(UD(w), ND(P), DD(([{ items: e }, t]) => e.length > 0 && !t), OD(([{ items: e }]) => ({
|
|
14140
14140
|
endIndex: e[e.length - 1].index,
|
|
14141
14141
|
startIndex: e[0].index
|
|
14142
14142
|
})), ED(CO), MD(0)));
|
|
14143
|
-
SD(
|
|
14143
|
+
SD(ne, p.scrollSeekRangeChanged), SD(Q(D, ND(T, E, S, j), OD(([e, t, n, r, i]) => {
|
|
14144
14144
|
let a = QO(e), { align: o, behavior: s, offset: c } = a, l = a.index;
|
|
14145
14145
|
l === "LAST" && (l = r - 1), l = KA(0, l, qA(r - 1, l));
|
|
14146
14146
|
let u = nj(t, i, n, l);
|
|
@@ -14180,14 +14180,14 @@ var $A = /* @__PURE__ */ zD(([{ increaseViewportBy: e, listBoundary: t, overscan
|
|
|
14180
14180
|
windowViewportRect: b,
|
|
14181
14181
|
...p,
|
|
14182
14182
|
gridState: w,
|
|
14183
|
-
horizontalDirection:
|
|
14183
|
+
horizontalDirection: R,
|
|
14184
14184
|
initialTopMostItemIndex: F,
|
|
14185
14185
|
totalListHeight: re,
|
|
14186
14186
|
...f,
|
|
14187
|
-
endReached:
|
|
14187
|
+
endReached: z,
|
|
14188
14188
|
propsReady: h,
|
|
14189
|
-
rangeChanged:
|
|
14190
|
-
startReached:
|
|
14189
|
+
rangeChanged: ne,
|
|
14190
|
+
startReached: te,
|
|
14191
14191
|
stateChanged: M,
|
|
14192
14192
|
stateRestoreInProgress: P,
|
|
14193
14193
|
...x
|
|
@@ -14500,20 +14500,20 @@ function bj(e) {
|
|
|
14500
14500
|
max: 3
|
|
14501
14501
|
});
|
|
14502
14502
|
}, t[26] = k.labelOf, t[27] = S, t[28] = L) : L = t[28];
|
|
14503
|
-
let
|
|
14504
|
-
t[29] === k ?
|
|
14505
|
-
let
|
|
14506
|
-
t[31] !== m || t[32] !== w ? (
|
|
14503
|
+
let R = L, ee = e["data-testid"], z;
|
|
14504
|
+
t[29] === k ? z = t[30] : (z = (e) => k.labelOf(e), t[29] = k, t[30] = z);
|
|
14505
|
+
let te = x ? R : void 0, ne;
|
|
14506
|
+
t[31] !== m || t[32] !== w ? (ne = l({ "w-full": w }, m), t[31] = m, t[32] = w, t[33] = ne) : ne = t[33];
|
|
14507
14507
|
let re = k.searchQuery, ie = k.setSearchQuery, ae = k.open, oe = k.setOpen, se;
|
|
14508
14508
|
t[34] === T ? se = t[35] : (se = vj(T), t[34] = T, t[35] = se);
|
|
14509
14509
|
let ce;
|
|
14510
|
-
t[36] !== C || t[37] !== h || t[38] !== k.open || t[39] !== k.searchQuery || t[40] !== k.setOpen || t[41] !== k.setSearchQuery || t[42] !== S || t[43] !==
|
|
14510
|
+
t[36] !== C || t[37] !== h || t[38] !== k.open || t[39] !== k.searchQuery || t[40] !== k.setOpen || t[41] !== k.setSearchQuery || t[42] !== S || t[43] !== ee || t[44] !== z || t[45] !== te || t[46] !== ne || t[47] !== se ? (ce = {
|
|
14511
14511
|
"data-slot": "select-root",
|
|
14512
|
-
"data-testid":
|
|
14513
|
-
displayValue:
|
|
14514
|
-
renderValue:
|
|
14512
|
+
"data-testid": ee,
|
|
14513
|
+
displayValue: z,
|
|
14514
|
+
renderValue: te,
|
|
14515
14515
|
placeholder: S,
|
|
14516
|
-
className:
|
|
14516
|
+
className: ne,
|
|
14517
14517
|
shouldFilter: !1,
|
|
14518
14518
|
search: re,
|
|
14519
14519
|
onSearchChange: ie,
|
|
@@ -14522,7 +14522,7 @@ function bj(e) {
|
|
|
14522
14522
|
emptyState: se,
|
|
14523
14523
|
disabled: C,
|
|
14524
14524
|
id: h
|
|
14525
|
-
}, t[36] = C, t[37] = h, t[38] = k.open, t[39] = k.searchQuery, t[40] = k.setOpen, t[41] = k.setSearchQuery, t[42] = S, t[43] =
|
|
14525
|
+
}, t[36] = C, t[37] = h, t[38] = k.open, t[39] = k.searchQuery, t[40] = k.setOpen, t[41] = k.setSearchQuery, t[42] = S, t[43] = ee, t[44] = z, t[45] = te, t[46] = ne, t[47] = se, t[48] = ce) : ce = t[48];
|
|
14526
14526
|
let le = ce, ue;
|
|
14527
14527
|
return t[49] !== le || t[50] !== j || t[51] !== a || t[52] !== I || t[53] !== r ? (ue = a ? /* @__PURE__ */ (0, J.jsx)(Hn, {
|
|
14528
14528
|
...le,
|
|
@@ -14553,7 +14553,7 @@ function xj(e) {
|
|
|
14553
14553
|
}
|
|
14554
14554
|
//#endregion
|
|
14555
14555
|
//#region src/plugins/core/BadPlugin.tsx
|
|
14556
|
-
var Sj =
|
|
14556
|
+
var Sj = me, Cj = ce, wj = ue, Tj = F, Ej = (e) => {
|
|
14557
14557
|
let t = (0, Y.c)(16), { error: n, badData: r, shadowRoot: i } = e;
|
|
14558
14558
|
if (n instanceof gd) {
|
|
14559
14559
|
let e;
|
|
@@ -14623,10 +14623,10 @@ function Oj(e) {
|
|
|
14623
14623
|
//#region src/plugins/core/registerReactComponent.tsx
|
|
14624
14624
|
var kj = 3, Aj = 150;
|
|
14625
14625
|
function jj({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
14626
|
-
let [s, l] = (0, q.useState)(n), [u, d] = (0, q.useState)(r()), { theme: f } = Hm(), [p, m] = (0, q.useState)(() => t.validator.safeParse(
|
|
14626
|
+
let [s, l] = (0, q.useState)(n), [u, d] = (0, q.useState)(r()), { theme: f } = Hm(), [p, m] = (0, q.useState)(() => t.validator.safeParse(Ge(e))), [h, g] = (0, q.useState)(0);
|
|
14627
14627
|
(0, q.useImperativeHandle)(i, () => ({
|
|
14628
14628
|
reset: () => {
|
|
14629
|
-
d(r()), m(t.validator.safeParse(
|
|
14629
|
+
d(r()), m(t.validator.safeParse(Ge(e))), g((e) => e + 1);
|
|
14630
14630
|
},
|
|
14631
14631
|
setChildren: (e) => {
|
|
14632
14632
|
l(e);
|
|
@@ -14635,7 +14635,7 @@ function jj({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
|
14635
14635
|
t.detail.element === e && d(t.detail.value);
|
|
14636
14636
|
}), (0, q.useEffect)(() => {
|
|
14637
14637
|
let n = new MutationObserver((n) => {
|
|
14638
|
-
n.some((e) => e.type === "attributes" && e.attributeName?.startsWith("data-")) && m(t.validator.safeParse(
|
|
14638
|
+
n.some((e) => e.type === "attributes" && e.attributeName?.startsWith("data-")) && m(t.validator.safeParse(Ge(e)));
|
|
14639
14639
|
});
|
|
14640
14640
|
return n.observe(e, { attributes: !0 }), () => {
|
|
14641
14641
|
n.disconnect();
|
|
@@ -14653,10 +14653,10 @@ function jj({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
|
14653
14653
|
let { input: t, output: a } = i;
|
|
14654
14654
|
n[r] = async (...n) => {
|
|
14655
14655
|
Zm(n.length <= 1, `Plugin functions only supports a single argument. Called ${r}`);
|
|
14656
|
-
let i = fa(), o =
|
|
14656
|
+
let i = fa(), o = mt.findElementThroughShadowDOMs(e)?.id, s = o ? mt.parse(o) : null;
|
|
14657
14657
|
if (s && !i) {
|
|
14658
|
-
let e = Im.get(
|
|
14659
|
-
if (
|
|
14658
|
+
let e = Im.get(re), t = e.cellRuntime[s], n = e.cellData[s];
|
|
14659
|
+
if (qe({
|
|
14660
14660
|
executionTime: t.runElapsedTimeMs ?? n.lastExecutionTime,
|
|
14661
14661
|
status: t.status,
|
|
14662
14662
|
errored: t.errored,
|
|
@@ -14703,7 +14703,7 @@ function jj({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
|
14703
14703
|
functions: v
|
|
14704
14704
|
}) })
|
|
14705
14705
|
})
|
|
14706
|
-
}) }) : Dj(p.error, nh.mapValues(e.dataset, (e) => typeof e == "string" ?
|
|
14706
|
+
}) }) : Dj(p.error, nh.mapValues(e.dataset, (e) => typeof e == "string" ? tt(e) : e), e.shadowRoot);
|
|
14707
14707
|
}
|
|
14708
14708
|
var Mj = q.forwardRef(jj), Nj = /* @__PURE__ */ new Map(), Pj = "__custom_marimo_element__";
|
|
14709
14709
|
function Fj(e) {
|
|
@@ -14738,7 +14738,7 @@ function Fj(e) {
|
|
|
14738
14738
|
return !1;
|
|
14739
14739
|
}
|
|
14740
14740
|
reset() {
|
|
14741
|
-
this.dispatchEvent(ya(
|
|
14741
|
+
this.dispatchEvent(ya(tt(this.dataset.initialValue), this)), this.rerender();
|
|
14742
14742
|
}
|
|
14743
14743
|
rerender() {
|
|
14744
14744
|
this.pluginRef.current?.reset();
|
|
@@ -14759,7 +14759,7 @@ function Fj(e) {
|
|
|
14759
14759
|
hostElement: this,
|
|
14760
14760
|
plugin: e,
|
|
14761
14761
|
ref: this.pluginRef,
|
|
14762
|
-
getInitialValue: () =>
|
|
14762
|
+
getInitialValue: () => We(this, WE.INSTANCE),
|
|
14763
14763
|
children: this.getChildren()
|
|
14764
14764
|
}) })
|
|
14765
14765
|
}));
|
|
@@ -14830,7 +14830,7 @@ function Bj() {
|
|
|
14830
14830
|
inputListener = a.NOOP;
|
|
14831
14831
|
init() {
|
|
14832
14832
|
if (this.initialized) return;
|
|
14833
|
-
let e =
|
|
14833
|
+
let e = Re.parseOrThrow(this);
|
|
14834
14834
|
this.inputListener = (n) => {
|
|
14835
14835
|
e !== null && n.detail.element === this.firstElementChild && (GE.has(e) || GE.registerInstance(e, t), GE.broadcastValueUpdate(t, e, n.detail.value));
|
|
14836
14836
|
};
|
|
@@ -14851,14 +14851,14 @@ function Bj() {
|
|
|
14851
14851
|
}
|
|
14852
14852
|
connectedCallback() {
|
|
14853
14853
|
if (this.init(), this.initialized) {
|
|
14854
|
-
let e =
|
|
14854
|
+
let e = Re.parseOrThrow(this), t = this.firstElementChild;
|
|
14855
14855
|
GE.registerInstance(e, t), document.addEventListener(va.TYPE, this.inputListener);
|
|
14856
14856
|
}
|
|
14857
14857
|
}
|
|
14858
14858
|
disconnectedCallback() {
|
|
14859
14859
|
if (this.initialized) {
|
|
14860
14860
|
document.removeEventListener(va.TYPE, this.inputListener);
|
|
14861
|
-
let e =
|
|
14861
|
+
let e = Re.parseOrThrow(this);
|
|
14862
14862
|
GE.removeInstance(e, this.firstElementChild);
|
|
14863
14863
|
}
|
|
14864
14864
|
}
|
|
@@ -14867,7 +14867,7 @@ function Bj() {
|
|
|
14867
14867
|
Lj(e) ? e.reset() : c.error("[marimo-ui-element] first child must have a reset method");
|
|
14868
14868
|
}
|
|
14869
14869
|
static get observedAttributes() {
|
|
14870
|
-
return [
|
|
14870
|
+
return [k];
|
|
14871
14871
|
}
|
|
14872
14872
|
attributeChangedCallback(e, t, n) {
|
|
14873
14873
|
if (this.initialized && e === "random-id" && t !== n) {
|
|
@@ -14881,16 +14881,16 @@ function Bj() {
|
|
|
14881
14881
|
}
|
|
14882
14882
|
function Vj(e) {
|
|
14883
14883
|
if (!e) return null;
|
|
14884
|
-
if (e.nodeName === zj) return
|
|
14884
|
+
if (e.nodeName === zj) return Re.parseOrThrow(e);
|
|
14885
14885
|
let t = e.parentElement;
|
|
14886
|
-
return t?.nodeName === zj ?
|
|
14886
|
+
return t?.nodeName === zj ? Re.parseOrThrow(t) : null;
|
|
14887
14887
|
}
|
|
14888
14888
|
function Hj(e) {
|
|
14889
14889
|
return e.tagName === zj;
|
|
14890
14890
|
}
|
|
14891
14891
|
//#endregion
|
|
14892
14892
|
//#region src/components/editor/renderers/vertical-layout/sidebar/state.ts
|
|
14893
|
-
var Uj =
|
|
14893
|
+
var Uj = j({ isOpen: !0 }, (e, t) => {
|
|
14894
14894
|
if (!t) return e;
|
|
14895
14895
|
switch (t.type) {
|
|
14896
14896
|
case "toggle": return {
|
|
@@ -15300,7 +15300,7 @@ var uM = (e) => {
|
|
|
15300
15300
|
e !== "indeterminate" && r(e);
|
|
15301
15301
|
}, t[0] = r, t[1] = a);
|
|
15302
15302
|
let o = a, s = (0, q.useId)(), c;
|
|
15303
|
-
t[2] !== i.disabled || t[3] !== s || t[4] !== o || t[5] !== n ? (c = /* @__PURE__ */ (0, J.jsx)(
|
|
15303
|
+
t[2] !== i.disabled || t[3] !== s || t[4] !== o || t[5] !== n ? (c = /* @__PURE__ */ (0, J.jsx)(ze, {
|
|
15304
15304
|
"data-testid": "marimo-plugin-checkbox",
|
|
15305
15305
|
checked: n,
|
|
15306
15306
|
onCheckedChange: o,
|
|
@@ -15370,7 +15370,7 @@ var uM = (e) => {
|
|
|
15370
15370
|
t[20] === Symbol.for("react.memo_cache_sentinel") ? (n = [], t[20] = n) : n = t[20], x = n;
|
|
15371
15371
|
}
|
|
15372
15372
|
let S = x, C = `cm *:outline-hidden border rounded overflow-hidden ${r}`, w = r === "dark" ? "dark" : "light", T = !e.disabled, E;
|
|
15373
|
-
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, J.jsx)(
|
|
15373
|
+
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, J.jsx)(Ke, {
|
|
15374
15374
|
className: C,
|
|
15375
15375
|
theme: w,
|
|
15376
15376
|
minHeight: i,
|
|
@@ -15397,7 +15397,7 @@ var uM = (e) => {
|
|
|
15397
15397
|
output: t
|
|
15398
15398
|
};
|
|
15399
15399
|
} };
|
|
15400
|
-
} }, gM = q.lazy(() => import("./chat-ui-
|
|
15400
|
+
} }, gM = q.lazy(() => import("./chat-ui-DM12Y9is.js").then((e) => ({ default: e.Chatbot }))), _M = U(B({
|
|
15401
15401
|
id: V(),
|
|
15402
15402
|
role: Pp([
|
|
15403
15403
|
"system",
|
|
@@ -16243,9 +16243,9 @@ function LN(e) {
|
|
|
16243
16243
|
//#endregion
|
|
16244
16244
|
//#region src/components/editor/cell/useAddCell.ts
|
|
16245
16245
|
function RN() {
|
|
16246
|
-
let e = (0, Y.c)(4), t = Nm(zm), n =
|
|
16246
|
+
let e = (0, Y.c)(4), t = Nm(zm), n = Be(), { createNewCell: r } = Ee(), i;
|
|
16247
16247
|
return e[0] !== t || e[1] !== r || e[2] !== n ? (i = (e) => {
|
|
16248
|
-
e.includes("alt") &&
|
|
16248
|
+
e.includes("alt") && et({
|
|
16249
16249
|
autoInstantiate: t,
|
|
16250
16250
|
createNewCell: r,
|
|
16251
16251
|
fromCellId: n
|
|
@@ -17516,7 +17516,7 @@ var BN = [zN({
|
|
|
17516
17516
|
borderBottom: "2px solid var(--cm-reactive-reference-border-color)"
|
|
17517
17517
|
},
|
|
17518
17518
|
".mo-cm-reactive-reference-hover": { cursor: "pointer" }
|
|
17519
|
-
})], HN = [
|
|
17519
|
+
})], HN = [yt(), qm.lineWrapping], UN = [ih(), qm.lineWrapping], WN = [ah(), qm.lineWrapping];
|
|
17520
17520
|
function GN(e) {
|
|
17521
17521
|
switch (e) {
|
|
17522
17522
|
case "sql": return UN;
|
|
@@ -17600,7 +17600,7 @@ var qN = (e) => {
|
|
|
17600
17600
|
}), t[3] = r, t[4] = a), a;
|
|
17601
17601
|
}, JN = (e) => {
|
|
17602
17602
|
let t = (0, Y.c)(9), n = e.hidden ? "Show code" : "Hide code", r = e.hidden ? "Show code" : "Hide code", i;
|
|
17603
|
-
t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, J.jsx)(
|
|
17603
|
+
t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, J.jsx)(st, {
|
|
17604
17604
|
size: 14,
|
|
17605
17605
|
strokeWidth: 1.5
|
|
17606
17606
|
}) : /* @__PURE__ */ (0, J.jsx)(Rr, {
|
|
@@ -17655,7 +17655,7 @@ var ZN = (e) => {
|
|
|
17655
17655
|
let t = (0, Y.c)(5), { text: n, tooltip: r } = e, i;
|
|
17656
17656
|
t[0] === r ? i = t[1] : (i = r && /* @__PURE__ */ (0, J.jsx)(Em, {
|
|
17657
17657
|
content: r,
|
|
17658
|
-
children: /* @__PURE__ */ (0, J.jsx)(
|
|
17658
|
+
children: /* @__PURE__ */ (0, J.jsx)(R, { className: "w-3 h-3 mt-0.5" })
|
|
17659
17659
|
}), t[0] = r, t[1] = i);
|
|
17660
17660
|
let a;
|
|
17661
17661
|
return t[2] !== i || t[3] !== n ? (a = /* @__PURE__ */ (0, J.jsxs)("h2", {
|
|
@@ -17697,13 +17697,13 @@ var ZN = (e) => {
|
|
|
17697
17697
|
let t = (0, Y.c)(5), { children: n, className: r } = e, i;
|
|
17698
17698
|
t[0] === r ? i = t[1] : (i = l("py-1", r), t[0] = r, t[1] = i);
|
|
17699
17699
|
let a;
|
|
17700
|
-
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, J.jsx)(
|
|
17700
|
+
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, J.jsx)(bt, {
|
|
17701
17701
|
className: i,
|
|
17702
17702
|
children: n
|
|
17703
17703
|
}), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
|
|
17704
17704
|
}, rP = (e) => {
|
|
17705
17705
|
let t = (0, Y.c)(3), { children: n, value: r } = e, i;
|
|
17706
|
-
return t[0] !== n || t[1] !== r ? (i = /* @__PURE__ */ (0, J.jsx)(
|
|
17706
|
+
return t[0] !== n || t[1] !== r ? (i = /* @__PURE__ */ (0, J.jsx)(pt, {
|
|
17707
17707
|
value: r,
|
|
17708
17708
|
className: "border-none",
|
|
17709
17709
|
children: n
|
|
@@ -17712,7 +17712,7 @@ var ZN = (e) => {
|
|
|
17712
17712
|
let t = (0, Y.c)(5), { children: n, wrapperClassName: r } = e, i;
|
|
17713
17713
|
t[0] === r ? i = t[1] : (i = l("pb-2 flex flex-col gap-2", r), t[0] = r, t[1] = i);
|
|
17714
17714
|
let a;
|
|
17715
|
-
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, J.jsx)(
|
|
17715
|
+
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, J.jsx)(Me, {
|
|
17716
17716
|
wrapperClassName: i,
|
|
17717
17717
|
children: n
|
|
17718
17718
|
}), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
|
|
@@ -17861,7 +17861,7 @@ var ZN = (e) => {
|
|
|
17861
17861
|
let { field: t } = e;
|
|
17862
17862
|
return /* @__PURE__ */ (0, J.jsxs)(Qw, {
|
|
17863
17863
|
className: l("flex flex-row items-center gap-2", i),
|
|
17864
|
-
children: [/* @__PURE__ */ (0, J.jsx)($w, { children: r }), /* @__PURE__ */ (0, J.jsx)(eT, { children: /* @__PURE__ */ (0, J.jsx)(
|
|
17864
|
+
children: [/* @__PURE__ */ (0, J.jsx)($w, { children: r }), /* @__PURE__ */ (0, J.jsx)(eT, { children: /* @__PURE__ */ (0, J.jsx)(ze, {
|
|
17865
17865
|
checked: t.value ?? a ?? !1,
|
|
17866
17866
|
onCheckedChange: t.onChange,
|
|
17867
17867
|
className: "w-4 h-4"
|
|
@@ -18026,7 +18026,7 @@ var ZN = (e) => {
|
|
|
18026
18026
|
open: o,
|
|
18027
18027
|
onOpenChange: s,
|
|
18028
18028
|
children: [/* @__PURE__ */ (0, J.jsx)(ki, { children: /* @__PURE__ */ (0, J.jsx)(Si, { placeholder: "Select an option" }) }), /* @__PURE__ */ (0, J.jsx)(Ei, { children: /* @__PURE__ */ (0, J.jsx)(Oi, { children: Ft.map((e) => {
|
|
18029
|
-
let t =
|
|
18029
|
+
let t = ct[e], n = e === "string" ? "categorical" : e;
|
|
18030
18030
|
return /* @__PURE__ */ (0, J.jsx)(Ci, {
|
|
18031
18031
|
value: e,
|
|
18032
18032
|
className: "flex flex-col items-start justify-center",
|
|
@@ -18149,7 +18149,7 @@ var ZN = (e) => {
|
|
|
18149
18149
|
};
|
|
18150
18150
|
function bP(e) {
|
|
18151
18151
|
if (e.name.trim() === "") return null;
|
|
18152
|
-
let t =
|
|
18152
|
+
let t = ct[e.type];
|
|
18153
18153
|
return /* @__PURE__ */ (0, J.jsx)(Ci, {
|
|
18154
18154
|
value: e.name,
|
|
18155
18155
|
children: /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
@@ -18596,12 +18596,12 @@ var GP = () => {
|
|
|
18596
18596
|
p,
|
|
18597
18597
|
/* @__PURE__ */ (0, J.jsxs)("p", {
|
|
18598
18598
|
className: "text-xs",
|
|
18599
|
-
children: [/* @__PURE__ */ (0, J.jsx)(
|
|
18599
|
+
children: [/* @__PURE__ */ (0, J.jsx)(R, { className: "w-2.5 h-2.5 inline mb-1 mr-1" }), "If you are using color range, color scheme will be ignored."]
|
|
18600
18600
|
})
|
|
18601
18601
|
] })]
|
|
18602
18602
|
}), e[12] = m) : m = e[12];
|
|
18603
18603
|
let h;
|
|
18604
|
-
return e[13] === a ? h = e[14] : (h = /* @__PURE__ */ (0, J.jsxs)(
|
|
18604
|
+
return e[13] === a ? h = e[14] : (h = /* @__PURE__ */ (0, J.jsxs)(Ue, {
|
|
18605
18605
|
type: "multiple",
|
|
18606
18606
|
children: [
|
|
18607
18607
|
a,
|
|
@@ -18639,7 +18639,7 @@ var GP = () => {
|
|
|
18639
18639
|
saveFunction: t
|
|
18640
18640
|
}), e[6] = i, e[7] = t, e[8] = l) : l = e[8];
|
|
18641
18641
|
let u;
|
|
18642
|
-
return e[9] === l ? u = e[10] : (u = /* @__PURE__ */ (0, J.jsxs)(
|
|
18642
|
+
return e[9] === l ? u = e[10] : (u = /* @__PURE__ */ (0, J.jsxs)(Ue, {
|
|
18643
18643
|
type: "multiple",
|
|
18644
18644
|
children: [o, /* @__PURE__ */ (0, J.jsxs)(rP, {
|
|
18645
18645
|
value: "tooltips",
|
|
@@ -18889,7 +18889,7 @@ var sF = "marimo:charts:v2", cF = B({
|
|
|
18889
18889
|
tabName: V().transform((e) => e),
|
|
18890
18890
|
chartType: V().transform((e) => e),
|
|
18891
18891
|
config: aF
|
|
18892
|
-
}), lF = U(vl([V().transform((e) => e), U(cF)])), uF = new
|
|
18892
|
+
}), lF = U(vl([V().transform((e) => e), U(cF)])), uF = new Ve(sF, lF, () => []), dF = {
|
|
18893
18893
|
getItem: (e) => {
|
|
18894
18894
|
try {
|
|
18895
18895
|
let t = uF.get(e);
|
|
@@ -18904,7 +18904,7 @@ var sF = "marimo:charts:v2", cF = B({
|
|
|
18904
18904
|
removeItem: (e) => {
|
|
18905
18905
|
uF.remove(e);
|
|
18906
18906
|
}
|
|
18907
|
-
}, fF =
|
|
18907
|
+
}, fF = de(sF, /* @__PURE__ */ new Map(), dF);
|
|
18908
18908
|
function pF(e, t) {
|
|
18909
18909
|
let n = Mi(t);
|
|
18910
18910
|
return e === 0 ? `${n} Chart` : `${n} Chart ${e + 1}`;
|
|
@@ -19149,7 +19149,7 @@ var SF = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
|
|
|
19149
19149
|
t[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, J.jsxs)(nn, {
|
|
19150
19150
|
value: "data",
|
|
19151
19151
|
className: "w-1/2 h-6",
|
|
19152
|
-
children: [/* @__PURE__ */ (0, J.jsx)(
|
|
19152
|
+
children: [/* @__PURE__ */ (0, J.jsx)(Ae, { className: "w-4 h-4 mr-2" }), "Data"]
|
|
19153
19153
|
}), t[10] = f) : f = t[10];
|
|
19154
19154
|
let p;
|
|
19155
19155
|
t[11] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, J.jsxs)(Sr, {
|
|
@@ -19157,7 +19157,7 @@ var SF = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
|
|
|
19157
19157
|
children: [f, /* @__PURE__ */ (0, J.jsxs)(nn, {
|
|
19158
19158
|
value: "style",
|
|
19159
19159
|
className: "w-1/2 h-6",
|
|
19160
|
-
children: [/* @__PURE__ */ (0, J.jsx)(
|
|
19160
|
+
children: [/* @__PURE__ */ (0, J.jsx)(D, { className: "w-4 h-4 mr-2" }), "Style"]
|
|
19161
19161
|
})]
|
|
19162
19162
|
}), t[11] = p) : p = t[11];
|
|
19163
19163
|
let m;
|
|
@@ -19212,7 +19212,7 @@ function DF(e) {
|
|
|
19212
19212
|
//#endregion
|
|
19213
19213
|
//#region src/components/data-table/hooks/use-panel-ownership.ts
|
|
19214
19214
|
function OF(e, t) {
|
|
19215
|
-
let n = (0, Y.c)(16), r = Nm(nD), { focusCell: i } =
|
|
19215
|
+
let n = (0, Y.c)(16), r = Nm(nD), { focusCell: i } = dt(), a = Be(), [o, s] = Fm(eD), [l, u] = Fm($E), [d, f] = Fm(tD), p = kF(e, t);
|
|
19216
19216
|
!t && r && (c.error("CellId is not found, defaulting to fixed mode"), r = !1);
|
|
19217
19217
|
let m = (e) => l === p && d && e === o, h = a === t, g = l && AF(l, t);
|
|
19218
19218
|
r && h && l !== p && !g && u(p);
|
|
@@ -19269,7 +19269,7 @@ function NF({ stats: e, dataType: t, locale: n }) {
|
|
|
19269
19269
|
children: [
|
|
19270
19270
|
/* @__PURE__ */ (0, J.jsx)("span", {
|
|
19271
19271
|
className: "text-xs min-w-[60px] capitalize",
|
|
19272
|
-
children:
|
|
19272
|
+
children: He(e, t)
|
|
19273
19273
|
}),
|
|
19274
19274
|
/* @__PURE__ */ (0, J.jsx)("span", {
|
|
19275
19275
|
className: "text-xs font-bold text-muted-foreground tracking-wide",
|
|
@@ -19285,7 +19285,7 @@ function NF({ stats: e, dataType: t, locale: n }) {
|
|
|
19285
19285
|
}
|
|
19286
19286
|
var PF = /* @__PURE__ */ (0, J.jsx)("div", {
|
|
19287
19287
|
className: "flex justify-center",
|
|
19288
|
-
children: /* @__PURE__ */ (0, J.jsx)(
|
|
19288
|
+
children: /* @__PURE__ */ (0, J.jsx)(nt, { className: "size-4" })
|
|
19289
19289
|
});
|
|
19290
19290
|
function FF(e, t) {
|
|
19291
19291
|
return /* @__PURE__ */ (0, J.jsx)(q.Suspense, {
|
|
@@ -19311,9 +19311,9 @@ function FF(e, t) {
|
|
|
19311
19311
|
});
|
|
19312
19312
|
}
|
|
19313
19313
|
var IF = (e) => {
|
|
19314
|
-
let t = (0, Y.c)(10), { chartCode: n } = e, r = Nm(zm), i =
|
|
19314
|
+
let t = (0, Y.c)(10), { chartCode: n } = e, r = Nm(zm), i = Be(), { createNewCell: a } = Ee(), o;
|
|
19315
19315
|
t[0] !== r || t[1] !== a || t[2] !== i ? (o = (e) => {
|
|
19316
|
-
e.includes("alt") &&
|
|
19316
|
+
e.includes("alt") && et({
|
|
19317
19317
|
autoInstantiate: r,
|
|
19318
19318
|
createNewCell: a,
|
|
19319
19319
|
fromCellId: i
|
|
@@ -19373,7 +19373,7 @@ function LF({ previewColumn: e, fieldTypes: t, totalRows: n, totalColumns: r, ta
|
|
|
19373
19373
|
className: "gap-1",
|
|
19374
19374
|
disabled: f === 0,
|
|
19375
19375
|
onClick: () => a.toggleAllColumnsVisible(!0),
|
|
19376
|
-
children: [/* @__PURE__ */ (0, J.jsx)(
|
|
19376
|
+
children: [/* @__PURE__ */ (0, J.jsx)(st, { className: "w-3 h-3" }), "Show all"]
|
|
19377
19377
|
})
|
|
19378
19378
|
}), /* @__PURE__ */ (0, J.jsx)(Em, {
|
|
19379
19379
|
content: "Hide all columns",
|
|
@@ -19449,7 +19449,7 @@ function RF({ columnName: e, column: t, dataType: n, externalType: r, previewCol
|
|
|
19449
19449
|
onClick: (e) => {
|
|
19450
19450
|
e.preventDefault(), e.stopPropagation(), t.toggleVisibility(!t.getIsVisible());
|
|
19451
19451
|
},
|
|
19452
|
-
children: t.getIsVisible() ? /* @__PURE__ */ (0, J.jsx)(
|
|
19452
|
+
children: t.getIsVisible() ? /* @__PURE__ */ (0, J.jsx)(st, {
|
|
19453
19453
|
className: "h-3 w-3",
|
|
19454
19454
|
strokeWidth: 2.5
|
|
19455
19455
|
}) : /* @__PURE__ */ (0, J.jsx)(Rr, {
|
|
@@ -19542,7 +19542,7 @@ var zF = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
19542
19542
|
title: "Select/unselect the current row",
|
|
19543
19543
|
children: [/* @__PURE__ */ (0, J.jsxs)("div", {
|
|
19544
19544
|
className: "flex items-center gap-1.5",
|
|
19545
|
-
children: [/* @__PURE__ */ (0, J.jsx)(
|
|
19545
|
+
children: [/* @__PURE__ */ (0, J.jsx)(ze, {
|
|
19546
19546
|
id: d,
|
|
19547
19547
|
checked: o,
|
|
19548
19548
|
onCheckedChange: v,
|
|
@@ -19618,12 +19618,12 @@ var zF = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
19618
19618
|
});
|
|
19619
19619
|
if (n === 0) return /* @__PURE__ */ (0, J.jsx)(HF, {
|
|
19620
19620
|
kind: "info",
|
|
19621
|
-
Icon:
|
|
19621
|
+
Icon: R,
|
|
19622
19622
|
message: "No rows selected"
|
|
19623
19623
|
});
|
|
19624
19624
|
if (!m) return /* @__PURE__ */ (0, J.jsx)(sr, {
|
|
19625
19625
|
milliseconds: 200,
|
|
19626
|
-
children: /* @__PURE__ */ (0, J.jsx)(
|
|
19626
|
+
children: /* @__PURE__ */ (0, J.jsx)(nt, {
|
|
19627
19627
|
size: "medium",
|
|
19628
19628
|
centered: !0
|
|
19629
19629
|
})
|
|
@@ -19944,8 +19944,8 @@ function nI(e, t) {
|
|
|
19944
19944
|
var rI = (e) => {
|
|
19945
19945
|
let t = (0, Y.c)(13), { isLazy: n, children: r, preload: i, host: a } = e, o, s, c, l;
|
|
19946
19946
|
if (t[0] !== a || t[1] !== n || t[2] !== i) {
|
|
19947
|
-
let e = a.closest(`[${
|
|
19948
|
-
l = e ?
|
|
19947
|
+
let e = a.closest(`[${ve}]`);
|
|
19948
|
+
l = e ? Re.parse(e) : null, o = a.closest(`[${k}]`)?.getAttribute(k), s = q.useState, c = n && !i && !tI(l, o), t[0] = a, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = l;
|
|
19949
19949
|
} else o = t[3], s = t[4], c = t[5], l = t[6];
|
|
19950
19950
|
let [u, d] = s(c);
|
|
19951
19951
|
if (u) {
|
|
@@ -19954,7 +19954,7 @@ var rI = (e) => {
|
|
|
19954
19954
|
nI(l, o), d(!1);
|
|
19955
19955
|
}, t[7] = o, t[8] = l, t[9] = e) : e = t[9];
|
|
19956
19956
|
let n;
|
|
19957
|
-
t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, J.jsx)(
|
|
19957
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, J.jsx)(_e, { className: "mr-2 h-4 w-4" }), t[10] = n) : n = t[10];
|
|
19958
19958
|
let r;
|
|
19959
19959
|
return t[11] === e ? r = t[12] : (r = /* @__PURE__ */ (0, J.jsx)("div", {
|
|
19960
19960
|
className: "flex h-20 items-center justify-center",
|
|
@@ -19969,7 +19969,7 @@ var rI = (e) => {
|
|
|
19969
19969
|
return r;
|
|
19970
19970
|
}, iI = (0, q.memo)((e) => {
|
|
19971
19971
|
let t = (0, Y.c)(119), n;
|
|
19972
|
-
t[0] === e.host ? n = t[1] : (n =
|
|
19972
|
+
t[0] === e.host ? n = t[1] : (n = vt(e.host), t[0] = e.host, t[1] = n);
|
|
19973
19973
|
let r = n, i = e.search, a = e.setValue, o;
|
|
19974
19974
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = [], t[2] = o) : o = t[2];
|
|
19975
19975
|
let [s, l] = (0, q.useState)(o), u;
|
|
@@ -20045,18 +20045,18 @@ var rI = (e) => {
|
|
|
20045
20045
|
], t[35] = g, t[36] = d.pageIndex, t[37] = d.pageSize, t[38] = e.cellHoverTexts, t[39] = e.cellStyles, t[40] = e.data, t[41] = e.lazy, t[42] = e.totalRows, t[43] = i, t[44] = p, t[45] = s, t[46] = E, t[47] = D) : D = t[47];
|
|
20046
20046
|
let { data: O, error: k, isPending: A, isFetching: j } = lh(T, D), M = Nm(Yr), N;
|
|
20047
20047
|
t[48] !== M || t[49] !== e ? (N = async () => !M || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, t[48] = M, t[49] = e, t[50] = N) : N = t[50];
|
|
20048
|
-
let P = e.showDownload, F = e.get_size_bytes, I = e.lazy, L = e.totalRows,
|
|
20049
|
-
t[51] !== M || t[52] !== e.get_size_bytes || t[53] !== e.lazy || t[54] !== e.showDownload || t[55] !== e.totalRows || t[56] !== p || t[57] !==
|
|
20048
|
+
let P = e.showDownload, F = e.get_size_bytes, I = e.lazy, L = e.totalRows, R = _h(g), ee = _h(s), z;
|
|
20049
|
+
t[51] !== M || t[52] !== e.get_size_bytes || t[53] !== e.lazy || t[54] !== e.showDownload || t[55] !== e.totalRows || t[56] !== p || t[57] !== R || t[58] !== ee ? (z = [
|
|
20050
20050
|
M,
|
|
20051
20051
|
P,
|
|
20052
20052
|
F,
|
|
20053
20053
|
I,
|
|
20054
20054
|
L,
|
|
20055
20055
|
p,
|
|
20056
|
-
|
|
20057
|
-
|
|
20058
|
-
], t[51] = M, t[52] = e.get_size_bytes, t[53] = e.lazy, t[54] = e.showDownload, t[55] = e.totalRows, t[56] = p, t[57] =
|
|
20059
|
-
let { data:
|
|
20056
|
+
R,
|
|
20057
|
+
ee
|
|
20058
|
+
], t[51] = M, t[52] = e.get_size_bytes, t[53] = e.lazy, t[54] = e.showDownload, t[55] = e.totalRows, t[56] = p, t[57] = R, t[58] = ee, t[59] = z) : z = t[59];
|
|
20059
|
+
let { data: te, isPending: ne } = lh(N, z), re = te ?? null, ie = !!M && e.showDownload && ne, ae;
|
|
20060
20060
|
t[60] !== g || t[61] !== i || t[62] !== p || t[63] !== s ? (ae = async (e) => {
|
|
20061
20061
|
let t = s.length > 0 ? s.map(lI) : void 0, n = await i({
|
|
20062
20062
|
page_number: e,
|
|
@@ -20165,7 +20165,7 @@ var rI = (e) => {
|
|
|
20165
20165
|
});
|
|
20166
20166
|
iI.displayName = "LoadingDataTableComponent";
|
|
20167
20167
|
var aI = (e) => {
|
|
20168
|
-
let t = (0, Y.c)(142), { label: n, data: r, rawData: i, totalRows: o, sizeBytes: s, sizeBytesIsLoading: c, maxColumns: l, pagination: u, selection: d, value: f, showFilters: p, showDownload: m, showPageSizeSelector: h, showColumnExplorer: g, showRowExplorer: _, showChartBuilder: v, showDataTypes: y, rowHeaders: b, fieldTypes: x, paginationState: S, setPaginationState: C, download_as: w, columnSummaries: T, className: E, setValue: D, sorting: O, setSorting: k, showSearch: A, searchQuery: j, setSearchQuery: M, filters: N, setFilters: P, reloading: F, freezeColumnsLeft: I, freezeColumnsRight: L, hiddenColumns:
|
|
20168
|
+
let t = (0, Y.c)(142), { label: n, data: r, rawData: i, totalRows: o, sizeBytes: s, sizeBytesIsLoading: c, maxColumns: l, pagination: u, selection: d, value: f, showFilters: p, showDownload: m, showPageSizeSelector: h, showColumnExplorer: g, showRowExplorer: _, showChartBuilder: v, showDataTypes: y, rowHeaders: b, fieldTypes: x, paginationState: S, setPaginationState: C, download_as: w, columnSummaries: T, className: E, setValue: D, sorting: O, setSorting: k, showSearch: A, searchQuery: j, setSearchQuery: M, filters: N, setFilters: P, reloading: F, freezeColumnsLeft: I, freezeColumnsRight: L, hiddenColumns: R, textJustifyColumns: ee, wrappedColumns: z, columnWidths: te, headerTooltip: ne, totalColumns: re, get_row_ids: ie, cellStyles: ae, hoverTemplate: oe, cellHoverTexts: se, toggleDisplayHeader: ce, isChartBuilderOpen: le, calculate_top_k_rows: ue, preview_column: de, getRow: fe, cellId: pe, maxHeight: me } = e, he = d, ge = y, _e = (0, q.useId)(), { locale: ve } = fi(), [ye, be] = (0, q.useState)(0), { isPanelOpen: xe, isAnyPanelOpen: Se, togglePanel: Ce, panelType: we, setPanelType: Te } = OF(_e, pe), Ee;
|
|
20169
20169
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (Ee = fa(), t[0] = Ee) : Ee = t[0];
|
|
20170
20170
|
let De = Ee, Oe;
|
|
20171
20171
|
bb0: {
|
|
@@ -20217,10 +20217,10 @@ var aI = (e) => {
|
|
|
20217
20217
|
}
|
|
20218
20218
|
t[17] = r, t[18] = Fe, t[19] = Ie;
|
|
20219
20219
|
} else Ie = t[19];
|
|
20220
|
-
let Le = Ie, Re = _h(b), ze = _h(
|
|
20220
|
+
let Le = Ie, Re = _h(b), ze = _h(ee), Be = _h(z), Ve = _h(te), He = _h(ke), Ue = _h(Le), We = Fe.length;
|
|
20221
20221
|
x || (ge = !1), De && (he = null);
|
|
20222
20222
|
let Ge;
|
|
20223
|
-
t[20] !== ue || t[21] !== Ue || t[22] !==
|
|
20223
|
+
t[20] !== ue || t[21] !== Ue || t[22] !== ne || t[23] !== He || t[24] !== Fe || t[25] !== Ve || t[26] !== Re || t[27] !== ze || t[28] !== Be || t[29] !== he || t[30] !== ge ? (Ge = jr({
|
|
20224
20224
|
rowHeaders: Re,
|
|
20225
20225
|
selection: he,
|
|
20226
20226
|
chartSpecModel: He,
|
|
@@ -20228,11 +20228,11 @@ var aI = (e) => {
|
|
|
20228
20228
|
textJustifyColumns: ze,
|
|
20229
20229
|
wrappedColumns: Be,
|
|
20230
20230
|
columnWidths: Ve,
|
|
20231
|
-
headerTooltip:
|
|
20231
|
+
headerTooltip: ne,
|
|
20232
20232
|
showDataTypes: ge,
|
|
20233
20233
|
calculateTopKRows: ue,
|
|
20234
20234
|
fractionDigitsByColumn: Ue
|
|
20235
|
-
}), t[20] = ue, t[21] = Ue, t[22] =
|
|
20235
|
+
}), t[20] = ue, t[21] = Ue, t[22] = ne, t[23] = He, t[24] = Fe, t[25] = Ve, t[26] = Re, t[27] = ze, t[28] = Be, t[29] = he, t[30] = ge, t[31] = Ge) : Ge = t[31];
|
|
20236
20236
|
let Ke = Ge, qe;
|
|
20237
20237
|
t[32] === f ? qe = t[33] : (qe = Object.fromEntries((f || []).map(fI)), t[32] = f, t[33] = qe);
|
|
20238
20238
|
let Je = qe, Ye;
|
|
@@ -20340,7 +20340,7 @@ var aI = (e) => {
|
|
|
20340
20340
|
let ht = m ? w : void 0, gt = v && !ct, _t = (_ || it) && !ot && !ct, vt;
|
|
20341
20341
|
t[81] === be ? vt = t[82] : (vt = (e) => be(e), t[81] = be, t[82] = vt);
|
|
20342
20342
|
let yt;
|
|
20343
|
-
t[83] !== ue || t[84] !== se || t[85] !== et || t[86] !== ae || t[87] !== E || t[88] !== Ke || t[89] !== r || t[90] !== N || t[91] !== I || t[92] !== L || t[93] !== ie || t[94] !== nt || t[95] !== Xe || t[96] !==
|
|
20343
|
+
t[83] !== ue || t[84] !== se || t[85] !== et || t[86] !== ae || t[87] !== E || t[88] !== Ke || t[89] !== r || t[90] !== N || t[91] !== I || t[92] !== L || t[93] !== ie || t[94] !== nt || t[95] !== Xe || t[96] !== R || t[97] !== oe || t[98] !== Se || t[99] !== le || t[100] !== xe || t[101] !== me || t[102] !== u || t[103] !== S || t[104] !== i || t[105] !== F || t[106] !== ut || t[107] !== Je || t[108] !== j || t[109] !== he || t[110] !== P || t[111] !== C || t[112] !== M || t[113] !== k || t[114] !== p || t[115] !== h || t[116] !== A || t[117] !== s || t[118] !== c || t[119] !== O || t[120] !== ht || t[121] !== gt || t[122] !== _t || t[123] !== vt || t[124] !== ce || t[125] !== Ce || t[126] !== re || t[127] !== o || t[128] !== ye ? (yt = /* @__PURE__ */ (0, J.jsx)(hr, {
|
|
20344
20344
|
data: r,
|
|
20345
20345
|
rawData: i,
|
|
20346
20346
|
columns: Ke,
|
|
@@ -20375,7 +20375,7 @@ var aI = (e) => {
|
|
|
20375
20375
|
onRowSelectionChange: Xe,
|
|
20376
20376
|
freezeColumnsLeft: I,
|
|
20377
20377
|
freezeColumnsRight: L,
|
|
20378
|
-
hiddenColumns:
|
|
20378
|
+
hiddenColumns: R,
|
|
20379
20379
|
onCellSelectionChange: nt,
|
|
20380
20380
|
getRowIds: ie,
|
|
20381
20381
|
toggleDisplayHeader: ce,
|
|
@@ -20389,7 +20389,7 @@ var aI = (e) => {
|
|
|
20389
20389
|
viewedRowIdx: ye,
|
|
20390
20390
|
onViewedRowChange: vt,
|
|
20391
20391
|
renderTableExplorerPanel: ut
|
|
20392
|
-
}), t[83] = ue, t[84] = se, t[85] = et, t[86] = ae, t[87] = E, t[88] = Ke, t[89] = r, t[90] = N, t[91] = I, t[92] = L, t[93] = ie, t[94] = nt, t[95] = Xe, t[96] =
|
|
20392
|
+
}), t[83] = ue, t[84] = se, t[85] = et, t[86] = ae, t[87] = E, t[88] = Ke, t[89] = r, t[90] = N, t[91] = I, t[92] = L, t[93] = ie, t[94] = nt, t[95] = Xe, t[96] = R, t[97] = oe, t[98] = Se, t[99] = le, t[100] = xe, t[101] = me, t[102] = u, t[103] = S, t[104] = i, t[105] = F, t[106] = ut, t[107] = Je, t[108] = j, t[109] = he, t[110] = P, t[111] = C, t[112] = M, t[113] = k, t[114] = p, t[115] = h, t[116] = A, t[117] = s, t[118] = c, t[119] = O, t[120] = ht, t[121] = gt, t[122] = _t, t[123] = vt, t[124] = ce, t[125] = Ce, t[126] = re, t[127] = o, t[128] = ye, t[129] = yt) : yt = t[129];
|
|
20393
20393
|
let bt;
|
|
20394
20394
|
t[130] !== n || t[131] !== yt ? (bt = /* @__PURE__ */ (0, J.jsx)(uM, {
|
|
20395
20395
|
label: n,
|
|
@@ -20753,7 +20753,7 @@ var wI = class {
|
|
|
20753
20753
|
too_many_values: !1
|
|
20754
20754
|
})), MI = (e) => {
|
|
20755
20755
|
let t = (0, Y.c)(4), { type: n } = e, r;
|
|
20756
|
-
t[0] === n ? r = t[1] : (r = () => n.startsWith("int") || n.startsWith("float") || n.startsWith("uint") || n.startsWith("number") || n.startsWith("complex") ? /* @__PURE__ */ (0, J.jsx)(Q_, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, J.jsx)(ev, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, J.jsx)(ri, { size: 14 }) : n.startsWith("bool") ? /* @__PURE__ */ (0, J.jsx)(oi, { size: 14 }) : /* @__PURE__ */ (0, J.jsx)(
|
|
20756
|
+
t[0] === n ? r = t[1] : (r = () => n.startsWith("int") || n.startsWith("float") || n.startsWith("uint") || n.startsWith("number") || n.startsWith("complex") ? /* @__PURE__ */ (0, J.jsx)(Q_, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, J.jsx)(ev, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, J.jsx)(ri, { size: 14 }) : n.startsWith("bool") ? /* @__PURE__ */ (0, J.jsx)(oi, { size: 14 }) : /* @__PURE__ */ (0, J.jsx)(T, { size: 14 }), t[0] = n, t[1] = r);
|
|
20757
20757
|
let i = r, a;
|
|
20758
20758
|
return t[2] === i ? a = t[3] : (a = /* @__PURE__ */ (0, J.jsx)("div", {
|
|
20759
20759
|
className: "border p-px border-border bg-(--slate-2) flex items-center justify-center rounded",
|
|
@@ -21231,7 +21231,7 @@ var KI = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
21231
21231
|
"to automatically apply transformations."
|
|
21232
21232
|
] })]
|
|
21233
21233
|
}),
|
|
21234
|
-
children: /* @__PURE__ */ (0, J.jsx)(
|
|
21234
|
+
children: /* @__PURE__ */ (0, J.jsx)(R, { className: "w-3 h-3 text-muted-foreground hover:text-foreground cursor-help" })
|
|
21235
21235
|
})]
|
|
21236
21236
|
})
|
|
21237
21237
|
]
|
|
@@ -21250,7 +21250,7 @@ var KI = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
21250
21250
|
children: [/* @__PURE__ */ (0, J.jsx)("div", {
|
|
21251
21251
|
className: "grow text-ellipsis",
|
|
21252
21252
|
children: xi.startCase(e.type)
|
|
21253
|
-
}), /* @__PURE__ */ (0, J.jsx)(
|
|
21253
|
+
}), /* @__PURE__ */ (0, J.jsx)(se, {
|
|
21254
21254
|
className: "w-3 h-3 hover-action text-muted-foreground hover:text-destructive",
|
|
21255
21255
|
onClick: (e) => {
|
|
21256
21256
|
o(t), e.stopPropagation();
|
|
@@ -21326,7 +21326,7 @@ var KI = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
21326
21326
|
}), t[9] = i, t[10] = l, t[11] = u) : u = t[11], u;
|
|
21327
21327
|
}, YI = {
|
|
21328
21328
|
aggregate: Dt,
|
|
21329
|
-
column_conversion:
|
|
21329
|
+
column_conversion: De,
|
|
21330
21330
|
filter_rows: Or,
|
|
21331
21331
|
group_by: mv,
|
|
21332
21332
|
rename_column: ka,
|
|
@@ -21337,7 +21337,7 @@ var KI = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
21337
21337
|
explode_columns: $_,
|
|
21338
21338
|
expand_dict: av,
|
|
21339
21339
|
unique: rv,
|
|
21340
|
-
pivot:
|
|
21340
|
+
pivot: _e
|
|
21341
21341
|
};
|
|
21342
21342
|
function XI(e) {
|
|
21343
21343
|
e.stopPropagation(), window.open("https://github.com/marimo-team/marimo/issues/new?title=New%20dataframe%20transform:&labels=enhancement&template=feature_request.yaml", "_blank");
|
|
@@ -21415,71 +21415,71 @@ var ZI = Zj("marimo-dataframe").withData(B({
|
|
|
21415
21415
|
let e = F.current;
|
|
21416
21416
|
s?.transforms.length !== e.transforms.length && c(e);
|
|
21417
21417
|
}, t[10] = c, t[11] = s?.transforms.length, t[12] = L) : L = t[12];
|
|
21418
|
-
let
|
|
21419
|
-
t[13] !== v || t[14] !== c || t[15] !==
|
|
21418
|
+
let R = s?.transforms.length, ee;
|
|
21419
|
+
t[13] !== v || t[14] !== c || t[15] !== R ? (ee = [
|
|
21420
21420
|
v,
|
|
21421
|
-
|
|
21421
|
+
R,
|
|
21422
21422
|
F,
|
|
21423
21423
|
c
|
|
21424
|
-
], t[13] = v, t[14] = c, t[15] =
|
|
21425
|
-
let
|
|
21426
|
-
t[17] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
21424
|
+
], t[13] = v, t[14] = c, t[15] = R, t[16] = ee) : ee = t[16], (0, q.useEffect)(L, ee);
|
|
21425
|
+
let z;
|
|
21426
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ (0, J.jsxs)(nn, {
|
|
21427
21427
|
value: "transform",
|
|
21428
21428
|
className: "text-xs py-1",
|
|
21429
21429
|
children: [/* @__PURE__ */ (0, J.jsx)(Dt, { className: "w-3 h-3 mr-2" }), "Transform"]
|
|
21430
|
-
}), t[17] =
|
|
21431
|
-
let
|
|
21432
|
-
t[18] === D ?
|
|
21430
|
+
}), t[17] = z) : z = t[17];
|
|
21431
|
+
let te;
|
|
21432
|
+
t[18] === D ? te = t[19] : (te = D && /* @__PURE__ */ (0, J.jsxs)(nn, {
|
|
21433
21433
|
value: "python-code",
|
|
21434
21434
|
className: "text-xs py-1",
|
|
21435
21435
|
children: [/* @__PURE__ */ (0, J.jsx)(tv, { className: "w-3 h-3 mr-2" }), "Python Code"]
|
|
21436
|
-
}), t[18] = D, t[19] =
|
|
21437
|
-
let
|
|
21438
|
-
t[20] === O ?
|
|
21436
|
+
}), t[18] = D, t[19] = te);
|
|
21437
|
+
let ne;
|
|
21438
|
+
t[20] === O ? ne = t[21] : (ne = O && /* @__PURE__ */ (0, J.jsxs)(nn, {
|
|
21439
21439
|
value: "sql-code",
|
|
21440
21440
|
className: "text-xs py-1",
|
|
21441
|
-
children: [/* @__PURE__ */ (0, J.jsx)(
|
|
21442
|
-
}), t[20] = O, t[21] =
|
|
21441
|
+
children: [/* @__PURE__ */ (0, J.jsx)(Ae, { className: "w-3 h-3 mr-2" }), "SQL Code"]
|
|
21442
|
+
}), t[20] = O, t[21] = ne);
|
|
21443
21443
|
let re;
|
|
21444
21444
|
t[22] === Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ (0, J.jsx)("div", { className: "grow" }), t[22] = re) : re = t[22];
|
|
21445
21445
|
let ie;
|
|
21446
|
-
t[23] !==
|
|
21446
|
+
t[23] !== te || t[24] !== ne ? (ie = /* @__PURE__ */ (0, J.jsxs)(Sr, {
|
|
21447
21447
|
className: "h-8",
|
|
21448
21448
|
children: [
|
|
21449
|
-
R,
|
|
21450
|
-
ne,
|
|
21451
21449
|
z,
|
|
21450
|
+
te,
|
|
21451
|
+
ne,
|
|
21452
21452
|
re
|
|
21453
21453
|
]
|
|
21454
|
-
}), t[23] =
|
|
21454
|
+
}), t[23] = te, t[24] = ne, t[25] = ie) : ie = t[25];
|
|
21455
|
+
let ae;
|
|
21456
|
+
t[26] === b ? ae = t[27] : (ae = b && /* @__PURE__ */ (0, J.jsx)(nt, { size: "small" }), t[26] = b, t[27] = ae);
|
|
21455
21457
|
let oe;
|
|
21456
|
-
t[
|
|
21457
|
-
let se;
|
|
21458
|
-
t[28] !== ie || t[29] !== oe ? (se = /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
21458
|
+
t[28] !== ie || t[29] !== ae ? (oe = /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
21459
21459
|
className: "flex items-center gap-2",
|
|
21460
|
-
children: [ie,
|
|
21461
|
-
}), t[28] = ie, t[29] =
|
|
21462
|
-
let
|
|
21463
|
-
t[31] !== c || t[32] !== s ? (
|
|
21460
|
+
children: [ie, ae]
|
|
21461
|
+
}), t[28] = ie, t[29] = ae, t[30] = oe) : oe = t[30];
|
|
21462
|
+
let se;
|
|
21463
|
+
t[31] !== c || t[32] !== s ? (se = (e) => {
|
|
21464
21464
|
Mm(e, s) || (c(e), j(e));
|
|
21465
|
-
}, t[31] = c, t[32] = s, t[33] =
|
|
21466
|
-
let
|
|
21467
|
-
t[34] !== E || t[35] !== n || t[36] !== u || t[37] !== A || t[38] !== o || t[39] !==
|
|
21465
|
+
}, t[31] = c, t[32] = s, t[33] = se) : se = t[33];
|
|
21466
|
+
let ce;
|
|
21467
|
+
t[34] !== E || t[35] !== n || t[36] !== u || t[37] !== A || t[38] !== o || t[39] !== se ? (ce = /* @__PURE__ */ (0, J.jsx)(An, {
|
|
21468
21468
|
value: "transform",
|
|
21469
21469
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
21470
21470
|
children: /* @__PURE__ */ (0, J.jsx)(KI, {
|
|
21471
21471
|
ref: M,
|
|
21472
21472
|
initialValue: A,
|
|
21473
21473
|
columns: n,
|
|
21474
|
-
onChange:
|
|
21474
|
+
onChange: se,
|
|
21475
21475
|
onInvalidChange: j,
|
|
21476
21476
|
getColumnValues: u,
|
|
21477
21477
|
columnTypesPerStep: E,
|
|
21478
21478
|
lazy: o
|
|
21479
21479
|
})
|
|
21480
|
-
}), t[34] = E, t[35] = n, t[36] = u, t[37] = A, t[38] = o, t[39] =
|
|
21481
|
-
let
|
|
21482
|
-
t[41] === D ?
|
|
21480
|
+
}), t[34] = E, t[35] = n, t[36] = u, t[37] = A, t[38] = o, t[39] = se, t[40] = ce) : ce = t[40];
|
|
21481
|
+
let le;
|
|
21482
|
+
t[41] === D ? le = t[42] : (le = D && /* @__PURE__ */ (0, J.jsx)(An, {
|
|
21483
21483
|
value: "python-code",
|
|
21484
21484
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
21485
21485
|
children: /* @__PURE__ */ (0, J.jsx)(KN, {
|
|
@@ -21488,9 +21488,9 @@ var ZI = Zj("marimo-dataframe").withData(B({
|
|
|
21488
21488
|
code: D,
|
|
21489
21489
|
language: "python"
|
|
21490
21490
|
})
|
|
21491
|
-
}), t[41] = D, t[42] =
|
|
21492
|
-
let
|
|
21493
|
-
t[43] === O ?
|
|
21491
|
+
}), t[41] = D, t[42] = le);
|
|
21492
|
+
let ue;
|
|
21493
|
+
t[43] === O ? ue = t[44] : (ue = O && /* @__PURE__ */ (0, J.jsx)(An, {
|
|
21494
21494
|
value: "sql-code",
|
|
21495
21495
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
21496
21496
|
children: /* @__PURE__ */ (0, J.jsx)(KN, {
|
|
@@ -21499,33 +21499,33 @@ var ZI = Zj("marimo-dataframe").withData(B({
|
|
|
21499
21499
|
code: O,
|
|
21500
21500
|
language: "sql"
|
|
21501
21501
|
})
|
|
21502
|
-
}), t[43] = O, t[44] =
|
|
21503
|
-
let
|
|
21504
|
-
t[45] !== P || t[46] !==
|
|
21502
|
+
}), t[43] = O, t[44] = ue);
|
|
21503
|
+
let de;
|
|
21504
|
+
t[45] !== P || t[46] !== oe || t[47] !== ce || t[48] !== le || t[49] !== ue ? (de = /* @__PURE__ */ (0, J.jsxs)(ln, {
|
|
21505
21505
|
defaultValue: "transform",
|
|
21506
21506
|
onValueChange: P,
|
|
21507
21507
|
children: [
|
|
21508
|
-
|
|
21508
|
+
oe,
|
|
21509
|
+
ce,
|
|
21509
21510
|
le,
|
|
21510
|
-
ue
|
|
21511
|
-
de
|
|
21511
|
+
ue
|
|
21512
21512
|
]
|
|
21513
|
-
}), t[45] = P, t[46] =
|
|
21514
|
-
let
|
|
21515
|
-
t[51] === y ?
|
|
21516
|
-
let
|
|
21517
|
-
t[53] !== f || t[54] !== T || t[55] !== p || t[56] !== m || t[57] !== r || t[58] !== d || t[59] !== i || t[60] !==
|
|
21513
|
+
}), t[45] = P, t[46] = oe, t[47] = ce, t[48] = le, t[49] = ue, t[50] = de) : de = t[50];
|
|
21514
|
+
let fe;
|
|
21515
|
+
t[51] === y ? fe = t[52] : (fe = y && /* @__PURE__ */ (0, J.jsx)(_m, { error: y }), t[51] = y, t[52] = fe);
|
|
21516
|
+
let pe = S || "", me = C ?? 0, he = k ?? 0, ge = w || eh.EMPTY, _e = C && C > 5 || !1, ve;
|
|
21517
|
+
t[53] !== f || t[54] !== T || t[55] !== p || t[56] !== m || t[57] !== r || t[58] !== d || t[59] !== i || t[60] !== pe || t[61] !== me || t[62] !== he || t[63] !== ge || t[64] !== _e ? (ve = /* @__PURE__ */ (0, J.jsx)(iI, {
|
|
21518
21518
|
label: null,
|
|
21519
21519
|
className: "rounded-b border-x border-b",
|
|
21520
|
-
data:
|
|
21520
|
+
data: pe,
|
|
21521
21521
|
hasStableRowId: !1,
|
|
21522
|
-
totalRows:
|
|
21523
|
-
totalColumns:
|
|
21522
|
+
totalRows: me,
|
|
21523
|
+
totalColumns: he,
|
|
21524
21524
|
maxColumns: "all",
|
|
21525
21525
|
pageSize: r,
|
|
21526
21526
|
pagination: !0,
|
|
21527
21527
|
fieldTypes: T,
|
|
21528
|
-
rowHeaders:
|
|
21528
|
+
rowHeaders: ge,
|
|
21529
21529
|
showDownload: i,
|
|
21530
21530
|
download_as: f,
|
|
21531
21531
|
get_size_bytes: p,
|
|
@@ -21535,7 +21535,7 @@ var ZI = Zj("marimo-dataframe").withData(B({
|
|
|
21535
21535
|
showColumnSummaries: !1,
|
|
21536
21536
|
showDataTypes: !0,
|
|
21537
21537
|
get_column_summaries: eL,
|
|
21538
|
-
showPageSizeSelector:
|
|
21538
|
+
showPageSizeSelector: _e,
|
|
21539
21539
|
showColumnExplorer: !1,
|
|
21540
21540
|
showRowExplorer: !0,
|
|
21541
21541
|
showChartBuilder: !1,
|
|
@@ -21544,13 +21544,13 @@ var ZI = Zj("marimo-dataframe").withData(B({
|
|
|
21544
21544
|
selection: null,
|
|
21545
21545
|
lazy: !1,
|
|
21546
21546
|
host: m
|
|
21547
|
-
}), t[53] = f, t[54] = T, t[55] = p, t[56] = m, t[57] = r, t[58] = d, t[59] = i, t[60] =
|
|
21548
|
-
let
|
|
21549
|
-
return t[66] !==
|
|
21547
|
+
}), t[53] = f, t[54] = T, t[55] = p, t[56] = m, t[57] = r, t[58] = d, t[59] = i, t[60] = pe, t[61] = me, t[62] = he, t[63] = ge, t[64] = _e, t[65] = ve) : ve = t[65];
|
|
21548
|
+
let ye;
|
|
21549
|
+
return t[66] !== de || t[67] !== fe || t[68] !== ve ? (ye = /* @__PURE__ */ (0, J.jsxs)("div", { children: [
|
|
21550
|
+
de,
|
|
21550
21551
|
fe,
|
|
21551
|
-
|
|
21552
|
-
|
|
21553
|
-
] }), t[66] = fe, t[67] = pe, t[68] = ye, t[69] = be) : be = t[69], be;
|
|
21552
|
+
ve
|
|
21553
|
+
] }), t[66] = de, t[67] = fe, t[68] = ve, t[69] = ye) : ye = t[69], ye;
|
|
21554
21554
|
});
|
|
21555
21555
|
$I.displayName = "DataFrameComponent";
|
|
21556
21556
|
function eL() {
|
|
@@ -21613,12 +21613,12 @@ var rL = {
|
|
|
21613
21613
|
python: ov,
|
|
21614
21614
|
code: ov,
|
|
21615
21615
|
json: av,
|
|
21616
|
-
text:
|
|
21616
|
+
text: ie,
|
|
21617
21617
|
image: hv,
|
|
21618
21618
|
audio: sv,
|
|
21619
21619
|
video: cv,
|
|
21620
21620
|
data: lv,
|
|
21621
|
-
pdf:
|
|
21621
|
+
pdf: ie,
|
|
21622
21622
|
zip: uv,
|
|
21623
21623
|
unknown: xa
|
|
21624
21624
|
};
|
|
@@ -21678,7 +21678,7 @@ function sL(e) {
|
|
|
21678
21678
|
let s = !r, c;
|
|
21679
21679
|
t[2] === s ? c = t[3] : (c = l({ "hidden group-hover:flex group-focus:flex": s }), t[2] = s, t[3] = c);
|
|
21680
21680
|
let u;
|
|
21681
|
-
t[4] !== r || t[5] !== e || t[6] !== i || t[7] !== c ? (u = /* @__PURE__ */ (0, J.jsx)(
|
|
21681
|
+
t[4] !== r || t[5] !== e || t[6] !== i || t[7] !== c ? (u = /* @__PURE__ */ (0, J.jsx)(ze, {
|
|
21682
21682
|
checked: r,
|
|
21683
21683
|
"aria-label": e,
|
|
21684
21684
|
tabIndex: -1,
|
|
@@ -21705,9 +21705,9 @@ function sL(e) {
|
|
|
21705
21705
|
}), t[18] = a, t[19] = s), s;
|
|
21706
21706
|
}
|
|
21707
21707
|
var cL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i, label: a, restrictNavigation: o, list_directory: s, host: c }) => {
|
|
21708
|
-
let [u, d] = ti(n), [f, p] = (0, q.useState)(!1), [m, h] = (0, q.useState)(!1), [g, v] = (0, q.useState)(0), y = (0, q.useRef)([]), b = (0, q.useRef)(null), x = (0, q.useRef)(!1), C = c.closest(`[${
|
|
21708
|
+
let [u, d] = ti(n), [f, p] = (0, q.useState)(!1), [m, h] = (0, q.useState)(!1), [g, v] = (0, q.useState)(0), y = (0, q.useRef)([]), b = (0, q.useRef)(null), x = (0, q.useRef)(!1), C = c.closest(`[${k}]`)?.getAttribute(k), { data: w, error: T, isPending: E } = lh(() => s({ path: u }), [u, C]);
|
|
21709
21709
|
(0, q.useEffect)(() => {
|
|
21710
|
-
if (!
|
|
21710
|
+
if (!E) {
|
|
21711
21711
|
h(!1);
|
|
21712
21712
|
return;
|
|
21713
21713
|
}
|
|
@@ -21717,25 +21717,25 @@ var cL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
21717
21717
|
return () => {
|
|
21718
21718
|
window.clearTimeout(e);
|
|
21719
21719
|
};
|
|
21720
|
-
}, [
|
|
21721
|
-
let
|
|
21722
|
-
|
|
21720
|
+
}, [E]);
|
|
21721
|
+
let D = `${u}::${C}`, [O, A] = (0, q.useState)(D);
|
|
21722
|
+
O !== D && (A(D), v(0)), (0, q.useLayoutEffect)(() => {
|
|
21723
21723
|
x.current && (x.current = !1, y.current[0]?.focus());
|
|
21724
|
-
}, [
|
|
21724
|
+
}, [D]);
|
|
21725
21725
|
let j = w?.files ?? [], M = new Set(e.map((e) => e.path)), N = r === "directory" || r === "all", F = r === "file" || r === "all", I = j.filter((e) => N && e.is_directory || F && !e.is_directory), L = I.length > 0 && I.every((e) => M.has(e.path));
|
|
21726
|
-
if (!w &&
|
|
21726
|
+
if (!w && T) return /* @__PURE__ */ (0, J.jsx)(ym, {
|
|
21727
21727
|
kind: "danger",
|
|
21728
|
-
children:
|
|
21728
|
+
children: T.message
|
|
21729
21729
|
});
|
|
21730
|
-
let
|
|
21731
|
-
function
|
|
21730
|
+
let R = Xe.guessDeliminator(n).deliminator, ee = e.map((e) => /* @__PURE__ */ (0, J.jsx)("li", { children: e.path }, e.id));
|
|
21731
|
+
function z(e) {
|
|
21732
21732
|
if (f) return;
|
|
21733
21733
|
if (p(!0), e === oL) {
|
|
21734
|
-
if (u ===
|
|
21734
|
+
if (u === R) {
|
|
21735
21735
|
p(!1);
|
|
21736
21736
|
return;
|
|
21737
21737
|
}
|
|
21738
|
-
e =
|
|
21738
|
+
e = le.dirname(u), e === "" && (e = R);
|
|
21739
21739
|
}
|
|
21740
21740
|
let t = e.length < n.length;
|
|
21741
21741
|
if (o && t) {
|
|
@@ -21748,7 +21748,7 @@ var cL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
21748
21748
|
}
|
|
21749
21749
|
x.current = b.current?.contains(document.activeElement) ?? !1, d(e), p(!1);
|
|
21750
21750
|
}
|
|
21751
|
-
function
|
|
21751
|
+
function te({ path: e, name: t, isDirectory: n }) {
|
|
21752
21752
|
return {
|
|
21753
21753
|
id: e,
|
|
21754
21754
|
name: t,
|
|
@@ -21756,22 +21756,22 @@ var cL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
21756
21756
|
is_directory: n
|
|
21757
21757
|
};
|
|
21758
21758
|
}
|
|
21759
|
-
function
|
|
21760
|
-
let o =
|
|
21759
|
+
function ne({ path: n, name: r, isDirectory: a }) {
|
|
21760
|
+
let o = te({
|
|
21761
21761
|
path: n,
|
|
21762
21762
|
name: r,
|
|
21763
21763
|
isDirectory: a
|
|
21764
21764
|
});
|
|
21765
21765
|
M.has(n) ? t(e.filter((e) => e.path !== n)) : t(i ? [...e, o] : [o]);
|
|
21766
21766
|
}
|
|
21767
|
-
function
|
|
21768
|
-
t(e.filter((e) =>
|
|
21767
|
+
function re() {
|
|
21768
|
+
t(e.filter((e) => le.dirname(e.path) !== u));
|
|
21769
21769
|
}
|
|
21770
|
-
function
|
|
21770
|
+
function ie() {
|
|
21771
21771
|
let n = [];
|
|
21772
21772
|
for (let e of j) {
|
|
21773
21773
|
if (!N && e.is_directory || M.has(e.path)) continue;
|
|
21774
|
-
let t =
|
|
21774
|
+
let t = te({
|
|
21775
21775
|
path: e.path,
|
|
21776
21776
|
name: e.name,
|
|
21777
21777
|
isDirectory: e.is_directory
|
|
@@ -21786,12 +21786,12 @@ var cL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
21786
21786
|
Icon: iv,
|
|
21787
21787
|
isSelected: !1,
|
|
21788
21788
|
canSelect: !1,
|
|
21789
|
-
onPrimary: () =>
|
|
21789
|
+
onPrimary: () => z(oL),
|
|
21790
21790
|
onToggleSelect: null
|
|
21791
21791
|
}, ...j.map((e) => {
|
|
21792
21792
|
let t = e.path;
|
|
21793
21793
|
t.startsWith("//") && (t = t.slice(1));
|
|
21794
|
-
let n = N && e.is_directory || F && !e.is_directory, r = M.has(t), i = e.is_directory ? "directory" : nL(e.name), a = () =>
|
|
21794
|
+
let n = N && e.is_directory || F && !e.is_directory, r = M.has(t), i = e.is_directory ? "directory" : nL(e.name), a = () => ne({
|
|
21795
21795
|
path: t,
|
|
21796
21796
|
name: e.name,
|
|
21797
21797
|
isDirectory: e.is_directory
|
|
@@ -21802,7 +21802,7 @@ var cL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
21802
21802
|
Icon: rL[i],
|
|
21803
21803
|
isSelected: r,
|
|
21804
21804
|
canSelect: n,
|
|
21805
|
-
onPrimary: e.is_directory ? () =>
|
|
21805
|
+
onPrimary: e.is_directory ? () => z(t) : n ? a : () => {},
|
|
21806
21806
|
onToggleSelect: n ? a : null
|
|
21807
21807
|
};
|
|
21808
21808
|
})];
|
|
@@ -21830,19 +21830,19 @@ var cL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
21830
21830
|
case " ": e.preventDefault(), oe[t].onToggleSelect?.();
|
|
21831
21831
|
}
|
|
21832
21832
|
}
|
|
21833
|
-
let { parentDirectories:
|
|
21833
|
+
let { parentDirectories: ue } = iL({
|
|
21834
21834
|
path: u,
|
|
21835
|
-
delimiter:
|
|
21835
|
+
delimiter: R,
|
|
21836
21836
|
initialPath: n,
|
|
21837
21837
|
restrictNavigation: o
|
|
21838
|
-
}),
|
|
21838
|
+
}), de = r === "all" ? ae.of("file", "folder") : r === "directory" ? ae.of("folder") : ae.of("file");
|
|
21839
21839
|
return /* @__PURE__ */ (0, J.jsxs)("div", { children: [
|
|
21840
|
-
|
|
21840
|
+
T && /* @__PURE__ */ (0, J.jsx)(ym, {
|
|
21841
21841
|
kind: "danger",
|
|
21842
|
-
children:
|
|
21842
|
+
children: T.message
|
|
21843
21843
|
}),
|
|
21844
21844
|
(() => {
|
|
21845
|
-
let e = a ?? `Select ${
|
|
21845
|
+
let e = a ?? `Select ${de.join(" and ", 2)}...`, t = /* @__PURE__ */ (0, J.jsx)(bm, { children: P({ html: e }) });
|
|
21846
21846
|
return i ? /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
21847
21847
|
className: "flex items-center justify-between border px-2",
|
|
21848
21848
|
children: [/* @__PURE__ */ (0, J.jsx)("div", {
|
|
@@ -21851,7 +21851,7 @@ var cL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
21851
21851
|
}), /* @__PURE__ */ (0, J.jsx)("div", { children: /* @__PURE__ */ (0, J.jsx)(_, {
|
|
21852
21852
|
size: "xs",
|
|
21853
21853
|
variant: "link",
|
|
21854
|
-
onClick: L ?
|
|
21854
|
+
onClick: L ? re : ie,
|
|
21855
21855
|
children: L ? "Deselect all" : "Select all"
|
|
21856
21856
|
}) })]
|
|
21857
21857
|
}) : t;
|
|
@@ -21860,8 +21860,8 @@ var cL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
21860
21860
|
className: "mt-2 w-full",
|
|
21861
21861
|
placeholder: u,
|
|
21862
21862
|
value: u,
|
|
21863
|
-
onChange: (e) =>
|
|
21864
|
-
children:
|
|
21863
|
+
onChange: (e) => z(e.target.value),
|
|
21864
|
+
children: ue.map((e) => /* @__PURE__ */ (0, J.jsx)("option", {
|
|
21865
21865
|
value: e,
|
|
21866
21866
|
children: e
|
|
21867
21867
|
}, e))
|
|
@@ -21873,12 +21873,12 @@ var cL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
21873
21873
|
/* @__PURE__ */ (0, J.jsxs)("div", {
|
|
21874
21874
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
21875
21875
|
style: { height: "14rem" },
|
|
21876
|
-
"aria-busy":
|
|
21876
|
+
"aria-busy": E,
|
|
21877
21877
|
"aria-live": "polite",
|
|
21878
21878
|
children: [m && /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
21879
21879
|
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",
|
|
21880
21880
|
role: "status",
|
|
21881
|
-
children: [/* @__PURE__ */ (0, J.jsx)(
|
|
21881
|
+
children: [/* @__PURE__ */ (0, J.jsx)(nt, { size: "small" }), /* @__PURE__ */ (0, J.jsx)("span", { children: "Listing files..." })]
|
|
21882
21882
|
}), /* @__PURE__ */ (0, J.jsx)($t, {
|
|
21883
21883
|
ref: b,
|
|
21884
21884
|
className: "cursor-pointer table-fixed",
|
|
@@ -21922,7 +21922,7 @@ var cL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
21922
21922
|
children: [
|
|
21923
21923
|
e.length,
|
|
21924
21924
|
" ",
|
|
21925
|
-
|
|
21925
|
+
de.join(" or ", e.length),
|
|
21926
21926
|
" ",
|
|
21927
21927
|
"selected"
|
|
21928
21928
|
]
|
|
@@ -21937,7 +21937,7 @@ var cL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
21937
21937
|
children: /* @__PURE__ */ (0, J.jsx)("ul", {
|
|
21938
21938
|
style: { marginBlock: 0 },
|
|
21939
21939
|
className: "m-0 text-xs text-muted-foreground",
|
|
21940
|
-
children:
|
|
21940
|
+
children: ee
|
|
21941
21941
|
})
|
|
21942
21942
|
})] })
|
|
21943
21943
|
})
|
|
@@ -23671,14 +23671,14 @@ function VR() {
|
|
|
23671
23671
|
return typeof g == "function" ? g : UR;
|
|
23672
23672
|
}, [g]), k = (0, q.useMemo)(function() {
|
|
23673
23673
|
return typeof h == "function" ? h : UR;
|
|
23674
|
-
}, [h]), A = (0, q.useRef)(null), j = (0, q.useRef)(null), M = DR((0, q.useReducer)(HR, BR), 2), N = M[0], P = M[1], F = N.isFocused, I = N.isFileDialogActive, L = (0, q.useRef)(typeof window < "u" && window.isSecureContext && _ && fR()),
|
|
23674
|
+
}, [h]), A = (0, q.useRef)(null), j = (0, q.useRef)(null), M = DR((0, q.useReducer)(HR, BR), 2), N = M[0], P = M[1], F = N.isFocused, I = N.isFileDialogActive, L = (0, q.useRef)(typeof window < "u" && window.isSecureContext && _ && fR()), R = function() {
|
|
23675
23675
|
!L.current && I && setTimeout(function() {
|
|
23676
23676
|
j.current && (j.current.files.length || (P({ type: "closeDialog" }), k()));
|
|
23677
23677
|
}, 300);
|
|
23678
23678
|
};
|
|
23679
23679
|
(0, q.useEffect)(function() {
|
|
23680
|
-
return window.addEventListener("focus",
|
|
23681
|
-
window.removeEventListener("focus",
|
|
23680
|
+
return window.addEventListener("focus", R, !1), function() {
|
|
23681
|
+
window.removeEventListener("focus", R, !1);
|
|
23682
23682
|
};
|
|
23683
23683
|
}, [
|
|
23684
23684
|
j,
|
|
@@ -23686,33 +23686,33 @@ function VR() {
|
|
|
23686
23686
|
k,
|
|
23687
23687
|
L
|
|
23688
23688
|
]);
|
|
23689
|
-
var
|
|
23690
|
-
A.current && A.current.contains(e.target) || (e.preventDefault(),
|
|
23689
|
+
var ee = (0, q.useRef)([]), z = (0, q.useRef)([]), te = function(e) {
|
|
23690
|
+
A.current && A.current.contains(e.target) || (e.preventDefault(), ee.current = []);
|
|
23691
23691
|
};
|
|
23692
23692
|
(0, q.useEffect)(function() {
|
|
23693
|
-
return y && (document.addEventListener("dragover", sR, !1), document.addEventListener("drop",
|
|
23694
|
-
y && (document.removeEventListener("dragover", sR), document.removeEventListener("drop",
|
|
23693
|
+
return y && (document.addEventListener("dragover", sR, !1), document.addEventListener("drop", te, !1)), function() {
|
|
23694
|
+
y && (document.removeEventListener("dragover", sR), document.removeEventListener("drop", te));
|
|
23695
23695
|
};
|
|
23696
23696
|
}, [A, y]), (0, q.useEffect)(function() {
|
|
23697
23697
|
var e = function(e) {
|
|
23698
|
-
|
|
23698
|
+
z.current = [].concat(CR(z.current), [e.target]), oR(e) && P({
|
|
23699
23699
|
isDragGlobal: !0,
|
|
23700
23700
|
type: "setDragGlobal"
|
|
23701
23701
|
});
|
|
23702
23702
|
}, t = function(e) {
|
|
23703
|
-
|
|
23703
|
+
z.current = z.current.filter(function(t) {
|
|
23704
23704
|
return t !== e.target && t !== null;
|
|
23705
|
-
}), !(
|
|
23705
|
+
}), !(z.current.length > 0) && P({
|
|
23706
23706
|
isDragGlobal: !1,
|
|
23707
23707
|
type: "setDragGlobal"
|
|
23708
23708
|
});
|
|
23709
23709
|
}, n = function() {
|
|
23710
|
-
|
|
23710
|
+
z.current = [], P({
|
|
23711
23711
|
isDragGlobal: !1,
|
|
23712
23712
|
type: "setDragGlobal"
|
|
23713
23713
|
});
|
|
23714
23714
|
}, r = function() {
|
|
23715
|
-
|
|
23715
|
+
z.current = [], P({
|
|
23716
23716
|
isDragGlobal: !1,
|
|
23717
23717
|
type: "setDragGlobal"
|
|
23718
23718
|
});
|
|
@@ -23727,10 +23727,10 @@ function VR() {
|
|
|
23727
23727
|
v,
|
|
23728
23728
|
r
|
|
23729
23729
|
]);
|
|
23730
|
-
var
|
|
23730
|
+
var ne = (0, q.useCallback)(function(e) {
|
|
23731
23731
|
w ? w(e) : console.error(e);
|
|
23732
23732
|
}, [w]), re = (0, q.useCallback)(function(e) {
|
|
23733
|
-
e.preventDefault(), e.persist(), ge(e),
|
|
23733
|
+
e.preventDefault(), e.persist(), ge(e), ee.current = [].concat(CR(ee.current), [e.target]), oR(e) && Promise.resolve(i(e)).then(function(t) {
|
|
23734
23734
|
if (!(aR(e) && !C)) {
|
|
23735
23735
|
var n = t.length, r = n > 0 && iR({
|
|
23736
23736
|
files: t,
|
|
@@ -23749,12 +23749,12 @@ function VR() {
|
|
|
23749
23749
|
}), l && l(e);
|
|
23750
23750
|
}
|
|
23751
23751
|
}).catch(function(e) {
|
|
23752
|
-
return
|
|
23752
|
+
return ne(e);
|
|
23753
23753
|
});
|
|
23754
23754
|
}, [
|
|
23755
23755
|
i,
|
|
23756
23756
|
l,
|
|
23757
|
-
|
|
23757
|
+
ne,
|
|
23758
23758
|
C,
|
|
23759
23759
|
E,
|
|
23760
23760
|
o,
|
|
@@ -23771,10 +23771,10 @@ function VR() {
|
|
|
23771
23771
|
return t && d && d(e), !1;
|
|
23772
23772
|
}, [d, C]), ae = (0, q.useCallback)(function(e) {
|
|
23773
23773
|
e.preventDefault(), e.persist(), ge(e);
|
|
23774
|
-
var t =
|
|
23774
|
+
var t = ee.current.filter(function(e) {
|
|
23775
23775
|
return A.current && A.current.contains(e);
|
|
23776
23776
|
}), n = t.indexOf(e.target);
|
|
23777
|
-
n !== -1 && t.splice(n, 1),
|
|
23777
|
+
n !== -1 && t.splice(n, 1), ee.current = t, !(t.length > 0) && (P({
|
|
23778
23778
|
type: "setDraggedFiles",
|
|
23779
23779
|
isDragActive: !1,
|
|
23780
23780
|
isDragAccept: !1,
|
|
@@ -23821,15 +23821,15 @@ function VR() {
|
|
|
23821
23821
|
m,
|
|
23822
23822
|
T
|
|
23823
23823
|
]), se = (0, q.useCallback)(function(e) {
|
|
23824
|
-
e.preventDefault(), e.persist(), ge(e),
|
|
23824
|
+
e.preventDefault(), e.persist(), ge(e), ee.current = [], oR(e) && Promise.resolve(i(e)).then(function(t) {
|
|
23825
23825
|
aR(e) && !C || oe(t, e);
|
|
23826
23826
|
}).catch(function(e) {
|
|
23827
|
-
return
|
|
23827
|
+
return ne(e);
|
|
23828
23828
|
}), P({ type: "reset" });
|
|
23829
23829
|
}, [
|
|
23830
23830
|
i,
|
|
23831
23831
|
oe,
|
|
23832
|
-
|
|
23832
|
+
ne,
|
|
23833
23833
|
C
|
|
23834
23834
|
]), ce = (0, q.useCallback)(function() {
|
|
23835
23835
|
if (L.current) {
|
|
@@ -23843,7 +23843,7 @@ function VR() {
|
|
|
23843
23843
|
}).then(function(e) {
|
|
23844
23844
|
oe(e, null), P({ type: "closeDialog" });
|
|
23845
23845
|
}).catch(function(e) {
|
|
23846
|
-
hR(e) ? (k(e), P({ type: "closeDialog" })) : gR(e) ? (L.current = !1, j.current ? (j.current.value = null, j.current.click()) :
|
|
23846
|
+
hR(e) ? (k(e), P({ type: "closeDialog" })) : gR(e) ? (L.current = !1, j.current ? (j.current.value = null, j.current.click()) : ne(/* @__PURE__ */ Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : ne(e);
|
|
23847
23847
|
});
|
|
23848
23848
|
return;
|
|
23849
23849
|
}
|
|
@@ -23854,7 +23854,7 @@ function VR() {
|
|
|
23854
23854
|
k,
|
|
23855
23855
|
_,
|
|
23856
23856
|
oe,
|
|
23857
|
-
|
|
23857
|
+
ne,
|
|
23858
23858
|
D,
|
|
23859
23859
|
s
|
|
23860
23860
|
]), le = (0, q.useCallback)(function(e) {
|
|
@@ -24133,29 +24133,29 @@ var KR = (e) => {
|
|
|
24133
24133
|
}), t[51] = M, t[52] = N);
|
|
24134
24134
|
let F = g && "text-primary", I = _ && "text-destructive", L;
|
|
24135
24135
|
t[53] !== F || t[54] !== I ? (L = l(F, I), t[53] = F, t[54] = I, t[55] = L) : L = t[55];
|
|
24136
|
-
let
|
|
24137
|
-
t[56] === L ?
|
|
24136
|
+
let R;
|
|
24137
|
+
t[56] === L ? R = t[57] : (R = /* @__PURE__ */ (0, J.jsx)(Cv, {
|
|
24138
24138
|
strokeWidth: 1.4,
|
|
24139
24139
|
className: L
|
|
24140
|
-
}), t[56] = L, t[57] =
|
|
24141
|
-
let
|
|
24142
|
-
t[58] !== N || t[59] !==
|
|
24140
|
+
}), t[56] = L, t[57] = R);
|
|
24141
|
+
let ee;
|
|
24142
|
+
t[58] !== N || t[59] !== R ? (ee = /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
24143
24143
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
24144
|
-
children: [N,
|
|
24145
|
-
}), t[58] = N, t[59] =
|
|
24146
|
-
let
|
|
24147
|
-
t[61] !== k || t[62] !==
|
|
24144
|
+
children: [N, R]
|
|
24145
|
+
}), t[58] = N, t[59] = R, t[60] = ee) : ee = t[60];
|
|
24146
|
+
let z;
|
|
24147
|
+
t[61] !== k || t[62] !== ee ? (z = /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
24148
24148
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
24149
|
-
children: [k,
|
|
24150
|
-
}), t[61] = k, t[62] =
|
|
24151
|
-
let
|
|
24152
|
-
t[64] !== O || t[65] !==
|
|
24149
|
+
children: [k, ee]
|
|
24150
|
+
}), t[61] = k, t[62] = ee, t[63] = z) : z = t[63];
|
|
24151
|
+
let te;
|
|
24152
|
+
t[64] !== O || t[65] !== z || t[66] !== T || t[67] !== E ? (te = /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
24153
24153
|
className: T,
|
|
24154
24154
|
...E,
|
|
24155
|
-
children: [O,
|
|
24156
|
-
}), t[64] = O, t[65] =
|
|
24157
|
-
let
|
|
24158
|
-
t[69] !== o || t[70] !== i || t[71] !== x || t[72] !== b || t[73] !== s.length ? (
|
|
24155
|
+
children: [O, z]
|
|
24156
|
+
}), t[64] = O, t[65] = z, t[66] = T, t[67] = E, t[68] = te) : te = t[68];
|
|
24157
|
+
let ne;
|
|
24158
|
+
t[69] !== o || t[70] !== i || t[71] !== x || t[72] !== b || t[73] !== s.length ? (ne = x ? /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
24159
24159
|
className: "flex flex-row gap-1",
|
|
24160
24160
|
children: [/* @__PURE__ */ (0, J.jsxs)("div", {
|
|
24161
24161
|
className: "text-xs text-muted-foreground",
|
|
@@ -24188,12 +24188,12 @@ var KR = (e) => {
|
|
|
24188
24188
|
]
|
|
24189
24189
|
})
|
|
24190
24190
|
})]
|
|
24191
|
-
}) : null, t[69] = o, t[70] = i, t[71] = x, t[72] = b, t[73] = s.length, t[74] =
|
|
24191
|
+
}) : null, t[69] = o, t[70] = i, t[71] = x, t[72] = b, t[73] = s.length, t[74] = ne) : ne = t[74];
|
|
24192
24192
|
let re;
|
|
24193
|
-
return t[75] !==
|
|
24193
|
+
return t[75] !== te || t[76] !== ne ? (re = /* @__PURE__ */ (0, J.jsx)("section", { children: /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
24194
24194
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
24195
|
-
children: [
|
|
24196
|
-
}) }), t[75] =
|
|
24195
|
+
children: [te, ne]
|
|
24196
|
+
}) }), t[75] = te, t[76] = ne, t[77] = re) : re = t[77], re;
|
|
24197
24197
|
};
|
|
24198
24198
|
function qR(e) {
|
|
24199
24199
|
c.error(e), S({
|
|
@@ -24303,40 +24303,40 @@ var $R = Zj("marimo-form").withData(B({
|
|
|
24303
24303
|
children: h
|
|
24304
24304
|
}), g), t[17] = h, t[18] = g, t[19] = m, t[20] = F) : F = t[20];
|
|
24305
24305
|
let I = f || c, L;
|
|
24306
|
-
t[21] === c ? L = t[22] : (L = c && /* @__PURE__ */ (0, J.jsx)(
|
|
24307
|
-
let
|
|
24308
|
-
t[23] !== u || t[24] !== I || t[25] !== L || t[26] !== S ? (
|
|
24306
|
+
t[21] === c ? L = t[22] : (L = c && /* @__PURE__ */ (0, J.jsx)(xe, { className: "h-4 w-4 mr-2 animate-spin" }), t[21] = c, t[22] = L);
|
|
24307
|
+
let R;
|
|
24308
|
+
t[23] !== u || t[24] !== I || t[25] !== L || t[26] !== S ? (R = /* @__PURE__ */ (0, J.jsxs)(_, {
|
|
24309
24309
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
24310
24310
|
variant: S,
|
|
24311
24311
|
disabled: I,
|
|
24312
24312
|
type: "submit",
|
|
24313
24313
|
children: [L, u]
|
|
24314
|
-
}), t[23] = u, t[24] = I, t[25] = L, t[26] = S, t[27] =
|
|
24315
|
-
let
|
|
24316
|
-
t[28] !== d || t[29] !==
|
|
24317
|
-
let ne;
|
|
24318
|
-
t[31] !== te || t[32] !== F ? (ne = /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
24319
|
-
className: "flex justify-end gap-2 font-code",
|
|
24320
|
-
children: [F, te]
|
|
24321
|
-
}), t[31] = te, t[32] = F, t[33] = ne) : ne = t[33];
|
|
24314
|
+
}), t[23] = u, t[24] = I, t[25] = L, t[26] = S, t[27] = R) : R = t[27];
|
|
24315
|
+
let ee;
|
|
24316
|
+
t[28] !== d || t[29] !== R ? (ee = nz(R, d), t[28] = d, t[29] = R, t[30] = ee) : ee = t[30];
|
|
24322
24317
|
let z;
|
|
24323
|
-
t[
|
|
24318
|
+
t[31] !== ee || t[32] !== F ? (z = /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
24319
|
+
className: "flex justify-end gap-2 font-code",
|
|
24320
|
+
children: [F, ee]
|
|
24321
|
+
}), t[31] = ee, t[32] = F, t[33] = z) : z = t[33];
|
|
24322
|
+
let te;
|
|
24323
|
+
t[34] !== z || t[35] !== k || t[36] !== j || t[37] !== M || t[38] !== N ? (te = /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
24324
24324
|
className: k,
|
|
24325
24325
|
onKeyDown: A,
|
|
24326
24326
|
children: [
|
|
24327
24327
|
j,
|
|
24328
24328
|
M,
|
|
24329
24329
|
N,
|
|
24330
|
-
|
|
24330
|
+
z
|
|
24331
24331
|
]
|
|
24332
|
-
}), t[34] =
|
|
24333
|
-
let
|
|
24334
|
-
return t[40] !==
|
|
24332
|
+
}), t[34] = z, t[35] = k, t[36] = j, t[37] = M, t[38] = N, t[39] = te) : te = t[39];
|
|
24333
|
+
let ne;
|
|
24334
|
+
return t[40] !== te || t[41] !== D ? (ne = /* @__PURE__ */ (0, J.jsx)("form", {
|
|
24335
24335
|
className: "contents",
|
|
24336
24336
|
ref: b,
|
|
24337
24337
|
onSubmit: D,
|
|
24338
|
-
children:
|
|
24339
|
-
}), t[40] =
|
|
24338
|
+
children: te
|
|
24339
|
+
}), t[40] = te, t[41] = D, t[42] = ne) : ne = t[42], ne;
|
|
24340
24340
|
}, tz = (e) => {
|
|
24341
24341
|
let t = (0, Y.c)(24), n, r, i, a, o, s;
|
|
24342
24342
|
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);
|
|
@@ -24440,12 +24440,12 @@ var iz = ".marimo td.bracket-l:before{border-left:2px solid var(--foreground);co
|
|
|
24440
24440
|
selectAll: r == null
|
|
24441
24441
|
}));
|
|
24442
24442
|
}, t[13] = h, t[14] = n, t[15] = I) : I = t[15];
|
|
24443
|
-
let L = I,
|
|
24444
|
-
t[16] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
24443
|
+
let L = I, R;
|
|
24444
|
+
t[16] === Symbol.for("react.memo_cache_sentinel") ? (R = (e) => {
|
|
24445
24445
|
D.current = e, e && (e.focus(), E.current?.selectAll ? e.select() : e.setSelectionRange(e.value.length, e.value.length));
|
|
24446
|
-
}, t[16] =
|
|
24447
|
-
let
|
|
24448
|
-
t[17] !== r || t[18] !== n || t[19] !== F ? (
|
|
24446
|
+
}, t[16] = R) : R = t[16];
|
|
24447
|
+
let ee = R, z;
|
|
24448
|
+
t[17] !== r || t[18] !== n || t[19] !== F ? (z = (e) => {
|
|
24449
24449
|
let t = E.current;
|
|
24450
24450
|
if (!t) return;
|
|
24451
24451
|
let i = e ? D.current?.closest("td") : null;
|
|
@@ -24456,16 +24456,16 @@ var iz = ".marimo td.bracket-l:before{border-left:2px solid var(--foreground);co
|
|
|
24456
24456
|
e && (b(e), r(e));
|
|
24457
24457
|
}
|
|
24458
24458
|
i?.focus();
|
|
24459
|
-
}, t[17] = r, t[18] = n, t[19] = F, t[20] =
|
|
24460
|
-
let
|
|
24461
|
-
t[21] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
24459
|
+
}, t[17] = r, t[18] = n, t[19] = F, t[20] = z) : z = t[20];
|
|
24460
|
+
let te = z, ne;
|
|
24461
|
+
t[21] === Symbol.for("react.memo_cache_sentinel") ? (ne = () => {
|
|
24462
24462
|
let e = D.current?.closest("td");
|
|
24463
24463
|
k(null), e?.focus();
|
|
24464
|
-
}, t[21] =
|
|
24465
|
-
let re =
|
|
24466
|
-
t[22] ===
|
|
24467
|
-
e.stopPropagation(), e.key === "Enter" ? (e.preventDefault(),
|
|
24468
|
-
}, t[22] =
|
|
24464
|
+
}, t[21] = ne) : ne = t[21];
|
|
24465
|
+
let re = ne, ie;
|
|
24466
|
+
t[22] === te ? ie = t[23] : (ie = (e) => {
|
|
24467
|
+
e.stopPropagation(), e.key === "Enter" ? (e.preventDefault(), te(!0)) : e.key === "Escape" && (e.preventDefault(), re());
|
|
24468
|
+
}, t[22] = te, t[23] = ie);
|
|
24469
24469
|
let ae = ie, oe;
|
|
24470
24470
|
t[24] !== h || t[25] !== C || t[26] !== w ? (oe = (e, t, n) => {
|
|
24471
24471
|
h[t][n] || w != null || !(e.target instanceof Element) || (e.preventDefault(), e.currentTarget.focus(), e.target.setPointerCapture(e.pointerId), g.current = {
|
|
@@ -24528,9 +24528,9 @@ var iz = ".marimo td.bracket-l:before{border-left:2px solid var(--foreground);co
|
|
|
24528
24528
|
let pe = fe, me = u != null && u.length > 0, he = d != null && d.length > 0, ge = C.length, _e = C[0]?.length ?? 0, ve = i || "Matrix", ye;
|
|
24529
24529
|
t[45] !== d || t[46] !== he || t[47] !== me ? (ye = he && /* @__PURE__ */ (0, J.jsx)("thead", { children: /* @__PURE__ */ (0, J.jsxs)("tr", { children: [me && /* @__PURE__ */ (0, J.jsx)("th", {}), d.map(pz)] }) }), t[45] = d, t[46] = he, t[47] = me, t[48] = ye) : ye = t[48];
|
|
24530
24530
|
let be;
|
|
24531
|
-
if (t[49] !== _?.col || t[50] !== _?.row || t[51] !== d || t[52] !==
|
|
24531
|
+
if (t[49] !== _?.col || t[50] !== _?.row || t[51] !== d || t[52] !== te || t[53] !== h || t[54] !== C || t[55] !== w || t[56] !== j || t[57] !== ae || t[58] !== pe || t[59] !== se || t[60] !== me || t[61] !== o || t[62] !== a || t[63] !== _e || t[64] !== ge || t[65] !== u || t[66] !== L) {
|
|
24532
24532
|
let e;
|
|
24533
|
-
t[68] !== _?.col || t[69] !== _?.row || t[70] !== d || t[71] !==
|
|
24533
|
+
t[68] !== _?.col || t[69] !== _?.row || t[70] !== d || t[71] !== te || t[72] !== h || t[73] !== w || t[74] !== j || t[75] !== ae || t[76] !== pe || t[77] !== se || t[78] !== me || t[79] !== o || t[80] !== a || t[81] !== _e || t[82] !== ge || t[83] !== u || t[84] !== L ? (e = (e, t) => /* @__PURE__ */ (0, J.jsxs)("tr", { children: [me && /* @__PURE__ */ (0, J.jsx)("th", {
|
|
24534
24534
|
className: "text-right text-sm font-medium text-foreground pr-3 h-8",
|
|
24535
24535
|
children: u[t]
|
|
24536
24536
|
}), e.map((e, n) => {
|
|
@@ -24549,7 +24549,7 @@ var iz = ".marimo td.bracket-l:before{border-left:2px solid var(--foreground);co
|
|
|
24549
24549
|
onKeyDown: (e) => pe(e, t, n),
|
|
24550
24550
|
"data-testid": `matrix-cell-${t}-${n}`,
|
|
24551
24551
|
children: s ? /* @__PURE__ */ (0, J.jsx)("input", {
|
|
24552
|
-
ref:
|
|
24552
|
+
ref: ee,
|
|
24553
24553
|
className: "bg-transparent text-center font-mono text-sm text-foreground outline-none select-text",
|
|
24554
24554
|
style: { width: `${Math.max(s.text.length + 2, 6)}ch` },
|
|
24555
24555
|
value: s.text,
|
|
@@ -24558,13 +24558,13 @@ var iz = ".marimo td.bracket-l:before{border-left:2px solid var(--foreground);co
|
|
|
24558
24558
|
text: e.target.value
|
|
24559
24559
|
}),
|
|
24560
24560
|
onKeyDown: ae,
|
|
24561
|
-
onBlur: () =>
|
|
24561
|
+
onBlur: () => te(!1),
|
|
24562
24562
|
onPointerDown: mz,
|
|
24563
24563
|
"aria-label": `Edit ${c}, ${f}`,
|
|
24564
24564
|
"data-testid": `matrix-input-${t}-${n}`
|
|
24565
24565
|
}) : j(e)
|
|
24566
24566
|
}, n);
|
|
24567
|
-
})] }, t), t[68] = _?.col, t[69] = _?.row, t[70] = d, t[71] =
|
|
24567
|
+
})] }, t), t[68] = _?.col, t[69] = _?.row, t[70] = d, t[71] = te, t[72] = h, t[73] = w, t[74] = j, t[75] = ae, t[76] = pe, t[77] = se, t[78] = me, t[79] = o, t[80] = a, t[81] = _e, t[82] = ge, t[83] = u, t[84] = L, t[85] = e) : e = t[85], be = C.map(e), t[49] = _?.col, t[50] = _?.row, t[51] = d, t[52] = te, t[53] = h, t[54] = C, t[55] = w, t[56] = j, t[57] = ae, t[58] = pe, t[59] = se, t[60] = me, t[61] = o, t[62] = a, t[63] = _e, t[64] = ge, t[65] = u, t[66] = L, t[67] = be;
|
|
24568
24568
|
} else be = t[67];
|
|
24569
24569
|
let xe;
|
|
24570
24570
|
t[86] === be ? xe = t[87] : (xe = /* @__PURE__ */ (0, J.jsx)("tbody", { children: be }), t[86] = be, t[87] = xe);
|
|
@@ -26224,25 +26224,25 @@ var WB = class {
|
|
|
26224
26224
|
}), n[36] = s.setFalse, n[37] = s.setTrue, n[38] = I) : I = n[38];
|
|
26225
26225
|
let L;
|
|
26226
26226
|
n[39] !== c || n[40] !== i.value || n[41] !== a ? (L = i.value != null && i.value.length === 2 && /* @__PURE__ */ (0, J.jsx)(Cm, { children: Pi(a(i.value[1]), { locale: c }) }, i.value[1]), n[39] = c, n[40] = i.value, n[41] = a, n[42] = L) : L = n[42];
|
|
26227
|
+
let R;
|
|
26228
|
+
n[43] === L ? R = n[44] : (R = /* @__PURE__ */ (0, J.jsx)(Tm, { children: L }), n[43] = L, n[44] = R);
|
|
26227
26229
|
let ee;
|
|
26228
|
-
n[
|
|
26229
|
-
let te;
|
|
26230
|
-
n[45] !== o || n[46] !== I || n[47] !== ee ? (te = /* @__PURE__ */ (0, J.jsx)(Sm, { children: /* @__PURE__ */ (0, J.jsxs)(xm, {
|
|
26230
|
+
n[45] !== o || n[46] !== I || n[47] !== R ? (ee = /* @__PURE__ */ (0, J.jsx)(Sm, { children: /* @__PURE__ */ (0, J.jsxs)(xm, {
|
|
26231
26231
|
delayDuration: 0,
|
|
26232
26232
|
open: o,
|
|
26233
|
-
children: [I,
|
|
26234
|
-
}) }), n[45] = o, n[46] = I, n[47] =
|
|
26235
|
-
let
|
|
26236
|
-
return n[49] !== x || n[50] !== i || n[51] !== j || n[52] !== F || n[53] !==
|
|
26233
|
+
children: [I, R]
|
|
26234
|
+
}) }), n[45] = o, n[46] = I, n[47] = R, n[48] = ee) : ee = n[48];
|
|
26235
|
+
let z;
|
|
26236
|
+
return n[49] !== x || n[50] !== i || n[51] !== j || n[52] !== F || n[53] !== ee || n[54] !== O ? (z = /* @__PURE__ */ (0, J.jsxs)(yb, {
|
|
26237
26237
|
ref: x,
|
|
26238
26238
|
className: O,
|
|
26239
26239
|
...i,
|
|
26240
26240
|
children: [
|
|
26241
26241
|
j,
|
|
26242
26242
|
F,
|
|
26243
|
-
|
|
26243
|
+
ee
|
|
26244
26244
|
]
|
|
26245
|
-
}), n[49] = x, n[50] = i, n[51] = j, n[52] = F, n[53] =
|
|
26245
|
+
}), n[49] = x, n[50] = i, n[51] = j, n[52] = F, n[53] = ee, n[54] = O, n[55] = z) : z = n[55], z;
|
|
26246
26246
|
});
|
|
26247
26247
|
KB.displayName = yb.displayName;
|
|
26248
26248
|
//#endregion
|
|
@@ -26587,16 +26587,16 @@ var aV = (e) => {
|
|
|
26587
26587
|
t[21] === P ? F = t[22] : (F = l("relative flex items-center select-none", P, "data-[orientation=vertical]:h-36"), t[21] = P, t[22] = F);
|
|
26588
26588
|
let I;
|
|
26589
26589
|
t[23] === y ? I = t[24] : (I = [y], t[23] = y, t[24] = I);
|
|
26590
|
-
let L,
|
|
26590
|
+
let L, R;
|
|
26591
26591
|
t[25] !== u || t[26] !== r ? (L = (e) => {
|
|
26592
26592
|
let [t] = e;
|
|
26593
26593
|
b(t), u || r(t);
|
|
26594
|
-
},
|
|
26594
|
+
}, R = (e) => {
|
|
26595
26595
|
let [t] = e;
|
|
26596
26596
|
u && r(t);
|
|
26597
|
-
}, t[25] = u, t[26] = r, t[27] = L, t[28] =
|
|
26598
|
-
let
|
|
26599
|
-
t[29] !== g || t[30] !== _ || t[31] !== d || t[32] !== a || t[33] !== s || t[34] !== o || t[35] !== F || t[36] !== I || t[37] !== L || t[38] !==
|
|
26597
|
+
}, t[25] = u, t[26] = r, t[27] = L, t[28] = R) : (L = t[27], R = t[28]);
|
|
26598
|
+
let ee;
|
|
26599
|
+
t[29] !== g || t[30] !== _ || t[31] !== d || t[32] !== a || t[33] !== s || t[34] !== o || t[35] !== F || t[36] !== I || t[37] !== L || t[38] !== R || t[39] !== m ? (ee = /* @__PURE__ */ (0, J.jsx)(PN, {
|
|
26600
26600
|
id: _,
|
|
26601
26601
|
className: F,
|
|
26602
26602
|
value: I,
|
|
@@ -26605,41 +26605,41 @@ var aV = (e) => {
|
|
|
26605
26605
|
step: s,
|
|
26606
26606
|
orientation: d,
|
|
26607
26607
|
onValueChange: L,
|
|
26608
|
-
onValueCommit:
|
|
26608
|
+
onValueCommit: R,
|
|
26609
26609
|
valueMap: m,
|
|
26610
26610
|
disabled: g
|
|
26611
|
-
}), t[29] = g, t[30] = _, t[31] = d, t[32] = a, t[33] = s, t[34] = o, t[35] = F, t[36] = I, t[37] = L, t[38] =
|
|
26612
|
-
let
|
|
26613
|
-
t[41] !== y || t[42] !== v || t[43] !== f || t[44] !== m ? (
|
|
26611
|
+
}), t[29] = g, t[30] = _, t[31] = d, t[32] = a, t[33] = s, t[34] = o, t[35] = F, t[36] = I, t[37] = L, t[38] = R, t[39] = m, t[40] = ee) : ee = t[40];
|
|
26612
|
+
let z;
|
|
26613
|
+
t[41] !== y || t[42] !== v || t[43] !== f || t[44] !== m ? (z = f && /* @__PURE__ */ (0, J.jsx)("div", {
|
|
26614
26614
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
26615
26615
|
children: Pi(m(y), { locale: v })
|
|
26616
|
-
}), t[41] = y, t[42] = v, t[43] = f, t[44] = m, t[45] =
|
|
26617
|
-
let
|
|
26618
|
-
t[46] !== g || t[47] !== E || t[48] !== h || t[49] !== O || t[50] !== n ? (
|
|
26616
|
+
}), t[41] = y, t[42] = v, t[43] = f, t[44] = m, t[45] = z) : z = t[45];
|
|
26617
|
+
let te;
|
|
26618
|
+
t[46] !== g || t[47] !== E || t[48] !== h || t[49] !== O || t[50] !== n ? (te = h && /* @__PURE__ */ (0, J.jsx)(oa, {
|
|
26619
26619
|
...O,
|
|
26620
26620
|
onChange: E,
|
|
26621
26621
|
className: "w-24",
|
|
26622
26622
|
"aria-label": `${n || "Slider"} value input`,
|
|
26623
26623
|
isDisabled: g
|
|
26624
|
-
}), t[46] = g, t[47] = E, t[48] = h, t[49] = O, t[50] = n, t[51] =
|
|
26625
|
-
let
|
|
26626
|
-
t[52] !== N || t[53] !==
|
|
26624
|
+
}), t[46] = g, t[47] = E, t[48] = h, t[49] = O, t[50] = n, t[51] = te) : te = t[51];
|
|
26625
|
+
let ne;
|
|
26626
|
+
t[52] !== N || t[53] !== ee || t[54] !== z || t[55] !== te ? (ne = /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
26627
26627
|
className: N,
|
|
26628
26628
|
children: [
|
|
26629
|
-
|
|
26630
|
-
|
|
26631
|
-
|
|
26629
|
+
ee,
|
|
26630
|
+
z,
|
|
26631
|
+
te
|
|
26632
26632
|
]
|
|
26633
|
-
}), t[52] = N, t[53] =
|
|
26633
|
+
}), t[52] = N, t[53] = ee, t[54] = z, t[55] = te, t[56] = ne) : ne = t[56];
|
|
26634
26634
|
let re;
|
|
26635
|
-
return t[57] !== p || t[58] !== _ || t[59] !== n || t[60] !==
|
|
26635
|
+
return t[57] !== p || t[58] !== _ || t[59] !== n || t[60] !== ne || t[61] !== k || t[62] !== j ? (re = /* @__PURE__ */ (0, J.jsx)(uM, {
|
|
26636
26636
|
label: n,
|
|
26637
26637
|
id: _,
|
|
26638
26638
|
align: k,
|
|
26639
26639
|
fullWidth: p,
|
|
26640
26640
|
className: j,
|
|
26641
|
-
children:
|
|
26642
|
-
}), t[57] = p, t[58] = _, t[59] = n, t[60] =
|
|
26641
|
+
children: ne
|
|
26642
|
+
}), t[57] = p, t[58] = _, t[59] = n, t[60] = ne, t[61] = k, t[62] = j, t[63] = re) : re = t[63], re;
|
|
26643
26643
|
}, oV = class {
|
|
26644
26644
|
tagName = "marimo-switch";
|
|
26645
26645
|
validator = B({
|
|
@@ -26870,7 +26870,7 @@ var dV = class {
|
|
|
26870
26870
|
passwordHasValue: W().optional()
|
|
26871
26871
|
});
|
|
26872
26872
|
render(e) {
|
|
26873
|
-
let t = e.data.kind === "password" ? e.host.closest(`[${
|
|
26873
|
+
let t = e.data.kind === "password" ? e.host.closest(`[${k}]`)?.getAttribute(k) : void 0;
|
|
26874
26874
|
return /* @__PURE__ */ (0, J.jsx)(hV, {
|
|
26875
26875
|
...e.data,
|
|
26876
26876
|
value: e.value,
|
|
@@ -27023,19 +27023,19 @@ var _V = q.lazy(() => import("./vega-component-B2K69XxL.js")), vV = class {
|
|
|
27023
27023
|
let t = (0, Y.c)(8), { labels: n, multiple: r, children: i } = e, a = r ? "multiple" : "single", o;
|
|
27024
27024
|
if (t[0] !== i || t[1] !== n) {
|
|
27025
27025
|
let e;
|
|
27026
|
-
t[3] === n ? e = t[4] : (e = (e, t) => /* @__PURE__ */ (0, J.jsxs)(
|
|
27026
|
+
t[3] === n ? e = t[4] : (e = (e, t) => /* @__PURE__ */ (0, J.jsxs)(pt, {
|
|
27027
27027
|
value: t.toString(),
|
|
27028
|
-
children: [/* @__PURE__ */ (0, J.jsx)(
|
|
27028
|
+
children: [/* @__PURE__ */ (0, J.jsx)(bt, {
|
|
27029
27029
|
className: "py-2 text-md",
|
|
27030
27030
|
children: P({ html: n[t] })
|
|
27031
|
-
}), /* @__PURE__ */ (0, J.jsx)(
|
|
27031
|
+
}), /* @__PURE__ */ (0, J.jsx)(Me, {
|
|
27032
27032
|
className: "text-md",
|
|
27033
27033
|
children: e
|
|
27034
27034
|
})]
|
|
27035
27035
|
}, t), t[3] = n, t[4] = e), o = q.Children.map(i, e), t[0] = i, t[1] = n, t[2] = o;
|
|
27036
27036
|
} else o = t[2];
|
|
27037
27037
|
let s;
|
|
27038
|
-
return t[5] !== o || t[6] !== a ? (s = /* @__PURE__ */ (0, J.jsx)(
|
|
27038
|
+
return t[5] !== o || t[6] !== a ? (s = /* @__PURE__ */ (0, J.jsx)(Ue, {
|
|
27039
27039
|
type: a,
|
|
27040
27040
|
className: "text-muted-foreground",
|
|
27041
27041
|
collapsible: !0,
|
|
@@ -27140,7 +27140,7 @@ var CV = class {
|
|
|
27140
27140
|
} finally {
|
|
27141
27141
|
r(!1);
|
|
27142
27142
|
}
|
|
27143
|
-
}, a = n ?
|
|
27143
|
+
}, a = n ? xe : Ar, o = e.label ? P({ html: e.label }) : "Download";
|
|
27144
27144
|
return /* @__PURE__ */ (0, J.jsxs)("a", {
|
|
27145
27145
|
href: e.data,
|
|
27146
27146
|
download: e.filename ?? "",
|
|
@@ -27210,7 +27210,7 @@ var CV = class {
|
|
|
27210
27210
|
return t[6] === f ? e = t[7] : (e = /* @__PURE__ */ (0, J.jsx)(_m, { error: f }), t[6] = f, t[7] = e), e;
|
|
27211
27211
|
}
|
|
27212
27212
|
let m;
|
|
27213
|
-
t[8] !== d || t[9] !== p || t[10] !== r ? (m = p && r ? /* @__PURE__ */ (0, J.jsx)(
|
|
27213
|
+
t[8] !== d || t[9] !== p || t[10] !== r ? (m = p && r ? /* @__PURE__ */ (0, J.jsx)(xe, { 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];
|
|
27214
27214
|
let h;
|
|
27215
27215
|
return t[12] !== s || t[13] !== m ? (h = /* @__PURE__ */ (0, J.jsx)("div", {
|
|
27216
27216
|
ref: s,
|
|
@@ -27253,7 +27253,7 @@ var CV = class {
|
|
|
27253
27253
|
//#endregion
|
|
27254
27254
|
//#region src/components/editor/chrome/panels/outline/useActiveOutline.tsx
|
|
27255
27255
|
function UV() {
|
|
27256
|
-
return
|
|
27256
|
+
return ye() === "edit" ? document.getElementById("App") : void 0;
|
|
27257
27257
|
}
|
|
27258
27258
|
function WV(e) {
|
|
27259
27259
|
let t = (0, Y.c)(7), [n, r] = (0, q.useState)(void 0), [i, a] = (0, q.useState)(void 0), o = (0, q.useRef)(null), s = (0, q.useRef)(null), c;
|
|
@@ -27265,7 +27265,7 @@ function WV(e) {
|
|
|
27265
27265
|
let n = e.target;
|
|
27266
27266
|
e.isIntersecting ? (!s.current || n.getBoundingClientRect().top < s.current.getBoundingClientRect().top) && (s.current = n, t = !0) : n === s.current && (s.current = null, t = !0);
|
|
27267
27267
|
}), t && s.current) {
|
|
27268
|
-
let e =
|
|
27268
|
+
let e = Ie(s.current), t = "id" in e ? e.id : e.path;
|
|
27269
27269
|
r(t), a(l.current.get(s.current));
|
|
27270
27270
|
}
|
|
27271
27271
|
}, {
|
|
@@ -27274,7 +27274,7 @@ function WV(e) {
|
|
|
27274
27274
|
threshold: 0
|
|
27275
27275
|
}), e.forEach((t) => {
|
|
27276
27276
|
if (t) {
|
|
27277
|
-
let n =
|
|
27277
|
+
let n = Ie(t[0]), r = e.map(GV).filter((e) => "id" in n ? e.id === n.id : e.textContent === t[0].textContent).indexOf(t[0]);
|
|
27278
27278
|
l.current.set(t[0], r), o.current?.observe(t[0]);
|
|
27279
27279
|
}
|
|
27280
27280
|
}), () => {
|
|
@@ -27319,7 +27319,7 @@ function JV(e, t) {
|
|
|
27319
27319
|
//#endregion
|
|
27320
27320
|
//#region src/components/editor/chrome/panels/outline/floating-outline.tsx
|
|
27321
27321
|
var YV = () => {
|
|
27322
|
-
let e = (0, Y.c)(19), { items: t } = Nm(
|
|
27322
|
+
let e = (0, Y.c)(19), { items: t } = Nm(ot), n;
|
|
27323
27323
|
e[0] === t ? n = e[1] : (n = KV(t), e[0] = t, e[1] = n);
|
|
27324
27324
|
let { activeHeaderId: r, activeOccurrences: i } = WV(n), [a, o] = q.useState(!1);
|
|
27325
27325
|
if (t.length < 2) return null;
|
|
@@ -27390,7 +27390,7 @@ var YV = () => {
|
|
|
27390
27390
|
children: s
|
|
27391
27391
|
}), t[8] = o, t[9] = s, t[10] = c) : c = t[10], c;
|
|
27392
27392
|
}, QV = (e) => {
|
|
27393
|
-
let t = (0, Y.c)(12), { label: n } = e, { items: r } = Nm(
|
|
27393
|
+
let t = (0, Y.c)(12), { label: n } = e, { items: r } = Nm(ot), i;
|
|
27394
27394
|
t[0] === r ? i = t[1] : (i = KV(r), t[0] = r, t[1] = i);
|
|
27395
27395
|
let { activeHeaderId: a, activeOccurrences: o } = WV(i);
|
|
27396
27396
|
if (r.length === 0) {
|
|
@@ -28203,7 +28203,7 @@ var YV = () => {
|
|
|
28203
28203
|
a
|
|
28204
28204
|
]
|
|
28205
28205
|
})]
|
|
28206
|
-
}) : /* @__PURE__ */ (0, J.jsx)(
|
|
28206
|
+
}) : /* @__PURE__ */ (0, J.jsx)(xe, { className: "w-12 h-12 animate-spin text-primary mx-auto" }), t[0] = i, t[1] = a, t[2] = l) : l = t[2];
|
|
28207
28207
|
let u = l, d;
|
|
28208
28208
|
t[3] !== o || t[4] !== i || t[5] !== s || t[6] !== a ? (d = () => {
|
|
28209
28209
|
let e = typeof i == "number" && a != null && i >= a, t = [];
|
|
@@ -28853,7 +28853,7 @@ var xH = /* @__PURE__ */ i(((e, t) => {
|
|
|
28853
28853
|
return e === t || e.className === t.className && n(e.style, t.style) && e.width === t.width && e.autoSize === t.autoSize && e.cols === t.cols && e.draggableCancel === t.draggableCancel && e.draggableHandle === t.draggableHandle && n(e.verticalCompact, t.verticalCompact) && n(e.compactType, t.compactType) && n(e.layout, t.layout) && n(e.margin, t.margin) && n(e.containerPadding, t.containerPadding) && e.rowHeight === t.rowHeight && e.maxRows === t.maxRows && e.isBounded === t.isBounded && e.isDraggable === t.isDraggable && e.isResizable === t.isResizable && e.allowOverlap === t.allowOverlap && e.preventCollision === t.preventCollision && e.useCSSTransforms === t.useCSSTransforms && e.transformScale === t.transformScale && e.isDroppable === t.isDroppable && n(e.resizeHandles, t.resizeHandles) && n(e.resizeHandle, t.resizeHandle) && e.onLayoutChange === t.onLayoutChange && e.onDragStart === t.onDragStart && e.onDrag === t.onDrag && e.onDragStop === t.onDragStop && e.onResizeStart === t.onResizeStart && e.onResize === t.onResize && e.onResizeStop === t.onResizeStop && e.onDrop === t.onDrop && n(e.droppingItem, t.droppingItem) && n(e.innerRef, t.innerRef);
|
|
28854
28854
|
};
|
|
28855
28855
|
})), wH = /* @__PURE__ */ i(((e) => {
|
|
28856
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.bottom = l, e.childrenEqual = m, e.cloneLayout = u, e.cloneLayoutItem = p, e.collides = g, e.compact = _, e.compactItem = x, e.compactType = se, e.correctBounds = S, e.fastPositionEqual = h, e.fastRGLPropsEqual = void 0, e.getAllCollisions = T, e.getFirstCollision = w, e.getLayoutItem = C, e.getStatics = E, e.modifyLayout = d, e.moveElement = D, e.moveElementAwayFromCollision = O, e.noop = void 0, e.perc = k, e.resizeItemInDirection =
|
|
28856
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.bottom = l, e.childrenEqual = m, e.cloneLayout = u, e.cloneLayoutItem = p, e.collides = g, e.compact = _, e.compactItem = x, e.compactType = se, e.correctBounds = S, e.fastPositionEqual = h, e.fastRGLPropsEqual = void 0, e.getAllCollisions = T, e.getFirstCollision = w, e.getLayoutItem = C, e.getStatics = E, e.modifyLayout = d, e.moveElement = D, e.moveElementAwayFromCollision = O, e.noop = void 0, e.perc = k, e.resizeItemInDirection = ee, e.setTopLeft = te, e.setTransform = z, e.sortLayoutItems = ne, e.sortLayoutItemsByColRow = ie, e.sortLayoutItemsByRowCol = re, e.synchronizeLayoutWithChildren = ae, e.validateLayout = oe, e.withLayoutItem = f;
|
|
28857
28857
|
var t = xH(), n = r(y());
|
|
28858
28858
|
function r(e) {
|
|
28859
28859
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -28950,7 +28950,7 @@ var xH = /* @__PURE__ */ i(((e, t) => {
|
|
|
28950
28950
|
return !(e.i === t.i || e.x + e.w <= t.x || e.x >= t.x + t.w || e.y + e.h <= t.y || e.y >= t.y + t.h);
|
|
28951
28951
|
}
|
|
28952
28952
|
function _(e, t, n, r) {
|
|
28953
|
-
let i = E(e), a = l(i), o =
|
|
28953
|
+
let i = E(e), a = l(i), o = ne(e, t), s = Array(e.length);
|
|
28954
28954
|
for (let c = 0, l = o.length; c < l; c++) {
|
|
28955
28955
|
let l = p(o[c]);
|
|
28956
28956
|
l.static || (l = x(i, l, t, n, o, r, a), a = Math.max(a, l.y + l.h), i.push(l)), s[e.indexOf(o[c])] = l, l.moved = !1;
|
|
@@ -29008,7 +29008,7 @@ var xH = /* @__PURE__ */ i(((e, t) => {
|
|
|
29008
29008
|
`${t.i}${String(n)}${String(r)}${t.x}${t.y}`;
|
|
29009
29009
|
let l = t.x, d = t.y;
|
|
29010
29010
|
typeof n == "number" && (t.x = n), typeof r == "number" && (t.y = r), t.moved = !0;
|
|
29011
|
-
let f =
|
|
29011
|
+
let f = ne(e, o);
|
|
29012
29012
|
(o === "vertical" && typeof r == "number" ? d >= r : o === "horizontal" && typeof n == "number" && l >= n) && (f = f.reverse());
|
|
29013
29013
|
let p = T(f, t), m = p.length > 0;
|
|
29014
29014
|
if (m && c) return u(e);
|
|
@@ -29073,7 +29073,7 @@ var xH = /* @__PURE__ */ i(((e, t) => {
|
|
|
29073
29073
|
height: j(r, e.height, a),
|
|
29074
29074
|
top: N(r)
|
|
29075
29075
|
};
|
|
29076
|
-
},
|
|
29076
|
+
}, R = {
|
|
29077
29077
|
n: P,
|
|
29078
29078
|
ne: function() {
|
|
29079
29079
|
return P(arguments.length <= 0 ? void 0 : arguments[0], F(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
@@ -29091,11 +29091,11 @@ var xH = /* @__PURE__ */ i(((e, t) => {
|
|
|
29091
29091
|
return P(arguments.length <= 0 ? void 0 : arguments[0], I(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29092
29092
|
}
|
|
29093
29093
|
};
|
|
29094
|
-
function
|
|
29095
|
-
let i =
|
|
29094
|
+
function ee(e, t, n, r) {
|
|
29095
|
+
let i = R[e];
|
|
29096
29096
|
return i ? i(t, a(a({}, t), n), r) : n;
|
|
29097
29097
|
}
|
|
29098
|
-
function
|
|
29098
|
+
function z(e) {
|
|
29099
29099
|
let { top: t, left: n, width: r, height: i } = e, a = `translate(${n}px,${t}px)`;
|
|
29100
29100
|
return {
|
|
29101
29101
|
transform: a,
|
|
@@ -29108,7 +29108,7 @@ var xH = /* @__PURE__ */ i(((e, t) => {
|
|
|
29108
29108
|
position: "absolute"
|
|
29109
29109
|
};
|
|
29110
29110
|
}
|
|
29111
|
-
function
|
|
29111
|
+
function te(e) {
|
|
29112
29112
|
let { top: t, left: n, width: r, height: i } = e;
|
|
29113
29113
|
return {
|
|
29114
29114
|
top: `${t}px`,
|
|
@@ -29118,7 +29118,7 @@ var xH = /* @__PURE__ */ i(((e, t) => {
|
|
|
29118
29118
|
position: "absolute"
|
|
29119
29119
|
};
|
|
29120
29120
|
}
|
|
29121
|
-
function
|
|
29121
|
+
function ne(e, t) {
|
|
29122
29122
|
return t === "horizontal" ? ie(e) : t === "vertical" ? re(e) : e;
|
|
29123
29123
|
}
|
|
29124
29124
|
function re(e) {
|
|
@@ -31748,7 +31748,7 @@ var DU = (0, SU.WidthProvider)(SU.Responsive), OU = [0, 0], kU = "grid-drag-hand
|
|
|
31748
31748
|
}, _ = [n.bordered], t[4] = n.bordered, t[5] = g, t[6] = _), (0, q.useEffect)(g, _);
|
|
31749
31749
|
let v = EU(), y, b;
|
|
31750
31750
|
t[7] === v ? (y = t[8], b = t[9]) : ({isDragging: b, ...y} = v, t[7] = v, t[8] = y, t[9] = b);
|
|
31751
|
-
let x = !o && !f, S, C, w, T, E, D, O, k, A, j, M, N, P, F, I, L, ee,
|
|
31751
|
+
let x = !o && !f, S, C, w, T, E, D, O, k, A, j, M, N, P, F, I, L, R, ee, z, te, ne, re, ie, ae, oe, se;
|
|
31752
31752
|
if (t[10] !== i || t[11] !== h || t[12] !== y || t[13] !== u || t[14] !== x || t[15] !== c || t[16] !== b || t[17] !== o || t[18] !== n || t[19] !== a || t[20] !== r) {
|
|
31753
31753
|
let e = sn.keyBy(n.cells, RU), s;
|
|
31754
31754
|
t[47] !== n || t[48] !== r ? (s = (e) => (t) => {
|
|
@@ -31789,7 +31789,7 @@ var DU = (0, SU.WidthProvider)(SU.Responsive), OU = [0, 0], kU = "grid-drag-hand
|
|
|
31789
31789
|
y.onDragMove(i);
|
|
31790
31790
|
}, L = () => {
|
|
31791
31791
|
y.onDragStop();
|
|
31792
|
-
}, t[76] = y, t[77] = F, t[78] = I, t[79] = L),
|
|
31792
|
+
}, t[76] = y, t[77] = F, t[78] = I, t[79] = L), R = zU, ee = x, z = x, te = x, ne = x ? `.${kU}` : "noop";
|
|
31793
31793
|
let v;
|
|
31794
31794
|
t[80] === c ? v = t[81] : (v = (e) => c.has(e.id), t[80] = c, t[81] = v), re = i.filter(v).map((t) => {
|
|
31795
31795
|
let i = e.get(t.id), o = n.scrollableCells.has(t.id) ?? !1, s = n.cellSide.get(t.id), c = /* @__PURE__ */ (0, J.jsx)(jU, {
|
|
@@ -31798,7 +31798,7 @@ var DU = (0, SU.WidthProvider)(SU.Responsive), OU = [0, 0], kU = "grid-drag-hand
|
|
|
31798
31798
|
cellId: t.id,
|
|
31799
31799
|
output: t.output,
|
|
31800
31800
|
status: t.status,
|
|
31801
|
-
stale:
|
|
31801
|
+
stale: Je(t, !1),
|
|
31802
31802
|
isScrollable: o,
|
|
31803
31803
|
side: s,
|
|
31804
31804
|
hidden: t.errored || t.interrupted || t.stopped
|
|
@@ -31819,10 +31819,10 @@ var DU = (0, SU.WidthProvider)(SU.Responsive), OU = [0, 0], kU = "grid-drag-hand
|
|
|
31819
31819
|
},
|
|
31820
31820
|
children: c
|
|
31821
31821
|
}, t.id) : /* @__PURE__ */ (0, J.jsx)("div", { children: c }, t.id);
|
|
31822
|
-
}), t[10] = i, t[11] = h, t[12] = y, t[13] = u, t[14] = x, t[15] = c, t[16] = b, t[17] = o, t[18] = n, t[19] = a, t[20] = r, t[21] = S, t[22] = C, t[23] = w, t[24] = T, t[25] = E, t[26] = D, t[27] = O, t[28] = k, t[29] = A, t[30] = j, t[31] = M, t[32] = N, t[33] = P, t[34] = F, t[35] = I, t[36] = L, t[37] =
|
|
31823
|
-
} else S = t[21], C = t[22], w = t[23], T = t[24], E = t[25], D = t[26], O = t[27], k = t[28], A = t[29], j = t[30], M = t[31], N = t[32], P = t[33], F = t[34], I = t[35], L = t[36],
|
|
31822
|
+
}), t[10] = i, t[11] = h, t[12] = y, t[13] = u, t[14] = x, t[15] = c, t[16] = b, t[17] = o, t[18] = n, t[19] = a, t[20] = r, t[21] = S, t[22] = C, t[23] = w, t[24] = T, t[25] = E, t[26] = D, t[27] = O, t[28] = k, t[29] = A, t[30] = j, t[31] = M, t[32] = N, t[33] = P, t[34] = F, t[35] = I, t[36] = L, t[37] = R, t[38] = ee, t[39] = z, t[40] = te, t[41] = ne, t[42] = re, t[43] = ie, t[44] = ae, t[45] = oe, t[46] = se;
|
|
31823
|
+
} else S = t[21], C = t[22], w = t[23], T = t[24], E = t[25], D = t[26], O = t[27], k = t[28], A = t[29], j = t[30], M = t[31], N = t[32], P = t[33], F = t[34], I = t[35], L = t[36], R = t[37], ee = t[38], z = t[39], te = t[40], ne = t[41], re = t[42], ie = t[43], ae = t[44], oe = t[45], se = t[46];
|
|
31824
31824
|
let ce;
|
|
31825
|
-
t[82] !== S || t[83] !== w || t[84] !== T || t[85] !== E || t[86] !== D || t[87] !== O || t[88] !== k || t[89] !== A || t[90] !== j || t[91] !== M || t[92] !== N || t[93] !== P || t[94] !== F || t[95] !== I || t[96] !== L || t[97] !==
|
|
31825
|
+
t[82] !== S || t[83] !== w || t[84] !== T || t[85] !== E || t[86] !== D || t[87] !== O || t[88] !== k || t[89] !== A || t[90] !== j || t[91] !== M || t[92] !== N || t[93] !== P || t[94] !== F || t[95] !== I || t[96] !== L || t[97] !== R || t[98] !== ee || t[99] !== z || t[100] !== te || t[101] !== ne || t[102] !== re || t[103] !== ie || t[104] !== ae || t[105] !== oe || t[106] !== se ? (ce = /* @__PURE__ */ (0, J.jsx)(S, {
|
|
31826
31826
|
breakpoint: ie,
|
|
31827
31827
|
layouts: ae,
|
|
31828
31828
|
style: oe,
|
|
@@ -31841,13 +31841,13 @@ var DU = (0, SU.WidthProvider)(SU.Responsive), OU = [0, 0], kU = "grid-drag-hand
|
|
|
31841
31841
|
onDragStart: F,
|
|
31842
31842
|
onDrag: I,
|
|
31843
31843
|
onDragStop: L,
|
|
31844
|
-
onResizeStop:
|
|
31845
|
-
isDraggable:
|
|
31846
|
-
isDroppable:
|
|
31847
|
-
isResizable:
|
|
31848
|
-
draggableHandle:
|
|
31844
|
+
onResizeStop: R,
|
|
31845
|
+
isDraggable: ee,
|
|
31846
|
+
isDroppable: z,
|
|
31847
|
+
isResizable: te,
|
|
31848
|
+
draggableHandle: ne,
|
|
31849
31849
|
children: re
|
|
31850
|
-
}), t[82] = S, t[83] = w, t[84] = T, t[85] = E, t[86] = D, t[87] = O, t[88] = k, t[89] = A, t[90] = j, t[91] = M, t[92] = N, t[93] = P, t[94] = F, t[95] = I, t[96] = L, t[97] =
|
|
31850
|
+
}), t[82] = S, t[83] = w, t[84] = T, t[85] = E, t[86] = D, t[87] = O, t[88] = k, t[89] = A, t[90] = j, t[91] = M, t[92] = N, t[93] = P, t[94] = F, t[95] = I, t[96] = L, t[97] = R, t[98] = ee, t[99] = z, t[100] = te, t[101] = ne, t[102] = re, t[103] = ie, t[104] = ae, t[105] = oe, t[106] = se, t[107] = ce) : ce = t[107];
|
|
31851
31851
|
let le = ce, ue, de, fe, pe, me, he, ge;
|
|
31852
31852
|
if (t[108] !== i || t[109] !== le || t[110] !== c || t[111] !== f || t[112] !== o || t[113] !== n || t[114] !== a || t[115] !== r || t[116] !== C) {
|
|
31853
31853
|
ge = Symbol.for("react.early_return_sentinel");
|
|
@@ -31874,7 +31874,7 @@ var DU = (0, SU.WidthProvider)(SU.Responsive), OU = [0, 0], kU = "grid-drag-hand
|
|
|
31874
31874
|
cellId: e.id,
|
|
31875
31875
|
output: e.output,
|
|
31876
31876
|
status: e.status,
|
|
31877
|
-
stale:
|
|
31877
|
+
stale: Je(e, !1),
|
|
31878
31878
|
isScrollable: !1,
|
|
31879
31879
|
hidden: !1
|
|
31880
31880
|
}, e.id), t[130] = a, t[131] = r), ge = /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [le, /* @__PURE__ */ (0, J.jsx)("div", {
|
|
@@ -31932,7 +31932,7 @@ var DU = (0, SU.WidthProvider)(SU.Responsive), OU = [0, 0], kU = "grid-drag-hand
|
|
|
31932
31932
|
output: e.output,
|
|
31933
31933
|
isScrollable: !1,
|
|
31934
31934
|
status: e.status,
|
|
31935
|
-
stale:
|
|
31935
|
+
stale: Je(e, !1),
|
|
31936
31936
|
hidden: !1
|
|
31937
31937
|
})
|
|
31938
31938
|
}, e.id), t[146] = n.columns, t[147] = n.rowHeight, t[148] = a, t[149] = m) : m = t[149], fe = s.map(m);
|
|
@@ -31954,7 +31954,7 @@ var DU = (0, SU.WidthProvider)(SU.Responsive), OU = [0, 0], kU = "grid-drag-hand
|
|
|
31954
31954
|
return t[158] !== he || t[159] !== ve ? (ye = /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [he, ve] }), t[158] = he, t[159] = ve, t[160] = ye) : ye = t[160], ye;
|
|
31955
31955
|
}, jU = (0, q.memo)((e) => {
|
|
31956
31956
|
let t = (0, Y.c)(21), { output: n, cellId: r, status: i, mode: a, code: o, hidden: s, isScrollable: c, side: u, className: d, stale: f } = e, p;
|
|
31957
|
-
t[0] === i ? p = t[1] : (p =
|
|
31957
|
+
t[0] === i ? p = t[1] : (p = ut(i), t[0] = i, t[1] = p);
|
|
31958
31958
|
let m = p;
|
|
31959
31959
|
if ((n == null || n.data === "") && a !== "read") {
|
|
31960
31960
|
let e;
|
|
@@ -32060,7 +32060,7 @@ var MU = (e) => {
|
|
|
32060
32060
|
t[21] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, J.jsxs)(bm, {
|
|
32061
32061
|
className: "flex flex-row items-center gap-1",
|
|
32062
32062
|
htmlFor: "lock",
|
|
32063
|
-
children: [/* @__PURE__ */ (0, J.jsx)(
|
|
32063
|
+
children: [/* @__PURE__ */ (0, J.jsx)(Le, { className: "h-3 w-3" }), "Bordered"]
|
|
32064
32064
|
}), t[21] = h) : h = t[21];
|
|
32065
32065
|
let g;
|
|
32066
32066
|
t[22] !== n || t[23] !== r ? (g = (e) => {
|
|
@@ -32378,10 +32378,10 @@ var WU = (e) => {
|
|
|
32378
32378
|
//#endregion
|
|
32379
32379
|
//#region src/components/editor/cell/useDeleteCell.tsx
|
|
32380
32380
|
function GU() {
|
|
32381
|
-
let e = (0, Y.c)(4), { deleteCell: t, undoDeleteCell: n } =
|
|
32381
|
+
let e = (0, Y.c)(4), { deleteCell: t, undoDeleteCell: n } = Ee(), { sendDeleteCell: r } = lt(), i;
|
|
32382
32382
|
return e[0] !== t || e[1] !== r || e[2] !== n ? (i = (e) => {
|
|
32383
|
-
if (Im.get(
|
|
32384
|
-
let { cellId: i } = e, a = (Im.get(
|
|
32383
|
+
if (Im.get(Ce)) return;
|
|
32384
|
+
let { cellId: i } = e, a = (Im.get(re).cellData[i]?.code ?? "").trim() === "";
|
|
32385
32385
|
if (t({ cellId: i }), r({ cellId: i }).catch(() => {
|
|
32386
32386
|
n();
|
|
32387
32387
|
}), !a) {
|
|
@@ -33980,14 +33980,14 @@ var PK = /*#__PURE__*/ (0, q.memo)(function(e) {
|
|
|
33980
33980
|
dragging: g,
|
|
33981
33981
|
dependencies: [y.x, y.y],
|
|
33982
33982
|
config: M.droppable
|
|
33983
|
-
}), I = JG(v, _), L = (0, q.useMemo)(() => D ? gW(D) : null, [D]),
|
|
33983
|
+
}), I = JG(v, _), L = (0, q.useMemo)(() => D ? gW(D) : null, [D]), R = ke(), ee = tK(I, M.draggable.measure);
|
|
33984
33984
|
jK({
|
|
33985
33985
|
activeNode: _ == null ? null : v.get(_),
|
|
33986
|
-
config:
|
|
33987
|
-
initialRect:
|
|
33986
|
+
config: R.layoutShiftCompensation,
|
|
33987
|
+
initialRect: ee,
|
|
33988
33988
|
measure: M.draggable.measure
|
|
33989
33989
|
});
|
|
33990
|
-
let
|
|
33990
|
+
let z = aK(I, M.draggable.measure, ee), te = aK(I ? I.parentElement : null), ne = (0, q.useRef)({
|
|
33991
33991
|
activatorEvent: null,
|
|
33992
33992
|
active: null,
|
|
33993
33993
|
activeNode: I,
|
|
@@ -34001,7 +34001,7 @@ var PK = /*#__PURE__*/ (0, q.memo)(function(e) {
|
|
|
34001
34001
|
over: null,
|
|
34002
34002
|
scrollableAncestors: [],
|
|
34003
34003
|
scrollAdjustedTranslate: null
|
|
34004
|
-
}), re = b.getNodeFor(
|
|
34004
|
+
}), re = b.getNodeFor(ne.current.over?.id), ie = _K({ measure: M.dragOverlay.measure }), ae = ie.nodeRef.current ?? I, oe = g ? ie.rect ?? z : null, se = !!(ie.nodeRef.current && ie.rect), ce = oK(se ? null : z), le = pK(ae ? XU(ae) : null), ue = cK(g ? re ?? I : null), de = hK(ue), fe = kK(c, {
|
|
34005
34005
|
transform: {
|
|
34006
34006
|
x: y.x - ce.x,
|
|
34007
34007
|
y: y.y - ce.y,
|
|
@@ -34010,21 +34010,21 @@ var PK = /*#__PURE__*/ (0, q.memo)(function(e) {
|
|
|
34010
34010
|
},
|
|
34011
34011
|
activatorEvent: D,
|
|
34012
34012
|
active: C,
|
|
34013
|
-
activeNodeRect:
|
|
34014
|
-
containerNodeRect:
|
|
34013
|
+
activeNodeRect: z,
|
|
34014
|
+
containerNodeRect: te,
|
|
34015
34015
|
draggingNodeRect: oe,
|
|
34016
|
-
over:
|
|
34016
|
+
over: ne.current.over,
|
|
34017
34017
|
overlayNodeRect: ie.rect,
|
|
34018
34018
|
scrollableAncestors: ue,
|
|
34019
34019
|
scrollableAncestorRects: de,
|
|
34020
34020
|
windowRect: le
|
|
34021
|
-
}), pe = L ? dW(L, y) : null, me = lK(ue), he = uK(me), ge = uK(me, [
|
|
34021
|
+
}), pe = L ? dW(L, y) : null, me = lK(ue), he = uK(me), ge = uK(me, [z]), _e = dW(fe, he), ve = oe ? XW(oe, fe) : null, ye = C && ve ? o({
|
|
34022
34022
|
active: C,
|
|
34023
34023
|
collisionRect: ve,
|
|
34024
34024
|
droppableRects: N,
|
|
34025
34025
|
droppableContainers: j,
|
|
34026
34026
|
pointerCoordinates: pe
|
|
34027
|
-
}) : null, be = BW(ye, "id"), [xe, Se] = (0, q.useState)(null), Ce = qW(se ? fe : dW(fe, ge), xe?.rect ?? null,
|
|
34027
|
+
}) : null, be = BW(ye, "id"), [xe, Se] = (0, q.useState)(null), Ce = qW(se ? fe : dW(fe, ge), xe?.rect ?? null, z), we = (0, q.useRef)(null), Te = (0, q.useCallback)((e, t) => {
|
|
34028
34028
|
let { sensor: n, options: r } = t;
|
|
34029
34029
|
if (w.current == null) return;
|
|
34030
34030
|
let i = v.get(w.current);
|
|
@@ -34034,7 +34034,7 @@ var PK = /*#__PURE__*/ (0, q.memo)(function(e) {
|
|
|
34034
34034
|
activeNode: i,
|
|
34035
34035
|
event: a,
|
|
34036
34036
|
options: r,
|
|
34037
|
-
context:
|
|
34037
|
+
context: ne,
|
|
34038
34038
|
onAbort(e) {
|
|
34039
34039
|
if (!v.get(e)) return;
|
|
34040
34040
|
let { onDragAbort: t } = k.current, n = { id: e };
|
|
@@ -34092,7 +34092,7 @@ var PK = /*#__PURE__*/ (0, q.memo)(function(e) {
|
|
|
34092
34092
|
we.current = o;
|
|
34093
34093
|
function s(e) {
|
|
34094
34094
|
return async function() {
|
|
34095
|
-
let { active: t, collisions: n, over: r, scrollAdjustedTranslate: i } =
|
|
34095
|
+
let { active: t, collisions: n, over: r, scrollAdjustedTranslate: i } = ne.current, o = null;
|
|
34096
34096
|
if (t && i) {
|
|
34097
34097
|
let { cancelDrop: s } = k.current;
|
|
34098
34098
|
o = {
|
|
@@ -34123,9 +34123,9 @@ var PK = /*#__PURE__*/ (0, q.memo)(function(e) {
|
|
|
34123
34123
|
e(n, t.options, o) === !0 && (i.dndKit = { capturedBy: t.sensor }, w.current = r, Te(n, t));
|
|
34124
34124
|
}, [v, Te]));
|
|
34125
34125
|
dK(a), tW(() => {
|
|
34126
|
-
|
|
34127
|
-
}, [
|
|
34128
|
-
let { onDragMove: e } = k.current, { active: t, activatorEvent: n, collisions: r, over: i } =
|
|
34126
|
+
z && m === NK.Initializing && h(NK.Initialized);
|
|
34127
|
+
}, [z, m]), (0, q.useEffect)(() => {
|
|
34128
|
+
let { onDragMove: e } = k.current, { active: t, activatorEvent: n, collisions: r, over: i } = ne.current;
|
|
34129
34129
|
if (!t || !n) return;
|
|
34130
34130
|
let a = {
|
|
34131
34131
|
active: t,
|
|
@@ -34144,7 +34144,7 @@ var PK = /*#__PURE__*/ (0, q.memo)(function(e) {
|
|
|
34144
34144
|
});
|
|
34145
34145
|
});
|
|
34146
34146
|
}, [_e.x, _e.y]), (0, q.useEffect)(() => {
|
|
34147
|
-
let { active: e, activatorEvent: t, collisions: n, droppableContainers: r, scrollAdjustedTranslate: i } =
|
|
34147
|
+
let { active: e, activatorEvent: t, collisions: n, droppableContainers: r, scrollAdjustedTranslate: i } = ne.current;
|
|
34148
34148
|
if (!e || w.current == null || !t || !i) return;
|
|
34149
34149
|
let { onDragOver: a } = k.current, o = r.get(be), s = o && o.rect.current ? {
|
|
34150
34150
|
id: o.id,
|
|
@@ -34168,7 +34168,7 @@ var PK = /*#__PURE__*/ (0, q.memo)(function(e) {
|
|
|
34168
34168
|
});
|
|
34169
34169
|
});
|
|
34170
34170
|
}, [be]), tW(() => {
|
|
34171
|
-
|
|
34171
|
+
ne.current = {
|
|
34172
34172
|
activatorEvent: D,
|
|
34173
34173
|
active: C,
|
|
34174
34174
|
activeNode: I,
|
|
@@ -34200,7 +34200,7 @@ var PK = /*#__PURE__*/ (0, q.memo)(function(e) {
|
|
|
34200
34200
|
ue,
|
|
34201
34201
|
_e
|
|
34202
34202
|
]), GG({
|
|
34203
|
-
...
|
|
34203
|
+
...R,
|
|
34204
34204
|
delta: y,
|
|
34205
34205
|
draggingRect: ve,
|
|
34206
34206
|
pointerCoordinates: pe,
|
|
@@ -34210,10 +34210,10 @@ var PK = /*#__PURE__*/ (0, q.memo)(function(e) {
|
|
|
34210
34210
|
let De = (0, q.useMemo)(() => ({
|
|
34211
34211
|
active: C,
|
|
34212
34212
|
activeNode: I,
|
|
34213
|
-
activeNodeRect:
|
|
34213
|
+
activeNodeRect: z,
|
|
34214
34214
|
activatorEvent: D,
|
|
34215
34215
|
collisions: ye,
|
|
34216
|
-
containerNodeRect:
|
|
34216
|
+
containerNodeRect: te,
|
|
34217
34217
|
dragOverlay: ie,
|
|
34218
34218
|
draggableNodes: v,
|
|
34219
34219
|
droppableContainers: b,
|
|
@@ -34228,10 +34228,10 @@ var PK = /*#__PURE__*/ (0, q.memo)(function(e) {
|
|
|
34228
34228
|
}), [
|
|
34229
34229
|
C,
|
|
34230
34230
|
I,
|
|
34231
|
-
|
|
34231
|
+
z,
|
|
34232
34232
|
D,
|
|
34233
34233
|
ye,
|
|
34234
|
-
|
|
34234
|
+
te,
|
|
34235
34235
|
ie,
|
|
34236
34236
|
v,
|
|
34237
34237
|
b,
|
|
@@ -34247,7 +34247,7 @@ var PK = /*#__PURE__*/ (0, q.memo)(function(e) {
|
|
|
34247
34247
|
activatorEvent: D,
|
|
34248
34248
|
activators: Ee,
|
|
34249
34249
|
active: C,
|
|
34250
|
-
activeNodeRect:
|
|
34250
|
+
activeNodeRect: z,
|
|
34251
34251
|
ariaDescribedById: { draggable: A },
|
|
34252
34252
|
dispatch: d,
|
|
34253
34253
|
draggableNodes: v,
|
|
@@ -34257,7 +34257,7 @@ var PK = /*#__PURE__*/ (0, q.memo)(function(e) {
|
|
|
34257
34257
|
D,
|
|
34258
34258
|
Ee,
|
|
34259
34259
|
C,
|
|
34260
|
-
|
|
34260
|
+
z,
|
|
34261
34261
|
d,
|
|
34262
34262
|
A,
|
|
34263
34263
|
v,
|
|
@@ -34748,13 +34748,13 @@ function bq(e) {
|
|
|
34748
34748
|
...n
|
|
34749
34749
|
},
|
|
34750
34750
|
disabled: y.draggable
|
|
34751
|
-
}), L = KU(E, j),
|
|
34751
|
+
}), L = KU(E, j), R = !!D, ee = R && !m && rq(f) && rq(g), z = !_ && N, te = ee ? (z && ee ? I : null) ?? (s ?? v)({
|
|
34752
34752
|
rects: h,
|
|
34753
34753
|
activeNodeRect: k,
|
|
34754
34754
|
activeIndex: f,
|
|
34755
34755
|
overIndex: g,
|
|
34756
34756
|
index: b
|
|
34757
|
-
}) : null,
|
|
34757
|
+
}) : null, ne = rq(f) && rq(g) ? a({
|
|
34758
34758
|
id: o,
|
|
34759
34759
|
items: u,
|
|
34760
34760
|
activeIndex: f,
|
|
@@ -34762,13 +34762,13 @@ function bq(e) {
|
|
|
34762
34762
|
}) : b, re = D?.id, ie = (0, q.useRef)({
|
|
34763
34763
|
activeId: re,
|
|
34764
34764
|
items: u,
|
|
34765
|
-
newIndex:
|
|
34765
|
+
newIndex: ne,
|
|
34766
34766
|
containerId: d
|
|
34767
34767
|
}), ae = u !== ie.current.items, oe = t({
|
|
34768
34768
|
active: D,
|
|
34769
34769
|
containerId: d,
|
|
34770
34770
|
isDragging: N,
|
|
34771
|
-
isSorting:
|
|
34771
|
+
isSorting: R,
|
|
34772
34772
|
id: o,
|
|
34773
34773
|
index: b,
|
|
34774
34774
|
items: u,
|
|
@@ -34784,10 +34784,10 @@ function bq(e) {
|
|
|
34784
34784
|
rect: C
|
|
34785
34785
|
});
|
|
34786
34786
|
return (0, q.useEffect)(() => {
|
|
34787
|
-
|
|
34787
|
+
R && ie.current.newIndex !== ne && (ie.current.newIndex = ne), d !== ie.current.containerId && (ie.current.containerId = d), u !== ie.current.items && (ie.current.items = u);
|
|
34788
34788
|
}, [
|
|
34789
|
-
|
|
34790
|
-
|
|
34789
|
+
R,
|
|
34790
|
+
ne,
|
|
34791
34791
|
d,
|
|
34792
34792
|
u
|
|
34793
34793
|
]), (0, q.useEffect)(() => {
|
|
@@ -34807,10 +34807,10 @@ function bq(e) {
|
|
|
34807
34807
|
data: x,
|
|
34808
34808
|
rect: C,
|
|
34809
34809
|
index: b,
|
|
34810
|
-
newIndex:
|
|
34810
|
+
newIndex: ne,
|
|
34811
34811
|
items: u,
|
|
34812
34812
|
isOver: T,
|
|
34813
|
-
isSorting:
|
|
34813
|
+
isSorting: R,
|
|
34814
34814
|
isDragging: N,
|
|
34815
34815
|
listeners: M,
|
|
34816
34816
|
node: w,
|
|
@@ -34820,12 +34820,12 @@ function bq(e) {
|
|
|
34820
34820
|
setActivatorNodeRef: F,
|
|
34821
34821
|
setDroppableNodeRef: E,
|
|
34822
34822
|
setDraggableNodeRef: j,
|
|
34823
|
-
transform: se ??
|
|
34823
|
+
transform: se ?? te,
|
|
34824
34824
|
transition: ce()
|
|
34825
34825
|
};
|
|
34826
34826
|
function ce() {
|
|
34827
34827
|
if (se || ae && ie.current.newIndex === b) return _q;
|
|
34828
|
-
if (!(
|
|
34828
|
+
if (!(z && !mW(O) || !l) && (R || oe)) return _W.Transition.toString({
|
|
34829
34829
|
...l,
|
|
34830
34830
|
property: gq
|
|
34831
34831
|
});
|
|
@@ -34911,7 +34911,7 @@ function Nq() {
|
|
|
34911
34911
|
return /* @__PURE__ */ new Set();
|
|
34912
34912
|
}
|
|
34913
34913
|
var Pq = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skippedIds: i, noOutputIds: a, slideTypes: o, onSlideClick: s }) => {
|
|
34914
|
-
let l = je(), { moveCellToIndex: u, createNewCell: d } =
|
|
34914
|
+
let l = je(), { moveCellToIndex: u, createNewCell: d } = Ee(), f = GU(), p = (0, q.useRef)(null), m = Mq(p), [h, g] = (0, q.useState)(null), [_, v] = (0, q.useState)(null), y = Dq(t), b = (e, t) => {
|
|
34915
34915
|
d({
|
|
34916
34916
|
cellId: e,
|
|
34917
34917
|
before: t,
|
|
@@ -34995,7 +34995,7 @@ var Pq = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
|
|
|
34995
34995
|
ref: p,
|
|
34996
34996
|
children: [/* @__PURE__ */ (0, J.jsxs)("div", {
|
|
34997
34997
|
className: "text-xs text-gray-500 flex items-center gap-0.5",
|
|
34998
|
-
children: [/* @__PURE__ */ (0, J.jsx)(
|
|
34998
|
+
children: [/* @__PURE__ */ (0, J.jsx)(R, { className: "h-3 w-3" }), "Reordering is not supported in multi-column mode"]
|
|
34999
34999
|
}), e.map((e, t) => /* @__PURE__ */ (0, J.jsx)(Lq, {
|
|
35000
35000
|
cell: e,
|
|
35001
35001
|
dimensions: y,
|
|
@@ -35110,7 +35110,7 @@ var Pq = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
|
|
|
35110
35110
|
t[51] === u ? F = t[52] : (F = u && /* @__PURE__ */ (0, J.jsxs)(vn, {
|
|
35111
35111
|
variant: "danger",
|
|
35112
35112
|
onSelect: u,
|
|
35113
|
-
children: [/* @__PURE__ */ (0, J.jsx)(
|
|
35113
|
+
children: [/* @__PURE__ */ (0, J.jsx)(se, { className: "mr-2 h-3.5 w-3.5" }), "Delete cell"]
|
|
35114
35114
|
}), t[51] = u, t[52] = F);
|
|
35115
35115
|
let I;
|
|
35116
35116
|
t[53] !== N || t[54] !== F ? (I = /* @__PURE__ */ (0, J.jsxs)(fn, { children: [
|
|
@@ -35183,7 +35183,7 @@ var Pq = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
|
|
|
35183
35183
|
cellId: n.id,
|
|
35184
35184
|
status: n.status,
|
|
35185
35185
|
output: n.output,
|
|
35186
|
-
stale:
|
|
35186
|
+
stale: Je(n, !1)
|
|
35187
35187
|
})
|
|
35188
35188
|
}), t[30] = n, t[31] = x, t[32] = y, t[33] = S, t[34] = k, t[35] = b, t[36] = P) : P = t[36];
|
|
35189
35189
|
let F;
|
|
@@ -35256,8 +35256,8 @@ function Gq(e) {
|
|
|
35256
35256
|
}
|
|
35257
35257
|
//#endregion
|
|
35258
35258
|
//#region src/components/editor/renderers/slides-layout/slides-layout.tsx
|
|
35259
|
-
var Kq = q.lazy(() => import("./reveal-component-
|
|
35260
|
-
let t = (0, Y.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = Nm(
|
|
35259
|
+
var Kq = q.lazy(() => import("./reveal-component-D2QMPzcy.js")), qq = (e) => {
|
|
35260
|
+
let t = (0, Y.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = Nm(_t), s = a === "read" || o, c = Nm(ne) > 1, [l, u] = (0, q.useState)(null), d;
|
|
35261
35261
|
t[0] !== i || t[1] !== n ? (d = UU(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
|
|
35262
35262
|
let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
|
|
35263
35263
|
t[3] !== l || t[4] !== f || t[5] !== g ? (_ = l ? f.findIndex((e) => e.id === l) : g, t[3] = l, t[4] = f, t[5] = g, t[6] = _) : _ = t[6];
|
|
@@ -35307,11 +35307,11 @@ var Kq = q.lazy(() => import("./reveal-component-B6O1FFou.js")), qq = (e) => {
|
|
|
35307
35307
|
slideTypes: h,
|
|
35308
35308
|
onSlideClick: x
|
|
35309
35309
|
}), t[22] = x, t[23] = m, t[24] = p, t[25] = f, t[26] = h, t[27] = E, t[28] = D, t[29] = O) : O = t[29];
|
|
35310
|
-
let
|
|
35311
|
-
return t[30] !== T || t[31] !== O ? (
|
|
35310
|
+
let k;
|
|
35311
|
+
return t[30] !== T || t[31] !== O ? (k = /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
35312
35312
|
className: "flex-1 pr-18 pb-2 flex flex-row gap-2 min-h-0",
|
|
35313
35313
|
children: [O, T]
|
|
35314
|
-
}), t[30] = T, t[31] = O, t[32] =
|
|
35314
|
+
}), t[30] = T, t[31] = O, t[32] = k) : k = t[32], k;
|
|
35315
35315
|
}, Jq = Pp([
|
|
35316
35316
|
"slide",
|
|
35317
35317
|
"sub-slide",
|
|
@@ -35463,7 +35463,7 @@ var nJ = (e) => {
|
|
|
35463
35463
|
let m;
|
|
35464
35464
|
t[12] === n ? m = t[13] : (m = () => n("bt"), t[12] = n, t[13] = m);
|
|
35465
35465
|
let h;
|
|
35466
|
-
t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, J.jsx)(
|
|
35466
|
+
t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, J.jsx)(we, {
|
|
35467
35467
|
fontSize: 36,
|
|
35468
35468
|
className: "w-5 h-5"
|
|
35469
35469
|
}), t[14] = h) : h = t[14];
|
|
@@ -35544,13 +35544,13 @@ function rJ(e = !0) {
|
|
|
35544
35544
|
//#endregion
|
|
35545
35545
|
//#region src/components/editor/actions/name-cell-input.tsx
|
|
35546
35546
|
var iJ = (e) => {
|
|
35547
|
-
let t = (0, Y.c)(12), { value: n, cellId: r, className: i } = e, { updateCellName: a } =
|
|
35547
|
+
let t = (0, Y.c)(12), { value: n, cellId: r, className: i } = e, { updateCellName: a } = Ee(), o;
|
|
35548
35548
|
t[0] !== r || t[1] !== a ? (o = (e) => a({
|
|
35549
35549
|
cellId: r,
|
|
35550
35550
|
name: e
|
|
35551
35551
|
}), t[0] = r, t[1] = a, t[2] = o) : o = t[2];
|
|
35552
35552
|
let s = aJ(n, o);
|
|
35553
|
-
if (
|
|
35553
|
+
if (ht(n)) return null;
|
|
35554
35554
|
let c = s.focusing ? "" : "text-ellipsis", u;
|
|
35555
35555
|
t[3] !== i || t[4] !== c ? (u = l("outline-hidden border hover:border-cyan-500/40 focus:border-cyan-500/40", c, i), t[3] = i, t[4] = c, t[5] = u) : u = t[5];
|
|
35556
35556
|
let d;
|
|
@@ -35572,28 +35572,28 @@ function aJ(e, t) {
|
|
|
35572
35572
|
let n = (0, Y.c)(13), [r, i] = (0, q.useState)(e), [a, o] = (0, q.useState)(!1), s;
|
|
35573
35573
|
n[0] !== t || n[1] !== e ? (s = (n) => {
|
|
35574
35574
|
if (n !== e) {
|
|
35575
|
-
if (!n ||
|
|
35575
|
+
if (!n || ht(n)) {
|
|
35576
35576
|
t(n);
|
|
35577
35577
|
return;
|
|
35578
35578
|
}
|
|
35579
|
-
t(
|
|
35579
|
+
t(Ne(n, be()));
|
|
35580
35580
|
}
|
|
35581
35581
|
}, n[0] = t, n[1] = e, n[2] = s) : s = n[2];
|
|
35582
35582
|
let c = s, l;
|
|
35583
|
-
n[3] === r ? l = n[4] : (l =
|
|
35583
|
+
n[3] === r ? l = n[4] : (l = ht(r) ? "" : r, n[3] = r, n[4] = l);
|
|
35584
35584
|
let u;
|
|
35585
35585
|
n[5] === Symbol.for("react.memo_cache_sentinel") ? (u = (e) => {
|
|
35586
|
-
let t = e.target.value, n =
|
|
35586
|
+
let t = e.target.value, n = xt(t);
|
|
35587
35587
|
i(n);
|
|
35588
35588
|
}, n[5] = u) : u = n[5];
|
|
35589
35589
|
let d;
|
|
35590
35590
|
n[6] === c ? d = n[7] : (d = (e) => {
|
|
35591
35591
|
if (e.target instanceof HTMLInputElement) {
|
|
35592
35592
|
let t = e.target.value;
|
|
35593
|
-
c(
|
|
35593
|
+
c(xt(t));
|
|
35594
35594
|
} else if (e.target instanceof HTMLSpanElement) {
|
|
35595
35595
|
let t = e.target.innerText.trim();
|
|
35596
|
-
c(
|
|
35596
|
+
c(xt(t)), e.target.scrollLeft = 0, o(!1);
|
|
35597
35597
|
}
|
|
35598
35598
|
}, n[6] = c, n[7] = d);
|
|
35599
35599
|
let f;
|
|
@@ -35614,7 +35614,7 @@ function oJ(e) {
|
|
|
35614
35614
|
}
|
|
35615
35615
|
//#endregion
|
|
35616
35616
|
//#region src/components/editor/output/useWrapText.ts
|
|
35617
|
-
var sJ =
|
|
35617
|
+
var sJ = de("marimo:console:wrapText", !1, Ct);
|
|
35618
35618
|
function cJ() {
|
|
35619
35619
|
let e = (0, Y.c)(3), [t, n] = Fm(sJ), r;
|
|
35620
35620
|
return e[0] !== n || e[1] !== t ? (r = {
|
|
@@ -35634,7 +35634,7 @@ var uJ = (e) => {
|
|
|
35634
35634
|
let t = (0, Y.c)(2), n;
|
|
35635
35635
|
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ (0, J.jsx)(Pa, { children: /* @__PURE__ */ (0, J.jsx)(dJ, { ...e }) }), t[0] = e, t[1] = n), n;
|
|
35636
35636
|
}, dJ = (e) => {
|
|
35637
|
-
let t = (0, Y.c)(63), n = q.useRef(null), { wrapText: r, setWrapText: i } = cJ(), [a, o] =
|
|
35637
|
+
let t = (0, Y.c)(63), n = q.useRef(null), { wrapText: r, setWrapText: i } = cJ(), [a, o] = it(e.cellId), [s, c] = q.useState(""), u;
|
|
35638
35638
|
t[0] === s ? u = t[1] : (u = {
|
|
35639
35639
|
value: s,
|
|
35640
35640
|
setValue: c
|
|
@@ -35645,7 +35645,7 @@ var uJ = (e) => {
|
|
|
35645
35645
|
if (!e) return;
|
|
35646
35646
|
let t = e.scrollHeight - e.clientHeight;
|
|
35647
35647
|
t - e.scrollTop < 120 && (e.scrollTop = t);
|
|
35648
|
-
}, t[2] = E) : E = t[2], (0, q.useLayoutEffect)(E), !C &&
|
|
35648
|
+
}, t[2] = E) : E = t[2], (0, q.useLayoutEffect)(E), !C && ht(h)) return null;
|
|
35649
35649
|
let D, O, k, A, j, M, N, P, F, I;
|
|
35650
35650
|
if (t[3] !== g || t[4] !== x || t[5] !== S || t[6] !== C || t[7] !== d || t[8] !== m || t[9] !== a || t[10] !== T || t[11] !== y || t[12] !== b || t[13] !== v || t[14] !== w || t[15] !== o || t[16] !== i || t[17] !== p || t[18] !== s || t[19] !== r) {
|
|
35651
35651
|
let e = S.toReversed(), u = e.some(hJ), f = e.findIndex(gJ), h;
|
|
@@ -35685,8 +35685,8 @@ var uJ = (e) => {
|
|
|
35685
35685
|
})
|
|
35686
35686
|
]
|
|
35687
35687
|
}), t[32] = E, t[33] = C, t[34] = a, t[35] = T, t[36] = o, t[37] = i, t[38] = r, t[39] = O) : O = t[39], k = p ? "This console output is stale" : void 0, A = "console-output-area", j = n, M = w, N = 0;
|
|
35688
|
-
let L = p && "marimo-output-stale",
|
|
35689
|
-
t[40] !== x || t[41] !== L || t[42] !==
|
|
35688
|
+
let L = p && "marimo-output-stale", R = C ? "p-5" : "p-3";
|
|
35689
|
+
t[40] !== x || t[41] !== L || t[42] !== R ? (P = l("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", L, R, x), t[40] = x, t[41] = L, t[42] = R, t[43] = P) : P = t[43], t[44] === a ? F = t[45] : (F = a ? { maxHeight: "none" } : void 0, t[44] = a, t[45] = F), I = e.map((e, t) => {
|
|
35690
35690
|
if (e.channel === "pdb") return null;
|
|
35691
35691
|
if (e.channel === "stdin") {
|
|
35692
35692
|
Zm(typeof e.data == "string", "Expected data to be a string");
|
|
@@ -35721,8 +35721,8 @@ var uJ = (e) => {
|
|
|
35721
35721
|
cellId: g,
|
|
35722
35722
|
className: "bg-(--slate-4) border-(--slate-4) hover:bg-(--slate-5) dark:border-(--sky-5) dark:bg-(--sky-6) dark:text-(--sky-12) text-(--slate-12) rounded-l rounded-br-lg absolute right-0 bottom-0 text-xs px-1.5 py-0.5 font-mono max-w-[75%] whitespace-nowrap overflow-hidden"
|
|
35723
35723
|
}), t[46] = g, t[47] = h, t[48] = L) : L = t[48];
|
|
35724
|
-
let
|
|
35725
|
-
t[49] !== L || t[50] !== k || t[51] !== A || t[52] !== j || t[53] !== M || t[54] !== N || t[55] !== P || t[56] !== F || t[57] !== I ? (
|
|
35724
|
+
let R;
|
|
35725
|
+
t[49] !== L || t[50] !== k || t[51] !== A || t[52] !== j || t[53] !== M || t[54] !== N || t[55] !== P || t[56] !== F || t[57] !== I ? (R = /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
35726
35726
|
title: k,
|
|
35727
35727
|
"data-testid": A,
|
|
35728
35728
|
ref: j,
|
|
@@ -35731,12 +35731,12 @@ var uJ = (e) => {
|
|
|
35731
35731
|
className: P,
|
|
35732
35732
|
style: F,
|
|
35733
35733
|
children: [I, L]
|
|
35734
|
-
}), t[49] = L, t[50] = k, t[51] = A, t[52] = j, t[53] = M, t[54] = N, t[55] = P, t[56] = F, t[57] = I, t[58] =
|
|
35735
|
-
let
|
|
35736
|
-
return t[59] !== D || t[60] !== O || t[61] !==
|
|
35734
|
+
}), t[49] = L, t[50] = k, t[51] = A, t[52] = j, t[53] = M, t[54] = N, t[55] = P, t[56] = F, t[57] = I, t[58] = R) : R = t[58];
|
|
35735
|
+
let ee;
|
|
35736
|
+
return t[59] !== D || t[60] !== O || t[61] !== R ? (ee = /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
35737
35737
|
className: D,
|
|
35738
|
-
children: [O,
|
|
35739
|
-
}), t[59] = D, t[60] = O, t[61] =
|
|
35738
|
+
children: [O, R]
|
|
35739
|
+
}), t[59] = D, t[60] = O, t[61] = R, t[62] = ee) : ee = t[62], ee;
|
|
35740
35740
|
}, fJ = (e) => {
|
|
35741
35741
|
let t = (0, Y.c)(25), { value: n, setValue: r, inputHistory: i, output: a, isPassword: o, isPdb: s, onSubmit: c, onClear: l } = e, { navigateUp: u, navigateDown: d, addToHistory: f } = i, p;
|
|
35742
35742
|
t[0] === a ? p = t[1] : (p = mJ(a), t[0] = a, t[1] = p);
|
|
@@ -35816,7 +35816,7 @@ function vJ(e) {
|
|
|
35816
35816
|
}
|
|
35817
35817
|
//#endregion
|
|
35818
35818
|
//#region src/core/cells/readonly-code-display.ts
|
|
35819
|
-
var yJ = new
|
|
35819
|
+
var yJ = new Te(), bJ = new Se();
|
|
35820
35820
|
function xJ(e) {
|
|
35821
35821
|
let t = e.trim();
|
|
35822
35822
|
return t ? yJ.isSupported(t) ? {
|
|
@@ -35875,7 +35875,7 @@ function TJ(e) {
|
|
|
35875
35875
|
//#endregion
|
|
35876
35876
|
//#region src/core/static/download-html.ts
|
|
35877
35877
|
async function EJ(e) {
|
|
35878
|
-
let t =
|
|
35878
|
+
let t = ft(), { includeCode: n } = e, r = await t.exportAsHTML({
|
|
35879
35879
|
download: !0,
|
|
35880
35880
|
includeCode: n,
|
|
35881
35881
|
files: wJ.INSTANCE.filenames()
|
|
@@ -35918,7 +35918,7 @@ var kJ = (e) => {
|
|
|
35918
35918
|
children: h
|
|
35919
35919
|
}), t[12] = s, t[13] = h, t[14] = g) : g = t[14], g;
|
|
35920
35920
|
}, AJ = (e) => {
|
|
35921
|
-
let t = (0, Y.c)(33), { cells: n, appConfig: r, mode: i } = e, { invisible: a } = OJ(n.length, i), o = Nm(
|
|
35921
|
+
let t = (0, Y.c)(33), { cells: n, appConfig: r, mode: i } = e, { invisible: a } = OJ(n.length, i), o = Nm(_t), s = Nm(SJ), [c] = Um(), u = Nm(_r), d;
|
|
35922
35922
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (d = new URLSearchParams(window.location.search), t[0] = d) : d = t[0];
|
|
35923
35923
|
let f = d, p;
|
|
35924
35924
|
t[1] !== o || t[2] !== u ? (p = () => {
|
|
@@ -35969,7 +35969,7 @@ var kJ = (e) => {
|
|
|
35969
35969
|
})
|
|
35970
35970
|
}) : /* @__PURE__ */ (0, J.jsx)("div", {
|
|
35971
35971
|
className: "flex-1 flex flex-col items-center justify-center py-8",
|
|
35972
|
-
children: /* @__PURE__ */ (0, J.jsx)(
|
|
35972
|
+
children: /* @__PURE__ */ (0, J.jsx)(xe, { className: "w-8 h-8 animate-spin text-muted-foreground" })
|
|
35973
35973
|
}) : /* @__PURE__ */ (0, J.jsx)(J.Fragment, { children: n.map(v) });
|
|
35974
35974
|
}, t[10] = r.width, t[11] = n, t[12] = a, t[13] = s, t[14] = v, t[15] = y) : y = t[15];
|
|
35975
35975
|
let b = y, x = m && g && "gap-5", S;
|
|
@@ -36000,7 +36000,7 @@ var kJ = (e) => {
|
|
|
36000
36000
|
]
|
|
36001
36001
|
}), t[28] = r, t[29] = a, t[30] = w, t[31] = T, t[32] = D) : D = t[32], D;
|
|
36002
36002
|
}, jJ = (e) => {
|
|
36003
|
-
let t = (0, Y.c)(26), { canShowCode: n, showCode: r, onToggleShowCode: i } = e, { readCode: a } =
|
|
36003
|
+
let t = (0, Y.c)(26), { canShowCode: n, showCode: r, onToggleShowCode: i } = e, { readCode: a } = lt(), o = LJ, s = RJ, c;
|
|
36004
36004
|
t[0] === a ? c = t[1] : (c = async () => {
|
|
36005
36005
|
let e = await a();
|
|
36006
36006
|
Jr(new Blob([e.contents], { type: "text/plain" }), on.toPY(document.title));
|
|
@@ -36100,7 +36100,7 @@ var kJ = (e) => {
|
|
|
36100
36100
|
}), t[24] = p, t[25] = g), g;
|
|
36101
36101
|
}, MJ = (0, q.memo)((e) => {
|
|
36102
36102
|
let t = (0, Y.c)(57), { output: n, consoleOutputs: r, cellOutputArea: i, cellId: a, status: o, stopped: s, errored: c, config: u, interrupted: d, staleInputs: f, runStartTimestamp: p, code: m, showCode: h, mode: g, name: _, kiosk: v, showErrorTracebacks: y } = e, b = (0, q.useRef)(null), x;
|
|
36103
|
-
t[0] !== d || t[1] !== n || t[2] !== p || t[3] !== f || t[4] !== o ? (x =
|
|
36103
|
+
t[0] !== d || t[1] !== n || t[2] !== p || t[3] !== f || t[4] !== o ? (x = Je({
|
|
36104
36104
|
status: o,
|
|
36105
36105
|
output: n,
|
|
36106
36106
|
interrupted: d,
|
|
@@ -36108,11 +36108,11 @@ var kJ = (e) => {
|
|
|
36108
36108
|
staleInputs: f
|
|
36109
36109
|
}, !1), t[0] = d, t[1] = n, t[2] = p, t[3] = f, t[4] = o, t[5] = x) : x = t[5];
|
|
36110
36110
|
let S = x, C;
|
|
36111
|
-
t[6] === o ? C = t[7] : (C =
|
|
36111
|
+
t[6] === o ? C = t[7] : (C = ut(o), t[6] = o, t[7] = C);
|
|
36112
36112
|
let w = C, T = v && g !== "present", E;
|
|
36113
36113
|
if (t[8] !== m || t[9] !== c || t[10] !== T || t[11] !== h || t[12] !== s) {
|
|
36114
|
-
let e = new
|
|
36115
|
-
E = l("marimo-cell", "hover-actions-parent empty:invisible", !h && !T ?
|
|
36114
|
+
let e = new $e().isSupported(m);
|
|
36115
|
+
E = l("marimo-cell", "hover-actions-parent empty:invisible", !h && !T ? Fe({
|
|
36116
36116
|
errored: c,
|
|
36117
36117
|
stopped: s
|
|
36118
36118
|
}) : {
|
|
@@ -36171,7 +36171,7 @@ var kJ = (e) => {
|
|
|
36171
36171
|
]
|
|
36172
36172
|
}), 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;
|
|
36173
36173
|
}
|
|
36174
|
-
if (
|
|
36174
|
+
if (at({
|
|
36175
36175
|
errored: c,
|
|
36176
36176
|
interrupted: d,
|
|
36177
36177
|
stopped: s,
|
|
@@ -36216,7 +36216,7 @@ function PJ(e) {
|
|
|
36216
36216
|
}), [...t.entries()].toSorted(([e], [t]) => e - t);
|
|
36217
36217
|
}
|
|
36218
36218
|
function FJ(e, t) {
|
|
36219
|
-
let n = new
|
|
36219
|
+
let n = new $e().isSupported(e), r = t !== null && !Pe(t);
|
|
36220
36220
|
return n && r || e.trim() === "";
|
|
36221
36221
|
}
|
|
36222
36222
|
function IJ(e) {
|
|
@@ -36283,7 +36283,7 @@ function GJ(e) {
|
|
|
36283
36283
|
let { codes: t, names: n, configs: r, cell_ids: i, last_executed_code: a, last_execution_time: o } = e, s = a || {}, c = o || {};
|
|
36284
36284
|
return t.map((e, t) => {
|
|
36285
36285
|
let a = i[t], o = s[a];
|
|
36286
|
-
return
|
|
36286
|
+
return w({
|
|
36287
36287
|
id: a,
|
|
36288
36288
|
code: e,
|
|
36289
36289
|
edited: o ? o !== e : !1,
|
|
@@ -36331,7 +36331,7 @@ function JJ(e, t) {
|
|
|
36331
36331
|
return;
|
|
36332
36332
|
}
|
|
36333
36333
|
let { objectIds: y, values: b } = qJ(), x = g ? Object.fromEntries(n.map((e) => [e.id, e.code])) : void 0;
|
|
36334
|
-
|
|
36334
|
+
ft().sendInstantiate({
|
|
36335
36335
|
objectIds: y,
|
|
36336
36336
|
values: b,
|
|
36337
36337
|
autoRun: r,
|
|
@@ -36577,10 +36577,10 @@ function hY(e) {
|
|
|
36577
36577
|
return null;
|
|
36578
36578
|
}
|
|
36579
36579
|
function gY(e) {
|
|
36580
|
-
return
|
|
36580
|
+
return fe(e) ? e.schemaVersion === 1 && typeof e.appId == "string" && Array.isArray(e.cells) && e.cells.every(_Y) : !1;
|
|
36581
36581
|
}
|
|
36582
36582
|
function _Y(e) {
|
|
36583
|
-
return
|
|
36583
|
+
return fe(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;
|
|
36584
36584
|
}
|
|
36585
36585
|
//#endregion
|
|
36586
36586
|
//#region src/core/islands/components/IslandControls.tsx
|
|
@@ -36600,7 +36600,7 @@ var vY = (e) => {
|
|
|
36600
36600
|
children: a
|
|
36601
36601
|
}), t[3] = a, t[4] = n, t[5] = o) : o = t[5], o;
|
|
36602
36602
|
}, yY = (e) => {
|
|
36603
|
-
let t = (0, Y.c)(18), { cellId: n, codeCallback: r, visible: i } = e, { sendRun: a } =
|
|
36603
|
+
let t = (0, Y.c)(18), { cellId: n, codeCallback: r, visible: i } = e, { sendRun: a } = lt(), o;
|
|
36604
36604
|
t[0] === r ? o = t[1] : (o = () => {
|
|
36605
36605
|
C(r());
|
|
36606
36606
|
}, t[0] = r, t[1] = o);
|
|
@@ -36674,7 +36674,7 @@ var SY = (e) => {
|
|
|
36674
36674
|
let t = (0, Y.c)(19), { cellId: n, codeCallback: r, alwaysShowRun: i, children: a } = e, o = bY(i), s = (0, q.useRef)(null), c;
|
|
36675
36675
|
t[0] === n ? c = t[1] : (c = (e) => e.cellRuntime[n], t[0] = n, t[1] = c);
|
|
36676
36676
|
let l = c, u;
|
|
36677
|
-
t[2] === l ? u = t[3] : (u =
|
|
36677
|
+
t[2] === l ? u = t[3] : (u = Qe(re, l), t[2] = l, t[3] = u);
|
|
36678
36678
|
let d = Nm(u), f = Nm(Jj);
|
|
36679
36679
|
if (CY(s, d?.status ?? "idle"), !f || !d?.output) {
|
|
36680
36680
|
let e;
|
|
@@ -36684,7 +36684,7 @@ var SY = (e) => {
|
|
|
36684
36684
|
children: a
|
|
36685
36685
|
}), t[4] = a, t[5] = e), e;
|
|
36686
36686
|
}
|
|
36687
|
-
if (
|
|
36687
|
+
if (Pe(d.output)) {
|
|
36688
36688
|
let e;
|
|
36689
36689
|
return t[6] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, J.jsx)("div", { ref: s }), t[6] = e) : e = t[6], e;
|
|
36690
36690
|
}
|
|
@@ -36721,7 +36721,7 @@ var wY = (e) => {
|
|
|
36721
36721
|
let e;
|
|
36722
36722
|
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, J.jsx)(TY, { children: /* @__PURE__ */ (0, J.jsx)("div", {
|
|
36723
36723
|
className: "absolute top-1 right-1",
|
|
36724
|
-
children: /* @__PURE__ */ (0, J.jsx)(
|
|
36724
|
+
children: /* @__PURE__ */ (0, J.jsx)(xe, { className: "animate-spin size-4" })
|
|
36725
36725
|
}) }), t[0] = e) : e = t[0], e;
|
|
36726
36726
|
}
|
|
36727
36727
|
return null;
|
|
@@ -36764,7 +36764,7 @@ var wY = (e) => {
|
|
|
36764
36764
|
return fY(this);
|
|
36765
36765
|
}
|
|
36766
36766
|
getCellIdFromIndex(e) {
|
|
36767
|
-
let { cellIds: t } = Im.get(
|
|
36767
|
+
let { cellIds: t } = Im.get(re);
|
|
36768
36768
|
return t.inOrderIds.at(e);
|
|
36769
36769
|
}
|
|
36770
36770
|
connectedCallback() {
|
|
@@ -36791,7 +36791,7 @@ var wY = (e) => {
|
|
|
36791
36791
|
code: r,
|
|
36792
36792
|
output: t
|
|
36793
36793
|
});
|
|
36794
|
-
let i = (this.querySelector(e.editorTagName)?.parentElement)?.getAttribute(
|
|
36794
|
+
let i = (this.querySelector(e.editorTagName)?.parentElement)?.getAttribute(ve);
|
|
36795
36795
|
return {
|
|
36796
36796
|
html: t,
|
|
36797
36797
|
codeCallback: n && i ? () => {
|
|
@@ -36850,7 +36850,7 @@ function AY() {
|
|
|
36850
36850
|
//#region src/core/islands/bootstrap.ts
|
|
36851
36851
|
async function jY(e) {
|
|
36852
36852
|
let t = e.store || Im, n = e.root || document, r = e.bridge;
|
|
36853
|
-
t.set(
|
|
36853
|
+
t.set(rt, r), t.set(A, "read"), t.set(qj, null), e.autoInitializePlugins !== !1 && bH();
|
|
36854
36854
|
let i = Array.from(n.querySelectorAll(V_.ISLAND));
|
|
36855
36855
|
if (i.length === 0) {
|
|
36856
36856
|
c.log("No islands found, skipping initialization");
|
|
@@ -36859,7 +36859,7 @@ async function jY(e) {
|
|
|
36859
36859
|
c.log(`Initializing ${i.length} island(s)`);
|
|
36860
36860
|
for (let e of i) e.classList.add(G_.NAMESPACE);
|
|
36861
36861
|
let a = E((e) => {
|
|
36862
|
-
t.set(
|
|
36862
|
+
t.set(re, (t) => ke(t, e));
|
|
36863
36863
|
});
|
|
36864
36864
|
t.sub(Xj, () => {
|
|
36865
36865
|
let e = t.get(Xj), r = n.querySelectorAll(V_.ISLAND);
|
|
@@ -36878,7 +36878,7 @@ async function jY(e) {
|
|
|
36878
36878
|
}
|
|
36879
36879
|
function MY(e, t, n, r) {
|
|
36880
36880
|
try {
|
|
36881
|
-
let i =
|
|
36881
|
+
let i = gt(e);
|
|
36882
36882
|
switch (c.debug("Islands received message:", i.op), i.op) {
|
|
36883
36883
|
case "banner":
|
|
36884
36884
|
case "missing-package-alert":
|
|
@@ -36927,7 +36927,7 @@ function MY(e, t, n, r) {
|
|
|
36927
36927
|
}), window.customElements?.get(V_.ISLAND) || XE(V_.ISLAND, EY);
|
|
36928
36928
|
return;
|
|
36929
36929
|
case "send-ui-element-message":
|
|
36930
|
-
GE.broadcastMessage(i.data.ui_element, i.data.message,
|
|
36930
|
+
GE.broadcastMessage(i.data.ui_element, i.data.message, pe(i.data));
|
|
36931
36931
|
return;
|
|
36932
36932
|
case "remove-ui-elements":
|
|
36933
36933
|
YJ(i.data);
|
|
@@ -37257,7 +37257,7 @@ var YY = class {
|
|
|
37257
37257
|
appId: n.id,
|
|
37258
37258
|
sessionGeneration: ++this.nextSessionGeneration
|
|
37259
37259
|
}, a = this.session, o = t && a !== void 0;
|
|
37260
|
-
this.activeSessionGenerations.add(r.sessionGeneration), o && this.store.set(
|
|
37260
|
+
this.activeSessionGenerations.add(r.sessionGeneration), o && this.store.set(re, L()), (t || !a) && (t && this.sessionReady.status !== "pending" && (this.sessionReady = new ha()), this.session = {
|
|
37261
37261
|
...r,
|
|
37262
37262
|
code: t ? e : void 0
|
|
37263
37263
|
});
|
|
@@ -37275,7 +37275,7 @@ var YY = class {
|
|
|
37275
37275
|
t?.code === void 0 || e && t.appId !== e || (this.activeSessionGenerations.delete(t.sessionGeneration), await this.rpc.proxy.request.stopSession({
|
|
37276
37276
|
appId: t.appId,
|
|
37277
37277
|
sessionGeneration: t.sessionGeneration
|
|
37278
|
-
}), this.store.set(qj, null), this.session = void 0, this.sessionReady = new ha(), this.store.set(
|
|
37278
|
+
}), this.store.set(qj, null), this.session = void 0, this.sessionReady = new ha(), this.store.set(re, L()));
|
|
37279
37279
|
});
|
|
37280
37280
|
}
|
|
37281
37281
|
enqueueAppTransition(e) {
|
|
@@ -37291,7 +37291,7 @@ var YY = class {
|
|
|
37291
37291
|
sendComponentValues = async (e) => (await this.putControlRequest({
|
|
37292
37292
|
type: "update-ui-element",
|
|
37293
37293
|
...e,
|
|
37294
|
-
token:
|
|
37294
|
+
token: te()
|
|
37295
37295
|
}), null);
|
|
37296
37296
|
sendInstantiate = async () => null;
|
|
37297
37297
|
sendFunctionRequest = async (e) => (await this.putControlRequest({
|