@marimo-team/islands 0.24.1-dev3 → 0.24.1-dev30
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-BUC1MrsF.js → ConnectedDataExplorerComponent-yEsovh7C.js} +4 -4
- package/dist/arrays-Ct6XviUd.js +59 -0
- package/dist/{capabilities-BilXeZ7p.js → capabilities-DNKeBoT5.js} +1 -1
- package/dist/{chat-ui-ChBRy1iT.js → chat-ui-ChbH2I73.js} +3 -3
- package/dist/{common-BvTQu-LJ.js → common-Cy9zypnG.js} +17 -11
- package/dist/{formats-Dz0QNUEa.js → formats-BZtMpeQe.js} +1 -1
- package/dist/{glide-data-editor-BI2i_IEE.js → glide-data-editor-aimC_hok.js} +3 -1
- package/dist/{html-to-image-BtNr4zrO.js → html-to-image-BzT-fb14.js} +2357 -2325
- package/dist/{input-BRE2a7Ay.js → input-CqV2ZPgL.js} +1 -1
- package/dist/{loader-DTnbNSVZ.js → loader-Chm6nOqy.js} +1 -1
- package/dist/main.js +1108 -1014
- package/dist/{once-Boutk_9X.js → once-D1_qYl2e.js} +1 -1
- package/dist/{process-output-Dch8KCi8.js → process-output-C8Q8G6-g.js} +1 -1
- package/dist/{react-vega-zyfTF9SY.js → react-vega-BE2Uv1cq.js} +1 -1
- package/dist/{reveal-component-qNkzuPp3.js → reveal-component-2JQ2YfIT.js} +5 -5
- package/dist/{spec-BL1GSUUF.js → spec-DR1CyTOo.js} +2 -0
- package/dist/style.css +1 -1
- package/dist/{swiper-component-Cx0cRWLk.js → swiper-component-UYicacis.js} +1 -1
- package/dist/{useIframeCapabilities-CxuXXwjj.js → useIframeCapabilities-BbnoLKxG.js} +1 -1
- package/dist/{vega-component-CioKuDut.js → vega-component-xrHju6oo.js} +5 -5
- package/dist/{vega-embed-container-BRjjqRGz.js → vega-embed-container-B1tc-DoN.js} +2 -2
- package/dist/{vega-loader.browser-CGb-2Kwi.js → vega-loader.browser-VFQfHaoV.js} +1 -1
- package/package.json +1 -1
- package/src/components/app-config/optional-features.test.ts +78 -0
- package/src/components/app-config/optional-features.tsx +33 -6
- package/src/components/data-table/__tests__/column_formatting.test.ts +7 -0
- package/src/components/data-table/charts/__tests__/schemas.test.ts +17 -2
- package/src/components/data-table/charts/chart-spec/types.ts +2 -0
- package/src/components/data-table/column-formatting/feature.ts +1 -0
- package/src/components/data-table/column-formatting/types.ts +1 -0
- package/src/components/data-table/column-summary/chart-spec-model.tsx +1 -0
- package/src/components/data-table/column-summary/column-summary.tsx +1 -0
- package/src/components/data-table/columns.tsx +4 -3
- package/src/components/datasets/__tests__/icons.test.ts +10 -2
- package/src/components/datasets/icons.tsx +4 -0
- package/src/components/datasources/__tests__/components.test.tsx +14 -1
- package/src/components/datasources/datasources.tsx +2 -40
- package/src/components/editor/chrome/panels/components.tsx +35 -0
- package/src/components/editor/chrome/panels/file-explorer-panel.tsx +10 -0
- package/src/components/editor/chrome/panels/session-panel.tsx +12 -4
- package/src/components/editor/connections/__tests__/quick-add-data-sources.test.tsx +2 -0
- package/src/components/editor/connections/add-connection-dialog.tsx +5 -1
- package/src/components/editor/connections/quick-add-data-sources.tsx +11 -7
- package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +43 -0
- package/src/components/editor/connections/storage/__tests__/as-code.test.ts +127 -0
- package/src/components/editor/connections/storage/add-storage-form.tsx +11 -1
- package/src/components/editor/connections/storage/as-code.ts +30 -1
- package/src/components/editor/connections/storage/schemas.ts +63 -0
- package/src/core/codemirror/code-lens/__tests__/popover.test.ts +13 -0
- package/src/core/codemirror/code-lens/popover.tsx +11 -5
- package/src/core/codemirror/language/languages/sql/__tests__/renderers.test.tsx +15 -4
- package/src/core/codemirror/language/languages/sql/renderers.tsx +1 -0
- package/src/core/datasets/__tests__/data-source-discovery.test.ts +277 -0
- package/src/core/datasets/data-source-connections.ts +36 -0
- package/src/core/datasets/data-source-discovery.ts +92 -0
- package/src/core/kernel/messages.ts +1 -0
- package/src/core/websocket/useMarimoKernelConnection.tsx +11 -3
- package/src/hooks/useDataSourceDiscovery.ts +50 -9
- package/src/plugins/impl/MatrixPlugin.tsx +256 -35
- package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +13 -1
- package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +540 -3
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +1 -0
- package/src/plugins/impl/data-editor/glide-utils.ts +1 -0
- package/src/plugins/impl/data-frames/__tests__/schema.test.ts +9 -1
- package/src/plugins/impl/data-frames/utils/__tests__/operators.test.ts +8 -0
- package/src/plugins/impl/data-frames/utils/operators.ts +1 -1
- package/src/plugins/impl/vega/__tests__/vega.test.ts +22 -4
- package/src/plugins/impl/vega/utils.ts +3 -0
- package/dist/arrays-C56grfjL.js +0 -55
- package/src/hooks/__tests__/useDataSourceDiscovery.test.ts +0 -80
package/dist/main.js
CHANGED
|
@@ -22,17 +22,17 @@ import { _ as Functions, c as useEventListener, f as composeRefs, g as Logger, h
|
|
|
22
22
|
import { t as require_react } from "./react-DhGsCS90.js";
|
|
23
23
|
import { t as require_compiler_runtime } from "./compiler-runtime-DsR6imPN.js";
|
|
24
24
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-C7ZKMKox.js";
|
|
25
|
-
import { $ as notebookOutline, $t as isUninstantiated, A as ChevronDownIcon, An as Item$1, At as DeferredRequestRegistry, Bn as Layers, C as Accordion, Ct as MarkdownLanguageAdapter, D as BorderAllIcon, E as AccordionTrigger, En as selectAtom, Et as Paths, Fn as Table2, G as hasRunAnyCellAtom, Gn as Database, Gt as require_client, H as renderHTML, Hn as FileText, Ht as DATA_TYPE_ICON, I as base64ToDataView, In as PaintRoller, Jn as CircleAlert, K as cellIdsAtom, Kn as Columns2, Lt as repl, Mn as Trigger2, Pn as Trash2, Pt as jotaiJsonStorage, Q as notebookAtom, Qt as useRequestClient, R as dataViewToBase64, Rt as SQLParser, Sn as jsonParseWithSpecialChar, St as isRecord, T as AccordionItem, Tn as atomWithStorage, Tt as PathBuilder, U as getMarimoExportContext, Un as Eye, V as safeExtractSetUIElementMessageBuffers, Vn as Info, Vt as PluralWords, W as hasTrustedExportContext, X as hasOnlyOneCellAtom, Xt as getRequestClient, Y as getCellNames, Yn as Braces, Yt as convertStatsName, Z as initialNotebookState, Zt as requestClientAtom, _t as isInternalCellName, a as useCellFocusActions, at as createCell, bn as OBJECT_ID_ATTR, bt as customPythonLanguageSupport, dt as headingToIdentifier, en as publishedCellClasses, et as numColumnsAtom, f as isOutputEmpty, fn as parseAttrValue, gn as HTMLCellId, gt as getValidName, i as LazyAnyLanguageCodeMirror, jn as Root2$1, jt as generateUUID, kn as Content2, ln as NotebookScopedLocalStorage, lt as outputIsLoading, mn as parseInitialValue, n as Spinner, nt as useCellActions, o as useLastFocusedCellId, p as useExpandedConsoleOutput, pn as parseDataset, q as createActions, rt as useCellIds, s as maybeAddAltairImport, tn as shouldHidePublishedCell, tt as reducer, ut as outputIsStale, vn as UIElementId, vt as normalizeName, w as AccordionContent, wn as atomWithReducer, xn as RANDOM_ID_ATTR, xt as hasFunctionProperty, yn as findCellId, yt as Checkbox, zn as LoaderCircle, zt as MarkdownParser, __tla as __tla_0 } from "./html-to-image-
|
|
25
|
+
import { $ as notebookOutline, $t as isUninstantiated, A as ChevronDownIcon, An as Item$1, At as DeferredRequestRegistry, Bn as Layers, C as Accordion, Ct as MarkdownLanguageAdapter, D as BorderAllIcon, E as AccordionTrigger, En as selectAtom, Et as Paths, Fn as Table2, G as hasRunAnyCellAtom, Gn as Database, Gt as require_client, H as renderHTML, Hn as FileText, Ht as DATA_TYPE_ICON, I as base64ToDataView, In as PaintRoller, Jn as CircleAlert, K as cellIdsAtom, Kn as Columns2, Lt as repl, Mn as Trigger2, Pn as Trash2, Pt as jotaiJsonStorage, Q as notebookAtom, Qt as useRequestClient, R as dataViewToBase64, Rt as SQLParser, Sn as jsonParseWithSpecialChar, St as isRecord, T as AccordionItem, Tn as atomWithStorage, Tt as PathBuilder, U as getMarimoExportContext, Un as Eye, V as safeExtractSetUIElementMessageBuffers, Vn as Info, Vt as PluralWords, W as hasTrustedExportContext, X as hasOnlyOneCellAtom, Xt as getRequestClient, Y as getCellNames, Yn as Braces, Yt as convertStatsName, Z as initialNotebookState, Zt as requestClientAtom, _t as isInternalCellName, a as useCellFocusActions, at as createCell, bn as OBJECT_ID_ATTR, bt as customPythonLanguageSupport, dt as headingToIdentifier, en as publishedCellClasses, et as numColumnsAtom, f as isOutputEmpty, fn as parseAttrValue, gn as HTMLCellId, gt as getValidName, i as LazyAnyLanguageCodeMirror, jn as Root2$1, jt as generateUUID, kn as Content2, ln as NotebookScopedLocalStorage, lt as outputIsLoading, mn as parseInitialValue, n as Spinner, nt as useCellActions, o as useLastFocusedCellId, p as useExpandedConsoleOutput, pn as parseDataset, q as createActions, rt as useCellIds, s as maybeAddAltairImport, tn as shouldHidePublishedCell, tt as reducer, ut as outputIsStale, vn as UIElementId, vt as normalizeName, w as AccordionContent, wn as atomWithReducer, xn as RANDOM_ID_ATTR, xt as hasFunctionProperty, yn as findCellId, yt as Checkbox, zn as LoaderCircle, zt as MarkdownParser, __tla as __tla_0 } from "./html-to-image-BzT-fb14.js";
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BRZ_XYUw.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-j30bBjjN.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, 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 CommandSeparator, $t as Kbd, A as ErrorState, At as getPageIndexForRow, B as ContextMenuTrigger, Bt as dateToLocalISODate, C as downloadHTMLAsImage, Ct as inferFieldTypes, D as ColumnName, Dt as DelayMount, E as downloadSizeLimitAtom, Et as ColumnChartSpecModel, F as getUserColumnVisibilityCounts, Ft as TOO_MANY_ROWS, G as DateRangePicker, Gt as TabsList, H as useSelectList, Ht as dateToLocalISOTime, I as ContextMenu, It as toFieldTypes, J as Command, Jt as ChartInfoState, K as Combobox, Kt as TabsTrigger, L as ContextMenuContent, Lt as getMimeValues, M as prettifyRowColumnCount, Mt as loadTableData, N as prettifyRowCount, Nt as INDEX_COLUMN_NAME, O as ColumnPreviewContainer, Ot as useIntersectionObserver, P as getColumnCountForDisplay, Pt as SELECT_COLUMN_ID, Q as CommandList, Qt as RenderTextWithLinks, R as ContextMenuItem, Rt as isNullishFilter, S as downloadExportedFile, St as generateColumns, T as Filenames, Tt as ColumnChartContext, U as CompactChipRow, Ut as Tabs, V as useInternalStateWithSync, Vt as dateToLocalISODateTime, W as DatePicker, Wt as TabsContent, X as CommandInput, Xt as LazyVegaEmbed, Y as CommandEmpty, Yt as ChartLoadingState, Z as CommandItem, Zt as useOverflowDetection, _ as DataTable, _n as ChevronLeft, _t as TableCell, an as TextWrap, at as contextAwarePanelType, b as downloadBlob, bt as TableRow, c as SLIDE_TYPE_OPTIONS_BY_VALUE, cn as EyeOff, ct as slotsController, d as Switch, dn as Download, en as HtmlOutput, et as smartMatch, f as RadioGroup, fn as Code, g as OutputRenderer, gn as ChevronsDownUp, gt as TableBody, h as OutputArea, hn as ChevronsLeft, ht as Table, i as showCodeInRunModeAtom, in as $fae977aafc393c5c$export$6b862160d295c8e, it as contextAwarePanelOwner, j as LoadingState, jt as loadTableAndRawData, k as EmptyState, kt as usePrevious$1, lt as Toggle, m as JsonOutput, mn as ChevronsRight, mt as Provider$1, n as useNotebookCodeAvailable, nn as safeLocale, nt as PANEL_TYPES, on as GripHorizontal, ot as isCellAwareAtom, p as RadioGroupItem, pn as ChevronsUpDown, pt as Fill, q as ComboboxItem, qt as ChartErrorState, r as marimoVersionAtom, rn as $fae977aafc393c5c$export$588937bcd60ade55, rt as contextAwarePanelOpen, sn as Funnel, st as SlotNames, t as cellDomProps, tn as EmotionCacheProvider, tt as ContextAwarePanelItem, u as Slide, un as Ellipsis, v as InstallPackageButton, vn as ArrowDownWideNarrow, vt as TableHead, w as Progress, wt as renderCellValue, x as downloadByURL, xt as NAMELESS_COLUMN_PREFIX, y as ADD_PRINTING_CLASS, yt as TableHeader, z as ContextMenuSeparator, zt as Maps, __tla as __tla_2 } from "./common-
|
|
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, 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-DR1CyTOo.js";
|
|
29
|
+
import { $ as CommandSeparator, $t as Kbd, A as ErrorState, At as getPageIndexForRow, B as ContextMenuTrigger, Bt as dateToLocalISODate, C as downloadHTMLAsImage, Ct as inferFieldTypes, D as ColumnName, Dt as DelayMount, E as downloadSizeLimitAtom, Et as ColumnChartSpecModel, F as getUserColumnVisibilityCounts, Ft as TOO_MANY_ROWS, G as DateRangePicker, Gt as TabsList, H as useSelectList, Ht as dateToLocalISOTime, I as ContextMenu, It as toFieldTypes, J as Command, Jt as ChartInfoState, K as Combobox, Kt as TabsTrigger, L as ContextMenuContent, Lt as getMimeValues, M as prettifyRowColumnCount, Mt as loadTableData, N as prettifyRowCount, Nt as INDEX_COLUMN_NAME, O as ColumnPreviewContainer, Ot as useIntersectionObserver, P as getColumnCountForDisplay, Pt as SELECT_COLUMN_ID, Q as CommandList, Qt as RenderTextWithLinks, R as ContextMenuItem, Rt as isNullishFilter, S as downloadExportedFile, St as generateColumns, T as Filenames, Tt as ColumnChartContext, U as CompactChipRow, Ut as Tabs, V as useInternalStateWithSync, Vt as dateToLocalISODateTime, W as DatePicker, Wt as TabsContent, X as CommandInput, Xt as LazyVegaEmbed, Y as CommandEmpty, Yt as ChartLoadingState, Z as CommandItem, Zt as useOverflowDetection, _ as DataTable, _n as ChevronLeft, _t as TableCell, an as TextWrap, at as contextAwarePanelType, b as downloadBlob, bt as TableRow, c as SLIDE_TYPE_OPTIONS_BY_VALUE, cn as EyeOff, ct as slotsController, d as Switch, dn as Download, en as HtmlOutput, et as smartMatch, f as RadioGroup, fn as Code, g as OutputRenderer, gn as ChevronsDownUp, gt as TableBody, h as OutputArea, hn as ChevronsLeft, ht as Table, i as showCodeInRunModeAtom, in as $fae977aafc393c5c$export$6b862160d295c8e, it as contextAwarePanelOwner, j as LoadingState, jt as loadTableAndRawData, k as EmptyState, kt as usePrevious$1, lt as Toggle, m as JsonOutput, mn as ChevronsRight, mt as Provider$1, n as useNotebookCodeAvailable, nn as safeLocale, nt as PANEL_TYPES, on as GripHorizontal, ot as isCellAwareAtom, p as RadioGroupItem, pn as ChevronsUpDown, pt as Fill, q as ComboboxItem, qt as ChartErrorState, r as marimoVersionAtom, rn as $fae977aafc393c5c$export$588937bcd60ade55, rt as contextAwarePanelOpen, sn as Funnel, st as SlotNames, t as cellDomProps, tn as EmotionCacheProvider, tt as ContextAwarePanelItem, u as Slide, un as Ellipsis, v as InstallPackageButton, vn as ArrowDownWideNarrow, vt as TableHead, w as Progress, wt as renderCellValue, x as downloadByURL, xt as NAMELESS_COLUMN_PREFIX, y as ADD_PRINTING_CLASS, yt as TableHeader, z as ContextMenuSeparator, zt as Maps, __tla as __tla_2 } from "./common-Cy9zypnG.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-Bw4wRj_O.js";
|
|
31
31
|
import { t as Check } from "./check-58HHfHKy.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-DMLVGXRo.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-
|
|
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-CqV2ZPgL.js";
|
|
34
34
|
import { S as isWasm, _ as initialModeAtom, b as viewStateAtom, c as asRemoteURL, d as isStaticNotebook, f as appendQueryParams, g as getInitialAppMode, m as require_cuid2, u as getStaticVirtualFiles, v as kioskModeAtom, w as CircleQuestionMark, x as Deferred } from "./toDate-CjUYDkFI.js";
|
|
35
|
-
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, f as Square, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, p as File, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-
|
|
35
|
+
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, f as Square, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, p as File, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-C8Q8G6-g.js";
|
|
36
36
|
import { n as Trash, r as Pencil, t as BulkEdit } from "./types-DT8UHI5w.js";
|
|
37
37
|
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-BniTEhHn.js";
|
|
38
38
|
import { t as require_react_dom } from "./react-dom-CmENFV8Q.js";
|
|
@@ -48,9 +48,9 @@ import { t as debounce_default } from "./debounce-D784bpms.js";
|
|
|
48
48
|
import { A as useEvent_default, S as useAtomValue, T as atom, a as KnownQueryParams, b as Provider, c as autoInstantiateAtom, f as useResolvedMarimoConfig, g as store, k as dequal, m as AppConfigSchema, n as useTheme, r as CSSClasses, u as localeAtom, x as useAtom, y as isIslands } from "./useTheme-BzEXeAR5.js";
|
|
49
49
|
import { $ as EditorView, F as syntaxHighlighting, H as tags, a as HighlightStyle, g as defaultHighlightStyle } from "./dist-BJ2IUa0l.js";
|
|
50
50
|
import { t as invariant } from "./invariant-hOqqBz8A.js";
|
|
51
|
-
import {
|
|
51
|
+
import { l as uniqueBy, o as arrayShallowEquals, t as Arrays, u as clamp } from "./arrays-Ct6XviUd.js";
|
|
52
52
|
import { t as Objects } from "./objects-UzwQd5gx.js";
|
|
53
|
-
import { n as once } from "./once-
|
|
53
|
+
import { n as once } from "./once-D1_qYl2e.js";
|
|
54
54
|
import { f as sql } from "./dist-D9-ePb6D.js";
|
|
55
55
|
import { a as markdown } from "./dist-Awj73yUw.js";
|
|
56
56
|
import "./dist-72nb8Uag.js";
|
|
@@ -59,9 +59,9 @@ import "./dist-D1vYHETp.js";
|
|
|
59
59
|
import { r as python } from "./dist-Ckfsc8C3.js";
|
|
60
60
|
import { n as minimalSetup, t as esm_default } from "./esm-QLUgkqzZ.js";
|
|
61
61
|
import "./purify.es-DR5PNXwx.js";
|
|
62
|
-
import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-
|
|
63
|
-
import { A as getContainerWidth, j as getVegaFieldTypes } from "./vega-loader.browser-
|
|
64
|
-
import { a as tooltipHandler, n as vegaLoadData } from "./loader-
|
|
62
|
+
import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-BZtMpeQe.js";
|
|
63
|
+
import { A as getContainerWidth, j as getVegaFieldTypes } from "./vega-loader.browser-VFQfHaoV.js";
|
|
64
|
+
import { a as tooltipHandler, n as vegaLoadData } from "./loader-Chm6nOqy.js";
|
|
65
65
|
import "./defaultLocale-CMezyvMc.js";
|
|
66
66
|
import "./defaultLocale-DMZFeDB8.js";
|
|
67
67
|
import { t as useAsyncData } from "./useAsyncData-CDcbh-Qv.js";
|
|
@@ -7519,33 +7519,33 @@ let __tla = Promise.all([
|
|
|
7519
7519
|
}), B = C({
|
|
7520
7520
|
height: 0,
|
|
7521
7521
|
width: 0
|
|
7522
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
7522
|
+
}), H = U(), W = U(), G = C(0), q = C(null), tG = C({
|
|
7523
7523
|
column: 0,
|
|
7524
7524
|
row: 0
|
|
7525
|
-
}), Z = U(),
|
|
7526
|
-
Y(x(b, $(
|
|
7527
|
-
D(
|
|
7528
|
-
}), Y(x(ut(b,
|
|
7529
|
-
D(
|
|
7525
|
+
}), Z = U(), nG = U(), rG = C(false), iG = C(0), aG = C(true), oG = C(false), sG = C(false);
|
|
7526
|
+
Y(x(b, $(iG), P(([e2, r2]) => !!r2)), () => {
|
|
7527
|
+
D(aG, false);
|
|
7528
|
+
}), Y(x(ut(b, aG, B, z, iG, oG), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7529
|
+
D(oG, true), Ue(1, () => {
|
|
7530
7530
|
D(H, e2);
|
|
7531
7531
|
}), Et(x(h), () => {
|
|
7532
7532
|
D(r, [
|
|
7533
7533
|
0,
|
|
7534
7534
|
0
|
|
7535
|
-
]), D(
|
|
7535
|
+
]), D(aG, true);
|
|
7536
7536
|
});
|
|
7537
|
-
}), F(x(
|
|
7538
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7539
|
-
D(
|
|
7537
|
+
}), F(x(nG, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(nG), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7538
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(tG, e2.gap), e2.scrollTop > 0 && (D(rG, true), Et(x(h, Kt(1)), (e3) => {
|
|
7539
|
+
D(rG, false);
|
|
7540
7540
|
}), D(m, {
|
|
7541
7541
|
top: e2.scrollTop
|
|
7542
7542
|
})));
|
|
7543
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7543
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(tG, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7544
7544
|
gap: c2,
|
|
7545
7545
|
item: r2,
|
|
7546
7546
|
scrollTop: l2,
|
|
7547
7547
|
viewport: e2
|
|
7548
|
-
}))), Z), F(x(ut(V(I), l, V(
|
|
7548
|
+
}))), Z), F(x(ut(V(I), l, V(tG, Or), V(B, xe), V(z, xe), V(q), V(L), V(rG), V(aG), V(iG)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7549
7549
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7550
7550
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7551
7551
|
if (y2 === 0) {
|
|
@@ -7564,23 +7564,23 @@ let __tla = Promise.all([
|
|
|
7564
7564
|
offsetTop: j2,
|
|
7565
7565
|
top: j2
|
|
7566
7566
|
};
|
|
7567
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7567
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, tG), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7568
7568
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7569
7569
|
return [
|
|
7570
7570
|
d2,
|
|
7571
7571
|
u2
|
|
7572
7572
|
];
|
|
7573
7573
|
}), J(ce)), r);
|
|
7574
|
-
let
|
|
7575
|
-
F(x(h, $(
|
|
7576
|
-
let
|
|
7574
|
+
let cG = C(false);
|
|
7575
|
+
F(x(h, $(cG), k(([e2, r2]) => r2 || e2 !== 0)), cG);
|
|
7576
|
+
let lG = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(cG), P(([[e2, r2], c2]) => {
|
|
7577
7577
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7578
7578
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7579
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7579
|
+
}), k(([[, e2]]) => e2 - 1), J())), uG = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), dG = bt(x(V(R), $(rG), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7580
7580
|
endIndex: e2[e2.length - 1].index,
|
|
7581
7581
|
startIndex: e2[0].index
|
|
7582
7582
|
})), J(An), Gt(0)));
|
|
7583
|
-
F(
|
|
7583
|
+
F(dG, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, tG), k(([e2, r2, c2, l2, u2]) => {
|
|
7584
7584
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7585
7585
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7586
7586
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7589,7 +7589,7 @@ let __tla = Promise.all([
|
|
|
7589
7589
|
top: g2
|
|
7590
7590
|
};
|
|
7591
7591
|
})), m);
|
|
7592
|
-
let
|
|
7592
|
+
let fG = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7593
7593
|
return F(x(j, k((e2) => ({
|
|
7594
7594
|
height: e2.visibleHeight,
|
|
7595
7595
|
width: e2.visibleWidth
|
|
@@ -7598,13 +7598,13 @@ let __tla = Promise.all([
|
|
|
7598
7598
|
data: q,
|
|
7599
7599
|
deviation: G,
|
|
7600
7600
|
footerHeight: u,
|
|
7601
|
-
gap:
|
|
7601
|
+
gap: tG,
|
|
7602
7602
|
headerHeight: d,
|
|
7603
7603
|
increaseViewportBy: e,
|
|
7604
7604
|
initialItemCount: L,
|
|
7605
7605
|
itemDimensions: B,
|
|
7606
7606
|
overscan: c,
|
|
7607
|
-
restoreStateFrom:
|
|
7607
|
+
restoreStateFrom: nG,
|
|
7608
7608
|
scrollBy: f,
|
|
7609
7609
|
scrollContainerState: p,
|
|
7610
7610
|
scrollHeight: W,
|
|
@@ -7620,16 +7620,16 @@ let __tla = Promise.all([
|
|
|
7620
7620
|
windowViewportRect: j,
|
|
7621
7621
|
...y,
|
|
7622
7622
|
gridState: R,
|
|
7623
|
-
horizontalDirection:
|
|
7624
|
-
initialTopMostItemIndex:
|
|
7625
|
-
totalListHeight:
|
|
7623
|
+
horizontalDirection: sG,
|
|
7624
|
+
initialTopMostItemIndex: iG,
|
|
7625
|
+
totalListHeight: fG,
|
|
7626
7626
|
...v,
|
|
7627
|
-
endReached:
|
|
7627
|
+
endReached: lG,
|
|
7628
7628
|
propsReady: S,
|
|
7629
|
-
rangeChanged:
|
|
7630
|
-
startReached:
|
|
7629
|
+
rangeChanged: dG,
|
|
7630
|
+
startReached: uG,
|
|
7631
7631
|
stateChanged: Z,
|
|
7632
|
-
stateRestoreInProgress:
|
|
7632
|
+
stateRestoreInProgress: rG,
|
|
7633
7633
|
...M
|
|
7634
7634
|
};
|
|
7635
7635
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7907,7 +7907,7 @@ let __tla = Promise.all([
|
|
|
7907
7907
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7908
7908
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7909
7909
|
}, r[8] = p, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7910
|
-
let
|
|
7910
|
+
let tG = q, Z;
|
|
7911
7911
|
if (r[13] !== G.bulkActions) {
|
|
7912
7912
|
if (Z = G.bulkActions.map(_temp$27), Z.length > 0) {
|
|
7913
7913
|
let e2;
|
|
@@ -7917,12 +7917,12 @@ let __tla = Promise.all([
|
|
|
7917
7917
|
}
|
|
7918
7918
|
r[13] = G.bulkActions, r[14] = Z;
|
|
7919
7919
|
} else Z = r[14];
|
|
7920
|
-
let
|
|
7921
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7920
|
+
let nG;
|
|
7921
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (nG = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7922
7922
|
"data-slot": "select-separator"
|
|
7923
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7924
|
-
let
|
|
7925
|
-
r[19] !== Z || r[20] !== G || r[21] !==
|
|
7923
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = nG) : nG = r[18];
|
|
7924
|
+
let rG = nG, iG;
|
|
7925
|
+
r[19] !== Z || r[20] !== G || r[21] !== rG || r[22] !== w || r[23] !== B || r[24] !== H ? (iG = () => {
|
|
7926
7926
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7927
7927
|
"data-slot": "select-list",
|
|
7928
7928
|
style: {
|
|
@@ -7935,7 +7935,7 @@ let __tla = Promise.all([
|
|
|
7935
7935
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7936
7936
|
children: [
|
|
7937
7937
|
e3 === 0 && Z,
|
|
7938
|
-
|
|
7938
|
+
rG(e3),
|
|
7939
7939
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7940
7940
|
option: r2,
|
|
7941
7941
|
checked: G.isChecked(r2.value),
|
|
@@ -7946,7 +7946,7 @@ let __tla = Promise.all([
|
|
|
7946
7946
|
}
|
|
7947
7947
|
});
|
|
7948
7948
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7949
|
-
let c2 =
|
|
7949
|
+
let c2 = rG(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7950
7950
|
option: e3,
|
|
7951
7951
|
checked: G.isChecked(e3.value),
|
|
7952
7952
|
renderOption: w
|
|
@@ -7964,9 +7964,9 @@ let __tla = Promise.all([
|
|
|
7964
7964
|
e2
|
|
7965
7965
|
]
|
|
7966
7966
|
});
|
|
7967
|
-
}, r[19] = Z, r[20] = G, r[21] =
|
|
7968
|
-
let
|
|
7969
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7967
|
+
}, r[19] = Z, r[20] = G, r[21] = rG, r[22] = w, r[23] = B, r[24] = H, r[25] = iG) : iG = r[25];
|
|
7968
|
+
let aG = iG, oG;
|
|
7969
|
+
r[26] !== G.labelOf || r[27] !== I ? (oG = (e2) => {
|
|
7970
7970
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7971
7971
|
e2
|
|
7972
7972
|
];
|
|
@@ -7977,46 +7977,46 @@ let __tla = Promise.all([
|
|
|
7977
7977
|
items: r2.map(G.labelOf),
|
|
7978
7978
|
max: 3
|
|
7979
7979
|
});
|
|
7980
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7981
|
-
let
|
|
7982
|
-
r[29] === G ?
|
|
7983
|
-
let
|
|
7984
|
-
r[31] !== b || r[32] !== R ? (
|
|
7980
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = oG) : oG = r[28];
|
|
7981
|
+
let sG = oG, cG = e["data-testid"], lG;
|
|
7982
|
+
r[29] === G ? lG = r[30] : (lG = (e2) => G.labelOf(e2), r[29] = G, r[30] = lG);
|
|
7983
|
+
let uG = M ? sG : void 0, dG;
|
|
7984
|
+
r[31] !== b || r[32] !== R ? (dG = cn({
|
|
7985
7985
|
"w-full": R
|
|
7986
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7987
|
-
let
|
|
7988
|
-
r[34] === z ?
|
|
7989
|
-
let
|
|
7990
|
-
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] !==
|
|
7986
|
+
}, b), r[31] = b, r[32] = R, r[33] = dG) : dG = r[33];
|
|
7987
|
+
let fG = G.searchQuery, pG = G.setSearchQuery, mG = G.open, hG = G.setOpen, gG;
|
|
7988
|
+
r[34] === z ? gG = r[35] : (gG = renderSlot(z), r[34] = z, r[35] = gG);
|
|
7989
|
+
let _G;
|
|
7990
|
+
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] !== cG || r[44] !== lG || r[45] !== uG || r[46] !== dG || r[47] !== gG ? (_G = {
|
|
7991
7991
|
"data-slot": "select-root",
|
|
7992
|
-
"data-testid":
|
|
7993
|
-
displayValue:
|
|
7994
|
-
renderValue:
|
|
7992
|
+
"data-testid": cG,
|
|
7993
|
+
displayValue: lG,
|
|
7994
|
+
renderValue: uG,
|
|
7995
7995
|
placeholder: I,
|
|
7996
|
-
className:
|
|
7996
|
+
className: dG,
|
|
7997
7997
|
shouldFilter: false,
|
|
7998
|
-
search:
|
|
7999
|
-
onSearchChange:
|
|
8000
|
-
open:
|
|
8001
|
-
onOpenChange:
|
|
8002
|
-
emptyState:
|
|
7998
|
+
search: fG,
|
|
7999
|
+
onSearchChange: pG,
|
|
8000
|
+
open: mG,
|
|
8001
|
+
onOpenChange: hG,
|
|
8002
|
+
emptyState: gG,
|
|
8003
8003
|
disabled: L,
|
|
8004
8004
|
id: S
|
|
8005
|
-
}, 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] =
|
|
8006
|
-
let
|
|
8007
|
-
return r[49] !==
|
|
8008
|
-
...
|
|
8005
|
+
}, 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] = cG, r[44] = lG, r[45] = uG, r[46] = dG, r[47] = gG, r[48] = _G) : _G = r[48];
|
|
8006
|
+
let vG = _G, yG;
|
|
8007
|
+
return r[49] !== vG || r[50] !== tG || r[51] !== d || r[52] !== aG || r[53] !== l ? (yG = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
8008
|
+
...vG,
|
|
8009
8009
|
multiple: true,
|
|
8010
8010
|
value: l,
|
|
8011
|
-
onValueChange:
|
|
8012
|
-
children:
|
|
8011
|
+
onValueChange: tG,
|
|
8012
|
+
children: aG()
|
|
8013
8013
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
8014
|
-
...
|
|
8014
|
+
...vG,
|
|
8015
8015
|
multiple: false,
|
|
8016
8016
|
value: l,
|
|
8017
|
-
onValueChange:
|
|
8018
|
-
children:
|
|
8019
|
-
}), r[49] =
|
|
8017
|
+
onValueChange: tG,
|
|
8018
|
+
children: aG()
|
|
8019
|
+
}), r[49] = vG, r[50] = tG, r[51] = d, r[52] = aG, r[53] = l, r[54] = yG) : yG = r[54], yG;
|
|
8020
8020
|
}
|
|
8021
8021
|
function _temp$27(e) {
|
|
8022
8022
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -9016,7 +9016,7 @@ let __tla = Promise.all([
|
|
|
9016
9016
|
};
|
|
9017
9017
|
}
|
|
9018
9018
|
};
|
|
9019
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
9019
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-ChbH2I73.js").then((e) => ({
|
|
9020
9020
|
default: e.Chatbot
|
|
9021
9021
|
}))), messageSchema = array(object({
|
|
9022
9022
|
id: string(),
|
|
@@ -9181,6 +9181,7 @@ let __tla = Promise.all([
|
|
|
9181
9181
|
"date",
|
|
9182
9182
|
"datetime",
|
|
9183
9183
|
"time",
|
|
9184
|
+
"geometry",
|
|
9184
9185
|
"unknown"
|
|
9185
9186
|
], NUMPY_DTYPES = [
|
|
9186
9187
|
"int8",
|
|
@@ -9567,7 +9568,7 @@ let __tla = Promise.all([
|
|
|
9567
9568
|
]), TransformationsSchema = object({
|
|
9568
9569
|
transforms: array(TransformTypeSchema)
|
|
9569
9570
|
});
|
|
9570
|
-
var import_compiler_runtime$76 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-
|
|
9571
|
+
var import_compiler_runtime$76 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-aimC_hok.js").then(async (m) => {
|
|
9571
9572
|
await m.__tla;
|
|
9572
9573
|
return m;
|
|
9573
9574
|
}));
|
|
@@ -10527,7 +10528,7 @@ let __tla = Promise.all([
|
|
|
10527
10528
|
let m2 = get(l, e2);
|
|
10528
10529
|
if (m2) {
|
|
10529
10530
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
10530
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
10531
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : tG(e2, l2), f.mount && w();
|
|
10531
10532
|
}
|
|
10532
10533
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
10533
10534
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -10600,14 +10601,14 @@ let __tla = Promise.all([
|
|
|
10600
10601
|
}, H = () => {
|
|
10601
10602
|
for (let e2 of p.unMount) {
|
|
10602
10603
|
let r2 = get(l, e2);
|
|
10603
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
10604
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && dG(e2);
|
|
10604
10605
|
}
|
|
10605
10606
|
p.unMount = /* @__PURE__ */ new Set();
|
|
10606
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
10607
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(oG(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
10607
10608
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
10608
10609
|
[e2]: r2
|
|
10609
10610
|
} : r2
|
|
10610
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
10611
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), tG = (e2, r2, c2 = {}) => {
|
|
10611
10612
|
let u2 = get(l, e2), f2 = r2;
|
|
10612
10613
|
if (u2) {
|
|
10613
10614
|
let c3 = u2._f;
|
|
@@ -10620,13 +10621,13 @@ let __tla = Promise.all([
|
|
|
10620
10621
|
}
|
|
10621
10622
|
})));
|
|
10622
10623
|
}
|
|
10623
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
10624
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && aG(e2);
|
|
10624
10625
|
}, Z = (e2, r2, c2) => {
|
|
10625
10626
|
for (let u2 in r2) {
|
|
10626
10627
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
10627
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) :
|
|
10628
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) : tG(f2, d2, c2);
|
|
10628
10629
|
}
|
|
10629
|
-
},
|
|
10630
|
+
}, nG = (e2, r2, m2 = {}) => {
|
|
10630
10631
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
10631
10632
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
10632
10633
|
name: e2,
|
|
@@ -10637,7 +10638,7 @@ let __tla = Promise.all([
|
|
|
10637
10638
|
name: e2,
|
|
10638
10639
|
dirtyFields: getDirtyFields(u, d),
|
|
10639
10640
|
isDirty: W(e2, y2)
|
|
10640
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) :
|
|
10641
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) : tG(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
10641
10642
|
...c
|
|
10642
10643
|
}), _.values.next({
|
|
10643
10644
|
name: f.mount ? e2 : void 0,
|
|
@@ -10645,7 +10646,7 @@ let __tla = Promise.all([
|
|
|
10645
10646
|
...d
|
|
10646
10647
|
}
|
|
10647
10648
|
});
|
|
10648
|
-
},
|
|
10649
|
+
}, rG = async (e2) => {
|
|
10649
10650
|
f.mount = true;
|
|
10650
10651
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
10651
10652
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -10679,11 +10680,11 @@ let __tla = Promise.all([
|
|
|
10679
10680
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
10680
10681
|
h2
|
|
10681
10682
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
10682
|
-
S2 && (E2._f.deps &&
|
|
10683
|
+
S2 && (E2._f.deps && aG(E2._f.deps), L(h2, f2, u3, G2));
|
|
10683
10684
|
}
|
|
10684
|
-
},
|
|
10685
|
+
}, iG = (e2, r2) => {
|
|
10685
10686
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
10686
|
-
},
|
|
10687
|
+
}, aG = async (e2, u2 = {}) => {
|
|
10687
10688
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
10688
10689
|
if (r.resolver) {
|
|
10689
10690
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -10702,23 +10703,23 @@ let __tla = Promise.all([
|
|
|
10702
10703
|
isValid: d2
|
|
10703
10704
|
} : {},
|
|
10704
10705
|
errors: c.errors
|
|
10705
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
10706
|
-
},
|
|
10706
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, iG, e2 ? m2 : p.mount), f2;
|
|
10707
|
+
}, oG = (e2) => {
|
|
10707
10708
|
let r2 = {
|
|
10708
10709
|
...f.mount ? d : u
|
|
10709
10710
|
};
|
|
10710
10711
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
10711
|
-
},
|
|
10712
|
+
}, sG = (e2, r2) => ({
|
|
10712
10713
|
invalid: !!get((r2 || c).errors, e2),
|
|
10713
10714
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
10714
10715
|
error: get((r2 || c).errors, e2),
|
|
10715
10716
|
isValidating: !!get(c.validatingFields, e2),
|
|
10716
10717
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
10717
|
-
}),
|
|
10718
|
+
}), cG = (e2) => {
|
|
10718
10719
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
10719
10720
|
errors: e2 ? c.errors : {}
|
|
10720
10721
|
});
|
|
10721
|
-
},
|
|
10722
|
+
}, lG = (e2, r2, u2) => {
|
|
10722
10723
|
let d2 = (get(l, e2, {
|
|
10723
10724
|
_f: {}
|
|
10724
10725
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -10731,9 +10732,9 @@ let __tla = Promise.all([
|
|
|
10731
10732
|
errors: c.errors,
|
|
10732
10733
|
isValid: false
|
|
10733
10734
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
10734
|
-
},
|
|
10735
|
+
}, uG = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
10735
10736
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
10736
|
-
}) : G(e2, r2, true),
|
|
10737
|
+
}) : G(e2, r2, true), dG = (e2, f2 = {}) => {
|
|
10737
10738
|
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);
|
|
10738
10739
|
_.values.next({
|
|
10739
10740
|
values: {
|
|
@@ -10745,9 +10746,9 @@ let __tla = Promise.all([
|
|
|
10745
10746
|
isDirty: W()
|
|
10746
10747
|
} : {}
|
|
10747
10748
|
}), !f2.keepIsValid && w();
|
|
10748
|
-
},
|
|
10749
|
+
}, fG = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
10749
10750
|
(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));
|
|
10750
|
-
},
|
|
10751
|
+
}, pG = (e2, c2 = {}) => {
|
|
10751
10752
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
10752
10753
|
return set(l, e2, {
|
|
10753
10754
|
...d2 || {},
|
|
@@ -10761,7 +10762,7 @@ let __tla = Promise.all([
|
|
|
10761
10762
|
mount: true,
|
|
10762
10763
|
...c2
|
|
10763
10764
|
}
|
|
10764
|
-
}), p.mount.add(e2), d2 ?
|
|
10765
|
+
}), p.mount.add(e2), d2 ? fG({
|
|
10765
10766
|
field: d2,
|
|
10766
10767
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
10767
10768
|
name: e2
|
|
@@ -10778,11 +10779,11 @@ let __tla = Promise.all([
|
|
|
10778
10779
|
pattern: getRuleValue(c2.pattern)
|
|
10779
10780
|
} : {},
|
|
10780
10781
|
name: e2,
|
|
10781
|
-
onChange:
|
|
10782
|
-
onBlur:
|
|
10782
|
+
onChange: rG,
|
|
10783
|
+
onBlur: rG,
|
|
10783
10784
|
ref: (m3) => {
|
|
10784
10785
|
if (m3) {
|
|
10785
|
-
|
|
10786
|
+
pG(e2, c2), d2 = get(l, e2);
|
|
10786
10787
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
10787
10788
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
10788
10789
|
set(l, e2, {
|
|
@@ -10808,7 +10809,7 @@ let __tla = Promise.all([
|
|
|
10808
10809
|
} 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);
|
|
10809
10810
|
}
|
|
10810
10811
|
};
|
|
10811
|
-
},
|
|
10812
|
+
}, mG = () => r.shouldFocusError && iterateFieldsByAction(l, iG, p.mount), hG = (e2) => {
|
|
10812
10813
|
isBoolean(e2) && (_.state.next({
|
|
10813
10814
|
disabled: e2
|
|
10814
10815
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -10817,7 +10818,7 @@ let __tla = Promise.all([
|
|
|
10817
10818
|
r3.disabled = u2._f.disabled || e2;
|
|
10818
10819
|
}));
|
|
10819
10820
|
}, 0, false));
|
|
10820
|
-
},
|
|
10821
|
+
}, gG = (e2, u2) => async (f2) => {
|
|
10821
10822
|
let m2;
|
|
10822
10823
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
10823
10824
|
let h2 = cloneObject(d);
|
|
@@ -10839,7 +10840,7 @@ let __tla = Promise.all([
|
|
|
10839
10840
|
}
|
|
10840
10841
|
} else u2 && await u2({
|
|
10841
10842
|
...c.errors
|
|
10842
|
-
}, f2),
|
|
10843
|
+
}, f2), mG(), setTimeout(mG);
|
|
10843
10844
|
if (_.state.next({
|
|
10844
10845
|
isSubmitted: true,
|
|
10845
10846
|
isSubmitting: false,
|
|
@@ -10847,11 +10848,11 @@ let __tla = Promise.all([
|
|
|
10847
10848
|
submitCount: c.submitCount + 1,
|
|
10848
10849
|
errors: c.errors
|
|
10849
10850
|
}), m2) throw m2;
|
|
10850
|
-
},
|
|
10851
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10851
|
+
}, _G = (e2, r2 = {}) => {
|
|
10852
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? nG(e2, cloneObject(get(u, e2))) : (nG(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({
|
|
10852
10853
|
...c
|
|
10853
10854
|
}));
|
|
10854
|
-
},
|
|
10855
|
+
}, vG = (e2, m2 = {}) => {
|
|
10855
10856
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10856
10857
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10857
10858
|
if (m2.keepDirtyValues) {
|
|
@@ -10859,7 +10860,7 @@ let __tla = Promise.all([
|
|
|
10859
10860
|
...p.mount,
|
|
10860
10861
|
...Object.keys(getDirtyFields(u, d))
|
|
10861
10862
|
]);
|
|
10862
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10863
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : nG(r2, get(b2, r2));
|
|
10863
10864
|
} else {
|
|
10864
10865
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10865
10866
|
let r2 = get(l, e3);
|
|
@@ -10904,25 +10905,25 @@ let __tla = Promise.all([
|
|
|
10904
10905
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10905
10906
|
isSubmitting: false
|
|
10906
10907
|
});
|
|
10907
|
-
},
|
|
10908
|
+
}, yG = (e2, r2) => vG(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10908
10909
|
return {
|
|
10909
10910
|
control: {
|
|
10910
|
-
register:
|
|
10911
|
-
unregister:
|
|
10912
|
-
getFieldState:
|
|
10913
|
-
handleSubmit:
|
|
10914
|
-
setError:
|
|
10911
|
+
register: pG,
|
|
10912
|
+
unregister: dG,
|
|
10913
|
+
getFieldState: sG,
|
|
10914
|
+
handleSubmit: gG,
|
|
10915
|
+
setError: lG,
|
|
10915
10916
|
_executeSchema: R,
|
|
10916
10917
|
_getWatch: G,
|
|
10917
10918
|
_getDirty: W,
|
|
10918
10919
|
_updateValid: w,
|
|
10919
10920
|
_removeUnmounted: H,
|
|
10920
10921
|
_updateFieldArray: E,
|
|
10921
|
-
_updateDisabledField:
|
|
10922
|
+
_updateDisabledField: fG,
|
|
10922
10923
|
_getFieldArray: q,
|
|
10923
|
-
_reset:
|
|
10924
|
+
_reset: vG,
|
|
10924
10925
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10925
|
-
|
|
10926
|
+
yG(e2, r.resetOptions), _.state.next({
|
|
10926
10927
|
isLoading: false
|
|
10927
10928
|
});
|
|
10928
10929
|
}),
|
|
@@ -10932,7 +10933,7 @@ let __tla = Promise.all([
|
|
|
10932
10933
|
...e2
|
|
10933
10934
|
};
|
|
10934
10935
|
},
|
|
10935
|
-
_disableForm:
|
|
10936
|
+
_disableForm: hG,
|
|
10936
10937
|
_subjects: _,
|
|
10937
10938
|
_proxyFormState: g,
|
|
10938
10939
|
_setErrors: j,
|
|
@@ -10973,17 +10974,17 @@ let __tla = Promise.all([
|
|
|
10973
10974
|
};
|
|
10974
10975
|
}
|
|
10975
10976
|
},
|
|
10976
|
-
trigger:
|
|
10977
|
-
register:
|
|
10978
|
-
handleSubmit:
|
|
10979
|
-
watch:
|
|
10980
|
-
setValue:
|
|
10981
|
-
getValues:
|
|
10982
|
-
reset:
|
|
10983
|
-
resetField:
|
|
10984
|
-
clearErrors:
|
|
10985
|
-
unregister:
|
|
10986
|
-
setError:
|
|
10977
|
+
trigger: aG,
|
|
10978
|
+
register: pG,
|
|
10979
|
+
handleSubmit: gG,
|
|
10980
|
+
watch: uG,
|
|
10981
|
+
setValue: nG,
|
|
10982
|
+
getValues: oG,
|
|
10983
|
+
reset: yG,
|
|
10984
|
+
resetField: _G,
|
|
10985
|
+
clearErrors: cG,
|
|
10986
|
+
unregister: dG,
|
|
10987
|
+
setError: lG,
|
|
10987
10988
|
setFocus: (e2, r2 = {}) => {
|
|
10988
10989
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10989
10990
|
if (u2) {
|
|
@@ -10991,7 +10992,7 @@ let __tla = Promise.all([
|
|
|
10991
10992
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10992
10993
|
}
|
|
10993
10994
|
},
|
|
10994
|
-
getFieldState:
|
|
10995
|
+
getFieldState: sG
|
|
10995
10996
|
};
|
|
10996
10997
|
}
|
|
10997
10998
|
function useForm(e = {}) {
|
|
@@ -16316,21 +16317,21 @@ ${c}
|
|
|
16316
16317
|
_.pageSize,
|
|
16317
16318
|
_.pageIndex
|
|
16318
16319
|
], 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] = p, r[46] = B, r[47] = H) : H = r[47];
|
|
16319
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
16320
|
-
r[48] !== Z || r[49] !== e ? (
|
|
16321
|
-
let
|
|
16322
|
-
r[51] !== Z || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !==
|
|
16320
|
+
let { data: W, error: G, isPending: q, isFetching: tG } = useAsyncData(z, H), Z = useAtomValue(downloadSizeLimitAtom), nG;
|
|
16321
|
+
r[48] !== Z || r[49] !== e ? (nG = async () => !Z || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = Z, r[49] = e, r[50] = nG) : nG = r[50];
|
|
16322
|
+
let rG = e.showDownload, iG = e.get_size_bytes, aG = e.lazy, oG = e.totalRows, sG = useDeepCompareMemoize(w), cG = useDeepCompareMemoize(p), lG;
|
|
16323
|
+
r[51] !== Z || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== sG || r[58] !== cG ? (lG = [
|
|
16323
16324
|
Z,
|
|
16324
|
-
$W,
|
|
16325
|
-
eG,
|
|
16326
|
-
tG,
|
|
16327
|
-
nG,
|
|
16328
|
-
y,
|
|
16329
16325
|
rG,
|
|
16330
|
-
iG
|
|
16331
|
-
|
|
16332
|
-
|
|
16333
|
-
|
|
16326
|
+
iG,
|
|
16327
|
+
aG,
|
|
16328
|
+
oG,
|
|
16329
|
+
y,
|
|
16330
|
+
sG,
|
|
16331
|
+
cG
|
|
16332
|
+
], r[51] = Z, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = sG, r[58] = cG, r[59] = lG) : lG = r[59];
|
|
16333
|
+
let { data: uG, isPending: dG } = useAsyncData(nG, lG), fG = uG ?? null, pG = !!Z && e.showDownload && dG, mG;
|
|
16334
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== p ? (mG = async (e2) => ({
|
|
16334
16335
|
rows: await loadTableData((await u({
|
|
16335
16336
|
page_number: e2,
|
|
16336
16337
|
page_size: 1,
|
|
@@ -16339,17 +16340,17 @@ ${c}
|
|
|
16339
16340
|
filters: filtersToFilterGroup(w),
|
|
16340
16341
|
max_columns: null
|
|
16341
16342
|
})).data)
|
|
16342
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] =
|
|
16343
|
-
let
|
|
16344
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16343
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] = mG) : mG = r[64];
|
|
16344
|
+
let hG = mG, gG;
|
|
16345
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gG = () => {
|
|
16345
16346
|
v(_temp4$4);
|
|
16346
|
-
}, r[65] =
|
|
16347
|
-
let
|
|
16348
|
-
r[66] ===
|
|
16349
|
-
|
|
16350
|
-
], r[66] =
|
|
16351
|
-
let
|
|
16352
|
-
r[68] === e ?
|
|
16347
|
+
}, r[65] = gG) : gG = r[65];
|
|
16348
|
+
let _G = W == null ? void 0 : W.totalRows, vG;
|
|
16349
|
+
r[66] === _G ? vG = r[67] : (vG = [
|
|
16350
|
+
_G
|
|
16351
|
+
], r[66] = _G, r[67] = vG), (0, import_react.useEffect)(gG, vG);
|
|
16352
|
+
let yG;
|
|
16353
|
+
r[68] === e ? yG = r[69] : (yG = async () => {
|
|
16353
16354
|
let r2 = isStaticNotebook();
|
|
16354
16355
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
16355
16356
|
data: null,
|
|
@@ -16358,22 +16359,22 @@ ${c}
|
|
|
16358
16359
|
value_counts: {},
|
|
16359
16360
|
show_charts: false
|
|
16360
16361
|
} : e.get_column_summaries({});
|
|
16361
|
-
}, r[68] = e, r[69] =
|
|
16362
|
-
let
|
|
16363
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
16362
|
+
}, r[68] = e, r[69] = yG);
|
|
16363
|
+
let bG;
|
|
16364
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (bG = [
|
|
16364
16365
|
e.get_column_summaries,
|
|
16365
16366
|
e.showColumnSummaries,
|
|
16366
16367
|
w,
|
|
16367
16368
|
y,
|
|
16368
16369
|
e.totalRows,
|
|
16369
16370
|
e.data
|
|
16370
|
-
], 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] =
|
|
16371
|
-
let { data:
|
|
16372
|
-
if (r[77] ===
|
|
16373
|
-
|
|
16374
|
-
},
|
|
16375
|
-
|
|
16376
|
-
], r[77] =
|
|
16371
|
+
], 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] = bG) : bG = r[76];
|
|
16372
|
+
let { data: xG, error: SG } = useAsyncData(yG, bG), CG, wG;
|
|
16373
|
+
if (r[77] === SG ? (CG = r[78], wG = r[79]) : (CG = () => {
|
|
16374
|
+
SG && Logger.error(SG);
|
|
16375
|
+
}, wG = [
|
|
16376
|
+
SG
|
|
16377
|
+
], r[77] = SG, r[78] = CG, r[79] = wG), (0, import_react.useEffect)(CG, wG), q) {
|
|
16377
16378
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
16378
16379
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
16379
16380
|
milliseconds: 200,
|
|
@@ -16382,7 +16383,7 @@ ${c}
|
|
|
16382
16383
|
})
|
|
16383
16384
|
}), r[80] = c2, r[81] = l2), l2;
|
|
16384
16385
|
}
|
|
16385
|
-
let
|
|
16386
|
+
let TG = null;
|
|
16386
16387
|
if (G) {
|
|
16387
16388
|
Logger.error(G);
|
|
16388
16389
|
let e2;
|
|
@@ -16398,62 +16399,62 @@ ${c}
|
|
|
16398
16399
|
children: G.message || "An unknown error occurred"
|
|
16399
16400
|
})
|
|
16400
16401
|
]
|
|
16401
|
-
}), r[82] = G, r[83] = e2),
|
|
16402
|
+
}), r[82] = G, r[83] = e2), TG = e2;
|
|
16402
16403
|
}
|
|
16403
|
-
let
|
|
16404
|
-
r[84] === O ?
|
|
16404
|
+
let EG;
|
|
16405
|
+
r[84] === O ? EG = r[85] : (EG = () => {
|
|
16405
16406
|
j(!O);
|
|
16406
|
-
}, r[84] = O, r[85] =
|
|
16407
|
-
let
|
|
16408
|
-
r[86] !== l || r[87] !==
|
|
16407
|
+
}, r[84] = O, r[85] = EG);
|
|
16408
|
+
let DG = EG, OG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, kG = W == null ? void 0 : W.rawRows, AG = tG && !q, jG = (W == null ? void 0 : W.totalRows) ?? e.totalRows, MG = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, NG = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, PG;
|
|
16409
|
+
r[86] !== l || r[87] !== xG || r[88] !== O || r[89] !== w || r[90] !== hG || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== fG || r[95] !== pG || r[96] !== p || r[97] !== OG || r[98] !== kG || r[99] !== AG || r[100] !== jG || r[101] !== MG || r[102] !== NG || r[103] !== DG ? (PG = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
16409
16410
|
...e,
|
|
16410
|
-
data:
|
|
16411
|
-
rawData:
|
|
16412
|
-
columnSummaries:
|
|
16411
|
+
data: OG,
|
|
16412
|
+
rawData: kG,
|
|
16413
|
+
columnSummaries: xG,
|
|
16413
16414
|
sorting: p,
|
|
16414
16415
|
setSorting: h,
|
|
16415
16416
|
searchQuery: y,
|
|
16416
16417
|
setSearchQuery: b,
|
|
16417
16418
|
filters: w,
|
|
16418
16419
|
setFilters: T,
|
|
16419
|
-
reloading:
|
|
16420
|
-
totalRows:
|
|
16421
|
-
sizeBytes:
|
|
16422
|
-
sizeBytesIsLoading:
|
|
16420
|
+
reloading: AG,
|
|
16421
|
+
totalRows: jG,
|
|
16422
|
+
sizeBytes: fG,
|
|
16423
|
+
sizeBytesIsLoading: pG,
|
|
16423
16424
|
paginationState: _,
|
|
16424
16425
|
setPaginationState: v,
|
|
16425
|
-
cellStyles:
|
|
16426
|
-
cellHoverTexts:
|
|
16427
|
-
toggleDisplayHeader:
|
|
16426
|
+
cellStyles: MG,
|
|
16427
|
+
cellHoverTexts: NG,
|
|
16428
|
+
toggleDisplayHeader: DG,
|
|
16428
16429
|
isChartBuilderOpen: O,
|
|
16429
|
-
getRow:
|
|
16430
|
+
getRow: hG,
|
|
16430
16431
|
cellId: l,
|
|
16431
16432
|
maxHeight: e.maxHeight
|
|
16432
|
-
}), r[86] = l, r[87] =
|
|
16433
|
-
let
|
|
16434
|
-
r[105] !== l || r[106] !==
|
|
16433
|
+
}), r[86] = l, r[87] = xG, r[88] = O, r[89] = w, r[90] = hG, r[91] = _, r[92] = e, r[93] = y, r[94] = fG, r[95] = pG, r[96] = p, r[97] = OG, r[98] = kG, r[99] = AG, r[100] = jG, r[101] = MG, r[102] = NG, r[103] = DG, r[104] = PG) : PG = r[104];
|
|
16434
|
+
let FG = PG, IG;
|
|
16435
|
+
r[105] !== l || r[106] !== FG || r[107] !== (W == null ? void 0 : W.rows) || r[108] !== O || r[109] !== e.fieldTypes || r[110] !== e.get_data_url || r[111] !== e.rowHeaders || r[112] !== e.showChartBuilder || r[113] !== e.totalColumns || r[114] !== e.totalRows ? (IG = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
16435
16436
|
displayHeader: O,
|
|
16436
16437
|
onCloseChartBuilder: () => j(false),
|
|
16437
16438
|
data: (W == null ? void 0 : W.rows) || [],
|
|
16438
16439
|
columns: e.totalColumns,
|
|
16439
16440
|
totalRows: e.totalRows,
|
|
16440
|
-
dataTable:
|
|
16441
|
+
dataTable: FG,
|
|
16441
16442
|
getDataUrl: e.get_data_url,
|
|
16442
16443
|
fieldTypes: e.fieldTypes,
|
|
16443
16444
|
rowHeaders: e.rowHeaders,
|
|
16444
16445
|
cellId: l
|
|
16445
|
-
}) :
|
|
16446
|
-
let
|
|
16447
|
-
return r[116] !==
|
|
16446
|
+
}) : FG, r[105] = l, r[106] = FG, r[107] = W == null ? void 0 : W.rows, r[108] = O, r[109] = e.fieldTypes, r[110] = e.get_data_url, r[111] = e.rowHeaders, r[112] = e.showChartBuilder, r[113] = e.totalColumns, r[114] = e.totalRows, r[115] = IG) : IG = r[115];
|
|
16447
|
+
let LG;
|
|
16448
|
+
return r[116] !== TG || r[117] !== IG ? (LG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16448
16449
|
children: [
|
|
16449
|
-
|
|
16450
|
-
|
|
16450
|
+
TG,
|
|
16451
|
+
IG
|
|
16451
16452
|
]
|
|
16452
|
-
}), r[116] =
|
|
16453
|
+
}), r[116] = TG, r[117] = IG, r[118] = LG) : LG = r[118], LG;
|
|
16453
16454
|
});
|
|
16454
16455
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
16455
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, 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:
|
|
16456
|
-
let
|
|
16456
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, 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: tG, setFilters: Z, reloading: nG, freezeColumnsLeft: rG, freezeColumnsRight: iG, hiddenColumns: aG, textJustifyColumns: oG, wrappedColumns: sG, columnWidths: cG, headerTooltip: lG, totalColumns: uG, get_row_ids: dG, cellStyles: fG, hoverTemplate: pG, cellHoverTexts: mG, toggleDisplayHeader: hG, isChartBuilderOpen: gG, calculate_top_k_rows: _G, preview_column: vG, getRow: yG, cellId: bG, maxHeight: xG }) => {
|
|
16457
|
+
let SG = (0, import_react.useId)(), { locale: CG } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [wG, TG] = (0, import_react.useState)(0), { isPanelOpen: EG, isAnyPanelOpen: DG, togglePanel: OG, panelType: kG, setPanelType: AG } = usePanelOwnership(SG, bG), jG = isStaticNotebook(), MG = (0, import_react.useMemo)(() => {
|
|
16457
16458
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16458
16459
|
let e2 = toFieldTypes(O);
|
|
16459
16460
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -16462,13 +16463,13 @@ ${c}
|
|
|
16462
16463
|
}, [
|
|
16463
16464
|
O,
|
|
16464
16465
|
L
|
|
16465
|
-
]),
|
|
16466
|
+
]), NG = new Set(E.map(([e2]) => e2)), PG = useDeepCompareMemoize(O ?? inferFieldTypes(r).filter(([e2]) => !NG.has(e2))), FG = (0, import_react.useMemo)(() => p === "all" ? PG : PG.slice(0, p), [
|
|
16466
16467
|
p,
|
|
16467
|
-
|
|
16468
|
-
]),
|
|
16468
|
+
PG
|
|
16469
|
+
]), IG = (0, import_react.useMemo)(() => {
|
|
16469
16470
|
let e2 = {};
|
|
16470
16471
|
if (r && r.length > 0) {
|
|
16471
|
-
for (let [c2, l2] of
|
|
16472
|
+
for (let [c2, l2] of FG) if (l2[0] === "number") {
|
|
16472
16473
|
let l3 = 0;
|
|
16473
16474
|
for (let e3 of r) {
|
|
16474
16475
|
let r2 = e3[c2];
|
|
@@ -16483,95 +16484,95 @@ ${c}
|
|
|
16483
16484
|
return e2;
|
|
16484
16485
|
}, [
|
|
16485
16486
|
r,
|
|
16486
|
-
|
|
16487
|
-
]),
|
|
16488
|
-
O || (T = false),
|
|
16489
|
-
let
|
|
16490
|
-
rowHeaders:
|
|
16487
|
+
FG
|
|
16488
|
+
]), LG = useDeepCompareMemoize(E), RG = useDeepCompareMemoize(oG), zG = useDeepCompareMemoize(sG), BG = useDeepCompareMemoize(cG), VG = useDeepCompareMemoize(MG), HG = useDeepCompareMemoize(IG), UG = FG.length;
|
|
16489
|
+
O || (T = false), jG && (h = null);
|
|
16490
|
+
let WG = (0, import_react.useMemo)(() => generateColumns({
|
|
16491
|
+
rowHeaders: LG,
|
|
16491
16492
|
selection: h,
|
|
16492
|
-
chartSpecModel:
|
|
16493
|
-
fieldTypes:
|
|
16494
|
-
textJustifyColumns:
|
|
16495
|
-
wrappedColumns:
|
|
16496
|
-
columnWidths:
|
|
16497
|
-
headerTooltip:
|
|
16493
|
+
chartSpecModel: VG,
|
|
16494
|
+
fieldTypes: FG,
|
|
16495
|
+
textJustifyColumns: RG,
|
|
16496
|
+
wrappedColumns: zG,
|
|
16497
|
+
columnWidths: BG,
|
|
16498
|
+
headerTooltip: lG,
|
|
16498
16499
|
showDataTypes: T,
|
|
16499
|
-
calculateTopKRows:
|
|
16500
|
-
fractionDigitsByColumn:
|
|
16500
|
+
calculateTopKRows: _G,
|
|
16501
|
+
fractionDigitsByColumn: HG
|
|
16501
16502
|
}), [
|
|
16502
16503
|
h,
|
|
16503
16504
|
T,
|
|
16505
|
+
VG,
|
|
16504
16506
|
LG,
|
|
16505
|
-
NG,
|
|
16506
|
-
jG,
|
|
16507
|
-
PG,
|
|
16508
16507
|
FG,
|
|
16509
|
-
|
|
16510
|
-
|
|
16511
|
-
|
|
16512
|
-
|
|
16513
|
-
|
|
16508
|
+
RG,
|
|
16509
|
+
zG,
|
|
16510
|
+
BG,
|
|
16511
|
+
lG,
|
|
16512
|
+
_G,
|
|
16513
|
+
HG
|
|
16514
|
+
]), GG = (0, import_react.useMemo)(() => Object.fromEntries((g || []).map((e2) => [
|
|
16514
16515
|
e2,
|
|
16515
16516
|
true
|
|
16516
16517
|
])), [
|
|
16517
16518
|
g
|
|
16518
|
-
]),
|
|
16519
|
+
]), KG = useEvent_default((e2) => {
|
|
16519
16520
|
if (h === "single") {
|
|
16520
16521
|
let r2 = Functions.asUpdater(e2)({});
|
|
16521
16522
|
z(Object.keys(r2).slice(0, 1));
|
|
16522
16523
|
}
|
|
16523
16524
|
if (h === "multi") {
|
|
16524
|
-
let r2 = Functions.asUpdater(e2)(
|
|
16525
|
+
let r2 = Functions.asUpdater(e2)(GG);
|
|
16525
16526
|
z(Object.keys(r2));
|
|
16526
16527
|
}
|
|
16527
|
-
}),
|
|
16528
|
-
if (
|
|
16528
|
+
}), qG = useEvent_default((e2) => {
|
|
16529
|
+
if (TG(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
16529
16530
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
16530
16531
|
r2 !== null && M((e3) => ({
|
|
16531
16532
|
...e3,
|
|
16532
16533
|
pageIndex: r2
|
|
16533
16534
|
}));
|
|
16534
|
-
}),
|
|
16535
|
-
h === "single-cell" && z(Functions.asUpdater(e2)(
|
|
16536
|
-
}),
|
|
16537
|
-
if (!(!
|
|
16535
|
+
}), JG = g.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), YG = useEvent_default((e2) => {
|
|
16536
|
+
h === "single-cell" && z(Functions.asUpdater(e2)(JG).slice(0, 1)), h === "multi-cell" && z(Functions.asUpdater(e2)(JG));
|
|
16537
|
+
}), XG = h === "multi" || h === "single", ZG = b && !!vG, QG = isInVscodeExtension(), $G = isIslands(), eK = (0, import_react.useMemo)(() => {
|
|
16538
|
+
if (!(!DG || !(S || ZG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
16538
16539
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
16539
|
-
rowIdx:
|
|
16540
|
-
setRowIdx:
|
|
16540
|
+
rowIdx: wG,
|
|
16541
|
+
setRowIdx: qG,
|
|
16541
16542
|
totalRows: l,
|
|
16542
|
-
fieldTypes:
|
|
16543
|
-
getRow:
|
|
16544
|
-
isSelectable:
|
|
16545
|
-
isRowSelected: !!
|
|
16546
|
-
handleRowSelectionChange:
|
|
16547
|
-
previewColumn:
|
|
16548
|
-
totalColumns:
|
|
16549
|
-
tableId:
|
|
16543
|
+
fieldTypes: PG,
|
|
16544
|
+
getRow: yG,
|
|
16545
|
+
isSelectable: XG,
|
|
16546
|
+
isRowSelected: !!GG[wG],
|
|
16547
|
+
handleRowSelectionChange: KG,
|
|
16548
|
+
previewColumn: vG,
|
|
16549
|
+
totalColumns: uG,
|
|
16550
|
+
tableId: SG,
|
|
16550
16551
|
table: e2,
|
|
16551
|
-
showRowExplorer: S && !
|
|
16552
|
-
showColumnExplorer:
|
|
16553
|
-
activeTab:
|
|
16554
|
-
onTabChange:
|
|
16552
|
+
showRowExplorer: S && !QG,
|
|
16553
|
+
showColumnExplorer: ZG && !QG,
|
|
16554
|
+
activeTab: kG,
|
|
16555
|
+
onTabChange: AG
|
|
16555
16556
|
})
|
|
16556
16557
|
});
|
|
16557
16558
|
}, [
|
|
16558
|
-
|
|
16559
|
+
DG,
|
|
16559
16560
|
S,
|
|
16561
|
+
ZG,
|
|
16562
|
+
wG,
|
|
16560
16563
|
qG,
|
|
16561
|
-
bG,
|
|
16562
|
-
UG,
|
|
16563
16564
|
l,
|
|
16564
|
-
|
|
16565
|
-
|
|
16565
|
+
PG,
|
|
16566
|
+
yG,
|
|
16567
|
+
XG,
|
|
16568
|
+
GG,
|
|
16566
16569
|
KG,
|
|
16567
|
-
VG,
|
|
16568
|
-
HG,
|
|
16569
|
-
mG,
|
|
16570
|
-
oG,
|
|
16571
16570
|
vG,
|
|
16572
|
-
|
|
16573
|
-
|
|
16574
|
-
|
|
16571
|
+
uG,
|
|
16572
|
+
SG,
|
|
16573
|
+
QG,
|
|
16574
|
+
kG,
|
|
16575
|
+
AG
|
|
16575
16576
|
]);
|
|
16576
16577
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16577
16578
|
children: [
|
|
@@ -16583,27 +16584,27 @@ ${c}
|
|
|
16583
16584
|
" rows."
|
|
16584
16585
|
]
|
|
16585
16586
|
}),
|
|
16586
|
-
|
|
16587
|
+
UG < uG && UG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16587
16588
|
className: "mb-1 rounded",
|
|
16588
16589
|
children: [
|
|
16589
16590
|
"Result clipped. Showing ",
|
|
16590
|
-
|
|
16591
|
+
UG,
|
|
16591
16592
|
" of ",
|
|
16592
|
-
|
|
16593
|
+
uG,
|
|
16593
16594
|
" columns."
|
|
16594
16595
|
]
|
|
16595
16596
|
}),
|
|
16596
|
-
|
|
16597
|
+
jG && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16597
16598
|
className: "mb-1 rounded",
|
|
16598
16599
|
children: [
|
|
16599
16600
|
"Showing the first ",
|
|
16600
16601
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16601
|
-
children: prettyNumber(r.length,
|
|
16602
|
+
children: prettyNumber(r.length, CG)
|
|
16602
16603
|
}),
|
|
16603
16604
|
" ",
|
|
16604
16605
|
"of ",
|
|
16605
16606
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16606
|
-
children: prettyNumber(l,
|
|
16607
|
+
children: prettyNumber(l, CG)
|
|
16607
16608
|
}),
|
|
16608
16609
|
" rows. Increase the table's ",
|
|
16609
16610
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -16617,7 +16618,7 @@ ${c}
|
|
|
16617
16618
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
16618
16619
|
}),
|
|
16619
16620
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
16620
|
-
value:
|
|
16621
|
+
value: MG,
|
|
16621
16622
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
16622
16623
|
label: e,
|
|
16623
16624
|
align: "top",
|
|
@@ -16625,14 +16626,14 @@ ${c}
|
|
|
16625
16626
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
16626
16627
|
data: r,
|
|
16627
16628
|
rawData: c,
|
|
16628
|
-
columns:
|
|
16629
|
+
columns: WG,
|
|
16629
16630
|
className: R,
|
|
16630
|
-
maxHeight:
|
|
16631
|
+
maxHeight: xG,
|
|
16631
16632
|
sorting: B,
|
|
16632
16633
|
totalRows: l,
|
|
16633
16634
|
sizeBytes: u,
|
|
16634
16635
|
sizeBytesIsLoading: f,
|
|
16635
|
-
totalColumns:
|
|
16636
|
+
totalColumns: uG,
|
|
16636
16637
|
manualSorting: true,
|
|
16637
16638
|
setSorting: H,
|
|
16638
16639
|
pagination: m,
|
|
@@ -16640,37 +16641,37 @@ ${c}
|
|
|
16640
16641
|
selection: h,
|
|
16641
16642
|
paginationState: j,
|
|
16642
16643
|
setPaginationState: M,
|
|
16643
|
-
rowSelection:
|
|
16644
|
-
cellSelection:
|
|
16645
|
-
cellStyling:
|
|
16646
|
-
hoverTemplate:
|
|
16647
|
-
cellHoverTexts:
|
|
16644
|
+
rowSelection: GG,
|
|
16645
|
+
cellSelection: JG,
|
|
16646
|
+
cellStyling: fG,
|
|
16647
|
+
hoverTemplate: pG,
|
|
16648
|
+
cellHoverTexts: mG,
|
|
16648
16649
|
downloadAs: v ? I : void 0,
|
|
16649
16650
|
showSearch: W,
|
|
16650
16651
|
searchQuery: G,
|
|
16651
16652
|
onSearchQueryChange: q,
|
|
16652
16653
|
showFilters: _,
|
|
16653
|
-
filters:
|
|
16654
|
+
filters: tG,
|
|
16654
16655
|
onFiltersChange: Z,
|
|
16655
|
-
calculateTopKRows:
|
|
16656
|
-
reloading:
|
|
16657
|
-
onRowSelectionChange:
|
|
16658
|
-
freezeColumnsLeft:
|
|
16659
|
-
freezeColumnsRight:
|
|
16660
|
-
hiddenColumns:
|
|
16661
|
-
onCellSelectionChange:
|
|
16662
|
-
getRowIds:
|
|
16663
|
-
toggleDisplayHeader:
|
|
16664
|
-
showChartBuilder: w &&
|
|
16665
|
-
isChartBuilderOpen:
|
|
16656
|
+
calculateTopKRows: _G,
|
|
16657
|
+
reloading: nG,
|
|
16658
|
+
onRowSelectionChange: KG,
|
|
16659
|
+
freezeColumnsLeft: rG,
|
|
16660
|
+
freezeColumnsRight: iG,
|
|
16661
|
+
hiddenColumns: aG,
|
|
16662
|
+
onCellSelectionChange: YG,
|
|
16663
|
+
getRowIds: dG,
|
|
16664
|
+
toggleDisplayHeader: hG,
|
|
16665
|
+
showChartBuilder: w && !$G,
|
|
16666
|
+
isChartBuilderOpen: gG,
|
|
16666
16667
|
showPageSizeSelector: y,
|
|
16667
|
-
showTableExplorer: (S ||
|
|
16668
|
-
togglePanel:
|
|
16669
|
-
isPanelOpen:
|
|
16670
|
-
isAnyPanelOpen:
|
|
16671
|
-
viewedRowIdx:
|
|
16672
|
-
onViewedRowChange: (e2) =>
|
|
16673
|
-
renderTableExplorerPanel:
|
|
16668
|
+
showTableExplorer: (S || ZG) && !QG && !$G,
|
|
16669
|
+
togglePanel: OG,
|
|
16670
|
+
isPanelOpen: EG,
|
|
16671
|
+
isAnyPanelOpen: DG,
|
|
16672
|
+
viewedRowIdx: wG,
|
|
16673
|
+
onViewedRowChange: (e2) => TG(e2),
|
|
16674
|
+
renderTableExplorerPanel: eK
|
|
16674
16675
|
})
|
|
16675
16676
|
})
|
|
16676
16677
|
})
|
|
@@ -17029,7 +17030,7 @@ ${c}
|
|
|
17029
17030
|
fullWidth: p,
|
|
17030
17031
|
children: T
|
|
17031
17032
|
}), r[20] = p, r[21] = g, r[22] = c, r[23] = T, r[24] = E) : E = r[24], E;
|
|
17032
|
-
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
17033
|
+
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-yEsovh7C.js"));
|
|
17033
17034
|
const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object({
|
|
17034
17035
|
label: string().nullish(),
|
|
17035
17036
|
data: string()
|
|
@@ -18785,29 +18786,29 @@ ${c}
|
|
|
18785
18786
|
], r[2] = w, r[3] = T);
|
|
18786
18787
|
let { data: E, error: O, isPending: j } = useAsyncData(S, T), M;
|
|
18787
18788
|
r[4] === E ? M = r[5] : (M = E || {}, r[4] = E, r[5] = M);
|
|
18788
|
-
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,
|
|
18789
|
-
r[6] === f ?
|
|
18789
|
+
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, tG] = (0, import_react.useState)(p || EMPTY), Z = (0, import_react.useRef)(null), nG;
|
|
18790
|
+
r[6] === f ? nG = r[7] : (nG = (e2) => {
|
|
18790
18791
|
var _a5;
|
|
18791
18792
|
f && e2 !== "transform" && ((_a5 = Z.current) == null ? void 0 : _a5.submit());
|
|
18792
|
-
}, r[6] = f, r[7] =
|
|
18793
|
-
let
|
|
18794
|
-
r[8] === q ?
|
|
18795
|
-
|
|
18796
|
-
}, r[8] = q, r[9] =
|
|
18797
|
-
let
|
|
18798
|
-
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (
|
|
18799
|
-
let e2 =
|
|
18793
|
+
}, r[6] = f, r[7] = nG);
|
|
18794
|
+
let rG = nG, iG = (0, import_react.useRef)(q), aG;
|
|
18795
|
+
r[8] === q ? aG = r[9] : (aG = () => {
|
|
18796
|
+
iG.current = q;
|
|
18797
|
+
}, r[8] = q, r[9] = aG), (0, import_react.useEffect)(aG);
|
|
18798
|
+
let oG;
|
|
18799
|
+
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (oG = () => {
|
|
18800
|
+
let e2 = iG.current;
|
|
18800
18801
|
(p == null ? void 0 : p.transforms.length) !== e2.transforms.length && m(e2);
|
|
18801
|
-
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] =
|
|
18802
|
-
let
|
|
18803
|
-
r[13] !== E || r[14] !== m || r[15] !==
|
|
18802
|
+
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] = oG) : oG = r[12];
|
|
18803
|
+
let cG = p == null ? void 0 : p.transforms.length, lG;
|
|
18804
|
+
r[13] !== E || r[14] !== m || r[15] !== cG ? (lG = [
|
|
18804
18805
|
E,
|
|
18806
|
+
cG,
|
|
18805
18807
|
iG,
|
|
18806
|
-
eG,
|
|
18807
18808
|
m
|
|
18808
|
-
], r[13] = E, r[14] = m, r[15] =
|
|
18809
|
-
let
|
|
18810
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18809
|
+
], r[13] = E, r[14] = m, r[15] = cG, r[16] = lG) : lG = r[16], (0, import_react.useEffect)(oG, lG);
|
|
18810
|
+
let uG;
|
|
18811
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uG = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18811
18812
|
value: "transform",
|
|
18812
18813
|
className: "text-xs py-1",
|
|
18813
18814
|
children: [
|
|
@@ -18816,9 +18817,9 @@ ${c}
|
|
|
18816
18817
|
}),
|
|
18817
18818
|
"Transform"
|
|
18818
18819
|
]
|
|
18819
|
-
}), r[17] =
|
|
18820
|
-
let
|
|
18821
|
-
r[18] === H ?
|
|
18820
|
+
}), r[17] = uG) : uG = r[17];
|
|
18821
|
+
let dG;
|
|
18822
|
+
r[18] === H ? dG = r[19] : (dG = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18822
18823
|
value: "python-code",
|
|
18823
18824
|
className: "text-xs py-1",
|
|
18824
18825
|
children: [
|
|
@@ -18827,9 +18828,9 @@ ${c}
|
|
|
18827
18828
|
}),
|
|
18828
18829
|
"Python Code"
|
|
18829
18830
|
]
|
|
18830
|
-
}), r[18] = H, r[19] =
|
|
18831
|
-
let
|
|
18832
|
-
r[20] === W ?
|
|
18831
|
+
}), r[18] = H, r[19] = dG);
|
|
18832
|
+
let fG;
|
|
18833
|
+
r[20] === W ? fG = r[21] : (fG = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18833
18834
|
value: "sql-code",
|
|
18834
18835
|
className: "text-xs py-1",
|
|
18835
18836
|
children: [
|
|
@@ -18838,54 +18839,54 @@ ${c}
|
|
|
18838
18839
|
}),
|
|
18839
18840
|
"SQL Code"
|
|
18840
18841
|
]
|
|
18841
|
-
}), r[20] = W, r[21] =
|
|
18842
|
-
let
|
|
18843
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18842
|
+
}), r[20] = W, r[21] = fG);
|
|
18843
|
+
let pG;
|
|
18844
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pG = (0, import_jsx_runtime.jsx)("div", {
|
|
18844
18845
|
className: "grow"
|
|
18845
|
-
}), r[22] =
|
|
18846
|
-
let
|
|
18847
|
-
r[23] !==
|
|
18846
|
+
}), r[22] = pG) : pG = r[22];
|
|
18847
|
+
let mG;
|
|
18848
|
+
r[23] !== dG || r[24] !== fG ? (mG = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
18848
18849
|
className: "h-8",
|
|
18849
18850
|
children: [
|
|
18850
|
-
|
|
18851
|
-
|
|
18852
|
-
|
|
18853
|
-
|
|
18851
|
+
uG,
|
|
18852
|
+
dG,
|
|
18853
|
+
fG,
|
|
18854
|
+
pG
|
|
18854
18855
|
]
|
|
18855
|
-
}), r[23] =
|
|
18856
|
-
let
|
|
18857
|
-
r[26] === j ?
|
|
18856
|
+
}), r[23] = dG, r[24] = fG, r[25] = mG) : mG = r[25];
|
|
18857
|
+
let hG;
|
|
18858
|
+
r[26] === j ? hG = r[27] : (hG = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18858
18859
|
size: "small"
|
|
18859
|
-
}), r[26] = j, r[27] =
|
|
18860
|
-
let
|
|
18861
|
-
r[28] !==
|
|
18860
|
+
}), r[26] = j, r[27] = hG);
|
|
18861
|
+
let gG;
|
|
18862
|
+
r[28] !== mG || r[29] !== hG ? (gG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18862
18863
|
className: "flex items-center gap-2",
|
|
18863
18864
|
children: [
|
|
18864
|
-
|
|
18865
|
-
|
|
18865
|
+
mG,
|
|
18866
|
+
hG
|
|
18866
18867
|
]
|
|
18867
|
-
}), r[28] =
|
|
18868
|
-
let
|
|
18869
|
-
r[31] !== m || r[32] !== p ? (
|
|
18870
|
-
dequal(e2, p) || (m(e2),
|
|
18871
|
-
}, r[31] = m, r[32] = p, r[33] =
|
|
18872
|
-
let
|
|
18873
|
-
r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !==
|
|
18868
|
+
}), r[28] = mG, r[29] = hG, r[30] = gG) : gG = r[30];
|
|
18869
|
+
let _G;
|
|
18870
|
+
r[31] !== m || r[32] !== p ? (_G = (e2) => {
|
|
18871
|
+
dequal(e2, p) || (m(e2), tG(e2));
|
|
18872
|
+
}, r[31] = m, r[32] = p, r[33] = _G) : _G = r[33];
|
|
18873
|
+
let vG;
|
|
18874
|
+
r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !== _G ? (vG = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18874
18875
|
value: "transform",
|
|
18875
18876
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18876
18877
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18877
18878
|
ref: Z,
|
|
18878
18879
|
initialValue: q,
|
|
18879
18880
|
columns: c,
|
|
18880
|
-
onChange:
|
|
18881
|
-
onInvalidChange:
|
|
18881
|
+
onChange: _G,
|
|
18882
|
+
onInvalidChange: tG,
|
|
18882
18883
|
getColumnValues: g,
|
|
18883
18884
|
columnTypesPerStep: B,
|
|
18884
18885
|
lazy: f
|
|
18885
18886
|
})
|
|
18886
|
-
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] =
|
|
18887
|
-
let
|
|
18888
|
-
r[41] === H ?
|
|
18887
|
+
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] = _G, r[40] = vG) : vG = r[40];
|
|
18888
|
+
let yG;
|
|
18889
|
+
r[41] === H ? yG = r[42] : (yG = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18889
18890
|
value: "python-code",
|
|
18890
18891
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18891
18892
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18894,9 +18895,9 @@ ${c}
|
|
|
18894
18895
|
code: H,
|
|
18895
18896
|
language: "python"
|
|
18896
18897
|
})
|
|
18897
|
-
}), r[41] = H, r[42] =
|
|
18898
|
-
let
|
|
18899
|
-
r[43] === W ?
|
|
18898
|
+
}), r[41] = H, r[42] = yG);
|
|
18899
|
+
let bG;
|
|
18900
|
+
r[43] === W ? bG = r[44] : (bG = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18900
18901
|
value: "sql-code",
|
|
18901
18902
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18902
18903
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18905,35 +18906,35 @@ ${c}
|
|
|
18905
18906
|
code: W,
|
|
18906
18907
|
language: "sql"
|
|
18907
18908
|
})
|
|
18908
|
-
}), r[43] = W, r[44] =
|
|
18909
|
-
let
|
|
18910
|
-
r[45] !==
|
|
18909
|
+
}), r[43] = W, r[44] = bG);
|
|
18910
|
+
let xG;
|
|
18911
|
+
r[45] !== rG || r[46] !== gG || r[47] !== vG || r[48] !== yG || r[49] !== bG ? (xG = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18911
18912
|
defaultValue: "transform",
|
|
18912
|
-
onValueChange:
|
|
18913
|
+
onValueChange: rG,
|
|
18913
18914
|
children: [
|
|
18914
|
-
|
|
18915
|
-
|
|
18916
|
-
|
|
18917
|
-
|
|
18915
|
+
gG,
|
|
18916
|
+
vG,
|
|
18917
|
+
yG,
|
|
18918
|
+
bG
|
|
18918
18919
|
]
|
|
18919
|
-
}), r[45] =
|
|
18920
|
-
let
|
|
18921
|
-
r[51] === O ?
|
|
18920
|
+
}), r[45] = rG, r[46] = gG, r[47] = vG, r[48] = yG, r[49] = bG, r[50] = xG) : xG = r[50];
|
|
18921
|
+
let SG;
|
|
18922
|
+
r[51] === O ? SG = r[52] : (SG = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18922
18923
|
error: O
|
|
18923
|
-
}), r[51] = O, r[52] =
|
|
18924
|
-
let
|
|
18925
|
-
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !==
|
|
18924
|
+
}), r[51] = O, r[52] = SG);
|
|
18925
|
+
let CG = I || "", wG = L ?? 0, TG = G ?? 0, EG = R || Arrays.EMPTY, DG = L && L > 5 || false, OG;
|
|
18926
|
+
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !== CG || r[61] !== wG || r[62] !== TG || r[63] !== EG || r[64] !== DG ? (OG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
18926
18927
|
label: null,
|
|
18927
18928
|
className: "rounded-b border-x border-b",
|
|
18928
|
-
data:
|
|
18929
|
+
data: CG,
|
|
18929
18930
|
hasStableRowId: false,
|
|
18930
|
-
totalRows:
|
|
18931
|
-
totalColumns:
|
|
18931
|
+
totalRows: wG,
|
|
18932
|
+
totalColumns: TG,
|
|
18932
18933
|
maxColumns: "all",
|
|
18933
18934
|
pageSize: l,
|
|
18934
18935
|
pagination: true,
|
|
18935
18936
|
fieldTypes: z,
|
|
18936
|
-
rowHeaders:
|
|
18937
|
+
rowHeaders: EG,
|
|
18937
18938
|
showDownload: u,
|
|
18938
18939
|
download_as: v,
|
|
18939
18940
|
get_size_bytes: y,
|
|
@@ -18943,7 +18944,7 @@ ${c}
|
|
|
18943
18944
|
showColumnSummaries: false,
|
|
18944
18945
|
showDataTypes: true,
|
|
18945
18946
|
get_column_summaries: getColumnSummaries,
|
|
18946
|
-
showPageSizeSelector:
|
|
18947
|
+
showPageSizeSelector: DG,
|
|
18947
18948
|
showColumnExplorer: false,
|
|
18948
18949
|
showRowExplorer: true,
|
|
18949
18950
|
showChartBuilder: false,
|
|
@@ -18952,15 +18953,15 @@ ${c}
|
|
|
18952
18953
|
selection: null,
|
|
18953
18954
|
lazy: false,
|
|
18954
18955
|
host: b
|
|
18955
|
-
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] =
|
|
18956
|
-
let
|
|
18957
|
-
return r[66] !==
|
|
18956
|
+
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] = CG, r[61] = wG, r[62] = TG, r[63] = EG, r[64] = DG, r[65] = OG) : OG = r[65];
|
|
18957
|
+
let kG;
|
|
18958
|
+
return r[66] !== xG || r[67] !== SG || r[68] !== OG ? (kG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18958
18959
|
children: [
|
|
18959
|
-
|
|
18960
|
-
|
|
18961
|
-
|
|
18960
|
+
xG,
|
|
18961
|
+
SG,
|
|
18962
|
+
OG
|
|
18962
18963
|
]
|
|
18963
|
-
}), r[66] =
|
|
18964
|
+
}), r[66] = xG, r[67] = SG, r[68] = OG, r[69] = kG) : kG = r[69], kG;
|
|
18964
18965
|
});
|
|
18965
18966
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18966
18967
|
function getColumnSummaries() {
|
|
@@ -19151,23 +19152,23 @@ ${c}
|
|
|
19151
19152
|
}, [
|
|
19152
19153
|
H
|
|
19153
19154
|
]);
|
|
19154
|
-
let q = (R == null ? void 0 : R.files) ?? [],
|
|
19155
|
+
let q = (R == null ? void 0 : R.files) ?? [], tG = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", nG = l === "file" || l === "all", rG = q.filter((e2) => Z && e2.is_directory || nG && !e2.is_directory), aG = rG.length > 0 && rG.every((e2) => tG.has(e2.path));
|
|
19155
19156
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
19156
19157
|
kind: "danger",
|
|
19157
19158
|
children: z.message
|
|
19158
19159
|
});
|
|
19159
|
-
let
|
|
19160
|
+
let oG = PathBuilder.guessDeliminator(c).deliminator, sG = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
19160
19161
|
children: e2.path
|
|
19161
19162
|
}, e2.id));
|
|
19162
|
-
function
|
|
19163
|
+
function cG(e2) {
|
|
19163
19164
|
var _a6;
|
|
19164
19165
|
if (v) return;
|
|
19165
19166
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
19166
|
-
if (g ===
|
|
19167
|
+
if (g === oG) {
|
|
19167
19168
|
y(false);
|
|
19168
19169
|
return;
|
|
19169
19170
|
}
|
|
19170
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
19171
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = oG);
|
|
19171
19172
|
}
|
|
19172
19173
|
let r2 = e2.length < c.length;
|
|
19173
19174
|
if (f && r2) {
|
|
@@ -19180,7 +19181,7 @@ ${c}
|
|
|
19180
19181
|
}
|
|
19181
19182
|
M.current = ((_a6 = j.current) == null ? void 0 : _a6.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
19182
19183
|
}
|
|
19183
|
-
function
|
|
19184
|
+
function uG({ path: e2, name: r2, isDirectory: c2 }) {
|
|
19184
19185
|
return {
|
|
19185
19186
|
id: e2,
|
|
19186
19187
|
name: r2,
|
|
@@ -19188,27 +19189,27 @@ ${c}
|
|
|
19188
19189
|
is_directory: c2
|
|
19189
19190
|
};
|
|
19190
19191
|
}
|
|
19191
|
-
function
|
|
19192
|
-
let f2 =
|
|
19192
|
+
function dG({ path: c2, name: l2, isDirectory: d2 }) {
|
|
19193
|
+
let f2 = uG({
|
|
19193
19194
|
path: c2,
|
|
19194
19195
|
name: l2,
|
|
19195
19196
|
isDirectory: d2
|
|
19196
19197
|
});
|
|
19197
|
-
|
|
19198
|
+
tG.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
19198
19199
|
...e,
|
|
19199
19200
|
f2
|
|
19200
19201
|
] : [
|
|
19201
19202
|
f2
|
|
19202
19203
|
]);
|
|
19203
19204
|
}
|
|
19204
|
-
function
|
|
19205
|
+
function fG() {
|
|
19205
19206
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
19206
19207
|
}
|
|
19207
|
-
function
|
|
19208
|
+
function pG() {
|
|
19208
19209
|
let c2 = [];
|
|
19209
19210
|
for (let e2 of q) {
|
|
19210
|
-
if (!Z && e2.is_directory ||
|
|
19211
|
-
let r2 =
|
|
19211
|
+
if (!Z && e2.is_directory || tG.has(e2.path)) continue;
|
|
19212
|
+
let r2 = uG({
|
|
19212
19213
|
path: e2.path,
|
|
19213
19214
|
name: e2.name,
|
|
19214
19215
|
isDirectory: e2.is_directory
|
|
@@ -19220,20 +19221,20 @@ ${c}
|
|
|
19220
19221
|
...c2
|
|
19221
19222
|
]);
|
|
19222
19223
|
}
|
|
19223
|
-
let
|
|
19224
|
+
let mG = [
|
|
19224
19225
|
{
|
|
19225
19226
|
key: "parent",
|
|
19226
19227
|
name: PARENT_DIRECTORY,
|
|
19227
19228
|
Icon: CornerLeftUp,
|
|
19228
19229
|
isSelected: false,
|
|
19229
19230
|
canSelect: false,
|
|
19230
|
-
onPrimary: () =>
|
|
19231
|
+
onPrimary: () => cG(PARENT_DIRECTORY),
|
|
19231
19232
|
onToggleSelect: null
|
|
19232
19233
|
},
|
|
19233
19234
|
...q.map((e2) => {
|
|
19234
19235
|
let r2 = e2.path;
|
|
19235
19236
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
19236
|
-
let c2 = Z && e2.is_directory ||
|
|
19237
|
+
let c2 = Z && e2.is_directory || nG && !e2.is_directory, l2 = tG.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => dG({
|
|
19237
19238
|
path: r2,
|
|
19238
19239
|
name: e2.name,
|
|
19239
19240
|
isDirectory: e2.is_directory
|
|
@@ -19244,46 +19245,46 @@ ${c}
|
|
|
19244
19245
|
Icon: FILE_ICON[u2],
|
|
19245
19246
|
isSelected: l2,
|
|
19246
19247
|
canSelect: c2,
|
|
19247
|
-
onPrimary: e2.is_directory ? () =>
|
|
19248
|
+
onPrimary: e2.is_directory ? () => cG(r2) : c2 ? d2 : () => {
|
|
19248
19249
|
},
|
|
19249
19250
|
onToggleSelect: c2 ? d2 : null
|
|
19250
19251
|
};
|
|
19251
19252
|
})
|
|
19252
19253
|
];
|
|
19253
|
-
function
|
|
19254
|
+
function hG(e2) {
|
|
19254
19255
|
var _a6;
|
|
19255
19256
|
E(e2), (_a6 = O.current[e2]) == null ? void 0 : _a6.focus();
|
|
19256
19257
|
}
|
|
19257
|
-
function
|
|
19258
|
+
function gG(e2, r2) {
|
|
19258
19259
|
var _a6, _b3;
|
|
19259
|
-
let c2 =
|
|
19260
|
+
let c2 = mG.length - 1;
|
|
19260
19261
|
switch (e2.key) {
|
|
19261
19262
|
case "ArrowDown":
|
|
19262
|
-
e2.preventDefault(),
|
|
19263
|
+
e2.preventDefault(), hG(Math.min(r2 + 1, c2));
|
|
19263
19264
|
break;
|
|
19264
19265
|
case "ArrowUp":
|
|
19265
|
-
e2.preventDefault(),
|
|
19266
|
+
e2.preventDefault(), hG(Math.max(r2 - 1, 0));
|
|
19266
19267
|
break;
|
|
19267
19268
|
case "Home":
|
|
19268
|
-
e2.preventDefault(),
|
|
19269
|
+
e2.preventDefault(), hG(0);
|
|
19269
19270
|
break;
|
|
19270
19271
|
case "End":
|
|
19271
|
-
e2.preventDefault(),
|
|
19272
|
+
e2.preventDefault(), hG(c2);
|
|
19272
19273
|
break;
|
|
19273
19274
|
case "Enter":
|
|
19274
|
-
e2.preventDefault(),
|
|
19275
|
+
e2.preventDefault(), mG[r2].onPrimary();
|
|
19275
19276
|
break;
|
|
19276
19277
|
case " ":
|
|
19277
|
-
e2.preventDefault(), (_b3 = (_a6 =
|
|
19278
|
+
e2.preventDefault(), (_b3 = (_a6 = mG[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a6);
|
|
19278
19279
|
break;
|
|
19279
19280
|
}
|
|
19280
19281
|
}
|
|
19281
|
-
let { parentDirectories:
|
|
19282
|
+
let { parentDirectories: _G } = getProtocolAndParentDirectories({
|
|
19282
19283
|
path: g,
|
|
19283
|
-
delimiter:
|
|
19284
|
+
delimiter: oG,
|
|
19284
19285
|
initialPath: c,
|
|
19285
19286
|
restrictNavigation: f
|
|
19286
|
-
}),
|
|
19287
|
+
}), vG = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
19287
19288
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
19288
19289
|
children: [
|
|
19289
19290
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -19293,7 +19294,7 @@ ${c}
|
|
|
19293
19294
|
(() => {
|
|
19294
19295
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
19295
19296
|
children: renderHTML({
|
|
19296
|
-
html: d ?? `Select ${
|
|
19297
|
+
html: d ?? `Select ${vG.join(" and ", 2)}...`
|
|
19297
19298
|
})
|
|
19298
19299
|
});
|
|
19299
19300
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -19307,8 +19308,8 @@ ${c}
|
|
|
19307
19308
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
19308
19309
|
size: "xs",
|
|
19309
19310
|
variant: "link",
|
|
19310
|
-
onClick:
|
|
19311
|
-
children:
|
|
19311
|
+
onClick: aG ? fG : pG,
|
|
19312
|
+
children: aG ? "Deselect all" : "Select all"
|
|
19312
19313
|
})
|
|
19313
19314
|
})
|
|
19314
19315
|
]
|
|
@@ -19318,8 +19319,8 @@ ${c}
|
|
|
19318
19319
|
className: "mt-2 w-full",
|
|
19319
19320
|
placeholder: g,
|
|
19320
19321
|
value: g,
|
|
19321
|
-
onChange: (e2) =>
|
|
19322
|
-
children:
|
|
19322
|
+
onChange: (e2) => cG(e2.target.value),
|
|
19323
|
+
children: _G.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
19323
19324
|
value: e2,
|
|
19324
19325
|
children: e2
|
|
19325
19326
|
}, e2))
|
|
@@ -19355,14 +19356,14 @@ ${c}
|
|
|
19355
19356
|
"aria-label": "File browser",
|
|
19356
19357
|
"aria-multiselectable": u,
|
|
19357
19358
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
19358
|
-
children:
|
|
19359
|
+
children: mG.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
19359
19360
|
role: "row",
|
|
19360
19361
|
ref: (e3) => {
|
|
19361
19362
|
O.current[r2] = e3;
|
|
19362
19363
|
},
|
|
19363
19364
|
tabIndex: r2 === w ? 0 : -1,
|
|
19364
19365
|
onFocus: () => E(r2),
|
|
19365
|
-
onKeyDown: (e3) =>
|
|
19366
|
+
onKeyDown: (e3) => gG(e3, r2),
|
|
19366
19367
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
19367
19368
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
19368
19369
|
}),
|
|
@@ -19405,7 +19406,7 @@ ${c}
|
|
|
19405
19406
|
children: [
|
|
19406
19407
|
e.length,
|
|
19407
19408
|
" ",
|
|
19408
|
-
|
|
19409
|
+
vG.join(" or ", e.length),
|
|
19409
19410
|
" ",
|
|
19410
19411
|
"selected"
|
|
19411
19412
|
]
|
|
@@ -19425,7 +19426,7 @@ ${c}
|
|
|
19425
19426
|
marginBlock: 0
|
|
19426
19427
|
},
|
|
19427
19428
|
className: "m-0 text-xs text-muted-foreground",
|
|
19428
|
-
children:
|
|
19429
|
+
children: sG
|
|
19429
19430
|
})
|
|
19430
19431
|
})
|
|
19431
19432
|
]
|
|
@@ -24807,55 +24808,55 @@ ${c}
|
|
|
24807
24808
|
return typeof S == "function" ? S : noop$2;
|
|
24808
24809
|
}, [
|
|
24809
24810
|
S
|
|
24810
|
-
]), q = (0, import_react.useRef)(null),
|
|
24811
|
-
!
|
|
24812
|
-
|
|
24811
|
+
]), q = (0, import_react.useRef)(null), tG = (0, import_react.useRef)(null), Z = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), nG = Z[0], rG = Z[1], iG = nG.isFocused, aG = nG.isFileDialogActive, oG = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), sG = function() {
|
|
24812
|
+
!oG.current && aG && setTimeout(function() {
|
|
24813
|
+
tG.current && (tG.current.files.length || (rG({
|
|
24813
24814
|
type: "closeDialog"
|
|
24814
24815
|
}), G()));
|
|
24815
24816
|
}, 300);
|
|
24816
24817
|
};
|
|
24817
24818
|
(0, import_react.useEffect)(function() {
|
|
24818
|
-
return window.addEventListener("focus",
|
|
24819
|
-
window.removeEventListener("focus",
|
|
24819
|
+
return window.addEventListener("focus", sG, false), function() {
|
|
24820
|
+
window.removeEventListener("focus", sG, false);
|
|
24820
24821
|
};
|
|
24821
24822
|
}, [
|
|
24822
|
-
ZW,
|
|
24823
24823
|
tG,
|
|
24824
|
+
aG,
|
|
24824
24825
|
G,
|
|
24825
|
-
|
|
24826
|
+
oG
|
|
24826
24827
|
]);
|
|
24827
|
-
var
|
|
24828
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
24828
|
+
var cG = (0, import_react.useRef)([]), lG = (0, import_react.useRef)([]), uG = function(e2) {
|
|
24829
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), cG.current = []);
|
|
24829
24830
|
};
|
|
24830
24831
|
(0, import_react.useEffect)(function() {
|
|
24831
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
24832
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
24832
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", uG, false)), function() {
|
|
24833
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", uG));
|
|
24833
24834
|
};
|
|
24834
24835
|
}, [
|
|
24835
24836
|
q,
|
|
24836
24837
|
O
|
|
24837
24838
|
]), (0, import_react.useEffect)(function() {
|
|
24838
24839
|
var e2 = function(e3) {
|
|
24839
|
-
|
|
24840
|
+
lG.current = [].concat(_toConsumableArray(lG.current), [
|
|
24840
24841
|
e3.target
|
|
24841
|
-
]), isEvtWithFiles(e3) &&
|
|
24842
|
+
]), isEvtWithFiles(e3) && rG({
|
|
24842
24843
|
isDragGlobal: true,
|
|
24843
24844
|
type: "setDragGlobal"
|
|
24844
24845
|
});
|
|
24845
24846
|
}, r2 = function(e3) {
|
|
24846
|
-
|
|
24847
|
+
lG.current = lG.current.filter(function(r3) {
|
|
24847
24848
|
return r3 !== e3.target && r3 !== null;
|
|
24848
|
-
}), !(
|
|
24849
|
+
}), !(lG.current.length > 0) && rG({
|
|
24849
24850
|
isDragGlobal: false,
|
|
24850
24851
|
type: "setDragGlobal"
|
|
24851
24852
|
});
|
|
24852
24853
|
}, c2 = function() {
|
|
24853
|
-
|
|
24854
|
+
lG.current = [], rG({
|
|
24854
24855
|
isDragGlobal: false,
|
|
24855
24856
|
type: "setDragGlobal"
|
|
24856
24857
|
});
|
|
24857
24858
|
}, l2 = function() {
|
|
24858
|
-
|
|
24859
|
+
lG.current = [], rG({
|
|
24859
24860
|
isDragGlobal: false,
|
|
24860
24861
|
type: "setDragGlobal"
|
|
24861
24862
|
});
|
|
@@ -24873,12 +24874,12 @@ ${c}
|
|
|
24873
24874
|
E,
|
|
24874
24875
|
l
|
|
24875
24876
|
]);
|
|
24876
|
-
var
|
|
24877
|
+
var dG = (0, import_react.useCallback)(function(e2) {
|
|
24877
24878
|
R ? R(e2) : console.error(e2);
|
|
24878
24879
|
}, [
|
|
24879
24880
|
R
|
|
24880
|
-
]),
|
|
24881
|
-
e2.preventDefault(), e2.persist(),
|
|
24881
|
+
]), fG = (0, import_react.useCallback)(function(e2) {
|
|
24882
|
+
e2.preventDefault(), e2.persist(), TG(e2), cG.current = [].concat(_toConsumableArray(cG.current), [
|
|
24882
24883
|
e2.target
|
|
24883
24884
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24884
24885
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -24891,7 +24892,7 @@ ${c}
|
|
|
24891
24892
|
maxFiles: m,
|
|
24892
24893
|
validator: z
|
|
24893
24894
|
});
|
|
24894
|
-
|
|
24895
|
+
rG({
|
|
24895
24896
|
isDragAccept: l2,
|
|
24896
24897
|
isDragReject: c2 > 0 && !l2,
|
|
24897
24898
|
isDragActive: true,
|
|
@@ -24899,12 +24900,12 @@ ${c}
|
|
|
24899
24900
|
}), h && h(e2);
|
|
24900
24901
|
}
|
|
24901
24902
|
}).catch(function(e3) {
|
|
24902
|
-
return
|
|
24903
|
+
return dG(e3);
|
|
24903
24904
|
});
|
|
24904
24905
|
}, [
|
|
24905
24906
|
u,
|
|
24906
24907
|
h,
|
|
24907
|
-
|
|
24908
|
+
dG,
|
|
24908
24909
|
L,
|
|
24909
24910
|
B,
|
|
24910
24911
|
f,
|
|
@@ -24912,8 +24913,8 @@ ${c}
|
|
|
24912
24913
|
p,
|
|
24913
24914
|
m,
|
|
24914
24915
|
z
|
|
24915
|
-
]),
|
|
24916
|
-
e2.preventDefault(), e2.persist(),
|
|
24916
|
+
]), pG = (0, import_react.useCallback)(function(e2) {
|
|
24917
|
+
e2.preventDefault(), e2.persist(), TG(e2);
|
|
24917
24918
|
var r2 = isEvtWithFiles(e2);
|
|
24918
24919
|
if (r2 && e2.dataTransfer) try {
|
|
24919
24920
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -24923,12 +24924,12 @@ ${c}
|
|
|
24923
24924
|
}, [
|
|
24924
24925
|
_,
|
|
24925
24926
|
L
|
|
24926
|
-
]),
|
|
24927
|
-
e2.preventDefault(), e2.persist(),
|
|
24928
|
-
var r2 =
|
|
24927
|
+
]), mG = (0, import_react.useCallback)(function(e2) {
|
|
24928
|
+
e2.preventDefault(), e2.persist(), TG(e2);
|
|
24929
|
+
var r2 = cG.current.filter(function(e3) {
|
|
24929
24930
|
return q.current && q.current.contains(e3);
|
|
24930
24931
|
}), c2 = r2.indexOf(e2.target);
|
|
24931
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
24932
|
+
c2 !== -1 && r2.splice(c2, 1), cG.current = r2, !(r2.length > 0) && (rG({
|
|
24932
24933
|
type: "setDraggedFiles",
|
|
24933
24934
|
isDragActive: false,
|
|
24934
24935
|
isDragAccept: false,
|
|
@@ -24938,7 +24939,7 @@ ${c}
|
|
|
24938
24939
|
q,
|
|
24939
24940
|
g,
|
|
24940
24941
|
L
|
|
24941
|
-
]),
|
|
24942
|
+
]), hG = (0, import_react.useCallback)(function(e2, r2) {
|
|
24942
24943
|
var c2 = [], l2 = [];
|
|
24943
24944
|
e2.forEach(function(e3) {
|
|
24944
24945
|
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;
|
|
@@ -24962,14 +24963,14 @@ ${c}
|
|
|
24962
24963
|
TOO_MANY_FILES_REJECTION
|
|
24963
24964
|
]
|
|
24964
24965
|
});
|
|
24965
|
-
}), c2.splice(0)),
|
|
24966
|
+
}), c2.splice(0)), rG({
|
|
24966
24967
|
acceptedFiles: c2,
|
|
24967
24968
|
fileRejections: l2,
|
|
24968
24969
|
isDragReject: l2.length > 0,
|
|
24969
24970
|
type: "setFiles"
|
|
24970
24971
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
24971
24972
|
}, [
|
|
24972
|
-
|
|
24973
|
+
rG,
|
|
24973
24974
|
p,
|
|
24974
24975
|
B,
|
|
24975
24976
|
f,
|
|
@@ -24979,22 +24980,22 @@ ${c}
|
|
|
24979
24980
|
y,
|
|
24980
24981
|
b,
|
|
24981
24982
|
z
|
|
24982
|
-
]),
|
|
24983
|
-
e2.preventDefault(), e2.persist(),
|
|
24984
|
-
isPropagationStopped(e2) && !L ||
|
|
24983
|
+
]), gG = (0, import_react.useCallback)(function(e2) {
|
|
24984
|
+
e2.preventDefault(), e2.persist(), TG(e2), cG.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24985
|
+
isPropagationStopped(e2) && !L || hG(r2, e2);
|
|
24985
24986
|
}).catch(function(e3) {
|
|
24986
|
-
return
|
|
24987
|
-
}),
|
|
24987
|
+
return dG(e3);
|
|
24988
|
+
}), rG({
|
|
24988
24989
|
type: "reset"
|
|
24989
24990
|
});
|
|
24990
24991
|
}, [
|
|
24991
24992
|
u,
|
|
24993
|
+
hG,
|
|
24992
24994
|
dG,
|
|
24993
|
-
sG,
|
|
24994
24995
|
L
|
|
24995
|
-
]),
|
|
24996
|
-
if (
|
|
24997
|
-
|
|
24996
|
+
]), _G = (0, import_react.useCallback)(function() {
|
|
24997
|
+
if (oG.current) {
|
|
24998
|
+
rG({
|
|
24998
24999
|
type: "openDialog"
|
|
24999
25000
|
}), W();
|
|
25000
25001
|
var e2 = {
|
|
@@ -25004,66 +25005,66 @@ ${c}
|
|
|
25004
25005
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
25005
25006
|
return u(e3);
|
|
25006
25007
|
}).then(function(e3) {
|
|
25007
|
-
|
|
25008
|
+
hG(e3, null), rG({
|
|
25008
25009
|
type: "closeDialog"
|
|
25009
25010
|
});
|
|
25010
25011
|
}).catch(function(e3) {
|
|
25011
|
-
isAbort(e3) ? (G(e3),
|
|
25012
|
+
isAbort(e3) ? (G(e3), rG({
|
|
25012
25013
|
type: "closeDialog"
|
|
25013
|
-
})) : isSecurityError(e3) ? (
|
|
25014
|
+
})) : isSecurityError(e3) ? (oG.current = false, tG.current ? (tG.current.value = null, tG.current.click()) : dG(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."))) : dG(e3);
|
|
25014
25015
|
});
|
|
25015
25016
|
return;
|
|
25016
25017
|
}
|
|
25017
|
-
|
|
25018
|
+
tG.current && (rG({
|
|
25018
25019
|
type: "openDialog"
|
|
25019
|
-
}), W(),
|
|
25020
|
+
}), W(), tG.current.value = null, tG.current.click());
|
|
25020
25021
|
}, [
|
|
25021
|
-
|
|
25022
|
+
rG,
|
|
25022
25023
|
W,
|
|
25023
25024
|
G,
|
|
25024
25025
|
T,
|
|
25026
|
+
hG,
|
|
25025
25027
|
dG,
|
|
25026
|
-
sG,
|
|
25027
25028
|
H,
|
|
25028
25029
|
p
|
|
25029
|
-
]),
|
|
25030
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
25030
|
+
]), vG = (0, import_react.useCallback)(function(e2) {
|
|
25031
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), _G());
|
|
25031
25032
|
}, [
|
|
25032
25033
|
q,
|
|
25033
|
-
|
|
25034
|
-
]),
|
|
25035
|
-
|
|
25034
|
+
_G
|
|
25035
|
+
]), yG = (0, import_react.useCallback)(function() {
|
|
25036
|
+
rG({
|
|
25036
25037
|
type: "focus"
|
|
25037
25038
|
});
|
|
25038
|
-
}, []),
|
|
25039
|
-
|
|
25039
|
+
}, []), bG = (0, import_react.useCallback)(function() {
|
|
25040
|
+
rG({
|
|
25040
25041
|
type: "blur"
|
|
25041
25042
|
});
|
|
25042
|
-
}, []),
|
|
25043
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
25043
|
+
}, []), xG = (0, import_react.useCallback)(function() {
|
|
25044
|
+
j || (isIeOrEdge() ? setTimeout(_G, 0) : _G());
|
|
25044
25045
|
}, [
|
|
25045
25046
|
j,
|
|
25046
|
-
|
|
25047
|
-
]),
|
|
25047
|
+
_G
|
|
25048
|
+
]), SG = function(e2) {
|
|
25048
25049
|
return l ? null : e2;
|
|
25049
|
-
},
|
|
25050
|
-
return M ? null :
|
|
25051
|
-
},
|
|
25052
|
-
return I ? null :
|
|
25053
|
-
},
|
|
25050
|
+
}, CG = function(e2) {
|
|
25051
|
+
return M ? null : SG(e2);
|
|
25052
|
+
}, wG = function(e2) {
|
|
25053
|
+
return I ? null : SG(e2);
|
|
25054
|
+
}, TG = function(e2) {
|
|
25054
25055
|
L && e2.stopPropagation();
|
|
25055
|
-
},
|
|
25056
|
+
}, EG = (0, import_react.useMemo)(function() {
|
|
25056
25057
|
return function() {
|
|
25057
25058
|
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);
|
|
25058
25059
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
25059
|
-
onKeyDown:
|
|
25060
|
-
onFocus:
|
|
25061
|
-
onBlur:
|
|
25062
|
-
onClick:
|
|
25063
|
-
onDragEnter:
|
|
25064
|
-
onDragOver:
|
|
25065
|
-
onDragLeave:
|
|
25066
|
-
onDrop:
|
|
25060
|
+
onKeyDown: CG(composeEventHandlers(d2, vG)),
|
|
25061
|
+
onFocus: CG(composeEventHandlers(f2, yG)),
|
|
25062
|
+
onBlur: CG(composeEventHandlers(p2, bG)),
|
|
25063
|
+
onClick: SG(composeEventHandlers(m2, xG)),
|
|
25064
|
+
onDragEnter: wG(composeEventHandlers(h2, fG)),
|
|
25065
|
+
onDragOver: wG(composeEventHandlers(g2, pG)),
|
|
25066
|
+
onDragLeave: wG(composeEventHandlers(_2, mG)),
|
|
25067
|
+
onDrop: wG(composeEventHandlers(v2, gG)),
|
|
25067
25068
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
25068
25069
|
}, c2, q), !l && !M ? {
|
|
25069
25070
|
tabIndex: 0
|
|
@@ -25071,20 +25072,20 @@ ${c}
|
|
|
25071
25072
|
};
|
|
25072
25073
|
}, [
|
|
25073
25074
|
q,
|
|
25075
|
+
vG,
|
|
25076
|
+
yG,
|
|
25077
|
+
bG,
|
|
25078
|
+
xG,
|
|
25079
|
+
fG,
|
|
25080
|
+
pG,
|
|
25074
25081
|
mG,
|
|
25075
|
-
hG,
|
|
25076
25082
|
gG,
|
|
25077
|
-
_G,
|
|
25078
|
-
cG,
|
|
25079
|
-
lG,
|
|
25080
|
-
uG,
|
|
25081
|
-
fG,
|
|
25082
25083
|
M,
|
|
25083
25084
|
I,
|
|
25084
25085
|
l
|
|
25085
|
-
]),
|
|
25086
|
+
]), DG = (0, import_react.useCallback)(function(e2) {
|
|
25086
25087
|
e2.stopPropagation();
|
|
25087
|
-
}, []),
|
|
25088
|
+
}, []), OG = (0, import_react.useMemo)(function() {
|
|
25088
25089
|
return function() {
|
|
25089
25090
|
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);
|
|
25090
25091
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -25103,25 +25104,25 @@ ${c}
|
|
|
25103
25104
|
width: "1px",
|
|
25104
25105
|
whiteSpace: "nowrap"
|
|
25105
25106
|
},
|
|
25106
|
-
onChange:
|
|
25107
|
-
onClick:
|
|
25107
|
+
onChange: SG(composeEventHandlers(l2, gG)),
|
|
25108
|
+
onClick: SG(composeEventHandlers(u2, DG)),
|
|
25108
25109
|
tabIndex: -1
|
|
25109
|
-
}, c2,
|
|
25110
|
+
}, c2, tG)), d2);
|
|
25110
25111
|
};
|
|
25111
25112
|
}, [
|
|
25112
|
-
|
|
25113
|
+
tG,
|
|
25113
25114
|
c,
|
|
25114
25115
|
p,
|
|
25115
|
-
|
|
25116
|
+
gG,
|
|
25116
25117
|
l
|
|
25117
25118
|
]);
|
|
25118
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
25119
|
-
isFocused:
|
|
25120
|
-
getRootProps:
|
|
25121
|
-
getInputProps:
|
|
25119
|
+
return _objectSpread$7(_objectSpread$7({}, nG), {}, {
|
|
25120
|
+
isFocused: iG && !l,
|
|
25121
|
+
getRootProps: EG,
|
|
25122
|
+
getInputProps: OG,
|
|
25122
25123
|
rootRef: q,
|
|
25123
|
-
inputRef:
|
|
25124
|
-
open:
|
|
25124
|
+
inputRef: tG,
|
|
25125
|
+
open: SG(_G)
|
|
25125
25126
|
});
|
|
25126
25127
|
}
|
|
25127
25128
|
function reducer$2(e, r) {
|
|
@@ -25353,47 +25354,47 @@ ${c}
|
|
|
25353
25354
|
html: I
|
|
25354
25355
|
})
|
|
25355
25356
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
25356
|
-
let q = w && "text-primary",
|
|
25357
|
-
r[48] !== q || r[49] !==
|
|
25358
|
-
let
|
|
25359
|
-
r[51] === Z ?
|
|
25357
|
+
let q = w && "text-primary", tG = T && "text-destructive", Z;
|
|
25358
|
+
r[48] !== q || r[49] !== tG ? (Z = cn(q, tG), r[48] = q, r[49] = tG, r[50] = Z) : Z = r[50];
|
|
25359
|
+
let nG;
|
|
25360
|
+
r[51] === Z ? nG = r[52] : (nG = (0, import_jsx_runtime.jsx)(Upload, {
|
|
25360
25361
|
strokeWidth: 1.4,
|
|
25361
25362
|
className: Z
|
|
25362
|
-
}), r[51] = Z, r[52] =
|
|
25363
|
-
let
|
|
25364
|
-
r[53] !==
|
|
25365
|
-
let
|
|
25366
|
-
r[56] ===
|
|
25363
|
+
}), r[51] = Z, r[52] = nG);
|
|
25364
|
+
let rG = w && "text-primary", iG = T && "text-destructive", aG;
|
|
25365
|
+
r[53] !== rG || r[54] !== iG ? (aG = cn(rG, iG), r[53] = rG, r[54] = iG, r[55] = aG) : aG = r[55];
|
|
25366
|
+
let oG;
|
|
25367
|
+
r[56] === aG ? oG = r[57] : (oG = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
25367
25368
|
strokeWidth: 1.4,
|
|
25368
|
-
className:
|
|
25369
|
-
}), r[56] =
|
|
25370
|
-
let
|
|
25371
|
-
r[58] !==
|
|
25369
|
+
className: aG
|
|
25370
|
+
}), r[56] = aG, r[57] = oG);
|
|
25371
|
+
let sG;
|
|
25372
|
+
r[58] !== nG || r[59] !== oG ? (sG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25372
25373
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
25373
25374
|
children: [
|
|
25374
|
-
|
|
25375
|
-
|
|
25375
|
+
nG,
|
|
25376
|
+
oG
|
|
25376
25377
|
]
|
|
25377
|
-
}), r[58] =
|
|
25378
|
-
let
|
|
25379
|
-
r[61] !== G || r[62] !==
|
|
25378
|
+
}), r[58] = nG, r[59] = oG, r[60] = sG) : sG = r[60];
|
|
25379
|
+
let cG;
|
|
25380
|
+
r[61] !== G || r[62] !== sG ? (cG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25380
25381
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
25381
25382
|
children: [
|
|
25382
25383
|
G,
|
|
25383
|
-
|
|
25384
|
+
sG
|
|
25384
25385
|
]
|
|
25385
|
-
}), r[61] = G, r[62] =
|
|
25386
|
-
let
|
|
25387
|
-
r[64] !== W || r[65] !==
|
|
25386
|
+
}), r[61] = G, r[62] = sG, r[63] = cG) : cG = r[63];
|
|
25387
|
+
let uG;
|
|
25388
|
+
r[64] !== W || r[65] !== cG || r[66] !== z || r[67] !== B ? (uG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25388
25389
|
className: z,
|
|
25389
25390
|
...B,
|
|
25390
25391
|
children: [
|
|
25391
25392
|
W,
|
|
25392
|
-
|
|
25393
|
+
cG
|
|
25393
25394
|
]
|
|
25394
|
-
}), r[64] = W, r[65] =
|
|
25395
|
-
let
|
|
25396
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (
|
|
25395
|
+
}), r[64] = W, r[65] = cG, r[66] = z, r[67] = B, r[68] = uG) : uG = r[68];
|
|
25396
|
+
let dG;
|
|
25397
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (dG = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
25397
25398
|
className: "flex flex-row gap-1",
|
|
25398
25399
|
children: [
|
|
25399
25400
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -25429,17 +25430,17 @@ ${c}
|
|
|
25429
25430
|
})
|
|
25430
25431
|
})
|
|
25431
25432
|
]
|
|
25432
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] =
|
|
25433
|
-
let
|
|
25434
|
-
return r[75] !==
|
|
25433
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] = dG) : dG = r[74];
|
|
25434
|
+
let fG;
|
|
25435
|
+
return r[75] !== uG || r[76] !== dG ? (fG = (0, import_jsx_runtime.jsx)("section", {
|
|
25435
25436
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
25436
25437
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
25437
25438
|
children: [
|
|
25438
|
-
|
|
25439
|
-
|
|
25439
|
+
uG,
|
|
25440
|
+
dG
|
|
25440
25441
|
]
|
|
25441
25442
|
})
|
|
25442
|
-
}), r[75] =
|
|
25443
|
+
}), r[75] = uG, r[76] = dG, r[77] = fG) : fG = r[77], fG;
|
|
25443
25444
|
};
|
|
25444
25445
|
function _temp$11(e) {
|
|
25445
25446
|
Logger.error(e), toast({
|
|
@@ -25536,75 +25537,75 @@ ${c}
|
|
|
25536
25537
|
var _a5;
|
|
25537
25538
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), (_a5 = j.current) == null ? void 0 : _a5.requestSubmit());
|
|
25538
25539
|
}, r[10] = q) : q = r[10];
|
|
25539
|
-
let
|
|
25540
|
-
r[11] === f ?
|
|
25540
|
+
let tG;
|
|
25541
|
+
r[11] === f ? tG = r[12] : (tG = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
25541
25542
|
className: "text-center",
|
|
25542
25543
|
children: renderHTML({
|
|
25543
25544
|
html: f
|
|
25544
25545
|
})
|
|
25545
|
-
}), r[11] = f, r[12] =
|
|
25546
|
+
}), r[11] = f, r[12] = tG);
|
|
25546
25547
|
let Z;
|
|
25547
25548
|
r[13] === L ? Z = r[14] : (Z = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25548
25549
|
kind: "danger",
|
|
25549
25550
|
className: "rounded",
|
|
25550
25551
|
children: L ?? "Invalid input"
|
|
25551
25552
|
}), r[13] = L, r[14] = Z);
|
|
25552
|
-
let
|
|
25553
|
-
r[15] === c ?
|
|
25553
|
+
let nG;
|
|
25554
|
+
r[15] === c ? nG = r[16] : (nG = (0, import_jsx_runtime.jsx)("div", {
|
|
25554
25555
|
children: c
|
|
25555
|
-
}), r[15] = c, r[16] =
|
|
25556
|
-
let
|
|
25557
|
-
r[17] !== S || r[18] !== w || r[19] !== b ? (
|
|
25556
|
+
}), r[15] = c, r[16] = nG);
|
|
25557
|
+
let rG;
|
|
25558
|
+
r[17] !== S || r[18] !== w || r[19] !== b ? (rG = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
25558
25559
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
25559
25560
|
variant: "text",
|
|
25560
25561
|
onClick: (e2) => {
|
|
25561
25562
|
e2.preventDefault(), B();
|
|
25562
25563
|
},
|
|
25563
25564
|
children: S
|
|
25564
|
-
}), w), r[17] = S, r[18] = w, r[19] = b, r[20] =
|
|
25565
|
-
let
|
|
25566
|
-
r[21] === m ?
|
|
25565
|
+
}), w), r[17] = S, r[18] = w, r[19] = b, r[20] = rG) : rG = r[20];
|
|
25566
|
+
let iG = v || m, aG;
|
|
25567
|
+
r[21] === m ? aG = r[22] : (aG = m && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
25567
25568
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
25568
|
-
}), r[21] = m, r[22] =
|
|
25569
|
-
let
|
|
25570
|
-
r[23] !== g || r[24] !==
|
|
25569
|
+
}), r[21] = m, r[22] = aG);
|
|
25570
|
+
let oG;
|
|
25571
|
+
r[23] !== g || r[24] !== iG || r[25] !== aG || r[26] !== I ? (oG = (0, import_jsx_runtime.jsxs)(Button, {
|
|
25571
25572
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
25572
25573
|
variant: I,
|
|
25573
|
-
disabled:
|
|
25574
|
+
disabled: iG,
|
|
25574
25575
|
type: "submit",
|
|
25575
25576
|
children: [
|
|
25576
|
-
|
|
25577
|
+
aG,
|
|
25577
25578
|
g
|
|
25578
25579
|
]
|
|
25579
|
-
}), r[23] = g, r[24] =
|
|
25580
|
-
let
|
|
25581
|
-
r[28] !== _ || r[29] !==
|
|
25582
|
-
let
|
|
25583
|
-
r[31] !==
|
|
25580
|
+
}), r[23] = g, r[24] = iG, r[25] = aG, r[26] = I, r[27] = oG) : oG = r[27];
|
|
25581
|
+
let sG;
|
|
25582
|
+
r[28] !== _ || r[29] !== oG ? (sG = withTooltip(oG, _), r[28] = _, r[29] = oG, r[30] = sG) : sG = r[30];
|
|
25583
|
+
let cG;
|
|
25584
|
+
r[31] !== sG || r[32] !== rG ? (cG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25584
25585
|
className: "flex justify-end gap-2 font-code",
|
|
25585
25586
|
children: [
|
|
25586
|
-
|
|
25587
|
-
|
|
25587
|
+
rG,
|
|
25588
|
+
sG
|
|
25588
25589
|
]
|
|
25589
|
-
}), r[31] =
|
|
25590
|
-
let
|
|
25591
|
-
r[34] !==
|
|
25590
|
+
}), r[31] = sG, r[32] = rG, r[33] = cG) : cG = r[33];
|
|
25591
|
+
let uG;
|
|
25592
|
+
r[34] !== cG || r[35] !== G || r[36] !== tG || r[37] !== Z || r[38] !== nG ? (uG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25592
25593
|
className: G,
|
|
25593
25594
|
onKeyDown: q,
|
|
25594
25595
|
children: [
|
|
25595
|
-
|
|
25596
|
+
tG,
|
|
25596
25597
|
Z,
|
|
25597
|
-
|
|
25598
|
-
|
|
25598
|
+
nG,
|
|
25599
|
+
cG
|
|
25599
25600
|
]
|
|
25600
|
-
}), r[34] =
|
|
25601
|
-
let
|
|
25602
|
-
return r[40] !==
|
|
25601
|
+
}), r[34] = cG, r[35] = G, r[36] = tG, r[37] = Z, r[38] = nG, r[39] = uG) : uG = r[39];
|
|
25602
|
+
let dG;
|
|
25603
|
+
return r[40] !== uG || r[41] !== H ? (dG = (0, import_jsx_runtime.jsx)("form", {
|
|
25603
25604
|
className: "contents",
|
|
25604
25605
|
ref: j,
|
|
25605
25606
|
onSubmit: H,
|
|
25606
|
-
children:
|
|
25607
|
-
}), r[40] =
|
|
25607
|
+
children: uG
|
|
25608
|
+
}), r[40] = uG, r[41] = H, r[42] = dG) : dG = r[42], dG;
|
|
25608
25609
|
};
|
|
25609
25610
|
var Form = (e) => {
|
|
25610
25611
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -25685,7 +25686,10 @@ ${c}
|
|
|
25685
25686
|
setValue: e.setValue
|
|
25686
25687
|
});
|
|
25687
25688
|
}
|
|
25688
|
-
}, PIXELS_PER_STEP = 10,
|
|
25689
|
+
}, PIXELS_PER_STEP = 10, COARSE_MULTIPLIER = 10, FINE_MULTIPLIER = 0.1, stepMultiplier = (e) => e.shiftKey ? COARSE_MULTIPLIER : e.altKey ? FINE_MULTIPLIER : 1, cleanFloat = (e, r) => {
|
|
25690
|
+
let c = Number(e.toFixed(12)), l = 2 ** -52 * Math.max(Math.abs(e), Math.abs(r)) * 100;
|
|
25691
|
+
return Math.abs(e - c) <= l ? c : e;
|
|
25692
|
+
}, MatrixComponent = ({ value: e, setValue: r, label: c, minValue: l, maxValue: u, step: d, precision: f, rowLabels: p, columnLabels: m, symmetric: g, debounce: _, scientific: v, disabled: y }) => {
|
|
25689
25693
|
var _a5;
|
|
25690
25694
|
let b = (0, import_react.useRef)(null), [S, w] = (0, import_react.useState)(null), [T, E] = (0, import_react.useState)(e);
|
|
25691
25695
|
(0, import_react.useEffect)(() => {
|
|
@@ -25693,68 +25697,140 @@ ${c}
|
|
|
25693
25697
|
}, [
|
|
25694
25698
|
e
|
|
25695
25699
|
]);
|
|
25696
|
-
let O = S == null ? e : T, j = (
|
|
25700
|
+
let O = S == null ? e : T, [j, M] = (0, import_react.useState)(null), I = (0, import_react.useRef)(null), L = (0, import_react.useRef)(null), R = (0, import_react.useCallback)((e2) => {
|
|
25701
|
+
I.current = e2, M(e2);
|
|
25702
|
+
}, []), z = (e2) => v ? e2.toExponential(f) : e2.toFixed(f), B = (0, import_react.useCallback)((e2, r2, c2) => {
|
|
25697
25703
|
let d2 = e2;
|
|
25698
25704
|
return l != null && (d2 = Math.max(d2, l[r2][c2])), u != null && (d2 = Math.min(d2, u[r2][c2])), d2;
|
|
25699
25705
|
}, [
|
|
25700
25706
|
l,
|
|
25701
25707
|
u
|
|
25702
|
-
]),
|
|
25703
|
-
|
|
25708
|
+
]), H = (0, import_react.useCallback)((e2, r2, c2, l2) => {
|
|
25709
|
+
let u2 = g && r2 !== c2, d2 = B(l2, r2, c2);
|
|
25710
|
+
if (u2 && (d2 = B(d2, c2, r2)), d2 === e2[r2][c2]) return null;
|
|
25711
|
+
let f2 = e2.map((e3) => [
|
|
25712
|
+
...e3
|
|
25713
|
+
]);
|
|
25714
|
+
return f2[r2][c2] = d2, u2 && (f2[c2][r2] = d2), f2;
|
|
25715
|
+
}, [
|
|
25716
|
+
g,
|
|
25717
|
+
B
|
|
25718
|
+
]), W = (0, import_react.useCallback)((r2, c2, l2) => {
|
|
25719
|
+
y[r2][c2] || (b.current = null, w(null), R({
|
|
25720
|
+
row: r2,
|
|
25721
|
+
col: c2,
|
|
25722
|
+
text: l2 ?? String(e[r2][c2]),
|
|
25723
|
+
selectAll: l2 == null
|
|
25724
|
+
}));
|
|
25725
|
+
}, [
|
|
25726
|
+
y,
|
|
25727
|
+
e,
|
|
25728
|
+
R
|
|
25729
|
+
]), G = (0, import_react.useCallback)((e2) => {
|
|
25730
|
+
var _a6;
|
|
25731
|
+
L.current = e2, e2 && (e2.focus(), ((_a6 = I.current) == null ? void 0 : _a6.selectAll) ? e2.select() : e2.setSelectionRange(e2.value.length, e2.value.length));
|
|
25732
|
+
}, []), q = (0, import_react.useCallback)((c2) => {
|
|
25733
|
+
var _a6;
|
|
25734
|
+
let l2 = I.current;
|
|
25735
|
+
if (!l2) return;
|
|
25736
|
+
let u2 = c2 ? (_a6 = L.current) == null ? void 0 : _a6.closest("td") : null;
|
|
25737
|
+
R(null);
|
|
25738
|
+
let d2 = l2.text.trim(), f2 = Number(d2);
|
|
25739
|
+
if (d2 !== "" && Number.isFinite(f2)) {
|
|
25740
|
+
let c3 = H(e, l2.row, l2.col, f2);
|
|
25741
|
+
c3 && (E(c3), r(c3));
|
|
25742
|
+
}
|
|
25743
|
+
u2 == null ? void 0 : u2.focus();
|
|
25744
|
+
}, [
|
|
25745
|
+
e,
|
|
25746
|
+
H,
|
|
25747
|
+
r,
|
|
25748
|
+
R
|
|
25749
|
+
]), tG = (0, import_react.useCallback)(() => {
|
|
25750
|
+
var _a6;
|
|
25751
|
+
let e2 = (_a6 = L.current) == null ? void 0 : _a6.closest("td");
|
|
25752
|
+
R(null), e2 == null ? void 0 : e2.focus();
|
|
25753
|
+
}, [
|
|
25754
|
+
R
|
|
25755
|
+
]), Z = (0, import_react.useCallback)((e2) => {
|
|
25756
|
+
e2.stopPropagation(), e2.key === "Enter" ? (e2.preventDefault(), q(true)) : e2.key === "Escape" && (e2.preventDefault(), tG());
|
|
25757
|
+
}, [
|
|
25758
|
+
q,
|
|
25759
|
+
tG
|
|
25760
|
+
]), nG = (0, import_react.useCallback)((e2, r2, c2) => {
|
|
25761
|
+
y[r2][c2] || j != null || !(e2.target instanceof Element) || (e2.preventDefault(), e2.currentTarget.focus(), e2.target.setPointerCapture(e2.pointerId), b.current = {
|
|
25704
25762
|
row: r2,
|
|
25705
25763
|
col: c2,
|
|
25706
25764
|
startX: e2.clientX,
|
|
25707
|
-
startValue: O[r2][c2]
|
|
25765
|
+
startValue: O[r2][c2],
|
|
25766
|
+
multiplier: stepMultiplier(e2)
|
|
25708
25767
|
}, w({
|
|
25709
25768
|
row: r2,
|
|
25710
25769
|
col: c2
|
|
25711
25770
|
}));
|
|
25712
25771
|
}, [
|
|
25713
25772
|
y,
|
|
25773
|
+
j,
|
|
25714
25774
|
O
|
|
25715
|
-
]),
|
|
25775
|
+
]), rG = (0, import_react.useCallback)((e2) => {
|
|
25716
25776
|
let c2 = b.current;
|
|
25717
25777
|
if (!c2) return;
|
|
25718
|
-
let
|
|
25719
|
-
|
|
25720
|
-
|
|
25721
|
-
|
|
25722
|
-
]);
|
|
25723
|
-
e3[l2][u2] = v2, g && l2 !== u2 && (e3[u2][l2] = v2), E(e3), _ || r(e3);
|
|
25724
|
-
}
|
|
25778
|
+
let l2 = stepMultiplier(e2);
|
|
25779
|
+
l2 !== c2.multiplier && (c2.startX = e2.clientX, c2.startValue = O[c2.row][c2.col], c2.multiplier = l2);
|
|
25780
|
+
let { row: u2, col: f2, startX: p2, startValue: m2 } = c2, h = e2.clientX - p2, g2 = d[u2][f2] * l2, v2 = H(O, u2, f2, cleanFloat(m2 + Math.round(h / PIXELS_PER_STEP) * g2, g2));
|
|
25781
|
+
v2 && (E(v2), _ || r(v2));
|
|
25725
25782
|
}, [
|
|
25726
25783
|
d,
|
|
25727
|
-
M,
|
|
25728
25784
|
O,
|
|
25729
|
-
|
|
25785
|
+
H,
|
|
25730
25786
|
_,
|
|
25731
25787
|
r
|
|
25732
|
-
]),
|
|
25788
|
+
]), iG = (0, import_react.useCallback)(() => {
|
|
25733
25789
|
_ && b.current && r(O), b.current = null, w(null);
|
|
25734
25790
|
}, [
|
|
25735
25791
|
_,
|
|
25736
25792
|
O,
|
|
25737
25793
|
r
|
|
25738
|
-
]),
|
|
25739
|
-
if (
|
|
25740
|
-
|
|
25741
|
-
e2.preventDefault();
|
|
25742
|
-
|
|
25743
|
-
if (p2 !== O[c2][l2]) {
|
|
25744
|
-
let e3 = O.map((e4) => [
|
|
25745
|
-
...e4
|
|
25746
|
-
]);
|
|
25747
|
-
e3[c2][l2] = p2, g && c2 !== l2 && (e3[l2][c2] = p2), E(e3), r(e3);
|
|
25748
|
-
}
|
|
25794
|
+
]), aG = (0, import_react.useCallback)((e2, c2, l2) => {
|
|
25795
|
+
if (y[c2][l2]) return;
|
|
25796
|
+
if (e2.key === "Enter" || e2.key === "F2") {
|
|
25797
|
+
e2.preventDefault(), W(c2, l2);
|
|
25798
|
+
return;
|
|
25749
25799
|
}
|
|
25800
|
+
if (e2.key.length === 1 && /[\d.+-]/.test(e2.key) && !e2.ctrlKey && !e2.metaKey && !e2.altKey) {
|
|
25801
|
+
e2.preventDefault(), W(c2, l2, e2.key);
|
|
25802
|
+
return;
|
|
25803
|
+
}
|
|
25804
|
+
let u2 = d[c2][l2], f2;
|
|
25805
|
+
switch (e2.key) {
|
|
25806
|
+
case "ArrowUp":
|
|
25807
|
+
case "ArrowRight":
|
|
25808
|
+
f2 = u2 * stepMultiplier(e2);
|
|
25809
|
+
break;
|
|
25810
|
+
case "ArrowDown":
|
|
25811
|
+
case "ArrowLeft":
|
|
25812
|
+
f2 = -u2 * stepMultiplier(e2);
|
|
25813
|
+
break;
|
|
25814
|
+
case "PageUp":
|
|
25815
|
+
f2 = u2 * COARSE_MULTIPLIER;
|
|
25816
|
+
break;
|
|
25817
|
+
case "PageDown":
|
|
25818
|
+
f2 = -u2 * COARSE_MULTIPLIER;
|
|
25819
|
+
break;
|
|
25820
|
+
default:
|
|
25821
|
+
return;
|
|
25822
|
+
}
|
|
25823
|
+
e2.preventDefault();
|
|
25824
|
+
let p2 = H(O, c2, l2, cleanFloat(O[c2][l2] + f2, f2));
|
|
25825
|
+
p2 && (E(p2), r(p2));
|
|
25750
25826
|
}, [
|
|
25751
25827
|
y,
|
|
25828
|
+
W,
|
|
25752
25829
|
d,
|
|
25753
25830
|
O,
|
|
25754
|
-
|
|
25755
|
-
g,
|
|
25831
|
+
H,
|
|
25756
25832
|
r
|
|
25757
|
-
]),
|
|
25833
|
+
]), oG = p != null && p.length > 0, sG = m != null && m.length > 0, cG = O.length, lG = ((_a5 = O[0]) == null ? void 0 : _a5.length) ?? 0;
|
|
25758
25834
|
return (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25759
25835
|
label: c,
|
|
25760
25836
|
align: "top",
|
|
@@ -25762,18 +25838,18 @@ ${c}
|
|
|
25762
25838
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
25763
25839
|
className: "relative inline-block",
|
|
25764
25840
|
"data-testid": "marimo-plugin-matrix",
|
|
25765
|
-
onPointerMove:
|
|
25766
|
-
onPointerUp:
|
|
25767
|
-
onPointerCancel:
|
|
25841
|
+
onPointerMove: rG,
|
|
25842
|
+
onPointerUp: iG,
|
|
25843
|
+
onPointerCancel: iG,
|
|
25768
25844
|
children: (0, import_jsx_runtime.jsxs)("table", {
|
|
25769
25845
|
className: "font-mono text-sm tabular-nums select-none border-separate border-spacing-0",
|
|
25770
25846
|
role: "group",
|
|
25771
25847
|
"aria-label": c || "Matrix",
|
|
25772
25848
|
children: [
|
|
25773
|
-
|
|
25849
|
+
sG && (0, import_jsx_runtime.jsx)("thead", {
|
|
25774
25850
|
children: (0, import_jsx_runtime.jsxs)("tr", {
|
|
25775
25851
|
children: [
|
|
25776
|
-
|
|
25852
|
+
oG && (0, import_jsx_runtime.jsx)("th", {}),
|
|
25777
25853
|
m.map((e2, r2) => (0, import_jsx_runtime.jsx)("th", {
|
|
25778
25854
|
className: "text-center text-sm font-medium text-foreground px-2 pb-1",
|
|
25779
25855
|
children: e2
|
|
@@ -25784,25 +25860,43 @@ ${c}
|
|
|
25784
25860
|
(0, import_jsx_runtime.jsx)("tbody", {
|
|
25785
25861
|
children: O.map((e2, r2) => (0, import_jsx_runtime.jsxs)("tr", {
|
|
25786
25862
|
children: [
|
|
25787
|
-
|
|
25863
|
+
oG && (0, import_jsx_runtime.jsx)("th", {
|
|
25788
25864
|
className: "text-right text-sm font-medium text-foreground pr-3 h-8",
|
|
25789
25865
|
children: p[r2]
|
|
25790
25866
|
}),
|
|
25791
25867
|
e2.map((e3, c2) => {
|
|
25792
25868
|
var _a6, _b3;
|
|
25793
|
-
let d2 = y[r2][c2], f2 = (S == null ? void 0 : S.row) === r2 && (S == null ? void 0 : S.col) === c2, g2 = (p == null ? void 0 : p[r2]) ?? `Row ${r2 + 1}`,
|
|
25869
|
+
let d2 = y[r2][c2], f2 = (S == null ? void 0 : S.row) === r2 && (S == null ? void 0 : S.col) === c2, g2 = j != null && j.row === r2 && j.col === c2 ? j : null, _2 = (p == null ? void 0 : p[r2]) ?? `Row ${r2 + 1}`, v2 = (m == null ? void 0 : m[c2]) ?? `Column ${c2 + 1}`;
|
|
25794
25870
|
return (0, import_jsx_runtime.jsx)("td", {
|
|
25795
|
-
className: cn("relative text-center min-w-14 h-8 px-2 transition-colors touch-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden", d2 ? "cursor-default text-muted-foreground" : "cursor-ew-resize text-link hover:bg-accent", f2 && "bg-accent", c2 === 0 && "bracket-l", c2 ===
|
|
25871
|
+
className: cn("relative text-center min-w-14 h-8 px-2 transition-colors touch-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden", d2 ? "cursor-default text-muted-foreground" : g2 ? "cursor-text" : "cursor-ew-resize text-link hover:bg-accent", (f2 || g2 != null) && "bg-accent", c2 === 0 && "bracket-l", c2 === lG - 1 && "bracket-r", r2 === 0 && "bracket-t", r2 === cG - 1 && "bracket-b"),
|
|
25796
25872
|
tabIndex: d2 ? -1 : 0,
|
|
25797
|
-
|
|
25873
|
+
title: String(e3),
|
|
25874
|
+
"aria-label": `${_2}, ${v2}`,
|
|
25798
25875
|
"aria-valuenow": e3,
|
|
25799
25876
|
"aria-valuemin": (_a6 = l == null ? void 0 : l[r2]) == null ? void 0 : _a6[c2],
|
|
25800
25877
|
"aria-valuemax": (_b3 = u == null ? void 0 : u[r2]) == null ? void 0 : _b3[c2],
|
|
25801
25878
|
"aria-disabled": d2 || void 0,
|
|
25802
|
-
onPointerDown: (e4) =>
|
|
25803
|
-
|
|
25879
|
+
onPointerDown: (e4) => nG(e4, r2, c2),
|
|
25880
|
+
onDoubleClick: () => W(r2, c2),
|
|
25881
|
+
onKeyDown: (e4) => aG(e4, r2, c2),
|
|
25804
25882
|
"data-testid": `matrix-cell-${r2}-${c2}`,
|
|
25805
|
-
children:
|
|
25883
|
+
children: g2 ? (0, import_jsx_runtime.jsx)("input", {
|
|
25884
|
+
ref: G,
|
|
25885
|
+
className: "bg-transparent text-center font-mono text-sm text-foreground outline-none select-text",
|
|
25886
|
+
style: {
|
|
25887
|
+
width: `${Math.max(g2.text.length + 2, 6)}ch`
|
|
25888
|
+
},
|
|
25889
|
+
value: g2.text,
|
|
25890
|
+
onChange: (e4) => R({
|
|
25891
|
+
...g2,
|
|
25892
|
+
text: e4.target.value
|
|
25893
|
+
}),
|
|
25894
|
+
onKeyDown: Z,
|
|
25895
|
+
onBlur: () => q(false),
|
|
25896
|
+
onPointerDown: (e4) => e4.stopPropagation(),
|
|
25897
|
+
"aria-label": `Edit ${_2}, ${v2}`,
|
|
25898
|
+
"data-testid": `matrix-input-${r2}-${c2}`
|
|
25899
|
+
}) : z(e3)
|
|
25806
25900
|
}, c2);
|
|
25807
25901
|
})
|
|
25808
25902
|
]
|
|
@@ -27377,8 +27471,8 @@ ${c}
|
|
|
27377
27471
|
points: extractSunburstPoints(e2.points)
|
|
27378
27472
|
}));
|
|
27379
27473
|
}, r[29] = u, r[30] = G);
|
|
27380
|
-
let q = useEvent_default(G),
|
|
27381
|
-
r[31] === u ?
|
|
27474
|
+
let q = useEvent_default(G), tG;
|
|
27475
|
+
r[31] === u ? tG = r[32] : (tG = (e2) => {
|
|
27382
27476
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
27383
27477
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
27384
27478
|
u((e3) => ({
|
|
@@ -27389,9 +27483,9 @@ ${c}
|
|
|
27389
27483
|
points: r2,
|
|
27390
27484
|
indices: c2
|
|
27391
27485
|
}));
|
|
27392
|
-
}, r[31] = u, r[32] =
|
|
27393
|
-
let Z = useEvent_default(
|
|
27394
|
-
r[33] === u ?
|
|
27486
|
+
}, r[31] = u, r[32] = tG);
|
|
27487
|
+
let Z = useEvent_default(tG), nG;
|
|
27488
|
+
r[33] === u ? nG = r[34] : (nG = (e2) => {
|
|
27395
27489
|
e2 && u((r2) => ({
|
|
27396
27490
|
...r2,
|
|
27397
27491
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -27400,9 +27494,9 @@ ${c}
|
|
|
27400
27494
|
range: e2.range,
|
|
27401
27495
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
27402
27496
|
}));
|
|
27403
|
-
}, r[33] = u, r[34] =
|
|
27404
|
-
let
|
|
27405
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !==
|
|
27497
|
+
}, r[33] = u, r[34] = nG);
|
|
27498
|
+
let rG = useEvent_default(nG), iG = m.frames ?? void 0, aG = useEvent_default(_temp3$3), oG;
|
|
27499
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !== rG || r[43] !== iG || r[44] !== aG || r[45] !== R ? (oG = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
27406
27500
|
...m,
|
|
27407
27501
|
layout: h,
|
|
27408
27502
|
onRelayout: R,
|
|
@@ -27411,12 +27505,12 @@ ${c}
|
|
|
27411
27505
|
onSunburstClick: q,
|
|
27412
27506
|
config: L,
|
|
27413
27507
|
onClick: Z,
|
|
27414
|
-
onSelected:
|
|
27508
|
+
onSelected: rG,
|
|
27415
27509
|
className: "w-full",
|
|
27416
27510
|
useResizeHandler: true,
|
|
27417
|
-
frames:
|
|
27418
|
-
onError:
|
|
27419
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] =
|
|
27511
|
+
frames: iG,
|
|
27512
|
+
onError: aG
|
|
27513
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] = rG, r[43] = iG, r[44] = aG, r[45] = R, r[46] = oG) : oG = r[46], oG;
|
|
27420
27514
|
});
|
|
27421
27515
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
27422
27516
|
function _temp$8(e) {
|
|
@@ -27548,8 +27642,8 @@ ${c}
|
|
|
27548
27642
|
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];
|
|
27549
27643
|
let q;
|
|
27550
27644
|
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];
|
|
27551
|
-
let
|
|
27552
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
27645
|
+
let tG;
|
|
27646
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (tG = (0, import_jsx_runtime.jsx)(Track, {
|
|
27553
27647
|
ref: E,
|
|
27554
27648
|
"data-testid": "track",
|
|
27555
27649
|
className: G,
|
|
@@ -27560,7 +27654,7 @@ ${c}
|
|
|
27560
27654
|
onPointerMove: z,
|
|
27561
27655
|
onPointerUp: H
|
|
27562
27656
|
})
|
|
27563
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
27657
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = tG) : tG = c[22];
|
|
27564
27658
|
let Z;
|
|
27565
27659
|
c[23] !== p.setFalse || c[24] !== p.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27566
27660
|
asChild: true,
|
|
@@ -27573,29 +27667,29 @@ ${c}
|
|
|
27573
27667
|
onMouseLeave: p.setFalse
|
|
27574
27668
|
})
|
|
27575
27669
|
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] = Z) : Z = c[25];
|
|
27576
|
-
let
|
|
27577
|
-
c[26] !== m || c[27] !== u.value || c[28] !== d ? (
|
|
27670
|
+
let nG;
|
|
27671
|
+
c[26] !== m || c[27] !== u.value || c[28] !== d ? (nG = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27578
27672
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
27579
27673
|
locale: m
|
|
27580
27674
|
})
|
|
27581
|
-
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] =
|
|
27582
|
-
let
|
|
27583
|
-
c[30] ===
|
|
27584
|
-
children:
|
|
27585
|
-
}), c[30] =
|
|
27586
|
-
let
|
|
27587
|
-
c[32] !== f || c[33] !== Z || c[34] !==
|
|
27675
|
+
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] = nG) : nG = c[29];
|
|
27676
|
+
let rG;
|
|
27677
|
+
c[30] === nG ? rG = c[31] : (rG = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27678
|
+
children: nG
|
|
27679
|
+
}), c[30] = nG, c[31] = rG);
|
|
27680
|
+
let iG;
|
|
27681
|
+
c[32] !== f || c[33] !== Z || c[34] !== rG ? (iG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27588
27682
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27589
27683
|
delayDuration: 0,
|
|
27590
27684
|
open: f,
|
|
27591
27685
|
children: [
|
|
27592
27686
|
Z,
|
|
27593
|
-
|
|
27687
|
+
rG
|
|
27594
27688
|
]
|
|
27595
27689
|
})
|
|
27596
|
-
}), c[32] = f, c[33] = Z, c[34] =
|
|
27597
|
-
let
|
|
27598
|
-
c[36] !== p.setFalse || c[37] !== p.setTrue ? (
|
|
27690
|
+
}), c[32] = f, c[33] = Z, c[34] = rG, c[35] = iG) : iG = c[35];
|
|
27691
|
+
let aG;
|
|
27692
|
+
c[36] !== p.setFalse || c[37] !== p.setTrue ? (aG = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27599
27693
|
asChild: true,
|
|
27600
27694
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27601
27695
|
"data-testid": "thumb",
|
|
@@ -27605,39 +27699,39 @@ ${c}
|
|
|
27605
27699
|
onMouseEnter: p.setTrue,
|
|
27606
27700
|
onMouseLeave: p.setFalse
|
|
27607
27701
|
})
|
|
27608
|
-
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] =
|
|
27609
|
-
let
|
|
27610
|
-
c[39] !== m || c[40] !== u.value || c[41] !== d ? (
|
|
27702
|
+
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] = aG) : aG = c[38];
|
|
27703
|
+
let oG;
|
|
27704
|
+
c[39] !== m || c[40] !== u.value || c[41] !== d ? (oG = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27611
27705
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
27612
27706
|
locale: m
|
|
27613
27707
|
})
|
|
27614
|
-
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] =
|
|
27615
|
-
let
|
|
27616
|
-
c[43] ===
|
|
27617
|
-
children:
|
|
27618
|
-
}), c[43] =
|
|
27619
|
-
let
|
|
27620
|
-
c[45] !== f || c[46] !==
|
|
27708
|
+
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] = oG) : oG = c[42];
|
|
27709
|
+
let sG;
|
|
27710
|
+
c[43] === oG ? sG = c[44] : (sG = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27711
|
+
children: oG
|
|
27712
|
+
}), c[43] = oG, c[44] = sG);
|
|
27713
|
+
let cG;
|
|
27714
|
+
c[45] !== f || c[46] !== aG || c[47] !== sG ? (cG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27621
27715
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27622
27716
|
delayDuration: 0,
|
|
27623
27717
|
open: f,
|
|
27624
27718
|
children: [
|
|
27625
|
-
|
|
27626
|
-
|
|
27719
|
+
aG,
|
|
27720
|
+
sG
|
|
27627
27721
|
]
|
|
27628
27722
|
})
|
|
27629
|
-
}), c[45] = f, c[46] =
|
|
27630
|
-
let
|
|
27631
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
27723
|
+
}), c[45] = f, c[46] = aG, c[47] = sG, c[48] = cG) : cG = c[48];
|
|
27724
|
+
let lG;
|
|
27725
|
+
return c[49] !== M || c[50] !== u || c[51] !== tG || c[52] !== iG || c[53] !== cG || c[54] !== W ? (lG = (0, import_jsx_runtime.jsxs)(Root, {
|
|
27632
27726
|
ref: M,
|
|
27633
27727
|
className: W,
|
|
27634
27728
|
...u,
|
|
27635
27729
|
children: [
|
|
27636
|
-
|
|
27637
|
-
|
|
27638
|
-
|
|
27730
|
+
tG,
|
|
27731
|
+
iG,
|
|
27732
|
+
cG
|
|
27639
27733
|
]
|
|
27640
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
27734
|
+
}), c[49] = M, c[50] = u, c[51] = tG, c[52] = iG, c[53] = cG, c[54] = W, c[55] = lG) : lG = c[55], lG;
|
|
27641
27735
|
});
|
|
27642
27736
|
RangeSlider.displayName = Root.displayName;
|
|
27643
27737
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -27688,14 +27782,14 @@ ${c}
|
|
|
27688
27782
|
}, q = (e2) => {
|
|
27689
27783
|
m && l(e2);
|
|
27690
27784
|
}, r[10] = m, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27691
|
-
let
|
|
27692
|
-
r[14] !== m || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
27785
|
+
let tG, Z;
|
|
27786
|
+
r[14] !== m || r[15] !== T || r[16] !== l || r[17] !== u ? (tG = () => {
|
|
27693
27787
|
m && !dequal(T, u) && l(T);
|
|
27694
27788
|
}, Z = () => {
|
|
27695
27789
|
m && !dequal(T, u) && l(T);
|
|
27696
|
-
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
27697
|
-
let
|
|
27698
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !==
|
|
27790
|
+
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = tG, r[19] = Z) : (tG = r[18], Z = r[19]);
|
|
27791
|
+
let nG;
|
|
27792
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== tG || r[31] !== Z || r[32] !== b ? (nG = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
27699
27793
|
id: S,
|
|
27700
27794
|
className: W,
|
|
27701
27795
|
value: T,
|
|
@@ -27706,36 +27800,36 @@ ${c}
|
|
|
27706
27800
|
disabled: y,
|
|
27707
27801
|
onValueChange: G,
|
|
27708
27802
|
onValueCommit: q,
|
|
27709
|
-
onPointerUp:
|
|
27803
|
+
onPointerUp: tG,
|
|
27710
27804
|
onMouseUp: Z,
|
|
27711
27805
|
valueMap: b
|
|
27712
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
27713
|
-
let
|
|
27714
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
27806
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = tG, r[31] = Z, r[32] = b, r[33] = nG) : nG = r[33];
|
|
27807
|
+
let rG;
|
|
27808
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (rG = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
27715
27809
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
27716
27810
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
27717
27811
|
locale: w
|
|
27718
27812
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
27719
27813
|
locale: w
|
|
27720
27814
|
})}`
|
|
27721
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
27722
|
-
let
|
|
27723
|
-
r[39] !==
|
|
27815
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = rG) : rG = r[38];
|
|
27816
|
+
let iG;
|
|
27817
|
+
r[39] !== nG || r[40] !== rG || r[41] !== B ? (iG = (0, import_jsx_runtime.jsxs)("div", {
|
|
27724
27818
|
className: B,
|
|
27725
27819
|
children: [
|
|
27726
|
-
|
|
27727
|
-
|
|
27820
|
+
nG,
|
|
27821
|
+
rG
|
|
27728
27822
|
]
|
|
27729
|
-
}), r[39] =
|
|
27730
|
-
let
|
|
27731
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
27823
|
+
}), r[39] = nG, r[40] = rG, r[41] = B, r[42] = iG) : iG = r[42];
|
|
27824
|
+
let aG;
|
|
27825
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== iG || r[47] !== M || r[48] !== L ? (aG = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
27732
27826
|
label: c,
|
|
27733
27827
|
id: S,
|
|
27734
27828
|
align: M,
|
|
27735
27829
|
className: L,
|
|
27736
27830
|
fullWidth: v,
|
|
27737
|
-
children:
|
|
27738
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
27831
|
+
children: iG
|
|
27832
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = iG, r[47] = M, r[48] = L, r[49] = aG) : aG = r[49], aG;
|
|
27739
27833
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
27740
27834
|
r.exports = u;
|
|
27741
27835
|
var c = {
|
|
@@ -28441,7 +28535,7 @@ ${c}
|
|
|
28441
28535
|
return true;
|
|
28442
28536
|
}
|
|
28443
28537
|
}
|
|
28444
|
-
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-
|
|
28538
|
+
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-xrHju6oo.js")), VegaPlugin = class {
|
|
28445
28539
|
constructor() {
|
|
28446
28540
|
__publicField(this, "tagName", "marimo-vega");
|
|
28447
28541
|
__publicField(this, "validator", object({
|
|
@@ -28580,7 +28674,7 @@ ${c}
|
|
|
28580
28674
|
children: e.children
|
|
28581
28675
|
});
|
|
28582
28676
|
}
|
|
28583
|
-
}, LazySlidesComponent$1 = import_react.lazy(() => import("./swiper-component-
|
|
28677
|
+
}, LazySlidesComponent$1 = import_react.lazy(() => import("./swiper-component-UYicacis.js"));
|
|
28584
28678
|
const DownloadPlugin = createPlugin("marimo-download").withData(object({
|
|
28585
28679
|
data: string(),
|
|
28586
28680
|
disabled: boolean().default(false),
|
|
@@ -31025,7 +31119,7 @@ ${c}
|
|
|
31025
31119
|
areRegExpsEqual: H,
|
|
31026
31120
|
areSetsEqual: W,
|
|
31027
31121
|
createIsNestedEqual: r2
|
|
31028
|
-
}),
|
|
31122
|
+
}), tG = Object.freeze({
|
|
31029
31123
|
areArraysEqual: O,
|
|
31030
31124
|
areDatesEqual: j,
|
|
31031
31125
|
areMapsEqual: I,
|
|
@@ -31034,39 +31128,39 @@ ${c}
|
|
|
31034
31128
|
areSetsEqual: G,
|
|
31035
31129
|
createIsNestedEqual: r2
|
|
31036
31130
|
}), Z = T(q);
|
|
31037
|
-
function
|
|
31131
|
+
function nG(e3, r3) {
|
|
31038
31132
|
return Z(e3, r3, void 0);
|
|
31039
31133
|
}
|
|
31040
|
-
var
|
|
31134
|
+
var rG = T(l(q, {
|
|
31041
31135
|
createIsNestedEqual: function() {
|
|
31042
31136
|
return f;
|
|
31043
31137
|
}
|
|
31044
31138
|
}));
|
|
31045
|
-
function
|
|
31046
|
-
return
|
|
31139
|
+
function iG(e3, r3) {
|
|
31140
|
+
return rG(e3, r3, void 0);
|
|
31047
31141
|
}
|
|
31048
|
-
var
|
|
31049
|
-
function
|
|
31050
|
-
return
|
|
31142
|
+
var aG = T(tG);
|
|
31143
|
+
function oG(e3, r3) {
|
|
31144
|
+
return aG(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
31051
31145
|
}
|
|
31052
|
-
var
|
|
31146
|
+
var sG = T(l(tG, {
|
|
31053
31147
|
createIsNestedEqual: function() {
|
|
31054
31148
|
return f;
|
|
31055
31149
|
}
|
|
31056
31150
|
}));
|
|
31057
|
-
function
|
|
31058
|
-
return
|
|
31151
|
+
function cG(e3, r3) {
|
|
31152
|
+
return sG(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
31059
31153
|
}
|
|
31060
|
-
function
|
|
31154
|
+
function lG(e3) {
|
|
31061
31155
|
return T(l(q, e3(q)));
|
|
31062
31156
|
}
|
|
31063
|
-
function
|
|
31064
|
-
var r3 = T(l(
|
|
31157
|
+
function uG(e3) {
|
|
31158
|
+
var r3 = T(l(tG, e3(tG)));
|
|
31065
31159
|
return (function(e4, c2, l2) {
|
|
31066
31160
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
31067
31161
|
});
|
|
31068
31162
|
}
|
|
31069
|
-
e2.circularDeepEqual =
|
|
31163
|
+
e2.circularDeepEqual = oG, e2.circularShallowEqual = cG, e2.createCustomCircularEqual = uG, e2.createCustomEqual = lG, e2.deepEqual = nG, e2.sameValueZeroEqual = f, e2.shallowEqual = iG, Object.defineProperty(e2, "__esModule", {
|
|
31070
31164
|
value: true
|
|
31071
31165
|
});
|
|
31072
31166
|
}));
|
|
@@ -31092,7 +31186,7 @@ ${c}
|
|
|
31092
31186
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
31093
31187
|
Object.defineProperty(e, "__esModule", {
|
|
31094
31188
|
value: true
|
|
31095
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
31189
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = gG, 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 = cG, e.setTopLeft = uG, e.setTransform = lG, e.sortLayoutItems = dG, e.sortLayoutItemsByColRow = pG, e.sortLayoutItemsByRowCol = fG, e.synchronizeLayoutWithChildren = mG, e.validateLayout = hG, e.withLayoutItem = v;
|
|
31096
31190
|
var r = require_fast_equals(), c = l(require_react());
|
|
31097
31191
|
function l(e2) {
|
|
31098
31192
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -31197,7 +31291,7 @@ ${c}
|
|
|
31197
31291
|
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);
|
|
31198
31292
|
}
|
|
31199
31293
|
function T(e2, r2, c2, l2) {
|
|
31200
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
31294
|
+
let u2 = B(e2), d2 = h(u2), f2 = dG(e2, r2), p2 = Array(e2.length);
|
|
31201
31295
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
31202
31296
|
let h3 = y(f2[m2]);
|
|
31203
31297
|
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;
|
|
@@ -31255,7 +31349,7 @@ ${c}
|
|
|
31255
31349
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
31256
31350
|
let h2 = r2.x, _2 = r2.y;
|
|
31257
31351
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
31258
|
-
let v2 =
|
|
31352
|
+
let v2 = dG(e2, f2);
|
|
31259
31353
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
31260
31354
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
31261
31355
|
if (b2 && m2) return g(e2);
|
|
@@ -31289,15 +31383,15 @@ ${c}
|
|
|
31289
31383
|
function G(e2) {
|
|
31290
31384
|
return e2 * 100 + "%";
|
|
31291
31385
|
}
|
|
31292
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
31386
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, tG = (e2, r2, c2) => e2 < 0 ? r2 : c2, Z = (e2) => Math.max(0, e2), nG = (e2) => Math.max(0, e2), rG = (e2, r2, c2) => {
|
|
31293
31387
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
31294
31388
|
return {
|
|
31295
31389
|
left: l2,
|
|
31296
31390
|
width: d2,
|
|
31297
|
-
height:
|
|
31298
|
-
top:
|
|
31391
|
+
height: tG(f2, e2.height, u2),
|
|
31392
|
+
top: nG(f2)
|
|
31299
31393
|
};
|
|
31300
|
-
},
|
|
31394
|
+
}, iG = (e2, r2, c2) => {
|
|
31301
31395
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31302
31396
|
return {
|
|
31303
31397
|
top: l2,
|
|
@@ -31305,45 +31399,45 @@ ${c}
|
|
|
31305
31399
|
width: q(e2.left, e2.width, f2, c2),
|
|
31306
31400
|
left: Z(u2)
|
|
31307
31401
|
};
|
|
31308
|
-
},
|
|
31402
|
+
}, aG = (e2, r2, c2) => {
|
|
31309
31403
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
31310
31404
|
return {
|
|
31311
31405
|
height: u2,
|
|
31312
31406
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
31313
|
-
top:
|
|
31407
|
+
top: nG(l2),
|
|
31314
31408
|
left: Z(f2)
|
|
31315
31409
|
};
|
|
31316
|
-
},
|
|
31410
|
+
}, oG = (e2, r2, c2) => {
|
|
31317
31411
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31318
31412
|
return {
|
|
31319
31413
|
width: f2,
|
|
31320
31414
|
left: u2,
|
|
31321
|
-
height:
|
|
31322
|
-
top:
|
|
31415
|
+
height: tG(l2, e2.height, d2),
|
|
31416
|
+
top: nG(l2)
|
|
31323
31417
|
};
|
|
31324
|
-
},
|
|
31325
|
-
n:
|
|
31418
|
+
}, sG = {
|
|
31419
|
+
n: rG,
|
|
31326
31420
|
ne: function() {
|
|
31327
|
-
return
|
|
31421
|
+
return rG(arguments.length <= 0 ? void 0 : arguments[0], iG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31328
31422
|
},
|
|
31329
|
-
e:
|
|
31423
|
+
e: iG,
|
|
31330
31424
|
se: function() {
|
|
31331
|
-
return
|
|
31425
|
+
return oG(arguments.length <= 0 ? void 0 : arguments[0], iG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31332
31426
|
},
|
|
31333
|
-
s:
|
|
31427
|
+
s: oG,
|
|
31334
31428
|
sw: function() {
|
|
31335
|
-
return
|
|
31429
|
+
return oG(arguments.length <= 0 ? void 0 : arguments[0], aG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31336
31430
|
},
|
|
31337
|
-
w:
|
|
31431
|
+
w: aG,
|
|
31338
31432
|
nw: function() {
|
|
31339
|
-
return
|
|
31433
|
+
return rG(arguments.length <= 0 ? void 0 : arguments[0], aG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31340
31434
|
}
|
|
31341
31435
|
};
|
|
31342
|
-
function
|
|
31343
|
-
let u2 =
|
|
31436
|
+
function cG(e2, r2, c2, l2) {
|
|
31437
|
+
let u2 = sG[e2];
|
|
31344
31438
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
31345
31439
|
}
|
|
31346
|
-
function
|
|
31440
|
+
function lG(e2) {
|
|
31347
31441
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
31348
31442
|
return {
|
|
31349
31443
|
transform: d2,
|
|
@@ -31356,7 +31450,7 @@ ${c}
|
|
|
31356
31450
|
position: "absolute"
|
|
31357
31451
|
};
|
|
31358
31452
|
}
|
|
31359
|
-
function
|
|
31453
|
+
function uG(e2) {
|
|
31360
31454
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
31361
31455
|
return {
|
|
31362
31456
|
top: `${r2}px`,
|
|
@@ -31366,20 +31460,20 @@ ${c}
|
|
|
31366
31460
|
position: "absolute"
|
|
31367
31461
|
};
|
|
31368
31462
|
}
|
|
31369
|
-
function
|
|
31370
|
-
return r2 === "horizontal" ?
|
|
31463
|
+
function dG(e2, r2) {
|
|
31464
|
+
return r2 === "horizontal" ? pG(e2) : r2 === "vertical" ? fG(e2) : e2;
|
|
31371
31465
|
}
|
|
31372
|
-
function
|
|
31466
|
+
function fG(e2) {
|
|
31373
31467
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31374
31468
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
31375
31469
|
});
|
|
31376
31470
|
}
|
|
31377
|
-
function
|
|
31471
|
+
function pG(e2) {
|
|
31378
31472
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31379
31473
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
31380
31474
|
});
|
|
31381
31475
|
}
|
|
31382
|
-
function
|
|
31476
|
+
function mG(e2, r2, l2, u2, f2) {
|
|
31383
31477
|
e2 || (e2 = []);
|
|
31384
31478
|
let p2 = [];
|
|
31385
31479
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -31400,7 +31494,7 @@ ${c}
|
|
|
31400
31494
|
});
|
|
31401
31495
|
return f2 ? m2 : T(m2, u2, l2);
|
|
31402
31496
|
}
|
|
31403
|
-
function
|
|
31497
|
+
function hG(e2) {
|
|
31404
31498
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
31405
31499
|
"x",
|
|
31406
31500
|
"y",
|
|
@@ -31417,7 +31511,7 @@ ${c}
|
|
|
31417
31511
|
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})`);
|
|
31418
31512
|
}
|
|
31419
31513
|
}
|
|
31420
|
-
function
|
|
31514
|
+
function gG(e2) {
|
|
31421
31515
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
31422
31516
|
return r2 === false ? null : c2;
|
|
31423
31517
|
}
|
|
@@ -34222,7 +34316,7 @@ ${c}
|
|
|
34222
34316
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
34223
34317
|
let E = useIsDragging(), O, j;
|
|
34224
34318
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
34225
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
34319
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, tG, Z, nG, rG, iG, aG, oG, sG, cG, lG, uG, dG, fG, pG, mG, hG, gG;
|
|
34226
34320
|
if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== m || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
|
|
34227
34321
|
let e2 = Maps.keyBy(c.cells, _temp2$3), p2;
|
|
34228
34322
|
r[47] !== c || r[48] !== l ? (p2 = (e3) => (r2) => {
|
|
@@ -34241,23 +34335,23 @@ ${c}
|
|
|
34241
34335
|
});
|
|
34242
34336
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
34243
34337
|
let y2 = v2;
|
|
34244
|
-
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,
|
|
34338
|
+
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, pG = "lg", r[58] === c.cells ? mG = r[59] : (mG = {
|
|
34245
34339
|
lg: c.cells
|
|
34246
|
-
}, r[58] = c.cells, r[59] =
|
|
34340
|
+
}, r[58] = c.cells, r[59] = mG), hG = L, gG = S, R = false;
|
|
34247
34341
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
34248
34342
|
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 ? [
|
|
34249
34343
|
20,
|
|
34250
34344
|
20
|
|
34251
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
34345
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, tG = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (Z = (e3) => {
|
|
34252
34346
|
f || l({
|
|
34253
34347
|
...c,
|
|
34254
34348
|
cells: e3
|
|
34255
34349
|
});
|
|
34256
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ?
|
|
34350
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ? nG = r[71] : (nG = g ? {
|
|
34257
34351
|
i: g.i,
|
|
34258
34352
|
w: g.w || 2,
|
|
34259
34353
|
h: g.h || 2
|
|
34260
|
-
} : void 0, r[70] = g, r[71] =
|
|
34354
|
+
} : void 0, r[70] = g, r[71] = nG), r[72] !== O || r[73] !== c || r[74] !== l ? (rG = (e3, r2, u2) => {
|
|
34261
34355
|
O.onDragStop(), r2 && l({
|
|
34262
34356
|
...c,
|
|
34263
34357
|
cells: [
|
|
@@ -34265,15 +34359,15 @@ ${c}
|
|
|
34265
34359
|
r2
|
|
34266
34360
|
]
|
|
34267
34361
|
});
|
|
34268
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
34362
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = rG) : rG = r[75], r[76] === O ? (iG = r[77], aG = r[78], oG = r[79]) : (iG = (e3, r2, c2, l2, u2) => {
|
|
34269
34363
|
O.onDragStart(u2);
|
|
34270
|
-
},
|
|
34364
|
+
}, aG = (e3, r2, c2, l2, u2) => {
|
|
34271
34365
|
O.onDragMove(u2);
|
|
34272
|
-
},
|
|
34366
|
+
}, oG = () => {
|
|
34273
34367
|
O.onDragStop();
|
|
34274
|
-
}, r[76] = O, r[77] =
|
|
34368
|
+
}, r[76] = O, r[77] = iG, r[78] = aG, r[79] = oG), sG = _temp3$2, cG = M, lG = M, uG = M, dG = M ? `.${DRAG_HANDLE}` : "noop";
|
|
34275
34369
|
let E2;
|
|
34276
|
-
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2),
|
|
34370
|
+
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2), fG = u.filter(E2).map((r2) => {
|
|
34277
34371
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p3 = c.cellSide.get(r2.id), m2 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
34278
34372
|
code: r2.code,
|
|
34279
34373
|
mode: d,
|
|
@@ -34303,14 +34397,14 @@ ${c}
|
|
|
34303
34397
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
34304
34398
|
children: m2
|
|
34305
34399
|
}, r2.id);
|
|
34306
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, 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] =
|
|
34307
|
-
} 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],
|
|
34308
|
-
let
|
|
34309
|
-
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] !==
|
|
34310
|
-
breakpoint:
|
|
34311
|
-
layouts:
|
|
34312
|
-
style:
|
|
34313
|
-
cols:
|
|
34400
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, 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] = tG, r[31] = Z, r[32] = nG, r[33] = rG, r[34] = iG, r[35] = aG, r[36] = oG, r[37] = sG, r[38] = cG, r[39] = lG, r[40] = uG, r[41] = dG, r[42] = fG, r[43] = pG, r[44] = mG, r[45] = hG, r[46] = gG;
|
|
34401
|
+
} 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], tG = r[30], Z = r[31], nG = r[32], rG = r[33], iG = r[34], aG = r[35], oG = r[36], sG = r[37], cG = r[38], lG = r[39], uG = r[40], dG = r[41], fG = r[42], pG = r[43], mG = r[44], hG = r[45], gG = r[46];
|
|
34402
|
+
let _G;
|
|
34403
|
+
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] !== tG || r[91] !== Z || r[92] !== nG || r[93] !== rG || r[94] !== iG || r[95] !== aG || r[96] !== oG || r[97] !== sG || r[98] !== cG || r[99] !== lG || r[100] !== uG || r[101] !== dG || r[102] !== fG || r[103] !== pG || r[104] !== mG || r[105] !== hG || r[106] !== gG ? (_G = (0, import_jsx_runtime.jsx)(I, {
|
|
34404
|
+
breakpoint: pG,
|
|
34405
|
+
layouts: mG,
|
|
34406
|
+
style: hG,
|
|
34407
|
+
cols: gG,
|
|
34314
34408
|
allowOverlap: R,
|
|
34315
34409
|
className: z,
|
|
34316
34410
|
containerPadding: B,
|
|
@@ -34318,23 +34412,23 @@ ${c}
|
|
|
34318
34412
|
isBounded: W,
|
|
34319
34413
|
compactType: G,
|
|
34320
34414
|
preventCollision: q,
|
|
34321
|
-
rowHeight:
|
|
34415
|
+
rowHeight: tG,
|
|
34322
34416
|
onLayoutChange: Z,
|
|
34323
|
-
droppingItem:
|
|
34324
|
-
onDrop:
|
|
34325
|
-
onDragStart:
|
|
34326
|
-
onDrag:
|
|
34327
|
-
onDragStop:
|
|
34328
|
-
onResizeStop:
|
|
34329
|
-
isDraggable:
|
|
34330
|
-
isDroppable:
|
|
34331
|
-
isResizable:
|
|
34332
|
-
draggableHandle:
|
|
34333
|
-
children:
|
|
34334
|
-
}), 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] =
|
|
34335
|
-
let
|
|
34336
|
-
if (r[108] !== u || r[109] !==
|
|
34337
|
-
|
|
34417
|
+
droppingItem: nG,
|
|
34418
|
+
onDrop: rG,
|
|
34419
|
+
onDragStart: iG,
|
|
34420
|
+
onDrag: aG,
|
|
34421
|
+
onDragStop: oG,
|
|
34422
|
+
onResizeStop: sG,
|
|
34423
|
+
isDraggable: cG,
|
|
34424
|
+
isDroppable: lG,
|
|
34425
|
+
isResizable: uG,
|
|
34426
|
+
draggableHandle: dG,
|
|
34427
|
+
children: fG
|
|
34428
|
+
}), 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] = tG, r[91] = Z, r[92] = nG, r[93] = rG, r[94] = iG, r[95] = aG, r[96] = oG, r[97] = sG, r[98] = cG, r[99] = lG, r[100] = uG, r[101] = dG, r[102] = fG, r[103] = pG, r[104] = mG, r[105] = hG, r[106] = gG, r[107] = _G) : _G = r[107];
|
|
34429
|
+
let vG = _G, yG, bG, xG, SG, CG, wG, TG;
|
|
34430
|
+
if (r[108] !== u || r[109] !== vG || r[110] !== m || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
34431
|
+
TG = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
34338
34432
|
bb0: {
|
|
34339
34433
|
let e2;
|
|
34340
34434
|
r[125] === m ? e2 = r[126] : (e2 = (e3) => !m.has(e3.id), r[125] = m, r[126] = e2);
|
|
@@ -34342,14 +34436,14 @@ ${c}
|
|
|
34342
34436
|
if (f) {
|
|
34343
34437
|
if (c.bordered) {
|
|
34344
34438
|
let e4;
|
|
34345
|
-
r[127] !==
|
|
34439
|
+
r[127] !== vG || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
34346
34440
|
className: "flex flex-1 flex-col items-center",
|
|
34347
34441
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
34348
34442
|
style: L,
|
|
34349
34443
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
34350
|
-
children:
|
|
34444
|
+
children: vG
|
|
34351
34445
|
})
|
|
34352
|
-
}), r[127] =
|
|
34446
|
+
}), r[127] = vG, r[128] = L, r[129] = e4) : e4 = r[129], vG = e4;
|
|
34353
34447
|
}
|
|
34354
34448
|
let e3 = p2.filter(_temp4$2), l2;
|
|
34355
34449
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -34361,9 +34455,9 @@ ${c}
|
|
|
34361
34455
|
stale: outputIsStale(e4, false),
|
|
34362
34456
|
isScrollable: false,
|
|
34363
34457
|
hidden: false
|
|
34364
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
34458
|
+
}, e4.id), r[130] = d, r[131] = l2), TG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34365
34459
|
children: [
|
|
34366
|
-
|
|
34460
|
+
vG,
|
|
34367
34461
|
(0, import_jsx_runtime.jsx)("div", {
|
|
34368
34462
|
className: "hidden",
|
|
34369
34463
|
children: e3.map(l2)
|
|
@@ -34374,31 +34468,31 @@ ${c}
|
|
|
34374
34468
|
}
|
|
34375
34469
|
if (c.bordered) {
|
|
34376
34470
|
let e3;
|
|
34377
|
-
r[132] ===
|
|
34471
|
+
r[132] === vG ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
34378
34472
|
className: "h-full overflow-auto",
|
|
34379
|
-
children:
|
|
34380
|
-
}), r[132] =
|
|
34473
|
+
children: vG
|
|
34474
|
+
}), r[132] = vG, r[133] = e3);
|
|
34381
34475
|
let c2;
|
|
34382
34476
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
34383
34477
|
style: L,
|
|
34384
34478
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
34385
34479
|
children: e3
|
|
34386
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
34480
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], vG = c2;
|
|
34387
34481
|
}
|
|
34388
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
34482
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (wG = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
34389
34483
|
layout: c,
|
|
34390
34484
|
setLayout: l,
|
|
34391
34485
|
isLocked: v,
|
|
34392
34486
|
setIsLocked: y
|
|
34393
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
34487
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = wG) : wG = r[140];
|
|
34394
34488
|
let g2;
|
|
34395
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34489
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (SG = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = SG, r[142] = g2) : (SG = r[141], g2 = r[142]), r[143] === vG ? CG = r[144] : (CG = (0, import_jsx_runtime.jsx)("div", {
|
|
34396
34490
|
className: g2,
|
|
34397
|
-
children:
|
|
34398
|
-
}), r[143] =
|
|
34491
|
+
children: vG
|
|
34492
|
+
}), r[143] = vG, r[144] = CG), yG = "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") ? (bG = (0, import_jsx_runtime.jsx)("div", {
|
|
34399
34493
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
34400
34494
|
children: "Outputs"
|
|
34401
|
-
}), r[145] =
|
|
34495
|
+
}), r[145] = bG) : bG = r[145];
|
|
34402
34496
|
let b2;
|
|
34403
34497
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
34404
34498
|
draggable: true,
|
|
@@ -34424,34 +34518,34 @@ ${c}
|
|
|
34424
34518
|
stale: outputIsStale(e3, false),
|
|
34425
34519
|
hidden: false
|
|
34426
34520
|
})
|
|
34427
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
34428
|
-
}
|
|
34429
|
-
r[108] = u, r[109] =
|
|
34430
|
-
} else
|
|
34431
|
-
if (
|
|
34432
|
-
let
|
|
34433
|
-
r[150] !==
|
|
34434
|
-
className:
|
|
34521
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], xG = p2.map(b2);
|
|
34522
|
+
}
|
|
34523
|
+
r[108] = u, r[109] = vG, r[110] = m, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = yG, r[118] = bG, r[119] = xG, r[120] = SG, r[121] = CG, r[122] = wG, r[123] = TG, r[124] = vG;
|
|
34524
|
+
} else yG = r[117], bG = r[118], xG = r[119], SG = r[120], CG = r[121], wG = r[122], TG = r[123], vG = r[124];
|
|
34525
|
+
if (TG !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return TG;
|
|
34526
|
+
let EG;
|
|
34527
|
+
r[150] !== yG || r[151] !== bG || r[152] !== xG ? (EG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34528
|
+
className: yG,
|
|
34435
34529
|
children: [
|
|
34436
|
-
|
|
34437
|
-
|
|
34530
|
+
bG,
|
|
34531
|
+
xG
|
|
34438
34532
|
]
|
|
34439
|
-
}), r[150] =
|
|
34440
|
-
let
|
|
34441
|
-
r[154] !==
|
|
34442
|
-
className:
|
|
34533
|
+
}), r[150] = yG, r[151] = bG, r[152] = xG, r[153] = EG) : EG = r[153];
|
|
34534
|
+
let DG;
|
|
34535
|
+
r[154] !== SG || r[155] !== CG || r[156] !== EG ? (DG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34536
|
+
className: SG,
|
|
34443
34537
|
children: [
|
|
34444
|
-
|
|
34445
|
-
|
|
34538
|
+
CG,
|
|
34539
|
+
EG
|
|
34446
34540
|
]
|
|
34447
|
-
}), r[154] =
|
|
34448
|
-
let
|
|
34449
|
-
return r[158] !==
|
|
34541
|
+
}), r[154] = SG, r[155] = CG, r[156] = EG, r[157] = DG) : DG = r[157];
|
|
34542
|
+
let OG;
|
|
34543
|
+
return r[158] !== wG || r[159] !== DG ? (OG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34450
34544
|
children: [
|
|
34451
|
-
|
|
34452
|
-
|
|
34545
|
+
wG,
|
|
34546
|
+
DG
|
|
34453
34547
|
]
|
|
34454
|
-
}), r[158] =
|
|
34548
|
+
}), r[158] = wG, r[159] = DG, r[160] = OG) : OG = r[160], OG;
|
|
34455
34549
|
};
|
|
34456
34550
|
var GridCell = (0, import_react.memo)((e) => {
|
|
34457
34551
|
let r = (0, import_compiler_runtime$13.c)(21), { output: c, cellId: l, status: u, mode: d, code: f, hidden: p, isScrollable: m, side: g, className: _, stale: v } = e, y;
|
|
@@ -34756,21 +34850,21 @@ ${c}
|
|
|
34756
34850
|
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
34757
34851
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
34758
34852
|
}), r[35] = q) : q = r[35];
|
|
34759
|
-
let
|
|
34760
|
-
r[36] === l ?
|
|
34853
|
+
let tG;
|
|
34854
|
+
r[36] === l ? tG = r[37] : (tG = (0, import_jsx_runtime.jsx)(X, {
|
|
34761
34855
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34762
34856
|
onClick: () => l()
|
|
34763
|
-
}), r[36] = l, r[37] =
|
|
34857
|
+
}), r[36] = l, r[37] = tG);
|
|
34764
34858
|
let Z;
|
|
34765
|
-
return r[38] !== M || r[39] !== G || r[40] !==
|
|
34859
|
+
return r[38] !== M || r[39] !== G || r[40] !== tG || r[41] !== S ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
34766
34860
|
className: S,
|
|
34767
34861
|
children: [
|
|
34768
34862
|
M,
|
|
34769
34863
|
G,
|
|
34770
34864
|
q,
|
|
34771
|
-
|
|
34865
|
+
tG
|
|
34772
34866
|
]
|
|
34773
|
-
}), r[38] = M, r[39] = G, r[40] =
|
|
34867
|
+
}), r[38] = M, r[39] = G, r[40] = tG, r[41] = S, r[42] = Z) : Z = r[42], Z;
|
|
34774
34868
|
};
|
|
34775
34869
|
function isSidebarCell(e) {
|
|
34776
34870
|
var _a5;
|
|
@@ -36774,31 +36868,31 @@ ${c}
|
|
|
36774
36868
|
}, [
|
|
36775
36869
|
T,
|
|
36776
36870
|
M
|
|
36777
|
-
]), 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),
|
|
36871
|
+
]), 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), tG = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
36778
36872
|
j
|
|
36779
|
-
]), Z = useMeasuringConfiguration(p), { droppableRects:
|
|
36873
|
+
]), Z = useMeasuringConfiguration(p), { droppableRects: nG, measureDroppableContainers: rG, measuringScheduled: iG } = useDroppableMeasuring(tG, {
|
|
36780
36874
|
dragging: w,
|
|
36781
36875
|
dependencies: [
|
|
36782
36876
|
O.x,
|
|
36783
36877
|
O.y
|
|
36784
36878
|
],
|
|
36785
36879
|
config: Z.droppable
|
|
36786
|
-
}),
|
|
36880
|
+
}), aG = useCachedNode(E, T), oG = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36787
36881
|
H
|
|
36788
|
-
]),
|
|
36882
|
+
]), sG = RG(), cG = useInitialRect(aG, Z.draggable.measure);
|
|
36789
36883
|
useLayoutShiftScrollCompensation({
|
|
36790
36884
|
activeNode: T == null ? null : E.get(T),
|
|
36791
|
-
config:
|
|
36792
|
-
initialRect:
|
|
36885
|
+
config: sG.layoutShiftCompensation,
|
|
36886
|
+
initialRect: cG,
|
|
36793
36887
|
measure: Z.draggable.measure
|
|
36794
36888
|
});
|
|
36795
|
-
let
|
|
36889
|
+
let lG = useRect(aG, Z.draggable.measure, cG), uG = useRect(aG ? aG.parentElement : null), dG = (0, import_react.useRef)({
|
|
36796
36890
|
activatorEvent: null,
|
|
36797
36891
|
active: null,
|
|
36798
|
-
activeNode:
|
|
36892
|
+
activeNode: aG,
|
|
36799
36893
|
collisionRect: null,
|
|
36800
36894
|
collisions: null,
|
|
36801
|
-
droppableRects:
|
|
36895
|
+
droppableRects: nG,
|
|
36802
36896
|
draggableNodes: E,
|
|
36803
36897
|
draggingNode: null,
|
|
36804
36898
|
draggingNodeRect: null,
|
|
@@ -36806,45 +36900,45 @@ ${c}
|
|
|
36806
36900
|
over: null,
|
|
36807
36901
|
scrollableAncestors: [],
|
|
36808
36902
|
scrollAdjustedTranslate: null
|
|
36809
|
-
}),
|
|
36903
|
+
}), fG = j.getNodeFor((_a5 = dG.current.over) == null ? void 0 : _a5.id), pG = useDragOverlayMeasuring({
|
|
36810
36904
|
measure: Z.dragOverlay.measure
|
|
36811
|
-
}),
|
|
36905
|
+
}), mG = pG.nodeRef.current ?? aG, hG = w ? pG.rect ?? lG : null, gG = !!(pG.nodeRef.current && pG.rect), _G = useRectDelta(gG ? null : lG), vG = useWindowRect(mG ? getWindow(mG) : null), yG = useScrollableAncestors(w ? fG ?? aG : null), bG = useRects(yG), xG = applyModifiers(m, {
|
|
36812
36906
|
transform: {
|
|
36813
|
-
x: O.x -
|
|
36814
|
-
y: O.y -
|
|
36907
|
+
x: O.x - _G.x,
|
|
36908
|
+
y: O.y - _G.y,
|
|
36815
36909
|
scaleX: 1,
|
|
36816
36910
|
scaleY: 1
|
|
36817
36911
|
},
|
|
36818
36912
|
activatorEvent: H,
|
|
36819
36913
|
active: L,
|
|
36820
|
-
activeNodeRect:
|
|
36821
|
-
containerNodeRect:
|
|
36822
|
-
draggingNodeRect:
|
|
36823
|
-
over:
|
|
36824
|
-
overlayNodeRect:
|
|
36825
|
-
scrollableAncestors:
|
|
36826
|
-
scrollableAncestorRects:
|
|
36827
|
-
windowRect:
|
|
36828
|
-
}),
|
|
36829
|
-
|
|
36830
|
-
]),
|
|
36914
|
+
activeNodeRect: lG,
|
|
36915
|
+
containerNodeRect: uG,
|
|
36916
|
+
draggingNodeRect: hG,
|
|
36917
|
+
over: dG.current.over,
|
|
36918
|
+
overlayNodeRect: pG.rect,
|
|
36919
|
+
scrollableAncestors: yG,
|
|
36920
|
+
scrollableAncestorRects: bG,
|
|
36921
|
+
windowRect: vG
|
|
36922
|
+
}), SG = oG ? add(oG, O) : null, CG = useScrollOffsets(yG), wG = useScrollOffsetsDelta(CG), TG = useScrollOffsetsDelta(CG, [
|
|
36923
|
+
lG
|
|
36924
|
+
]), EG = add(xG, wG), DG = hG ? getAdjustedRect(hG, xG) : null, OG = L && DG ? f({
|
|
36831
36925
|
active: L,
|
|
36832
|
-
collisionRect:
|
|
36833
|
-
droppableRects:
|
|
36834
|
-
droppableContainers:
|
|
36835
|
-
pointerCoordinates:
|
|
36836
|
-
}) : null,
|
|
36926
|
+
collisionRect: DG,
|
|
36927
|
+
droppableRects: nG,
|
|
36928
|
+
droppableContainers: tG,
|
|
36929
|
+
pointerCoordinates: SG
|
|
36930
|
+
}) : null, kG = getFirstCollision(OG, "id"), [AG, jG] = (0, import_react.useState)(null), MG = adjustScale(gG ? xG : add(xG, TG), (AG == null ? void 0 : AG.rect) ?? null, lG), NG = (0, import_react.useRef)(null), PG = (0, import_react.useCallback)((e2, r2) => {
|
|
36837
36931
|
let { sensor: c2, options: l2 } = r2;
|
|
36838
36932
|
if (R.current == null) return;
|
|
36839
36933
|
let u2 = E.get(R.current);
|
|
36840
36934
|
if (!u2) return;
|
|
36841
36935
|
let d2 = e2.nativeEvent;
|
|
36842
|
-
|
|
36936
|
+
NG.current = new c2({
|
|
36843
36937
|
active: R.current,
|
|
36844
36938
|
activeNode: u2,
|
|
36845
36939
|
event: d2,
|
|
36846
36940
|
options: l2,
|
|
36847
|
-
context:
|
|
36941
|
+
context: dG,
|
|
36848
36942
|
onAbort(e3) {
|
|
36849
36943
|
if (!E.get(e3)) return;
|
|
36850
36944
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -36889,7 +36983,7 @@ ${c}
|
|
|
36889
36983
|
}), v({
|
|
36890
36984
|
type: "onDragStart",
|
|
36891
36985
|
event: u3
|
|
36892
|
-
}), B(
|
|
36986
|
+
}), B(NG.current), W(d2);
|
|
36893
36987
|
});
|
|
36894
36988
|
},
|
|
36895
36989
|
onMove(e3) {
|
|
@@ -36903,7 +36997,7 @@ ${c}
|
|
|
36903
36997
|
});
|
|
36904
36998
|
function f2(e3) {
|
|
36905
36999
|
return async function() {
|
|
36906
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
37000
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = dG.current, f3 = null;
|
|
36907
37001
|
if (r3 && u3) {
|
|
36908
37002
|
let { cancelDrop: p2 } = G.current;
|
|
36909
37003
|
f3 = {
|
|
@@ -36917,7 +37011,7 @@ ${c}
|
|
|
36917
37011
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36918
37012
|
_({
|
|
36919
37013
|
type: e3
|
|
36920
|
-
}), S(Status.Uninitialized),
|
|
37014
|
+
}), S(Status.Uninitialized), jG(null), B(null), W(null), NG.current = null;
|
|
36921
37015
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
36922
37016
|
if (f3) {
|
|
36923
37017
|
let e4 = G.current[r4];
|
|
@@ -36931,7 +37025,7 @@ ${c}
|
|
|
36931
37025
|
}
|
|
36932
37026
|
}, [
|
|
36933
37027
|
E
|
|
36934
|
-
]),
|
|
37028
|
+
]), FG = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
36935
37029
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
36936
37030
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
36937
37031
|
let f2 = {
|
|
@@ -36939,26 +37033,26 @@ ${c}
|
|
|
36939
37033
|
};
|
|
36940
37034
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
36941
37035
|
capturedBy: r2.sensor
|
|
36942
|
-
}, R.current = l2,
|
|
37036
|
+
}, R.current = l2, PG(c2, r2));
|
|
36943
37037
|
}, [
|
|
36944
37038
|
E,
|
|
36945
|
-
|
|
37039
|
+
PG
|
|
36946
37040
|
]));
|
|
36947
37041
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
36948
|
-
|
|
37042
|
+
lG && b === Status.Initializing && S(Status.Initialized);
|
|
36949
37043
|
}, [
|
|
36950
|
-
|
|
37044
|
+
lG,
|
|
36951
37045
|
b
|
|
36952
37046
|
]), (0, import_react.useEffect)(() => {
|
|
36953
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
37047
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = dG.current;
|
|
36954
37048
|
if (!r2 || !c2) return;
|
|
36955
37049
|
let d2 = {
|
|
36956
37050
|
active: r2,
|
|
36957
37051
|
activatorEvent: c2,
|
|
36958
37052
|
collisions: l2,
|
|
36959
37053
|
delta: {
|
|
36960
|
-
x:
|
|
36961
|
-
y:
|
|
37054
|
+
x: EG.x,
|
|
37055
|
+
y: EG.y
|
|
36962
37056
|
},
|
|
36963
37057
|
over: u2
|
|
36964
37058
|
};
|
|
@@ -36969,12 +37063,12 @@ ${c}
|
|
|
36969
37063
|
});
|
|
36970
37064
|
});
|
|
36971
37065
|
}, [
|
|
36972
|
-
|
|
36973
|
-
|
|
37066
|
+
EG.x,
|
|
37067
|
+
EG.y
|
|
36974
37068
|
]), (0, import_react.useEffect)(() => {
|
|
36975
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
37069
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = dG.current;
|
|
36976
37070
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
36977
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
37071
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(kG), p2 = f2 && f2.rect.current ? {
|
|
36978
37072
|
id: f2.id,
|
|
36979
37073
|
rect: f2.rect.current,
|
|
36980
37074
|
data: f2.data,
|
|
@@ -36990,127 +37084,127 @@ ${c}
|
|
|
36990
37084
|
over: p2
|
|
36991
37085
|
};
|
|
36992
37086
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36993
|
-
|
|
37087
|
+
jG(p2), d2 == null ? void 0 : d2(m2), v({
|
|
36994
37088
|
type: "onDragOver",
|
|
36995
37089
|
event: m2
|
|
36996
37090
|
});
|
|
36997
37091
|
});
|
|
36998
37092
|
}, [
|
|
36999
|
-
|
|
37093
|
+
kG
|
|
37000
37094
|
]), useIsomorphicLayoutEffect(() => {
|
|
37001
|
-
|
|
37095
|
+
dG.current = {
|
|
37002
37096
|
activatorEvent: H,
|
|
37003
37097
|
active: L,
|
|
37004
|
-
activeNode:
|
|
37005
|
-
collisionRect:
|
|
37006
|
-
collisions:
|
|
37007
|
-
droppableRects:
|
|
37098
|
+
activeNode: aG,
|
|
37099
|
+
collisionRect: DG,
|
|
37100
|
+
collisions: OG,
|
|
37101
|
+
droppableRects: nG,
|
|
37008
37102
|
draggableNodes: E,
|
|
37009
|
-
draggingNode:
|
|
37010
|
-
draggingNodeRect:
|
|
37103
|
+
draggingNode: mG,
|
|
37104
|
+
draggingNodeRect: hG,
|
|
37011
37105
|
droppableContainers: j,
|
|
37012
|
-
over:
|
|
37013
|
-
scrollableAncestors:
|
|
37014
|
-
scrollAdjustedTranslate:
|
|
37106
|
+
over: AG,
|
|
37107
|
+
scrollableAncestors: yG,
|
|
37108
|
+
scrollAdjustedTranslate: EG
|
|
37015
37109
|
}, I.current = {
|
|
37016
|
-
initial:
|
|
37017
|
-
translated:
|
|
37110
|
+
initial: hG,
|
|
37111
|
+
translated: DG
|
|
37018
37112
|
};
|
|
37019
37113
|
}, [
|
|
37020
37114
|
L,
|
|
37021
|
-
|
|
37022
|
-
|
|
37023
|
-
|
|
37115
|
+
aG,
|
|
37116
|
+
OG,
|
|
37117
|
+
DG,
|
|
37024
37118
|
E,
|
|
37025
|
-
|
|
37026
|
-
dG,
|
|
37027
|
-
QW,
|
|
37028
|
-
j,
|
|
37029
|
-
EG,
|
|
37119
|
+
mG,
|
|
37030
37120
|
hG,
|
|
37031
|
-
|
|
37121
|
+
nG,
|
|
37122
|
+
j,
|
|
37123
|
+
AG,
|
|
37124
|
+
yG,
|
|
37125
|
+
EG
|
|
37032
37126
|
]), useAutoScroller({
|
|
37033
|
-
...
|
|
37127
|
+
...sG,
|
|
37034
37128
|
delta: O,
|
|
37035
|
-
draggingRect:
|
|
37036
|
-
pointerCoordinates:
|
|
37037
|
-
scrollableAncestors:
|
|
37038
|
-
scrollableAncestorRects:
|
|
37129
|
+
draggingRect: DG,
|
|
37130
|
+
pointerCoordinates: SG,
|
|
37131
|
+
scrollableAncestors: yG,
|
|
37132
|
+
scrollableAncestorRects: bG
|
|
37039
37133
|
});
|
|
37040
|
-
let
|
|
37134
|
+
let IG = (0, import_react.useMemo)(() => ({
|
|
37041
37135
|
active: L,
|
|
37042
|
-
activeNode:
|
|
37043
|
-
activeNodeRect:
|
|
37136
|
+
activeNode: aG,
|
|
37137
|
+
activeNodeRect: lG,
|
|
37044
37138
|
activatorEvent: H,
|
|
37045
|
-
collisions:
|
|
37046
|
-
containerNodeRect:
|
|
37047
|
-
dragOverlay:
|
|
37139
|
+
collisions: OG,
|
|
37140
|
+
containerNodeRect: uG,
|
|
37141
|
+
dragOverlay: pG,
|
|
37048
37142
|
draggableNodes: E,
|
|
37049
37143
|
droppableContainers: j,
|
|
37050
|
-
droppableRects:
|
|
37051
|
-
over:
|
|
37052
|
-
measureDroppableContainers:
|
|
37053
|
-
scrollableAncestors:
|
|
37054
|
-
scrollableAncestorRects:
|
|
37144
|
+
droppableRects: nG,
|
|
37145
|
+
over: AG,
|
|
37146
|
+
measureDroppableContainers: rG,
|
|
37147
|
+
scrollableAncestors: yG,
|
|
37148
|
+
scrollableAncestorRects: bG,
|
|
37055
37149
|
measuringConfiguration: Z,
|
|
37056
|
-
measuringScheduled:
|
|
37057
|
-
windowRect:
|
|
37150
|
+
measuringScheduled: iG,
|
|
37151
|
+
windowRect: vG
|
|
37058
37152
|
}), [
|
|
37059
37153
|
L,
|
|
37060
|
-
tG,
|
|
37061
37154
|
aG,
|
|
37062
|
-
H,
|
|
37063
|
-
wG,
|
|
37064
|
-
oG,
|
|
37065
37155
|
lG,
|
|
37156
|
+
H,
|
|
37157
|
+
OG,
|
|
37158
|
+
uG,
|
|
37159
|
+
pG,
|
|
37066
37160
|
E,
|
|
37067
37161
|
j,
|
|
37068
|
-
|
|
37069
|
-
|
|
37070
|
-
|
|
37071
|
-
|
|
37072
|
-
|
|
37162
|
+
nG,
|
|
37163
|
+
AG,
|
|
37164
|
+
rG,
|
|
37165
|
+
yG,
|
|
37166
|
+
bG,
|
|
37073
37167
|
Z,
|
|
37074
|
-
|
|
37075
|
-
|
|
37076
|
-
]),
|
|
37168
|
+
iG,
|
|
37169
|
+
vG
|
|
37170
|
+
]), LG = (0, import_react.useMemo)(() => ({
|
|
37077
37171
|
activatorEvent: H,
|
|
37078
|
-
activators:
|
|
37172
|
+
activators: FG,
|
|
37079
37173
|
active: L,
|
|
37080
|
-
activeNodeRect:
|
|
37174
|
+
activeNodeRect: lG,
|
|
37081
37175
|
ariaDescribedById: {
|
|
37082
37176
|
draggable: q
|
|
37083
37177
|
},
|
|
37084
37178
|
dispatch: _,
|
|
37085
37179
|
draggableNodes: E,
|
|
37086
|
-
over:
|
|
37087
|
-
measureDroppableContainers:
|
|
37180
|
+
over: AG,
|
|
37181
|
+
measureDroppableContainers: rG
|
|
37088
37182
|
}), [
|
|
37089
37183
|
H,
|
|
37090
|
-
|
|
37184
|
+
FG,
|
|
37091
37185
|
L,
|
|
37092
|
-
|
|
37186
|
+
lG,
|
|
37093
37187
|
_,
|
|
37094
37188
|
q,
|
|
37095
37189
|
E,
|
|
37096
|
-
|
|
37097
|
-
|
|
37190
|
+
AG,
|
|
37191
|
+
rG
|
|
37098
37192
|
]);
|
|
37099
37193
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
37100
37194
|
value: y
|
|
37101
37195
|
}, import_react.createElement(InternalContext.Provider, {
|
|
37102
|
-
value:
|
|
37196
|
+
value: LG
|
|
37103
37197
|
}, import_react.createElement(PublicContext.Provider, {
|
|
37104
|
-
value:
|
|
37198
|
+
value: IG
|
|
37105
37199
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
37106
|
-
value:
|
|
37200
|
+
value: MG
|
|
37107
37201
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
37108
37202
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
37109
37203
|
})), import_react.createElement(Accessibility, {
|
|
37110
37204
|
...c,
|
|
37111
37205
|
hiddenTextDescribedById: q
|
|
37112
37206
|
}));
|
|
37113
|
-
function
|
|
37207
|
+
function RG() {
|
|
37114
37208
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
37115
37209
|
return typeof l == "object" ? {
|
|
37116
37210
|
...l,
|
|
@@ -37638,7 +37732,7 @@ ${c}
|
|
|
37638
37732
|
updateMeasurementsFor: I,
|
|
37639
37733
|
...m
|
|
37640
37734
|
}
|
|
37641
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
37735
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: tG, listeners: Z, isDragging: nG, over: rG, setActivatorNodeRef: iG, transform: aG } = useDraggable({
|
|
37642
37736
|
id: f,
|
|
37643
37737
|
data: M,
|
|
37644
37738
|
attributes: {
|
|
@@ -37646,60 +37740,60 @@ ${c}
|
|
|
37646
37740
|
...c
|
|
37647
37741
|
},
|
|
37648
37742
|
disabled: O.draggable
|
|
37649
|
-
}),
|
|
37743
|
+
}), oG = useCombinedRefs(B, tG), sG = !!H, cG = sG && !b && isValidIndex(v) && isValidIndex(w), lG = !T && nG, uG = cG ? (lG && cG ? aG : null) ?? (p ?? E)({
|
|
37650
37744
|
rects: S,
|
|
37651
37745
|
activeNodeRect: G,
|
|
37652
37746
|
activeIndex: v,
|
|
37653
37747
|
overIndex: w,
|
|
37654
37748
|
index: j
|
|
37655
|
-
}) : null,
|
|
37749
|
+
}) : null, dG = isValidIndex(v) && isValidIndex(w) ? d({
|
|
37656
37750
|
id: f,
|
|
37657
37751
|
items: g,
|
|
37658
37752
|
activeIndex: v,
|
|
37659
37753
|
overIndex: w
|
|
37660
|
-
}) : j,
|
|
37661
|
-
activeId:
|
|
37754
|
+
}) : j, fG = H == null ? void 0 : H.id, pG = (0, import_react.useRef)({
|
|
37755
|
+
activeId: fG,
|
|
37662
37756
|
items: g,
|
|
37663
|
-
newIndex:
|
|
37757
|
+
newIndex: dG,
|
|
37664
37758
|
containerId: _
|
|
37665
|
-
}),
|
|
37759
|
+
}), mG = g !== pG.current.items, hG = r({
|
|
37666
37760
|
active: H,
|
|
37667
37761
|
containerId: _,
|
|
37668
|
-
isDragging:
|
|
37669
|
-
isSorting:
|
|
37762
|
+
isDragging: nG,
|
|
37763
|
+
isSorting: sG,
|
|
37670
37764
|
id: f,
|
|
37671
37765
|
index: j,
|
|
37672
37766
|
items: g,
|
|
37673
|
-
newIndex:
|
|
37674
|
-
previousItems:
|
|
37675
|
-
previousContainerId:
|
|
37767
|
+
newIndex: pG.current.newIndex,
|
|
37768
|
+
previousItems: pG.current.items,
|
|
37769
|
+
previousContainerId: pG.current.containerId,
|
|
37676
37770
|
transition: h,
|
|
37677
|
-
wasDragging:
|
|
37678
|
-
}),
|
|
37679
|
-
disabled: !
|
|
37771
|
+
wasDragging: pG.current.activeId != null
|
|
37772
|
+
}), gG = useDerivedTransform({
|
|
37773
|
+
disabled: !hG,
|
|
37680
37774
|
index: j,
|
|
37681
37775
|
node: R,
|
|
37682
37776
|
rect: L
|
|
37683
37777
|
});
|
|
37684
37778
|
return (0, import_react.useEffect)(() => {
|
|
37685
|
-
|
|
37779
|
+
sG && pG.current.newIndex !== dG && (pG.current.newIndex = dG), _ !== pG.current.containerId && (pG.current.containerId = _), g !== pG.current.items && (pG.current.items = g);
|
|
37686
37780
|
}, [
|
|
37687
|
-
rG,
|
|
37688
37781
|
sG,
|
|
37782
|
+
dG,
|
|
37689
37783
|
_,
|
|
37690
37784
|
g
|
|
37691
37785
|
]), (0, import_react.useEffect)(() => {
|
|
37692
|
-
if (
|
|
37693
|
-
if (
|
|
37694
|
-
|
|
37786
|
+
if (fG === pG.current.activeId) return;
|
|
37787
|
+
if (fG != null && pG.current.activeId == null) {
|
|
37788
|
+
pG.current.activeId = fG;
|
|
37695
37789
|
return;
|
|
37696
37790
|
}
|
|
37697
37791
|
let e2 = setTimeout(() => {
|
|
37698
|
-
|
|
37792
|
+
pG.current.activeId = fG;
|
|
37699
37793
|
}, 50);
|
|
37700
37794
|
return () => clearTimeout(e2);
|
|
37701
37795
|
}, [
|
|
37702
|
-
|
|
37796
|
+
fG
|
|
37703
37797
|
]), {
|
|
37704
37798
|
active: H,
|
|
37705
37799
|
activeIndex: v,
|
|
@@ -37707,25 +37801,25 @@ ${c}
|
|
|
37707
37801
|
data: M,
|
|
37708
37802
|
rect: L,
|
|
37709
37803
|
index: j,
|
|
37710
|
-
newIndex:
|
|
37804
|
+
newIndex: dG,
|
|
37711
37805
|
items: g,
|
|
37712
37806
|
isOver: z,
|
|
37713
|
-
isSorting:
|
|
37714
|
-
isDragging:
|
|
37807
|
+
isSorting: sG,
|
|
37808
|
+
isDragging: nG,
|
|
37715
37809
|
listeners: Z,
|
|
37716
37810
|
node: R,
|
|
37717
37811
|
overIndex: w,
|
|
37718
|
-
over:
|
|
37719
|
-
setNodeRef:
|
|
37720
|
-
setActivatorNodeRef:
|
|
37812
|
+
over: rG,
|
|
37813
|
+
setNodeRef: oG,
|
|
37814
|
+
setActivatorNodeRef: iG,
|
|
37721
37815
|
setDroppableNodeRef: B,
|
|
37722
|
-
setDraggableNodeRef:
|
|
37723
|
-
transform:
|
|
37724
|
-
transition:
|
|
37816
|
+
setDraggableNodeRef: tG,
|
|
37817
|
+
transform: gG ?? uG,
|
|
37818
|
+
transition: _G()
|
|
37725
37819
|
};
|
|
37726
|
-
function
|
|
37727
|
-
if (
|
|
37728
|
-
if (!(
|
|
37820
|
+
function _G() {
|
|
37821
|
+
if (gG || mG && pG.current.newIndex === j) return disabledTransition;
|
|
37822
|
+
if (!(lG && !isKeyboardEvent(W) || !h) && (sG || hG)) return CSS$1.Transition.toString({
|
|
37729
37823
|
...h,
|
|
37730
37824
|
property: transitionProperty
|
|
37731
37825
|
});
|
|
@@ -38025,15 +38119,15 @@ ${c}
|
|
|
38025
38119
|
G
|
|
38026
38120
|
]
|
|
38027
38121
|
}), r[35] = c.id, r[36] = m, 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];
|
|
38028
|
-
let
|
|
38029
|
-
if (!v && !g) return
|
|
38122
|
+
let tG = q;
|
|
38123
|
+
if (!v && !g) return tG;
|
|
38030
38124
|
let Z;
|
|
38031
|
-
r[46] ===
|
|
38125
|
+
r[46] === tG ? Z = r[47] : (Z = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
38032
38126
|
asChild: true,
|
|
38033
|
-
children:
|
|
38034
|
-
}), r[46] =
|
|
38035
|
-
let
|
|
38036
|
-
r[48] === v ?
|
|
38127
|
+
children: tG
|
|
38128
|
+
}), r[46] = tG, r[47] = Z);
|
|
38129
|
+
let nG;
|
|
38130
|
+
r[48] === v ? nG = r[49] : (nG = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
38037
38131
|
onSelect: v,
|
|
38038
38132
|
children: [
|
|
38039
38133
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -38041,11 +38135,11 @@ ${c}
|
|
|
38041
38135
|
}),
|
|
38042
38136
|
"Add cell"
|
|
38043
38137
|
]
|
|
38044
|
-
}), r[48] = v, r[49] =
|
|
38045
|
-
let
|
|
38046
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
38047
|
-
let
|
|
38048
|
-
r[51] === g ?
|
|
38138
|
+
}), r[48] = v, r[49] = nG);
|
|
38139
|
+
let rG;
|
|
38140
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rG = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = rG) : rG = r[50];
|
|
38141
|
+
let iG;
|
|
38142
|
+
r[51] === g ? iG = r[52] : (iG = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
38049
38143
|
variant: "danger",
|
|
38050
38144
|
onSelect: g,
|
|
38051
38145
|
children: [
|
|
@@ -38054,22 +38148,22 @@ ${c}
|
|
|
38054
38148
|
}),
|
|
38055
38149
|
"Delete cell"
|
|
38056
38150
|
]
|
|
38057
|
-
}), r[51] = g, r[52] =
|
|
38058
|
-
let
|
|
38059
|
-
r[53] !==
|
|
38151
|
+
}), r[51] = g, r[52] = iG);
|
|
38152
|
+
let aG;
|
|
38153
|
+
r[53] !== nG || r[54] !== iG ? (aG = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
38060
38154
|
children: [
|
|
38061
|
-
|
|
38062
|
-
|
|
38063
|
-
|
|
38155
|
+
nG,
|
|
38156
|
+
rG,
|
|
38157
|
+
iG
|
|
38064
38158
|
]
|
|
38065
|
-
}), r[53] =
|
|
38066
|
-
let
|
|
38067
|
-
return r[56] !== Z || r[57] !==
|
|
38159
|
+
}), r[53] = nG, r[54] = iG, r[55] = aG) : aG = r[55];
|
|
38160
|
+
let oG;
|
|
38161
|
+
return r[56] !== Z || r[57] !== aG ? (oG = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
38068
38162
|
children: [
|
|
38069
38163
|
Z,
|
|
38070
|
-
|
|
38164
|
+
aG
|
|
38071
38165
|
]
|
|
38072
|
-
}), r[56] = Z, r[57] =
|
|
38166
|
+
}), r[56] = Z, r[57] = aG, r[58] = oG) : oG = r[58], oG;
|
|
38073
38167
|
}, InsertCellLine = (e) => {
|
|
38074
38168
|
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;
|
|
38075
38169
|
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);
|
|
@@ -38123,10 +38217,10 @@ ${c}
|
|
|
38123
38217
|
...B,
|
|
38124
38218
|
...m
|
|
38125
38219
|
}, r[20] = M, r[21] = m, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
38126
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
38127
|
-
r[25] !== l || r[26] !==
|
|
38128
|
-
let
|
|
38129
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
38220
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", tG = w && !T && "opacity-35", Z = T && "opacity-95 shadow-lg", nG;
|
|
38221
|
+
r[25] !== l || r[26] !== tG || r[27] !== Z || r[28] !== q ? (nG = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, tG, Z, l), r[25] = l, r[26] = tG, r[27] = Z, r[28] = q, r[29] = nG) : nG = r[29];
|
|
38222
|
+
let rG;
|
|
38223
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (rG = G && (0, import_jsx_runtime.jsx)("div", {
|
|
38130
38224
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
38131
38225
|
style: {
|
|
38132
38226
|
transform: `scale(${I})`,
|
|
@@ -38142,14 +38236,14 @@ ${c}
|
|
|
38142
38236
|
output: c.output,
|
|
38143
38237
|
stale: outputIsStale(c, false)
|
|
38144
38238
|
})
|
|
38145
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
38146
|
-
let
|
|
38147
|
-
r[37] === z ?
|
|
38239
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = rG) : rG = r[36];
|
|
38240
|
+
let iG;
|
|
38241
|
+
r[37] === z ? iG = r[38] : (iG = z && (0, import_jsx_runtime.jsx)("div", {
|
|
38148
38242
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
38149
38243
|
"aria-hidden": true
|
|
38150
|
-
}), r[37] = z, r[38] =
|
|
38151
|
-
let
|
|
38152
|
-
r[39] !== z || r[40] !== R ? (
|
|
38244
|
+
}), r[37] = z, r[38] = iG);
|
|
38245
|
+
let aG;
|
|
38246
|
+
r[39] !== z || r[40] !== R ? (aG = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
38153
38247
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
38154
38248
|
className: "text-xs opacity-80",
|
|
38155
38249
|
children: R.description
|
|
@@ -38161,19 +38255,19 @@ ${c}
|
|
|
38161
38255
|
className: "h-3.5 w-3.5"
|
|
38162
38256
|
})
|
|
38163
38257
|
})
|
|
38164
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
38165
|
-
let
|
|
38166
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
38258
|
+
}), r[39] = z, r[40] = R, r[41] = aG) : aG = r[41];
|
|
38259
|
+
let oG;
|
|
38260
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== nG || r[46] !== rG || r[47] !== iG || r[48] !== aG ? (oG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38167
38261
|
ref: f,
|
|
38168
|
-
className:
|
|
38262
|
+
className: nG,
|
|
38169
38263
|
style: W,
|
|
38170
38264
|
...d,
|
|
38171
38265
|
children: [
|
|
38172
|
-
|
|
38173
|
-
|
|
38174
|
-
|
|
38266
|
+
rG,
|
|
38267
|
+
iG,
|
|
38268
|
+
aG
|
|
38175
38269
|
]
|
|
38176
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
38270
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = nG, r[46] = rG, r[47] = iG, r[48] = aG, r[49] = oG) : oG = r[49], oG;
|
|
38177
38271
|
}, MiniCodePreview = (e) => {
|
|
38178
38272
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
38179
38273
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -38213,7 +38307,7 @@ ${c}
|
|
|
38213
38307
|
function _temp2$2(e) {
|
|
38214
38308
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
38215
38309
|
}
|
|
38216
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
38310
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-2JQ2YfIT.js"));
|
|
38217
38311
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
38218
38312
|
var _a5;
|
|
38219
38313
|
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), [
|
|
@@ -38598,7 +38692,7 @@ ${c}
|
|
|
38598
38692
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
38599
38693
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
38600
38694
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
38601
|
-
let H, W, G, q,
|
|
38695
|
+
let H, W, G, q, tG, Z, nG, rG, iG, aG;
|
|
38602
38696
|
if (r[3] !== w || 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] !== p || r[19] !== l) {
|
|
38603
38697
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
38604
38698
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -38644,11 +38738,11 @@ ${c}
|
|
|
38644
38738
|
})
|
|
38645
38739
|
})
|
|
38646
38740
|
]
|
|
38647
|
-
}), 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",
|
|
38648
|
-
let
|
|
38649
|
-
r[40] !== M || r[41] !==
|
|
38741
|
+
}), 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", tG = c, Z = R, nG = 0;
|
|
38742
|
+
let oG2 = y && "marimo-output-stale", sG2 = L ? "p-5" : "p-3";
|
|
38743
|
+
r[40] !== M || r[41] !== oG2 || r[42] !== sG2 ? (rG = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", oG2, sG2, M), r[40] = M, r[41] = oG2, r[42] = sG2, r[43] = rG) : rG = r[43], r[44] === d ? iG = r[45] : (iG = d ? {
|
|
38650
38744
|
maxHeight: "none"
|
|
38651
|
-
} : void 0, r[44] = d, r[45] =
|
|
38745
|
+
} : void 0, r[44] = d, r[45] = iG), aG = e2.map((e3, r2) => {
|
|
38652
38746
|
if (e3.channel === "pdb") return null;
|
|
38653
38747
|
if (e3.channel === "stdin") {
|
|
38654
38748
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -38677,36 +38771,36 @@ ${c}
|
|
|
38677
38771
|
wrapText: l
|
|
38678
38772
|
})
|
|
38679
38773
|
}, r2);
|
|
38680
|
-
}), r[3] = w, 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] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] =
|
|
38681
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
38682
|
-
let
|
|
38683
|
-
r[46] !== w || r[47] !== S ? (
|
|
38774
|
+
}), r[3] = w, 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] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = tG, r[25] = Z, r[26] = nG, r[27] = rG, r[28] = iG, r[29] = aG;
|
|
38775
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], tG = r[24], Z = r[25], nG = r[26], rG = r[27], iG = r[28], aG = r[29];
|
|
38776
|
+
let oG;
|
|
38777
|
+
r[46] !== w || r[47] !== S ? (oG = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
38684
38778
|
value: S,
|
|
38685
38779
|
cellId: w,
|
|
38686
38780
|
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"
|
|
38687
|
-
}), r[46] = w, r[47] = S, r[48] =
|
|
38688
|
-
let
|
|
38689
|
-
r[49] !==
|
|
38781
|
+
}), r[46] = w, r[47] = S, r[48] = oG) : oG = r[48];
|
|
38782
|
+
let sG;
|
|
38783
|
+
r[49] !== oG || r[50] !== G || r[51] !== q || r[52] !== tG || r[53] !== Z || r[54] !== nG || r[55] !== rG || r[56] !== iG || r[57] !== aG ? (sG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38690
38784
|
title: G,
|
|
38691
38785
|
"data-testid": q,
|
|
38692
|
-
ref:
|
|
38786
|
+
ref: tG,
|
|
38693
38787
|
...Z,
|
|
38694
|
-
tabIndex:
|
|
38695
|
-
className:
|
|
38696
|
-
style:
|
|
38788
|
+
tabIndex: nG,
|
|
38789
|
+
className: rG,
|
|
38790
|
+
style: iG,
|
|
38697
38791
|
children: [
|
|
38698
|
-
|
|
38699
|
-
|
|
38792
|
+
aG,
|
|
38793
|
+
oG
|
|
38700
38794
|
]
|
|
38701
|
-
}), r[49] =
|
|
38702
|
-
let
|
|
38703
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
38795
|
+
}), r[49] = oG, r[50] = G, r[51] = q, r[52] = tG, r[53] = Z, r[54] = nG, r[55] = rG, r[56] = iG, r[57] = aG, r[58] = sG) : sG = r[58];
|
|
38796
|
+
let cG;
|
|
38797
|
+
return r[59] !== H || r[60] !== W || r[61] !== sG ? (cG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38704
38798
|
className: H,
|
|
38705
38799
|
children: [
|
|
38706
38800
|
W,
|
|
38707
|
-
|
|
38801
|
+
sG
|
|
38708
38802
|
]
|
|
38709
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
38803
|
+
}), r[59] = H, r[60] = W, r[61] = sG, r[62] = cG) : cG = r[62], cG;
|
|
38710
38804
|
}, StdInput = (e) => {
|
|
38711
38805
|
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;
|
|
38712
38806
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|