@marimo-team/islands 0.23.11-dev9 → 0.23.11
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-Z3RP7Vmm.js → ConnectedDataExplorerComponent-WqG-xX4l.js} +13 -13
- package/dist/{ErrorBoundary-DpbaKVv7.js → ErrorBoundary-BNx_OSVo.js} +2 -2
- package/dist/{any-language-editor-CAgFD4Kd.js → any-language-editor-rPSlOll9.js} +5 -5
- package/dist/assets/__vite-browser-external-DAm_YW43.js +1 -0
- package/dist/assets/{worker-CC0Oul9k.js → worker-DEDLIQQV.js} +2 -2
- package/dist/{button-C5K9fIPF.js → button-vQhauTmO.js} +20 -0
- package/dist/{capabilities-BceAxrAW.js → capabilities-BEHzIS99.js} +1 -1
- package/dist/{chat-ui-c1FdlK-C.js → chat-ui-k2kqhCv5.js} +135 -106
- package/dist/{check-BCaJeT-J.js → check-nrzHDi45.js} +1 -1
- package/dist/{code-visibility-0vPSjYnM.js → code-visibility-CFUW5L3i.js} +81 -68
- package/dist/{copy-UqRYxiOg.js → copy-UhDed7D4.js} +2 -2
- package/dist/{dist-Dk6PV_d3.js → dist-DYGLrbYQ.js} +2 -2
- package/dist/{error-banner-CJXYJ6Sb.js → error-banner-BHAkVFc2.js} +2 -2
- package/dist/{esm-BaH2eg5-.js → esm-Bqu9AE2K.js} +1 -1
- package/dist/{extends-D_hDsj6R.js → extends-9Yl5BEcg.js} +4 -4
- package/dist/{formats-C4wO47tk.js → formats-BV4bOfMI.js} +3 -3
- package/dist/{glide-data-editor-BPkCPs7L.js → glide-data-editor-BDTq6YUb.js} +9 -9
- package/dist/{html-to-image-D5-EpALB.js → html-to-image-C86pQALH.js} +16 -16
- package/dist/{input-OdWHkobi.js → input-AKkGXdyV.js} +6 -6
- package/dist/{label-CC4ytI1X.js → label-E3ZJXHu8.js} +2 -2
- package/dist/{loader-BWLPpjKK.js → loader-YPuQvn1Y.js} +1 -1
- package/dist/main.js +981 -978
- package/dist/{mermaid-BotvIKg9.js → mermaid-QFAR9YgY.js} +5 -5
- package/dist/{process-output-WDZE0cyS.js → process-output-nNw4OpSj.js} +3 -3
- package/dist/{reveal-component-BZpDHGsk.js → reveal-component-0u6v5UUq.js} +10 -10
- package/dist/{spec-X7FwLJni.js → spec-B45_YCNI.js} +4 -4
- package/dist/{strings-J57tzLr3.js → strings-Cq2s9_EQ.js} +4 -4
- package/dist/style.css +1 -1
- package/dist/{swiper-component-B2t5sN1q.js → swiper-component-BNa_4kh2.js} +2 -2
- package/dist/{toDate-d8RCRrRd.js → toDate-Do1xRzAo.js} +3 -3
- package/dist/{tooltip-DpcyNkQ2.js → tooltip-Bz3OAwrU.js} +3 -3
- package/dist/{types-ChtMFmZ2.js → types-D8gEGs4R.js} +1 -1
- package/dist/{useAsyncData-PonK__yh.js → useAsyncData-CL3o2p4i.js} +1 -1
- package/dist/{useDateFormatter-QB-3MpYr.js → useDateFormatter-BC6iSz9g.js} +2 -2
- package/dist/{useDeepCompareMemoize-D3NGWke6.js → useDeepCompareMemoize-BPx2MuOK.js} +1 -1
- package/dist/{useIframeCapabilities-C4JTXTIh.js → useIframeCapabilities-C6Ta3EyP.js} +1 -1
- package/dist/{useLifecycle-00mO3OSS.js → useLifecycle-C3Ec71q0.js} +3 -3
- package/dist/{useTheme-DEhDzATN.js → useTheme-ZhT6uIu3.js} +4 -3
- package/dist/{vega-component-DGPUhbDs.js → vega-component-C3AWYGAL.js} +10 -10
- package/dist/{zod-aLSua2NL.js → zod-DXqkaI_w.js} +1 -1
- package/package.json +1 -1
- package/src/components/ai/ai-model-dropdown.tsx +6 -0
- package/src/components/app-config/ai-config.tsx +73 -55
- package/src/components/app-config/data-form.tsx +33 -43
- package/src/components/app-config/is-overridden.tsx +125 -58
- package/src/components/app-config/user-config-form.tsx +178 -227
- package/src/components/chat/chat-display.tsx +5 -0
- package/src/components/chat/chat-panel.tsx +21 -8
- package/src/components/chat/tool-call/tool-call-view.tsx +4 -0
- package/src/components/chat/tool-call/tool-history-row.tsx +26 -5
- package/src/components/data-table/TableTopBar.tsx +4 -4
- package/src/components/data-table/__tests__/columns.test.tsx +20 -0
- package/src/components/data-table/__tests__/data-table.test.tsx +28 -0
- package/src/components/data-table/columns.tsx +16 -1
- package/src/components/data-table/data-table.tsx +3 -3
- package/src/components/data-table/filters/types.ts +1 -0
- package/src/components/data-table/renderers.tsx +5 -1
- package/src/components/datasources/__tests__/install-package-button.test.tsx +11 -0
- package/src/components/datasources/__tests__/utils.test.ts +127 -2
- package/src/components/datasources/datasources.tsx +44 -17
- package/src/components/datasources/install-package-button.tsx +3 -1
- package/src/components/datasources/utils.ts +45 -0
- package/src/components/editor/actions/useNotebookActions.tsx +62 -21
- package/src/components/editor/actions/useSetCodeVisibility.ts +57 -0
- package/src/components/editor/header/__tests__/status.test.tsx +0 -4
- package/src/components/editor/header/status.tsx +2 -3
- package/src/core/cells/__tests__/cells.test.ts +33 -0
- package/src/core/cells/cells.ts +1 -1
- package/src/core/config/config-schema.ts +6 -1
- package/src/core/edit-app.tsx +14 -0
- package/src/core/hotkeys/hotkeys.ts +20 -0
- package/src/core/websocket/__tests__/useMarimoKernelConnection.test.ts +0 -13
- package/src/core/websocket/types.ts +0 -1
- package/src/core/websocket/useMarimoKernelConnection.tsx +0 -14
- package/src/css/app/print.css +8 -0
- package/src/css/md.css +12 -0
- package/src/plugins/impl/DataTablePlugin.tsx +12 -5
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +1 -1
- package/src/plugins/impl/chat/chat-ui.tsx +1 -0
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -1
- package/dist/assets/__vite-browser-external-eshhtsgZ.js +0 -1
- package/src/components/editor/actions/useHideAllMarkdownCode.ts +0 -53
package/dist/main.js
CHANGED
|
@@ -18,34 +18,34 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
import { a as __toCommonJS, n as __esmMin, r as __export, s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
|
|
21
|
-
import { _ as Logger, c as Objects, g as cn, h as Events, i as NOT_SET, l as useEventListener, m as useComposedRefs, n as buttonVariants, o as isPlatformMac, p as composeRefs, r as cva, t as Button, u as Slot, v as Functions, y as throwNotImplemented } from "./button-
|
|
21
|
+
import { _ as Logger, c as Objects, g as cn, h as Events, i as NOT_SET, l as useEventListener, m as useComposedRefs, n as buttonVariants, o as isPlatformMac, p as composeRefs, r as cva, t as Button, u as Slot, v as Functions, y as throwNotImplemented } from "./button-vQhauTmO.js";
|
|
22
22
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
23
23
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
24
|
-
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-
|
|
25
|
-
import { $ as reducer, B as safeExtractSetUIElementMessageBuffers, Bn as CircleAlert, Bt as DATA_TYPE_ICON, C as AccordionContent, Cn as Root2$1, Ct as Checkbox, Dn as Table2, Dt as PathBuilder, E as BorderAllIcon, En as Trash2, F as base64ToDataView, Fn as Eye, H as getMarimoExportContext, Ht as require_client, It as jotaiJsonStorage, J as getCellNames, Jt as requestClientAtom, K as createActions, Kt as convertStatsName, L as dataViewToBase64, Ln as Database, Mn as Layers, Mt as generateUUID, Nn as Info, On as PaintRoller, Ot as Paths, Pn as FileText, Pt as repl, Q as numColumnsAtom, Rn as Columns2, S as Accordion, Sn as Item$1, St as normalizeName, T as AccordionTrigger, Tt as MarkdownLanguageAdapter, U as hasTrustedExportContext, V as renderHTML, Vn as Braces, W as hasRunAnyCellAtom, X as notebookAtom, Xt as isUninstantiated, Y as hasOnlyOneCellAtom, Yt as useRequestClient, Z as notebookOutline, _n as atomWithStorage, a as useCellFocusActions, an as parseDataset, bt as getValidName, cn as HTMLCellId, ct as initialModeAtom, dn as findCellId, et as useCellActions, f as isOutputEmpty, fn as OBJECT_ID_ATTR, ft as outputIsLoading, gn as atomWithReducer, ht as headingToIdentifier, i as LazyAnyLanguageCodeMirror, in as parseAttrValue, jn as LoaderCircle, jt as DeferredRequestRegistry, k as ChevronDownIcon, lt as kioskModeAtom, mn as jsonParseWithSpecialChar, mt as isErrorMime, n as Spinner, o as useLastFocusedCellId, on as parseInitialValue, p as useExpandedConsoleOutput, pn as RANDOM_ID_ATTR, pt as outputIsStale, qt as getRequestClient, rt as createCell, s as maybeAddAltairImport, st as getInitialAppMode, tn as NotebookScopedLocalStorage, tt as useCellIds, un as UIElementId, vn as selectAtom, w as AccordionItem, wn as Trigger2, wt as customPythonLanguageSupport, xn as Content2, xt as isInternalCellName, zt as PluralWords, __tla as __tla_0 } from "./html-to-image-
|
|
24
|
+
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-UhDed7D4.js";
|
|
25
|
+
import { $ as reducer, B as safeExtractSetUIElementMessageBuffers, Bn as CircleAlert, Bt as DATA_TYPE_ICON, C as AccordionContent, Cn as Root2$1, Ct as Checkbox, Dn as Table2, Dt as PathBuilder, E as BorderAllIcon, En as Trash2, F as base64ToDataView, Fn as Eye, H as getMarimoExportContext, Ht as require_client, It as jotaiJsonStorage, J as getCellNames, Jt as requestClientAtom, K as createActions, Kt as convertStatsName, L as dataViewToBase64, Ln as Database, Mn as Layers, Mt as generateUUID, Nn as Info, On as PaintRoller, Ot as Paths, Pn as FileText, Pt as repl, Q as numColumnsAtom, Rn as Columns2, S as Accordion, Sn as Item$1, St as normalizeName, T as AccordionTrigger, Tt as MarkdownLanguageAdapter, U as hasTrustedExportContext, V as renderHTML, Vn as Braces, W as hasRunAnyCellAtom, X as notebookAtom, Xt as isUninstantiated, Y as hasOnlyOneCellAtom, Yt as useRequestClient, Z as notebookOutline, _n as atomWithStorage, a as useCellFocusActions, an as parseDataset, bt as getValidName, cn as HTMLCellId, ct as initialModeAtom, dn as findCellId, et as useCellActions, f as isOutputEmpty, fn as OBJECT_ID_ATTR, ft as outputIsLoading, gn as atomWithReducer, ht as headingToIdentifier, i as LazyAnyLanguageCodeMirror, in as parseAttrValue, jn as LoaderCircle, jt as DeferredRequestRegistry, k as ChevronDownIcon, lt as kioskModeAtom, mn as jsonParseWithSpecialChar, mt as isErrorMime, n as Spinner, o as useLastFocusedCellId, on as parseInitialValue, p as useExpandedConsoleOutput, pn as RANDOM_ID_ATTR, pt as outputIsStale, qt as getRequestClient, rt as createCell, s as maybeAddAltairImport, st as getInitialAppMode, tn as NotebookScopedLocalStorage, tt as useCellIds, un as UIElementId, vn as selectAtom, w as AccordionItem, wn as Trigger2, wt as customPythonLanguageSupport, xn as Content2, xt as isInternalCellName, zt as PluralWords, __tla as __tla_0 } from "./html-to-image-C86pQALH.js";
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BbqSm5gU.js";
|
|
27
|
-
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-
|
|
28
|
-
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-
|
|
29
|
-
import { $ as contextAwarePanelOpen, $t as $fae977aafc393c5c$export$6b862160d295c8e, A as prettifyRowCount, At as SELECT_COLUMN_ID, B as DatePicker, Bt as TabsContent, C as downloadSizeLimitAtom, Ct as DelayMount, D as ErrorState, Dt as loadTableAndRawData, E as EmptyState, Et as getPageIndexForRow, F as ContextMenuSeparator, Ft as Maps, G as CommandEmpty, Gt as ChartLoadingState, H as Combobox, Ht as TabsTrigger, I as ContextMenuTrigger, It as dateToLocalISODate, J as CommandList, Jt as RenderTextWithLinks, K as CommandInput, Kt as LazyVegaEmbed, L as useInternalStateWithSync, Lt as dateToLocalISODateTime, M as ContextMenu, Mt as toFieldTypes, N as ContextMenuContent, Nt as getMimeValues, O as LoadingState, Ot as loadTableData, P as ContextMenuItem, Pt as isNullishFilter, Q as PANEL_TYPES, Qt as $fae977aafc393c5c$export$588937bcd60ade55, R as useSelectList, Rt as dateToLocalISOTime, S as Filenames, St as ColumnChartSpecModel, T as ColumnPreviewContainer, Tt as usePrevious$1, U as ComboboxItem, Ut as ChartErrorState, V as DateRangePicker, Vt as TabsList, W as Command, Wt as ChartInfoState, X as smartMatch, Xt as HtmlOutput, Y as CommandSeparator, Yt as Kbd, Z as ContextAwarePanelItem, Zt as EmotionCacheProvider, _ as ADD_PRINTING_CLASS, _t as NAMELESS_COLUMN_PREFIX, an as Ellipsis, at as Toggle, b as downloadHTMLAsImage, bt as renderCellValue, c as Slide, cn as ChevronsUpDown, d as RadioGroupItem, dn as ChevronsDownUp, dt as Table, en as TextWrap, et as contextAwarePanelOwner, f as JsonOutput, fn as ChevronLeft, ft as TableBody, g as InstallPackageButton, gt as TableRow, h as DataTable, ht as TableHeader, it as slotsController, j as getColumnCountForDisplay, jt as TOO_MANY_ROWS, k as prettifyRowColumnCount, kt as INDEX_COLUMN_NAME, l as Switch, ln as ChevronsRight, lt as Fill, m as OutputRenderer, mt as TableHead, n as marimoVersionAtom, nn as Funnel, nt as isCellAwareAtom, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as Download, p as OutputArea, pn as ArrowDownWideNarrow, pt as TableCell, q as CommandItem, qt as useOverflowDetection, r as showCodeInRunModeAtom, rn as EyeOff, rt as SlotNames, sn as Code, t as useNotebookCodeAvailable, tn as GripHorizontal, tt as contextAwarePanelType, u as RadioGroup, un as ChevronsLeft, ut as Provider$1, v as downloadBlob, vt as generateColumns, w as ColumnName, wt as useIntersectionObserver, x as Progress, xt as ColumnChartContext, y as downloadByURL, yt as inferFieldTypes, z as CompactChipRow, zt as Tabs, __tla as __tla_2 } from "./code-visibility-
|
|
30
|
-
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-
|
|
31
|
-
import { t as Check } from "./check-
|
|
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-
|
|
33
|
-
import { B as $64fa3d84918910a7$export$4d86445c2cf5e3, C as DropdownMenuTrigger, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, It as $3ef42575df84b30b$export$9d1611c77c2fe928, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, X as useDebouncedCallback, Y as useDebounceControlledState, a as NumberField, d as roundToFractionDigits, f as DropdownMenu, g as DropdownMenuLabel, gn as ChevronRight, h as DropdownMenuItem, hn as Circle, i as OnBlurredInput, l as prettyNumber, m as DropdownMenuGroup, n as DebouncedNumberInput, o as maxFractionDigitsForSteps, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pt as $6179b936705e76d3$export$ae780daf29e6d456, r as Input, st as $701a24aa0da5b062$export$ea18c227d4417cc3, t as DebouncedInput, u as prettyScientificNumber, v as DropdownMenuSeparator, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, y as DropdownMenuShortcut, z as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./input-
|
|
34
|
-
import { _ as isWasm, c as asRemoteURL, d as isStaticNotebook, f as appendQueryParams, g as Deferred, m as require_cuid2, u as getStaticVirtualFiles, v as CircleQuestionMark } from "./toDate-
|
|
35
|
-
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, d as Square, f as File, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-
|
|
36
|
-
import { n as Trash, r as Pencil, t as BulkEdit } from "./types-
|
|
37
|
-
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-
|
|
27
|
+
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-DYGLrbYQ.js";
|
|
28
|
+
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-B45_YCNI.js";
|
|
29
|
+
import { $ as contextAwarePanelOpen, $t as $fae977aafc393c5c$export$6b862160d295c8e, A as prettifyRowCount, At as SELECT_COLUMN_ID, B as DatePicker, Bt as TabsContent, C as downloadSizeLimitAtom, Ct as DelayMount, D as ErrorState, Dt as loadTableAndRawData, E as EmptyState, Et as getPageIndexForRow, F as ContextMenuSeparator, Ft as Maps, G as CommandEmpty, Gt as ChartLoadingState, H as Combobox, Ht as TabsTrigger, I as ContextMenuTrigger, It as dateToLocalISODate, J as CommandList, Jt as RenderTextWithLinks, K as CommandInput, Kt as LazyVegaEmbed, L as useInternalStateWithSync, Lt as dateToLocalISODateTime, M as ContextMenu, Mt as toFieldTypes, N as ContextMenuContent, Nt as getMimeValues, O as LoadingState, Ot as loadTableData, P as ContextMenuItem, Pt as isNullishFilter, Q as PANEL_TYPES, Qt as $fae977aafc393c5c$export$588937bcd60ade55, R as useSelectList, Rt as dateToLocalISOTime, S as Filenames, St as ColumnChartSpecModel, T as ColumnPreviewContainer, Tt as usePrevious$1, U as ComboboxItem, Ut as ChartErrorState, V as DateRangePicker, Vt as TabsList, W as Command, Wt as ChartInfoState, X as smartMatch, Xt as HtmlOutput, Y as CommandSeparator, Yt as Kbd, Z as ContextAwarePanelItem, Zt as EmotionCacheProvider, _ as ADD_PRINTING_CLASS, _t as NAMELESS_COLUMN_PREFIX, an as Ellipsis, at as Toggle, b as downloadHTMLAsImage, bt as renderCellValue, c as Slide, cn as ChevronsUpDown, d as RadioGroupItem, dn as ChevronsDownUp, dt as Table, en as TextWrap, et as contextAwarePanelOwner, f as JsonOutput, fn as ChevronLeft, ft as TableBody, g as InstallPackageButton, gt as TableRow, h as DataTable, ht as TableHeader, it as slotsController, j as getColumnCountForDisplay, jt as TOO_MANY_ROWS, k as prettifyRowColumnCount, kt as INDEX_COLUMN_NAME, l as Switch, ln as ChevronsRight, lt as Fill, m as OutputRenderer, mt as TableHead, n as marimoVersionAtom, nn as Funnel, nt as isCellAwareAtom, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as Download, p as OutputArea, pn as ArrowDownWideNarrow, pt as TableCell, q as CommandItem, qt as useOverflowDetection, r as showCodeInRunModeAtom, rn as EyeOff, rt as SlotNames, sn as Code, t as useNotebookCodeAvailable, tn as GripHorizontal, tt as contextAwarePanelType, u as RadioGroup, un as ChevronsLeft, ut as Provider$1, v as downloadBlob, vt as generateColumns, w as ColumnName, wt as useIntersectionObserver, x as Progress, xt as ColumnChartContext, y as downloadByURL, yt as inferFieldTypes, z as CompactChipRow, zt as Tabs, __tla as __tla_2 } from "./code-visibility-CFUW5L3i.js";
|
|
30
|
+
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-C3Ec71q0.js";
|
|
31
|
+
import { t as Check } from "./check-nrzHDi45.js";
|
|
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-Cq2s9_EQ.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-AKkGXdyV.js";
|
|
34
|
+
import { _ as isWasm, c as asRemoteURL, d as isStaticNotebook, f as appendQueryParams, g as Deferred, m as require_cuid2, u as getStaticVirtualFiles, v as CircleQuestionMark } from "./toDate-Do1xRzAo.js";
|
|
35
|
+
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, d as Square, f as File, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-nNw4OpSj.js";
|
|
36
|
+
import { n as Trash, r as Pencil, t as BulkEdit } from "./types-D8gEGs4R.js";
|
|
37
|
+
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-BNx_OSVo.js";
|
|
38
38
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
39
39
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
40
|
-
import { $ as isInVscodeExtension, A as looseObject, B as union, C as any, F as optional, G as parse$1, I as record, J as prettifyError, K as parseAsync, N as number, O as lazy$2, P as object, R as string, S as _null, T as boolean, U as ZodError, V as unknown, _ as ZodString, _t as createContextScope, a as ZodIssueCode, b as _enum, c as ZodBoolean, ct as DismissableLayer, d as ZodDiscriminatedUnion, dt as useId$11, et as StyleNamespace, f as ZodEnum, ft as Presence, g as ZodOptional, h as ZodObject, ht as composeEventHandlers$1, i as string$1, j as nan, k as literal, l as ZodDate, m as ZodNumber, mt as useLayoutEffect2, n as date, o as ZodAny, p as ZodLiteral, pt as useControllableState, q as $ZodError, r as number$1, rt as __awaiter, s as ZodArray, t as zod_default, u as ZodDefault, ut as useCallbackRef, v as ZodType, vt as Primitive, w as array, x as _instanceof, y as ZodUnion, yt as dispatchDiscreteCustomEvent, z as tuple } from "./zod-
|
|
41
|
-
import { a as prettyError, i as FunctionNotFoundError, n as ErrorBanner, r as CellNotInitializedError, t as Banner } from "./error-banner-
|
|
42
|
-
import { t as Label } from "./label-
|
|
43
|
-
import { a as TooltipRoot, i as TooltipProvider, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, t as Tooltip } from "./tooltip-
|
|
44
|
-
import { f as CopyClipboardIcon } from "./extends-
|
|
40
|
+
import { $ as isInVscodeExtension, A as looseObject, B as union, C as any, F as optional, G as parse$1, I as record, J as prettifyError, K as parseAsync, N as number, O as lazy$2, P as object, R as string, S as _null, T as boolean, U as ZodError, V as unknown, _ as ZodString, _t as createContextScope, a as ZodIssueCode, b as _enum, c as ZodBoolean, ct as DismissableLayer, d as ZodDiscriminatedUnion, dt as useId$11, et as StyleNamespace, f as ZodEnum, ft as Presence, g as ZodOptional, h as ZodObject, ht as composeEventHandlers$1, i as string$1, j as nan, k as literal, l as ZodDate, m as ZodNumber, mt as useLayoutEffect2, n as date, o as ZodAny, p as ZodLiteral, pt as useControllableState, q as $ZodError, r as number$1, rt as __awaiter, s as ZodArray, t as zod_default, u as ZodDefault, ut as useCallbackRef, v as ZodType, vt as Primitive, w as array, x as _instanceof, y as ZodUnion, yt as dispatchDiscreteCustomEvent, z as tuple } from "./zod-DXqkaI_w.js";
|
|
41
|
+
import { a as prettyError, i as FunctionNotFoundError, n as ErrorBanner, r as CellNotInitializedError, t as Banner } from "./error-banner-BHAkVFc2.js";
|
|
42
|
+
import { t as Label } from "./label-E3ZJXHu8.js";
|
|
43
|
+
import { a as TooltipRoot, i as TooltipProvider, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, t as Tooltip } from "./tooltip-Bz3OAwrU.js";
|
|
44
|
+
import { f as CopyClipboardIcon } from "./extends-9Yl5BEcg.js";
|
|
45
45
|
import { a as get_default } from "./hasIn-Deg7jl_j.js";
|
|
46
46
|
import { n as _baseSet_default, t as pick_default } from "./pick-D1Qo8s2C.js";
|
|
47
47
|
import { i as debounce_default, r as KnownQueryParams, t as CSSClasses } from "./constants-T20xxyNf.js";
|
|
48
|
-
import { T as useEvent_default, _ as useAtomValue, b as atom, c as useResolvedMarimoConfig, d as store, g as useAtom, h as Provider, i as autoInstantiateAtom, l as AppConfigSchema, m as isIslands, n as useTheme, o as localeAtom, w as dequal } from "./useTheme-
|
|
48
|
+
import { T as useEvent_default, _ as useAtomValue, b as atom, c as useResolvedMarimoConfig, d as store, g as useAtom, h as Provider, i as autoInstantiateAtom, l as AppConfigSchema, m as isIslands, n as useTheme, o as localeAtom, w as dequal } from "./useTheme-ZhT6uIu3.js";
|
|
49
49
|
import { $ as EditorView } from "./dist-U4F-tbMs.js";
|
|
50
50
|
import { t as invariant } from "./invariant-wRzNXIsJ.js";
|
|
51
51
|
import { l as clamp, o as arrayShallowEquals, t as Arrays } from "./arrays-sEtDRoG4.js";
|
|
@@ -57,15 +57,15 @@ import "./dist-BSAt6RhH.js";
|
|
|
57
57
|
import "./dist-D-W5ny5a.js";
|
|
58
58
|
import "./dist-M9Vag9Y0.js";
|
|
59
59
|
import { r as python } from "./dist-C_Y3oV3C.js";
|
|
60
|
-
import { n as minimalSetup, t as esm_default } from "./esm-
|
|
60
|
+
import { n as minimalSetup, t as esm_default } from "./esm-Bqu9AE2K.js";
|
|
61
61
|
import "./purify.es-H92eMd9-.js";
|
|
62
|
-
import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-
|
|
62
|
+
import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-BV4bOfMI.js";
|
|
63
63
|
import "./vega-loader.browser-CZ-J8Py3.js";
|
|
64
|
-
import { a as getContainerWidth, n as vegaLoadData, o as getVegaFieldTypes, s as tooltipHandler } from "./loader-
|
|
64
|
+
import { a as getContainerWidth, n as vegaLoadData, o as getVegaFieldTypes, s as tooltipHandler } from "./loader-YPuQvn1Y.js";
|
|
65
65
|
import "./defaultLocale-u-3osm0P.js";
|
|
66
66
|
import "./defaultLocale-BoHTsDG6.js";
|
|
67
|
-
import { t as useAsyncData } from "./useAsyncData-
|
|
68
|
-
import { t as useDeepCompareMemoize } from "./useDeepCompareMemoize-
|
|
67
|
+
import { t as useAsyncData } from "./useAsyncData-CL3o2p4i.js";
|
|
68
|
+
import { t as useDeepCompareMemoize } from "./useDeepCompareMemoize-BPx2MuOK.js";
|
|
69
69
|
import "./dist-CIYBwstr.js";
|
|
70
70
|
import "./dist-abid3KgM.js";
|
|
71
71
|
import "./dist-A2846XWO.js";
|
|
@@ -6993,33 +6993,33 @@ let __tla = Promise.all([
|
|
|
6993
6993
|
}), B = C({
|
|
6994
6994
|
height: 0,
|
|
6995
6995
|
width: 0
|
|
6996
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
6996
|
+
}), H = U(), W = U(), G = C(0), q = C(null), qU = C({
|
|
6997
6997
|
column: 0,
|
|
6998
6998
|
row: 0
|
|
6999
|
-
}), Z = U(),
|
|
7000
|
-
Y(x(b, $(
|
|
7001
|
-
D(
|
|
7002
|
-
}), Y(x(ut(b,
|
|
7003
|
-
D(
|
|
6999
|
+
}), Z = U(), JU = U(), YU = C(false), XU = C(0), ZU = C(true), QU = C(false), $U = C(false);
|
|
7000
|
+
Y(x(b, $(XU), P(([e2, r2]) => !!r2)), () => {
|
|
7001
|
+
D(ZU, false);
|
|
7002
|
+
}), Y(x(ut(b, ZU, B, z, XU, QU), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7003
|
+
D(QU, true), Ue(1, () => {
|
|
7004
7004
|
D(H, e2);
|
|
7005
7005
|
}), Et(x(h), () => {
|
|
7006
7006
|
D(r, [
|
|
7007
7007
|
0,
|
|
7008
7008
|
0
|
|
7009
|
-
]), D(
|
|
7009
|
+
]), D(ZU, true);
|
|
7010
7010
|
});
|
|
7011
|
-
}), F(x(
|
|
7012
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7013
|
-
D(
|
|
7011
|
+
}), F(x(JU, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(JU), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7012
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(qU, e2.gap), e2.scrollTop > 0 && (D(YU, true), Et(x(h, Kt(1)), (e3) => {
|
|
7013
|
+
D(YU, false);
|
|
7014
7014
|
}), D(m, {
|
|
7015
7015
|
top: e2.scrollTop
|
|
7016
7016
|
})));
|
|
7017
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7017
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(qU, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7018
7018
|
gap: c2,
|
|
7019
7019
|
item: r2,
|
|
7020
7020
|
scrollTop: l2,
|
|
7021
7021
|
viewport: e2
|
|
7022
|
-
}))), Z), F(x(ut(V(I), l, V(
|
|
7022
|
+
}))), Z), F(x(ut(V(I), l, V(qU, Or), V(B, xe), V(z, xe), V(q), V(L), V(YU), V(ZU), V(XU)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7023
7023
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7024
7024
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7025
7025
|
if (y2 === 0) {
|
|
@@ -7038,23 +7038,23 @@ let __tla = Promise.all([
|
|
|
7038
7038
|
offsetTop: j2,
|
|
7039
7039
|
top: j2
|
|
7040
7040
|
};
|
|
7041
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7041
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, qU), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7042
7042
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7043
7043
|
return [
|
|
7044
7044
|
d2,
|
|
7045
7045
|
u2
|
|
7046
7046
|
];
|
|
7047
7047
|
}), J(ce)), r);
|
|
7048
|
-
let
|
|
7049
|
-
F(x(h, $(
|
|
7050
|
-
let
|
|
7048
|
+
let eW = C(false);
|
|
7049
|
+
F(x(h, $(eW), k(([e2, r2]) => r2 || e2 !== 0)), eW);
|
|
7050
|
+
let tW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(eW), P(([[e2, r2], c2]) => {
|
|
7051
7051
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7052
7052
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7053
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7053
|
+
}), k(([[, e2]]) => e2 - 1), J())), nW = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), rW = bt(x(V(R), $(YU), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7054
7054
|
endIndex: e2[e2.length - 1].index,
|
|
7055
7055
|
startIndex: e2[0].index
|
|
7056
7056
|
})), J(An), Gt(0)));
|
|
7057
|
-
F(
|
|
7057
|
+
F(rW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, qU), k(([e2, r2, c2, l2, u2]) => {
|
|
7058
7058
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7059
7059
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7060
7060
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7063,7 +7063,7 @@ let __tla = Promise.all([
|
|
|
7063
7063
|
top: g2
|
|
7064
7064
|
};
|
|
7065
7065
|
})), m);
|
|
7066
|
-
let
|
|
7066
|
+
let iW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7067
7067
|
return F(x(j, k((e2) => ({
|
|
7068
7068
|
height: e2.visibleHeight,
|
|
7069
7069
|
width: e2.visibleWidth
|
|
@@ -7072,13 +7072,13 @@ let __tla = Promise.all([
|
|
|
7072
7072
|
data: q,
|
|
7073
7073
|
deviation: G,
|
|
7074
7074
|
footerHeight: u,
|
|
7075
|
-
gap:
|
|
7075
|
+
gap: qU,
|
|
7076
7076
|
headerHeight: d,
|
|
7077
7077
|
increaseViewportBy: e,
|
|
7078
7078
|
initialItemCount: L,
|
|
7079
7079
|
itemDimensions: B,
|
|
7080
7080
|
overscan: c,
|
|
7081
|
-
restoreStateFrom:
|
|
7081
|
+
restoreStateFrom: JU,
|
|
7082
7082
|
scrollBy: f,
|
|
7083
7083
|
scrollContainerState: p,
|
|
7084
7084
|
scrollHeight: W,
|
|
@@ -7094,16 +7094,16 @@ let __tla = Promise.all([
|
|
|
7094
7094
|
windowViewportRect: j,
|
|
7095
7095
|
...y,
|
|
7096
7096
|
gridState: R,
|
|
7097
|
-
horizontalDirection:
|
|
7098
|
-
initialTopMostItemIndex:
|
|
7099
|
-
totalListHeight:
|
|
7097
|
+
horizontalDirection: $U,
|
|
7098
|
+
initialTopMostItemIndex: XU,
|
|
7099
|
+
totalListHeight: iW,
|
|
7100
7100
|
...v,
|
|
7101
|
-
endReached:
|
|
7101
|
+
endReached: tW,
|
|
7102
7102
|
propsReady: S,
|
|
7103
|
-
rangeChanged:
|
|
7104
|
-
startReached:
|
|
7103
|
+
rangeChanged: rW,
|
|
7104
|
+
startReached: nW,
|
|
7105
7105
|
stateChanged: Z,
|
|
7106
|
-
stateRestoreInProgress:
|
|
7106
|
+
stateRestoreInProgress: YU,
|
|
7107
7107
|
...M
|
|
7108
7108
|
};
|
|
7109
7109
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7381,7 +7381,7 @@ let __tla = Promise.all([
|
|
|
7381
7381
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7382
7382
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7383
7383
|
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7384
|
-
let
|
|
7384
|
+
let qU = q, Z;
|
|
7385
7385
|
if (r[13] !== G.bulkActions) {
|
|
7386
7386
|
if (Z = G.bulkActions.map(_temp$27), Z.length > 0) {
|
|
7387
7387
|
let e2;
|
|
@@ -7391,12 +7391,12 @@ let __tla = Promise.all([
|
|
|
7391
7391
|
}
|
|
7392
7392
|
r[13] = G.bulkActions, r[14] = Z;
|
|
7393
7393
|
} else Z = r[14];
|
|
7394
|
-
let
|
|
7395
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7394
|
+
let JU;
|
|
7395
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (JU = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7396
7396
|
"data-slot": "select-separator"
|
|
7397
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7398
|
-
let
|
|
7399
|
-
r[19] !== Z || r[20] !== G || r[21] !==
|
|
7397
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = JU) : JU = r[18];
|
|
7398
|
+
let YU = JU, XU;
|
|
7399
|
+
r[19] !== Z || r[20] !== G || r[21] !== YU || r[22] !== w || r[23] !== B || r[24] !== H ? (XU = () => {
|
|
7400
7400
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7401
7401
|
"data-slot": "select-list",
|
|
7402
7402
|
style: {
|
|
@@ -7409,7 +7409,7 @@ let __tla = Promise.all([
|
|
|
7409
7409
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7410
7410
|
children: [
|
|
7411
7411
|
e3 === 0 && Z,
|
|
7412
|
-
|
|
7412
|
+
YU(e3),
|
|
7413
7413
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7414
7414
|
option: r2,
|
|
7415
7415
|
checked: G.isChecked(r2.value),
|
|
@@ -7420,7 +7420,7 @@ let __tla = Promise.all([
|
|
|
7420
7420
|
}
|
|
7421
7421
|
});
|
|
7422
7422
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7423
|
-
let c2 =
|
|
7423
|
+
let c2 = YU(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7424
7424
|
option: e3,
|
|
7425
7425
|
checked: G.isChecked(e3.value),
|
|
7426
7426
|
renderOption: w
|
|
@@ -7438,9 +7438,9 @@ let __tla = Promise.all([
|
|
|
7438
7438
|
e2
|
|
7439
7439
|
]
|
|
7440
7440
|
});
|
|
7441
|
-
}, r[19] = Z, r[20] = G, r[21] =
|
|
7442
|
-
let
|
|
7443
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7441
|
+
}, r[19] = Z, r[20] = G, r[21] = YU, r[22] = w, r[23] = B, r[24] = H, r[25] = XU) : XU = r[25];
|
|
7442
|
+
let ZU = XU, QU;
|
|
7443
|
+
r[26] !== G.labelOf || r[27] !== I ? (QU = (e2) => {
|
|
7444
7444
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7445
7445
|
e2
|
|
7446
7446
|
];
|
|
@@ -7451,46 +7451,46 @@ let __tla = Promise.all([
|
|
|
7451
7451
|
items: r2.map(G.labelOf),
|
|
7452
7452
|
max: 3
|
|
7453
7453
|
});
|
|
7454
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7455
|
-
let
|
|
7456
|
-
r[29] === G ?
|
|
7457
|
-
let
|
|
7458
|
-
r[31] !== b || r[32] !== R ? (
|
|
7454
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = QU) : QU = r[28];
|
|
7455
|
+
let $U = QU, eW = e["data-testid"], tW;
|
|
7456
|
+
r[29] === G ? tW = r[30] : (tW = (e2) => G.labelOf(e2), r[29] = G, r[30] = tW);
|
|
7457
|
+
let nW = M ? $U : void 0, rW;
|
|
7458
|
+
r[31] !== b || r[32] !== R ? (rW = cn({
|
|
7459
7459
|
"w-full": R
|
|
7460
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7461
|
-
let
|
|
7462
|
-
r[34] === z ?
|
|
7463
|
-
let
|
|
7464
|
-
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] !==
|
|
7460
|
+
}, b), r[31] = b, r[32] = R, r[33] = rW) : rW = r[33];
|
|
7461
|
+
let iW = G.searchQuery, aW = G.setSearchQuery, oW = G.open, sW = G.setOpen, cW;
|
|
7462
|
+
r[34] === z ? cW = r[35] : (cW = renderSlot(z), r[34] = z, r[35] = cW);
|
|
7463
|
+
let lW;
|
|
7464
|
+
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] !== eW || r[44] !== tW || r[45] !== nW || r[46] !== rW || r[47] !== cW ? (lW = {
|
|
7465
7465
|
"data-slot": "select-root",
|
|
7466
|
-
"data-testid":
|
|
7467
|
-
displayValue:
|
|
7468
|
-
renderValue:
|
|
7466
|
+
"data-testid": eW,
|
|
7467
|
+
displayValue: tW,
|
|
7468
|
+
renderValue: nW,
|
|
7469
7469
|
placeholder: I,
|
|
7470
|
-
className:
|
|
7470
|
+
className: rW,
|
|
7471
7471
|
shouldFilter: false,
|
|
7472
|
-
search:
|
|
7473
|
-
onSearchChange:
|
|
7474
|
-
open:
|
|
7475
|
-
onOpenChange:
|
|
7476
|
-
emptyState:
|
|
7472
|
+
search: iW,
|
|
7473
|
+
onSearchChange: aW,
|
|
7474
|
+
open: oW,
|
|
7475
|
+
onOpenChange: sW,
|
|
7476
|
+
emptyState: cW,
|
|
7477
7477
|
disabled: L,
|
|
7478
7478
|
id: S
|
|
7479
|
-
}, 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] =
|
|
7480
|
-
let
|
|
7481
|
-
return r[49] !==
|
|
7482
|
-
...
|
|
7479
|
+
}, 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] = eW, r[44] = tW, r[45] = nW, r[46] = rW, r[47] = cW, r[48] = lW) : lW = r[48];
|
|
7480
|
+
let uW = lW, dW;
|
|
7481
|
+
return r[49] !== uW || r[50] !== qU || r[51] !== d || r[52] !== ZU || r[53] !== l ? (dW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7482
|
+
...uW,
|
|
7483
7483
|
multiple: true,
|
|
7484
7484
|
value: l,
|
|
7485
|
-
onValueChange:
|
|
7486
|
-
children:
|
|
7485
|
+
onValueChange: qU,
|
|
7486
|
+
children: ZU()
|
|
7487
7487
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7488
|
-
...
|
|
7488
|
+
...uW,
|
|
7489
7489
|
multiple: false,
|
|
7490
7490
|
value: l,
|
|
7491
|
-
onValueChange:
|
|
7492
|
-
children:
|
|
7493
|
-
}), r[49] =
|
|
7491
|
+
onValueChange: qU,
|
|
7492
|
+
children: ZU()
|
|
7493
|
+
}), r[49] = uW, r[50] = qU, r[51] = d, r[52] = ZU, r[53] = l, r[54] = dW) : dW = r[54], dW;
|
|
7494
7494
|
}
|
|
7495
7495
|
function _temp$27(e) {
|
|
7496
7496
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -8558,7 +8558,7 @@ let __tla = Promise.all([
|
|
|
8558
8558
|
};
|
|
8559
8559
|
}
|
|
8560
8560
|
};
|
|
8561
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
8561
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-k2kqhCv5.js").then((e) => ({
|
|
8562
8562
|
default: e.Chatbot
|
|
8563
8563
|
}))), messageSchema = array(object({
|
|
8564
8564
|
id: string(),
|
|
@@ -8707,7 +8707,7 @@ let __tla = Promise.all([
|
|
|
8707
8707
|
"time",
|
|
8708
8708
|
"unknown"
|
|
8709
8709
|
];
|
|
8710
|
-
var import_compiler_runtime$77 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-
|
|
8710
|
+
var import_compiler_runtime$77 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-BDTq6YUb.js").then(async (m) => {
|
|
8711
8711
|
await m.__tla;
|
|
8712
8712
|
return m;
|
|
8713
8713
|
}));
|
|
@@ -9673,7 +9673,7 @@ let __tla = Promise.all([
|
|
|
9673
9673
|
let m2 = get(l, e2);
|
|
9674
9674
|
if (m2) {
|
|
9675
9675
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
9676
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
9676
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : qU(e2, l2), f.mount && w();
|
|
9677
9677
|
}
|
|
9678
9678
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
9679
9679
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -9746,14 +9746,14 @@ let __tla = Promise.all([
|
|
|
9746
9746
|
}, H = () => {
|
|
9747
9747
|
for (let e2 of p.unMount) {
|
|
9748
9748
|
let r2 = get(l, e2);
|
|
9749
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
9749
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && rW(e2);
|
|
9750
9750
|
}
|
|
9751
9751
|
p.unMount = /* @__PURE__ */ new Set();
|
|
9752
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
9752
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(QU(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
9753
9753
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
9754
9754
|
[e2]: r2
|
|
9755
9755
|
} : r2
|
|
9756
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
9756
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), qU = (e2, r2, c2 = {}) => {
|
|
9757
9757
|
let u2 = get(l, e2), f2 = r2;
|
|
9758
9758
|
if (u2) {
|
|
9759
9759
|
let c3 = u2._f;
|
|
@@ -9766,13 +9766,13 @@ let __tla = Promise.all([
|
|
|
9766
9766
|
}
|
|
9767
9767
|
})));
|
|
9768
9768
|
}
|
|
9769
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
9769
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && ZU(e2);
|
|
9770
9770
|
}, Z = (e2, r2, c2) => {
|
|
9771
9771
|
for (let u2 in r2) {
|
|
9772
9772
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
9773
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) :
|
|
9773
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) : qU(f2, d2, c2);
|
|
9774
9774
|
}
|
|
9775
|
-
},
|
|
9775
|
+
}, JU = (e2, r2, m2 = {}) => {
|
|
9776
9776
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
9777
9777
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
9778
9778
|
name: e2,
|
|
@@ -9783,7 +9783,7 @@ let __tla = Promise.all([
|
|
|
9783
9783
|
name: e2,
|
|
9784
9784
|
dirtyFields: getDirtyFields(u, d),
|
|
9785
9785
|
isDirty: W(e2, y2)
|
|
9786
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) :
|
|
9786
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) : qU(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
9787
9787
|
...c
|
|
9788
9788
|
}), _.values.next({
|
|
9789
9789
|
name: f.mount ? e2 : void 0,
|
|
@@ -9791,7 +9791,7 @@ let __tla = Promise.all([
|
|
|
9791
9791
|
...d
|
|
9792
9792
|
}
|
|
9793
9793
|
});
|
|
9794
|
-
},
|
|
9794
|
+
}, YU = async (e2) => {
|
|
9795
9795
|
f.mount = true;
|
|
9796
9796
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
9797
9797
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -9825,11 +9825,11 @@ let __tla = Promise.all([
|
|
|
9825
9825
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
9826
9826
|
h2
|
|
9827
9827
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
9828
|
-
S2 && (E2._f.deps &&
|
|
9828
|
+
S2 && (E2._f.deps && ZU(E2._f.deps), L(h2, f2, u3, G2));
|
|
9829
9829
|
}
|
|
9830
|
-
},
|
|
9830
|
+
}, XU = (e2, r2) => {
|
|
9831
9831
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
9832
|
-
},
|
|
9832
|
+
}, ZU = async (e2, u2 = {}) => {
|
|
9833
9833
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
9834
9834
|
if (r.resolver) {
|
|
9835
9835
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -9848,23 +9848,23 @@ let __tla = Promise.all([
|
|
|
9848
9848
|
isValid: d2
|
|
9849
9849
|
} : {},
|
|
9850
9850
|
errors: c.errors
|
|
9851
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
9852
|
-
},
|
|
9851
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, XU, e2 ? m2 : p.mount), f2;
|
|
9852
|
+
}, QU = (e2) => {
|
|
9853
9853
|
let r2 = {
|
|
9854
9854
|
...f.mount ? d : u
|
|
9855
9855
|
};
|
|
9856
9856
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
9857
|
-
},
|
|
9857
|
+
}, $U = (e2, r2) => ({
|
|
9858
9858
|
invalid: !!get((r2 || c).errors, e2),
|
|
9859
9859
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
9860
9860
|
error: get((r2 || c).errors, e2),
|
|
9861
9861
|
isValidating: !!get(c.validatingFields, e2),
|
|
9862
9862
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
9863
|
-
}),
|
|
9863
|
+
}), eW = (e2) => {
|
|
9864
9864
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
9865
9865
|
errors: e2 ? c.errors : {}
|
|
9866
9866
|
});
|
|
9867
|
-
},
|
|
9867
|
+
}, tW = (e2, r2, u2) => {
|
|
9868
9868
|
let d2 = (get(l, e2, {
|
|
9869
9869
|
_f: {}
|
|
9870
9870
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -9877,9 +9877,9 @@ let __tla = Promise.all([
|
|
|
9877
9877
|
errors: c.errors,
|
|
9878
9878
|
isValid: false
|
|
9879
9879
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
9880
|
-
},
|
|
9880
|
+
}, nW = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
9881
9881
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
9882
|
-
}) : G(e2, r2, true),
|
|
9882
|
+
}) : G(e2, r2, true), rW = (e2, f2 = {}) => {
|
|
9883
9883
|
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);
|
|
9884
9884
|
_.values.next({
|
|
9885
9885
|
values: {
|
|
@@ -9891,9 +9891,9 @@ let __tla = Promise.all([
|
|
|
9891
9891
|
isDirty: W()
|
|
9892
9892
|
} : {}
|
|
9893
9893
|
}), !f2.keepIsValid && w();
|
|
9894
|
-
},
|
|
9894
|
+
}, iW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
9895
9895
|
(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));
|
|
9896
|
-
},
|
|
9896
|
+
}, aW = (e2, c2 = {}) => {
|
|
9897
9897
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
9898
9898
|
return set(l, e2, {
|
|
9899
9899
|
...d2 || {},
|
|
@@ -9907,7 +9907,7 @@ let __tla = Promise.all([
|
|
|
9907
9907
|
mount: true,
|
|
9908
9908
|
...c2
|
|
9909
9909
|
}
|
|
9910
|
-
}), p.mount.add(e2), d2 ?
|
|
9910
|
+
}), p.mount.add(e2), d2 ? iW({
|
|
9911
9911
|
field: d2,
|
|
9912
9912
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
9913
9913
|
name: e2
|
|
@@ -9924,11 +9924,11 @@ let __tla = Promise.all([
|
|
|
9924
9924
|
pattern: getRuleValue(c2.pattern)
|
|
9925
9925
|
} : {},
|
|
9926
9926
|
name: e2,
|
|
9927
|
-
onChange:
|
|
9928
|
-
onBlur:
|
|
9927
|
+
onChange: YU,
|
|
9928
|
+
onBlur: YU,
|
|
9929
9929
|
ref: (m3) => {
|
|
9930
9930
|
if (m3) {
|
|
9931
|
-
|
|
9931
|
+
aW(e2, c2), d2 = get(l, e2);
|
|
9932
9932
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
9933
9933
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
9934
9934
|
set(l, e2, {
|
|
@@ -9954,7 +9954,7 @@ let __tla = Promise.all([
|
|
|
9954
9954
|
} 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);
|
|
9955
9955
|
}
|
|
9956
9956
|
};
|
|
9957
|
-
},
|
|
9957
|
+
}, oW = () => r.shouldFocusError && iterateFieldsByAction(l, XU, p.mount), sW = (e2) => {
|
|
9958
9958
|
isBoolean(e2) && (_.state.next({
|
|
9959
9959
|
disabled: e2
|
|
9960
9960
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -9963,7 +9963,7 @@ let __tla = Promise.all([
|
|
|
9963
9963
|
r3.disabled = u2._f.disabled || e2;
|
|
9964
9964
|
}));
|
|
9965
9965
|
}, 0, false));
|
|
9966
|
-
},
|
|
9966
|
+
}, cW = (e2, u2) => async (f2) => {
|
|
9967
9967
|
let m2;
|
|
9968
9968
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
9969
9969
|
let h2 = cloneObject(d);
|
|
@@ -9985,7 +9985,7 @@ let __tla = Promise.all([
|
|
|
9985
9985
|
}
|
|
9986
9986
|
} else u2 && await u2({
|
|
9987
9987
|
...c.errors
|
|
9988
|
-
}, f2),
|
|
9988
|
+
}, f2), oW(), setTimeout(oW);
|
|
9989
9989
|
if (_.state.next({
|
|
9990
9990
|
isSubmitted: true,
|
|
9991
9991
|
isSubmitting: false,
|
|
@@ -9993,11 +9993,11 @@ let __tla = Promise.all([
|
|
|
9993
9993
|
submitCount: c.submitCount + 1,
|
|
9994
9994
|
errors: c.errors
|
|
9995
9995
|
}), m2) throw m2;
|
|
9996
|
-
},
|
|
9997
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
9996
|
+
}, lW = (e2, r2 = {}) => {
|
|
9997
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? JU(e2, cloneObject(get(u, e2))) : (JU(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({
|
|
9998
9998
|
...c
|
|
9999
9999
|
}));
|
|
10000
|
-
},
|
|
10000
|
+
}, uW = (e2, m2 = {}) => {
|
|
10001
10001
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10002
10002
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10003
10003
|
if (m2.keepDirtyValues) {
|
|
@@ -10005,7 +10005,7 @@ let __tla = Promise.all([
|
|
|
10005
10005
|
...p.mount,
|
|
10006
10006
|
...Object.keys(getDirtyFields(u, d))
|
|
10007
10007
|
]);
|
|
10008
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10008
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : JU(r2, get(b2, r2));
|
|
10009
10009
|
} else {
|
|
10010
10010
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10011
10011
|
let r2 = get(l, e3);
|
|
@@ -10050,25 +10050,25 @@ let __tla = Promise.all([
|
|
|
10050
10050
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10051
10051
|
isSubmitting: false
|
|
10052
10052
|
});
|
|
10053
|
-
},
|
|
10053
|
+
}, dW = (e2, r2) => uW(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10054
10054
|
return {
|
|
10055
10055
|
control: {
|
|
10056
|
-
register:
|
|
10057
|
-
unregister:
|
|
10058
|
-
getFieldState:
|
|
10059
|
-
handleSubmit:
|
|
10060
|
-
setError:
|
|
10056
|
+
register: aW,
|
|
10057
|
+
unregister: rW,
|
|
10058
|
+
getFieldState: $U,
|
|
10059
|
+
handleSubmit: cW,
|
|
10060
|
+
setError: tW,
|
|
10061
10061
|
_executeSchema: R,
|
|
10062
10062
|
_getWatch: G,
|
|
10063
10063
|
_getDirty: W,
|
|
10064
10064
|
_updateValid: w,
|
|
10065
10065
|
_removeUnmounted: H,
|
|
10066
10066
|
_updateFieldArray: E,
|
|
10067
|
-
_updateDisabledField:
|
|
10067
|
+
_updateDisabledField: iW,
|
|
10068
10068
|
_getFieldArray: q,
|
|
10069
|
-
_reset:
|
|
10069
|
+
_reset: uW,
|
|
10070
10070
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10071
|
-
|
|
10071
|
+
dW(e2, r.resetOptions), _.state.next({
|
|
10072
10072
|
isLoading: false
|
|
10073
10073
|
});
|
|
10074
10074
|
}),
|
|
@@ -10078,7 +10078,7 @@ let __tla = Promise.all([
|
|
|
10078
10078
|
...e2
|
|
10079
10079
|
};
|
|
10080
10080
|
},
|
|
10081
|
-
_disableForm:
|
|
10081
|
+
_disableForm: sW,
|
|
10082
10082
|
_subjects: _,
|
|
10083
10083
|
_proxyFormState: g,
|
|
10084
10084
|
_setErrors: j,
|
|
@@ -10119,17 +10119,17 @@ let __tla = Promise.all([
|
|
|
10119
10119
|
};
|
|
10120
10120
|
}
|
|
10121
10121
|
},
|
|
10122
|
-
trigger:
|
|
10123
|
-
register:
|
|
10124
|
-
handleSubmit:
|
|
10125
|
-
watch:
|
|
10126
|
-
setValue:
|
|
10127
|
-
getValues:
|
|
10128
|
-
reset:
|
|
10129
|
-
resetField:
|
|
10130
|
-
clearErrors:
|
|
10131
|
-
unregister:
|
|
10132
|
-
setError:
|
|
10122
|
+
trigger: ZU,
|
|
10123
|
+
register: aW,
|
|
10124
|
+
handleSubmit: cW,
|
|
10125
|
+
watch: nW,
|
|
10126
|
+
setValue: JU,
|
|
10127
|
+
getValues: QU,
|
|
10128
|
+
reset: dW,
|
|
10129
|
+
resetField: lW,
|
|
10130
|
+
clearErrors: eW,
|
|
10131
|
+
unregister: rW,
|
|
10132
|
+
setError: tW,
|
|
10133
10133
|
setFocus: (e2, r2 = {}) => {
|
|
10134
10134
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10135
10135
|
if (u2) {
|
|
@@ -10137,7 +10137,7 @@ let __tla = Promise.all([
|
|
|
10137
10137
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10138
10138
|
}
|
|
10139
10139
|
},
|
|
10140
|
-
getFieldState:
|
|
10140
|
+
getFieldState: $U
|
|
10141
10141
|
};
|
|
10142
10142
|
}
|
|
10143
10143
|
function useForm(e = {}) {
|
|
@@ -14152,6 +14152,7 @@ ${c}
|
|
|
14152
14152
|
showColumnExplorer: boolean().default(true),
|
|
14153
14153
|
showRowExplorer: boolean().default(true),
|
|
14154
14154
|
showChartBuilder: boolean().default(true),
|
|
14155
|
+
showSearch: boolean().default(true),
|
|
14155
14156
|
rowHeaders: columnToFieldTypesSchema,
|
|
14156
14157
|
freezeColumnsLeft: array(string()).optional(),
|
|
14157
14158
|
freezeColumnsRight: array(string()).optional(),
|
|
@@ -14162,6 +14163,7 @@ ${c}
|
|
|
14162
14163
|
"right"
|
|
14163
14164
|
])).optional(),
|
|
14164
14165
|
wrappedColumns: array(string()).optional(),
|
|
14166
|
+
columnWidths: record(string(), number().int().positive()).optional(),
|
|
14165
14167
|
headerTooltip: record(string(), string()).optional(),
|
|
14166
14168
|
fieldTypes: columnToFieldTypesSchema.nullish(),
|
|
14167
14169
|
totalColumns: number(),
|
|
@@ -14261,7 +14263,6 @@ ${c}
|
|
|
14261
14263
|
...e.data,
|
|
14262
14264
|
...e.functions,
|
|
14263
14265
|
host: e.host,
|
|
14264
|
-
enableSearch: true,
|
|
14265
14266
|
data: e.data.data,
|
|
14266
14267
|
value: e.value,
|
|
14267
14268
|
setValue: e.setValue,
|
|
@@ -14387,21 +14388,21 @@ ${c}
|
|
|
14387
14388
|
_.pageSize,
|
|
14388
14389
|
_.pageIndex
|
|
14389
14390
|
], r[35] = w, r[36] = _.pageIndex, r[37] = _.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = u, r[44] = y, r[45] = m, r[46] = B, r[47] = H) : H = r[47];
|
|
14390
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
14391
|
-
r[48] !== Z || r[49] !== e ? (
|
|
14392
|
-
let
|
|
14393
|
-
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] !==
|
|
14391
|
+
let { data: W, error: G, isPending: q, isFetching: qU } = useAsyncData(z, H), Z = useAtomValue(downloadSizeLimitAtom), JU;
|
|
14392
|
+
r[48] !== Z || r[49] !== e ? (JU = 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] = JU) : JU = r[50];
|
|
14393
|
+
let YU = e.showDownload, XU = e.get_size_bytes, ZU = e.lazy, QU = e.totalRows, $U = useDeepCompareMemoize(w), eW = useDeepCompareMemoize(m), tW;
|
|
14394
|
+
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] !== $U || r[58] !== eW ? (tW = [
|
|
14394
14395
|
Z,
|
|
14396
|
+
YU,
|
|
14397
|
+
XU,
|
|
14395
14398
|
ZU,
|
|
14396
14399
|
QU,
|
|
14397
|
-
$U,
|
|
14398
|
-
eW,
|
|
14399
14400
|
y,
|
|
14400
|
-
|
|
14401
|
-
|
|
14402
|
-
], 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] =
|
|
14403
|
-
let { data:
|
|
14404
|
-
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (
|
|
14401
|
+
$U,
|
|
14402
|
+
eW
|
|
14403
|
+
], 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] = $U, r[58] = eW, r[59] = tW) : tW = r[59];
|
|
14404
|
+
let { data: nW, isPending: rW } = useAsyncData(JU, tW), iW = nW ?? null, aW = !!Z && e.showDownload && rW, oW;
|
|
14405
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (oW = async (e2) => ({
|
|
14405
14406
|
rows: await loadTableData((await u({
|
|
14406
14407
|
page_number: e2,
|
|
14407
14408
|
page_size: 1,
|
|
@@ -14410,38 +14411,38 @@ ${c}
|
|
|
14410
14411
|
filters: filtersToFilterGroup(w),
|
|
14411
14412
|
max_columns: null
|
|
14412
14413
|
})).data)
|
|
14413
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
14414
|
-
let
|
|
14415
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
14414
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = oW) : oW = r[64];
|
|
14415
|
+
let sW = oW, cW;
|
|
14416
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (cW = () => {
|
|
14416
14417
|
v(_temp4$4);
|
|
14417
|
-
}, r[65] =
|
|
14418
|
-
let
|
|
14419
|
-
r[66] ===
|
|
14420
|
-
|
|
14421
|
-
], r[66] =
|
|
14422
|
-
let
|
|
14423
|
-
r[68] === e ?
|
|
14418
|
+
}, r[65] = cW) : cW = r[65];
|
|
14419
|
+
let lW = W == null ? void 0 : W.totalRows, uW;
|
|
14420
|
+
r[66] === lW ? uW = r[67] : (uW = [
|
|
14421
|
+
lW
|
|
14422
|
+
], r[66] = lW, r[67] = uW), (0, import_react.useEffect)(cW, uW);
|
|
14423
|
+
let dW;
|
|
14424
|
+
r[68] === e ? dW = r[69] : (dW = async () => e.totalRows === 0 || !e.showColumnSummaries ? {
|
|
14424
14425
|
data: null,
|
|
14425
14426
|
stats: {},
|
|
14426
14427
|
bin_values: {},
|
|
14427
14428
|
value_counts: {},
|
|
14428
14429
|
show_charts: false
|
|
14429
|
-
} : e.get_column_summaries({}), r[68] = e, r[69] =
|
|
14430
|
-
let
|
|
14431
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
14430
|
+
} : e.get_column_summaries({}), r[68] = e, r[69] = dW);
|
|
14431
|
+
let fW;
|
|
14432
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (fW = [
|
|
14432
14433
|
e.get_column_summaries,
|
|
14433
14434
|
e.showColumnSummaries,
|
|
14434
14435
|
w,
|
|
14435
14436
|
y,
|
|
14436
14437
|
e.totalRows,
|
|
14437
14438
|
e.data
|
|
14438
|
-
], 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] =
|
|
14439
|
-
let { data:
|
|
14440
|
-
if (r[77] ===
|
|
14441
|
-
|
|
14442
|
-
},
|
|
14443
|
-
|
|
14444
|
-
], r[77] =
|
|
14439
|
+
], 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] = fW) : fW = r[76];
|
|
14440
|
+
let { data: pW, error: mW } = useAsyncData(dW, fW), hW, gW;
|
|
14441
|
+
if (r[77] === mW ? (hW = r[78], gW = r[79]) : (hW = () => {
|
|
14442
|
+
mW && Logger.error(mW);
|
|
14443
|
+
}, gW = [
|
|
14444
|
+
mW
|
|
14445
|
+
], r[77] = mW, r[78] = hW, r[79] = gW), (0, import_react.useEffect)(hW, gW), q) {
|
|
14445
14446
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14446
14447
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14447
14448
|
milliseconds: 200,
|
|
@@ -14450,7 +14451,7 @@ ${c}
|
|
|
14450
14451
|
})
|
|
14451
14452
|
}), r[80] = c2, r[81] = l2), l2;
|
|
14452
14453
|
}
|
|
14453
|
-
let
|
|
14454
|
+
let _W = null;
|
|
14454
14455
|
if (G) {
|
|
14455
14456
|
Logger.error(G);
|
|
14456
14457
|
let e2;
|
|
@@ -14466,61 +14467,61 @@ ${c}
|
|
|
14466
14467
|
children: G.message || "An unknown error occurred"
|
|
14467
14468
|
})
|
|
14468
14469
|
]
|
|
14469
|
-
}), r[82] = G, r[83] = e2),
|
|
14470
|
+
}), r[82] = G, r[83] = e2), _W = e2;
|
|
14470
14471
|
}
|
|
14471
|
-
let
|
|
14472
|
-
r[84] === O ?
|
|
14472
|
+
let vW;
|
|
14473
|
+
r[84] === O ? vW = r[85] : (vW = () => {
|
|
14473
14474
|
j(!O);
|
|
14474
|
-
}, r[84] = O, r[85] =
|
|
14475
|
-
let
|
|
14476
|
-
r[86] !== l || r[87] !==
|
|
14475
|
+
}, r[84] = O, r[85] = vW);
|
|
14476
|
+
let yW = vW, bW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, xW = W == null ? void 0 : W.rawRows, SW = qU && !q, CW = (W == null ? void 0 : W.totalRows) ?? e.totalRows, wW = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, TW = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, EW;
|
|
14477
|
+
r[86] !== l || r[87] !== pW || r[88] !== O || r[89] !== w || r[90] !== sW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== iW || r[95] !== aW || r[96] !== m || r[97] !== bW || r[98] !== xW || r[99] !== SW || r[100] !== CW || r[101] !== wW || r[102] !== TW || r[103] !== yW ? (EW = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
14477
14478
|
...e,
|
|
14478
|
-
data:
|
|
14479
|
-
rawData:
|
|
14480
|
-
columnSummaries:
|
|
14479
|
+
data: bW,
|
|
14480
|
+
rawData: xW,
|
|
14481
|
+
columnSummaries: pW,
|
|
14481
14482
|
sorting: m,
|
|
14482
14483
|
setSorting: h,
|
|
14483
14484
|
searchQuery: y,
|
|
14484
14485
|
setSearchQuery: b,
|
|
14485
14486
|
filters: w,
|
|
14486
14487
|
setFilters: T,
|
|
14487
|
-
reloading:
|
|
14488
|
-
totalRows:
|
|
14489
|
-
sizeBytes:
|
|
14490
|
-
sizeBytesIsLoading:
|
|
14488
|
+
reloading: SW,
|
|
14489
|
+
totalRows: CW,
|
|
14490
|
+
sizeBytes: iW,
|
|
14491
|
+
sizeBytesIsLoading: aW,
|
|
14491
14492
|
paginationState: _,
|
|
14492
14493
|
setPaginationState: v,
|
|
14493
|
-
cellStyles:
|
|
14494
|
-
cellHoverTexts:
|
|
14495
|
-
toggleDisplayHeader:
|
|
14494
|
+
cellStyles: wW,
|
|
14495
|
+
cellHoverTexts: TW,
|
|
14496
|
+
toggleDisplayHeader: yW,
|
|
14496
14497
|
isChartBuilderOpen: O,
|
|
14497
|
-
getRow:
|
|
14498
|
+
getRow: sW,
|
|
14498
14499
|
cellId: l,
|
|
14499
14500
|
maxHeight: e.maxHeight
|
|
14500
|
-
}), r[86] = l, r[87] =
|
|
14501
|
-
let
|
|
14502
|
-
r[105] !== l || r[106] !==
|
|
14501
|
+
}), r[86] = l, r[87] = pW, r[88] = O, r[89] = w, r[90] = sW, r[91] = _, r[92] = e, r[93] = y, r[94] = iW, r[95] = aW, r[96] = m, r[97] = bW, r[98] = xW, r[99] = SW, r[100] = CW, r[101] = wW, r[102] = TW, r[103] = yW, r[104] = EW) : EW = r[104];
|
|
14502
|
+
let DW = EW, OW;
|
|
14503
|
+
r[105] !== l || r[106] !== DW || r[107] !== (W == null ? void 0 : W.rows) || r[108] !== O || r[109] !== e.fieldTypes || r[110] !== e.get_data_url || r[111] !== e.showChartBuilder || r[112] !== e.totalColumns || r[113] !== e.totalRows ? (OW = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
14503
14504
|
displayHeader: O,
|
|
14504
14505
|
onCloseChartBuilder: () => j(false),
|
|
14505
14506
|
data: (W == null ? void 0 : W.rows) || [],
|
|
14506
14507
|
columns: e.totalColumns,
|
|
14507
14508
|
totalRows: e.totalRows,
|
|
14508
|
-
dataTable:
|
|
14509
|
+
dataTable: DW,
|
|
14509
14510
|
getDataUrl: e.get_data_url,
|
|
14510
14511
|
fieldTypes: e.fieldTypes,
|
|
14511
14512
|
cellId: l
|
|
14512
|
-
}) :
|
|
14513
|
-
let
|
|
14514
|
-
return r[115] !==
|
|
14513
|
+
}) : DW, r[105] = l, r[106] = DW, r[107] = W == null ? void 0 : W.rows, r[108] = O, r[109] = e.fieldTypes, r[110] = e.get_data_url, r[111] = e.showChartBuilder, r[112] = e.totalColumns, r[113] = e.totalRows, r[114] = OW) : OW = r[114];
|
|
14514
|
+
let kW;
|
|
14515
|
+
return r[115] !== _W || r[116] !== OW ? (kW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14515
14516
|
children: [
|
|
14516
|
-
|
|
14517
|
-
|
|
14517
|
+
_W,
|
|
14518
|
+
OW
|
|
14518
14519
|
]
|
|
14519
|
-
}), r[115] =
|
|
14520
|
+
}), r[115] = _W, r[116] = OW, r[117] = kW) : kW = r[117], kW;
|
|
14520
14521
|
});
|
|
14521
14522
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
14522
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H,
|
|
14523
|
-
let
|
|
14523
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: qU, setFilters: Z, reloading: JU, freezeColumnsLeft: YU, freezeColumnsRight: XU, hiddenColumns: ZU, textJustifyColumns: QU, wrappedColumns: $U, columnWidths: eW, headerTooltip: tW, totalColumns: nW, get_row_ids: rW, cellStyles: iW, hoverTemplate: aW, cellHoverTexts: oW, toggleDisplayHeader: sW, isChartBuilderOpen: cW, calculate_top_k_rows: lW, preview_column: uW, getRow: dW, cellId: fW, maxHeight: pW }) => {
|
|
14524
|
+
let mW = (0, import_react.useId)(), [hW, gW] = (0, import_react.useState)(0), { isPanelOpen: _W, isAnyPanelOpen: vW, togglePanel: yW, panelType: bW, setPanelType: xW } = usePanelOwnership(mW, fW), SW = (0, import_react.useMemo)(() => {
|
|
14524
14525
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
14525
14526
|
let e2 = toFieldTypes(O);
|
|
14526
14527
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -14529,13 +14530,13 @@ ${c}
|
|
|
14529
14530
|
}, [
|
|
14530
14531
|
O,
|
|
14531
14532
|
L
|
|
14532
|
-
]),
|
|
14533
|
+
]), CW = useDeepCompareMemoize(O ?? inferFieldTypes(r)), wW = (0, import_react.useMemo)(() => f === "all" ? CW : CW.slice(0, f), [
|
|
14533
14534
|
f,
|
|
14534
|
-
|
|
14535
|
-
]),
|
|
14535
|
+
CW
|
|
14536
|
+
]), TW = (0, import_react.useMemo)(() => {
|
|
14536
14537
|
let e2 = {};
|
|
14537
14538
|
if (r && r.length > 0) {
|
|
14538
|
-
for (let [c2, l2] of
|
|
14539
|
+
for (let [c2, l2] of wW) if (l2[0] === "number") {
|
|
14539
14540
|
let l3 = 0;
|
|
14540
14541
|
for (let e3 of r) {
|
|
14541
14542
|
let r2 = e3[c2];
|
|
@@ -14550,30 +14551,32 @@ ${c}
|
|
|
14550
14551
|
return e2;
|
|
14551
14552
|
}, [
|
|
14552
14553
|
r,
|
|
14553
|
-
|
|
14554
|
-
]),
|
|
14554
|
+
wW
|
|
14555
|
+
]), EW = useDeepCompareMemoize(T), DW = useDeepCompareMemoize(QU), OW = useDeepCompareMemoize($U), kW = useDeepCompareMemoize(eW), AW = useDeepCompareMemoize(SW), jW = useDeepCompareMemoize(TW), MW = wW.length;
|
|
14555
14556
|
O || (w = false);
|
|
14556
14557
|
let NW = (0, import_react.useMemo)(() => generateColumns({
|
|
14557
|
-
rowHeaders:
|
|
14558
|
+
rowHeaders: EW,
|
|
14558
14559
|
selection: m,
|
|
14559
14560
|
chartSpecModel: AW,
|
|
14560
|
-
fieldTypes:
|
|
14561
|
-
textJustifyColumns:
|
|
14562
|
-
wrappedColumns:
|
|
14563
|
-
|
|
14561
|
+
fieldTypes: wW,
|
|
14562
|
+
textJustifyColumns: DW,
|
|
14563
|
+
wrappedColumns: OW,
|
|
14564
|
+
columnWidths: kW,
|
|
14565
|
+
headerTooltip: tW,
|
|
14564
14566
|
showDataTypes: w,
|
|
14565
|
-
calculateTopKRows:
|
|
14567
|
+
calculateTopKRows: lW,
|
|
14566
14568
|
fractionDigitsByColumn: jW
|
|
14567
14569
|
}), [
|
|
14568
14570
|
m,
|
|
14569
14571
|
w,
|
|
14570
14572
|
AW,
|
|
14573
|
+
EW,
|
|
14574
|
+
wW,
|
|
14571
14575
|
DW,
|
|
14572
|
-
TW,
|
|
14573
14576
|
OW,
|
|
14574
14577
|
kW,
|
|
14575
|
-
|
|
14576
|
-
|
|
14578
|
+
tW,
|
|
14579
|
+
lW,
|
|
14577
14580
|
jW
|
|
14578
14581
|
]), PW = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
14579
14582
|
e2,
|
|
@@ -14590,7 +14593,7 @@ ${c}
|
|
|
14590
14593
|
z(Object.keys(r2));
|
|
14591
14594
|
}
|
|
14592
14595
|
}), IW = useEvent_default((e2) => {
|
|
14593
|
-
if (
|
|
14596
|
+
if (gW(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
14594
14597
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
14595
14598
|
r2 !== null && M((e3) => ({
|
|
14596
14599
|
...e3,
|
|
@@ -14598,45 +14601,45 @@ ${c}
|
|
|
14598
14601
|
}));
|
|
14599
14602
|
}), LW = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), RW = useEvent_default((e2) => {
|
|
14600
14603
|
m === "single-cell" && z(Functions.asUpdater(e2)(LW).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(LW));
|
|
14601
|
-
}), zW = m === "multi" || m === "single", BW = y && !!
|
|
14602
|
-
if (!(!
|
|
14604
|
+
}), zW = m === "multi" || m === "single", BW = y && !!uW, VW = isInVscodeExtension(), HW = isIslands(), UW = (0, import_react.useMemo)(() => {
|
|
14605
|
+
if (!(!vW || !(b || BW))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
14603
14606
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
14604
|
-
rowIdx:
|
|
14607
|
+
rowIdx: hW,
|
|
14605
14608
|
setRowIdx: IW,
|
|
14606
14609
|
totalRows: l,
|
|
14607
|
-
fieldTypes:
|
|
14608
|
-
getRow:
|
|
14610
|
+
fieldTypes: CW,
|
|
14611
|
+
getRow: dW,
|
|
14609
14612
|
isSelectable: zW,
|
|
14610
|
-
isRowSelected: !!PW[
|
|
14613
|
+
isRowSelected: !!PW[hW],
|
|
14611
14614
|
handleRowSelectionChange: FW,
|
|
14612
|
-
previewColumn:
|
|
14613
|
-
totalColumns:
|
|
14614
|
-
tableId:
|
|
14615
|
+
previewColumn: uW,
|
|
14616
|
+
totalColumns: nW,
|
|
14617
|
+
tableId: mW,
|
|
14615
14618
|
table: e2,
|
|
14616
14619
|
showRowExplorer: b && !VW,
|
|
14617
14620
|
showColumnExplorer: BW && !VW,
|
|
14618
|
-
activeTab:
|
|
14619
|
-
onTabChange:
|
|
14621
|
+
activeTab: bW,
|
|
14622
|
+
onTabChange: xW
|
|
14620
14623
|
})
|
|
14621
14624
|
});
|
|
14622
14625
|
}, [
|
|
14623
|
-
|
|
14626
|
+
vW,
|
|
14624
14627
|
b,
|
|
14625
14628
|
BW,
|
|
14626
|
-
|
|
14629
|
+
hW,
|
|
14627
14630
|
IW,
|
|
14628
14631
|
l,
|
|
14629
|
-
|
|
14630
|
-
|
|
14632
|
+
CW,
|
|
14633
|
+
dW,
|
|
14631
14634
|
zW,
|
|
14632
14635
|
PW,
|
|
14633
14636
|
FW,
|
|
14634
|
-
|
|
14635
|
-
|
|
14636
|
-
|
|
14637
|
+
uW,
|
|
14638
|
+
nW,
|
|
14639
|
+
mW,
|
|
14637
14640
|
VW,
|
|
14638
|
-
|
|
14639
|
-
|
|
14641
|
+
bW,
|
|
14642
|
+
xW
|
|
14640
14643
|
]);
|
|
14641
14644
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14642
14645
|
children: [
|
|
@@ -14648,13 +14651,13 @@ ${c}
|
|
|
14648
14651
|
" rows."
|
|
14649
14652
|
]
|
|
14650
14653
|
}),
|
|
14651
|
-
MW <
|
|
14654
|
+
MW < nW && MW > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14652
14655
|
className: "mb-1 rounded",
|
|
14653
14656
|
children: [
|
|
14654
14657
|
"Result clipped. Showing ",
|
|
14655
14658
|
MW,
|
|
14656
14659
|
" of ",
|
|
14657
|
-
|
|
14660
|
+
nW,
|
|
14658
14661
|
" columns."
|
|
14659
14662
|
]
|
|
14660
14663
|
}),
|
|
@@ -14663,7 +14666,7 @@ ${c}
|
|
|
14663
14666
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
14664
14667
|
}),
|
|
14665
14668
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
14666
|
-
value:
|
|
14669
|
+
value: SW,
|
|
14667
14670
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
14668
14671
|
label: e,
|
|
14669
14672
|
align: "top",
|
|
@@ -14673,12 +14676,12 @@ ${c}
|
|
|
14673
14676
|
rawData: c,
|
|
14674
14677
|
columns: NW,
|
|
14675
14678
|
className: R,
|
|
14676
|
-
maxHeight:
|
|
14679
|
+
maxHeight: pW,
|
|
14677
14680
|
sorting: B,
|
|
14678
14681
|
totalRows: l,
|
|
14679
14682
|
sizeBytes: u,
|
|
14680
14683
|
sizeBytesIsLoading: d,
|
|
14681
|
-
totalColumns:
|
|
14684
|
+
totalColumns: nW,
|
|
14682
14685
|
manualSorting: true,
|
|
14683
14686
|
setSorting: H,
|
|
14684
14687
|
pagination: p,
|
|
@@ -14688,34 +14691,34 @@ ${c}
|
|
|
14688
14691
|
setPaginationState: M,
|
|
14689
14692
|
rowSelection: PW,
|
|
14690
14693
|
cellSelection: LW,
|
|
14691
|
-
cellStyling:
|
|
14692
|
-
hoverTemplate:
|
|
14693
|
-
cellHoverTexts:
|
|
14694
|
+
cellStyling: iW,
|
|
14695
|
+
hoverTemplate: aW,
|
|
14696
|
+
cellHoverTexts: oW,
|
|
14694
14697
|
downloadAs: _ ? I : void 0,
|
|
14695
|
-
|
|
14698
|
+
showSearch: W,
|
|
14696
14699
|
searchQuery: G,
|
|
14697
14700
|
onSearchQueryChange: q,
|
|
14698
14701
|
showFilters: g,
|
|
14699
|
-
filters:
|
|
14702
|
+
filters: qU,
|
|
14700
14703
|
onFiltersChange: Z,
|
|
14701
|
-
calculateTopKRows:
|
|
14702
|
-
reloading:
|
|
14704
|
+
calculateTopKRows: lW,
|
|
14705
|
+
reloading: JU,
|
|
14703
14706
|
onRowSelectionChange: FW,
|
|
14704
|
-
freezeColumnsLeft:
|
|
14705
|
-
freezeColumnsRight:
|
|
14706
|
-
hiddenColumns:
|
|
14707
|
+
freezeColumnsLeft: YU,
|
|
14708
|
+
freezeColumnsRight: XU,
|
|
14709
|
+
hiddenColumns: ZU,
|
|
14707
14710
|
onCellSelectionChange: RW,
|
|
14708
|
-
getRowIds:
|
|
14709
|
-
toggleDisplayHeader:
|
|
14711
|
+
getRowIds: rW,
|
|
14712
|
+
toggleDisplayHeader: sW,
|
|
14710
14713
|
showChartBuilder: S && !HW,
|
|
14711
|
-
isChartBuilderOpen:
|
|
14714
|
+
isChartBuilderOpen: cW,
|
|
14712
14715
|
showPageSizeSelector: v,
|
|
14713
14716
|
showTableExplorer: (b || BW) && !VW && !HW,
|
|
14714
|
-
togglePanel:
|
|
14715
|
-
isPanelOpen:
|
|
14716
|
-
isAnyPanelOpen:
|
|
14717
|
-
viewedRowIdx:
|
|
14718
|
-
onViewedRowChange: (e2) =>
|
|
14717
|
+
togglePanel: yW,
|
|
14718
|
+
isPanelOpen: _W,
|
|
14719
|
+
isAnyPanelOpen: vW,
|
|
14720
|
+
viewedRowIdx: hW,
|
|
14721
|
+
onViewedRowChange: (e2) => gW(e2),
|
|
14719
14722
|
renderTableExplorerPanel: UW
|
|
14720
14723
|
})
|
|
14721
14724
|
})
|
|
@@ -15075,7 +15078,7 @@ ${c}
|
|
|
15075
15078
|
fullWidth: m,
|
|
15076
15079
|
children: T
|
|
15077
15080
|
}), r[20] = m, r[21] = g, r[22] = c, r[23] = T, r[24] = E) : E = r[24], E;
|
|
15078
|
-
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
15081
|
+
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-WqG-xX4l.js"));
|
|
15079
15082
|
const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object({
|
|
15080
15083
|
label: string().nullish(),
|
|
15081
15084
|
data: string()
|
|
@@ -16768,29 +16771,29 @@ ${c}
|
|
|
16768
16771
|
], r[2] = S, r[3] = w);
|
|
16769
16772
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
16770
16773
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
16771
|
-
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,
|
|
16772
|
-
r[6] === d ?
|
|
16774
|
+
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, qU] = (0, import_react.useState)(f || EMPTY), Z = (0, import_react.useRef)(null), JU;
|
|
16775
|
+
r[6] === d ? JU = r[7] : (JU = (e2) => {
|
|
16773
16776
|
var _a3;
|
|
16774
16777
|
d && e2 !== "transform" && ((_a3 = Z.current) == null ? void 0 : _a3.submit());
|
|
16775
|
-
}, r[6] = d, r[7] =
|
|
16776
|
-
let
|
|
16777
|
-
r[8] === q ?
|
|
16778
|
-
|
|
16779
|
-
}, r[8] = q, r[9] =
|
|
16780
|
-
let
|
|
16781
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
16782
|
-
let e2 =
|
|
16778
|
+
}, r[6] = d, r[7] = JU);
|
|
16779
|
+
let YU = JU, XU = (0, import_react.useRef)(q), ZU;
|
|
16780
|
+
r[8] === q ? ZU = r[9] : (ZU = () => {
|
|
16781
|
+
XU.current = q;
|
|
16782
|
+
}, r[8] = q, r[9] = ZU), (0, import_react.useEffect)(ZU);
|
|
16783
|
+
let QU;
|
|
16784
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (QU = () => {
|
|
16785
|
+
let e2 = XU.current;
|
|
16783
16786
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
16784
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
16785
|
-
let
|
|
16786
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
16787
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = QU) : QU = r[12];
|
|
16788
|
+
let $U = f == null ? void 0 : f.transforms.length, eW;
|
|
16789
|
+
r[13] !== T || r[14] !== p || r[15] !== $U ? (eW = [
|
|
16787
16790
|
T,
|
|
16788
|
-
|
|
16789
|
-
|
|
16791
|
+
$U,
|
|
16792
|
+
XU,
|
|
16790
16793
|
p
|
|
16791
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
16792
|
-
let
|
|
16793
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16794
|
+
], r[13] = T, r[14] = p, r[15] = $U, r[16] = eW) : eW = r[16], (0, import_react.useEffect)(QU, eW);
|
|
16795
|
+
let tW;
|
|
16796
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (tW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16794
16797
|
value: "transform",
|
|
16795
16798
|
className: "text-xs py-1",
|
|
16796
16799
|
children: [
|
|
@@ -16799,9 +16802,9 @@ ${c}
|
|
|
16799
16802
|
}),
|
|
16800
16803
|
"Transform"
|
|
16801
16804
|
]
|
|
16802
|
-
}), r[17] =
|
|
16803
|
-
let
|
|
16804
|
-
r[18] === H ?
|
|
16805
|
+
}), r[17] = tW) : tW = r[17];
|
|
16806
|
+
let nW;
|
|
16807
|
+
r[18] === H ? nW = r[19] : (nW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16805
16808
|
value: "python-code",
|
|
16806
16809
|
className: "text-xs py-1",
|
|
16807
16810
|
children: [
|
|
@@ -16810,9 +16813,9 @@ ${c}
|
|
|
16810
16813
|
}),
|
|
16811
16814
|
"Python Code"
|
|
16812
16815
|
]
|
|
16813
|
-
}), r[18] = H, r[19] =
|
|
16814
|
-
let
|
|
16815
|
-
r[20] === W ?
|
|
16816
|
+
}), r[18] = H, r[19] = nW);
|
|
16817
|
+
let rW;
|
|
16818
|
+
r[20] === W ? rW = r[21] : (rW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16816
16819
|
value: "sql-code",
|
|
16817
16820
|
className: "text-xs py-1",
|
|
16818
16821
|
children: [
|
|
@@ -16821,54 +16824,54 @@ ${c}
|
|
|
16821
16824
|
}),
|
|
16822
16825
|
"SQL Code"
|
|
16823
16826
|
]
|
|
16824
|
-
}), r[20] = W, r[21] =
|
|
16825
|
-
let
|
|
16826
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16827
|
+
}), r[20] = W, r[21] = rW);
|
|
16828
|
+
let iW;
|
|
16829
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iW = (0, import_jsx_runtime.jsx)("div", {
|
|
16827
16830
|
className: "grow"
|
|
16828
|
-
}), r[22] =
|
|
16829
|
-
let
|
|
16830
|
-
r[23] !==
|
|
16831
|
+
}), r[22] = iW) : iW = r[22];
|
|
16832
|
+
let aW;
|
|
16833
|
+
r[23] !== nW || r[24] !== rW ? (aW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
16831
16834
|
className: "h-8",
|
|
16832
16835
|
children: [
|
|
16836
|
+
tW,
|
|
16837
|
+
nW,
|
|
16833
16838
|
rW,
|
|
16834
|
-
iW
|
|
16835
|
-
aW,
|
|
16836
|
-
oW
|
|
16839
|
+
iW
|
|
16837
16840
|
]
|
|
16838
|
-
}), r[23] =
|
|
16839
|
-
let
|
|
16840
|
-
r[26] === j ?
|
|
16841
|
+
}), r[23] = nW, r[24] = rW, r[25] = aW) : aW = r[25];
|
|
16842
|
+
let oW;
|
|
16843
|
+
r[26] === j ? oW = r[27] : (oW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16841
16844
|
size: "small"
|
|
16842
|
-
}), r[26] = j, r[27] =
|
|
16843
|
-
let
|
|
16844
|
-
r[28] !==
|
|
16845
|
+
}), r[26] = j, r[27] = oW);
|
|
16846
|
+
let cW;
|
|
16847
|
+
r[28] !== aW || r[29] !== oW ? (cW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16845
16848
|
className: "flex items-center gap-2",
|
|
16846
16849
|
children: [
|
|
16847
|
-
|
|
16848
|
-
|
|
16850
|
+
aW,
|
|
16851
|
+
oW
|
|
16849
16852
|
]
|
|
16850
|
-
}), r[28] =
|
|
16851
|
-
let
|
|
16852
|
-
r[31] !== p || r[32] !== f ? (
|
|
16853
|
-
dequal(e2, f) || (p(e2),
|
|
16854
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
16855
|
-
let
|
|
16856
|
-
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !==
|
|
16853
|
+
}), r[28] = aW, r[29] = oW, r[30] = cW) : cW = r[30];
|
|
16854
|
+
let lW;
|
|
16855
|
+
r[31] !== p || r[32] !== f ? (lW = (e2) => {
|
|
16856
|
+
dequal(e2, f) || (p(e2), qU(e2));
|
|
16857
|
+
}, r[31] = p, r[32] = f, r[33] = lW) : lW = r[33];
|
|
16858
|
+
let uW;
|
|
16859
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== lW ? (uW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16857
16860
|
value: "transform",
|
|
16858
16861
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16859
16862
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
16860
16863
|
ref: Z,
|
|
16861
16864
|
initialValue: q,
|
|
16862
16865
|
columns: c,
|
|
16863
|
-
onChange:
|
|
16864
|
-
onInvalidChange:
|
|
16866
|
+
onChange: lW,
|
|
16867
|
+
onInvalidChange: qU,
|
|
16865
16868
|
getColumnValues: h,
|
|
16866
16869
|
columnTypesPerStep: B,
|
|
16867
16870
|
lazy: d
|
|
16868
16871
|
})
|
|
16869
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
16870
|
-
let
|
|
16871
|
-
r[41] === H ?
|
|
16872
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = lW, r[40] = uW) : uW = r[40];
|
|
16873
|
+
let dW;
|
|
16874
|
+
r[41] === H ? dW = r[42] : (dW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16872
16875
|
value: "python-code",
|
|
16873
16876
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16874
16877
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16877,9 +16880,9 @@ ${c}
|
|
|
16877
16880
|
code: H,
|
|
16878
16881
|
language: "python"
|
|
16879
16882
|
})
|
|
16880
|
-
}), r[41] = H, r[42] =
|
|
16881
|
-
let
|
|
16882
|
-
r[43] === W ?
|
|
16883
|
+
}), r[41] = H, r[42] = dW);
|
|
16884
|
+
let fW;
|
|
16885
|
+
r[43] === W ? fW = r[44] : (fW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16883
16886
|
value: "sql-code",
|
|
16884
16887
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16885
16888
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16888,45 +16891,45 @@ ${c}
|
|
|
16888
16891
|
code: W,
|
|
16889
16892
|
language: "sql"
|
|
16890
16893
|
})
|
|
16891
|
-
}), r[43] = W, r[44] =
|
|
16892
|
-
let
|
|
16893
|
-
r[45] !==
|
|
16894
|
+
}), r[43] = W, r[44] = fW);
|
|
16895
|
+
let pW;
|
|
16896
|
+
r[45] !== YU || r[46] !== cW || r[47] !== uW || r[48] !== dW || r[49] !== fW ? (pW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
16894
16897
|
defaultValue: "transform",
|
|
16895
|
-
onValueChange:
|
|
16898
|
+
onValueChange: YU,
|
|
16896
16899
|
children: [
|
|
16900
|
+
cW,
|
|
16897
16901
|
uW,
|
|
16898
|
-
|
|
16899
|
-
|
|
16900
|
-
mW
|
|
16902
|
+
dW,
|
|
16903
|
+
fW
|
|
16901
16904
|
]
|
|
16902
|
-
}), r[45] =
|
|
16903
|
-
let
|
|
16904
|
-
r[51] === O ?
|
|
16905
|
+
}), r[45] = YU, r[46] = cW, r[47] = uW, r[48] = dW, r[49] = fW, r[50] = pW) : pW = r[50];
|
|
16906
|
+
let mW;
|
|
16907
|
+
r[51] === O ? mW = r[52] : (mW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
16905
16908
|
error: O
|
|
16906
|
-
}), r[51] = O, r[52] =
|
|
16907
|
-
let
|
|
16908
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
16909
|
+
}), r[51] = O, r[52] = mW);
|
|
16910
|
+
let hW = I || "", gW = L ?? 0, _W = G ?? 0, vW = R || Arrays.EMPTY, yW = L && L > 5 || false, bW;
|
|
16911
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== hW || r[61] !== gW || r[62] !== _W || r[63] !== vW || r[64] !== yW ? (bW = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
16909
16912
|
label: null,
|
|
16910
16913
|
className: "rounded-b border-x border-b",
|
|
16911
|
-
data:
|
|
16914
|
+
data: hW,
|
|
16912
16915
|
hasStableRowId: false,
|
|
16913
|
-
totalRows:
|
|
16914
|
-
totalColumns:
|
|
16916
|
+
totalRows: gW,
|
|
16917
|
+
totalColumns: _W,
|
|
16915
16918
|
maxColumns: "all",
|
|
16916
16919
|
pageSize: l,
|
|
16917
16920
|
pagination: true,
|
|
16918
16921
|
fieldTypes: z,
|
|
16919
|
-
rowHeaders:
|
|
16922
|
+
rowHeaders: vW,
|
|
16920
16923
|
showDownload: u,
|
|
16921
16924
|
download_as: _,
|
|
16922
16925
|
get_size_bytes: v,
|
|
16923
|
-
|
|
16926
|
+
showSearch: false,
|
|
16924
16927
|
showFilters: false,
|
|
16925
16928
|
search: g,
|
|
16926
16929
|
showColumnSummaries: false,
|
|
16927
16930
|
showDataTypes: true,
|
|
16928
16931
|
get_column_summaries: getColumnSummaries,
|
|
16929
|
-
showPageSizeSelector:
|
|
16932
|
+
showPageSizeSelector: yW,
|
|
16930
16933
|
showColumnExplorer: false,
|
|
16931
16934
|
showRowExplorer: true,
|
|
16932
16935
|
showChartBuilder: false,
|
|
@@ -16935,15 +16938,15 @@ ${c}
|
|
|
16935
16938
|
selection: null,
|
|
16936
16939
|
lazy: false,
|
|
16937
16940
|
host: y
|
|
16938
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
16939
|
-
let
|
|
16940
|
-
return r[66] !==
|
|
16941
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = hW, r[61] = gW, r[62] = _W, r[63] = vW, r[64] = yW, r[65] = bW) : bW = r[65];
|
|
16942
|
+
let xW;
|
|
16943
|
+
return r[66] !== pW || r[67] !== mW || r[68] !== bW ? (xW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16941
16944
|
children: [
|
|
16942
|
-
|
|
16943
|
-
|
|
16944
|
-
|
|
16945
|
+
pW,
|
|
16946
|
+
mW,
|
|
16947
|
+
bW
|
|
16945
16948
|
]
|
|
16946
|
-
}), r[66] =
|
|
16949
|
+
}), r[66] = pW, r[67] = mW, r[68] = bW, r[69] = xW) : xW = r[69], xW;
|
|
16947
16950
|
});
|
|
16948
16951
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
16949
16952
|
function getColumnSummaries() {
|
|
@@ -17131,28 +17134,28 @@ ${c}
|
|
|
17131
17134
|
}, W = [
|
|
17132
17135
|
B
|
|
17133
17136
|
], r[8] = B, r[9] = H, r[10] = W), (0, import_react.useEffect)(H, W);
|
|
17134
|
-
let G, q,
|
|
17137
|
+
let G, q, qU, Z, YU, XU, ZU, QU, $U;
|
|
17135
17138
|
if (r[11] !== R || r[12] !== z || r[13] !== u || r[14] !== b || r[15] !== f || r[16] !== v || r[17] !== h || r[18] !== d || r[19] !== y || r[20] !== l || r[21] !== c) {
|
|
17136
|
-
|
|
17139
|
+
$U = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
17137
17140
|
bb0: {
|
|
17138
|
-
|
|
17141
|
+
YU = (R == null ? void 0 : R.files) ?? [];
|
|
17139
17142
|
let e2;
|
|
17140
17143
|
r[31] === c ? e2 = r[32] : (e2 = new Set(c.map(_temp$12)), r[31] = c, r[32] = e2);
|
|
17141
17144
|
let m2 = e2, g2 = d === "directory" || d === "all", _2 = d === "file" || d === "all", w;
|
|
17142
17145
|
r[33] !== g2 || r[34] !== _2 ? (w = (e3) => g2 && e3.is_directory || _2 && !e3.is_directory, r[33] = g2, r[34] = _2, r[35] = w) : w = r[35];
|
|
17143
|
-
let T2 =
|
|
17146
|
+
let T2 = YU.filter(w);
|
|
17144
17147
|
if (G = T2.length > 0 && T2.every((e3) => m2.has(e3.path)), !R && z) {
|
|
17145
17148
|
let e3;
|
|
17146
17149
|
r[36] === z.message ? e3 = r[37] : (e3 = (0, import_jsx_runtime.jsx)(Banner, {
|
|
17147
17150
|
kind: "danger",
|
|
17148
17151
|
children: z.message
|
|
17149
|
-
}), r[36] = z.message, r[37] = e3),
|
|
17152
|
+
}), r[36] = z.message, r[37] = e3), $U = e3;
|
|
17150
17153
|
break bb0;
|
|
17151
17154
|
}
|
|
17152
17155
|
let E2;
|
|
17153
17156
|
r[38] === u ? E2 = r[39] : (E2 = PathBuilder.guessDeliminator(u), r[38] = u, r[39] = E2), q = E2.deliminator;
|
|
17154
17157
|
let O2;
|
|
17155
|
-
r[40] === c ? O2 = r[41] : (O2 = c.map(_temp2$7), r[40] = c, r[41] = O2),
|
|
17158
|
+
r[40] === c ? O2 = r[41] : (O2 = c.map(_temp2$7), r[40] = c, r[41] = O2), ZU = O2;
|
|
17156
17159
|
let j2;
|
|
17157
17160
|
r[42] !== q || r[43] !== u || r[44] !== b || r[45] !== v || r[46] !== h || r[47] !== y ? (j2 = function(e3) {
|
|
17158
17161
|
if (b) return;
|
|
@@ -17173,7 +17176,7 @@ ${c}
|
|
|
17173
17176
|
return;
|
|
17174
17177
|
}
|
|
17175
17178
|
y(e3), S(false);
|
|
17176
|
-
}, r[42] = q, r[43] = u, r[44] = b, r[45] = v, r[46] = h, r[47] = y, r[48] = j2) : j2 = r[48],
|
|
17179
|
+
}, r[42] = q, r[43] = u, r[44] = b, r[45] = v, r[46] = h, r[47] = y, r[48] = j2) : j2 = r[48], QU = j2;
|
|
17177
17180
|
let M2;
|
|
17178
17181
|
r[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M2 = function(e3) {
|
|
17179
17182
|
let { path: r2, name: c2, isDirectory: l2 } = e3;
|
|
@@ -17201,9 +17204,9 @@ ${c}
|
|
|
17201
17204
|
let H2 = B2, W2;
|
|
17202
17205
|
r[55] !== v || r[56] !== l || r[57] !== c ? (W2 = function() {
|
|
17203
17206
|
l(c.filter((e3) => Paths.dirname(e3.path) !== v));
|
|
17204
|
-
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58],
|
|
17207
|
+
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58], qU = W2, XU = function() {
|
|
17205
17208
|
let e3 = [];
|
|
17206
|
-
for (let r2 of
|
|
17209
|
+
for (let r2 of YU) {
|
|
17207
17210
|
if (!g2 && r2.is_directory || m2.has(r2.path)) continue;
|
|
17208
17211
|
let c2 = I2({
|
|
17209
17212
|
path: r2.path,
|
|
@@ -17217,32 +17220,32 @@ ${c}
|
|
|
17217
17220
|
...e3
|
|
17218
17221
|
]);
|
|
17219
17222
|
}, Z = [];
|
|
17220
|
-
let
|
|
17221
|
-
r[59] ===
|
|
17222
|
-
let
|
|
17223
|
-
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
17223
|
+
let eW2;
|
|
17224
|
+
r[59] === QU ? eW2 = r[60] : (eW2 = () => QU(PARENT_DIRECTORY), r[59] = QU, r[60] = eW2);
|
|
17225
|
+
let tW2, nW2;
|
|
17226
|
+
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (tW2 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
17224
17227
|
className: "w-[50px] pl-4",
|
|
17225
17228
|
children: (0, import_jsx_runtime.jsx)(CornerLeftUp, {
|
|
17226
17229
|
size: 16
|
|
17227
17230
|
})
|
|
17228
|
-
}),
|
|
17231
|
+
}), nW2 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
17229
17232
|
children: PARENT_DIRECTORY
|
|
17230
|
-
}), r[61] =
|
|
17231
|
-
let
|
|
17232
|
-
r[63] ===
|
|
17233
|
+
}), r[61] = tW2, r[62] = nW2) : (tW2 = r[61], nW2 = r[62]);
|
|
17234
|
+
let rW2;
|
|
17235
|
+
r[63] === eW2 ? rW2 = r[64] : (rW2 = (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17233
17236
|
className: "hover:bg-accent select-none",
|
|
17234
|
-
onClick:
|
|
17237
|
+
onClick: eW2,
|
|
17235
17238
|
children: [
|
|
17236
|
-
|
|
17237
|
-
|
|
17239
|
+
tW2,
|
|
17240
|
+
nW2
|
|
17238
17241
|
]
|
|
17239
|
-
}, "Parent directory"), r[63] =
|
|
17240
|
-
for (let e3 of
|
|
17242
|
+
}, "Parent directory"), r[63] = eW2, r[64] = rW2), Z.push(rW2);
|
|
17243
|
+
for (let e3 of YU) {
|
|
17241
17244
|
let r2 = e3.path;
|
|
17242
17245
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17243
17246
|
let c2 = e3.is_directory ? (e4) => {
|
|
17244
17247
|
let { path: r3 } = e4;
|
|
17245
|
-
return
|
|
17248
|
+
return QU(r3);
|
|
17246
17249
|
} : H2, l2 = FILE_ICON[e3.is_directory ? "directory" : guessFileIconType(e3.name)], u2 = m2.has(r2);
|
|
17247
17250
|
Z.push((0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17248
17251
|
className: cn("hover:bg-accent group select-none", {
|
|
@@ -17274,21 +17277,21 @@ ${c}
|
|
|
17274
17277
|
}, e3.id));
|
|
17275
17278
|
}
|
|
17276
17279
|
}
|
|
17277
|
-
r[11] = R, r[12] = z, r[13] = u, r[14] = b, r[15] = f, r[16] = v, r[17] = h, r[18] = d, r[19] = y, r[20] = l, r[21] = c, r[22] = G, r[23] = q, r[24] =
|
|
17278
|
-
} else G = r[22], q = r[23],
|
|
17279
|
-
if (
|
|
17280
|
-
let nW, rW, iW, aW, oW
|
|
17281
|
-
if (r[65] !== G || r[66] !== R || r[67] !== q || r[68] !==
|
|
17280
|
+
r[11] = R, r[12] = z, r[13] = u, r[14] = b, r[15] = f, r[16] = v, r[17] = h, r[18] = d, r[19] = y, r[20] = l, r[21] = c, r[22] = G, r[23] = q, r[24] = qU, r[25] = Z, r[26] = YU, r[27] = XU, r[28] = ZU, r[29] = QU, r[30] = $U;
|
|
17281
|
+
} else G = r[22], q = r[23], qU = r[24], Z = r[25], YU = r[26], XU = r[27], ZU = r[28], QU = r[29], $U = r[30];
|
|
17282
|
+
if ($U !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return $U;
|
|
17283
|
+
let eW, tW, nW, rW, iW, aW, oW;
|
|
17284
|
+
if (r[65] !== G || r[66] !== R || r[67] !== q || r[68] !== qU || r[69] !== z || r[70] !== Z || r[71] !== YU || r[72] !== u || r[73] !== B || r[74] !== m || r[75] !== f || r[76] !== v || r[77] !== h || r[78] !== XU || r[79] !== ZU || r[80] !== d || r[81] !== QU || r[82] !== l || r[83] !== T || r[84] !== c.length) {
|
|
17282
17285
|
let { parentDirectories: e2 } = getProtocolAndParentDirectories({
|
|
17283
17286
|
path: v,
|
|
17284
17287
|
delimiter: q,
|
|
17285
17288
|
initialPath: u,
|
|
17286
17289
|
restrictNavigation: h
|
|
17287
17290
|
}), g2 = d === "all" ? PluralWords.of("file", "folder") : d === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
17288
|
-
r[92] === z ?
|
|
17291
|
+
r[92] === z ? oW = r[93] : (oW = z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
17289
17292
|
kind: "danger",
|
|
17290
17293
|
children: z.message
|
|
17291
|
-
}), r[92] = z, r[93] =
|
|
17294
|
+
}), r[92] = z, r[93] = oW), eW = (() => {
|
|
17292
17295
|
let e3 = (0, import_jsx_runtime.jsx)(Label, {
|
|
17293
17296
|
children: renderHTML({
|
|
17294
17297
|
html: m ?? `Select ${g2.join(" and ", 2)}...`
|
|
@@ -17305,7 +17308,7 @@ ${c}
|
|
|
17305
17308
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
17306
17309
|
size: "xs",
|
|
17307
17310
|
variant: "link",
|
|
17308
|
-
onClick: G ?
|
|
17311
|
+
onClick: G ? qU : XU,
|
|
17309
17312
|
children: G ? "Deselect all" : "Select all"
|
|
17310
17313
|
})
|
|
17311
17314
|
})
|
|
@@ -17313,18 +17316,18 @@ ${c}
|
|
|
17313
17316
|
}) : e3;
|
|
17314
17317
|
})();
|
|
17315
17318
|
let _2;
|
|
17316
|
-
r[94] ===
|
|
17319
|
+
r[94] === QU ? _2 = r[95] : (_2 = (e3) => QU(e3.target.value), r[94] = QU, r[95] = _2);
|
|
17317
17320
|
let y2 = e2.map(_temp3$5);
|
|
17318
|
-
r[96] !== v || r[97] !== _2 || r[98] !== y2 ? (
|
|
17321
|
+
r[96] !== v || r[97] !== _2 || r[98] !== y2 ? (tW = (0, import_jsx_runtime.jsx)(NativeSelect, {
|
|
17319
17322
|
className: "mt-2 w-full",
|
|
17320
17323
|
placeholder: v,
|
|
17321
17324
|
value: v,
|
|
17322
17325
|
onChange: _2,
|
|
17323
17326
|
children: y2
|
|
17324
|
-
}), r[96] = v, r[97] = _2, r[98] = y2, r[99] =
|
|
17327
|
+
}), r[96] = v, r[97] = _2, r[98] = y2, r[99] = tW) : tW = r[99], r[100] !== R || r[101] !== YU ? (nW = R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
17325
17328
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
17326
|
-
children: R.is_truncated ? `Showing ${
|
|
17327
|
-
}), r[100] = R, r[101] =
|
|
17329
|
+
children: R.is_truncated ? `Showing ${YU.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
17330
|
+
}), r[100] = R, r[101] = YU, r[102] = nW) : nW = r[102];
|
|
17328
17331
|
let b2;
|
|
17329
17332
|
r[103] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b2 = {
|
|
17330
17333
|
height: "14rem"
|
|
@@ -17348,7 +17351,7 @@ ${c}
|
|
|
17348
17351
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17349
17352
|
children: Z
|
|
17350
17353
|
})
|
|
17351
|
-
}), r[106] = Z, r[107] = E2), r[108] !== B || r[109] !== S2 || r[110] !== E2 ? (
|
|
17354
|
+
}), r[106] = Z, r[107] = E2), r[108] !== B || r[109] !== S2 || r[110] !== E2 ? (rW = (0, import_jsx_runtime.jsxs)("div", {
|
|
17352
17355
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
17353
17356
|
style: b2,
|
|
17354
17357
|
"aria-busy": B,
|
|
@@ -17357,7 +17360,7 @@ ${c}
|
|
|
17357
17360
|
S2,
|
|
17358
17361
|
E2
|
|
17359
17362
|
]
|
|
17360
|
-
}), r[108] = B, r[109] = S2, r[110] = E2, r[111] =
|
|
17363
|
+
}), r[108] = B, r[109] = S2, r[110] = E2, r[111] = rW) : rW = r[111], iW = "mt-4", aW = c.length > 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
17361
17364
|
children: [
|
|
17362
17365
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
17363
17366
|
className: "flex items-center gap-2",
|
|
@@ -17387,28 +17390,28 @@ ${c}
|
|
|
17387
17390
|
marginBlock: 0
|
|
17388
17391
|
},
|
|
17389
17392
|
className: "m-0 text-xs text-muted-foreground",
|
|
17390
|
-
children:
|
|
17393
|
+
children: ZU
|
|
17391
17394
|
})
|
|
17392
17395
|
})
|
|
17393
17396
|
]
|
|
17394
|
-
}), r[65] = G, r[66] = R, r[67] = q, r[68] =
|
|
17395
|
-
} else
|
|
17396
|
-
let
|
|
17397
|
-
r[112] !==
|
|
17398
|
-
className:
|
|
17399
|
-
children:
|
|
17400
|
-
}), r[112] =
|
|
17401
|
-
let
|
|
17402
|
-
return r[115] !==
|
|
17397
|
+
}), r[65] = G, r[66] = R, r[67] = q, r[68] = qU, r[69] = z, r[70] = Z, r[71] = YU, r[72] = u, r[73] = B, r[74] = m, r[75] = f, r[76] = v, r[77] = h, r[78] = XU, r[79] = ZU, r[80] = d, r[81] = QU, r[82] = l, r[83] = T, r[84] = c.length, r[85] = eW, r[86] = tW, r[87] = nW, r[88] = rW, r[89] = iW, r[90] = aW, r[91] = oW;
|
|
17398
|
+
} else eW = r[85], tW = r[86], nW = r[87], rW = r[88], iW = r[89], aW = r[90], oW = r[91];
|
|
17399
|
+
let sW;
|
|
17400
|
+
r[112] !== iW || r[113] !== aW ? (sW = (0, import_jsx_runtime.jsx)("div", {
|
|
17401
|
+
className: iW,
|
|
17402
|
+
children: aW
|
|
17403
|
+
}), r[112] = iW, r[113] = aW, r[114] = sW) : sW = r[114];
|
|
17404
|
+
let cW;
|
|
17405
|
+
return r[115] !== eW || r[116] !== tW || r[117] !== nW || r[118] !== rW || r[119] !== sW || r[120] !== oW ? (cW = (0, import_jsx_runtime.jsxs)("div", {
|
|
17403
17406
|
children: [
|
|
17404
|
-
|
|
17407
|
+
oW,
|
|
17408
|
+
eW,
|
|
17409
|
+
tW,
|
|
17405
17410
|
nW,
|
|
17406
17411
|
rW,
|
|
17407
|
-
|
|
17408
|
-
aW,
|
|
17409
|
-
lW
|
|
17412
|
+
sW
|
|
17410
17413
|
]
|
|
17411
|
-
}), r[115] =
|
|
17414
|
+
}), r[115] = eW, r[116] = tW, r[117] = nW, r[118] = rW, r[119] = sW, r[120] = oW, r[121] = cW) : cW = r[121], cW;
|
|
17412
17415
|
};
|
|
17413
17416
|
function _temp$12(e) {
|
|
17414
17417
|
return e.path;
|
|
@@ -22798,55 +22801,55 @@ ${c}
|
|
|
22798
22801
|
return typeof S == "function" ? S : noop$2;
|
|
22799
22802
|
}, [
|
|
22800
22803
|
S
|
|
22801
|
-
]), q = (0, import_react.useRef)(null),
|
|
22802
|
-
!
|
|
22803
|
-
|
|
22804
|
+
]), q = (0, import_react.useRef)(null), qU = (0, import_react.useRef)(null), Z = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), JU = Z[0], YU = Z[1], XU = JU.isFocused, ZU = JU.isFileDialogActive, QU = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), $U = function() {
|
|
22805
|
+
!QU.current && ZU && setTimeout(function() {
|
|
22806
|
+
qU.current && (qU.current.files.length || (YU({
|
|
22804
22807
|
type: "closeDialog"
|
|
22805
22808
|
}), G()));
|
|
22806
22809
|
}, 300);
|
|
22807
22810
|
};
|
|
22808
22811
|
(0, import_react.useEffect)(function() {
|
|
22809
|
-
return window.addEventListener("focus",
|
|
22810
|
-
window.removeEventListener("focus",
|
|
22812
|
+
return window.addEventListener("focus", $U, false), function() {
|
|
22813
|
+
window.removeEventListener("focus", $U, false);
|
|
22811
22814
|
};
|
|
22812
22815
|
}, [
|
|
22813
|
-
|
|
22814
|
-
|
|
22816
|
+
qU,
|
|
22817
|
+
ZU,
|
|
22815
22818
|
G,
|
|
22816
|
-
|
|
22819
|
+
QU
|
|
22817
22820
|
]);
|
|
22818
|
-
var
|
|
22819
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
22821
|
+
var eW = (0, import_react.useRef)([]), tW = (0, import_react.useRef)([]), nW = function(e2) {
|
|
22822
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), eW.current = []);
|
|
22820
22823
|
};
|
|
22821
22824
|
(0, import_react.useEffect)(function() {
|
|
22822
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
22823
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
22825
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", nW, false)), function() {
|
|
22826
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", nW));
|
|
22824
22827
|
};
|
|
22825
22828
|
}, [
|
|
22826
22829
|
q,
|
|
22827
22830
|
O
|
|
22828
22831
|
]), (0, import_react.useEffect)(function() {
|
|
22829
22832
|
var e2 = function(e3) {
|
|
22830
|
-
|
|
22833
|
+
tW.current = [].concat(_toConsumableArray(tW.current), [
|
|
22831
22834
|
e3.target
|
|
22832
|
-
]), isEvtWithFiles(e3) &&
|
|
22835
|
+
]), isEvtWithFiles(e3) && YU({
|
|
22833
22836
|
isDragGlobal: true,
|
|
22834
22837
|
type: "setDragGlobal"
|
|
22835
22838
|
});
|
|
22836
22839
|
}, r2 = function(e3) {
|
|
22837
|
-
|
|
22840
|
+
tW.current = tW.current.filter(function(r3) {
|
|
22838
22841
|
return r3 !== e3.target && r3 !== null;
|
|
22839
|
-
}), !(
|
|
22842
|
+
}), !(tW.current.length > 0) && YU({
|
|
22840
22843
|
isDragGlobal: false,
|
|
22841
22844
|
type: "setDragGlobal"
|
|
22842
22845
|
});
|
|
22843
22846
|
}, c2 = function() {
|
|
22844
|
-
|
|
22847
|
+
tW.current = [], YU({
|
|
22845
22848
|
isDragGlobal: false,
|
|
22846
22849
|
type: "setDragGlobal"
|
|
22847
22850
|
});
|
|
22848
22851
|
}, l2 = function() {
|
|
22849
|
-
|
|
22852
|
+
tW.current = [], YU({
|
|
22850
22853
|
isDragGlobal: false,
|
|
22851
22854
|
type: "setDragGlobal"
|
|
22852
22855
|
});
|
|
@@ -22864,12 +22867,12 @@ ${c}
|
|
|
22864
22867
|
E,
|
|
22865
22868
|
l
|
|
22866
22869
|
]);
|
|
22867
|
-
var
|
|
22870
|
+
var rW = (0, import_react.useCallback)(function(e2) {
|
|
22868
22871
|
R ? R(e2) : console.error(e2);
|
|
22869
22872
|
}, [
|
|
22870
22873
|
R
|
|
22871
|
-
]),
|
|
22872
|
-
e2.preventDefault(), e2.persist(),
|
|
22874
|
+
]), iW = (0, import_react.useCallback)(function(e2) {
|
|
22875
|
+
e2.preventDefault(), e2.persist(), _W(e2), eW.current = [].concat(_toConsumableArray(eW.current), [
|
|
22873
22876
|
e2.target
|
|
22874
22877
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22875
22878
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -22882,7 +22885,7 @@ ${c}
|
|
|
22882
22885
|
maxFiles: m,
|
|
22883
22886
|
validator: z
|
|
22884
22887
|
});
|
|
22885
|
-
|
|
22888
|
+
YU({
|
|
22886
22889
|
isDragAccept: l2,
|
|
22887
22890
|
isDragReject: c2 > 0 && !l2,
|
|
22888
22891
|
isDragActive: true,
|
|
@@ -22890,12 +22893,12 @@ ${c}
|
|
|
22890
22893
|
}), h && h(e2);
|
|
22891
22894
|
}
|
|
22892
22895
|
}).catch(function(e3) {
|
|
22893
|
-
return
|
|
22896
|
+
return rW(e3);
|
|
22894
22897
|
});
|
|
22895
22898
|
}, [
|
|
22896
22899
|
u,
|
|
22897
22900
|
h,
|
|
22898
|
-
|
|
22901
|
+
rW,
|
|
22899
22902
|
L,
|
|
22900
22903
|
B,
|
|
22901
22904
|
f,
|
|
@@ -22903,8 +22906,8 @@ ${c}
|
|
|
22903
22906
|
p,
|
|
22904
22907
|
m,
|
|
22905
22908
|
z
|
|
22906
|
-
]),
|
|
22907
|
-
e2.preventDefault(), e2.persist(),
|
|
22909
|
+
]), aW = (0, import_react.useCallback)(function(e2) {
|
|
22910
|
+
e2.preventDefault(), e2.persist(), _W(e2);
|
|
22908
22911
|
var r2 = isEvtWithFiles(e2);
|
|
22909
22912
|
if (r2 && e2.dataTransfer) try {
|
|
22910
22913
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -22914,12 +22917,12 @@ ${c}
|
|
|
22914
22917
|
}, [
|
|
22915
22918
|
_,
|
|
22916
22919
|
L
|
|
22917
|
-
]),
|
|
22918
|
-
e2.preventDefault(), e2.persist(),
|
|
22919
|
-
var r2 =
|
|
22920
|
+
]), oW = (0, import_react.useCallback)(function(e2) {
|
|
22921
|
+
e2.preventDefault(), e2.persist(), _W(e2);
|
|
22922
|
+
var r2 = eW.current.filter(function(e3) {
|
|
22920
22923
|
return q.current && q.current.contains(e3);
|
|
22921
22924
|
}), c2 = r2.indexOf(e2.target);
|
|
22922
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
22925
|
+
c2 !== -1 && r2.splice(c2, 1), eW.current = r2, !(r2.length > 0) && (YU({
|
|
22923
22926
|
type: "setDraggedFiles",
|
|
22924
22927
|
isDragActive: false,
|
|
22925
22928
|
isDragAccept: false,
|
|
@@ -22929,7 +22932,7 @@ ${c}
|
|
|
22929
22932
|
q,
|
|
22930
22933
|
g,
|
|
22931
22934
|
L
|
|
22932
|
-
]),
|
|
22935
|
+
]), sW = (0, import_react.useCallback)(function(e2, r2) {
|
|
22933
22936
|
var c2 = [], l2 = [];
|
|
22934
22937
|
e2.forEach(function(e3) {
|
|
22935
22938
|
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;
|
|
@@ -22953,14 +22956,14 @@ ${c}
|
|
|
22953
22956
|
TOO_MANY_FILES_REJECTION
|
|
22954
22957
|
]
|
|
22955
22958
|
});
|
|
22956
|
-
}), c2.splice(0)),
|
|
22959
|
+
}), c2.splice(0)), YU({
|
|
22957
22960
|
acceptedFiles: c2,
|
|
22958
22961
|
fileRejections: l2,
|
|
22959
22962
|
isDragReject: l2.length > 0,
|
|
22960
22963
|
type: "setFiles"
|
|
22961
22964
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
22962
22965
|
}, [
|
|
22963
|
-
|
|
22966
|
+
YU,
|
|
22964
22967
|
p,
|
|
22965
22968
|
B,
|
|
22966
22969
|
f,
|
|
@@ -22970,22 +22973,22 @@ ${c}
|
|
|
22970
22973
|
y,
|
|
22971
22974
|
b,
|
|
22972
22975
|
z
|
|
22973
|
-
]),
|
|
22974
|
-
e2.preventDefault(), e2.persist(),
|
|
22975
|
-
isPropagationStopped(e2) && !L ||
|
|
22976
|
+
]), cW = (0, import_react.useCallback)(function(e2) {
|
|
22977
|
+
e2.preventDefault(), e2.persist(), _W(e2), eW.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22978
|
+
isPropagationStopped(e2) && !L || sW(r2, e2);
|
|
22976
22979
|
}).catch(function(e3) {
|
|
22977
|
-
return
|
|
22978
|
-
}),
|
|
22980
|
+
return rW(e3);
|
|
22981
|
+
}), YU({
|
|
22979
22982
|
type: "reset"
|
|
22980
22983
|
});
|
|
22981
22984
|
}, [
|
|
22982
22985
|
u,
|
|
22983
|
-
|
|
22984
|
-
|
|
22986
|
+
sW,
|
|
22987
|
+
rW,
|
|
22985
22988
|
L
|
|
22986
|
-
]),
|
|
22987
|
-
if (
|
|
22988
|
-
|
|
22989
|
+
]), lW = (0, import_react.useCallback)(function() {
|
|
22990
|
+
if (QU.current) {
|
|
22991
|
+
YU({
|
|
22989
22992
|
type: "openDialog"
|
|
22990
22993
|
}), W();
|
|
22991
22994
|
var e2 = {
|
|
@@ -22995,66 +22998,66 @@ ${c}
|
|
|
22995
22998
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
22996
22999
|
return u(e3);
|
|
22997
23000
|
}).then(function(e3) {
|
|
22998
|
-
|
|
23001
|
+
sW(e3, null), YU({
|
|
22999
23002
|
type: "closeDialog"
|
|
23000
23003
|
});
|
|
23001
23004
|
}).catch(function(e3) {
|
|
23002
|
-
isAbort(e3) ? (G(e3),
|
|
23005
|
+
isAbort(e3) ? (G(e3), YU({
|
|
23003
23006
|
type: "closeDialog"
|
|
23004
|
-
})) : isSecurityError(e3) ? (
|
|
23007
|
+
})) : isSecurityError(e3) ? (QU.current = false, qU.current ? (qU.current.value = null, qU.current.click()) : rW(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."))) : rW(e3);
|
|
23005
23008
|
});
|
|
23006
23009
|
return;
|
|
23007
23010
|
}
|
|
23008
|
-
|
|
23011
|
+
qU.current && (YU({
|
|
23009
23012
|
type: "openDialog"
|
|
23010
|
-
}), W(),
|
|
23013
|
+
}), W(), qU.current.value = null, qU.current.click());
|
|
23011
23014
|
}, [
|
|
23012
|
-
|
|
23015
|
+
YU,
|
|
23013
23016
|
W,
|
|
23014
23017
|
G,
|
|
23015
23018
|
T,
|
|
23016
|
-
|
|
23017
|
-
|
|
23019
|
+
sW,
|
|
23020
|
+
rW,
|
|
23018
23021
|
H,
|
|
23019
23022
|
p
|
|
23020
|
-
]),
|
|
23021
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
23023
|
+
]), uW = (0, import_react.useCallback)(function(e2) {
|
|
23024
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), lW());
|
|
23022
23025
|
}, [
|
|
23023
23026
|
q,
|
|
23024
|
-
|
|
23025
|
-
]),
|
|
23026
|
-
|
|
23027
|
+
lW
|
|
23028
|
+
]), dW = (0, import_react.useCallback)(function() {
|
|
23029
|
+
YU({
|
|
23027
23030
|
type: "focus"
|
|
23028
23031
|
});
|
|
23029
|
-
}, []),
|
|
23030
|
-
|
|
23032
|
+
}, []), fW = (0, import_react.useCallback)(function() {
|
|
23033
|
+
YU({
|
|
23031
23034
|
type: "blur"
|
|
23032
23035
|
});
|
|
23033
|
-
}, []),
|
|
23034
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
23036
|
+
}, []), pW = (0, import_react.useCallback)(function() {
|
|
23037
|
+
j || (isIeOrEdge() ? setTimeout(lW, 0) : lW());
|
|
23035
23038
|
}, [
|
|
23036
23039
|
j,
|
|
23037
|
-
|
|
23038
|
-
]),
|
|
23040
|
+
lW
|
|
23041
|
+
]), mW = function(e2) {
|
|
23039
23042
|
return l ? null : e2;
|
|
23043
|
+
}, hW = function(e2) {
|
|
23044
|
+
return M ? null : mW(e2);
|
|
23045
|
+
}, gW = function(e2) {
|
|
23046
|
+
return I ? null : mW(e2);
|
|
23040
23047
|
}, _W = function(e2) {
|
|
23041
|
-
return M ? null : gW(e2);
|
|
23042
|
-
}, vW = function(e2) {
|
|
23043
|
-
return I ? null : gW(e2);
|
|
23044
|
-
}, yW = function(e2) {
|
|
23045
23048
|
L && e2.stopPropagation();
|
|
23046
|
-
},
|
|
23049
|
+
}, vW = (0, import_react.useMemo)(function() {
|
|
23047
23050
|
return function() {
|
|
23048
23051
|
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);
|
|
23049
23052
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
23050
|
-
onKeyDown:
|
|
23051
|
-
onFocus:
|
|
23052
|
-
onBlur:
|
|
23053
|
-
onClick:
|
|
23054
|
-
onDragEnter:
|
|
23055
|
-
onDragOver:
|
|
23056
|
-
onDragLeave:
|
|
23057
|
-
onDrop:
|
|
23053
|
+
onKeyDown: hW(composeEventHandlers(d2, uW)),
|
|
23054
|
+
onFocus: hW(composeEventHandlers(f2, dW)),
|
|
23055
|
+
onBlur: hW(composeEventHandlers(p2, fW)),
|
|
23056
|
+
onClick: mW(composeEventHandlers(m2, pW)),
|
|
23057
|
+
onDragEnter: gW(composeEventHandlers(h2, iW)),
|
|
23058
|
+
onDragOver: gW(composeEventHandlers(g2, aW)),
|
|
23059
|
+
onDragLeave: gW(composeEventHandlers(_2, oW)),
|
|
23060
|
+
onDrop: gW(composeEventHandlers(v2, cW)),
|
|
23058
23061
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23059
23062
|
}, c2, q), !l && !M ? {
|
|
23060
23063
|
tabIndex: 0
|
|
@@ -23062,20 +23065,20 @@ ${c}
|
|
|
23062
23065
|
};
|
|
23063
23066
|
}, [
|
|
23064
23067
|
q,
|
|
23068
|
+
uW,
|
|
23069
|
+
dW,
|
|
23065
23070
|
fW,
|
|
23066
23071
|
pW,
|
|
23067
|
-
|
|
23068
|
-
|
|
23072
|
+
iW,
|
|
23073
|
+
aW,
|
|
23069
23074
|
oW,
|
|
23070
|
-
sW,
|
|
23071
23075
|
cW,
|
|
23072
|
-
uW,
|
|
23073
23076
|
M,
|
|
23074
23077
|
I,
|
|
23075
23078
|
l
|
|
23076
|
-
]),
|
|
23079
|
+
]), yW = (0, import_react.useCallback)(function(e2) {
|
|
23077
23080
|
e2.stopPropagation();
|
|
23078
|
-
}, []),
|
|
23081
|
+
}, []), bW = (0, import_react.useMemo)(function() {
|
|
23079
23082
|
return function() {
|
|
23080
23083
|
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);
|
|
23081
23084
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -23094,25 +23097,25 @@ ${c}
|
|
|
23094
23097
|
width: "1px",
|
|
23095
23098
|
whiteSpace: "nowrap"
|
|
23096
23099
|
},
|
|
23097
|
-
onChange:
|
|
23098
|
-
onClick:
|
|
23100
|
+
onChange: mW(composeEventHandlers(l2, cW)),
|
|
23101
|
+
onClick: mW(composeEventHandlers(u2, yW)),
|
|
23099
23102
|
tabIndex: -1
|
|
23100
|
-
}, c2,
|
|
23103
|
+
}, c2, qU)), d2);
|
|
23101
23104
|
};
|
|
23102
23105
|
}, [
|
|
23103
|
-
|
|
23106
|
+
qU,
|
|
23104
23107
|
c,
|
|
23105
23108
|
p,
|
|
23106
|
-
|
|
23109
|
+
cW,
|
|
23107
23110
|
l
|
|
23108
23111
|
]);
|
|
23109
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
23110
|
-
isFocused:
|
|
23111
|
-
getRootProps:
|
|
23112
|
-
getInputProps:
|
|
23112
|
+
return _objectSpread$7(_objectSpread$7({}, JU), {}, {
|
|
23113
|
+
isFocused: XU && !l,
|
|
23114
|
+
getRootProps: vW,
|
|
23115
|
+
getInputProps: bW,
|
|
23113
23116
|
rootRef: q,
|
|
23114
|
-
inputRef:
|
|
23115
|
-
open:
|
|
23117
|
+
inputRef: qU,
|
|
23118
|
+
open: mW(lW)
|
|
23116
23119
|
});
|
|
23117
23120
|
}
|
|
23118
23121
|
function reducer$2(e, r) {
|
|
@@ -23344,47 +23347,47 @@ ${c}
|
|
|
23344
23347
|
html: I
|
|
23345
23348
|
})
|
|
23346
23349
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
23347
|
-
let q = w && "text-primary",
|
|
23348
|
-
r[48] !== q || r[49] !==
|
|
23349
|
-
let
|
|
23350
|
-
r[51] === Z ?
|
|
23350
|
+
let q = w && "text-primary", qU = T && "text-destructive", Z;
|
|
23351
|
+
r[48] !== q || r[49] !== qU ? (Z = cn(q, qU), r[48] = q, r[49] = qU, r[50] = Z) : Z = r[50];
|
|
23352
|
+
let JU;
|
|
23353
|
+
r[51] === Z ? JU = r[52] : (JU = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23351
23354
|
strokeWidth: 1.4,
|
|
23352
23355
|
className: Z
|
|
23353
|
-
}), r[51] = Z, r[52] =
|
|
23354
|
-
let
|
|
23355
|
-
r[53] !==
|
|
23356
|
-
let
|
|
23357
|
-
r[56] ===
|
|
23356
|
+
}), r[51] = Z, r[52] = JU);
|
|
23357
|
+
let YU = w && "text-primary", XU = T && "text-destructive", ZU;
|
|
23358
|
+
r[53] !== YU || r[54] !== XU ? (ZU = cn(YU, XU), r[53] = YU, r[54] = XU, r[55] = ZU) : ZU = r[55];
|
|
23359
|
+
let QU;
|
|
23360
|
+
r[56] === ZU ? QU = r[57] : (QU = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23358
23361
|
strokeWidth: 1.4,
|
|
23359
|
-
className:
|
|
23360
|
-
}), r[56] =
|
|
23361
|
-
let
|
|
23362
|
-
r[58] !==
|
|
23362
|
+
className: ZU
|
|
23363
|
+
}), r[56] = ZU, r[57] = QU);
|
|
23364
|
+
let $U;
|
|
23365
|
+
r[58] !== JU || r[59] !== QU ? ($U = (0, import_jsx_runtime.jsxs)("div", {
|
|
23363
23366
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
23364
23367
|
children: [
|
|
23365
|
-
|
|
23366
|
-
|
|
23368
|
+
JU,
|
|
23369
|
+
QU
|
|
23367
23370
|
]
|
|
23368
|
-
}), r[58] =
|
|
23369
|
-
let
|
|
23370
|
-
r[61] !== G || r[62] !==
|
|
23371
|
+
}), r[58] = JU, r[59] = QU, r[60] = $U) : $U = r[60];
|
|
23372
|
+
let eW;
|
|
23373
|
+
r[61] !== G || r[62] !== $U ? (eW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23371
23374
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
23372
23375
|
children: [
|
|
23373
23376
|
G,
|
|
23374
|
-
|
|
23377
|
+
$U
|
|
23375
23378
|
]
|
|
23376
|
-
}), r[61] = G, r[62] =
|
|
23377
|
-
let
|
|
23378
|
-
r[64] !== W || r[65] !==
|
|
23379
|
+
}), r[61] = G, r[62] = $U, r[63] = eW) : eW = r[63];
|
|
23380
|
+
let tW;
|
|
23381
|
+
r[64] !== W || r[65] !== eW || r[66] !== z || r[67] !== B ? (tW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23379
23382
|
className: z,
|
|
23380
23383
|
...B,
|
|
23381
23384
|
children: [
|
|
23382
23385
|
W,
|
|
23383
|
-
|
|
23386
|
+
eW
|
|
23384
23387
|
]
|
|
23385
|
-
}), r[64] = W, r[65] =
|
|
23386
|
-
let
|
|
23387
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
23388
|
+
}), r[64] = W, r[65] = eW, r[66] = z, r[67] = B, r[68] = tW) : tW = r[68];
|
|
23389
|
+
let nW;
|
|
23390
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (nW = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
23388
23391
|
className: "flex flex-row gap-1",
|
|
23389
23392
|
children: [
|
|
23390
23393
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23420,17 +23423,17 @@ ${c}
|
|
|
23420
23423
|
})
|
|
23421
23424
|
})
|
|
23422
23425
|
]
|
|
23423
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
23424
|
-
let
|
|
23425
|
-
return r[75] !==
|
|
23426
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = nW) : nW = r[74];
|
|
23427
|
+
let rW;
|
|
23428
|
+
return r[75] !== tW || r[76] !== nW ? (rW = (0, import_jsx_runtime.jsx)("section", {
|
|
23426
23429
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
23427
23430
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
23428
23431
|
children: [
|
|
23429
|
-
|
|
23430
|
-
|
|
23432
|
+
tW,
|
|
23433
|
+
nW
|
|
23431
23434
|
]
|
|
23432
23435
|
})
|
|
23433
|
-
}), r[75] =
|
|
23436
|
+
}), r[75] = tW, r[76] = nW, r[77] = rW) : rW = r[77], rW;
|
|
23434
23437
|
};
|
|
23435
23438
|
function _temp$11(e) {
|
|
23436
23439
|
Logger.error(e), toast({
|
|
@@ -23526,75 +23529,75 @@ ${c}
|
|
|
23526
23529
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
23527
23530
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23528
23531
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
23529
|
-
let
|
|
23530
|
-
r[13] === f ?
|
|
23532
|
+
let qU;
|
|
23533
|
+
r[13] === f ? qU = r[14] : (qU = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23531
23534
|
className: "text-center",
|
|
23532
23535
|
children: renderHTML({
|
|
23533
23536
|
html: f
|
|
23534
23537
|
})
|
|
23535
|
-
}), r[13] = f, r[14] =
|
|
23538
|
+
}), r[13] = f, r[14] = qU);
|
|
23536
23539
|
let Z;
|
|
23537
23540
|
r[15] === L ? Z = r[16] : (Z = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
23538
23541
|
kind: "danger",
|
|
23539
23542
|
className: "rounded",
|
|
23540
23543
|
children: L ?? "Invalid input"
|
|
23541
23544
|
}), r[15] = L, r[16] = Z);
|
|
23542
|
-
let
|
|
23543
|
-
r[17] === c ?
|
|
23545
|
+
let JU;
|
|
23546
|
+
r[17] === c ? JU = r[18] : (JU = (0, import_jsx_runtime.jsx)("div", {
|
|
23544
23547
|
children: c
|
|
23545
|
-
}), r[17] = c, r[18] =
|
|
23546
|
-
let
|
|
23547
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
23548
|
+
}), r[17] = c, r[18] = JU);
|
|
23549
|
+
let YU;
|
|
23550
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (YU = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
23548
23551
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
23549
23552
|
variant: "text",
|
|
23550
23553
|
onClick: (e2) => {
|
|
23551
23554
|
e2.preventDefault(), B();
|
|
23552
23555
|
},
|
|
23553
23556
|
children: S
|
|
23554
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
23555
|
-
let
|
|
23556
|
-
r[23] === h ?
|
|
23557
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = YU) : YU = r[22];
|
|
23558
|
+
let XU = v || h, ZU;
|
|
23559
|
+
r[23] === h ? ZU = r[24] : (ZU = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
23557
23560
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
23558
|
-
}), r[23] = h, r[24] =
|
|
23559
|
-
let
|
|
23560
|
-
r[25] !== g || r[26] !==
|
|
23561
|
+
}), r[23] = h, r[24] = ZU);
|
|
23562
|
+
let QU;
|
|
23563
|
+
r[25] !== g || r[26] !== XU || r[27] !== ZU || r[28] !== I ? (QU = (0, import_jsx_runtime.jsxs)(Button, {
|
|
23561
23564
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
23562
23565
|
variant: I,
|
|
23563
|
-
disabled:
|
|
23566
|
+
disabled: XU,
|
|
23564
23567
|
type: "submit",
|
|
23565
23568
|
children: [
|
|
23566
|
-
|
|
23569
|
+
ZU,
|
|
23567
23570
|
g
|
|
23568
23571
|
]
|
|
23569
|
-
}), r[25] = g, r[26] =
|
|
23570
|
-
let
|
|
23571
|
-
r[30] !== _ || r[31] !==
|
|
23572
|
-
let
|
|
23573
|
-
r[33] !==
|
|
23572
|
+
}), r[25] = g, r[26] = XU, r[27] = ZU, r[28] = I, r[29] = QU) : QU = r[29];
|
|
23573
|
+
let $U;
|
|
23574
|
+
r[30] !== _ || r[31] !== QU ? ($U = withTooltip(QU, _), r[30] = _, r[31] = QU, r[32] = $U) : $U = r[32];
|
|
23575
|
+
let eW;
|
|
23576
|
+
r[33] !== $U || r[34] !== YU ? (eW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23574
23577
|
className: "flex justify-end gap-2 font-code",
|
|
23575
23578
|
children: [
|
|
23576
|
-
|
|
23577
|
-
|
|
23579
|
+
YU,
|
|
23580
|
+
$U
|
|
23578
23581
|
]
|
|
23579
|
-
}), r[33] =
|
|
23580
|
-
let
|
|
23581
|
-
r[36] !==
|
|
23582
|
+
}), r[33] = $U, r[34] = YU, r[35] = eW) : eW = r[35];
|
|
23583
|
+
let tW;
|
|
23584
|
+
r[36] !== eW || r[37] !== G || r[38] !== q || r[39] !== qU || r[40] !== Z || r[41] !== JU ? (tW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23582
23585
|
className: G,
|
|
23583
23586
|
onKeyDown: q,
|
|
23584
23587
|
children: [
|
|
23585
|
-
|
|
23588
|
+
qU,
|
|
23586
23589
|
Z,
|
|
23587
|
-
|
|
23588
|
-
|
|
23590
|
+
JU,
|
|
23591
|
+
eW
|
|
23589
23592
|
]
|
|
23590
|
-
}), r[36] =
|
|
23591
|
-
let
|
|
23592
|
-
return r[43] !==
|
|
23593
|
+
}), r[36] = eW, r[37] = G, r[38] = q, r[39] = qU, r[40] = Z, r[41] = JU, r[42] = tW) : tW = r[42];
|
|
23594
|
+
let nW;
|
|
23595
|
+
return r[43] !== tW || r[44] !== H ? (nW = (0, import_jsx_runtime.jsx)("form", {
|
|
23593
23596
|
className: "contents",
|
|
23594
23597
|
ref: j,
|
|
23595
23598
|
onSubmit: H,
|
|
23596
|
-
children:
|
|
23597
|
-
}), r[43] =
|
|
23599
|
+
children: tW
|
|
23600
|
+
}), r[43] = tW, r[44] = H, r[45] = nW) : nW = r[45], nW;
|
|
23598
23601
|
};
|
|
23599
23602
|
var Form = (e) => {
|
|
23600
23603
|
let r = (0, import_compiler_runtime$42.c)(24), c, l, u, d, f, p;
|
|
@@ -25354,8 +25357,8 @@ ${c}
|
|
|
25354
25357
|
points: extractSunburstPoints(e2.points)
|
|
25355
25358
|
}));
|
|
25356
25359
|
}, r[29] = u, r[30] = G);
|
|
25357
|
-
let q = useEvent_default(G),
|
|
25358
|
-
r[31] === u ?
|
|
25360
|
+
let q = useEvent_default(G), qU;
|
|
25361
|
+
r[31] === u ? qU = r[32] : (qU = (e2) => {
|
|
25359
25362
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25360
25363
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25361
25364
|
u((e3) => ({
|
|
@@ -25366,9 +25369,9 @@ ${c}
|
|
|
25366
25369
|
points: r2,
|
|
25367
25370
|
indices: c2
|
|
25368
25371
|
}));
|
|
25369
|
-
}, r[31] = u, r[32] =
|
|
25370
|
-
let Z = useEvent_default(
|
|
25371
|
-
r[33] === u ?
|
|
25372
|
+
}, r[31] = u, r[32] = qU);
|
|
25373
|
+
let Z = useEvent_default(qU), JU;
|
|
25374
|
+
r[33] === u ? JU = r[34] : (JU = (e2) => {
|
|
25372
25375
|
e2 && u((r2) => ({
|
|
25373
25376
|
...r2,
|
|
25374
25377
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -25377,9 +25380,9 @@ ${c}
|
|
|
25377
25380
|
range: e2.range,
|
|
25378
25381
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
25379
25382
|
}));
|
|
25380
|
-
}, r[33] = u, r[34] =
|
|
25381
|
-
let
|
|
25382
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !==
|
|
25383
|
+
}, r[33] = u, r[34] = JU);
|
|
25384
|
+
let YU = useEvent_default(JU), XU = m.frames ?? void 0, ZU = useEvent_default(_temp3$3), QU;
|
|
25385
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !== YU || r[43] !== XU || r[44] !== ZU || r[45] !== R ? (QU = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25383
25386
|
...m,
|
|
25384
25387
|
layout: h,
|
|
25385
25388
|
onRelayout: R,
|
|
@@ -25388,12 +25391,12 @@ ${c}
|
|
|
25388
25391
|
onSunburstClick: q,
|
|
25389
25392
|
config: L,
|
|
25390
25393
|
onClick: Z,
|
|
25391
|
-
onSelected:
|
|
25394
|
+
onSelected: YU,
|
|
25392
25395
|
className: "w-full",
|
|
25393
25396
|
useResizeHandler: true,
|
|
25394
|
-
frames:
|
|
25395
|
-
onError:
|
|
25396
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] =
|
|
25397
|
+
frames: XU,
|
|
25398
|
+
onError: ZU
|
|
25399
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] = YU, r[43] = XU, r[44] = ZU, r[45] = R, r[46] = QU) : QU = r[46], QU;
|
|
25397
25400
|
});
|
|
25398
25401
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25399
25402
|
function _temp$8(e) {
|
|
@@ -25525,8 +25528,8 @@ ${c}
|
|
|
25525
25528
|
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];
|
|
25526
25529
|
let q;
|
|
25527
25530
|
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];
|
|
25528
|
-
let
|
|
25529
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
25531
|
+
let qU;
|
|
25532
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (qU = (0, import_jsx_runtime.jsx)(Track, {
|
|
25530
25533
|
ref: E,
|
|
25531
25534
|
"data-testid": "track",
|
|
25532
25535
|
className: G,
|
|
@@ -25537,7 +25540,7 @@ ${c}
|
|
|
25537
25540
|
onPointerMove: z,
|
|
25538
25541
|
onPointerUp: H
|
|
25539
25542
|
})
|
|
25540
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25543
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = qU) : qU = c[22];
|
|
25541
25544
|
let Z;
|
|
25542
25545
|
c[23] !== m.setFalse || c[24] !== m.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25543
25546
|
asChild: true,
|
|
@@ -25550,29 +25553,29 @@ ${c}
|
|
|
25550
25553
|
onMouseLeave: m.setFalse
|
|
25551
25554
|
})
|
|
25552
25555
|
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = Z) : Z = c[25];
|
|
25553
|
-
let
|
|
25554
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
25556
|
+
let JU;
|
|
25557
|
+
c[26] !== h || c[27] !== u.value || c[28] !== d ? (JU = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25555
25558
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
25556
25559
|
locale: h
|
|
25557
25560
|
})
|
|
25558
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
25559
|
-
let
|
|
25560
|
-
c[30] ===
|
|
25561
|
-
children:
|
|
25562
|
-
}), c[30] =
|
|
25563
|
-
let
|
|
25564
|
-
c[32] !== f || c[33] !== Z || c[34] !==
|
|
25561
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = JU) : JU = c[29];
|
|
25562
|
+
let YU;
|
|
25563
|
+
c[30] === JU ? YU = c[31] : (YU = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25564
|
+
children: JU
|
|
25565
|
+
}), c[30] = JU, c[31] = YU);
|
|
25566
|
+
let XU;
|
|
25567
|
+
c[32] !== f || c[33] !== Z || c[34] !== YU ? (XU = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25565
25568
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25566
25569
|
delayDuration: 0,
|
|
25567
25570
|
open: f,
|
|
25568
25571
|
children: [
|
|
25569
25572
|
Z,
|
|
25570
|
-
|
|
25573
|
+
YU
|
|
25571
25574
|
]
|
|
25572
25575
|
})
|
|
25573
|
-
}), c[32] = f, c[33] = Z, c[34] =
|
|
25574
|
-
let
|
|
25575
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
25576
|
+
}), c[32] = f, c[33] = Z, c[34] = YU, c[35] = XU) : XU = c[35];
|
|
25577
|
+
let ZU;
|
|
25578
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (ZU = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25576
25579
|
asChild: true,
|
|
25577
25580
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25578
25581
|
"data-testid": "thumb",
|
|
@@ -25582,39 +25585,39 @@ ${c}
|
|
|
25582
25585
|
onMouseEnter: m.setTrue,
|
|
25583
25586
|
onMouseLeave: m.setFalse
|
|
25584
25587
|
})
|
|
25585
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
25586
|
-
let
|
|
25587
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
25588
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = ZU) : ZU = c[38];
|
|
25589
|
+
let QU;
|
|
25590
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (QU = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25588
25591
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
25589
25592
|
locale: h
|
|
25590
25593
|
})
|
|
25591
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
25592
|
-
let
|
|
25593
|
-
c[43] ===
|
|
25594
|
-
children:
|
|
25595
|
-
}), c[43] =
|
|
25596
|
-
let
|
|
25597
|
-
c[45] !== f || c[46] !==
|
|
25594
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = QU) : QU = c[42];
|
|
25595
|
+
let $U;
|
|
25596
|
+
c[43] === QU ? $U = c[44] : ($U = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25597
|
+
children: QU
|
|
25598
|
+
}), c[43] = QU, c[44] = $U);
|
|
25599
|
+
let eW;
|
|
25600
|
+
c[45] !== f || c[46] !== ZU || c[47] !== $U ? (eW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25598
25601
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25599
25602
|
delayDuration: 0,
|
|
25600
25603
|
open: f,
|
|
25601
25604
|
children: [
|
|
25602
|
-
|
|
25603
|
-
|
|
25605
|
+
ZU,
|
|
25606
|
+
$U
|
|
25604
25607
|
]
|
|
25605
25608
|
})
|
|
25606
|
-
}), c[45] = f, c[46] =
|
|
25607
|
-
let
|
|
25608
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25609
|
+
}), c[45] = f, c[46] = ZU, c[47] = $U, c[48] = eW) : eW = c[48];
|
|
25610
|
+
let tW;
|
|
25611
|
+
return c[49] !== M || c[50] !== u || c[51] !== qU || c[52] !== XU || c[53] !== eW || c[54] !== W ? (tW = (0, import_jsx_runtime.jsxs)(Root, {
|
|
25609
25612
|
ref: M,
|
|
25610
25613
|
className: W,
|
|
25611
25614
|
...u,
|
|
25612
25615
|
children: [
|
|
25613
|
-
|
|
25614
|
-
|
|
25615
|
-
|
|
25616
|
+
qU,
|
|
25617
|
+
XU,
|
|
25618
|
+
eW
|
|
25616
25619
|
]
|
|
25617
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25620
|
+
}), c[49] = M, c[50] = u, c[51] = qU, c[52] = XU, c[53] = eW, c[54] = W, c[55] = tW) : tW = c[55], tW;
|
|
25618
25621
|
});
|
|
25619
25622
|
RangeSlider.displayName = Root.displayName;
|
|
25620
25623
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25665,14 +25668,14 @@ ${c}
|
|
|
25665
25668
|
}, q = (e2) => {
|
|
25666
25669
|
h && l(e2);
|
|
25667
25670
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
25668
|
-
let
|
|
25669
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
25671
|
+
let qU, Z;
|
|
25672
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (qU = () => {
|
|
25670
25673
|
h && !dequal(T, u) && l(T);
|
|
25671
25674
|
}, Z = () => {
|
|
25672
25675
|
h && !dequal(T, u) && l(T);
|
|
25673
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
25674
|
-
let
|
|
25675
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !==
|
|
25676
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = qU, r[19] = Z) : (qU = r[18], Z = r[19]);
|
|
25677
|
+
let JU;
|
|
25678
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== qU || r[31] !== Z || r[32] !== b ? (JU = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25676
25679
|
id: S,
|
|
25677
25680
|
className: W,
|
|
25678
25681
|
value: T,
|
|
@@ -25683,36 +25686,36 @@ ${c}
|
|
|
25683
25686
|
disabled: y,
|
|
25684
25687
|
onValueChange: G,
|
|
25685
25688
|
onValueCommit: q,
|
|
25686
|
-
onPointerUp:
|
|
25689
|
+
onPointerUp: qU,
|
|
25687
25690
|
onMouseUp: Z,
|
|
25688
25691
|
valueMap: b
|
|
25689
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
25690
|
-
let
|
|
25691
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
25692
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = qU, r[31] = Z, r[32] = b, r[33] = JU) : JU = r[33];
|
|
25693
|
+
let YU;
|
|
25694
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (YU = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25692
25695
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
25693
25696
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
25694
25697
|
locale: w
|
|
25695
25698
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
25696
25699
|
locale: w
|
|
25697
25700
|
})}`
|
|
25698
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
25699
|
-
let
|
|
25700
|
-
r[39] !==
|
|
25701
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = YU) : YU = r[38];
|
|
25702
|
+
let XU;
|
|
25703
|
+
r[39] !== JU || r[40] !== YU || r[41] !== B ? (XU = (0, import_jsx_runtime.jsxs)("div", {
|
|
25701
25704
|
className: B,
|
|
25702
25705
|
children: [
|
|
25703
|
-
|
|
25704
|
-
|
|
25706
|
+
JU,
|
|
25707
|
+
YU
|
|
25705
25708
|
]
|
|
25706
|
-
}), r[39] =
|
|
25707
|
-
let
|
|
25708
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
25709
|
+
}), r[39] = JU, r[40] = YU, r[41] = B, r[42] = XU) : XU = r[42];
|
|
25710
|
+
let ZU;
|
|
25711
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== XU || r[47] !== M || r[48] !== L ? (ZU = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25709
25712
|
label: c,
|
|
25710
25713
|
id: S,
|
|
25711
25714
|
align: M,
|
|
25712
25715
|
className: L,
|
|
25713
25716
|
fullWidth: v,
|
|
25714
|
-
children:
|
|
25715
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
25717
|
+
children: XU
|
|
25718
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = XU, r[47] = M, r[48] = L, r[49] = ZU) : ZU = r[49], ZU;
|
|
25716
25719
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
25717
25720
|
r.exports = u;
|
|
25718
25721
|
var c = {
|
|
@@ -26418,7 +26421,7 @@ ${c}
|
|
|
26418
26421
|
return true;
|
|
26419
26422
|
}
|
|
26420
26423
|
}
|
|
26421
|
-
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-
|
|
26424
|
+
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-C3AWYGAL.js")), VegaPlugin = class {
|
|
26422
26425
|
constructor() {
|
|
26423
26426
|
__publicField(this, "tagName", "marimo-vega");
|
|
26424
26427
|
__publicField(this, "validator", object({
|
|
@@ -26558,7 +26561,7 @@ ${c}
|
|
|
26558
26561
|
children: e.children
|
|
26559
26562
|
});
|
|
26560
26563
|
}
|
|
26561
|
-
}, LazySlidesComponent$1 = import_react.lazy(() => import("./swiper-component-
|
|
26564
|
+
}, LazySlidesComponent$1 = import_react.lazy(() => import("./swiper-component-BNa_4kh2.js"));
|
|
26562
26565
|
const DownloadPlugin = createPlugin("marimo-download").withData(object({
|
|
26563
26566
|
data: string(),
|
|
26564
26567
|
disabled: boolean().default(false),
|
|
@@ -26748,7 +26751,7 @@ ${c}
|
|
|
26748
26751
|
themeVariables: e.data.theme_variables
|
|
26749
26752
|
});
|
|
26750
26753
|
}
|
|
26751
|
-
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-
|
|
26754
|
+
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-QFAR9YgY.js").then(async (m) => {
|
|
26752
26755
|
await m.__tla;
|
|
26753
26756
|
return m;
|
|
26754
26757
|
})), import_compiler_runtime$22 = require_compiler_runtime();
|
|
@@ -29003,7 +29006,7 @@ ${c}
|
|
|
29003
29006
|
areRegExpsEqual: H,
|
|
29004
29007
|
areSetsEqual: W,
|
|
29005
29008
|
createIsNestedEqual: r2
|
|
29006
|
-
}),
|
|
29009
|
+
}), qU = Object.freeze({
|
|
29007
29010
|
areArraysEqual: O,
|
|
29008
29011
|
areDatesEqual: j,
|
|
29009
29012
|
areMapsEqual: I,
|
|
@@ -29012,39 +29015,39 @@ ${c}
|
|
|
29012
29015
|
areSetsEqual: G,
|
|
29013
29016
|
createIsNestedEqual: r2
|
|
29014
29017
|
}), Z = T(q);
|
|
29015
|
-
function
|
|
29018
|
+
function JU(e3, r3) {
|
|
29016
29019
|
return Z(e3, r3, void 0);
|
|
29017
29020
|
}
|
|
29018
|
-
var
|
|
29021
|
+
var YU = T(l(q, {
|
|
29019
29022
|
createIsNestedEqual: function() {
|
|
29020
29023
|
return f;
|
|
29021
29024
|
}
|
|
29022
29025
|
}));
|
|
29023
|
-
function
|
|
29024
|
-
return
|
|
29026
|
+
function XU(e3, r3) {
|
|
29027
|
+
return YU(e3, r3, void 0);
|
|
29025
29028
|
}
|
|
29026
|
-
var
|
|
29027
|
-
function
|
|
29028
|
-
return
|
|
29029
|
+
var ZU = T(qU);
|
|
29030
|
+
function QU(e3, r3) {
|
|
29031
|
+
return ZU(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29029
29032
|
}
|
|
29030
|
-
var
|
|
29033
|
+
var $U = T(l(qU, {
|
|
29031
29034
|
createIsNestedEqual: function() {
|
|
29032
29035
|
return f;
|
|
29033
29036
|
}
|
|
29034
29037
|
}));
|
|
29035
|
-
function
|
|
29036
|
-
return
|
|
29038
|
+
function eW(e3, r3) {
|
|
29039
|
+
return $U(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29037
29040
|
}
|
|
29038
|
-
function
|
|
29041
|
+
function tW(e3) {
|
|
29039
29042
|
return T(l(q, e3(q)));
|
|
29040
29043
|
}
|
|
29041
|
-
function
|
|
29042
|
-
var r3 = T(l(
|
|
29044
|
+
function nW(e3) {
|
|
29045
|
+
var r3 = T(l(qU, e3(qU)));
|
|
29043
29046
|
return (function(e4, c2, l2) {
|
|
29044
29047
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29045
29048
|
});
|
|
29046
29049
|
}
|
|
29047
|
-
e2.circularDeepEqual =
|
|
29050
|
+
e2.circularDeepEqual = QU, e2.circularShallowEqual = eW, e2.createCustomCircularEqual = nW, e2.createCustomEqual = tW, e2.deepEqual = JU, e2.sameValueZeroEqual = f, e2.shallowEqual = XU, Object.defineProperty(e2, "__esModule", {
|
|
29048
29051
|
value: true
|
|
29049
29052
|
});
|
|
29050
29053
|
}));
|
|
@@ -29070,7 +29073,7 @@ ${c}
|
|
|
29070
29073
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
29071
29074
|
Object.defineProperty(e, "__esModule", {
|
|
29072
29075
|
value: true
|
|
29073
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
29076
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = cW, e.correctBounds = I, e.fastPositionEqual = S, e.fastRGLPropsEqual = void 0, e.getAllCollisions = z, e.getFirstCollision = R, e.getLayoutItem = L, e.getStatics = B, e.modifyLayout = _, e.moveElement = H, e.moveElementAwayFromCollision = W, e.noop = void 0, e.perc = G, e.resizeItemInDirection = eW, e.setTopLeft = nW, e.setTransform = tW, e.sortLayoutItems = rW, e.sortLayoutItemsByColRow = aW, e.sortLayoutItemsByRowCol = iW, e.synchronizeLayoutWithChildren = oW, e.validateLayout = sW, e.withLayoutItem = v;
|
|
29074
29077
|
var r = require_fast_equals(), c = l(require_react());
|
|
29075
29078
|
function l(e2) {
|
|
29076
29079
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -29175,7 +29178,7 @@ ${c}
|
|
|
29175
29178
|
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);
|
|
29176
29179
|
}
|
|
29177
29180
|
function T(e2, r2, c2, l2) {
|
|
29178
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
29181
|
+
let u2 = B(e2), d2 = h(u2), f2 = rW(e2, r2), p2 = Array(e2.length);
|
|
29179
29182
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
29180
29183
|
let h3 = y(f2[m2]);
|
|
29181
29184
|
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;
|
|
@@ -29233,7 +29236,7 @@ ${c}
|
|
|
29233
29236
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
29234
29237
|
let h2 = r2.x, _2 = r2.y;
|
|
29235
29238
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
29236
|
-
let v2 =
|
|
29239
|
+
let v2 = rW(e2, f2);
|
|
29237
29240
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
29238
29241
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
29239
29242
|
if (b2 && m2) return g(e2);
|
|
@@ -29267,15 +29270,15 @@ ${c}
|
|
|
29267
29270
|
function G(e2) {
|
|
29268
29271
|
return e2 * 100 + "%";
|
|
29269
29272
|
}
|
|
29270
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
29273
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, qU = (e2, r2, c2) => e2 < 0 ? r2 : c2, Z = (e2) => Math.max(0, e2), JU = (e2) => Math.max(0, e2), YU = (e2, r2, c2) => {
|
|
29271
29274
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29272
29275
|
return {
|
|
29273
29276
|
left: l2,
|
|
29274
29277
|
width: d2,
|
|
29275
|
-
height:
|
|
29276
|
-
top:
|
|
29278
|
+
height: qU(f2, e2.height, u2),
|
|
29279
|
+
top: JU(f2)
|
|
29277
29280
|
};
|
|
29278
|
-
},
|
|
29281
|
+
}, XU = (e2, r2, c2) => {
|
|
29279
29282
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29280
29283
|
return {
|
|
29281
29284
|
top: l2,
|
|
@@ -29283,45 +29286,45 @@ ${c}
|
|
|
29283
29286
|
width: q(e2.left, e2.width, f2, c2),
|
|
29284
29287
|
left: Z(u2)
|
|
29285
29288
|
};
|
|
29286
|
-
},
|
|
29289
|
+
}, ZU = (e2, r2, c2) => {
|
|
29287
29290
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29288
29291
|
return {
|
|
29289
29292
|
height: u2,
|
|
29290
29293
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
29291
|
-
top:
|
|
29294
|
+
top: JU(l2),
|
|
29292
29295
|
left: Z(f2)
|
|
29293
29296
|
};
|
|
29294
|
-
},
|
|
29297
|
+
}, QU = (e2, r2, c2) => {
|
|
29295
29298
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29296
29299
|
return {
|
|
29297
29300
|
width: f2,
|
|
29298
29301
|
left: u2,
|
|
29299
|
-
height:
|
|
29300
|
-
top:
|
|
29302
|
+
height: qU(l2, e2.height, d2),
|
|
29303
|
+
top: JU(l2)
|
|
29301
29304
|
};
|
|
29302
|
-
},
|
|
29303
|
-
n:
|
|
29305
|
+
}, $U = {
|
|
29306
|
+
n: YU,
|
|
29304
29307
|
ne: function() {
|
|
29305
|
-
return
|
|
29308
|
+
return YU(arguments.length <= 0 ? void 0 : arguments[0], XU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29306
29309
|
},
|
|
29307
|
-
e:
|
|
29310
|
+
e: XU,
|
|
29308
29311
|
se: function() {
|
|
29309
|
-
return
|
|
29312
|
+
return QU(arguments.length <= 0 ? void 0 : arguments[0], XU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29310
29313
|
},
|
|
29311
|
-
s:
|
|
29314
|
+
s: QU,
|
|
29312
29315
|
sw: function() {
|
|
29313
|
-
return
|
|
29316
|
+
return QU(arguments.length <= 0 ? void 0 : arguments[0], ZU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29314
29317
|
},
|
|
29315
|
-
w:
|
|
29318
|
+
w: ZU,
|
|
29316
29319
|
nw: function() {
|
|
29317
|
-
return
|
|
29320
|
+
return YU(arguments.length <= 0 ? void 0 : arguments[0], ZU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29318
29321
|
}
|
|
29319
29322
|
};
|
|
29320
|
-
function
|
|
29321
|
-
let u2 =
|
|
29323
|
+
function eW(e2, r2, c2, l2) {
|
|
29324
|
+
let u2 = $U[e2];
|
|
29322
29325
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
29323
29326
|
}
|
|
29324
|
-
function
|
|
29327
|
+
function tW(e2) {
|
|
29325
29328
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
29326
29329
|
return {
|
|
29327
29330
|
transform: d2,
|
|
@@ -29334,7 +29337,7 @@ ${c}
|
|
|
29334
29337
|
position: "absolute"
|
|
29335
29338
|
};
|
|
29336
29339
|
}
|
|
29337
|
-
function
|
|
29340
|
+
function nW(e2) {
|
|
29338
29341
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
29339
29342
|
return {
|
|
29340
29343
|
top: `${r2}px`,
|
|
@@ -29344,20 +29347,20 @@ ${c}
|
|
|
29344
29347
|
position: "absolute"
|
|
29345
29348
|
};
|
|
29346
29349
|
}
|
|
29347
|
-
function
|
|
29348
|
-
return r2 === "horizontal" ?
|
|
29350
|
+
function rW(e2, r2) {
|
|
29351
|
+
return r2 === "horizontal" ? aW(e2) : r2 === "vertical" ? iW(e2) : e2;
|
|
29349
29352
|
}
|
|
29350
|
-
function
|
|
29353
|
+
function iW(e2) {
|
|
29351
29354
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29352
29355
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
29353
29356
|
});
|
|
29354
29357
|
}
|
|
29355
|
-
function
|
|
29358
|
+
function aW(e2) {
|
|
29356
29359
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29357
29360
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
29358
29361
|
});
|
|
29359
29362
|
}
|
|
29360
|
-
function
|
|
29363
|
+
function oW(e2, r2, l2, u2, f2) {
|
|
29361
29364
|
e2 || (e2 = []);
|
|
29362
29365
|
let p2 = [];
|
|
29363
29366
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -29378,7 +29381,7 @@ ${c}
|
|
|
29378
29381
|
});
|
|
29379
29382
|
return f2 ? m2 : T(m2, u2, l2);
|
|
29380
29383
|
}
|
|
29381
|
-
function
|
|
29384
|
+
function sW(e2) {
|
|
29382
29385
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
29383
29386
|
"x",
|
|
29384
29387
|
"y",
|
|
@@ -29395,7 +29398,7 @@ ${c}
|
|
|
29395
29398
|
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})`);
|
|
29396
29399
|
}
|
|
29397
29400
|
}
|
|
29398
|
-
function
|
|
29401
|
+
function cW(e2) {
|
|
29399
29402
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
29400
29403
|
return r2 === false ? null : c2;
|
|
29401
29404
|
}
|
|
@@ -32200,7 +32203,7 @@ ${c}
|
|
|
32200
32203
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32201
32204
|
let E = useIsDragging(), O, j;
|
|
32202
32205
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
32203
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
32206
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, qU, Z, JU, YU, XU, ZU, QU, $U, eW, tW, nW, rW, iW, aW, oW, sW, cW;
|
|
32204
32207
|
if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== h || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
|
|
32205
32208
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
32206
32209
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32219,23 +32222,23 @@ ${c}
|
|
|
32219
32222
|
});
|
|
32220
32223
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
32221
32224
|
let y2 = v2;
|
|
32222
|
-
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,
|
|
32225
|
+
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, aW = "lg", r[58] === c.cells ? oW = r[59] : (oW = {
|
|
32223
32226
|
lg: c.cells
|
|
32224
|
-
}, r[58] = c.cells, r[59] =
|
|
32227
|
+
}, r[58] = c.cells, r[59] = oW), sW = L, cW = S, R = false;
|
|
32225
32228
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
32226
32229
|
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 ? [
|
|
32227
32230
|
20,
|
|
32228
32231
|
20
|
|
32229
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
32232
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, qU = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (Z = (e3) => {
|
|
32230
32233
|
f || l({
|
|
32231
32234
|
...c,
|
|
32232
32235
|
cells: e3
|
|
32233
32236
|
});
|
|
32234
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ?
|
|
32237
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ? JU = r[71] : (JU = g ? {
|
|
32235
32238
|
i: g.i,
|
|
32236
32239
|
w: g.w || 2,
|
|
32237
32240
|
h: g.h || 2
|
|
32238
|
-
} : void 0, r[70] = g, r[71] =
|
|
32241
|
+
} : void 0, r[70] = g, r[71] = JU), r[72] !== O || r[73] !== c || r[74] !== l ? (YU = (e3, r2, u2) => {
|
|
32239
32242
|
O.onDragStop(), r2 && l({
|
|
32240
32243
|
...c,
|
|
32241
32244
|
cells: [
|
|
@@ -32243,15 +32246,15 @@ ${c}
|
|
|
32243
32246
|
r2
|
|
32244
32247
|
]
|
|
32245
32248
|
});
|
|
32246
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
32249
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = YU) : YU = r[75], r[76] === O ? (XU = r[77], ZU = r[78], QU = r[79]) : (XU = (e3, r2, c2, l2, u2) => {
|
|
32247
32250
|
O.onDragStart(u2);
|
|
32248
|
-
},
|
|
32251
|
+
}, ZU = (e3, r2, c2, l2, u2) => {
|
|
32249
32252
|
O.onDragMove(u2);
|
|
32250
|
-
},
|
|
32253
|
+
}, QU = () => {
|
|
32251
32254
|
O.onDragStop();
|
|
32252
|
-
}, r[76] = O, r[77] =
|
|
32255
|
+
}, r[76] = O, r[77] = XU, r[78] = ZU, r[79] = QU), $U = _temp3$2, eW = M, tW = M, nW = M, rW = M ? `.${DRAG_HANDLE}` : "noop";
|
|
32253
32256
|
let E2;
|
|
32254
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
32257
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), iW = u.filter(E2).map((r2) => {
|
|
32255
32258
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p = c.cellSide.get(r2.id), m3 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
32256
32259
|
code: r2.code,
|
|
32257
32260
|
mode: d,
|
|
@@ -32280,14 +32283,14 @@ ${c}
|
|
|
32280
32283
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32281
32284
|
children: m3
|
|
32282
32285
|
}, r2.id);
|
|
32283
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
32284
|
-
} 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],
|
|
32285
|
-
let
|
|
32286
|
-
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] !==
|
|
32287
|
-
breakpoint:
|
|
32288
|
-
layouts:
|
|
32289
|
-
style:
|
|
32290
|
-
cols:
|
|
32286
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = qU, r[31] = Z, r[32] = JU, r[33] = YU, r[34] = XU, r[35] = ZU, r[36] = QU, r[37] = $U, r[38] = eW, r[39] = tW, r[40] = nW, r[41] = rW, r[42] = iW, r[43] = aW, r[44] = oW, r[45] = sW, r[46] = cW;
|
|
32287
|
+
} 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], qU = r[30], Z = r[31], JU = r[32], YU = r[33], XU = r[34], ZU = r[35], QU = r[36], $U = r[37], eW = r[38], tW = r[39], nW = r[40], rW = r[41], iW = r[42], aW = r[43], oW = r[44], sW = r[45], cW = r[46];
|
|
32288
|
+
let lW;
|
|
32289
|
+
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] !== qU || r[91] !== Z || r[92] !== JU || r[93] !== YU || r[94] !== XU || r[95] !== ZU || r[96] !== QU || r[97] !== $U || r[98] !== eW || r[99] !== tW || r[100] !== nW || r[101] !== rW || r[102] !== iW || r[103] !== aW || r[104] !== oW || r[105] !== sW || r[106] !== cW ? (lW = (0, import_jsx_runtime.jsx)(I, {
|
|
32290
|
+
breakpoint: aW,
|
|
32291
|
+
layouts: oW,
|
|
32292
|
+
style: sW,
|
|
32293
|
+
cols: cW,
|
|
32291
32294
|
allowOverlap: R,
|
|
32292
32295
|
className: z,
|
|
32293
32296
|
containerPadding: B,
|
|
@@ -32295,23 +32298,23 @@ ${c}
|
|
|
32295
32298
|
isBounded: W,
|
|
32296
32299
|
compactType: G,
|
|
32297
32300
|
preventCollision: q,
|
|
32298
|
-
rowHeight:
|
|
32301
|
+
rowHeight: qU,
|
|
32299
32302
|
onLayoutChange: Z,
|
|
32300
|
-
droppingItem:
|
|
32301
|
-
onDrop:
|
|
32302
|
-
onDragStart:
|
|
32303
|
-
onDrag:
|
|
32304
|
-
onDragStop:
|
|
32305
|
-
onResizeStop:
|
|
32306
|
-
isDraggable:
|
|
32307
|
-
isDroppable:
|
|
32308
|
-
isResizable:
|
|
32309
|
-
draggableHandle:
|
|
32310
|
-
children:
|
|
32311
|
-
}), 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] =
|
|
32312
|
-
let
|
|
32313
|
-
if (r[108] !== u || r[109] !==
|
|
32314
|
-
|
|
32303
|
+
droppingItem: JU,
|
|
32304
|
+
onDrop: YU,
|
|
32305
|
+
onDragStart: XU,
|
|
32306
|
+
onDrag: ZU,
|
|
32307
|
+
onDragStop: QU,
|
|
32308
|
+
onResizeStop: $U,
|
|
32309
|
+
isDraggable: eW,
|
|
32310
|
+
isDroppable: tW,
|
|
32311
|
+
isResizable: nW,
|
|
32312
|
+
draggableHandle: rW,
|
|
32313
|
+
children: iW
|
|
32314
|
+
}), 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] = qU, r[91] = Z, r[92] = JU, r[93] = YU, r[94] = XU, r[95] = ZU, r[96] = QU, r[97] = $U, r[98] = eW, r[99] = tW, r[100] = nW, r[101] = rW, r[102] = iW, r[103] = aW, r[104] = oW, r[105] = sW, r[106] = cW, r[107] = lW) : lW = r[107];
|
|
32315
|
+
let uW = lW, dW, fW, pW, mW, hW, gW, _W;
|
|
32316
|
+
if (r[108] !== u || r[109] !== uW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
32317
|
+
_W = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
32315
32318
|
bb0: {
|
|
32316
32319
|
let e2;
|
|
32317
32320
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -32319,14 +32322,14 @@ ${c}
|
|
|
32319
32322
|
if (f) {
|
|
32320
32323
|
if (c.bordered) {
|
|
32321
32324
|
let e4;
|
|
32322
|
-
r[127] !==
|
|
32325
|
+
r[127] !== uW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
32323
32326
|
className: "flex flex-1 flex-col items-center",
|
|
32324
32327
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
32325
32328
|
style: L,
|
|
32326
32329
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
32327
|
-
children:
|
|
32330
|
+
children: uW
|
|
32328
32331
|
})
|
|
32329
|
-
}), r[127] =
|
|
32332
|
+
}), r[127] = uW, r[128] = L, r[129] = e4) : e4 = r[129], uW = e4;
|
|
32330
32333
|
}
|
|
32331
32334
|
let e3 = m2.filter(_temp4$2), l2;
|
|
32332
32335
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -32337,9 +32340,9 @@ ${c}
|
|
|
32337
32340
|
status: e4.status,
|
|
32338
32341
|
isScrollable: false,
|
|
32339
32342
|
hidden: false
|
|
32340
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
32343
|
+
}, e4.id), r[130] = d, r[131] = l2), _W = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32341
32344
|
children: [
|
|
32342
|
-
|
|
32345
|
+
uW,
|
|
32343
32346
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32344
32347
|
className: "hidden",
|
|
32345
32348
|
children: e3.map(l2)
|
|
@@ -32350,31 +32353,31 @@ ${c}
|
|
|
32350
32353
|
}
|
|
32351
32354
|
if (c.bordered) {
|
|
32352
32355
|
let e3;
|
|
32353
|
-
r[132] ===
|
|
32356
|
+
r[132] === uW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
32354
32357
|
className: "h-full overflow-auto",
|
|
32355
|
-
children:
|
|
32356
|
-
}), r[132] =
|
|
32358
|
+
children: uW
|
|
32359
|
+
}), r[132] = uW, r[133] = e3);
|
|
32357
32360
|
let c2;
|
|
32358
32361
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32359
32362
|
style: L,
|
|
32360
32363
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
32361
32364
|
children: e3
|
|
32362
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
32365
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], uW = c2;
|
|
32363
32366
|
}
|
|
32364
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
32367
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (gW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
32365
32368
|
layout: c,
|
|
32366
32369
|
setLayout: l,
|
|
32367
32370
|
isLocked: v,
|
|
32368
32371
|
setIsLocked: y
|
|
32369
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
32372
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = gW) : gW = r[140];
|
|
32370
32373
|
let g2;
|
|
32371
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32374
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (mW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = mW, r[142] = g2) : (mW = r[141], g2 = r[142]), r[143] === uW ? hW = r[144] : (hW = (0, import_jsx_runtime.jsx)("div", {
|
|
32372
32375
|
className: g2,
|
|
32373
|
-
children:
|
|
32374
|
-
}), r[143] =
|
|
32376
|
+
children: uW
|
|
32377
|
+
}), r[143] = uW, r[144] = hW), dW = "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") ? (fW = (0, import_jsx_runtime.jsx)("div", {
|
|
32375
32378
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
32376
32379
|
children: "Outputs"
|
|
32377
|
-
}), r[145] =
|
|
32380
|
+
}), r[145] = fW) : fW = r[145];
|
|
32378
32381
|
let b2;
|
|
32379
32382
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
32380
32383
|
draggable: true,
|
|
@@ -32399,34 +32402,34 @@ ${c}
|
|
|
32399
32402
|
status: e3.status,
|
|
32400
32403
|
hidden: false
|
|
32401
32404
|
})
|
|
32402
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
32403
|
-
}
|
|
32404
|
-
r[108] = u, r[109] =
|
|
32405
|
-
} else
|
|
32406
|
-
if (
|
|
32407
|
-
let
|
|
32408
|
-
r[150] !==
|
|
32409
|
-
className:
|
|
32405
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], pW = m2.map(b2);
|
|
32406
|
+
}
|
|
32407
|
+
r[108] = u, r[109] = uW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = dW, r[118] = fW, r[119] = pW, r[120] = mW, r[121] = hW, r[122] = gW, r[123] = _W, r[124] = uW;
|
|
32408
|
+
} else dW = r[117], fW = r[118], pW = r[119], mW = r[120], hW = r[121], gW = r[122], _W = r[123], uW = r[124];
|
|
32409
|
+
if (_W !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return _W;
|
|
32410
|
+
let vW;
|
|
32411
|
+
r[150] !== dW || r[151] !== fW || r[152] !== pW ? (vW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32412
|
+
className: dW,
|
|
32410
32413
|
children: [
|
|
32411
|
-
|
|
32412
|
-
|
|
32414
|
+
fW,
|
|
32415
|
+
pW
|
|
32413
32416
|
]
|
|
32414
|
-
}), r[150] =
|
|
32415
|
-
let
|
|
32416
|
-
r[154] !==
|
|
32417
|
-
className:
|
|
32417
|
+
}), r[150] = dW, r[151] = fW, r[152] = pW, r[153] = vW) : vW = r[153];
|
|
32418
|
+
let yW;
|
|
32419
|
+
r[154] !== mW || r[155] !== hW || r[156] !== vW ? (yW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32420
|
+
className: mW,
|
|
32418
32421
|
children: [
|
|
32419
|
-
|
|
32420
|
-
|
|
32422
|
+
hW,
|
|
32423
|
+
vW
|
|
32421
32424
|
]
|
|
32422
|
-
}), r[154] =
|
|
32423
|
-
let
|
|
32424
|
-
return r[158] !==
|
|
32425
|
+
}), r[154] = mW, r[155] = hW, r[156] = vW, r[157] = yW) : yW = r[157];
|
|
32426
|
+
let bW;
|
|
32427
|
+
return r[158] !== gW || r[159] !== yW ? (bW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32425
32428
|
children: [
|
|
32426
|
-
|
|
32427
|
-
|
|
32429
|
+
gW,
|
|
32430
|
+
yW
|
|
32428
32431
|
]
|
|
32429
|
-
}), r[158] =
|
|
32432
|
+
}), r[158] = gW, r[159] = yW, r[160] = bW) : bW = r[160], bW;
|
|
32430
32433
|
};
|
|
32431
32434
|
var GridCell = (0, import_react.memo)((e) => {
|
|
32432
32435
|
let r = (0, import_compiler_runtime$13.c)(20), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _ } = e, v;
|
|
@@ -32727,25 +32730,25 @@ ${c}
|
|
|
32727
32730
|
G
|
|
32728
32731
|
]
|
|
32729
32732
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
32730
|
-
let
|
|
32731
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32733
|
+
let qU;
|
|
32734
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (qU = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32732
32735
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32733
|
-
}), r[35] =
|
|
32736
|
+
}), r[35] = qU) : qU = r[35];
|
|
32734
32737
|
let Z;
|
|
32735
32738
|
r[36] === l ? Z = r[37] : (Z = (0, import_jsx_runtime.jsx)(X, {
|
|
32736
32739
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
32737
32740
|
onClick: () => l()
|
|
32738
32741
|
}), r[36] = l, r[37] = Z);
|
|
32739
|
-
let
|
|
32740
|
-
return r[38] !== I || r[39] !== q || r[40] !== Z || r[41] !== w ? (
|
|
32742
|
+
let JU;
|
|
32743
|
+
return r[38] !== I || r[39] !== q || r[40] !== Z || r[41] !== w ? (JU = (0, import_jsx_runtime.jsxs)("div", {
|
|
32741
32744
|
className: w,
|
|
32742
32745
|
children: [
|
|
32743
32746
|
I,
|
|
32744
32747
|
q,
|
|
32745
|
-
|
|
32748
|
+
qU,
|
|
32746
32749
|
Z
|
|
32747
32750
|
]
|
|
32748
|
-
}), r[38] = I, r[39] = q, r[40] = Z, r[41] = w, r[42] =
|
|
32751
|
+
}), r[38] = I, r[39] = q, r[40] = Z, r[41] = w, r[42] = JU) : JU = r[42], JU;
|
|
32749
32752
|
};
|
|
32750
32753
|
function isSidebarCell(e) {
|
|
32751
32754
|
var _a3;
|
|
@@ -34749,31 +34752,31 @@ ${c}
|
|
|
34749
34752
|
}, [
|
|
34750
34753
|
T,
|
|
34751
34754
|
M
|
|
34752
|
-
]), 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),
|
|
34755
|
+
]), 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), qU = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34753
34756
|
j
|
|
34754
|
-
]), Z = useMeasuringConfiguration(p), { droppableRects:
|
|
34757
|
+
]), Z = useMeasuringConfiguration(p), { droppableRects: JU, measureDroppableContainers: YU, measuringScheduled: XU } = useDroppableMeasuring(qU, {
|
|
34755
34758
|
dragging: w,
|
|
34756
34759
|
dependencies: [
|
|
34757
34760
|
O.x,
|
|
34758
34761
|
O.y
|
|
34759
34762
|
],
|
|
34760
34763
|
config: Z.droppable
|
|
34761
|
-
}),
|
|
34764
|
+
}), ZU = useCachedNode(E, T), QU = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34762
34765
|
H
|
|
34763
|
-
]),
|
|
34766
|
+
]), $U = AW(), eW = useInitialRect(ZU, Z.draggable.measure);
|
|
34764
34767
|
useLayoutShiftScrollCompensation({
|
|
34765
34768
|
activeNode: T == null ? null : E.get(T),
|
|
34766
|
-
config:
|
|
34767
|
-
initialRect:
|
|
34769
|
+
config: $U.layoutShiftCompensation,
|
|
34770
|
+
initialRect: eW,
|
|
34768
34771
|
measure: Z.draggable.measure
|
|
34769
34772
|
});
|
|
34770
|
-
let
|
|
34773
|
+
let tW = useRect(ZU, Z.draggable.measure, eW), nW = useRect(ZU ? ZU.parentElement : null), rW = (0, import_react.useRef)({
|
|
34771
34774
|
activatorEvent: null,
|
|
34772
34775
|
active: null,
|
|
34773
|
-
activeNode:
|
|
34776
|
+
activeNode: ZU,
|
|
34774
34777
|
collisionRect: null,
|
|
34775
34778
|
collisions: null,
|
|
34776
|
-
droppableRects:
|
|
34779
|
+
droppableRects: JU,
|
|
34777
34780
|
draggableNodes: E,
|
|
34778
34781
|
draggingNode: null,
|
|
34779
34782
|
draggingNodeRect: null,
|
|
@@ -34781,45 +34784,45 @@ ${c}
|
|
|
34781
34784
|
over: null,
|
|
34782
34785
|
scrollableAncestors: [],
|
|
34783
34786
|
scrollAdjustedTranslate: null
|
|
34784
|
-
}),
|
|
34787
|
+
}), iW = j.getNodeFor((_a3 = rW.current.over) == null ? void 0 : _a3.id), aW = useDragOverlayMeasuring({
|
|
34785
34788
|
measure: Z.dragOverlay.measure
|
|
34786
|
-
}),
|
|
34789
|
+
}), oW = aW.nodeRef.current ?? ZU, sW = w ? aW.rect ?? tW : null, cW = !!(aW.nodeRef.current && aW.rect), lW = useRectDelta(cW ? null : tW), uW = useWindowRect(oW ? getWindow(oW) : null), dW = useScrollableAncestors(w ? iW ?? ZU : null), fW = useRects(dW), pW = applyModifiers(m, {
|
|
34787
34790
|
transform: {
|
|
34788
|
-
x: O.x -
|
|
34789
|
-
y: O.y -
|
|
34791
|
+
x: O.x - lW.x,
|
|
34792
|
+
y: O.y - lW.y,
|
|
34790
34793
|
scaleX: 1,
|
|
34791
34794
|
scaleY: 1
|
|
34792
34795
|
},
|
|
34793
34796
|
activatorEvent: H,
|
|
34794
34797
|
active: L,
|
|
34795
|
-
activeNodeRect:
|
|
34796
|
-
containerNodeRect:
|
|
34797
|
-
draggingNodeRect:
|
|
34798
|
-
over:
|
|
34799
|
-
overlayNodeRect:
|
|
34800
|
-
scrollableAncestors:
|
|
34801
|
-
scrollableAncestorRects:
|
|
34802
|
-
windowRect:
|
|
34803
|
-
}),
|
|
34804
|
-
|
|
34805
|
-
]),
|
|
34798
|
+
activeNodeRect: tW,
|
|
34799
|
+
containerNodeRect: nW,
|
|
34800
|
+
draggingNodeRect: sW,
|
|
34801
|
+
over: rW.current.over,
|
|
34802
|
+
overlayNodeRect: aW.rect,
|
|
34803
|
+
scrollableAncestors: dW,
|
|
34804
|
+
scrollableAncestorRects: fW,
|
|
34805
|
+
windowRect: uW
|
|
34806
|
+
}), mW = QU ? add(QU, O) : null, hW = useScrollOffsets(dW), gW = useScrollOffsetsDelta(hW), _W = useScrollOffsetsDelta(hW, [
|
|
34807
|
+
tW
|
|
34808
|
+
]), vW = add(pW, gW), yW = sW ? getAdjustedRect(sW, pW) : null, bW = L && yW ? f({
|
|
34806
34809
|
active: L,
|
|
34807
|
-
collisionRect:
|
|
34808
|
-
droppableRects:
|
|
34809
|
-
droppableContainers:
|
|
34810
|
-
pointerCoordinates:
|
|
34811
|
-
}) : null,
|
|
34810
|
+
collisionRect: yW,
|
|
34811
|
+
droppableRects: JU,
|
|
34812
|
+
droppableContainers: qU,
|
|
34813
|
+
pointerCoordinates: mW
|
|
34814
|
+
}) : null, xW = getFirstCollision(bW, "id"), [SW, CW] = (0, import_react.useState)(null), wW = adjustScale(cW ? pW : add(pW, _W), (SW == null ? void 0 : SW.rect) ?? null, tW), TW = (0, import_react.useRef)(null), EW = (0, import_react.useCallback)((e2, r2) => {
|
|
34812
34815
|
let { sensor: c2, options: l2 } = r2;
|
|
34813
34816
|
if (R.current == null) return;
|
|
34814
34817
|
let u2 = E.get(R.current);
|
|
34815
34818
|
if (!u2) return;
|
|
34816
34819
|
let d2 = e2.nativeEvent;
|
|
34817
|
-
|
|
34820
|
+
TW.current = new c2({
|
|
34818
34821
|
active: R.current,
|
|
34819
34822
|
activeNode: u2,
|
|
34820
34823
|
event: d2,
|
|
34821
34824
|
options: l2,
|
|
34822
|
-
context:
|
|
34825
|
+
context: rW,
|
|
34823
34826
|
onAbort(e3) {
|
|
34824
34827
|
if (!E.get(e3)) return;
|
|
34825
34828
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -34864,7 +34867,7 @@ ${c}
|
|
|
34864
34867
|
}), v({
|
|
34865
34868
|
type: "onDragStart",
|
|
34866
34869
|
event: u3
|
|
34867
|
-
}), B(
|
|
34870
|
+
}), B(TW.current), W(d2);
|
|
34868
34871
|
});
|
|
34869
34872
|
},
|
|
34870
34873
|
onMove(e3) {
|
|
@@ -34878,7 +34881,7 @@ ${c}
|
|
|
34878
34881
|
});
|
|
34879
34882
|
function f2(e3) {
|
|
34880
34883
|
return async function() {
|
|
34881
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
34884
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = rW.current, f3 = null;
|
|
34882
34885
|
if (r3 && u3) {
|
|
34883
34886
|
let { cancelDrop: p2 } = G.current;
|
|
34884
34887
|
f3 = {
|
|
@@ -34892,7 +34895,7 @@ ${c}
|
|
|
34892
34895
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34893
34896
|
_({
|
|
34894
34897
|
type: e3
|
|
34895
|
-
}), S(Status.Uninitialized),
|
|
34898
|
+
}), S(Status.Uninitialized), CW(null), B(null), W(null), TW.current = null;
|
|
34896
34899
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
34897
34900
|
if (f3) {
|
|
34898
34901
|
let e4 = G.current[r4];
|
|
@@ -34906,7 +34909,7 @@ ${c}
|
|
|
34906
34909
|
}
|
|
34907
34910
|
}, [
|
|
34908
34911
|
E
|
|
34909
|
-
]),
|
|
34912
|
+
]), DW = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
34910
34913
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
34911
34914
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
34912
34915
|
let f2 = {
|
|
@@ -34914,26 +34917,26 @@ ${c}
|
|
|
34914
34917
|
};
|
|
34915
34918
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
34916
34919
|
capturedBy: r2.sensor
|
|
34917
|
-
}, R.current = l2,
|
|
34920
|
+
}, R.current = l2, EW(c2, r2));
|
|
34918
34921
|
}, [
|
|
34919
34922
|
E,
|
|
34920
|
-
|
|
34923
|
+
EW
|
|
34921
34924
|
]));
|
|
34922
34925
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
34923
|
-
|
|
34926
|
+
tW && b === Status.Initializing && S(Status.Initialized);
|
|
34924
34927
|
}, [
|
|
34925
|
-
|
|
34928
|
+
tW,
|
|
34926
34929
|
b
|
|
34927
34930
|
]), (0, import_react.useEffect)(() => {
|
|
34928
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
34931
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = rW.current;
|
|
34929
34932
|
if (!r2 || !c2) return;
|
|
34930
34933
|
let d2 = {
|
|
34931
34934
|
active: r2,
|
|
34932
34935
|
activatorEvent: c2,
|
|
34933
34936
|
collisions: l2,
|
|
34934
34937
|
delta: {
|
|
34935
|
-
x:
|
|
34936
|
-
y:
|
|
34938
|
+
x: vW.x,
|
|
34939
|
+
y: vW.y
|
|
34937
34940
|
},
|
|
34938
34941
|
over: u2
|
|
34939
34942
|
};
|
|
@@ -34944,12 +34947,12 @@ ${c}
|
|
|
34944
34947
|
});
|
|
34945
34948
|
});
|
|
34946
34949
|
}, [
|
|
34947
|
-
|
|
34948
|
-
|
|
34950
|
+
vW.x,
|
|
34951
|
+
vW.y
|
|
34949
34952
|
]), (0, import_react.useEffect)(() => {
|
|
34950
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
34953
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = rW.current;
|
|
34951
34954
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
34952
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
34955
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(xW), p2 = f2 && f2.rect.current ? {
|
|
34953
34956
|
id: f2.id,
|
|
34954
34957
|
rect: f2.rect.current,
|
|
34955
34958
|
data: f2.data,
|
|
@@ -34965,127 +34968,127 @@ ${c}
|
|
|
34965
34968
|
over: p2
|
|
34966
34969
|
};
|
|
34967
34970
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34968
|
-
|
|
34971
|
+
CW(p2), d2 == null ? void 0 : d2(m2), v({
|
|
34969
34972
|
type: "onDragOver",
|
|
34970
34973
|
event: m2
|
|
34971
34974
|
});
|
|
34972
34975
|
});
|
|
34973
34976
|
}, [
|
|
34974
|
-
|
|
34977
|
+
xW
|
|
34975
34978
|
]), useIsomorphicLayoutEffect(() => {
|
|
34976
|
-
|
|
34979
|
+
rW.current = {
|
|
34977
34980
|
activatorEvent: H,
|
|
34978
34981
|
active: L,
|
|
34979
|
-
activeNode:
|
|
34980
|
-
collisionRect:
|
|
34981
|
-
collisions:
|
|
34982
|
-
droppableRects:
|
|
34982
|
+
activeNode: ZU,
|
|
34983
|
+
collisionRect: yW,
|
|
34984
|
+
collisions: bW,
|
|
34985
|
+
droppableRects: JU,
|
|
34983
34986
|
draggableNodes: E,
|
|
34984
|
-
draggingNode:
|
|
34985
|
-
draggingNodeRect:
|
|
34987
|
+
draggingNode: oW,
|
|
34988
|
+
draggingNodeRect: sW,
|
|
34986
34989
|
droppableContainers: j,
|
|
34987
|
-
over:
|
|
34988
|
-
scrollableAncestors:
|
|
34989
|
-
scrollAdjustedTranslate:
|
|
34990
|
+
over: SW,
|
|
34991
|
+
scrollableAncestors: dW,
|
|
34992
|
+
scrollAdjustedTranslate: vW
|
|
34990
34993
|
}, I.current = {
|
|
34991
|
-
initial:
|
|
34992
|
-
translated:
|
|
34994
|
+
initial: sW,
|
|
34995
|
+
translated: yW
|
|
34993
34996
|
};
|
|
34994
34997
|
}, [
|
|
34995
34998
|
L,
|
|
34996
|
-
|
|
34997
|
-
|
|
34998
|
-
|
|
34999
|
+
ZU,
|
|
35000
|
+
bW,
|
|
35001
|
+
yW,
|
|
34999
35002
|
E,
|
|
35000
|
-
|
|
35001
|
-
|
|
35002
|
-
|
|
35003
|
+
oW,
|
|
35004
|
+
sW,
|
|
35005
|
+
JU,
|
|
35003
35006
|
j,
|
|
35004
|
-
|
|
35005
|
-
|
|
35006
|
-
|
|
35007
|
+
SW,
|
|
35008
|
+
dW,
|
|
35009
|
+
vW
|
|
35007
35010
|
]), useAutoScroller({
|
|
35008
|
-
|
|
35011
|
+
...$U,
|
|
35009
35012
|
delta: O,
|
|
35010
|
-
draggingRect:
|
|
35011
|
-
pointerCoordinates:
|
|
35012
|
-
scrollableAncestors:
|
|
35013
|
-
scrollableAncestorRects:
|
|
35013
|
+
draggingRect: yW,
|
|
35014
|
+
pointerCoordinates: mW,
|
|
35015
|
+
scrollableAncestors: dW,
|
|
35016
|
+
scrollableAncestorRects: fW
|
|
35014
35017
|
});
|
|
35015
|
-
let
|
|
35018
|
+
let OW = (0, import_react.useMemo)(() => ({
|
|
35016
35019
|
active: L,
|
|
35017
|
-
activeNode:
|
|
35018
|
-
activeNodeRect:
|
|
35020
|
+
activeNode: ZU,
|
|
35021
|
+
activeNodeRect: tW,
|
|
35019
35022
|
activatorEvent: H,
|
|
35020
|
-
collisions:
|
|
35021
|
-
containerNodeRect:
|
|
35022
|
-
dragOverlay:
|
|
35023
|
+
collisions: bW,
|
|
35024
|
+
containerNodeRect: nW,
|
|
35025
|
+
dragOverlay: aW,
|
|
35023
35026
|
draggableNodes: E,
|
|
35024
35027
|
droppableContainers: j,
|
|
35025
|
-
droppableRects:
|
|
35026
|
-
over:
|
|
35027
|
-
measureDroppableContainers:
|
|
35028
|
-
scrollableAncestors:
|
|
35029
|
-
scrollableAncestorRects:
|
|
35028
|
+
droppableRects: JU,
|
|
35029
|
+
over: SW,
|
|
35030
|
+
measureDroppableContainers: YU,
|
|
35031
|
+
scrollableAncestors: dW,
|
|
35032
|
+
scrollableAncestorRects: fW,
|
|
35030
35033
|
measuringConfiguration: Z,
|
|
35031
|
-
measuringScheduled:
|
|
35032
|
-
windowRect:
|
|
35034
|
+
measuringScheduled: XU,
|
|
35035
|
+
windowRect: uW
|
|
35033
35036
|
}), [
|
|
35034
35037
|
L,
|
|
35035
|
-
|
|
35036
|
-
|
|
35038
|
+
ZU,
|
|
35039
|
+
tW,
|
|
35037
35040
|
H,
|
|
35038
|
-
|
|
35039
|
-
|
|
35040
|
-
|
|
35041
|
+
bW,
|
|
35042
|
+
nW,
|
|
35043
|
+
aW,
|
|
35041
35044
|
E,
|
|
35042
35045
|
j,
|
|
35043
|
-
|
|
35044
|
-
|
|
35045
|
-
|
|
35046
|
-
|
|
35047
|
-
|
|
35046
|
+
JU,
|
|
35047
|
+
SW,
|
|
35048
|
+
YU,
|
|
35049
|
+
dW,
|
|
35050
|
+
fW,
|
|
35048
35051
|
Z,
|
|
35049
|
-
|
|
35050
|
-
|
|
35051
|
-
]),
|
|
35052
|
+
XU,
|
|
35053
|
+
uW
|
|
35054
|
+
]), kW = (0, import_react.useMemo)(() => ({
|
|
35052
35055
|
activatorEvent: H,
|
|
35053
|
-
activators:
|
|
35056
|
+
activators: DW,
|
|
35054
35057
|
active: L,
|
|
35055
|
-
activeNodeRect:
|
|
35058
|
+
activeNodeRect: tW,
|
|
35056
35059
|
ariaDescribedById: {
|
|
35057
35060
|
draggable: q
|
|
35058
35061
|
},
|
|
35059
35062
|
dispatch: _,
|
|
35060
35063
|
draggableNodes: E,
|
|
35061
|
-
over:
|
|
35062
|
-
measureDroppableContainers:
|
|
35064
|
+
over: SW,
|
|
35065
|
+
measureDroppableContainers: YU
|
|
35063
35066
|
}), [
|
|
35064
35067
|
H,
|
|
35065
|
-
|
|
35068
|
+
DW,
|
|
35066
35069
|
L,
|
|
35067
|
-
|
|
35070
|
+
tW,
|
|
35068
35071
|
_,
|
|
35069
35072
|
q,
|
|
35070
35073
|
E,
|
|
35071
|
-
|
|
35072
|
-
|
|
35074
|
+
SW,
|
|
35075
|
+
YU
|
|
35073
35076
|
]);
|
|
35074
35077
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
35075
35078
|
value: y
|
|
35076
35079
|
}, import_react.createElement(InternalContext.Provider, {
|
|
35077
|
-
value:
|
|
35080
|
+
value: kW
|
|
35078
35081
|
}, import_react.createElement(PublicContext.Provider, {
|
|
35079
|
-
value:
|
|
35082
|
+
value: OW
|
|
35080
35083
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
35081
|
-
value:
|
|
35084
|
+
value: wW
|
|
35082
35085
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
35083
35086
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35084
35087
|
})), import_react.createElement(Accessibility, {
|
|
35085
35088
|
...c,
|
|
35086
35089
|
hiddenTextDescribedById: q
|
|
35087
35090
|
}));
|
|
35088
|
-
function
|
|
35091
|
+
function AW() {
|
|
35089
35092
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
35090
35093
|
return typeof l == "object" ? {
|
|
35091
35094
|
...l,
|
|
@@ -35613,7 +35616,7 @@ ${c}
|
|
|
35613
35616
|
updateMeasurementsFor: I,
|
|
35614
35617
|
...m
|
|
35615
35618
|
}
|
|
35616
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
35619
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: qU, listeners: Z, isDragging: JU, over: YU, setActivatorNodeRef: XU, transform: ZU } = useDraggable({
|
|
35617
35620
|
id: f,
|
|
35618
35621
|
data: M,
|
|
35619
35622
|
attributes: {
|
|
@@ -35621,60 +35624,60 @@ ${c}
|
|
|
35621
35624
|
...c
|
|
35622
35625
|
},
|
|
35623
35626
|
disabled: O.draggable
|
|
35624
|
-
}),
|
|
35627
|
+
}), QU = useCombinedRefs(B, qU), $U = !!H, eW = $U && !b && isValidIndex(v) && isValidIndex(w), tW = !T && JU, nW = eW ? (tW && eW ? ZU : null) ?? (p ?? E)({
|
|
35625
35628
|
rects: S,
|
|
35626
35629
|
activeNodeRect: G,
|
|
35627
35630
|
activeIndex: v,
|
|
35628
35631
|
overIndex: w,
|
|
35629
35632
|
index: j
|
|
35630
|
-
}) : null,
|
|
35633
|
+
}) : null, rW = isValidIndex(v) && isValidIndex(w) ? d({
|
|
35631
35634
|
id: f,
|
|
35632
35635
|
items: g,
|
|
35633
35636
|
activeIndex: v,
|
|
35634
35637
|
overIndex: w
|
|
35635
|
-
}) : j,
|
|
35636
|
-
activeId:
|
|
35638
|
+
}) : j, iW = H == null ? void 0 : H.id, aW = (0, import_react.useRef)({
|
|
35639
|
+
activeId: iW,
|
|
35637
35640
|
items: g,
|
|
35638
|
-
newIndex:
|
|
35641
|
+
newIndex: rW,
|
|
35639
35642
|
containerId: _
|
|
35640
|
-
}),
|
|
35643
|
+
}), oW = g !== aW.current.items, sW = r({
|
|
35641
35644
|
active: H,
|
|
35642
35645
|
containerId: _,
|
|
35643
|
-
isDragging:
|
|
35644
|
-
isSorting:
|
|
35646
|
+
isDragging: JU,
|
|
35647
|
+
isSorting: $U,
|
|
35645
35648
|
id: f,
|
|
35646
35649
|
index: j,
|
|
35647
35650
|
items: g,
|
|
35648
|
-
newIndex:
|
|
35649
|
-
previousItems:
|
|
35650
|
-
previousContainerId:
|
|
35651
|
+
newIndex: aW.current.newIndex,
|
|
35652
|
+
previousItems: aW.current.items,
|
|
35653
|
+
previousContainerId: aW.current.containerId,
|
|
35651
35654
|
transition: h,
|
|
35652
|
-
wasDragging:
|
|
35653
|
-
}),
|
|
35654
|
-
disabled: !
|
|
35655
|
+
wasDragging: aW.current.activeId != null
|
|
35656
|
+
}), cW = useDerivedTransform({
|
|
35657
|
+
disabled: !sW,
|
|
35655
35658
|
index: j,
|
|
35656
35659
|
node: R,
|
|
35657
35660
|
rect: L
|
|
35658
35661
|
});
|
|
35659
35662
|
return (0, import_react.useEffect)(() => {
|
|
35660
|
-
|
|
35663
|
+
$U && aW.current.newIndex !== rW && (aW.current.newIndex = rW), _ !== aW.current.containerId && (aW.current.containerId = _), g !== aW.current.items && (aW.current.items = g);
|
|
35661
35664
|
}, [
|
|
35662
|
-
|
|
35663
|
-
|
|
35665
|
+
$U,
|
|
35666
|
+
rW,
|
|
35664
35667
|
_,
|
|
35665
35668
|
g
|
|
35666
35669
|
]), (0, import_react.useEffect)(() => {
|
|
35667
|
-
if (
|
|
35668
|
-
if (
|
|
35669
|
-
|
|
35670
|
+
if (iW === aW.current.activeId) return;
|
|
35671
|
+
if (iW != null && aW.current.activeId == null) {
|
|
35672
|
+
aW.current.activeId = iW;
|
|
35670
35673
|
return;
|
|
35671
35674
|
}
|
|
35672
35675
|
let e2 = setTimeout(() => {
|
|
35673
|
-
|
|
35676
|
+
aW.current.activeId = iW;
|
|
35674
35677
|
}, 50);
|
|
35675
35678
|
return () => clearTimeout(e2);
|
|
35676
35679
|
}, [
|
|
35677
|
-
|
|
35680
|
+
iW
|
|
35678
35681
|
]), {
|
|
35679
35682
|
active: H,
|
|
35680
35683
|
activeIndex: v,
|
|
@@ -35682,25 +35685,25 @@ ${c}
|
|
|
35682
35685
|
data: M,
|
|
35683
35686
|
rect: L,
|
|
35684
35687
|
index: j,
|
|
35685
|
-
newIndex:
|
|
35688
|
+
newIndex: rW,
|
|
35686
35689
|
items: g,
|
|
35687
35690
|
isOver: z,
|
|
35688
|
-
isSorting:
|
|
35689
|
-
isDragging:
|
|
35691
|
+
isSorting: $U,
|
|
35692
|
+
isDragging: JU,
|
|
35690
35693
|
listeners: Z,
|
|
35691
35694
|
node: R,
|
|
35692
35695
|
overIndex: w,
|
|
35693
|
-
over:
|
|
35694
|
-
setNodeRef:
|
|
35695
|
-
setActivatorNodeRef:
|
|
35696
|
+
over: YU,
|
|
35697
|
+
setNodeRef: QU,
|
|
35698
|
+
setActivatorNodeRef: XU,
|
|
35696
35699
|
setDroppableNodeRef: B,
|
|
35697
|
-
setDraggableNodeRef:
|
|
35698
|
-
transform:
|
|
35699
|
-
transition:
|
|
35700
|
+
setDraggableNodeRef: qU,
|
|
35701
|
+
transform: cW ?? nW,
|
|
35702
|
+
transition: lW()
|
|
35700
35703
|
};
|
|
35701
|
-
function
|
|
35702
|
-
if (
|
|
35703
|
-
if (!(
|
|
35704
|
+
function lW() {
|
|
35705
|
+
if (cW || oW && aW.current.newIndex === j) return disabledTransition;
|
|
35706
|
+
if (!(tW && !isKeyboardEvent(W) || !h) && ($U || sW)) return CSS$1.Transition.toString({
|
|
35704
35707
|
...h,
|
|
35705
35708
|
property: transitionProperty
|
|
35706
35709
|
});
|
|
@@ -36000,15 +36003,15 @@ ${c}
|
|
|
36000
36003
|
G
|
|
36001
36004
|
]
|
|
36002
36005
|
}), r[35] = c.id, r[36] = h, r[37] = y, r[38] = b, r[39] = I, r[40] = z, r[41] = B, r[42] = H, r[43] = W, r[44] = G, r[45] = q) : q = r[45];
|
|
36003
|
-
let
|
|
36004
|
-
if (!v && !g) return
|
|
36006
|
+
let qU = q;
|
|
36007
|
+
if (!v && !g) return qU;
|
|
36005
36008
|
let Z;
|
|
36006
|
-
r[46] ===
|
|
36009
|
+
r[46] === qU ? Z = r[47] : (Z = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
36007
36010
|
asChild: true,
|
|
36008
|
-
children:
|
|
36009
|
-
}), r[46] =
|
|
36010
|
-
let
|
|
36011
|
-
r[48] === v ?
|
|
36011
|
+
children: qU
|
|
36012
|
+
}), r[46] = qU, r[47] = Z);
|
|
36013
|
+
let JU;
|
|
36014
|
+
r[48] === v ? JU = r[49] : (JU = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36012
36015
|
onSelect: v,
|
|
36013
36016
|
children: [
|
|
36014
36017
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -36016,11 +36019,11 @@ ${c}
|
|
|
36016
36019
|
}),
|
|
36017
36020
|
"Add cell"
|
|
36018
36021
|
]
|
|
36019
|
-
}), r[48] = v, r[49] =
|
|
36022
|
+
}), r[48] = v, r[49] = JU);
|
|
36023
|
+
let YU;
|
|
36024
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (YU = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = YU) : YU = r[50];
|
|
36020
36025
|
let ZU;
|
|
36021
|
-
r[
|
|
36022
|
-
let $U;
|
|
36023
|
-
r[51] === g ? $U = r[52] : ($U = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36026
|
+
r[51] === g ? ZU = r[52] : (ZU = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36024
36027
|
variant: "danger",
|
|
36025
36028
|
onSelect: g,
|
|
36026
36029
|
children: [
|
|
@@ -36029,22 +36032,22 @@ ${c}
|
|
|
36029
36032
|
}),
|
|
36030
36033
|
"Delete cell"
|
|
36031
36034
|
]
|
|
36032
|
-
}), r[51] = g, r[52] =
|
|
36033
|
-
let
|
|
36034
|
-
r[53] !==
|
|
36035
|
+
}), r[51] = g, r[52] = ZU);
|
|
36036
|
+
let QU;
|
|
36037
|
+
r[53] !== JU || r[54] !== ZU ? (QU = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
36035
36038
|
children: [
|
|
36036
|
-
|
|
36037
|
-
|
|
36038
|
-
|
|
36039
|
+
JU,
|
|
36040
|
+
YU,
|
|
36041
|
+
ZU
|
|
36039
36042
|
]
|
|
36040
|
-
}), r[53] =
|
|
36041
|
-
let
|
|
36042
|
-
return r[56] !== Z || r[57] !==
|
|
36043
|
+
}), r[53] = JU, r[54] = ZU, r[55] = QU) : QU = r[55];
|
|
36044
|
+
let $U;
|
|
36045
|
+
return r[56] !== Z || r[57] !== QU ? ($U = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
36043
36046
|
children: [
|
|
36044
36047
|
Z,
|
|
36045
|
-
|
|
36048
|
+
QU
|
|
36046
36049
|
]
|
|
36047
|
-
}), r[56] = Z, r[57] =
|
|
36050
|
+
}), r[56] = Z, r[57] = QU, r[58] = $U) : $U = r[58], $U;
|
|
36048
36051
|
}, InsertCellLine = (e) => {
|
|
36049
36052
|
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;
|
|
36050
36053
|
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-none", u), r[0] = u, r[1] = d);
|
|
@@ -36098,10 +36101,10 @@ ${c}
|
|
|
36098
36101
|
...B,
|
|
36099
36102
|
...h
|
|
36100
36103
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
36101
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
36102
|
-
r[25] !== l || r[26] !==
|
|
36103
|
-
let
|
|
36104
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
36104
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", qU = w && !T && "opacity-35", Z = T && "opacity-95 shadow-lg", JU;
|
|
36105
|
+
r[25] !== l || r[26] !== qU || r[27] !== Z || r[28] !== q ? (JU = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, qU, Z, l), r[25] = l, r[26] = qU, r[27] = Z, r[28] = q, r[29] = JU) : JU = r[29];
|
|
36106
|
+
let YU;
|
|
36107
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (YU = G && (0, import_jsx_runtime.jsx)("div", {
|
|
36105
36108
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
36106
36109
|
style: {
|
|
36107
36110
|
transform: `scale(${I})`,
|
|
@@ -36116,14 +36119,14 @@ ${c}
|
|
|
36116
36119
|
status: c.status,
|
|
36117
36120
|
output: c.output
|
|
36118
36121
|
})
|
|
36119
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
36120
|
-
let
|
|
36121
|
-
r[37] === z ?
|
|
36122
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = YU) : YU = r[36];
|
|
36123
|
+
let XU;
|
|
36124
|
+
r[37] === z ? XU = r[38] : (XU = z && (0, import_jsx_runtime.jsx)("div", {
|
|
36122
36125
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
36123
36126
|
"aria-hidden": true
|
|
36124
|
-
}), r[37] = z, r[38] =
|
|
36125
|
-
let
|
|
36126
|
-
r[39] !== z || r[40] !== R ? (
|
|
36127
|
+
}), r[37] = z, r[38] = XU);
|
|
36128
|
+
let ZU;
|
|
36129
|
+
r[39] !== z || r[40] !== R ? (ZU = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
36127
36130
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
36128
36131
|
className: "text-xs opacity-80",
|
|
36129
36132
|
children: R.description
|
|
@@ -36135,19 +36138,19 @@ ${c}
|
|
|
36135
36138
|
className: "h-3.5 w-3.5"
|
|
36136
36139
|
})
|
|
36137
36140
|
})
|
|
36138
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
36139
|
-
let
|
|
36140
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
36141
|
+
}), r[39] = z, r[40] = R, r[41] = ZU) : ZU = r[41];
|
|
36142
|
+
let QU;
|
|
36143
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== JU || r[46] !== YU || r[47] !== XU || r[48] !== ZU ? (QU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36141
36144
|
ref: f,
|
|
36142
|
-
className:
|
|
36145
|
+
className: JU,
|
|
36143
36146
|
style: W,
|
|
36144
36147
|
...d,
|
|
36145
36148
|
children: [
|
|
36146
|
-
|
|
36147
|
-
|
|
36148
|
-
|
|
36149
|
+
YU,
|
|
36150
|
+
XU,
|
|
36151
|
+
ZU
|
|
36149
36152
|
]
|
|
36150
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
36153
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = JU, r[46] = YU, r[47] = XU, r[48] = ZU, r[49] = QU) : QU = r[49], QU;
|
|
36151
36154
|
}, MiniCodePreview = (e) => {
|
|
36152
36155
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
36153
36156
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -36187,7 +36190,7 @@ ${c}
|
|
|
36187
36190
|
function _temp2$2(e) {
|
|
36188
36191
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
36189
36192
|
}
|
|
36190
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36193
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-0u6v5UUq.js"));
|
|
36191
36194
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36192
36195
|
var _a3;
|
|
36193
36196
|
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), [
|
|
@@ -36565,7 +36568,7 @@ ${c}
|
|
|
36565
36568
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36566
36569
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36567
36570
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36568
|
-
let H, W, G, q,
|
|
36571
|
+
let H, W, G, q, qU, Z, JU, YU, XU, ZU;
|
|
36569
36572
|
if (r[3] !== T || r[4] !== M || r[5] !== I || r[6] !== L || r[7] !== _ || r[8] !== b || r[9] !== d || r[10] !== z || r[11] !== O || r[12] !== j || r[13] !== E || r[14] !== R || r[15] !== f || r[16] !== u || r[17] !== y || r[18] !== m || r[19] !== l) {
|
|
36570
36573
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36571
36574
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36611,11 +36614,11 @@ ${c}
|
|
|
36611
36614
|
})
|
|
36612
36615
|
})
|
|
36613
36616
|
]
|
|
36614
|
-
}), 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",
|
|
36615
|
-
let
|
|
36616
|
-
r[40] !== M || r[41] !==
|
|
36617
|
+
}), 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", qU = c, Z = R, JU = 0;
|
|
36618
|
+
let QU2 = y && "marimo-output-stale", $U2 = L ? "p-5" : "p-3";
|
|
36619
|
+
r[40] !== M || r[41] !== QU2 || r[42] !== $U2 ? (YU = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", QU2, $U2, M), r[40] = M, r[41] = QU2, r[42] = $U2, r[43] = YU) : YU = r[43], r[44] === d ? XU = r[45] : (XU = d ? {
|
|
36617
36620
|
maxHeight: "none"
|
|
36618
|
-
} : void 0, r[44] = d, r[45] =
|
|
36621
|
+
} : void 0, r[44] = d, r[45] = XU), ZU = e2.map((e3, r2) => {
|
|
36619
36622
|
if (e3.channel === "pdb") return null;
|
|
36620
36623
|
if (e3.channel === "stdin") {
|
|
36621
36624
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -36644,36 +36647,36 @@ ${c}
|
|
|
36644
36647
|
wrapText: l
|
|
36645
36648
|
})
|
|
36646
36649
|
}, r2);
|
|
36647
|
-
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] =
|
|
36648
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
36649
|
-
let
|
|
36650
|
-
r[46] !== T || r[47] !== S ? (
|
|
36650
|
+
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = qU, r[25] = Z, r[26] = JU, r[27] = YU, r[28] = XU, r[29] = ZU;
|
|
36651
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], qU = r[24], Z = r[25], JU = r[26], YU = r[27], XU = r[28], ZU = r[29];
|
|
36652
|
+
let QU;
|
|
36653
|
+
r[46] !== T || r[47] !== S ? (QU = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36651
36654
|
value: S,
|
|
36652
36655
|
cellId: T,
|
|
36653
36656
|
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"
|
|
36654
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
36655
|
-
let
|
|
36656
|
-
r[49] !==
|
|
36657
|
+
}), r[46] = T, r[47] = S, r[48] = QU) : QU = r[48];
|
|
36658
|
+
let $U;
|
|
36659
|
+
r[49] !== QU || r[50] !== G || r[51] !== q || r[52] !== qU || r[53] !== Z || r[54] !== JU || r[55] !== YU || r[56] !== XU || r[57] !== ZU ? ($U = (0, import_jsx_runtime.jsxs)("div", {
|
|
36657
36660
|
title: G,
|
|
36658
36661
|
"data-testid": q,
|
|
36659
|
-
ref:
|
|
36662
|
+
ref: qU,
|
|
36660
36663
|
...Z,
|
|
36661
|
-
tabIndex:
|
|
36662
|
-
className:
|
|
36663
|
-
style:
|
|
36664
|
+
tabIndex: JU,
|
|
36665
|
+
className: YU,
|
|
36666
|
+
style: XU,
|
|
36664
36667
|
children: [
|
|
36665
|
-
|
|
36666
|
-
|
|
36668
|
+
ZU,
|
|
36669
|
+
QU
|
|
36667
36670
|
]
|
|
36668
|
-
}), r[49] =
|
|
36669
|
-
let
|
|
36670
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
36671
|
+
}), r[49] = QU, r[50] = G, r[51] = q, r[52] = qU, r[53] = Z, r[54] = JU, r[55] = YU, r[56] = XU, r[57] = ZU, r[58] = $U) : $U = r[58];
|
|
36672
|
+
let eW;
|
|
36673
|
+
return r[59] !== H || r[60] !== W || r[61] !== $U ? (eW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36671
36674
|
className: H,
|
|
36672
36675
|
children: [
|
|
36673
36676
|
W,
|
|
36674
|
-
|
|
36677
|
+
$U
|
|
36675
36678
|
]
|
|
36676
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
36679
|
+
}), r[59] = H, r[60] = W, r[61] = $U, r[62] = eW) : eW = r[62], eW;
|
|
36677
36680
|
}, StdInput = (e) => {
|
|
36678
36681
|
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;
|
|
36679
36682
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -37137,23 +37140,23 @@ ${c}
|
|
|
37137
37140
|
if ((h || _ || m || W) && !G) return null;
|
|
37138
37141
|
let q;
|
|
37139
37142
|
r[43] !== d || r[44] !== T ? (q = cellDomProps(d, T), r[43] = d, r[44] = T, r[45] = q) : q = r[45];
|
|
37140
|
-
let
|
|
37141
|
-
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !==
|
|
37142
|
-
allowExpand:
|
|
37143
|
+
let qU = w === "edit", Z;
|
|
37144
|
+
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !== qU ? (Z = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37145
|
+
allowExpand: qU,
|
|
37143
37146
|
output: c,
|
|
37144
37147
|
className: CSSClasses.outputArea,
|
|
37145
37148
|
cellId: d,
|
|
37146
37149
|
stale: I,
|
|
37147
37150
|
loading: R
|
|
37148
|
-
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] =
|
|
37149
|
-
let
|
|
37150
|
-
return r[52] !== H || r[53] !== q || r[54] !== Z ? (
|
|
37151
|
+
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] = qU, r[51] = Z) : Z = r[51];
|
|
37152
|
+
let JU;
|
|
37153
|
+
return r[52] !== H || r[53] !== q || r[54] !== Z ? (JU = (0, import_jsx_runtime.jsx)("div", {
|
|
37151
37154
|
tabIndex: -1,
|
|
37152
37155
|
ref: j,
|
|
37153
37156
|
className: H,
|
|
37154
37157
|
...q,
|
|
37155
37158
|
children: Z
|
|
37156
|
-
}), r[52] = H, r[53] = q, r[54] = Z, r[55] =
|
|
37159
|
+
}), r[52] = H, r[53] = q, r[54] = Z, r[55] = JU) : JU = r[55], JU;
|
|
37157
37160
|
});
|
|
37158
37161
|
VerticalCell.displayName = "VerticalCell";
|
|
37159
37162
|
const VerticalLayoutPlugin = {
|
|
@@ -38075,7 +38078,7 @@ ${r}
|
|
|
38075
38078
|
});
|
|
38076
38079
|
}
|
|
38077
38080
|
const getMarimoVersion = () => store.get(marimoVersionAtom);
|
|
38078
|
-
var worker_default = "/assets/worker-
|
|
38081
|
+
var worker_default = "/assets/worker-DEDLIQQV.js", DefaultWorkerFactory = class {
|
|
38079
38082
|
constructor(e = {}) {
|
|
38080
38083
|
this.url = e.workerUrl || this.getDefaultWorkerUrl(), this.name = e.workerName || getMarimoVersion();
|
|
38081
38084
|
}
|