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