@marimo-team/islands 0.22.5-dev6 → 0.22.5-dev8
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-DfR3sT9K.js → chat-ui-X5KPeHrU.js} +123 -123
- package/dist/main.js +243 -243
- package/dist/{process-output-BvkX_OeE.js → process-output-C0tmJosY.js} +85 -84
- package/package.json +1 -1
- package/src/components/editor/errors/traceback-modal.tsx +6 -5
- package/src/components/editor/output/MarimoErrorOutput.tsx +7 -14
- package/src/components/editor/output/MarimoTracebackOutput.tsx +4 -3
package/dist/main.js
CHANGED
|
@@ -21,7 +21,7 @@ import { a as __toCommonJS, n as __esmMin, r as __export, s as __toESM, t as __c
|
|
|
21
21
|
import { t as require_react } from "./react-Bs6Z0kvn.js";
|
|
22
22
|
import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
|
|
23
23
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-BRF7ryOP.js";
|
|
24
|
-
import { $ as createActions,
|
|
24
|
+
import { $ as createActions, A as MarimoIncomingMessageEvent, An as Table2, At as Paths, B as DotFilledIcon, Bn as Columns2, Bt as PluralWord, Cn as Close$1, Ct as isInternalCellName, D as AccordionContent, Dn as Trigger2, Dt as MarkdownLanguageAdapter, E as Accordion, En as Root2$4, Et as customPythonLanguageSupport, F as BorderAllIcon, Fn as Info, Ft as useChromeActions, G as base64ToDataView, Gn as import_lib, H as PinRightIcon, Hn as CircleAlert, Ht as DATA_TYPE_ICON, In as File, It as repl, J as extractBase64FromDataURL, Jt as convertStatsName, K as base64ToUint8Array, L as CheckIcon, Ln as FileText, Lt as adaptForLocalStorage, M as MarimoValueReadyEvent, Mn as NotebookPen, Mt as goToCellLine, N as MarimoValueUpdateEvent, Nn as LoaderCircle, Nt as DeferredRequestRegistry, O as AccordionItem, On as Wrench, P as createInputEvent, Pn as Layers, Pt as generateUUID, Qt as isUninstantiated, R as ChevronDownIcon, Rn as Eye, Rt as jotaiJsonStorage, St as getValidName, Tn as Item$1, Tt as Checkbox, U as deserializeBlob, Un as Braces, Ut as getDataTypeColor, V as PinLeftIcon, Vn as CircleX, Vt as PluralWords, Wn as esm_default$1, Wt as require_client, X as safeExtractSetUIElementMessageBuffers, Xt as requestClientAtom, Y as isDataURLString, Yt as getRequestClient, Z as renderHTML, Zt as useRequestClient, _ as useExpandedConsoleOutput, _n as jsonToMarkdown, _t as headingToIdentifier, a as toPng, an as filenameAtom, at as useCellActions, b as getDatasourceContext, bn as atomWithStorage, bt as getCellDomProps, c as useCellFocusActions, cn as parseInitialValue, ct as createCell, d as Spinner, dn as SCRATCH_CELL_ID, dt as initialModeAtom, en as elementContainsMarimoCellFile, et as getCellEditorView, f as Popover$1, fn as UIElementId, ft as kioskModeAtom, g as isOutputEmpty, gn as jsonParseWithSpecialChar, gt as isErrorMime, h as PopoverTrigger, hn as RANDOM_ID_ATTR, ht as outputIsStale, i as PythonIcon, it as reducer, j as MarimoValueInputEvent, jn as PaintRoller, k as AccordionTrigger, kn as Trash2, kt as PathBuilder, l as useLastFocusedCellId, ln as CellOutputId, lt as AnsiUp, m as PopoverContent, mn as OBJECT_ID_ATTR, mt as outputIsLoading, n as blobToString, nn as getTracebackInfo, nt as notebookAtom, o as MarkdownRenderer, on as parseAttrValue, ot as useCellIds, p as PopoverClose$1, pn as findCellId, pt as viewStateAtom, q as dataViewToBase64, r as filesToBase64, rn as NotebookScopedLocalStorage, rt as notebookOutline, s as LazyAnyLanguageCodeMirror, sn as parseDataset, st as useCellNames, t as processOutput, tn as extractAllTracebackInfo, tt as getCellNames, u as maybeAddAltairImport, un as HTMLCellId, ut as getInitialAppMode, v as useExpandedOutput, vn as jsonToTSV, vt as sanitizeHtml, wn as Content2$1, wt as normalizeName, xn as selectAtom, xt as displayCellName, yn as atomWithReducer, yt as DATA_CELL_ID, z as ChevronRightIcon, zn as Database, __tla as __tla_0 } from "./process-output-C0tmJosY.js";
|
|
25
25
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-C428iZBW.js";
|
|
26
26
|
import { o as useSize, s as Root$4, u as createLucideIcon } from "./dist-D56NKWim.js";
|
|
27
27
|
import { A as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as ListFilter, I as ChartPie, L as ChartColumn, M as $5a387cc49350e6db$export$722debc0e56fea39, N as Table$1, O as TIME_UNIT_DESCRIPTIONS, P as SquareFunction, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as $fb18d541ea1ad717$export$ad991b66133851cf, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-ByDEU1T3.js";
|
|
@@ -24348,9 +24348,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24348
24348
|
}),
|
|
24349
24349
|
"traceback" in e && e.traceback ? (0, import_jsx_runtime.jsx)("div", {
|
|
24350
24350
|
className: "font-code text-sm mt-2 p-3 bg-muted rounded border overflow-auto max-h-[50vh] cursor-text select-text",
|
|
24351
|
-
|
|
24352
|
-
|
|
24353
|
-
}
|
|
24351
|
+
children: renderHTML({
|
|
24352
|
+
html: e.traceback
|
|
24353
|
+
})
|
|
24354
24354
|
}) : (0, import_jsx_runtime.jsx)("div", {
|
|
24355
24355
|
className: "text-muted-foreground mt-2",
|
|
24356
24356
|
children: "See the console area for a traceback."
|
|
@@ -24364,9 +24364,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24364
24364
|
}),
|
|
24365
24365
|
"traceback" in e && e.traceback && (0, import_jsx_runtime.jsx)("div", {
|
|
24366
24366
|
className: "font-code text-sm mt-2 p-3 bg-muted rounded border overflow-auto max-h-[50vh] cursor-text select-text",
|
|
24367
|
-
|
|
24368
|
-
|
|
24369
|
-
}
|
|
24367
|
+
children: renderHTML({
|
|
24368
|
+
html: e.traceback
|
|
24369
|
+
})
|
|
24370
24370
|
})
|
|
24371
24371
|
]
|
|
24372
24372
|
})
|
|
@@ -35069,7 +35069,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
35069
35069
|
r[4] !== f || r[5] !== I ? (z = I && I.kind === "cell" && !isWasm() && !isStaticNotebook() && f !== "__scratch__", r[4] = f, r[5] = I, r[6] = z) : z = r[6];
|
|
35070
35070
|
let G = z, q;
|
|
35071
35071
|
r[7] !== O || r[8] !== c ? (q = c && O && !isStaticNotebook(), r[7] = O, r[8] = c, r[9] = q) : q = r[9];
|
|
35072
|
-
let Z7 = q, $7 = !isStaticNotebook(),
|
|
35072
|
+
let Z7 = q, $7 = !isStaticNotebook(), e9 = (e2) => {
|
|
35073
35073
|
c == null ? void 0 : c({
|
|
35074
35074
|
prompt: `My code gives the following error:
|
|
35075
35075
|
|
|
@@ -35110,35 +35110,35 @@ ${E}`,
|
|
|
35110
35110
|
d9
|
|
35111
35111
|
]
|
|
35112
35112
|
}), r[20] = d9, r[21] = c9, r[22] = f9) : f9 = r[22];
|
|
35113
|
-
let
|
|
35114
|
-
r[23] === _ ?
|
|
35113
|
+
let p9;
|
|
35114
|
+
r[23] === _ ? p9 = r[24] : (p9 = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
35115
35115
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
35116
35116
|
children: _
|
|
35117
|
-
}), r[23] = _, r[24] =
|
|
35118
|
-
let
|
|
35119
|
-
r[25] !== f9 || r[26] !==
|
|
35117
|
+
}), r[23] = _, r[24] = p9);
|
|
35118
|
+
let m9;
|
|
35119
|
+
r[25] !== f9 || r[26] !== p9 ? (m9 = (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
35120
35120
|
value: KEY$1,
|
|
35121
35121
|
className: "border-none",
|
|
35122
35122
|
children: [
|
|
35123
35123
|
f9,
|
|
35124
|
-
|
|
35124
|
+
p9
|
|
35125
35125
|
]
|
|
35126
|
-
}), r[25] = f9, r[26] =
|
|
35127
|
-
let
|
|
35128
|
-
r[28] !==
|
|
35126
|
+
}), r[25] = f9, r[26] = p9, r[27] = m9) : m9 = r[27];
|
|
35127
|
+
let h9;
|
|
35128
|
+
r[28] !== m9 || r[29] !== i9 ? (h9 = (0, import_jsx_runtime.jsx)(Accordion, {
|
|
35129
35129
|
type: "single",
|
|
35130
35130
|
collapsible: true,
|
|
35131
35131
|
value: i9,
|
|
35132
|
-
children:
|
|
35133
|
-
}), r[28] =
|
|
35134
|
-
let
|
|
35135
|
-
r[31] !==
|
|
35132
|
+
children: m9
|
|
35133
|
+
}), r[28] = m9, r[29] = i9, r[30] = h9) : h9 = r[30];
|
|
35134
|
+
let g9;
|
|
35135
|
+
r[31] !== e9 || r[32] !== Z7 ? (g9 = Z7 && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
35136
35136
|
tooltip: "Fix with AI",
|
|
35137
|
-
openPrompt: () =>
|
|
35138
|
-
applyAutofix: () =>
|
|
35139
|
-
}), r[31] =
|
|
35140
|
-
let
|
|
35141
|
-
r[34] !== G || r[35] !== I ? (
|
|
35137
|
+
openPrompt: () => e9(false),
|
|
35138
|
+
applyAutofix: () => e9(true)
|
|
35139
|
+
}), r[31] = e9, r[32] = Z7, r[33] = g9) : g9 = r[33];
|
|
35140
|
+
let _9;
|
|
35141
|
+
r[34] !== G || r[35] !== I ? (_9 = G && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
35142
35142
|
content: "Attach pdb to the exception point.",
|
|
35143
35143
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
35144
35144
|
size: "xs",
|
|
@@ -35155,9 +35155,9 @@ ${E}`,
|
|
|
35155
35155
|
"Launch debugger"
|
|
35156
35156
|
]
|
|
35157
35157
|
})
|
|
35158
|
-
}), r[34] = G, r[35] = I, r[36] =
|
|
35159
|
-
let
|
|
35160
|
-
r[37] !== E || r[38] !== d ? (
|
|
35158
|
+
}), r[34] = G, r[35] = I, r[36] = _9) : _9 = r[36];
|
|
35159
|
+
let v9;
|
|
35160
|
+
r[37] !== E || r[38] !== d ? (v9 = $7 && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
35161
35161
|
children: [
|
|
35162
35162
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
35163
35163
|
asChild: true,
|
|
@@ -35213,7 +35213,7 @@ ${E}`,
|
|
|
35213
35213
|
(0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
35214
35214
|
onClick: () => {
|
|
35215
35215
|
let e2 = document.createElement("div");
|
|
35216
|
-
e2.innerHTML = d, copyToClipboard(e2.textContent || "");
|
|
35216
|
+
e2.innerHTML = sanitizeHtml(d), copyToClipboard(e2.textContent || "");
|
|
35217
35217
|
},
|
|
35218
35218
|
children: [
|
|
35219
35219
|
(0, import_jsx_runtime.jsx)(Copy, {
|
|
@@ -35225,29 +35225,29 @@ ${E}`,
|
|
|
35225
35225
|
]
|
|
35226
35226
|
})
|
|
35227
35227
|
]
|
|
35228
|
-
}), r[37] = E, r[38] = d, r[39] =
|
|
35229
|
-
let
|
|
35230
|
-
r[40] !==
|
|
35228
|
+
}), r[37] = E, r[38] = d, r[39] = v9) : v9 = r[39];
|
|
35229
|
+
let y9;
|
|
35230
|
+
r[40] !== g9 || r[41] !== _9 || r[42] !== v9 ? (y9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
35231
35231
|
className: "flex gap-2",
|
|
35232
35232
|
children: [
|
|
35233
|
+
g9,
|
|
35233
35234
|
_9,
|
|
35234
|
-
v9
|
|
35235
|
-
y9
|
|
35235
|
+
v9
|
|
35236
35236
|
]
|
|
35237
|
-
}), r[40] =
|
|
35238
|
-
let
|
|
35239
|
-
return r[44] !==
|
|
35237
|
+
}), r[40] = g9, r[41] = _9, r[42] = v9, r[43] = y9) : y9 = r[43];
|
|
35238
|
+
let b9;
|
|
35239
|
+
return r[44] !== h9 || r[45] !== y9 ? (b9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
35240
35240
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
35241
35241
|
children: [
|
|
35242
|
-
|
|
35243
|
-
|
|
35242
|
+
h9,
|
|
35243
|
+
y9
|
|
35244
35244
|
]
|
|
35245
|
-
}), r[44] =
|
|
35245
|
+
}), r[44] = h9, r[45] = y9, r[46] = b9) : b9 = r[46], b9;
|
|
35246
35246
|
};
|
|
35247
35247
|
function lastLine(e) {
|
|
35248
35248
|
var _a3, _b3;
|
|
35249
35249
|
let r = document.createElement("div");
|
|
35250
|
-
return r.innerHTML = e, ((_b3 = (_a3 = r.textContent) == null ? void 0 : _a3.split("\n").filter(Boolean)) == null ? void 0 : _b3.at(-1)) || "";
|
|
35250
|
+
return r.innerHTML = sanitizeHtml(e), ((_b3 = (_a3 = r.textContent) == null ? void 0 : _a3.split("\n").filter(Boolean)) == null ? void 0 : _b3.at(-1)) || "";
|
|
35251
35251
|
}
|
|
35252
35252
|
const replaceTracebackFilenames = (e) => {
|
|
35253
35253
|
let r = getTracebackInfo(e);
|
|
@@ -37087,7 +37087,7 @@ ${E}`,
|
|
|
37087
37087
|
};
|
|
37088
37088
|
}
|
|
37089
37089
|
};
|
|
37090
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
37090
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-X5KPeHrU.js").then((e) => ({
|
|
37091
37091
|
default: e.Chatbot
|
|
37092
37092
|
}))), messageSchema = array(object({
|
|
37093
37093
|
id: string(),
|
|
@@ -42167,148 +42167,148 @@ ${c}
|
|
|
42167
42167
|
isSelected: () => false,
|
|
42168
42168
|
onSelect: Functions.NOOP
|
|
42169
42169
|
}), Combobox = (e) => {
|
|
42170
|
-
let r = (0, import_compiler_runtime$81.c)(94), c, d, f, h, _, v, y, S, w, E, O, M, I, G, q, Z7, Q7, $7, e9, t9
|
|
42171
|
-
r[0] === e ? (c = r[1], d = r[2], f = r[3], h = r[4], _ = r[5], v = r[6], y = r[7], S = r[8], w = r[9], E = r[10], O = r[11], M = r[12], I = r[13],
|
|
42172
|
-
let
|
|
42173
|
-
r[22] !== w || r[23] !== M || r[24] !==
|
|
42170
|
+
let r = (0, import_compiler_runtime$81.c)(94), c, d, f, h, _, v, y, S, w, E, O, M, I, z, G, q, Z7, Q7, $7, e9, t9;
|
|
42171
|
+
r[0] === e ? (c = r[1], d = r[2], f = r[3], h = r[4], _ = r[5], v = r[6], y = r[7], S = r[8], w = r[9], E = r[10], O = r[11], M = r[12], I = r[13], z = r[14], G = r[15], q = r[16], Z7 = r[17], Q7 = r[18], $7 = r[19], e9 = r[20], t9 = r[21]) : ({ children: c, displayValue: v, className: f, placeholder: I, value: t9, defaultValue: _, onValueChange: O, multiple: q, shouldFilter: Z7, filterFn: y, open: M, defaultOpen: h, onOpenChange: w, inputPlaceholder: Q7, search: G, onSearchChange: E, emptyState: $7, chips: e9, chipsClassName: d, keepPopoverOpenOnSelect: S, ...z } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f, r[4] = h, r[5] = _, r[6] = v, r[7] = y, r[8] = S, r[9] = w, r[10] = E, r[11] = O, r[12] = M, r[13] = I, r[14] = z, r[15] = G, r[16] = q, r[17] = Z7, r[18] = Q7, r[19] = $7, r[20] = e9, r[21] = t9);
|
|
42172
|
+
let n9 = q === void 0 ? false : q, r9 = Z7 === void 0 ? true : Z7, i9 = Q7 === void 0 ? "Search..." : Q7, a9 = $7 === void 0 ? "Nothing found." : $7, o9 = e9 === void 0 ? false : e9, s9 = h ?? false, c9;
|
|
42173
|
+
r[22] !== w || r[23] !== M || r[24] !== s9 ? (c9 = {
|
|
42174
42174
|
prop: M,
|
|
42175
|
-
defaultProp:
|
|
42175
|
+
defaultProp: s9,
|
|
42176
42176
|
onChange: w
|
|
42177
|
-
}, r[22] = w, r[23] = M, r[24] =
|
|
42178
|
-
let [
|
|
42179
|
-
r[26] === O ?
|
|
42177
|
+
}, r[22] = w, r[23] = M, r[24] = s9, r[25] = c9) : c9 = r[25];
|
|
42178
|
+
let [l9, u9] = useControllableState(c9), d9 = l9 === void 0 ? false : l9, f9;
|
|
42179
|
+
r[26] === O ? f9 = r[27] : (f9 = (e2) => {
|
|
42180
42180
|
O == null ? void 0 : O(e2);
|
|
42181
|
-
}, r[26] = O, r[27] =
|
|
42182
|
-
let
|
|
42183
|
-
r[28] !== _ || r[29] !==
|
|
42184
|
-
prop:
|
|
42181
|
+
}, r[26] = O, r[27] = f9);
|
|
42182
|
+
let p9;
|
|
42183
|
+
r[28] !== _ || r[29] !== f9 || r[30] !== t9 ? (p9 = {
|
|
42184
|
+
prop: t9,
|
|
42185
42185
|
defaultProp: _,
|
|
42186
|
-
onChange:
|
|
42187
|
-
}, r[28] = _, r[29] =
|
|
42188
|
-
let [
|
|
42189
|
-
r[32] ===
|
|
42190
|
-
let
|
|
42191
|
-
r[34] !== S || r[35] !==
|
|
42186
|
+
onChange: f9
|
|
42187
|
+
}, r[28] = _, r[29] = f9, r[30] = t9, r[31] = p9) : p9 = r[31];
|
|
42188
|
+
let [m9, h9] = useControllableState(p9), g9;
|
|
42189
|
+
r[32] === m9 ? g9 = r[33] : (g9 = (e2) => Array.isArray(m9) ? m9.includes(e2) : m9 === e2, r[32] = m9, r[33] = g9);
|
|
42190
|
+
let _9 = g9, v9;
|
|
42191
|
+
r[34] !== S || r[35] !== n9 || r[36] !== u9 || r[37] !== h9 || r[38] !== m9 ? (v9 = (e2) => {
|
|
42192
42192
|
let r2 = e2;
|
|
42193
|
-
if (
|
|
42194
|
-
let c2 =
|
|
42193
|
+
if (n9) if (Array.isArray(m9)) if (m9.includes(r2)) {
|
|
42194
|
+
let c2 = m9.filter((r3) => r3 !== e2);
|
|
42195
42195
|
r2 = c2.length > 0 ? c2 : [];
|
|
42196
42196
|
} else r2 = [
|
|
42197
|
-
...
|
|
42197
|
+
...m9,
|
|
42198
42198
|
r2
|
|
42199
42199
|
];
|
|
42200
42200
|
else r2 = [
|
|
42201
42201
|
r2
|
|
42202
42202
|
];
|
|
42203
|
-
else
|
|
42204
|
-
|
|
42205
|
-
}, r[34] = S, r[35] =
|
|
42206
|
-
let
|
|
42207
|
-
r[40] !==
|
|
42208
|
-
let
|
|
42209
|
-
r[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
42203
|
+
else m9 === e2 && (r2 = null);
|
|
42204
|
+
h9(r2), (S ?? n9) || u9(false);
|
|
42205
|
+
}, r[34] = S, r[35] = n9, r[36] = u9, r[37] = h9, r[38] = m9, r[39] = v9) : v9 = r[39];
|
|
42206
|
+
let y9 = v9, b9;
|
|
42207
|
+
r[40] !== o9 || r[41] !== v || r[42] !== n9 || r[43] !== I || r[44] !== m9 ? (b9 = () => n9 && o9 && I ? I : m9 == null ? I ?? "--" : Array.isArray(m9) ? m9.length === 0 ? I ?? "--" : m9.length === 1 && v !== void 0 ? v(m9[0]) : `${m9.length} selected` : v === void 0 ? I ?? "--" : v(m9), r[40] = o9, r[41] = v, r[42] = n9, r[43] = I, r[44] = m9, r[45] = b9) : b9 = r[45];
|
|
42208
|
+
let x9 = b9, S9;
|
|
42209
|
+
r[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S9 = cn("relative"), r[46] = S9) : S9 = r[46];
|
|
42210
|
+
let C9;
|
|
42211
|
+
r[47] === f ? C9 = r[48] : (C9 = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50", f), r[47] = f, r[48] = C9);
|
|
42210
42212
|
let w9;
|
|
42211
|
-
r[
|
|
42213
|
+
r[49] === x9 ? w9 = r[50] : (w9 = x9(), r[49] = x9, r[50] = w9);
|
|
42212
42214
|
let T9;
|
|
42213
|
-
r[
|
|
42214
|
-
let E9;
|
|
42215
|
-
r[51] === T9 ? E9 = r[52] : (E9 = (0, import_jsx_runtime.jsx)("span", {
|
|
42215
|
+
r[51] === w9 ? T9 = r[52] : (T9 = (0, import_jsx_runtime.jsx)("span", {
|
|
42216
42216
|
className: "truncate flex-1 min-w-0",
|
|
42217
|
-
children:
|
|
42218
|
-
}), r[51] =
|
|
42219
|
-
let
|
|
42220
|
-
r[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
42217
|
+
children: w9
|
|
42218
|
+
}), r[51] = w9, r[52] = T9);
|
|
42219
|
+
let E9;
|
|
42220
|
+
r[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E9 = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
42221
42221
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
42222
|
-
}), r[53] =
|
|
42223
|
-
let
|
|
42224
|
-
r[54] !==
|
|
42222
|
+
}), r[53] = E9) : E9 = r[53];
|
|
42223
|
+
let D9;
|
|
42224
|
+
r[54] !== d9 || r[55] !== C9 || r[56] !== T9 ? (D9 = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
42225
42225
|
asChild: true,
|
|
42226
42226
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
42227
|
-
className:
|
|
42228
|
-
"aria-expanded":
|
|
42227
|
+
className: C9,
|
|
42228
|
+
"aria-expanded": d9,
|
|
42229
42229
|
children: [
|
|
42230
|
-
|
|
42231
|
-
|
|
42230
|
+
T9,
|
|
42231
|
+
E9
|
|
42232
42232
|
]
|
|
42233
42233
|
})
|
|
42234
|
-
}), r[54] =
|
|
42235
|
-
let
|
|
42236
|
-
r[58] !==
|
|
42237
|
-
placeholder:
|
|
42234
|
+
}), r[54] = d9, r[55] = C9, r[56] = T9, r[57] = D9) : D9 = r[57];
|
|
42235
|
+
let O9;
|
|
42236
|
+
r[58] !== i9 || r[59] !== E || r[60] !== G ? (O9 = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
42237
|
+
placeholder: i9,
|
|
42238
42238
|
rootClassName: "px-1 h-8",
|
|
42239
42239
|
autoFocus: true,
|
|
42240
|
-
value:
|
|
42240
|
+
value: G,
|
|
42241
42241
|
onValueChange: E
|
|
42242
|
-
}), r[58] =
|
|
42242
|
+
}), r[58] = i9, r[59] = E, r[60] = G, r[61] = O9) : O9 = r[61];
|
|
42243
|
+
let k9;
|
|
42244
|
+
r[62] === a9 ? k9 = r[63] : (k9 = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
42245
|
+
children: a9
|
|
42246
|
+
}), r[62] = a9, r[63] = k9);
|
|
42243
42247
|
let A9;
|
|
42244
|
-
r[
|
|
42245
|
-
|
|
42246
|
-
|
|
42248
|
+
r[64] !== y9 || r[65] !== _9 ? (A9 = {
|
|
42249
|
+
isSelected: _9,
|
|
42250
|
+
onSelect: y9
|
|
42251
|
+
}, r[64] = y9, r[65] = _9, r[66] = A9) : A9 = r[66];
|
|
42247
42252
|
let j9;
|
|
42248
|
-
r[
|
|
42249
|
-
|
|
42250
|
-
onSelect: b9
|
|
42251
|
-
}, r[64] = b9, r[65] = v9, r[66] = j9) : j9 = r[66];
|
|
42252
|
-
let M9;
|
|
42253
|
-
r[67] !== c || r[68] !== j9 ? (M9 = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
42254
|
-
value: j9,
|
|
42253
|
+
r[67] !== c || r[68] !== A9 ? (j9 = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
42254
|
+
value: A9,
|
|
42255
42255
|
children: c
|
|
42256
|
-
}), r[67] = c, r[68] =
|
|
42257
|
-
let
|
|
42258
|
-
r[70] !==
|
|
42256
|
+
}), r[67] = c, r[68] = A9, r[69] = j9) : j9 = r[69];
|
|
42257
|
+
let M9;
|
|
42258
|
+
r[70] !== k9 || r[71] !== j9 ? (M9 = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
42259
42259
|
className: "max-h-60 py-.5",
|
|
42260
42260
|
children: [
|
|
42261
|
-
|
|
42262
|
-
|
|
42261
|
+
k9,
|
|
42262
|
+
j9
|
|
42263
42263
|
]
|
|
42264
|
-
}), r[70] =
|
|
42265
|
-
let
|
|
42266
|
-
r[73] !== y || r[74] !==
|
|
42264
|
+
}), r[70] = k9, r[71] = j9, r[72] = M9) : M9 = r[72];
|
|
42265
|
+
let N9;
|
|
42266
|
+
r[73] !== y || r[74] !== r9 || r[75] !== O9 || r[76] !== M9 ? (N9 = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
42267
42267
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
42268
42268
|
align: "start",
|
|
42269
42269
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
42270
42270
|
filter: y,
|
|
42271
|
-
shouldFilter:
|
|
42271
|
+
shouldFilter: r9,
|
|
42272
42272
|
children: [
|
|
42273
|
-
|
|
42274
|
-
|
|
42273
|
+
O9,
|
|
42274
|
+
M9
|
|
42275
42275
|
]
|
|
42276
42276
|
})
|
|
42277
|
-
}), r[73] = y, r[74] =
|
|
42278
|
-
let
|
|
42279
|
-
r[78] !==
|
|
42280
|
-
open:
|
|
42281
|
-
onOpenChange:
|
|
42277
|
+
}), r[73] = y, r[74] = r9, r[75] = O9, r[76] = M9, r[77] = N9) : N9 = r[77];
|
|
42278
|
+
let P9;
|
|
42279
|
+
r[78] !== d9 || r[79] !== u9 || r[80] !== D9 || r[81] !== N9 ? (P9 = (0, import_jsx_runtime.jsxs)(Popover$1, {
|
|
42280
|
+
open: d9,
|
|
42281
|
+
onOpenChange: u9,
|
|
42282
42282
|
children: [
|
|
42283
|
-
|
|
42284
|
-
|
|
42283
|
+
D9,
|
|
42284
|
+
N9
|
|
42285
42285
|
]
|
|
42286
|
-
}), r[78] =
|
|
42287
|
-
let
|
|
42288
|
-
r[83] !==
|
|
42286
|
+
}), r[78] = d9, r[79] = u9, r[80] = D9, r[81] = N9, r[82] = P9) : P9 = r[82];
|
|
42287
|
+
let F9;
|
|
42288
|
+
r[83] !== o9 || r[84] !== d || r[85] !== v || r[86] !== y9 || r[87] !== n9 || r[88] !== m9 ? (F9 = n9 && o9 && (0, import_jsx_runtime.jsx)("div", {
|
|
42289
42289
|
className: cn("flex flex-col gap-1 items-start", d),
|
|
42290
|
-
children: Array.isArray(
|
|
42290
|
+
children: Array.isArray(m9) && m9.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
42291
42291
|
variant: "secondary",
|
|
42292
42292
|
children: [
|
|
42293
42293
|
(v == null ? void 0 : v(e2)) ?? String(e2),
|
|
42294
42294
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
42295
42295
|
onClick: () => {
|
|
42296
|
-
|
|
42296
|
+
y9(e2);
|
|
42297
42297
|
},
|
|
42298
42298
|
className: "w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer"
|
|
42299
42299
|
})
|
|
42300
42300
|
]
|
|
42301
42301
|
}, String(e2)))
|
|
42302
|
-
}), r[83] =
|
|
42303
|
-
let
|
|
42304
|
-
return r[90] !==
|
|
42305
|
-
className:
|
|
42306
|
-
...
|
|
42302
|
+
}), r[83] = o9, r[84] = d, r[85] = v, r[86] = y9, r[87] = n9, r[88] = m9, r[89] = F9) : F9 = r[89];
|
|
42303
|
+
let I9;
|
|
42304
|
+
return r[90] !== z || r[91] !== P9 || r[92] !== F9 ? (I9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
42305
|
+
className: S9,
|
|
42306
|
+
...z,
|
|
42307
42307
|
children: [
|
|
42308
|
-
|
|
42309
|
-
|
|
42308
|
+
P9,
|
|
42309
|
+
F9
|
|
42310
42310
|
]
|
|
42311
|
-
}), r[90] =
|
|
42311
|
+
}), r[90] = z, r[91] = P9, r[92] = F9, r[93] = I9) : I9 = r[93], I9;
|
|
42312
42312
|
}, ComboboxItem = import_react.forwardRef((e, r) => {
|
|
42313
42313
|
let c = (0, import_compiler_runtime$81.c)(17), { children: d, className: f, value: h, onSelect: _, disabled: v } = e, y = typeof h == "object" && "value" in h ? h.value : String(h), S = import_react.use(ComboboxContext), w;
|
|
42314
42314
|
c[0] === f ? w = c[1] : (w = cn("pl-6 m-1 py-1", f), c[0] = f, c[1] = w);
|
|
@@ -44604,8 +44604,8 @@ ${c}
|
|
|
44604
44604
|
"Data"
|
|
44605
44605
|
]
|
|
44606
44606
|
}), r[10] = O) : O = r[10];
|
|
44607
|
-
let
|
|
44608
|
-
r[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
44607
|
+
let M;
|
|
44608
|
+
r[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
44609
44609
|
className: "w-full",
|
|
44610
44610
|
children: [
|
|
44611
44611
|
O,
|
|
@@ -44620,60 +44620,60 @@ ${c}
|
|
|
44620
44620
|
]
|
|
44621
44621
|
})
|
|
44622
44622
|
]
|
|
44623
|
-
}), r[11] =
|
|
44624
|
-
let
|
|
44625
|
-
r[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
44623
|
+
}), r[11] = M) : M = r[11];
|
|
44624
|
+
let I;
|
|
44625
|
+
r[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = (0, import_jsx_runtime.jsx)("hr", {
|
|
44626
44626
|
className: "my-2"
|
|
44627
|
-
}), r[12] =
|
|
44628
|
-
let
|
|
44629
|
-
r[13] === w ?
|
|
44627
|
+
}), r[12] = I) : I = r[12];
|
|
44628
|
+
let z;
|
|
44629
|
+
r[13] === w ? z = r[14] : (z = (0, import_jsx_runtime.jsxs)(TabsContent, {
|
|
44630
44630
|
value: "data",
|
|
44631
44631
|
children: [
|
|
44632
|
-
|
|
44632
|
+
I,
|
|
44633
44633
|
(0, import_jsx_runtime.jsx)(TabContainer, {
|
|
44634
44634
|
children: (0, import_jsx_runtime.jsx)(w, {})
|
|
44635
44635
|
})
|
|
44636
44636
|
]
|
|
44637
|
-
}), r[13] = w, r[14] =
|
|
44638
|
-
let
|
|
44639
|
-
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
44637
|
+
}), r[13] = w, r[14] = z);
|
|
44638
|
+
let G;
|
|
44639
|
+
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = (0, import_jsx_runtime.jsx)("hr", {
|
|
44640
44640
|
className: "my-2"
|
|
44641
|
-
}), r[15] =
|
|
44642
|
-
let
|
|
44643
|
-
r[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
44641
|
+
}), r[15] = G) : G = r[15];
|
|
44642
|
+
let q;
|
|
44643
|
+
r[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = (0, import_jsx_runtime.jsxs)(TabsContent, {
|
|
44644
44644
|
value: "style",
|
|
44645
44645
|
children: [
|
|
44646
|
-
|
|
44646
|
+
G,
|
|
44647
44647
|
(0, import_jsx_runtime.jsx)(TabContainer, {
|
|
44648
44648
|
children: (0, import_jsx_runtime.jsx)(StyleForm, {})
|
|
44649
44649
|
})
|
|
44650
44650
|
]
|
|
44651
|
-
}), r[16] =
|
|
44652
|
-
let
|
|
44653
|
-
r[17] ===
|
|
44651
|
+
}), r[16] = q) : q = r[16];
|
|
44652
|
+
let Z7;
|
|
44653
|
+
r[17] === z ? Z7 = r[18] : (Z7 = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
44654
44654
|
defaultValue: "data",
|
|
44655
44655
|
children: [
|
|
44656
|
-
|
|
44657
|
-
|
|
44658
|
-
|
|
44656
|
+
M,
|
|
44657
|
+
z,
|
|
44658
|
+
q
|
|
44659
44659
|
]
|
|
44660
|
-
}), r[17] =
|
|
44661
|
-
let
|
|
44662
|
-
r[19] !== S || r[20] !==
|
|
44660
|
+
}), r[17] = z, r[18] = Z7);
|
|
44661
|
+
let Q7;
|
|
44662
|
+
r[19] !== S || r[20] !== Z7 ? (Q7 = (0, import_jsx_runtime.jsx)("form", {
|
|
44663
44663
|
onSubmit: _temp3$11,
|
|
44664
44664
|
onChange: S,
|
|
44665
|
+
children: Z7
|
|
44666
|
+
}), r[19] = S, r[20] = Z7, r[21] = Q7) : Q7 = r[21];
|
|
44667
|
+
let $7;
|
|
44668
|
+
r[22] !== c || r[23] !== Q7 ? ($7 = (0, import_jsx_runtime.jsx)(Form$1, {
|
|
44669
|
+
...c,
|
|
44665
44670
|
children: Q7
|
|
44666
|
-
}), r[
|
|
44671
|
+
}), r[22] = c, r[23] = Q7, r[24] = $7) : $7 = r[24];
|
|
44667
44672
|
let e9;
|
|
44668
|
-
r[
|
|
44669
|
-
...c,
|
|
44670
|
-
children: $7
|
|
44671
|
-
}), r[22] = c, r[23] = $7, r[24] = e9) : e9 = r[24];
|
|
44672
|
-
let t9;
|
|
44673
|
-
return r[25] !== e9 || r[26] !== E ? (t9 = (0, import_jsx_runtime.jsx)(ChartFormContext, {
|
|
44673
|
+
return r[25] !== $7 || r[26] !== E ? (e9 = (0, import_jsx_runtime.jsx)(ChartFormContext, {
|
|
44674
44674
|
value: E,
|
|
44675
|
-
children:
|
|
44676
|
-
}), r[25] =
|
|
44675
|
+
children: $7
|
|
44676
|
+
}), r[25] = $7, r[26] = E, r[27] = e9) : e9 = r[27], e9;
|
|
44677
44677
|
};
|
|
44678
44678
|
function _temp2$17(e) {
|
|
44679
44679
|
return {
|
|
@@ -49229,19 +49229,19 @@ ${c}
|
|
|
49229
49229
|
r[51] === q ? k9 = r[52] : (k9 = q && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
49230
49230
|
error: q
|
|
49231
49231
|
}), r[51] = q, r[52] = k9);
|
|
49232
|
-
let A9 = $7 || "",
|
|
49233
|
-
r[53] !== E || r[54] !== n9 || r[55] !== O || r[56] !== d || r[57] !== w || r[58] !== f || r[59] !== A9 || r[60] !==
|
|
49232
|
+
let A9 = $7 || "", j9 = e9 ?? 0, M9 = o9 ?? 0, N9 = t9 || Arrays.EMPTY, P9 = e9 && e9 > 5 || false, F9;
|
|
49233
|
+
r[53] !== E || r[54] !== n9 || r[55] !== O || r[56] !== d || r[57] !== w || r[58] !== f || r[59] !== A9 || r[60] !== j9 || r[61] !== M9 || r[62] !== N9 || r[63] !== P9 ? (F9 = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
49234
49234
|
label: null,
|
|
49235
49235
|
className: "rounded-b border-x border-b",
|
|
49236
49236
|
data: A9,
|
|
49237
49237
|
hasStableRowId: false,
|
|
49238
|
-
totalRows:
|
|
49239
|
-
totalColumns:
|
|
49238
|
+
totalRows: j9,
|
|
49239
|
+
totalColumns: M9,
|
|
49240
49240
|
maxColumns: "all",
|
|
49241
49241
|
pageSize: d,
|
|
49242
49242
|
pagination: true,
|
|
49243
49243
|
fieldTypes: n9,
|
|
49244
|
-
rowHeaders:
|
|
49244
|
+
rowHeaders: N9,
|
|
49245
49245
|
showDownload: f,
|
|
49246
49246
|
download_as: E,
|
|
49247
49247
|
enableSearch: false,
|
|
@@ -49250,7 +49250,7 @@ ${c}
|
|
|
49250
49250
|
showColumnSummaries: false,
|
|
49251
49251
|
showDataTypes: true,
|
|
49252
49252
|
get_column_summaries: getColumnSummaries,
|
|
49253
|
-
showPageSizeSelector:
|
|
49253
|
+
showPageSizeSelector: P9,
|
|
49254
49254
|
showColumnExplorer: false,
|
|
49255
49255
|
showRowExplorer: true,
|
|
49256
49256
|
showChartBuilder: false,
|
|
@@ -49259,15 +49259,15 @@ ${c}
|
|
|
49259
49259
|
selection: null,
|
|
49260
49260
|
lazy: false,
|
|
49261
49261
|
host: O
|
|
49262
|
-
}), r[53] = E, r[54] = n9, r[55] = O, r[56] = d, r[57] = w, r[58] = f, r[59] = A9, r[60] =
|
|
49263
|
-
let
|
|
49264
|
-
return r[65] !== O9 || r[66] !== k9 || r[67] !==
|
|
49262
|
+
}), r[53] = E, r[54] = n9, r[55] = O, r[56] = d, r[57] = w, r[58] = f, r[59] = A9, r[60] = j9, r[61] = M9, r[62] = N9, r[63] = P9, r[64] = F9) : F9 = r[64];
|
|
49263
|
+
let I9;
|
|
49264
|
+
return r[65] !== O9 || r[66] !== k9 || r[67] !== F9 ? (I9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
49265
49265
|
children: [
|
|
49266
49266
|
O9,
|
|
49267
49267
|
k9,
|
|
49268
|
-
|
|
49268
|
+
F9
|
|
49269
49269
|
]
|
|
49270
|
-
}), r[65] = O9, r[66] = k9, r[67] =
|
|
49270
|
+
}), r[65] = O9, r[66] = k9, r[67] = F9, r[68] = I9) : I9 = r[68], I9;
|
|
49271
49271
|
});
|
|
49272
49272
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
49273
49273
|
function getColumnSummaries() {
|
|
@@ -49387,7 +49387,7 @@ ${c}
|
|
|
49387
49387
|
var PARENT_DIRECTORY = "..";
|
|
49388
49388
|
const FileBrowser = ({ value: e, setValue: r, initialPath: c, selectionMode: d, multiple: f, label: h, restrictNavigation: _, list_directory: v, host: S }) => {
|
|
49389
49389
|
var _a3;
|
|
49390
|
-
let [w, E] = useInternalStateWithSync(c), [O,
|
|
49390
|
+
let [w, E] = useInternalStateWithSync(c), [O, I] = (0, import_react.useState)("Select all"), [z, G] = (0, import_react.useState)(false), [q, Z7] = (0, import_react.useState)(false), Q7 = (_a3 = S.closest(`[${RANDOM_ID_ATTR}]`)) == null ? void 0 : _a3.getAttribute(RANDOM_ID_ATTR), { data: $7, error: e9, isPending: t9 } = useAsyncData(() => v({
|
|
49391
49391
|
path: w
|
|
49392
49392
|
}), [
|
|
49393
49393
|
w,
|
|
@@ -49416,10 +49416,10 @@ ${c}
|
|
|
49416
49416
|
children: e2.path
|
|
49417
49417
|
}, e2.id)), o9 = d === "directory" || d === "all", s9 = d === "file" || d === "all";
|
|
49418
49418
|
function c9(e2) {
|
|
49419
|
-
if (
|
|
49420
|
-
if (
|
|
49419
|
+
if (z) return;
|
|
49420
|
+
if (G(true), e2 === PARENT_DIRECTORY) {
|
|
49421
49421
|
if (w === r9) {
|
|
49422
|
-
|
|
49422
|
+
G(false);
|
|
49423
49423
|
return;
|
|
49424
49424
|
}
|
|
49425
49425
|
e2 = Paths.dirname(w), e2 === "" && (e2 = r9);
|
|
@@ -49430,10 +49430,10 @@ ${c}
|
|
|
49430
49430
|
title: "Access denied",
|
|
49431
49431
|
description: "Access to directories outside initial path is restricted.",
|
|
49432
49432
|
variant: "danger"
|
|
49433
|
-
}),
|
|
49433
|
+
}), G(false);
|
|
49434
49434
|
return;
|
|
49435
49435
|
}
|
|
49436
|
-
E(e2),
|
|
49436
|
+
E(e2), I("Select all"), G(false);
|
|
49437
49437
|
}
|
|
49438
49438
|
function l9({ path: e2, name: r2, isDirectory: c2 }) {
|
|
49439
49439
|
return {
|
|
@@ -49449,7 +49449,7 @@ ${c}
|
|
|
49449
49449
|
name: d2,
|
|
49450
49450
|
isDirectory: h2
|
|
49451
49451
|
});
|
|
49452
|
-
f ? i9.has(c2) ? (r(e.filter((e2) => e2.path !== c2)),
|
|
49452
|
+
f ? i9.has(c2) ? (r(e.filter((e2) => e2.path !== c2)), I("Select all")) : r([
|
|
49453
49453
|
...e,
|
|
49454
49454
|
_2
|
|
49455
49455
|
]) : r([
|
|
@@ -49457,7 +49457,7 @@ ${c}
|
|
|
49457
49457
|
]);
|
|
49458
49458
|
}
|
|
49459
49459
|
function d9() {
|
|
49460
|
-
r(e.filter((e2) => Paths.dirname(e2.path) !== w)),
|
|
49460
|
+
r(e.filter((e2) => Paths.dirname(e2.path) !== w)), I("Select all");
|
|
49461
49461
|
}
|
|
49462
49462
|
function f9() {
|
|
49463
49463
|
if (!n9) return;
|
|
@@ -49474,7 +49474,7 @@ ${c}
|
|
|
49474
49474
|
r([
|
|
49475
49475
|
...e,
|
|
49476
49476
|
...c2
|
|
49477
|
-
]),
|
|
49477
|
+
]), I("Deselect all");
|
|
49478
49478
|
}
|
|
49479
49479
|
let p9 = [];
|
|
49480
49480
|
p9.push((0, import_jsx_runtime.jsxs)(TableRow, {
|
|
@@ -57049,7 +57049,7 @@ ${c}
|
|
|
57049
57049
|
return window.Bokeh != null;
|
|
57050
57050
|
}
|
|
57051
57051
|
var PanelSlot = (e) => {
|
|
57052
|
-
let { data: r, functions: c, host: d } = e, { extension: f, docs_json: h, render_json: _ } = r, v = (0, import_react.useRef)(null), y = (0, import_react.useRef)(null), S = (0, import_react.useRef)(null), [w,
|
|
57052
|
+
let { data: r, functions: c, host: d } = e, { extension: f, docs_json: h, render_json: _ } = r, v = (0, import_react.useRef)(null), y = (0, import_react.useRef)(null), S = (0, import_react.useRef)(null), [w, O] = (0, import_react.useState)(false), [M, I] = (0, import_react.useState)(null), z = (0, import_react.useRef)(c);
|
|
57053
57053
|
z.current = c;
|
|
57054
57054
|
let G = (0, import_react.useCallback)(() => {
|
|
57055
57055
|
if (!q.current) return;
|
|
@@ -57067,7 +57067,7 @@ ${c}
|
|
|
57067
57067
|
}, []), q = (0, import_react.useRef)(new EventBuffer(G));
|
|
57068
57068
|
return (0, import_react.useEffect)(() => {
|
|
57069
57069
|
if (isBokehLoaded()) {
|
|
57070
|
-
|
|
57070
|
+
O(true);
|
|
57071
57071
|
return;
|
|
57072
57072
|
}
|
|
57073
57073
|
if (f) {
|
|
@@ -57075,12 +57075,12 @@ ${c}
|
|
|
57075
57075
|
e3.innerHTML = f, document.head.append(e3);
|
|
57076
57076
|
}
|
|
57077
57077
|
let e2 = setInterval(() => {
|
|
57078
|
-
isBokehLoaded() && (
|
|
57078
|
+
isBokehLoaded() && (O(true), clearInterval(e2));
|
|
57079
57079
|
}, 10);
|
|
57080
57080
|
return () => clearInterval(e2);
|
|
57081
57081
|
}, [
|
|
57082
57082
|
f,
|
|
57083
|
-
|
|
57083
|
+
O
|
|
57084
57084
|
]), useEventListener(d, MarimoIncomingMessageEvent.TYPE, (e2) => {
|
|
57085
57085
|
if (e2.detail.message == null) return;
|
|
57086
57086
|
let r2 = MessageSchema.parse(e2.detail.message), c2 = e2.detail.buffers, d2 = S.current;
|
|
@@ -65346,24 +65346,24 @@ ${c}
|
|
|
65346
65346
|
value: v,
|
|
65347
65347
|
setValue: y
|
|
65348
65348
|
}, r[0] = v, r[1] = S);
|
|
65349
|
-
let w = useInputHistory(S), { consoleOutputs: E, stale: O, cellName: M, cellId: I, onSubmitDebugger: z, onClear: G, onRefactorWithAI: q, className:
|
|
65350
|
-
if (r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
65349
|
+
let w = useInputHistory(S), { consoleOutputs: E, stale: O, cellName: M, cellId: I, onSubmitDebugger: z, onClear: G, onRefactorWithAI: q, className: Q7 } = e, $7 = useDebouncedConsoleOutputs(E), e9 = $7.length > 0, t9 = useSelectAllContent(e9), n9 = useOverflowDetection(c, e9), r9;
|
|
65350
|
+
if (r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r9 = () => {
|
|
65351
65351
|
let e2 = c.current;
|
|
65352
65352
|
if (!e2) return;
|
|
65353
65353
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
65354
65354
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
65355
|
-
}, r[2] =
|
|
65356
|
-
let
|
|
65357
|
-
if (r[3] !== I || r[4] !==
|
|
65358
|
-
let e2 =
|
|
65359
|
-
r[29] ===
|
|
65360
|
-
let
|
|
65361
|
-
|
|
65355
|
+
}, r[2] = r9) : r9 = r[2], (0, import_react.useLayoutEffect)(r9), !e9 && isInternalCellName(M)) return null;
|
|
65356
|
+
let i9, a9, o9, s9, c9, l9, u9, d9, f9, p9;
|
|
65357
|
+
if (r[3] !== I || r[4] !== Q7 || r[5] !== $7 || r[6] !== e9 || r[7] !== w || r[8] !== h || r[9] !== n9 || r[10] !== G || r[11] !== q || r[12] !== z || r[13] !== t9 || r[14] !== _ || r[15] !== f || r[16] !== O || r[17] !== v || r[18] !== d) {
|
|
65358
|
+
let e2 = $7.toReversed(), S2 = e2.some(_temp$2), E2 = e2.findIndex(_temp2$2), M2;
|
|
65359
|
+
r[29] === $7 ? M2 = r[30] : (M2 = () => $7.filter(_temp3$1).map(_temp4$1).join("\n"), r[29] = $7, r[30] = M2);
|
|
65360
|
+
let Z7 = M2;
|
|
65361
|
+
i9 = "relative group", r[31] !== Z7 || r[32] !== e9 || r[33] !== h || r[34] !== n9 || r[35] !== _ || r[36] !== f || r[37] !== d ? (a9 = e9 && (0, import_jsx_runtime.jsxs)("div", {
|
|
65362
65362
|
className: "absolute top-1 right-4 z-10 opacity-0 group-hover:opacity-100 flex items-center gap-1 print:hidden",
|
|
65363
65363
|
children: [
|
|
65364
65364
|
(0, import_jsx_runtime.jsx)(CopyClipboardIcon, {
|
|
65365
65365
|
tooltip: "Copy console output",
|
|
65366
|
-
value:
|
|
65366
|
+
value: Z7,
|
|
65367
65367
|
className: "h-4 w-4"
|
|
65368
65368
|
}),
|
|
65369
65369
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
@@ -65380,7 +65380,7 @@ ${c}
|
|
|
65380
65380
|
})
|
|
65381
65381
|
})
|
|
65382
65382
|
}),
|
|
65383
|
-
(
|
|
65383
|
+
(n9 || h) && (0, import_jsx_runtime.jsx)(Button, {
|
|
65384
65384
|
"aria-label": h ? "Collapse output" : "Expand output",
|
|
65385
65385
|
className: "p-0 mb-px",
|
|
65386
65386
|
onClick: () => _(!h),
|
|
@@ -65399,15 +65399,15 @@ ${c}
|
|
|
65399
65399
|
})
|
|
65400
65400
|
})
|
|
65401
65401
|
]
|
|
65402
|
-
}), r[31] =
|
|
65403
|
-
let
|
|
65404
|
-
r[39] !==
|
|
65402
|
+
}), r[31] = Z7, r[32] = e9, r[33] = h, r[34] = n9, r[35] = _, r[36] = f, r[37] = d, r[38] = a9) : a9 = r[38], o9 = O ? "This console output is stale" : void 0, s9 = "console-output-area", c9 = c, l9 = t9, u9 = 0;
|
|
65403
|
+
let r92 = O && "marimo-output-stale", m92 = e9 ? "p-5" : "p-3";
|
|
65404
|
+
r[39] !== Q7 || r[40] !== r92 || r[41] !== m92 ? (d9 = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", r92, m92, Q7), r[39] = Q7, r[40] = r92, r[41] = m92, r[42] = d9) : d9 = r[42], r[43] === h ? f9 = r[44] : (f9 = h ? {
|
|
65405
65405
|
maxHeight: "none"
|
|
65406
|
-
} : void 0, r[43] = h, r[44] =
|
|
65406
|
+
} : void 0, r[43] = h, r[44] = f9), p9 = e2.map((e3, r2) => {
|
|
65407
65407
|
if (e3.channel === "pdb") return null;
|
|
65408
65408
|
if (e3.channel === "stdin") {
|
|
65409
65409
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
65410
|
-
let c2 =
|
|
65410
|
+
let c2 = $7.length - r2 - 1, d2 = e3.mimetype === "text/password";
|
|
65411
65411
|
return e3.response == null && E2 === r2 ? (0, import_jsx_runtime.jsx)(StdInput, {
|
|
65412
65412
|
output: e3.data,
|
|
65413
65413
|
isPdb: S2,
|
|
@@ -65431,36 +65431,36 @@ ${c}
|
|
|
65431
65431
|
wrapText: d
|
|
65432
65432
|
})
|
|
65433
65433
|
}, r2);
|
|
65434
|
-
}), r[3] = I, r[4] =
|
|
65435
|
-
} else
|
|
65436
|
-
let
|
|
65437
|
-
r[45] !== I || r[46] !== M ? (
|
|
65434
|
+
}), r[3] = I, r[4] = Q7, r[5] = $7, r[6] = e9, r[7] = w, r[8] = h, r[9] = n9, r[10] = G, r[11] = q, r[12] = z, r[13] = t9, r[14] = _, r[15] = f, r[16] = O, r[17] = v, r[18] = d, r[19] = i9, r[20] = a9, r[21] = o9, r[22] = s9, r[23] = c9, r[24] = l9, r[25] = u9, r[26] = d9, r[27] = f9, r[28] = p9;
|
|
65435
|
+
} else i9 = r[19], a9 = r[20], o9 = r[21], s9 = r[22], c9 = r[23], l9 = r[24], u9 = r[25], d9 = r[26], f9 = r[27], p9 = r[28];
|
|
65436
|
+
let m9;
|
|
65437
|
+
r[45] !== I || r[46] !== M ? (m9 = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
65438
65438
|
value: M,
|
|
65439
65439
|
cellId: I,
|
|
65440
65440
|
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"
|
|
65441
|
-
}), r[45] = I, r[46] = M, r[47] =
|
|
65442
|
-
let m9;
|
|
65443
|
-
r[48] !== p9 || r[49] !== a9 || r[50] !== o9 || r[51] !== s9 || r[52] !== c9 || r[53] !== l9 || r[54] !== u9 || r[55] !== d9 || r[56] !== f9 ? (m9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
65444
|
-
title: a9,
|
|
65445
|
-
"data-testid": o9,
|
|
65446
|
-
ref: s9,
|
|
65447
|
-
...c9,
|
|
65448
|
-
tabIndex: l9,
|
|
65449
|
-
className: u9,
|
|
65450
|
-
style: d9,
|
|
65451
|
-
children: [
|
|
65452
|
-
f9,
|
|
65453
|
-
p9
|
|
65454
|
-
]
|
|
65455
|
-
}), r[48] = p9, r[49] = a9, r[50] = o9, r[51] = s9, r[52] = c9, r[53] = l9, r[54] = u9, r[55] = d9, r[56] = f9, r[57] = m9) : m9 = r[57];
|
|
65441
|
+
}), r[45] = I, r[46] = M, r[47] = m9) : m9 = r[47];
|
|
65456
65442
|
let h9;
|
|
65457
|
-
|
|
65458
|
-
|
|
65443
|
+
r[48] !== m9 || r[49] !== o9 || r[50] !== s9 || r[51] !== c9 || r[52] !== l9 || r[53] !== u9 || r[54] !== d9 || r[55] !== f9 || r[56] !== p9 ? (h9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
65444
|
+
title: o9,
|
|
65445
|
+
"data-testid": s9,
|
|
65446
|
+
ref: c9,
|
|
65447
|
+
...l9,
|
|
65448
|
+
tabIndex: u9,
|
|
65449
|
+
className: d9,
|
|
65450
|
+
style: f9,
|
|
65459
65451
|
children: [
|
|
65460
|
-
|
|
65452
|
+
p9,
|
|
65461
65453
|
m9
|
|
65462
65454
|
]
|
|
65463
|
-
}), r[
|
|
65455
|
+
}), r[48] = m9, r[49] = o9, r[50] = s9, r[51] = c9, r[52] = l9, r[53] = u9, r[54] = d9, r[55] = f9, r[56] = p9, r[57] = h9) : h9 = r[57];
|
|
65456
|
+
let g9;
|
|
65457
|
+
return r[58] !== i9 || r[59] !== a9 || r[60] !== h9 ? (g9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
65458
|
+
className: i9,
|
|
65459
|
+
children: [
|
|
65460
|
+
a9,
|
|
65461
|
+
h9
|
|
65462
|
+
]
|
|
65463
|
+
}), r[58] = i9, r[59] = a9, r[60] = h9, r[61] = g9) : g9 = r[61], g9;
|
|
65464
65464
|
}, StdInput = (e) => {
|
|
65465
65465
|
let r = (0, import_compiler_runtime$4.c)(25), { value: c, setValue: d, inputHistory: f, output: h, isPassword: _, isPdb: v, onSubmit: y, onClear: S } = e, { navigateUp: w, navigateDown: E, addToHistory: O } = f, M;
|
|
65466
65466
|
r[0] === h ? M = r[1] : (M = renderText(h), r[0] = h, r[1] = M);
|
|
@@ -65552,7 +65552,7 @@ ${c}
|
|
|
65552
65552
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
65553
65553
|
}
|
|
65554
65554
|
}
|
|
65555
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.22.5-
|
|
65555
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.22.5-dev8"), showCodeInRunModeAtom = atom(true);
|
|
65556
65556
|
atom(null);
|
|
65557
65557
|
var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
|
|
65558
65558
|
constructor() {
|
|
@@ -65868,9 +65868,9 @@ ${c}
|
|
|
65868
65868
|
runStartTimestamp: O,
|
|
65869
65869
|
staleInputs: E
|
|
65870
65870
|
}, false), r[0] = w, r[1] = c, r[2] = O, r[3] = E, r[4] = _, r[5] = $7) : $7 = r[5];
|
|
65871
|
-
let
|
|
65872
|
-
r[6] === _ ?
|
|
65873
|
-
let r9 =
|
|
65871
|
+
let t9 = $7, n9;
|
|
65872
|
+
r[6] === _ ? n9 = r[7] : (n9 = outputIsLoading(_), r[6] = _, r[7] = n9);
|
|
65873
|
+
let r9 = n9, i9 = q && z !== "present", a9;
|
|
65874
65874
|
if (r[8] !== M || r[9] !== y || r[10] !== i9 || r[11] !== I || r[12] !== v) {
|
|
65875
65875
|
let e2 = new MarkdownLanguageAdapter().isSupported(M), c2 = !I && !i9;
|
|
65876
65876
|
a9 = cn("marimo-cell", "hover-actions-parent empty:invisible", {
|
|
@@ -65883,14 +65883,14 @@ ${c}
|
|
|
65883
65883
|
let o9 = a9;
|
|
65884
65884
|
if (z === "read" && I || i9) {
|
|
65885
65885
|
let e2;
|
|
65886
|
-
r[14] !== h || r[15] !== r9 || r[16] !== c || r[17] !==
|
|
65886
|
+
r[14] !== h || r[15] !== r9 || r[16] !== c || r[17] !== t9 ? (e2 = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
65887
65887
|
allowExpand: true,
|
|
65888
65888
|
output: c,
|
|
65889
65889
|
className: CSSClasses.outputArea,
|
|
65890
65890
|
cellId: h,
|
|
65891
|
-
stale:
|
|
65891
|
+
stale: t9,
|
|
65892
65892
|
loading: r9
|
|
65893
|
-
}), r[14] = h, r[15] = r9, r[16] = c, r[17] =
|
|
65893
|
+
}), r[14] = h, r[15] = r9, r[16] = c, r[17] = t9, r[18] = e2) : e2 = r[18];
|
|
65894
65894
|
let _2 = e2, v2;
|
|
65895
65895
|
r[19] !== M || r[20] !== c ? (v2 = shouldHideCode(M, c), r[19] = M, r[20] = c, r[21] = v2) : v2 = r[21];
|
|
65896
65896
|
let y2 = v2, w2;
|
|
@@ -65904,14 +65904,14 @@ ${c}
|
|
|
65904
65904
|
})
|
|
65905
65905
|
}), r[25] = M, r[26] = S, r[27] = y2, r[28] = q, r[29] = O2) : O2 = r[29];
|
|
65906
65906
|
let I2 = f === "below" && _2, z2;
|
|
65907
|
-
r[30] !== h || r[31] !== d || r[32] !== G || r[33] !==
|
|
65907
|
+
r[30] !== h || r[31] !== d || r[32] !== G || r[33] !== t9 ? (z2 = (0, import_jsx_runtime.jsx)(ConsoleOutput, {
|
|
65908
65908
|
consoleOutputs: d,
|
|
65909
|
-
stale:
|
|
65909
|
+
stale: t9,
|
|
65910
65910
|
cellName: G,
|
|
65911
65911
|
onSubmitDebugger: _temp5,
|
|
65912
65912
|
cellId: h,
|
|
65913
65913
|
debuggerActive: false
|
|
65914
|
-
}), r[30] = h, r[31] = d, r[32] = G, r[33] =
|
|
65914
|
+
}), r[30] = h, r[31] = d, r[32] = G, r[33] = t9, r[34] = z2) : z2 = r[34];
|
|
65915
65915
|
let Z72;
|
|
65916
65916
|
return r[35] !== o9 || r[36] !== z2 || r[37] !== w2 || r[38] !== E2 || r[39] !== O2 || r[40] !== I2 ? (Z72 = (0, import_jsx_runtime.jsxs)("div", {
|
|
65917
65917
|
tabIndex: -1,
|
|
@@ -65931,14 +65931,14 @@ ${c}
|
|
|
65931
65931
|
let l9;
|
|
65932
65932
|
r[42] !== h || r[43] !== G ? (l9 = cellDomProps(h, G), r[42] = h, r[43] = G, r[44] = l9) : l9 = r[44];
|
|
65933
65933
|
let u9 = z === "edit", d9;
|
|
65934
|
-
r[45] !== h || r[46] !== r9 || r[47] !== c || r[48] !==
|
|
65934
|
+
r[45] !== h || r[46] !== r9 || r[47] !== c || r[48] !== t9 || r[49] !== u9 ? (d9 = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
65935
65935
|
allowExpand: u9,
|
|
65936
65936
|
output: c,
|
|
65937
65937
|
className: CSSClasses.outputArea,
|
|
65938
65938
|
cellId: h,
|
|
65939
|
-
stale:
|
|
65939
|
+
stale: t9,
|
|
65940
65940
|
loading: r9
|
|
65941
|
-
}), r[45] = h, r[46] = r9, r[47] = c, r[48] =
|
|
65941
|
+
}), r[45] = h, r[46] = r9, r[47] = c, r[48] = t9, r[49] = u9, r[50] = d9) : d9 = r[50];
|
|
65942
65942
|
let f9;
|
|
65943
65943
|
return r[51] !== o9 || r[52] !== l9 || r[53] !== d9 ? (f9 = (0, import_jsx_runtime.jsx)("div", {
|
|
65944
65944
|
tabIndex: -1,
|