@marimo-team/islands 0.23.14-dev3 → 0.23.14-dev30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-Du3_nUzI.js → ConnectedDataExplorerComponent-DXBx_nQg.js} +4 -4
- package/dist/{chat-ui-CsPewo4h.js → chat-ui-CO8WuXGb.js} +3243 -3039
- package/dist/{click-outside-container-BDd67_1U.js → click-outside-container-BLPjMamz.js} +141 -113
- package/dist/{code-visibility-BbnxGblD.js → code-visibility-CAkgOEA5.js} +1122 -924
- package/dist/data-grid-overlay-editor-C6lxUJp-.js +136 -0
- package/dist/{dist-D_bzzWBm.js → dist-Bf9f8MuT.js} +3 -3
- package/dist/{formats-d6MhLuQ9.js → formats-WsOgyW_K.js} +1 -1
- package/dist/{glide-data-editor-DkzAInWG.js → glide-data-editor-7wxMGXjG.js} +2084 -1889
- package/dist/{html-to-image-DXwLcQ6l.js → html-to-image-DLSOS-bE.js} +2351 -2282
- package/dist/{input-CbEz_aj_.js → input-BSdZp5Ng.js} +1 -1
- package/dist/main.js +1233 -1133
- package/dist/{mermaid-CJW9vIyO.js → mermaid-D-HYBMEV.js} +2 -2
- package/dist/{number-overlay-editor-D-a0qCT8.js → number-overlay-editor-BLJXvX9c.js} +1 -1
- package/dist/{process-output-C6_e1pT_.js → process-output-B9ysqk1y.js} +1 -1
- package/dist/{reveal-component-B2onAQFS.js → reveal-component-x6IwgqPf.js} +600 -596
- package/dist/{spec-Bv-XlYiv.js → spec-CnTgI25l.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{toDate-D-l5s8nn.js → toDate-D1Z7ZXWh.js} +1 -1
- package/dist/{useAsyncData-1Dhzjfwf.js → useAsyncData-BMc8itk2.js} +1 -1
- package/dist/{useDeepCompareMemoize-CDWT3BDz.js → useDeepCompareMemoize-ZwmDBRDY.js} +1 -1
- package/dist/{useLifecycle-AHlswLw-.js → useLifecycle-CxffarYV.js} +1 -1
- package/dist/{useTheme-BrYvK-_A.js → useTheme-yGsGEk82.js} +26 -24
- package/dist/{vega-component-Pk6lyc_a.js → vega-component-BFJTyykA.js} +5 -5
- package/package.json +3 -3
- package/src/components/chat/acp/agent-panel.tsx +35 -1
- package/src/components/chat/chat-panel.tsx +68 -29
- package/src/components/data-table/__tests__/column-explorer.test.tsx +25 -0
- package/src/components/data-table/__tests__/column-visibility-dropdown.test.tsx +60 -3
- package/src/components/data-table/charts/__tests__/merge-index-fields.test.ts +33 -0
- package/src/components/data-table/charts/charts.tsx +24 -1
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +33 -12
- package/src/components/data-table/column-visibility-dropdown.tsx +15 -0
- package/src/components/editor/actions/useNotebookActions.tsx +2 -2
- package/src/components/editor/chrome/panels/snippets-panel.tsx +5 -2
- package/src/components/editor/chrome/wrapper/__tests__/useOpenAiAssistant.test.ts +36 -0
- package/src/components/editor/chrome/wrapper/footer-items/pyodide-status.tsx +6 -36
- package/src/components/editor/chrome/wrapper/useAiPanel.ts +3 -1
- package/src/components/editor/chrome/wrapper/useOpenAiAssistant.ts +88 -0
- package/src/components/editor/code/readonly-python-code.tsx +16 -2
- package/src/components/editor/errors/__tests__/auto-fix.test.ts +23 -0
- package/src/components/editor/errors/auto-fix.tsx +88 -34
- package/src/components/editor/errors/fix-mode.ts +1 -1
- package/src/components/editor/output/MarimoTracebackOutput.tsx +10 -1
- package/src/components/editor/output/__tests__/traceback.test.tsx +14 -6
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +7 -2
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +6 -2
- package/src/components/lifecycle/ProgressiveBoundary.tsx +42 -0
- package/src/components/lifecycle/RuntimeStatusBadge.tsx +59 -0
- package/src/components/lifecycle/__tests__/ProgressiveBoundary.test.tsx +147 -0
- package/src/components/lifecycle/__tests__/RuntimeStatusBadge.test.tsx +72 -0
- package/src/components/slides/__tests__/slide.test.tsx +33 -0
- package/src/components/slides/minimap.tsx +7 -1
- package/src/components/slides/reveal-component.tsx +3 -0
- package/src/components/slides/slide-cell-view.tsx +10 -6
- package/src/components/slides/slide.tsx +16 -13
- package/src/core/ai/config.ts +2 -2
- package/src/core/ai/context/__tests__/registry.test.ts +133 -3
- package/src/core/ai/context/providers/__tests__/datasource.test.ts +3 -1
- package/src/core/ai/context/providers/__tests__/error.test.ts +200 -15
- package/src/core/ai/context/providers/datasource.ts +27 -2
- package/src/core/ai/context/providers/error.ts +226 -36
- package/src/core/ai/context/registry.ts +77 -43
- package/src/core/ai/state.ts +11 -0
- package/src/core/cells/__tests__/readonly-code-display.test.ts +46 -0
- package/src/core/cells/readonly-code-display.ts +35 -0
- package/src/core/codemirror/__tests__/setup.test.ts +33 -1
- package/src/core/codemirror/ai/resources.ts +15 -10
- package/src/core/codemirror/cells/extensions.ts +1 -4
- package/src/core/codemirror/completion/__tests__/signature-hint.test.ts +94 -0
- package/src/core/codemirror/completion/completer.ts +12 -1
- package/src/core/codemirror/completion/signature-hint.ts +68 -0
- package/src/core/codemirror/language/languages/python.ts +10 -4
- package/src/core/codemirror/utils.ts +15 -0
- package/src/core/edit-app.tsx +8 -5
- package/src/core/errors/errors.ts +2 -1
- package/src/core/lifecycle/__tests__/render-policy.test.ts +247 -0
- package/src/core/lifecycle/render-policy.ts +125 -0
- package/src/core/mime.ts +11 -4
- package/src/core/run-app.tsx +27 -23
- package/src/core/runtime/__tests__/adapter.test.ts +160 -0
- package/src/core/runtime/adapter.ts +182 -0
- package/src/core/wasm/PyodideLoader.tsx +20 -62
- package/src/core/wasm/bridge.ts +9 -4
- package/src/core/wasm/state.ts +8 -19
- package/src/css/app/codemirror.css +14 -0
- package/src/hooks/__tests__/useDelayElapsed.test.tsx +55 -0
- package/src/hooks/useDelayElapsed.ts +27 -0
- package/src/plugins/impl/DataTablePlugin.tsx +1 -0
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +53 -2
- package/src/plugins/impl/anywidget/__tests__/AnyWidgetPlugin.test.tsx +52 -2
- package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +187 -0
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +6 -0
- package/src/plugins/impl/data-editor/glide-portal.tsx +73 -0
- package/dist/data-grid-overlay-editor-mfEJ5475.js +0 -128
- package/src/core/ai/context/providers/__tests__/__snapshots__/error.test.ts.snap +0 -3
- package/src/core/wasm/__tests__/PyodideLoader.test.ts +0 -72
- package/src/core/wasm/__tests__/state.test.ts +0 -124
package/dist/main.js
CHANGED
|
@@ -22,17 +22,17 @@ 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 reducer,
|
|
25
|
+
import { $ as reducer, $t as requestClientAtom, A as ChevronDownIcon, At as Paths, Bn as Eye, C as Accordion, Cn as selectAtom, Ct as isInternalCellName, D as BorderAllIcon, Dn as Item$1, Dt as MarkdownLanguageAdapter, E as AccordionTrigger, En as Content2, Et as customPythonLanguageSupport, G as hasRunAnyCellAtom, Gn as CircleAlert, Gt as DATA_TYPE_ICON, H as renderHTML, Hn as Database, Ht as MarkdownParser, I as base64ToDataView, In as LoaderCircle, J as getCellNames, K as createActions, Kn as Braces, Ln as Layers, Lt as repl, Mn as Table2, Nn as PaintRoller, Nt as DeferredRequestRegistry, On as Root2$1, Pt as generateUUID, Q as numColumnsAtom, Qt as getRequestClient, R as dataViewToBase64, Rn as Info, Sn as atomWithStorage, St as getValidName, T as AccordionItem, Tt as Checkbox, U as getMarimoExportContext, Un as Columns2, V as safeExtractSetUIElementMessageBuffers, Vt as SQLParser, W as hasTrustedExportContext, Wt as PluralWords, X as notebookAtom, Y as hasOnlyOneCellAtom, Z as notebookOutline, Zt as convertStatsName, _n as OBJECT_ID_ATTR, _t as headingToIdentifier, a as useCellFocusActions, ct as initialModeAtom, dn as parseInitialValue, en as useRequestClient, et as useCellActions, f as isOutputEmpty, ft as outputIsLoading, gn as findCellId, hn as UIElementId, i as LazyAnyLanguageCodeMirror, jn as Trash2, kn as Trigger2, kt as PathBuilder, ln as parseAttrValue, lt as kioskModeAtom, mt as isErrorMime, n as Spinner, o as useLastFocusedCellId, on as NotebookScopedLocalStorage, p as useExpandedConsoleOutput, pn as HTMLCellId, pt as outputIsStale, qt as require_client, rt as createCell, s as maybeAddAltairImport, st as getInitialAppMode, tn as isUninstantiated, tt as useCellIds, un as parseDataset, vn as RANDOM_ID_ATTR, w as AccordionContent, wt as normalizeName, xn as atomWithReducer, yn as jsonParseWithSpecialChar, zn as FileText, zt as jotaiJsonStorage, __tla as __tla_0 } from "./html-to-image-DLSOS-bE.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-CnTgI25l.js";
|
|
29
|
+
import { $ as PANEL_TYPES, $t as HtmlOutput, A as prettifyRowCount, At as INDEX_COLUMN_NAME, B as CompactChipRow, Bt as dateToLocalISODateTime, C as downloadSizeLimitAtom, Ct as ColumnChartSpecModel, D as ErrorState, Dt as getPageIndexForRow, E as EmptyState, Et as usePrevious$1, F as ContextMenuItem, Ft as hasFunctionProperty, G as Command, Gt as TabsTrigger, H as DateRangePicker, Ht as Tabs, I as ContextMenuSeparator, It as isRecord, J as CommandItem, Jt as ChartLoadingState, K as CommandEmpty, Kt as ChartErrorState, L as ContextMenuTrigger, Lt as isNullishFilter, M as getUserColumnVisibilityCounts, Mt as TOO_MANY_ROWS, N as ContextMenu, Nt as toFieldTypes, O as LoadingState, Ot as loadTableAndRawData, P as ContextMenuContent, Pt as getMimeValues, Q as ContextAwarePanelItem, Qt as Kbd, R as useInternalStateWithSync, Rt as Maps, S as Filenames, St as ColumnChartContext, T as ColumnPreviewContainer, Tt as useIntersectionObserver, U as Combobox, Ut as TabsContent, V as DatePicker, Vt as dateToLocalISOTime, W as ComboboxItem, Wt as TabsList, X as CommandSeparator, Xt as useOverflowDetection, Y as CommandList, Yt as LazyVegaEmbed, Z as smartMatch, Zt as RenderTextWithLinks, _ as ADD_PRINTING_CLASS, _t as TableRow, an as Funnel, at as slotsController, b as downloadHTMLAsImage, bt as inferFieldTypes, c as Slide, cn as Ellipsis, d as RadioGroupItem, dn as ChevronsUpDown, dt as Provider$1, en as EmotionCacheProvider, et as contextAwarePanelOpen, f as JsonOutput, fn as ChevronsRight, ft as Table, g as InstallPackageButton, gn as ArrowDownWideNarrow, gt as TableHeader, h as DataTable, hn as ChevronLeft, ht as TableHead, in as GripHorizontal, it as SlotNames, j as getColumnCountForDisplay, jt as SELECT_COLUMN_ID, k as prettifyRowColumnCount, kt as loadTableData, l as Switch, ln as Download, m as OutputRenderer, mn as ChevronsDownUp, mt as TableCell, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$6b862160d295c8e, nt as contextAwarePanelType, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as EyeOff, ot as Toggle, p as OutputArea, pn as ChevronsLeft, pt as TableBody, q as CommandInput, qt as ChartInfoState, r as showCodeInRunModeAtom, rn as TextWrap, rt as isCellAwareAtom, t as useNotebookCodeAvailable, tn as $fae977aafc393c5c$export$588937bcd60ade55, tt as contextAwarePanelOwner, u as RadioGroup, un as Code, ut as Fill, v as downloadBlob, vt as NAMELESS_COLUMN_PREFIX, w as ColumnName, wt as DelayMount, x as Progress, xt as renderCellValue, y as downloadByURL, yt as generateColumns, z as useSelectList, zt as dateToLocalISODate, __tla as __tla_2 } from "./code-visibility-CAkgOEA5.js";
|
|
30
|
+
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-CxffarYV.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-BSdZp5Ng.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-D1Z7ZXWh.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-B9ysqk1y.js";
|
|
36
36
|
import { n as Trash, r as Pencil, t as BulkEdit } from "./types-C2Ir191_.js";
|
|
37
37
|
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-DE6tzZf-.js";
|
|
38
38
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
@@ -45,27 +45,27 @@ 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
47
|
import { i as debounce_default, r as KnownQueryParams, t as CSSClasses } from "./constants-T20xxyNf.js";
|
|
48
|
-
import {
|
|
48
|
+
import { D as useEvent_default, E as dequal, S as atom, _ as Provider, a as autoInstantiateAtom, d as AppConfigSchema, g as isIslands, l as useResolvedMarimoConfig, n as useTheme, p as store, s as localeAtom, v as useAtom, y as useAtomValue } from "./useTheme-yGsGEk82.js";
|
|
49
49
|
import { $ as EditorView } from "./dist-U4F-tbMs.js";
|
|
50
50
|
import { t as invariant } from "./invariant-wRzNXIsJ.js";
|
|
51
51
|
import { l as clamp, o as arrayShallowEquals, t as Arrays } from "./arrays-sEtDRoG4.js";
|
|
52
52
|
import { n as once } from "./once-DPuqGUeo.js";
|
|
53
53
|
import "./main-Tj_-QTyF.js";
|
|
54
54
|
import { f as sql } from "./dist-CcWX6tmx.js";
|
|
55
|
-
import "./dist-Dv_Y15yk.js";
|
|
55
|
+
import { a as markdown } from "./dist-Dv_Y15yk.js";
|
|
56
56
|
import "./dist-BSAt6RhH.js";
|
|
57
57
|
import "./dist-D-W5ny5a.js";
|
|
58
58
|
import "./dist-M9Vag9Y0.js";
|
|
59
59
|
import { r as python } from "./dist-C_Y3oV3C.js";
|
|
60
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-WsOgyW_K.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-BMc8itk2.js";
|
|
68
|
+
import { t as useDeepCompareMemoize } from "./useDeepCompareMemoize-ZwmDBRDY.js";
|
|
69
69
|
import "./dist-CIYBwstr.js";
|
|
70
70
|
import "./dist-abid3KgM.js";
|
|
71
71
|
import "./dist-A2846XWO.js";
|
|
@@ -6997,33 +6997,33 @@ let __tla = Promise.all([
|
|
|
6997
6997
|
}), B = C({
|
|
6998
6998
|
height: 0,
|
|
6999
6999
|
width: 0
|
|
7000
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
7000
|
+
}), H = U(), W = U(), G = C(0), q = C(null), fW = C({
|
|
7001
7001
|
column: 0,
|
|
7002
7002
|
row: 0
|
|
7003
|
-
}),
|
|
7004
|
-
Y(x(b, $(
|
|
7005
|
-
D(
|
|
7006
|
-
}), Y(x(ut(b,
|
|
7007
|
-
D(
|
|
7003
|
+
}), pW = U(), Z = U(), mW = C(false), hW = C(0), gW = C(true), _W = C(false), vW = C(false);
|
|
7004
|
+
Y(x(b, $(hW), P(([e2, r2]) => !!r2)), () => {
|
|
7005
|
+
D(gW, false);
|
|
7006
|
+
}), Y(x(ut(b, gW, B, z, hW, _W), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7007
|
+
D(_W, true), Ue(1, () => {
|
|
7008
7008
|
D(H, e2);
|
|
7009
7009
|
}), Et(x(h), () => {
|
|
7010
7010
|
D(r, [
|
|
7011
7011
|
0,
|
|
7012
7012
|
0
|
|
7013
|
-
]), D(
|
|
7013
|
+
]), D(gW, true);
|
|
7014
7014
|
});
|
|
7015
|
-
}), F(x(
|
|
7016
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7017
|
-
D(
|
|
7015
|
+
}), F(x(Z, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(Z), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7016
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(fW, e2.gap), e2.scrollTop > 0 && (D(mW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7017
|
+
D(mW, false);
|
|
7018
7018
|
}), D(m, {
|
|
7019
7019
|
top: e2.scrollTop
|
|
7020
7020
|
})));
|
|
7021
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7021
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(fW, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7022
7022
|
gap: c2,
|
|
7023
7023
|
item: r2,
|
|
7024
7024
|
scrollTop: l2,
|
|
7025
7025
|
viewport: e2
|
|
7026
|
-
}))),
|
|
7026
|
+
}))), pW), F(x(ut(V(I), l, V(fW, Or), V(B, xe), V(z, xe), V(q), V(L), V(mW), V(gW), V(hW)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7027
7027
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7028
7028
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7029
7029
|
if (y2 === 0) {
|
|
@@ -7042,23 +7042,23 @@ let __tla = Promise.all([
|
|
|
7042
7042
|
offsetTop: j2,
|
|
7043
7043
|
top: j2
|
|
7044
7044
|
};
|
|
7045
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7045
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, fW), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7046
7046
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7047
7047
|
return [
|
|
7048
7048
|
d2,
|
|
7049
7049
|
u2
|
|
7050
7050
|
];
|
|
7051
7051
|
}), J(ce)), r);
|
|
7052
|
-
let
|
|
7053
|
-
F(x(h, $(
|
|
7054
|
-
let
|
|
7052
|
+
let yW = C(false);
|
|
7053
|
+
F(x(h, $(yW), k(([e2, r2]) => r2 || e2 !== 0)), yW);
|
|
7054
|
+
let bW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(yW), P(([[e2, r2], c2]) => {
|
|
7055
7055
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7056
7056
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7057
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7057
|
+
}), k(([[, e2]]) => e2 - 1), J())), xW = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), SW = bt(x(V(R), $(mW), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7058
7058
|
endIndex: e2[e2.length - 1].index,
|
|
7059
7059
|
startIndex: e2[0].index
|
|
7060
7060
|
})), J(An), Gt(0)));
|
|
7061
|
-
F(
|
|
7061
|
+
F(SW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, fW), k(([e2, r2, c2, l2, u2]) => {
|
|
7062
7062
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7063
7063
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7064
7064
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7067,7 +7067,7 @@ let __tla = Promise.all([
|
|
|
7067
7067
|
top: g2
|
|
7068
7068
|
};
|
|
7069
7069
|
})), m);
|
|
7070
|
-
let
|
|
7070
|
+
let CW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7071
7071
|
return F(x(j, k((e2) => ({
|
|
7072
7072
|
height: e2.visibleHeight,
|
|
7073
7073
|
width: e2.visibleWidth
|
|
@@ -7076,13 +7076,13 @@ let __tla = Promise.all([
|
|
|
7076
7076
|
data: q,
|
|
7077
7077
|
deviation: G,
|
|
7078
7078
|
footerHeight: u,
|
|
7079
|
-
gap:
|
|
7079
|
+
gap: fW,
|
|
7080
7080
|
headerHeight: d,
|
|
7081
7081
|
increaseViewportBy: e,
|
|
7082
7082
|
initialItemCount: L,
|
|
7083
7083
|
itemDimensions: B,
|
|
7084
7084
|
overscan: c,
|
|
7085
|
-
restoreStateFrom:
|
|
7085
|
+
restoreStateFrom: Z,
|
|
7086
7086
|
scrollBy: f,
|
|
7087
7087
|
scrollContainerState: p,
|
|
7088
7088
|
scrollHeight: W,
|
|
@@ -7098,16 +7098,16 @@ let __tla = Promise.all([
|
|
|
7098
7098
|
windowViewportRect: j,
|
|
7099
7099
|
...y,
|
|
7100
7100
|
gridState: R,
|
|
7101
|
-
horizontalDirection:
|
|
7102
|
-
initialTopMostItemIndex:
|
|
7103
|
-
totalListHeight:
|
|
7101
|
+
horizontalDirection: vW,
|
|
7102
|
+
initialTopMostItemIndex: hW,
|
|
7103
|
+
totalListHeight: CW,
|
|
7104
7104
|
...v,
|
|
7105
|
-
endReached:
|
|
7105
|
+
endReached: bW,
|
|
7106
7106
|
propsReady: S,
|
|
7107
|
-
rangeChanged:
|
|
7108
|
-
startReached:
|
|
7109
|
-
stateChanged:
|
|
7110
|
-
stateRestoreInProgress:
|
|
7107
|
+
rangeChanged: SW,
|
|
7108
|
+
startReached: xW,
|
|
7109
|
+
stateChanged: pW,
|
|
7110
|
+
stateRestoreInProgress: mW,
|
|
7111
7111
|
...M
|
|
7112
7112
|
};
|
|
7113
7113
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7385,22 +7385,22 @@ let __tla = Promise.all([
|
|
|
7385
7385
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7386
7386
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7387
7387
|
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7388
|
-
let
|
|
7388
|
+
let fW = q, pW;
|
|
7389
7389
|
if (r[13] !== G.bulkActions) {
|
|
7390
|
-
if (
|
|
7390
|
+
if (pW = G.bulkActions.map(_temp$26), pW.length > 0) {
|
|
7391
7391
|
let e2;
|
|
7392
7392
|
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7393
7393
|
"data-slot": "select-separator"
|
|
7394
|
-
}, "_bulk_separator"), r[15] = e2) : e2 = r[15],
|
|
7394
|
+
}, "_bulk_separator"), r[15] = e2) : e2 = r[15], pW.push(e2);
|
|
7395
7395
|
}
|
|
7396
|
-
r[13] = G.bulkActions, r[14] =
|
|
7397
|
-
} else
|
|
7398
|
-
let
|
|
7399
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7396
|
+
r[13] = G.bulkActions, r[14] = pW;
|
|
7397
|
+
} else pW = r[14];
|
|
7398
|
+
let Z;
|
|
7399
|
+
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, {
|
|
7400
7400
|
"data-slot": "select-separator"
|
|
7401
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7402
|
-
let
|
|
7403
|
-
r[19] !==
|
|
7401
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = Z) : Z = r[18];
|
|
7402
|
+
let mW = Z, hW;
|
|
7403
|
+
r[19] !== pW || r[20] !== G || r[21] !== mW || r[22] !== w || r[23] !== B || r[24] !== H ? (hW = () => {
|
|
7404
7404
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7405
7405
|
"data-slot": "select-list",
|
|
7406
7406
|
style: {
|
|
@@ -7412,8 +7412,8 @@ let __tla = Promise.all([
|
|
|
7412
7412
|
let r2 = G.visibleOptions[e3];
|
|
7413
7413
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7414
7414
|
children: [
|
|
7415
|
-
e3 === 0 &&
|
|
7416
|
-
|
|
7415
|
+
e3 === 0 && pW,
|
|
7416
|
+
mW(e3),
|
|
7417
7417
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7418
7418
|
option: r2,
|
|
7419
7419
|
checked: G.isChecked(r2.value),
|
|
@@ -7424,7 +7424,7 @@ let __tla = Promise.all([
|
|
|
7424
7424
|
}
|
|
7425
7425
|
});
|
|
7426
7426
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7427
|
-
let c2 =
|
|
7427
|
+
let c2 = mW(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7428
7428
|
option: e3,
|
|
7429
7429
|
checked: G.isChecked(e3.value),
|
|
7430
7430
|
renderOption: w
|
|
@@ -7438,13 +7438,13 @@ let __tla = Promise.all([
|
|
|
7438
7438
|
});
|
|
7439
7439
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7440
7440
|
children: [
|
|
7441
|
-
|
|
7441
|
+
pW,
|
|
7442
7442
|
e2
|
|
7443
7443
|
]
|
|
7444
7444
|
});
|
|
7445
|
-
}, r[19] =
|
|
7446
|
-
let
|
|
7447
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7445
|
+
}, r[19] = pW, r[20] = G, r[21] = mW, r[22] = w, r[23] = B, r[24] = H, r[25] = hW) : hW = r[25];
|
|
7446
|
+
let gW = hW, _W;
|
|
7447
|
+
r[26] !== G.labelOf || r[27] !== I ? (_W = (e2) => {
|
|
7448
7448
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7449
7449
|
e2
|
|
7450
7450
|
];
|
|
@@ -7455,46 +7455,46 @@ let __tla = Promise.all([
|
|
|
7455
7455
|
items: r2.map(G.labelOf),
|
|
7456
7456
|
max: 3
|
|
7457
7457
|
});
|
|
7458
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7459
|
-
let
|
|
7460
|
-
r[29] === G ?
|
|
7461
|
-
let
|
|
7462
|
-
r[31] !== b || r[32] !== R ? (
|
|
7458
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = _W) : _W = r[28];
|
|
7459
|
+
let vW = _W, yW = e["data-testid"], bW;
|
|
7460
|
+
r[29] === G ? bW = r[30] : (bW = (e2) => G.labelOf(e2), r[29] = G, r[30] = bW);
|
|
7461
|
+
let xW = M ? vW : void 0, SW;
|
|
7462
|
+
r[31] !== b || r[32] !== R ? (SW = cn({
|
|
7463
7463
|
"w-full": R
|
|
7464
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7465
|
-
let
|
|
7466
|
-
r[34] === z ?
|
|
7467
|
-
let
|
|
7468
|
-
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] !==
|
|
7464
|
+
}, b), r[31] = b, r[32] = R, r[33] = SW) : SW = r[33];
|
|
7465
|
+
let CW = G.searchQuery, wW = G.setSearchQuery, TW = G.open, EW = G.setOpen, DW;
|
|
7466
|
+
r[34] === z ? DW = r[35] : (DW = renderSlot(z), r[34] = z, r[35] = DW);
|
|
7467
|
+
let OW;
|
|
7468
|
+
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] !== yW || r[44] !== bW || r[45] !== xW || r[46] !== SW || r[47] !== DW ? (OW = {
|
|
7469
7469
|
"data-slot": "select-root",
|
|
7470
|
-
"data-testid":
|
|
7471
|
-
displayValue:
|
|
7472
|
-
renderValue:
|
|
7470
|
+
"data-testid": yW,
|
|
7471
|
+
displayValue: bW,
|
|
7472
|
+
renderValue: xW,
|
|
7473
7473
|
placeholder: I,
|
|
7474
|
-
className:
|
|
7474
|
+
className: SW,
|
|
7475
7475
|
shouldFilter: false,
|
|
7476
|
-
search:
|
|
7477
|
-
onSearchChange:
|
|
7478
|
-
open:
|
|
7479
|
-
onOpenChange:
|
|
7480
|
-
emptyState:
|
|
7476
|
+
search: CW,
|
|
7477
|
+
onSearchChange: wW,
|
|
7478
|
+
open: TW,
|
|
7479
|
+
onOpenChange: EW,
|
|
7480
|
+
emptyState: DW,
|
|
7481
7481
|
disabled: L,
|
|
7482
7482
|
id: S
|
|
7483
|
-
}, 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] =
|
|
7484
|
-
let
|
|
7485
|
-
return r[49] !==
|
|
7486
|
-
...
|
|
7483
|
+
}, 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] = yW, r[44] = bW, r[45] = xW, r[46] = SW, r[47] = DW, r[48] = OW) : OW = r[48];
|
|
7484
|
+
let kW = OW, AW;
|
|
7485
|
+
return r[49] !== kW || r[50] !== fW || r[51] !== d || r[52] !== gW || r[53] !== l ? (AW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7486
|
+
...kW,
|
|
7487
7487
|
multiple: true,
|
|
7488
7488
|
value: l,
|
|
7489
|
-
onValueChange:
|
|
7490
|
-
children:
|
|
7489
|
+
onValueChange: fW,
|
|
7490
|
+
children: gW()
|
|
7491
7491
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7492
|
-
...
|
|
7492
|
+
...kW,
|
|
7493
7493
|
multiple: false,
|
|
7494
7494
|
value: l,
|
|
7495
|
-
onValueChange:
|
|
7496
|
-
children:
|
|
7497
|
-
}), r[49] =
|
|
7495
|
+
onValueChange: fW,
|
|
7496
|
+
children: gW()
|
|
7497
|
+
}), r[49] = kW, r[50] = fW, r[51] = d, r[52] = gW, r[53] = l, r[54] = AW) : AW = r[54], AW;
|
|
7498
7498
|
}
|
|
7499
7499
|
function _temp$26(e) {
|
|
7500
7500
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -8057,7 +8057,7 @@ let __tla = Promise.all([
|
|
|
8057
8057
|
...e
|
|
8058
8058
|
}));
|
|
8059
8059
|
var AnyWidgetSlot = (e) => {
|
|
8060
|
-
let r = (0, import_compiler_runtime$82.c)(
|
|
8060
|
+
let r = (0, import_compiler_runtime$82.c)(18), { jsUrl: c, jsHash: l, modelId: u } = e.data, d = e.host, f;
|
|
8061
8061
|
r[0] !== l || r[1] !== c ? (f = {
|
|
8062
8062
|
jsUrl: c,
|
|
8063
8063
|
jsHash: l
|
|
@@ -8070,20 +8070,23 @@ let __tla = Promise.all([
|
|
|
8070
8070
|
}), r[3] = m, r[4] = e2), e2;
|
|
8071
8071
|
}
|
|
8072
8072
|
if (!p) return null;
|
|
8073
|
-
|
|
8073
|
+
let h;
|
|
8074
|
+
r[5] !== p || r[6] !== c ? (h = resolveAnyWidget(p, c), r[5] = p, r[6] = c, r[7] = h) : h = r[7];
|
|
8075
|
+
let g = h;
|
|
8076
|
+
if (!g) {
|
|
8074
8077
|
let e2;
|
|
8075
|
-
r[
|
|
8078
|
+
r[8] !== p || r[9] !== c ? (e2 = getInvalidAnyWidgetModuleError(p, c), r[8] = p, r[9] = c, r[10] = e2) : e2 = r[10];
|
|
8076
8079
|
let l2;
|
|
8077
|
-
return r[
|
|
8080
|
+
return r[11] === e2 ? l2 = r[12] : (l2 = (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
8078
8081
|
error: e2
|
|
8079
|
-
}), r[
|
|
8082
|
+
}), r[11] = e2, r[12] = l2), l2;
|
|
8080
8083
|
}
|
|
8081
|
-
let
|
|
8082
|
-
return r[
|
|
8083
|
-
widget:
|
|
8084
|
+
let _ = `${l}:${u}`, v;
|
|
8085
|
+
return r[13] !== d || r[14] !== u || r[15] !== _ || r[16] !== g ? (v = (0, import_jsx_runtime.jsx)(LoadedSlot, {
|
|
8086
|
+
widget: g,
|
|
8084
8087
|
modelId: u,
|
|
8085
8088
|
host: d
|
|
8086
|
-
},
|
|
8089
|
+
}, _), r[13] = d, r[14] = u, r[15] = _, r[16] = g, r[17] = v) : v = r[17], v;
|
|
8087
8090
|
};
|
|
8088
8091
|
async function runAnyWidgetModule(e, r, c, l, u) {
|
|
8089
8092
|
l.innerHTML = "";
|
|
@@ -8097,6 +8100,21 @@ let __tla = Promise.all([
|
|
|
8097
8100
|
var _a3, _b3;
|
|
8098
8101
|
return e.default ? typeof e.default == "function" || typeof ((_a3 = e.default) == null ? void 0 : _a3.render) == "function" || typeof ((_b3 = e.default) == null ? void 0 : _b3.initialize) == "function" : false;
|
|
8099
8102
|
}
|
|
8103
|
+
var warnedLegacyNamedExportUrls = /* @__PURE__ */ new Set(), legacyWidgetCache = /* @__PURE__ */ new WeakMap();
|
|
8104
|
+
function resolveAnyWidget(e, r) {
|
|
8105
|
+
if (isAnyWidgetModule(e)) return e.default;
|
|
8106
|
+
if ((e == null ? void 0 : e.default) != null) return null;
|
|
8107
|
+
let c = typeof (e == null ? void 0 : e.render) == "function", l = typeof (e == null ? void 0 : e.initialize) == "function";
|
|
8108
|
+
if (!c && !l) return null;
|
|
8109
|
+
let u = legacyWidgetCache.get(e);
|
|
8110
|
+
if (u) return u;
|
|
8111
|
+
warnedLegacyNamedExportUrls.has(r) || (warnedLegacyNamedExportUrls.add(r), Logger.warn(`Anywidget module at ${r} uses deprecated top-level named exports (\`render\`/\`initialize\`). Per the AFM spec, use a default export instead: \`export default { render }\`. See https://anywidget.dev/en/afm/`));
|
|
8112
|
+
let f = {
|
|
8113
|
+
render: e.render,
|
|
8114
|
+
initialize: e.initialize
|
|
8115
|
+
};
|
|
8116
|
+
return legacyWidgetCache.set(e, f), f;
|
|
8117
|
+
}
|
|
8100
8118
|
function getInvalidAnyWidgetModuleError(e, r) {
|
|
8101
8119
|
let c = "https://anywidget.dev/en/afm/", l = isRecord(e) && hasFunctionProperty(e, "render"), u = isRecord(e) && hasFunctionProperty(e, "initialize");
|
|
8102
8120
|
if (l || u) {
|
|
@@ -8576,7 +8594,7 @@ let __tla = Promise.all([
|
|
|
8576
8594
|
};
|
|
8577
8595
|
}
|
|
8578
8596
|
};
|
|
8579
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
8597
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-CO8WuXGb.js").then((e) => ({
|
|
8580
8598
|
default: e.Chatbot
|
|
8581
8599
|
}))), messageSchema = array(object({
|
|
8582
8600
|
id: string(),
|
|
@@ -8645,7 +8663,7 @@ let __tla = Promise.all([
|
|
|
8645
8663
|
})
|
|
8646
8664
|
});
|
|
8647
8665
|
});
|
|
8648
|
-
var dist_default = '.marimo .gdg-r17m35ur{background-color:var(--gdg-bg-header-has-focus);box-shadow:0 0 0 1px var(--gdg-border-color);color:var(--gdg-text-group-header);font:var(--gdg-header-font-style) var(--gdg-font-family);min-height:var(--r17m35ur-0);border:none;border-radius:9px;outline:none;flex-grow:1;padding:0 8px}.marimo .gdg-c1tqibwd{background-color:var(--gdg-bg-header);align-items:center;padding:0 8px}.marimo .gdg-
|
|
8666
|
+
var dist_default = '.marimo .gdg-r17m35ur{background-color:var(--gdg-bg-header-has-focus);box-shadow:0 0 0 1px var(--gdg-border-color);color:var(--gdg-text-group-header);font:var(--gdg-header-font-style) var(--gdg-font-family);min-height:var(--r17m35ur-0);border:none;border-radius:9px;outline:none;flex-grow:1;padding:0 8px}.marimo .gdg-c1tqibwd{background-color:var(--gdg-bg-header);align-items:center;padding:0 8px;display:flex}.marimo .gdg-s1dgczr6 .dvn-scroller{overflow:var(--s1dgczr6-0);transform:translateZ(0)}.marimo .gdg-s1dgczr6 .dvn-hidden{visibility:hidden}.marimo .gdg-s1dgczr6 .dvn-scroll-inner{pointer-events:none;display:flex}.marimo .gdg-s1dgczr6 .dvn-scroll-inner>*{flex-shrink:0}.marimo .gdg-s1dgczr6 .dvn-scroll-inner .dvn-spacer{flex-grow:1}.marimo .gdg-s1dgczr6 .dvn-scroll-inner .dvn-stack{flex-direction:column;display:flex}.marimo .gdg-s1dgczr6 .dvn-underlay>*{position:absolute;top:0;left:0}.marimo .gdg-s1dgczr6 canvas{outline:none}.marimo .gdg-s1dgczr6 canvas *{height:0}.marimo .gdg-wmyidgi{height:var(--wmyidgi-1);min-width:10px;max-width:100%;min-height:10px;max-height:100%;width:var(--wmyidgi-0);direction:ltr;position:relative;overflow:clip}.marimo .gdg-wmyidgi>:first-child{width:100%;height:100%;position:absolute;top:0;left:0}.marimo .gdg-b1ygi5by{flex-wrap:wrap;margin-top:auto;margin-bottom:auto;display:flex;overflow:auto}.marimo .gdg-b1ygi5by .boe-bubble{background-color:var(--gdg-bg-bubble);border-radius:var(--gdg-rounding-radius,calc(var(--gdg-bubble-height)/2));color:var(--gdg-text-dark);height:var(--gdg-bubble-height);margin:var(--gdg-bubble-margin);padding:0 var(--gdg-bubble-padding);white-space:nowrap;justify-content:center;align-items:center;display:flex}.marimo .gdg-b1ygi5by textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.marimo .gdg-u1rrojo{flex-grow:1;align-items:center;min-height:21px;display:flex}.marimo .gdg-u1rrojo .gdg-link-area{color:var(--gdg-link-color);cursor:pointer;text-overflow:ellipsis;white-space:nowrap;flex-grow:1;flex-shrink:1;margin-right:8px;overflow:hidden;text-decoration:underline!important}.marimo .gdg-u1rrojo .gdg-edit-icon{color:var(--gdg-accent-color);cursor:pointer;flex-shrink:0;justify-content:center;align-items:center;width:32px;display:flex}.marimo .gdg-u1rrojo .gdg-edit-icon>*{width:24px;height:24px}.marimo .gdg-u1rrojo textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.marimo .gdg-m1pnx84e{color:var(--gdg-text-dark);min-width:var(--m1pnx84e-0);justify-content:space-between;align-items:flex-start;width:100%;display:flex;position:relative}.marimo .gdg-m1pnx84e .gdg-g1y0xocz{flex-shrink:1;min-width:0}.marimo .gdg-m1pnx84e .gdg-spacer{flex:1}.marimo .gdg-m1pnx84e .gdg-edit-icon{color:var(--gdg-accent-color);cursor:pointer;height:24px;transition:all "0.125s ease";border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:24px;padding:0;display:flex;position:relative}.marimo .gdg-m1pnx84e .gdg-edit-icon>*{width:16px;height:16px}.marimo .gdg-m1pnx84e .gdg-edit-hover :hover{background-color:var(--gdg-accent-light);transition:background-color .15s}.marimo .gdg-m1pnx84e .gdg-checkmark-hover :hover{background-color:var(--gdg-accent-color);color:#fff}.marimo .gdg-m1pnx84e .gdg-md-edit-textarea{opacity:0;width:0;height:0;margin-top:25px;padding:0;position:relative;top:0;left:0}.marimo .gdg-m1pnx84e .gdg-ml-6{margin-left:6px}.marimo .gdg-d4zsq0x{flex-wrap:wrap;display:flex}.marimo .gdg-d4zsq0x .doe-bubble{background-color:var(--gdg-bg-cell);border-radius:var(--gdg-rounding-radius,6px);color:var(--gdg-text-dark);justify-content:center;align-items:center;height:24px;margin:2px;padding:0 8px;display:flex;box-shadow:0 0 1px #3e415666,0 1px 3px #3e415666}.marimo .gdg-d4zsq0x .doe-bubble img{object-fit:contain;height:16px;margin-right:4px}.marimo .gdg-d4zsq0x textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.marimo .gdg-i2iowwq{height:100%;display:flex}.marimo .gdg-i2iowwq .gdg-centering-container{justify-content:center;align-items:center;height:100%;display:flex}.marimo .gdg-i2iowwq .gdg-centering-container canvas,.marimo .gdg-i2iowwq .gdg-centering-container img{max-height:calc(100vh - var(--overlay-top) - 20px);object-fit:contain;user-select:none}.marimo .gdg-i2iowwq .gdg-centering-container canvas{max-width:380px}.marimo .gdg-i2iowwq .gdg-edit-icon{color:var(--gdg-accent-color);cursor:pointer;justify-content:center;align-items:center;width:48px;height:48px;display:flex;position:absolute;top:12px;right:0}.marimo .gdg-i2iowwq .gdg-edit-icon>*{width:24px;height:24px}.marimo .gdg-i2iowwq textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.marimo .gdg-n15fjm3e{color:var(--gdg-text-dark);margin:6px 0 3px;display:flex}.marimo .gdg-n15fjm3e>input{background-color:var(--gdg-bg-cell);color:var(--gdg-text-dark);padding:0}.marimo .gdg-d19meir1,.marimo .gdg-n15fjm3e>input{font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size)}.marimo .gdg-d19meir1{box-sizing:border-box;--overlay-top:var(--d19meir1-0);left:var(--d19meir1-1);max-height:calc(100vh - var(--d19meir1-4));max-width:400px;min-height:var(--d19meir1-3);min-width:var(--d19meir1-2);text-align:start;top:var(--d19meir1-0);flex-direction:column;width:max-content;display:flex;position:absolute;overflow:hidden}@keyframes glide_fade_in-gdg-d19meir1{0%{opacity:0}to{opacity:1}}.marimo .gdg-d19meir1.gdg-style{background-color:var(--gdg-bg-cell);box-shadow:0 0 0 1px var(--gdg-accent-color),0 0 1px #3e415666,0 6px 12px #3e415626;border-radius:2px;animation:60ms glide_fade_in-gdg-d19meir1}.marimo .gdg-d19meir1.gdg-pad{padding:var(--d19meir1-5) 8.5px 3px}.marimo .gdg-d19meir1 .gdg-clip-region{border-radius:2px;flex-direction:column;flex-grow:1;display:flex;overflow:hidden auto}.marimo .gdg-d19meir1 .gdg-clip-region .gdg-growing-entry{height:100%}.marimo .gdg-d19meir1 .gdg-clip-region input.gdg-input{border:0;outline:none;width:100%}.marimo .gdg-d19meir1 .gdg-clip-region textarea.gdg-input{border:0;outline:none}.marimo .gdg-seveqep{background-color:var(--gdg-bg-cell);border:1px solid var(--gdg-border-color);color:var(--gdg-text-dark);font-size:var(--gdg-editor-font-size);border-radius:6px;padding:8px;animation:.15s forwards gdg-search-fadein-gdg-seveqep;position:absolute;top:4px;right:20px}.marimo .gdg-seveqep.out{animation:.15s forwards gdg-search-fadeout-gdg-seveqep}.marimo .gdg-seveqep .gdg-search-bar-inner{display:flex}.marimo .gdg-seveqep .gdg-search-status{padding-top:4px;font-size:11px}.marimo .gdg-seveqep .gdg-search-progress{background-color:var(--gdg-text-light);height:4px;position:absolute;bottom:0;left:0}.marimo .gdg-seveqep input{background-color:var(--gdg-bg-cell);color:var(--gdg-text-dark);border:0;outline:none;width:220px}.marimo .gdg-seveqep button{color:var(--gdg-text-medium);cursor:pointer;background:0 0;border:none;outline:none;justify-content:center;align-items:center;width:24px;height:24px;padding:0;display:flex}.marimo .gdg-seveqep button:hover{color:var(--gdg-text-dark)}.marimo .gdg-seveqep button .button-icon{width:16px;height:16px}.marimo .gdg-seveqep button:disabled{opacity:.4;pointer-events:none}@keyframes gdg-search-fadeout-gdg-seveqep{0%{transform:translate(0)}to{transform:translate(400px)}}@keyframes gdg-search-fadein-gdg-seveqep{0%{transform:translate(400px)}to{transform:translate(0)}}.marimo .gdg-mnuv029{word-break:break-word;-webkit-touch-callout:default;padding-top:6px}.marimo .gdg-mnuv029>*{margin:0}.marimo .gdg-mnuv029 :last-child{margin-bottom:0}.marimo .gdg-mnuv029 p img{width:100%}.marimo .gdg-izpuzkl{font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);resize:none;white-space:pre-wrap;-webkit-text-fill-color:var(--gdg-text-dark);width:100%;min-width:100%;height:100%;color:var(--gdg-text-dark);background-color:#0000;border:0;border-radius:0;margin:0;padding:0;line-height:16px;position:absolute;inset:0;overflow:hidden}.marimo .gdg-invalid .gdg-izpuzkl{text-decoration:underline #d60606}.marimo .gdg-izpuzkl ::-webkit-input-placeholder{color:var(--gdg-text-light)}.marimo .gdg-izpuzkl ::placeholder{color:var(--gdg-text-light)}.marimo .gdg-izpuzkl :-ms-placeholder-shown{color:var(--gdg-text-light)}.marimo .gdg-izpuzkl ::placeholder{color:var(--gdg-text-light)}.marimo .gdg-s69h75o{visibility:hidden;white-space:pre-wrap;word-wrap:break-word;color:var(--gdg-text-dark);font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);width:max-content;min-width:100%;max-width:100%;margin:0;padding:0 0 2px;line-height:16px}.marimo .gdg-g1y0xocz{margin-top:6px;position:relative}', import_compiler_runtime$77 = require_compiler_runtime();
|
|
8649
8667
|
const LoadingTable = (e) => {
|
|
8650
8668
|
let r = (0, import_compiler_runtime$77.c)(14), { wrapperClassName: c, className: l, pageSize: u } = e, d = u === void 0 ? 10 : u, f;
|
|
8651
8669
|
r[0] === c ? f = r[1] : (f = cn(c, "flex flex-col space-y-2"), r[0] = c, r[1] = f);
|
|
@@ -8725,7 +8743,7 @@ let __tla = Promise.all([
|
|
|
8725
8743
|
"time",
|
|
8726
8744
|
"unknown"
|
|
8727
8745
|
];
|
|
8728
|
-
var import_compiler_runtime$76 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-
|
|
8746
|
+
var import_compiler_runtime$76 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-7wxMGXjG.js").then(async (m) => {
|
|
8729
8747
|
await m.__tla;
|
|
8730
8748
|
return m;
|
|
8731
8749
|
}));
|
|
@@ -9691,7 +9709,7 @@ let __tla = Promise.all([
|
|
|
9691
9709
|
let m2 = get(l, e2);
|
|
9692
9710
|
if (m2) {
|
|
9693
9711
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
9694
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
9712
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : fW(e2, l2), f.mount && w();
|
|
9695
9713
|
}
|
|
9696
9714
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
9697
9715
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -9764,14 +9782,14 @@ let __tla = Promise.all([
|
|
|
9764
9782
|
}, H = () => {
|
|
9765
9783
|
for (let e2 of p.unMount) {
|
|
9766
9784
|
let r2 = get(l, e2);
|
|
9767
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
9785
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && SW(e2);
|
|
9768
9786
|
}
|
|
9769
9787
|
p.unMount = /* @__PURE__ */ new Set();
|
|
9770
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
9788
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(_W(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
9771
9789
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
9772
9790
|
[e2]: r2
|
|
9773
9791
|
} : r2
|
|
9774
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
9792
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), fW = (e2, r2, c2 = {}) => {
|
|
9775
9793
|
let u2 = get(l, e2), f2 = r2;
|
|
9776
9794
|
if (u2) {
|
|
9777
9795
|
let c3 = u2._f;
|
|
@@ -9784,13 +9802,13 @@ let __tla = Promise.all([
|
|
|
9784
9802
|
}
|
|
9785
9803
|
})));
|
|
9786
9804
|
}
|
|
9787
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
9788
|
-
},
|
|
9805
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && gW(e2);
|
|
9806
|
+
}, pW = (e2, r2, c2) => {
|
|
9789
9807
|
for (let u2 in r2) {
|
|
9790
9808
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
9791
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
9809
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? pW(f2, d2, c2) : fW(f2, d2, c2);
|
|
9792
9810
|
}
|
|
9793
|
-
},
|
|
9811
|
+
}, Z = (e2, r2, m2 = {}) => {
|
|
9794
9812
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
9795
9813
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
9796
9814
|
name: e2,
|
|
@@ -9801,7 +9819,7 @@ let __tla = Promise.all([
|
|
|
9801
9819
|
name: e2,
|
|
9802
9820
|
dirtyFields: getDirtyFields(u, d),
|
|
9803
9821
|
isDirty: W(e2, y2)
|
|
9804
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
9822
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? pW(e2, y2, m2) : fW(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
9805
9823
|
...c
|
|
9806
9824
|
}), _.values.next({
|
|
9807
9825
|
name: f.mount ? e2 : void 0,
|
|
@@ -9809,7 +9827,7 @@ let __tla = Promise.all([
|
|
|
9809
9827
|
...d
|
|
9810
9828
|
}
|
|
9811
9829
|
});
|
|
9812
|
-
},
|
|
9830
|
+
}, mW = async (e2) => {
|
|
9813
9831
|
f.mount = true;
|
|
9814
9832
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
9815
9833
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -9843,11 +9861,11 @@ let __tla = Promise.all([
|
|
|
9843
9861
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
9844
9862
|
h2
|
|
9845
9863
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
9846
|
-
S2 && (E2._f.deps &&
|
|
9864
|
+
S2 && (E2._f.deps && gW(E2._f.deps), L(h2, f2, u3, G2));
|
|
9847
9865
|
}
|
|
9848
|
-
},
|
|
9866
|
+
}, hW = (e2, r2) => {
|
|
9849
9867
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
9850
|
-
},
|
|
9868
|
+
}, gW = async (e2, u2 = {}) => {
|
|
9851
9869
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
9852
9870
|
if (r.resolver) {
|
|
9853
9871
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -9866,23 +9884,23 @@ let __tla = Promise.all([
|
|
|
9866
9884
|
isValid: d2
|
|
9867
9885
|
} : {},
|
|
9868
9886
|
errors: c.errors
|
|
9869
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
9870
|
-
},
|
|
9887
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, hW, e2 ? m2 : p.mount), f2;
|
|
9888
|
+
}, _W = (e2) => {
|
|
9871
9889
|
let r2 = {
|
|
9872
9890
|
...f.mount ? d : u
|
|
9873
9891
|
};
|
|
9874
9892
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
9875
|
-
},
|
|
9893
|
+
}, vW = (e2, r2) => ({
|
|
9876
9894
|
invalid: !!get((r2 || c).errors, e2),
|
|
9877
9895
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
9878
9896
|
error: get((r2 || c).errors, e2),
|
|
9879
9897
|
isValidating: !!get(c.validatingFields, e2),
|
|
9880
9898
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
9881
|
-
}),
|
|
9899
|
+
}), yW = (e2) => {
|
|
9882
9900
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
9883
9901
|
errors: e2 ? c.errors : {}
|
|
9884
9902
|
});
|
|
9885
|
-
},
|
|
9903
|
+
}, bW = (e2, r2, u2) => {
|
|
9886
9904
|
let d2 = (get(l, e2, {
|
|
9887
9905
|
_f: {}
|
|
9888
9906
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -9895,9 +9913,9 @@ let __tla = Promise.all([
|
|
|
9895
9913
|
errors: c.errors,
|
|
9896
9914
|
isValid: false
|
|
9897
9915
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
9898
|
-
},
|
|
9916
|
+
}, xW = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
9899
9917
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
9900
|
-
}) : G(e2, r2, true),
|
|
9918
|
+
}) : G(e2, r2, true), SW = (e2, f2 = {}) => {
|
|
9901
9919
|
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);
|
|
9902
9920
|
_.values.next({
|
|
9903
9921
|
values: {
|
|
@@ -9909,9 +9927,9 @@ let __tla = Promise.all([
|
|
|
9909
9927
|
isDirty: W()
|
|
9910
9928
|
} : {}
|
|
9911
9929
|
}), !f2.keepIsValid && w();
|
|
9912
|
-
},
|
|
9930
|
+
}, CW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
9913
9931
|
(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));
|
|
9914
|
-
},
|
|
9932
|
+
}, wW = (e2, c2 = {}) => {
|
|
9915
9933
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
9916
9934
|
return set(l, e2, {
|
|
9917
9935
|
...d2 || {},
|
|
@@ -9925,7 +9943,7 @@ let __tla = Promise.all([
|
|
|
9925
9943
|
mount: true,
|
|
9926
9944
|
...c2
|
|
9927
9945
|
}
|
|
9928
|
-
}), p.mount.add(e2), d2 ?
|
|
9946
|
+
}), p.mount.add(e2), d2 ? CW({
|
|
9929
9947
|
field: d2,
|
|
9930
9948
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
9931
9949
|
name: e2
|
|
@@ -9942,11 +9960,11 @@ let __tla = Promise.all([
|
|
|
9942
9960
|
pattern: getRuleValue(c2.pattern)
|
|
9943
9961
|
} : {},
|
|
9944
9962
|
name: e2,
|
|
9945
|
-
onChange:
|
|
9946
|
-
onBlur:
|
|
9963
|
+
onChange: mW,
|
|
9964
|
+
onBlur: mW,
|
|
9947
9965
|
ref: (m3) => {
|
|
9948
9966
|
if (m3) {
|
|
9949
|
-
|
|
9967
|
+
wW(e2, c2), d2 = get(l, e2);
|
|
9950
9968
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
9951
9969
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
9952
9970
|
set(l, e2, {
|
|
@@ -9972,7 +9990,7 @@ let __tla = Promise.all([
|
|
|
9972
9990
|
} 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);
|
|
9973
9991
|
}
|
|
9974
9992
|
};
|
|
9975
|
-
},
|
|
9993
|
+
}, TW = () => r.shouldFocusError && iterateFieldsByAction(l, hW, p.mount), EW = (e2) => {
|
|
9976
9994
|
isBoolean(e2) && (_.state.next({
|
|
9977
9995
|
disabled: e2
|
|
9978
9996
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -9981,7 +9999,7 @@ let __tla = Promise.all([
|
|
|
9981
9999
|
r3.disabled = u2._f.disabled || e2;
|
|
9982
10000
|
}));
|
|
9983
10001
|
}, 0, false));
|
|
9984
|
-
},
|
|
10002
|
+
}, DW = (e2, u2) => async (f2) => {
|
|
9985
10003
|
let m2;
|
|
9986
10004
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
9987
10005
|
let h2 = cloneObject(d);
|
|
@@ -10003,7 +10021,7 @@ let __tla = Promise.all([
|
|
|
10003
10021
|
}
|
|
10004
10022
|
} else u2 && await u2({
|
|
10005
10023
|
...c.errors
|
|
10006
|
-
}, f2),
|
|
10024
|
+
}, f2), TW(), setTimeout(TW);
|
|
10007
10025
|
if (_.state.next({
|
|
10008
10026
|
isSubmitted: true,
|
|
10009
10027
|
isSubmitting: false,
|
|
@@ -10011,11 +10029,11 @@ let __tla = Promise.all([
|
|
|
10011
10029
|
submitCount: c.submitCount + 1,
|
|
10012
10030
|
errors: c.errors
|
|
10013
10031
|
}), m2) throw m2;
|
|
10014
|
-
},
|
|
10015
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10032
|
+
}, OW = (e2, r2 = {}) => {
|
|
10033
|
+
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({
|
|
10016
10034
|
...c
|
|
10017
10035
|
}));
|
|
10018
|
-
},
|
|
10036
|
+
}, kW = (e2, m2 = {}) => {
|
|
10019
10037
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10020
10038
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10021
10039
|
if (m2.keepDirtyValues) {
|
|
@@ -10023,7 +10041,7 @@ let __tla = Promise.all([
|
|
|
10023
10041
|
...p.mount,
|
|
10024
10042
|
...Object.keys(getDirtyFields(u, d))
|
|
10025
10043
|
]);
|
|
10026
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10044
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : Z(r2, get(b2, r2));
|
|
10027
10045
|
} else {
|
|
10028
10046
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10029
10047
|
let r2 = get(l, e3);
|
|
@@ -10068,25 +10086,25 @@ let __tla = Promise.all([
|
|
|
10068
10086
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10069
10087
|
isSubmitting: false
|
|
10070
10088
|
});
|
|
10071
|
-
},
|
|
10089
|
+
}, AW = (e2, r2) => kW(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10072
10090
|
return {
|
|
10073
10091
|
control: {
|
|
10074
|
-
register:
|
|
10075
|
-
unregister:
|
|
10076
|
-
getFieldState:
|
|
10077
|
-
handleSubmit:
|
|
10078
|
-
setError:
|
|
10092
|
+
register: wW,
|
|
10093
|
+
unregister: SW,
|
|
10094
|
+
getFieldState: vW,
|
|
10095
|
+
handleSubmit: DW,
|
|
10096
|
+
setError: bW,
|
|
10079
10097
|
_executeSchema: R,
|
|
10080
10098
|
_getWatch: G,
|
|
10081
10099
|
_getDirty: W,
|
|
10082
10100
|
_updateValid: w,
|
|
10083
10101
|
_removeUnmounted: H,
|
|
10084
10102
|
_updateFieldArray: E,
|
|
10085
|
-
_updateDisabledField:
|
|
10103
|
+
_updateDisabledField: CW,
|
|
10086
10104
|
_getFieldArray: q,
|
|
10087
|
-
_reset:
|
|
10105
|
+
_reset: kW,
|
|
10088
10106
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10089
|
-
|
|
10107
|
+
AW(e2, r.resetOptions), _.state.next({
|
|
10090
10108
|
isLoading: false
|
|
10091
10109
|
});
|
|
10092
10110
|
}),
|
|
@@ -10096,7 +10114,7 @@ let __tla = Promise.all([
|
|
|
10096
10114
|
...e2
|
|
10097
10115
|
};
|
|
10098
10116
|
},
|
|
10099
|
-
_disableForm:
|
|
10117
|
+
_disableForm: EW,
|
|
10100
10118
|
_subjects: _,
|
|
10101
10119
|
_proxyFormState: g,
|
|
10102
10120
|
_setErrors: j,
|
|
@@ -10137,17 +10155,17 @@ let __tla = Promise.all([
|
|
|
10137
10155
|
};
|
|
10138
10156
|
}
|
|
10139
10157
|
},
|
|
10140
|
-
trigger:
|
|
10141
|
-
register:
|
|
10142
|
-
handleSubmit:
|
|
10143
|
-
watch:
|
|
10144
|
-
setValue:
|
|
10145
|
-
getValues:
|
|
10146
|
-
reset:
|
|
10147
|
-
resetField:
|
|
10148
|
-
clearErrors:
|
|
10149
|
-
unregister:
|
|
10150
|
-
setError:
|
|
10158
|
+
trigger: gW,
|
|
10159
|
+
register: wW,
|
|
10160
|
+
handleSubmit: DW,
|
|
10161
|
+
watch: xW,
|
|
10162
|
+
setValue: Z,
|
|
10163
|
+
getValues: _W,
|
|
10164
|
+
reset: AW,
|
|
10165
|
+
resetField: OW,
|
|
10166
|
+
clearErrors: yW,
|
|
10167
|
+
unregister: SW,
|
|
10168
|
+
setError: bW,
|
|
10151
10169
|
setFocus: (e2, r2 = {}) => {
|
|
10152
10170
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10153
10171
|
if (u2) {
|
|
@@ -10155,7 +10173,7 @@ let __tla = Promise.all([
|
|
|
10155
10173
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10156
10174
|
}
|
|
10157
10175
|
},
|
|
10158
|
-
getFieldState:
|
|
10176
|
+
getFieldState: vW
|
|
10159
10177
|
};
|
|
10160
10178
|
}
|
|
10161
10179
|
function useForm(e = {}) {
|
|
@@ -10882,9 +10900,22 @@ ${c}
|
|
|
10882
10900
|
], sqlExtensions = [
|
|
10883
10901
|
sql(),
|
|
10884
10902
|
EditorView.lineWrapping
|
|
10903
|
+
], markdownExtensions = [
|
|
10904
|
+
markdown(),
|
|
10905
|
+
EditorView.lineWrapping
|
|
10885
10906
|
];
|
|
10907
|
+
function readonlyCodeExtensions(e) {
|
|
10908
|
+
switch (e) {
|
|
10909
|
+
case "sql":
|
|
10910
|
+
return sqlExtensions;
|
|
10911
|
+
case "markdown":
|
|
10912
|
+
return markdownExtensions;
|
|
10913
|
+
default:
|
|
10914
|
+
return pythonExtensions;
|
|
10915
|
+
}
|
|
10916
|
+
}
|
|
10886
10917
|
const ReadonlyCode = (0, import_react.memo)((e) => {
|
|
10887
|
-
let r = (0, import_compiler_runtime$70.c)(
|
|
10918
|
+
let r = (0, import_compiler_runtime$70.c)(43), { theme: c } = useTheme(), l, u, d, f, m, h, g, _;
|
|
10888
10919
|
r[0] === e ? (l = r[1], u = r[2], d = r[3], f = r[4], m = r[5], h = r[6], g = r[7], _ = r[8]) : ({ code: u, className: l, initiallyHideCode: d, showHideCode: h, showCopyCode: g, insertNewCell: f, language: _, ...m } = e, r[0] = e, r[1] = l, r[2] = u, r[3] = d, r[4] = f, r[5] = m, r[6] = h, r[7] = g, r[8] = _);
|
|
10889
10920
|
let v = h === void 0 ? true : h, y = g === void 0 ? true : g, b = _ === void 0 ? "python" : _, [S, w] = (0, import_react.useState)(d), T;
|
|
10890
10921
|
r[9] === l ? T = r[10] : (T = cn("relative hover-actions-parent w-full overflow-hidden", l), r[9] = l, r[10] = T);
|
|
@@ -10916,8 +10947,10 @@ ${c}
|
|
|
10916
10947
|
}), r[23] = O, r[24] = j, r[25] = M, r[26] = I) : I = r[26];
|
|
10917
10948
|
let L = S && "opacity-20 h-8 overflow-hidden", R;
|
|
10918
10949
|
r[27] === L ? R = r[28] : (R = cn("cm", L), r[27] = L, r[28] = R);
|
|
10919
|
-
let z = c === "dark" ? "dark" : "light", B = !S, H
|
|
10920
|
-
r[29]
|
|
10950
|
+
let z = c === "dark" ? "dark" : "light", B = !S, H;
|
|
10951
|
+
r[29] === b ? H = r[30] : (H = readonlyCodeExtensions(b), r[29] = b, r[30] = H);
|
|
10952
|
+
let W;
|
|
10953
|
+
r[31] !== u || r[32] !== m || r[33] !== R || r[34] !== z || r[35] !== B || r[36] !== H ? (W = (0, import_jsx_runtime.jsx)(esm_default, {
|
|
10921
10954
|
...m,
|
|
10922
10955
|
className: R,
|
|
10923
10956
|
theme: z,
|
|
@@ -10926,16 +10959,16 @@ ${c}
|
|
|
10926
10959
|
extensions: H,
|
|
10927
10960
|
value: u,
|
|
10928
10961
|
readOnly: true
|
|
10929
|
-
}), r[
|
|
10962
|
+
}), r[31] = u, r[32] = m, r[33] = R, r[34] = z, r[35] = B, r[36] = H, r[37] = W) : W = r[37];
|
|
10930
10963
|
let G;
|
|
10931
|
-
return r[
|
|
10964
|
+
return r[38] !== W || r[39] !== T || r[40] !== E || r[41] !== I ? (G = (0, import_jsx_runtime.jsxs)("div", {
|
|
10932
10965
|
className: T,
|
|
10933
10966
|
children: [
|
|
10934
10967
|
E,
|
|
10935
10968
|
I,
|
|
10936
10969
|
W
|
|
10937
10970
|
]
|
|
10938
|
-
}), r[
|
|
10971
|
+
}), r[38] = W, r[39] = T, r[40] = E, r[41] = I, r[42] = G) : G = r[42], G;
|
|
10939
10972
|
});
|
|
10940
10973
|
ReadonlyCode.displayName = "ReadonlyCode";
|
|
10941
10974
|
var CopyButton = (e) => {
|
|
@@ -12684,56 +12717,65 @@ ${c}
|
|
|
12684
12717
|
return r ? r.length > 0 : false;
|
|
12685
12718
|
}
|
|
12686
12719
|
var import_compiler_runtime$62 = require_compiler_runtime(), NEW_CHART_TYPE = "bar", DEFAULT_TAB_NAME = "table", CHART_HEIGHT = 290, CHART_MAX_ROWS = 5e4, CHART_MAX_COLUMNS = 50;
|
|
12687
|
-
|
|
12688
|
-
let
|
|
12689
|
-
if (
|
|
12690
|
-
|
|
12691
|
-
|
|
12720
|
+
function mergeIndexFields(e, r) {
|
|
12721
|
+
let c = e ?? [];
|
|
12722
|
+
if (!r || r.length === 0) return c;
|
|
12723
|
+
let l = new Set(c.map(([e2]) => e2)), u = r.filter(([e2]) => !l.has(e2));
|
|
12724
|
+
return [
|
|
12725
|
+
...c,
|
|
12726
|
+
...u
|
|
12727
|
+
];
|
|
12728
|
+
}
|
|
12729
|
+
const TablePanel = ({ cellId: e, data: r, dataTable: c, totalRows: l, columns: u, getDataUrl: d, fieldTypes: f, rowHeaders: p, displayHeader: m, onCloseChartBuilder: h }) => {
|
|
12730
|
+
let [g, _] = useAtom(tabsStorageAtom), v = e ? g.get(e) ?? [] : [], [y, b] = (0, import_react.useState)(DEFAULT_TAB_NAME), [S, T] = (0, import_react.useState)(v.length), E = (0, import_react.useRef)(m);
|
|
12731
|
+
if (m && !E.current && v.length === 0 && e) {
|
|
12732
|
+
E.current = m;
|
|
12733
|
+
let r2 = getChartTabName(0, NEW_CHART_TYPE), c2 = new Map(g);
|
|
12692
12734
|
c2.set(e, [
|
|
12693
12735
|
{
|
|
12694
12736
|
tabName: r2,
|
|
12695
12737
|
chartType: NEW_CHART_TYPE,
|
|
12696
12738
|
config: getChartDefaults()
|
|
12697
12739
|
}
|
|
12698
|
-
]),
|
|
12740
|
+
]), _(c2), T(1), b(r2);
|
|
12699
12741
|
}
|
|
12700
|
-
if (
|
|
12701
|
-
let
|
|
12742
|
+
if (E.current = m, !m || v.length === 0 && !m) return c;
|
|
12743
|
+
let O = () => {
|
|
12702
12744
|
if (!e) return;
|
|
12703
|
-
let r2 = getChartTabName(
|
|
12745
|
+
let r2 = getChartTabName(S, NEW_CHART_TYPE), c2 = new Map(g);
|
|
12704
12746
|
c2.set(e, [
|
|
12705
|
-
...
|
|
12747
|
+
...v,
|
|
12706
12748
|
{
|
|
12707
12749
|
tabName: r2,
|
|
12708
12750
|
chartType: NEW_CHART_TYPE,
|
|
12709
12751
|
config: getChartDefaults()
|
|
12710
12752
|
}
|
|
12711
|
-
]),
|
|
12712
|
-
},
|
|
12753
|
+
]), _(c2), T(S + 1), b(r2);
|
|
12754
|
+
}, j = (r2) => {
|
|
12713
12755
|
if (!e) return;
|
|
12714
|
-
let c2 =
|
|
12715
|
-
u2.set(e, l2),
|
|
12716
|
-
},
|
|
12756
|
+
let c2 = v.findIndex((e2) => e2.tabName === r2), l2 = v.filter((e2) => e2.tabName !== r2), u2 = new Map(g);
|
|
12757
|
+
u2.set(e, l2), _(u2), l2.length === 0 ? h == null ? void 0 : h() : r2 === y && (c2 < l2.length ? b(l2[c2].tabName) : b(l2[l2.length - 1].tabName));
|
|
12758
|
+
}, M = ({ tabName: r2, chartType: c2, chartConfig: l2 }) => {
|
|
12717
12759
|
if (!e) return;
|
|
12718
|
-
let u2 = new Map(
|
|
12719
|
-
u2.set(e,
|
|
12760
|
+
let u2 = new Map(g);
|
|
12761
|
+
u2.set(e, v.map((e2) => e2.tabName === r2 ? {
|
|
12720
12762
|
...e2,
|
|
12721
12763
|
chartType: c2,
|
|
12722
12764
|
config: l2
|
|
12723
|
-
} : e2)),
|
|
12724
|
-
},
|
|
12765
|
+
} : e2)), _(u2);
|
|
12766
|
+
}, I = (r2, c2) => {
|
|
12725
12767
|
if (!e) return;
|
|
12726
|
-
let l2 =
|
|
12768
|
+
let l2 = g.get(e) ?? [], u2 = l2.findIndex((e2) => e2.tabName === r2);
|
|
12727
12769
|
if (u2 === -1) return;
|
|
12728
12770
|
let d2 = l2.map((e2) => e2.tabName === r2 ? {
|
|
12729
12771
|
...e2,
|
|
12730
12772
|
chartType: c2,
|
|
12731
12773
|
tabName: getChartTabName(u2, c2)
|
|
12732
12774
|
} : e2);
|
|
12733
|
-
|
|
12734
|
-
},
|
|
12775
|
+
_(new Map(g).set(e, d2)), b(d2[u2].tabName);
|
|
12776
|
+
}, L = l === "too_many" || l > CHART_MAX_ROWS || u > CHART_MAX_COLUMNS;
|
|
12735
12777
|
return (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
12736
|
-
value:
|
|
12778
|
+
value: y,
|
|
12737
12779
|
className: "-mt-1",
|
|
12738
12780
|
children: [
|
|
12739
12781
|
(0, import_jsx_runtime.jsxs)(TabsList, {
|
|
@@ -12742,19 +12784,19 @@ ${c}
|
|
|
12742
12784
|
(0, import_jsx_runtime.jsx)(TabsTrigger, {
|
|
12743
12785
|
className: "text-xs",
|
|
12744
12786
|
value: DEFAULT_TAB_NAME,
|
|
12745
|
-
onClick: () =>
|
|
12787
|
+
onClick: () => b(DEFAULT_TAB_NAME),
|
|
12746
12788
|
children: "Table"
|
|
12747
12789
|
}),
|
|
12748
|
-
|
|
12790
|
+
v.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
12749
12791
|
className: "text-xs",
|
|
12750
12792
|
value: e2.tabName,
|
|
12751
|
-
onClick: () =>
|
|
12793
|
+
onClick: () => b(e2.tabName),
|
|
12752
12794
|
children: [
|
|
12753
12795
|
e2.tabName,
|
|
12754
12796
|
(0, import_jsx_runtime.jsx)(X, {
|
|
12755
12797
|
className: "w-3 h-3 ml-1 mt-[0.5px] hover:text-red-500 hover:font-semibold",
|
|
12756
12798
|
onClick: (r3) => {
|
|
12757
|
-
r3.stopPropagation(),
|
|
12799
|
+
r3.stopPropagation(), j(e2.tabName);
|
|
12758
12800
|
}
|
|
12759
12801
|
})
|
|
12760
12802
|
]
|
|
@@ -12762,7 +12804,7 @@ ${c}
|
|
|
12762
12804
|
(0, import_jsx_runtime.jsx)(Button, {
|
|
12763
12805
|
variant: "text",
|
|
12764
12806
|
size: "icon",
|
|
12765
|
-
onClick:
|
|
12807
|
+
onClick: O,
|
|
12766
12808
|
title: "Add chart",
|
|
12767
12809
|
children: "+"
|
|
12768
12810
|
})
|
|
@@ -12773,7 +12815,7 @@ ${c}
|
|
|
12773
12815
|
value: DEFAULT_TAB_NAME,
|
|
12774
12816
|
children: c
|
|
12775
12817
|
}),
|
|
12776
|
-
|
|
12818
|
+
v.map((e2, l2) => (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
12777
12819
|
value: e2.tabName,
|
|
12778
12820
|
className: "h-[400px] mt-0",
|
|
12779
12821
|
children: (0, import_jsx_runtime.jsx)(ChartPanel, {
|
|
@@ -12781,18 +12823,18 @@ ${c}
|
|
|
12781
12823
|
chartConfig: e2.config,
|
|
12782
12824
|
chartType: e2.chartType,
|
|
12783
12825
|
saveChart: (r2) => {
|
|
12784
|
-
|
|
12826
|
+
M({
|
|
12785
12827
|
tabName: e2.tabName,
|
|
12786
12828
|
chartType: e2.chartType,
|
|
12787
12829
|
chartConfig: r2
|
|
12788
12830
|
});
|
|
12789
12831
|
},
|
|
12790
12832
|
saveChartType: (r2) => {
|
|
12791
|
-
|
|
12833
|
+
I(e2.tabName, r2);
|
|
12792
12834
|
},
|
|
12793
12835
|
getDataUrl: d,
|
|
12794
|
-
fieldTypes: f ?? inferFieldTypes(c.props.data),
|
|
12795
|
-
isLargeDataset:
|
|
12836
|
+
fieldTypes: mergeIndexFields(f ?? inferFieldTypes(c.props.data), p),
|
|
12837
|
+
isLargeDataset: L
|
|
12796
12838
|
})
|
|
12797
12839
|
}, l2))
|
|
12798
12840
|
]
|
|
@@ -13201,7 +13243,7 @@ ${c}
|
|
|
13201
13243
|
}), r[8] = h, r[9] = _), _;
|
|
13202
13244
|
};
|
|
13203
13245
|
function ColumnExplorerPanel({ previewColumn: e, fieldTypes: r, totalRows: c, totalColumns: l, tableId: u, table: d }) {
|
|
13204
|
-
let [f, p] = (0, import_react.useState)(""), { locale: m } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), h = r == null ? void 0 : r.filter(([e2]) => !(e2 === "__select__" || e2 === "_marimo_row_id" || e2.startsWith("__m_column__"))), g = h == null ? void 0 : h.filter(([e2]) => smartMatch(f, e2)), { totalColumns: _, hiddenColumns: v } = getColumnCountForDisplay(d, l), {
|
|
13246
|
+
let [f, p] = (0, import_react.useState)(""), { locale: m } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), h = r == null ? void 0 : r.filter(([e2]) => !(e2 === "__select__" || e2 === "_marimo_row_id" || e2.startsWith("__m_column__"))), g = h == null ? void 0 : h.filter(([e2]) => smartMatch(f, e2)), { totalColumns: _, hiddenColumns: v } = getColumnCountForDisplay(d, l), { visible: y } = getUserColumnVisibilityCounts(d), { rowsAndColumns: b, hiddenSuffix: S } = prettifyRowColumnCount({
|
|
13205
13247
|
numRows: c,
|
|
13206
13248
|
totalColumns: _,
|
|
13207
13249
|
locale: m,
|
|
@@ -13213,22 +13255,55 @@ ${c}
|
|
|
13213
13255
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
13214
13256
|
className: "text-xs font-semibold ml-2 flex items-center gap-1",
|
|
13215
13257
|
children: [
|
|
13216
|
-
|
|
13258
|
+
b,
|
|
13217
13259
|
v > 0 && (0, import_jsx_runtime.jsx)("span", {
|
|
13218
|
-
children:
|
|
13260
|
+
children: S
|
|
13219
13261
|
}),
|
|
13220
13262
|
(0, import_jsx_runtime.jsx)(CopyClipboardIcon, {
|
|
13221
13263
|
tooltip: "Copy column names",
|
|
13222
13264
|
value: (h == null ? void 0 : h.map(([e2]) => e2).join(",\n")) || "",
|
|
13223
13265
|
className: "h-3 w-3"
|
|
13224
13266
|
}),
|
|
13225
|
-
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
|
|
13229
|
-
|
|
13230
|
-
|
|
13231
|
-
|
|
13267
|
+
(0, import_jsx_runtime.jsxs)("div", {
|
|
13268
|
+
className: "ml-auto flex items-center gap-1",
|
|
13269
|
+
children: [
|
|
13270
|
+
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
13271
|
+
content: "Show all columns",
|
|
13272
|
+
delayDuration: 400,
|
|
13273
|
+
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
13274
|
+
type: "button",
|
|
13275
|
+
variant: "ghost",
|
|
13276
|
+
size: "xs",
|
|
13277
|
+
className: "gap-1",
|
|
13278
|
+
disabled: v === 0,
|
|
13279
|
+
onClick: () => d.toggleAllColumnsVisible(true),
|
|
13280
|
+
children: [
|
|
13281
|
+
(0, import_jsx_runtime.jsx)(Eye, {
|
|
13282
|
+
className: "w-3 h-3"
|
|
13283
|
+
}),
|
|
13284
|
+
"Show all"
|
|
13285
|
+
]
|
|
13286
|
+
})
|
|
13287
|
+
}),
|
|
13288
|
+
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
13289
|
+
content: "Hide all columns",
|
|
13290
|
+
delayDuration: 400,
|
|
13291
|
+
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
13292
|
+
type: "button",
|
|
13293
|
+
variant: "ghost",
|
|
13294
|
+
size: "xs",
|
|
13295
|
+
className: "gap-1",
|
|
13296
|
+
disabled: y === 0,
|
|
13297
|
+
onClick: () => d.toggleAllColumnsVisible(false),
|
|
13298
|
+
children: [
|
|
13299
|
+
(0, import_jsx_runtime.jsx)(EyeOff, {
|
|
13300
|
+
className: "w-3 h-3"
|
|
13301
|
+
}),
|
|
13302
|
+
"Hide all"
|
|
13303
|
+
]
|
|
13304
|
+
})
|
|
13305
|
+
})
|
|
13306
|
+
]
|
|
13232
13307
|
})
|
|
13233
13308
|
]
|
|
13234
13309
|
}),
|
|
@@ -14329,7 +14404,7 @@ ${c}
|
|
|
14329
14404
|
return l;
|
|
14330
14405
|
};
|
|
14331
14406
|
const LoadingDataTableComponent = (0, import_react.memo)((e) => {
|
|
14332
|
-
let r = (0, import_compiler_runtime$57.c)(
|
|
14407
|
+
let r = (0, import_compiler_runtime$57.c)(119), c;
|
|
14333
14408
|
r[0] === e.host ? c = r[1] : (c = findCellId(e.host), r[0] = e.host, r[1] = c);
|
|
14334
14409
|
let l = c, u = e.search, f = e.setValue, p;
|
|
14335
14410
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = [], r[2] = p) : p = r[2];
|
|
@@ -14406,21 +14481,21 @@ ${c}
|
|
|
14406
14481
|
_.pageSize,
|
|
14407
14482
|
_.pageIndex
|
|
14408
14483
|
], 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];
|
|
14409
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
14410
|
-
r[48] !==
|
|
14411
|
-
let
|
|
14412
|
-
r[51] !==
|
|
14413
|
-
|
|
14414
|
-
|
|
14415
|
-
|
|
14416
|
-
|
|
14417
|
-
|
|
14484
|
+
let { data: W, error: G, isPending: q, isFetching: fW } = useAsyncData(z, H), pW = useAtomValue(downloadSizeLimitAtom), Z;
|
|
14485
|
+
r[48] !== pW || r[49] !== e ? (Z = async () => !pW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = pW, r[49] = e, r[50] = Z) : Z = r[50];
|
|
14486
|
+
let mW = e.showDownload, hW = e.get_size_bytes, gW = e.lazy, _W = e.totalRows, vW = useDeepCompareMemoize(w), yW = useDeepCompareMemoize(m), bW;
|
|
14487
|
+
r[51] !== pW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== vW || r[58] !== yW ? (bW = [
|
|
14488
|
+
pW,
|
|
14489
|
+
mW,
|
|
14490
|
+
hW,
|
|
14491
|
+
gW,
|
|
14492
|
+
_W,
|
|
14418
14493
|
y,
|
|
14419
|
-
|
|
14420
|
-
|
|
14421
|
-
], r[51] =
|
|
14422
|
-
let { data:
|
|
14423
|
-
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (
|
|
14494
|
+
vW,
|
|
14495
|
+
yW
|
|
14496
|
+
], r[51] = pW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = vW, r[58] = yW, r[59] = bW) : bW = r[59];
|
|
14497
|
+
let { data: xW, isPending: SW } = useAsyncData(Z, bW), CW = xW ?? null, wW = !!pW && e.showDownload && SW, TW;
|
|
14498
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (TW = async (e2) => ({
|
|
14424
14499
|
rows: await loadTableData((await u({
|
|
14425
14500
|
page_number: e2,
|
|
14426
14501
|
page_size: 1,
|
|
@@ -14429,17 +14504,17 @@ ${c}
|
|
|
14429
14504
|
filters: filtersToFilterGroup(w),
|
|
14430
14505
|
max_columns: null
|
|
14431
14506
|
})).data)
|
|
14432
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
14433
|
-
let
|
|
14434
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
14507
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = TW) : TW = r[64];
|
|
14508
|
+
let EW = TW, DW;
|
|
14509
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (DW = () => {
|
|
14435
14510
|
v(_temp4$4);
|
|
14436
|
-
}, r[65] =
|
|
14437
|
-
let
|
|
14438
|
-
r[66] ===
|
|
14439
|
-
|
|
14440
|
-
], r[66] =
|
|
14441
|
-
let
|
|
14442
|
-
r[68] === e ?
|
|
14511
|
+
}, r[65] = DW) : DW = r[65];
|
|
14512
|
+
let OW = W == null ? void 0 : W.totalRows, kW;
|
|
14513
|
+
r[66] === OW ? kW = r[67] : (kW = [
|
|
14514
|
+
OW
|
|
14515
|
+
], r[66] = OW, r[67] = kW), (0, import_react.useEffect)(DW, kW);
|
|
14516
|
+
let AW;
|
|
14517
|
+
r[68] === e ? AW = r[69] : (AW = async () => {
|
|
14443
14518
|
let r2 = isStaticNotebook();
|
|
14444
14519
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
14445
14520
|
data: null,
|
|
@@ -14448,22 +14523,22 @@ ${c}
|
|
|
14448
14523
|
value_counts: {},
|
|
14449
14524
|
show_charts: false
|
|
14450
14525
|
} : e.get_column_summaries({});
|
|
14451
|
-
}, r[68] = e, r[69] =
|
|
14452
|
-
let
|
|
14453
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
14526
|
+
}, r[68] = e, r[69] = AW);
|
|
14527
|
+
let jW;
|
|
14528
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (jW = [
|
|
14454
14529
|
e.get_column_summaries,
|
|
14455
14530
|
e.showColumnSummaries,
|
|
14456
14531
|
w,
|
|
14457
14532
|
y,
|
|
14458
14533
|
e.totalRows,
|
|
14459
14534
|
e.data
|
|
14460
|
-
], 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] =
|
|
14461
|
-
let { data:
|
|
14462
|
-
if (r[77] ===
|
|
14463
|
-
|
|
14464
|
-
},
|
|
14465
|
-
|
|
14466
|
-
], r[77] =
|
|
14535
|
+
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] = jW) : jW = r[76];
|
|
14536
|
+
let { data: MW, error: NW } = useAsyncData(AW, jW), PW, FW;
|
|
14537
|
+
if (r[77] === NW ? (PW = r[78], FW = r[79]) : (PW = () => {
|
|
14538
|
+
NW && Logger.error(NW);
|
|
14539
|
+
}, FW = [
|
|
14540
|
+
NW
|
|
14541
|
+
], r[77] = NW, r[78] = PW, r[79] = FW), (0, import_react.useEffect)(PW, FW), q) {
|
|
14467
14542
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14468
14543
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14469
14544
|
milliseconds: 200,
|
|
@@ -14472,7 +14547,7 @@ ${c}
|
|
|
14472
14547
|
})
|
|
14473
14548
|
}), r[80] = c2, r[81] = l2), l2;
|
|
14474
14549
|
}
|
|
14475
|
-
let
|
|
14550
|
+
let IW = null;
|
|
14476
14551
|
if (G) {
|
|
14477
14552
|
Logger.error(G);
|
|
14478
14553
|
let e2;
|
|
@@ -14488,61 +14563,62 @@ ${c}
|
|
|
14488
14563
|
children: G.message || "An unknown error occurred"
|
|
14489
14564
|
})
|
|
14490
14565
|
]
|
|
14491
|
-
}), r[82] = G, r[83] = e2),
|
|
14566
|
+
}), r[82] = G, r[83] = e2), IW = e2;
|
|
14492
14567
|
}
|
|
14493
|
-
let
|
|
14494
|
-
r[84] === O ?
|
|
14568
|
+
let LW;
|
|
14569
|
+
r[84] === O ? LW = r[85] : (LW = () => {
|
|
14495
14570
|
j(!O);
|
|
14496
|
-
}, r[84] = O, r[85] =
|
|
14497
|
-
let
|
|
14498
|
-
r[86] !== l || r[87] !==
|
|
14571
|
+
}, r[84] = O, r[85] = LW);
|
|
14572
|
+
let RW = LW, zW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, BW = W == null ? void 0 : W.rawRows, VW = fW && !q, HW = (W == null ? void 0 : W.totalRows) ?? e.totalRows, UW = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, WW = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, GW;
|
|
14573
|
+
r[86] !== l || r[87] !== MW || r[88] !== O || r[89] !== w || r[90] !== EW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== CW || r[95] !== wW || r[96] !== m || r[97] !== zW || r[98] !== BW || r[99] !== VW || r[100] !== HW || r[101] !== UW || r[102] !== WW || r[103] !== RW ? (GW = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
14499
14574
|
...e,
|
|
14500
|
-
data:
|
|
14501
|
-
rawData:
|
|
14502
|
-
columnSummaries:
|
|
14575
|
+
data: zW,
|
|
14576
|
+
rawData: BW,
|
|
14577
|
+
columnSummaries: MW,
|
|
14503
14578
|
sorting: m,
|
|
14504
14579
|
setSorting: h,
|
|
14505
14580
|
searchQuery: y,
|
|
14506
14581
|
setSearchQuery: b,
|
|
14507
14582
|
filters: w,
|
|
14508
14583
|
setFilters: T,
|
|
14509
|
-
reloading:
|
|
14510
|
-
totalRows:
|
|
14511
|
-
sizeBytes:
|
|
14512
|
-
sizeBytesIsLoading:
|
|
14584
|
+
reloading: VW,
|
|
14585
|
+
totalRows: HW,
|
|
14586
|
+
sizeBytes: CW,
|
|
14587
|
+
sizeBytesIsLoading: wW,
|
|
14513
14588
|
paginationState: _,
|
|
14514
14589
|
setPaginationState: v,
|
|
14515
|
-
cellStyles:
|
|
14516
|
-
cellHoverTexts:
|
|
14517
|
-
toggleDisplayHeader:
|
|
14590
|
+
cellStyles: UW,
|
|
14591
|
+
cellHoverTexts: WW,
|
|
14592
|
+
toggleDisplayHeader: RW,
|
|
14518
14593
|
isChartBuilderOpen: O,
|
|
14519
|
-
getRow:
|
|
14594
|
+
getRow: EW,
|
|
14520
14595
|
cellId: l,
|
|
14521
14596
|
maxHeight: e.maxHeight
|
|
14522
|
-
}), r[86] = l, r[87] =
|
|
14523
|
-
let
|
|
14524
|
-
r[105] !== l || r[106] !==
|
|
14597
|
+
}), r[86] = l, r[87] = MW, r[88] = O, r[89] = w, r[90] = EW, r[91] = _, r[92] = e, r[93] = y, r[94] = CW, r[95] = wW, r[96] = m, r[97] = zW, r[98] = BW, r[99] = VW, r[100] = HW, r[101] = UW, r[102] = WW, r[103] = RW, r[104] = GW) : GW = r[104];
|
|
14598
|
+
let KW = GW, qW;
|
|
14599
|
+
r[105] !== l || r[106] !== KW || 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 ? (qW = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
14525
14600
|
displayHeader: O,
|
|
14526
14601
|
onCloseChartBuilder: () => j(false),
|
|
14527
14602
|
data: (W == null ? void 0 : W.rows) || [],
|
|
14528
14603
|
columns: e.totalColumns,
|
|
14529
14604
|
totalRows: e.totalRows,
|
|
14530
|
-
dataTable:
|
|
14605
|
+
dataTable: KW,
|
|
14531
14606
|
getDataUrl: e.get_data_url,
|
|
14532
14607
|
fieldTypes: e.fieldTypes,
|
|
14608
|
+
rowHeaders: e.rowHeaders,
|
|
14533
14609
|
cellId: l
|
|
14534
|
-
}) :
|
|
14535
|
-
let
|
|
14536
|
-
return r[
|
|
14610
|
+
}) : KW, r[105] = l, r[106] = KW, 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] = qW) : qW = r[115];
|
|
14611
|
+
let JW;
|
|
14612
|
+
return r[116] !== IW || r[117] !== qW ? (JW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14537
14613
|
children: [
|
|
14538
|
-
|
|
14539
|
-
|
|
14614
|
+
IW,
|
|
14615
|
+
qW
|
|
14540
14616
|
]
|
|
14541
|
-
}), r[
|
|
14617
|
+
}), r[116] = IW, r[117] = qW, r[118] = JW) : JW = r[118], JW;
|
|
14542
14618
|
});
|
|
14543
14619
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
14544
|
-
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:
|
|
14545
|
-
let
|
|
14620
|
+
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: fW, setFilters: pW, reloading: Z, freezeColumnsLeft: mW, freezeColumnsRight: hW, hiddenColumns: gW, textJustifyColumns: _W, wrappedColumns: vW, columnWidths: yW, headerTooltip: bW, totalColumns: xW, get_row_ids: SW, cellStyles: CW, hoverTemplate: wW, cellHoverTexts: TW, toggleDisplayHeader: EW, isChartBuilderOpen: DW, calculate_top_k_rows: OW, preview_column: kW, getRow: AW, cellId: jW, maxHeight: MW }) => {
|
|
14621
|
+
let NW = (0, import_react.useId)(), { locale: PW } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [FW, IW] = (0, import_react.useState)(0), { isPanelOpen: LW, isAnyPanelOpen: RW, togglePanel: zW, panelType: BW, setPanelType: VW } = usePanelOwnership(NW, jW), HW = isStaticNotebook(), UW = (0, import_react.useMemo)(() => {
|
|
14546
14622
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
14547
14623
|
let e2 = toFieldTypes(O);
|
|
14548
14624
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -14551,13 +14627,13 @@ ${c}
|
|
|
14551
14627
|
}, [
|
|
14552
14628
|
O,
|
|
14553
14629
|
L
|
|
14554
|
-
]),
|
|
14630
|
+
]), WW = useDeepCompareMemoize(O ?? inferFieldTypes(r)), GW = (0, import_react.useMemo)(() => f === "all" ? WW : WW.slice(0, f), [
|
|
14555
14631
|
f,
|
|
14556
|
-
|
|
14557
|
-
]),
|
|
14632
|
+
WW
|
|
14633
|
+
]), KW = (0, import_react.useMemo)(() => {
|
|
14558
14634
|
let e2 = {};
|
|
14559
14635
|
if (r && r.length > 0) {
|
|
14560
|
-
for (let [c2, l2] of
|
|
14636
|
+
for (let [c2, l2] of GW) if (l2[0] === "number") {
|
|
14561
14637
|
let l3 = 0;
|
|
14562
14638
|
for (let e3 of r) {
|
|
14563
14639
|
let r2 = e3[c2];
|
|
@@ -14572,95 +14648,95 @@ ${c}
|
|
|
14572
14648
|
return e2;
|
|
14573
14649
|
}, [
|
|
14574
14650
|
r,
|
|
14575
|
-
|
|
14576
|
-
]),
|
|
14577
|
-
O || (w = false),
|
|
14578
|
-
let
|
|
14579
|
-
rowHeaders:
|
|
14651
|
+
GW
|
|
14652
|
+
]), qW = useDeepCompareMemoize(T), JW = useDeepCompareMemoize(_W), YW = useDeepCompareMemoize(vW), XW = useDeepCompareMemoize(yW), ZW = useDeepCompareMemoize(UW), QW = useDeepCompareMemoize(KW), $W = GW.length;
|
|
14653
|
+
O || (w = false), HW && (m = null);
|
|
14654
|
+
let eG = (0, import_react.useMemo)(() => generateColumns({
|
|
14655
|
+
rowHeaders: qW,
|
|
14580
14656
|
selection: m,
|
|
14581
|
-
chartSpecModel:
|
|
14582
|
-
fieldTypes:
|
|
14583
|
-
textJustifyColumns:
|
|
14584
|
-
wrappedColumns:
|
|
14585
|
-
columnWidths:
|
|
14586
|
-
headerTooltip:
|
|
14657
|
+
chartSpecModel: ZW,
|
|
14658
|
+
fieldTypes: GW,
|
|
14659
|
+
textJustifyColumns: JW,
|
|
14660
|
+
wrappedColumns: YW,
|
|
14661
|
+
columnWidths: XW,
|
|
14662
|
+
headerTooltip: bW,
|
|
14587
14663
|
showDataTypes: w,
|
|
14588
|
-
calculateTopKRows:
|
|
14589
|
-
fractionDigitsByColumn:
|
|
14664
|
+
calculateTopKRows: OW,
|
|
14665
|
+
fractionDigitsByColumn: QW
|
|
14590
14666
|
}), [
|
|
14591
14667
|
m,
|
|
14592
14668
|
w,
|
|
14593
|
-
|
|
14594
|
-
|
|
14595
|
-
|
|
14596
|
-
|
|
14597
|
-
|
|
14598
|
-
|
|
14599
|
-
|
|
14600
|
-
|
|
14601
|
-
|
|
14602
|
-
]),
|
|
14669
|
+
ZW,
|
|
14670
|
+
qW,
|
|
14671
|
+
GW,
|
|
14672
|
+
JW,
|
|
14673
|
+
YW,
|
|
14674
|
+
XW,
|
|
14675
|
+
bW,
|
|
14676
|
+
OW,
|
|
14677
|
+
QW
|
|
14678
|
+
]), tG = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
14603
14679
|
e2,
|
|
14604
14680
|
true
|
|
14605
14681
|
])), [
|
|
14606
14682
|
h
|
|
14607
|
-
]),
|
|
14683
|
+
]), nG = useEvent_default((e2) => {
|
|
14608
14684
|
if (m === "single") {
|
|
14609
14685
|
let r2 = Functions.asUpdater(e2)({});
|
|
14610
14686
|
z(Object.keys(r2).slice(0, 1));
|
|
14611
14687
|
}
|
|
14612
14688
|
if (m === "multi") {
|
|
14613
|
-
let r2 = Functions.asUpdater(e2)(
|
|
14689
|
+
let r2 = Functions.asUpdater(e2)(tG);
|
|
14614
14690
|
z(Object.keys(r2));
|
|
14615
14691
|
}
|
|
14616
|
-
}),
|
|
14617
|
-
if (
|
|
14692
|
+
}), rG = useEvent_default((e2) => {
|
|
14693
|
+
if (IW(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
14618
14694
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
14619
14695
|
r2 !== null && M((e3) => ({
|
|
14620
14696
|
...e3,
|
|
14621
14697
|
pageIndex: r2
|
|
14622
14698
|
}));
|
|
14623
|
-
}),
|
|
14624
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
14625
|
-
}),
|
|
14626
|
-
if (!(!
|
|
14699
|
+
}), iG = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), aG = useEvent_default((e2) => {
|
|
14700
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(iG).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(iG));
|
|
14701
|
+
}), oG = m === "multi" || m === "single", sG = y && !!kW, cG = isInVscodeExtension(), lG = isIslands(), uG = (0, import_react.useMemo)(() => {
|
|
14702
|
+
if (!(!RW || !(b || sG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
14627
14703
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
14628
|
-
rowIdx:
|
|
14629
|
-
setRowIdx:
|
|
14704
|
+
rowIdx: FW,
|
|
14705
|
+
setRowIdx: rG,
|
|
14630
14706
|
totalRows: l,
|
|
14631
|
-
fieldTypes:
|
|
14632
|
-
getRow:
|
|
14633
|
-
isSelectable:
|
|
14634
|
-
isRowSelected: !!
|
|
14635
|
-
handleRowSelectionChange:
|
|
14636
|
-
previewColumn:
|
|
14637
|
-
totalColumns:
|
|
14638
|
-
tableId:
|
|
14707
|
+
fieldTypes: WW,
|
|
14708
|
+
getRow: AW,
|
|
14709
|
+
isSelectable: oG,
|
|
14710
|
+
isRowSelected: !!tG[FW],
|
|
14711
|
+
handleRowSelectionChange: nG,
|
|
14712
|
+
previewColumn: kW,
|
|
14713
|
+
totalColumns: xW,
|
|
14714
|
+
tableId: NW,
|
|
14639
14715
|
table: e2,
|
|
14640
|
-
showRowExplorer: b && !
|
|
14641
|
-
showColumnExplorer:
|
|
14642
|
-
activeTab:
|
|
14643
|
-
onTabChange:
|
|
14716
|
+
showRowExplorer: b && !cG,
|
|
14717
|
+
showColumnExplorer: sG && !cG,
|
|
14718
|
+
activeTab: BW,
|
|
14719
|
+
onTabChange: VW
|
|
14644
14720
|
})
|
|
14645
14721
|
});
|
|
14646
14722
|
}, [
|
|
14647
|
-
|
|
14723
|
+
RW,
|
|
14648
14724
|
b,
|
|
14649
|
-
|
|
14650
|
-
|
|
14651
|
-
|
|
14725
|
+
sG,
|
|
14726
|
+
FW,
|
|
14727
|
+
rG,
|
|
14652
14728
|
l,
|
|
14653
|
-
|
|
14654
|
-
|
|
14655
|
-
|
|
14656
|
-
|
|
14657
|
-
|
|
14658
|
-
|
|
14659
|
-
|
|
14660
|
-
|
|
14661
|
-
|
|
14662
|
-
|
|
14663
|
-
|
|
14729
|
+
WW,
|
|
14730
|
+
AW,
|
|
14731
|
+
oG,
|
|
14732
|
+
tG,
|
|
14733
|
+
nG,
|
|
14734
|
+
kW,
|
|
14735
|
+
xW,
|
|
14736
|
+
NW,
|
|
14737
|
+
cG,
|
|
14738
|
+
BW,
|
|
14739
|
+
VW
|
|
14664
14740
|
]);
|
|
14665
14741
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14666
14742
|
children: [
|
|
@@ -14672,27 +14748,27 @@ ${c}
|
|
|
14672
14748
|
" rows."
|
|
14673
14749
|
]
|
|
14674
14750
|
}),
|
|
14675
|
-
|
|
14751
|
+
$W < xW && $W > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14676
14752
|
className: "mb-1 rounded",
|
|
14677
14753
|
children: [
|
|
14678
14754
|
"Result clipped. Showing ",
|
|
14679
|
-
|
|
14755
|
+
$W,
|
|
14680
14756
|
" of ",
|
|
14681
|
-
|
|
14757
|
+
xW,
|
|
14682
14758
|
" columns."
|
|
14683
14759
|
]
|
|
14684
14760
|
}),
|
|
14685
|
-
|
|
14761
|
+
HW && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14686
14762
|
className: "mb-1 rounded",
|
|
14687
14763
|
children: [
|
|
14688
14764
|
"Showing the first ",
|
|
14689
14765
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14690
|
-
children: prettyNumber(r.length,
|
|
14766
|
+
children: prettyNumber(r.length, PW)
|
|
14691
14767
|
}),
|
|
14692
14768
|
" ",
|
|
14693
14769
|
"of ",
|
|
14694
14770
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14695
|
-
children: prettyNumber(l,
|
|
14771
|
+
children: prettyNumber(l, PW)
|
|
14696
14772
|
}),
|
|
14697
14773
|
" rows. Increase the table's ",
|
|
14698
14774
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -14706,7 +14782,7 @@ ${c}
|
|
|
14706
14782
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
14707
14783
|
}),
|
|
14708
14784
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
14709
|
-
value:
|
|
14785
|
+
value: UW,
|
|
14710
14786
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
14711
14787
|
label: e,
|
|
14712
14788
|
align: "top",
|
|
@@ -14714,14 +14790,14 @@ ${c}
|
|
|
14714
14790
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
14715
14791
|
data: r,
|
|
14716
14792
|
rawData: c,
|
|
14717
|
-
columns:
|
|
14793
|
+
columns: eG,
|
|
14718
14794
|
className: R,
|
|
14719
|
-
maxHeight:
|
|
14795
|
+
maxHeight: MW,
|
|
14720
14796
|
sorting: B,
|
|
14721
14797
|
totalRows: l,
|
|
14722
14798
|
sizeBytes: u,
|
|
14723
14799
|
sizeBytesIsLoading: d,
|
|
14724
|
-
totalColumns:
|
|
14800
|
+
totalColumns: xW,
|
|
14725
14801
|
manualSorting: true,
|
|
14726
14802
|
setSorting: H,
|
|
14727
14803
|
pagination: p,
|
|
@@ -14729,37 +14805,37 @@ ${c}
|
|
|
14729
14805
|
selection: m,
|
|
14730
14806
|
paginationState: j,
|
|
14731
14807
|
setPaginationState: M,
|
|
14732
|
-
rowSelection:
|
|
14733
|
-
cellSelection:
|
|
14734
|
-
cellStyling:
|
|
14735
|
-
hoverTemplate:
|
|
14736
|
-
cellHoverTexts:
|
|
14808
|
+
rowSelection: tG,
|
|
14809
|
+
cellSelection: iG,
|
|
14810
|
+
cellStyling: CW,
|
|
14811
|
+
hoverTemplate: wW,
|
|
14812
|
+
cellHoverTexts: TW,
|
|
14737
14813
|
downloadAs: _ ? I : void 0,
|
|
14738
14814
|
showSearch: W,
|
|
14739
14815
|
searchQuery: G,
|
|
14740
14816
|
onSearchQueryChange: q,
|
|
14741
14817
|
showFilters: g,
|
|
14742
|
-
filters:
|
|
14743
|
-
onFiltersChange:
|
|
14744
|
-
calculateTopKRows:
|
|
14745
|
-
reloading:
|
|
14746
|
-
onRowSelectionChange:
|
|
14747
|
-
freezeColumnsLeft:
|
|
14748
|
-
freezeColumnsRight:
|
|
14749
|
-
hiddenColumns:
|
|
14750
|
-
onCellSelectionChange:
|
|
14751
|
-
getRowIds:
|
|
14752
|
-
toggleDisplayHeader:
|
|
14753
|
-
showChartBuilder: S && !
|
|
14754
|
-
isChartBuilderOpen:
|
|
14818
|
+
filters: fW,
|
|
14819
|
+
onFiltersChange: pW,
|
|
14820
|
+
calculateTopKRows: OW,
|
|
14821
|
+
reloading: Z,
|
|
14822
|
+
onRowSelectionChange: nG,
|
|
14823
|
+
freezeColumnsLeft: mW,
|
|
14824
|
+
freezeColumnsRight: hW,
|
|
14825
|
+
hiddenColumns: gW,
|
|
14826
|
+
onCellSelectionChange: aG,
|
|
14827
|
+
getRowIds: SW,
|
|
14828
|
+
toggleDisplayHeader: EW,
|
|
14829
|
+
showChartBuilder: S && !lG,
|
|
14830
|
+
isChartBuilderOpen: DW,
|
|
14755
14831
|
showPageSizeSelector: v,
|
|
14756
|
-
showTableExplorer: (b ||
|
|
14757
|
-
togglePanel:
|
|
14758
|
-
isPanelOpen:
|
|
14759
|
-
isAnyPanelOpen:
|
|
14760
|
-
viewedRowIdx:
|
|
14761
|
-
onViewedRowChange: (e2) =>
|
|
14762
|
-
renderTableExplorerPanel:
|
|
14832
|
+
showTableExplorer: (b || sG) && !cG && !lG,
|
|
14833
|
+
togglePanel: zW,
|
|
14834
|
+
isPanelOpen: LW,
|
|
14835
|
+
isAnyPanelOpen: RW,
|
|
14836
|
+
viewedRowIdx: FW,
|
|
14837
|
+
onViewedRowChange: (e2) => IW(e2),
|
|
14838
|
+
renderTableExplorerPanel: uG
|
|
14763
14839
|
})
|
|
14764
14840
|
})
|
|
14765
14841
|
})
|
|
@@ -15118,7 +15194,7 @@ ${c}
|
|
|
15118
15194
|
fullWidth: m,
|
|
15119
15195
|
children: T
|
|
15120
15196
|
}), r[20] = m, r[21] = g, r[22] = c, r[23] = T, r[24] = E) : E = r[24], E;
|
|
15121
|
-
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
15197
|
+
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-DXBx_nQg.js"));
|
|
15122
15198
|
const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object({
|
|
15123
15199
|
label: string().nullish(),
|
|
15124
15200
|
data: string()
|
|
@@ -16811,29 +16887,29 @@ ${c}
|
|
|
16811
16887
|
], r[2] = S, r[3] = w);
|
|
16812
16888
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
16813
16889
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
16814
|
-
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,
|
|
16815
|
-
r[6] === d ?
|
|
16890
|
+
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, fW] = (0, import_react.useState)(f || EMPTY), pW = (0, import_react.useRef)(null), Z;
|
|
16891
|
+
r[6] === d ? Z = r[7] : (Z = (e2) => {
|
|
16816
16892
|
var _a3;
|
|
16817
|
-
d && e2 !== "transform" && ((_a3 =
|
|
16818
|
-
}, r[6] = d, r[7] =
|
|
16819
|
-
let
|
|
16820
|
-
r[8] === q ?
|
|
16821
|
-
|
|
16822
|
-
}, r[8] = q, r[9] =
|
|
16823
|
-
let
|
|
16824
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
16825
|
-
let e2 =
|
|
16893
|
+
d && e2 !== "transform" && ((_a3 = pW.current) == null ? void 0 : _a3.submit());
|
|
16894
|
+
}, r[6] = d, r[7] = Z);
|
|
16895
|
+
let mW = Z, hW = (0, import_react.useRef)(q), gW;
|
|
16896
|
+
r[8] === q ? gW = r[9] : (gW = () => {
|
|
16897
|
+
hW.current = q;
|
|
16898
|
+
}, r[8] = q, r[9] = gW), (0, import_react.useEffect)(gW);
|
|
16899
|
+
let _W;
|
|
16900
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (_W = () => {
|
|
16901
|
+
let e2 = hW.current;
|
|
16826
16902
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
16827
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
16828
|
-
let
|
|
16829
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
16903
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = _W) : _W = r[12];
|
|
16904
|
+
let vW = f == null ? void 0 : f.transforms.length, yW;
|
|
16905
|
+
r[13] !== T || r[14] !== p || r[15] !== vW ? (yW = [
|
|
16830
16906
|
T,
|
|
16831
|
-
|
|
16832
|
-
|
|
16907
|
+
vW,
|
|
16908
|
+
hW,
|
|
16833
16909
|
p
|
|
16834
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
16835
|
-
let
|
|
16836
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16910
|
+
], r[13] = T, r[14] = p, r[15] = vW, r[16] = yW) : yW = r[16], (0, import_react.useEffect)(_W, yW);
|
|
16911
|
+
let bW;
|
|
16912
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (bW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16837
16913
|
value: "transform",
|
|
16838
16914
|
className: "text-xs py-1",
|
|
16839
16915
|
children: [
|
|
@@ -16842,9 +16918,9 @@ ${c}
|
|
|
16842
16918
|
}),
|
|
16843
16919
|
"Transform"
|
|
16844
16920
|
]
|
|
16845
|
-
}), r[17] =
|
|
16846
|
-
let
|
|
16847
|
-
r[18] === H ?
|
|
16921
|
+
}), r[17] = bW) : bW = r[17];
|
|
16922
|
+
let xW;
|
|
16923
|
+
r[18] === H ? xW = r[19] : (xW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16848
16924
|
value: "python-code",
|
|
16849
16925
|
className: "text-xs py-1",
|
|
16850
16926
|
children: [
|
|
@@ -16853,9 +16929,9 @@ ${c}
|
|
|
16853
16929
|
}),
|
|
16854
16930
|
"Python Code"
|
|
16855
16931
|
]
|
|
16856
|
-
}), r[18] = H, r[19] =
|
|
16857
|
-
let
|
|
16858
|
-
r[20] === W ?
|
|
16932
|
+
}), r[18] = H, r[19] = xW);
|
|
16933
|
+
let SW;
|
|
16934
|
+
r[20] === W ? SW = r[21] : (SW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16859
16935
|
value: "sql-code",
|
|
16860
16936
|
className: "text-xs py-1",
|
|
16861
16937
|
children: [
|
|
@@ -16864,54 +16940,54 @@ ${c}
|
|
|
16864
16940
|
}),
|
|
16865
16941
|
"SQL Code"
|
|
16866
16942
|
]
|
|
16867
|
-
}), r[20] = W, r[21] =
|
|
16868
|
-
let
|
|
16869
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16943
|
+
}), r[20] = W, r[21] = SW);
|
|
16944
|
+
let wW;
|
|
16945
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (wW = (0, import_jsx_runtime.jsx)("div", {
|
|
16870
16946
|
className: "grow"
|
|
16871
|
-
}), r[22] =
|
|
16872
|
-
let
|
|
16873
|
-
r[23] !==
|
|
16947
|
+
}), r[22] = wW) : wW = r[22];
|
|
16948
|
+
let TW;
|
|
16949
|
+
r[23] !== xW || r[24] !== SW ? (TW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
16874
16950
|
className: "h-8",
|
|
16875
16951
|
children: [
|
|
16876
|
-
|
|
16877
|
-
|
|
16878
|
-
|
|
16879
|
-
|
|
16952
|
+
bW,
|
|
16953
|
+
xW,
|
|
16954
|
+
SW,
|
|
16955
|
+
wW
|
|
16880
16956
|
]
|
|
16881
|
-
}), r[23] =
|
|
16882
|
-
let
|
|
16883
|
-
r[26] === j ?
|
|
16957
|
+
}), r[23] = xW, r[24] = SW, r[25] = TW) : TW = r[25];
|
|
16958
|
+
let EW;
|
|
16959
|
+
r[26] === j ? EW = r[27] : (EW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16884
16960
|
size: "small"
|
|
16885
|
-
}), r[26] = j, r[27] =
|
|
16886
|
-
let
|
|
16887
|
-
r[28] !==
|
|
16961
|
+
}), r[26] = j, r[27] = EW);
|
|
16962
|
+
let DW;
|
|
16963
|
+
r[28] !== TW || r[29] !== EW ? (DW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16888
16964
|
className: "flex items-center gap-2",
|
|
16889
16965
|
children: [
|
|
16890
|
-
|
|
16891
|
-
|
|
16966
|
+
TW,
|
|
16967
|
+
EW
|
|
16892
16968
|
]
|
|
16893
|
-
}), r[28] =
|
|
16894
|
-
let
|
|
16895
|
-
r[31] !== p || r[32] !== f ? (
|
|
16896
|
-
dequal(e2, f) || (p(e2),
|
|
16897
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
16898
|
-
let
|
|
16899
|
-
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !==
|
|
16969
|
+
}), r[28] = TW, r[29] = EW, r[30] = DW) : DW = r[30];
|
|
16970
|
+
let OW;
|
|
16971
|
+
r[31] !== p || r[32] !== f ? (OW = (e2) => {
|
|
16972
|
+
dequal(e2, f) || (p(e2), fW(e2));
|
|
16973
|
+
}, r[31] = p, r[32] = f, r[33] = OW) : OW = r[33];
|
|
16974
|
+
let kW;
|
|
16975
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== OW ? (kW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16900
16976
|
value: "transform",
|
|
16901
16977
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16902
16978
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
16903
|
-
ref:
|
|
16979
|
+
ref: pW,
|
|
16904
16980
|
initialValue: q,
|
|
16905
16981
|
columns: c,
|
|
16906
|
-
onChange:
|
|
16907
|
-
onInvalidChange:
|
|
16982
|
+
onChange: OW,
|
|
16983
|
+
onInvalidChange: fW,
|
|
16908
16984
|
getColumnValues: h,
|
|
16909
16985
|
columnTypesPerStep: B,
|
|
16910
16986
|
lazy: d
|
|
16911
16987
|
})
|
|
16912
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
16913
|
-
let
|
|
16914
|
-
r[41] === H ?
|
|
16988
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = OW, r[40] = kW) : kW = r[40];
|
|
16989
|
+
let AW;
|
|
16990
|
+
r[41] === H ? AW = r[42] : (AW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16915
16991
|
value: "python-code",
|
|
16916
16992
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16917
16993
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16920,9 +16996,9 @@ ${c}
|
|
|
16920
16996
|
code: H,
|
|
16921
16997
|
language: "python"
|
|
16922
16998
|
})
|
|
16923
|
-
}), r[41] = H, r[42] =
|
|
16924
|
-
let
|
|
16925
|
-
r[43] === W ?
|
|
16999
|
+
}), r[41] = H, r[42] = AW);
|
|
17000
|
+
let jW;
|
|
17001
|
+
r[43] === W ? jW = r[44] : (jW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16926
17002
|
value: "sql-code",
|
|
16927
17003
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16928
17004
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16931,35 +17007,35 @@ ${c}
|
|
|
16931
17007
|
code: W,
|
|
16932
17008
|
language: "sql"
|
|
16933
17009
|
})
|
|
16934
|
-
}), r[43] = W, r[44] =
|
|
16935
|
-
let
|
|
16936
|
-
r[45] !==
|
|
17010
|
+
}), r[43] = W, r[44] = jW);
|
|
17011
|
+
let MW;
|
|
17012
|
+
r[45] !== mW || r[46] !== DW || r[47] !== kW || r[48] !== AW || r[49] !== jW ? (MW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
16937
17013
|
defaultValue: "transform",
|
|
16938
|
-
onValueChange:
|
|
17014
|
+
onValueChange: mW,
|
|
16939
17015
|
children: [
|
|
16940
|
-
|
|
16941
|
-
|
|
16942
|
-
|
|
16943
|
-
|
|
17016
|
+
DW,
|
|
17017
|
+
kW,
|
|
17018
|
+
AW,
|
|
17019
|
+
jW
|
|
16944
17020
|
]
|
|
16945
|
-
}), r[45] =
|
|
16946
|
-
let
|
|
16947
|
-
r[51] === O ?
|
|
17021
|
+
}), r[45] = mW, r[46] = DW, r[47] = kW, r[48] = AW, r[49] = jW, r[50] = MW) : MW = r[50];
|
|
17022
|
+
let NW;
|
|
17023
|
+
r[51] === O ? NW = r[52] : (NW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
16948
17024
|
error: O
|
|
16949
|
-
}), r[51] = O, r[52] =
|
|
16950
|
-
let
|
|
16951
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
17025
|
+
}), r[51] = O, r[52] = NW);
|
|
17026
|
+
let PW = I || "", FW = L ?? 0, IW = G ?? 0, LW = R || Arrays.EMPTY, RW = L && L > 5 || false, zW;
|
|
17027
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== PW || r[61] !== FW || r[62] !== IW || r[63] !== LW || r[64] !== RW ? (zW = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
16952
17028
|
label: null,
|
|
16953
17029
|
className: "rounded-b border-x border-b",
|
|
16954
|
-
data:
|
|
17030
|
+
data: PW,
|
|
16955
17031
|
hasStableRowId: false,
|
|
16956
|
-
totalRows:
|
|
16957
|
-
totalColumns:
|
|
17032
|
+
totalRows: FW,
|
|
17033
|
+
totalColumns: IW,
|
|
16958
17034
|
maxColumns: "all",
|
|
16959
17035
|
pageSize: l,
|
|
16960
17036
|
pagination: true,
|
|
16961
17037
|
fieldTypes: z,
|
|
16962
|
-
rowHeaders:
|
|
17038
|
+
rowHeaders: LW,
|
|
16963
17039
|
showDownload: u,
|
|
16964
17040
|
download_as: _,
|
|
16965
17041
|
get_size_bytes: v,
|
|
@@ -16969,7 +17045,7 @@ ${c}
|
|
|
16969
17045
|
showColumnSummaries: false,
|
|
16970
17046
|
showDataTypes: true,
|
|
16971
17047
|
get_column_summaries: getColumnSummaries,
|
|
16972
|
-
showPageSizeSelector:
|
|
17048
|
+
showPageSizeSelector: RW,
|
|
16973
17049
|
showColumnExplorer: false,
|
|
16974
17050
|
showRowExplorer: true,
|
|
16975
17051
|
showChartBuilder: false,
|
|
@@ -16978,15 +17054,15 @@ ${c}
|
|
|
16978
17054
|
selection: null,
|
|
16979
17055
|
lazy: false,
|
|
16980
17056
|
host: y
|
|
16981
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
16982
|
-
let
|
|
16983
|
-
return r[66] !==
|
|
17057
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = PW, r[61] = FW, r[62] = IW, r[63] = LW, r[64] = RW, r[65] = zW) : zW = r[65];
|
|
17058
|
+
let BW;
|
|
17059
|
+
return r[66] !== MW || r[67] !== NW || r[68] !== zW ? (BW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16984
17060
|
children: [
|
|
16985
|
-
|
|
16986
|
-
|
|
16987
|
-
|
|
17061
|
+
MW,
|
|
17062
|
+
NW,
|
|
17063
|
+
zW
|
|
16988
17064
|
]
|
|
16989
|
-
}), r[66] =
|
|
17065
|
+
}), r[66] = MW, r[67] = NW, r[68] = zW, r[69] = BW) : BW = r[69], BW;
|
|
16990
17066
|
});
|
|
16991
17067
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
16992
17068
|
function getColumnSummaries() {
|
|
@@ -17170,30 +17246,30 @@ ${c}
|
|
|
17170
17246
|
}, [
|
|
17171
17247
|
B
|
|
17172
17248
|
]);
|
|
17173
|
-
let H = `${g}::${I}`, [
|
|
17174
|
-
|
|
17249
|
+
let H = `${g}::${I}`, [G, q] = (0, import_react.useState)(H);
|
|
17250
|
+
G !== H && (q(H), E(0)), (0, import_react.useLayoutEffect)(() => {
|
|
17175
17251
|
var _a4;
|
|
17176
17252
|
M.current && (M.current = false, (_a4 = O.current[0]) == null ? void 0 : _a4.focus());
|
|
17177
17253
|
}, [
|
|
17178
17254
|
H
|
|
17179
17255
|
]);
|
|
17180
|
-
let
|
|
17256
|
+
let fW = (R == null ? void 0 : R.files) ?? [], pW = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", mW = l === "file" || l === "all", hW = fW.filter((e2) => Z && e2.is_directory || mW && !e2.is_directory), gW = hW.length > 0 && hW.every((e2) => pW.has(e2.path));
|
|
17181
17257
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
17182
17258
|
kind: "danger",
|
|
17183
17259
|
children: z.message
|
|
17184
17260
|
});
|
|
17185
|
-
let
|
|
17261
|
+
let _W = PathBuilder.guessDeliminator(c).deliminator, vW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
17186
17262
|
children: e2.path
|
|
17187
17263
|
}, e2.id));
|
|
17188
|
-
function
|
|
17264
|
+
function yW(e2) {
|
|
17189
17265
|
var _a4;
|
|
17190
17266
|
if (v) return;
|
|
17191
17267
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
17192
|
-
if (g ===
|
|
17268
|
+
if (g === _W) {
|
|
17193
17269
|
y(false);
|
|
17194
17270
|
return;
|
|
17195
17271
|
}
|
|
17196
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
17272
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = _W);
|
|
17197
17273
|
}
|
|
17198
17274
|
let r2 = e2.length < c.length;
|
|
17199
17275
|
if (f && r2) {
|
|
@@ -17206,7 +17282,7 @@ ${c}
|
|
|
17206
17282
|
}
|
|
17207
17283
|
M.current = ((_a4 = j.current) == null ? void 0 : _a4.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
17208
17284
|
}
|
|
17209
|
-
function
|
|
17285
|
+
function bW({ path: e2, name: r2, isDirectory: c2 }) {
|
|
17210
17286
|
return {
|
|
17211
17287
|
id: e2,
|
|
17212
17288
|
name: r2,
|
|
@@ -17214,27 +17290,27 @@ ${c}
|
|
|
17214
17290
|
is_directory: c2
|
|
17215
17291
|
};
|
|
17216
17292
|
}
|
|
17217
|
-
function
|
|
17218
|
-
let f2 =
|
|
17293
|
+
function xW({ path: c2, name: l2, isDirectory: d2 }) {
|
|
17294
|
+
let f2 = bW({
|
|
17219
17295
|
path: c2,
|
|
17220
17296
|
name: l2,
|
|
17221
17297
|
isDirectory: d2
|
|
17222
17298
|
});
|
|
17223
|
-
|
|
17299
|
+
pW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
17224
17300
|
...e,
|
|
17225
17301
|
f2
|
|
17226
17302
|
] : [
|
|
17227
17303
|
f2
|
|
17228
17304
|
]);
|
|
17229
17305
|
}
|
|
17230
|
-
function
|
|
17306
|
+
function CW() {
|
|
17231
17307
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
17232
17308
|
}
|
|
17233
|
-
function
|
|
17309
|
+
function wW() {
|
|
17234
17310
|
let c2 = [];
|
|
17235
|
-
for (let e2 of
|
|
17236
|
-
if (!Z && e2.is_directory ||
|
|
17237
|
-
let r2 =
|
|
17311
|
+
for (let e2 of fW) {
|
|
17312
|
+
if (!Z && e2.is_directory || pW.has(e2.path)) continue;
|
|
17313
|
+
let r2 = bW({
|
|
17238
17314
|
path: e2.path,
|
|
17239
17315
|
name: e2.name,
|
|
17240
17316
|
isDirectory: e2.is_directory
|
|
@@ -17246,20 +17322,20 @@ ${c}
|
|
|
17246
17322
|
...c2
|
|
17247
17323
|
]);
|
|
17248
17324
|
}
|
|
17249
|
-
let
|
|
17325
|
+
let TW = [
|
|
17250
17326
|
{
|
|
17251
17327
|
key: "parent",
|
|
17252
17328
|
name: PARENT_DIRECTORY,
|
|
17253
17329
|
Icon: CornerLeftUp,
|
|
17254
17330
|
isSelected: false,
|
|
17255
17331
|
canSelect: false,
|
|
17256
|
-
onPrimary: () =>
|
|
17332
|
+
onPrimary: () => yW(PARENT_DIRECTORY),
|
|
17257
17333
|
onToggleSelect: null
|
|
17258
17334
|
},
|
|
17259
|
-
...
|
|
17335
|
+
...fW.map((e2) => {
|
|
17260
17336
|
let r2 = e2.path;
|
|
17261
17337
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17262
|
-
let c2 = Z && e2.is_directory ||
|
|
17338
|
+
let c2 = Z && e2.is_directory || mW && !e2.is_directory, l2 = pW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => xW({
|
|
17263
17339
|
path: r2,
|
|
17264
17340
|
name: e2.name,
|
|
17265
17341
|
isDirectory: e2.is_directory
|
|
@@ -17270,46 +17346,46 @@ ${c}
|
|
|
17270
17346
|
Icon: FILE_ICON[u2],
|
|
17271
17347
|
isSelected: l2,
|
|
17272
17348
|
canSelect: c2,
|
|
17273
|
-
onPrimary: e2.is_directory ? () =>
|
|
17349
|
+
onPrimary: e2.is_directory ? () => yW(r2) : c2 ? d2 : () => {
|
|
17274
17350
|
},
|
|
17275
17351
|
onToggleSelect: c2 ? d2 : null
|
|
17276
17352
|
};
|
|
17277
17353
|
})
|
|
17278
17354
|
];
|
|
17279
|
-
function
|
|
17355
|
+
function EW(e2) {
|
|
17280
17356
|
var _a4;
|
|
17281
17357
|
E(e2), (_a4 = O.current[e2]) == null ? void 0 : _a4.focus();
|
|
17282
17358
|
}
|
|
17283
|
-
function
|
|
17359
|
+
function DW(e2, r2) {
|
|
17284
17360
|
var _a4, _b3;
|
|
17285
|
-
let c2 =
|
|
17361
|
+
let c2 = TW.length - 1;
|
|
17286
17362
|
switch (e2.key) {
|
|
17287
17363
|
case "ArrowDown":
|
|
17288
|
-
e2.preventDefault(),
|
|
17364
|
+
e2.preventDefault(), EW(Math.min(r2 + 1, c2));
|
|
17289
17365
|
break;
|
|
17290
17366
|
case "ArrowUp":
|
|
17291
|
-
e2.preventDefault(),
|
|
17367
|
+
e2.preventDefault(), EW(Math.max(r2 - 1, 0));
|
|
17292
17368
|
break;
|
|
17293
17369
|
case "Home":
|
|
17294
|
-
e2.preventDefault(),
|
|
17370
|
+
e2.preventDefault(), EW(0);
|
|
17295
17371
|
break;
|
|
17296
17372
|
case "End":
|
|
17297
|
-
e2.preventDefault(),
|
|
17373
|
+
e2.preventDefault(), EW(c2);
|
|
17298
17374
|
break;
|
|
17299
17375
|
case "Enter":
|
|
17300
|
-
e2.preventDefault(),
|
|
17376
|
+
e2.preventDefault(), TW[r2].onPrimary();
|
|
17301
17377
|
break;
|
|
17302
17378
|
case " ":
|
|
17303
|
-
e2.preventDefault(), (_b3 = (_a4 =
|
|
17379
|
+
e2.preventDefault(), (_b3 = (_a4 = TW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a4);
|
|
17304
17380
|
break;
|
|
17305
17381
|
}
|
|
17306
17382
|
}
|
|
17307
|
-
let { parentDirectories:
|
|
17383
|
+
let { parentDirectories: OW } = getProtocolAndParentDirectories({
|
|
17308
17384
|
path: g,
|
|
17309
|
-
delimiter:
|
|
17385
|
+
delimiter: _W,
|
|
17310
17386
|
initialPath: c,
|
|
17311
17387
|
restrictNavigation: f
|
|
17312
|
-
}),
|
|
17388
|
+
}), kW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
17313
17389
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
17314
17390
|
children: [
|
|
17315
17391
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -17319,7 +17395,7 @@ ${c}
|
|
|
17319
17395
|
(() => {
|
|
17320
17396
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
17321
17397
|
children: renderHTML({
|
|
17322
|
-
html: d ?? `Select ${
|
|
17398
|
+
html: d ?? `Select ${kW.join(" and ", 2)}...`
|
|
17323
17399
|
})
|
|
17324
17400
|
});
|
|
17325
17401
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -17333,8 +17409,8 @@ ${c}
|
|
|
17333
17409
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
17334
17410
|
size: "xs",
|
|
17335
17411
|
variant: "link",
|
|
17336
|
-
onClick:
|
|
17337
|
-
children:
|
|
17412
|
+
onClick: gW ? CW : wW,
|
|
17413
|
+
children: gW ? "Deselect all" : "Select all"
|
|
17338
17414
|
})
|
|
17339
17415
|
})
|
|
17340
17416
|
]
|
|
@@ -17344,15 +17420,15 @@ ${c}
|
|
|
17344
17420
|
className: "mt-2 w-full",
|
|
17345
17421
|
placeholder: g,
|
|
17346
17422
|
value: g,
|
|
17347
|
-
onChange: (e2) =>
|
|
17348
|
-
children:
|
|
17423
|
+
onChange: (e2) => yW(e2.target.value),
|
|
17424
|
+
children: OW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
17349
17425
|
value: e2,
|
|
17350
17426
|
children: e2
|
|
17351
17427
|
}, e2))
|
|
17352
17428
|
}),
|
|
17353
17429
|
R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
17354
17430
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
17355
|
-
children: R.is_truncated ? `Showing ${
|
|
17431
|
+
children: R.is_truncated ? `Showing ${fW.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
17356
17432
|
}),
|
|
17357
17433
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
17358
17434
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
@@ -17381,14 +17457,14 @@ ${c}
|
|
|
17381
17457
|
"aria-label": "File browser",
|
|
17382
17458
|
"aria-multiselectable": u,
|
|
17383
17459
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17384
|
-
children:
|
|
17460
|
+
children: TW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17385
17461
|
role: "row",
|
|
17386
17462
|
ref: (e3) => {
|
|
17387
17463
|
O.current[r2] = e3;
|
|
17388
17464
|
},
|
|
17389
17465
|
tabIndex: r2 === T ? 0 : -1,
|
|
17390
17466
|
onFocus: () => E(r2),
|
|
17391
|
-
onKeyDown: (e3) =>
|
|
17467
|
+
onKeyDown: (e3) => DW(e3, r2),
|
|
17392
17468
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
17393
17469
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
17394
17470
|
}),
|
|
@@ -17431,7 +17507,7 @@ ${c}
|
|
|
17431
17507
|
children: [
|
|
17432
17508
|
e.length,
|
|
17433
17509
|
" ",
|
|
17434
|
-
|
|
17510
|
+
kW.join(" or ", e.length),
|
|
17435
17511
|
" ",
|
|
17436
17512
|
"selected"
|
|
17437
17513
|
]
|
|
@@ -17451,7 +17527,7 @@ ${c}
|
|
|
17451
17527
|
marginBlock: 0
|
|
17452
17528
|
},
|
|
17453
17529
|
className: "m-0 text-xs text-muted-foreground",
|
|
17454
|
-
children:
|
|
17530
|
+
children: vW
|
|
17455
17531
|
})
|
|
17456
17532
|
})
|
|
17457
17533
|
]
|
|
@@ -22833,55 +22909,55 @@ ${c}
|
|
|
22833
22909
|
return typeof S == "function" ? S : noop$2;
|
|
22834
22910
|
}, [
|
|
22835
22911
|
S
|
|
22836
|
-
]), q = (0, import_react.useRef)(null),
|
|
22837
|
-
!
|
|
22838
|
-
|
|
22912
|
+
]), q = (0, import_react.useRef)(null), fW = (0, import_react.useRef)(null), pW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), Z = pW[0], mW = pW[1], hW = Z.isFocused, gW = Z.isFileDialogActive, _W = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), vW = function() {
|
|
22913
|
+
!_W.current && gW && setTimeout(function() {
|
|
22914
|
+
fW.current && (fW.current.files.length || (mW({
|
|
22839
22915
|
type: "closeDialog"
|
|
22840
22916
|
}), G()));
|
|
22841
22917
|
}, 300);
|
|
22842
22918
|
};
|
|
22843
22919
|
(0, import_react.useEffect)(function() {
|
|
22844
|
-
return window.addEventListener("focus",
|
|
22845
|
-
window.removeEventListener("focus",
|
|
22920
|
+
return window.addEventListener("focus", vW, false), function() {
|
|
22921
|
+
window.removeEventListener("focus", vW, false);
|
|
22846
22922
|
};
|
|
22847
22923
|
}, [
|
|
22848
|
-
|
|
22849
|
-
|
|
22924
|
+
fW,
|
|
22925
|
+
gW,
|
|
22850
22926
|
G,
|
|
22851
|
-
|
|
22927
|
+
_W
|
|
22852
22928
|
]);
|
|
22853
|
-
var
|
|
22854
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
22929
|
+
var yW = (0, import_react.useRef)([]), bW = (0, import_react.useRef)([]), xW = function(e2) {
|
|
22930
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), yW.current = []);
|
|
22855
22931
|
};
|
|
22856
22932
|
(0, import_react.useEffect)(function() {
|
|
22857
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
22858
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
22933
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", xW, false)), function() {
|
|
22934
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", xW));
|
|
22859
22935
|
};
|
|
22860
22936
|
}, [
|
|
22861
22937
|
q,
|
|
22862
22938
|
O
|
|
22863
22939
|
]), (0, import_react.useEffect)(function() {
|
|
22864
22940
|
var e2 = function(e3) {
|
|
22865
|
-
|
|
22941
|
+
bW.current = [].concat(_toConsumableArray(bW.current), [
|
|
22866
22942
|
e3.target
|
|
22867
|
-
]), isEvtWithFiles(e3) &&
|
|
22943
|
+
]), isEvtWithFiles(e3) && mW({
|
|
22868
22944
|
isDragGlobal: true,
|
|
22869
22945
|
type: "setDragGlobal"
|
|
22870
22946
|
});
|
|
22871
22947
|
}, r2 = function(e3) {
|
|
22872
|
-
|
|
22948
|
+
bW.current = bW.current.filter(function(r3) {
|
|
22873
22949
|
return r3 !== e3.target && r3 !== null;
|
|
22874
|
-
}), !(
|
|
22950
|
+
}), !(bW.current.length > 0) && mW({
|
|
22875
22951
|
isDragGlobal: false,
|
|
22876
22952
|
type: "setDragGlobal"
|
|
22877
22953
|
});
|
|
22878
22954
|
}, c2 = function() {
|
|
22879
|
-
|
|
22955
|
+
bW.current = [], mW({
|
|
22880
22956
|
isDragGlobal: false,
|
|
22881
22957
|
type: "setDragGlobal"
|
|
22882
22958
|
});
|
|
22883
22959
|
}, l2 = function() {
|
|
22884
|
-
|
|
22960
|
+
bW.current = [], mW({
|
|
22885
22961
|
isDragGlobal: false,
|
|
22886
22962
|
type: "setDragGlobal"
|
|
22887
22963
|
});
|
|
@@ -22899,12 +22975,12 @@ ${c}
|
|
|
22899
22975
|
E,
|
|
22900
22976
|
l
|
|
22901
22977
|
]);
|
|
22902
|
-
var
|
|
22978
|
+
var SW = (0, import_react.useCallback)(function(e2) {
|
|
22903
22979
|
R ? R(e2) : console.error(e2);
|
|
22904
22980
|
}, [
|
|
22905
22981
|
R
|
|
22906
|
-
]),
|
|
22907
|
-
e2.preventDefault(), e2.persist(),
|
|
22982
|
+
]), CW = (0, import_react.useCallback)(function(e2) {
|
|
22983
|
+
e2.preventDefault(), e2.persist(), IW(e2), yW.current = [].concat(_toConsumableArray(yW.current), [
|
|
22908
22984
|
e2.target
|
|
22909
22985
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22910
22986
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -22917,7 +22993,7 @@ ${c}
|
|
|
22917
22993
|
maxFiles: m,
|
|
22918
22994
|
validator: z
|
|
22919
22995
|
});
|
|
22920
|
-
|
|
22996
|
+
mW({
|
|
22921
22997
|
isDragAccept: l2,
|
|
22922
22998
|
isDragReject: c2 > 0 && !l2,
|
|
22923
22999
|
isDragActive: true,
|
|
@@ -22925,12 +23001,12 @@ ${c}
|
|
|
22925
23001
|
}), h && h(e2);
|
|
22926
23002
|
}
|
|
22927
23003
|
}).catch(function(e3) {
|
|
22928
|
-
return
|
|
23004
|
+
return SW(e3);
|
|
22929
23005
|
});
|
|
22930
23006
|
}, [
|
|
22931
23007
|
u,
|
|
22932
23008
|
h,
|
|
22933
|
-
|
|
23009
|
+
SW,
|
|
22934
23010
|
L,
|
|
22935
23011
|
B,
|
|
22936
23012
|
f,
|
|
@@ -22938,8 +23014,8 @@ ${c}
|
|
|
22938
23014
|
p,
|
|
22939
23015
|
m,
|
|
22940
23016
|
z
|
|
22941
|
-
]),
|
|
22942
|
-
e2.preventDefault(), e2.persist(),
|
|
23017
|
+
]), wW = (0, import_react.useCallback)(function(e2) {
|
|
23018
|
+
e2.preventDefault(), e2.persist(), IW(e2);
|
|
22943
23019
|
var r2 = isEvtWithFiles(e2);
|
|
22944
23020
|
if (r2 && e2.dataTransfer) try {
|
|
22945
23021
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -22949,12 +23025,12 @@ ${c}
|
|
|
22949
23025
|
}, [
|
|
22950
23026
|
_,
|
|
22951
23027
|
L
|
|
22952
|
-
]),
|
|
22953
|
-
e2.preventDefault(), e2.persist(),
|
|
22954
|
-
var r2 =
|
|
23028
|
+
]), TW = (0, import_react.useCallback)(function(e2) {
|
|
23029
|
+
e2.preventDefault(), e2.persist(), IW(e2);
|
|
23030
|
+
var r2 = yW.current.filter(function(e3) {
|
|
22955
23031
|
return q.current && q.current.contains(e3);
|
|
22956
23032
|
}), c2 = r2.indexOf(e2.target);
|
|
22957
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
23033
|
+
c2 !== -1 && r2.splice(c2, 1), yW.current = r2, !(r2.length > 0) && (mW({
|
|
22958
23034
|
type: "setDraggedFiles",
|
|
22959
23035
|
isDragActive: false,
|
|
22960
23036
|
isDragAccept: false,
|
|
@@ -22964,7 +23040,7 @@ ${c}
|
|
|
22964
23040
|
q,
|
|
22965
23041
|
g,
|
|
22966
23042
|
L
|
|
22967
|
-
]),
|
|
23043
|
+
]), EW = (0, import_react.useCallback)(function(e2, r2) {
|
|
22968
23044
|
var c2 = [], l2 = [];
|
|
22969
23045
|
e2.forEach(function(e3) {
|
|
22970
23046
|
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;
|
|
@@ -22988,14 +23064,14 @@ ${c}
|
|
|
22988
23064
|
TOO_MANY_FILES_REJECTION
|
|
22989
23065
|
]
|
|
22990
23066
|
});
|
|
22991
|
-
}), c2.splice(0)),
|
|
23067
|
+
}), c2.splice(0)), mW({
|
|
22992
23068
|
acceptedFiles: c2,
|
|
22993
23069
|
fileRejections: l2,
|
|
22994
23070
|
isDragReject: l2.length > 0,
|
|
22995
23071
|
type: "setFiles"
|
|
22996
23072
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
22997
23073
|
}, [
|
|
22998
|
-
|
|
23074
|
+
mW,
|
|
22999
23075
|
p,
|
|
23000
23076
|
B,
|
|
23001
23077
|
f,
|
|
@@ -23005,22 +23081,22 @@ ${c}
|
|
|
23005
23081
|
y,
|
|
23006
23082
|
b,
|
|
23007
23083
|
z
|
|
23008
|
-
]),
|
|
23009
|
-
e2.preventDefault(), e2.persist(),
|
|
23010
|
-
isPropagationStopped(e2) && !L ||
|
|
23084
|
+
]), DW = (0, import_react.useCallback)(function(e2) {
|
|
23085
|
+
e2.preventDefault(), e2.persist(), IW(e2), yW.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
23086
|
+
isPropagationStopped(e2) && !L || EW(r2, e2);
|
|
23011
23087
|
}).catch(function(e3) {
|
|
23012
|
-
return
|
|
23013
|
-
}),
|
|
23088
|
+
return SW(e3);
|
|
23089
|
+
}), mW({
|
|
23014
23090
|
type: "reset"
|
|
23015
23091
|
});
|
|
23016
23092
|
}, [
|
|
23017
23093
|
u,
|
|
23018
|
-
|
|
23019
|
-
|
|
23094
|
+
EW,
|
|
23095
|
+
SW,
|
|
23020
23096
|
L
|
|
23021
|
-
]),
|
|
23022
|
-
if (
|
|
23023
|
-
|
|
23097
|
+
]), OW = (0, import_react.useCallback)(function() {
|
|
23098
|
+
if (_W.current) {
|
|
23099
|
+
mW({
|
|
23024
23100
|
type: "openDialog"
|
|
23025
23101
|
}), W();
|
|
23026
23102
|
var e2 = {
|
|
@@ -23030,66 +23106,66 @@ ${c}
|
|
|
23030
23106
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
23031
23107
|
return u(e3);
|
|
23032
23108
|
}).then(function(e3) {
|
|
23033
|
-
|
|
23109
|
+
EW(e3, null), mW({
|
|
23034
23110
|
type: "closeDialog"
|
|
23035
23111
|
});
|
|
23036
23112
|
}).catch(function(e3) {
|
|
23037
|
-
isAbort(e3) ? (G(e3),
|
|
23113
|
+
isAbort(e3) ? (G(e3), mW({
|
|
23038
23114
|
type: "closeDialog"
|
|
23039
|
-
})) : isSecurityError(e3) ? (
|
|
23115
|
+
})) : isSecurityError(e3) ? (_W.current = false, fW.current ? (fW.current.value = null, fW.current.click()) : SW(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."))) : SW(e3);
|
|
23040
23116
|
});
|
|
23041
23117
|
return;
|
|
23042
23118
|
}
|
|
23043
|
-
|
|
23119
|
+
fW.current && (mW({
|
|
23044
23120
|
type: "openDialog"
|
|
23045
|
-
}), W(),
|
|
23121
|
+
}), W(), fW.current.value = null, fW.current.click());
|
|
23046
23122
|
}, [
|
|
23047
|
-
|
|
23123
|
+
mW,
|
|
23048
23124
|
W,
|
|
23049
23125
|
G,
|
|
23050
23126
|
T,
|
|
23051
|
-
|
|
23052
|
-
|
|
23127
|
+
EW,
|
|
23128
|
+
SW,
|
|
23053
23129
|
H,
|
|
23054
23130
|
p
|
|
23055
|
-
]),
|
|
23056
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
23131
|
+
]), kW = (0, import_react.useCallback)(function(e2) {
|
|
23132
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), OW());
|
|
23057
23133
|
}, [
|
|
23058
23134
|
q,
|
|
23059
|
-
|
|
23060
|
-
]),
|
|
23061
|
-
|
|
23135
|
+
OW
|
|
23136
|
+
]), AW = (0, import_react.useCallback)(function() {
|
|
23137
|
+
mW({
|
|
23062
23138
|
type: "focus"
|
|
23063
23139
|
});
|
|
23064
|
-
}, []),
|
|
23065
|
-
|
|
23140
|
+
}, []), jW = (0, import_react.useCallback)(function() {
|
|
23141
|
+
mW({
|
|
23066
23142
|
type: "blur"
|
|
23067
23143
|
});
|
|
23068
|
-
}, []),
|
|
23069
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
23144
|
+
}, []), MW = (0, import_react.useCallback)(function() {
|
|
23145
|
+
j || (isIeOrEdge() ? setTimeout(OW, 0) : OW());
|
|
23070
23146
|
}, [
|
|
23071
23147
|
j,
|
|
23072
|
-
|
|
23073
|
-
]),
|
|
23148
|
+
OW
|
|
23149
|
+
]), NW = function(e2) {
|
|
23074
23150
|
return l ? null : e2;
|
|
23075
|
-
},
|
|
23076
|
-
return M ? null :
|
|
23077
|
-
},
|
|
23078
|
-
return I ? null :
|
|
23079
|
-
},
|
|
23151
|
+
}, PW = function(e2) {
|
|
23152
|
+
return M ? null : NW(e2);
|
|
23153
|
+
}, FW = function(e2) {
|
|
23154
|
+
return I ? null : NW(e2);
|
|
23155
|
+
}, IW = function(e2) {
|
|
23080
23156
|
L && e2.stopPropagation();
|
|
23081
|
-
},
|
|
23157
|
+
}, LW = (0, import_react.useMemo)(function() {
|
|
23082
23158
|
return function() {
|
|
23083
23159
|
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);
|
|
23084
23160
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
23085
|
-
onKeyDown:
|
|
23086
|
-
onFocus:
|
|
23087
|
-
onBlur:
|
|
23088
|
-
onClick:
|
|
23089
|
-
onDragEnter:
|
|
23090
|
-
onDragOver:
|
|
23091
|
-
onDragLeave:
|
|
23092
|
-
onDrop:
|
|
23161
|
+
onKeyDown: PW(composeEventHandlers(d2, kW)),
|
|
23162
|
+
onFocus: PW(composeEventHandlers(f2, AW)),
|
|
23163
|
+
onBlur: PW(composeEventHandlers(p2, jW)),
|
|
23164
|
+
onClick: NW(composeEventHandlers(m2, MW)),
|
|
23165
|
+
onDragEnter: FW(composeEventHandlers(h2, CW)),
|
|
23166
|
+
onDragOver: FW(composeEventHandlers(g2, wW)),
|
|
23167
|
+
onDragLeave: FW(composeEventHandlers(_2, TW)),
|
|
23168
|
+
onDrop: FW(composeEventHandlers(v2, DW)),
|
|
23093
23169
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23094
23170
|
}, c2, q), !l && !M ? {
|
|
23095
23171
|
tabIndex: 0
|
|
@@ -23097,20 +23173,20 @@ ${c}
|
|
|
23097
23173
|
};
|
|
23098
23174
|
}, [
|
|
23099
23175
|
q,
|
|
23100
|
-
|
|
23101
|
-
|
|
23102
|
-
|
|
23103
|
-
|
|
23104
|
-
|
|
23105
|
-
|
|
23106
|
-
|
|
23107
|
-
|
|
23176
|
+
kW,
|
|
23177
|
+
AW,
|
|
23178
|
+
jW,
|
|
23179
|
+
MW,
|
|
23180
|
+
CW,
|
|
23181
|
+
wW,
|
|
23182
|
+
TW,
|
|
23183
|
+
DW,
|
|
23108
23184
|
M,
|
|
23109
23185
|
I,
|
|
23110
23186
|
l
|
|
23111
|
-
]),
|
|
23187
|
+
]), RW = (0, import_react.useCallback)(function(e2) {
|
|
23112
23188
|
e2.stopPropagation();
|
|
23113
|
-
}, []),
|
|
23189
|
+
}, []), zW = (0, import_react.useMemo)(function() {
|
|
23114
23190
|
return function() {
|
|
23115
23191
|
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);
|
|
23116
23192
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -23129,25 +23205,25 @@ ${c}
|
|
|
23129
23205
|
width: "1px",
|
|
23130
23206
|
whiteSpace: "nowrap"
|
|
23131
23207
|
},
|
|
23132
|
-
onChange:
|
|
23133
|
-
onClick:
|
|
23208
|
+
onChange: NW(composeEventHandlers(l2, DW)),
|
|
23209
|
+
onClick: NW(composeEventHandlers(u2, RW)),
|
|
23134
23210
|
tabIndex: -1
|
|
23135
|
-
}, c2,
|
|
23211
|
+
}, c2, fW)), d2);
|
|
23136
23212
|
};
|
|
23137
23213
|
}, [
|
|
23138
|
-
|
|
23214
|
+
fW,
|
|
23139
23215
|
c,
|
|
23140
23216
|
p,
|
|
23141
|
-
|
|
23217
|
+
DW,
|
|
23142
23218
|
l
|
|
23143
23219
|
]);
|
|
23144
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
23145
|
-
isFocused:
|
|
23146
|
-
getRootProps:
|
|
23147
|
-
getInputProps:
|
|
23220
|
+
return _objectSpread$7(_objectSpread$7({}, Z), {}, {
|
|
23221
|
+
isFocused: hW && !l,
|
|
23222
|
+
getRootProps: LW,
|
|
23223
|
+
getInputProps: zW,
|
|
23148
23224
|
rootRef: q,
|
|
23149
|
-
inputRef:
|
|
23150
|
-
open:
|
|
23225
|
+
inputRef: fW,
|
|
23226
|
+
open: NW(OW)
|
|
23151
23227
|
});
|
|
23152
23228
|
}
|
|
23153
23229
|
function reducer$2(e, r) {
|
|
@@ -23379,47 +23455,47 @@ ${c}
|
|
|
23379
23455
|
html: I
|
|
23380
23456
|
})
|
|
23381
23457
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
23382
|
-
let q = w && "text-primary",
|
|
23383
|
-
r[48] !== q || r[49] !==
|
|
23384
|
-
let
|
|
23385
|
-
r[51] ===
|
|
23458
|
+
let q = w && "text-primary", fW = T && "text-destructive", pW;
|
|
23459
|
+
r[48] !== q || r[49] !== fW ? (pW = cn(q, fW), r[48] = q, r[49] = fW, r[50] = pW) : pW = r[50];
|
|
23460
|
+
let Z;
|
|
23461
|
+
r[51] === pW ? Z = r[52] : (Z = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23386
23462
|
strokeWidth: 1.4,
|
|
23387
|
-
className:
|
|
23388
|
-
}), r[51] =
|
|
23389
|
-
let
|
|
23390
|
-
r[53] !==
|
|
23391
|
-
let
|
|
23392
|
-
r[56] ===
|
|
23463
|
+
className: pW
|
|
23464
|
+
}), r[51] = pW, r[52] = Z);
|
|
23465
|
+
let mW = w && "text-primary", hW = T && "text-destructive", gW;
|
|
23466
|
+
r[53] !== mW || r[54] !== hW ? (gW = cn(mW, hW), r[53] = mW, r[54] = hW, r[55] = gW) : gW = r[55];
|
|
23467
|
+
let _W;
|
|
23468
|
+
r[56] === gW ? _W = r[57] : (_W = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23393
23469
|
strokeWidth: 1.4,
|
|
23394
|
-
className:
|
|
23395
|
-
}), r[56] =
|
|
23396
|
-
let
|
|
23397
|
-
r[58] !==
|
|
23470
|
+
className: gW
|
|
23471
|
+
}), r[56] = gW, r[57] = _W);
|
|
23472
|
+
let vW;
|
|
23473
|
+
r[58] !== Z || r[59] !== _W ? (vW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23398
23474
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
23399
23475
|
children: [
|
|
23400
|
-
|
|
23401
|
-
|
|
23476
|
+
Z,
|
|
23477
|
+
_W
|
|
23402
23478
|
]
|
|
23403
|
-
}), r[58] =
|
|
23404
|
-
let
|
|
23405
|
-
r[61] !== G || r[62] !==
|
|
23479
|
+
}), r[58] = Z, r[59] = _W, r[60] = vW) : vW = r[60];
|
|
23480
|
+
let yW;
|
|
23481
|
+
r[61] !== G || r[62] !== vW ? (yW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23406
23482
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
23407
23483
|
children: [
|
|
23408
23484
|
G,
|
|
23409
|
-
|
|
23485
|
+
vW
|
|
23410
23486
|
]
|
|
23411
|
-
}), r[61] = G, r[62] =
|
|
23412
|
-
let
|
|
23413
|
-
r[64] !== W || r[65] !==
|
|
23487
|
+
}), r[61] = G, r[62] = vW, r[63] = yW) : yW = r[63];
|
|
23488
|
+
let bW;
|
|
23489
|
+
r[64] !== W || r[65] !== yW || r[66] !== z || r[67] !== B ? (bW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23414
23490
|
className: z,
|
|
23415
23491
|
...B,
|
|
23416
23492
|
children: [
|
|
23417
23493
|
W,
|
|
23418
|
-
|
|
23494
|
+
yW
|
|
23419
23495
|
]
|
|
23420
|
-
}), r[64] = W, r[65] =
|
|
23421
|
-
let
|
|
23422
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
23496
|
+
}), r[64] = W, r[65] = yW, r[66] = z, r[67] = B, r[68] = bW) : bW = r[68];
|
|
23497
|
+
let xW;
|
|
23498
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (xW = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
23423
23499
|
className: "flex flex-row gap-1",
|
|
23424
23500
|
children: [
|
|
23425
23501
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23455,17 +23531,17 @@ ${c}
|
|
|
23455
23531
|
})
|
|
23456
23532
|
})
|
|
23457
23533
|
]
|
|
23458
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
23459
|
-
let
|
|
23460
|
-
return r[75] !==
|
|
23534
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = xW) : xW = r[74];
|
|
23535
|
+
let CW;
|
|
23536
|
+
return r[75] !== bW || r[76] !== xW ? (CW = (0, import_jsx_runtime.jsx)("section", {
|
|
23461
23537
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
23462
23538
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
23463
23539
|
children: [
|
|
23464
|
-
|
|
23465
|
-
|
|
23540
|
+
bW,
|
|
23541
|
+
xW
|
|
23466
23542
|
]
|
|
23467
23543
|
})
|
|
23468
|
-
}), r[75] =
|
|
23544
|
+
}), r[75] = bW, r[76] = xW, r[77] = CW) : CW = r[77], CW;
|
|
23469
23545
|
};
|
|
23470
23546
|
function _temp$11(e) {
|
|
23471
23547
|
Logger.error(e), toast({
|
|
@@ -23561,75 +23637,75 @@ ${c}
|
|
|
23561
23637
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
23562
23638
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23563
23639
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
23564
|
-
let
|
|
23565
|
-
r[13] === f ?
|
|
23640
|
+
let fW;
|
|
23641
|
+
r[13] === f ? fW = r[14] : (fW = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23566
23642
|
className: "text-center",
|
|
23567
23643
|
children: renderHTML({
|
|
23568
23644
|
html: f
|
|
23569
23645
|
})
|
|
23570
|
-
}), r[13] = f, r[14] =
|
|
23571
|
-
let
|
|
23572
|
-
r[15] === L ?
|
|
23646
|
+
}), r[13] = f, r[14] = fW);
|
|
23647
|
+
let pW;
|
|
23648
|
+
r[15] === L ? pW = r[16] : (pW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
23573
23649
|
kind: "danger",
|
|
23574
23650
|
className: "rounded",
|
|
23575
23651
|
children: L ?? "Invalid input"
|
|
23576
|
-
}), r[15] = L, r[16] =
|
|
23577
|
-
let
|
|
23578
|
-
r[17] === c ?
|
|
23652
|
+
}), r[15] = L, r[16] = pW);
|
|
23653
|
+
let Z;
|
|
23654
|
+
r[17] === c ? Z = r[18] : (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
23579
23655
|
children: c
|
|
23580
|
-
}), r[17] = c, r[18] =
|
|
23581
|
-
let
|
|
23582
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
23656
|
+
}), r[17] = c, r[18] = Z);
|
|
23657
|
+
let mW;
|
|
23658
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (mW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
23583
23659
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
23584
23660
|
variant: "text",
|
|
23585
23661
|
onClick: (e2) => {
|
|
23586
23662
|
e2.preventDefault(), B();
|
|
23587
23663
|
},
|
|
23588
23664
|
children: S
|
|
23589
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
23590
|
-
let
|
|
23591
|
-
r[23] === h ?
|
|
23665
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = mW) : mW = r[22];
|
|
23666
|
+
let hW = v || h, gW;
|
|
23667
|
+
r[23] === h ? gW = r[24] : (gW = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
23592
23668
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
23593
|
-
}), r[23] = h, r[24] =
|
|
23594
|
-
let
|
|
23595
|
-
r[25] !== g || r[26] !==
|
|
23669
|
+
}), r[23] = h, r[24] = gW);
|
|
23670
|
+
let _W;
|
|
23671
|
+
r[25] !== g || r[26] !== hW || r[27] !== gW || r[28] !== I ? (_W = (0, import_jsx_runtime.jsxs)(Button, {
|
|
23596
23672
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
23597
23673
|
variant: I,
|
|
23598
|
-
disabled:
|
|
23674
|
+
disabled: hW,
|
|
23599
23675
|
type: "submit",
|
|
23600
23676
|
children: [
|
|
23601
|
-
|
|
23677
|
+
gW,
|
|
23602
23678
|
g
|
|
23603
23679
|
]
|
|
23604
|
-
}), r[25] = g, r[26] =
|
|
23605
|
-
let
|
|
23606
|
-
r[30] !== _ || r[31] !==
|
|
23607
|
-
let
|
|
23608
|
-
r[33] !==
|
|
23680
|
+
}), r[25] = g, r[26] = hW, r[27] = gW, r[28] = I, r[29] = _W) : _W = r[29];
|
|
23681
|
+
let vW;
|
|
23682
|
+
r[30] !== _ || r[31] !== _W ? (vW = withTooltip(_W, _), r[30] = _, r[31] = _W, r[32] = vW) : vW = r[32];
|
|
23683
|
+
let yW;
|
|
23684
|
+
r[33] !== vW || r[34] !== mW ? (yW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23609
23685
|
className: "flex justify-end gap-2 font-code",
|
|
23610
23686
|
children: [
|
|
23611
|
-
|
|
23612
|
-
|
|
23687
|
+
mW,
|
|
23688
|
+
vW
|
|
23613
23689
|
]
|
|
23614
|
-
}), r[33] =
|
|
23615
|
-
let
|
|
23616
|
-
r[36] !==
|
|
23690
|
+
}), r[33] = vW, r[34] = mW, r[35] = yW) : yW = r[35];
|
|
23691
|
+
let bW;
|
|
23692
|
+
r[36] !== yW || r[37] !== G || r[38] !== q || r[39] !== fW || r[40] !== pW || r[41] !== Z ? (bW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23617
23693
|
className: G,
|
|
23618
23694
|
onKeyDown: q,
|
|
23619
23695
|
children: [
|
|
23620
|
-
|
|
23696
|
+
fW,
|
|
23697
|
+
pW,
|
|
23621
23698
|
Z,
|
|
23622
|
-
|
|
23623
|
-
oW
|
|
23699
|
+
yW
|
|
23624
23700
|
]
|
|
23625
|
-
}), r[36] =
|
|
23626
|
-
let
|
|
23627
|
-
return r[43] !==
|
|
23701
|
+
}), r[36] = yW, r[37] = G, r[38] = q, r[39] = fW, r[40] = pW, r[41] = Z, r[42] = bW) : bW = r[42];
|
|
23702
|
+
let xW;
|
|
23703
|
+
return r[43] !== bW || r[44] !== H ? (xW = (0, import_jsx_runtime.jsx)("form", {
|
|
23628
23704
|
className: "contents",
|
|
23629
23705
|
ref: j,
|
|
23630
23706
|
onSubmit: H,
|
|
23631
|
-
children:
|
|
23632
|
-
}), r[43] =
|
|
23707
|
+
children: bW
|
|
23708
|
+
}), r[43] = bW, r[44] = H, r[45] = xW) : xW = r[45], xW;
|
|
23633
23709
|
};
|
|
23634
23710
|
var Form = (e) => {
|
|
23635
23711
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -25402,8 +25478,8 @@ ${c}
|
|
|
25402
25478
|
points: extractSunburstPoints(e2.points)
|
|
25403
25479
|
}));
|
|
25404
25480
|
}, r[29] = u, r[30] = G);
|
|
25405
|
-
let q = useEvent_default(G),
|
|
25406
|
-
r[31] === u ?
|
|
25481
|
+
let q = useEvent_default(G), fW;
|
|
25482
|
+
r[31] === u ? fW = r[32] : (fW = (e2) => {
|
|
25407
25483
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25408
25484
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25409
25485
|
u((e3) => ({
|
|
@@ -25414,9 +25490,9 @@ ${c}
|
|
|
25414
25490
|
points: r2,
|
|
25415
25491
|
indices: c2
|
|
25416
25492
|
}));
|
|
25417
|
-
}, r[31] = u, r[32] =
|
|
25418
|
-
let
|
|
25419
|
-
r[33] === u ?
|
|
25493
|
+
}, r[31] = u, r[32] = fW);
|
|
25494
|
+
let pW = useEvent_default(fW), Z;
|
|
25495
|
+
r[33] === u ? Z = r[34] : (Z = (e2) => {
|
|
25420
25496
|
e2 && u((r2) => ({
|
|
25421
25497
|
...r2,
|
|
25422
25498
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -25425,9 +25501,9 @@ ${c}
|
|
|
25425
25501
|
range: e2.range,
|
|
25426
25502
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
25427
25503
|
}));
|
|
25428
|
-
}, r[33] = u, r[34] =
|
|
25429
|
-
let
|
|
25430
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
25504
|
+
}, r[33] = u, r[34] = Z);
|
|
25505
|
+
let mW = useEvent_default(Z), hW = m.frames ?? void 0, gW = useEvent_default(_temp3$3), _W;
|
|
25506
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== pW || r[42] !== mW || r[43] !== hW || r[44] !== gW || r[45] !== R ? (_W = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25431
25507
|
...m,
|
|
25432
25508
|
layout: h,
|
|
25433
25509
|
onRelayout: R,
|
|
@@ -25435,13 +25511,13 @@ ${c}
|
|
|
25435
25511
|
onTreemapClick: W,
|
|
25436
25512
|
onSunburstClick: q,
|
|
25437
25513
|
config: L,
|
|
25438
|
-
onClick:
|
|
25439
|
-
onSelected:
|
|
25514
|
+
onClick: pW,
|
|
25515
|
+
onSelected: mW,
|
|
25440
25516
|
className: "w-full",
|
|
25441
25517
|
useResizeHandler: true,
|
|
25442
|
-
frames:
|
|
25443
|
-
onError:
|
|
25444
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
25518
|
+
frames: hW,
|
|
25519
|
+
onError: gW
|
|
25520
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = pW, r[42] = mW, r[43] = hW, r[44] = gW, r[45] = R, r[46] = _W) : _W = r[46], _W;
|
|
25445
25521
|
});
|
|
25446
25522
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25447
25523
|
function _temp$8(e) {
|
|
@@ -25573,8 +25649,8 @@ ${c}
|
|
|
25573
25649
|
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];
|
|
25574
25650
|
let q;
|
|
25575
25651
|
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];
|
|
25576
|
-
let
|
|
25577
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
25652
|
+
let fW;
|
|
25653
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (fW = (0, import_jsx_runtime.jsx)(Track, {
|
|
25578
25654
|
ref: E,
|
|
25579
25655
|
"data-testid": "track",
|
|
25580
25656
|
className: G,
|
|
@@ -25585,9 +25661,9 @@ ${c}
|
|
|
25585
25661
|
onPointerMove: z,
|
|
25586
25662
|
onPointerUp: H
|
|
25587
25663
|
})
|
|
25588
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25589
|
-
let
|
|
25590
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
25664
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = fW) : fW = c[22];
|
|
25665
|
+
let pW;
|
|
25666
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (pW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25591
25667
|
asChild: true,
|
|
25592
25668
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25593
25669
|
"data-testid": "thumb",
|
|
@@ -25597,30 +25673,30 @@ ${c}
|
|
|
25597
25673
|
onMouseEnter: m.setTrue,
|
|
25598
25674
|
onMouseLeave: m.setFalse
|
|
25599
25675
|
})
|
|
25600
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
25601
|
-
let
|
|
25602
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
25676
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = pW) : pW = c[25];
|
|
25677
|
+
let Z;
|
|
25678
|
+
c[26] !== h || c[27] !== u.value || c[28] !== d ? (Z = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25603
25679
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
25604
25680
|
locale: h
|
|
25605
25681
|
})
|
|
25606
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
25607
|
-
let
|
|
25608
|
-
c[30] ===
|
|
25609
|
-
children:
|
|
25610
|
-
}), c[30] =
|
|
25611
|
-
let
|
|
25612
|
-
c[32] !== f || c[33] !==
|
|
25682
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = Z) : Z = c[29];
|
|
25683
|
+
let mW;
|
|
25684
|
+
c[30] === Z ? mW = c[31] : (mW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25685
|
+
children: Z
|
|
25686
|
+
}), c[30] = Z, c[31] = mW);
|
|
25687
|
+
let hW;
|
|
25688
|
+
c[32] !== f || c[33] !== pW || c[34] !== mW ? (hW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25613
25689
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25614
25690
|
delayDuration: 0,
|
|
25615
25691
|
open: f,
|
|
25616
25692
|
children: [
|
|
25617
|
-
|
|
25618
|
-
|
|
25693
|
+
pW,
|
|
25694
|
+
mW
|
|
25619
25695
|
]
|
|
25620
25696
|
})
|
|
25621
|
-
}), c[32] = f, c[33] =
|
|
25622
|
-
let
|
|
25623
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
25697
|
+
}), c[32] = f, c[33] = pW, c[34] = mW, c[35] = hW) : hW = c[35];
|
|
25698
|
+
let gW;
|
|
25699
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (gW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25624
25700
|
asChild: true,
|
|
25625
25701
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25626
25702
|
"data-testid": "thumb",
|
|
@@ -25630,39 +25706,39 @@ ${c}
|
|
|
25630
25706
|
onMouseEnter: m.setTrue,
|
|
25631
25707
|
onMouseLeave: m.setFalse
|
|
25632
25708
|
})
|
|
25633
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
25634
|
-
let
|
|
25635
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
25709
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = gW) : gW = c[38];
|
|
25710
|
+
let _W;
|
|
25711
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (_W = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25636
25712
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
25637
25713
|
locale: h
|
|
25638
25714
|
})
|
|
25639
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
25640
|
-
let
|
|
25641
|
-
c[43] ===
|
|
25642
|
-
children:
|
|
25643
|
-
}), c[43] =
|
|
25644
|
-
let
|
|
25645
|
-
c[45] !== f || c[46] !==
|
|
25715
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = _W) : _W = c[42];
|
|
25716
|
+
let vW;
|
|
25717
|
+
c[43] === _W ? vW = c[44] : (vW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25718
|
+
children: _W
|
|
25719
|
+
}), c[43] = _W, c[44] = vW);
|
|
25720
|
+
let yW;
|
|
25721
|
+
c[45] !== f || c[46] !== gW || c[47] !== vW ? (yW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25646
25722
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25647
25723
|
delayDuration: 0,
|
|
25648
25724
|
open: f,
|
|
25649
25725
|
children: [
|
|
25650
|
-
|
|
25651
|
-
|
|
25726
|
+
gW,
|
|
25727
|
+
vW
|
|
25652
25728
|
]
|
|
25653
25729
|
})
|
|
25654
|
-
}), c[45] = f, c[46] =
|
|
25655
|
-
let
|
|
25656
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25730
|
+
}), c[45] = f, c[46] = gW, c[47] = vW, c[48] = yW) : yW = c[48];
|
|
25731
|
+
let bW;
|
|
25732
|
+
return c[49] !== M || c[50] !== u || c[51] !== fW || c[52] !== hW || c[53] !== yW || c[54] !== W ? (bW = (0, import_jsx_runtime.jsxs)(Root, {
|
|
25657
25733
|
ref: M,
|
|
25658
25734
|
className: W,
|
|
25659
25735
|
...u,
|
|
25660
25736
|
children: [
|
|
25661
|
-
|
|
25662
|
-
|
|
25663
|
-
|
|
25737
|
+
fW,
|
|
25738
|
+
hW,
|
|
25739
|
+
yW
|
|
25664
25740
|
]
|
|
25665
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25741
|
+
}), c[49] = M, c[50] = u, c[51] = fW, c[52] = hW, c[53] = yW, c[54] = W, c[55] = bW) : bW = c[55], bW;
|
|
25666
25742
|
});
|
|
25667
25743
|
RangeSlider.displayName = Root.displayName;
|
|
25668
25744
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25713,14 +25789,14 @@ ${c}
|
|
|
25713
25789
|
}, q = (e2) => {
|
|
25714
25790
|
h && l(e2);
|
|
25715
25791
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
25716
|
-
let
|
|
25717
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
25792
|
+
let fW, pW;
|
|
25793
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (fW = () => {
|
|
25718
25794
|
h && !dequal(T, u) && l(T);
|
|
25719
|
-
},
|
|
25795
|
+
}, pW = () => {
|
|
25720
25796
|
h && !dequal(T, u) && l(T);
|
|
25721
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
25722
|
-
let
|
|
25723
|
-
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] !==
|
|
25797
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = fW, r[19] = pW) : (fW = r[18], pW = r[19]);
|
|
25798
|
+
let Z;
|
|
25799
|
+
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] !== fW || r[31] !== pW || r[32] !== b ? (Z = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25724
25800
|
id: S,
|
|
25725
25801
|
className: W,
|
|
25726
25802
|
value: T,
|
|
@@ -25731,36 +25807,36 @@ ${c}
|
|
|
25731
25807
|
disabled: y,
|
|
25732
25808
|
onValueChange: G,
|
|
25733
25809
|
onValueCommit: q,
|
|
25734
|
-
onPointerUp:
|
|
25735
|
-
onMouseUp:
|
|
25810
|
+
onPointerUp: fW,
|
|
25811
|
+
onMouseUp: pW,
|
|
25736
25812
|
valueMap: b
|
|
25737
|
-
}), 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] =
|
|
25738
|
-
let
|
|
25739
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
25813
|
+
}), 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] = fW, r[31] = pW, r[32] = b, r[33] = Z) : Z = r[33];
|
|
25814
|
+
let mW;
|
|
25815
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (mW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25740
25816
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
25741
25817
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
25742
25818
|
locale: w
|
|
25743
25819
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
25744
25820
|
locale: w
|
|
25745
25821
|
})}`
|
|
25746
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
25747
|
-
let
|
|
25748
|
-
r[39] !==
|
|
25822
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = mW) : mW = r[38];
|
|
25823
|
+
let hW;
|
|
25824
|
+
r[39] !== Z || r[40] !== mW || r[41] !== B ? (hW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25749
25825
|
className: B,
|
|
25750
25826
|
children: [
|
|
25751
|
-
|
|
25752
|
-
|
|
25827
|
+
Z,
|
|
25828
|
+
mW
|
|
25753
25829
|
]
|
|
25754
|
-
}), r[39] =
|
|
25755
|
-
let
|
|
25756
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
25830
|
+
}), r[39] = Z, r[40] = mW, r[41] = B, r[42] = hW) : hW = r[42];
|
|
25831
|
+
let gW;
|
|
25832
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== hW || r[47] !== M || r[48] !== L ? (gW = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25757
25833
|
label: c,
|
|
25758
25834
|
id: S,
|
|
25759
25835
|
align: M,
|
|
25760
25836
|
className: L,
|
|
25761
25837
|
fullWidth: v,
|
|
25762
|
-
children:
|
|
25763
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
25838
|
+
children: hW
|
|
25839
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = hW, r[47] = M, r[48] = L, r[49] = gW) : gW = r[49], gW;
|
|
25764
25840
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
25765
25841
|
r.exports = u;
|
|
25766
25842
|
var c = {
|
|
@@ -26466,7 +26542,7 @@ ${c}
|
|
|
26466
26542
|
return true;
|
|
26467
26543
|
}
|
|
26468
26544
|
}
|
|
26469
|
-
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-
|
|
26545
|
+
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-BFJTyykA.js")), VegaPlugin = class {
|
|
26470
26546
|
constructor() {
|
|
26471
26547
|
__publicField(this, "tagName", "marimo-vega");
|
|
26472
26548
|
__publicField(this, "validator", object({
|
|
@@ -26796,7 +26872,7 @@ ${c}
|
|
|
26796
26872
|
themeVariables: e.data.theme_variables
|
|
26797
26873
|
});
|
|
26798
26874
|
}
|
|
26799
|
-
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-
|
|
26875
|
+
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-D-HYBMEV.js").then(async (m) => {
|
|
26800
26876
|
await m.__tla;
|
|
26801
26877
|
return m;
|
|
26802
26878
|
})), import_compiler_runtime$22 = require_compiler_runtime();
|
|
@@ -29051,7 +29127,7 @@ ${c}
|
|
|
29051
29127
|
areRegExpsEqual: H,
|
|
29052
29128
|
areSetsEqual: W,
|
|
29053
29129
|
createIsNestedEqual: r2
|
|
29054
|
-
}),
|
|
29130
|
+
}), fW = Object.freeze({
|
|
29055
29131
|
areArraysEqual: O,
|
|
29056
29132
|
areDatesEqual: j,
|
|
29057
29133
|
areMapsEqual: I,
|
|
@@ -29059,40 +29135,40 @@ ${c}
|
|
|
29059
29135
|
areRegExpsEqual: H,
|
|
29060
29136
|
areSetsEqual: G,
|
|
29061
29137
|
createIsNestedEqual: r2
|
|
29062
|
-
}),
|
|
29063
|
-
function
|
|
29064
|
-
return
|
|
29138
|
+
}), pW = T(q);
|
|
29139
|
+
function Z(e3, r3) {
|
|
29140
|
+
return pW(e3, r3, void 0);
|
|
29065
29141
|
}
|
|
29066
|
-
var
|
|
29142
|
+
var mW = T(l(q, {
|
|
29067
29143
|
createIsNestedEqual: function() {
|
|
29068
29144
|
return f;
|
|
29069
29145
|
}
|
|
29070
29146
|
}));
|
|
29071
|
-
function
|
|
29072
|
-
return
|
|
29147
|
+
function hW(e3, r3) {
|
|
29148
|
+
return mW(e3, r3, void 0);
|
|
29073
29149
|
}
|
|
29074
|
-
var
|
|
29075
|
-
function
|
|
29076
|
-
return
|
|
29150
|
+
var gW = T(fW);
|
|
29151
|
+
function _W(e3, r3) {
|
|
29152
|
+
return gW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29077
29153
|
}
|
|
29078
|
-
var
|
|
29154
|
+
var vW = T(l(fW, {
|
|
29079
29155
|
createIsNestedEqual: function() {
|
|
29080
29156
|
return f;
|
|
29081
29157
|
}
|
|
29082
29158
|
}));
|
|
29083
|
-
function
|
|
29084
|
-
return
|
|
29159
|
+
function yW(e3, r3) {
|
|
29160
|
+
return vW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29085
29161
|
}
|
|
29086
|
-
function
|
|
29162
|
+
function bW(e3) {
|
|
29087
29163
|
return T(l(q, e3(q)));
|
|
29088
29164
|
}
|
|
29089
|
-
function
|
|
29090
|
-
var r3 = T(l(
|
|
29165
|
+
function xW(e3) {
|
|
29166
|
+
var r3 = T(l(fW, e3(fW)));
|
|
29091
29167
|
return (function(e4, c2, l2) {
|
|
29092
29168
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29093
29169
|
});
|
|
29094
29170
|
}
|
|
29095
|
-
e2.circularDeepEqual =
|
|
29171
|
+
e2.circularDeepEqual = _W, e2.circularShallowEqual = yW, e2.createCustomCircularEqual = xW, e2.createCustomEqual = bW, e2.deepEqual = Z, e2.sameValueZeroEqual = f, e2.shallowEqual = hW, Object.defineProperty(e2, "__esModule", {
|
|
29096
29172
|
value: true
|
|
29097
29173
|
});
|
|
29098
29174
|
}));
|
|
@@ -29118,7 +29194,7 @@ ${c}
|
|
|
29118
29194
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
29119
29195
|
Object.defineProperty(e, "__esModule", {
|
|
29120
29196
|
value: true
|
|
29121
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
29197
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = DW, 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 = yW, e.setTopLeft = xW, e.setTransform = bW, e.sortLayoutItems = SW, e.sortLayoutItemsByColRow = wW, e.sortLayoutItemsByRowCol = CW, e.synchronizeLayoutWithChildren = TW, e.validateLayout = EW, e.withLayoutItem = v;
|
|
29122
29198
|
var r = require_fast_equals(), c = l(require_react());
|
|
29123
29199
|
function l(e2) {
|
|
29124
29200
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -29223,7 +29299,7 @@ ${c}
|
|
|
29223
29299
|
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);
|
|
29224
29300
|
}
|
|
29225
29301
|
function T(e2, r2, c2, l2) {
|
|
29226
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
29302
|
+
let u2 = B(e2), d2 = h(u2), f2 = SW(e2, r2), p2 = Array(e2.length);
|
|
29227
29303
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
29228
29304
|
let h3 = y(f2[m2]);
|
|
29229
29305
|
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;
|
|
@@ -29281,7 +29357,7 @@ ${c}
|
|
|
29281
29357
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
29282
29358
|
let h2 = r2.x, _2 = r2.y;
|
|
29283
29359
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
29284
|
-
let v2 =
|
|
29360
|
+
let v2 = SW(e2, f2);
|
|
29285
29361
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
29286
29362
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
29287
29363
|
if (b2 && m2) return g(e2);
|
|
@@ -29315,61 +29391,61 @@ ${c}
|
|
|
29315
29391
|
function G(e2) {
|
|
29316
29392
|
return e2 * 100 + "%";
|
|
29317
29393
|
}
|
|
29318
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
29394
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, fW = (e2, r2, c2) => e2 < 0 ? r2 : c2, pW = (e2) => Math.max(0, e2), Z = (e2) => Math.max(0, e2), mW = (e2, r2, c2) => {
|
|
29319
29395
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29320
29396
|
return {
|
|
29321
29397
|
left: l2,
|
|
29322
29398
|
width: d2,
|
|
29323
|
-
height:
|
|
29324
|
-
top:
|
|
29399
|
+
height: fW(f2, e2.height, u2),
|
|
29400
|
+
top: Z(f2)
|
|
29325
29401
|
};
|
|
29326
|
-
},
|
|
29402
|
+
}, hW = (e2, r2, c2) => {
|
|
29327
29403
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29328
29404
|
return {
|
|
29329
29405
|
top: l2,
|
|
29330
29406
|
height: d2,
|
|
29331
29407
|
width: q(e2.left, e2.width, f2, c2),
|
|
29332
|
-
left:
|
|
29408
|
+
left: pW(u2)
|
|
29333
29409
|
};
|
|
29334
|
-
},
|
|
29410
|
+
}, gW = (e2, r2, c2) => {
|
|
29335
29411
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29336
29412
|
return {
|
|
29337
29413
|
height: u2,
|
|
29338
29414
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
29339
|
-
top:
|
|
29340
|
-
left:
|
|
29415
|
+
top: Z(l2),
|
|
29416
|
+
left: pW(f2)
|
|
29341
29417
|
};
|
|
29342
|
-
},
|
|
29418
|
+
}, _W = (e2, r2, c2) => {
|
|
29343
29419
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29344
29420
|
return {
|
|
29345
29421
|
width: f2,
|
|
29346
29422
|
left: u2,
|
|
29347
|
-
height:
|
|
29348
|
-
top:
|
|
29423
|
+
height: fW(l2, e2.height, d2),
|
|
29424
|
+
top: Z(l2)
|
|
29349
29425
|
};
|
|
29350
|
-
},
|
|
29351
|
-
n:
|
|
29426
|
+
}, vW = {
|
|
29427
|
+
n: mW,
|
|
29352
29428
|
ne: function() {
|
|
29353
|
-
return
|
|
29429
|
+
return mW(arguments.length <= 0 ? void 0 : arguments[0], hW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29354
29430
|
},
|
|
29355
|
-
e:
|
|
29431
|
+
e: hW,
|
|
29356
29432
|
se: function() {
|
|
29357
|
-
return
|
|
29433
|
+
return _W(arguments.length <= 0 ? void 0 : arguments[0], hW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29358
29434
|
},
|
|
29359
|
-
s:
|
|
29435
|
+
s: _W,
|
|
29360
29436
|
sw: function() {
|
|
29361
|
-
return
|
|
29437
|
+
return _W(arguments.length <= 0 ? void 0 : arguments[0], gW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29362
29438
|
},
|
|
29363
|
-
w:
|
|
29439
|
+
w: gW,
|
|
29364
29440
|
nw: function() {
|
|
29365
|
-
return
|
|
29441
|
+
return mW(arguments.length <= 0 ? void 0 : arguments[0], gW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29366
29442
|
}
|
|
29367
29443
|
};
|
|
29368
|
-
function
|
|
29369
|
-
let u2 =
|
|
29444
|
+
function yW(e2, r2, c2, l2) {
|
|
29445
|
+
let u2 = vW[e2];
|
|
29370
29446
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
29371
29447
|
}
|
|
29372
|
-
function
|
|
29448
|
+
function bW(e2) {
|
|
29373
29449
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
29374
29450
|
return {
|
|
29375
29451
|
transform: d2,
|
|
@@ -29382,7 +29458,7 @@ ${c}
|
|
|
29382
29458
|
position: "absolute"
|
|
29383
29459
|
};
|
|
29384
29460
|
}
|
|
29385
|
-
function
|
|
29461
|
+
function xW(e2) {
|
|
29386
29462
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
29387
29463
|
return {
|
|
29388
29464
|
top: `${r2}px`,
|
|
@@ -29392,20 +29468,20 @@ ${c}
|
|
|
29392
29468
|
position: "absolute"
|
|
29393
29469
|
};
|
|
29394
29470
|
}
|
|
29395
|
-
function
|
|
29396
|
-
return r2 === "horizontal" ?
|
|
29471
|
+
function SW(e2, r2) {
|
|
29472
|
+
return r2 === "horizontal" ? wW(e2) : r2 === "vertical" ? CW(e2) : e2;
|
|
29397
29473
|
}
|
|
29398
|
-
function
|
|
29474
|
+
function CW(e2) {
|
|
29399
29475
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29400
29476
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
29401
29477
|
});
|
|
29402
29478
|
}
|
|
29403
|
-
function
|
|
29479
|
+
function wW(e2) {
|
|
29404
29480
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29405
29481
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
29406
29482
|
});
|
|
29407
29483
|
}
|
|
29408
|
-
function
|
|
29484
|
+
function TW(e2, r2, l2, u2, f2) {
|
|
29409
29485
|
e2 || (e2 = []);
|
|
29410
29486
|
let p2 = [];
|
|
29411
29487
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -29426,7 +29502,7 @@ ${c}
|
|
|
29426
29502
|
});
|
|
29427
29503
|
return f2 ? m2 : T(m2, u2, l2);
|
|
29428
29504
|
}
|
|
29429
|
-
function
|
|
29505
|
+
function EW(e2) {
|
|
29430
29506
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
29431
29507
|
"x",
|
|
29432
29508
|
"y",
|
|
@@ -29443,7 +29519,7 @@ ${c}
|
|
|
29443
29519
|
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})`);
|
|
29444
29520
|
}
|
|
29445
29521
|
}
|
|
29446
|
-
function
|
|
29522
|
+
function DW(e2) {
|
|
29447
29523
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
29448
29524
|
return r2 === false ? null : c2;
|
|
29449
29525
|
}
|
|
@@ -32248,7 +32324,7 @@ ${c}
|
|
|
32248
32324
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32249
32325
|
let E = useIsDragging(), O, j;
|
|
32250
32326
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
32251
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
32327
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, fW, pW, Z, mW, hW, gW, _W, vW, yW, bW, xW, SW, CW, wW, TW, EW, DW;
|
|
32252
32328
|
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) {
|
|
32253
32329
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
32254
32330
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32267,23 +32343,23 @@ ${c}
|
|
|
32267
32343
|
});
|
|
32268
32344
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
32269
32345
|
let y2 = v2;
|
|
32270
|
-
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,
|
|
32346
|
+
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, wW = "lg", r[58] === c.cells ? TW = r[59] : (TW = {
|
|
32271
32347
|
lg: c.cells
|
|
32272
|
-
}, r[58] = c.cells, r[59] =
|
|
32348
|
+
}, r[58] = c.cells, r[59] = TW), EW = L, DW = S, R = false;
|
|
32273
32349
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
32274
32350
|
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 ? [
|
|
32275
32351
|
20,
|
|
32276
32352
|
20
|
|
32277
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
32353
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, fW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (pW = (e3) => {
|
|
32278
32354
|
f || l({
|
|
32279
32355
|
...c,
|
|
32280
32356
|
cells: e3
|
|
32281
32357
|
});
|
|
32282
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
32358
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = pW) : pW = r[69], r[70] === g ? Z = r[71] : (Z = g ? {
|
|
32283
32359
|
i: g.i,
|
|
32284
32360
|
w: g.w || 2,
|
|
32285
32361
|
h: g.h || 2
|
|
32286
|
-
} : void 0, r[70] = g, r[71] =
|
|
32362
|
+
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (mW = (e3, r2, u2) => {
|
|
32287
32363
|
O.onDragStop(), r2 && l({
|
|
32288
32364
|
...c,
|
|
32289
32365
|
cells: [
|
|
@@ -32291,21 +32367,22 @@ ${c}
|
|
|
32291
32367
|
r2
|
|
32292
32368
|
]
|
|
32293
32369
|
});
|
|
32294
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
32370
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = mW) : mW = r[75], r[76] === O ? (hW = r[77], gW = r[78], _W = r[79]) : (hW = (e3, r2, c2, l2, u2) => {
|
|
32295
32371
|
O.onDragStart(u2);
|
|
32296
|
-
},
|
|
32372
|
+
}, gW = (e3, r2, c2, l2, u2) => {
|
|
32297
32373
|
O.onDragMove(u2);
|
|
32298
|
-
},
|
|
32374
|
+
}, _W = () => {
|
|
32299
32375
|
O.onDragStop();
|
|
32300
|
-
}, r[76] = O, r[77] =
|
|
32376
|
+
}, r[76] = O, r[77] = hW, r[78] = gW, r[79] = _W), vW = _temp3$2, yW = M, bW = M, xW = M, SW = M ? `.${DRAG_HANDLE}` : "noop";
|
|
32301
32377
|
let E2;
|
|
32302
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
32378
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), CW = u.filter(E2).map((r2) => {
|
|
32303
32379
|
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, {
|
|
32304
32380
|
code: r2.code,
|
|
32305
32381
|
mode: d,
|
|
32306
32382
|
cellId: r2.id,
|
|
32307
32383
|
output: r2.output,
|
|
32308
32384
|
status: r2.status,
|
|
32385
|
+
stale: outputIsStale(r2, false),
|
|
32309
32386
|
isScrollable: f2,
|
|
32310
32387
|
side: p,
|
|
32311
32388
|
hidden: r2.errored || r2.interrupted || r2.stopped
|
|
@@ -32328,14 +32405,14 @@ ${c}
|
|
|
32328
32405
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32329
32406
|
children: m3
|
|
32330
32407
|
}, r2.id);
|
|
32331
|
-
}), 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] =
|
|
32332
|
-
} 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],
|
|
32333
|
-
let
|
|
32334
|
-
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] !==
|
|
32335
|
-
breakpoint:
|
|
32336
|
-
layouts:
|
|
32337
|
-
style:
|
|
32338
|
-
cols:
|
|
32408
|
+
}), 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] = fW, r[31] = pW, r[32] = Z, r[33] = mW, r[34] = hW, r[35] = gW, r[36] = _W, r[37] = vW, r[38] = yW, r[39] = bW, r[40] = xW, r[41] = SW, r[42] = CW, r[43] = wW, r[44] = TW, r[45] = EW, r[46] = DW;
|
|
32409
|
+
} 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], fW = r[30], pW = r[31], Z = r[32], mW = r[33], hW = r[34], gW = r[35], _W = r[36], vW = r[37], yW = r[38], bW = r[39], xW = r[40], SW = r[41], CW = r[42], wW = r[43], TW = r[44], EW = r[45], DW = r[46];
|
|
32410
|
+
let OW;
|
|
32411
|
+
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] !== fW || r[91] !== pW || r[92] !== Z || r[93] !== mW || r[94] !== hW || r[95] !== gW || r[96] !== _W || r[97] !== vW || r[98] !== yW || r[99] !== bW || r[100] !== xW || r[101] !== SW || r[102] !== CW || r[103] !== wW || r[104] !== TW || r[105] !== EW || r[106] !== DW ? (OW = (0, import_jsx_runtime.jsx)(I, {
|
|
32412
|
+
breakpoint: wW,
|
|
32413
|
+
layouts: TW,
|
|
32414
|
+
style: EW,
|
|
32415
|
+
cols: DW,
|
|
32339
32416
|
allowOverlap: R,
|
|
32340
32417
|
className: z,
|
|
32341
32418
|
containerPadding: B,
|
|
@@ -32343,23 +32420,23 @@ ${c}
|
|
|
32343
32420
|
isBounded: W,
|
|
32344
32421
|
compactType: G,
|
|
32345
32422
|
preventCollision: q,
|
|
32346
|
-
rowHeight:
|
|
32347
|
-
onLayoutChange:
|
|
32348
|
-
droppingItem:
|
|
32349
|
-
onDrop:
|
|
32350
|
-
onDragStart:
|
|
32351
|
-
onDrag:
|
|
32352
|
-
onDragStop:
|
|
32353
|
-
onResizeStop:
|
|
32354
|
-
isDraggable:
|
|
32355
|
-
isDroppable:
|
|
32356
|
-
isResizable:
|
|
32357
|
-
draggableHandle:
|
|
32358
|
-
children:
|
|
32359
|
-
}), 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] =
|
|
32360
|
-
let
|
|
32361
|
-
if (r[108] !== u || r[109] !==
|
|
32362
|
-
|
|
32423
|
+
rowHeight: fW,
|
|
32424
|
+
onLayoutChange: pW,
|
|
32425
|
+
droppingItem: Z,
|
|
32426
|
+
onDrop: mW,
|
|
32427
|
+
onDragStart: hW,
|
|
32428
|
+
onDrag: gW,
|
|
32429
|
+
onDragStop: _W,
|
|
32430
|
+
onResizeStop: vW,
|
|
32431
|
+
isDraggable: yW,
|
|
32432
|
+
isDroppable: bW,
|
|
32433
|
+
isResizable: xW,
|
|
32434
|
+
draggableHandle: SW,
|
|
32435
|
+
children: CW
|
|
32436
|
+
}), 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] = fW, r[91] = pW, r[92] = Z, r[93] = mW, r[94] = hW, r[95] = gW, r[96] = _W, r[97] = vW, r[98] = yW, r[99] = bW, r[100] = xW, r[101] = SW, r[102] = CW, r[103] = wW, r[104] = TW, r[105] = EW, r[106] = DW, r[107] = OW) : OW = r[107];
|
|
32437
|
+
let kW = OW, AW, jW, MW, NW, PW, FW, IW;
|
|
32438
|
+
if (r[108] !== u || r[109] !== kW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
32439
|
+
IW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
32363
32440
|
bb0: {
|
|
32364
32441
|
let e2;
|
|
32365
32442
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -32367,14 +32444,14 @@ ${c}
|
|
|
32367
32444
|
if (f) {
|
|
32368
32445
|
if (c.bordered) {
|
|
32369
32446
|
let e4;
|
|
32370
|
-
r[127] !==
|
|
32447
|
+
r[127] !== kW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
32371
32448
|
className: "flex flex-1 flex-col items-center",
|
|
32372
32449
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
32373
32450
|
style: L,
|
|
32374
32451
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
32375
|
-
children:
|
|
32452
|
+
children: kW
|
|
32376
32453
|
})
|
|
32377
|
-
}), r[127] =
|
|
32454
|
+
}), r[127] = kW, r[128] = L, r[129] = e4) : e4 = r[129], kW = e4;
|
|
32378
32455
|
}
|
|
32379
32456
|
let e3 = m2.filter(_temp4$2), l2;
|
|
32380
32457
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -32383,11 +32460,12 @@ ${c}
|
|
|
32383
32460
|
cellId: e4.id,
|
|
32384
32461
|
output: e4.output,
|
|
32385
32462
|
status: e4.status,
|
|
32463
|
+
stale: outputIsStale(e4, false),
|
|
32386
32464
|
isScrollable: false,
|
|
32387
32465
|
hidden: false
|
|
32388
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
32466
|
+
}, e4.id), r[130] = d, r[131] = l2), IW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32389
32467
|
children: [
|
|
32390
|
-
|
|
32468
|
+
kW,
|
|
32391
32469
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32392
32470
|
className: "hidden",
|
|
32393
32471
|
children: e3.map(l2)
|
|
@@ -32398,31 +32476,31 @@ ${c}
|
|
|
32398
32476
|
}
|
|
32399
32477
|
if (c.bordered) {
|
|
32400
32478
|
let e3;
|
|
32401
|
-
r[132] ===
|
|
32479
|
+
r[132] === kW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
32402
32480
|
className: "h-full overflow-auto",
|
|
32403
|
-
children:
|
|
32404
|
-
}), r[132] =
|
|
32481
|
+
children: kW
|
|
32482
|
+
}), r[132] = kW, r[133] = e3);
|
|
32405
32483
|
let c2;
|
|
32406
32484
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32407
32485
|
style: L,
|
|
32408
32486
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
32409
32487
|
children: e3
|
|
32410
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
32488
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], kW = c2;
|
|
32411
32489
|
}
|
|
32412
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
32490
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (FW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
32413
32491
|
layout: c,
|
|
32414
32492
|
setLayout: l,
|
|
32415
32493
|
isLocked: v,
|
|
32416
32494
|
setIsLocked: y
|
|
32417
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
32495
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = FW) : FW = r[140];
|
|
32418
32496
|
let g2;
|
|
32419
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32497
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (NW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = NW, r[142] = g2) : (NW = r[141], g2 = r[142]), r[143] === kW ? PW = r[144] : (PW = (0, import_jsx_runtime.jsx)("div", {
|
|
32420
32498
|
className: g2,
|
|
32421
|
-
children:
|
|
32422
|
-
}), r[143] =
|
|
32499
|
+
children: kW
|
|
32500
|
+
}), r[143] = kW, r[144] = PW), AW = "flex-none flex flex-col w-[300px] p-2 pb-20 gap-2 overflow-auto bg-(--slate-2) border-t border-x rounded-t shadow-sm transparent-when-disconnected mx-2 mt-4", r[145] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (jW = (0, import_jsx_runtime.jsx)("div", {
|
|
32423
32501
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
32424
32502
|
children: "Outputs"
|
|
32425
|
-
}), r[145] =
|
|
32503
|
+
}), r[145] = jW) : jW = r[145];
|
|
32426
32504
|
let b2;
|
|
32427
32505
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
32428
32506
|
draggable: true,
|
|
@@ -32445,41 +32523,42 @@ ${c}
|
|
|
32445
32523
|
output: e3.output,
|
|
32446
32524
|
isScrollable: false,
|
|
32447
32525
|
status: e3.status,
|
|
32526
|
+
stale: outputIsStale(e3, false),
|
|
32448
32527
|
hidden: false
|
|
32449
32528
|
})
|
|
32450
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
32451
|
-
}
|
|
32452
|
-
r[108] = u, r[109] =
|
|
32453
|
-
} else
|
|
32454
|
-
if (
|
|
32455
|
-
let
|
|
32456
|
-
r[150] !==
|
|
32457
|
-
className:
|
|
32529
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], MW = m2.map(b2);
|
|
32530
|
+
}
|
|
32531
|
+
r[108] = u, r[109] = kW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = AW, r[118] = jW, r[119] = MW, r[120] = NW, r[121] = PW, r[122] = FW, r[123] = IW, r[124] = kW;
|
|
32532
|
+
} else AW = r[117], jW = r[118], MW = r[119], NW = r[120], PW = r[121], FW = r[122], IW = r[123], kW = r[124];
|
|
32533
|
+
if (IW !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return IW;
|
|
32534
|
+
let LW;
|
|
32535
|
+
r[150] !== AW || r[151] !== jW || r[152] !== MW ? (LW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32536
|
+
className: AW,
|
|
32458
32537
|
children: [
|
|
32459
|
-
|
|
32460
|
-
|
|
32538
|
+
jW,
|
|
32539
|
+
MW
|
|
32461
32540
|
]
|
|
32462
|
-
}), r[150] =
|
|
32463
|
-
let
|
|
32464
|
-
r[154] !==
|
|
32465
|
-
className:
|
|
32541
|
+
}), r[150] = AW, r[151] = jW, r[152] = MW, r[153] = LW) : LW = r[153];
|
|
32542
|
+
let RW;
|
|
32543
|
+
r[154] !== NW || r[155] !== PW || r[156] !== LW ? (RW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32544
|
+
className: NW,
|
|
32466
32545
|
children: [
|
|
32467
|
-
|
|
32468
|
-
|
|
32546
|
+
PW,
|
|
32547
|
+
LW
|
|
32469
32548
|
]
|
|
32470
|
-
}), r[154] =
|
|
32471
|
-
let
|
|
32472
|
-
return r[158] !==
|
|
32549
|
+
}), r[154] = NW, r[155] = PW, r[156] = LW, r[157] = RW) : RW = r[157];
|
|
32550
|
+
let zW;
|
|
32551
|
+
return r[158] !== FW || r[159] !== RW ? (zW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32473
32552
|
children: [
|
|
32474
|
-
|
|
32475
|
-
|
|
32553
|
+
FW,
|
|
32554
|
+
RW
|
|
32476
32555
|
]
|
|
32477
|
-
}), r[158] =
|
|
32556
|
+
}), r[158] = FW, r[159] = RW, r[160] = zW) : zW = r[160], zW;
|
|
32478
32557
|
};
|
|
32479
32558
|
var GridCell = (0, import_react.memo)((e) => {
|
|
32480
|
-
let r = (0, import_compiler_runtime$13.c)(
|
|
32481
|
-
r[0] === u ?
|
|
32482
|
-
let
|
|
32559
|
+
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;
|
|
32560
|
+
r[0] === u ? y = r[1] : (y = outputIsLoading(u), r[0] = u, r[1] = y);
|
|
32561
|
+
let b = y;
|
|
32483
32562
|
if ((c == null || c.data === "") && d !== "read") {
|
|
32484
32563
|
let e2;
|
|
32485
32564
|
return r[2] !== _ || r[3] !== f ? (e2 = (0, import_jsx_runtime.jsx)(TinyCode, {
|
|
@@ -32487,21 +32566,21 @@ ${c}
|
|
|
32487
32566
|
code: f
|
|
32488
32567
|
}), r[2] = _, r[3] = f, r[4] = e2) : e2 = r[4], e2;
|
|
32489
32568
|
}
|
|
32490
|
-
let
|
|
32491
|
-
r[5] !== _ || r[6] !==
|
|
32492
|
-
let
|
|
32493
|
-
r[13] !== l || r[14] !==
|
|
32569
|
+
let S = m && "invisible", w = h ? "overflow-y-auto" : "overflow-y-hidden", T = g === "top" && "flex items-start", E = g === "bottom" && "flex items-end", O = g === "left" && "flex justify-start", j = g === "right" && "flex justify-end", M;
|
|
32570
|
+
r[5] !== _ || r[6] !== S || r[7] !== w || r[8] !== T || r[9] !== E || r[10] !== O || r[11] !== j ? (M = cn(_, "h-full w-full p-2 overflow-x-auto", S, w, T, E, O, j), r[5] = _, r[6] = S, r[7] = w, r[8] = T, r[9] = E, r[10] = O, r[11] = j, r[12] = M) : M = r[12];
|
|
32571
|
+
let I;
|
|
32572
|
+
r[13] !== l || r[14] !== b || r[15] !== c || r[16] !== v ? (I = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
32494
32573
|
allowExpand: false,
|
|
32495
32574
|
output: c,
|
|
32496
32575
|
cellId: l,
|
|
32497
|
-
stale:
|
|
32498
|
-
loading:
|
|
32499
|
-
}), r[13] = l, r[14] =
|
|
32500
|
-
let
|
|
32501
|
-
return r[
|
|
32502
|
-
className:
|
|
32503
|
-
children:
|
|
32504
|
-
}), r[
|
|
32576
|
+
stale: v,
|
|
32577
|
+
loading: b
|
|
32578
|
+
}), r[13] = l, r[14] = b, r[15] = c, r[16] = v, r[17] = I) : I = r[17];
|
|
32579
|
+
let L;
|
|
32580
|
+
return r[18] !== M || r[19] !== I ? (L = (0, import_jsx_runtime.jsx)("div", {
|
|
32581
|
+
className: M,
|
|
32582
|
+
children: I
|
|
32583
|
+
}), r[18] = M, r[19] = I, r[20] = L) : L = r[20], L;
|
|
32505
32584
|
});
|
|
32506
32585
|
GridCell.displayName = "GridCell";
|
|
32507
32586
|
var GridControls = (e) => {
|
|
@@ -32775,25 +32854,25 @@ ${c}
|
|
|
32775
32854
|
G
|
|
32776
32855
|
]
|
|
32777
32856
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
32778
|
-
let
|
|
32779
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32857
|
+
let fW;
|
|
32858
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32780
32859
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32781
|
-
}), r[35] =
|
|
32782
|
-
let
|
|
32783
|
-
r[36] === l ?
|
|
32860
|
+
}), r[35] = fW) : fW = r[35];
|
|
32861
|
+
let pW;
|
|
32862
|
+
r[36] === l ? pW = r[37] : (pW = (0, import_jsx_runtime.jsx)(X, {
|
|
32784
32863
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
32785
32864
|
onClick: () => l()
|
|
32786
|
-
}), r[36] = l, r[37] =
|
|
32787
|
-
let
|
|
32788
|
-
return r[38] !== I || r[39] !== q || r[40] !==
|
|
32865
|
+
}), r[36] = l, r[37] = pW);
|
|
32866
|
+
let Z;
|
|
32867
|
+
return r[38] !== I || r[39] !== q || r[40] !== pW || r[41] !== w ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
32789
32868
|
className: w,
|
|
32790
32869
|
children: [
|
|
32791
32870
|
I,
|
|
32792
32871
|
q,
|
|
32793
|
-
|
|
32794
|
-
|
|
32872
|
+
fW,
|
|
32873
|
+
pW
|
|
32795
32874
|
]
|
|
32796
|
-
}), r[38] = I, r[39] = q, r[40] =
|
|
32875
|
+
}), r[38] = I, r[39] = q, r[40] = pW, r[41] = w, r[42] = Z) : Z = r[42], Z;
|
|
32797
32876
|
};
|
|
32798
32877
|
function isSidebarCell(e) {
|
|
32799
32878
|
var _a3;
|
|
@@ -34797,31 +34876,31 @@ ${c}
|
|
|
34797
34876
|
}, [
|
|
34798
34877
|
T,
|
|
34799
34878
|
M
|
|
34800
|
-
]), 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),
|
|
34879
|
+
]), 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), fW = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34801
34880
|
j
|
|
34802
|
-
]),
|
|
34881
|
+
]), pW = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers: mW, measuringScheduled: hW } = useDroppableMeasuring(fW, {
|
|
34803
34882
|
dragging: w,
|
|
34804
34883
|
dependencies: [
|
|
34805
34884
|
O.x,
|
|
34806
34885
|
O.y
|
|
34807
34886
|
],
|
|
34808
|
-
config:
|
|
34809
|
-
}),
|
|
34887
|
+
config: pW.droppable
|
|
34888
|
+
}), gW = useCachedNode(E, T), _W = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34810
34889
|
H
|
|
34811
|
-
]),
|
|
34890
|
+
]), vW = YW(), yW = useInitialRect(gW, pW.draggable.measure);
|
|
34812
34891
|
useLayoutShiftScrollCompensation({
|
|
34813
34892
|
activeNode: T == null ? null : E.get(T),
|
|
34814
|
-
config:
|
|
34815
|
-
initialRect:
|
|
34816
|
-
measure:
|
|
34893
|
+
config: vW.layoutShiftCompensation,
|
|
34894
|
+
initialRect: yW,
|
|
34895
|
+
measure: pW.draggable.measure
|
|
34817
34896
|
});
|
|
34818
|
-
let
|
|
34897
|
+
let bW = useRect(gW, pW.draggable.measure, yW), xW = useRect(gW ? gW.parentElement : null), SW = (0, import_react.useRef)({
|
|
34819
34898
|
activatorEvent: null,
|
|
34820
34899
|
active: null,
|
|
34821
|
-
activeNode:
|
|
34900
|
+
activeNode: gW,
|
|
34822
34901
|
collisionRect: null,
|
|
34823
34902
|
collisions: null,
|
|
34824
|
-
droppableRects:
|
|
34903
|
+
droppableRects: Z,
|
|
34825
34904
|
draggableNodes: E,
|
|
34826
34905
|
draggingNode: null,
|
|
34827
34906
|
draggingNodeRect: null,
|
|
@@ -34829,45 +34908,45 @@ ${c}
|
|
|
34829
34908
|
over: null,
|
|
34830
34909
|
scrollableAncestors: [],
|
|
34831
34910
|
scrollAdjustedTranslate: null
|
|
34832
|
-
}),
|
|
34833
|
-
measure:
|
|
34834
|
-
}),
|
|
34911
|
+
}), CW = j.getNodeFor((_a3 = SW.current.over) == null ? void 0 : _a3.id), wW = useDragOverlayMeasuring({
|
|
34912
|
+
measure: pW.dragOverlay.measure
|
|
34913
|
+
}), TW = wW.nodeRef.current ?? gW, EW = w ? wW.rect ?? bW : null, DW = !!(wW.nodeRef.current && wW.rect), OW = useRectDelta(DW ? null : bW), kW = useWindowRect(TW ? getWindow(TW) : null), AW = useScrollableAncestors(w ? CW ?? gW : null), jW = useRects(AW), MW = applyModifiers(m, {
|
|
34835
34914
|
transform: {
|
|
34836
|
-
x: O.x -
|
|
34837
|
-
y: O.y -
|
|
34915
|
+
x: O.x - OW.x,
|
|
34916
|
+
y: O.y - OW.y,
|
|
34838
34917
|
scaleX: 1,
|
|
34839
34918
|
scaleY: 1
|
|
34840
34919
|
},
|
|
34841
34920
|
activatorEvent: H,
|
|
34842
34921
|
active: L,
|
|
34843
|
-
activeNodeRect:
|
|
34844
|
-
containerNodeRect:
|
|
34845
|
-
draggingNodeRect:
|
|
34846
|
-
over:
|
|
34847
|
-
overlayNodeRect:
|
|
34848
|
-
scrollableAncestors:
|
|
34849
|
-
scrollableAncestorRects:
|
|
34850
|
-
windowRect:
|
|
34851
|
-
}),
|
|
34852
|
-
|
|
34853
|
-
]),
|
|
34922
|
+
activeNodeRect: bW,
|
|
34923
|
+
containerNodeRect: xW,
|
|
34924
|
+
draggingNodeRect: EW,
|
|
34925
|
+
over: SW.current.over,
|
|
34926
|
+
overlayNodeRect: wW.rect,
|
|
34927
|
+
scrollableAncestors: AW,
|
|
34928
|
+
scrollableAncestorRects: jW,
|
|
34929
|
+
windowRect: kW
|
|
34930
|
+
}), NW = _W ? add(_W, O) : null, PW = useScrollOffsets(AW), FW = useScrollOffsetsDelta(PW), IW = useScrollOffsetsDelta(PW, [
|
|
34931
|
+
bW
|
|
34932
|
+
]), LW = add(MW, FW), RW = EW ? getAdjustedRect(EW, MW) : null, zW = L && RW ? f({
|
|
34854
34933
|
active: L,
|
|
34855
|
-
collisionRect:
|
|
34856
|
-
droppableRects:
|
|
34857
|
-
droppableContainers:
|
|
34858
|
-
pointerCoordinates:
|
|
34859
|
-
}) : null,
|
|
34934
|
+
collisionRect: RW,
|
|
34935
|
+
droppableRects: Z,
|
|
34936
|
+
droppableContainers: fW,
|
|
34937
|
+
pointerCoordinates: NW
|
|
34938
|
+
}) : null, BW = getFirstCollision(zW, "id"), [VW, HW] = (0, import_react.useState)(null), UW = adjustScale(DW ? MW : add(MW, IW), (VW == null ? void 0 : VW.rect) ?? null, bW), WW = (0, import_react.useRef)(null), GW = (0, import_react.useCallback)((e2, r2) => {
|
|
34860
34939
|
let { sensor: c2, options: l2 } = r2;
|
|
34861
34940
|
if (R.current == null) return;
|
|
34862
34941
|
let u2 = E.get(R.current);
|
|
34863
34942
|
if (!u2) return;
|
|
34864
34943
|
let d2 = e2.nativeEvent;
|
|
34865
|
-
|
|
34944
|
+
WW.current = new c2({
|
|
34866
34945
|
active: R.current,
|
|
34867
34946
|
activeNode: u2,
|
|
34868
34947
|
event: d2,
|
|
34869
34948
|
options: l2,
|
|
34870
|
-
context:
|
|
34949
|
+
context: SW,
|
|
34871
34950
|
onAbort(e3) {
|
|
34872
34951
|
if (!E.get(e3)) return;
|
|
34873
34952
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -34912,7 +34991,7 @@ ${c}
|
|
|
34912
34991
|
}), v({
|
|
34913
34992
|
type: "onDragStart",
|
|
34914
34993
|
event: u3
|
|
34915
|
-
}), B(
|
|
34994
|
+
}), B(WW.current), W(d2);
|
|
34916
34995
|
});
|
|
34917
34996
|
},
|
|
34918
34997
|
onMove(e3) {
|
|
@@ -34926,7 +35005,7 @@ ${c}
|
|
|
34926
35005
|
});
|
|
34927
35006
|
function f2(e3) {
|
|
34928
35007
|
return async function() {
|
|
34929
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
35008
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = SW.current, f3 = null;
|
|
34930
35009
|
if (r3 && u3) {
|
|
34931
35010
|
let { cancelDrop: p2 } = G.current;
|
|
34932
35011
|
f3 = {
|
|
@@ -34940,7 +35019,7 @@ ${c}
|
|
|
34940
35019
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34941
35020
|
_({
|
|
34942
35021
|
type: e3
|
|
34943
|
-
}), S(Status.Uninitialized),
|
|
35022
|
+
}), S(Status.Uninitialized), HW(null), B(null), W(null), WW.current = null;
|
|
34944
35023
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
34945
35024
|
if (f3) {
|
|
34946
35025
|
let e4 = G.current[r4];
|
|
@@ -34954,7 +35033,7 @@ ${c}
|
|
|
34954
35033
|
}
|
|
34955
35034
|
}, [
|
|
34956
35035
|
E
|
|
34957
|
-
]),
|
|
35036
|
+
]), KW = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
34958
35037
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
34959
35038
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
34960
35039
|
let f2 = {
|
|
@@ -34962,26 +35041,26 @@ ${c}
|
|
|
34962
35041
|
};
|
|
34963
35042
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
34964
35043
|
capturedBy: r2.sensor
|
|
34965
|
-
}, R.current = l2,
|
|
35044
|
+
}, R.current = l2, GW(c2, r2));
|
|
34966
35045
|
}, [
|
|
34967
35046
|
E,
|
|
34968
|
-
|
|
35047
|
+
GW
|
|
34969
35048
|
]));
|
|
34970
35049
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
34971
|
-
|
|
35050
|
+
bW && b === Status.Initializing && S(Status.Initialized);
|
|
34972
35051
|
}, [
|
|
34973
|
-
|
|
35052
|
+
bW,
|
|
34974
35053
|
b
|
|
34975
35054
|
]), (0, import_react.useEffect)(() => {
|
|
34976
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
35055
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = SW.current;
|
|
34977
35056
|
if (!r2 || !c2) return;
|
|
34978
35057
|
let d2 = {
|
|
34979
35058
|
active: r2,
|
|
34980
35059
|
activatorEvent: c2,
|
|
34981
35060
|
collisions: l2,
|
|
34982
35061
|
delta: {
|
|
34983
|
-
x:
|
|
34984
|
-
y:
|
|
35062
|
+
x: LW.x,
|
|
35063
|
+
y: LW.y
|
|
34985
35064
|
},
|
|
34986
35065
|
over: u2
|
|
34987
35066
|
};
|
|
@@ -34992,12 +35071,12 @@ ${c}
|
|
|
34992
35071
|
});
|
|
34993
35072
|
});
|
|
34994
35073
|
}, [
|
|
34995
|
-
|
|
34996
|
-
|
|
35074
|
+
LW.x,
|
|
35075
|
+
LW.y
|
|
34997
35076
|
]), (0, import_react.useEffect)(() => {
|
|
34998
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
35077
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = SW.current;
|
|
34999
35078
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
35000
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
35079
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(BW), p2 = f2 && f2.rect.current ? {
|
|
35001
35080
|
id: f2.id,
|
|
35002
35081
|
rect: f2.rect.current,
|
|
35003
35082
|
data: f2.data,
|
|
@@ -35013,127 +35092,127 @@ ${c}
|
|
|
35013
35092
|
over: p2
|
|
35014
35093
|
};
|
|
35015
35094
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
35016
|
-
|
|
35095
|
+
HW(p2), d2 == null ? void 0 : d2(m2), v({
|
|
35017
35096
|
type: "onDragOver",
|
|
35018
35097
|
event: m2
|
|
35019
35098
|
});
|
|
35020
35099
|
});
|
|
35021
35100
|
}, [
|
|
35022
|
-
|
|
35101
|
+
BW
|
|
35023
35102
|
]), useIsomorphicLayoutEffect(() => {
|
|
35024
|
-
|
|
35103
|
+
SW.current = {
|
|
35025
35104
|
activatorEvent: H,
|
|
35026
35105
|
active: L,
|
|
35027
|
-
activeNode:
|
|
35028
|
-
collisionRect:
|
|
35029
|
-
collisions:
|
|
35030
|
-
droppableRects:
|
|
35106
|
+
activeNode: gW,
|
|
35107
|
+
collisionRect: RW,
|
|
35108
|
+
collisions: zW,
|
|
35109
|
+
droppableRects: Z,
|
|
35031
35110
|
draggableNodes: E,
|
|
35032
|
-
draggingNode:
|
|
35033
|
-
draggingNodeRect:
|
|
35111
|
+
draggingNode: TW,
|
|
35112
|
+
draggingNodeRect: EW,
|
|
35034
35113
|
droppableContainers: j,
|
|
35035
|
-
over:
|
|
35036
|
-
scrollableAncestors:
|
|
35037
|
-
scrollAdjustedTranslate:
|
|
35114
|
+
over: VW,
|
|
35115
|
+
scrollableAncestors: AW,
|
|
35116
|
+
scrollAdjustedTranslate: LW
|
|
35038
35117
|
}, I.current = {
|
|
35039
|
-
initial:
|
|
35040
|
-
translated:
|
|
35118
|
+
initial: EW,
|
|
35119
|
+
translated: RW
|
|
35041
35120
|
};
|
|
35042
35121
|
}, [
|
|
35043
35122
|
L,
|
|
35044
|
-
|
|
35045
|
-
|
|
35046
|
-
|
|
35123
|
+
gW,
|
|
35124
|
+
zW,
|
|
35125
|
+
RW,
|
|
35047
35126
|
E,
|
|
35048
|
-
|
|
35049
|
-
|
|
35050
|
-
|
|
35127
|
+
TW,
|
|
35128
|
+
EW,
|
|
35129
|
+
Z,
|
|
35051
35130
|
j,
|
|
35052
|
-
|
|
35053
|
-
|
|
35054
|
-
|
|
35131
|
+
VW,
|
|
35132
|
+
AW,
|
|
35133
|
+
LW
|
|
35055
35134
|
]), useAutoScroller({
|
|
35056
|
-
...
|
|
35135
|
+
...vW,
|
|
35057
35136
|
delta: O,
|
|
35058
|
-
draggingRect:
|
|
35059
|
-
pointerCoordinates:
|
|
35060
|
-
scrollableAncestors:
|
|
35061
|
-
scrollableAncestorRects:
|
|
35137
|
+
draggingRect: RW,
|
|
35138
|
+
pointerCoordinates: NW,
|
|
35139
|
+
scrollableAncestors: AW,
|
|
35140
|
+
scrollableAncestorRects: jW
|
|
35062
35141
|
});
|
|
35063
|
-
let
|
|
35142
|
+
let qW = (0, import_react.useMemo)(() => ({
|
|
35064
35143
|
active: L,
|
|
35065
|
-
activeNode:
|
|
35066
|
-
activeNodeRect:
|
|
35144
|
+
activeNode: gW,
|
|
35145
|
+
activeNodeRect: bW,
|
|
35067
35146
|
activatorEvent: H,
|
|
35068
|
-
collisions:
|
|
35069
|
-
containerNodeRect:
|
|
35070
|
-
dragOverlay:
|
|
35147
|
+
collisions: zW,
|
|
35148
|
+
containerNodeRect: xW,
|
|
35149
|
+
dragOverlay: wW,
|
|
35071
35150
|
draggableNodes: E,
|
|
35072
35151
|
droppableContainers: j,
|
|
35073
|
-
droppableRects:
|
|
35074
|
-
over:
|
|
35075
|
-
measureDroppableContainers:
|
|
35076
|
-
scrollableAncestors:
|
|
35077
|
-
scrollableAncestorRects:
|
|
35078
|
-
measuringConfiguration:
|
|
35079
|
-
measuringScheduled:
|
|
35080
|
-
windowRect:
|
|
35152
|
+
droppableRects: Z,
|
|
35153
|
+
over: VW,
|
|
35154
|
+
measureDroppableContainers: mW,
|
|
35155
|
+
scrollableAncestors: AW,
|
|
35156
|
+
scrollableAncestorRects: jW,
|
|
35157
|
+
measuringConfiguration: pW,
|
|
35158
|
+
measuringScheduled: hW,
|
|
35159
|
+
windowRect: kW
|
|
35081
35160
|
}), [
|
|
35082
35161
|
L,
|
|
35083
|
-
|
|
35084
|
-
|
|
35162
|
+
gW,
|
|
35163
|
+
bW,
|
|
35085
35164
|
H,
|
|
35086
|
-
|
|
35087
|
-
|
|
35088
|
-
|
|
35165
|
+
zW,
|
|
35166
|
+
xW,
|
|
35167
|
+
wW,
|
|
35089
35168
|
E,
|
|
35090
35169
|
j,
|
|
35091
|
-
eW,
|
|
35092
|
-
OW,
|
|
35093
|
-
tW,
|
|
35094
|
-
_W,
|
|
35095
|
-
vW,
|
|
35096
35170
|
Z,
|
|
35097
|
-
|
|
35098
|
-
|
|
35099
|
-
|
|
35171
|
+
VW,
|
|
35172
|
+
mW,
|
|
35173
|
+
AW,
|
|
35174
|
+
jW,
|
|
35175
|
+
pW,
|
|
35176
|
+
hW,
|
|
35177
|
+
kW
|
|
35178
|
+
]), JW = (0, import_react.useMemo)(() => ({
|
|
35100
35179
|
activatorEvent: H,
|
|
35101
|
-
activators:
|
|
35180
|
+
activators: KW,
|
|
35102
35181
|
active: L,
|
|
35103
|
-
activeNodeRect:
|
|
35182
|
+
activeNodeRect: bW,
|
|
35104
35183
|
ariaDescribedById: {
|
|
35105
35184
|
draggable: q
|
|
35106
35185
|
},
|
|
35107
35186
|
dispatch: _,
|
|
35108
35187
|
draggableNodes: E,
|
|
35109
|
-
over:
|
|
35110
|
-
measureDroppableContainers:
|
|
35188
|
+
over: VW,
|
|
35189
|
+
measureDroppableContainers: mW
|
|
35111
35190
|
}), [
|
|
35112
35191
|
H,
|
|
35113
|
-
|
|
35192
|
+
KW,
|
|
35114
35193
|
L,
|
|
35115
|
-
|
|
35194
|
+
bW,
|
|
35116
35195
|
_,
|
|
35117
35196
|
q,
|
|
35118
35197
|
E,
|
|
35119
|
-
|
|
35120
|
-
|
|
35198
|
+
VW,
|
|
35199
|
+
mW
|
|
35121
35200
|
]);
|
|
35122
35201
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
35123
35202
|
value: y
|
|
35124
35203
|
}, import_react.createElement(InternalContext.Provider, {
|
|
35125
|
-
value:
|
|
35204
|
+
value: JW
|
|
35126
35205
|
}, import_react.createElement(PublicContext.Provider, {
|
|
35127
|
-
value:
|
|
35206
|
+
value: qW
|
|
35128
35207
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
35129
|
-
value:
|
|
35208
|
+
value: UW
|
|
35130
35209
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
35131
35210
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35132
35211
|
})), import_react.createElement(Accessibility, {
|
|
35133
35212
|
...c,
|
|
35134
35213
|
hiddenTextDescribedById: q
|
|
35135
35214
|
}));
|
|
35136
|
-
function
|
|
35215
|
+
function YW() {
|
|
35137
35216
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
35138
35217
|
return typeof l == "object" ? {
|
|
35139
35218
|
...l,
|
|
@@ -35661,7 +35740,7 @@ ${c}
|
|
|
35661
35740
|
updateMeasurementsFor: I,
|
|
35662
35741
|
...m
|
|
35663
35742
|
}
|
|
35664
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
35743
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: fW, listeners: pW, isDragging: Z, over: mW, setActivatorNodeRef: hW, transform: gW } = useDraggable({
|
|
35665
35744
|
id: f,
|
|
35666
35745
|
data: M,
|
|
35667
35746
|
attributes: {
|
|
@@ -35669,60 +35748,60 @@ ${c}
|
|
|
35669
35748
|
...c
|
|
35670
35749
|
},
|
|
35671
35750
|
disabled: O.draggable
|
|
35672
|
-
}),
|
|
35751
|
+
}), _W = useCombinedRefs(B, fW), vW = !!H, yW = vW && !b && isValidIndex(v) && isValidIndex(w), bW = !T && Z, xW = yW ? (bW && yW ? gW : null) ?? (p ?? E)({
|
|
35673
35752
|
rects: S,
|
|
35674
35753
|
activeNodeRect: G,
|
|
35675
35754
|
activeIndex: v,
|
|
35676
35755
|
overIndex: w,
|
|
35677
35756
|
index: j
|
|
35678
|
-
}) : null,
|
|
35757
|
+
}) : null, SW = isValidIndex(v) && isValidIndex(w) ? d({
|
|
35679
35758
|
id: f,
|
|
35680
35759
|
items: g,
|
|
35681
35760
|
activeIndex: v,
|
|
35682
35761
|
overIndex: w
|
|
35683
|
-
}) : j,
|
|
35684
|
-
activeId:
|
|
35762
|
+
}) : j, CW = H == null ? void 0 : H.id, wW = (0, import_react.useRef)({
|
|
35763
|
+
activeId: CW,
|
|
35685
35764
|
items: g,
|
|
35686
|
-
newIndex:
|
|
35765
|
+
newIndex: SW,
|
|
35687
35766
|
containerId: _
|
|
35688
|
-
}),
|
|
35767
|
+
}), TW = g !== wW.current.items, EW = r({
|
|
35689
35768
|
active: H,
|
|
35690
35769
|
containerId: _,
|
|
35691
|
-
isDragging:
|
|
35692
|
-
isSorting:
|
|
35770
|
+
isDragging: Z,
|
|
35771
|
+
isSorting: vW,
|
|
35693
35772
|
id: f,
|
|
35694
35773
|
index: j,
|
|
35695
35774
|
items: g,
|
|
35696
|
-
newIndex:
|
|
35697
|
-
previousItems:
|
|
35698
|
-
previousContainerId:
|
|
35775
|
+
newIndex: wW.current.newIndex,
|
|
35776
|
+
previousItems: wW.current.items,
|
|
35777
|
+
previousContainerId: wW.current.containerId,
|
|
35699
35778
|
transition: h,
|
|
35700
|
-
wasDragging:
|
|
35701
|
-
}),
|
|
35702
|
-
disabled: !
|
|
35779
|
+
wasDragging: wW.current.activeId != null
|
|
35780
|
+
}), DW = useDerivedTransform({
|
|
35781
|
+
disabled: !EW,
|
|
35703
35782
|
index: j,
|
|
35704
35783
|
node: R,
|
|
35705
35784
|
rect: L
|
|
35706
35785
|
});
|
|
35707
35786
|
return (0, import_react.useEffect)(() => {
|
|
35708
|
-
|
|
35787
|
+
vW && wW.current.newIndex !== SW && (wW.current.newIndex = SW), _ !== wW.current.containerId && (wW.current.containerId = _), g !== wW.current.items && (wW.current.items = g);
|
|
35709
35788
|
}, [
|
|
35710
|
-
|
|
35711
|
-
|
|
35789
|
+
vW,
|
|
35790
|
+
SW,
|
|
35712
35791
|
_,
|
|
35713
35792
|
g
|
|
35714
35793
|
]), (0, import_react.useEffect)(() => {
|
|
35715
|
-
if (
|
|
35716
|
-
if (
|
|
35717
|
-
|
|
35794
|
+
if (CW === wW.current.activeId) return;
|
|
35795
|
+
if (CW != null && wW.current.activeId == null) {
|
|
35796
|
+
wW.current.activeId = CW;
|
|
35718
35797
|
return;
|
|
35719
35798
|
}
|
|
35720
35799
|
let e2 = setTimeout(() => {
|
|
35721
|
-
|
|
35800
|
+
wW.current.activeId = CW;
|
|
35722
35801
|
}, 50);
|
|
35723
35802
|
return () => clearTimeout(e2);
|
|
35724
35803
|
}, [
|
|
35725
|
-
|
|
35804
|
+
CW
|
|
35726
35805
|
]), {
|
|
35727
35806
|
active: H,
|
|
35728
35807
|
activeIndex: v,
|
|
@@ -35730,25 +35809,25 @@ ${c}
|
|
|
35730
35809
|
data: M,
|
|
35731
35810
|
rect: L,
|
|
35732
35811
|
index: j,
|
|
35733
|
-
newIndex:
|
|
35812
|
+
newIndex: SW,
|
|
35734
35813
|
items: g,
|
|
35735
35814
|
isOver: z,
|
|
35736
|
-
isSorting:
|
|
35737
|
-
isDragging:
|
|
35738
|
-
listeners:
|
|
35815
|
+
isSorting: vW,
|
|
35816
|
+
isDragging: Z,
|
|
35817
|
+
listeners: pW,
|
|
35739
35818
|
node: R,
|
|
35740
35819
|
overIndex: w,
|
|
35741
|
-
over:
|
|
35742
|
-
setNodeRef:
|
|
35743
|
-
setActivatorNodeRef:
|
|
35820
|
+
over: mW,
|
|
35821
|
+
setNodeRef: _W,
|
|
35822
|
+
setActivatorNodeRef: hW,
|
|
35744
35823
|
setDroppableNodeRef: B,
|
|
35745
|
-
setDraggableNodeRef:
|
|
35746
|
-
transform:
|
|
35747
|
-
transition:
|
|
35824
|
+
setDraggableNodeRef: fW,
|
|
35825
|
+
transform: DW ?? xW,
|
|
35826
|
+
transition: OW()
|
|
35748
35827
|
};
|
|
35749
|
-
function
|
|
35750
|
-
if (
|
|
35751
|
-
if (!(
|
|
35828
|
+
function OW() {
|
|
35829
|
+
if (DW || TW && wW.current.newIndex === j) return disabledTransition;
|
|
35830
|
+
if (!(bW && !isKeyboardEvent(W) || !h) && (vW || EW)) return CSS$1.Transition.toString({
|
|
35752
35831
|
...h,
|
|
35753
35832
|
property: transitionProperty
|
|
35754
35833
|
});
|
|
@@ -36048,15 +36127,15 @@ ${c}
|
|
|
36048
36127
|
G
|
|
36049
36128
|
]
|
|
36050
36129
|
}), 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];
|
|
36051
|
-
let
|
|
36052
|
-
if (!v && !g) return
|
|
36053
|
-
let
|
|
36054
|
-
r[46] ===
|
|
36130
|
+
let fW = q;
|
|
36131
|
+
if (!v && !g) return fW;
|
|
36132
|
+
let pW;
|
|
36133
|
+
r[46] === fW ? pW = r[47] : (pW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
36055
36134
|
asChild: true,
|
|
36056
|
-
children:
|
|
36057
|
-
}), r[46] =
|
|
36058
|
-
let
|
|
36059
|
-
r[48] === v ?
|
|
36135
|
+
children: fW
|
|
36136
|
+
}), r[46] = fW, r[47] = pW);
|
|
36137
|
+
let Z;
|
|
36138
|
+
r[48] === v ? Z = r[49] : (Z = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36060
36139
|
onSelect: v,
|
|
36061
36140
|
children: [
|
|
36062
36141
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -36064,11 +36143,11 @@ ${c}
|
|
|
36064
36143
|
}),
|
|
36065
36144
|
"Add cell"
|
|
36066
36145
|
]
|
|
36067
|
-
}), r[48] = v, r[49] =
|
|
36068
|
-
let
|
|
36069
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
36070
|
-
let
|
|
36071
|
-
r[51] === g ?
|
|
36146
|
+
}), r[48] = v, r[49] = Z);
|
|
36147
|
+
let mW;
|
|
36148
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (mW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = mW) : mW = r[50];
|
|
36149
|
+
let hW;
|
|
36150
|
+
r[51] === g ? hW = r[52] : (hW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36072
36151
|
variant: "danger",
|
|
36073
36152
|
onSelect: g,
|
|
36074
36153
|
children: [
|
|
@@ -36077,22 +36156,22 @@ ${c}
|
|
|
36077
36156
|
}),
|
|
36078
36157
|
"Delete cell"
|
|
36079
36158
|
]
|
|
36080
|
-
}), r[51] = g, r[52] =
|
|
36081
|
-
let
|
|
36082
|
-
r[53] !==
|
|
36159
|
+
}), r[51] = g, r[52] = hW);
|
|
36160
|
+
let gW;
|
|
36161
|
+
r[53] !== Z || r[54] !== hW ? (gW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
36083
36162
|
children: [
|
|
36084
|
-
|
|
36085
|
-
|
|
36086
|
-
|
|
36163
|
+
Z,
|
|
36164
|
+
mW,
|
|
36165
|
+
hW
|
|
36087
36166
|
]
|
|
36088
|
-
}), r[53] =
|
|
36089
|
-
let
|
|
36090
|
-
return r[56] !==
|
|
36167
|
+
}), r[53] = Z, r[54] = hW, r[55] = gW) : gW = r[55];
|
|
36168
|
+
let _W;
|
|
36169
|
+
return r[56] !== pW || r[57] !== gW ? (_W = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
36091
36170
|
children: [
|
|
36092
|
-
|
|
36093
|
-
|
|
36171
|
+
pW,
|
|
36172
|
+
gW
|
|
36094
36173
|
]
|
|
36095
|
-
}), r[56] =
|
|
36174
|
+
}), r[56] = pW, r[57] = gW, r[58] = _W) : _W = r[58], _W;
|
|
36096
36175
|
}, InsertCellLine = (e) => {
|
|
36097
36176
|
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;
|
|
36098
36177
|
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);
|
|
@@ -36146,10 +36225,10 @@ ${c}
|
|
|
36146
36225
|
...B,
|
|
36147
36226
|
...h
|
|
36148
36227
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
36149
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
36150
|
-
r[25] !== l || r[26] !==
|
|
36151
|
-
let
|
|
36152
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
36228
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", fW = w && !T && "opacity-35", pW = T && "opacity-95 shadow-lg", Z;
|
|
36229
|
+
r[25] !== l || r[26] !== fW || r[27] !== pW || 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, fW, pW, l), r[25] = l, r[26] = fW, r[27] = pW, r[28] = q, r[29] = Z) : Z = r[29];
|
|
36230
|
+
let mW;
|
|
36231
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (mW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
36153
36232
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
36154
36233
|
style: {
|
|
36155
36234
|
transform: `scale(${I})`,
|
|
@@ -36162,16 +36241,17 @@ ${c}
|
|
|
36162
36241
|
}) : (0, import_jsx_runtime.jsx)(Slide, {
|
|
36163
36242
|
cellId: c.id,
|
|
36164
36243
|
status: c.status,
|
|
36165
|
-
output: c.output
|
|
36244
|
+
output: c.output,
|
|
36245
|
+
stale: outputIsStale(c, false)
|
|
36166
36246
|
})
|
|
36167
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
36168
|
-
let
|
|
36169
|
-
r[37] === z ?
|
|
36247
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = mW) : mW = r[36];
|
|
36248
|
+
let hW;
|
|
36249
|
+
r[37] === z ? hW = r[38] : (hW = z && (0, import_jsx_runtime.jsx)("div", {
|
|
36170
36250
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
36171
36251
|
"aria-hidden": true
|
|
36172
|
-
}), r[37] = z, r[38] =
|
|
36173
|
-
let
|
|
36174
|
-
r[39] !== z || r[40] !== R ? (
|
|
36252
|
+
}), r[37] = z, r[38] = hW);
|
|
36253
|
+
let gW;
|
|
36254
|
+
r[39] !== z || r[40] !== R ? (gW = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
36175
36255
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
36176
36256
|
className: "text-xs opacity-80",
|
|
36177
36257
|
children: R.description
|
|
@@ -36183,19 +36263,19 @@ ${c}
|
|
|
36183
36263
|
className: "h-3.5 w-3.5"
|
|
36184
36264
|
})
|
|
36185
36265
|
})
|
|
36186
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
36187
|
-
let
|
|
36188
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
36266
|
+
}), r[39] = z, r[40] = R, r[41] = gW) : gW = r[41];
|
|
36267
|
+
let _W;
|
|
36268
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !== mW || r[47] !== hW || r[48] !== gW ? (_W = (0, import_jsx_runtime.jsxs)("div", {
|
|
36189
36269
|
ref: f,
|
|
36190
|
-
className:
|
|
36270
|
+
className: Z,
|
|
36191
36271
|
style: W,
|
|
36192
36272
|
...d,
|
|
36193
36273
|
children: [
|
|
36194
|
-
|
|
36195
|
-
|
|
36196
|
-
|
|
36274
|
+
mW,
|
|
36275
|
+
hW,
|
|
36276
|
+
gW
|
|
36197
36277
|
]
|
|
36198
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
36278
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] = mW, r[47] = hW, r[48] = gW, r[49] = _W) : _W = r[49], _W;
|
|
36199
36279
|
}, MiniCodePreview = (e) => {
|
|
36200
36280
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
36201
36281
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -36235,7 +36315,7 @@ ${c}
|
|
|
36235
36315
|
function _temp2$2(e) {
|
|
36236
36316
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
36237
36317
|
}
|
|
36238
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36318
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-x6IwgqPf.js"));
|
|
36239
36319
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36240
36320
|
var _a3;
|
|
36241
36321
|
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), [
|
|
@@ -36613,7 +36693,7 @@ ${c}
|
|
|
36613
36693
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36614
36694
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36615
36695
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36616
|
-
let H, W, G, q,
|
|
36696
|
+
let H, W, G, q, fW, Z, mW, hW, gW, _W;
|
|
36617
36697
|
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) {
|
|
36618
36698
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36619
36699
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36659,11 +36739,11 @@ ${c}
|
|
|
36659
36739
|
})
|
|
36660
36740
|
})
|
|
36661
36741
|
]
|
|
36662
|
-
}), 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",
|
|
36663
|
-
let
|
|
36664
|
-
r[40] !== M || r[41] !==
|
|
36742
|
+
}), 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", fW = c, Z = R, mW = 0;
|
|
36743
|
+
let pW = y && "marimo-output-stale", vW2 = L ? "p-5" : "p-3";
|
|
36744
|
+
r[40] !== M || r[41] !== pW || r[42] !== vW2 ? (hW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", pW, vW2, M), r[40] = M, r[41] = pW, r[42] = vW2, r[43] = hW) : hW = r[43], r[44] === d ? gW = r[45] : (gW = d ? {
|
|
36665
36745
|
maxHeight: "none"
|
|
36666
|
-
} : void 0, r[44] = d, r[45] =
|
|
36746
|
+
} : void 0, r[44] = d, r[45] = gW), _W = e2.map((e3, r2) => {
|
|
36667
36747
|
if (e3.channel === "pdb") return null;
|
|
36668
36748
|
if (e3.channel === "stdin") {
|
|
36669
36749
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -36692,36 +36772,36 @@ ${c}
|
|
|
36692
36772
|
wrapText: l
|
|
36693
36773
|
})
|
|
36694
36774
|
}, r2);
|
|
36695
|
-
}), 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] =
|
|
36696
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
36697
|
-
let
|
|
36698
|
-
r[46] !== T || r[47] !== S ? (
|
|
36775
|
+
}), 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] = fW, r[25] = Z, r[26] = mW, r[27] = hW, r[28] = gW, r[29] = _W;
|
|
36776
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], fW = r[24], Z = r[25], mW = r[26], hW = r[27], gW = r[28], _W = r[29];
|
|
36777
|
+
let vW;
|
|
36778
|
+
r[46] !== T || r[47] !== S ? (vW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36699
36779
|
value: S,
|
|
36700
36780
|
cellId: T,
|
|
36701
36781
|
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"
|
|
36702
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
36703
|
-
let
|
|
36704
|
-
r[49] !==
|
|
36782
|
+
}), r[46] = T, r[47] = S, r[48] = vW) : vW = r[48];
|
|
36783
|
+
let yW;
|
|
36784
|
+
r[49] !== vW || r[50] !== G || r[51] !== q || r[52] !== fW || r[53] !== Z || r[54] !== mW || r[55] !== hW || r[56] !== gW || r[57] !== _W ? (yW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36705
36785
|
title: G,
|
|
36706
36786
|
"data-testid": q,
|
|
36707
|
-
ref:
|
|
36787
|
+
ref: fW,
|
|
36708
36788
|
...Z,
|
|
36709
|
-
tabIndex:
|
|
36710
|
-
className:
|
|
36711
|
-
style:
|
|
36789
|
+
tabIndex: mW,
|
|
36790
|
+
className: hW,
|
|
36791
|
+
style: gW,
|
|
36712
36792
|
children: [
|
|
36713
|
-
|
|
36714
|
-
|
|
36793
|
+
_W,
|
|
36794
|
+
vW
|
|
36715
36795
|
]
|
|
36716
|
-
}), r[49] =
|
|
36717
|
-
let
|
|
36718
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
36796
|
+
}), r[49] = vW, r[50] = G, r[51] = q, r[52] = fW, r[53] = Z, r[54] = mW, r[55] = hW, r[56] = gW, r[57] = _W, r[58] = yW) : yW = r[58];
|
|
36797
|
+
let bW;
|
|
36798
|
+
return r[59] !== H || r[60] !== W || r[61] !== yW ? (bW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36719
36799
|
className: H,
|
|
36720
36800
|
children: [
|
|
36721
36801
|
W,
|
|
36722
|
-
|
|
36802
|
+
yW
|
|
36723
36803
|
]
|
|
36724
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
36804
|
+
}), r[59] = H, r[60] = W, r[61] = yW, r[62] = bW) : bW = r[62], bW;
|
|
36725
36805
|
}, StdInput = (e) => {
|
|
36726
36806
|
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;
|
|
36727
36807
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -36811,6 +36891,23 @@ ${c}
|
|
|
36811
36891
|
function _temp4$1(e) {
|
|
36812
36892
|
return processOutput(e);
|
|
36813
36893
|
}
|
|
36894
|
+
var markdownParser = new MarkdownParser(), sqlParser = new SQLParser();
|
|
36895
|
+
function getReadonlyCodeDisplay(e) {
|
|
36896
|
+
let r = e.trim();
|
|
36897
|
+
return r ? markdownParser.isSupported(r) ? {
|
|
36898
|
+
code: markdownParser.transformIn(r).code,
|
|
36899
|
+
language: "markdown"
|
|
36900
|
+
} : sqlParser.isSupported(r) ? {
|
|
36901
|
+
code: sqlParser.transformIn(r).code,
|
|
36902
|
+
language: "sql"
|
|
36903
|
+
} : {
|
|
36904
|
+
code: e,
|
|
36905
|
+
language: "python"
|
|
36906
|
+
} : {
|
|
36907
|
+
code: e,
|
|
36908
|
+
language: "python"
|
|
36909
|
+
};
|
|
36910
|
+
}
|
|
36814
36911
|
const kernelStateAtom = atom({
|
|
36815
36912
|
isInstantiated: false,
|
|
36816
36913
|
error: null
|
|
@@ -37114,7 +37211,7 @@ ${c}
|
|
|
37114
37211
|
})
|
|
37115
37212
|
}), r[24] = y, r[25] = T), T;
|
|
37116
37213
|
}, VerticalCell = (0, import_react.memo)((e) => {
|
|
37117
|
-
let r = (0, import_compiler_runtime$3.c)(
|
|
37214
|
+
let r = (0, import_compiler_runtime$3.c)(58), { output: c, consoleOutputs: l, cellOutputArea: u, cellId: d, status: f, stopped: m, errored: h, config: g, interrupted: _, staleInputs: v, runStartTimestamp: y, code: b, showCode: S, mode: w, name: T, kiosk: E, showErrorTracebacks: O } = e, j = (0, import_react.useRef)(null), M;
|
|
37118
37215
|
r[0] !== _ || r[1] !== c || r[2] !== y || r[3] !== v || r[4] !== f ? (M = outputIsStale({
|
|
37119
37216
|
status: f,
|
|
37120
37217
|
output: c,
|
|
@@ -37148,17 +37245,20 @@ ${c}
|
|
|
37148
37245
|
let f2 = e2, p;
|
|
37149
37246
|
r[19] !== b || r[20] !== c ? (p = shouldHideCode(b, c), r[19] = b, r[20] = c, r[21] = p) : p = r[21];
|
|
37150
37247
|
let m2 = p, h2;
|
|
37151
|
-
r[22] !==
|
|
37152
|
-
let v2 =
|
|
37153
|
-
r[25] !==
|
|
37248
|
+
r[22] !== b || r[23] !== m2 ? (h2 = m2 ? null : getReadonlyCodeDisplay(b), r[22] = b, r[23] = m2, r[24] = h2) : h2 = r[24];
|
|
37249
|
+
let v2 = h2, y2;
|
|
37250
|
+
r[25] !== d || r[26] !== T ? (y2 = cellDomProps(d, T), r[25] = d, r[26] = T, r[27] = y2) : y2 = r[27];
|
|
37251
|
+
let S2 = u === "above" && f2, w2;
|
|
37252
|
+
r[28] !== g || r[29] !== v2 || r[30] !== E ? (w2 = v2 && (0, import_jsx_runtime.jsx)("div", {
|
|
37154
37253
|
className: "tray",
|
|
37155
37254
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
37156
37255
|
initiallyHideCode: g.hide_code || E,
|
|
37157
|
-
code:
|
|
37256
|
+
code: v2.code,
|
|
37257
|
+
language: v2.language
|
|
37158
37258
|
})
|
|
37159
|
-
}), r[
|
|
37160
|
-
let
|
|
37161
|
-
r[
|
|
37259
|
+
}), r[28] = g, r[29] = v2, r[30] = E, r[31] = w2) : w2 = r[31];
|
|
37260
|
+
let O2 = u === "below" && f2, M2;
|
|
37261
|
+
r[32] !== d || r[33] !== l || r[34] !== _ || r[35] !== T || r[36] !== I ? (M2 = (0, import_jsx_runtime.jsx)(ConsoleOutput, {
|
|
37162
37262
|
consoleOutputs: l,
|
|
37163
37263
|
stale: I,
|
|
37164
37264
|
interrupted: _,
|
|
@@ -37166,42 +37266,42 @@ ${c}
|
|
|
37166
37266
|
onSubmitDebugger: _temp4,
|
|
37167
37267
|
cellId: d,
|
|
37168
37268
|
debuggerActive: false
|
|
37169
|
-
}), r[
|
|
37170
|
-
let
|
|
37171
|
-
return r[
|
|
37269
|
+
}), r[32] = d, r[33] = l, r[34] = _, r[35] = T, r[36] = I, r[37] = M2) : M2 = r[37];
|
|
37270
|
+
let L2;
|
|
37271
|
+
return r[38] !== H || r[39] !== O2 || r[40] !== M2 || r[41] !== y2 || r[42] !== S2 || r[43] !== w2 ? (L2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
37172
37272
|
tabIndex: -1,
|
|
37173
37273
|
ref: j,
|
|
37174
37274
|
className: H,
|
|
37175
|
-
...
|
|
37275
|
+
...y2,
|
|
37176
37276
|
children: [
|
|
37177
|
-
v2,
|
|
37178
|
-
y2,
|
|
37179
37277
|
S2,
|
|
37180
|
-
w2
|
|
37278
|
+
w2,
|
|
37279
|
+
O2,
|
|
37280
|
+
M2
|
|
37181
37281
|
]
|
|
37182
|
-
}), r[
|
|
37282
|
+
}), r[38] = H, r[39] = O2, r[40] = M2, r[41] = y2, r[42] = S2, r[43] = w2, r[44] = L2) : L2 = r[44], L2;
|
|
37183
37283
|
}
|
|
37184
37284
|
let W = isErrorMime(c == null ? void 0 : c.mimetype), G = O && W && Array.isArray(c == null ? void 0 : c.data) && c.data.some(_temp5);
|
|
37185
37285
|
if ((h || _ || m || W) && !G) return null;
|
|
37186
37286
|
let q;
|
|
37187
|
-
r[
|
|
37188
|
-
let
|
|
37189
|
-
r[
|
|
37190
|
-
allowExpand:
|
|
37287
|
+
r[45] !== d || r[46] !== T ? (q = cellDomProps(d, T), r[45] = d, r[46] = T, r[47] = q) : q = r[47];
|
|
37288
|
+
let fW = w === "edit", pW;
|
|
37289
|
+
r[48] !== d || r[49] !== R || r[50] !== c || r[51] !== I || r[52] !== fW ? (pW = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37290
|
+
allowExpand: fW,
|
|
37191
37291
|
output: c,
|
|
37192
37292
|
className: CSSClasses.outputArea,
|
|
37193
37293
|
cellId: d,
|
|
37194
37294
|
stale: I,
|
|
37195
37295
|
loading: R
|
|
37196
|
-
}), r[
|
|
37197
|
-
let
|
|
37198
|
-
return r[
|
|
37296
|
+
}), r[48] = d, r[49] = R, r[50] = c, r[51] = I, r[52] = fW, r[53] = pW) : pW = r[53];
|
|
37297
|
+
let Z;
|
|
37298
|
+
return r[54] !== H || r[55] !== q || r[56] !== pW ? (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
37199
37299
|
tabIndex: -1,
|
|
37200
37300
|
ref: j,
|
|
37201
37301
|
className: H,
|
|
37202
37302
|
...q,
|
|
37203
|
-
children:
|
|
37204
|
-
}), r[
|
|
37303
|
+
children: pW
|
|
37304
|
+
}), r[54] = H, r[55] = q, r[56] = pW, r[57] = Z) : Z = r[57], Z;
|
|
37205
37305
|
});
|
|
37206
37306
|
VerticalCell.displayName = "VerticalCell";
|
|
37207
37307
|
const VerticalLayoutPlugin = {
|