@marimo-team/islands 0.23.15-dev1 → 0.23.15-dev10
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-DinOvbWu.js → chat-ui-FiwuOgQU.js} +3094 -3094
- package/dist/{code-visibility-PV_v9dwf.js → code-visibility-CyTw8jup.js} +171 -171
- package/dist/{html-to-image-_wGfk8V-.js → html-to-image-JXL8cvmt.js} +2218 -2205
- package/dist/main.js +310 -306
- package/dist/{process-output-Mh4UrjwM.js → process-output-CnDIXtM-.js} +1 -1
- package/dist/{reveal-component-DVEmgnsr.js → reveal-component-CgdFrza3.js} +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/chat/__tests__/chat-utils.test.ts +244 -1
- package/src/components/chat/__tests__/message-queue.test.tsx +121 -0
- package/src/components/chat/chat-panel.tsx +196 -67
- package/src/components/chat/chat-utils.ts +111 -2
- package/src/components/editor/SortableCell.tsx +6 -2
- package/src/components/editor/__tests__/output-persistence.test.tsx +241 -0
- package/src/components/editor/cell/cell-context-menu.tsx +7 -0
- package/src/components/editor/columns/__tests__/cell-column.test.tsx +105 -0
- package/src/components/editor/columns/cell-column.tsx +34 -4
- package/src/components/editor/columns/sortable-column.tsx +24 -4
- package/src/components/editor/notebook-cell.tsx +203 -106
- package/src/components/editor/renderers/__tests__/cells-renderer.test.tsx +66 -0
- package/src/components/editor/renderers/cell-array.tsx +26 -13
- package/src/components/editor/renderers/cells-renderer.tsx +8 -2
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +19 -19
- package/src/core/cells/__tests__/utils.test.ts +59 -0
- package/src/core/cells/utils.ts +51 -0
- package/src/css/app/Cell.css +10 -0
- package/src/hooks/__tests__/useHotkey.test.tsx +88 -0
- package/src/hooks/useHotkey.ts +29 -4
- package/src/plugins/impl/matplotlib/__tests__/matplotlib-renderer.test.ts +71 -3
- package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +1 -0
package/dist/main.js
CHANGED
|
@@ -22,17 +22,17 @@ import { _ as Logger, c as Objects, g as cn, h as Events, i as NOT_SET, l as use
|
|
|
22
22
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
23
23
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
24
24
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-COam1EG7.js";
|
|
25
|
-
import { $ as reducer, $t as
|
|
25
|
+
import { $ as reducer, $t as isUninstantiated, A as ChevronDownIcon, An as Item$1, Bn as Layers, Bt as MarkdownParser, C as Accordion, Ct as customPythonLanguageSupport, D as BorderAllIcon, Dt as Paths, E as AccordionTrigger, En as selectAtom, Et as PathBuilder, Fn as Table2, Ft as jotaiJsonStorage, G as hasRunAnyCellAtom, Gn as Database, Gt as require_client, H as renderHTML, Hn as FileText, Ht as PluralWords, I as base64ToDataView, In as PaintRoller, J as getCellNames, Jn as CircleAlert, K as createActions, Kn as Columns2, Mn as Trigger2, Mt as generateUUID, Pn as Trash2, Q as numColumnsAtom, Qt as useRequestClient, R as dataViewToBase64, Rt as repl, Sn as jsonParseWithSpecialChar, St as Checkbox, T as AccordionItem, Tn as atomWithStorage, U as getMarimoExportContext, Un as Eye, Ut as DATA_TYPE_ICON, V as safeExtractSetUIElementMessageBuffers, Vn as Info, W as hasTrustedExportContext, X as notebookAtom, Xt as getRequestClient, Y as hasOnlyOneCellAtom, Yn as Braces, Yt as convertStatsName, Z as notebookOutline, Zt as requestClientAtom, a as useCellFocusActions, bn as OBJECT_ID_ATTR, bt as isInternalCellName, ct as initialModeAtom, dt as viewStateAtom, en as publishedCellClasses, et as useCellActions, f as isOutputEmpty, fn as parseAttrValue, ft as outputIsLoading, gn as HTMLCellId, i as LazyAnyLanguageCodeMirror, jn as Root2$1, jt as DeferredRequestRegistry, kn as Content2, ln as NotebookScopedLocalStorage, lt as kioskModeAtom, mn as parseInitialValue, mt as headingToIdentifier, n as Spinner, o as useLastFocusedCellId, p as useExpandedConsoleOutput, pn as parseDataset, pt as outputIsStale, rt as createCell, s as maybeAddAltairImport, st as getInitialAppMode, tn as shouldHidePublishedCell, tt as useCellIds, vn as UIElementId, w as AccordionContent, wn as atomWithReducer, wt as MarkdownLanguageAdapter, xn as RANDOM_ID_ATTR, xt as normalizeName, yn as findCellId, yt as getValidName, zn as LoaderCircle, zt as SQLParser, __tla as __tla_0 } from "./html-to-image-JXL8cvmt.js";
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BbqSm5gU.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist--2Bqjvs0.js";
|
|
28
28
|
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, 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 ChartColumn, 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-Cz-Bj1JI.js";
|
|
29
|
-
import { $ as PANEL_TYPES, $t as hasFunctionProperty, A as prettifyRowCount, At as INDEX_COLUMN_NAME, B as CompactChipRow, Bt as Tabs, C as downloadSizeLimitAtom, Ct as ColumnChartSpecModel, D as ErrorState, Dt as getPageIndexForRow, E as EmptyState, Et as usePrevious$1, F as ContextMenuItem, Ft as isNullishFilter, G as Command, Gt as ChartInfoState, H as DateRangePicker, Ht as TabsList, I as ContextMenuSeparator, It as Maps, J as CommandItem, Jt as useOverflowDetection, K as CommandEmpty, Kt as ChartLoadingState, L as ContextMenuTrigger, Lt as dateToLocalISODate, M as getUserColumnVisibilityCounts, Mt as TOO_MANY_ROWS, N as ContextMenu, Nt as toFieldTypes, O as LoadingState, Ot as loadTableAndRawData, P as ContextMenuContent, Pt as getMimeValues, Q as ContextAwarePanelItem, Qt as EmotionCacheProvider, R as useInternalStateWithSync, Rt as dateToLocalISODateTime, S as Filenames, St as ColumnChartContext, T as ColumnPreviewContainer, Tt as useIntersectionObserver, U as Combobox, Ut as TabsTrigger, V as DatePicker, Vt as TabsContent, W as ComboboxItem, Wt as ChartErrorState, X as CommandSeparator, Xt as Kbd, Y as CommandList, Yt as RenderTextWithLinks, Z as smartMatch, Zt as HtmlOutput, _ as ADD_PRINTING_CLASS, _t as TableRow, an as Funnel, at as slotsController, b as downloadHTMLAsImage, bt as inferFieldTypes, c as Slide, cn as Ellipsis, d as RadioGroupItem, dn as ChevronsUpDown, dt as Provider$1, en as isRecord, et as contextAwarePanelOpen, f as JsonOutput, fn as ChevronsRight, ft as Table, g as InstallPackageButton, gn as ArrowDownWideNarrow, gt as TableHeader, h as DataTable, hn as ChevronLeft, ht as TableHead, in as GripHorizontal, it as SlotNames, j as getColumnCountForDisplay, jt as SELECT_COLUMN_ID, k as prettifyRowColumnCount, kt as loadTableData, l as Switch, ln as Download, m as OutputRenderer, mn as ChevronsDownUp, mt as TableCell, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$6b862160d295c8e, nt as contextAwarePanelType, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as EyeOff, ot as Toggle, p as OutputArea, pn as ChevronsLeft, pt as TableBody, q as CommandInput, qt as LazyVegaEmbed, r as showCodeInRunModeAtom, rn as TextWrap, rt as isCellAwareAtom, t as useNotebookCodeAvailable, tn as $fae977aafc393c5c$export$588937bcd60ade55, tt as contextAwarePanelOwner, u as RadioGroup, un as Code, ut as Fill, v as downloadBlob, vt as NAMELESS_COLUMN_PREFIX, w as ColumnName, wt as DelayMount, x as Progress, xt as renderCellValue, y as downloadByURL, yt as generateColumns, z as useSelectList, zt as dateToLocalISOTime, __tla as __tla_2 } from "./code-visibility-
|
|
29
|
+
import { $ as PANEL_TYPES, $t as hasFunctionProperty, A as prettifyRowCount, At as INDEX_COLUMN_NAME, B as CompactChipRow, Bt as Tabs, C as downloadSizeLimitAtom, Ct as ColumnChartSpecModel, D as ErrorState, Dt as getPageIndexForRow, E as EmptyState, Et as usePrevious$1, F as ContextMenuItem, Ft as isNullishFilter, G as Command, Gt as ChartInfoState, H as DateRangePicker, Ht as TabsList, I as ContextMenuSeparator, It as Maps, J as CommandItem, Jt as useOverflowDetection, K as CommandEmpty, Kt as ChartLoadingState, L as ContextMenuTrigger, Lt as dateToLocalISODate, M as getUserColumnVisibilityCounts, Mt as TOO_MANY_ROWS, N as ContextMenu, Nt as toFieldTypes, O as LoadingState, Ot as loadTableAndRawData, P as ContextMenuContent, Pt as getMimeValues, Q as ContextAwarePanelItem, Qt as EmotionCacheProvider, R as useInternalStateWithSync, Rt as dateToLocalISODateTime, S as Filenames, St as ColumnChartContext, T as ColumnPreviewContainer, Tt as useIntersectionObserver, U as Combobox, Ut as TabsTrigger, V as DatePicker, Vt as TabsContent, W as ComboboxItem, Wt as ChartErrorState, X as CommandSeparator, Xt as Kbd, Y as CommandList, Yt as RenderTextWithLinks, Z as smartMatch, Zt as HtmlOutput, _ as ADD_PRINTING_CLASS, _t as TableRow, an as Funnel, at as slotsController, b as downloadHTMLAsImage, bt as inferFieldTypes, c as Slide, cn as Ellipsis, d as RadioGroupItem, dn as ChevronsUpDown, dt as Provider$1, en as isRecord, et as contextAwarePanelOpen, f as JsonOutput, fn as ChevronsRight, ft as Table, g as InstallPackageButton, gn as ArrowDownWideNarrow, gt as TableHeader, h as DataTable, hn as ChevronLeft, ht as TableHead, in as GripHorizontal, it as SlotNames, j as getColumnCountForDisplay, jt as SELECT_COLUMN_ID, k as prettifyRowColumnCount, kt as loadTableData, l as Switch, ln as Download, m as OutputRenderer, mn as ChevronsDownUp, mt as TableCell, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$6b862160d295c8e, nt as contextAwarePanelType, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as EyeOff, ot as Toggle, p as OutputArea, pn as ChevronsLeft, pt as TableBody, q as CommandInput, qt as LazyVegaEmbed, r as showCodeInRunModeAtom, rn as TextWrap, rt as isCellAwareAtom, t as useNotebookCodeAvailable, tn as $fae977aafc393c5c$export$588937bcd60ade55, tt as contextAwarePanelOwner, u as RadioGroup, un as Code, ut as Fill, v as downloadBlob, vt as NAMELESS_COLUMN_PREFIX, w as ColumnName, wt as DelayMount, x as Progress, xt as renderCellValue, y as downloadByURL, yt as generateColumns, z as useSelectList, zt as dateToLocalISOTime, __tla as __tla_2 } from "./code-visibility-CyTw8jup.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-DegSo0lV.js";
|
|
31
31
|
import { t as Check } from "./check-C9OoNtR4.js";
|
|
32
32
|
import { A as Icon, C as logNever, D as $18f2051aff69b9bf$export$a54013f0d02a8f82, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, M as clamp$2, N as usePrevious$2, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as Trigger$1, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./strings-Dq_j3Rxw.js";
|
|
33
33
|
import { B as $64fa3d84918910a7$export$4d86445c2cf5e3, C as DropdownMenuTrigger, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, It as $3ef42575df84b30b$export$9d1611c77c2fe928, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, X as useDebouncedCallback, Y as useDebounceControlledState, a as NumberField, d as roundToFractionDigits, f as DropdownMenu, g as DropdownMenuLabel, gn as ChevronRight, h as DropdownMenuItem, hn as Circle, i as OnBlurredInput, l as prettyNumber, m as DropdownMenuGroup, n as DebouncedNumberInput, o as maxFractionDigitsForSteps, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pt as $6179b936705e76d3$export$ae780daf29e6d456, r as Input, st as $701a24aa0da5b062$export$ea18c227d4417cc3, t as DebouncedInput, u as prettyScientificNumber, v as DropdownMenuSeparator, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, y as DropdownMenuShortcut, z as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./input-DtsN7xm-.js";
|
|
34
34
|
import { _ as isWasm, c as asRemoteURL, d as isStaticNotebook, f as appendQueryParams, g as Deferred, m as require_cuid2, u as getStaticVirtualFiles, v as CircleQuestionMark } from "./toDate-CWNNlFEX.js";
|
|
35
|
-
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, d as Square, f as File, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-
|
|
35
|
+
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, d as Square, f as File, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-CnDIXtM-.js";
|
|
36
36
|
import { n as Trash, r as Pencil, t as BulkEdit } from "./types-C2Ir191_.js";
|
|
37
37
|
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-DE6tzZf-.js";
|
|
38
38
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
@@ -7414,7 +7414,7 @@ let __tla = Promise.all([
|
|
|
7414
7414
|
}), H = U(), W = U(), G = C(0), q = C(null), kW = C({
|
|
7415
7415
|
column: 0,
|
|
7416
7416
|
row: 0
|
|
7417
|
-
}),
|
|
7417
|
+
}), AW = U(), Z = U(), jW = C(false), MW = C(0), NW = C(true), PW = C(false), FW = C(false);
|
|
7418
7418
|
Y(x(b, $(MW), P(([e2, r2]) => !!r2)), () => {
|
|
7419
7419
|
D(NW, false);
|
|
7420
7420
|
}), Y(x(ut(b, NW, B, z, MW, PW), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
@@ -7426,7 +7426,7 @@ let __tla = Promise.all([
|
|
|
7426
7426
|
0
|
|
7427
7427
|
]), D(NW, true);
|
|
7428
7428
|
});
|
|
7429
|
-
}), F(x(
|
|
7429
|
+
}), F(x(Z, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(Z), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7430
7430
|
e2 && (D(z, e2.viewport), D(B, e2.item), D(kW, e2.gap), e2.scrollTop > 0 && (D(jW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7431
7431
|
D(jW, false);
|
|
7432
7432
|
}), D(m, {
|
|
@@ -7437,7 +7437,7 @@ let __tla = Promise.all([
|
|
|
7437
7437
|
item: r2,
|
|
7438
7438
|
scrollTop: l2,
|
|
7439
7439
|
viewport: e2
|
|
7440
|
-
}))),
|
|
7440
|
+
}))), AW), F(x(ut(V(I), l, V(kW, Or), V(B, xe), V(z, xe), V(q), V(L), V(jW), V(NW), V(MW)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7441
7441
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7442
7442
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7443
7443
|
if (y2 === 0) {
|
|
@@ -7496,7 +7496,7 @@ let __tla = Promise.all([
|
|
|
7496
7496
|
initialItemCount: L,
|
|
7497
7497
|
itemDimensions: B,
|
|
7498
7498
|
overscan: c,
|
|
7499
|
-
restoreStateFrom:
|
|
7499
|
+
restoreStateFrom: Z,
|
|
7500
7500
|
scrollBy: f,
|
|
7501
7501
|
scrollContainerState: p,
|
|
7502
7502
|
scrollHeight: W,
|
|
@@ -7520,7 +7520,7 @@ let __tla = Promise.all([
|
|
|
7520
7520
|
propsReady: S,
|
|
7521
7521
|
rangeChanged: zW,
|
|
7522
7522
|
startReached: RW,
|
|
7523
|
-
stateChanged:
|
|
7523
|
+
stateChanged: AW,
|
|
7524
7524
|
stateRestoreInProgress: jW,
|
|
7525
7525
|
...M
|
|
7526
7526
|
};
|
|
@@ -7799,22 +7799,22 @@ let __tla = Promise.all([
|
|
|
7799
7799
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7800
7800
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7801
7801
|
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7802
|
-
let kW = q,
|
|
7802
|
+
let kW = q, AW;
|
|
7803
7803
|
if (r[13] !== G.bulkActions) {
|
|
7804
|
-
if (
|
|
7804
|
+
if (AW = G.bulkActions.map(_temp$27), AW.length > 0) {
|
|
7805
7805
|
let e2;
|
|
7806
7806
|
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7807
7807
|
"data-slot": "select-separator"
|
|
7808
|
-
}, "_bulk_separator"), r[15] = e2) : e2 = r[15],
|
|
7808
|
+
}, "_bulk_separator"), r[15] = e2) : e2 = r[15], AW.push(e2);
|
|
7809
7809
|
}
|
|
7810
|
-
r[13] = G.bulkActions, r[14] =
|
|
7811
|
-
} else
|
|
7812
|
-
let
|
|
7813
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7810
|
+
r[13] = G.bulkActions, r[14] = AW;
|
|
7811
|
+
} else AW = r[14];
|
|
7812
|
+
let Z;
|
|
7813
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (Z = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7814
7814
|
"data-slot": "select-separator"
|
|
7815
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7816
|
-
let jW =
|
|
7817
|
-
r[19] !==
|
|
7815
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = Z) : Z = r[18];
|
|
7816
|
+
let jW = Z, MW;
|
|
7817
|
+
r[19] !== AW || r[20] !== G || r[21] !== jW || r[22] !== w || r[23] !== B || r[24] !== H ? (MW = () => {
|
|
7818
7818
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7819
7819
|
"data-slot": "select-list",
|
|
7820
7820
|
style: {
|
|
@@ -7826,7 +7826,7 @@ let __tla = Promise.all([
|
|
|
7826
7826
|
let r2 = G.visibleOptions[e3];
|
|
7827
7827
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7828
7828
|
children: [
|
|
7829
|
-
e3 === 0 &&
|
|
7829
|
+
e3 === 0 && AW,
|
|
7830
7830
|
jW(e3),
|
|
7831
7831
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7832
7832
|
option: r2,
|
|
@@ -7852,11 +7852,11 @@ let __tla = Promise.all([
|
|
|
7852
7852
|
});
|
|
7853
7853
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7854
7854
|
children: [
|
|
7855
|
-
|
|
7855
|
+
AW,
|
|
7856
7856
|
e2
|
|
7857
7857
|
]
|
|
7858
7858
|
});
|
|
7859
|
-
}, r[19] =
|
|
7859
|
+
}, r[19] = AW, r[20] = G, r[21] = jW, r[22] = w, r[23] = B, r[24] = H, r[25] = MW) : MW = r[25];
|
|
7860
7860
|
let NW = MW, PW;
|
|
7861
7861
|
r[26] !== G.labelOf || r[27] !== I ? (PW = (e2) => {
|
|
7862
7862
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
@@ -8902,7 +8902,7 @@ let __tla = Promise.all([
|
|
|
8902
8902
|
};
|
|
8903
8903
|
}
|
|
8904
8904
|
};
|
|
8905
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
8905
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-FiwuOgQU.js").then((e) => ({
|
|
8906
8906
|
default: e.Chatbot
|
|
8907
8907
|
}))), messageSchema = array(object({
|
|
8908
8908
|
id: string(),
|
|
@@ -10111,12 +10111,12 @@ let __tla = Promise.all([
|
|
|
10111
10111
|
})));
|
|
10112
10112
|
}
|
|
10113
10113
|
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && NW(e2);
|
|
10114
|
-
},
|
|
10114
|
+
}, AW = (e2, r2, c2) => {
|
|
10115
10115
|
for (let u2 in r2) {
|
|
10116
10116
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
10117
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
10117
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? AW(f2, d2, c2) : kW(f2, d2, c2);
|
|
10118
10118
|
}
|
|
10119
|
-
},
|
|
10119
|
+
}, Z = (e2, r2, m2 = {}) => {
|
|
10120
10120
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
10121
10121
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
10122
10122
|
name: e2,
|
|
@@ -10127,7 +10127,7 @@ let __tla = Promise.all([
|
|
|
10127
10127
|
name: e2,
|
|
10128
10128
|
dirtyFields: getDirtyFields(u, d),
|
|
10129
10129
|
isDirty: W(e2, y2)
|
|
10130
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
10130
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? AW(e2, y2, m2) : kW(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
10131
10131
|
...c
|
|
10132
10132
|
}), _.values.next({
|
|
10133
10133
|
name: f.mount ? e2 : void 0,
|
|
@@ -10338,7 +10338,7 @@ let __tla = Promise.all([
|
|
|
10338
10338
|
errors: c.errors
|
|
10339
10339
|
}), m2) throw m2;
|
|
10340
10340
|
}, GW = (e2, r2 = {}) => {
|
|
10341
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10341
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? Z(e2, cloneObject(get(u, e2))) : (Z(e2, r2.defaultValue), set(u, e2, cloneObject(r2.defaultValue))), r2.keepTouched || unset(c.touchedFields, e2), r2.keepDirty || (unset(c.dirtyFields, e2), c.isDirty = r2.defaultValue ? W(e2, cloneObject(get(u, e2))) : W()), r2.keepError || (unset(c.errors, e2), g.isValid && w()), _.state.next({
|
|
10342
10342
|
...c
|
|
10343
10343
|
}));
|
|
10344
10344
|
}, KW = (e2, m2 = {}) => {
|
|
@@ -10349,7 +10349,7 @@ let __tla = Promise.all([
|
|
|
10349
10349
|
...p.mount,
|
|
10350
10350
|
...Object.keys(getDirtyFields(u, d))
|
|
10351
10351
|
]);
|
|
10352
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10352
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : Z(r2, get(b2, r2));
|
|
10353
10353
|
} else {
|
|
10354
10354
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10355
10355
|
let r2 = get(l, e3);
|
|
@@ -10467,7 +10467,7 @@ let __tla = Promise.all([
|
|
|
10467
10467
|
register: VW,
|
|
10468
10468
|
handleSubmit: WW,
|
|
10469
10469
|
watch: RW,
|
|
10470
|
-
setValue:
|
|
10470
|
+
setValue: Z,
|
|
10471
10471
|
getValues: PW,
|
|
10472
10472
|
reset: qW,
|
|
10473
10473
|
resetField: GW,
|
|
@@ -13211,7 +13211,7 @@ ${c}
|
|
|
13211
13211
|
r[0] !== c || r[1] !== u ? (d = () => {
|
|
13212
13212
|
u.setValue(c, "");
|
|
13213
13213
|
}, r[0] = c, r[1] = u, r[2] = d) : d = r[2];
|
|
13214
|
-
let f = d, p = _temp5$
|
|
13214
|
+
let f = d, p = _temp5$1, m;
|
|
13215
13215
|
r[3] !== f || r[4] !== l ? (m = (e2) => {
|
|
13216
13216
|
let { field: r2 } = e2;
|
|
13217
13217
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -13487,7 +13487,7 @@ ${c}
|
|
|
13487
13487
|
function _temp4$5(e) {
|
|
13488
13488
|
return e;
|
|
13489
13489
|
}
|
|
13490
|
-
function _temp5$
|
|
13490
|
+
function _temp5$1(e) {
|
|
13491
13491
|
let [r, c] = TIME_UNIT_DESCRIPTIONS[e];
|
|
13492
13492
|
return (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
13493
13493
|
value: e,
|
|
@@ -16206,11 +16206,11 @@ ${c}
|
|
|
16206
16206
|
_.pageSize,
|
|
16207
16207
|
_.pageIndex
|
|
16208
16208
|
], r[35] = w, r[36] = _.pageIndex, r[37] = _.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = u, r[44] = y, r[45] = m, r[46] = B, r[47] = H) : H = r[47];
|
|
16209
|
-
let { data: W, error: G, isPending: q, isFetching: kW } = useAsyncData(z, H),
|
|
16210
|
-
r[48] !==
|
|
16209
|
+
let { data: W, error: G, isPending: q, isFetching: kW } = useAsyncData(z, H), AW = useAtomValue(downloadSizeLimitAtom), Z;
|
|
16210
|
+
r[48] !== AW || r[49] !== e ? (Z = async () => !AW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = AW, r[49] = e, r[50] = Z) : Z = r[50];
|
|
16211
16211
|
let jW = e.showDownload, MW = e.get_size_bytes, NW = e.lazy, PW = e.totalRows, FW = useDeepCompareMemoize(w), IW = useDeepCompareMemoize(m), LW;
|
|
16212
|
-
r[51] !==
|
|
16213
|
-
|
|
16212
|
+
r[51] !== AW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== FW || r[58] !== IW ? (LW = [
|
|
16213
|
+
AW,
|
|
16214
16214
|
jW,
|
|
16215
16215
|
MW,
|
|
16216
16216
|
NW,
|
|
@@ -16218,8 +16218,8 @@ ${c}
|
|
|
16218
16218
|
y,
|
|
16219
16219
|
FW,
|
|
16220
16220
|
IW
|
|
16221
|
-
], r[51] =
|
|
16222
|
-
let { data: RW, isPending: zW } = useAsyncData(
|
|
16221
|
+
], r[51] = AW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = FW, r[58] = IW, r[59] = LW) : LW = r[59];
|
|
16222
|
+
let { data: RW, isPending: zW } = useAsyncData(Z, LW), BW = RW ?? null, VW = !!AW && e.showDownload && zW, HW;
|
|
16223
16223
|
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (HW = async (e2) => ({
|
|
16224
16224
|
rows: await loadTableData((await u({
|
|
16225
16225
|
page_number: e2,
|
|
@@ -16342,7 +16342,7 @@ ${c}
|
|
|
16342
16342
|
}), r[116] = $W, r[117] = uG, r[118] = dG) : dG = r[118], dG;
|
|
16343
16343
|
});
|
|
16344
16344
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
16345
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: kW, setFilters:
|
|
16345
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: kW, setFilters: AW, reloading: Z, freezeColumnsLeft: jW, freezeColumnsRight: MW, hiddenColumns: NW, textJustifyColumns: PW, wrappedColumns: FW, columnWidths: IW, headerTooltip: LW, totalColumns: RW, get_row_ids: zW, cellStyles: BW, hoverTemplate: VW, cellHoverTexts: HW, toggleDisplayHeader: UW, isChartBuilderOpen: WW, calculate_top_k_rows: GW, preview_column: KW, getRow: qW, cellId: JW, maxHeight: YW }) => {
|
|
16346
16346
|
let XW = (0, import_react.useId)(), { locale: ZW } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [QW, $W] = (0, import_react.useState)(0), { isPanelOpen: eG, isAnyPanelOpen: tG, togglePanel: nG, panelType: rG, setPanelType: iG } = usePanelOwnership(XW, JW), aG = isStaticNotebook(), oG = (0, import_react.useMemo)(() => {
|
|
16347
16347
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16348
16348
|
let e2 = toFieldTypes(O);
|
|
@@ -16541,9 +16541,9 @@ ${c}
|
|
|
16541
16541
|
onSearchQueryChange: q,
|
|
16542
16542
|
showFilters: g,
|
|
16543
16543
|
filters: kW,
|
|
16544
|
-
onFiltersChange:
|
|
16544
|
+
onFiltersChange: AW,
|
|
16545
16545
|
calculateTopKRows: GW,
|
|
16546
|
-
reloading:
|
|
16546
|
+
reloading: Z,
|
|
16547
16547
|
onRowSelectionChange: yG,
|
|
16548
16548
|
freezeColumnsLeft: jW,
|
|
16549
16549
|
freezeColumnsRight: MW,
|
|
@@ -18612,12 +18612,12 @@ ${c}
|
|
|
18612
18612
|
], r[2] = S, r[3] = w);
|
|
18613
18613
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
18614
18614
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
18615
|
-
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, kW] = (0, import_react.useState)(f || EMPTY),
|
|
18616
|
-
r[6] === d ?
|
|
18615
|
+
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, kW] = (0, import_react.useState)(f || EMPTY), AW = (0, import_react.useRef)(null), Z;
|
|
18616
|
+
r[6] === d ? Z = r[7] : (Z = (e2) => {
|
|
18617
18617
|
var _a5;
|
|
18618
|
-
d && e2 !== "transform" && ((_a5 =
|
|
18619
|
-
}, r[6] = d, r[7] =
|
|
18620
|
-
let jW =
|
|
18618
|
+
d && e2 !== "transform" && ((_a5 = AW.current) == null ? void 0 : _a5.submit());
|
|
18619
|
+
}, r[6] = d, r[7] = Z);
|
|
18620
|
+
let jW = Z, MW = (0, import_react.useRef)(q), NW;
|
|
18621
18621
|
r[8] === q ? NW = r[9] : (NW = () => {
|
|
18622
18622
|
MW.current = q;
|
|
18623
18623
|
}, r[8] = q, r[9] = NW), (0, import_react.useEffect)(NW);
|
|
@@ -18644,8 +18644,8 @@ ${c}
|
|
|
18644
18644
|
"Transform"
|
|
18645
18645
|
]
|
|
18646
18646
|
}), r[17] = LW) : LW = r[17];
|
|
18647
|
-
let
|
|
18648
|
-
r[18] === H ?
|
|
18647
|
+
let zW;
|
|
18648
|
+
r[18] === H ? zW = r[19] : (zW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18649
18649
|
value: "python-code",
|
|
18650
18650
|
className: "text-xs py-1",
|
|
18651
18651
|
children: [
|
|
@@ -18654,9 +18654,9 @@ ${c}
|
|
|
18654
18654
|
}),
|
|
18655
18655
|
"Python Code"
|
|
18656
18656
|
]
|
|
18657
|
-
}), r[18] = H, r[19] =
|
|
18658
|
-
let
|
|
18659
|
-
r[20] === W ?
|
|
18657
|
+
}), r[18] = H, r[19] = zW);
|
|
18658
|
+
let BW;
|
|
18659
|
+
r[20] === W ? BW = r[21] : (BW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18660
18660
|
value: "sql-code",
|
|
18661
18661
|
className: "text-xs py-1",
|
|
18662
18662
|
children: [
|
|
@@ -18665,54 +18665,54 @@ ${c}
|
|
|
18665
18665
|
}),
|
|
18666
18666
|
"SQL Code"
|
|
18667
18667
|
]
|
|
18668
|
-
}), r[20] = W, r[21] =
|
|
18669
|
-
let BW;
|
|
18670
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (BW = (0, import_jsx_runtime.jsx)("div", {
|
|
18671
|
-
className: "grow"
|
|
18672
|
-
}), r[22] = BW) : BW = r[22];
|
|
18668
|
+
}), r[20] = W, r[21] = BW);
|
|
18673
18669
|
let VW;
|
|
18674
|
-
r[
|
|
18670
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (VW = (0, import_jsx_runtime.jsx)("div", {
|
|
18671
|
+
className: "grow"
|
|
18672
|
+
}), r[22] = VW) : VW = r[22];
|
|
18673
|
+
let HW;
|
|
18674
|
+
r[23] !== zW || r[24] !== BW ? (HW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
18675
18675
|
className: "h-8",
|
|
18676
18676
|
children: [
|
|
18677
18677
|
LW,
|
|
18678
|
-
RW,
|
|
18679
18678
|
zW,
|
|
18680
|
-
BW
|
|
18679
|
+
BW,
|
|
18680
|
+
VW
|
|
18681
18681
|
]
|
|
18682
|
-
}), r[23] =
|
|
18683
|
-
let HW;
|
|
18684
|
-
r[26] === j ? HW = r[27] : (HW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18685
|
-
size: "small"
|
|
18686
|
-
}), r[26] = j, r[27] = HW);
|
|
18682
|
+
}), r[23] = zW, r[24] = BW, r[25] = HW) : HW = r[25];
|
|
18687
18683
|
let UW;
|
|
18688
|
-
r[
|
|
18684
|
+
r[26] === j ? UW = r[27] : (UW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18685
|
+
size: "small"
|
|
18686
|
+
}), r[26] = j, r[27] = UW);
|
|
18687
|
+
let WW;
|
|
18688
|
+
r[28] !== HW || r[29] !== UW ? (WW = (0, import_jsx_runtime.jsxs)("div", {
|
|
18689
18689
|
className: "flex items-center gap-2",
|
|
18690
18690
|
children: [
|
|
18691
|
-
|
|
18692
|
-
|
|
18691
|
+
HW,
|
|
18692
|
+
UW
|
|
18693
18693
|
]
|
|
18694
|
-
}), r[28] =
|
|
18695
|
-
let WW;
|
|
18696
|
-
r[31] !== p || r[32] !== f ? (WW = (e2) => {
|
|
18697
|
-
dequal(e2, f) || (p(e2), kW(e2));
|
|
18698
|
-
}, r[31] = p, r[32] = f, r[33] = WW) : WW = r[33];
|
|
18694
|
+
}), r[28] = HW, r[29] = UW, r[30] = WW) : WW = r[30];
|
|
18699
18695
|
let GW;
|
|
18700
|
-
r[
|
|
18696
|
+
r[31] !== p || r[32] !== f ? (GW = (e2) => {
|
|
18697
|
+
dequal(e2, f) || (p(e2), kW(e2));
|
|
18698
|
+
}, r[31] = p, r[32] = f, r[33] = GW) : GW = r[33];
|
|
18699
|
+
let KW;
|
|
18700
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== GW ? (KW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18701
18701
|
value: "transform",
|
|
18702
18702
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18703
18703
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18704
|
-
ref:
|
|
18704
|
+
ref: AW,
|
|
18705
18705
|
initialValue: q,
|
|
18706
18706
|
columns: c,
|
|
18707
|
-
onChange:
|
|
18707
|
+
onChange: GW,
|
|
18708
18708
|
onInvalidChange: kW,
|
|
18709
18709
|
getColumnValues: h,
|
|
18710
18710
|
columnTypesPerStep: B,
|
|
18711
18711
|
lazy: d
|
|
18712
18712
|
})
|
|
18713
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
18714
|
-
let
|
|
18715
|
-
r[41] === H ?
|
|
18713
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = GW, r[40] = KW) : KW = r[40];
|
|
18714
|
+
let qW;
|
|
18715
|
+
r[41] === H ? qW = r[42] : (qW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18716
18716
|
value: "python-code",
|
|
18717
18717
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18718
18718
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18721,9 +18721,9 @@ ${c}
|
|
|
18721
18721
|
code: H,
|
|
18722
18722
|
language: "python"
|
|
18723
18723
|
})
|
|
18724
|
-
}), r[41] = H, r[42] =
|
|
18725
|
-
let
|
|
18726
|
-
r[43] === W ?
|
|
18724
|
+
}), r[41] = H, r[42] = qW);
|
|
18725
|
+
let JW;
|
|
18726
|
+
r[43] === W ? JW = r[44] : (JW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18727
18727
|
value: "sql-code",
|
|
18728
18728
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18729
18729
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18732,35 +18732,35 @@ ${c}
|
|
|
18732
18732
|
code: W,
|
|
18733
18733
|
language: "sql"
|
|
18734
18734
|
})
|
|
18735
|
-
}), r[43] = W, r[44] =
|
|
18736
|
-
let
|
|
18737
|
-
r[45] !== jW || r[46] !==
|
|
18735
|
+
}), r[43] = W, r[44] = JW);
|
|
18736
|
+
let YW;
|
|
18737
|
+
r[45] !== jW || r[46] !== WW || r[47] !== KW || r[48] !== qW || r[49] !== JW ? (YW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18738
18738
|
defaultValue: "transform",
|
|
18739
18739
|
onValueChange: jW,
|
|
18740
18740
|
children: [
|
|
18741
|
-
|
|
18742
|
-
GW,
|
|
18741
|
+
WW,
|
|
18743
18742
|
KW,
|
|
18744
|
-
qW
|
|
18743
|
+
qW,
|
|
18744
|
+
JW
|
|
18745
18745
|
]
|
|
18746
|
-
}), r[45] = jW, r[46] =
|
|
18747
|
-
let
|
|
18748
|
-
r[51] === O ?
|
|
18746
|
+
}), r[45] = jW, r[46] = WW, r[47] = KW, r[48] = qW, r[49] = JW, r[50] = YW) : YW = r[50];
|
|
18747
|
+
let XW;
|
|
18748
|
+
r[51] === O ? XW = r[52] : (XW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18749
18749
|
error: O
|
|
18750
|
-
}), r[51] = O, r[52] =
|
|
18751
|
-
let
|
|
18752
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
18750
|
+
}), r[51] = O, r[52] = XW);
|
|
18751
|
+
let ZW = I || "", QW = L ?? 0, $W = G ?? 0, eG = R || Arrays.EMPTY, tG = L && L > 5 || false, nG;
|
|
18752
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== ZW || r[61] !== QW || r[62] !== $W || r[63] !== eG || r[64] !== tG ? (nG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
18753
18753
|
label: null,
|
|
18754
18754
|
className: "rounded-b border-x border-b",
|
|
18755
|
-
data:
|
|
18755
|
+
data: ZW,
|
|
18756
18756
|
hasStableRowId: false,
|
|
18757
|
-
totalRows:
|
|
18758
|
-
totalColumns:
|
|
18757
|
+
totalRows: QW,
|
|
18758
|
+
totalColumns: $W,
|
|
18759
18759
|
maxColumns: "all",
|
|
18760
18760
|
pageSize: l,
|
|
18761
18761
|
pagination: true,
|
|
18762
18762
|
fieldTypes: z,
|
|
18763
|
-
rowHeaders:
|
|
18763
|
+
rowHeaders: eG,
|
|
18764
18764
|
showDownload: u,
|
|
18765
18765
|
download_as: _,
|
|
18766
18766
|
get_size_bytes: v,
|
|
@@ -18770,7 +18770,7 @@ ${c}
|
|
|
18770
18770
|
showColumnSummaries: false,
|
|
18771
18771
|
showDataTypes: true,
|
|
18772
18772
|
get_column_summaries: getColumnSummaries,
|
|
18773
|
-
showPageSizeSelector:
|
|
18773
|
+
showPageSizeSelector: tG,
|
|
18774
18774
|
showColumnExplorer: false,
|
|
18775
18775
|
showRowExplorer: true,
|
|
18776
18776
|
showChartBuilder: false,
|
|
@@ -18779,15 +18779,15 @@ ${c}
|
|
|
18779
18779
|
selection: null,
|
|
18780
18780
|
lazy: false,
|
|
18781
18781
|
host: y
|
|
18782
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
18783
|
-
let
|
|
18784
|
-
return r[66] !==
|
|
18782
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = ZW, r[61] = QW, r[62] = $W, r[63] = eG, r[64] = tG, r[65] = nG) : nG = r[65];
|
|
18783
|
+
let rG;
|
|
18784
|
+
return r[66] !== YW || r[67] !== XW || r[68] !== nG ? (rG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18785
18785
|
children: [
|
|
18786
|
-
JW,
|
|
18787
18786
|
YW,
|
|
18788
|
-
|
|
18787
|
+
XW,
|
|
18788
|
+
nG
|
|
18789
18789
|
]
|
|
18790
|
-
}), r[66] =
|
|
18790
|
+
}), r[66] = YW, r[67] = XW, r[68] = nG, r[69] = rG) : rG = r[69], rG;
|
|
18791
18791
|
});
|
|
18792
18792
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18793
18793
|
function getColumnSummaries() {
|
|
@@ -18971,30 +18971,30 @@ ${c}
|
|
|
18971
18971
|
}, [
|
|
18972
18972
|
B
|
|
18973
18973
|
]);
|
|
18974
|
-
let H = `${g}::${I}`, [W,
|
|
18975
|
-
W !== H && (
|
|
18974
|
+
let H = `${g}::${I}`, [W, G] = (0, import_react.useState)(H);
|
|
18975
|
+
W !== H && (G(H), E(0)), (0, import_react.useLayoutEffect)(() => {
|
|
18976
18976
|
var _a6;
|
|
18977
18977
|
M.current && (M.current = false, (_a6 = O.current[0]) == null ? void 0 : _a6.focus());
|
|
18978
18978
|
}, [
|
|
18979
18979
|
H
|
|
18980
18980
|
]);
|
|
18981
|
-
let
|
|
18981
|
+
let q = (R == null ? void 0 : R.files) ?? [], kW = new Set(e.map((e2) => e2.path)), AW = l === "directory" || l === "all", Z = l === "file" || l === "all", MW = q.filter((e2) => AW && e2.is_directory || Z && !e2.is_directory), NW = MW.length > 0 && MW.every((e2) => kW.has(e2.path));
|
|
18982
18982
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
18983
18983
|
kind: "danger",
|
|
18984
18984
|
children: z.message
|
|
18985
18985
|
});
|
|
18986
|
-
let
|
|
18986
|
+
let FW = PathBuilder.guessDeliminator(c).deliminator, IW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
18987
18987
|
children: e2.path
|
|
18988
18988
|
}, e2.id));
|
|
18989
|
-
function
|
|
18989
|
+
function LW(e2) {
|
|
18990
18990
|
var _a6;
|
|
18991
18991
|
if (v) return;
|
|
18992
18992
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
18993
|
-
if (g ===
|
|
18993
|
+
if (g === FW) {
|
|
18994
18994
|
y(false);
|
|
18995
18995
|
return;
|
|
18996
18996
|
}
|
|
18997
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
18997
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = FW);
|
|
18998
18998
|
}
|
|
18999
18999
|
let r2 = e2.length < c.length;
|
|
19000
19000
|
if (f && r2) {
|
|
@@ -19007,7 +19007,7 @@ ${c}
|
|
|
19007
19007
|
}
|
|
19008
19008
|
M.current = ((_a6 = j.current) == null ? void 0 : _a6.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
19009
19009
|
}
|
|
19010
|
-
function
|
|
19010
|
+
function RW({ path: e2, name: r2, isDirectory: c2 }) {
|
|
19011
19011
|
return {
|
|
19012
19012
|
id: e2,
|
|
19013
19013
|
name: r2,
|
|
@@ -19015,13 +19015,13 @@ ${c}
|
|
|
19015
19015
|
is_directory: c2
|
|
19016
19016
|
};
|
|
19017
19017
|
}
|
|
19018
|
-
function
|
|
19019
|
-
let f2 =
|
|
19018
|
+
function zW({ path: c2, name: l2, isDirectory: d2 }) {
|
|
19019
|
+
let f2 = RW({
|
|
19020
19020
|
path: c2,
|
|
19021
19021
|
name: l2,
|
|
19022
19022
|
isDirectory: d2
|
|
19023
19023
|
});
|
|
19024
|
-
|
|
19024
|
+
kW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
19025
19025
|
...e,
|
|
19026
19026
|
f2
|
|
19027
19027
|
] : [
|
|
@@ -19031,11 +19031,11 @@ ${c}
|
|
|
19031
19031
|
function VW() {
|
|
19032
19032
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
19033
19033
|
}
|
|
19034
|
-
function
|
|
19034
|
+
function UW() {
|
|
19035
19035
|
let c2 = [];
|
|
19036
|
-
for (let e2 of
|
|
19037
|
-
if (!AW && e2.is_directory ||
|
|
19038
|
-
let r2 =
|
|
19036
|
+
for (let e2 of q) {
|
|
19037
|
+
if (!AW && e2.is_directory || kW.has(e2.path)) continue;
|
|
19038
|
+
let r2 = RW({
|
|
19039
19039
|
path: e2.path,
|
|
19040
19040
|
name: e2.name,
|
|
19041
19041
|
isDirectory: e2.is_directory
|
|
@@ -19047,20 +19047,20 @@ ${c}
|
|
|
19047
19047
|
...c2
|
|
19048
19048
|
]);
|
|
19049
19049
|
}
|
|
19050
|
-
let
|
|
19050
|
+
let WW = [
|
|
19051
19051
|
{
|
|
19052
19052
|
key: "parent",
|
|
19053
19053
|
name: PARENT_DIRECTORY,
|
|
19054
19054
|
Icon: CornerLeftUp,
|
|
19055
19055
|
isSelected: false,
|
|
19056
19056
|
canSelect: false,
|
|
19057
|
-
onPrimary: () =>
|
|
19057
|
+
onPrimary: () => LW(PARENT_DIRECTORY),
|
|
19058
19058
|
onToggleSelect: null
|
|
19059
19059
|
},
|
|
19060
|
-
...
|
|
19060
|
+
...q.map((e2) => {
|
|
19061
19061
|
let r2 = e2.path;
|
|
19062
19062
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
19063
|
-
let c2 = AW && e2.is_directory ||
|
|
19063
|
+
let c2 = AW && e2.is_directory || Z && !e2.is_directory, l2 = kW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => zW({
|
|
19064
19064
|
path: r2,
|
|
19065
19065
|
name: e2.name,
|
|
19066
19066
|
isDirectory: e2.is_directory
|
|
@@ -19071,46 +19071,46 @@ ${c}
|
|
|
19071
19071
|
Icon: FILE_ICON[u2],
|
|
19072
19072
|
isSelected: l2,
|
|
19073
19073
|
canSelect: c2,
|
|
19074
|
-
onPrimary: e2.is_directory ? () =>
|
|
19074
|
+
onPrimary: e2.is_directory ? () => LW(r2) : c2 ? d2 : () => {
|
|
19075
19075
|
},
|
|
19076
19076
|
onToggleSelect: c2 ? d2 : null
|
|
19077
19077
|
};
|
|
19078
19078
|
})
|
|
19079
19079
|
];
|
|
19080
|
-
function
|
|
19080
|
+
function GW(e2) {
|
|
19081
19081
|
var _a6;
|
|
19082
19082
|
E(e2), (_a6 = O.current[e2]) == null ? void 0 : _a6.focus();
|
|
19083
19083
|
}
|
|
19084
|
-
function
|
|
19084
|
+
function KW(e2, r2) {
|
|
19085
19085
|
var _a6, _b3;
|
|
19086
|
-
let c2 =
|
|
19086
|
+
let c2 = WW.length - 1;
|
|
19087
19087
|
switch (e2.key) {
|
|
19088
19088
|
case "ArrowDown":
|
|
19089
|
-
e2.preventDefault(),
|
|
19089
|
+
e2.preventDefault(), GW(Math.min(r2 + 1, c2));
|
|
19090
19090
|
break;
|
|
19091
19091
|
case "ArrowUp":
|
|
19092
|
-
e2.preventDefault(),
|
|
19092
|
+
e2.preventDefault(), GW(Math.max(r2 - 1, 0));
|
|
19093
19093
|
break;
|
|
19094
19094
|
case "Home":
|
|
19095
|
-
e2.preventDefault(),
|
|
19095
|
+
e2.preventDefault(), GW(0);
|
|
19096
19096
|
break;
|
|
19097
19097
|
case "End":
|
|
19098
|
-
e2.preventDefault(),
|
|
19098
|
+
e2.preventDefault(), GW(c2);
|
|
19099
19099
|
break;
|
|
19100
19100
|
case "Enter":
|
|
19101
|
-
e2.preventDefault(),
|
|
19101
|
+
e2.preventDefault(), WW[r2].onPrimary();
|
|
19102
19102
|
break;
|
|
19103
19103
|
case " ":
|
|
19104
|
-
e2.preventDefault(), (_b3 = (_a6 =
|
|
19104
|
+
e2.preventDefault(), (_b3 = (_a6 = WW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a6);
|
|
19105
19105
|
break;
|
|
19106
19106
|
}
|
|
19107
19107
|
}
|
|
19108
|
-
let { parentDirectories:
|
|
19108
|
+
let { parentDirectories: qW } = getProtocolAndParentDirectories({
|
|
19109
19109
|
path: g,
|
|
19110
|
-
delimiter:
|
|
19110
|
+
delimiter: FW,
|
|
19111
19111
|
initialPath: c,
|
|
19112
19112
|
restrictNavigation: f
|
|
19113
|
-
}),
|
|
19113
|
+
}), JW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
19114
19114
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
19115
19115
|
children: [
|
|
19116
19116
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -19120,7 +19120,7 @@ ${c}
|
|
|
19120
19120
|
(() => {
|
|
19121
19121
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
19122
19122
|
children: renderHTML({
|
|
19123
|
-
html: d ?? `Select ${
|
|
19123
|
+
html: d ?? `Select ${JW.join(" and ", 2)}...`
|
|
19124
19124
|
})
|
|
19125
19125
|
});
|
|
19126
19126
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -19134,7 +19134,7 @@ ${c}
|
|
|
19134
19134
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
19135
19135
|
size: "xs",
|
|
19136
19136
|
variant: "link",
|
|
19137
|
-
onClick: NW ? VW :
|
|
19137
|
+
onClick: NW ? VW : UW,
|
|
19138
19138
|
children: NW ? "Deselect all" : "Select all"
|
|
19139
19139
|
})
|
|
19140
19140
|
})
|
|
@@ -19145,15 +19145,15 @@ ${c}
|
|
|
19145
19145
|
className: "mt-2 w-full",
|
|
19146
19146
|
placeholder: g,
|
|
19147
19147
|
value: g,
|
|
19148
|
-
onChange: (e2) =>
|
|
19149
|
-
children:
|
|
19148
|
+
onChange: (e2) => LW(e2.target.value),
|
|
19149
|
+
children: qW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
19150
19150
|
value: e2,
|
|
19151
19151
|
children: e2
|
|
19152
19152
|
}, e2))
|
|
19153
19153
|
}),
|
|
19154
19154
|
R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
19155
19155
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
19156
|
-
children: R.is_truncated ? `Showing ${
|
|
19156
|
+
children: R.is_truncated ? `Showing ${q.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
19157
19157
|
}),
|
|
19158
19158
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
19159
19159
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
@@ -19182,14 +19182,14 @@ ${c}
|
|
|
19182
19182
|
"aria-label": "File browser",
|
|
19183
19183
|
"aria-multiselectable": u,
|
|
19184
19184
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
19185
|
-
children:
|
|
19185
|
+
children: WW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
19186
19186
|
role: "row",
|
|
19187
19187
|
ref: (e3) => {
|
|
19188
19188
|
O.current[r2] = e3;
|
|
19189
19189
|
},
|
|
19190
19190
|
tabIndex: r2 === T ? 0 : -1,
|
|
19191
19191
|
onFocus: () => E(r2),
|
|
19192
|
-
onKeyDown: (e3) =>
|
|
19192
|
+
onKeyDown: (e3) => KW(e3, r2),
|
|
19193
19193
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
19194
19194
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
19195
19195
|
}),
|
|
@@ -19232,7 +19232,7 @@ ${c}
|
|
|
19232
19232
|
children: [
|
|
19233
19233
|
e.length,
|
|
19234
19234
|
" ",
|
|
19235
|
-
|
|
19235
|
+
JW.join(" or ", e.length),
|
|
19236
19236
|
" ",
|
|
19237
19237
|
"selected"
|
|
19238
19238
|
]
|
|
@@ -19252,7 +19252,7 @@ ${c}
|
|
|
19252
19252
|
marginBlock: 0
|
|
19253
19253
|
},
|
|
19254
19254
|
className: "m-0 text-xs text-muted-foreground",
|
|
19255
|
-
children:
|
|
19255
|
+
children: IW
|
|
19256
19256
|
})
|
|
19257
19257
|
})
|
|
19258
19258
|
]
|
|
@@ -24634,7 +24634,7 @@ ${c}
|
|
|
24634
24634
|
return typeof S == "function" ? S : noop$2;
|
|
24635
24635
|
}, [
|
|
24636
24636
|
S
|
|
24637
|
-
]), q = (0, import_react.useRef)(null), kW = (0, import_react.useRef)(null),
|
|
24637
|
+
]), q = (0, import_react.useRef)(null), kW = (0, import_react.useRef)(null), AW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), Z = AW[0], jW = AW[1], MW = Z.isFocused, NW = Z.isFileDialogActive, PW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), FW = function() {
|
|
24638
24638
|
!PW.current && NW && setTimeout(function() {
|
|
24639
24639
|
kW.current && (kW.current.files.length || (jW({
|
|
24640
24640
|
type: "closeDialog"
|
|
@@ -24942,7 +24942,7 @@ ${c}
|
|
|
24942
24942
|
WW,
|
|
24943
24943
|
l
|
|
24944
24944
|
]);
|
|
24945
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
24945
|
+
return _objectSpread$7(_objectSpread$7({}, Z), {}, {
|
|
24946
24946
|
isFocused: MW && !l,
|
|
24947
24947
|
getRootProps: eG,
|
|
24948
24948
|
getInputProps: nG,
|
|
@@ -25064,7 +25064,7 @@ ${c}
|
|
|
25064
25064
|
r[2] === u ? g = r[3] : (g = (e2) => {
|
|
25065
25065
|
filesToBase64(e2).then((e3) => {
|
|
25066
25066
|
u(e3);
|
|
25067
|
-
}).catch(_temp5
|
|
25067
|
+
}).catch(_temp5);
|
|
25068
25068
|
}, r[2] = u, r[3] = g);
|
|
25069
25069
|
let _;
|
|
25070
25070
|
r[4] !== l || r[5] !== h || r[6] !== f || r[7] !== g ? (_ = {
|
|
@@ -25180,13 +25180,13 @@ ${c}
|
|
|
25180
25180
|
html: I
|
|
25181
25181
|
})
|
|
25182
25182
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
25183
|
-
let q = w && "text-primary", kW = T && "text-destructive",
|
|
25184
|
-
r[48] !== q || r[49] !== kW ? (
|
|
25185
|
-
let
|
|
25186
|
-
r[51] ===
|
|
25183
|
+
let q = w && "text-primary", kW = T && "text-destructive", AW;
|
|
25184
|
+
r[48] !== q || r[49] !== kW ? (AW = cn(q, kW), r[48] = q, r[49] = kW, r[50] = AW) : AW = r[50];
|
|
25185
|
+
let Z;
|
|
25186
|
+
r[51] === AW ? Z = r[52] : (Z = (0, import_jsx_runtime.jsx)(Upload, {
|
|
25187
25187
|
strokeWidth: 1.4,
|
|
25188
|
-
className:
|
|
25189
|
-
}), r[51] =
|
|
25188
|
+
className: AW
|
|
25189
|
+
}), r[51] = AW, r[52] = Z);
|
|
25190
25190
|
let jW = w && "text-primary", MW = T && "text-destructive", NW;
|
|
25191
25191
|
r[53] !== jW || r[54] !== MW ? (NW = cn(jW, MW), r[53] = jW, r[54] = MW, r[55] = NW) : NW = r[55];
|
|
25192
25192
|
let PW;
|
|
@@ -25195,13 +25195,13 @@ ${c}
|
|
|
25195
25195
|
className: NW
|
|
25196
25196
|
}), r[56] = NW, r[57] = PW);
|
|
25197
25197
|
let FW;
|
|
25198
|
-
r[58] !==
|
|
25198
|
+
r[58] !== Z || r[59] !== PW ? (FW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25199
25199
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
25200
25200
|
children: [
|
|
25201
|
-
|
|
25201
|
+
Z,
|
|
25202
25202
|
PW
|
|
25203
25203
|
]
|
|
25204
|
-
}), r[58] =
|
|
25204
|
+
}), r[58] = Z, r[59] = PW, r[60] = FW) : FW = r[60];
|
|
25205
25205
|
let IW;
|
|
25206
25206
|
r[61] !== G || r[62] !== FW ? (IW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25207
25207
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
@@ -25257,8 +25257,8 @@ ${c}
|
|
|
25257
25257
|
})
|
|
25258
25258
|
]
|
|
25259
25259
|
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = RW) : RW = r[74];
|
|
25260
|
-
let
|
|
25261
|
-
return r[75] !== LW || r[76] !== RW ? (
|
|
25260
|
+
let zW;
|
|
25261
|
+
return r[75] !== LW || r[76] !== RW ? (zW = (0, import_jsx_runtime.jsx)("section", {
|
|
25262
25262
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
25263
25263
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
25264
25264
|
children: [
|
|
@@ -25266,7 +25266,7 @@ ${c}
|
|
|
25266
25266
|
RW
|
|
25267
25267
|
]
|
|
25268
25268
|
})
|
|
25269
|
-
}), r[75] = LW, r[76] = RW, r[77] =
|
|
25269
|
+
}), r[75] = LW, r[76] = RW, r[77] = zW) : zW = r[77], zW;
|
|
25270
25270
|
};
|
|
25271
25271
|
function _temp$11(e) {
|
|
25272
25272
|
Logger.error(e), toast({
|
|
@@ -25298,7 +25298,7 @@ ${c}
|
|
|
25298
25298
|
variant: "danger"
|
|
25299
25299
|
});
|
|
25300
25300
|
}
|
|
25301
|
-
function _temp5
|
|
25301
|
+
function _temp5(e) {
|
|
25302
25302
|
Logger.error(e), toast({
|
|
25303
25303
|
title: "File upload failed",
|
|
25304
25304
|
description: "Failed to convert file to base64.",
|
|
@@ -25369,16 +25369,16 @@ ${c}
|
|
|
25369
25369
|
html: f
|
|
25370
25370
|
})
|
|
25371
25371
|
}), r[13] = f, r[14] = kW);
|
|
25372
|
-
let
|
|
25373
|
-
r[15] === L ?
|
|
25372
|
+
let AW;
|
|
25373
|
+
r[15] === L ? AW = r[16] : (AW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25374
25374
|
kind: "danger",
|
|
25375
25375
|
className: "rounded",
|
|
25376
25376
|
children: L ?? "Invalid input"
|
|
25377
|
-
}), r[15] = L, r[16] =
|
|
25378
|
-
let
|
|
25379
|
-
r[17] === c ?
|
|
25377
|
+
}), r[15] = L, r[16] = AW);
|
|
25378
|
+
let Z;
|
|
25379
|
+
r[17] === c ? Z = r[18] : (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
25380
25380
|
children: c
|
|
25381
|
-
}), r[17] = c, r[18] =
|
|
25381
|
+
}), r[17] = c, r[18] = Z);
|
|
25382
25382
|
let jW;
|
|
25383
25383
|
r[19] !== S || r[20] !== T || r[21] !== b ? (jW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
25384
25384
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
@@ -25414,16 +25414,16 @@ ${c}
|
|
|
25414
25414
|
]
|
|
25415
25415
|
}), r[33] = FW, r[34] = jW, r[35] = IW) : IW = r[35];
|
|
25416
25416
|
let LW;
|
|
25417
|
-
r[36] !== IW || r[37] !== G || r[38] !== q || r[39] !== kW || r[40] !==
|
|
25417
|
+
r[36] !== IW || r[37] !== G || r[38] !== q || r[39] !== kW || r[40] !== AW || r[41] !== Z ? (LW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25418
25418
|
className: G,
|
|
25419
25419
|
onKeyDown: q,
|
|
25420
25420
|
children: [
|
|
25421
25421
|
kW,
|
|
25422
|
-
Z,
|
|
25423
25422
|
AW,
|
|
25423
|
+
Z,
|
|
25424
25424
|
IW
|
|
25425
25425
|
]
|
|
25426
|
-
}), r[36] = IW, r[37] = G, r[38] = q, r[39] = kW, r[40] =
|
|
25426
|
+
}), r[36] = IW, r[37] = G, r[38] = q, r[39] = kW, r[40] = AW, r[41] = Z, r[42] = LW) : LW = r[42];
|
|
25427
25427
|
let RW;
|
|
25428
25428
|
return r[43] !== LW || r[44] !== H ? (RW = (0, import_jsx_runtime.jsx)("form", {
|
|
25429
25429
|
className: "contents",
|
|
@@ -26255,7 +26255,7 @@ ${c}
|
|
|
26255
26255
|
__privateSet(this, _n6, e);
|
|
26256
26256
|
let c = false;
|
|
26257
26257
|
if ((e.width !== r.width || e.height !== r.height) && (__privateMethod(this, _MatplotlibRenderer_instances, c_fn2).call(this), c = true), e.chartBase64 !== __privateGet(this, _s2)) {
|
|
26258
|
-
__privateMethod(this, _MatplotlibRenderer_instances, u_fn).call(this, e.chartBase64);
|
|
26258
|
+
__privateMethod(this, _MatplotlibRenderer_instances, u_fn).call(this, e.chartBase64), __privateGet(this, _b2).call(this, e.value);
|
|
26259
26259
|
return;
|
|
26260
26260
|
}
|
|
26261
26261
|
let l = __privateGet(this, _r4).type !== "idle" && __privateGet(this, _r4).action !== null;
|
|
@@ -27216,8 +27216,8 @@ ${c}
|
|
|
27216
27216
|
indices: c2
|
|
27217
27217
|
}));
|
|
27218
27218
|
}, r[31] = u, r[32] = kW);
|
|
27219
|
-
let
|
|
27220
|
-
r[33] === u ?
|
|
27219
|
+
let AW = useEvent_default(kW), Z;
|
|
27220
|
+
r[33] === u ? Z = r[34] : (Z = (e2) => {
|
|
27221
27221
|
e2 && u((r2) => ({
|
|
27222
27222
|
...r2,
|
|
27223
27223
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -27226,9 +27226,9 @@ ${c}
|
|
|
27226
27226
|
range: e2.range,
|
|
27227
27227
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
27228
27228
|
}));
|
|
27229
|
-
}, r[33] = u, r[34] =
|
|
27230
|
-
let jW = useEvent_default(
|
|
27231
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
27229
|
+
}, r[33] = u, r[34] = Z);
|
|
27230
|
+
let jW = useEvent_default(Z), MW = m.frames ?? void 0, NW = useEvent_default(_temp3$3), PW;
|
|
27231
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== AW || r[42] !== jW || r[43] !== MW || r[44] !== NW || r[45] !== R ? (PW = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
27232
27232
|
...m,
|
|
27233
27233
|
layout: h,
|
|
27234
27234
|
onRelayout: R,
|
|
@@ -27236,13 +27236,13 @@ ${c}
|
|
|
27236
27236
|
onTreemapClick: W,
|
|
27237
27237
|
onSunburstClick: q,
|
|
27238
27238
|
config: L,
|
|
27239
|
-
onClick:
|
|
27239
|
+
onClick: AW,
|
|
27240
27240
|
onSelected: jW,
|
|
27241
27241
|
className: "w-full",
|
|
27242
27242
|
useResizeHandler: true,
|
|
27243
27243
|
frames: MW,
|
|
27244
27244
|
onError: NW
|
|
27245
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
27245
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = AW, r[42] = jW, r[43] = MW, r[44] = NW, r[45] = R, r[46] = PW) : PW = r[46], PW;
|
|
27246
27246
|
});
|
|
27247
27247
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
27248
27248
|
function _temp$8(e) {
|
|
@@ -27387,8 +27387,8 @@ ${c}
|
|
|
27387
27387
|
onPointerUp: H
|
|
27388
27388
|
})
|
|
27389
27389
|
}), c[19] = L, c[20] = z, c[21] = H, c[22] = kW) : kW = c[22];
|
|
27390
|
-
let
|
|
27391
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
27390
|
+
let AW;
|
|
27391
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (AW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27392
27392
|
asChild: true,
|
|
27393
27393
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27394
27394
|
"data-testid": "thumb",
|
|
@@ -27398,28 +27398,28 @@ ${c}
|
|
|
27398
27398
|
onMouseEnter: m.setTrue,
|
|
27399
27399
|
onMouseLeave: m.setFalse
|
|
27400
27400
|
})
|
|
27401
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
27402
|
-
let
|
|
27403
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
27401
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = AW) : AW = c[25];
|
|
27402
|
+
let Z;
|
|
27403
|
+
c[26] !== h || c[27] !== u.value || c[28] !== d ? (Z = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27404
27404
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
27405
27405
|
locale: h
|
|
27406
27406
|
})
|
|
27407
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
27407
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = Z) : Z = c[29];
|
|
27408
27408
|
let jW;
|
|
27409
|
-
c[30] ===
|
|
27410
|
-
children:
|
|
27411
|
-
}), c[30] =
|
|
27409
|
+
c[30] === Z ? jW = c[31] : (jW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27410
|
+
children: Z
|
|
27411
|
+
}), c[30] = Z, c[31] = jW);
|
|
27412
27412
|
let MW;
|
|
27413
|
-
c[32] !== f || c[33] !==
|
|
27413
|
+
c[32] !== f || c[33] !== AW || c[34] !== jW ? (MW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27414
27414
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27415
27415
|
delayDuration: 0,
|
|
27416
27416
|
open: f,
|
|
27417
27417
|
children: [
|
|
27418
|
-
|
|
27418
|
+
AW,
|
|
27419
27419
|
jW
|
|
27420
27420
|
]
|
|
27421
27421
|
})
|
|
27422
|
-
}), c[32] = f, c[33] =
|
|
27422
|
+
}), c[32] = f, c[33] = AW, c[34] = jW, c[35] = MW) : MW = c[35];
|
|
27423
27423
|
let NW;
|
|
27424
27424
|
c[36] !== m.setFalse || c[37] !== m.setTrue ? (NW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27425
27425
|
asChild: true,
|
|
@@ -27514,14 +27514,14 @@ ${c}
|
|
|
27514
27514
|
}, q = (e2) => {
|
|
27515
27515
|
h && l(e2);
|
|
27516
27516
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27517
|
-
let kW,
|
|
27517
|
+
let kW, AW;
|
|
27518
27518
|
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (kW = () => {
|
|
27519
27519
|
h && !dequal(T, u) && l(T);
|
|
27520
|
-
},
|
|
27520
|
+
}, AW = () => {
|
|
27521
27521
|
h && !dequal(T, u) && l(T);
|
|
27522
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = kW, r[19] =
|
|
27523
|
-
let
|
|
27524
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== kW || r[31] !==
|
|
27522
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = kW, r[19] = AW) : (kW = r[18], AW = r[19]);
|
|
27523
|
+
let Z;
|
|
27524
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== kW || r[31] !== AW || r[32] !== b ? (Z = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
27525
27525
|
id: S,
|
|
27526
27526
|
className: W,
|
|
27527
27527
|
value: T,
|
|
@@ -27533,9 +27533,9 @@ ${c}
|
|
|
27533
27533
|
onValueChange: G,
|
|
27534
27534
|
onValueCommit: q,
|
|
27535
27535
|
onPointerUp: kW,
|
|
27536
|
-
onMouseUp:
|
|
27536
|
+
onMouseUp: AW,
|
|
27537
27537
|
valueMap: b
|
|
27538
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = kW, r[31] =
|
|
27538
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = kW, r[31] = AW, r[32] = b, r[33] = Z) : Z = r[33];
|
|
27539
27539
|
let jW;
|
|
27540
27540
|
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (jW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
27541
27541
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
@@ -27546,13 +27546,13 @@ ${c}
|
|
|
27546
27546
|
})}`
|
|
27547
27547
|
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = jW) : jW = r[38];
|
|
27548
27548
|
let MW;
|
|
27549
|
-
r[39] !==
|
|
27549
|
+
r[39] !== Z || r[40] !== jW || r[41] !== B ? (MW = (0, import_jsx_runtime.jsxs)("div", {
|
|
27550
27550
|
className: B,
|
|
27551
27551
|
children: [
|
|
27552
|
-
|
|
27552
|
+
Z,
|
|
27553
27553
|
jW
|
|
27554
27554
|
]
|
|
27555
|
-
}), r[39] =
|
|
27555
|
+
}), r[39] = Z, r[40] = jW, r[41] = B, r[42] = MW) : MW = r[42];
|
|
27556
27556
|
let NW;
|
|
27557
27557
|
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== MW || r[47] !== M || r[48] !== L ? (NW = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
27558
27558
|
label: c,
|
|
@@ -30860,9 +30860,9 @@ ${c}
|
|
|
30860
30860
|
areRegExpsEqual: H,
|
|
30861
30861
|
areSetsEqual: G,
|
|
30862
30862
|
createIsNestedEqual: r2
|
|
30863
|
-
}),
|
|
30864
|
-
function
|
|
30865
|
-
return
|
|
30863
|
+
}), AW = T(q);
|
|
30864
|
+
function Z(e3, r3) {
|
|
30865
|
+
return AW(e3, r3, void 0);
|
|
30866
30866
|
}
|
|
30867
30867
|
var jW = T(l(q, {
|
|
30868
30868
|
createIsNestedEqual: function() {
|
|
@@ -30893,7 +30893,7 @@ ${c}
|
|
|
30893
30893
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
30894
30894
|
});
|
|
30895
30895
|
}
|
|
30896
|
-
e2.circularDeepEqual = PW, e2.circularShallowEqual = IW, e2.createCustomCircularEqual = RW, e2.createCustomEqual = LW, e2.deepEqual =
|
|
30896
|
+
e2.circularDeepEqual = PW, e2.circularShallowEqual = IW, e2.createCustomCircularEqual = RW, e2.createCustomEqual = LW, e2.deepEqual = Z, e2.sameValueZeroEqual = f, e2.shallowEqual = MW, Object.defineProperty(e2, "__esModule", {
|
|
30897
30897
|
value: true
|
|
30898
30898
|
});
|
|
30899
30899
|
}));
|
|
@@ -31116,13 +31116,13 @@ ${c}
|
|
|
31116
31116
|
function G(e2) {
|
|
31117
31117
|
return e2 * 100 + "%";
|
|
31118
31118
|
}
|
|
31119
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, kW = (e2, r2, c2) => e2 < 0 ? r2 : c2,
|
|
31119
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, kW = (e2, r2, c2) => e2 < 0 ? r2 : c2, AW = (e2) => Math.max(0, e2), Z = (e2) => Math.max(0, e2), jW = (e2, r2, c2) => {
|
|
31120
31120
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
31121
31121
|
return {
|
|
31122
31122
|
left: l2,
|
|
31123
31123
|
width: d2,
|
|
31124
31124
|
height: kW(f2, e2.height, u2),
|
|
31125
|
-
top:
|
|
31125
|
+
top: Z(f2)
|
|
31126
31126
|
};
|
|
31127
31127
|
}, MW = (e2, r2, c2) => {
|
|
31128
31128
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
@@ -31130,15 +31130,15 @@ ${c}
|
|
|
31130
31130
|
top: l2,
|
|
31131
31131
|
height: d2,
|
|
31132
31132
|
width: q(e2.left, e2.width, f2, c2),
|
|
31133
|
-
left:
|
|
31133
|
+
left: AW(u2)
|
|
31134
31134
|
};
|
|
31135
31135
|
}, NW = (e2, r2, c2) => {
|
|
31136
31136
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
31137
31137
|
return {
|
|
31138
31138
|
height: u2,
|
|
31139
31139
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
31140
|
-
top:
|
|
31141
|
-
left:
|
|
31140
|
+
top: Z(l2),
|
|
31141
|
+
left: AW(f2)
|
|
31142
31142
|
};
|
|
31143
31143
|
}, PW = (e2, r2, c2) => {
|
|
31144
31144
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
@@ -31146,7 +31146,7 @@ ${c}
|
|
|
31146
31146
|
width: f2,
|
|
31147
31147
|
left: u2,
|
|
31148
31148
|
height: kW(l2, e2.height, d2),
|
|
31149
|
-
top:
|
|
31149
|
+
top: Z(l2)
|
|
31150
31150
|
};
|
|
31151
31151
|
}, FW = {
|
|
31152
31152
|
n: jW,
|
|
@@ -34049,7 +34049,7 @@ ${c}
|
|
|
34049
34049
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
34050
34050
|
let E = useIsDragging(), O, j;
|
|
34051
34051
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
34052
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q, kW,
|
|
34052
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, kW, AW, Z, jW, MW, NW, PW, FW, IW, LW, RW, zW, BW, VW, HW, UW, WW;
|
|
34053
34053
|
if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== h || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
|
|
34054
34054
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
34055
34055
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -34075,16 +34075,16 @@ ${c}
|
|
|
34075
34075
|
r[60] !== b2 || r[61] !== w2 || r[62] !== T2 ? (z = cn("w-full mx-auto bg-background flex-1 min-h-full", b2, w2, T2), r[60] = b2, r[61] = w2, r[62] = T2, r[63] = z) : z = r[63], r[64] === f ? B = r[65] : (B = f ? [
|
|
34076
34076
|
20,
|
|
34077
34077
|
20
|
|
34078
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, kW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (
|
|
34078
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, kW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (AW = (e3) => {
|
|
34079
34079
|
f || l({
|
|
34080
34080
|
...c,
|
|
34081
34081
|
cells: e3
|
|
34082
34082
|
});
|
|
34083
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
34083
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = AW) : AW = r[69], r[70] === g ? Z = r[71] : (Z = g ? {
|
|
34084
34084
|
i: g.i,
|
|
34085
34085
|
w: g.w || 2,
|
|
34086
34086
|
h: g.h || 2
|
|
34087
|
-
} : void 0, r[70] = g, r[71] =
|
|
34087
|
+
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (jW = (e3, r2, u2) => {
|
|
34088
34088
|
O.onDragStop(), r2 && l({
|
|
34089
34089
|
...c,
|
|
34090
34090
|
cells: [
|
|
@@ -34130,10 +34130,10 @@ ${c}
|
|
|
34130
34130
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
34131
34131
|
children: m3
|
|
34132
34132
|
}, r2.id);
|
|
34133
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = kW, r[31] =
|
|
34134
|
-
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], kW = r[30],
|
|
34133
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = kW, r[31] = AW, r[32] = Z, r[33] = jW, r[34] = MW, r[35] = NW, r[36] = PW, r[37] = FW, r[38] = IW, r[39] = LW, r[40] = RW, r[41] = zW, r[42] = BW, r[43] = VW, r[44] = HW, r[45] = UW, r[46] = WW;
|
|
34134
|
+
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], kW = r[30], AW = r[31], Z = r[32], jW = r[33], MW = r[34], NW = r[35], PW = r[36], FW = r[37], IW = r[38], LW = r[39], RW = r[40], zW = r[41], BW = r[42], VW = r[43], HW = r[44], UW = r[45], WW = r[46];
|
|
34135
34135
|
let GW;
|
|
34136
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== kW || r[91] !==
|
|
34136
|
+
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== kW || r[91] !== AW || r[92] !== Z || r[93] !== jW || r[94] !== MW || r[95] !== NW || r[96] !== PW || r[97] !== FW || r[98] !== IW || r[99] !== LW || r[100] !== RW || r[101] !== zW || r[102] !== BW || r[103] !== VW || r[104] !== HW || r[105] !== UW || r[106] !== WW ? (GW = (0, import_jsx_runtime.jsx)(I, {
|
|
34137
34137
|
breakpoint: VW,
|
|
34138
34138
|
layouts: HW,
|
|
34139
34139
|
style: UW,
|
|
@@ -34146,8 +34146,8 @@ ${c}
|
|
|
34146
34146
|
compactType: G,
|
|
34147
34147
|
preventCollision: q,
|
|
34148
34148
|
rowHeight: kW,
|
|
34149
|
-
onLayoutChange:
|
|
34150
|
-
droppingItem:
|
|
34149
|
+
onLayoutChange: AW,
|
|
34150
|
+
droppingItem: Z,
|
|
34151
34151
|
onDrop: jW,
|
|
34152
34152
|
onDragStart: MW,
|
|
34153
34153
|
onDrag: NW,
|
|
@@ -34158,7 +34158,7 @@ ${c}
|
|
|
34158
34158
|
isResizable: RW,
|
|
34159
34159
|
draggableHandle: zW,
|
|
34160
34160
|
children: BW
|
|
34161
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = kW, r[91] =
|
|
34161
|
+
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = kW, r[91] = AW, r[92] = Z, r[93] = jW, r[94] = MW, r[95] = NW, r[96] = PW, r[97] = FW, r[98] = IW, r[99] = LW, r[100] = RW, r[101] = zW, r[102] = BW, r[103] = VW, r[104] = HW, r[105] = UW, r[106] = WW, r[107] = GW) : GW = r[107];
|
|
34162
34162
|
let KW = GW, qW, JW, YW, XW, ZW, QW, $W;
|
|
34163
34163
|
if (r[108] !== u || r[109] !== KW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
34164
34164
|
$W = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
@@ -34583,21 +34583,21 @@ ${c}
|
|
|
34583
34583
|
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (kW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
34584
34584
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
34585
34585
|
}), r[35] = kW) : kW = r[35];
|
|
34586
|
-
let
|
|
34587
|
-
r[36] === l ?
|
|
34586
|
+
let AW;
|
|
34587
|
+
r[36] === l ? AW = r[37] : (AW = (0, import_jsx_runtime.jsx)(X, {
|
|
34588
34588
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34589
34589
|
onClick: () => l()
|
|
34590
|
-
}), r[36] = l, r[37] =
|
|
34591
|
-
let
|
|
34592
|
-
return r[38] !== I || r[39] !== q || r[40] !==
|
|
34590
|
+
}), r[36] = l, r[37] = AW);
|
|
34591
|
+
let Z;
|
|
34592
|
+
return r[38] !== I || r[39] !== q || r[40] !== AW || r[41] !== w ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
34593
34593
|
className: w,
|
|
34594
34594
|
children: [
|
|
34595
34595
|
I,
|
|
34596
34596
|
q,
|
|
34597
34597
|
kW,
|
|
34598
|
-
|
|
34598
|
+
AW
|
|
34599
34599
|
]
|
|
34600
|
-
}), r[38] = I, r[39] = q, r[40] =
|
|
34600
|
+
}), r[38] = I, r[39] = q, r[40] = AW, r[41] = w, r[42] = Z) : Z = r[42], Z;
|
|
34601
34601
|
};
|
|
34602
34602
|
function isSidebarCell(e) {
|
|
34603
34603
|
var _a5;
|
|
@@ -36603,29 +36603,29 @@ ${c}
|
|
|
36603
36603
|
M
|
|
36604
36604
|
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r), kW = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
36605
36605
|
j
|
|
36606
|
-
]),
|
|
36606
|
+
]), AW = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers: jW, measuringScheduled: MW } = useDroppableMeasuring(kW, {
|
|
36607
36607
|
dragging: w,
|
|
36608
36608
|
dependencies: [
|
|
36609
36609
|
O.x,
|
|
36610
36610
|
O.y
|
|
36611
36611
|
],
|
|
36612
|
-
config:
|
|
36612
|
+
config: AW.droppable
|
|
36613
36613
|
}), NW = useCachedNode(E, T), PW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36614
36614
|
H
|
|
36615
|
-
]), FW = fG(), IW = useInitialRect(NW,
|
|
36615
|
+
]), FW = fG(), IW = useInitialRect(NW, AW.draggable.measure);
|
|
36616
36616
|
useLayoutShiftScrollCompensation({
|
|
36617
36617
|
activeNode: T == null ? null : E.get(T),
|
|
36618
36618
|
config: FW.layoutShiftCompensation,
|
|
36619
36619
|
initialRect: IW,
|
|
36620
|
-
measure:
|
|
36620
|
+
measure: AW.draggable.measure
|
|
36621
36621
|
});
|
|
36622
|
-
let LW = useRect(NW,
|
|
36622
|
+
let LW = useRect(NW, AW.draggable.measure, IW), RW = useRect(NW ? NW.parentElement : null), zW = (0, import_react.useRef)({
|
|
36623
36623
|
activatorEvent: null,
|
|
36624
36624
|
active: null,
|
|
36625
36625
|
activeNode: NW,
|
|
36626
36626
|
collisionRect: null,
|
|
36627
36627
|
collisions: null,
|
|
36628
|
-
droppableRects:
|
|
36628
|
+
droppableRects: Z,
|
|
36629
36629
|
draggableNodes: E,
|
|
36630
36630
|
draggingNode: null,
|
|
36631
36631
|
draggingNodeRect: null,
|
|
@@ -36634,7 +36634,7 @@ ${c}
|
|
|
36634
36634
|
scrollableAncestors: [],
|
|
36635
36635
|
scrollAdjustedTranslate: null
|
|
36636
36636
|
}), BW = j.getNodeFor((_a5 = zW.current.over) == null ? void 0 : _a5.id), VW = useDragOverlayMeasuring({
|
|
36637
|
-
measure:
|
|
36637
|
+
measure: AW.dragOverlay.measure
|
|
36638
36638
|
}), HW = VW.nodeRef.current ?? NW, UW = w ? VW.rect ?? LW : null, WW = !!(VW.nodeRef.current && VW.rect), GW = useRectDelta(WW ? null : LW), KW = useWindowRect(HW ? getWindow(HW) : null), qW = useScrollableAncestors(w ? BW ?? NW : null), JW = useRects(qW), YW = applyModifiers(m, {
|
|
36639
36639
|
transform: {
|
|
36640
36640
|
x: O.x - GW.x,
|
|
@@ -36657,7 +36657,7 @@ ${c}
|
|
|
36657
36657
|
]), eG = add(YW, QW), tG = UW ? getAdjustedRect(UW, YW) : null, nG = L && tG ? f({
|
|
36658
36658
|
active: L,
|
|
36659
36659
|
collisionRect: tG,
|
|
36660
|
-
droppableRects:
|
|
36660
|
+
droppableRects: Z,
|
|
36661
36661
|
droppableContainers: kW,
|
|
36662
36662
|
pointerCoordinates: XW
|
|
36663
36663
|
}) : null, rG = getFirstCollision(nG, "id"), [iG, aG] = (0, import_react.useState)(null), oG = adjustScale(WW ? YW : add(YW, $W), (iG == null ? void 0 : iG.rect) ?? null, LW), sG = (0, import_react.useRef)(null), cG = (0, import_react.useCallback)((e2, r2) => {
|
|
@@ -36831,7 +36831,7 @@ ${c}
|
|
|
36831
36831
|
activeNode: NW,
|
|
36832
36832
|
collisionRect: tG,
|
|
36833
36833
|
collisions: nG,
|
|
36834
|
-
droppableRects:
|
|
36834
|
+
droppableRects: Z,
|
|
36835
36835
|
draggableNodes: E,
|
|
36836
36836
|
draggingNode: HW,
|
|
36837
36837
|
draggingNodeRect: UW,
|
|
@@ -36851,7 +36851,7 @@ ${c}
|
|
|
36851
36851
|
E,
|
|
36852
36852
|
HW,
|
|
36853
36853
|
UW,
|
|
36854
|
-
|
|
36854
|
+
Z,
|
|
36855
36855
|
j,
|
|
36856
36856
|
iG,
|
|
36857
36857
|
qW,
|
|
@@ -36874,12 +36874,12 @@ ${c}
|
|
|
36874
36874
|
dragOverlay: VW,
|
|
36875
36875
|
draggableNodes: E,
|
|
36876
36876
|
droppableContainers: j,
|
|
36877
|
-
droppableRects:
|
|
36877
|
+
droppableRects: Z,
|
|
36878
36878
|
over: iG,
|
|
36879
36879
|
measureDroppableContainers: jW,
|
|
36880
36880
|
scrollableAncestors: qW,
|
|
36881
36881
|
scrollableAncestorRects: JW,
|
|
36882
|
-
measuringConfiguration:
|
|
36882
|
+
measuringConfiguration: AW,
|
|
36883
36883
|
measuringScheduled: MW,
|
|
36884
36884
|
windowRect: KW
|
|
36885
36885
|
}), [
|
|
@@ -36892,12 +36892,12 @@ ${c}
|
|
|
36892
36892
|
VW,
|
|
36893
36893
|
E,
|
|
36894
36894
|
j,
|
|
36895
|
-
|
|
36895
|
+
Z,
|
|
36896
36896
|
iG,
|
|
36897
36897
|
jW,
|
|
36898
36898
|
qW,
|
|
36899
36899
|
JW,
|
|
36900
|
-
|
|
36900
|
+
AW,
|
|
36901
36901
|
MW,
|
|
36902
36902
|
KW
|
|
36903
36903
|
]), dG = (0, import_react.useMemo)(() => ({
|
|
@@ -37465,7 +37465,7 @@ ${c}
|
|
|
37465
37465
|
updateMeasurementsFor: I,
|
|
37466
37466
|
...m
|
|
37467
37467
|
}
|
|
37468
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: kW, listeners:
|
|
37468
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: kW, listeners: AW, isDragging: Z, over: jW, setActivatorNodeRef: MW, transform: NW } = useDraggable({
|
|
37469
37469
|
id: f,
|
|
37470
37470
|
data: M,
|
|
37471
37471
|
attributes: {
|
|
@@ -37473,7 +37473,7 @@ ${c}
|
|
|
37473
37473
|
...c
|
|
37474
37474
|
},
|
|
37475
37475
|
disabled: O.draggable
|
|
37476
|
-
}), PW = useCombinedRefs(B, kW), FW = !!H, IW = FW && !b && isValidIndex(v) && isValidIndex(w), LW = !T &&
|
|
37476
|
+
}), PW = useCombinedRefs(B, kW), FW = !!H, IW = FW && !b && isValidIndex(v) && isValidIndex(w), LW = !T && Z, RW = IW ? (LW && IW ? NW : null) ?? (p ?? E)({
|
|
37477
37477
|
rects: S,
|
|
37478
37478
|
activeNodeRect: G,
|
|
37479
37479
|
activeIndex: v,
|
|
@@ -37492,7 +37492,7 @@ ${c}
|
|
|
37492
37492
|
}), HW = g !== VW.current.items, UW = r({
|
|
37493
37493
|
active: H,
|
|
37494
37494
|
containerId: _,
|
|
37495
|
-
isDragging:
|
|
37495
|
+
isDragging: Z,
|
|
37496
37496
|
isSorting: FW,
|
|
37497
37497
|
id: f,
|
|
37498
37498
|
index: j,
|
|
@@ -37538,8 +37538,8 @@ ${c}
|
|
|
37538
37538
|
items: g,
|
|
37539
37539
|
isOver: z,
|
|
37540
37540
|
isSorting: FW,
|
|
37541
|
-
isDragging:
|
|
37542
|
-
listeners:
|
|
37541
|
+
isDragging: Z,
|
|
37542
|
+
listeners: AW,
|
|
37543
37543
|
node: R,
|
|
37544
37544
|
overIndex: w,
|
|
37545
37545
|
over: jW,
|
|
@@ -37854,13 +37854,13 @@ ${c}
|
|
|
37854
37854
|
}), r[35] = c.id, r[36] = h, r[37] = y, r[38] = b, r[39] = I, r[40] = z, r[41] = B, r[42] = H, r[43] = W, r[44] = G, r[45] = q) : q = r[45];
|
|
37855
37855
|
let kW = q;
|
|
37856
37856
|
if (!v && !g) return kW;
|
|
37857
|
-
let
|
|
37858
|
-
r[46] === kW ?
|
|
37857
|
+
let AW;
|
|
37858
|
+
r[46] === kW ? AW = r[47] : (AW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
37859
37859
|
asChild: true,
|
|
37860
37860
|
children: kW
|
|
37861
|
-
}), r[46] = kW, r[47] =
|
|
37862
|
-
let
|
|
37863
|
-
r[48] === v ?
|
|
37861
|
+
}), r[46] = kW, r[47] = AW);
|
|
37862
|
+
let Z;
|
|
37863
|
+
r[48] === v ? Z = r[49] : (Z = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37864
37864
|
onSelect: v,
|
|
37865
37865
|
children: [
|
|
37866
37866
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -37868,7 +37868,7 @@ ${c}
|
|
|
37868
37868
|
}),
|
|
37869
37869
|
"Add cell"
|
|
37870
37870
|
]
|
|
37871
|
-
}), r[48] = v, r[49] =
|
|
37871
|
+
}), r[48] = v, r[49] = Z);
|
|
37872
37872
|
let jW;
|
|
37873
37873
|
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (jW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = jW) : jW = r[50];
|
|
37874
37874
|
let MW;
|
|
@@ -37883,20 +37883,20 @@ ${c}
|
|
|
37883
37883
|
]
|
|
37884
37884
|
}), r[51] = g, r[52] = MW);
|
|
37885
37885
|
let NW;
|
|
37886
|
-
r[53] !==
|
|
37886
|
+
r[53] !== Z || r[54] !== MW ? (NW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
37887
37887
|
children: [
|
|
37888
|
-
|
|
37888
|
+
Z,
|
|
37889
37889
|
jW,
|
|
37890
37890
|
MW
|
|
37891
37891
|
]
|
|
37892
|
-
}), r[53] =
|
|
37892
|
+
}), r[53] = Z, r[54] = MW, r[55] = NW) : NW = r[55];
|
|
37893
37893
|
let PW;
|
|
37894
|
-
return r[56] !==
|
|
37894
|
+
return r[56] !== AW || r[57] !== NW ? (PW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
37895
37895
|
children: [
|
|
37896
|
-
|
|
37896
|
+
AW,
|
|
37897
37897
|
NW
|
|
37898
37898
|
]
|
|
37899
|
-
}), r[56] =
|
|
37899
|
+
}), r[56] = AW, r[57] = NW, r[58] = PW) : PW = r[58], PW;
|
|
37900
37900
|
}, InsertCellLine = (e) => {
|
|
37901
37901
|
let r = (0, import_compiler_runtime$10.c)(10), { position: c, onInsert: l } = e, u = c === "below" ? "bottom-0 translate-y-1/2" : "top-0 -translate-y-1/2", d;
|
|
37902
37902
|
r[0] === u ? d = r[1] : (d = cn("absolute left-0 right-0 z-30 flex h-3 items-center justify-center", "opacity-0 transition-opacity hover:opacity-80 focus-visible:opacity-100 focus:outline-hidden", u), r[0] = u, r[1] = d);
|
|
@@ -37950,8 +37950,8 @@ ${c}
|
|
|
37950
37950
|
...B,
|
|
37951
37951
|
...h
|
|
37952
37952
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
37953
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", kW = w && !T && "opacity-35",
|
|
37954
|
-
r[25] !== l || r[26] !== kW || r[27] !==
|
|
37953
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", kW = w && !T && "opacity-35", AW = T && "opacity-95 shadow-lg", Z;
|
|
37954
|
+
r[25] !== l || r[26] !== kW || r[27] !== AW || r[28] !== q ? (Z = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, kW, AW, l), r[25] = l, r[26] = kW, r[27] = AW, r[28] = q, r[29] = Z) : Z = r[29];
|
|
37955
37955
|
let jW;
|
|
37956
37956
|
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (jW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
37957
37957
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
@@ -37990,9 +37990,9 @@ ${c}
|
|
|
37990
37990
|
})
|
|
37991
37991
|
}), r[39] = z, r[40] = R, r[41] = NW) : NW = r[41];
|
|
37992
37992
|
let PW;
|
|
37993
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
37993
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !== jW || r[47] !== MW || r[48] !== NW ? (PW = (0, import_jsx_runtime.jsxs)("div", {
|
|
37994
37994
|
ref: f,
|
|
37995
|
-
className:
|
|
37995
|
+
className: Z,
|
|
37996
37996
|
style: W,
|
|
37997
37997
|
...d,
|
|
37998
37998
|
children: [
|
|
@@ -38000,7 +38000,7 @@ ${c}
|
|
|
38000
38000
|
MW,
|
|
38001
38001
|
NW
|
|
38002
38002
|
]
|
|
38003
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
38003
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] = jW, r[47] = MW, r[48] = NW, r[49] = PW) : PW = r[49], PW;
|
|
38004
38004
|
}, MiniCodePreview = (e) => {
|
|
38005
38005
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
38006
38006
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -38040,7 +38040,7 @@ ${c}
|
|
|
38040
38040
|
function _temp2$2(e) {
|
|
38041
38041
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
38042
38042
|
}
|
|
38043
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
38043
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-CgdFrza3.js"));
|
|
38044
38044
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
38045
38045
|
var _a5;
|
|
38046
38046
|
let u = useAtomValue(kioskModeAtom), d = l === "read" || u, f = useAtomValue(numColumnsAtom) > 1, [p, m] = (0, import_react.useState)(null), { slideCells: h, skippedIds: g, noOutputIds: _, slideTypes: v, startCellIndex: y } = (0, import_react.useMemo)(() => computeSlideCellsInfo(c, e), [
|
|
@@ -38420,7 +38420,7 @@ ${c}
|
|
|
38420
38420
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
38421
38421
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
38422
38422
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
38423
|
-
let H, W, G, q, kW, Z, jW, MW, NW
|
|
38423
|
+
let H, W, G, q, kW, AW, Z, jW, MW, NW;
|
|
38424
38424
|
if (r[3] !== T || r[4] !== M || r[5] !== I || r[6] !== L || r[7] !== _ || r[8] !== b || r[9] !== d || r[10] !== z || r[11] !== O || r[12] !== j || r[13] !== E || r[14] !== R || r[15] !== f || r[16] !== u || r[17] !== y || r[18] !== m || r[19] !== l) {
|
|
38425
38425
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
38426
38426
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -38466,11 +38466,11 @@ ${c}
|
|
|
38466
38466
|
})
|
|
38467
38467
|
})
|
|
38468
38468
|
]
|
|
38469
|
-
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", kW = c,
|
|
38470
|
-
let
|
|
38471
|
-
r[40] !== M || r[41] !==
|
|
38469
|
+
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", kW = c, AW = R, Z = 0;
|
|
38470
|
+
let PW2 = y && "marimo-output-stale", FW2 = L ? "p-5" : "p-3";
|
|
38471
|
+
r[40] !== M || r[41] !== PW2 || r[42] !== FW2 ? (jW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", PW2, FW2, M), r[40] = M, r[41] = PW2, r[42] = FW2, r[43] = jW) : jW = r[43], r[44] === d ? MW = r[45] : (MW = d ? {
|
|
38472
38472
|
maxHeight: "none"
|
|
38473
|
-
} : void 0, r[44] = d, r[45] =
|
|
38473
|
+
} : void 0, r[44] = d, r[45] = MW), NW = e2.map((e3, r2) => {
|
|
38474
38474
|
if (e3.channel === "pdb") return null;
|
|
38475
38475
|
if (e3.channel === "stdin") {
|
|
38476
38476
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -38499,36 +38499,36 @@ ${c}
|
|
|
38499
38499
|
wrapText: l
|
|
38500
38500
|
})
|
|
38501
38501
|
}, r2);
|
|
38502
|
-
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = kW, r[25] =
|
|
38503
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23], kW = r[24],
|
|
38504
|
-
let
|
|
38505
|
-
r[46] !== T || r[47] !== S ? (
|
|
38502
|
+
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = kW, r[25] = AW, r[26] = Z, r[27] = jW, r[28] = MW, r[29] = NW;
|
|
38503
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], kW = r[24], AW = r[25], Z = r[26], jW = r[27], MW = r[28], NW = r[29];
|
|
38504
|
+
let PW;
|
|
38505
|
+
r[46] !== T || r[47] !== S ? (PW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
38506
38506
|
value: S,
|
|
38507
38507
|
cellId: T,
|
|
38508
38508
|
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"
|
|
38509
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
38510
|
-
let
|
|
38511
|
-
r[49] !==
|
|
38509
|
+
}), r[46] = T, r[47] = S, r[48] = PW) : PW = r[48];
|
|
38510
|
+
let FW;
|
|
38511
|
+
r[49] !== PW || r[50] !== G || r[51] !== q || r[52] !== kW || r[53] !== AW || r[54] !== Z || r[55] !== jW || r[56] !== MW || r[57] !== NW ? (FW = (0, import_jsx_runtime.jsxs)("div", {
|
|
38512
38512
|
title: G,
|
|
38513
38513
|
"data-testid": q,
|
|
38514
38514
|
ref: kW,
|
|
38515
|
-
...
|
|
38516
|
-
tabIndex:
|
|
38517
|
-
className:
|
|
38518
|
-
style:
|
|
38515
|
+
...AW,
|
|
38516
|
+
tabIndex: Z,
|
|
38517
|
+
className: jW,
|
|
38518
|
+
style: MW,
|
|
38519
38519
|
children: [
|
|
38520
|
-
|
|
38521
|
-
|
|
38520
|
+
NW,
|
|
38521
|
+
PW
|
|
38522
38522
|
]
|
|
38523
|
-
}), r[49] =
|
|
38524
|
-
let
|
|
38525
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
38523
|
+
}), r[49] = PW, r[50] = G, r[51] = q, r[52] = kW, r[53] = AW, r[54] = Z, r[55] = jW, r[56] = MW, r[57] = NW, r[58] = FW) : FW = r[58];
|
|
38524
|
+
let IW;
|
|
38525
|
+
return r[59] !== H || r[60] !== W || r[61] !== FW ? (IW = (0, import_jsx_runtime.jsxs)("div", {
|
|
38526
38526
|
className: H,
|
|
38527
38527
|
children: [
|
|
38528
38528
|
W,
|
|
38529
|
-
|
|
38529
|
+
FW
|
|
38530
38530
|
]
|
|
38531
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
38531
|
+
}), r[59] = H, r[60] = W, r[61] = FW, r[62] = IW) : IW = r[62], IW;
|
|
38532
38532
|
}, StdInput = (e) => {
|
|
38533
38533
|
let r = (0, import_compiler_runtime$6.c)(25), { value: c, setValue: l, inputHistory: u, output: d, isPassword: f, isPdb: p, onSubmit: m, onClear: h } = e, { navigateUp: g, navigateDown: _, addToHistory: v } = u, y;
|
|
38534
38534
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -38950,12 +38950,14 @@ ${c}
|
|
|
38950
38950
|
r[6] === f ? L = r[7] : (L = outputIsLoading(f), r[6] = f, r[7] = L);
|
|
38951
38951
|
let R = L, z = E && w !== "present", B;
|
|
38952
38952
|
if (r[8] !== b || r[9] !== h || r[10] !== z || r[11] !== S || r[12] !== m) {
|
|
38953
|
-
let e2 = new MarkdownLanguageAdapter().isSupported(b)
|
|
38954
|
-
B = cn("marimo-cell", "hover-actions-parent empty:invisible", {
|
|
38955
|
-
|
|
38953
|
+
let e2 = new MarkdownLanguageAdapter().isSupported(b);
|
|
38954
|
+
B = cn("marimo-cell", "hover-actions-parent empty:invisible", !S && !z ? publishedCellClasses({
|
|
38955
|
+
errored: h,
|
|
38956
|
+
stopped: m
|
|
38957
|
+
}) : {
|
|
38956
38958
|
"has-error": h,
|
|
38957
38959
|
stopped: m,
|
|
38958
|
-
borderless: e2
|
|
38960
|
+
borderless: e2
|
|
38959
38961
|
}), r[8] = b, r[9] = h, r[10] = z, r[11] = S, r[12] = m, r[13] = B;
|
|
38960
38962
|
} else B = r[13];
|
|
38961
38963
|
let H = B;
|
|
@@ -39008,27 +39010,32 @@ ${c}
|
|
|
39008
39010
|
]
|
|
39009
39011
|
}), r[37] = H, r[38] = E2, r[39] = O2, r[40] = y2, r[41] = S2, r[42] = w2, r[43] = M2) : M2 = r[43], M2;
|
|
39010
39012
|
}
|
|
39011
|
-
|
|
39012
|
-
|
|
39013
|
-
|
|
39014
|
-
|
|
39015
|
-
|
|
39016
|
-
|
|
39017
|
-
|
|
39013
|
+
if (shouldHidePublishedCell({
|
|
39014
|
+
errored: h,
|
|
39015
|
+
interrupted: _,
|
|
39016
|
+
stopped: m,
|
|
39017
|
+
output: c,
|
|
39018
|
+
showErrorTracebacks: O
|
|
39019
|
+
})) return null;
|
|
39020
|
+
let W;
|
|
39021
|
+
r[44] !== d || r[45] !== T ? (W = cellDomProps(d, T), r[44] = d, r[45] = T, r[46] = W) : W = r[46];
|
|
39022
|
+
let G = w === "edit", q;
|
|
39023
|
+
r[47] !== d || r[48] !== R || r[49] !== c || r[50] !== I || r[51] !== G ? (q = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
39024
|
+
allowExpand: G,
|
|
39018
39025
|
output: c,
|
|
39019
39026
|
className: CSSClasses.outputArea,
|
|
39020
39027
|
cellId: d,
|
|
39021
39028
|
stale: I,
|
|
39022
39029
|
loading: R
|
|
39023
|
-
}), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] =
|
|
39024
|
-
let
|
|
39025
|
-
return r[53] !== H || r[54] !==
|
|
39030
|
+
}), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] = G, r[52] = q) : q = r[52];
|
|
39031
|
+
let kW;
|
|
39032
|
+
return r[53] !== H || r[54] !== W || r[55] !== q ? (kW = (0, import_jsx_runtime.jsx)("div", {
|
|
39026
39033
|
tabIndex: -1,
|
|
39027
39034
|
ref: j,
|
|
39028
39035
|
className: H,
|
|
39029
|
-
...
|
|
39030
|
-
children:
|
|
39031
|
-
}), r[53] = H, r[54] =
|
|
39036
|
+
...W,
|
|
39037
|
+
children: q
|
|
39038
|
+
}), r[53] = H, r[54] = W, r[55] = q, r[56] = kW) : kW = r[56], kW;
|
|
39032
39039
|
});
|
|
39033
39040
|
VerticalCell.displayName = "VerticalCell";
|
|
39034
39041
|
const VerticalLayoutPlugin = {
|
|
@@ -39074,9 +39081,6 @@ ${c}
|
|
|
39074
39081
|
function _temp4() {
|
|
39075
39082
|
return null;
|
|
39076
39083
|
}
|
|
39077
|
-
function _temp5(e) {
|
|
39078
|
-
return e.type === "exception" && "traceback" in e && e.traceback;
|
|
39079
|
-
}
|
|
39080
39084
|
const cellRendererPlugins = [
|
|
39081
39085
|
GridLayoutPlugin,
|
|
39082
39086
|
SlidesLayoutPlugin,
|