@marimo-team/islands 0.23.14-dev19 → 0.23.14-dev21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chat-ui-9wA4feLE.js → chat-ui-CO8WuXGb.js} +347 -143
- package/dist/{code-visibility-CxDvzm2S.js → code-visibility-CPWEmIAX.js} +163 -171
- package/dist/{html-to-image-DBHfshED.js → html-to-image-DLSOS-bE.js} +2298 -2267
- package/dist/main.js +333 -333
- package/dist/{process-output-Dw6We6B6.js → process-output-B9ysqk1y.js} +1 -1
- package/dist/{reveal-component-tJhA77Am.js → reveal-component-BJwt0B2_.js} +2 -2
- package/package.json +2 -2
- package/src/components/editor/errors/__tests__/auto-fix.test.ts +11 -107
- package/src/components/editor/errors/auto-fix.tsx +11 -31
- package/src/components/editor/output/MarimoTracebackOutput.tsx +2 -2
- package/src/core/ai/context/__tests__/registry.test.ts +133 -3
- package/src/core/ai/context/providers/__tests__/datasource.test.ts +3 -1
- package/src/core/ai/context/providers/__tests__/error.test.ts +200 -15
- package/src/core/ai/context/providers/datasource.ts +27 -2
- package/src/core/ai/context/providers/error.ts +226 -36
- package/src/core/ai/context/registry.ts +77 -43
- package/src/core/codemirror/ai/resources.ts +15 -10
- package/src/core/errors/errors.ts +2 -1
- package/src/core/mime.ts +11 -4
- package/src/core/ai/context/providers/__tests__/__snapshots__/error.test.ts.snap +0 -3
package/dist/main.js
CHANGED
|
@@ -22,17 +22,17 @@ import { _ as Logger, c as Objects, g as cn, h as Events, i as NOT_SET, l as use
|
|
|
22
22
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
23
23
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
24
24
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-COam1EG7.js";
|
|
25
|
-
import { $ as reducer, $t as
|
|
25
|
+
import { $ as reducer, $t as requestClientAtom, A as ChevronDownIcon, At as Paths, Bn as Eye, C as Accordion, Cn as selectAtom, Ct as isInternalCellName, D as BorderAllIcon, Dn as Item$1, Dt as MarkdownLanguageAdapter, E as AccordionTrigger, En as Content2, Et as customPythonLanguageSupport, G as hasRunAnyCellAtom, Gn as CircleAlert, Gt as DATA_TYPE_ICON, H as renderHTML, Hn as Database, Ht as MarkdownParser, I as base64ToDataView, In as LoaderCircle, J as getCellNames, K as createActions, Kn as Braces, Ln as Layers, Lt as repl, Mn as Table2, Nn as PaintRoller, Nt as DeferredRequestRegistry, On as Root2$1, Pt as generateUUID, Q as numColumnsAtom, Qt as getRequestClient, R as dataViewToBase64, Rn as Info, Sn as atomWithStorage, St as getValidName, T as AccordionItem, Tt as Checkbox, U as getMarimoExportContext, Un as Columns2, V as safeExtractSetUIElementMessageBuffers, Vt as SQLParser, W as hasTrustedExportContext, Wt as PluralWords, X as notebookAtom, Y as hasOnlyOneCellAtom, Z as notebookOutline, Zt as convertStatsName, _n as OBJECT_ID_ATTR, _t as headingToIdentifier, a as useCellFocusActions, ct as initialModeAtom, dn as parseInitialValue, en as useRequestClient, et as useCellActions, f as isOutputEmpty, ft as outputIsLoading, gn as findCellId, hn as UIElementId, i as LazyAnyLanguageCodeMirror, jn as Trash2, kn as Trigger2, kt as PathBuilder, ln as parseAttrValue, lt as kioskModeAtom, mt as isErrorMime, n as Spinner, o as useLastFocusedCellId, on as NotebookScopedLocalStorage, p as useExpandedConsoleOutput, pn as HTMLCellId, pt as outputIsStale, qt as require_client, rt as createCell, s as maybeAddAltairImport, st as getInitialAppMode, tn as isUninstantiated, tt as useCellIds, un as parseDataset, vn as RANDOM_ID_ATTR, w as AccordionContent, wt as normalizeName, xn as atomWithReducer, yn as jsonParseWithSpecialChar, zn as FileText, zt as jotaiJsonStorage, __tla as __tla_0 } from "./html-to-image-DLSOS-bE.js";
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BbqSm5gU.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist--2Bqjvs0.js";
|
|
28
28
|
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-CnTgI25l.js";
|
|
29
|
-
import { $ as PANEL_TYPES, $t as HtmlOutput, A as prettifyRowCount, At as INDEX_COLUMN_NAME, B as CompactChipRow, Bt as dateToLocalISODateTime, C as downloadSizeLimitAtom, Ct as ColumnChartSpecModel, D as ErrorState, Dt as getPageIndexForRow, E as EmptyState, Et as usePrevious$1, F as ContextMenuItem, Ft as hasFunctionProperty, G as Command, Gt as TabsTrigger, H as DateRangePicker, Ht as Tabs, I as ContextMenuSeparator, It as isRecord, J as CommandItem, Jt as ChartLoadingState, K as CommandEmpty, Kt as ChartErrorState, L as ContextMenuTrigger, Lt as isNullishFilter, M as getUserColumnVisibilityCounts, Mt as TOO_MANY_ROWS, N as ContextMenu, Nt as toFieldTypes, O as LoadingState, Ot as loadTableAndRawData, P as ContextMenuContent, Pt as getMimeValues, Q as ContextAwarePanelItem, Qt as Kbd, R as useInternalStateWithSync, Rt as Maps, S as Filenames, St as ColumnChartContext, T as ColumnPreviewContainer, Tt as useIntersectionObserver, U as Combobox, Ut as TabsContent, V as DatePicker, Vt as dateToLocalISOTime, W as ComboboxItem, Wt as TabsList, X as CommandSeparator, Xt as useOverflowDetection, Y as CommandList, Yt as LazyVegaEmbed, Z as smartMatch, Zt as RenderTextWithLinks, _ as ADD_PRINTING_CLASS, _t as TableRow, an as Funnel, at as slotsController, b as downloadHTMLAsImage, bt as inferFieldTypes, c as Slide, cn as Ellipsis, d as RadioGroupItem, dn as ChevronsUpDown, dt as Provider$1, en as EmotionCacheProvider, et as contextAwarePanelOpen, f as JsonOutput, fn as ChevronsRight, ft as Table, g as InstallPackageButton, gn as ArrowDownWideNarrow, gt as TableHeader, h as DataTable, hn as ChevronLeft, ht as TableHead, in as GripHorizontal, it as SlotNames, j as getColumnCountForDisplay, jt as SELECT_COLUMN_ID, k as prettifyRowColumnCount, kt as loadTableData, l as Switch, ln as Download, m as OutputRenderer, mn as ChevronsDownUp, mt as TableCell, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$6b862160d295c8e, nt as contextAwarePanelType, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as EyeOff, ot as Toggle, p as OutputArea, pn as ChevronsLeft, pt as TableBody, q as CommandInput, qt as ChartInfoState, r as showCodeInRunModeAtom, rn as TextWrap, rt as isCellAwareAtom, t as useNotebookCodeAvailable, tn as $fae977aafc393c5c$export$588937bcd60ade55, tt as contextAwarePanelOwner, u as RadioGroup, un as Code, ut as Fill, v as downloadBlob, vt as NAMELESS_COLUMN_PREFIX, w as ColumnName, wt as DelayMount, x as Progress, xt as renderCellValue, y as downloadByURL, yt as generateColumns, z as useSelectList, zt as dateToLocalISODate, __tla as __tla_2 } from "./code-visibility-
|
|
29
|
+
import { $ as PANEL_TYPES, $t as HtmlOutput, A as prettifyRowCount, At as INDEX_COLUMN_NAME, B as CompactChipRow, Bt as dateToLocalISODateTime, C as downloadSizeLimitAtom, Ct as ColumnChartSpecModel, D as ErrorState, Dt as getPageIndexForRow, E as EmptyState, Et as usePrevious$1, F as ContextMenuItem, Ft as hasFunctionProperty, G as Command, Gt as TabsTrigger, H as DateRangePicker, Ht as Tabs, I as ContextMenuSeparator, It as isRecord, J as CommandItem, Jt as ChartLoadingState, K as CommandEmpty, Kt as ChartErrorState, L as ContextMenuTrigger, Lt as isNullishFilter, M as getUserColumnVisibilityCounts, Mt as TOO_MANY_ROWS, N as ContextMenu, Nt as toFieldTypes, O as LoadingState, Ot as loadTableAndRawData, P as ContextMenuContent, Pt as getMimeValues, Q as ContextAwarePanelItem, Qt as Kbd, R as useInternalStateWithSync, Rt as Maps, S as Filenames, St as ColumnChartContext, T as ColumnPreviewContainer, Tt as useIntersectionObserver, U as Combobox, Ut as TabsContent, V as DatePicker, Vt as dateToLocalISOTime, W as ComboboxItem, Wt as TabsList, X as CommandSeparator, Xt as useOverflowDetection, Y as CommandList, Yt as LazyVegaEmbed, Z as smartMatch, Zt as RenderTextWithLinks, _ as ADD_PRINTING_CLASS, _t as TableRow, an as Funnel, at as slotsController, b as downloadHTMLAsImage, bt as inferFieldTypes, c as Slide, cn as Ellipsis, d as RadioGroupItem, dn as ChevronsUpDown, dt as Provider$1, en as EmotionCacheProvider, et as contextAwarePanelOpen, f as JsonOutput, fn as ChevronsRight, ft as Table, g as InstallPackageButton, gn as ArrowDownWideNarrow, gt as TableHeader, h as DataTable, hn as ChevronLeft, ht as TableHead, in as GripHorizontal, it as SlotNames, j as getColumnCountForDisplay, jt as SELECT_COLUMN_ID, k as prettifyRowColumnCount, kt as loadTableData, l as Switch, ln as Download, m as OutputRenderer, mn as ChevronsDownUp, mt as TableCell, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$6b862160d295c8e, nt as contextAwarePanelType, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as EyeOff, ot as Toggle, p as OutputArea, pn as ChevronsLeft, pt as TableBody, q as CommandInput, qt as ChartInfoState, r as showCodeInRunModeAtom, rn as TextWrap, rt as isCellAwareAtom, t as useNotebookCodeAvailable, tn as $fae977aafc393c5c$export$588937bcd60ade55, tt as contextAwarePanelOwner, u as RadioGroup, un as Code, ut as Fill, v as downloadBlob, vt as NAMELESS_COLUMN_PREFIX, w as ColumnName, wt as DelayMount, x as Progress, xt as renderCellValue, y as downloadByURL, yt as generateColumns, z as useSelectList, zt as dateToLocalISODate, __tla as __tla_2 } from "./code-visibility-CPWEmIAX.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-CxffarYV.js";
|
|
31
31
|
import { t as Check } from "./check-C9OoNtR4.js";
|
|
32
32
|
import { A as Icon, C as logNever, D as $18f2051aff69b9bf$export$a54013f0d02a8f82, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, M as clamp$2, N as usePrevious$2, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as Trigger$1, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./strings-Dq_j3Rxw.js";
|
|
33
33
|
import { B as $64fa3d84918910a7$export$4d86445c2cf5e3, C as DropdownMenuTrigger, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, It as $3ef42575df84b30b$export$9d1611c77c2fe928, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, X as useDebouncedCallback, Y as useDebounceControlledState, a as NumberField, d as roundToFractionDigits, f as DropdownMenu, g as DropdownMenuLabel, gn as ChevronRight, h as DropdownMenuItem, hn as Circle, i as OnBlurredInput, l as prettyNumber, m as DropdownMenuGroup, n as DebouncedNumberInput, o as maxFractionDigitsForSteps, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pt as $6179b936705e76d3$export$ae780daf29e6d456, r as Input, st as $701a24aa0da5b062$export$ea18c227d4417cc3, t as DebouncedInput, u as prettyScientificNumber, v as DropdownMenuSeparator, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, y as DropdownMenuShortcut, z as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./input-BSdZp5Ng.js";
|
|
34
34
|
import { _ as isWasm, c as asRemoteURL, d as isStaticNotebook, f as appendQueryParams, g as Deferred, m as require_cuid2, u as getStaticVirtualFiles, v as CircleQuestionMark } from "./toDate-D1Z7ZXWh.js";
|
|
35
|
-
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, d as Square, f as File, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-
|
|
35
|
+
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, d as Square, f as File, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-B9ysqk1y.js";
|
|
36
36
|
import { n as Trash, r as Pencil, t as BulkEdit } from "./types-C2Ir191_.js";
|
|
37
37
|
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-DE6tzZf-.js";
|
|
38
38
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
@@ -6086,7 +6086,7 @@ let __tla = Promise.all([
|
|
|
6086
6086
|
return (() => (r || (r = true, c = e()), c));
|
|
6087
6087
|
}
|
|
6088
6088
|
var Jo = Xn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Jn = K(([{ data: e, defaultItemSize: r, firstItemIndex: c, fixedItemSize: l, fixedGroupSize: u, gap: d, groupIndices: f, heightEstimates: p, itemSize: m, sizeRanges: h, sizes: g, statefulTotalCount: _, totalCount: v, trackItemSizes: y }, { initialItemFinalLocationReached: b, initialTopMostItemIndex: S, scrolledToInitialItem: w }, T, E, O, j, { scrollToIndex: M }, I, { topItemCount: L }, { groupCounts: R }, z]) => {
|
|
6089
|
-
let { listState: B, minOverscanItemCount: H, topItemsIndexes: W, rangeChanged: G, ...
|
|
6089
|
+
let { listState: B, minOverscanItemCount: H, topItemsIndexes: W, rangeChanged: G, ...q } = j;
|
|
6090
6090
|
return F(G, z.scrollSeekRangeChanged), F(x(z.windowViewportRect, k((e2) => e2.visibleHeight)), T.viewportHeight), {
|
|
6091
6091
|
data: e,
|
|
6092
6092
|
defaultItemHeight: r,
|
|
@@ -6112,7 +6112,7 @@ let __tla = Promise.all([
|
|
|
6112
6112
|
statefulTotalCount: _,
|
|
6113
6113
|
trackItemSizes: y,
|
|
6114
6114
|
rangeChanged: G,
|
|
6115
|
-
...
|
|
6115
|
+
...q,
|
|
6116
6116
|
...z,
|
|
6117
6117
|
...T,
|
|
6118
6118
|
sizes: g,
|
|
@@ -6997,10 +6997,10 @@ let __tla = Promise.all([
|
|
|
6997
6997
|
}), B = C({
|
|
6998
6998
|
height: 0,
|
|
6999
6999
|
width: 0
|
|
7000
|
-
}), H = U(), W = U(), G = C(0),
|
|
7000
|
+
}), H = U(), W = U(), G = C(0), q = C(null), cW = C({
|
|
7001
7001
|
column: 0,
|
|
7002
7002
|
row: 0
|
|
7003
|
-
}),
|
|
7003
|
+
}), lW = U(), Z = U(), uW = C(false), dW = C(0), fW = C(true), pW = C(false), mW = C(false);
|
|
7004
7004
|
Y(x(b, $(dW), P(([e2, r2]) => !!r2)), () => {
|
|
7005
7005
|
D(fW, false);
|
|
7006
7006
|
}), Y(x(ut(b, fW, B, z, dW, pW), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
@@ -7012,18 +7012,18 @@ let __tla = Promise.all([
|
|
|
7012
7012
|
0
|
|
7013
7013
|
]), D(fW, true);
|
|
7014
7014
|
});
|
|
7015
|
-
}), F(x(
|
|
7016
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7015
|
+
}), F(x(Z, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(Z), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7016
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(cW, e2.gap), e2.scrollTop > 0 && (D(uW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7017
7017
|
D(uW, false);
|
|
7018
7018
|
}), D(m, {
|
|
7019
7019
|
top: e2.scrollTop
|
|
7020
7020
|
})));
|
|
7021
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7021
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(cW, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7022
7022
|
gap: c2,
|
|
7023
7023
|
item: r2,
|
|
7024
7024
|
scrollTop: l2,
|
|
7025
7025
|
viewport: e2
|
|
7026
|
-
}))),
|
|
7026
|
+
}))), lW), F(x(ut(V(I), l, V(cW, Or), V(B, xe), V(z, xe), V(q), V(L), V(uW), V(fW), V(dW)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7027
7027
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7028
7028
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7029
7029
|
if (y2 === 0) {
|
|
@@ -7042,7 +7042,7 @@ let __tla = Promise.all([
|
|
|
7042
7042
|
offsetTop: j2,
|
|
7043
7043
|
top: j2
|
|
7044
7044
|
};
|
|
7045
|
-
})), R), F(x(
|
|
7045
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, cW), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7046
7046
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7047
7047
|
return [
|
|
7048
7048
|
d2,
|
|
@@ -7058,7 +7058,7 @@ let __tla = Promise.all([
|
|
|
7058
7058
|
endIndex: e2[e2.length - 1].index,
|
|
7059
7059
|
startIndex: e2[0].index
|
|
7060
7060
|
})), J(An), Gt(0)));
|
|
7061
|
-
F(vW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I,
|
|
7061
|
+
F(vW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, cW), k(([e2, r2, c2, l2, u2]) => {
|
|
7062
7062
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7063
7063
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7064
7064
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7073,16 +7073,16 @@ let __tla = Promise.all([
|
|
|
7073
7073
|
width: e2.visibleWidth
|
|
7074
7074
|
}))), z), {
|
|
7075
7075
|
customScrollParent: w,
|
|
7076
|
-
data:
|
|
7076
|
+
data: q,
|
|
7077
7077
|
deviation: G,
|
|
7078
7078
|
footerHeight: u,
|
|
7079
|
-
gap:
|
|
7079
|
+
gap: cW,
|
|
7080
7080
|
headerHeight: d,
|
|
7081
7081
|
increaseViewportBy: e,
|
|
7082
7082
|
initialItemCount: L,
|
|
7083
7083
|
itemDimensions: B,
|
|
7084
7084
|
overscan: c,
|
|
7085
|
-
restoreStateFrom:
|
|
7085
|
+
restoreStateFrom: Z,
|
|
7086
7086
|
scrollBy: f,
|
|
7087
7087
|
scrollContainerState: p,
|
|
7088
7088
|
scrollHeight: W,
|
|
@@ -7106,7 +7106,7 @@ let __tla = Promise.all([
|
|
|
7106
7106
|
propsReady: S,
|
|
7107
7107
|
rangeChanged: vW,
|
|
7108
7108
|
startReached: _W,
|
|
7109
|
-
stateChanged:
|
|
7109
|
+
stateChanged: lW,
|
|
7110
7110
|
stateRestoreInProgress: uW,
|
|
7111
7111
|
...M
|
|
7112
7112
|
};
|
|
@@ -7375,8 +7375,8 @@ let __tla = Promise.all([
|
|
|
7375
7375
|
allowSelectNone: m,
|
|
7376
7376
|
pinSelected: j
|
|
7377
7377
|
}, r[0] = m, r[1] = f, r[2] = d, r[3] = u, r[4] = c, r[5] = j, r[6] = l, r[7] = W) : W = r[7];
|
|
7378
|
-
let G = useSelectList(W),
|
|
7379
|
-
r[8] !== m || r[9] !== f || r[10] !== d || r[11] !== u ? (
|
|
7378
|
+
let G = useSelectList(W), q;
|
|
7379
|
+
r[8] !== m || r[9] !== f || r[10] !== d || r[11] !== u ? (q = (e2) => {
|
|
7380
7380
|
if (!d) {
|
|
7381
7381
|
if (e2 == null && !m) return;
|
|
7382
7382
|
u(e2);
|
|
@@ -7384,23 +7384,23 @@ let __tla = Promise.all([
|
|
|
7384
7384
|
}
|
|
7385
7385
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7386
7386
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7387
|
-
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] =
|
|
7388
|
-
let
|
|
7387
|
+
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7388
|
+
let cW = q, lW;
|
|
7389
7389
|
if (r[13] !== G.bulkActions) {
|
|
7390
|
-
if (
|
|
7390
|
+
if (lW = G.bulkActions.map(_temp$26), lW.length > 0) {
|
|
7391
7391
|
let e2;
|
|
7392
7392
|
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7393
7393
|
"data-slot": "select-separator"
|
|
7394
|
-
}, "_bulk_separator"), r[15] = e2) : e2 = r[15],
|
|
7394
|
+
}, "_bulk_separator"), r[15] = e2) : e2 = r[15], lW.push(e2);
|
|
7395
7395
|
}
|
|
7396
|
-
r[13] = G.bulkActions, r[14] =
|
|
7397
|
-
} else
|
|
7398
|
-
let
|
|
7399
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7396
|
+
r[13] = G.bulkActions, r[14] = lW;
|
|
7397
|
+
} else lW = r[14];
|
|
7398
|
+
let Z;
|
|
7399
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (Z = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7400
7400
|
"data-slot": "select-separator"
|
|
7401
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7402
|
-
let uW =
|
|
7403
|
-
r[19] !==
|
|
7401
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = Z) : Z = r[18];
|
|
7402
|
+
let uW = Z, dW;
|
|
7403
|
+
r[19] !== lW || r[20] !== G || r[21] !== uW || r[22] !== w || r[23] !== B || r[24] !== H ? (dW = () => {
|
|
7404
7404
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7405
7405
|
"data-slot": "select-list",
|
|
7406
7406
|
style: {
|
|
@@ -7412,7 +7412,7 @@ let __tla = Promise.all([
|
|
|
7412
7412
|
let r2 = G.visibleOptions[e3];
|
|
7413
7413
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7414
7414
|
children: [
|
|
7415
|
-
e3 === 0 &&
|
|
7415
|
+
e3 === 0 && lW,
|
|
7416
7416
|
uW(e3),
|
|
7417
7417
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7418
7418
|
option: r2,
|
|
@@ -7438,11 +7438,11 @@ let __tla = Promise.all([
|
|
|
7438
7438
|
});
|
|
7439
7439
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7440
7440
|
children: [
|
|
7441
|
-
|
|
7441
|
+
lW,
|
|
7442
7442
|
e2
|
|
7443
7443
|
]
|
|
7444
7444
|
});
|
|
7445
|
-
}, r[19] =
|
|
7445
|
+
}, r[19] = lW, r[20] = G, r[21] = uW, r[22] = w, r[23] = B, r[24] = H, r[25] = dW) : dW = r[25];
|
|
7446
7446
|
let fW = dW, pW;
|
|
7447
7447
|
r[26] !== G.labelOf || r[27] !== I ? (pW = (e2) => {
|
|
7448
7448
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
@@ -7482,19 +7482,19 @@ let __tla = Promise.all([
|
|
|
7482
7482
|
id: S
|
|
7483
7483
|
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] = hW, r[44] = gW, r[45] = _W, r[46] = vW, r[47] = CW, r[48] = wW) : wW = r[48];
|
|
7484
7484
|
let TW = wW, EW;
|
|
7485
|
-
return r[49] !== TW || r[50] !==
|
|
7485
|
+
return r[49] !== TW || r[50] !== cW || r[51] !== d || r[52] !== fW || r[53] !== l ? (EW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7486
7486
|
...TW,
|
|
7487
7487
|
multiple: true,
|
|
7488
7488
|
value: l,
|
|
7489
|
-
onValueChange:
|
|
7489
|
+
onValueChange: cW,
|
|
7490
7490
|
children: fW()
|
|
7491
7491
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7492
7492
|
...TW,
|
|
7493
7493
|
multiple: false,
|
|
7494
7494
|
value: l,
|
|
7495
|
-
onValueChange:
|
|
7495
|
+
onValueChange: cW,
|
|
7496
7496
|
children: fW()
|
|
7497
|
-
}), r[49] = TW, r[50] =
|
|
7497
|
+
}), r[49] = TW, r[50] = cW, r[51] = d, r[52] = fW, r[53] = l, r[54] = EW) : EW = r[54], EW;
|
|
7498
7498
|
}
|
|
7499
7499
|
function _temp$26(e) {
|
|
7500
7500
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -8576,7 +8576,7 @@ let __tla = Promise.all([
|
|
|
8576
8576
|
};
|
|
8577
8577
|
}
|
|
8578
8578
|
};
|
|
8579
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
8579
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-CO8WuXGb.js").then((e) => ({
|
|
8580
8580
|
default: e.Chatbot
|
|
8581
8581
|
}))), messageSchema = array(object({
|
|
8582
8582
|
id: string(),
|
|
@@ -9691,7 +9691,7 @@ let __tla = Promise.all([
|
|
|
9691
9691
|
let m2 = get(l, e2);
|
|
9692
9692
|
if (m2) {
|
|
9693
9693
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
9694
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
9694
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : cW(e2, l2), f.mount && w();
|
|
9695
9695
|
}
|
|
9696
9696
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
9697
9697
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -9771,7 +9771,7 @@ let __tla = Promise.all([
|
|
|
9771
9771
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
9772
9772
|
[e2]: r2
|
|
9773
9773
|
} : r2
|
|
9774
|
-
}, c2, r2),
|
|
9774
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), cW = (e2, r2, c2 = {}) => {
|
|
9775
9775
|
let u2 = get(l, e2), f2 = r2;
|
|
9776
9776
|
if (u2) {
|
|
9777
9777
|
let c3 = u2._f;
|
|
@@ -9785,12 +9785,12 @@ let __tla = Promise.all([
|
|
|
9785
9785
|
})));
|
|
9786
9786
|
}
|
|
9787
9787
|
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && fW(e2);
|
|
9788
|
-
},
|
|
9788
|
+
}, lW = (e2, r2, c2) => {
|
|
9789
9789
|
for (let u2 in r2) {
|
|
9790
9790
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
9791
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
9791
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? lW(f2, d2, c2) : cW(f2, d2, c2);
|
|
9792
9792
|
}
|
|
9793
|
-
},
|
|
9793
|
+
}, Z = (e2, r2, m2 = {}) => {
|
|
9794
9794
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
9795
9795
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
9796
9796
|
name: e2,
|
|
@@ -9801,7 +9801,7 @@ let __tla = Promise.all([
|
|
|
9801
9801
|
name: e2,
|
|
9802
9802
|
dirtyFields: getDirtyFields(u, d),
|
|
9803
9803
|
isDirty: W(e2, y2)
|
|
9804
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
9804
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? lW(e2, y2, m2) : cW(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
9805
9805
|
...c
|
|
9806
9806
|
}), _.values.next({
|
|
9807
9807
|
name: f.mount ? e2 : void 0,
|
|
@@ -9817,14 +9817,14 @@ let __tla = Promise.all([
|
|
|
9817
9817
|
if (E2) {
|
|
9818
9818
|
let u3, f2, M2 = O2(), z2 = e2.type === EVENTS.BLUR || e2.type === EVENTS.FOCUS_OUT, H2 = !hasValidation(E2._f) && !r.resolver && !get(c.errors, h2) && !E2._f.deps || skipValidation(z2, get(c.touchedFields, h2), c.isSubmitted, y, v), W2 = isWatched(h2, p, z2);
|
|
9819
9819
|
set(d, h2, M2), z2 ? (E2._f.onBlur && E2._f.onBlur(e2), m && m(0)) : E2._f.onChange && E2._f.onChange(e2);
|
|
9820
|
-
let G2 = I(h2, M2, z2, false),
|
|
9820
|
+
let G2 = I(h2, M2, z2, false), q2 = !isEmptyObject(G2) || W2;
|
|
9821
9821
|
if (!z2 && _.values.next({
|
|
9822
9822
|
name: h2,
|
|
9823
9823
|
type: e2.type,
|
|
9824
9824
|
values: {
|
|
9825
9825
|
...d
|
|
9826
9826
|
}
|
|
9827
|
-
}), H2) return g.isValid && (r.mode === "onBlur" && z2 ? w() : z2 || w()),
|
|
9827
|
+
}), H2) return g.isValid && (r.mode === "onBlur" && z2 ? w() : z2 || w()), q2 && _.state.next({
|
|
9828
9828
|
name: h2,
|
|
9829
9829
|
...W2 ? {} : G2
|
|
9830
9830
|
});
|
|
@@ -10012,7 +10012,7 @@ let __tla = Promise.all([
|
|
|
10012
10012
|
errors: c.errors
|
|
10013
10013
|
}), m2) throw m2;
|
|
10014
10014
|
}, wW = (e2, r2 = {}) => {
|
|
10015
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10015
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? Z(e2, cloneObject(get(u, e2))) : (Z(e2, r2.defaultValue), set(u, e2, cloneObject(r2.defaultValue))), r2.keepTouched || unset(c.touchedFields, e2), r2.keepDirty || (unset(c.dirtyFields, e2), c.isDirty = r2.defaultValue ? W(e2, cloneObject(get(u, e2))) : W()), r2.keepError || (unset(c.errors, e2), g.isValid && w()), _.state.next({
|
|
10016
10016
|
...c
|
|
10017
10017
|
}));
|
|
10018
10018
|
}, TW = (e2, m2 = {}) => {
|
|
@@ -10023,7 +10023,7 @@ let __tla = Promise.all([
|
|
|
10023
10023
|
...p.mount,
|
|
10024
10024
|
...Object.keys(getDirtyFields(u, d))
|
|
10025
10025
|
]);
|
|
10026
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10026
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : Z(r2, get(b2, r2));
|
|
10027
10027
|
} else {
|
|
10028
10028
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10029
10029
|
let r2 = get(l, e3);
|
|
@@ -10083,7 +10083,7 @@ let __tla = Promise.all([
|
|
|
10083
10083
|
_removeUnmounted: H,
|
|
10084
10084
|
_updateFieldArray: E,
|
|
10085
10085
|
_updateDisabledField: yW,
|
|
10086
|
-
_getFieldArray:
|
|
10086
|
+
_getFieldArray: q,
|
|
10087
10087
|
_reset: TW,
|
|
10088
10088
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10089
10089
|
EW(e2, r.resetOptions), _.state.next({
|
|
@@ -10141,7 +10141,7 @@ let __tla = Promise.all([
|
|
|
10141
10141
|
register: bW,
|
|
10142
10142
|
handleSubmit: CW,
|
|
10143
10143
|
watch: _W,
|
|
10144
|
-
setValue:
|
|
10144
|
+
setValue: Z,
|
|
10145
10145
|
getValues: pW,
|
|
10146
10146
|
reset: EW,
|
|
10147
10147
|
resetField: wW,
|
|
@@ -14454,11 +14454,11 @@ ${c}
|
|
|
14454
14454
|
_.pageSize,
|
|
14455
14455
|
_.pageIndex
|
|
14456
14456
|
], 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];
|
|
14457
|
-
let { data: W, error: G, isPending:
|
|
14458
|
-
r[48] !==
|
|
14457
|
+
let { data: W, error: G, isPending: q, isFetching: cW } = useAsyncData(z, H), lW = useAtomValue(downloadSizeLimitAtom), Z;
|
|
14458
|
+
r[48] !== lW || r[49] !== e ? (Z = async () => !lW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = lW, r[49] = e, r[50] = Z) : Z = r[50];
|
|
14459
14459
|
let uW = e.showDownload, dW = e.get_size_bytes, fW = e.lazy, pW = e.totalRows, mW = useDeepCompareMemoize(w), hW = useDeepCompareMemoize(m), gW;
|
|
14460
|
-
r[51] !==
|
|
14461
|
-
|
|
14460
|
+
r[51] !== lW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== mW || r[58] !== hW ? (gW = [
|
|
14461
|
+
lW,
|
|
14462
14462
|
uW,
|
|
14463
14463
|
dW,
|
|
14464
14464
|
fW,
|
|
@@ -14466,8 +14466,8 @@ ${c}
|
|
|
14466
14466
|
y,
|
|
14467
14467
|
mW,
|
|
14468
14468
|
hW
|
|
14469
|
-
], r[51] =
|
|
14470
|
-
let { data: _W, isPending: vW } = useAsyncData(
|
|
14469
|
+
], r[51] = lW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = mW, r[58] = hW, r[59] = gW) : gW = r[59];
|
|
14470
|
+
let { data: _W, isPending: vW } = useAsyncData(Z, gW), yW = _W ?? null, bW = !!lW && e.showDownload && vW, xW;
|
|
14471
14471
|
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (xW = async (e2) => ({
|
|
14472
14472
|
rows: await loadTableData((await u({
|
|
14473
14473
|
page_number: e2,
|
|
@@ -14511,7 +14511,7 @@ ${c}
|
|
|
14511
14511
|
kW && Logger.error(kW);
|
|
14512
14512
|
}, jW = [
|
|
14513
14513
|
kW
|
|
14514
|
-
], r[77] = kW, r[78] = AW, r[79] = jW), (0, import_react.useEffect)(AW, jW),
|
|
14514
|
+
], r[77] = kW, r[78] = AW, r[79] = jW), (0, import_react.useEffect)(AW, jW), q) {
|
|
14515
14515
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14516
14516
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14517
14517
|
milliseconds: 200,
|
|
@@ -14542,7 +14542,7 @@ ${c}
|
|
|
14542
14542
|
r[84] === O ? NW = r[85] : (NW = () => {
|
|
14543
14543
|
j(!O);
|
|
14544
14544
|
}, r[84] = O, r[85] = NW);
|
|
14545
|
-
let PW = NW, FW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, IW = W == null ? void 0 : W.rawRows, LW =
|
|
14545
|
+
let PW = NW, FW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, IW = W == null ? void 0 : W.rawRows, LW = cW && !q, RW = (W == null ? void 0 : W.totalRows) ?? e.totalRows, zW = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, BW = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, VW;
|
|
14546
14546
|
r[86] !== l || r[87] !== OW || r[88] !== O || r[89] !== w || r[90] !== SW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== yW || r[95] !== bW || r[96] !== m || r[97] !== FW || r[98] !== IW || r[99] !== LW || r[100] !== RW || r[101] !== zW || r[102] !== BW || r[103] !== PW ? (VW = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
14547
14547
|
...e,
|
|
14548
14548
|
data: FW,
|
|
@@ -14589,7 +14589,7 @@ ${c}
|
|
|
14589
14589
|
}), r[115] = MW, r[116] = UW, r[117] = WW) : WW = r[117], WW;
|
|
14590
14590
|
});
|
|
14591
14591
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
14592
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery:
|
|
14592
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: cW, setFilters: lW, reloading: Z, freezeColumnsLeft: uW, freezeColumnsRight: dW, hiddenColumns: fW, textJustifyColumns: pW, wrappedColumns: mW, columnWidths: hW, headerTooltip: gW, totalColumns: _W, get_row_ids: vW, cellStyles: yW, hoverTemplate: bW, cellHoverTexts: xW, toggleDisplayHeader: SW, isChartBuilderOpen: CW, calculate_top_k_rows: wW, preview_column: TW, getRow: EW, cellId: DW, maxHeight: OW }) => {
|
|
14593
14593
|
let kW = (0, import_react.useId)(), { locale: AW } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [jW, MW] = (0, import_react.useState)(0), { isPanelOpen: NW, isAnyPanelOpen: PW, togglePanel: FW, panelType: IW, setPanelType: LW } = usePanelOwnership(kW, DW), RW = isStaticNotebook(), zW = (0, import_react.useMemo)(() => {
|
|
14594
14594
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
14595
14595
|
let e2 = toFieldTypes(O);
|
|
@@ -14785,12 +14785,12 @@ ${c}
|
|
|
14785
14785
|
downloadAs: _ ? I : void 0,
|
|
14786
14786
|
showSearch: W,
|
|
14787
14787
|
searchQuery: G,
|
|
14788
|
-
onSearchQueryChange:
|
|
14788
|
+
onSearchQueryChange: q,
|
|
14789
14789
|
showFilters: g,
|
|
14790
|
-
filters:
|
|
14791
|
-
onFiltersChange:
|
|
14790
|
+
filters: cW,
|
|
14791
|
+
onFiltersChange: lW,
|
|
14792
14792
|
calculateTopKRows: wW,
|
|
14793
|
-
reloading:
|
|
14793
|
+
reloading: Z,
|
|
14794
14794
|
onRowSelectionChange: QW,
|
|
14795
14795
|
freezeColumnsLeft: uW,
|
|
14796
14796
|
freezeColumnsRight: dW,
|
|
@@ -16859,29 +16859,29 @@ ${c}
|
|
|
16859
16859
|
], r[2] = S, r[3] = w);
|
|
16860
16860
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
16861
16861
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
16862
|
-
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M,
|
|
16863
|
-
r[6] === d ?
|
|
16862
|
+
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, cW] = (0, import_react.useState)(f || EMPTY), lW = (0, import_react.useRef)(null), Z;
|
|
16863
|
+
r[6] === d ? Z = r[7] : (Z = (e2) => {
|
|
16864
16864
|
var _a3;
|
|
16865
16865
|
d && e2 !== "transform" && ((_a3 = lW.current) == null ? void 0 : _a3.submit());
|
|
16866
|
-
}, r[6] = d, r[7] =
|
|
16867
|
-
let
|
|
16868
|
-
r[8] === q ?
|
|
16869
|
-
|
|
16870
|
-
}, r[8] = q, r[9] =
|
|
16871
|
-
let
|
|
16872
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
16873
|
-
let e2 =
|
|
16866
|
+
}, r[6] = d, r[7] = Z);
|
|
16867
|
+
let uW = Z, dW = (0, import_react.useRef)(q), fW;
|
|
16868
|
+
r[8] === q ? fW = r[9] : (fW = () => {
|
|
16869
|
+
dW.current = q;
|
|
16870
|
+
}, r[8] = q, r[9] = fW), (0, import_react.useEffect)(fW);
|
|
16871
|
+
let pW;
|
|
16872
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (pW = () => {
|
|
16873
|
+
let e2 = dW.current;
|
|
16874
16874
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
16875
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
16876
|
-
let
|
|
16877
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
16875
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = pW) : pW = r[12];
|
|
16876
|
+
let mW = f == null ? void 0 : f.transforms.length, hW;
|
|
16877
|
+
r[13] !== T || r[14] !== p || r[15] !== mW ? (hW = [
|
|
16878
16878
|
T,
|
|
16879
|
-
|
|
16880
|
-
|
|
16879
|
+
mW,
|
|
16880
|
+
dW,
|
|
16881
16881
|
p
|
|
16882
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
16883
|
-
let
|
|
16884
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16882
|
+
], r[13] = T, r[14] = p, r[15] = mW, r[16] = hW) : hW = r[16], (0, import_react.useEffect)(pW, hW);
|
|
16883
|
+
let gW;
|
|
16884
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16885
16885
|
value: "transform",
|
|
16886
16886
|
className: "text-xs py-1",
|
|
16887
16887
|
children: [
|
|
@@ -16890,9 +16890,9 @@ ${c}
|
|
|
16890
16890
|
}),
|
|
16891
16891
|
"Transform"
|
|
16892
16892
|
]
|
|
16893
|
-
}), r[17] =
|
|
16894
|
-
let
|
|
16895
|
-
r[18] === H ?
|
|
16893
|
+
}), r[17] = gW) : gW = r[17];
|
|
16894
|
+
let _W;
|
|
16895
|
+
r[18] === H ? _W = r[19] : (_W = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16896
16896
|
value: "python-code",
|
|
16897
16897
|
className: "text-xs py-1",
|
|
16898
16898
|
children: [
|
|
@@ -16901,9 +16901,9 @@ ${c}
|
|
|
16901
16901
|
}),
|
|
16902
16902
|
"Python Code"
|
|
16903
16903
|
]
|
|
16904
|
-
}), r[18] = H, r[19] =
|
|
16905
|
-
let
|
|
16906
|
-
r[20] === W ?
|
|
16904
|
+
}), r[18] = H, r[19] = _W);
|
|
16905
|
+
let vW;
|
|
16906
|
+
r[20] === W ? vW = r[21] : (vW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16907
16907
|
value: "sql-code",
|
|
16908
16908
|
className: "text-xs py-1",
|
|
16909
16909
|
children: [
|
|
@@ -16912,21 +16912,21 @@ ${c}
|
|
|
16912
16912
|
}),
|
|
16913
16913
|
"SQL Code"
|
|
16914
16914
|
]
|
|
16915
|
-
}), r[20] = W, r[21] =
|
|
16915
|
+
}), r[20] = W, r[21] = vW);
|
|
16916
16916
|
let bW;
|
|
16917
16917
|
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (bW = (0, import_jsx_runtime.jsx)("div", {
|
|
16918
16918
|
className: "grow"
|
|
16919
16919
|
}), r[22] = bW) : bW = r[22];
|
|
16920
16920
|
let xW;
|
|
16921
|
-
r[23] !==
|
|
16921
|
+
r[23] !== _W || r[24] !== vW ? (xW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
16922
16922
|
className: "h-8",
|
|
16923
16923
|
children: [
|
|
16924
|
+
gW,
|
|
16924
16925
|
_W,
|
|
16925
16926
|
vW,
|
|
16926
|
-
yW,
|
|
16927
16927
|
bW
|
|
16928
16928
|
]
|
|
16929
|
-
}), r[23] =
|
|
16929
|
+
}), r[23] = _W, r[24] = vW, r[25] = xW) : xW = r[25];
|
|
16930
16930
|
let SW;
|
|
16931
16931
|
r[26] === j ? SW = r[27] : (SW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16932
16932
|
size: "small"
|
|
@@ -16941,7 +16941,7 @@ ${c}
|
|
|
16941
16941
|
}), r[28] = xW, r[29] = SW, r[30] = CW) : CW = r[30];
|
|
16942
16942
|
let wW;
|
|
16943
16943
|
r[31] !== p || r[32] !== f ? (wW = (e2) => {
|
|
16944
|
-
dequal(e2, f) || (p(e2),
|
|
16944
|
+
dequal(e2, f) || (p(e2), cW(e2));
|
|
16945
16945
|
}, r[31] = p, r[32] = f, r[33] = wW) : wW = r[33];
|
|
16946
16946
|
let TW;
|
|
16947
16947
|
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== wW ? (TW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
@@ -16952,7 +16952,7 @@ ${c}
|
|
|
16952
16952
|
initialValue: q,
|
|
16953
16953
|
columns: c,
|
|
16954
16954
|
onChange: wW,
|
|
16955
|
-
onInvalidChange:
|
|
16955
|
+
onInvalidChange: cW,
|
|
16956
16956
|
getColumnValues: h,
|
|
16957
16957
|
columnTypesPerStep: B,
|
|
16958
16958
|
lazy: d
|
|
@@ -16981,21 +16981,21 @@ ${c}
|
|
|
16981
16981
|
})
|
|
16982
16982
|
}), r[43] = W, r[44] = DW);
|
|
16983
16983
|
let OW;
|
|
16984
|
-
r[45] !==
|
|
16984
|
+
r[45] !== uW || r[46] !== CW || r[47] !== TW || r[48] !== EW || r[49] !== DW ? (OW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
16985
16985
|
defaultValue: "transform",
|
|
16986
|
-
onValueChange:
|
|
16986
|
+
onValueChange: uW,
|
|
16987
16987
|
children: [
|
|
16988
16988
|
CW,
|
|
16989
16989
|
TW,
|
|
16990
16990
|
EW,
|
|
16991
16991
|
DW
|
|
16992
16992
|
]
|
|
16993
|
-
}), r[45] =
|
|
16993
|
+
}), r[45] = uW, r[46] = CW, r[47] = TW, r[48] = EW, r[49] = DW, r[50] = OW) : OW = r[50];
|
|
16994
16994
|
let kW;
|
|
16995
16995
|
r[51] === O ? kW = r[52] : (kW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
16996
16996
|
error: O
|
|
16997
16997
|
}), r[51] = O, r[52] = kW);
|
|
16998
|
-
let AW = I || "", jW = L ?? 0, MW =
|
|
16998
|
+
let AW = I || "", jW = L ?? 0, MW = G ?? 0, NW = R || Arrays.EMPTY, PW = L && L > 5 || false, FW;
|
|
16999
16999
|
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== AW || r[61] !== jW || r[62] !== MW || r[63] !== NW || r[64] !== PW ? (FW = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
17000
17000
|
label: null,
|
|
17001
17001
|
className: "rounded-b border-x border-b",
|
|
@@ -17218,14 +17218,14 @@ ${c}
|
|
|
17218
17218
|
}, [
|
|
17219
17219
|
B
|
|
17220
17220
|
]);
|
|
17221
|
-
let H = `${g}::${I}`, [
|
|
17222
|
-
|
|
17221
|
+
let H = `${g}::${I}`, [G, q] = (0, import_react.useState)(H);
|
|
17222
|
+
G !== H && (q(H), E(0)), (0, import_react.useLayoutEffect)(() => {
|
|
17223
17223
|
var _a4;
|
|
17224
17224
|
M.current && (M.current = false, (_a4 = O.current[0]) == null ? void 0 : _a4.focus());
|
|
17225
17225
|
}, [
|
|
17226
17226
|
H
|
|
17227
17227
|
]);
|
|
17228
|
-
let cW = (R == null ? void 0 : R.files) ?? [],
|
|
17228
|
+
let cW = (R == null ? void 0 : R.files) ?? [], lW = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", uW = l === "file" || l === "all", dW = cW.filter((e2) => Z && e2.is_directory || uW && !e2.is_directory), fW = dW.length > 0 && dW.every((e2) => lW.has(e2.path));
|
|
17229
17229
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
17230
17230
|
kind: "danger",
|
|
17231
17231
|
children: z.message
|
|
@@ -17268,7 +17268,7 @@ ${c}
|
|
|
17268
17268
|
name: l2,
|
|
17269
17269
|
isDirectory: d2
|
|
17270
17270
|
});
|
|
17271
|
-
|
|
17271
|
+
lW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
17272
17272
|
...e,
|
|
17273
17273
|
f2
|
|
17274
17274
|
] : [
|
|
@@ -17281,7 +17281,7 @@ ${c}
|
|
|
17281
17281
|
function bW() {
|
|
17282
17282
|
let c2 = [];
|
|
17283
17283
|
for (let e2 of cW) {
|
|
17284
|
-
if (!Z && e2.is_directory ||
|
|
17284
|
+
if (!Z && e2.is_directory || lW.has(e2.path)) continue;
|
|
17285
17285
|
let r2 = gW({
|
|
17286
17286
|
path: e2.path,
|
|
17287
17287
|
name: e2.name,
|
|
@@ -17307,7 +17307,7 @@ ${c}
|
|
|
17307
17307
|
...cW.map((e2) => {
|
|
17308
17308
|
let r2 = e2.path;
|
|
17309
17309
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17310
|
-
let c2 = Z && e2.is_directory ||
|
|
17310
|
+
let c2 = Z && e2.is_directory || uW && !e2.is_directory, l2 = lW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => _W({
|
|
17311
17311
|
path: r2,
|
|
17312
17312
|
name: e2.name,
|
|
17313
17313
|
isDirectory: e2.is_directory
|
|
@@ -22881,9 +22881,9 @@ ${c}
|
|
|
22881
22881
|
return typeof S == "function" ? S : noop$2;
|
|
22882
22882
|
}, [
|
|
22883
22883
|
S
|
|
22884
|
-
]),
|
|
22884
|
+
]), q = (0, import_react.useRef)(null), cW = (0, import_react.useRef)(null), lW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), Z = lW[0], uW = lW[1], dW = Z.isFocused, fW = Z.isFileDialogActive, pW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), mW = function() {
|
|
22885
22885
|
!pW.current && fW && setTimeout(function() {
|
|
22886
|
-
|
|
22886
|
+
cW.current && (cW.current.files.length || (uW({
|
|
22887
22887
|
type: "closeDialog"
|
|
22888
22888
|
}), G()));
|
|
22889
22889
|
}, 300);
|
|
@@ -22893,20 +22893,20 @@ ${c}
|
|
|
22893
22893
|
window.removeEventListener("focus", mW, false);
|
|
22894
22894
|
};
|
|
22895
22895
|
}, [
|
|
22896
|
-
|
|
22896
|
+
cW,
|
|
22897
22897
|
fW,
|
|
22898
22898
|
G,
|
|
22899
22899
|
pW
|
|
22900
22900
|
]);
|
|
22901
22901
|
var hW = (0, import_react.useRef)([]), gW = (0, import_react.useRef)([]), _W = function(e2) {
|
|
22902
|
-
|
|
22902
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), hW.current = []);
|
|
22903
22903
|
};
|
|
22904
22904
|
(0, import_react.useEffect)(function() {
|
|
22905
22905
|
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", _W, false)), function() {
|
|
22906
22906
|
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", _W));
|
|
22907
22907
|
};
|
|
22908
22908
|
}, [
|
|
22909
|
-
|
|
22909
|
+
q,
|
|
22910
22910
|
O
|
|
22911
22911
|
]), (0, import_react.useEffect)(function() {
|
|
22912
22912
|
var e2 = function(e3) {
|
|
@@ -22938,12 +22938,12 @@ ${c}
|
|
|
22938
22938
|
document.removeEventListener("dragenter", e2), document.removeEventListener("dragleave", r2), document.removeEventListener("dragend", c2), document.removeEventListener("drop", l2);
|
|
22939
22939
|
};
|
|
22940
22940
|
}, [
|
|
22941
|
-
|
|
22941
|
+
q
|
|
22942
22942
|
]), (0, import_react.useEffect)(function() {
|
|
22943
|
-
return !l && E &&
|
|
22943
|
+
return !l && E && q.current && q.current.focus(), function() {
|
|
22944
22944
|
};
|
|
22945
22945
|
}, [
|
|
22946
|
-
|
|
22946
|
+
q,
|
|
22947
22947
|
E,
|
|
22948
22948
|
l
|
|
22949
22949
|
]);
|
|
@@ -23000,7 +23000,7 @@ ${c}
|
|
|
23000
23000
|
]), xW = (0, import_react.useCallback)(function(e2) {
|
|
23001
23001
|
e2.preventDefault(), e2.persist(), MW(e2);
|
|
23002
23002
|
var r2 = hW.current.filter(function(e3) {
|
|
23003
|
-
return
|
|
23003
|
+
return q.current && q.current.contains(e3);
|
|
23004
23004
|
}), c2 = r2.indexOf(e2.target);
|
|
23005
23005
|
c2 !== -1 && r2.splice(c2, 1), hW.current = r2, !(r2.length > 0) && (uW({
|
|
23006
23006
|
type: "setDraggedFiles",
|
|
@@ -23009,7 +23009,7 @@ ${c}
|
|
|
23009
23009
|
isDragReject: false
|
|
23010
23010
|
}), isEvtWithFiles(e2) && g && g(e2));
|
|
23011
23011
|
}, [
|
|
23012
|
-
|
|
23012
|
+
q,
|
|
23013
23013
|
g,
|
|
23014
23014
|
L
|
|
23015
23015
|
]), SW = (0, import_react.useCallback)(function(e2, r2) {
|
|
@@ -23084,13 +23084,13 @@ ${c}
|
|
|
23084
23084
|
}).catch(function(e3) {
|
|
23085
23085
|
isAbort(e3) ? (G(e3), uW({
|
|
23086
23086
|
type: "closeDialog"
|
|
23087
|
-
})) : isSecurityError(e3) ? (pW.current = false,
|
|
23087
|
+
})) : isSecurityError(e3) ? (pW.current = false, cW.current ? (cW.current.value = null, cW.current.click()) : vW(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."))) : vW(e3);
|
|
23088
23088
|
});
|
|
23089
23089
|
return;
|
|
23090
23090
|
}
|
|
23091
|
-
|
|
23091
|
+
cW.current && (uW({
|
|
23092
23092
|
type: "openDialog"
|
|
23093
|
-
}), W(),
|
|
23093
|
+
}), W(), cW.current.value = null, cW.current.click());
|
|
23094
23094
|
}, [
|
|
23095
23095
|
uW,
|
|
23096
23096
|
W,
|
|
@@ -23101,9 +23101,9 @@ ${c}
|
|
|
23101
23101
|
H,
|
|
23102
23102
|
p
|
|
23103
23103
|
]), TW = (0, import_react.useCallback)(function(e2) {
|
|
23104
|
-
!
|
|
23104
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), wW());
|
|
23105
23105
|
}, [
|
|
23106
|
-
|
|
23106
|
+
q,
|
|
23107
23107
|
wW
|
|
23108
23108
|
]), EW = (0, import_react.useCallback)(function() {
|
|
23109
23109
|
uW({
|
|
@@ -23139,12 +23139,12 @@ ${c}
|
|
|
23139
23139
|
onDragLeave: jW(composeEventHandlers(_2, xW)),
|
|
23140
23140
|
onDrop: jW(composeEventHandlers(v2, CW)),
|
|
23141
23141
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23142
|
-
}, c2,
|
|
23142
|
+
}, c2, q), !l && !M ? {
|
|
23143
23143
|
tabIndex: 0
|
|
23144
23144
|
} : {}), y2);
|
|
23145
23145
|
};
|
|
23146
23146
|
}, [
|
|
23147
|
-
|
|
23147
|
+
q,
|
|
23148
23148
|
TW,
|
|
23149
23149
|
EW,
|
|
23150
23150
|
DW,
|
|
@@ -23180,21 +23180,21 @@ ${c}
|
|
|
23180
23180
|
onChange: kW(composeEventHandlers(l2, CW)),
|
|
23181
23181
|
onClick: kW(composeEventHandlers(u2, PW)),
|
|
23182
23182
|
tabIndex: -1
|
|
23183
|
-
}, c2,
|
|
23183
|
+
}, c2, cW)), d2);
|
|
23184
23184
|
};
|
|
23185
23185
|
}, [
|
|
23186
|
-
|
|
23186
|
+
cW,
|
|
23187
23187
|
c,
|
|
23188
23188
|
p,
|
|
23189
23189
|
CW,
|
|
23190
23190
|
l
|
|
23191
23191
|
]);
|
|
23192
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
23192
|
+
return _objectSpread$7(_objectSpread$7({}, Z), {}, {
|
|
23193
23193
|
isFocused: dW && !l,
|
|
23194
23194
|
getRootProps: NW,
|
|
23195
23195
|
getInputProps: FW,
|
|
23196
|
-
rootRef:
|
|
23197
|
-
inputRef:
|
|
23196
|
+
rootRef: q,
|
|
23197
|
+
inputRef: cW,
|
|
23198
23198
|
open: kW(wW)
|
|
23199
23199
|
});
|
|
23200
23200
|
}
|
|
@@ -23427,13 +23427,13 @@ ${c}
|
|
|
23427
23427
|
html: I
|
|
23428
23428
|
})
|
|
23429
23429
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
23430
|
-
let
|
|
23431
|
-
r[48] !==
|
|
23432
|
-
let
|
|
23433
|
-
r[51] ===
|
|
23430
|
+
let q = w && "text-primary", cW = T && "text-destructive", lW;
|
|
23431
|
+
r[48] !== q || r[49] !== cW ? (lW = cn(q, cW), r[48] = q, r[49] = cW, r[50] = lW) : lW = r[50];
|
|
23432
|
+
let Z;
|
|
23433
|
+
r[51] === lW ? Z = r[52] : (Z = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23434
23434
|
strokeWidth: 1.4,
|
|
23435
|
-
className:
|
|
23436
|
-
}), r[51] =
|
|
23435
|
+
className: lW
|
|
23436
|
+
}), r[51] = lW, r[52] = Z);
|
|
23437
23437
|
let uW = w && "text-primary", dW = T && "text-destructive", fW;
|
|
23438
23438
|
r[53] !== uW || r[54] !== dW ? (fW = cn(uW, dW), r[53] = uW, r[54] = dW, r[55] = fW) : fW = r[55];
|
|
23439
23439
|
let pW;
|
|
@@ -23442,13 +23442,13 @@ ${c}
|
|
|
23442
23442
|
className: fW
|
|
23443
23443
|
}), r[56] = fW, r[57] = pW);
|
|
23444
23444
|
let mW;
|
|
23445
|
-
r[58] !==
|
|
23445
|
+
r[58] !== Z || r[59] !== pW ? (mW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23446
23446
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
23447
23447
|
children: [
|
|
23448
|
-
|
|
23448
|
+
Z,
|
|
23449
23449
|
pW
|
|
23450
23450
|
]
|
|
23451
|
-
}), r[58] =
|
|
23451
|
+
}), r[58] = Z, r[59] = pW, r[60] = mW) : mW = r[60];
|
|
23452
23452
|
let hW;
|
|
23453
23453
|
r[61] !== G || r[62] !== mW ? (hW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23454
23454
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
@@ -23504,8 +23504,8 @@ ${c}
|
|
|
23504
23504
|
})
|
|
23505
23505
|
]
|
|
23506
23506
|
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = _W) : _W = r[74];
|
|
23507
|
-
let
|
|
23508
|
-
return r[75] !== gW || r[76] !== _W ? (
|
|
23507
|
+
let yW;
|
|
23508
|
+
return r[75] !== gW || r[76] !== _W ? (yW = (0, import_jsx_runtime.jsx)("section", {
|
|
23509
23509
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
23510
23510
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
23511
23511
|
children: [
|
|
@@ -23513,7 +23513,7 @@ ${c}
|
|
|
23513
23513
|
_W
|
|
23514
23514
|
]
|
|
23515
23515
|
})
|
|
23516
|
-
}), r[75] = gW, r[76] = _W, r[77] =
|
|
23516
|
+
}), r[75] = gW, r[76] = _W, r[77] = yW) : yW = r[77], yW;
|
|
23517
23517
|
};
|
|
23518
23518
|
function _temp$11(e) {
|
|
23519
23519
|
Logger.error(e), toast({
|
|
@@ -23605,27 +23605,27 @@ ${c}
|
|
|
23605
23605
|
"bg-(--gray-1) shadow-md border border-input": m,
|
|
23606
23606
|
"bg-(--amber-1) border-(--amber-7)": W
|
|
23607
23607
|
}), r[7] = m, r[8] = W, r[9] = G) : G = r[9];
|
|
23608
|
-
let cW;
|
|
23609
|
-
r[10] !== u || r[11] !== d ? (cW = (e2) => {
|
|
23610
|
-
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23611
|
-
}, r[10] = u, r[11] = d, r[12] = cW) : cW = r[12];
|
|
23612
23608
|
let q;
|
|
23613
|
-
r[
|
|
23609
|
+
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
23610
|
+
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23611
|
+
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
23612
|
+
let cW;
|
|
23613
|
+
r[13] === f ? cW = r[14] : (cW = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23614
23614
|
className: "text-center",
|
|
23615
23615
|
children: renderHTML({
|
|
23616
23616
|
html: f
|
|
23617
23617
|
})
|
|
23618
|
-
}), r[13] = f, r[14] =
|
|
23619
|
-
let
|
|
23620
|
-
r[15] === L ?
|
|
23618
|
+
}), r[13] = f, r[14] = cW);
|
|
23619
|
+
let lW;
|
|
23620
|
+
r[15] === L ? lW = r[16] : (lW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
23621
23621
|
kind: "danger",
|
|
23622
23622
|
className: "rounded",
|
|
23623
23623
|
children: L ?? "Invalid input"
|
|
23624
|
-
}), r[15] = L, r[16] =
|
|
23625
|
-
let
|
|
23626
|
-
r[17] === c ?
|
|
23624
|
+
}), r[15] = L, r[16] = lW);
|
|
23625
|
+
let Z;
|
|
23626
|
+
r[17] === c ? Z = r[18] : (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
23627
23627
|
children: c
|
|
23628
|
-
}), r[17] = c, r[18] =
|
|
23628
|
+
}), r[17] = c, r[18] = Z);
|
|
23629
23629
|
let uW;
|
|
23630
23630
|
r[19] !== S || r[20] !== T || r[21] !== b ? (uW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
23631
23631
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
@@ -23661,16 +23661,16 @@ ${c}
|
|
|
23661
23661
|
]
|
|
23662
23662
|
}), r[33] = mW, r[34] = uW, r[35] = hW) : hW = r[35];
|
|
23663
23663
|
let gW;
|
|
23664
|
-
r[36] !== hW || r[37] !== G || r[38] !==
|
|
23664
|
+
r[36] !== hW || r[37] !== G || r[38] !== q || r[39] !== cW || r[40] !== lW || r[41] !== Z ? (gW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23665
23665
|
className: G,
|
|
23666
|
-
onKeyDown:
|
|
23666
|
+
onKeyDown: q,
|
|
23667
23667
|
children: [
|
|
23668
|
-
|
|
23669
|
-
Z,
|
|
23668
|
+
cW,
|
|
23670
23669
|
lW,
|
|
23670
|
+
Z,
|
|
23671
23671
|
hW
|
|
23672
23672
|
]
|
|
23673
|
-
}), r[36] = hW, r[37] = G, r[38] =
|
|
23673
|
+
}), r[36] = hW, r[37] = G, r[38] = q, r[39] = cW, r[40] = lW, r[41] = Z, r[42] = gW) : gW = r[42];
|
|
23674
23674
|
let _W;
|
|
23675
23675
|
return r[43] !== gW || r[44] !== H ? (_W = (0, import_jsx_runtime.jsx)("form", {
|
|
23676
23676
|
className: "contents",
|
|
@@ -25450,8 +25450,8 @@ ${c}
|
|
|
25450
25450
|
points: extractSunburstPoints(e2.points)
|
|
25451
25451
|
}));
|
|
25452
25452
|
}, r[29] = u, r[30] = G);
|
|
25453
|
-
let
|
|
25454
|
-
r[31] === u ?
|
|
25453
|
+
let q = useEvent_default(G), cW;
|
|
25454
|
+
r[31] === u ? cW = r[32] : (cW = (e2) => {
|
|
25455
25455
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25456
25456
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25457
25457
|
u((e3) => ({
|
|
@@ -25462,9 +25462,9 @@ ${c}
|
|
|
25462
25462
|
points: r2,
|
|
25463
25463
|
indices: c2
|
|
25464
25464
|
}));
|
|
25465
|
-
}, r[31] = u, r[32] =
|
|
25466
|
-
let
|
|
25467
|
-
r[33] === u ?
|
|
25465
|
+
}, r[31] = u, r[32] = cW);
|
|
25466
|
+
let lW = useEvent_default(cW), Z;
|
|
25467
|
+
r[33] === u ? Z = r[34] : (Z = (e2) => {
|
|
25468
25468
|
e2 && u((r2) => ({
|
|
25469
25469
|
...r2,
|
|
25470
25470
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -25473,23 +25473,23 @@ ${c}
|
|
|
25473
25473
|
range: e2.range,
|
|
25474
25474
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
25475
25475
|
}));
|
|
25476
|
-
}, r[33] = u, r[34] =
|
|
25477
|
-
let uW = useEvent_default(
|
|
25478
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !==
|
|
25476
|
+
}, r[33] = u, r[34] = Z);
|
|
25477
|
+
let uW = useEvent_default(Z), dW = m.frames ?? void 0, fW = useEvent_default(_temp3$3), pW;
|
|
25478
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== lW || r[42] !== uW || r[43] !== dW || r[44] !== fW || r[45] !== R ? (pW = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25479
25479
|
...m,
|
|
25480
25480
|
layout: h,
|
|
25481
25481
|
onRelayout: R,
|
|
25482
25482
|
onDeselect: B,
|
|
25483
25483
|
onTreemapClick: W,
|
|
25484
|
-
onSunburstClick:
|
|
25484
|
+
onSunburstClick: q,
|
|
25485
25485
|
config: L,
|
|
25486
|
-
onClick:
|
|
25486
|
+
onClick: lW,
|
|
25487
25487
|
onSelected: uW,
|
|
25488
25488
|
className: "w-full",
|
|
25489
25489
|
useResizeHandler: true,
|
|
25490
25490
|
frames: dW,
|
|
25491
25491
|
onError: fW
|
|
25492
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] =
|
|
25492
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = lW, r[42] = uW, r[43] = dW, r[44] = fW, r[45] = R, r[46] = pW) : pW = r[46], pW;
|
|
25493
25493
|
});
|
|
25494
25494
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25495
25495
|
function _temp$8(e) {
|
|
@@ -25619,23 +25619,23 @@ ${c}
|
|
|
25619
25619
|
c[15] === l ? W = c[16] : (W = cn("relative flex touch-none select-none hover:cursor-pointer", "data-[orientation=horizontal]:w-full data-[orientation=horizontal]:items-center", "data-[orientation=vertical]:h-full data-[orientation=vertical]:justify-center", "data-disabled:cursor-not-allowed", l), c[15] = l, c[16] = W);
|
|
25620
25620
|
let G;
|
|
25621
25621
|
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];
|
|
25622
|
-
let cW;
|
|
25623
|
-
c[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (cW = 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] = cW) : cW = c[18];
|
|
25624
25622
|
let q;
|
|
25625
|
-
c[
|
|
25623
|
+
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];
|
|
25624
|
+
let cW;
|
|
25625
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (cW = (0, import_jsx_runtime.jsx)(Track, {
|
|
25626
25626
|
ref: E,
|
|
25627
25627
|
"data-testid": "track",
|
|
25628
25628
|
className: G,
|
|
25629
25629
|
children: (0, import_jsx_runtime.jsx)(Range, {
|
|
25630
25630
|
"data-testid": "range",
|
|
25631
|
-
className:
|
|
25631
|
+
className: q,
|
|
25632
25632
|
onPointerDown: L,
|
|
25633
25633
|
onPointerMove: z,
|
|
25634
25634
|
onPointerUp: H
|
|
25635
25635
|
})
|
|
25636
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25637
|
-
let
|
|
25638
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
25636
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = cW) : cW = c[22];
|
|
25637
|
+
let lW;
|
|
25638
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (lW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25639
25639
|
asChild: true,
|
|
25640
25640
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25641
25641
|
"data-testid": "thumb",
|
|
@@ -25645,28 +25645,28 @@ ${c}
|
|
|
25645
25645
|
onMouseEnter: m.setTrue,
|
|
25646
25646
|
onMouseLeave: m.setFalse
|
|
25647
25647
|
})
|
|
25648
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
25649
|
-
let
|
|
25650
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
25648
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = lW) : lW = c[25];
|
|
25649
|
+
let Z;
|
|
25650
|
+
c[26] !== h || c[27] !== u.value || c[28] !== d ? (Z = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25651
25651
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
25652
25652
|
locale: h
|
|
25653
25653
|
})
|
|
25654
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
25654
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = Z) : Z = c[29];
|
|
25655
25655
|
let uW;
|
|
25656
|
-
c[30] ===
|
|
25657
|
-
children:
|
|
25658
|
-
}), c[30] =
|
|
25656
|
+
c[30] === Z ? uW = c[31] : (uW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25657
|
+
children: Z
|
|
25658
|
+
}), c[30] = Z, c[31] = uW);
|
|
25659
25659
|
let dW;
|
|
25660
|
-
c[32] !== f || c[33] !==
|
|
25660
|
+
c[32] !== f || c[33] !== lW || c[34] !== uW ? (dW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25661
25661
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25662
25662
|
delayDuration: 0,
|
|
25663
25663
|
open: f,
|
|
25664
25664
|
children: [
|
|
25665
|
-
|
|
25665
|
+
lW,
|
|
25666
25666
|
uW
|
|
25667
25667
|
]
|
|
25668
25668
|
})
|
|
25669
|
-
}), c[32] = f, c[33] =
|
|
25669
|
+
}), c[32] = f, c[33] = lW, c[34] = uW, c[35] = dW) : dW = c[35];
|
|
25670
25670
|
let fW;
|
|
25671
25671
|
c[36] !== m.setFalse || c[37] !== m.setTrue ? (fW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25672
25672
|
asChild: true,
|
|
@@ -25701,16 +25701,16 @@ ${c}
|
|
|
25701
25701
|
})
|
|
25702
25702
|
}), c[45] = f, c[46] = fW, c[47] = mW, c[48] = hW) : hW = c[48];
|
|
25703
25703
|
let gW;
|
|
25704
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25704
|
+
return c[49] !== M || c[50] !== u || c[51] !== cW || c[52] !== dW || c[53] !== hW || c[54] !== W ? (gW = (0, import_jsx_runtime.jsxs)(Root, {
|
|
25705
25705
|
ref: M,
|
|
25706
25706
|
className: W,
|
|
25707
25707
|
...u,
|
|
25708
25708
|
children: [
|
|
25709
|
-
|
|
25709
|
+
cW,
|
|
25710
25710
|
dW,
|
|
25711
25711
|
hW
|
|
25712
25712
|
]
|
|
25713
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25713
|
+
}), c[49] = M, c[50] = u, c[51] = cW, c[52] = dW, c[53] = hW, c[54] = W, c[55] = gW) : gW = c[55], gW;
|
|
25714
25714
|
});
|
|
25715
25715
|
RangeSlider.displayName = Root.displayName;
|
|
25716
25716
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25755,20 +25755,20 @@ ${c}
|
|
|
25755
25755
|
r[5] !== R || r[6] !== z ? (B = cn("flex items-center gap-2", R, z), r[5] = R, r[6] = z, r[7] = B) : B = r[7];
|
|
25756
25756
|
let H = !v && "data-[orientation=horizontal]:w-36 ", W;
|
|
25757
25757
|
r[8] === H ? W = r[9] : (W = cn("relative flex items-center select-none", H, "data-[orientation=vertical]:h-36"), r[8] = H, r[9] = W);
|
|
25758
|
-
let G,
|
|
25758
|
+
let G, q;
|
|
25759
25759
|
r[10] !== h || r[11] !== l ? (G = (e2) => {
|
|
25760
25760
|
E(e2), h || l(e2);
|
|
25761
|
-
},
|
|
25761
|
+
}, q = (e2) => {
|
|
25762
25762
|
h && l(e2);
|
|
25763
|
-
}, r[10] = h, r[11] = l, r[12] = G, r[13] =
|
|
25764
|
-
let
|
|
25765
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
25763
|
+
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
25764
|
+
let cW, lW;
|
|
25765
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (cW = () => {
|
|
25766
25766
|
h && !dequal(T, u) && l(T);
|
|
25767
|
-
},
|
|
25767
|
+
}, lW = () => {
|
|
25768
25768
|
h && !dequal(T, u) && l(T);
|
|
25769
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
25770
|
-
let
|
|
25771
|
-
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] !==
|
|
25769
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = cW, r[19] = lW) : (cW = r[18], lW = r[19]);
|
|
25770
|
+
let Z;
|
|
25771
|
+
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] !== cW || r[31] !== lW || r[32] !== b ? (Z = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25772
25772
|
id: S,
|
|
25773
25773
|
className: W,
|
|
25774
25774
|
value: T,
|
|
@@ -25778,11 +25778,11 @@ ${c}
|
|
|
25778
25778
|
orientation: g,
|
|
25779
25779
|
disabled: y,
|
|
25780
25780
|
onValueChange: G,
|
|
25781
|
-
onValueCommit:
|
|
25782
|
-
onPointerUp:
|
|
25783
|
-
onMouseUp:
|
|
25781
|
+
onValueCommit: q,
|
|
25782
|
+
onPointerUp: cW,
|
|
25783
|
+
onMouseUp: lW,
|
|
25784
25784
|
valueMap: b
|
|
25785
|
-
}), 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] =
|
|
25785
|
+
}), 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] = cW, r[31] = lW, r[32] = b, r[33] = Z) : Z = r[33];
|
|
25786
25786
|
let uW;
|
|
25787
25787
|
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (uW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25788
25788
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
@@ -25793,13 +25793,13 @@ ${c}
|
|
|
25793
25793
|
})}`
|
|
25794
25794
|
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = uW) : uW = r[38];
|
|
25795
25795
|
let dW;
|
|
25796
|
-
r[39] !==
|
|
25796
|
+
r[39] !== Z || r[40] !== uW || r[41] !== B ? (dW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25797
25797
|
className: B,
|
|
25798
25798
|
children: [
|
|
25799
|
-
|
|
25799
|
+
Z,
|
|
25800
25800
|
uW
|
|
25801
25801
|
]
|
|
25802
|
-
}), r[39] =
|
|
25802
|
+
}), r[39] = Z, r[40] = uW, r[41] = B, r[42] = dW) : dW = r[42];
|
|
25803
25803
|
let fW;
|
|
25804
25804
|
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== dW || r[47] !== M || r[48] !== L ? (fW = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25805
25805
|
label: c,
|
|
@@ -29091,7 +29091,7 @@ ${c}
|
|
|
29091
29091
|
}
|
|
29092
29092
|
}), u2;
|
|
29093
29093
|
}
|
|
29094
|
-
var G = c(W),
|
|
29094
|
+
var G = c(W), q = Object.freeze({
|
|
29095
29095
|
areArraysEqual: E,
|
|
29096
29096
|
areDatesEqual: j,
|
|
29097
29097
|
areMapsEqual: M,
|
|
@@ -29099,7 +29099,7 @@ ${c}
|
|
|
29099
29099
|
areRegExpsEqual: H,
|
|
29100
29100
|
areSetsEqual: W,
|
|
29101
29101
|
createIsNestedEqual: r2
|
|
29102
|
-
}),
|
|
29102
|
+
}), cW = Object.freeze({
|
|
29103
29103
|
areArraysEqual: O,
|
|
29104
29104
|
areDatesEqual: j,
|
|
29105
29105
|
areMapsEqual: I,
|
|
@@ -29107,11 +29107,11 @@ ${c}
|
|
|
29107
29107
|
areRegExpsEqual: H,
|
|
29108
29108
|
areSetsEqual: G,
|
|
29109
29109
|
createIsNestedEqual: r2
|
|
29110
|
-
}),
|
|
29111
|
-
function
|
|
29112
|
-
return
|
|
29110
|
+
}), lW = T(q);
|
|
29111
|
+
function Z(e3, r3) {
|
|
29112
|
+
return lW(e3, r3, void 0);
|
|
29113
29113
|
}
|
|
29114
|
-
var uW = T(l(
|
|
29114
|
+
var uW = T(l(q, {
|
|
29115
29115
|
createIsNestedEqual: function() {
|
|
29116
29116
|
return f;
|
|
29117
29117
|
}
|
|
@@ -29119,11 +29119,11 @@ ${c}
|
|
|
29119
29119
|
function dW(e3, r3) {
|
|
29120
29120
|
return uW(e3, r3, void 0);
|
|
29121
29121
|
}
|
|
29122
|
-
var fW = T(
|
|
29122
|
+
var fW = T(cW);
|
|
29123
29123
|
function pW(e3, r3) {
|
|
29124
29124
|
return fW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29125
29125
|
}
|
|
29126
|
-
var mW = T(l(
|
|
29126
|
+
var mW = T(l(cW, {
|
|
29127
29127
|
createIsNestedEqual: function() {
|
|
29128
29128
|
return f;
|
|
29129
29129
|
}
|
|
@@ -29132,15 +29132,15 @@ ${c}
|
|
|
29132
29132
|
return mW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29133
29133
|
}
|
|
29134
29134
|
function gW(e3) {
|
|
29135
|
-
return T(l(
|
|
29135
|
+
return T(l(q, e3(q)));
|
|
29136
29136
|
}
|
|
29137
29137
|
function _W(e3) {
|
|
29138
|
-
var r3 = T(l(
|
|
29138
|
+
var r3 = T(l(cW, e3(cW)));
|
|
29139
29139
|
return (function(e4, c2, l2) {
|
|
29140
29140
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29141
29141
|
});
|
|
29142
29142
|
}
|
|
29143
|
-
e2.circularDeepEqual = pW, e2.circularShallowEqual = hW, e2.createCustomCircularEqual = _W, e2.createCustomEqual = gW, e2.deepEqual =
|
|
29143
|
+
e2.circularDeepEqual = pW, e2.circularShallowEqual = hW, e2.createCustomCircularEqual = _W, e2.createCustomEqual = gW, e2.deepEqual = Z, e2.sameValueZeroEqual = f, e2.shallowEqual = dW, Object.defineProperty(e2, "__esModule", {
|
|
29144
29144
|
value: true
|
|
29145
29145
|
});
|
|
29146
29146
|
}));
|
|
@@ -29363,37 +29363,37 @@ ${c}
|
|
|
29363
29363
|
function G(e2) {
|
|
29364
29364
|
return e2 * 100 + "%";
|
|
29365
29365
|
}
|
|
29366
|
-
var
|
|
29366
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, cW = (e2, r2, c2) => e2 < 0 ? r2 : c2, lW = (e2) => Math.max(0, e2), Z = (e2) => Math.max(0, e2), uW = (e2, r2, c2) => {
|
|
29367
29367
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29368
29368
|
return {
|
|
29369
29369
|
left: l2,
|
|
29370
29370
|
width: d2,
|
|
29371
|
-
height:
|
|
29372
|
-
top:
|
|
29371
|
+
height: cW(f2, e2.height, u2),
|
|
29372
|
+
top: Z(f2)
|
|
29373
29373
|
};
|
|
29374
29374
|
}, dW = (e2, r2, c2) => {
|
|
29375
29375
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29376
29376
|
return {
|
|
29377
29377
|
top: l2,
|
|
29378
29378
|
height: d2,
|
|
29379
|
-
width:
|
|
29380
|
-
left:
|
|
29379
|
+
width: q(e2.left, e2.width, f2, c2),
|
|
29380
|
+
left: lW(u2)
|
|
29381
29381
|
};
|
|
29382
29382
|
}, fW = (e2, r2, c2) => {
|
|
29383
29383
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29384
29384
|
return {
|
|
29385
29385
|
height: u2,
|
|
29386
|
-
width: f2 < 0 ? e2.width :
|
|
29387
|
-
top:
|
|
29388
|
-
left:
|
|
29386
|
+
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
29387
|
+
top: Z(l2),
|
|
29388
|
+
left: lW(f2)
|
|
29389
29389
|
};
|
|
29390
29390
|
}, pW = (e2, r2, c2) => {
|
|
29391
29391
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29392
29392
|
return {
|
|
29393
29393
|
width: f2,
|
|
29394
29394
|
left: u2,
|
|
29395
|
-
height:
|
|
29396
|
-
top:
|
|
29395
|
+
height: cW(l2, e2.height, d2),
|
|
29396
|
+
top: Z(l2)
|
|
29397
29397
|
};
|
|
29398
29398
|
}, mW = {
|
|
29399
29399
|
n: uW,
|
|
@@ -32296,7 +32296,7 @@ ${c}
|
|
|
32296
32296
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32297
32297
|
let E = useIsDragging(), O, j;
|
|
32298
32298
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
32299
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, cW,
|
|
32299
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, cW, lW, Z, uW, dW, fW, pW, mW, hW, gW, _W, vW, yW, bW, xW, SW, CW;
|
|
32300
32300
|
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) {
|
|
32301
32301
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
32302
32302
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32322,16 +32322,16 @@ ${c}
|
|
|
32322
32322
|
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 ? [
|
|
32323
32323
|
20,
|
|
32324
32324
|
20
|
|
32325
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null,
|
|
32325
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, cW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (lW = (e3) => {
|
|
32326
32326
|
f || l({
|
|
32327
32327
|
...c,
|
|
32328
32328
|
cells: e3
|
|
32329
32329
|
});
|
|
32330
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
32330
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = lW) : lW = r[69], r[70] === g ? Z = r[71] : (Z = g ? {
|
|
32331
32331
|
i: g.i,
|
|
32332
32332
|
w: g.w || 2,
|
|
32333
32333
|
h: g.h || 2
|
|
32334
|
-
} : void 0, r[70] = g, r[71] =
|
|
32334
|
+
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (uW = (e3, r2, u2) => {
|
|
32335
32335
|
O.onDragStop(), r2 && l({
|
|
32336
32336
|
...c,
|
|
32337
32337
|
cells: [
|
|
@@ -32376,10 +32376,10 @@ ${c}
|
|
|
32376
32376
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32377
32377
|
children: m3
|
|
32378
32378
|
}, r2.id);
|
|
32379
|
-
}), 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] =
|
|
32380
|
-
} 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],
|
|
32379
|
+
}), 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] = cW, r[31] = lW, r[32] = Z, r[33] = uW, r[34] = dW, r[35] = fW, r[36] = pW, r[37] = mW, r[38] = hW, r[39] = gW, r[40] = _W, r[41] = vW, r[42] = yW, r[43] = bW, r[44] = xW, r[45] = SW, r[46] = CW;
|
|
32380
|
+
} 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], cW = r[30], lW = r[31], Z = r[32], uW = r[33], dW = r[34], fW = r[35], pW = r[36], mW = r[37], hW = r[38], gW = r[39], _W = r[40], vW = r[41], yW = r[42], bW = r[43], xW = r[44], SW = r[45], CW = r[46];
|
|
32381
32381
|
let wW;
|
|
32382
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !==
|
|
32382
|
+
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] !== cW || r[91] !== lW || r[92] !== Z || r[93] !== uW || r[94] !== dW || r[95] !== fW || r[96] !== pW || r[97] !== mW || r[98] !== hW || r[99] !== gW || r[100] !== _W || r[101] !== vW || r[102] !== yW || r[103] !== bW || r[104] !== xW || r[105] !== SW || r[106] !== CW ? (wW = (0, import_jsx_runtime.jsx)(I, {
|
|
32383
32383
|
breakpoint: bW,
|
|
32384
32384
|
layouts: xW,
|
|
32385
32385
|
style: SW,
|
|
@@ -32390,10 +32390,10 @@ ${c}
|
|
|
32390
32390
|
margin: H,
|
|
32391
32391
|
isBounded: W,
|
|
32392
32392
|
compactType: G,
|
|
32393
|
-
preventCollision:
|
|
32394
|
-
rowHeight:
|
|
32395
|
-
onLayoutChange:
|
|
32396
|
-
droppingItem:
|
|
32393
|
+
preventCollision: q,
|
|
32394
|
+
rowHeight: cW,
|
|
32395
|
+
onLayoutChange: lW,
|
|
32396
|
+
droppingItem: Z,
|
|
32397
32397
|
onDrop: uW,
|
|
32398
32398
|
onDragStart: dW,
|
|
32399
32399
|
onDrag: fW,
|
|
@@ -32404,7 +32404,7 @@ ${c}
|
|
|
32404
32404
|
isResizable: _W,
|
|
32405
32405
|
draggableHandle: vW,
|
|
32406
32406
|
children: yW
|
|
32407
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] =
|
|
32407
|
+
}), 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] = cW, r[91] = lW, r[92] = Z, r[93] = uW, r[94] = dW, r[95] = fW, r[96] = pW, r[97] = mW, r[98] = hW, r[99] = gW, r[100] = _W, r[101] = vW, r[102] = yW, r[103] = bW, r[104] = xW, r[105] = SW, r[106] = CW, r[107] = wW) : wW = r[107];
|
|
32408
32408
|
let TW = wW, EW, DW, OW, kW, AW, jW, MW;
|
|
32409
32409
|
if (r[108] !== u || r[109] !== TW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
32410
32410
|
MW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
@@ -32814,34 +32814,34 @@ ${c}
|
|
|
32814
32814
|
]
|
|
32815
32815
|
})
|
|
32816
32816
|
}), r[28] = B, r[29] = W, r[30] = G) : G = r[30];
|
|
32817
|
-
let
|
|
32818
|
-
r[31] !== L || r[32] !== R || r[33] !== G ? (
|
|
32817
|
+
let q;
|
|
32818
|
+
r[31] !== L || r[32] !== R || r[33] !== G ? (q = (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
32819
32819
|
open: L,
|
|
32820
32820
|
onOpenChange: R,
|
|
32821
32821
|
children: [
|
|
32822
32822
|
z,
|
|
32823
32823
|
G
|
|
32824
32824
|
]
|
|
32825
|
-
}), r[31] = L, r[32] = R, r[33] = G, r[34] =
|
|
32826
|
-
let
|
|
32827
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32825
|
+
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
32826
|
+
let cW;
|
|
32827
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (cW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32828
32828
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32829
|
-
}), r[35] =
|
|
32830
|
-
let
|
|
32831
|
-
r[36] === l ?
|
|
32829
|
+
}), r[35] = cW) : cW = r[35];
|
|
32830
|
+
let lW;
|
|
32831
|
+
r[36] === l ? lW = r[37] : (lW = (0, import_jsx_runtime.jsx)(X, {
|
|
32832
32832
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
32833
32833
|
onClick: () => l()
|
|
32834
|
-
}), r[36] = l, r[37] =
|
|
32835
|
-
let
|
|
32836
|
-
return r[38] !== I || r[39] !==
|
|
32834
|
+
}), r[36] = l, r[37] = lW);
|
|
32835
|
+
let Z;
|
|
32836
|
+
return r[38] !== I || r[39] !== q || r[40] !== lW || r[41] !== w ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
32837
32837
|
className: w,
|
|
32838
32838
|
children: [
|
|
32839
32839
|
I,
|
|
32840
|
-
cW,
|
|
32841
32840
|
q,
|
|
32842
|
-
|
|
32841
|
+
cW,
|
|
32842
|
+
lW
|
|
32843
32843
|
]
|
|
32844
|
-
}), r[38] = I, r[39] =
|
|
32844
|
+
}), r[38] = I, r[39] = q, r[40] = lW, r[41] = w, r[42] = Z) : Z = r[42], Z;
|
|
32845
32845
|
};
|
|
32846
32846
|
function isSidebarCell(e) {
|
|
32847
32847
|
var _a3;
|
|
@@ -34845,31 +34845,31 @@ ${c}
|
|
|
34845
34845
|
}, [
|
|
34846
34846
|
T,
|
|
34847
34847
|
M
|
|
34848
|
-
]), 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)),
|
|
34848
|
+
]), 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), cW = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34849
34849
|
j
|
|
34850
|
-
]),
|
|
34850
|
+
]), lW = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers: uW, measuringScheduled: dW } = useDroppableMeasuring(cW, {
|
|
34851
34851
|
dragging: w,
|
|
34852
34852
|
dependencies: [
|
|
34853
34853
|
O.x,
|
|
34854
34854
|
O.y
|
|
34855
34855
|
],
|
|
34856
|
-
config:
|
|
34856
|
+
config: lW.droppable
|
|
34857
34857
|
}), fW = useCachedNode(E, T), pW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34858
34858
|
H
|
|
34859
|
-
]), mW = GW(), hW = useInitialRect(fW,
|
|
34859
|
+
]), mW = GW(), hW = useInitialRect(fW, lW.draggable.measure);
|
|
34860
34860
|
useLayoutShiftScrollCompensation({
|
|
34861
34861
|
activeNode: T == null ? null : E.get(T),
|
|
34862
34862
|
config: mW.layoutShiftCompensation,
|
|
34863
34863
|
initialRect: hW,
|
|
34864
|
-
measure:
|
|
34864
|
+
measure: lW.draggable.measure
|
|
34865
34865
|
});
|
|
34866
|
-
let gW = useRect(fW,
|
|
34866
|
+
let gW = useRect(fW, lW.draggable.measure, hW), _W = useRect(fW ? fW.parentElement : null), vW = (0, import_react.useRef)({
|
|
34867
34867
|
activatorEvent: null,
|
|
34868
34868
|
active: null,
|
|
34869
34869
|
activeNode: fW,
|
|
34870
34870
|
collisionRect: null,
|
|
34871
34871
|
collisions: null,
|
|
34872
|
-
droppableRects:
|
|
34872
|
+
droppableRects: Z,
|
|
34873
34873
|
draggableNodes: E,
|
|
34874
34874
|
draggingNode: null,
|
|
34875
34875
|
draggingNodeRect: null,
|
|
@@ -34878,7 +34878,7 @@ ${c}
|
|
|
34878
34878
|
scrollableAncestors: [],
|
|
34879
34879
|
scrollAdjustedTranslate: null
|
|
34880
34880
|
}), yW = j.getNodeFor((_a3 = vW.current.over) == null ? void 0 : _a3.id), bW = useDragOverlayMeasuring({
|
|
34881
|
-
measure:
|
|
34881
|
+
measure: lW.dragOverlay.measure
|
|
34882
34882
|
}), xW = bW.nodeRef.current ?? fW, SW = w ? bW.rect ?? gW : null, CW = !!(bW.nodeRef.current && bW.rect), wW = useRectDelta(CW ? null : gW), TW = useWindowRect(xW ? getWindow(xW) : null), EW = useScrollableAncestors(w ? yW ?? fW : null), DW = useRects(EW), OW = applyModifiers(m, {
|
|
34883
34883
|
transform: {
|
|
34884
34884
|
x: O.x - wW.x,
|
|
@@ -34901,8 +34901,8 @@ ${c}
|
|
|
34901
34901
|
]), NW = add(OW, jW), PW = SW ? getAdjustedRect(SW, OW) : null, FW = L && PW ? f({
|
|
34902
34902
|
active: L,
|
|
34903
34903
|
collisionRect: PW,
|
|
34904
|
-
droppableRects:
|
|
34905
|
-
droppableContainers:
|
|
34904
|
+
droppableRects: Z,
|
|
34905
|
+
droppableContainers: cW,
|
|
34906
34906
|
pointerCoordinates: kW
|
|
34907
34907
|
}) : null, IW = getFirstCollision(FW, "id"), [LW, RW] = (0, import_react.useState)(null), zW = adjustScale(CW ? OW : add(OW, MW), (LW == null ? void 0 : LW.rect) ?? null, gW), BW = (0, import_react.useRef)(null), VW = (0, import_react.useCallback)((e2, r2) => {
|
|
34908
34908
|
let { sensor: c2, options: l2 } = r2;
|
|
@@ -35075,7 +35075,7 @@ ${c}
|
|
|
35075
35075
|
activeNode: fW,
|
|
35076
35076
|
collisionRect: PW,
|
|
35077
35077
|
collisions: FW,
|
|
35078
|
-
droppableRects:
|
|
35078
|
+
droppableRects: Z,
|
|
35079
35079
|
draggableNodes: E,
|
|
35080
35080
|
draggingNode: xW,
|
|
35081
35081
|
draggingNodeRect: SW,
|
|
@@ -35095,7 +35095,7 @@ ${c}
|
|
|
35095
35095
|
E,
|
|
35096
35096
|
xW,
|
|
35097
35097
|
SW,
|
|
35098
|
-
|
|
35098
|
+
Z,
|
|
35099
35099
|
j,
|
|
35100
35100
|
LW,
|
|
35101
35101
|
EW,
|
|
@@ -35118,12 +35118,12 @@ ${c}
|
|
|
35118
35118
|
dragOverlay: bW,
|
|
35119
35119
|
draggableNodes: E,
|
|
35120
35120
|
droppableContainers: j,
|
|
35121
|
-
droppableRects:
|
|
35121
|
+
droppableRects: Z,
|
|
35122
35122
|
over: LW,
|
|
35123
35123
|
measureDroppableContainers: uW,
|
|
35124
35124
|
scrollableAncestors: EW,
|
|
35125
35125
|
scrollableAncestorRects: DW,
|
|
35126
|
-
measuringConfiguration:
|
|
35126
|
+
measuringConfiguration: lW,
|
|
35127
35127
|
measuringScheduled: dW,
|
|
35128
35128
|
windowRect: TW
|
|
35129
35129
|
}), [
|
|
@@ -35136,12 +35136,12 @@ ${c}
|
|
|
35136
35136
|
bW,
|
|
35137
35137
|
E,
|
|
35138
35138
|
j,
|
|
35139
|
-
|
|
35139
|
+
Z,
|
|
35140
35140
|
LW,
|
|
35141
35141
|
uW,
|
|
35142
35142
|
EW,
|
|
35143
35143
|
DW,
|
|
35144
|
-
|
|
35144
|
+
lW,
|
|
35145
35145
|
dW,
|
|
35146
35146
|
TW
|
|
35147
35147
|
]), WW = (0, import_react.useMemo)(() => ({
|
|
@@ -35150,7 +35150,7 @@ ${c}
|
|
|
35150
35150
|
active: L,
|
|
35151
35151
|
activeNodeRect: gW,
|
|
35152
35152
|
ariaDescribedById: {
|
|
35153
|
-
draggable:
|
|
35153
|
+
draggable: q
|
|
35154
35154
|
},
|
|
35155
35155
|
dispatch: _,
|
|
35156
35156
|
draggableNodes: E,
|
|
@@ -35162,7 +35162,7 @@ ${c}
|
|
|
35162
35162
|
L,
|
|
35163
35163
|
gW,
|
|
35164
35164
|
_,
|
|
35165
|
-
|
|
35165
|
+
q,
|
|
35166
35166
|
E,
|
|
35167
35167
|
LW,
|
|
35168
35168
|
uW
|
|
@@ -35179,7 +35179,7 @@ ${c}
|
|
|
35179
35179
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35180
35180
|
})), import_react.createElement(Accessibility, {
|
|
35181
35181
|
...c,
|
|
35182
|
-
hiddenTextDescribedById:
|
|
35182
|
+
hiddenTextDescribedById: q
|
|
35183
35183
|
}));
|
|
35184
35184
|
function GW() {
|
|
35185
35185
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
@@ -35709,7 +35709,7 @@ ${c}
|
|
|
35709
35709
|
updateMeasurementsFor: I,
|
|
35710
35710
|
...m
|
|
35711
35711
|
}
|
|
35712
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes:
|
|
35712
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: cW, listeners: lW, isDragging: Z, over: uW, setActivatorNodeRef: dW, transform: fW } = useDraggable({
|
|
35713
35713
|
id: f,
|
|
35714
35714
|
data: M,
|
|
35715
35715
|
attributes: {
|
|
@@ -35717,7 +35717,7 @@ ${c}
|
|
|
35717
35717
|
...c
|
|
35718
35718
|
},
|
|
35719
35719
|
disabled: O.draggable
|
|
35720
|
-
}), pW = useCombinedRefs(B,
|
|
35720
|
+
}), pW = useCombinedRefs(B, cW), mW = !!H, hW = mW && !b && isValidIndex(v) && isValidIndex(w), gW = !T && Z, _W = hW ? (gW && hW ? fW : null) ?? (p ?? E)({
|
|
35721
35721
|
rects: S,
|
|
35722
35722
|
activeNodeRect: G,
|
|
35723
35723
|
activeIndex: v,
|
|
@@ -35736,7 +35736,7 @@ ${c}
|
|
|
35736
35736
|
}), xW = g !== bW.current.items, SW = r({
|
|
35737
35737
|
active: H,
|
|
35738
35738
|
containerId: _,
|
|
35739
|
-
isDragging:
|
|
35739
|
+
isDragging: Z,
|
|
35740
35740
|
isSorting: mW,
|
|
35741
35741
|
id: f,
|
|
35742
35742
|
index: j,
|
|
@@ -35774,7 +35774,7 @@ ${c}
|
|
|
35774
35774
|
]), {
|
|
35775
35775
|
active: H,
|
|
35776
35776
|
activeIndex: v,
|
|
35777
|
-
attributes:
|
|
35777
|
+
attributes: q,
|
|
35778
35778
|
data: M,
|
|
35779
35779
|
rect: L,
|
|
35780
35780
|
index: j,
|
|
@@ -35782,15 +35782,15 @@ ${c}
|
|
|
35782
35782
|
items: g,
|
|
35783
35783
|
isOver: z,
|
|
35784
35784
|
isSorting: mW,
|
|
35785
|
-
isDragging:
|
|
35786
|
-
listeners:
|
|
35785
|
+
isDragging: Z,
|
|
35786
|
+
listeners: lW,
|
|
35787
35787
|
node: R,
|
|
35788
35788
|
overIndex: w,
|
|
35789
35789
|
over: uW,
|
|
35790
35790
|
setNodeRef: pW,
|
|
35791
35791
|
setActivatorNodeRef: dW,
|
|
35792
35792
|
setDroppableNodeRef: B,
|
|
35793
|
-
setDraggableNodeRef:
|
|
35793
|
+
setDraggableNodeRef: cW,
|
|
35794
35794
|
transform: CW ?? _W,
|
|
35795
35795
|
transition: wW()
|
|
35796
35796
|
};
|
|
@@ -36078,8 +36078,8 @@ ${c}
|
|
|
36078
36078
|
position: "below",
|
|
36079
36079
|
onInsert: v
|
|
36080
36080
|
}), r[33] = v, r[34] = G);
|
|
36081
|
-
let
|
|
36082
|
-
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 ? (
|
|
36081
|
+
let q;
|
|
36082
|
+
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 ? (q = (0, import_jsx_runtime.jsxs)("div", {
|
|
36083
36083
|
ref: b,
|
|
36084
36084
|
role: "button",
|
|
36085
36085
|
tabIndex: 0,
|
|
@@ -36095,16 +36095,16 @@ ${c}
|
|
|
36095
36095
|
W,
|
|
36096
36096
|
G
|
|
36097
36097
|
]
|
|
36098
|
-
}), 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] =
|
|
36099
|
-
let
|
|
36100
|
-
if (!v && !g) return
|
|
36101
|
-
let Z;
|
|
36102
|
-
r[46] === q ? Z = r[47] : (Z = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
36103
|
-
asChild: true,
|
|
36104
|
-
children: q
|
|
36105
|
-
}), r[46] = q, r[47] = Z);
|
|
36098
|
+
}), 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];
|
|
36099
|
+
let cW = q;
|
|
36100
|
+
if (!v && !g) return cW;
|
|
36106
36101
|
let lW;
|
|
36107
|
-
r[
|
|
36102
|
+
r[46] === cW ? lW = r[47] : (lW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
36103
|
+
asChild: true,
|
|
36104
|
+
children: cW
|
|
36105
|
+
}), r[46] = cW, r[47] = lW);
|
|
36106
|
+
let Z;
|
|
36107
|
+
r[48] === v ? Z = r[49] : (Z = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36108
36108
|
onSelect: v,
|
|
36109
36109
|
children: [
|
|
36110
36110
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -36112,7 +36112,7 @@ ${c}
|
|
|
36112
36112
|
}),
|
|
36113
36113
|
"Add cell"
|
|
36114
36114
|
]
|
|
36115
|
-
}), r[48] = v, r[49] =
|
|
36115
|
+
}), r[48] = v, r[49] = Z);
|
|
36116
36116
|
let uW;
|
|
36117
36117
|
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = uW) : uW = r[50];
|
|
36118
36118
|
let dW;
|
|
@@ -36127,20 +36127,20 @@ ${c}
|
|
|
36127
36127
|
]
|
|
36128
36128
|
}), r[51] = g, r[52] = dW);
|
|
36129
36129
|
let fW;
|
|
36130
|
-
r[53] !==
|
|
36130
|
+
r[53] !== Z || r[54] !== dW ? (fW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
36131
36131
|
children: [
|
|
36132
|
-
|
|
36132
|
+
Z,
|
|
36133
36133
|
uW,
|
|
36134
36134
|
dW
|
|
36135
36135
|
]
|
|
36136
|
-
}), r[53] =
|
|
36136
|
+
}), r[53] = Z, r[54] = dW, r[55] = fW) : fW = r[55];
|
|
36137
36137
|
let pW;
|
|
36138
|
-
return r[56] !==
|
|
36138
|
+
return r[56] !== lW || r[57] !== fW ? (pW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
36139
36139
|
children: [
|
|
36140
|
-
|
|
36140
|
+
lW,
|
|
36141
36141
|
fW
|
|
36142
36142
|
]
|
|
36143
|
-
}), r[56] =
|
|
36143
|
+
}), r[56] = lW, r[57] = fW, r[58] = pW) : pW = r[58], pW;
|
|
36144
36144
|
}, InsertCellLine = (e) => {
|
|
36145
36145
|
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;
|
|
36146
36146
|
r[0] === u ? d = r[1] : (d = cn("absolute left-0 right-0 z-30 flex h-3 items-center justify-center", "opacity-0 transition-opacity hover:opacity-80 focus-visible:opacity-100 focus:outline-hidden", u), r[0] = u, r[1] = d);
|
|
@@ -36194,8 +36194,8 @@ ${c}
|
|
|
36194
36194
|
...B,
|
|
36195
36195
|
...h
|
|
36196
36196
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
36197
|
-
let W = H, G = E || T,
|
|
36198
|
-
r[25] !== l || r[26] !==
|
|
36197
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", cW = w && !T && "opacity-35", lW = T && "opacity-95 shadow-lg", Z;
|
|
36198
|
+
r[25] !== l || r[26] !== cW || r[27] !== lW || r[28] !== q ? (Z = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, cW, lW, l), r[25] = l, r[26] = cW, r[27] = lW, r[28] = q, r[29] = Z) : Z = r[29];
|
|
36199
36199
|
let uW;
|
|
36200
36200
|
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (uW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
36201
36201
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
@@ -36233,9 +36233,9 @@ ${c}
|
|
|
36233
36233
|
})
|
|
36234
36234
|
}), r[39] = z, r[40] = R, r[41] = fW) : fW = r[41];
|
|
36235
36235
|
let pW;
|
|
36236
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
36236
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !== uW || r[47] !== dW || r[48] !== fW ? (pW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36237
36237
|
ref: f,
|
|
36238
|
-
className:
|
|
36238
|
+
className: Z,
|
|
36239
36239
|
style: W,
|
|
36240
36240
|
...d,
|
|
36241
36241
|
children: [
|
|
@@ -36243,7 +36243,7 @@ ${c}
|
|
|
36243
36243
|
dW,
|
|
36244
36244
|
fW
|
|
36245
36245
|
]
|
|
36246
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
36246
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] = uW, r[47] = dW, r[48] = fW, r[49] = pW) : pW = r[49], pW;
|
|
36247
36247
|
}, MiniCodePreview = (e) => {
|
|
36248
36248
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
36249
36249
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -36283,7 +36283,7 @@ ${c}
|
|
|
36283
36283
|
function _temp2$2(e) {
|
|
36284
36284
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
36285
36285
|
}
|
|
36286
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36286
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-BJwt0B2_.js"));
|
|
36287
36287
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36288
36288
|
var _a3;
|
|
36289
36289
|
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), [
|
|
@@ -36661,7 +36661,7 @@ ${c}
|
|
|
36661
36661
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36662
36662
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36663
36663
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36664
|
-
let H, W, G,
|
|
36664
|
+
let H, W, G, q, cW, Z, uW, dW, fW, pW;
|
|
36665
36665
|
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) {
|
|
36666
36666
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36667
36667
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36707,11 +36707,11 @@ ${c}
|
|
|
36707
36707
|
})
|
|
36708
36708
|
})
|
|
36709
36709
|
]
|
|
36710
|
-
}), 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,
|
|
36711
|
-
let
|
|
36712
|
-
r[40] !== M || r[41] !==
|
|
36710
|
+
}), 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", cW = c, Z = R, uW = 0;
|
|
36711
|
+
let lW = y && "marimo-output-stale", mW2 = L ? "p-5" : "p-3";
|
|
36712
|
+
r[40] !== M || r[41] !== lW || r[42] !== mW2 ? (dW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", lW, mW2, M), r[40] = M, r[41] = lW, r[42] = mW2, r[43] = dW) : dW = r[43], r[44] === d ? fW = r[45] : (fW = d ? {
|
|
36713
36713
|
maxHeight: "none"
|
|
36714
|
-
} : void 0, r[44] = d, r[45] =
|
|
36714
|
+
} : void 0, r[44] = d, r[45] = fW), pW = e2.map((e3, r2) => {
|
|
36715
36715
|
if (e3.channel === "pdb") return null;
|
|
36716
36716
|
if (e3.channel === "stdin") {
|
|
36717
36717
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -36740,36 +36740,36 @@ ${c}
|
|
|
36740
36740
|
wrapText: l
|
|
36741
36741
|
})
|
|
36742
36742
|
}, r2);
|
|
36743
|
-
}), 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] =
|
|
36744
|
-
} else H = r[20], W = r[21], G = r[22],
|
|
36745
|
-
let
|
|
36746
|
-
r[46] !== T || r[47] !== S ? (
|
|
36743
|
+
}), 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] = cW, r[25] = Z, r[26] = uW, r[27] = dW, r[28] = fW, r[29] = pW;
|
|
36744
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], cW = r[24], Z = r[25], uW = r[26], dW = r[27], fW = r[28], pW = r[29];
|
|
36745
|
+
let mW;
|
|
36746
|
+
r[46] !== T || r[47] !== S ? (mW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36747
36747
|
value: S,
|
|
36748
36748
|
cellId: T,
|
|
36749
36749
|
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"
|
|
36750
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
36751
|
-
let
|
|
36752
|
-
r[49] !==
|
|
36750
|
+
}), r[46] = T, r[47] = S, r[48] = mW) : mW = r[48];
|
|
36751
|
+
let hW;
|
|
36752
|
+
r[49] !== mW || r[50] !== G || r[51] !== q || r[52] !== cW || r[53] !== Z || r[54] !== uW || r[55] !== dW || r[56] !== fW || r[57] !== pW ? (hW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36753
36753
|
title: G,
|
|
36754
|
-
"data-testid":
|
|
36755
|
-
ref:
|
|
36754
|
+
"data-testid": q,
|
|
36755
|
+
ref: cW,
|
|
36756
36756
|
...Z,
|
|
36757
|
-
tabIndex:
|
|
36758
|
-
className:
|
|
36759
|
-
style:
|
|
36757
|
+
tabIndex: uW,
|
|
36758
|
+
className: dW,
|
|
36759
|
+
style: fW,
|
|
36760
36760
|
children: [
|
|
36761
|
-
|
|
36762
|
-
|
|
36761
|
+
pW,
|
|
36762
|
+
mW
|
|
36763
36763
|
]
|
|
36764
|
-
}), r[49] =
|
|
36765
|
-
let
|
|
36766
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
36764
|
+
}), r[49] = mW, r[50] = G, r[51] = q, r[52] = cW, r[53] = Z, r[54] = uW, r[55] = dW, r[56] = fW, r[57] = pW, r[58] = hW) : hW = r[58];
|
|
36765
|
+
let gW;
|
|
36766
|
+
return r[59] !== H || r[60] !== W || r[61] !== hW ? (gW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36767
36767
|
className: H,
|
|
36768
36768
|
children: [
|
|
36769
36769
|
W,
|
|
36770
|
-
|
|
36770
|
+
hW
|
|
36771
36771
|
]
|
|
36772
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
36772
|
+
}), r[59] = H, r[60] = W, r[61] = hW, r[62] = gW) : gW = r[62], gW;
|
|
36773
36773
|
}, StdInput = (e) => {
|
|
36774
36774
|
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;
|
|
36775
36775
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -37251,25 +37251,25 @@ ${c}
|
|
|
37251
37251
|
}
|
|
37252
37252
|
let W = isErrorMime(c == null ? void 0 : c.mimetype), G = O && W && Array.isArray(c == null ? void 0 : c.data) && c.data.some(_temp5);
|
|
37253
37253
|
if ((h || _ || m || W) && !G) return null;
|
|
37254
|
-
let
|
|
37255
|
-
r[45] !== d || r[46] !== T ? (
|
|
37256
|
-
let
|
|
37257
|
-
r[48] !== d || r[49] !== R || r[50] !== c || r[51] !== I || r[52] !==
|
|
37258
|
-
allowExpand:
|
|
37254
|
+
let q;
|
|
37255
|
+
r[45] !== d || r[46] !== T ? (q = cellDomProps(d, T), r[45] = d, r[46] = T, r[47] = q) : q = r[47];
|
|
37256
|
+
let cW = w === "edit", lW;
|
|
37257
|
+
r[48] !== d || r[49] !== R || r[50] !== c || r[51] !== I || r[52] !== cW ? (lW = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37258
|
+
allowExpand: cW,
|
|
37259
37259
|
output: c,
|
|
37260
37260
|
className: CSSClasses.outputArea,
|
|
37261
37261
|
cellId: d,
|
|
37262
37262
|
stale: I,
|
|
37263
37263
|
loading: R
|
|
37264
|
-
}), r[48] = d, r[49] = R, r[50] = c, r[51] = I, r[52] =
|
|
37265
|
-
let
|
|
37266
|
-
return r[54] !== H || r[55] !==
|
|
37264
|
+
}), r[48] = d, r[49] = R, r[50] = c, r[51] = I, r[52] = cW, r[53] = lW) : lW = r[53];
|
|
37265
|
+
let Z;
|
|
37266
|
+
return r[54] !== H || r[55] !== q || r[56] !== lW ? (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
37267
37267
|
tabIndex: -1,
|
|
37268
37268
|
ref: j,
|
|
37269
37269
|
className: H,
|
|
37270
|
-
...
|
|
37271
|
-
children:
|
|
37272
|
-
}), r[54] = H, r[55] =
|
|
37270
|
+
...q,
|
|
37271
|
+
children: lW
|
|
37272
|
+
}), r[54] = H, r[55] = q, r[56] = lW, r[57] = Z) : Z = r[57], Z;
|
|
37273
37273
|
});
|
|
37274
37274
|
VerticalCell.displayName = "VerticalCell";
|
|
37275
37275
|
const VerticalLayoutPlugin = {
|