@marimo-team/islands 0.23.16-dev2 → 0.23.16-dev21
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-CJaUI-S-.js → ConnectedDataExplorerComponent-f9vLjQiF.js} +13 -13
- package/dist/{ErrorBoundary-DXlxsrTF.js → ErrorBoundary-DhLqwSWA.js} +3 -3
- package/dist/{any-language-editor-P9tjkj4n.js → any-language-editor-DifE-fl7.js} +5 -5
- package/dist/{button-BcSml68y.js → button-BSm8IXRU.js} +2 -4
- package/dist/{capabilities-BYLFYTYv.js → capabilities-C6OQ5YBO.js} +1 -1
- package/dist/{chat-ui-BdSDiVjk.js → chat-ui-BMBk8I78.js} +3129 -3129
- package/dist/{check-Cs-KV5XY.js → check-DP7U0H0G.js} +1 -1
- package/dist/{code-visibility-mgBayy67.js → code-visibility-Dt0oSVz1.js} +778 -755
- package/dist/{copy-Cs3yt6Vt.js → copy-DNq8q3zw.js} +2 -2
- package/dist/{dist-B96tMAst.js → dist-DIlxLFXG.js} +2 -2
- package/dist/{error-banner-DR7o3CbX.js → error-banner-B_GQfxxD.js} +2 -2
- package/dist/{esm-k8PIvuZW.js → esm-DzZVaNH4.js} +1 -1
- package/dist/{extends-Cq2JYHKy.js → extends-w2_S44bV.js} +4 -4
- package/dist/{formats-BFhkZJwd.js → formats-Dwq1THhr.js} +3 -3
- package/dist/{glide-data-editor--CaN-f27.js → glide-data-editor-B9K6-MJe.js} +9 -9
- package/dist/{html-to-image-DDENewl2.js → html-to-image-27MFfyOf.js} +4121 -2739
- package/dist/{input-DStQIuqD.js → input-C5K4VBvB.js} +7 -7
- package/dist/{label-DIk0QoFe.js → label-DjoYwqmj.js} +2 -2
- package/dist/{loader-CTHCI-qe.js → loader-DX-IDS7n.js} +1 -1
- package/dist/main.js +915 -923
- package/dist/{mermaid-CdSvixW2.js → mermaid-hv6IckVw.js} +5 -5
- package/dist/{node-sql-parser-DLl_zNw0.js → node-sql-parser-v1Vi-Fft.js} +16867 -16665
- package/dist/{process-output-2QPcgBQg.js → process-output-BpssYna4.js} +3 -3
- package/dist/{reveal-component-BDdfO6U_.js → reveal-component-BW-0eLEt.js} +702 -628
- package/dist/{spec-CnaxwDqy.js → spec-CQKL_D3i.js} +4 -4
- package/dist/{strings-BYAhZnQi.js → strings-DIy9NAmg.js} +4 -4
- package/dist/style.css +1 -1
- package/dist/{swiper-component-DE94711u.js → swiper-component-CEdAYjb7.js} +2 -2
- package/dist/toDate-CqhBWjvO.js +713 -0
- package/dist/{tooltip-B-qh7UPB.js → tooltip-f-qR0iUx.js} +3 -3
- package/dist/{types-DQl7jVYK.js → types-DicH9Oi0.js} +1 -1
- package/dist/{useAsyncData-CvO8WUy3.js → useAsyncData-CYOQb1EW.js} +1 -1
- package/dist/{useDateFormatter-BSoGim-G.js → useDateFormatter-Bt2qr_XS.js} +2 -2
- package/dist/{useDeepCompareMemoize-J3MKRdA4.js → useDeepCompareMemoize-CSHQeQEI.js} +1 -1
- package/dist/{useIframeCapabilities-POcFXHbw.js → useIframeCapabilities-kA09ykNq.js} +1 -1
- package/dist/{useLifecycle-DqPxHgAN.js → useLifecycle-CMJGqBaY.js} +3 -3
- package/dist/{useTheme-XMq9mNf_.js → useTheme-DYfby65G.js} +2 -2
- package/dist/{vega-component-CrFoZT1S.js → vega-component-C7nO5zcf.js} +10 -10
- package/dist/{zod-D0yOqoGe.js → zod-BUcyXSdR.js} +1 -1
- package/package.json +2 -2
- package/src/components/data-table/column-formatting/feature.ts +2 -1
- package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +50 -0
- package/src/components/editor/connections/storage/__tests__/as-code.test.ts +87 -8
- package/src/components/editor/connections/storage/as-code.ts +40 -21
- package/src/components/editor/connections/storage/schemas.ts +83 -42
- package/src/components/editor/file-tree/__tests__/file-render-mode.test.ts +27 -0
- package/src/components/editor/file-tree/__tests__/file-viewer.test.tsx +150 -0
- package/src/components/editor/file-tree/file-preview-metadata.tsx +51 -0
- package/src/components/editor/file-tree/file-render-mode.ts +32 -0
- package/src/components/editor/file-tree/file-viewer.tsx +76 -50
- package/src/components/slides/__tests__/slide-scroll-hint.test.tsx +198 -0
- package/src/components/slides/reveal-component.tsx +3 -2
- package/src/components/slides/slide-scroll-hint.tsx +161 -0
- package/src/components/ui/input.tsx +1 -1
- package/src/core/codemirror/keymaps/__tests__/keymaps.test.ts +31 -2
- package/src/core/codemirror/keymaps/keymaps.ts +12 -0
- package/src/core/codemirror/language/__tests__/sql.test.ts +443 -61
- package/src/core/codemirror/language/languages/sql/completion-store.ts +5 -1
- package/src/core/codemirror/language/languages/sql/sql.ts +210 -3
- package/src/core/hotkeys/hotkeys.ts +0 -2
- package/src/core/i18n/__tests__/locale-provider.test.tsx +54 -118
- package/src/core/i18n/__tests__/locale.test.ts +113 -0
- package/src/core/i18n/locale-provider.tsx +1 -19
- package/src/core/i18n/locale.ts +71 -0
- package/src/core/islands/__tests__/bridge.test.ts +107 -0
- package/src/core/islands/bridge.ts +15 -0
- package/src/core/mode.ts +10 -0
- package/src/core/network/__tests__/connection.test.ts +45 -0
- package/src/core/network/__tests__/requests-network.test.ts +13 -0
- package/src/core/network/connection.ts +15 -0
- package/src/core/network/requests-network.ts +6 -3
- package/src/core/network/types.ts +3 -1
- package/src/plugins/impl/FormPlugin.tsx +1 -1
- package/src/plugins/impl/__tests__/FormPlugin.test.tsx +162 -0
- package/dist/toDate-B3IRfHhw.js +0 -692
package/dist/main.js
CHANGED
|
@@ -18,34 +18,34 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
import { a as __toCommonJS, n as __esmMin, r as __export, s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
|
|
21
|
-
import { _ as Functions, c as useEventListener, f as composeRefs, g as Logger, h as cn, i as NOT_SET, l as Slot, m as Events, n as buttonVariants, o as isPlatformMac, p as useComposedRefs, r as cva, t as Button, v as throwNotImplemented } from "./button-
|
|
21
|
+
import { _ as Functions, c as useEventListener, f as composeRefs, g as Logger, h as cn, i as NOT_SET, l as Slot, m as Events, n as buttonVariants, o as isPlatformMac, p as useComposedRefs, r as cva, t as Button, v as throwNotImplemented } from "./button-BSm8IXRU.js";
|
|
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
|
-
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-
|
|
25
|
-
import { $ as notebookOutline,
|
|
24
|
+
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-DNq8q3zw.js";
|
|
25
|
+
import { $ as notebookOutline, A as ChevronDownIcon, Bn as Eye, Bt as DATA_TYPE_ICON, C as Accordion, Cn as selectAtom, Ct as PathBuilder, D as BorderAllIcon, Dn as Item$1, E as AccordionTrigger, En as Content2, Ft as repl, G as hasRunAnyCellAtom, Gn as CircleAlert, H as renderHTML, Hn as Database, Ht as require_client, I as base64ToDataView, In as LoaderCircle, It as SQLParser, Jt as requestClientAtom, K as cellIdsAtom, Kn as Braces, Kt as convertStatsName, Ln as Layers, Lt as MarkdownParser, Mn as Table2, Mt as jotaiJsonStorage, Nn as PaintRoller, On as Root2$1, Ot as DeferredRequestRegistry, Q as notebookAtom, Qt as shouldHidePublishedCell, R as dataViewToBase64, Rn as Info, Sn as atomWithStorage, T as AccordionItem, U as getMarimoExportContext, Un as Columns2, V as safeExtractSetUIElementMessageBuffers, W as hasTrustedExportContext, X as hasOnlyOneCellAtom, Xt as isUninstantiated, Y as getCellNames, Yt as useRequestClient, Z as initialNotebookState, Zt as publishedCellClasses, _n as OBJECT_ID_ATTR, _t as isInternalCellName, a as useCellFocusActions, at as createCell, bt as customPythonLanguageSupport, dn as parseInitialValue, dt as headingToIdentifier, et as numColumnsAtom, f as isOutputEmpty, gn as findCellId, gt as getValidName, hn as UIElementId, i as LazyAnyLanguageCodeMirror, jn as Trash2, kn as Trigger2, kt as generateUUID, ln as parseAttrValue, lt as outputIsLoading, n as Spinner, nt as useCellActions, o as useLastFocusedCellId, on as NotebookScopedLocalStorage, p as useExpandedConsoleOutput, pn as HTMLCellId, q as createActions, qt as getRequestClient, rt as useCellIds, s as maybeAddAltairImport, tt as reducer, un as parseDataset, ut as outputIsStale, vn as RANDOM_ID_ATTR, vt as normalizeName, w as AccordionContent, wt as Paths, xn as atomWithReducer, xt as MarkdownLanguageAdapter, yn as jsonParseWithSpecialChar, yt as Checkbox, zn as FileText, zt as PluralWords, __tla as __tla_0 } from "./html-to-image-27MFfyOf.js";
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-B9WoXK1R.js";
|
|
27
|
-
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-
|
|
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 ContextAwarePanelItem, $t as EmotionCacheProvider, A as prettifyRowColumnCount, At as loadTableData, B as useSelectList, Bt as dateToLocalISOTime, C as Filenames, Ct as ColumnChartContext, D as EmptyState, Dt as usePrevious$1, E as ColumnPreviewContainer, Et as useIntersectionObserver, F as ContextMenuContent, Ft as getMimeValues, G as ComboboxItem, Gt as ChartErrorState, H as DatePicker, Ht as TabsContent, I as ContextMenuItem, It as isNullishFilter, J as CommandInput, Jt as LazyVegaEmbed, K as Command, Kt as ChartInfoState, L as ContextMenuSeparator, Lt as Maps, M as getColumnCountForDisplay, Mt as SELECT_COLUMN_ID, N as getUserColumnVisibilityCounts, Nt as TOO_MANY_ROWS, O as ErrorState, Ot as getPageIndexForRow, P as ContextMenu, Pt as toFieldTypes, Q as smartMatch, Qt as HtmlOutput, R as ContextMenuTrigger, Rt as dateToLocalISODate, S as Progress, St as renderCellValue, T as ColumnName, Tt as DelayMount, U as DateRangePicker, Ut as TabsList, V as CompactChipRow, Vt as Tabs, W as Combobox, Wt as TabsTrigger, X as CommandList, Xt as RenderTextWithLinks, Y as CommandItem, Yt as useOverflowDetection, Z as CommandSeparator, Zt as Kbd, _ as InstallPackageButton, _n as
|
|
30
|
-
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-
|
|
31
|
-
import { t as Check } from "./check-
|
|
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-
|
|
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 {
|
|
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-
|
|
36
|
-
import { n as Trash, r as Pencil, t as BulkEdit } from "./types-
|
|
37
|
-
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-
|
|
27
|
+
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-DIlxLFXG.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-CQKL_D3i.js";
|
|
29
|
+
import { $ as ContextAwarePanelItem, $t as EmotionCacheProvider, A as prettifyRowColumnCount, At as loadTableData, B as useSelectList, Bt as dateToLocalISOTime, C as Filenames, Ct as ColumnChartContext, D as EmptyState, Dt as usePrevious$1, E as ColumnPreviewContainer, Et as useIntersectionObserver, F as ContextMenuContent, Ft as getMimeValues, G as ComboboxItem, Gt as ChartErrorState, H as DatePicker, Ht as TabsContent, I as ContextMenuItem, It as isNullishFilter, J as CommandInput, Jt as LazyVegaEmbed, K as Command, Kt as ChartInfoState, L as ContextMenuSeparator, Lt as Maps, M as getColumnCountForDisplay, Mt as SELECT_COLUMN_ID, N as getUserColumnVisibilityCounts, Nt as TOO_MANY_ROWS, O as ErrorState, Ot as getPageIndexForRow, P as ContextMenu, Pt as toFieldTypes, Q as smartMatch, Qt as HtmlOutput, R as ContextMenuTrigger, Rt as dateToLocalISODate, S as Progress, St as renderCellValue, T as ColumnName, Tt as DelayMount, U as DateRangePicker, Ut as TabsList, V as CompactChipRow, Vt as Tabs, W as Combobox, Wt as TabsTrigger, X as CommandList, Xt as RenderTextWithLinks, Y as CommandItem, Yt as useOverflowDetection, Z as CommandSeparator, Zt as Kbd, _ as InstallPackageButton, _n as ChevronLeft, _t as TableHeader, an as TextWrap, at as SlotNames, b as downloadByURL, bt as generateColumns, cn as EyeOff, d as RadioGroup, dn as Download, dt as Fill, en as safeLocale, et as PANEL_TYPES, f as RadioGroupItem, fn as Code, ft as Provider$1, g as DataTable, gn as ChevronsDownUp, gt as TableHead, h as OutputRenderer, hn as ChevronsLeft, ht as TableCell, in as $fae977aafc393c5c$export$6b862160d295c8e, it as isCellAwareAtom, j as prettifyRowCount, jt as INDEX_COLUMN_NAME, k as LoadingState, kt as loadTableAndRawData, l as Slide, m as OutputArea, mn as ChevronsRight, mt as TableBody, n as marimoVersionAtom, nn as isRecord, nt as contextAwarePanelOwner, on as GripHorizontal, ot as slotsController, p as JsonOutput, pn as ChevronsUpDown, pt as Table, q as CommandEmpty, qt as ChartLoadingState, r as showCodeInRunModeAtom, rn as $fae977aafc393c5c$export$588937bcd60ade55, rt as contextAwarePanelType, s as SLIDE_TYPE_OPTIONS_BY_VALUE, sn as Funnel, st as Toggle, t as useNotebookCodeAvailable, tn as hasFunctionProperty, tt as contextAwarePanelOpen, u as Switch, un as Ellipsis, v as ADD_PRINTING_CLASS, vn as ArrowDownWideNarrow, vt as TableRow, w as downloadSizeLimitAtom, wt as ColumnChartSpecModel, x as downloadHTMLAsImage, xt as inferFieldTypes, y as downloadBlob, yt as NAMELESS_COLUMN_PREFIX, z as useInternalStateWithSync, zt as dateToLocalISODateTime, __tla as __tla_2 } from "./code-visibility-Dt0oSVz1.js";
|
|
30
|
+
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-CMJGqBaY.js";
|
|
31
|
+
import { t as Check } from "./check-DP7U0H0G.js";
|
|
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-DIy9NAmg.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-C5K4VBvB.js";
|
|
34
|
+
import { S as isWasm, _ as initialModeAtom, b as viewStateAtom, c as asRemoteURL, d as isStaticNotebook, f as appendQueryParams, g as getInitialAppMode, m as require_cuid2, u as getStaticVirtualFiles, v as kioskModeAtom, w as CircleQuestionMark, x as Deferred } from "./toDate-CqhBWjvO.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-BpssYna4.js";
|
|
36
|
+
import { n as Trash, r as Pencil, t as BulkEdit } from "./types-DicH9Oi0.js";
|
|
37
|
+
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-DhLqwSWA.js";
|
|
38
38
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
39
39
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
40
|
-
import { $ as isInVscodeExtension, A as looseObject, B as union, C as any, E as custom, F as optional, G as parse$1, I as record, J as prettifyError, K as parseAsync, N as number, O as lazy$2, P as object, R as string, S as _null, T as boolean, U as ZodError, V as unknown, Z as withFullScreenAsRoot, _ as ZodString, _t as createContextScope, a as ZodIssueCode, b as _enum, c as ZodBoolean, ct as DismissableLayer, d as ZodDiscriminatedUnion, dt as useId$11, et as StyleNamespace, f as ZodEnum, ft as Presence, g as ZodOptional, h as ZodObject, ht as composeEventHandlers$1, i as string$1, j as nan, k as literal, l as ZodDate, m as ZodNumber, mt as useLayoutEffect2, n as date, o as ZodAny, p as ZodLiteral, pt as useControllableState, q as $ZodError, r as number$1, rt as __awaiter, s as ZodArray, t as zod_default, u as ZodDefault, ut as useCallbackRef, v as ZodType, vt as Primitive, w as array, x as _instanceof, y as ZodUnion, yt as dispatchDiscreteCustomEvent, z as tuple } from "./zod-
|
|
41
|
-
import { i as FunctionNotFoundError, n as ErrorBanner, r as CellNotInitializedError, t as Banner } from "./error-banner-
|
|
42
|
-
import { t as Label } from "./label-
|
|
43
|
-
import { a as TooltipRoot, i as TooltipProvider, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, t as Tooltip } from "./tooltip-
|
|
44
|
-
import { f as CopyClipboardIcon } from "./extends-
|
|
40
|
+
import { $ as isInVscodeExtension, A as looseObject, B as union, C as any, E as custom, F as optional, G as parse$1, I as record, J as prettifyError, K as parseAsync, N as number, O as lazy$2, P as object, R as string, S as _null, T as boolean, U as ZodError, V as unknown, Z as withFullScreenAsRoot, _ as ZodString, _t as createContextScope, a as ZodIssueCode, b as _enum, c as ZodBoolean, ct as DismissableLayer, d as ZodDiscriminatedUnion, dt as useId$11, et as StyleNamespace, f as ZodEnum, ft as Presence, g as ZodOptional, h as ZodObject, ht as composeEventHandlers$1, i as string$1, j as nan, k as literal, l as ZodDate, m as ZodNumber, mt as useLayoutEffect2, n as date, o as ZodAny, p as ZodLiteral, pt as useControllableState, q as $ZodError, r as number$1, rt as __awaiter, s as ZodArray, t as zod_default, u as ZodDefault, ut as useCallbackRef, v as ZodType, vt as Primitive, w as array, x as _instanceof, y as ZodUnion, yt as dispatchDiscreteCustomEvent, z as tuple } from "./zod-BUcyXSdR.js";
|
|
41
|
+
import { i as FunctionNotFoundError, n as ErrorBanner, r as CellNotInitializedError, t as Banner } from "./error-banner-B_GQfxxD.js";
|
|
42
|
+
import { t as Label } from "./label-DjoYwqmj.js";
|
|
43
|
+
import { a as TooltipRoot, i as TooltipProvider, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, t as Tooltip } from "./tooltip-f-qR0iUx.js";
|
|
44
|
+
import { f as CopyClipboardIcon } from "./extends-w2_S44bV.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 { t as debounce_default } from "./debounce-BOD3DbfP.js";
|
|
48
|
-
import { A as useEvent_default, S as useAtomValue, T as atom, a as KnownQueryParams, b as Provider, c as autoInstantiateAtom, f as useResolvedMarimoConfig, g as store, k as dequal, m as AppConfigSchema, n as useTheme, r as CSSClasses, u as localeAtom, x as useAtom, y as isIslands } from "./useTheme-
|
|
48
|
+
import { A as useEvent_default, S as useAtomValue, T as atom, a as KnownQueryParams, b as Provider, c as autoInstantiateAtom, f as useResolvedMarimoConfig, g as store, k as dequal, m as AppConfigSchema, n as useTheme, r as CSSClasses, u as localeAtom, x as useAtom, y as isIslands } from "./useTheme-DYfby65G.js";
|
|
49
49
|
import { $ as EditorView, F as syntaxHighlighting, H as tags, a as HighlightStyle, g as defaultHighlightStyle } from "./dist-De-GlSAs.js";
|
|
50
50
|
import { t as invariant } from "./invariant-wRzNXIsJ.js";
|
|
51
51
|
import { c as uniqueBy, l as clamp, o as arrayShallowEquals, t as Arrays } from "./arrays-sEtDRoG4.js";
|
|
@@ -58,15 +58,15 @@ import "./dist-BTdrwBWP.js";
|
|
|
58
58
|
import "./dist-4lVIWUT3.js";
|
|
59
59
|
import "./dist-DgjbnqTg.js";
|
|
60
60
|
import { r as python } from "./dist-CRmSjkLP.js";
|
|
61
|
-
import { n as minimalSetup, t as esm_default } from "./esm-
|
|
61
|
+
import { n as minimalSetup, t as esm_default } from "./esm-DzZVaNH4.js";
|
|
62
62
|
import "./purify.es-EnR5yhgI.js";
|
|
63
|
-
import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-
|
|
63
|
+
import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-Dwq1THhr.js";
|
|
64
64
|
import { H as getVegaFieldTypes, V as getContainerWidth } from "./vega-loader.browser-DmpxCJqx.js";
|
|
65
|
-
import { a as tooltipHandler, n as vegaLoadData } from "./loader-
|
|
65
|
+
import { a as tooltipHandler, n as vegaLoadData } from "./loader-DX-IDS7n.js";
|
|
66
66
|
import "./defaultLocale-BpsHxBd7.js";
|
|
67
67
|
import "./defaultLocale-DoeErsX2.js";
|
|
68
|
-
import { t as useAsyncData } from "./useAsyncData-
|
|
69
|
-
import { t as useDeepCompareMemoize } from "./useDeepCompareMemoize-
|
|
68
|
+
import { t as useAsyncData } from "./useAsyncData-CYOQb1EW.js";
|
|
69
|
+
import { t as useDeepCompareMemoize } from "./useDeepCompareMemoize-CSHQeQEI.js";
|
|
70
70
|
import "./dist-BP39XM8u.js";
|
|
71
71
|
import "./dist-C18MUWTj.js";
|
|
72
72
|
import "./dist-BwhXBwMd.js";
|
|
@@ -4833,16 +4833,6 @@ let __tla = Promise.all([
|
|
|
4833
4833
|
children: c
|
|
4834
4834
|
}), r[2] = c, r[3] = u, r[4] = d) : d = r[4], d;
|
|
4835
4835
|
};
|
|
4836
|
-
function safeLocale(e) {
|
|
4837
|
-
return e && isValidLocale(e) ? e : navigator.language;
|
|
4838
|
-
}
|
|
4839
|
-
function isValidLocale(e) {
|
|
4840
|
-
try {
|
|
4841
|
-
return new Intl.NumberFormat(e), true;
|
|
4842
|
-
} catch {
|
|
4843
|
-
return false;
|
|
4844
|
-
}
|
|
4845
|
-
}
|
|
4846
4836
|
function shallowCompare(e, r) {
|
|
4847
4837
|
return e === r ? true : e == null || r == null ? false : Array.isArray(e) && Array.isArray(r) ? arrayShallowEquals(e, r) : typeof e == "object" && typeof r == "object" ? shallowCompareObjects(e, r) : false;
|
|
4848
4838
|
}
|
|
@@ -7525,21 +7515,21 @@ let __tla = Promise.all([
|
|
|
7525
7515
|
}), H = U(), W = U(), G = C(0), q = C(null), Z = C({
|
|
7526
7516
|
column: 0,
|
|
7527
7517
|
row: 0
|
|
7528
|
-
}),
|
|
7529
|
-
Y(x(b, $(
|
|
7530
|
-
D(
|
|
7531
|
-
}), Y(x(ut(b,
|
|
7532
|
-
D(
|
|
7518
|
+
}), ZW = U(), QW = U(), $W = C(false), eG = C(0), tG = C(true), nG = C(false), rG = C(false);
|
|
7519
|
+
Y(x(b, $(eG), P(([e2, r2]) => !!r2)), () => {
|
|
7520
|
+
D(tG, false);
|
|
7521
|
+
}), Y(x(ut(b, tG, B, z, eG, nG), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7522
|
+
D(nG, true), Ue(1, () => {
|
|
7533
7523
|
D(H, e2);
|
|
7534
7524
|
}), Et(x(h), () => {
|
|
7535
7525
|
D(r, [
|
|
7536
7526
|
0,
|
|
7537
7527
|
0
|
|
7538
|
-
]), D(
|
|
7528
|
+
]), D(tG, true);
|
|
7539
7529
|
});
|
|
7540
|
-
}), F(x(
|
|
7541
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(Z, e2.gap), e2.scrollTop > 0 && (D(
|
|
7542
|
-
D(
|
|
7530
|
+
}), F(x(QW, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(QW), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7531
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(Z, e2.gap), e2.scrollTop > 0 && (D($W, true), Et(x(h, Kt(1)), (e3) => {
|
|
7532
|
+
D($W, false);
|
|
7543
7533
|
}), D(m, {
|
|
7544
7534
|
top: e2.scrollTop
|
|
7545
7535
|
})));
|
|
@@ -7548,7 +7538,7 @@ let __tla = Promise.all([
|
|
|
7548
7538
|
item: r2,
|
|
7549
7539
|
scrollTop: l2,
|
|
7550
7540
|
viewport: e2
|
|
7551
|
-
}))),
|
|
7541
|
+
}))), ZW), F(x(ut(V(I), l, V(Z, Or), V(B, xe), V(z, xe), V(q), V(L), V($W), V(tG), V(eG)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7552
7542
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7553
7543
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7554
7544
|
if (y2 === 0) {
|
|
@@ -7574,16 +7564,16 @@ let __tla = Promise.all([
|
|
|
7574
7564
|
u2
|
|
7575
7565
|
];
|
|
7576
7566
|
}), J(ce)), r);
|
|
7577
|
-
let
|
|
7578
|
-
F(x(h, $(
|
|
7579
|
-
let
|
|
7567
|
+
let iG = C(false);
|
|
7568
|
+
F(x(h, $(iG), k(([e2, r2]) => r2 || e2 !== 0)), iG);
|
|
7569
|
+
let aG = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(iG), P(([[e2, r2], c2]) => {
|
|
7580
7570
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7581
7571
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7582
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7572
|
+
}), k(([[, e2]]) => e2 - 1), J())), oG = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), sG = bt(x(V(R), $($W), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7583
7573
|
endIndex: e2[e2.length - 1].index,
|
|
7584
7574
|
startIndex: e2[0].index
|
|
7585
7575
|
})), J(An), Gt(0)));
|
|
7586
|
-
F(
|
|
7576
|
+
F(sG, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, Z), k(([e2, r2, c2, l2, u2]) => {
|
|
7587
7577
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7588
7578
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7589
7579
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7592,7 +7582,7 @@ let __tla = Promise.all([
|
|
|
7592
7582
|
top: g2
|
|
7593
7583
|
};
|
|
7594
7584
|
})), m);
|
|
7595
|
-
let
|
|
7585
|
+
let cG = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7596
7586
|
return F(x(j, k((e2) => ({
|
|
7597
7587
|
height: e2.visibleHeight,
|
|
7598
7588
|
width: e2.visibleWidth
|
|
@@ -7607,7 +7597,7 @@ let __tla = Promise.all([
|
|
|
7607
7597
|
initialItemCount: L,
|
|
7608
7598
|
itemDimensions: B,
|
|
7609
7599
|
overscan: c,
|
|
7610
|
-
restoreStateFrom:
|
|
7600
|
+
restoreStateFrom: QW,
|
|
7611
7601
|
scrollBy: f,
|
|
7612
7602
|
scrollContainerState: p,
|
|
7613
7603
|
scrollHeight: W,
|
|
@@ -7623,16 +7613,16 @@ let __tla = Promise.all([
|
|
|
7623
7613
|
windowViewportRect: j,
|
|
7624
7614
|
...y,
|
|
7625
7615
|
gridState: R,
|
|
7626
|
-
horizontalDirection:
|
|
7627
|
-
initialTopMostItemIndex:
|
|
7628
|
-
totalListHeight:
|
|
7616
|
+
horizontalDirection: rG,
|
|
7617
|
+
initialTopMostItemIndex: eG,
|
|
7618
|
+
totalListHeight: cG,
|
|
7629
7619
|
...v,
|
|
7630
|
-
endReached:
|
|
7620
|
+
endReached: aG,
|
|
7631
7621
|
propsReady: S,
|
|
7632
|
-
rangeChanged:
|
|
7633
|
-
startReached:
|
|
7634
|
-
stateChanged:
|
|
7635
|
-
stateRestoreInProgress:
|
|
7622
|
+
rangeChanged: sG,
|
|
7623
|
+
startReached: oG,
|
|
7624
|
+
stateChanged: ZW,
|
|
7625
|
+
stateRestoreInProgress: $W,
|
|
7636
7626
|
...M
|
|
7637
7627
|
};
|
|
7638
7628
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7910,22 +7900,22 @@ let __tla = Promise.all([
|
|
|
7910
7900
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7911
7901
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7912
7902
|
}, r[8] = p, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7913
|
-
let Z = q,
|
|
7903
|
+
let Z = q, ZW;
|
|
7914
7904
|
if (r[13] !== G.bulkActions) {
|
|
7915
|
-
if (
|
|
7905
|
+
if (ZW = G.bulkActions.map(_temp$27), ZW.length > 0) {
|
|
7916
7906
|
let e2;
|
|
7917
7907
|
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7918
7908
|
"data-slot": "select-separator"
|
|
7919
|
-
}, "_bulk_separator"), r[15] = e2) : e2 = r[15],
|
|
7909
|
+
}, "_bulk_separator"), r[15] = e2) : e2 = r[15], ZW.push(e2);
|
|
7920
7910
|
}
|
|
7921
|
-
r[13] = G.bulkActions, r[14] =
|
|
7922
|
-
} else
|
|
7923
|
-
let
|
|
7924
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7911
|
+
r[13] = G.bulkActions, r[14] = ZW;
|
|
7912
|
+
} else ZW = r[14];
|
|
7913
|
+
let QW;
|
|
7914
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (QW = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7925
7915
|
"data-slot": "select-separator"
|
|
7926
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7927
|
-
let
|
|
7928
|
-
r[19] !==
|
|
7916
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = QW) : QW = r[18];
|
|
7917
|
+
let $W = QW, eG;
|
|
7918
|
+
r[19] !== ZW || r[20] !== G || r[21] !== $W || r[22] !== w || r[23] !== B || r[24] !== H ? (eG = () => {
|
|
7929
7919
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7930
7920
|
"data-slot": "select-list",
|
|
7931
7921
|
style: {
|
|
@@ -7937,8 +7927,8 @@ let __tla = Promise.all([
|
|
|
7937
7927
|
let r2 = G.visibleOptions[e3];
|
|
7938
7928
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7939
7929
|
children: [
|
|
7940
|
-
e3 === 0 &&
|
|
7941
|
-
|
|
7930
|
+
e3 === 0 && ZW,
|
|
7931
|
+
$W(e3),
|
|
7942
7932
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7943
7933
|
option: r2,
|
|
7944
7934
|
checked: G.isChecked(r2.value),
|
|
@@ -7949,7 +7939,7 @@ let __tla = Promise.all([
|
|
|
7949
7939
|
}
|
|
7950
7940
|
});
|
|
7951
7941
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7952
|
-
let c2 =
|
|
7942
|
+
let c2 = $W(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7953
7943
|
option: e3,
|
|
7954
7944
|
checked: G.isChecked(e3.value),
|
|
7955
7945
|
renderOption: w
|
|
@@ -7963,13 +7953,13 @@ let __tla = Promise.all([
|
|
|
7963
7953
|
});
|
|
7964
7954
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7965
7955
|
children: [
|
|
7966
|
-
|
|
7956
|
+
ZW,
|
|
7967
7957
|
e2
|
|
7968
7958
|
]
|
|
7969
7959
|
});
|
|
7970
|
-
}, r[19] =
|
|
7971
|
-
let
|
|
7972
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7960
|
+
}, r[19] = ZW, r[20] = G, r[21] = $W, r[22] = w, r[23] = B, r[24] = H, r[25] = eG) : eG = r[25];
|
|
7961
|
+
let tG = eG, nG;
|
|
7962
|
+
r[26] !== G.labelOf || r[27] !== I ? (nG = (e2) => {
|
|
7973
7963
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7974
7964
|
e2
|
|
7975
7965
|
];
|
|
@@ -7980,46 +7970,46 @@ let __tla = Promise.all([
|
|
|
7980
7970
|
items: r2.map(G.labelOf),
|
|
7981
7971
|
max: 3
|
|
7982
7972
|
});
|
|
7983
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7984
|
-
let
|
|
7985
|
-
r[29] === G ?
|
|
7986
|
-
let
|
|
7987
|
-
r[31] !== b || r[32] !== R ? (
|
|
7973
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = nG) : nG = r[28];
|
|
7974
|
+
let rG = nG, iG = e["data-testid"], aG;
|
|
7975
|
+
r[29] === G ? aG = r[30] : (aG = (e2) => G.labelOf(e2), r[29] = G, r[30] = aG);
|
|
7976
|
+
let oG = M ? rG : void 0, sG;
|
|
7977
|
+
r[31] !== b || r[32] !== R ? (sG = cn({
|
|
7988
7978
|
"w-full": R
|
|
7989
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7990
|
-
let
|
|
7991
|
-
r[34] === z ?
|
|
7992
|
-
let
|
|
7993
|
-
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] !==
|
|
7979
|
+
}, b), r[31] = b, r[32] = R, r[33] = sG) : sG = r[33];
|
|
7980
|
+
let cG = G.searchQuery, lG = G.setSearchQuery, uG = G.open, dG = G.setOpen, fG;
|
|
7981
|
+
r[34] === z ? fG = r[35] : (fG = renderSlot(z), r[34] = z, r[35] = fG);
|
|
7982
|
+
let pG;
|
|
7983
|
+
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] !== iG || r[44] !== aG || r[45] !== oG || r[46] !== sG || r[47] !== fG ? (pG = {
|
|
7994
7984
|
"data-slot": "select-root",
|
|
7995
|
-
"data-testid":
|
|
7996
|
-
displayValue:
|
|
7997
|
-
renderValue:
|
|
7985
|
+
"data-testid": iG,
|
|
7986
|
+
displayValue: aG,
|
|
7987
|
+
renderValue: oG,
|
|
7998
7988
|
placeholder: I,
|
|
7999
|
-
className:
|
|
7989
|
+
className: sG,
|
|
8000
7990
|
shouldFilter: false,
|
|
8001
|
-
search:
|
|
8002
|
-
onSearchChange:
|
|
8003
|
-
open:
|
|
8004
|
-
onOpenChange:
|
|
8005
|
-
emptyState:
|
|
7991
|
+
search: cG,
|
|
7992
|
+
onSearchChange: lG,
|
|
7993
|
+
open: uG,
|
|
7994
|
+
onOpenChange: dG,
|
|
7995
|
+
emptyState: fG,
|
|
8006
7996
|
disabled: L,
|
|
8007
7997
|
id: S
|
|
8008
|
-
}, 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] =
|
|
8009
|
-
let
|
|
8010
|
-
return r[49] !==
|
|
8011
|
-
...
|
|
7998
|
+
}, 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] = iG, r[44] = aG, r[45] = oG, r[46] = sG, r[47] = fG, r[48] = pG) : pG = r[48];
|
|
7999
|
+
let mG = pG, hG;
|
|
8000
|
+
return r[49] !== mG || r[50] !== Z || r[51] !== d || r[52] !== tG || r[53] !== l ? (hG = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
8001
|
+
...mG,
|
|
8012
8002
|
multiple: true,
|
|
8013
8003
|
value: l,
|
|
8014
8004
|
onValueChange: Z,
|
|
8015
|
-
children:
|
|
8005
|
+
children: tG()
|
|
8016
8006
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
8017
|
-
...
|
|
8007
|
+
...mG,
|
|
8018
8008
|
multiple: false,
|
|
8019
8009
|
value: l,
|
|
8020
8010
|
onValueChange: Z,
|
|
8021
|
-
children:
|
|
8022
|
-
}), r[49] =
|
|
8011
|
+
children: tG()
|
|
8012
|
+
}), r[49] = mG, r[50] = Z, r[51] = d, r[52] = tG, r[53] = l, r[54] = hG) : hG = r[54], hG;
|
|
8023
8013
|
}
|
|
8024
8014
|
function _temp$27(e) {
|
|
8025
8015
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -9019,7 +9009,7 @@ let __tla = Promise.all([
|
|
|
9019
9009
|
};
|
|
9020
9010
|
}
|
|
9021
9011
|
};
|
|
9022
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
9012
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-BMBk8I78.js").then((e) => ({
|
|
9023
9013
|
default: e.Chatbot
|
|
9024
9014
|
}))), messageSchema = array(object({
|
|
9025
9015
|
id: string(),
|
|
@@ -9168,7 +9158,7 @@ let __tla = Promise.all([
|
|
|
9168
9158
|
"time",
|
|
9169
9159
|
"unknown"
|
|
9170
9160
|
];
|
|
9171
|
-
var import_compiler_runtime$76 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor
|
|
9161
|
+
var import_compiler_runtime$76 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-B9K6-MJe.js").then(async (m) => {
|
|
9172
9162
|
await m.__tla;
|
|
9173
9163
|
return m;
|
|
9174
9164
|
}));
|
|
@@ -10207,10 +10197,10 @@ let __tla = Promise.all([
|
|
|
10207
10197
|
}, H = () => {
|
|
10208
10198
|
for (let e2 of p.unMount) {
|
|
10209
10199
|
let r2 = get(l, e2);
|
|
10210
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
10200
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && sG(e2);
|
|
10211
10201
|
}
|
|
10212
10202
|
p.unMount = /* @__PURE__ */ new Set();
|
|
10213
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
10203
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(nG(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
10214
10204
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
10215
10205
|
[e2]: r2
|
|
10216
10206
|
} : r2
|
|
@@ -10227,13 +10217,13 @@ let __tla = Promise.all([
|
|
|
10227
10217
|
}
|
|
10228
10218
|
})));
|
|
10229
10219
|
}
|
|
10230
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
10231
|
-
},
|
|
10220
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && tG(e2);
|
|
10221
|
+
}, ZW = (e2, r2, c2) => {
|
|
10232
10222
|
for (let u2 in r2) {
|
|
10233
10223
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
10234
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
10224
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? ZW(f2, d2, c2) : Z(f2, d2, c2);
|
|
10235
10225
|
}
|
|
10236
|
-
},
|
|
10226
|
+
}, QW = (e2, r2, m2 = {}) => {
|
|
10237
10227
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
10238
10228
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
10239
10229
|
name: e2,
|
|
@@ -10244,7 +10234,7 @@ let __tla = Promise.all([
|
|
|
10244
10234
|
name: e2,
|
|
10245
10235
|
dirtyFields: getDirtyFields(u, d),
|
|
10246
10236
|
isDirty: W(e2, y2)
|
|
10247
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
10237
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? ZW(e2, y2, m2) : Z(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
10248
10238
|
...c
|
|
10249
10239
|
}), _.values.next({
|
|
10250
10240
|
name: f.mount ? e2 : void 0,
|
|
@@ -10252,7 +10242,7 @@ let __tla = Promise.all([
|
|
|
10252
10242
|
...d
|
|
10253
10243
|
}
|
|
10254
10244
|
});
|
|
10255
|
-
},
|
|
10245
|
+
}, $W = async (e2) => {
|
|
10256
10246
|
f.mount = true;
|
|
10257
10247
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
10258
10248
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -10286,11 +10276,11 @@ let __tla = Promise.all([
|
|
|
10286
10276
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
10287
10277
|
h2
|
|
10288
10278
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
10289
|
-
S2 && (E2._f.deps &&
|
|
10279
|
+
S2 && (E2._f.deps && tG(E2._f.deps), L(h2, f2, u3, G2));
|
|
10290
10280
|
}
|
|
10291
|
-
},
|
|
10281
|
+
}, eG = (e2, r2) => {
|
|
10292
10282
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
10293
|
-
},
|
|
10283
|
+
}, tG = async (e2, u2 = {}) => {
|
|
10294
10284
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
10295
10285
|
if (r.resolver) {
|
|
10296
10286
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -10309,23 +10299,23 @@ let __tla = Promise.all([
|
|
|
10309
10299
|
isValid: d2
|
|
10310
10300
|
} : {},
|
|
10311
10301
|
errors: c.errors
|
|
10312
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
10313
|
-
},
|
|
10302
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, eG, e2 ? m2 : p.mount), f2;
|
|
10303
|
+
}, nG = (e2) => {
|
|
10314
10304
|
let r2 = {
|
|
10315
10305
|
...f.mount ? d : u
|
|
10316
10306
|
};
|
|
10317
10307
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
10318
|
-
},
|
|
10308
|
+
}, rG = (e2, r2) => ({
|
|
10319
10309
|
invalid: !!get((r2 || c).errors, e2),
|
|
10320
10310
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
10321
10311
|
error: get((r2 || c).errors, e2),
|
|
10322
10312
|
isValidating: !!get(c.validatingFields, e2),
|
|
10323
10313
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
10324
|
-
}),
|
|
10314
|
+
}), iG = (e2) => {
|
|
10325
10315
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
10326
10316
|
errors: e2 ? c.errors : {}
|
|
10327
10317
|
});
|
|
10328
|
-
},
|
|
10318
|
+
}, aG = (e2, r2, u2) => {
|
|
10329
10319
|
let d2 = (get(l, e2, {
|
|
10330
10320
|
_f: {}
|
|
10331
10321
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -10338,9 +10328,9 @@ let __tla = Promise.all([
|
|
|
10338
10328
|
errors: c.errors,
|
|
10339
10329
|
isValid: false
|
|
10340
10330
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
10341
|
-
},
|
|
10331
|
+
}, oG = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
10342
10332
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
10343
|
-
}) : G(e2, r2, true),
|
|
10333
|
+
}) : G(e2, r2, true), sG = (e2, f2 = {}) => {
|
|
10344
10334
|
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);
|
|
10345
10335
|
_.values.next({
|
|
10346
10336
|
values: {
|
|
@@ -10352,9 +10342,9 @@ let __tla = Promise.all([
|
|
|
10352
10342
|
isDirty: W()
|
|
10353
10343
|
} : {}
|
|
10354
10344
|
}), !f2.keepIsValid && w();
|
|
10355
|
-
},
|
|
10345
|
+
}, cG = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
10356
10346
|
(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));
|
|
10357
|
-
},
|
|
10347
|
+
}, lG = (e2, c2 = {}) => {
|
|
10358
10348
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
10359
10349
|
return set(l, e2, {
|
|
10360
10350
|
...d2 || {},
|
|
@@ -10368,7 +10358,7 @@ let __tla = Promise.all([
|
|
|
10368
10358
|
mount: true,
|
|
10369
10359
|
...c2
|
|
10370
10360
|
}
|
|
10371
|
-
}), p.mount.add(e2), d2 ?
|
|
10361
|
+
}), p.mount.add(e2), d2 ? cG({
|
|
10372
10362
|
field: d2,
|
|
10373
10363
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
10374
10364
|
name: e2
|
|
@@ -10385,11 +10375,11 @@ let __tla = Promise.all([
|
|
|
10385
10375
|
pattern: getRuleValue(c2.pattern)
|
|
10386
10376
|
} : {},
|
|
10387
10377
|
name: e2,
|
|
10388
|
-
onChange:
|
|
10389
|
-
onBlur:
|
|
10378
|
+
onChange: $W,
|
|
10379
|
+
onBlur: $W,
|
|
10390
10380
|
ref: (m3) => {
|
|
10391
10381
|
if (m3) {
|
|
10392
|
-
|
|
10382
|
+
lG(e2, c2), d2 = get(l, e2);
|
|
10393
10383
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
10394
10384
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
10395
10385
|
set(l, e2, {
|
|
@@ -10415,7 +10405,7 @@ let __tla = Promise.all([
|
|
|
10415
10405
|
} 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);
|
|
10416
10406
|
}
|
|
10417
10407
|
};
|
|
10418
|
-
},
|
|
10408
|
+
}, uG = () => r.shouldFocusError && iterateFieldsByAction(l, eG, p.mount), dG = (e2) => {
|
|
10419
10409
|
isBoolean(e2) && (_.state.next({
|
|
10420
10410
|
disabled: e2
|
|
10421
10411
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -10424,7 +10414,7 @@ let __tla = Promise.all([
|
|
|
10424
10414
|
r3.disabled = u2._f.disabled || e2;
|
|
10425
10415
|
}));
|
|
10426
10416
|
}, 0, false));
|
|
10427
|
-
},
|
|
10417
|
+
}, fG = (e2, u2) => async (f2) => {
|
|
10428
10418
|
let m2;
|
|
10429
10419
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
10430
10420
|
let h2 = cloneObject(d);
|
|
@@ -10446,7 +10436,7 @@ let __tla = Promise.all([
|
|
|
10446
10436
|
}
|
|
10447
10437
|
} else u2 && await u2({
|
|
10448
10438
|
...c.errors
|
|
10449
|
-
}, f2),
|
|
10439
|
+
}, f2), uG(), setTimeout(uG);
|
|
10450
10440
|
if (_.state.next({
|
|
10451
10441
|
isSubmitted: true,
|
|
10452
10442
|
isSubmitting: false,
|
|
@@ -10454,11 +10444,11 @@ let __tla = Promise.all([
|
|
|
10454
10444
|
submitCount: c.submitCount + 1,
|
|
10455
10445
|
errors: c.errors
|
|
10456
10446
|
}), m2) throw m2;
|
|
10457
|
-
},
|
|
10458
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10447
|
+
}, pG = (e2, r2 = {}) => {
|
|
10448
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? QW(e2, cloneObject(get(u, e2))) : (QW(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({
|
|
10459
10449
|
...c
|
|
10460
10450
|
}));
|
|
10461
|
-
},
|
|
10451
|
+
}, mG = (e2, m2 = {}) => {
|
|
10462
10452
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10463
10453
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10464
10454
|
if (m2.keepDirtyValues) {
|
|
@@ -10466,7 +10456,7 @@ let __tla = Promise.all([
|
|
|
10466
10456
|
...p.mount,
|
|
10467
10457
|
...Object.keys(getDirtyFields(u, d))
|
|
10468
10458
|
]);
|
|
10469
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10459
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : QW(r2, get(b2, r2));
|
|
10470
10460
|
} else {
|
|
10471
10461
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10472
10462
|
let r2 = get(l, e3);
|
|
@@ -10511,25 +10501,25 @@ let __tla = Promise.all([
|
|
|
10511
10501
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10512
10502
|
isSubmitting: false
|
|
10513
10503
|
});
|
|
10514
|
-
},
|
|
10504
|
+
}, hG = (e2, r2) => mG(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10515
10505
|
return {
|
|
10516
10506
|
control: {
|
|
10517
|
-
register:
|
|
10518
|
-
unregister:
|
|
10519
|
-
getFieldState:
|
|
10520
|
-
handleSubmit:
|
|
10521
|
-
setError:
|
|
10507
|
+
register: lG,
|
|
10508
|
+
unregister: sG,
|
|
10509
|
+
getFieldState: rG,
|
|
10510
|
+
handleSubmit: fG,
|
|
10511
|
+
setError: aG,
|
|
10522
10512
|
_executeSchema: R,
|
|
10523
10513
|
_getWatch: G,
|
|
10524
10514
|
_getDirty: W,
|
|
10525
10515
|
_updateValid: w,
|
|
10526
10516
|
_removeUnmounted: H,
|
|
10527
10517
|
_updateFieldArray: E,
|
|
10528
|
-
_updateDisabledField:
|
|
10518
|
+
_updateDisabledField: cG,
|
|
10529
10519
|
_getFieldArray: q,
|
|
10530
|
-
_reset:
|
|
10520
|
+
_reset: mG,
|
|
10531
10521
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10532
|
-
|
|
10522
|
+
hG(e2, r.resetOptions), _.state.next({
|
|
10533
10523
|
isLoading: false
|
|
10534
10524
|
});
|
|
10535
10525
|
}),
|
|
@@ -10539,7 +10529,7 @@ let __tla = Promise.all([
|
|
|
10539
10529
|
...e2
|
|
10540
10530
|
};
|
|
10541
10531
|
},
|
|
10542
|
-
_disableForm:
|
|
10532
|
+
_disableForm: dG,
|
|
10543
10533
|
_subjects: _,
|
|
10544
10534
|
_proxyFormState: g,
|
|
10545
10535
|
_setErrors: j,
|
|
@@ -10580,17 +10570,17 @@ let __tla = Promise.all([
|
|
|
10580
10570
|
};
|
|
10581
10571
|
}
|
|
10582
10572
|
},
|
|
10583
|
-
trigger:
|
|
10584
|
-
register:
|
|
10585
|
-
handleSubmit:
|
|
10586
|
-
watch:
|
|
10587
|
-
setValue:
|
|
10588
|
-
getValues:
|
|
10589
|
-
reset:
|
|
10590
|
-
resetField:
|
|
10591
|
-
clearErrors:
|
|
10592
|
-
unregister:
|
|
10593
|
-
setError:
|
|
10573
|
+
trigger: tG,
|
|
10574
|
+
register: lG,
|
|
10575
|
+
handleSubmit: fG,
|
|
10576
|
+
watch: oG,
|
|
10577
|
+
setValue: QW,
|
|
10578
|
+
getValues: nG,
|
|
10579
|
+
reset: hG,
|
|
10580
|
+
resetField: pG,
|
|
10581
|
+
clearErrors: iG,
|
|
10582
|
+
unregister: sG,
|
|
10583
|
+
setError: aG,
|
|
10594
10584
|
setFocus: (e2, r2 = {}) => {
|
|
10595
10585
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10596
10586
|
if (u2) {
|
|
@@ -10598,7 +10588,7 @@ let __tla = Promise.all([
|
|
|
10598
10588
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10599
10589
|
}
|
|
10600
10590
|
},
|
|
10601
|
-
getFieldState:
|
|
10591
|
+
getFieldState: rG
|
|
10602
10592
|
};
|
|
10603
10593
|
}
|
|
10604
10594
|
function useForm(e = {}) {
|
|
@@ -16323,21 +16313,21 @@ ${c}
|
|
|
16323
16313
|
_.pageSize,
|
|
16324
16314
|
_.pageIndex
|
|
16325
16315
|
], 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] = p, r[46] = B, r[47] = H) : H = r[47];
|
|
16326
|
-
let { data: W, error: G, isPending: q, isFetching: Z } = useAsyncData(z, H),
|
|
16327
|
-
r[48] !==
|
|
16328
|
-
let
|
|
16329
|
-
r[51] !==
|
|
16330
|
-
|
|
16316
|
+
let { data: W, error: G, isPending: q, isFetching: Z } = useAsyncData(z, H), ZW = useAtomValue(downloadSizeLimitAtom), QW;
|
|
16317
|
+
r[48] !== ZW || r[49] !== e ? (QW = async () => !ZW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = ZW, r[49] = e, r[50] = QW) : QW = r[50];
|
|
16318
|
+
let $W = e.showDownload, eG = e.get_size_bytes, tG = e.lazy, nG = e.totalRows, rG = useDeepCompareMemoize(w), iG = useDeepCompareMemoize(p), aG;
|
|
16319
|
+
r[51] !== ZW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== rG || r[58] !== iG ? (aG = [
|
|
16320
|
+
ZW,
|
|
16321
|
+
$W,
|
|
16331
16322
|
eG,
|
|
16332
16323
|
tG,
|
|
16333
16324
|
nG,
|
|
16334
|
-
rG,
|
|
16335
16325
|
y,
|
|
16336
|
-
|
|
16337
|
-
|
|
16338
|
-
], r[51] =
|
|
16339
|
-
let { data:
|
|
16340
|
-
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== p ? (
|
|
16326
|
+
rG,
|
|
16327
|
+
iG
|
|
16328
|
+
], r[51] = ZW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = rG, r[58] = iG, r[59] = aG) : aG = r[59];
|
|
16329
|
+
let { data: oG, isPending: sG } = useAsyncData(QW, aG), cG = oG ?? null, lG = !!ZW && e.showDownload && sG, uG;
|
|
16330
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== p ? (uG = async (e2) => ({
|
|
16341
16331
|
rows: await loadTableData((await u({
|
|
16342
16332
|
page_number: e2,
|
|
16343
16333
|
page_size: 1,
|
|
@@ -16346,17 +16336,17 @@ ${c}
|
|
|
16346
16336
|
filters: filtersToFilterGroup(w),
|
|
16347
16337
|
max_columns: null
|
|
16348
16338
|
})).data)
|
|
16349
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] =
|
|
16350
|
-
let
|
|
16351
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16339
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] = uG) : uG = r[64];
|
|
16340
|
+
let dG = uG, fG;
|
|
16341
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fG = () => {
|
|
16352
16342
|
v(_temp4$4);
|
|
16353
|
-
}, r[65] =
|
|
16354
|
-
let
|
|
16355
|
-
r[66] ===
|
|
16356
|
-
|
|
16357
|
-
], r[66] =
|
|
16358
|
-
let
|
|
16359
|
-
r[68] === e ?
|
|
16343
|
+
}, r[65] = fG) : fG = r[65];
|
|
16344
|
+
let pG = W == null ? void 0 : W.totalRows, mG;
|
|
16345
|
+
r[66] === pG ? mG = r[67] : (mG = [
|
|
16346
|
+
pG
|
|
16347
|
+
], r[66] = pG, r[67] = mG), (0, import_react.useEffect)(fG, mG);
|
|
16348
|
+
let hG;
|
|
16349
|
+
r[68] === e ? hG = r[69] : (hG = async () => {
|
|
16360
16350
|
let r2 = isStaticNotebook();
|
|
16361
16351
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
16362
16352
|
data: null,
|
|
@@ -16365,22 +16355,22 @@ ${c}
|
|
|
16365
16355
|
value_counts: {},
|
|
16366
16356
|
show_charts: false
|
|
16367
16357
|
} : e.get_column_summaries({});
|
|
16368
|
-
}, r[68] = e, r[69] =
|
|
16369
|
-
let
|
|
16370
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
16358
|
+
}, r[68] = e, r[69] = hG);
|
|
16359
|
+
let gG;
|
|
16360
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (gG = [
|
|
16371
16361
|
e.get_column_summaries,
|
|
16372
16362
|
e.showColumnSummaries,
|
|
16373
16363
|
w,
|
|
16374
16364
|
y,
|
|
16375
16365
|
e.totalRows,
|
|
16376
16366
|
e.data
|
|
16377
|
-
], 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] =
|
|
16378
|
-
let { data:
|
|
16379
|
-
if (r[77] ===
|
|
16380
|
-
|
|
16381
|
-
},
|
|
16382
|
-
|
|
16383
|
-
], r[77] =
|
|
16367
|
+
], 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] = gG) : gG = r[76];
|
|
16368
|
+
let { data: _G, error: vG } = useAsyncData(hG, gG), yG, bG;
|
|
16369
|
+
if (r[77] === vG ? (yG = r[78], bG = r[79]) : (yG = () => {
|
|
16370
|
+
vG && Logger.error(vG);
|
|
16371
|
+
}, bG = [
|
|
16372
|
+
vG
|
|
16373
|
+
], r[77] = vG, r[78] = yG, r[79] = bG), (0, import_react.useEffect)(yG, bG), q) {
|
|
16384
16374
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
16385
16375
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
16386
16376
|
milliseconds: 200,
|
|
@@ -16389,7 +16379,7 @@ ${c}
|
|
|
16389
16379
|
})
|
|
16390
16380
|
}), r[80] = c2, r[81] = l2), l2;
|
|
16391
16381
|
}
|
|
16392
|
-
let
|
|
16382
|
+
let xG = null;
|
|
16393
16383
|
if (G) {
|
|
16394
16384
|
Logger.error(G);
|
|
16395
16385
|
let e2;
|
|
@@ -16405,62 +16395,62 @@ ${c}
|
|
|
16405
16395
|
children: G.message || "An unknown error occurred"
|
|
16406
16396
|
})
|
|
16407
16397
|
]
|
|
16408
|
-
}), r[82] = G, r[83] = e2),
|
|
16398
|
+
}), r[82] = G, r[83] = e2), xG = e2;
|
|
16409
16399
|
}
|
|
16410
|
-
let
|
|
16411
|
-
r[84] === O ?
|
|
16400
|
+
let SG;
|
|
16401
|
+
r[84] === O ? SG = r[85] : (SG = () => {
|
|
16412
16402
|
j(!O);
|
|
16413
|
-
}, r[84] = O, r[85] =
|
|
16414
|
-
let
|
|
16415
|
-
r[86] !== l || r[87] !==
|
|
16403
|
+
}, r[84] = O, r[85] = SG);
|
|
16404
|
+
let CG = SG, wG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, TG = W == null ? void 0 : W.rawRows, EG = Z && !q, DG = (W == null ? void 0 : W.totalRows) ?? e.totalRows, OG = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, kG = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, AG;
|
|
16405
|
+
r[86] !== l || r[87] !== _G || r[88] !== O || r[89] !== w || r[90] !== dG || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== cG || r[95] !== lG || r[96] !== p || r[97] !== wG || r[98] !== TG || r[99] !== EG || r[100] !== DG || r[101] !== OG || r[102] !== kG || r[103] !== CG ? (AG = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
16416
16406
|
...e,
|
|
16417
|
-
data:
|
|
16418
|
-
rawData:
|
|
16419
|
-
columnSummaries:
|
|
16407
|
+
data: wG,
|
|
16408
|
+
rawData: TG,
|
|
16409
|
+
columnSummaries: _G,
|
|
16420
16410
|
sorting: p,
|
|
16421
16411
|
setSorting: h,
|
|
16422
16412
|
searchQuery: y,
|
|
16423
16413
|
setSearchQuery: b,
|
|
16424
16414
|
filters: w,
|
|
16425
16415
|
setFilters: T,
|
|
16426
|
-
reloading:
|
|
16427
|
-
totalRows:
|
|
16428
|
-
sizeBytes:
|
|
16429
|
-
sizeBytesIsLoading:
|
|
16416
|
+
reloading: EG,
|
|
16417
|
+
totalRows: DG,
|
|
16418
|
+
sizeBytes: cG,
|
|
16419
|
+
sizeBytesIsLoading: lG,
|
|
16430
16420
|
paginationState: _,
|
|
16431
16421
|
setPaginationState: v,
|
|
16432
|
-
cellStyles:
|
|
16433
|
-
cellHoverTexts:
|
|
16434
|
-
toggleDisplayHeader:
|
|
16422
|
+
cellStyles: OG,
|
|
16423
|
+
cellHoverTexts: kG,
|
|
16424
|
+
toggleDisplayHeader: CG,
|
|
16435
16425
|
isChartBuilderOpen: O,
|
|
16436
|
-
getRow:
|
|
16426
|
+
getRow: dG,
|
|
16437
16427
|
cellId: l,
|
|
16438
16428
|
maxHeight: e.maxHeight
|
|
16439
|
-
}), r[86] = l, r[87] =
|
|
16440
|
-
let
|
|
16441
|
-
r[105] !== l || r[106] !==
|
|
16429
|
+
}), r[86] = l, r[87] = _G, r[88] = O, r[89] = w, r[90] = dG, r[91] = _, r[92] = e, r[93] = y, r[94] = cG, r[95] = lG, r[96] = p, r[97] = wG, r[98] = TG, r[99] = EG, r[100] = DG, r[101] = OG, r[102] = kG, r[103] = CG, r[104] = AG) : AG = r[104];
|
|
16430
|
+
let jG = AG, MG;
|
|
16431
|
+
r[105] !== l || r[106] !== jG || 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 ? (MG = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
16442
16432
|
displayHeader: O,
|
|
16443
16433
|
onCloseChartBuilder: () => j(false),
|
|
16444
16434
|
data: (W == null ? void 0 : W.rows) || [],
|
|
16445
16435
|
columns: e.totalColumns,
|
|
16446
16436
|
totalRows: e.totalRows,
|
|
16447
|
-
dataTable:
|
|
16437
|
+
dataTable: jG,
|
|
16448
16438
|
getDataUrl: e.get_data_url,
|
|
16449
16439
|
fieldTypes: e.fieldTypes,
|
|
16450
16440
|
rowHeaders: e.rowHeaders,
|
|
16451
16441
|
cellId: l
|
|
16452
|
-
}) :
|
|
16453
|
-
let
|
|
16454
|
-
return r[116] !==
|
|
16442
|
+
}) : jG, r[105] = l, r[106] = jG, 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] = MG) : MG = r[115];
|
|
16443
|
+
let NG;
|
|
16444
|
+
return r[116] !== xG || r[117] !== MG ? (NG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16455
16445
|
children: [
|
|
16456
|
-
|
|
16457
|
-
|
|
16446
|
+
xG,
|
|
16447
|
+
MG
|
|
16458
16448
|
]
|
|
16459
|
-
}), r[116] =
|
|
16449
|
+
}), r[116] = xG, r[117] = MG, r[118] = NG) : NG = r[118], NG;
|
|
16460
16450
|
});
|
|
16461
16451
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
16462
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, 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: Z, setFilters:
|
|
16463
|
-
let
|
|
16452
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, 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: Z, setFilters: ZW, reloading: QW, freezeColumnsLeft: $W, freezeColumnsRight: eG, hiddenColumns: tG, textJustifyColumns: nG, wrappedColumns: rG, columnWidths: iG, headerTooltip: aG, totalColumns: oG, get_row_ids: sG, cellStyles: cG, hoverTemplate: lG, cellHoverTexts: uG, toggleDisplayHeader: dG, isChartBuilderOpen: fG, calculate_top_k_rows: pG, preview_column: mG, getRow: hG, cellId: gG, maxHeight: _G }) => {
|
|
16453
|
+
let vG = (0, import_react.useId)(), { locale: yG } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [bG, xG] = (0, import_react.useState)(0), { isPanelOpen: SG, isAnyPanelOpen: CG, togglePanel: wG, panelType: TG, setPanelType: EG } = usePanelOwnership(vG, gG), DG = isStaticNotebook(), OG = (0, import_react.useMemo)(() => {
|
|
16464
16454
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16465
16455
|
let e2 = toFieldTypes(O);
|
|
16466
16456
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -16469,13 +16459,13 @@ ${c}
|
|
|
16469
16459
|
}, [
|
|
16470
16460
|
O,
|
|
16471
16461
|
L
|
|
16472
|
-
]),
|
|
16462
|
+
]), kG = useDeepCompareMemoize(O ?? inferFieldTypes(r)), AG = (0, import_react.useMemo)(() => p === "all" ? kG : kG.slice(0, p), [
|
|
16473
16463
|
p,
|
|
16474
|
-
|
|
16475
|
-
]),
|
|
16464
|
+
kG
|
|
16465
|
+
]), jG = (0, import_react.useMemo)(() => {
|
|
16476
16466
|
let e2 = {};
|
|
16477
16467
|
if (r && r.length > 0) {
|
|
16478
|
-
for (let [c2, l2] of
|
|
16468
|
+
for (let [c2, l2] of AG) if (l2[0] === "number") {
|
|
16479
16469
|
let l3 = 0;
|
|
16480
16470
|
for (let e3 of r) {
|
|
16481
16471
|
let r2 = e3[c2];
|
|
@@ -16490,95 +16480,95 @@ ${c}
|
|
|
16490
16480
|
return e2;
|
|
16491
16481
|
}, [
|
|
16492
16482
|
r,
|
|
16493
|
-
|
|
16494
|
-
]),
|
|
16495
|
-
O || (T = false),
|
|
16496
|
-
let
|
|
16497
|
-
rowHeaders:
|
|
16483
|
+
AG
|
|
16484
|
+
]), MG = useDeepCompareMemoize(E), NG = useDeepCompareMemoize(nG), PG = useDeepCompareMemoize(rG), FG = useDeepCompareMemoize(iG), IG = useDeepCompareMemoize(OG), LG = useDeepCompareMemoize(jG), RG = AG.length;
|
|
16485
|
+
O || (T = false), DG && (h = null);
|
|
16486
|
+
let zG = (0, import_react.useMemo)(() => generateColumns({
|
|
16487
|
+
rowHeaders: MG,
|
|
16498
16488
|
selection: h,
|
|
16499
|
-
chartSpecModel:
|
|
16500
|
-
fieldTypes:
|
|
16501
|
-
textJustifyColumns:
|
|
16502
|
-
wrappedColumns:
|
|
16503
|
-
columnWidths:
|
|
16504
|
-
headerTooltip:
|
|
16489
|
+
chartSpecModel: IG,
|
|
16490
|
+
fieldTypes: AG,
|
|
16491
|
+
textJustifyColumns: NG,
|
|
16492
|
+
wrappedColumns: PG,
|
|
16493
|
+
columnWidths: FG,
|
|
16494
|
+
headerTooltip: aG,
|
|
16505
16495
|
showDataTypes: T,
|
|
16506
|
-
calculateTopKRows:
|
|
16507
|
-
fractionDigitsByColumn:
|
|
16496
|
+
calculateTopKRows: pG,
|
|
16497
|
+
fractionDigitsByColumn: LG
|
|
16508
16498
|
}), [
|
|
16509
16499
|
h,
|
|
16510
16500
|
T,
|
|
16511
|
-
|
|
16501
|
+
IG,
|
|
16502
|
+
MG,
|
|
16503
|
+
AG,
|
|
16512
16504
|
NG,
|
|
16513
|
-
jG,
|
|
16514
16505
|
PG,
|
|
16515
16506
|
FG,
|
|
16516
|
-
|
|
16517
|
-
|
|
16518
|
-
|
|
16519
|
-
|
|
16520
|
-
]), VG = (0, import_react.useMemo)(() => Object.fromEntries((g || []).map((e2) => [
|
|
16507
|
+
aG,
|
|
16508
|
+
pG,
|
|
16509
|
+
LG
|
|
16510
|
+
]), BG = (0, import_react.useMemo)(() => Object.fromEntries((g || []).map((e2) => [
|
|
16521
16511
|
e2,
|
|
16522
16512
|
true
|
|
16523
16513
|
])), [
|
|
16524
16514
|
g
|
|
16525
|
-
]),
|
|
16515
|
+
]), VG = useEvent_default((e2) => {
|
|
16526
16516
|
if (h === "single") {
|
|
16527
16517
|
let r2 = Functions.asUpdater(e2)({});
|
|
16528
16518
|
z(Object.keys(r2).slice(0, 1));
|
|
16529
16519
|
}
|
|
16530
16520
|
if (h === "multi") {
|
|
16531
|
-
let r2 = Functions.asUpdater(e2)(
|
|
16521
|
+
let r2 = Functions.asUpdater(e2)(BG);
|
|
16532
16522
|
z(Object.keys(r2));
|
|
16533
16523
|
}
|
|
16534
|
-
}),
|
|
16535
|
-
if (
|
|
16524
|
+
}), HG = useEvent_default((e2) => {
|
|
16525
|
+
if (xG(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
16536
16526
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
16537
16527
|
r2 !== null && M((e3) => ({
|
|
16538
16528
|
...e3,
|
|
16539
16529
|
pageIndex: r2
|
|
16540
16530
|
}));
|
|
16541
|
-
}),
|
|
16542
|
-
h === "single-cell" && z(Functions.asUpdater(e2)(
|
|
16543
|
-
}),
|
|
16544
|
-
if (!(!
|
|
16531
|
+
}), UG = g.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), WG = useEvent_default((e2) => {
|
|
16532
|
+
h === "single-cell" && z(Functions.asUpdater(e2)(UG).slice(0, 1)), h === "multi-cell" && z(Functions.asUpdater(e2)(UG));
|
|
16533
|
+
}), GG = h === "multi" || h === "single", KG = b && !!mG, qG = isInVscodeExtension(), JG = isIslands(), YG = (0, import_react.useMemo)(() => {
|
|
16534
|
+
if (!(!CG || !(S || KG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
16545
16535
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
16546
|
-
rowIdx:
|
|
16547
|
-
setRowIdx:
|
|
16536
|
+
rowIdx: bG,
|
|
16537
|
+
setRowIdx: HG,
|
|
16548
16538
|
totalRows: l,
|
|
16549
|
-
fieldTypes:
|
|
16550
|
-
getRow:
|
|
16551
|
-
isSelectable:
|
|
16552
|
-
isRowSelected: !!
|
|
16553
|
-
handleRowSelectionChange:
|
|
16554
|
-
previewColumn:
|
|
16555
|
-
totalColumns:
|
|
16556
|
-
tableId:
|
|
16539
|
+
fieldTypes: kG,
|
|
16540
|
+
getRow: hG,
|
|
16541
|
+
isSelectable: GG,
|
|
16542
|
+
isRowSelected: !!BG[bG],
|
|
16543
|
+
handleRowSelectionChange: VG,
|
|
16544
|
+
previewColumn: mG,
|
|
16545
|
+
totalColumns: oG,
|
|
16546
|
+
tableId: vG,
|
|
16557
16547
|
table: e2,
|
|
16558
|
-
showRowExplorer: S && !
|
|
16559
|
-
showColumnExplorer:
|
|
16560
|
-
activeTab:
|
|
16561
|
-
onTabChange:
|
|
16548
|
+
showRowExplorer: S && !qG,
|
|
16549
|
+
showColumnExplorer: KG && !qG,
|
|
16550
|
+
activeTab: TG,
|
|
16551
|
+
onTabChange: EG
|
|
16562
16552
|
})
|
|
16563
16553
|
});
|
|
16564
16554
|
}, [
|
|
16565
|
-
|
|
16555
|
+
CG,
|
|
16566
16556
|
S,
|
|
16567
|
-
qG,
|
|
16568
|
-
xG,
|
|
16569
|
-
UG,
|
|
16570
|
-
l,
|
|
16571
|
-
AG,
|
|
16572
|
-
gG,
|
|
16573
16557
|
KG,
|
|
16574
|
-
|
|
16558
|
+
bG,
|
|
16575
16559
|
HG,
|
|
16560
|
+
l,
|
|
16561
|
+
kG,
|
|
16576
16562
|
hG,
|
|
16577
|
-
|
|
16578
|
-
|
|
16579
|
-
|
|
16580
|
-
|
|
16581
|
-
|
|
16563
|
+
GG,
|
|
16564
|
+
BG,
|
|
16565
|
+
VG,
|
|
16566
|
+
mG,
|
|
16567
|
+
oG,
|
|
16568
|
+
vG,
|
|
16569
|
+
qG,
|
|
16570
|
+
TG,
|
|
16571
|
+
EG
|
|
16582
16572
|
]);
|
|
16583
16573
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16584
16574
|
children: [
|
|
@@ -16590,27 +16580,27 @@ ${c}
|
|
|
16590
16580
|
" rows."
|
|
16591
16581
|
]
|
|
16592
16582
|
}),
|
|
16593
|
-
|
|
16583
|
+
RG < oG && RG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16594
16584
|
className: "mb-1 rounded",
|
|
16595
16585
|
children: [
|
|
16596
16586
|
"Result clipped. Showing ",
|
|
16597
|
-
|
|
16587
|
+
RG,
|
|
16598
16588
|
" of ",
|
|
16599
|
-
|
|
16589
|
+
oG,
|
|
16600
16590
|
" columns."
|
|
16601
16591
|
]
|
|
16602
16592
|
}),
|
|
16603
|
-
|
|
16593
|
+
DG && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16604
16594
|
className: "mb-1 rounded",
|
|
16605
16595
|
children: [
|
|
16606
16596
|
"Showing the first ",
|
|
16607
16597
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16608
|
-
children: prettyNumber(r.length,
|
|
16598
|
+
children: prettyNumber(r.length, yG)
|
|
16609
16599
|
}),
|
|
16610
16600
|
" ",
|
|
16611
16601
|
"of ",
|
|
16612
16602
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16613
|
-
children: prettyNumber(l,
|
|
16603
|
+
children: prettyNumber(l, yG)
|
|
16614
16604
|
}),
|
|
16615
16605
|
" rows. Increase the table's ",
|
|
16616
16606
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -16624,7 +16614,7 @@ ${c}
|
|
|
16624
16614
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
16625
16615
|
}),
|
|
16626
16616
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
16627
|
-
value:
|
|
16617
|
+
value: OG,
|
|
16628
16618
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
16629
16619
|
label: e,
|
|
16630
16620
|
align: "top",
|
|
@@ -16632,14 +16622,14 @@ ${c}
|
|
|
16632
16622
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
16633
16623
|
data: r,
|
|
16634
16624
|
rawData: c,
|
|
16635
|
-
columns:
|
|
16625
|
+
columns: zG,
|
|
16636
16626
|
className: R,
|
|
16637
|
-
maxHeight:
|
|
16627
|
+
maxHeight: _G,
|
|
16638
16628
|
sorting: B,
|
|
16639
16629
|
totalRows: l,
|
|
16640
16630
|
sizeBytes: u,
|
|
16641
16631
|
sizeBytesIsLoading: f,
|
|
16642
|
-
totalColumns:
|
|
16632
|
+
totalColumns: oG,
|
|
16643
16633
|
manualSorting: true,
|
|
16644
16634
|
setSorting: H,
|
|
16645
16635
|
pagination: m,
|
|
@@ -16647,37 +16637,37 @@ ${c}
|
|
|
16647
16637
|
selection: h,
|
|
16648
16638
|
paginationState: j,
|
|
16649
16639
|
setPaginationState: M,
|
|
16650
|
-
rowSelection:
|
|
16651
|
-
cellSelection:
|
|
16652
|
-
cellStyling:
|
|
16653
|
-
hoverTemplate:
|
|
16654
|
-
cellHoverTexts:
|
|
16640
|
+
rowSelection: BG,
|
|
16641
|
+
cellSelection: UG,
|
|
16642
|
+
cellStyling: cG,
|
|
16643
|
+
hoverTemplate: lG,
|
|
16644
|
+
cellHoverTexts: uG,
|
|
16655
16645
|
downloadAs: v ? I : void 0,
|
|
16656
16646
|
showSearch: W,
|
|
16657
16647
|
searchQuery: G,
|
|
16658
16648
|
onSearchQueryChange: q,
|
|
16659
16649
|
showFilters: _,
|
|
16660
16650
|
filters: Z,
|
|
16661
|
-
onFiltersChange:
|
|
16662
|
-
calculateTopKRows:
|
|
16663
|
-
reloading:
|
|
16664
|
-
onRowSelectionChange:
|
|
16665
|
-
freezeColumnsLeft:
|
|
16666
|
-
freezeColumnsRight:
|
|
16667
|
-
hiddenColumns:
|
|
16668
|
-
onCellSelectionChange:
|
|
16669
|
-
getRowIds:
|
|
16670
|
-
toggleDisplayHeader:
|
|
16671
|
-
showChartBuilder: w && !
|
|
16672
|
-
isChartBuilderOpen:
|
|
16651
|
+
onFiltersChange: ZW,
|
|
16652
|
+
calculateTopKRows: pG,
|
|
16653
|
+
reloading: QW,
|
|
16654
|
+
onRowSelectionChange: VG,
|
|
16655
|
+
freezeColumnsLeft: $W,
|
|
16656
|
+
freezeColumnsRight: eG,
|
|
16657
|
+
hiddenColumns: tG,
|
|
16658
|
+
onCellSelectionChange: WG,
|
|
16659
|
+
getRowIds: sG,
|
|
16660
|
+
toggleDisplayHeader: dG,
|
|
16661
|
+
showChartBuilder: w && !JG,
|
|
16662
|
+
isChartBuilderOpen: fG,
|
|
16673
16663
|
showPageSizeSelector: y,
|
|
16674
|
-
showTableExplorer: (S ||
|
|
16675
|
-
togglePanel:
|
|
16676
|
-
isPanelOpen:
|
|
16677
|
-
isAnyPanelOpen:
|
|
16678
|
-
viewedRowIdx:
|
|
16679
|
-
onViewedRowChange: (e2) =>
|
|
16680
|
-
renderTableExplorerPanel:
|
|
16664
|
+
showTableExplorer: (S || KG) && !qG && !JG,
|
|
16665
|
+
togglePanel: wG,
|
|
16666
|
+
isPanelOpen: SG,
|
|
16667
|
+
isAnyPanelOpen: CG,
|
|
16668
|
+
viewedRowIdx: bG,
|
|
16669
|
+
onViewedRowChange: (e2) => xG(e2),
|
|
16670
|
+
renderTableExplorerPanel: YG
|
|
16681
16671
|
})
|
|
16682
16672
|
})
|
|
16683
16673
|
})
|
|
@@ -17036,7 +17026,7 @@ ${c}
|
|
|
17036
17026
|
fullWidth: p,
|
|
17037
17027
|
children: T
|
|
17038
17028
|
}), r[20] = p, r[21] = g, r[22] = c, r[23] = T, r[24] = E) : E = r[24], E;
|
|
17039
|
-
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
17029
|
+
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-f9vLjQiF.js"));
|
|
17040
17030
|
const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object({
|
|
17041
17031
|
label: string().nullish(),
|
|
17042
17032
|
data: string()
|
|
@@ -18729,27 +18719,27 @@ ${c}
|
|
|
18729
18719
|
], r[2] = w, r[3] = T);
|
|
18730
18720
|
let { data: E, error: O, isPending: j } = useAsyncData(S, T), M;
|
|
18731
18721
|
r[4] === E ? M = r[5] : (M = E || {}, r[4] = E, r[5] = M);
|
|
18732
|
-
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, Z] = (0, import_react.useState)(p || EMPTY),
|
|
18733
|
-
r[6] === f ?
|
|
18722
|
+
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, Z] = (0, import_react.useState)(p || EMPTY), ZW = (0, import_react.useRef)(null), QW;
|
|
18723
|
+
r[6] === f ? QW = r[7] : (QW = (e2) => {
|
|
18734
18724
|
var _a5;
|
|
18735
|
-
f && e2 !== "transform" && ((_a5 =
|
|
18736
|
-
}, r[6] = f, r[7] =
|
|
18737
|
-
let
|
|
18738
|
-
r[8] === q ?
|
|
18739
|
-
|
|
18740
|
-
}, r[8] = q, r[9] =
|
|
18741
|
-
let
|
|
18742
|
-
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (
|
|
18743
|
-
let e2 =
|
|
18725
|
+
f && e2 !== "transform" && ((_a5 = ZW.current) == null ? void 0 : _a5.submit());
|
|
18726
|
+
}, r[6] = f, r[7] = QW);
|
|
18727
|
+
let $W = QW, eG = (0, import_react.useRef)(q), tG;
|
|
18728
|
+
r[8] === q ? tG = r[9] : (tG = () => {
|
|
18729
|
+
eG.current = q;
|
|
18730
|
+
}, r[8] = q, r[9] = tG), (0, import_react.useEffect)(tG);
|
|
18731
|
+
let nG;
|
|
18732
|
+
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (nG = () => {
|
|
18733
|
+
let e2 = eG.current;
|
|
18744
18734
|
(p == null ? void 0 : p.transforms.length) !== e2.transforms.length && m(e2);
|
|
18745
|
-
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] =
|
|
18746
|
-
let
|
|
18747
|
-
r[13] !== E || r[14] !== m || r[15] !==
|
|
18735
|
+
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] = nG) : nG = r[12];
|
|
18736
|
+
let rG = p == null ? void 0 : p.transforms.length, aG;
|
|
18737
|
+
r[13] !== E || r[14] !== m || r[15] !== rG ? (aG = [
|
|
18748
18738
|
E,
|
|
18749
|
-
|
|
18750
|
-
|
|
18739
|
+
rG,
|
|
18740
|
+
eG,
|
|
18751
18741
|
m
|
|
18752
|
-
], r[13] = E, r[14] = m, r[15] =
|
|
18742
|
+
], r[13] = E, r[14] = m, r[15] = rG, r[16] = aG) : aG = r[16], (0, import_react.useEffect)(nG, aG);
|
|
18753
18743
|
let oG;
|
|
18754
18744
|
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oG = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18755
18745
|
value: "transform",
|
|
@@ -18818,7 +18808,7 @@ ${c}
|
|
|
18818
18808
|
value: "transform",
|
|
18819
18809
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18820
18810
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18821
|
-
ref:
|
|
18811
|
+
ref: ZW,
|
|
18822
18812
|
initialValue: q,
|
|
18823
18813
|
columns: c,
|
|
18824
18814
|
onChange: pG,
|
|
@@ -18851,16 +18841,16 @@ ${c}
|
|
|
18851
18841
|
})
|
|
18852
18842
|
}), r[43] = W, r[44] = gG);
|
|
18853
18843
|
let _G;
|
|
18854
|
-
r[45] !==
|
|
18844
|
+
r[45] !== $W || r[46] !== fG || r[47] !== mG || r[48] !== hG || r[49] !== gG ? (_G = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18855
18845
|
defaultValue: "transform",
|
|
18856
|
-
onValueChange:
|
|
18846
|
+
onValueChange: $W,
|
|
18857
18847
|
children: [
|
|
18858
18848
|
fG,
|
|
18859
18849
|
mG,
|
|
18860
18850
|
hG,
|
|
18861
18851
|
gG
|
|
18862
18852
|
]
|
|
18863
|
-
}), r[45] =
|
|
18853
|
+
}), r[45] = $W, r[46] = fG, r[47] = mG, r[48] = hG, r[49] = gG, r[50] = _G) : _G = r[50];
|
|
18864
18854
|
let vG;
|
|
18865
18855
|
r[51] === O ? vG = r[52] : (vG = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18866
18856
|
error: O
|
|
@@ -19088,30 +19078,30 @@ ${c}
|
|
|
19088
19078
|
}, [
|
|
19089
19079
|
B
|
|
19090
19080
|
]);
|
|
19091
|
-
let H = `${g}::${L}`, [W,
|
|
19092
|
-
W !== H && (
|
|
19081
|
+
let H = `${g}::${L}`, [W, G] = (0, import_react.useState)(H);
|
|
19082
|
+
W !== H && (G(H), E(0)), (0, import_react.useLayoutEffect)(() => {
|
|
19093
19083
|
var _a6;
|
|
19094
19084
|
M.current && (M.current = false, (_a6 = O.current[0]) == null ? void 0 : _a6.focus());
|
|
19095
19085
|
}, [
|
|
19096
19086
|
H
|
|
19097
19087
|
]);
|
|
19098
|
-
let Z = (R == null ? void 0 : R.files) ?? [],
|
|
19088
|
+
let Z = (R == null ? void 0 : R.files) ?? [], ZW = new Set(e.map((e2) => e2.path)), QW = l === "directory" || l === "all", $W = l === "file" || l === "all", eG = Z.filter((e2) => QW && e2.is_directory || $W && !e2.is_directory), tG = eG.length > 0 && eG.every((e2) => ZW.has(e2.path));
|
|
19099
19089
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
19100
19090
|
kind: "danger",
|
|
19101
19091
|
children: z.message
|
|
19102
19092
|
});
|
|
19103
|
-
let
|
|
19093
|
+
let nG = PathBuilder.guessDeliminator(c).deliminator, iG = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
19104
19094
|
children: e2.path
|
|
19105
19095
|
}, e2.id));
|
|
19106
|
-
function
|
|
19096
|
+
function aG(e2) {
|
|
19107
19097
|
var _a6;
|
|
19108
19098
|
if (v) return;
|
|
19109
19099
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
19110
|
-
if (g ===
|
|
19100
|
+
if (g === nG) {
|
|
19111
19101
|
y(false);
|
|
19112
19102
|
return;
|
|
19113
19103
|
}
|
|
19114
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
19104
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = nG);
|
|
19115
19105
|
}
|
|
19116
19106
|
let r2 = e2.length < c.length;
|
|
19117
19107
|
if (f && r2) {
|
|
@@ -19124,7 +19114,7 @@ ${c}
|
|
|
19124
19114
|
}
|
|
19125
19115
|
M.current = ((_a6 = j.current) == null ? void 0 : _a6.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
19126
19116
|
}
|
|
19127
|
-
function
|
|
19117
|
+
function oG({ path: e2, name: r2, isDirectory: c2 }) {
|
|
19128
19118
|
return {
|
|
19129
19119
|
id: e2,
|
|
19130
19120
|
name: r2,
|
|
@@ -19132,27 +19122,27 @@ ${c}
|
|
|
19132
19122
|
is_directory: c2
|
|
19133
19123
|
};
|
|
19134
19124
|
}
|
|
19135
|
-
function
|
|
19136
|
-
let f2 =
|
|
19125
|
+
function sG({ path: c2, name: l2, isDirectory: d2 }) {
|
|
19126
|
+
let f2 = oG({
|
|
19137
19127
|
path: c2,
|
|
19138
19128
|
name: l2,
|
|
19139
19129
|
isDirectory: d2
|
|
19140
19130
|
});
|
|
19141
|
-
|
|
19131
|
+
ZW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
19142
19132
|
...e,
|
|
19143
19133
|
f2
|
|
19144
19134
|
] : [
|
|
19145
19135
|
f2
|
|
19146
19136
|
]);
|
|
19147
19137
|
}
|
|
19148
|
-
function
|
|
19138
|
+
function cG() {
|
|
19149
19139
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
19150
19140
|
}
|
|
19151
|
-
function
|
|
19141
|
+
function lG() {
|
|
19152
19142
|
let c2 = [];
|
|
19153
19143
|
for (let e2 of Z) {
|
|
19154
|
-
if (
|
|
19155
|
-
let r2 =
|
|
19144
|
+
if (!QW && e2.is_directory || ZW.has(e2.path)) continue;
|
|
19145
|
+
let r2 = oG({
|
|
19156
19146
|
path: e2.path,
|
|
19157
19147
|
name: e2.name,
|
|
19158
19148
|
isDirectory: e2.is_directory
|
|
@@ -19164,20 +19154,20 @@ ${c}
|
|
|
19164
19154
|
...c2
|
|
19165
19155
|
]);
|
|
19166
19156
|
}
|
|
19167
|
-
let
|
|
19157
|
+
let uG = [
|
|
19168
19158
|
{
|
|
19169
19159
|
key: "parent",
|
|
19170
19160
|
name: PARENT_DIRECTORY,
|
|
19171
19161
|
Icon: CornerLeftUp,
|
|
19172
19162
|
isSelected: false,
|
|
19173
19163
|
canSelect: false,
|
|
19174
|
-
onPrimary: () =>
|
|
19164
|
+
onPrimary: () => aG(PARENT_DIRECTORY),
|
|
19175
19165
|
onToggleSelect: null
|
|
19176
19166
|
},
|
|
19177
19167
|
...Z.map((e2) => {
|
|
19178
19168
|
let r2 = e2.path;
|
|
19179
19169
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
19180
|
-
let c2 =
|
|
19170
|
+
let c2 = QW && e2.is_directory || $W && !e2.is_directory, l2 = ZW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => sG({
|
|
19181
19171
|
path: r2,
|
|
19182
19172
|
name: e2.name,
|
|
19183
19173
|
isDirectory: e2.is_directory
|
|
@@ -19188,46 +19178,46 @@ ${c}
|
|
|
19188
19178
|
Icon: FILE_ICON[u2],
|
|
19189
19179
|
isSelected: l2,
|
|
19190
19180
|
canSelect: c2,
|
|
19191
|
-
onPrimary: e2.is_directory ? () =>
|
|
19181
|
+
onPrimary: e2.is_directory ? () => aG(r2) : c2 ? d2 : () => {
|
|
19192
19182
|
},
|
|
19193
19183
|
onToggleSelect: c2 ? d2 : null
|
|
19194
19184
|
};
|
|
19195
19185
|
})
|
|
19196
19186
|
];
|
|
19197
|
-
function
|
|
19187
|
+
function dG(e2) {
|
|
19198
19188
|
var _a6;
|
|
19199
19189
|
E(e2), (_a6 = O.current[e2]) == null ? void 0 : _a6.focus();
|
|
19200
19190
|
}
|
|
19201
|
-
function
|
|
19191
|
+
function fG(e2, r2) {
|
|
19202
19192
|
var _a6, _b3;
|
|
19203
|
-
let c2 =
|
|
19193
|
+
let c2 = uG.length - 1;
|
|
19204
19194
|
switch (e2.key) {
|
|
19205
19195
|
case "ArrowDown":
|
|
19206
|
-
e2.preventDefault(),
|
|
19196
|
+
e2.preventDefault(), dG(Math.min(r2 + 1, c2));
|
|
19207
19197
|
break;
|
|
19208
19198
|
case "ArrowUp":
|
|
19209
|
-
e2.preventDefault(),
|
|
19199
|
+
e2.preventDefault(), dG(Math.max(r2 - 1, 0));
|
|
19210
19200
|
break;
|
|
19211
19201
|
case "Home":
|
|
19212
|
-
e2.preventDefault(),
|
|
19202
|
+
e2.preventDefault(), dG(0);
|
|
19213
19203
|
break;
|
|
19214
19204
|
case "End":
|
|
19215
|
-
e2.preventDefault(),
|
|
19205
|
+
e2.preventDefault(), dG(c2);
|
|
19216
19206
|
break;
|
|
19217
19207
|
case "Enter":
|
|
19218
|
-
e2.preventDefault(),
|
|
19208
|
+
e2.preventDefault(), uG[r2].onPrimary();
|
|
19219
19209
|
break;
|
|
19220
19210
|
case " ":
|
|
19221
|
-
e2.preventDefault(), (_b3 = (_a6 =
|
|
19211
|
+
e2.preventDefault(), (_b3 = (_a6 = uG[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a6);
|
|
19222
19212
|
break;
|
|
19223
19213
|
}
|
|
19224
19214
|
}
|
|
19225
|
-
let { parentDirectories:
|
|
19215
|
+
let { parentDirectories: pG } = getProtocolAndParentDirectories({
|
|
19226
19216
|
path: g,
|
|
19227
|
-
delimiter:
|
|
19217
|
+
delimiter: nG,
|
|
19228
19218
|
initialPath: c,
|
|
19229
19219
|
restrictNavigation: f
|
|
19230
|
-
}),
|
|
19220
|
+
}), mG = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
19231
19221
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
19232
19222
|
children: [
|
|
19233
19223
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -19237,7 +19227,7 @@ ${c}
|
|
|
19237
19227
|
(() => {
|
|
19238
19228
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
19239
19229
|
children: renderHTML({
|
|
19240
|
-
html: d ?? `Select ${
|
|
19230
|
+
html: d ?? `Select ${mG.join(" and ", 2)}...`
|
|
19241
19231
|
})
|
|
19242
19232
|
});
|
|
19243
19233
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -19251,8 +19241,8 @@ ${c}
|
|
|
19251
19241
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
19252
19242
|
size: "xs",
|
|
19253
19243
|
variant: "link",
|
|
19254
|
-
onClick:
|
|
19255
|
-
children:
|
|
19244
|
+
onClick: tG ? cG : lG,
|
|
19245
|
+
children: tG ? "Deselect all" : "Select all"
|
|
19256
19246
|
})
|
|
19257
19247
|
})
|
|
19258
19248
|
]
|
|
@@ -19262,8 +19252,8 @@ ${c}
|
|
|
19262
19252
|
className: "mt-2 w-full",
|
|
19263
19253
|
placeholder: g,
|
|
19264
19254
|
value: g,
|
|
19265
|
-
onChange: (e2) =>
|
|
19266
|
-
children:
|
|
19255
|
+
onChange: (e2) => aG(e2.target.value),
|
|
19256
|
+
children: pG.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
19267
19257
|
value: e2,
|
|
19268
19258
|
children: e2
|
|
19269
19259
|
}, e2))
|
|
@@ -19299,14 +19289,14 @@ ${c}
|
|
|
19299
19289
|
"aria-label": "File browser",
|
|
19300
19290
|
"aria-multiselectable": u,
|
|
19301
19291
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
19302
|
-
children:
|
|
19292
|
+
children: uG.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
19303
19293
|
role: "row",
|
|
19304
19294
|
ref: (e3) => {
|
|
19305
19295
|
O.current[r2] = e3;
|
|
19306
19296
|
},
|
|
19307
19297
|
tabIndex: r2 === w ? 0 : -1,
|
|
19308
19298
|
onFocus: () => E(r2),
|
|
19309
|
-
onKeyDown: (e3) =>
|
|
19299
|
+
onKeyDown: (e3) => fG(e3, r2),
|
|
19310
19300
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
19311
19301
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
19312
19302
|
}),
|
|
@@ -19349,7 +19339,7 @@ ${c}
|
|
|
19349
19339
|
children: [
|
|
19350
19340
|
e.length,
|
|
19351
19341
|
" ",
|
|
19352
|
-
|
|
19342
|
+
mG.join(" or ", e.length),
|
|
19353
19343
|
" ",
|
|
19354
19344
|
"selected"
|
|
19355
19345
|
]
|
|
@@ -24751,55 +24741,55 @@ ${c}
|
|
|
24751
24741
|
return typeof S == "function" ? S : noop$2;
|
|
24752
24742
|
}, [
|
|
24753
24743
|
S
|
|
24754
|
-
]), q = (0, import_react.useRef)(null), Z = (0, import_react.useRef)(null),
|
|
24755
|
-
!
|
|
24756
|
-
Z.current && (Z.current.files.length || (
|
|
24744
|
+
]), q = (0, import_react.useRef)(null), Z = (0, import_react.useRef)(null), ZW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), QW = ZW[0], $W = ZW[1], eG = QW.isFocused, tG = QW.isFileDialogActive, nG = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), rG = function() {
|
|
24745
|
+
!nG.current && tG && setTimeout(function() {
|
|
24746
|
+
Z.current && (Z.current.files.length || ($W({
|
|
24757
24747
|
type: "closeDialog"
|
|
24758
24748
|
}), G()));
|
|
24759
24749
|
}, 300);
|
|
24760
24750
|
};
|
|
24761
24751
|
(0, import_react.useEffect)(function() {
|
|
24762
|
-
return window.addEventListener("focus",
|
|
24763
|
-
window.removeEventListener("focus",
|
|
24752
|
+
return window.addEventListener("focus", rG, false), function() {
|
|
24753
|
+
window.removeEventListener("focus", rG, false);
|
|
24764
24754
|
};
|
|
24765
24755
|
}, [
|
|
24766
24756
|
Z,
|
|
24767
|
-
|
|
24757
|
+
tG,
|
|
24768
24758
|
G,
|
|
24769
|
-
|
|
24759
|
+
nG
|
|
24770
24760
|
]);
|
|
24771
|
-
var
|
|
24772
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
24761
|
+
var iG = (0, import_react.useRef)([]), aG = (0, import_react.useRef)([]), oG = function(e2) {
|
|
24762
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), iG.current = []);
|
|
24773
24763
|
};
|
|
24774
24764
|
(0, import_react.useEffect)(function() {
|
|
24775
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
24776
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
24765
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", oG, false)), function() {
|
|
24766
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", oG));
|
|
24777
24767
|
};
|
|
24778
24768
|
}, [
|
|
24779
24769
|
q,
|
|
24780
24770
|
O
|
|
24781
24771
|
]), (0, import_react.useEffect)(function() {
|
|
24782
24772
|
var e2 = function(e3) {
|
|
24783
|
-
|
|
24773
|
+
aG.current = [].concat(_toConsumableArray(aG.current), [
|
|
24784
24774
|
e3.target
|
|
24785
|
-
]), isEvtWithFiles(e3) &&
|
|
24775
|
+
]), isEvtWithFiles(e3) && $W({
|
|
24786
24776
|
isDragGlobal: true,
|
|
24787
24777
|
type: "setDragGlobal"
|
|
24788
24778
|
});
|
|
24789
24779
|
}, r2 = function(e3) {
|
|
24790
|
-
|
|
24780
|
+
aG.current = aG.current.filter(function(r3) {
|
|
24791
24781
|
return r3 !== e3.target && r3 !== null;
|
|
24792
|
-
}), !(
|
|
24782
|
+
}), !(aG.current.length > 0) && $W({
|
|
24793
24783
|
isDragGlobal: false,
|
|
24794
24784
|
type: "setDragGlobal"
|
|
24795
24785
|
});
|
|
24796
24786
|
}, c2 = function() {
|
|
24797
|
-
|
|
24787
|
+
aG.current = [], $W({
|
|
24798
24788
|
isDragGlobal: false,
|
|
24799
24789
|
type: "setDragGlobal"
|
|
24800
24790
|
});
|
|
24801
24791
|
}, l2 = function() {
|
|
24802
|
-
|
|
24792
|
+
aG.current = [], $W({
|
|
24803
24793
|
isDragGlobal: false,
|
|
24804
24794
|
type: "setDragGlobal"
|
|
24805
24795
|
});
|
|
@@ -24817,12 +24807,12 @@ ${c}
|
|
|
24817
24807
|
E,
|
|
24818
24808
|
l
|
|
24819
24809
|
]);
|
|
24820
|
-
var
|
|
24810
|
+
var sG = (0, import_react.useCallback)(function(e2) {
|
|
24821
24811
|
R ? R(e2) : console.error(e2);
|
|
24822
24812
|
}, [
|
|
24823
24813
|
R
|
|
24824
|
-
]),
|
|
24825
|
-
e2.preventDefault(), e2.persist(),
|
|
24814
|
+
]), cG = (0, import_react.useCallback)(function(e2) {
|
|
24815
|
+
e2.preventDefault(), e2.persist(), xG(e2), iG.current = [].concat(_toConsumableArray(iG.current), [
|
|
24826
24816
|
e2.target
|
|
24827
24817
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24828
24818
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -24835,7 +24825,7 @@ ${c}
|
|
|
24835
24825
|
maxFiles: m,
|
|
24836
24826
|
validator: z
|
|
24837
24827
|
});
|
|
24838
|
-
|
|
24828
|
+
$W({
|
|
24839
24829
|
isDragAccept: l2,
|
|
24840
24830
|
isDragReject: c2 > 0 && !l2,
|
|
24841
24831
|
isDragActive: true,
|
|
@@ -24843,12 +24833,12 @@ ${c}
|
|
|
24843
24833
|
}), h && h(e2);
|
|
24844
24834
|
}
|
|
24845
24835
|
}).catch(function(e3) {
|
|
24846
|
-
return
|
|
24836
|
+
return sG(e3);
|
|
24847
24837
|
});
|
|
24848
24838
|
}, [
|
|
24849
24839
|
u,
|
|
24850
24840
|
h,
|
|
24851
|
-
|
|
24841
|
+
sG,
|
|
24852
24842
|
L,
|
|
24853
24843
|
B,
|
|
24854
24844
|
f,
|
|
@@ -24856,8 +24846,8 @@ ${c}
|
|
|
24856
24846
|
p,
|
|
24857
24847
|
m,
|
|
24858
24848
|
z
|
|
24859
|
-
]),
|
|
24860
|
-
e2.preventDefault(), e2.persist(),
|
|
24849
|
+
]), lG = (0, import_react.useCallback)(function(e2) {
|
|
24850
|
+
e2.preventDefault(), e2.persist(), xG(e2);
|
|
24861
24851
|
var r2 = isEvtWithFiles(e2);
|
|
24862
24852
|
if (r2 && e2.dataTransfer) try {
|
|
24863
24853
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -24867,12 +24857,12 @@ ${c}
|
|
|
24867
24857
|
}, [
|
|
24868
24858
|
_,
|
|
24869
24859
|
L
|
|
24870
|
-
]),
|
|
24871
|
-
e2.preventDefault(), e2.persist(),
|
|
24872
|
-
var r2 =
|
|
24860
|
+
]), uG = (0, import_react.useCallback)(function(e2) {
|
|
24861
|
+
e2.preventDefault(), e2.persist(), xG(e2);
|
|
24862
|
+
var r2 = iG.current.filter(function(e3) {
|
|
24873
24863
|
return q.current && q.current.contains(e3);
|
|
24874
24864
|
}), c2 = r2.indexOf(e2.target);
|
|
24875
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
24865
|
+
c2 !== -1 && r2.splice(c2, 1), iG.current = r2, !(r2.length > 0) && ($W({
|
|
24876
24866
|
type: "setDraggedFiles",
|
|
24877
24867
|
isDragActive: false,
|
|
24878
24868
|
isDragAccept: false,
|
|
@@ -24882,7 +24872,7 @@ ${c}
|
|
|
24882
24872
|
q,
|
|
24883
24873
|
g,
|
|
24884
24874
|
L
|
|
24885
|
-
]),
|
|
24875
|
+
]), dG = (0, import_react.useCallback)(function(e2, r2) {
|
|
24886
24876
|
var c2 = [], l2 = [];
|
|
24887
24877
|
e2.forEach(function(e3) {
|
|
24888
24878
|
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;
|
|
@@ -24906,14 +24896,14 @@ ${c}
|
|
|
24906
24896
|
TOO_MANY_FILES_REJECTION
|
|
24907
24897
|
]
|
|
24908
24898
|
});
|
|
24909
|
-
}), c2.splice(0)),
|
|
24899
|
+
}), c2.splice(0)), $W({
|
|
24910
24900
|
acceptedFiles: c2,
|
|
24911
24901
|
fileRejections: l2,
|
|
24912
24902
|
isDragReject: l2.length > 0,
|
|
24913
24903
|
type: "setFiles"
|
|
24914
24904
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
24915
24905
|
}, [
|
|
24916
|
-
|
|
24906
|
+
$W,
|
|
24917
24907
|
p,
|
|
24918
24908
|
B,
|
|
24919
24909
|
f,
|
|
@@ -24923,22 +24913,22 @@ ${c}
|
|
|
24923
24913
|
y,
|
|
24924
24914
|
b,
|
|
24925
24915
|
z
|
|
24926
|
-
]),
|
|
24927
|
-
e2.preventDefault(), e2.persist(),
|
|
24928
|
-
isPropagationStopped(e2) && !L ||
|
|
24916
|
+
]), fG = (0, import_react.useCallback)(function(e2) {
|
|
24917
|
+
e2.preventDefault(), e2.persist(), xG(e2), iG.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24918
|
+
isPropagationStopped(e2) && !L || dG(r2, e2);
|
|
24929
24919
|
}).catch(function(e3) {
|
|
24930
|
-
return
|
|
24931
|
-
}),
|
|
24920
|
+
return sG(e3);
|
|
24921
|
+
}), $W({
|
|
24932
24922
|
type: "reset"
|
|
24933
24923
|
});
|
|
24934
24924
|
}, [
|
|
24935
24925
|
u,
|
|
24936
|
-
|
|
24937
|
-
|
|
24926
|
+
dG,
|
|
24927
|
+
sG,
|
|
24938
24928
|
L
|
|
24939
|
-
]),
|
|
24940
|
-
if (
|
|
24941
|
-
|
|
24929
|
+
]), pG = (0, import_react.useCallback)(function() {
|
|
24930
|
+
if (nG.current) {
|
|
24931
|
+
$W({
|
|
24942
24932
|
type: "openDialog"
|
|
24943
24933
|
}), W();
|
|
24944
24934
|
var e2 = {
|
|
@@ -24948,66 +24938,66 @@ ${c}
|
|
|
24948
24938
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
24949
24939
|
return u(e3);
|
|
24950
24940
|
}).then(function(e3) {
|
|
24951
|
-
|
|
24941
|
+
dG(e3, null), $W({
|
|
24952
24942
|
type: "closeDialog"
|
|
24953
24943
|
});
|
|
24954
24944
|
}).catch(function(e3) {
|
|
24955
|
-
isAbort(e3) ? (G(e3),
|
|
24945
|
+
isAbort(e3) ? (G(e3), $W({
|
|
24956
24946
|
type: "closeDialog"
|
|
24957
|
-
})) : isSecurityError(e3) ? (
|
|
24947
|
+
})) : isSecurityError(e3) ? (nG.current = false, Z.current ? (Z.current.value = null, Z.current.click()) : sG(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."))) : sG(e3);
|
|
24958
24948
|
});
|
|
24959
24949
|
return;
|
|
24960
24950
|
}
|
|
24961
|
-
Z.current && (
|
|
24951
|
+
Z.current && ($W({
|
|
24962
24952
|
type: "openDialog"
|
|
24963
24953
|
}), W(), Z.current.value = null, Z.current.click());
|
|
24964
24954
|
}, [
|
|
24965
|
-
|
|
24955
|
+
$W,
|
|
24966
24956
|
W,
|
|
24967
24957
|
G,
|
|
24968
24958
|
T,
|
|
24969
|
-
|
|
24970
|
-
|
|
24959
|
+
dG,
|
|
24960
|
+
sG,
|
|
24971
24961
|
H,
|
|
24972
24962
|
p
|
|
24973
|
-
]),
|
|
24974
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
24963
|
+
]), mG = (0, import_react.useCallback)(function(e2) {
|
|
24964
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), pG());
|
|
24975
24965
|
}, [
|
|
24976
24966
|
q,
|
|
24977
|
-
|
|
24978
|
-
]),
|
|
24979
|
-
|
|
24967
|
+
pG
|
|
24968
|
+
]), hG = (0, import_react.useCallback)(function() {
|
|
24969
|
+
$W({
|
|
24980
24970
|
type: "focus"
|
|
24981
24971
|
});
|
|
24982
|
-
}, []),
|
|
24983
|
-
|
|
24972
|
+
}, []), gG = (0, import_react.useCallback)(function() {
|
|
24973
|
+
$W({
|
|
24984
24974
|
type: "blur"
|
|
24985
24975
|
});
|
|
24986
|
-
}, []),
|
|
24987
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
24976
|
+
}, []), _G = (0, import_react.useCallback)(function() {
|
|
24977
|
+
j || (isIeOrEdge() ? setTimeout(pG, 0) : pG());
|
|
24988
24978
|
}, [
|
|
24989
24979
|
j,
|
|
24990
|
-
|
|
24991
|
-
]),
|
|
24980
|
+
pG
|
|
24981
|
+
]), vG = function(e2) {
|
|
24992
24982
|
return l ? null : e2;
|
|
24983
|
+
}, yG = function(e2) {
|
|
24984
|
+
return M ? null : vG(e2);
|
|
24993
24985
|
}, bG = function(e2) {
|
|
24994
|
-
return
|
|
24986
|
+
return I ? null : vG(e2);
|
|
24995
24987
|
}, xG = function(e2) {
|
|
24996
|
-
return I ? null : yG(e2);
|
|
24997
|
-
}, SG = function(e2) {
|
|
24998
24988
|
L && e2.stopPropagation();
|
|
24999
|
-
},
|
|
24989
|
+
}, SG = (0, import_react.useMemo)(function() {
|
|
25000
24990
|
return function() {
|
|
25001
24991
|
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);
|
|
25002
24992
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
25003
|
-
onKeyDown:
|
|
25004
|
-
onFocus:
|
|
25005
|
-
onBlur:
|
|
25006
|
-
onClick:
|
|
25007
|
-
onDragEnter:
|
|
25008
|
-
onDragOver:
|
|
25009
|
-
onDragLeave:
|
|
25010
|
-
onDrop:
|
|
24993
|
+
onKeyDown: yG(composeEventHandlers(d2, mG)),
|
|
24994
|
+
onFocus: yG(composeEventHandlers(f2, hG)),
|
|
24995
|
+
onBlur: yG(composeEventHandlers(p2, gG)),
|
|
24996
|
+
onClick: vG(composeEventHandlers(m2, _G)),
|
|
24997
|
+
onDragEnter: bG(composeEventHandlers(h2, cG)),
|
|
24998
|
+
onDragOver: bG(composeEventHandlers(g2, lG)),
|
|
24999
|
+
onDragLeave: bG(composeEventHandlers(_2, uG)),
|
|
25000
|
+
onDrop: bG(composeEventHandlers(v2, fG)),
|
|
25011
25001
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
25012
25002
|
}, c2, q), !l && !M ? {
|
|
25013
25003
|
tabIndex: 0
|
|
@@ -25015,20 +25005,20 @@ ${c}
|
|
|
25015
25005
|
};
|
|
25016
25006
|
}, [
|
|
25017
25007
|
q,
|
|
25008
|
+
mG,
|
|
25018
25009
|
hG,
|
|
25019
25010
|
gG,
|
|
25020
25011
|
_G,
|
|
25021
|
-
|
|
25012
|
+
cG,
|
|
25022
25013
|
lG,
|
|
25023
25014
|
uG,
|
|
25024
|
-
|
|
25025
|
-
pG,
|
|
25015
|
+
fG,
|
|
25026
25016
|
M,
|
|
25027
25017
|
I,
|
|
25028
25018
|
l
|
|
25029
|
-
]),
|
|
25019
|
+
]), CG = (0, import_react.useCallback)(function(e2) {
|
|
25030
25020
|
e2.stopPropagation();
|
|
25031
|
-
}, []),
|
|
25021
|
+
}, []), wG = (0, import_react.useMemo)(function() {
|
|
25032
25022
|
return function() {
|
|
25033
25023
|
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);
|
|
25034
25024
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -25047,8 +25037,8 @@ ${c}
|
|
|
25047
25037
|
width: "1px",
|
|
25048
25038
|
whiteSpace: "nowrap"
|
|
25049
25039
|
},
|
|
25050
|
-
onChange:
|
|
25051
|
-
onClick:
|
|
25040
|
+
onChange: vG(composeEventHandlers(l2, fG)),
|
|
25041
|
+
onClick: vG(composeEventHandlers(u2, CG)),
|
|
25052
25042
|
tabIndex: -1
|
|
25053
25043
|
}, c2, Z)), d2);
|
|
25054
25044
|
};
|
|
@@ -25056,16 +25046,16 @@ ${c}
|
|
|
25056
25046
|
Z,
|
|
25057
25047
|
c,
|
|
25058
25048
|
p,
|
|
25059
|
-
|
|
25049
|
+
fG,
|
|
25060
25050
|
l
|
|
25061
25051
|
]);
|
|
25062
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
25063
|
-
isFocused:
|
|
25064
|
-
getRootProps:
|
|
25065
|
-
getInputProps:
|
|
25052
|
+
return _objectSpread$7(_objectSpread$7({}, QW), {}, {
|
|
25053
|
+
isFocused: eG && !l,
|
|
25054
|
+
getRootProps: SG,
|
|
25055
|
+
getInputProps: wG,
|
|
25066
25056
|
rootRef: q,
|
|
25067
25057
|
inputRef: Z,
|
|
25068
|
-
open:
|
|
25058
|
+
open: vG(pG)
|
|
25069
25059
|
});
|
|
25070
25060
|
}
|
|
25071
25061
|
function reducer$2(e, r) {
|
|
@@ -25297,47 +25287,47 @@ ${c}
|
|
|
25297
25287
|
html: I
|
|
25298
25288
|
})
|
|
25299
25289
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
25300
|
-
let q = w && "text-primary", Z = T && "text-destructive",
|
|
25301
|
-
r[48] !== q || r[49] !== Z ? (
|
|
25302
|
-
let
|
|
25303
|
-
r[51] ===
|
|
25290
|
+
let q = w && "text-primary", Z = T && "text-destructive", ZW;
|
|
25291
|
+
r[48] !== q || r[49] !== Z ? (ZW = cn(q, Z), r[48] = q, r[49] = Z, r[50] = ZW) : ZW = r[50];
|
|
25292
|
+
let QW;
|
|
25293
|
+
r[51] === ZW ? QW = r[52] : (QW = (0, import_jsx_runtime.jsx)(Upload, {
|
|
25304
25294
|
strokeWidth: 1.4,
|
|
25305
|
-
className:
|
|
25306
|
-
}), r[51] =
|
|
25307
|
-
let
|
|
25308
|
-
r[53] !==
|
|
25309
|
-
let
|
|
25310
|
-
r[56] ===
|
|
25295
|
+
className: ZW
|
|
25296
|
+
}), r[51] = ZW, r[52] = QW);
|
|
25297
|
+
let $W = w && "text-primary", eG = T && "text-destructive", tG;
|
|
25298
|
+
r[53] !== $W || r[54] !== eG ? (tG = cn($W, eG), r[53] = $W, r[54] = eG, r[55] = tG) : tG = r[55];
|
|
25299
|
+
let nG;
|
|
25300
|
+
r[56] === tG ? nG = r[57] : (nG = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
25311
25301
|
strokeWidth: 1.4,
|
|
25312
|
-
className:
|
|
25313
|
-
}), r[56] =
|
|
25302
|
+
className: tG
|
|
25303
|
+
}), r[56] = tG, r[57] = nG);
|
|
25314
25304
|
let iG;
|
|
25315
|
-
r[58] !==
|
|
25305
|
+
r[58] !== QW || r[59] !== nG ? (iG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25316
25306
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
25317
25307
|
children: [
|
|
25318
|
-
|
|
25319
|
-
|
|
25308
|
+
QW,
|
|
25309
|
+
nG
|
|
25320
25310
|
]
|
|
25321
|
-
}), r[58] =
|
|
25322
|
-
let
|
|
25323
|
-
r[61] !== G || r[62] !== iG ? (
|
|
25311
|
+
}), r[58] = QW, r[59] = nG, r[60] = iG) : iG = r[60];
|
|
25312
|
+
let aG;
|
|
25313
|
+
r[61] !== G || r[62] !== iG ? (aG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25324
25314
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
25325
25315
|
children: [
|
|
25326
25316
|
G,
|
|
25327
25317
|
iG
|
|
25328
25318
|
]
|
|
25329
|
-
}), r[61] = G, r[62] = iG, r[63] =
|
|
25330
|
-
let
|
|
25331
|
-
r[64] !== W || r[65] !==
|
|
25319
|
+
}), r[61] = G, r[62] = iG, r[63] = aG) : aG = r[63];
|
|
25320
|
+
let oG;
|
|
25321
|
+
r[64] !== W || r[65] !== aG || r[66] !== z || r[67] !== B ? (oG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25332
25322
|
className: z,
|
|
25333
25323
|
...B,
|
|
25334
25324
|
children: [
|
|
25335
25325
|
W,
|
|
25336
|
-
|
|
25326
|
+
aG
|
|
25337
25327
|
]
|
|
25338
|
-
}), r[64] = W, r[65] =
|
|
25339
|
-
let
|
|
25340
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (
|
|
25328
|
+
}), r[64] = W, r[65] = aG, r[66] = z, r[67] = B, r[68] = oG) : oG = r[68];
|
|
25329
|
+
let sG;
|
|
25330
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (sG = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
25341
25331
|
className: "flex flex-row gap-1",
|
|
25342
25332
|
children: [
|
|
25343
25333
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -25373,17 +25363,17 @@ ${c}
|
|
|
25373
25363
|
})
|
|
25374
25364
|
})
|
|
25375
25365
|
]
|
|
25376
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] =
|
|
25377
|
-
let
|
|
25378
|
-
return r[75] !==
|
|
25366
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] = sG) : sG = r[74];
|
|
25367
|
+
let cG;
|
|
25368
|
+
return r[75] !== oG || r[76] !== sG ? (cG = (0, import_jsx_runtime.jsx)("section", {
|
|
25379
25369
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
25380
25370
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
25381
25371
|
children: [
|
|
25382
|
-
|
|
25383
|
-
|
|
25372
|
+
oG,
|
|
25373
|
+
sG
|
|
25384
25374
|
]
|
|
25385
25375
|
})
|
|
25386
|
-
}), r[75] =
|
|
25376
|
+
}), r[75] = oG, r[76] = sG, r[77] = cG) : cG = r[77], cG;
|
|
25387
25377
|
};
|
|
25388
25378
|
function _temp$11(e) {
|
|
25389
25379
|
Logger.error(e), toast({
|
|
@@ -25451,7 +25441,7 @@ ${c}
|
|
|
25451
25441
|
...c,
|
|
25452
25442
|
...r
|
|
25453
25443
|
})), FormWrapper = (e) => {
|
|
25454
|
-
let r = (0, import_compiler_runtime$41.c)(
|
|
25444
|
+
let r = (0, import_compiler_runtime$41.c)(43), { children: c, currentValue: l, newValue: u, setValue: d, label: f, bordered: p, loading: m, submitButtonLabel: g, submitButtonTooltip: _, submitButtonDisabled: v, clearOnSubmit: y, showClearButton: b, clearButtonLabel: S, clearButtonTooltip: w, validate: E, shouldValidate: O } = e, j = (0, import_react.useRef)(null), M = u === l, I = M ? "secondary" : "action", [L, R] = (0, import_react.useState)(null), z;
|
|
25455
25445
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = () => {
|
|
25456
25446
|
j.current && clearInputs(j.current);
|
|
25457
25447
|
}, r[0] = z) : z = r[0];
|
|
@@ -25476,78 +25466,79 @@ ${c}
|
|
|
25476
25466
|
"bg-(--amber-1) border-(--amber-7)": W
|
|
25477
25467
|
}), r[7] = p, r[8] = W, r[9] = G) : G = r[9];
|
|
25478
25468
|
let q;
|
|
25479
|
-
r[10]
|
|
25480
|
-
|
|
25481
|
-
|
|
25469
|
+
r[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = (e2) => {
|
|
25470
|
+
var _a5;
|
|
25471
|
+
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), (_a5 = j.current) == null ? void 0 : _a5.requestSubmit());
|
|
25472
|
+
}, r[10] = q) : q = r[10];
|
|
25482
25473
|
let Z;
|
|
25483
|
-
r[
|
|
25474
|
+
r[11] === f ? Z = r[12] : (Z = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
25484
25475
|
className: "text-center",
|
|
25485
25476
|
children: renderHTML({
|
|
25486
25477
|
html: f
|
|
25487
25478
|
})
|
|
25488
|
-
}), r[
|
|
25489
|
-
let
|
|
25490
|
-
r[
|
|
25479
|
+
}), r[11] = f, r[12] = Z);
|
|
25480
|
+
let ZW;
|
|
25481
|
+
r[13] === L ? ZW = r[14] : (ZW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25491
25482
|
kind: "danger",
|
|
25492
25483
|
className: "rounded",
|
|
25493
25484
|
children: L ?? "Invalid input"
|
|
25494
|
-
}), r[
|
|
25495
|
-
let
|
|
25496
|
-
r[
|
|
25485
|
+
}), r[13] = L, r[14] = ZW);
|
|
25486
|
+
let QW;
|
|
25487
|
+
r[15] === c ? QW = r[16] : (QW = (0, import_jsx_runtime.jsx)("div", {
|
|
25497
25488
|
children: c
|
|
25498
|
-
}), r[
|
|
25499
|
-
let
|
|
25500
|
-
r[
|
|
25489
|
+
}), r[15] = c, r[16] = QW);
|
|
25490
|
+
let $W;
|
|
25491
|
+
r[17] !== S || r[18] !== w || r[19] !== b ? ($W = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
25501
25492
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
25502
25493
|
variant: "text",
|
|
25503
25494
|
onClick: (e2) => {
|
|
25504
25495
|
e2.preventDefault(), B();
|
|
25505
25496
|
},
|
|
25506
25497
|
children: S
|
|
25507
|
-
}), w), r[
|
|
25508
|
-
let
|
|
25509
|
-
r[
|
|
25498
|
+
}), w), r[17] = S, r[18] = w, r[19] = b, r[20] = $W) : $W = r[20];
|
|
25499
|
+
let eG = v || m, tG;
|
|
25500
|
+
r[21] === m ? tG = r[22] : (tG = m && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
25510
25501
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
25511
|
-
}), r[
|
|
25512
|
-
let
|
|
25513
|
-
r[
|
|
25502
|
+
}), r[21] = m, r[22] = tG);
|
|
25503
|
+
let nG;
|
|
25504
|
+
r[23] !== g || r[24] !== eG || r[25] !== tG || r[26] !== I ? (nG = (0, import_jsx_runtime.jsxs)(Button, {
|
|
25514
25505
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
25515
25506
|
variant: I,
|
|
25516
|
-
disabled:
|
|
25507
|
+
disabled: eG,
|
|
25517
25508
|
type: "submit",
|
|
25518
25509
|
children: [
|
|
25519
|
-
|
|
25510
|
+
tG,
|
|
25520
25511
|
g
|
|
25521
25512
|
]
|
|
25522
|
-
}), r[
|
|
25513
|
+
}), r[23] = g, r[24] = eG, r[25] = tG, r[26] = I, r[27] = nG) : nG = r[27];
|
|
25523
25514
|
let iG;
|
|
25524
|
-
r[
|
|
25525
|
-
let
|
|
25526
|
-
r[
|
|
25515
|
+
r[28] !== _ || r[29] !== nG ? (iG = withTooltip(nG, _), r[28] = _, r[29] = nG, r[30] = iG) : iG = r[30];
|
|
25516
|
+
let aG;
|
|
25517
|
+
r[31] !== iG || r[32] !== $W ? (aG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25527
25518
|
className: "flex justify-end gap-2 font-code",
|
|
25528
25519
|
children: [
|
|
25529
|
-
|
|
25520
|
+
$W,
|
|
25530
25521
|
iG
|
|
25531
25522
|
]
|
|
25532
|
-
}), r[
|
|
25533
|
-
let
|
|
25534
|
-
r[
|
|
25523
|
+
}), r[31] = iG, r[32] = $W, r[33] = aG) : aG = r[33];
|
|
25524
|
+
let oG;
|
|
25525
|
+
r[34] !== aG || r[35] !== G || r[36] !== Z || r[37] !== ZW || r[38] !== QW ? (oG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25535
25526
|
className: G,
|
|
25536
25527
|
onKeyDown: q,
|
|
25537
25528
|
children: [
|
|
25538
25529
|
Z,
|
|
25530
|
+
ZW,
|
|
25539
25531
|
QW,
|
|
25540
|
-
|
|
25541
|
-
oG
|
|
25532
|
+
aG
|
|
25542
25533
|
]
|
|
25543
|
-
}), r[
|
|
25534
|
+
}), r[34] = aG, r[35] = G, r[36] = Z, r[37] = ZW, r[38] = QW, r[39] = oG) : oG = r[39];
|
|
25544
25535
|
let cG;
|
|
25545
|
-
return r[
|
|
25536
|
+
return r[40] !== oG || r[41] !== H ? (cG = (0, import_jsx_runtime.jsx)("form", {
|
|
25546
25537
|
className: "contents",
|
|
25547
25538
|
ref: j,
|
|
25548
25539
|
onSubmit: H,
|
|
25549
|
-
children:
|
|
25550
|
-
}), r[
|
|
25540
|
+
children: oG
|
|
25541
|
+
}), r[40] = oG, r[41] = H, r[42] = cG) : cG = r[42], cG;
|
|
25551
25542
|
};
|
|
25552
25543
|
var Form = (e) => {
|
|
25553
25544
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -27333,8 +27324,8 @@ ${c}
|
|
|
27333
27324
|
indices: c2
|
|
27334
27325
|
}));
|
|
27335
27326
|
}, r[31] = u, r[32] = Z);
|
|
27336
|
-
let
|
|
27337
|
-
r[33] === u ?
|
|
27327
|
+
let ZW = useEvent_default(Z), QW;
|
|
27328
|
+
r[33] === u ? QW = r[34] : (QW = (e2) => {
|
|
27338
27329
|
e2 && u((r2) => ({
|
|
27339
27330
|
...r2,
|
|
27340
27331
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -27343,9 +27334,9 @@ ${c}
|
|
|
27343
27334
|
range: e2.range,
|
|
27344
27335
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
27345
27336
|
}));
|
|
27346
|
-
}, r[33] = u, r[34] =
|
|
27347
|
-
let
|
|
27348
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
27337
|
+
}, r[33] = u, r[34] = QW);
|
|
27338
|
+
let $W = useEvent_default(QW), eG = m.frames ?? void 0, tG = useEvent_default(_temp3$3), nG;
|
|
27339
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== ZW || r[42] !== $W || r[43] !== eG || r[44] !== tG || r[45] !== R ? (nG = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
27349
27340
|
...m,
|
|
27350
27341
|
layout: h,
|
|
27351
27342
|
onRelayout: R,
|
|
@@ -27353,13 +27344,13 @@ ${c}
|
|
|
27353
27344
|
onTreemapClick: W,
|
|
27354
27345
|
onSunburstClick: q,
|
|
27355
27346
|
config: L,
|
|
27356
|
-
onClick:
|
|
27357
|
-
onSelected:
|
|
27347
|
+
onClick: ZW,
|
|
27348
|
+
onSelected: $W,
|
|
27358
27349
|
className: "w-full",
|
|
27359
27350
|
useResizeHandler: true,
|
|
27360
|
-
frames:
|
|
27361
|
-
onError:
|
|
27362
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
27351
|
+
frames: eG,
|
|
27352
|
+
onError: tG
|
|
27353
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = ZW, r[42] = $W, r[43] = eG, r[44] = tG, r[45] = R, r[46] = nG) : nG = r[46], nG;
|
|
27363
27354
|
});
|
|
27364
27355
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
27365
27356
|
function _temp$8(e) {
|
|
@@ -27504,8 +27495,8 @@ ${c}
|
|
|
27504
27495
|
onPointerUp: H
|
|
27505
27496
|
})
|
|
27506
27497
|
}), c[19] = L, c[20] = z, c[21] = H, c[22] = Z) : Z = c[22];
|
|
27507
|
-
let
|
|
27508
|
-
c[23] !== p.setFalse || c[24] !== p.setTrue ? (
|
|
27498
|
+
let ZW;
|
|
27499
|
+
c[23] !== p.setFalse || c[24] !== p.setTrue ? (ZW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27509
27500
|
asChild: true,
|
|
27510
27501
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27511
27502
|
"data-testid": "thumb",
|
|
@@ -27515,30 +27506,30 @@ ${c}
|
|
|
27515
27506
|
onMouseEnter: p.setTrue,
|
|
27516
27507
|
onMouseLeave: p.setFalse
|
|
27517
27508
|
})
|
|
27518
|
-
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] =
|
|
27519
|
-
let
|
|
27520
|
-
c[26] !== m || c[27] !== u.value || c[28] !== d ? (
|
|
27509
|
+
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] = ZW) : ZW = c[25];
|
|
27510
|
+
let QW;
|
|
27511
|
+
c[26] !== m || c[27] !== u.value || c[28] !== d ? (QW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27521
27512
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
27522
27513
|
locale: m
|
|
27523
27514
|
})
|
|
27524
|
-
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] =
|
|
27515
|
+
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] = QW) : QW = c[29];
|
|
27516
|
+
let $W;
|
|
27517
|
+
c[30] === QW ? $W = c[31] : ($W = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27518
|
+
children: QW
|
|
27519
|
+
}), c[30] = QW, c[31] = $W);
|
|
27525
27520
|
let eG;
|
|
27526
|
-
c[
|
|
27527
|
-
children: $W
|
|
27528
|
-
}), c[30] = $W, c[31] = eG);
|
|
27529
|
-
let tG;
|
|
27530
|
-
c[32] !== f || c[33] !== QW || c[34] !== eG ? (tG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27521
|
+
c[32] !== f || c[33] !== ZW || c[34] !== $W ? (eG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27531
27522
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27532
27523
|
delayDuration: 0,
|
|
27533
27524
|
open: f,
|
|
27534
27525
|
children: [
|
|
27535
|
-
|
|
27536
|
-
|
|
27526
|
+
ZW,
|
|
27527
|
+
$W
|
|
27537
27528
|
]
|
|
27538
27529
|
})
|
|
27539
|
-
}), c[32] = f, c[33] =
|
|
27540
|
-
let
|
|
27541
|
-
c[36] !== p.setFalse || c[37] !== p.setTrue ? (
|
|
27530
|
+
}), c[32] = f, c[33] = ZW, c[34] = $W, c[35] = eG) : eG = c[35];
|
|
27531
|
+
let tG;
|
|
27532
|
+
c[36] !== p.setFalse || c[37] !== p.setTrue ? (tG = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27542
27533
|
asChild: true,
|
|
27543
27534
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27544
27535
|
"data-testid": "thumb",
|
|
@@ -27548,39 +27539,39 @@ ${c}
|
|
|
27548
27539
|
onMouseEnter: p.setTrue,
|
|
27549
27540
|
onMouseLeave: p.setFalse
|
|
27550
27541
|
})
|
|
27551
|
-
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] =
|
|
27552
|
-
let
|
|
27553
|
-
c[39] !== m || c[40] !== u.value || c[41] !== d ? (
|
|
27542
|
+
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] = tG) : tG = c[38];
|
|
27543
|
+
let nG;
|
|
27544
|
+
c[39] !== m || c[40] !== u.value || c[41] !== d ? (nG = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27554
27545
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
27555
27546
|
locale: m
|
|
27556
27547
|
})
|
|
27557
|
-
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] =
|
|
27548
|
+
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] = nG) : nG = c[42];
|
|
27549
|
+
let rG;
|
|
27550
|
+
c[43] === nG ? rG = c[44] : (rG = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27551
|
+
children: nG
|
|
27552
|
+
}), c[43] = nG, c[44] = rG);
|
|
27558
27553
|
let iG;
|
|
27559
|
-
c[
|
|
27560
|
-
children: rG
|
|
27561
|
-
}), c[43] = rG, c[44] = iG);
|
|
27562
|
-
let aG;
|
|
27563
|
-
c[45] !== f || c[46] !== nG || c[47] !== iG ? (aG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27554
|
+
c[45] !== f || c[46] !== tG || c[47] !== rG ? (iG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27564
27555
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27565
27556
|
delayDuration: 0,
|
|
27566
27557
|
open: f,
|
|
27567
27558
|
children: [
|
|
27568
|
-
|
|
27569
|
-
|
|
27559
|
+
tG,
|
|
27560
|
+
rG
|
|
27570
27561
|
]
|
|
27571
27562
|
})
|
|
27572
|
-
}), c[45] = f, c[46] =
|
|
27573
|
-
let
|
|
27574
|
-
return c[49] !== M || c[50] !== u || c[51] !== Z || c[52] !==
|
|
27563
|
+
}), c[45] = f, c[46] = tG, c[47] = rG, c[48] = iG) : iG = c[48];
|
|
27564
|
+
let aG;
|
|
27565
|
+
return c[49] !== M || c[50] !== u || c[51] !== Z || c[52] !== eG || c[53] !== iG || c[54] !== W ? (aG = (0, import_jsx_runtime.jsxs)(Root, {
|
|
27575
27566
|
ref: M,
|
|
27576
27567
|
className: W,
|
|
27577
27568
|
...u,
|
|
27578
27569
|
children: [
|
|
27579
27570
|
Z,
|
|
27580
|
-
|
|
27581
|
-
|
|
27571
|
+
eG,
|
|
27572
|
+
iG
|
|
27582
27573
|
]
|
|
27583
|
-
}), c[49] = M, c[50] = u, c[51] = Z, c[52] =
|
|
27574
|
+
}), c[49] = M, c[50] = u, c[51] = Z, c[52] = eG, c[53] = iG, c[54] = W, c[55] = aG) : aG = c[55], aG;
|
|
27584
27575
|
});
|
|
27585
27576
|
RangeSlider.displayName = Root.displayName;
|
|
27586
27577
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -27631,14 +27622,14 @@ ${c}
|
|
|
27631
27622
|
}, q = (e2) => {
|
|
27632
27623
|
m && l(e2);
|
|
27633
27624
|
}, r[10] = m, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27634
|
-
let Z,
|
|
27625
|
+
let Z, ZW;
|
|
27635
27626
|
r[14] !== m || r[15] !== T || r[16] !== l || r[17] !== u ? (Z = () => {
|
|
27636
27627
|
m && !dequal(T, u) && l(T);
|
|
27637
|
-
},
|
|
27628
|
+
}, ZW = () => {
|
|
27638
27629
|
m && !dequal(T, u) && l(T);
|
|
27639
|
-
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = Z, r[19] =
|
|
27640
|
-
let
|
|
27641
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== Z || r[31] !==
|
|
27630
|
+
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = Z, r[19] = ZW) : (Z = r[18], ZW = r[19]);
|
|
27631
|
+
let QW;
|
|
27632
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== Z || r[31] !== ZW || r[32] !== b ? (QW = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
27642
27633
|
id: S,
|
|
27643
27634
|
className: W,
|
|
27644
27635
|
value: T,
|
|
@@ -27650,35 +27641,35 @@ ${c}
|
|
|
27650
27641
|
onValueChange: G,
|
|
27651
27642
|
onValueCommit: q,
|
|
27652
27643
|
onPointerUp: Z,
|
|
27653
|
-
onMouseUp:
|
|
27644
|
+
onMouseUp: ZW,
|
|
27654
27645
|
valueMap: b
|
|
27655
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] =
|
|
27656
|
-
let
|
|
27657
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
27646
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] = ZW, r[32] = b, r[33] = QW) : QW = r[33];
|
|
27647
|
+
let $W;
|
|
27648
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? ($W = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
27658
27649
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
27659
27650
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
27660
27651
|
locale: w
|
|
27661
27652
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
27662
27653
|
locale: w
|
|
27663
27654
|
})}`
|
|
27664
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
27665
|
-
let
|
|
27666
|
-
r[39] !==
|
|
27655
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = $W) : $W = r[38];
|
|
27656
|
+
let eG;
|
|
27657
|
+
r[39] !== QW || r[40] !== $W || r[41] !== B ? (eG = (0, import_jsx_runtime.jsxs)("div", {
|
|
27667
27658
|
className: B,
|
|
27668
27659
|
children: [
|
|
27669
|
-
|
|
27670
|
-
|
|
27660
|
+
QW,
|
|
27661
|
+
$W
|
|
27671
27662
|
]
|
|
27672
|
-
}), r[39] =
|
|
27673
|
-
let
|
|
27674
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
27663
|
+
}), r[39] = QW, r[40] = $W, r[41] = B, r[42] = eG) : eG = r[42];
|
|
27664
|
+
let tG;
|
|
27665
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== eG || r[47] !== M || r[48] !== L ? (tG = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
27675
27666
|
label: c,
|
|
27676
27667
|
id: S,
|
|
27677
27668
|
align: M,
|
|
27678
27669
|
className: L,
|
|
27679
27670
|
fullWidth: v,
|
|
27680
|
-
children:
|
|
27681
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
27671
|
+
children: eG
|
|
27672
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = eG, r[47] = M, r[48] = L, r[49] = tG) : tG = r[49], tG;
|
|
27682
27673
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
27683
27674
|
r.exports = u;
|
|
27684
27675
|
var c = {
|
|
@@ -28384,7 +28375,7 @@ ${c}
|
|
|
28384
28375
|
return true;
|
|
28385
28376
|
}
|
|
28386
28377
|
}
|
|
28387
|
-
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-
|
|
28378
|
+
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-C7nO5zcf.js")), VegaPlugin = class {
|
|
28388
28379
|
constructor() {
|
|
28389
28380
|
__publicField(this, "tagName", "marimo-vega");
|
|
28390
28381
|
__publicField(this, "validator", object({
|
|
@@ -28523,7 +28514,7 @@ ${c}
|
|
|
28523
28514
|
children: e.children
|
|
28524
28515
|
});
|
|
28525
28516
|
}
|
|
28526
|
-
}, LazySlidesComponent$1 = import_react.lazy(() => import("./swiper-component-
|
|
28517
|
+
}, LazySlidesComponent$1 = import_react.lazy(() => import("./swiper-component-CEdAYjb7.js"));
|
|
28527
28518
|
const DownloadPlugin = createPlugin("marimo-download").withData(object({
|
|
28528
28519
|
data: string(),
|
|
28529
28520
|
disabled: boolean().default(false),
|
|
@@ -28713,7 +28704,7 @@ ${c}
|
|
|
28713
28704
|
themeVariables: e.data.theme_variables
|
|
28714
28705
|
});
|
|
28715
28706
|
}
|
|
28716
|
-
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-
|
|
28707
|
+
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-hv6IckVw.js").then(async (m) => {
|
|
28717
28708
|
await m.__tla;
|
|
28718
28709
|
return m;
|
|
28719
28710
|
})), import_compiler_runtime$22 = require_compiler_runtime();
|
|
@@ -30976,40 +30967,40 @@ ${c}
|
|
|
30976
30967
|
areRegExpsEqual: H,
|
|
30977
30968
|
areSetsEqual: G,
|
|
30978
30969
|
createIsNestedEqual: r2
|
|
30979
|
-
}),
|
|
30980
|
-
function
|
|
30981
|
-
return
|
|
30970
|
+
}), ZW = T(q);
|
|
30971
|
+
function QW(e3, r3) {
|
|
30972
|
+
return ZW(e3, r3, void 0);
|
|
30982
30973
|
}
|
|
30983
|
-
var
|
|
30974
|
+
var $W = T(l(q, {
|
|
30984
30975
|
createIsNestedEqual: function() {
|
|
30985
30976
|
return f;
|
|
30986
30977
|
}
|
|
30987
30978
|
}));
|
|
30988
|
-
function
|
|
30989
|
-
return
|
|
30979
|
+
function eG(e3, r3) {
|
|
30980
|
+
return $W(e3, r3, void 0);
|
|
30990
30981
|
}
|
|
30991
|
-
var
|
|
30992
|
-
function
|
|
30993
|
-
return
|
|
30982
|
+
var tG = T(Z);
|
|
30983
|
+
function nG(e3, r3) {
|
|
30984
|
+
return tG(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30994
30985
|
}
|
|
30995
|
-
var
|
|
30986
|
+
var rG = T(l(Z, {
|
|
30996
30987
|
createIsNestedEqual: function() {
|
|
30997
30988
|
return f;
|
|
30998
30989
|
}
|
|
30999
30990
|
}));
|
|
31000
|
-
function
|
|
31001
|
-
return
|
|
30991
|
+
function iG(e3, r3) {
|
|
30992
|
+
return rG(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
31002
30993
|
}
|
|
31003
|
-
function
|
|
30994
|
+
function aG(e3) {
|
|
31004
30995
|
return T(l(q, e3(q)));
|
|
31005
30996
|
}
|
|
31006
|
-
function
|
|
30997
|
+
function oG(e3) {
|
|
31007
30998
|
var r3 = T(l(Z, e3(Z)));
|
|
31008
30999
|
return (function(e4, c2, l2) {
|
|
31009
31000
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
31010
31001
|
});
|
|
31011
31002
|
}
|
|
31012
|
-
e2.circularDeepEqual =
|
|
31003
|
+
e2.circularDeepEqual = nG, e2.circularShallowEqual = iG, e2.createCustomCircularEqual = oG, e2.createCustomEqual = aG, e2.deepEqual = QW, e2.sameValueZeroEqual = f, e2.shallowEqual = eG, Object.defineProperty(e2, "__esModule", {
|
|
31013
31004
|
value: true
|
|
31014
31005
|
});
|
|
31015
31006
|
}));
|
|
@@ -31035,7 +31026,7 @@ ${c}
|
|
|
31035
31026
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
31036
31027
|
Object.defineProperty(e, "__esModule", {
|
|
31037
31028
|
value: true
|
|
31038
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
31029
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = fG, 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 = iG, e.setTopLeft = oG, e.setTransform = aG, e.sortLayoutItems = sG, e.sortLayoutItemsByColRow = lG, e.sortLayoutItemsByRowCol = cG, e.synchronizeLayoutWithChildren = uG, e.validateLayout = dG, e.withLayoutItem = v;
|
|
31039
31030
|
var r = require_fast_equals(), c = l(require_react());
|
|
31040
31031
|
function l(e2) {
|
|
31041
31032
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -31140,7 +31131,7 @@ ${c}
|
|
|
31140
31131
|
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);
|
|
31141
31132
|
}
|
|
31142
31133
|
function T(e2, r2, c2, l2) {
|
|
31143
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
31134
|
+
let u2 = B(e2), d2 = h(u2), f2 = sG(e2, r2), p2 = Array(e2.length);
|
|
31144
31135
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
31145
31136
|
let h3 = y(f2[m2]);
|
|
31146
31137
|
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;
|
|
@@ -31198,7 +31189,7 @@ ${c}
|
|
|
31198
31189
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
31199
31190
|
let h2 = r2.x, _2 = r2.y;
|
|
31200
31191
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
31201
|
-
let v2 =
|
|
31192
|
+
let v2 = sG(e2, f2);
|
|
31202
31193
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
31203
31194
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
31204
31195
|
if (b2 && m2) return g(e2);
|
|
@@ -31232,61 +31223,61 @@ ${c}
|
|
|
31232
31223
|
function G(e2) {
|
|
31233
31224
|
return e2 * 100 + "%";
|
|
31234
31225
|
}
|
|
31235
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, Z = (e2, r2, c2) => e2 < 0 ? r2 : c2,
|
|
31226
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, Z = (e2, r2, c2) => e2 < 0 ? r2 : c2, ZW = (e2) => Math.max(0, e2), QW = (e2) => Math.max(0, e2), $W = (e2, r2, c2) => {
|
|
31236
31227
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
31237
31228
|
return {
|
|
31238
31229
|
left: l2,
|
|
31239
31230
|
width: d2,
|
|
31240
31231
|
height: Z(f2, e2.height, u2),
|
|
31241
|
-
top:
|
|
31232
|
+
top: QW(f2)
|
|
31242
31233
|
};
|
|
31243
|
-
},
|
|
31234
|
+
}, eG = (e2, r2, c2) => {
|
|
31244
31235
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31245
31236
|
return {
|
|
31246
31237
|
top: l2,
|
|
31247
31238
|
height: d2,
|
|
31248
31239
|
width: q(e2.left, e2.width, f2, c2),
|
|
31249
|
-
left:
|
|
31240
|
+
left: ZW(u2)
|
|
31250
31241
|
};
|
|
31251
|
-
},
|
|
31242
|
+
}, tG = (e2, r2, c2) => {
|
|
31252
31243
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
31253
31244
|
return {
|
|
31254
31245
|
height: u2,
|
|
31255
31246
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
31256
|
-
top:
|
|
31257
|
-
left:
|
|
31247
|
+
top: QW(l2),
|
|
31248
|
+
left: ZW(f2)
|
|
31258
31249
|
};
|
|
31259
|
-
},
|
|
31250
|
+
}, nG = (e2, r2, c2) => {
|
|
31260
31251
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31261
31252
|
return {
|
|
31262
31253
|
width: f2,
|
|
31263
31254
|
left: u2,
|
|
31264
31255
|
height: Z(l2, e2.height, d2),
|
|
31265
|
-
top:
|
|
31256
|
+
top: QW(l2)
|
|
31266
31257
|
};
|
|
31267
|
-
},
|
|
31268
|
-
n:
|
|
31258
|
+
}, rG = {
|
|
31259
|
+
n: $W,
|
|
31269
31260
|
ne: function() {
|
|
31270
|
-
return
|
|
31261
|
+
return $W(arguments.length <= 0 ? void 0 : arguments[0], eG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31271
31262
|
},
|
|
31272
|
-
e:
|
|
31263
|
+
e: eG,
|
|
31273
31264
|
se: function() {
|
|
31274
|
-
return
|
|
31265
|
+
return nG(arguments.length <= 0 ? void 0 : arguments[0], eG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31275
31266
|
},
|
|
31276
|
-
s:
|
|
31267
|
+
s: nG,
|
|
31277
31268
|
sw: function() {
|
|
31278
|
-
return
|
|
31269
|
+
return nG(arguments.length <= 0 ? void 0 : arguments[0], tG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31279
31270
|
},
|
|
31280
|
-
w:
|
|
31271
|
+
w: tG,
|
|
31281
31272
|
nw: function() {
|
|
31282
|
-
return
|
|
31273
|
+
return $W(arguments.length <= 0 ? void 0 : arguments[0], tG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31283
31274
|
}
|
|
31284
31275
|
};
|
|
31285
|
-
function
|
|
31286
|
-
let u2 =
|
|
31276
|
+
function iG(e2, r2, c2, l2) {
|
|
31277
|
+
let u2 = rG[e2];
|
|
31287
31278
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
31288
31279
|
}
|
|
31289
|
-
function
|
|
31280
|
+
function aG(e2) {
|
|
31290
31281
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
31291
31282
|
return {
|
|
31292
31283
|
transform: d2,
|
|
@@ -31299,7 +31290,7 @@ ${c}
|
|
|
31299
31290
|
position: "absolute"
|
|
31300
31291
|
};
|
|
31301
31292
|
}
|
|
31302
|
-
function
|
|
31293
|
+
function oG(e2) {
|
|
31303
31294
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
31304
31295
|
return {
|
|
31305
31296
|
top: `${r2}px`,
|
|
@@ -31309,20 +31300,20 @@ ${c}
|
|
|
31309
31300
|
position: "absolute"
|
|
31310
31301
|
};
|
|
31311
31302
|
}
|
|
31312
|
-
function
|
|
31313
|
-
return r2 === "horizontal" ?
|
|
31303
|
+
function sG(e2, r2) {
|
|
31304
|
+
return r2 === "horizontal" ? lG(e2) : r2 === "vertical" ? cG(e2) : e2;
|
|
31314
31305
|
}
|
|
31315
|
-
function
|
|
31306
|
+
function cG(e2) {
|
|
31316
31307
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31317
31308
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
31318
31309
|
});
|
|
31319
31310
|
}
|
|
31320
|
-
function
|
|
31311
|
+
function lG(e2) {
|
|
31321
31312
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31322
31313
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
31323
31314
|
});
|
|
31324
31315
|
}
|
|
31325
|
-
function
|
|
31316
|
+
function uG(e2, r2, l2, u2, f2) {
|
|
31326
31317
|
e2 || (e2 = []);
|
|
31327
31318
|
let p2 = [];
|
|
31328
31319
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -31343,7 +31334,7 @@ ${c}
|
|
|
31343
31334
|
});
|
|
31344
31335
|
return f2 ? m2 : T(m2, u2, l2);
|
|
31345
31336
|
}
|
|
31346
|
-
function
|
|
31337
|
+
function dG(e2) {
|
|
31347
31338
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
31348
31339
|
"x",
|
|
31349
31340
|
"y",
|
|
@@ -31360,7 +31351,7 @@ ${c}
|
|
|
31360
31351
|
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})`);
|
|
31361
31352
|
}
|
|
31362
31353
|
}
|
|
31363
|
-
function
|
|
31354
|
+
function fG(e2) {
|
|
31364
31355
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
31365
31356
|
return r2 === false ? null : c2;
|
|
31366
31357
|
}
|
|
@@ -34165,7 +34156,7 @@ ${c}
|
|
|
34165
34156
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
34166
34157
|
let E = useIsDragging(), O, j;
|
|
34167
34158
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
34168
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q, Z, QW, $W, eG, tG, nG, rG, iG, aG, oG, sG, cG, lG, uG, dG, fG
|
|
34159
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, Z, ZW, QW, $W, eG, tG, nG, rG, iG, aG, oG, sG, cG, lG, uG, dG, fG;
|
|
34169
34160
|
if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== m || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
|
|
34170
34161
|
let e2 = Maps.keyBy(c.cells, _temp2$3), p2;
|
|
34171
34162
|
r[47] !== c || r[48] !== l ? (p2 = (e3) => (r2) => {
|
|
@@ -34184,23 +34175,23 @@ ${c}
|
|
|
34184
34175
|
});
|
|
34185
34176
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
34186
34177
|
let y2 = v2;
|
|
34187
|
-
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,
|
|
34178
|
+
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, lG = "lg", r[58] === c.cells ? uG = r[59] : (uG = {
|
|
34188
34179
|
lg: c.cells
|
|
34189
|
-
}, r[58] = c.cells, r[59] =
|
|
34180
|
+
}, r[58] = c.cells, r[59] = uG), dG = L, fG = S, R = false;
|
|
34190
34181
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
34191
34182
|
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 ? [
|
|
34192
34183
|
20,
|
|
34193
34184
|
20
|
|
34194
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, Z = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (
|
|
34185
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, Z = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (ZW = (e3) => {
|
|
34195
34186
|
f || l({
|
|
34196
34187
|
...c,
|
|
34197
34188
|
cells: e3
|
|
34198
34189
|
});
|
|
34199
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
34190
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = ZW) : ZW = r[69], r[70] === g ? QW = r[71] : (QW = g ? {
|
|
34200
34191
|
i: g.i,
|
|
34201
34192
|
w: g.w || 2,
|
|
34202
34193
|
h: g.h || 2
|
|
34203
|
-
} : void 0, r[70] = g, r[71] =
|
|
34194
|
+
} : void 0, r[70] = g, r[71] = QW), r[72] !== O || r[73] !== c || r[74] !== l ? ($W = (e3, r2, u2) => {
|
|
34204
34195
|
O.onDragStop(), r2 && l({
|
|
34205
34196
|
...c,
|
|
34206
34197
|
cells: [
|
|
@@ -34208,15 +34199,15 @@ ${c}
|
|
|
34208
34199
|
r2
|
|
34209
34200
|
]
|
|
34210
34201
|
});
|
|
34211
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
34202
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = $W) : $W = r[75], r[76] === O ? (eG = r[77], tG = r[78], nG = r[79]) : (eG = (e3, r2, c2, l2, u2) => {
|
|
34212
34203
|
O.onDragStart(u2);
|
|
34213
|
-
},
|
|
34204
|
+
}, tG = (e3, r2, c2, l2, u2) => {
|
|
34214
34205
|
O.onDragMove(u2);
|
|
34215
|
-
},
|
|
34206
|
+
}, nG = () => {
|
|
34216
34207
|
O.onDragStop();
|
|
34217
|
-
}, r[76] = O, r[77] =
|
|
34208
|
+
}, r[76] = O, r[77] = eG, r[78] = tG, r[79] = nG), rG = _temp3$2, iG = M, aG = M, oG = M, sG = M ? `.${DRAG_HANDLE}` : "noop";
|
|
34218
34209
|
let E2;
|
|
34219
|
-
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2),
|
|
34210
|
+
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2), cG = u.filter(E2).map((r2) => {
|
|
34220
34211
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p3 = c.cellSide.get(r2.id), m2 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
34221
34212
|
code: r2.code,
|
|
34222
34213
|
mode: d,
|
|
@@ -34246,14 +34237,14 @@ ${c}
|
|
|
34246
34237
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
34247
34238
|
children: m2
|
|
34248
34239
|
}, r2.id);
|
|
34249
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, 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] = Z, r[31] =
|
|
34250
|
-
} 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], Z = r[30],
|
|
34251
|
-
let
|
|
34252
|
-
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] !== Z || r[91] !==
|
|
34253
|
-
breakpoint:
|
|
34254
|
-
layouts:
|
|
34255
|
-
style:
|
|
34256
|
-
cols:
|
|
34240
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, 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] = Z, r[31] = ZW, r[32] = QW, r[33] = $W, r[34] = eG, r[35] = tG, r[36] = nG, r[37] = rG, r[38] = iG, r[39] = aG, r[40] = oG, r[41] = sG, r[42] = cG, r[43] = lG, r[44] = uG, r[45] = dG, r[46] = fG;
|
|
34241
|
+
} 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], Z = r[30], ZW = r[31], QW = r[32], $W = r[33], eG = r[34], tG = r[35], nG = r[36], rG = r[37], iG = r[38], aG = r[39], oG = r[40], sG = r[41], cG = r[42], lG = r[43], uG = r[44], dG = r[45], fG = r[46];
|
|
34242
|
+
let pG;
|
|
34243
|
+
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] !== Z || r[91] !== ZW || r[92] !== QW || r[93] !== $W || r[94] !== eG || r[95] !== tG || r[96] !== nG || r[97] !== rG || r[98] !== iG || r[99] !== aG || r[100] !== oG || r[101] !== sG || r[102] !== cG || r[103] !== lG || r[104] !== uG || r[105] !== dG || r[106] !== fG ? (pG = (0, import_jsx_runtime.jsx)(I, {
|
|
34244
|
+
breakpoint: lG,
|
|
34245
|
+
layouts: uG,
|
|
34246
|
+
style: dG,
|
|
34247
|
+
cols: fG,
|
|
34257
34248
|
allowOverlap: R,
|
|
34258
34249
|
className: z,
|
|
34259
34250
|
containerPadding: B,
|
|
@@ -34262,22 +34253,22 @@ ${c}
|
|
|
34262
34253
|
compactType: G,
|
|
34263
34254
|
preventCollision: q,
|
|
34264
34255
|
rowHeight: Z,
|
|
34265
|
-
onLayoutChange:
|
|
34266
|
-
droppingItem:
|
|
34267
|
-
onDrop:
|
|
34268
|
-
onDragStart:
|
|
34269
|
-
onDrag:
|
|
34270
|
-
onDragStop:
|
|
34271
|
-
onResizeStop:
|
|
34272
|
-
isDraggable:
|
|
34273
|
-
isDroppable:
|
|
34274
|
-
isResizable:
|
|
34275
|
-
draggableHandle:
|
|
34276
|
-
children:
|
|
34277
|
-
}), 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] = Z, r[91] =
|
|
34278
|
-
let
|
|
34279
|
-
if (r[108] !== u || r[109] !==
|
|
34280
|
-
|
|
34256
|
+
onLayoutChange: ZW,
|
|
34257
|
+
droppingItem: QW,
|
|
34258
|
+
onDrop: $W,
|
|
34259
|
+
onDragStart: eG,
|
|
34260
|
+
onDrag: tG,
|
|
34261
|
+
onDragStop: nG,
|
|
34262
|
+
onResizeStop: rG,
|
|
34263
|
+
isDraggable: iG,
|
|
34264
|
+
isDroppable: aG,
|
|
34265
|
+
isResizable: oG,
|
|
34266
|
+
draggableHandle: sG,
|
|
34267
|
+
children: cG
|
|
34268
|
+
}), 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] = Z, r[91] = ZW, r[92] = QW, r[93] = $W, r[94] = eG, r[95] = tG, r[96] = nG, r[97] = rG, r[98] = iG, r[99] = aG, r[100] = oG, r[101] = sG, r[102] = cG, r[103] = lG, r[104] = uG, r[105] = dG, r[106] = fG, r[107] = pG) : pG = r[107];
|
|
34269
|
+
let mG = pG, hG, gG, _G, vG, yG, bG, xG;
|
|
34270
|
+
if (r[108] !== u || r[109] !== mG || r[110] !== m || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
34271
|
+
xG = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
34281
34272
|
bb0: {
|
|
34282
34273
|
let e2;
|
|
34283
34274
|
r[125] === m ? e2 = r[126] : (e2 = (e3) => !m.has(e3.id), r[125] = m, r[126] = e2);
|
|
@@ -34285,14 +34276,14 @@ ${c}
|
|
|
34285
34276
|
if (f) {
|
|
34286
34277
|
if (c.bordered) {
|
|
34287
34278
|
let e4;
|
|
34288
|
-
r[127] !==
|
|
34279
|
+
r[127] !== mG || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
34289
34280
|
className: "flex flex-1 flex-col items-center",
|
|
34290
34281
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
34291
34282
|
style: L,
|
|
34292
34283
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
34293
|
-
children:
|
|
34284
|
+
children: mG
|
|
34294
34285
|
})
|
|
34295
|
-
}), r[127] =
|
|
34286
|
+
}), r[127] = mG, r[128] = L, r[129] = e4) : e4 = r[129], mG = e4;
|
|
34296
34287
|
}
|
|
34297
34288
|
let e3 = p2.filter(_temp4$2), l2;
|
|
34298
34289
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -34304,9 +34295,9 @@ ${c}
|
|
|
34304
34295
|
stale: outputIsStale(e4, false),
|
|
34305
34296
|
isScrollable: false,
|
|
34306
34297
|
hidden: false
|
|
34307
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
34298
|
+
}, e4.id), r[130] = d, r[131] = l2), xG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34308
34299
|
children: [
|
|
34309
|
-
|
|
34300
|
+
mG,
|
|
34310
34301
|
(0, import_jsx_runtime.jsx)("div", {
|
|
34311
34302
|
className: "hidden",
|
|
34312
34303
|
children: e3.map(l2)
|
|
@@ -34317,31 +34308,31 @@ ${c}
|
|
|
34317
34308
|
}
|
|
34318
34309
|
if (c.bordered) {
|
|
34319
34310
|
let e3;
|
|
34320
|
-
r[132] ===
|
|
34311
|
+
r[132] === mG ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
34321
34312
|
className: "h-full overflow-auto",
|
|
34322
|
-
children:
|
|
34323
|
-
}), r[132] =
|
|
34313
|
+
children: mG
|
|
34314
|
+
}), r[132] = mG, r[133] = e3);
|
|
34324
34315
|
let c2;
|
|
34325
34316
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
34326
34317
|
style: L,
|
|
34327
34318
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
34328
34319
|
children: e3
|
|
34329
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
34320
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], mG = c2;
|
|
34330
34321
|
}
|
|
34331
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
34322
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (bG = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
34332
34323
|
layout: c,
|
|
34333
34324
|
setLayout: l,
|
|
34334
34325
|
isLocked: v,
|
|
34335
34326
|
setIsLocked: y
|
|
34336
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
34327
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = bG) : bG = r[140];
|
|
34337
34328
|
let g2;
|
|
34338
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34329
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (vG = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = vG, r[142] = g2) : (vG = r[141], g2 = r[142]), r[143] === mG ? yG = r[144] : (yG = (0, import_jsx_runtime.jsx)("div", {
|
|
34339
34330
|
className: g2,
|
|
34340
|
-
children:
|
|
34341
|
-
}), r[143] =
|
|
34331
|
+
children: mG
|
|
34332
|
+
}), r[143] = mG, r[144] = yG), hG = "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") ? (gG = (0, import_jsx_runtime.jsx)("div", {
|
|
34342
34333
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
34343
34334
|
children: "Outputs"
|
|
34344
|
-
}), r[145] =
|
|
34335
|
+
}), r[145] = gG) : gG = r[145];
|
|
34345
34336
|
let b2;
|
|
34346
34337
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
34347
34338
|
draggable: true,
|
|
@@ -34367,34 +34358,34 @@ ${c}
|
|
|
34367
34358
|
stale: outputIsStale(e3, false),
|
|
34368
34359
|
hidden: false
|
|
34369
34360
|
})
|
|
34370
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
34371
|
-
}
|
|
34372
|
-
r[108] = u, r[109] =
|
|
34373
|
-
} else
|
|
34374
|
-
if (
|
|
34361
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], _G = p2.map(b2);
|
|
34362
|
+
}
|
|
34363
|
+
r[108] = u, r[109] = mG, r[110] = m, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = hG, r[118] = gG, r[119] = _G, r[120] = vG, r[121] = yG, r[122] = bG, r[123] = xG, r[124] = mG;
|
|
34364
|
+
} else hG = r[117], gG = r[118], _G = r[119], vG = r[120], yG = r[121], bG = r[122], xG = r[123], mG = r[124];
|
|
34365
|
+
if (xG !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return xG;
|
|
34366
|
+
let SG;
|
|
34367
|
+
r[150] !== hG || r[151] !== gG || r[152] !== _G ? (SG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34368
|
+
className: hG,
|
|
34369
|
+
children: [
|
|
34370
|
+
gG,
|
|
34371
|
+
_G
|
|
34372
|
+
]
|
|
34373
|
+
}), r[150] = hG, r[151] = gG, r[152] = _G, r[153] = SG) : SG = r[153];
|
|
34375
34374
|
let CG;
|
|
34376
|
-
r[
|
|
34377
|
-
className:
|
|
34375
|
+
r[154] !== vG || r[155] !== yG || r[156] !== SG ? (CG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34376
|
+
className: vG,
|
|
34378
34377
|
children: [
|
|
34379
|
-
|
|
34380
|
-
|
|
34378
|
+
yG,
|
|
34379
|
+
SG
|
|
34381
34380
|
]
|
|
34382
|
-
}), r[
|
|
34381
|
+
}), r[154] = vG, r[155] = yG, r[156] = SG, r[157] = CG) : CG = r[157];
|
|
34383
34382
|
let wG;
|
|
34384
|
-
|
|
34385
|
-
className: yG,
|
|
34383
|
+
return r[158] !== bG || r[159] !== CG ? (wG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34386
34384
|
children: [
|
|
34387
34385
|
bG,
|
|
34388
34386
|
CG
|
|
34389
34387
|
]
|
|
34390
|
-
}), r[
|
|
34391
|
-
let TG;
|
|
34392
|
-
return r[158] !== xG || r[159] !== wG ? (TG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34393
|
-
children: [
|
|
34394
|
-
xG,
|
|
34395
|
-
wG
|
|
34396
|
-
]
|
|
34397
|
-
}), r[158] = xG, r[159] = wG, r[160] = TG) : TG = r[160], TG;
|
|
34388
|
+
}), r[158] = bG, r[159] = CG, r[160] = wG) : wG = r[160], wG;
|
|
34398
34389
|
};
|
|
34399
34390
|
var GridCell = (0, import_react.memo)((e) => {
|
|
34400
34391
|
let r = (0, import_compiler_runtime$13.c)(21), { output: c, cellId: l, status: u, mode: d, code: f, hidden: p, isScrollable: m, side: g, className: _, stale: v } = e, y;
|
|
@@ -34704,8 +34695,8 @@ ${c}
|
|
|
34704
34695
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34705
34696
|
onClick: () => l()
|
|
34706
34697
|
}), r[36] = l, r[37] = Z);
|
|
34707
|
-
let
|
|
34708
|
-
return r[38] !== M || r[39] !== G || r[40] !== Z || r[41] !== S ? (
|
|
34698
|
+
let ZW;
|
|
34699
|
+
return r[38] !== M || r[39] !== G || r[40] !== Z || r[41] !== S ? (ZW = (0, import_jsx_runtime.jsxs)("div", {
|
|
34709
34700
|
className: S,
|
|
34710
34701
|
children: [
|
|
34711
34702
|
M,
|
|
@@ -34713,7 +34704,7 @@ ${c}
|
|
|
34713
34704
|
q,
|
|
34714
34705
|
Z
|
|
34715
34706
|
]
|
|
34716
|
-
}), r[38] = M, r[39] = G, r[40] = Z, r[41] = S, r[42] =
|
|
34707
|
+
}), r[38] = M, r[39] = G, r[40] = Z, r[41] = S, r[42] = ZW) : ZW = r[42], ZW;
|
|
34717
34708
|
};
|
|
34718
34709
|
function isSidebarCell(e) {
|
|
34719
34710
|
var _a5;
|
|
@@ -36719,29 +36710,29 @@ ${c}
|
|
|
36719
36710
|
M
|
|
36720
36711
|
]), 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), Z = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
36721
36712
|
j
|
|
36722
|
-
]),
|
|
36713
|
+
]), ZW = useMeasuringConfiguration(p), { droppableRects: QW, measureDroppableContainers: $W, measuringScheduled: eG } = useDroppableMeasuring(Z, {
|
|
36723
36714
|
dragging: w,
|
|
36724
36715
|
dependencies: [
|
|
36725
36716
|
O.x,
|
|
36726
36717
|
O.y
|
|
36727
36718
|
],
|
|
36728
|
-
config:
|
|
36729
|
-
}),
|
|
36719
|
+
config: ZW.droppable
|
|
36720
|
+
}), tG = useCachedNode(E, T), nG = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36730
36721
|
H
|
|
36731
|
-
]),
|
|
36722
|
+
]), rG = PG(), iG = useInitialRect(tG, ZW.draggable.measure);
|
|
36732
36723
|
useLayoutShiftScrollCompensation({
|
|
36733
36724
|
activeNode: T == null ? null : E.get(T),
|
|
36734
|
-
config:
|
|
36735
|
-
initialRect:
|
|
36736
|
-
measure:
|
|
36725
|
+
config: rG.layoutShiftCompensation,
|
|
36726
|
+
initialRect: iG,
|
|
36727
|
+
measure: ZW.draggable.measure
|
|
36737
36728
|
});
|
|
36738
|
-
let
|
|
36729
|
+
let aG = useRect(tG, ZW.draggable.measure, iG), oG = useRect(tG ? tG.parentElement : null), sG = (0, import_react.useRef)({
|
|
36739
36730
|
activatorEvent: null,
|
|
36740
36731
|
active: null,
|
|
36741
|
-
activeNode:
|
|
36732
|
+
activeNode: tG,
|
|
36742
36733
|
collisionRect: null,
|
|
36743
36734
|
collisions: null,
|
|
36744
|
-
droppableRects:
|
|
36735
|
+
droppableRects: QW,
|
|
36745
36736
|
draggableNodes: E,
|
|
36746
36737
|
draggingNode: null,
|
|
36747
36738
|
draggingNodeRect: null,
|
|
@@ -36749,45 +36740,45 @@ ${c}
|
|
|
36749
36740
|
over: null,
|
|
36750
36741
|
scrollableAncestors: [],
|
|
36751
36742
|
scrollAdjustedTranslate: null
|
|
36752
|
-
}),
|
|
36753
|
-
measure:
|
|
36754
|
-
}),
|
|
36743
|
+
}), cG = j.getNodeFor((_a5 = sG.current.over) == null ? void 0 : _a5.id), lG = useDragOverlayMeasuring({
|
|
36744
|
+
measure: ZW.dragOverlay.measure
|
|
36745
|
+
}), uG = lG.nodeRef.current ?? tG, dG = w ? lG.rect ?? aG : null, fG = !!(lG.nodeRef.current && lG.rect), pG = useRectDelta(fG ? null : aG), mG = useWindowRect(uG ? getWindow(uG) : null), hG = useScrollableAncestors(w ? cG ?? tG : null), gG = useRects(hG), _G = applyModifiers(m, {
|
|
36755
36746
|
transform: {
|
|
36756
|
-
x: O.x -
|
|
36757
|
-
y: O.y -
|
|
36747
|
+
x: O.x - pG.x,
|
|
36748
|
+
y: O.y - pG.y,
|
|
36758
36749
|
scaleX: 1,
|
|
36759
36750
|
scaleY: 1
|
|
36760
36751
|
},
|
|
36761
36752
|
activatorEvent: H,
|
|
36762
36753
|
active: L,
|
|
36763
|
-
activeNodeRect:
|
|
36764
|
-
containerNodeRect:
|
|
36765
|
-
draggingNodeRect:
|
|
36766
|
-
over:
|
|
36767
|
-
overlayNodeRect:
|
|
36768
|
-
scrollableAncestors:
|
|
36769
|
-
scrollableAncestorRects:
|
|
36770
|
-
windowRect:
|
|
36771
|
-
}),
|
|
36772
|
-
|
|
36773
|
-
]),
|
|
36754
|
+
activeNodeRect: aG,
|
|
36755
|
+
containerNodeRect: oG,
|
|
36756
|
+
draggingNodeRect: dG,
|
|
36757
|
+
over: sG.current.over,
|
|
36758
|
+
overlayNodeRect: lG.rect,
|
|
36759
|
+
scrollableAncestors: hG,
|
|
36760
|
+
scrollableAncestorRects: gG,
|
|
36761
|
+
windowRect: mG
|
|
36762
|
+
}), vG = nG ? add(nG, O) : null, yG = useScrollOffsets(hG), bG = useScrollOffsetsDelta(yG), xG = useScrollOffsetsDelta(yG, [
|
|
36763
|
+
aG
|
|
36764
|
+
]), SG = add(_G, bG), CG = dG ? getAdjustedRect(dG, _G) : null, wG = L && CG ? f({
|
|
36774
36765
|
active: L,
|
|
36775
|
-
collisionRect:
|
|
36776
|
-
droppableRects:
|
|
36766
|
+
collisionRect: CG,
|
|
36767
|
+
droppableRects: QW,
|
|
36777
36768
|
droppableContainers: Z,
|
|
36778
|
-
pointerCoordinates:
|
|
36779
|
-
}) : null,
|
|
36769
|
+
pointerCoordinates: vG
|
|
36770
|
+
}) : null, TG = getFirstCollision(wG, "id"), [EG, DG] = (0, import_react.useState)(null), OG = adjustScale(fG ? _G : add(_G, xG), (EG == null ? void 0 : EG.rect) ?? null, aG), kG = (0, import_react.useRef)(null), AG = (0, import_react.useCallback)((e2, r2) => {
|
|
36780
36771
|
let { sensor: c2, options: l2 } = r2;
|
|
36781
36772
|
if (R.current == null) return;
|
|
36782
36773
|
let u2 = E.get(R.current);
|
|
36783
36774
|
if (!u2) return;
|
|
36784
36775
|
let d2 = e2.nativeEvent;
|
|
36785
|
-
|
|
36776
|
+
kG.current = new c2({
|
|
36786
36777
|
active: R.current,
|
|
36787
36778
|
activeNode: u2,
|
|
36788
36779
|
event: d2,
|
|
36789
36780
|
options: l2,
|
|
36790
|
-
context:
|
|
36781
|
+
context: sG,
|
|
36791
36782
|
onAbort(e3) {
|
|
36792
36783
|
if (!E.get(e3)) return;
|
|
36793
36784
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -36832,7 +36823,7 @@ ${c}
|
|
|
36832
36823
|
}), v({
|
|
36833
36824
|
type: "onDragStart",
|
|
36834
36825
|
event: u3
|
|
36835
|
-
}), B(
|
|
36826
|
+
}), B(kG.current), W(d2);
|
|
36836
36827
|
});
|
|
36837
36828
|
},
|
|
36838
36829
|
onMove(e3) {
|
|
@@ -36846,7 +36837,7 @@ ${c}
|
|
|
36846
36837
|
});
|
|
36847
36838
|
function f2(e3) {
|
|
36848
36839
|
return async function() {
|
|
36849
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
36840
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = sG.current, f3 = null;
|
|
36850
36841
|
if (r3 && u3) {
|
|
36851
36842
|
let { cancelDrop: p2 } = G.current;
|
|
36852
36843
|
f3 = {
|
|
@@ -36860,7 +36851,7 @@ ${c}
|
|
|
36860
36851
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36861
36852
|
_({
|
|
36862
36853
|
type: e3
|
|
36863
|
-
}), S(Status.Uninitialized),
|
|
36854
|
+
}), S(Status.Uninitialized), DG(null), B(null), W(null), kG.current = null;
|
|
36864
36855
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
36865
36856
|
if (f3) {
|
|
36866
36857
|
let e4 = G.current[r4];
|
|
@@ -36874,7 +36865,7 @@ ${c}
|
|
|
36874
36865
|
}
|
|
36875
36866
|
}, [
|
|
36876
36867
|
E
|
|
36877
|
-
]),
|
|
36868
|
+
]), jG = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
36878
36869
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
36879
36870
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
36880
36871
|
let f2 = {
|
|
@@ -36882,26 +36873,26 @@ ${c}
|
|
|
36882
36873
|
};
|
|
36883
36874
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
36884
36875
|
capturedBy: r2.sensor
|
|
36885
|
-
}, R.current = l2,
|
|
36876
|
+
}, R.current = l2, AG(c2, r2));
|
|
36886
36877
|
}, [
|
|
36887
36878
|
E,
|
|
36888
|
-
|
|
36879
|
+
AG
|
|
36889
36880
|
]));
|
|
36890
36881
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
36891
|
-
|
|
36882
|
+
aG && b === Status.Initializing && S(Status.Initialized);
|
|
36892
36883
|
}, [
|
|
36893
|
-
|
|
36884
|
+
aG,
|
|
36894
36885
|
b
|
|
36895
36886
|
]), (0, import_react.useEffect)(() => {
|
|
36896
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
36887
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = sG.current;
|
|
36897
36888
|
if (!r2 || !c2) return;
|
|
36898
36889
|
let d2 = {
|
|
36899
36890
|
active: r2,
|
|
36900
36891
|
activatorEvent: c2,
|
|
36901
36892
|
collisions: l2,
|
|
36902
36893
|
delta: {
|
|
36903
|
-
x:
|
|
36904
|
-
y:
|
|
36894
|
+
x: SG.x,
|
|
36895
|
+
y: SG.y
|
|
36905
36896
|
},
|
|
36906
36897
|
over: u2
|
|
36907
36898
|
};
|
|
@@ -36912,12 +36903,12 @@ ${c}
|
|
|
36912
36903
|
});
|
|
36913
36904
|
});
|
|
36914
36905
|
}, [
|
|
36915
|
-
|
|
36916
|
-
|
|
36906
|
+
SG.x,
|
|
36907
|
+
SG.y
|
|
36917
36908
|
]), (0, import_react.useEffect)(() => {
|
|
36918
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
36909
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = sG.current;
|
|
36919
36910
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
36920
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
36911
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(TG), p2 = f2 && f2.rect.current ? {
|
|
36921
36912
|
id: f2.id,
|
|
36922
36913
|
rect: f2.rect.current,
|
|
36923
36914
|
data: f2.data,
|
|
@@ -36933,127 +36924,127 @@ ${c}
|
|
|
36933
36924
|
over: p2
|
|
36934
36925
|
};
|
|
36935
36926
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36936
|
-
|
|
36927
|
+
DG(p2), d2 == null ? void 0 : d2(m2), v({
|
|
36937
36928
|
type: "onDragOver",
|
|
36938
36929
|
event: m2
|
|
36939
36930
|
});
|
|
36940
36931
|
});
|
|
36941
36932
|
}, [
|
|
36942
|
-
|
|
36933
|
+
TG
|
|
36943
36934
|
]), useIsomorphicLayoutEffect(() => {
|
|
36944
|
-
|
|
36935
|
+
sG.current = {
|
|
36945
36936
|
activatorEvent: H,
|
|
36946
36937
|
active: L,
|
|
36947
|
-
activeNode:
|
|
36948
|
-
collisionRect:
|
|
36949
|
-
collisions:
|
|
36950
|
-
droppableRects:
|
|
36938
|
+
activeNode: tG,
|
|
36939
|
+
collisionRect: CG,
|
|
36940
|
+
collisions: wG,
|
|
36941
|
+
droppableRects: QW,
|
|
36951
36942
|
draggableNodes: E,
|
|
36952
|
-
draggingNode:
|
|
36953
|
-
draggingNodeRect:
|
|
36943
|
+
draggingNode: uG,
|
|
36944
|
+
draggingNodeRect: dG,
|
|
36954
36945
|
droppableContainers: j,
|
|
36955
|
-
over:
|
|
36956
|
-
scrollableAncestors:
|
|
36957
|
-
scrollAdjustedTranslate:
|
|
36946
|
+
over: EG,
|
|
36947
|
+
scrollableAncestors: hG,
|
|
36948
|
+
scrollAdjustedTranslate: SG
|
|
36958
36949
|
}, I.current = {
|
|
36959
|
-
initial:
|
|
36960
|
-
translated:
|
|
36950
|
+
initial: dG,
|
|
36951
|
+
translated: CG
|
|
36961
36952
|
};
|
|
36962
36953
|
}, [
|
|
36963
36954
|
L,
|
|
36964
|
-
|
|
36965
|
-
TG,
|
|
36955
|
+
tG,
|
|
36966
36956
|
wG,
|
|
36957
|
+
CG,
|
|
36967
36958
|
E,
|
|
36959
|
+
uG,
|
|
36968
36960
|
dG,
|
|
36969
|
-
|
|
36970
|
-
$W,
|
|
36961
|
+
QW,
|
|
36971
36962
|
j,
|
|
36972
|
-
|
|
36973
|
-
|
|
36974
|
-
|
|
36963
|
+
EG,
|
|
36964
|
+
hG,
|
|
36965
|
+
SG
|
|
36975
36966
|
]), useAutoScroller({
|
|
36976
|
-
...
|
|
36967
|
+
...rG,
|
|
36977
36968
|
delta: O,
|
|
36978
|
-
draggingRect:
|
|
36979
|
-
pointerCoordinates:
|
|
36980
|
-
scrollableAncestors:
|
|
36981
|
-
scrollableAncestorRects:
|
|
36969
|
+
draggingRect: CG,
|
|
36970
|
+
pointerCoordinates: vG,
|
|
36971
|
+
scrollableAncestors: hG,
|
|
36972
|
+
scrollableAncestorRects: gG
|
|
36982
36973
|
});
|
|
36983
|
-
let
|
|
36974
|
+
let MG = (0, import_react.useMemo)(() => ({
|
|
36984
36975
|
active: L,
|
|
36985
|
-
activeNode:
|
|
36986
|
-
activeNodeRect:
|
|
36976
|
+
activeNode: tG,
|
|
36977
|
+
activeNodeRect: aG,
|
|
36987
36978
|
activatorEvent: H,
|
|
36988
|
-
collisions:
|
|
36989
|
-
containerNodeRect:
|
|
36990
|
-
dragOverlay:
|
|
36979
|
+
collisions: wG,
|
|
36980
|
+
containerNodeRect: oG,
|
|
36981
|
+
dragOverlay: lG,
|
|
36991
36982
|
draggableNodes: E,
|
|
36992
36983
|
droppableContainers: j,
|
|
36993
|
-
droppableRects:
|
|
36994
|
-
over:
|
|
36995
|
-
measureDroppableContainers:
|
|
36996
|
-
scrollableAncestors:
|
|
36997
|
-
scrollableAncestorRects:
|
|
36998
|
-
measuringConfiguration:
|
|
36999
|
-
measuringScheduled:
|
|
37000
|
-
windowRect:
|
|
36984
|
+
droppableRects: QW,
|
|
36985
|
+
over: EG,
|
|
36986
|
+
measureDroppableContainers: $W,
|
|
36987
|
+
scrollableAncestors: hG,
|
|
36988
|
+
scrollableAncestorRects: gG,
|
|
36989
|
+
measuringConfiguration: ZW,
|
|
36990
|
+
measuringScheduled: eG,
|
|
36991
|
+
windowRect: mG
|
|
37001
36992
|
}), [
|
|
37002
36993
|
L,
|
|
37003
|
-
|
|
37004
|
-
|
|
36994
|
+
tG,
|
|
36995
|
+
aG,
|
|
37005
36996
|
H,
|
|
37006
|
-
|
|
37007
|
-
|
|
37008
|
-
|
|
36997
|
+
wG,
|
|
36998
|
+
oG,
|
|
36999
|
+
lG,
|
|
37009
37000
|
E,
|
|
37010
37001
|
j,
|
|
37002
|
+
QW,
|
|
37003
|
+
EG,
|
|
37011
37004
|
$W,
|
|
37012
|
-
|
|
37013
|
-
eG,
|
|
37005
|
+
hG,
|
|
37014
37006
|
gG,
|
|
37015
|
-
|
|
37016
|
-
|
|
37017
|
-
|
|
37018
|
-
|
|
37019
|
-
]), PG = (0, import_react.useMemo)(() => ({
|
|
37007
|
+
ZW,
|
|
37008
|
+
eG,
|
|
37009
|
+
mG
|
|
37010
|
+
]), NG = (0, import_react.useMemo)(() => ({
|
|
37020
37011
|
activatorEvent: H,
|
|
37021
|
-
activators:
|
|
37012
|
+
activators: jG,
|
|
37022
37013
|
active: L,
|
|
37023
|
-
activeNodeRect:
|
|
37014
|
+
activeNodeRect: aG,
|
|
37024
37015
|
ariaDescribedById: {
|
|
37025
37016
|
draggable: q
|
|
37026
37017
|
},
|
|
37027
37018
|
dispatch: _,
|
|
37028
37019
|
draggableNodes: E,
|
|
37029
|
-
over:
|
|
37030
|
-
measureDroppableContainers:
|
|
37020
|
+
over: EG,
|
|
37021
|
+
measureDroppableContainers: $W
|
|
37031
37022
|
}), [
|
|
37032
37023
|
H,
|
|
37033
|
-
|
|
37024
|
+
jG,
|
|
37034
37025
|
L,
|
|
37035
|
-
|
|
37026
|
+
aG,
|
|
37036
37027
|
_,
|
|
37037
37028
|
q,
|
|
37038
37029
|
E,
|
|
37039
|
-
|
|
37040
|
-
|
|
37030
|
+
EG,
|
|
37031
|
+
$W
|
|
37041
37032
|
]);
|
|
37042
37033
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
37043
37034
|
value: y
|
|
37044
37035
|
}, import_react.createElement(InternalContext.Provider, {
|
|
37045
|
-
value: PG
|
|
37046
|
-
}, import_react.createElement(PublicContext.Provider, {
|
|
37047
37036
|
value: NG
|
|
37037
|
+
}, import_react.createElement(PublicContext.Provider, {
|
|
37038
|
+
value: MG
|
|
37048
37039
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
37049
|
-
value:
|
|
37040
|
+
value: OG
|
|
37050
37041
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
37051
37042
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
37052
37043
|
})), import_react.createElement(Accessibility, {
|
|
37053
37044
|
...c,
|
|
37054
37045
|
hiddenTextDescribedById: q
|
|
37055
37046
|
}));
|
|
37056
|
-
function
|
|
37047
|
+
function PG() {
|
|
37057
37048
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
37058
37049
|
return typeof l == "object" ? {
|
|
37059
37050
|
...l,
|
|
@@ -37581,7 +37572,7 @@ ${c}
|
|
|
37581
37572
|
updateMeasurementsFor: I,
|
|
37582
37573
|
...m
|
|
37583
37574
|
}
|
|
37584
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: Z, listeners:
|
|
37575
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: Z, listeners: ZW, isDragging: QW, over: $W, setActivatorNodeRef: eG, transform: tG } = useDraggable({
|
|
37585
37576
|
id: f,
|
|
37586
37577
|
data: M,
|
|
37587
37578
|
attributes: {
|
|
@@ -37589,60 +37580,60 @@ ${c}
|
|
|
37589
37580
|
...c
|
|
37590
37581
|
},
|
|
37591
37582
|
disabled: O.draggable
|
|
37592
|
-
}),
|
|
37583
|
+
}), nG = useCombinedRefs(B, Z), rG = !!H, iG = rG && !b && isValidIndex(v) && isValidIndex(w), aG = !T && QW, oG = iG ? (aG && iG ? tG : null) ?? (p ?? E)({
|
|
37593
37584
|
rects: S,
|
|
37594
37585
|
activeNodeRect: G,
|
|
37595
37586
|
activeIndex: v,
|
|
37596
37587
|
overIndex: w,
|
|
37597
37588
|
index: j
|
|
37598
|
-
}) : null,
|
|
37589
|
+
}) : null, sG = isValidIndex(v) && isValidIndex(w) ? d({
|
|
37599
37590
|
id: f,
|
|
37600
37591
|
items: g,
|
|
37601
37592
|
activeIndex: v,
|
|
37602
37593
|
overIndex: w
|
|
37603
|
-
}) : j,
|
|
37604
|
-
activeId:
|
|
37594
|
+
}) : j, cG = H == null ? void 0 : H.id, lG = (0, import_react.useRef)({
|
|
37595
|
+
activeId: cG,
|
|
37605
37596
|
items: g,
|
|
37606
|
-
newIndex:
|
|
37597
|
+
newIndex: sG,
|
|
37607
37598
|
containerId: _
|
|
37608
|
-
}),
|
|
37599
|
+
}), uG = g !== lG.current.items, dG = r({
|
|
37609
37600
|
active: H,
|
|
37610
37601
|
containerId: _,
|
|
37611
|
-
isDragging:
|
|
37612
|
-
isSorting:
|
|
37602
|
+
isDragging: QW,
|
|
37603
|
+
isSorting: rG,
|
|
37613
37604
|
id: f,
|
|
37614
37605
|
index: j,
|
|
37615
37606
|
items: g,
|
|
37616
|
-
newIndex:
|
|
37617
|
-
previousItems:
|
|
37618
|
-
previousContainerId:
|
|
37607
|
+
newIndex: lG.current.newIndex,
|
|
37608
|
+
previousItems: lG.current.items,
|
|
37609
|
+
previousContainerId: lG.current.containerId,
|
|
37619
37610
|
transition: h,
|
|
37620
|
-
wasDragging:
|
|
37621
|
-
}),
|
|
37622
|
-
disabled: !
|
|
37611
|
+
wasDragging: lG.current.activeId != null
|
|
37612
|
+
}), fG = useDerivedTransform({
|
|
37613
|
+
disabled: !dG,
|
|
37623
37614
|
index: j,
|
|
37624
37615
|
node: R,
|
|
37625
37616
|
rect: L
|
|
37626
37617
|
});
|
|
37627
37618
|
return (0, import_react.useEffect)(() => {
|
|
37628
|
-
|
|
37619
|
+
rG && lG.current.newIndex !== sG && (lG.current.newIndex = sG), _ !== lG.current.containerId && (lG.current.containerId = _), g !== lG.current.items && (lG.current.items = g);
|
|
37629
37620
|
}, [
|
|
37630
|
-
|
|
37631
|
-
|
|
37621
|
+
rG,
|
|
37622
|
+
sG,
|
|
37632
37623
|
_,
|
|
37633
37624
|
g
|
|
37634
37625
|
]), (0, import_react.useEffect)(() => {
|
|
37635
|
-
if (
|
|
37636
|
-
if (
|
|
37637
|
-
|
|
37626
|
+
if (cG === lG.current.activeId) return;
|
|
37627
|
+
if (cG != null && lG.current.activeId == null) {
|
|
37628
|
+
lG.current.activeId = cG;
|
|
37638
37629
|
return;
|
|
37639
37630
|
}
|
|
37640
37631
|
let e2 = setTimeout(() => {
|
|
37641
|
-
|
|
37632
|
+
lG.current.activeId = cG;
|
|
37642
37633
|
}, 50);
|
|
37643
37634
|
return () => clearTimeout(e2);
|
|
37644
37635
|
}, [
|
|
37645
|
-
|
|
37636
|
+
cG
|
|
37646
37637
|
]), {
|
|
37647
37638
|
active: H,
|
|
37648
37639
|
activeIndex: v,
|
|
@@ -37650,25 +37641,25 @@ ${c}
|
|
|
37650
37641
|
data: M,
|
|
37651
37642
|
rect: L,
|
|
37652
37643
|
index: j,
|
|
37653
|
-
newIndex:
|
|
37644
|
+
newIndex: sG,
|
|
37654
37645
|
items: g,
|
|
37655
37646
|
isOver: z,
|
|
37656
|
-
isSorting:
|
|
37657
|
-
isDragging:
|
|
37658
|
-
listeners:
|
|
37647
|
+
isSorting: rG,
|
|
37648
|
+
isDragging: QW,
|
|
37649
|
+
listeners: ZW,
|
|
37659
37650
|
node: R,
|
|
37660
37651
|
overIndex: w,
|
|
37661
|
-
over:
|
|
37662
|
-
setNodeRef:
|
|
37663
|
-
setActivatorNodeRef:
|
|
37652
|
+
over: $W,
|
|
37653
|
+
setNodeRef: nG,
|
|
37654
|
+
setActivatorNodeRef: eG,
|
|
37664
37655
|
setDroppableNodeRef: B,
|
|
37665
37656
|
setDraggableNodeRef: Z,
|
|
37666
|
-
transform:
|
|
37667
|
-
transition:
|
|
37657
|
+
transform: fG ?? oG,
|
|
37658
|
+
transition: pG()
|
|
37668
37659
|
};
|
|
37669
|
-
function
|
|
37670
|
-
if (
|
|
37671
|
-
if (!(
|
|
37660
|
+
function pG() {
|
|
37661
|
+
if (fG || uG && lG.current.newIndex === j) return disabledTransition;
|
|
37662
|
+
if (!(aG && !isKeyboardEvent(W) || !h) && (rG || dG)) return CSS$1.Transition.toString({
|
|
37672
37663
|
...h,
|
|
37673
37664
|
property: transitionProperty
|
|
37674
37665
|
});
|
|
@@ -37970,13 +37961,13 @@ ${c}
|
|
|
37970
37961
|
}), r[35] = c.id, r[36] = m, 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];
|
|
37971
37962
|
let Z = q;
|
|
37972
37963
|
if (!v && !g) return Z;
|
|
37973
|
-
let
|
|
37974
|
-
r[46] === Z ?
|
|
37964
|
+
let ZW;
|
|
37965
|
+
r[46] === Z ? ZW = r[47] : (ZW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
37975
37966
|
asChild: true,
|
|
37976
37967
|
children: Z
|
|
37977
|
-
}), r[46] = Z, r[47] =
|
|
37978
|
-
let
|
|
37979
|
-
r[48] === v ?
|
|
37968
|
+
}), r[46] = Z, r[47] = ZW);
|
|
37969
|
+
let QW;
|
|
37970
|
+
r[48] === v ? QW = r[49] : (QW = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37980
37971
|
onSelect: v,
|
|
37981
37972
|
children: [
|
|
37982
37973
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -37984,11 +37975,11 @@ ${c}
|
|
|
37984
37975
|
}),
|
|
37985
37976
|
"Add cell"
|
|
37986
37977
|
]
|
|
37987
|
-
}), r[48] = v, r[49] =
|
|
37978
|
+
}), r[48] = v, r[49] = QW);
|
|
37979
|
+
let $W;
|
|
37980
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($W = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = $W) : $W = r[50];
|
|
37988
37981
|
let eG;
|
|
37989
|
-
r[
|
|
37990
|
-
let tG;
|
|
37991
|
-
r[51] === g ? tG = r[52] : (tG = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37982
|
+
r[51] === g ? eG = r[52] : (eG = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37992
37983
|
variant: "danger",
|
|
37993
37984
|
onSelect: g,
|
|
37994
37985
|
children: [
|
|
@@ -37997,22 +37988,22 @@ ${c}
|
|
|
37997
37988
|
}),
|
|
37998
37989
|
"Delete cell"
|
|
37999
37990
|
]
|
|
38000
|
-
}), r[51] = g, r[52] =
|
|
38001
|
-
let
|
|
38002
|
-
r[53] !==
|
|
37991
|
+
}), r[51] = g, r[52] = eG);
|
|
37992
|
+
let tG;
|
|
37993
|
+
r[53] !== QW || r[54] !== eG ? (tG = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
38003
37994
|
children: [
|
|
37995
|
+
QW,
|
|
38004
37996
|
$W,
|
|
38005
|
-
eG
|
|
38006
|
-
tG
|
|
37997
|
+
eG
|
|
38007
37998
|
]
|
|
38008
|
-
}), r[53] =
|
|
38009
|
-
let
|
|
38010
|
-
return r[56] !==
|
|
37999
|
+
}), r[53] = QW, r[54] = eG, r[55] = tG) : tG = r[55];
|
|
38000
|
+
let nG;
|
|
38001
|
+
return r[56] !== ZW || r[57] !== tG ? (nG = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
38011
38002
|
children: [
|
|
38012
|
-
|
|
38013
|
-
|
|
38003
|
+
ZW,
|
|
38004
|
+
tG
|
|
38014
38005
|
]
|
|
38015
|
-
}), r[56] =
|
|
38006
|
+
}), r[56] = ZW, r[57] = tG, r[58] = nG) : nG = r[58], nG;
|
|
38016
38007
|
}, InsertCellLine = (e) => {
|
|
38017
38008
|
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;
|
|
38018
38009
|
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);
|
|
@@ -38066,10 +38057,10 @@ ${c}
|
|
|
38066
38057
|
...B,
|
|
38067
38058
|
...m
|
|
38068
38059
|
}, r[20] = M, r[21] = m, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
38069
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", Z = w && !T && "opacity-35",
|
|
38070
|
-
r[25] !== l || r[26] !== Z || r[27] !==
|
|
38071
|
-
let
|
|
38072
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
38060
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", Z = w && !T && "opacity-35", ZW = T && "opacity-95 shadow-lg", QW;
|
|
38061
|
+
r[25] !== l || r[26] !== Z || r[27] !== ZW || r[28] !== q ? (QW = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, Z, ZW, l), r[25] = l, r[26] = Z, r[27] = ZW, r[28] = q, r[29] = QW) : QW = r[29];
|
|
38062
|
+
let $W;
|
|
38063
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? ($W = G && (0, import_jsx_runtime.jsx)("div", {
|
|
38073
38064
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
38074
38065
|
style: {
|
|
38075
38066
|
transform: `scale(${I})`,
|
|
@@ -38085,14 +38076,14 @@ ${c}
|
|
|
38085
38076
|
output: c.output,
|
|
38086
38077
|
stale: outputIsStale(c, false)
|
|
38087
38078
|
})
|
|
38088
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
38089
|
-
let
|
|
38090
|
-
r[37] === z ?
|
|
38079
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = $W) : $W = r[36];
|
|
38080
|
+
let eG;
|
|
38081
|
+
r[37] === z ? eG = r[38] : (eG = z && (0, import_jsx_runtime.jsx)("div", {
|
|
38091
38082
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
38092
38083
|
"aria-hidden": true
|
|
38093
|
-
}), r[37] = z, r[38] =
|
|
38094
|
-
let
|
|
38095
|
-
r[39] !== z || r[40] !== R ? (
|
|
38084
|
+
}), r[37] = z, r[38] = eG);
|
|
38085
|
+
let tG;
|
|
38086
|
+
r[39] !== z || r[40] !== R ? (tG = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
38096
38087
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
38097
38088
|
className: "text-xs opacity-80",
|
|
38098
38089
|
children: R.description
|
|
@@ -38104,19 +38095,19 @@ ${c}
|
|
|
38104
38095
|
className: "h-3.5 w-3.5"
|
|
38105
38096
|
})
|
|
38106
38097
|
})
|
|
38107
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
38108
|
-
let
|
|
38109
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
38098
|
+
}), r[39] = z, r[40] = R, r[41] = tG) : tG = r[41];
|
|
38099
|
+
let nG;
|
|
38100
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== QW || r[46] !== $W || r[47] !== eG || r[48] !== tG ? (nG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38110
38101
|
ref: f,
|
|
38111
|
-
className:
|
|
38102
|
+
className: QW,
|
|
38112
38103
|
style: W,
|
|
38113
38104
|
...d,
|
|
38114
38105
|
children: [
|
|
38106
|
+
$W,
|
|
38115
38107
|
eG,
|
|
38116
|
-
tG
|
|
38117
|
-
nG
|
|
38108
|
+
tG
|
|
38118
38109
|
]
|
|
38119
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
38110
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = QW, r[46] = $W, r[47] = eG, r[48] = tG, r[49] = nG) : nG = r[49], nG;
|
|
38120
38111
|
}, MiniCodePreview = (e) => {
|
|
38121
38112
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
38122
38113
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -38156,7 +38147,7 @@ ${c}
|
|
|
38156
38147
|
function _temp2$2(e) {
|
|
38157
38148
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
38158
38149
|
}
|
|
38159
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
38150
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-BW-0eLEt.js"));
|
|
38160
38151
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
38161
38152
|
var _a5;
|
|
38162
38153
|
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), [
|
|
@@ -38541,7 +38532,7 @@ ${c}
|
|
|
38541
38532
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
38542
38533
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
38543
38534
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
38544
|
-
let H, W, G, q, Z, QW, $W, eG, tG
|
|
38535
|
+
let H, W, G, q, Z, ZW, QW, $W, eG, tG;
|
|
38545
38536
|
if (r[3] !== w || 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] !== p || r[19] !== l) {
|
|
38546
38537
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
38547
38538
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -38587,11 +38578,11 @@ ${c}
|
|
|
38587
38578
|
})
|
|
38588
38579
|
})
|
|
38589
38580
|
]
|
|
38590
|
-
}), 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", Z = c,
|
|
38591
|
-
let
|
|
38592
|
-
r[40] !== M || r[41] !==
|
|
38581
|
+
}), 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", Z = c, ZW = R, QW = 0;
|
|
38582
|
+
let nG2 = y && "marimo-output-stale", rG2 = L ? "p-5" : "p-3";
|
|
38583
|
+
r[40] !== M || r[41] !== nG2 || r[42] !== rG2 ? ($W = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", nG2, rG2, M), r[40] = M, r[41] = nG2, r[42] = rG2, r[43] = $W) : $W = r[43], r[44] === d ? eG = r[45] : (eG = d ? {
|
|
38593
38584
|
maxHeight: "none"
|
|
38594
|
-
} : void 0, r[44] = d, r[45] =
|
|
38585
|
+
} : void 0, r[44] = d, r[45] = eG), tG = e2.map((e3, r2) => {
|
|
38595
38586
|
if (e3.channel === "pdb") return null;
|
|
38596
38587
|
if (e3.channel === "stdin") {
|
|
38597
38588
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -38620,36 +38611,36 @@ ${c}
|
|
|
38620
38611
|
wrapText: l
|
|
38621
38612
|
})
|
|
38622
38613
|
}, r2);
|
|
38623
|
-
}), r[3] = w, 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] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = Z, r[25] =
|
|
38624
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23], Z = r[24],
|
|
38625
|
-
let
|
|
38626
|
-
r[46] !== w || r[47] !== S ? (
|
|
38614
|
+
}), r[3] = w, 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] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = Z, r[25] = ZW, r[26] = QW, r[27] = $W, r[28] = eG, r[29] = tG;
|
|
38615
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], Z = r[24], ZW = r[25], QW = r[26], $W = r[27], eG = r[28], tG = r[29];
|
|
38616
|
+
let nG;
|
|
38617
|
+
r[46] !== w || r[47] !== S ? (nG = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
38627
38618
|
value: S,
|
|
38628
38619
|
cellId: w,
|
|
38629
38620
|
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"
|
|
38630
|
-
}), r[46] = w, r[47] = S, r[48] =
|
|
38631
|
-
let
|
|
38632
|
-
r[49] !==
|
|
38621
|
+
}), r[46] = w, r[47] = S, r[48] = nG) : nG = r[48];
|
|
38622
|
+
let rG;
|
|
38623
|
+
r[49] !== nG || r[50] !== G || r[51] !== q || r[52] !== Z || r[53] !== ZW || r[54] !== QW || r[55] !== $W || r[56] !== eG || r[57] !== tG ? (rG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38633
38624
|
title: G,
|
|
38634
38625
|
"data-testid": q,
|
|
38635
38626
|
ref: Z,
|
|
38636
|
-
...
|
|
38637
|
-
tabIndex:
|
|
38638
|
-
className:
|
|
38639
|
-
style:
|
|
38627
|
+
...ZW,
|
|
38628
|
+
tabIndex: QW,
|
|
38629
|
+
className: $W,
|
|
38630
|
+
style: eG,
|
|
38640
38631
|
children: [
|
|
38641
|
-
|
|
38642
|
-
|
|
38632
|
+
tG,
|
|
38633
|
+
nG
|
|
38643
38634
|
]
|
|
38644
|
-
}), r[49] =
|
|
38645
|
-
let
|
|
38646
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
38635
|
+
}), r[49] = nG, r[50] = G, r[51] = q, r[52] = Z, r[53] = ZW, r[54] = QW, r[55] = $W, r[56] = eG, r[57] = tG, r[58] = rG) : rG = r[58];
|
|
38636
|
+
let iG;
|
|
38637
|
+
return r[59] !== H || r[60] !== W || r[61] !== rG ? (iG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38647
38638
|
className: H,
|
|
38648
38639
|
children: [
|
|
38649
38640
|
W,
|
|
38650
|
-
|
|
38641
|
+
rG
|
|
38651
38642
|
]
|
|
38652
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
38643
|
+
}), r[59] = H, r[60] = W, r[61] = rG, r[62] = iG) : iG = r[62], iG;
|
|
38653
38644
|
}, StdInput = (e) => {
|
|
38654
38645
|
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;
|
|
38655
38646
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -40239,6 +40230,7 @@ ${c}
|
|
|
40239
40230
|
constructor(e = {}) {
|
|
40240
40231
|
__publicField(this, "sessionReady", new Deferred());
|
|
40241
40232
|
__publicField(this, "nextSessionGeneration", 0);
|
|
40233
|
+
__publicField(this, "activeSessionGenerations", /* @__PURE__ */ new Set());
|
|
40242
40234
|
__publicField(this, "appTransition", Promise.resolve());
|
|
40243
40235
|
__publicField(this, "workerReady", new Deferred());
|
|
40244
40236
|
__publicField(this, "initialized", new Deferred());
|
|
@@ -40344,7 +40336,7 @@ ${c}
|
|
|
40344
40336
|
Logger.error("Islands initialization error:", e), this.store.set(islandsInitializedAtom, e), this.initialized.reject(Error(e));
|
|
40345
40337
|
}), this.rpc.addMessageListener("kernelMessage", (e) => {
|
|
40346
40338
|
var _a5;
|
|
40347
|
-
(_a5 = this.messageConsumer) == null ? void 0 : _a5.call(this, e);
|
|
40339
|
+
this.activeSessionGenerations.has(e.sessionGeneration) && ((_a5 = this.messageConsumer) == null ? void 0 : _a5.call(this, e));
|
|
40348
40340
|
});
|
|
40349
40341
|
}
|
|
40350
40342
|
async initializeApps() {
|
|
@@ -40363,7 +40355,7 @@ ${c}
|
|
|
40363
40355
|
parseMarimoIslandApps(this.root);
|
|
40364
40356
|
return;
|
|
40365
40357
|
}
|
|
40366
|
-
e.length > 0 && this.store.set(islandsPendingInitialRunsAtom, new Set(e.map((e2, r2) => this.nextSessionGeneration + r2 + 1))), parseMarimoIslandApps(this.root);
|
|
40358
|
+
e.length > 0 && (this.activeSessionGenerations.clear(), this.store.set(islandsPendingInitialRunsAtom, new Set(e.map((e2, r2) => this.nextSessionGeneration + r2 + 1)))), parseMarimoIslandApps(this.root);
|
|
40367
40359
|
for (let c2 of e) {
|
|
40368
40360
|
let e2 = u || createMarimoFile(c2);
|
|
40369
40361
|
Logger.debug(`App ${c2.id} marimo file:
|
|
@@ -40373,7 +40365,7 @@ ${c}
|
|
|
40373
40365
|
appId: c2.id,
|
|
40374
40366
|
sessionGeneration: ++this.nextSessionGeneration
|
|
40375
40367
|
}, d = this.session, f = r && d !== void 0;
|
|
40376
|
-
f && this.store.set(notebookAtom, initialNotebookState()), (r || !d) && (r && this.sessionReady.status !== "pending" && (this.sessionReady = new Deferred()), this.session = {
|
|
40368
|
+
this.activeSessionGenerations.add(l2.sessionGeneration), f && this.store.set(notebookAtom, initialNotebookState()), (r || !d) && (r && this.sessionReady.status !== "pending" && (this.sessionReady = new Deferred()), this.session = {
|
|
40377
40369
|
...l2,
|
|
40378
40370
|
code: r ? e2 : void 0
|
|
40379
40371
|
});
|
|
@@ -40381,14 +40373,14 @@ ${c}
|
|
|
40381
40373
|
try {
|
|
40382
40374
|
await p, this.sessionReady.status === "pending" && this.session && this.sessionReady.resolve(this.session);
|
|
40383
40375
|
} catch (e3) {
|
|
40384
|
-
if (((_d4 = this.session) == null ? void 0 : _d4.sessionGeneration) === l2.sessionGeneration && (this.session = d), Logger.error(`Failed to start session for app ${c2.id}:`, e3), r) throw e3;
|
|
40376
|
+
if (this.activeSessionGenerations.delete(l2.sessionGeneration), ((_d4 = this.session) == null ? void 0 : _d4.sessionGeneration) === l2.sessionGeneration && (this.session = d, d && this.activeSessionGenerations.add(d.sessionGeneration)), Logger.error(`Failed to start session for app ${c2.id}:`, e3), r) throw e3;
|
|
40385
40377
|
}
|
|
40386
40378
|
}
|
|
40387
40379
|
}
|
|
40388
40380
|
async stopSession(e) {
|
|
40389
40381
|
await this.enqueueAppTransition(async () => {
|
|
40390
40382
|
let r = this.session;
|
|
40391
|
-
(r == null ? void 0 : r.code) === void 0 || e && r.appId !== e || (await this.rpc.proxy.request.stopSession({
|
|
40383
|
+
(r == null ? void 0 : r.code) === void 0 || e && r.appId !== e || (this.activeSessionGenerations.delete(r.sessionGeneration), await this.rpc.proxy.request.stopSession({
|
|
40392
40384
|
appId: r.appId,
|
|
40393
40385
|
sessionGeneration: r.sessionGeneration
|
|
40394
40386
|
}), this.store.set(islandsPendingInitialRunsAtom, null), this.session = void 0, this.sessionReady = new Deferred(), this.store.set(notebookAtom, initialNotebookState()));
|