@marimo-team/islands 0.23.14-dev2 → 0.23.14-dev21
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/{ConnectedDataExplorerComponent-Du3_nUzI.js → ConnectedDataExplorerComponent-DXBx_nQg.js} +4 -4
- package/dist/{chat-ui-CsPewo4h.js → chat-ui-CO8WuXGb.js} +3243 -3039
- package/dist/{code-visibility-CRYdBxcA.js → code-visibility-CPWEmIAX.js} +1115 -917
- package/dist/{formats-d6MhLuQ9.js → formats-WsOgyW_K.js} +1 -1
- package/dist/{glide-data-editor-DkzAInWG.js → glide-data-editor-qpmKyAPn.js} +2 -2
- package/dist/{html-to-image-DXwLcQ6l.js → html-to-image-DLSOS-bE.js} +2351 -2282
- package/dist/{input-CbEz_aj_.js → input-BSdZp5Ng.js} +1 -1
- package/dist/main.js +1139 -1071
- package/dist/{mermaid-CJW9vIyO.js → mermaid-D-HYBMEV.js} +2 -2
- package/dist/{process-output-C6_e1pT_.js → process-output-B9ysqk1y.js} +1 -1
- package/dist/{reveal-component-CbqUMhp8.js → reveal-component-BJwt0B2_.js} +16 -16
- package/dist/{spec-Bv-XlYiv.js → spec-CnTgI25l.js} +1 -1
- package/dist/{toDate-D-l5s8nn.js → toDate-D1Z7ZXWh.js} +1 -1
- package/dist/{useAsyncData-1Dhzjfwf.js → useAsyncData-BMc8itk2.js} +1 -1
- package/dist/{useDeepCompareMemoize-CDWT3BDz.js → useDeepCompareMemoize-ZwmDBRDY.js} +1 -1
- package/dist/{useLifecycle-AHlswLw-.js → useLifecycle-CxffarYV.js} +1 -1
- package/dist/{useTheme-BrYvK-_A.js → useTheme-yGsGEk82.js} +26 -24
- package/dist/{vega-component-Pk6lyc_a.js → vega-component-BFJTyykA.js} +5 -5
- package/package.json +2 -2
- package/src/components/chat/acp/agent-panel.tsx +35 -1
- package/src/components/chat/chat-panel.tsx +68 -29
- package/src/components/data-table/__tests__/column-explorer.test.tsx +25 -0
- package/src/components/data-table/__tests__/column-visibility-dropdown.test.tsx +60 -3
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +33 -12
- package/src/components/data-table/column-visibility-dropdown.tsx +15 -0
- package/src/components/editor/actions/useNotebookActions.tsx +2 -2
- package/src/components/editor/chrome/panels/snippets-panel.tsx +5 -2
- package/src/components/editor/chrome/wrapper/__tests__/useOpenAiAssistant.test.ts +36 -0
- package/src/components/editor/chrome/wrapper/footer-items/pyodide-status.tsx +6 -36
- package/src/components/editor/chrome/wrapper/useAiPanel.ts +3 -1
- package/src/components/editor/chrome/wrapper/useOpenAiAssistant.ts +88 -0
- package/src/components/editor/code/readonly-python-code.tsx +16 -2
- package/src/components/editor/errors/__tests__/auto-fix.test.ts +23 -0
- package/src/components/editor/errors/auto-fix.tsx +88 -34
- package/src/components/editor/errors/fix-mode.ts +1 -1
- package/src/components/editor/output/MarimoTracebackOutput.tsx +10 -1
- package/src/components/editor/output/__tests__/traceback.test.tsx +14 -6
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +6 -2
- package/src/components/lifecycle/ProgressiveBoundary.tsx +42 -0
- package/src/components/lifecycle/RuntimeStatusBadge.tsx +59 -0
- package/src/components/lifecycle/__tests__/ProgressiveBoundary.test.tsx +147 -0
- package/src/components/lifecycle/__tests__/RuntimeStatusBadge.test.tsx +72 -0
- package/src/components/slides/slide-cell-view.tsx +7 -6
- package/src/core/ai/config.ts +2 -2
- package/src/core/ai/context/__tests__/registry.test.ts +133 -3
- package/src/core/ai/context/providers/__tests__/datasource.test.ts +3 -1
- package/src/core/ai/context/providers/__tests__/error.test.ts +200 -15
- package/src/core/ai/context/providers/datasource.ts +27 -2
- package/src/core/ai/context/providers/error.ts +226 -36
- package/src/core/ai/context/registry.ts +77 -43
- package/src/core/ai/state.ts +11 -0
- package/src/core/cells/__tests__/readonly-code-display.test.ts +46 -0
- package/src/core/cells/readonly-code-display.ts +35 -0
- package/src/core/codemirror/ai/resources.ts +15 -10
- package/src/core/codemirror/completion/__tests__/signature-hint.test.ts +94 -0
- package/src/core/codemirror/completion/completer.ts +12 -1
- package/src/core/codemirror/completion/signature-hint.ts +68 -0
- package/src/core/codemirror/language/languages/python.ts +10 -4
- package/src/core/codemirror/utils.ts +15 -0
- package/src/core/edit-app.tsx +8 -5
- package/src/core/errors/errors.ts +2 -1
- package/src/core/lifecycle/__tests__/render-policy.test.ts +247 -0
- package/src/core/lifecycle/render-policy.ts +125 -0
- package/src/core/mime.ts +11 -4
- package/src/core/run-app.tsx +27 -23
- package/src/core/runtime/__tests__/adapter.test.ts +160 -0
- package/src/core/runtime/adapter.ts +182 -0
- package/src/core/wasm/PyodideLoader.tsx +20 -62
- package/src/core/wasm/bridge.ts +9 -4
- package/src/core/wasm/state.ts +8 -19
- package/src/core/wasm/store.ts +1 -1
- package/src/hooks/__tests__/useDelayElapsed.test.tsx +55 -0
- package/src/hooks/useDelayElapsed.ts +27 -0
- package/src/core/ai/context/providers/__tests__/__snapshots__/error.test.ts.snap +0 -3
- package/src/core/wasm/__tests__/PyodideLoader.test.ts +0 -72
- package/src/core/wasm/__tests__/state.test.ts +0 -124
- /package/dist/{files → export_demos}/wasm-intro.py +0 -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,
|
|
25
|
+
import { $ as reducer, $t as requestClientAtom, A as ChevronDownIcon, At as Paths, Bn as Eye, C as Accordion, Cn as selectAtom, Ct as isInternalCellName, D as BorderAllIcon, Dn as Item$1, Dt as MarkdownLanguageAdapter, E as AccordionTrigger, En as Content2, Et as customPythonLanguageSupport, G as hasRunAnyCellAtom, Gn as CircleAlert, Gt as DATA_TYPE_ICON, H as renderHTML, Hn as Database, Ht as MarkdownParser, I as base64ToDataView, In as LoaderCircle, J as getCellNames, K as createActions, Kn as Braces, Ln as Layers, Lt as repl, Mn as Table2, Nn as PaintRoller, Nt as DeferredRequestRegistry, On as Root2$1, Pt as generateUUID, Q as numColumnsAtom, Qt as getRequestClient, R as dataViewToBase64, Rn as Info, Sn as atomWithStorage, St as getValidName, T as AccordionItem, Tt as Checkbox, U as getMarimoExportContext, Un as Columns2, V as safeExtractSetUIElementMessageBuffers, Vt as SQLParser, W as hasTrustedExportContext, Wt as PluralWords, X as notebookAtom, Y as hasOnlyOneCellAtom, Z as notebookOutline, Zt as convertStatsName, _n as OBJECT_ID_ATTR, _t as headingToIdentifier, a as useCellFocusActions, ct as initialModeAtom, dn as parseInitialValue, en as useRequestClient, et as useCellActions, f as isOutputEmpty, ft as outputIsLoading, gn as findCellId, hn as UIElementId, i as LazyAnyLanguageCodeMirror, jn as Trash2, kn as Trigger2, kt as PathBuilder, ln as parseAttrValue, lt as kioskModeAtom, mt as isErrorMime, n as Spinner, o as useLastFocusedCellId, on as NotebookScopedLocalStorage, p as useExpandedConsoleOutput, pn as HTMLCellId, pt as outputIsStale, qt as require_client, rt as createCell, s as maybeAddAltairImport, st as getInitialAppMode, tn as isUninstantiated, tt as useCellIds, un as parseDataset, vn as RANDOM_ID_ATTR, w as AccordionContent, wt as normalizeName, xn as atomWithReducer, yn as jsonParseWithSpecialChar, zn as FileText, zt as jotaiJsonStorage, __tla as __tla_0 } from "./html-to-image-DLSOS-bE.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
|
-
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-
|
|
29
|
-
import { $ as
|
|
30
|
-
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-
|
|
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-CnTgI25l.js";
|
|
29
|
+
import { $ as PANEL_TYPES, $t as HtmlOutput, A as prettifyRowCount, At as INDEX_COLUMN_NAME, B as CompactChipRow, Bt as dateToLocalISODateTime, C as downloadSizeLimitAtom, Ct as ColumnChartSpecModel, D as ErrorState, Dt as getPageIndexForRow, E as EmptyState, Et as usePrevious$1, F as ContextMenuItem, Ft as hasFunctionProperty, G as Command, Gt as TabsTrigger, H as DateRangePicker, Ht as Tabs, I as ContextMenuSeparator, It as isRecord, J as CommandItem, Jt as ChartLoadingState, K as CommandEmpty, Kt as ChartErrorState, L as ContextMenuTrigger, Lt as isNullishFilter, 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 Kbd, R as useInternalStateWithSync, Rt as Maps, S as Filenames, St as ColumnChartContext, T as ColumnPreviewContainer, Tt as useIntersectionObserver, U as Combobox, Ut as TabsContent, V as DatePicker, Vt as dateToLocalISOTime, W as ComboboxItem, Wt as TabsList, X as CommandSeparator, Xt as useOverflowDetection, Y as CommandList, Yt as LazyVegaEmbed, Z as smartMatch, Zt as RenderTextWithLinks, _ 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 EmotionCacheProvider, 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 ChartInfoState, 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 dateToLocalISODate, __tla as __tla_2 } from "./code-visibility-CPWEmIAX.js";
|
|
30
|
+
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-CxffarYV.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
|
-
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-
|
|
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-
|
|
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-
|
|
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-BSdZp5Ng.js";
|
|
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-D1Z7ZXWh.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-B9ysqk1y.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";
|
|
@@ -45,27 +45,27 @@ import { f as CopyClipboardIcon } from "./extends-9MVIxxRo.js";
|
|
|
45
45
|
import { a as get_default } from "./hasIn-Deg7jl_j.js";
|
|
46
46
|
import { n as _baseSet_default, t as pick_default } from "./pick-D1Qo8s2C.js";
|
|
47
47
|
import { i as debounce_default, r as KnownQueryParams, t as CSSClasses } from "./constants-T20xxyNf.js";
|
|
48
|
-
import {
|
|
48
|
+
import { D as useEvent_default, E as dequal, S as atom, _ as Provider, a as autoInstantiateAtom, d as AppConfigSchema, g as isIslands, l as useResolvedMarimoConfig, n as useTheme, p as store, s as localeAtom, v as useAtom, y as useAtomValue } from "./useTheme-yGsGEk82.js";
|
|
49
49
|
import { $ as EditorView } from "./dist-U4F-tbMs.js";
|
|
50
50
|
import { t as invariant } from "./invariant-wRzNXIsJ.js";
|
|
51
51
|
import { l as clamp, o as arrayShallowEquals, t as Arrays } from "./arrays-sEtDRoG4.js";
|
|
52
52
|
import { n as once } from "./once-DPuqGUeo.js";
|
|
53
53
|
import "./main-Tj_-QTyF.js";
|
|
54
54
|
import { f as sql } from "./dist-CcWX6tmx.js";
|
|
55
|
-
import "./dist-Dv_Y15yk.js";
|
|
55
|
+
import { a as markdown } from "./dist-Dv_Y15yk.js";
|
|
56
56
|
import "./dist-BSAt6RhH.js";
|
|
57
57
|
import "./dist-D-W5ny5a.js";
|
|
58
58
|
import "./dist-M9Vag9Y0.js";
|
|
59
59
|
import { r as python } from "./dist-C_Y3oV3C.js";
|
|
60
60
|
import { n as minimalSetup, t as esm_default } from "./esm-M837UxV5.js";
|
|
61
61
|
import "./purify.es-H92eMd9-.js";
|
|
62
|
-
import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-
|
|
62
|
+
import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-WsOgyW_K.js";
|
|
63
63
|
import "./vega-loader.browser-CZ-J8Py3.js";
|
|
64
64
|
import { a as getContainerWidth, n as vegaLoadData, o as getVegaFieldTypes, s as tooltipHandler } from "./loader-Boph2xIS.js";
|
|
65
65
|
import "./defaultLocale-u-3osm0P.js";
|
|
66
66
|
import "./defaultLocale-BoHTsDG6.js";
|
|
67
|
-
import { t as useAsyncData } from "./useAsyncData-
|
|
68
|
-
import { t as useDeepCompareMemoize } from "./useDeepCompareMemoize-
|
|
67
|
+
import { t as useAsyncData } from "./useAsyncData-BMc8itk2.js";
|
|
68
|
+
import { t as useDeepCompareMemoize } from "./useDeepCompareMemoize-ZwmDBRDY.js";
|
|
69
69
|
import "./dist-CIYBwstr.js";
|
|
70
70
|
import "./dist-abid3KgM.js";
|
|
71
71
|
import "./dist-A2846XWO.js";
|
|
@@ -6997,33 +6997,33 @@ let __tla = Promise.all([
|
|
|
6997
6997
|
}), B = C({
|
|
6998
6998
|
height: 0,
|
|
6999
6999
|
width: 0
|
|
7000
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
7000
|
+
}), H = U(), W = U(), G = C(0), q = C(null), cW = C({
|
|
7001
7001
|
column: 0,
|
|
7002
7002
|
row: 0
|
|
7003
|
-
}),
|
|
7004
|
-
Y(x(b, $(
|
|
7005
|
-
D(
|
|
7006
|
-
}), Y(x(ut(b,
|
|
7007
|
-
D(
|
|
7003
|
+
}), lW = U(), Z = U(), uW = C(false), dW = C(0), fW = C(true), pW = C(false), mW = C(false);
|
|
7004
|
+
Y(x(b, $(dW), P(([e2, r2]) => !!r2)), () => {
|
|
7005
|
+
D(fW, false);
|
|
7006
|
+
}), Y(x(ut(b, fW, B, z, dW, pW), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7007
|
+
D(pW, true), Ue(1, () => {
|
|
7008
7008
|
D(H, e2);
|
|
7009
7009
|
}), Et(x(h), () => {
|
|
7010
7010
|
D(r, [
|
|
7011
7011
|
0,
|
|
7012
7012
|
0
|
|
7013
|
-
]), D(
|
|
7013
|
+
]), D(fW, true);
|
|
7014
7014
|
});
|
|
7015
|
-
}), F(x(
|
|
7016
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7017
|
-
D(
|
|
7015
|
+
}), F(x(Z, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(Z), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7016
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(cW, e2.gap), e2.scrollTop > 0 && (D(uW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7017
|
+
D(uW, false);
|
|
7018
7018
|
}), D(m, {
|
|
7019
7019
|
top: e2.scrollTop
|
|
7020
7020
|
})));
|
|
7021
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7021
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(cW, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7022
7022
|
gap: c2,
|
|
7023
7023
|
item: r2,
|
|
7024
7024
|
scrollTop: l2,
|
|
7025
7025
|
viewport: e2
|
|
7026
|
-
}))),
|
|
7026
|
+
}))), lW), F(x(ut(V(I), l, V(cW, Or), V(B, xe), V(z, xe), V(q), V(L), V(uW), V(fW), V(dW)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7027
7027
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7028
7028
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7029
7029
|
if (y2 === 0) {
|
|
@@ -7042,23 +7042,23 @@ let __tla = Promise.all([
|
|
|
7042
7042
|
offsetTop: j2,
|
|
7043
7043
|
top: j2
|
|
7044
7044
|
};
|
|
7045
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7045
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, cW), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7046
7046
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7047
7047
|
return [
|
|
7048
7048
|
d2,
|
|
7049
7049
|
u2
|
|
7050
7050
|
];
|
|
7051
7051
|
}), J(ce)), r);
|
|
7052
|
-
let
|
|
7053
|
-
F(x(h, $(
|
|
7054
|
-
let
|
|
7052
|
+
let hW = C(false);
|
|
7053
|
+
F(x(h, $(hW), k(([e2, r2]) => r2 || e2 !== 0)), hW);
|
|
7054
|
+
let gW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(hW), P(([[e2, r2], c2]) => {
|
|
7055
7055
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7056
7056
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7057
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7057
|
+
}), k(([[, e2]]) => e2 - 1), J())), _W = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), vW = bt(x(V(R), $(uW), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7058
7058
|
endIndex: e2[e2.length - 1].index,
|
|
7059
7059
|
startIndex: e2[0].index
|
|
7060
7060
|
})), J(An), Gt(0)));
|
|
7061
|
-
F(
|
|
7061
|
+
F(vW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, cW), k(([e2, r2, c2, l2, u2]) => {
|
|
7062
7062
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7063
7063
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7064
7064
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7067,7 +7067,7 @@ let __tla = Promise.all([
|
|
|
7067
7067
|
top: g2
|
|
7068
7068
|
};
|
|
7069
7069
|
})), m);
|
|
7070
|
-
let
|
|
7070
|
+
let yW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7071
7071
|
return F(x(j, k((e2) => ({
|
|
7072
7072
|
height: e2.visibleHeight,
|
|
7073
7073
|
width: e2.visibleWidth
|
|
@@ -7076,13 +7076,13 @@ let __tla = Promise.all([
|
|
|
7076
7076
|
data: q,
|
|
7077
7077
|
deviation: G,
|
|
7078
7078
|
footerHeight: u,
|
|
7079
|
-
gap:
|
|
7079
|
+
gap: cW,
|
|
7080
7080
|
headerHeight: d,
|
|
7081
7081
|
increaseViewportBy: e,
|
|
7082
7082
|
initialItemCount: L,
|
|
7083
7083
|
itemDimensions: B,
|
|
7084
7084
|
overscan: c,
|
|
7085
|
-
restoreStateFrom:
|
|
7085
|
+
restoreStateFrom: Z,
|
|
7086
7086
|
scrollBy: f,
|
|
7087
7087
|
scrollContainerState: p,
|
|
7088
7088
|
scrollHeight: W,
|
|
@@ -7098,16 +7098,16 @@ let __tla = Promise.all([
|
|
|
7098
7098
|
windowViewportRect: j,
|
|
7099
7099
|
...y,
|
|
7100
7100
|
gridState: R,
|
|
7101
|
-
horizontalDirection:
|
|
7102
|
-
initialTopMostItemIndex:
|
|
7103
|
-
totalListHeight:
|
|
7101
|
+
horizontalDirection: mW,
|
|
7102
|
+
initialTopMostItemIndex: dW,
|
|
7103
|
+
totalListHeight: yW,
|
|
7104
7104
|
...v,
|
|
7105
|
-
endReached:
|
|
7105
|
+
endReached: gW,
|
|
7106
7106
|
propsReady: S,
|
|
7107
|
-
rangeChanged:
|
|
7108
|
-
startReached:
|
|
7109
|
-
stateChanged:
|
|
7110
|
-
stateRestoreInProgress:
|
|
7107
|
+
rangeChanged: vW,
|
|
7108
|
+
startReached: _W,
|
|
7109
|
+
stateChanged: lW,
|
|
7110
|
+
stateRestoreInProgress: uW,
|
|
7111
7111
|
...M
|
|
7112
7112
|
};
|
|
7113
7113
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7385,22 +7385,22 @@ let __tla = Promise.all([
|
|
|
7385
7385
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7386
7386
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7387
7387
|
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7388
|
-
let
|
|
7388
|
+
let cW = q, lW;
|
|
7389
7389
|
if (r[13] !== G.bulkActions) {
|
|
7390
|
-
if (
|
|
7390
|
+
if (lW = G.bulkActions.map(_temp$26), lW.length > 0) {
|
|
7391
7391
|
let e2;
|
|
7392
7392
|
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7393
7393
|
"data-slot": "select-separator"
|
|
7394
|
-
}, "_bulk_separator"), r[15] = e2) : e2 = r[15],
|
|
7394
|
+
}, "_bulk_separator"), r[15] = e2) : e2 = r[15], lW.push(e2);
|
|
7395
7395
|
}
|
|
7396
|
-
r[13] = G.bulkActions, r[14] =
|
|
7397
|
-
} else
|
|
7398
|
-
let
|
|
7399
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7396
|
+
r[13] = G.bulkActions, r[14] = lW;
|
|
7397
|
+
} else lW = r[14];
|
|
7398
|
+
let Z;
|
|
7399
|
+
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, {
|
|
7400
7400
|
"data-slot": "select-separator"
|
|
7401
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7402
|
-
let
|
|
7403
|
-
r[19] !==
|
|
7401
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = Z) : Z = r[18];
|
|
7402
|
+
let uW = Z, dW;
|
|
7403
|
+
r[19] !== lW || r[20] !== G || r[21] !== uW || r[22] !== w || r[23] !== B || r[24] !== H ? (dW = () => {
|
|
7404
7404
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7405
7405
|
"data-slot": "select-list",
|
|
7406
7406
|
style: {
|
|
@@ -7412,8 +7412,8 @@ let __tla = Promise.all([
|
|
|
7412
7412
|
let r2 = G.visibleOptions[e3];
|
|
7413
7413
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7414
7414
|
children: [
|
|
7415
|
-
e3 === 0 &&
|
|
7416
|
-
|
|
7415
|
+
e3 === 0 && lW,
|
|
7416
|
+
uW(e3),
|
|
7417
7417
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7418
7418
|
option: r2,
|
|
7419
7419
|
checked: G.isChecked(r2.value),
|
|
@@ -7424,7 +7424,7 @@ let __tla = Promise.all([
|
|
|
7424
7424
|
}
|
|
7425
7425
|
});
|
|
7426
7426
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7427
|
-
let c2 =
|
|
7427
|
+
let c2 = uW(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7428
7428
|
option: e3,
|
|
7429
7429
|
checked: G.isChecked(e3.value),
|
|
7430
7430
|
renderOption: w
|
|
@@ -7438,13 +7438,13 @@ let __tla = Promise.all([
|
|
|
7438
7438
|
});
|
|
7439
7439
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7440
7440
|
children: [
|
|
7441
|
-
|
|
7441
|
+
lW,
|
|
7442
7442
|
e2
|
|
7443
7443
|
]
|
|
7444
7444
|
});
|
|
7445
|
-
}, r[19] =
|
|
7446
|
-
let
|
|
7447
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7445
|
+
}, r[19] = lW, r[20] = G, r[21] = uW, r[22] = w, r[23] = B, r[24] = H, r[25] = dW) : dW = r[25];
|
|
7446
|
+
let fW = dW, pW;
|
|
7447
|
+
r[26] !== G.labelOf || r[27] !== I ? (pW = (e2) => {
|
|
7448
7448
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7449
7449
|
e2
|
|
7450
7450
|
];
|
|
@@ -7455,46 +7455,46 @@ let __tla = Promise.all([
|
|
|
7455
7455
|
items: r2.map(G.labelOf),
|
|
7456
7456
|
max: 3
|
|
7457
7457
|
});
|
|
7458
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7459
|
-
let
|
|
7460
|
-
r[29] === G ?
|
|
7461
|
-
let
|
|
7462
|
-
r[31] !== b || r[32] !== R ? (
|
|
7458
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = pW) : pW = r[28];
|
|
7459
|
+
let mW = pW, hW = e["data-testid"], gW;
|
|
7460
|
+
r[29] === G ? gW = r[30] : (gW = (e2) => G.labelOf(e2), r[29] = G, r[30] = gW);
|
|
7461
|
+
let _W = M ? mW : void 0, vW;
|
|
7462
|
+
r[31] !== b || r[32] !== R ? (vW = cn({
|
|
7463
7463
|
"w-full": R
|
|
7464
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7465
|
-
let
|
|
7466
|
-
r[34] === z ?
|
|
7467
|
-
let
|
|
7468
|
-
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !==
|
|
7464
|
+
}, b), r[31] = b, r[32] = R, r[33] = vW) : vW = r[33];
|
|
7465
|
+
let yW = G.searchQuery, bW = G.setSearchQuery, xW = G.open, SW = G.setOpen, CW;
|
|
7466
|
+
r[34] === z ? CW = r[35] : (CW = renderSlot(z), r[34] = z, r[35] = CW);
|
|
7467
|
+
let wW;
|
|
7468
|
+
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !== hW || r[44] !== gW || r[45] !== _W || r[46] !== vW || r[47] !== CW ? (wW = {
|
|
7469
7469
|
"data-slot": "select-root",
|
|
7470
|
-
"data-testid":
|
|
7471
|
-
displayValue:
|
|
7472
|
-
renderValue:
|
|
7470
|
+
"data-testid": hW,
|
|
7471
|
+
displayValue: gW,
|
|
7472
|
+
renderValue: _W,
|
|
7473
7473
|
placeholder: I,
|
|
7474
|
-
className:
|
|
7474
|
+
className: vW,
|
|
7475
7475
|
shouldFilter: false,
|
|
7476
|
-
search:
|
|
7477
|
-
onSearchChange:
|
|
7478
|
-
open:
|
|
7479
|
-
onOpenChange:
|
|
7480
|
-
emptyState:
|
|
7476
|
+
search: yW,
|
|
7477
|
+
onSearchChange: bW,
|
|
7478
|
+
open: xW,
|
|
7479
|
+
onOpenChange: SW,
|
|
7480
|
+
emptyState: CW,
|
|
7481
7481
|
disabled: L,
|
|
7482
7482
|
id: S
|
|
7483
|
-
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] =
|
|
7484
|
-
let
|
|
7485
|
-
return r[49] !==
|
|
7486
|
-
...
|
|
7483
|
+
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] = hW, r[44] = gW, r[45] = _W, r[46] = vW, r[47] = CW, r[48] = wW) : wW = r[48];
|
|
7484
|
+
let TW = wW, EW;
|
|
7485
|
+
return r[49] !== TW || r[50] !== cW || r[51] !== d || r[52] !== fW || r[53] !== l ? (EW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7486
|
+
...TW,
|
|
7487
7487
|
multiple: true,
|
|
7488
7488
|
value: l,
|
|
7489
|
-
onValueChange:
|
|
7490
|
-
children:
|
|
7489
|
+
onValueChange: cW,
|
|
7490
|
+
children: fW()
|
|
7491
7491
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7492
|
-
...
|
|
7492
|
+
...TW,
|
|
7493
7493
|
multiple: false,
|
|
7494
7494
|
value: l,
|
|
7495
|
-
onValueChange:
|
|
7496
|
-
children:
|
|
7497
|
-
}), r[49] =
|
|
7495
|
+
onValueChange: cW,
|
|
7496
|
+
children: fW()
|
|
7497
|
+
}), r[49] = TW, r[50] = cW, r[51] = d, r[52] = fW, r[53] = l, r[54] = EW) : EW = r[54], EW;
|
|
7498
7498
|
}
|
|
7499
7499
|
function _temp$26(e) {
|
|
7500
7500
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -8576,7 +8576,7 @@ let __tla = Promise.all([
|
|
|
8576
8576
|
};
|
|
8577
8577
|
}
|
|
8578
8578
|
};
|
|
8579
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
8579
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-CO8WuXGb.js").then((e) => ({
|
|
8580
8580
|
default: e.Chatbot
|
|
8581
8581
|
}))), messageSchema = array(object({
|
|
8582
8582
|
id: string(),
|
|
@@ -8725,7 +8725,7 @@ let __tla = Promise.all([
|
|
|
8725
8725
|
"time",
|
|
8726
8726
|
"unknown"
|
|
8727
8727
|
];
|
|
8728
|
-
var import_compiler_runtime$76 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-
|
|
8728
|
+
var import_compiler_runtime$76 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-qpmKyAPn.js").then(async (m) => {
|
|
8729
8729
|
await m.__tla;
|
|
8730
8730
|
return m;
|
|
8731
8731
|
}));
|
|
@@ -9691,7 +9691,7 @@ let __tla = Promise.all([
|
|
|
9691
9691
|
let m2 = get(l, e2);
|
|
9692
9692
|
if (m2) {
|
|
9693
9693
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
9694
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
9694
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : cW(e2, l2), f.mount && w();
|
|
9695
9695
|
}
|
|
9696
9696
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
9697
9697
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -9764,14 +9764,14 @@ let __tla = Promise.all([
|
|
|
9764
9764
|
}, H = () => {
|
|
9765
9765
|
for (let e2 of p.unMount) {
|
|
9766
9766
|
let r2 = get(l, e2);
|
|
9767
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
9767
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && vW(e2);
|
|
9768
9768
|
}
|
|
9769
9769
|
p.unMount = /* @__PURE__ */ new Set();
|
|
9770
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
9770
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(pW(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
9771
9771
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
9772
9772
|
[e2]: r2
|
|
9773
9773
|
} : r2
|
|
9774
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
9774
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), cW = (e2, r2, c2 = {}) => {
|
|
9775
9775
|
let u2 = get(l, e2), f2 = r2;
|
|
9776
9776
|
if (u2) {
|
|
9777
9777
|
let c3 = u2._f;
|
|
@@ -9784,13 +9784,13 @@ let __tla = Promise.all([
|
|
|
9784
9784
|
}
|
|
9785
9785
|
})));
|
|
9786
9786
|
}
|
|
9787
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
9788
|
-
},
|
|
9787
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && fW(e2);
|
|
9788
|
+
}, lW = (e2, r2, c2) => {
|
|
9789
9789
|
for (let u2 in r2) {
|
|
9790
9790
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
9791
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
9791
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? lW(f2, d2, c2) : cW(f2, d2, c2);
|
|
9792
9792
|
}
|
|
9793
|
-
},
|
|
9793
|
+
}, Z = (e2, r2, m2 = {}) => {
|
|
9794
9794
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
9795
9795
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
9796
9796
|
name: e2,
|
|
@@ -9801,7 +9801,7 @@ let __tla = Promise.all([
|
|
|
9801
9801
|
name: e2,
|
|
9802
9802
|
dirtyFields: getDirtyFields(u, d),
|
|
9803
9803
|
isDirty: W(e2, y2)
|
|
9804
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
9804
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? lW(e2, y2, m2) : cW(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
9805
9805
|
...c
|
|
9806
9806
|
}), _.values.next({
|
|
9807
9807
|
name: f.mount ? e2 : void 0,
|
|
@@ -9809,7 +9809,7 @@ let __tla = Promise.all([
|
|
|
9809
9809
|
...d
|
|
9810
9810
|
}
|
|
9811
9811
|
});
|
|
9812
|
-
},
|
|
9812
|
+
}, uW = async (e2) => {
|
|
9813
9813
|
f.mount = true;
|
|
9814
9814
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
9815
9815
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -9843,11 +9843,11 @@ let __tla = Promise.all([
|
|
|
9843
9843
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
9844
9844
|
h2
|
|
9845
9845
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
9846
|
-
S2 && (E2._f.deps &&
|
|
9846
|
+
S2 && (E2._f.deps && fW(E2._f.deps), L(h2, f2, u3, G2));
|
|
9847
9847
|
}
|
|
9848
|
-
},
|
|
9848
|
+
}, dW = (e2, r2) => {
|
|
9849
9849
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
9850
|
-
},
|
|
9850
|
+
}, fW = async (e2, u2 = {}) => {
|
|
9851
9851
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
9852
9852
|
if (r.resolver) {
|
|
9853
9853
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -9866,23 +9866,23 @@ let __tla = Promise.all([
|
|
|
9866
9866
|
isValid: d2
|
|
9867
9867
|
} : {},
|
|
9868
9868
|
errors: c.errors
|
|
9869
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
9870
|
-
},
|
|
9869
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, dW, e2 ? m2 : p.mount), f2;
|
|
9870
|
+
}, pW = (e2) => {
|
|
9871
9871
|
let r2 = {
|
|
9872
9872
|
...f.mount ? d : u
|
|
9873
9873
|
};
|
|
9874
9874
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
9875
|
-
},
|
|
9875
|
+
}, mW = (e2, r2) => ({
|
|
9876
9876
|
invalid: !!get((r2 || c).errors, e2),
|
|
9877
9877
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
9878
9878
|
error: get((r2 || c).errors, e2),
|
|
9879
9879
|
isValidating: !!get(c.validatingFields, e2),
|
|
9880
9880
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
9881
|
-
}),
|
|
9881
|
+
}), hW = (e2) => {
|
|
9882
9882
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
9883
9883
|
errors: e2 ? c.errors : {}
|
|
9884
9884
|
});
|
|
9885
|
-
},
|
|
9885
|
+
}, gW = (e2, r2, u2) => {
|
|
9886
9886
|
let d2 = (get(l, e2, {
|
|
9887
9887
|
_f: {}
|
|
9888
9888
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -9895,9 +9895,9 @@ let __tla = Promise.all([
|
|
|
9895
9895
|
errors: c.errors,
|
|
9896
9896
|
isValid: false
|
|
9897
9897
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
9898
|
-
},
|
|
9898
|
+
}, _W = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
9899
9899
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
9900
|
-
}) : G(e2, r2, true),
|
|
9900
|
+
}) : G(e2, r2, true), vW = (e2, f2 = {}) => {
|
|
9901
9901
|
for (let m2 of e2 ? convertToArrayPayload(e2) : p.mount) p.mount.delete(m2), p.array.delete(m2), f2.keepValue || (unset(l, m2), unset(d, m2)), !f2.keepError && unset(c.errors, m2), !f2.keepDirty && unset(c.dirtyFields, m2), !f2.keepTouched && unset(c.touchedFields, m2), !f2.keepIsValidating && unset(c.validatingFields, m2), !r.shouldUnregister && !f2.keepDefaultValue && unset(u, m2);
|
|
9902
9902
|
_.values.next({
|
|
9903
9903
|
values: {
|
|
@@ -9909,9 +9909,9 @@ let __tla = Promise.all([
|
|
|
9909
9909
|
isDirty: W()
|
|
9910
9910
|
} : {}
|
|
9911
9911
|
}), !f2.keepIsValid && w();
|
|
9912
|
-
},
|
|
9912
|
+
}, yW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
9913
9913
|
(isBoolean(e2) && f.mount || e2 || p.disabled.has(r2)) && (e2 ? p.disabled.add(r2) : p.disabled.delete(r2), I(r2, getFieldValue(c2 ? c2._f : get(l2, r2)._f), false, false, true));
|
|
9914
|
-
},
|
|
9914
|
+
}, bW = (e2, c2 = {}) => {
|
|
9915
9915
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
9916
9916
|
return set(l, e2, {
|
|
9917
9917
|
...d2 || {},
|
|
@@ -9925,7 +9925,7 @@ let __tla = Promise.all([
|
|
|
9925
9925
|
mount: true,
|
|
9926
9926
|
...c2
|
|
9927
9927
|
}
|
|
9928
|
-
}), p.mount.add(e2), d2 ?
|
|
9928
|
+
}), p.mount.add(e2), d2 ? yW({
|
|
9929
9929
|
field: d2,
|
|
9930
9930
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
9931
9931
|
name: e2
|
|
@@ -9942,11 +9942,11 @@ let __tla = Promise.all([
|
|
|
9942
9942
|
pattern: getRuleValue(c2.pattern)
|
|
9943
9943
|
} : {},
|
|
9944
9944
|
name: e2,
|
|
9945
|
-
onChange:
|
|
9946
|
-
onBlur:
|
|
9945
|
+
onChange: uW,
|
|
9946
|
+
onBlur: uW,
|
|
9947
9947
|
ref: (m3) => {
|
|
9948
9948
|
if (m3) {
|
|
9949
|
-
|
|
9949
|
+
bW(e2, c2), d2 = get(l, e2);
|
|
9950
9950
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
9951
9951
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
9952
9952
|
set(l, e2, {
|
|
@@ -9972,7 +9972,7 @@ let __tla = Promise.all([
|
|
|
9972
9972
|
} else d2 = get(l, e2, {}), d2._f && (d2._f.mount = false), (r.shouldUnregister || c2.shouldUnregister) && !(isNameInFieldArray(p.array, e2) && f.action) && p.unMount.add(e2);
|
|
9973
9973
|
}
|
|
9974
9974
|
};
|
|
9975
|
-
},
|
|
9975
|
+
}, xW = () => r.shouldFocusError && iterateFieldsByAction(l, dW, p.mount), SW = (e2) => {
|
|
9976
9976
|
isBoolean(e2) && (_.state.next({
|
|
9977
9977
|
disabled: e2
|
|
9978
9978
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -9981,7 +9981,7 @@ let __tla = Promise.all([
|
|
|
9981
9981
|
r3.disabled = u2._f.disabled || e2;
|
|
9982
9982
|
}));
|
|
9983
9983
|
}, 0, false));
|
|
9984
|
-
},
|
|
9984
|
+
}, CW = (e2, u2) => async (f2) => {
|
|
9985
9985
|
let m2;
|
|
9986
9986
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
9987
9987
|
let h2 = cloneObject(d);
|
|
@@ -10003,7 +10003,7 @@ let __tla = Promise.all([
|
|
|
10003
10003
|
}
|
|
10004
10004
|
} else u2 && await u2({
|
|
10005
10005
|
...c.errors
|
|
10006
|
-
}, f2),
|
|
10006
|
+
}, f2), xW(), setTimeout(xW);
|
|
10007
10007
|
if (_.state.next({
|
|
10008
10008
|
isSubmitted: true,
|
|
10009
10009
|
isSubmitting: false,
|
|
@@ -10011,11 +10011,11 @@ let __tla = Promise.all([
|
|
|
10011
10011
|
submitCount: c.submitCount + 1,
|
|
10012
10012
|
errors: c.errors
|
|
10013
10013
|
}), m2) throw m2;
|
|
10014
|
-
},
|
|
10015
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10014
|
+
}, wW = (e2, r2 = {}) => {
|
|
10015
|
+
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({
|
|
10016
10016
|
...c
|
|
10017
10017
|
}));
|
|
10018
|
-
},
|
|
10018
|
+
}, TW = (e2, m2 = {}) => {
|
|
10019
10019
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10020
10020
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10021
10021
|
if (m2.keepDirtyValues) {
|
|
@@ -10023,7 +10023,7 @@ let __tla = Promise.all([
|
|
|
10023
10023
|
...p.mount,
|
|
10024
10024
|
...Object.keys(getDirtyFields(u, d))
|
|
10025
10025
|
]);
|
|
10026
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10026
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : Z(r2, get(b2, r2));
|
|
10027
10027
|
} else {
|
|
10028
10028
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10029
10029
|
let r2 = get(l, e3);
|
|
@@ -10068,25 +10068,25 @@ let __tla = Promise.all([
|
|
|
10068
10068
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10069
10069
|
isSubmitting: false
|
|
10070
10070
|
});
|
|
10071
|
-
},
|
|
10071
|
+
}, EW = (e2, r2) => TW(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10072
10072
|
return {
|
|
10073
10073
|
control: {
|
|
10074
|
-
register:
|
|
10075
|
-
unregister:
|
|
10076
|
-
getFieldState:
|
|
10077
|
-
handleSubmit:
|
|
10078
|
-
setError:
|
|
10074
|
+
register: bW,
|
|
10075
|
+
unregister: vW,
|
|
10076
|
+
getFieldState: mW,
|
|
10077
|
+
handleSubmit: CW,
|
|
10078
|
+
setError: gW,
|
|
10079
10079
|
_executeSchema: R,
|
|
10080
10080
|
_getWatch: G,
|
|
10081
10081
|
_getDirty: W,
|
|
10082
10082
|
_updateValid: w,
|
|
10083
10083
|
_removeUnmounted: H,
|
|
10084
10084
|
_updateFieldArray: E,
|
|
10085
|
-
_updateDisabledField:
|
|
10085
|
+
_updateDisabledField: yW,
|
|
10086
10086
|
_getFieldArray: q,
|
|
10087
|
-
_reset:
|
|
10087
|
+
_reset: TW,
|
|
10088
10088
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10089
|
-
|
|
10089
|
+
EW(e2, r.resetOptions), _.state.next({
|
|
10090
10090
|
isLoading: false
|
|
10091
10091
|
});
|
|
10092
10092
|
}),
|
|
@@ -10096,7 +10096,7 @@ let __tla = Promise.all([
|
|
|
10096
10096
|
...e2
|
|
10097
10097
|
};
|
|
10098
10098
|
},
|
|
10099
|
-
_disableForm:
|
|
10099
|
+
_disableForm: SW,
|
|
10100
10100
|
_subjects: _,
|
|
10101
10101
|
_proxyFormState: g,
|
|
10102
10102
|
_setErrors: j,
|
|
@@ -10137,17 +10137,17 @@ let __tla = Promise.all([
|
|
|
10137
10137
|
};
|
|
10138
10138
|
}
|
|
10139
10139
|
},
|
|
10140
|
-
trigger:
|
|
10141
|
-
register:
|
|
10142
|
-
handleSubmit:
|
|
10143
|
-
watch:
|
|
10144
|
-
setValue:
|
|
10145
|
-
getValues:
|
|
10146
|
-
reset:
|
|
10147
|
-
resetField:
|
|
10148
|
-
clearErrors:
|
|
10149
|
-
unregister:
|
|
10150
|
-
setError:
|
|
10140
|
+
trigger: fW,
|
|
10141
|
+
register: bW,
|
|
10142
|
+
handleSubmit: CW,
|
|
10143
|
+
watch: _W,
|
|
10144
|
+
setValue: Z,
|
|
10145
|
+
getValues: pW,
|
|
10146
|
+
reset: EW,
|
|
10147
|
+
resetField: wW,
|
|
10148
|
+
clearErrors: hW,
|
|
10149
|
+
unregister: vW,
|
|
10150
|
+
setError: gW,
|
|
10151
10151
|
setFocus: (e2, r2 = {}) => {
|
|
10152
10152
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10153
10153
|
if (u2) {
|
|
@@ -10155,7 +10155,7 @@ let __tla = Promise.all([
|
|
|
10155
10155
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10156
10156
|
}
|
|
10157
10157
|
},
|
|
10158
|
-
getFieldState:
|
|
10158
|
+
getFieldState: mW
|
|
10159
10159
|
};
|
|
10160
10160
|
}
|
|
10161
10161
|
function useForm(e = {}) {
|
|
@@ -10882,9 +10882,22 @@ ${c}
|
|
|
10882
10882
|
], sqlExtensions = [
|
|
10883
10883
|
sql(),
|
|
10884
10884
|
EditorView.lineWrapping
|
|
10885
|
+
], markdownExtensions = [
|
|
10886
|
+
markdown(),
|
|
10887
|
+
EditorView.lineWrapping
|
|
10885
10888
|
];
|
|
10889
|
+
function readonlyCodeExtensions(e) {
|
|
10890
|
+
switch (e) {
|
|
10891
|
+
case "sql":
|
|
10892
|
+
return sqlExtensions;
|
|
10893
|
+
case "markdown":
|
|
10894
|
+
return markdownExtensions;
|
|
10895
|
+
default:
|
|
10896
|
+
return pythonExtensions;
|
|
10897
|
+
}
|
|
10898
|
+
}
|
|
10886
10899
|
const ReadonlyCode = (0, import_react.memo)((e) => {
|
|
10887
|
-
let r = (0, import_compiler_runtime$70.c)(
|
|
10900
|
+
let r = (0, import_compiler_runtime$70.c)(43), { theme: c } = useTheme(), l, u, d, f, m, h, g, _;
|
|
10888
10901
|
r[0] === e ? (l = r[1], u = r[2], d = r[3], f = r[4], m = r[5], h = r[6], g = r[7], _ = r[8]) : ({ code: u, className: l, initiallyHideCode: d, showHideCode: h, showCopyCode: g, insertNewCell: f, language: _, ...m } = e, r[0] = e, r[1] = l, r[2] = u, r[3] = d, r[4] = f, r[5] = m, r[6] = h, r[7] = g, r[8] = _);
|
|
10889
10902
|
let v = h === void 0 ? true : h, y = g === void 0 ? true : g, b = _ === void 0 ? "python" : _, [S, w] = (0, import_react.useState)(d), T;
|
|
10890
10903
|
r[9] === l ? T = r[10] : (T = cn("relative hover-actions-parent w-full overflow-hidden", l), r[9] = l, r[10] = T);
|
|
@@ -10916,8 +10929,10 @@ ${c}
|
|
|
10916
10929
|
}), r[23] = O, r[24] = j, r[25] = M, r[26] = I) : I = r[26];
|
|
10917
10930
|
let L = S && "opacity-20 h-8 overflow-hidden", R;
|
|
10918
10931
|
r[27] === L ? R = r[28] : (R = cn("cm", L), r[27] = L, r[28] = R);
|
|
10919
|
-
let z = c === "dark" ? "dark" : "light", B = !S, H
|
|
10920
|
-
r[29]
|
|
10932
|
+
let z = c === "dark" ? "dark" : "light", B = !S, H;
|
|
10933
|
+
r[29] === b ? H = r[30] : (H = readonlyCodeExtensions(b), r[29] = b, r[30] = H);
|
|
10934
|
+
let W;
|
|
10935
|
+
r[31] !== u || r[32] !== m || r[33] !== R || r[34] !== z || r[35] !== B || r[36] !== H ? (W = (0, import_jsx_runtime.jsx)(esm_default, {
|
|
10921
10936
|
...m,
|
|
10922
10937
|
className: R,
|
|
10923
10938
|
theme: z,
|
|
@@ -10926,16 +10941,16 @@ ${c}
|
|
|
10926
10941
|
extensions: H,
|
|
10927
10942
|
value: u,
|
|
10928
10943
|
readOnly: true
|
|
10929
|
-
}), r[
|
|
10944
|
+
}), r[31] = u, r[32] = m, r[33] = R, r[34] = z, r[35] = B, r[36] = H, r[37] = W) : W = r[37];
|
|
10930
10945
|
let G;
|
|
10931
|
-
return r[
|
|
10946
|
+
return r[38] !== W || r[39] !== T || r[40] !== E || r[41] !== I ? (G = (0, import_jsx_runtime.jsxs)("div", {
|
|
10932
10947
|
className: T,
|
|
10933
10948
|
children: [
|
|
10934
10949
|
E,
|
|
10935
10950
|
I,
|
|
10936
10951
|
W
|
|
10937
10952
|
]
|
|
10938
|
-
}), r[
|
|
10953
|
+
}), r[38] = W, r[39] = T, r[40] = E, r[41] = I, r[42] = G) : G = r[42], G;
|
|
10939
10954
|
});
|
|
10940
10955
|
ReadonlyCode.displayName = "ReadonlyCode";
|
|
10941
10956
|
var CopyButton = (e) => {
|
|
@@ -13201,7 +13216,7 @@ ${c}
|
|
|
13201
13216
|
}), r[8] = h, r[9] = _), _;
|
|
13202
13217
|
};
|
|
13203
13218
|
function ColumnExplorerPanel({ previewColumn: e, fieldTypes: r, totalRows: c, totalColumns: l, tableId: u, table: d }) {
|
|
13204
|
-
let [f, p] = (0, import_react.useState)(""), { locale: m } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), h = r == null ? void 0 : r.filter(([e2]) => !(e2 === "__select__" || e2 === "_marimo_row_id" || e2.startsWith("__m_column__"))), g = h == null ? void 0 : h.filter(([e2]) => smartMatch(f, e2)), { totalColumns: _, hiddenColumns: v } = getColumnCountForDisplay(d, l), {
|
|
13219
|
+
let [f, p] = (0, import_react.useState)(""), { locale: m } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), h = r == null ? void 0 : r.filter(([e2]) => !(e2 === "__select__" || e2 === "_marimo_row_id" || e2.startsWith("__m_column__"))), g = h == null ? void 0 : h.filter(([e2]) => smartMatch(f, e2)), { totalColumns: _, hiddenColumns: v } = getColumnCountForDisplay(d, l), { visible: y } = getUserColumnVisibilityCounts(d), { rowsAndColumns: b, hiddenSuffix: S } = prettifyRowColumnCount({
|
|
13205
13220
|
numRows: c,
|
|
13206
13221
|
totalColumns: _,
|
|
13207
13222
|
locale: m,
|
|
@@ -13213,22 +13228,55 @@ ${c}
|
|
|
13213
13228
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
13214
13229
|
className: "text-xs font-semibold ml-2 flex items-center gap-1",
|
|
13215
13230
|
children: [
|
|
13216
|
-
|
|
13231
|
+
b,
|
|
13217
13232
|
v > 0 && (0, import_jsx_runtime.jsx)("span", {
|
|
13218
|
-
children:
|
|
13233
|
+
children: S
|
|
13219
13234
|
}),
|
|
13220
13235
|
(0, import_jsx_runtime.jsx)(CopyClipboardIcon, {
|
|
13221
13236
|
tooltip: "Copy column names",
|
|
13222
13237
|
value: (h == null ? void 0 : h.map(([e2]) => e2).join(",\n")) || "",
|
|
13223
13238
|
className: "h-3 w-3"
|
|
13224
13239
|
}),
|
|
13225
|
-
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
|
|
13229
|
-
|
|
13230
|
-
|
|
13231
|
-
|
|
13240
|
+
(0, import_jsx_runtime.jsxs)("div", {
|
|
13241
|
+
className: "ml-auto flex items-center gap-1",
|
|
13242
|
+
children: [
|
|
13243
|
+
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
13244
|
+
content: "Show all columns",
|
|
13245
|
+
delayDuration: 400,
|
|
13246
|
+
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
13247
|
+
type: "button",
|
|
13248
|
+
variant: "ghost",
|
|
13249
|
+
size: "xs",
|
|
13250
|
+
className: "gap-1",
|
|
13251
|
+
disabled: v === 0,
|
|
13252
|
+
onClick: () => d.toggleAllColumnsVisible(true),
|
|
13253
|
+
children: [
|
|
13254
|
+
(0, import_jsx_runtime.jsx)(Eye, {
|
|
13255
|
+
className: "w-3 h-3"
|
|
13256
|
+
}),
|
|
13257
|
+
"Show all"
|
|
13258
|
+
]
|
|
13259
|
+
})
|
|
13260
|
+
}),
|
|
13261
|
+
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
13262
|
+
content: "Hide all columns",
|
|
13263
|
+
delayDuration: 400,
|
|
13264
|
+
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
13265
|
+
type: "button",
|
|
13266
|
+
variant: "ghost",
|
|
13267
|
+
size: "xs",
|
|
13268
|
+
className: "gap-1",
|
|
13269
|
+
disabled: y === 0,
|
|
13270
|
+
onClick: () => d.toggleAllColumnsVisible(false),
|
|
13271
|
+
children: [
|
|
13272
|
+
(0, import_jsx_runtime.jsx)(EyeOff, {
|
|
13273
|
+
className: "w-3 h-3"
|
|
13274
|
+
}),
|
|
13275
|
+
"Hide all"
|
|
13276
|
+
]
|
|
13277
|
+
})
|
|
13278
|
+
})
|
|
13279
|
+
]
|
|
13232
13280
|
})
|
|
13233
13281
|
]
|
|
13234
13282
|
}),
|
|
@@ -14406,21 +14454,21 @@ ${c}
|
|
|
14406
14454
|
_.pageSize,
|
|
14407
14455
|
_.pageIndex
|
|
14408
14456
|
], 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];
|
|
14409
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
14410
|
-
r[48] !==
|
|
14411
|
-
let
|
|
14412
|
-
r[51] !==
|
|
14413
|
-
|
|
14414
|
-
|
|
14415
|
-
|
|
14416
|
-
|
|
14417
|
-
|
|
14457
|
+
let { data: W, error: G, isPending: q, isFetching: cW } = useAsyncData(z, H), lW = useAtomValue(downloadSizeLimitAtom), Z;
|
|
14458
|
+
r[48] !== lW || r[49] !== e ? (Z = async () => !lW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = lW, r[49] = e, r[50] = Z) : Z = r[50];
|
|
14459
|
+
let uW = e.showDownload, dW = e.get_size_bytes, fW = e.lazy, pW = e.totalRows, mW = useDeepCompareMemoize(w), hW = useDeepCompareMemoize(m), gW;
|
|
14460
|
+
r[51] !== lW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== mW || r[58] !== hW ? (gW = [
|
|
14461
|
+
lW,
|
|
14462
|
+
uW,
|
|
14463
|
+
dW,
|
|
14464
|
+
fW,
|
|
14465
|
+
pW,
|
|
14418
14466
|
y,
|
|
14419
|
-
|
|
14420
|
-
|
|
14421
|
-
], r[51] =
|
|
14422
|
-
let { data:
|
|
14423
|
-
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (
|
|
14467
|
+
mW,
|
|
14468
|
+
hW
|
|
14469
|
+
], r[51] = lW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = mW, r[58] = hW, r[59] = gW) : gW = r[59];
|
|
14470
|
+
let { data: _W, isPending: vW } = useAsyncData(Z, gW), yW = _W ?? null, bW = !!lW && e.showDownload && vW, xW;
|
|
14471
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (xW = async (e2) => ({
|
|
14424
14472
|
rows: await loadTableData((await u({
|
|
14425
14473
|
page_number: e2,
|
|
14426
14474
|
page_size: 1,
|
|
@@ -14429,17 +14477,17 @@ ${c}
|
|
|
14429
14477
|
filters: filtersToFilterGroup(w),
|
|
14430
14478
|
max_columns: null
|
|
14431
14479
|
})).data)
|
|
14432
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
14433
|
-
let
|
|
14434
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
14480
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = xW) : xW = r[64];
|
|
14481
|
+
let SW = xW, CW;
|
|
14482
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (CW = () => {
|
|
14435
14483
|
v(_temp4$4);
|
|
14436
|
-
}, r[65] =
|
|
14437
|
-
let
|
|
14438
|
-
r[66] ===
|
|
14439
|
-
|
|
14440
|
-
], r[66] =
|
|
14441
|
-
let
|
|
14442
|
-
r[68] === e ?
|
|
14484
|
+
}, r[65] = CW) : CW = r[65];
|
|
14485
|
+
let wW = W == null ? void 0 : W.totalRows, TW;
|
|
14486
|
+
r[66] === wW ? TW = r[67] : (TW = [
|
|
14487
|
+
wW
|
|
14488
|
+
], r[66] = wW, r[67] = TW), (0, import_react.useEffect)(CW, TW);
|
|
14489
|
+
let EW;
|
|
14490
|
+
r[68] === e ? EW = r[69] : (EW = async () => {
|
|
14443
14491
|
let r2 = isStaticNotebook();
|
|
14444
14492
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
14445
14493
|
data: null,
|
|
@@ -14448,22 +14496,22 @@ ${c}
|
|
|
14448
14496
|
value_counts: {},
|
|
14449
14497
|
show_charts: false
|
|
14450
14498
|
} : e.get_column_summaries({});
|
|
14451
|
-
}, r[68] = e, r[69] =
|
|
14452
|
-
let
|
|
14453
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
14499
|
+
}, r[68] = e, r[69] = EW);
|
|
14500
|
+
let DW;
|
|
14501
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (DW = [
|
|
14454
14502
|
e.get_column_summaries,
|
|
14455
14503
|
e.showColumnSummaries,
|
|
14456
14504
|
w,
|
|
14457
14505
|
y,
|
|
14458
14506
|
e.totalRows,
|
|
14459
14507
|
e.data
|
|
14460
|
-
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] =
|
|
14461
|
-
let { data:
|
|
14462
|
-
if (r[77] ===
|
|
14463
|
-
|
|
14464
|
-
},
|
|
14465
|
-
|
|
14466
|
-
], r[77] =
|
|
14508
|
+
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] = DW) : DW = r[76];
|
|
14509
|
+
let { data: OW, error: kW } = useAsyncData(EW, DW), AW, jW;
|
|
14510
|
+
if (r[77] === kW ? (AW = r[78], jW = r[79]) : (AW = () => {
|
|
14511
|
+
kW && Logger.error(kW);
|
|
14512
|
+
}, jW = [
|
|
14513
|
+
kW
|
|
14514
|
+
], r[77] = kW, r[78] = AW, r[79] = jW), (0, import_react.useEffect)(AW, jW), q) {
|
|
14467
14515
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14468
14516
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14469
14517
|
milliseconds: 200,
|
|
@@ -14472,7 +14520,7 @@ ${c}
|
|
|
14472
14520
|
})
|
|
14473
14521
|
}), r[80] = c2, r[81] = l2), l2;
|
|
14474
14522
|
}
|
|
14475
|
-
let
|
|
14523
|
+
let MW = null;
|
|
14476
14524
|
if (G) {
|
|
14477
14525
|
Logger.error(G);
|
|
14478
14526
|
let e2;
|
|
@@ -14488,61 +14536,61 @@ ${c}
|
|
|
14488
14536
|
children: G.message || "An unknown error occurred"
|
|
14489
14537
|
})
|
|
14490
14538
|
]
|
|
14491
|
-
}), r[82] = G, r[83] = e2),
|
|
14539
|
+
}), r[82] = G, r[83] = e2), MW = e2;
|
|
14492
14540
|
}
|
|
14493
|
-
let
|
|
14494
|
-
r[84] === O ?
|
|
14541
|
+
let NW;
|
|
14542
|
+
r[84] === O ? NW = r[85] : (NW = () => {
|
|
14495
14543
|
j(!O);
|
|
14496
|
-
}, r[84] = O, r[85] =
|
|
14497
|
-
let
|
|
14498
|
-
r[86] !== l || r[87] !==
|
|
14544
|
+
}, r[84] = O, r[85] = NW);
|
|
14545
|
+
let PW = NW, FW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, IW = W == null ? void 0 : W.rawRows, LW = cW && !q, RW = (W == null ? void 0 : W.totalRows) ?? e.totalRows, zW = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, BW = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, VW;
|
|
14546
|
+
r[86] !== l || r[87] !== OW || r[88] !== O || r[89] !== w || r[90] !== SW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== yW || r[95] !== bW || r[96] !== m || r[97] !== FW || r[98] !== IW || r[99] !== LW || r[100] !== RW || r[101] !== zW || r[102] !== BW || r[103] !== PW ? (VW = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
14499
14547
|
...e,
|
|
14500
|
-
data:
|
|
14501
|
-
rawData:
|
|
14502
|
-
columnSummaries:
|
|
14548
|
+
data: FW,
|
|
14549
|
+
rawData: IW,
|
|
14550
|
+
columnSummaries: OW,
|
|
14503
14551
|
sorting: m,
|
|
14504
14552
|
setSorting: h,
|
|
14505
14553
|
searchQuery: y,
|
|
14506
14554
|
setSearchQuery: b,
|
|
14507
14555
|
filters: w,
|
|
14508
14556
|
setFilters: T,
|
|
14509
|
-
reloading:
|
|
14510
|
-
totalRows:
|
|
14511
|
-
sizeBytes:
|
|
14512
|
-
sizeBytesIsLoading:
|
|
14557
|
+
reloading: LW,
|
|
14558
|
+
totalRows: RW,
|
|
14559
|
+
sizeBytes: yW,
|
|
14560
|
+
sizeBytesIsLoading: bW,
|
|
14513
14561
|
paginationState: _,
|
|
14514
14562
|
setPaginationState: v,
|
|
14515
|
-
cellStyles:
|
|
14516
|
-
cellHoverTexts:
|
|
14517
|
-
toggleDisplayHeader:
|
|
14563
|
+
cellStyles: zW,
|
|
14564
|
+
cellHoverTexts: BW,
|
|
14565
|
+
toggleDisplayHeader: PW,
|
|
14518
14566
|
isChartBuilderOpen: O,
|
|
14519
|
-
getRow:
|
|
14567
|
+
getRow: SW,
|
|
14520
14568
|
cellId: l,
|
|
14521
14569
|
maxHeight: e.maxHeight
|
|
14522
|
-
}), r[86] = l, r[87] =
|
|
14523
|
-
let
|
|
14524
|
-
r[105] !== l || r[106] !==
|
|
14570
|
+
}), r[86] = l, r[87] = OW, r[88] = O, r[89] = w, r[90] = SW, r[91] = _, r[92] = e, r[93] = y, r[94] = yW, r[95] = bW, r[96] = m, r[97] = FW, r[98] = IW, r[99] = LW, r[100] = RW, r[101] = zW, r[102] = BW, r[103] = PW, r[104] = VW) : VW = r[104];
|
|
14571
|
+
let HW = VW, UW;
|
|
14572
|
+
r[105] !== l || r[106] !== HW || r[107] !== (W == null ? void 0 : W.rows) || r[108] !== O || r[109] !== e.fieldTypes || r[110] !== e.get_data_url || r[111] !== e.showChartBuilder || r[112] !== e.totalColumns || r[113] !== e.totalRows ? (UW = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
14525
14573
|
displayHeader: O,
|
|
14526
14574
|
onCloseChartBuilder: () => j(false),
|
|
14527
14575
|
data: (W == null ? void 0 : W.rows) || [],
|
|
14528
14576
|
columns: e.totalColumns,
|
|
14529
14577
|
totalRows: e.totalRows,
|
|
14530
|
-
dataTable:
|
|
14578
|
+
dataTable: HW,
|
|
14531
14579
|
getDataUrl: e.get_data_url,
|
|
14532
14580
|
fieldTypes: e.fieldTypes,
|
|
14533
14581
|
cellId: l
|
|
14534
|
-
}) :
|
|
14535
|
-
let
|
|
14536
|
-
return r[115] !==
|
|
14582
|
+
}) : HW, r[105] = l, r[106] = HW, r[107] = W == null ? void 0 : W.rows, r[108] = O, r[109] = e.fieldTypes, r[110] = e.get_data_url, r[111] = e.showChartBuilder, r[112] = e.totalColumns, r[113] = e.totalRows, r[114] = UW) : UW = r[114];
|
|
14583
|
+
let WW;
|
|
14584
|
+
return r[115] !== MW || r[116] !== UW ? (WW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14537
14585
|
children: [
|
|
14538
|
-
|
|
14539
|
-
|
|
14586
|
+
MW,
|
|
14587
|
+
UW
|
|
14540
14588
|
]
|
|
14541
|
-
}), r[115] =
|
|
14589
|
+
}), r[115] = MW, r[116] = UW, r[117] = WW) : WW = r[117], WW;
|
|
14542
14590
|
});
|
|
14543
14591
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
14544
|
-
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:
|
|
14545
|
-
let
|
|
14592
|
+
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: cW, setFilters: lW, reloading: Z, freezeColumnsLeft: uW, freezeColumnsRight: dW, hiddenColumns: fW, textJustifyColumns: pW, wrappedColumns: mW, columnWidths: hW, headerTooltip: gW, totalColumns: _W, get_row_ids: vW, cellStyles: yW, hoverTemplate: bW, cellHoverTexts: xW, toggleDisplayHeader: SW, isChartBuilderOpen: CW, calculate_top_k_rows: wW, preview_column: TW, getRow: EW, cellId: DW, maxHeight: OW }) => {
|
|
14593
|
+
let kW = (0, import_react.useId)(), { locale: AW } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [jW, MW] = (0, import_react.useState)(0), { isPanelOpen: NW, isAnyPanelOpen: PW, togglePanel: FW, panelType: IW, setPanelType: LW } = usePanelOwnership(kW, DW), RW = isStaticNotebook(), zW = (0, import_react.useMemo)(() => {
|
|
14546
14594
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
14547
14595
|
let e2 = toFieldTypes(O);
|
|
14548
14596
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -14551,13 +14599,13 @@ ${c}
|
|
|
14551
14599
|
}, [
|
|
14552
14600
|
O,
|
|
14553
14601
|
L
|
|
14554
|
-
]),
|
|
14602
|
+
]), BW = useDeepCompareMemoize(O ?? inferFieldTypes(r)), VW = (0, import_react.useMemo)(() => f === "all" ? BW : BW.slice(0, f), [
|
|
14555
14603
|
f,
|
|
14556
|
-
|
|
14557
|
-
]),
|
|
14604
|
+
BW
|
|
14605
|
+
]), HW = (0, import_react.useMemo)(() => {
|
|
14558
14606
|
let e2 = {};
|
|
14559
14607
|
if (r && r.length > 0) {
|
|
14560
|
-
for (let [c2, l2] of
|
|
14608
|
+
for (let [c2, l2] of VW) if (l2[0] === "number") {
|
|
14561
14609
|
let l3 = 0;
|
|
14562
14610
|
for (let e3 of r) {
|
|
14563
14611
|
let r2 = e3[c2];
|
|
@@ -14572,95 +14620,95 @@ ${c}
|
|
|
14572
14620
|
return e2;
|
|
14573
14621
|
}, [
|
|
14574
14622
|
r,
|
|
14575
|
-
|
|
14576
|
-
]),
|
|
14577
|
-
O || (w = false),
|
|
14578
|
-
let
|
|
14579
|
-
rowHeaders:
|
|
14623
|
+
VW
|
|
14624
|
+
]), UW = useDeepCompareMemoize(T), WW = useDeepCompareMemoize(pW), GW = useDeepCompareMemoize(mW), KW = useDeepCompareMemoize(hW), qW = useDeepCompareMemoize(zW), JW = useDeepCompareMemoize(HW), YW = VW.length;
|
|
14625
|
+
O || (w = false), RW && (m = null);
|
|
14626
|
+
let XW = (0, import_react.useMemo)(() => generateColumns({
|
|
14627
|
+
rowHeaders: UW,
|
|
14580
14628
|
selection: m,
|
|
14581
|
-
chartSpecModel:
|
|
14582
|
-
fieldTypes:
|
|
14583
|
-
textJustifyColumns:
|
|
14584
|
-
wrappedColumns:
|
|
14585
|
-
columnWidths:
|
|
14586
|
-
headerTooltip:
|
|
14629
|
+
chartSpecModel: qW,
|
|
14630
|
+
fieldTypes: VW,
|
|
14631
|
+
textJustifyColumns: WW,
|
|
14632
|
+
wrappedColumns: GW,
|
|
14633
|
+
columnWidths: KW,
|
|
14634
|
+
headerTooltip: gW,
|
|
14587
14635
|
showDataTypes: w,
|
|
14588
|
-
calculateTopKRows:
|
|
14589
|
-
fractionDigitsByColumn:
|
|
14636
|
+
calculateTopKRows: wW,
|
|
14637
|
+
fractionDigitsByColumn: JW
|
|
14590
14638
|
}), [
|
|
14591
14639
|
m,
|
|
14592
14640
|
w,
|
|
14593
|
-
|
|
14594
|
-
|
|
14595
|
-
|
|
14596
|
-
|
|
14597
|
-
|
|
14598
|
-
|
|
14599
|
-
|
|
14600
|
-
|
|
14601
|
-
|
|
14602
|
-
]),
|
|
14641
|
+
qW,
|
|
14642
|
+
UW,
|
|
14643
|
+
VW,
|
|
14644
|
+
WW,
|
|
14645
|
+
GW,
|
|
14646
|
+
KW,
|
|
14647
|
+
gW,
|
|
14648
|
+
wW,
|
|
14649
|
+
JW
|
|
14650
|
+
]), ZW = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
14603
14651
|
e2,
|
|
14604
14652
|
true
|
|
14605
14653
|
])), [
|
|
14606
14654
|
h
|
|
14607
|
-
]),
|
|
14655
|
+
]), QW = useEvent_default((e2) => {
|
|
14608
14656
|
if (m === "single") {
|
|
14609
14657
|
let r2 = Functions.asUpdater(e2)({});
|
|
14610
14658
|
z(Object.keys(r2).slice(0, 1));
|
|
14611
14659
|
}
|
|
14612
14660
|
if (m === "multi") {
|
|
14613
|
-
let r2 = Functions.asUpdater(e2)(
|
|
14661
|
+
let r2 = Functions.asUpdater(e2)(ZW);
|
|
14614
14662
|
z(Object.keys(r2));
|
|
14615
14663
|
}
|
|
14616
|
-
}),
|
|
14617
|
-
if (
|
|
14664
|
+
}), $W = useEvent_default((e2) => {
|
|
14665
|
+
if (MW(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
14618
14666
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
14619
14667
|
r2 !== null && M((e3) => ({
|
|
14620
14668
|
...e3,
|
|
14621
14669
|
pageIndex: r2
|
|
14622
14670
|
}));
|
|
14623
|
-
}),
|
|
14624
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
14625
|
-
}),
|
|
14626
|
-
if (!(!
|
|
14671
|
+
}), eG = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), tG = useEvent_default((e2) => {
|
|
14672
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(eG).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(eG));
|
|
14673
|
+
}), nG = m === "multi" || m === "single", rG = y && !!TW, iG = isInVscodeExtension(), aG = isIslands(), oG = (0, import_react.useMemo)(() => {
|
|
14674
|
+
if (!(!PW || !(b || rG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
14627
14675
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
14628
|
-
rowIdx:
|
|
14629
|
-
setRowIdx:
|
|
14676
|
+
rowIdx: jW,
|
|
14677
|
+
setRowIdx: $W,
|
|
14630
14678
|
totalRows: l,
|
|
14631
|
-
fieldTypes:
|
|
14632
|
-
getRow:
|
|
14633
|
-
isSelectable:
|
|
14634
|
-
isRowSelected: !!
|
|
14635
|
-
handleRowSelectionChange:
|
|
14636
|
-
previewColumn:
|
|
14637
|
-
totalColumns:
|
|
14638
|
-
tableId:
|
|
14679
|
+
fieldTypes: BW,
|
|
14680
|
+
getRow: EW,
|
|
14681
|
+
isSelectable: nG,
|
|
14682
|
+
isRowSelected: !!ZW[jW],
|
|
14683
|
+
handleRowSelectionChange: QW,
|
|
14684
|
+
previewColumn: TW,
|
|
14685
|
+
totalColumns: _W,
|
|
14686
|
+
tableId: kW,
|
|
14639
14687
|
table: e2,
|
|
14640
|
-
showRowExplorer: b && !
|
|
14641
|
-
showColumnExplorer:
|
|
14642
|
-
activeTab:
|
|
14643
|
-
onTabChange:
|
|
14688
|
+
showRowExplorer: b && !iG,
|
|
14689
|
+
showColumnExplorer: rG && !iG,
|
|
14690
|
+
activeTab: IW,
|
|
14691
|
+
onTabChange: LW
|
|
14644
14692
|
})
|
|
14645
14693
|
});
|
|
14646
14694
|
}, [
|
|
14647
|
-
|
|
14695
|
+
PW,
|
|
14648
14696
|
b,
|
|
14649
|
-
|
|
14650
|
-
SW,
|
|
14651
|
-
WW,
|
|
14652
|
-
l,
|
|
14697
|
+
rG,
|
|
14653
14698
|
jW,
|
|
14699
|
+
$W,
|
|
14700
|
+
l,
|
|
14701
|
+
BW,
|
|
14702
|
+
EW,
|
|
14703
|
+
nG,
|
|
14704
|
+
ZW,
|
|
14705
|
+
QW,
|
|
14706
|
+
TW,
|
|
14654
14707
|
_W,
|
|
14655
|
-
|
|
14656
|
-
|
|
14657
|
-
|
|
14658
|
-
|
|
14659
|
-
cW,
|
|
14660
|
-
bW,
|
|
14661
|
-
YW,
|
|
14662
|
-
DW,
|
|
14663
|
-
OW
|
|
14708
|
+
kW,
|
|
14709
|
+
iG,
|
|
14710
|
+
IW,
|
|
14711
|
+
LW
|
|
14664
14712
|
]);
|
|
14665
14713
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14666
14714
|
children: [
|
|
@@ -14672,27 +14720,27 @@ ${c}
|
|
|
14672
14720
|
" rows."
|
|
14673
14721
|
]
|
|
14674
14722
|
}),
|
|
14675
|
-
|
|
14723
|
+
YW < _W && YW > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14676
14724
|
className: "mb-1 rounded",
|
|
14677
14725
|
children: [
|
|
14678
14726
|
"Result clipped. Showing ",
|
|
14679
|
-
|
|
14727
|
+
YW,
|
|
14680
14728
|
" of ",
|
|
14681
|
-
|
|
14729
|
+
_W,
|
|
14682
14730
|
" columns."
|
|
14683
14731
|
]
|
|
14684
14732
|
}),
|
|
14685
|
-
|
|
14733
|
+
RW && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14686
14734
|
className: "mb-1 rounded",
|
|
14687
14735
|
children: [
|
|
14688
14736
|
"Showing the first ",
|
|
14689
14737
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14690
|
-
children: prettyNumber(r.length,
|
|
14738
|
+
children: prettyNumber(r.length, AW)
|
|
14691
14739
|
}),
|
|
14692
14740
|
" ",
|
|
14693
14741
|
"of ",
|
|
14694
14742
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14695
|
-
children: prettyNumber(l,
|
|
14743
|
+
children: prettyNumber(l, AW)
|
|
14696
14744
|
}),
|
|
14697
14745
|
" rows. Increase the table's ",
|
|
14698
14746
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -14706,7 +14754,7 @@ ${c}
|
|
|
14706
14754
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
14707
14755
|
}),
|
|
14708
14756
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
14709
|
-
value:
|
|
14757
|
+
value: zW,
|
|
14710
14758
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
14711
14759
|
label: e,
|
|
14712
14760
|
align: "top",
|
|
@@ -14714,14 +14762,14 @@ ${c}
|
|
|
14714
14762
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
14715
14763
|
data: r,
|
|
14716
14764
|
rawData: c,
|
|
14717
|
-
columns:
|
|
14765
|
+
columns: XW,
|
|
14718
14766
|
className: R,
|
|
14719
|
-
maxHeight:
|
|
14767
|
+
maxHeight: OW,
|
|
14720
14768
|
sorting: B,
|
|
14721
14769
|
totalRows: l,
|
|
14722
14770
|
sizeBytes: u,
|
|
14723
14771
|
sizeBytesIsLoading: d,
|
|
14724
|
-
totalColumns:
|
|
14772
|
+
totalColumns: _W,
|
|
14725
14773
|
manualSorting: true,
|
|
14726
14774
|
setSorting: H,
|
|
14727
14775
|
pagination: p,
|
|
@@ -14729,37 +14777,37 @@ ${c}
|
|
|
14729
14777
|
selection: m,
|
|
14730
14778
|
paginationState: j,
|
|
14731
14779
|
setPaginationState: M,
|
|
14732
|
-
rowSelection:
|
|
14733
|
-
cellSelection:
|
|
14734
|
-
cellStyling:
|
|
14735
|
-
hoverTemplate:
|
|
14736
|
-
cellHoverTexts:
|
|
14780
|
+
rowSelection: ZW,
|
|
14781
|
+
cellSelection: eG,
|
|
14782
|
+
cellStyling: yW,
|
|
14783
|
+
hoverTemplate: bW,
|
|
14784
|
+
cellHoverTexts: xW,
|
|
14737
14785
|
downloadAs: _ ? I : void 0,
|
|
14738
14786
|
showSearch: W,
|
|
14739
14787
|
searchQuery: G,
|
|
14740
14788
|
onSearchQueryChange: q,
|
|
14741
14789
|
showFilters: g,
|
|
14742
|
-
filters:
|
|
14743
|
-
onFiltersChange:
|
|
14744
|
-
calculateTopKRows:
|
|
14745
|
-
reloading:
|
|
14746
|
-
onRowSelectionChange:
|
|
14747
|
-
freezeColumnsLeft:
|
|
14748
|
-
freezeColumnsRight:
|
|
14749
|
-
hiddenColumns:
|
|
14750
|
-
onCellSelectionChange:
|
|
14751
|
-
getRowIds:
|
|
14752
|
-
toggleDisplayHeader:
|
|
14753
|
-
showChartBuilder: S && !
|
|
14754
|
-
isChartBuilderOpen:
|
|
14790
|
+
filters: cW,
|
|
14791
|
+
onFiltersChange: lW,
|
|
14792
|
+
calculateTopKRows: wW,
|
|
14793
|
+
reloading: Z,
|
|
14794
|
+
onRowSelectionChange: QW,
|
|
14795
|
+
freezeColumnsLeft: uW,
|
|
14796
|
+
freezeColumnsRight: dW,
|
|
14797
|
+
hiddenColumns: fW,
|
|
14798
|
+
onCellSelectionChange: tG,
|
|
14799
|
+
getRowIds: vW,
|
|
14800
|
+
toggleDisplayHeader: SW,
|
|
14801
|
+
showChartBuilder: S && !aG,
|
|
14802
|
+
isChartBuilderOpen: CW,
|
|
14755
14803
|
showPageSizeSelector: v,
|
|
14756
|
-
showTableExplorer: (b ||
|
|
14757
|
-
togglePanel:
|
|
14758
|
-
isPanelOpen:
|
|
14759
|
-
isAnyPanelOpen:
|
|
14760
|
-
viewedRowIdx:
|
|
14761
|
-
onViewedRowChange: (e2) =>
|
|
14762
|
-
renderTableExplorerPanel:
|
|
14804
|
+
showTableExplorer: (b || rG) && !iG && !aG,
|
|
14805
|
+
togglePanel: FW,
|
|
14806
|
+
isPanelOpen: NW,
|
|
14807
|
+
isAnyPanelOpen: PW,
|
|
14808
|
+
viewedRowIdx: jW,
|
|
14809
|
+
onViewedRowChange: (e2) => MW(e2),
|
|
14810
|
+
renderTableExplorerPanel: oG
|
|
14763
14811
|
})
|
|
14764
14812
|
})
|
|
14765
14813
|
})
|
|
@@ -15118,7 +15166,7 @@ ${c}
|
|
|
15118
15166
|
fullWidth: m,
|
|
15119
15167
|
children: T
|
|
15120
15168
|
}), r[20] = m, r[21] = g, r[22] = c, r[23] = T, r[24] = E) : E = r[24], E;
|
|
15121
|
-
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
15169
|
+
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-DXBx_nQg.js"));
|
|
15122
15170
|
const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object({
|
|
15123
15171
|
label: string().nullish(),
|
|
15124
15172
|
data: string()
|
|
@@ -16811,29 +16859,29 @@ ${c}
|
|
|
16811
16859
|
], r[2] = S, r[3] = w);
|
|
16812
16860
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
16813
16861
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
16814
|
-
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,
|
|
16815
|
-
r[6] === d ?
|
|
16862
|
+
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, cW] = (0, import_react.useState)(f || EMPTY), lW = (0, import_react.useRef)(null), Z;
|
|
16863
|
+
r[6] === d ? Z = r[7] : (Z = (e2) => {
|
|
16816
16864
|
var _a3;
|
|
16817
|
-
d && e2 !== "transform" && ((_a3 =
|
|
16818
|
-
}, r[6] = d, r[7] =
|
|
16819
|
-
let
|
|
16820
|
-
r[8] === q ?
|
|
16821
|
-
|
|
16822
|
-
}, r[8] = q, r[9] =
|
|
16823
|
-
let
|
|
16824
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
16825
|
-
let e2 =
|
|
16865
|
+
d && e2 !== "transform" && ((_a3 = lW.current) == null ? void 0 : _a3.submit());
|
|
16866
|
+
}, r[6] = d, r[7] = Z);
|
|
16867
|
+
let uW = Z, dW = (0, import_react.useRef)(q), fW;
|
|
16868
|
+
r[8] === q ? fW = r[9] : (fW = () => {
|
|
16869
|
+
dW.current = q;
|
|
16870
|
+
}, r[8] = q, r[9] = fW), (0, import_react.useEffect)(fW);
|
|
16871
|
+
let pW;
|
|
16872
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (pW = () => {
|
|
16873
|
+
let e2 = dW.current;
|
|
16826
16874
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
16827
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
16828
|
-
let
|
|
16829
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
16875
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = pW) : pW = r[12];
|
|
16876
|
+
let mW = f == null ? void 0 : f.transforms.length, hW;
|
|
16877
|
+
r[13] !== T || r[14] !== p || r[15] !== mW ? (hW = [
|
|
16830
16878
|
T,
|
|
16831
|
-
|
|
16832
|
-
|
|
16879
|
+
mW,
|
|
16880
|
+
dW,
|
|
16833
16881
|
p
|
|
16834
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
16835
|
-
let
|
|
16836
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16882
|
+
], r[13] = T, r[14] = p, r[15] = mW, r[16] = hW) : hW = r[16], (0, import_react.useEffect)(pW, hW);
|
|
16883
|
+
let gW;
|
|
16884
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16837
16885
|
value: "transform",
|
|
16838
16886
|
className: "text-xs py-1",
|
|
16839
16887
|
children: [
|
|
@@ -16842,9 +16890,9 @@ ${c}
|
|
|
16842
16890
|
}),
|
|
16843
16891
|
"Transform"
|
|
16844
16892
|
]
|
|
16845
|
-
}), r[17] =
|
|
16846
|
-
let
|
|
16847
|
-
r[18] === H ?
|
|
16893
|
+
}), r[17] = gW) : gW = r[17];
|
|
16894
|
+
let _W;
|
|
16895
|
+
r[18] === H ? _W = r[19] : (_W = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16848
16896
|
value: "python-code",
|
|
16849
16897
|
className: "text-xs py-1",
|
|
16850
16898
|
children: [
|
|
@@ -16853,9 +16901,9 @@ ${c}
|
|
|
16853
16901
|
}),
|
|
16854
16902
|
"Python Code"
|
|
16855
16903
|
]
|
|
16856
|
-
}), r[18] = H, r[19] =
|
|
16857
|
-
let
|
|
16858
|
-
r[20] === W ?
|
|
16904
|
+
}), r[18] = H, r[19] = _W);
|
|
16905
|
+
let vW;
|
|
16906
|
+
r[20] === W ? vW = r[21] : (vW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16859
16907
|
value: "sql-code",
|
|
16860
16908
|
className: "text-xs py-1",
|
|
16861
16909
|
children: [
|
|
@@ -16864,54 +16912,54 @@ ${c}
|
|
|
16864
16912
|
}),
|
|
16865
16913
|
"SQL Code"
|
|
16866
16914
|
]
|
|
16867
|
-
}), r[20] = W, r[21] =
|
|
16868
|
-
let
|
|
16869
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16915
|
+
}), r[20] = W, r[21] = vW);
|
|
16916
|
+
let bW;
|
|
16917
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (bW = (0, import_jsx_runtime.jsx)("div", {
|
|
16870
16918
|
className: "grow"
|
|
16871
|
-
}), r[22] =
|
|
16872
|
-
let
|
|
16873
|
-
r[23] !==
|
|
16919
|
+
}), r[22] = bW) : bW = r[22];
|
|
16920
|
+
let xW;
|
|
16921
|
+
r[23] !== _W || r[24] !== vW ? (xW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
16874
16922
|
className: "h-8",
|
|
16875
16923
|
children: [
|
|
16876
|
-
|
|
16877
|
-
|
|
16878
|
-
|
|
16879
|
-
|
|
16924
|
+
gW,
|
|
16925
|
+
_W,
|
|
16926
|
+
vW,
|
|
16927
|
+
bW
|
|
16880
16928
|
]
|
|
16881
|
-
}), r[23] =
|
|
16882
|
-
let
|
|
16883
|
-
r[26] === j ?
|
|
16929
|
+
}), r[23] = _W, r[24] = vW, r[25] = xW) : xW = r[25];
|
|
16930
|
+
let SW;
|
|
16931
|
+
r[26] === j ? SW = r[27] : (SW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16884
16932
|
size: "small"
|
|
16885
|
-
}), r[26] = j, r[27] =
|
|
16886
|
-
let
|
|
16887
|
-
r[28] !==
|
|
16933
|
+
}), r[26] = j, r[27] = SW);
|
|
16934
|
+
let CW;
|
|
16935
|
+
r[28] !== xW || r[29] !== SW ? (CW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16888
16936
|
className: "flex items-center gap-2",
|
|
16889
16937
|
children: [
|
|
16890
|
-
|
|
16891
|
-
|
|
16938
|
+
xW,
|
|
16939
|
+
SW
|
|
16892
16940
|
]
|
|
16893
|
-
}), r[28] =
|
|
16894
|
-
let
|
|
16895
|
-
r[31] !== p || r[32] !== f ? (
|
|
16896
|
-
dequal(e2, f) || (p(e2),
|
|
16897
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
16898
|
-
let
|
|
16899
|
-
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !==
|
|
16941
|
+
}), r[28] = xW, r[29] = SW, r[30] = CW) : CW = r[30];
|
|
16942
|
+
let wW;
|
|
16943
|
+
r[31] !== p || r[32] !== f ? (wW = (e2) => {
|
|
16944
|
+
dequal(e2, f) || (p(e2), cW(e2));
|
|
16945
|
+
}, r[31] = p, r[32] = f, r[33] = wW) : wW = r[33];
|
|
16946
|
+
let TW;
|
|
16947
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== wW ? (TW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16900
16948
|
value: "transform",
|
|
16901
16949
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16902
16950
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
16903
|
-
ref:
|
|
16951
|
+
ref: lW,
|
|
16904
16952
|
initialValue: q,
|
|
16905
16953
|
columns: c,
|
|
16906
|
-
onChange:
|
|
16907
|
-
onInvalidChange:
|
|
16954
|
+
onChange: wW,
|
|
16955
|
+
onInvalidChange: cW,
|
|
16908
16956
|
getColumnValues: h,
|
|
16909
16957
|
columnTypesPerStep: B,
|
|
16910
16958
|
lazy: d
|
|
16911
16959
|
})
|
|
16912
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
16913
|
-
let
|
|
16914
|
-
r[41] === H ?
|
|
16960
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = wW, r[40] = TW) : TW = r[40];
|
|
16961
|
+
let EW;
|
|
16962
|
+
r[41] === H ? EW = r[42] : (EW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16915
16963
|
value: "python-code",
|
|
16916
16964
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16917
16965
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16920,9 +16968,9 @@ ${c}
|
|
|
16920
16968
|
code: H,
|
|
16921
16969
|
language: "python"
|
|
16922
16970
|
})
|
|
16923
|
-
}), r[41] = H, r[42] =
|
|
16924
|
-
let
|
|
16925
|
-
r[43] === W ?
|
|
16971
|
+
}), r[41] = H, r[42] = EW);
|
|
16972
|
+
let DW;
|
|
16973
|
+
r[43] === W ? DW = r[44] : (DW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16926
16974
|
value: "sql-code",
|
|
16927
16975
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16928
16976
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16931,35 +16979,35 @@ ${c}
|
|
|
16931
16979
|
code: W,
|
|
16932
16980
|
language: "sql"
|
|
16933
16981
|
})
|
|
16934
|
-
}), r[43] = W, r[44] =
|
|
16935
|
-
let
|
|
16936
|
-
r[45] !==
|
|
16982
|
+
}), r[43] = W, r[44] = DW);
|
|
16983
|
+
let OW;
|
|
16984
|
+
r[45] !== uW || r[46] !== CW || r[47] !== TW || r[48] !== EW || r[49] !== DW ? (OW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
16937
16985
|
defaultValue: "transform",
|
|
16938
|
-
onValueChange:
|
|
16986
|
+
onValueChange: uW,
|
|
16939
16987
|
children: [
|
|
16940
|
-
|
|
16941
|
-
|
|
16942
|
-
|
|
16943
|
-
|
|
16988
|
+
CW,
|
|
16989
|
+
TW,
|
|
16990
|
+
EW,
|
|
16991
|
+
DW
|
|
16944
16992
|
]
|
|
16945
|
-
}), r[45] =
|
|
16946
|
-
let
|
|
16947
|
-
r[51] === O ?
|
|
16993
|
+
}), r[45] = uW, r[46] = CW, r[47] = TW, r[48] = EW, r[49] = DW, r[50] = OW) : OW = r[50];
|
|
16994
|
+
let kW;
|
|
16995
|
+
r[51] === O ? kW = r[52] : (kW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
16948
16996
|
error: O
|
|
16949
|
-
}), r[51] = O, r[52] =
|
|
16950
|
-
let
|
|
16951
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
16997
|
+
}), r[51] = O, r[52] = kW);
|
|
16998
|
+
let AW = I || "", jW = L ?? 0, MW = G ?? 0, NW = R || Arrays.EMPTY, PW = L && L > 5 || false, FW;
|
|
16999
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== AW || r[61] !== jW || r[62] !== MW || r[63] !== NW || r[64] !== PW ? (FW = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
16952
17000
|
label: null,
|
|
16953
17001
|
className: "rounded-b border-x border-b",
|
|
16954
|
-
data:
|
|
17002
|
+
data: AW,
|
|
16955
17003
|
hasStableRowId: false,
|
|
16956
|
-
totalRows:
|
|
16957
|
-
totalColumns:
|
|
17004
|
+
totalRows: jW,
|
|
17005
|
+
totalColumns: MW,
|
|
16958
17006
|
maxColumns: "all",
|
|
16959
17007
|
pageSize: l,
|
|
16960
17008
|
pagination: true,
|
|
16961
17009
|
fieldTypes: z,
|
|
16962
|
-
rowHeaders:
|
|
17010
|
+
rowHeaders: NW,
|
|
16963
17011
|
showDownload: u,
|
|
16964
17012
|
download_as: _,
|
|
16965
17013
|
get_size_bytes: v,
|
|
@@ -16969,7 +17017,7 @@ ${c}
|
|
|
16969
17017
|
showColumnSummaries: false,
|
|
16970
17018
|
showDataTypes: true,
|
|
16971
17019
|
get_column_summaries: getColumnSummaries,
|
|
16972
|
-
showPageSizeSelector:
|
|
17020
|
+
showPageSizeSelector: PW,
|
|
16973
17021
|
showColumnExplorer: false,
|
|
16974
17022
|
showRowExplorer: true,
|
|
16975
17023
|
showChartBuilder: false,
|
|
@@ -16978,15 +17026,15 @@ ${c}
|
|
|
16978
17026
|
selection: null,
|
|
16979
17027
|
lazy: false,
|
|
16980
17028
|
host: y
|
|
16981
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
16982
|
-
let
|
|
16983
|
-
return r[66] !==
|
|
17029
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = AW, r[61] = jW, r[62] = MW, r[63] = NW, r[64] = PW, r[65] = FW) : FW = r[65];
|
|
17030
|
+
let IW;
|
|
17031
|
+
return r[66] !== OW || r[67] !== kW || r[68] !== FW ? (IW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16984
17032
|
children: [
|
|
16985
|
-
|
|
16986
|
-
|
|
16987
|
-
|
|
17033
|
+
OW,
|
|
17034
|
+
kW,
|
|
17035
|
+
FW
|
|
16988
17036
|
]
|
|
16989
|
-
}), r[66] =
|
|
17037
|
+
}), r[66] = OW, r[67] = kW, r[68] = FW, r[69] = IW) : IW = r[69], IW;
|
|
16990
17038
|
});
|
|
16991
17039
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
16992
17040
|
function getColumnSummaries() {
|
|
@@ -17170,30 +17218,30 @@ ${c}
|
|
|
17170
17218
|
}, [
|
|
17171
17219
|
B
|
|
17172
17220
|
]);
|
|
17173
|
-
let H = `${g}::${I}`, [
|
|
17174
|
-
|
|
17221
|
+
let H = `${g}::${I}`, [G, q] = (0, import_react.useState)(H);
|
|
17222
|
+
G !== H && (q(H), E(0)), (0, import_react.useLayoutEffect)(() => {
|
|
17175
17223
|
var _a4;
|
|
17176
17224
|
M.current && (M.current = false, (_a4 = O.current[0]) == null ? void 0 : _a4.focus());
|
|
17177
17225
|
}, [
|
|
17178
17226
|
H
|
|
17179
17227
|
]);
|
|
17180
|
-
let
|
|
17228
|
+
let cW = (R == null ? void 0 : R.files) ?? [], lW = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", uW = l === "file" || l === "all", dW = cW.filter((e2) => Z && e2.is_directory || uW && !e2.is_directory), fW = dW.length > 0 && dW.every((e2) => lW.has(e2.path));
|
|
17181
17229
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
17182
17230
|
kind: "danger",
|
|
17183
17231
|
children: z.message
|
|
17184
17232
|
});
|
|
17185
|
-
let
|
|
17233
|
+
let pW = PathBuilder.guessDeliminator(c).deliminator, mW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
17186
17234
|
children: e2.path
|
|
17187
17235
|
}, e2.id));
|
|
17188
|
-
function
|
|
17236
|
+
function hW(e2) {
|
|
17189
17237
|
var _a4;
|
|
17190
17238
|
if (v) return;
|
|
17191
17239
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
17192
|
-
if (g ===
|
|
17240
|
+
if (g === pW) {
|
|
17193
17241
|
y(false);
|
|
17194
17242
|
return;
|
|
17195
17243
|
}
|
|
17196
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
17244
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = pW);
|
|
17197
17245
|
}
|
|
17198
17246
|
let r2 = e2.length < c.length;
|
|
17199
17247
|
if (f && r2) {
|
|
@@ -17206,7 +17254,7 @@ ${c}
|
|
|
17206
17254
|
}
|
|
17207
17255
|
M.current = ((_a4 = j.current) == null ? void 0 : _a4.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
17208
17256
|
}
|
|
17209
|
-
function
|
|
17257
|
+
function gW({ path: e2, name: r2, isDirectory: c2 }) {
|
|
17210
17258
|
return {
|
|
17211
17259
|
id: e2,
|
|
17212
17260
|
name: r2,
|
|
@@ -17214,27 +17262,27 @@ ${c}
|
|
|
17214
17262
|
is_directory: c2
|
|
17215
17263
|
};
|
|
17216
17264
|
}
|
|
17217
|
-
function
|
|
17218
|
-
let f2 =
|
|
17265
|
+
function _W({ path: c2, name: l2, isDirectory: d2 }) {
|
|
17266
|
+
let f2 = gW({
|
|
17219
17267
|
path: c2,
|
|
17220
17268
|
name: l2,
|
|
17221
17269
|
isDirectory: d2
|
|
17222
17270
|
});
|
|
17223
|
-
|
|
17271
|
+
lW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
17224
17272
|
...e,
|
|
17225
17273
|
f2
|
|
17226
17274
|
] : [
|
|
17227
17275
|
f2
|
|
17228
17276
|
]);
|
|
17229
17277
|
}
|
|
17230
|
-
function
|
|
17278
|
+
function yW() {
|
|
17231
17279
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
17232
17280
|
}
|
|
17233
|
-
function
|
|
17281
|
+
function bW() {
|
|
17234
17282
|
let c2 = [];
|
|
17235
|
-
for (let e2 of
|
|
17236
|
-
if (!Z && e2.is_directory ||
|
|
17237
|
-
let r2 =
|
|
17283
|
+
for (let e2 of cW) {
|
|
17284
|
+
if (!Z && e2.is_directory || lW.has(e2.path)) continue;
|
|
17285
|
+
let r2 = gW({
|
|
17238
17286
|
path: e2.path,
|
|
17239
17287
|
name: e2.name,
|
|
17240
17288
|
isDirectory: e2.is_directory
|
|
@@ -17246,20 +17294,20 @@ ${c}
|
|
|
17246
17294
|
...c2
|
|
17247
17295
|
]);
|
|
17248
17296
|
}
|
|
17249
|
-
let
|
|
17297
|
+
let xW = [
|
|
17250
17298
|
{
|
|
17251
17299
|
key: "parent",
|
|
17252
17300
|
name: PARENT_DIRECTORY,
|
|
17253
17301
|
Icon: CornerLeftUp,
|
|
17254
17302
|
isSelected: false,
|
|
17255
17303
|
canSelect: false,
|
|
17256
|
-
onPrimary: () =>
|
|
17304
|
+
onPrimary: () => hW(PARENT_DIRECTORY),
|
|
17257
17305
|
onToggleSelect: null
|
|
17258
17306
|
},
|
|
17259
|
-
...
|
|
17307
|
+
...cW.map((e2) => {
|
|
17260
17308
|
let r2 = e2.path;
|
|
17261
17309
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17262
|
-
let c2 = Z && e2.is_directory ||
|
|
17310
|
+
let c2 = Z && e2.is_directory || uW && !e2.is_directory, l2 = lW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => _W({
|
|
17263
17311
|
path: r2,
|
|
17264
17312
|
name: e2.name,
|
|
17265
17313
|
isDirectory: e2.is_directory
|
|
@@ -17270,46 +17318,46 @@ ${c}
|
|
|
17270
17318
|
Icon: FILE_ICON[u2],
|
|
17271
17319
|
isSelected: l2,
|
|
17272
17320
|
canSelect: c2,
|
|
17273
|
-
onPrimary: e2.is_directory ? () =>
|
|
17321
|
+
onPrimary: e2.is_directory ? () => hW(r2) : c2 ? d2 : () => {
|
|
17274
17322
|
},
|
|
17275
17323
|
onToggleSelect: c2 ? d2 : null
|
|
17276
17324
|
};
|
|
17277
17325
|
})
|
|
17278
17326
|
];
|
|
17279
|
-
function
|
|
17327
|
+
function SW(e2) {
|
|
17280
17328
|
var _a4;
|
|
17281
17329
|
E(e2), (_a4 = O.current[e2]) == null ? void 0 : _a4.focus();
|
|
17282
17330
|
}
|
|
17283
|
-
function
|
|
17331
|
+
function CW(e2, r2) {
|
|
17284
17332
|
var _a4, _b3;
|
|
17285
|
-
let c2 =
|
|
17333
|
+
let c2 = xW.length - 1;
|
|
17286
17334
|
switch (e2.key) {
|
|
17287
17335
|
case "ArrowDown":
|
|
17288
|
-
e2.preventDefault(),
|
|
17336
|
+
e2.preventDefault(), SW(Math.min(r2 + 1, c2));
|
|
17289
17337
|
break;
|
|
17290
17338
|
case "ArrowUp":
|
|
17291
|
-
e2.preventDefault(),
|
|
17339
|
+
e2.preventDefault(), SW(Math.max(r2 - 1, 0));
|
|
17292
17340
|
break;
|
|
17293
17341
|
case "Home":
|
|
17294
|
-
e2.preventDefault(),
|
|
17342
|
+
e2.preventDefault(), SW(0);
|
|
17295
17343
|
break;
|
|
17296
17344
|
case "End":
|
|
17297
|
-
e2.preventDefault(),
|
|
17345
|
+
e2.preventDefault(), SW(c2);
|
|
17298
17346
|
break;
|
|
17299
17347
|
case "Enter":
|
|
17300
|
-
e2.preventDefault(),
|
|
17348
|
+
e2.preventDefault(), xW[r2].onPrimary();
|
|
17301
17349
|
break;
|
|
17302
17350
|
case " ":
|
|
17303
|
-
e2.preventDefault(), (_b3 = (_a4 =
|
|
17351
|
+
e2.preventDefault(), (_b3 = (_a4 = xW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a4);
|
|
17304
17352
|
break;
|
|
17305
17353
|
}
|
|
17306
17354
|
}
|
|
17307
|
-
let { parentDirectories:
|
|
17355
|
+
let { parentDirectories: wW } = getProtocolAndParentDirectories({
|
|
17308
17356
|
path: g,
|
|
17309
|
-
delimiter:
|
|
17357
|
+
delimiter: pW,
|
|
17310
17358
|
initialPath: c,
|
|
17311
17359
|
restrictNavigation: f
|
|
17312
|
-
}),
|
|
17360
|
+
}), TW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
17313
17361
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
17314
17362
|
children: [
|
|
17315
17363
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -17319,7 +17367,7 @@ ${c}
|
|
|
17319
17367
|
(() => {
|
|
17320
17368
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
17321
17369
|
children: renderHTML({
|
|
17322
|
-
html: d ?? `Select ${
|
|
17370
|
+
html: d ?? `Select ${TW.join(" and ", 2)}...`
|
|
17323
17371
|
})
|
|
17324
17372
|
});
|
|
17325
17373
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -17333,8 +17381,8 @@ ${c}
|
|
|
17333
17381
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
17334
17382
|
size: "xs",
|
|
17335
17383
|
variant: "link",
|
|
17336
|
-
onClick:
|
|
17337
|
-
children:
|
|
17384
|
+
onClick: fW ? yW : bW,
|
|
17385
|
+
children: fW ? "Deselect all" : "Select all"
|
|
17338
17386
|
})
|
|
17339
17387
|
})
|
|
17340
17388
|
]
|
|
@@ -17344,15 +17392,15 @@ ${c}
|
|
|
17344
17392
|
className: "mt-2 w-full",
|
|
17345
17393
|
placeholder: g,
|
|
17346
17394
|
value: g,
|
|
17347
|
-
onChange: (e2) =>
|
|
17348
|
-
children:
|
|
17395
|
+
onChange: (e2) => hW(e2.target.value),
|
|
17396
|
+
children: wW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
17349
17397
|
value: e2,
|
|
17350
17398
|
children: e2
|
|
17351
17399
|
}, e2))
|
|
17352
17400
|
}),
|
|
17353
17401
|
R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
17354
17402
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
17355
|
-
children: R.is_truncated ? `Showing ${
|
|
17403
|
+
children: R.is_truncated ? `Showing ${cW.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
17356
17404
|
}),
|
|
17357
17405
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
17358
17406
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
@@ -17381,14 +17429,14 @@ ${c}
|
|
|
17381
17429
|
"aria-label": "File browser",
|
|
17382
17430
|
"aria-multiselectable": u,
|
|
17383
17431
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17384
|
-
children:
|
|
17432
|
+
children: xW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17385
17433
|
role: "row",
|
|
17386
17434
|
ref: (e3) => {
|
|
17387
17435
|
O.current[r2] = e3;
|
|
17388
17436
|
},
|
|
17389
17437
|
tabIndex: r2 === T ? 0 : -1,
|
|
17390
17438
|
onFocus: () => E(r2),
|
|
17391
|
-
onKeyDown: (e3) =>
|
|
17439
|
+
onKeyDown: (e3) => CW(e3, r2),
|
|
17392
17440
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
17393
17441
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
17394
17442
|
}),
|
|
@@ -17431,7 +17479,7 @@ ${c}
|
|
|
17431
17479
|
children: [
|
|
17432
17480
|
e.length,
|
|
17433
17481
|
" ",
|
|
17434
|
-
|
|
17482
|
+
TW.join(" or ", e.length),
|
|
17435
17483
|
" ",
|
|
17436
17484
|
"selected"
|
|
17437
17485
|
]
|
|
@@ -17451,7 +17499,7 @@ ${c}
|
|
|
17451
17499
|
marginBlock: 0
|
|
17452
17500
|
},
|
|
17453
17501
|
className: "m-0 text-xs text-muted-foreground",
|
|
17454
|
-
children:
|
|
17502
|
+
children: mW
|
|
17455
17503
|
})
|
|
17456
17504
|
})
|
|
17457
17505
|
]
|
|
@@ -22833,55 +22881,55 @@ ${c}
|
|
|
22833
22881
|
return typeof S == "function" ? S : noop$2;
|
|
22834
22882
|
}, [
|
|
22835
22883
|
S
|
|
22836
|
-
]), q = (0, import_react.useRef)(null),
|
|
22837
|
-
!
|
|
22838
|
-
|
|
22884
|
+
]), q = (0, import_react.useRef)(null), cW = (0, import_react.useRef)(null), lW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), Z = lW[0], uW = lW[1], dW = Z.isFocused, fW = Z.isFileDialogActive, pW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), mW = function() {
|
|
22885
|
+
!pW.current && fW && setTimeout(function() {
|
|
22886
|
+
cW.current && (cW.current.files.length || (uW({
|
|
22839
22887
|
type: "closeDialog"
|
|
22840
22888
|
}), G()));
|
|
22841
22889
|
}, 300);
|
|
22842
22890
|
};
|
|
22843
22891
|
(0, import_react.useEffect)(function() {
|
|
22844
|
-
return window.addEventListener("focus",
|
|
22845
|
-
window.removeEventListener("focus",
|
|
22892
|
+
return window.addEventListener("focus", mW, false), function() {
|
|
22893
|
+
window.removeEventListener("focus", mW, false);
|
|
22846
22894
|
};
|
|
22847
22895
|
}, [
|
|
22848
|
-
|
|
22849
|
-
|
|
22896
|
+
cW,
|
|
22897
|
+
fW,
|
|
22850
22898
|
G,
|
|
22851
|
-
|
|
22899
|
+
pW
|
|
22852
22900
|
]);
|
|
22853
|
-
var
|
|
22854
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
22901
|
+
var hW = (0, import_react.useRef)([]), gW = (0, import_react.useRef)([]), _W = function(e2) {
|
|
22902
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), hW.current = []);
|
|
22855
22903
|
};
|
|
22856
22904
|
(0, import_react.useEffect)(function() {
|
|
22857
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
22858
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
22905
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", _W, false)), function() {
|
|
22906
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", _W));
|
|
22859
22907
|
};
|
|
22860
22908
|
}, [
|
|
22861
22909
|
q,
|
|
22862
22910
|
O
|
|
22863
22911
|
]), (0, import_react.useEffect)(function() {
|
|
22864
22912
|
var e2 = function(e3) {
|
|
22865
|
-
|
|
22913
|
+
gW.current = [].concat(_toConsumableArray(gW.current), [
|
|
22866
22914
|
e3.target
|
|
22867
|
-
]), isEvtWithFiles(e3) &&
|
|
22915
|
+
]), isEvtWithFiles(e3) && uW({
|
|
22868
22916
|
isDragGlobal: true,
|
|
22869
22917
|
type: "setDragGlobal"
|
|
22870
22918
|
});
|
|
22871
22919
|
}, r2 = function(e3) {
|
|
22872
|
-
|
|
22920
|
+
gW.current = gW.current.filter(function(r3) {
|
|
22873
22921
|
return r3 !== e3.target && r3 !== null;
|
|
22874
|
-
}), !(
|
|
22922
|
+
}), !(gW.current.length > 0) && uW({
|
|
22875
22923
|
isDragGlobal: false,
|
|
22876
22924
|
type: "setDragGlobal"
|
|
22877
22925
|
});
|
|
22878
22926
|
}, c2 = function() {
|
|
22879
|
-
|
|
22927
|
+
gW.current = [], uW({
|
|
22880
22928
|
isDragGlobal: false,
|
|
22881
22929
|
type: "setDragGlobal"
|
|
22882
22930
|
});
|
|
22883
22931
|
}, l2 = function() {
|
|
22884
|
-
|
|
22932
|
+
gW.current = [], uW({
|
|
22885
22933
|
isDragGlobal: false,
|
|
22886
22934
|
type: "setDragGlobal"
|
|
22887
22935
|
});
|
|
@@ -22899,12 +22947,12 @@ ${c}
|
|
|
22899
22947
|
E,
|
|
22900
22948
|
l
|
|
22901
22949
|
]);
|
|
22902
|
-
var
|
|
22950
|
+
var vW = (0, import_react.useCallback)(function(e2) {
|
|
22903
22951
|
R ? R(e2) : console.error(e2);
|
|
22904
22952
|
}, [
|
|
22905
22953
|
R
|
|
22906
|
-
]),
|
|
22907
|
-
e2.preventDefault(), e2.persist(),
|
|
22954
|
+
]), yW = (0, import_react.useCallback)(function(e2) {
|
|
22955
|
+
e2.preventDefault(), e2.persist(), MW(e2), hW.current = [].concat(_toConsumableArray(hW.current), [
|
|
22908
22956
|
e2.target
|
|
22909
22957
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22910
22958
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -22917,7 +22965,7 @@ ${c}
|
|
|
22917
22965
|
maxFiles: m,
|
|
22918
22966
|
validator: z
|
|
22919
22967
|
});
|
|
22920
|
-
|
|
22968
|
+
uW({
|
|
22921
22969
|
isDragAccept: l2,
|
|
22922
22970
|
isDragReject: c2 > 0 && !l2,
|
|
22923
22971
|
isDragActive: true,
|
|
@@ -22925,12 +22973,12 @@ ${c}
|
|
|
22925
22973
|
}), h && h(e2);
|
|
22926
22974
|
}
|
|
22927
22975
|
}).catch(function(e3) {
|
|
22928
|
-
return
|
|
22976
|
+
return vW(e3);
|
|
22929
22977
|
});
|
|
22930
22978
|
}, [
|
|
22931
22979
|
u,
|
|
22932
22980
|
h,
|
|
22933
|
-
|
|
22981
|
+
vW,
|
|
22934
22982
|
L,
|
|
22935
22983
|
B,
|
|
22936
22984
|
f,
|
|
@@ -22938,8 +22986,8 @@ ${c}
|
|
|
22938
22986
|
p,
|
|
22939
22987
|
m,
|
|
22940
22988
|
z
|
|
22941
|
-
]),
|
|
22942
|
-
e2.preventDefault(), e2.persist(),
|
|
22989
|
+
]), bW = (0, import_react.useCallback)(function(e2) {
|
|
22990
|
+
e2.preventDefault(), e2.persist(), MW(e2);
|
|
22943
22991
|
var r2 = isEvtWithFiles(e2);
|
|
22944
22992
|
if (r2 && e2.dataTransfer) try {
|
|
22945
22993
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -22949,12 +22997,12 @@ ${c}
|
|
|
22949
22997
|
}, [
|
|
22950
22998
|
_,
|
|
22951
22999
|
L
|
|
22952
|
-
]),
|
|
22953
|
-
e2.preventDefault(), e2.persist(),
|
|
22954
|
-
var r2 =
|
|
23000
|
+
]), xW = (0, import_react.useCallback)(function(e2) {
|
|
23001
|
+
e2.preventDefault(), e2.persist(), MW(e2);
|
|
23002
|
+
var r2 = hW.current.filter(function(e3) {
|
|
22955
23003
|
return q.current && q.current.contains(e3);
|
|
22956
23004
|
}), c2 = r2.indexOf(e2.target);
|
|
22957
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
23005
|
+
c2 !== -1 && r2.splice(c2, 1), hW.current = r2, !(r2.length > 0) && (uW({
|
|
22958
23006
|
type: "setDraggedFiles",
|
|
22959
23007
|
isDragActive: false,
|
|
22960
23008
|
isDragAccept: false,
|
|
@@ -22964,7 +23012,7 @@ ${c}
|
|
|
22964
23012
|
q,
|
|
22965
23013
|
g,
|
|
22966
23014
|
L
|
|
22967
|
-
]),
|
|
23015
|
+
]), SW = (0, import_react.useCallback)(function(e2, r2) {
|
|
22968
23016
|
var c2 = [], l2 = [];
|
|
22969
23017
|
e2.forEach(function(e3) {
|
|
22970
23018
|
var r3 = _slicedToArray(fileAccepted(e3, B), 2), u2 = r3[0], p2 = r3[1], m2 = _slicedToArray(fileMatchSize(e3, f, d), 2), h2 = m2[0], g2 = m2[1], _2 = z ? z(e3) : null;
|
|
@@ -22988,14 +23036,14 @@ ${c}
|
|
|
22988
23036
|
TOO_MANY_FILES_REJECTION
|
|
22989
23037
|
]
|
|
22990
23038
|
});
|
|
22991
|
-
}), c2.splice(0)),
|
|
23039
|
+
}), c2.splice(0)), uW({
|
|
22992
23040
|
acceptedFiles: c2,
|
|
22993
23041
|
fileRejections: l2,
|
|
22994
23042
|
isDragReject: l2.length > 0,
|
|
22995
23043
|
type: "setFiles"
|
|
22996
23044
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
22997
23045
|
}, [
|
|
22998
|
-
|
|
23046
|
+
uW,
|
|
22999
23047
|
p,
|
|
23000
23048
|
B,
|
|
23001
23049
|
f,
|
|
@@ -23005,22 +23053,22 @@ ${c}
|
|
|
23005
23053
|
y,
|
|
23006
23054
|
b,
|
|
23007
23055
|
z
|
|
23008
|
-
]),
|
|
23009
|
-
e2.preventDefault(), e2.persist(),
|
|
23010
|
-
isPropagationStopped(e2) && !L ||
|
|
23056
|
+
]), CW = (0, import_react.useCallback)(function(e2) {
|
|
23057
|
+
e2.preventDefault(), e2.persist(), MW(e2), hW.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
23058
|
+
isPropagationStopped(e2) && !L || SW(r2, e2);
|
|
23011
23059
|
}).catch(function(e3) {
|
|
23012
|
-
return
|
|
23013
|
-
}),
|
|
23060
|
+
return vW(e3);
|
|
23061
|
+
}), uW({
|
|
23014
23062
|
type: "reset"
|
|
23015
23063
|
});
|
|
23016
23064
|
}, [
|
|
23017
23065
|
u,
|
|
23018
|
-
|
|
23019
|
-
|
|
23066
|
+
SW,
|
|
23067
|
+
vW,
|
|
23020
23068
|
L
|
|
23021
|
-
]),
|
|
23022
|
-
if (
|
|
23023
|
-
|
|
23069
|
+
]), wW = (0, import_react.useCallback)(function() {
|
|
23070
|
+
if (pW.current) {
|
|
23071
|
+
uW({
|
|
23024
23072
|
type: "openDialog"
|
|
23025
23073
|
}), W();
|
|
23026
23074
|
var e2 = {
|
|
@@ -23030,66 +23078,66 @@ ${c}
|
|
|
23030
23078
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
23031
23079
|
return u(e3);
|
|
23032
23080
|
}).then(function(e3) {
|
|
23033
|
-
|
|
23081
|
+
SW(e3, null), uW({
|
|
23034
23082
|
type: "closeDialog"
|
|
23035
23083
|
});
|
|
23036
23084
|
}).catch(function(e3) {
|
|
23037
|
-
isAbort(e3) ? (G(e3),
|
|
23085
|
+
isAbort(e3) ? (G(e3), uW({
|
|
23038
23086
|
type: "closeDialog"
|
|
23039
|
-
})) : isSecurityError(e3) ? (
|
|
23087
|
+
})) : isSecurityError(e3) ? (pW.current = false, cW.current ? (cW.current.value = null, cW.current.click()) : vW(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : vW(e3);
|
|
23040
23088
|
});
|
|
23041
23089
|
return;
|
|
23042
23090
|
}
|
|
23043
|
-
|
|
23091
|
+
cW.current && (uW({
|
|
23044
23092
|
type: "openDialog"
|
|
23045
|
-
}), W(),
|
|
23093
|
+
}), W(), cW.current.value = null, cW.current.click());
|
|
23046
23094
|
}, [
|
|
23047
|
-
|
|
23095
|
+
uW,
|
|
23048
23096
|
W,
|
|
23049
23097
|
G,
|
|
23050
23098
|
T,
|
|
23051
|
-
|
|
23052
|
-
|
|
23099
|
+
SW,
|
|
23100
|
+
vW,
|
|
23053
23101
|
H,
|
|
23054
23102
|
p
|
|
23055
|
-
]),
|
|
23056
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
23103
|
+
]), TW = (0, import_react.useCallback)(function(e2) {
|
|
23104
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), wW());
|
|
23057
23105
|
}, [
|
|
23058
23106
|
q,
|
|
23059
|
-
|
|
23060
|
-
]),
|
|
23061
|
-
|
|
23107
|
+
wW
|
|
23108
|
+
]), EW = (0, import_react.useCallback)(function() {
|
|
23109
|
+
uW({
|
|
23062
23110
|
type: "focus"
|
|
23063
23111
|
});
|
|
23064
|
-
}, []),
|
|
23065
|
-
|
|
23112
|
+
}, []), DW = (0, import_react.useCallback)(function() {
|
|
23113
|
+
uW({
|
|
23066
23114
|
type: "blur"
|
|
23067
23115
|
});
|
|
23068
|
-
}, []),
|
|
23069
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
23116
|
+
}, []), OW = (0, import_react.useCallback)(function() {
|
|
23117
|
+
j || (isIeOrEdge() ? setTimeout(wW, 0) : wW());
|
|
23070
23118
|
}, [
|
|
23071
23119
|
j,
|
|
23072
|
-
|
|
23073
|
-
]),
|
|
23120
|
+
wW
|
|
23121
|
+
]), kW = function(e2) {
|
|
23074
23122
|
return l ? null : e2;
|
|
23075
|
-
},
|
|
23076
|
-
return M ? null :
|
|
23077
|
-
},
|
|
23078
|
-
return I ? null :
|
|
23079
|
-
},
|
|
23123
|
+
}, AW = function(e2) {
|
|
23124
|
+
return M ? null : kW(e2);
|
|
23125
|
+
}, jW = function(e2) {
|
|
23126
|
+
return I ? null : kW(e2);
|
|
23127
|
+
}, MW = function(e2) {
|
|
23080
23128
|
L && e2.stopPropagation();
|
|
23081
|
-
},
|
|
23129
|
+
}, NW = (0, import_react.useMemo)(function() {
|
|
23082
23130
|
return function() {
|
|
23083
23131
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, u2 = e2.role, d2 = e2.onKeyDown, f2 = e2.onFocus, p2 = e2.onBlur, m2 = e2.onClick, h2 = e2.onDragEnter, g2 = e2.onDragOver, _2 = e2.onDragLeave, v2 = e2.onDrop, y2 = _objectWithoutProperties$2(e2, _excluded3);
|
|
23084
23132
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
23085
|
-
onKeyDown:
|
|
23086
|
-
onFocus:
|
|
23087
|
-
onBlur:
|
|
23088
|
-
onClick:
|
|
23089
|
-
onDragEnter:
|
|
23090
|
-
onDragOver:
|
|
23091
|
-
onDragLeave:
|
|
23092
|
-
onDrop:
|
|
23133
|
+
onKeyDown: AW(composeEventHandlers(d2, TW)),
|
|
23134
|
+
onFocus: AW(composeEventHandlers(f2, EW)),
|
|
23135
|
+
onBlur: AW(composeEventHandlers(p2, DW)),
|
|
23136
|
+
onClick: kW(composeEventHandlers(m2, OW)),
|
|
23137
|
+
onDragEnter: jW(composeEventHandlers(h2, yW)),
|
|
23138
|
+
onDragOver: jW(composeEventHandlers(g2, bW)),
|
|
23139
|
+
onDragLeave: jW(composeEventHandlers(_2, xW)),
|
|
23140
|
+
onDrop: jW(composeEventHandlers(v2, CW)),
|
|
23093
23141
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23094
23142
|
}, c2, q), !l && !M ? {
|
|
23095
23143
|
tabIndex: 0
|
|
@@ -23097,20 +23145,20 @@ ${c}
|
|
|
23097
23145
|
};
|
|
23098
23146
|
}, [
|
|
23099
23147
|
q,
|
|
23100
|
-
|
|
23101
|
-
|
|
23102
|
-
|
|
23148
|
+
TW,
|
|
23149
|
+
EW,
|
|
23150
|
+
DW,
|
|
23151
|
+
OW,
|
|
23103
23152
|
yW,
|
|
23104
|
-
|
|
23105
|
-
|
|
23106
|
-
|
|
23107
|
-
mW,
|
|
23153
|
+
bW,
|
|
23154
|
+
xW,
|
|
23155
|
+
CW,
|
|
23108
23156
|
M,
|
|
23109
23157
|
I,
|
|
23110
23158
|
l
|
|
23111
|
-
]),
|
|
23159
|
+
]), PW = (0, import_react.useCallback)(function(e2) {
|
|
23112
23160
|
e2.stopPropagation();
|
|
23113
|
-
}, []),
|
|
23161
|
+
}, []), FW = (0, import_react.useMemo)(function() {
|
|
23114
23162
|
return function() {
|
|
23115
23163
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, l2 = e2.onChange, u2 = e2.onClick, d2 = _objectWithoutProperties$2(e2, _excluded4);
|
|
23116
23164
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -23129,25 +23177,25 @@ ${c}
|
|
|
23129
23177
|
width: "1px",
|
|
23130
23178
|
whiteSpace: "nowrap"
|
|
23131
23179
|
},
|
|
23132
|
-
onChange:
|
|
23133
|
-
onClick:
|
|
23180
|
+
onChange: kW(composeEventHandlers(l2, CW)),
|
|
23181
|
+
onClick: kW(composeEventHandlers(u2, PW)),
|
|
23134
23182
|
tabIndex: -1
|
|
23135
|
-
}, c2,
|
|
23183
|
+
}, c2, cW)), d2);
|
|
23136
23184
|
};
|
|
23137
23185
|
}, [
|
|
23138
|
-
|
|
23186
|
+
cW,
|
|
23139
23187
|
c,
|
|
23140
23188
|
p,
|
|
23141
|
-
|
|
23189
|
+
CW,
|
|
23142
23190
|
l
|
|
23143
23191
|
]);
|
|
23144
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
23145
|
-
isFocused:
|
|
23146
|
-
getRootProps:
|
|
23147
|
-
getInputProps:
|
|
23192
|
+
return _objectSpread$7(_objectSpread$7({}, Z), {}, {
|
|
23193
|
+
isFocused: dW && !l,
|
|
23194
|
+
getRootProps: NW,
|
|
23195
|
+
getInputProps: FW,
|
|
23148
23196
|
rootRef: q,
|
|
23149
|
-
inputRef:
|
|
23150
|
-
open:
|
|
23197
|
+
inputRef: cW,
|
|
23198
|
+
open: kW(wW)
|
|
23151
23199
|
});
|
|
23152
23200
|
}
|
|
23153
23201
|
function reducer$2(e, r) {
|
|
@@ -23379,47 +23427,47 @@ ${c}
|
|
|
23379
23427
|
html: I
|
|
23380
23428
|
})
|
|
23381
23429
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
23382
|
-
let q = w && "text-primary",
|
|
23383
|
-
r[48] !== q || r[49] !==
|
|
23384
|
-
let
|
|
23385
|
-
r[51] ===
|
|
23430
|
+
let q = w && "text-primary", cW = T && "text-destructive", lW;
|
|
23431
|
+
r[48] !== q || r[49] !== cW ? (lW = cn(q, cW), r[48] = q, r[49] = cW, r[50] = lW) : lW = r[50];
|
|
23432
|
+
let Z;
|
|
23433
|
+
r[51] === lW ? Z = r[52] : (Z = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23386
23434
|
strokeWidth: 1.4,
|
|
23387
|
-
className:
|
|
23388
|
-
}), r[51] =
|
|
23389
|
-
let
|
|
23390
|
-
r[53] !==
|
|
23391
|
-
let
|
|
23392
|
-
r[56] ===
|
|
23435
|
+
className: lW
|
|
23436
|
+
}), r[51] = lW, r[52] = Z);
|
|
23437
|
+
let uW = w && "text-primary", dW = T && "text-destructive", fW;
|
|
23438
|
+
r[53] !== uW || r[54] !== dW ? (fW = cn(uW, dW), r[53] = uW, r[54] = dW, r[55] = fW) : fW = r[55];
|
|
23439
|
+
let pW;
|
|
23440
|
+
r[56] === fW ? pW = r[57] : (pW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23393
23441
|
strokeWidth: 1.4,
|
|
23394
|
-
className:
|
|
23395
|
-
}), r[56] =
|
|
23396
|
-
let
|
|
23397
|
-
r[58] !==
|
|
23442
|
+
className: fW
|
|
23443
|
+
}), r[56] = fW, r[57] = pW);
|
|
23444
|
+
let mW;
|
|
23445
|
+
r[58] !== Z || r[59] !== pW ? (mW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23398
23446
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
23399
23447
|
children: [
|
|
23400
|
-
|
|
23401
|
-
|
|
23448
|
+
Z,
|
|
23449
|
+
pW
|
|
23402
23450
|
]
|
|
23403
|
-
}), r[58] =
|
|
23404
|
-
let
|
|
23405
|
-
r[61] !== G || r[62] !==
|
|
23451
|
+
}), r[58] = Z, r[59] = pW, r[60] = mW) : mW = r[60];
|
|
23452
|
+
let hW;
|
|
23453
|
+
r[61] !== G || r[62] !== mW ? (hW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23406
23454
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
23407
23455
|
children: [
|
|
23408
23456
|
G,
|
|
23409
|
-
|
|
23457
|
+
mW
|
|
23410
23458
|
]
|
|
23411
|
-
}), r[61] = G, r[62] =
|
|
23412
|
-
let
|
|
23413
|
-
r[64] !== W || r[65] !==
|
|
23459
|
+
}), r[61] = G, r[62] = mW, r[63] = hW) : hW = r[63];
|
|
23460
|
+
let gW;
|
|
23461
|
+
r[64] !== W || r[65] !== hW || r[66] !== z || r[67] !== B ? (gW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23414
23462
|
className: z,
|
|
23415
23463
|
...B,
|
|
23416
23464
|
children: [
|
|
23417
23465
|
W,
|
|
23418
|
-
|
|
23466
|
+
hW
|
|
23419
23467
|
]
|
|
23420
|
-
}), r[64] = W, r[65] =
|
|
23421
|
-
let
|
|
23422
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
23468
|
+
}), r[64] = W, r[65] = hW, r[66] = z, r[67] = B, r[68] = gW) : gW = r[68];
|
|
23469
|
+
let _W;
|
|
23470
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (_W = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
23423
23471
|
className: "flex flex-row gap-1",
|
|
23424
23472
|
children: [
|
|
23425
23473
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23455,17 +23503,17 @@ ${c}
|
|
|
23455
23503
|
})
|
|
23456
23504
|
})
|
|
23457
23505
|
]
|
|
23458
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
23459
|
-
let
|
|
23460
|
-
return r[75] !==
|
|
23506
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = _W) : _W = r[74];
|
|
23507
|
+
let yW;
|
|
23508
|
+
return r[75] !== gW || r[76] !== _W ? (yW = (0, import_jsx_runtime.jsx)("section", {
|
|
23461
23509
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
23462
23510
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
23463
23511
|
children: [
|
|
23464
|
-
|
|
23465
|
-
|
|
23512
|
+
gW,
|
|
23513
|
+
_W
|
|
23466
23514
|
]
|
|
23467
23515
|
})
|
|
23468
|
-
}), r[75] =
|
|
23516
|
+
}), r[75] = gW, r[76] = _W, r[77] = yW) : yW = r[77], yW;
|
|
23469
23517
|
};
|
|
23470
23518
|
function _temp$11(e) {
|
|
23471
23519
|
Logger.error(e), toast({
|
|
@@ -23561,75 +23609,75 @@ ${c}
|
|
|
23561
23609
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
23562
23610
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23563
23611
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
23564
|
-
let
|
|
23565
|
-
r[13] === f ?
|
|
23612
|
+
let cW;
|
|
23613
|
+
r[13] === f ? cW = r[14] : (cW = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23566
23614
|
className: "text-center",
|
|
23567
23615
|
children: renderHTML({
|
|
23568
23616
|
html: f
|
|
23569
23617
|
})
|
|
23570
|
-
}), r[13] = f, r[14] =
|
|
23571
|
-
let
|
|
23572
|
-
r[15] === L ?
|
|
23618
|
+
}), r[13] = f, r[14] = cW);
|
|
23619
|
+
let lW;
|
|
23620
|
+
r[15] === L ? lW = r[16] : (lW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
23573
23621
|
kind: "danger",
|
|
23574
23622
|
className: "rounded",
|
|
23575
23623
|
children: L ?? "Invalid input"
|
|
23576
|
-
}), r[15] = L, r[16] =
|
|
23577
|
-
let
|
|
23578
|
-
r[17] === c ?
|
|
23624
|
+
}), r[15] = L, r[16] = lW);
|
|
23625
|
+
let Z;
|
|
23626
|
+
r[17] === c ? Z = r[18] : (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
23579
23627
|
children: c
|
|
23580
|
-
}), r[17] = c, r[18] =
|
|
23581
|
-
let
|
|
23582
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
23628
|
+
}), r[17] = c, r[18] = Z);
|
|
23629
|
+
let uW;
|
|
23630
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (uW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
23583
23631
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
23584
23632
|
variant: "text",
|
|
23585
23633
|
onClick: (e2) => {
|
|
23586
23634
|
e2.preventDefault(), B();
|
|
23587
23635
|
},
|
|
23588
23636
|
children: S
|
|
23589
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
23590
|
-
let
|
|
23591
|
-
r[23] === h ?
|
|
23637
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = uW) : uW = r[22];
|
|
23638
|
+
let dW = v || h, fW;
|
|
23639
|
+
r[23] === h ? fW = r[24] : (fW = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
23592
23640
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
23593
|
-
}), r[23] = h, r[24] =
|
|
23594
|
-
let
|
|
23595
|
-
r[25] !== g || r[26] !==
|
|
23641
|
+
}), r[23] = h, r[24] = fW);
|
|
23642
|
+
let pW;
|
|
23643
|
+
r[25] !== g || r[26] !== dW || r[27] !== fW || r[28] !== I ? (pW = (0, import_jsx_runtime.jsxs)(Button, {
|
|
23596
23644
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
23597
23645
|
variant: I,
|
|
23598
|
-
disabled:
|
|
23646
|
+
disabled: dW,
|
|
23599
23647
|
type: "submit",
|
|
23600
23648
|
children: [
|
|
23601
|
-
|
|
23649
|
+
fW,
|
|
23602
23650
|
g
|
|
23603
23651
|
]
|
|
23604
|
-
}), r[25] = g, r[26] =
|
|
23605
|
-
let
|
|
23606
|
-
r[30] !== _ || r[31] !==
|
|
23607
|
-
let
|
|
23608
|
-
r[33] !==
|
|
23652
|
+
}), r[25] = g, r[26] = dW, r[27] = fW, r[28] = I, r[29] = pW) : pW = r[29];
|
|
23653
|
+
let mW;
|
|
23654
|
+
r[30] !== _ || r[31] !== pW ? (mW = withTooltip(pW, _), r[30] = _, r[31] = pW, r[32] = mW) : mW = r[32];
|
|
23655
|
+
let hW;
|
|
23656
|
+
r[33] !== mW || r[34] !== uW ? (hW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23609
23657
|
className: "flex justify-end gap-2 font-code",
|
|
23610
23658
|
children: [
|
|
23611
|
-
|
|
23612
|
-
|
|
23659
|
+
uW,
|
|
23660
|
+
mW
|
|
23613
23661
|
]
|
|
23614
|
-
}), r[33] =
|
|
23615
|
-
let
|
|
23616
|
-
r[36] !==
|
|
23662
|
+
}), r[33] = mW, r[34] = uW, r[35] = hW) : hW = r[35];
|
|
23663
|
+
let gW;
|
|
23664
|
+
r[36] !== hW || r[37] !== G || r[38] !== q || r[39] !== cW || r[40] !== lW || r[41] !== Z ? (gW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23617
23665
|
className: G,
|
|
23618
23666
|
onKeyDown: q,
|
|
23619
23667
|
children: [
|
|
23620
|
-
|
|
23668
|
+
cW,
|
|
23669
|
+
lW,
|
|
23621
23670
|
Z,
|
|
23622
|
-
|
|
23623
|
-
oW
|
|
23671
|
+
hW
|
|
23624
23672
|
]
|
|
23625
|
-
}), r[36] =
|
|
23626
|
-
let
|
|
23627
|
-
return r[43] !==
|
|
23673
|
+
}), r[36] = hW, r[37] = G, r[38] = q, r[39] = cW, r[40] = lW, r[41] = Z, r[42] = gW) : gW = r[42];
|
|
23674
|
+
let _W;
|
|
23675
|
+
return r[43] !== gW || r[44] !== H ? (_W = (0, import_jsx_runtime.jsx)("form", {
|
|
23628
23676
|
className: "contents",
|
|
23629
23677
|
ref: j,
|
|
23630
23678
|
onSubmit: H,
|
|
23631
|
-
children:
|
|
23632
|
-
}), r[43] =
|
|
23679
|
+
children: gW
|
|
23680
|
+
}), r[43] = gW, r[44] = H, r[45] = _W) : _W = r[45], _W;
|
|
23633
23681
|
};
|
|
23634
23682
|
var Form = (e) => {
|
|
23635
23683
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -25402,8 +25450,8 @@ ${c}
|
|
|
25402
25450
|
points: extractSunburstPoints(e2.points)
|
|
25403
25451
|
}));
|
|
25404
25452
|
}, r[29] = u, r[30] = G);
|
|
25405
|
-
let q = useEvent_default(G),
|
|
25406
|
-
r[31] === u ?
|
|
25453
|
+
let q = useEvent_default(G), cW;
|
|
25454
|
+
r[31] === u ? cW = r[32] : (cW = (e2) => {
|
|
25407
25455
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25408
25456
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25409
25457
|
u((e3) => ({
|
|
@@ -25414,9 +25462,9 @@ ${c}
|
|
|
25414
25462
|
points: r2,
|
|
25415
25463
|
indices: c2
|
|
25416
25464
|
}));
|
|
25417
|
-
}, r[31] = u, r[32] =
|
|
25418
|
-
let
|
|
25419
|
-
r[33] === u ?
|
|
25465
|
+
}, r[31] = u, r[32] = cW);
|
|
25466
|
+
let lW = useEvent_default(cW), Z;
|
|
25467
|
+
r[33] === u ? Z = r[34] : (Z = (e2) => {
|
|
25420
25468
|
e2 && u((r2) => ({
|
|
25421
25469
|
...r2,
|
|
25422
25470
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -25425,9 +25473,9 @@ ${c}
|
|
|
25425
25473
|
range: e2.range,
|
|
25426
25474
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
25427
25475
|
}));
|
|
25428
|
-
}, r[33] = u, r[34] =
|
|
25429
|
-
let
|
|
25430
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
25476
|
+
}, r[33] = u, r[34] = Z);
|
|
25477
|
+
let uW = useEvent_default(Z), dW = m.frames ?? void 0, fW = useEvent_default(_temp3$3), pW;
|
|
25478
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== lW || r[42] !== uW || r[43] !== dW || r[44] !== fW || r[45] !== R ? (pW = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25431
25479
|
...m,
|
|
25432
25480
|
layout: h,
|
|
25433
25481
|
onRelayout: R,
|
|
@@ -25435,13 +25483,13 @@ ${c}
|
|
|
25435
25483
|
onTreemapClick: W,
|
|
25436
25484
|
onSunburstClick: q,
|
|
25437
25485
|
config: L,
|
|
25438
|
-
onClick:
|
|
25439
|
-
onSelected:
|
|
25486
|
+
onClick: lW,
|
|
25487
|
+
onSelected: uW,
|
|
25440
25488
|
className: "w-full",
|
|
25441
25489
|
useResizeHandler: true,
|
|
25442
|
-
frames:
|
|
25443
|
-
onError:
|
|
25444
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
25490
|
+
frames: dW,
|
|
25491
|
+
onError: fW
|
|
25492
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = lW, r[42] = uW, r[43] = dW, r[44] = fW, r[45] = R, r[46] = pW) : pW = r[46], pW;
|
|
25445
25493
|
});
|
|
25446
25494
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25447
25495
|
function _temp$8(e) {
|
|
@@ -25573,8 +25621,8 @@ ${c}
|
|
|
25573
25621
|
c[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = cn("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60", "data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"), c[17] = G) : G = c[17];
|
|
25574
25622
|
let q;
|
|
25575
25623
|
c[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = cn("absolute bg-blue-500 dark:bg-primary", "data-[orientation=horizontal]:h-full", "data-[orientation=vertical]:w-full", "data-disabled:opacity-50", "hover:cursor-grab active:cursor-grabbing"), c[18] = q) : q = c[18];
|
|
25576
|
-
let
|
|
25577
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
25624
|
+
let cW;
|
|
25625
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (cW = (0, import_jsx_runtime.jsx)(Track, {
|
|
25578
25626
|
ref: E,
|
|
25579
25627
|
"data-testid": "track",
|
|
25580
25628
|
className: G,
|
|
@@ -25585,9 +25633,9 @@ ${c}
|
|
|
25585
25633
|
onPointerMove: z,
|
|
25586
25634
|
onPointerUp: H
|
|
25587
25635
|
})
|
|
25588
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25589
|
-
let
|
|
25590
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
25636
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = cW) : cW = c[22];
|
|
25637
|
+
let lW;
|
|
25638
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (lW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25591
25639
|
asChild: true,
|
|
25592
25640
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25593
25641
|
"data-testid": "thumb",
|
|
@@ -25597,30 +25645,30 @@ ${c}
|
|
|
25597
25645
|
onMouseEnter: m.setTrue,
|
|
25598
25646
|
onMouseLeave: m.setFalse
|
|
25599
25647
|
})
|
|
25600
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
25601
|
-
let
|
|
25602
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
25648
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = lW) : lW = c[25];
|
|
25649
|
+
let Z;
|
|
25650
|
+
c[26] !== h || c[27] !== u.value || c[28] !== d ? (Z = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25603
25651
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
25604
25652
|
locale: h
|
|
25605
25653
|
})
|
|
25606
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
25607
|
-
let
|
|
25608
|
-
c[30] ===
|
|
25609
|
-
children:
|
|
25610
|
-
}), c[30] =
|
|
25611
|
-
let
|
|
25612
|
-
c[32] !== f || c[33] !==
|
|
25654
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = Z) : Z = c[29];
|
|
25655
|
+
let uW;
|
|
25656
|
+
c[30] === Z ? uW = c[31] : (uW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25657
|
+
children: Z
|
|
25658
|
+
}), c[30] = Z, c[31] = uW);
|
|
25659
|
+
let dW;
|
|
25660
|
+
c[32] !== f || c[33] !== lW || c[34] !== uW ? (dW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25613
25661
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25614
25662
|
delayDuration: 0,
|
|
25615
25663
|
open: f,
|
|
25616
25664
|
children: [
|
|
25617
|
-
|
|
25618
|
-
|
|
25665
|
+
lW,
|
|
25666
|
+
uW
|
|
25619
25667
|
]
|
|
25620
25668
|
})
|
|
25621
|
-
}), c[32] = f, c[33] =
|
|
25622
|
-
let
|
|
25623
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
25669
|
+
}), c[32] = f, c[33] = lW, c[34] = uW, c[35] = dW) : dW = c[35];
|
|
25670
|
+
let fW;
|
|
25671
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (fW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25624
25672
|
asChild: true,
|
|
25625
25673
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25626
25674
|
"data-testid": "thumb",
|
|
@@ -25630,39 +25678,39 @@ ${c}
|
|
|
25630
25678
|
onMouseEnter: m.setTrue,
|
|
25631
25679
|
onMouseLeave: m.setFalse
|
|
25632
25680
|
})
|
|
25633
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
25634
|
-
let
|
|
25635
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
25681
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = fW) : fW = c[38];
|
|
25682
|
+
let pW;
|
|
25683
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (pW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25636
25684
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
25637
25685
|
locale: h
|
|
25638
25686
|
})
|
|
25639
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
25640
|
-
let
|
|
25641
|
-
c[43] ===
|
|
25642
|
-
children:
|
|
25643
|
-
}), c[43] =
|
|
25644
|
-
let
|
|
25645
|
-
c[45] !== f || c[46] !==
|
|
25687
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = pW) : pW = c[42];
|
|
25688
|
+
let mW;
|
|
25689
|
+
c[43] === pW ? mW = c[44] : (mW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25690
|
+
children: pW
|
|
25691
|
+
}), c[43] = pW, c[44] = mW);
|
|
25692
|
+
let hW;
|
|
25693
|
+
c[45] !== f || c[46] !== fW || c[47] !== mW ? (hW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25646
25694
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25647
25695
|
delayDuration: 0,
|
|
25648
25696
|
open: f,
|
|
25649
25697
|
children: [
|
|
25650
|
-
|
|
25651
|
-
|
|
25698
|
+
fW,
|
|
25699
|
+
mW
|
|
25652
25700
|
]
|
|
25653
25701
|
})
|
|
25654
|
-
}), c[45] = f, c[46] =
|
|
25655
|
-
let
|
|
25656
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25702
|
+
}), c[45] = f, c[46] = fW, c[47] = mW, c[48] = hW) : hW = c[48];
|
|
25703
|
+
let gW;
|
|
25704
|
+
return c[49] !== M || c[50] !== u || c[51] !== cW || c[52] !== dW || c[53] !== hW || c[54] !== W ? (gW = (0, import_jsx_runtime.jsxs)(Root, {
|
|
25657
25705
|
ref: M,
|
|
25658
25706
|
className: W,
|
|
25659
25707
|
...u,
|
|
25660
25708
|
children: [
|
|
25661
|
-
|
|
25662
|
-
|
|
25663
|
-
|
|
25709
|
+
cW,
|
|
25710
|
+
dW,
|
|
25711
|
+
hW
|
|
25664
25712
|
]
|
|
25665
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25713
|
+
}), c[49] = M, c[50] = u, c[51] = cW, c[52] = dW, c[53] = hW, c[54] = W, c[55] = gW) : gW = c[55], gW;
|
|
25666
25714
|
});
|
|
25667
25715
|
RangeSlider.displayName = Root.displayName;
|
|
25668
25716
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25713,14 +25761,14 @@ ${c}
|
|
|
25713
25761
|
}, q = (e2) => {
|
|
25714
25762
|
h && l(e2);
|
|
25715
25763
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
25716
|
-
let
|
|
25717
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
25764
|
+
let cW, lW;
|
|
25765
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (cW = () => {
|
|
25718
25766
|
h && !dequal(T, u) && l(T);
|
|
25719
|
-
},
|
|
25767
|
+
}, lW = () => {
|
|
25720
25768
|
h && !dequal(T, u) && l(T);
|
|
25721
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
25722
|
-
let
|
|
25723
|
-
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] !==
|
|
25769
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = cW, r[19] = lW) : (cW = r[18], lW = r[19]);
|
|
25770
|
+
let Z;
|
|
25771
|
+
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] !== cW || r[31] !== lW || r[32] !== b ? (Z = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25724
25772
|
id: S,
|
|
25725
25773
|
className: W,
|
|
25726
25774
|
value: T,
|
|
@@ -25731,36 +25779,36 @@ ${c}
|
|
|
25731
25779
|
disabled: y,
|
|
25732
25780
|
onValueChange: G,
|
|
25733
25781
|
onValueCommit: q,
|
|
25734
|
-
onPointerUp:
|
|
25735
|
-
onMouseUp:
|
|
25782
|
+
onPointerUp: cW,
|
|
25783
|
+
onMouseUp: lW,
|
|
25736
25784
|
valueMap: b
|
|
25737
|
-
}), 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] =
|
|
25738
|
-
let
|
|
25739
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
25785
|
+
}), 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] = cW, r[31] = lW, r[32] = b, r[33] = Z) : Z = r[33];
|
|
25786
|
+
let uW;
|
|
25787
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (uW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25740
25788
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
25741
25789
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
25742
25790
|
locale: w
|
|
25743
25791
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
25744
25792
|
locale: w
|
|
25745
25793
|
})}`
|
|
25746
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
25747
|
-
let
|
|
25748
|
-
r[39] !==
|
|
25794
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = uW) : uW = r[38];
|
|
25795
|
+
let dW;
|
|
25796
|
+
r[39] !== Z || r[40] !== uW || r[41] !== B ? (dW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25749
25797
|
className: B,
|
|
25750
25798
|
children: [
|
|
25751
|
-
|
|
25752
|
-
|
|
25799
|
+
Z,
|
|
25800
|
+
uW
|
|
25753
25801
|
]
|
|
25754
|
-
}), r[39] =
|
|
25755
|
-
let
|
|
25756
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
25802
|
+
}), r[39] = Z, r[40] = uW, r[41] = B, r[42] = dW) : dW = r[42];
|
|
25803
|
+
let fW;
|
|
25804
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== dW || r[47] !== M || r[48] !== L ? (fW = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25757
25805
|
label: c,
|
|
25758
25806
|
id: S,
|
|
25759
25807
|
align: M,
|
|
25760
25808
|
className: L,
|
|
25761
25809
|
fullWidth: v,
|
|
25762
|
-
children:
|
|
25763
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
25810
|
+
children: dW
|
|
25811
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = dW, r[47] = M, r[48] = L, r[49] = fW) : fW = r[49], fW;
|
|
25764
25812
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
25765
25813
|
r.exports = u;
|
|
25766
25814
|
var c = {
|
|
@@ -26466,7 +26514,7 @@ ${c}
|
|
|
26466
26514
|
return true;
|
|
26467
26515
|
}
|
|
26468
26516
|
}
|
|
26469
|
-
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-
|
|
26517
|
+
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-BFJTyykA.js")), VegaPlugin = class {
|
|
26470
26518
|
constructor() {
|
|
26471
26519
|
__publicField(this, "tagName", "marimo-vega");
|
|
26472
26520
|
__publicField(this, "validator", object({
|
|
@@ -26796,7 +26844,7 @@ ${c}
|
|
|
26796
26844
|
themeVariables: e.data.theme_variables
|
|
26797
26845
|
});
|
|
26798
26846
|
}
|
|
26799
|
-
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-
|
|
26847
|
+
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-D-HYBMEV.js").then(async (m) => {
|
|
26800
26848
|
await m.__tla;
|
|
26801
26849
|
return m;
|
|
26802
26850
|
})), import_compiler_runtime$22 = require_compiler_runtime();
|
|
@@ -29051,7 +29099,7 @@ ${c}
|
|
|
29051
29099
|
areRegExpsEqual: H,
|
|
29052
29100
|
areSetsEqual: W,
|
|
29053
29101
|
createIsNestedEqual: r2
|
|
29054
|
-
}),
|
|
29102
|
+
}), cW = Object.freeze({
|
|
29055
29103
|
areArraysEqual: O,
|
|
29056
29104
|
areDatesEqual: j,
|
|
29057
29105
|
areMapsEqual: I,
|
|
@@ -29059,40 +29107,40 @@ ${c}
|
|
|
29059
29107
|
areRegExpsEqual: H,
|
|
29060
29108
|
areSetsEqual: G,
|
|
29061
29109
|
createIsNestedEqual: r2
|
|
29062
|
-
}),
|
|
29063
|
-
function
|
|
29064
|
-
return
|
|
29110
|
+
}), lW = T(q);
|
|
29111
|
+
function Z(e3, r3) {
|
|
29112
|
+
return lW(e3, r3, void 0);
|
|
29065
29113
|
}
|
|
29066
|
-
var
|
|
29114
|
+
var uW = T(l(q, {
|
|
29067
29115
|
createIsNestedEqual: function() {
|
|
29068
29116
|
return f;
|
|
29069
29117
|
}
|
|
29070
29118
|
}));
|
|
29071
|
-
function
|
|
29072
|
-
return
|
|
29119
|
+
function dW(e3, r3) {
|
|
29120
|
+
return uW(e3, r3, void 0);
|
|
29073
29121
|
}
|
|
29074
|
-
var
|
|
29075
|
-
function
|
|
29076
|
-
return
|
|
29122
|
+
var fW = T(cW);
|
|
29123
|
+
function pW(e3, r3) {
|
|
29124
|
+
return fW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29077
29125
|
}
|
|
29078
|
-
var
|
|
29126
|
+
var mW = T(l(cW, {
|
|
29079
29127
|
createIsNestedEqual: function() {
|
|
29080
29128
|
return f;
|
|
29081
29129
|
}
|
|
29082
29130
|
}));
|
|
29083
|
-
function
|
|
29084
|
-
return
|
|
29131
|
+
function hW(e3, r3) {
|
|
29132
|
+
return mW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29085
29133
|
}
|
|
29086
|
-
function
|
|
29134
|
+
function gW(e3) {
|
|
29087
29135
|
return T(l(q, e3(q)));
|
|
29088
29136
|
}
|
|
29089
|
-
function
|
|
29090
|
-
var r3 = T(l(
|
|
29137
|
+
function _W(e3) {
|
|
29138
|
+
var r3 = T(l(cW, e3(cW)));
|
|
29091
29139
|
return (function(e4, c2, l2) {
|
|
29092
29140
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29093
29141
|
});
|
|
29094
29142
|
}
|
|
29095
|
-
e2.circularDeepEqual =
|
|
29143
|
+
e2.circularDeepEqual = pW, e2.circularShallowEqual = hW, e2.createCustomCircularEqual = _W, e2.createCustomEqual = gW, e2.deepEqual = Z, e2.sameValueZeroEqual = f, e2.shallowEqual = dW, Object.defineProperty(e2, "__esModule", {
|
|
29096
29144
|
value: true
|
|
29097
29145
|
});
|
|
29098
29146
|
}));
|
|
@@ -29118,7 +29166,7 @@ ${c}
|
|
|
29118
29166
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
29119
29167
|
Object.defineProperty(e, "__esModule", {
|
|
29120
29168
|
value: true
|
|
29121
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
29169
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = CW, e.correctBounds = I, e.fastPositionEqual = S, e.fastRGLPropsEqual = void 0, e.getAllCollisions = z, e.getFirstCollision = R, e.getLayoutItem = L, e.getStatics = B, e.modifyLayout = _, e.moveElement = H, e.moveElementAwayFromCollision = W, e.noop = void 0, e.perc = G, e.resizeItemInDirection = hW, e.setTopLeft = _W, e.setTransform = gW, e.sortLayoutItems = vW, e.sortLayoutItemsByColRow = bW, e.sortLayoutItemsByRowCol = yW, e.synchronizeLayoutWithChildren = xW, e.validateLayout = SW, e.withLayoutItem = v;
|
|
29122
29170
|
var r = require_fast_equals(), c = l(require_react());
|
|
29123
29171
|
function l(e2) {
|
|
29124
29172
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -29223,7 +29271,7 @@ ${c}
|
|
|
29223
29271
|
return !(e2.i === r2.i || e2.x + e2.w <= r2.x || e2.x >= r2.x + r2.w || e2.y + e2.h <= r2.y || e2.y >= r2.y + r2.h);
|
|
29224
29272
|
}
|
|
29225
29273
|
function T(e2, r2, c2, l2) {
|
|
29226
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
29274
|
+
let u2 = B(e2), d2 = h(u2), f2 = vW(e2, r2), p2 = Array(e2.length);
|
|
29227
29275
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
29228
29276
|
let h3 = y(f2[m2]);
|
|
29229
29277
|
h3.static || (h3 = M(u2, h3, r2, c2, f2, l2, d2), d2 = Math.max(d2, h3.y + h3.h), u2.push(h3)), p2[e2.indexOf(f2[m2])] = h3, h3.moved = false;
|
|
@@ -29281,7 +29329,7 @@ ${c}
|
|
|
29281
29329
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
29282
29330
|
let h2 = r2.x, _2 = r2.y;
|
|
29283
29331
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
29284
|
-
let v2 =
|
|
29332
|
+
let v2 = vW(e2, f2);
|
|
29285
29333
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
29286
29334
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
29287
29335
|
if (b2 && m2) return g(e2);
|
|
@@ -29315,61 +29363,61 @@ ${c}
|
|
|
29315
29363
|
function G(e2) {
|
|
29316
29364
|
return e2 * 100 + "%";
|
|
29317
29365
|
}
|
|
29318
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
29366
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, cW = (e2, r2, c2) => e2 < 0 ? r2 : c2, lW = (e2) => Math.max(0, e2), Z = (e2) => Math.max(0, e2), uW = (e2, r2, c2) => {
|
|
29319
29367
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29320
29368
|
return {
|
|
29321
29369
|
left: l2,
|
|
29322
29370
|
width: d2,
|
|
29323
|
-
height:
|
|
29324
|
-
top:
|
|
29371
|
+
height: cW(f2, e2.height, u2),
|
|
29372
|
+
top: Z(f2)
|
|
29325
29373
|
};
|
|
29326
|
-
},
|
|
29374
|
+
}, dW = (e2, r2, c2) => {
|
|
29327
29375
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29328
29376
|
return {
|
|
29329
29377
|
top: l2,
|
|
29330
29378
|
height: d2,
|
|
29331
29379
|
width: q(e2.left, e2.width, f2, c2),
|
|
29332
|
-
left:
|
|
29380
|
+
left: lW(u2)
|
|
29333
29381
|
};
|
|
29334
|
-
},
|
|
29382
|
+
}, fW = (e2, r2, c2) => {
|
|
29335
29383
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29336
29384
|
return {
|
|
29337
29385
|
height: u2,
|
|
29338
29386
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
29339
|
-
top:
|
|
29340
|
-
left:
|
|
29387
|
+
top: Z(l2),
|
|
29388
|
+
left: lW(f2)
|
|
29341
29389
|
};
|
|
29342
|
-
},
|
|
29390
|
+
}, pW = (e2, r2, c2) => {
|
|
29343
29391
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29344
29392
|
return {
|
|
29345
29393
|
width: f2,
|
|
29346
29394
|
left: u2,
|
|
29347
|
-
height:
|
|
29348
|
-
top:
|
|
29395
|
+
height: cW(l2, e2.height, d2),
|
|
29396
|
+
top: Z(l2)
|
|
29349
29397
|
};
|
|
29350
|
-
},
|
|
29351
|
-
n:
|
|
29398
|
+
}, mW = {
|
|
29399
|
+
n: uW,
|
|
29352
29400
|
ne: function() {
|
|
29353
|
-
return
|
|
29401
|
+
return uW(arguments.length <= 0 ? void 0 : arguments[0], dW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29354
29402
|
},
|
|
29355
|
-
e:
|
|
29403
|
+
e: dW,
|
|
29356
29404
|
se: function() {
|
|
29357
|
-
return
|
|
29405
|
+
return pW(arguments.length <= 0 ? void 0 : arguments[0], dW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29358
29406
|
},
|
|
29359
|
-
s:
|
|
29407
|
+
s: pW,
|
|
29360
29408
|
sw: function() {
|
|
29361
|
-
return
|
|
29409
|
+
return pW(arguments.length <= 0 ? void 0 : arguments[0], fW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29362
29410
|
},
|
|
29363
|
-
w:
|
|
29411
|
+
w: fW,
|
|
29364
29412
|
nw: function() {
|
|
29365
|
-
return
|
|
29413
|
+
return uW(arguments.length <= 0 ? void 0 : arguments[0], fW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29366
29414
|
}
|
|
29367
29415
|
};
|
|
29368
|
-
function
|
|
29369
|
-
let u2 =
|
|
29416
|
+
function hW(e2, r2, c2, l2) {
|
|
29417
|
+
let u2 = mW[e2];
|
|
29370
29418
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
29371
29419
|
}
|
|
29372
|
-
function
|
|
29420
|
+
function gW(e2) {
|
|
29373
29421
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
29374
29422
|
return {
|
|
29375
29423
|
transform: d2,
|
|
@@ -29382,7 +29430,7 @@ ${c}
|
|
|
29382
29430
|
position: "absolute"
|
|
29383
29431
|
};
|
|
29384
29432
|
}
|
|
29385
|
-
function
|
|
29433
|
+
function _W(e2) {
|
|
29386
29434
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
29387
29435
|
return {
|
|
29388
29436
|
top: `${r2}px`,
|
|
@@ -29392,20 +29440,20 @@ ${c}
|
|
|
29392
29440
|
position: "absolute"
|
|
29393
29441
|
};
|
|
29394
29442
|
}
|
|
29395
|
-
function
|
|
29396
|
-
return r2 === "horizontal" ?
|
|
29443
|
+
function vW(e2, r2) {
|
|
29444
|
+
return r2 === "horizontal" ? bW(e2) : r2 === "vertical" ? yW(e2) : e2;
|
|
29397
29445
|
}
|
|
29398
|
-
function
|
|
29446
|
+
function yW(e2) {
|
|
29399
29447
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29400
29448
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
29401
29449
|
});
|
|
29402
29450
|
}
|
|
29403
|
-
function
|
|
29451
|
+
function bW(e2) {
|
|
29404
29452
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29405
29453
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
29406
29454
|
});
|
|
29407
29455
|
}
|
|
29408
|
-
function
|
|
29456
|
+
function xW(e2, r2, l2, u2, f2) {
|
|
29409
29457
|
e2 || (e2 = []);
|
|
29410
29458
|
let p2 = [];
|
|
29411
29459
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -29426,7 +29474,7 @@ ${c}
|
|
|
29426
29474
|
});
|
|
29427
29475
|
return f2 ? m2 : T(m2, u2, l2);
|
|
29428
29476
|
}
|
|
29429
|
-
function
|
|
29477
|
+
function SW(e2) {
|
|
29430
29478
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
29431
29479
|
"x",
|
|
29432
29480
|
"y",
|
|
@@ -29443,7 +29491,7 @@ ${c}
|
|
|
29443
29491
|
if (u3.i !== void 0 && typeof u3.i != "string") throw Error(`ReactGridLayout: ${r2}[${l2}].i must be a string! Received: ${u3.i} (${typeof u3.i})`);
|
|
29444
29492
|
}
|
|
29445
29493
|
}
|
|
29446
|
-
function
|
|
29494
|
+
function CW(e2) {
|
|
29447
29495
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
29448
29496
|
return r2 === false ? null : c2;
|
|
29449
29497
|
}
|
|
@@ -32248,7 +32296,7 @@ ${c}
|
|
|
32248
32296
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32249
32297
|
let E = useIsDragging(), O, j;
|
|
32250
32298
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
32251
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
32299
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, cW, lW, Z, uW, dW, fW, pW, mW, hW, gW, _W, vW, yW, bW, xW, SW, CW;
|
|
32252
32300
|
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) {
|
|
32253
32301
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
32254
32302
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32267,23 +32315,23 @@ ${c}
|
|
|
32267
32315
|
});
|
|
32268
32316
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
32269
32317
|
let y2 = v2;
|
|
32270
|
-
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout,
|
|
32318
|
+
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout, bW = "lg", r[58] === c.cells ? xW = r[59] : (xW = {
|
|
32271
32319
|
lg: c.cells
|
|
32272
|
-
}, r[58] = c.cells, r[59] =
|
|
32320
|
+
}, r[58] = c.cells, r[59] = xW), SW = L, CW = S, R = false;
|
|
32273
32321
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
32274
32322
|
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 ? [
|
|
32275
32323
|
20,
|
|
32276
32324
|
20
|
|
32277
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
32325
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, cW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (lW = (e3) => {
|
|
32278
32326
|
f || l({
|
|
32279
32327
|
...c,
|
|
32280
32328
|
cells: e3
|
|
32281
32329
|
});
|
|
32282
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
32330
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = lW) : lW = r[69], r[70] === g ? Z = r[71] : (Z = g ? {
|
|
32283
32331
|
i: g.i,
|
|
32284
32332
|
w: g.w || 2,
|
|
32285
32333
|
h: g.h || 2
|
|
32286
|
-
} : void 0, r[70] = g, r[71] =
|
|
32334
|
+
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (uW = (e3, r2, u2) => {
|
|
32287
32335
|
O.onDragStop(), r2 && l({
|
|
32288
32336
|
...c,
|
|
32289
32337
|
cells: [
|
|
@@ -32291,15 +32339,15 @@ ${c}
|
|
|
32291
32339
|
r2
|
|
32292
32340
|
]
|
|
32293
32341
|
});
|
|
32294
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
32342
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = uW) : uW = r[75], r[76] === O ? (dW = r[77], fW = r[78], pW = r[79]) : (dW = (e3, r2, c2, l2, u2) => {
|
|
32295
32343
|
O.onDragStart(u2);
|
|
32296
|
-
},
|
|
32344
|
+
}, fW = (e3, r2, c2, l2, u2) => {
|
|
32297
32345
|
O.onDragMove(u2);
|
|
32298
|
-
},
|
|
32346
|
+
}, pW = () => {
|
|
32299
32347
|
O.onDragStop();
|
|
32300
|
-
}, r[76] = O, r[77] =
|
|
32348
|
+
}, r[76] = O, r[77] = dW, r[78] = fW, r[79] = pW), mW = _temp3$2, hW = M, gW = M, _W = M, vW = M ? `.${DRAG_HANDLE}` : "noop";
|
|
32301
32349
|
let E2;
|
|
32302
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
32350
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), yW = u.filter(E2).map((r2) => {
|
|
32303
32351
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p = c.cellSide.get(r2.id), m3 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
32304
32352
|
code: r2.code,
|
|
32305
32353
|
mode: d,
|
|
@@ -32328,14 +32376,14 @@ ${c}
|
|
|
32328
32376
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32329
32377
|
children: m3
|
|
32330
32378
|
}, r2.id);
|
|
32331
|
-
}), 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] =
|
|
32332
|
-
} 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],
|
|
32333
|
-
let
|
|
32334
|
-
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] !==
|
|
32335
|
-
breakpoint:
|
|
32336
|
-
layouts:
|
|
32337
|
-
style:
|
|
32338
|
-
cols:
|
|
32379
|
+
}), 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] = cW, r[31] = lW, r[32] = Z, r[33] = uW, r[34] = dW, r[35] = fW, r[36] = pW, r[37] = mW, r[38] = hW, r[39] = gW, r[40] = _W, r[41] = vW, r[42] = yW, r[43] = bW, r[44] = xW, r[45] = SW, r[46] = CW;
|
|
32380
|
+
} 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], cW = r[30], lW = r[31], Z = r[32], uW = r[33], dW = r[34], fW = r[35], pW = r[36], mW = r[37], hW = r[38], gW = r[39], _W = r[40], vW = r[41], yW = r[42], bW = r[43], xW = r[44], SW = r[45], CW = r[46];
|
|
32381
|
+
let wW;
|
|
32382
|
+
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] !== cW || r[91] !== lW || r[92] !== Z || r[93] !== uW || r[94] !== dW || r[95] !== fW || r[96] !== pW || r[97] !== mW || r[98] !== hW || r[99] !== gW || r[100] !== _W || r[101] !== vW || r[102] !== yW || r[103] !== bW || r[104] !== xW || r[105] !== SW || r[106] !== CW ? (wW = (0, import_jsx_runtime.jsx)(I, {
|
|
32383
|
+
breakpoint: bW,
|
|
32384
|
+
layouts: xW,
|
|
32385
|
+
style: SW,
|
|
32386
|
+
cols: CW,
|
|
32339
32387
|
allowOverlap: R,
|
|
32340
32388
|
className: z,
|
|
32341
32389
|
containerPadding: B,
|
|
@@ -32343,23 +32391,23 @@ ${c}
|
|
|
32343
32391
|
isBounded: W,
|
|
32344
32392
|
compactType: G,
|
|
32345
32393
|
preventCollision: q,
|
|
32346
|
-
rowHeight:
|
|
32347
|
-
onLayoutChange:
|
|
32348
|
-
droppingItem:
|
|
32349
|
-
onDrop:
|
|
32350
|
-
onDragStart:
|
|
32351
|
-
onDrag:
|
|
32352
|
-
onDragStop:
|
|
32353
|
-
onResizeStop:
|
|
32354
|
-
isDraggable:
|
|
32355
|
-
isDroppable:
|
|
32356
|
-
isResizable:
|
|
32357
|
-
draggableHandle:
|
|
32358
|
-
children:
|
|
32359
|
-
}), 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] =
|
|
32360
|
-
let
|
|
32361
|
-
if (r[108] !== u || r[109] !==
|
|
32362
|
-
|
|
32394
|
+
rowHeight: cW,
|
|
32395
|
+
onLayoutChange: lW,
|
|
32396
|
+
droppingItem: Z,
|
|
32397
|
+
onDrop: uW,
|
|
32398
|
+
onDragStart: dW,
|
|
32399
|
+
onDrag: fW,
|
|
32400
|
+
onDragStop: pW,
|
|
32401
|
+
onResizeStop: mW,
|
|
32402
|
+
isDraggable: hW,
|
|
32403
|
+
isDroppable: gW,
|
|
32404
|
+
isResizable: _W,
|
|
32405
|
+
draggableHandle: vW,
|
|
32406
|
+
children: yW
|
|
32407
|
+
}), 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] = cW, r[91] = lW, r[92] = Z, r[93] = uW, r[94] = dW, r[95] = fW, r[96] = pW, r[97] = mW, r[98] = hW, r[99] = gW, r[100] = _W, r[101] = vW, r[102] = yW, r[103] = bW, r[104] = xW, r[105] = SW, r[106] = CW, r[107] = wW) : wW = r[107];
|
|
32408
|
+
let TW = wW, EW, DW, OW, kW, AW, jW, MW;
|
|
32409
|
+
if (r[108] !== u || r[109] !== TW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
32410
|
+
MW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
32363
32411
|
bb0: {
|
|
32364
32412
|
let e2;
|
|
32365
32413
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -32367,14 +32415,14 @@ ${c}
|
|
|
32367
32415
|
if (f) {
|
|
32368
32416
|
if (c.bordered) {
|
|
32369
32417
|
let e4;
|
|
32370
|
-
r[127] !==
|
|
32418
|
+
r[127] !== TW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
32371
32419
|
className: "flex flex-1 flex-col items-center",
|
|
32372
32420
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
32373
32421
|
style: L,
|
|
32374
32422
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
32375
|
-
children:
|
|
32423
|
+
children: TW
|
|
32376
32424
|
})
|
|
32377
|
-
}), r[127] =
|
|
32425
|
+
}), r[127] = TW, r[128] = L, r[129] = e4) : e4 = r[129], TW = e4;
|
|
32378
32426
|
}
|
|
32379
32427
|
let e3 = m2.filter(_temp4$2), l2;
|
|
32380
32428
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -32385,9 +32433,9 @@ ${c}
|
|
|
32385
32433
|
status: e4.status,
|
|
32386
32434
|
isScrollable: false,
|
|
32387
32435
|
hidden: false
|
|
32388
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
32436
|
+
}, e4.id), r[130] = d, r[131] = l2), MW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32389
32437
|
children: [
|
|
32390
|
-
|
|
32438
|
+
TW,
|
|
32391
32439
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32392
32440
|
className: "hidden",
|
|
32393
32441
|
children: e3.map(l2)
|
|
@@ -32398,31 +32446,31 @@ ${c}
|
|
|
32398
32446
|
}
|
|
32399
32447
|
if (c.bordered) {
|
|
32400
32448
|
let e3;
|
|
32401
|
-
r[132] ===
|
|
32449
|
+
r[132] === TW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
32402
32450
|
className: "h-full overflow-auto",
|
|
32403
|
-
children:
|
|
32404
|
-
}), r[132] =
|
|
32451
|
+
children: TW
|
|
32452
|
+
}), r[132] = TW, r[133] = e3);
|
|
32405
32453
|
let c2;
|
|
32406
32454
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32407
32455
|
style: L,
|
|
32408
32456
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
32409
32457
|
children: e3
|
|
32410
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
32458
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], TW = c2;
|
|
32411
32459
|
}
|
|
32412
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
32460
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (jW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
32413
32461
|
layout: c,
|
|
32414
32462
|
setLayout: l,
|
|
32415
32463
|
isLocked: v,
|
|
32416
32464
|
setIsLocked: y
|
|
32417
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
32465
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = jW) : jW = r[140];
|
|
32418
32466
|
let g2;
|
|
32419
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32467
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (kW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = kW, r[142] = g2) : (kW = r[141], g2 = r[142]), r[143] === TW ? AW = r[144] : (AW = (0, import_jsx_runtime.jsx)("div", {
|
|
32420
32468
|
className: g2,
|
|
32421
|
-
children:
|
|
32422
|
-
}), r[143] =
|
|
32469
|
+
children: TW
|
|
32470
|
+
}), r[143] = TW, r[144] = AW), EW = "flex-none flex flex-col w-[300px] p-2 pb-20 gap-2 overflow-auto bg-(--slate-2) border-t border-x rounded-t shadow-sm transparent-when-disconnected mx-2 mt-4", r[145] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (DW = (0, import_jsx_runtime.jsx)("div", {
|
|
32423
32471
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
32424
32472
|
children: "Outputs"
|
|
32425
|
-
}), r[145] =
|
|
32473
|
+
}), r[145] = DW) : DW = r[145];
|
|
32426
32474
|
let b2;
|
|
32427
32475
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
32428
32476
|
draggable: true,
|
|
@@ -32447,34 +32495,34 @@ ${c}
|
|
|
32447
32495
|
status: e3.status,
|
|
32448
32496
|
hidden: false
|
|
32449
32497
|
})
|
|
32450
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
32451
|
-
}
|
|
32452
|
-
r[108] = u, r[109] =
|
|
32453
|
-
} else
|
|
32454
|
-
if (
|
|
32455
|
-
let
|
|
32456
|
-
r[150] !==
|
|
32457
|
-
className:
|
|
32498
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], OW = m2.map(b2);
|
|
32499
|
+
}
|
|
32500
|
+
r[108] = u, r[109] = TW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = EW, r[118] = DW, r[119] = OW, r[120] = kW, r[121] = AW, r[122] = jW, r[123] = MW, r[124] = TW;
|
|
32501
|
+
} else EW = r[117], DW = r[118], OW = r[119], kW = r[120], AW = r[121], jW = r[122], MW = r[123], TW = r[124];
|
|
32502
|
+
if (MW !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return MW;
|
|
32503
|
+
let NW;
|
|
32504
|
+
r[150] !== EW || r[151] !== DW || r[152] !== OW ? (NW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32505
|
+
className: EW,
|
|
32458
32506
|
children: [
|
|
32459
|
-
|
|
32460
|
-
|
|
32507
|
+
DW,
|
|
32508
|
+
OW
|
|
32461
32509
|
]
|
|
32462
|
-
}), r[150] =
|
|
32463
|
-
let
|
|
32464
|
-
r[154] !==
|
|
32465
|
-
className:
|
|
32510
|
+
}), r[150] = EW, r[151] = DW, r[152] = OW, r[153] = NW) : NW = r[153];
|
|
32511
|
+
let PW;
|
|
32512
|
+
r[154] !== kW || r[155] !== AW || r[156] !== NW ? (PW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32513
|
+
className: kW,
|
|
32466
32514
|
children: [
|
|
32467
|
-
|
|
32468
|
-
|
|
32515
|
+
AW,
|
|
32516
|
+
NW
|
|
32469
32517
|
]
|
|
32470
|
-
}), r[154] =
|
|
32471
|
-
let
|
|
32472
|
-
return r[158] !==
|
|
32518
|
+
}), r[154] = kW, r[155] = AW, r[156] = NW, r[157] = PW) : PW = r[157];
|
|
32519
|
+
let FW;
|
|
32520
|
+
return r[158] !== jW || r[159] !== PW ? (FW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32473
32521
|
children: [
|
|
32474
|
-
|
|
32475
|
-
|
|
32522
|
+
jW,
|
|
32523
|
+
PW
|
|
32476
32524
|
]
|
|
32477
|
-
}), r[158] =
|
|
32525
|
+
}), r[158] = jW, r[159] = PW, r[160] = FW) : FW = r[160], FW;
|
|
32478
32526
|
};
|
|
32479
32527
|
var GridCell = (0, import_react.memo)((e) => {
|
|
32480
32528
|
let r = (0, import_compiler_runtime$13.c)(20), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _ } = e, v;
|
|
@@ -32775,25 +32823,25 @@ ${c}
|
|
|
32775
32823
|
G
|
|
32776
32824
|
]
|
|
32777
32825
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
32778
|
-
let
|
|
32779
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32826
|
+
let cW;
|
|
32827
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (cW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32780
32828
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32781
|
-
}), r[35] =
|
|
32782
|
-
let
|
|
32783
|
-
r[36] === l ?
|
|
32829
|
+
}), r[35] = cW) : cW = r[35];
|
|
32830
|
+
let lW;
|
|
32831
|
+
r[36] === l ? lW = r[37] : (lW = (0, import_jsx_runtime.jsx)(X, {
|
|
32784
32832
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
32785
32833
|
onClick: () => l()
|
|
32786
|
-
}), r[36] = l, r[37] =
|
|
32787
|
-
let
|
|
32788
|
-
return r[38] !== I || r[39] !== q || r[40] !==
|
|
32834
|
+
}), r[36] = l, r[37] = lW);
|
|
32835
|
+
let Z;
|
|
32836
|
+
return r[38] !== I || r[39] !== q || r[40] !== lW || r[41] !== w ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
32789
32837
|
className: w,
|
|
32790
32838
|
children: [
|
|
32791
32839
|
I,
|
|
32792
32840
|
q,
|
|
32793
|
-
|
|
32794
|
-
|
|
32841
|
+
cW,
|
|
32842
|
+
lW
|
|
32795
32843
|
]
|
|
32796
|
-
}), r[38] = I, r[39] = q, r[40] =
|
|
32844
|
+
}), r[38] = I, r[39] = q, r[40] = lW, r[41] = w, r[42] = Z) : Z = r[42], Z;
|
|
32797
32845
|
};
|
|
32798
32846
|
function isSidebarCell(e) {
|
|
32799
32847
|
var _a3;
|
|
@@ -34797,31 +34845,31 @@ ${c}
|
|
|
34797
34845
|
}, [
|
|
34798
34846
|
T,
|
|
34799
34847
|
M
|
|
34800
|
-
]), 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),
|
|
34848
|
+
]), 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), cW = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34801
34849
|
j
|
|
34802
|
-
]),
|
|
34850
|
+
]), lW = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers: uW, measuringScheduled: dW } = useDroppableMeasuring(cW, {
|
|
34803
34851
|
dragging: w,
|
|
34804
34852
|
dependencies: [
|
|
34805
34853
|
O.x,
|
|
34806
34854
|
O.y
|
|
34807
34855
|
],
|
|
34808
|
-
config:
|
|
34809
|
-
}),
|
|
34856
|
+
config: lW.droppable
|
|
34857
|
+
}), fW = useCachedNode(E, T), pW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34810
34858
|
H
|
|
34811
|
-
]),
|
|
34859
|
+
]), mW = GW(), hW = useInitialRect(fW, lW.draggable.measure);
|
|
34812
34860
|
useLayoutShiftScrollCompensation({
|
|
34813
34861
|
activeNode: T == null ? null : E.get(T),
|
|
34814
|
-
config:
|
|
34815
|
-
initialRect:
|
|
34816
|
-
measure:
|
|
34862
|
+
config: mW.layoutShiftCompensation,
|
|
34863
|
+
initialRect: hW,
|
|
34864
|
+
measure: lW.draggable.measure
|
|
34817
34865
|
});
|
|
34818
|
-
let
|
|
34866
|
+
let gW = useRect(fW, lW.draggable.measure, hW), _W = useRect(fW ? fW.parentElement : null), vW = (0, import_react.useRef)({
|
|
34819
34867
|
activatorEvent: null,
|
|
34820
34868
|
active: null,
|
|
34821
|
-
activeNode:
|
|
34869
|
+
activeNode: fW,
|
|
34822
34870
|
collisionRect: null,
|
|
34823
34871
|
collisions: null,
|
|
34824
|
-
droppableRects:
|
|
34872
|
+
droppableRects: Z,
|
|
34825
34873
|
draggableNodes: E,
|
|
34826
34874
|
draggingNode: null,
|
|
34827
34875
|
draggingNodeRect: null,
|
|
@@ -34829,45 +34877,45 @@ ${c}
|
|
|
34829
34877
|
over: null,
|
|
34830
34878
|
scrollableAncestors: [],
|
|
34831
34879
|
scrollAdjustedTranslate: null
|
|
34832
|
-
}),
|
|
34833
|
-
measure:
|
|
34834
|
-
}),
|
|
34880
|
+
}), yW = j.getNodeFor((_a3 = vW.current.over) == null ? void 0 : _a3.id), bW = useDragOverlayMeasuring({
|
|
34881
|
+
measure: lW.dragOverlay.measure
|
|
34882
|
+
}), xW = bW.nodeRef.current ?? fW, SW = w ? bW.rect ?? gW : null, CW = !!(bW.nodeRef.current && bW.rect), wW = useRectDelta(CW ? null : gW), TW = useWindowRect(xW ? getWindow(xW) : null), EW = useScrollableAncestors(w ? yW ?? fW : null), DW = useRects(EW), OW = applyModifiers(m, {
|
|
34835
34883
|
transform: {
|
|
34836
|
-
x: O.x -
|
|
34837
|
-
y: O.y -
|
|
34884
|
+
x: O.x - wW.x,
|
|
34885
|
+
y: O.y - wW.y,
|
|
34838
34886
|
scaleX: 1,
|
|
34839
34887
|
scaleY: 1
|
|
34840
34888
|
},
|
|
34841
34889
|
activatorEvent: H,
|
|
34842
34890
|
active: L,
|
|
34843
|
-
activeNodeRect:
|
|
34844
|
-
containerNodeRect:
|
|
34845
|
-
draggingNodeRect:
|
|
34846
|
-
over:
|
|
34847
|
-
overlayNodeRect:
|
|
34848
|
-
scrollableAncestors:
|
|
34849
|
-
scrollableAncestorRects:
|
|
34850
|
-
windowRect:
|
|
34851
|
-
}),
|
|
34852
|
-
|
|
34853
|
-
]),
|
|
34891
|
+
activeNodeRect: gW,
|
|
34892
|
+
containerNodeRect: _W,
|
|
34893
|
+
draggingNodeRect: SW,
|
|
34894
|
+
over: vW.current.over,
|
|
34895
|
+
overlayNodeRect: bW.rect,
|
|
34896
|
+
scrollableAncestors: EW,
|
|
34897
|
+
scrollableAncestorRects: DW,
|
|
34898
|
+
windowRect: TW
|
|
34899
|
+
}), kW = pW ? add(pW, O) : null, AW = useScrollOffsets(EW), jW = useScrollOffsetsDelta(AW), MW = useScrollOffsetsDelta(AW, [
|
|
34900
|
+
gW
|
|
34901
|
+
]), NW = add(OW, jW), PW = SW ? getAdjustedRect(SW, OW) : null, FW = L && PW ? f({
|
|
34854
34902
|
active: L,
|
|
34855
|
-
collisionRect:
|
|
34856
|
-
droppableRects:
|
|
34857
|
-
droppableContainers:
|
|
34858
|
-
pointerCoordinates:
|
|
34859
|
-
}) : null,
|
|
34903
|
+
collisionRect: PW,
|
|
34904
|
+
droppableRects: Z,
|
|
34905
|
+
droppableContainers: cW,
|
|
34906
|
+
pointerCoordinates: kW
|
|
34907
|
+
}) : null, IW = getFirstCollision(FW, "id"), [LW, RW] = (0, import_react.useState)(null), zW = adjustScale(CW ? OW : add(OW, MW), (LW == null ? void 0 : LW.rect) ?? null, gW), BW = (0, import_react.useRef)(null), VW = (0, import_react.useCallback)((e2, r2) => {
|
|
34860
34908
|
let { sensor: c2, options: l2 } = r2;
|
|
34861
34909
|
if (R.current == null) return;
|
|
34862
34910
|
let u2 = E.get(R.current);
|
|
34863
34911
|
if (!u2) return;
|
|
34864
34912
|
let d2 = e2.nativeEvent;
|
|
34865
|
-
|
|
34913
|
+
BW.current = new c2({
|
|
34866
34914
|
active: R.current,
|
|
34867
34915
|
activeNode: u2,
|
|
34868
34916
|
event: d2,
|
|
34869
34917
|
options: l2,
|
|
34870
|
-
context:
|
|
34918
|
+
context: vW,
|
|
34871
34919
|
onAbort(e3) {
|
|
34872
34920
|
if (!E.get(e3)) return;
|
|
34873
34921
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -34912,7 +34960,7 @@ ${c}
|
|
|
34912
34960
|
}), v({
|
|
34913
34961
|
type: "onDragStart",
|
|
34914
34962
|
event: u3
|
|
34915
|
-
}), B(
|
|
34963
|
+
}), B(BW.current), W(d2);
|
|
34916
34964
|
});
|
|
34917
34965
|
},
|
|
34918
34966
|
onMove(e3) {
|
|
@@ -34926,7 +34974,7 @@ ${c}
|
|
|
34926
34974
|
});
|
|
34927
34975
|
function f2(e3) {
|
|
34928
34976
|
return async function() {
|
|
34929
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
34977
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = vW.current, f3 = null;
|
|
34930
34978
|
if (r3 && u3) {
|
|
34931
34979
|
let { cancelDrop: p2 } = G.current;
|
|
34932
34980
|
f3 = {
|
|
@@ -34940,7 +34988,7 @@ ${c}
|
|
|
34940
34988
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34941
34989
|
_({
|
|
34942
34990
|
type: e3
|
|
34943
|
-
}), S(Status.Uninitialized),
|
|
34991
|
+
}), S(Status.Uninitialized), RW(null), B(null), W(null), BW.current = null;
|
|
34944
34992
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
34945
34993
|
if (f3) {
|
|
34946
34994
|
let e4 = G.current[r4];
|
|
@@ -34954,7 +35002,7 @@ ${c}
|
|
|
34954
35002
|
}
|
|
34955
35003
|
}, [
|
|
34956
35004
|
E
|
|
34957
|
-
]),
|
|
35005
|
+
]), HW = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
34958
35006
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
34959
35007
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
34960
35008
|
let f2 = {
|
|
@@ -34962,26 +35010,26 @@ ${c}
|
|
|
34962
35010
|
};
|
|
34963
35011
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
34964
35012
|
capturedBy: r2.sensor
|
|
34965
|
-
}, R.current = l2,
|
|
35013
|
+
}, R.current = l2, VW(c2, r2));
|
|
34966
35014
|
}, [
|
|
34967
35015
|
E,
|
|
34968
|
-
|
|
35016
|
+
VW
|
|
34969
35017
|
]));
|
|
34970
35018
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
34971
|
-
|
|
35019
|
+
gW && b === Status.Initializing && S(Status.Initialized);
|
|
34972
35020
|
}, [
|
|
34973
|
-
|
|
35021
|
+
gW,
|
|
34974
35022
|
b
|
|
34975
35023
|
]), (0, import_react.useEffect)(() => {
|
|
34976
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
35024
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = vW.current;
|
|
34977
35025
|
if (!r2 || !c2) return;
|
|
34978
35026
|
let d2 = {
|
|
34979
35027
|
active: r2,
|
|
34980
35028
|
activatorEvent: c2,
|
|
34981
35029
|
collisions: l2,
|
|
34982
35030
|
delta: {
|
|
34983
|
-
x:
|
|
34984
|
-
y:
|
|
35031
|
+
x: NW.x,
|
|
35032
|
+
y: NW.y
|
|
34985
35033
|
},
|
|
34986
35034
|
over: u2
|
|
34987
35035
|
};
|
|
@@ -34992,12 +35040,12 @@ ${c}
|
|
|
34992
35040
|
});
|
|
34993
35041
|
});
|
|
34994
35042
|
}, [
|
|
34995
|
-
|
|
34996
|
-
|
|
35043
|
+
NW.x,
|
|
35044
|
+
NW.y
|
|
34997
35045
|
]), (0, import_react.useEffect)(() => {
|
|
34998
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
35046
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = vW.current;
|
|
34999
35047
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
35000
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
35048
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(IW), p2 = f2 && f2.rect.current ? {
|
|
35001
35049
|
id: f2.id,
|
|
35002
35050
|
rect: f2.rect.current,
|
|
35003
35051
|
data: f2.data,
|
|
@@ -35013,127 +35061,127 @@ ${c}
|
|
|
35013
35061
|
over: p2
|
|
35014
35062
|
};
|
|
35015
35063
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
35016
|
-
|
|
35064
|
+
RW(p2), d2 == null ? void 0 : d2(m2), v({
|
|
35017
35065
|
type: "onDragOver",
|
|
35018
35066
|
event: m2
|
|
35019
35067
|
});
|
|
35020
35068
|
});
|
|
35021
35069
|
}, [
|
|
35022
|
-
|
|
35070
|
+
IW
|
|
35023
35071
|
]), useIsomorphicLayoutEffect(() => {
|
|
35024
|
-
|
|
35072
|
+
vW.current = {
|
|
35025
35073
|
activatorEvent: H,
|
|
35026
35074
|
active: L,
|
|
35027
|
-
activeNode:
|
|
35028
|
-
collisionRect:
|
|
35029
|
-
collisions:
|
|
35030
|
-
droppableRects:
|
|
35075
|
+
activeNode: fW,
|
|
35076
|
+
collisionRect: PW,
|
|
35077
|
+
collisions: FW,
|
|
35078
|
+
droppableRects: Z,
|
|
35031
35079
|
draggableNodes: E,
|
|
35032
|
-
draggingNode:
|
|
35033
|
-
draggingNodeRect:
|
|
35080
|
+
draggingNode: xW,
|
|
35081
|
+
draggingNodeRect: SW,
|
|
35034
35082
|
droppableContainers: j,
|
|
35035
|
-
over:
|
|
35036
|
-
scrollableAncestors:
|
|
35037
|
-
scrollAdjustedTranslate:
|
|
35083
|
+
over: LW,
|
|
35084
|
+
scrollableAncestors: EW,
|
|
35085
|
+
scrollAdjustedTranslate: NW
|
|
35038
35086
|
}, I.current = {
|
|
35039
|
-
initial:
|
|
35040
|
-
translated:
|
|
35087
|
+
initial: SW,
|
|
35088
|
+
translated: PW
|
|
35041
35089
|
};
|
|
35042
35090
|
}, [
|
|
35043
35091
|
L,
|
|
35044
|
-
rW,
|
|
35045
|
-
EW,
|
|
35046
|
-
TW,
|
|
35047
|
-
E,
|
|
35048
35092
|
fW,
|
|
35049
|
-
|
|
35050
|
-
|
|
35093
|
+
FW,
|
|
35094
|
+
PW,
|
|
35095
|
+
E,
|
|
35096
|
+
xW,
|
|
35097
|
+
SW,
|
|
35098
|
+
Z,
|
|
35051
35099
|
j,
|
|
35052
|
-
|
|
35053
|
-
|
|
35054
|
-
|
|
35100
|
+
LW,
|
|
35101
|
+
EW,
|
|
35102
|
+
NW
|
|
35055
35103
|
]), useAutoScroller({
|
|
35056
|
-
...
|
|
35104
|
+
...mW,
|
|
35057
35105
|
delta: O,
|
|
35058
|
-
draggingRect:
|
|
35059
|
-
pointerCoordinates:
|
|
35060
|
-
scrollableAncestors:
|
|
35061
|
-
scrollableAncestorRects:
|
|
35106
|
+
draggingRect: PW,
|
|
35107
|
+
pointerCoordinates: kW,
|
|
35108
|
+
scrollableAncestors: EW,
|
|
35109
|
+
scrollableAncestorRects: DW
|
|
35062
35110
|
});
|
|
35063
|
-
let
|
|
35111
|
+
let UW = (0, import_react.useMemo)(() => ({
|
|
35064
35112
|
active: L,
|
|
35065
|
-
activeNode:
|
|
35066
|
-
activeNodeRect:
|
|
35113
|
+
activeNode: fW,
|
|
35114
|
+
activeNodeRect: gW,
|
|
35067
35115
|
activatorEvent: H,
|
|
35068
|
-
collisions:
|
|
35069
|
-
containerNodeRect:
|
|
35070
|
-
dragOverlay:
|
|
35116
|
+
collisions: FW,
|
|
35117
|
+
containerNodeRect: _W,
|
|
35118
|
+
dragOverlay: bW,
|
|
35071
35119
|
draggableNodes: E,
|
|
35072
35120
|
droppableContainers: j,
|
|
35073
|
-
droppableRects:
|
|
35074
|
-
over:
|
|
35075
|
-
measureDroppableContainers:
|
|
35076
|
-
scrollableAncestors:
|
|
35077
|
-
scrollableAncestorRects:
|
|
35078
|
-
measuringConfiguration:
|
|
35079
|
-
measuringScheduled:
|
|
35080
|
-
windowRect:
|
|
35121
|
+
droppableRects: Z,
|
|
35122
|
+
over: LW,
|
|
35123
|
+
measureDroppableContainers: uW,
|
|
35124
|
+
scrollableAncestors: EW,
|
|
35125
|
+
scrollableAncestorRects: DW,
|
|
35126
|
+
measuringConfiguration: lW,
|
|
35127
|
+
measuringScheduled: dW,
|
|
35128
|
+
windowRect: TW
|
|
35081
35129
|
}), [
|
|
35082
35130
|
L,
|
|
35083
|
-
|
|
35084
|
-
|
|
35131
|
+
fW,
|
|
35132
|
+
gW,
|
|
35085
35133
|
H,
|
|
35086
|
-
|
|
35087
|
-
|
|
35088
|
-
|
|
35134
|
+
FW,
|
|
35135
|
+
_W,
|
|
35136
|
+
bW,
|
|
35089
35137
|
E,
|
|
35090
35138
|
j,
|
|
35091
|
-
eW,
|
|
35092
|
-
OW,
|
|
35093
|
-
tW,
|
|
35094
|
-
_W,
|
|
35095
|
-
vW,
|
|
35096
35139
|
Z,
|
|
35097
|
-
|
|
35098
|
-
|
|
35099
|
-
|
|
35140
|
+
LW,
|
|
35141
|
+
uW,
|
|
35142
|
+
EW,
|
|
35143
|
+
DW,
|
|
35144
|
+
lW,
|
|
35145
|
+
dW,
|
|
35146
|
+
TW
|
|
35147
|
+
]), WW = (0, import_react.useMemo)(() => ({
|
|
35100
35148
|
activatorEvent: H,
|
|
35101
|
-
activators:
|
|
35149
|
+
activators: HW,
|
|
35102
35150
|
active: L,
|
|
35103
|
-
activeNodeRect:
|
|
35151
|
+
activeNodeRect: gW,
|
|
35104
35152
|
ariaDescribedById: {
|
|
35105
35153
|
draggable: q
|
|
35106
35154
|
},
|
|
35107
35155
|
dispatch: _,
|
|
35108
35156
|
draggableNodes: E,
|
|
35109
|
-
over:
|
|
35110
|
-
measureDroppableContainers:
|
|
35157
|
+
over: LW,
|
|
35158
|
+
measureDroppableContainers: uW
|
|
35111
35159
|
}), [
|
|
35112
35160
|
H,
|
|
35113
|
-
|
|
35161
|
+
HW,
|
|
35114
35162
|
L,
|
|
35115
|
-
|
|
35163
|
+
gW,
|
|
35116
35164
|
_,
|
|
35117
35165
|
q,
|
|
35118
35166
|
E,
|
|
35119
|
-
|
|
35120
|
-
|
|
35167
|
+
LW,
|
|
35168
|
+
uW
|
|
35121
35169
|
]);
|
|
35122
35170
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
35123
35171
|
value: y
|
|
35124
35172
|
}, import_react.createElement(InternalContext.Provider, {
|
|
35125
|
-
value:
|
|
35173
|
+
value: WW
|
|
35126
35174
|
}, import_react.createElement(PublicContext.Provider, {
|
|
35127
|
-
value:
|
|
35175
|
+
value: UW
|
|
35128
35176
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
35129
|
-
value:
|
|
35177
|
+
value: zW
|
|
35130
35178
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
35131
35179
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35132
35180
|
})), import_react.createElement(Accessibility, {
|
|
35133
35181
|
...c,
|
|
35134
35182
|
hiddenTextDescribedById: q
|
|
35135
35183
|
}));
|
|
35136
|
-
function
|
|
35184
|
+
function GW() {
|
|
35137
35185
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
35138
35186
|
return typeof l == "object" ? {
|
|
35139
35187
|
...l,
|
|
@@ -35661,7 +35709,7 @@ ${c}
|
|
|
35661
35709
|
updateMeasurementsFor: I,
|
|
35662
35710
|
...m
|
|
35663
35711
|
}
|
|
35664
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
35712
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: cW, listeners: lW, isDragging: Z, over: uW, setActivatorNodeRef: dW, transform: fW } = useDraggable({
|
|
35665
35713
|
id: f,
|
|
35666
35714
|
data: M,
|
|
35667
35715
|
attributes: {
|
|
@@ -35669,60 +35717,60 @@ ${c}
|
|
|
35669
35717
|
...c
|
|
35670
35718
|
},
|
|
35671
35719
|
disabled: O.draggable
|
|
35672
|
-
}),
|
|
35720
|
+
}), pW = useCombinedRefs(B, cW), mW = !!H, hW = mW && !b && isValidIndex(v) && isValidIndex(w), gW = !T && Z, _W = hW ? (gW && hW ? fW : null) ?? (p ?? E)({
|
|
35673
35721
|
rects: S,
|
|
35674
35722
|
activeNodeRect: G,
|
|
35675
35723
|
activeIndex: v,
|
|
35676
35724
|
overIndex: w,
|
|
35677
35725
|
index: j
|
|
35678
|
-
}) : null,
|
|
35726
|
+
}) : null, vW = isValidIndex(v) && isValidIndex(w) ? d({
|
|
35679
35727
|
id: f,
|
|
35680
35728
|
items: g,
|
|
35681
35729
|
activeIndex: v,
|
|
35682
35730
|
overIndex: w
|
|
35683
|
-
}) : j,
|
|
35684
|
-
activeId:
|
|
35731
|
+
}) : j, yW = H == null ? void 0 : H.id, bW = (0, import_react.useRef)({
|
|
35732
|
+
activeId: yW,
|
|
35685
35733
|
items: g,
|
|
35686
|
-
newIndex:
|
|
35734
|
+
newIndex: vW,
|
|
35687
35735
|
containerId: _
|
|
35688
|
-
}),
|
|
35736
|
+
}), xW = g !== bW.current.items, SW = r({
|
|
35689
35737
|
active: H,
|
|
35690
35738
|
containerId: _,
|
|
35691
|
-
isDragging:
|
|
35692
|
-
isSorting:
|
|
35739
|
+
isDragging: Z,
|
|
35740
|
+
isSorting: mW,
|
|
35693
35741
|
id: f,
|
|
35694
35742
|
index: j,
|
|
35695
35743
|
items: g,
|
|
35696
|
-
newIndex:
|
|
35697
|
-
previousItems:
|
|
35698
|
-
previousContainerId:
|
|
35744
|
+
newIndex: bW.current.newIndex,
|
|
35745
|
+
previousItems: bW.current.items,
|
|
35746
|
+
previousContainerId: bW.current.containerId,
|
|
35699
35747
|
transition: h,
|
|
35700
|
-
wasDragging:
|
|
35701
|
-
}),
|
|
35702
|
-
disabled: !
|
|
35748
|
+
wasDragging: bW.current.activeId != null
|
|
35749
|
+
}), CW = useDerivedTransform({
|
|
35750
|
+
disabled: !SW,
|
|
35703
35751
|
index: j,
|
|
35704
35752
|
node: R,
|
|
35705
35753
|
rect: L
|
|
35706
35754
|
});
|
|
35707
35755
|
return (0, import_react.useEffect)(() => {
|
|
35708
|
-
|
|
35756
|
+
mW && bW.current.newIndex !== vW && (bW.current.newIndex = vW), _ !== bW.current.containerId && (bW.current.containerId = _), g !== bW.current.items && (bW.current.items = g);
|
|
35709
35757
|
}, [
|
|
35710
|
-
|
|
35711
|
-
|
|
35758
|
+
mW,
|
|
35759
|
+
vW,
|
|
35712
35760
|
_,
|
|
35713
35761
|
g
|
|
35714
35762
|
]), (0, import_react.useEffect)(() => {
|
|
35715
|
-
if (
|
|
35716
|
-
if (
|
|
35717
|
-
|
|
35763
|
+
if (yW === bW.current.activeId) return;
|
|
35764
|
+
if (yW != null && bW.current.activeId == null) {
|
|
35765
|
+
bW.current.activeId = yW;
|
|
35718
35766
|
return;
|
|
35719
35767
|
}
|
|
35720
35768
|
let e2 = setTimeout(() => {
|
|
35721
|
-
|
|
35769
|
+
bW.current.activeId = yW;
|
|
35722
35770
|
}, 50);
|
|
35723
35771
|
return () => clearTimeout(e2);
|
|
35724
35772
|
}, [
|
|
35725
|
-
|
|
35773
|
+
yW
|
|
35726
35774
|
]), {
|
|
35727
35775
|
active: H,
|
|
35728
35776
|
activeIndex: v,
|
|
@@ -35730,25 +35778,25 @@ ${c}
|
|
|
35730
35778
|
data: M,
|
|
35731
35779
|
rect: L,
|
|
35732
35780
|
index: j,
|
|
35733
|
-
newIndex:
|
|
35781
|
+
newIndex: vW,
|
|
35734
35782
|
items: g,
|
|
35735
35783
|
isOver: z,
|
|
35736
|
-
isSorting:
|
|
35737
|
-
isDragging:
|
|
35738
|
-
listeners:
|
|
35784
|
+
isSorting: mW,
|
|
35785
|
+
isDragging: Z,
|
|
35786
|
+
listeners: lW,
|
|
35739
35787
|
node: R,
|
|
35740
35788
|
overIndex: w,
|
|
35741
|
-
over:
|
|
35742
|
-
setNodeRef:
|
|
35743
|
-
setActivatorNodeRef:
|
|
35789
|
+
over: uW,
|
|
35790
|
+
setNodeRef: pW,
|
|
35791
|
+
setActivatorNodeRef: dW,
|
|
35744
35792
|
setDroppableNodeRef: B,
|
|
35745
|
-
setDraggableNodeRef:
|
|
35746
|
-
transform:
|
|
35747
|
-
transition:
|
|
35793
|
+
setDraggableNodeRef: cW,
|
|
35794
|
+
transform: CW ?? _W,
|
|
35795
|
+
transition: wW()
|
|
35748
35796
|
};
|
|
35749
|
-
function
|
|
35750
|
-
if (
|
|
35751
|
-
if (!(
|
|
35797
|
+
function wW() {
|
|
35798
|
+
if (CW || xW && bW.current.newIndex === j) return disabledTransition;
|
|
35799
|
+
if (!(gW && !isKeyboardEvent(W) || !h) && (mW || SW)) return CSS$1.Transition.toString({
|
|
35752
35800
|
...h,
|
|
35753
35801
|
property: transitionProperty
|
|
35754
35802
|
});
|
|
@@ -36048,15 +36096,15 @@ ${c}
|
|
|
36048
36096
|
G
|
|
36049
36097
|
]
|
|
36050
36098
|
}), 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];
|
|
36051
|
-
let
|
|
36052
|
-
if (!v && !g) return
|
|
36053
|
-
let
|
|
36054
|
-
r[46] ===
|
|
36099
|
+
let cW = q;
|
|
36100
|
+
if (!v && !g) return cW;
|
|
36101
|
+
let lW;
|
|
36102
|
+
r[46] === cW ? lW = r[47] : (lW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
36055
36103
|
asChild: true,
|
|
36056
|
-
children:
|
|
36057
|
-
}), r[46] =
|
|
36058
|
-
let
|
|
36059
|
-
r[48] === v ?
|
|
36104
|
+
children: cW
|
|
36105
|
+
}), r[46] = cW, r[47] = lW);
|
|
36106
|
+
let Z;
|
|
36107
|
+
r[48] === v ? Z = r[49] : (Z = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36060
36108
|
onSelect: v,
|
|
36061
36109
|
children: [
|
|
36062
36110
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -36064,11 +36112,11 @@ ${c}
|
|
|
36064
36112
|
}),
|
|
36065
36113
|
"Add cell"
|
|
36066
36114
|
]
|
|
36067
|
-
}), r[48] = v, r[49] =
|
|
36068
|
-
let
|
|
36069
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
36070
|
-
let
|
|
36071
|
-
r[51] === g ?
|
|
36115
|
+
}), r[48] = v, r[49] = Z);
|
|
36116
|
+
let uW;
|
|
36117
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = uW) : uW = r[50];
|
|
36118
|
+
let dW;
|
|
36119
|
+
r[51] === g ? dW = r[52] : (dW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36072
36120
|
variant: "danger",
|
|
36073
36121
|
onSelect: g,
|
|
36074
36122
|
children: [
|
|
@@ -36077,22 +36125,22 @@ ${c}
|
|
|
36077
36125
|
}),
|
|
36078
36126
|
"Delete cell"
|
|
36079
36127
|
]
|
|
36080
|
-
}), r[51] = g, r[52] =
|
|
36081
|
-
let
|
|
36082
|
-
r[53] !==
|
|
36128
|
+
}), r[51] = g, r[52] = dW);
|
|
36129
|
+
let fW;
|
|
36130
|
+
r[53] !== Z || r[54] !== dW ? (fW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
36083
36131
|
children: [
|
|
36084
|
-
|
|
36085
|
-
|
|
36086
|
-
|
|
36132
|
+
Z,
|
|
36133
|
+
uW,
|
|
36134
|
+
dW
|
|
36087
36135
|
]
|
|
36088
|
-
}), r[53] =
|
|
36089
|
-
let
|
|
36090
|
-
return r[56] !==
|
|
36136
|
+
}), r[53] = Z, r[54] = dW, r[55] = fW) : fW = r[55];
|
|
36137
|
+
let pW;
|
|
36138
|
+
return r[56] !== lW || r[57] !== fW ? (pW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
36091
36139
|
children: [
|
|
36092
|
-
|
|
36093
|
-
|
|
36140
|
+
lW,
|
|
36141
|
+
fW
|
|
36094
36142
|
]
|
|
36095
|
-
}), r[56] =
|
|
36143
|
+
}), r[56] = lW, r[57] = fW, r[58] = pW) : pW = r[58], pW;
|
|
36096
36144
|
}, InsertCellLine = (e) => {
|
|
36097
36145
|
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;
|
|
36098
36146
|
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);
|
|
@@ -36146,10 +36194,10 @@ ${c}
|
|
|
36146
36194
|
...B,
|
|
36147
36195
|
...h
|
|
36148
36196
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
36149
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
36150
|
-
r[25] !== l || r[26] !==
|
|
36151
|
-
let
|
|
36152
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
36197
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", cW = w && !T && "opacity-35", lW = T && "opacity-95 shadow-lg", Z;
|
|
36198
|
+
r[25] !== l || r[26] !== cW || r[27] !== lW || 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, cW, lW, l), r[25] = l, r[26] = cW, r[27] = lW, r[28] = q, r[29] = Z) : Z = r[29];
|
|
36199
|
+
let uW;
|
|
36200
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (uW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
36153
36201
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
36154
36202
|
style: {
|
|
36155
36203
|
transform: `scale(${I})`,
|
|
@@ -36164,14 +36212,14 @@ ${c}
|
|
|
36164
36212
|
status: c.status,
|
|
36165
36213
|
output: c.output
|
|
36166
36214
|
})
|
|
36167
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
36168
|
-
let
|
|
36169
|
-
r[37] === z ?
|
|
36215
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = uW) : uW = r[36];
|
|
36216
|
+
let dW;
|
|
36217
|
+
r[37] === z ? dW = r[38] : (dW = z && (0, import_jsx_runtime.jsx)("div", {
|
|
36170
36218
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
36171
36219
|
"aria-hidden": true
|
|
36172
|
-
}), r[37] = z, r[38] =
|
|
36173
|
-
let
|
|
36174
|
-
r[39] !== z || r[40] !== R ? (
|
|
36220
|
+
}), r[37] = z, r[38] = dW);
|
|
36221
|
+
let fW;
|
|
36222
|
+
r[39] !== z || r[40] !== R ? (fW = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
36175
36223
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
36176
36224
|
className: "text-xs opacity-80",
|
|
36177
36225
|
children: R.description
|
|
@@ -36183,19 +36231,19 @@ ${c}
|
|
|
36183
36231
|
className: "h-3.5 w-3.5"
|
|
36184
36232
|
})
|
|
36185
36233
|
})
|
|
36186
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
36187
|
-
let
|
|
36188
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
36234
|
+
}), r[39] = z, r[40] = R, r[41] = fW) : fW = r[41];
|
|
36235
|
+
let pW;
|
|
36236
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !== uW || r[47] !== dW || r[48] !== fW ? (pW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36189
36237
|
ref: f,
|
|
36190
|
-
className:
|
|
36238
|
+
className: Z,
|
|
36191
36239
|
style: W,
|
|
36192
36240
|
...d,
|
|
36193
36241
|
children: [
|
|
36194
|
-
|
|
36195
|
-
|
|
36196
|
-
|
|
36242
|
+
uW,
|
|
36243
|
+
dW,
|
|
36244
|
+
fW
|
|
36197
36245
|
]
|
|
36198
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
36246
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] = uW, r[47] = dW, r[48] = fW, r[49] = pW) : pW = r[49], pW;
|
|
36199
36247
|
}, MiniCodePreview = (e) => {
|
|
36200
36248
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
36201
36249
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -36235,7 +36283,7 @@ ${c}
|
|
|
36235
36283
|
function _temp2$2(e) {
|
|
36236
36284
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
36237
36285
|
}
|
|
36238
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36286
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-BJwt0B2_.js"));
|
|
36239
36287
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36240
36288
|
var _a3;
|
|
36241
36289
|
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), [
|
|
@@ -36613,7 +36661,7 @@ ${c}
|
|
|
36613
36661
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36614
36662
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36615
36663
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36616
|
-
let H, W, G, q,
|
|
36664
|
+
let H, W, G, q, cW, Z, uW, dW, fW, pW;
|
|
36617
36665
|
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) {
|
|
36618
36666
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36619
36667
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36659,11 +36707,11 @@ ${c}
|
|
|
36659
36707
|
})
|
|
36660
36708
|
})
|
|
36661
36709
|
]
|
|
36662
|
-
}), 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",
|
|
36663
|
-
let
|
|
36664
|
-
r[40] !== M || r[41] !==
|
|
36710
|
+
}), 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", cW = c, Z = R, uW = 0;
|
|
36711
|
+
let lW = y && "marimo-output-stale", mW2 = L ? "p-5" : "p-3";
|
|
36712
|
+
r[40] !== M || r[41] !== lW || r[42] !== mW2 ? (dW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", lW, mW2, M), r[40] = M, r[41] = lW, r[42] = mW2, r[43] = dW) : dW = r[43], r[44] === d ? fW = r[45] : (fW = d ? {
|
|
36665
36713
|
maxHeight: "none"
|
|
36666
|
-
} : void 0, r[44] = d, r[45] =
|
|
36714
|
+
} : void 0, r[44] = d, r[45] = fW), pW = e2.map((e3, r2) => {
|
|
36667
36715
|
if (e3.channel === "pdb") return null;
|
|
36668
36716
|
if (e3.channel === "stdin") {
|
|
36669
36717
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -36692,36 +36740,36 @@ ${c}
|
|
|
36692
36740
|
wrapText: l
|
|
36693
36741
|
})
|
|
36694
36742
|
}, r2);
|
|
36695
|
-
}), 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] =
|
|
36696
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
36697
|
-
let
|
|
36698
|
-
r[46] !== T || r[47] !== S ? (
|
|
36743
|
+
}), 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] = cW, r[25] = Z, r[26] = uW, r[27] = dW, r[28] = fW, r[29] = pW;
|
|
36744
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], cW = r[24], Z = r[25], uW = r[26], dW = r[27], fW = r[28], pW = r[29];
|
|
36745
|
+
let mW;
|
|
36746
|
+
r[46] !== T || r[47] !== S ? (mW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36699
36747
|
value: S,
|
|
36700
36748
|
cellId: T,
|
|
36701
36749
|
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"
|
|
36702
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
36703
|
-
let
|
|
36704
|
-
r[49] !==
|
|
36750
|
+
}), r[46] = T, r[47] = S, r[48] = mW) : mW = r[48];
|
|
36751
|
+
let hW;
|
|
36752
|
+
r[49] !== mW || r[50] !== G || r[51] !== q || r[52] !== cW || r[53] !== Z || r[54] !== uW || r[55] !== dW || r[56] !== fW || r[57] !== pW ? (hW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36705
36753
|
title: G,
|
|
36706
36754
|
"data-testid": q,
|
|
36707
|
-
ref:
|
|
36755
|
+
ref: cW,
|
|
36708
36756
|
...Z,
|
|
36709
|
-
tabIndex:
|
|
36710
|
-
className:
|
|
36711
|
-
style:
|
|
36757
|
+
tabIndex: uW,
|
|
36758
|
+
className: dW,
|
|
36759
|
+
style: fW,
|
|
36712
36760
|
children: [
|
|
36713
|
-
|
|
36714
|
-
|
|
36761
|
+
pW,
|
|
36762
|
+
mW
|
|
36715
36763
|
]
|
|
36716
|
-
}), r[49] =
|
|
36717
|
-
let
|
|
36718
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
36764
|
+
}), r[49] = mW, r[50] = G, r[51] = q, r[52] = cW, r[53] = Z, r[54] = uW, r[55] = dW, r[56] = fW, r[57] = pW, r[58] = hW) : hW = r[58];
|
|
36765
|
+
let gW;
|
|
36766
|
+
return r[59] !== H || r[60] !== W || r[61] !== hW ? (gW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36719
36767
|
className: H,
|
|
36720
36768
|
children: [
|
|
36721
36769
|
W,
|
|
36722
|
-
|
|
36770
|
+
hW
|
|
36723
36771
|
]
|
|
36724
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
36772
|
+
}), r[59] = H, r[60] = W, r[61] = hW, r[62] = gW) : gW = r[62], gW;
|
|
36725
36773
|
}, StdInput = (e) => {
|
|
36726
36774
|
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;
|
|
36727
36775
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -36811,6 +36859,23 @@ ${c}
|
|
|
36811
36859
|
function _temp4$1(e) {
|
|
36812
36860
|
return processOutput(e);
|
|
36813
36861
|
}
|
|
36862
|
+
var markdownParser = new MarkdownParser(), sqlParser = new SQLParser();
|
|
36863
|
+
function getReadonlyCodeDisplay(e) {
|
|
36864
|
+
let r = e.trim();
|
|
36865
|
+
return r ? markdownParser.isSupported(r) ? {
|
|
36866
|
+
code: markdownParser.transformIn(r).code,
|
|
36867
|
+
language: "markdown"
|
|
36868
|
+
} : sqlParser.isSupported(r) ? {
|
|
36869
|
+
code: sqlParser.transformIn(r).code,
|
|
36870
|
+
language: "sql"
|
|
36871
|
+
} : {
|
|
36872
|
+
code: e,
|
|
36873
|
+
language: "python"
|
|
36874
|
+
} : {
|
|
36875
|
+
code: e,
|
|
36876
|
+
language: "python"
|
|
36877
|
+
};
|
|
36878
|
+
}
|
|
36814
36879
|
const kernelStateAtom = atom({
|
|
36815
36880
|
isInstantiated: false,
|
|
36816
36881
|
error: null
|
|
@@ -37114,7 +37179,7 @@ ${c}
|
|
|
37114
37179
|
})
|
|
37115
37180
|
}), r[24] = y, r[25] = T), T;
|
|
37116
37181
|
}, VerticalCell = (0, import_react.memo)((e) => {
|
|
37117
|
-
let r = (0, import_compiler_runtime$3.c)(
|
|
37182
|
+
let r = (0, import_compiler_runtime$3.c)(58), { output: c, consoleOutputs: l, cellOutputArea: u, cellId: d, status: f, stopped: m, errored: h, config: g, interrupted: _, staleInputs: v, runStartTimestamp: y, code: b, showCode: S, mode: w, name: T, kiosk: E, showErrorTracebacks: O } = e, j = (0, import_react.useRef)(null), M;
|
|
37118
37183
|
r[0] !== _ || r[1] !== c || r[2] !== y || r[3] !== v || r[4] !== f ? (M = outputIsStale({
|
|
37119
37184
|
status: f,
|
|
37120
37185
|
output: c,
|
|
@@ -37148,17 +37213,20 @@ ${c}
|
|
|
37148
37213
|
let f2 = e2, p;
|
|
37149
37214
|
r[19] !== b || r[20] !== c ? (p = shouldHideCode(b, c), r[19] = b, r[20] = c, r[21] = p) : p = r[21];
|
|
37150
37215
|
let m2 = p, h2;
|
|
37151
|
-
r[22] !==
|
|
37152
|
-
let v2 =
|
|
37153
|
-
r[25] !==
|
|
37216
|
+
r[22] !== b || r[23] !== m2 ? (h2 = m2 ? null : getReadonlyCodeDisplay(b), r[22] = b, r[23] = m2, r[24] = h2) : h2 = r[24];
|
|
37217
|
+
let v2 = h2, y2;
|
|
37218
|
+
r[25] !== d || r[26] !== T ? (y2 = cellDomProps(d, T), r[25] = d, r[26] = T, r[27] = y2) : y2 = r[27];
|
|
37219
|
+
let S2 = u === "above" && f2, w2;
|
|
37220
|
+
r[28] !== g || r[29] !== v2 || r[30] !== E ? (w2 = v2 && (0, import_jsx_runtime.jsx)("div", {
|
|
37154
37221
|
className: "tray",
|
|
37155
37222
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
37156
37223
|
initiallyHideCode: g.hide_code || E,
|
|
37157
|
-
code:
|
|
37224
|
+
code: v2.code,
|
|
37225
|
+
language: v2.language
|
|
37158
37226
|
})
|
|
37159
|
-
}), r[
|
|
37160
|
-
let
|
|
37161
|
-
r[
|
|
37227
|
+
}), r[28] = g, r[29] = v2, r[30] = E, r[31] = w2) : w2 = r[31];
|
|
37228
|
+
let O2 = u === "below" && f2, M2;
|
|
37229
|
+
r[32] !== d || r[33] !== l || r[34] !== _ || r[35] !== T || r[36] !== I ? (M2 = (0, import_jsx_runtime.jsx)(ConsoleOutput, {
|
|
37162
37230
|
consoleOutputs: l,
|
|
37163
37231
|
stale: I,
|
|
37164
37232
|
interrupted: _,
|
|
@@ -37166,42 +37234,42 @@ ${c}
|
|
|
37166
37234
|
onSubmitDebugger: _temp4,
|
|
37167
37235
|
cellId: d,
|
|
37168
37236
|
debuggerActive: false
|
|
37169
|
-
}), r[
|
|
37170
|
-
let
|
|
37171
|
-
return r[
|
|
37237
|
+
}), r[32] = d, r[33] = l, r[34] = _, r[35] = T, r[36] = I, r[37] = M2) : M2 = r[37];
|
|
37238
|
+
let L2;
|
|
37239
|
+
return r[38] !== H || r[39] !== O2 || r[40] !== M2 || r[41] !== y2 || r[42] !== S2 || r[43] !== w2 ? (L2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
37172
37240
|
tabIndex: -1,
|
|
37173
37241
|
ref: j,
|
|
37174
37242
|
className: H,
|
|
37175
|
-
...
|
|
37243
|
+
...y2,
|
|
37176
37244
|
children: [
|
|
37177
|
-
v2,
|
|
37178
|
-
y2,
|
|
37179
37245
|
S2,
|
|
37180
|
-
w2
|
|
37246
|
+
w2,
|
|
37247
|
+
O2,
|
|
37248
|
+
M2
|
|
37181
37249
|
]
|
|
37182
|
-
}), r[
|
|
37250
|
+
}), r[38] = H, r[39] = O2, r[40] = M2, r[41] = y2, r[42] = S2, r[43] = w2, r[44] = L2) : L2 = r[44], L2;
|
|
37183
37251
|
}
|
|
37184
37252
|
let W = isErrorMime(c == null ? void 0 : c.mimetype), G = O && W && Array.isArray(c == null ? void 0 : c.data) && c.data.some(_temp5);
|
|
37185
37253
|
if ((h || _ || m || W) && !G) return null;
|
|
37186
37254
|
let q;
|
|
37187
|
-
r[
|
|
37188
|
-
let
|
|
37189
|
-
r[
|
|
37190
|
-
allowExpand:
|
|
37255
|
+
r[45] !== d || r[46] !== T ? (q = cellDomProps(d, T), r[45] = d, r[46] = T, r[47] = q) : q = r[47];
|
|
37256
|
+
let cW = w === "edit", lW;
|
|
37257
|
+
r[48] !== d || r[49] !== R || r[50] !== c || r[51] !== I || r[52] !== cW ? (lW = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37258
|
+
allowExpand: cW,
|
|
37191
37259
|
output: c,
|
|
37192
37260
|
className: CSSClasses.outputArea,
|
|
37193
37261
|
cellId: d,
|
|
37194
37262
|
stale: I,
|
|
37195
37263
|
loading: R
|
|
37196
|
-
}), r[
|
|
37197
|
-
let
|
|
37198
|
-
return r[
|
|
37264
|
+
}), r[48] = d, r[49] = R, r[50] = c, r[51] = I, r[52] = cW, r[53] = lW) : lW = r[53];
|
|
37265
|
+
let Z;
|
|
37266
|
+
return r[54] !== H || r[55] !== q || r[56] !== lW ? (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
37199
37267
|
tabIndex: -1,
|
|
37200
37268
|
ref: j,
|
|
37201
37269
|
className: H,
|
|
37202
37270
|
...q,
|
|
37203
|
-
children:
|
|
37204
|
-
}), r[
|
|
37271
|
+
children: lW
|
|
37272
|
+
}), r[54] = H, r[55] = q, r[56] = lW, r[57] = Z) : Z = r[57], Z;
|
|
37205
37273
|
});
|
|
37206
37274
|
VerticalCell.displayName = "VerticalCell";
|
|
37207
37275
|
const VerticalLayoutPlugin = {
|