@marimo-team/islands 0.23.14-dev3 → 0.23.14-dev31
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-0uqOIXQg.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 +1231 -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-DxTNjwZw.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 +23 -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-0uqOIXQg.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
|
-
import { l as clamp, o as arrayShallowEquals, t as Arrays } from "./arrays-sEtDRoG4.js";
|
|
51
|
+
import { c as uniqueBy, 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), pW = C({
|
|
7001
7001
|
column: 0,
|
|
7002
7002
|
row: 0
|
|
7003
|
-
}),
|
|
7004
|
-
Y(x(b, $(
|
|
7005
|
-
D(
|
|
7006
|
-
}), Y(x(ut(b,
|
|
7007
|
-
D(
|
|
7003
|
+
}), mW = U(), Z = U(), hW = C(false), gW = C(0), _W = C(true), vW = C(false), yW = C(false);
|
|
7004
|
+
Y(x(b, $(gW), P(([e2, r2]) => !!r2)), () => {
|
|
7005
|
+
D(_W, false);
|
|
7006
|
+
}), Y(x(ut(b, _W, B, z, gW, vW), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7007
|
+
D(vW, 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(_W, 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(pW, e2.gap), e2.scrollTop > 0 && (D(hW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7017
|
+
D(hW, 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(pW, (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
|
+
}))), mW), F(x(ut(V(I), l, V(pW, Or), V(B, xe), V(z, xe), V(q), V(L), V(hW), V(_W), V(gW)), 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, pW), 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 bW = C(false);
|
|
7053
|
+
F(x(h, $(bW), k(([e2, r2]) => r2 || e2 !== 0)), bW);
|
|
7054
|
+
let xW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(bW), 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())), SW = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), CW = bt(x(V(R), $(hW), 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(CW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, pW), 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 wW = 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: pW,
|
|
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: yW,
|
|
7102
|
+
initialTopMostItemIndex: gW,
|
|
7103
|
+
totalListHeight: wW,
|
|
7104
7104
|
...v,
|
|
7105
|
-
endReached:
|
|
7105
|
+
endReached: xW,
|
|
7106
7106
|
propsReady: S,
|
|
7107
|
-
rangeChanged:
|
|
7108
|
-
startReached:
|
|
7109
|
-
stateChanged:
|
|
7110
|
-
stateRestoreInProgress:
|
|
7107
|
+
rangeChanged: CW,
|
|
7108
|
+
startReached: SW,
|
|
7109
|
+
stateChanged: mW,
|
|
7110
|
+
stateRestoreInProgress: hW,
|
|
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 pW = q, mW;
|
|
7389
7389
|
if (r[13] !== G.bulkActions) {
|
|
7390
|
-
if (
|
|
7390
|
+
if (mW = G.bulkActions.map(_temp$26), mW.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], mW.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] = mW;
|
|
7397
|
+
} else mW = 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 hW = Z, gW;
|
|
7403
|
+
r[19] !== mW || r[20] !== G || r[21] !== hW || r[22] !== w || r[23] !== B || r[24] !== H ? (gW = () => {
|
|
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 && mW,
|
|
7416
|
+
hW(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 = hW(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
|
+
mW,
|
|
7442
7442
|
e2
|
|
7443
7443
|
]
|
|
7444
7444
|
});
|
|
7445
|
-
}, r[19] =
|
|
7446
|
-
let
|
|
7447
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7445
|
+
}, r[19] = mW, r[20] = G, r[21] = hW, r[22] = w, r[23] = B, r[24] = H, r[25] = gW) : gW = r[25];
|
|
7446
|
+
let _W = gW, vW;
|
|
7447
|
+
r[26] !== G.labelOf || r[27] !== I ? (vW = (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] = vW) : vW = r[28];
|
|
7459
|
+
let yW = vW, bW = e["data-testid"], xW;
|
|
7460
|
+
r[29] === G ? xW = r[30] : (xW = (e2) => G.labelOf(e2), r[29] = G, r[30] = xW);
|
|
7461
|
+
let SW = M ? yW : void 0, CW;
|
|
7462
|
+
r[31] !== b || r[32] !== R ? (CW = 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] = CW) : CW = r[33];
|
|
7465
|
+
let wW = G.searchQuery, TW = G.setSearchQuery, EW = G.open, DW = G.setOpen, OW;
|
|
7466
|
+
r[34] === z ? OW = r[35] : (OW = renderSlot(z), r[34] = z, r[35] = OW);
|
|
7467
|
+
let kW;
|
|
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] !== bW || r[44] !== xW || r[45] !== SW || r[46] !== CW || r[47] !== OW ? (kW = {
|
|
7469
7469
|
"data-slot": "select-root",
|
|
7470
|
-
"data-testid":
|
|
7471
|
-
displayValue:
|
|
7472
|
-
renderValue:
|
|
7470
|
+
"data-testid": bW,
|
|
7471
|
+
displayValue: xW,
|
|
7472
|
+
renderValue: SW,
|
|
7473
7473
|
placeholder: I,
|
|
7474
|
-
className:
|
|
7474
|
+
className: CW,
|
|
7475
7475
|
shouldFilter: false,
|
|
7476
|
-
search:
|
|
7477
|
-
onSearchChange:
|
|
7478
|
-
open:
|
|
7479
|
-
onOpenChange:
|
|
7480
|
-
emptyState:
|
|
7476
|
+
search: wW,
|
|
7477
|
+
onSearchChange: TW,
|
|
7478
|
+
open: EW,
|
|
7479
|
+
onOpenChange: DW,
|
|
7480
|
+
emptyState: OW,
|
|
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] = bW, r[44] = xW, r[45] = SW, r[46] = CW, r[47] = OW, r[48] = kW) : kW = r[48];
|
|
7484
|
+
let AW = kW, jW;
|
|
7485
|
+
return r[49] !== AW || r[50] !== pW || r[51] !== d || r[52] !== _W || r[53] !== l ? (jW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7486
|
+
...AW,
|
|
7487
7487
|
multiple: true,
|
|
7488
7488
|
value: l,
|
|
7489
|
-
onValueChange:
|
|
7490
|
-
children:
|
|
7489
|
+
onValueChange: pW,
|
|
7490
|
+
children: _W()
|
|
7491
7491
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7492
|
-
...
|
|
7492
|
+
...AW,
|
|
7493
7493
|
multiple: false,
|
|
7494
7494
|
value: l,
|
|
7495
|
-
onValueChange:
|
|
7496
|
-
children:
|
|
7497
|
-
}), r[49] =
|
|
7495
|
+
onValueChange: pW,
|
|
7496
|
+
children: _W()
|
|
7497
|
+
}), r[49] = AW, r[50] = pW, r[51] = d, r[52] = _W, r[53] = l, r[54] = jW) : jW = r[54], jW;
|
|
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)) : pW(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)) && CW(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(vW(), 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, []) : [])), pW = (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 && _W(e2);
|
|
9806
|
+
}, mW = (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) ? mW(f2, d2, c2) : pW(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) ? mW(e2, y2, m2) : pW(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
|
+
}, hW = 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 && _W(E2._f.deps), L(h2, f2, u3, G2));
|
|
9847
9865
|
}
|
|
9848
|
-
},
|
|
9866
|
+
}, gW = (e2, r2) => {
|
|
9849
9867
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
9850
|
-
},
|
|
9868
|
+
}, _W = 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, gW, e2 ? m2 : p.mount), f2;
|
|
9888
|
+
}, vW = (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
|
+
}, yW = (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
|
+
}), bW = (e2) => {
|
|
9882
9900
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
9883
9901
|
errors: e2 ? c.errors : {}
|
|
9884
9902
|
});
|
|
9885
|
-
},
|
|
9903
|
+
}, xW = (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
|
+
}, SW = (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), CW = (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
|
+
}, wW = ({ 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
|
+
}, TW = (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 ? wW({
|
|
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: hW,
|
|
9964
|
+
onBlur: hW,
|
|
9947
9965
|
ref: (m3) => {
|
|
9948
9966
|
if (m3) {
|
|
9949
|
-
|
|
9967
|
+
TW(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
|
+
}, EW = () => r.shouldFocusError && iterateFieldsByAction(l, gW, p.mount), DW = (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
|
+
}, OW = (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), EW(), setTimeout(EW);
|
|
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
|
+
}, kW = (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
|
+
}, AW = (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
|
+
}, jW = (e2, r2) => AW(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: TW,
|
|
10093
|
+
unregister: CW,
|
|
10094
|
+
getFieldState: yW,
|
|
10095
|
+
handleSubmit: OW,
|
|
10096
|
+
setError: xW,
|
|
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: wW,
|
|
10086
10104
|
_getFieldArray: q,
|
|
10087
|
-
_reset:
|
|
10105
|
+
_reset: AW,
|
|
10088
10106
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10089
|
-
|
|
10107
|
+
jW(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: DW,
|
|
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: _W,
|
|
10159
|
+
register: TW,
|
|
10160
|
+
handleSubmit: OW,
|
|
10161
|
+
watch: SW,
|
|
10162
|
+
setValue: Z,
|
|
10163
|
+
getValues: vW,
|
|
10164
|
+
reset: jW,
|
|
10165
|
+
resetField: kW,
|
|
10166
|
+
clearErrors: bW,
|
|
10167
|
+
unregister: CW,
|
|
10168
|
+
setError: xW,
|
|
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: yW
|
|
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,63 @@ ${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
|
-
|
|
12690
|
-
|
|
12691
|
-
|
|
12720
|
+
function mergeIndexFields(e, r) {
|
|
12721
|
+
let c = e ?? [];
|
|
12722
|
+
return !r || r.length === 0 ? c : uniqueBy([
|
|
12723
|
+
...c,
|
|
12724
|
+
...r
|
|
12725
|
+
], (e2) => e2[0]);
|
|
12726
|
+
}
|
|
12727
|
+
const TablePanel = ({ cellId: e, data: r, dataTable: c, totalRows: l, columns: u, getDataUrl: d, fieldTypes: f, rowHeaders: p, displayHeader: m, onCloseChartBuilder: h }) => {
|
|
12728
|
+
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);
|
|
12729
|
+
if (m && !E.current && v.length === 0 && e) {
|
|
12730
|
+
E.current = m;
|
|
12731
|
+
let r2 = getChartTabName(0, NEW_CHART_TYPE), c2 = new Map(g);
|
|
12692
12732
|
c2.set(e, [
|
|
12693
12733
|
{
|
|
12694
12734
|
tabName: r2,
|
|
12695
12735
|
chartType: NEW_CHART_TYPE,
|
|
12696
12736
|
config: getChartDefaults()
|
|
12697
12737
|
}
|
|
12698
|
-
]),
|
|
12738
|
+
]), _(c2), T(1), b(r2);
|
|
12699
12739
|
}
|
|
12700
|
-
if (
|
|
12701
|
-
let
|
|
12740
|
+
if (E.current = m, !m || v.length === 0 && !m) return c;
|
|
12741
|
+
let O = () => {
|
|
12702
12742
|
if (!e) return;
|
|
12703
|
-
let r2 = getChartTabName(
|
|
12743
|
+
let r2 = getChartTabName(S, NEW_CHART_TYPE), c2 = new Map(g);
|
|
12704
12744
|
c2.set(e, [
|
|
12705
|
-
...
|
|
12745
|
+
...v,
|
|
12706
12746
|
{
|
|
12707
12747
|
tabName: r2,
|
|
12708
12748
|
chartType: NEW_CHART_TYPE,
|
|
12709
12749
|
config: getChartDefaults()
|
|
12710
12750
|
}
|
|
12711
|
-
]),
|
|
12712
|
-
},
|
|
12751
|
+
]), _(c2), T(S + 1), b(r2);
|
|
12752
|
+
}, j = (r2) => {
|
|
12713
12753
|
if (!e) return;
|
|
12714
|
-
let c2 =
|
|
12715
|
-
u2.set(e, l2),
|
|
12716
|
-
},
|
|
12754
|
+
let c2 = v.findIndex((e2) => e2.tabName === r2), l2 = v.filter((e2) => e2.tabName !== r2), u2 = new Map(g);
|
|
12755
|
+
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));
|
|
12756
|
+
}, M = ({ tabName: r2, chartType: c2, chartConfig: l2 }) => {
|
|
12717
12757
|
if (!e) return;
|
|
12718
|
-
let u2 = new Map(
|
|
12719
|
-
u2.set(e,
|
|
12758
|
+
let u2 = new Map(g);
|
|
12759
|
+
u2.set(e, v.map((e2) => e2.tabName === r2 ? {
|
|
12720
12760
|
...e2,
|
|
12721
12761
|
chartType: c2,
|
|
12722
12762
|
config: l2
|
|
12723
|
-
} : e2)),
|
|
12724
|
-
},
|
|
12763
|
+
} : e2)), _(u2);
|
|
12764
|
+
}, I = (r2, c2) => {
|
|
12725
12765
|
if (!e) return;
|
|
12726
|
-
let l2 =
|
|
12766
|
+
let l2 = g.get(e) ?? [], u2 = l2.findIndex((e2) => e2.tabName === r2);
|
|
12727
12767
|
if (u2 === -1) return;
|
|
12728
12768
|
let d2 = l2.map((e2) => e2.tabName === r2 ? {
|
|
12729
12769
|
...e2,
|
|
12730
12770
|
chartType: c2,
|
|
12731
12771
|
tabName: getChartTabName(u2, c2)
|
|
12732
12772
|
} : e2);
|
|
12733
|
-
|
|
12734
|
-
},
|
|
12773
|
+
_(new Map(g).set(e, d2)), b(d2[u2].tabName);
|
|
12774
|
+
}, L = l === "too_many" || l > CHART_MAX_ROWS || u > CHART_MAX_COLUMNS;
|
|
12735
12775
|
return (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
12736
|
-
value:
|
|
12776
|
+
value: y,
|
|
12737
12777
|
className: "-mt-1",
|
|
12738
12778
|
children: [
|
|
12739
12779
|
(0, import_jsx_runtime.jsxs)(TabsList, {
|
|
@@ -12742,19 +12782,19 @@ ${c}
|
|
|
12742
12782
|
(0, import_jsx_runtime.jsx)(TabsTrigger, {
|
|
12743
12783
|
className: "text-xs",
|
|
12744
12784
|
value: DEFAULT_TAB_NAME,
|
|
12745
|
-
onClick: () =>
|
|
12785
|
+
onClick: () => b(DEFAULT_TAB_NAME),
|
|
12746
12786
|
children: "Table"
|
|
12747
12787
|
}),
|
|
12748
|
-
|
|
12788
|
+
v.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
12749
12789
|
className: "text-xs",
|
|
12750
12790
|
value: e2.tabName,
|
|
12751
|
-
onClick: () =>
|
|
12791
|
+
onClick: () => b(e2.tabName),
|
|
12752
12792
|
children: [
|
|
12753
12793
|
e2.tabName,
|
|
12754
12794
|
(0, import_jsx_runtime.jsx)(X, {
|
|
12755
12795
|
className: "w-3 h-3 ml-1 mt-[0.5px] hover:text-red-500 hover:font-semibold",
|
|
12756
12796
|
onClick: (r3) => {
|
|
12757
|
-
r3.stopPropagation(),
|
|
12797
|
+
r3.stopPropagation(), j(e2.tabName);
|
|
12758
12798
|
}
|
|
12759
12799
|
})
|
|
12760
12800
|
]
|
|
@@ -12762,7 +12802,7 @@ ${c}
|
|
|
12762
12802
|
(0, import_jsx_runtime.jsx)(Button, {
|
|
12763
12803
|
variant: "text",
|
|
12764
12804
|
size: "icon",
|
|
12765
|
-
onClick:
|
|
12805
|
+
onClick: O,
|
|
12766
12806
|
title: "Add chart",
|
|
12767
12807
|
children: "+"
|
|
12768
12808
|
})
|
|
@@ -12773,7 +12813,7 @@ ${c}
|
|
|
12773
12813
|
value: DEFAULT_TAB_NAME,
|
|
12774
12814
|
children: c
|
|
12775
12815
|
}),
|
|
12776
|
-
|
|
12816
|
+
v.map((e2, l2) => (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
12777
12817
|
value: e2.tabName,
|
|
12778
12818
|
className: "h-[400px] mt-0",
|
|
12779
12819
|
children: (0, import_jsx_runtime.jsx)(ChartPanel, {
|
|
@@ -12781,18 +12821,18 @@ ${c}
|
|
|
12781
12821
|
chartConfig: e2.config,
|
|
12782
12822
|
chartType: e2.chartType,
|
|
12783
12823
|
saveChart: (r2) => {
|
|
12784
|
-
|
|
12824
|
+
M({
|
|
12785
12825
|
tabName: e2.tabName,
|
|
12786
12826
|
chartType: e2.chartType,
|
|
12787
12827
|
chartConfig: r2
|
|
12788
12828
|
});
|
|
12789
12829
|
},
|
|
12790
12830
|
saveChartType: (r2) => {
|
|
12791
|
-
|
|
12831
|
+
I(e2.tabName, r2);
|
|
12792
12832
|
},
|
|
12793
12833
|
getDataUrl: d,
|
|
12794
|
-
fieldTypes: f ?? inferFieldTypes(c.props.data),
|
|
12795
|
-
isLargeDataset:
|
|
12834
|
+
fieldTypes: mergeIndexFields(f ?? inferFieldTypes(c.props.data), p),
|
|
12835
|
+
isLargeDataset: L
|
|
12796
12836
|
})
|
|
12797
12837
|
}, l2))
|
|
12798
12838
|
]
|
|
@@ -13201,7 +13241,7 @@ ${c}
|
|
|
13201
13241
|
}), r[8] = h, r[9] = _), _;
|
|
13202
13242
|
};
|
|
13203
13243
|
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), {
|
|
13244
|
+
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
13245
|
numRows: c,
|
|
13206
13246
|
totalColumns: _,
|
|
13207
13247
|
locale: m,
|
|
@@ -13213,22 +13253,55 @@ ${c}
|
|
|
13213
13253
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
13214
13254
|
className: "text-xs font-semibold ml-2 flex items-center gap-1",
|
|
13215
13255
|
children: [
|
|
13216
|
-
|
|
13256
|
+
b,
|
|
13217
13257
|
v > 0 && (0, import_jsx_runtime.jsx)("span", {
|
|
13218
|
-
children:
|
|
13258
|
+
children: S
|
|
13219
13259
|
}),
|
|
13220
13260
|
(0, import_jsx_runtime.jsx)(CopyClipboardIcon, {
|
|
13221
13261
|
tooltip: "Copy column names",
|
|
13222
13262
|
value: (h == null ? void 0 : h.map(([e2]) => e2).join(",\n")) || "",
|
|
13223
13263
|
className: "h-3 w-3"
|
|
13224
13264
|
}),
|
|
13225
|
-
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
|
|
13229
|
-
|
|
13230
|
-
|
|
13231
|
-
|
|
13265
|
+
(0, import_jsx_runtime.jsxs)("div", {
|
|
13266
|
+
className: "ml-auto flex items-center gap-1",
|
|
13267
|
+
children: [
|
|
13268
|
+
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
13269
|
+
content: "Show all columns",
|
|
13270
|
+
delayDuration: 400,
|
|
13271
|
+
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
13272
|
+
type: "button",
|
|
13273
|
+
variant: "ghost",
|
|
13274
|
+
size: "xs",
|
|
13275
|
+
className: "gap-1",
|
|
13276
|
+
disabled: v === 0,
|
|
13277
|
+
onClick: () => d.toggleAllColumnsVisible(true),
|
|
13278
|
+
children: [
|
|
13279
|
+
(0, import_jsx_runtime.jsx)(Eye, {
|
|
13280
|
+
className: "w-3 h-3"
|
|
13281
|
+
}),
|
|
13282
|
+
"Show all"
|
|
13283
|
+
]
|
|
13284
|
+
})
|
|
13285
|
+
}),
|
|
13286
|
+
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
13287
|
+
content: "Hide all columns",
|
|
13288
|
+
delayDuration: 400,
|
|
13289
|
+
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
13290
|
+
type: "button",
|
|
13291
|
+
variant: "ghost",
|
|
13292
|
+
size: "xs",
|
|
13293
|
+
className: "gap-1",
|
|
13294
|
+
disabled: y === 0,
|
|
13295
|
+
onClick: () => d.toggleAllColumnsVisible(false),
|
|
13296
|
+
children: [
|
|
13297
|
+
(0, import_jsx_runtime.jsx)(EyeOff, {
|
|
13298
|
+
className: "w-3 h-3"
|
|
13299
|
+
}),
|
|
13300
|
+
"Hide all"
|
|
13301
|
+
]
|
|
13302
|
+
})
|
|
13303
|
+
})
|
|
13304
|
+
]
|
|
13232
13305
|
})
|
|
13233
13306
|
]
|
|
13234
13307
|
}),
|
|
@@ -14329,7 +14402,7 @@ ${c}
|
|
|
14329
14402
|
return l;
|
|
14330
14403
|
};
|
|
14331
14404
|
const LoadingDataTableComponent = (0, import_react.memo)((e) => {
|
|
14332
|
-
let r = (0, import_compiler_runtime$57.c)(
|
|
14405
|
+
let r = (0, import_compiler_runtime$57.c)(119), c;
|
|
14333
14406
|
r[0] === e.host ? c = r[1] : (c = findCellId(e.host), r[0] = e.host, r[1] = c);
|
|
14334
14407
|
let l = c, u = e.search, f = e.setValue, p;
|
|
14335
14408
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = [], r[2] = p) : p = r[2];
|
|
@@ -14406,21 +14479,21 @@ ${c}
|
|
|
14406
14479
|
_.pageSize,
|
|
14407
14480
|
_.pageIndex
|
|
14408
14481
|
], 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
|
-
|
|
14482
|
+
let { data: W, error: G, isPending: q, isFetching: pW } = useAsyncData(z, H), mW = useAtomValue(downloadSizeLimitAtom), Z;
|
|
14483
|
+
r[48] !== mW || r[49] !== e ? (Z = async () => !mW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = mW, r[49] = e, r[50] = Z) : Z = r[50];
|
|
14484
|
+
let hW = e.showDownload, gW = e.get_size_bytes, _W = e.lazy, vW = e.totalRows, yW = useDeepCompareMemoize(w), bW = useDeepCompareMemoize(m), xW;
|
|
14485
|
+
r[51] !== mW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== yW || r[58] !== bW ? (xW = [
|
|
14486
|
+
mW,
|
|
14487
|
+
hW,
|
|
14488
|
+
gW,
|
|
14489
|
+
_W,
|
|
14490
|
+
vW,
|
|
14418
14491
|
y,
|
|
14419
|
-
|
|
14420
|
-
|
|
14421
|
-
], r[51] =
|
|
14422
|
-
let { data:
|
|
14423
|
-
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (
|
|
14492
|
+
yW,
|
|
14493
|
+
bW
|
|
14494
|
+
], r[51] = mW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = yW, r[58] = bW, r[59] = xW) : xW = r[59];
|
|
14495
|
+
let { data: SW, isPending: CW } = useAsyncData(Z, xW), wW = SW ?? null, TW = !!mW && e.showDownload && CW, EW;
|
|
14496
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (EW = async (e2) => ({
|
|
14424
14497
|
rows: await loadTableData((await u({
|
|
14425
14498
|
page_number: e2,
|
|
14426
14499
|
page_size: 1,
|
|
@@ -14429,17 +14502,17 @@ ${c}
|
|
|
14429
14502
|
filters: filtersToFilterGroup(w),
|
|
14430
14503
|
max_columns: null
|
|
14431
14504
|
})).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") ? (
|
|
14505
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = EW) : EW = r[64];
|
|
14506
|
+
let DW = EW, OW;
|
|
14507
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (OW = () => {
|
|
14435
14508
|
v(_temp4$4);
|
|
14436
|
-
}, r[65] =
|
|
14437
|
-
let
|
|
14438
|
-
r[66] ===
|
|
14439
|
-
|
|
14440
|
-
], r[66] =
|
|
14441
|
-
let
|
|
14442
|
-
r[68] === e ?
|
|
14509
|
+
}, r[65] = OW) : OW = r[65];
|
|
14510
|
+
let kW = W == null ? void 0 : W.totalRows, AW;
|
|
14511
|
+
r[66] === kW ? AW = r[67] : (AW = [
|
|
14512
|
+
kW
|
|
14513
|
+
], r[66] = kW, r[67] = AW), (0, import_react.useEffect)(OW, AW);
|
|
14514
|
+
let jW;
|
|
14515
|
+
r[68] === e ? jW = r[69] : (jW = async () => {
|
|
14443
14516
|
let r2 = isStaticNotebook();
|
|
14444
14517
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
14445
14518
|
data: null,
|
|
@@ -14448,22 +14521,22 @@ ${c}
|
|
|
14448
14521
|
value_counts: {},
|
|
14449
14522
|
show_charts: false
|
|
14450
14523
|
} : 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 ? (
|
|
14524
|
+
}, r[68] = e, r[69] = jW);
|
|
14525
|
+
let MW;
|
|
14526
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (MW = [
|
|
14454
14527
|
e.get_column_summaries,
|
|
14455
14528
|
e.showColumnSummaries,
|
|
14456
14529
|
w,
|
|
14457
14530
|
y,
|
|
14458
14531
|
e.totalRows,
|
|
14459
14532
|
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] =
|
|
14533
|
+
], 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] = MW) : MW = r[76];
|
|
14534
|
+
let { data: NW, error: PW } = useAsyncData(jW, MW), FW, IW;
|
|
14535
|
+
if (r[77] === PW ? (FW = r[78], IW = r[79]) : (FW = () => {
|
|
14536
|
+
PW && Logger.error(PW);
|
|
14537
|
+
}, IW = [
|
|
14538
|
+
PW
|
|
14539
|
+
], r[77] = PW, r[78] = FW, r[79] = IW), (0, import_react.useEffect)(FW, IW), q) {
|
|
14467
14540
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14468
14541
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14469
14542
|
milliseconds: 200,
|
|
@@ -14472,7 +14545,7 @@ ${c}
|
|
|
14472
14545
|
})
|
|
14473
14546
|
}), r[80] = c2, r[81] = l2), l2;
|
|
14474
14547
|
}
|
|
14475
|
-
let
|
|
14548
|
+
let LW = null;
|
|
14476
14549
|
if (G) {
|
|
14477
14550
|
Logger.error(G);
|
|
14478
14551
|
let e2;
|
|
@@ -14488,61 +14561,62 @@ ${c}
|
|
|
14488
14561
|
children: G.message || "An unknown error occurred"
|
|
14489
14562
|
})
|
|
14490
14563
|
]
|
|
14491
|
-
}), r[82] = G, r[83] = e2),
|
|
14564
|
+
}), r[82] = G, r[83] = e2), LW = e2;
|
|
14492
14565
|
}
|
|
14493
|
-
let
|
|
14494
|
-
r[84] === O ?
|
|
14566
|
+
let RW;
|
|
14567
|
+
r[84] === O ? RW = r[85] : (RW = () => {
|
|
14495
14568
|
j(!O);
|
|
14496
|
-
}, r[84] = O, r[85] =
|
|
14497
|
-
let
|
|
14498
|
-
r[86] !== l || r[87] !==
|
|
14569
|
+
}, r[84] = O, r[85] = RW);
|
|
14570
|
+
let zW = RW, BW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, VW = W == null ? void 0 : W.rawRows, HW = pW && !q, UW = (W == null ? void 0 : W.totalRows) ?? e.totalRows, WW = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, GW = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, KW;
|
|
14571
|
+
r[86] !== l || r[87] !== NW || r[88] !== O || r[89] !== w || r[90] !== DW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== wW || r[95] !== TW || r[96] !== m || r[97] !== BW || r[98] !== VW || r[99] !== HW || r[100] !== UW || r[101] !== WW || r[102] !== GW || r[103] !== zW ? (KW = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
14499
14572
|
...e,
|
|
14500
|
-
data:
|
|
14501
|
-
rawData:
|
|
14502
|
-
columnSummaries:
|
|
14573
|
+
data: BW,
|
|
14574
|
+
rawData: VW,
|
|
14575
|
+
columnSummaries: NW,
|
|
14503
14576
|
sorting: m,
|
|
14504
14577
|
setSorting: h,
|
|
14505
14578
|
searchQuery: y,
|
|
14506
14579
|
setSearchQuery: b,
|
|
14507
14580
|
filters: w,
|
|
14508
14581
|
setFilters: T,
|
|
14509
|
-
reloading:
|
|
14510
|
-
totalRows:
|
|
14511
|
-
sizeBytes:
|
|
14512
|
-
sizeBytesIsLoading:
|
|
14582
|
+
reloading: HW,
|
|
14583
|
+
totalRows: UW,
|
|
14584
|
+
sizeBytes: wW,
|
|
14585
|
+
sizeBytesIsLoading: TW,
|
|
14513
14586
|
paginationState: _,
|
|
14514
14587
|
setPaginationState: v,
|
|
14515
|
-
cellStyles:
|
|
14516
|
-
cellHoverTexts:
|
|
14517
|
-
toggleDisplayHeader:
|
|
14588
|
+
cellStyles: WW,
|
|
14589
|
+
cellHoverTexts: GW,
|
|
14590
|
+
toggleDisplayHeader: zW,
|
|
14518
14591
|
isChartBuilderOpen: O,
|
|
14519
|
-
getRow:
|
|
14592
|
+
getRow: DW,
|
|
14520
14593
|
cellId: l,
|
|
14521
14594
|
maxHeight: e.maxHeight
|
|
14522
|
-
}), r[86] = l, r[87] =
|
|
14523
|
-
let
|
|
14524
|
-
r[105] !== l || r[106] !==
|
|
14595
|
+
}), r[86] = l, r[87] = NW, r[88] = O, r[89] = w, r[90] = DW, r[91] = _, r[92] = e, r[93] = y, r[94] = wW, r[95] = TW, r[96] = m, r[97] = BW, r[98] = VW, r[99] = HW, r[100] = UW, r[101] = WW, r[102] = GW, r[103] = zW, r[104] = KW) : KW = r[104];
|
|
14596
|
+
let qW = KW, JW;
|
|
14597
|
+
r[105] !== l || r[106] !== qW || 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 ? (JW = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
14525
14598
|
displayHeader: O,
|
|
14526
14599
|
onCloseChartBuilder: () => j(false),
|
|
14527
14600
|
data: (W == null ? void 0 : W.rows) || [],
|
|
14528
14601
|
columns: e.totalColumns,
|
|
14529
14602
|
totalRows: e.totalRows,
|
|
14530
|
-
dataTable:
|
|
14603
|
+
dataTable: qW,
|
|
14531
14604
|
getDataUrl: e.get_data_url,
|
|
14532
14605
|
fieldTypes: e.fieldTypes,
|
|
14606
|
+
rowHeaders: e.rowHeaders,
|
|
14533
14607
|
cellId: l
|
|
14534
|
-
}) :
|
|
14535
|
-
let
|
|
14536
|
-
return r[
|
|
14608
|
+
}) : qW, r[105] = l, r[106] = qW, 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] = JW) : JW = r[115];
|
|
14609
|
+
let YW;
|
|
14610
|
+
return r[116] !== LW || r[117] !== JW ? (YW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14537
14611
|
children: [
|
|
14538
|
-
|
|
14539
|
-
|
|
14612
|
+
LW,
|
|
14613
|
+
JW
|
|
14540
14614
|
]
|
|
14541
|
-
}), r[
|
|
14615
|
+
}), r[116] = LW, r[117] = JW, r[118] = YW) : YW = r[118], YW;
|
|
14542
14616
|
});
|
|
14543
14617
|
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
|
|
14618
|
+
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: pW, setFilters: mW, reloading: Z, freezeColumnsLeft: hW, freezeColumnsRight: gW, hiddenColumns: _W, textJustifyColumns: vW, wrappedColumns: yW, columnWidths: bW, headerTooltip: xW, totalColumns: SW, get_row_ids: CW, cellStyles: wW, hoverTemplate: TW, cellHoverTexts: EW, toggleDisplayHeader: DW, isChartBuilderOpen: OW, calculate_top_k_rows: kW, preview_column: AW, getRow: jW, cellId: MW, maxHeight: NW }) => {
|
|
14619
|
+
let PW = (0, import_react.useId)(), { locale: FW } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [IW, LW] = (0, import_react.useState)(0), { isPanelOpen: RW, isAnyPanelOpen: zW, togglePanel: BW, panelType: VW, setPanelType: HW } = usePanelOwnership(PW, MW), UW = isStaticNotebook(), WW = (0, import_react.useMemo)(() => {
|
|
14546
14620
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
14547
14621
|
let e2 = toFieldTypes(O);
|
|
14548
14622
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -14551,13 +14625,13 @@ ${c}
|
|
|
14551
14625
|
}, [
|
|
14552
14626
|
O,
|
|
14553
14627
|
L
|
|
14554
|
-
]),
|
|
14628
|
+
]), GW = useDeepCompareMemoize(O ?? inferFieldTypes(r)), KW = (0, import_react.useMemo)(() => f === "all" ? GW : GW.slice(0, f), [
|
|
14555
14629
|
f,
|
|
14556
|
-
|
|
14557
|
-
]),
|
|
14630
|
+
GW
|
|
14631
|
+
]), qW = (0, import_react.useMemo)(() => {
|
|
14558
14632
|
let e2 = {};
|
|
14559
14633
|
if (r && r.length > 0) {
|
|
14560
|
-
for (let [c2, l2] of
|
|
14634
|
+
for (let [c2, l2] of KW) if (l2[0] === "number") {
|
|
14561
14635
|
let l3 = 0;
|
|
14562
14636
|
for (let e3 of r) {
|
|
14563
14637
|
let r2 = e3[c2];
|
|
@@ -14572,95 +14646,95 @@ ${c}
|
|
|
14572
14646
|
return e2;
|
|
14573
14647
|
}, [
|
|
14574
14648
|
r,
|
|
14575
|
-
|
|
14576
|
-
]),
|
|
14577
|
-
O || (w = false),
|
|
14578
|
-
let
|
|
14579
|
-
rowHeaders:
|
|
14649
|
+
KW
|
|
14650
|
+
]), JW = useDeepCompareMemoize(T), YW = useDeepCompareMemoize(vW), XW = useDeepCompareMemoize(yW), ZW = useDeepCompareMemoize(bW), QW = useDeepCompareMemoize(WW), $W = useDeepCompareMemoize(qW), eG = KW.length;
|
|
14651
|
+
O || (w = false), UW && (m = null);
|
|
14652
|
+
let tG = (0, import_react.useMemo)(() => generateColumns({
|
|
14653
|
+
rowHeaders: JW,
|
|
14580
14654
|
selection: m,
|
|
14581
|
-
chartSpecModel:
|
|
14582
|
-
fieldTypes:
|
|
14583
|
-
textJustifyColumns:
|
|
14584
|
-
wrappedColumns:
|
|
14585
|
-
columnWidths:
|
|
14586
|
-
headerTooltip:
|
|
14655
|
+
chartSpecModel: QW,
|
|
14656
|
+
fieldTypes: KW,
|
|
14657
|
+
textJustifyColumns: YW,
|
|
14658
|
+
wrappedColumns: XW,
|
|
14659
|
+
columnWidths: ZW,
|
|
14660
|
+
headerTooltip: xW,
|
|
14587
14661
|
showDataTypes: w,
|
|
14588
|
-
calculateTopKRows:
|
|
14589
|
-
fractionDigitsByColumn:
|
|
14662
|
+
calculateTopKRows: kW,
|
|
14663
|
+
fractionDigitsByColumn: $W
|
|
14590
14664
|
}), [
|
|
14591
14665
|
m,
|
|
14592
14666
|
w,
|
|
14593
|
-
|
|
14594
|
-
|
|
14595
|
-
|
|
14596
|
-
|
|
14597
|
-
|
|
14598
|
-
|
|
14599
|
-
|
|
14600
|
-
|
|
14601
|
-
|
|
14602
|
-
]),
|
|
14667
|
+
QW,
|
|
14668
|
+
JW,
|
|
14669
|
+
KW,
|
|
14670
|
+
YW,
|
|
14671
|
+
XW,
|
|
14672
|
+
ZW,
|
|
14673
|
+
xW,
|
|
14674
|
+
kW,
|
|
14675
|
+
$W
|
|
14676
|
+
]), nG = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
14603
14677
|
e2,
|
|
14604
14678
|
true
|
|
14605
14679
|
])), [
|
|
14606
14680
|
h
|
|
14607
|
-
]),
|
|
14681
|
+
]), rG = useEvent_default((e2) => {
|
|
14608
14682
|
if (m === "single") {
|
|
14609
14683
|
let r2 = Functions.asUpdater(e2)({});
|
|
14610
14684
|
z(Object.keys(r2).slice(0, 1));
|
|
14611
14685
|
}
|
|
14612
14686
|
if (m === "multi") {
|
|
14613
|
-
let r2 = Functions.asUpdater(e2)(
|
|
14687
|
+
let r2 = Functions.asUpdater(e2)(nG);
|
|
14614
14688
|
z(Object.keys(r2));
|
|
14615
14689
|
}
|
|
14616
|
-
}),
|
|
14617
|
-
if (
|
|
14690
|
+
}), iG = useEvent_default((e2) => {
|
|
14691
|
+
if (LW(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
14618
14692
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
14619
14693
|
r2 !== null && M((e3) => ({
|
|
14620
14694
|
...e3,
|
|
14621
14695
|
pageIndex: r2
|
|
14622
14696
|
}));
|
|
14623
|
-
}),
|
|
14624
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
14625
|
-
}),
|
|
14626
|
-
if (!(!
|
|
14697
|
+
}), aG = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), oG = useEvent_default((e2) => {
|
|
14698
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(aG).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(aG));
|
|
14699
|
+
}), sG = m === "multi" || m === "single", cG = y && !!AW, lG = isInVscodeExtension(), uG = isIslands(), dG = (0, import_react.useMemo)(() => {
|
|
14700
|
+
if (!(!zW || !(b || cG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
14627
14701
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
14628
|
-
rowIdx:
|
|
14629
|
-
setRowIdx:
|
|
14702
|
+
rowIdx: IW,
|
|
14703
|
+
setRowIdx: iG,
|
|
14630
14704
|
totalRows: l,
|
|
14631
|
-
fieldTypes:
|
|
14632
|
-
getRow:
|
|
14633
|
-
isSelectable:
|
|
14634
|
-
isRowSelected: !!
|
|
14635
|
-
handleRowSelectionChange:
|
|
14636
|
-
previewColumn:
|
|
14637
|
-
totalColumns:
|
|
14638
|
-
tableId:
|
|
14705
|
+
fieldTypes: GW,
|
|
14706
|
+
getRow: jW,
|
|
14707
|
+
isSelectable: sG,
|
|
14708
|
+
isRowSelected: !!nG[IW],
|
|
14709
|
+
handleRowSelectionChange: rG,
|
|
14710
|
+
previewColumn: AW,
|
|
14711
|
+
totalColumns: SW,
|
|
14712
|
+
tableId: PW,
|
|
14639
14713
|
table: e2,
|
|
14640
|
-
showRowExplorer: b && !
|
|
14641
|
-
showColumnExplorer:
|
|
14642
|
-
activeTab:
|
|
14643
|
-
onTabChange:
|
|
14714
|
+
showRowExplorer: b && !lG,
|
|
14715
|
+
showColumnExplorer: cG && !lG,
|
|
14716
|
+
activeTab: VW,
|
|
14717
|
+
onTabChange: HW
|
|
14644
14718
|
})
|
|
14645
14719
|
});
|
|
14646
14720
|
}, [
|
|
14647
|
-
|
|
14721
|
+
zW,
|
|
14648
14722
|
b,
|
|
14649
|
-
|
|
14650
|
-
|
|
14651
|
-
|
|
14723
|
+
cG,
|
|
14724
|
+
IW,
|
|
14725
|
+
iG,
|
|
14652
14726
|
l,
|
|
14727
|
+
GW,
|
|
14653
14728
|
jW,
|
|
14654
|
-
|
|
14655
|
-
|
|
14656
|
-
|
|
14657
|
-
|
|
14658
|
-
|
|
14659
|
-
|
|
14660
|
-
|
|
14661
|
-
|
|
14662
|
-
|
|
14663
|
-
OW
|
|
14729
|
+
sG,
|
|
14730
|
+
nG,
|
|
14731
|
+
rG,
|
|
14732
|
+
AW,
|
|
14733
|
+
SW,
|
|
14734
|
+
PW,
|
|
14735
|
+
lG,
|
|
14736
|
+
VW,
|
|
14737
|
+
HW
|
|
14664
14738
|
]);
|
|
14665
14739
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14666
14740
|
children: [
|
|
@@ -14672,27 +14746,27 @@ ${c}
|
|
|
14672
14746
|
" rows."
|
|
14673
14747
|
]
|
|
14674
14748
|
}),
|
|
14675
|
-
|
|
14749
|
+
eG < SW && eG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14676
14750
|
className: "mb-1 rounded",
|
|
14677
14751
|
children: [
|
|
14678
14752
|
"Result clipped. Showing ",
|
|
14679
|
-
|
|
14753
|
+
eG,
|
|
14680
14754
|
" of ",
|
|
14681
|
-
|
|
14755
|
+
SW,
|
|
14682
14756
|
" columns."
|
|
14683
14757
|
]
|
|
14684
14758
|
}),
|
|
14685
|
-
|
|
14759
|
+
UW && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14686
14760
|
className: "mb-1 rounded",
|
|
14687
14761
|
children: [
|
|
14688
14762
|
"Showing the first ",
|
|
14689
14763
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14690
|
-
children: prettyNumber(r.length,
|
|
14764
|
+
children: prettyNumber(r.length, FW)
|
|
14691
14765
|
}),
|
|
14692
14766
|
" ",
|
|
14693
14767
|
"of ",
|
|
14694
14768
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14695
|
-
children: prettyNumber(l,
|
|
14769
|
+
children: prettyNumber(l, FW)
|
|
14696
14770
|
}),
|
|
14697
14771
|
" rows. Increase the table's ",
|
|
14698
14772
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -14706,7 +14780,7 @@ ${c}
|
|
|
14706
14780
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
14707
14781
|
}),
|
|
14708
14782
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
14709
|
-
value:
|
|
14783
|
+
value: WW,
|
|
14710
14784
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
14711
14785
|
label: e,
|
|
14712
14786
|
align: "top",
|
|
@@ -14714,14 +14788,14 @@ ${c}
|
|
|
14714
14788
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
14715
14789
|
data: r,
|
|
14716
14790
|
rawData: c,
|
|
14717
|
-
columns:
|
|
14791
|
+
columns: tG,
|
|
14718
14792
|
className: R,
|
|
14719
|
-
maxHeight:
|
|
14793
|
+
maxHeight: NW,
|
|
14720
14794
|
sorting: B,
|
|
14721
14795
|
totalRows: l,
|
|
14722
14796
|
sizeBytes: u,
|
|
14723
14797
|
sizeBytesIsLoading: d,
|
|
14724
|
-
totalColumns:
|
|
14798
|
+
totalColumns: SW,
|
|
14725
14799
|
manualSorting: true,
|
|
14726
14800
|
setSorting: H,
|
|
14727
14801
|
pagination: p,
|
|
@@ -14729,37 +14803,37 @@ ${c}
|
|
|
14729
14803
|
selection: m,
|
|
14730
14804
|
paginationState: j,
|
|
14731
14805
|
setPaginationState: M,
|
|
14732
|
-
rowSelection:
|
|
14733
|
-
cellSelection:
|
|
14734
|
-
cellStyling:
|
|
14735
|
-
hoverTemplate:
|
|
14736
|
-
cellHoverTexts:
|
|
14806
|
+
rowSelection: nG,
|
|
14807
|
+
cellSelection: aG,
|
|
14808
|
+
cellStyling: wW,
|
|
14809
|
+
hoverTemplate: TW,
|
|
14810
|
+
cellHoverTexts: EW,
|
|
14737
14811
|
downloadAs: _ ? I : void 0,
|
|
14738
14812
|
showSearch: W,
|
|
14739
14813
|
searchQuery: G,
|
|
14740
14814
|
onSearchQueryChange: q,
|
|
14741
14815
|
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:
|
|
14816
|
+
filters: pW,
|
|
14817
|
+
onFiltersChange: mW,
|
|
14818
|
+
calculateTopKRows: kW,
|
|
14819
|
+
reloading: Z,
|
|
14820
|
+
onRowSelectionChange: rG,
|
|
14821
|
+
freezeColumnsLeft: hW,
|
|
14822
|
+
freezeColumnsRight: gW,
|
|
14823
|
+
hiddenColumns: _W,
|
|
14824
|
+
onCellSelectionChange: oG,
|
|
14825
|
+
getRowIds: CW,
|
|
14826
|
+
toggleDisplayHeader: DW,
|
|
14827
|
+
showChartBuilder: S && !uG,
|
|
14828
|
+
isChartBuilderOpen: OW,
|
|
14755
14829
|
showPageSizeSelector: v,
|
|
14756
|
-
showTableExplorer: (b ||
|
|
14757
|
-
togglePanel:
|
|
14758
|
-
isPanelOpen:
|
|
14759
|
-
isAnyPanelOpen:
|
|
14760
|
-
viewedRowIdx:
|
|
14761
|
-
onViewedRowChange: (e2) =>
|
|
14762
|
-
renderTableExplorerPanel:
|
|
14830
|
+
showTableExplorer: (b || cG) && !lG && !uG,
|
|
14831
|
+
togglePanel: BW,
|
|
14832
|
+
isPanelOpen: RW,
|
|
14833
|
+
isAnyPanelOpen: zW,
|
|
14834
|
+
viewedRowIdx: IW,
|
|
14835
|
+
onViewedRowChange: (e2) => LW(e2),
|
|
14836
|
+
renderTableExplorerPanel: dG
|
|
14763
14837
|
})
|
|
14764
14838
|
})
|
|
14765
14839
|
})
|
|
@@ -15118,7 +15192,7 @@ ${c}
|
|
|
15118
15192
|
fullWidth: m,
|
|
15119
15193
|
children: T
|
|
15120
15194
|
}), 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-
|
|
15195
|
+
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-DXBx_nQg.js"));
|
|
15122
15196
|
const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object({
|
|
15123
15197
|
label: string().nullish(),
|
|
15124
15198
|
data: string()
|
|
@@ -16811,29 +16885,29 @@ ${c}
|
|
|
16811
16885
|
], r[2] = S, r[3] = w);
|
|
16812
16886
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
16813
16887
|
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 ?
|
|
16888
|
+
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, pW] = (0, import_react.useState)(f || EMPTY), mW = (0, import_react.useRef)(null), Z;
|
|
16889
|
+
r[6] === d ? Z = r[7] : (Z = (e2) => {
|
|
16816
16890
|
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 =
|
|
16891
|
+
d && e2 !== "transform" && ((_a3 = mW.current) == null ? void 0 : _a3.submit());
|
|
16892
|
+
}, r[6] = d, r[7] = Z);
|
|
16893
|
+
let hW = Z, gW = (0, import_react.useRef)(q), _W;
|
|
16894
|
+
r[8] === q ? _W = r[9] : (_W = () => {
|
|
16895
|
+
gW.current = q;
|
|
16896
|
+
}, r[8] = q, r[9] = _W), (0, import_react.useEffect)(_W);
|
|
16897
|
+
let vW;
|
|
16898
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (vW = () => {
|
|
16899
|
+
let e2 = gW.current;
|
|
16826
16900
|
(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] !==
|
|
16901
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = vW) : vW = r[12];
|
|
16902
|
+
let yW = f == null ? void 0 : f.transforms.length, bW;
|
|
16903
|
+
r[13] !== T || r[14] !== p || r[15] !== yW ? (bW = [
|
|
16830
16904
|
T,
|
|
16831
|
-
|
|
16832
|
-
|
|
16905
|
+
yW,
|
|
16906
|
+
gW,
|
|
16833
16907
|
p
|
|
16834
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
16835
|
-
let
|
|
16836
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16908
|
+
], r[13] = T, r[14] = p, r[15] = yW, r[16] = bW) : bW = r[16], (0, import_react.useEffect)(vW, bW);
|
|
16909
|
+
let xW;
|
|
16910
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16837
16911
|
value: "transform",
|
|
16838
16912
|
className: "text-xs py-1",
|
|
16839
16913
|
children: [
|
|
@@ -16842,9 +16916,9 @@ ${c}
|
|
|
16842
16916
|
}),
|
|
16843
16917
|
"Transform"
|
|
16844
16918
|
]
|
|
16845
|
-
}), r[17] =
|
|
16846
|
-
let
|
|
16847
|
-
r[18] === H ?
|
|
16919
|
+
}), r[17] = xW) : xW = r[17];
|
|
16920
|
+
let SW;
|
|
16921
|
+
r[18] === H ? SW = r[19] : (SW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16848
16922
|
value: "python-code",
|
|
16849
16923
|
className: "text-xs py-1",
|
|
16850
16924
|
children: [
|
|
@@ -16853,9 +16927,9 @@ ${c}
|
|
|
16853
16927
|
}),
|
|
16854
16928
|
"Python Code"
|
|
16855
16929
|
]
|
|
16856
|
-
}), r[18] = H, r[19] =
|
|
16857
|
-
let
|
|
16858
|
-
r[20] === W ?
|
|
16930
|
+
}), r[18] = H, r[19] = SW);
|
|
16931
|
+
let CW;
|
|
16932
|
+
r[20] === W ? CW = r[21] : (CW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16859
16933
|
value: "sql-code",
|
|
16860
16934
|
className: "text-xs py-1",
|
|
16861
16935
|
children: [
|
|
@@ -16864,54 +16938,54 @@ ${c}
|
|
|
16864
16938
|
}),
|
|
16865
16939
|
"SQL Code"
|
|
16866
16940
|
]
|
|
16867
|
-
}), r[20] = W, r[21] =
|
|
16868
|
-
let
|
|
16869
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16941
|
+
}), r[20] = W, r[21] = CW);
|
|
16942
|
+
let TW;
|
|
16943
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (TW = (0, import_jsx_runtime.jsx)("div", {
|
|
16870
16944
|
className: "grow"
|
|
16871
|
-
}), r[22] =
|
|
16872
|
-
let
|
|
16873
|
-
r[23] !==
|
|
16945
|
+
}), r[22] = TW) : TW = r[22];
|
|
16946
|
+
let EW;
|
|
16947
|
+
r[23] !== SW || r[24] !== CW ? (EW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
16874
16948
|
className: "h-8",
|
|
16875
16949
|
children: [
|
|
16876
|
-
|
|
16877
|
-
|
|
16878
|
-
|
|
16879
|
-
|
|
16950
|
+
xW,
|
|
16951
|
+
SW,
|
|
16952
|
+
CW,
|
|
16953
|
+
TW
|
|
16880
16954
|
]
|
|
16881
|
-
}), r[23] =
|
|
16882
|
-
let
|
|
16883
|
-
r[26] === j ?
|
|
16955
|
+
}), r[23] = SW, r[24] = CW, r[25] = EW) : EW = r[25];
|
|
16956
|
+
let DW;
|
|
16957
|
+
r[26] === j ? DW = r[27] : (DW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16884
16958
|
size: "small"
|
|
16885
|
-
}), r[26] = j, r[27] =
|
|
16886
|
-
let
|
|
16887
|
-
r[28] !==
|
|
16959
|
+
}), r[26] = j, r[27] = DW);
|
|
16960
|
+
let OW;
|
|
16961
|
+
r[28] !== EW || r[29] !== DW ? (OW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16888
16962
|
className: "flex items-center gap-2",
|
|
16889
16963
|
children: [
|
|
16890
|
-
|
|
16891
|
-
|
|
16964
|
+
EW,
|
|
16965
|
+
DW
|
|
16892
16966
|
]
|
|
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] !==
|
|
16967
|
+
}), r[28] = EW, r[29] = DW, r[30] = OW) : OW = r[30];
|
|
16968
|
+
let kW;
|
|
16969
|
+
r[31] !== p || r[32] !== f ? (kW = (e2) => {
|
|
16970
|
+
dequal(e2, f) || (p(e2), pW(e2));
|
|
16971
|
+
}, r[31] = p, r[32] = f, r[33] = kW) : kW = r[33];
|
|
16972
|
+
let AW;
|
|
16973
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== kW ? (AW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16900
16974
|
value: "transform",
|
|
16901
16975
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16902
16976
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
16903
|
-
ref:
|
|
16977
|
+
ref: mW,
|
|
16904
16978
|
initialValue: q,
|
|
16905
16979
|
columns: c,
|
|
16906
|
-
onChange:
|
|
16907
|
-
onInvalidChange:
|
|
16980
|
+
onChange: kW,
|
|
16981
|
+
onInvalidChange: pW,
|
|
16908
16982
|
getColumnValues: h,
|
|
16909
16983
|
columnTypesPerStep: B,
|
|
16910
16984
|
lazy: d
|
|
16911
16985
|
})
|
|
16912
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
16913
|
-
let
|
|
16914
|
-
r[41] === H ?
|
|
16986
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = kW, r[40] = AW) : AW = r[40];
|
|
16987
|
+
let jW;
|
|
16988
|
+
r[41] === H ? jW = r[42] : (jW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16915
16989
|
value: "python-code",
|
|
16916
16990
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16917
16991
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16920,9 +16994,9 @@ ${c}
|
|
|
16920
16994
|
code: H,
|
|
16921
16995
|
language: "python"
|
|
16922
16996
|
})
|
|
16923
|
-
}), r[41] = H, r[42] =
|
|
16924
|
-
let
|
|
16925
|
-
r[43] === W ?
|
|
16997
|
+
}), r[41] = H, r[42] = jW);
|
|
16998
|
+
let MW;
|
|
16999
|
+
r[43] === W ? MW = r[44] : (MW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16926
17000
|
value: "sql-code",
|
|
16927
17001
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16928
17002
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16931,35 +17005,35 @@ ${c}
|
|
|
16931
17005
|
code: W,
|
|
16932
17006
|
language: "sql"
|
|
16933
17007
|
})
|
|
16934
|
-
}), r[43] = W, r[44] =
|
|
16935
|
-
let
|
|
16936
|
-
r[45] !==
|
|
17008
|
+
}), r[43] = W, r[44] = MW);
|
|
17009
|
+
let NW;
|
|
17010
|
+
r[45] !== hW || r[46] !== OW || r[47] !== AW || r[48] !== jW || r[49] !== MW ? (NW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
16937
17011
|
defaultValue: "transform",
|
|
16938
|
-
onValueChange:
|
|
17012
|
+
onValueChange: hW,
|
|
16939
17013
|
children: [
|
|
16940
|
-
|
|
16941
|
-
|
|
16942
|
-
|
|
16943
|
-
|
|
17014
|
+
OW,
|
|
17015
|
+
AW,
|
|
17016
|
+
jW,
|
|
17017
|
+
MW
|
|
16944
17018
|
]
|
|
16945
|
-
}), r[45] =
|
|
16946
|
-
let
|
|
16947
|
-
r[51] === O ?
|
|
17019
|
+
}), r[45] = hW, r[46] = OW, r[47] = AW, r[48] = jW, r[49] = MW, r[50] = NW) : NW = r[50];
|
|
17020
|
+
let PW;
|
|
17021
|
+
r[51] === O ? PW = r[52] : (PW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
16948
17022
|
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] !==
|
|
17023
|
+
}), r[51] = O, r[52] = PW);
|
|
17024
|
+
let FW = I || "", IW = L ?? 0, LW = G ?? 0, RW = R || Arrays.EMPTY, zW = L && L > 5 || false, BW;
|
|
17025
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== FW || r[61] !== IW || r[62] !== LW || r[63] !== RW || r[64] !== zW ? (BW = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
16952
17026
|
label: null,
|
|
16953
17027
|
className: "rounded-b border-x border-b",
|
|
16954
|
-
data:
|
|
17028
|
+
data: FW,
|
|
16955
17029
|
hasStableRowId: false,
|
|
16956
|
-
totalRows:
|
|
16957
|
-
totalColumns:
|
|
17030
|
+
totalRows: IW,
|
|
17031
|
+
totalColumns: LW,
|
|
16958
17032
|
maxColumns: "all",
|
|
16959
17033
|
pageSize: l,
|
|
16960
17034
|
pagination: true,
|
|
16961
17035
|
fieldTypes: z,
|
|
16962
|
-
rowHeaders:
|
|
17036
|
+
rowHeaders: RW,
|
|
16963
17037
|
showDownload: u,
|
|
16964
17038
|
download_as: _,
|
|
16965
17039
|
get_size_bytes: v,
|
|
@@ -16969,7 +17043,7 @@ ${c}
|
|
|
16969
17043
|
showColumnSummaries: false,
|
|
16970
17044
|
showDataTypes: true,
|
|
16971
17045
|
get_column_summaries: getColumnSummaries,
|
|
16972
|
-
showPageSizeSelector:
|
|
17046
|
+
showPageSizeSelector: zW,
|
|
16973
17047
|
showColumnExplorer: false,
|
|
16974
17048
|
showRowExplorer: true,
|
|
16975
17049
|
showChartBuilder: false,
|
|
@@ -16978,15 +17052,15 @@ ${c}
|
|
|
16978
17052
|
selection: null,
|
|
16979
17053
|
lazy: false,
|
|
16980
17054
|
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] !==
|
|
17055
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = FW, r[61] = IW, r[62] = LW, r[63] = RW, r[64] = zW, r[65] = BW) : BW = r[65];
|
|
17056
|
+
let VW;
|
|
17057
|
+
return r[66] !== NW || r[67] !== PW || r[68] !== BW ? (VW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16984
17058
|
children: [
|
|
16985
|
-
|
|
16986
|
-
|
|
16987
|
-
|
|
17059
|
+
NW,
|
|
17060
|
+
PW,
|
|
17061
|
+
BW
|
|
16988
17062
|
]
|
|
16989
|
-
}), r[66] =
|
|
17063
|
+
}), r[66] = NW, r[67] = PW, r[68] = BW, r[69] = VW) : VW = r[69], VW;
|
|
16990
17064
|
});
|
|
16991
17065
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
16992
17066
|
function getColumnSummaries() {
|
|
@@ -17170,30 +17244,30 @@ ${c}
|
|
|
17170
17244
|
}, [
|
|
17171
17245
|
B
|
|
17172
17246
|
]);
|
|
17173
|
-
let H = `${g}::${I}`, [
|
|
17174
|
-
|
|
17247
|
+
let H = `${g}::${I}`, [G, q] = (0, import_react.useState)(H);
|
|
17248
|
+
G !== H && (q(H), E(0)), (0, import_react.useLayoutEffect)(() => {
|
|
17175
17249
|
var _a4;
|
|
17176
17250
|
M.current && (M.current = false, (_a4 = O.current[0]) == null ? void 0 : _a4.focus());
|
|
17177
17251
|
}, [
|
|
17178
17252
|
H
|
|
17179
17253
|
]);
|
|
17180
|
-
let
|
|
17254
|
+
let pW = (R == null ? void 0 : R.files) ?? [], mW = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", hW = l === "file" || l === "all", gW = pW.filter((e2) => Z && e2.is_directory || hW && !e2.is_directory), _W = gW.length > 0 && gW.every((e2) => mW.has(e2.path));
|
|
17181
17255
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
17182
17256
|
kind: "danger",
|
|
17183
17257
|
children: z.message
|
|
17184
17258
|
});
|
|
17185
|
-
let
|
|
17259
|
+
let vW = PathBuilder.guessDeliminator(c).deliminator, yW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
17186
17260
|
children: e2.path
|
|
17187
17261
|
}, e2.id));
|
|
17188
|
-
function
|
|
17262
|
+
function bW(e2) {
|
|
17189
17263
|
var _a4;
|
|
17190
17264
|
if (v) return;
|
|
17191
17265
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
17192
|
-
if (g ===
|
|
17266
|
+
if (g === vW) {
|
|
17193
17267
|
y(false);
|
|
17194
17268
|
return;
|
|
17195
17269
|
}
|
|
17196
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
17270
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = vW);
|
|
17197
17271
|
}
|
|
17198
17272
|
let r2 = e2.length < c.length;
|
|
17199
17273
|
if (f && r2) {
|
|
@@ -17206,7 +17280,7 @@ ${c}
|
|
|
17206
17280
|
}
|
|
17207
17281
|
M.current = ((_a4 = j.current) == null ? void 0 : _a4.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
17208
17282
|
}
|
|
17209
|
-
function
|
|
17283
|
+
function xW({ path: e2, name: r2, isDirectory: c2 }) {
|
|
17210
17284
|
return {
|
|
17211
17285
|
id: e2,
|
|
17212
17286
|
name: r2,
|
|
@@ -17214,27 +17288,27 @@ ${c}
|
|
|
17214
17288
|
is_directory: c2
|
|
17215
17289
|
};
|
|
17216
17290
|
}
|
|
17217
|
-
function
|
|
17218
|
-
let f2 =
|
|
17291
|
+
function SW({ path: c2, name: l2, isDirectory: d2 }) {
|
|
17292
|
+
let f2 = xW({
|
|
17219
17293
|
path: c2,
|
|
17220
17294
|
name: l2,
|
|
17221
17295
|
isDirectory: d2
|
|
17222
17296
|
});
|
|
17223
|
-
|
|
17297
|
+
mW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
17224
17298
|
...e,
|
|
17225
17299
|
f2
|
|
17226
17300
|
] : [
|
|
17227
17301
|
f2
|
|
17228
17302
|
]);
|
|
17229
17303
|
}
|
|
17230
|
-
function
|
|
17304
|
+
function wW() {
|
|
17231
17305
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
17232
17306
|
}
|
|
17233
|
-
function
|
|
17307
|
+
function TW() {
|
|
17234
17308
|
let c2 = [];
|
|
17235
|
-
for (let e2 of
|
|
17236
|
-
if (!Z && e2.is_directory ||
|
|
17237
|
-
let r2 =
|
|
17309
|
+
for (let e2 of pW) {
|
|
17310
|
+
if (!Z && e2.is_directory || mW.has(e2.path)) continue;
|
|
17311
|
+
let r2 = xW({
|
|
17238
17312
|
path: e2.path,
|
|
17239
17313
|
name: e2.name,
|
|
17240
17314
|
isDirectory: e2.is_directory
|
|
@@ -17246,20 +17320,20 @@ ${c}
|
|
|
17246
17320
|
...c2
|
|
17247
17321
|
]);
|
|
17248
17322
|
}
|
|
17249
|
-
let
|
|
17323
|
+
let EW = [
|
|
17250
17324
|
{
|
|
17251
17325
|
key: "parent",
|
|
17252
17326
|
name: PARENT_DIRECTORY,
|
|
17253
17327
|
Icon: CornerLeftUp,
|
|
17254
17328
|
isSelected: false,
|
|
17255
17329
|
canSelect: false,
|
|
17256
|
-
onPrimary: () =>
|
|
17330
|
+
onPrimary: () => bW(PARENT_DIRECTORY),
|
|
17257
17331
|
onToggleSelect: null
|
|
17258
17332
|
},
|
|
17259
|
-
...
|
|
17333
|
+
...pW.map((e2) => {
|
|
17260
17334
|
let r2 = e2.path;
|
|
17261
17335
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17262
|
-
let c2 = Z && e2.is_directory ||
|
|
17336
|
+
let c2 = Z && e2.is_directory || hW && !e2.is_directory, l2 = mW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => SW({
|
|
17263
17337
|
path: r2,
|
|
17264
17338
|
name: e2.name,
|
|
17265
17339
|
isDirectory: e2.is_directory
|
|
@@ -17270,46 +17344,46 @@ ${c}
|
|
|
17270
17344
|
Icon: FILE_ICON[u2],
|
|
17271
17345
|
isSelected: l2,
|
|
17272
17346
|
canSelect: c2,
|
|
17273
|
-
onPrimary: e2.is_directory ? () =>
|
|
17347
|
+
onPrimary: e2.is_directory ? () => bW(r2) : c2 ? d2 : () => {
|
|
17274
17348
|
},
|
|
17275
17349
|
onToggleSelect: c2 ? d2 : null
|
|
17276
17350
|
};
|
|
17277
17351
|
})
|
|
17278
17352
|
];
|
|
17279
|
-
function
|
|
17353
|
+
function DW(e2) {
|
|
17280
17354
|
var _a4;
|
|
17281
17355
|
E(e2), (_a4 = O.current[e2]) == null ? void 0 : _a4.focus();
|
|
17282
17356
|
}
|
|
17283
|
-
function
|
|
17357
|
+
function OW(e2, r2) {
|
|
17284
17358
|
var _a4, _b3;
|
|
17285
|
-
let c2 =
|
|
17359
|
+
let c2 = EW.length - 1;
|
|
17286
17360
|
switch (e2.key) {
|
|
17287
17361
|
case "ArrowDown":
|
|
17288
|
-
e2.preventDefault(),
|
|
17362
|
+
e2.preventDefault(), DW(Math.min(r2 + 1, c2));
|
|
17289
17363
|
break;
|
|
17290
17364
|
case "ArrowUp":
|
|
17291
|
-
e2.preventDefault(),
|
|
17365
|
+
e2.preventDefault(), DW(Math.max(r2 - 1, 0));
|
|
17292
17366
|
break;
|
|
17293
17367
|
case "Home":
|
|
17294
|
-
e2.preventDefault(),
|
|
17368
|
+
e2.preventDefault(), DW(0);
|
|
17295
17369
|
break;
|
|
17296
17370
|
case "End":
|
|
17297
|
-
e2.preventDefault(),
|
|
17371
|
+
e2.preventDefault(), DW(c2);
|
|
17298
17372
|
break;
|
|
17299
17373
|
case "Enter":
|
|
17300
|
-
e2.preventDefault(),
|
|
17374
|
+
e2.preventDefault(), EW[r2].onPrimary();
|
|
17301
17375
|
break;
|
|
17302
17376
|
case " ":
|
|
17303
|
-
e2.preventDefault(), (_b3 = (_a4 =
|
|
17377
|
+
e2.preventDefault(), (_b3 = (_a4 = EW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a4);
|
|
17304
17378
|
break;
|
|
17305
17379
|
}
|
|
17306
17380
|
}
|
|
17307
|
-
let { parentDirectories:
|
|
17381
|
+
let { parentDirectories: kW } = getProtocolAndParentDirectories({
|
|
17308
17382
|
path: g,
|
|
17309
|
-
delimiter:
|
|
17383
|
+
delimiter: vW,
|
|
17310
17384
|
initialPath: c,
|
|
17311
17385
|
restrictNavigation: f
|
|
17312
|
-
}),
|
|
17386
|
+
}), AW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
17313
17387
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
17314
17388
|
children: [
|
|
17315
17389
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -17319,7 +17393,7 @@ ${c}
|
|
|
17319
17393
|
(() => {
|
|
17320
17394
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
17321
17395
|
children: renderHTML({
|
|
17322
|
-
html: d ?? `Select ${
|
|
17396
|
+
html: d ?? `Select ${AW.join(" and ", 2)}...`
|
|
17323
17397
|
})
|
|
17324
17398
|
});
|
|
17325
17399
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -17333,8 +17407,8 @@ ${c}
|
|
|
17333
17407
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
17334
17408
|
size: "xs",
|
|
17335
17409
|
variant: "link",
|
|
17336
|
-
onClick:
|
|
17337
|
-
children:
|
|
17410
|
+
onClick: _W ? wW : TW,
|
|
17411
|
+
children: _W ? "Deselect all" : "Select all"
|
|
17338
17412
|
})
|
|
17339
17413
|
})
|
|
17340
17414
|
]
|
|
@@ -17344,15 +17418,15 @@ ${c}
|
|
|
17344
17418
|
className: "mt-2 w-full",
|
|
17345
17419
|
placeholder: g,
|
|
17346
17420
|
value: g,
|
|
17347
|
-
onChange: (e2) =>
|
|
17348
|
-
children:
|
|
17421
|
+
onChange: (e2) => bW(e2.target.value),
|
|
17422
|
+
children: kW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
17349
17423
|
value: e2,
|
|
17350
17424
|
children: e2
|
|
17351
17425
|
}, e2))
|
|
17352
17426
|
}),
|
|
17353
17427
|
R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
17354
17428
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
17355
|
-
children: R.is_truncated ? `Showing ${
|
|
17429
|
+
children: R.is_truncated ? `Showing ${pW.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
17356
17430
|
}),
|
|
17357
17431
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
17358
17432
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
@@ -17381,14 +17455,14 @@ ${c}
|
|
|
17381
17455
|
"aria-label": "File browser",
|
|
17382
17456
|
"aria-multiselectable": u,
|
|
17383
17457
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17384
|
-
children:
|
|
17458
|
+
children: EW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17385
17459
|
role: "row",
|
|
17386
17460
|
ref: (e3) => {
|
|
17387
17461
|
O.current[r2] = e3;
|
|
17388
17462
|
},
|
|
17389
17463
|
tabIndex: r2 === T ? 0 : -1,
|
|
17390
17464
|
onFocus: () => E(r2),
|
|
17391
|
-
onKeyDown: (e3) =>
|
|
17465
|
+
onKeyDown: (e3) => OW(e3, r2),
|
|
17392
17466
|
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
17467
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
17394
17468
|
}),
|
|
@@ -17431,7 +17505,7 @@ ${c}
|
|
|
17431
17505
|
children: [
|
|
17432
17506
|
e.length,
|
|
17433
17507
|
" ",
|
|
17434
|
-
|
|
17508
|
+
AW.join(" or ", e.length),
|
|
17435
17509
|
" ",
|
|
17436
17510
|
"selected"
|
|
17437
17511
|
]
|
|
@@ -17451,7 +17525,7 @@ ${c}
|
|
|
17451
17525
|
marginBlock: 0
|
|
17452
17526
|
},
|
|
17453
17527
|
className: "m-0 text-xs text-muted-foreground",
|
|
17454
|
-
children:
|
|
17528
|
+
children: yW
|
|
17455
17529
|
})
|
|
17456
17530
|
})
|
|
17457
17531
|
]
|
|
@@ -22833,55 +22907,55 @@ ${c}
|
|
|
22833
22907
|
return typeof S == "function" ? S : noop$2;
|
|
22834
22908
|
}, [
|
|
22835
22909
|
S
|
|
22836
|
-
]), q = (0, import_react.useRef)(null),
|
|
22837
|
-
!
|
|
22838
|
-
|
|
22910
|
+
]), q = (0, import_react.useRef)(null), pW = (0, import_react.useRef)(null), mW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), Z = mW[0], hW = mW[1], gW = Z.isFocused, _W = Z.isFileDialogActive, vW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), yW = function() {
|
|
22911
|
+
!vW.current && _W && setTimeout(function() {
|
|
22912
|
+
pW.current && (pW.current.files.length || (hW({
|
|
22839
22913
|
type: "closeDialog"
|
|
22840
22914
|
}), G()));
|
|
22841
22915
|
}, 300);
|
|
22842
22916
|
};
|
|
22843
22917
|
(0, import_react.useEffect)(function() {
|
|
22844
|
-
return window.addEventListener("focus",
|
|
22845
|
-
window.removeEventListener("focus",
|
|
22918
|
+
return window.addEventListener("focus", yW, false), function() {
|
|
22919
|
+
window.removeEventListener("focus", yW, false);
|
|
22846
22920
|
};
|
|
22847
22921
|
}, [
|
|
22848
|
-
|
|
22849
|
-
|
|
22922
|
+
pW,
|
|
22923
|
+
_W,
|
|
22850
22924
|
G,
|
|
22851
|
-
|
|
22925
|
+
vW
|
|
22852
22926
|
]);
|
|
22853
|
-
var
|
|
22854
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
22927
|
+
var bW = (0, import_react.useRef)([]), xW = (0, import_react.useRef)([]), SW = function(e2) {
|
|
22928
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), bW.current = []);
|
|
22855
22929
|
};
|
|
22856
22930
|
(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",
|
|
22931
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", SW, false)), function() {
|
|
22932
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", SW));
|
|
22859
22933
|
};
|
|
22860
22934
|
}, [
|
|
22861
22935
|
q,
|
|
22862
22936
|
O
|
|
22863
22937
|
]), (0, import_react.useEffect)(function() {
|
|
22864
22938
|
var e2 = function(e3) {
|
|
22865
|
-
|
|
22939
|
+
xW.current = [].concat(_toConsumableArray(xW.current), [
|
|
22866
22940
|
e3.target
|
|
22867
|
-
]), isEvtWithFiles(e3) &&
|
|
22941
|
+
]), isEvtWithFiles(e3) && hW({
|
|
22868
22942
|
isDragGlobal: true,
|
|
22869
22943
|
type: "setDragGlobal"
|
|
22870
22944
|
});
|
|
22871
22945
|
}, r2 = function(e3) {
|
|
22872
|
-
|
|
22946
|
+
xW.current = xW.current.filter(function(r3) {
|
|
22873
22947
|
return r3 !== e3.target && r3 !== null;
|
|
22874
|
-
}), !(
|
|
22948
|
+
}), !(xW.current.length > 0) && hW({
|
|
22875
22949
|
isDragGlobal: false,
|
|
22876
22950
|
type: "setDragGlobal"
|
|
22877
22951
|
});
|
|
22878
22952
|
}, c2 = function() {
|
|
22879
|
-
|
|
22953
|
+
xW.current = [], hW({
|
|
22880
22954
|
isDragGlobal: false,
|
|
22881
22955
|
type: "setDragGlobal"
|
|
22882
22956
|
});
|
|
22883
22957
|
}, l2 = function() {
|
|
22884
|
-
|
|
22958
|
+
xW.current = [], hW({
|
|
22885
22959
|
isDragGlobal: false,
|
|
22886
22960
|
type: "setDragGlobal"
|
|
22887
22961
|
});
|
|
@@ -22899,12 +22973,12 @@ ${c}
|
|
|
22899
22973
|
E,
|
|
22900
22974
|
l
|
|
22901
22975
|
]);
|
|
22902
|
-
var
|
|
22976
|
+
var CW = (0, import_react.useCallback)(function(e2) {
|
|
22903
22977
|
R ? R(e2) : console.error(e2);
|
|
22904
22978
|
}, [
|
|
22905
22979
|
R
|
|
22906
|
-
]),
|
|
22907
|
-
e2.preventDefault(), e2.persist(),
|
|
22980
|
+
]), wW = (0, import_react.useCallback)(function(e2) {
|
|
22981
|
+
e2.preventDefault(), e2.persist(), LW(e2), bW.current = [].concat(_toConsumableArray(bW.current), [
|
|
22908
22982
|
e2.target
|
|
22909
22983
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22910
22984
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -22917,7 +22991,7 @@ ${c}
|
|
|
22917
22991
|
maxFiles: m,
|
|
22918
22992
|
validator: z
|
|
22919
22993
|
});
|
|
22920
|
-
|
|
22994
|
+
hW({
|
|
22921
22995
|
isDragAccept: l2,
|
|
22922
22996
|
isDragReject: c2 > 0 && !l2,
|
|
22923
22997
|
isDragActive: true,
|
|
@@ -22925,12 +22999,12 @@ ${c}
|
|
|
22925
22999
|
}), h && h(e2);
|
|
22926
23000
|
}
|
|
22927
23001
|
}).catch(function(e3) {
|
|
22928
|
-
return
|
|
23002
|
+
return CW(e3);
|
|
22929
23003
|
});
|
|
22930
23004
|
}, [
|
|
22931
23005
|
u,
|
|
22932
23006
|
h,
|
|
22933
|
-
|
|
23007
|
+
CW,
|
|
22934
23008
|
L,
|
|
22935
23009
|
B,
|
|
22936
23010
|
f,
|
|
@@ -22938,8 +23012,8 @@ ${c}
|
|
|
22938
23012
|
p,
|
|
22939
23013
|
m,
|
|
22940
23014
|
z
|
|
22941
|
-
]),
|
|
22942
|
-
e2.preventDefault(), e2.persist(),
|
|
23015
|
+
]), TW = (0, import_react.useCallback)(function(e2) {
|
|
23016
|
+
e2.preventDefault(), e2.persist(), LW(e2);
|
|
22943
23017
|
var r2 = isEvtWithFiles(e2);
|
|
22944
23018
|
if (r2 && e2.dataTransfer) try {
|
|
22945
23019
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -22949,12 +23023,12 @@ ${c}
|
|
|
22949
23023
|
}, [
|
|
22950
23024
|
_,
|
|
22951
23025
|
L
|
|
22952
|
-
]),
|
|
22953
|
-
e2.preventDefault(), e2.persist(),
|
|
22954
|
-
var r2 =
|
|
23026
|
+
]), EW = (0, import_react.useCallback)(function(e2) {
|
|
23027
|
+
e2.preventDefault(), e2.persist(), LW(e2);
|
|
23028
|
+
var r2 = bW.current.filter(function(e3) {
|
|
22955
23029
|
return q.current && q.current.contains(e3);
|
|
22956
23030
|
}), c2 = r2.indexOf(e2.target);
|
|
22957
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
23031
|
+
c2 !== -1 && r2.splice(c2, 1), bW.current = r2, !(r2.length > 0) && (hW({
|
|
22958
23032
|
type: "setDraggedFiles",
|
|
22959
23033
|
isDragActive: false,
|
|
22960
23034
|
isDragAccept: false,
|
|
@@ -22964,7 +23038,7 @@ ${c}
|
|
|
22964
23038
|
q,
|
|
22965
23039
|
g,
|
|
22966
23040
|
L
|
|
22967
|
-
]),
|
|
23041
|
+
]), DW = (0, import_react.useCallback)(function(e2, r2) {
|
|
22968
23042
|
var c2 = [], l2 = [];
|
|
22969
23043
|
e2.forEach(function(e3) {
|
|
22970
23044
|
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 +23062,14 @@ ${c}
|
|
|
22988
23062
|
TOO_MANY_FILES_REJECTION
|
|
22989
23063
|
]
|
|
22990
23064
|
});
|
|
22991
|
-
}), c2.splice(0)),
|
|
23065
|
+
}), c2.splice(0)), hW({
|
|
22992
23066
|
acceptedFiles: c2,
|
|
22993
23067
|
fileRejections: l2,
|
|
22994
23068
|
isDragReject: l2.length > 0,
|
|
22995
23069
|
type: "setFiles"
|
|
22996
23070
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
22997
23071
|
}, [
|
|
22998
|
-
|
|
23072
|
+
hW,
|
|
22999
23073
|
p,
|
|
23000
23074
|
B,
|
|
23001
23075
|
f,
|
|
@@ -23005,22 +23079,22 @@ ${c}
|
|
|
23005
23079
|
y,
|
|
23006
23080
|
b,
|
|
23007
23081
|
z
|
|
23008
|
-
]),
|
|
23009
|
-
e2.preventDefault(), e2.persist(),
|
|
23010
|
-
isPropagationStopped(e2) && !L ||
|
|
23082
|
+
]), OW = (0, import_react.useCallback)(function(e2) {
|
|
23083
|
+
e2.preventDefault(), e2.persist(), LW(e2), bW.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
23084
|
+
isPropagationStopped(e2) && !L || DW(r2, e2);
|
|
23011
23085
|
}).catch(function(e3) {
|
|
23012
|
-
return
|
|
23013
|
-
}),
|
|
23086
|
+
return CW(e3);
|
|
23087
|
+
}), hW({
|
|
23014
23088
|
type: "reset"
|
|
23015
23089
|
});
|
|
23016
23090
|
}, [
|
|
23017
23091
|
u,
|
|
23018
|
-
|
|
23019
|
-
|
|
23092
|
+
DW,
|
|
23093
|
+
CW,
|
|
23020
23094
|
L
|
|
23021
|
-
]),
|
|
23022
|
-
if (
|
|
23023
|
-
|
|
23095
|
+
]), kW = (0, import_react.useCallback)(function() {
|
|
23096
|
+
if (vW.current) {
|
|
23097
|
+
hW({
|
|
23024
23098
|
type: "openDialog"
|
|
23025
23099
|
}), W();
|
|
23026
23100
|
var e2 = {
|
|
@@ -23030,66 +23104,66 @@ ${c}
|
|
|
23030
23104
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
23031
23105
|
return u(e3);
|
|
23032
23106
|
}).then(function(e3) {
|
|
23033
|
-
|
|
23107
|
+
DW(e3, null), hW({
|
|
23034
23108
|
type: "closeDialog"
|
|
23035
23109
|
});
|
|
23036
23110
|
}).catch(function(e3) {
|
|
23037
|
-
isAbort(e3) ? (G(e3),
|
|
23111
|
+
isAbort(e3) ? (G(e3), hW({
|
|
23038
23112
|
type: "closeDialog"
|
|
23039
|
-
})) : isSecurityError(e3) ? (
|
|
23113
|
+
})) : isSecurityError(e3) ? (vW.current = false, pW.current ? (pW.current.value = null, pW.current.click()) : CW(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."))) : CW(e3);
|
|
23040
23114
|
});
|
|
23041
23115
|
return;
|
|
23042
23116
|
}
|
|
23043
|
-
|
|
23117
|
+
pW.current && (hW({
|
|
23044
23118
|
type: "openDialog"
|
|
23045
|
-
}), W(),
|
|
23119
|
+
}), W(), pW.current.value = null, pW.current.click());
|
|
23046
23120
|
}, [
|
|
23047
|
-
|
|
23121
|
+
hW,
|
|
23048
23122
|
W,
|
|
23049
23123
|
G,
|
|
23050
23124
|
T,
|
|
23051
|
-
|
|
23052
|
-
|
|
23125
|
+
DW,
|
|
23126
|
+
CW,
|
|
23053
23127
|
H,
|
|
23054
23128
|
p
|
|
23055
|
-
]),
|
|
23056
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
23129
|
+
]), AW = (0, import_react.useCallback)(function(e2) {
|
|
23130
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), kW());
|
|
23057
23131
|
}, [
|
|
23058
23132
|
q,
|
|
23059
|
-
|
|
23060
|
-
]),
|
|
23061
|
-
|
|
23133
|
+
kW
|
|
23134
|
+
]), jW = (0, import_react.useCallback)(function() {
|
|
23135
|
+
hW({
|
|
23062
23136
|
type: "focus"
|
|
23063
23137
|
});
|
|
23064
|
-
}, []),
|
|
23065
|
-
|
|
23138
|
+
}, []), MW = (0, import_react.useCallback)(function() {
|
|
23139
|
+
hW({
|
|
23066
23140
|
type: "blur"
|
|
23067
23141
|
});
|
|
23068
|
-
}, []),
|
|
23069
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
23142
|
+
}, []), NW = (0, import_react.useCallback)(function() {
|
|
23143
|
+
j || (isIeOrEdge() ? setTimeout(kW, 0) : kW());
|
|
23070
23144
|
}, [
|
|
23071
23145
|
j,
|
|
23072
|
-
|
|
23073
|
-
]),
|
|
23146
|
+
kW
|
|
23147
|
+
]), PW = function(e2) {
|
|
23074
23148
|
return l ? null : e2;
|
|
23075
|
-
},
|
|
23076
|
-
return M ? null :
|
|
23077
|
-
},
|
|
23078
|
-
return I ? null :
|
|
23079
|
-
},
|
|
23149
|
+
}, FW = function(e2) {
|
|
23150
|
+
return M ? null : PW(e2);
|
|
23151
|
+
}, IW = function(e2) {
|
|
23152
|
+
return I ? null : PW(e2);
|
|
23153
|
+
}, LW = function(e2) {
|
|
23080
23154
|
L && e2.stopPropagation();
|
|
23081
|
-
},
|
|
23155
|
+
}, RW = (0, import_react.useMemo)(function() {
|
|
23082
23156
|
return function() {
|
|
23083
23157
|
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
23158
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
23085
|
-
onKeyDown:
|
|
23086
|
-
onFocus:
|
|
23087
|
-
onBlur:
|
|
23088
|
-
onClick:
|
|
23089
|
-
onDragEnter:
|
|
23090
|
-
onDragOver:
|
|
23091
|
-
onDragLeave:
|
|
23092
|
-
onDrop:
|
|
23159
|
+
onKeyDown: FW(composeEventHandlers(d2, AW)),
|
|
23160
|
+
onFocus: FW(composeEventHandlers(f2, jW)),
|
|
23161
|
+
onBlur: FW(composeEventHandlers(p2, MW)),
|
|
23162
|
+
onClick: PW(composeEventHandlers(m2, NW)),
|
|
23163
|
+
onDragEnter: IW(composeEventHandlers(h2, wW)),
|
|
23164
|
+
onDragOver: IW(composeEventHandlers(g2, TW)),
|
|
23165
|
+
onDragLeave: IW(composeEventHandlers(_2, EW)),
|
|
23166
|
+
onDrop: IW(composeEventHandlers(v2, OW)),
|
|
23093
23167
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23094
23168
|
}, c2, q), !l && !M ? {
|
|
23095
23169
|
tabIndex: 0
|
|
@@ -23097,20 +23171,20 @@ ${c}
|
|
|
23097
23171
|
};
|
|
23098
23172
|
}, [
|
|
23099
23173
|
q,
|
|
23100
|
-
|
|
23101
|
-
|
|
23102
|
-
|
|
23103
|
-
|
|
23104
|
-
|
|
23105
|
-
|
|
23106
|
-
|
|
23107
|
-
|
|
23174
|
+
AW,
|
|
23175
|
+
jW,
|
|
23176
|
+
MW,
|
|
23177
|
+
NW,
|
|
23178
|
+
wW,
|
|
23179
|
+
TW,
|
|
23180
|
+
EW,
|
|
23181
|
+
OW,
|
|
23108
23182
|
M,
|
|
23109
23183
|
I,
|
|
23110
23184
|
l
|
|
23111
|
-
]),
|
|
23185
|
+
]), zW = (0, import_react.useCallback)(function(e2) {
|
|
23112
23186
|
e2.stopPropagation();
|
|
23113
|
-
}, []),
|
|
23187
|
+
}, []), BW = (0, import_react.useMemo)(function() {
|
|
23114
23188
|
return function() {
|
|
23115
23189
|
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
23190
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -23129,25 +23203,25 @@ ${c}
|
|
|
23129
23203
|
width: "1px",
|
|
23130
23204
|
whiteSpace: "nowrap"
|
|
23131
23205
|
},
|
|
23132
|
-
onChange:
|
|
23133
|
-
onClick:
|
|
23206
|
+
onChange: PW(composeEventHandlers(l2, OW)),
|
|
23207
|
+
onClick: PW(composeEventHandlers(u2, zW)),
|
|
23134
23208
|
tabIndex: -1
|
|
23135
|
-
}, c2,
|
|
23209
|
+
}, c2, pW)), d2);
|
|
23136
23210
|
};
|
|
23137
23211
|
}, [
|
|
23138
|
-
|
|
23212
|
+
pW,
|
|
23139
23213
|
c,
|
|
23140
23214
|
p,
|
|
23141
|
-
|
|
23215
|
+
OW,
|
|
23142
23216
|
l
|
|
23143
23217
|
]);
|
|
23144
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
23145
|
-
isFocused:
|
|
23146
|
-
getRootProps:
|
|
23147
|
-
getInputProps:
|
|
23218
|
+
return _objectSpread$7(_objectSpread$7({}, Z), {}, {
|
|
23219
|
+
isFocused: gW && !l,
|
|
23220
|
+
getRootProps: RW,
|
|
23221
|
+
getInputProps: BW,
|
|
23148
23222
|
rootRef: q,
|
|
23149
|
-
inputRef:
|
|
23150
|
-
open:
|
|
23223
|
+
inputRef: pW,
|
|
23224
|
+
open: PW(kW)
|
|
23151
23225
|
});
|
|
23152
23226
|
}
|
|
23153
23227
|
function reducer$2(e, r) {
|
|
@@ -23379,47 +23453,47 @@ ${c}
|
|
|
23379
23453
|
html: I
|
|
23380
23454
|
})
|
|
23381
23455
|
}), 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] ===
|
|
23456
|
+
let q = w && "text-primary", pW = T && "text-destructive", mW;
|
|
23457
|
+
r[48] !== q || r[49] !== pW ? (mW = cn(q, pW), r[48] = q, r[49] = pW, r[50] = mW) : mW = r[50];
|
|
23458
|
+
let Z;
|
|
23459
|
+
r[51] === mW ? Z = r[52] : (Z = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23386
23460
|
strokeWidth: 1.4,
|
|
23387
|
-
className:
|
|
23388
|
-
}), r[51] =
|
|
23389
|
-
let
|
|
23390
|
-
r[53] !==
|
|
23391
|
-
let
|
|
23392
|
-
r[56] ===
|
|
23461
|
+
className: mW
|
|
23462
|
+
}), r[51] = mW, r[52] = Z);
|
|
23463
|
+
let hW = w && "text-primary", gW = T && "text-destructive", _W;
|
|
23464
|
+
r[53] !== hW || r[54] !== gW ? (_W = cn(hW, gW), r[53] = hW, r[54] = gW, r[55] = _W) : _W = r[55];
|
|
23465
|
+
let vW;
|
|
23466
|
+
r[56] === _W ? vW = r[57] : (vW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23393
23467
|
strokeWidth: 1.4,
|
|
23394
|
-
className:
|
|
23395
|
-
}), r[56] =
|
|
23396
|
-
let
|
|
23397
|
-
r[58] !==
|
|
23468
|
+
className: _W
|
|
23469
|
+
}), r[56] = _W, r[57] = vW);
|
|
23470
|
+
let yW;
|
|
23471
|
+
r[58] !== Z || r[59] !== vW ? (yW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23398
23472
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
23399
23473
|
children: [
|
|
23400
|
-
|
|
23401
|
-
|
|
23474
|
+
Z,
|
|
23475
|
+
vW
|
|
23402
23476
|
]
|
|
23403
|
-
}), r[58] =
|
|
23404
|
-
let
|
|
23405
|
-
r[61] !== G || r[62] !==
|
|
23477
|
+
}), r[58] = Z, r[59] = vW, r[60] = yW) : yW = r[60];
|
|
23478
|
+
let bW;
|
|
23479
|
+
r[61] !== G || r[62] !== yW ? (bW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23406
23480
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
23407
23481
|
children: [
|
|
23408
23482
|
G,
|
|
23409
|
-
|
|
23483
|
+
yW
|
|
23410
23484
|
]
|
|
23411
|
-
}), r[61] = G, r[62] =
|
|
23412
|
-
let
|
|
23413
|
-
r[64] !== W || r[65] !==
|
|
23485
|
+
}), r[61] = G, r[62] = yW, r[63] = bW) : bW = r[63];
|
|
23486
|
+
let xW;
|
|
23487
|
+
r[64] !== W || r[65] !== bW || r[66] !== z || r[67] !== B ? (xW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23414
23488
|
className: z,
|
|
23415
23489
|
...B,
|
|
23416
23490
|
children: [
|
|
23417
23491
|
W,
|
|
23418
|
-
|
|
23492
|
+
bW
|
|
23419
23493
|
]
|
|
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 ? (
|
|
23494
|
+
}), r[64] = W, r[65] = bW, r[66] = z, r[67] = B, r[68] = xW) : xW = r[68];
|
|
23495
|
+
let SW;
|
|
23496
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (SW = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
23423
23497
|
className: "flex flex-row gap-1",
|
|
23424
23498
|
children: [
|
|
23425
23499
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23455,17 +23529,17 @@ ${c}
|
|
|
23455
23529
|
})
|
|
23456
23530
|
})
|
|
23457
23531
|
]
|
|
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] !==
|
|
23532
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = SW) : SW = r[74];
|
|
23533
|
+
let wW;
|
|
23534
|
+
return r[75] !== xW || r[76] !== SW ? (wW = (0, import_jsx_runtime.jsx)("section", {
|
|
23461
23535
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
23462
23536
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
23463
23537
|
children: [
|
|
23464
|
-
|
|
23465
|
-
|
|
23538
|
+
xW,
|
|
23539
|
+
SW
|
|
23466
23540
|
]
|
|
23467
23541
|
})
|
|
23468
|
-
}), r[75] =
|
|
23542
|
+
}), r[75] = xW, r[76] = SW, r[77] = wW) : wW = r[77], wW;
|
|
23469
23543
|
};
|
|
23470
23544
|
function _temp$11(e) {
|
|
23471
23545
|
Logger.error(e), toast({
|
|
@@ -23561,75 +23635,75 @@ ${c}
|
|
|
23561
23635
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
23562
23636
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23563
23637
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
23564
|
-
let
|
|
23565
|
-
r[13] === f ?
|
|
23638
|
+
let pW;
|
|
23639
|
+
r[13] === f ? pW = r[14] : (pW = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23566
23640
|
className: "text-center",
|
|
23567
23641
|
children: renderHTML({
|
|
23568
23642
|
html: f
|
|
23569
23643
|
})
|
|
23570
|
-
}), r[13] = f, r[14] =
|
|
23571
|
-
let
|
|
23572
|
-
r[15] === L ?
|
|
23644
|
+
}), r[13] = f, r[14] = pW);
|
|
23645
|
+
let mW;
|
|
23646
|
+
r[15] === L ? mW = r[16] : (mW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
23573
23647
|
kind: "danger",
|
|
23574
23648
|
className: "rounded",
|
|
23575
23649
|
children: L ?? "Invalid input"
|
|
23576
|
-
}), r[15] = L, r[16] =
|
|
23577
|
-
let
|
|
23578
|
-
r[17] === c ?
|
|
23650
|
+
}), r[15] = L, r[16] = mW);
|
|
23651
|
+
let Z;
|
|
23652
|
+
r[17] === c ? Z = r[18] : (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
23579
23653
|
children: c
|
|
23580
|
-
}), r[17] = c, r[18] =
|
|
23581
|
-
let
|
|
23582
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
23654
|
+
}), r[17] = c, r[18] = Z);
|
|
23655
|
+
let hW;
|
|
23656
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (hW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
23583
23657
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
23584
23658
|
variant: "text",
|
|
23585
23659
|
onClick: (e2) => {
|
|
23586
23660
|
e2.preventDefault(), B();
|
|
23587
23661
|
},
|
|
23588
23662
|
children: S
|
|
23589
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
23590
|
-
let
|
|
23591
|
-
r[23] === h ?
|
|
23663
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = hW) : hW = r[22];
|
|
23664
|
+
let gW = v || h, _W;
|
|
23665
|
+
r[23] === h ? _W = r[24] : (_W = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
23592
23666
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
23593
|
-
}), r[23] = h, r[24] =
|
|
23594
|
-
let
|
|
23595
|
-
r[25] !== g || r[26] !==
|
|
23667
|
+
}), r[23] = h, r[24] = _W);
|
|
23668
|
+
let vW;
|
|
23669
|
+
r[25] !== g || r[26] !== gW || r[27] !== _W || r[28] !== I ? (vW = (0, import_jsx_runtime.jsxs)(Button, {
|
|
23596
23670
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
23597
23671
|
variant: I,
|
|
23598
|
-
disabled:
|
|
23672
|
+
disabled: gW,
|
|
23599
23673
|
type: "submit",
|
|
23600
23674
|
children: [
|
|
23601
|
-
|
|
23675
|
+
_W,
|
|
23602
23676
|
g
|
|
23603
23677
|
]
|
|
23604
|
-
}), r[25] = g, r[26] =
|
|
23605
|
-
let
|
|
23606
|
-
r[30] !== _ || r[31] !==
|
|
23607
|
-
let
|
|
23608
|
-
r[33] !==
|
|
23678
|
+
}), r[25] = g, r[26] = gW, r[27] = _W, r[28] = I, r[29] = vW) : vW = r[29];
|
|
23679
|
+
let yW;
|
|
23680
|
+
r[30] !== _ || r[31] !== vW ? (yW = withTooltip(vW, _), r[30] = _, r[31] = vW, r[32] = yW) : yW = r[32];
|
|
23681
|
+
let bW;
|
|
23682
|
+
r[33] !== yW || r[34] !== hW ? (bW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23609
23683
|
className: "flex justify-end gap-2 font-code",
|
|
23610
23684
|
children: [
|
|
23611
|
-
|
|
23612
|
-
|
|
23685
|
+
hW,
|
|
23686
|
+
yW
|
|
23613
23687
|
]
|
|
23614
|
-
}), r[33] =
|
|
23615
|
-
let
|
|
23616
|
-
r[36] !==
|
|
23688
|
+
}), r[33] = yW, r[34] = hW, r[35] = bW) : bW = r[35];
|
|
23689
|
+
let xW;
|
|
23690
|
+
r[36] !== bW || r[37] !== G || r[38] !== q || r[39] !== pW || r[40] !== mW || r[41] !== Z ? (xW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23617
23691
|
className: G,
|
|
23618
23692
|
onKeyDown: q,
|
|
23619
23693
|
children: [
|
|
23620
|
-
|
|
23694
|
+
pW,
|
|
23695
|
+
mW,
|
|
23621
23696
|
Z,
|
|
23622
|
-
|
|
23623
|
-
oW
|
|
23697
|
+
bW
|
|
23624
23698
|
]
|
|
23625
|
-
}), r[36] =
|
|
23626
|
-
let
|
|
23627
|
-
return r[43] !==
|
|
23699
|
+
}), r[36] = bW, r[37] = G, r[38] = q, r[39] = pW, r[40] = mW, r[41] = Z, r[42] = xW) : xW = r[42];
|
|
23700
|
+
let SW;
|
|
23701
|
+
return r[43] !== xW || r[44] !== H ? (SW = (0, import_jsx_runtime.jsx)("form", {
|
|
23628
23702
|
className: "contents",
|
|
23629
23703
|
ref: j,
|
|
23630
23704
|
onSubmit: H,
|
|
23631
|
-
children:
|
|
23632
|
-
}), r[43] =
|
|
23705
|
+
children: xW
|
|
23706
|
+
}), r[43] = xW, r[44] = H, r[45] = SW) : SW = r[45], SW;
|
|
23633
23707
|
};
|
|
23634
23708
|
var Form = (e) => {
|
|
23635
23709
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -25402,8 +25476,8 @@ ${c}
|
|
|
25402
25476
|
points: extractSunburstPoints(e2.points)
|
|
25403
25477
|
}));
|
|
25404
25478
|
}, r[29] = u, r[30] = G);
|
|
25405
|
-
let q = useEvent_default(G),
|
|
25406
|
-
r[31] === u ?
|
|
25479
|
+
let q = useEvent_default(G), pW;
|
|
25480
|
+
r[31] === u ? pW = r[32] : (pW = (e2) => {
|
|
25407
25481
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25408
25482
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25409
25483
|
u((e3) => ({
|
|
@@ -25414,9 +25488,9 @@ ${c}
|
|
|
25414
25488
|
points: r2,
|
|
25415
25489
|
indices: c2
|
|
25416
25490
|
}));
|
|
25417
|
-
}, r[31] = u, r[32] =
|
|
25418
|
-
let
|
|
25419
|
-
r[33] === u ?
|
|
25491
|
+
}, r[31] = u, r[32] = pW);
|
|
25492
|
+
let mW = useEvent_default(pW), Z;
|
|
25493
|
+
r[33] === u ? Z = r[34] : (Z = (e2) => {
|
|
25420
25494
|
e2 && u((r2) => ({
|
|
25421
25495
|
...r2,
|
|
25422
25496
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -25425,9 +25499,9 @@ ${c}
|
|
|
25425
25499
|
range: e2.range,
|
|
25426
25500
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
25427
25501
|
}));
|
|
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] !==
|
|
25502
|
+
}, r[33] = u, r[34] = Z);
|
|
25503
|
+
let hW = useEvent_default(Z), gW = m.frames ?? void 0, _W = useEvent_default(_temp3$3), vW;
|
|
25504
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== mW || r[42] !== hW || r[43] !== gW || r[44] !== _W || r[45] !== R ? (vW = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25431
25505
|
...m,
|
|
25432
25506
|
layout: h,
|
|
25433
25507
|
onRelayout: R,
|
|
@@ -25435,13 +25509,13 @@ ${c}
|
|
|
25435
25509
|
onTreemapClick: W,
|
|
25436
25510
|
onSunburstClick: q,
|
|
25437
25511
|
config: L,
|
|
25438
|
-
onClick:
|
|
25439
|
-
onSelected:
|
|
25512
|
+
onClick: mW,
|
|
25513
|
+
onSelected: hW,
|
|
25440
25514
|
className: "w-full",
|
|
25441
25515
|
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] =
|
|
25516
|
+
frames: gW,
|
|
25517
|
+
onError: _W
|
|
25518
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = mW, r[42] = hW, r[43] = gW, r[44] = _W, r[45] = R, r[46] = vW) : vW = r[46], vW;
|
|
25445
25519
|
});
|
|
25446
25520
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25447
25521
|
function _temp$8(e) {
|
|
@@ -25573,8 +25647,8 @@ ${c}
|
|
|
25573
25647
|
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
25648
|
let q;
|
|
25575
25649
|
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 ? (
|
|
25650
|
+
let pW;
|
|
25651
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (pW = (0, import_jsx_runtime.jsx)(Track, {
|
|
25578
25652
|
ref: E,
|
|
25579
25653
|
"data-testid": "track",
|
|
25580
25654
|
className: G,
|
|
@@ -25585,9 +25659,9 @@ ${c}
|
|
|
25585
25659
|
onPointerMove: z,
|
|
25586
25660
|
onPointerUp: H
|
|
25587
25661
|
})
|
|
25588
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25589
|
-
let
|
|
25590
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
25662
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = pW) : pW = c[22];
|
|
25663
|
+
let mW;
|
|
25664
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (mW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25591
25665
|
asChild: true,
|
|
25592
25666
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25593
25667
|
"data-testid": "thumb",
|
|
@@ -25597,30 +25671,30 @@ ${c}
|
|
|
25597
25671
|
onMouseEnter: m.setTrue,
|
|
25598
25672
|
onMouseLeave: m.setFalse
|
|
25599
25673
|
})
|
|
25600
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
25601
|
-
let
|
|
25602
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
25674
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = mW) : mW = c[25];
|
|
25675
|
+
let Z;
|
|
25676
|
+
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
25677
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
25604
25678
|
locale: h
|
|
25605
25679
|
})
|
|
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] !==
|
|
25680
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = Z) : Z = c[29];
|
|
25681
|
+
let hW;
|
|
25682
|
+
c[30] === Z ? hW = c[31] : (hW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25683
|
+
children: Z
|
|
25684
|
+
}), c[30] = Z, c[31] = hW);
|
|
25685
|
+
let gW;
|
|
25686
|
+
c[32] !== f || c[33] !== mW || c[34] !== hW ? (gW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25613
25687
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25614
25688
|
delayDuration: 0,
|
|
25615
25689
|
open: f,
|
|
25616
25690
|
children: [
|
|
25617
|
-
|
|
25618
|
-
|
|
25691
|
+
mW,
|
|
25692
|
+
hW
|
|
25619
25693
|
]
|
|
25620
25694
|
})
|
|
25621
|
-
}), c[32] = f, c[33] =
|
|
25622
|
-
let
|
|
25623
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
25695
|
+
}), c[32] = f, c[33] = mW, c[34] = hW, c[35] = gW) : gW = c[35];
|
|
25696
|
+
let _W;
|
|
25697
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (_W = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25624
25698
|
asChild: true,
|
|
25625
25699
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25626
25700
|
"data-testid": "thumb",
|
|
@@ -25630,39 +25704,39 @@ ${c}
|
|
|
25630
25704
|
onMouseEnter: m.setTrue,
|
|
25631
25705
|
onMouseLeave: m.setFalse
|
|
25632
25706
|
})
|
|
25633
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
25634
|
-
let
|
|
25635
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
25707
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = _W) : _W = c[38];
|
|
25708
|
+
let vW;
|
|
25709
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (vW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25636
25710
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
25637
25711
|
locale: h
|
|
25638
25712
|
})
|
|
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] !==
|
|
25713
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = vW) : vW = c[42];
|
|
25714
|
+
let yW;
|
|
25715
|
+
c[43] === vW ? yW = c[44] : (yW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25716
|
+
children: vW
|
|
25717
|
+
}), c[43] = vW, c[44] = yW);
|
|
25718
|
+
let bW;
|
|
25719
|
+
c[45] !== f || c[46] !== _W || c[47] !== yW ? (bW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25646
25720
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25647
25721
|
delayDuration: 0,
|
|
25648
25722
|
open: f,
|
|
25649
25723
|
children: [
|
|
25650
|
-
|
|
25651
|
-
|
|
25724
|
+
_W,
|
|
25725
|
+
yW
|
|
25652
25726
|
]
|
|
25653
25727
|
})
|
|
25654
|
-
}), c[45] = f, c[46] =
|
|
25655
|
-
let
|
|
25656
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25728
|
+
}), c[45] = f, c[46] = _W, c[47] = yW, c[48] = bW) : bW = c[48];
|
|
25729
|
+
let xW;
|
|
25730
|
+
return c[49] !== M || c[50] !== u || c[51] !== pW || c[52] !== gW || c[53] !== bW || c[54] !== W ? (xW = (0, import_jsx_runtime.jsxs)(Root, {
|
|
25657
25731
|
ref: M,
|
|
25658
25732
|
className: W,
|
|
25659
25733
|
...u,
|
|
25660
25734
|
children: [
|
|
25661
|
-
|
|
25662
|
-
|
|
25663
|
-
|
|
25735
|
+
pW,
|
|
25736
|
+
gW,
|
|
25737
|
+
bW
|
|
25664
25738
|
]
|
|
25665
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25739
|
+
}), c[49] = M, c[50] = u, c[51] = pW, c[52] = gW, c[53] = bW, c[54] = W, c[55] = xW) : xW = c[55], xW;
|
|
25666
25740
|
});
|
|
25667
25741
|
RangeSlider.displayName = Root.displayName;
|
|
25668
25742
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25713,14 +25787,14 @@ ${c}
|
|
|
25713
25787
|
}, q = (e2) => {
|
|
25714
25788
|
h && l(e2);
|
|
25715
25789
|
}, 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 ? (
|
|
25790
|
+
let pW, mW;
|
|
25791
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (pW = () => {
|
|
25718
25792
|
h && !dequal(T, u) && l(T);
|
|
25719
|
-
},
|
|
25793
|
+
}, mW = () => {
|
|
25720
25794
|
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] !==
|
|
25795
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = pW, r[19] = mW) : (pW = r[18], mW = r[19]);
|
|
25796
|
+
let Z;
|
|
25797
|
+
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] !== pW || r[31] !== mW || r[32] !== b ? (Z = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25724
25798
|
id: S,
|
|
25725
25799
|
className: W,
|
|
25726
25800
|
value: T,
|
|
@@ -25731,36 +25805,36 @@ ${c}
|
|
|
25731
25805
|
disabled: y,
|
|
25732
25806
|
onValueChange: G,
|
|
25733
25807
|
onValueCommit: q,
|
|
25734
|
-
onPointerUp:
|
|
25735
|
-
onMouseUp:
|
|
25808
|
+
onPointerUp: pW,
|
|
25809
|
+
onMouseUp: mW,
|
|
25736
25810
|
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 ? (
|
|
25811
|
+
}), 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] = pW, r[31] = mW, r[32] = b, r[33] = Z) : Z = r[33];
|
|
25812
|
+
let hW;
|
|
25813
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (hW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25740
25814
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
25741
25815
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
25742
25816
|
locale: w
|
|
25743
25817
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
25744
25818
|
locale: w
|
|
25745
25819
|
})}`
|
|
25746
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
25747
|
-
let
|
|
25748
|
-
r[39] !==
|
|
25820
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = hW) : hW = r[38];
|
|
25821
|
+
let gW;
|
|
25822
|
+
r[39] !== Z || r[40] !== hW || r[41] !== B ? (gW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25749
25823
|
className: B,
|
|
25750
25824
|
children: [
|
|
25751
|
-
|
|
25752
|
-
|
|
25825
|
+
Z,
|
|
25826
|
+
hW
|
|
25753
25827
|
]
|
|
25754
|
-
}), r[39] =
|
|
25755
|
-
let
|
|
25756
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
25828
|
+
}), r[39] = Z, r[40] = hW, r[41] = B, r[42] = gW) : gW = r[42];
|
|
25829
|
+
let _W;
|
|
25830
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== gW || r[47] !== M || r[48] !== L ? (_W = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25757
25831
|
label: c,
|
|
25758
25832
|
id: S,
|
|
25759
25833
|
align: M,
|
|
25760
25834
|
className: L,
|
|
25761
25835
|
fullWidth: v,
|
|
25762
|
-
children:
|
|
25763
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
25836
|
+
children: gW
|
|
25837
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = gW, r[47] = M, r[48] = L, r[49] = _W) : _W = r[49], _W;
|
|
25764
25838
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
25765
25839
|
r.exports = u;
|
|
25766
25840
|
var c = {
|
|
@@ -26466,7 +26540,7 @@ ${c}
|
|
|
26466
26540
|
return true;
|
|
26467
26541
|
}
|
|
26468
26542
|
}
|
|
26469
|
-
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-
|
|
26543
|
+
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-BFJTyykA.js")), VegaPlugin = class {
|
|
26470
26544
|
constructor() {
|
|
26471
26545
|
__publicField(this, "tagName", "marimo-vega");
|
|
26472
26546
|
__publicField(this, "validator", object({
|
|
@@ -26796,7 +26870,7 @@ ${c}
|
|
|
26796
26870
|
themeVariables: e.data.theme_variables
|
|
26797
26871
|
});
|
|
26798
26872
|
}
|
|
26799
|
-
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-
|
|
26873
|
+
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-D-HYBMEV.js").then(async (m) => {
|
|
26800
26874
|
await m.__tla;
|
|
26801
26875
|
return m;
|
|
26802
26876
|
})), import_compiler_runtime$22 = require_compiler_runtime();
|
|
@@ -29051,7 +29125,7 @@ ${c}
|
|
|
29051
29125
|
areRegExpsEqual: H,
|
|
29052
29126
|
areSetsEqual: W,
|
|
29053
29127
|
createIsNestedEqual: r2
|
|
29054
|
-
}),
|
|
29128
|
+
}), pW = Object.freeze({
|
|
29055
29129
|
areArraysEqual: O,
|
|
29056
29130
|
areDatesEqual: j,
|
|
29057
29131
|
areMapsEqual: I,
|
|
@@ -29059,40 +29133,40 @@ ${c}
|
|
|
29059
29133
|
areRegExpsEqual: H,
|
|
29060
29134
|
areSetsEqual: G,
|
|
29061
29135
|
createIsNestedEqual: r2
|
|
29062
|
-
}),
|
|
29063
|
-
function
|
|
29064
|
-
return
|
|
29136
|
+
}), mW = T(q);
|
|
29137
|
+
function Z(e3, r3) {
|
|
29138
|
+
return mW(e3, r3, void 0);
|
|
29065
29139
|
}
|
|
29066
|
-
var
|
|
29140
|
+
var hW = T(l(q, {
|
|
29067
29141
|
createIsNestedEqual: function() {
|
|
29068
29142
|
return f;
|
|
29069
29143
|
}
|
|
29070
29144
|
}));
|
|
29071
|
-
function
|
|
29072
|
-
return
|
|
29145
|
+
function gW(e3, r3) {
|
|
29146
|
+
return hW(e3, r3, void 0);
|
|
29073
29147
|
}
|
|
29074
|
-
var
|
|
29075
|
-
function
|
|
29076
|
-
return
|
|
29148
|
+
var _W = T(pW);
|
|
29149
|
+
function vW(e3, r3) {
|
|
29150
|
+
return _W(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29077
29151
|
}
|
|
29078
|
-
var
|
|
29152
|
+
var yW = T(l(pW, {
|
|
29079
29153
|
createIsNestedEqual: function() {
|
|
29080
29154
|
return f;
|
|
29081
29155
|
}
|
|
29082
29156
|
}));
|
|
29083
|
-
function
|
|
29084
|
-
return
|
|
29157
|
+
function bW(e3, r3) {
|
|
29158
|
+
return yW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29085
29159
|
}
|
|
29086
|
-
function
|
|
29160
|
+
function xW(e3) {
|
|
29087
29161
|
return T(l(q, e3(q)));
|
|
29088
29162
|
}
|
|
29089
|
-
function
|
|
29090
|
-
var r3 = T(l(
|
|
29163
|
+
function SW(e3) {
|
|
29164
|
+
var r3 = T(l(pW, e3(pW)));
|
|
29091
29165
|
return (function(e4, c2, l2) {
|
|
29092
29166
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29093
29167
|
});
|
|
29094
29168
|
}
|
|
29095
|
-
e2.circularDeepEqual =
|
|
29169
|
+
e2.circularDeepEqual = vW, e2.circularShallowEqual = bW, e2.createCustomCircularEqual = SW, e2.createCustomEqual = xW, e2.deepEqual = Z, e2.sameValueZeroEqual = f, e2.shallowEqual = gW, Object.defineProperty(e2, "__esModule", {
|
|
29096
29170
|
value: true
|
|
29097
29171
|
});
|
|
29098
29172
|
}));
|
|
@@ -29118,7 +29192,7 @@ ${c}
|
|
|
29118
29192
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
29119
29193
|
Object.defineProperty(e, "__esModule", {
|
|
29120
29194
|
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 =
|
|
29195
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = OW, 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 = bW, e.setTopLeft = SW, e.setTransform = xW, e.sortLayoutItems = CW, e.sortLayoutItemsByColRow = TW, e.sortLayoutItemsByRowCol = wW, e.synchronizeLayoutWithChildren = EW, e.validateLayout = DW, e.withLayoutItem = v;
|
|
29122
29196
|
var r = require_fast_equals(), c = l(require_react());
|
|
29123
29197
|
function l(e2) {
|
|
29124
29198
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -29223,7 +29297,7 @@ ${c}
|
|
|
29223
29297
|
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
29298
|
}
|
|
29225
29299
|
function T(e2, r2, c2, l2) {
|
|
29226
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
29300
|
+
let u2 = B(e2), d2 = h(u2), f2 = CW(e2, r2), p2 = Array(e2.length);
|
|
29227
29301
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
29228
29302
|
let h3 = y(f2[m2]);
|
|
29229
29303
|
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 +29355,7 @@ ${c}
|
|
|
29281
29355
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
29282
29356
|
let h2 = r2.x, _2 = r2.y;
|
|
29283
29357
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
29284
|
-
let v2 =
|
|
29358
|
+
let v2 = CW(e2, f2);
|
|
29285
29359
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
29286
29360
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
29287
29361
|
if (b2 && m2) return g(e2);
|
|
@@ -29315,61 +29389,61 @@ ${c}
|
|
|
29315
29389
|
function G(e2) {
|
|
29316
29390
|
return e2 * 100 + "%";
|
|
29317
29391
|
}
|
|
29318
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
29392
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, pW = (e2, r2, c2) => e2 < 0 ? r2 : c2, mW = (e2) => Math.max(0, e2), Z = (e2) => Math.max(0, e2), hW = (e2, r2, c2) => {
|
|
29319
29393
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29320
29394
|
return {
|
|
29321
29395
|
left: l2,
|
|
29322
29396
|
width: d2,
|
|
29323
|
-
height:
|
|
29324
|
-
top:
|
|
29397
|
+
height: pW(f2, e2.height, u2),
|
|
29398
|
+
top: Z(f2)
|
|
29325
29399
|
};
|
|
29326
|
-
},
|
|
29400
|
+
}, gW = (e2, r2, c2) => {
|
|
29327
29401
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29328
29402
|
return {
|
|
29329
29403
|
top: l2,
|
|
29330
29404
|
height: d2,
|
|
29331
29405
|
width: q(e2.left, e2.width, f2, c2),
|
|
29332
|
-
left:
|
|
29406
|
+
left: mW(u2)
|
|
29333
29407
|
};
|
|
29334
|
-
},
|
|
29408
|
+
}, _W = (e2, r2, c2) => {
|
|
29335
29409
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29336
29410
|
return {
|
|
29337
29411
|
height: u2,
|
|
29338
29412
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
29339
|
-
top:
|
|
29340
|
-
left:
|
|
29413
|
+
top: Z(l2),
|
|
29414
|
+
left: mW(f2)
|
|
29341
29415
|
};
|
|
29342
|
-
},
|
|
29416
|
+
}, vW = (e2, r2, c2) => {
|
|
29343
29417
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29344
29418
|
return {
|
|
29345
29419
|
width: f2,
|
|
29346
29420
|
left: u2,
|
|
29347
|
-
height:
|
|
29348
|
-
top:
|
|
29421
|
+
height: pW(l2, e2.height, d2),
|
|
29422
|
+
top: Z(l2)
|
|
29349
29423
|
};
|
|
29350
|
-
},
|
|
29351
|
-
n:
|
|
29424
|
+
}, yW = {
|
|
29425
|
+
n: hW,
|
|
29352
29426
|
ne: function() {
|
|
29353
|
-
return
|
|
29427
|
+
return hW(arguments.length <= 0 ? void 0 : arguments[0], gW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29354
29428
|
},
|
|
29355
|
-
e:
|
|
29429
|
+
e: gW,
|
|
29356
29430
|
se: function() {
|
|
29357
|
-
return
|
|
29431
|
+
return vW(arguments.length <= 0 ? void 0 : arguments[0], gW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29358
29432
|
},
|
|
29359
|
-
s:
|
|
29433
|
+
s: vW,
|
|
29360
29434
|
sw: function() {
|
|
29361
|
-
return
|
|
29435
|
+
return vW(arguments.length <= 0 ? void 0 : arguments[0], _W(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29362
29436
|
},
|
|
29363
|
-
w:
|
|
29437
|
+
w: _W,
|
|
29364
29438
|
nw: function() {
|
|
29365
|
-
return
|
|
29439
|
+
return hW(arguments.length <= 0 ? void 0 : arguments[0], _W(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29366
29440
|
}
|
|
29367
29441
|
};
|
|
29368
|
-
function
|
|
29369
|
-
let u2 =
|
|
29442
|
+
function bW(e2, r2, c2, l2) {
|
|
29443
|
+
let u2 = yW[e2];
|
|
29370
29444
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
29371
29445
|
}
|
|
29372
|
-
function
|
|
29446
|
+
function xW(e2) {
|
|
29373
29447
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
29374
29448
|
return {
|
|
29375
29449
|
transform: d2,
|
|
@@ -29382,7 +29456,7 @@ ${c}
|
|
|
29382
29456
|
position: "absolute"
|
|
29383
29457
|
};
|
|
29384
29458
|
}
|
|
29385
|
-
function
|
|
29459
|
+
function SW(e2) {
|
|
29386
29460
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
29387
29461
|
return {
|
|
29388
29462
|
top: `${r2}px`,
|
|
@@ -29392,20 +29466,20 @@ ${c}
|
|
|
29392
29466
|
position: "absolute"
|
|
29393
29467
|
};
|
|
29394
29468
|
}
|
|
29395
|
-
function
|
|
29396
|
-
return r2 === "horizontal" ?
|
|
29469
|
+
function CW(e2, r2) {
|
|
29470
|
+
return r2 === "horizontal" ? TW(e2) : r2 === "vertical" ? wW(e2) : e2;
|
|
29397
29471
|
}
|
|
29398
|
-
function
|
|
29472
|
+
function wW(e2) {
|
|
29399
29473
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29400
29474
|
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
29475
|
});
|
|
29402
29476
|
}
|
|
29403
|
-
function
|
|
29477
|
+
function TW(e2) {
|
|
29404
29478
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29405
29479
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
29406
29480
|
});
|
|
29407
29481
|
}
|
|
29408
|
-
function
|
|
29482
|
+
function EW(e2, r2, l2, u2, f2) {
|
|
29409
29483
|
e2 || (e2 = []);
|
|
29410
29484
|
let p2 = [];
|
|
29411
29485
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -29426,7 +29500,7 @@ ${c}
|
|
|
29426
29500
|
});
|
|
29427
29501
|
return f2 ? m2 : T(m2, u2, l2);
|
|
29428
29502
|
}
|
|
29429
|
-
function
|
|
29503
|
+
function DW(e2) {
|
|
29430
29504
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
29431
29505
|
"x",
|
|
29432
29506
|
"y",
|
|
@@ -29443,7 +29517,7 @@ ${c}
|
|
|
29443
29517
|
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
29518
|
}
|
|
29445
29519
|
}
|
|
29446
|
-
function
|
|
29520
|
+
function OW(e2) {
|
|
29447
29521
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
29448
29522
|
return r2 === false ? null : c2;
|
|
29449
29523
|
}
|
|
@@ -32248,7 +32322,7 @@ ${c}
|
|
|
32248
32322
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32249
32323
|
let E = useIsDragging(), O, j;
|
|
32250
32324
|
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,
|
|
32325
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, pW, mW, Z, hW, gW, _W, vW, yW, bW, xW, SW, CW, wW, TW, EW, DW, OW;
|
|
32252
32326
|
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
32327
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
32254
32328
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32267,23 +32341,23 @@ ${c}
|
|
|
32267
32341
|
});
|
|
32268
32342
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
32269
32343
|
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,
|
|
32344
|
+
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, TW = "lg", r[58] === c.cells ? EW = r[59] : (EW = {
|
|
32271
32345
|
lg: c.cells
|
|
32272
|
-
}, r[58] = c.cells, r[59] =
|
|
32346
|
+
}, r[58] = c.cells, r[59] = EW), DW = L, OW = S, R = false;
|
|
32273
32347
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
32274
32348
|
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
32349
|
20,
|
|
32276
32350
|
20
|
|
32277
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
32351
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, pW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (mW = (e3) => {
|
|
32278
32352
|
f || l({
|
|
32279
32353
|
...c,
|
|
32280
32354
|
cells: e3
|
|
32281
32355
|
});
|
|
32282
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
32356
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = mW) : mW = r[69], r[70] === g ? Z = r[71] : (Z = g ? {
|
|
32283
32357
|
i: g.i,
|
|
32284
32358
|
w: g.w || 2,
|
|
32285
32359
|
h: g.h || 2
|
|
32286
|
-
} : void 0, r[70] = g, r[71] =
|
|
32360
|
+
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (hW = (e3, r2, u2) => {
|
|
32287
32361
|
O.onDragStop(), r2 && l({
|
|
32288
32362
|
...c,
|
|
32289
32363
|
cells: [
|
|
@@ -32291,21 +32365,22 @@ ${c}
|
|
|
32291
32365
|
r2
|
|
32292
32366
|
]
|
|
32293
32367
|
});
|
|
32294
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
32368
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = hW) : hW = r[75], r[76] === O ? (gW = r[77], _W = r[78], vW = r[79]) : (gW = (e3, r2, c2, l2, u2) => {
|
|
32295
32369
|
O.onDragStart(u2);
|
|
32296
|
-
},
|
|
32370
|
+
}, _W = (e3, r2, c2, l2, u2) => {
|
|
32297
32371
|
O.onDragMove(u2);
|
|
32298
|
-
},
|
|
32372
|
+
}, vW = () => {
|
|
32299
32373
|
O.onDragStop();
|
|
32300
|
-
}, r[76] = O, r[77] =
|
|
32374
|
+
}, r[76] = O, r[77] = gW, r[78] = _W, r[79] = vW), yW = _temp3$2, bW = M, xW = M, SW = M, CW = M ? `.${DRAG_HANDLE}` : "noop";
|
|
32301
32375
|
let E2;
|
|
32302
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
32376
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), wW = u.filter(E2).map((r2) => {
|
|
32303
32377
|
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
32378
|
code: r2.code,
|
|
32305
32379
|
mode: d,
|
|
32306
32380
|
cellId: r2.id,
|
|
32307
32381
|
output: r2.output,
|
|
32308
32382
|
status: r2.status,
|
|
32383
|
+
stale: outputIsStale(r2, false),
|
|
32309
32384
|
isScrollable: f2,
|
|
32310
32385
|
side: p,
|
|
32311
32386
|
hidden: r2.errored || r2.interrupted || r2.stopped
|
|
@@ -32328,14 +32403,14 @@ ${c}
|
|
|
32328
32403
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32329
32404
|
children: m3
|
|
32330
32405
|
}, 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:
|
|
32406
|
+
}), 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] = pW, r[31] = mW, r[32] = Z, 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] = OW;
|
|
32407
|
+
} 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], pW = r[30], mW = r[31], Z = r[32], hW = r[33], gW = r[34], _W = r[35], vW = r[36], yW = r[37], bW = r[38], xW = r[39], SW = r[40], CW = r[41], wW = r[42], TW = r[43], EW = r[44], DW = r[45], OW = r[46];
|
|
32408
|
+
let kW;
|
|
32409
|
+
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] !== pW || r[91] !== mW || r[92] !== Z || r[93] !== hW || r[94] !== gW || r[95] !== _W || r[96] !== vW || r[97] !== yW || r[98] !== bW || r[99] !== xW || r[100] !== SW || r[101] !== CW || r[102] !== wW || r[103] !== TW || r[104] !== EW || r[105] !== DW || r[106] !== OW ? (kW = (0, import_jsx_runtime.jsx)(I, {
|
|
32410
|
+
breakpoint: TW,
|
|
32411
|
+
layouts: EW,
|
|
32412
|
+
style: DW,
|
|
32413
|
+
cols: OW,
|
|
32339
32414
|
allowOverlap: R,
|
|
32340
32415
|
className: z,
|
|
32341
32416
|
containerPadding: B,
|
|
@@ -32343,23 +32418,23 @@ ${c}
|
|
|
32343
32418
|
isBounded: W,
|
|
32344
32419
|
compactType: G,
|
|
32345
32420
|
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
|
-
|
|
32421
|
+
rowHeight: pW,
|
|
32422
|
+
onLayoutChange: mW,
|
|
32423
|
+
droppingItem: Z,
|
|
32424
|
+
onDrop: hW,
|
|
32425
|
+
onDragStart: gW,
|
|
32426
|
+
onDrag: _W,
|
|
32427
|
+
onDragStop: vW,
|
|
32428
|
+
onResizeStop: yW,
|
|
32429
|
+
isDraggable: bW,
|
|
32430
|
+
isDroppable: xW,
|
|
32431
|
+
isResizable: SW,
|
|
32432
|
+
draggableHandle: CW,
|
|
32433
|
+
children: wW
|
|
32434
|
+
}), 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] = pW, r[91] = mW, r[92] = Z, r[93] = hW, r[94] = gW, r[95] = _W, r[96] = vW, r[97] = yW, r[98] = bW, r[99] = xW, r[100] = SW, r[101] = CW, r[102] = wW, r[103] = TW, r[104] = EW, r[105] = DW, r[106] = OW, r[107] = kW) : kW = r[107];
|
|
32435
|
+
let AW = kW, jW, MW, NW, PW, FW, IW, LW;
|
|
32436
|
+
if (r[108] !== u || r[109] !== AW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
32437
|
+
LW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
32363
32438
|
bb0: {
|
|
32364
32439
|
let e2;
|
|
32365
32440
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -32367,14 +32442,14 @@ ${c}
|
|
|
32367
32442
|
if (f) {
|
|
32368
32443
|
if (c.bordered) {
|
|
32369
32444
|
let e4;
|
|
32370
|
-
r[127] !==
|
|
32445
|
+
r[127] !== AW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
32371
32446
|
className: "flex flex-1 flex-col items-center",
|
|
32372
32447
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
32373
32448
|
style: L,
|
|
32374
32449
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
32375
|
-
children:
|
|
32450
|
+
children: AW
|
|
32376
32451
|
})
|
|
32377
|
-
}), r[127] =
|
|
32452
|
+
}), r[127] = AW, r[128] = L, r[129] = e4) : e4 = r[129], AW = e4;
|
|
32378
32453
|
}
|
|
32379
32454
|
let e3 = m2.filter(_temp4$2), l2;
|
|
32380
32455
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -32383,11 +32458,12 @@ ${c}
|
|
|
32383
32458
|
cellId: e4.id,
|
|
32384
32459
|
output: e4.output,
|
|
32385
32460
|
status: e4.status,
|
|
32461
|
+
stale: outputIsStale(e4, false),
|
|
32386
32462
|
isScrollable: false,
|
|
32387
32463
|
hidden: false
|
|
32388
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
32464
|
+
}, e4.id), r[130] = d, r[131] = l2), LW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32389
32465
|
children: [
|
|
32390
|
-
|
|
32466
|
+
AW,
|
|
32391
32467
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32392
32468
|
className: "hidden",
|
|
32393
32469
|
children: e3.map(l2)
|
|
@@ -32398,31 +32474,31 @@ ${c}
|
|
|
32398
32474
|
}
|
|
32399
32475
|
if (c.bordered) {
|
|
32400
32476
|
let e3;
|
|
32401
|
-
r[132] ===
|
|
32477
|
+
r[132] === AW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
32402
32478
|
className: "h-full overflow-auto",
|
|
32403
|
-
children:
|
|
32404
|
-
}), r[132] =
|
|
32479
|
+
children: AW
|
|
32480
|
+
}), r[132] = AW, r[133] = e3);
|
|
32405
32481
|
let c2;
|
|
32406
32482
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32407
32483
|
style: L,
|
|
32408
32484
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
32409
32485
|
children: e3
|
|
32410
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
32486
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], AW = c2;
|
|
32411
32487
|
}
|
|
32412
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
32488
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (IW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
32413
32489
|
layout: c,
|
|
32414
32490
|
setLayout: l,
|
|
32415
32491
|
isLocked: v,
|
|
32416
32492
|
setIsLocked: y
|
|
32417
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
32493
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = IW) : IW = r[140];
|
|
32418
32494
|
let g2;
|
|
32419
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32495
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (PW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = PW, r[142] = g2) : (PW = r[141], g2 = r[142]), r[143] === AW ? FW = r[144] : (FW = (0, import_jsx_runtime.jsx)("div", {
|
|
32420
32496
|
className: g2,
|
|
32421
|
-
children:
|
|
32422
|
-
}), r[143] =
|
|
32497
|
+
children: AW
|
|
32498
|
+
}), r[143] = AW, r[144] = FW), jW = "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") ? (MW = (0, import_jsx_runtime.jsx)("div", {
|
|
32423
32499
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
32424
32500
|
children: "Outputs"
|
|
32425
|
-
}), r[145] =
|
|
32501
|
+
}), r[145] = MW) : MW = r[145];
|
|
32426
32502
|
let b2;
|
|
32427
32503
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
32428
32504
|
draggable: true,
|
|
@@ -32445,41 +32521,42 @@ ${c}
|
|
|
32445
32521
|
output: e3.output,
|
|
32446
32522
|
isScrollable: false,
|
|
32447
32523
|
status: e3.status,
|
|
32524
|
+
stale: outputIsStale(e3, false),
|
|
32448
32525
|
hidden: false
|
|
32449
32526
|
})
|
|
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:
|
|
32527
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], NW = m2.map(b2);
|
|
32528
|
+
}
|
|
32529
|
+
r[108] = u, r[109] = AW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = jW, r[118] = MW, r[119] = NW, r[120] = PW, r[121] = FW, r[122] = IW, r[123] = LW, r[124] = AW;
|
|
32530
|
+
} else jW = r[117], MW = r[118], NW = r[119], PW = r[120], FW = r[121], IW = r[122], LW = r[123], AW = r[124];
|
|
32531
|
+
if (LW !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return LW;
|
|
32532
|
+
let RW;
|
|
32533
|
+
r[150] !== jW || r[151] !== MW || r[152] !== NW ? (RW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32534
|
+
className: jW,
|
|
32458
32535
|
children: [
|
|
32459
|
-
|
|
32460
|
-
|
|
32536
|
+
MW,
|
|
32537
|
+
NW
|
|
32461
32538
|
]
|
|
32462
|
-
}), r[150] =
|
|
32463
|
-
let
|
|
32464
|
-
r[154] !==
|
|
32465
|
-
className:
|
|
32539
|
+
}), r[150] = jW, r[151] = MW, r[152] = NW, r[153] = RW) : RW = r[153];
|
|
32540
|
+
let zW;
|
|
32541
|
+
r[154] !== PW || r[155] !== FW || r[156] !== RW ? (zW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32542
|
+
className: PW,
|
|
32466
32543
|
children: [
|
|
32467
|
-
|
|
32468
|
-
|
|
32544
|
+
FW,
|
|
32545
|
+
RW
|
|
32469
32546
|
]
|
|
32470
|
-
}), r[154] =
|
|
32471
|
-
let
|
|
32472
|
-
return r[158] !==
|
|
32547
|
+
}), r[154] = PW, r[155] = FW, r[156] = RW, r[157] = zW) : zW = r[157];
|
|
32548
|
+
let BW;
|
|
32549
|
+
return r[158] !== IW || r[159] !== zW ? (BW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32473
32550
|
children: [
|
|
32474
|
-
|
|
32475
|
-
|
|
32551
|
+
IW,
|
|
32552
|
+
zW
|
|
32476
32553
|
]
|
|
32477
|
-
}), r[158] =
|
|
32554
|
+
}), r[158] = IW, r[159] = zW, r[160] = BW) : BW = r[160], BW;
|
|
32478
32555
|
};
|
|
32479
32556
|
var GridCell = (0, import_react.memo)((e) => {
|
|
32480
|
-
let r = (0, import_compiler_runtime$13.c)(
|
|
32481
|
-
r[0] === u ?
|
|
32482
|
-
let
|
|
32557
|
+
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;
|
|
32558
|
+
r[0] === u ? y = r[1] : (y = outputIsLoading(u), r[0] = u, r[1] = y);
|
|
32559
|
+
let b = y;
|
|
32483
32560
|
if ((c == null || c.data === "") && d !== "read") {
|
|
32484
32561
|
let e2;
|
|
32485
32562
|
return r[2] !== _ || r[3] !== f ? (e2 = (0, import_jsx_runtime.jsx)(TinyCode, {
|
|
@@ -32487,21 +32564,21 @@ ${c}
|
|
|
32487
32564
|
code: f
|
|
32488
32565
|
}), r[2] = _, r[3] = f, r[4] = e2) : e2 = r[4], e2;
|
|
32489
32566
|
}
|
|
32490
|
-
let
|
|
32491
|
-
r[5] !== _ || r[6] !==
|
|
32492
|
-
let
|
|
32493
|
-
r[13] !== l || r[14] !==
|
|
32567
|
+
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;
|
|
32568
|
+
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];
|
|
32569
|
+
let I;
|
|
32570
|
+
r[13] !== l || r[14] !== b || r[15] !== c || r[16] !== v ? (I = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
32494
32571
|
allowExpand: false,
|
|
32495
32572
|
output: c,
|
|
32496
32573
|
cellId: l,
|
|
32497
|
-
stale:
|
|
32498
|
-
loading:
|
|
32499
|
-
}), r[13] = l, r[14] =
|
|
32500
|
-
let
|
|
32501
|
-
return r[
|
|
32502
|
-
className:
|
|
32503
|
-
children:
|
|
32504
|
-
}), r[
|
|
32574
|
+
stale: v,
|
|
32575
|
+
loading: b
|
|
32576
|
+
}), r[13] = l, r[14] = b, r[15] = c, r[16] = v, r[17] = I) : I = r[17];
|
|
32577
|
+
let L;
|
|
32578
|
+
return r[18] !== M || r[19] !== I ? (L = (0, import_jsx_runtime.jsx)("div", {
|
|
32579
|
+
className: M,
|
|
32580
|
+
children: I
|
|
32581
|
+
}), r[18] = M, r[19] = I, r[20] = L) : L = r[20], L;
|
|
32505
32582
|
});
|
|
32506
32583
|
GridCell.displayName = "GridCell";
|
|
32507
32584
|
var GridControls = (e) => {
|
|
@@ -32775,25 +32852,25 @@ ${c}
|
|
|
32775
32852
|
G
|
|
32776
32853
|
]
|
|
32777
32854
|
}), 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") ? (
|
|
32855
|
+
let pW;
|
|
32856
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32780
32857
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32781
|
-
}), r[35] =
|
|
32782
|
-
let
|
|
32783
|
-
r[36] === l ?
|
|
32858
|
+
}), r[35] = pW) : pW = r[35];
|
|
32859
|
+
let mW;
|
|
32860
|
+
r[36] === l ? mW = r[37] : (mW = (0, import_jsx_runtime.jsx)(X, {
|
|
32784
32861
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
32785
32862
|
onClick: () => l()
|
|
32786
|
-
}), r[36] = l, r[37] =
|
|
32787
|
-
let
|
|
32788
|
-
return r[38] !== I || r[39] !== q || r[40] !==
|
|
32863
|
+
}), r[36] = l, r[37] = mW);
|
|
32864
|
+
let Z;
|
|
32865
|
+
return r[38] !== I || r[39] !== q || r[40] !== mW || r[41] !== w ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
32789
32866
|
className: w,
|
|
32790
32867
|
children: [
|
|
32791
32868
|
I,
|
|
32792
32869
|
q,
|
|
32793
|
-
|
|
32794
|
-
|
|
32870
|
+
pW,
|
|
32871
|
+
mW
|
|
32795
32872
|
]
|
|
32796
|
-
}), r[38] = I, r[39] = q, r[40] =
|
|
32873
|
+
}), r[38] = I, r[39] = q, r[40] = mW, r[41] = w, r[42] = Z) : Z = r[42], Z;
|
|
32797
32874
|
};
|
|
32798
32875
|
function isSidebarCell(e) {
|
|
32799
32876
|
var _a3;
|
|
@@ -34797,31 +34874,31 @@ ${c}
|
|
|
34797
34874
|
}, [
|
|
34798
34875
|
T,
|
|
34799
34876
|
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),
|
|
34877
|
+
]), 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), pW = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34801
34878
|
j
|
|
34802
|
-
]),
|
|
34879
|
+
]), mW = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers: hW, measuringScheduled: gW } = useDroppableMeasuring(pW, {
|
|
34803
34880
|
dragging: w,
|
|
34804
34881
|
dependencies: [
|
|
34805
34882
|
O.x,
|
|
34806
34883
|
O.y
|
|
34807
34884
|
],
|
|
34808
|
-
config:
|
|
34809
|
-
}),
|
|
34885
|
+
config: mW.droppable
|
|
34886
|
+
}), _W = useCachedNode(E, T), vW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34810
34887
|
H
|
|
34811
|
-
]),
|
|
34888
|
+
]), yW = XW(), bW = useInitialRect(_W, mW.draggable.measure);
|
|
34812
34889
|
useLayoutShiftScrollCompensation({
|
|
34813
34890
|
activeNode: T == null ? null : E.get(T),
|
|
34814
|
-
config:
|
|
34815
|
-
initialRect:
|
|
34816
|
-
measure:
|
|
34891
|
+
config: yW.layoutShiftCompensation,
|
|
34892
|
+
initialRect: bW,
|
|
34893
|
+
measure: mW.draggable.measure
|
|
34817
34894
|
});
|
|
34818
|
-
let
|
|
34895
|
+
let xW = useRect(_W, mW.draggable.measure, bW), SW = useRect(_W ? _W.parentElement : null), CW = (0, import_react.useRef)({
|
|
34819
34896
|
activatorEvent: null,
|
|
34820
34897
|
active: null,
|
|
34821
|
-
activeNode:
|
|
34898
|
+
activeNode: _W,
|
|
34822
34899
|
collisionRect: null,
|
|
34823
34900
|
collisions: null,
|
|
34824
|
-
droppableRects:
|
|
34901
|
+
droppableRects: Z,
|
|
34825
34902
|
draggableNodes: E,
|
|
34826
34903
|
draggingNode: null,
|
|
34827
34904
|
draggingNodeRect: null,
|
|
@@ -34829,45 +34906,45 @@ ${c}
|
|
|
34829
34906
|
over: null,
|
|
34830
34907
|
scrollableAncestors: [],
|
|
34831
34908
|
scrollAdjustedTranslate: null
|
|
34832
|
-
}),
|
|
34833
|
-
measure:
|
|
34834
|
-
}),
|
|
34909
|
+
}), wW = j.getNodeFor((_a3 = CW.current.over) == null ? void 0 : _a3.id), TW = useDragOverlayMeasuring({
|
|
34910
|
+
measure: mW.dragOverlay.measure
|
|
34911
|
+
}), EW = TW.nodeRef.current ?? _W, DW = w ? TW.rect ?? xW : null, OW = !!(TW.nodeRef.current && TW.rect), kW = useRectDelta(OW ? null : xW), AW = useWindowRect(EW ? getWindow(EW) : null), jW = useScrollableAncestors(w ? wW ?? _W : null), MW = useRects(jW), NW = applyModifiers(m, {
|
|
34835
34912
|
transform: {
|
|
34836
|
-
x: O.x -
|
|
34837
|
-
y: O.y -
|
|
34913
|
+
x: O.x - kW.x,
|
|
34914
|
+
y: O.y - kW.y,
|
|
34838
34915
|
scaleX: 1,
|
|
34839
34916
|
scaleY: 1
|
|
34840
34917
|
},
|
|
34841
34918
|
activatorEvent: H,
|
|
34842
34919
|
active: L,
|
|
34843
|
-
activeNodeRect:
|
|
34844
|
-
containerNodeRect:
|
|
34845
|
-
draggingNodeRect:
|
|
34846
|
-
over:
|
|
34847
|
-
overlayNodeRect:
|
|
34848
|
-
scrollableAncestors:
|
|
34849
|
-
scrollableAncestorRects:
|
|
34850
|
-
windowRect:
|
|
34851
|
-
}),
|
|
34852
|
-
|
|
34853
|
-
]),
|
|
34920
|
+
activeNodeRect: xW,
|
|
34921
|
+
containerNodeRect: SW,
|
|
34922
|
+
draggingNodeRect: DW,
|
|
34923
|
+
over: CW.current.over,
|
|
34924
|
+
overlayNodeRect: TW.rect,
|
|
34925
|
+
scrollableAncestors: jW,
|
|
34926
|
+
scrollableAncestorRects: MW,
|
|
34927
|
+
windowRect: AW
|
|
34928
|
+
}), PW = vW ? add(vW, O) : null, FW = useScrollOffsets(jW), IW = useScrollOffsetsDelta(FW), LW = useScrollOffsetsDelta(FW, [
|
|
34929
|
+
xW
|
|
34930
|
+
]), RW = add(NW, IW), zW = DW ? getAdjustedRect(DW, NW) : null, BW = L && zW ? f({
|
|
34854
34931
|
active: L,
|
|
34855
|
-
collisionRect:
|
|
34856
|
-
droppableRects:
|
|
34857
|
-
droppableContainers:
|
|
34858
|
-
pointerCoordinates:
|
|
34859
|
-
}) : null,
|
|
34932
|
+
collisionRect: zW,
|
|
34933
|
+
droppableRects: Z,
|
|
34934
|
+
droppableContainers: pW,
|
|
34935
|
+
pointerCoordinates: PW
|
|
34936
|
+
}) : null, VW = getFirstCollision(BW, "id"), [HW, UW] = (0, import_react.useState)(null), WW = adjustScale(OW ? NW : add(NW, LW), (HW == null ? void 0 : HW.rect) ?? null, xW), GW = (0, import_react.useRef)(null), KW = (0, import_react.useCallback)((e2, r2) => {
|
|
34860
34937
|
let { sensor: c2, options: l2 } = r2;
|
|
34861
34938
|
if (R.current == null) return;
|
|
34862
34939
|
let u2 = E.get(R.current);
|
|
34863
34940
|
if (!u2) return;
|
|
34864
34941
|
let d2 = e2.nativeEvent;
|
|
34865
|
-
|
|
34942
|
+
GW.current = new c2({
|
|
34866
34943
|
active: R.current,
|
|
34867
34944
|
activeNode: u2,
|
|
34868
34945
|
event: d2,
|
|
34869
34946
|
options: l2,
|
|
34870
|
-
context:
|
|
34947
|
+
context: CW,
|
|
34871
34948
|
onAbort(e3) {
|
|
34872
34949
|
if (!E.get(e3)) return;
|
|
34873
34950
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -34912,7 +34989,7 @@ ${c}
|
|
|
34912
34989
|
}), v({
|
|
34913
34990
|
type: "onDragStart",
|
|
34914
34991
|
event: u3
|
|
34915
|
-
}), B(
|
|
34992
|
+
}), B(GW.current), W(d2);
|
|
34916
34993
|
});
|
|
34917
34994
|
},
|
|
34918
34995
|
onMove(e3) {
|
|
@@ -34926,7 +35003,7 @@ ${c}
|
|
|
34926
35003
|
});
|
|
34927
35004
|
function f2(e3) {
|
|
34928
35005
|
return async function() {
|
|
34929
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
35006
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = CW.current, f3 = null;
|
|
34930
35007
|
if (r3 && u3) {
|
|
34931
35008
|
let { cancelDrop: p2 } = G.current;
|
|
34932
35009
|
f3 = {
|
|
@@ -34940,7 +35017,7 @@ ${c}
|
|
|
34940
35017
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34941
35018
|
_({
|
|
34942
35019
|
type: e3
|
|
34943
|
-
}), S(Status.Uninitialized),
|
|
35020
|
+
}), S(Status.Uninitialized), UW(null), B(null), W(null), GW.current = null;
|
|
34944
35021
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
34945
35022
|
if (f3) {
|
|
34946
35023
|
let e4 = G.current[r4];
|
|
@@ -34954,7 +35031,7 @@ ${c}
|
|
|
34954
35031
|
}
|
|
34955
35032
|
}, [
|
|
34956
35033
|
E
|
|
34957
|
-
]),
|
|
35034
|
+
]), qW = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
34958
35035
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
34959
35036
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
34960
35037
|
let f2 = {
|
|
@@ -34962,26 +35039,26 @@ ${c}
|
|
|
34962
35039
|
};
|
|
34963
35040
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
34964
35041
|
capturedBy: r2.sensor
|
|
34965
|
-
}, R.current = l2,
|
|
35042
|
+
}, R.current = l2, KW(c2, r2));
|
|
34966
35043
|
}, [
|
|
34967
35044
|
E,
|
|
34968
|
-
|
|
35045
|
+
KW
|
|
34969
35046
|
]));
|
|
34970
35047
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
34971
|
-
|
|
35048
|
+
xW && b === Status.Initializing && S(Status.Initialized);
|
|
34972
35049
|
}, [
|
|
34973
|
-
|
|
35050
|
+
xW,
|
|
34974
35051
|
b
|
|
34975
35052
|
]), (0, import_react.useEffect)(() => {
|
|
34976
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
35053
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = CW.current;
|
|
34977
35054
|
if (!r2 || !c2) return;
|
|
34978
35055
|
let d2 = {
|
|
34979
35056
|
active: r2,
|
|
34980
35057
|
activatorEvent: c2,
|
|
34981
35058
|
collisions: l2,
|
|
34982
35059
|
delta: {
|
|
34983
|
-
x:
|
|
34984
|
-
y:
|
|
35060
|
+
x: RW.x,
|
|
35061
|
+
y: RW.y
|
|
34985
35062
|
},
|
|
34986
35063
|
over: u2
|
|
34987
35064
|
};
|
|
@@ -34992,12 +35069,12 @@ ${c}
|
|
|
34992
35069
|
});
|
|
34993
35070
|
});
|
|
34994
35071
|
}, [
|
|
34995
|
-
|
|
34996
|
-
|
|
35072
|
+
RW.x,
|
|
35073
|
+
RW.y
|
|
34997
35074
|
]), (0, import_react.useEffect)(() => {
|
|
34998
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
35075
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = CW.current;
|
|
34999
35076
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
35000
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
35077
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(VW), p2 = f2 && f2.rect.current ? {
|
|
35001
35078
|
id: f2.id,
|
|
35002
35079
|
rect: f2.rect.current,
|
|
35003
35080
|
data: f2.data,
|
|
@@ -35013,127 +35090,127 @@ ${c}
|
|
|
35013
35090
|
over: p2
|
|
35014
35091
|
};
|
|
35015
35092
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
35016
|
-
|
|
35093
|
+
UW(p2), d2 == null ? void 0 : d2(m2), v({
|
|
35017
35094
|
type: "onDragOver",
|
|
35018
35095
|
event: m2
|
|
35019
35096
|
});
|
|
35020
35097
|
});
|
|
35021
35098
|
}, [
|
|
35022
|
-
|
|
35099
|
+
VW
|
|
35023
35100
|
]), useIsomorphicLayoutEffect(() => {
|
|
35024
|
-
|
|
35101
|
+
CW.current = {
|
|
35025
35102
|
activatorEvent: H,
|
|
35026
35103
|
active: L,
|
|
35027
|
-
activeNode:
|
|
35028
|
-
collisionRect:
|
|
35029
|
-
collisions:
|
|
35030
|
-
droppableRects:
|
|
35104
|
+
activeNode: _W,
|
|
35105
|
+
collisionRect: zW,
|
|
35106
|
+
collisions: BW,
|
|
35107
|
+
droppableRects: Z,
|
|
35031
35108
|
draggableNodes: E,
|
|
35032
|
-
draggingNode:
|
|
35033
|
-
draggingNodeRect:
|
|
35109
|
+
draggingNode: EW,
|
|
35110
|
+
draggingNodeRect: DW,
|
|
35034
35111
|
droppableContainers: j,
|
|
35035
|
-
over:
|
|
35036
|
-
scrollableAncestors:
|
|
35037
|
-
scrollAdjustedTranslate:
|
|
35112
|
+
over: HW,
|
|
35113
|
+
scrollableAncestors: jW,
|
|
35114
|
+
scrollAdjustedTranslate: RW
|
|
35038
35115
|
}, I.current = {
|
|
35039
|
-
initial:
|
|
35040
|
-
translated:
|
|
35116
|
+
initial: DW,
|
|
35117
|
+
translated: zW
|
|
35041
35118
|
};
|
|
35042
35119
|
}, [
|
|
35043
35120
|
L,
|
|
35044
|
-
|
|
35045
|
-
|
|
35046
|
-
|
|
35121
|
+
_W,
|
|
35122
|
+
BW,
|
|
35123
|
+
zW,
|
|
35047
35124
|
E,
|
|
35048
|
-
|
|
35049
|
-
|
|
35050
|
-
|
|
35125
|
+
EW,
|
|
35126
|
+
DW,
|
|
35127
|
+
Z,
|
|
35051
35128
|
j,
|
|
35052
|
-
|
|
35053
|
-
|
|
35054
|
-
|
|
35129
|
+
HW,
|
|
35130
|
+
jW,
|
|
35131
|
+
RW
|
|
35055
35132
|
]), useAutoScroller({
|
|
35056
|
-
...
|
|
35133
|
+
...yW,
|
|
35057
35134
|
delta: O,
|
|
35058
|
-
draggingRect:
|
|
35059
|
-
pointerCoordinates:
|
|
35060
|
-
scrollableAncestors:
|
|
35061
|
-
scrollableAncestorRects:
|
|
35135
|
+
draggingRect: zW,
|
|
35136
|
+
pointerCoordinates: PW,
|
|
35137
|
+
scrollableAncestors: jW,
|
|
35138
|
+
scrollableAncestorRects: MW
|
|
35062
35139
|
});
|
|
35063
|
-
let
|
|
35140
|
+
let JW = (0, import_react.useMemo)(() => ({
|
|
35064
35141
|
active: L,
|
|
35065
|
-
activeNode:
|
|
35066
|
-
activeNodeRect:
|
|
35142
|
+
activeNode: _W,
|
|
35143
|
+
activeNodeRect: xW,
|
|
35067
35144
|
activatorEvent: H,
|
|
35068
|
-
collisions:
|
|
35069
|
-
containerNodeRect:
|
|
35070
|
-
dragOverlay:
|
|
35145
|
+
collisions: BW,
|
|
35146
|
+
containerNodeRect: SW,
|
|
35147
|
+
dragOverlay: TW,
|
|
35071
35148
|
draggableNodes: E,
|
|
35072
35149
|
droppableContainers: j,
|
|
35073
|
-
droppableRects:
|
|
35074
|
-
over:
|
|
35075
|
-
measureDroppableContainers:
|
|
35076
|
-
scrollableAncestors:
|
|
35077
|
-
scrollableAncestorRects:
|
|
35078
|
-
measuringConfiguration:
|
|
35079
|
-
measuringScheduled:
|
|
35080
|
-
windowRect:
|
|
35150
|
+
droppableRects: Z,
|
|
35151
|
+
over: HW,
|
|
35152
|
+
measureDroppableContainers: hW,
|
|
35153
|
+
scrollableAncestors: jW,
|
|
35154
|
+
scrollableAncestorRects: MW,
|
|
35155
|
+
measuringConfiguration: mW,
|
|
35156
|
+
measuringScheduled: gW,
|
|
35157
|
+
windowRect: AW
|
|
35081
35158
|
}), [
|
|
35082
35159
|
L,
|
|
35083
|
-
|
|
35084
|
-
|
|
35160
|
+
_W,
|
|
35161
|
+
xW,
|
|
35085
35162
|
H,
|
|
35086
|
-
|
|
35087
|
-
|
|
35088
|
-
|
|
35163
|
+
BW,
|
|
35164
|
+
SW,
|
|
35165
|
+
TW,
|
|
35089
35166
|
E,
|
|
35090
35167
|
j,
|
|
35091
|
-
eW,
|
|
35092
|
-
OW,
|
|
35093
|
-
tW,
|
|
35094
|
-
_W,
|
|
35095
|
-
vW,
|
|
35096
35168
|
Z,
|
|
35097
|
-
|
|
35098
|
-
|
|
35099
|
-
|
|
35169
|
+
HW,
|
|
35170
|
+
hW,
|
|
35171
|
+
jW,
|
|
35172
|
+
MW,
|
|
35173
|
+
mW,
|
|
35174
|
+
gW,
|
|
35175
|
+
AW
|
|
35176
|
+
]), YW = (0, import_react.useMemo)(() => ({
|
|
35100
35177
|
activatorEvent: H,
|
|
35101
|
-
activators:
|
|
35178
|
+
activators: qW,
|
|
35102
35179
|
active: L,
|
|
35103
|
-
activeNodeRect:
|
|
35180
|
+
activeNodeRect: xW,
|
|
35104
35181
|
ariaDescribedById: {
|
|
35105
35182
|
draggable: q
|
|
35106
35183
|
},
|
|
35107
35184
|
dispatch: _,
|
|
35108
35185
|
draggableNodes: E,
|
|
35109
|
-
over:
|
|
35110
|
-
measureDroppableContainers:
|
|
35186
|
+
over: HW,
|
|
35187
|
+
measureDroppableContainers: hW
|
|
35111
35188
|
}), [
|
|
35112
35189
|
H,
|
|
35113
|
-
|
|
35190
|
+
qW,
|
|
35114
35191
|
L,
|
|
35115
|
-
|
|
35192
|
+
xW,
|
|
35116
35193
|
_,
|
|
35117
35194
|
q,
|
|
35118
35195
|
E,
|
|
35119
|
-
|
|
35120
|
-
|
|
35196
|
+
HW,
|
|
35197
|
+
hW
|
|
35121
35198
|
]);
|
|
35122
35199
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
35123
35200
|
value: y
|
|
35124
35201
|
}, import_react.createElement(InternalContext.Provider, {
|
|
35125
|
-
value:
|
|
35202
|
+
value: YW
|
|
35126
35203
|
}, import_react.createElement(PublicContext.Provider, {
|
|
35127
|
-
value:
|
|
35204
|
+
value: JW
|
|
35128
35205
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
35129
|
-
value:
|
|
35206
|
+
value: WW
|
|
35130
35207
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
35131
35208
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35132
35209
|
})), import_react.createElement(Accessibility, {
|
|
35133
35210
|
...c,
|
|
35134
35211
|
hiddenTextDescribedById: q
|
|
35135
35212
|
}));
|
|
35136
|
-
function
|
|
35213
|
+
function XW() {
|
|
35137
35214
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
35138
35215
|
return typeof l == "object" ? {
|
|
35139
35216
|
...l,
|
|
@@ -35661,7 +35738,7 @@ ${c}
|
|
|
35661
35738
|
updateMeasurementsFor: I,
|
|
35662
35739
|
...m
|
|
35663
35740
|
}
|
|
35664
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
35741
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: pW, listeners: mW, isDragging: Z, over: hW, setActivatorNodeRef: gW, transform: _W } = useDraggable({
|
|
35665
35742
|
id: f,
|
|
35666
35743
|
data: M,
|
|
35667
35744
|
attributes: {
|
|
@@ -35669,60 +35746,60 @@ ${c}
|
|
|
35669
35746
|
...c
|
|
35670
35747
|
},
|
|
35671
35748
|
disabled: O.draggable
|
|
35672
|
-
}),
|
|
35749
|
+
}), vW = useCombinedRefs(B, pW), yW = !!H, bW = yW && !b && isValidIndex(v) && isValidIndex(w), xW = !T && Z, SW = bW ? (xW && bW ? _W : null) ?? (p ?? E)({
|
|
35673
35750
|
rects: S,
|
|
35674
35751
|
activeNodeRect: G,
|
|
35675
35752
|
activeIndex: v,
|
|
35676
35753
|
overIndex: w,
|
|
35677
35754
|
index: j
|
|
35678
|
-
}) : null,
|
|
35755
|
+
}) : null, CW = isValidIndex(v) && isValidIndex(w) ? d({
|
|
35679
35756
|
id: f,
|
|
35680
35757
|
items: g,
|
|
35681
35758
|
activeIndex: v,
|
|
35682
35759
|
overIndex: w
|
|
35683
|
-
}) : j,
|
|
35684
|
-
activeId:
|
|
35760
|
+
}) : j, wW = H == null ? void 0 : H.id, TW = (0, import_react.useRef)({
|
|
35761
|
+
activeId: wW,
|
|
35685
35762
|
items: g,
|
|
35686
|
-
newIndex:
|
|
35763
|
+
newIndex: CW,
|
|
35687
35764
|
containerId: _
|
|
35688
|
-
}),
|
|
35765
|
+
}), EW = g !== TW.current.items, DW = r({
|
|
35689
35766
|
active: H,
|
|
35690
35767
|
containerId: _,
|
|
35691
|
-
isDragging:
|
|
35692
|
-
isSorting:
|
|
35768
|
+
isDragging: Z,
|
|
35769
|
+
isSorting: yW,
|
|
35693
35770
|
id: f,
|
|
35694
35771
|
index: j,
|
|
35695
35772
|
items: g,
|
|
35696
|
-
newIndex:
|
|
35697
|
-
previousItems:
|
|
35698
|
-
previousContainerId:
|
|
35773
|
+
newIndex: TW.current.newIndex,
|
|
35774
|
+
previousItems: TW.current.items,
|
|
35775
|
+
previousContainerId: TW.current.containerId,
|
|
35699
35776
|
transition: h,
|
|
35700
|
-
wasDragging:
|
|
35701
|
-
}),
|
|
35702
|
-
disabled: !
|
|
35777
|
+
wasDragging: TW.current.activeId != null
|
|
35778
|
+
}), OW = useDerivedTransform({
|
|
35779
|
+
disabled: !DW,
|
|
35703
35780
|
index: j,
|
|
35704
35781
|
node: R,
|
|
35705
35782
|
rect: L
|
|
35706
35783
|
});
|
|
35707
35784
|
return (0, import_react.useEffect)(() => {
|
|
35708
|
-
|
|
35785
|
+
yW && TW.current.newIndex !== CW && (TW.current.newIndex = CW), _ !== TW.current.containerId && (TW.current.containerId = _), g !== TW.current.items && (TW.current.items = g);
|
|
35709
35786
|
}, [
|
|
35710
|
-
|
|
35711
|
-
|
|
35787
|
+
yW,
|
|
35788
|
+
CW,
|
|
35712
35789
|
_,
|
|
35713
35790
|
g
|
|
35714
35791
|
]), (0, import_react.useEffect)(() => {
|
|
35715
|
-
if (
|
|
35716
|
-
if (
|
|
35717
|
-
|
|
35792
|
+
if (wW === TW.current.activeId) return;
|
|
35793
|
+
if (wW != null && TW.current.activeId == null) {
|
|
35794
|
+
TW.current.activeId = wW;
|
|
35718
35795
|
return;
|
|
35719
35796
|
}
|
|
35720
35797
|
let e2 = setTimeout(() => {
|
|
35721
|
-
|
|
35798
|
+
TW.current.activeId = wW;
|
|
35722
35799
|
}, 50);
|
|
35723
35800
|
return () => clearTimeout(e2);
|
|
35724
35801
|
}, [
|
|
35725
|
-
|
|
35802
|
+
wW
|
|
35726
35803
|
]), {
|
|
35727
35804
|
active: H,
|
|
35728
35805
|
activeIndex: v,
|
|
@@ -35730,25 +35807,25 @@ ${c}
|
|
|
35730
35807
|
data: M,
|
|
35731
35808
|
rect: L,
|
|
35732
35809
|
index: j,
|
|
35733
|
-
newIndex:
|
|
35810
|
+
newIndex: CW,
|
|
35734
35811
|
items: g,
|
|
35735
35812
|
isOver: z,
|
|
35736
|
-
isSorting:
|
|
35737
|
-
isDragging:
|
|
35738
|
-
listeners:
|
|
35813
|
+
isSorting: yW,
|
|
35814
|
+
isDragging: Z,
|
|
35815
|
+
listeners: mW,
|
|
35739
35816
|
node: R,
|
|
35740
35817
|
overIndex: w,
|
|
35741
|
-
over:
|
|
35742
|
-
setNodeRef:
|
|
35743
|
-
setActivatorNodeRef:
|
|
35818
|
+
over: hW,
|
|
35819
|
+
setNodeRef: vW,
|
|
35820
|
+
setActivatorNodeRef: gW,
|
|
35744
35821
|
setDroppableNodeRef: B,
|
|
35745
|
-
setDraggableNodeRef:
|
|
35746
|
-
transform:
|
|
35747
|
-
transition:
|
|
35822
|
+
setDraggableNodeRef: pW,
|
|
35823
|
+
transform: OW ?? SW,
|
|
35824
|
+
transition: kW()
|
|
35748
35825
|
};
|
|
35749
|
-
function
|
|
35750
|
-
if (
|
|
35751
|
-
if (!(
|
|
35826
|
+
function kW() {
|
|
35827
|
+
if (OW || EW && TW.current.newIndex === j) return disabledTransition;
|
|
35828
|
+
if (!(xW && !isKeyboardEvent(W) || !h) && (yW || DW)) return CSS$1.Transition.toString({
|
|
35752
35829
|
...h,
|
|
35753
35830
|
property: transitionProperty
|
|
35754
35831
|
});
|
|
@@ -36048,15 +36125,15 @@ ${c}
|
|
|
36048
36125
|
G
|
|
36049
36126
|
]
|
|
36050
36127
|
}), 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] ===
|
|
36128
|
+
let pW = q;
|
|
36129
|
+
if (!v && !g) return pW;
|
|
36130
|
+
let mW;
|
|
36131
|
+
r[46] === pW ? mW = r[47] : (mW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
36055
36132
|
asChild: true,
|
|
36056
|
-
children:
|
|
36057
|
-
}), r[46] =
|
|
36058
|
-
let
|
|
36059
|
-
r[48] === v ?
|
|
36133
|
+
children: pW
|
|
36134
|
+
}), r[46] = pW, r[47] = mW);
|
|
36135
|
+
let Z;
|
|
36136
|
+
r[48] === v ? Z = r[49] : (Z = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36060
36137
|
onSelect: v,
|
|
36061
36138
|
children: [
|
|
36062
36139
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -36064,11 +36141,11 @@ ${c}
|
|
|
36064
36141
|
}),
|
|
36065
36142
|
"Add cell"
|
|
36066
36143
|
]
|
|
36067
|
-
}), r[48] = v, r[49] =
|
|
36068
|
-
let
|
|
36069
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
36070
|
-
let
|
|
36071
|
-
r[51] === g ?
|
|
36144
|
+
}), r[48] = v, r[49] = Z);
|
|
36145
|
+
let hW;
|
|
36146
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (hW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = hW) : hW = r[50];
|
|
36147
|
+
let gW;
|
|
36148
|
+
r[51] === g ? gW = r[52] : (gW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36072
36149
|
variant: "danger",
|
|
36073
36150
|
onSelect: g,
|
|
36074
36151
|
children: [
|
|
@@ -36077,22 +36154,22 @@ ${c}
|
|
|
36077
36154
|
}),
|
|
36078
36155
|
"Delete cell"
|
|
36079
36156
|
]
|
|
36080
|
-
}), r[51] = g, r[52] =
|
|
36081
|
-
let
|
|
36082
|
-
r[53] !==
|
|
36157
|
+
}), r[51] = g, r[52] = gW);
|
|
36158
|
+
let _W;
|
|
36159
|
+
r[53] !== Z || r[54] !== gW ? (_W = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
36083
36160
|
children: [
|
|
36084
|
-
|
|
36085
|
-
|
|
36086
|
-
|
|
36161
|
+
Z,
|
|
36162
|
+
hW,
|
|
36163
|
+
gW
|
|
36087
36164
|
]
|
|
36088
|
-
}), r[53] =
|
|
36089
|
-
let
|
|
36090
|
-
return r[56] !==
|
|
36165
|
+
}), r[53] = Z, r[54] = gW, r[55] = _W) : _W = r[55];
|
|
36166
|
+
let vW;
|
|
36167
|
+
return r[56] !== mW || r[57] !== _W ? (vW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
36091
36168
|
children: [
|
|
36092
|
-
|
|
36093
|
-
|
|
36169
|
+
mW,
|
|
36170
|
+
_W
|
|
36094
36171
|
]
|
|
36095
|
-
}), r[56] =
|
|
36172
|
+
}), r[56] = mW, r[57] = _W, r[58] = vW) : vW = r[58], vW;
|
|
36096
36173
|
}, InsertCellLine = (e) => {
|
|
36097
36174
|
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
36175
|
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 +36223,10 @@ ${c}
|
|
|
36146
36223
|
...B,
|
|
36147
36224
|
...h
|
|
36148
36225
|
}, 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 ? (
|
|
36226
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", pW = w && !T && "opacity-35", mW = T && "opacity-95 shadow-lg", Z;
|
|
36227
|
+
r[25] !== l || r[26] !== pW || r[27] !== mW || 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, pW, mW, l), r[25] = l, r[26] = pW, r[27] = mW, r[28] = q, r[29] = Z) : Z = r[29];
|
|
36228
|
+
let hW;
|
|
36229
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (hW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
36153
36230
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
36154
36231
|
style: {
|
|
36155
36232
|
transform: `scale(${I})`,
|
|
@@ -36162,16 +36239,17 @@ ${c}
|
|
|
36162
36239
|
}) : (0, import_jsx_runtime.jsx)(Slide, {
|
|
36163
36240
|
cellId: c.id,
|
|
36164
36241
|
status: c.status,
|
|
36165
|
-
output: c.output
|
|
36242
|
+
output: c.output,
|
|
36243
|
+
stale: outputIsStale(c, false)
|
|
36166
36244
|
})
|
|
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 ?
|
|
36245
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = hW) : hW = r[36];
|
|
36246
|
+
let gW;
|
|
36247
|
+
r[37] === z ? gW = r[38] : (gW = z && (0, import_jsx_runtime.jsx)("div", {
|
|
36170
36248
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
36171
36249
|
"aria-hidden": true
|
|
36172
|
-
}), r[37] = z, r[38] =
|
|
36173
|
-
let
|
|
36174
|
-
r[39] !== z || r[40] !== R ? (
|
|
36250
|
+
}), r[37] = z, r[38] = gW);
|
|
36251
|
+
let _W;
|
|
36252
|
+
r[39] !== z || r[40] !== R ? (_W = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
36175
36253
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
36176
36254
|
className: "text-xs opacity-80",
|
|
36177
36255
|
children: R.description
|
|
@@ -36183,19 +36261,19 @@ ${c}
|
|
|
36183
36261
|
className: "h-3.5 w-3.5"
|
|
36184
36262
|
})
|
|
36185
36263
|
})
|
|
36186
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
36187
|
-
let
|
|
36188
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
36264
|
+
}), r[39] = z, r[40] = R, r[41] = _W) : _W = r[41];
|
|
36265
|
+
let vW;
|
|
36266
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !== hW || r[47] !== gW || r[48] !== _W ? (vW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36189
36267
|
ref: f,
|
|
36190
|
-
className:
|
|
36268
|
+
className: Z,
|
|
36191
36269
|
style: W,
|
|
36192
36270
|
...d,
|
|
36193
36271
|
children: [
|
|
36194
|
-
|
|
36195
|
-
|
|
36196
|
-
|
|
36272
|
+
hW,
|
|
36273
|
+
gW,
|
|
36274
|
+
_W
|
|
36197
36275
|
]
|
|
36198
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
36276
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] = hW, r[47] = gW, r[48] = _W, r[49] = vW) : vW = r[49], vW;
|
|
36199
36277
|
}, MiniCodePreview = (e) => {
|
|
36200
36278
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
36201
36279
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -36235,7 +36313,7 @@ ${c}
|
|
|
36235
36313
|
function _temp2$2(e) {
|
|
36236
36314
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
36237
36315
|
}
|
|
36238
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36316
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-DxTNjwZw.js"));
|
|
36239
36317
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36240
36318
|
var _a3;
|
|
36241
36319
|
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 +36691,7 @@ ${c}
|
|
|
36613
36691
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36614
36692
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36615
36693
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36616
|
-
let H, W, G, q,
|
|
36694
|
+
let H, W, G, q, pW, Z, hW, gW, _W, vW;
|
|
36617
36695
|
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
36696
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36619
36697
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36659,11 +36737,11 @@ ${c}
|
|
|
36659
36737
|
})
|
|
36660
36738
|
})
|
|
36661
36739
|
]
|
|
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] !==
|
|
36740
|
+
}), 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", pW = c, Z = R, hW = 0;
|
|
36741
|
+
let mW = y && "marimo-output-stale", yW2 = L ? "p-5" : "p-3";
|
|
36742
|
+
r[40] !== M || r[41] !== mW || r[42] !== yW2 ? (gW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", mW, yW2, M), r[40] = M, r[41] = mW, r[42] = yW2, r[43] = gW) : gW = r[43], r[44] === d ? _W = r[45] : (_W = d ? {
|
|
36665
36743
|
maxHeight: "none"
|
|
36666
|
-
} : void 0, r[44] = d, r[45] =
|
|
36744
|
+
} : void 0, r[44] = d, r[45] = _W), vW = e2.map((e3, r2) => {
|
|
36667
36745
|
if (e3.channel === "pdb") return null;
|
|
36668
36746
|
if (e3.channel === "stdin") {
|
|
36669
36747
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -36692,36 +36770,36 @@ ${c}
|
|
|
36692
36770
|
wrapText: l
|
|
36693
36771
|
})
|
|
36694
36772
|
}, 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 ? (
|
|
36773
|
+
}), 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] = pW, r[25] = Z, r[26] = hW, r[27] = gW, r[28] = _W, r[29] = vW;
|
|
36774
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], pW = r[24], Z = r[25], hW = r[26], gW = r[27], _W = r[28], vW = r[29];
|
|
36775
|
+
let yW;
|
|
36776
|
+
r[46] !== T || r[47] !== S ? (yW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36699
36777
|
value: S,
|
|
36700
36778
|
cellId: T,
|
|
36701
36779
|
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] !==
|
|
36780
|
+
}), r[46] = T, r[47] = S, r[48] = yW) : yW = r[48];
|
|
36781
|
+
let bW;
|
|
36782
|
+
r[49] !== yW || r[50] !== G || r[51] !== q || r[52] !== pW || r[53] !== Z || r[54] !== hW || r[55] !== gW || r[56] !== _W || r[57] !== vW ? (bW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36705
36783
|
title: G,
|
|
36706
36784
|
"data-testid": q,
|
|
36707
|
-
ref:
|
|
36785
|
+
ref: pW,
|
|
36708
36786
|
...Z,
|
|
36709
|
-
tabIndex:
|
|
36710
|
-
className:
|
|
36711
|
-
style:
|
|
36787
|
+
tabIndex: hW,
|
|
36788
|
+
className: gW,
|
|
36789
|
+
style: _W,
|
|
36712
36790
|
children: [
|
|
36713
|
-
|
|
36714
|
-
|
|
36791
|
+
vW,
|
|
36792
|
+
yW
|
|
36715
36793
|
]
|
|
36716
|
-
}), r[49] =
|
|
36717
|
-
let
|
|
36718
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
36794
|
+
}), r[49] = yW, r[50] = G, r[51] = q, r[52] = pW, r[53] = Z, r[54] = hW, r[55] = gW, r[56] = _W, r[57] = vW, r[58] = bW) : bW = r[58];
|
|
36795
|
+
let xW;
|
|
36796
|
+
return r[59] !== H || r[60] !== W || r[61] !== bW ? (xW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36719
36797
|
className: H,
|
|
36720
36798
|
children: [
|
|
36721
36799
|
W,
|
|
36722
|
-
|
|
36800
|
+
bW
|
|
36723
36801
|
]
|
|
36724
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
36802
|
+
}), r[59] = H, r[60] = W, r[61] = bW, r[62] = xW) : xW = r[62], xW;
|
|
36725
36803
|
}, StdInput = (e) => {
|
|
36726
36804
|
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
36805
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -36811,6 +36889,23 @@ ${c}
|
|
|
36811
36889
|
function _temp4$1(e) {
|
|
36812
36890
|
return processOutput(e);
|
|
36813
36891
|
}
|
|
36892
|
+
var markdownParser = new MarkdownParser(), sqlParser = new SQLParser();
|
|
36893
|
+
function getReadonlyCodeDisplay(e) {
|
|
36894
|
+
let r = e.trim();
|
|
36895
|
+
return r ? markdownParser.isSupported(r) ? {
|
|
36896
|
+
code: markdownParser.transformIn(r).code,
|
|
36897
|
+
language: "markdown"
|
|
36898
|
+
} : sqlParser.isSupported(r) ? {
|
|
36899
|
+
code: sqlParser.transformIn(r).code,
|
|
36900
|
+
language: "sql"
|
|
36901
|
+
} : {
|
|
36902
|
+
code: e,
|
|
36903
|
+
language: "python"
|
|
36904
|
+
} : {
|
|
36905
|
+
code: e,
|
|
36906
|
+
language: "python"
|
|
36907
|
+
};
|
|
36908
|
+
}
|
|
36814
36909
|
const kernelStateAtom = atom({
|
|
36815
36910
|
isInstantiated: false,
|
|
36816
36911
|
error: null
|
|
@@ -37114,7 +37209,7 @@ ${c}
|
|
|
37114
37209
|
})
|
|
37115
37210
|
}), r[24] = y, r[25] = T), T;
|
|
37116
37211
|
}, VerticalCell = (0, import_react.memo)((e) => {
|
|
37117
|
-
let r = (0, import_compiler_runtime$3.c)(
|
|
37212
|
+
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
37213
|
r[0] !== _ || r[1] !== c || r[2] !== y || r[3] !== v || r[4] !== f ? (M = outputIsStale({
|
|
37119
37214
|
status: f,
|
|
37120
37215
|
output: c,
|
|
@@ -37148,17 +37243,20 @@ ${c}
|
|
|
37148
37243
|
let f2 = e2, p;
|
|
37149
37244
|
r[19] !== b || r[20] !== c ? (p = shouldHideCode(b, c), r[19] = b, r[20] = c, r[21] = p) : p = r[21];
|
|
37150
37245
|
let m2 = p, h2;
|
|
37151
|
-
r[22] !==
|
|
37152
|
-
let v2 =
|
|
37153
|
-
r[25] !==
|
|
37246
|
+
r[22] !== b || r[23] !== m2 ? (h2 = m2 ? null : getReadonlyCodeDisplay(b), r[22] = b, r[23] = m2, r[24] = h2) : h2 = r[24];
|
|
37247
|
+
let v2 = h2, y2;
|
|
37248
|
+
r[25] !== d || r[26] !== T ? (y2 = cellDomProps(d, T), r[25] = d, r[26] = T, r[27] = y2) : y2 = r[27];
|
|
37249
|
+
let S2 = u === "above" && f2, w2;
|
|
37250
|
+
r[28] !== g || r[29] !== v2 || r[30] !== E ? (w2 = v2 && (0, import_jsx_runtime.jsx)("div", {
|
|
37154
37251
|
className: "tray",
|
|
37155
37252
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
37156
37253
|
initiallyHideCode: g.hide_code || E,
|
|
37157
|
-
code:
|
|
37254
|
+
code: v2.code,
|
|
37255
|
+
language: v2.language
|
|
37158
37256
|
})
|
|
37159
|
-
}), r[
|
|
37160
|
-
let
|
|
37161
|
-
r[
|
|
37257
|
+
}), r[28] = g, r[29] = v2, r[30] = E, r[31] = w2) : w2 = r[31];
|
|
37258
|
+
let O2 = u === "below" && f2, M2;
|
|
37259
|
+
r[32] !== d || r[33] !== l || r[34] !== _ || r[35] !== T || r[36] !== I ? (M2 = (0, import_jsx_runtime.jsx)(ConsoleOutput, {
|
|
37162
37260
|
consoleOutputs: l,
|
|
37163
37261
|
stale: I,
|
|
37164
37262
|
interrupted: _,
|
|
@@ -37166,42 +37264,42 @@ ${c}
|
|
|
37166
37264
|
onSubmitDebugger: _temp4,
|
|
37167
37265
|
cellId: d,
|
|
37168
37266
|
debuggerActive: false
|
|
37169
|
-
}), r[
|
|
37170
|
-
let
|
|
37171
|
-
return r[
|
|
37267
|
+
}), r[32] = d, r[33] = l, r[34] = _, r[35] = T, r[36] = I, r[37] = M2) : M2 = r[37];
|
|
37268
|
+
let L2;
|
|
37269
|
+
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
37270
|
tabIndex: -1,
|
|
37173
37271
|
ref: j,
|
|
37174
37272
|
className: H,
|
|
37175
|
-
...
|
|
37273
|
+
...y2,
|
|
37176
37274
|
children: [
|
|
37177
|
-
v2,
|
|
37178
|
-
y2,
|
|
37179
37275
|
S2,
|
|
37180
|
-
w2
|
|
37276
|
+
w2,
|
|
37277
|
+
O2,
|
|
37278
|
+
M2
|
|
37181
37279
|
]
|
|
37182
|
-
}), r[
|
|
37280
|
+
}), 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
37281
|
}
|
|
37184
37282
|
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
37283
|
if ((h || _ || m || W) && !G) return null;
|
|
37186
37284
|
let q;
|
|
37187
|
-
r[
|
|
37188
|
-
let
|
|
37189
|
-
r[
|
|
37190
|
-
allowExpand:
|
|
37285
|
+
r[45] !== d || r[46] !== T ? (q = cellDomProps(d, T), r[45] = d, r[46] = T, r[47] = q) : q = r[47];
|
|
37286
|
+
let pW = w === "edit", mW;
|
|
37287
|
+
r[48] !== d || r[49] !== R || r[50] !== c || r[51] !== I || r[52] !== pW ? (mW = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37288
|
+
allowExpand: pW,
|
|
37191
37289
|
output: c,
|
|
37192
37290
|
className: CSSClasses.outputArea,
|
|
37193
37291
|
cellId: d,
|
|
37194
37292
|
stale: I,
|
|
37195
37293
|
loading: R
|
|
37196
|
-
}), r[
|
|
37197
|
-
let
|
|
37198
|
-
return r[
|
|
37294
|
+
}), r[48] = d, r[49] = R, r[50] = c, r[51] = I, r[52] = pW, r[53] = mW) : mW = r[53];
|
|
37295
|
+
let Z;
|
|
37296
|
+
return r[54] !== H || r[55] !== q || r[56] !== mW ? (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
37199
37297
|
tabIndex: -1,
|
|
37200
37298
|
ref: j,
|
|
37201
37299
|
className: H,
|
|
37202
37300
|
...q,
|
|
37203
|
-
children:
|
|
37204
|
-
}), r[
|
|
37301
|
+
children: mW
|
|
37302
|
+
}), r[54] = H, r[55] = q, r[56] = mW, r[57] = Z) : Z = r[57], Z;
|
|
37205
37303
|
});
|
|
37206
37304
|
VerticalCell.displayName = "VerticalCell";
|
|
37207
37305
|
const VerticalLayoutPlugin = {
|