@marimo-team/islands 0.23.15-dev1 → 0.23.15-dev11
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-HO1U02IJ.js} +171 -171
- package/dist/{html-to-image-_wGfk8V-.js → html-to-image-JXL8cvmt.js} +2218 -2205
- package/dist/main.js +327 -339
- package/dist/{process-output-Mh4UrjwM.js → process-output-CnDIXtM-.js} +1 -1
- package/dist/{reveal-component-DVEmgnsr.js → reveal-component-BuQ2GKAM.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/anywidget/__tests__/host.test.ts +6 -9
- package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +22 -61
- package/src/plugins/impl/anywidget/model-proxy.ts +0 -13
- package/src/plugins/impl/anywidget/widget-binding.ts +4 -34
- 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-HO1U02IJ.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";
|
|
@@ -97,7 +97,7 @@ let __tla = Promise.all([
|
|
|
97
97
|
}
|
|
98
98
|
})()
|
|
99
99
|
]).then(async () => {
|
|
100
|
-
var _a, _e2, _t2, _n2, _r, _i, _e_instances, a_fn, o_fn, s_fn, _c, _b, _e3, _WidgetDefRegistry_instances, t_fn, _c2, _e4, _t3, _n3, _r2, _i2, _a2, _o2, _e_instances2, s_fn2, c_fn,
|
|
100
|
+
var _a, _e2, _t2, _n2, _r, _i, _e_instances, a_fn, o_fn, s_fn, _c, _b, _e3, _WidgetDefRegistry_instances, t_fn, _c2, _e4, _t3, _n3, _r2, _i2, _a2, _o2, _e_instances2, s_fn2, c_fn, _d, _e5, _t4, _n4, _r3, _i3, _a3, _o3, _s, _c3, _l, _u, _d2, _f, _p, _WidgetRuntime_instances, m_fn, h_fn, g_fn, __fn, v_fn, y_fn, b_fn, x_fn, _e6, _e7, _t5, _n5, _instances, r_fn, _f2, _e8, _t6, _n6, _r4, _i4, _a4, _o4, _s2, _MatplotlibRenderer_instances, c_fn2, l_fn, u_fn, _d3, _f3, _p2, _m, _h, _g, __, _v, _y, _b2, _x, _S, _C, _w, _g2, _h2;
|
|
101
101
|
var defaultIconDimensions = Object.freeze({
|
|
102
102
|
left: 0,
|
|
103
103
|
top: 0,
|
|
@@ -3483,32 +3483,29 @@ let __tla = Promise.all([
|
|
|
3483
3483
|
return e == null ? e : _baseSet_default(e, r, c);
|
|
3484
3484
|
}
|
|
3485
3485
|
var set_default = set$1;
|
|
3486
|
-
function modelProxy(e, r
|
|
3486
|
+
function modelProxy(e, r) {
|
|
3487
3487
|
return {
|
|
3488
3488
|
get(r2) {
|
|
3489
3489
|
return e.get(r2);
|
|
3490
3490
|
},
|
|
3491
|
-
set(r2,
|
|
3492
|
-
e.set(r2,
|
|
3491
|
+
set(r2, c) {
|
|
3492
|
+
e.set(r2, c);
|
|
3493
3493
|
},
|
|
3494
3494
|
save_changes() {
|
|
3495
3495
|
e.save_changes();
|
|
3496
3496
|
},
|
|
3497
3497
|
send: e.send.bind(e),
|
|
3498
|
-
on(
|
|
3499
|
-
r.aborted || (e.on(
|
|
3498
|
+
on(c, l) {
|
|
3499
|
+
r.aborted || (e.on(c, l), r.addEventListener("abort", () => e.off(c, l), {
|
|
3500
3500
|
once: true
|
|
3501
|
-
}), c == null ? void 0 : c({
|
|
3502
|
-
event: l,
|
|
3503
|
-
callback: u
|
|
3504
3501
|
}));
|
|
3505
3502
|
},
|
|
3506
|
-
off(r2,
|
|
3507
|
-
e.off(r2 ?? null,
|
|
3503
|
+
off(r2, c) {
|
|
3504
|
+
e.off(r2 ?? null, c ?? null);
|
|
3508
3505
|
},
|
|
3509
3506
|
widget_manager: {
|
|
3510
|
-
async get_model(
|
|
3511
|
-
return modelProxy(await e.widget_manager.get_model(
|
|
3507
|
+
async get_model(c) {
|
|
3508
|
+
return modelProxy(await e.widget_manager.get_model(c), r);
|
|
3512
3509
|
}
|
|
3513
3510
|
}
|
|
3514
3511
|
};
|
|
@@ -3839,17 +3836,17 @@ let __tla = Promise.all([
|
|
|
3839
3836
|
]);
|
|
3840
3837
|
if (l.aborted) return;
|
|
3841
3838
|
e.el.innerHTML = "";
|
|
3842
|
-
let u = __privateGet(this, _i2).call(this, l), f =
|
|
3843
|
-
model: modelProxy(__privateGet(this, _n3), l
|
|
3839
|
+
let u = __privateGet(this, _i2).call(this, l), f = await c.render({
|
|
3840
|
+
model: modelProxy(__privateGet(this, _n3), l),
|
|
3844
3841
|
el: e.el,
|
|
3845
3842
|
experimental,
|
|
3846
3843
|
signal: l,
|
|
3847
3844
|
host: u
|
|
3848
3845
|
});
|
|
3849
|
-
if (isCleanup(
|
|
3846
|
+
if (isCleanup(f)) {
|
|
3850
3847
|
let e2 = () => {
|
|
3851
3848
|
let e3 = r.signal.aborted ? "view unmount" : "binding destroyed";
|
|
3852
|
-
return Logger.debug(`[WidgetBinding] Render cleanup triggered (reason: ${e3})`), __privateMethod(this, _e_instances2, c_fn).call(this,
|
|
3849
|
+
return Logger.debug(`[WidgetBinding] Render cleanup triggered (reason: ${e3})`), __privateMethod(this, _e_instances2, c_fn).call(this, f, "render");
|
|
3853
3850
|
};
|
|
3854
3851
|
if (l.aborted) {
|
|
3855
3852
|
await e2();
|
|
@@ -3859,22 +3856,9 @@ let __tla = Promise.all([
|
|
|
3859
3856
|
once: true
|
|
3860
3857
|
});
|
|
3861
3858
|
}
|
|
3862
|
-
__privateMethod(this, _e_instances2, l_fn).call(this, f, l);
|
|
3863
3859
|
}, c_fn = function(e, r) {
|
|
3864
3860
|
let c = safelyRunCleanup(e, r);
|
|
3865
3861
|
return __privateGet(this, _a2).add(c), c.finally(() => __privateGet(this, _a2).delete(c)), c;
|
|
3866
|
-
}, l_fn = function(e, r) {
|
|
3867
|
-
for (let { event: c, callback: l } of e) {
|
|
3868
|
-
if (r.aborted) return;
|
|
3869
|
-
try {
|
|
3870
|
-
if (c.startsWith("change:")) {
|
|
3871
|
-
let e2 = c.slice(7);
|
|
3872
|
-
l(__privateGet(this, _n3).get(e2));
|
|
3873
|
-
} else c === "change" && l();
|
|
3874
|
-
} catch (e2) {
|
|
3875
|
-
Logger.error("[WidgetBinding] Error replaying state", e2);
|
|
3876
|
-
}
|
|
3877
|
-
}
|
|
3878
3862
|
}, _d);
|
|
3879
3863
|
const WIDGET_DEF_REGISTRY = new WidgetDefRegistry();
|
|
3880
3864
|
var WidgetRuntime = (_e6 = class {
|
|
@@ -7414,7 +7398,7 @@ let __tla = Promise.all([
|
|
|
7414
7398
|
}), H = U(), W = U(), G = C(0), q = C(null), kW = C({
|
|
7415
7399
|
column: 0,
|
|
7416
7400
|
row: 0
|
|
7417
|
-
}),
|
|
7401
|
+
}), AW = U(), Z = U(), jW = C(false), MW = C(0), NW = C(true), PW = C(false), FW = C(false);
|
|
7418
7402
|
Y(x(b, $(MW), P(([e2, r2]) => !!r2)), () => {
|
|
7419
7403
|
D(NW, false);
|
|
7420
7404
|
}), 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 +7410,7 @@ let __tla = Promise.all([
|
|
|
7426
7410
|
0
|
|
7427
7411
|
]), D(NW, true);
|
|
7428
7412
|
});
|
|
7429
|
-
}), F(x(
|
|
7413
|
+
}), F(x(Z, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(Z), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7430
7414
|
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
7415
|
D(jW, false);
|
|
7432
7416
|
}), D(m, {
|
|
@@ -7437,7 +7421,7 @@ let __tla = Promise.all([
|
|
|
7437
7421
|
item: r2,
|
|
7438
7422
|
scrollTop: l2,
|
|
7439
7423
|
viewport: e2
|
|
7440
|
-
}))),
|
|
7424
|
+
}))), 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
7425
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7442
7426
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7443
7427
|
if (y2 === 0) {
|
|
@@ -7496,7 +7480,7 @@ let __tla = Promise.all([
|
|
|
7496
7480
|
initialItemCount: L,
|
|
7497
7481
|
itemDimensions: B,
|
|
7498
7482
|
overscan: c,
|
|
7499
|
-
restoreStateFrom:
|
|
7483
|
+
restoreStateFrom: Z,
|
|
7500
7484
|
scrollBy: f,
|
|
7501
7485
|
scrollContainerState: p,
|
|
7502
7486
|
scrollHeight: W,
|
|
@@ -7520,7 +7504,7 @@ let __tla = Promise.all([
|
|
|
7520
7504
|
propsReady: S,
|
|
7521
7505
|
rangeChanged: zW,
|
|
7522
7506
|
startReached: RW,
|
|
7523
|
-
stateChanged:
|
|
7507
|
+
stateChanged: AW,
|
|
7524
7508
|
stateRestoreInProgress: jW,
|
|
7525
7509
|
...M
|
|
7526
7510
|
};
|
|
@@ -7799,22 +7783,22 @@ let __tla = Promise.all([
|
|
|
7799
7783
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7800
7784
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7801
7785
|
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7802
|
-
let kW = q,
|
|
7786
|
+
let kW = q, AW;
|
|
7803
7787
|
if (r[13] !== G.bulkActions) {
|
|
7804
|
-
if (
|
|
7788
|
+
if (AW = G.bulkActions.map(_temp$27), AW.length > 0) {
|
|
7805
7789
|
let e2;
|
|
7806
7790
|
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7807
7791
|
"data-slot": "select-separator"
|
|
7808
|
-
}, "_bulk_separator"), r[15] = e2) : e2 = r[15],
|
|
7792
|
+
}, "_bulk_separator"), r[15] = e2) : e2 = r[15], AW.push(e2);
|
|
7809
7793
|
}
|
|
7810
|
-
r[13] = G.bulkActions, r[14] =
|
|
7811
|
-
} else
|
|
7812
|
-
let
|
|
7813
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7794
|
+
r[13] = G.bulkActions, r[14] = AW;
|
|
7795
|
+
} else AW = r[14];
|
|
7796
|
+
let Z;
|
|
7797
|
+
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
7798
|
"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] !==
|
|
7799
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = Z) : Z = r[18];
|
|
7800
|
+
let jW = Z, MW;
|
|
7801
|
+
r[19] !== AW || r[20] !== G || r[21] !== jW || r[22] !== w || r[23] !== B || r[24] !== H ? (MW = () => {
|
|
7818
7802
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7819
7803
|
"data-slot": "select-list",
|
|
7820
7804
|
style: {
|
|
@@ -7826,7 +7810,7 @@ let __tla = Promise.all([
|
|
|
7826
7810
|
let r2 = G.visibleOptions[e3];
|
|
7827
7811
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7828
7812
|
children: [
|
|
7829
|
-
e3 === 0 &&
|
|
7813
|
+
e3 === 0 && AW,
|
|
7830
7814
|
jW(e3),
|
|
7831
7815
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7832
7816
|
option: r2,
|
|
@@ -7852,11 +7836,11 @@ let __tla = Promise.all([
|
|
|
7852
7836
|
});
|
|
7853
7837
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7854
7838
|
children: [
|
|
7855
|
-
|
|
7839
|
+
AW,
|
|
7856
7840
|
e2
|
|
7857
7841
|
]
|
|
7858
7842
|
});
|
|
7859
|
-
}, r[19] =
|
|
7843
|
+
}, 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
7844
|
let NW = MW, PW;
|
|
7861
7845
|
r[26] !== G.labelOf || r[27] !== I ? (PW = (e2) => {
|
|
7862
7846
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
@@ -8902,7 +8886,7 @@ let __tla = Promise.all([
|
|
|
8902
8886
|
};
|
|
8903
8887
|
}
|
|
8904
8888
|
};
|
|
8905
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
8889
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-FiwuOgQU.js").then((e) => ({
|
|
8906
8890
|
default: e.Chatbot
|
|
8907
8891
|
}))), messageSchema = array(object({
|
|
8908
8892
|
id: string(),
|
|
@@ -10111,12 +10095,12 @@ let __tla = Promise.all([
|
|
|
10111
10095
|
})));
|
|
10112
10096
|
}
|
|
10113
10097
|
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && NW(e2);
|
|
10114
|
-
},
|
|
10098
|
+
}, AW = (e2, r2, c2) => {
|
|
10115
10099
|
for (let u2 in r2) {
|
|
10116
10100
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
10117
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
10101
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? AW(f2, d2, c2) : kW(f2, d2, c2);
|
|
10118
10102
|
}
|
|
10119
|
-
},
|
|
10103
|
+
}, Z = (e2, r2, m2 = {}) => {
|
|
10120
10104
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
10121
10105
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
10122
10106
|
name: e2,
|
|
@@ -10127,7 +10111,7 @@ let __tla = Promise.all([
|
|
|
10127
10111
|
name: e2,
|
|
10128
10112
|
dirtyFields: getDirtyFields(u, d),
|
|
10129
10113
|
isDirty: W(e2, y2)
|
|
10130
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
10114
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? AW(e2, y2, m2) : kW(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
10131
10115
|
...c
|
|
10132
10116
|
}), _.values.next({
|
|
10133
10117
|
name: f.mount ? e2 : void 0,
|
|
@@ -10338,7 +10322,7 @@ let __tla = Promise.all([
|
|
|
10338
10322
|
errors: c.errors
|
|
10339
10323
|
}), m2) throw m2;
|
|
10340
10324
|
}, GW = (e2, r2 = {}) => {
|
|
10341
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10325
|
+
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
10326
|
...c
|
|
10343
10327
|
}));
|
|
10344
10328
|
}, KW = (e2, m2 = {}) => {
|
|
@@ -10349,7 +10333,7 @@ let __tla = Promise.all([
|
|
|
10349
10333
|
...p.mount,
|
|
10350
10334
|
...Object.keys(getDirtyFields(u, d))
|
|
10351
10335
|
]);
|
|
10352
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10336
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : Z(r2, get(b2, r2));
|
|
10353
10337
|
} else {
|
|
10354
10338
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10355
10339
|
let r2 = get(l, e3);
|
|
@@ -10467,7 +10451,7 @@ let __tla = Promise.all([
|
|
|
10467
10451
|
register: VW,
|
|
10468
10452
|
handleSubmit: WW,
|
|
10469
10453
|
watch: RW,
|
|
10470
|
-
setValue:
|
|
10454
|
+
setValue: Z,
|
|
10471
10455
|
getValues: PW,
|
|
10472
10456
|
reset: qW,
|
|
10473
10457
|
resetField: GW,
|
|
@@ -13211,7 +13195,7 @@ ${c}
|
|
|
13211
13195
|
r[0] !== c || r[1] !== u ? (d = () => {
|
|
13212
13196
|
u.setValue(c, "");
|
|
13213
13197
|
}, r[0] = c, r[1] = u, r[2] = d) : d = r[2];
|
|
13214
|
-
let f = d, p = _temp5$
|
|
13198
|
+
let f = d, p = _temp5$1, m;
|
|
13215
13199
|
r[3] !== f || r[4] !== l ? (m = (e2) => {
|
|
13216
13200
|
let { field: r2 } = e2;
|
|
13217
13201
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -13487,7 +13471,7 @@ ${c}
|
|
|
13487
13471
|
function _temp4$5(e) {
|
|
13488
13472
|
return e;
|
|
13489
13473
|
}
|
|
13490
|
-
function _temp5$
|
|
13474
|
+
function _temp5$1(e) {
|
|
13491
13475
|
let [r, c] = TIME_UNIT_DESCRIPTIONS[e];
|
|
13492
13476
|
return (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
13493
13477
|
value: e,
|
|
@@ -16206,11 +16190,11 @@ ${c}
|
|
|
16206
16190
|
_.pageSize,
|
|
16207
16191
|
_.pageIndex
|
|
16208
16192
|
], 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] !==
|
|
16193
|
+
let { data: W, error: G, isPending: q, isFetching: kW } = useAsyncData(z, H), AW = useAtomValue(downloadSizeLimitAtom), Z;
|
|
16194
|
+
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
16195
|
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
|
-
|
|
16196
|
+
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 = [
|
|
16197
|
+
AW,
|
|
16214
16198
|
jW,
|
|
16215
16199
|
MW,
|
|
16216
16200
|
NW,
|
|
@@ -16218,8 +16202,8 @@ ${c}
|
|
|
16218
16202
|
y,
|
|
16219
16203
|
FW,
|
|
16220
16204
|
IW
|
|
16221
|
-
], r[51] =
|
|
16222
|
-
let { data: RW, isPending: zW } = useAsyncData(
|
|
16205
|
+
], 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];
|
|
16206
|
+
let { data: RW, isPending: zW } = useAsyncData(Z, LW), BW = RW ?? null, VW = !!AW && e.showDownload && zW, HW;
|
|
16223
16207
|
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (HW = async (e2) => ({
|
|
16224
16208
|
rows: await loadTableData((await u({
|
|
16225
16209
|
page_number: e2,
|
|
@@ -16342,7 +16326,7 @@ ${c}
|
|
|
16342
16326
|
}), r[116] = $W, r[117] = uG, r[118] = dG) : dG = r[118], dG;
|
|
16343
16327
|
});
|
|
16344
16328
|
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:
|
|
16329
|
+
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
16330
|
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
16331
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16348
16332
|
let e2 = toFieldTypes(O);
|
|
@@ -16541,9 +16525,9 @@ ${c}
|
|
|
16541
16525
|
onSearchQueryChange: q,
|
|
16542
16526
|
showFilters: g,
|
|
16543
16527
|
filters: kW,
|
|
16544
|
-
onFiltersChange:
|
|
16528
|
+
onFiltersChange: AW,
|
|
16545
16529
|
calculateTopKRows: GW,
|
|
16546
|
-
reloading:
|
|
16530
|
+
reloading: Z,
|
|
16547
16531
|
onRowSelectionChange: yG,
|
|
16548
16532
|
freezeColumnsLeft: jW,
|
|
16549
16533
|
freezeColumnsRight: MW,
|
|
@@ -18612,12 +18596,12 @@ ${c}
|
|
|
18612
18596
|
], r[2] = S, r[3] = w);
|
|
18613
18597
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
18614
18598
|
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 ?
|
|
18599
|
+
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;
|
|
18600
|
+
r[6] === d ? Z = r[7] : (Z = (e2) => {
|
|
18617
18601
|
var _a5;
|
|
18618
|
-
d && e2 !== "transform" && ((_a5 =
|
|
18619
|
-
}, r[6] = d, r[7] =
|
|
18620
|
-
let jW =
|
|
18602
|
+
d && e2 !== "transform" && ((_a5 = AW.current) == null ? void 0 : _a5.submit());
|
|
18603
|
+
}, r[6] = d, r[7] = Z);
|
|
18604
|
+
let jW = Z, MW = (0, import_react.useRef)(q), NW;
|
|
18621
18605
|
r[8] === q ? NW = r[9] : (NW = () => {
|
|
18622
18606
|
MW.current = q;
|
|
18623
18607
|
}, r[8] = q, r[9] = NW), (0, import_react.useEffect)(NW);
|
|
@@ -18644,8 +18628,8 @@ ${c}
|
|
|
18644
18628
|
"Transform"
|
|
18645
18629
|
]
|
|
18646
18630
|
}), r[17] = LW) : LW = r[17];
|
|
18647
|
-
let
|
|
18648
|
-
r[18] === H ?
|
|
18631
|
+
let zW;
|
|
18632
|
+
r[18] === H ? zW = r[19] : (zW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18649
18633
|
value: "python-code",
|
|
18650
18634
|
className: "text-xs py-1",
|
|
18651
18635
|
children: [
|
|
@@ -18654,9 +18638,9 @@ ${c}
|
|
|
18654
18638
|
}),
|
|
18655
18639
|
"Python Code"
|
|
18656
18640
|
]
|
|
18657
|
-
}), r[18] = H, r[19] =
|
|
18658
|
-
let
|
|
18659
|
-
r[20] === W ?
|
|
18641
|
+
}), r[18] = H, r[19] = zW);
|
|
18642
|
+
let BW;
|
|
18643
|
+
r[20] === W ? BW = r[21] : (BW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18660
18644
|
value: "sql-code",
|
|
18661
18645
|
className: "text-xs py-1",
|
|
18662
18646
|
children: [
|
|
@@ -18665,54 +18649,54 @@ ${c}
|
|
|
18665
18649
|
}),
|
|
18666
18650
|
"SQL Code"
|
|
18667
18651
|
]
|
|
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];
|
|
18652
|
+
}), r[20] = W, r[21] = BW);
|
|
18673
18653
|
let VW;
|
|
18674
|
-
r[
|
|
18654
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (VW = (0, import_jsx_runtime.jsx)("div", {
|
|
18655
|
+
className: "grow"
|
|
18656
|
+
}), r[22] = VW) : VW = r[22];
|
|
18657
|
+
let HW;
|
|
18658
|
+
r[23] !== zW || r[24] !== BW ? (HW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
18675
18659
|
className: "h-8",
|
|
18676
18660
|
children: [
|
|
18677
18661
|
LW,
|
|
18678
|
-
RW,
|
|
18679
18662
|
zW,
|
|
18680
|
-
BW
|
|
18663
|
+
BW,
|
|
18664
|
+
VW
|
|
18681
18665
|
]
|
|
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);
|
|
18666
|
+
}), r[23] = zW, r[24] = BW, r[25] = HW) : HW = r[25];
|
|
18687
18667
|
let UW;
|
|
18688
|
-
r[
|
|
18668
|
+
r[26] === j ? UW = r[27] : (UW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18669
|
+
size: "small"
|
|
18670
|
+
}), r[26] = j, r[27] = UW);
|
|
18671
|
+
let WW;
|
|
18672
|
+
r[28] !== HW || r[29] !== UW ? (WW = (0, import_jsx_runtime.jsxs)("div", {
|
|
18689
18673
|
className: "flex items-center gap-2",
|
|
18690
18674
|
children: [
|
|
18691
|
-
|
|
18692
|
-
|
|
18675
|
+
HW,
|
|
18676
|
+
UW
|
|
18693
18677
|
]
|
|
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];
|
|
18678
|
+
}), r[28] = HW, r[29] = UW, r[30] = WW) : WW = r[30];
|
|
18699
18679
|
let GW;
|
|
18700
|
-
r[
|
|
18680
|
+
r[31] !== p || r[32] !== f ? (GW = (e2) => {
|
|
18681
|
+
dequal(e2, f) || (p(e2), kW(e2));
|
|
18682
|
+
}, r[31] = p, r[32] = f, r[33] = GW) : GW = r[33];
|
|
18683
|
+
let KW;
|
|
18684
|
+
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
18685
|
value: "transform",
|
|
18702
18686
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18703
18687
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18704
|
-
ref:
|
|
18688
|
+
ref: AW,
|
|
18705
18689
|
initialValue: q,
|
|
18706
18690
|
columns: c,
|
|
18707
|
-
onChange:
|
|
18691
|
+
onChange: GW,
|
|
18708
18692
|
onInvalidChange: kW,
|
|
18709
18693
|
getColumnValues: h,
|
|
18710
18694
|
columnTypesPerStep: B,
|
|
18711
18695
|
lazy: d
|
|
18712
18696
|
})
|
|
18713
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
18714
|
-
let
|
|
18715
|
-
r[41] === H ?
|
|
18697
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = GW, r[40] = KW) : KW = r[40];
|
|
18698
|
+
let qW;
|
|
18699
|
+
r[41] === H ? qW = r[42] : (qW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18716
18700
|
value: "python-code",
|
|
18717
18701
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18718
18702
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18721,9 +18705,9 @@ ${c}
|
|
|
18721
18705
|
code: H,
|
|
18722
18706
|
language: "python"
|
|
18723
18707
|
})
|
|
18724
|
-
}), r[41] = H, r[42] =
|
|
18725
|
-
let
|
|
18726
|
-
r[43] === W ?
|
|
18708
|
+
}), r[41] = H, r[42] = qW);
|
|
18709
|
+
let JW;
|
|
18710
|
+
r[43] === W ? JW = r[44] : (JW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18727
18711
|
value: "sql-code",
|
|
18728
18712
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18729
18713
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18732,35 +18716,35 @@ ${c}
|
|
|
18732
18716
|
code: W,
|
|
18733
18717
|
language: "sql"
|
|
18734
18718
|
})
|
|
18735
|
-
}), r[43] = W, r[44] =
|
|
18736
|
-
let
|
|
18737
|
-
r[45] !== jW || r[46] !==
|
|
18719
|
+
}), r[43] = W, r[44] = JW);
|
|
18720
|
+
let YW;
|
|
18721
|
+
r[45] !== jW || r[46] !== WW || r[47] !== KW || r[48] !== qW || r[49] !== JW ? (YW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18738
18722
|
defaultValue: "transform",
|
|
18739
18723
|
onValueChange: jW,
|
|
18740
18724
|
children: [
|
|
18741
|
-
|
|
18742
|
-
GW,
|
|
18725
|
+
WW,
|
|
18743
18726
|
KW,
|
|
18744
|
-
qW
|
|
18727
|
+
qW,
|
|
18728
|
+
JW
|
|
18745
18729
|
]
|
|
18746
|
-
}), r[45] = jW, r[46] =
|
|
18747
|
-
let
|
|
18748
|
-
r[51] === O ?
|
|
18730
|
+
}), r[45] = jW, r[46] = WW, r[47] = KW, r[48] = qW, r[49] = JW, r[50] = YW) : YW = r[50];
|
|
18731
|
+
let XW;
|
|
18732
|
+
r[51] === O ? XW = r[52] : (XW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18749
18733
|
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] !==
|
|
18734
|
+
}), r[51] = O, r[52] = XW);
|
|
18735
|
+
let ZW = I || "", QW = L ?? 0, $W = G ?? 0, eG = R || Arrays.EMPTY, tG = L && L > 5 || false, nG;
|
|
18736
|
+
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
18737
|
label: null,
|
|
18754
18738
|
className: "rounded-b border-x border-b",
|
|
18755
|
-
data:
|
|
18739
|
+
data: ZW,
|
|
18756
18740
|
hasStableRowId: false,
|
|
18757
|
-
totalRows:
|
|
18758
|
-
totalColumns:
|
|
18741
|
+
totalRows: QW,
|
|
18742
|
+
totalColumns: $W,
|
|
18759
18743
|
maxColumns: "all",
|
|
18760
18744
|
pageSize: l,
|
|
18761
18745
|
pagination: true,
|
|
18762
18746
|
fieldTypes: z,
|
|
18763
|
-
rowHeaders:
|
|
18747
|
+
rowHeaders: eG,
|
|
18764
18748
|
showDownload: u,
|
|
18765
18749
|
download_as: _,
|
|
18766
18750
|
get_size_bytes: v,
|
|
@@ -18770,7 +18754,7 @@ ${c}
|
|
|
18770
18754
|
showColumnSummaries: false,
|
|
18771
18755
|
showDataTypes: true,
|
|
18772
18756
|
get_column_summaries: getColumnSummaries,
|
|
18773
|
-
showPageSizeSelector:
|
|
18757
|
+
showPageSizeSelector: tG,
|
|
18774
18758
|
showColumnExplorer: false,
|
|
18775
18759
|
showRowExplorer: true,
|
|
18776
18760
|
showChartBuilder: false,
|
|
@@ -18779,15 +18763,15 @@ ${c}
|
|
|
18779
18763
|
selection: null,
|
|
18780
18764
|
lazy: false,
|
|
18781
18765
|
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] !==
|
|
18766
|
+
}), 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];
|
|
18767
|
+
let rG;
|
|
18768
|
+
return r[66] !== YW || r[67] !== XW || r[68] !== nG ? (rG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18785
18769
|
children: [
|
|
18786
|
-
JW,
|
|
18787
18770
|
YW,
|
|
18788
|
-
|
|
18771
|
+
XW,
|
|
18772
|
+
nG
|
|
18789
18773
|
]
|
|
18790
|
-
}), r[66] =
|
|
18774
|
+
}), r[66] = YW, r[67] = XW, r[68] = nG, r[69] = rG) : rG = r[69], rG;
|
|
18791
18775
|
});
|
|
18792
18776
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18793
18777
|
function getColumnSummaries() {
|
|
@@ -18971,30 +18955,30 @@ ${c}
|
|
|
18971
18955
|
}, [
|
|
18972
18956
|
B
|
|
18973
18957
|
]);
|
|
18974
|
-
let H = `${g}::${I}`, [W,
|
|
18975
|
-
W !== H && (
|
|
18958
|
+
let H = `${g}::${I}`, [W, G] = (0, import_react.useState)(H);
|
|
18959
|
+
W !== H && (G(H), E(0)), (0, import_react.useLayoutEffect)(() => {
|
|
18976
18960
|
var _a6;
|
|
18977
18961
|
M.current && (M.current = false, (_a6 = O.current[0]) == null ? void 0 : _a6.focus());
|
|
18978
18962
|
}, [
|
|
18979
18963
|
H
|
|
18980
18964
|
]);
|
|
18981
|
-
let
|
|
18965
|
+
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
18966
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
18983
18967
|
kind: "danger",
|
|
18984
18968
|
children: z.message
|
|
18985
18969
|
});
|
|
18986
|
-
let
|
|
18970
|
+
let FW = PathBuilder.guessDeliminator(c).deliminator, IW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
18987
18971
|
children: e2.path
|
|
18988
18972
|
}, e2.id));
|
|
18989
|
-
function
|
|
18973
|
+
function LW(e2) {
|
|
18990
18974
|
var _a6;
|
|
18991
18975
|
if (v) return;
|
|
18992
18976
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
18993
|
-
if (g ===
|
|
18977
|
+
if (g === FW) {
|
|
18994
18978
|
y(false);
|
|
18995
18979
|
return;
|
|
18996
18980
|
}
|
|
18997
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
18981
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = FW);
|
|
18998
18982
|
}
|
|
18999
18983
|
let r2 = e2.length < c.length;
|
|
19000
18984
|
if (f && r2) {
|
|
@@ -19007,7 +18991,7 @@ ${c}
|
|
|
19007
18991
|
}
|
|
19008
18992
|
M.current = ((_a6 = j.current) == null ? void 0 : _a6.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
19009
18993
|
}
|
|
19010
|
-
function
|
|
18994
|
+
function RW({ path: e2, name: r2, isDirectory: c2 }) {
|
|
19011
18995
|
return {
|
|
19012
18996
|
id: e2,
|
|
19013
18997
|
name: r2,
|
|
@@ -19015,13 +18999,13 @@ ${c}
|
|
|
19015
18999
|
is_directory: c2
|
|
19016
19000
|
};
|
|
19017
19001
|
}
|
|
19018
|
-
function
|
|
19019
|
-
let f2 =
|
|
19002
|
+
function zW({ path: c2, name: l2, isDirectory: d2 }) {
|
|
19003
|
+
let f2 = RW({
|
|
19020
19004
|
path: c2,
|
|
19021
19005
|
name: l2,
|
|
19022
19006
|
isDirectory: d2
|
|
19023
19007
|
});
|
|
19024
|
-
|
|
19008
|
+
kW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
19025
19009
|
...e,
|
|
19026
19010
|
f2
|
|
19027
19011
|
] : [
|
|
@@ -19031,11 +19015,11 @@ ${c}
|
|
|
19031
19015
|
function VW() {
|
|
19032
19016
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
19033
19017
|
}
|
|
19034
|
-
function
|
|
19018
|
+
function UW() {
|
|
19035
19019
|
let c2 = [];
|
|
19036
|
-
for (let e2 of
|
|
19037
|
-
if (!AW && e2.is_directory ||
|
|
19038
|
-
let r2 =
|
|
19020
|
+
for (let e2 of q) {
|
|
19021
|
+
if (!AW && e2.is_directory || kW.has(e2.path)) continue;
|
|
19022
|
+
let r2 = RW({
|
|
19039
19023
|
path: e2.path,
|
|
19040
19024
|
name: e2.name,
|
|
19041
19025
|
isDirectory: e2.is_directory
|
|
@@ -19047,20 +19031,20 @@ ${c}
|
|
|
19047
19031
|
...c2
|
|
19048
19032
|
]);
|
|
19049
19033
|
}
|
|
19050
|
-
let
|
|
19034
|
+
let WW = [
|
|
19051
19035
|
{
|
|
19052
19036
|
key: "parent",
|
|
19053
19037
|
name: PARENT_DIRECTORY,
|
|
19054
19038
|
Icon: CornerLeftUp,
|
|
19055
19039
|
isSelected: false,
|
|
19056
19040
|
canSelect: false,
|
|
19057
|
-
onPrimary: () =>
|
|
19041
|
+
onPrimary: () => LW(PARENT_DIRECTORY),
|
|
19058
19042
|
onToggleSelect: null
|
|
19059
19043
|
},
|
|
19060
|
-
...
|
|
19044
|
+
...q.map((e2) => {
|
|
19061
19045
|
let r2 = e2.path;
|
|
19062
19046
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
19063
|
-
let c2 = AW && e2.is_directory ||
|
|
19047
|
+
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
19048
|
path: r2,
|
|
19065
19049
|
name: e2.name,
|
|
19066
19050
|
isDirectory: e2.is_directory
|
|
@@ -19071,46 +19055,46 @@ ${c}
|
|
|
19071
19055
|
Icon: FILE_ICON[u2],
|
|
19072
19056
|
isSelected: l2,
|
|
19073
19057
|
canSelect: c2,
|
|
19074
|
-
onPrimary: e2.is_directory ? () =>
|
|
19058
|
+
onPrimary: e2.is_directory ? () => LW(r2) : c2 ? d2 : () => {
|
|
19075
19059
|
},
|
|
19076
19060
|
onToggleSelect: c2 ? d2 : null
|
|
19077
19061
|
};
|
|
19078
19062
|
})
|
|
19079
19063
|
];
|
|
19080
|
-
function
|
|
19064
|
+
function GW(e2) {
|
|
19081
19065
|
var _a6;
|
|
19082
19066
|
E(e2), (_a6 = O.current[e2]) == null ? void 0 : _a6.focus();
|
|
19083
19067
|
}
|
|
19084
|
-
function
|
|
19068
|
+
function KW(e2, r2) {
|
|
19085
19069
|
var _a6, _b3;
|
|
19086
|
-
let c2 =
|
|
19070
|
+
let c2 = WW.length - 1;
|
|
19087
19071
|
switch (e2.key) {
|
|
19088
19072
|
case "ArrowDown":
|
|
19089
|
-
e2.preventDefault(),
|
|
19073
|
+
e2.preventDefault(), GW(Math.min(r2 + 1, c2));
|
|
19090
19074
|
break;
|
|
19091
19075
|
case "ArrowUp":
|
|
19092
|
-
e2.preventDefault(),
|
|
19076
|
+
e2.preventDefault(), GW(Math.max(r2 - 1, 0));
|
|
19093
19077
|
break;
|
|
19094
19078
|
case "Home":
|
|
19095
|
-
e2.preventDefault(),
|
|
19079
|
+
e2.preventDefault(), GW(0);
|
|
19096
19080
|
break;
|
|
19097
19081
|
case "End":
|
|
19098
|
-
e2.preventDefault(),
|
|
19082
|
+
e2.preventDefault(), GW(c2);
|
|
19099
19083
|
break;
|
|
19100
19084
|
case "Enter":
|
|
19101
|
-
e2.preventDefault(),
|
|
19085
|
+
e2.preventDefault(), WW[r2].onPrimary();
|
|
19102
19086
|
break;
|
|
19103
19087
|
case " ":
|
|
19104
|
-
e2.preventDefault(), (_b3 = (_a6 =
|
|
19088
|
+
e2.preventDefault(), (_b3 = (_a6 = WW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a6);
|
|
19105
19089
|
break;
|
|
19106
19090
|
}
|
|
19107
19091
|
}
|
|
19108
|
-
let { parentDirectories:
|
|
19092
|
+
let { parentDirectories: qW } = getProtocolAndParentDirectories({
|
|
19109
19093
|
path: g,
|
|
19110
|
-
delimiter:
|
|
19094
|
+
delimiter: FW,
|
|
19111
19095
|
initialPath: c,
|
|
19112
19096
|
restrictNavigation: f
|
|
19113
|
-
}),
|
|
19097
|
+
}), JW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
19114
19098
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
19115
19099
|
children: [
|
|
19116
19100
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -19120,7 +19104,7 @@ ${c}
|
|
|
19120
19104
|
(() => {
|
|
19121
19105
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
19122
19106
|
children: renderHTML({
|
|
19123
|
-
html: d ?? `Select ${
|
|
19107
|
+
html: d ?? `Select ${JW.join(" and ", 2)}...`
|
|
19124
19108
|
})
|
|
19125
19109
|
});
|
|
19126
19110
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -19134,7 +19118,7 @@ ${c}
|
|
|
19134
19118
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
19135
19119
|
size: "xs",
|
|
19136
19120
|
variant: "link",
|
|
19137
|
-
onClick: NW ? VW :
|
|
19121
|
+
onClick: NW ? VW : UW,
|
|
19138
19122
|
children: NW ? "Deselect all" : "Select all"
|
|
19139
19123
|
})
|
|
19140
19124
|
})
|
|
@@ -19145,15 +19129,15 @@ ${c}
|
|
|
19145
19129
|
className: "mt-2 w-full",
|
|
19146
19130
|
placeholder: g,
|
|
19147
19131
|
value: g,
|
|
19148
|
-
onChange: (e2) =>
|
|
19149
|
-
children:
|
|
19132
|
+
onChange: (e2) => LW(e2.target.value),
|
|
19133
|
+
children: qW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
19150
19134
|
value: e2,
|
|
19151
19135
|
children: e2
|
|
19152
19136
|
}, e2))
|
|
19153
19137
|
}),
|
|
19154
19138
|
R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
19155
19139
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
19156
|
-
children: R.is_truncated ? `Showing ${
|
|
19140
|
+
children: R.is_truncated ? `Showing ${q.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
19157
19141
|
}),
|
|
19158
19142
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
19159
19143
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
@@ -19182,14 +19166,14 @@ ${c}
|
|
|
19182
19166
|
"aria-label": "File browser",
|
|
19183
19167
|
"aria-multiselectable": u,
|
|
19184
19168
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
19185
|
-
children:
|
|
19169
|
+
children: WW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
19186
19170
|
role: "row",
|
|
19187
19171
|
ref: (e3) => {
|
|
19188
19172
|
O.current[r2] = e3;
|
|
19189
19173
|
},
|
|
19190
19174
|
tabIndex: r2 === T ? 0 : -1,
|
|
19191
19175
|
onFocus: () => E(r2),
|
|
19192
|
-
onKeyDown: (e3) =>
|
|
19176
|
+
onKeyDown: (e3) => KW(e3, r2),
|
|
19193
19177
|
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
19178
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
19195
19179
|
}),
|
|
@@ -19232,7 +19216,7 @@ ${c}
|
|
|
19232
19216
|
children: [
|
|
19233
19217
|
e.length,
|
|
19234
19218
|
" ",
|
|
19235
|
-
|
|
19219
|
+
JW.join(" or ", e.length),
|
|
19236
19220
|
" ",
|
|
19237
19221
|
"selected"
|
|
19238
19222
|
]
|
|
@@ -19252,7 +19236,7 @@ ${c}
|
|
|
19252
19236
|
marginBlock: 0
|
|
19253
19237
|
},
|
|
19254
19238
|
className: "m-0 text-xs text-muted-foreground",
|
|
19255
|
-
children:
|
|
19239
|
+
children: IW
|
|
19256
19240
|
})
|
|
19257
19241
|
})
|
|
19258
19242
|
]
|
|
@@ -24634,7 +24618,7 @@ ${c}
|
|
|
24634
24618
|
return typeof S == "function" ? S : noop$2;
|
|
24635
24619
|
}, [
|
|
24636
24620
|
S
|
|
24637
|
-
]), q = (0, import_react.useRef)(null), kW = (0, import_react.useRef)(null),
|
|
24621
|
+
]), 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
24622
|
!PW.current && NW && setTimeout(function() {
|
|
24639
24623
|
kW.current && (kW.current.files.length || (jW({
|
|
24640
24624
|
type: "closeDialog"
|
|
@@ -24942,7 +24926,7 @@ ${c}
|
|
|
24942
24926
|
WW,
|
|
24943
24927
|
l
|
|
24944
24928
|
]);
|
|
24945
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
24929
|
+
return _objectSpread$7(_objectSpread$7({}, Z), {}, {
|
|
24946
24930
|
isFocused: MW && !l,
|
|
24947
24931
|
getRootProps: eG,
|
|
24948
24932
|
getInputProps: nG,
|
|
@@ -25064,7 +25048,7 @@ ${c}
|
|
|
25064
25048
|
r[2] === u ? g = r[3] : (g = (e2) => {
|
|
25065
25049
|
filesToBase64(e2).then((e3) => {
|
|
25066
25050
|
u(e3);
|
|
25067
|
-
}).catch(_temp5
|
|
25051
|
+
}).catch(_temp5);
|
|
25068
25052
|
}, r[2] = u, r[3] = g);
|
|
25069
25053
|
let _;
|
|
25070
25054
|
r[4] !== l || r[5] !== h || r[6] !== f || r[7] !== g ? (_ = {
|
|
@@ -25180,13 +25164,13 @@ ${c}
|
|
|
25180
25164
|
html: I
|
|
25181
25165
|
})
|
|
25182
25166
|
}), 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] ===
|
|
25167
|
+
let q = w && "text-primary", kW = T && "text-destructive", AW;
|
|
25168
|
+
r[48] !== q || r[49] !== kW ? (AW = cn(q, kW), r[48] = q, r[49] = kW, r[50] = AW) : AW = r[50];
|
|
25169
|
+
let Z;
|
|
25170
|
+
r[51] === AW ? Z = r[52] : (Z = (0, import_jsx_runtime.jsx)(Upload, {
|
|
25187
25171
|
strokeWidth: 1.4,
|
|
25188
|
-
className:
|
|
25189
|
-
}), r[51] =
|
|
25172
|
+
className: AW
|
|
25173
|
+
}), r[51] = AW, r[52] = Z);
|
|
25190
25174
|
let jW = w && "text-primary", MW = T && "text-destructive", NW;
|
|
25191
25175
|
r[53] !== jW || r[54] !== MW ? (NW = cn(jW, MW), r[53] = jW, r[54] = MW, r[55] = NW) : NW = r[55];
|
|
25192
25176
|
let PW;
|
|
@@ -25195,13 +25179,13 @@ ${c}
|
|
|
25195
25179
|
className: NW
|
|
25196
25180
|
}), r[56] = NW, r[57] = PW);
|
|
25197
25181
|
let FW;
|
|
25198
|
-
r[58] !==
|
|
25182
|
+
r[58] !== Z || r[59] !== PW ? (FW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25199
25183
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
25200
25184
|
children: [
|
|
25201
|
-
|
|
25185
|
+
Z,
|
|
25202
25186
|
PW
|
|
25203
25187
|
]
|
|
25204
|
-
}), r[58] =
|
|
25188
|
+
}), r[58] = Z, r[59] = PW, r[60] = FW) : FW = r[60];
|
|
25205
25189
|
let IW;
|
|
25206
25190
|
r[61] !== G || r[62] !== FW ? (IW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25207
25191
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
@@ -25257,8 +25241,8 @@ ${c}
|
|
|
25257
25241
|
})
|
|
25258
25242
|
]
|
|
25259
25243
|
}) : 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 ? (
|
|
25244
|
+
let zW;
|
|
25245
|
+
return r[75] !== LW || r[76] !== RW ? (zW = (0, import_jsx_runtime.jsx)("section", {
|
|
25262
25246
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
25263
25247
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
25264
25248
|
children: [
|
|
@@ -25266,7 +25250,7 @@ ${c}
|
|
|
25266
25250
|
RW
|
|
25267
25251
|
]
|
|
25268
25252
|
})
|
|
25269
|
-
}), r[75] = LW, r[76] = RW, r[77] =
|
|
25253
|
+
}), r[75] = LW, r[76] = RW, r[77] = zW) : zW = r[77], zW;
|
|
25270
25254
|
};
|
|
25271
25255
|
function _temp$11(e) {
|
|
25272
25256
|
Logger.error(e), toast({
|
|
@@ -25298,7 +25282,7 @@ ${c}
|
|
|
25298
25282
|
variant: "danger"
|
|
25299
25283
|
});
|
|
25300
25284
|
}
|
|
25301
|
-
function _temp5
|
|
25285
|
+
function _temp5(e) {
|
|
25302
25286
|
Logger.error(e), toast({
|
|
25303
25287
|
title: "File upload failed",
|
|
25304
25288
|
description: "Failed to convert file to base64.",
|
|
@@ -25369,16 +25353,16 @@ ${c}
|
|
|
25369
25353
|
html: f
|
|
25370
25354
|
})
|
|
25371
25355
|
}), r[13] = f, r[14] = kW);
|
|
25372
|
-
let
|
|
25373
|
-
r[15] === L ?
|
|
25356
|
+
let AW;
|
|
25357
|
+
r[15] === L ? AW = r[16] : (AW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25374
25358
|
kind: "danger",
|
|
25375
25359
|
className: "rounded",
|
|
25376
25360
|
children: L ?? "Invalid input"
|
|
25377
|
-
}), r[15] = L, r[16] =
|
|
25378
|
-
let
|
|
25379
|
-
r[17] === c ?
|
|
25361
|
+
}), r[15] = L, r[16] = AW);
|
|
25362
|
+
let Z;
|
|
25363
|
+
r[17] === c ? Z = r[18] : (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
25380
25364
|
children: c
|
|
25381
|
-
}), r[17] = c, r[18] =
|
|
25365
|
+
}), r[17] = c, r[18] = Z);
|
|
25382
25366
|
let jW;
|
|
25383
25367
|
r[19] !== S || r[20] !== T || r[21] !== b ? (jW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
25384
25368
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
@@ -25414,16 +25398,16 @@ ${c}
|
|
|
25414
25398
|
]
|
|
25415
25399
|
}), r[33] = FW, r[34] = jW, r[35] = IW) : IW = r[35];
|
|
25416
25400
|
let LW;
|
|
25417
|
-
r[36] !== IW || r[37] !== G || r[38] !== q || r[39] !== kW || r[40] !==
|
|
25401
|
+
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
25402
|
className: G,
|
|
25419
25403
|
onKeyDown: q,
|
|
25420
25404
|
children: [
|
|
25421
25405
|
kW,
|
|
25422
|
-
Z,
|
|
25423
25406
|
AW,
|
|
25407
|
+
Z,
|
|
25424
25408
|
IW
|
|
25425
25409
|
]
|
|
25426
|
-
}), r[36] = IW, r[37] = G, r[38] = q, r[39] = kW, r[40] =
|
|
25410
|
+
}), 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
25411
|
let RW;
|
|
25428
25412
|
return r[43] !== LW || r[44] !== H ? (RW = (0, import_jsx_runtime.jsx)("form", {
|
|
25429
25413
|
className: "contents",
|
|
@@ -26246,7 +26230,7 @@ ${c}
|
|
|
26246
26230
|
signal: r.signal
|
|
26247
26231
|
}), e.addEventListener("keydown", __privateGet(this, _w), {
|
|
26248
26232
|
signal: r.signal
|
|
26249
|
-
}), __privateMethod(this, _MatplotlibRenderer_instances,
|
|
26233
|
+
}), __privateMethod(this, _MatplotlibRenderer_instances, l_fn).call(this, r.signal), r.signal.addEventListener("abort", () => {
|
|
26250
26234
|
cancelAnimationFrame(__privateGet(this, _i4)), __privateGet(this, _e8).remove();
|
|
26251
26235
|
}), __privateMethod(this, _MatplotlibRenderer_instances, u_fn).call(this, __privateGet(this, _n6).chartBase64), __privateGet(this, _b2).call(this, __privateGet(this, _n6).value);
|
|
26252
26236
|
}
|
|
@@ -26255,7 +26239,7 @@ ${c}
|
|
|
26255
26239
|
__privateSet(this, _n6, e);
|
|
26256
26240
|
let c = false;
|
|
26257
26241
|
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);
|
|
26242
|
+
__privateMethod(this, _MatplotlibRenderer_instances, u_fn).call(this, e.chartBase64), __privateGet(this, _b2).call(this, e.value);
|
|
26259
26243
|
return;
|
|
26260
26244
|
}
|
|
26261
26245
|
let l = __privateGet(this, _r4).type !== "idle" && __privateGet(this, _r4).action !== null;
|
|
@@ -26268,9 +26252,9 @@ ${c}
|
|
|
26268
26252
|
}, _e8 = new WeakMap(), _t6 = new WeakMap(), _n6 = new WeakMap(), _r4 = new WeakMap(), _i4 = new WeakMap(), _a4 = new WeakMap(), _o4 = new WeakMap(), _s2 = new WeakMap(), _MatplotlibRenderer_instances = new WeakSet(), c_fn2 = function(e = __privateGet(this, _e8)) {
|
|
26269
26253
|
let r = globalThis.devicePixelRatio ?? 1, { width: c, height: l } = __privateGet(this, _n6);
|
|
26270
26254
|
e.width = c * r, e.height = l * r, e.style.width = `${c}px`, e.style.maxWidth = "100%", e.style.height = "auto", e.style.aspectRatio = `${c} / ${l}`;
|
|
26271
|
-
},
|
|
26255
|
+
}, l_fn = function(e) {
|
|
26272
26256
|
e.aborted || matchMedia(`(resolution: ${globalThis.devicePixelRatio ?? 1}dppx)`).addEventListener("change", () => {
|
|
26273
|
-
__privateMethod(this, _MatplotlibRenderer_instances, c_fn2).call(this), __privateGet(this, _d3).call(this), __privateMethod(this, _MatplotlibRenderer_instances,
|
|
26257
|
+
__privateMethod(this, _MatplotlibRenderer_instances, c_fn2).call(this), __privateGet(this, _d3).call(this), __privateMethod(this, _MatplotlibRenderer_instances, l_fn).call(this, e);
|
|
26274
26258
|
}, {
|
|
26275
26259
|
once: true,
|
|
26276
26260
|
signal: e
|
|
@@ -27216,8 +27200,8 @@ ${c}
|
|
|
27216
27200
|
indices: c2
|
|
27217
27201
|
}));
|
|
27218
27202
|
}, r[31] = u, r[32] = kW);
|
|
27219
|
-
let
|
|
27220
|
-
r[33] === u ?
|
|
27203
|
+
let AW = useEvent_default(kW), Z;
|
|
27204
|
+
r[33] === u ? Z = r[34] : (Z = (e2) => {
|
|
27221
27205
|
e2 && u((r2) => ({
|
|
27222
27206
|
...r2,
|
|
27223
27207
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -27226,9 +27210,9 @@ ${c}
|
|
|
27226
27210
|
range: e2.range,
|
|
27227
27211
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
27228
27212
|
}));
|
|
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] !==
|
|
27213
|
+
}, r[33] = u, r[34] = Z);
|
|
27214
|
+
let jW = useEvent_default(Z), MW = m.frames ?? void 0, NW = useEvent_default(_temp3$3), PW;
|
|
27215
|
+
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
27216
|
...m,
|
|
27233
27217
|
layout: h,
|
|
27234
27218
|
onRelayout: R,
|
|
@@ -27236,13 +27220,13 @@ ${c}
|
|
|
27236
27220
|
onTreemapClick: W,
|
|
27237
27221
|
onSunburstClick: q,
|
|
27238
27222
|
config: L,
|
|
27239
|
-
onClick:
|
|
27223
|
+
onClick: AW,
|
|
27240
27224
|
onSelected: jW,
|
|
27241
27225
|
className: "w-full",
|
|
27242
27226
|
useResizeHandler: true,
|
|
27243
27227
|
frames: MW,
|
|
27244
27228
|
onError: NW
|
|
27245
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
27229
|
+
}), 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
27230
|
});
|
|
27247
27231
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
27248
27232
|
function _temp$8(e) {
|
|
@@ -27387,8 +27371,8 @@ ${c}
|
|
|
27387
27371
|
onPointerUp: H
|
|
27388
27372
|
})
|
|
27389
27373
|
}), 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 ? (
|
|
27374
|
+
let AW;
|
|
27375
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (AW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27392
27376
|
asChild: true,
|
|
27393
27377
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27394
27378
|
"data-testid": "thumb",
|
|
@@ -27398,28 +27382,28 @@ ${c}
|
|
|
27398
27382
|
onMouseEnter: m.setTrue,
|
|
27399
27383
|
onMouseLeave: m.setFalse
|
|
27400
27384
|
})
|
|
27401
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
27402
|
-
let
|
|
27403
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
27385
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = AW) : AW = c[25];
|
|
27386
|
+
let Z;
|
|
27387
|
+
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
27388
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
27405
27389
|
locale: h
|
|
27406
27390
|
})
|
|
27407
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
27391
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = Z) : Z = c[29];
|
|
27408
27392
|
let jW;
|
|
27409
|
-
c[30] ===
|
|
27410
|
-
children:
|
|
27411
|
-
}), c[30] =
|
|
27393
|
+
c[30] === Z ? jW = c[31] : (jW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27394
|
+
children: Z
|
|
27395
|
+
}), c[30] = Z, c[31] = jW);
|
|
27412
27396
|
let MW;
|
|
27413
|
-
c[32] !== f || c[33] !==
|
|
27397
|
+
c[32] !== f || c[33] !== AW || c[34] !== jW ? (MW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27414
27398
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27415
27399
|
delayDuration: 0,
|
|
27416
27400
|
open: f,
|
|
27417
27401
|
children: [
|
|
27418
|
-
|
|
27402
|
+
AW,
|
|
27419
27403
|
jW
|
|
27420
27404
|
]
|
|
27421
27405
|
})
|
|
27422
|
-
}), c[32] = f, c[33] =
|
|
27406
|
+
}), c[32] = f, c[33] = AW, c[34] = jW, c[35] = MW) : MW = c[35];
|
|
27423
27407
|
let NW;
|
|
27424
27408
|
c[36] !== m.setFalse || c[37] !== m.setTrue ? (NW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27425
27409
|
asChild: true,
|
|
@@ -27514,14 +27498,14 @@ ${c}
|
|
|
27514
27498
|
}, q = (e2) => {
|
|
27515
27499
|
h && l(e2);
|
|
27516
27500
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27517
|
-
let kW,
|
|
27501
|
+
let kW, AW;
|
|
27518
27502
|
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (kW = () => {
|
|
27519
27503
|
h && !dequal(T, u) && l(T);
|
|
27520
|
-
},
|
|
27504
|
+
}, AW = () => {
|
|
27521
27505
|
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] !==
|
|
27506
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = kW, r[19] = AW) : (kW = r[18], AW = r[19]);
|
|
27507
|
+
let Z;
|
|
27508
|
+
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
27509
|
id: S,
|
|
27526
27510
|
className: W,
|
|
27527
27511
|
value: T,
|
|
@@ -27533,9 +27517,9 @@ ${c}
|
|
|
27533
27517
|
onValueChange: G,
|
|
27534
27518
|
onValueCommit: q,
|
|
27535
27519
|
onPointerUp: kW,
|
|
27536
|
-
onMouseUp:
|
|
27520
|
+
onMouseUp: AW,
|
|
27537
27521
|
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] =
|
|
27522
|
+
}), 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
27523
|
let jW;
|
|
27540
27524
|
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (jW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
27541
27525
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
@@ -27546,13 +27530,13 @@ ${c}
|
|
|
27546
27530
|
})}`
|
|
27547
27531
|
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = jW) : jW = r[38];
|
|
27548
27532
|
let MW;
|
|
27549
|
-
r[39] !==
|
|
27533
|
+
r[39] !== Z || r[40] !== jW || r[41] !== B ? (MW = (0, import_jsx_runtime.jsxs)("div", {
|
|
27550
27534
|
className: B,
|
|
27551
27535
|
children: [
|
|
27552
|
-
|
|
27536
|
+
Z,
|
|
27553
27537
|
jW
|
|
27554
27538
|
]
|
|
27555
|
-
}), r[39] =
|
|
27539
|
+
}), r[39] = Z, r[40] = jW, r[41] = B, r[42] = MW) : MW = r[42];
|
|
27556
27540
|
let NW;
|
|
27557
27541
|
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
27542
|
label: c,
|
|
@@ -30860,9 +30844,9 @@ ${c}
|
|
|
30860
30844
|
areRegExpsEqual: H,
|
|
30861
30845
|
areSetsEqual: G,
|
|
30862
30846
|
createIsNestedEqual: r2
|
|
30863
|
-
}),
|
|
30864
|
-
function
|
|
30865
|
-
return
|
|
30847
|
+
}), AW = T(q);
|
|
30848
|
+
function Z(e3, r3) {
|
|
30849
|
+
return AW(e3, r3, void 0);
|
|
30866
30850
|
}
|
|
30867
30851
|
var jW = T(l(q, {
|
|
30868
30852
|
createIsNestedEqual: function() {
|
|
@@ -30893,7 +30877,7 @@ ${c}
|
|
|
30893
30877
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
30894
30878
|
});
|
|
30895
30879
|
}
|
|
30896
|
-
e2.circularDeepEqual = PW, e2.circularShallowEqual = IW, e2.createCustomCircularEqual = RW, e2.createCustomEqual = LW, e2.deepEqual =
|
|
30880
|
+
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
30881
|
value: true
|
|
30898
30882
|
});
|
|
30899
30883
|
}));
|
|
@@ -31116,13 +31100,13 @@ ${c}
|
|
|
31116
31100
|
function G(e2) {
|
|
31117
31101
|
return e2 * 100 + "%";
|
|
31118
31102
|
}
|
|
31119
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, kW = (e2, r2, c2) => e2 < 0 ? r2 : c2,
|
|
31103
|
+
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
31104
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
31121
31105
|
return {
|
|
31122
31106
|
left: l2,
|
|
31123
31107
|
width: d2,
|
|
31124
31108
|
height: kW(f2, e2.height, u2),
|
|
31125
|
-
top:
|
|
31109
|
+
top: Z(f2)
|
|
31126
31110
|
};
|
|
31127
31111
|
}, MW = (e2, r2, c2) => {
|
|
31128
31112
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
@@ -31130,15 +31114,15 @@ ${c}
|
|
|
31130
31114
|
top: l2,
|
|
31131
31115
|
height: d2,
|
|
31132
31116
|
width: q(e2.left, e2.width, f2, c2),
|
|
31133
|
-
left:
|
|
31117
|
+
left: AW(u2)
|
|
31134
31118
|
};
|
|
31135
31119
|
}, NW = (e2, r2, c2) => {
|
|
31136
31120
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
31137
31121
|
return {
|
|
31138
31122
|
height: u2,
|
|
31139
31123
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
31140
|
-
top:
|
|
31141
|
-
left:
|
|
31124
|
+
top: Z(l2),
|
|
31125
|
+
left: AW(f2)
|
|
31142
31126
|
};
|
|
31143
31127
|
}, PW = (e2, r2, c2) => {
|
|
31144
31128
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
@@ -31146,7 +31130,7 @@ ${c}
|
|
|
31146
31130
|
width: f2,
|
|
31147
31131
|
left: u2,
|
|
31148
31132
|
height: kW(l2, e2.height, d2),
|
|
31149
|
-
top:
|
|
31133
|
+
top: Z(l2)
|
|
31150
31134
|
};
|
|
31151
31135
|
}, FW = {
|
|
31152
31136
|
n: jW,
|
|
@@ -34049,7 +34033,7 @@ ${c}
|
|
|
34049
34033
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
34050
34034
|
let E = useIsDragging(), O, j;
|
|
34051
34035
|
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,
|
|
34036
|
+
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
34037
|
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
34038
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
34055
34039
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -34075,16 +34059,16 @@ ${c}
|
|
|
34075
34059
|
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
34060
|
20,
|
|
34077
34061
|
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 ? (
|
|
34062
|
+
] : 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
34063
|
f || l({
|
|
34080
34064
|
...c,
|
|
34081
34065
|
cells: e3
|
|
34082
34066
|
});
|
|
34083
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
34067
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = AW) : AW = r[69], r[70] === g ? Z = r[71] : (Z = g ? {
|
|
34084
34068
|
i: g.i,
|
|
34085
34069
|
w: g.w || 2,
|
|
34086
34070
|
h: g.h || 2
|
|
34087
|
-
} : void 0, r[70] = g, r[71] =
|
|
34071
|
+
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (jW = (e3, r2, u2) => {
|
|
34088
34072
|
O.onDragStop(), r2 && l({
|
|
34089
34073
|
...c,
|
|
34090
34074
|
cells: [
|
|
@@ -34130,10 +34114,10 @@ ${c}
|
|
|
34130
34114
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
34131
34115
|
children: m3
|
|
34132
34116
|
}, 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],
|
|
34117
|
+
}), 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;
|
|
34118
|
+
} 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
34119
|
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] !==
|
|
34120
|
+
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
34121
|
breakpoint: VW,
|
|
34138
34122
|
layouts: HW,
|
|
34139
34123
|
style: UW,
|
|
@@ -34146,8 +34130,8 @@ ${c}
|
|
|
34146
34130
|
compactType: G,
|
|
34147
34131
|
preventCollision: q,
|
|
34148
34132
|
rowHeight: kW,
|
|
34149
|
-
onLayoutChange:
|
|
34150
|
-
droppingItem:
|
|
34133
|
+
onLayoutChange: AW,
|
|
34134
|
+
droppingItem: Z,
|
|
34151
34135
|
onDrop: jW,
|
|
34152
34136
|
onDragStart: MW,
|
|
34153
34137
|
onDrag: NW,
|
|
@@ -34158,7 +34142,7 @@ ${c}
|
|
|
34158
34142
|
isResizable: RW,
|
|
34159
34143
|
draggableHandle: zW,
|
|
34160
34144
|
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] =
|
|
34145
|
+
}), 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
34146
|
let KW = GW, qW, JW, YW, XW, ZW, QW, $W;
|
|
34163
34147
|
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
34148
|
$W = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
@@ -34583,21 +34567,21 @@ ${c}
|
|
|
34583
34567
|
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (kW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
34584
34568
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
34585
34569
|
}), r[35] = kW) : kW = r[35];
|
|
34586
|
-
let
|
|
34587
|
-
r[36] === l ?
|
|
34570
|
+
let AW;
|
|
34571
|
+
r[36] === l ? AW = r[37] : (AW = (0, import_jsx_runtime.jsx)(X, {
|
|
34588
34572
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34589
34573
|
onClick: () => l()
|
|
34590
|
-
}), r[36] = l, r[37] =
|
|
34591
|
-
let
|
|
34592
|
-
return r[38] !== I || r[39] !== q || r[40] !==
|
|
34574
|
+
}), r[36] = l, r[37] = AW);
|
|
34575
|
+
let Z;
|
|
34576
|
+
return r[38] !== I || r[39] !== q || r[40] !== AW || r[41] !== w ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
34593
34577
|
className: w,
|
|
34594
34578
|
children: [
|
|
34595
34579
|
I,
|
|
34596
34580
|
q,
|
|
34597
34581
|
kW,
|
|
34598
|
-
|
|
34582
|
+
AW
|
|
34599
34583
|
]
|
|
34600
|
-
}), r[38] = I, r[39] = q, r[40] =
|
|
34584
|
+
}), r[38] = I, r[39] = q, r[40] = AW, r[41] = w, r[42] = Z) : Z = r[42], Z;
|
|
34601
34585
|
};
|
|
34602
34586
|
function isSidebarCell(e) {
|
|
34603
34587
|
var _a5;
|
|
@@ -36603,29 +36587,29 @@ ${c}
|
|
|
36603
36587
|
M
|
|
36604
36588
|
]), 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
36589
|
j
|
|
36606
|
-
]),
|
|
36590
|
+
]), AW = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers: jW, measuringScheduled: MW } = useDroppableMeasuring(kW, {
|
|
36607
36591
|
dragging: w,
|
|
36608
36592
|
dependencies: [
|
|
36609
36593
|
O.x,
|
|
36610
36594
|
O.y
|
|
36611
36595
|
],
|
|
36612
|
-
config:
|
|
36596
|
+
config: AW.droppable
|
|
36613
36597
|
}), NW = useCachedNode(E, T), PW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36614
36598
|
H
|
|
36615
|
-
]), FW = fG(), IW = useInitialRect(NW,
|
|
36599
|
+
]), FW = fG(), IW = useInitialRect(NW, AW.draggable.measure);
|
|
36616
36600
|
useLayoutShiftScrollCompensation({
|
|
36617
36601
|
activeNode: T == null ? null : E.get(T),
|
|
36618
36602
|
config: FW.layoutShiftCompensation,
|
|
36619
36603
|
initialRect: IW,
|
|
36620
|
-
measure:
|
|
36604
|
+
measure: AW.draggable.measure
|
|
36621
36605
|
});
|
|
36622
|
-
let LW = useRect(NW,
|
|
36606
|
+
let LW = useRect(NW, AW.draggable.measure, IW), RW = useRect(NW ? NW.parentElement : null), zW = (0, import_react.useRef)({
|
|
36623
36607
|
activatorEvent: null,
|
|
36624
36608
|
active: null,
|
|
36625
36609
|
activeNode: NW,
|
|
36626
36610
|
collisionRect: null,
|
|
36627
36611
|
collisions: null,
|
|
36628
|
-
droppableRects:
|
|
36612
|
+
droppableRects: Z,
|
|
36629
36613
|
draggableNodes: E,
|
|
36630
36614
|
draggingNode: null,
|
|
36631
36615
|
draggingNodeRect: null,
|
|
@@ -36634,7 +36618,7 @@ ${c}
|
|
|
36634
36618
|
scrollableAncestors: [],
|
|
36635
36619
|
scrollAdjustedTranslate: null
|
|
36636
36620
|
}), BW = j.getNodeFor((_a5 = zW.current.over) == null ? void 0 : _a5.id), VW = useDragOverlayMeasuring({
|
|
36637
|
-
measure:
|
|
36621
|
+
measure: AW.dragOverlay.measure
|
|
36638
36622
|
}), 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
36623
|
transform: {
|
|
36640
36624
|
x: O.x - GW.x,
|
|
@@ -36657,7 +36641,7 @@ ${c}
|
|
|
36657
36641
|
]), eG = add(YW, QW), tG = UW ? getAdjustedRect(UW, YW) : null, nG = L && tG ? f({
|
|
36658
36642
|
active: L,
|
|
36659
36643
|
collisionRect: tG,
|
|
36660
|
-
droppableRects:
|
|
36644
|
+
droppableRects: Z,
|
|
36661
36645
|
droppableContainers: kW,
|
|
36662
36646
|
pointerCoordinates: XW
|
|
36663
36647
|
}) : 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 +36815,7 @@ ${c}
|
|
|
36831
36815
|
activeNode: NW,
|
|
36832
36816
|
collisionRect: tG,
|
|
36833
36817
|
collisions: nG,
|
|
36834
|
-
droppableRects:
|
|
36818
|
+
droppableRects: Z,
|
|
36835
36819
|
draggableNodes: E,
|
|
36836
36820
|
draggingNode: HW,
|
|
36837
36821
|
draggingNodeRect: UW,
|
|
@@ -36851,7 +36835,7 @@ ${c}
|
|
|
36851
36835
|
E,
|
|
36852
36836
|
HW,
|
|
36853
36837
|
UW,
|
|
36854
|
-
|
|
36838
|
+
Z,
|
|
36855
36839
|
j,
|
|
36856
36840
|
iG,
|
|
36857
36841
|
qW,
|
|
@@ -36874,12 +36858,12 @@ ${c}
|
|
|
36874
36858
|
dragOverlay: VW,
|
|
36875
36859
|
draggableNodes: E,
|
|
36876
36860
|
droppableContainers: j,
|
|
36877
|
-
droppableRects:
|
|
36861
|
+
droppableRects: Z,
|
|
36878
36862
|
over: iG,
|
|
36879
36863
|
measureDroppableContainers: jW,
|
|
36880
36864
|
scrollableAncestors: qW,
|
|
36881
36865
|
scrollableAncestorRects: JW,
|
|
36882
|
-
measuringConfiguration:
|
|
36866
|
+
measuringConfiguration: AW,
|
|
36883
36867
|
measuringScheduled: MW,
|
|
36884
36868
|
windowRect: KW
|
|
36885
36869
|
}), [
|
|
@@ -36892,12 +36876,12 @@ ${c}
|
|
|
36892
36876
|
VW,
|
|
36893
36877
|
E,
|
|
36894
36878
|
j,
|
|
36895
|
-
|
|
36879
|
+
Z,
|
|
36896
36880
|
iG,
|
|
36897
36881
|
jW,
|
|
36898
36882
|
qW,
|
|
36899
36883
|
JW,
|
|
36900
|
-
|
|
36884
|
+
AW,
|
|
36901
36885
|
MW,
|
|
36902
36886
|
KW
|
|
36903
36887
|
]), dG = (0, import_react.useMemo)(() => ({
|
|
@@ -37465,7 +37449,7 @@ ${c}
|
|
|
37465
37449
|
updateMeasurementsFor: I,
|
|
37466
37450
|
...m
|
|
37467
37451
|
}
|
|
37468
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: kW, listeners:
|
|
37452
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: kW, listeners: AW, isDragging: Z, over: jW, setActivatorNodeRef: MW, transform: NW } = useDraggable({
|
|
37469
37453
|
id: f,
|
|
37470
37454
|
data: M,
|
|
37471
37455
|
attributes: {
|
|
@@ -37473,7 +37457,7 @@ ${c}
|
|
|
37473
37457
|
...c
|
|
37474
37458
|
},
|
|
37475
37459
|
disabled: O.draggable
|
|
37476
|
-
}), PW = useCombinedRefs(B, kW), FW = !!H, IW = FW && !b && isValidIndex(v) && isValidIndex(w), LW = !T &&
|
|
37460
|
+
}), 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
37461
|
rects: S,
|
|
37478
37462
|
activeNodeRect: G,
|
|
37479
37463
|
activeIndex: v,
|
|
@@ -37492,7 +37476,7 @@ ${c}
|
|
|
37492
37476
|
}), HW = g !== VW.current.items, UW = r({
|
|
37493
37477
|
active: H,
|
|
37494
37478
|
containerId: _,
|
|
37495
|
-
isDragging:
|
|
37479
|
+
isDragging: Z,
|
|
37496
37480
|
isSorting: FW,
|
|
37497
37481
|
id: f,
|
|
37498
37482
|
index: j,
|
|
@@ -37538,8 +37522,8 @@ ${c}
|
|
|
37538
37522
|
items: g,
|
|
37539
37523
|
isOver: z,
|
|
37540
37524
|
isSorting: FW,
|
|
37541
|
-
isDragging:
|
|
37542
|
-
listeners:
|
|
37525
|
+
isDragging: Z,
|
|
37526
|
+
listeners: AW,
|
|
37543
37527
|
node: R,
|
|
37544
37528
|
overIndex: w,
|
|
37545
37529
|
over: jW,
|
|
@@ -37854,13 +37838,13 @@ ${c}
|
|
|
37854
37838
|
}), 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
37839
|
let kW = q;
|
|
37856
37840
|
if (!v && !g) return kW;
|
|
37857
|
-
let
|
|
37858
|
-
r[46] === kW ?
|
|
37841
|
+
let AW;
|
|
37842
|
+
r[46] === kW ? AW = r[47] : (AW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
37859
37843
|
asChild: true,
|
|
37860
37844
|
children: kW
|
|
37861
|
-
}), r[46] = kW, r[47] =
|
|
37862
|
-
let
|
|
37863
|
-
r[48] === v ?
|
|
37845
|
+
}), r[46] = kW, r[47] = AW);
|
|
37846
|
+
let Z;
|
|
37847
|
+
r[48] === v ? Z = r[49] : (Z = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37864
37848
|
onSelect: v,
|
|
37865
37849
|
children: [
|
|
37866
37850
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -37868,7 +37852,7 @@ ${c}
|
|
|
37868
37852
|
}),
|
|
37869
37853
|
"Add cell"
|
|
37870
37854
|
]
|
|
37871
|
-
}), r[48] = v, r[49] =
|
|
37855
|
+
}), r[48] = v, r[49] = Z);
|
|
37872
37856
|
let jW;
|
|
37873
37857
|
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (jW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = jW) : jW = r[50];
|
|
37874
37858
|
let MW;
|
|
@@ -37883,20 +37867,20 @@ ${c}
|
|
|
37883
37867
|
]
|
|
37884
37868
|
}), r[51] = g, r[52] = MW);
|
|
37885
37869
|
let NW;
|
|
37886
|
-
r[53] !==
|
|
37870
|
+
r[53] !== Z || r[54] !== MW ? (NW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
37887
37871
|
children: [
|
|
37888
|
-
|
|
37872
|
+
Z,
|
|
37889
37873
|
jW,
|
|
37890
37874
|
MW
|
|
37891
37875
|
]
|
|
37892
|
-
}), r[53] =
|
|
37876
|
+
}), r[53] = Z, r[54] = MW, r[55] = NW) : NW = r[55];
|
|
37893
37877
|
let PW;
|
|
37894
|
-
return r[56] !==
|
|
37878
|
+
return r[56] !== AW || r[57] !== NW ? (PW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
37895
37879
|
children: [
|
|
37896
|
-
|
|
37880
|
+
AW,
|
|
37897
37881
|
NW
|
|
37898
37882
|
]
|
|
37899
|
-
}), r[56] =
|
|
37883
|
+
}), r[56] = AW, r[57] = NW, r[58] = PW) : PW = r[58], PW;
|
|
37900
37884
|
}, InsertCellLine = (e) => {
|
|
37901
37885
|
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
37886
|
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 +37934,8 @@ ${c}
|
|
|
37950
37934
|
...B,
|
|
37951
37935
|
...h
|
|
37952
37936
|
}, 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] !==
|
|
37937
|
+
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;
|
|
37938
|
+
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
37939
|
let jW;
|
|
37956
37940
|
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
37941
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
@@ -37990,9 +37974,9 @@ ${c}
|
|
|
37990
37974
|
})
|
|
37991
37975
|
}), r[39] = z, r[40] = R, r[41] = NW) : NW = r[41];
|
|
37992
37976
|
let PW;
|
|
37993
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
37977
|
+
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
37978
|
ref: f,
|
|
37995
|
-
className:
|
|
37979
|
+
className: Z,
|
|
37996
37980
|
style: W,
|
|
37997
37981
|
...d,
|
|
37998
37982
|
children: [
|
|
@@ -38000,7 +37984,7 @@ ${c}
|
|
|
38000
37984
|
MW,
|
|
38001
37985
|
NW
|
|
38002
37986
|
]
|
|
38003
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
37987
|
+
}), 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
37988
|
}, MiniCodePreview = (e) => {
|
|
38005
37989
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
38006
37990
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -38040,7 +38024,7 @@ ${c}
|
|
|
38040
38024
|
function _temp2$2(e) {
|
|
38041
38025
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
38042
38026
|
}
|
|
38043
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
38027
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-BuQ2GKAM.js"));
|
|
38044
38028
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
38045
38029
|
var _a5;
|
|
38046
38030
|
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 +38404,7 @@ ${c}
|
|
|
38420
38404
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
38421
38405
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
38422
38406
|
}, 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
|
|
38407
|
+
let H, W, G, q, kW, AW, Z, jW, MW, NW;
|
|
38424
38408
|
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
38409
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
38426
38410
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -38466,11 +38450,11 @@ ${c}
|
|
|
38466
38450
|
})
|
|
38467
38451
|
})
|
|
38468
38452
|
]
|
|
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] !==
|
|
38453
|
+
}), 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;
|
|
38454
|
+
let PW2 = y && "marimo-output-stale", FW2 = L ? "p-5" : "p-3";
|
|
38455
|
+
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
38456
|
maxHeight: "none"
|
|
38473
|
-
} : void 0, r[44] = d, r[45] =
|
|
38457
|
+
} : void 0, r[44] = d, r[45] = MW), NW = e2.map((e3, r2) => {
|
|
38474
38458
|
if (e3.channel === "pdb") return null;
|
|
38475
38459
|
if (e3.channel === "stdin") {
|
|
38476
38460
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -38499,36 +38483,36 @@ ${c}
|
|
|
38499
38483
|
wrapText: l
|
|
38500
38484
|
})
|
|
38501
38485
|
}, 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 ? (
|
|
38486
|
+
}), 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;
|
|
38487
|
+
} 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];
|
|
38488
|
+
let PW;
|
|
38489
|
+
r[46] !== T || r[47] !== S ? (PW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
38506
38490
|
value: S,
|
|
38507
38491
|
cellId: T,
|
|
38508
38492
|
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] !==
|
|
38493
|
+
}), r[46] = T, r[47] = S, r[48] = PW) : PW = r[48];
|
|
38494
|
+
let FW;
|
|
38495
|
+
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
38496
|
title: G,
|
|
38513
38497
|
"data-testid": q,
|
|
38514
38498
|
ref: kW,
|
|
38515
|
-
...
|
|
38516
|
-
tabIndex:
|
|
38517
|
-
className:
|
|
38518
|
-
style:
|
|
38499
|
+
...AW,
|
|
38500
|
+
tabIndex: Z,
|
|
38501
|
+
className: jW,
|
|
38502
|
+
style: MW,
|
|
38519
38503
|
children: [
|
|
38520
|
-
|
|
38521
|
-
|
|
38504
|
+
NW,
|
|
38505
|
+
PW
|
|
38522
38506
|
]
|
|
38523
|
-
}), r[49] =
|
|
38524
|
-
let
|
|
38525
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
38507
|
+
}), 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];
|
|
38508
|
+
let IW;
|
|
38509
|
+
return r[59] !== H || r[60] !== W || r[61] !== FW ? (IW = (0, import_jsx_runtime.jsxs)("div", {
|
|
38526
38510
|
className: H,
|
|
38527
38511
|
children: [
|
|
38528
38512
|
W,
|
|
38529
|
-
|
|
38513
|
+
FW
|
|
38530
38514
|
]
|
|
38531
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
38515
|
+
}), r[59] = H, r[60] = W, r[61] = FW, r[62] = IW) : IW = r[62], IW;
|
|
38532
38516
|
}, StdInput = (e) => {
|
|
38533
38517
|
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
38518
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -38950,12 +38934,14 @@ ${c}
|
|
|
38950
38934
|
r[6] === f ? L = r[7] : (L = outputIsLoading(f), r[6] = f, r[7] = L);
|
|
38951
38935
|
let R = L, z = E && w !== "present", B;
|
|
38952
38936
|
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
|
-
|
|
38937
|
+
let e2 = new MarkdownLanguageAdapter().isSupported(b);
|
|
38938
|
+
B = cn("marimo-cell", "hover-actions-parent empty:invisible", !S && !z ? publishedCellClasses({
|
|
38939
|
+
errored: h,
|
|
38940
|
+
stopped: m
|
|
38941
|
+
}) : {
|
|
38956
38942
|
"has-error": h,
|
|
38957
38943
|
stopped: m,
|
|
38958
|
-
borderless: e2
|
|
38944
|
+
borderless: e2
|
|
38959
38945
|
}), r[8] = b, r[9] = h, r[10] = z, r[11] = S, r[12] = m, r[13] = B;
|
|
38960
38946
|
} else B = r[13];
|
|
38961
38947
|
let H = B;
|
|
@@ -39008,27 +38994,32 @@ ${c}
|
|
|
39008
38994
|
]
|
|
39009
38995
|
}), 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
38996
|
}
|
|
39011
|
-
|
|
39012
|
-
|
|
39013
|
-
|
|
39014
|
-
|
|
39015
|
-
|
|
39016
|
-
|
|
39017
|
-
|
|
38997
|
+
if (shouldHidePublishedCell({
|
|
38998
|
+
errored: h,
|
|
38999
|
+
interrupted: _,
|
|
39000
|
+
stopped: m,
|
|
39001
|
+
output: c,
|
|
39002
|
+
showErrorTracebacks: O
|
|
39003
|
+
})) return null;
|
|
39004
|
+
let W;
|
|
39005
|
+
r[44] !== d || r[45] !== T ? (W = cellDomProps(d, T), r[44] = d, r[45] = T, r[46] = W) : W = r[46];
|
|
39006
|
+
let G = w === "edit", q;
|
|
39007
|
+
r[47] !== d || r[48] !== R || r[49] !== c || r[50] !== I || r[51] !== G ? (q = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
39008
|
+
allowExpand: G,
|
|
39018
39009
|
output: c,
|
|
39019
39010
|
className: CSSClasses.outputArea,
|
|
39020
39011
|
cellId: d,
|
|
39021
39012
|
stale: I,
|
|
39022
39013
|
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] !==
|
|
39014
|
+
}), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] = G, r[52] = q) : q = r[52];
|
|
39015
|
+
let kW;
|
|
39016
|
+
return r[53] !== H || r[54] !== W || r[55] !== q ? (kW = (0, import_jsx_runtime.jsx)("div", {
|
|
39026
39017
|
tabIndex: -1,
|
|
39027
39018
|
ref: j,
|
|
39028
39019
|
className: H,
|
|
39029
|
-
...
|
|
39030
|
-
children:
|
|
39031
|
-
}), r[53] = H, r[54] =
|
|
39020
|
+
...W,
|
|
39021
|
+
children: q
|
|
39022
|
+
}), r[53] = H, r[54] = W, r[55] = q, r[56] = kW) : kW = r[56], kW;
|
|
39032
39023
|
});
|
|
39033
39024
|
VerticalCell.displayName = "VerticalCell";
|
|
39034
39025
|
const VerticalLayoutPlugin = {
|
|
@@ -39074,9 +39065,6 @@ ${c}
|
|
|
39074
39065
|
function _temp4() {
|
|
39075
39066
|
return null;
|
|
39076
39067
|
}
|
|
39077
|
-
function _temp5(e) {
|
|
39078
|
-
return e.type === "exception" && "traceback" in e && e.traceback;
|
|
39079
|
-
}
|
|
39080
39068
|
const cellRendererPlugins = [
|
|
39081
39069
|
GridLayoutPlugin,
|
|
39082
39070
|
SlidesLayoutPlugin,
|