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