@marimo-team/islands 0.23.15-dev32 → 0.23.15-dev4
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-7p7rt9iw.js → ConnectedDataExplorerComponent-CU4fZJzG.js} +4 -4
- package/dist/{ErrorBoundary-B_CAG7_e.js → ErrorBoundary-DE6tzZf-.js} +1 -1
- package/dist/{ImageComparisonComponent-1i5IBhon.js → ImageComparisonComponent-CHrI72em.js} +129 -173
- package/dist/assets/__vite-browser-external-BQCLNwri.js +1 -0
- package/dist/assets/worker-DAWRHcPq.js +73 -0
- package/dist/{chat-ui-C0wkSwxB.js → chat-ui-DinOvbWu.js} +3111 -3111
- package/dist/{code-visibility-CEHWVGz1.js → code-visibility-Dk8cVOny.js} +864 -946
- package/dist/{debounce-BOD3DbfP.js → constants-T20xxyNf.js} +24 -1
- package/dist/{formats-BX3uDQbB.js → formats-Dzx4J_z1.js} +1 -1
- package/dist/{glide-data-editor-CwZz71BD.js → glide-data-editor-CjTu7ukN.js} +3 -3
- package/dist/{html-to-image-D8Q5SLSJ.js → html-to-image-_wGfk8V-.js} +2241 -2277
- package/dist/{input-BGPrFH3g.js → input-DtsN7xm-.js} +2 -2
- package/dist/main.js +1201 -1297
- package/dist/{mermaid-UdmxG2PZ.js → mermaid-BYqXy_NE.js} +2 -2
- package/dist/{process-output-C_A12w9J.js → process-output-Mh4UrjwM.js} +1 -1
- package/dist/{reveal-component-kLDhMoa2.js → reveal-component-B5DXLyO7.js} +605 -618
- package/dist/{spec-DSs9v0xx.js → spec-Cz-Bj1JI.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{toDate-CKpRx4TS.js → toDate-CWNNlFEX.js} +4 -3
- package/dist/{useAsyncData-BSOyAbac.js → useAsyncData-KfHB8wQR.js} +1 -1
- package/dist/{useDeepCompareMemoize-BTLeWzuR.js → useDeepCompareMemoize-nJMtxhm4.js} +1 -1
- package/dist/{useLifecycle-C6wHjkhW.js → useLifecycle-DegSo0lV.js} +1 -1
- package/dist/{useTheme-Df_vGflw.js → useTheme-6eZ3GOTS.js} +27 -62
- package/dist/{vega-component-DNHEV0u0.js → vega-component-DzyyM9fc.js} +6 -6
- package/package.json +1 -1
- package/src/components/chat/__tests__/chat-utils.test.ts +1 -244
- package/src/components/chat/chat-panel.tsx +67 -196
- package/src/components/chat/chat-utils.ts +2 -111
- package/src/components/editor/SortableCell.tsx +2 -6
- package/src/components/editor/actions/pair-with-agent-modal.tsx +64 -20
- package/src/components/editor/ai/add-cell-with-ai.tsx +5 -14
- package/src/components/editor/ai/ai-completion-editor.tsx +1 -4
- package/src/components/editor/cell/cell-context-menu.tsx +0 -7
- package/src/components/editor/chrome/panels/packages-panel.tsx +1 -11
- package/src/components/editor/columns/cell-column.tsx +4 -34
- package/src/components/editor/columns/sortable-column.tsx +4 -24
- package/src/components/editor/navigation/__tests__/navigation.test.ts +0 -33
- package/src/components/editor/navigation/navigation.ts +1 -8
- package/src/components/editor/notebook-cell.tsx +106 -203
- package/src/components/editor/renderers/cell-array.tsx +13 -26
- package/src/components/editor/renderers/cells-renderer.tsx +2 -8
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +0 -29
- package/src/components/editor/renderers/slides-layout/types.ts +0 -4
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +19 -19
- package/src/components/slides/reveal-component.tsx +4 -37
- package/src/components/slides/slide-form.tsx +0 -72
- package/src/core/cells/__tests__/utils.test.ts +0 -59
- package/src/core/cells/utils.ts +0 -51
- package/src/core/codemirror/completion/__tests__/signature-hint.test.ts +3 -97
- package/src/core/codemirror/completion/signature-hint.ts +11 -78
- package/src/core/constants.ts +0 -6
- package/src/core/islands/__tests__/bridge.test.ts +46 -341
- package/src/core/islands/__tests__/parse.test.ts +0 -105
- package/src/core/islands/bootstrap.ts +3 -8
- package/src/core/islands/bridge.ts +23 -116
- package/src/core/islands/components/web-components.tsx +15 -76
- package/src/core/islands/constants.ts +0 -1
- package/src/core/islands/main.ts +3 -35
- package/src/core/islands/parse.ts +23 -70
- package/src/core/islands/worker/worker.tsx +57 -145
- package/src/core/wasm/worker/bootstrap.ts +20 -113
- package/src/css/app/Cell.css +0 -10
- package/src/hooks/useHotkey.ts +4 -29
- package/src/plugins/impl/anywidget/__tests__/host.test.ts +9 -6
- package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +61 -22
- package/src/plugins/impl/anywidget/model-proxy.ts +13 -0
- package/src/plugins/impl/anywidget/widget-binding.ts +34 -4
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +2 -53
- package/src/plugins/impl/matplotlib/__tests__/matplotlib-renderer.test.ts +3 -71
- package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +0 -1
- package/src/theme/useTheme.ts +1 -16
- package/dist/assets/__vite-browser-external-CjNAy01L.js +0 -1
- package/dist/assets/worker-B3XPCb6y.js +0 -98
- package/src/components/chat/__tests__/message-queue.test.tsx +0 -121
- package/src/components/editor/__tests__/output-persistence.test.tsx +0 -241
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +0 -153
- package/src/components/editor/actions/pair-with-agent-commands.ts +0 -109
- package/src/components/editor/columns/__tests__/cell-column.test.tsx +0 -105
- package/src/components/editor/renderers/__tests__/cells-renderer.test.tsx +0 -66
- package/src/core/islands/components/__tests__/web-components.test.tsx +0 -214
- package/src/core/islands/worker/__tests__/controller.test.ts +0 -173
- package/src/hooks/__tests__/useHotkey.test.tsx +0 -88
- package/src/plugins/impl/image-comparison/__tests__/ImageComparisonComponent.test.tsx +0 -71
- package/src/theme/__tests__/useTheme.test.ts +0 -68
package/dist/main.js
CHANGED
|
@@ -22,19 +22,19 @@ import { _ as Logger, c as Objects, g as cn, h as Events, i as NOT_SET, l as use
|
|
|
22
22
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
23
23
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
24
24
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-COam1EG7.js";
|
|
25
|
-
import { $ as
|
|
25
|
+
import { $ as reducer, $t as getRequestClient, A as ChevronDownIcon, An as Trigger2, At as Paths, Bn as FileText, C as Accordion, Cn as atomWithStorage, Ct as isInternalCellName, D as BorderAllIcon, Dn as Content2, Dt as MarkdownLanguageAdapter, E as AccordionTrigger, Et as customPythonLanguageSupport, Ft as generateUUID, G as hasRunAnyCellAtom, Gt as PluralWords, H as renderHTML, Ht as SQLParser, I as base64ToDataView, J as getCellNames, Jt as require_client, K as createActions, Kn as CircleAlert, Kt as DATA_TYPE_ICON, Ln as LoaderCircle, Mn as Trash2, Nn as Table2, On as Item$1, Pn as PaintRoller, Pt as DeferredRequestRegistry, Q as numColumnsAtom, Qt as convertStatsName, R as dataViewToBase64, Rn as Layers, Rt as jotaiJsonStorage, Sn as atomWithReducer, St as getValidName, T as AccordionItem, Tt as Checkbox, U as getMarimoExportContext, Un as Database, Ut as MarkdownParser, V as safeExtractSetUIElementMessageBuffers, Vn as Eye, Vt as repl, W as hasTrustedExportContext, Wn as Columns2, X as notebookAtom, Y as hasOnlyOneCellAtom, Z as notebookOutline, _n as findCellId, _t as headingToIdentifier, a as useCellFocusActions, bn as jsonParseWithSpecialChar, ct as initialModeAtom, dn as parseDataset, dt as viewStateAtom, en as requestClientAtom, et as useCellActions, f as isOutputEmpty, fn as parseInitialValue, ft as outputIsLoading, gn as UIElementId, i as LazyAnyLanguageCodeMirror, kn as Root2$1, kt as PathBuilder, lt as kioskModeAtom, mn as HTMLCellId, mt as isErrorMime, n as Spinner, nn as isUninstantiated, o as useLastFocusedCellId, p as useExpandedConsoleOutput, pt as outputIsStale, qn as Braces, rt as createCell, s as maybeAddAltairImport, sn as NotebookScopedLocalStorage, st as getInitialAppMode, tn as useRequestClient, tt as useCellIds, un as parseAttrValue, vn as OBJECT_ID_ATTR, w as AccordionContent, wn as selectAtom, wt as normalizeName, yn as RANDOM_ID_ATTR, zn as Info, __tla as __tla_0 } from "./html-to-image-_wGfk8V-.js";
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BbqSm5gU.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist--2Bqjvs0.js";
|
|
28
|
-
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-
|
|
29
|
-
import { $ as
|
|
30
|
-
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-
|
|
28
|
+
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-Cz-Bj1JI.js";
|
|
29
|
+
import { $ as PANEL_TYPES, $t as hasFunctionProperty, A as prettifyRowCount, At as INDEX_COLUMN_NAME, B as CompactChipRow, Bt as Tabs, C as downloadSizeLimitAtom, Ct as ColumnChartSpecModel, D as ErrorState, Dt as getPageIndexForRow, E as EmptyState, Et as usePrevious$1, F as ContextMenuItem, Ft as isNullishFilter, G as Command, Gt as ChartInfoState, H as DateRangePicker, Ht as TabsList, I as ContextMenuSeparator, It as Maps, J as CommandItem, Jt as useOverflowDetection, K as CommandEmpty, Kt as ChartLoadingState, L as ContextMenuTrigger, Lt as dateToLocalISODate, M as getUserColumnVisibilityCounts, Mt as TOO_MANY_ROWS, N as ContextMenu, Nt as toFieldTypes, O as LoadingState, Ot as loadTableAndRawData, P as ContextMenuContent, Pt as getMimeValues, Q as ContextAwarePanelItem, Qt as EmotionCacheProvider, R as useInternalStateWithSync, Rt as dateToLocalISODateTime, S as Filenames, St as ColumnChartContext, T as ColumnPreviewContainer, Tt as useIntersectionObserver, U as Combobox, Ut as TabsTrigger, V as DatePicker, Vt as TabsContent, W as ComboboxItem, Wt as ChartErrorState, X as CommandSeparator, Xt as Kbd, Y as CommandList, Yt as RenderTextWithLinks, Z as smartMatch, Zt as HtmlOutput, _ as ADD_PRINTING_CLASS, _t as TableRow, an as Funnel, at as slotsController, b as downloadHTMLAsImage, bt as inferFieldTypes, c as Slide, cn as Ellipsis, d as RadioGroupItem, dn as ChevronsUpDown, dt as Provider$1, en as isRecord, et as contextAwarePanelOpen, f as JsonOutput, fn as ChevronsRight, ft as Table, g as InstallPackageButton, gn as ArrowDownWideNarrow, gt as TableHeader, h as DataTable, hn as ChevronLeft, ht as TableHead, in as GripHorizontal, it as SlotNames, j as getColumnCountForDisplay, jt as SELECT_COLUMN_ID, k as prettifyRowColumnCount, kt as loadTableData, l as Switch, ln as Download, m as OutputRenderer, mn as ChevronsDownUp, mt as TableCell, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$6b862160d295c8e, nt as contextAwarePanelType, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as EyeOff, ot as Toggle, p as OutputArea, pn as ChevronsLeft, pt as TableBody, q as CommandInput, qt as LazyVegaEmbed, r as showCodeInRunModeAtom, rn as TextWrap, rt as isCellAwareAtom, t as useNotebookCodeAvailable, tn as $fae977aafc393c5c$export$588937bcd60ade55, tt as contextAwarePanelOwner, u as RadioGroup, un as Code, ut as Fill, v as downloadBlob, vt as NAMELESS_COLUMN_PREFIX, w as ColumnName, wt as DelayMount, x as Progress, xt as renderCellValue, y as downloadByURL, yt as generateColumns, z as useSelectList, zt as dateToLocalISOTime, __tla as __tla_2 } from "./code-visibility-Dk8cVOny.js";
|
|
30
|
+
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-DegSo0lV.js";
|
|
31
31
|
import { t as Check } from "./check-C9OoNtR4.js";
|
|
32
32
|
import { A as Icon, C as logNever, D as $18f2051aff69b9bf$export$a54013f0d02a8f82, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, M as clamp$2, N as usePrevious$2, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as Trigger$1, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./strings-Dq_j3Rxw.js";
|
|
33
|
-
import { B as $64fa3d84918910a7$export$4d86445c2cf5e3, C as DropdownMenuTrigger, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, It as $3ef42575df84b30b$export$9d1611c77c2fe928, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, X as useDebouncedCallback, Y as useDebounceControlledState, a as NumberField, d as roundToFractionDigits, f as DropdownMenu, g as DropdownMenuLabel, gn as ChevronRight, h as DropdownMenuItem, hn as Circle, i as OnBlurredInput, l as prettyNumber, m as DropdownMenuGroup, n as DebouncedNumberInput, o as maxFractionDigitsForSteps, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pt as $6179b936705e76d3$export$ae780daf29e6d456, r as Input, st as $701a24aa0da5b062$export$ea18c227d4417cc3, t as DebouncedInput, u as prettyScientificNumber, v as DropdownMenuSeparator, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, y as DropdownMenuShortcut, z as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./input-
|
|
34
|
-
import { _ as isWasm, c as asRemoteURL, d as isStaticNotebook, f as appendQueryParams, g as Deferred, m as require_cuid2, u as getStaticVirtualFiles, v as CircleQuestionMark } from "./toDate-
|
|
35
|
-
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, d as Square, f as File, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-
|
|
33
|
+
import { B as $64fa3d84918910a7$export$4d86445c2cf5e3, C as DropdownMenuTrigger, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, It as $3ef42575df84b30b$export$9d1611c77c2fe928, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, X as useDebouncedCallback, Y as useDebounceControlledState, a as NumberField, d as roundToFractionDigits, f as DropdownMenu, g as DropdownMenuLabel, gn as ChevronRight, h as DropdownMenuItem, hn as Circle, i as OnBlurredInput, l as prettyNumber, m as DropdownMenuGroup, n as DebouncedNumberInput, o as maxFractionDigitsForSteps, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pt as $6179b936705e76d3$export$ae780daf29e6d456, r as Input, st as $701a24aa0da5b062$export$ea18c227d4417cc3, t as DebouncedInput, u as prettyScientificNumber, v as DropdownMenuSeparator, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, y as DropdownMenuShortcut, z as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./input-DtsN7xm-.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-CWNNlFEX.js";
|
|
35
|
+
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, d as Square, f as File, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-Mh4UrjwM.js";
|
|
36
36
|
import { n as Trash, r as Pencil, t as BulkEdit } from "./types-C2Ir191_.js";
|
|
37
|
-
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-
|
|
37
|
+
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-DE6tzZf-.js";
|
|
38
38
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
39
39
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
40
40
|
import { $ as isInVscodeExtension, A as looseObject, B as union, C as any, E as custom, 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-CijjQh4u.js";
|
|
@@ -44,8 +44,8 @@ import { a as TooltipRoot, i as TooltipProvider, n as TooltipContent, o as Toolt
|
|
|
44
44
|
import { f as CopyClipboardIcon } from "./extends-9MVIxxRo.js";
|
|
45
45
|
import { a as get_default } from "./hasIn-Deg7jl_j.js";
|
|
46
46
|
import { n as _baseSet_default, t as pick_default } from "./pick-D1Qo8s2C.js";
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
47
|
+
import { i as debounce_default, r as KnownQueryParams, t as CSSClasses } from "./constants-T20xxyNf.js";
|
|
48
|
+
import { D as useEvent_default, E as dequal, S as atom, _ as Provider, a as autoInstantiateAtom, d as AppConfigSchema, g as isIslands, l as useResolvedMarimoConfig, n as useTheme, p as store, s as localeAtom, v as useAtom, y as useAtomValue } from "./useTheme-6eZ3GOTS.js";
|
|
49
49
|
import { $ as EditorView, F as syntaxHighlighting, H as tags, a as HighlightStyle, g as defaultHighlightStyle } from "./dist-U4F-tbMs.js";
|
|
50
50
|
import { t as invariant } from "./invariant-wRzNXIsJ.js";
|
|
51
51
|
import { c as uniqueBy, l as clamp, o as arrayShallowEquals, t as Arrays } from "./arrays-sEtDRoG4.js";
|
|
@@ -59,13 +59,13 @@ import "./dist-M9Vag9Y0.js";
|
|
|
59
59
|
import { r as python } from "./dist-C_Y3oV3C.js";
|
|
60
60
|
import { n as minimalSetup, t as esm_default } from "./esm-M837UxV5.js";
|
|
61
61
|
import "./purify.es-H92eMd9-.js";
|
|
62
|
-
import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-
|
|
62
|
+
import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-Dzx4J_z1.js";
|
|
63
63
|
import "./vega-loader.browser-CZ-J8Py3.js";
|
|
64
64
|
import { a as getContainerWidth, n as vegaLoadData, o as getVegaFieldTypes, s as tooltipHandler } from "./loader-Boph2xIS.js";
|
|
65
65
|
import "./defaultLocale-u-3osm0P.js";
|
|
66
66
|
import "./defaultLocale-BoHTsDG6.js";
|
|
67
|
-
import { t as useAsyncData } from "./useAsyncData-
|
|
68
|
-
import { t as useDeepCompareMemoize } from "./useDeepCompareMemoize-
|
|
67
|
+
import { t as useAsyncData } from "./useAsyncData-KfHB8wQR.js";
|
|
68
|
+
import { t as useDeepCompareMemoize } from "./useDeepCompareMemoize-nJMtxhm4.js";
|
|
69
69
|
import "./dist-CIYBwstr.js";
|
|
70
70
|
import "./dist-abid3KgM.js";
|
|
71
71
|
import "./dist-A2846XWO.js";
|
|
@@ -76,7 +76,7 @@ import "./dist-DyyjKEYf.js";
|
|
|
76
76
|
import "./dist-DZo4nSS0.js";
|
|
77
77
|
import "./dist-BzEzfugY.js";
|
|
78
78
|
import { t as langs } from "./esm-ga2Bf3O2.js";
|
|
79
|
-
let
|
|
79
|
+
let initialize;
|
|
80
80
|
let __tla = Promise.all([
|
|
81
81
|
(() => {
|
|
82
82
|
try {
|
|
@@ -97,7 +97,7 @@ let __tla = Promise.all([
|
|
|
97
97
|
}
|
|
98
98
|
})()
|
|
99
99
|
]).then(async () => {
|
|
100
|
-
var _a, _e2, _t2, _n2, _r, _i, _e_instances, a_fn, o_fn, s_fn, _c, _b, _e3, _WidgetDefRegistry_instances, t_fn, _c2, _e4, _t3, _n3, _r2, _i2, _a2, _o2, _e_instances2, s_fn2, c_fn, _d, _e5, _t4, _n4, _r3, _i3, _a3, _o3, _s, _c3, _l, _u, _d2, _f, _p, _WidgetRuntime_instances, m_fn, h_fn, g_fn, __fn, v_fn, y_fn, b_fn, x_fn, _e6, _e7, _t5, _n5, _instances, r_fn, _f2, _e8, _t6, _n6, _r4, _i4, _a4, _o4, _s2, _MatplotlibRenderer_instances, c_fn2,
|
|
100
|
+
var _a, _e2, _t2, _n2, _r, _i, _e_instances, a_fn, o_fn, s_fn, _c, _b, _e3, _WidgetDefRegistry_instances, t_fn, _c2, _e4, _t3, _n3, _r2, _i2, _a2, _o2, _e_instances2, s_fn2, c_fn, l_fn, _d, _e5, _t4, _n4, _r3, _i3, _a3, _o3, _s, _c3, _l, _u, _d2, _f, _p, _WidgetRuntime_instances, m_fn, h_fn, g_fn, __fn, v_fn, y_fn, b_fn, x_fn, _e6, _e7, _t5, _n5, _instances, r_fn, _f2, _e8, _t6, _n6, _r4, _i4, _a4, _o4, _s2, _MatplotlibRenderer_instances, c_fn2, l_fn2, u_fn, _d3, _f3, _p2, _m, _h, _g, __, _v, _y, _b2, _x, _S, _C, _w, _g2, _h2;
|
|
101
101
|
var defaultIconDimensions = Object.freeze({
|
|
102
102
|
left: 0,
|
|
103
103
|
top: 0,
|
|
@@ -1392,7 +1392,7 @@ let __tla = Promise.all([
|
|
|
1392
1392
|
CELL_OUTPUT: "marimo-cell-output",
|
|
1393
1393
|
CELL_CODE: "marimo-cell-code",
|
|
1394
1394
|
CODE_EDITOR: "marimo-code-editor"
|
|
1395
|
-
},
|
|
1395
|
+
}, ISLAND_DATA_ATTRIBUTES = {
|
|
1396
1396
|
APP_ID: "data-app-id",
|
|
1397
1397
|
CELL_IDX: "data-cell-idx",
|
|
1398
1398
|
CELL_ID: "data-cell-id",
|
|
@@ -3483,29 +3483,32 @@ let __tla = Promise.all([
|
|
|
3483
3483
|
return e == null ? e : _baseSet_default(e, r, c);
|
|
3484
3484
|
}
|
|
3485
3485
|
var set_default = set$1;
|
|
3486
|
-
function modelProxy(e, r) {
|
|
3486
|
+
function modelProxy(e, r, c) {
|
|
3487
3487
|
return {
|
|
3488
3488
|
get(r2) {
|
|
3489
3489
|
return e.get(r2);
|
|
3490
3490
|
},
|
|
3491
|
-
set(r2,
|
|
3492
|
-
e.set(r2,
|
|
3491
|
+
set(r2, c2) {
|
|
3492
|
+
e.set(r2, c2);
|
|
3493
3493
|
},
|
|
3494
3494
|
save_changes() {
|
|
3495
3495
|
e.save_changes();
|
|
3496
3496
|
},
|
|
3497
3497
|
send: e.send.bind(e),
|
|
3498
|
-
on(
|
|
3499
|
-
r.aborted || (e.on(
|
|
3498
|
+
on(l, u) {
|
|
3499
|
+
r.aborted || (e.on(l, u), r.addEventListener("abort", () => e.off(l, u), {
|
|
3500
3500
|
once: true
|
|
3501
|
+
}), c == null ? void 0 : c({
|
|
3502
|
+
event: l,
|
|
3503
|
+
callback: u
|
|
3501
3504
|
}));
|
|
3502
3505
|
},
|
|
3503
|
-
off(r2,
|
|
3504
|
-
e.off(r2 ?? null,
|
|
3506
|
+
off(r2, c2) {
|
|
3507
|
+
e.off(r2 ?? null, c2 ?? null);
|
|
3505
3508
|
},
|
|
3506
3509
|
widget_manager: {
|
|
3507
|
-
async get_model(
|
|
3508
|
-
return modelProxy(await e.widget_manager.get_model(
|
|
3510
|
+
async get_model(c2) {
|
|
3511
|
+
return modelProxy(await e.widget_manager.get_model(c2), r);
|
|
3509
3512
|
}
|
|
3510
3513
|
}
|
|
3511
3514
|
};
|
|
@@ -3836,17 +3839,17 @@ let __tla = Promise.all([
|
|
|
3836
3839
|
]);
|
|
3837
3840
|
if (l.aborted) return;
|
|
3838
3841
|
e.el.innerHTML = "";
|
|
3839
|
-
let u = __privateGet(this, _i2).call(this, l), f = await c.render({
|
|
3840
|
-
model: modelProxy(__privateGet(this, _n3), l),
|
|
3842
|
+
let u = __privateGet(this, _i2).call(this, l), f = [], p = await c.render({
|
|
3843
|
+
model: modelProxy(__privateGet(this, _n3), l, (e2) => f.push(e2)),
|
|
3841
3844
|
el: e.el,
|
|
3842
3845
|
experimental,
|
|
3843
3846
|
signal: l,
|
|
3844
3847
|
host: u
|
|
3845
3848
|
});
|
|
3846
|
-
if (isCleanup(
|
|
3849
|
+
if (isCleanup(p)) {
|
|
3847
3850
|
let e2 = () => {
|
|
3848
3851
|
let e3 = r.signal.aborted ? "view unmount" : "binding destroyed";
|
|
3849
|
-
return Logger.debug(`[WidgetBinding] Render cleanup triggered (reason: ${e3})`), __privateMethod(this, _e_instances2, c_fn).call(this,
|
|
3852
|
+
return Logger.debug(`[WidgetBinding] Render cleanup triggered (reason: ${e3})`), __privateMethod(this, _e_instances2, c_fn).call(this, p, "render");
|
|
3850
3853
|
};
|
|
3851
3854
|
if (l.aborted) {
|
|
3852
3855
|
await e2();
|
|
@@ -3856,9 +3859,22 @@ let __tla = Promise.all([
|
|
|
3856
3859
|
once: true
|
|
3857
3860
|
});
|
|
3858
3861
|
}
|
|
3862
|
+
__privateMethod(this, _e_instances2, l_fn).call(this, f, l);
|
|
3859
3863
|
}, c_fn = function(e, r) {
|
|
3860
3864
|
let c = safelyRunCleanup(e, r);
|
|
3861
3865
|
return __privateGet(this, _a2).add(c), c.finally(() => __privateGet(this, _a2).delete(c)), c;
|
|
3866
|
+
}, l_fn = function(e, r) {
|
|
3867
|
+
for (let { event: c, callback: l } of e) {
|
|
3868
|
+
if (r.aborted) return;
|
|
3869
|
+
try {
|
|
3870
|
+
if (c.startsWith("change:")) {
|
|
3871
|
+
let e2 = c.slice(7);
|
|
3872
|
+
l(__privateGet(this, _n3).get(e2));
|
|
3873
|
+
} else c === "change" && l();
|
|
3874
|
+
} catch (e2) {
|
|
3875
|
+
Logger.error("[WidgetBinding] Error replaying state", e2);
|
|
3876
|
+
}
|
|
3877
|
+
}
|
|
3862
3878
|
}, _d);
|
|
3863
3879
|
const WIDGET_DEF_REGISTRY = new WidgetDefRegistry();
|
|
3864
3880
|
var WidgetRuntime = (_e6 = class {
|
|
@@ -7395,33 +7411,33 @@ let __tla = Promise.all([
|
|
|
7395
7411
|
}), B = C({
|
|
7396
7412
|
height: 0,
|
|
7397
7413
|
width: 0
|
|
7398
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
7414
|
+
}), H = U(), W = U(), G = C(0), q = C(null), kW = C({
|
|
7399
7415
|
column: 0,
|
|
7400
7416
|
row: 0
|
|
7401
|
-
}),
|
|
7402
|
-
Y(x(b, $(
|
|
7403
|
-
D(
|
|
7404
|
-
}), Y(x(ut(b,
|
|
7405
|
-
D(
|
|
7417
|
+
}), Z = U(), AW = U(), jW = C(false), MW = C(0), NW = C(true), PW = C(false), FW = C(false);
|
|
7418
|
+
Y(x(b, $(MW), P(([e2, r2]) => !!r2)), () => {
|
|
7419
|
+
D(NW, false);
|
|
7420
|
+
}), Y(x(ut(b, NW, B, z, MW, PW), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7421
|
+
D(PW, true), Ue(1, () => {
|
|
7406
7422
|
D(H, e2);
|
|
7407
7423
|
}), Et(x(h), () => {
|
|
7408
7424
|
D(r, [
|
|
7409
7425
|
0,
|
|
7410
7426
|
0
|
|
7411
|
-
]), D(
|
|
7427
|
+
]), D(NW, true);
|
|
7412
7428
|
});
|
|
7413
|
-
}), F(x(
|
|
7414
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7415
|
-
D(
|
|
7429
|
+
}), F(x(AW, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(AW), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7430
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(kW, e2.gap), e2.scrollTop > 0 && (D(jW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7431
|
+
D(jW, false);
|
|
7416
7432
|
}), D(m, {
|
|
7417
7433
|
top: e2.scrollTop
|
|
7418
7434
|
})));
|
|
7419
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7435
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(kW, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7420
7436
|
gap: c2,
|
|
7421
7437
|
item: r2,
|
|
7422
7438
|
scrollTop: l2,
|
|
7423
7439
|
viewport: e2
|
|
7424
|
-
}))),
|
|
7440
|
+
}))), Z), F(x(ut(V(I), l, V(kW, Or), V(B, xe), V(z, xe), V(q), V(L), V(jW), V(NW), V(MW)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7425
7441
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7426
7442
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7427
7443
|
if (y2 === 0) {
|
|
@@ -7440,23 +7456,23 @@ let __tla = Promise.all([
|
|
|
7440
7456
|
offsetTop: j2,
|
|
7441
7457
|
top: j2
|
|
7442
7458
|
};
|
|
7443
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7459
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, kW), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7444
7460
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7445
7461
|
return [
|
|
7446
7462
|
d2,
|
|
7447
7463
|
u2
|
|
7448
7464
|
];
|
|
7449
7465
|
}), J(ce)), r);
|
|
7450
|
-
let
|
|
7451
|
-
F(x(h, $(
|
|
7452
|
-
let
|
|
7466
|
+
let IW = C(false);
|
|
7467
|
+
F(x(h, $(IW), k(([e2, r2]) => r2 || e2 !== 0)), IW);
|
|
7468
|
+
let LW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(IW), P(([[e2, r2], c2]) => {
|
|
7453
7469
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7454
7470
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7455
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7471
|
+
}), k(([[, e2]]) => e2 - 1), J())), RW = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), zW = bt(x(V(R), $(jW), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7456
7472
|
endIndex: e2[e2.length - 1].index,
|
|
7457
7473
|
startIndex: e2[0].index
|
|
7458
7474
|
})), J(An), Gt(0)));
|
|
7459
|
-
F(
|
|
7475
|
+
F(zW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, kW), k(([e2, r2, c2, l2, u2]) => {
|
|
7460
7476
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7461
7477
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7462
7478
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7465,7 +7481,7 @@ let __tla = Promise.all([
|
|
|
7465
7481
|
top: g2
|
|
7466
7482
|
};
|
|
7467
7483
|
})), m);
|
|
7468
|
-
let
|
|
7484
|
+
let BW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7469
7485
|
return F(x(j, k((e2) => ({
|
|
7470
7486
|
height: e2.visibleHeight,
|
|
7471
7487
|
width: e2.visibleWidth
|
|
@@ -7474,13 +7490,13 @@ let __tla = Promise.all([
|
|
|
7474
7490
|
data: q,
|
|
7475
7491
|
deviation: G,
|
|
7476
7492
|
footerHeight: u,
|
|
7477
|
-
gap:
|
|
7493
|
+
gap: kW,
|
|
7478
7494
|
headerHeight: d,
|
|
7479
7495
|
increaseViewportBy: e,
|
|
7480
7496
|
initialItemCount: L,
|
|
7481
7497
|
itemDimensions: B,
|
|
7482
7498
|
overscan: c,
|
|
7483
|
-
restoreStateFrom:
|
|
7499
|
+
restoreStateFrom: AW,
|
|
7484
7500
|
scrollBy: f,
|
|
7485
7501
|
scrollContainerState: p,
|
|
7486
7502
|
scrollHeight: W,
|
|
@@ -7496,16 +7512,16 @@ let __tla = Promise.all([
|
|
|
7496
7512
|
windowViewportRect: j,
|
|
7497
7513
|
...y,
|
|
7498
7514
|
gridState: R,
|
|
7499
|
-
horizontalDirection:
|
|
7500
|
-
initialTopMostItemIndex:
|
|
7501
|
-
totalListHeight:
|
|
7515
|
+
horizontalDirection: FW,
|
|
7516
|
+
initialTopMostItemIndex: MW,
|
|
7517
|
+
totalListHeight: BW,
|
|
7502
7518
|
...v,
|
|
7503
|
-
endReached:
|
|
7519
|
+
endReached: LW,
|
|
7504
7520
|
propsReady: S,
|
|
7505
|
-
rangeChanged:
|
|
7506
|
-
startReached:
|
|
7507
|
-
stateChanged:
|
|
7508
|
-
stateRestoreInProgress:
|
|
7521
|
+
rangeChanged: zW,
|
|
7522
|
+
startReached: RW,
|
|
7523
|
+
stateChanged: Z,
|
|
7524
|
+
stateRestoreInProgress: jW,
|
|
7509
7525
|
...M
|
|
7510
7526
|
};
|
|
7511
7527
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7783,22 +7799,22 @@ let __tla = Promise.all([
|
|
|
7783
7799
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7784
7800
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7785
7801
|
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7786
|
-
let
|
|
7802
|
+
let kW = q, Z;
|
|
7787
7803
|
if (r[13] !== G.bulkActions) {
|
|
7788
|
-
if (
|
|
7804
|
+
if (Z = G.bulkActions.map(_temp$27), Z.length > 0) {
|
|
7789
7805
|
let e2;
|
|
7790
7806
|
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7791
7807
|
"data-slot": "select-separator"
|
|
7792
|
-
}, "_bulk_separator"), r[15] = e2) : e2 = r[15],
|
|
7808
|
+
}, "_bulk_separator"), r[15] = e2) : e2 = r[15], Z.push(e2);
|
|
7793
7809
|
}
|
|
7794
|
-
r[13] = G.bulkActions, r[14] =
|
|
7795
|
-
} else
|
|
7796
|
-
let
|
|
7797
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7810
|
+
r[13] = G.bulkActions, r[14] = Z;
|
|
7811
|
+
} else Z = r[14];
|
|
7812
|
+
let AW;
|
|
7813
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (AW = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7798
7814
|
"data-slot": "select-separator"
|
|
7799
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7800
|
-
let
|
|
7801
|
-
r[19] !==
|
|
7815
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = AW) : AW = r[18];
|
|
7816
|
+
let jW = AW, MW;
|
|
7817
|
+
r[19] !== Z || r[20] !== G || r[21] !== jW || r[22] !== w || r[23] !== B || r[24] !== H ? (MW = () => {
|
|
7802
7818
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7803
7819
|
"data-slot": "select-list",
|
|
7804
7820
|
style: {
|
|
@@ -7810,8 +7826,8 @@ let __tla = Promise.all([
|
|
|
7810
7826
|
let r2 = G.visibleOptions[e3];
|
|
7811
7827
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7812
7828
|
children: [
|
|
7813
|
-
e3 === 0 &&
|
|
7814
|
-
|
|
7829
|
+
e3 === 0 && Z,
|
|
7830
|
+
jW(e3),
|
|
7815
7831
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7816
7832
|
option: r2,
|
|
7817
7833
|
checked: G.isChecked(r2.value),
|
|
@@ -7822,7 +7838,7 @@ let __tla = Promise.all([
|
|
|
7822
7838
|
}
|
|
7823
7839
|
});
|
|
7824
7840
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7825
|
-
let c2 =
|
|
7841
|
+
let c2 = jW(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7826
7842
|
option: e3,
|
|
7827
7843
|
checked: G.isChecked(e3.value),
|
|
7828
7844
|
renderOption: w
|
|
@@ -7836,13 +7852,13 @@ let __tla = Promise.all([
|
|
|
7836
7852
|
});
|
|
7837
7853
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7838
7854
|
children: [
|
|
7839
|
-
|
|
7855
|
+
Z,
|
|
7840
7856
|
e2
|
|
7841
7857
|
]
|
|
7842
7858
|
});
|
|
7843
|
-
}, r[19] =
|
|
7844
|
-
let
|
|
7845
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7859
|
+
}, r[19] = Z, r[20] = G, r[21] = jW, r[22] = w, r[23] = B, r[24] = H, r[25] = MW) : MW = r[25];
|
|
7860
|
+
let NW = MW, PW;
|
|
7861
|
+
r[26] !== G.labelOf || r[27] !== I ? (PW = (e2) => {
|
|
7846
7862
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7847
7863
|
e2
|
|
7848
7864
|
];
|
|
@@ -7853,46 +7869,46 @@ let __tla = Promise.all([
|
|
|
7853
7869
|
items: r2.map(G.labelOf),
|
|
7854
7870
|
max: 3
|
|
7855
7871
|
});
|
|
7856
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7857
|
-
let
|
|
7858
|
-
r[29] === G ?
|
|
7859
|
-
let
|
|
7860
|
-
r[31] !== b || r[32] !== R ? (
|
|
7872
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = PW) : PW = r[28];
|
|
7873
|
+
let FW = PW, IW = e["data-testid"], LW;
|
|
7874
|
+
r[29] === G ? LW = r[30] : (LW = (e2) => G.labelOf(e2), r[29] = G, r[30] = LW);
|
|
7875
|
+
let RW = M ? FW : void 0, zW;
|
|
7876
|
+
r[31] !== b || r[32] !== R ? (zW = cn({
|
|
7861
7877
|
"w-full": R
|
|
7862
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7863
|
-
let
|
|
7864
|
-
r[34] === z ?
|
|
7865
|
-
let
|
|
7866
|
-
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] !==
|
|
7878
|
+
}, b), r[31] = b, r[32] = R, r[33] = zW) : zW = r[33];
|
|
7879
|
+
let BW = G.searchQuery, VW = G.setSearchQuery, HW = G.open, UW = G.setOpen, WW;
|
|
7880
|
+
r[34] === z ? WW = r[35] : (WW = renderSlot(z), r[34] = z, r[35] = WW);
|
|
7881
|
+
let GW;
|
|
7882
|
+
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] !== IW || r[44] !== LW || r[45] !== RW || r[46] !== zW || r[47] !== WW ? (GW = {
|
|
7867
7883
|
"data-slot": "select-root",
|
|
7868
|
-
"data-testid":
|
|
7869
|
-
displayValue:
|
|
7870
|
-
renderValue:
|
|
7884
|
+
"data-testid": IW,
|
|
7885
|
+
displayValue: LW,
|
|
7886
|
+
renderValue: RW,
|
|
7871
7887
|
placeholder: I,
|
|
7872
|
-
className:
|
|
7888
|
+
className: zW,
|
|
7873
7889
|
shouldFilter: false,
|
|
7874
|
-
search:
|
|
7875
|
-
onSearchChange:
|
|
7876
|
-
open:
|
|
7877
|
-
onOpenChange:
|
|
7878
|
-
emptyState:
|
|
7890
|
+
search: BW,
|
|
7891
|
+
onSearchChange: VW,
|
|
7892
|
+
open: HW,
|
|
7893
|
+
onOpenChange: UW,
|
|
7894
|
+
emptyState: WW,
|
|
7879
7895
|
disabled: L,
|
|
7880
7896
|
id: S
|
|
7881
|
-
}, 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] =
|
|
7882
|
-
let
|
|
7883
|
-
return r[49] !==
|
|
7884
|
-
...
|
|
7897
|
+
}, 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] = IW, r[44] = LW, r[45] = RW, r[46] = zW, r[47] = WW, r[48] = GW) : GW = r[48];
|
|
7898
|
+
let KW = GW, qW;
|
|
7899
|
+
return r[49] !== KW || r[50] !== kW || r[51] !== d || r[52] !== NW || r[53] !== l ? (qW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7900
|
+
...KW,
|
|
7885
7901
|
multiple: true,
|
|
7886
7902
|
value: l,
|
|
7887
|
-
onValueChange:
|
|
7888
|
-
children:
|
|
7903
|
+
onValueChange: kW,
|
|
7904
|
+
children: NW()
|
|
7889
7905
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7890
|
-
...
|
|
7906
|
+
...KW,
|
|
7891
7907
|
multiple: false,
|
|
7892
7908
|
value: l,
|
|
7893
|
-
onValueChange:
|
|
7894
|
-
children:
|
|
7895
|
-
}), r[49] =
|
|
7909
|
+
onValueChange: kW,
|
|
7910
|
+
children: NW()
|
|
7911
|
+
}), r[49] = KW, r[50] = kW, r[51] = d, r[52] = NW, r[53] = l, r[54] = qW) : qW = r[54], qW;
|
|
7896
7912
|
}
|
|
7897
7913
|
function _temp$27(e) {
|
|
7898
7914
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -8886,7 +8902,7 @@ let __tla = Promise.all([
|
|
|
8886
8902
|
};
|
|
8887
8903
|
}
|
|
8888
8904
|
};
|
|
8889
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
8905
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-DinOvbWu.js").then((e) => ({
|
|
8890
8906
|
default: e.Chatbot
|
|
8891
8907
|
}))), messageSchema = array(object({
|
|
8892
8908
|
id: string(),
|
|
@@ -9035,7 +9051,7 @@ let __tla = Promise.all([
|
|
|
9035
9051
|
"time",
|
|
9036
9052
|
"unknown"
|
|
9037
9053
|
];
|
|
9038
|
-
var import_compiler_runtime$76 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-
|
|
9054
|
+
var import_compiler_runtime$76 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-CjTu7ukN.js").then(async (m) => {
|
|
9039
9055
|
await m.__tla;
|
|
9040
9056
|
return m;
|
|
9041
9057
|
}));
|
|
@@ -10001,7 +10017,7 @@ let __tla = Promise.all([
|
|
|
10001
10017
|
let m2 = get(l, e2);
|
|
10002
10018
|
if (m2) {
|
|
10003
10019
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
10004
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
10020
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : kW(e2, l2), f.mount && w();
|
|
10005
10021
|
}
|
|
10006
10022
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
10007
10023
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -10074,14 +10090,14 @@ let __tla = Promise.all([
|
|
|
10074
10090
|
}, H = () => {
|
|
10075
10091
|
for (let e2 of p.unMount) {
|
|
10076
10092
|
let r2 = get(l, e2);
|
|
10077
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
10093
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && zW(e2);
|
|
10078
10094
|
}
|
|
10079
10095
|
p.unMount = /* @__PURE__ */ new Set();
|
|
10080
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
10096
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(PW(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
10081
10097
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
10082
10098
|
[e2]: r2
|
|
10083
10099
|
} : r2
|
|
10084
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
10100
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), kW = (e2, r2, c2 = {}) => {
|
|
10085
10101
|
let u2 = get(l, e2), f2 = r2;
|
|
10086
10102
|
if (u2) {
|
|
10087
10103
|
let c3 = u2._f;
|
|
@@ -10094,13 +10110,13 @@ let __tla = Promise.all([
|
|
|
10094
10110
|
}
|
|
10095
10111
|
})));
|
|
10096
10112
|
}
|
|
10097
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
10098
|
-
},
|
|
10113
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && NW(e2);
|
|
10114
|
+
}, Z = (e2, r2, c2) => {
|
|
10099
10115
|
for (let u2 in r2) {
|
|
10100
10116
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
10101
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
10117
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) : kW(f2, d2, c2);
|
|
10102
10118
|
}
|
|
10103
|
-
},
|
|
10119
|
+
}, AW = (e2, r2, m2 = {}) => {
|
|
10104
10120
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
10105
10121
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
10106
10122
|
name: e2,
|
|
@@ -10111,7 +10127,7 @@ let __tla = Promise.all([
|
|
|
10111
10127
|
name: e2,
|
|
10112
10128
|
dirtyFields: getDirtyFields(u, d),
|
|
10113
10129
|
isDirty: W(e2, y2)
|
|
10114
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
10130
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) : kW(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
10115
10131
|
...c
|
|
10116
10132
|
}), _.values.next({
|
|
10117
10133
|
name: f.mount ? e2 : void 0,
|
|
@@ -10119,7 +10135,7 @@ let __tla = Promise.all([
|
|
|
10119
10135
|
...d
|
|
10120
10136
|
}
|
|
10121
10137
|
});
|
|
10122
|
-
},
|
|
10138
|
+
}, jW = async (e2) => {
|
|
10123
10139
|
f.mount = true;
|
|
10124
10140
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
10125
10141
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -10153,11 +10169,11 @@ let __tla = Promise.all([
|
|
|
10153
10169
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
10154
10170
|
h2
|
|
10155
10171
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
10156
|
-
S2 && (E2._f.deps &&
|
|
10172
|
+
S2 && (E2._f.deps && NW(E2._f.deps), L(h2, f2, u3, G2));
|
|
10157
10173
|
}
|
|
10158
|
-
},
|
|
10174
|
+
}, MW = (e2, r2) => {
|
|
10159
10175
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
10160
|
-
},
|
|
10176
|
+
}, NW = async (e2, u2 = {}) => {
|
|
10161
10177
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
10162
10178
|
if (r.resolver) {
|
|
10163
10179
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -10176,23 +10192,23 @@ let __tla = Promise.all([
|
|
|
10176
10192
|
isValid: d2
|
|
10177
10193
|
} : {},
|
|
10178
10194
|
errors: c.errors
|
|
10179
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
10180
|
-
},
|
|
10195
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, MW, e2 ? m2 : p.mount), f2;
|
|
10196
|
+
}, PW = (e2) => {
|
|
10181
10197
|
let r2 = {
|
|
10182
10198
|
...f.mount ? d : u
|
|
10183
10199
|
};
|
|
10184
10200
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
10185
|
-
},
|
|
10201
|
+
}, FW = (e2, r2) => ({
|
|
10186
10202
|
invalid: !!get((r2 || c).errors, e2),
|
|
10187
10203
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
10188
10204
|
error: get((r2 || c).errors, e2),
|
|
10189
10205
|
isValidating: !!get(c.validatingFields, e2),
|
|
10190
10206
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
10191
|
-
}),
|
|
10207
|
+
}), IW = (e2) => {
|
|
10192
10208
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
10193
10209
|
errors: e2 ? c.errors : {}
|
|
10194
10210
|
});
|
|
10195
|
-
},
|
|
10211
|
+
}, LW = (e2, r2, u2) => {
|
|
10196
10212
|
let d2 = (get(l, e2, {
|
|
10197
10213
|
_f: {}
|
|
10198
10214
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -10205,9 +10221,9 @@ let __tla = Promise.all([
|
|
|
10205
10221
|
errors: c.errors,
|
|
10206
10222
|
isValid: false
|
|
10207
10223
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
10208
|
-
},
|
|
10224
|
+
}, RW = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
10209
10225
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
10210
|
-
}) : G(e2, r2, true),
|
|
10226
|
+
}) : G(e2, r2, true), zW = (e2, f2 = {}) => {
|
|
10211
10227
|
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);
|
|
10212
10228
|
_.values.next({
|
|
10213
10229
|
values: {
|
|
@@ -10219,9 +10235,9 @@ let __tla = Promise.all([
|
|
|
10219
10235
|
isDirty: W()
|
|
10220
10236
|
} : {}
|
|
10221
10237
|
}), !f2.keepIsValid && w();
|
|
10222
|
-
},
|
|
10238
|
+
}, BW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
10223
10239
|
(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));
|
|
10224
|
-
},
|
|
10240
|
+
}, VW = (e2, c2 = {}) => {
|
|
10225
10241
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
10226
10242
|
return set(l, e2, {
|
|
10227
10243
|
...d2 || {},
|
|
@@ -10235,7 +10251,7 @@ let __tla = Promise.all([
|
|
|
10235
10251
|
mount: true,
|
|
10236
10252
|
...c2
|
|
10237
10253
|
}
|
|
10238
|
-
}), p.mount.add(e2), d2 ?
|
|
10254
|
+
}), p.mount.add(e2), d2 ? BW({
|
|
10239
10255
|
field: d2,
|
|
10240
10256
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
10241
10257
|
name: e2
|
|
@@ -10252,11 +10268,11 @@ let __tla = Promise.all([
|
|
|
10252
10268
|
pattern: getRuleValue(c2.pattern)
|
|
10253
10269
|
} : {},
|
|
10254
10270
|
name: e2,
|
|
10255
|
-
onChange:
|
|
10256
|
-
onBlur:
|
|
10271
|
+
onChange: jW,
|
|
10272
|
+
onBlur: jW,
|
|
10257
10273
|
ref: (m3) => {
|
|
10258
10274
|
if (m3) {
|
|
10259
|
-
|
|
10275
|
+
VW(e2, c2), d2 = get(l, e2);
|
|
10260
10276
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
10261
10277
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
10262
10278
|
set(l, e2, {
|
|
@@ -10282,7 +10298,7 @@ let __tla = Promise.all([
|
|
|
10282
10298
|
} 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);
|
|
10283
10299
|
}
|
|
10284
10300
|
};
|
|
10285
|
-
},
|
|
10301
|
+
}, HW = () => r.shouldFocusError && iterateFieldsByAction(l, MW, p.mount), UW = (e2) => {
|
|
10286
10302
|
isBoolean(e2) && (_.state.next({
|
|
10287
10303
|
disabled: e2
|
|
10288
10304
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -10291,7 +10307,7 @@ let __tla = Promise.all([
|
|
|
10291
10307
|
r3.disabled = u2._f.disabled || e2;
|
|
10292
10308
|
}));
|
|
10293
10309
|
}, 0, false));
|
|
10294
|
-
},
|
|
10310
|
+
}, WW = (e2, u2) => async (f2) => {
|
|
10295
10311
|
let m2;
|
|
10296
10312
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
10297
10313
|
let h2 = cloneObject(d);
|
|
@@ -10313,7 +10329,7 @@ let __tla = Promise.all([
|
|
|
10313
10329
|
}
|
|
10314
10330
|
} else u2 && await u2({
|
|
10315
10331
|
...c.errors
|
|
10316
|
-
}, f2),
|
|
10332
|
+
}, f2), HW(), setTimeout(HW);
|
|
10317
10333
|
if (_.state.next({
|
|
10318
10334
|
isSubmitted: true,
|
|
10319
10335
|
isSubmitting: false,
|
|
@@ -10321,11 +10337,11 @@ let __tla = Promise.all([
|
|
|
10321
10337
|
submitCount: c.submitCount + 1,
|
|
10322
10338
|
errors: c.errors
|
|
10323
10339
|
}), m2) throw m2;
|
|
10324
|
-
},
|
|
10325
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10340
|
+
}, GW = (e2, r2 = {}) => {
|
|
10341
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? AW(e2, cloneObject(get(u, e2))) : (AW(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({
|
|
10326
10342
|
...c
|
|
10327
10343
|
}));
|
|
10328
|
-
},
|
|
10344
|
+
}, KW = (e2, m2 = {}) => {
|
|
10329
10345
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10330
10346
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10331
10347
|
if (m2.keepDirtyValues) {
|
|
@@ -10333,7 +10349,7 @@ let __tla = Promise.all([
|
|
|
10333
10349
|
...p.mount,
|
|
10334
10350
|
...Object.keys(getDirtyFields(u, d))
|
|
10335
10351
|
]);
|
|
10336
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10352
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : AW(r2, get(b2, r2));
|
|
10337
10353
|
} else {
|
|
10338
10354
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10339
10355
|
let r2 = get(l, e3);
|
|
@@ -10378,25 +10394,25 @@ let __tla = Promise.all([
|
|
|
10378
10394
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10379
10395
|
isSubmitting: false
|
|
10380
10396
|
});
|
|
10381
|
-
},
|
|
10397
|
+
}, qW = (e2, r2) => KW(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10382
10398
|
return {
|
|
10383
10399
|
control: {
|
|
10384
|
-
register:
|
|
10385
|
-
unregister:
|
|
10386
|
-
getFieldState:
|
|
10387
|
-
handleSubmit:
|
|
10388
|
-
setError:
|
|
10400
|
+
register: VW,
|
|
10401
|
+
unregister: zW,
|
|
10402
|
+
getFieldState: FW,
|
|
10403
|
+
handleSubmit: WW,
|
|
10404
|
+
setError: LW,
|
|
10389
10405
|
_executeSchema: R,
|
|
10390
10406
|
_getWatch: G,
|
|
10391
10407
|
_getDirty: W,
|
|
10392
10408
|
_updateValid: w,
|
|
10393
10409
|
_removeUnmounted: H,
|
|
10394
10410
|
_updateFieldArray: E,
|
|
10395
|
-
_updateDisabledField:
|
|
10411
|
+
_updateDisabledField: BW,
|
|
10396
10412
|
_getFieldArray: q,
|
|
10397
|
-
_reset:
|
|
10413
|
+
_reset: KW,
|
|
10398
10414
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10399
|
-
|
|
10415
|
+
qW(e2, r.resetOptions), _.state.next({
|
|
10400
10416
|
isLoading: false
|
|
10401
10417
|
});
|
|
10402
10418
|
}),
|
|
@@ -10406,7 +10422,7 @@ let __tla = Promise.all([
|
|
|
10406
10422
|
...e2
|
|
10407
10423
|
};
|
|
10408
10424
|
},
|
|
10409
|
-
_disableForm:
|
|
10425
|
+
_disableForm: UW,
|
|
10410
10426
|
_subjects: _,
|
|
10411
10427
|
_proxyFormState: g,
|
|
10412
10428
|
_setErrors: j,
|
|
@@ -10447,17 +10463,17 @@ let __tla = Promise.all([
|
|
|
10447
10463
|
};
|
|
10448
10464
|
}
|
|
10449
10465
|
},
|
|
10450
|
-
trigger:
|
|
10451
|
-
register:
|
|
10452
|
-
handleSubmit:
|
|
10453
|
-
watch:
|
|
10454
|
-
setValue:
|
|
10455
|
-
getValues:
|
|
10456
|
-
reset:
|
|
10457
|
-
resetField:
|
|
10458
|
-
clearErrors:
|
|
10459
|
-
unregister:
|
|
10460
|
-
setError:
|
|
10466
|
+
trigger: NW,
|
|
10467
|
+
register: VW,
|
|
10468
|
+
handleSubmit: WW,
|
|
10469
|
+
watch: RW,
|
|
10470
|
+
setValue: AW,
|
|
10471
|
+
getValues: PW,
|
|
10472
|
+
reset: qW,
|
|
10473
|
+
resetField: GW,
|
|
10474
|
+
clearErrors: IW,
|
|
10475
|
+
unregister: zW,
|
|
10476
|
+
setError: LW,
|
|
10461
10477
|
setFocus: (e2, r2 = {}) => {
|
|
10462
10478
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10463
10479
|
if (u2) {
|
|
@@ -10465,7 +10481,7 @@ let __tla = Promise.all([
|
|
|
10465
10481
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10466
10482
|
}
|
|
10467
10483
|
},
|
|
10468
|
-
getFieldState:
|
|
10484
|
+
getFieldState: FW
|
|
10469
10485
|
};
|
|
10470
10486
|
}
|
|
10471
10487
|
function useForm(e = {}) {
|
|
@@ -13195,7 +13211,7 @@ ${c}
|
|
|
13195
13211
|
r[0] !== c || r[1] !== u ? (d = () => {
|
|
13196
13212
|
u.setValue(c, "");
|
|
13197
13213
|
}, r[0] = c, r[1] = u, r[2] = d) : d = r[2];
|
|
13198
|
-
let f = d, p = _temp5$
|
|
13214
|
+
let f = d, p = _temp5$2, m;
|
|
13199
13215
|
r[3] !== f || r[4] !== l ? (m = (e2) => {
|
|
13200
13216
|
let { field: r2 } = e2;
|
|
13201
13217
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -13471,7 +13487,7 @@ ${c}
|
|
|
13471
13487
|
function _temp4$5(e) {
|
|
13472
13488
|
return e;
|
|
13473
13489
|
}
|
|
13474
|
-
function _temp5$
|
|
13490
|
+
function _temp5$2(e) {
|
|
13475
13491
|
let [r, c] = TIME_UNIT_DESCRIPTIONS[e];
|
|
13476
13492
|
return (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
13477
13493
|
value: e,
|
|
@@ -16190,21 +16206,21 @@ ${c}
|
|
|
16190
16206
|
_.pageSize,
|
|
16191
16207
|
_.pageIndex
|
|
16192
16208
|
], r[35] = w, r[36] = _.pageIndex, r[37] = _.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = u, r[44] = y, r[45] = m, r[46] = B, r[47] = H) : H = r[47];
|
|
16193
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
16194
|
-
r[48] !==
|
|
16195
|
-
let
|
|
16196
|
-
r[51] !==
|
|
16197
|
-
|
|
16198
|
-
|
|
16199
|
-
|
|
16200
|
-
|
|
16201
|
-
|
|
16209
|
+
let { data: W, error: G, isPending: q, isFetching: kW } = useAsyncData(z, H), Z = useAtomValue(downloadSizeLimitAtom), AW;
|
|
16210
|
+
r[48] !== Z || r[49] !== e ? (AW = 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] = AW) : AW = r[50];
|
|
16211
|
+
let jW = e.showDownload, MW = e.get_size_bytes, NW = e.lazy, PW = e.totalRows, FW = useDeepCompareMemoize(w), IW = useDeepCompareMemoize(m), LW;
|
|
16212
|
+
r[51] !== Z || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== FW || r[58] !== IW ? (LW = [
|
|
16213
|
+
Z,
|
|
16214
|
+
jW,
|
|
16215
|
+
MW,
|
|
16216
|
+
NW,
|
|
16217
|
+
PW,
|
|
16202
16218
|
y,
|
|
16203
|
-
|
|
16204
|
-
|
|
16205
|
-
], r[51] =
|
|
16206
|
-
let { data:
|
|
16207
|
-
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (
|
|
16219
|
+
FW,
|
|
16220
|
+
IW
|
|
16221
|
+
], 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] = FW, r[58] = IW, r[59] = LW) : LW = r[59];
|
|
16222
|
+
let { data: RW, isPending: zW } = useAsyncData(AW, LW), BW = RW ?? null, VW = !!Z && e.showDownload && zW, HW;
|
|
16223
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (HW = async (e2) => ({
|
|
16208
16224
|
rows: await loadTableData((await u({
|
|
16209
16225
|
page_number: e2,
|
|
16210
16226
|
page_size: 1,
|
|
@@ -16213,17 +16229,17 @@ ${c}
|
|
|
16213
16229
|
filters: filtersToFilterGroup(w),
|
|
16214
16230
|
max_columns: null
|
|
16215
16231
|
})).data)
|
|
16216
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
16217
|
-
let
|
|
16218
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16232
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = HW) : HW = r[64];
|
|
16233
|
+
let UW = HW, WW;
|
|
16234
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (WW = () => {
|
|
16219
16235
|
v(_temp4$4);
|
|
16220
|
-
}, r[65] =
|
|
16221
|
-
let
|
|
16222
|
-
r[66] ===
|
|
16223
|
-
|
|
16224
|
-
], r[66] =
|
|
16225
|
-
let
|
|
16226
|
-
r[68] === e ?
|
|
16236
|
+
}, r[65] = WW) : WW = r[65];
|
|
16237
|
+
let GW = W == null ? void 0 : W.totalRows, KW;
|
|
16238
|
+
r[66] === GW ? KW = r[67] : (KW = [
|
|
16239
|
+
GW
|
|
16240
|
+
], r[66] = GW, r[67] = KW), (0, import_react.useEffect)(WW, KW);
|
|
16241
|
+
let qW;
|
|
16242
|
+
r[68] === e ? qW = r[69] : (qW = async () => {
|
|
16227
16243
|
let r2 = isStaticNotebook();
|
|
16228
16244
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
16229
16245
|
data: null,
|
|
@@ -16232,22 +16248,22 @@ ${c}
|
|
|
16232
16248
|
value_counts: {},
|
|
16233
16249
|
show_charts: false
|
|
16234
16250
|
} : e.get_column_summaries({});
|
|
16235
|
-
}, r[68] = e, r[69] =
|
|
16236
|
-
let
|
|
16237
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
16251
|
+
}, r[68] = e, r[69] = qW);
|
|
16252
|
+
let JW;
|
|
16253
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (JW = [
|
|
16238
16254
|
e.get_column_summaries,
|
|
16239
16255
|
e.showColumnSummaries,
|
|
16240
16256
|
w,
|
|
16241
16257
|
y,
|
|
16242
16258
|
e.totalRows,
|
|
16243
16259
|
e.data
|
|
16244
|
-
], 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] =
|
|
16245
|
-
let { data:
|
|
16246
|
-
if (r[77] ===
|
|
16247
|
-
|
|
16248
|
-
},
|
|
16249
|
-
|
|
16250
|
-
], r[77] =
|
|
16260
|
+
], 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] = JW) : JW = r[76];
|
|
16261
|
+
let { data: YW, error: XW } = useAsyncData(qW, JW), ZW, QW;
|
|
16262
|
+
if (r[77] === XW ? (ZW = r[78], QW = r[79]) : (ZW = () => {
|
|
16263
|
+
XW && Logger.error(XW);
|
|
16264
|
+
}, QW = [
|
|
16265
|
+
XW
|
|
16266
|
+
], r[77] = XW, r[78] = ZW, r[79] = QW), (0, import_react.useEffect)(ZW, QW), q) {
|
|
16251
16267
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
16252
16268
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
16253
16269
|
milliseconds: 200,
|
|
@@ -16256,7 +16272,7 @@ ${c}
|
|
|
16256
16272
|
})
|
|
16257
16273
|
}), r[80] = c2, r[81] = l2), l2;
|
|
16258
16274
|
}
|
|
16259
|
-
let
|
|
16275
|
+
let $W = null;
|
|
16260
16276
|
if (G) {
|
|
16261
16277
|
Logger.error(G);
|
|
16262
16278
|
let e2;
|
|
@@ -16272,62 +16288,62 @@ ${c}
|
|
|
16272
16288
|
children: G.message || "An unknown error occurred"
|
|
16273
16289
|
})
|
|
16274
16290
|
]
|
|
16275
|
-
}), r[82] = G, r[83] = e2),
|
|
16291
|
+
}), r[82] = G, r[83] = e2), $W = e2;
|
|
16276
16292
|
}
|
|
16277
|
-
let
|
|
16278
|
-
r[84] === O ?
|
|
16293
|
+
let eG;
|
|
16294
|
+
r[84] === O ? eG = r[85] : (eG = () => {
|
|
16279
16295
|
j(!O);
|
|
16280
|
-
}, r[84] = O, r[85] =
|
|
16281
|
-
let
|
|
16282
|
-
r[86] !== l || r[87] !==
|
|
16296
|
+
}, r[84] = O, r[85] = eG);
|
|
16297
|
+
let tG = eG, nG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, rG = W == null ? void 0 : W.rawRows, iG = kW && !q, aG = (W == null ? void 0 : W.totalRows) ?? e.totalRows, oG = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, sG = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, cG;
|
|
16298
|
+
r[86] !== l || r[87] !== YW || r[88] !== O || r[89] !== w || r[90] !== UW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== BW || r[95] !== VW || r[96] !== m || r[97] !== nG || r[98] !== rG || r[99] !== iG || r[100] !== aG || r[101] !== oG || r[102] !== sG || r[103] !== tG ? (cG = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
16283
16299
|
...e,
|
|
16284
|
-
data:
|
|
16285
|
-
rawData:
|
|
16286
|
-
columnSummaries:
|
|
16300
|
+
data: nG,
|
|
16301
|
+
rawData: rG,
|
|
16302
|
+
columnSummaries: YW,
|
|
16287
16303
|
sorting: m,
|
|
16288
16304
|
setSorting: h,
|
|
16289
16305
|
searchQuery: y,
|
|
16290
16306
|
setSearchQuery: b,
|
|
16291
16307
|
filters: w,
|
|
16292
16308
|
setFilters: T,
|
|
16293
|
-
reloading:
|
|
16294
|
-
totalRows:
|
|
16295
|
-
sizeBytes:
|
|
16296
|
-
sizeBytesIsLoading:
|
|
16309
|
+
reloading: iG,
|
|
16310
|
+
totalRows: aG,
|
|
16311
|
+
sizeBytes: BW,
|
|
16312
|
+
sizeBytesIsLoading: VW,
|
|
16297
16313
|
paginationState: _,
|
|
16298
16314
|
setPaginationState: v,
|
|
16299
|
-
cellStyles:
|
|
16300
|
-
cellHoverTexts:
|
|
16301
|
-
toggleDisplayHeader:
|
|
16315
|
+
cellStyles: oG,
|
|
16316
|
+
cellHoverTexts: sG,
|
|
16317
|
+
toggleDisplayHeader: tG,
|
|
16302
16318
|
isChartBuilderOpen: O,
|
|
16303
|
-
getRow:
|
|
16319
|
+
getRow: UW,
|
|
16304
16320
|
cellId: l,
|
|
16305
16321
|
maxHeight: e.maxHeight
|
|
16306
|
-
}), r[86] = l, r[87] =
|
|
16307
|
-
let
|
|
16308
|
-
r[105] !== l || r[106] !==
|
|
16322
|
+
}), r[86] = l, r[87] = YW, r[88] = O, r[89] = w, r[90] = UW, r[91] = _, r[92] = e, r[93] = y, r[94] = BW, r[95] = VW, r[96] = m, r[97] = nG, r[98] = rG, r[99] = iG, r[100] = aG, r[101] = oG, r[102] = sG, r[103] = tG, r[104] = cG) : cG = r[104];
|
|
16323
|
+
let lG = cG, uG;
|
|
16324
|
+
r[105] !== l || r[106] !== lG || r[107] !== (W == null ? void 0 : W.rows) || r[108] !== O || r[109] !== e.fieldTypes || r[110] !== e.get_data_url || r[111] !== e.rowHeaders || r[112] !== e.showChartBuilder || r[113] !== e.totalColumns || r[114] !== e.totalRows ? (uG = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
16309
16325
|
displayHeader: O,
|
|
16310
16326
|
onCloseChartBuilder: () => j(false),
|
|
16311
16327
|
data: (W == null ? void 0 : W.rows) || [],
|
|
16312
16328
|
columns: e.totalColumns,
|
|
16313
16329
|
totalRows: e.totalRows,
|
|
16314
|
-
dataTable:
|
|
16330
|
+
dataTable: lG,
|
|
16315
16331
|
getDataUrl: e.get_data_url,
|
|
16316
16332
|
fieldTypes: e.fieldTypes,
|
|
16317
16333
|
rowHeaders: e.rowHeaders,
|
|
16318
16334
|
cellId: l
|
|
16319
|
-
}) :
|
|
16320
|
-
let
|
|
16321
|
-
return r[116] !==
|
|
16335
|
+
}) : lG, r[105] = l, r[106] = lG, r[107] = W == null ? void 0 : W.rows, r[108] = O, r[109] = e.fieldTypes, r[110] = e.get_data_url, r[111] = e.rowHeaders, r[112] = e.showChartBuilder, r[113] = e.totalColumns, r[114] = e.totalRows, r[115] = uG) : uG = r[115];
|
|
16336
|
+
let dG;
|
|
16337
|
+
return r[116] !== $W || r[117] !== uG ? (dG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16322
16338
|
children: [
|
|
16323
|
-
|
|
16324
|
-
|
|
16339
|
+
$W,
|
|
16340
|
+
uG
|
|
16325
16341
|
]
|
|
16326
|
-
}), r[116] =
|
|
16342
|
+
}), r[116] = $W, r[117] = uG, r[118] = dG) : dG = r[118], dG;
|
|
16327
16343
|
});
|
|
16328
16344
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
16329
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters:
|
|
16330
|
-
let
|
|
16345
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: kW, setFilters: Z, reloading: AW, freezeColumnsLeft: jW, freezeColumnsRight: MW, hiddenColumns: NW, textJustifyColumns: PW, wrappedColumns: FW, columnWidths: IW, headerTooltip: LW, totalColumns: RW, get_row_ids: zW, cellStyles: BW, hoverTemplate: VW, cellHoverTexts: HW, toggleDisplayHeader: UW, isChartBuilderOpen: WW, calculate_top_k_rows: GW, preview_column: KW, getRow: qW, cellId: JW, maxHeight: YW }) => {
|
|
16346
|
+
let XW = (0, import_react.useId)(), { locale: ZW } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [QW, $W] = (0, import_react.useState)(0), { isPanelOpen: eG, isAnyPanelOpen: tG, togglePanel: nG, panelType: rG, setPanelType: iG } = usePanelOwnership(XW, JW), aG = isStaticNotebook(), oG = (0, import_react.useMemo)(() => {
|
|
16331
16347
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16332
16348
|
let e2 = toFieldTypes(O);
|
|
16333
16349
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -16336,13 +16352,13 @@ ${c}
|
|
|
16336
16352
|
}, [
|
|
16337
16353
|
O,
|
|
16338
16354
|
L
|
|
16339
|
-
]),
|
|
16355
|
+
]), sG = useDeepCompareMemoize(O ?? inferFieldTypes(r)), cG = (0, import_react.useMemo)(() => f === "all" ? sG : sG.slice(0, f), [
|
|
16340
16356
|
f,
|
|
16341
|
-
|
|
16342
|
-
]),
|
|
16357
|
+
sG
|
|
16358
|
+
]), lG = (0, import_react.useMemo)(() => {
|
|
16343
16359
|
let e2 = {};
|
|
16344
16360
|
if (r && r.length > 0) {
|
|
16345
|
-
for (let [c2, l2] of
|
|
16361
|
+
for (let [c2, l2] of cG) if (l2[0] === "number") {
|
|
16346
16362
|
let l3 = 0;
|
|
16347
16363
|
for (let e3 of r) {
|
|
16348
16364
|
let r2 = e3[c2];
|
|
@@ -16357,95 +16373,95 @@ ${c}
|
|
|
16357
16373
|
return e2;
|
|
16358
16374
|
}, [
|
|
16359
16375
|
r,
|
|
16360
|
-
|
|
16361
|
-
]),
|
|
16362
|
-
O || (w = false),
|
|
16363
|
-
let
|
|
16364
|
-
rowHeaders:
|
|
16376
|
+
cG
|
|
16377
|
+
]), uG = useDeepCompareMemoize(T), dG = useDeepCompareMemoize(PW), fG = useDeepCompareMemoize(FW), pG = useDeepCompareMemoize(IW), mG = useDeepCompareMemoize(oG), hG = useDeepCompareMemoize(lG), gG = cG.length;
|
|
16378
|
+
O || (w = false), aG && (m = null);
|
|
16379
|
+
let _G = (0, import_react.useMemo)(() => generateColumns({
|
|
16380
|
+
rowHeaders: uG,
|
|
16365
16381
|
selection: m,
|
|
16366
|
-
chartSpecModel:
|
|
16367
|
-
fieldTypes:
|
|
16368
|
-
textJustifyColumns:
|
|
16369
|
-
wrappedColumns:
|
|
16370
|
-
columnWidths:
|
|
16371
|
-
headerTooltip:
|
|
16382
|
+
chartSpecModel: mG,
|
|
16383
|
+
fieldTypes: cG,
|
|
16384
|
+
textJustifyColumns: dG,
|
|
16385
|
+
wrappedColumns: fG,
|
|
16386
|
+
columnWidths: pG,
|
|
16387
|
+
headerTooltip: LW,
|
|
16372
16388
|
showDataTypes: w,
|
|
16373
|
-
calculateTopKRows:
|
|
16374
|
-
fractionDigitsByColumn:
|
|
16389
|
+
calculateTopKRows: GW,
|
|
16390
|
+
fractionDigitsByColumn: hG
|
|
16375
16391
|
}), [
|
|
16376
16392
|
m,
|
|
16377
16393
|
w,
|
|
16378
|
-
|
|
16379
|
-
|
|
16380
|
-
|
|
16381
|
-
|
|
16382
|
-
|
|
16383
|
-
|
|
16384
|
-
|
|
16385
|
-
|
|
16386
|
-
|
|
16387
|
-
]),
|
|
16394
|
+
mG,
|
|
16395
|
+
uG,
|
|
16396
|
+
cG,
|
|
16397
|
+
dG,
|
|
16398
|
+
fG,
|
|
16399
|
+
pG,
|
|
16400
|
+
LW,
|
|
16401
|
+
GW,
|
|
16402
|
+
hG
|
|
16403
|
+
]), vG = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
16388
16404
|
e2,
|
|
16389
16405
|
true
|
|
16390
16406
|
])), [
|
|
16391
16407
|
h
|
|
16392
|
-
]),
|
|
16408
|
+
]), yG = useEvent_default((e2) => {
|
|
16393
16409
|
if (m === "single") {
|
|
16394
16410
|
let r2 = Functions.asUpdater(e2)({});
|
|
16395
16411
|
z(Object.keys(r2).slice(0, 1));
|
|
16396
16412
|
}
|
|
16397
16413
|
if (m === "multi") {
|
|
16398
|
-
let r2 = Functions.asUpdater(e2)(
|
|
16414
|
+
let r2 = Functions.asUpdater(e2)(vG);
|
|
16399
16415
|
z(Object.keys(r2));
|
|
16400
16416
|
}
|
|
16401
|
-
}),
|
|
16402
|
-
if (
|
|
16417
|
+
}), bG = useEvent_default((e2) => {
|
|
16418
|
+
if ($W(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
16403
16419
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
16404
16420
|
r2 !== null && M((e3) => ({
|
|
16405
16421
|
...e3,
|
|
16406
16422
|
pageIndex: r2
|
|
16407
16423
|
}));
|
|
16408
|
-
}),
|
|
16409
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
16410
|
-
}),
|
|
16411
|
-
if (!(!
|
|
16424
|
+
}), xG = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), SG = useEvent_default((e2) => {
|
|
16425
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(xG).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(xG));
|
|
16426
|
+
}), CG = m === "multi" || m === "single", wG = y && !!KW, TG = isInVscodeExtension(), EG = isIslands(), DG = (0, import_react.useMemo)(() => {
|
|
16427
|
+
if (!(!tG || !(b || wG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
16412
16428
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
16413
|
-
rowIdx:
|
|
16414
|
-
setRowIdx:
|
|
16429
|
+
rowIdx: QW,
|
|
16430
|
+
setRowIdx: bG,
|
|
16415
16431
|
totalRows: l,
|
|
16416
|
-
fieldTypes:
|
|
16417
|
-
getRow:
|
|
16418
|
-
isSelectable:
|
|
16419
|
-
isRowSelected: !!
|
|
16420
|
-
handleRowSelectionChange:
|
|
16421
|
-
previewColumn:
|
|
16422
|
-
totalColumns:
|
|
16423
|
-
tableId:
|
|
16432
|
+
fieldTypes: sG,
|
|
16433
|
+
getRow: qW,
|
|
16434
|
+
isSelectable: CG,
|
|
16435
|
+
isRowSelected: !!vG[QW],
|
|
16436
|
+
handleRowSelectionChange: yG,
|
|
16437
|
+
previewColumn: KW,
|
|
16438
|
+
totalColumns: RW,
|
|
16439
|
+
tableId: XW,
|
|
16424
16440
|
table: e2,
|
|
16425
|
-
showRowExplorer: b && !
|
|
16426
|
-
showColumnExplorer:
|
|
16427
|
-
activeTab:
|
|
16428
|
-
onTabChange:
|
|
16441
|
+
showRowExplorer: b && !TG,
|
|
16442
|
+
showColumnExplorer: wG && !TG,
|
|
16443
|
+
activeTab: rG,
|
|
16444
|
+
onTabChange: iG
|
|
16429
16445
|
})
|
|
16430
16446
|
});
|
|
16431
16447
|
}, [
|
|
16432
|
-
|
|
16448
|
+
tG,
|
|
16433
16449
|
b,
|
|
16434
|
-
|
|
16435
|
-
|
|
16436
|
-
|
|
16450
|
+
wG,
|
|
16451
|
+
QW,
|
|
16452
|
+
bG,
|
|
16437
16453
|
l,
|
|
16454
|
+
sG,
|
|
16455
|
+
qW,
|
|
16456
|
+
CG,
|
|
16457
|
+
vG,
|
|
16438
16458
|
yG,
|
|
16439
|
-
|
|
16440
|
-
|
|
16441
|
-
AG,
|
|
16442
|
-
jG,
|
|
16443
|
-
iG,
|
|
16459
|
+
KW,
|
|
16460
|
+
RW,
|
|
16444
16461
|
XW,
|
|
16445
|
-
|
|
16446
|
-
|
|
16447
|
-
|
|
16448
|
-
gG
|
|
16462
|
+
TG,
|
|
16463
|
+
rG,
|
|
16464
|
+
iG
|
|
16449
16465
|
]);
|
|
16450
16466
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16451
16467
|
children: [
|
|
@@ -16457,27 +16473,27 @@ ${c}
|
|
|
16457
16473
|
" rows."
|
|
16458
16474
|
]
|
|
16459
16475
|
}),
|
|
16460
|
-
|
|
16476
|
+
gG < RW && gG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16461
16477
|
className: "mb-1 rounded",
|
|
16462
16478
|
children: [
|
|
16463
16479
|
"Result clipped. Showing ",
|
|
16464
|
-
|
|
16480
|
+
gG,
|
|
16465
16481
|
" of ",
|
|
16466
|
-
|
|
16482
|
+
RW,
|
|
16467
16483
|
" columns."
|
|
16468
16484
|
]
|
|
16469
16485
|
}),
|
|
16470
|
-
|
|
16486
|
+
aG && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16471
16487
|
className: "mb-1 rounded",
|
|
16472
16488
|
children: [
|
|
16473
16489
|
"Showing the first ",
|
|
16474
16490
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16475
|
-
children: prettyNumber(r.length,
|
|
16491
|
+
children: prettyNumber(r.length, ZW)
|
|
16476
16492
|
}),
|
|
16477
16493
|
" ",
|
|
16478
16494
|
"of ",
|
|
16479
16495
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16480
|
-
children: prettyNumber(l,
|
|
16496
|
+
children: prettyNumber(l, ZW)
|
|
16481
16497
|
}),
|
|
16482
16498
|
" rows. Increase the table's ",
|
|
16483
16499
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -16491,7 +16507,7 @@ ${c}
|
|
|
16491
16507
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
16492
16508
|
}),
|
|
16493
16509
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
16494
|
-
value:
|
|
16510
|
+
value: oG,
|
|
16495
16511
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
16496
16512
|
label: e,
|
|
16497
16513
|
align: "top",
|
|
@@ -16499,14 +16515,14 @@ ${c}
|
|
|
16499
16515
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
16500
16516
|
data: r,
|
|
16501
16517
|
rawData: c,
|
|
16502
|
-
columns:
|
|
16518
|
+
columns: _G,
|
|
16503
16519
|
className: R,
|
|
16504
|
-
maxHeight:
|
|
16520
|
+
maxHeight: YW,
|
|
16505
16521
|
sorting: B,
|
|
16506
16522
|
totalRows: l,
|
|
16507
16523
|
sizeBytes: u,
|
|
16508
16524
|
sizeBytesIsLoading: d,
|
|
16509
|
-
totalColumns:
|
|
16525
|
+
totalColumns: RW,
|
|
16510
16526
|
manualSorting: true,
|
|
16511
16527
|
setSorting: H,
|
|
16512
16528
|
pagination: p,
|
|
@@ -16514,37 +16530,37 @@ ${c}
|
|
|
16514
16530
|
selection: m,
|
|
16515
16531
|
paginationState: j,
|
|
16516
16532
|
setPaginationState: M,
|
|
16517
|
-
rowSelection:
|
|
16518
|
-
cellSelection:
|
|
16519
|
-
cellStyling:
|
|
16520
|
-
hoverTemplate:
|
|
16521
|
-
cellHoverTexts:
|
|
16533
|
+
rowSelection: vG,
|
|
16534
|
+
cellSelection: xG,
|
|
16535
|
+
cellStyling: BW,
|
|
16536
|
+
hoverTemplate: VW,
|
|
16537
|
+
cellHoverTexts: HW,
|
|
16522
16538
|
downloadAs: _ ? I : void 0,
|
|
16523
16539
|
showSearch: W,
|
|
16524
16540
|
searchQuery: G,
|
|
16525
16541
|
onSearchQueryChange: q,
|
|
16526
16542
|
showFilters: g,
|
|
16527
|
-
filters:
|
|
16528
|
-
onFiltersChange:
|
|
16529
|
-
calculateTopKRows:
|
|
16530
|
-
reloading:
|
|
16531
|
-
onRowSelectionChange:
|
|
16532
|
-
freezeColumnsLeft:
|
|
16533
|
-
freezeColumnsRight:
|
|
16534
|
-
hiddenColumns:
|
|
16535
|
-
onCellSelectionChange:
|
|
16536
|
-
getRowIds:
|
|
16537
|
-
toggleDisplayHeader:
|
|
16538
|
-
showChartBuilder: S && !
|
|
16539
|
-
isChartBuilderOpen:
|
|
16543
|
+
filters: kW,
|
|
16544
|
+
onFiltersChange: Z,
|
|
16545
|
+
calculateTopKRows: GW,
|
|
16546
|
+
reloading: AW,
|
|
16547
|
+
onRowSelectionChange: yG,
|
|
16548
|
+
freezeColumnsLeft: jW,
|
|
16549
|
+
freezeColumnsRight: MW,
|
|
16550
|
+
hiddenColumns: NW,
|
|
16551
|
+
onCellSelectionChange: SG,
|
|
16552
|
+
getRowIds: zW,
|
|
16553
|
+
toggleDisplayHeader: UW,
|
|
16554
|
+
showChartBuilder: S && !EG,
|
|
16555
|
+
isChartBuilderOpen: WW,
|
|
16540
16556
|
showPageSizeSelector: v,
|
|
16541
|
-
showTableExplorer: (b ||
|
|
16542
|
-
togglePanel:
|
|
16543
|
-
isPanelOpen:
|
|
16544
|
-
isAnyPanelOpen:
|
|
16545
|
-
viewedRowIdx:
|
|
16546
|
-
onViewedRowChange: (e2) =>
|
|
16547
|
-
renderTableExplorerPanel:
|
|
16557
|
+
showTableExplorer: (b || wG) && !TG && !EG,
|
|
16558
|
+
togglePanel: nG,
|
|
16559
|
+
isPanelOpen: eG,
|
|
16560
|
+
isAnyPanelOpen: tG,
|
|
16561
|
+
viewedRowIdx: QW,
|
|
16562
|
+
onViewedRowChange: (e2) => $W(e2),
|
|
16563
|
+
renderTableExplorerPanel: DG
|
|
16548
16564
|
})
|
|
16549
16565
|
})
|
|
16550
16566
|
})
|
|
@@ -16903,7 +16919,7 @@ ${c}
|
|
|
16903
16919
|
fullWidth: m,
|
|
16904
16920
|
children: T
|
|
16905
16921
|
}), r[20] = m, r[21] = g, r[22] = c, r[23] = T, r[24] = E) : E = r[24], E;
|
|
16906
|
-
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
16922
|
+
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-CU4fZJzG.js"));
|
|
16907
16923
|
const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object({
|
|
16908
16924
|
label: string().nullish(),
|
|
16909
16925
|
data: string()
|
|
@@ -18596,29 +18612,29 @@ ${c}
|
|
|
18596
18612
|
], r[2] = S, r[3] = w);
|
|
18597
18613
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
18598
18614
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
18599
|
-
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q,
|
|
18600
|
-
r[6] === d ?
|
|
18615
|
+
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, kW] = (0, import_react.useState)(f || EMPTY), Z = (0, import_react.useRef)(null), AW;
|
|
18616
|
+
r[6] === d ? AW = r[7] : (AW = (e2) => {
|
|
18601
18617
|
var _a5;
|
|
18602
|
-
d && e2 !== "transform" && ((_a5 =
|
|
18603
|
-
}, r[6] = d, r[7] =
|
|
18604
|
-
let
|
|
18605
|
-
r[8] === q ?
|
|
18606
|
-
|
|
18607
|
-
}, r[8] = q, r[9] =
|
|
18608
|
-
let
|
|
18609
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
18610
|
-
let e2 =
|
|
18618
|
+
d && e2 !== "transform" && ((_a5 = Z.current) == null ? void 0 : _a5.submit());
|
|
18619
|
+
}, r[6] = d, r[7] = AW);
|
|
18620
|
+
let jW = AW, MW = (0, import_react.useRef)(q), NW;
|
|
18621
|
+
r[8] === q ? NW = r[9] : (NW = () => {
|
|
18622
|
+
MW.current = q;
|
|
18623
|
+
}, r[8] = q, r[9] = NW), (0, import_react.useEffect)(NW);
|
|
18624
|
+
let PW;
|
|
18625
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (PW = () => {
|
|
18626
|
+
let e2 = MW.current;
|
|
18611
18627
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
18612
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
18613
|
-
let
|
|
18614
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
18628
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = PW) : PW = r[12];
|
|
18629
|
+
let FW = f == null ? void 0 : f.transforms.length, IW;
|
|
18630
|
+
r[13] !== T || r[14] !== p || r[15] !== FW ? (IW = [
|
|
18615
18631
|
T,
|
|
18616
|
-
|
|
18617
|
-
|
|
18632
|
+
FW,
|
|
18633
|
+
MW,
|
|
18618
18634
|
p
|
|
18619
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
18620
|
-
let
|
|
18621
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18635
|
+
], r[13] = T, r[14] = p, r[15] = FW, r[16] = IW) : IW = r[16], (0, import_react.useEffect)(PW, IW);
|
|
18636
|
+
let LW;
|
|
18637
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (LW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18622
18638
|
value: "transform",
|
|
18623
18639
|
className: "text-xs py-1",
|
|
18624
18640
|
children: [
|
|
@@ -18627,9 +18643,9 @@ ${c}
|
|
|
18627
18643
|
}),
|
|
18628
18644
|
"Transform"
|
|
18629
18645
|
]
|
|
18630
|
-
}), r[17] =
|
|
18631
|
-
let
|
|
18632
|
-
r[18] === H ?
|
|
18646
|
+
}), r[17] = LW) : LW = r[17];
|
|
18647
|
+
let RW;
|
|
18648
|
+
r[18] === H ? RW = r[19] : (RW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18633
18649
|
value: "python-code",
|
|
18634
18650
|
className: "text-xs py-1",
|
|
18635
18651
|
children: [
|
|
@@ -18638,9 +18654,9 @@ ${c}
|
|
|
18638
18654
|
}),
|
|
18639
18655
|
"Python Code"
|
|
18640
18656
|
]
|
|
18641
|
-
}), r[18] = H, r[19] =
|
|
18642
|
-
let
|
|
18643
|
-
r[20] === W ?
|
|
18657
|
+
}), r[18] = H, r[19] = RW);
|
|
18658
|
+
let zW;
|
|
18659
|
+
r[20] === W ? zW = r[21] : (zW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18644
18660
|
value: "sql-code",
|
|
18645
18661
|
className: "text-xs py-1",
|
|
18646
18662
|
children: [
|
|
@@ -18649,54 +18665,54 @@ ${c}
|
|
|
18649
18665
|
}),
|
|
18650
18666
|
"SQL Code"
|
|
18651
18667
|
]
|
|
18652
|
-
}), r[20] = W, r[21] =
|
|
18653
|
-
let
|
|
18654
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18668
|
+
}), r[20] = W, r[21] = zW);
|
|
18669
|
+
let BW;
|
|
18670
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (BW = (0, import_jsx_runtime.jsx)("div", {
|
|
18655
18671
|
className: "grow"
|
|
18656
|
-
}), r[22] =
|
|
18657
|
-
let
|
|
18658
|
-
r[23] !==
|
|
18672
|
+
}), r[22] = BW) : BW = r[22];
|
|
18673
|
+
let VW;
|
|
18674
|
+
r[23] !== RW || r[24] !== zW ? (VW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
18659
18675
|
className: "h-8",
|
|
18660
18676
|
children: [
|
|
18661
|
-
|
|
18662
|
-
|
|
18663
|
-
|
|
18664
|
-
|
|
18677
|
+
LW,
|
|
18678
|
+
RW,
|
|
18679
|
+
zW,
|
|
18680
|
+
BW
|
|
18665
18681
|
]
|
|
18666
|
-
}), r[23] =
|
|
18667
|
-
let
|
|
18668
|
-
r[26] === j ?
|
|
18682
|
+
}), r[23] = RW, r[24] = zW, r[25] = VW) : VW = r[25];
|
|
18683
|
+
let HW;
|
|
18684
|
+
r[26] === j ? HW = r[27] : (HW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18669
18685
|
size: "small"
|
|
18670
|
-
}), r[26] = j, r[27] =
|
|
18671
|
-
let
|
|
18672
|
-
r[28] !==
|
|
18686
|
+
}), r[26] = j, r[27] = HW);
|
|
18687
|
+
let UW;
|
|
18688
|
+
r[28] !== VW || r[29] !== HW ? (UW = (0, import_jsx_runtime.jsxs)("div", {
|
|
18673
18689
|
className: "flex items-center gap-2",
|
|
18674
18690
|
children: [
|
|
18675
|
-
|
|
18676
|
-
|
|
18691
|
+
VW,
|
|
18692
|
+
HW
|
|
18677
18693
|
]
|
|
18678
|
-
}), r[28] =
|
|
18679
|
-
let
|
|
18680
|
-
r[31] !== p || r[32] !== f ? (
|
|
18681
|
-
dequal(e2, f) || (p(e2),
|
|
18682
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
18683
|
-
let
|
|
18684
|
-
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !==
|
|
18694
|
+
}), r[28] = VW, r[29] = HW, r[30] = UW) : UW = r[30];
|
|
18695
|
+
let WW;
|
|
18696
|
+
r[31] !== p || r[32] !== f ? (WW = (e2) => {
|
|
18697
|
+
dequal(e2, f) || (p(e2), kW(e2));
|
|
18698
|
+
}, r[31] = p, r[32] = f, r[33] = WW) : WW = r[33];
|
|
18699
|
+
let GW;
|
|
18700
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== WW ? (GW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18685
18701
|
value: "transform",
|
|
18686
18702
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18687
18703
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18688
|
-
ref:
|
|
18704
|
+
ref: Z,
|
|
18689
18705
|
initialValue: q,
|
|
18690
18706
|
columns: c,
|
|
18691
|
-
onChange:
|
|
18692
|
-
onInvalidChange:
|
|
18707
|
+
onChange: WW,
|
|
18708
|
+
onInvalidChange: kW,
|
|
18693
18709
|
getColumnValues: h,
|
|
18694
18710
|
columnTypesPerStep: B,
|
|
18695
18711
|
lazy: d
|
|
18696
18712
|
})
|
|
18697
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
18698
|
-
let
|
|
18699
|
-
r[41] === H ?
|
|
18713
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = WW, r[40] = GW) : GW = r[40];
|
|
18714
|
+
let KW;
|
|
18715
|
+
r[41] === H ? KW = r[42] : (KW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18700
18716
|
value: "python-code",
|
|
18701
18717
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18702
18718
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18705,9 +18721,9 @@ ${c}
|
|
|
18705
18721
|
code: H,
|
|
18706
18722
|
language: "python"
|
|
18707
18723
|
})
|
|
18708
|
-
}), r[41] = H, r[42] =
|
|
18709
|
-
let
|
|
18710
|
-
r[43] === W ?
|
|
18724
|
+
}), r[41] = H, r[42] = KW);
|
|
18725
|
+
let qW;
|
|
18726
|
+
r[43] === W ? qW = r[44] : (qW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18711
18727
|
value: "sql-code",
|
|
18712
18728
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18713
18729
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18716,35 +18732,35 @@ ${c}
|
|
|
18716
18732
|
code: W,
|
|
18717
18733
|
language: "sql"
|
|
18718
18734
|
})
|
|
18719
|
-
}), r[43] = W, r[44] =
|
|
18720
|
-
let
|
|
18721
|
-
r[45] !==
|
|
18735
|
+
}), r[43] = W, r[44] = qW);
|
|
18736
|
+
let JW;
|
|
18737
|
+
r[45] !== jW || r[46] !== UW || r[47] !== GW || r[48] !== KW || r[49] !== qW ? (JW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18722
18738
|
defaultValue: "transform",
|
|
18723
|
-
onValueChange:
|
|
18739
|
+
onValueChange: jW,
|
|
18724
18740
|
children: [
|
|
18725
|
-
|
|
18726
|
-
|
|
18727
|
-
|
|
18728
|
-
|
|
18741
|
+
UW,
|
|
18742
|
+
GW,
|
|
18743
|
+
KW,
|
|
18744
|
+
qW
|
|
18729
18745
|
]
|
|
18730
|
-
}), r[45] =
|
|
18731
|
-
let
|
|
18732
|
-
r[51] === O ?
|
|
18746
|
+
}), r[45] = jW, r[46] = UW, r[47] = GW, r[48] = KW, r[49] = qW, r[50] = JW) : JW = r[50];
|
|
18747
|
+
let YW;
|
|
18748
|
+
r[51] === O ? YW = r[52] : (YW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18733
18749
|
error: O
|
|
18734
|
-
}), r[51] = O, r[52] =
|
|
18735
|
-
let
|
|
18736
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
18750
|
+
}), r[51] = O, r[52] = YW);
|
|
18751
|
+
let XW = I || "", ZW = L ?? 0, QW = G ?? 0, $W = R || Arrays.EMPTY, eG = L && L > 5 || false, tG;
|
|
18752
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== XW || r[61] !== ZW || r[62] !== QW || r[63] !== $W || r[64] !== eG ? (tG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
18737
18753
|
label: null,
|
|
18738
18754
|
className: "rounded-b border-x border-b",
|
|
18739
|
-
data:
|
|
18755
|
+
data: XW,
|
|
18740
18756
|
hasStableRowId: false,
|
|
18741
|
-
totalRows:
|
|
18742
|
-
totalColumns:
|
|
18757
|
+
totalRows: ZW,
|
|
18758
|
+
totalColumns: QW,
|
|
18743
18759
|
maxColumns: "all",
|
|
18744
18760
|
pageSize: l,
|
|
18745
18761
|
pagination: true,
|
|
18746
18762
|
fieldTypes: z,
|
|
18747
|
-
rowHeaders:
|
|
18763
|
+
rowHeaders: $W,
|
|
18748
18764
|
showDownload: u,
|
|
18749
18765
|
download_as: _,
|
|
18750
18766
|
get_size_bytes: v,
|
|
@@ -18754,7 +18770,7 @@ ${c}
|
|
|
18754
18770
|
showColumnSummaries: false,
|
|
18755
18771
|
showDataTypes: true,
|
|
18756
18772
|
get_column_summaries: getColumnSummaries,
|
|
18757
|
-
showPageSizeSelector:
|
|
18773
|
+
showPageSizeSelector: eG,
|
|
18758
18774
|
showColumnExplorer: false,
|
|
18759
18775
|
showRowExplorer: true,
|
|
18760
18776
|
showChartBuilder: false,
|
|
@@ -18763,15 +18779,15 @@ ${c}
|
|
|
18763
18779
|
selection: null,
|
|
18764
18780
|
lazy: false,
|
|
18765
18781
|
host: y
|
|
18766
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
18767
|
-
let
|
|
18768
|
-
return r[66] !==
|
|
18782
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = XW, r[61] = ZW, r[62] = QW, r[63] = $W, r[64] = eG, r[65] = tG) : tG = r[65];
|
|
18783
|
+
let nG;
|
|
18784
|
+
return r[66] !== JW || r[67] !== YW || r[68] !== tG ? (nG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18769
18785
|
children: [
|
|
18770
|
-
|
|
18771
|
-
|
|
18772
|
-
|
|
18786
|
+
JW,
|
|
18787
|
+
YW,
|
|
18788
|
+
tG
|
|
18773
18789
|
]
|
|
18774
|
-
}), r[66] =
|
|
18790
|
+
}), r[66] = JW, r[67] = YW, r[68] = tG, r[69] = nG) : nG = r[69], nG;
|
|
18775
18791
|
});
|
|
18776
18792
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18777
18793
|
function getColumnSummaries() {
|
|
@@ -18955,30 +18971,30 @@ ${c}
|
|
|
18955
18971
|
}, [
|
|
18956
18972
|
B
|
|
18957
18973
|
]);
|
|
18958
|
-
let H = `${g}::${I}`, [W,
|
|
18959
|
-
W !== H && (
|
|
18974
|
+
let H = `${g}::${I}`, [W, q] = (0, import_react.useState)(H);
|
|
18975
|
+
W !== H && (q(H), E(0)), (0, import_react.useLayoutEffect)(() => {
|
|
18960
18976
|
var _a6;
|
|
18961
18977
|
M.current && (M.current = false, (_a6 = O.current[0]) == null ? void 0 : _a6.focus());
|
|
18962
18978
|
}, [
|
|
18963
18979
|
H
|
|
18964
18980
|
]);
|
|
18965
|
-
let
|
|
18981
|
+
let kW = (R == null ? void 0 : R.files) ?? [], Z = new Set(e.map((e2) => e2.path)), AW = l === "directory" || l === "all", jW = l === "file" || l === "all", MW = kW.filter((e2) => AW && e2.is_directory || jW && !e2.is_directory), NW = MW.length > 0 && MW.every((e2) => Z.has(e2.path));
|
|
18966
18982
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
18967
18983
|
kind: "danger",
|
|
18968
18984
|
children: z.message
|
|
18969
18985
|
});
|
|
18970
|
-
let
|
|
18986
|
+
let PW = PathBuilder.guessDeliminator(c).deliminator, FW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
18971
18987
|
children: e2.path
|
|
18972
18988
|
}, e2.id));
|
|
18973
|
-
function
|
|
18989
|
+
function IW(e2) {
|
|
18974
18990
|
var _a6;
|
|
18975
18991
|
if (v) return;
|
|
18976
18992
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
18977
|
-
if (g ===
|
|
18993
|
+
if (g === PW) {
|
|
18978
18994
|
y(false);
|
|
18979
18995
|
return;
|
|
18980
18996
|
}
|
|
18981
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
18997
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = PW);
|
|
18982
18998
|
}
|
|
18983
18999
|
let r2 = e2.length < c.length;
|
|
18984
19000
|
if (f && r2) {
|
|
@@ -18991,7 +19007,7 @@ ${c}
|
|
|
18991
19007
|
}
|
|
18992
19008
|
M.current = ((_a6 = j.current) == null ? void 0 : _a6.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
18993
19009
|
}
|
|
18994
|
-
function
|
|
19010
|
+
function LW({ path: e2, name: r2, isDirectory: c2 }) {
|
|
18995
19011
|
return {
|
|
18996
19012
|
id: e2,
|
|
18997
19013
|
name: r2,
|
|
@@ -18999,27 +19015,27 @@ ${c}
|
|
|
18999
19015
|
is_directory: c2
|
|
19000
19016
|
};
|
|
19001
19017
|
}
|
|
19002
|
-
function
|
|
19003
|
-
let f2 =
|
|
19018
|
+
function BW({ path: c2, name: l2, isDirectory: d2 }) {
|
|
19019
|
+
let f2 = LW({
|
|
19004
19020
|
path: c2,
|
|
19005
19021
|
name: l2,
|
|
19006
19022
|
isDirectory: d2
|
|
19007
19023
|
});
|
|
19008
|
-
|
|
19024
|
+
Z.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
19009
19025
|
...e,
|
|
19010
19026
|
f2
|
|
19011
19027
|
] : [
|
|
19012
19028
|
f2
|
|
19013
19029
|
]);
|
|
19014
19030
|
}
|
|
19015
|
-
function
|
|
19031
|
+
function VW() {
|
|
19016
19032
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
19017
19033
|
}
|
|
19018
|
-
function
|
|
19034
|
+
function HW() {
|
|
19019
19035
|
let c2 = [];
|
|
19020
|
-
for (let e2 of
|
|
19021
|
-
if (!
|
|
19022
|
-
let r2 =
|
|
19036
|
+
for (let e2 of kW) {
|
|
19037
|
+
if (!AW && e2.is_directory || Z.has(e2.path)) continue;
|
|
19038
|
+
let r2 = LW({
|
|
19023
19039
|
path: e2.path,
|
|
19024
19040
|
name: e2.name,
|
|
19025
19041
|
isDirectory: e2.is_directory
|
|
@@ -19031,20 +19047,20 @@ ${c}
|
|
|
19031
19047
|
...c2
|
|
19032
19048
|
]);
|
|
19033
19049
|
}
|
|
19034
|
-
let
|
|
19050
|
+
let UW = [
|
|
19035
19051
|
{
|
|
19036
19052
|
key: "parent",
|
|
19037
19053
|
name: PARENT_DIRECTORY,
|
|
19038
19054
|
Icon: CornerLeftUp,
|
|
19039
19055
|
isSelected: false,
|
|
19040
19056
|
canSelect: false,
|
|
19041
|
-
onPrimary: () =>
|
|
19057
|
+
onPrimary: () => IW(PARENT_DIRECTORY),
|
|
19042
19058
|
onToggleSelect: null
|
|
19043
19059
|
},
|
|
19044
|
-
...
|
|
19060
|
+
...kW.map((e2) => {
|
|
19045
19061
|
let r2 = e2.path;
|
|
19046
19062
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
19047
|
-
let c2 =
|
|
19063
|
+
let c2 = AW && e2.is_directory || jW && !e2.is_directory, l2 = Z.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => BW({
|
|
19048
19064
|
path: r2,
|
|
19049
19065
|
name: e2.name,
|
|
19050
19066
|
isDirectory: e2.is_directory
|
|
@@ -19055,46 +19071,46 @@ ${c}
|
|
|
19055
19071
|
Icon: FILE_ICON[u2],
|
|
19056
19072
|
isSelected: l2,
|
|
19057
19073
|
canSelect: c2,
|
|
19058
|
-
onPrimary: e2.is_directory ? () =>
|
|
19074
|
+
onPrimary: e2.is_directory ? () => IW(r2) : c2 ? d2 : () => {
|
|
19059
19075
|
},
|
|
19060
19076
|
onToggleSelect: c2 ? d2 : null
|
|
19061
19077
|
};
|
|
19062
19078
|
})
|
|
19063
19079
|
];
|
|
19064
|
-
function
|
|
19080
|
+
function WW(e2) {
|
|
19065
19081
|
var _a6;
|
|
19066
19082
|
E(e2), (_a6 = O.current[e2]) == null ? void 0 : _a6.focus();
|
|
19067
19083
|
}
|
|
19068
|
-
function
|
|
19084
|
+
function GW(e2, r2) {
|
|
19069
19085
|
var _a6, _b3;
|
|
19070
|
-
let c2 =
|
|
19086
|
+
let c2 = UW.length - 1;
|
|
19071
19087
|
switch (e2.key) {
|
|
19072
19088
|
case "ArrowDown":
|
|
19073
|
-
e2.preventDefault(),
|
|
19089
|
+
e2.preventDefault(), WW(Math.min(r2 + 1, c2));
|
|
19074
19090
|
break;
|
|
19075
19091
|
case "ArrowUp":
|
|
19076
|
-
e2.preventDefault(),
|
|
19092
|
+
e2.preventDefault(), WW(Math.max(r2 - 1, 0));
|
|
19077
19093
|
break;
|
|
19078
19094
|
case "Home":
|
|
19079
|
-
e2.preventDefault(),
|
|
19095
|
+
e2.preventDefault(), WW(0);
|
|
19080
19096
|
break;
|
|
19081
19097
|
case "End":
|
|
19082
|
-
e2.preventDefault(),
|
|
19098
|
+
e2.preventDefault(), WW(c2);
|
|
19083
19099
|
break;
|
|
19084
19100
|
case "Enter":
|
|
19085
|
-
e2.preventDefault(),
|
|
19101
|
+
e2.preventDefault(), UW[r2].onPrimary();
|
|
19086
19102
|
break;
|
|
19087
19103
|
case " ":
|
|
19088
|
-
e2.preventDefault(), (_b3 = (_a6 =
|
|
19104
|
+
e2.preventDefault(), (_b3 = (_a6 = UW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a6);
|
|
19089
19105
|
break;
|
|
19090
19106
|
}
|
|
19091
19107
|
}
|
|
19092
|
-
let { parentDirectories:
|
|
19108
|
+
let { parentDirectories: KW } = getProtocolAndParentDirectories({
|
|
19093
19109
|
path: g,
|
|
19094
|
-
delimiter:
|
|
19110
|
+
delimiter: PW,
|
|
19095
19111
|
initialPath: c,
|
|
19096
19112
|
restrictNavigation: f
|
|
19097
|
-
}),
|
|
19113
|
+
}), qW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
19098
19114
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
19099
19115
|
children: [
|
|
19100
19116
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -19104,7 +19120,7 @@ ${c}
|
|
|
19104
19120
|
(() => {
|
|
19105
19121
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
19106
19122
|
children: renderHTML({
|
|
19107
|
-
html: d ?? `Select ${
|
|
19123
|
+
html: d ?? `Select ${qW.join(" and ", 2)}...`
|
|
19108
19124
|
})
|
|
19109
19125
|
});
|
|
19110
19126
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -19118,8 +19134,8 @@ ${c}
|
|
|
19118
19134
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
19119
19135
|
size: "xs",
|
|
19120
19136
|
variant: "link",
|
|
19121
|
-
onClick:
|
|
19122
|
-
children:
|
|
19137
|
+
onClick: NW ? VW : HW,
|
|
19138
|
+
children: NW ? "Deselect all" : "Select all"
|
|
19123
19139
|
})
|
|
19124
19140
|
})
|
|
19125
19141
|
]
|
|
@@ -19129,15 +19145,15 @@ ${c}
|
|
|
19129
19145
|
className: "mt-2 w-full",
|
|
19130
19146
|
placeholder: g,
|
|
19131
19147
|
value: g,
|
|
19132
|
-
onChange: (e2) =>
|
|
19133
|
-
children:
|
|
19148
|
+
onChange: (e2) => IW(e2.target.value),
|
|
19149
|
+
children: KW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
19134
19150
|
value: e2,
|
|
19135
19151
|
children: e2
|
|
19136
19152
|
}, e2))
|
|
19137
19153
|
}),
|
|
19138
19154
|
R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
19139
19155
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
19140
|
-
children: R.is_truncated ? `Showing ${
|
|
19156
|
+
children: R.is_truncated ? `Showing ${kW.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
19141
19157
|
}),
|
|
19142
19158
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
19143
19159
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
@@ -19166,14 +19182,14 @@ ${c}
|
|
|
19166
19182
|
"aria-label": "File browser",
|
|
19167
19183
|
"aria-multiselectable": u,
|
|
19168
19184
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
19169
|
-
children:
|
|
19185
|
+
children: UW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
19170
19186
|
role: "row",
|
|
19171
19187
|
ref: (e3) => {
|
|
19172
19188
|
O.current[r2] = e3;
|
|
19173
19189
|
},
|
|
19174
19190
|
tabIndex: r2 === T ? 0 : -1,
|
|
19175
19191
|
onFocus: () => E(r2),
|
|
19176
|
-
onKeyDown: (e3) =>
|
|
19192
|
+
onKeyDown: (e3) => GW(e3, r2),
|
|
19177
19193
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
19178
19194
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
19179
19195
|
}),
|
|
@@ -19216,7 +19232,7 @@ ${c}
|
|
|
19216
19232
|
children: [
|
|
19217
19233
|
e.length,
|
|
19218
19234
|
" ",
|
|
19219
|
-
|
|
19235
|
+
qW.join(" or ", e.length),
|
|
19220
19236
|
" ",
|
|
19221
19237
|
"selected"
|
|
19222
19238
|
]
|
|
@@ -19236,7 +19252,7 @@ ${c}
|
|
|
19236
19252
|
marginBlock: 0
|
|
19237
19253
|
},
|
|
19238
19254
|
className: "m-0 text-xs text-muted-foreground",
|
|
19239
|
-
children:
|
|
19255
|
+
children: FW
|
|
19240
19256
|
})
|
|
19241
19257
|
})
|
|
19242
19258
|
]
|
|
@@ -24618,55 +24634,55 @@ ${c}
|
|
|
24618
24634
|
return typeof S == "function" ? S : noop$2;
|
|
24619
24635
|
}, [
|
|
24620
24636
|
S
|
|
24621
|
-
]), q = (0, import_react.useRef)(null),
|
|
24622
|
-
!
|
|
24623
|
-
|
|
24637
|
+
]), q = (0, import_react.useRef)(null), kW = (0, import_react.useRef)(null), Z = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), AW = Z[0], jW = Z[1], MW = AW.isFocused, NW = AW.isFileDialogActive, PW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), FW = function() {
|
|
24638
|
+
!PW.current && NW && setTimeout(function() {
|
|
24639
|
+
kW.current && (kW.current.files.length || (jW({
|
|
24624
24640
|
type: "closeDialog"
|
|
24625
24641
|
}), G()));
|
|
24626
24642
|
}, 300);
|
|
24627
24643
|
};
|
|
24628
24644
|
(0, import_react.useEffect)(function() {
|
|
24629
|
-
return window.addEventListener("focus",
|
|
24630
|
-
window.removeEventListener("focus",
|
|
24645
|
+
return window.addEventListener("focus", FW, false), function() {
|
|
24646
|
+
window.removeEventListener("focus", FW, false);
|
|
24631
24647
|
};
|
|
24632
24648
|
}, [
|
|
24633
|
-
|
|
24634
|
-
|
|
24649
|
+
kW,
|
|
24650
|
+
NW,
|
|
24635
24651
|
G,
|
|
24636
|
-
|
|
24652
|
+
PW
|
|
24637
24653
|
]);
|
|
24638
|
-
var
|
|
24639
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
24654
|
+
var IW = (0, import_react.useRef)([]), LW = (0, import_react.useRef)([]), RW = function(e2) {
|
|
24655
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), IW.current = []);
|
|
24640
24656
|
};
|
|
24641
24657
|
(0, import_react.useEffect)(function() {
|
|
24642
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
24643
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
24658
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", RW, false)), function() {
|
|
24659
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", RW));
|
|
24644
24660
|
};
|
|
24645
24661
|
}, [
|
|
24646
24662
|
q,
|
|
24647
24663
|
O
|
|
24648
24664
|
]), (0, import_react.useEffect)(function() {
|
|
24649
24665
|
var e2 = function(e3) {
|
|
24650
|
-
|
|
24666
|
+
LW.current = [].concat(_toConsumableArray(LW.current), [
|
|
24651
24667
|
e3.target
|
|
24652
|
-
]), isEvtWithFiles(e3) &&
|
|
24668
|
+
]), isEvtWithFiles(e3) && jW({
|
|
24653
24669
|
isDragGlobal: true,
|
|
24654
24670
|
type: "setDragGlobal"
|
|
24655
24671
|
});
|
|
24656
24672
|
}, r2 = function(e3) {
|
|
24657
|
-
|
|
24673
|
+
LW.current = LW.current.filter(function(r3) {
|
|
24658
24674
|
return r3 !== e3.target && r3 !== null;
|
|
24659
|
-
}), !(
|
|
24675
|
+
}), !(LW.current.length > 0) && jW({
|
|
24660
24676
|
isDragGlobal: false,
|
|
24661
24677
|
type: "setDragGlobal"
|
|
24662
24678
|
});
|
|
24663
24679
|
}, c2 = function() {
|
|
24664
|
-
|
|
24680
|
+
LW.current = [], jW({
|
|
24665
24681
|
isDragGlobal: false,
|
|
24666
24682
|
type: "setDragGlobal"
|
|
24667
24683
|
});
|
|
24668
24684
|
}, l2 = function() {
|
|
24669
|
-
|
|
24685
|
+
LW.current = [], jW({
|
|
24670
24686
|
isDragGlobal: false,
|
|
24671
24687
|
type: "setDragGlobal"
|
|
24672
24688
|
});
|
|
@@ -24684,12 +24700,12 @@ ${c}
|
|
|
24684
24700
|
E,
|
|
24685
24701
|
l
|
|
24686
24702
|
]);
|
|
24687
|
-
var
|
|
24703
|
+
var zW = (0, import_react.useCallback)(function(e2) {
|
|
24688
24704
|
R ? R(e2) : console.error(e2);
|
|
24689
24705
|
}, [
|
|
24690
24706
|
R
|
|
24691
|
-
]),
|
|
24692
|
-
e2.preventDefault(), e2.persist(),
|
|
24707
|
+
]), BW = (0, import_react.useCallback)(function(e2) {
|
|
24708
|
+
e2.preventDefault(), e2.persist(), $W(e2), IW.current = [].concat(_toConsumableArray(IW.current), [
|
|
24693
24709
|
e2.target
|
|
24694
24710
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24695
24711
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -24702,7 +24718,7 @@ ${c}
|
|
|
24702
24718
|
maxFiles: m,
|
|
24703
24719
|
validator: z
|
|
24704
24720
|
});
|
|
24705
|
-
|
|
24721
|
+
jW({
|
|
24706
24722
|
isDragAccept: l2,
|
|
24707
24723
|
isDragReject: c2 > 0 && !l2,
|
|
24708
24724
|
isDragActive: true,
|
|
@@ -24710,12 +24726,12 @@ ${c}
|
|
|
24710
24726
|
}), h && h(e2);
|
|
24711
24727
|
}
|
|
24712
24728
|
}).catch(function(e3) {
|
|
24713
|
-
return
|
|
24729
|
+
return zW(e3);
|
|
24714
24730
|
});
|
|
24715
24731
|
}, [
|
|
24716
24732
|
u,
|
|
24717
24733
|
h,
|
|
24718
|
-
|
|
24734
|
+
zW,
|
|
24719
24735
|
L,
|
|
24720
24736
|
B,
|
|
24721
24737
|
f,
|
|
@@ -24723,8 +24739,8 @@ ${c}
|
|
|
24723
24739
|
p,
|
|
24724
24740
|
m,
|
|
24725
24741
|
z
|
|
24726
|
-
]),
|
|
24727
|
-
e2.preventDefault(), e2.persist(),
|
|
24742
|
+
]), VW = (0, import_react.useCallback)(function(e2) {
|
|
24743
|
+
e2.preventDefault(), e2.persist(), $W(e2);
|
|
24728
24744
|
var r2 = isEvtWithFiles(e2);
|
|
24729
24745
|
if (r2 && e2.dataTransfer) try {
|
|
24730
24746
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -24734,12 +24750,12 @@ ${c}
|
|
|
24734
24750
|
}, [
|
|
24735
24751
|
_,
|
|
24736
24752
|
L
|
|
24737
|
-
]),
|
|
24738
|
-
e2.preventDefault(), e2.persist(),
|
|
24739
|
-
var r2 =
|
|
24753
|
+
]), HW = (0, import_react.useCallback)(function(e2) {
|
|
24754
|
+
e2.preventDefault(), e2.persist(), $W(e2);
|
|
24755
|
+
var r2 = IW.current.filter(function(e3) {
|
|
24740
24756
|
return q.current && q.current.contains(e3);
|
|
24741
24757
|
}), c2 = r2.indexOf(e2.target);
|
|
24742
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
24758
|
+
c2 !== -1 && r2.splice(c2, 1), IW.current = r2, !(r2.length > 0) && (jW({
|
|
24743
24759
|
type: "setDraggedFiles",
|
|
24744
24760
|
isDragActive: false,
|
|
24745
24761
|
isDragAccept: false,
|
|
@@ -24749,7 +24765,7 @@ ${c}
|
|
|
24749
24765
|
q,
|
|
24750
24766
|
g,
|
|
24751
24767
|
L
|
|
24752
|
-
]),
|
|
24768
|
+
]), UW = (0, import_react.useCallback)(function(e2, r2) {
|
|
24753
24769
|
var c2 = [], l2 = [];
|
|
24754
24770
|
e2.forEach(function(e3) {
|
|
24755
24771
|
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;
|
|
@@ -24773,14 +24789,14 @@ ${c}
|
|
|
24773
24789
|
TOO_MANY_FILES_REJECTION
|
|
24774
24790
|
]
|
|
24775
24791
|
});
|
|
24776
|
-
}), c2.splice(0)),
|
|
24792
|
+
}), c2.splice(0)), jW({
|
|
24777
24793
|
acceptedFiles: c2,
|
|
24778
24794
|
fileRejections: l2,
|
|
24779
24795
|
isDragReject: l2.length > 0,
|
|
24780
24796
|
type: "setFiles"
|
|
24781
24797
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
24782
24798
|
}, [
|
|
24783
|
-
|
|
24799
|
+
jW,
|
|
24784
24800
|
p,
|
|
24785
24801
|
B,
|
|
24786
24802
|
f,
|
|
@@ -24790,22 +24806,22 @@ ${c}
|
|
|
24790
24806
|
y,
|
|
24791
24807
|
b,
|
|
24792
24808
|
z
|
|
24793
|
-
]),
|
|
24794
|
-
e2.preventDefault(), e2.persist(),
|
|
24795
|
-
isPropagationStopped(e2) && !L ||
|
|
24809
|
+
]), WW = (0, import_react.useCallback)(function(e2) {
|
|
24810
|
+
e2.preventDefault(), e2.persist(), $W(e2), IW.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24811
|
+
isPropagationStopped(e2) && !L || UW(r2, e2);
|
|
24796
24812
|
}).catch(function(e3) {
|
|
24797
|
-
return
|
|
24798
|
-
}),
|
|
24813
|
+
return zW(e3);
|
|
24814
|
+
}), jW({
|
|
24799
24815
|
type: "reset"
|
|
24800
24816
|
});
|
|
24801
24817
|
}, [
|
|
24802
24818
|
u,
|
|
24803
|
-
|
|
24804
|
-
|
|
24819
|
+
UW,
|
|
24820
|
+
zW,
|
|
24805
24821
|
L
|
|
24806
|
-
]),
|
|
24807
|
-
if (
|
|
24808
|
-
|
|
24822
|
+
]), GW = (0, import_react.useCallback)(function() {
|
|
24823
|
+
if (PW.current) {
|
|
24824
|
+
jW({
|
|
24809
24825
|
type: "openDialog"
|
|
24810
24826
|
}), W();
|
|
24811
24827
|
var e2 = {
|
|
@@ -24815,66 +24831,66 @@ ${c}
|
|
|
24815
24831
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
24816
24832
|
return u(e3);
|
|
24817
24833
|
}).then(function(e3) {
|
|
24818
|
-
|
|
24834
|
+
UW(e3, null), jW({
|
|
24819
24835
|
type: "closeDialog"
|
|
24820
24836
|
});
|
|
24821
24837
|
}).catch(function(e3) {
|
|
24822
|
-
isAbort(e3) ? (G(e3),
|
|
24838
|
+
isAbort(e3) ? (G(e3), jW({
|
|
24823
24839
|
type: "closeDialog"
|
|
24824
|
-
})) : isSecurityError(e3) ? (
|
|
24840
|
+
})) : isSecurityError(e3) ? (PW.current = false, kW.current ? (kW.current.value = null, kW.current.click()) : zW(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."))) : zW(e3);
|
|
24825
24841
|
});
|
|
24826
24842
|
return;
|
|
24827
24843
|
}
|
|
24828
|
-
|
|
24844
|
+
kW.current && (jW({
|
|
24829
24845
|
type: "openDialog"
|
|
24830
|
-
}), W(),
|
|
24846
|
+
}), W(), kW.current.value = null, kW.current.click());
|
|
24831
24847
|
}, [
|
|
24832
|
-
|
|
24848
|
+
jW,
|
|
24833
24849
|
W,
|
|
24834
24850
|
G,
|
|
24835
24851
|
T,
|
|
24836
|
-
|
|
24837
|
-
|
|
24852
|
+
UW,
|
|
24853
|
+
zW,
|
|
24838
24854
|
H,
|
|
24839
24855
|
p
|
|
24840
|
-
]),
|
|
24841
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
24856
|
+
]), KW = (0, import_react.useCallback)(function(e2) {
|
|
24857
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), GW());
|
|
24842
24858
|
}, [
|
|
24843
24859
|
q,
|
|
24844
|
-
|
|
24845
|
-
]),
|
|
24846
|
-
|
|
24860
|
+
GW
|
|
24861
|
+
]), qW = (0, import_react.useCallback)(function() {
|
|
24862
|
+
jW({
|
|
24847
24863
|
type: "focus"
|
|
24848
24864
|
});
|
|
24849
|
-
}, []),
|
|
24850
|
-
|
|
24865
|
+
}, []), JW = (0, import_react.useCallback)(function() {
|
|
24866
|
+
jW({
|
|
24851
24867
|
type: "blur"
|
|
24852
24868
|
});
|
|
24853
|
-
}, []),
|
|
24854
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
24869
|
+
}, []), YW = (0, import_react.useCallback)(function() {
|
|
24870
|
+
j || (isIeOrEdge() ? setTimeout(GW, 0) : GW());
|
|
24855
24871
|
}, [
|
|
24856
24872
|
j,
|
|
24857
|
-
|
|
24858
|
-
]),
|
|
24873
|
+
GW
|
|
24874
|
+
]), XW = function(e2) {
|
|
24859
24875
|
return l ? null : e2;
|
|
24860
|
-
},
|
|
24861
|
-
return M ? null :
|
|
24862
|
-
},
|
|
24863
|
-
return I ? null :
|
|
24864
|
-
},
|
|
24876
|
+
}, ZW = function(e2) {
|
|
24877
|
+
return M ? null : XW(e2);
|
|
24878
|
+
}, QW = function(e2) {
|
|
24879
|
+
return I ? null : XW(e2);
|
|
24880
|
+
}, $W = function(e2) {
|
|
24865
24881
|
L && e2.stopPropagation();
|
|
24866
|
-
},
|
|
24882
|
+
}, eG = (0, import_react.useMemo)(function() {
|
|
24867
24883
|
return function() {
|
|
24868
24884
|
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);
|
|
24869
24885
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
24870
|
-
onKeyDown:
|
|
24871
|
-
onFocus:
|
|
24872
|
-
onBlur:
|
|
24873
|
-
onClick:
|
|
24874
|
-
onDragEnter:
|
|
24875
|
-
onDragOver:
|
|
24876
|
-
onDragLeave:
|
|
24877
|
-
onDrop:
|
|
24886
|
+
onKeyDown: ZW(composeEventHandlers(d2, KW)),
|
|
24887
|
+
onFocus: ZW(composeEventHandlers(f2, qW)),
|
|
24888
|
+
onBlur: ZW(composeEventHandlers(p2, JW)),
|
|
24889
|
+
onClick: XW(composeEventHandlers(m2, YW)),
|
|
24890
|
+
onDragEnter: QW(composeEventHandlers(h2, BW)),
|
|
24891
|
+
onDragOver: QW(composeEventHandlers(g2, VW)),
|
|
24892
|
+
onDragLeave: QW(composeEventHandlers(_2, HW)),
|
|
24893
|
+
onDrop: QW(composeEventHandlers(v2, WW)),
|
|
24878
24894
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
24879
24895
|
}, c2, q), !l && !M ? {
|
|
24880
24896
|
tabIndex: 0
|
|
@@ -24882,20 +24898,20 @@ ${c}
|
|
|
24882
24898
|
};
|
|
24883
24899
|
}, [
|
|
24884
24900
|
q,
|
|
24885
|
-
|
|
24886
|
-
|
|
24887
|
-
|
|
24888
|
-
|
|
24889
|
-
|
|
24890
|
-
|
|
24891
|
-
|
|
24892
|
-
|
|
24901
|
+
KW,
|
|
24902
|
+
qW,
|
|
24903
|
+
JW,
|
|
24904
|
+
YW,
|
|
24905
|
+
BW,
|
|
24906
|
+
VW,
|
|
24907
|
+
HW,
|
|
24908
|
+
WW,
|
|
24893
24909
|
M,
|
|
24894
24910
|
I,
|
|
24895
24911
|
l
|
|
24896
|
-
]),
|
|
24912
|
+
]), tG = (0, import_react.useCallback)(function(e2) {
|
|
24897
24913
|
e2.stopPropagation();
|
|
24898
|
-
}, []),
|
|
24914
|
+
}, []), nG = (0, import_react.useMemo)(function() {
|
|
24899
24915
|
return function() {
|
|
24900
24916
|
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);
|
|
24901
24917
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -24914,25 +24930,25 @@ ${c}
|
|
|
24914
24930
|
width: "1px",
|
|
24915
24931
|
whiteSpace: "nowrap"
|
|
24916
24932
|
},
|
|
24917
|
-
onChange:
|
|
24918
|
-
onClick:
|
|
24933
|
+
onChange: XW(composeEventHandlers(l2, WW)),
|
|
24934
|
+
onClick: XW(composeEventHandlers(u2, tG)),
|
|
24919
24935
|
tabIndex: -1
|
|
24920
|
-
}, c2,
|
|
24936
|
+
}, c2, kW)), d2);
|
|
24921
24937
|
};
|
|
24922
24938
|
}, [
|
|
24923
|
-
|
|
24939
|
+
kW,
|
|
24924
24940
|
c,
|
|
24925
24941
|
p,
|
|
24926
|
-
|
|
24942
|
+
WW,
|
|
24927
24943
|
l
|
|
24928
24944
|
]);
|
|
24929
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
24930
|
-
isFocused:
|
|
24931
|
-
getRootProps:
|
|
24932
|
-
getInputProps:
|
|
24945
|
+
return _objectSpread$7(_objectSpread$7({}, AW), {}, {
|
|
24946
|
+
isFocused: MW && !l,
|
|
24947
|
+
getRootProps: eG,
|
|
24948
|
+
getInputProps: nG,
|
|
24933
24949
|
rootRef: q,
|
|
24934
|
-
inputRef:
|
|
24935
|
-
open:
|
|
24950
|
+
inputRef: kW,
|
|
24951
|
+
open: XW(GW)
|
|
24936
24952
|
});
|
|
24937
24953
|
}
|
|
24938
24954
|
function reducer$2(e, r) {
|
|
@@ -25048,7 +25064,7 @@ ${c}
|
|
|
25048
25064
|
r[2] === u ? g = r[3] : (g = (e2) => {
|
|
25049
25065
|
filesToBase64(e2).then((e3) => {
|
|
25050
25066
|
u(e3);
|
|
25051
|
-
}).catch(_temp5);
|
|
25067
|
+
}).catch(_temp5$1);
|
|
25052
25068
|
}, r[2] = u, r[3] = g);
|
|
25053
25069
|
let _;
|
|
25054
25070
|
r[4] !== l || r[5] !== h || r[6] !== f || r[7] !== g ? (_ = {
|
|
@@ -25164,47 +25180,47 @@ ${c}
|
|
|
25164
25180
|
html: I
|
|
25165
25181
|
})
|
|
25166
25182
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
25167
|
-
let q = w && "text-primary",
|
|
25168
|
-
r[48] !== q || r[49] !==
|
|
25169
|
-
let
|
|
25170
|
-
r[51] ===
|
|
25183
|
+
let q = w && "text-primary", kW = T && "text-destructive", Z;
|
|
25184
|
+
r[48] !== q || r[49] !== kW ? (Z = cn(q, kW), r[48] = q, r[49] = kW, r[50] = Z) : Z = r[50];
|
|
25185
|
+
let AW;
|
|
25186
|
+
r[51] === Z ? AW = r[52] : (AW = (0, import_jsx_runtime.jsx)(Upload, {
|
|
25171
25187
|
strokeWidth: 1.4,
|
|
25172
|
-
className:
|
|
25173
|
-
}), r[51] =
|
|
25174
|
-
let
|
|
25175
|
-
r[53] !==
|
|
25176
|
-
let
|
|
25177
|
-
r[56] ===
|
|
25188
|
+
className: Z
|
|
25189
|
+
}), r[51] = Z, r[52] = AW);
|
|
25190
|
+
let jW = w && "text-primary", MW = T && "text-destructive", NW;
|
|
25191
|
+
r[53] !== jW || r[54] !== MW ? (NW = cn(jW, MW), r[53] = jW, r[54] = MW, r[55] = NW) : NW = r[55];
|
|
25192
|
+
let PW;
|
|
25193
|
+
r[56] === NW ? PW = r[57] : (PW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
25178
25194
|
strokeWidth: 1.4,
|
|
25179
|
-
className:
|
|
25180
|
-
}), r[56] =
|
|
25181
|
-
let
|
|
25182
|
-
r[58] !==
|
|
25195
|
+
className: NW
|
|
25196
|
+
}), r[56] = NW, r[57] = PW);
|
|
25197
|
+
let FW;
|
|
25198
|
+
r[58] !== AW || r[59] !== PW ? (FW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25183
25199
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
25184
25200
|
children: [
|
|
25185
|
-
|
|
25186
|
-
|
|
25201
|
+
AW,
|
|
25202
|
+
PW
|
|
25187
25203
|
]
|
|
25188
|
-
}), r[58] =
|
|
25189
|
-
let
|
|
25190
|
-
r[61] !== G || r[62] !==
|
|
25204
|
+
}), r[58] = AW, r[59] = PW, r[60] = FW) : FW = r[60];
|
|
25205
|
+
let IW;
|
|
25206
|
+
r[61] !== G || r[62] !== FW ? (IW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25191
25207
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
25192
25208
|
children: [
|
|
25193
25209
|
G,
|
|
25194
|
-
|
|
25210
|
+
FW
|
|
25195
25211
|
]
|
|
25196
|
-
}), r[61] = G, r[62] =
|
|
25197
|
-
let
|
|
25198
|
-
r[64] !== W || r[65] !==
|
|
25212
|
+
}), r[61] = G, r[62] = FW, r[63] = IW) : IW = r[63];
|
|
25213
|
+
let LW;
|
|
25214
|
+
r[64] !== W || r[65] !== IW || r[66] !== z || r[67] !== B ? (LW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25199
25215
|
className: z,
|
|
25200
25216
|
...B,
|
|
25201
25217
|
children: [
|
|
25202
25218
|
W,
|
|
25203
|
-
|
|
25219
|
+
IW
|
|
25204
25220
|
]
|
|
25205
|
-
}), r[64] = W, r[65] =
|
|
25206
|
-
let
|
|
25207
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
25221
|
+
}), r[64] = W, r[65] = IW, r[66] = z, r[67] = B, r[68] = LW) : LW = r[68];
|
|
25222
|
+
let RW;
|
|
25223
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (RW = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
25208
25224
|
className: "flex flex-row gap-1",
|
|
25209
25225
|
children: [
|
|
25210
25226
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -25240,17 +25256,17 @@ ${c}
|
|
|
25240
25256
|
})
|
|
25241
25257
|
})
|
|
25242
25258
|
]
|
|
25243
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
25244
|
-
let
|
|
25245
|
-
return r[75] !==
|
|
25259
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = RW) : RW = r[74];
|
|
25260
|
+
let BW;
|
|
25261
|
+
return r[75] !== LW || r[76] !== RW ? (BW = (0, import_jsx_runtime.jsx)("section", {
|
|
25246
25262
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
25247
25263
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
25248
25264
|
children: [
|
|
25249
|
-
|
|
25250
|
-
|
|
25265
|
+
LW,
|
|
25266
|
+
RW
|
|
25251
25267
|
]
|
|
25252
25268
|
})
|
|
25253
|
-
}), r[75] =
|
|
25269
|
+
}), r[75] = LW, r[76] = RW, r[77] = BW) : BW = r[77], BW;
|
|
25254
25270
|
};
|
|
25255
25271
|
function _temp$11(e) {
|
|
25256
25272
|
Logger.error(e), toast({
|
|
@@ -25282,7 +25298,7 @@ ${c}
|
|
|
25282
25298
|
variant: "danger"
|
|
25283
25299
|
});
|
|
25284
25300
|
}
|
|
25285
|
-
function _temp5(e) {
|
|
25301
|
+
function _temp5$1(e) {
|
|
25286
25302
|
Logger.error(e), toast({
|
|
25287
25303
|
title: "File upload failed",
|
|
25288
25304
|
description: "Failed to convert file to base64.",
|
|
@@ -25346,75 +25362,75 @@ ${c}
|
|
|
25346
25362
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
25347
25363
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
25348
25364
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
25349
|
-
let
|
|
25350
|
-
r[13] === f ?
|
|
25365
|
+
let kW;
|
|
25366
|
+
r[13] === f ? kW = r[14] : (kW = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
25351
25367
|
className: "text-center",
|
|
25352
25368
|
children: renderHTML({
|
|
25353
25369
|
html: f
|
|
25354
25370
|
})
|
|
25355
|
-
}), r[13] = f, r[14] =
|
|
25356
|
-
let
|
|
25357
|
-
r[15] === L ?
|
|
25371
|
+
}), r[13] = f, r[14] = kW);
|
|
25372
|
+
let Z;
|
|
25373
|
+
r[15] === L ? Z = r[16] : (Z = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25358
25374
|
kind: "danger",
|
|
25359
25375
|
className: "rounded",
|
|
25360
25376
|
children: L ?? "Invalid input"
|
|
25361
|
-
}), r[15] = L, r[16] =
|
|
25362
|
-
let
|
|
25363
|
-
r[17] === c ?
|
|
25377
|
+
}), r[15] = L, r[16] = Z);
|
|
25378
|
+
let AW;
|
|
25379
|
+
r[17] === c ? AW = r[18] : (AW = (0, import_jsx_runtime.jsx)("div", {
|
|
25364
25380
|
children: c
|
|
25365
|
-
}), r[17] = c, r[18] =
|
|
25366
|
-
let
|
|
25367
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
25381
|
+
}), r[17] = c, r[18] = AW);
|
|
25382
|
+
let jW;
|
|
25383
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (jW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
25368
25384
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
25369
25385
|
variant: "text",
|
|
25370
25386
|
onClick: (e2) => {
|
|
25371
25387
|
e2.preventDefault(), B();
|
|
25372
25388
|
},
|
|
25373
25389
|
children: S
|
|
25374
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
25375
|
-
let
|
|
25376
|
-
r[23] === h ?
|
|
25390
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = jW) : jW = r[22];
|
|
25391
|
+
let MW = v || h, NW;
|
|
25392
|
+
r[23] === h ? NW = r[24] : (NW = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
25377
25393
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
25378
|
-
}), r[23] = h, r[24] =
|
|
25379
|
-
let
|
|
25380
|
-
r[25] !== g || r[26] !==
|
|
25394
|
+
}), r[23] = h, r[24] = NW);
|
|
25395
|
+
let PW;
|
|
25396
|
+
r[25] !== g || r[26] !== MW || r[27] !== NW || r[28] !== I ? (PW = (0, import_jsx_runtime.jsxs)(Button, {
|
|
25381
25397
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
25382
25398
|
variant: I,
|
|
25383
|
-
disabled:
|
|
25399
|
+
disabled: MW,
|
|
25384
25400
|
type: "submit",
|
|
25385
25401
|
children: [
|
|
25386
|
-
|
|
25402
|
+
NW,
|
|
25387
25403
|
g
|
|
25388
25404
|
]
|
|
25389
|
-
}), r[25] = g, r[26] =
|
|
25390
|
-
let
|
|
25391
|
-
r[30] !== _ || r[31] !==
|
|
25392
|
-
let
|
|
25393
|
-
r[33] !==
|
|
25405
|
+
}), r[25] = g, r[26] = MW, r[27] = NW, r[28] = I, r[29] = PW) : PW = r[29];
|
|
25406
|
+
let FW;
|
|
25407
|
+
r[30] !== _ || r[31] !== PW ? (FW = withTooltip(PW, _), r[30] = _, r[31] = PW, r[32] = FW) : FW = r[32];
|
|
25408
|
+
let IW;
|
|
25409
|
+
r[33] !== FW || r[34] !== jW ? (IW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25394
25410
|
className: "flex justify-end gap-2 font-code",
|
|
25395
25411
|
children: [
|
|
25396
|
-
|
|
25397
|
-
|
|
25412
|
+
jW,
|
|
25413
|
+
FW
|
|
25398
25414
|
]
|
|
25399
|
-
}), r[33] =
|
|
25400
|
-
let
|
|
25401
|
-
r[36] !==
|
|
25415
|
+
}), r[33] = FW, r[34] = jW, r[35] = IW) : IW = r[35];
|
|
25416
|
+
let LW;
|
|
25417
|
+
r[36] !== IW || r[37] !== G || r[38] !== q || r[39] !== kW || r[40] !== Z || r[41] !== AW ? (LW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25402
25418
|
className: G,
|
|
25403
25419
|
onKeyDown: q,
|
|
25404
25420
|
children: [
|
|
25405
|
-
|
|
25406
|
-
HW,
|
|
25421
|
+
kW,
|
|
25407
25422
|
Z,
|
|
25408
|
-
|
|
25423
|
+
AW,
|
|
25424
|
+
IW
|
|
25409
25425
|
]
|
|
25410
|
-
}), r[36] =
|
|
25411
|
-
let
|
|
25412
|
-
return r[43] !==
|
|
25426
|
+
}), r[36] = IW, r[37] = G, r[38] = q, r[39] = kW, r[40] = Z, r[41] = AW, r[42] = LW) : LW = r[42];
|
|
25427
|
+
let RW;
|
|
25428
|
+
return r[43] !== LW || r[44] !== H ? (RW = (0, import_jsx_runtime.jsx)("form", {
|
|
25413
25429
|
className: "contents",
|
|
25414
25430
|
ref: j,
|
|
25415
25431
|
onSubmit: H,
|
|
25416
|
-
children:
|
|
25417
|
-
}), r[43] =
|
|
25432
|
+
children: LW
|
|
25433
|
+
}), r[43] = LW, r[44] = H, r[45] = RW) : RW = r[45], RW;
|
|
25418
25434
|
};
|
|
25419
25435
|
var Form = (e) => {
|
|
25420
25436
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -26230,7 +26246,7 @@ ${c}
|
|
|
26230
26246
|
signal: r.signal
|
|
26231
26247
|
}), e.addEventListener("keydown", __privateGet(this, _w), {
|
|
26232
26248
|
signal: r.signal
|
|
26233
|
-
}), __privateMethod(this, _MatplotlibRenderer_instances,
|
|
26249
|
+
}), __privateMethod(this, _MatplotlibRenderer_instances, l_fn2).call(this, r.signal), r.signal.addEventListener("abort", () => {
|
|
26234
26250
|
cancelAnimationFrame(__privateGet(this, _i4)), __privateGet(this, _e8).remove();
|
|
26235
26251
|
}), __privateMethod(this, _MatplotlibRenderer_instances, u_fn).call(this, __privateGet(this, _n6).chartBase64), __privateGet(this, _b2).call(this, __privateGet(this, _n6).value);
|
|
26236
26252
|
}
|
|
@@ -26239,7 +26255,7 @@ ${c}
|
|
|
26239
26255
|
__privateSet(this, _n6, e);
|
|
26240
26256
|
let c = false;
|
|
26241
26257
|
if ((e.width !== r.width || e.height !== r.height) && (__privateMethod(this, _MatplotlibRenderer_instances, c_fn2).call(this), c = true), e.chartBase64 !== __privateGet(this, _s2)) {
|
|
26242
|
-
__privateMethod(this, _MatplotlibRenderer_instances, u_fn).call(this, e.chartBase64)
|
|
26258
|
+
__privateMethod(this, _MatplotlibRenderer_instances, u_fn).call(this, e.chartBase64);
|
|
26243
26259
|
return;
|
|
26244
26260
|
}
|
|
26245
26261
|
let l = __privateGet(this, _r4).type !== "idle" && __privateGet(this, _r4).action !== null;
|
|
@@ -26252,9 +26268,9 @@ ${c}
|
|
|
26252
26268
|
}, _e8 = new WeakMap(), _t6 = new WeakMap(), _n6 = new WeakMap(), _r4 = new WeakMap(), _i4 = new WeakMap(), _a4 = new WeakMap(), _o4 = new WeakMap(), _s2 = new WeakMap(), _MatplotlibRenderer_instances = new WeakSet(), c_fn2 = function(e = __privateGet(this, _e8)) {
|
|
26253
26269
|
let r = globalThis.devicePixelRatio ?? 1, { width: c, height: l } = __privateGet(this, _n6);
|
|
26254
26270
|
e.width = c * r, e.height = l * r, e.style.width = `${c}px`, e.style.maxWidth = "100%", e.style.height = "auto", e.style.aspectRatio = `${c} / ${l}`;
|
|
26255
|
-
},
|
|
26271
|
+
}, l_fn2 = function(e) {
|
|
26256
26272
|
e.aborted || matchMedia(`(resolution: ${globalThis.devicePixelRatio ?? 1}dppx)`).addEventListener("change", () => {
|
|
26257
|
-
__privateMethod(this, _MatplotlibRenderer_instances, c_fn2).call(this), __privateGet(this, _d3).call(this), __privateMethod(this, _MatplotlibRenderer_instances,
|
|
26273
|
+
__privateMethod(this, _MatplotlibRenderer_instances, c_fn2).call(this), __privateGet(this, _d3).call(this), __privateMethod(this, _MatplotlibRenderer_instances, l_fn2).call(this, e);
|
|
26258
26274
|
}, {
|
|
26259
26275
|
once: true,
|
|
26260
26276
|
signal: e
|
|
@@ -27187,8 +27203,8 @@ ${c}
|
|
|
27187
27203
|
points: extractSunburstPoints(e2.points)
|
|
27188
27204
|
}));
|
|
27189
27205
|
}, r[29] = u, r[30] = G);
|
|
27190
|
-
let q = useEvent_default(G),
|
|
27191
|
-
r[31] === u ?
|
|
27206
|
+
let q = useEvent_default(G), kW;
|
|
27207
|
+
r[31] === u ? kW = r[32] : (kW = (e2) => {
|
|
27192
27208
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
27193
27209
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
27194
27210
|
u((e3) => ({
|
|
@@ -27199,9 +27215,9 @@ ${c}
|
|
|
27199
27215
|
points: r2,
|
|
27200
27216
|
indices: c2
|
|
27201
27217
|
}));
|
|
27202
|
-
}, r[31] = u, r[32] =
|
|
27203
|
-
let
|
|
27204
|
-
r[33] === u ?
|
|
27218
|
+
}, r[31] = u, r[32] = kW);
|
|
27219
|
+
let Z = useEvent_default(kW), AW;
|
|
27220
|
+
r[33] === u ? AW = r[34] : (AW = (e2) => {
|
|
27205
27221
|
e2 && u((r2) => ({
|
|
27206
27222
|
...r2,
|
|
27207
27223
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -27210,9 +27226,9 @@ ${c}
|
|
|
27210
27226
|
range: e2.range,
|
|
27211
27227
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
27212
27228
|
}));
|
|
27213
|
-
}, r[33] = u, r[34] =
|
|
27214
|
-
let
|
|
27215
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
27229
|
+
}, r[33] = u, r[34] = AW);
|
|
27230
|
+
let jW = useEvent_default(AW), MW = m.frames ?? void 0, NW = useEvent_default(_temp3$3), PW;
|
|
27231
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !== jW || r[43] !== MW || r[44] !== NW || r[45] !== R ? (PW = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
27216
27232
|
...m,
|
|
27217
27233
|
layout: h,
|
|
27218
27234
|
onRelayout: R,
|
|
@@ -27220,13 +27236,13 @@ ${c}
|
|
|
27220
27236
|
onTreemapClick: W,
|
|
27221
27237
|
onSunburstClick: q,
|
|
27222
27238
|
config: L,
|
|
27223
|
-
onClick:
|
|
27224
|
-
onSelected:
|
|
27239
|
+
onClick: Z,
|
|
27240
|
+
onSelected: jW,
|
|
27225
27241
|
className: "w-full",
|
|
27226
27242
|
useResizeHandler: true,
|
|
27227
|
-
frames:
|
|
27228
|
-
onError:
|
|
27229
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
27243
|
+
frames: MW,
|
|
27244
|
+
onError: NW
|
|
27245
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] = jW, r[43] = MW, r[44] = NW, r[45] = R, r[46] = PW) : PW = r[46], PW;
|
|
27230
27246
|
});
|
|
27231
27247
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
27232
27248
|
function _temp$8(e) {
|
|
@@ -27358,8 +27374,8 @@ ${c}
|
|
|
27358
27374
|
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];
|
|
27359
27375
|
let q;
|
|
27360
27376
|
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];
|
|
27361
|
-
let
|
|
27362
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
27377
|
+
let kW;
|
|
27378
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (kW = (0, import_jsx_runtime.jsx)(Track, {
|
|
27363
27379
|
ref: E,
|
|
27364
27380
|
"data-testid": "track",
|
|
27365
27381
|
className: G,
|
|
@@ -27370,9 +27386,9 @@ ${c}
|
|
|
27370
27386
|
onPointerMove: z,
|
|
27371
27387
|
onPointerUp: H
|
|
27372
27388
|
})
|
|
27373
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
27374
|
-
let
|
|
27375
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
27389
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = kW) : kW = c[22];
|
|
27390
|
+
let Z;
|
|
27391
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27376
27392
|
asChild: true,
|
|
27377
27393
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27378
27394
|
"data-testid": "thumb",
|
|
@@ -27382,30 +27398,30 @@ ${c}
|
|
|
27382
27398
|
onMouseEnter: m.setTrue,
|
|
27383
27399
|
onMouseLeave: m.setFalse
|
|
27384
27400
|
})
|
|
27385
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
27386
|
-
let
|
|
27387
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
27401
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = Z) : Z = c[25];
|
|
27402
|
+
let AW;
|
|
27403
|
+
c[26] !== h || c[27] !== u.value || c[28] !== d ? (AW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27388
27404
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
27389
27405
|
locale: h
|
|
27390
27406
|
})
|
|
27391
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
27392
|
-
let
|
|
27393
|
-
c[30] ===
|
|
27394
|
-
children:
|
|
27395
|
-
}), c[30] =
|
|
27396
|
-
let
|
|
27397
|
-
c[32] !== f || c[33] !==
|
|
27407
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = AW) : AW = c[29];
|
|
27408
|
+
let jW;
|
|
27409
|
+
c[30] === AW ? jW = c[31] : (jW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27410
|
+
children: AW
|
|
27411
|
+
}), c[30] = AW, c[31] = jW);
|
|
27412
|
+
let MW;
|
|
27413
|
+
c[32] !== f || c[33] !== Z || c[34] !== jW ? (MW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27398
27414
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27399
27415
|
delayDuration: 0,
|
|
27400
27416
|
open: f,
|
|
27401
27417
|
children: [
|
|
27402
|
-
|
|
27403
|
-
|
|
27418
|
+
Z,
|
|
27419
|
+
jW
|
|
27404
27420
|
]
|
|
27405
27421
|
})
|
|
27406
|
-
}), c[32] = f, c[33] =
|
|
27407
|
-
let
|
|
27408
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
27422
|
+
}), c[32] = f, c[33] = Z, c[34] = jW, c[35] = MW) : MW = c[35];
|
|
27423
|
+
let NW;
|
|
27424
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (NW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27409
27425
|
asChild: true,
|
|
27410
27426
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27411
27427
|
"data-testid": "thumb",
|
|
@@ -27415,39 +27431,39 @@ ${c}
|
|
|
27415
27431
|
onMouseEnter: m.setTrue,
|
|
27416
27432
|
onMouseLeave: m.setFalse
|
|
27417
27433
|
})
|
|
27418
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
27419
|
-
let
|
|
27420
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
27434
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = NW) : NW = c[38];
|
|
27435
|
+
let PW;
|
|
27436
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (PW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27421
27437
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
27422
27438
|
locale: h
|
|
27423
27439
|
})
|
|
27424
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
27425
|
-
let
|
|
27426
|
-
c[43] ===
|
|
27427
|
-
children:
|
|
27428
|
-
}), c[43] =
|
|
27429
|
-
let
|
|
27430
|
-
c[45] !== f || c[46] !==
|
|
27440
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = PW) : PW = c[42];
|
|
27441
|
+
let FW;
|
|
27442
|
+
c[43] === PW ? FW = c[44] : (FW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27443
|
+
children: PW
|
|
27444
|
+
}), c[43] = PW, c[44] = FW);
|
|
27445
|
+
let IW;
|
|
27446
|
+
c[45] !== f || c[46] !== NW || c[47] !== FW ? (IW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27431
27447
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27432
27448
|
delayDuration: 0,
|
|
27433
27449
|
open: f,
|
|
27434
27450
|
children: [
|
|
27435
|
-
|
|
27436
|
-
|
|
27451
|
+
NW,
|
|
27452
|
+
FW
|
|
27437
27453
|
]
|
|
27438
27454
|
})
|
|
27439
|
-
}), c[45] = f, c[46] =
|
|
27440
|
-
let
|
|
27441
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
27455
|
+
}), c[45] = f, c[46] = NW, c[47] = FW, c[48] = IW) : IW = c[48];
|
|
27456
|
+
let LW;
|
|
27457
|
+
return c[49] !== M || c[50] !== u || c[51] !== kW || c[52] !== MW || c[53] !== IW || c[54] !== W ? (LW = (0, import_jsx_runtime.jsxs)(Root, {
|
|
27442
27458
|
ref: M,
|
|
27443
27459
|
className: W,
|
|
27444
27460
|
...u,
|
|
27445
27461
|
children: [
|
|
27446
|
-
|
|
27447
|
-
|
|
27448
|
-
|
|
27462
|
+
kW,
|
|
27463
|
+
MW,
|
|
27464
|
+
IW
|
|
27449
27465
|
]
|
|
27450
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
27466
|
+
}), c[49] = M, c[50] = u, c[51] = kW, c[52] = MW, c[53] = IW, c[54] = W, c[55] = LW) : LW = c[55], LW;
|
|
27451
27467
|
});
|
|
27452
27468
|
RangeSlider.displayName = Root.displayName;
|
|
27453
27469
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -27498,14 +27514,14 @@ ${c}
|
|
|
27498
27514
|
}, q = (e2) => {
|
|
27499
27515
|
h && l(e2);
|
|
27500
27516
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27501
|
-
let
|
|
27502
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
27517
|
+
let kW, Z;
|
|
27518
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (kW = () => {
|
|
27503
27519
|
h && !dequal(T, u) && l(T);
|
|
27504
|
-
},
|
|
27520
|
+
}, Z = () => {
|
|
27505
27521
|
h && !dequal(T, u) && l(T);
|
|
27506
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
27507
|
-
let
|
|
27508
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !==
|
|
27522
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = kW, r[19] = Z) : (kW = r[18], Z = r[19]);
|
|
27523
|
+
let AW;
|
|
27524
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== kW || r[31] !== Z || r[32] !== b ? (AW = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
27509
27525
|
id: S,
|
|
27510
27526
|
className: W,
|
|
27511
27527
|
value: T,
|
|
@@ -27516,36 +27532,36 @@ ${c}
|
|
|
27516
27532
|
disabled: y,
|
|
27517
27533
|
onValueChange: G,
|
|
27518
27534
|
onValueCommit: q,
|
|
27519
|
-
onPointerUp:
|
|
27520
|
-
onMouseUp:
|
|
27535
|
+
onPointerUp: kW,
|
|
27536
|
+
onMouseUp: Z,
|
|
27521
27537
|
valueMap: b
|
|
27522
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
27523
|
-
let
|
|
27524
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
27538
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = kW, r[31] = Z, r[32] = b, r[33] = AW) : AW = r[33];
|
|
27539
|
+
let jW;
|
|
27540
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (jW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
27525
27541
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
27526
27542
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
27527
27543
|
locale: w
|
|
27528
27544
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
27529
27545
|
locale: w
|
|
27530
27546
|
})}`
|
|
27531
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
27532
|
-
let
|
|
27533
|
-
r[39] !==
|
|
27547
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = jW) : jW = r[38];
|
|
27548
|
+
let MW;
|
|
27549
|
+
r[39] !== AW || r[40] !== jW || r[41] !== B ? (MW = (0, import_jsx_runtime.jsxs)("div", {
|
|
27534
27550
|
className: B,
|
|
27535
27551
|
children: [
|
|
27536
|
-
|
|
27537
|
-
|
|
27552
|
+
AW,
|
|
27553
|
+
jW
|
|
27538
27554
|
]
|
|
27539
|
-
}), r[39] =
|
|
27540
|
-
let
|
|
27541
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
27555
|
+
}), r[39] = AW, r[40] = jW, r[41] = B, r[42] = MW) : MW = r[42];
|
|
27556
|
+
let NW;
|
|
27557
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== MW || r[47] !== M || r[48] !== L ? (NW = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
27542
27558
|
label: c,
|
|
27543
27559
|
id: S,
|
|
27544
27560
|
align: M,
|
|
27545
27561
|
className: L,
|
|
27546
27562
|
fullWidth: v,
|
|
27547
|
-
children:
|
|
27548
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
27563
|
+
children: MW
|
|
27564
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = MW, r[47] = M, r[48] = L, r[49] = NW) : NW = r[49], NW;
|
|
27549
27565
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
27550
27566
|
r.exports = u;
|
|
27551
27567
|
var c = {
|
|
@@ -28251,7 +28267,7 @@ ${c}
|
|
|
28251
28267
|
return true;
|
|
28252
28268
|
}
|
|
28253
28269
|
}
|
|
28254
|
-
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-
|
|
28270
|
+
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-DzyyM9fc.js")), VegaPlugin = class {
|
|
28255
28271
|
constructor() {
|
|
28256
28272
|
__publicField(this, "tagName", "marimo-vega");
|
|
28257
28273
|
__publicField(this, "validator", object({
|
|
@@ -28447,7 +28463,7 @@ ${c}
|
|
|
28447
28463
|
m
|
|
28448
28464
|
]
|
|
28449
28465
|
});
|
|
28450
|
-
}, LazyImageComparisonComponent = import_react.lazy(() => import("./ImageComparisonComponent-
|
|
28466
|
+
}, LazyImageComparisonComponent = import_react.lazy(() => import("./ImageComparisonComponent-CHrI72em.js")), ImageComparisonPlugin = class {
|
|
28451
28467
|
constructor() {
|
|
28452
28468
|
__publicField(this, "tagName", "marimo-image-comparison");
|
|
28453
28469
|
__publicField(this, "validator", object({
|
|
@@ -28581,7 +28597,7 @@ ${c}
|
|
|
28581
28597
|
themeVariables: e.data.theme_variables
|
|
28582
28598
|
});
|
|
28583
28599
|
}
|
|
28584
|
-
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-
|
|
28600
|
+
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-BYqXy_NE.js").then(async (m) => {
|
|
28585
28601
|
await m.__tla;
|
|
28586
28602
|
return m;
|
|
28587
28603
|
})), import_compiler_runtime$22 = require_compiler_runtime();
|
|
@@ -30836,7 +30852,7 @@ ${c}
|
|
|
30836
30852
|
areRegExpsEqual: H,
|
|
30837
30853
|
areSetsEqual: W,
|
|
30838
30854
|
createIsNestedEqual: r2
|
|
30839
|
-
}),
|
|
30855
|
+
}), kW = Object.freeze({
|
|
30840
30856
|
areArraysEqual: O,
|
|
30841
30857
|
areDatesEqual: j,
|
|
30842
30858
|
areMapsEqual: I,
|
|
@@ -30844,40 +30860,40 @@ ${c}
|
|
|
30844
30860
|
areRegExpsEqual: H,
|
|
30845
30861
|
areSetsEqual: G,
|
|
30846
30862
|
createIsNestedEqual: r2
|
|
30847
|
-
}),
|
|
30848
|
-
function
|
|
30849
|
-
return
|
|
30863
|
+
}), Z = T(q);
|
|
30864
|
+
function AW(e3, r3) {
|
|
30865
|
+
return Z(e3, r3, void 0);
|
|
30850
30866
|
}
|
|
30851
|
-
var
|
|
30867
|
+
var jW = T(l(q, {
|
|
30852
30868
|
createIsNestedEqual: function() {
|
|
30853
30869
|
return f;
|
|
30854
30870
|
}
|
|
30855
30871
|
}));
|
|
30856
|
-
function
|
|
30857
|
-
return
|
|
30872
|
+
function MW(e3, r3) {
|
|
30873
|
+
return jW(e3, r3, void 0);
|
|
30858
30874
|
}
|
|
30859
|
-
var
|
|
30860
|
-
function
|
|
30861
|
-
return
|
|
30875
|
+
var NW = T(kW);
|
|
30876
|
+
function PW(e3, r3) {
|
|
30877
|
+
return NW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30862
30878
|
}
|
|
30863
|
-
var
|
|
30879
|
+
var FW = T(l(kW, {
|
|
30864
30880
|
createIsNestedEqual: function() {
|
|
30865
30881
|
return f;
|
|
30866
30882
|
}
|
|
30867
30883
|
}));
|
|
30868
|
-
function
|
|
30869
|
-
return
|
|
30884
|
+
function IW(e3, r3) {
|
|
30885
|
+
return FW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30870
30886
|
}
|
|
30871
|
-
function
|
|
30887
|
+
function LW(e3) {
|
|
30872
30888
|
return T(l(q, e3(q)));
|
|
30873
30889
|
}
|
|
30874
|
-
function
|
|
30875
|
-
var r3 = T(l(
|
|
30890
|
+
function RW(e3) {
|
|
30891
|
+
var r3 = T(l(kW, e3(kW)));
|
|
30876
30892
|
return (function(e4, c2, l2) {
|
|
30877
30893
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
30878
30894
|
});
|
|
30879
30895
|
}
|
|
30880
|
-
e2.circularDeepEqual =
|
|
30896
|
+
e2.circularDeepEqual = PW, e2.circularShallowEqual = IW, e2.createCustomCircularEqual = RW, e2.createCustomEqual = LW, e2.deepEqual = AW, e2.sameValueZeroEqual = f, e2.shallowEqual = MW, Object.defineProperty(e2, "__esModule", {
|
|
30881
30897
|
value: true
|
|
30882
30898
|
});
|
|
30883
30899
|
}));
|
|
@@ -30903,7 +30919,7 @@ ${c}
|
|
|
30903
30919
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
30904
30920
|
Object.defineProperty(e, "__esModule", {
|
|
30905
30921
|
value: true
|
|
30906
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
30922
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = WW, 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 = IW, e.setTopLeft = RW, e.setTransform = LW, e.sortLayoutItems = zW, e.sortLayoutItemsByColRow = VW, e.sortLayoutItemsByRowCol = BW, e.synchronizeLayoutWithChildren = HW, e.validateLayout = UW, e.withLayoutItem = v;
|
|
30907
30923
|
var r = require_fast_equals(), c = l(require_react());
|
|
30908
30924
|
function l(e2) {
|
|
30909
30925
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -31008,7 +31024,7 @@ ${c}
|
|
|
31008
31024
|
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);
|
|
31009
31025
|
}
|
|
31010
31026
|
function T(e2, r2, c2, l2) {
|
|
31011
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
31027
|
+
let u2 = B(e2), d2 = h(u2), f2 = zW(e2, r2), p2 = Array(e2.length);
|
|
31012
31028
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
31013
31029
|
let h3 = y(f2[m2]);
|
|
31014
31030
|
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;
|
|
@@ -31066,7 +31082,7 @@ ${c}
|
|
|
31066
31082
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
31067
31083
|
let h2 = r2.x, _2 = r2.y;
|
|
31068
31084
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
31069
|
-
let v2 =
|
|
31085
|
+
let v2 = zW(e2, f2);
|
|
31070
31086
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
31071
31087
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
31072
31088
|
if (b2 && m2) return g(e2);
|
|
@@ -31100,61 +31116,61 @@ ${c}
|
|
|
31100
31116
|
function G(e2) {
|
|
31101
31117
|
return e2 * 100 + "%";
|
|
31102
31118
|
}
|
|
31103
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
31119
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, kW = (e2, r2, c2) => e2 < 0 ? r2 : c2, Z = (e2) => Math.max(0, e2), AW = (e2) => Math.max(0, e2), jW = (e2, r2, c2) => {
|
|
31104
31120
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
31105
31121
|
return {
|
|
31106
31122
|
left: l2,
|
|
31107
31123
|
width: d2,
|
|
31108
|
-
height:
|
|
31109
|
-
top:
|
|
31124
|
+
height: kW(f2, e2.height, u2),
|
|
31125
|
+
top: AW(f2)
|
|
31110
31126
|
};
|
|
31111
|
-
},
|
|
31127
|
+
}, MW = (e2, r2, c2) => {
|
|
31112
31128
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31113
31129
|
return {
|
|
31114
31130
|
top: l2,
|
|
31115
31131
|
height: d2,
|
|
31116
31132
|
width: q(e2.left, e2.width, f2, c2),
|
|
31117
|
-
left:
|
|
31133
|
+
left: Z(u2)
|
|
31118
31134
|
};
|
|
31119
|
-
},
|
|
31135
|
+
}, NW = (e2, r2, c2) => {
|
|
31120
31136
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
31121
31137
|
return {
|
|
31122
31138
|
height: u2,
|
|
31123
31139
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
31124
|
-
top:
|
|
31125
|
-
left:
|
|
31140
|
+
top: AW(l2),
|
|
31141
|
+
left: Z(f2)
|
|
31126
31142
|
};
|
|
31127
|
-
},
|
|
31143
|
+
}, PW = (e2, r2, c2) => {
|
|
31128
31144
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31129
31145
|
return {
|
|
31130
31146
|
width: f2,
|
|
31131
31147
|
left: u2,
|
|
31132
|
-
height:
|
|
31133
|
-
top:
|
|
31148
|
+
height: kW(l2, e2.height, d2),
|
|
31149
|
+
top: AW(l2)
|
|
31134
31150
|
};
|
|
31135
|
-
},
|
|
31136
|
-
n:
|
|
31151
|
+
}, FW = {
|
|
31152
|
+
n: jW,
|
|
31137
31153
|
ne: function() {
|
|
31138
|
-
return
|
|
31154
|
+
return jW(arguments.length <= 0 ? void 0 : arguments[0], MW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31139
31155
|
},
|
|
31140
|
-
e:
|
|
31156
|
+
e: MW,
|
|
31141
31157
|
se: function() {
|
|
31142
|
-
return
|
|
31158
|
+
return PW(arguments.length <= 0 ? void 0 : arguments[0], MW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31143
31159
|
},
|
|
31144
|
-
s:
|
|
31160
|
+
s: PW,
|
|
31145
31161
|
sw: function() {
|
|
31146
|
-
return
|
|
31162
|
+
return PW(arguments.length <= 0 ? void 0 : arguments[0], NW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31147
31163
|
},
|
|
31148
|
-
w:
|
|
31164
|
+
w: NW,
|
|
31149
31165
|
nw: function() {
|
|
31150
|
-
return
|
|
31166
|
+
return jW(arguments.length <= 0 ? void 0 : arguments[0], NW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31151
31167
|
}
|
|
31152
31168
|
};
|
|
31153
|
-
function
|
|
31154
|
-
let u2 =
|
|
31169
|
+
function IW(e2, r2, c2, l2) {
|
|
31170
|
+
let u2 = FW[e2];
|
|
31155
31171
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
31156
31172
|
}
|
|
31157
|
-
function
|
|
31173
|
+
function LW(e2) {
|
|
31158
31174
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
31159
31175
|
return {
|
|
31160
31176
|
transform: d2,
|
|
@@ -31167,7 +31183,7 @@ ${c}
|
|
|
31167
31183
|
position: "absolute"
|
|
31168
31184
|
};
|
|
31169
31185
|
}
|
|
31170
|
-
function
|
|
31186
|
+
function RW(e2) {
|
|
31171
31187
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
31172
31188
|
return {
|
|
31173
31189
|
top: `${r2}px`,
|
|
@@ -31177,20 +31193,20 @@ ${c}
|
|
|
31177
31193
|
position: "absolute"
|
|
31178
31194
|
};
|
|
31179
31195
|
}
|
|
31180
|
-
function
|
|
31181
|
-
return r2 === "horizontal" ?
|
|
31196
|
+
function zW(e2, r2) {
|
|
31197
|
+
return r2 === "horizontal" ? VW(e2) : r2 === "vertical" ? BW(e2) : e2;
|
|
31182
31198
|
}
|
|
31183
|
-
function
|
|
31199
|
+
function BW(e2) {
|
|
31184
31200
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31185
31201
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
31186
31202
|
});
|
|
31187
31203
|
}
|
|
31188
|
-
function
|
|
31204
|
+
function VW(e2) {
|
|
31189
31205
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31190
31206
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
31191
31207
|
});
|
|
31192
31208
|
}
|
|
31193
|
-
function
|
|
31209
|
+
function HW(e2, r2, l2, u2, f2) {
|
|
31194
31210
|
e2 || (e2 = []);
|
|
31195
31211
|
let p2 = [];
|
|
31196
31212
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -31211,7 +31227,7 @@ ${c}
|
|
|
31211
31227
|
});
|
|
31212
31228
|
return f2 ? m2 : T(m2, u2, l2);
|
|
31213
31229
|
}
|
|
31214
|
-
function
|
|
31230
|
+
function UW(e2) {
|
|
31215
31231
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
31216
31232
|
"x",
|
|
31217
31233
|
"y",
|
|
@@ -31228,7 +31244,7 @@ ${c}
|
|
|
31228
31244
|
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})`);
|
|
31229
31245
|
}
|
|
31230
31246
|
}
|
|
31231
|
-
function
|
|
31247
|
+
function WW(e2) {
|
|
31232
31248
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
31233
31249
|
return r2 === false ? null : c2;
|
|
31234
31250
|
}
|
|
@@ -34033,7 +34049,7 @@ ${c}
|
|
|
34033
34049
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
34034
34050
|
let E = useIsDragging(), O, j;
|
|
34035
34051
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
34036
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
34052
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, kW, Z, AW, jW, MW, NW, PW, FW, IW, LW, RW, zW, BW, VW, HW, UW, WW;
|
|
34037
34053
|
if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== h || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
|
|
34038
34054
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
34039
34055
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -34052,23 +34068,23 @@ ${c}
|
|
|
34052
34068
|
});
|
|
34053
34069
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
34054
34070
|
let y2 = v2;
|
|
34055
|
-
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,
|
|
34071
|
+
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, VW = "lg", r[58] === c.cells ? HW = r[59] : (HW = {
|
|
34056
34072
|
lg: c.cells
|
|
34057
|
-
}, r[58] = c.cells, r[59] =
|
|
34073
|
+
}, r[58] = c.cells, r[59] = HW), UW = L, WW = S, R = false;
|
|
34058
34074
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
34059
34075
|
r[60] !== b2 || r[61] !== w2 || r[62] !== T2 ? (z = cn("w-full mx-auto bg-background flex-1 min-h-full", b2, w2, T2), r[60] = b2, r[61] = w2, r[62] = T2, r[63] = z) : z = r[63], r[64] === f ? B = r[65] : (B = f ? [
|
|
34060
34076
|
20,
|
|
34061
34077
|
20
|
|
34062
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
34078
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, kW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (Z = (e3) => {
|
|
34063
34079
|
f || l({
|
|
34064
34080
|
...c,
|
|
34065
34081
|
cells: e3
|
|
34066
34082
|
});
|
|
34067
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
34083
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ? AW = r[71] : (AW = g ? {
|
|
34068
34084
|
i: g.i,
|
|
34069
34085
|
w: g.w || 2,
|
|
34070
34086
|
h: g.h || 2
|
|
34071
|
-
} : void 0, r[70] = g, r[71] =
|
|
34087
|
+
} : void 0, r[70] = g, r[71] = AW), r[72] !== O || r[73] !== c || r[74] !== l ? (jW = (e3, r2, u2) => {
|
|
34072
34088
|
O.onDragStop(), r2 && l({
|
|
34073
34089
|
...c,
|
|
34074
34090
|
cells: [
|
|
@@ -34076,15 +34092,15 @@ ${c}
|
|
|
34076
34092
|
r2
|
|
34077
34093
|
]
|
|
34078
34094
|
});
|
|
34079
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
34095
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = jW) : jW = r[75], r[76] === O ? (MW = r[77], NW = r[78], PW = r[79]) : (MW = (e3, r2, c2, l2, u2) => {
|
|
34080
34096
|
O.onDragStart(u2);
|
|
34081
|
-
},
|
|
34097
|
+
}, NW = (e3, r2, c2, l2, u2) => {
|
|
34082
34098
|
O.onDragMove(u2);
|
|
34083
|
-
},
|
|
34099
|
+
}, PW = () => {
|
|
34084
34100
|
O.onDragStop();
|
|
34085
|
-
}, r[76] = O, r[77] =
|
|
34101
|
+
}, r[76] = O, r[77] = MW, r[78] = NW, r[79] = PW), FW = _temp3$2, IW = M, LW = M, RW = M, zW = M ? `.${DRAG_HANDLE}` : "noop";
|
|
34086
34102
|
let E2;
|
|
34087
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
34103
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), BW = u.filter(E2).map((r2) => {
|
|
34088
34104
|
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, {
|
|
34089
34105
|
code: r2.code,
|
|
34090
34106
|
mode: d,
|
|
@@ -34114,14 +34130,14 @@ ${c}
|
|
|
34114
34130
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
34115
34131
|
children: m3
|
|
34116
34132
|
}, r2.id);
|
|
34117
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
34118
|
-
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29],
|
|
34119
|
-
let
|
|
34120
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !==
|
|
34121
|
-
breakpoint:
|
|
34122
|
-
layouts:
|
|
34123
|
-
style:
|
|
34124
|
-
cols:
|
|
34133
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = kW, r[31] = Z, r[32] = AW, r[33] = jW, r[34] = MW, r[35] = NW, r[36] = PW, r[37] = FW, r[38] = IW, r[39] = LW, r[40] = RW, r[41] = zW, r[42] = BW, r[43] = VW, r[44] = HW, r[45] = UW, r[46] = WW;
|
|
34134
|
+
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], kW = r[30], Z = r[31], AW = r[32], jW = r[33], MW = r[34], NW = r[35], PW = r[36], FW = r[37], IW = r[38], LW = r[39], RW = r[40], zW = r[41], BW = r[42], VW = r[43], HW = r[44], UW = r[45], WW = r[46];
|
|
34135
|
+
let GW;
|
|
34136
|
+
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== kW || r[91] !== Z || r[92] !== AW || r[93] !== jW || r[94] !== MW || r[95] !== NW || r[96] !== PW || r[97] !== FW || r[98] !== IW || r[99] !== LW || r[100] !== RW || r[101] !== zW || r[102] !== BW || r[103] !== VW || r[104] !== HW || r[105] !== UW || r[106] !== WW ? (GW = (0, import_jsx_runtime.jsx)(I, {
|
|
34137
|
+
breakpoint: VW,
|
|
34138
|
+
layouts: HW,
|
|
34139
|
+
style: UW,
|
|
34140
|
+
cols: WW,
|
|
34125
34141
|
allowOverlap: R,
|
|
34126
34142
|
className: z,
|
|
34127
34143
|
containerPadding: B,
|
|
@@ -34129,23 +34145,23 @@ ${c}
|
|
|
34129
34145
|
isBounded: W,
|
|
34130
34146
|
compactType: G,
|
|
34131
34147
|
preventCollision: q,
|
|
34132
|
-
rowHeight:
|
|
34133
|
-
onLayoutChange:
|
|
34134
|
-
droppingItem:
|
|
34135
|
-
onDrop:
|
|
34136
|
-
onDragStart:
|
|
34137
|
-
onDrag:
|
|
34138
|
-
onDragStop:
|
|
34139
|
-
onResizeStop:
|
|
34140
|
-
isDraggable:
|
|
34141
|
-
isDroppable:
|
|
34142
|
-
isResizable:
|
|
34143
|
-
draggableHandle:
|
|
34144
|
-
children:
|
|
34145
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] =
|
|
34146
|
-
let
|
|
34147
|
-
if (r[108] !== u || r[109] !==
|
|
34148
|
-
|
|
34148
|
+
rowHeight: kW,
|
|
34149
|
+
onLayoutChange: Z,
|
|
34150
|
+
droppingItem: AW,
|
|
34151
|
+
onDrop: jW,
|
|
34152
|
+
onDragStart: MW,
|
|
34153
|
+
onDrag: NW,
|
|
34154
|
+
onDragStop: PW,
|
|
34155
|
+
onResizeStop: FW,
|
|
34156
|
+
isDraggable: IW,
|
|
34157
|
+
isDroppable: LW,
|
|
34158
|
+
isResizable: RW,
|
|
34159
|
+
draggableHandle: zW,
|
|
34160
|
+
children: BW
|
|
34161
|
+
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = kW, r[91] = Z, r[92] = AW, r[93] = jW, r[94] = MW, r[95] = NW, r[96] = PW, r[97] = FW, r[98] = IW, r[99] = LW, r[100] = RW, r[101] = zW, r[102] = BW, r[103] = VW, r[104] = HW, r[105] = UW, r[106] = WW, r[107] = GW) : GW = r[107];
|
|
34162
|
+
let KW = GW, qW, JW, YW, XW, ZW, QW, $W;
|
|
34163
|
+
if (r[108] !== u || r[109] !== KW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
34164
|
+
$W = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
34149
34165
|
bb0: {
|
|
34150
34166
|
let e2;
|
|
34151
34167
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -34153,14 +34169,14 @@ ${c}
|
|
|
34153
34169
|
if (f) {
|
|
34154
34170
|
if (c.bordered) {
|
|
34155
34171
|
let e4;
|
|
34156
|
-
r[127] !==
|
|
34172
|
+
r[127] !== KW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
34157
34173
|
className: "flex flex-1 flex-col items-center",
|
|
34158
34174
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
34159
34175
|
style: L,
|
|
34160
34176
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
34161
|
-
children:
|
|
34177
|
+
children: KW
|
|
34162
34178
|
})
|
|
34163
|
-
}), r[127] =
|
|
34179
|
+
}), r[127] = KW, r[128] = L, r[129] = e4) : e4 = r[129], KW = e4;
|
|
34164
34180
|
}
|
|
34165
34181
|
let e3 = m2.filter(_temp4$2), l2;
|
|
34166
34182
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -34172,9 +34188,9 @@ ${c}
|
|
|
34172
34188
|
stale: outputIsStale(e4, false),
|
|
34173
34189
|
isScrollable: false,
|
|
34174
34190
|
hidden: false
|
|
34175
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
34191
|
+
}, e4.id), r[130] = d, r[131] = l2), $W = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34176
34192
|
children: [
|
|
34177
|
-
|
|
34193
|
+
KW,
|
|
34178
34194
|
(0, import_jsx_runtime.jsx)("div", {
|
|
34179
34195
|
className: "hidden",
|
|
34180
34196
|
children: e3.map(l2)
|
|
@@ -34185,31 +34201,31 @@ ${c}
|
|
|
34185
34201
|
}
|
|
34186
34202
|
if (c.bordered) {
|
|
34187
34203
|
let e3;
|
|
34188
|
-
r[132] ===
|
|
34204
|
+
r[132] === KW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
34189
34205
|
className: "h-full overflow-auto",
|
|
34190
|
-
children:
|
|
34191
|
-
}), r[132] =
|
|
34206
|
+
children: KW
|
|
34207
|
+
}), r[132] = KW, r[133] = e3);
|
|
34192
34208
|
let c2;
|
|
34193
34209
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
34194
34210
|
style: L,
|
|
34195
34211
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
34196
34212
|
children: e3
|
|
34197
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
34213
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], KW = c2;
|
|
34198
34214
|
}
|
|
34199
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
34215
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (QW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
34200
34216
|
layout: c,
|
|
34201
34217
|
setLayout: l,
|
|
34202
34218
|
isLocked: v,
|
|
34203
34219
|
setIsLocked: y
|
|
34204
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
34220
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = QW) : QW = r[140];
|
|
34205
34221
|
let g2;
|
|
34206
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34222
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (XW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = XW, r[142] = g2) : (XW = r[141], g2 = r[142]), r[143] === KW ? ZW = r[144] : (ZW = (0, import_jsx_runtime.jsx)("div", {
|
|
34207
34223
|
className: g2,
|
|
34208
|
-
children:
|
|
34209
|
-
}), r[143] =
|
|
34224
|
+
children: KW
|
|
34225
|
+
}), r[143] = KW, r[144] = ZW), qW = "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") ? (JW = (0, import_jsx_runtime.jsx)("div", {
|
|
34210
34226
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
34211
34227
|
children: "Outputs"
|
|
34212
|
-
}), r[145] =
|
|
34228
|
+
}), r[145] = JW) : JW = r[145];
|
|
34213
34229
|
let b2;
|
|
34214
34230
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
34215
34231
|
draggable: true,
|
|
@@ -34235,34 +34251,34 @@ ${c}
|
|
|
34235
34251
|
stale: outputIsStale(e3, false),
|
|
34236
34252
|
hidden: false
|
|
34237
34253
|
})
|
|
34238
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
34239
|
-
}
|
|
34240
|
-
r[108] = u, r[109] =
|
|
34241
|
-
} else
|
|
34242
|
-
if (
|
|
34243
|
-
let
|
|
34244
|
-
r[150] !==
|
|
34245
|
-
className:
|
|
34254
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], YW = m2.map(b2);
|
|
34255
|
+
}
|
|
34256
|
+
r[108] = u, r[109] = KW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = qW, r[118] = JW, r[119] = YW, r[120] = XW, r[121] = ZW, r[122] = QW, r[123] = $W, r[124] = KW;
|
|
34257
|
+
} else qW = r[117], JW = r[118], YW = r[119], XW = r[120], ZW = r[121], QW = r[122], $W = r[123], KW = r[124];
|
|
34258
|
+
if ($W !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return $W;
|
|
34259
|
+
let eG;
|
|
34260
|
+
r[150] !== qW || r[151] !== JW || r[152] !== YW ? (eG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34261
|
+
className: qW,
|
|
34246
34262
|
children: [
|
|
34247
|
-
|
|
34248
|
-
|
|
34263
|
+
JW,
|
|
34264
|
+
YW
|
|
34249
34265
|
]
|
|
34250
|
-
}), r[150] =
|
|
34251
|
-
let
|
|
34252
|
-
r[154] !==
|
|
34253
|
-
className:
|
|
34266
|
+
}), r[150] = qW, r[151] = JW, r[152] = YW, r[153] = eG) : eG = r[153];
|
|
34267
|
+
let tG;
|
|
34268
|
+
r[154] !== XW || r[155] !== ZW || r[156] !== eG ? (tG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34269
|
+
className: XW,
|
|
34254
34270
|
children: [
|
|
34255
|
-
|
|
34256
|
-
|
|
34271
|
+
ZW,
|
|
34272
|
+
eG
|
|
34257
34273
|
]
|
|
34258
|
-
}), r[154] =
|
|
34259
|
-
let
|
|
34260
|
-
return r[158] !==
|
|
34274
|
+
}), r[154] = XW, r[155] = ZW, r[156] = eG, r[157] = tG) : tG = r[157];
|
|
34275
|
+
let nG;
|
|
34276
|
+
return r[158] !== QW || r[159] !== tG ? (nG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34261
34277
|
children: [
|
|
34262
|
-
|
|
34263
|
-
|
|
34278
|
+
QW,
|
|
34279
|
+
tG
|
|
34264
34280
|
]
|
|
34265
|
-
}), r[158] =
|
|
34281
|
+
}), r[158] = QW, r[159] = tG, r[160] = nG) : nG = r[160], nG;
|
|
34266
34282
|
};
|
|
34267
34283
|
var GridCell = (0, import_react.memo)((e) => {
|
|
34268
34284
|
let r = (0, import_compiler_runtime$13.c)(21), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _, stale: v } = e, y;
|
|
@@ -34563,25 +34579,25 @@ ${c}
|
|
|
34563
34579
|
G
|
|
34564
34580
|
]
|
|
34565
34581
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
34566
|
-
let
|
|
34567
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34582
|
+
let kW;
|
|
34583
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (kW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
34568
34584
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
34569
|
-
}), r[35] =
|
|
34570
|
-
let
|
|
34571
|
-
r[36] === l ?
|
|
34585
|
+
}), r[35] = kW) : kW = r[35];
|
|
34586
|
+
let Z;
|
|
34587
|
+
r[36] === l ? Z = r[37] : (Z = (0, import_jsx_runtime.jsx)(X, {
|
|
34572
34588
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34573
34589
|
onClick: () => l()
|
|
34574
|
-
}), r[36] = l, r[37] =
|
|
34575
|
-
let
|
|
34576
|
-
return r[38] !== I || r[39] !== q || r[40] !==
|
|
34590
|
+
}), r[36] = l, r[37] = Z);
|
|
34591
|
+
let AW;
|
|
34592
|
+
return r[38] !== I || r[39] !== q || r[40] !== Z || r[41] !== w ? (AW = (0, import_jsx_runtime.jsxs)("div", {
|
|
34577
34593
|
className: w,
|
|
34578
34594
|
children: [
|
|
34579
34595
|
I,
|
|
34580
34596
|
q,
|
|
34581
|
-
|
|
34582
|
-
|
|
34597
|
+
kW,
|
|
34598
|
+
Z
|
|
34583
34599
|
]
|
|
34584
|
-
}), r[38] = I, r[39] = q, r[40] =
|
|
34600
|
+
}), r[38] = I, r[39] = q, r[40] = Z, r[41] = w, r[42] = AW) : AW = r[42], AW;
|
|
34585
34601
|
};
|
|
34586
34602
|
function isSidebarCell(e) {
|
|
34587
34603
|
var _a5;
|
|
@@ -36585,31 +36601,31 @@ ${c}
|
|
|
36585
36601
|
}, [
|
|
36586
36602
|
T,
|
|
36587
36603
|
M
|
|
36588
|
-
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r),
|
|
36604
|
+
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r), kW = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
36589
36605
|
j
|
|
36590
|
-
]),
|
|
36606
|
+
]), Z = useMeasuringConfiguration(p), { droppableRects: AW, measureDroppableContainers: jW, measuringScheduled: MW } = useDroppableMeasuring(kW, {
|
|
36591
36607
|
dragging: w,
|
|
36592
36608
|
dependencies: [
|
|
36593
36609
|
O.x,
|
|
36594
36610
|
O.y
|
|
36595
36611
|
],
|
|
36596
|
-
config:
|
|
36597
|
-
}),
|
|
36612
|
+
config: Z.droppable
|
|
36613
|
+
}), NW = useCachedNode(E, T), PW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36598
36614
|
H
|
|
36599
|
-
]),
|
|
36615
|
+
]), FW = fG(), IW = useInitialRect(NW, Z.draggable.measure);
|
|
36600
36616
|
useLayoutShiftScrollCompensation({
|
|
36601
36617
|
activeNode: T == null ? null : E.get(T),
|
|
36602
|
-
config:
|
|
36603
|
-
initialRect:
|
|
36604
|
-
measure:
|
|
36618
|
+
config: FW.layoutShiftCompensation,
|
|
36619
|
+
initialRect: IW,
|
|
36620
|
+
measure: Z.draggable.measure
|
|
36605
36621
|
});
|
|
36606
|
-
let
|
|
36622
|
+
let LW = useRect(NW, Z.draggable.measure, IW), RW = useRect(NW ? NW.parentElement : null), zW = (0, import_react.useRef)({
|
|
36607
36623
|
activatorEvent: null,
|
|
36608
36624
|
active: null,
|
|
36609
|
-
activeNode:
|
|
36625
|
+
activeNode: NW,
|
|
36610
36626
|
collisionRect: null,
|
|
36611
36627
|
collisions: null,
|
|
36612
|
-
droppableRects:
|
|
36628
|
+
droppableRects: AW,
|
|
36613
36629
|
draggableNodes: E,
|
|
36614
36630
|
draggingNode: null,
|
|
36615
36631
|
draggingNodeRect: null,
|
|
@@ -36617,45 +36633,45 @@ ${c}
|
|
|
36617
36633
|
over: null,
|
|
36618
36634
|
scrollableAncestors: [],
|
|
36619
36635
|
scrollAdjustedTranslate: null
|
|
36620
|
-
}),
|
|
36621
|
-
measure:
|
|
36622
|
-
}),
|
|
36636
|
+
}), BW = j.getNodeFor((_a5 = zW.current.over) == null ? void 0 : _a5.id), VW = useDragOverlayMeasuring({
|
|
36637
|
+
measure: Z.dragOverlay.measure
|
|
36638
|
+
}), HW = VW.nodeRef.current ?? NW, UW = w ? VW.rect ?? LW : null, WW = !!(VW.nodeRef.current && VW.rect), GW = useRectDelta(WW ? null : LW), KW = useWindowRect(HW ? getWindow(HW) : null), qW = useScrollableAncestors(w ? BW ?? NW : null), JW = useRects(qW), YW = applyModifiers(m, {
|
|
36623
36639
|
transform: {
|
|
36624
|
-
x: O.x -
|
|
36625
|
-
y: O.y -
|
|
36640
|
+
x: O.x - GW.x,
|
|
36641
|
+
y: O.y - GW.y,
|
|
36626
36642
|
scaleX: 1,
|
|
36627
36643
|
scaleY: 1
|
|
36628
36644
|
},
|
|
36629
36645
|
activatorEvent: H,
|
|
36630
36646
|
active: L,
|
|
36631
|
-
activeNodeRect:
|
|
36632
|
-
containerNodeRect:
|
|
36633
|
-
draggingNodeRect:
|
|
36634
|
-
over:
|
|
36635
|
-
overlayNodeRect:
|
|
36636
|
-
scrollableAncestors:
|
|
36637
|
-
scrollableAncestorRects:
|
|
36638
|
-
windowRect:
|
|
36639
|
-
}),
|
|
36640
|
-
|
|
36641
|
-
]),
|
|
36647
|
+
activeNodeRect: LW,
|
|
36648
|
+
containerNodeRect: RW,
|
|
36649
|
+
draggingNodeRect: UW,
|
|
36650
|
+
over: zW.current.over,
|
|
36651
|
+
overlayNodeRect: VW.rect,
|
|
36652
|
+
scrollableAncestors: qW,
|
|
36653
|
+
scrollableAncestorRects: JW,
|
|
36654
|
+
windowRect: KW
|
|
36655
|
+
}), XW = PW ? add(PW, O) : null, ZW = useScrollOffsets(qW), QW = useScrollOffsetsDelta(ZW), $W = useScrollOffsetsDelta(ZW, [
|
|
36656
|
+
LW
|
|
36657
|
+
]), eG = add(YW, QW), tG = UW ? getAdjustedRect(UW, YW) : null, nG = L && tG ? f({
|
|
36642
36658
|
active: L,
|
|
36643
|
-
collisionRect:
|
|
36644
|
-
droppableRects:
|
|
36645
|
-
droppableContainers:
|
|
36646
|
-
pointerCoordinates:
|
|
36647
|
-
}) : null,
|
|
36659
|
+
collisionRect: tG,
|
|
36660
|
+
droppableRects: AW,
|
|
36661
|
+
droppableContainers: kW,
|
|
36662
|
+
pointerCoordinates: XW
|
|
36663
|
+
}) : null, rG = getFirstCollision(nG, "id"), [iG, aG] = (0, import_react.useState)(null), oG = adjustScale(WW ? YW : add(YW, $W), (iG == null ? void 0 : iG.rect) ?? null, LW), sG = (0, import_react.useRef)(null), cG = (0, import_react.useCallback)((e2, r2) => {
|
|
36648
36664
|
let { sensor: c2, options: l2 } = r2;
|
|
36649
36665
|
if (R.current == null) return;
|
|
36650
36666
|
let u2 = E.get(R.current);
|
|
36651
36667
|
if (!u2) return;
|
|
36652
36668
|
let d2 = e2.nativeEvent;
|
|
36653
|
-
|
|
36669
|
+
sG.current = new c2({
|
|
36654
36670
|
active: R.current,
|
|
36655
36671
|
activeNode: u2,
|
|
36656
36672
|
event: d2,
|
|
36657
36673
|
options: l2,
|
|
36658
|
-
context:
|
|
36674
|
+
context: zW,
|
|
36659
36675
|
onAbort(e3) {
|
|
36660
36676
|
if (!E.get(e3)) return;
|
|
36661
36677
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -36700,7 +36716,7 @@ ${c}
|
|
|
36700
36716
|
}), v({
|
|
36701
36717
|
type: "onDragStart",
|
|
36702
36718
|
event: u3
|
|
36703
|
-
}), B(
|
|
36719
|
+
}), B(sG.current), W(d2);
|
|
36704
36720
|
});
|
|
36705
36721
|
},
|
|
36706
36722
|
onMove(e3) {
|
|
@@ -36714,7 +36730,7 @@ ${c}
|
|
|
36714
36730
|
});
|
|
36715
36731
|
function f2(e3) {
|
|
36716
36732
|
return async function() {
|
|
36717
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
36733
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = zW.current, f3 = null;
|
|
36718
36734
|
if (r3 && u3) {
|
|
36719
36735
|
let { cancelDrop: p2 } = G.current;
|
|
36720
36736
|
f3 = {
|
|
@@ -36728,7 +36744,7 @@ ${c}
|
|
|
36728
36744
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36729
36745
|
_({
|
|
36730
36746
|
type: e3
|
|
36731
|
-
}), S(Status.Uninitialized),
|
|
36747
|
+
}), S(Status.Uninitialized), aG(null), B(null), W(null), sG.current = null;
|
|
36732
36748
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
36733
36749
|
if (f3) {
|
|
36734
36750
|
let e4 = G.current[r4];
|
|
@@ -36742,7 +36758,7 @@ ${c}
|
|
|
36742
36758
|
}
|
|
36743
36759
|
}, [
|
|
36744
36760
|
E
|
|
36745
|
-
]),
|
|
36761
|
+
]), lG = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
36746
36762
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
36747
36763
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
36748
36764
|
let f2 = {
|
|
@@ -36750,26 +36766,26 @@ ${c}
|
|
|
36750
36766
|
};
|
|
36751
36767
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
36752
36768
|
capturedBy: r2.sensor
|
|
36753
|
-
}, R.current = l2,
|
|
36769
|
+
}, R.current = l2, cG(c2, r2));
|
|
36754
36770
|
}, [
|
|
36755
36771
|
E,
|
|
36756
|
-
|
|
36772
|
+
cG
|
|
36757
36773
|
]));
|
|
36758
36774
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
36759
|
-
|
|
36775
|
+
LW && b === Status.Initializing && S(Status.Initialized);
|
|
36760
36776
|
}, [
|
|
36761
|
-
|
|
36777
|
+
LW,
|
|
36762
36778
|
b
|
|
36763
36779
|
]), (0, import_react.useEffect)(() => {
|
|
36764
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
36780
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = zW.current;
|
|
36765
36781
|
if (!r2 || !c2) return;
|
|
36766
36782
|
let d2 = {
|
|
36767
36783
|
active: r2,
|
|
36768
36784
|
activatorEvent: c2,
|
|
36769
36785
|
collisions: l2,
|
|
36770
36786
|
delta: {
|
|
36771
|
-
x:
|
|
36772
|
-
y:
|
|
36787
|
+
x: eG.x,
|
|
36788
|
+
y: eG.y
|
|
36773
36789
|
},
|
|
36774
36790
|
over: u2
|
|
36775
36791
|
};
|
|
@@ -36780,12 +36796,12 @@ ${c}
|
|
|
36780
36796
|
});
|
|
36781
36797
|
});
|
|
36782
36798
|
}, [
|
|
36783
|
-
|
|
36784
|
-
|
|
36799
|
+
eG.x,
|
|
36800
|
+
eG.y
|
|
36785
36801
|
]), (0, import_react.useEffect)(() => {
|
|
36786
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
36802
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = zW.current;
|
|
36787
36803
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
36788
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
36804
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(rG), p2 = f2 && f2.rect.current ? {
|
|
36789
36805
|
id: f2.id,
|
|
36790
36806
|
rect: f2.rect.current,
|
|
36791
36807
|
data: f2.data,
|
|
@@ -36801,127 +36817,127 @@ ${c}
|
|
|
36801
36817
|
over: p2
|
|
36802
36818
|
};
|
|
36803
36819
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36804
|
-
|
|
36820
|
+
aG(p2), d2 == null ? void 0 : d2(m2), v({
|
|
36805
36821
|
type: "onDragOver",
|
|
36806
36822
|
event: m2
|
|
36807
36823
|
});
|
|
36808
36824
|
});
|
|
36809
36825
|
}, [
|
|
36810
|
-
|
|
36826
|
+
rG
|
|
36811
36827
|
]), useIsomorphicLayoutEffect(() => {
|
|
36812
|
-
|
|
36828
|
+
zW.current = {
|
|
36813
36829
|
activatorEvent: H,
|
|
36814
36830
|
active: L,
|
|
36815
|
-
activeNode:
|
|
36816
|
-
collisionRect:
|
|
36817
|
-
collisions:
|
|
36818
|
-
droppableRects:
|
|
36831
|
+
activeNode: NW,
|
|
36832
|
+
collisionRect: tG,
|
|
36833
|
+
collisions: nG,
|
|
36834
|
+
droppableRects: AW,
|
|
36819
36835
|
draggableNodes: E,
|
|
36820
|
-
draggingNode:
|
|
36821
|
-
draggingNodeRect:
|
|
36836
|
+
draggingNode: HW,
|
|
36837
|
+
draggingNodeRect: UW,
|
|
36822
36838
|
droppableContainers: j,
|
|
36823
|
-
over:
|
|
36824
|
-
scrollableAncestors:
|
|
36825
|
-
scrollAdjustedTranslate:
|
|
36839
|
+
over: iG,
|
|
36840
|
+
scrollableAncestors: qW,
|
|
36841
|
+
scrollAdjustedTranslate: eG
|
|
36826
36842
|
}, I.current = {
|
|
36827
|
-
initial:
|
|
36828
|
-
translated:
|
|
36843
|
+
initial: UW,
|
|
36844
|
+
translated: tG
|
|
36829
36845
|
};
|
|
36830
36846
|
}, [
|
|
36831
36847
|
L,
|
|
36832
|
-
|
|
36833
|
-
|
|
36834
|
-
pG,
|
|
36835
|
-
E,
|
|
36836
|
-
eG,
|
|
36848
|
+
NW,
|
|
36849
|
+
nG,
|
|
36837
36850
|
tG,
|
|
36838
|
-
|
|
36851
|
+
E,
|
|
36852
|
+
HW,
|
|
36853
|
+
UW,
|
|
36854
|
+
AW,
|
|
36839
36855
|
j,
|
|
36840
|
-
|
|
36841
|
-
|
|
36842
|
-
|
|
36856
|
+
iG,
|
|
36857
|
+
qW,
|
|
36858
|
+
eG
|
|
36843
36859
|
]), useAutoScroller({
|
|
36844
|
-
...
|
|
36860
|
+
...FW,
|
|
36845
36861
|
delta: O,
|
|
36846
|
-
draggingRect:
|
|
36847
|
-
pointerCoordinates:
|
|
36848
|
-
scrollableAncestors:
|
|
36849
|
-
scrollableAncestorRects:
|
|
36862
|
+
draggingRect: tG,
|
|
36863
|
+
pointerCoordinates: XW,
|
|
36864
|
+
scrollableAncestors: qW,
|
|
36865
|
+
scrollableAncestorRects: JW
|
|
36850
36866
|
});
|
|
36851
|
-
let
|
|
36867
|
+
let uG = (0, import_react.useMemo)(() => ({
|
|
36852
36868
|
active: L,
|
|
36853
|
-
activeNode:
|
|
36854
|
-
activeNodeRect:
|
|
36869
|
+
activeNode: NW,
|
|
36870
|
+
activeNodeRect: LW,
|
|
36855
36871
|
activatorEvent: H,
|
|
36856
|
-
collisions:
|
|
36857
|
-
containerNodeRect:
|
|
36858
|
-
dragOverlay:
|
|
36872
|
+
collisions: nG,
|
|
36873
|
+
containerNodeRect: RW,
|
|
36874
|
+
dragOverlay: VW,
|
|
36859
36875
|
draggableNodes: E,
|
|
36860
36876
|
droppableContainers: j,
|
|
36861
|
-
droppableRects:
|
|
36862
|
-
over:
|
|
36863
|
-
measureDroppableContainers:
|
|
36864
|
-
scrollableAncestors:
|
|
36865
|
-
scrollableAncestorRects:
|
|
36866
|
-
measuringConfiguration:
|
|
36867
|
-
measuringScheduled:
|
|
36868
|
-
windowRect:
|
|
36877
|
+
droppableRects: AW,
|
|
36878
|
+
over: iG,
|
|
36879
|
+
measureDroppableContainers: jW,
|
|
36880
|
+
scrollableAncestors: qW,
|
|
36881
|
+
scrollableAncestorRects: JW,
|
|
36882
|
+
measuringConfiguration: Z,
|
|
36883
|
+
measuringScheduled: MW,
|
|
36884
|
+
windowRect: KW
|
|
36869
36885
|
}), [
|
|
36870
36886
|
L,
|
|
36871
|
-
|
|
36872
|
-
|
|
36887
|
+
NW,
|
|
36888
|
+
LW,
|
|
36873
36889
|
H,
|
|
36874
|
-
|
|
36875
|
-
|
|
36876
|
-
|
|
36890
|
+
nG,
|
|
36891
|
+
RW,
|
|
36892
|
+
VW,
|
|
36877
36893
|
E,
|
|
36878
36894
|
j,
|
|
36895
|
+
AW,
|
|
36896
|
+
iG,
|
|
36897
|
+
jW,
|
|
36898
|
+
qW,
|
|
36899
|
+
JW,
|
|
36879
36900
|
Z,
|
|
36880
|
-
|
|
36881
|
-
|
|
36882
|
-
|
|
36883
|
-
oG,
|
|
36884
|
-
HW,
|
|
36885
|
-
WW,
|
|
36886
|
-
iG
|
|
36887
|
-
]), CG = (0, import_react.useMemo)(() => ({
|
|
36901
|
+
MW,
|
|
36902
|
+
KW
|
|
36903
|
+
]), dG = (0, import_react.useMemo)(() => ({
|
|
36888
36904
|
activatorEvent: H,
|
|
36889
|
-
activators:
|
|
36905
|
+
activators: lG,
|
|
36890
36906
|
active: L,
|
|
36891
|
-
activeNodeRect:
|
|
36907
|
+
activeNodeRect: LW,
|
|
36892
36908
|
ariaDescribedById: {
|
|
36893
36909
|
draggable: q
|
|
36894
36910
|
},
|
|
36895
36911
|
dispatch: _,
|
|
36896
36912
|
draggableNodes: E,
|
|
36897
|
-
over:
|
|
36898
|
-
measureDroppableContainers:
|
|
36913
|
+
over: iG,
|
|
36914
|
+
measureDroppableContainers: jW
|
|
36899
36915
|
}), [
|
|
36900
36916
|
H,
|
|
36901
|
-
|
|
36917
|
+
lG,
|
|
36902
36918
|
L,
|
|
36903
|
-
|
|
36919
|
+
LW,
|
|
36904
36920
|
_,
|
|
36905
36921
|
q,
|
|
36906
36922
|
E,
|
|
36907
|
-
|
|
36908
|
-
|
|
36923
|
+
iG,
|
|
36924
|
+
jW
|
|
36909
36925
|
]);
|
|
36910
36926
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
36911
36927
|
value: y
|
|
36912
36928
|
}, import_react.createElement(InternalContext.Provider, {
|
|
36913
|
-
value:
|
|
36929
|
+
value: dG
|
|
36914
36930
|
}, import_react.createElement(PublicContext.Provider, {
|
|
36915
|
-
value:
|
|
36931
|
+
value: uG
|
|
36916
36932
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
36917
|
-
value:
|
|
36933
|
+
value: oG
|
|
36918
36934
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
36919
36935
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
36920
36936
|
})), import_react.createElement(Accessibility, {
|
|
36921
36937
|
...c,
|
|
36922
36938
|
hiddenTextDescribedById: q
|
|
36923
36939
|
}));
|
|
36924
|
-
function
|
|
36940
|
+
function fG() {
|
|
36925
36941
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
36926
36942
|
return typeof l == "object" ? {
|
|
36927
36943
|
...l,
|
|
@@ -37449,7 +37465,7 @@ ${c}
|
|
|
37449
37465
|
updateMeasurementsFor: I,
|
|
37450
37466
|
...m
|
|
37451
37467
|
}
|
|
37452
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
37468
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: kW, listeners: Z, isDragging: AW, over: jW, setActivatorNodeRef: MW, transform: NW } = useDraggable({
|
|
37453
37469
|
id: f,
|
|
37454
37470
|
data: M,
|
|
37455
37471
|
attributes: {
|
|
@@ -37457,60 +37473,60 @@ ${c}
|
|
|
37457
37473
|
...c
|
|
37458
37474
|
},
|
|
37459
37475
|
disabled: O.draggable
|
|
37460
|
-
}),
|
|
37476
|
+
}), PW = useCombinedRefs(B, kW), FW = !!H, IW = FW && !b && isValidIndex(v) && isValidIndex(w), LW = !T && AW, RW = IW ? (LW && IW ? NW : null) ?? (p ?? E)({
|
|
37461
37477
|
rects: S,
|
|
37462
37478
|
activeNodeRect: G,
|
|
37463
37479
|
activeIndex: v,
|
|
37464
37480
|
overIndex: w,
|
|
37465
37481
|
index: j
|
|
37466
|
-
}) : null,
|
|
37482
|
+
}) : null, zW = isValidIndex(v) && isValidIndex(w) ? d({
|
|
37467
37483
|
id: f,
|
|
37468
37484
|
items: g,
|
|
37469
37485
|
activeIndex: v,
|
|
37470
37486
|
overIndex: w
|
|
37471
|
-
}) : j,
|
|
37472
|
-
activeId:
|
|
37487
|
+
}) : j, BW = H == null ? void 0 : H.id, VW = (0, import_react.useRef)({
|
|
37488
|
+
activeId: BW,
|
|
37473
37489
|
items: g,
|
|
37474
|
-
newIndex:
|
|
37490
|
+
newIndex: zW,
|
|
37475
37491
|
containerId: _
|
|
37476
|
-
}),
|
|
37492
|
+
}), HW = g !== VW.current.items, UW = r({
|
|
37477
37493
|
active: H,
|
|
37478
37494
|
containerId: _,
|
|
37479
|
-
isDragging:
|
|
37480
|
-
isSorting:
|
|
37495
|
+
isDragging: AW,
|
|
37496
|
+
isSorting: FW,
|
|
37481
37497
|
id: f,
|
|
37482
37498
|
index: j,
|
|
37483
37499
|
items: g,
|
|
37484
|
-
newIndex:
|
|
37485
|
-
previousItems:
|
|
37486
|
-
previousContainerId:
|
|
37500
|
+
newIndex: VW.current.newIndex,
|
|
37501
|
+
previousItems: VW.current.items,
|
|
37502
|
+
previousContainerId: VW.current.containerId,
|
|
37487
37503
|
transition: h,
|
|
37488
|
-
wasDragging:
|
|
37489
|
-
}),
|
|
37490
|
-
disabled: !
|
|
37504
|
+
wasDragging: VW.current.activeId != null
|
|
37505
|
+
}), WW = useDerivedTransform({
|
|
37506
|
+
disabled: !UW,
|
|
37491
37507
|
index: j,
|
|
37492
37508
|
node: R,
|
|
37493
37509
|
rect: L
|
|
37494
37510
|
});
|
|
37495
37511
|
return (0, import_react.useEffect)(() => {
|
|
37496
|
-
|
|
37512
|
+
FW && VW.current.newIndex !== zW && (VW.current.newIndex = zW), _ !== VW.current.containerId && (VW.current.containerId = _), g !== VW.current.items && (VW.current.items = g);
|
|
37497
37513
|
}, [
|
|
37498
|
-
|
|
37499
|
-
|
|
37514
|
+
FW,
|
|
37515
|
+
zW,
|
|
37500
37516
|
_,
|
|
37501
37517
|
g
|
|
37502
37518
|
]), (0, import_react.useEffect)(() => {
|
|
37503
|
-
if (
|
|
37504
|
-
if (
|
|
37505
|
-
|
|
37519
|
+
if (BW === VW.current.activeId) return;
|
|
37520
|
+
if (BW != null && VW.current.activeId == null) {
|
|
37521
|
+
VW.current.activeId = BW;
|
|
37506
37522
|
return;
|
|
37507
37523
|
}
|
|
37508
37524
|
let e2 = setTimeout(() => {
|
|
37509
|
-
|
|
37525
|
+
VW.current.activeId = BW;
|
|
37510
37526
|
}, 50);
|
|
37511
37527
|
return () => clearTimeout(e2);
|
|
37512
37528
|
}, [
|
|
37513
|
-
|
|
37529
|
+
BW
|
|
37514
37530
|
]), {
|
|
37515
37531
|
active: H,
|
|
37516
37532
|
activeIndex: v,
|
|
@@ -37518,25 +37534,25 @@ ${c}
|
|
|
37518
37534
|
data: M,
|
|
37519
37535
|
rect: L,
|
|
37520
37536
|
index: j,
|
|
37521
|
-
newIndex:
|
|
37537
|
+
newIndex: zW,
|
|
37522
37538
|
items: g,
|
|
37523
37539
|
isOver: z,
|
|
37524
|
-
isSorting:
|
|
37525
|
-
isDragging:
|
|
37526
|
-
listeners:
|
|
37540
|
+
isSorting: FW,
|
|
37541
|
+
isDragging: AW,
|
|
37542
|
+
listeners: Z,
|
|
37527
37543
|
node: R,
|
|
37528
37544
|
overIndex: w,
|
|
37529
|
-
over:
|
|
37530
|
-
setNodeRef:
|
|
37531
|
-
setActivatorNodeRef:
|
|
37545
|
+
over: jW,
|
|
37546
|
+
setNodeRef: PW,
|
|
37547
|
+
setActivatorNodeRef: MW,
|
|
37532
37548
|
setDroppableNodeRef: B,
|
|
37533
|
-
setDraggableNodeRef:
|
|
37534
|
-
transform:
|
|
37535
|
-
transition:
|
|
37549
|
+
setDraggableNodeRef: kW,
|
|
37550
|
+
transform: WW ?? RW,
|
|
37551
|
+
transition: GW()
|
|
37536
37552
|
};
|
|
37537
|
-
function
|
|
37538
|
-
if (
|
|
37539
|
-
if (!(
|
|
37553
|
+
function GW() {
|
|
37554
|
+
if (WW || HW && VW.current.newIndex === j) return disabledTransition;
|
|
37555
|
+
if (!(LW && !isKeyboardEvent(W) || !h) && (FW || UW)) return CSS$1.Transition.toString({
|
|
37540
37556
|
...h,
|
|
37541
37557
|
property: transitionProperty
|
|
37542
37558
|
});
|
|
@@ -37836,15 +37852,15 @@ ${c}
|
|
|
37836
37852
|
G
|
|
37837
37853
|
]
|
|
37838
37854
|
}), r[35] = c.id, r[36] = h, r[37] = y, r[38] = b, r[39] = I, r[40] = z, r[41] = B, r[42] = H, r[43] = W, r[44] = G, r[45] = q) : q = r[45];
|
|
37839
|
-
let
|
|
37840
|
-
if (!v && !g) return
|
|
37841
|
-
let HW;
|
|
37842
|
-
r[46] === VW ? HW = r[47] : (HW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
37843
|
-
asChild: true,
|
|
37844
|
-
children: VW
|
|
37845
|
-
}), r[46] = VW, r[47] = HW);
|
|
37855
|
+
let kW = q;
|
|
37856
|
+
if (!v && !g) return kW;
|
|
37846
37857
|
let Z;
|
|
37847
|
-
r[
|
|
37858
|
+
r[46] === kW ? Z = r[47] : (Z = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
37859
|
+
asChild: true,
|
|
37860
|
+
children: kW
|
|
37861
|
+
}), r[46] = kW, r[47] = Z);
|
|
37862
|
+
let AW;
|
|
37863
|
+
r[48] === v ? AW = r[49] : (AW = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37848
37864
|
onSelect: v,
|
|
37849
37865
|
children: [
|
|
37850
37866
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -37852,11 +37868,11 @@ ${c}
|
|
|
37852
37868
|
}),
|
|
37853
37869
|
"Add cell"
|
|
37854
37870
|
]
|
|
37855
|
-
}), r[48] = v, r[49] =
|
|
37856
|
-
let
|
|
37857
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
37858
|
-
let
|
|
37859
|
-
r[51] === g ?
|
|
37871
|
+
}), r[48] = v, r[49] = AW);
|
|
37872
|
+
let jW;
|
|
37873
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (jW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = jW) : jW = r[50];
|
|
37874
|
+
let MW;
|
|
37875
|
+
r[51] === g ? MW = r[52] : (MW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37860
37876
|
variant: "danger",
|
|
37861
37877
|
onSelect: g,
|
|
37862
37878
|
children: [
|
|
@@ -37865,22 +37881,22 @@ ${c}
|
|
|
37865
37881
|
}),
|
|
37866
37882
|
"Delete cell"
|
|
37867
37883
|
]
|
|
37868
|
-
}), r[51] = g, r[52] =
|
|
37869
|
-
let
|
|
37870
|
-
r[53] !==
|
|
37884
|
+
}), r[51] = g, r[52] = MW);
|
|
37885
|
+
let NW;
|
|
37886
|
+
r[53] !== AW || r[54] !== MW ? (NW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
37871
37887
|
children: [
|
|
37872
|
-
|
|
37873
|
-
|
|
37874
|
-
|
|
37888
|
+
AW,
|
|
37889
|
+
jW,
|
|
37890
|
+
MW
|
|
37875
37891
|
]
|
|
37876
|
-
}), r[53] =
|
|
37877
|
-
let
|
|
37878
|
-
return r[56] !==
|
|
37892
|
+
}), r[53] = AW, r[54] = MW, r[55] = NW) : NW = r[55];
|
|
37893
|
+
let PW;
|
|
37894
|
+
return r[56] !== Z || r[57] !== NW ? (PW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
37879
37895
|
children: [
|
|
37880
|
-
|
|
37881
|
-
|
|
37896
|
+
Z,
|
|
37897
|
+
NW
|
|
37882
37898
|
]
|
|
37883
|
-
}), r[56] =
|
|
37899
|
+
}), r[56] = Z, r[57] = NW, r[58] = PW) : PW = r[58], PW;
|
|
37884
37900
|
}, InsertCellLine = (e) => {
|
|
37885
37901
|
let r = (0, import_compiler_runtime$10.c)(10), { position: c, onInsert: l } = e, u = c === "below" ? "bottom-0 translate-y-1/2" : "top-0 -translate-y-1/2", d;
|
|
37886
37902
|
r[0] === u ? d = r[1] : (d = cn("absolute left-0 right-0 z-30 flex h-3 items-center justify-center", "opacity-0 transition-opacity hover:opacity-80 focus-visible:opacity-100 focus:outline-hidden", u), r[0] = u, r[1] = d);
|
|
@@ -37934,10 +37950,10 @@ ${c}
|
|
|
37934
37950
|
...B,
|
|
37935
37951
|
...h
|
|
37936
37952
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
37937
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
37938
|
-
r[25] !== l || r[26] !==
|
|
37939
|
-
let
|
|
37940
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
37953
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", kW = w && !T && "opacity-35", Z = T && "opacity-95 shadow-lg", AW;
|
|
37954
|
+
r[25] !== l || r[26] !== kW || r[27] !== Z || r[28] !== q ? (AW = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, kW, Z, l), r[25] = l, r[26] = kW, r[27] = Z, r[28] = q, r[29] = AW) : AW = r[29];
|
|
37955
|
+
let jW;
|
|
37956
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (jW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
37941
37957
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
37942
37958
|
style: {
|
|
37943
37959
|
transform: `scale(${I})`,
|
|
@@ -37953,14 +37969,14 @@ ${c}
|
|
|
37953
37969
|
output: c.output,
|
|
37954
37970
|
stale: outputIsStale(c, false)
|
|
37955
37971
|
})
|
|
37956
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
37957
|
-
let
|
|
37958
|
-
r[37] === z ?
|
|
37972
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = jW) : jW = r[36];
|
|
37973
|
+
let MW;
|
|
37974
|
+
r[37] === z ? MW = r[38] : (MW = z && (0, import_jsx_runtime.jsx)("div", {
|
|
37959
37975
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
37960
37976
|
"aria-hidden": true
|
|
37961
|
-
}), r[37] = z, r[38] =
|
|
37962
|
-
let
|
|
37963
|
-
r[39] !== z || r[40] !== R ? (
|
|
37977
|
+
}), r[37] = z, r[38] = MW);
|
|
37978
|
+
let NW;
|
|
37979
|
+
r[39] !== z || r[40] !== R ? (NW = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
37964
37980
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
37965
37981
|
className: "text-xs opacity-80",
|
|
37966
37982
|
children: R.description
|
|
@@ -37972,19 +37988,19 @@ ${c}
|
|
|
37972
37988
|
className: "h-3.5 w-3.5"
|
|
37973
37989
|
})
|
|
37974
37990
|
})
|
|
37975
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
37976
|
-
let
|
|
37977
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
37991
|
+
}), r[39] = z, r[40] = R, r[41] = NW) : NW = r[41];
|
|
37992
|
+
let PW;
|
|
37993
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== AW || r[46] !== jW || r[47] !== MW || r[48] !== NW ? (PW = (0, import_jsx_runtime.jsxs)("div", {
|
|
37978
37994
|
ref: f,
|
|
37979
|
-
className:
|
|
37995
|
+
className: AW,
|
|
37980
37996
|
style: W,
|
|
37981
37997
|
...d,
|
|
37982
37998
|
children: [
|
|
37983
|
-
|
|
37984
|
-
|
|
37985
|
-
|
|
37999
|
+
jW,
|
|
38000
|
+
MW,
|
|
38001
|
+
NW
|
|
37986
38002
|
]
|
|
37987
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
38003
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = AW, r[46] = jW, r[47] = MW, r[48] = NW, r[49] = PW) : PW = r[49], PW;
|
|
37988
38004
|
}, MiniCodePreview = (e) => {
|
|
37989
38005
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
37990
38006
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -38024,7 +38040,7 @@ ${c}
|
|
|
38024
38040
|
function _temp2$2(e) {
|
|
38025
38041
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
38026
38042
|
}
|
|
38027
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
38043
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-B5DXLyO7.js"));
|
|
38028
38044
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
38029
38045
|
var _a5;
|
|
38030
38046
|
let u = useAtomValue(kioskModeAtom), d = l === "read" || u, f = useAtomValue(numColumnsAtom) > 1, [p, m] = (0, import_react.useState)(null), { slideCells: h, skippedIds: g, noOutputIds: _, slideTypes: v, startCellIndex: y } = (0, import_react.useMemo)(() => computeSlideCellsInfo(c, e), [
|
|
@@ -38079,20 +38095,15 @@ ${c}
|
|
|
38079
38095
|
]).optional(),
|
|
38080
38096
|
speakerNotes: string().optional(),
|
|
38081
38097
|
showCode: boolean().optional()
|
|
38082
|
-
}),
|
|
38083
|
-
|
|
38084
|
-
|
|
38085
|
-
|
|
38086
|
-
|
|
38087
|
-
|
|
38088
|
-
|
|
38089
|
-
|
|
38090
|
-
|
|
38091
|
-
"center",
|
|
38092
|
-
"bottom"
|
|
38093
|
-
]), DeckConfigSchema = looseObject({
|
|
38094
|
-
transition: DeckTransitionSchema.optional(),
|
|
38095
|
-
verticalAlign: DeckVerticalAlignSchema.optional()
|
|
38098
|
+
}), DeckConfigSchema = looseObject({
|
|
38099
|
+
transition: _enum([
|
|
38100
|
+
"none",
|
|
38101
|
+
"fade",
|
|
38102
|
+
"slide",
|
|
38103
|
+
"convex",
|
|
38104
|
+
"concave",
|
|
38105
|
+
"zoom"
|
|
38106
|
+
]).optional()
|
|
38096
38107
|
});
|
|
38097
38108
|
const SlidesLayoutPlugin = {
|
|
38098
38109
|
type: "slides",
|
|
@@ -38409,7 +38420,7 @@ ${c}
|
|
|
38409
38420
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
38410
38421
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
38411
38422
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
38412
|
-
let H, W, G, q,
|
|
38423
|
+
let H, W, G, q, kW, Z, jW, MW, NW, PW;
|
|
38413
38424
|
if (r[3] !== T || r[4] !== M || r[5] !== I || r[6] !== L || r[7] !== _ || r[8] !== b || r[9] !== d || r[10] !== z || r[11] !== O || r[12] !== j || r[13] !== E || r[14] !== R || r[15] !== f || r[16] !== u || r[17] !== y || r[18] !== m || r[19] !== l) {
|
|
38414
38425
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
38415
38426
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -38455,11 +38466,11 @@ ${c}
|
|
|
38455
38466
|
})
|
|
38456
38467
|
})
|
|
38457
38468
|
]
|
|
38458
|
-
}), 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",
|
|
38459
|
-
let
|
|
38460
|
-
r[40] !== M || r[41] !==
|
|
38469
|
+
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", kW = c, Z = R, jW = 0;
|
|
38470
|
+
let AW = y && "marimo-output-stale", FW2 = L ? "p-5" : "p-3";
|
|
38471
|
+
r[40] !== M || r[41] !== AW || r[42] !== FW2 ? (MW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", AW, FW2, M), r[40] = M, r[41] = AW, r[42] = FW2, r[43] = MW) : MW = r[43], r[44] === d ? NW = r[45] : (NW = d ? {
|
|
38461
38472
|
maxHeight: "none"
|
|
38462
|
-
} : void 0, r[44] = d, r[45] =
|
|
38473
|
+
} : void 0, r[44] = d, r[45] = NW), PW = e2.map((e3, r2) => {
|
|
38463
38474
|
if (e3.channel === "pdb") return null;
|
|
38464
38475
|
if (e3.channel === "stdin") {
|
|
38465
38476
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -38488,36 +38499,36 @@ ${c}
|
|
|
38488
38499
|
wrapText: l
|
|
38489
38500
|
})
|
|
38490
38501
|
}, r2);
|
|
38491
|
-
}), 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] =
|
|
38492
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
38493
|
-
let
|
|
38494
|
-
r[46] !== T || r[47] !== S ? (
|
|
38502
|
+
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = kW, r[25] = Z, r[26] = jW, r[27] = MW, r[28] = NW, r[29] = PW;
|
|
38503
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], kW = r[24], Z = r[25], jW = r[26], MW = r[27], NW = r[28], PW = r[29];
|
|
38504
|
+
let FW;
|
|
38505
|
+
r[46] !== T || r[47] !== S ? (FW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
38495
38506
|
value: S,
|
|
38496
38507
|
cellId: T,
|
|
38497
38508
|
className: "bg-(--slate-4) border-(--slate-4) hover:bg-(--slate-5) dark:border-(--sky-5) dark:bg-(--sky-6) dark:text-(--sky-12) text-(--slate-12) rounded-l rounded-br-lg absolute right-0 bottom-0 text-xs px-1.5 py-0.5 font-mono max-w-[75%] whitespace-nowrap overflow-hidden"
|
|
38498
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
38499
|
-
let
|
|
38500
|
-
r[49] !==
|
|
38509
|
+
}), r[46] = T, r[47] = S, r[48] = FW) : FW = r[48];
|
|
38510
|
+
let IW;
|
|
38511
|
+
r[49] !== FW || r[50] !== G || r[51] !== q || r[52] !== kW || r[53] !== Z || r[54] !== jW || r[55] !== MW || r[56] !== NW || r[57] !== PW ? (IW = (0, import_jsx_runtime.jsxs)("div", {
|
|
38501
38512
|
title: G,
|
|
38502
38513
|
"data-testid": q,
|
|
38503
|
-
ref:
|
|
38504
|
-
...
|
|
38505
|
-
tabIndex:
|
|
38506
|
-
className:
|
|
38507
|
-
style:
|
|
38514
|
+
ref: kW,
|
|
38515
|
+
...Z,
|
|
38516
|
+
tabIndex: jW,
|
|
38517
|
+
className: MW,
|
|
38518
|
+
style: NW,
|
|
38508
38519
|
children: [
|
|
38509
|
-
|
|
38510
|
-
|
|
38520
|
+
PW,
|
|
38521
|
+
FW
|
|
38511
38522
|
]
|
|
38512
|
-
}), r[49] =
|
|
38513
|
-
let
|
|
38514
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
38523
|
+
}), r[49] = FW, r[50] = G, r[51] = q, r[52] = kW, r[53] = Z, r[54] = jW, r[55] = MW, r[56] = NW, r[57] = PW, r[58] = IW) : IW = r[58];
|
|
38524
|
+
let LW;
|
|
38525
|
+
return r[59] !== H || r[60] !== W || r[61] !== IW ? (LW = (0, import_jsx_runtime.jsxs)("div", {
|
|
38515
38526
|
className: H,
|
|
38516
38527
|
children: [
|
|
38517
38528
|
W,
|
|
38518
|
-
|
|
38529
|
+
IW
|
|
38519
38530
|
]
|
|
38520
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
38531
|
+
}), r[59] = H, r[60] = W, r[61] = IW, r[62] = LW) : LW = r[62], LW;
|
|
38521
38532
|
}, StdInput = (e) => {
|
|
38522
38533
|
let r = (0, import_compiler_runtime$6.c)(25), { value: c, setValue: l, inputHistory: u, output: d, isPassword: f, isPdb: p, onSubmit: m, onClear: h } = e, { navigateUp: g, navigateDown: _, addToHistory: v } = u, y;
|
|
38523
38534
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -38939,14 +38950,12 @@ ${c}
|
|
|
38939
38950
|
r[6] === f ? L = r[7] : (L = outputIsLoading(f), r[6] = f, r[7] = L);
|
|
38940
38951
|
let R = L, z = E && w !== "present", B;
|
|
38941
38952
|
if (r[8] !== b || r[9] !== h || r[10] !== z || r[11] !== S || r[12] !== m) {
|
|
38942
|
-
let e2 = new MarkdownLanguageAdapter().isSupported(b);
|
|
38943
|
-
B = cn("marimo-cell", "hover-actions-parent empty:invisible",
|
|
38944
|
-
|
|
38945
|
-
stopped: m
|
|
38946
|
-
}) : {
|
|
38953
|
+
let e2 = new MarkdownLanguageAdapter().isSupported(b), c2 = !S && !z;
|
|
38954
|
+
B = cn("marimo-cell", "hover-actions-parent empty:invisible", {
|
|
38955
|
+
published: c2,
|
|
38947
38956
|
"has-error": h,
|
|
38948
38957
|
stopped: m,
|
|
38949
|
-
borderless: e2
|
|
38958
|
+
borderless: e2 && !c2
|
|
38950
38959
|
}), r[8] = b, r[9] = h, r[10] = z, r[11] = S, r[12] = m, r[13] = B;
|
|
38951
38960
|
} else B = r[13];
|
|
38952
38961
|
let H = B;
|
|
@@ -38999,32 +39008,27 @@ ${c}
|
|
|
38999
39008
|
]
|
|
39000
39009
|
}), r[37] = H, r[38] = E2, r[39] = O2, r[40] = y2, r[41] = S2, r[42] = w2, r[43] = M2) : M2 = r[43], M2;
|
|
39001
39010
|
}
|
|
39002
|
-
|
|
39003
|
-
|
|
39004
|
-
|
|
39005
|
-
|
|
39006
|
-
|
|
39007
|
-
|
|
39008
|
-
|
|
39009
|
-
let W;
|
|
39010
|
-
r[44] !== d || r[45] !== T ? (W = cellDomProps(d, T), r[44] = d, r[45] = T, r[46] = W) : W = r[46];
|
|
39011
|
-
let G = w === "edit", q;
|
|
39012
|
-
r[47] !== d || r[48] !== R || r[49] !== c || r[50] !== I || r[51] !== G ? (q = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
39013
|
-
allowExpand: G,
|
|
39011
|
+
let W = isErrorMime(c == null ? void 0 : c.mimetype), G = O && W && Array.isArray(c == null ? void 0 : c.data) && c.data.some(_temp5);
|
|
39012
|
+
if ((h || _ || m || W) && !G) return null;
|
|
39013
|
+
let q;
|
|
39014
|
+
r[44] !== d || r[45] !== T ? (q = cellDomProps(d, T), r[44] = d, r[45] = T, r[46] = q) : q = r[46];
|
|
39015
|
+
let kW = w === "edit", Z;
|
|
39016
|
+
r[47] !== d || r[48] !== R || r[49] !== c || r[50] !== I || r[51] !== kW ? (Z = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
39017
|
+
allowExpand: kW,
|
|
39014
39018
|
output: c,
|
|
39015
39019
|
className: CSSClasses.outputArea,
|
|
39016
39020
|
cellId: d,
|
|
39017
39021
|
stale: I,
|
|
39018
39022
|
loading: R
|
|
39019
|
-
}), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] =
|
|
39020
|
-
let
|
|
39021
|
-
return r[53] !== H || r[54] !==
|
|
39023
|
+
}), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] = kW, r[52] = Z) : Z = r[52];
|
|
39024
|
+
let AW;
|
|
39025
|
+
return r[53] !== H || r[54] !== q || r[55] !== Z ? (AW = (0, import_jsx_runtime.jsx)("div", {
|
|
39022
39026
|
tabIndex: -1,
|
|
39023
39027
|
ref: j,
|
|
39024
39028
|
className: H,
|
|
39025
|
-
...
|
|
39026
|
-
children:
|
|
39027
|
-
}), r[53] = H, r[54] =
|
|
39029
|
+
...q,
|
|
39030
|
+
children: Z
|
|
39031
|
+
}), r[53] = H, r[54] = q, r[55] = Z, r[56] = AW) : AW = r[56], AW;
|
|
39028
39032
|
});
|
|
39029
39033
|
VerticalCell.displayName = "VerticalCell";
|
|
39030
39034
|
const VerticalLayoutPlugin = {
|
|
@@ -39070,6 +39074,9 @@ ${c}
|
|
|
39070
39074
|
function _temp4() {
|
|
39071
39075
|
return null;
|
|
39072
39076
|
}
|
|
39077
|
+
function _temp5(e) {
|
|
39078
|
+
return e.type === "exception" && "traceback" in e && e.traceback;
|
|
39079
|
+
}
|
|
39073
39080
|
const cellRendererPlugins = [
|
|
39074
39081
|
GridLayoutPlugin,
|
|
39075
39082
|
SlidesLayoutPlugin,
|
|
@@ -39248,101 +39255,94 @@ ${c}
|
|
|
39248
39255
|
}
|
|
39249
39256
|
document.removeEventListener(MarimoValueReadyEvent.TYPE, this.handleReadyEvent), this.hasStarted = false;
|
|
39250
39257
|
}
|
|
39251
|
-
}
|
|
39252
|
-
function parseMarimoIslandApps(e = document
|
|
39253
|
-
let
|
|
39258
|
+
};
|
|
39259
|
+
function parseMarimoIslandApps(e = document) {
|
|
39260
|
+
let r = [
|
|
39254
39261
|
...e.querySelectorAll(ISLAND_TAG_NAMES.ISLAND)
|
|
39255
|
-
],
|
|
39256
|
-
|
|
39257
|
-
|
|
39258
|
-
|
|
39259
|
-
|
|
39260
|
-
|
|
39261
|
-
|
|
39262
|
-
}) : parseIslandElementsIntoApps(c, u);
|
|
39263
|
-
}
|
|
39264
|
-
function parseIslandElementsIntoApps(e, r = true) {
|
|
39265
|
-
let c = /* @__PURE__ */ new Map();
|
|
39266
|
-
for (let l of e) {
|
|
39267
|
-
let e2 = l.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID);
|
|
39262
|
+
], c = parseMarimoIslandPayloads(e);
|
|
39263
|
+
return r.length === 0 ? (Logger.warn("No embedded marimo apps found."), []) : c.length > 0 ? parsePayloadBackedApps(r, c) : parseIslandElementsIntoApps(r);
|
|
39264
|
+
}
|
|
39265
|
+
function parseIslandElementsIntoApps(e) {
|
|
39266
|
+
let r = /* @__PURE__ */ new Map();
|
|
39267
|
+
for (let c of e) {
|
|
39268
|
+
let e2 = c.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID);
|
|
39268
39269
|
if (!e2) {
|
|
39269
39270
|
Logger.warn("Embedded marimo cell missing data-app-id attribute.");
|
|
39270
39271
|
continue;
|
|
39271
39272
|
}
|
|
39272
|
-
if (
|
|
39273
|
-
let
|
|
39274
|
-
if (!
|
|
39273
|
+
if (c.getAttribute(ISLAND_DATA_ATTRIBUTES.REACTIVE) !== "true") continue;
|
|
39274
|
+
let l = parseIslandElement(c);
|
|
39275
|
+
if (!l) {
|
|
39275
39276
|
Logger.warn(`Embedded marimo app ${e2} missing cell output or code.`);
|
|
39276
39277
|
continue;
|
|
39277
39278
|
}
|
|
39278
|
-
let
|
|
39279
|
-
|
|
39279
|
+
let u = r.get(e2);
|
|
39280
|
+
u || (u = {
|
|
39280
39281
|
id: e2,
|
|
39281
39282
|
cells: []
|
|
39282
|
-
},
|
|
39283
|
-
let
|
|
39284
|
-
|
|
39285
|
-
output:
|
|
39286
|
-
code:
|
|
39287
|
-
idx:
|
|
39288
|
-
}),
|
|
39283
|
+
}, r.set(e2, u));
|
|
39284
|
+
let f = u.cells.length;
|
|
39285
|
+
u.cells.push({
|
|
39286
|
+
output: l.output,
|
|
39287
|
+
code: l.code,
|
|
39288
|
+
idx: f
|
|
39289
|
+
}), c.setAttribute(ISLAND_DATA_ATTRIBUTES.CELL_IDX, f.toString());
|
|
39289
39290
|
}
|
|
39290
39291
|
return [
|
|
39291
|
-
...
|
|
39292
|
+
...r.values()
|
|
39292
39293
|
];
|
|
39293
39294
|
}
|
|
39294
|
-
function parsePayloadBackedApps(
|
|
39295
|
-
let
|
|
39296
|
-
for (let
|
|
39297
|
-
let
|
|
39298
|
-
for (let
|
|
39299
|
-
let
|
|
39295
|
+
function parsePayloadBackedApps(e, r) {
|
|
39296
|
+
let c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Set(), d = [];
|
|
39297
|
+
for (let c2 of r) {
|
|
39298
|
+
let r2 = false;
|
|
39299
|
+
for (let d2 of c2.cells) {
|
|
39300
|
+
let f2 = findMatchingIsland({
|
|
39300
39301
|
embeds: e,
|
|
39301
|
-
appId:
|
|
39302
|
-
cell:
|
|
39303
|
-
consumedEmbeds:
|
|
39302
|
+
appId: c2.appId,
|
|
39303
|
+
cell: d2,
|
|
39304
|
+
consumedEmbeds: u
|
|
39304
39305
|
});
|
|
39305
|
-
|
|
39306
|
+
f2 && (u.add(f2), l.set(d2, f2), materializeIslandPayload(f2, d2), r2 = true);
|
|
39306
39307
|
}
|
|
39307
|
-
|
|
39308
|
+
r2 && d.push(c2);
|
|
39308
39309
|
}
|
|
39309
|
-
let
|
|
39310
|
-
for (let e2 of
|
|
39311
|
-
let
|
|
39312
|
-
if (!
|
|
39313
|
-
let
|
|
39314
|
-
|
|
39310
|
+
let f = new Set(d.map((e2) => e2.appId)), p = new Set(d.filter((e2) => e2.cells.some((e3) => e3.reactive)).map((e2) => e2.appId));
|
|
39311
|
+
for (let e2 of d) for (let r2 of e2.cells) {
|
|
39312
|
+
let u2 = l.get(r2);
|
|
39313
|
+
if (!p.has(e2.appId)) continue;
|
|
39314
|
+
let d2 = c.get(e2.appId);
|
|
39315
|
+
d2 || (d2 = {
|
|
39315
39316
|
id: e2.appId,
|
|
39316
39317
|
payloadBacked: true,
|
|
39317
39318
|
cells: []
|
|
39318
|
-
},
|
|
39319
|
-
let
|
|
39320
|
-
cellId:
|
|
39321
|
-
output:
|
|
39322
|
-
code:
|
|
39323
|
-
idx:
|
|
39319
|
+
}, c.set(e2.appId, d2));
|
|
39320
|
+
let f2 = d2.cells.length, m2 = {
|
|
39321
|
+
cellId: r2.cellId,
|
|
39322
|
+
output: r2.outputHtml,
|
|
39323
|
+
code: r2.reactive ? r2.code : "",
|
|
39324
|
+
idx: f2
|
|
39324
39325
|
};
|
|
39325
|
-
|
|
39326
|
+
r2.reactive || (m2.disabled = true), d2.cells.push(m2), r2.reactive && (u2 == null ? void 0 : u2.setAttribute(ISLAND_DATA_ATTRIBUTES.CELL_IDX, f2.toString()));
|
|
39326
39327
|
}
|
|
39327
|
-
|
|
39328
|
+
for (let r2 of e) {
|
|
39328
39329
|
let e2 = r2.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID);
|
|
39329
|
-
e2 &&
|
|
39330
|
+
e2 && f.has(e2) && !u.has(r2) && (r2.removeAttribute(ISLAND_DATA_ATTRIBUTES.CELL_ID), r2.removeAttribute(ISLAND_DATA_ATTRIBUTES.CELL_IDX), r2.setAttribute(ISLAND_DATA_ATTRIBUTES.REACTIVE, "false"));
|
|
39330
39331
|
}
|
|
39331
|
-
let
|
|
39332
|
+
let m = e.filter((e2) => {
|
|
39332
39333
|
let r2 = e2.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID);
|
|
39333
|
-
return !r2 || !
|
|
39334
|
+
return !r2 || !f.has(r2);
|
|
39334
39335
|
});
|
|
39335
|
-
if (r) for (let e2 of d) e2.dispatchEvent(new Event(ISLAND_SOURCE_CHANGED_EVENT));
|
|
39336
39336
|
return [
|
|
39337
|
-
...
|
|
39338
|
-
...parseIslandElementsIntoApps(
|
|
39337
|
+
...c.values(),
|
|
39338
|
+
...parseIslandElementsIntoApps(m)
|
|
39339
39339
|
];
|
|
39340
39340
|
}
|
|
39341
39341
|
function findMatchingIsland({ embeds: e, appId: r, cell: c, consumedEmbeds: l }) {
|
|
39342
|
-
return e.find((e2) => l.has(e2) ? false : e2.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID) === r &&
|
|
39342
|
+
return e.find((e2) => l.has(e2) ? false : e2.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID) === r && e2.getAttribute(ISLAND_DATA_ATTRIBUTES.CELL_ID) === c.cellId);
|
|
39343
39343
|
}
|
|
39344
39344
|
function materializeIslandPayload(e, r) {
|
|
39345
|
-
|
|
39345
|
+
e.setAttribute(ISLAND_DATA_ATTRIBUTES.REACTIVE, JSON.stringify(r.reactive)), e.removeAttribute(ISLAND_DATA_ATTRIBUTES.CELL_ID), r.reactive || e.removeAttribute(ISLAND_DATA_ATTRIBUTES.CELL_IDX);
|
|
39346
39346
|
let c = ensureIslandChild(e, ISLAND_TAG_NAMES.CELL_OUTPUT);
|
|
39347
39347
|
c.innerHTML = r.displayOutput ? r.outputHtml : "";
|
|
39348
39348
|
let l = ensureIslandChild(e, ISLAND_TAG_NAMES.CELL_CODE);
|
|
@@ -39354,18 +39354,12 @@ ${c}
|
|
|
39354
39354
|
let c = e.querySelector(r);
|
|
39355
39355
|
return c || (c = e.ownerDocument.createElement(r), e.appendChild(c)), c;
|
|
39356
39356
|
}
|
|
39357
|
-
var retainedIslandSources = /* @__PURE__ */ new WeakMap();
|
|
39358
|
-
function retainIslandSource(e, r) {
|
|
39359
|
-
r.code ? retainedIslandSources.set(e, r) : retainedIslandSources.delete(e);
|
|
39360
|
-
}
|
|
39361
39357
|
function parseIslandElement(e) {
|
|
39362
39358
|
let r = e.querySelector(ISLAND_TAG_NAMES.CELL_OUTPUT), c = extractIslandCodeFromEmbed(e);
|
|
39363
|
-
|
|
39359
|
+
return !r || !c ? null : {
|
|
39364
39360
|
output: r.innerHTML,
|
|
39365
39361
|
code: c
|
|
39366
39362
|
};
|
|
39367
|
-
let l = retainedIslandSources.get(e);
|
|
39368
|
-
return (l == null ? void 0 : l.code) ? l : null;
|
|
39369
39363
|
}
|
|
39370
39364
|
function createMarimoFile(e) {
|
|
39371
39365
|
return [
|
|
@@ -39602,13 +39596,7 @@ ${c}
|
|
|
39602
39596
|
}), r[0] = c, r[1] = l), l;
|
|
39603
39597
|
}, import_client = __toESM(require_client(), 1), MarimoIslandElement = (_h2 = class extends HTMLElement {
|
|
39604
39598
|
constructor() {
|
|
39605
|
-
super();
|
|
39606
|
-
__publicField(this, "connectionGeneration", 0);
|
|
39607
|
-
__publicField(this, "handleSourceChanged", () => {
|
|
39608
|
-
var _a5, _b3;
|
|
39609
|
-
this.querySelector(_h2.outputTagName) && (this.renderConfig = this.extractRenderConfig(), (_a5 = this.querySelector(_h2.outputTagName)) == null ? void 0 : _a5.remove(), (_b3 = this.querySelector(_h2.codeTagName)) == null ? void 0 : _b3.remove()), this.runtimeCellId = this.isReactive && this.runtimeAppId === this.appId ? this.cellId : void 0, this.runtimeAppId = this.appId, this.syncCellIdsSubscription(), this.renderIsland();
|
|
39610
|
-
});
|
|
39611
|
-
this.classList.add(_h2.styleNamespace);
|
|
39599
|
+
super(), this.classList.add(_h2.styleNamespace);
|
|
39612
39600
|
}
|
|
39613
39601
|
get appId() {
|
|
39614
39602
|
let e = this.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID);
|
|
@@ -39618,7 +39606,6 @@ ${c}
|
|
|
39618
39606
|
return this.getAttribute(ISLAND_DATA_ATTRIBUTES.REACTIVE) === "true";
|
|
39619
39607
|
}
|
|
39620
39608
|
get cellId() {
|
|
39621
|
-
if (!this.isReactive) return;
|
|
39622
39609
|
let e = this.getAttribute(ISLAND_DATA_ATTRIBUTES.CELL_ID);
|
|
39623
39610
|
if (e) return e;
|
|
39624
39611
|
let r = this.getAttribute(ISLAND_DATA_ATTRIBUTES.CELL_IDX);
|
|
@@ -39628,51 +39615,35 @@ ${c}
|
|
|
39628
39615
|
return extractIslandCodeFromEmbed(this);
|
|
39629
39616
|
}
|
|
39630
39617
|
getCellIdFromIndex(e) {
|
|
39631
|
-
let { cellIds: r } = store.get(notebookAtom);
|
|
39632
|
-
return
|
|
39618
|
+
let { cellIds: r } = store.get(notebookAtom), c = r.inOrderIds.at(e);
|
|
39619
|
+
return invariant(c, `Missing cell ID at index ${e}`), c;
|
|
39633
39620
|
}
|
|
39634
39621
|
connectedCallback() {
|
|
39635
|
-
let
|
|
39636
|
-
|
|
39637
|
-
|
|
39622
|
+
let e = this.extractRenderConfig();
|
|
39623
|
+
queueMicrotask(() => {
|
|
39624
|
+
this.isConnected && (this.root = import_client.createRoot(this), this.renderIsland(e));
|
|
39638
39625
|
});
|
|
39639
39626
|
}
|
|
39640
|
-
syncCellIdsSubscription() {
|
|
39641
|
-
var _a5;
|
|
39642
|
-
if (this.isReactive) {
|
|
39643
|
-
this.unsubscribeCellIds ?? (this.unsubscribeCellIds = store.sub(cellIdsAtom, () => {
|
|
39644
|
-
this.runtimeCellId = this.cellId, this.renderIsland();
|
|
39645
|
-
}));
|
|
39646
|
-
return;
|
|
39647
|
-
}
|
|
39648
|
-
(_a5 = this.unsubscribeCellIds) == null ? void 0 : _a5.call(this), this.unsubscribeCellIds = void 0;
|
|
39649
|
-
}
|
|
39650
39627
|
extractRenderConfig() {
|
|
39651
39628
|
var _a5, _b3;
|
|
39652
|
-
let r = this.querySelectorOrThrow(_h2.outputTagName).innerHTML, c = this.getOptionalEditor(), l = this.code;
|
|
39653
|
-
retainIslandSource(this, {
|
|
39654
|
-
code: l,
|
|
39655
|
-
output: r
|
|
39656
|
-
});
|
|
39657
|
-
let u = (_b3 = (_a5 = this.querySelector(_h2.editorTagName)) == null ? void 0 : _a5.parentElement) == null ? void 0 : _b3.getAttribute(OBJECT_ID_ATTR);
|
|
39629
|
+
let r = this.querySelectorOrThrow(_h2.outputTagName).innerHTML, c = this.getOptionalEditor(), l = this.code, u = this.cellId, d = (_b3 = (_a5 = this.querySelector(_h2.editorTagName)) == null ? void 0 : _a5.parentElement) == null ? void 0 : _b3.getAttribute(OBJECT_ID_ATTR);
|
|
39658
39630
|
return {
|
|
39659
39631
|
html: r,
|
|
39660
|
-
codeCallback: c &&
|
|
39661
|
-
let e = UI_ELEMENT_REGISTRY.lookupValue(
|
|
39632
|
+
codeCallback: c && d ? () => {
|
|
39633
|
+
let e = UI_ELEMENT_REGISTRY.lookupValue(d);
|
|
39662
39634
|
return e === void 0 ? l : String(e);
|
|
39663
39635
|
} : () => l,
|
|
39664
|
-
editor: c
|
|
39636
|
+
editor: c,
|
|
39637
|
+
cellId: u
|
|
39665
39638
|
};
|
|
39666
39639
|
}
|
|
39667
|
-
renderIsland() {
|
|
39640
|
+
renderIsland(e) {
|
|
39668
39641
|
var _a5, _b3;
|
|
39669
|
-
let e =
|
|
39670
|
-
if (!e) return;
|
|
39671
|
-
let { html: r, codeCallback: c, editor: l } = e, u = this.runtimeCellId, d = !!l, f = r.trim(), p = f === "<span></span>" || f === "" ? null : renderHTML({
|
|
39642
|
+
let { html: r, codeCallback: c, editor: l, cellId: u } = e, d = !!l, f = r.trim(), p = f === "<span></span>" || f === "" ? null : renderHTML({
|
|
39672
39643
|
html: f
|
|
39673
39644
|
});
|
|
39674
39645
|
if (!u) {
|
|
39675
|
-
|
|
39646
|
+
(_a5 = this.root) == null ? void 0 : _a5.render((0, import_jsx_runtime.jsx)(ErrorBoundary, {
|
|
39676
39647
|
children: (0, import_jsx_runtime.jsx)(Provider, {
|
|
39677
39648
|
store,
|
|
39678
39649
|
children: (0, import_jsx_runtime.jsx)(LocaleProvider, {
|
|
@@ -39717,8 +39688,6 @@ ${c}
|
|
|
39717
39688
|
return invariant(r, `Missing ${e} element`), r;
|
|
39718
39689
|
}
|
|
39719
39690
|
disconnectedCallback() {
|
|
39720
|
-
var _a5;
|
|
39721
|
-
this.removeEventListener(ISLAND_SOURCE_CHANGED_EVENT, this.handleSourceChanged), (_a5 = this.unsubscribeCellIds) == null ? void 0 : _a5.call(this), this.unsubscribeCellIds = void 0;
|
|
39722
39691
|
let e = this.root;
|
|
39723
39692
|
this.root = void 0, e && queueMicrotask(() => e.unmount());
|
|
39724
39693
|
}
|
|
@@ -39745,13 +39714,12 @@ ${c}
|
|
|
39745
39714
|
r.set(notebookAtom, (r2) => reducer(r2, e2));
|
|
39746
39715
|
});
|
|
39747
39716
|
r.sub(shouldShowIslandsWarningIndicatorAtom, () => {
|
|
39748
|
-
|
|
39749
|
-
if (e2) {
|
|
39717
|
+
if (r.get(shouldShowIslandsWarningIndicatorAtom)) {
|
|
39750
39718
|
toastIslandsLoading();
|
|
39751
|
-
for (let
|
|
39719
|
+
for (let e2 of u) e2.style.setProperty("opacity", "0.5");
|
|
39752
39720
|
} else {
|
|
39753
39721
|
dismissIslandsLoadingToast();
|
|
39754
|
-
for (let
|
|
39722
|
+
for (let e2 of u) e2.style.removeProperty("opacity");
|
|
39755
39723
|
}
|
|
39756
39724
|
}), l.consumeMessages((e2) => {
|
|
39757
39725
|
handleMessage(e2, f);
|
|
@@ -39762,7 +39730,6 @@ ${c}
|
|
|
39762
39730
|
}), RuntimeState.INSTANCE.start(l.sendComponentValues);
|
|
39763
39731
|
}
|
|
39764
39732
|
function handleMessage(e, r) {
|
|
39765
|
-
var _a5;
|
|
39766
39733
|
try {
|
|
39767
39734
|
let c = jsonParseWithSpecialChar(e);
|
|
39768
39735
|
switch (Logger.debug("Islands received message:", c.op), c.op) {
|
|
@@ -39804,7 +39771,7 @@ ${c}
|
|
|
39804
39771
|
setCapabilities: Functions.NOOP,
|
|
39805
39772
|
setKernelState: Functions.NOOP,
|
|
39806
39773
|
onError: Logger.error
|
|
39807
|
-
}),
|
|
39774
|
+
}), defineCustomElement(ISLAND_TAG_NAMES.ISLAND, MarimoIslandElement);
|
|
39808
39775
|
return;
|
|
39809
39776
|
case "send-ui-element-message":
|
|
39810
39777
|
UI_ELEMENT_REGISTRY.broadcastMessage(c.data.ui_element, c.data.message, safeExtractSetUIElementMessageBuffers(c.data));
|
|
@@ -40077,7 +40044,7 @@ ${c}
|
|
|
40077
40044
|
});
|
|
40078
40045
|
}
|
|
40079
40046
|
const getMarimoVersion = () => store.get(marimoVersionAtom);
|
|
40080
|
-
var worker_default = "/assets/worker-
|
|
40047
|
+
var worker_default = "/assets/worker-DAWRHcPq.js", DefaultWorkerFactory = class {
|
|
40081
40048
|
constructor(e = {}) {
|
|
40082
40049
|
this.url = e.workerUrl || this.getDefaultWorkerUrl(), this.name = e.workerName || getMarimoVersion();
|
|
40083
40050
|
}
|
|
@@ -40101,10 +40068,6 @@ ${c}
|
|
|
40101
40068
|
}
|
|
40102
40069
|
var IslandsPyodideBridge = class {
|
|
40103
40070
|
constructor(e = {}) {
|
|
40104
|
-
__publicField(this, "sessionReady", new Deferred());
|
|
40105
|
-
__publicField(this, "nextSessionGeneration", 0);
|
|
40106
|
-
__publicField(this, "appTransition", Promise.resolve());
|
|
40107
|
-
__publicField(this, "workerReady", new Deferred());
|
|
40108
40071
|
__publicField(this, "initialized", new Deferred());
|
|
40109
40072
|
__publicField(this, "sendComponentValues", async (e) => (await this.putControlRequest({
|
|
40110
40073
|
type: "update-ui-element",
|
|
@@ -40120,17 +40083,10 @@ ${c}
|
|
|
40120
40083
|
type: "model",
|
|
40121
40084
|
...e
|
|
40122
40085
|
}), null));
|
|
40123
|
-
__publicField(this, "sendRun", async (e) => {
|
|
40124
|
-
|
|
40125
|
-
|
|
40126
|
-
|
|
40127
|
-
code: e.codes.join("\n"),
|
|
40128
|
-
sessionGeneration: r.sessionGeneration
|
|
40129
|
-
}), await this.putControlRequest({
|
|
40130
|
-
type: "execute-cells",
|
|
40131
|
-
...e
|
|
40132
|
-
}, r), null;
|
|
40133
|
-
});
|
|
40086
|
+
__publicField(this, "sendRun", async (e) => (await this.rpc.proxy.request.loadPackages(e.codes.join("\n")), await this.putControlRequest({
|
|
40087
|
+
type: "execute-cells",
|
|
40088
|
+
...e
|
|
40089
|
+
}), null));
|
|
40134
40090
|
__publicField(this, "getUsageStats", throwNotImplemented);
|
|
40135
40091
|
__publicField(this, "sendRename", throwNotImplemented);
|
|
40136
40092
|
__publicField(this, "sendSave", throwNotImplemented);
|
|
@@ -40191,7 +40147,7 @@ ${c}
|
|
|
40191
40147
|
__publicField(this, "getCacheInfo", throwNotImplemented);
|
|
40192
40148
|
__publicField(this, "listStorageEntries", throwNotImplemented);
|
|
40193
40149
|
__publicField(this, "downloadStorage", throwNotImplemented);
|
|
40194
|
-
this.store = e.store || store, this.root = e.root || document;
|
|
40150
|
+
this.store = e.store || store, this.root = e.root || document, this.autoStartSessions = e.autoStartSessions ?? true;
|
|
40195
40151
|
try {
|
|
40196
40152
|
this.rpc = getWorkerRPC((e.workerFactory || new DefaultWorkerFactory()).create()), this.setupMessageListeners();
|
|
40197
40153
|
} catch (e2) {
|
|
@@ -40200,7 +40156,7 @@ ${c}
|
|
|
40200
40156
|
}
|
|
40201
40157
|
setupMessageListeners() {
|
|
40202
40158
|
this.rpc.addMessageListener("ready", () => {
|
|
40203
|
-
this.
|
|
40159
|
+
this.autoStartSessions && this.startSessionsForAllApps();
|
|
40204
40160
|
}), this.rpc.addMessageListener("initialized", () => {
|
|
40205
40161
|
this.store.set(islandsInitializedAtom, true), this.initialized.resolve();
|
|
40206
40162
|
}), this.rpc.addMessageListener("initializedError", ({ error: e }) => {
|
|
@@ -40210,94 +40166,44 @@ ${c}
|
|
|
40210
40166
|
(_a5 = this.messageConsumer) == null ? void 0 : _a5.call(this, e);
|
|
40211
40167
|
});
|
|
40212
40168
|
}
|
|
40213
|
-
|
|
40214
|
-
|
|
40215
|
-
|
|
40216
|
-
});
|
|
40217
|
-
}
|
|
40218
|
-
async startApps() {
|
|
40219
|
-
var _a5, _b3, _c4, _d4;
|
|
40220
|
-
let e = parseMarimoIslandApps(this.root), r = e.length === 1;
|
|
40169
|
+
startSessionsForAllApps() {
|
|
40170
|
+
var _a5, _b3;
|
|
40171
|
+
let e = parseMarimoIslandApps(this.root);
|
|
40221
40172
|
Logger.debug(`Starting sessions for ${e.length} app(s):`, e.map((e2) => `${e2.id} (${e2.cells.length} cells)`));
|
|
40222
|
-
let
|
|
40223
|
-
for (let
|
|
40224
|
-
let e2 =
|
|
40225
|
-
|
|
40226
|
-
|
|
40227
|
-
`, e2);
|
|
40228
|
-
let u = {
|
|
40173
|
+
let r = (_b3 = e.length === 1 && !((_a5 = e[0]) == null ? void 0 : _a5.payloadBacked) ? getMarimoExportContext() : void 0) == null ? void 0 : _b3.notebookCode;
|
|
40174
|
+
for (let c of e) {
|
|
40175
|
+
let e2 = r || createMarimoFile(c);
|
|
40176
|
+
Logger.debug(`App ${c.id} marimo file:
|
|
40177
|
+
`, e2), this.startSession({
|
|
40229
40178
|
code: e2,
|
|
40230
|
-
appId:
|
|
40231
|
-
|
|
40232
|
-
|
|
40233
|
-
p && this.store.set(notebookAtom, initialNotebookState()), (r || !f) && (r && this.sessionReady.status !== "pending" && (this.sessionReady = new Deferred()), this.session = {
|
|
40234
|
-
...u,
|
|
40235
|
-
code: r ? e2 : void 0
|
|
40179
|
+
appId: c.id
|
|
40180
|
+
}).catch((e3) => {
|
|
40181
|
+
Logger.error(`Failed to start session for app ${c.id}:`, e3);
|
|
40236
40182
|
});
|
|
40237
|
-
let m = p ? this.rpc.proxy.request.replaceSession(u) : this.startSession(u);
|
|
40238
|
-
try {
|
|
40239
|
-
await m, this.sessionReady.status === "pending" && this.session && this.sessionReady.resolve(this.session);
|
|
40240
|
-
} catch (e3) {
|
|
40241
|
-
if (((_d4 = this.session) == null ? void 0 : _d4.sessionGeneration) === u.sessionGeneration && (this.session = f), Logger.error(`Failed to start session for app ${l.id}:`, e3), r) throw e3;
|
|
40242
|
-
}
|
|
40243
40183
|
}
|
|
40244
40184
|
}
|
|
40245
|
-
async stopSession(e) {
|
|
40246
|
-
await this.enqueueAppTransition(async () => {
|
|
40247
|
-
let r = this.session;
|
|
40248
|
-
(r == null ? void 0 : r.code) === void 0 || e && r.appId !== e || (await this.rpc.proxy.request.stopSession({
|
|
40249
|
-
appId: r.appId,
|
|
40250
|
-
sessionGeneration: r.sessionGeneration
|
|
40251
|
-
}), this.session = void 0, this.sessionReady = new Deferred(), this.store.set(notebookAtom, initialNotebookState()));
|
|
40252
|
-
});
|
|
40253
|
-
}
|
|
40254
|
-
enqueueAppTransition(e) {
|
|
40255
|
-
let r = this.appTransition.then(e);
|
|
40256
|
-
return this.appTransition = r.catch(() => void 0), r;
|
|
40257
|
-
}
|
|
40258
40185
|
async startSession(e) {
|
|
40259
40186
|
await this.rpc.proxy.request.startSession(e);
|
|
40260
40187
|
}
|
|
40261
40188
|
consumeMessages(e) {
|
|
40262
40189
|
this.messageConsumer = e, this.rpc.proxy.send.consumerReady({});
|
|
40263
40190
|
}
|
|
40264
|
-
async putControlRequest(e
|
|
40265
|
-
|
|
40266
|
-
appId: r.appId,
|
|
40191
|
+
async putControlRequest(e) {
|
|
40192
|
+
await this.rpc.proxy.request.bridge({
|
|
40267
40193
|
functionName: "put_control_request",
|
|
40268
|
-
payload: e
|
|
40269
|
-
sessionGeneration: r.sessionGeneration
|
|
40194
|
+
payload: e
|
|
40270
40195
|
});
|
|
40271
40196
|
}
|
|
40272
|
-
async getActiveSession() {
|
|
40273
|
-
let e = this.appTransition, r = this.session, c = this.sessionReady;
|
|
40274
|
-
return await e, r ?? c.promise;
|
|
40275
|
-
}
|
|
40276
40197
|
destroy() {
|
|
40277
40198
|
}
|
|
40278
40199
|
}, globalBridgeInstance = null;
|
|
40279
40200
|
function getGlobalBridge() {
|
|
40280
40201
|
return globalBridgeInstance || (globalBridgeInstance = new IslandsPyodideBridge()), globalBridgeInstance;
|
|
40281
40202
|
}
|
|
40282
|
-
var bridge = getGlobalBridge(), bootstrapPromise;
|
|
40283
|
-
canReplaceApp = function() {
|
|
40284
|
-
return document.querySelector(ISLAND_TAG_NAMES.ISLAND) ? parseMarimoIslandApps(document, {
|
|
40285
|
-
materialize: false
|
|
40286
|
-
}).length === 1 : false;
|
|
40287
|
-
};
|
|
40288
40203
|
initialize = async function() {
|
|
40289
|
-
|
|
40290
|
-
|
|
40291
|
-
|
|
40292
|
-
bootstrapPromise ?? (bootstrapPromise = initializeIslands({
|
|
40293
|
-
bridge
|
|
40294
|
-
}).catch((e2) => {
|
|
40295
|
-
throw bootstrapPromise = void 0, e2;
|
|
40296
|
-
})), await bootstrapPromise, await bridge.initializeApps();
|
|
40297
|
-
}
|
|
40298
|
-
};
|
|
40299
|
-
stopApp = async function(e) {
|
|
40300
|
-
await bridge.stopSession(e);
|
|
40204
|
+
await initializeIslands({
|
|
40205
|
+
bridge: getGlobalBridge()
|
|
40206
|
+
});
|
|
40301
40207
|
};
|
|
40302
40208
|
initialize().catch((e) => {
|
|
40303
40209
|
Logger.error("Failed to initialize islands:", e);
|
|
@@ -40305,7 +40211,5 @@ ${c}
|
|
|
40305
40211
|
});
|
|
40306
40212
|
export {
|
|
40307
40213
|
__tla,
|
|
40308
|
-
|
|
40309
|
-
initialize,
|
|
40310
|
-
stopApp
|
|
40214
|
+
initialize
|
|
40311
40215
|
};
|