@marimo-team/islands 0.23.10-dev34 → 0.23.10-dev36
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-DmBropAy.js → ConnectedDataExplorerComponent-Z3RP7Vmm.js} +1 -1
- package/dist/{any-language-editor-DNmoSiWL.js → any-language-editor-CAgFD4Kd.js} +1 -1
- package/dist/{chat-ui-D6oraHT2.js → chat-ui-CJOUDE_t.js} +3 -3
- package/dist/{code-visibility-D36VZAff.js → code-visibility-DC9HexXh.js} +3 -3
- package/dist/{error-banner-Cc0I3C9e.js → error-banner-CJXYJ6Sb.js} +10 -5
- package/dist/{html-to-image-UEH5lFDZ.js → html-to-image-D3CbHZwH.js} +1 -1
- package/dist/main.js +1030 -1020
- package/dist/{mermaid-zuLgJ8J8.js → mermaid-BotvIKg9.js} +1 -1
- package/dist/{process-output-CyMLTogj.js → process-output-MAetFLBT.js} +1 -1
- package/dist/{reveal-component-DyqkAt3A.js → reveal-component-BBpwXvOt.js} +2 -2
- package/dist/{vega-component-9h1ACS78.js → vega-component-DGPUhbDs.js} +1 -1
- package/package.json +1 -1
- package/src/plugins/core/__test__/registerReactComponent.test.ts +96 -0
- package/src/plugins/core/registerReactComponent.tsx +42 -10
- package/src/utils/errors.ts +9 -0
package/dist/main.js
CHANGED
|
@@ -22,23 +22,23 @@ import { _ as Logger, c as Objects, g as cn, h as Events, i as NOT_SET, l as use
|
|
|
22
22
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
23
23
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
24
24
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-UqRYxiOg.js";
|
|
25
|
-
import { $ as reducer, B as safeExtractSetUIElementMessageBuffers, Bn as CircleAlert, Bt as DATA_TYPE_ICON, C as AccordionContent, Cn as Root2$1, Ct as Checkbox, Dn as Table2, Dt as PathBuilder, E as BorderAllIcon, En as Trash2, F as base64ToDataView, Fn as Eye, H as getMarimoExportContext, Ht as require_client, It as jotaiJsonStorage, J as getCellNames, Jt as requestClientAtom, K as createActions, Kt as convertStatsName, L as dataViewToBase64, Ln as Database, Mn as Layers, Mt as generateUUID, Nn as Info, On as PaintRoller, Ot as Paths, Pn as FileText, Pt as repl, Q as numColumnsAtom, Rn as Columns2, S as Accordion, Sn as Item$1, St as normalizeName, T as AccordionTrigger, Tt as MarkdownLanguageAdapter, U as hasTrustedExportContext, V as renderHTML, Vn as Braces, W as hasRunAnyCellAtom, X as notebookAtom, Xt as isUninstantiated, Y as hasOnlyOneCellAtom, Yt as useRequestClient, Z as notebookOutline, _n as atomWithStorage, a as useCellFocusActions, an as parseDataset, bt as getValidName, cn as HTMLCellId, ct as initialModeAtom, dn as findCellId, et as useCellActions, f as isOutputEmpty, fn as OBJECT_ID_ATTR, ft as outputIsLoading, gn as atomWithReducer, ht as headingToIdentifier, i as LazyAnyLanguageCodeMirror, in as parseAttrValue, jn as LoaderCircle, jt as DeferredRequestRegistry, k as ChevronDownIcon, lt as kioskModeAtom, mn as jsonParseWithSpecialChar, mt as isErrorMime, n as Spinner, o as useLastFocusedCellId, on as parseInitialValue, p as useExpandedConsoleOutput, pn as RANDOM_ID_ATTR, pt as outputIsStale, qt as getRequestClient, rt as createCell, s as maybeAddAltairImport, st as getInitialAppMode, tn as NotebookScopedLocalStorage, tt as useCellIds, un as UIElementId, vn as selectAtom, w as AccordionItem, wn as Trigger2, wt as customPythonLanguageSupport, xn as Content2, xt as isInternalCellName, zt as PluralWords, __tla as __tla_0 } from "./html-to-image-
|
|
25
|
+
import { $ as reducer, B as safeExtractSetUIElementMessageBuffers, Bn as CircleAlert, Bt as DATA_TYPE_ICON, C as AccordionContent, Cn as Root2$1, Ct as Checkbox, Dn as Table2, Dt as PathBuilder, E as BorderAllIcon, En as Trash2, F as base64ToDataView, Fn as Eye, H as getMarimoExportContext, Ht as require_client, It as jotaiJsonStorage, J as getCellNames, Jt as requestClientAtom, K as createActions, Kt as convertStatsName, L as dataViewToBase64, Ln as Database, Mn as Layers, Mt as generateUUID, Nn as Info, On as PaintRoller, Ot as Paths, Pn as FileText, Pt as repl, Q as numColumnsAtom, Rn as Columns2, S as Accordion, Sn as Item$1, St as normalizeName, T as AccordionTrigger, Tt as MarkdownLanguageAdapter, U as hasTrustedExportContext, V as renderHTML, Vn as Braces, W as hasRunAnyCellAtom, X as notebookAtom, Xt as isUninstantiated, Y as hasOnlyOneCellAtom, Yt as useRequestClient, Z as notebookOutline, _n as atomWithStorage, a as useCellFocusActions, an as parseDataset, bt as getValidName, cn as HTMLCellId, ct as initialModeAtom, dn as findCellId, et as useCellActions, f as isOutputEmpty, fn as OBJECT_ID_ATTR, ft as outputIsLoading, gn as atomWithReducer, ht as headingToIdentifier, i as LazyAnyLanguageCodeMirror, in as parseAttrValue, jn as LoaderCircle, jt as DeferredRequestRegistry, k as ChevronDownIcon, lt as kioskModeAtom, mn as jsonParseWithSpecialChar, mt as isErrorMime, n as Spinner, o as useLastFocusedCellId, on as parseInitialValue, p as useExpandedConsoleOutput, pn as RANDOM_ID_ATTR, pt as outputIsStale, qt as getRequestClient, rt as createCell, s as maybeAddAltairImport, st as getInitialAppMode, tn as NotebookScopedLocalStorage, tt as useCellIds, un as UIElementId, vn as selectAtom, w as AccordionItem, wn as Trigger2, wt as customPythonLanguageSupport, xn as Content2, xt as isInternalCellName, zt as PluralWords, __tla as __tla_0 } from "./html-to-image-D3CbHZwH.js";
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BNjes6Yx.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-Dk6PV_d3.js";
|
|
28
28
|
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-X7FwLJni.js";
|
|
29
|
-
import { $ as contextAwarePanelOpen, $t as $fae977aafc393c5c$export$6b862160d295c8e, A as prettifyRowCount, At as SELECT_COLUMN_ID, B as DatePicker, Bt as TabsContent, C as downloadSizeLimitAtom, Ct as DelayMount, D as ErrorState, Dt as loadTableAndRawData, E as EmptyState, Et as getPageIndexForRow, F as ContextMenuSeparator, Ft as Maps, G as CommandEmpty, Gt as ChartLoadingState, H as Combobox, Ht as TabsTrigger, I as ContextMenuTrigger, It as dateToLocalISODate, J as CommandList, Jt as RenderTextWithLinks, K as CommandInput, Kt as LazyVegaEmbed, L as useInternalStateWithSync, Lt as dateToLocalISODateTime, M as ContextMenu, Mt as toFieldTypes, N as ContextMenuContent, Nt as getMimeValues, O as LoadingState, Ot as loadTableData, P as ContextMenuItem, Pt as isNullishFilter, Q as PANEL_TYPES, Qt as $fae977aafc393c5c$export$588937bcd60ade55, R as useSelectList, Rt as dateToLocalISOTime, S as Filenames, St as ColumnChartSpecModel, T as ColumnPreviewContainer, Tt as usePrevious$1, U as ComboboxItem, Ut as ChartErrorState, V as DateRangePicker, Vt as TabsList, W as Command, Wt as ChartInfoState, X as smartMatch, Xt as HtmlOutput, Y as CommandSeparator, Yt as Kbd, Z as ContextAwarePanelItem, Zt as EmotionCacheProvider, _ as ADD_PRINTING_CLASS, _t as NAMELESS_COLUMN_PREFIX, an as Ellipsis, at as Toggle, b as downloadHTMLAsImage, bt as renderCellValue, c as Slide, cn as ChevronsUpDown, d as RadioGroupItem, dn as ChevronsDownUp, dt as Table, en as TextWrap, et as contextAwarePanelOwner, f as JsonOutput, fn as ChevronLeft, ft as TableBody, g as InstallPackageButton, gt as TableRow, h as DataTable, ht as TableHeader, it as slotsController, j as getColumnCountForDisplay, jt as TOO_MANY_ROWS, k as prettifyRowColumnCount, kt as INDEX_COLUMN_NAME, l as Switch, ln as ChevronsRight, lt as Fill, m as OutputRenderer, mt as TableHead, n as marimoVersionAtom, nn as Funnel, nt as isCellAwareAtom, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as Download, p as OutputArea, pn as ArrowDownWideNarrow, pt as TableCell, q as CommandItem, qt as useOverflowDetection, r as showCodeInRunModeAtom, rn as EyeOff, rt as SlotNames, sn as Code, t as useNotebookCodeAvailable, tn as GripHorizontal, tt as contextAwarePanelType, u as RadioGroup, un as ChevronsLeft, ut as Provider$1, v as downloadBlob, vt as generateColumns, w as ColumnName, wt as useIntersectionObserver, x as Progress, xt as ColumnChartContext, y as downloadByURL, yt as inferFieldTypes, z as CompactChipRow, zt as Tabs, __tla as __tla_2 } from "./code-visibility-
|
|
29
|
+
import { $ as contextAwarePanelOpen, $t as $fae977aafc393c5c$export$6b862160d295c8e, A as prettifyRowCount, At as SELECT_COLUMN_ID, B as DatePicker, Bt as TabsContent, C as downloadSizeLimitAtom, Ct as DelayMount, D as ErrorState, Dt as loadTableAndRawData, E as EmptyState, Et as getPageIndexForRow, F as ContextMenuSeparator, Ft as Maps, G as CommandEmpty, Gt as ChartLoadingState, H as Combobox, Ht as TabsTrigger, I as ContextMenuTrigger, It as dateToLocalISODate, J as CommandList, Jt as RenderTextWithLinks, K as CommandInput, Kt as LazyVegaEmbed, L as useInternalStateWithSync, Lt as dateToLocalISODateTime, M as ContextMenu, Mt as toFieldTypes, N as ContextMenuContent, Nt as getMimeValues, O as LoadingState, Ot as loadTableData, P as ContextMenuItem, Pt as isNullishFilter, Q as PANEL_TYPES, Qt as $fae977aafc393c5c$export$588937bcd60ade55, R as useSelectList, Rt as dateToLocalISOTime, S as Filenames, St as ColumnChartSpecModel, T as ColumnPreviewContainer, Tt as usePrevious$1, U as ComboboxItem, Ut as ChartErrorState, V as DateRangePicker, Vt as TabsList, W as Command, Wt as ChartInfoState, X as smartMatch, Xt as HtmlOutput, Y as CommandSeparator, Yt as Kbd, Z as ContextAwarePanelItem, Zt as EmotionCacheProvider, _ as ADD_PRINTING_CLASS, _t as NAMELESS_COLUMN_PREFIX, an as Ellipsis, at as Toggle, b as downloadHTMLAsImage, bt as renderCellValue, c as Slide, cn as ChevronsUpDown, d as RadioGroupItem, dn as ChevronsDownUp, dt as Table, en as TextWrap, et as contextAwarePanelOwner, f as JsonOutput, fn as ChevronLeft, ft as TableBody, g as InstallPackageButton, gt as TableRow, h as DataTable, ht as TableHeader, it as slotsController, j as getColumnCountForDisplay, jt as TOO_MANY_ROWS, k as prettifyRowColumnCount, kt as INDEX_COLUMN_NAME, l as Switch, ln as ChevronsRight, lt as Fill, m as OutputRenderer, mt as TableHead, n as marimoVersionAtom, nn as Funnel, nt as isCellAwareAtom, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as Download, p as OutputArea, pn as ArrowDownWideNarrow, pt as TableCell, q as CommandItem, qt as useOverflowDetection, r as showCodeInRunModeAtom, rn as EyeOff, rt as SlotNames, sn as Code, t as useNotebookCodeAvailable, tn as GripHorizontal, tt as contextAwarePanelType, u as RadioGroup, un as ChevronsLeft, ut as Provider$1, v as downloadBlob, vt as generateColumns, w as ColumnName, wt as useIntersectionObserver, x as Progress, xt as ColumnChartContext, y as downloadByURL, yt as inferFieldTypes, z as CompactChipRow, zt as Tabs, __tla as __tla_2 } from "./code-visibility-DC9HexXh.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-00mO3OSS.js";
|
|
31
31
|
import { t as Check } from "./check-BCaJeT-J.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-J57tzLr3.js";
|
|
33
33
|
import { H as $64fa3d84918910a7$export$df3a06d6289f983e, Ht as $ff5963eb1fccf552$export$e08e3b67e392101e, J as useDebouncedCallback, L as $64fa3d84918910a7$export$29f1550f4b0d4415, Nt as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, Pt as $3ef42575df84b30b$export$9d1611c77c2fe928, R as $64fa3d84918910a7$export$4d86445c2cf5e3, _ as DropdownMenuShortcut, a as NumberField, at as $701a24aa0da5b062$export$ea18c227d4417cc3, c as prettyNumber, d as DropdownMenuContent, dt as $6179b936705e76d3$export$ae780daf29e6d456, f as DropdownMenuGroup, g as DropdownMenuSeparator, i as OnBlurredInput, it as $f7dceffc5ad7768b$export$4e328f61c538687f, l as prettyScientificNumber, m as DropdownMenuLabel, mn as ChevronRight, n as DebouncedNumberInput, p as DropdownMenuItem, pn as Circle, q as useDebounceControlledState, r as Input, t as DebouncedInput, u as DropdownMenu, x as DropdownMenuTrigger, yt as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./input-CMYy4hzj.js";
|
|
34
34
|
import { _ as isWasm, c as asRemoteURL, d as isStaticNotebook, f as appendQueryParams, g as Deferred, m as require_cuid2, u as getStaticVirtualFiles, v as CircleQuestionMark } from "./toDate-d8RCRrRd.js";
|
|
35
|
-
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, d as Square, f as File, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-
|
|
35
|
+
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, d as Square, f as File, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-MAetFLBT.js";
|
|
36
36
|
import { n as Trash, r as Pencil, t as BulkEdit } from "./types-ChtMFmZ2.js";
|
|
37
37
|
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-DpbaKVv7.js";
|
|
38
38
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
39
39
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
40
40
|
import { $ as isInVscodeExtension, A as looseObject, B as union, C as any, F as optional, G as parse$1, I as record, J as prettifyError, K as parseAsync, N as number, O as lazy$2, P as object, R as string, S as _null, T as boolean, U as ZodError, V as unknown, _ as ZodString, _t as createContextScope, a as ZodIssueCode, b as _enum, c as ZodBoolean, ct as DismissableLayer, d as ZodDiscriminatedUnion, dt as useId$11, et as StyleNamespace, f as ZodEnum, ft as Presence, g as ZodOptional, h as ZodObject, ht as composeEventHandlers$1, i as string$1, j as nan, k as literal, l as ZodDate, m as ZodNumber, mt as useLayoutEffect2, n as date, o as ZodAny, p as ZodLiteral, pt as useControllableState, q as $ZodError, r as number$1, rt as __awaiter, s as ZodArray, t as zod_default, u as ZodDefault, ut as useCallbackRef, v as ZodType, vt as Primitive, w as array, x as _instanceof, y as ZodUnion, yt as dispatchDiscreteCustomEvent, z as tuple } from "./zod-aLSua2NL.js";
|
|
41
|
-
import {
|
|
41
|
+
import { a as prettyError, i as FunctionNotFoundError, n as ErrorBanner, r as CellNotInitializedError, t as Banner } from "./error-banner-CJXYJ6Sb.js";
|
|
42
42
|
import { t as Label } from "./label-CC4ytI1X.js";
|
|
43
43
|
import { a as TooltipRoot, i as TooltipProvider, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, t as Tooltip } from "./tooltip-DpcyNkQ2.js";
|
|
44
44
|
import { f as CopyClipboardIcon } from "./extends-D_hDsj6R.js";
|
|
@@ -6993,33 +6993,33 @@ let __tla = Promise.all([
|
|
|
6993
6993
|
}), B = C({
|
|
6994
6994
|
height: 0,
|
|
6995
6995
|
width: 0
|
|
6996
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
6996
|
+
}), H = U(), W = U(), G = C(0), q = C(null), KU = C({
|
|
6997
6997
|
column: 0,
|
|
6998
6998
|
row: 0
|
|
6999
|
-
}), Z = U(),
|
|
7000
|
-
Y(x(b, $(
|
|
7001
|
-
D(
|
|
7002
|
-
}), Y(x(ut(b,
|
|
7003
|
-
D(
|
|
6999
|
+
}), Z = U(), qU = U(), JU = C(false), YU = C(0), XU = C(true), ZU = C(false), QU = C(false);
|
|
7000
|
+
Y(x(b, $(YU), P(([e2, r2]) => !!r2)), () => {
|
|
7001
|
+
D(XU, false);
|
|
7002
|
+
}), Y(x(ut(b, XU, B, z, YU, ZU), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7003
|
+
D(ZU, true), Ue(1, () => {
|
|
7004
7004
|
D(H, e2);
|
|
7005
7005
|
}), Et(x(h), () => {
|
|
7006
7006
|
D(r, [
|
|
7007
7007
|
0,
|
|
7008
7008
|
0
|
|
7009
|
-
]), D(
|
|
7009
|
+
]), D(XU, true);
|
|
7010
7010
|
});
|
|
7011
|
-
}), F(x(
|
|
7012
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7013
|
-
D(
|
|
7011
|
+
}), F(x(qU, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(qU), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7012
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(KU, e2.gap), e2.scrollTop > 0 && (D(JU, true), Et(x(h, Kt(1)), (e3) => {
|
|
7013
|
+
D(JU, false);
|
|
7014
7014
|
}), D(m, {
|
|
7015
7015
|
top: e2.scrollTop
|
|
7016
7016
|
})));
|
|
7017
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7017
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(KU, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7018
7018
|
gap: c2,
|
|
7019
7019
|
item: r2,
|
|
7020
7020
|
scrollTop: l2,
|
|
7021
7021
|
viewport: e2
|
|
7022
|
-
}))), Z), F(x(ut(V(I), l, V(
|
|
7022
|
+
}))), Z), F(x(ut(V(I), l, V(KU, Or), V(B, xe), V(z, xe), V(q), V(L), V(JU), V(XU), V(YU)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7023
7023
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7024
7024
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7025
7025
|
if (y2 === 0) {
|
|
@@ -7038,23 +7038,23 @@ let __tla = Promise.all([
|
|
|
7038
7038
|
offsetTop: j2,
|
|
7039
7039
|
top: j2
|
|
7040
7040
|
};
|
|
7041
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7041
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, KU), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7042
7042
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7043
7043
|
return [
|
|
7044
7044
|
d2,
|
|
7045
7045
|
u2
|
|
7046
7046
|
];
|
|
7047
7047
|
}), J(ce)), r);
|
|
7048
|
-
let
|
|
7049
|
-
F(x(h, $(
|
|
7050
|
-
let
|
|
7048
|
+
let $U = C(false);
|
|
7049
|
+
F(x(h, $($U), k(([e2, r2]) => r2 || e2 !== 0)), $U);
|
|
7050
|
+
let eW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $($U), P(([[e2, r2], c2]) => {
|
|
7051
7051
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7052
7052
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7053
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7053
|
+
}), k(([[, e2]]) => e2 - 1), J())), tW = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), nW = bt(x(V(R), $(JU), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7054
7054
|
endIndex: e2[e2.length - 1].index,
|
|
7055
7055
|
startIndex: e2[0].index
|
|
7056
7056
|
})), J(An), Gt(0)));
|
|
7057
|
-
F(
|
|
7057
|
+
F(nW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, KU), k(([e2, r2, c2, l2, u2]) => {
|
|
7058
7058
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7059
7059
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7060
7060
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7063,7 +7063,7 @@ let __tla = Promise.all([
|
|
|
7063
7063
|
top: g2
|
|
7064
7064
|
};
|
|
7065
7065
|
})), m);
|
|
7066
|
-
let
|
|
7066
|
+
let rW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7067
7067
|
return F(x(j, k((e2) => ({
|
|
7068
7068
|
height: e2.visibleHeight,
|
|
7069
7069
|
width: e2.visibleWidth
|
|
@@ -7072,13 +7072,13 @@ let __tla = Promise.all([
|
|
|
7072
7072
|
data: q,
|
|
7073
7073
|
deviation: G,
|
|
7074
7074
|
footerHeight: u,
|
|
7075
|
-
gap:
|
|
7075
|
+
gap: KU,
|
|
7076
7076
|
headerHeight: d,
|
|
7077
7077
|
increaseViewportBy: e,
|
|
7078
7078
|
initialItemCount: L,
|
|
7079
7079
|
itemDimensions: B,
|
|
7080
7080
|
overscan: c,
|
|
7081
|
-
restoreStateFrom:
|
|
7081
|
+
restoreStateFrom: qU,
|
|
7082
7082
|
scrollBy: f,
|
|
7083
7083
|
scrollContainerState: p,
|
|
7084
7084
|
scrollHeight: W,
|
|
@@ -7094,16 +7094,16 @@ let __tla = Promise.all([
|
|
|
7094
7094
|
windowViewportRect: j,
|
|
7095
7095
|
...y,
|
|
7096
7096
|
gridState: R,
|
|
7097
|
-
horizontalDirection:
|
|
7098
|
-
initialTopMostItemIndex:
|
|
7099
|
-
totalListHeight:
|
|
7097
|
+
horizontalDirection: QU,
|
|
7098
|
+
initialTopMostItemIndex: YU,
|
|
7099
|
+
totalListHeight: rW,
|
|
7100
7100
|
...v,
|
|
7101
|
-
endReached:
|
|
7101
|
+
endReached: eW,
|
|
7102
7102
|
propsReady: S,
|
|
7103
|
-
rangeChanged:
|
|
7104
|
-
startReached:
|
|
7103
|
+
rangeChanged: nW,
|
|
7104
|
+
startReached: tW,
|
|
7105
7105
|
stateChanged: Z,
|
|
7106
|
-
stateRestoreInProgress:
|
|
7106
|
+
stateRestoreInProgress: JU,
|
|
7107
7107
|
...M
|
|
7108
7108
|
};
|
|
7109
7109
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7381,7 +7381,7 @@ let __tla = Promise.all([
|
|
|
7381
7381
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7382
7382
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7383
7383
|
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7384
|
-
let
|
|
7384
|
+
let KU = q, Z;
|
|
7385
7385
|
if (r[13] !== G.bulkActions) {
|
|
7386
7386
|
if (Z = G.bulkActions.map(_temp$27), Z.length > 0) {
|
|
7387
7387
|
let e2;
|
|
@@ -7391,12 +7391,12 @@ let __tla = Promise.all([
|
|
|
7391
7391
|
}
|
|
7392
7392
|
r[13] = G.bulkActions, r[14] = Z;
|
|
7393
7393
|
} else Z = r[14];
|
|
7394
|
-
let
|
|
7395
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7394
|
+
let qU;
|
|
7395
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (qU = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7396
7396
|
"data-slot": "select-separator"
|
|
7397
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7398
|
-
let
|
|
7399
|
-
r[19] !== Z || r[20] !== G || r[21] !==
|
|
7397
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = qU) : qU = r[18];
|
|
7398
|
+
let JU = qU, YU;
|
|
7399
|
+
r[19] !== Z || r[20] !== G || r[21] !== JU || r[22] !== w || r[23] !== B || r[24] !== H ? (YU = () => {
|
|
7400
7400
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7401
7401
|
"data-slot": "select-list",
|
|
7402
7402
|
style: {
|
|
@@ -7409,7 +7409,7 @@ let __tla = Promise.all([
|
|
|
7409
7409
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7410
7410
|
children: [
|
|
7411
7411
|
e3 === 0 && Z,
|
|
7412
|
-
|
|
7412
|
+
JU(e3),
|
|
7413
7413
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7414
7414
|
option: r2,
|
|
7415
7415
|
checked: G.isChecked(r2.value),
|
|
@@ -7420,7 +7420,7 @@ let __tla = Promise.all([
|
|
|
7420
7420
|
}
|
|
7421
7421
|
});
|
|
7422
7422
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7423
|
-
let c2 =
|
|
7423
|
+
let c2 = JU(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7424
7424
|
option: e3,
|
|
7425
7425
|
checked: G.isChecked(e3.value),
|
|
7426
7426
|
renderOption: w
|
|
@@ -7438,9 +7438,9 @@ let __tla = Promise.all([
|
|
|
7438
7438
|
e2
|
|
7439
7439
|
]
|
|
7440
7440
|
});
|
|
7441
|
-
}, r[19] = Z, r[20] = G, r[21] =
|
|
7442
|
-
let
|
|
7443
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7441
|
+
}, r[19] = Z, r[20] = G, r[21] = JU, r[22] = w, r[23] = B, r[24] = H, r[25] = YU) : YU = r[25];
|
|
7442
|
+
let XU = YU, ZU;
|
|
7443
|
+
r[26] !== G.labelOf || r[27] !== I ? (ZU = (e2) => {
|
|
7444
7444
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7445
7445
|
e2
|
|
7446
7446
|
];
|
|
@@ -7451,46 +7451,46 @@ let __tla = Promise.all([
|
|
|
7451
7451
|
items: r2.map(G.labelOf),
|
|
7452
7452
|
max: 3
|
|
7453
7453
|
});
|
|
7454
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7455
|
-
let
|
|
7456
|
-
r[29] === G ?
|
|
7457
|
-
let
|
|
7458
|
-
r[31] !== b || r[32] !== R ? (
|
|
7454
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = ZU) : ZU = r[28];
|
|
7455
|
+
let QU = ZU, $U = e["data-testid"], eW;
|
|
7456
|
+
r[29] === G ? eW = r[30] : (eW = (e2) => G.labelOf(e2), r[29] = G, r[30] = eW);
|
|
7457
|
+
let tW = M ? QU : void 0, nW;
|
|
7458
|
+
r[31] !== b || r[32] !== R ? (nW = cn({
|
|
7459
7459
|
"w-full": R
|
|
7460
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7461
|
-
let
|
|
7462
|
-
r[34] === z ?
|
|
7463
|
-
let
|
|
7464
|
-
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] !==
|
|
7460
|
+
}, b), r[31] = b, r[32] = R, r[33] = nW) : nW = r[33];
|
|
7461
|
+
let rW = G.searchQuery, iW = G.setSearchQuery, aW = G.open, oW = G.setOpen, sW;
|
|
7462
|
+
r[34] === z ? sW = r[35] : (sW = renderSlot(z), r[34] = z, r[35] = sW);
|
|
7463
|
+
let cW;
|
|
7464
|
+
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] !== $U || r[44] !== eW || r[45] !== tW || r[46] !== nW || r[47] !== sW ? (cW = {
|
|
7465
7465
|
"data-slot": "select-root",
|
|
7466
|
-
"data-testid":
|
|
7467
|
-
displayValue:
|
|
7468
|
-
renderValue:
|
|
7466
|
+
"data-testid": $U,
|
|
7467
|
+
displayValue: eW,
|
|
7468
|
+
renderValue: tW,
|
|
7469
7469
|
placeholder: I,
|
|
7470
|
-
className:
|
|
7470
|
+
className: nW,
|
|
7471
7471
|
shouldFilter: false,
|
|
7472
|
-
search:
|
|
7473
|
-
onSearchChange:
|
|
7474
|
-
open:
|
|
7475
|
-
onOpenChange:
|
|
7476
|
-
emptyState:
|
|
7472
|
+
search: rW,
|
|
7473
|
+
onSearchChange: iW,
|
|
7474
|
+
open: aW,
|
|
7475
|
+
onOpenChange: oW,
|
|
7476
|
+
emptyState: sW,
|
|
7477
7477
|
disabled: L,
|
|
7478
7478
|
id: S
|
|
7479
|
-
}, 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] =
|
|
7480
|
-
let
|
|
7481
|
-
return r[49] !==
|
|
7482
|
-
...
|
|
7479
|
+
}, 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] = $U, r[44] = eW, r[45] = tW, r[46] = nW, r[47] = sW, r[48] = cW) : cW = r[48];
|
|
7480
|
+
let lW = cW, uW;
|
|
7481
|
+
return r[49] !== lW || r[50] !== KU || r[51] !== d || r[52] !== XU || r[53] !== l ? (uW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7482
|
+
...lW,
|
|
7483
7483
|
multiple: true,
|
|
7484
7484
|
value: l,
|
|
7485
|
-
onValueChange:
|
|
7486
|
-
children:
|
|
7485
|
+
onValueChange: KU,
|
|
7486
|
+
children: XU()
|
|
7487
7487
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7488
|
-
...
|
|
7488
|
+
...lW,
|
|
7489
7489
|
multiple: false,
|
|
7490
7490
|
value: l,
|
|
7491
|
-
onValueChange:
|
|
7492
|
-
children:
|
|
7493
|
-
}), r[49] =
|
|
7491
|
+
onValueChange: KU,
|
|
7492
|
+
children: XU()
|
|
7493
|
+
}), r[49] = lW, r[50] = KU, r[51] = d, r[52] = XU, r[53] = l, r[54] = uW) : uW = r[54], uW;
|
|
7494
7494
|
}
|
|
7495
7495
|
function _temp$27(e) {
|
|
7496
7496
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -7585,6 +7585,7 @@ let __tla = Promise.all([
|
|
|
7585
7585
|
]
|
|
7586
7586
|
}, r);
|
|
7587
7587
|
}
|
|
7588
|
+
var FUNCTION_NOT_FOUND_MAX_RETRIES = 3, FUNCTION_NOT_FOUND_BASE_DELAY_MS = 150;
|
|
7588
7589
|
function PluginSlotInternal({ hostElement: e, plugin: r, children: c, getInitialValue: l }, u) {
|
|
7589
7590
|
let [p, m] = (0, import_react.useState)(c), [h, _] = (0, import_react.useState)(l()), { theme: v } = useTheme(), [y, b] = (0, import_react.useState)(() => r.validator.safeParse(parseDataset(e))), [S, w] = (0, import_react.useState)(0);
|
|
7590
7591
|
(0, import_react.useImperativeHandle)(u, () => ({
|
|
@@ -7625,11 +7626,9 @@ let __tla = Promise.all([
|
|
|
7625
7626
|
c2[l2] = async (...c3) => {
|
|
7626
7627
|
var _a3;
|
|
7627
7628
|
invariant(c3.length <= 1, `Plugin functions only supports a single argument. Called ${l2}`);
|
|
7628
|
-
let u3 =
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
if (h2 && !p2) {
|
|
7632
|
-
let e2 = store.get(notebookAtom), r3 = e2.cellRuntime[h2], c4 = e2.cellData[h2];
|
|
7629
|
+
let u3 = isStaticNotebook(), p2 = (_a3 = HTMLCellId.findElementThroughShadowDOMs(e)) == null ? void 0 : _a3.id, m2 = p2 ? HTMLCellId.parse(p2) : null;
|
|
7630
|
+
if (m2 && !u3) {
|
|
7631
|
+
let e2 = store.get(notebookAtom), r3 = e2.cellRuntime[m2], c4 = e2.cellData[m2];
|
|
7633
7632
|
if (isUninstantiated({
|
|
7634
7633
|
executionTime: r3.runElapsedTimeMs ?? c4.lastExecutionTime,
|
|
7635
7634
|
status: r3.status,
|
|
@@ -7637,14 +7636,25 @@ let __tla = Promise.all([
|
|
|
7637
7636
|
interrupted: r3.interrupted,
|
|
7638
7637
|
stopped: r3.stopped
|
|
7639
7638
|
})) throw new CellNotInitializedError();
|
|
7640
|
-
} else Logger.warn(`Cell ID ${
|
|
7641
|
-
let
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7639
|
+
} else Logger.warn(`Cell ID ${m2} cannot be found`);
|
|
7640
|
+
let h2 = prettyParse(r2, c3[0]);
|
|
7641
|
+
for (let r3 = 0; ; r3++) {
|
|
7642
|
+
let c4 = getUIElementObjectId(e);
|
|
7643
|
+
invariant(c4, "Object ID should exist");
|
|
7644
|
+
let u4 = await FUNCTIONS_REGISTRY.request({
|
|
7645
|
+
args: h2,
|
|
7646
|
+
functionName: l2,
|
|
7647
|
+
namespace: c4
|
|
7648
|
+
});
|
|
7649
|
+
if (u4.status.code === "ok") return prettyParse(f, u4.return_value);
|
|
7650
|
+
let p3 = u4.found === false;
|
|
7651
|
+
if (p3 && r3 < FUNCTION_NOT_FOUND_MAX_RETRIES) {
|
|
7652
|
+
let e2 = FUNCTION_NOT_FOUND_BASE_DELAY_MS * 2 ** r3;
|
|
7653
|
+
await new Promise((r4) => setTimeout(r4, e2));
|
|
7654
|
+
continue;
|
|
7655
|
+
}
|
|
7656
|
+
throw Logger.error(u4.status), p3 ? new FunctionNotFoundError() : Error(u4.status.message || "Unknown error");
|
|
7657
|
+
}
|
|
7648
7658
|
};
|
|
7649
7659
|
}
|
|
7650
7660
|
return c2;
|
|
@@ -8548,7 +8558,7 @@ let __tla = Promise.all([
|
|
|
8548
8558
|
};
|
|
8549
8559
|
}
|
|
8550
8560
|
};
|
|
8551
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
8561
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-CJOUDE_t.js").then((e) => ({
|
|
8552
8562
|
default: e.Chatbot
|
|
8553
8563
|
}))), messageSchema = array(object({
|
|
8554
8564
|
id: string(),
|
|
@@ -9663,7 +9673,7 @@ let __tla = Promise.all([
|
|
|
9663
9673
|
let m2 = get(l, e2);
|
|
9664
9674
|
if (m2) {
|
|
9665
9675
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
9666
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
9676
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : KU(e2, l2), f.mount && w();
|
|
9667
9677
|
}
|
|
9668
9678
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
9669
9679
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -9736,14 +9746,14 @@ let __tla = Promise.all([
|
|
|
9736
9746
|
}, H = () => {
|
|
9737
9747
|
for (let e2 of p.unMount) {
|
|
9738
9748
|
let r2 = get(l, e2);
|
|
9739
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
9749
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && nW(e2);
|
|
9740
9750
|
}
|
|
9741
9751
|
p.unMount = /* @__PURE__ */ new Set();
|
|
9742
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
9752
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(ZU(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
9743
9753
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
9744
9754
|
[e2]: r2
|
|
9745
9755
|
} : r2
|
|
9746
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
9756
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), KU = (e2, r2, c2 = {}) => {
|
|
9747
9757
|
let u2 = get(l, e2), f2 = r2;
|
|
9748
9758
|
if (u2) {
|
|
9749
9759
|
let c3 = u2._f;
|
|
@@ -9756,13 +9766,13 @@ let __tla = Promise.all([
|
|
|
9756
9766
|
}
|
|
9757
9767
|
})));
|
|
9758
9768
|
}
|
|
9759
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
9769
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && XU(e2);
|
|
9760
9770
|
}, Z = (e2, r2, c2) => {
|
|
9761
9771
|
for (let u2 in r2) {
|
|
9762
9772
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
9763
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) :
|
|
9773
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) : KU(f2, d2, c2);
|
|
9764
9774
|
}
|
|
9765
|
-
},
|
|
9775
|
+
}, qU = (e2, r2, m2 = {}) => {
|
|
9766
9776
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
9767
9777
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
9768
9778
|
name: e2,
|
|
@@ -9773,7 +9783,7 @@ let __tla = Promise.all([
|
|
|
9773
9783
|
name: e2,
|
|
9774
9784
|
dirtyFields: getDirtyFields(u, d),
|
|
9775
9785
|
isDirty: W(e2, y2)
|
|
9776
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) :
|
|
9786
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) : KU(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
9777
9787
|
...c
|
|
9778
9788
|
}), _.values.next({
|
|
9779
9789
|
name: f.mount ? e2 : void 0,
|
|
@@ -9781,7 +9791,7 @@ let __tla = Promise.all([
|
|
|
9781
9791
|
...d
|
|
9782
9792
|
}
|
|
9783
9793
|
});
|
|
9784
|
-
},
|
|
9794
|
+
}, JU = async (e2) => {
|
|
9785
9795
|
f.mount = true;
|
|
9786
9796
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
9787
9797
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -9815,11 +9825,11 @@ let __tla = Promise.all([
|
|
|
9815
9825
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
9816
9826
|
h2
|
|
9817
9827
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
9818
|
-
S2 && (E2._f.deps &&
|
|
9828
|
+
S2 && (E2._f.deps && XU(E2._f.deps), L(h2, f2, u3, G2));
|
|
9819
9829
|
}
|
|
9820
|
-
},
|
|
9830
|
+
}, YU = (e2, r2) => {
|
|
9821
9831
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
9822
|
-
},
|
|
9832
|
+
}, XU = async (e2, u2 = {}) => {
|
|
9823
9833
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
9824
9834
|
if (r.resolver) {
|
|
9825
9835
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -9838,23 +9848,23 @@ let __tla = Promise.all([
|
|
|
9838
9848
|
isValid: d2
|
|
9839
9849
|
} : {},
|
|
9840
9850
|
errors: c.errors
|
|
9841
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
9842
|
-
},
|
|
9851
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, YU, e2 ? m2 : p.mount), f2;
|
|
9852
|
+
}, ZU = (e2) => {
|
|
9843
9853
|
let r2 = {
|
|
9844
9854
|
...f.mount ? d : u
|
|
9845
9855
|
};
|
|
9846
9856
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
9847
|
-
},
|
|
9857
|
+
}, QU = (e2, r2) => ({
|
|
9848
9858
|
invalid: !!get((r2 || c).errors, e2),
|
|
9849
9859
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
9850
9860
|
error: get((r2 || c).errors, e2),
|
|
9851
9861
|
isValidating: !!get(c.validatingFields, e2),
|
|
9852
9862
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
9853
|
-
}),
|
|
9863
|
+
}), $U = (e2) => {
|
|
9854
9864
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
9855
9865
|
errors: e2 ? c.errors : {}
|
|
9856
9866
|
});
|
|
9857
|
-
},
|
|
9867
|
+
}, eW = (e2, r2, u2) => {
|
|
9858
9868
|
let d2 = (get(l, e2, {
|
|
9859
9869
|
_f: {}
|
|
9860
9870
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -9867,9 +9877,9 @@ let __tla = Promise.all([
|
|
|
9867
9877
|
errors: c.errors,
|
|
9868
9878
|
isValid: false
|
|
9869
9879
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
9870
|
-
},
|
|
9880
|
+
}, tW = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
9871
9881
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
9872
|
-
}) : G(e2, r2, true),
|
|
9882
|
+
}) : G(e2, r2, true), nW = (e2, f2 = {}) => {
|
|
9873
9883
|
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);
|
|
9874
9884
|
_.values.next({
|
|
9875
9885
|
values: {
|
|
@@ -9881,9 +9891,9 @@ let __tla = Promise.all([
|
|
|
9881
9891
|
isDirty: W()
|
|
9882
9892
|
} : {}
|
|
9883
9893
|
}), !f2.keepIsValid && w();
|
|
9884
|
-
},
|
|
9894
|
+
}, rW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
9885
9895
|
(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));
|
|
9886
|
-
},
|
|
9896
|
+
}, iW = (e2, c2 = {}) => {
|
|
9887
9897
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
9888
9898
|
return set(l, e2, {
|
|
9889
9899
|
...d2 || {},
|
|
@@ -9897,7 +9907,7 @@ let __tla = Promise.all([
|
|
|
9897
9907
|
mount: true,
|
|
9898
9908
|
...c2
|
|
9899
9909
|
}
|
|
9900
|
-
}), p.mount.add(e2), d2 ?
|
|
9910
|
+
}), p.mount.add(e2), d2 ? rW({
|
|
9901
9911
|
field: d2,
|
|
9902
9912
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
9903
9913
|
name: e2
|
|
@@ -9914,11 +9924,11 @@ let __tla = Promise.all([
|
|
|
9914
9924
|
pattern: getRuleValue(c2.pattern)
|
|
9915
9925
|
} : {},
|
|
9916
9926
|
name: e2,
|
|
9917
|
-
onChange:
|
|
9918
|
-
onBlur:
|
|
9927
|
+
onChange: JU,
|
|
9928
|
+
onBlur: JU,
|
|
9919
9929
|
ref: (m3) => {
|
|
9920
9930
|
if (m3) {
|
|
9921
|
-
|
|
9931
|
+
iW(e2, c2), d2 = get(l, e2);
|
|
9922
9932
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
9923
9933
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
9924
9934
|
set(l, e2, {
|
|
@@ -9944,7 +9954,7 @@ let __tla = Promise.all([
|
|
|
9944
9954
|
} 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);
|
|
9945
9955
|
}
|
|
9946
9956
|
};
|
|
9947
|
-
},
|
|
9957
|
+
}, aW = () => r.shouldFocusError && iterateFieldsByAction(l, YU, p.mount), oW = (e2) => {
|
|
9948
9958
|
isBoolean(e2) && (_.state.next({
|
|
9949
9959
|
disabled: e2
|
|
9950
9960
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -9953,7 +9963,7 @@ let __tla = Promise.all([
|
|
|
9953
9963
|
r3.disabled = u2._f.disabled || e2;
|
|
9954
9964
|
}));
|
|
9955
9965
|
}, 0, false));
|
|
9956
|
-
},
|
|
9966
|
+
}, sW = (e2, u2) => async (f2) => {
|
|
9957
9967
|
let m2;
|
|
9958
9968
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
9959
9969
|
let h2 = cloneObject(d);
|
|
@@ -9975,7 +9985,7 @@ let __tla = Promise.all([
|
|
|
9975
9985
|
}
|
|
9976
9986
|
} else u2 && await u2({
|
|
9977
9987
|
...c.errors
|
|
9978
|
-
}, f2),
|
|
9988
|
+
}, f2), aW(), setTimeout(aW);
|
|
9979
9989
|
if (_.state.next({
|
|
9980
9990
|
isSubmitted: true,
|
|
9981
9991
|
isSubmitting: false,
|
|
@@ -9983,11 +9993,11 @@ let __tla = Promise.all([
|
|
|
9983
9993
|
submitCount: c.submitCount + 1,
|
|
9984
9994
|
errors: c.errors
|
|
9985
9995
|
}), m2) throw m2;
|
|
9986
|
-
},
|
|
9987
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
9996
|
+
}, cW = (e2, r2 = {}) => {
|
|
9997
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? qU(e2, cloneObject(get(u, e2))) : (qU(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({
|
|
9988
9998
|
...c
|
|
9989
9999
|
}));
|
|
9990
|
-
},
|
|
10000
|
+
}, lW = (e2, m2 = {}) => {
|
|
9991
10001
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
9992
10002
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
9993
10003
|
if (m2.keepDirtyValues) {
|
|
@@ -9995,7 +10005,7 @@ let __tla = Promise.all([
|
|
|
9995
10005
|
...p.mount,
|
|
9996
10006
|
...Object.keys(getDirtyFields(u, d))
|
|
9997
10007
|
]);
|
|
9998
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10008
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : qU(r2, get(b2, r2));
|
|
9999
10009
|
} else {
|
|
10000
10010
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10001
10011
|
let r2 = get(l, e3);
|
|
@@ -10040,25 +10050,25 @@ let __tla = Promise.all([
|
|
|
10040
10050
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10041
10051
|
isSubmitting: false
|
|
10042
10052
|
});
|
|
10043
|
-
},
|
|
10053
|
+
}, uW = (e2, r2) => lW(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10044
10054
|
return {
|
|
10045
10055
|
control: {
|
|
10046
|
-
register:
|
|
10047
|
-
unregister:
|
|
10048
|
-
getFieldState:
|
|
10049
|
-
handleSubmit:
|
|
10050
|
-
setError:
|
|
10056
|
+
register: iW,
|
|
10057
|
+
unregister: nW,
|
|
10058
|
+
getFieldState: QU,
|
|
10059
|
+
handleSubmit: sW,
|
|
10060
|
+
setError: eW,
|
|
10051
10061
|
_executeSchema: R,
|
|
10052
10062
|
_getWatch: G,
|
|
10053
10063
|
_getDirty: W,
|
|
10054
10064
|
_updateValid: w,
|
|
10055
10065
|
_removeUnmounted: H,
|
|
10056
10066
|
_updateFieldArray: E,
|
|
10057
|
-
_updateDisabledField:
|
|
10067
|
+
_updateDisabledField: rW,
|
|
10058
10068
|
_getFieldArray: q,
|
|
10059
|
-
_reset:
|
|
10069
|
+
_reset: lW,
|
|
10060
10070
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10061
|
-
|
|
10071
|
+
uW(e2, r.resetOptions), _.state.next({
|
|
10062
10072
|
isLoading: false
|
|
10063
10073
|
});
|
|
10064
10074
|
}),
|
|
@@ -10068,7 +10078,7 @@ let __tla = Promise.all([
|
|
|
10068
10078
|
...e2
|
|
10069
10079
|
};
|
|
10070
10080
|
},
|
|
10071
|
-
_disableForm:
|
|
10081
|
+
_disableForm: oW,
|
|
10072
10082
|
_subjects: _,
|
|
10073
10083
|
_proxyFormState: g,
|
|
10074
10084
|
_setErrors: j,
|
|
@@ -10109,17 +10119,17 @@ let __tla = Promise.all([
|
|
|
10109
10119
|
};
|
|
10110
10120
|
}
|
|
10111
10121
|
},
|
|
10112
|
-
trigger:
|
|
10113
|
-
register:
|
|
10114
|
-
handleSubmit:
|
|
10115
|
-
watch:
|
|
10116
|
-
setValue:
|
|
10117
|
-
getValues:
|
|
10118
|
-
reset:
|
|
10119
|
-
resetField:
|
|
10120
|
-
clearErrors:
|
|
10121
|
-
unregister:
|
|
10122
|
-
setError:
|
|
10122
|
+
trigger: XU,
|
|
10123
|
+
register: iW,
|
|
10124
|
+
handleSubmit: sW,
|
|
10125
|
+
watch: tW,
|
|
10126
|
+
setValue: qU,
|
|
10127
|
+
getValues: ZU,
|
|
10128
|
+
reset: uW,
|
|
10129
|
+
resetField: cW,
|
|
10130
|
+
clearErrors: $U,
|
|
10131
|
+
unregister: nW,
|
|
10132
|
+
setError: eW,
|
|
10123
10133
|
setFocus: (e2, r2 = {}) => {
|
|
10124
10134
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10125
10135
|
if (u2) {
|
|
@@ -10127,7 +10137,7 @@ let __tla = Promise.all([
|
|
|
10127
10137
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10128
10138
|
}
|
|
10129
10139
|
},
|
|
10130
|
-
getFieldState:
|
|
10140
|
+
getFieldState: QU
|
|
10131
10141
|
};
|
|
10132
10142
|
}
|
|
10133
10143
|
function useForm(e = {}) {
|
|
@@ -14377,21 +14387,21 @@ ${c}
|
|
|
14377
14387
|
_.pageSize,
|
|
14378
14388
|
_.pageIndex
|
|
14379
14389
|
], r[35] = w, r[36] = _.pageIndex, r[37] = _.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = u, r[44] = y, r[45] = m, r[46] = B, r[47] = H) : H = r[47];
|
|
14380
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
14381
|
-
r[48] !== Z || r[49] !== e ? (
|
|
14382
|
-
let
|
|
14383
|
-
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] !==
|
|
14390
|
+
let { data: W, error: G, isPending: q, isFetching: KU } = useAsyncData(z, H), Z = useAtomValue(downloadSizeLimitAtom), qU;
|
|
14391
|
+
r[48] !== Z || r[49] !== e ? (qU = 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] = qU) : qU = r[50];
|
|
14392
|
+
let JU = e.showDownload, YU = e.get_size_bytes, XU = e.lazy, ZU = e.totalRows, QU = useDeepCompareMemoize(w), $U = useDeepCompareMemoize(m), eW;
|
|
14393
|
+
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] !== QU || r[58] !== $U ? (eW = [
|
|
14384
14394
|
Z,
|
|
14385
|
-
GU,
|
|
14386
|
-
KU,
|
|
14387
|
-
qU,
|
|
14388
14395
|
JU,
|
|
14389
|
-
y,
|
|
14390
14396
|
YU,
|
|
14391
|
-
XU
|
|
14392
|
-
|
|
14393
|
-
|
|
14394
|
-
|
|
14397
|
+
XU,
|
|
14398
|
+
ZU,
|
|
14399
|
+
y,
|
|
14400
|
+
QU,
|
|
14401
|
+
$U
|
|
14402
|
+
], 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] = QU, r[58] = $U, r[59] = eW) : eW = r[59];
|
|
14403
|
+
let { data: tW, isPending: nW } = useAsyncData(qU, eW), rW = tW ?? null, iW = !!Z && e.showDownload && nW, aW;
|
|
14404
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (aW = async (e2) => ({
|
|
14395
14405
|
rows: await loadTableData((await u({
|
|
14396
14406
|
page_number: e2,
|
|
14397
14407
|
page_size: 1,
|
|
@@ -14400,38 +14410,38 @@ ${c}
|
|
|
14400
14410
|
filters: filtersToFilterGroup(w),
|
|
14401
14411
|
max_columns: null
|
|
14402
14412
|
})).data)
|
|
14403
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
14404
|
-
let
|
|
14405
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
14413
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = aW) : aW = r[64];
|
|
14414
|
+
let oW = aW, sW;
|
|
14415
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (sW = () => {
|
|
14406
14416
|
v(_temp4$4);
|
|
14407
|
-
}, r[65] =
|
|
14408
|
-
let
|
|
14409
|
-
r[66] ===
|
|
14410
|
-
|
|
14411
|
-
], r[66] =
|
|
14412
|
-
let
|
|
14413
|
-
r[68] === e ?
|
|
14417
|
+
}, r[65] = sW) : sW = r[65];
|
|
14418
|
+
let cW = W == null ? void 0 : W.totalRows, lW;
|
|
14419
|
+
r[66] === cW ? lW = r[67] : (lW = [
|
|
14420
|
+
cW
|
|
14421
|
+
], r[66] = cW, r[67] = lW), (0, import_react.useEffect)(sW, lW);
|
|
14422
|
+
let uW;
|
|
14423
|
+
r[68] === e ? uW = r[69] : (uW = async () => e.totalRows === 0 || !e.showColumnSummaries ? {
|
|
14414
14424
|
data: null,
|
|
14415
14425
|
stats: {},
|
|
14416
14426
|
bin_values: {},
|
|
14417
14427
|
value_counts: {},
|
|
14418
14428
|
show_charts: false
|
|
14419
|
-
} : e.get_column_summaries({}), r[68] = e, r[69] =
|
|
14420
|
-
let
|
|
14421
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
14429
|
+
} : e.get_column_summaries({}), r[68] = e, r[69] = uW);
|
|
14430
|
+
let dW;
|
|
14431
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (dW = [
|
|
14422
14432
|
e.get_column_summaries,
|
|
14423
14433
|
e.showColumnSummaries,
|
|
14424
14434
|
w,
|
|
14425
14435
|
y,
|
|
14426
14436
|
e.totalRows,
|
|
14427
14437
|
e.data
|
|
14428
|
-
], 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] =
|
|
14429
|
-
let { data:
|
|
14430
|
-
if (r[77] ===
|
|
14431
|
-
|
|
14432
|
-
},
|
|
14433
|
-
|
|
14434
|
-
], r[77] =
|
|
14438
|
+
], 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] = dW) : dW = r[76];
|
|
14439
|
+
let { data: fW, error: pW } = useAsyncData(uW, dW), mW, hW;
|
|
14440
|
+
if (r[77] === pW ? (mW = r[78], hW = r[79]) : (mW = () => {
|
|
14441
|
+
pW && Logger.error(pW);
|
|
14442
|
+
}, hW = [
|
|
14443
|
+
pW
|
|
14444
|
+
], r[77] = pW, r[78] = mW, r[79] = hW), (0, import_react.useEffect)(mW, hW), q) {
|
|
14435
14445
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14436
14446
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14437
14447
|
milliseconds: 200,
|
|
@@ -14440,7 +14450,7 @@ ${c}
|
|
|
14440
14450
|
})
|
|
14441
14451
|
}), r[80] = c2, r[81] = l2), l2;
|
|
14442
14452
|
}
|
|
14443
|
-
let
|
|
14453
|
+
let gW = null;
|
|
14444
14454
|
if (G) {
|
|
14445
14455
|
Logger.error(G);
|
|
14446
14456
|
let e2;
|
|
@@ -14456,61 +14466,61 @@ ${c}
|
|
|
14456
14466
|
children: G.message || "An unknown error occurred"
|
|
14457
14467
|
})
|
|
14458
14468
|
]
|
|
14459
|
-
}), r[82] = G, r[83] = e2),
|
|
14469
|
+
}), r[82] = G, r[83] = e2), gW = e2;
|
|
14460
14470
|
}
|
|
14461
|
-
let
|
|
14462
|
-
r[84] === O ?
|
|
14471
|
+
let _W;
|
|
14472
|
+
r[84] === O ? _W = r[85] : (_W = () => {
|
|
14463
14473
|
j(!O);
|
|
14464
|
-
}, r[84] = O, r[85] =
|
|
14465
|
-
let
|
|
14466
|
-
r[86] !== l || r[87] !==
|
|
14474
|
+
}, r[84] = O, r[85] = _W);
|
|
14475
|
+
let vW = _W, yW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, bW = W == null ? void 0 : W.rawRows, xW = KU && !q, SW = (W == null ? void 0 : W.totalRows) ?? e.totalRows, CW = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, wW = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, TW;
|
|
14476
|
+
r[86] !== l || r[87] !== fW || r[88] !== O || r[89] !== w || r[90] !== oW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== rW || r[95] !== iW || r[96] !== m || r[97] !== yW || r[98] !== bW || r[99] !== xW || r[100] !== SW || r[101] !== CW || r[102] !== wW || r[103] !== vW ? (TW = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
14467
14477
|
...e,
|
|
14468
|
-
data:
|
|
14469
|
-
rawData:
|
|
14470
|
-
columnSummaries:
|
|
14478
|
+
data: yW,
|
|
14479
|
+
rawData: bW,
|
|
14480
|
+
columnSummaries: fW,
|
|
14471
14481
|
sorting: m,
|
|
14472
14482
|
setSorting: h,
|
|
14473
14483
|
searchQuery: y,
|
|
14474
14484
|
setSearchQuery: b,
|
|
14475
14485
|
filters: w,
|
|
14476
14486
|
setFilters: T,
|
|
14477
|
-
reloading:
|
|
14478
|
-
totalRows:
|
|
14479
|
-
sizeBytes:
|
|
14480
|
-
sizeBytesIsLoading:
|
|
14487
|
+
reloading: xW,
|
|
14488
|
+
totalRows: SW,
|
|
14489
|
+
sizeBytes: rW,
|
|
14490
|
+
sizeBytesIsLoading: iW,
|
|
14481
14491
|
paginationState: _,
|
|
14482
14492
|
setPaginationState: v,
|
|
14483
|
-
cellStyles:
|
|
14484
|
-
cellHoverTexts:
|
|
14485
|
-
toggleDisplayHeader:
|
|
14493
|
+
cellStyles: CW,
|
|
14494
|
+
cellHoverTexts: wW,
|
|
14495
|
+
toggleDisplayHeader: vW,
|
|
14486
14496
|
isChartBuilderOpen: O,
|
|
14487
|
-
getRow:
|
|
14497
|
+
getRow: oW,
|
|
14488
14498
|
cellId: l,
|
|
14489
14499
|
maxHeight: e.maxHeight
|
|
14490
|
-
}), r[86] = l, r[87] =
|
|
14491
|
-
let
|
|
14492
|
-
r[105] !== l || r[106] !==
|
|
14500
|
+
}), r[86] = l, r[87] = fW, r[88] = O, r[89] = w, r[90] = oW, r[91] = _, r[92] = e, r[93] = y, r[94] = rW, r[95] = iW, r[96] = m, r[97] = yW, r[98] = bW, r[99] = xW, r[100] = SW, r[101] = CW, r[102] = wW, r[103] = vW, r[104] = TW) : TW = r[104];
|
|
14501
|
+
let EW = TW, DW;
|
|
14502
|
+
r[105] !== l || r[106] !== EW || r[107] !== (W == null ? void 0 : W.rows) || r[108] !== O || r[109] !== e.fieldTypes || r[110] !== e.get_data_url || r[111] !== e.showChartBuilder || r[112] !== e.totalColumns || r[113] !== e.totalRows ? (DW = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
14493
14503
|
displayHeader: O,
|
|
14494
14504
|
onCloseChartBuilder: () => j(false),
|
|
14495
14505
|
data: (W == null ? void 0 : W.rows) || [],
|
|
14496
14506
|
columns: e.totalColumns,
|
|
14497
14507
|
totalRows: e.totalRows,
|
|
14498
|
-
dataTable:
|
|
14508
|
+
dataTable: EW,
|
|
14499
14509
|
getDataUrl: e.get_data_url,
|
|
14500
14510
|
fieldTypes: e.fieldTypes,
|
|
14501
14511
|
cellId: l
|
|
14502
|
-
}) :
|
|
14503
|
-
let
|
|
14504
|
-
return r[115] !==
|
|
14512
|
+
}) : EW, r[105] = l, r[106] = EW, r[107] = W == null ? void 0 : W.rows, r[108] = O, r[109] = e.fieldTypes, r[110] = e.get_data_url, r[111] = e.showChartBuilder, r[112] = e.totalColumns, r[113] = e.totalRows, r[114] = DW) : DW = r[114];
|
|
14513
|
+
let OW;
|
|
14514
|
+
return r[115] !== gW || r[116] !== DW ? (OW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14505
14515
|
children: [
|
|
14506
|
-
|
|
14507
|
-
|
|
14516
|
+
gW,
|
|
14517
|
+
DW
|
|
14508
14518
|
]
|
|
14509
|
-
}), r[115] =
|
|
14519
|
+
}), r[115] = gW, r[116] = DW, r[117] = OW) : OW = r[117], OW;
|
|
14510
14520
|
});
|
|
14511
14521
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
14512
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, enableSearch: W, searchQuery: G, setSearchQuery: q, filters:
|
|
14513
|
-
let
|
|
14522
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, enableSearch: W, searchQuery: G, setSearchQuery: q, filters: KU, setFilters: Z, reloading: qU, freezeColumnsLeft: JU, freezeColumnsRight: YU, hiddenColumns: XU, textJustifyColumns: ZU, wrappedColumns: QU, headerTooltip: $U, totalColumns: eW, get_row_ids: tW, cellStyles: nW, hoverTemplate: rW, cellHoverTexts: iW, toggleDisplayHeader: aW, isChartBuilderOpen: oW, calculate_top_k_rows: sW, preview_column: cW, getRow: lW, cellId: uW, maxHeight: dW }) => {
|
|
14523
|
+
let fW = (0, import_react.useId)(), [pW, mW] = (0, import_react.useState)(0), { isPanelOpen: hW, isAnyPanelOpen: gW, togglePanel: _W, panelType: vW, setPanelType: yW } = usePanelOwnership(fW, uW), bW = (0, import_react.useMemo)(() => {
|
|
14514
14524
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
14515
14525
|
let e2 = toFieldTypes(O);
|
|
14516
14526
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -14519,13 +14529,13 @@ ${c}
|
|
|
14519
14529
|
}, [
|
|
14520
14530
|
O,
|
|
14521
14531
|
L
|
|
14522
|
-
]),
|
|
14532
|
+
]), xW = useDeepCompareMemoize(O ?? inferFieldTypes(r)), SW = (0, import_react.useMemo)(() => f === "all" ? xW : xW.slice(0, f), [
|
|
14523
14533
|
f,
|
|
14524
|
-
|
|
14525
|
-
]),
|
|
14534
|
+
xW
|
|
14535
|
+
]), CW = (0, import_react.useMemo)(() => {
|
|
14526
14536
|
let e2 = {};
|
|
14527
14537
|
if (r && r.length > 0) {
|
|
14528
|
-
for (let [c2, l2] of
|
|
14538
|
+
for (let [c2, l2] of SW) if (l2[0] === "number") {
|
|
14529
14539
|
let l3 = 0;
|
|
14530
14540
|
for (let e3 of r) {
|
|
14531
14541
|
let r2 = e3[c2];
|
|
@@ -14540,93 +14550,93 @@ ${c}
|
|
|
14540
14550
|
return e2;
|
|
14541
14551
|
}, [
|
|
14542
14552
|
r,
|
|
14543
|
-
|
|
14544
|
-
]),
|
|
14553
|
+
SW
|
|
14554
|
+
]), wW = useDeepCompareMemoize(T), TW = useDeepCompareMemoize(ZU), EW = useDeepCompareMemoize(QU), DW = useDeepCompareMemoize(bW), OW = useDeepCompareMemoize(CW), kW = SW.length;
|
|
14545
14555
|
O || (w = false);
|
|
14546
|
-
let
|
|
14547
|
-
rowHeaders:
|
|
14556
|
+
let AW = (0, import_react.useMemo)(() => generateColumns({
|
|
14557
|
+
rowHeaders: wW,
|
|
14548
14558
|
selection: m,
|
|
14549
|
-
chartSpecModel:
|
|
14550
|
-
fieldTypes:
|
|
14551
|
-
textJustifyColumns:
|
|
14552
|
-
wrappedColumns:
|
|
14553
|
-
headerTooltip:
|
|
14559
|
+
chartSpecModel: DW,
|
|
14560
|
+
fieldTypes: SW,
|
|
14561
|
+
textJustifyColumns: TW,
|
|
14562
|
+
wrappedColumns: EW,
|
|
14563
|
+
headerTooltip: $U,
|
|
14554
14564
|
showDataTypes: w,
|
|
14555
|
-
calculateTopKRows:
|
|
14556
|
-
fractionDigitsByColumn:
|
|
14565
|
+
calculateTopKRows: sW,
|
|
14566
|
+
fractionDigitsByColumn: OW
|
|
14557
14567
|
}), [
|
|
14558
14568
|
m,
|
|
14559
14569
|
w,
|
|
14570
|
+
DW,
|
|
14560
14571
|
wW,
|
|
14561
|
-
xW,
|
|
14562
|
-
yW,
|
|
14563
14572
|
SW,
|
|
14564
|
-
|
|
14565
|
-
|
|
14566
|
-
|
|
14567
|
-
|
|
14568
|
-
|
|
14573
|
+
TW,
|
|
14574
|
+
EW,
|
|
14575
|
+
$U,
|
|
14576
|
+
sW,
|
|
14577
|
+
OW
|
|
14578
|
+
]), jW = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
14569
14579
|
e2,
|
|
14570
14580
|
true
|
|
14571
14581
|
])), [
|
|
14572
14582
|
h
|
|
14573
|
-
]),
|
|
14583
|
+
]), MW = useEvent_default((e2) => {
|
|
14574
14584
|
if (m === "single") {
|
|
14575
14585
|
let r2 = Functions.asUpdater(e2)({});
|
|
14576
14586
|
z(Object.keys(r2).slice(0, 1));
|
|
14577
14587
|
}
|
|
14578
14588
|
if (m === "multi") {
|
|
14579
|
-
let r2 = Functions.asUpdater(e2)(
|
|
14589
|
+
let r2 = Functions.asUpdater(e2)(jW);
|
|
14580
14590
|
z(Object.keys(r2));
|
|
14581
14591
|
}
|
|
14582
|
-
}),
|
|
14583
|
-
if (
|
|
14592
|
+
}), NW = useEvent_default((e2) => {
|
|
14593
|
+
if (mW(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
14584
14594
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
14585
14595
|
r2 !== null && M((e3) => ({
|
|
14586
14596
|
...e3,
|
|
14587
14597
|
pageIndex: r2
|
|
14588
14598
|
}));
|
|
14589
|
-
}),
|
|
14590
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
14591
|
-
}),
|
|
14592
|
-
if (!(!
|
|
14599
|
+
}), PW = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), FW = useEvent_default((e2) => {
|
|
14600
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(PW).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(PW));
|
|
14601
|
+
}), IW = m === "multi" || m === "single", LW = y && !!cW, RW = isInVscodeExtension(), zW = isIslands(), BW = (0, import_react.useMemo)(() => {
|
|
14602
|
+
if (!(!gW || !(b || LW))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
14593
14603
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
14594
|
-
rowIdx:
|
|
14595
|
-
setRowIdx:
|
|
14604
|
+
rowIdx: pW,
|
|
14605
|
+
setRowIdx: NW,
|
|
14596
14606
|
totalRows: l,
|
|
14597
|
-
fieldTypes:
|
|
14598
|
-
getRow:
|
|
14599
|
-
isSelectable:
|
|
14600
|
-
isRowSelected: !!
|
|
14601
|
-
handleRowSelectionChange:
|
|
14602
|
-
previewColumn:
|
|
14603
|
-
totalColumns:
|
|
14604
|
-
tableId:
|
|
14607
|
+
fieldTypes: xW,
|
|
14608
|
+
getRow: lW,
|
|
14609
|
+
isSelectable: IW,
|
|
14610
|
+
isRowSelected: !!jW[pW],
|
|
14611
|
+
handleRowSelectionChange: MW,
|
|
14612
|
+
previewColumn: cW,
|
|
14613
|
+
totalColumns: eW,
|
|
14614
|
+
tableId: fW,
|
|
14605
14615
|
table: e2,
|
|
14606
|
-
showRowExplorer: b && !
|
|
14607
|
-
showColumnExplorer:
|
|
14608
|
-
activeTab:
|
|
14609
|
-
onTabChange:
|
|
14616
|
+
showRowExplorer: b && !RW,
|
|
14617
|
+
showColumnExplorer: LW && !RW,
|
|
14618
|
+
activeTab: vW,
|
|
14619
|
+
onTabChange: yW
|
|
14610
14620
|
})
|
|
14611
14621
|
});
|
|
14612
14622
|
}, [
|
|
14613
|
-
|
|
14623
|
+
gW,
|
|
14614
14624
|
b,
|
|
14615
|
-
|
|
14616
|
-
|
|
14617
|
-
AW,
|
|
14618
|
-
l,
|
|
14619
|
-
vW,
|
|
14620
|
-
oW,
|
|
14625
|
+
LW,
|
|
14626
|
+
pW,
|
|
14621
14627
|
NW,
|
|
14622
|
-
|
|
14623
|
-
|
|
14624
|
-
aW,
|
|
14625
|
-
ZU,
|
|
14628
|
+
l,
|
|
14629
|
+
xW,
|
|
14626
14630
|
lW,
|
|
14627
|
-
|
|
14628
|
-
|
|
14629
|
-
|
|
14631
|
+
IW,
|
|
14632
|
+
jW,
|
|
14633
|
+
MW,
|
|
14634
|
+
cW,
|
|
14635
|
+
eW,
|
|
14636
|
+
fW,
|
|
14637
|
+
RW,
|
|
14638
|
+
vW,
|
|
14639
|
+
yW
|
|
14630
14640
|
]);
|
|
14631
14641
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14632
14642
|
children: [
|
|
@@ -14638,13 +14648,13 @@ ${c}
|
|
|
14638
14648
|
" rows."
|
|
14639
14649
|
]
|
|
14640
14650
|
}),
|
|
14641
|
-
|
|
14651
|
+
kW < eW && kW > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14642
14652
|
className: "mb-1 rounded",
|
|
14643
14653
|
children: [
|
|
14644
14654
|
"Result clipped. Showing ",
|
|
14645
|
-
|
|
14655
|
+
kW,
|
|
14646
14656
|
" of ",
|
|
14647
|
-
|
|
14657
|
+
eW,
|
|
14648
14658
|
" columns."
|
|
14649
14659
|
]
|
|
14650
14660
|
}),
|
|
@@ -14653,7 +14663,7 @@ ${c}
|
|
|
14653
14663
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
14654
14664
|
}),
|
|
14655
14665
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
14656
|
-
value:
|
|
14666
|
+
value: bW,
|
|
14657
14667
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
14658
14668
|
label: e,
|
|
14659
14669
|
align: "top",
|
|
@@ -14661,14 +14671,14 @@ ${c}
|
|
|
14661
14671
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
14662
14672
|
data: r,
|
|
14663
14673
|
rawData: c,
|
|
14664
|
-
columns:
|
|
14674
|
+
columns: AW,
|
|
14665
14675
|
className: R,
|
|
14666
|
-
maxHeight:
|
|
14676
|
+
maxHeight: dW,
|
|
14667
14677
|
sorting: B,
|
|
14668
14678
|
totalRows: l,
|
|
14669
14679
|
sizeBytes: u,
|
|
14670
14680
|
sizeBytesIsLoading: d,
|
|
14671
|
-
totalColumns:
|
|
14681
|
+
totalColumns: eW,
|
|
14672
14682
|
manualSorting: true,
|
|
14673
14683
|
setSorting: H,
|
|
14674
14684
|
pagination: p,
|
|
@@ -14676,37 +14686,37 @@ ${c}
|
|
|
14676
14686
|
selection: m,
|
|
14677
14687
|
paginationState: j,
|
|
14678
14688
|
setPaginationState: M,
|
|
14679
|
-
rowSelection:
|
|
14680
|
-
cellSelection:
|
|
14681
|
-
cellStyling:
|
|
14682
|
-
hoverTemplate:
|
|
14683
|
-
cellHoverTexts:
|
|
14689
|
+
rowSelection: jW,
|
|
14690
|
+
cellSelection: PW,
|
|
14691
|
+
cellStyling: nW,
|
|
14692
|
+
hoverTemplate: rW,
|
|
14693
|
+
cellHoverTexts: iW,
|
|
14684
14694
|
downloadAs: _ ? I : void 0,
|
|
14685
14695
|
enableSearch: W,
|
|
14686
14696
|
searchQuery: G,
|
|
14687
14697
|
onSearchQueryChange: q,
|
|
14688
14698
|
showFilters: g,
|
|
14689
|
-
filters:
|
|
14699
|
+
filters: KU,
|
|
14690
14700
|
onFiltersChange: Z,
|
|
14691
|
-
calculateTopKRows:
|
|
14692
|
-
reloading:
|
|
14693
|
-
onRowSelectionChange:
|
|
14694
|
-
freezeColumnsLeft:
|
|
14695
|
-
freezeColumnsRight:
|
|
14696
|
-
hiddenColumns:
|
|
14697
|
-
onCellSelectionChange:
|
|
14698
|
-
getRowIds:
|
|
14699
|
-
toggleDisplayHeader:
|
|
14700
|
-
showChartBuilder: S && !
|
|
14701
|
-
isChartBuilderOpen:
|
|
14701
|
+
calculateTopKRows: sW,
|
|
14702
|
+
reloading: qU,
|
|
14703
|
+
onRowSelectionChange: MW,
|
|
14704
|
+
freezeColumnsLeft: JU,
|
|
14705
|
+
freezeColumnsRight: YU,
|
|
14706
|
+
hiddenColumns: XU,
|
|
14707
|
+
onCellSelectionChange: FW,
|
|
14708
|
+
getRowIds: tW,
|
|
14709
|
+
toggleDisplayHeader: aW,
|
|
14710
|
+
showChartBuilder: S && !zW,
|
|
14711
|
+
isChartBuilderOpen: oW,
|
|
14702
14712
|
showPageSizeSelector: v,
|
|
14703
|
-
showTableExplorer: (b ||
|
|
14704
|
-
togglePanel:
|
|
14705
|
-
isPanelOpen:
|
|
14706
|
-
isAnyPanelOpen:
|
|
14707
|
-
viewedRowIdx:
|
|
14708
|
-
onViewedRowChange: (e2) =>
|
|
14709
|
-
renderTableExplorerPanel:
|
|
14713
|
+
showTableExplorer: (b || LW) && !RW && !zW,
|
|
14714
|
+
togglePanel: _W,
|
|
14715
|
+
isPanelOpen: hW,
|
|
14716
|
+
isAnyPanelOpen: gW,
|
|
14717
|
+
viewedRowIdx: pW,
|
|
14718
|
+
onViewedRowChange: (e2) => mW(e2),
|
|
14719
|
+
renderTableExplorerPanel: BW
|
|
14710
14720
|
})
|
|
14711
14721
|
})
|
|
14712
14722
|
})
|
|
@@ -15065,7 +15075,7 @@ ${c}
|
|
|
15065
15075
|
fullWidth: m,
|
|
15066
15076
|
children: T
|
|
15067
15077
|
}), r[20] = m, r[21] = g, r[22] = c, r[23] = T, r[24] = E) : E = r[24], E;
|
|
15068
|
-
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
15078
|
+
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-Z3RP7Vmm.js"));
|
|
15069
15079
|
const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object({
|
|
15070
15080
|
label: string().nullish(),
|
|
15071
15081
|
data: string()
|
|
@@ -16758,29 +16768,29 @@ ${c}
|
|
|
16758
16768
|
], r[2] = S, r[3] = w);
|
|
16759
16769
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
16760
16770
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
16761
|
-
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,
|
|
16762
|
-
r[6] === d ?
|
|
16771
|
+
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, KU] = (0, import_react.useState)(f || EMPTY), Z = (0, import_react.useRef)(null), qU;
|
|
16772
|
+
r[6] === d ? qU = r[7] : (qU = (e2) => {
|
|
16763
16773
|
var _a3;
|
|
16764
16774
|
d && e2 !== "transform" && ((_a3 = Z.current) == null ? void 0 : _a3.submit());
|
|
16765
|
-
}, r[6] = d, r[7] =
|
|
16766
|
-
let
|
|
16767
|
-
r[8] === q ?
|
|
16768
|
-
|
|
16769
|
-
}, r[8] = q, r[9] =
|
|
16770
|
-
let
|
|
16771
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
16772
|
-
let e2 =
|
|
16775
|
+
}, r[6] = d, r[7] = qU);
|
|
16776
|
+
let JU = qU, YU = (0, import_react.useRef)(q), XU;
|
|
16777
|
+
r[8] === q ? XU = r[9] : (XU = () => {
|
|
16778
|
+
YU.current = q;
|
|
16779
|
+
}, r[8] = q, r[9] = XU), (0, import_react.useEffect)(XU);
|
|
16780
|
+
let ZU;
|
|
16781
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (ZU = () => {
|
|
16782
|
+
let e2 = YU.current;
|
|
16773
16783
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
16774
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
16775
|
-
let
|
|
16776
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
16784
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = ZU) : ZU = r[12];
|
|
16785
|
+
let QU = f == null ? void 0 : f.transforms.length, $U;
|
|
16786
|
+
r[13] !== T || r[14] !== p || r[15] !== QU ? ($U = [
|
|
16777
16787
|
T,
|
|
16788
|
+
QU,
|
|
16778
16789
|
YU,
|
|
16779
|
-
KU,
|
|
16780
16790
|
p
|
|
16781
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
16782
|
-
let
|
|
16783
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16791
|
+
], r[13] = T, r[14] = p, r[15] = QU, r[16] = $U) : $U = r[16], (0, import_react.useEffect)(ZU, $U);
|
|
16792
|
+
let eW;
|
|
16793
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (eW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16784
16794
|
value: "transform",
|
|
16785
16795
|
className: "text-xs py-1",
|
|
16786
16796
|
children: [
|
|
@@ -16789,9 +16799,9 @@ ${c}
|
|
|
16789
16799
|
}),
|
|
16790
16800
|
"Transform"
|
|
16791
16801
|
]
|
|
16792
|
-
}), r[17] =
|
|
16793
|
-
let
|
|
16794
|
-
r[18] === H ?
|
|
16802
|
+
}), r[17] = eW) : eW = r[17];
|
|
16803
|
+
let tW;
|
|
16804
|
+
r[18] === H ? tW = r[19] : (tW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16795
16805
|
value: "python-code",
|
|
16796
16806
|
className: "text-xs py-1",
|
|
16797
16807
|
children: [
|
|
@@ -16800,9 +16810,9 @@ ${c}
|
|
|
16800
16810
|
}),
|
|
16801
16811
|
"Python Code"
|
|
16802
16812
|
]
|
|
16803
|
-
}), r[18] = H, r[19] =
|
|
16804
|
-
let
|
|
16805
|
-
r[20] === W ?
|
|
16813
|
+
}), r[18] = H, r[19] = tW);
|
|
16814
|
+
let nW;
|
|
16815
|
+
r[20] === W ? nW = r[21] : (nW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16806
16816
|
value: "sql-code",
|
|
16807
16817
|
className: "text-xs py-1",
|
|
16808
16818
|
children: [
|
|
@@ -16811,54 +16821,54 @@ ${c}
|
|
|
16811
16821
|
}),
|
|
16812
16822
|
"SQL Code"
|
|
16813
16823
|
]
|
|
16814
|
-
}), r[20] = W, r[21] =
|
|
16815
|
-
let
|
|
16816
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16824
|
+
}), r[20] = W, r[21] = nW);
|
|
16825
|
+
let rW;
|
|
16826
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rW = (0, import_jsx_runtime.jsx)("div", {
|
|
16817
16827
|
className: "grow"
|
|
16818
|
-
}), r[22] =
|
|
16819
|
-
let
|
|
16820
|
-
r[23] !==
|
|
16828
|
+
}), r[22] = rW) : rW = r[22];
|
|
16829
|
+
let iW;
|
|
16830
|
+
r[23] !== tW || r[24] !== nW ? (iW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
16821
16831
|
className: "h-8",
|
|
16822
16832
|
children: [
|
|
16823
|
-
|
|
16824
|
-
|
|
16825
|
-
|
|
16826
|
-
|
|
16833
|
+
eW,
|
|
16834
|
+
tW,
|
|
16835
|
+
nW,
|
|
16836
|
+
rW
|
|
16827
16837
|
]
|
|
16828
|
-
}), r[23] =
|
|
16829
|
-
let
|
|
16830
|
-
r[26] === j ?
|
|
16838
|
+
}), r[23] = tW, r[24] = nW, r[25] = iW) : iW = r[25];
|
|
16839
|
+
let aW;
|
|
16840
|
+
r[26] === j ? aW = r[27] : (aW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16831
16841
|
size: "small"
|
|
16832
|
-
}), r[26] = j, r[27] =
|
|
16833
|
-
let
|
|
16834
|
-
r[28] !==
|
|
16842
|
+
}), r[26] = j, r[27] = aW);
|
|
16843
|
+
let sW;
|
|
16844
|
+
r[28] !== iW || r[29] !== aW ? (sW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16835
16845
|
className: "flex items-center gap-2",
|
|
16836
16846
|
children: [
|
|
16837
|
-
|
|
16838
|
-
|
|
16847
|
+
iW,
|
|
16848
|
+
aW
|
|
16839
16849
|
]
|
|
16840
|
-
}), r[28] =
|
|
16841
|
-
let
|
|
16842
|
-
r[31] !== p || r[32] !== f ? (
|
|
16843
|
-
dequal(e2, f) || (p(e2),
|
|
16844
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
16845
|
-
let
|
|
16846
|
-
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !==
|
|
16850
|
+
}), r[28] = iW, r[29] = aW, r[30] = sW) : sW = r[30];
|
|
16851
|
+
let cW;
|
|
16852
|
+
r[31] !== p || r[32] !== f ? (cW = (e2) => {
|
|
16853
|
+
dequal(e2, f) || (p(e2), KU(e2));
|
|
16854
|
+
}, r[31] = p, r[32] = f, r[33] = cW) : cW = r[33];
|
|
16855
|
+
let lW;
|
|
16856
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== cW ? (lW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16847
16857
|
value: "transform",
|
|
16848
16858
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16849
16859
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
16850
16860
|
ref: Z,
|
|
16851
16861
|
initialValue: q,
|
|
16852
16862
|
columns: c,
|
|
16853
|
-
onChange:
|
|
16854
|
-
onInvalidChange:
|
|
16863
|
+
onChange: cW,
|
|
16864
|
+
onInvalidChange: KU,
|
|
16855
16865
|
getColumnValues: h,
|
|
16856
16866
|
columnTypesPerStep: B,
|
|
16857
16867
|
lazy: d
|
|
16858
16868
|
})
|
|
16859
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
16860
|
-
let
|
|
16861
|
-
r[41] === H ?
|
|
16869
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = cW, r[40] = lW) : lW = r[40];
|
|
16870
|
+
let uW;
|
|
16871
|
+
r[41] === H ? uW = r[42] : (uW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16862
16872
|
value: "python-code",
|
|
16863
16873
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16864
16874
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16867,9 +16877,9 @@ ${c}
|
|
|
16867
16877
|
code: H,
|
|
16868
16878
|
language: "python"
|
|
16869
16879
|
})
|
|
16870
|
-
}), r[41] = H, r[42] =
|
|
16871
|
-
let
|
|
16872
|
-
r[43] === W ?
|
|
16880
|
+
}), r[41] = H, r[42] = uW);
|
|
16881
|
+
let dW;
|
|
16882
|
+
r[43] === W ? dW = r[44] : (dW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16873
16883
|
value: "sql-code",
|
|
16874
16884
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16875
16885
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16878,35 +16888,35 @@ ${c}
|
|
|
16878
16888
|
code: W,
|
|
16879
16889
|
language: "sql"
|
|
16880
16890
|
})
|
|
16881
|
-
}), r[43] = W, r[44] =
|
|
16882
|
-
let
|
|
16883
|
-
r[45] !==
|
|
16891
|
+
}), r[43] = W, r[44] = dW);
|
|
16892
|
+
let fW;
|
|
16893
|
+
r[45] !== JU || r[46] !== sW || r[47] !== lW || r[48] !== uW || r[49] !== dW ? (fW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
16884
16894
|
defaultValue: "transform",
|
|
16885
|
-
onValueChange:
|
|
16895
|
+
onValueChange: JU,
|
|
16886
16896
|
children: [
|
|
16887
|
-
iW,
|
|
16888
|
-
oW,
|
|
16889
16897
|
sW,
|
|
16890
|
-
|
|
16898
|
+
lW,
|
|
16899
|
+
uW,
|
|
16900
|
+
dW
|
|
16891
16901
|
]
|
|
16892
|
-
}), r[45] =
|
|
16893
|
-
let
|
|
16894
|
-
r[51] === O ?
|
|
16902
|
+
}), r[45] = JU, r[46] = sW, r[47] = lW, r[48] = uW, r[49] = dW, r[50] = fW) : fW = r[50];
|
|
16903
|
+
let pW;
|
|
16904
|
+
r[51] === O ? pW = r[52] : (pW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
16895
16905
|
error: O
|
|
16896
|
-
}), r[51] = O, r[52] =
|
|
16897
|
-
let
|
|
16898
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
16906
|
+
}), r[51] = O, r[52] = pW);
|
|
16907
|
+
let mW = I || "", hW = L ?? 0, gW = G ?? 0, _W = R || Arrays.EMPTY, vW = L && L > 5 || false, yW;
|
|
16908
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== mW || r[61] !== hW || r[62] !== gW || r[63] !== _W || r[64] !== vW ? (yW = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
16899
16909
|
label: null,
|
|
16900
16910
|
className: "rounded-b border-x border-b",
|
|
16901
|
-
data:
|
|
16911
|
+
data: mW,
|
|
16902
16912
|
hasStableRowId: false,
|
|
16903
|
-
totalRows:
|
|
16904
|
-
totalColumns:
|
|
16913
|
+
totalRows: hW,
|
|
16914
|
+
totalColumns: gW,
|
|
16905
16915
|
maxColumns: "all",
|
|
16906
16916
|
pageSize: l,
|
|
16907
16917
|
pagination: true,
|
|
16908
16918
|
fieldTypes: z,
|
|
16909
|
-
rowHeaders:
|
|
16919
|
+
rowHeaders: _W,
|
|
16910
16920
|
showDownload: u,
|
|
16911
16921
|
download_as: _,
|
|
16912
16922
|
get_size_bytes: v,
|
|
@@ -16916,7 +16926,7 @@ ${c}
|
|
|
16916
16926
|
showColumnSummaries: false,
|
|
16917
16927
|
showDataTypes: true,
|
|
16918
16928
|
get_column_summaries: getColumnSummaries,
|
|
16919
|
-
showPageSizeSelector:
|
|
16929
|
+
showPageSizeSelector: vW,
|
|
16920
16930
|
showColumnExplorer: false,
|
|
16921
16931
|
showRowExplorer: true,
|
|
16922
16932
|
showChartBuilder: false,
|
|
@@ -16925,15 +16935,15 @@ ${c}
|
|
|
16925
16935
|
selection: null,
|
|
16926
16936
|
lazy: false,
|
|
16927
16937
|
host: y
|
|
16928
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
16929
|
-
let
|
|
16930
|
-
return r[66] !==
|
|
16938
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = mW, r[61] = hW, r[62] = gW, r[63] = _W, r[64] = vW, r[65] = yW) : yW = r[65];
|
|
16939
|
+
let bW;
|
|
16940
|
+
return r[66] !== fW || r[67] !== pW || r[68] !== yW ? (bW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16931
16941
|
children: [
|
|
16932
|
-
|
|
16933
|
-
|
|
16934
|
-
|
|
16942
|
+
fW,
|
|
16943
|
+
pW,
|
|
16944
|
+
yW
|
|
16935
16945
|
]
|
|
16936
|
-
}), r[66] =
|
|
16946
|
+
}), r[66] = fW, r[67] = pW, r[68] = yW, r[69] = bW) : bW = r[69], bW;
|
|
16937
16947
|
});
|
|
16938
16948
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
16939
16949
|
function getColumnSummaries() {
|
|
@@ -17121,28 +17131,28 @@ ${c}
|
|
|
17121
17131
|
}, W = [
|
|
17122
17132
|
B
|
|
17123
17133
|
], r[8] = B, r[9] = H, r[10] = W), (0, import_react.useEffect)(H, W);
|
|
17124
|
-
let G, q,
|
|
17134
|
+
let G, q, KU, Z, JU, YU, XU, ZU, QU;
|
|
17125
17135
|
if (r[11] !== R || r[12] !== z || r[13] !== u || r[14] !== b || r[15] !== f || r[16] !== v || r[17] !== h || r[18] !== d || r[19] !== y || r[20] !== l || r[21] !== c) {
|
|
17126
|
-
|
|
17136
|
+
QU = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
17127
17137
|
bb0: {
|
|
17128
|
-
|
|
17138
|
+
JU = (R == null ? void 0 : R.files) ?? [];
|
|
17129
17139
|
let e2;
|
|
17130
17140
|
r[31] === c ? e2 = r[32] : (e2 = new Set(c.map(_temp$12)), r[31] = c, r[32] = e2);
|
|
17131
17141
|
let m2 = e2, g2 = d === "directory" || d === "all", _2 = d === "file" || d === "all", w;
|
|
17132
17142
|
r[33] !== g2 || r[34] !== _2 ? (w = (e3) => g2 && e3.is_directory || _2 && !e3.is_directory, r[33] = g2, r[34] = _2, r[35] = w) : w = r[35];
|
|
17133
|
-
let T2 =
|
|
17143
|
+
let T2 = JU.filter(w);
|
|
17134
17144
|
if (G = T2.length > 0 && T2.every((e3) => m2.has(e3.path)), !R && z) {
|
|
17135
17145
|
let e3;
|
|
17136
17146
|
r[36] === z.message ? e3 = r[37] : (e3 = (0, import_jsx_runtime.jsx)(Banner, {
|
|
17137
17147
|
kind: "danger",
|
|
17138
17148
|
children: z.message
|
|
17139
|
-
}), r[36] = z.message, r[37] = e3),
|
|
17149
|
+
}), r[36] = z.message, r[37] = e3), QU = e3;
|
|
17140
17150
|
break bb0;
|
|
17141
17151
|
}
|
|
17142
17152
|
let E2;
|
|
17143
17153
|
r[38] === u ? E2 = r[39] : (E2 = PathBuilder.guessDeliminator(u), r[38] = u, r[39] = E2), q = E2.deliminator;
|
|
17144
17154
|
let O2;
|
|
17145
|
-
r[40] === c ? O2 = r[41] : (O2 = c.map(_temp2$7), r[40] = c, r[41] = O2),
|
|
17155
|
+
r[40] === c ? O2 = r[41] : (O2 = c.map(_temp2$7), r[40] = c, r[41] = O2), XU = O2;
|
|
17146
17156
|
let j2;
|
|
17147
17157
|
r[42] !== q || r[43] !== u || r[44] !== b || r[45] !== v || r[46] !== h || r[47] !== y ? (j2 = function(e3) {
|
|
17148
17158
|
if (b) return;
|
|
@@ -17163,7 +17173,7 @@ ${c}
|
|
|
17163
17173
|
return;
|
|
17164
17174
|
}
|
|
17165
17175
|
y(e3), S(false);
|
|
17166
|
-
}, r[42] = q, r[43] = u, r[44] = b, r[45] = v, r[46] = h, r[47] = y, r[48] = j2) : j2 = r[48],
|
|
17176
|
+
}, r[42] = q, r[43] = u, r[44] = b, r[45] = v, r[46] = h, r[47] = y, r[48] = j2) : j2 = r[48], ZU = j2;
|
|
17167
17177
|
let M2;
|
|
17168
17178
|
r[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M2 = function(e3) {
|
|
17169
17179
|
let { path: r2, name: c2, isDirectory: l2 } = e3;
|
|
@@ -17191,9 +17201,9 @@ ${c}
|
|
|
17191
17201
|
let H2 = B2, W2;
|
|
17192
17202
|
r[55] !== v || r[56] !== l || r[57] !== c ? (W2 = function() {
|
|
17193
17203
|
l(c.filter((e3) => Paths.dirname(e3.path) !== v));
|
|
17194
|
-
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58],
|
|
17204
|
+
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58], KU = W2, YU = function() {
|
|
17195
17205
|
let e3 = [];
|
|
17196
|
-
for (let r2 of
|
|
17206
|
+
for (let r2 of JU) {
|
|
17197
17207
|
if (!g2 && r2.is_directory || m2.has(r2.path)) continue;
|
|
17198
17208
|
let c2 = I2({
|
|
17199
17209
|
path: r2.path,
|
|
@@ -17207,32 +17217,32 @@ ${c}
|
|
|
17207
17217
|
...e3
|
|
17208
17218
|
]);
|
|
17209
17219
|
}, Z = [];
|
|
17210
|
-
let
|
|
17211
|
-
r[59] ===
|
|
17212
|
-
let
|
|
17213
|
-
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
17220
|
+
let $U2;
|
|
17221
|
+
r[59] === ZU ? $U2 = r[60] : ($U2 = () => ZU(PARENT_DIRECTORY), r[59] = ZU, r[60] = $U2);
|
|
17222
|
+
let eW2, tW2;
|
|
17223
|
+
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (eW2 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
17214
17224
|
className: "w-[50px] pl-4",
|
|
17215
17225
|
children: (0, import_jsx_runtime.jsx)(CornerLeftUp, {
|
|
17216
17226
|
size: 16
|
|
17217
17227
|
})
|
|
17218
|
-
}),
|
|
17228
|
+
}), tW2 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
17219
17229
|
children: PARENT_DIRECTORY
|
|
17220
|
-
}), r[61] =
|
|
17221
|
-
let
|
|
17222
|
-
r[63] ===
|
|
17230
|
+
}), r[61] = eW2, r[62] = tW2) : (eW2 = r[61], tW2 = r[62]);
|
|
17231
|
+
let nW2;
|
|
17232
|
+
r[63] === $U2 ? nW2 = r[64] : (nW2 = (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17223
17233
|
className: "hover:bg-accent select-none",
|
|
17224
|
-
onClick:
|
|
17234
|
+
onClick: $U2,
|
|
17225
17235
|
children: [
|
|
17226
|
-
|
|
17227
|
-
|
|
17236
|
+
eW2,
|
|
17237
|
+
tW2
|
|
17228
17238
|
]
|
|
17229
|
-
}, "Parent directory"), r[63] =
|
|
17230
|
-
for (let e3 of
|
|
17239
|
+
}, "Parent directory"), r[63] = $U2, r[64] = nW2), Z.push(nW2);
|
|
17240
|
+
for (let e3 of JU) {
|
|
17231
17241
|
let r2 = e3.path;
|
|
17232
17242
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17233
17243
|
let c2 = e3.is_directory ? (e4) => {
|
|
17234
17244
|
let { path: r3 } = e4;
|
|
17235
|
-
return
|
|
17245
|
+
return ZU(r3);
|
|
17236
17246
|
} : H2, l2 = FILE_ICON[e3.is_directory ? "directory" : guessFileIconType(e3.name)], u2 = m2.has(r2);
|
|
17237
17247
|
Z.push((0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17238
17248
|
className: cn("hover:bg-accent group select-none", {
|
|
@@ -17264,21 +17274,21 @@ ${c}
|
|
|
17264
17274
|
}, e3.id));
|
|
17265
17275
|
}
|
|
17266
17276
|
}
|
|
17267
|
-
r[11] = R, r[12] = z, r[13] = u, r[14] = b, r[15] = f, r[16] = v, r[17] = h, r[18] = d, r[19] = y, r[20] = l, r[21] = c, r[22] = G, r[23] = q, r[24] =
|
|
17268
|
-
} else G = r[22], q = r[23],
|
|
17269
|
-
if (
|
|
17270
|
-
let
|
|
17271
|
-
if (r[65] !== G || r[66] !== R || r[67] !== q || r[68] !==
|
|
17277
|
+
r[11] = R, r[12] = z, r[13] = u, r[14] = b, r[15] = f, r[16] = v, r[17] = h, r[18] = d, r[19] = y, r[20] = l, r[21] = c, r[22] = G, r[23] = q, r[24] = KU, r[25] = Z, r[26] = JU, r[27] = YU, r[28] = XU, r[29] = ZU, r[30] = QU;
|
|
17278
|
+
} else G = r[22], q = r[23], KU = r[24], Z = r[25], JU = r[26], YU = r[27], XU = r[28], ZU = r[29], QU = r[30];
|
|
17279
|
+
if (QU !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return QU;
|
|
17280
|
+
let $U, eW, tW, nW, rW, iW, aW;
|
|
17281
|
+
if (r[65] !== G || r[66] !== R || r[67] !== q || r[68] !== KU || r[69] !== z || r[70] !== Z || r[71] !== JU || r[72] !== u || r[73] !== B || r[74] !== m || r[75] !== f || r[76] !== v || r[77] !== h || r[78] !== YU || r[79] !== XU || r[80] !== d || r[81] !== ZU || r[82] !== l || r[83] !== T || r[84] !== c.length) {
|
|
17272
17282
|
let { parentDirectories: e2 } = getProtocolAndParentDirectories({
|
|
17273
17283
|
path: v,
|
|
17274
17284
|
delimiter: q,
|
|
17275
17285
|
initialPath: u,
|
|
17276
17286
|
restrictNavigation: h
|
|
17277
17287
|
}), g2 = d === "all" ? PluralWords.of("file", "folder") : d === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
17278
|
-
r[92] === z ?
|
|
17288
|
+
r[92] === z ? aW = r[93] : (aW = z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
17279
17289
|
kind: "danger",
|
|
17280
17290
|
children: z.message
|
|
17281
|
-
}), r[92] = z, r[93] =
|
|
17291
|
+
}), r[92] = z, r[93] = aW), $U = (() => {
|
|
17282
17292
|
let e3 = (0, import_jsx_runtime.jsx)(Label, {
|
|
17283
17293
|
children: renderHTML({
|
|
17284
17294
|
html: m ?? `Select ${g2.join(" and ", 2)}...`
|
|
@@ -17295,7 +17305,7 @@ ${c}
|
|
|
17295
17305
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
17296
17306
|
size: "xs",
|
|
17297
17307
|
variant: "link",
|
|
17298
|
-
onClick: G ?
|
|
17308
|
+
onClick: G ? KU : YU,
|
|
17299
17309
|
children: G ? "Deselect all" : "Select all"
|
|
17300
17310
|
})
|
|
17301
17311
|
})
|
|
@@ -17303,18 +17313,18 @@ ${c}
|
|
|
17303
17313
|
}) : e3;
|
|
17304
17314
|
})();
|
|
17305
17315
|
let _2;
|
|
17306
|
-
r[94] ===
|
|
17316
|
+
r[94] === ZU ? _2 = r[95] : (_2 = (e3) => ZU(e3.target.value), r[94] = ZU, r[95] = _2);
|
|
17307
17317
|
let y2 = e2.map(_temp3$5);
|
|
17308
|
-
r[96] !== v || r[97] !== _2 || r[98] !== y2 ? (
|
|
17318
|
+
r[96] !== v || r[97] !== _2 || r[98] !== y2 ? (eW = (0, import_jsx_runtime.jsx)(NativeSelect, {
|
|
17309
17319
|
className: "mt-2 w-full",
|
|
17310
17320
|
placeholder: v,
|
|
17311
17321
|
value: v,
|
|
17312
17322
|
onChange: _2,
|
|
17313
17323
|
children: y2
|
|
17314
|
-
}), r[96] = v, r[97] = _2, r[98] = y2, r[99] =
|
|
17324
|
+
}), r[96] = v, r[97] = _2, r[98] = y2, r[99] = eW) : eW = r[99], r[100] !== R || r[101] !== JU ? (tW = R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
17315
17325
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
17316
|
-
children: R.is_truncated ? `Showing ${
|
|
17317
|
-
}), r[100] = R, r[101] =
|
|
17326
|
+
children: R.is_truncated ? `Showing ${JU.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
17327
|
+
}), r[100] = R, r[101] = JU, r[102] = tW) : tW = r[102];
|
|
17318
17328
|
let b2;
|
|
17319
17329
|
r[103] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b2 = {
|
|
17320
17330
|
height: "14rem"
|
|
@@ -17338,7 +17348,7 @@ ${c}
|
|
|
17338
17348
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17339
17349
|
children: Z
|
|
17340
17350
|
})
|
|
17341
|
-
}), r[106] = Z, r[107] = E2), r[108] !== B || r[109] !== S2 || r[110] !== E2 ? (
|
|
17351
|
+
}), r[106] = Z, r[107] = E2), r[108] !== B || r[109] !== S2 || r[110] !== E2 ? (nW = (0, import_jsx_runtime.jsxs)("div", {
|
|
17342
17352
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
17343
17353
|
style: b2,
|
|
17344
17354
|
"aria-busy": B,
|
|
@@ -17347,7 +17357,7 @@ ${c}
|
|
|
17347
17357
|
S2,
|
|
17348
17358
|
E2
|
|
17349
17359
|
]
|
|
17350
|
-
}), r[108] = B, r[109] = S2, r[110] = E2, r[111] =
|
|
17360
|
+
}), r[108] = B, r[109] = S2, r[110] = E2, r[111] = nW) : nW = r[111], rW = "mt-4", iW = c.length > 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
17351
17361
|
children: [
|
|
17352
17362
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
17353
17363
|
className: "flex items-center gap-2",
|
|
@@ -17377,28 +17387,28 @@ ${c}
|
|
|
17377
17387
|
marginBlock: 0
|
|
17378
17388
|
},
|
|
17379
17389
|
className: "m-0 text-xs text-muted-foreground",
|
|
17380
|
-
children:
|
|
17390
|
+
children: XU
|
|
17381
17391
|
})
|
|
17382
17392
|
})
|
|
17383
17393
|
]
|
|
17384
|
-
}), r[65] = G, r[66] = R, r[67] = q, r[68] =
|
|
17385
|
-
} else
|
|
17386
|
-
let
|
|
17387
|
-
r[112] !==
|
|
17388
|
-
className:
|
|
17389
|
-
children:
|
|
17390
|
-
}), r[112] =
|
|
17391
|
-
let
|
|
17392
|
-
return r[115] !==
|
|
17394
|
+
}), r[65] = G, r[66] = R, r[67] = q, r[68] = KU, r[69] = z, r[70] = Z, r[71] = JU, r[72] = u, r[73] = B, r[74] = m, r[75] = f, r[76] = v, r[77] = h, r[78] = YU, r[79] = XU, r[80] = d, r[81] = ZU, r[82] = l, r[83] = T, r[84] = c.length, r[85] = $U, r[86] = eW, r[87] = tW, r[88] = nW, r[89] = rW, r[90] = iW, r[91] = aW;
|
|
17395
|
+
} else $U = r[85], eW = r[86], tW = r[87], nW = r[88], rW = r[89], iW = r[90], aW = r[91];
|
|
17396
|
+
let oW;
|
|
17397
|
+
r[112] !== rW || r[113] !== iW ? (oW = (0, import_jsx_runtime.jsx)("div", {
|
|
17398
|
+
className: rW,
|
|
17399
|
+
children: iW
|
|
17400
|
+
}), r[112] = rW, r[113] = iW, r[114] = oW) : oW = r[114];
|
|
17401
|
+
let sW;
|
|
17402
|
+
return r[115] !== $U || r[116] !== eW || r[117] !== tW || r[118] !== nW || r[119] !== oW || r[120] !== aW ? (sW = (0, import_jsx_runtime.jsxs)("div", {
|
|
17393
17403
|
children: [
|
|
17394
|
-
|
|
17395
|
-
XU,
|
|
17396
|
-
ZU,
|
|
17397
|
-
QU,
|
|
17404
|
+
aW,
|
|
17398
17405
|
$U,
|
|
17399
|
-
|
|
17406
|
+
eW,
|
|
17407
|
+
tW,
|
|
17408
|
+
nW,
|
|
17409
|
+
oW
|
|
17400
17410
|
]
|
|
17401
|
-
}), r[115] =
|
|
17411
|
+
}), r[115] = $U, r[116] = eW, r[117] = tW, r[118] = nW, r[119] = oW, r[120] = aW, r[121] = sW) : sW = r[121], sW;
|
|
17402
17412
|
};
|
|
17403
17413
|
function _temp$12(e) {
|
|
17404
17414
|
return e.path;
|
|
@@ -22788,55 +22798,55 @@ ${c}
|
|
|
22788
22798
|
return typeof S == "function" ? S : noop$2;
|
|
22789
22799
|
}, [
|
|
22790
22800
|
S
|
|
22791
|
-
]), q = (0, import_react.useRef)(null),
|
|
22792
|
-
!
|
|
22793
|
-
|
|
22801
|
+
]), q = (0, import_react.useRef)(null), KU = (0, import_react.useRef)(null), Z = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), qU = Z[0], JU = Z[1], YU = qU.isFocused, XU = qU.isFileDialogActive, ZU = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), QU = function() {
|
|
22802
|
+
!ZU.current && XU && setTimeout(function() {
|
|
22803
|
+
KU.current && (KU.current.files.length || (JU({
|
|
22794
22804
|
type: "closeDialog"
|
|
22795
22805
|
}), G()));
|
|
22796
22806
|
}, 300);
|
|
22797
22807
|
};
|
|
22798
22808
|
(0, import_react.useEffect)(function() {
|
|
22799
|
-
return window.addEventListener("focus",
|
|
22800
|
-
window.removeEventListener("focus",
|
|
22809
|
+
return window.addEventListener("focus", QU, false), function() {
|
|
22810
|
+
window.removeEventListener("focus", QU, false);
|
|
22801
22811
|
};
|
|
22802
22812
|
}, [
|
|
22803
|
-
|
|
22804
|
-
|
|
22813
|
+
KU,
|
|
22814
|
+
XU,
|
|
22805
22815
|
G,
|
|
22806
|
-
|
|
22816
|
+
ZU
|
|
22807
22817
|
]);
|
|
22808
|
-
var
|
|
22809
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
22818
|
+
var $U = (0, import_react.useRef)([]), eW = (0, import_react.useRef)([]), tW = function(e2) {
|
|
22819
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), $U.current = []);
|
|
22810
22820
|
};
|
|
22811
22821
|
(0, import_react.useEffect)(function() {
|
|
22812
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
22813
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
22822
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", tW, false)), function() {
|
|
22823
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", tW));
|
|
22814
22824
|
};
|
|
22815
22825
|
}, [
|
|
22816
22826
|
q,
|
|
22817
22827
|
O
|
|
22818
22828
|
]), (0, import_react.useEffect)(function() {
|
|
22819
22829
|
var e2 = function(e3) {
|
|
22820
|
-
|
|
22830
|
+
eW.current = [].concat(_toConsumableArray(eW.current), [
|
|
22821
22831
|
e3.target
|
|
22822
|
-
]), isEvtWithFiles(e3) &&
|
|
22832
|
+
]), isEvtWithFiles(e3) && JU({
|
|
22823
22833
|
isDragGlobal: true,
|
|
22824
22834
|
type: "setDragGlobal"
|
|
22825
22835
|
});
|
|
22826
22836
|
}, r2 = function(e3) {
|
|
22827
|
-
|
|
22837
|
+
eW.current = eW.current.filter(function(r3) {
|
|
22828
22838
|
return r3 !== e3.target && r3 !== null;
|
|
22829
|
-
}), !(
|
|
22839
|
+
}), !(eW.current.length > 0) && JU({
|
|
22830
22840
|
isDragGlobal: false,
|
|
22831
22841
|
type: "setDragGlobal"
|
|
22832
22842
|
});
|
|
22833
22843
|
}, c2 = function() {
|
|
22834
|
-
|
|
22844
|
+
eW.current = [], JU({
|
|
22835
22845
|
isDragGlobal: false,
|
|
22836
22846
|
type: "setDragGlobal"
|
|
22837
22847
|
});
|
|
22838
22848
|
}, l2 = function() {
|
|
22839
|
-
|
|
22849
|
+
eW.current = [], JU({
|
|
22840
22850
|
isDragGlobal: false,
|
|
22841
22851
|
type: "setDragGlobal"
|
|
22842
22852
|
});
|
|
@@ -22854,12 +22864,12 @@ ${c}
|
|
|
22854
22864
|
E,
|
|
22855
22865
|
l
|
|
22856
22866
|
]);
|
|
22857
|
-
var
|
|
22867
|
+
var nW = (0, import_react.useCallback)(function(e2) {
|
|
22858
22868
|
R ? R(e2) : console.error(e2);
|
|
22859
22869
|
}, [
|
|
22860
22870
|
R
|
|
22861
|
-
]),
|
|
22862
|
-
e2.preventDefault(), e2.persist(),
|
|
22871
|
+
]), rW = (0, import_react.useCallback)(function(e2) {
|
|
22872
|
+
e2.preventDefault(), e2.persist(), gW(e2), $U.current = [].concat(_toConsumableArray($U.current), [
|
|
22863
22873
|
e2.target
|
|
22864
22874
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22865
22875
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -22872,7 +22882,7 @@ ${c}
|
|
|
22872
22882
|
maxFiles: m,
|
|
22873
22883
|
validator: z
|
|
22874
22884
|
});
|
|
22875
|
-
|
|
22885
|
+
JU({
|
|
22876
22886
|
isDragAccept: l2,
|
|
22877
22887
|
isDragReject: c2 > 0 && !l2,
|
|
22878
22888
|
isDragActive: true,
|
|
@@ -22880,12 +22890,12 @@ ${c}
|
|
|
22880
22890
|
}), h && h(e2);
|
|
22881
22891
|
}
|
|
22882
22892
|
}).catch(function(e3) {
|
|
22883
|
-
return
|
|
22893
|
+
return nW(e3);
|
|
22884
22894
|
});
|
|
22885
22895
|
}, [
|
|
22886
22896
|
u,
|
|
22887
22897
|
h,
|
|
22888
|
-
|
|
22898
|
+
nW,
|
|
22889
22899
|
L,
|
|
22890
22900
|
B,
|
|
22891
22901
|
f,
|
|
@@ -22893,8 +22903,8 @@ ${c}
|
|
|
22893
22903
|
p,
|
|
22894
22904
|
m,
|
|
22895
22905
|
z
|
|
22896
|
-
]),
|
|
22897
|
-
e2.preventDefault(), e2.persist(),
|
|
22906
|
+
]), iW = (0, import_react.useCallback)(function(e2) {
|
|
22907
|
+
e2.preventDefault(), e2.persist(), gW(e2);
|
|
22898
22908
|
var r2 = isEvtWithFiles(e2);
|
|
22899
22909
|
if (r2 && e2.dataTransfer) try {
|
|
22900
22910
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -22904,12 +22914,12 @@ ${c}
|
|
|
22904
22914
|
}, [
|
|
22905
22915
|
_,
|
|
22906
22916
|
L
|
|
22907
|
-
]),
|
|
22908
|
-
e2.preventDefault(), e2.persist(),
|
|
22909
|
-
var r2 =
|
|
22917
|
+
]), aW = (0, import_react.useCallback)(function(e2) {
|
|
22918
|
+
e2.preventDefault(), e2.persist(), gW(e2);
|
|
22919
|
+
var r2 = $U.current.filter(function(e3) {
|
|
22910
22920
|
return q.current && q.current.contains(e3);
|
|
22911
22921
|
}), c2 = r2.indexOf(e2.target);
|
|
22912
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
22922
|
+
c2 !== -1 && r2.splice(c2, 1), $U.current = r2, !(r2.length > 0) && (JU({
|
|
22913
22923
|
type: "setDraggedFiles",
|
|
22914
22924
|
isDragActive: false,
|
|
22915
22925
|
isDragAccept: false,
|
|
@@ -22919,7 +22929,7 @@ ${c}
|
|
|
22919
22929
|
q,
|
|
22920
22930
|
g,
|
|
22921
22931
|
L
|
|
22922
|
-
]),
|
|
22932
|
+
]), oW = (0, import_react.useCallback)(function(e2, r2) {
|
|
22923
22933
|
var c2 = [], l2 = [];
|
|
22924
22934
|
e2.forEach(function(e3) {
|
|
22925
22935
|
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;
|
|
@@ -22943,14 +22953,14 @@ ${c}
|
|
|
22943
22953
|
TOO_MANY_FILES_REJECTION
|
|
22944
22954
|
]
|
|
22945
22955
|
});
|
|
22946
|
-
}), c2.splice(0)),
|
|
22956
|
+
}), c2.splice(0)), JU({
|
|
22947
22957
|
acceptedFiles: c2,
|
|
22948
22958
|
fileRejections: l2,
|
|
22949
22959
|
isDragReject: l2.length > 0,
|
|
22950
22960
|
type: "setFiles"
|
|
22951
22961
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
22952
22962
|
}, [
|
|
22953
|
-
|
|
22963
|
+
JU,
|
|
22954
22964
|
p,
|
|
22955
22965
|
B,
|
|
22956
22966
|
f,
|
|
@@ -22960,22 +22970,22 @@ ${c}
|
|
|
22960
22970
|
y,
|
|
22961
22971
|
b,
|
|
22962
22972
|
z
|
|
22963
|
-
]),
|
|
22964
|
-
e2.preventDefault(), e2.persist(),
|
|
22965
|
-
isPropagationStopped(e2) && !L ||
|
|
22973
|
+
]), sW = (0, import_react.useCallback)(function(e2) {
|
|
22974
|
+
e2.preventDefault(), e2.persist(), gW(e2), $U.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22975
|
+
isPropagationStopped(e2) && !L || oW(r2, e2);
|
|
22966
22976
|
}).catch(function(e3) {
|
|
22967
|
-
return
|
|
22968
|
-
}),
|
|
22977
|
+
return nW(e3);
|
|
22978
|
+
}), JU({
|
|
22969
22979
|
type: "reset"
|
|
22970
22980
|
});
|
|
22971
22981
|
}, [
|
|
22972
22982
|
u,
|
|
22973
|
-
|
|
22974
|
-
|
|
22983
|
+
oW,
|
|
22984
|
+
nW,
|
|
22975
22985
|
L
|
|
22976
|
-
]),
|
|
22977
|
-
if (
|
|
22978
|
-
|
|
22986
|
+
]), cW = (0, import_react.useCallback)(function() {
|
|
22987
|
+
if (ZU.current) {
|
|
22988
|
+
JU({
|
|
22979
22989
|
type: "openDialog"
|
|
22980
22990
|
}), W();
|
|
22981
22991
|
var e2 = {
|
|
@@ -22985,66 +22995,66 @@ ${c}
|
|
|
22985
22995
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
22986
22996
|
return u(e3);
|
|
22987
22997
|
}).then(function(e3) {
|
|
22988
|
-
|
|
22998
|
+
oW(e3, null), JU({
|
|
22989
22999
|
type: "closeDialog"
|
|
22990
23000
|
});
|
|
22991
23001
|
}).catch(function(e3) {
|
|
22992
|
-
isAbort(e3) ? (G(e3),
|
|
23002
|
+
isAbort(e3) ? (G(e3), JU({
|
|
22993
23003
|
type: "closeDialog"
|
|
22994
|
-
})) : isSecurityError(e3) ? (
|
|
23004
|
+
})) : isSecurityError(e3) ? (ZU.current = false, KU.current ? (KU.current.value = null, KU.current.click()) : nW(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."))) : nW(e3);
|
|
22995
23005
|
});
|
|
22996
23006
|
return;
|
|
22997
23007
|
}
|
|
22998
|
-
|
|
23008
|
+
KU.current && (JU({
|
|
22999
23009
|
type: "openDialog"
|
|
23000
|
-
}), W(),
|
|
23010
|
+
}), W(), KU.current.value = null, KU.current.click());
|
|
23001
23011
|
}, [
|
|
23002
|
-
|
|
23012
|
+
JU,
|
|
23003
23013
|
W,
|
|
23004
23014
|
G,
|
|
23005
23015
|
T,
|
|
23006
|
-
|
|
23007
|
-
|
|
23016
|
+
oW,
|
|
23017
|
+
nW,
|
|
23008
23018
|
H,
|
|
23009
23019
|
p
|
|
23010
|
-
]),
|
|
23011
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
23020
|
+
]), lW = (0, import_react.useCallback)(function(e2) {
|
|
23021
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), cW());
|
|
23012
23022
|
}, [
|
|
23013
23023
|
q,
|
|
23014
|
-
|
|
23015
|
-
]),
|
|
23016
|
-
|
|
23024
|
+
cW
|
|
23025
|
+
]), uW = (0, import_react.useCallback)(function() {
|
|
23026
|
+
JU({
|
|
23017
23027
|
type: "focus"
|
|
23018
23028
|
});
|
|
23019
|
-
}, []),
|
|
23020
|
-
|
|
23029
|
+
}, []), dW = (0, import_react.useCallback)(function() {
|
|
23030
|
+
JU({
|
|
23021
23031
|
type: "blur"
|
|
23022
23032
|
});
|
|
23023
|
-
}, []),
|
|
23024
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
23033
|
+
}, []), fW = (0, import_react.useCallback)(function() {
|
|
23034
|
+
j || (isIeOrEdge() ? setTimeout(cW, 0) : cW());
|
|
23025
23035
|
}, [
|
|
23026
23036
|
j,
|
|
23027
|
-
|
|
23028
|
-
]),
|
|
23037
|
+
cW
|
|
23038
|
+
]), pW = function(e2) {
|
|
23029
23039
|
return l ? null : e2;
|
|
23030
|
-
},
|
|
23031
|
-
return M ? null :
|
|
23032
|
-
},
|
|
23033
|
-
return I ? null :
|
|
23034
|
-
},
|
|
23040
|
+
}, mW = function(e2) {
|
|
23041
|
+
return M ? null : pW(e2);
|
|
23042
|
+
}, hW = function(e2) {
|
|
23043
|
+
return I ? null : pW(e2);
|
|
23044
|
+
}, gW = function(e2) {
|
|
23035
23045
|
L && e2.stopPropagation();
|
|
23036
|
-
},
|
|
23046
|
+
}, _W = (0, import_react.useMemo)(function() {
|
|
23037
23047
|
return function() {
|
|
23038
23048
|
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);
|
|
23039
23049
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
23040
|
-
onKeyDown:
|
|
23041
|
-
onFocus:
|
|
23042
|
-
onBlur:
|
|
23043
|
-
onClick:
|
|
23044
|
-
onDragEnter:
|
|
23045
|
-
onDragOver:
|
|
23046
|
-
onDragLeave:
|
|
23047
|
-
onDrop:
|
|
23050
|
+
onKeyDown: mW(composeEventHandlers(d2, lW)),
|
|
23051
|
+
onFocus: mW(composeEventHandlers(f2, uW)),
|
|
23052
|
+
onBlur: mW(composeEventHandlers(p2, dW)),
|
|
23053
|
+
onClick: pW(composeEventHandlers(m2, fW)),
|
|
23054
|
+
onDragEnter: hW(composeEventHandlers(h2, rW)),
|
|
23055
|
+
onDragOver: hW(composeEventHandlers(g2, iW)),
|
|
23056
|
+
onDragLeave: hW(composeEventHandlers(_2, aW)),
|
|
23057
|
+
onDrop: hW(composeEventHandlers(v2, sW)),
|
|
23048
23058
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23049
23059
|
}, c2, q), !l && !M ? {
|
|
23050
23060
|
tabIndex: 0
|
|
@@ -23052,20 +23062,20 @@ ${c}
|
|
|
23052
23062
|
};
|
|
23053
23063
|
}, [
|
|
23054
23064
|
q,
|
|
23055
|
-
oW,
|
|
23056
|
-
sW,
|
|
23057
|
-
cW,
|
|
23058
23065
|
lW,
|
|
23059
|
-
|
|
23060
|
-
|
|
23061
|
-
|
|
23066
|
+
uW,
|
|
23067
|
+
dW,
|
|
23068
|
+
fW,
|
|
23069
|
+
rW,
|
|
23062
23070
|
iW,
|
|
23071
|
+
aW,
|
|
23072
|
+
sW,
|
|
23063
23073
|
M,
|
|
23064
23074
|
I,
|
|
23065
23075
|
l
|
|
23066
|
-
]),
|
|
23076
|
+
]), vW = (0, import_react.useCallback)(function(e2) {
|
|
23067
23077
|
e2.stopPropagation();
|
|
23068
|
-
}, []),
|
|
23078
|
+
}, []), yW = (0, import_react.useMemo)(function() {
|
|
23069
23079
|
return function() {
|
|
23070
23080
|
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);
|
|
23071
23081
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -23084,25 +23094,25 @@ ${c}
|
|
|
23084
23094
|
width: "1px",
|
|
23085
23095
|
whiteSpace: "nowrap"
|
|
23086
23096
|
},
|
|
23087
|
-
onChange:
|
|
23088
|
-
onClick:
|
|
23097
|
+
onChange: pW(composeEventHandlers(l2, sW)),
|
|
23098
|
+
onClick: pW(composeEventHandlers(u2, vW)),
|
|
23089
23099
|
tabIndex: -1
|
|
23090
|
-
}, c2,
|
|
23100
|
+
}, c2, KU)), d2);
|
|
23091
23101
|
};
|
|
23092
23102
|
}, [
|
|
23093
|
-
|
|
23103
|
+
KU,
|
|
23094
23104
|
c,
|
|
23095
23105
|
p,
|
|
23096
|
-
|
|
23106
|
+
sW,
|
|
23097
23107
|
l
|
|
23098
23108
|
]);
|
|
23099
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
23100
|
-
isFocused:
|
|
23101
|
-
getRootProps:
|
|
23102
|
-
getInputProps:
|
|
23109
|
+
return _objectSpread$7(_objectSpread$7({}, qU), {}, {
|
|
23110
|
+
isFocused: YU && !l,
|
|
23111
|
+
getRootProps: _W,
|
|
23112
|
+
getInputProps: yW,
|
|
23103
23113
|
rootRef: q,
|
|
23104
|
-
inputRef:
|
|
23105
|
-
open:
|
|
23114
|
+
inputRef: KU,
|
|
23115
|
+
open: pW(cW)
|
|
23106
23116
|
});
|
|
23107
23117
|
}
|
|
23108
23118
|
function reducer$2(e, r) {
|
|
@@ -23334,47 +23344,47 @@ ${c}
|
|
|
23334
23344
|
html: I
|
|
23335
23345
|
})
|
|
23336
23346
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
23337
|
-
let q = w && "text-primary",
|
|
23338
|
-
r[48] !== q || r[49] !==
|
|
23339
|
-
let
|
|
23340
|
-
r[51] === Z ?
|
|
23347
|
+
let q = w && "text-primary", KU = T && "text-destructive", Z;
|
|
23348
|
+
r[48] !== q || r[49] !== KU ? (Z = cn(q, KU), r[48] = q, r[49] = KU, r[50] = Z) : Z = r[50];
|
|
23349
|
+
let qU;
|
|
23350
|
+
r[51] === Z ? qU = r[52] : (qU = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23341
23351
|
strokeWidth: 1.4,
|
|
23342
23352
|
className: Z
|
|
23343
|
-
}), r[51] = Z, r[52] =
|
|
23344
|
-
let
|
|
23345
|
-
r[53] !==
|
|
23346
|
-
let
|
|
23347
|
-
r[56] ===
|
|
23353
|
+
}), r[51] = Z, r[52] = qU);
|
|
23354
|
+
let JU = w && "text-primary", YU = T && "text-destructive", XU;
|
|
23355
|
+
r[53] !== JU || r[54] !== YU ? (XU = cn(JU, YU), r[53] = JU, r[54] = YU, r[55] = XU) : XU = r[55];
|
|
23356
|
+
let ZU;
|
|
23357
|
+
r[56] === XU ? ZU = r[57] : (ZU = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23348
23358
|
strokeWidth: 1.4,
|
|
23349
|
-
className:
|
|
23350
|
-
}), r[56] =
|
|
23351
|
-
let
|
|
23352
|
-
r[58] !==
|
|
23359
|
+
className: XU
|
|
23360
|
+
}), r[56] = XU, r[57] = ZU);
|
|
23361
|
+
let QU;
|
|
23362
|
+
r[58] !== qU || r[59] !== ZU ? (QU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23353
23363
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
23354
23364
|
children: [
|
|
23355
|
-
|
|
23356
|
-
|
|
23365
|
+
qU,
|
|
23366
|
+
ZU
|
|
23357
23367
|
]
|
|
23358
|
-
}), r[58] =
|
|
23359
|
-
let
|
|
23360
|
-
r[61] !== G || r[62] !==
|
|
23368
|
+
}), r[58] = qU, r[59] = ZU, r[60] = QU) : QU = r[60];
|
|
23369
|
+
let $U;
|
|
23370
|
+
r[61] !== G || r[62] !== QU ? ($U = (0, import_jsx_runtime.jsxs)("div", {
|
|
23361
23371
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
23362
23372
|
children: [
|
|
23363
23373
|
G,
|
|
23364
|
-
|
|
23374
|
+
QU
|
|
23365
23375
|
]
|
|
23366
|
-
}), r[61] = G, r[62] =
|
|
23367
|
-
let
|
|
23368
|
-
r[64] !== W || r[65] !==
|
|
23376
|
+
}), r[61] = G, r[62] = QU, r[63] = $U) : $U = r[63];
|
|
23377
|
+
let eW;
|
|
23378
|
+
r[64] !== W || r[65] !== $U || r[66] !== z || r[67] !== B ? (eW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23369
23379
|
className: z,
|
|
23370
23380
|
...B,
|
|
23371
23381
|
children: [
|
|
23372
23382
|
W,
|
|
23373
|
-
|
|
23383
|
+
$U
|
|
23374
23384
|
]
|
|
23375
|
-
}), r[64] = W, r[65] =
|
|
23376
|
-
let
|
|
23377
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
23385
|
+
}), r[64] = W, r[65] = $U, r[66] = z, r[67] = B, r[68] = eW) : eW = r[68];
|
|
23386
|
+
let tW;
|
|
23387
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (tW = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
23378
23388
|
className: "flex flex-row gap-1",
|
|
23379
23389
|
children: [
|
|
23380
23390
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23410,17 +23420,17 @@ ${c}
|
|
|
23410
23420
|
})
|
|
23411
23421
|
})
|
|
23412
23422
|
]
|
|
23413
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
23414
|
-
let
|
|
23415
|
-
return r[75] !==
|
|
23423
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = tW) : tW = r[74];
|
|
23424
|
+
let nW;
|
|
23425
|
+
return r[75] !== eW || r[76] !== tW ? (nW = (0, import_jsx_runtime.jsx)("section", {
|
|
23416
23426
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
23417
23427
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
23418
23428
|
children: [
|
|
23419
|
-
|
|
23420
|
-
|
|
23429
|
+
eW,
|
|
23430
|
+
tW
|
|
23421
23431
|
]
|
|
23422
23432
|
})
|
|
23423
|
-
}), r[75] =
|
|
23433
|
+
}), r[75] = eW, r[76] = tW, r[77] = nW) : nW = r[77], nW;
|
|
23424
23434
|
};
|
|
23425
23435
|
function _temp$11(e) {
|
|
23426
23436
|
Logger.error(e), toast({
|
|
@@ -23516,75 +23526,75 @@ ${c}
|
|
|
23516
23526
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
23517
23527
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23518
23528
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
23519
|
-
let
|
|
23520
|
-
r[13] === f ?
|
|
23529
|
+
let KU;
|
|
23530
|
+
r[13] === f ? KU = r[14] : (KU = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23521
23531
|
className: "text-center",
|
|
23522
23532
|
children: renderHTML({
|
|
23523
23533
|
html: f
|
|
23524
23534
|
})
|
|
23525
|
-
}), r[13] = f, r[14] =
|
|
23535
|
+
}), r[13] = f, r[14] = KU);
|
|
23526
23536
|
let Z;
|
|
23527
23537
|
r[15] === L ? Z = r[16] : (Z = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
23528
23538
|
kind: "danger",
|
|
23529
23539
|
className: "rounded",
|
|
23530
23540
|
children: L ?? "Invalid input"
|
|
23531
23541
|
}), r[15] = L, r[16] = Z);
|
|
23532
|
-
let
|
|
23533
|
-
r[17] === c ?
|
|
23542
|
+
let qU;
|
|
23543
|
+
r[17] === c ? qU = r[18] : (qU = (0, import_jsx_runtime.jsx)("div", {
|
|
23534
23544
|
children: c
|
|
23535
|
-
}), r[17] = c, r[18] =
|
|
23536
|
-
let
|
|
23537
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
23545
|
+
}), r[17] = c, r[18] = qU);
|
|
23546
|
+
let JU;
|
|
23547
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (JU = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
23538
23548
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
23539
23549
|
variant: "text",
|
|
23540
23550
|
onClick: (e2) => {
|
|
23541
23551
|
e2.preventDefault(), B();
|
|
23542
23552
|
},
|
|
23543
23553
|
children: S
|
|
23544
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
23545
|
-
let
|
|
23546
|
-
r[23] === h ?
|
|
23554
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = JU) : JU = r[22];
|
|
23555
|
+
let YU = v || h, XU;
|
|
23556
|
+
r[23] === h ? XU = r[24] : (XU = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
23547
23557
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
23548
|
-
}), r[23] = h, r[24] =
|
|
23549
|
-
let
|
|
23550
|
-
r[25] !== g || r[26] !==
|
|
23558
|
+
}), r[23] = h, r[24] = XU);
|
|
23559
|
+
let ZU;
|
|
23560
|
+
r[25] !== g || r[26] !== YU || r[27] !== XU || r[28] !== I ? (ZU = (0, import_jsx_runtime.jsxs)(Button, {
|
|
23551
23561
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
23552
23562
|
variant: I,
|
|
23553
|
-
disabled:
|
|
23563
|
+
disabled: YU,
|
|
23554
23564
|
type: "submit",
|
|
23555
23565
|
children: [
|
|
23556
|
-
|
|
23566
|
+
XU,
|
|
23557
23567
|
g
|
|
23558
23568
|
]
|
|
23559
|
-
}), r[25] = g, r[26] =
|
|
23560
|
-
let
|
|
23561
|
-
r[30] !== _ || r[31] !==
|
|
23562
|
-
let
|
|
23563
|
-
r[33] !==
|
|
23569
|
+
}), r[25] = g, r[26] = YU, r[27] = XU, r[28] = I, r[29] = ZU) : ZU = r[29];
|
|
23570
|
+
let QU;
|
|
23571
|
+
r[30] !== _ || r[31] !== ZU ? (QU = withTooltip(ZU, _), r[30] = _, r[31] = ZU, r[32] = QU) : QU = r[32];
|
|
23572
|
+
let $U;
|
|
23573
|
+
r[33] !== QU || r[34] !== JU ? ($U = (0, import_jsx_runtime.jsxs)("div", {
|
|
23564
23574
|
className: "flex justify-end gap-2 font-code",
|
|
23565
23575
|
children: [
|
|
23566
|
-
|
|
23567
|
-
|
|
23576
|
+
JU,
|
|
23577
|
+
QU
|
|
23568
23578
|
]
|
|
23569
|
-
}), r[33] =
|
|
23570
|
-
let
|
|
23571
|
-
r[36] !==
|
|
23579
|
+
}), r[33] = QU, r[34] = JU, r[35] = $U) : $U = r[35];
|
|
23580
|
+
let eW;
|
|
23581
|
+
r[36] !== $U || r[37] !== G || r[38] !== q || r[39] !== KU || r[40] !== Z || r[41] !== qU ? (eW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23572
23582
|
className: G,
|
|
23573
23583
|
onKeyDown: q,
|
|
23574
23584
|
children: [
|
|
23575
|
-
|
|
23585
|
+
KU,
|
|
23576
23586
|
Z,
|
|
23577
|
-
|
|
23578
|
-
|
|
23587
|
+
qU,
|
|
23588
|
+
$U
|
|
23579
23589
|
]
|
|
23580
|
-
}), r[36] =
|
|
23581
|
-
let
|
|
23582
|
-
return r[43] !==
|
|
23590
|
+
}), r[36] = $U, r[37] = G, r[38] = q, r[39] = KU, r[40] = Z, r[41] = qU, r[42] = eW) : eW = r[42];
|
|
23591
|
+
let tW;
|
|
23592
|
+
return r[43] !== eW || r[44] !== H ? (tW = (0, import_jsx_runtime.jsx)("form", {
|
|
23583
23593
|
className: "contents",
|
|
23584
23594
|
ref: j,
|
|
23585
23595
|
onSubmit: H,
|
|
23586
|
-
children:
|
|
23587
|
-
}), r[43] =
|
|
23596
|
+
children: eW
|
|
23597
|
+
}), r[43] = eW, r[44] = H, r[45] = tW) : tW = r[45], tW;
|
|
23588
23598
|
};
|
|
23589
23599
|
var Form = (e) => {
|
|
23590
23600
|
let r = (0, import_compiler_runtime$43.c)(24), c, l, u, d, f, p;
|
|
@@ -25344,8 +25354,8 @@ ${c}
|
|
|
25344
25354
|
points: extractSunburstPoints(e2.points)
|
|
25345
25355
|
}));
|
|
25346
25356
|
}, r[29] = u, r[30] = G);
|
|
25347
|
-
let q = useEvent_default(G),
|
|
25348
|
-
r[31] === u ?
|
|
25357
|
+
let q = useEvent_default(G), KU;
|
|
25358
|
+
r[31] === u ? KU = r[32] : (KU = (e2) => {
|
|
25349
25359
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25350
25360
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25351
25361
|
u((e3) => ({
|
|
@@ -25356,9 +25366,9 @@ ${c}
|
|
|
25356
25366
|
points: r2,
|
|
25357
25367
|
indices: c2
|
|
25358
25368
|
}));
|
|
25359
|
-
}, r[31] = u, r[32] =
|
|
25360
|
-
let Z = useEvent_default(
|
|
25361
|
-
r[33] === u ?
|
|
25369
|
+
}, r[31] = u, r[32] = KU);
|
|
25370
|
+
let Z = useEvent_default(KU), qU;
|
|
25371
|
+
r[33] === u ? qU = r[34] : (qU = (e2) => {
|
|
25362
25372
|
e2 && u((r2) => ({
|
|
25363
25373
|
...r2,
|
|
25364
25374
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -25367,9 +25377,9 @@ ${c}
|
|
|
25367
25377
|
range: e2.range,
|
|
25368
25378
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
25369
25379
|
}));
|
|
25370
|
-
}, r[33] = u, r[34] =
|
|
25371
|
-
let
|
|
25372
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !==
|
|
25380
|
+
}, r[33] = u, r[34] = qU);
|
|
25381
|
+
let JU = useEvent_default(qU), YU = m.frames ?? void 0, XU = useEvent_default(_temp3$3), ZU;
|
|
25382
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !== JU || r[43] !== YU || r[44] !== XU || r[45] !== R ? (ZU = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25373
25383
|
...m,
|
|
25374
25384
|
layout: h,
|
|
25375
25385
|
onRelayout: R,
|
|
@@ -25378,12 +25388,12 @@ ${c}
|
|
|
25378
25388
|
onSunburstClick: q,
|
|
25379
25389
|
config: L,
|
|
25380
25390
|
onClick: Z,
|
|
25381
|
-
onSelected:
|
|
25391
|
+
onSelected: JU,
|
|
25382
25392
|
className: "w-full",
|
|
25383
25393
|
useResizeHandler: true,
|
|
25384
|
-
frames:
|
|
25385
|
-
onError:
|
|
25386
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] =
|
|
25394
|
+
frames: YU,
|
|
25395
|
+
onError: XU
|
|
25396
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] = JU, r[43] = YU, r[44] = XU, r[45] = R, r[46] = ZU) : ZU = r[46], ZU;
|
|
25387
25397
|
});
|
|
25388
25398
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25389
25399
|
function _temp$8(e) {
|
|
@@ -25515,8 +25525,8 @@ ${c}
|
|
|
25515
25525
|
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];
|
|
25516
25526
|
let q;
|
|
25517
25527
|
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];
|
|
25518
|
-
let
|
|
25519
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
25528
|
+
let KU;
|
|
25529
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (KU = (0, import_jsx_runtime.jsx)(Track, {
|
|
25520
25530
|
ref: E,
|
|
25521
25531
|
"data-testid": "track",
|
|
25522
25532
|
className: G,
|
|
@@ -25527,7 +25537,7 @@ ${c}
|
|
|
25527
25537
|
onPointerMove: z,
|
|
25528
25538
|
onPointerUp: H
|
|
25529
25539
|
})
|
|
25530
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25540
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = KU) : KU = c[22];
|
|
25531
25541
|
let Z;
|
|
25532
25542
|
c[23] !== m.setFalse || c[24] !== m.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25533
25543
|
asChild: true,
|
|
@@ -25540,29 +25550,29 @@ ${c}
|
|
|
25540
25550
|
onMouseLeave: m.setFalse
|
|
25541
25551
|
})
|
|
25542
25552
|
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = Z) : Z = c[25];
|
|
25543
|
-
let
|
|
25544
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
25553
|
+
let qU;
|
|
25554
|
+
c[26] !== h || c[27] !== u.value || c[28] !== d ? (qU = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25545
25555
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
25546
25556
|
locale: h
|
|
25547
25557
|
})
|
|
25548
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
25549
|
-
let
|
|
25550
|
-
c[30] ===
|
|
25551
|
-
children:
|
|
25552
|
-
}), c[30] =
|
|
25553
|
-
let
|
|
25554
|
-
c[32] !== f || c[33] !== Z || c[34] !==
|
|
25558
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = qU) : qU = c[29];
|
|
25559
|
+
let JU;
|
|
25560
|
+
c[30] === qU ? JU = c[31] : (JU = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25561
|
+
children: qU
|
|
25562
|
+
}), c[30] = qU, c[31] = JU);
|
|
25563
|
+
let YU;
|
|
25564
|
+
c[32] !== f || c[33] !== Z || c[34] !== JU ? (YU = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25555
25565
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25556
25566
|
delayDuration: 0,
|
|
25557
25567
|
open: f,
|
|
25558
25568
|
children: [
|
|
25559
25569
|
Z,
|
|
25560
|
-
|
|
25570
|
+
JU
|
|
25561
25571
|
]
|
|
25562
25572
|
})
|
|
25563
|
-
}), c[32] = f, c[33] = Z, c[34] =
|
|
25564
|
-
let
|
|
25565
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
25573
|
+
}), c[32] = f, c[33] = Z, c[34] = JU, c[35] = YU) : YU = c[35];
|
|
25574
|
+
let XU;
|
|
25575
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (XU = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25566
25576
|
asChild: true,
|
|
25567
25577
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25568
25578
|
"data-testid": "thumb",
|
|
@@ -25572,39 +25582,39 @@ ${c}
|
|
|
25572
25582
|
onMouseEnter: m.setTrue,
|
|
25573
25583
|
onMouseLeave: m.setFalse
|
|
25574
25584
|
})
|
|
25575
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
25576
|
-
let
|
|
25577
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
25585
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = XU) : XU = c[38];
|
|
25586
|
+
let ZU;
|
|
25587
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (ZU = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25578
25588
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
25579
25589
|
locale: h
|
|
25580
25590
|
})
|
|
25581
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
25582
|
-
let
|
|
25583
|
-
c[43] ===
|
|
25584
|
-
children:
|
|
25585
|
-
}), c[43] =
|
|
25586
|
-
let
|
|
25587
|
-
c[45] !== f || c[46] !==
|
|
25591
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = ZU) : ZU = c[42];
|
|
25592
|
+
let QU;
|
|
25593
|
+
c[43] === ZU ? QU = c[44] : (QU = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25594
|
+
children: ZU
|
|
25595
|
+
}), c[43] = ZU, c[44] = QU);
|
|
25596
|
+
let $U;
|
|
25597
|
+
c[45] !== f || c[46] !== XU || c[47] !== QU ? ($U = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25588
25598
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25589
25599
|
delayDuration: 0,
|
|
25590
25600
|
open: f,
|
|
25591
25601
|
children: [
|
|
25592
|
-
|
|
25593
|
-
|
|
25602
|
+
XU,
|
|
25603
|
+
QU
|
|
25594
25604
|
]
|
|
25595
25605
|
})
|
|
25596
|
-
}), c[45] = f, c[46] =
|
|
25597
|
-
let
|
|
25598
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25606
|
+
}), c[45] = f, c[46] = XU, c[47] = QU, c[48] = $U) : $U = c[48];
|
|
25607
|
+
let eW;
|
|
25608
|
+
return c[49] !== M || c[50] !== u || c[51] !== KU || c[52] !== YU || c[53] !== $U || c[54] !== W ? (eW = (0, import_jsx_runtime.jsxs)(Root, {
|
|
25599
25609
|
ref: M,
|
|
25600
25610
|
className: W,
|
|
25601
25611
|
...u,
|
|
25602
25612
|
children: [
|
|
25603
|
-
UU,
|
|
25604
25613
|
KU,
|
|
25605
|
-
|
|
25614
|
+
YU,
|
|
25615
|
+
$U
|
|
25606
25616
|
]
|
|
25607
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25617
|
+
}), c[49] = M, c[50] = u, c[51] = KU, c[52] = YU, c[53] = $U, c[54] = W, c[55] = eW) : eW = c[55], eW;
|
|
25608
25618
|
});
|
|
25609
25619
|
RangeSlider.displayName = Root.displayName;
|
|
25610
25620
|
var import_compiler_runtime$31 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25655,14 +25665,14 @@ ${c}
|
|
|
25655
25665
|
}, q = (e2) => {
|
|
25656
25666
|
h && l(e2);
|
|
25657
25667
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
25658
|
-
let
|
|
25659
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
25668
|
+
let KU, Z;
|
|
25669
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (KU = () => {
|
|
25660
25670
|
h && !dequal(T, u) && l(T);
|
|
25661
25671
|
}, Z = () => {
|
|
25662
25672
|
h && !dequal(T, u) && l(T);
|
|
25663
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
25664
|
-
let
|
|
25665
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !==
|
|
25673
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = KU, r[19] = Z) : (KU = r[18], Z = r[19]);
|
|
25674
|
+
let qU;
|
|
25675
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== KU || r[31] !== Z || r[32] !== b ? (qU = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25666
25676
|
id: S,
|
|
25667
25677
|
className: W,
|
|
25668
25678
|
value: T,
|
|
@@ -25673,36 +25683,36 @@ ${c}
|
|
|
25673
25683
|
disabled: y,
|
|
25674
25684
|
onValueChange: G,
|
|
25675
25685
|
onValueCommit: q,
|
|
25676
|
-
onPointerUp:
|
|
25686
|
+
onPointerUp: KU,
|
|
25677
25687
|
onMouseUp: Z,
|
|
25678
25688
|
valueMap: b
|
|
25679
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
25680
|
-
let
|
|
25681
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
25689
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = KU, r[31] = Z, r[32] = b, r[33] = qU) : qU = r[33];
|
|
25690
|
+
let JU;
|
|
25691
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (JU = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25682
25692
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
25683
25693
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
25684
25694
|
locale: w
|
|
25685
25695
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
25686
25696
|
locale: w
|
|
25687
25697
|
})}`
|
|
25688
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
25689
|
-
let
|
|
25690
|
-
r[39] !==
|
|
25698
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = JU) : JU = r[38];
|
|
25699
|
+
let YU;
|
|
25700
|
+
r[39] !== qU || r[40] !== JU || r[41] !== B ? (YU = (0, import_jsx_runtime.jsxs)("div", {
|
|
25691
25701
|
className: B,
|
|
25692
25702
|
children: [
|
|
25693
|
-
|
|
25694
|
-
|
|
25703
|
+
qU,
|
|
25704
|
+
JU
|
|
25695
25705
|
]
|
|
25696
|
-
}), r[39] =
|
|
25697
|
-
let
|
|
25698
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
25706
|
+
}), r[39] = qU, r[40] = JU, r[41] = B, r[42] = YU) : YU = r[42];
|
|
25707
|
+
let XU;
|
|
25708
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== YU || r[47] !== M || r[48] !== L ? (XU = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25699
25709
|
label: c,
|
|
25700
25710
|
id: S,
|
|
25701
25711
|
align: M,
|
|
25702
25712
|
className: L,
|
|
25703
25713
|
fullWidth: v,
|
|
25704
|
-
children:
|
|
25705
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
25714
|
+
children: YU
|
|
25715
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = YU, r[47] = M, r[48] = L, r[49] = XU) : XU = r[49], XU;
|
|
25706
25716
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
25707
25717
|
r.exports = u;
|
|
25708
25718
|
var c = {
|
|
@@ -25930,16 +25940,16 @@ ${c}
|
|
|
25930
25940
|
r[9] === E ? G = r[10] : (G = [
|
|
25931
25941
|
E
|
|
25932
25942
|
], r[9] = E, r[10] = G);
|
|
25933
|
-
let q,
|
|
25943
|
+
let q, KU;
|
|
25934
25944
|
r[11] !== h || r[12] !== l ? (q = (e2) => {
|
|
25935
25945
|
let [r2] = e2;
|
|
25936
25946
|
O(r2), h || l(r2);
|
|
25937
|
-
},
|
|
25947
|
+
}, KU = (e2) => {
|
|
25938
25948
|
let [r2] = e2;
|
|
25939
25949
|
h && l(r2);
|
|
25940
|
-
}, r[11] = h, r[12] = l, r[13] = q, r[14] =
|
|
25950
|
+
}, r[11] = h, r[12] = l, r[13] = q, r[14] = KU) : (q = r[13], KU = r[14]);
|
|
25941
25951
|
let Z;
|
|
25942
|
-
r[15] !== S || r[16] !== w || r[17] !== g || r[18] !== d || r[19] !== m || r[20] !== f || r[21] !== G || r[22] !== q || r[23] !==
|
|
25952
|
+
r[15] !== S || r[16] !== w || r[17] !== g || r[18] !== d || r[19] !== m || r[20] !== f || r[21] !== G || r[22] !== q || r[23] !== KU || r[24] !== W || r[25] !== y ? (Z = (0, import_jsx_runtime.jsx)(Slider, {
|
|
25943
25953
|
id: w,
|
|
25944
25954
|
className: W,
|
|
25945
25955
|
value: G,
|
|
@@ -25948,19 +25958,19 @@ ${c}
|
|
|
25948
25958
|
step: m,
|
|
25949
25959
|
orientation: g,
|
|
25950
25960
|
onValueChange: q,
|
|
25951
|
-
onValueCommit:
|
|
25961
|
+
onValueCommit: KU,
|
|
25952
25962
|
valueMap: y,
|
|
25953
25963
|
disabled: S
|
|
25954
|
-
}), r[15] = S, r[16] = w, r[17] = g, r[18] = d, r[19] = m, r[20] = f, r[21] = G, r[22] = q, r[23] =
|
|
25955
|
-
let
|
|
25956
|
-
r[27] !== E || r[28] !== T || r[29] !== _ || r[30] !== y ? (
|
|
25964
|
+
}), r[15] = S, r[16] = w, r[17] = g, r[18] = d, r[19] = m, r[20] = f, r[21] = G, r[22] = q, r[23] = KU, r[24] = W, r[25] = y, r[26] = Z) : Z = r[26];
|
|
25965
|
+
let qU;
|
|
25966
|
+
r[27] !== E || r[28] !== T || r[29] !== _ || r[30] !== y ? (qU = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25957
25967
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
25958
25968
|
children: prettyScientificNumber(y(E), {
|
|
25959
25969
|
locale: T
|
|
25960
25970
|
})
|
|
25961
|
-
}), r[27] = E, r[28] = T, r[29] = _, r[30] = y, r[31] =
|
|
25962
|
-
let
|
|
25963
|
-
r[32] !== S || r[33] !== b || r[34] !== E || r[35] !== c || r[36] !== l || r[37] !== d || r[38] !== m || r[39] !== f || r[40] !== y ? (
|
|
25971
|
+
}), r[27] = E, r[28] = T, r[29] = _, r[30] = y, r[31] = qU) : qU = r[31];
|
|
25972
|
+
let JU;
|
|
25973
|
+
r[32] !== S || r[33] !== b || r[34] !== E || r[35] !== c || r[36] !== l || r[37] !== d || r[38] !== m || r[39] !== f || r[40] !== y ? (JU = b && (0, import_jsx_runtime.jsx)(NumberField, {
|
|
25964
25974
|
value: y(E),
|
|
25965
25975
|
onChange: (e2) => {
|
|
25966
25976
|
(e2 == null || Number.isNaN(e2)) && (e2 = Number(d)), O(e2), l(e2);
|
|
@@ -25971,25 +25981,25 @@ ${c}
|
|
|
25971
25981
|
className: "w-24",
|
|
25972
25982
|
"aria-label": `${c || "Slider"} value input`,
|
|
25973
25983
|
isDisabled: S
|
|
25974
|
-
}), r[32] = S, r[33] = b, r[34] = E, r[35] = c, r[36] = l, r[37] = d, r[38] = m, r[39] = f, r[40] = y, r[41] =
|
|
25975
|
-
let
|
|
25976
|
-
r[42] !== Z || r[43] !==
|
|
25984
|
+
}), r[32] = S, r[33] = b, r[34] = E, r[35] = c, r[36] = l, r[37] = d, r[38] = m, r[39] = f, r[40] = y, r[41] = JU) : JU = r[41];
|
|
25985
|
+
let YU;
|
|
25986
|
+
r[42] !== Z || r[43] !== qU || r[44] !== JU || r[45] !== B ? (YU = (0, import_jsx_runtime.jsxs)("div", {
|
|
25977
25987
|
className: B,
|
|
25978
25988
|
children: [
|
|
25979
25989
|
Z,
|
|
25980
|
-
|
|
25981
|
-
|
|
25990
|
+
qU,
|
|
25991
|
+
JU
|
|
25982
25992
|
]
|
|
25983
|
-
}), r[42] = Z, r[43] =
|
|
25984
|
-
let
|
|
25985
|
-
return r[47] !== v || r[48] !== w || r[49] !== c || r[50] !==
|
|
25993
|
+
}), r[42] = Z, r[43] = qU, r[44] = JU, r[45] = B, r[46] = YU) : YU = r[46];
|
|
25994
|
+
let XU;
|
|
25995
|
+
return r[47] !== v || r[48] !== w || r[49] !== c || r[50] !== YU || r[51] !== I || r[52] !== R ? (XU = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25986
25996
|
label: c,
|
|
25987
25997
|
id: w,
|
|
25988
25998
|
align: I,
|
|
25989
25999
|
fullWidth: v,
|
|
25990
26000
|
className: R,
|
|
25991
|
-
children:
|
|
25992
|
-
}), r[47] = v, r[48] = w, r[49] = c, r[50] =
|
|
26001
|
+
children: YU
|
|
26002
|
+
}), r[47] = v, r[48] = w, r[49] = c, r[50] = YU, r[51] = I, r[52] = R, r[53] = XU) : XU = r[53], XU;
|
|
25993
26003
|
}, import_compiler_runtime$29 = require_compiler_runtime(), SwitchPlugin = class {
|
|
25994
26004
|
constructor() {
|
|
25995
26005
|
__publicField(this, "tagName", "marimo-switch");
|
|
@@ -26374,7 +26384,7 @@ ${c}
|
|
|
26374
26384
|
return true;
|
|
26375
26385
|
}
|
|
26376
26386
|
}
|
|
26377
|
-
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-
|
|
26387
|
+
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-DGPUhbDs.js")), VegaPlugin = class {
|
|
26378
26388
|
constructor() {
|
|
26379
26389
|
__publicField(this, "tagName", "marimo-vega");
|
|
26380
26390
|
__publicField(this, "validator", object({
|
|
@@ -26704,7 +26714,7 @@ ${c}
|
|
|
26704
26714
|
themeVariables: e.data.theme_variables
|
|
26705
26715
|
});
|
|
26706
26716
|
}
|
|
26707
|
-
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-
|
|
26717
|
+
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-BotvIKg9.js").then(async (m) => {
|
|
26708
26718
|
await m.__tla;
|
|
26709
26719
|
return m;
|
|
26710
26720
|
})), import_compiler_runtime$22 = require_compiler_runtime();
|
|
@@ -28959,7 +28969,7 @@ ${c}
|
|
|
28959
28969
|
areRegExpsEqual: H,
|
|
28960
28970
|
areSetsEqual: W,
|
|
28961
28971
|
createIsNestedEqual: r2
|
|
28962
|
-
}),
|
|
28972
|
+
}), KU = Object.freeze({
|
|
28963
28973
|
areArraysEqual: O,
|
|
28964
28974
|
areDatesEqual: j,
|
|
28965
28975
|
areMapsEqual: I,
|
|
@@ -28968,39 +28978,39 @@ ${c}
|
|
|
28968
28978
|
areSetsEqual: G,
|
|
28969
28979
|
createIsNestedEqual: r2
|
|
28970
28980
|
}), Z = T(q);
|
|
28971
|
-
function
|
|
28981
|
+
function qU(e3, r3) {
|
|
28972
28982
|
return Z(e3, r3, void 0);
|
|
28973
28983
|
}
|
|
28974
|
-
var
|
|
28984
|
+
var JU = T(l(q, {
|
|
28975
28985
|
createIsNestedEqual: function() {
|
|
28976
28986
|
return f;
|
|
28977
28987
|
}
|
|
28978
28988
|
}));
|
|
28979
|
-
function
|
|
28980
|
-
return
|
|
28989
|
+
function YU(e3, r3) {
|
|
28990
|
+
return JU(e3, r3, void 0);
|
|
28981
28991
|
}
|
|
28982
|
-
var
|
|
28983
|
-
function
|
|
28984
|
-
return
|
|
28992
|
+
var XU = T(KU);
|
|
28993
|
+
function ZU(e3, r3) {
|
|
28994
|
+
return XU(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
28985
28995
|
}
|
|
28986
|
-
var
|
|
28996
|
+
var QU = T(l(KU, {
|
|
28987
28997
|
createIsNestedEqual: function() {
|
|
28988
28998
|
return f;
|
|
28989
28999
|
}
|
|
28990
29000
|
}));
|
|
28991
|
-
function
|
|
28992
|
-
return
|
|
29001
|
+
function $U(e3, r3) {
|
|
29002
|
+
return QU(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
28993
29003
|
}
|
|
28994
|
-
function
|
|
29004
|
+
function eW(e3) {
|
|
28995
29005
|
return T(l(q, e3(q)));
|
|
28996
29006
|
}
|
|
28997
|
-
function
|
|
28998
|
-
var r3 = T(l(
|
|
29007
|
+
function tW(e3) {
|
|
29008
|
+
var r3 = T(l(KU, e3(KU)));
|
|
28999
29009
|
return (function(e4, c2, l2) {
|
|
29000
29010
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29001
29011
|
});
|
|
29002
29012
|
}
|
|
29003
|
-
e2.circularDeepEqual =
|
|
29013
|
+
e2.circularDeepEqual = ZU, e2.circularShallowEqual = $U, e2.createCustomCircularEqual = tW, e2.createCustomEqual = eW, e2.deepEqual = qU, e2.sameValueZeroEqual = f, e2.shallowEqual = YU, Object.defineProperty(e2, "__esModule", {
|
|
29004
29014
|
value: true
|
|
29005
29015
|
});
|
|
29006
29016
|
}));
|
|
@@ -29026,7 +29036,7 @@ ${c}
|
|
|
29026
29036
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
29027
29037
|
Object.defineProperty(e, "__esModule", {
|
|
29028
29038
|
value: true
|
|
29029
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
29039
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = sW, 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 = $U, e.setTopLeft = tW, e.setTransform = eW, e.sortLayoutItems = nW, e.sortLayoutItemsByColRow = iW, e.sortLayoutItemsByRowCol = rW, e.synchronizeLayoutWithChildren = aW, e.validateLayout = oW, e.withLayoutItem = v;
|
|
29030
29040
|
var r = require_fast_equals(), c = l(require_react());
|
|
29031
29041
|
function l(e2) {
|
|
29032
29042
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -29131,7 +29141,7 @@ ${c}
|
|
|
29131
29141
|
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);
|
|
29132
29142
|
}
|
|
29133
29143
|
function T(e2, r2, c2, l2) {
|
|
29134
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
29144
|
+
let u2 = B(e2), d2 = h(u2), f2 = nW(e2, r2), p2 = Array(e2.length);
|
|
29135
29145
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
29136
29146
|
let h3 = y(f2[m2]);
|
|
29137
29147
|
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;
|
|
@@ -29189,7 +29199,7 @@ ${c}
|
|
|
29189
29199
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
29190
29200
|
let h2 = r2.x, _2 = r2.y;
|
|
29191
29201
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
29192
|
-
let v2 =
|
|
29202
|
+
let v2 = nW(e2, f2);
|
|
29193
29203
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
29194
29204
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
29195
29205
|
if (b2 && m2) return g(e2);
|
|
@@ -29223,15 +29233,15 @@ ${c}
|
|
|
29223
29233
|
function G(e2) {
|
|
29224
29234
|
return e2 * 100 + "%";
|
|
29225
29235
|
}
|
|
29226
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
29236
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, KU = (e2, r2, c2) => e2 < 0 ? r2 : c2, Z = (e2) => Math.max(0, e2), qU = (e2) => Math.max(0, e2), JU = (e2, r2, c2) => {
|
|
29227
29237
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29228
29238
|
return {
|
|
29229
29239
|
left: l2,
|
|
29230
29240
|
width: d2,
|
|
29231
|
-
height:
|
|
29232
|
-
top:
|
|
29241
|
+
height: KU(f2, e2.height, u2),
|
|
29242
|
+
top: qU(f2)
|
|
29233
29243
|
};
|
|
29234
|
-
},
|
|
29244
|
+
}, YU = (e2, r2, c2) => {
|
|
29235
29245
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29236
29246
|
return {
|
|
29237
29247
|
top: l2,
|
|
@@ -29239,45 +29249,45 @@ ${c}
|
|
|
29239
29249
|
width: q(e2.left, e2.width, f2, c2),
|
|
29240
29250
|
left: Z(u2)
|
|
29241
29251
|
};
|
|
29242
|
-
},
|
|
29252
|
+
}, XU = (e2, r2, c2) => {
|
|
29243
29253
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29244
29254
|
return {
|
|
29245
29255
|
height: u2,
|
|
29246
29256
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
29247
|
-
top:
|
|
29257
|
+
top: qU(l2),
|
|
29248
29258
|
left: Z(f2)
|
|
29249
29259
|
};
|
|
29250
|
-
},
|
|
29260
|
+
}, ZU = (e2, r2, c2) => {
|
|
29251
29261
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29252
29262
|
return {
|
|
29253
29263
|
width: f2,
|
|
29254
29264
|
left: u2,
|
|
29255
|
-
height:
|
|
29256
|
-
top:
|
|
29265
|
+
height: KU(l2, e2.height, d2),
|
|
29266
|
+
top: qU(l2)
|
|
29257
29267
|
};
|
|
29258
|
-
},
|
|
29259
|
-
n:
|
|
29268
|
+
}, QU = {
|
|
29269
|
+
n: JU,
|
|
29260
29270
|
ne: function() {
|
|
29261
|
-
return
|
|
29271
|
+
return JU(arguments.length <= 0 ? void 0 : arguments[0], YU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29262
29272
|
},
|
|
29263
|
-
e:
|
|
29273
|
+
e: YU,
|
|
29264
29274
|
se: function() {
|
|
29265
|
-
return
|
|
29275
|
+
return ZU(arguments.length <= 0 ? void 0 : arguments[0], YU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29266
29276
|
},
|
|
29267
|
-
s:
|
|
29277
|
+
s: ZU,
|
|
29268
29278
|
sw: function() {
|
|
29269
|
-
return
|
|
29279
|
+
return ZU(arguments.length <= 0 ? void 0 : arguments[0], XU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29270
29280
|
},
|
|
29271
|
-
w:
|
|
29281
|
+
w: XU,
|
|
29272
29282
|
nw: function() {
|
|
29273
|
-
return
|
|
29283
|
+
return JU(arguments.length <= 0 ? void 0 : arguments[0], XU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29274
29284
|
}
|
|
29275
29285
|
};
|
|
29276
|
-
function
|
|
29277
|
-
let u2 =
|
|
29286
|
+
function $U(e2, r2, c2, l2) {
|
|
29287
|
+
let u2 = QU[e2];
|
|
29278
29288
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
29279
29289
|
}
|
|
29280
|
-
function
|
|
29290
|
+
function eW(e2) {
|
|
29281
29291
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
29282
29292
|
return {
|
|
29283
29293
|
transform: d2,
|
|
@@ -29290,7 +29300,7 @@ ${c}
|
|
|
29290
29300
|
position: "absolute"
|
|
29291
29301
|
};
|
|
29292
29302
|
}
|
|
29293
|
-
function
|
|
29303
|
+
function tW(e2) {
|
|
29294
29304
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
29295
29305
|
return {
|
|
29296
29306
|
top: `${r2}px`,
|
|
@@ -29300,20 +29310,20 @@ ${c}
|
|
|
29300
29310
|
position: "absolute"
|
|
29301
29311
|
};
|
|
29302
29312
|
}
|
|
29303
|
-
function
|
|
29304
|
-
return r2 === "horizontal" ?
|
|
29313
|
+
function nW(e2, r2) {
|
|
29314
|
+
return r2 === "horizontal" ? iW(e2) : r2 === "vertical" ? rW(e2) : e2;
|
|
29305
29315
|
}
|
|
29306
|
-
function
|
|
29316
|
+
function rW(e2) {
|
|
29307
29317
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29308
29318
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
29309
29319
|
});
|
|
29310
29320
|
}
|
|
29311
|
-
function
|
|
29321
|
+
function iW(e2) {
|
|
29312
29322
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29313
29323
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
29314
29324
|
});
|
|
29315
29325
|
}
|
|
29316
|
-
function
|
|
29326
|
+
function aW(e2, r2, l2, u2, f2) {
|
|
29317
29327
|
e2 || (e2 = []);
|
|
29318
29328
|
let p2 = [];
|
|
29319
29329
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -29334,7 +29344,7 @@ ${c}
|
|
|
29334
29344
|
});
|
|
29335
29345
|
return f2 ? m2 : T(m2, u2, l2);
|
|
29336
29346
|
}
|
|
29337
|
-
function
|
|
29347
|
+
function oW(e2) {
|
|
29338
29348
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
29339
29349
|
"x",
|
|
29340
29350
|
"y",
|
|
@@ -29351,7 +29361,7 @@ ${c}
|
|
|
29351
29361
|
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})`);
|
|
29352
29362
|
}
|
|
29353
29363
|
}
|
|
29354
|
-
function
|
|
29364
|
+
function sW(e2) {
|
|
29355
29365
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
29356
29366
|
return r2 === false ? null : c2;
|
|
29357
29367
|
}
|
|
@@ -32156,7 +32166,7 @@ ${c}
|
|
|
32156
32166
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32157
32167
|
let E = useIsDragging(), O, j;
|
|
32158
32168
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
32159
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
32169
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, KU, Z, qU, JU, YU, XU, ZU, QU, $U, eW, tW, nW, rW, iW, aW, oW, sW;
|
|
32160
32170
|
if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== h || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
|
|
32161
32171
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
32162
32172
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32175,23 +32185,23 @@ ${c}
|
|
|
32175
32185
|
});
|
|
32176
32186
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
32177
32187
|
let y2 = v2;
|
|
32178
|
-
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,
|
|
32188
|
+
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, iW = "lg", r[58] === c.cells ? aW = r[59] : (aW = {
|
|
32179
32189
|
lg: c.cells
|
|
32180
|
-
}, r[58] = c.cells, r[59] =
|
|
32190
|
+
}, r[58] = c.cells, r[59] = aW), oW = L, sW = S, R = false;
|
|
32181
32191
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
32182
32192
|
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 ? [
|
|
32183
32193
|
20,
|
|
32184
32194
|
20
|
|
32185
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
32195
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, KU = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (Z = (e3) => {
|
|
32186
32196
|
f || l({
|
|
32187
32197
|
...c,
|
|
32188
32198
|
cells: e3
|
|
32189
32199
|
});
|
|
32190
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ?
|
|
32200
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ? qU = r[71] : (qU = g ? {
|
|
32191
32201
|
i: g.i,
|
|
32192
32202
|
w: g.w || 2,
|
|
32193
32203
|
h: g.h || 2
|
|
32194
|
-
} : void 0, r[70] = g, r[71] =
|
|
32204
|
+
} : void 0, r[70] = g, r[71] = qU), r[72] !== O || r[73] !== c || r[74] !== l ? (JU = (e3, r2, u2) => {
|
|
32195
32205
|
O.onDragStop(), r2 && l({
|
|
32196
32206
|
...c,
|
|
32197
32207
|
cells: [
|
|
@@ -32199,15 +32209,15 @@ ${c}
|
|
|
32199
32209
|
r2
|
|
32200
32210
|
]
|
|
32201
32211
|
});
|
|
32202
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
32212
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = JU) : JU = r[75], r[76] === O ? (YU = r[77], XU = r[78], ZU = r[79]) : (YU = (e3, r2, c2, l2, u2) => {
|
|
32203
32213
|
O.onDragStart(u2);
|
|
32204
|
-
},
|
|
32214
|
+
}, XU = (e3, r2, c2, l2, u2) => {
|
|
32205
32215
|
O.onDragMove(u2);
|
|
32206
|
-
},
|
|
32216
|
+
}, ZU = () => {
|
|
32207
32217
|
O.onDragStop();
|
|
32208
|
-
}, r[76] = O, r[77] =
|
|
32218
|
+
}, r[76] = O, r[77] = YU, r[78] = XU, r[79] = ZU), QU = _temp3$2, $U = M, eW = M, tW = M, nW = M ? `.${DRAG_HANDLE}` : "noop";
|
|
32209
32219
|
let E2;
|
|
32210
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
32220
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), rW = u.filter(E2).map((r2) => {
|
|
32211
32221
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p = c.cellSide.get(r2.id), m3 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
32212
32222
|
code: r2.code,
|
|
32213
32223
|
mode: d,
|
|
@@ -32236,14 +32246,14 @@ ${c}
|
|
|
32236
32246
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32237
32247
|
children: m3
|
|
32238
32248
|
}, r2.id);
|
|
32239
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
32240
|
-
} 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],
|
|
32241
|
-
let
|
|
32242
|
-
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] !==
|
|
32243
|
-
breakpoint:
|
|
32244
|
-
layouts:
|
|
32245
|
-
style:
|
|
32246
|
-
cols:
|
|
32249
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = KU, r[31] = Z, r[32] = qU, r[33] = JU, r[34] = YU, r[35] = XU, r[36] = ZU, r[37] = QU, r[38] = $U, r[39] = eW, r[40] = tW, r[41] = nW, r[42] = rW, r[43] = iW, r[44] = aW, r[45] = oW, r[46] = sW;
|
|
32250
|
+
} 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], KU = r[30], Z = r[31], qU = r[32], JU = r[33], YU = r[34], XU = r[35], ZU = r[36], QU = r[37], $U = r[38], eW = r[39], tW = r[40], nW = r[41], rW = r[42], iW = r[43], aW = r[44], oW = r[45], sW = r[46];
|
|
32251
|
+
let cW;
|
|
32252
|
+
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] !== KU || r[91] !== Z || r[92] !== qU || r[93] !== JU || r[94] !== YU || r[95] !== XU || r[96] !== ZU || r[97] !== QU || r[98] !== $U || r[99] !== eW || r[100] !== tW || r[101] !== nW || r[102] !== rW || r[103] !== iW || r[104] !== aW || r[105] !== oW || r[106] !== sW ? (cW = (0, import_jsx_runtime.jsx)(I, {
|
|
32253
|
+
breakpoint: iW,
|
|
32254
|
+
layouts: aW,
|
|
32255
|
+
style: oW,
|
|
32256
|
+
cols: sW,
|
|
32247
32257
|
allowOverlap: R,
|
|
32248
32258
|
className: z,
|
|
32249
32259
|
containerPadding: B,
|
|
@@ -32251,23 +32261,23 @@ ${c}
|
|
|
32251
32261
|
isBounded: W,
|
|
32252
32262
|
compactType: G,
|
|
32253
32263
|
preventCollision: q,
|
|
32254
|
-
rowHeight:
|
|
32264
|
+
rowHeight: KU,
|
|
32255
32265
|
onLayoutChange: Z,
|
|
32256
|
-
droppingItem:
|
|
32257
|
-
onDrop:
|
|
32258
|
-
onDragStart:
|
|
32259
|
-
onDrag:
|
|
32260
|
-
onDragStop:
|
|
32261
|
-
onResizeStop:
|
|
32262
|
-
isDraggable:
|
|
32263
|
-
isDroppable:
|
|
32264
|
-
isResizable:
|
|
32265
|
-
draggableHandle:
|
|
32266
|
-
children:
|
|
32267
|
-
}), 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] =
|
|
32268
|
-
let
|
|
32269
|
-
if (r[108] !== u || r[109] !==
|
|
32270
|
-
|
|
32266
|
+
droppingItem: qU,
|
|
32267
|
+
onDrop: JU,
|
|
32268
|
+
onDragStart: YU,
|
|
32269
|
+
onDrag: XU,
|
|
32270
|
+
onDragStop: ZU,
|
|
32271
|
+
onResizeStop: QU,
|
|
32272
|
+
isDraggable: $U,
|
|
32273
|
+
isDroppable: eW,
|
|
32274
|
+
isResizable: tW,
|
|
32275
|
+
draggableHandle: nW,
|
|
32276
|
+
children: rW
|
|
32277
|
+
}), 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] = KU, r[91] = Z, r[92] = qU, r[93] = JU, r[94] = YU, r[95] = XU, r[96] = ZU, r[97] = QU, r[98] = $U, r[99] = eW, r[100] = tW, r[101] = nW, r[102] = rW, r[103] = iW, r[104] = aW, r[105] = oW, r[106] = sW, r[107] = cW) : cW = r[107];
|
|
32278
|
+
let lW = cW, uW, dW, fW, pW, mW, hW, gW;
|
|
32279
|
+
if (r[108] !== u || r[109] !== lW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
32280
|
+
gW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
32271
32281
|
bb0: {
|
|
32272
32282
|
let e2;
|
|
32273
32283
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -32275,14 +32285,14 @@ ${c}
|
|
|
32275
32285
|
if (f) {
|
|
32276
32286
|
if (c.bordered) {
|
|
32277
32287
|
let e4;
|
|
32278
|
-
r[127] !==
|
|
32288
|
+
r[127] !== lW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
32279
32289
|
className: "flex flex-1 flex-col items-center",
|
|
32280
32290
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
32281
32291
|
style: L,
|
|
32282
32292
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
32283
|
-
children:
|
|
32293
|
+
children: lW
|
|
32284
32294
|
})
|
|
32285
|
-
}), r[127] =
|
|
32295
|
+
}), r[127] = lW, r[128] = L, r[129] = e4) : e4 = r[129], lW = e4;
|
|
32286
32296
|
}
|
|
32287
32297
|
let e3 = m2.filter(_temp4$2), l2;
|
|
32288
32298
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -32293,9 +32303,9 @@ ${c}
|
|
|
32293
32303
|
status: e4.status,
|
|
32294
32304
|
isScrollable: false,
|
|
32295
32305
|
hidden: false
|
|
32296
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
32306
|
+
}, e4.id), r[130] = d, r[131] = l2), gW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32297
32307
|
children: [
|
|
32298
|
-
|
|
32308
|
+
lW,
|
|
32299
32309
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32300
32310
|
className: "hidden",
|
|
32301
32311
|
children: e3.map(l2)
|
|
@@ -32306,31 +32316,31 @@ ${c}
|
|
|
32306
32316
|
}
|
|
32307
32317
|
if (c.bordered) {
|
|
32308
32318
|
let e3;
|
|
32309
|
-
r[132] ===
|
|
32319
|
+
r[132] === lW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
32310
32320
|
className: "h-full overflow-auto",
|
|
32311
|
-
children:
|
|
32312
|
-
}), r[132] =
|
|
32321
|
+
children: lW
|
|
32322
|
+
}), r[132] = lW, r[133] = e3);
|
|
32313
32323
|
let c2;
|
|
32314
32324
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32315
32325
|
style: L,
|
|
32316
32326
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
32317
32327
|
children: e3
|
|
32318
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
32328
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], lW = c2;
|
|
32319
32329
|
}
|
|
32320
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
32330
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (hW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
32321
32331
|
layout: c,
|
|
32322
32332
|
setLayout: l,
|
|
32323
32333
|
isLocked: v,
|
|
32324
32334
|
setIsLocked: y
|
|
32325
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
32335
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = hW) : hW = r[140];
|
|
32326
32336
|
let g2;
|
|
32327
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32337
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = pW, r[142] = g2) : (pW = r[141], g2 = r[142]), r[143] === lW ? mW = r[144] : (mW = (0, import_jsx_runtime.jsx)("div", {
|
|
32328
32338
|
className: g2,
|
|
32329
|
-
children:
|
|
32330
|
-
}), r[143] =
|
|
32339
|
+
children: lW
|
|
32340
|
+
}), r[143] = lW, r[144] = mW), uW = "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") ? (dW = (0, import_jsx_runtime.jsx)("div", {
|
|
32331
32341
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
32332
32342
|
children: "Outputs"
|
|
32333
|
-
}), r[145] =
|
|
32343
|
+
}), r[145] = dW) : dW = r[145];
|
|
32334
32344
|
let b2;
|
|
32335
32345
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
32336
32346
|
draggable: true,
|
|
@@ -32355,34 +32365,34 @@ ${c}
|
|
|
32355
32365
|
status: e3.status,
|
|
32356
32366
|
hidden: false
|
|
32357
32367
|
})
|
|
32358
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
32359
|
-
}
|
|
32360
|
-
r[108] = u, r[109] =
|
|
32361
|
-
} else
|
|
32362
|
-
if (
|
|
32363
|
-
let
|
|
32364
|
-
r[150] !==
|
|
32365
|
-
className: sW,
|
|
32366
|
-
children: [
|
|
32367
|
-
cW,
|
|
32368
|
-
lW
|
|
32369
|
-
]
|
|
32370
|
-
}), r[150] = sW, r[151] = cW, r[152] = lW, r[153] = mW) : mW = r[153];
|
|
32371
|
-
let hW;
|
|
32372
|
-
r[154] !== uW || r[155] !== dW || r[156] !== mW ? (hW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32368
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], fW = m2.map(b2);
|
|
32369
|
+
}
|
|
32370
|
+
r[108] = u, r[109] = lW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = uW, r[118] = dW, r[119] = fW, r[120] = pW, r[121] = mW, r[122] = hW, r[123] = gW, r[124] = lW;
|
|
32371
|
+
} else uW = r[117], dW = r[118], fW = r[119], pW = r[120], mW = r[121], hW = r[122], gW = r[123], lW = r[124];
|
|
32372
|
+
if (gW !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return gW;
|
|
32373
|
+
let _W;
|
|
32374
|
+
r[150] !== uW || r[151] !== dW || r[152] !== fW ? (_W = (0, import_jsx_runtime.jsxs)("div", {
|
|
32373
32375
|
className: uW,
|
|
32374
32376
|
children: [
|
|
32375
32377
|
dW,
|
|
32376
|
-
|
|
32378
|
+
fW
|
|
32377
32379
|
]
|
|
32378
|
-
}), r[
|
|
32379
|
-
let
|
|
32380
|
-
|
|
32380
|
+
}), r[150] = uW, r[151] = dW, r[152] = fW, r[153] = _W) : _W = r[153];
|
|
32381
|
+
let vW;
|
|
32382
|
+
r[154] !== pW || r[155] !== mW || r[156] !== _W ? (vW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32383
|
+
className: pW,
|
|
32381
32384
|
children: [
|
|
32382
|
-
|
|
32383
|
-
|
|
32385
|
+
mW,
|
|
32386
|
+
_W
|
|
32384
32387
|
]
|
|
32385
|
-
}), r[
|
|
32388
|
+
}), r[154] = pW, r[155] = mW, r[156] = _W, r[157] = vW) : vW = r[157];
|
|
32389
|
+
let yW;
|
|
32390
|
+
return r[158] !== hW || r[159] !== vW ? (yW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32391
|
+
children: [
|
|
32392
|
+
hW,
|
|
32393
|
+
vW
|
|
32394
|
+
]
|
|
32395
|
+
}), r[158] = hW, r[159] = vW, r[160] = yW) : yW = r[160], yW;
|
|
32386
32396
|
};
|
|
32387
32397
|
var GridCell = (0, import_react.memo)((e) => {
|
|
32388
32398
|
let r = (0, import_compiler_runtime$13.c)(20), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _ } = e, v;
|
|
@@ -32683,25 +32693,25 @@ ${c}
|
|
|
32683
32693
|
G
|
|
32684
32694
|
]
|
|
32685
32695
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
32686
|
-
let
|
|
32687
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32696
|
+
let KU;
|
|
32697
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (KU = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32688
32698
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32689
|
-
}), r[35] =
|
|
32699
|
+
}), r[35] = KU) : KU = r[35];
|
|
32690
32700
|
let Z;
|
|
32691
32701
|
r[36] === l ? Z = r[37] : (Z = (0, import_jsx_runtime.jsx)(X, {
|
|
32692
32702
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
32693
32703
|
onClick: () => l()
|
|
32694
32704
|
}), r[36] = l, r[37] = Z);
|
|
32695
|
-
let
|
|
32696
|
-
return r[38] !== I || r[39] !== q || r[40] !== Z || r[41] !== w ? (
|
|
32705
|
+
let qU;
|
|
32706
|
+
return r[38] !== I || r[39] !== q || r[40] !== Z || r[41] !== w ? (qU = (0, import_jsx_runtime.jsxs)("div", {
|
|
32697
32707
|
className: w,
|
|
32698
32708
|
children: [
|
|
32699
32709
|
I,
|
|
32700
32710
|
q,
|
|
32701
|
-
|
|
32711
|
+
KU,
|
|
32702
32712
|
Z
|
|
32703
32713
|
]
|
|
32704
|
-
}), r[38] = I, r[39] = q, r[40] = Z, r[41] = w, r[42] =
|
|
32714
|
+
}), r[38] = I, r[39] = q, r[40] = Z, r[41] = w, r[42] = qU) : qU = r[42], qU;
|
|
32705
32715
|
};
|
|
32706
32716
|
function isSidebarCell(e) {
|
|
32707
32717
|
var _a3;
|
|
@@ -34705,31 +34715,31 @@ ${c}
|
|
|
34705
34715
|
}, [
|
|
34706
34716
|
T,
|
|
34707
34717
|
M
|
|
34708
|
-
]), 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),
|
|
34718
|
+
]), 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), KU = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34709
34719
|
j
|
|
34710
|
-
]), Z = useMeasuringConfiguration(p), { droppableRects:
|
|
34720
|
+
]), Z = useMeasuringConfiguration(p), { droppableRects: qU, measureDroppableContainers: JU, measuringScheduled: YU } = useDroppableMeasuring(KU, {
|
|
34711
34721
|
dragging: w,
|
|
34712
34722
|
dependencies: [
|
|
34713
34723
|
O.x,
|
|
34714
34724
|
O.y
|
|
34715
34725
|
],
|
|
34716
34726
|
config: Z.droppable
|
|
34717
|
-
}),
|
|
34727
|
+
}), XU = useCachedNode(E, T), ZU = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34718
34728
|
H
|
|
34719
|
-
]),
|
|
34729
|
+
]), QU = kW(), $U = useInitialRect(XU, Z.draggable.measure);
|
|
34720
34730
|
useLayoutShiftScrollCompensation({
|
|
34721
34731
|
activeNode: T == null ? null : E.get(T),
|
|
34722
|
-
config:
|
|
34723
|
-
initialRect:
|
|
34732
|
+
config: QU.layoutShiftCompensation,
|
|
34733
|
+
initialRect: $U,
|
|
34724
34734
|
measure: Z.draggable.measure
|
|
34725
34735
|
});
|
|
34726
|
-
let
|
|
34736
|
+
let eW = useRect(XU, Z.draggable.measure, $U), tW = useRect(XU ? XU.parentElement : null), nW = (0, import_react.useRef)({
|
|
34727
34737
|
activatorEvent: null,
|
|
34728
34738
|
active: null,
|
|
34729
|
-
activeNode:
|
|
34739
|
+
activeNode: XU,
|
|
34730
34740
|
collisionRect: null,
|
|
34731
34741
|
collisions: null,
|
|
34732
|
-
droppableRects:
|
|
34742
|
+
droppableRects: qU,
|
|
34733
34743
|
draggableNodes: E,
|
|
34734
34744
|
draggingNode: null,
|
|
34735
34745
|
draggingNodeRect: null,
|
|
@@ -34737,45 +34747,45 @@ ${c}
|
|
|
34737
34747
|
over: null,
|
|
34738
34748
|
scrollableAncestors: [],
|
|
34739
34749
|
scrollAdjustedTranslate: null
|
|
34740
|
-
}),
|
|
34750
|
+
}), rW = j.getNodeFor((_a3 = nW.current.over) == null ? void 0 : _a3.id), iW = useDragOverlayMeasuring({
|
|
34741
34751
|
measure: Z.dragOverlay.measure
|
|
34742
|
-
}),
|
|
34752
|
+
}), aW = iW.nodeRef.current ?? XU, oW = w ? iW.rect ?? eW : null, sW = !!(iW.nodeRef.current && iW.rect), cW = useRectDelta(sW ? null : eW), lW = useWindowRect(aW ? getWindow(aW) : null), uW = useScrollableAncestors(w ? rW ?? XU : null), dW = useRects(uW), fW = applyModifiers(m, {
|
|
34743
34753
|
transform: {
|
|
34744
|
-
x: O.x -
|
|
34745
|
-
y: O.y -
|
|
34754
|
+
x: O.x - cW.x,
|
|
34755
|
+
y: O.y - cW.y,
|
|
34746
34756
|
scaleX: 1,
|
|
34747
34757
|
scaleY: 1
|
|
34748
34758
|
},
|
|
34749
34759
|
activatorEvent: H,
|
|
34750
34760
|
active: L,
|
|
34751
|
-
activeNodeRect:
|
|
34752
|
-
containerNodeRect:
|
|
34753
|
-
draggingNodeRect:
|
|
34754
|
-
over:
|
|
34755
|
-
overlayNodeRect:
|
|
34756
|
-
scrollableAncestors:
|
|
34757
|
-
scrollableAncestorRects:
|
|
34758
|
-
windowRect:
|
|
34759
|
-
}),
|
|
34760
|
-
|
|
34761
|
-
]),
|
|
34761
|
+
activeNodeRect: eW,
|
|
34762
|
+
containerNodeRect: tW,
|
|
34763
|
+
draggingNodeRect: oW,
|
|
34764
|
+
over: nW.current.over,
|
|
34765
|
+
overlayNodeRect: iW.rect,
|
|
34766
|
+
scrollableAncestors: uW,
|
|
34767
|
+
scrollableAncestorRects: dW,
|
|
34768
|
+
windowRect: lW
|
|
34769
|
+
}), pW = ZU ? add(ZU, O) : null, mW = useScrollOffsets(uW), hW = useScrollOffsetsDelta(mW), gW = useScrollOffsetsDelta(mW, [
|
|
34770
|
+
eW
|
|
34771
|
+
]), _W = add(fW, hW), vW = oW ? getAdjustedRect(oW, fW) : null, yW = L && vW ? f({
|
|
34762
34772
|
active: L,
|
|
34763
|
-
collisionRect:
|
|
34764
|
-
droppableRects:
|
|
34765
|
-
droppableContainers:
|
|
34766
|
-
pointerCoordinates:
|
|
34767
|
-
}) : null,
|
|
34773
|
+
collisionRect: vW,
|
|
34774
|
+
droppableRects: qU,
|
|
34775
|
+
droppableContainers: KU,
|
|
34776
|
+
pointerCoordinates: pW
|
|
34777
|
+
}) : null, bW = getFirstCollision(yW, "id"), [xW, SW] = (0, import_react.useState)(null), CW = adjustScale(sW ? fW : add(fW, gW), (xW == null ? void 0 : xW.rect) ?? null, eW), wW = (0, import_react.useRef)(null), TW = (0, import_react.useCallback)((e2, r2) => {
|
|
34768
34778
|
let { sensor: c2, options: l2 } = r2;
|
|
34769
34779
|
if (R.current == null) return;
|
|
34770
34780
|
let u2 = E.get(R.current);
|
|
34771
34781
|
if (!u2) return;
|
|
34772
34782
|
let d2 = e2.nativeEvent;
|
|
34773
|
-
|
|
34783
|
+
wW.current = new c2({
|
|
34774
34784
|
active: R.current,
|
|
34775
34785
|
activeNode: u2,
|
|
34776
34786
|
event: d2,
|
|
34777
34787
|
options: l2,
|
|
34778
|
-
context:
|
|
34788
|
+
context: nW,
|
|
34779
34789
|
onAbort(e3) {
|
|
34780
34790
|
if (!E.get(e3)) return;
|
|
34781
34791
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -34820,7 +34830,7 @@ ${c}
|
|
|
34820
34830
|
}), v({
|
|
34821
34831
|
type: "onDragStart",
|
|
34822
34832
|
event: u3
|
|
34823
|
-
}), B(
|
|
34833
|
+
}), B(wW.current), W(d2);
|
|
34824
34834
|
});
|
|
34825
34835
|
},
|
|
34826
34836
|
onMove(e3) {
|
|
@@ -34834,7 +34844,7 @@ ${c}
|
|
|
34834
34844
|
});
|
|
34835
34845
|
function f2(e3) {
|
|
34836
34846
|
return async function() {
|
|
34837
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
34847
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = nW.current, f3 = null;
|
|
34838
34848
|
if (r3 && u3) {
|
|
34839
34849
|
let { cancelDrop: p2 } = G.current;
|
|
34840
34850
|
f3 = {
|
|
@@ -34848,7 +34858,7 @@ ${c}
|
|
|
34848
34858
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34849
34859
|
_({
|
|
34850
34860
|
type: e3
|
|
34851
|
-
}), S(Status.Uninitialized),
|
|
34861
|
+
}), S(Status.Uninitialized), SW(null), B(null), W(null), wW.current = null;
|
|
34852
34862
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
34853
34863
|
if (f3) {
|
|
34854
34864
|
let e4 = G.current[r4];
|
|
@@ -34862,7 +34872,7 @@ ${c}
|
|
|
34862
34872
|
}
|
|
34863
34873
|
}, [
|
|
34864
34874
|
E
|
|
34865
|
-
]),
|
|
34875
|
+
]), EW = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
34866
34876
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
34867
34877
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
34868
34878
|
let f2 = {
|
|
@@ -34870,26 +34880,26 @@ ${c}
|
|
|
34870
34880
|
};
|
|
34871
34881
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
34872
34882
|
capturedBy: r2.sensor
|
|
34873
|
-
}, R.current = l2,
|
|
34883
|
+
}, R.current = l2, TW(c2, r2));
|
|
34874
34884
|
}, [
|
|
34875
34885
|
E,
|
|
34876
|
-
|
|
34886
|
+
TW
|
|
34877
34887
|
]));
|
|
34878
34888
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
34879
|
-
|
|
34889
|
+
eW && b === Status.Initializing && S(Status.Initialized);
|
|
34880
34890
|
}, [
|
|
34881
|
-
|
|
34891
|
+
eW,
|
|
34882
34892
|
b
|
|
34883
34893
|
]), (0, import_react.useEffect)(() => {
|
|
34884
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
34894
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = nW.current;
|
|
34885
34895
|
if (!r2 || !c2) return;
|
|
34886
34896
|
let d2 = {
|
|
34887
34897
|
active: r2,
|
|
34888
34898
|
activatorEvent: c2,
|
|
34889
34899
|
collisions: l2,
|
|
34890
34900
|
delta: {
|
|
34891
|
-
x:
|
|
34892
|
-
y:
|
|
34901
|
+
x: _W.x,
|
|
34902
|
+
y: _W.y
|
|
34893
34903
|
},
|
|
34894
34904
|
over: u2
|
|
34895
34905
|
};
|
|
@@ -34900,12 +34910,12 @@ ${c}
|
|
|
34900
34910
|
});
|
|
34901
34911
|
});
|
|
34902
34912
|
}, [
|
|
34903
|
-
|
|
34904
|
-
|
|
34913
|
+
_W.x,
|
|
34914
|
+
_W.y
|
|
34905
34915
|
]), (0, import_react.useEffect)(() => {
|
|
34906
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
34916
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = nW.current;
|
|
34907
34917
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
34908
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
34918
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(bW), p2 = f2 && f2.rect.current ? {
|
|
34909
34919
|
id: f2.id,
|
|
34910
34920
|
rect: f2.rect.current,
|
|
34911
34921
|
data: f2.data,
|
|
@@ -34921,127 +34931,127 @@ ${c}
|
|
|
34921
34931
|
over: p2
|
|
34922
34932
|
};
|
|
34923
34933
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34924
|
-
|
|
34934
|
+
SW(p2), d2 == null ? void 0 : d2(m2), v({
|
|
34925
34935
|
type: "onDragOver",
|
|
34926
34936
|
event: m2
|
|
34927
34937
|
});
|
|
34928
34938
|
});
|
|
34929
34939
|
}, [
|
|
34930
|
-
|
|
34940
|
+
bW
|
|
34931
34941
|
]), useIsomorphicLayoutEffect(() => {
|
|
34932
|
-
|
|
34942
|
+
nW.current = {
|
|
34933
34943
|
activatorEvent: H,
|
|
34934
34944
|
active: L,
|
|
34935
|
-
activeNode:
|
|
34936
|
-
collisionRect:
|
|
34937
|
-
collisions:
|
|
34938
|
-
droppableRects:
|
|
34945
|
+
activeNode: XU,
|
|
34946
|
+
collisionRect: vW,
|
|
34947
|
+
collisions: yW,
|
|
34948
|
+
droppableRects: qU,
|
|
34939
34949
|
draggableNodes: E,
|
|
34940
|
-
draggingNode:
|
|
34941
|
-
draggingNodeRect:
|
|
34950
|
+
draggingNode: aW,
|
|
34951
|
+
draggingNodeRect: oW,
|
|
34942
34952
|
droppableContainers: j,
|
|
34943
|
-
over:
|
|
34944
|
-
scrollableAncestors:
|
|
34945
|
-
scrollAdjustedTranslate:
|
|
34953
|
+
over: xW,
|
|
34954
|
+
scrollableAncestors: uW,
|
|
34955
|
+
scrollAdjustedTranslate: _W
|
|
34946
34956
|
}, I.current = {
|
|
34947
|
-
initial:
|
|
34948
|
-
translated:
|
|
34957
|
+
initial: oW,
|
|
34958
|
+
translated: vW
|
|
34949
34959
|
};
|
|
34950
34960
|
}, [
|
|
34951
34961
|
L,
|
|
34952
|
-
|
|
34953
|
-
|
|
34954
|
-
|
|
34962
|
+
XU,
|
|
34963
|
+
yW,
|
|
34964
|
+
vW,
|
|
34955
34965
|
E,
|
|
34956
|
-
|
|
34957
|
-
|
|
34958
|
-
|
|
34966
|
+
aW,
|
|
34967
|
+
oW,
|
|
34968
|
+
qU,
|
|
34959
34969
|
j,
|
|
34960
|
-
|
|
34961
|
-
|
|
34962
|
-
|
|
34970
|
+
xW,
|
|
34971
|
+
uW,
|
|
34972
|
+
_W
|
|
34963
34973
|
]), useAutoScroller({
|
|
34964
|
-
...
|
|
34974
|
+
...QU,
|
|
34965
34975
|
delta: O,
|
|
34966
|
-
draggingRect:
|
|
34967
|
-
pointerCoordinates:
|
|
34968
|
-
scrollableAncestors:
|
|
34969
|
-
scrollableAncestorRects:
|
|
34976
|
+
draggingRect: vW,
|
|
34977
|
+
pointerCoordinates: pW,
|
|
34978
|
+
scrollableAncestors: uW,
|
|
34979
|
+
scrollableAncestorRects: dW
|
|
34970
34980
|
});
|
|
34971
|
-
let
|
|
34981
|
+
let DW = (0, import_react.useMemo)(() => ({
|
|
34972
34982
|
active: L,
|
|
34973
|
-
activeNode:
|
|
34974
|
-
activeNodeRect:
|
|
34983
|
+
activeNode: XU,
|
|
34984
|
+
activeNodeRect: eW,
|
|
34975
34985
|
activatorEvent: H,
|
|
34976
|
-
collisions:
|
|
34977
|
-
containerNodeRect:
|
|
34978
|
-
dragOverlay:
|
|
34986
|
+
collisions: yW,
|
|
34987
|
+
containerNodeRect: tW,
|
|
34988
|
+
dragOverlay: iW,
|
|
34979
34989
|
draggableNodes: E,
|
|
34980
34990
|
droppableContainers: j,
|
|
34981
|
-
droppableRects:
|
|
34982
|
-
over:
|
|
34983
|
-
measureDroppableContainers:
|
|
34984
|
-
scrollableAncestors:
|
|
34985
|
-
scrollableAncestorRects:
|
|
34991
|
+
droppableRects: qU,
|
|
34992
|
+
over: xW,
|
|
34993
|
+
measureDroppableContainers: JU,
|
|
34994
|
+
scrollableAncestors: uW,
|
|
34995
|
+
scrollableAncestorRects: dW,
|
|
34986
34996
|
measuringConfiguration: Z,
|
|
34987
|
-
measuringScheduled:
|
|
34988
|
-
windowRect:
|
|
34997
|
+
measuringScheduled: YU,
|
|
34998
|
+
windowRect: lW
|
|
34989
34999
|
}), [
|
|
34990
35000
|
L,
|
|
34991
|
-
|
|
34992
|
-
|
|
35001
|
+
XU,
|
|
35002
|
+
eW,
|
|
34993
35003
|
H,
|
|
34994
|
-
|
|
34995
|
-
QU,
|
|
35004
|
+
yW,
|
|
34996
35005
|
tW,
|
|
35006
|
+
iW,
|
|
34997
35007
|
E,
|
|
34998
35008
|
j,
|
|
34999
|
-
|
|
35000
|
-
|
|
35001
|
-
|
|
35002
|
-
|
|
35003
|
-
|
|
35009
|
+
qU,
|
|
35010
|
+
xW,
|
|
35011
|
+
JU,
|
|
35012
|
+
uW,
|
|
35013
|
+
dW,
|
|
35004
35014
|
Z,
|
|
35005
|
-
|
|
35006
|
-
|
|
35007
|
-
]),
|
|
35015
|
+
YU,
|
|
35016
|
+
lW
|
|
35017
|
+
]), OW = (0, import_react.useMemo)(() => ({
|
|
35008
35018
|
activatorEvent: H,
|
|
35009
|
-
activators:
|
|
35019
|
+
activators: EW,
|
|
35010
35020
|
active: L,
|
|
35011
|
-
activeNodeRect:
|
|
35021
|
+
activeNodeRect: eW,
|
|
35012
35022
|
ariaDescribedById: {
|
|
35013
35023
|
draggable: q
|
|
35014
35024
|
},
|
|
35015
35025
|
dispatch: _,
|
|
35016
35026
|
draggableNodes: E,
|
|
35017
|
-
over:
|
|
35018
|
-
measureDroppableContainers:
|
|
35027
|
+
over: xW,
|
|
35028
|
+
measureDroppableContainers: JU
|
|
35019
35029
|
}), [
|
|
35020
35030
|
H,
|
|
35021
|
-
|
|
35031
|
+
EW,
|
|
35022
35032
|
L,
|
|
35023
|
-
|
|
35033
|
+
eW,
|
|
35024
35034
|
_,
|
|
35025
35035
|
q,
|
|
35026
35036
|
E,
|
|
35027
|
-
|
|
35028
|
-
|
|
35037
|
+
xW,
|
|
35038
|
+
JU
|
|
35029
35039
|
]);
|
|
35030
35040
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
35031
35041
|
value: y
|
|
35032
35042
|
}, import_react.createElement(InternalContext.Provider, {
|
|
35033
|
-
value:
|
|
35043
|
+
value: OW
|
|
35034
35044
|
}, import_react.createElement(PublicContext.Provider, {
|
|
35035
|
-
value:
|
|
35045
|
+
value: DW
|
|
35036
35046
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
35037
|
-
value:
|
|
35047
|
+
value: CW
|
|
35038
35048
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
35039
35049
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35040
35050
|
})), import_react.createElement(Accessibility, {
|
|
35041
35051
|
...c,
|
|
35042
35052
|
hiddenTextDescribedById: q
|
|
35043
35053
|
}));
|
|
35044
|
-
function
|
|
35054
|
+
function kW() {
|
|
35045
35055
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
35046
35056
|
return typeof l == "object" ? {
|
|
35047
35057
|
...l,
|
|
@@ -35569,7 +35579,7 @@ ${c}
|
|
|
35569
35579
|
updateMeasurementsFor: I,
|
|
35570
35580
|
...m
|
|
35571
35581
|
}
|
|
35572
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
35582
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: KU, listeners: Z, isDragging: qU, over: JU, setActivatorNodeRef: YU, transform: XU } = useDraggable({
|
|
35573
35583
|
id: f,
|
|
35574
35584
|
data: M,
|
|
35575
35585
|
attributes: {
|
|
@@ -35577,60 +35587,60 @@ ${c}
|
|
|
35577
35587
|
...c
|
|
35578
35588
|
},
|
|
35579
35589
|
disabled: O.draggable
|
|
35580
|
-
}),
|
|
35590
|
+
}), ZU = useCombinedRefs(B, KU), QU = !!H, $U = QU && !b && isValidIndex(v) && isValidIndex(w), eW = !T && qU, tW = $U ? (eW && $U ? XU : null) ?? (p ?? E)({
|
|
35581
35591
|
rects: S,
|
|
35582
35592
|
activeNodeRect: G,
|
|
35583
35593
|
activeIndex: v,
|
|
35584
35594
|
overIndex: w,
|
|
35585
35595
|
index: j
|
|
35586
|
-
}) : null,
|
|
35596
|
+
}) : null, nW = isValidIndex(v) && isValidIndex(w) ? d({
|
|
35587
35597
|
id: f,
|
|
35588
35598
|
items: g,
|
|
35589
35599
|
activeIndex: v,
|
|
35590
35600
|
overIndex: w
|
|
35591
|
-
}) : j,
|
|
35592
|
-
activeId:
|
|
35601
|
+
}) : j, rW = H == null ? void 0 : H.id, iW = (0, import_react.useRef)({
|
|
35602
|
+
activeId: rW,
|
|
35593
35603
|
items: g,
|
|
35594
|
-
newIndex:
|
|
35604
|
+
newIndex: nW,
|
|
35595
35605
|
containerId: _
|
|
35596
|
-
}),
|
|
35606
|
+
}), aW = g !== iW.current.items, oW = r({
|
|
35597
35607
|
active: H,
|
|
35598
35608
|
containerId: _,
|
|
35599
|
-
isDragging:
|
|
35600
|
-
isSorting:
|
|
35609
|
+
isDragging: qU,
|
|
35610
|
+
isSorting: QU,
|
|
35601
35611
|
id: f,
|
|
35602
35612
|
index: j,
|
|
35603
35613
|
items: g,
|
|
35604
|
-
newIndex:
|
|
35605
|
-
previousItems:
|
|
35606
|
-
previousContainerId:
|
|
35614
|
+
newIndex: iW.current.newIndex,
|
|
35615
|
+
previousItems: iW.current.items,
|
|
35616
|
+
previousContainerId: iW.current.containerId,
|
|
35607
35617
|
transition: h,
|
|
35608
|
-
wasDragging:
|
|
35609
|
-
}),
|
|
35610
|
-
disabled: !
|
|
35618
|
+
wasDragging: iW.current.activeId != null
|
|
35619
|
+
}), sW = useDerivedTransform({
|
|
35620
|
+
disabled: !oW,
|
|
35611
35621
|
index: j,
|
|
35612
35622
|
node: R,
|
|
35613
35623
|
rect: L
|
|
35614
35624
|
});
|
|
35615
35625
|
return (0, import_react.useEffect)(() => {
|
|
35616
|
-
|
|
35626
|
+
QU && iW.current.newIndex !== nW && (iW.current.newIndex = nW), _ !== iW.current.containerId && (iW.current.containerId = _), g !== iW.current.items && (iW.current.items = g);
|
|
35617
35627
|
}, [
|
|
35618
|
-
|
|
35619
|
-
|
|
35628
|
+
QU,
|
|
35629
|
+
nW,
|
|
35620
35630
|
_,
|
|
35621
35631
|
g
|
|
35622
35632
|
]), (0, import_react.useEffect)(() => {
|
|
35623
|
-
if (
|
|
35624
|
-
if (
|
|
35625
|
-
|
|
35633
|
+
if (rW === iW.current.activeId) return;
|
|
35634
|
+
if (rW != null && iW.current.activeId == null) {
|
|
35635
|
+
iW.current.activeId = rW;
|
|
35626
35636
|
return;
|
|
35627
35637
|
}
|
|
35628
35638
|
let e2 = setTimeout(() => {
|
|
35629
|
-
|
|
35639
|
+
iW.current.activeId = rW;
|
|
35630
35640
|
}, 50);
|
|
35631
35641
|
return () => clearTimeout(e2);
|
|
35632
35642
|
}, [
|
|
35633
|
-
|
|
35643
|
+
rW
|
|
35634
35644
|
]), {
|
|
35635
35645
|
active: H,
|
|
35636
35646
|
activeIndex: v,
|
|
@@ -35638,25 +35648,25 @@ ${c}
|
|
|
35638
35648
|
data: M,
|
|
35639
35649
|
rect: L,
|
|
35640
35650
|
index: j,
|
|
35641
|
-
newIndex:
|
|
35651
|
+
newIndex: nW,
|
|
35642
35652
|
items: g,
|
|
35643
35653
|
isOver: z,
|
|
35644
|
-
isSorting:
|
|
35645
|
-
isDragging:
|
|
35654
|
+
isSorting: QU,
|
|
35655
|
+
isDragging: qU,
|
|
35646
35656
|
listeners: Z,
|
|
35647
35657
|
node: R,
|
|
35648
35658
|
overIndex: w,
|
|
35649
|
-
over:
|
|
35650
|
-
setNodeRef:
|
|
35651
|
-
setActivatorNodeRef:
|
|
35659
|
+
over: JU,
|
|
35660
|
+
setNodeRef: ZU,
|
|
35661
|
+
setActivatorNodeRef: YU,
|
|
35652
35662
|
setDroppableNodeRef: B,
|
|
35653
|
-
setDraggableNodeRef:
|
|
35654
|
-
transform:
|
|
35655
|
-
transition:
|
|
35663
|
+
setDraggableNodeRef: KU,
|
|
35664
|
+
transform: sW ?? tW,
|
|
35665
|
+
transition: cW()
|
|
35656
35666
|
};
|
|
35657
|
-
function
|
|
35658
|
-
if (
|
|
35659
|
-
if (!(
|
|
35667
|
+
function cW() {
|
|
35668
|
+
if (sW || aW && iW.current.newIndex === j) return disabledTransition;
|
|
35669
|
+
if (!(eW && !isKeyboardEvent(W) || !h) && (QU || oW)) return CSS$1.Transition.toString({
|
|
35660
35670
|
...h,
|
|
35661
35671
|
property: transitionProperty
|
|
35662
35672
|
});
|
|
@@ -35956,15 +35966,15 @@ ${c}
|
|
|
35956
35966
|
G
|
|
35957
35967
|
]
|
|
35958
35968
|
}), r[35] = c.id, r[36] = h, r[37] = y, r[38] = b, r[39] = I, r[40] = z, r[41] = B, r[42] = H, r[43] = W, r[44] = G, r[45] = q) : q = r[45];
|
|
35959
|
-
let
|
|
35960
|
-
if (!v && !g) return
|
|
35969
|
+
let KU = q;
|
|
35970
|
+
if (!v && !g) return KU;
|
|
35961
35971
|
let Z;
|
|
35962
|
-
r[46] ===
|
|
35972
|
+
r[46] === KU ? Z = r[47] : (Z = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
35963
35973
|
asChild: true,
|
|
35964
|
-
children:
|
|
35965
|
-
}), r[46] =
|
|
35966
|
-
let
|
|
35967
|
-
r[48] === v ?
|
|
35974
|
+
children: KU
|
|
35975
|
+
}), r[46] = KU, r[47] = Z);
|
|
35976
|
+
let qU;
|
|
35977
|
+
r[48] === v ? qU = r[49] : (qU = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
35968
35978
|
onSelect: v,
|
|
35969
35979
|
children: [
|
|
35970
35980
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -35972,11 +35982,11 @@ ${c}
|
|
|
35972
35982
|
}),
|
|
35973
35983
|
"Add cell"
|
|
35974
35984
|
]
|
|
35975
|
-
}), r[48] = v, r[49] =
|
|
35976
|
-
let
|
|
35977
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
35978
|
-
let
|
|
35979
|
-
r[51] === g ?
|
|
35985
|
+
}), r[48] = v, r[49] = qU);
|
|
35986
|
+
let JU;
|
|
35987
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (JU = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = JU) : JU = r[50];
|
|
35988
|
+
let XU;
|
|
35989
|
+
r[51] === g ? XU = r[52] : (XU = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
35980
35990
|
variant: "danger",
|
|
35981
35991
|
onSelect: g,
|
|
35982
35992
|
children: [
|
|
@@ -35985,22 +35995,22 @@ ${c}
|
|
|
35985
35995
|
}),
|
|
35986
35996
|
"Delete cell"
|
|
35987
35997
|
]
|
|
35988
|
-
}), r[51] = g, r[52] =
|
|
35989
|
-
let
|
|
35990
|
-
r[53] !==
|
|
35998
|
+
}), r[51] = g, r[52] = XU);
|
|
35999
|
+
let ZU;
|
|
36000
|
+
r[53] !== qU || r[54] !== XU ? (ZU = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
35991
36001
|
children: [
|
|
35992
|
-
|
|
35993
|
-
|
|
35994
|
-
|
|
36002
|
+
qU,
|
|
36003
|
+
JU,
|
|
36004
|
+
XU
|
|
35995
36005
|
]
|
|
35996
|
-
}), r[53] =
|
|
35997
|
-
let
|
|
35998
|
-
return r[56] !== Z || r[57] !==
|
|
36006
|
+
}), r[53] = qU, r[54] = XU, r[55] = ZU) : ZU = r[55];
|
|
36007
|
+
let QU;
|
|
36008
|
+
return r[56] !== Z || r[57] !== ZU ? (QU = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
35999
36009
|
children: [
|
|
36000
36010
|
Z,
|
|
36001
|
-
|
|
36011
|
+
ZU
|
|
36002
36012
|
]
|
|
36003
|
-
}), r[56] = Z, r[57] =
|
|
36013
|
+
}), r[56] = Z, r[57] = ZU, r[58] = QU) : QU = r[58], QU;
|
|
36004
36014
|
}, InsertCellLine = (e) => {
|
|
36005
36015
|
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;
|
|
36006
36016
|
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-none", u), r[0] = u, r[1] = d);
|
|
@@ -36054,10 +36064,10 @@ ${c}
|
|
|
36054
36064
|
...B,
|
|
36055
36065
|
...h
|
|
36056
36066
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
36057
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
36058
|
-
r[25] !== l || r[26] !==
|
|
36059
|
-
let
|
|
36060
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
36067
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", KU = w && !T && "opacity-35", Z = T && "opacity-95 shadow-lg", qU;
|
|
36068
|
+
r[25] !== l || r[26] !== KU || r[27] !== Z || r[28] !== q ? (qU = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, KU, Z, l), r[25] = l, r[26] = KU, r[27] = Z, r[28] = q, r[29] = qU) : qU = r[29];
|
|
36069
|
+
let JU;
|
|
36070
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (JU = G && (0, import_jsx_runtime.jsx)("div", {
|
|
36061
36071
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
36062
36072
|
style: {
|
|
36063
36073
|
transform: `scale(${I})`,
|
|
@@ -36072,14 +36082,14 @@ ${c}
|
|
|
36072
36082
|
status: c.status,
|
|
36073
36083
|
output: c.output
|
|
36074
36084
|
})
|
|
36075
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
36076
|
-
let
|
|
36077
|
-
r[37] === z ?
|
|
36085
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = JU) : JU = r[36];
|
|
36086
|
+
let YU;
|
|
36087
|
+
r[37] === z ? YU = r[38] : (YU = z && (0, import_jsx_runtime.jsx)("div", {
|
|
36078
36088
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
36079
36089
|
"aria-hidden": true
|
|
36080
|
-
}), r[37] = z, r[38] =
|
|
36081
|
-
let
|
|
36082
|
-
r[39] !== z || r[40] !== R ? (
|
|
36090
|
+
}), r[37] = z, r[38] = YU);
|
|
36091
|
+
let XU;
|
|
36092
|
+
r[39] !== z || r[40] !== R ? (XU = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
36083
36093
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
36084
36094
|
className: "text-xs opacity-80",
|
|
36085
36095
|
children: R.description
|
|
@@ -36091,19 +36101,19 @@ ${c}
|
|
|
36091
36101
|
className: "h-3.5 w-3.5"
|
|
36092
36102
|
})
|
|
36093
36103
|
})
|
|
36094
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
36095
|
-
let
|
|
36096
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
36104
|
+
}), r[39] = z, r[40] = R, r[41] = XU) : XU = r[41];
|
|
36105
|
+
let ZU;
|
|
36106
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== qU || r[46] !== JU || r[47] !== YU || r[48] !== XU ? (ZU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36097
36107
|
ref: f,
|
|
36098
|
-
className:
|
|
36108
|
+
className: qU,
|
|
36099
36109
|
style: W,
|
|
36100
36110
|
...d,
|
|
36101
36111
|
children: [
|
|
36102
|
-
|
|
36103
|
-
|
|
36104
|
-
|
|
36112
|
+
JU,
|
|
36113
|
+
YU,
|
|
36114
|
+
XU
|
|
36105
36115
|
]
|
|
36106
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
36116
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = qU, r[46] = JU, r[47] = YU, r[48] = XU, r[49] = ZU) : ZU = r[49], ZU;
|
|
36107
36117
|
}, MiniCodePreview = (e) => {
|
|
36108
36118
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
36109
36119
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -36143,7 +36153,7 @@ ${c}
|
|
|
36143
36153
|
function _temp2$2(e) {
|
|
36144
36154
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
36145
36155
|
}
|
|
36146
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36156
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-BBpwXvOt.js"));
|
|
36147
36157
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36148
36158
|
var _a3;
|
|
36149
36159
|
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), [
|
|
@@ -36521,7 +36531,7 @@ ${c}
|
|
|
36521
36531
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36522
36532
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36523
36533
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36524
|
-
let H, W, G, q,
|
|
36534
|
+
let H, W, G, q, KU, Z, qU, JU, YU, XU;
|
|
36525
36535
|
if (r[3] !== T || r[4] !== M || r[5] !== I || r[6] !== L || r[7] !== _ || r[8] !== b || r[9] !== d || r[10] !== z || r[11] !== O || r[12] !== j || r[13] !== E || r[14] !== R || r[15] !== f || r[16] !== u || r[17] !== y || r[18] !== m || r[19] !== l) {
|
|
36526
36536
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36527
36537
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36567,11 +36577,11 @@ ${c}
|
|
|
36567
36577
|
})
|
|
36568
36578
|
})
|
|
36569
36579
|
]
|
|
36570
|
-
}), 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",
|
|
36571
|
-
let
|
|
36572
|
-
r[40] !== M || r[41] !==
|
|
36580
|
+
}), 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", KU = c, Z = R, qU = 0;
|
|
36581
|
+
let ZU2 = y && "marimo-output-stale", QU2 = L ? "p-5" : "p-3";
|
|
36582
|
+
r[40] !== M || r[41] !== ZU2 || r[42] !== QU2 ? (JU = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", ZU2, QU2, M), r[40] = M, r[41] = ZU2, r[42] = QU2, r[43] = JU) : JU = r[43], r[44] === d ? YU = r[45] : (YU = d ? {
|
|
36573
36583
|
maxHeight: "none"
|
|
36574
|
-
} : void 0, r[44] = d, r[45] =
|
|
36584
|
+
} : void 0, r[44] = d, r[45] = YU), XU = e2.map((e3, r2) => {
|
|
36575
36585
|
if (e3.channel === "pdb") return null;
|
|
36576
36586
|
if (e3.channel === "stdin") {
|
|
36577
36587
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -36600,36 +36610,36 @@ ${c}
|
|
|
36600
36610
|
wrapText: l
|
|
36601
36611
|
})
|
|
36602
36612
|
}, r2);
|
|
36603
|
-
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] =
|
|
36604
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
36605
|
-
let
|
|
36606
|
-
r[46] !== T || r[47] !== S ? (
|
|
36613
|
+
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = KU, r[25] = Z, r[26] = qU, r[27] = JU, r[28] = YU, r[29] = XU;
|
|
36614
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], KU = r[24], Z = r[25], qU = r[26], JU = r[27], YU = r[28], XU = r[29];
|
|
36615
|
+
let ZU;
|
|
36616
|
+
r[46] !== T || r[47] !== S ? (ZU = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36607
36617
|
value: S,
|
|
36608
36618
|
cellId: T,
|
|
36609
36619
|
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"
|
|
36610
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
36611
|
-
let
|
|
36612
|
-
r[49] !==
|
|
36620
|
+
}), r[46] = T, r[47] = S, r[48] = ZU) : ZU = r[48];
|
|
36621
|
+
let QU;
|
|
36622
|
+
r[49] !== ZU || r[50] !== G || r[51] !== q || r[52] !== KU || r[53] !== Z || r[54] !== qU || r[55] !== JU || r[56] !== YU || r[57] !== XU ? (QU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36613
36623
|
title: G,
|
|
36614
36624
|
"data-testid": q,
|
|
36615
|
-
ref:
|
|
36625
|
+
ref: KU,
|
|
36616
36626
|
...Z,
|
|
36617
|
-
tabIndex:
|
|
36618
|
-
className:
|
|
36619
|
-
style:
|
|
36627
|
+
tabIndex: qU,
|
|
36628
|
+
className: JU,
|
|
36629
|
+
style: YU,
|
|
36620
36630
|
children: [
|
|
36621
|
-
|
|
36622
|
-
|
|
36631
|
+
XU,
|
|
36632
|
+
ZU
|
|
36623
36633
|
]
|
|
36624
|
-
}), r[49] =
|
|
36625
|
-
let
|
|
36626
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
36634
|
+
}), r[49] = ZU, r[50] = G, r[51] = q, r[52] = KU, r[53] = Z, r[54] = qU, r[55] = JU, r[56] = YU, r[57] = XU, r[58] = QU) : QU = r[58];
|
|
36635
|
+
let $U;
|
|
36636
|
+
return r[59] !== H || r[60] !== W || r[61] !== QU ? ($U = (0, import_jsx_runtime.jsxs)("div", {
|
|
36627
36637
|
className: H,
|
|
36628
36638
|
children: [
|
|
36629
36639
|
W,
|
|
36630
|
-
|
|
36640
|
+
QU
|
|
36631
36641
|
]
|
|
36632
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
36642
|
+
}), r[59] = H, r[60] = W, r[61] = QU, r[62] = $U) : $U = r[62], $U;
|
|
36633
36643
|
}, StdInput = (e) => {
|
|
36634
36644
|
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;
|
|
36635
36645
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -37093,23 +37103,23 @@ ${c}
|
|
|
37093
37103
|
if ((h || _ || m || W) && !G) return null;
|
|
37094
37104
|
let q;
|
|
37095
37105
|
r[43] !== d || r[44] !== T ? (q = cellDomProps(d, T), r[43] = d, r[44] = T, r[45] = q) : q = r[45];
|
|
37096
|
-
let
|
|
37097
|
-
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !==
|
|
37098
|
-
allowExpand:
|
|
37106
|
+
let KU = w === "edit", Z;
|
|
37107
|
+
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !== KU ? (Z = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37108
|
+
allowExpand: KU,
|
|
37099
37109
|
output: c,
|
|
37100
37110
|
className: CSSClasses.outputArea,
|
|
37101
37111
|
cellId: d,
|
|
37102
37112
|
stale: I,
|
|
37103
37113
|
loading: R
|
|
37104
|
-
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] =
|
|
37105
|
-
let
|
|
37106
|
-
return r[52] !== H || r[53] !== q || r[54] !== Z ? (
|
|
37114
|
+
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] = KU, r[51] = Z) : Z = r[51];
|
|
37115
|
+
let qU;
|
|
37116
|
+
return r[52] !== H || r[53] !== q || r[54] !== Z ? (qU = (0, import_jsx_runtime.jsx)("div", {
|
|
37107
37117
|
tabIndex: -1,
|
|
37108
37118
|
ref: j,
|
|
37109
37119
|
className: H,
|
|
37110
37120
|
...q,
|
|
37111
37121
|
children: Z
|
|
37112
|
-
}), r[52] = H, r[53] = q, r[54] = Z, r[55] =
|
|
37122
|
+
}), r[52] = H, r[53] = q, r[54] = Z, r[55] = qU) : qU = r[55], qU;
|
|
37113
37123
|
});
|
|
37114
37124
|
VerticalCell.displayName = "VerticalCell";
|
|
37115
37125
|
const VerticalLayoutPlugin = {
|