@marimo-team/islands 0.24.1-dev3 → 0.24.1-dev31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-BUC1MrsF.js → ConnectedDataExplorerComponent-yEsovh7C.js} +4 -4
- package/dist/arrays-Ct6XviUd.js +59 -0
- package/dist/{capabilities-BilXeZ7p.js → capabilities-DNKeBoT5.js} +1 -1
- package/dist/{chat-ui-ChBRy1iT.js → chat-ui-ChbH2I73.js} +3 -3
- package/dist/{common-BvTQu-LJ.js → common-ZoATHjIZ.js} +17 -11
- package/dist/{formats-Dz0QNUEa.js → formats-BZtMpeQe.js} +1 -1
- package/dist/{glide-data-editor-BI2i_IEE.js → glide-data-editor-aimC_hok.js} +3 -1
- package/dist/{html-to-image-BtNr4zrO.js → html-to-image-BzT-fb14.js} +2357 -2325
- package/dist/{input-BRE2a7Ay.js → input-CqV2ZPgL.js} +1 -1
- package/dist/{loader-DTnbNSVZ.js → loader-Chm6nOqy.js} +1 -1
- package/dist/main.js +1196 -1088
- package/dist/{once-Boutk_9X.js → once-D1_qYl2e.js} +1 -1
- package/dist/{process-output-Dch8KCi8.js → process-output-C8Q8G6-g.js} +1 -1
- package/dist/{react-vega-zyfTF9SY.js → react-vega-BE2Uv1cq.js} +1 -1
- package/dist/{reveal-component-qNkzuPp3.js → reveal-component-CBpmFHpU.js} +5 -5
- package/dist/{spec-BL1GSUUF.js → spec-DR1CyTOo.js} +2 -0
- package/dist/style.css +1 -1
- package/dist/{swiper-component-Cx0cRWLk.js → swiper-component-UYicacis.js} +1 -1
- package/dist/{useIframeCapabilities-CxuXXwjj.js → useIframeCapabilities-BbnoLKxG.js} +1 -1
- package/dist/{vega-component-CioKuDut.js → vega-component-xrHju6oo.js} +5 -5
- package/dist/{vega-embed-container-BRjjqRGz.js → vega-embed-container-B1tc-DoN.js} +2 -2
- package/dist/{vega-loader.browser-CGb-2Kwi.js → vega-loader.browser-VFQfHaoV.js} +1 -1
- package/package.json +1 -1
- package/src/components/app-config/optional-features.test.ts +78 -0
- package/src/components/app-config/optional-features.tsx +33 -6
- package/src/components/data-table/__tests__/column_formatting.test.ts +7 -0
- package/src/components/data-table/charts/__tests__/schemas.test.ts +17 -2
- package/src/components/data-table/charts/chart-spec/types.ts +2 -0
- package/src/components/data-table/column-formatting/feature.ts +1 -0
- package/src/components/data-table/column-formatting/types.ts +1 -0
- package/src/components/data-table/column-summary/chart-spec-model.tsx +1 -0
- package/src/components/data-table/column-summary/column-summary.tsx +1 -0
- package/src/components/data-table/columns.tsx +4 -3
- package/src/components/datasets/__tests__/icons.test.ts +10 -2
- package/src/components/datasets/icons.tsx +4 -0
- package/src/components/datasources/__tests__/components.test.tsx +14 -1
- package/src/components/datasources/datasources.tsx +2 -40
- package/src/components/editor/chrome/panels/components.tsx +35 -0
- package/src/components/editor/chrome/panels/file-explorer-panel.tsx +10 -0
- package/src/components/editor/chrome/panels/session-panel.tsx +12 -4
- package/src/components/editor/connections/__tests__/quick-add-data-sources.test.tsx +2 -0
- package/src/components/editor/connections/add-connection-dialog.tsx +5 -1
- package/src/components/editor/connections/quick-add-data-sources.tsx +11 -7
- package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +43 -0
- package/src/components/editor/connections/storage/__tests__/as-code.test.ts +127 -0
- package/src/components/editor/connections/storage/add-storage-form.tsx +11 -1
- package/src/components/editor/connections/storage/as-code.ts +30 -1
- package/src/components/editor/connections/storage/schemas.ts +63 -0
- package/src/core/codemirror/code-lens/__tests__/popover.test.ts +13 -0
- package/src/core/codemirror/code-lens/popover.tsx +11 -5
- package/src/core/codemirror/language/languages/sql/__tests__/renderers.test.tsx +15 -4
- package/src/core/codemirror/language/languages/sql/renderers.tsx +1 -0
- package/src/core/datasets/__tests__/data-source-discovery.test.ts +277 -0
- package/src/core/datasets/data-source-connections.ts +36 -0
- package/src/core/datasets/data-source-discovery.ts +92 -0
- package/src/core/kernel/messages.ts +1 -0
- package/src/core/websocket/useMarimoKernelConnection.tsx +11 -3
- package/src/hooks/useDataSourceDiscovery.ts +50 -9
- package/src/plugins/impl/MatrixPlugin.tsx +256 -35
- package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +13 -1
- package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +540 -3
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +1 -0
- package/src/plugins/impl/data-editor/glide-utils.ts +1 -0
- package/src/plugins/impl/data-frames/__tests__/schema.test.ts +9 -1
- package/src/plugins/impl/data-frames/utils/__tests__/operators.test.ts +8 -0
- package/src/plugins/impl/data-frames/utils/operators.ts +1 -1
- package/src/plugins/impl/matplotlib/__tests__/matplotlib-renderer.test.ts +184 -24
- package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +40 -7
- package/src/plugins/impl/vega/__tests__/vega.test.ts +22 -4
- package/src/plugins/impl/vega/utils.ts +3 -0
- package/dist/arrays-C56grfjL.js +0 -55
- package/src/hooks/__tests__/useDataSourceDiscovery.test.ts +0 -80
package/dist/main.js
CHANGED
|
@@ -22,17 +22,17 @@ import { _ as Functions, c as useEventListener, f as composeRefs, g as Logger, h
|
|
|
22
22
|
import { t as require_react } from "./react-DhGsCS90.js";
|
|
23
23
|
import { t as require_compiler_runtime } from "./compiler-runtime-DsR6imPN.js";
|
|
24
24
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-C7ZKMKox.js";
|
|
25
|
-
import { $ as notebookOutline, $t as isUninstantiated, A as ChevronDownIcon, An as Item$1, At as DeferredRequestRegistry, Bn as Layers, C as Accordion, Ct as MarkdownLanguageAdapter, D as BorderAllIcon, E as AccordionTrigger, En as selectAtom, Et as Paths, Fn as Table2, G as hasRunAnyCellAtom, Gn as Database, Gt as require_client, H as renderHTML, Hn as FileText, Ht as DATA_TYPE_ICON, I as base64ToDataView, In as PaintRoller, Jn as CircleAlert, K as cellIdsAtom, Kn as Columns2, Lt as repl, Mn as Trigger2, Pn as Trash2, Pt as jotaiJsonStorage, Q as notebookAtom, Qt as useRequestClient, R as dataViewToBase64, Rt as SQLParser, Sn as jsonParseWithSpecialChar, St as isRecord, T as AccordionItem, Tn as atomWithStorage, Tt as PathBuilder, U as getMarimoExportContext, Un as Eye, V as safeExtractSetUIElementMessageBuffers, Vn as Info, Vt as PluralWords, W as hasTrustedExportContext, X as hasOnlyOneCellAtom, Xt as getRequestClient, Y as getCellNames, Yn as Braces, Yt as convertStatsName, Z as initialNotebookState, Zt as requestClientAtom, _t as isInternalCellName, a as useCellFocusActions, at as createCell, bn as OBJECT_ID_ATTR, bt as customPythonLanguageSupport, dt as headingToIdentifier, en as publishedCellClasses, et as numColumnsAtom, f as isOutputEmpty, fn as parseAttrValue, gn as HTMLCellId, gt as getValidName, i as LazyAnyLanguageCodeMirror, jn as Root2$1, jt as generateUUID, kn as Content2, ln as NotebookScopedLocalStorage, lt as outputIsLoading, mn as parseInitialValue, n as Spinner, nt as useCellActions, o as useLastFocusedCellId, p as useExpandedConsoleOutput, pn as parseDataset, q as createActions, rt as useCellIds, s as maybeAddAltairImport, tn as shouldHidePublishedCell, tt as reducer, ut as outputIsStale, vn as UIElementId, vt as normalizeName, w as AccordionContent, wn as atomWithReducer, xn as RANDOM_ID_ATTR, xt as hasFunctionProperty, yn as findCellId, yt as Checkbox, zn as LoaderCircle, zt as MarkdownParser, __tla as __tla_0 } from "./html-to-image-
|
|
25
|
+
import { $ as notebookOutline, $t as isUninstantiated, A as ChevronDownIcon, An as Item$1, At as DeferredRequestRegistry, Bn as Layers, C as Accordion, Ct as MarkdownLanguageAdapter, D as BorderAllIcon, E as AccordionTrigger, En as selectAtom, Et as Paths, Fn as Table2, G as hasRunAnyCellAtom, Gn as Database, Gt as require_client, H as renderHTML, Hn as FileText, Ht as DATA_TYPE_ICON, I as base64ToDataView, In as PaintRoller, Jn as CircleAlert, K as cellIdsAtom, Kn as Columns2, Lt as repl, Mn as Trigger2, Pn as Trash2, Pt as jotaiJsonStorage, Q as notebookAtom, Qt as useRequestClient, R as dataViewToBase64, Rt as SQLParser, Sn as jsonParseWithSpecialChar, St as isRecord, T as AccordionItem, Tn as atomWithStorage, Tt as PathBuilder, U as getMarimoExportContext, Un as Eye, V as safeExtractSetUIElementMessageBuffers, Vn as Info, Vt as PluralWords, W as hasTrustedExportContext, X as hasOnlyOneCellAtom, Xt as getRequestClient, Y as getCellNames, Yn as Braces, Yt as convertStatsName, Z as initialNotebookState, Zt as requestClientAtom, _t as isInternalCellName, a as useCellFocusActions, at as createCell, bn as OBJECT_ID_ATTR, bt as customPythonLanguageSupport, dt as headingToIdentifier, en as publishedCellClasses, et as numColumnsAtom, f as isOutputEmpty, fn as parseAttrValue, gn as HTMLCellId, gt as getValidName, i as LazyAnyLanguageCodeMirror, jn as Root2$1, jt as generateUUID, kn as Content2, ln as NotebookScopedLocalStorage, lt as outputIsLoading, mn as parseInitialValue, n as Spinner, nt as useCellActions, o as useLastFocusedCellId, p as useExpandedConsoleOutput, pn as parseDataset, q as createActions, rt as useCellIds, s as maybeAddAltairImport, tn as shouldHidePublishedCell, tt as reducer, ut as outputIsStale, vn as UIElementId, vt as normalizeName, w as AccordionContent, wn as atomWithReducer, xn as RANDOM_ID_ATTR, xt as hasFunctionProperty, yn as findCellId, yt as Checkbox, zn as LoaderCircle, zt as MarkdownParser, __tla as __tla_0 } from "./html-to-image-BzT-fb14.js";
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BRZ_XYUw.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-j30bBjjN.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, 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 CommandSeparator, $t as Kbd, A as ErrorState, At as getPageIndexForRow, B as ContextMenuTrigger, Bt as dateToLocalISODate, C as downloadHTMLAsImage, Ct as inferFieldTypes, D as ColumnName, Dt as DelayMount, E as downloadSizeLimitAtom, Et as ColumnChartSpecModel, F as getUserColumnVisibilityCounts, Ft as TOO_MANY_ROWS, G as DateRangePicker, Gt as TabsList, H as useSelectList, Ht as dateToLocalISOTime, I as ContextMenu, It as toFieldTypes, J as Command, Jt as ChartInfoState, K as Combobox, Kt as TabsTrigger, L as ContextMenuContent, Lt as getMimeValues, M as prettifyRowColumnCount, Mt as loadTableData, N as prettifyRowCount, Nt as INDEX_COLUMN_NAME, O as ColumnPreviewContainer, Ot as useIntersectionObserver, P as getColumnCountForDisplay, Pt as SELECT_COLUMN_ID, Q as CommandList, Qt as RenderTextWithLinks, R as ContextMenuItem, Rt as isNullishFilter, S as downloadExportedFile, St as generateColumns, T as Filenames, Tt as ColumnChartContext, U as CompactChipRow, Ut as Tabs, V as useInternalStateWithSync, Vt as dateToLocalISODateTime, W as DatePicker, Wt as TabsContent, X as CommandInput, Xt as LazyVegaEmbed, Y as CommandEmpty, Yt as ChartLoadingState, Z as CommandItem, Zt as useOverflowDetection, _ as DataTable, _n as ChevronLeft, _t as TableCell, an as TextWrap, at as contextAwarePanelType, b as downloadBlob, bt as TableRow, c as SLIDE_TYPE_OPTIONS_BY_VALUE, cn as EyeOff, ct as slotsController, d as Switch, dn as Download, en as HtmlOutput, et as smartMatch, f as RadioGroup, fn as Code, g as OutputRenderer, gn as ChevronsDownUp, gt as TableBody, h as OutputArea, hn as ChevronsLeft, ht as Table, i as showCodeInRunModeAtom, in as $fae977aafc393c5c$export$6b862160d295c8e, it as contextAwarePanelOwner, j as LoadingState, jt as loadTableAndRawData, k as EmptyState, kt as usePrevious$1, lt as Toggle, m as JsonOutput, mn as ChevronsRight, mt as Provider$1, n as useNotebookCodeAvailable, nn as safeLocale, nt as PANEL_TYPES, on as GripHorizontal, ot as isCellAwareAtom, p as RadioGroupItem, pn as ChevronsUpDown, pt as Fill, q as ComboboxItem, qt as ChartErrorState, r as marimoVersionAtom, rn as $fae977aafc393c5c$export$588937bcd60ade55, rt as contextAwarePanelOpen, sn as Funnel, st as SlotNames, t as cellDomProps, tn as EmotionCacheProvider, tt as ContextAwarePanelItem, u as Slide, un as Ellipsis, v as InstallPackageButton, vn as ArrowDownWideNarrow, vt as TableHead, w as Progress, wt as renderCellValue, x as downloadByURL, xt as NAMELESS_COLUMN_PREFIX, y as ADD_PRINTING_CLASS, yt as TableHeader, z as ContextMenuSeparator, zt as Maps, __tla as __tla_2 } from "./common-
|
|
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, 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-DR1CyTOo.js";
|
|
29
|
+
import { $ as CommandSeparator, $t as Kbd, A as ErrorState, At as getPageIndexForRow, B as ContextMenuTrigger, Bt as dateToLocalISODate, C as downloadHTMLAsImage, Ct as inferFieldTypes, D as ColumnName, Dt as DelayMount, E as downloadSizeLimitAtom, Et as ColumnChartSpecModel, F as getUserColumnVisibilityCounts, Ft as TOO_MANY_ROWS, G as DateRangePicker, Gt as TabsList, H as useSelectList, Ht as dateToLocalISOTime, I as ContextMenu, It as toFieldTypes, J as Command, Jt as ChartInfoState, K as Combobox, Kt as TabsTrigger, L as ContextMenuContent, Lt as getMimeValues, M as prettifyRowColumnCount, Mt as loadTableData, N as prettifyRowCount, Nt as INDEX_COLUMN_NAME, O as ColumnPreviewContainer, Ot as useIntersectionObserver, P as getColumnCountForDisplay, Pt as SELECT_COLUMN_ID, Q as CommandList, Qt as RenderTextWithLinks, R as ContextMenuItem, Rt as isNullishFilter, S as downloadExportedFile, St as generateColumns, T as Filenames, Tt as ColumnChartContext, U as CompactChipRow, Ut as Tabs, V as useInternalStateWithSync, Vt as dateToLocalISODateTime, W as DatePicker, Wt as TabsContent, X as CommandInput, Xt as LazyVegaEmbed, Y as CommandEmpty, Yt as ChartLoadingState, Z as CommandItem, Zt as useOverflowDetection, _ as DataTable, _n as ChevronLeft, _t as TableCell, an as TextWrap, at as contextAwarePanelType, b as downloadBlob, bt as TableRow, c as SLIDE_TYPE_OPTIONS_BY_VALUE, cn as EyeOff, ct as slotsController, d as Switch, dn as Download, en as HtmlOutput, et as smartMatch, f as RadioGroup, fn as Code, g as OutputRenderer, gn as ChevronsDownUp, gt as TableBody, h as OutputArea, hn as ChevronsLeft, ht as Table, i as showCodeInRunModeAtom, in as $fae977aafc393c5c$export$6b862160d295c8e, it as contextAwarePanelOwner, j as LoadingState, jt as loadTableAndRawData, k as EmptyState, kt as usePrevious$1, lt as Toggle, m as JsonOutput, mn as ChevronsRight, mt as Provider$1, n as useNotebookCodeAvailable, nn as safeLocale, nt as PANEL_TYPES, on as GripHorizontal, ot as isCellAwareAtom, p as RadioGroupItem, pn as ChevronsUpDown, pt as Fill, q as ComboboxItem, qt as ChartErrorState, r as marimoVersionAtom, rn as $fae977aafc393c5c$export$588937bcd60ade55, rt as contextAwarePanelOpen, sn as Funnel, st as SlotNames, t as cellDomProps, tn as EmotionCacheProvider, tt as ContextAwarePanelItem, u as Slide, un as Ellipsis, v as InstallPackageButton, vn as ArrowDownWideNarrow, vt as TableHead, w as Progress, wt as renderCellValue, x as downloadByURL, xt as NAMELESS_COLUMN_PREFIX, y as ADD_PRINTING_CLASS, yt as TableHeader, z as ContextMenuSeparator, zt as Maps, __tla as __tla_2 } from "./common-ZoATHjIZ.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-Bw4wRj_O.js";
|
|
31
31
|
import { t as Check } from "./check-58HHfHKy.js";
|
|
32
32
|
import { A as Icon, C as logNever, D as $18f2051aff69b9bf$export$a54013f0d02a8f82, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, M as clamp$2, N as usePrevious$2, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as Trigger$1, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./strings-DMLVGXRo.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-
|
|
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-CqV2ZPgL.js";
|
|
34
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-CjUYDkFI.js";
|
|
35
|
-
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, f as Square, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, p as File, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-
|
|
35
|
+
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, f as Square, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, p as File, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-C8Q8G6-g.js";
|
|
36
36
|
import { n as Trash, r as Pencil, t as BulkEdit } from "./types-DT8UHI5w.js";
|
|
37
37
|
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-BniTEhHn.js";
|
|
38
38
|
import { t as require_react_dom } from "./react-dom-CmENFV8Q.js";
|
|
@@ -48,9 +48,9 @@ import { t as debounce_default } from "./debounce-D784bpms.js";
|
|
|
48
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-BzEXeAR5.js";
|
|
49
49
|
import { $ as EditorView, F as syntaxHighlighting, H as tags, a as HighlightStyle, g as defaultHighlightStyle } from "./dist-BJ2IUa0l.js";
|
|
50
50
|
import { t as invariant } from "./invariant-hOqqBz8A.js";
|
|
51
|
-
import {
|
|
51
|
+
import { l as uniqueBy, o as arrayShallowEquals, t as Arrays, u as clamp } from "./arrays-Ct6XviUd.js";
|
|
52
52
|
import { t as Objects } from "./objects-UzwQd5gx.js";
|
|
53
|
-
import { n as once } from "./once-
|
|
53
|
+
import { n as once } from "./once-D1_qYl2e.js";
|
|
54
54
|
import { f as sql } from "./dist-D9-ePb6D.js";
|
|
55
55
|
import { a as markdown } from "./dist-Awj73yUw.js";
|
|
56
56
|
import "./dist-72nb8Uag.js";
|
|
@@ -59,9 +59,9 @@ import "./dist-D1vYHETp.js";
|
|
|
59
59
|
import { r as python } from "./dist-Ckfsc8C3.js";
|
|
60
60
|
import { n as minimalSetup, t as esm_default } from "./esm-QLUgkqzZ.js";
|
|
61
61
|
import "./purify.es-DR5PNXwx.js";
|
|
62
|
-
import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-
|
|
63
|
-
import { A as getContainerWidth, j as getVegaFieldTypes } from "./vega-loader.browser-
|
|
64
|
-
import { a as tooltipHandler, n as vegaLoadData } from "./loader-
|
|
62
|
+
import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-BZtMpeQe.js";
|
|
63
|
+
import { A as getContainerWidth, j as getVegaFieldTypes } from "./vega-loader.browser-VFQfHaoV.js";
|
|
64
|
+
import { a as tooltipHandler, n as vegaLoadData } from "./loader-Chm6nOqy.js";
|
|
65
65
|
import "./defaultLocale-CMezyvMc.js";
|
|
66
66
|
import "./defaultLocale-DMZFeDB8.js";
|
|
67
67
|
import { t as useAsyncData } from "./useAsyncData-CDcbh-Qv.js";
|
|
@@ -97,7 +97,7 @@ let __tla = Promise.all([
|
|
|
97
97
|
}
|
|
98
98
|
})()
|
|
99
99
|
]).then(async () => {
|
|
100
|
-
var _a, _e2, _t2, _n2, _r, _i, _e_instances, a_fn, o_fn, s_fn, _c, _b, _e3, _WidgetDefRegistry_instances, t_fn, _c2, _e4, _t3, _n3, _r2, _i2, _a2, _o2, _e_instances2, s_fn2, c_fn, _d, _e5, _t4, _n4, _r3, _i3, _a3, _o3, _s, _c3, _l, _u, _d2, _f, _p, _WidgetRuntime_instances, m_fn, h_fn, g_fn, __fn, v_fn, y_fn, b_fn, x_fn, _e6, _e7, _t5, _n5, _instances, r_fn, _f2, _e8, _t6, _n6, _r4, _i4, _a4, _o4, _s2,
|
|
100
|
+
var _a, _e2, _t2, _n2, _r, _i, _e_instances, a_fn, o_fn, s_fn, _c, _b, _e3, _WidgetDefRegistry_instances, t_fn, _c2, _e4, _t3, _n3, _r2, _i2, _a2, _o2, _e_instances2, s_fn2, c_fn, _d, _e5, _t4, _n4, _r3, _i3, _a3, _o3, _s, _c3, _l, _u, _d2, _f, _p, _WidgetRuntime_instances, m_fn, h_fn, g_fn, __fn, v_fn, y_fn, b_fn, x_fn, _e6, _e7, _t5, _n5, _instances, r_fn, _f2, _e8, _t6, _n6, _r4, _i4, _a4, _o4, _s2, _c4, _MatplotlibRenderer_instances, l_fn, u_get, _d3, f_fn, p_fn, _m, _h, _g, __, _v, _y, _b2, _x, _S, _C, _w, _T, _E, _D, _g2, _h2;
|
|
101
101
|
var defaultIconDimensions = Object.freeze({
|
|
102
102
|
left: 0,
|
|
103
103
|
top: 0,
|
|
@@ -7519,33 +7519,33 @@ let __tla = Promise.all([
|
|
|
7519
7519
|
}), B = C({
|
|
7520
7520
|
height: 0,
|
|
7521
7521
|
width: 0
|
|
7522
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
7522
|
+
}), H = U(), W = U(), G = C(0), q = C(null), tG = C({
|
|
7523
7523
|
column: 0,
|
|
7524
7524
|
row: 0
|
|
7525
|
-
}), Z = U(),
|
|
7526
|
-
Y(x(b, $(
|
|
7527
|
-
D(
|
|
7528
|
-
}), Y(x(ut(b,
|
|
7529
|
-
D(
|
|
7525
|
+
}), Z = U(), nG = U(), rG = C(false), iG = C(0), aG = C(true), oG = C(false), sG = C(false);
|
|
7526
|
+
Y(x(b, $(iG), P(([e2, r2]) => !!r2)), () => {
|
|
7527
|
+
D(aG, false);
|
|
7528
|
+
}), Y(x(ut(b, aG, B, z, iG, oG), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7529
|
+
D(oG, true), Ue(1, () => {
|
|
7530
7530
|
D(H, e2);
|
|
7531
7531
|
}), Et(x(h), () => {
|
|
7532
7532
|
D(r, [
|
|
7533
7533
|
0,
|
|
7534
7534
|
0
|
|
7535
|
-
]), D(
|
|
7535
|
+
]), D(aG, true);
|
|
7536
7536
|
});
|
|
7537
|
-
}), F(x(
|
|
7538
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7539
|
-
D(
|
|
7537
|
+
}), F(x(nG, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(nG), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7538
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(tG, e2.gap), e2.scrollTop > 0 && (D(rG, true), Et(x(h, Kt(1)), (e3) => {
|
|
7539
|
+
D(rG, false);
|
|
7540
7540
|
}), D(m, {
|
|
7541
7541
|
top: e2.scrollTop
|
|
7542
7542
|
})));
|
|
7543
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7543
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(tG, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7544
7544
|
gap: c2,
|
|
7545
7545
|
item: r2,
|
|
7546
7546
|
scrollTop: l2,
|
|
7547
7547
|
viewport: e2
|
|
7548
|
-
}))), Z), F(x(ut(V(I), l, V(
|
|
7548
|
+
}))), Z), F(x(ut(V(I), l, V(tG, Or), V(B, xe), V(z, xe), V(q), V(L), V(rG), V(aG), V(iG)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7549
7549
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7550
7550
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7551
7551
|
if (y2 === 0) {
|
|
@@ -7564,23 +7564,23 @@ let __tla = Promise.all([
|
|
|
7564
7564
|
offsetTop: j2,
|
|
7565
7565
|
top: j2
|
|
7566
7566
|
};
|
|
7567
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7567
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, tG), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7568
7568
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7569
7569
|
return [
|
|
7570
7570
|
d2,
|
|
7571
7571
|
u2
|
|
7572
7572
|
];
|
|
7573
7573
|
}), J(ce)), r);
|
|
7574
|
-
let
|
|
7575
|
-
F(x(h, $(
|
|
7576
|
-
let
|
|
7574
|
+
let cG = C(false);
|
|
7575
|
+
F(x(h, $(cG), k(([e2, r2]) => r2 || e2 !== 0)), cG);
|
|
7576
|
+
let lG = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(cG), P(([[e2, r2], c2]) => {
|
|
7577
7577
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7578
7578
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7579
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7579
|
+
}), k(([[, e2]]) => e2 - 1), J())), uG = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), dG = bt(x(V(R), $(rG), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7580
7580
|
endIndex: e2[e2.length - 1].index,
|
|
7581
7581
|
startIndex: e2[0].index
|
|
7582
7582
|
})), J(An), Gt(0)));
|
|
7583
|
-
F(
|
|
7583
|
+
F(dG, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, tG), k(([e2, r2, c2, l2, u2]) => {
|
|
7584
7584
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7585
7585
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7586
7586
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7589,7 +7589,7 @@ let __tla = Promise.all([
|
|
|
7589
7589
|
top: g2
|
|
7590
7590
|
};
|
|
7591
7591
|
})), m);
|
|
7592
|
-
let
|
|
7592
|
+
let fG = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7593
7593
|
return F(x(j, k((e2) => ({
|
|
7594
7594
|
height: e2.visibleHeight,
|
|
7595
7595
|
width: e2.visibleWidth
|
|
@@ -7598,13 +7598,13 @@ let __tla = Promise.all([
|
|
|
7598
7598
|
data: q,
|
|
7599
7599
|
deviation: G,
|
|
7600
7600
|
footerHeight: u,
|
|
7601
|
-
gap:
|
|
7601
|
+
gap: tG,
|
|
7602
7602
|
headerHeight: d,
|
|
7603
7603
|
increaseViewportBy: e,
|
|
7604
7604
|
initialItemCount: L,
|
|
7605
7605
|
itemDimensions: B,
|
|
7606
7606
|
overscan: c,
|
|
7607
|
-
restoreStateFrom:
|
|
7607
|
+
restoreStateFrom: nG,
|
|
7608
7608
|
scrollBy: f,
|
|
7609
7609
|
scrollContainerState: p,
|
|
7610
7610
|
scrollHeight: W,
|
|
@@ -7620,16 +7620,16 @@ let __tla = Promise.all([
|
|
|
7620
7620
|
windowViewportRect: j,
|
|
7621
7621
|
...y,
|
|
7622
7622
|
gridState: R,
|
|
7623
|
-
horizontalDirection:
|
|
7624
|
-
initialTopMostItemIndex:
|
|
7625
|
-
totalListHeight:
|
|
7623
|
+
horizontalDirection: sG,
|
|
7624
|
+
initialTopMostItemIndex: iG,
|
|
7625
|
+
totalListHeight: fG,
|
|
7626
7626
|
...v,
|
|
7627
|
-
endReached:
|
|
7627
|
+
endReached: lG,
|
|
7628
7628
|
propsReady: S,
|
|
7629
|
-
rangeChanged:
|
|
7630
|
-
startReached:
|
|
7629
|
+
rangeChanged: dG,
|
|
7630
|
+
startReached: uG,
|
|
7631
7631
|
stateChanged: Z,
|
|
7632
|
-
stateRestoreInProgress:
|
|
7632
|
+
stateRestoreInProgress: rG,
|
|
7633
7633
|
...M
|
|
7634
7634
|
};
|
|
7635
7635
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7907,7 +7907,7 @@ let __tla = Promise.all([
|
|
|
7907
7907
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7908
7908
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7909
7909
|
}, r[8] = p, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7910
|
-
let
|
|
7910
|
+
let tG = q, Z;
|
|
7911
7911
|
if (r[13] !== G.bulkActions) {
|
|
7912
7912
|
if (Z = G.bulkActions.map(_temp$27), Z.length > 0) {
|
|
7913
7913
|
let e2;
|
|
@@ -7917,12 +7917,12 @@ let __tla = Promise.all([
|
|
|
7917
7917
|
}
|
|
7918
7918
|
r[13] = G.bulkActions, r[14] = Z;
|
|
7919
7919
|
} else Z = r[14];
|
|
7920
|
-
let
|
|
7921
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7920
|
+
let nG;
|
|
7921
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (nG = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7922
7922
|
"data-slot": "select-separator"
|
|
7923
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7924
|
-
let
|
|
7925
|
-
r[19] !== Z || r[20] !== G || r[21] !==
|
|
7923
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = nG) : nG = r[18];
|
|
7924
|
+
let rG = nG, iG;
|
|
7925
|
+
r[19] !== Z || r[20] !== G || r[21] !== rG || r[22] !== w || r[23] !== B || r[24] !== H ? (iG = () => {
|
|
7926
7926
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7927
7927
|
"data-slot": "select-list",
|
|
7928
7928
|
style: {
|
|
@@ -7935,7 +7935,7 @@ let __tla = Promise.all([
|
|
|
7935
7935
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7936
7936
|
children: [
|
|
7937
7937
|
e3 === 0 && Z,
|
|
7938
|
-
|
|
7938
|
+
rG(e3),
|
|
7939
7939
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7940
7940
|
option: r2,
|
|
7941
7941
|
checked: G.isChecked(r2.value),
|
|
@@ -7946,7 +7946,7 @@ let __tla = Promise.all([
|
|
|
7946
7946
|
}
|
|
7947
7947
|
});
|
|
7948
7948
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7949
|
-
let c2 =
|
|
7949
|
+
let c2 = rG(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7950
7950
|
option: e3,
|
|
7951
7951
|
checked: G.isChecked(e3.value),
|
|
7952
7952
|
renderOption: w
|
|
@@ -7964,9 +7964,9 @@ let __tla = Promise.all([
|
|
|
7964
7964
|
e2
|
|
7965
7965
|
]
|
|
7966
7966
|
});
|
|
7967
|
-
}, r[19] = Z, r[20] = G, r[21] =
|
|
7968
|
-
let
|
|
7969
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7967
|
+
}, r[19] = Z, r[20] = G, r[21] = rG, r[22] = w, r[23] = B, r[24] = H, r[25] = iG) : iG = r[25];
|
|
7968
|
+
let aG = iG, oG;
|
|
7969
|
+
r[26] !== G.labelOf || r[27] !== I ? (oG = (e2) => {
|
|
7970
7970
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7971
7971
|
e2
|
|
7972
7972
|
];
|
|
@@ -7977,46 +7977,46 @@ let __tla = Promise.all([
|
|
|
7977
7977
|
items: r2.map(G.labelOf),
|
|
7978
7978
|
max: 3
|
|
7979
7979
|
});
|
|
7980
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7981
|
-
let
|
|
7982
|
-
r[29] === G ?
|
|
7983
|
-
let
|
|
7984
|
-
r[31] !== b || r[32] !== R ? (
|
|
7980
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = oG) : oG = r[28];
|
|
7981
|
+
let sG = oG, cG = e["data-testid"], lG;
|
|
7982
|
+
r[29] === G ? lG = r[30] : (lG = (e2) => G.labelOf(e2), r[29] = G, r[30] = lG);
|
|
7983
|
+
let uG = M ? sG : void 0, dG;
|
|
7984
|
+
r[31] !== b || r[32] !== R ? (dG = cn({
|
|
7985
7985
|
"w-full": R
|
|
7986
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7987
|
-
let
|
|
7988
|
-
r[34] === z ?
|
|
7989
|
-
let
|
|
7990
|
-
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] !==
|
|
7986
|
+
}, b), r[31] = b, r[32] = R, r[33] = dG) : dG = r[33];
|
|
7987
|
+
let fG = G.searchQuery, pG = G.setSearchQuery, mG = G.open, hG = G.setOpen, gG;
|
|
7988
|
+
r[34] === z ? gG = r[35] : (gG = renderSlot(z), r[34] = z, r[35] = gG);
|
|
7989
|
+
let _G;
|
|
7990
|
+
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] !== cG || r[44] !== lG || r[45] !== uG || r[46] !== dG || r[47] !== gG ? (_G = {
|
|
7991
7991
|
"data-slot": "select-root",
|
|
7992
|
-
"data-testid":
|
|
7993
|
-
displayValue:
|
|
7994
|
-
renderValue:
|
|
7992
|
+
"data-testid": cG,
|
|
7993
|
+
displayValue: lG,
|
|
7994
|
+
renderValue: uG,
|
|
7995
7995
|
placeholder: I,
|
|
7996
|
-
className:
|
|
7996
|
+
className: dG,
|
|
7997
7997
|
shouldFilter: false,
|
|
7998
|
-
search:
|
|
7999
|
-
onSearchChange:
|
|
8000
|
-
open:
|
|
8001
|
-
onOpenChange:
|
|
8002
|
-
emptyState:
|
|
7998
|
+
search: fG,
|
|
7999
|
+
onSearchChange: pG,
|
|
8000
|
+
open: mG,
|
|
8001
|
+
onOpenChange: hG,
|
|
8002
|
+
emptyState: gG,
|
|
8003
8003
|
disabled: L,
|
|
8004
8004
|
id: S
|
|
8005
|
-
}, 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] =
|
|
8006
|
-
let
|
|
8007
|
-
return r[49] !==
|
|
8008
|
-
...
|
|
8005
|
+
}, 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] = cG, r[44] = lG, r[45] = uG, r[46] = dG, r[47] = gG, r[48] = _G) : _G = r[48];
|
|
8006
|
+
let vG = _G, yG;
|
|
8007
|
+
return r[49] !== vG || r[50] !== tG || r[51] !== d || r[52] !== aG || r[53] !== l ? (yG = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
8008
|
+
...vG,
|
|
8009
8009
|
multiple: true,
|
|
8010
8010
|
value: l,
|
|
8011
|
-
onValueChange:
|
|
8012
|
-
children:
|
|
8011
|
+
onValueChange: tG,
|
|
8012
|
+
children: aG()
|
|
8013
8013
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
8014
|
-
...
|
|
8014
|
+
...vG,
|
|
8015
8015
|
multiple: false,
|
|
8016
8016
|
value: l,
|
|
8017
|
-
onValueChange:
|
|
8018
|
-
children:
|
|
8019
|
-
}), r[49] =
|
|
8017
|
+
onValueChange: tG,
|
|
8018
|
+
children: aG()
|
|
8019
|
+
}), r[49] = vG, r[50] = tG, r[51] = d, r[52] = aG, r[53] = l, r[54] = yG) : yG = r[54], yG;
|
|
8020
8020
|
}
|
|
8021
8021
|
function _temp$27(e) {
|
|
8022
8022
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -9016,7 +9016,7 @@ let __tla = Promise.all([
|
|
|
9016
9016
|
};
|
|
9017
9017
|
}
|
|
9018
9018
|
};
|
|
9019
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
9019
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-ChbH2I73.js").then((e) => ({
|
|
9020
9020
|
default: e.Chatbot
|
|
9021
9021
|
}))), messageSchema = array(object({
|
|
9022
9022
|
id: string(),
|
|
@@ -9181,6 +9181,7 @@ let __tla = Promise.all([
|
|
|
9181
9181
|
"date",
|
|
9182
9182
|
"datetime",
|
|
9183
9183
|
"time",
|
|
9184
|
+
"geometry",
|
|
9184
9185
|
"unknown"
|
|
9185
9186
|
], NUMPY_DTYPES = [
|
|
9186
9187
|
"int8",
|
|
@@ -9567,7 +9568,7 @@ let __tla = Promise.all([
|
|
|
9567
9568
|
]), TransformationsSchema = object({
|
|
9568
9569
|
transforms: array(TransformTypeSchema)
|
|
9569
9570
|
});
|
|
9570
|
-
var import_compiler_runtime$76 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-
|
|
9571
|
+
var import_compiler_runtime$76 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-aimC_hok.js").then(async (m) => {
|
|
9571
9572
|
await m.__tla;
|
|
9572
9573
|
return m;
|
|
9573
9574
|
}));
|
|
@@ -10527,7 +10528,7 @@ let __tla = Promise.all([
|
|
|
10527
10528
|
let m2 = get(l, e2);
|
|
10528
10529
|
if (m2) {
|
|
10529
10530
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
10530
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
10531
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : tG(e2, l2), f.mount && w();
|
|
10531
10532
|
}
|
|
10532
10533
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
10533
10534
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -10600,14 +10601,14 @@ let __tla = Promise.all([
|
|
|
10600
10601
|
}, H = () => {
|
|
10601
10602
|
for (let e2 of p.unMount) {
|
|
10602
10603
|
let r2 = get(l, e2);
|
|
10603
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
10604
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && dG(e2);
|
|
10604
10605
|
}
|
|
10605
10606
|
p.unMount = /* @__PURE__ */ new Set();
|
|
10606
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
10607
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(oG(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
10607
10608
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
10608
10609
|
[e2]: r2
|
|
10609
10610
|
} : r2
|
|
10610
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
10611
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), tG = (e2, r2, c2 = {}) => {
|
|
10611
10612
|
let u2 = get(l, e2), f2 = r2;
|
|
10612
10613
|
if (u2) {
|
|
10613
10614
|
let c3 = u2._f;
|
|
@@ -10620,13 +10621,13 @@ let __tla = Promise.all([
|
|
|
10620
10621
|
}
|
|
10621
10622
|
})));
|
|
10622
10623
|
}
|
|
10623
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
10624
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && aG(e2);
|
|
10624
10625
|
}, Z = (e2, r2, c2) => {
|
|
10625
10626
|
for (let u2 in r2) {
|
|
10626
10627
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
10627
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) :
|
|
10628
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) : tG(f2, d2, c2);
|
|
10628
10629
|
}
|
|
10629
|
-
},
|
|
10630
|
+
}, nG = (e2, r2, m2 = {}) => {
|
|
10630
10631
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
10631
10632
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
10632
10633
|
name: e2,
|
|
@@ -10637,7 +10638,7 @@ let __tla = Promise.all([
|
|
|
10637
10638
|
name: e2,
|
|
10638
10639
|
dirtyFields: getDirtyFields(u, d),
|
|
10639
10640
|
isDirty: W(e2, y2)
|
|
10640
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) :
|
|
10641
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) : tG(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
10641
10642
|
...c
|
|
10642
10643
|
}), _.values.next({
|
|
10643
10644
|
name: f.mount ? e2 : void 0,
|
|
@@ -10645,7 +10646,7 @@ let __tla = Promise.all([
|
|
|
10645
10646
|
...d
|
|
10646
10647
|
}
|
|
10647
10648
|
});
|
|
10648
|
-
},
|
|
10649
|
+
}, rG = async (e2) => {
|
|
10649
10650
|
f.mount = true;
|
|
10650
10651
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
10651
10652
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -10679,11 +10680,11 @@ let __tla = Promise.all([
|
|
|
10679
10680
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
10680
10681
|
h2
|
|
10681
10682
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
10682
|
-
S2 && (E2._f.deps &&
|
|
10683
|
+
S2 && (E2._f.deps && aG(E2._f.deps), L(h2, f2, u3, G2));
|
|
10683
10684
|
}
|
|
10684
|
-
},
|
|
10685
|
+
}, iG = (e2, r2) => {
|
|
10685
10686
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
10686
|
-
},
|
|
10687
|
+
}, aG = async (e2, u2 = {}) => {
|
|
10687
10688
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
10688
10689
|
if (r.resolver) {
|
|
10689
10690
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -10702,23 +10703,23 @@ let __tla = Promise.all([
|
|
|
10702
10703
|
isValid: d2
|
|
10703
10704
|
} : {},
|
|
10704
10705
|
errors: c.errors
|
|
10705
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
10706
|
-
},
|
|
10706
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, iG, e2 ? m2 : p.mount), f2;
|
|
10707
|
+
}, oG = (e2) => {
|
|
10707
10708
|
let r2 = {
|
|
10708
10709
|
...f.mount ? d : u
|
|
10709
10710
|
};
|
|
10710
10711
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
10711
|
-
},
|
|
10712
|
+
}, sG = (e2, r2) => ({
|
|
10712
10713
|
invalid: !!get((r2 || c).errors, e2),
|
|
10713
10714
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
10714
10715
|
error: get((r2 || c).errors, e2),
|
|
10715
10716
|
isValidating: !!get(c.validatingFields, e2),
|
|
10716
10717
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
10717
|
-
}),
|
|
10718
|
+
}), cG = (e2) => {
|
|
10718
10719
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
10719
10720
|
errors: e2 ? c.errors : {}
|
|
10720
10721
|
});
|
|
10721
|
-
},
|
|
10722
|
+
}, lG = (e2, r2, u2) => {
|
|
10722
10723
|
let d2 = (get(l, e2, {
|
|
10723
10724
|
_f: {}
|
|
10724
10725
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -10731,9 +10732,9 @@ let __tla = Promise.all([
|
|
|
10731
10732
|
errors: c.errors,
|
|
10732
10733
|
isValid: false
|
|
10733
10734
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
10734
|
-
},
|
|
10735
|
+
}, uG = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
10735
10736
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
10736
|
-
}) : G(e2, r2, true),
|
|
10737
|
+
}) : G(e2, r2, true), dG = (e2, f2 = {}) => {
|
|
10737
10738
|
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);
|
|
10738
10739
|
_.values.next({
|
|
10739
10740
|
values: {
|
|
@@ -10745,9 +10746,9 @@ let __tla = Promise.all([
|
|
|
10745
10746
|
isDirty: W()
|
|
10746
10747
|
} : {}
|
|
10747
10748
|
}), !f2.keepIsValid && w();
|
|
10748
|
-
},
|
|
10749
|
+
}, fG = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
10749
10750
|
(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));
|
|
10750
|
-
},
|
|
10751
|
+
}, pG = (e2, c2 = {}) => {
|
|
10751
10752
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
10752
10753
|
return set(l, e2, {
|
|
10753
10754
|
...d2 || {},
|
|
@@ -10761,7 +10762,7 @@ let __tla = Promise.all([
|
|
|
10761
10762
|
mount: true,
|
|
10762
10763
|
...c2
|
|
10763
10764
|
}
|
|
10764
|
-
}), p.mount.add(e2), d2 ?
|
|
10765
|
+
}), p.mount.add(e2), d2 ? fG({
|
|
10765
10766
|
field: d2,
|
|
10766
10767
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
10767
10768
|
name: e2
|
|
@@ -10778,11 +10779,11 @@ let __tla = Promise.all([
|
|
|
10778
10779
|
pattern: getRuleValue(c2.pattern)
|
|
10779
10780
|
} : {},
|
|
10780
10781
|
name: e2,
|
|
10781
|
-
onChange:
|
|
10782
|
-
onBlur:
|
|
10782
|
+
onChange: rG,
|
|
10783
|
+
onBlur: rG,
|
|
10783
10784
|
ref: (m3) => {
|
|
10784
10785
|
if (m3) {
|
|
10785
|
-
|
|
10786
|
+
pG(e2, c2), d2 = get(l, e2);
|
|
10786
10787
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
10787
10788
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
10788
10789
|
set(l, e2, {
|
|
@@ -10808,7 +10809,7 @@ let __tla = Promise.all([
|
|
|
10808
10809
|
} 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);
|
|
10809
10810
|
}
|
|
10810
10811
|
};
|
|
10811
|
-
},
|
|
10812
|
+
}, mG = () => r.shouldFocusError && iterateFieldsByAction(l, iG, p.mount), hG = (e2) => {
|
|
10812
10813
|
isBoolean(e2) && (_.state.next({
|
|
10813
10814
|
disabled: e2
|
|
10814
10815
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -10817,7 +10818,7 @@ let __tla = Promise.all([
|
|
|
10817
10818
|
r3.disabled = u2._f.disabled || e2;
|
|
10818
10819
|
}));
|
|
10819
10820
|
}, 0, false));
|
|
10820
|
-
},
|
|
10821
|
+
}, gG = (e2, u2) => async (f2) => {
|
|
10821
10822
|
let m2;
|
|
10822
10823
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
10823
10824
|
let h2 = cloneObject(d);
|
|
@@ -10839,7 +10840,7 @@ let __tla = Promise.all([
|
|
|
10839
10840
|
}
|
|
10840
10841
|
} else u2 && await u2({
|
|
10841
10842
|
...c.errors
|
|
10842
|
-
}, f2),
|
|
10843
|
+
}, f2), mG(), setTimeout(mG);
|
|
10843
10844
|
if (_.state.next({
|
|
10844
10845
|
isSubmitted: true,
|
|
10845
10846
|
isSubmitting: false,
|
|
@@ -10847,11 +10848,11 @@ let __tla = Promise.all([
|
|
|
10847
10848
|
submitCount: c.submitCount + 1,
|
|
10848
10849
|
errors: c.errors
|
|
10849
10850
|
}), m2) throw m2;
|
|
10850
|
-
},
|
|
10851
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10851
|
+
}, _G = (e2, r2 = {}) => {
|
|
10852
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? nG(e2, cloneObject(get(u, e2))) : (nG(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({
|
|
10852
10853
|
...c
|
|
10853
10854
|
}));
|
|
10854
|
-
},
|
|
10855
|
+
}, vG = (e2, m2 = {}) => {
|
|
10855
10856
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10856
10857
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10857
10858
|
if (m2.keepDirtyValues) {
|
|
@@ -10859,7 +10860,7 @@ let __tla = Promise.all([
|
|
|
10859
10860
|
...p.mount,
|
|
10860
10861
|
...Object.keys(getDirtyFields(u, d))
|
|
10861
10862
|
]);
|
|
10862
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10863
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : nG(r2, get(b2, r2));
|
|
10863
10864
|
} else {
|
|
10864
10865
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10865
10866
|
let r2 = get(l, e3);
|
|
@@ -10904,25 +10905,25 @@ let __tla = Promise.all([
|
|
|
10904
10905
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10905
10906
|
isSubmitting: false
|
|
10906
10907
|
});
|
|
10907
|
-
},
|
|
10908
|
+
}, yG = (e2, r2) => vG(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10908
10909
|
return {
|
|
10909
10910
|
control: {
|
|
10910
|
-
register:
|
|
10911
|
-
unregister:
|
|
10912
|
-
getFieldState:
|
|
10913
|
-
handleSubmit:
|
|
10914
|
-
setError:
|
|
10911
|
+
register: pG,
|
|
10912
|
+
unregister: dG,
|
|
10913
|
+
getFieldState: sG,
|
|
10914
|
+
handleSubmit: gG,
|
|
10915
|
+
setError: lG,
|
|
10915
10916
|
_executeSchema: R,
|
|
10916
10917
|
_getWatch: G,
|
|
10917
10918
|
_getDirty: W,
|
|
10918
10919
|
_updateValid: w,
|
|
10919
10920
|
_removeUnmounted: H,
|
|
10920
10921
|
_updateFieldArray: E,
|
|
10921
|
-
_updateDisabledField:
|
|
10922
|
+
_updateDisabledField: fG,
|
|
10922
10923
|
_getFieldArray: q,
|
|
10923
|
-
_reset:
|
|
10924
|
+
_reset: vG,
|
|
10924
10925
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10925
|
-
|
|
10926
|
+
yG(e2, r.resetOptions), _.state.next({
|
|
10926
10927
|
isLoading: false
|
|
10927
10928
|
});
|
|
10928
10929
|
}),
|
|
@@ -10932,7 +10933,7 @@ let __tla = Promise.all([
|
|
|
10932
10933
|
...e2
|
|
10933
10934
|
};
|
|
10934
10935
|
},
|
|
10935
|
-
_disableForm:
|
|
10936
|
+
_disableForm: hG,
|
|
10936
10937
|
_subjects: _,
|
|
10937
10938
|
_proxyFormState: g,
|
|
10938
10939
|
_setErrors: j,
|
|
@@ -10973,17 +10974,17 @@ let __tla = Promise.all([
|
|
|
10973
10974
|
};
|
|
10974
10975
|
}
|
|
10975
10976
|
},
|
|
10976
|
-
trigger:
|
|
10977
|
-
register:
|
|
10978
|
-
handleSubmit:
|
|
10979
|
-
watch:
|
|
10980
|
-
setValue:
|
|
10981
|
-
getValues:
|
|
10982
|
-
reset:
|
|
10983
|
-
resetField:
|
|
10984
|
-
clearErrors:
|
|
10985
|
-
unregister:
|
|
10986
|
-
setError:
|
|
10977
|
+
trigger: aG,
|
|
10978
|
+
register: pG,
|
|
10979
|
+
handleSubmit: gG,
|
|
10980
|
+
watch: uG,
|
|
10981
|
+
setValue: nG,
|
|
10982
|
+
getValues: oG,
|
|
10983
|
+
reset: yG,
|
|
10984
|
+
resetField: _G,
|
|
10985
|
+
clearErrors: cG,
|
|
10986
|
+
unregister: dG,
|
|
10987
|
+
setError: lG,
|
|
10987
10988
|
setFocus: (e2, r2 = {}) => {
|
|
10988
10989
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10989
10990
|
if (u2) {
|
|
@@ -10991,7 +10992,7 @@ let __tla = Promise.all([
|
|
|
10991
10992
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10992
10993
|
}
|
|
10993
10994
|
},
|
|
10994
|
-
getFieldState:
|
|
10995
|
+
getFieldState: sG
|
|
10995
10996
|
};
|
|
10996
10997
|
}
|
|
10997
10998
|
function useForm(e = {}) {
|
|
@@ -11499,7 +11500,7 @@ ${indent(e)}
|
|
|
11499
11500
|
return r.length === 0 ? [] : r.map(([e2, r2]) => new FunctionArg(e2, r2));
|
|
11500
11501
|
}
|
|
11501
11502
|
function generateAltairChart(e, r) {
|
|
11502
|
-
var _a5, _b3,
|
|
11503
|
+
var _a5, _b3, _c5;
|
|
11503
11504
|
let c = new FunctionCall("alt.Chart", [
|
|
11504
11505
|
new Variable(r)
|
|
11505
11506
|
], true);
|
|
@@ -11523,7 +11524,7 @@ ${indent(e)}
|
|
|
11523
11524
|
}
|
|
11524
11525
|
if (e.resolve) {
|
|
11525
11526
|
let r2 = e.resolve, l2 = {};
|
|
11526
|
-
((_b3 = r2.axis) == null ? void 0 : _b3.x) && (l2.x = new Literal(r2.axis.x)), ((
|
|
11527
|
+
((_b3 = r2.axis) == null ? void 0 : _b3.x) && (l2.x = new Literal(r2.axis.x)), ((_c5 = r2.axis) == null ? void 0 : _c5.y) && (l2.y = new Literal(r2.axis.y)), c = c.chain("resolve_scale", l2);
|
|
11527
11528
|
}
|
|
11528
11529
|
let l = {};
|
|
11529
11530
|
for (let r2 of [
|
|
@@ -13941,14 +13942,14 @@ ${c}
|
|
|
13941
13942
|
defaultValue: f
|
|
13942
13943
|
}), r[1] = c, r[2] = l, r[3] = f, r[4] = p) : p = r[4], p;
|
|
13943
13944
|
}, BinFields = (e) => {
|
|
13944
|
-
var _a5, _b3,
|
|
13945
|
+
var _a5, _b3, _c5, _d4;
|
|
13945
13946
|
let r = (0, import_compiler_runtime$68.c)(10), { fieldName: c } = e, l = useFormContext(), u;
|
|
13946
13947
|
r[0] === l.control ? u = r[1] : (u = {
|
|
13947
13948
|
control: l.control
|
|
13948
13949
|
}, r[0] = l.control, r[1] = u);
|
|
13949
13950
|
let d = useWatch(u);
|
|
13950
13951
|
if (!((_b3 = (_a5 = d[c]) == null ? void 0 : _a5.bin) == null ? void 0 : _b3.binned)) return null;
|
|
13951
|
-
let f = !Number.isNaN((_d4 = (
|
|
13952
|
+
let f = !Number.isNaN((_d4 = (_c5 = d[c]) == null ? void 0 : _c5.bin) == null ? void 0 : _d4.step), p = `${c}.bin.step`, m;
|
|
13952
13953
|
r[2] === p ? m = r[3] : (m = (0, import_jsx_runtime.jsx)(NumberField$1, {
|
|
13953
13954
|
fieldName: p,
|
|
13954
13955
|
label: "Bin step",
|
|
@@ -14163,7 +14164,7 @@ ${c}
|
|
|
14163
14164
|
}), r[7] = c, r[8] = f, r[9] = p) : p = r[9], p;
|
|
14164
14165
|
};
|
|
14165
14166
|
const XAxis = () => {
|
|
14166
|
-
var _a5, _b3,
|
|
14167
|
+
var _a5, _b3, _c5, _d4, _e9, _f3, _g3;
|
|
14167
14168
|
let e = (0, import_compiler_runtime$67.c)(22), r = useFormContext(), c;
|
|
14168
14169
|
e[0] === r.control ? c = e[1] : (c = {
|
|
14169
14170
|
control: r.control
|
|
@@ -14193,7 +14194,7 @@ ${c}
|
|
|
14193
14194
|
label: "Time Resolution"
|
|
14194
14195
|
}), e[11] = d, e[12] = v);
|
|
14195
14196
|
let y;
|
|
14196
|
-
e[13] !== m || e[14] !== ((
|
|
14197
|
+
e[13] !== m || e[14] !== ((_c5 = (_b3 = l.general) == null ? void 0 : _b3.xColumn) == null ? void 0 : _c5.sort) || e[15] !== d ? (y = isNonCountField(d) && m && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14197
14198
|
children: [
|
|
14198
14199
|
(0, import_jsx_runtime.jsx)(SortField, {
|
|
14199
14200
|
fieldName: "general.xColumn.sort",
|
|
@@ -14204,7 +14205,7 @@ ${c}
|
|
|
14204
14205
|
fieldName: "xAxis"
|
|
14205
14206
|
})
|
|
14206
14207
|
]
|
|
14207
|
-
}), e[13] = m, e[14] = (_g3 = (
|
|
14208
|
+
}), e[13] = m, e[14] = (_g3 = (_f3 = l.general) == null ? void 0 : _f3.xColumn) == null ? void 0 : _g3.sort, e[15] = d, e[16] = y) : y = e[16];
|
|
14208
14209
|
let b;
|
|
14209
14210
|
return e[17] !== g || e[18] !== _ || e[19] !== v || e[20] !== y ? (b = (0, import_jsx_runtime.jsxs)(FieldSection, {
|
|
14210
14211
|
children: [
|
|
@@ -14216,14 +14217,14 @@ ${c}
|
|
|
14216
14217
|
]
|
|
14217
14218
|
}), e[17] = g, e[18] = _, e[19] = v, e[20] = y, e[21] = b) : b = e[21], b;
|
|
14218
14219
|
}, YAxis = () => {
|
|
14219
|
-
var _a5, _b3,
|
|
14220
|
+
var _a5, _b3, _c5;
|
|
14220
14221
|
let e = (0, import_compiler_runtime$67.c)(29), r = useFormContext(), c;
|
|
14221
14222
|
e[0] === r.control ? c = e[1] : (c = {
|
|
14222
14223
|
control: r.control
|
|
14223
14224
|
}, e[0] = r.control, e[1] = c);
|
|
14224
14225
|
let l = useWatch(c), u = useChartFormContext(), d = (_a5 = l.general) == null ? void 0 : _a5.yColumn, f = d == null ? void 0 : d.field, p;
|
|
14225
14226
|
e[2] === f ? p = e[3] : (p = isFieldSet(f), e[2] = f, e[3] = p);
|
|
14226
|
-
let m = p, h = (
|
|
14227
|
+
let m = p, h = (_c5 = (_b3 = l.general) == null ? void 0 : _b3.xColumn) == null ? void 0 : _c5.field, g;
|
|
14227
14228
|
e[4] === h ? g = e[5] : (g = isFieldSet(h), e[4] = h, e[5] = g);
|
|
14228
14229
|
let _ = g, v;
|
|
14229
14230
|
e[6] === d ? v = e[7] : (v = getColumnDataTypes(d), e[6] = d, e[7] = v);
|
|
@@ -14655,14 +14656,14 @@ ${c}
|
|
|
14655
14656
|
}
|
|
14656
14657
|
var import_compiler_runtime$65 = require_compiler_runtime();
|
|
14657
14658
|
const HeatmapForm = () => {
|
|
14658
|
-
var _a5, _b3,
|
|
14659
|
+
var _a5, _b3, _c5, _d4;
|
|
14659
14660
|
let e = (0, import_compiler_runtime$65.c)(17), r = useFormContext(), c;
|
|
14660
14661
|
e[0] === r.control ? c = e[1] : (c = {
|
|
14661
14662
|
control: r.control
|
|
14662
14663
|
}, e[0] = r.control, e[1] = c);
|
|
14663
14664
|
let l = useWatch(c), u = (_b3 = (_a5 = l.general) == null ? void 0 : _a5.xColumn) == null ? void 0 : _b3.field, d;
|
|
14664
14665
|
e[2] === u ? d = e[3] : (d = isFieldSet(u), e[2] = u, e[3] = d);
|
|
14665
|
-
let f = d, p = (_d4 = (
|
|
14666
|
+
let f = d, p = (_d4 = (_c5 = l.general) == null ? void 0 : _c5.yColumn) == null ? void 0 : _d4.field, m;
|
|
14666
14667
|
e[4] === p ? m = e[5] : (m = isFieldSet(p), e[4] = p, e[5] = m);
|
|
14667
14668
|
let h = m, g;
|
|
14668
14669
|
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = (0, import_jsx_runtime.jsx)(XAxis, {}), e[6] = g) : g = e[6];
|
|
@@ -14701,12 +14702,12 @@ ${c}
|
|
|
14701
14702
|
};
|
|
14702
14703
|
var import_compiler_runtime$64 = require_compiler_runtime();
|
|
14703
14704
|
const PieForm = () => {
|
|
14704
|
-
var _a5, _b3,
|
|
14705
|
+
var _a5, _b3, _c5;
|
|
14705
14706
|
let e = (0, import_compiler_runtime$64.c)(25), r = useFormContext(), { fields: c } = useChartFormContext(), l;
|
|
14706
14707
|
e[0] === r.control ? l = e[1] : (l = {
|
|
14707
14708
|
control: r.control
|
|
14708
14709
|
}, e[0] = r.control, e[1] = l);
|
|
14709
|
-
let u = useWatch(l), d = (_a5 = u.general) == null ? void 0 : _a5.colorByColumn, f = (
|
|
14710
|
+
let u = useWatch(l), d = (_a5 = u.general) == null ? void 0 : _a5.colorByColumn, f = (_c5 = (_b3 = u.general) == null ? void 0 : _b3.yColumn) == null ? void 0 : _c5.selectedDataType;
|
|
14710
14711
|
(f === "" || !f) && (f = "string");
|
|
14711
14712
|
let p;
|
|
14712
14713
|
e[2] === d ? p = e[3] : (p = (d == null ? void 0 : d.type) ? convertDataTypeToSelectable(d.type) : "string", e[2] = d, e[3] = p);
|
|
@@ -16316,21 +16317,21 @@ ${c}
|
|
|
16316
16317
|
_.pageSize,
|
|
16317
16318
|
_.pageIndex
|
|
16318
16319
|
], 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];
|
|
16319
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
16320
|
-
r[48] !== Z || r[49] !== e ? (
|
|
16321
|
-
let
|
|
16322
|
-
r[51] !== Z || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !==
|
|
16320
|
+
let { data: W, error: G, isPending: q, isFetching: tG } = useAsyncData(z, H), Z = useAtomValue(downloadSizeLimitAtom), nG;
|
|
16321
|
+
r[48] !== Z || r[49] !== e ? (nG = async () => !Z || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = Z, r[49] = e, r[50] = nG) : nG = r[50];
|
|
16322
|
+
let rG = e.showDownload, iG = e.get_size_bytes, aG = e.lazy, oG = e.totalRows, sG = useDeepCompareMemoize(w), cG = useDeepCompareMemoize(p), lG;
|
|
16323
|
+
r[51] !== Z || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== sG || r[58] !== cG ? (lG = [
|
|
16323
16324
|
Z,
|
|
16324
|
-
$W,
|
|
16325
|
-
eG,
|
|
16326
|
-
tG,
|
|
16327
|
-
nG,
|
|
16328
|
-
y,
|
|
16329
16325
|
rG,
|
|
16330
|
-
iG
|
|
16331
|
-
|
|
16332
|
-
|
|
16333
|
-
|
|
16326
|
+
iG,
|
|
16327
|
+
aG,
|
|
16328
|
+
oG,
|
|
16329
|
+
y,
|
|
16330
|
+
sG,
|
|
16331
|
+
cG
|
|
16332
|
+
], r[51] = Z, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = sG, r[58] = cG, r[59] = lG) : lG = r[59];
|
|
16333
|
+
let { data: uG, isPending: dG } = useAsyncData(nG, lG), fG = uG ?? null, pG = !!Z && e.showDownload && dG, mG;
|
|
16334
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== p ? (mG = async (e2) => ({
|
|
16334
16335
|
rows: await loadTableData((await u({
|
|
16335
16336
|
page_number: e2,
|
|
16336
16337
|
page_size: 1,
|
|
@@ -16339,17 +16340,17 @@ ${c}
|
|
|
16339
16340
|
filters: filtersToFilterGroup(w),
|
|
16340
16341
|
max_columns: null
|
|
16341
16342
|
})).data)
|
|
16342
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] =
|
|
16343
|
-
let
|
|
16344
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16343
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] = mG) : mG = r[64];
|
|
16344
|
+
let hG = mG, gG;
|
|
16345
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gG = () => {
|
|
16345
16346
|
v(_temp4$4);
|
|
16346
|
-
}, r[65] =
|
|
16347
|
-
let
|
|
16348
|
-
r[66] ===
|
|
16349
|
-
|
|
16350
|
-
], r[66] =
|
|
16351
|
-
let
|
|
16352
|
-
r[68] === e ?
|
|
16347
|
+
}, r[65] = gG) : gG = r[65];
|
|
16348
|
+
let _G = W == null ? void 0 : W.totalRows, vG;
|
|
16349
|
+
r[66] === _G ? vG = r[67] : (vG = [
|
|
16350
|
+
_G
|
|
16351
|
+
], r[66] = _G, r[67] = vG), (0, import_react.useEffect)(gG, vG);
|
|
16352
|
+
let yG;
|
|
16353
|
+
r[68] === e ? yG = r[69] : (yG = async () => {
|
|
16353
16354
|
let r2 = isStaticNotebook();
|
|
16354
16355
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
16355
16356
|
data: null,
|
|
@@ -16358,22 +16359,22 @@ ${c}
|
|
|
16358
16359
|
value_counts: {},
|
|
16359
16360
|
show_charts: false
|
|
16360
16361
|
} : e.get_column_summaries({});
|
|
16361
|
-
}, r[68] = e, r[69] =
|
|
16362
|
-
let
|
|
16363
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
16362
|
+
}, r[68] = e, r[69] = yG);
|
|
16363
|
+
let bG;
|
|
16364
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (bG = [
|
|
16364
16365
|
e.get_column_summaries,
|
|
16365
16366
|
e.showColumnSummaries,
|
|
16366
16367
|
w,
|
|
16367
16368
|
y,
|
|
16368
16369
|
e.totalRows,
|
|
16369
16370
|
e.data
|
|
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, r[76] =
|
|
16371
|
-
let { data:
|
|
16372
|
-
if (r[77] ===
|
|
16373
|
-
|
|
16374
|
-
},
|
|
16375
|
-
|
|
16376
|
-
], r[77] =
|
|
16371
|
+
], 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] = bG) : bG = r[76];
|
|
16372
|
+
let { data: xG, error: SG } = useAsyncData(yG, bG), CG, wG;
|
|
16373
|
+
if (r[77] === SG ? (CG = r[78], wG = r[79]) : (CG = () => {
|
|
16374
|
+
SG && Logger.error(SG);
|
|
16375
|
+
}, wG = [
|
|
16376
|
+
SG
|
|
16377
|
+
], r[77] = SG, r[78] = CG, r[79] = wG), (0, import_react.useEffect)(CG, wG), q) {
|
|
16377
16378
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
16378
16379
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
16379
16380
|
milliseconds: 200,
|
|
@@ -16382,7 +16383,7 @@ ${c}
|
|
|
16382
16383
|
})
|
|
16383
16384
|
}), r[80] = c2, r[81] = l2), l2;
|
|
16384
16385
|
}
|
|
16385
|
-
let
|
|
16386
|
+
let TG = null;
|
|
16386
16387
|
if (G) {
|
|
16387
16388
|
Logger.error(G);
|
|
16388
16389
|
let e2;
|
|
@@ -16398,62 +16399,62 @@ ${c}
|
|
|
16398
16399
|
children: G.message || "An unknown error occurred"
|
|
16399
16400
|
})
|
|
16400
16401
|
]
|
|
16401
|
-
}), r[82] = G, r[83] = e2),
|
|
16402
|
+
}), r[82] = G, r[83] = e2), TG = e2;
|
|
16402
16403
|
}
|
|
16403
|
-
let
|
|
16404
|
-
r[84] === O ?
|
|
16404
|
+
let EG;
|
|
16405
|
+
r[84] === O ? EG = r[85] : (EG = () => {
|
|
16405
16406
|
j(!O);
|
|
16406
|
-
}, r[84] = O, r[85] =
|
|
16407
|
-
let
|
|
16408
|
-
r[86] !== l || r[87] !==
|
|
16407
|
+
}, r[84] = O, r[85] = EG);
|
|
16408
|
+
let DG = EG, OG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, kG = W == null ? void 0 : W.rawRows, AG = tG && !q, jG = (W == null ? void 0 : W.totalRows) ?? e.totalRows, MG = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, NG = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, PG;
|
|
16409
|
+
r[86] !== l || r[87] !== xG || r[88] !== O || r[89] !== w || r[90] !== hG || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== fG || r[95] !== pG || r[96] !== p || r[97] !== OG || r[98] !== kG || r[99] !== AG || r[100] !== jG || r[101] !== MG || r[102] !== NG || r[103] !== DG ? (PG = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
16409
16410
|
...e,
|
|
16410
|
-
data:
|
|
16411
|
-
rawData:
|
|
16412
|
-
columnSummaries:
|
|
16411
|
+
data: OG,
|
|
16412
|
+
rawData: kG,
|
|
16413
|
+
columnSummaries: xG,
|
|
16413
16414
|
sorting: p,
|
|
16414
16415
|
setSorting: h,
|
|
16415
16416
|
searchQuery: y,
|
|
16416
16417
|
setSearchQuery: b,
|
|
16417
16418
|
filters: w,
|
|
16418
16419
|
setFilters: T,
|
|
16419
|
-
reloading:
|
|
16420
|
-
totalRows:
|
|
16421
|
-
sizeBytes:
|
|
16422
|
-
sizeBytesIsLoading:
|
|
16420
|
+
reloading: AG,
|
|
16421
|
+
totalRows: jG,
|
|
16422
|
+
sizeBytes: fG,
|
|
16423
|
+
sizeBytesIsLoading: pG,
|
|
16423
16424
|
paginationState: _,
|
|
16424
16425
|
setPaginationState: v,
|
|
16425
|
-
cellStyles:
|
|
16426
|
-
cellHoverTexts:
|
|
16427
|
-
toggleDisplayHeader:
|
|
16426
|
+
cellStyles: MG,
|
|
16427
|
+
cellHoverTexts: NG,
|
|
16428
|
+
toggleDisplayHeader: DG,
|
|
16428
16429
|
isChartBuilderOpen: O,
|
|
16429
|
-
getRow:
|
|
16430
|
+
getRow: hG,
|
|
16430
16431
|
cellId: l,
|
|
16431
16432
|
maxHeight: e.maxHeight
|
|
16432
|
-
}), r[86] = l, r[87] =
|
|
16433
|
-
let
|
|
16434
|
-
r[105] !== l || r[106] !==
|
|
16433
|
+
}), r[86] = l, r[87] = xG, r[88] = O, r[89] = w, r[90] = hG, r[91] = _, r[92] = e, r[93] = y, r[94] = fG, r[95] = pG, r[96] = p, r[97] = OG, r[98] = kG, r[99] = AG, r[100] = jG, r[101] = MG, r[102] = NG, r[103] = DG, r[104] = PG) : PG = r[104];
|
|
16434
|
+
let FG = PG, IG;
|
|
16435
|
+
r[105] !== l || r[106] !== FG || 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 ? (IG = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
16435
16436
|
displayHeader: O,
|
|
16436
16437
|
onCloseChartBuilder: () => j(false),
|
|
16437
16438
|
data: (W == null ? void 0 : W.rows) || [],
|
|
16438
16439
|
columns: e.totalColumns,
|
|
16439
16440
|
totalRows: e.totalRows,
|
|
16440
|
-
dataTable:
|
|
16441
|
+
dataTable: FG,
|
|
16441
16442
|
getDataUrl: e.get_data_url,
|
|
16442
16443
|
fieldTypes: e.fieldTypes,
|
|
16443
16444
|
rowHeaders: e.rowHeaders,
|
|
16444
16445
|
cellId: l
|
|
16445
|
-
}) :
|
|
16446
|
-
let
|
|
16447
|
-
return r[116] !==
|
|
16446
|
+
}) : FG, r[105] = l, r[106] = FG, 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] = IG) : IG = r[115];
|
|
16447
|
+
let LG;
|
|
16448
|
+
return r[116] !== TG || r[117] !== IG ? (LG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16448
16449
|
children: [
|
|
16449
|
-
|
|
16450
|
-
|
|
16450
|
+
TG,
|
|
16451
|
+
IG
|
|
16451
16452
|
]
|
|
16452
|
-
}), r[116] =
|
|
16453
|
+
}), r[116] = TG, r[117] = IG, r[118] = LG) : LG = r[118], LG;
|
|
16453
16454
|
});
|
|
16454
16455
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
16455
|
-
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:
|
|
16456
|
-
let
|
|
16456
|
+
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: tG, setFilters: Z, reloading: nG, freezeColumnsLeft: rG, freezeColumnsRight: iG, hiddenColumns: aG, textJustifyColumns: oG, wrappedColumns: sG, columnWidths: cG, headerTooltip: lG, totalColumns: uG, get_row_ids: dG, cellStyles: fG, hoverTemplate: pG, cellHoverTexts: mG, toggleDisplayHeader: hG, isChartBuilderOpen: gG, calculate_top_k_rows: _G, preview_column: vG, getRow: yG, cellId: bG, maxHeight: xG }) => {
|
|
16457
|
+
let SG = (0, import_react.useId)(), { locale: CG } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [wG, TG] = (0, import_react.useState)(0), { isPanelOpen: EG, isAnyPanelOpen: DG, togglePanel: OG, panelType: kG, setPanelType: AG } = usePanelOwnership(SG, bG), jG = isStaticNotebook(), MG = (0, import_react.useMemo)(() => {
|
|
16457
16458
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16458
16459
|
let e2 = toFieldTypes(O);
|
|
16459
16460
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -16462,13 +16463,13 @@ ${c}
|
|
|
16462
16463
|
}, [
|
|
16463
16464
|
O,
|
|
16464
16465
|
L
|
|
16465
|
-
]),
|
|
16466
|
+
]), NG = new Set(E.map(([e2]) => e2)), PG = useDeepCompareMemoize(O ?? inferFieldTypes(r).filter(([e2]) => !NG.has(e2))), FG = (0, import_react.useMemo)(() => p === "all" ? PG : PG.slice(0, p), [
|
|
16466
16467
|
p,
|
|
16467
|
-
|
|
16468
|
-
]),
|
|
16468
|
+
PG
|
|
16469
|
+
]), IG = (0, import_react.useMemo)(() => {
|
|
16469
16470
|
let e2 = {};
|
|
16470
16471
|
if (r && r.length > 0) {
|
|
16471
|
-
for (let [c2, l2] of
|
|
16472
|
+
for (let [c2, l2] of FG) if (l2[0] === "number") {
|
|
16472
16473
|
let l3 = 0;
|
|
16473
16474
|
for (let e3 of r) {
|
|
16474
16475
|
let r2 = e3[c2];
|
|
@@ -16483,95 +16484,95 @@ ${c}
|
|
|
16483
16484
|
return e2;
|
|
16484
16485
|
}, [
|
|
16485
16486
|
r,
|
|
16486
|
-
|
|
16487
|
-
]),
|
|
16488
|
-
O || (T = false),
|
|
16489
|
-
let
|
|
16490
|
-
rowHeaders:
|
|
16487
|
+
FG
|
|
16488
|
+
]), LG = useDeepCompareMemoize(E), RG = useDeepCompareMemoize(oG), zG = useDeepCompareMemoize(sG), BG = useDeepCompareMemoize(cG), VG = useDeepCompareMemoize(MG), HG = useDeepCompareMemoize(IG), UG = FG.length;
|
|
16489
|
+
O || (T = false), jG && (h = null);
|
|
16490
|
+
let WG = (0, import_react.useMemo)(() => generateColumns({
|
|
16491
|
+
rowHeaders: LG,
|
|
16491
16492
|
selection: h,
|
|
16492
|
-
chartSpecModel:
|
|
16493
|
-
fieldTypes:
|
|
16494
|
-
textJustifyColumns:
|
|
16495
|
-
wrappedColumns:
|
|
16496
|
-
columnWidths:
|
|
16497
|
-
headerTooltip:
|
|
16493
|
+
chartSpecModel: VG,
|
|
16494
|
+
fieldTypes: FG,
|
|
16495
|
+
textJustifyColumns: RG,
|
|
16496
|
+
wrappedColumns: zG,
|
|
16497
|
+
columnWidths: BG,
|
|
16498
|
+
headerTooltip: lG,
|
|
16498
16499
|
showDataTypes: T,
|
|
16499
|
-
calculateTopKRows:
|
|
16500
|
-
fractionDigitsByColumn:
|
|
16500
|
+
calculateTopKRows: _G,
|
|
16501
|
+
fractionDigitsByColumn: HG
|
|
16501
16502
|
}), [
|
|
16502
16503
|
h,
|
|
16503
16504
|
T,
|
|
16505
|
+
VG,
|
|
16504
16506
|
LG,
|
|
16505
|
-
NG,
|
|
16506
|
-
jG,
|
|
16507
|
-
PG,
|
|
16508
16507
|
FG,
|
|
16509
|
-
|
|
16510
|
-
|
|
16511
|
-
|
|
16512
|
-
|
|
16513
|
-
|
|
16508
|
+
RG,
|
|
16509
|
+
zG,
|
|
16510
|
+
BG,
|
|
16511
|
+
lG,
|
|
16512
|
+
_G,
|
|
16513
|
+
HG
|
|
16514
|
+
]), GG = (0, import_react.useMemo)(() => Object.fromEntries((g || []).map((e2) => [
|
|
16514
16515
|
e2,
|
|
16515
16516
|
true
|
|
16516
16517
|
])), [
|
|
16517
16518
|
g
|
|
16518
|
-
]),
|
|
16519
|
+
]), KG = useEvent_default((e2) => {
|
|
16519
16520
|
if (h === "single") {
|
|
16520
16521
|
let r2 = Functions.asUpdater(e2)({});
|
|
16521
16522
|
z(Object.keys(r2).slice(0, 1));
|
|
16522
16523
|
}
|
|
16523
16524
|
if (h === "multi") {
|
|
16524
|
-
let r2 = Functions.asUpdater(e2)(
|
|
16525
|
+
let r2 = Functions.asUpdater(e2)(GG);
|
|
16525
16526
|
z(Object.keys(r2));
|
|
16526
16527
|
}
|
|
16527
|
-
}),
|
|
16528
|
-
if (
|
|
16528
|
+
}), qG = useEvent_default((e2) => {
|
|
16529
|
+
if (TG(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
16529
16530
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
16530
16531
|
r2 !== null && M((e3) => ({
|
|
16531
16532
|
...e3,
|
|
16532
16533
|
pageIndex: r2
|
|
16533
16534
|
}));
|
|
16534
|
-
}),
|
|
16535
|
-
h === "single-cell" && z(Functions.asUpdater(e2)(
|
|
16536
|
-
}),
|
|
16537
|
-
if (!(!
|
|
16535
|
+
}), JG = g.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), YG = useEvent_default((e2) => {
|
|
16536
|
+
h === "single-cell" && z(Functions.asUpdater(e2)(JG).slice(0, 1)), h === "multi-cell" && z(Functions.asUpdater(e2)(JG));
|
|
16537
|
+
}), XG = h === "multi" || h === "single", ZG = b && !!vG, QG = isInVscodeExtension(), $G = isIslands(), eK = (0, import_react.useMemo)(() => {
|
|
16538
|
+
if (!(!DG || !(S || ZG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
16538
16539
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
16539
|
-
rowIdx:
|
|
16540
|
-
setRowIdx:
|
|
16540
|
+
rowIdx: wG,
|
|
16541
|
+
setRowIdx: qG,
|
|
16541
16542
|
totalRows: l,
|
|
16542
|
-
fieldTypes:
|
|
16543
|
-
getRow:
|
|
16544
|
-
isSelectable:
|
|
16545
|
-
isRowSelected: !!
|
|
16546
|
-
handleRowSelectionChange:
|
|
16547
|
-
previewColumn:
|
|
16548
|
-
totalColumns:
|
|
16549
|
-
tableId:
|
|
16543
|
+
fieldTypes: PG,
|
|
16544
|
+
getRow: yG,
|
|
16545
|
+
isSelectable: XG,
|
|
16546
|
+
isRowSelected: !!GG[wG],
|
|
16547
|
+
handleRowSelectionChange: KG,
|
|
16548
|
+
previewColumn: vG,
|
|
16549
|
+
totalColumns: uG,
|
|
16550
|
+
tableId: SG,
|
|
16550
16551
|
table: e2,
|
|
16551
|
-
showRowExplorer: S && !
|
|
16552
|
-
showColumnExplorer:
|
|
16553
|
-
activeTab:
|
|
16554
|
-
onTabChange:
|
|
16552
|
+
showRowExplorer: S && !QG,
|
|
16553
|
+
showColumnExplorer: ZG && !QG,
|
|
16554
|
+
activeTab: kG,
|
|
16555
|
+
onTabChange: AG
|
|
16555
16556
|
})
|
|
16556
16557
|
});
|
|
16557
16558
|
}, [
|
|
16558
|
-
|
|
16559
|
+
DG,
|
|
16559
16560
|
S,
|
|
16561
|
+
ZG,
|
|
16562
|
+
wG,
|
|
16560
16563
|
qG,
|
|
16561
|
-
bG,
|
|
16562
|
-
UG,
|
|
16563
16564
|
l,
|
|
16564
|
-
|
|
16565
|
-
|
|
16565
|
+
PG,
|
|
16566
|
+
yG,
|
|
16567
|
+
XG,
|
|
16568
|
+
GG,
|
|
16566
16569
|
KG,
|
|
16567
|
-
VG,
|
|
16568
|
-
HG,
|
|
16569
|
-
mG,
|
|
16570
|
-
oG,
|
|
16571
16570
|
vG,
|
|
16572
|
-
|
|
16573
|
-
|
|
16574
|
-
|
|
16571
|
+
uG,
|
|
16572
|
+
SG,
|
|
16573
|
+
QG,
|
|
16574
|
+
kG,
|
|
16575
|
+
AG
|
|
16575
16576
|
]);
|
|
16576
16577
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16577
16578
|
children: [
|
|
@@ -16583,27 +16584,27 @@ ${c}
|
|
|
16583
16584
|
" rows."
|
|
16584
16585
|
]
|
|
16585
16586
|
}),
|
|
16586
|
-
|
|
16587
|
+
UG < uG && UG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16587
16588
|
className: "mb-1 rounded",
|
|
16588
16589
|
children: [
|
|
16589
16590
|
"Result clipped. Showing ",
|
|
16590
|
-
|
|
16591
|
+
UG,
|
|
16591
16592
|
" of ",
|
|
16592
|
-
|
|
16593
|
+
uG,
|
|
16593
16594
|
" columns."
|
|
16594
16595
|
]
|
|
16595
16596
|
}),
|
|
16596
|
-
|
|
16597
|
+
jG && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16597
16598
|
className: "mb-1 rounded",
|
|
16598
16599
|
children: [
|
|
16599
16600
|
"Showing the first ",
|
|
16600
16601
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16601
|
-
children: prettyNumber(r.length,
|
|
16602
|
+
children: prettyNumber(r.length, CG)
|
|
16602
16603
|
}),
|
|
16603
16604
|
" ",
|
|
16604
16605
|
"of ",
|
|
16605
16606
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16606
|
-
children: prettyNumber(l,
|
|
16607
|
+
children: prettyNumber(l, CG)
|
|
16607
16608
|
}),
|
|
16608
16609
|
" rows. Increase the table's ",
|
|
16609
16610
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -16617,7 +16618,7 @@ ${c}
|
|
|
16617
16618
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
16618
16619
|
}),
|
|
16619
16620
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
16620
|
-
value:
|
|
16621
|
+
value: MG,
|
|
16621
16622
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
16622
16623
|
label: e,
|
|
16623
16624
|
align: "top",
|
|
@@ -16625,14 +16626,14 @@ ${c}
|
|
|
16625
16626
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
16626
16627
|
data: r,
|
|
16627
16628
|
rawData: c,
|
|
16628
|
-
columns:
|
|
16629
|
+
columns: WG,
|
|
16629
16630
|
className: R,
|
|
16630
|
-
maxHeight:
|
|
16631
|
+
maxHeight: xG,
|
|
16631
16632
|
sorting: B,
|
|
16632
16633
|
totalRows: l,
|
|
16633
16634
|
sizeBytes: u,
|
|
16634
16635
|
sizeBytesIsLoading: f,
|
|
16635
|
-
totalColumns:
|
|
16636
|
+
totalColumns: uG,
|
|
16636
16637
|
manualSorting: true,
|
|
16637
16638
|
setSorting: H,
|
|
16638
16639
|
pagination: m,
|
|
@@ -16640,37 +16641,37 @@ ${c}
|
|
|
16640
16641
|
selection: h,
|
|
16641
16642
|
paginationState: j,
|
|
16642
16643
|
setPaginationState: M,
|
|
16643
|
-
rowSelection:
|
|
16644
|
-
cellSelection:
|
|
16645
|
-
cellStyling:
|
|
16646
|
-
hoverTemplate:
|
|
16647
|
-
cellHoverTexts:
|
|
16644
|
+
rowSelection: GG,
|
|
16645
|
+
cellSelection: JG,
|
|
16646
|
+
cellStyling: fG,
|
|
16647
|
+
hoverTemplate: pG,
|
|
16648
|
+
cellHoverTexts: mG,
|
|
16648
16649
|
downloadAs: v ? I : void 0,
|
|
16649
16650
|
showSearch: W,
|
|
16650
16651
|
searchQuery: G,
|
|
16651
16652
|
onSearchQueryChange: q,
|
|
16652
16653
|
showFilters: _,
|
|
16653
|
-
filters:
|
|
16654
|
+
filters: tG,
|
|
16654
16655
|
onFiltersChange: Z,
|
|
16655
|
-
calculateTopKRows:
|
|
16656
|
-
reloading:
|
|
16657
|
-
onRowSelectionChange:
|
|
16658
|
-
freezeColumnsLeft:
|
|
16659
|
-
freezeColumnsRight:
|
|
16660
|
-
hiddenColumns:
|
|
16661
|
-
onCellSelectionChange:
|
|
16662
|
-
getRowIds:
|
|
16663
|
-
toggleDisplayHeader:
|
|
16664
|
-
showChartBuilder: w &&
|
|
16665
|
-
isChartBuilderOpen:
|
|
16656
|
+
calculateTopKRows: _G,
|
|
16657
|
+
reloading: nG,
|
|
16658
|
+
onRowSelectionChange: KG,
|
|
16659
|
+
freezeColumnsLeft: rG,
|
|
16660
|
+
freezeColumnsRight: iG,
|
|
16661
|
+
hiddenColumns: aG,
|
|
16662
|
+
onCellSelectionChange: YG,
|
|
16663
|
+
getRowIds: dG,
|
|
16664
|
+
toggleDisplayHeader: hG,
|
|
16665
|
+
showChartBuilder: w && !$G,
|
|
16666
|
+
isChartBuilderOpen: gG,
|
|
16666
16667
|
showPageSizeSelector: y,
|
|
16667
|
-
showTableExplorer: (S ||
|
|
16668
|
-
togglePanel:
|
|
16669
|
-
isPanelOpen:
|
|
16670
|
-
isAnyPanelOpen:
|
|
16671
|
-
viewedRowIdx:
|
|
16672
|
-
onViewedRowChange: (e2) =>
|
|
16673
|
-
renderTableExplorerPanel:
|
|
16668
|
+
showTableExplorer: (S || ZG) && !QG && !$G,
|
|
16669
|
+
togglePanel: OG,
|
|
16670
|
+
isPanelOpen: EG,
|
|
16671
|
+
isAnyPanelOpen: DG,
|
|
16672
|
+
viewedRowIdx: wG,
|
|
16673
|
+
onViewedRowChange: (e2) => TG(e2),
|
|
16674
|
+
renderTableExplorerPanel: eK
|
|
16674
16675
|
})
|
|
16675
16676
|
})
|
|
16676
16677
|
})
|
|
@@ -17029,7 +17030,7 @@ ${c}
|
|
|
17029
17030
|
fullWidth: p,
|
|
17030
17031
|
children: T
|
|
17031
17032
|
}), r[20] = p, r[21] = g, r[22] = c, r[23] = T, r[24] = E) : E = r[24], E;
|
|
17032
|
-
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
17033
|
+
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-yEsovh7C.js"));
|
|
17033
17034
|
const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object({
|
|
17034
17035
|
label: string().nullish(),
|
|
17035
17036
|
data: string()
|
|
@@ -18785,29 +18786,29 @@ ${c}
|
|
|
18785
18786
|
], r[2] = w, r[3] = T);
|
|
18786
18787
|
let { data: E, error: O, isPending: j } = useAsyncData(S, T), M;
|
|
18787
18788
|
r[4] === E ? M = r[5] : (M = E || {}, r[4] = E, r[5] = M);
|
|
18788
|
-
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,
|
|
18789
|
-
r[6] === f ?
|
|
18789
|
+
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, tG] = (0, import_react.useState)(p || EMPTY), Z = (0, import_react.useRef)(null), nG;
|
|
18790
|
+
r[6] === f ? nG = r[7] : (nG = (e2) => {
|
|
18790
18791
|
var _a5;
|
|
18791
18792
|
f && e2 !== "transform" && ((_a5 = Z.current) == null ? void 0 : _a5.submit());
|
|
18792
|
-
}, r[6] = f, r[7] =
|
|
18793
|
-
let
|
|
18794
|
-
r[8] === q ?
|
|
18795
|
-
|
|
18796
|
-
}, r[8] = q, r[9] =
|
|
18797
|
-
let
|
|
18798
|
-
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (
|
|
18799
|
-
let e2 =
|
|
18793
|
+
}, r[6] = f, r[7] = nG);
|
|
18794
|
+
let rG = nG, iG = (0, import_react.useRef)(q), aG;
|
|
18795
|
+
r[8] === q ? aG = r[9] : (aG = () => {
|
|
18796
|
+
iG.current = q;
|
|
18797
|
+
}, r[8] = q, r[9] = aG), (0, import_react.useEffect)(aG);
|
|
18798
|
+
let oG;
|
|
18799
|
+
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (oG = () => {
|
|
18800
|
+
let e2 = iG.current;
|
|
18800
18801
|
(p == null ? void 0 : p.transforms.length) !== e2.transforms.length && m(e2);
|
|
18801
|
-
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] =
|
|
18802
|
-
let
|
|
18803
|
-
r[13] !== E || r[14] !== m || r[15] !==
|
|
18802
|
+
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] = oG) : oG = r[12];
|
|
18803
|
+
let cG = p == null ? void 0 : p.transforms.length, lG;
|
|
18804
|
+
r[13] !== E || r[14] !== m || r[15] !== cG ? (lG = [
|
|
18804
18805
|
E,
|
|
18806
|
+
cG,
|
|
18805
18807
|
iG,
|
|
18806
|
-
eG,
|
|
18807
18808
|
m
|
|
18808
|
-
], r[13] = E, r[14] = m, r[15] =
|
|
18809
|
-
let
|
|
18810
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18809
|
+
], r[13] = E, r[14] = m, r[15] = cG, r[16] = lG) : lG = r[16], (0, import_react.useEffect)(oG, lG);
|
|
18810
|
+
let uG;
|
|
18811
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uG = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18811
18812
|
value: "transform",
|
|
18812
18813
|
className: "text-xs py-1",
|
|
18813
18814
|
children: [
|
|
@@ -18816,9 +18817,9 @@ ${c}
|
|
|
18816
18817
|
}),
|
|
18817
18818
|
"Transform"
|
|
18818
18819
|
]
|
|
18819
|
-
}), r[17] =
|
|
18820
|
-
let
|
|
18821
|
-
r[18] === H ?
|
|
18820
|
+
}), r[17] = uG) : uG = r[17];
|
|
18821
|
+
let dG;
|
|
18822
|
+
r[18] === H ? dG = r[19] : (dG = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18822
18823
|
value: "python-code",
|
|
18823
18824
|
className: "text-xs py-1",
|
|
18824
18825
|
children: [
|
|
@@ -18827,9 +18828,9 @@ ${c}
|
|
|
18827
18828
|
}),
|
|
18828
18829
|
"Python Code"
|
|
18829
18830
|
]
|
|
18830
|
-
}), r[18] = H, r[19] =
|
|
18831
|
-
let
|
|
18832
|
-
r[20] === W ?
|
|
18831
|
+
}), r[18] = H, r[19] = dG);
|
|
18832
|
+
let fG;
|
|
18833
|
+
r[20] === W ? fG = r[21] : (fG = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18833
18834
|
value: "sql-code",
|
|
18834
18835
|
className: "text-xs py-1",
|
|
18835
18836
|
children: [
|
|
@@ -18838,54 +18839,54 @@ ${c}
|
|
|
18838
18839
|
}),
|
|
18839
18840
|
"SQL Code"
|
|
18840
18841
|
]
|
|
18841
|
-
}), r[20] = W, r[21] =
|
|
18842
|
-
let
|
|
18843
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18842
|
+
}), r[20] = W, r[21] = fG);
|
|
18843
|
+
let pG;
|
|
18844
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pG = (0, import_jsx_runtime.jsx)("div", {
|
|
18844
18845
|
className: "grow"
|
|
18845
|
-
}), r[22] =
|
|
18846
|
-
let
|
|
18847
|
-
r[23] !==
|
|
18846
|
+
}), r[22] = pG) : pG = r[22];
|
|
18847
|
+
let mG;
|
|
18848
|
+
r[23] !== dG || r[24] !== fG ? (mG = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
18848
18849
|
className: "h-8",
|
|
18849
18850
|
children: [
|
|
18850
|
-
|
|
18851
|
-
|
|
18852
|
-
|
|
18853
|
-
|
|
18851
|
+
uG,
|
|
18852
|
+
dG,
|
|
18853
|
+
fG,
|
|
18854
|
+
pG
|
|
18854
18855
|
]
|
|
18855
|
-
}), r[23] =
|
|
18856
|
-
let
|
|
18857
|
-
r[26] === j ?
|
|
18856
|
+
}), r[23] = dG, r[24] = fG, r[25] = mG) : mG = r[25];
|
|
18857
|
+
let hG;
|
|
18858
|
+
r[26] === j ? hG = r[27] : (hG = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18858
18859
|
size: "small"
|
|
18859
|
-
}), r[26] = j, r[27] =
|
|
18860
|
-
let
|
|
18861
|
-
r[28] !==
|
|
18860
|
+
}), r[26] = j, r[27] = hG);
|
|
18861
|
+
let gG;
|
|
18862
|
+
r[28] !== mG || r[29] !== hG ? (gG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18862
18863
|
className: "flex items-center gap-2",
|
|
18863
18864
|
children: [
|
|
18864
|
-
|
|
18865
|
-
|
|
18865
|
+
mG,
|
|
18866
|
+
hG
|
|
18866
18867
|
]
|
|
18867
|
-
}), r[28] =
|
|
18868
|
-
let
|
|
18869
|
-
r[31] !== m || r[32] !== p ? (
|
|
18870
|
-
dequal(e2, p) || (m(e2),
|
|
18871
|
-
}, r[31] = m, r[32] = p, r[33] =
|
|
18872
|
-
let
|
|
18873
|
-
r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !==
|
|
18868
|
+
}), r[28] = mG, r[29] = hG, r[30] = gG) : gG = r[30];
|
|
18869
|
+
let _G;
|
|
18870
|
+
r[31] !== m || r[32] !== p ? (_G = (e2) => {
|
|
18871
|
+
dequal(e2, p) || (m(e2), tG(e2));
|
|
18872
|
+
}, r[31] = m, r[32] = p, r[33] = _G) : _G = r[33];
|
|
18873
|
+
let vG;
|
|
18874
|
+
r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !== _G ? (vG = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18874
18875
|
value: "transform",
|
|
18875
18876
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18876
18877
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18877
18878
|
ref: Z,
|
|
18878
18879
|
initialValue: q,
|
|
18879
18880
|
columns: c,
|
|
18880
|
-
onChange:
|
|
18881
|
-
onInvalidChange:
|
|
18881
|
+
onChange: _G,
|
|
18882
|
+
onInvalidChange: tG,
|
|
18882
18883
|
getColumnValues: g,
|
|
18883
18884
|
columnTypesPerStep: B,
|
|
18884
18885
|
lazy: f
|
|
18885
18886
|
})
|
|
18886
|
-
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] =
|
|
18887
|
-
let
|
|
18888
|
-
r[41] === H ?
|
|
18887
|
+
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] = _G, r[40] = vG) : vG = r[40];
|
|
18888
|
+
let yG;
|
|
18889
|
+
r[41] === H ? yG = r[42] : (yG = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18889
18890
|
value: "python-code",
|
|
18890
18891
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18891
18892
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18894,9 +18895,9 @@ ${c}
|
|
|
18894
18895
|
code: H,
|
|
18895
18896
|
language: "python"
|
|
18896
18897
|
})
|
|
18897
|
-
}), r[41] = H, r[42] =
|
|
18898
|
-
let
|
|
18899
|
-
r[43] === W ?
|
|
18898
|
+
}), r[41] = H, r[42] = yG);
|
|
18899
|
+
let bG;
|
|
18900
|
+
r[43] === W ? bG = r[44] : (bG = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18900
18901
|
value: "sql-code",
|
|
18901
18902
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18902
18903
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18905,35 +18906,35 @@ ${c}
|
|
|
18905
18906
|
code: W,
|
|
18906
18907
|
language: "sql"
|
|
18907
18908
|
})
|
|
18908
|
-
}), r[43] = W, r[44] =
|
|
18909
|
-
let
|
|
18910
|
-
r[45] !==
|
|
18909
|
+
}), r[43] = W, r[44] = bG);
|
|
18910
|
+
let xG;
|
|
18911
|
+
r[45] !== rG || r[46] !== gG || r[47] !== vG || r[48] !== yG || r[49] !== bG ? (xG = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18911
18912
|
defaultValue: "transform",
|
|
18912
|
-
onValueChange:
|
|
18913
|
+
onValueChange: rG,
|
|
18913
18914
|
children: [
|
|
18914
|
-
|
|
18915
|
-
|
|
18916
|
-
|
|
18917
|
-
|
|
18915
|
+
gG,
|
|
18916
|
+
vG,
|
|
18917
|
+
yG,
|
|
18918
|
+
bG
|
|
18918
18919
|
]
|
|
18919
|
-
}), r[45] =
|
|
18920
|
-
let
|
|
18921
|
-
r[51] === O ?
|
|
18920
|
+
}), r[45] = rG, r[46] = gG, r[47] = vG, r[48] = yG, r[49] = bG, r[50] = xG) : xG = r[50];
|
|
18921
|
+
let SG;
|
|
18922
|
+
r[51] === O ? SG = r[52] : (SG = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18922
18923
|
error: O
|
|
18923
|
-
}), r[51] = O, r[52] =
|
|
18924
|
-
let
|
|
18925
|
-
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !==
|
|
18924
|
+
}), r[51] = O, r[52] = SG);
|
|
18925
|
+
let CG = I || "", wG = L ?? 0, TG = G ?? 0, EG = R || Arrays.EMPTY, DG = L && L > 5 || false, OG;
|
|
18926
|
+
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !== CG || r[61] !== wG || r[62] !== TG || r[63] !== EG || r[64] !== DG ? (OG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
18926
18927
|
label: null,
|
|
18927
18928
|
className: "rounded-b border-x border-b",
|
|
18928
|
-
data:
|
|
18929
|
+
data: CG,
|
|
18929
18930
|
hasStableRowId: false,
|
|
18930
|
-
totalRows:
|
|
18931
|
-
totalColumns:
|
|
18931
|
+
totalRows: wG,
|
|
18932
|
+
totalColumns: TG,
|
|
18932
18933
|
maxColumns: "all",
|
|
18933
18934
|
pageSize: l,
|
|
18934
18935
|
pagination: true,
|
|
18935
18936
|
fieldTypes: z,
|
|
18936
|
-
rowHeaders:
|
|
18937
|
+
rowHeaders: EG,
|
|
18937
18938
|
showDownload: u,
|
|
18938
18939
|
download_as: v,
|
|
18939
18940
|
get_size_bytes: y,
|
|
@@ -18943,7 +18944,7 @@ ${c}
|
|
|
18943
18944
|
showColumnSummaries: false,
|
|
18944
18945
|
showDataTypes: true,
|
|
18945
18946
|
get_column_summaries: getColumnSummaries,
|
|
18946
|
-
showPageSizeSelector:
|
|
18947
|
+
showPageSizeSelector: DG,
|
|
18947
18948
|
showColumnExplorer: false,
|
|
18948
18949
|
showRowExplorer: true,
|
|
18949
18950
|
showChartBuilder: false,
|
|
@@ -18952,15 +18953,15 @@ ${c}
|
|
|
18952
18953
|
selection: null,
|
|
18953
18954
|
lazy: false,
|
|
18954
18955
|
host: b
|
|
18955
|
-
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] =
|
|
18956
|
-
let
|
|
18957
|
-
return r[66] !==
|
|
18956
|
+
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] = CG, r[61] = wG, r[62] = TG, r[63] = EG, r[64] = DG, r[65] = OG) : OG = r[65];
|
|
18957
|
+
let kG;
|
|
18958
|
+
return r[66] !== xG || r[67] !== SG || r[68] !== OG ? (kG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18958
18959
|
children: [
|
|
18959
|
-
|
|
18960
|
-
|
|
18961
|
-
|
|
18960
|
+
xG,
|
|
18961
|
+
SG,
|
|
18962
|
+
OG
|
|
18962
18963
|
]
|
|
18963
|
-
}), r[66] =
|
|
18964
|
+
}), r[66] = xG, r[67] = SG, r[68] = OG, r[69] = kG) : kG = r[69], kG;
|
|
18964
18965
|
});
|
|
18965
18966
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18966
18967
|
function getColumnSummaries() {
|
|
@@ -19151,23 +19152,23 @@ ${c}
|
|
|
19151
19152
|
}, [
|
|
19152
19153
|
H
|
|
19153
19154
|
]);
|
|
19154
|
-
let q = (R == null ? void 0 : R.files) ?? [],
|
|
19155
|
+
let q = (R == null ? void 0 : R.files) ?? [], tG = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", nG = l === "file" || l === "all", rG = q.filter((e2) => Z && e2.is_directory || nG && !e2.is_directory), aG = rG.length > 0 && rG.every((e2) => tG.has(e2.path));
|
|
19155
19156
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
19156
19157
|
kind: "danger",
|
|
19157
19158
|
children: z.message
|
|
19158
19159
|
});
|
|
19159
|
-
let
|
|
19160
|
+
let oG = PathBuilder.guessDeliminator(c).deliminator, sG = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
19160
19161
|
children: e2.path
|
|
19161
19162
|
}, e2.id));
|
|
19162
|
-
function
|
|
19163
|
+
function cG(e2) {
|
|
19163
19164
|
var _a6;
|
|
19164
19165
|
if (v) return;
|
|
19165
19166
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
19166
|
-
if (g ===
|
|
19167
|
+
if (g === oG) {
|
|
19167
19168
|
y(false);
|
|
19168
19169
|
return;
|
|
19169
19170
|
}
|
|
19170
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
19171
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = oG);
|
|
19171
19172
|
}
|
|
19172
19173
|
let r2 = e2.length < c.length;
|
|
19173
19174
|
if (f && r2) {
|
|
@@ -19180,7 +19181,7 @@ ${c}
|
|
|
19180
19181
|
}
|
|
19181
19182
|
M.current = ((_a6 = j.current) == null ? void 0 : _a6.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
19182
19183
|
}
|
|
19183
|
-
function
|
|
19184
|
+
function uG({ path: e2, name: r2, isDirectory: c2 }) {
|
|
19184
19185
|
return {
|
|
19185
19186
|
id: e2,
|
|
19186
19187
|
name: r2,
|
|
@@ -19188,27 +19189,27 @@ ${c}
|
|
|
19188
19189
|
is_directory: c2
|
|
19189
19190
|
};
|
|
19190
19191
|
}
|
|
19191
|
-
function
|
|
19192
|
-
let f2 =
|
|
19192
|
+
function dG({ path: c2, name: l2, isDirectory: d2 }) {
|
|
19193
|
+
let f2 = uG({
|
|
19193
19194
|
path: c2,
|
|
19194
19195
|
name: l2,
|
|
19195
19196
|
isDirectory: d2
|
|
19196
19197
|
});
|
|
19197
|
-
|
|
19198
|
+
tG.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
19198
19199
|
...e,
|
|
19199
19200
|
f2
|
|
19200
19201
|
] : [
|
|
19201
19202
|
f2
|
|
19202
19203
|
]);
|
|
19203
19204
|
}
|
|
19204
|
-
function
|
|
19205
|
+
function fG() {
|
|
19205
19206
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
19206
19207
|
}
|
|
19207
|
-
function
|
|
19208
|
+
function pG() {
|
|
19208
19209
|
let c2 = [];
|
|
19209
19210
|
for (let e2 of q) {
|
|
19210
|
-
if (!Z && e2.is_directory ||
|
|
19211
|
-
let r2 =
|
|
19211
|
+
if (!Z && e2.is_directory || tG.has(e2.path)) continue;
|
|
19212
|
+
let r2 = uG({
|
|
19212
19213
|
path: e2.path,
|
|
19213
19214
|
name: e2.name,
|
|
19214
19215
|
isDirectory: e2.is_directory
|
|
@@ -19220,20 +19221,20 @@ ${c}
|
|
|
19220
19221
|
...c2
|
|
19221
19222
|
]);
|
|
19222
19223
|
}
|
|
19223
|
-
let
|
|
19224
|
+
let mG = [
|
|
19224
19225
|
{
|
|
19225
19226
|
key: "parent",
|
|
19226
19227
|
name: PARENT_DIRECTORY,
|
|
19227
19228
|
Icon: CornerLeftUp,
|
|
19228
19229
|
isSelected: false,
|
|
19229
19230
|
canSelect: false,
|
|
19230
|
-
onPrimary: () =>
|
|
19231
|
+
onPrimary: () => cG(PARENT_DIRECTORY),
|
|
19231
19232
|
onToggleSelect: null
|
|
19232
19233
|
},
|
|
19233
19234
|
...q.map((e2) => {
|
|
19234
19235
|
let r2 = e2.path;
|
|
19235
19236
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
19236
|
-
let c2 = Z && e2.is_directory ||
|
|
19237
|
+
let c2 = Z && e2.is_directory || nG && !e2.is_directory, l2 = tG.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => dG({
|
|
19237
19238
|
path: r2,
|
|
19238
19239
|
name: e2.name,
|
|
19239
19240
|
isDirectory: e2.is_directory
|
|
@@ -19244,46 +19245,46 @@ ${c}
|
|
|
19244
19245
|
Icon: FILE_ICON[u2],
|
|
19245
19246
|
isSelected: l2,
|
|
19246
19247
|
canSelect: c2,
|
|
19247
|
-
onPrimary: e2.is_directory ? () =>
|
|
19248
|
+
onPrimary: e2.is_directory ? () => cG(r2) : c2 ? d2 : () => {
|
|
19248
19249
|
},
|
|
19249
19250
|
onToggleSelect: c2 ? d2 : null
|
|
19250
19251
|
};
|
|
19251
19252
|
})
|
|
19252
19253
|
];
|
|
19253
|
-
function
|
|
19254
|
+
function hG(e2) {
|
|
19254
19255
|
var _a6;
|
|
19255
19256
|
E(e2), (_a6 = O.current[e2]) == null ? void 0 : _a6.focus();
|
|
19256
19257
|
}
|
|
19257
|
-
function
|
|
19258
|
+
function gG(e2, r2) {
|
|
19258
19259
|
var _a6, _b3;
|
|
19259
|
-
let c2 =
|
|
19260
|
+
let c2 = mG.length - 1;
|
|
19260
19261
|
switch (e2.key) {
|
|
19261
19262
|
case "ArrowDown":
|
|
19262
|
-
e2.preventDefault(),
|
|
19263
|
+
e2.preventDefault(), hG(Math.min(r2 + 1, c2));
|
|
19263
19264
|
break;
|
|
19264
19265
|
case "ArrowUp":
|
|
19265
|
-
e2.preventDefault(),
|
|
19266
|
+
e2.preventDefault(), hG(Math.max(r2 - 1, 0));
|
|
19266
19267
|
break;
|
|
19267
19268
|
case "Home":
|
|
19268
|
-
e2.preventDefault(),
|
|
19269
|
+
e2.preventDefault(), hG(0);
|
|
19269
19270
|
break;
|
|
19270
19271
|
case "End":
|
|
19271
|
-
e2.preventDefault(),
|
|
19272
|
+
e2.preventDefault(), hG(c2);
|
|
19272
19273
|
break;
|
|
19273
19274
|
case "Enter":
|
|
19274
|
-
e2.preventDefault(),
|
|
19275
|
+
e2.preventDefault(), mG[r2].onPrimary();
|
|
19275
19276
|
break;
|
|
19276
19277
|
case " ":
|
|
19277
|
-
e2.preventDefault(), (_b3 = (_a6 =
|
|
19278
|
+
e2.preventDefault(), (_b3 = (_a6 = mG[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a6);
|
|
19278
19279
|
break;
|
|
19279
19280
|
}
|
|
19280
19281
|
}
|
|
19281
|
-
let { parentDirectories:
|
|
19282
|
+
let { parentDirectories: _G } = getProtocolAndParentDirectories({
|
|
19282
19283
|
path: g,
|
|
19283
|
-
delimiter:
|
|
19284
|
+
delimiter: oG,
|
|
19284
19285
|
initialPath: c,
|
|
19285
19286
|
restrictNavigation: f
|
|
19286
|
-
}),
|
|
19287
|
+
}), vG = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
19287
19288
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
19288
19289
|
children: [
|
|
19289
19290
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -19293,7 +19294,7 @@ ${c}
|
|
|
19293
19294
|
(() => {
|
|
19294
19295
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
19295
19296
|
children: renderHTML({
|
|
19296
|
-
html: d ?? `Select ${
|
|
19297
|
+
html: d ?? `Select ${vG.join(" and ", 2)}...`
|
|
19297
19298
|
})
|
|
19298
19299
|
});
|
|
19299
19300
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -19307,8 +19308,8 @@ ${c}
|
|
|
19307
19308
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
19308
19309
|
size: "xs",
|
|
19309
19310
|
variant: "link",
|
|
19310
|
-
onClick:
|
|
19311
|
-
children:
|
|
19311
|
+
onClick: aG ? fG : pG,
|
|
19312
|
+
children: aG ? "Deselect all" : "Select all"
|
|
19312
19313
|
})
|
|
19313
19314
|
})
|
|
19314
19315
|
]
|
|
@@ -19318,8 +19319,8 @@ ${c}
|
|
|
19318
19319
|
className: "mt-2 w-full",
|
|
19319
19320
|
placeholder: g,
|
|
19320
19321
|
value: g,
|
|
19321
|
-
onChange: (e2) =>
|
|
19322
|
-
children:
|
|
19322
|
+
onChange: (e2) => cG(e2.target.value),
|
|
19323
|
+
children: _G.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
19323
19324
|
value: e2,
|
|
19324
19325
|
children: e2
|
|
19325
19326
|
}, e2))
|
|
@@ -19355,14 +19356,14 @@ ${c}
|
|
|
19355
19356
|
"aria-label": "File browser",
|
|
19356
19357
|
"aria-multiselectable": u,
|
|
19357
19358
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
19358
|
-
children:
|
|
19359
|
+
children: mG.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
19359
19360
|
role: "row",
|
|
19360
19361
|
ref: (e3) => {
|
|
19361
19362
|
O.current[r2] = e3;
|
|
19362
19363
|
},
|
|
19363
19364
|
tabIndex: r2 === w ? 0 : -1,
|
|
19364
19365
|
onFocus: () => E(r2),
|
|
19365
|
-
onKeyDown: (e3) =>
|
|
19366
|
+
onKeyDown: (e3) => gG(e3, r2),
|
|
19366
19367
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
19367
19368
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
19368
19369
|
}),
|
|
@@ -19405,7 +19406,7 @@ ${c}
|
|
|
19405
19406
|
children: [
|
|
19406
19407
|
e.length,
|
|
19407
19408
|
" ",
|
|
19408
|
-
|
|
19409
|
+
vG.join(" or ", e.length),
|
|
19409
19410
|
" ",
|
|
19410
19411
|
"selected"
|
|
19411
19412
|
]
|
|
@@ -19425,7 +19426,7 @@ ${c}
|
|
|
19425
19426
|
marginBlock: 0
|
|
19426
19427
|
},
|
|
19427
19428
|
className: "m-0 text-xs text-muted-foreground",
|
|
19428
|
-
children:
|
|
19429
|
+
children: sG
|
|
19429
19430
|
})
|
|
19430
19431
|
})
|
|
19431
19432
|
]
|
|
@@ -24807,55 +24808,55 @@ ${c}
|
|
|
24807
24808
|
return typeof S == "function" ? S : noop$2;
|
|
24808
24809
|
}, [
|
|
24809
24810
|
S
|
|
24810
|
-
]), q = (0, import_react.useRef)(null),
|
|
24811
|
-
!
|
|
24812
|
-
|
|
24811
|
+
]), q = (0, import_react.useRef)(null), tG = (0, import_react.useRef)(null), Z = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), nG = Z[0], rG = Z[1], iG = nG.isFocused, aG = nG.isFileDialogActive, oG = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), sG = function() {
|
|
24812
|
+
!oG.current && aG && setTimeout(function() {
|
|
24813
|
+
tG.current && (tG.current.files.length || (rG({
|
|
24813
24814
|
type: "closeDialog"
|
|
24814
24815
|
}), G()));
|
|
24815
24816
|
}, 300);
|
|
24816
24817
|
};
|
|
24817
24818
|
(0, import_react.useEffect)(function() {
|
|
24818
|
-
return window.addEventListener("focus",
|
|
24819
|
-
window.removeEventListener("focus",
|
|
24819
|
+
return window.addEventListener("focus", sG, false), function() {
|
|
24820
|
+
window.removeEventListener("focus", sG, false);
|
|
24820
24821
|
};
|
|
24821
24822
|
}, [
|
|
24822
|
-
ZW,
|
|
24823
24823
|
tG,
|
|
24824
|
+
aG,
|
|
24824
24825
|
G,
|
|
24825
|
-
|
|
24826
|
+
oG
|
|
24826
24827
|
]);
|
|
24827
|
-
var
|
|
24828
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
24828
|
+
var cG = (0, import_react.useRef)([]), lG = (0, import_react.useRef)([]), uG = function(e2) {
|
|
24829
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), cG.current = []);
|
|
24829
24830
|
};
|
|
24830
24831
|
(0, import_react.useEffect)(function() {
|
|
24831
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
24832
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
24832
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", uG, false)), function() {
|
|
24833
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", uG));
|
|
24833
24834
|
};
|
|
24834
24835
|
}, [
|
|
24835
24836
|
q,
|
|
24836
24837
|
O
|
|
24837
24838
|
]), (0, import_react.useEffect)(function() {
|
|
24838
24839
|
var e2 = function(e3) {
|
|
24839
|
-
|
|
24840
|
+
lG.current = [].concat(_toConsumableArray(lG.current), [
|
|
24840
24841
|
e3.target
|
|
24841
|
-
]), isEvtWithFiles(e3) &&
|
|
24842
|
+
]), isEvtWithFiles(e3) && rG({
|
|
24842
24843
|
isDragGlobal: true,
|
|
24843
24844
|
type: "setDragGlobal"
|
|
24844
24845
|
});
|
|
24845
24846
|
}, r2 = function(e3) {
|
|
24846
|
-
|
|
24847
|
+
lG.current = lG.current.filter(function(r3) {
|
|
24847
24848
|
return r3 !== e3.target && r3 !== null;
|
|
24848
|
-
}), !(
|
|
24849
|
+
}), !(lG.current.length > 0) && rG({
|
|
24849
24850
|
isDragGlobal: false,
|
|
24850
24851
|
type: "setDragGlobal"
|
|
24851
24852
|
});
|
|
24852
24853
|
}, c2 = function() {
|
|
24853
|
-
|
|
24854
|
+
lG.current = [], rG({
|
|
24854
24855
|
isDragGlobal: false,
|
|
24855
24856
|
type: "setDragGlobal"
|
|
24856
24857
|
});
|
|
24857
24858
|
}, l2 = function() {
|
|
24858
|
-
|
|
24859
|
+
lG.current = [], rG({
|
|
24859
24860
|
isDragGlobal: false,
|
|
24860
24861
|
type: "setDragGlobal"
|
|
24861
24862
|
});
|
|
@@ -24873,12 +24874,12 @@ ${c}
|
|
|
24873
24874
|
E,
|
|
24874
24875
|
l
|
|
24875
24876
|
]);
|
|
24876
|
-
var
|
|
24877
|
+
var dG = (0, import_react.useCallback)(function(e2) {
|
|
24877
24878
|
R ? R(e2) : console.error(e2);
|
|
24878
24879
|
}, [
|
|
24879
24880
|
R
|
|
24880
|
-
]),
|
|
24881
|
-
e2.preventDefault(), e2.persist(),
|
|
24881
|
+
]), fG = (0, import_react.useCallback)(function(e2) {
|
|
24882
|
+
e2.preventDefault(), e2.persist(), TG(e2), cG.current = [].concat(_toConsumableArray(cG.current), [
|
|
24882
24883
|
e2.target
|
|
24883
24884
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24884
24885
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -24891,7 +24892,7 @@ ${c}
|
|
|
24891
24892
|
maxFiles: m,
|
|
24892
24893
|
validator: z
|
|
24893
24894
|
});
|
|
24894
|
-
|
|
24895
|
+
rG({
|
|
24895
24896
|
isDragAccept: l2,
|
|
24896
24897
|
isDragReject: c2 > 0 && !l2,
|
|
24897
24898
|
isDragActive: true,
|
|
@@ -24899,12 +24900,12 @@ ${c}
|
|
|
24899
24900
|
}), h && h(e2);
|
|
24900
24901
|
}
|
|
24901
24902
|
}).catch(function(e3) {
|
|
24902
|
-
return
|
|
24903
|
+
return dG(e3);
|
|
24903
24904
|
});
|
|
24904
24905
|
}, [
|
|
24905
24906
|
u,
|
|
24906
24907
|
h,
|
|
24907
|
-
|
|
24908
|
+
dG,
|
|
24908
24909
|
L,
|
|
24909
24910
|
B,
|
|
24910
24911
|
f,
|
|
@@ -24912,8 +24913,8 @@ ${c}
|
|
|
24912
24913
|
p,
|
|
24913
24914
|
m,
|
|
24914
24915
|
z
|
|
24915
|
-
]),
|
|
24916
|
-
e2.preventDefault(), e2.persist(),
|
|
24916
|
+
]), pG = (0, import_react.useCallback)(function(e2) {
|
|
24917
|
+
e2.preventDefault(), e2.persist(), TG(e2);
|
|
24917
24918
|
var r2 = isEvtWithFiles(e2);
|
|
24918
24919
|
if (r2 && e2.dataTransfer) try {
|
|
24919
24920
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -24923,12 +24924,12 @@ ${c}
|
|
|
24923
24924
|
}, [
|
|
24924
24925
|
_,
|
|
24925
24926
|
L
|
|
24926
|
-
]),
|
|
24927
|
-
e2.preventDefault(), e2.persist(),
|
|
24928
|
-
var r2 =
|
|
24927
|
+
]), mG = (0, import_react.useCallback)(function(e2) {
|
|
24928
|
+
e2.preventDefault(), e2.persist(), TG(e2);
|
|
24929
|
+
var r2 = cG.current.filter(function(e3) {
|
|
24929
24930
|
return q.current && q.current.contains(e3);
|
|
24930
24931
|
}), c2 = r2.indexOf(e2.target);
|
|
24931
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
24932
|
+
c2 !== -1 && r2.splice(c2, 1), cG.current = r2, !(r2.length > 0) && (rG({
|
|
24932
24933
|
type: "setDraggedFiles",
|
|
24933
24934
|
isDragActive: false,
|
|
24934
24935
|
isDragAccept: false,
|
|
@@ -24938,7 +24939,7 @@ ${c}
|
|
|
24938
24939
|
q,
|
|
24939
24940
|
g,
|
|
24940
24941
|
L
|
|
24941
|
-
]),
|
|
24942
|
+
]), hG = (0, import_react.useCallback)(function(e2, r2) {
|
|
24942
24943
|
var c2 = [], l2 = [];
|
|
24943
24944
|
e2.forEach(function(e3) {
|
|
24944
24945
|
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;
|
|
@@ -24962,14 +24963,14 @@ ${c}
|
|
|
24962
24963
|
TOO_MANY_FILES_REJECTION
|
|
24963
24964
|
]
|
|
24964
24965
|
});
|
|
24965
|
-
}), c2.splice(0)),
|
|
24966
|
+
}), c2.splice(0)), rG({
|
|
24966
24967
|
acceptedFiles: c2,
|
|
24967
24968
|
fileRejections: l2,
|
|
24968
24969
|
isDragReject: l2.length > 0,
|
|
24969
24970
|
type: "setFiles"
|
|
24970
24971
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
24971
24972
|
}, [
|
|
24972
|
-
|
|
24973
|
+
rG,
|
|
24973
24974
|
p,
|
|
24974
24975
|
B,
|
|
24975
24976
|
f,
|
|
@@ -24979,22 +24980,22 @@ ${c}
|
|
|
24979
24980
|
y,
|
|
24980
24981
|
b,
|
|
24981
24982
|
z
|
|
24982
|
-
]),
|
|
24983
|
-
e2.preventDefault(), e2.persist(),
|
|
24984
|
-
isPropagationStopped(e2) && !L ||
|
|
24983
|
+
]), gG = (0, import_react.useCallback)(function(e2) {
|
|
24984
|
+
e2.preventDefault(), e2.persist(), TG(e2), cG.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24985
|
+
isPropagationStopped(e2) && !L || hG(r2, e2);
|
|
24985
24986
|
}).catch(function(e3) {
|
|
24986
|
-
return
|
|
24987
|
-
}),
|
|
24987
|
+
return dG(e3);
|
|
24988
|
+
}), rG({
|
|
24988
24989
|
type: "reset"
|
|
24989
24990
|
});
|
|
24990
24991
|
}, [
|
|
24991
24992
|
u,
|
|
24993
|
+
hG,
|
|
24992
24994
|
dG,
|
|
24993
|
-
sG,
|
|
24994
24995
|
L
|
|
24995
|
-
]),
|
|
24996
|
-
if (
|
|
24997
|
-
|
|
24996
|
+
]), _G = (0, import_react.useCallback)(function() {
|
|
24997
|
+
if (oG.current) {
|
|
24998
|
+
rG({
|
|
24998
24999
|
type: "openDialog"
|
|
24999
25000
|
}), W();
|
|
25000
25001
|
var e2 = {
|
|
@@ -25004,66 +25005,66 @@ ${c}
|
|
|
25004
25005
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
25005
25006
|
return u(e3);
|
|
25006
25007
|
}).then(function(e3) {
|
|
25007
|
-
|
|
25008
|
+
hG(e3, null), rG({
|
|
25008
25009
|
type: "closeDialog"
|
|
25009
25010
|
});
|
|
25010
25011
|
}).catch(function(e3) {
|
|
25011
|
-
isAbort(e3) ? (G(e3),
|
|
25012
|
+
isAbort(e3) ? (G(e3), rG({
|
|
25012
25013
|
type: "closeDialog"
|
|
25013
|
-
})) : isSecurityError(e3) ? (
|
|
25014
|
+
})) : isSecurityError(e3) ? (oG.current = false, tG.current ? (tG.current.value = null, tG.current.click()) : dG(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."))) : dG(e3);
|
|
25014
25015
|
});
|
|
25015
25016
|
return;
|
|
25016
25017
|
}
|
|
25017
|
-
|
|
25018
|
+
tG.current && (rG({
|
|
25018
25019
|
type: "openDialog"
|
|
25019
|
-
}), W(),
|
|
25020
|
+
}), W(), tG.current.value = null, tG.current.click());
|
|
25020
25021
|
}, [
|
|
25021
|
-
|
|
25022
|
+
rG,
|
|
25022
25023
|
W,
|
|
25023
25024
|
G,
|
|
25024
25025
|
T,
|
|
25026
|
+
hG,
|
|
25025
25027
|
dG,
|
|
25026
|
-
sG,
|
|
25027
25028
|
H,
|
|
25028
25029
|
p
|
|
25029
|
-
]),
|
|
25030
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
25030
|
+
]), vG = (0, import_react.useCallback)(function(e2) {
|
|
25031
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), _G());
|
|
25031
25032
|
}, [
|
|
25032
25033
|
q,
|
|
25033
|
-
|
|
25034
|
-
]),
|
|
25035
|
-
|
|
25034
|
+
_G
|
|
25035
|
+
]), yG = (0, import_react.useCallback)(function() {
|
|
25036
|
+
rG({
|
|
25036
25037
|
type: "focus"
|
|
25037
25038
|
});
|
|
25038
|
-
}, []),
|
|
25039
|
-
|
|
25039
|
+
}, []), bG = (0, import_react.useCallback)(function() {
|
|
25040
|
+
rG({
|
|
25040
25041
|
type: "blur"
|
|
25041
25042
|
});
|
|
25042
|
-
}, []),
|
|
25043
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
25043
|
+
}, []), xG = (0, import_react.useCallback)(function() {
|
|
25044
|
+
j || (isIeOrEdge() ? setTimeout(_G, 0) : _G());
|
|
25044
25045
|
}, [
|
|
25045
25046
|
j,
|
|
25046
|
-
|
|
25047
|
-
]),
|
|
25047
|
+
_G
|
|
25048
|
+
]), SG = function(e2) {
|
|
25048
25049
|
return l ? null : e2;
|
|
25049
|
-
},
|
|
25050
|
-
return M ? null :
|
|
25051
|
-
},
|
|
25052
|
-
return I ? null :
|
|
25053
|
-
},
|
|
25050
|
+
}, CG = function(e2) {
|
|
25051
|
+
return M ? null : SG(e2);
|
|
25052
|
+
}, wG = function(e2) {
|
|
25053
|
+
return I ? null : SG(e2);
|
|
25054
|
+
}, TG = function(e2) {
|
|
25054
25055
|
L && e2.stopPropagation();
|
|
25055
|
-
},
|
|
25056
|
+
}, EG = (0, import_react.useMemo)(function() {
|
|
25056
25057
|
return function() {
|
|
25057
25058
|
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);
|
|
25058
25059
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
25059
|
-
onKeyDown:
|
|
25060
|
-
onFocus:
|
|
25061
|
-
onBlur:
|
|
25062
|
-
onClick:
|
|
25063
|
-
onDragEnter:
|
|
25064
|
-
onDragOver:
|
|
25065
|
-
onDragLeave:
|
|
25066
|
-
onDrop:
|
|
25060
|
+
onKeyDown: CG(composeEventHandlers(d2, vG)),
|
|
25061
|
+
onFocus: CG(composeEventHandlers(f2, yG)),
|
|
25062
|
+
onBlur: CG(composeEventHandlers(p2, bG)),
|
|
25063
|
+
onClick: SG(composeEventHandlers(m2, xG)),
|
|
25064
|
+
onDragEnter: wG(composeEventHandlers(h2, fG)),
|
|
25065
|
+
onDragOver: wG(composeEventHandlers(g2, pG)),
|
|
25066
|
+
onDragLeave: wG(composeEventHandlers(_2, mG)),
|
|
25067
|
+
onDrop: wG(composeEventHandlers(v2, gG)),
|
|
25067
25068
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
25068
25069
|
}, c2, q), !l && !M ? {
|
|
25069
25070
|
tabIndex: 0
|
|
@@ -25071,20 +25072,20 @@ ${c}
|
|
|
25071
25072
|
};
|
|
25072
25073
|
}, [
|
|
25073
25074
|
q,
|
|
25075
|
+
vG,
|
|
25076
|
+
yG,
|
|
25077
|
+
bG,
|
|
25078
|
+
xG,
|
|
25079
|
+
fG,
|
|
25080
|
+
pG,
|
|
25074
25081
|
mG,
|
|
25075
|
-
hG,
|
|
25076
25082
|
gG,
|
|
25077
|
-
_G,
|
|
25078
|
-
cG,
|
|
25079
|
-
lG,
|
|
25080
|
-
uG,
|
|
25081
|
-
fG,
|
|
25082
25083
|
M,
|
|
25083
25084
|
I,
|
|
25084
25085
|
l
|
|
25085
|
-
]),
|
|
25086
|
+
]), DG = (0, import_react.useCallback)(function(e2) {
|
|
25086
25087
|
e2.stopPropagation();
|
|
25087
|
-
}, []),
|
|
25088
|
+
}, []), OG = (0, import_react.useMemo)(function() {
|
|
25088
25089
|
return function() {
|
|
25089
25090
|
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);
|
|
25090
25091
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -25103,25 +25104,25 @@ ${c}
|
|
|
25103
25104
|
width: "1px",
|
|
25104
25105
|
whiteSpace: "nowrap"
|
|
25105
25106
|
},
|
|
25106
|
-
onChange:
|
|
25107
|
-
onClick:
|
|
25107
|
+
onChange: SG(composeEventHandlers(l2, gG)),
|
|
25108
|
+
onClick: SG(composeEventHandlers(u2, DG)),
|
|
25108
25109
|
tabIndex: -1
|
|
25109
|
-
}, c2,
|
|
25110
|
+
}, c2, tG)), d2);
|
|
25110
25111
|
};
|
|
25111
25112
|
}, [
|
|
25112
|
-
|
|
25113
|
+
tG,
|
|
25113
25114
|
c,
|
|
25114
25115
|
p,
|
|
25115
|
-
|
|
25116
|
+
gG,
|
|
25116
25117
|
l
|
|
25117
25118
|
]);
|
|
25118
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
25119
|
-
isFocused:
|
|
25120
|
-
getRootProps:
|
|
25121
|
-
getInputProps:
|
|
25119
|
+
return _objectSpread$7(_objectSpread$7({}, nG), {}, {
|
|
25120
|
+
isFocused: iG && !l,
|
|
25121
|
+
getRootProps: EG,
|
|
25122
|
+
getInputProps: OG,
|
|
25122
25123
|
rootRef: q,
|
|
25123
|
-
inputRef:
|
|
25124
|
-
open:
|
|
25124
|
+
inputRef: tG,
|
|
25125
|
+
open: SG(_G)
|
|
25125
25126
|
});
|
|
25126
25127
|
}
|
|
25127
25128
|
function reducer$2(e, r) {
|
|
@@ -25353,47 +25354,47 @@ ${c}
|
|
|
25353
25354
|
html: I
|
|
25354
25355
|
})
|
|
25355
25356
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
25356
|
-
let q = w && "text-primary",
|
|
25357
|
-
r[48] !== q || r[49] !==
|
|
25358
|
-
let
|
|
25359
|
-
r[51] === Z ?
|
|
25357
|
+
let q = w && "text-primary", tG = T && "text-destructive", Z;
|
|
25358
|
+
r[48] !== q || r[49] !== tG ? (Z = cn(q, tG), r[48] = q, r[49] = tG, r[50] = Z) : Z = r[50];
|
|
25359
|
+
let nG;
|
|
25360
|
+
r[51] === Z ? nG = r[52] : (nG = (0, import_jsx_runtime.jsx)(Upload, {
|
|
25360
25361
|
strokeWidth: 1.4,
|
|
25361
25362
|
className: Z
|
|
25362
|
-
}), r[51] = Z, r[52] =
|
|
25363
|
-
let
|
|
25364
|
-
r[53] !==
|
|
25365
|
-
let
|
|
25366
|
-
r[56] ===
|
|
25363
|
+
}), r[51] = Z, r[52] = nG);
|
|
25364
|
+
let rG = w && "text-primary", iG = T && "text-destructive", aG;
|
|
25365
|
+
r[53] !== rG || r[54] !== iG ? (aG = cn(rG, iG), r[53] = rG, r[54] = iG, r[55] = aG) : aG = r[55];
|
|
25366
|
+
let oG;
|
|
25367
|
+
r[56] === aG ? oG = r[57] : (oG = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
25367
25368
|
strokeWidth: 1.4,
|
|
25368
|
-
className:
|
|
25369
|
-
}), r[56] =
|
|
25370
|
-
let
|
|
25371
|
-
r[58] !==
|
|
25369
|
+
className: aG
|
|
25370
|
+
}), r[56] = aG, r[57] = oG);
|
|
25371
|
+
let sG;
|
|
25372
|
+
r[58] !== nG || r[59] !== oG ? (sG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25372
25373
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
25373
25374
|
children: [
|
|
25374
|
-
|
|
25375
|
-
|
|
25375
|
+
nG,
|
|
25376
|
+
oG
|
|
25376
25377
|
]
|
|
25377
|
-
}), r[58] =
|
|
25378
|
-
let
|
|
25379
|
-
r[61] !== G || r[62] !==
|
|
25378
|
+
}), r[58] = nG, r[59] = oG, r[60] = sG) : sG = r[60];
|
|
25379
|
+
let cG;
|
|
25380
|
+
r[61] !== G || r[62] !== sG ? (cG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25380
25381
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
25381
25382
|
children: [
|
|
25382
25383
|
G,
|
|
25383
|
-
|
|
25384
|
+
sG
|
|
25384
25385
|
]
|
|
25385
|
-
}), r[61] = G, r[62] =
|
|
25386
|
-
let
|
|
25387
|
-
r[64] !== W || r[65] !==
|
|
25386
|
+
}), r[61] = G, r[62] = sG, r[63] = cG) : cG = r[63];
|
|
25387
|
+
let uG;
|
|
25388
|
+
r[64] !== W || r[65] !== cG || r[66] !== z || r[67] !== B ? (uG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25388
25389
|
className: z,
|
|
25389
25390
|
...B,
|
|
25390
25391
|
children: [
|
|
25391
25392
|
W,
|
|
25392
|
-
|
|
25393
|
+
cG
|
|
25393
25394
|
]
|
|
25394
|
-
}), r[64] = W, r[65] =
|
|
25395
|
-
let
|
|
25396
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (
|
|
25395
|
+
}), r[64] = W, r[65] = cG, r[66] = z, r[67] = B, r[68] = uG) : uG = r[68];
|
|
25396
|
+
let dG;
|
|
25397
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (dG = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
25397
25398
|
className: "flex flex-row gap-1",
|
|
25398
25399
|
children: [
|
|
25399
25400
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -25429,17 +25430,17 @@ ${c}
|
|
|
25429
25430
|
})
|
|
25430
25431
|
})
|
|
25431
25432
|
]
|
|
25432
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] =
|
|
25433
|
-
let
|
|
25434
|
-
return r[75] !==
|
|
25433
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] = dG) : dG = r[74];
|
|
25434
|
+
let fG;
|
|
25435
|
+
return r[75] !== uG || r[76] !== dG ? (fG = (0, import_jsx_runtime.jsx)("section", {
|
|
25435
25436
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
25436
25437
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
25437
25438
|
children: [
|
|
25438
|
-
|
|
25439
|
-
|
|
25439
|
+
uG,
|
|
25440
|
+
dG
|
|
25440
25441
|
]
|
|
25441
25442
|
})
|
|
25442
|
-
}), r[75] =
|
|
25443
|
+
}), r[75] = uG, r[76] = dG, r[77] = fG) : fG = r[77], fG;
|
|
25443
25444
|
};
|
|
25444
25445
|
function _temp$11(e) {
|
|
25445
25446
|
Logger.error(e), toast({
|
|
@@ -25536,75 +25537,75 @@ ${c}
|
|
|
25536
25537
|
var _a5;
|
|
25537
25538
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), (_a5 = j.current) == null ? void 0 : _a5.requestSubmit());
|
|
25538
25539
|
}, r[10] = q) : q = r[10];
|
|
25539
|
-
let
|
|
25540
|
-
r[11] === f ?
|
|
25540
|
+
let tG;
|
|
25541
|
+
r[11] === f ? tG = r[12] : (tG = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
25541
25542
|
className: "text-center",
|
|
25542
25543
|
children: renderHTML({
|
|
25543
25544
|
html: f
|
|
25544
25545
|
})
|
|
25545
|
-
}), r[11] = f, r[12] =
|
|
25546
|
+
}), r[11] = f, r[12] = tG);
|
|
25546
25547
|
let Z;
|
|
25547
25548
|
r[13] === L ? Z = r[14] : (Z = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25548
25549
|
kind: "danger",
|
|
25549
25550
|
className: "rounded",
|
|
25550
25551
|
children: L ?? "Invalid input"
|
|
25551
25552
|
}), r[13] = L, r[14] = Z);
|
|
25552
|
-
let
|
|
25553
|
-
r[15] === c ?
|
|
25553
|
+
let nG;
|
|
25554
|
+
r[15] === c ? nG = r[16] : (nG = (0, import_jsx_runtime.jsx)("div", {
|
|
25554
25555
|
children: c
|
|
25555
|
-
}), r[15] = c, r[16] =
|
|
25556
|
-
let
|
|
25557
|
-
r[17] !== S || r[18] !== w || r[19] !== b ? (
|
|
25556
|
+
}), r[15] = c, r[16] = nG);
|
|
25557
|
+
let rG;
|
|
25558
|
+
r[17] !== S || r[18] !== w || r[19] !== b ? (rG = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
25558
25559
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
25559
25560
|
variant: "text",
|
|
25560
25561
|
onClick: (e2) => {
|
|
25561
25562
|
e2.preventDefault(), B();
|
|
25562
25563
|
},
|
|
25563
25564
|
children: S
|
|
25564
|
-
}), w), r[17] = S, r[18] = w, r[19] = b, r[20] =
|
|
25565
|
-
let
|
|
25566
|
-
r[21] === m ?
|
|
25565
|
+
}), w), r[17] = S, r[18] = w, r[19] = b, r[20] = rG) : rG = r[20];
|
|
25566
|
+
let iG = v || m, aG;
|
|
25567
|
+
r[21] === m ? aG = r[22] : (aG = m && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
25567
25568
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
25568
|
-
}), r[21] = m, r[22] =
|
|
25569
|
-
let
|
|
25570
|
-
r[23] !== g || r[24] !==
|
|
25569
|
+
}), r[21] = m, r[22] = aG);
|
|
25570
|
+
let oG;
|
|
25571
|
+
r[23] !== g || r[24] !== iG || r[25] !== aG || r[26] !== I ? (oG = (0, import_jsx_runtime.jsxs)(Button, {
|
|
25571
25572
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
25572
25573
|
variant: I,
|
|
25573
|
-
disabled:
|
|
25574
|
+
disabled: iG,
|
|
25574
25575
|
type: "submit",
|
|
25575
25576
|
children: [
|
|
25576
|
-
|
|
25577
|
+
aG,
|
|
25577
25578
|
g
|
|
25578
25579
|
]
|
|
25579
|
-
}), r[23] = g, r[24] =
|
|
25580
|
-
let
|
|
25581
|
-
r[28] !== _ || r[29] !==
|
|
25582
|
-
let
|
|
25583
|
-
r[31] !==
|
|
25580
|
+
}), r[23] = g, r[24] = iG, r[25] = aG, r[26] = I, r[27] = oG) : oG = r[27];
|
|
25581
|
+
let sG;
|
|
25582
|
+
r[28] !== _ || r[29] !== oG ? (sG = withTooltip(oG, _), r[28] = _, r[29] = oG, r[30] = sG) : sG = r[30];
|
|
25583
|
+
let cG;
|
|
25584
|
+
r[31] !== sG || r[32] !== rG ? (cG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25584
25585
|
className: "flex justify-end gap-2 font-code",
|
|
25585
25586
|
children: [
|
|
25586
|
-
|
|
25587
|
-
|
|
25587
|
+
rG,
|
|
25588
|
+
sG
|
|
25588
25589
|
]
|
|
25589
|
-
}), r[31] =
|
|
25590
|
-
let
|
|
25591
|
-
r[34] !==
|
|
25590
|
+
}), r[31] = sG, r[32] = rG, r[33] = cG) : cG = r[33];
|
|
25591
|
+
let uG;
|
|
25592
|
+
r[34] !== cG || r[35] !== G || r[36] !== tG || r[37] !== Z || r[38] !== nG ? (uG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25592
25593
|
className: G,
|
|
25593
25594
|
onKeyDown: q,
|
|
25594
25595
|
children: [
|
|
25595
|
-
|
|
25596
|
+
tG,
|
|
25596
25597
|
Z,
|
|
25597
|
-
|
|
25598
|
-
|
|
25598
|
+
nG,
|
|
25599
|
+
cG
|
|
25599
25600
|
]
|
|
25600
|
-
}), r[34] =
|
|
25601
|
-
let
|
|
25602
|
-
return r[40] !==
|
|
25601
|
+
}), r[34] = cG, r[35] = G, r[36] = tG, r[37] = Z, r[38] = nG, r[39] = uG) : uG = r[39];
|
|
25602
|
+
let dG;
|
|
25603
|
+
return r[40] !== uG || r[41] !== H ? (dG = (0, import_jsx_runtime.jsx)("form", {
|
|
25603
25604
|
className: "contents",
|
|
25604
25605
|
ref: j,
|
|
25605
25606
|
onSubmit: H,
|
|
25606
|
-
children:
|
|
25607
|
-
}), r[40] =
|
|
25607
|
+
children: uG
|
|
25608
|
+
}), r[40] = uG, r[41] = H, r[42] = dG) : dG = r[42], dG;
|
|
25608
25609
|
};
|
|
25609
25610
|
var Form = (e) => {
|
|
25610
25611
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -25685,7 +25686,10 @@ ${c}
|
|
|
25685
25686
|
setValue: e.setValue
|
|
25686
25687
|
});
|
|
25687
25688
|
}
|
|
25688
|
-
}, PIXELS_PER_STEP = 10,
|
|
25689
|
+
}, PIXELS_PER_STEP = 10, COARSE_MULTIPLIER = 10, FINE_MULTIPLIER = 0.1, stepMultiplier = (e) => e.shiftKey ? COARSE_MULTIPLIER : e.altKey ? FINE_MULTIPLIER : 1, cleanFloat = (e, r) => {
|
|
25690
|
+
let c = Number(e.toFixed(12)), l = 2 ** -52 * Math.max(Math.abs(e), Math.abs(r)) * 100;
|
|
25691
|
+
return Math.abs(e - c) <= l ? c : e;
|
|
25692
|
+
}, MatrixComponent = ({ value: e, setValue: r, label: c, minValue: l, maxValue: u, step: d, precision: f, rowLabels: p, columnLabels: m, symmetric: g, debounce: _, scientific: v, disabled: y }) => {
|
|
25689
25693
|
var _a5;
|
|
25690
25694
|
let b = (0, import_react.useRef)(null), [S, w] = (0, import_react.useState)(null), [T, E] = (0, import_react.useState)(e);
|
|
25691
25695
|
(0, import_react.useEffect)(() => {
|
|
@@ -25693,68 +25697,140 @@ ${c}
|
|
|
25693
25697
|
}, [
|
|
25694
25698
|
e
|
|
25695
25699
|
]);
|
|
25696
|
-
let O = S == null ? e : T, j = (
|
|
25700
|
+
let O = S == null ? e : T, [j, M] = (0, import_react.useState)(null), I = (0, import_react.useRef)(null), L = (0, import_react.useRef)(null), R = (0, import_react.useCallback)((e2) => {
|
|
25701
|
+
I.current = e2, M(e2);
|
|
25702
|
+
}, []), z = (e2) => v ? e2.toExponential(f) : e2.toFixed(f), B = (0, import_react.useCallback)((e2, r2, c2) => {
|
|
25697
25703
|
let d2 = e2;
|
|
25698
25704
|
return l != null && (d2 = Math.max(d2, l[r2][c2])), u != null && (d2 = Math.min(d2, u[r2][c2])), d2;
|
|
25699
25705
|
}, [
|
|
25700
25706
|
l,
|
|
25701
25707
|
u
|
|
25702
|
-
]),
|
|
25703
|
-
|
|
25708
|
+
]), H = (0, import_react.useCallback)((e2, r2, c2, l2) => {
|
|
25709
|
+
let u2 = g && r2 !== c2, d2 = B(l2, r2, c2);
|
|
25710
|
+
if (u2 && (d2 = B(d2, c2, r2)), d2 === e2[r2][c2]) return null;
|
|
25711
|
+
let f2 = e2.map((e3) => [
|
|
25712
|
+
...e3
|
|
25713
|
+
]);
|
|
25714
|
+
return f2[r2][c2] = d2, u2 && (f2[c2][r2] = d2), f2;
|
|
25715
|
+
}, [
|
|
25716
|
+
g,
|
|
25717
|
+
B
|
|
25718
|
+
]), W = (0, import_react.useCallback)((r2, c2, l2) => {
|
|
25719
|
+
y[r2][c2] || (b.current = null, w(null), R({
|
|
25720
|
+
row: r2,
|
|
25721
|
+
col: c2,
|
|
25722
|
+
text: l2 ?? String(e[r2][c2]),
|
|
25723
|
+
selectAll: l2 == null
|
|
25724
|
+
}));
|
|
25725
|
+
}, [
|
|
25726
|
+
y,
|
|
25727
|
+
e,
|
|
25728
|
+
R
|
|
25729
|
+
]), G = (0, import_react.useCallback)((e2) => {
|
|
25730
|
+
var _a6;
|
|
25731
|
+
L.current = e2, e2 && (e2.focus(), ((_a6 = I.current) == null ? void 0 : _a6.selectAll) ? e2.select() : e2.setSelectionRange(e2.value.length, e2.value.length));
|
|
25732
|
+
}, []), q = (0, import_react.useCallback)((c2) => {
|
|
25733
|
+
var _a6;
|
|
25734
|
+
let l2 = I.current;
|
|
25735
|
+
if (!l2) return;
|
|
25736
|
+
let u2 = c2 ? (_a6 = L.current) == null ? void 0 : _a6.closest("td") : null;
|
|
25737
|
+
R(null);
|
|
25738
|
+
let d2 = l2.text.trim(), f2 = Number(d2);
|
|
25739
|
+
if (d2 !== "" && Number.isFinite(f2)) {
|
|
25740
|
+
let c3 = H(e, l2.row, l2.col, f2);
|
|
25741
|
+
c3 && (E(c3), r(c3));
|
|
25742
|
+
}
|
|
25743
|
+
u2 == null ? void 0 : u2.focus();
|
|
25744
|
+
}, [
|
|
25745
|
+
e,
|
|
25746
|
+
H,
|
|
25747
|
+
r,
|
|
25748
|
+
R
|
|
25749
|
+
]), tG = (0, import_react.useCallback)(() => {
|
|
25750
|
+
var _a6;
|
|
25751
|
+
let e2 = (_a6 = L.current) == null ? void 0 : _a6.closest("td");
|
|
25752
|
+
R(null), e2 == null ? void 0 : e2.focus();
|
|
25753
|
+
}, [
|
|
25754
|
+
R
|
|
25755
|
+
]), Z = (0, import_react.useCallback)((e2) => {
|
|
25756
|
+
e2.stopPropagation(), e2.key === "Enter" ? (e2.preventDefault(), q(true)) : e2.key === "Escape" && (e2.preventDefault(), tG());
|
|
25757
|
+
}, [
|
|
25758
|
+
q,
|
|
25759
|
+
tG
|
|
25760
|
+
]), nG = (0, import_react.useCallback)((e2, r2, c2) => {
|
|
25761
|
+
y[r2][c2] || j != null || !(e2.target instanceof Element) || (e2.preventDefault(), e2.currentTarget.focus(), e2.target.setPointerCapture(e2.pointerId), b.current = {
|
|
25704
25762
|
row: r2,
|
|
25705
25763
|
col: c2,
|
|
25706
25764
|
startX: e2.clientX,
|
|
25707
|
-
startValue: O[r2][c2]
|
|
25765
|
+
startValue: O[r2][c2],
|
|
25766
|
+
multiplier: stepMultiplier(e2)
|
|
25708
25767
|
}, w({
|
|
25709
25768
|
row: r2,
|
|
25710
25769
|
col: c2
|
|
25711
25770
|
}));
|
|
25712
25771
|
}, [
|
|
25713
25772
|
y,
|
|
25773
|
+
j,
|
|
25714
25774
|
O
|
|
25715
|
-
]),
|
|
25775
|
+
]), rG = (0, import_react.useCallback)((e2) => {
|
|
25716
25776
|
let c2 = b.current;
|
|
25717
25777
|
if (!c2) return;
|
|
25718
|
-
let
|
|
25719
|
-
|
|
25720
|
-
|
|
25721
|
-
|
|
25722
|
-
]);
|
|
25723
|
-
e3[l2][u2] = v2, g && l2 !== u2 && (e3[u2][l2] = v2), E(e3), _ || r(e3);
|
|
25724
|
-
}
|
|
25778
|
+
let l2 = stepMultiplier(e2);
|
|
25779
|
+
l2 !== c2.multiplier && (c2.startX = e2.clientX, c2.startValue = O[c2.row][c2.col], c2.multiplier = l2);
|
|
25780
|
+
let { row: u2, col: f2, startX: p2, startValue: m2 } = c2, h = e2.clientX - p2, g2 = d[u2][f2] * l2, v2 = H(O, u2, f2, cleanFloat(m2 + Math.round(h / PIXELS_PER_STEP) * g2, g2));
|
|
25781
|
+
v2 && (E(v2), _ || r(v2));
|
|
25725
25782
|
}, [
|
|
25726
25783
|
d,
|
|
25727
|
-
M,
|
|
25728
25784
|
O,
|
|
25729
|
-
|
|
25785
|
+
H,
|
|
25730
25786
|
_,
|
|
25731
25787
|
r
|
|
25732
|
-
]),
|
|
25788
|
+
]), iG = (0, import_react.useCallback)(() => {
|
|
25733
25789
|
_ && b.current && r(O), b.current = null, w(null);
|
|
25734
25790
|
}, [
|
|
25735
25791
|
_,
|
|
25736
25792
|
O,
|
|
25737
25793
|
r
|
|
25738
|
-
]),
|
|
25739
|
-
if (
|
|
25740
|
-
|
|
25741
|
-
e2.preventDefault();
|
|
25742
|
-
|
|
25743
|
-
if (p2 !== O[c2][l2]) {
|
|
25744
|
-
let e3 = O.map((e4) => [
|
|
25745
|
-
...e4
|
|
25746
|
-
]);
|
|
25747
|
-
e3[c2][l2] = p2, g && c2 !== l2 && (e3[l2][c2] = p2), E(e3), r(e3);
|
|
25748
|
-
}
|
|
25794
|
+
]), aG = (0, import_react.useCallback)((e2, c2, l2) => {
|
|
25795
|
+
if (y[c2][l2]) return;
|
|
25796
|
+
if (e2.key === "Enter" || e2.key === "F2") {
|
|
25797
|
+
e2.preventDefault(), W(c2, l2);
|
|
25798
|
+
return;
|
|
25749
25799
|
}
|
|
25800
|
+
if (e2.key.length === 1 && /[\d.+-]/.test(e2.key) && !e2.ctrlKey && !e2.metaKey && !e2.altKey) {
|
|
25801
|
+
e2.preventDefault(), W(c2, l2, e2.key);
|
|
25802
|
+
return;
|
|
25803
|
+
}
|
|
25804
|
+
let u2 = d[c2][l2], f2;
|
|
25805
|
+
switch (e2.key) {
|
|
25806
|
+
case "ArrowUp":
|
|
25807
|
+
case "ArrowRight":
|
|
25808
|
+
f2 = u2 * stepMultiplier(e2);
|
|
25809
|
+
break;
|
|
25810
|
+
case "ArrowDown":
|
|
25811
|
+
case "ArrowLeft":
|
|
25812
|
+
f2 = -u2 * stepMultiplier(e2);
|
|
25813
|
+
break;
|
|
25814
|
+
case "PageUp":
|
|
25815
|
+
f2 = u2 * COARSE_MULTIPLIER;
|
|
25816
|
+
break;
|
|
25817
|
+
case "PageDown":
|
|
25818
|
+
f2 = -u2 * COARSE_MULTIPLIER;
|
|
25819
|
+
break;
|
|
25820
|
+
default:
|
|
25821
|
+
return;
|
|
25822
|
+
}
|
|
25823
|
+
e2.preventDefault();
|
|
25824
|
+
let p2 = H(O, c2, l2, cleanFloat(O[c2][l2] + f2, f2));
|
|
25825
|
+
p2 && (E(p2), r(p2));
|
|
25750
25826
|
}, [
|
|
25751
25827
|
y,
|
|
25828
|
+
W,
|
|
25752
25829
|
d,
|
|
25753
25830
|
O,
|
|
25754
|
-
|
|
25755
|
-
g,
|
|
25831
|
+
H,
|
|
25756
25832
|
r
|
|
25757
|
-
]),
|
|
25833
|
+
]), oG = p != null && p.length > 0, sG = m != null && m.length > 0, cG = O.length, lG = ((_a5 = O[0]) == null ? void 0 : _a5.length) ?? 0;
|
|
25758
25834
|
return (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25759
25835
|
label: c,
|
|
25760
25836
|
align: "top",
|
|
@@ -25762,18 +25838,18 @@ ${c}
|
|
|
25762
25838
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
25763
25839
|
className: "relative inline-block",
|
|
25764
25840
|
"data-testid": "marimo-plugin-matrix",
|
|
25765
|
-
onPointerMove:
|
|
25766
|
-
onPointerUp:
|
|
25767
|
-
onPointerCancel:
|
|
25841
|
+
onPointerMove: rG,
|
|
25842
|
+
onPointerUp: iG,
|
|
25843
|
+
onPointerCancel: iG,
|
|
25768
25844
|
children: (0, import_jsx_runtime.jsxs)("table", {
|
|
25769
25845
|
className: "font-mono text-sm tabular-nums select-none border-separate border-spacing-0",
|
|
25770
25846
|
role: "group",
|
|
25771
25847
|
"aria-label": c || "Matrix",
|
|
25772
25848
|
children: [
|
|
25773
|
-
|
|
25849
|
+
sG && (0, import_jsx_runtime.jsx)("thead", {
|
|
25774
25850
|
children: (0, import_jsx_runtime.jsxs)("tr", {
|
|
25775
25851
|
children: [
|
|
25776
|
-
|
|
25852
|
+
oG && (0, import_jsx_runtime.jsx)("th", {}),
|
|
25777
25853
|
m.map((e2, r2) => (0, import_jsx_runtime.jsx)("th", {
|
|
25778
25854
|
className: "text-center text-sm font-medium text-foreground px-2 pb-1",
|
|
25779
25855
|
children: e2
|
|
@@ -25784,25 +25860,43 @@ ${c}
|
|
|
25784
25860
|
(0, import_jsx_runtime.jsx)("tbody", {
|
|
25785
25861
|
children: O.map((e2, r2) => (0, import_jsx_runtime.jsxs)("tr", {
|
|
25786
25862
|
children: [
|
|
25787
|
-
|
|
25863
|
+
oG && (0, import_jsx_runtime.jsx)("th", {
|
|
25788
25864
|
className: "text-right text-sm font-medium text-foreground pr-3 h-8",
|
|
25789
25865
|
children: p[r2]
|
|
25790
25866
|
}),
|
|
25791
25867
|
e2.map((e3, c2) => {
|
|
25792
25868
|
var _a6, _b3;
|
|
25793
|
-
let d2 = y[r2][c2], f2 = (S == null ? void 0 : S.row) === r2 && (S == null ? void 0 : S.col) === c2, g2 = (p == null ? void 0 : p[r2]) ?? `Row ${r2 + 1}`,
|
|
25869
|
+
let d2 = y[r2][c2], f2 = (S == null ? void 0 : S.row) === r2 && (S == null ? void 0 : S.col) === c2, g2 = j != null && j.row === r2 && j.col === c2 ? j : null, _2 = (p == null ? void 0 : p[r2]) ?? `Row ${r2 + 1}`, v2 = (m == null ? void 0 : m[c2]) ?? `Column ${c2 + 1}`;
|
|
25794
25870
|
return (0, import_jsx_runtime.jsx)("td", {
|
|
25795
|
-
className: cn("relative text-center min-w-14 h-8 px-2 transition-colors touch-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden", d2 ? "cursor-default text-muted-foreground" : "cursor-ew-resize text-link hover:bg-accent", f2 && "bg-accent", c2 === 0 && "bracket-l", c2 ===
|
|
25871
|
+
className: cn("relative text-center min-w-14 h-8 px-2 transition-colors touch-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden", d2 ? "cursor-default text-muted-foreground" : g2 ? "cursor-text" : "cursor-ew-resize text-link hover:bg-accent", (f2 || g2 != null) && "bg-accent", c2 === 0 && "bracket-l", c2 === lG - 1 && "bracket-r", r2 === 0 && "bracket-t", r2 === cG - 1 && "bracket-b"),
|
|
25796
25872
|
tabIndex: d2 ? -1 : 0,
|
|
25797
|
-
|
|
25873
|
+
title: String(e3),
|
|
25874
|
+
"aria-label": `${_2}, ${v2}`,
|
|
25798
25875
|
"aria-valuenow": e3,
|
|
25799
25876
|
"aria-valuemin": (_a6 = l == null ? void 0 : l[r2]) == null ? void 0 : _a6[c2],
|
|
25800
25877
|
"aria-valuemax": (_b3 = u == null ? void 0 : u[r2]) == null ? void 0 : _b3[c2],
|
|
25801
25878
|
"aria-disabled": d2 || void 0,
|
|
25802
|
-
onPointerDown: (e4) =>
|
|
25803
|
-
|
|
25879
|
+
onPointerDown: (e4) => nG(e4, r2, c2),
|
|
25880
|
+
onDoubleClick: () => W(r2, c2),
|
|
25881
|
+
onKeyDown: (e4) => aG(e4, r2, c2),
|
|
25804
25882
|
"data-testid": `matrix-cell-${r2}-${c2}`,
|
|
25805
|
-
children:
|
|
25883
|
+
children: g2 ? (0, import_jsx_runtime.jsx)("input", {
|
|
25884
|
+
ref: G,
|
|
25885
|
+
className: "bg-transparent text-center font-mono text-sm text-foreground outline-none select-text",
|
|
25886
|
+
style: {
|
|
25887
|
+
width: `${Math.max(g2.text.length + 2, 6)}ch`
|
|
25888
|
+
},
|
|
25889
|
+
value: g2.text,
|
|
25890
|
+
onChange: (e4) => R({
|
|
25891
|
+
...g2,
|
|
25892
|
+
text: e4.target.value
|
|
25893
|
+
}),
|
|
25894
|
+
onKeyDown: Z,
|
|
25895
|
+
onBlur: () => q(false),
|
|
25896
|
+
onPointerDown: (e4) => e4.stopPropagation(),
|
|
25897
|
+
"aria-label": `Edit ${_2}, ${v2}`,
|
|
25898
|
+
"data-testid": `matrix-input-${r2}-${c2}`
|
|
25899
|
+
}) : z(e3)
|
|
25806
25900
|
}, c2);
|
|
25807
25901
|
})
|
|
25808
25902
|
]
|
|
@@ -26151,13 +26245,17 @@ ${c}
|
|
|
26151
26245
|
__privateAdd(this, _a4, null);
|
|
26152
26246
|
__privateAdd(this, _o4, 0);
|
|
26153
26247
|
__privateAdd(this, _s2, "");
|
|
26248
|
+
__privateAdd(this, _c4, 1);
|
|
26154
26249
|
__privateAdd(this, _d3, () => {
|
|
26250
|
+
(globalThis.devicePixelRatio ?? 1) !== __privateGet(this, _c4) && (__privateMethod(this, _MatplotlibRenderer_instances, l_fn).call(this), __privateGet(this, _h).call(this));
|
|
26251
|
+
});
|
|
26252
|
+
__privateAdd(this, _m, () => {
|
|
26155
26253
|
let e = __privateGet(this, _a4);
|
|
26156
26254
|
if (!e) return;
|
|
26157
26255
|
let r = __privateGet(this, _e8).getContext("2d");
|
|
26158
26256
|
if (!r) return;
|
|
26159
|
-
let c = __privateGet(this, _n6), l = __privateGet(this, _r4), u =
|
|
26160
|
-
if (r.setTransform(u, 0, 0, u, 0, 0), r.clearRect(0, 0, c.width, c.height), r.drawImage(e, 0, 0, c.width, c.height), l.type === "box") {
|
|
26257
|
+
let c = __privateGet(this, _n6), l = __privateGet(this, _r4), u = __privateGet(this, _MatplotlibRenderer_instances, u_get);
|
|
26258
|
+
if (r.setTransform(u.x, 0, 0, u.y, 0, 0), r.clearRect(0, 0, c.width, c.height), r.drawImage(e, 0, 0, c.width, c.height), l.type === "box") {
|
|
26161
26259
|
let e2 = Math.min(l.start.x, l.end.x), u2 = Math.min(l.start.y, l.end.y), d = Math.abs(l.end.x - l.start.x), f = Math.abs(l.end.y - l.start.y);
|
|
26162
26260
|
r.save(), r.fillStyle = c.selectionColor, r.globalAlpha = c.selectionOpacity, r.fillRect(e2, u2, d, f), r.restore(), r.strokeStyle = c.selectionColor, r.lineWidth = c.strokeWidth, r.strokeRect(e2, u2, d, f);
|
|
26163
26261
|
}
|
|
@@ -26167,17 +26265,17 @@ ${c}
|
|
|
26167
26265
|
r.closePath(), r.save(), r.fillStyle = c.selectionColor, r.globalAlpha = c.selectionOpacity, r.fill("evenodd"), r.restore(), r.strokeStyle = c.selectionColor, r.lineWidth = c.strokeWidth, r.stroke();
|
|
26168
26266
|
}
|
|
26169
26267
|
});
|
|
26170
|
-
__privateAdd(this,
|
|
26171
|
-
cancelAnimationFrame(__privateGet(this, _i4)), __privateSet(this, _i4, requestAnimationFrame(__privateGet(this,
|
|
26268
|
+
__privateAdd(this, _h, () => {
|
|
26269
|
+
cancelAnimationFrame(__privateGet(this, _i4)), __privateSet(this, _i4, requestAnimationFrame(__privateGet(this, _m)));
|
|
26172
26270
|
});
|
|
26173
|
-
__privateAdd(this,
|
|
26271
|
+
__privateAdd(this, _g, (e) => {
|
|
26174
26272
|
let r = __privateGet(this, _e8).getBoundingClientRect(), c = __privateGet(this, _n6).width / r.width, l = __privateGet(this, _n6).height / r.height;
|
|
26175
26273
|
return {
|
|
26176
26274
|
x: (e.clientX - r.left) * c,
|
|
26177
26275
|
y: (e.clientY - r.top) * l
|
|
26178
26276
|
};
|
|
26179
26277
|
});
|
|
26180
|
-
__privateAdd(this,
|
|
26278
|
+
__privateAdd(this, __, (e, r) => {
|
|
26181
26279
|
let c = pixelToData(e, __privateGet(this, _n6)), l = pixelToData(r, __privateGet(this, _n6));
|
|
26182
26280
|
__privateGet(this, _n6).setValue({
|
|
26183
26281
|
type: "box",
|
|
@@ -26190,7 +26288,7 @@ ${c}
|
|
|
26190
26288
|
}
|
|
26191
26289
|
});
|
|
26192
26290
|
});
|
|
26193
|
-
__privateAdd(this,
|
|
26291
|
+
__privateAdd(this, _v, (e) => {
|
|
26194
26292
|
if (e.length >= 3) {
|
|
26195
26293
|
let r = e.map((e2) => {
|
|
26196
26294
|
let r2 = pixelToData(e2, __privateGet(this, _n6));
|
|
@@ -26206,19 +26304,19 @@ ${c}
|
|
|
26206
26304
|
});
|
|
26207
26305
|
}
|
|
26208
26306
|
});
|
|
26209
|
-
__privateAdd(this,
|
|
26307
|
+
__privateAdd(this, _y, () => {
|
|
26210
26308
|
__privateSet(this, _r4, {
|
|
26211
26309
|
type: "idle"
|
|
26212
26310
|
}), __privateGet(this, _n6).setValue({
|
|
26213
26311
|
has_selection: false
|
|
26214
|
-
}), __privateGet(this,
|
|
26312
|
+
}), __privateGet(this, _h).call(this);
|
|
26215
26313
|
});
|
|
26216
|
-
__privateAdd(this,
|
|
26217
|
-
__privateAdd(this,
|
|
26314
|
+
__privateAdd(this, _b2, () => __privateGet(this, _r4).type !== "idle");
|
|
26315
|
+
__privateAdd(this, _x, (e) => {
|
|
26218
26316
|
let r = __privateGet(this, _r4);
|
|
26219
26317
|
return r.type === "box" ? isPointInBox(e, r.start, r.end) : r.type === "lasso" ? pointInPolygon(e, r.points) : false;
|
|
26220
26318
|
});
|
|
26221
|
-
__privateAdd(this,
|
|
26319
|
+
__privateAdd(this, _S, (e) => {
|
|
26222
26320
|
let [r, c, l, u] = __privateGet(this, _n6).axesPixelBounds;
|
|
26223
26321
|
if (!(e.x >= r && e.x <= l && e.y >= c && e.y <= u)) {
|
|
26224
26322
|
__privateGet(this, _e8).style.cursor = "default";
|
|
@@ -26232,17 +26330,17 @@ ${c}
|
|
|
26232
26330
|
return;
|
|
26233
26331
|
}
|
|
26234
26332
|
}
|
|
26235
|
-
if (__privateGet(this,
|
|
26333
|
+
if (__privateGet(this, _b2).call(this) && __privateGet(this, _x).call(this, e)) {
|
|
26236
26334
|
__privateGet(this, _e8).style.cursor = "move";
|
|
26237
26335
|
return;
|
|
26238
26336
|
}
|
|
26239
26337
|
__privateGet(this, _e8).style.cursor = "crosshair";
|
|
26240
26338
|
});
|
|
26241
|
-
__privateAdd(this,
|
|
26339
|
+
__privateAdd(this, _C, (e) => {
|
|
26242
26340
|
if (!e || !("has_selection" in e) || !e.has_selection) {
|
|
26243
26341
|
__privateGet(this, _r4).type !== "idle" && (__privateSet(this, _r4, {
|
|
26244
26342
|
type: "idle"
|
|
26245
|
-
}), __privateGet(this,
|
|
26343
|
+
}), __privateGet(this, _h).call(this));
|
|
26246
26344
|
return;
|
|
26247
26345
|
}
|
|
26248
26346
|
if (e.type === "box") {
|
|
@@ -26267,11 +26365,11 @@ ${c}
|
|
|
26267
26365
|
}, __privateGet(this, _n6))),
|
|
26268
26366
|
action: null
|
|
26269
26367
|
});
|
|
26270
|
-
__privateGet(this,
|
|
26368
|
+
__privateGet(this, _h).call(this);
|
|
26271
26369
|
});
|
|
26272
|
-
__privateAdd(this,
|
|
26370
|
+
__privateAdd(this, _w, (e) => {
|
|
26273
26371
|
__privateGet(this, _e8).setPointerCapture(e.pointerId), __privateGet(this, _t6).focus();
|
|
26274
|
-
let r = __privateGet(this,
|
|
26372
|
+
let r = __privateGet(this, _g).call(this, e), c = __privateGet(this, _r4);
|
|
26275
26373
|
if (e.shiftKey) {
|
|
26276
26374
|
if (!isInAxes(r, __privateGet(this, _n6))) return;
|
|
26277
26375
|
__privateSet(this, _r4, {
|
|
@@ -26282,7 +26380,7 @@ ${c}
|
|
|
26282
26380
|
action: {
|
|
26283
26381
|
type: "drawing"
|
|
26284
26382
|
}
|
|
26285
|
-
}), __privateGet(this,
|
|
26383
|
+
}), __privateGet(this, _h).call(this);
|
|
26286
26384
|
return;
|
|
26287
26385
|
}
|
|
26288
26386
|
if (c.type === "box" && c.action === null) {
|
|
@@ -26303,7 +26401,7 @@ ${c}
|
|
|
26303
26401
|
return;
|
|
26304
26402
|
}
|
|
26305
26403
|
}
|
|
26306
|
-
if (__privateGet(this,
|
|
26404
|
+
if (__privateGet(this, _b2).call(this) && __privateGet(this, _x).call(this, r)) {
|
|
26307
26405
|
c.type === "box" ? __privateSet(this, _r4, {
|
|
26308
26406
|
type: "box",
|
|
26309
26407
|
start: c.start,
|
|
@@ -26322,7 +26420,7 @@ ${c}
|
|
|
26322
26420
|
});
|
|
26323
26421
|
return;
|
|
26324
26422
|
}
|
|
26325
|
-
if (__privateGet(this,
|
|
26423
|
+
if (__privateGet(this, _b2).call(this) && __privateGet(this, _y).call(this), !isInAxes(r, __privateGet(this, _n6))) return;
|
|
26326
26424
|
let l = clampToAxes(r, __privateGet(this, _n6));
|
|
26327
26425
|
__privateSet(this, _r4, {
|
|
26328
26426
|
type: "box",
|
|
@@ -26331,21 +26429,21 @@ ${c}
|
|
|
26331
26429
|
action: {
|
|
26332
26430
|
type: "drawing"
|
|
26333
26431
|
}
|
|
26334
|
-
}), __privateGet(this,
|
|
26432
|
+
}), __privateGet(this, _h).call(this);
|
|
26335
26433
|
});
|
|
26336
|
-
__privateAdd(this,
|
|
26337
|
-
let r = __privateGet(this,
|
|
26434
|
+
__privateAdd(this, _T, (e) => {
|
|
26435
|
+
let r = __privateGet(this, _g).call(this, e), c = __privateGet(this, _r4), l = __privateGet(this, _n6);
|
|
26338
26436
|
if (c.type === "idle" || c.action === null) {
|
|
26339
|
-
__privateGet(this,
|
|
26437
|
+
__privateGet(this, _S).call(this, r);
|
|
26340
26438
|
return;
|
|
26341
26439
|
}
|
|
26342
26440
|
if (c.type === "lasso" && c.action.type === "drawing") {
|
|
26343
|
-
c.points.push(clampToAxes(r, l)), __privateGet(this,
|
|
26441
|
+
c.points.push(clampToAxes(r, l)), __privateGet(this, _h).call(this);
|
|
26344
26442
|
return;
|
|
26345
26443
|
}
|
|
26346
26444
|
if (c.type === "box" && c.action.type === "drawing") {
|
|
26347
26445
|
let e2 = clampToAxes(r, l);
|
|
26348
|
-
c.end = e2, __privateGet(this,
|
|
26446
|
+
c.end = e2, __privateGet(this, _h).call(this), l.debounce || __privateGet(this, __).call(this, c.start, e2);
|
|
26349
26447
|
return;
|
|
26350
26448
|
}
|
|
26351
26449
|
if (c.type === "box" && c.action.type === "resizing") {
|
|
@@ -26353,7 +26451,7 @@ ${c}
|
|
|
26353
26451
|
c.start = u, c.end = {
|
|
26354
26452
|
x: d ?? e2.x,
|
|
26355
26453
|
y: f ?? e2.y
|
|
26356
|
-
}, __privateGet(this,
|
|
26454
|
+
}, __privateGet(this, _h).call(this), l.debounce || __privateGet(this, __).call(this, c.start, c.end);
|
|
26357
26455
|
return;
|
|
26358
26456
|
}
|
|
26359
26457
|
if (c.type === "box" && c.action.type === "dragging") {
|
|
@@ -26366,7 +26464,7 @@ ${c}
|
|
|
26366
26464
|
}, c.end = {
|
|
26367
26465
|
x: c.end.x + p,
|
|
26368
26466
|
y: c.end.y + m
|
|
26369
|
-
}, __privateGet(this,
|
|
26467
|
+
}, __privateGet(this, _h).call(this), l.debounce || __privateGet(this, __).call(this, c.start, c.end);
|
|
26370
26468
|
return;
|
|
26371
26469
|
}
|
|
26372
26470
|
if (c.type === "lasso" && c.action.type === "dragging") {
|
|
@@ -26379,77 +26477,87 @@ ${c}
|
|
|
26379
26477
|
x: c.points[e3].x + p,
|
|
26380
26478
|
y: c.points[e3].y + m
|
|
26381
26479
|
};
|
|
26382
|
-
__privateGet(this,
|
|
26480
|
+
__privateGet(this, _h).call(this), l.debounce || __privateGet(this, _v).call(this, c.points);
|
|
26383
26481
|
}
|
|
26384
26482
|
});
|
|
26385
|
-
__privateAdd(this,
|
|
26483
|
+
__privateAdd(this, _E, (e) => {
|
|
26386
26484
|
var _a5, _b3;
|
|
26387
26485
|
__privateGet(this, _e8).releasePointerCapture(e.pointerId);
|
|
26388
26486
|
let r = __privateGet(this, _r4), c = __privateGet(this, _n6);
|
|
26389
26487
|
if (r.type === "lasso" && ((_a5 = r.action) == null ? void 0 : _a5.type) === "drawing") {
|
|
26390
|
-
r.points.length >= 3 ? (r.action = null, __privateGet(this,
|
|
26488
|
+
r.points.length >= 3 ? (r.action = null, __privateGet(this, _v).call(this, r.points)) : (__privateSet(this, _r4, {
|
|
26391
26489
|
type: "idle"
|
|
26392
26490
|
}), __privateGet(this, _n6).setValue({
|
|
26393
26491
|
has_selection: false
|
|
26394
|
-
})), __privateGet(this,
|
|
26492
|
+
})), __privateGet(this, _h).call(this);
|
|
26395
26493
|
return;
|
|
26396
26494
|
}
|
|
26397
26495
|
if (r.type === "lasso" && ((_b3 = r.action) == null ? void 0 : _b3.type) === "dragging") {
|
|
26398
|
-
r.action = null, c.debounce && __privateGet(this,
|
|
26496
|
+
r.action = null, c.debounce && __privateGet(this, _v).call(this, r.points);
|
|
26399
26497
|
return;
|
|
26400
26498
|
}
|
|
26401
|
-
r.type === "box" && r.action !== null && (r.action = null, c.debounce && __privateGet(this,
|
|
26499
|
+
r.type === "box" && r.action !== null && (r.action = null, c.debounce && __privateGet(this, __).call(this, r.start, r.end));
|
|
26402
26500
|
});
|
|
26403
|
-
__privateAdd(this,
|
|
26501
|
+
__privateAdd(this, _D, (e) => {
|
|
26404
26502
|
var _a5;
|
|
26405
26503
|
if (e.key === "Escape") {
|
|
26406
26504
|
let e2 = __privateGet(this, _r4);
|
|
26407
26505
|
if (e2.type === "idle") return;
|
|
26408
26506
|
((_a5 = e2.action) == null ? void 0 : _a5.type) === "drawing" ? (__privateSet(this, _r4, {
|
|
26409
26507
|
type: "idle"
|
|
26410
|
-
}), __privateGet(this,
|
|
26508
|
+
}), __privateGet(this, _h).call(this)) : __privateGet(this, _y).call(this);
|
|
26411
26509
|
}
|
|
26412
26510
|
});
|
|
26413
26511
|
__privateSet(this, _t6, e), __privateSet(this, _n6, r.state), e.tabIndex = -1, e.role = "application", e.className = "relative inline-block select-none outline-hidden";
|
|
26414
26512
|
let c = document.createElement("canvas");
|
|
26415
|
-
c.className = "block cursor-crosshair", __privateMethod(this, _MatplotlibRenderer_instances,
|
|
26513
|
+
c.className = "block cursor-crosshair", __privateMethod(this, _MatplotlibRenderer_instances, l_fn).call(this, c), c.style.touchAction = "none", e.append(c), __privateSet(this, _e8, c), c.addEventListener("pointerdown", __privateGet(this, _w), {
|
|
26416
26514
|
signal: r.signal
|
|
26417
|
-
}), c.addEventListener("pointermove", __privateGet(this,
|
|
26515
|
+
}), c.addEventListener("pointermove", __privateGet(this, _T), {
|
|
26418
26516
|
signal: r.signal
|
|
26419
|
-
}), c.addEventListener("pointerup", __privateGet(this,
|
|
26517
|
+
}), c.addEventListener("pointerup", __privateGet(this, _E), {
|
|
26420
26518
|
signal: r.signal
|
|
26421
|
-
}), e.addEventListener("keydown", __privateGet(this,
|
|
26519
|
+
}), e.addEventListener("keydown", __privateGet(this, _D), {
|
|
26422
26520
|
signal: r.signal
|
|
26423
|
-
}), __privateMethod(this, _MatplotlibRenderer_instances,
|
|
26521
|
+
}), __privateMethod(this, _MatplotlibRenderer_instances, f_fn).call(this, r.signal), window.addEventListener("resize", __privateGet(this, _d3), {
|
|
26522
|
+
signal: r.signal
|
|
26523
|
+
}), r.signal.addEventListener("abort", () => {
|
|
26424
26524
|
cancelAnimationFrame(__privateGet(this, _i4)), __privateGet(this, _e8).remove();
|
|
26425
|
-
}), __privateMethod(this, _MatplotlibRenderer_instances,
|
|
26525
|
+
}), __privateMethod(this, _MatplotlibRenderer_instances, p_fn).call(this, __privateGet(this, _n6).chartBase64), __privateGet(this, _C).call(this, __privateGet(this, _n6).value);
|
|
26426
26526
|
}
|
|
26427
26527
|
update(e) {
|
|
26428
26528
|
let r = __privateGet(this, _n6);
|
|
26429
26529
|
__privateSet(this, _n6, e);
|
|
26430
26530
|
let c = false;
|
|
26431
|
-
if ((e.width !== r.width || e.height !== r.height) && (__privateMethod(this, _MatplotlibRenderer_instances,
|
|
26432
|
-
__privateMethod(this, _MatplotlibRenderer_instances,
|
|
26531
|
+
if ((e.width !== r.width || e.height !== r.height) && (__privateMethod(this, _MatplotlibRenderer_instances, l_fn).call(this), c = true), e.chartBase64 !== __privateGet(this, _s2)) {
|
|
26532
|
+
__privateMethod(this, _MatplotlibRenderer_instances, p_fn).call(this, e.chartBase64), __privateGet(this, _C).call(this, e.value);
|
|
26433
26533
|
return;
|
|
26434
26534
|
}
|
|
26435
26535
|
let l = __privateGet(this, _r4).type !== "idle" && __privateGet(this, _r4).action !== null;
|
|
26436
26536
|
if (e.value !== r.value && !l) {
|
|
26437
|
-
__privateGet(this,
|
|
26537
|
+
__privateGet(this, _C).call(this, e.value);
|
|
26438
26538
|
return;
|
|
26439
26539
|
}
|
|
26440
|
-
(c || e.selectionColor !== r.selectionColor || e.selectionOpacity !== r.selectionOpacity || e.strokeWidth !== r.strokeWidth) && __privateGet(this,
|
|
26540
|
+
(c || e.selectionColor !== r.selectionColor || e.selectionOpacity !== r.selectionOpacity || e.strokeWidth !== r.strokeWidth) && __privateGet(this, _m).call(this);
|
|
26441
26541
|
}
|
|
26442
|
-
}, _e8 = new WeakMap(), _t6 = new WeakMap(), _n6 = new WeakMap(), _r4 = new WeakMap(), _i4 = new WeakMap(), _a4 = new WeakMap(), _o4 = new WeakMap(), _s2 = new WeakMap(), _MatplotlibRenderer_instances = new WeakSet(),
|
|
26443
|
-
let r = globalThis.devicePixelRatio ?? 1
|
|
26542
|
+
}, _e8 = new WeakMap(), _t6 = new WeakMap(), _n6 = new WeakMap(), _r4 = new WeakMap(), _i4 = new WeakMap(), _a4 = new WeakMap(), _o4 = new WeakMap(), _s2 = new WeakMap(), _c4 = new WeakMap(), _MatplotlibRenderer_instances = new WeakSet(), l_fn = function(e = __privateGet(this, _e8)) {
|
|
26543
|
+
let r = globalThis.devicePixelRatio ?? 1;
|
|
26544
|
+
__privateSet(this, _c4, r);
|
|
26545
|
+
let { width: c, height: l } = __privateGet(this, _n6);
|
|
26444
26546
|
e.width = c * r, e.height = l * r, e.style.width = `${c}px`, e.style.maxWidth = "100%", e.style.height = "auto", e.style.aspectRatio = `${c} / ${l}`;
|
|
26445
|
-
},
|
|
26547
|
+
}, u_get = function() {
|
|
26548
|
+
let { width: e, height: r } = __privateGet(this, _n6), c = globalThis.devicePixelRatio ?? 1;
|
|
26549
|
+
return {
|
|
26550
|
+
x: e > 0 ? __privateGet(this, _e8).width / e : c,
|
|
26551
|
+
y: r > 0 ? __privateGet(this, _e8).height / r : c
|
|
26552
|
+
};
|
|
26553
|
+
}, _d3 = new WeakMap(), f_fn = function(e) {
|
|
26446
26554
|
e.aborted || matchMedia(`(resolution: ${globalThis.devicePixelRatio ?? 1}dppx)`).addEventListener("change", () => {
|
|
26447
|
-
|
|
26555
|
+
__privateGet(this, _d3).call(this), __privateMethod(this, _MatplotlibRenderer_instances, f_fn).call(this, e);
|
|
26448
26556
|
}, {
|
|
26449
26557
|
once: true,
|
|
26450
26558
|
signal: e
|
|
26451
26559
|
});
|
|
26452
|
-
},
|
|
26560
|
+
}, p_fn = function(e) {
|
|
26453
26561
|
__privateSet(this, _s2, e), __privateWrapper(this, _o4)._++;
|
|
26454
26562
|
let r = __privateGet(this, _o4);
|
|
26455
26563
|
__privateSet(this, _r4, {
|
|
@@ -26457,14 +26565,14 @@ ${c}
|
|
|
26457
26565
|
}), __privateSet(this, _a4, null);
|
|
26458
26566
|
let c = __privateGet(this, _e8).getContext("2d");
|
|
26459
26567
|
if (c) {
|
|
26460
|
-
let e2 =
|
|
26461
|
-
c.setTransform(e2, 0, 0, e2, 0, 0), c.clearRect(0, 0, __privateGet(this, _n6).width, __privateGet(this, _n6).height);
|
|
26568
|
+
let e2 = __privateGet(this, _MatplotlibRenderer_instances, u_get);
|
|
26569
|
+
c.setTransform(e2.x, 0, 0, e2.y, 0, 0), c.clearRect(0, 0, __privateGet(this, _n6).width, __privateGet(this, _n6).height);
|
|
26462
26570
|
}
|
|
26463
26571
|
let l = new Image();
|
|
26464
26572
|
l.onload = () => {
|
|
26465
|
-
r === __privateGet(this, _o4) && (__privateSet(this, _a4, l), __privateGet(this,
|
|
26573
|
+
r === __privateGet(this, _o4) && (__privateSet(this, _a4, l), __privateGet(this, _m).call(this));
|
|
26466
26574
|
}, l.src = e;
|
|
26467
|
-
},
|
|
26575
|
+
}, _m = new WeakMap(), _h = new WeakMap(), _g = new WeakMap(), __ = new WeakMap(), _v = new WeakMap(), _y = new WeakMap(), _b2 = new WeakMap(), _x = new WeakMap(), _S = new WeakMap(), _C = new WeakMap(), _w = new WeakMap(), _T = new WeakMap(), _E = new WeakMap(), _D = new WeakMap(), _g2), import_compiler_runtime$36 = require_compiler_runtime(), MatplotlibPlugin = class {
|
|
26468
26576
|
constructor() {
|
|
26469
26577
|
__publicField(this, "tagName", "marimo-matplotlib");
|
|
26470
26578
|
__publicField(this, "validator", object({
|
|
@@ -27377,8 +27485,8 @@ ${c}
|
|
|
27377
27485
|
points: extractSunburstPoints(e2.points)
|
|
27378
27486
|
}));
|
|
27379
27487
|
}, r[29] = u, r[30] = G);
|
|
27380
|
-
let q = useEvent_default(G),
|
|
27381
|
-
r[31] === u ?
|
|
27488
|
+
let q = useEvent_default(G), tG;
|
|
27489
|
+
r[31] === u ? tG = r[32] : (tG = (e2) => {
|
|
27382
27490
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
27383
27491
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
27384
27492
|
u((e3) => ({
|
|
@@ -27389,9 +27497,9 @@ ${c}
|
|
|
27389
27497
|
points: r2,
|
|
27390
27498
|
indices: c2
|
|
27391
27499
|
}));
|
|
27392
|
-
}, r[31] = u, r[32] =
|
|
27393
|
-
let Z = useEvent_default(
|
|
27394
|
-
r[33] === u ?
|
|
27500
|
+
}, r[31] = u, r[32] = tG);
|
|
27501
|
+
let Z = useEvent_default(tG), nG;
|
|
27502
|
+
r[33] === u ? nG = r[34] : (nG = (e2) => {
|
|
27395
27503
|
e2 && u((r2) => ({
|
|
27396
27504
|
...r2,
|
|
27397
27505
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -27400,9 +27508,9 @@ ${c}
|
|
|
27400
27508
|
range: e2.range,
|
|
27401
27509
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
27402
27510
|
}));
|
|
27403
|
-
}, r[33] = u, r[34] =
|
|
27404
|
-
let
|
|
27405
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !==
|
|
27511
|
+
}, r[33] = u, r[34] = nG);
|
|
27512
|
+
let rG = useEvent_default(nG), iG = m.frames ?? void 0, aG = useEvent_default(_temp3$3), oG;
|
|
27513
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !== rG || r[43] !== iG || r[44] !== aG || r[45] !== R ? (oG = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
27406
27514
|
...m,
|
|
27407
27515
|
layout: h,
|
|
27408
27516
|
onRelayout: R,
|
|
@@ -27411,12 +27519,12 @@ ${c}
|
|
|
27411
27519
|
onSunburstClick: q,
|
|
27412
27520
|
config: L,
|
|
27413
27521
|
onClick: Z,
|
|
27414
|
-
onSelected:
|
|
27522
|
+
onSelected: rG,
|
|
27415
27523
|
className: "w-full",
|
|
27416
27524
|
useResizeHandler: true,
|
|
27417
|
-
frames:
|
|
27418
|
-
onError:
|
|
27419
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] =
|
|
27525
|
+
frames: iG,
|
|
27526
|
+
onError: aG
|
|
27527
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] = rG, r[43] = iG, r[44] = aG, r[45] = R, r[46] = oG) : oG = r[46], oG;
|
|
27420
27528
|
});
|
|
27421
27529
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
27422
27530
|
function _temp$8(e) {
|
|
@@ -27548,8 +27656,8 @@ ${c}
|
|
|
27548
27656
|
c[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = cn("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60", "data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"), c[17] = G) : G = c[17];
|
|
27549
27657
|
let q;
|
|
27550
27658
|
c[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = cn("absolute bg-blue-500 dark:bg-primary", "data-[orientation=horizontal]:h-full", "data-[orientation=vertical]:w-full", "data-disabled:opacity-50", "hover:cursor-grab active:cursor-grabbing"), c[18] = q) : q = c[18];
|
|
27551
|
-
let
|
|
27552
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
27659
|
+
let tG;
|
|
27660
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (tG = (0, import_jsx_runtime.jsx)(Track, {
|
|
27553
27661
|
ref: E,
|
|
27554
27662
|
"data-testid": "track",
|
|
27555
27663
|
className: G,
|
|
@@ -27560,7 +27668,7 @@ ${c}
|
|
|
27560
27668
|
onPointerMove: z,
|
|
27561
27669
|
onPointerUp: H
|
|
27562
27670
|
})
|
|
27563
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
27671
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = tG) : tG = c[22];
|
|
27564
27672
|
let Z;
|
|
27565
27673
|
c[23] !== p.setFalse || c[24] !== p.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27566
27674
|
asChild: true,
|
|
@@ -27573,29 +27681,29 @@ ${c}
|
|
|
27573
27681
|
onMouseLeave: p.setFalse
|
|
27574
27682
|
})
|
|
27575
27683
|
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] = Z) : Z = c[25];
|
|
27576
|
-
let
|
|
27577
|
-
c[26] !== m || c[27] !== u.value || c[28] !== d ? (
|
|
27684
|
+
let nG;
|
|
27685
|
+
c[26] !== m || c[27] !== u.value || c[28] !== d ? (nG = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27578
27686
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
27579
27687
|
locale: m
|
|
27580
27688
|
})
|
|
27581
|
-
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] =
|
|
27582
|
-
let
|
|
27583
|
-
c[30] ===
|
|
27584
|
-
children:
|
|
27585
|
-
}), c[30] =
|
|
27586
|
-
let
|
|
27587
|
-
c[32] !== f || c[33] !== Z || c[34] !==
|
|
27689
|
+
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] = nG) : nG = c[29];
|
|
27690
|
+
let rG;
|
|
27691
|
+
c[30] === nG ? rG = c[31] : (rG = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27692
|
+
children: nG
|
|
27693
|
+
}), c[30] = nG, c[31] = rG);
|
|
27694
|
+
let iG;
|
|
27695
|
+
c[32] !== f || c[33] !== Z || c[34] !== rG ? (iG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27588
27696
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27589
27697
|
delayDuration: 0,
|
|
27590
27698
|
open: f,
|
|
27591
27699
|
children: [
|
|
27592
27700
|
Z,
|
|
27593
|
-
|
|
27701
|
+
rG
|
|
27594
27702
|
]
|
|
27595
27703
|
})
|
|
27596
|
-
}), c[32] = f, c[33] = Z, c[34] =
|
|
27597
|
-
let
|
|
27598
|
-
c[36] !== p.setFalse || c[37] !== p.setTrue ? (
|
|
27704
|
+
}), c[32] = f, c[33] = Z, c[34] = rG, c[35] = iG) : iG = c[35];
|
|
27705
|
+
let aG;
|
|
27706
|
+
c[36] !== p.setFalse || c[37] !== p.setTrue ? (aG = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27599
27707
|
asChild: true,
|
|
27600
27708
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27601
27709
|
"data-testid": "thumb",
|
|
@@ -27605,39 +27713,39 @@ ${c}
|
|
|
27605
27713
|
onMouseEnter: p.setTrue,
|
|
27606
27714
|
onMouseLeave: p.setFalse
|
|
27607
27715
|
})
|
|
27608
|
-
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] =
|
|
27609
|
-
let
|
|
27610
|
-
c[39] !== m || c[40] !== u.value || c[41] !== d ? (
|
|
27716
|
+
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] = aG) : aG = c[38];
|
|
27717
|
+
let oG;
|
|
27718
|
+
c[39] !== m || c[40] !== u.value || c[41] !== d ? (oG = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27611
27719
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
27612
27720
|
locale: m
|
|
27613
27721
|
})
|
|
27614
|
-
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] =
|
|
27615
|
-
let
|
|
27616
|
-
c[43] ===
|
|
27617
|
-
children:
|
|
27618
|
-
}), c[43] =
|
|
27619
|
-
let
|
|
27620
|
-
c[45] !== f || c[46] !==
|
|
27722
|
+
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] = oG) : oG = c[42];
|
|
27723
|
+
let sG;
|
|
27724
|
+
c[43] === oG ? sG = c[44] : (sG = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27725
|
+
children: oG
|
|
27726
|
+
}), c[43] = oG, c[44] = sG);
|
|
27727
|
+
let cG;
|
|
27728
|
+
c[45] !== f || c[46] !== aG || c[47] !== sG ? (cG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27621
27729
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27622
27730
|
delayDuration: 0,
|
|
27623
27731
|
open: f,
|
|
27624
27732
|
children: [
|
|
27625
|
-
|
|
27626
|
-
|
|
27733
|
+
aG,
|
|
27734
|
+
sG
|
|
27627
27735
|
]
|
|
27628
27736
|
})
|
|
27629
|
-
}), c[45] = f, c[46] =
|
|
27630
|
-
let
|
|
27631
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
27737
|
+
}), c[45] = f, c[46] = aG, c[47] = sG, c[48] = cG) : cG = c[48];
|
|
27738
|
+
let lG;
|
|
27739
|
+
return c[49] !== M || c[50] !== u || c[51] !== tG || c[52] !== iG || c[53] !== cG || c[54] !== W ? (lG = (0, import_jsx_runtime.jsxs)(Root, {
|
|
27632
27740
|
ref: M,
|
|
27633
27741
|
className: W,
|
|
27634
27742
|
...u,
|
|
27635
27743
|
children: [
|
|
27636
|
-
|
|
27637
|
-
|
|
27638
|
-
|
|
27744
|
+
tG,
|
|
27745
|
+
iG,
|
|
27746
|
+
cG
|
|
27639
27747
|
]
|
|
27640
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
27748
|
+
}), c[49] = M, c[50] = u, c[51] = tG, c[52] = iG, c[53] = cG, c[54] = W, c[55] = lG) : lG = c[55], lG;
|
|
27641
27749
|
});
|
|
27642
27750
|
RangeSlider.displayName = Root.displayName;
|
|
27643
27751
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -27688,14 +27796,14 @@ ${c}
|
|
|
27688
27796
|
}, q = (e2) => {
|
|
27689
27797
|
m && l(e2);
|
|
27690
27798
|
}, r[10] = m, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27691
|
-
let
|
|
27692
|
-
r[14] !== m || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
27799
|
+
let tG, Z;
|
|
27800
|
+
r[14] !== m || r[15] !== T || r[16] !== l || r[17] !== u ? (tG = () => {
|
|
27693
27801
|
m && !dequal(T, u) && l(T);
|
|
27694
27802
|
}, Z = () => {
|
|
27695
27803
|
m && !dequal(T, u) && l(T);
|
|
27696
|
-
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
27697
|
-
let
|
|
27698
|
-
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] !==
|
|
27804
|
+
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = tG, r[19] = Z) : (tG = r[18], Z = r[19]);
|
|
27805
|
+
let nG;
|
|
27806
|
+
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] !== tG || r[31] !== Z || r[32] !== b ? (nG = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
27699
27807
|
id: S,
|
|
27700
27808
|
className: W,
|
|
27701
27809
|
value: T,
|
|
@@ -27706,36 +27814,36 @@ ${c}
|
|
|
27706
27814
|
disabled: y,
|
|
27707
27815
|
onValueChange: G,
|
|
27708
27816
|
onValueCommit: q,
|
|
27709
|
-
onPointerUp:
|
|
27817
|
+
onPointerUp: tG,
|
|
27710
27818
|
onMouseUp: Z,
|
|
27711
27819
|
valueMap: b
|
|
27712
|
-
}), 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] =
|
|
27713
|
-
let
|
|
27714
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
27820
|
+
}), 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] = tG, r[31] = Z, r[32] = b, r[33] = nG) : nG = r[33];
|
|
27821
|
+
let rG;
|
|
27822
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (rG = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
27715
27823
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
27716
27824
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
27717
27825
|
locale: w
|
|
27718
27826
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
27719
27827
|
locale: w
|
|
27720
27828
|
})}`
|
|
27721
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
27722
|
-
let
|
|
27723
|
-
r[39] !==
|
|
27829
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = rG) : rG = r[38];
|
|
27830
|
+
let iG;
|
|
27831
|
+
r[39] !== nG || r[40] !== rG || r[41] !== B ? (iG = (0, import_jsx_runtime.jsxs)("div", {
|
|
27724
27832
|
className: B,
|
|
27725
27833
|
children: [
|
|
27726
|
-
|
|
27727
|
-
|
|
27834
|
+
nG,
|
|
27835
|
+
rG
|
|
27728
27836
|
]
|
|
27729
|
-
}), r[39] =
|
|
27730
|
-
let
|
|
27731
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
27837
|
+
}), r[39] = nG, r[40] = rG, r[41] = B, r[42] = iG) : iG = r[42];
|
|
27838
|
+
let aG;
|
|
27839
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== iG || r[47] !== M || r[48] !== L ? (aG = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
27732
27840
|
label: c,
|
|
27733
27841
|
id: S,
|
|
27734
27842
|
align: M,
|
|
27735
27843
|
className: L,
|
|
27736
27844
|
fullWidth: v,
|
|
27737
|
-
children:
|
|
27738
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
27845
|
+
children: iG
|
|
27846
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = iG, r[47] = M, r[48] = L, r[49] = aG) : aG = r[49], aG;
|
|
27739
27847
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
27740
27848
|
r.exports = u;
|
|
27741
27849
|
var c = {
|
|
@@ -28441,7 +28549,7 @@ ${c}
|
|
|
28441
28549
|
return true;
|
|
28442
28550
|
}
|
|
28443
28551
|
}
|
|
28444
|
-
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-
|
|
28552
|
+
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-xrHju6oo.js")), VegaPlugin = class {
|
|
28445
28553
|
constructor() {
|
|
28446
28554
|
__publicField(this, "tagName", "marimo-vega");
|
|
28447
28555
|
__publicField(this, "validator", object({
|
|
@@ -28580,7 +28688,7 @@ ${c}
|
|
|
28580
28688
|
children: e.children
|
|
28581
28689
|
});
|
|
28582
28690
|
}
|
|
28583
|
-
}, LazySlidesComponent$1 = import_react.lazy(() => import("./swiper-component-
|
|
28691
|
+
}, LazySlidesComponent$1 = import_react.lazy(() => import("./swiper-component-UYicacis.js"));
|
|
28584
28692
|
const DownloadPlugin = createPlugin("marimo-download").withData(object({
|
|
28585
28693
|
data: string(),
|
|
28586
28694
|
disabled: boolean().default(false),
|
|
@@ -31025,7 +31133,7 @@ ${c}
|
|
|
31025
31133
|
areRegExpsEqual: H,
|
|
31026
31134
|
areSetsEqual: W,
|
|
31027
31135
|
createIsNestedEqual: r2
|
|
31028
|
-
}),
|
|
31136
|
+
}), tG = Object.freeze({
|
|
31029
31137
|
areArraysEqual: O,
|
|
31030
31138
|
areDatesEqual: j,
|
|
31031
31139
|
areMapsEqual: I,
|
|
@@ -31034,39 +31142,39 @@ ${c}
|
|
|
31034
31142
|
areSetsEqual: G,
|
|
31035
31143
|
createIsNestedEqual: r2
|
|
31036
31144
|
}), Z = T(q);
|
|
31037
|
-
function
|
|
31145
|
+
function nG(e3, r3) {
|
|
31038
31146
|
return Z(e3, r3, void 0);
|
|
31039
31147
|
}
|
|
31040
|
-
var
|
|
31148
|
+
var rG = T(l(q, {
|
|
31041
31149
|
createIsNestedEqual: function() {
|
|
31042
31150
|
return f;
|
|
31043
31151
|
}
|
|
31044
31152
|
}));
|
|
31045
|
-
function
|
|
31046
|
-
return
|
|
31153
|
+
function iG(e3, r3) {
|
|
31154
|
+
return rG(e3, r3, void 0);
|
|
31047
31155
|
}
|
|
31048
|
-
var
|
|
31049
|
-
function
|
|
31050
|
-
return
|
|
31156
|
+
var aG = T(tG);
|
|
31157
|
+
function oG(e3, r3) {
|
|
31158
|
+
return aG(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
31051
31159
|
}
|
|
31052
|
-
var
|
|
31160
|
+
var sG = T(l(tG, {
|
|
31053
31161
|
createIsNestedEqual: function() {
|
|
31054
31162
|
return f;
|
|
31055
31163
|
}
|
|
31056
31164
|
}));
|
|
31057
|
-
function
|
|
31058
|
-
return
|
|
31165
|
+
function cG(e3, r3) {
|
|
31166
|
+
return sG(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
31059
31167
|
}
|
|
31060
|
-
function
|
|
31168
|
+
function lG(e3) {
|
|
31061
31169
|
return T(l(q, e3(q)));
|
|
31062
31170
|
}
|
|
31063
|
-
function
|
|
31064
|
-
var r3 = T(l(
|
|
31171
|
+
function uG(e3) {
|
|
31172
|
+
var r3 = T(l(tG, e3(tG)));
|
|
31065
31173
|
return (function(e4, c2, l2) {
|
|
31066
31174
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
31067
31175
|
});
|
|
31068
31176
|
}
|
|
31069
|
-
e2.circularDeepEqual =
|
|
31177
|
+
e2.circularDeepEqual = oG, e2.circularShallowEqual = cG, e2.createCustomCircularEqual = uG, e2.createCustomEqual = lG, e2.deepEqual = nG, e2.sameValueZeroEqual = f, e2.shallowEqual = iG, Object.defineProperty(e2, "__esModule", {
|
|
31070
31178
|
value: true
|
|
31071
31179
|
});
|
|
31072
31180
|
}));
|
|
@@ -31092,7 +31200,7 @@ ${c}
|
|
|
31092
31200
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
31093
31201
|
Object.defineProperty(e, "__esModule", {
|
|
31094
31202
|
value: true
|
|
31095
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
31203
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = gG, 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 = cG, e.setTopLeft = uG, e.setTransform = lG, e.sortLayoutItems = dG, e.sortLayoutItemsByColRow = pG, e.sortLayoutItemsByRowCol = fG, e.synchronizeLayoutWithChildren = mG, e.validateLayout = hG, e.withLayoutItem = v;
|
|
31096
31204
|
var r = require_fast_equals(), c = l(require_react());
|
|
31097
31205
|
function l(e2) {
|
|
31098
31206
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -31197,7 +31305,7 @@ ${c}
|
|
|
31197
31305
|
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);
|
|
31198
31306
|
}
|
|
31199
31307
|
function T(e2, r2, c2, l2) {
|
|
31200
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
31308
|
+
let u2 = B(e2), d2 = h(u2), f2 = dG(e2, r2), p2 = Array(e2.length);
|
|
31201
31309
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
31202
31310
|
let h3 = y(f2[m2]);
|
|
31203
31311
|
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;
|
|
@@ -31255,7 +31363,7 @@ ${c}
|
|
|
31255
31363
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
31256
31364
|
let h2 = r2.x, _2 = r2.y;
|
|
31257
31365
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
31258
|
-
let v2 =
|
|
31366
|
+
let v2 = dG(e2, f2);
|
|
31259
31367
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
31260
31368
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
31261
31369
|
if (b2 && m2) return g(e2);
|
|
@@ -31289,15 +31397,15 @@ ${c}
|
|
|
31289
31397
|
function G(e2) {
|
|
31290
31398
|
return e2 * 100 + "%";
|
|
31291
31399
|
}
|
|
31292
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
31400
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, tG = (e2, r2, c2) => e2 < 0 ? r2 : c2, Z = (e2) => Math.max(0, e2), nG = (e2) => Math.max(0, e2), rG = (e2, r2, c2) => {
|
|
31293
31401
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
31294
31402
|
return {
|
|
31295
31403
|
left: l2,
|
|
31296
31404
|
width: d2,
|
|
31297
|
-
height:
|
|
31298
|
-
top:
|
|
31405
|
+
height: tG(f2, e2.height, u2),
|
|
31406
|
+
top: nG(f2)
|
|
31299
31407
|
};
|
|
31300
|
-
},
|
|
31408
|
+
}, iG = (e2, r2, c2) => {
|
|
31301
31409
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31302
31410
|
return {
|
|
31303
31411
|
top: l2,
|
|
@@ -31305,45 +31413,45 @@ ${c}
|
|
|
31305
31413
|
width: q(e2.left, e2.width, f2, c2),
|
|
31306
31414
|
left: Z(u2)
|
|
31307
31415
|
};
|
|
31308
|
-
},
|
|
31416
|
+
}, aG = (e2, r2, c2) => {
|
|
31309
31417
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
31310
31418
|
return {
|
|
31311
31419
|
height: u2,
|
|
31312
31420
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
31313
|
-
top:
|
|
31421
|
+
top: nG(l2),
|
|
31314
31422
|
left: Z(f2)
|
|
31315
31423
|
};
|
|
31316
|
-
},
|
|
31424
|
+
}, oG = (e2, r2, c2) => {
|
|
31317
31425
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31318
31426
|
return {
|
|
31319
31427
|
width: f2,
|
|
31320
31428
|
left: u2,
|
|
31321
|
-
height:
|
|
31322
|
-
top:
|
|
31429
|
+
height: tG(l2, e2.height, d2),
|
|
31430
|
+
top: nG(l2)
|
|
31323
31431
|
};
|
|
31324
|
-
},
|
|
31325
|
-
n:
|
|
31432
|
+
}, sG = {
|
|
31433
|
+
n: rG,
|
|
31326
31434
|
ne: function() {
|
|
31327
|
-
return
|
|
31435
|
+
return rG(arguments.length <= 0 ? void 0 : arguments[0], iG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31328
31436
|
},
|
|
31329
|
-
e:
|
|
31437
|
+
e: iG,
|
|
31330
31438
|
se: function() {
|
|
31331
|
-
return
|
|
31439
|
+
return oG(arguments.length <= 0 ? void 0 : arguments[0], iG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31332
31440
|
},
|
|
31333
|
-
s:
|
|
31441
|
+
s: oG,
|
|
31334
31442
|
sw: function() {
|
|
31335
|
-
return
|
|
31443
|
+
return oG(arguments.length <= 0 ? void 0 : arguments[0], aG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31336
31444
|
},
|
|
31337
|
-
w:
|
|
31445
|
+
w: aG,
|
|
31338
31446
|
nw: function() {
|
|
31339
|
-
return
|
|
31447
|
+
return rG(arguments.length <= 0 ? void 0 : arguments[0], aG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31340
31448
|
}
|
|
31341
31449
|
};
|
|
31342
|
-
function
|
|
31343
|
-
let u2 =
|
|
31450
|
+
function cG(e2, r2, c2, l2) {
|
|
31451
|
+
let u2 = sG[e2];
|
|
31344
31452
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
31345
31453
|
}
|
|
31346
|
-
function
|
|
31454
|
+
function lG(e2) {
|
|
31347
31455
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
31348
31456
|
return {
|
|
31349
31457
|
transform: d2,
|
|
@@ -31356,7 +31464,7 @@ ${c}
|
|
|
31356
31464
|
position: "absolute"
|
|
31357
31465
|
};
|
|
31358
31466
|
}
|
|
31359
|
-
function
|
|
31467
|
+
function uG(e2) {
|
|
31360
31468
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
31361
31469
|
return {
|
|
31362
31470
|
top: `${r2}px`,
|
|
@@ -31366,20 +31474,20 @@ ${c}
|
|
|
31366
31474
|
position: "absolute"
|
|
31367
31475
|
};
|
|
31368
31476
|
}
|
|
31369
|
-
function
|
|
31370
|
-
return r2 === "horizontal" ?
|
|
31477
|
+
function dG(e2, r2) {
|
|
31478
|
+
return r2 === "horizontal" ? pG(e2) : r2 === "vertical" ? fG(e2) : e2;
|
|
31371
31479
|
}
|
|
31372
|
-
function
|
|
31480
|
+
function fG(e2) {
|
|
31373
31481
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31374
31482
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
31375
31483
|
});
|
|
31376
31484
|
}
|
|
31377
|
-
function
|
|
31485
|
+
function pG(e2) {
|
|
31378
31486
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31379
31487
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
31380
31488
|
});
|
|
31381
31489
|
}
|
|
31382
|
-
function
|
|
31490
|
+
function mG(e2, r2, l2, u2, f2) {
|
|
31383
31491
|
e2 || (e2 = []);
|
|
31384
31492
|
let p2 = [];
|
|
31385
31493
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -31400,7 +31508,7 @@ ${c}
|
|
|
31400
31508
|
});
|
|
31401
31509
|
return f2 ? m2 : T(m2, u2, l2);
|
|
31402
31510
|
}
|
|
31403
|
-
function
|
|
31511
|
+
function hG(e2) {
|
|
31404
31512
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
31405
31513
|
"x",
|
|
31406
31514
|
"y",
|
|
@@ -31417,7 +31525,7 @@ ${c}
|
|
|
31417
31525
|
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})`);
|
|
31418
31526
|
}
|
|
31419
31527
|
}
|
|
31420
|
-
function
|
|
31528
|
+
function gG(e2) {
|
|
31421
31529
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
31422
31530
|
return r2 === false ? null : c2;
|
|
31423
31531
|
}
|
|
@@ -31874,8 +31982,8 @@ ${c}
|
|
|
31874
31982
|
}
|
|
31875
31983
|
}
|
|
31876
31984
|
findDOMNode() {
|
|
31877
|
-
var _a5, _b3,
|
|
31878
|
-
return ((_a5 = this.props) == null ? void 0 : _a5.nodeRef) ? (
|
|
31985
|
+
var _a5, _b3, _c5;
|
|
31986
|
+
return ((_a5 = this.props) == null ? void 0 : _a5.nodeRef) ? (_c5 = (_b3 = this.props) == null ? void 0 : _b3.nodeRef) == null ? void 0 : _c5.current : l.default.findDOMNode(this);
|
|
31879
31987
|
}
|
|
31880
31988
|
render() {
|
|
31881
31989
|
return r.cloneElement(r.Children.only(this.props.children), {
|
|
@@ -34222,7 +34330,7 @@ ${c}
|
|
|
34222
34330
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
34223
34331
|
let E = useIsDragging(), O, j;
|
|
34224
34332
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
34225
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
34333
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, tG, Z, nG, rG, iG, aG, oG, sG, cG, lG, uG, dG, fG, pG, mG, hG, gG;
|
|
34226
34334
|
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) {
|
|
34227
34335
|
let e2 = Maps.keyBy(c.cells, _temp2$3), p2;
|
|
34228
34336
|
r[47] !== c || r[48] !== l ? (p2 = (e3) => (r2) => {
|
|
@@ -34241,23 +34349,23 @@ ${c}
|
|
|
34241
34349
|
});
|
|
34242
34350
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
34243
34351
|
let y2 = v2;
|
|
34244
|
-
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,
|
|
34352
|
+
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, pG = "lg", r[58] === c.cells ? mG = r[59] : (mG = {
|
|
34245
34353
|
lg: c.cells
|
|
34246
|
-
}, r[58] = c.cells, r[59] =
|
|
34354
|
+
}, r[58] = c.cells, r[59] = mG), hG = L, gG = S, R = false;
|
|
34247
34355
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
34248
34356
|
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 ? [
|
|
34249
34357
|
20,
|
|
34250
34358
|
20
|
|
34251
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
34359
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, tG = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (Z = (e3) => {
|
|
34252
34360
|
f || l({
|
|
34253
34361
|
...c,
|
|
34254
34362
|
cells: e3
|
|
34255
34363
|
});
|
|
34256
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ?
|
|
34364
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ? nG = r[71] : (nG = g ? {
|
|
34257
34365
|
i: g.i,
|
|
34258
34366
|
w: g.w || 2,
|
|
34259
34367
|
h: g.h || 2
|
|
34260
|
-
} : void 0, r[70] = g, r[71] =
|
|
34368
|
+
} : void 0, r[70] = g, r[71] = nG), r[72] !== O || r[73] !== c || r[74] !== l ? (rG = (e3, r2, u2) => {
|
|
34261
34369
|
O.onDragStop(), r2 && l({
|
|
34262
34370
|
...c,
|
|
34263
34371
|
cells: [
|
|
@@ -34265,15 +34373,15 @@ ${c}
|
|
|
34265
34373
|
r2
|
|
34266
34374
|
]
|
|
34267
34375
|
});
|
|
34268
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
34376
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = rG) : rG = r[75], r[76] === O ? (iG = r[77], aG = r[78], oG = r[79]) : (iG = (e3, r2, c2, l2, u2) => {
|
|
34269
34377
|
O.onDragStart(u2);
|
|
34270
|
-
},
|
|
34378
|
+
}, aG = (e3, r2, c2, l2, u2) => {
|
|
34271
34379
|
O.onDragMove(u2);
|
|
34272
|
-
},
|
|
34380
|
+
}, oG = () => {
|
|
34273
34381
|
O.onDragStop();
|
|
34274
|
-
}, r[76] = O, r[77] =
|
|
34382
|
+
}, r[76] = O, r[77] = iG, r[78] = aG, r[79] = oG), sG = _temp3$2, cG = M, lG = M, uG = M, dG = M ? `.${DRAG_HANDLE}` : "noop";
|
|
34275
34383
|
let E2;
|
|
34276
|
-
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2),
|
|
34384
|
+
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2), fG = u.filter(E2).map((r2) => {
|
|
34277
34385
|
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, {
|
|
34278
34386
|
code: r2.code,
|
|
34279
34387
|
mode: d,
|
|
@@ -34303,14 +34411,14 @@ ${c}
|
|
|
34303
34411
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
34304
34412
|
children: m2
|
|
34305
34413
|
}, r2.id);
|
|
34306
|
-
}), 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] =
|
|
34307
|
-
} 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],
|
|
34308
|
-
let
|
|
34309
|
-
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] !==
|
|
34310
|
-
breakpoint:
|
|
34311
|
-
layouts:
|
|
34312
|
-
style:
|
|
34313
|
-
cols:
|
|
34414
|
+
}), 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] = tG, r[31] = Z, r[32] = nG, r[33] = rG, r[34] = iG, r[35] = aG, r[36] = oG, r[37] = sG, r[38] = cG, r[39] = lG, r[40] = uG, r[41] = dG, r[42] = fG, r[43] = pG, r[44] = mG, r[45] = hG, r[46] = gG;
|
|
34415
|
+
} 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], tG = r[30], Z = r[31], nG = r[32], rG = r[33], iG = r[34], aG = r[35], oG = r[36], sG = r[37], cG = r[38], lG = r[39], uG = r[40], dG = r[41], fG = r[42], pG = r[43], mG = r[44], hG = r[45], gG = r[46];
|
|
34416
|
+
let _G;
|
|
34417
|
+
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] !== tG || r[91] !== Z || r[92] !== nG || r[93] !== rG || r[94] !== iG || r[95] !== aG || r[96] !== oG || r[97] !== sG || r[98] !== cG || r[99] !== lG || r[100] !== uG || r[101] !== dG || r[102] !== fG || r[103] !== pG || r[104] !== mG || r[105] !== hG || r[106] !== gG ? (_G = (0, import_jsx_runtime.jsx)(I, {
|
|
34418
|
+
breakpoint: pG,
|
|
34419
|
+
layouts: mG,
|
|
34420
|
+
style: hG,
|
|
34421
|
+
cols: gG,
|
|
34314
34422
|
allowOverlap: R,
|
|
34315
34423
|
className: z,
|
|
34316
34424
|
containerPadding: B,
|
|
@@ -34318,23 +34426,23 @@ ${c}
|
|
|
34318
34426
|
isBounded: W,
|
|
34319
34427
|
compactType: G,
|
|
34320
34428
|
preventCollision: q,
|
|
34321
|
-
rowHeight:
|
|
34429
|
+
rowHeight: tG,
|
|
34322
34430
|
onLayoutChange: Z,
|
|
34323
|
-
droppingItem:
|
|
34324
|
-
onDrop:
|
|
34325
|
-
onDragStart:
|
|
34326
|
-
onDrag:
|
|
34327
|
-
onDragStop:
|
|
34328
|
-
onResizeStop:
|
|
34329
|
-
isDraggable:
|
|
34330
|
-
isDroppable:
|
|
34331
|
-
isResizable:
|
|
34332
|
-
draggableHandle:
|
|
34333
|
-
children:
|
|
34334
|
-
}), 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] =
|
|
34335
|
-
let
|
|
34336
|
-
if (r[108] !== u || r[109] !==
|
|
34337
|
-
|
|
34431
|
+
droppingItem: nG,
|
|
34432
|
+
onDrop: rG,
|
|
34433
|
+
onDragStart: iG,
|
|
34434
|
+
onDrag: aG,
|
|
34435
|
+
onDragStop: oG,
|
|
34436
|
+
onResizeStop: sG,
|
|
34437
|
+
isDraggable: cG,
|
|
34438
|
+
isDroppable: lG,
|
|
34439
|
+
isResizable: uG,
|
|
34440
|
+
draggableHandle: dG,
|
|
34441
|
+
children: fG
|
|
34442
|
+
}), 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] = tG, r[91] = Z, r[92] = nG, r[93] = rG, r[94] = iG, r[95] = aG, r[96] = oG, r[97] = sG, r[98] = cG, r[99] = lG, r[100] = uG, r[101] = dG, r[102] = fG, r[103] = pG, r[104] = mG, r[105] = hG, r[106] = gG, r[107] = _G) : _G = r[107];
|
|
34443
|
+
let vG = _G, yG, bG, xG, SG, CG, wG, TG;
|
|
34444
|
+
if (r[108] !== u || r[109] !== vG || r[110] !== m || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
34445
|
+
TG = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
34338
34446
|
bb0: {
|
|
34339
34447
|
let e2;
|
|
34340
34448
|
r[125] === m ? e2 = r[126] : (e2 = (e3) => !m.has(e3.id), r[125] = m, r[126] = e2);
|
|
@@ -34342,14 +34450,14 @@ ${c}
|
|
|
34342
34450
|
if (f) {
|
|
34343
34451
|
if (c.bordered) {
|
|
34344
34452
|
let e4;
|
|
34345
|
-
r[127] !==
|
|
34453
|
+
r[127] !== vG || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
34346
34454
|
className: "flex flex-1 flex-col items-center",
|
|
34347
34455
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
34348
34456
|
style: L,
|
|
34349
34457
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
34350
|
-
children:
|
|
34458
|
+
children: vG
|
|
34351
34459
|
})
|
|
34352
|
-
}), r[127] =
|
|
34460
|
+
}), r[127] = vG, r[128] = L, r[129] = e4) : e4 = r[129], vG = e4;
|
|
34353
34461
|
}
|
|
34354
34462
|
let e3 = p2.filter(_temp4$2), l2;
|
|
34355
34463
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -34361,9 +34469,9 @@ ${c}
|
|
|
34361
34469
|
stale: outputIsStale(e4, false),
|
|
34362
34470
|
isScrollable: false,
|
|
34363
34471
|
hidden: false
|
|
34364
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
34472
|
+
}, e4.id), r[130] = d, r[131] = l2), TG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34365
34473
|
children: [
|
|
34366
|
-
|
|
34474
|
+
vG,
|
|
34367
34475
|
(0, import_jsx_runtime.jsx)("div", {
|
|
34368
34476
|
className: "hidden",
|
|
34369
34477
|
children: e3.map(l2)
|
|
@@ -34374,31 +34482,31 @@ ${c}
|
|
|
34374
34482
|
}
|
|
34375
34483
|
if (c.bordered) {
|
|
34376
34484
|
let e3;
|
|
34377
|
-
r[132] ===
|
|
34485
|
+
r[132] === vG ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
34378
34486
|
className: "h-full overflow-auto",
|
|
34379
|
-
children:
|
|
34380
|
-
}), r[132] =
|
|
34487
|
+
children: vG
|
|
34488
|
+
}), r[132] = vG, r[133] = e3);
|
|
34381
34489
|
let c2;
|
|
34382
34490
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
34383
34491
|
style: L,
|
|
34384
34492
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
34385
34493
|
children: e3
|
|
34386
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
34494
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], vG = c2;
|
|
34387
34495
|
}
|
|
34388
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
34496
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (wG = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
34389
34497
|
layout: c,
|
|
34390
34498
|
setLayout: l,
|
|
34391
34499
|
isLocked: v,
|
|
34392
34500
|
setIsLocked: y
|
|
34393
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
34501
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = wG) : wG = r[140];
|
|
34394
34502
|
let g2;
|
|
34395
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34503
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (SG = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = SG, r[142] = g2) : (SG = r[141], g2 = r[142]), r[143] === vG ? CG = r[144] : (CG = (0, import_jsx_runtime.jsx)("div", {
|
|
34396
34504
|
className: g2,
|
|
34397
|
-
children:
|
|
34398
|
-
}), r[143] =
|
|
34505
|
+
children: vG
|
|
34506
|
+
}), r[143] = vG, r[144] = CG), yG = "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") ? (bG = (0, import_jsx_runtime.jsx)("div", {
|
|
34399
34507
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
34400
34508
|
children: "Outputs"
|
|
34401
|
-
}), r[145] =
|
|
34509
|
+
}), r[145] = bG) : bG = r[145];
|
|
34402
34510
|
let b2;
|
|
34403
34511
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
34404
34512
|
draggable: true,
|
|
@@ -34424,34 +34532,34 @@ ${c}
|
|
|
34424
34532
|
stale: outputIsStale(e3, false),
|
|
34425
34533
|
hidden: false
|
|
34426
34534
|
})
|
|
34427
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
34428
|
-
}
|
|
34429
|
-
r[108] = u, r[109] =
|
|
34430
|
-
} else
|
|
34431
|
-
if (
|
|
34432
|
-
let
|
|
34433
|
-
r[150] !==
|
|
34434
|
-
className:
|
|
34535
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], xG = p2.map(b2);
|
|
34536
|
+
}
|
|
34537
|
+
r[108] = u, r[109] = vG, r[110] = m, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = yG, r[118] = bG, r[119] = xG, r[120] = SG, r[121] = CG, r[122] = wG, r[123] = TG, r[124] = vG;
|
|
34538
|
+
} else yG = r[117], bG = r[118], xG = r[119], SG = r[120], CG = r[121], wG = r[122], TG = r[123], vG = r[124];
|
|
34539
|
+
if (TG !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return TG;
|
|
34540
|
+
let EG;
|
|
34541
|
+
r[150] !== yG || r[151] !== bG || r[152] !== xG ? (EG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34542
|
+
className: yG,
|
|
34435
34543
|
children: [
|
|
34436
|
-
|
|
34437
|
-
|
|
34544
|
+
bG,
|
|
34545
|
+
xG
|
|
34438
34546
|
]
|
|
34439
|
-
}), r[150] =
|
|
34440
|
-
let
|
|
34441
|
-
r[154] !==
|
|
34442
|
-
className:
|
|
34547
|
+
}), r[150] = yG, r[151] = bG, r[152] = xG, r[153] = EG) : EG = r[153];
|
|
34548
|
+
let DG;
|
|
34549
|
+
r[154] !== SG || r[155] !== CG || r[156] !== EG ? (DG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34550
|
+
className: SG,
|
|
34443
34551
|
children: [
|
|
34444
|
-
|
|
34445
|
-
|
|
34552
|
+
CG,
|
|
34553
|
+
EG
|
|
34446
34554
|
]
|
|
34447
|
-
}), r[154] =
|
|
34448
|
-
let
|
|
34449
|
-
return r[158] !==
|
|
34555
|
+
}), r[154] = SG, r[155] = CG, r[156] = EG, r[157] = DG) : DG = r[157];
|
|
34556
|
+
let OG;
|
|
34557
|
+
return r[158] !== wG || r[159] !== DG ? (OG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34450
34558
|
children: [
|
|
34451
|
-
|
|
34452
|
-
|
|
34559
|
+
wG,
|
|
34560
|
+
DG
|
|
34453
34561
|
]
|
|
34454
|
-
}), r[158] =
|
|
34562
|
+
}), r[158] = wG, r[159] = DG, r[160] = OG) : OG = r[160], OG;
|
|
34455
34563
|
};
|
|
34456
34564
|
var GridCell = (0, import_react.memo)((e) => {
|
|
34457
34565
|
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;
|
|
@@ -34756,21 +34864,21 @@ ${c}
|
|
|
34756
34864
|
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
34757
34865
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
34758
34866
|
}), r[35] = q) : q = r[35];
|
|
34759
|
-
let
|
|
34760
|
-
r[36] === l ?
|
|
34867
|
+
let tG;
|
|
34868
|
+
r[36] === l ? tG = r[37] : (tG = (0, import_jsx_runtime.jsx)(X, {
|
|
34761
34869
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34762
34870
|
onClick: () => l()
|
|
34763
|
-
}), r[36] = l, r[37] =
|
|
34871
|
+
}), r[36] = l, r[37] = tG);
|
|
34764
34872
|
let Z;
|
|
34765
|
-
return r[38] !== M || r[39] !== G || r[40] !==
|
|
34873
|
+
return r[38] !== M || r[39] !== G || r[40] !== tG || r[41] !== S ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
34766
34874
|
className: S,
|
|
34767
34875
|
children: [
|
|
34768
34876
|
M,
|
|
34769
34877
|
G,
|
|
34770
34878
|
q,
|
|
34771
|
-
|
|
34879
|
+
tG
|
|
34772
34880
|
]
|
|
34773
|
-
}), r[38] = M, r[39] = G, r[40] =
|
|
34881
|
+
}), r[38] = M, r[39] = G, r[40] = tG, r[41] = S, r[42] = Z) : Z = r[42], Z;
|
|
34774
34882
|
};
|
|
34775
34883
|
function isSidebarCell(e) {
|
|
34776
34884
|
var _a5;
|
|
@@ -36774,31 +36882,31 @@ ${c}
|
|
|
36774
36882
|
}, [
|
|
36775
36883
|
T,
|
|
36776
36884
|
M
|
|
36777
|
-
]), 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),
|
|
36885
|
+
]), 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), tG = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
36778
36886
|
j
|
|
36779
|
-
]), Z = useMeasuringConfiguration(p), { droppableRects:
|
|
36887
|
+
]), Z = useMeasuringConfiguration(p), { droppableRects: nG, measureDroppableContainers: rG, measuringScheduled: iG } = useDroppableMeasuring(tG, {
|
|
36780
36888
|
dragging: w,
|
|
36781
36889
|
dependencies: [
|
|
36782
36890
|
O.x,
|
|
36783
36891
|
O.y
|
|
36784
36892
|
],
|
|
36785
36893
|
config: Z.droppable
|
|
36786
|
-
}),
|
|
36894
|
+
}), aG = useCachedNode(E, T), oG = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36787
36895
|
H
|
|
36788
|
-
]),
|
|
36896
|
+
]), sG = RG(), cG = useInitialRect(aG, Z.draggable.measure);
|
|
36789
36897
|
useLayoutShiftScrollCompensation({
|
|
36790
36898
|
activeNode: T == null ? null : E.get(T),
|
|
36791
|
-
config:
|
|
36792
|
-
initialRect:
|
|
36899
|
+
config: sG.layoutShiftCompensation,
|
|
36900
|
+
initialRect: cG,
|
|
36793
36901
|
measure: Z.draggable.measure
|
|
36794
36902
|
});
|
|
36795
|
-
let
|
|
36903
|
+
let lG = useRect(aG, Z.draggable.measure, cG), uG = useRect(aG ? aG.parentElement : null), dG = (0, import_react.useRef)({
|
|
36796
36904
|
activatorEvent: null,
|
|
36797
36905
|
active: null,
|
|
36798
|
-
activeNode:
|
|
36906
|
+
activeNode: aG,
|
|
36799
36907
|
collisionRect: null,
|
|
36800
36908
|
collisions: null,
|
|
36801
|
-
droppableRects:
|
|
36909
|
+
droppableRects: nG,
|
|
36802
36910
|
draggableNodes: E,
|
|
36803
36911
|
draggingNode: null,
|
|
36804
36912
|
draggingNodeRect: null,
|
|
@@ -36806,45 +36914,45 @@ ${c}
|
|
|
36806
36914
|
over: null,
|
|
36807
36915
|
scrollableAncestors: [],
|
|
36808
36916
|
scrollAdjustedTranslate: null
|
|
36809
|
-
}),
|
|
36917
|
+
}), fG = j.getNodeFor((_a5 = dG.current.over) == null ? void 0 : _a5.id), pG = useDragOverlayMeasuring({
|
|
36810
36918
|
measure: Z.dragOverlay.measure
|
|
36811
|
-
}),
|
|
36919
|
+
}), mG = pG.nodeRef.current ?? aG, hG = w ? pG.rect ?? lG : null, gG = !!(pG.nodeRef.current && pG.rect), _G = useRectDelta(gG ? null : lG), vG = useWindowRect(mG ? getWindow(mG) : null), yG = useScrollableAncestors(w ? fG ?? aG : null), bG = useRects(yG), xG = applyModifiers(m, {
|
|
36812
36920
|
transform: {
|
|
36813
|
-
x: O.x -
|
|
36814
|
-
y: O.y -
|
|
36921
|
+
x: O.x - _G.x,
|
|
36922
|
+
y: O.y - _G.y,
|
|
36815
36923
|
scaleX: 1,
|
|
36816
36924
|
scaleY: 1
|
|
36817
36925
|
},
|
|
36818
36926
|
activatorEvent: H,
|
|
36819
36927
|
active: L,
|
|
36820
|
-
activeNodeRect:
|
|
36821
|
-
containerNodeRect:
|
|
36822
|
-
draggingNodeRect:
|
|
36823
|
-
over:
|
|
36824
|
-
overlayNodeRect:
|
|
36825
|
-
scrollableAncestors:
|
|
36826
|
-
scrollableAncestorRects:
|
|
36827
|
-
windowRect:
|
|
36828
|
-
}),
|
|
36829
|
-
|
|
36830
|
-
]),
|
|
36928
|
+
activeNodeRect: lG,
|
|
36929
|
+
containerNodeRect: uG,
|
|
36930
|
+
draggingNodeRect: hG,
|
|
36931
|
+
over: dG.current.over,
|
|
36932
|
+
overlayNodeRect: pG.rect,
|
|
36933
|
+
scrollableAncestors: yG,
|
|
36934
|
+
scrollableAncestorRects: bG,
|
|
36935
|
+
windowRect: vG
|
|
36936
|
+
}), SG = oG ? add(oG, O) : null, CG = useScrollOffsets(yG), wG = useScrollOffsetsDelta(CG), TG = useScrollOffsetsDelta(CG, [
|
|
36937
|
+
lG
|
|
36938
|
+
]), EG = add(xG, wG), DG = hG ? getAdjustedRect(hG, xG) : null, OG = L && DG ? f({
|
|
36831
36939
|
active: L,
|
|
36832
|
-
collisionRect:
|
|
36833
|
-
droppableRects:
|
|
36834
|
-
droppableContainers:
|
|
36835
|
-
pointerCoordinates:
|
|
36836
|
-
}) : null,
|
|
36940
|
+
collisionRect: DG,
|
|
36941
|
+
droppableRects: nG,
|
|
36942
|
+
droppableContainers: tG,
|
|
36943
|
+
pointerCoordinates: SG
|
|
36944
|
+
}) : null, kG = getFirstCollision(OG, "id"), [AG, jG] = (0, import_react.useState)(null), MG = adjustScale(gG ? xG : add(xG, TG), (AG == null ? void 0 : AG.rect) ?? null, lG), NG = (0, import_react.useRef)(null), PG = (0, import_react.useCallback)((e2, r2) => {
|
|
36837
36945
|
let { sensor: c2, options: l2 } = r2;
|
|
36838
36946
|
if (R.current == null) return;
|
|
36839
36947
|
let u2 = E.get(R.current);
|
|
36840
36948
|
if (!u2) return;
|
|
36841
36949
|
let d2 = e2.nativeEvent;
|
|
36842
|
-
|
|
36950
|
+
NG.current = new c2({
|
|
36843
36951
|
active: R.current,
|
|
36844
36952
|
activeNode: u2,
|
|
36845
36953
|
event: d2,
|
|
36846
36954
|
options: l2,
|
|
36847
|
-
context:
|
|
36955
|
+
context: dG,
|
|
36848
36956
|
onAbort(e3) {
|
|
36849
36957
|
if (!E.get(e3)) return;
|
|
36850
36958
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -36889,7 +36997,7 @@ ${c}
|
|
|
36889
36997
|
}), v({
|
|
36890
36998
|
type: "onDragStart",
|
|
36891
36999
|
event: u3
|
|
36892
|
-
}), B(
|
|
37000
|
+
}), B(NG.current), W(d2);
|
|
36893
37001
|
});
|
|
36894
37002
|
},
|
|
36895
37003
|
onMove(e3) {
|
|
@@ -36903,7 +37011,7 @@ ${c}
|
|
|
36903
37011
|
});
|
|
36904
37012
|
function f2(e3) {
|
|
36905
37013
|
return async function() {
|
|
36906
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
37014
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = dG.current, f3 = null;
|
|
36907
37015
|
if (r3 && u3) {
|
|
36908
37016
|
let { cancelDrop: p2 } = G.current;
|
|
36909
37017
|
f3 = {
|
|
@@ -36917,7 +37025,7 @@ ${c}
|
|
|
36917
37025
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36918
37026
|
_({
|
|
36919
37027
|
type: e3
|
|
36920
|
-
}), S(Status.Uninitialized),
|
|
37028
|
+
}), S(Status.Uninitialized), jG(null), B(null), W(null), NG.current = null;
|
|
36921
37029
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
36922
37030
|
if (f3) {
|
|
36923
37031
|
let e4 = G.current[r4];
|
|
@@ -36931,7 +37039,7 @@ ${c}
|
|
|
36931
37039
|
}
|
|
36932
37040
|
}, [
|
|
36933
37041
|
E
|
|
36934
|
-
]),
|
|
37042
|
+
]), FG = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
36935
37043
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
36936
37044
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
36937
37045
|
let f2 = {
|
|
@@ -36939,26 +37047,26 @@ ${c}
|
|
|
36939
37047
|
};
|
|
36940
37048
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
36941
37049
|
capturedBy: r2.sensor
|
|
36942
|
-
}, R.current = l2,
|
|
37050
|
+
}, R.current = l2, PG(c2, r2));
|
|
36943
37051
|
}, [
|
|
36944
37052
|
E,
|
|
36945
|
-
|
|
37053
|
+
PG
|
|
36946
37054
|
]));
|
|
36947
37055
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
36948
|
-
|
|
37056
|
+
lG && b === Status.Initializing && S(Status.Initialized);
|
|
36949
37057
|
}, [
|
|
36950
|
-
|
|
37058
|
+
lG,
|
|
36951
37059
|
b
|
|
36952
37060
|
]), (0, import_react.useEffect)(() => {
|
|
36953
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
37061
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = dG.current;
|
|
36954
37062
|
if (!r2 || !c2) return;
|
|
36955
37063
|
let d2 = {
|
|
36956
37064
|
active: r2,
|
|
36957
37065
|
activatorEvent: c2,
|
|
36958
37066
|
collisions: l2,
|
|
36959
37067
|
delta: {
|
|
36960
|
-
x:
|
|
36961
|
-
y:
|
|
37068
|
+
x: EG.x,
|
|
37069
|
+
y: EG.y
|
|
36962
37070
|
},
|
|
36963
37071
|
over: u2
|
|
36964
37072
|
};
|
|
@@ -36969,12 +37077,12 @@ ${c}
|
|
|
36969
37077
|
});
|
|
36970
37078
|
});
|
|
36971
37079
|
}, [
|
|
36972
|
-
|
|
36973
|
-
|
|
37080
|
+
EG.x,
|
|
37081
|
+
EG.y
|
|
36974
37082
|
]), (0, import_react.useEffect)(() => {
|
|
36975
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
37083
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = dG.current;
|
|
36976
37084
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
36977
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
37085
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(kG), p2 = f2 && f2.rect.current ? {
|
|
36978
37086
|
id: f2.id,
|
|
36979
37087
|
rect: f2.rect.current,
|
|
36980
37088
|
data: f2.data,
|
|
@@ -36990,127 +37098,127 @@ ${c}
|
|
|
36990
37098
|
over: p2
|
|
36991
37099
|
};
|
|
36992
37100
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36993
|
-
|
|
37101
|
+
jG(p2), d2 == null ? void 0 : d2(m2), v({
|
|
36994
37102
|
type: "onDragOver",
|
|
36995
37103
|
event: m2
|
|
36996
37104
|
});
|
|
36997
37105
|
});
|
|
36998
37106
|
}, [
|
|
36999
|
-
|
|
37107
|
+
kG
|
|
37000
37108
|
]), useIsomorphicLayoutEffect(() => {
|
|
37001
|
-
|
|
37109
|
+
dG.current = {
|
|
37002
37110
|
activatorEvent: H,
|
|
37003
37111
|
active: L,
|
|
37004
|
-
activeNode:
|
|
37005
|
-
collisionRect:
|
|
37006
|
-
collisions:
|
|
37007
|
-
droppableRects:
|
|
37112
|
+
activeNode: aG,
|
|
37113
|
+
collisionRect: DG,
|
|
37114
|
+
collisions: OG,
|
|
37115
|
+
droppableRects: nG,
|
|
37008
37116
|
draggableNodes: E,
|
|
37009
|
-
draggingNode:
|
|
37010
|
-
draggingNodeRect:
|
|
37117
|
+
draggingNode: mG,
|
|
37118
|
+
draggingNodeRect: hG,
|
|
37011
37119
|
droppableContainers: j,
|
|
37012
|
-
over:
|
|
37013
|
-
scrollableAncestors:
|
|
37014
|
-
scrollAdjustedTranslate:
|
|
37120
|
+
over: AG,
|
|
37121
|
+
scrollableAncestors: yG,
|
|
37122
|
+
scrollAdjustedTranslate: EG
|
|
37015
37123
|
}, I.current = {
|
|
37016
|
-
initial:
|
|
37017
|
-
translated:
|
|
37124
|
+
initial: hG,
|
|
37125
|
+
translated: DG
|
|
37018
37126
|
};
|
|
37019
37127
|
}, [
|
|
37020
37128
|
L,
|
|
37021
|
-
|
|
37022
|
-
|
|
37023
|
-
|
|
37129
|
+
aG,
|
|
37130
|
+
OG,
|
|
37131
|
+
DG,
|
|
37024
37132
|
E,
|
|
37025
|
-
|
|
37026
|
-
dG,
|
|
37027
|
-
QW,
|
|
37028
|
-
j,
|
|
37029
|
-
EG,
|
|
37133
|
+
mG,
|
|
37030
37134
|
hG,
|
|
37031
|
-
|
|
37135
|
+
nG,
|
|
37136
|
+
j,
|
|
37137
|
+
AG,
|
|
37138
|
+
yG,
|
|
37139
|
+
EG
|
|
37032
37140
|
]), useAutoScroller({
|
|
37033
|
-
...
|
|
37141
|
+
...sG,
|
|
37034
37142
|
delta: O,
|
|
37035
|
-
draggingRect:
|
|
37036
|
-
pointerCoordinates:
|
|
37037
|
-
scrollableAncestors:
|
|
37038
|
-
scrollableAncestorRects:
|
|
37143
|
+
draggingRect: DG,
|
|
37144
|
+
pointerCoordinates: SG,
|
|
37145
|
+
scrollableAncestors: yG,
|
|
37146
|
+
scrollableAncestorRects: bG
|
|
37039
37147
|
});
|
|
37040
|
-
let
|
|
37148
|
+
let IG = (0, import_react.useMemo)(() => ({
|
|
37041
37149
|
active: L,
|
|
37042
|
-
activeNode:
|
|
37043
|
-
activeNodeRect:
|
|
37150
|
+
activeNode: aG,
|
|
37151
|
+
activeNodeRect: lG,
|
|
37044
37152
|
activatorEvent: H,
|
|
37045
|
-
collisions:
|
|
37046
|
-
containerNodeRect:
|
|
37047
|
-
dragOverlay:
|
|
37153
|
+
collisions: OG,
|
|
37154
|
+
containerNodeRect: uG,
|
|
37155
|
+
dragOverlay: pG,
|
|
37048
37156
|
draggableNodes: E,
|
|
37049
37157
|
droppableContainers: j,
|
|
37050
|
-
droppableRects:
|
|
37051
|
-
over:
|
|
37052
|
-
measureDroppableContainers:
|
|
37053
|
-
scrollableAncestors:
|
|
37054
|
-
scrollableAncestorRects:
|
|
37158
|
+
droppableRects: nG,
|
|
37159
|
+
over: AG,
|
|
37160
|
+
measureDroppableContainers: rG,
|
|
37161
|
+
scrollableAncestors: yG,
|
|
37162
|
+
scrollableAncestorRects: bG,
|
|
37055
37163
|
measuringConfiguration: Z,
|
|
37056
|
-
measuringScheduled:
|
|
37057
|
-
windowRect:
|
|
37164
|
+
measuringScheduled: iG,
|
|
37165
|
+
windowRect: vG
|
|
37058
37166
|
}), [
|
|
37059
37167
|
L,
|
|
37060
|
-
tG,
|
|
37061
37168
|
aG,
|
|
37062
|
-
H,
|
|
37063
|
-
wG,
|
|
37064
|
-
oG,
|
|
37065
37169
|
lG,
|
|
37170
|
+
H,
|
|
37171
|
+
OG,
|
|
37172
|
+
uG,
|
|
37173
|
+
pG,
|
|
37066
37174
|
E,
|
|
37067
37175
|
j,
|
|
37068
|
-
|
|
37069
|
-
|
|
37070
|
-
|
|
37071
|
-
|
|
37072
|
-
|
|
37176
|
+
nG,
|
|
37177
|
+
AG,
|
|
37178
|
+
rG,
|
|
37179
|
+
yG,
|
|
37180
|
+
bG,
|
|
37073
37181
|
Z,
|
|
37074
|
-
|
|
37075
|
-
|
|
37076
|
-
]),
|
|
37182
|
+
iG,
|
|
37183
|
+
vG
|
|
37184
|
+
]), LG = (0, import_react.useMemo)(() => ({
|
|
37077
37185
|
activatorEvent: H,
|
|
37078
|
-
activators:
|
|
37186
|
+
activators: FG,
|
|
37079
37187
|
active: L,
|
|
37080
|
-
activeNodeRect:
|
|
37188
|
+
activeNodeRect: lG,
|
|
37081
37189
|
ariaDescribedById: {
|
|
37082
37190
|
draggable: q
|
|
37083
37191
|
},
|
|
37084
37192
|
dispatch: _,
|
|
37085
37193
|
draggableNodes: E,
|
|
37086
|
-
over:
|
|
37087
|
-
measureDroppableContainers:
|
|
37194
|
+
over: AG,
|
|
37195
|
+
measureDroppableContainers: rG
|
|
37088
37196
|
}), [
|
|
37089
37197
|
H,
|
|
37090
|
-
|
|
37198
|
+
FG,
|
|
37091
37199
|
L,
|
|
37092
|
-
|
|
37200
|
+
lG,
|
|
37093
37201
|
_,
|
|
37094
37202
|
q,
|
|
37095
37203
|
E,
|
|
37096
|
-
|
|
37097
|
-
|
|
37204
|
+
AG,
|
|
37205
|
+
rG
|
|
37098
37206
|
]);
|
|
37099
37207
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
37100
37208
|
value: y
|
|
37101
37209
|
}, import_react.createElement(InternalContext.Provider, {
|
|
37102
|
-
value:
|
|
37210
|
+
value: LG
|
|
37103
37211
|
}, import_react.createElement(PublicContext.Provider, {
|
|
37104
|
-
value:
|
|
37212
|
+
value: IG
|
|
37105
37213
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
37106
|
-
value:
|
|
37214
|
+
value: MG
|
|
37107
37215
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
37108
37216
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
37109
37217
|
})), import_react.createElement(Accessibility, {
|
|
37110
37218
|
...c,
|
|
37111
37219
|
hiddenTextDescribedById: q
|
|
37112
37220
|
}));
|
|
37113
|
-
function
|
|
37221
|
+
function RG() {
|
|
37114
37222
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
37115
37223
|
return typeof l == "object" ? {
|
|
37116
37224
|
...l,
|
|
@@ -37638,7 +37746,7 @@ ${c}
|
|
|
37638
37746
|
updateMeasurementsFor: I,
|
|
37639
37747
|
...m
|
|
37640
37748
|
}
|
|
37641
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
37749
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: tG, listeners: Z, isDragging: nG, over: rG, setActivatorNodeRef: iG, transform: aG } = useDraggable({
|
|
37642
37750
|
id: f,
|
|
37643
37751
|
data: M,
|
|
37644
37752
|
attributes: {
|
|
@@ -37646,60 +37754,60 @@ ${c}
|
|
|
37646
37754
|
...c
|
|
37647
37755
|
},
|
|
37648
37756
|
disabled: O.draggable
|
|
37649
|
-
}),
|
|
37757
|
+
}), oG = useCombinedRefs(B, tG), sG = !!H, cG = sG && !b && isValidIndex(v) && isValidIndex(w), lG = !T && nG, uG = cG ? (lG && cG ? aG : null) ?? (p ?? E)({
|
|
37650
37758
|
rects: S,
|
|
37651
37759
|
activeNodeRect: G,
|
|
37652
37760
|
activeIndex: v,
|
|
37653
37761
|
overIndex: w,
|
|
37654
37762
|
index: j
|
|
37655
|
-
}) : null,
|
|
37763
|
+
}) : null, dG = isValidIndex(v) && isValidIndex(w) ? d({
|
|
37656
37764
|
id: f,
|
|
37657
37765
|
items: g,
|
|
37658
37766
|
activeIndex: v,
|
|
37659
37767
|
overIndex: w
|
|
37660
|
-
}) : j,
|
|
37661
|
-
activeId:
|
|
37768
|
+
}) : j, fG = H == null ? void 0 : H.id, pG = (0, import_react.useRef)({
|
|
37769
|
+
activeId: fG,
|
|
37662
37770
|
items: g,
|
|
37663
|
-
newIndex:
|
|
37771
|
+
newIndex: dG,
|
|
37664
37772
|
containerId: _
|
|
37665
|
-
}),
|
|
37773
|
+
}), mG = g !== pG.current.items, hG = r({
|
|
37666
37774
|
active: H,
|
|
37667
37775
|
containerId: _,
|
|
37668
|
-
isDragging:
|
|
37669
|
-
isSorting:
|
|
37776
|
+
isDragging: nG,
|
|
37777
|
+
isSorting: sG,
|
|
37670
37778
|
id: f,
|
|
37671
37779
|
index: j,
|
|
37672
37780
|
items: g,
|
|
37673
|
-
newIndex:
|
|
37674
|
-
previousItems:
|
|
37675
|
-
previousContainerId:
|
|
37781
|
+
newIndex: pG.current.newIndex,
|
|
37782
|
+
previousItems: pG.current.items,
|
|
37783
|
+
previousContainerId: pG.current.containerId,
|
|
37676
37784
|
transition: h,
|
|
37677
|
-
wasDragging:
|
|
37678
|
-
}),
|
|
37679
|
-
disabled: !
|
|
37785
|
+
wasDragging: pG.current.activeId != null
|
|
37786
|
+
}), gG = useDerivedTransform({
|
|
37787
|
+
disabled: !hG,
|
|
37680
37788
|
index: j,
|
|
37681
37789
|
node: R,
|
|
37682
37790
|
rect: L
|
|
37683
37791
|
});
|
|
37684
37792
|
return (0, import_react.useEffect)(() => {
|
|
37685
|
-
|
|
37793
|
+
sG && pG.current.newIndex !== dG && (pG.current.newIndex = dG), _ !== pG.current.containerId && (pG.current.containerId = _), g !== pG.current.items && (pG.current.items = g);
|
|
37686
37794
|
}, [
|
|
37687
|
-
rG,
|
|
37688
37795
|
sG,
|
|
37796
|
+
dG,
|
|
37689
37797
|
_,
|
|
37690
37798
|
g
|
|
37691
37799
|
]), (0, import_react.useEffect)(() => {
|
|
37692
|
-
if (
|
|
37693
|
-
if (
|
|
37694
|
-
|
|
37800
|
+
if (fG === pG.current.activeId) return;
|
|
37801
|
+
if (fG != null && pG.current.activeId == null) {
|
|
37802
|
+
pG.current.activeId = fG;
|
|
37695
37803
|
return;
|
|
37696
37804
|
}
|
|
37697
37805
|
let e2 = setTimeout(() => {
|
|
37698
|
-
|
|
37806
|
+
pG.current.activeId = fG;
|
|
37699
37807
|
}, 50);
|
|
37700
37808
|
return () => clearTimeout(e2);
|
|
37701
37809
|
}, [
|
|
37702
|
-
|
|
37810
|
+
fG
|
|
37703
37811
|
]), {
|
|
37704
37812
|
active: H,
|
|
37705
37813
|
activeIndex: v,
|
|
@@ -37707,25 +37815,25 @@ ${c}
|
|
|
37707
37815
|
data: M,
|
|
37708
37816
|
rect: L,
|
|
37709
37817
|
index: j,
|
|
37710
|
-
newIndex:
|
|
37818
|
+
newIndex: dG,
|
|
37711
37819
|
items: g,
|
|
37712
37820
|
isOver: z,
|
|
37713
|
-
isSorting:
|
|
37714
|
-
isDragging:
|
|
37821
|
+
isSorting: sG,
|
|
37822
|
+
isDragging: nG,
|
|
37715
37823
|
listeners: Z,
|
|
37716
37824
|
node: R,
|
|
37717
37825
|
overIndex: w,
|
|
37718
|
-
over:
|
|
37719
|
-
setNodeRef:
|
|
37720
|
-
setActivatorNodeRef:
|
|
37826
|
+
over: rG,
|
|
37827
|
+
setNodeRef: oG,
|
|
37828
|
+
setActivatorNodeRef: iG,
|
|
37721
37829
|
setDroppableNodeRef: B,
|
|
37722
|
-
setDraggableNodeRef:
|
|
37723
|
-
transform:
|
|
37724
|
-
transition:
|
|
37830
|
+
setDraggableNodeRef: tG,
|
|
37831
|
+
transform: gG ?? uG,
|
|
37832
|
+
transition: _G()
|
|
37725
37833
|
};
|
|
37726
|
-
function
|
|
37727
|
-
if (
|
|
37728
|
-
if (!(
|
|
37834
|
+
function _G() {
|
|
37835
|
+
if (gG || mG && pG.current.newIndex === j) return disabledTransition;
|
|
37836
|
+
if (!(lG && !isKeyboardEvent(W) || !h) && (sG || hG)) return CSS$1.Transition.toString({
|
|
37729
37837
|
...h,
|
|
37730
37838
|
property: transitionProperty
|
|
37731
37839
|
});
|
|
@@ -38025,15 +38133,15 @@ ${c}
|
|
|
38025
38133
|
G
|
|
38026
38134
|
]
|
|
38027
38135
|
}), 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];
|
|
38028
|
-
let
|
|
38029
|
-
if (!v && !g) return
|
|
38136
|
+
let tG = q;
|
|
38137
|
+
if (!v && !g) return tG;
|
|
38030
38138
|
let Z;
|
|
38031
|
-
r[46] ===
|
|
38139
|
+
r[46] === tG ? Z = r[47] : (Z = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
38032
38140
|
asChild: true,
|
|
38033
|
-
children:
|
|
38034
|
-
}), r[46] =
|
|
38035
|
-
let
|
|
38036
|
-
r[48] === v ?
|
|
38141
|
+
children: tG
|
|
38142
|
+
}), r[46] = tG, r[47] = Z);
|
|
38143
|
+
let nG;
|
|
38144
|
+
r[48] === v ? nG = r[49] : (nG = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
38037
38145
|
onSelect: v,
|
|
38038
38146
|
children: [
|
|
38039
38147
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -38041,11 +38149,11 @@ ${c}
|
|
|
38041
38149
|
}),
|
|
38042
38150
|
"Add cell"
|
|
38043
38151
|
]
|
|
38044
|
-
}), r[48] = v, r[49] =
|
|
38045
|
-
let
|
|
38046
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
38047
|
-
let
|
|
38048
|
-
r[51] === g ?
|
|
38152
|
+
}), r[48] = v, r[49] = nG);
|
|
38153
|
+
let rG;
|
|
38154
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rG = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = rG) : rG = r[50];
|
|
38155
|
+
let iG;
|
|
38156
|
+
r[51] === g ? iG = r[52] : (iG = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
38049
38157
|
variant: "danger",
|
|
38050
38158
|
onSelect: g,
|
|
38051
38159
|
children: [
|
|
@@ -38054,22 +38162,22 @@ ${c}
|
|
|
38054
38162
|
}),
|
|
38055
38163
|
"Delete cell"
|
|
38056
38164
|
]
|
|
38057
|
-
}), r[51] = g, r[52] =
|
|
38058
|
-
let
|
|
38059
|
-
r[53] !==
|
|
38165
|
+
}), r[51] = g, r[52] = iG);
|
|
38166
|
+
let aG;
|
|
38167
|
+
r[53] !== nG || r[54] !== iG ? (aG = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
38060
38168
|
children: [
|
|
38061
|
-
|
|
38062
|
-
|
|
38063
|
-
|
|
38169
|
+
nG,
|
|
38170
|
+
rG,
|
|
38171
|
+
iG
|
|
38064
38172
|
]
|
|
38065
|
-
}), r[53] =
|
|
38066
|
-
let
|
|
38067
|
-
return r[56] !== Z || r[57] !==
|
|
38173
|
+
}), r[53] = nG, r[54] = iG, r[55] = aG) : aG = r[55];
|
|
38174
|
+
let oG;
|
|
38175
|
+
return r[56] !== Z || r[57] !== aG ? (oG = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
38068
38176
|
children: [
|
|
38069
38177
|
Z,
|
|
38070
|
-
|
|
38178
|
+
aG
|
|
38071
38179
|
]
|
|
38072
|
-
}), r[56] = Z, r[57] =
|
|
38180
|
+
}), r[56] = Z, r[57] = aG, r[58] = oG) : oG = r[58], oG;
|
|
38073
38181
|
}, InsertCellLine = (e) => {
|
|
38074
38182
|
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;
|
|
38075
38183
|
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);
|
|
@@ -38123,10 +38231,10 @@ ${c}
|
|
|
38123
38231
|
...B,
|
|
38124
38232
|
...m
|
|
38125
38233
|
}, r[20] = M, r[21] = m, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
38126
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
38127
|
-
r[25] !== l || r[26] !==
|
|
38128
|
-
let
|
|
38129
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
38234
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", tG = w && !T && "opacity-35", Z = T && "opacity-95 shadow-lg", nG;
|
|
38235
|
+
r[25] !== l || r[26] !== tG || r[27] !== Z || r[28] !== q ? (nG = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, tG, Z, l), r[25] = l, r[26] = tG, r[27] = Z, r[28] = q, r[29] = nG) : nG = r[29];
|
|
38236
|
+
let rG;
|
|
38237
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (rG = G && (0, import_jsx_runtime.jsx)("div", {
|
|
38130
38238
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
38131
38239
|
style: {
|
|
38132
38240
|
transform: `scale(${I})`,
|
|
@@ -38142,14 +38250,14 @@ ${c}
|
|
|
38142
38250
|
output: c.output,
|
|
38143
38251
|
stale: outputIsStale(c, false)
|
|
38144
38252
|
})
|
|
38145
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
38146
|
-
let
|
|
38147
|
-
r[37] === z ?
|
|
38253
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = rG) : rG = r[36];
|
|
38254
|
+
let iG;
|
|
38255
|
+
r[37] === z ? iG = r[38] : (iG = z && (0, import_jsx_runtime.jsx)("div", {
|
|
38148
38256
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
38149
38257
|
"aria-hidden": true
|
|
38150
|
-
}), r[37] = z, r[38] =
|
|
38151
|
-
let
|
|
38152
|
-
r[39] !== z || r[40] !== R ? (
|
|
38258
|
+
}), r[37] = z, r[38] = iG);
|
|
38259
|
+
let aG;
|
|
38260
|
+
r[39] !== z || r[40] !== R ? (aG = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
38153
38261
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
38154
38262
|
className: "text-xs opacity-80",
|
|
38155
38263
|
children: R.description
|
|
@@ -38161,19 +38269,19 @@ ${c}
|
|
|
38161
38269
|
className: "h-3.5 w-3.5"
|
|
38162
38270
|
})
|
|
38163
38271
|
})
|
|
38164
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
38165
|
-
let
|
|
38166
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
38272
|
+
}), r[39] = z, r[40] = R, r[41] = aG) : aG = r[41];
|
|
38273
|
+
let oG;
|
|
38274
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== nG || r[46] !== rG || r[47] !== iG || r[48] !== aG ? (oG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38167
38275
|
ref: f,
|
|
38168
|
-
className:
|
|
38276
|
+
className: nG,
|
|
38169
38277
|
style: W,
|
|
38170
38278
|
...d,
|
|
38171
38279
|
children: [
|
|
38172
|
-
|
|
38173
|
-
|
|
38174
|
-
|
|
38280
|
+
rG,
|
|
38281
|
+
iG,
|
|
38282
|
+
aG
|
|
38175
38283
|
]
|
|
38176
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
38284
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = nG, r[46] = rG, r[47] = iG, r[48] = aG, r[49] = oG) : oG = r[49], oG;
|
|
38177
38285
|
}, MiniCodePreview = (e) => {
|
|
38178
38286
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
38179
38287
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -38213,7 +38321,7 @@ ${c}
|
|
|
38213
38321
|
function _temp2$2(e) {
|
|
38214
38322
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
38215
38323
|
}
|
|
38216
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
38324
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-CBpmFHpU.js"));
|
|
38217
38325
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
38218
38326
|
var _a5;
|
|
38219
38327
|
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), [
|
|
@@ -38598,7 +38706,7 @@ ${c}
|
|
|
38598
38706
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
38599
38707
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
38600
38708
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
38601
|
-
let H, W, G, q,
|
|
38709
|
+
let H, W, G, q, tG, Z, nG, rG, iG, aG;
|
|
38602
38710
|
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) {
|
|
38603
38711
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
38604
38712
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -38644,11 +38752,11 @@ ${c}
|
|
|
38644
38752
|
})
|
|
38645
38753
|
})
|
|
38646
38754
|
]
|
|
38647
|
-
}), 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",
|
|
38648
|
-
let
|
|
38649
|
-
r[40] !== M || r[41] !==
|
|
38755
|
+
}), 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", tG = c, Z = R, nG = 0;
|
|
38756
|
+
let oG2 = y && "marimo-output-stale", sG2 = L ? "p-5" : "p-3";
|
|
38757
|
+
r[40] !== M || r[41] !== oG2 || r[42] !== sG2 ? (rG = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", oG2, sG2, M), r[40] = M, r[41] = oG2, r[42] = sG2, r[43] = rG) : rG = r[43], r[44] === d ? iG = r[45] : (iG = d ? {
|
|
38650
38758
|
maxHeight: "none"
|
|
38651
|
-
} : void 0, r[44] = d, r[45] =
|
|
38759
|
+
} : void 0, r[44] = d, r[45] = iG), aG = e2.map((e3, r2) => {
|
|
38652
38760
|
if (e3.channel === "pdb") return null;
|
|
38653
38761
|
if (e3.channel === "stdin") {
|
|
38654
38762
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -38677,36 +38785,36 @@ ${c}
|
|
|
38677
38785
|
wrapText: l
|
|
38678
38786
|
})
|
|
38679
38787
|
}, r2);
|
|
38680
|
-
}), 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] =
|
|
38681
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
38682
|
-
let
|
|
38683
|
-
r[46] !== w || r[47] !== S ? (
|
|
38788
|
+
}), 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] = tG, r[25] = Z, r[26] = nG, r[27] = rG, r[28] = iG, r[29] = aG;
|
|
38789
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], tG = r[24], Z = r[25], nG = r[26], rG = r[27], iG = r[28], aG = r[29];
|
|
38790
|
+
let oG;
|
|
38791
|
+
r[46] !== w || r[47] !== S ? (oG = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
38684
38792
|
value: S,
|
|
38685
38793
|
cellId: w,
|
|
38686
38794
|
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"
|
|
38687
|
-
}), r[46] = w, r[47] = S, r[48] =
|
|
38688
|
-
let
|
|
38689
|
-
r[49] !==
|
|
38795
|
+
}), r[46] = w, r[47] = S, r[48] = oG) : oG = r[48];
|
|
38796
|
+
let sG;
|
|
38797
|
+
r[49] !== oG || r[50] !== G || r[51] !== q || r[52] !== tG || r[53] !== Z || r[54] !== nG || r[55] !== rG || r[56] !== iG || r[57] !== aG ? (sG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38690
38798
|
title: G,
|
|
38691
38799
|
"data-testid": q,
|
|
38692
|
-
ref:
|
|
38800
|
+
ref: tG,
|
|
38693
38801
|
...Z,
|
|
38694
|
-
tabIndex:
|
|
38695
|
-
className:
|
|
38696
|
-
style:
|
|
38802
|
+
tabIndex: nG,
|
|
38803
|
+
className: rG,
|
|
38804
|
+
style: iG,
|
|
38697
38805
|
children: [
|
|
38698
|
-
|
|
38699
|
-
|
|
38806
|
+
aG,
|
|
38807
|
+
oG
|
|
38700
38808
|
]
|
|
38701
|
-
}), r[49] =
|
|
38702
|
-
let
|
|
38703
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
38809
|
+
}), r[49] = oG, r[50] = G, r[51] = q, r[52] = tG, r[53] = Z, r[54] = nG, r[55] = rG, r[56] = iG, r[57] = aG, r[58] = sG) : sG = r[58];
|
|
38810
|
+
let cG;
|
|
38811
|
+
return r[59] !== H || r[60] !== W || r[61] !== sG ? (cG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38704
38812
|
className: H,
|
|
38705
38813
|
children: [
|
|
38706
38814
|
W,
|
|
38707
|
-
|
|
38815
|
+
sG
|
|
38708
38816
|
]
|
|
38709
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
38817
|
+
}), r[59] = H, r[60] = W, r[61] = sG, r[62] = cG) : cG = r[62], cG;
|
|
38710
38818
|
}, StdInput = (e) => {
|
|
38711
38819
|
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;
|
|
38712
38820
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -40404,13 +40512,13 @@ ${c}
|
|
|
40404
40512
|
});
|
|
40405
40513
|
}
|
|
40406
40514
|
async startApps() {
|
|
40407
|
-
var _a5, _b3,
|
|
40515
|
+
var _a5, _b3, _c5, _d4;
|
|
40408
40516
|
let e = parseMarimoIslandApps(this.root, {
|
|
40409
40517
|
materialize: false
|
|
40410
40518
|
}), r = e.length === 1;
|
|
40411
40519
|
Logger.debug(`Starting sessions for ${e.length} app(s):`, e.map((e2) => `${e2.id} (${e2.cells.length} cells)`));
|
|
40412
40520
|
let c = (_b3 = e.length === 1 && !((_a5 = e[0]) == null ? void 0 : _a5.payloadBacked) ? getMarimoExportContext() : void 0) == null ? void 0 : _b3.notebookCode, l = r ? e[0] : void 0, u = l ? c || createMarimoFile(l) : void 0;
|
|
40413
|
-
if (l && ((
|
|
40521
|
+
if (l && ((_c5 = this.session) == null ? void 0 : _c5.appId) === l.id && this.session.code === u) {
|
|
40414
40522
|
parseMarimoIslandApps(this.root);
|
|
40415
40523
|
return;
|
|
40416
40524
|
}
|