@marimo-team/islands 0.23.14-dev17 → 0.23.14-dev19
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-C6y6xLcn.js → chat-ui-9wA4feLE.js} +3034 -3034
- package/dist/{code-visibility-Cb6UrZYv.js → code-visibility-CxDvzm2S.js} +90 -90
- package/dist/{html-to-image-DcTkcjmm.js → html-to-image-DBHfshED.js} +63 -62
- package/dist/main.js +1111 -1090
- package/dist/{process-output-2FbS8KgW.js → process-output-Dw6We6B6.js} +1 -1
- package/dist/{reveal-component-BFhE2zHY.js → reveal-component-tJhA77Am.js} +2 -2
- package/package.json +1 -1
- package/src/components/editor/chrome/panels/snippets-panel.tsx +3 -3
- package/src/components/editor/code/readonly-python-code.tsx +16 -2
- package/src/components/editor/renderers/vertical-layout/__tests__/vertical-layout.test.ts +1 -27
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +2 -19
- package/src/components/slides/slide-cell-view.tsx +7 -6
- package/src/core/cells/__tests__/readonly-code-display.test.ts +46 -0
- package/src/core/cells/readonly-code-display.ts +35 -0
- package/src/components/editor/chrome/panels/__tests__/snippet-display.test.ts +0 -22
- package/src/components/editor/chrome/panels/snippet-display.ts +0 -27
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, An as
|
|
25
|
+
import { $ as reducer, $t as isUninstantiated, An as Table2, B as safeExtractSetUIElementMessageBuffers, Bn as Database, Bt as MarkdownParser, C as AccordionContent, Ct as Checkbox, Dn as Trigger2, Dt as PathBuilder, E as BorderAllIcon, En as Root2$1, F as base64ToDataView, Fn as Layers, Ft as repl, Gt as require_client, H as getMarimoExportContext, Ht as PluralWords, In as Info, J as getCellNames, K as createActions, L as dataViewToBase64, Ln as FileText, Lt as jotaiJsonStorage, Mt as generateUUID, Ot as Paths, Pn as LoaderCircle, Q as numColumnsAtom, Qt as useRequestClient, Rn as Eye, S as Accordion, St as normalizeName, T as AccordionTrigger, Tn as Item$1, Tt as MarkdownLanguageAdapter, U as hasTrustedExportContext, Un as CircleAlert, Ut as DATA_TYPE_ICON, V as renderHTML, Vn as Columns2, W as hasRunAnyCellAtom, Wn as Braces, X as notebookAtom, Xt as getRequestClient, Y as hasOnlyOneCellAtom, Yt as convertStatsName, Z as notebookOutline, Zt as requestClientAtom, _n as jsonParseWithSpecialChar, a as useCellFocusActions, bn as atomWithStorage, bt as getValidName, cn as parseDataset, ct as initialModeAtom, dn as HTMLCellId, et as useCellActions, f as isOutputEmpty, ft as outputIsLoading, gn as RANDOM_ID_ATTR, hn as OBJECT_ID_ATTR, ht as headingToIdentifier, i as LazyAnyLanguageCodeMirror, in as NotebookScopedLocalStorage, jn as PaintRoller, jt as DeferredRequestRegistry, k as ChevronDownIcon, kn as Trash2, ln as parseInitialValue, lt as kioskModeAtom, mn as findCellId, mt as isErrorMime, n as Spinner, o as useLastFocusedCellId, p as useExpandedConsoleOutput, pn as UIElementId, pt as outputIsStale, rt as createCell, s as maybeAddAltairImport, sn as parseAttrValue, st as getInitialAppMode, tt as useCellIds, w as AccordionItem, wn as Content2, wt as customPythonLanguageSupport, xn as selectAtom, xt as isInternalCellName, yn as atomWithReducer, zt as SQLParser, __tla as __tla_0 } from "./html-to-image-DBHfshED.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-CxDvzm2S.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-Dw6We6B6.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";
|
|
@@ -52,7 +52,7 @@ import { l as clamp, o as arrayShallowEquals, t as Arrays } from "./arrays-sEtDR
|
|
|
52
52
|
import { n as once } from "./once-DPuqGUeo.js";
|
|
53
53
|
import "./main-Tj_-QTyF.js";
|
|
54
54
|
import { f as sql } from "./dist-CcWX6tmx.js";
|
|
55
|
-
import "./dist-Dv_Y15yk.js";
|
|
55
|
+
import { a as markdown } from "./dist-Dv_Y15yk.js";
|
|
56
56
|
import "./dist-BSAt6RhH.js";
|
|
57
57
|
import "./dist-D-W5ny5a.js";
|
|
58
58
|
import "./dist-M9Vag9Y0.js";
|
|
@@ -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, ...cW } = 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
|
+
...cW,
|
|
6116
6116
|
...z,
|
|
6117
6117
|
...T,
|
|
6118
6118
|
sizes: g,
|
|
@@ -6997,33 +6997,33 @@ let __tla = Promise.all([
|
|
|
6997
6997
|
}), B = C({
|
|
6998
6998
|
height: 0,
|
|
6999
6999
|
width: 0
|
|
7000
|
-
}), H = U(), W = U(), G = C(0),
|
|
7000
|
+
}), H = U(), W = U(), G = C(0), cW = C(null), q = C({
|
|
7001
7001
|
column: 0,
|
|
7002
7002
|
row: 0
|
|
7003
|
-
}),
|
|
7004
|
-
Y(x(b, $(
|
|
7005
|
-
D(
|
|
7006
|
-
}), Y(x(ut(b,
|
|
7007
|
-
D(
|
|
7003
|
+
}), Z = U(), lW = U(), uW = C(false), dW = C(0), fW = C(true), pW = C(false), mW = C(false);
|
|
7004
|
+
Y(x(b, $(dW), P(([e2, r2]) => !!r2)), () => {
|
|
7005
|
+
D(fW, false);
|
|
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]) => {
|
|
7007
|
+
D(pW, true), Ue(1, () => {
|
|
7008
7008
|
D(H, e2);
|
|
7009
7009
|
}), Et(x(h), () => {
|
|
7010
7010
|
D(r, [
|
|
7011
7011
|
0,
|
|
7012
7012
|
0
|
|
7013
|
-
]), D(
|
|
7013
|
+
]), D(fW, true);
|
|
7014
7014
|
});
|
|
7015
|
-
}), F(x(
|
|
7016
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7017
|
-
D(
|
|
7015
|
+
}), F(x(lW, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(lW), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7016
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(q, e2.gap), e2.scrollTop > 0 && (D(uW, true), Et(x(h, Kt(1)), (e3) => {
|
|
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(q, (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
|
+
}))), Z), F(x(ut(V(I), l, V(q, Or), V(B, xe), V(z, xe), V(cW), 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,23 +7042,23 @@ let __tla = Promise.all([
|
|
|
7042
7042
|
offsetTop: j2,
|
|
7043
7043
|
top: j2
|
|
7044
7044
|
};
|
|
7045
|
-
})), R), F(x(
|
|
7045
|
+
})), R), F(x(cW, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, q), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7046
7046
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7047
7047
|
return [
|
|
7048
7048
|
d2,
|
|
7049
7049
|
u2
|
|
7050
7050
|
];
|
|
7051
7051
|
}), J(ce)), r);
|
|
7052
|
-
let
|
|
7053
|
-
F(x(h, $(
|
|
7054
|
-
let
|
|
7052
|
+
let hW = C(false);
|
|
7053
|
+
F(x(h, $(hW), k(([e2, r2]) => r2 || e2 !== 0)), hW);
|
|
7054
|
+
let gW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(hW), P(([[e2, r2], c2]) => {
|
|
7055
7055
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7056
7056
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7057
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7057
|
+
}), k(([[, e2]]) => e2 - 1), J())), _W = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), vW = bt(x(V(R), $(uW), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7058
7058
|
endIndex: e2[e2.length - 1].index,
|
|
7059
7059
|
startIndex: e2[0].index
|
|
7060
7060
|
})), J(An), Gt(0)));
|
|
7061
|
-
F(
|
|
7061
|
+
F(vW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, q), k(([e2, r2, c2, l2, u2]) => {
|
|
7062
7062
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7063
7063
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7064
7064
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7067,22 +7067,22 @@ let __tla = Promise.all([
|
|
|
7067
7067
|
top: g2
|
|
7068
7068
|
};
|
|
7069
7069
|
})), m);
|
|
7070
|
-
let
|
|
7070
|
+
let yW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7071
7071
|
return F(x(j, k((e2) => ({
|
|
7072
7072
|
height: e2.visibleHeight,
|
|
7073
7073
|
width: e2.visibleWidth
|
|
7074
7074
|
}))), z), {
|
|
7075
7075
|
customScrollParent: w,
|
|
7076
|
-
data:
|
|
7076
|
+
data: cW,
|
|
7077
7077
|
deviation: G,
|
|
7078
7078
|
footerHeight: u,
|
|
7079
|
-
gap:
|
|
7079
|
+
gap: q,
|
|
7080
7080
|
headerHeight: d,
|
|
7081
7081
|
increaseViewportBy: e,
|
|
7082
7082
|
initialItemCount: L,
|
|
7083
7083
|
itemDimensions: B,
|
|
7084
7084
|
overscan: c,
|
|
7085
|
-
restoreStateFrom:
|
|
7085
|
+
restoreStateFrom: lW,
|
|
7086
7086
|
scrollBy: f,
|
|
7087
7087
|
scrollContainerState: p,
|
|
7088
7088
|
scrollHeight: W,
|
|
@@ -7098,16 +7098,16 @@ let __tla = Promise.all([
|
|
|
7098
7098
|
windowViewportRect: j,
|
|
7099
7099
|
...y,
|
|
7100
7100
|
gridState: R,
|
|
7101
|
-
horizontalDirection:
|
|
7102
|
-
initialTopMostItemIndex:
|
|
7103
|
-
totalListHeight:
|
|
7101
|
+
horizontalDirection: mW,
|
|
7102
|
+
initialTopMostItemIndex: dW,
|
|
7103
|
+
totalListHeight: yW,
|
|
7104
7104
|
...v,
|
|
7105
|
-
endReached:
|
|
7105
|
+
endReached: gW,
|
|
7106
7106
|
propsReady: S,
|
|
7107
|
-
rangeChanged:
|
|
7108
|
-
startReached:
|
|
7109
|
-
stateChanged:
|
|
7110
|
-
stateRestoreInProgress:
|
|
7107
|
+
rangeChanged: vW,
|
|
7108
|
+
startReached: _W,
|
|
7109
|
+
stateChanged: Z,
|
|
7110
|
+
stateRestoreInProgress: uW,
|
|
7111
7111
|
...M
|
|
7112
7112
|
};
|
|
7113
7113
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -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), cW;
|
|
7379
|
+
r[8] !== m || r[9] !== f || r[10] !== d || r[11] !== u ? (cW = (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] = cW) : cW = r[12];
|
|
7388
|
+
let q = cW, Z;
|
|
7389
7389
|
if (r[13] !== G.bulkActions) {
|
|
7390
|
-
if (
|
|
7390
|
+
if (Z = G.bulkActions.map(_temp$26), Z.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], Z.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] = Z;
|
|
7397
|
+
} else Z = r[14];
|
|
7398
|
+
let lW;
|
|
7399
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (lW = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7400
7400
|
"data-slot": "select-separator"
|
|
7401
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7402
|
-
let
|
|
7403
|
-
r[19] !==
|
|
7401
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = lW) : lW = r[18];
|
|
7402
|
+
let uW = lW, dW;
|
|
7403
|
+
r[19] !== Z || 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,8 +7412,8 @@ let __tla = Promise.all([
|
|
|
7412
7412
|
let r2 = G.visibleOptions[e3];
|
|
7413
7413
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7414
7414
|
children: [
|
|
7415
|
-
e3 === 0 &&
|
|
7416
|
-
|
|
7415
|
+
e3 === 0 && Z,
|
|
7416
|
+
uW(e3),
|
|
7417
7417
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7418
7418
|
option: r2,
|
|
7419
7419
|
checked: G.isChecked(r2.value),
|
|
@@ -7424,7 +7424,7 @@ let __tla = Promise.all([
|
|
|
7424
7424
|
}
|
|
7425
7425
|
});
|
|
7426
7426
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7427
|
-
let c2 =
|
|
7427
|
+
let c2 = uW(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7428
7428
|
option: e3,
|
|
7429
7429
|
checked: G.isChecked(e3.value),
|
|
7430
7430
|
renderOption: w
|
|
@@ -7438,13 +7438,13 @@ let __tla = Promise.all([
|
|
|
7438
7438
|
});
|
|
7439
7439
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7440
7440
|
children: [
|
|
7441
|
-
|
|
7441
|
+
Z,
|
|
7442
7442
|
e2
|
|
7443
7443
|
]
|
|
7444
7444
|
});
|
|
7445
|
-
}, r[19] =
|
|
7446
|
-
let
|
|
7447
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7445
|
+
}, r[19] = Z, r[20] = G, r[21] = uW, r[22] = w, r[23] = B, r[24] = H, r[25] = dW) : dW = r[25];
|
|
7446
|
+
let fW = dW, pW;
|
|
7447
|
+
r[26] !== G.labelOf || r[27] !== I ? (pW = (e2) => {
|
|
7448
7448
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7449
7449
|
e2
|
|
7450
7450
|
];
|
|
@@ -7455,46 +7455,46 @@ let __tla = Promise.all([
|
|
|
7455
7455
|
items: r2.map(G.labelOf),
|
|
7456
7456
|
max: 3
|
|
7457
7457
|
});
|
|
7458
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7459
|
-
let
|
|
7460
|
-
r[29] === G ?
|
|
7461
|
-
let
|
|
7462
|
-
r[31] !== b || r[32] !== R ? (
|
|
7458
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = pW) : pW = r[28];
|
|
7459
|
+
let mW = pW, hW = e["data-testid"], gW;
|
|
7460
|
+
r[29] === G ? gW = r[30] : (gW = (e2) => G.labelOf(e2), r[29] = G, r[30] = gW);
|
|
7461
|
+
let _W = M ? mW : void 0, vW;
|
|
7462
|
+
r[31] !== b || r[32] !== R ? (vW = cn({
|
|
7463
7463
|
"w-full": R
|
|
7464
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7465
|
-
let
|
|
7466
|
-
r[34] === z ?
|
|
7467
|
-
let
|
|
7468
|
-
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !==
|
|
7464
|
+
}, b), r[31] = b, r[32] = R, r[33] = vW) : vW = r[33];
|
|
7465
|
+
let yW = G.searchQuery, bW = G.setSearchQuery, xW = G.open, SW = G.setOpen, CW;
|
|
7466
|
+
r[34] === z ? CW = r[35] : (CW = renderSlot(z), r[34] = z, r[35] = CW);
|
|
7467
|
+
let wW;
|
|
7468
|
+
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !== hW || r[44] !== gW || r[45] !== _W || r[46] !== vW || r[47] !== CW ? (wW = {
|
|
7469
7469
|
"data-slot": "select-root",
|
|
7470
|
-
"data-testid":
|
|
7471
|
-
displayValue:
|
|
7472
|
-
renderValue:
|
|
7470
|
+
"data-testid": hW,
|
|
7471
|
+
displayValue: gW,
|
|
7472
|
+
renderValue: _W,
|
|
7473
7473
|
placeholder: I,
|
|
7474
|
-
className:
|
|
7474
|
+
className: vW,
|
|
7475
7475
|
shouldFilter: false,
|
|
7476
|
-
search:
|
|
7477
|
-
onSearchChange:
|
|
7478
|
-
open:
|
|
7479
|
-
onOpenChange:
|
|
7480
|
-
emptyState:
|
|
7476
|
+
search: yW,
|
|
7477
|
+
onSearchChange: bW,
|
|
7478
|
+
open: xW,
|
|
7479
|
+
onOpenChange: SW,
|
|
7480
|
+
emptyState: CW,
|
|
7481
7481
|
disabled: L,
|
|
7482
7482
|
id: S
|
|
7483
|
-
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] =
|
|
7484
|
-
let
|
|
7485
|
-
return r[49] !==
|
|
7486
|
-
...
|
|
7483
|
+
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] = hW, r[44] = gW, r[45] = _W, r[46] = vW, r[47] = CW, r[48] = wW) : wW = r[48];
|
|
7484
|
+
let TW = wW, EW;
|
|
7485
|
+
return r[49] !== TW || r[50] !== q || r[51] !== d || r[52] !== fW || r[53] !== l ? (EW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7486
|
+
...TW,
|
|
7487
7487
|
multiple: true,
|
|
7488
7488
|
value: l,
|
|
7489
|
-
onValueChange:
|
|
7490
|
-
children:
|
|
7489
|
+
onValueChange: q,
|
|
7490
|
+
children: fW()
|
|
7491
7491
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7492
|
-
...
|
|
7492
|
+
...TW,
|
|
7493
7493
|
multiple: false,
|
|
7494
7494
|
value: l,
|
|
7495
|
-
onValueChange:
|
|
7496
|
-
children:
|
|
7497
|
-
}), r[49] =
|
|
7495
|
+
onValueChange: q,
|
|
7496
|
+
children: fW()
|
|
7497
|
+
}), r[49] = TW, r[50] = q, 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-9wA4feLE.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)) : q(e2, l2), f.mount && w();
|
|
9695
9695
|
}
|
|
9696
9696
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
9697
9697
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -9764,14 +9764,14 @@ let __tla = Promise.all([
|
|
|
9764
9764
|
}, H = () => {
|
|
9765
9765
|
for (let e2 of p.unMount) {
|
|
9766
9766
|
let r2 = get(l, e2);
|
|
9767
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
9767
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && vW(e2);
|
|
9768
9768
|
}
|
|
9769
9769
|
p.unMount = /* @__PURE__ */ new Set();
|
|
9770
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
9770
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(pW(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
9771
9771
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
9772
9772
|
[e2]: r2
|
|
9773
9773
|
} : r2
|
|
9774
|
-
}, c2, r2),
|
|
9774
|
+
}, c2, r2), cW = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), q = (e2, r2, c2 = {}) => {
|
|
9775
9775
|
let u2 = get(l, e2), f2 = r2;
|
|
9776
9776
|
if (u2) {
|
|
9777
9777
|
let c3 = u2._f;
|
|
@@ -9784,13 +9784,13 @@ let __tla = Promise.all([
|
|
|
9784
9784
|
}
|
|
9785
9785
|
})));
|
|
9786
9786
|
}
|
|
9787
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
9788
|
-
},
|
|
9787
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && fW(e2);
|
|
9788
|
+
}, Z = (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) ? Z(f2, d2, c2) : q(f2, d2, c2);
|
|
9792
9792
|
}
|
|
9793
|
-
},
|
|
9793
|
+
}, lW = (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) ? Z(e2, y2, m2) : q(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
9805
9805
|
...c
|
|
9806
9806
|
}), _.values.next({
|
|
9807
9807
|
name: f.mount ? e2 : void 0,
|
|
@@ -9809,7 +9809,7 @@ let __tla = Promise.all([
|
|
|
9809
9809
|
...d
|
|
9810
9810
|
}
|
|
9811
9811
|
});
|
|
9812
|
-
},
|
|
9812
|
+
}, uW = async (e2) => {
|
|
9813
9813
|
f.mount = true;
|
|
9814
9814
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
9815
9815
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -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), cW2 = !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()), cW2 && _.state.next({
|
|
9828
9828
|
name: h2,
|
|
9829
9829
|
...W2 ? {} : G2
|
|
9830
9830
|
});
|
|
@@ -9843,11 +9843,11 @@ let __tla = Promise.all([
|
|
|
9843
9843
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
9844
9844
|
h2
|
|
9845
9845
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
9846
|
-
S2 && (E2._f.deps &&
|
|
9846
|
+
S2 && (E2._f.deps && fW(E2._f.deps), L(h2, f2, u3, G2));
|
|
9847
9847
|
}
|
|
9848
|
-
},
|
|
9848
|
+
}, dW = (e2, r2) => {
|
|
9849
9849
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
9850
|
-
},
|
|
9850
|
+
}, fW = async (e2, u2 = {}) => {
|
|
9851
9851
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
9852
9852
|
if (r.resolver) {
|
|
9853
9853
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -9866,23 +9866,23 @@ let __tla = Promise.all([
|
|
|
9866
9866
|
isValid: d2
|
|
9867
9867
|
} : {},
|
|
9868
9868
|
errors: c.errors
|
|
9869
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
9870
|
-
},
|
|
9869
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, dW, e2 ? m2 : p.mount), f2;
|
|
9870
|
+
}, pW = (e2) => {
|
|
9871
9871
|
let r2 = {
|
|
9872
9872
|
...f.mount ? d : u
|
|
9873
9873
|
};
|
|
9874
9874
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
9875
|
-
},
|
|
9875
|
+
}, mW = (e2, r2) => ({
|
|
9876
9876
|
invalid: !!get((r2 || c).errors, e2),
|
|
9877
9877
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
9878
9878
|
error: get((r2 || c).errors, e2),
|
|
9879
9879
|
isValidating: !!get(c.validatingFields, e2),
|
|
9880
9880
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
9881
|
-
}),
|
|
9881
|
+
}), hW = (e2) => {
|
|
9882
9882
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
9883
9883
|
errors: e2 ? c.errors : {}
|
|
9884
9884
|
});
|
|
9885
|
-
},
|
|
9885
|
+
}, gW = (e2, r2, u2) => {
|
|
9886
9886
|
let d2 = (get(l, e2, {
|
|
9887
9887
|
_f: {}
|
|
9888
9888
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -9895,9 +9895,9 @@ let __tla = Promise.all([
|
|
|
9895
9895
|
errors: c.errors,
|
|
9896
9896
|
isValid: false
|
|
9897
9897
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
9898
|
-
},
|
|
9898
|
+
}, _W = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
9899
9899
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
9900
|
-
}) : G(e2, r2, true),
|
|
9900
|
+
}) : G(e2, r2, true), vW = (e2, f2 = {}) => {
|
|
9901
9901
|
for (let m2 of e2 ? convertToArrayPayload(e2) : p.mount) p.mount.delete(m2), p.array.delete(m2), f2.keepValue || (unset(l, m2), unset(d, m2)), !f2.keepError && unset(c.errors, m2), !f2.keepDirty && unset(c.dirtyFields, m2), !f2.keepTouched && unset(c.touchedFields, m2), !f2.keepIsValidating && unset(c.validatingFields, m2), !r.shouldUnregister && !f2.keepDefaultValue && unset(u, m2);
|
|
9902
9902
|
_.values.next({
|
|
9903
9903
|
values: {
|
|
@@ -9909,9 +9909,9 @@ let __tla = Promise.all([
|
|
|
9909
9909
|
isDirty: W()
|
|
9910
9910
|
} : {}
|
|
9911
9911
|
}), !f2.keepIsValid && w();
|
|
9912
|
-
},
|
|
9912
|
+
}, yW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
9913
9913
|
(isBoolean(e2) && f.mount || e2 || p.disabled.has(r2)) && (e2 ? p.disabled.add(r2) : p.disabled.delete(r2), I(r2, getFieldValue(c2 ? c2._f : get(l2, r2)._f), false, false, true));
|
|
9914
|
-
},
|
|
9914
|
+
}, bW = (e2, c2 = {}) => {
|
|
9915
9915
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
9916
9916
|
return set(l, e2, {
|
|
9917
9917
|
...d2 || {},
|
|
@@ -9925,7 +9925,7 @@ let __tla = Promise.all([
|
|
|
9925
9925
|
mount: true,
|
|
9926
9926
|
...c2
|
|
9927
9927
|
}
|
|
9928
|
-
}), p.mount.add(e2), d2 ?
|
|
9928
|
+
}), p.mount.add(e2), d2 ? yW({
|
|
9929
9929
|
field: d2,
|
|
9930
9930
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
9931
9931
|
name: e2
|
|
@@ -9942,11 +9942,11 @@ let __tla = Promise.all([
|
|
|
9942
9942
|
pattern: getRuleValue(c2.pattern)
|
|
9943
9943
|
} : {},
|
|
9944
9944
|
name: e2,
|
|
9945
|
-
onChange:
|
|
9946
|
-
onBlur:
|
|
9945
|
+
onChange: uW,
|
|
9946
|
+
onBlur: uW,
|
|
9947
9947
|
ref: (m3) => {
|
|
9948
9948
|
if (m3) {
|
|
9949
|
-
|
|
9949
|
+
bW(e2, c2), d2 = get(l, e2);
|
|
9950
9950
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
9951
9951
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
9952
9952
|
set(l, e2, {
|
|
@@ -9972,7 +9972,7 @@ let __tla = Promise.all([
|
|
|
9972
9972
|
} else d2 = get(l, e2, {}), d2._f && (d2._f.mount = false), (r.shouldUnregister || c2.shouldUnregister) && !(isNameInFieldArray(p.array, e2) && f.action) && p.unMount.add(e2);
|
|
9973
9973
|
}
|
|
9974
9974
|
};
|
|
9975
|
-
},
|
|
9975
|
+
}, xW = () => r.shouldFocusError && iterateFieldsByAction(l, dW, p.mount), SW = (e2) => {
|
|
9976
9976
|
isBoolean(e2) && (_.state.next({
|
|
9977
9977
|
disabled: e2
|
|
9978
9978
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -9981,7 +9981,7 @@ let __tla = Promise.all([
|
|
|
9981
9981
|
r3.disabled = u2._f.disabled || e2;
|
|
9982
9982
|
}));
|
|
9983
9983
|
}, 0, false));
|
|
9984
|
-
},
|
|
9984
|
+
}, CW = (e2, u2) => async (f2) => {
|
|
9985
9985
|
let m2;
|
|
9986
9986
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
9987
9987
|
let h2 = cloneObject(d);
|
|
@@ -10003,7 +10003,7 @@ let __tla = Promise.all([
|
|
|
10003
10003
|
}
|
|
10004
10004
|
} else u2 && await u2({
|
|
10005
10005
|
...c.errors
|
|
10006
|
-
}, f2),
|
|
10006
|
+
}, f2), xW(), setTimeout(xW);
|
|
10007
10007
|
if (_.state.next({
|
|
10008
10008
|
isSubmitted: true,
|
|
10009
10009
|
isSubmitting: false,
|
|
@@ -10011,11 +10011,11 @@ let __tla = Promise.all([
|
|
|
10011
10011
|
submitCount: c.submitCount + 1,
|
|
10012
10012
|
errors: c.errors
|
|
10013
10013
|
}), m2) throw m2;
|
|
10014
|
-
},
|
|
10015
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10014
|
+
}, wW = (e2, r2 = {}) => {
|
|
10015
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? lW(e2, cloneObject(get(u, e2))) : (lW(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 = {}) => {
|
|
10019
10019
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10020
10020
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10021
10021
|
if (m2.keepDirtyValues) {
|
|
@@ -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)) : lW(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);
|
|
@@ -10068,25 +10068,25 @@ let __tla = Promise.all([
|
|
|
10068
10068
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10069
10069
|
isSubmitting: false
|
|
10070
10070
|
});
|
|
10071
|
-
},
|
|
10071
|
+
}, EW = (e2, r2) => TW(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10072
10072
|
return {
|
|
10073
10073
|
control: {
|
|
10074
|
-
register:
|
|
10075
|
-
unregister:
|
|
10076
|
-
getFieldState:
|
|
10077
|
-
handleSubmit:
|
|
10078
|
-
setError:
|
|
10074
|
+
register: bW,
|
|
10075
|
+
unregister: vW,
|
|
10076
|
+
getFieldState: mW,
|
|
10077
|
+
handleSubmit: CW,
|
|
10078
|
+
setError: gW,
|
|
10079
10079
|
_executeSchema: R,
|
|
10080
10080
|
_getWatch: G,
|
|
10081
10081
|
_getDirty: W,
|
|
10082
10082
|
_updateValid: w,
|
|
10083
10083
|
_removeUnmounted: H,
|
|
10084
10084
|
_updateFieldArray: E,
|
|
10085
|
-
_updateDisabledField:
|
|
10086
|
-
_getFieldArray:
|
|
10087
|
-
_reset:
|
|
10085
|
+
_updateDisabledField: yW,
|
|
10086
|
+
_getFieldArray: cW,
|
|
10087
|
+
_reset: TW,
|
|
10088
10088
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10089
|
-
|
|
10089
|
+
EW(e2, r.resetOptions), _.state.next({
|
|
10090
10090
|
isLoading: false
|
|
10091
10091
|
});
|
|
10092
10092
|
}),
|
|
@@ -10096,7 +10096,7 @@ let __tla = Promise.all([
|
|
|
10096
10096
|
...e2
|
|
10097
10097
|
};
|
|
10098
10098
|
},
|
|
10099
|
-
_disableForm:
|
|
10099
|
+
_disableForm: SW,
|
|
10100
10100
|
_subjects: _,
|
|
10101
10101
|
_proxyFormState: g,
|
|
10102
10102
|
_setErrors: j,
|
|
@@ -10137,17 +10137,17 @@ let __tla = Promise.all([
|
|
|
10137
10137
|
};
|
|
10138
10138
|
}
|
|
10139
10139
|
},
|
|
10140
|
-
trigger:
|
|
10141
|
-
register:
|
|
10142
|
-
handleSubmit:
|
|
10143
|
-
watch:
|
|
10144
|
-
setValue:
|
|
10145
|
-
getValues:
|
|
10146
|
-
reset:
|
|
10147
|
-
resetField:
|
|
10148
|
-
clearErrors:
|
|
10149
|
-
unregister:
|
|
10150
|
-
setError:
|
|
10140
|
+
trigger: fW,
|
|
10141
|
+
register: bW,
|
|
10142
|
+
handleSubmit: CW,
|
|
10143
|
+
watch: _W,
|
|
10144
|
+
setValue: lW,
|
|
10145
|
+
getValues: pW,
|
|
10146
|
+
reset: EW,
|
|
10147
|
+
resetField: wW,
|
|
10148
|
+
clearErrors: hW,
|
|
10149
|
+
unregister: vW,
|
|
10150
|
+
setError: gW,
|
|
10151
10151
|
setFocus: (e2, r2 = {}) => {
|
|
10152
10152
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10153
10153
|
if (u2) {
|
|
@@ -10155,7 +10155,7 @@ let __tla = Promise.all([
|
|
|
10155
10155
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10156
10156
|
}
|
|
10157
10157
|
},
|
|
10158
|
-
getFieldState:
|
|
10158
|
+
getFieldState: mW
|
|
10159
10159
|
};
|
|
10160
10160
|
}
|
|
10161
10161
|
function useForm(e = {}) {
|
|
@@ -10882,9 +10882,22 @@ ${c}
|
|
|
10882
10882
|
], sqlExtensions = [
|
|
10883
10883
|
sql(),
|
|
10884
10884
|
EditorView.lineWrapping
|
|
10885
|
+
], markdownExtensions = [
|
|
10886
|
+
markdown(),
|
|
10887
|
+
EditorView.lineWrapping
|
|
10885
10888
|
];
|
|
10889
|
+
function readonlyCodeExtensions(e) {
|
|
10890
|
+
switch (e) {
|
|
10891
|
+
case "sql":
|
|
10892
|
+
return sqlExtensions;
|
|
10893
|
+
case "markdown":
|
|
10894
|
+
return markdownExtensions;
|
|
10895
|
+
default:
|
|
10896
|
+
return pythonExtensions;
|
|
10897
|
+
}
|
|
10898
|
+
}
|
|
10886
10899
|
const ReadonlyCode = (0, import_react.memo)((e) => {
|
|
10887
|
-
let r = (0, import_compiler_runtime$70.c)(
|
|
10900
|
+
let r = (0, import_compiler_runtime$70.c)(43), { theme: c } = useTheme(), l, u, d, f, m, h, g, _;
|
|
10888
10901
|
r[0] === e ? (l = r[1], u = r[2], d = r[3], f = r[4], m = r[5], h = r[6], g = r[7], _ = r[8]) : ({ code: u, className: l, initiallyHideCode: d, showHideCode: h, showCopyCode: g, insertNewCell: f, language: _, ...m } = e, r[0] = e, r[1] = l, r[2] = u, r[3] = d, r[4] = f, r[5] = m, r[6] = h, r[7] = g, r[8] = _);
|
|
10889
10902
|
let v = h === void 0 ? true : h, y = g === void 0 ? true : g, b = _ === void 0 ? "python" : _, [S, w] = (0, import_react.useState)(d), T;
|
|
10890
10903
|
r[9] === l ? T = r[10] : (T = cn("relative hover-actions-parent w-full overflow-hidden", l), r[9] = l, r[10] = T);
|
|
@@ -10916,8 +10929,10 @@ ${c}
|
|
|
10916
10929
|
}), r[23] = O, r[24] = j, r[25] = M, r[26] = I) : I = r[26];
|
|
10917
10930
|
let L = S && "opacity-20 h-8 overflow-hidden", R;
|
|
10918
10931
|
r[27] === L ? R = r[28] : (R = cn("cm", L), r[27] = L, r[28] = R);
|
|
10919
|
-
let z = c === "dark" ? "dark" : "light", B = !S, H
|
|
10920
|
-
r[29]
|
|
10932
|
+
let z = c === "dark" ? "dark" : "light", B = !S, H;
|
|
10933
|
+
r[29] === b ? H = r[30] : (H = readonlyCodeExtensions(b), r[29] = b, r[30] = H);
|
|
10934
|
+
let W;
|
|
10935
|
+
r[31] !== u || r[32] !== m || r[33] !== R || r[34] !== z || r[35] !== B || r[36] !== H ? (W = (0, import_jsx_runtime.jsx)(esm_default, {
|
|
10921
10936
|
...m,
|
|
10922
10937
|
className: R,
|
|
10923
10938
|
theme: z,
|
|
@@ -10926,16 +10941,16 @@ ${c}
|
|
|
10926
10941
|
extensions: H,
|
|
10927
10942
|
value: u,
|
|
10928
10943
|
readOnly: true
|
|
10929
|
-
}), r[
|
|
10944
|
+
}), r[31] = u, r[32] = m, r[33] = R, r[34] = z, r[35] = B, r[36] = H, r[37] = W) : W = r[37];
|
|
10930
10945
|
let G;
|
|
10931
|
-
return r[
|
|
10946
|
+
return r[38] !== W || r[39] !== T || r[40] !== E || r[41] !== I ? (G = (0, import_jsx_runtime.jsxs)("div", {
|
|
10932
10947
|
className: T,
|
|
10933
10948
|
children: [
|
|
10934
10949
|
E,
|
|
10935
10950
|
I,
|
|
10936
10951
|
W
|
|
10937
10952
|
]
|
|
10938
|
-
}), r[
|
|
10953
|
+
}), r[38] = W, r[39] = T, r[40] = E, r[41] = I, r[42] = G) : G = r[42], G;
|
|
10939
10954
|
});
|
|
10940
10955
|
ReadonlyCode.displayName = "ReadonlyCode";
|
|
10941
10956
|
var CopyButton = (e) => {
|
|
@@ -14439,21 +14454,21 @@ ${c}
|
|
|
14439
14454
|
_.pageSize,
|
|
14440
14455
|
_.pageIndex
|
|
14441
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];
|
|
14442
|
-
let { data: W, error: G, isPending:
|
|
14443
|
-
r[48] !==
|
|
14444
|
-
let
|
|
14445
|
-
r[51] !==
|
|
14446
|
-
|
|
14447
|
-
|
|
14448
|
-
|
|
14449
|
-
|
|
14450
|
-
|
|
14457
|
+
let { data: W, error: G, isPending: cW, isFetching: q } = useAsyncData(z, H), Z = useAtomValue(downloadSizeLimitAtom), lW;
|
|
14458
|
+
r[48] !== Z || r[49] !== e ? (lW = async () => !Z || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = Z, r[49] = e, r[50] = lW) : lW = r[50];
|
|
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] !== Z || 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
|
+
Z,
|
|
14462
|
+
uW,
|
|
14463
|
+
dW,
|
|
14464
|
+
fW,
|
|
14465
|
+
pW,
|
|
14451
14466
|
y,
|
|
14452
|
-
|
|
14453
|
-
|
|
14454
|
-
], r[51] =
|
|
14455
|
-
let { data:
|
|
14456
|
-
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (
|
|
14467
|
+
mW,
|
|
14468
|
+
hW
|
|
14469
|
+
], r[51] = Z, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = mW, r[58] = hW, r[59] = gW) : gW = r[59];
|
|
14470
|
+
let { data: _W, isPending: vW } = useAsyncData(lW, gW), yW = _W ?? null, bW = !!Z && e.showDownload && vW, xW;
|
|
14471
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (xW = async (e2) => ({
|
|
14457
14472
|
rows: await loadTableData((await u({
|
|
14458
14473
|
page_number: e2,
|
|
14459
14474
|
page_size: 1,
|
|
@@ -14462,17 +14477,17 @@ ${c}
|
|
|
14462
14477
|
filters: filtersToFilterGroup(w),
|
|
14463
14478
|
max_columns: null
|
|
14464
14479
|
})).data)
|
|
14465
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
14466
|
-
let
|
|
14467
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
14480
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = xW) : xW = r[64];
|
|
14481
|
+
let SW = xW, CW;
|
|
14482
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (CW = () => {
|
|
14468
14483
|
v(_temp4$4);
|
|
14469
|
-
}, r[65] =
|
|
14470
|
-
let
|
|
14471
|
-
r[66] ===
|
|
14472
|
-
|
|
14473
|
-
], r[66] =
|
|
14474
|
-
let
|
|
14475
|
-
r[68] === e ?
|
|
14484
|
+
}, r[65] = CW) : CW = r[65];
|
|
14485
|
+
let wW = W == null ? void 0 : W.totalRows, TW;
|
|
14486
|
+
r[66] === wW ? TW = r[67] : (TW = [
|
|
14487
|
+
wW
|
|
14488
|
+
], r[66] = wW, r[67] = TW), (0, import_react.useEffect)(CW, TW);
|
|
14489
|
+
let EW;
|
|
14490
|
+
r[68] === e ? EW = r[69] : (EW = async () => {
|
|
14476
14491
|
let r2 = isStaticNotebook();
|
|
14477
14492
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
14478
14493
|
data: null,
|
|
@@ -14481,22 +14496,22 @@ ${c}
|
|
|
14481
14496
|
value_counts: {},
|
|
14482
14497
|
show_charts: false
|
|
14483
14498
|
} : e.get_column_summaries({});
|
|
14484
|
-
}, r[68] = e, r[69] =
|
|
14485
|
-
let
|
|
14486
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
14499
|
+
}, r[68] = e, r[69] = EW);
|
|
14500
|
+
let DW;
|
|
14501
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (DW = [
|
|
14487
14502
|
e.get_column_summaries,
|
|
14488
14503
|
e.showColumnSummaries,
|
|
14489
14504
|
w,
|
|
14490
14505
|
y,
|
|
14491
14506
|
e.totalRows,
|
|
14492
14507
|
e.data
|
|
14493
|
-
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] =
|
|
14494
|
-
let { data:
|
|
14495
|
-
if (r[77] ===
|
|
14496
|
-
|
|
14497
|
-
},
|
|
14498
|
-
|
|
14499
|
-
], r[77] =
|
|
14508
|
+
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] = DW) : DW = r[76];
|
|
14509
|
+
let { data: OW, error: kW } = useAsyncData(EW, DW), AW, jW;
|
|
14510
|
+
if (r[77] === kW ? (AW = r[78], jW = r[79]) : (AW = () => {
|
|
14511
|
+
kW && Logger.error(kW);
|
|
14512
|
+
}, jW = [
|
|
14513
|
+
kW
|
|
14514
|
+
], r[77] = kW, r[78] = AW, r[79] = jW), (0, import_react.useEffect)(AW, jW), cW) {
|
|
14500
14515
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14501
14516
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14502
14517
|
milliseconds: 200,
|
|
@@ -14505,7 +14520,7 @@ ${c}
|
|
|
14505
14520
|
})
|
|
14506
14521
|
}), r[80] = c2, r[81] = l2), l2;
|
|
14507
14522
|
}
|
|
14508
|
-
let
|
|
14523
|
+
let MW = null;
|
|
14509
14524
|
if (G) {
|
|
14510
14525
|
Logger.error(G);
|
|
14511
14526
|
let e2;
|
|
@@ -14521,61 +14536,61 @@ ${c}
|
|
|
14521
14536
|
children: G.message || "An unknown error occurred"
|
|
14522
14537
|
})
|
|
14523
14538
|
]
|
|
14524
|
-
}), r[82] = G, r[83] = e2),
|
|
14539
|
+
}), r[82] = G, r[83] = e2), MW = e2;
|
|
14525
14540
|
}
|
|
14526
|
-
let
|
|
14527
|
-
r[84] === O ?
|
|
14541
|
+
let NW;
|
|
14542
|
+
r[84] === O ? NW = r[85] : (NW = () => {
|
|
14528
14543
|
j(!O);
|
|
14529
|
-
}, r[84] = O, r[85] =
|
|
14530
|
-
let
|
|
14531
|
-
r[86] !== l || r[87] !==
|
|
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 = q && !cW, 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
|
+
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, {
|
|
14532
14547
|
...e,
|
|
14533
|
-
data:
|
|
14534
|
-
rawData:
|
|
14535
|
-
columnSummaries:
|
|
14548
|
+
data: FW,
|
|
14549
|
+
rawData: IW,
|
|
14550
|
+
columnSummaries: OW,
|
|
14536
14551
|
sorting: m,
|
|
14537
14552
|
setSorting: h,
|
|
14538
14553
|
searchQuery: y,
|
|
14539
14554
|
setSearchQuery: b,
|
|
14540
14555
|
filters: w,
|
|
14541
14556
|
setFilters: T,
|
|
14542
|
-
reloading:
|
|
14543
|
-
totalRows:
|
|
14544
|
-
sizeBytes:
|
|
14545
|
-
sizeBytesIsLoading:
|
|
14557
|
+
reloading: LW,
|
|
14558
|
+
totalRows: RW,
|
|
14559
|
+
sizeBytes: yW,
|
|
14560
|
+
sizeBytesIsLoading: bW,
|
|
14546
14561
|
paginationState: _,
|
|
14547
14562
|
setPaginationState: v,
|
|
14548
|
-
cellStyles:
|
|
14549
|
-
cellHoverTexts:
|
|
14550
|
-
toggleDisplayHeader:
|
|
14563
|
+
cellStyles: zW,
|
|
14564
|
+
cellHoverTexts: BW,
|
|
14565
|
+
toggleDisplayHeader: PW,
|
|
14551
14566
|
isChartBuilderOpen: O,
|
|
14552
|
-
getRow:
|
|
14567
|
+
getRow: SW,
|
|
14553
14568
|
cellId: l,
|
|
14554
14569
|
maxHeight: e.maxHeight
|
|
14555
|
-
}), r[86] = l, r[87] =
|
|
14556
|
-
let
|
|
14557
|
-
r[105] !== l || r[106] !==
|
|
14570
|
+
}), 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, r[104] = VW) : VW = r[104];
|
|
14571
|
+
let HW = VW, UW;
|
|
14572
|
+
r[105] !== l || r[106] !== HW || r[107] !== (W == null ? void 0 : W.rows) || r[108] !== O || r[109] !== e.fieldTypes || r[110] !== e.get_data_url || r[111] !== e.showChartBuilder || r[112] !== e.totalColumns || r[113] !== e.totalRows ? (UW = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
14558
14573
|
displayHeader: O,
|
|
14559
14574
|
onCloseChartBuilder: () => j(false),
|
|
14560
14575
|
data: (W == null ? void 0 : W.rows) || [],
|
|
14561
14576
|
columns: e.totalColumns,
|
|
14562
14577
|
totalRows: e.totalRows,
|
|
14563
|
-
dataTable:
|
|
14578
|
+
dataTable: HW,
|
|
14564
14579
|
getDataUrl: e.get_data_url,
|
|
14565
14580
|
fieldTypes: e.fieldTypes,
|
|
14566
14581
|
cellId: l
|
|
14567
|
-
}) :
|
|
14568
|
-
let
|
|
14569
|
-
return r[115] !==
|
|
14582
|
+
}) : HW, r[105] = l, r[106] = HW, r[107] = W == null ? void 0 : W.rows, r[108] = O, r[109] = e.fieldTypes, r[110] = e.get_data_url, r[111] = e.showChartBuilder, r[112] = e.totalColumns, r[113] = e.totalRows, r[114] = UW) : UW = r[114];
|
|
14583
|
+
let WW;
|
|
14584
|
+
return r[115] !== MW || r[116] !== UW ? (WW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14570
14585
|
children: [
|
|
14571
|
-
|
|
14572
|
-
|
|
14586
|
+
MW,
|
|
14587
|
+
UW
|
|
14573
14588
|
]
|
|
14574
|
-
}), r[115] =
|
|
14589
|
+
}), r[115] = MW, r[116] = UW, r[117] = WW) : WW = r[117], WW;
|
|
14575
14590
|
});
|
|
14576
14591
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
14577
|
-
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:
|
|
14578
|
-
let
|
|
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: cW, filters: q, setFilters: Z, reloading: lW, 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
|
+
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)(() => {
|
|
14579
14594
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
14580
14595
|
let e2 = toFieldTypes(O);
|
|
14581
14596
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -14584,13 +14599,13 @@ ${c}
|
|
|
14584
14599
|
}, [
|
|
14585
14600
|
O,
|
|
14586
14601
|
L
|
|
14587
|
-
]),
|
|
14602
|
+
]), BW = useDeepCompareMemoize(O ?? inferFieldTypes(r)), VW = (0, import_react.useMemo)(() => f === "all" ? BW : BW.slice(0, f), [
|
|
14588
14603
|
f,
|
|
14589
|
-
|
|
14590
|
-
]),
|
|
14604
|
+
BW
|
|
14605
|
+
]), HW = (0, import_react.useMemo)(() => {
|
|
14591
14606
|
let e2 = {};
|
|
14592
14607
|
if (r && r.length > 0) {
|
|
14593
|
-
for (let [c2, l2] of
|
|
14608
|
+
for (let [c2, l2] of VW) if (l2[0] === "number") {
|
|
14594
14609
|
let l3 = 0;
|
|
14595
14610
|
for (let e3 of r) {
|
|
14596
14611
|
let r2 = e3[c2];
|
|
@@ -14605,95 +14620,95 @@ ${c}
|
|
|
14605
14620
|
return e2;
|
|
14606
14621
|
}, [
|
|
14607
14622
|
r,
|
|
14608
|
-
|
|
14609
|
-
]),
|
|
14610
|
-
O || (w = false),
|
|
14611
|
-
let
|
|
14612
|
-
rowHeaders:
|
|
14623
|
+
VW
|
|
14624
|
+
]), UW = useDeepCompareMemoize(T), WW = useDeepCompareMemoize(pW), GW = useDeepCompareMemoize(mW), KW = useDeepCompareMemoize(hW), qW = useDeepCompareMemoize(zW), JW = useDeepCompareMemoize(HW), YW = VW.length;
|
|
14625
|
+
O || (w = false), RW && (m = null);
|
|
14626
|
+
let XW = (0, import_react.useMemo)(() => generateColumns({
|
|
14627
|
+
rowHeaders: UW,
|
|
14613
14628
|
selection: m,
|
|
14614
|
-
chartSpecModel:
|
|
14615
|
-
fieldTypes:
|
|
14616
|
-
textJustifyColumns:
|
|
14617
|
-
wrappedColumns:
|
|
14618
|
-
columnWidths:
|
|
14619
|
-
headerTooltip:
|
|
14629
|
+
chartSpecModel: qW,
|
|
14630
|
+
fieldTypes: VW,
|
|
14631
|
+
textJustifyColumns: WW,
|
|
14632
|
+
wrappedColumns: GW,
|
|
14633
|
+
columnWidths: KW,
|
|
14634
|
+
headerTooltip: gW,
|
|
14620
14635
|
showDataTypes: w,
|
|
14621
|
-
calculateTopKRows:
|
|
14622
|
-
fractionDigitsByColumn:
|
|
14636
|
+
calculateTopKRows: wW,
|
|
14637
|
+
fractionDigitsByColumn: JW
|
|
14623
14638
|
}), [
|
|
14624
14639
|
m,
|
|
14625
14640
|
w,
|
|
14626
|
-
|
|
14627
|
-
|
|
14628
|
-
IW,
|
|
14629
|
-
zW,
|
|
14630
|
-
BW,
|
|
14641
|
+
qW,
|
|
14642
|
+
UW,
|
|
14631
14643
|
VW,
|
|
14632
|
-
|
|
14633
|
-
|
|
14634
|
-
|
|
14635
|
-
|
|
14644
|
+
WW,
|
|
14645
|
+
GW,
|
|
14646
|
+
KW,
|
|
14647
|
+
gW,
|
|
14648
|
+
wW,
|
|
14649
|
+
JW
|
|
14650
|
+
]), ZW = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
14636
14651
|
e2,
|
|
14637
14652
|
true
|
|
14638
14653
|
])), [
|
|
14639
14654
|
h
|
|
14640
|
-
]),
|
|
14655
|
+
]), QW = useEvent_default((e2) => {
|
|
14641
14656
|
if (m === "single") {
|
|
14642
14657
|
let r2 = Functions.asUpdater(e2)({});
|
|
14643
14658
|
z(Object.keys(r2).slice(0, 1));
|
|
14644
14659
|
}
|
|
14645
14660
|
if (m === "multi") {
|
|
14646
|
-
let r2 = Functions.asUpdater(e2)(
|
|
14661
|
+
let r2 = Functions.asUpdater(e2)(ZW);
|
|
14647
14662
|
z(Object.keys(r2));
|
|
14648
14663
|
}
|
|
14649
|
-
}),
|
|
14650
|
-
if (
|
|
14664
|
+
}), $W = useEvent_default((e2) => {
|
|
14665
|
+
if (MW(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
14651
14666
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
14652
14667
|
r2 !== null && M((e3) => ({
|
|
14653
14668
|
...e3,
|
|
14654
14669
|
pageIndex: r2
|
|
14655
14670
|
}));
|
|
14656
|
-
}),
|
|
14657
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
14658
|
-
}),
|
|
14659
|
-
if (!(!
|
|
14671
|
+
}), eG = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), tG = useEvent_default((e2) => {
|
|
14672
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(eG).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(eG));
|
|
14673
|
+
}), nG = m === "multi" || m === "single", rG = y && !!TW, iG = isInVscodeExtension(), aG = isIslands(), oG = (0, import_react.useMemo)(() => {
|
|
14674
|
+
if (!(!PW || !(b || rG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
14660
14675
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
14661
|
-
rowIdx:
|
|
14662
|
-
setRowIdx:
|
|
14676
|
+
rowIdx: jW,
|
|
14677
|
+
setRowIdx: $W,
|
|
14663
14678
|
totalRows: l,
|
|
14664
|
-
fieldTypes:
|
|
14665
|
-
getRow:
|
|
14666
|
-
isSelectable:
|
|
14667
|
-
isRowSelected: !!
|
|
14668
|
-
handleRowSelectionChange:
|
|
14669
|
-
previewColumn:
|
|
14670
|
-
totalColumns:
|
|
14671
|
-
tableId:
|
|
14679
|
+
fieldTypes: BW,
|
|
14680
|
+
getRow: EW,
|
|
14681
|
+
isSelectable: nG,
|
|
14682
|
+
isRowSelected: !!ZW[jW],
|
|
14683
|
+
handleRowSelectionChange: QW,
|
|
14684
|
+
previewColumn: TW,
|
|
14685
|
+
totalColumns: _W,
|
|
14686
|
+
tableId: kW,
|
|
14672
14687
|
table: e2,
|
|
14673
|
-
showRowExplorer: b &&
|
|
14674
|
-
showColumnExplorer:
|
|
14675
|
-
activeTab:
|
|
14676
|
-
onTabChange:
|
|
14688
|
+
showRowExplorer: b && !iG,
|
|
14689
|
+
showColumnExplorer: rG && !iG,
|
|
14690
|
+
activeTab: IW,
|
|
14691
|
+
onTabChange: LW
|
|
14677
14692
|
})
|
|
14678
14693
|
});
|
|
14679
14694
|
}, [
|
|
14680
|
-
|
|
14695
|
+
PW,
|
|
14681
14696
|
b,
|
|
14682
|
-
|
|
14683
|
-
|
|
14684
|
-
|
|
14697
|
+
rG,
|
|
14698
|
+
jW,
|
|
14699
|
+
$W,
|
|
14685
14700
|
l,
|
|
14686
|
-
|
|
14687
|
-
|
|
14701
|
+
BW,
|
|
14702
|
+
EW,
|
|
14703
|
+
nG,
|
|
14688
14704
|
ZW,
|
|
14689
|
-
|
|
14690
|
-
|
|
14691
|
-
|
|
14692
|
-
|
|
14693
|
-
|
|
14694
|
-
|
|
14695
|
-
|
|
14696
|
-
MW
|
|
14705
|
+
QW,
|
|
14706
|
+
TW,
|
|
14707
|
+
_W,
|
|
14708
|
+
kW,
|
|
14709
|
+
iG,
|
|
14710
|
+
IW,
|
|
14711
|
+
LW
|
|
14697
14712
|
]);
|
|
14698
14713
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14699
14714
|
children: [
|
|
@@ -14705,27 +14720,27 @@ ${c}
|
|
|
14705
14720
|
" rows."
|
|
14706
14721
|
]
|
|
14707
14722
|
}),
|
|
14708
|
-
|
|
14723
|
+
YW < _W && YW > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14709
14724
|
className: "mb-1 rounded",
|
|
14710
14725
|
children: [
|
|
14711
14726
|
"Result clipped. Showing ",
|
|
14712
|
-
|
|
14727
|
+
YW,
|
|
14713
14728
|
" of ",
|
|
14714
|
-
|
|
14729
|
+
_W,
|
|
14715
14730
|
" columns."
|
|
14716
14731
|
]
|
|
14717
14732
|
}),
|
|
14718
|
-
|
|
14733
|
+
RW && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14719
14734
|
className: "mb-1 rounded",
|
|
14720
14735
|
children: [
|
|
14721
14736
|
"Showing the first ",
|
|
14722
14737
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14723
|
-
children: prettyNumber(r.length,
|
|
14738
|
+
children: prettyNumber(r.length, AW)
|
|
14724
14739
|
}),
|
|
14725
14740
|
" ",
|
|
14726
14741
|
"of ",
|
|
14727
14742
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14728
|
-
children: prettyNumber(l,
|
|
14743
|
+
children: prettyNumber(l, AW)
|
|
14729
14744
|
}),
|
|
14730
14745
|
" rows. Increase the table's ",
|
|
14731
14746
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -14739,7 +14754,7 @@ ${c}
|
|
|
14739
14754
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
14740
14755
|
}),
|
|
14741
14756
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
14742
|
-
value:
|
|
14757
|
+
value: zW,
|
|
14743
14758
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
14744
14759
|
label: e,
|
|
14745
14760
|
align: "top",
|
|
@@ -14747,14 +14762,14 @@ ${c}
|
|
|
14747
14762
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
14748
14763
|
data: r,
|
|
14749
14764
|
rawData: c,
|
|
14750
|
-
columns:
|
|
14765
|
+
columns: XW,
|
|
14751
14766
|
className: R,
|
|
14752
|
-
maxHeight:
|
|
14767
|
+
maxHeight: OW,
|
|
14753
14768
|
sorting: B,
|
|
14754
14769
|
totalRows: l,
|
|
14755
14770
|
sizeBytes: u,
|
|
14756
14771
|
sizeBytesIsLoading: d,
|
|
14757
|
-
totalColumns:
|
|
14772
|
+
totalColumns: _W,
|
|
14758
14773
|
manualSorting: true,
|
|
14759
14774
|
setSorting: H,
|
|
14760
14775
|
pagination: p,
|
|
@@ -14762,37 +14777,37 @@ ${c}
|
|
|
14762
14777
|
selection: m,
|
|
14763
14778
|
paginationState: j,
|
|
14764
14779
|
setPaginationState: M,
|
|
14765
|
-
rowSelection:
|
|
14766
|
-
cellSelection:
|
|
14767
|
-
cellStyling:
|
|
14768
|
-
hoverTemplate:
|
|
14769
|
-
cellHoverTexts:
|
|
14780
|
+
rowSelection: ZW,
|
|
14781
|
+
cellSelection: eG,
|
|
14782
|
+
cellStyling: yW,
|
|
14783
|
+
hoverTemplate: bW,
|
|
14784
|
+
cellHoverTexts: xW,
|
|
14770
14785
|
downloadAs: _ ? I : void 0,
|
|
14771
14786
|
showSearch: W,
|
|
14772
14787
|
searchQuery: G,
|
|
14773
|
-
onSearchQueryChange:
|
|
14788
|
+
onSearchQueryChange: cW,
|
|
14774
14789
|
showFilters: g,
|
|
14775
|
-
filters:
|
|
14776
|
-
onFiltersChange:
|
|
14777
|
-
calculateTopKRows:
|
|
14778
|
-
reloading:
|
|
14779
|
-
onRowSelectionChange:
|
|
14780
|
-
freezeColumnsLeft:
|
|
14781
|
-
freezeColumnsRight:
|
|
14782
|
-
hiddenColumns:
|
|
14783
|
-
onCellSelectionChange:
|
|
14784
|
-
getRowIds:
|
|
14785
|
-
toggleDisplayHeader:
|
|
14786
|
-
showChartBuilder: S && !
|
|
14787
|
-
isChartBuilderOpen:
|
|
14790
|
+
filters: q,
|
|
14791
|
+
onFiltersChange: Z,
|
|
14792
|
+
calculateTopKRows: wW,
|
|
14793
|
+
reloading: lW,
|
|
14794
|
+
onRowSelectionChange: QW,
|
|
14795
|
+
freezeColumnsLeft: uW,
|
|
14796
|
+
freezeColumnsRight: dW,
|
|
14797
|
+
hiddenColumns: fW,
|
|
14798
|
+
onCellSelectionChange: tG,
|
|
14799
|
+
getRowIds: vW,
|
|
14800
|
+
toggleDisplayHeader: SW,
|
|
14801
|
+
showChartBuilder: S && !aG,
|
|
14802
|
+
isChartBuilderOpen: CW,
|
|
14788
14803
|
showPageSizeSelector: v,
|
|
14789
|
-
showTableExplorer: (b ||
|
|
14790
|
-
togglePanel:
|
|
14791
|
-
isPanelOpen:
|
|
14792
|
-
isAnyPanelOpen:
|
|
14793
|
-
viewedRowIdx:
|
|
14794
|
-
onViewedRowChange: (e2) =>
|
|
14795
|
-
renderTableExplorerPanel:
|
|
14804
|
+
showTableExplorer: (b || rG) && !iG && !aG,
|
|
14805
|
+
togglePanel: FW,
|
|
14806
|
+
isPanelOpen: NW,
|
|
14807
|
+
isAnyPanelOpen: PW,
|
|
14808
|
+
viewedRowIdx: jW,
|
|
14809
|
+
onViewedRowChange: (e2) => MW(e2),
|
|
14810
|
+
renderTableExplorerPanel: oG
|
|
14796
14811
|
})
|
|
14797
14812
|
})
|
|
14798
14813
|
})
|
|
@@ -16844,29 +16859,29 @@ ${c}
|
|
|
16844
16859
|
], r[2] = S, r[3] = w);
|
|
16845
16860
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
16846
16861
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
16847
|
-
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M,
|
|
16848
|
-
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, cW = z == null ? void 0 : z.length, [q, Z] = (0, import_react.useState)(f || EMPTY), lW = (0, import_react.useRef)(null), uW;
|
|
16863
|
+
r[6] === d ? uW = r[7] : (uW = (e2) => {
|
|
16849
16864
|
var _a3;
|
|
16850
|
-
d && e2 !== "transform" && ((_a3 =
|
|
16851
|
-
}, r[6] = d, r[7] =
|
|
16852
|
-
let
|
|
16853
|
-
r[8] === q ?
|
|
16854
|
-
|
|
16855
|
-
}, r[8] = q, r[9] =
|
|
16856
|
-
let
|
|
16857
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
16858
|
-
let e2 =
|
|
16865
|
+
d && e2 !== "transform" && ((_a3 = lW.current) == null ? void 0 : _a3.submit());
|
|
16866
|
+
}, r[6] = d, r[7] = uW);
|
|
16867
|
+
let dW = uW, fW = (0, import_react.useRef)(q), pW;
|
|
16868
|
+
r[8] === q ? pW = r[9] : (pW = () => {
|
|
16869
|
+
fW.current = q;
|
|
16870
|
+
}, r[8] = q, r[9] = pW), (0, import_react.useEffect)(pW);
|
|
16871
|
+
let mW;
|
|
16872
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (mW = () => {
|
|
16873
|
+
let e2 = fW.current;
|
|
16859
16874
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
16860
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
16861
|
-
let
|
|
16862
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
16875
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = mW) : mW = r[12];
|
|
16876
|
+
let hW = f == null ? void 0 : f.transforms.length, gW;
|
|
16877
|
+
r[13] !== T || r[14] !== p || r[15] !== hW ? (gW = [
|
|
16863
16878
|
T,
|
|
16864
|
-
|
|
16865
|
-
|
|
16879
|
+
hW,
|
|
16880
|
+
fW,
|
|
16866
16881
|
p
|
|
16867
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
16868
|
-
let
|
|
16869
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16882
|
+
], r[13] = T, r[14] = p, r[15] = hW, r[16] = gW) : gW = r[16], (0, import_react.useEffect)(mW, gW);
|
|
16883
|
+
let _W;
|
|
16884
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_W = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16870
16885
|
value: "transform",
|
|
16871
16886
|
className: "text-xs py-1",
|
|
16872
16887
|
children: [
|
|
@@ -16875,9 +16890,9 @@ ${c}
|
|
|
16875
16890
|
}),
|
|
16876
16891
|
"Transform"
|
|
16877
16892
|
]
|
|
16878
|
-
}), r[17] =
|
|
16879
|
-
let
|
|
16880
|
-
r[18] === H ?
|
|
16893
|
+
}), r[17] = _W) : _W = r[17];
|
|
16894
|
+
let vW;
|
|
16895
|
+
r[18] === H ? vW = r[19] : (vW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16881
16896
|
value: "python-code",
|
|
16882
16897
|
className: "text-xs py-1",
|
|
16883
16898
|
children: [
|
|
@@ -16886,9 +16901,9 @@ ${c}
|
|
|
16886
16901
|
}),
|
|
16887
16902
|
"Python Code"
|
|
16888
16903
|
]
|
|
16889
|
-
}), r[18] = H, r[19] =
|
|
16890
|
-
let
|
|
16891
|
-
r[20] === W ?
|
|
16904
|
+
}), r[18] = H, r[19] = vW);
|
|
16905
|
+
let yW;
|
|
16906
|
+
r[20] === W ? yW = r[21] : (yW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16892
16907
|
value: "sql-code",
|
|
16893
16908
|
className: "text-xs py-1",
|
|
16894
16909
|
children: [
|
|
@@ -16897,54 +16912,54 @@ ${c}
|
|
|
16897
16912
|
}),
|
|
16898
16913
|
"SQL Code"
|
|
16899
16914
|
]
|
|
16900
|
-
}), r[20] = W, r[21] =
|
|
16901
|
-
let
|
|
16902
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16915
|
+
}), r[20] = W, r[21] = yW);
|
|
16916
|
+
let bW;
|
|
16917
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (bW = (0, import_jsx_runtime.jsx)("div", {
|
|
16903
16918
|
className: "grow"
|
|
16904
|
-
}), r[22] =
|
|
16905
|
-
let
|
|
16906
|
-
r[23] !==
|
|
16919
|
+
}), r[22] = bW) : bW = r[22];
|
|
16920
|
+
let xW;
|
|
16921
|
+
r[23] !== vW || r[24] !== yW ? (xW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
16907
16922
|
className: "h-8",
|
|
16908
16923
|
children: [
|
|
16909
|
-
|
|
16910
|
-
|
|
16911
|
-
|
|
16912
|
-
|
|
16924
|
+
_W,
|
|
16925
|
+
vW,
|
|
16926
|
+
yW,
|
|
16927
|
+
bW
|
|
16913
16928
|
]
|
|
16914
|
-
}), r[23] =
|
|
16915
|
-
let
|
|
16916
|
-
r[26] === j ?
|
|
16929
|
+
}), r[23] = vW, r[24] = yW, r[25] = xW) : xW = r[25];
|
|
16930
|
+
let SW;
|
|
16931
|
+
r[26] === j ? SW = r[27] : (SW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16917
16932
|
size: "small"
|
|
16918
|
-
}), r[26] = j, r[27] =
|
|
16919
|
-
let
|
|
16920
|
-
r[28] !==
|
|
16933
|
+
}), r[26] = j, r[27] = SW);
|
|
16934
|
+
let CW;
|
|
16935
|
+
r[28] !== xW || r[29] !== SW ? (CW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16921
16936
|
className: "flex items-center gap-2",
|
|
16922
16937
|
children: [
|
|
16923
|
-
|
|
16924
|
-
|
|
16938
|
+
xW,
|
|
16939
|
+
SW
|
|
16925
16940
|
]
|
|
16926
|
-
}), r[28] =
|
|
16927
|
-
let
|
|
16928
|
-
r[31] !== p || r[32] !== f ? (
|
|
16929
|
-
dequal(e2, f) || (p(e2),
|
|
16930
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
16931
|
-
let
|
|
16932
|
-
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !==
|
|
16941
|
+
}), r[28] = xW, r[29] = SW, r[30] = CW) : CW = r[30];
|
|
16942
|
+
let wW;
|
|
16943
|
+
r[31] !== p || r[32] !== f ? (wW = (e2) => {
|
|
16944
|
+
dequal(e2, f) || (p(e2), Z(e2));
|
|
16945
|
+
}, r[31] = p, r[32] = f, r[33] = wW) : wW = r[33];
|
|
16946
|
+
let TW;
|
|
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, {
|
|
16933
16948
|
value: "transform",
|
|
16934
16949
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16935
16950
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
16936
|
-
ref:
|
|
16951
|
+
ref: lW,
|
|
16937
16952
|
initialValue: q,
|
|
16938
16953
|
columns: c,
|
|
16939
|
-
onChange:
|
|
16940
|
-
onInvalidChange:
|
|
16954
|
+
onChange: wW,
|
|
16955
|
+
onInvalidChange: Z,
|
|
16941
16956
|
getColumnValues: h,
|
|
16942
16957
|
columnTypesPerStep: B,
|
|
16943
16958
|
lazy: d
|
|
16944
16959
|
})
|
|
16945
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
16946
|
-
let
|
|
16947
|
-
r[41] === H ?
|
|
16960
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = wW, r[40] = TW) : TW = r[40];
|
|
16961
|
+
let EW;
|
|
16962
|
+
r[41] === H ? EW = r[42] : (EW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16948
16963
|
value: "python-code",
|
|
16949
16964
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16950
16965
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16953,9 +16968,9 @@ ${c}
|
|
|
16953
16968
|
code: H,
|
|
16954
16969
|
language: "python"
|
|
16955
16970
|
})
|
|
16956
|
-
}), r[41] = H, r[42] =
|
|
16957
|
-
let
|
|
16958
|
-
r[43] === W ?
|
|
16971
|
+
}), r[41] = H, r[42] = EW);
|
|
16972
|
+
let DW;
|
|
16973
|
+
r[43] === W ? DW = r[44] : (DW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16959
16974
|
value: "sql-code",
|
|
16960
16975
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16961
16976
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16964,35 +16979,35 @@ ${c}
|
|
|
16964
16979
|
code: W,
|
|
16965
16980
|
language: "sql"
|
|
16966
16981
|
})
|
|
16967
|
-
}), r[43] = W, r[44] =
|
|
16968
|
-
let
|
|
16969
|
-
r[45] !==
|
|
16982
|
+
}), r[43] = W, r[44] = DW);
|
|
16983
|
+
let OW;
|
|
16984
|
+
r[45] !== dW || r[46] !== CW || r[47] !== TW || r[48] !== EW || r[49] !== DW ? (OW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
16970
16985
|
defaultValue: "transform",
|
|
16971
|
-
onValueChange:
|
|
16986
|
+
onValueChange: dW,
|
|
16972
16987
|
children: [
|
|
16973
|
-
|
|
16974
|
-
|
|
16975
|
-
|
|
16976
|
-
|
|
16988
|
+
CW,
|
|
16989
|
+
TW,
|
|
16990
|
+
EW,
|
|
16991
|
+
DW
|
|
16977
16992
|
]
|
|
16978
|
-
}), r[45] =
|
|
16979
|
-
let
|
|
16980
|
-
r[51] === O ?
|
|
16993
|
+
}), r[45] = dW, r[46] = CW, r[47] = TW, r[48] = EW, r[49] = DW, r[50] = OW) : OW = r[50];
|
|
16994
|
+
let kW;
|
|
16995
|
+
r[51] === O ? kW = r[52] : (kW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
16981
16996
|
error: O
|
|
16982
|
-
}), r[51] = O, r[52] =
|
|
16983
|
-
let
|
|
16984
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
16997
|
+
}), r[51] = O, r[52] = kW);
|
|
16998
|
+
let AW = I || "", jW = L ?? 0, MW = cW ?? 0, NW = R || Arrays.EMPTY, PW = L && L > 5 || false, FW;
|
|
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, {
|
|
16985
17000
|
label: null,
|
|
16986
17001
|
className: "rounded-b border-x border-b",
|
|
16987
|
-
data:
|
|
17002
|
+
data: AW,
|
|
16988
17003
|
hasStableRowId: false,
|
|
16989
|
-
totalRows:
|
|
16990
|
-
totalColumns:
|
|
17004
|
+
totalRows: jW,
|
|
17005
|
+
totalColumns: MW,
|
|
16991
17006
|
maxColumns: "all",
|
|
16992
17007
|
pageSize: l,
|
|
16993
17008
|
pagination: true,
|
|
16994
17009
|
fieldTypes: z,
|
|
16995
|
-
rowHeaders:
|
|
17010
|
+
rowHeaders: NW,
|
|
16996
17011
|
showDownload: u,
|
|
16997
17012
|
download_as: _,
|
|
16998
17013
|
get_size_bytes: v,
|
|
@@ -17002,7 +17017,7 @@ ${c}
|
|
|
17002
17017
|
showColumnSummaries: false,
|
|
17003
17018
|
showDataTypes: true,
|
|
17004
17019
|
get_column_summaries: getColumnSummaries,
|
|
17005
|
-
showPageSizeSelector:
|
|
17020
|
+
showPageSizeSelector: PW,
|
|
17006
17021
|
showColumnExplorer: false,
|
|
17007
17022
|
showRowExplorer: true,
|
|
17008
17023
|
showChartBuilder: false,
|
|
@@ -17011,15 +17026,15 @@ ${c}
|
|
|
17011
17026
|
selection: null,
|
|
17012
17027
|
lazy: false,
|
|
17013
17028
|
host: y
|
|
17014
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
17015
|
-
let
|
|
17016
|
-
return r[66] !==
|
|
17029
|
+
}), 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, r[65] = FW) : FW = r[65];
|
|
17030
|
+
let IW;
|
|
17031
|
+
return r[66] !== OW || r[67] !== kW || r[68] !== FW ? (IW = (0, import_jsx_runtime.jsxs)("div", {
|
|
17017
17032
|
children: [
|
|
17018
|
-
|
|
17019
|
-
|
|
17020
|
-
|
|
17033
|
+
OW,
|
|
17034
|
+
kW,
|
|
17035
|
+
FW
|
|
17021
17036
|
]
|
|
17022
|
-
}), r[66] =
|
|
17037
|
+
}), r[66] = OW, r[67] = kW, r[68] = FW, r[69] = IW) : IW = r[69], IW;
|
|
17023
17038
|
});
|
|
17024
17039
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
17025
17040
|
function getColumnSummaries() {
|
|
@@ -17210,23 +17225,23 @@ ${c}
|
|
|
17210
17225
|
}, [
|
|
17211
17226
|
H
|
|
17212
17227
|
]);
|
|
17213
|
-
let
|
|
17228
|
+
let cW = (R == null ? void 0 : R.files) ?? [], q = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", lW = l === "file" || l === "all", dW = cW.filter((e2) => Z && e2.is_directory || lW && !e2.is_directory), fW = dW.length > 0 && dW.every((e2) => q.has(e2.path));
|
|
17214
17229
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
17215
17230
|
kind: "danger",
|
|
17216
17231
|
children: z.message
|
|
17217
17232
|
});
|
|
17218
|
-
let
|
|
17233
|
+
let pW = PathBuilder.guessDeliminator(c).deliminator, mW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
17219
17234
|
children: e2.path
|
|
17220
17235
|
}, e2.id));
|
|
17221
|
-
function
|
|
17236
|
+
function hW(e2) {
|
|
17222
17237
|
var _a4;
|
|
17223
17238
|
if (v) return;
|
|
17224
17239
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
17225
|
-
if (g ===
|
|
17240
|
+
if (g === pW) {
|
|
17226
17241
|
y(false);
|
|
17227
17242
|
return;
|
|
17228
17243
|
}
|
|
17229
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
17244
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = pW);
|
|
17230
17245
|
}
|
|
17231
17246
|
let r2 = e2.length < c.length;
|
|
17232
17247
|
if (f && r2) {
|
|
@@ -17239,7 +17254,7 @@ ${c}
|
|
|
17239
17254
|
}
|
|
17240
17255
|
M.current = ((_a4 = j.current) == null ? void 0 : _a4.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
17241
17256
|
}
|
|
17242
|
-
function
|
|
17257
|
+
function gW({ path: e2, name: r2, isDirectory: c2 }) {
|
|
17243
17258
|
return {
|
|
17244
17259
|
id: e2,
|
|
17245
17260
|
name: r2,
|
|
@@ -17247,27 +17262,27 @@ ${c}
|
|
|
17247
17262
|
is_directory: c2
|
|
17248
17263
|
};
|
|
17249
17264
|
}
|
|
17250
|
-
function
|
|
17251
|
-
let f2 =
|
|
17265
|
+
function _W({ path: c2, name: l2, isDirectory: d2 }) {
|
|
17266
|
+
let f2 = gW({
|
|
17252
17267
|
path: c2,
|
|
17253
17268
|
name: l2,
|
|
17254
17269
|
isDirectory: d2
|
|
17255
17270
|
});
|
|
17256
|
-
|
|
17271
|
+
q.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
17257
17272
|
...e,
|
|
17258
17273
|
f2
|
|
17259
17274
|
] : [
|
|
17260
17275
|
f2
|
|
17261
17276
|
]);
|
|
17262
17277
|
}
|
|
17263
|
-
function
|
|
17278
|
+
function yW() {
|
|
17264
17279
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
17265
17280
|
}
|
|
17266
|
-
function
|
|
17281
|
+
function bW() {
|
|
17267
17282
|
let c2 = [];
|
|
17268
|
-
for (let e2 of
|
|
17269
|
-
if (!Z && e2.is_directory ||
|
|
17270
|
-
let r2 =
|
|
17283
|
+
for (let e2 of cW) {
|
|
17284
|
+
if (!Z && e2.is_directory || q.has(e2.path)) continue;
|
|
17285
|
+
let r2 = gW({
|
|
17271
17286
|
path: e2.path,
|
|
17272
17287
|
name: e2.name,
|
|
17273
17288
|
isDirectory: e2.is_directory
|
|
@@ -17279,20 +17294,20 @@ ${c}
|
|
|
17279
17294
|
...c2
|
|
17280
17295
|
]);
|
|
17281
17296
|
}
|
|
17282
|
-
let
|
|
17297
|
+
let xW = [
|
|
17283
17298
|
{
|
|
17284
17299
|
key: "parent",
|
|
17285
17300
|
name: PARENT_DIRECTORY,
|
|
17286
17301
|
Icon: CornerLeftUp,
|
|
17287
17302
|
isSelected: false,
|
|
17288
17303
|
canSelect: false,
|
|
17289
|
-
onPrimary: () =>
|
|
17304
|
+
onPrimary: () => hW(PARENT_DIRECTORY),
|
|
17290
17305
|
onToggleSelect: null
|
|
17291
17306
|
},
|
|
17292
|
-
...
|
|
17307
|
+
...cW.map((e2) => {
|
|
17293
17308
|
let r2 = e2.path;
|
|
17294
17309
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17295
|
-
let c2 = Z && e2.is_directory ||
|
|
17310
|
+
let c2 = Z && e2.is_directory || lW && !e2.is_directory, l2 = q.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => _W({
|
|
17296
17311
|
path: r2,
|
|
17297
17312
|
name: e2.name,
|
|
17298
17313
|
isDirectory: e2.is_directory
|
|
@@ -17303,46 +17318,46 @@ ${c}
|
|
|
17303
17318
|
Icon: FILE_ICON[u2],
|
|
17304
17319
|
isSelected: l2,
|
|
17305
17320
|
canSelect: c2,
|
|
17306
|
-
onPrimary: e2.is_directory ? () =>
|
|
17321
|
+
onPrimary: e2.is_directory ? () => hW(r2) : c2 ? d2 : () => {
|
|
17307
17322
|
},
|
|
17308
17323
|
onToggleSelect: c2 ? d2 : null
|
|
17309
17324
|
};
|
|
17310
17325
|
})
|
|
17311
17326
|
];
|
|
17312
|
-
function
|
|
17327
|
+
function SW(e2) {
|
|
17313
17328
|
var _a4;
|
|
17314
17329
|
E(e2), (_a4 = O.current[e2]) == null ? void 0 : _a4.focus();
|
|
17315
17330
|
}
|
|
17316
|
-
function
|
|
17331
|
+
function CW(e2, r2) {
|
|
17317
17332
|
var _a4, _b3;
|
|
17318
|
-
let c2 =
|
|
17333
|
+
let c2 = xW.length - 1;
|
|
17319
17334
|
switch (e2.key) {
|
|
17320
17335
|
case "ArrowDown":
|
|
17321
|
-
e2.preventDefault(),
|
|
17336
|
+
e2.preventDefault(), SW(Math.min(r2 + 1, c2));
|
|
17322
17337
|
break;
|
|
17323
17338
|
case "ArrowUp":
|
|
17324
|
-
e2.preventDefault(),
|
|
17339
|
+
e2.preventDefault(), SW(Math.max(r2 - 1, 0));
|
|
17325
17340
|
break;
|
|
17326
17341
|
case "Home":
|
|
17327
|
-
e2.preventDefault(),
|
|
17342
|
+
e2.preventDefault(), SW(0);
|
|
17328
17343
|
break;
|
|
17329
17344
|
case "End":
|
|
17330
|
-
e2.preventDefault(),
|
|
17345
|
+
e2.preventDefault(), SW(c2);
|
|
17331
17346
|
break;
|
|
17332
17347
|
case "Enter":
|
|
17333
|
-
e2.preventDefault(),
|
|
17348
|
+
e2.preventDefault(), xW[r2].onPrimary();
|
|
17334
17349
|
break;
|
|
17335
17350
|
case " ":
|
|
17336
|
-
e2.preventDefault(), (_b3 = (_a4 =
|
|
17351
|
+
e2.preventDefault(), (_b3 = (_a4 = xW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a4);
|
|
17337
17352
|
break;
|
|
17338
17353
|
}
|
|
17339
17354
|
}
|
|
17340
|
-
let { parentDirectories:
|
|
17355
|
+
let { parentDirectories: wW } = getProtocolAndParentDirectories({
|
|
17341
17356
|
path: g,
|
|
17342
|
-
delimiter:
|
|
17357
|
+
delimiter: pW,
|
|
17343
17358
|
initialPath: c,
|
|
17344
17359
|
restrictNavigation: f
|
|
17345
|
-
}),
|
|
17360
|
+
}), TW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
17346
17361
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
17347
17362
|
children: [
|
|
17348
17363
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -17352,7 +17367,7 @@ ${c}
|
|
|
17352
17367
|
(() => {
|
|
17353
17368
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
17354
17369
|
children: renderHTML({
|
|
17355
|
-
html: d ?? `Select ${
|
|
17370
|
+
html: d ?? `Select ${TW.join(" and ", 2)}...`
|
|
17356
17371
|
})
|
|
17357
17372
|
});
|
|
17358
17373
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -17366,8 +17381,8 @@ ${c}
|
|
|
17366
17381
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
17367
17382
|
size: "xs",
|
|
17368
17383
|
variant: "link",
|
|
17369
|
-
onClick:
|
|
17370
|
-
children:
|
|
17384
|
+
onClick: fW ? yW : bW,
|
|
17385
|
+
children: fW ? "Deselect all" : "Select all"
|
|
17371
17386
|
})
|
|
17372
17387
|
})
|
|
17373
17388
|
]
|
|
@@ -17377,15 +17392,15 @@ ${c}
|
|
|
17377
17392
|
className: "mt-2 w-full",
|
|
17378
17393
|
placeholder: g,
|
|
17379
17394
|
value: g,
|
|
17380
|
-
onChange: (e2) =>
|
|
17381
|
-
children:
|
|
17395
|
+
onChange: (e2) => hW(e2.target.value),
|
|
17396
|
+
children: wW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
17382
17397
|
value: e2,
|
|
17383
17398
|
children: e2
|
|
17384
17399
|
}, e2))
|
|
17385
17400
|
}),
|
|
17386
17401
|
R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
17387
17402
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
17388
|
-
children: R.is_truncated ? `Showing ${
|
|
17403
|
+
children: R.is_truncated ? `Showing ${cW.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
17389
17404
|
}),
|
|
17390
17405
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
17391
17406
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
@@ -17414,14 +17429,14 @@ ${c}
|
|
|
17414
17429
|
"aria-label": "File browser",
|
|
17415
17430
|
"aria-multiselectable": u,
|
|
17416
17431
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17417
|
-
children:
|
|
17432
|
+
children: xW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17418
17433
|
role: "row",
|
|
17419
17434
|
ref: (e3) => {
|
|
17420
17435
|
O.current[r2] = e3;
|
|
17421
17436
|
},
|
|
17422
17437
|
tabIndex: r2 === T ? 0 : -1,
|
|
17423
17438
|
onFocus: () => E(r2),
|
|
17424
|
-
onKeyDown: (e3) =>
|
|
17439
|
+
onKeyDown: (e3) => CW(e3, r2),
|
|
17425
17440
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
17426
17441
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
17427
17442
|
}),
|
|
@@ -17464,7 +17479,7 @@ ${c}
|
|
|
17464
17479
|
children: [
|
|
17465
17480
|
e.length,
|
|
17466
17481
|
" ",
|
|
17467
|
-
|
|
17482
|
+
TW.join(" or ", e.length),
|
|
17468
17483
|
" ",
|
|
17469
17484
|
"selected"
|
|
17470
17485
|
]
|
|
@@ -17484,7 +17499,7 @@ ${c}
|
|
|
17484
17499
|
marginBlock: 0
|
|
17485
17500
|
},
|
|
17486
17501
|
className: "m-0 text-xs text-muted-foreground",
|
|
17487
|
-
children:
|
|
17502
|
+
children: mW
|
|
17488
17503
|
})
|
|
17489
17504
|
})
|
|
17490
17505
|
]
|
|
@@ -22866,55 +22881,55 @@ ${c}
|
|
|
22866
22881
|
return typeof S == "function" ? S : noop$2;
|
|
22867
22882
|
}, [
|
|
22868
22883
|
S
|
|
22869
|
-
]),
|
|
22870
|
-
!
|
|
22871
|
-
|
|
22884
|
+
]), cW = (0, import_react.useRef)(null), q = (0, import_react.useRef)(null), Z = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), lW = Z[0], uW = Z[1], dW = lW.isFocused, fW = lW.isFileDialogActive, pW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), mW = function() {
|
|
22885
|
+
!pW.current && fW && setTimeout(function() {
|
|
22886
|
+
q.current && (q.current.files.length || (uW({
|
|
22872
22887
|
type: "closeDialog"
|
|
22873
22888
|
}), G()));
|
|
22874
22889
|
}, 300);
|
|
22875
22890
|
};
|
|
22876
22891
|
(0, import_react.useEffect)(function() {
|
|
22877
|
-
return window.addEventListener("focus",
|
|
22878
|
-
window.removeEventListener("focus",
|
|
22892
|
+
return window.addEventListener("focus", mW, false), function() {
|
|
22893
|
+
window.removeEventListener("focus", mW, false);
|
|
22879
22894
|
};
|
|
22880
22895
|
}, [
|
|
22881
|
-
|
|
22882
|
-
|
|
22896
|
+
q,
|
|
22897
|
+
fW,
|
|
22883
22898
|
G,
|
|
22884
|
-
|
|
22899
|
+
pW
|
|
22885
22900
|
]);
|
|
22886
|
-
var
|
|
22887
|
-
|
|
22901
|
+
var hW = (0, import_react.useRef)([]), gW = (0, import_react.useRef)([]), _W = function(e2) {
|
|
22902
|
+
cW.current && cW.current.contains(e2.target) || (e2.preventDefault(), hW.current = []);
|
|
22888
22903
|
};
|
|
22889
22904
|
(0, import_react.useEffect)(function() {
|
|
22890
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
22891
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
22905
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", _W, false)), function() {
|
|
22906
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", _W));
|
|
22892
22907
|
};
|
|
22893
22908
|
}, [
|
|
22894
|
-
|
|
22909
|
+
cW,
|
|
22895
22910
|
O
|
|
22896
22911
|
]), (0, import_react.useEffect)(function() {
|
|
22897
22912
|
var e2 = function(e3) {
|
|
22898
|
-
|
|
22913
|
+
gW.current = [].concat(_toConsumableArray(gW.current), [
|
|
22899
22914
|
e3.target
|
|
22900
|
-
]), isEvtWithFiles(e3) &&
|
|
22915
|
+
]), isEvtWithFiles(e3) && uW({
|
|
22901
22916
|
isDragGlobal: true,
|
|
22902
22917
|
type: "setDragGlobal"
|
|
22903
22918
|
});
|
|
22904
22919
|
}, r2 = function(e3) {
|
|
22905
|
-
|
|
22920
|
+
gW.current = gW.current.filter(function(r3) {
|
|
22906
22921
|
return r3 !== e3.target && r3 !== null;
|
|
22907
|
-
}), !(
|
|
22922
|
+
}), !(gW.current.length > 0) && uW({
|
|
22908
22923
|
isDragGlobal: false,
|
|
22909
22924
|
type: "setDragGlobal"
|
|
22910
22925
|
});
|
|
22911
22926
|
}, c2 = function() {
|
|
22912
|
-
|
|
22927
|
+
gW.current = [], uW({
|
|
22913
22928
|
isDragGlobal: false,
|
|
22914
22929
|
type: "setDragGlobal"
|
|
22915
22930
|
});
|
|
22916
22931
|
}, l2 = function() {
|
|
22917
|
-
|
|
22932
|
+
gW.current = [], uW({
|
|
22918
22933
|
isDragGlobal: false,
|
|
22919
22934
|
type: "setDragGlobal"
|
|
22920
22935
|
});
|
|
@@ -22923,21 +22938,21 @@ ${c}
|
|
|
22923
22938
|
document.removeEventListener("dragenter", e2), document.removeEventListener("dragleave", r2), document.removeEventListener("dragend", c2), document.removeEventListener("drop", l2);
|
|
22924
22939
|
};
|
|
22925
22940
|
}, [
|
|
22926
|
-
|
|
22941
|
+
cW
|
|
22927
22942
|
]), (0, import_react.useEffect)(function() {
|
|
22928
|
-
return !l && E &&
|
|
22943
|
+
return !l && E && cW.current && cW.current.focus(), function() {
|
|
22929
22944
|
};
|
|
22930
22945
|
}, [
|
|
22931
|
-
|
|
22946
|
+
cW,
|
|
22932
22947
|
E,
|
|
22933
22948
|
l
|
|
22934
22949
|
]);
|
|
22935
|
-
var
|
|
22950
|
+
var vW = (0, import_react.useCallback)(function(e2) {
|
|
22936
22951
|
R ? R(e2) : console.error(e2);
|
|
22937
22952
|
}, [
|
|
22938
22953
|
R
|
|
22939
|
-
]),
|
|
22940
|
-
e2.preventDefault(), e2.persist(),
|
|
22954
|
+
]), yW = (0, import_react.useCallback)(function(e2) {
|
|
22955
|
+
e2.preventDefault(), e2.persist(), MW(e2), hW.current = [].concat(_toConsumableArray(hW.current), [
|
|
22941
22956
|
e2.target
|
|
22942
22957
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22943
22958
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -22950,7 +22965,7 @@ ${c}
|
|
|
22950
22965
|
maxFiles: m,
|
|
22951
22966
|
validator: z
|
|
22952
22967
|
});
|
|
22953
|
-
|
|
22968
|
+
uW({
|
|
22954
22969
|
isDragAccept: l2,
|
|
22955
22970
|
isDragReject: c2 > 0 && !l2,
|
|
22956
22971
|
isDragActive: true,
|
|
@@ -22958,12 +22973,12 @@ ${c}
|
|
|
22958
22973
|
}), h && h(e2);
|
|
22959
22974
|
}
|
|
22960
22975
|
}).catch(function(e3) {
|
|
22961
|
-
return
|
|
22976
|
+
return vW(e3);
|
|
22962
22977
|
});
|
|
22963
22978
|
}, [
|
|
22964
22979
|
u,
|
|
22965
22980
|
h,
|
|
22966
|
-
|
|
22981
|
+
vW,
|
|
22967
22982
|
L,
|
|
22968
22983
|
B,
|
|
22969
22984
|
f,
|
|
@@ -22971,8 +22986,8 @@ ${c}
|
|
|
22971
22986
|
p,
|
|
22972
22987
|
m,
|
|
22973
22988
|
z
|
|
22974
|
-
]),
|
|
22975
|
-
e2.preventDefault(), e2.persist(),
|
|
22989
|
+
]), bW = (0, import_react.useCallback)(function(e2) {
|
|
22990
|
+
e2.preventDefault(), e2.persist(), MW(e2);
|
|
22976
22991
|
var r2 = isEvtWithFiles(e2);
|
|
22977
22992
|
if (r2 && e2.dataTransfer) try {
|
|
22978
22993
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -22982,22 +22997,22 @@ ${c}
|
|
|
22982
22997
|
}, [
|
|
22983
22998
|
_,
|
|
22984
22999
|
L
|
|
22985
|
-
]),
|
|
22986
|
-
e2.preventDefault(), e2.persist(),
|
|
22987
|
-
var r2 =
|
|
22988
|
-
return
|
|
23000
|
+
]), xW = (0, import_react.useCallback)(function(e2) {
|
|
23001
|
+
e2.preventDefault(), e2.persist(), MW(e2);
|
|
23002
|
+
var r2 = hW.current.filter(function(e3) {
|
|
23003
|
+
return cW.current && cW.current.contains(e3);
|
|
22989
23004
|
}), c2 = r2.indexOf(e2.target);
|
|
22990
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
23005
|
+
c2 !== -1 && r2.splice(c2, 1), hW.current = r2, !(r2.length > 0) && (uW({
|
|
22991
23006
|
type: "setDraggedFiles",
|
|
22992
23007
|
isDragActive: false,
|
|
22993
23008
|
isDragAccept: false,
|
|
22994
23009
|
isDragReject: false
|
|
22995
23010
|
}), isEvtWithFiles(e2) && g && g(e2));
|
|
22996
23011
|
}, [
|
|
22997
|
-
|
|
23012
|
+
cW,
|
|
22998
23013
|
g,
|
|
22999
23014
|
L
|
|
23000
|
-
]),
|
|
23015
|
+
]), SW = (0, import_react.useCallback)(function(e2, r2) {
|
|
23001
23016
|
var c2 = [], l2 = [];
|
|
23002
23017
|
e2.forEach(function(e3) {
|
|
23003
23018
|
var r3 = _slicedToArray(fileAccepted(e3, B), 2), u2 = r3[0], p2 = r3[1], m2 = _slicedToArray(fileMatchSize(e3, f, d), 2), h2 = m2[0], g2 = m2[1], _2 = z ? z(e3) : null;
|
|
@@ -23021,14 +23036,14 @@ ${c}
|
|
|
23021
23036
|
TOO_MANY_FILES_REJECTION
|
|
23022
23037
|
]
|
|
23023
23038
|
});
|
|
23024
|
-
}), c2.splice(0)),
|
|
23039
|
+
}), c2.splice(0)), uW({
|
|
23025
23040
|
acceptedFiles: c2,
|
|
23026
23041
|
fileRejections: l2,
|
|
23027
23042
|
isDragReject: l2.length > 0,
|
|
23028
23043
|
type: "setFiles"
|
|
23029
23044
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
23030
23045
|
}, [
|
|
23031
|
-
|
|
23046
|
+
uW,
|
|
23032
23047
|
p,
|
|
23033
23048
|
B,
|
|
23034
23049
|
f,
|
|
@@ -23038,22 +23053,22 @@ ${c}
|
|
|
23038
23053
|
y,
|
|
23039
23054
|
b,
|
|
23040
23055
|
z
|
|
23041
|
-
]),
|
|
23042
|
-
e2.preventDefault(), e2.persist(),
|
|
23043
|
-
isPropagationStopped(e2) && !L ||
|
|
23056
|
+
]), CW = (0, import_react.useCallback)(function(e2) {
|
|
23057
|
+
e2.preventDefault(), e2.persist(), MW(e2), hW.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
23058
|
+
isPropagationStopped(e2) && !L || SW(r2, e2);
|
|
23044
23059
|
}).catch(function(e3) {
|
|
23045
|
-
return
|
|
23046
|
-
}),
|
|
23060
|
+
return vW(e3);
|
|
23061
|
+
}), uW({
|
|
23047
23062
|
type: "reset"
|
|
23048
23063
|
});
|
|
23049
23064
|
}, [
|
|
23050
23065
|
u,
|
|
23051
|
-
|
|
23052
|
-
|
|
23066
|
+
SW,
|
|
23067
|
+
vW,
|
|
23053
23068
|
L
|
|
23054
|
-
]),
|
|
23055
|
-
if (
|
|
23056
|
-
|
|
23069
|
+
]), wW = (0, import_react.useCallback)(function() {
|
|
23070
|
+
if (pW.current) {
|
|
23071
|
+
uW({
|
|
23057
23072
|
type: "openDialog"
|
|
23058
23073
|
}), W();
|
|
23059
23074
|
var e2 = {
|
|
@@ -23063,87 +23078,87 @@ ${c}
|
|
|
23063
23078
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
23064
23079
|
return u(e3);
|
|
23065
23080
|
}).then(function(e3) {
|
|
23066
|
-
|
|
23081
|
+
SW(e3, null), uW({
|
|
23067
23082
|
type: "closeDialog"
|
|
23068
23083
|
});
|
|
23069
23084
|
}).catch(function(e3) {
|
|
23070
|
-
isAbort(e3) ? (G(e3),
|
|
23085
|
+
isAbort(e3) ? (G(e3), uW({
|
|
23071
23086
|
type: "closeDialog"
|
|
23072
|
-
})) : isSecurityError(e3) ? (
|
|
23087
|
+
})) : isSecurityError(e3) ? (pW.current = false, q.current ? (q.current.value = null, q.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);
|
|
23073
23088
|
});
|
|
23074
23089
|
return;
|
|
23075
23090
|
}
|
|
23076
|
-
|
|
23091
|
+
q.current && (uW({
|
|
23077
23092
|
type: "openDialog"
|
|
23078
|
-
}), W(),
|
|
23093
|
+
}), W(), q.current.value = null, q.current.click());
|
|
23079
23094
|
}, [
|
|
23080
|
-
|
|
23095
|
+
uW,
|
|
23081
23096
|
W,
|
|
23082
23097
|
G,
|
|
23083
23098
|
T,
|
|
23084
|
-
|
|
23085
|
-
|
|
23099
|
+
SW,
|
|
23100
|
+
vW,
|
|
23086
23101
|
H,
|
|
23087
23102
|
p
|
|
23088
|
-
]),
|
|
23089
|
-
!
|
|
23103
|
+
]), TW = (0, import_react.useCallback)(function(e2) {
|
|
23104
|
+
!cW.current || !cW.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), wW());
|
|
23090
23105
|
}, [
|
|
23091
|
-
|
|
23092
|
-
|
|
23093
|
-
]),
|
|
23094
|
-
|
|
23106
|
+
cW,
|
|
23107
|
+
wW
|
|
23108
|
+
]), EW = (0, import_react.useCallback)(function() {
|
|
23109
|
+
uW({
|
|
23095
23110
|
type: "focus"
|
|
23096
23111
|
});
|
|
23097
|
-
}, []),
|
|
23098
|
-
|
|
23112
|
+
}, []), DW = (0, import_react.useCallback)(function() {
|
|
23113
|
+
uW({
|
|
23099
23114
|
type: "blur"
|
|
23100
23115
|
});
|
|
23101
|
-
}, []),
|
|
23102
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
23116
|
+
}, []), OW = (0, import_react.useCallback)(function() {
|
|
23117
|
+
j || (isIeOrEdge() ? setTimeout(wW, 0) : wW());
|
|
23103
23118
|
}, [
|
|
23104
23119
|
j,
|
|
23105
|
-
|
|
23106
|
-
]),
|
|
23120
|
+
wW
|
|
23121
|
+
]), kW = function(e2) {
|
|
23107
23122
|
return l ? null : e2;
|
|
23108
|
-
},
|
|
23109
|
-
return M ? null :
|
|
23110
|
-
},
|
|
23111
|
-
return I ? null :
|
|
23112
|
-
},
|
|
23123
|
+
}, AW = function(e2) {
|
|
23124
|
+
return M ? null : kW(e2);
|
|
23125
|
+
}, jW = function(e2) {
|
|
23126
|
+
return I ? null : kW(e2);
|
|
23127
|
+
}, MW = function(e2) {
|
|
23113
23128
|
L && e2.stopPropagation();
|
|
23114
|
-
},
|
|
23129
|
+
}, NW = (0, import_react.useMemo)(function() {
|
|
23115
23130
|
return function() {
|
|
23116
23131
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, u2 = e2.role, d2 = e2.onKeyDown, f2 = e2.onFocus, p2 = e2.onBlur, m2 = e2.onClick, h2 = e2.onDragEnter, g2 = e2.onDragOver, _2 = e2.onDragLeave, v2 = e2.onDrop, y2 = _objectWithoutProperties$2(e2, _excluded3);
|
|
23117
23132
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
23118
|
-
onKeyDown:
|
|
23119
|
-
onFocus:
|
|
23120
|
-
onBlur:
|
|
23121
|
-
onClick:
|
|
23122
|
-
onDragEnter:
|
|
23123
|
-
onDragOver:
|
|
23124
|
-
onDragLeave:
|
|
23125
|
-
onDrop:
|
|
23133
|
+
onKeyDown: AW(composeEventHandlers(d2, TW)),
|
|
23134
|
+
onFocus: AW(composeEventHandlers(f2, EW)),
|
|
23135
|
+
onBlur: AW(composeEventHandlers(p2, DW)),
|
|
23136
|
+
onClick: kW(composeEventHandlers(m2, OW)),
|
|
23137
|
+
onDragEnter: jW(composeEventHandlers(h2, yW)),
|
|
23138
|
+
onDragOver: jW(composeEventHandlers(g2, bW)),
|
|
23139
|
+
onDragLeave: jW(composeEventHandlers(_2, xW)),
|
|
23140
|
+
onDrop: jW(composeEventHandlers(v2, CW)),
|
|
23126
23141
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23127
|
-
}, c2,
|
|
23142
|
+
}, c2, cW), !l && !M ? {
|
|
23128
23143
|
tabIndex: 0
|
|
23129
23144
|
} : {}), y2);
|
|
23130
23145
|
};
|
|
23131
23146
|
}, [
|
|
23132
|
-
|
|
23147
|
+
cW,
|
|
23148
|
+
TW,
|
|
23149
|
+
EW,
|
|
23150
|
+
DW,
|
|
23151
|
+
OW,
|
|
23152
|
+
yW,
|
|
23133
23153
|
bW,
|
|
23134
23154
|
xW,
|
|
23135
|
-
SW,
|
|
23136
23155
|
CW,
|
|
23137
|
-
mW,
|
|
23138
|
-
hW,
|
|
23139
|
-
gW,
|
|
23140
|
-
vW,
|
|
23141
23156
|
M,
|
|
23142
23157
|
I,
|
|
23143
23158
|
l
|
|
23144
|
-
]),
|
|
23159
|
+
]), PW = (0, import_react.useCallback)(function(e2) {
|
|
23145
23160
|
e2.stopPropagation();
|
|
23146
|
-
}, []),
|
|
23161
|
+
}, []), FW = (0, import_react.useMemo)(function() {
|
|
23147
23162
|
return function() {
|
|
23148
23163
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, l2 = e2.onChange, u2 = e2.onClick, d2 = _objectWithoutProperties$2(e2, _excluded4);
|
|
23149
23164
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -23162,25 +23177,25 @@ ${c}
|
|
|
23162
23177
|
width: "1px",
|
|
23163
23178
|
whiteSpace: "nowrap"
|
|
23164
23179
|
},
|
|
23165
|
-
onChange:
|
|
23166
|
-
onClick:
|
|
23180
|
+
onChange: kW(composeEventHandlers(l2, CW)),
|
|
23181
|
+
onClick: kW(composeEventHandlers(u2, PW)),
|
|
23167
23182
|
tabIndex: -1
|
|
23168
|
-
}, c2,
|
|
23183
|
+
}, c2, q)), d2);
|
|
23169
23184
|
};
|
|
23170
23185
|
}, [
|
|
23171
|
-
|
|
23186
|
+
q,
|
|
23172
23187
|
c,
|
|
23173
23188
|
p,
|
|
23174
|
-
|
|
23189
|
+
CW,
|
|
23175
23190
|
l
|
|
23176
23191
|
]);
|
|
23177
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
23178
|
-
isFocused:
|
|
23179
|
-
getRootProps:
|
|
23180
|
-
getInputProps:
|
|
23181
|
-
rootRef:
|
|
23182
|
-
inputRef:
|
|
23183
|
-
open: wW
|
|
23192
|
+
return _objectSpread$7(_objectSpread$7({}, lW), {}, {
|
|
23193
|
+
isFocused: dW && !l,
|
|
23194
|
+
getRootProps: NW,
|
|
23195
|
+
getInputProps: FW,
|
|
23196
|
+
rootRef: cW,
|
|
23197
|
+
inputRef: q,
|
|
23198
|
+
open: kW(wW)
|
|
23184
23199
|
});
|
|
23185
23200
|
}
|
|
23186
23201
|
function reducer$2(e, r) {
|
|
@@ -23412,47 +23427,47 @@ ${c}
|
|
|
23412
23427
|
html: I
|
|
23413
23428
|
})
|
|
23414
23429
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
23415
|
-
let
|
|
23416
|
-
r[48] !==
|
|
23417
|
-
let
|
|
23418
|
-
r[51] ===
|
|
23430
|
+
let cW = w && "text-primary", q = T && "text-destructive", Z;
|
|
23431
|
+
r[48] !== cW || r[49] !== q ? (Z = cn(cW, q), r[48] = cW, r[49] = q, r[50] = Z) : Z = r[50];
|
|
23432
|
+
let lW;
|
|
23433
|
+
r[51] === Z ? lW = r[52] : (lW = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23419
23434
|
strokeWidth: 1.4,
|
|
23420
|
-
className:
|
|
23421
|
-
}), r[51] =
|
|
23422
|
-
let
|
|
23423
|
-
r[53] !==
|
|
23424
|
-
let
|
|
23425
|
-
r[56] ===
|
|
23435
|
+
className: Z
|
|
23436
|
+
}), r[51] = Z, r[52] = lW);
|
|
23437
|
+
let uW = w && "text-primary", dW = T && "text-destructive", fW;
|
|
23438
|
+
r[53] !== uW || r[54] !== dW ? (fW = cn(uW, dW), r[53] = uW, r[54] = dW, r[55] = fW) : fW = r[55];
|
|
23439
|
+
let pW;
|
|
23440
|
+
r[56] === fW ? pW = r[57] : (pW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23426
23441
|
strokeWidth: 1.4,
|
|
23427
|
-
className:
|
|
23428
|
-
}), r[56] =
|
|
23429
|
-
let
|
|
23430
|
-
r[58] !==
|
|
23442
|
+
className: fW
|
|
23443
|
+
}), r[56] = fW, r[57] = pW);
|
|
23444
|
+
let mW;
|
|
23445
|
+
r[58] !== lW || r[59] !== pW ? (mW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23431
23446
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
23432
23447
|
children: [
|
|
23433
|
-
|
|
23434
|
-
|
|
23448
|
+
lW,
|
|
23449
|
+
pW
|
|
23435
23450
|
]
|
|
23436
|
-
}), r[58] =
|
|
23437
|
-
let
|
|
23438
|
-
r[61] !== G || r[62] !==
|
|
23451
|
+
}), r[58] = lW, r[59] = pW, r[60] = mW) : mW = r[60];
|
|
23452
|
+
let hW;
|
|
23453
|
+
r[61] !== G || r[62] !== mW ? (hW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23439
23454
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
23440
23455
|
children: [
|
|
23441
23456
|
G,
|
|
23442
|
-
|
|
23457
|
+
mW
|
|
23443
23458
|
]
|
|
23444
|
-
}), r[61] = G, r[62] =
|
|
23445
|
-
let
|
|
23446
|
-
r[64] !== W || r[65] !==
|
|
23459
|
+
}), r[61] = G, r[62] = mW, r[63] = hW) : hW = r[63];
|
|
23460
|
+
let gW;
|
|
23461
|
+
r[64] !== W || r[65] !== hW || r[66] !== z || r[67] !== B ? (gW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23447
23462
|
className: z,
|
|
23448
23463
|
...B,
|
|
23449
23464
|
children: [
|
|
23450
23465
|
W,
|
|
23451
|
-
|
|
23466
|
+
hW
|
|
23452
23467
|
]
|
|
23453
|
-
}), r[64] = W, r[65] =
|
|
23454
|
-
let
|
|
23455
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
23468
|
+
}), r[64] = W, r[65] = hW, r[66] = z, r[67] = B, r[68] = gW) : gW = r[68];
|
|
23469
|
+
let _W;
|
|
23470
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (_W = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
23456
23471
|
className: "flex flex-row gap-1",
|
|
23457
23472
|
children: [
|
|
23458
23473
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23488,17 +23503,17 @@ ${c}
|
|
|
23488
23503
|
})
|
|
23489
23504
|
})
|
|
23490
23505
|
]
|
|
23491
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
23492
|
-
let
|
|
23493
|
-
return r[75] !==
|
|
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 vW;
|
|
23508
|
+
return r[75] !== gW || r[76] !== _W ? (vW = (0, import_jsx_runtime.jsx)("section", {
|
|
23494
23509
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
23495
23510
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
23496
23511
|
children: [
|
|
23497
|
-
|
|
23498
|
-
|
|
23512
|
+
gW,
|
|
23513
|
+
_W
|
|
23499
23514
|
]
|
|
23500
23515
|
})
|
|
23501
|
-
}), r[75] =
|
|
23516
|
+
}), r[75] = gW, r[76] = _W, r[77] = vW) : vW = r[77], vW;
|
|
23502
23517
|
};
|
|
23503
23518
|
function _temp$11(e) {
|
|
23504
23519
|
Logger.error(e), toast({
|
|
@@ -23590,79 +23605,79 @@ ${c}
|
|
|
23590
23605
|
"bg-(--gray-1) shadow-md border border-input": m,
|
|
23591
23606
|
"bg-(--amber-1) border-(--amber-7)": W
|
|
23592
23607
|
}), r[7] = m, r[8] = W, r[9] = G) : G = r[9];
|
|
23593
|
-
let
|
|
23594
|
-
r[10] !== u || r[11] !== d ? (
|
|
23608
|
+
let cW;
|
|
23609
|
+
r[10] !== u || r[11] !== d ? (cW = (e2) => {
|
|
23595
23610
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23596
|
-
}, r[10] = u, r[11] = d, r[12] =
|
|
23597
|
-
let
|
|
23598
|
-
r[13] === f ?
|
|
23611
|
+
}, r[10] = u, r[11] = d, r[12] = cW) : cW = r[12];
|
|
23612
|
+
let q;
|
|
23613
|
+
r[13] === f ? q = r[14] : (q = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23599
23614
|
className: "text-center",
|
|
23600
23615
|
children: renderHTML({
|
|
23601
23616
|
html: f
|
|
23602
23617
|
})
|
|
23603
|
-
}), r[13] = f, r[14] =
|
|
23604
|
-
let
|
|
23605
|
-
r[15] === L ?
|
|
23618
|
+
}), r[13] = f, r[14] = q);
|
|
23619
|
+
let Z;
|
|
23620
|
+
r[15] === L ? Z = r[16] : (Z = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
23606
23621
|
kind: "danger",
|
|
23607
23622
|
className: "rounded",
|
|
23608
23623
|
children: L ?? "Invalid input"
|
|
23609
|
-
}), r[15] = L, r[16] =
|
|
23610
|
-
let
|
|
23611
|
-
r[17] === c ?
|
|
23624
|
+
}), r[15] = L, r[16] = Z);
|
|
23625
|
+
let lW;
|
|
23626
|
+
r[17] === c ? lW = r[18] : (lW = (0, import_jsx_runtime.jsx)("div", {
|
|
23612
23627
|
children: c
|
|
23613
|
-
}), r[17] = c, r[18] =
|
|
23614
|
-
let
|
|
23615
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
23628
|
+
}), r[17] = c, r[18] = lW);
|
|
23629
|
+
let uW;
|
|
23630
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (uW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
23616
23631
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
23617
23632
|
variant: "text",
|
|
23618
23633
|
onClick: (e2) => {
|
|
23619
23634
|
e2.preventDefault(), B();
|
|
23620
23635
|
},
|
|
23621
23636
|
children: S
|
|
23622
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
23623
|
-
let
|
|
23624
|
-
r[23] === h ?
|
|
23637
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = uW) : uW = r[22];
|
|
23638
|
+
let dW = v || h, fW;
|
|
23639
|
+
r[23] === h ? fW = r[24] : (fW = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
23625
23640
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
23626
|
-
}), r[23] = h, r[24] =
|
|
23627
|
-
let
|
|
23628
|
-
r[25] !== g || r[26] !==
|
|
23641
|
+
}), r[23] = h, r[24] = fW);
|
|
23642
|
+
let pW;
|
|
23643
|
+
r[25] !== g || r[26] !== dW || r[27] !== fW || r[28] !== I ? (pW = (0, import_jsx_runtime.jsxs)(Button, {
|
|
23629
23644
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
23630
23645
|
variant: I,
|
|
23631
|
-
disabled:
|
|
23646
|
+
disabled: dW,
|
|
23632
23647
|
type: "submit",
|
|
23633
23648
|
children: [
|
|
23634
|
-
|
|
23649
|
+
fW,
|
|
23635
23650
|
g
|
|
23636
23651
|
]
|
|
23637
|
-
}), r[25] = g, r[26] =
|
|
23638
|
-
let
|
|
23639
|
-
r[30] !== _ || r[31] !==
|
|
23640
|
-
let
|
|
23641
|
-
r[33] !==
|
|
23652
|
+
}), r[25] = g, r[26] = dW, r[27] = fW, r[28] = I, r[29] = pW) : pW = r[29];
|
|
23653
|
+
let mW;
|
|
23654
|
+
r[30] !== _ || r[31] !== pW ? (mW = withTooltip(pW, _), r[30] = _, r[31] = pW, r[32] = mW) : mW = r[32];
|
|
23655
|
+
let hW;
|
|
23656
|
+
r[33] !== mW || r[34] !== uW ? (hW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23642
23657
|
className: "flex justify-end gap-2 font-code",
|
|
23643
23658
|
children: [
|
|
23644
|
-
|
|
23645
|
-
|
|
23659
|
+
uW,
|
|
23660
|
+
mW
|
|
23646
23661
|
]
|
|
23647
|
-
}), r[33] =
|
|
23648
|
-
let
|
|
23649
|
-
r[36] !==
|
|
23662
|
+
}), r[33] = mW, r[34] = uW, r[35] = hW) : hW = r[35];
|
|
23663
|
+
let gW;
|
|
23664
|
+
r[36] !== hW || r[37] !== G || r[38] !== cW || r[39] !== q || r[40] !== Z || r[41] !== lW ? (gW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23650
23665
|
className: G,
|
|
23651
|
-
onKeyDown:
|
|
23666
|
+
onKeyDown: cW,
|
|
23652
23667
|
children: [
|
|
23653
|
-
|
|
23654
|
-
iW,
|
|
23668
|
+
q,
|
|
23655
23669
|
Z,
|
|
23656
|
-
|
|
23670
|
+
lW,
|
|
23671
|
+
hW
|
|
23657
23672
|
]
|
|
23658
|
-
}), r[36] =
|
|
23659
|
-
let
|
|
23660
|
-
return r[43] !==
|
|
23673
|
+
}), r[36] = hW, r[37] = G, r[38] = cW, r[39] = q, r[40] = Z, r[41] = lW, r[42] = gW) : gW = r[42];
|
|
23674
|
+
let _W;
|
|
23675
|
+
return r[43] !== gW || r[44] !== H ? (_W = (0, import_jsx_runtime.jsx)("form", {
|
|
23661
23676
|
className: "contents",
|
|
23662
23677
|
ref: j,
|
|
23663
23678
|
onSubmit: H,
|
|
23664
|
-
children:
|
|
23665
|
-
}), r[43] =
|
|
23679
|
+
children: gW
|
|
23680
|
+
}), r[43] = gW, r[44] = H, r[45] = _W) : _W = r[45], _W;
|
|
23666
23681
|
};
|
|
23667
23682
|
var Form = (e) => {
|
|
23668
23683
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -25435,8 +25450,8 @@ ${c}
|
|
|
25435
25450
|
points: extractSunburstPoints(e2.points)
|
|
25436
25451
|
}));
|
|
25437
25452
|
}, r[29] = u, r[30] = G);
|
|
25438
|
-
let
|
|
25439
|
-
r[31] === u ?
|
|
25453
|
+
let cW = useEvent_default(G), q;
|
|
25454
|
+
r[31] === u ? q = r[32] : (q = (e2) => {
|
|
25440
25455
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25441
25456
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25442
25457
|
u((e3) => ({
|
|
@@ -25447,9 +25462,9 @@ ${c}
|
|
|
25447
25462
|
points: r2,
|
|
25448
25463
|
indices: c2
|
|
25449
25464
|
}));
|
|
25450
|
-
}, r[31] = u, r[32] =
|
|
25451
|
-
let
|
|
25452
|
-
r[33] === u ?
|
|
25465
|
+
}, r[31] = u, r[32] = q);
|
|
25466
|
+
let Z = useEvent_default(q), lW;
|
|
25467
|
+
r[33] === u ? lW = r[34] : (lW = (e2) => {
|
|
25453
25468
|
e2 && u((r2) => ({
|
|
25454
25469
|
...r2,
|
|
25455
25470
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -25458,23 +25473,23 @@ ${c}
|
|
|
25458
25473
|
range: e2.range,
|
|
25459
25474
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
25460
25475
|
}));
|
|
25461
|
-
}, r[33] = u, r[34] =
|
|
25462
|
-
let
|
|
25463
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !==
|
|
25476
|
+
}, r[33] = u, r[34] = lW);
|
|
25477
|
+
let uW = useEvent_default(lW), 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] !== cW || r[41] !== Z || r[42] !== uW || r[43] !== dW || r[44] !== fW || r[45] !== R ? (pW = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25464
25479
|
...m,
|
|
25465
25480
|
layout: h,
|
|
25466
25481
|
onRelayout: R,
|
|
25467
25482
|
onDeselect: B,
|
|
25468
25483
|
onTreemapClick: W,
|
|
25469
|
-
onSunburstClick:
|
|
25484
|
+
onSunburstClick: cW,
|
|
25470
25485
|
config: L,
|
|
25471
|
-
onClick:
|
|
25472
|
-
onSelected:
|
|
25486
|
+
onClick: Z,
|
|
25487
|
+
onSelected: uW,
|
|
25473
25488
|
className: "w-full",
|
|
25474
25489
|
useResizeHandler: true,
|
|
25475
|
-
frames:
|
|
25476
|
-
onError:
|
|
25477
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] =
|
|
25490
|
+
frames: dW,
|
|
25491
|
+
onError: fW
|
|
25492
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = cW, r[41] = Z, r[42] = uW, r[43] = dW, r[44] = fW, r[45] = R, r[46] = pW) : pW = r[46], pW;
|
|
25478
25493
|
});
|
|
25479
25494
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25480
25495
|
function _temp$8(e) {
|
|
@@ -25604,23 +25619,23 @@ ${c}
|
|
|
25604
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);
|
|
25605
25620
|
let G;
|
|
25606
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];
|
|
25607
25624
|
let q;
|
|
25608
|
-
c[
|
|
25609
|
-
let rW;
|
|
25610
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (rW = (0, import_jsx_runtime.jsx)(Track, {
|
|
25625
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (q = (0, import_jsx_runtime.jsx)(Track, {
|
|
25611
25626
|
ref: E,
|
|
25612
25627
|
"data-testid": "track",
|
|
25613
25628
|
className: G,
|
|
25614
25629
|
children: (0, import_jsx_runtime.jsx)(Range, {
|
|
25615
25630
|
"data-testid": "range",
|
|
25616
|
-
className:
|
|
25631
|
+
className: cW,
|
|
25617
25632
|
onPointerDown: L,
|
|
25618
25633
|
onPointerMove: z,
|
|
25619
25634
|
onPointerUp: H
|
|
25620
25635
|
})
|
|
25621
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25622
|
-
let
|
|
25623
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
25636
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = q) : q = c[22];
|
|
25637
|
+
let Z;
|
|
25638
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25624
25639
|
asChild: true,
|
|
25625
25640
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25626
25641
|
"data-testid": "thumb",
|
|
@@ -25630,30 +25645,30 @@ ${c}
|
|
|
25630
25645
|
onMouseEnter: m.setTrue,
|
|
25631
25646
|
onMouseLeave: m.setFalse
|
|
25632
25647
|
})
|
|
25633
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
25634
|
-
let
|
|
25635
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
25648
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = Z) : Z = c[25];
|
|
25649
|
+
let lW;
|
|
25650
|
+
c[26] !== h || c[27] !== u.value || c[28] !== d ? (lW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25636
25651
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
25637
25652
|
locale: h
|
|
25638
25653
|
})
|
|
25639
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
25640
|
-
let
|
|
25641
|
-
c[30] ===
|
|
25642
|
-
children:
|
|
25643
|
-
}), c[30] =
|
|
25644
|
-
let
|
|
25645
|
-
c[32] !== f || c[33] !==
|
|
25654
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = lW) : lW = c[29];
|
|
25655
|
+
let uW;
|
|
25656
|
+
c[30] === lW ? uW = c[31] : (uW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25657
|
+
children: lW
|
|
25658
|
+
}), c[30] = lW, c[31] = uW);
|
|
25659
|
+
let dW;
|
|
25660
|
+
c[32] !== f || c[33] !== Z || c[34] !== uW ? (dW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25646
25661
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25647
25662
|
delayDuration: 0,
|
|
25648
25663
|
open: f,
|
|
25649
25664
|
children: [
|
|
25650
|
-
|
|
25651
|
-
|
|
25665
|
+
Z,
|
|
25666
|
+
uW
|
|
25652
25667
|
]
|
|
25653
25668
|
})
|
|
25654
|
-
}), c[32] = f, c[33] =
|
|
25655
|
-
let
|
|
25656
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
25669
|
+
}), c[32] = f, c[33] = Z, c[34] = uW, c[35] = dW) : dW = c[35];
|
|
25670
|
+
let fW;
|
|
25671
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (fW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25657
25672
|
asChild: true,
|
|
25658
25673
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25659
25674
|
"data-testid": "thumb",
|
|
@@ -25663,39 +25678,39 @@ ${c}
|
|
|
25663
25678
|
onMouseEnter: m.setTrue,
|
|
25664
25679
|
onMouseLeave: m.setFalse
|
|
25665
25680
|
})
|
|
25666
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
25667
|
-
let
|
|
25668
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
25681
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = fW) : fW = c[38];
|
|
25682
|
+
let pW;
|
|
25683
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (pW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25669
25684
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
25670
25685
|
locale: h
|
|
25671
25686
|
})
|
|
25672
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
25673
|
-
let
|
|
25674
|
-
c[43] ===
|
|
25675
|
-
children:
|
|
25676
|
-
}), c[43] =
|
|
25677
|
-
let
|
|
25678
|
-
c[45] !== f || c[46] !==
|
|
25687
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = pW) : pW = c[42];
|
|
25688
|
+
let mW;
|
|
25689
|
+
c[43] === pW ? mW = c[44] : (mW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25690
|
+
children: pW
|
|
25691
|
+
}), c[43] = pW, c[44] = mW);
|
|
25692
|
+
let hW;
|
|
25693
|
+
c[45] !== f || c[46] !== fW || c[47] !== mW ? (hW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25679
25694
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25680
25695
|
delayDuration: 0,
|
|
25681
25696
|
open: f,
|
|
25682
25697
|
children: [
|
|
25683
|
-
|
|
25684
|
-
|
|
25698
|
+
fW,
|
|
25699
|
+
mW
|
|
25685
25700
|
]
|
|
25686
25701
|
})
|
|
25687
|
-
}), c[45] = f, c[46] =
|
|
25688
|
-
let
|
|
25689
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25702
|
+
}), c[45] = f, c[46] = fW, c[47] = mW, c[48] = hW) : hW = c[48];
|
|
25703
|
+
let gW;
|
|
25704
|
+
return c[49] !== M || c[50] !== u || c[51] !== q || c[52] !== dW || c[53] !== hW || c[54] !== W ? (gW = (0, import_jsx_runtime.jsxs)(Root, {
|
|
25690
25705
|
ref: M,
|
|
25691
25706
|
className: W,
|
|
25692
25707
|
...u,
|
|
25693
25708
|
children: [
|
|
25694
|
-
|
|
25695
|
-
|
|
25696
|
-
|
|
25709
|
+
q,
|
|
25710
|
+
dW,
|
|
25711
|
+
hW
|
|
25697
25712
|
]
|
|
25698
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25713
|
+
}), c[49] = M, c[50] = u, c[51] = q, c[52] = dW, c[53] = hW, c[54] = W, c[55] = gW) : gW = c[55], gW;
|
|
25699
25714
|
});
|
|
25700
25715
|
RangeSlider.displayName = Root.displayName;
|
|
25701
25716
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25740,20 +25755,20 @@ ${c}
|
|
|
25740
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];
|
|
25741
25756
|
let H = !v && "data-[orientation=horizontal]:w-36 ", W;
|
|
25742
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);
|
|
25743
|
-
let G,
|
|
25758
|
+
let G, cW;
|
|
25744
25759
|
r[10] !== h || r[11] !== l ? (G = (e2) => {
|
|
25745
25760
|
E(e2), h || l(e2);
|
|
25746
|
-
},
|
|
25761
|
+
}, cW = (e2) => {
|
|
25747
25762
|
h && l(e2);
|
|
25748
|
-
}, r[10] = h, r[11] = l, r[12] = G, r[13] =
|
|
25749
|
-
let
|
|
25750
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
25763
|
+
}, r[10] = h, r[11] = l, r[12] = G, r[13] = cW) : (G = r[12], cW = r[13]);
|
|
25764
|
+
let q, Z;
|
|
25765
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (q = () => {
|
|
25751
25766
|
h && !dequal(T, u) && l(T);
|
|
25752
|
-
},
|
|
25767
|
+
}, Z = () => {
|
|
25753
25768
|
h && !dequal(T, u) && l(T);
|
|
25754
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
25755
|
-
let
|
|
25756
|
-
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] = q, r[19] = Z) : (q = r[18], Z = r[19]);
|
|
25770
|
+
let lW;
|
|
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] !== cW || r[30] !== q || r[31] !== Z || r[32] !== b ? (lW = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25757
25772
|
id: S,
|
|
25758
25773
|
className: W,
|
|
25759
25774
|
value: T,
|
|
@@ -25763,37 +25778,37 @@ ${c}
|
|
|
25763
25778
|
orientation: g,
|
|
25764
25779
|
disabled: y,
|
|
25765
25780
|
onValueChange: G,
|
|
25766
|
-
onValueCommit:
|
|
25767
|
-
onPointerUp:
|
|
25768
|
-
onMouseUp:
|
|
25781
|
+
onValueCommit: cW,
|
|
25782
|
+
onPointerUp: q,
|
|
25783
|
+
onMouseUp: Z,
|
|
25769
25784
|
valueMap: b
|
|
25770
|
-
}), 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] =
|
|
25771
|
-
let
|
|
25772
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== 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] = cW, r[30] = q, r[31] = Z, r[32] = b, r[33] = lW) : lW = r[33];
|
|
25786
|
+
let uW;
|
|
25787
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (uW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25773
25788
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
25774
25789
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
25775
25790
|
locale: w
|
|
25776
25791
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
25777
25792
|
locale: w
|
|
25778
25793
|
})}`
|
|
25779
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
25780
|
-
let
|
|
25781
|
-
r[39] !==
|
|
25794
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = uW) : uW = r[38];
|
|
25795
|
+
let dW;
|
|
25796
|
+
r[39] !== lW || r[40] !== uW || r[41] !== B ? (dW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25782
25797
|
className: B,
|
|
25783
25798
|
children: [
|
|
25784
|
-
|
|
25785
|
-
|
|
25799
|
+
lW,
|
|
25800
|
+
uW
|
|
25786
25801
|
]
|
|
25787
|
-
}), r[39] =
|
|
25788
|
-
let
|
|
25789
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
25802
|
+
}), r[39] = lW, r[40] = uW, r[41] = B, r[42] = dW) : dW = r[42];
|
|
25803
|
+
let fW;
|
|
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, {
|
|
25790
25805
|
label: c,
|
|
25791
25806
|
id: S,
|
|
25792
25807
|
align: M,
|
|
25793
25808
|
className: L,
|
|
25794
25809
|
fullWidth: v,
|
|
25795
|
-
children:
|
|
25796
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
25810
|
+
children: dW
|
|
25811
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = dW, r[47] = M, r[48] = L, r[49] = fW) : fW = r[49], fW;
|
|
25797
25812
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
25798
25813
|
r.exports = u;
|
|
25799
25814
|
var c = {
|
|
@@ -29076,7 +29091,7 @@ ${c}
|
|
|
29076
29091
|
}
|
|
29077
29092
|
}), u2;
|
|
29078
29093
|
}
|
|
29079
|
-
var G = c(W),
|
|
29094
|
+
var G = c(W), cW = Object.freeze({
|
|
29080
29095
|
areArraysEqual: E,
|
|
29081
29096
|
areDatesEqual: j,
|
|
29082
29097
|
areMapsEqual: M,
|
|
@@ -29084,7 +29099,7 @@ ${c}
|
|
|
29084
29099
|
areRegExpsEqual: H,
|
|
29085
29100
|
areSetsEqual: W,
|
|
29086
29101
|
createIsNestedEqual: r2
|
|
29087
|
-
}),
|
|
29102
|
+
}), q = Object.freeze({
|
|
29088
29103
|
areArraysEqual: O,
|
|
29089
29104
|
areDatesEqual: j,
|
|
29090
29105
|
areMapsEqual: I,
|
|
@@ -29092,40 +29107,40 @@ ${c}
|
|
|
29092
29107
|
areRegExpsEqual: H,
|
|
29093
29108
|
areSetsEqual: G,
|
|
29094
29109
|
createIsNestedEqual: r2
|
|
29095
|
-
}),
|
|
29096
|
-
function
|
|
29097
|
-
return
|
|
29110
|
+
}), Z = T(cW);
|
|
29111
|
+
function lW(e3, r3) {
|
|
29112
|
+
return Z(e3, r3, void 0);
|
|
29098
29113
|
}
|
|
29099
|
-
var
|
|
29114
|
+
var uW = T(l(cW, {
|
|
29100
29115
|
createIsNestedEqual: function() {
|
|
29101
29116
|
return f;
|
|
29102
29117
|
}
|
|
29103
29118
|
}));
|
|
29104
|
-
function
|
|
29105
|
-
return
|
|
29119
|
+
function dW(e3, r3) {
|
|
29120
|
+
return uW(e3, r3, void 0);
|
|
29106
29121
|
}
|
|
29107
|
-
var
|
|
29108
|
-
function
|
|
29109
|
-
return
|
|
29122
|
+
var fW = T(q);
|
|
29123
|
+
function pW(e3, r3) {
|
|
29124
|
+
return fW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29110
29125
|
}
|
|
29111
|
-
var
|
|
29126
|
+
var mW = T(l(q, {
|
|
29112
29127
|
createIsNestedEqual: function() {
|
|
29113
29128
|
return f;
|
|
29114
29129
|
}
|
|
29115
29130
|
}));
|
|
29116
|
-
function
|
|
29117
|
-
return
|
|
29131
|
+
function hW(e3, r3) {
|
|
29132
|
+
return mW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29118
29133
|
}
|
|
29119
|
-
function
|
|
29120
|
-
return T(l(
|
|
29134
|
+
function gW(e3) {
|
|
29135
|
+
return T(l(cW, e3(cW)));
|
|
29121
29136
|
}
|
|
29122
|
-
function
|
|
29123
|
-
var r3 = T(l(
|
|
29137
|
+
function _W(e3) {
|
|
29138
|
+
var r3 = T(l(q, e3(q)));
|
|
29124
29139
|
return (function(e4, c2, l2) {
|
|
29125
29140
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29126
29141
|
});
|
|
29127
29142
|
}
|
|
29128
|
-
e2.circularDeepEqual =
|
|
29143
|
+
e2.circularDeepEqual = pW, e2.circularShallowEqual = hW, e2.createCustomCircularEqual = _W, e2.createCustomEqual = gW, e2.deepEqual = lW, e2.sameValueZeroEqual = f, e2.shallowEqual = dW, Object.defineProperty(e2, "__esModule", {
|
|
29129
29144
|
value: true
|
|
29130
29145
|
});
|
|
29131
29146
|
}));
|
|
@@ -29151,7 +29166,7 @@ ${c}
|
|
|
29151
29166
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
29152
29167
|
Object.defineProperty(e, "__esModule", {
|
|
29153
29168
|
value: true
|
|
29154
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
29169
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = CW, e.correctBounds = I, e.fastPositionEqual = S, e.fastRGLPropsEqual = void 0, e.getAllCollisions = z, e.getFirstCollision = R, e.getLayoutItem = L, e.getStatics = B, e.modifyLayout = _, e.moveElement = H, e.moveElementAwayFromCollision = W, e.noop = void 0, e.perc = G, e.resizeItemInDirection = hW, e.setTopLeft = _W, e.setTransform = gW, e.sortLayoutItems = vW, e.sortLayoutItemsByColRow = bW, e.sortLayoutItemsByRowCol = yW, e.synchronizeLayoutWithChildren = xW, e.validateLayout = SW, e.withLayoutItem = v;
|
|
29155
29170
|
var r = require_fast_equals(), c = l(require_react());
|
|
29156
29171
|
function l(e2) {
|
|
29157
29172
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -29256,7 +29271,7 @@ ${c}
|
|
|
29256
29271
|
return !(e2.i === r2.i || e2.x + e2.w <= r2.x || e2.x >= r2.x + r2.w || e2.y + e2.h <= r2.y || e2.y >= r2.y + r2.h);
|
|
29257
29272
|
}
|
|
29258
29273
|
function T(e2, r2, c2, l2) {
|
|
29259
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
29274
|
+
let u2 = B(e2), d2 = h(u2), f2 = vW(e2, r2), p2 = Array(e2.length);
|
|
29260
29275
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
29261
29276
|
let h3 = y(f2[m2]);
|
|
29262
29277
|
h3.static || (h3 = M(u2, h3, r2, c2, f2, l2, d2), d2 = Math.max(d2, h3.y + h3.h), u2.push(h3)), p2[e2.indexOf(f2[m2])] = h3, h3.moved = false;
|
|
@@ -29314,7 +29329,7 @@ ${c}
|
|
|
29314
29329
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
29315
29330
|
let h2 = r2.x, _2 = r2.y;
|
|
29316
29331
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
29317
|
-
let v2 =
|
|
29332
|
+
let v2 = vW(e2, f2);
|
|
29318
29333
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
29319
29334
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
29320
29335
|
if (b2 && m2) return g(e2);
|
|
@@ -29348,61 +29363,61 @@ ${c}
|
|
|
29348
29363
|
function G(e2) {
|
|
29349
29364
|
return e2 * 100 + "%";
|
|
29350
29365
|
}
|
|
29351
|
-
var
|
|
29366
|
+
var cW = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, q = (e2, r2, c2) => e2 < 0 ? r2 : c2, Z = (e2) => Math.max(0, e2), lW = (e2) => Math.max(0, e2), uW = (e2, r2, c2) => {
|
|
29352
29367
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29353
29368
|
return {
|
|
29354
29369
|
left: l2,
|
|
29355
29370
|
width: d2,
|
|
29356
|
-
height:
|
|
29357
|
-
top:
|
|
29371
|
+
height: q(f2, e2.height, u2),
|
|
29372
|
+
top: lW(f2)
|
|
29358
29373
|
};
|
|
29359
|
-
},
|
|
29374
|
+
}, dW = (e2, r2, c2) => {
|
|
29360
29375
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29361
29376
|
return {
|
|
29362
29377
|
top: l2,
|
|
29363
29378
|
height: d2,
|
|
29364
|
-
width:
|
|
29365
|
-
left:
|
|
29379
|
+
width: cW(e2.left, e2.width, f2, c2),
|
|
29380
|
+
left: Z(u2)
|
|
29366
29381
|
};
|
|
29367
|
-
},
|
|
29382
|
+
}, fW = (e2, r2, c2) => {
|
|
29368
29383
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29369
29384
|
return {
|
|
29370
29385
|
height: u2,
|
|
29371
|
-
width: f2 < 0 ? e2.width :
|
|
29372
|
-
top:
|
|
29373
|
-
left:
|
|
29386
|
+
width: f2 < 0 ? e2.width : cW(e2.left, e2.width, d2, c2),
|
|
29387
|
+
top: lW(l2),
|
|
29388
|
+
left: Z(f2)
|
|
29374
29389
|
};
|
|
29375
|
-
},
|
|
29390
|
+
}, pW = (e2, r2, c2) => {
|
|
29376
29391
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29377
29392
|
return {
|
|
29378
29393
|
width: f2,
|
|
29379
29394
|
left: u2,
|
|
29380
|
-
height:
|
|
29381
|
-
top:
|
|
29395
|
+
height: q(l2, e2.height, d2),
|
|
29396
|
+
top: lW(l2)
|
|
29382
29397
|
};
|
|
29383
|
-
},
|
|
29384
|
-
n:
|
|
29398
|
+
}, mW = {
|
|
29399
|
+
n: uW,
|
|
29385
29400
|
ne: function() {
|
|
29386
|
-
return
|
|
29401
|
+
return uW(arguments.length <= 0 ? void 0 : arguments[0], dW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29387
29402
|
},
|
|
29388
|
-
e:
|
|
29403
|
+
e: dW,
|
|
29389
29404
|
se: function() {
|
|
29390
|
-
return
|
|
29405
|
+
return pW(arguments.length <= 0 ? void 0 : arguments[0], dW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29391
29406
|
},
|
|
29392
|
-
s:
|
|
29407
|
+
s: pW,
|
|
29393
29408
|
sw: function() {
|
|
29394
|
-
return
|
|
29409
|
+
return pW(arguments.length <= 0 ? void 0 : arguments[0], fW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29395
29410
|
},
|
|
29396
|
-
w:
|
|
29411
|
+
w: fW,
|
|
29397
29412
|
nw: function() {
|
|
29398
|
-
return
|
|
29413
|
+
return uW(arguments.length <= 0 ? void 0 : arguments[0], fW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29399
29414
|
}
|
|
29400
29415
|
};
|
|
29401
|
-
function
|
|
29402
|
-
let u2 =
|
|
29416
|
+
function hW(e2, r2, c2, l2) {
|
|
29417
|
+
let u2 = mW[e2];
|
|
29403
29418
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
29404
29419
|
}
|
|
29405
|
-
function
|
|
29420
|
+
function gW(e2) {
|
|
29406
29421
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
29407
29422
|
return {
|
|
29408
29423
|
transform: d2,
|
|
@@ -29415,7 +29430,7 @@ ${c}
|
|
|
29415
29430
|
position: "absolute"
|
|
29416
29431
|
};
|
|
29417
29432
|
}
|
|
29418
|
-
function
|
|
29433
|
+
function _W(e2) {
|
|
29419
29434
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
29420
29435
|
return {
|
|
29421
29436
|
top: `${r2}px`,
|
|
@@ -29425,20 +29440,20 @@ ${c}
|
|
|
29425
29440
|
position: "absolute"
|
|
29426
29441
|
};
|
|
29427
29442
|
}
|
|
29428
|
-
function
|
|
29429
|
-
return r2 === "horizontal" ?
|
|
29443
|
+
function vW(e2, r2) {
|
|
29444
|
+
return r2 === "horizontal" ? bW(e2) : r2 === "vertical" ? yW(e2) : e2;
|
|
29430
29445
|
}
|
|
29431
|
-
function
|
|
29446
|
+
function yW(e2) {
|
|
29432
29447
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29433
29448
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
29434
29449
|
});
|
|
29435
29450
|
}
|
|
29436
|
-
function
|
|
29451
|
+
function bW(e2) {
|
|
29437
29452
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29438
29453
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
29439
29454
|
});
|
|
29440
29455
|
}
|
|
29441
|
-
function
|
|
29456
|
+
function xW(e2, r2, l2, u2, f2) {
|
|
29442
29457
|
e2 || (e2 = []);
|
|
29443
29458
|
let p2 = [];
|
|
29444
29459
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -29459,7 +29474,7 @@ ${c}
|
|
|
29459
29474
|
});
|
|
29460
29475
|
return f2 ? m2 : T(m2, u2, l2);
|
|
29461
29476
|
}
|
|
29462
|
-
function
|
|
29477
|
+
function SW(e2) {
|
|
29463
29478
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
29464
29479
|
"x",
|
|
29465
29480
|
"y",
|
|
@@ -29476,7 +29491,7 @@ ${c}
|
|
|
29476
29491
|
if (u3.i !== void 0 && typeof u3.i != "string") throw Error(`ReactGridLayout: ${r2}[${l2}].i must be a string! Received: ${u3.i} (${typeof u3.i})`);
|
|
29477
29492
|
}
|
|
29478
29493
|
}
|
|
29479
|
-
function
|
|
29494
|
+
function CW(e2) {
|
|
29480
29495
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
29481
29496
|
return r2 === false ? null : c2;
|
|
29482
29497
|
}
|
|
@@ -32281,7 +32296,7 @@ ${c}
|
|
|
32281
32296
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32282
32297
|
let E = useIsDragging(), O, j;
|
|
32283
32298
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
32284
|
-
let M = !f && !v, I, L, R, z, B, H, W, G,
|
|
32299
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, cW, q, Z, lW, uW, dW, fW, pW, mW, hW, gW, _W, vW, yW, bW, xW, SW, CW;
|
|
32285
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) {
|
|
32286
32301
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
32287
32302
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32300,23 +32315,23 @@ ${c}
|
|
|
32300
32315
|
});
|
|
32301
32316
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
32302
32317
|
let y2 = v2;
|
|
32303
|
-
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout,
|
|
32318
|
+
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout, bW = "lg", r[58] === c.cells ? xW = r[59] : (xW = {
|
|
32304
32319
|
lg: c.cells
|
|
32305
|
-
}, r[58] = c.cells, r[59] =
|
|
32320
|
+
}, r[58] = c.cells, r[59] = xW), SW = L, CW = S, R = false;
|
|
32306
32321
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
32307
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 ? [
|
|
32308
32323
|
20,
|
|
32309
32324
|
20
|
|
32310
|
-
] : 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, cW = true, q = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (Z = (e3) => {
|
|
32311
32326
|
f || l({
|
|
32312
32327
|
...c,
|
|
32313
32328
|
cells: e3
|
|
32314
32329
|
});
|
|
32315
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
32330
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ? lW = r[71] : (lW = g ? {
|
|
32316
32331
|
i: g.i,
|
|
32317
32332
|
w: g.w || 2,
|
|
32318
32333
|
h: g.h || 2
|
|
32319
|
-
} : void 0, r[70] = g, r[71] =
|
|
32334
|
+
} : void 0, r[70] = g, r[71] = lW), r[72] !== O || r[73] !== c || r[74] !== l ? (uW = (e3, r2, u2) => {
|
|
32320
32335
|
O.onDragStop(), r2 && l({
|
|
32321
32336
|
...c,
|
|
32322
32337
|
cells: [
|
|
@@ -32324,15 +32339,15 @@ ${c}
|
|
|
32324
32339
|
r2
|
|
32325
32340
|
]
|
|
32326
32341
|
});
|
|
32327
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
32342
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = uW) : uW = r[75], r[76] === O ? (dW = r[77], fW = r[78], pW = r[79]) : (dW = (e3, r2, c2, l2, u2) => {
|
|
32328
32343
|
O.onDragStart(u2);
|
|
32329
|
-
},
|
|
32344
|
+
}, fW = (e3, r2, c2, l2, u2) => {
|
|
32330
32345
|
O.onDragMove(u2);
|
|
32331
|
-
},
|
|
32346
|
+
}, pW = () => {
|
|
32332
32347
|
O.onDragStop();
|
|
32333
|
-
}, r[76] = O, r[77] =
|
|
32348
|
+
}, r[76] = O, r[77] = dW, r[78] = fW, r[79] = pW), mW = _temp3$2, hW = M, gW = M, _W = M, vW = M ? `.${DRAG_HANDLE}` : "noop";
|
|
32334
32349
|
let E2;
|
|
32335
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
32350
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), yW = u.filter(E2).map((r2) => {
|
|
32336
32351
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p = c.cellSide.get(r2.id), m3 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
32337
32352
|
code: r2.code,
|
|
32338
32353
|
mode: d,
|
|
@@ -32361,38 +32376,38 @@ ${c}
|
|
|
32361
32376
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32362
32377
|
children: m3
|
|
32363
32378
|
}, r2.id);
|
|
32364
|
-
}), 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] =
|
|
32365
|
-
} 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],
|
|
32366
|
-
let
|
|
32367
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !==
|
|
32368
|
-
breakpoint:
|
|
32369
|
-
layouts:
|
|
32370
|
-
style:
|
|
32371
|
-
cols:
|
|
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] = cW, r[30] = q, r[31] = Z, r[32] = lW, 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], cW = r[29], q = r[30], Z = r[31], lW = 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
|
+
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] !== cW || r[90] !== q || r[91] !== Z || r[92] !== lW || 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
|
+
breakpoint: bW,
|
|
32384
|
+
layouts: xW,
|
|
32385
|
+
style: SW,
|
|
32386
|
+
cols: CW,
|
|
32372
32387
|
allowOverlap: R,
|
|
32373
32388
|
className: z,
|
|
32374
32389
|
containerPadding: B,
|
|
32375
32390
|
margin: H,
|
|
32376
32391
|
isBounded: W,
|
|
32377
32392
|
compactType: G,
|
|
32378
|
-
preventCollision:
|
|
32379
|
-
rowHeight:
|
|
32380
|
-
onLayoutChange:
|
|
32381
|
-
droppingItem:
|
|
32382
|
-
onDrop:
|
|
32383
|
-
onDragStart:
|
|
32384
|
-
onDrag:
|
|
32385
|
-
onDragStop:
|
|
32386
|
-
onResizeStop:
|
|
32387
|
-
isDraggable:
|
|
32388
|
-
isDroppable:
|
|
32389
|
-
isResizable:
|
|
32390
|
-
draggableHandle:
|
|
32391
|
-
children:
|
|
32392
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] =
|
|
32393
|
-
let
|
|
32394
|
-
if (r[108] !== u || r[109] !==
|
|
32395
|
-
|
|
32393
|
+
preventCollision: cW,
|
|
32394
|
+
rowHeight: q,
|
|
32395
|
+
onLayoutChange: Z,
|
|
32396
|
+
droppingItem: lW,
|
|
32397
|
+
onDrop: uW,
|
|
32398
|
+
onDragStart: dW,
|
|
32399
|
+
onDrag: fW,
|
|
32400
|
+
onDragStop: pW,
|
|
32401
|
+
onResizeStop: mW,
|
|
32402
|
+
isDraggable: hW,
|
|
32403
|
+
isDroppable: gW,
|
|
32404
|
+
isResizable: _W,
|
|
32405
|
+
draggableHandle: vW,
|
|
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] = cW, r[90] = q, r[91] = Z, r[92] = lW, 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
|
+
let TW = wW, EW, DW, OW, kW, AW, jW, MW;
|
|
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
|
+
MW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
32396
32411
|
bb0: {
|
|
32397
32412
|
let e2;
|
|
32398
32413
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -32400,14 +32415,14 @@ ${c}
|
|
|
32400
32415
|
if (f) {
|
|
32401
32416
|
if (c.bordered) {
|
|
32402
32417
|
let e4;
|
|
32403
|
-
r[127] !==
|
|
32418
|
+
r[127] !== TW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
32404
32419
|
className: "flex flex-1 flex-col items-center",
|
|
32405
32420
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
32406
32421
|
style: L,
|
|
32407
32422
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
32408
|
-
children:
|
|
32423
|
+
children: TW
|
|
32409
32424
|
})
|
|
32410
|
-
}), r[127] =
|
|
32425
|
+
}), r[127] = TW, r[128] = L, r[129] = e4) : e4 = r[129], TW = e4;
|
|
32411
32426
|
}
|
|
32412
32427
|
let e3 = m2.filter(_temp4$2), l2;
|
|
32413
32428
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -32418,9 +32433,9 @@ ${c}
|
|
|
32418
32433
|
status: e4.status,
|
|
32419
32434
|
isScrollable: false,
|
|
32420
32435
|
hidden: false
|
|
32421
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
32436
|
+
}, e4.id), r[130] = d, r[131] = l2), MW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32422
32437
|
children: [
|
|
32423
|
-
|
|
32438
|
+
TW,
|
|
32424
32439
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32425
32440
|
className: "hidden",
|
|
32426
32441
|
children: e3.map(l2)
|
|
@@ -32431,31 +32446,31 @@ ${c}
|
|
|
32431
32446
|
}
|
|
32432
32447
|
if (c.bordered) {
|
|
32433
32448
|
let e3;
|
|
32434
|
-
r[132] ===
|
|
32449
|
+
r[132] === TW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
32435
32450
|
className: "h-full overflow-auto",
|
|
32436
|
-
children:
|
|
32437
|
-
}), r[132] =
|
|
32451
|
+
children: TW
|
|
32452
|
+
}), r[132] = TW, r[133] = e3);
|
|
32438
32453
|
let c2;
|
|
32439
32454
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32440
32455
|
style: L,
|
|
32441
32456
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
32442
32457
|
children: e3
|
|
32443
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
32458
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], TW = c2;
|
|
32444
32459
|
}
|
|
32445
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
32460
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (jW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
32446
32461
|
layout: c,
|
|
32447
32462
|
setLayout: l,
|
|
32448
32463
|
isLocked: v,
|
|
32449
32464
|
setIsLocked: y
|
|
32450
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
32465
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = jW) : jW = r[140];
|
|
32451
32466
|
let g2;
|
|
32452
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32467
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (kW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = kW, r[142] = g2) : (kW = r[141], g2 = r[142]), r[143] === TW ? AW = r[144] : (AW = (0, import_jsx_runtime.jsx)("div", {
|
|
32453
32468
|
className: g2,
|
|
32454
|
-
children:
|
|
32455
|
-
}), r[143] =
|
|
32469
|
+
children: TW
|
|
32470
|
+
}), r[143] = TW, r[144] = AW), EW = "flex-none flex flex-col w-[300px] p-2 pb-20 gap-2 overflow-auto bg-(--slate-2) border-t border-x rounded-t shadow-sm transparent-when-disconnected mx-2 mt-4", r[145] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (DW = (0, import_jsx_runtime.jsx)("div", {
|
|
32456
32471
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
32457
32472
|
children: "Outputs"
|
|
32458
|
-
}), r[145] =
|
|
32473
|
+
}), r[145] = DW) : DW = r[145];
|
|
32459
32474
|
let b2;
|
|
32460
32475
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
32461
32476
|
draggable: true,
|
|
@@ -32480,34 +32495,34 @@ ${c}
|
|
|
32480
32495
|
status: e3.status,
|
|
32481
32496
|
hidden: false
|
|
32482
32497
|
})
|
|
32483
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
32484
|
-
}
|
|
32485
|
-
r[108] = u, r[109] =
|
|
32486
|
-
} else
|
|
32487
|
-
if (
|
|
32488
|
-
let
|
|
32489
|
-
r[150] !==
|
|
32490
|
-
className:
|
|
32498
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], OW = m2.map(b2);
|
|
32499
|
+
}
|
|
32500
|
+
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, r[117] = EW, r[118] = DW, r[119] = OW, r[120] = kW, r[121] = AW, r[122] = jW, r[123] = MW, r[124] = TW;
|
|
32501
|
+
} else EW = r[117], DW = r[118], OW = r[119], kW = r[120], AW = r[121], jW = r[122], MW = r[123], TW = r[124];
|
|
32502
|
+
if (MW !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return MW;
|
|
32503
|
+
let NW;
|
|
32504
|
+
r[150] !== EW || r[151] !== DW || r[152] !== OW ? (NW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32505
|
+
className: EW,
|
|
32491
32506
|
children: [
|
|
32492
|
-
|
|
32493
|
-
|
|
32507
|
+
DW,
|
|
32508
|
+
OW
|
|
32494
32509
|
]
|
|
32495
|
-
}), r[150] =
|
|
32496
|
-
let
|
|
32497
|
-
r[154] !==
|
|
32498
|
-
className:
|
|
32510
|
+
}), r[150] = EW, r[151] = DW, r[152] = OW, r[153] = NW) : NW = r[153];
|
|
32511
|
+
let PW;
|
|
32512
|
+
r[154] !== kW || r[155] !== AW || r[156] !== NW ? (PW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32513
|
+
className: kW,
|
|
32499
32514
|
children: [
|
|
32500
|
-
|
|
32501
|
-
|
|
32515
|
+
AW,
|
|
32516
|
+
NW
|
|
32502
32517
|
]
|
|
32503
|
-
}), r[154] =
|
|
32504
|
-
let
|
|
32505
|
-
return r[158] !==
|
|
32518
|
+
}), r[154] = kW, r[155] = AW, r[156] = NW, r[157] = PW) : PW = r[157];
|
|
32519
|
+
let FW;
|
|
32520
|
+
return r[158] !== jW || r[159] !== PW ? (FW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32506
32521
|
children: [
|
|
32507
|
-
|
|
32508
|
-
|
|
32522
|
+
jW,
|
|
32523
|
+
PW
|
|
32509
32524
|
]
|
|
32510
|
-
}), r[158] =
|
|
32525
|
+
}), r[158] = jW, r[159] = PW, r[160] = FW) : FW = r[160], FW;
|
|
32511
32526
|
};
|
|
32512
32527
|
var GridCell = (0, import_react.memo)((e) => {
|
|
32513
32528
|
let r = (0, import_compiler_runtime$13.c)(20), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _ } = e, v;
|
|
@@ -32799,34 +32814,34 @@ ${c}
|
|
|
32799
32814
|
]
|
|
32800
32815
|
})
|
|
32801
32816
|
}), r[28] = B, r[29] = W, r[30] = G) : G = r[30];
|
|
32802
|
-
let
|
|
32803
|
-
r[31] !== L || r[32] !== R || r[33] !== G ? (
|
|
32817
|
+
let cW;
|
|
32818
|
+
r[31] !== L || r[32] !== R || r[33] !== G ? (cW = (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
32804
32819
|
open: L,
|
|
32805
32820
|
onOpenChange: R,
|
|
32806
32821
|
children: [
|
|
32807
32822
|
z,
|
|
32808
32823
|
G
|
|
32809
32824
|
]
|
|
32810
|
-
}), r[31] = L, r[32] = R, r[33] = G, r[34] =
|
|
32811
|
-
let
|
|
32812
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32825
|
+
}), r[31] = L, r[32] = R, r[33] = G, r[34] = cW) : cW = r[34];
|
|
32826
|
+
let q;
|
|
32827
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32813
32828
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32814
|
-
}), r[35] =
|
|
32815
|
-
let
|
|
32816
|
-
r[36] === l ?
|
|
32829
|
+
}), r[35] = q) : q = r[35];
|
|
32830
|
+
let Z;
|
|
32831
|
+
r[36] === l ? Z = r[37] : (Z = (0, import_jsx_runtime.jsx)(X, {
|
|
32817
32832
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
32818
32833
|
onClick: () => l()
|
|
32819
|
-
}), r[36] = l, r[37] =
|
|
32820
|
-
let
|
|
32821
|
-
return r[38] !== I || r[39] !==
|
|
32834
|
+
}), r[36] = l, r[37] = Z);
|
|
32835
|
+
let lW;
|
|
32836
|
+
return r[38] !== I || r[39] !== cW || r[40] !== Z || r[41] !== w ? (lW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32822
32837
|
className: w,
|
|
32823
32838
|
children: [
|
|
32824
32839
|
I,
|
|
32840
|
+
cW,
|
|
32825
32841
|
q,
|
|
32826
|
-
|
|
32827
|
-
iW
|
|
32842
|
+
Z
|
|
32828
32843
|
]
|
|
32829
|
-
}), r[38] = I, r[39] =
|
|
32844
|
+
}), r[38] = I, r[39] = cW, r[40] = Z, r[41] = w, r[42] = lW) : lW = r[42], lW;
|
|
32830
32845
|
};
|
|
32831
32846
|
function isSidebarCell(e) {
|
|
32832
32847
|
var _a3;
|
|
@@ -34830,31 +34845,31 @@ ${c}
|
|
|
34830
34845
|
}, [
|
|
34831
34846
|
T,
|
|
34832
34847
|
M
|
|
34833
|
-
]), 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)), cW = useUniqueId("DndDescribedBy", r), q = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34834
34849
|
j
|
|
34835
|
-
]),
|
|
34850
|
+
]), Z = useMeasuringConfiguration(p), { droppableRects: lW, measureDroppableContainers: uW, measuringScheduled: dW } = useDroppableMeasuring(q, {
|
|
34836
34851
|
dragging: w,
|
|
34837
34852
|
dependencies: [
|
|
34838
34853
|
O.x,
|
|
34839
34854
|
O.y
|
|
34840
34855
|
],
|
|
34841
|
-
config:
|
|
34842
|
-
}),
|
|
34856
|
+
config: Z.droppable
|
|
34857
|
+
}), fW = useCachedNode(E, T), pW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34843
34858
|
H
|
|
34844
|
-
]),
|
|
34859
|
+
]), mW = GW(), hW = useInitialRect(fW, Z.draggable.measure);
|
|
34845
34860
|
useLayoutShiftScrollCompensation({
|
|
34846
34861
|
activeNode: T == null ? null : E.get(T),
|
|
34847
|
-
config:
|
|
34848
|
-
initialRect:
|
|
34849
|
-
measure:
|
|
34862
|
+
config: mW.layoutShiftCompensation,
|
|
34863
|
+
initialRect: hW,
|
|
34864
|
+
measure: Z.draggable.measure
|
|
34850
34865
|
});
|
|
34851
|
-
let
|
|
34866
|
+
let gW = useRect(fW, Z.draggable.measure, hW), _W = useRect(fW ? fW.parentElement : null), vW = (0, import_react.useRef)({
|
|
34852
34867
|
activatorEvent: null,
|
|
34853
34868
|
active: null,
|
|
34854
|
-
activeNode:
|
|
34869
|
+
activeNode: fW,
|
|
34855
34870
|
collisionRect: null,
|
|
34856
34871
|
collisions: null,
|
|
34857
|
-
droppableRects:
|
|
34872
|
+
droppableRects: lW,
|
|
34858
34873
|
draggableNodes: E,
|
|
34859
34874
|
draggingNode: null,
|
|
34860
34875
|
draggingNodeRect: null,
|
|
@@ -34862,45 +34877,45 @@ ${c}
|
|
|
34862
34877
|
over: null,
|
|
34863
34878
|
scrollableAncestors: [],
|
|
34864
34879
|
scrollAdjustedTranslate: null
|
|
34865
|
-
}),
|
|
34866
|
-
measure:
|
|
34867
|
-
}),
|
|
34880
|
+
}), yW = j.getNodeFor((_a3 = vW.current.over) == null ? void 0 : _a3.id), bW = useDragOverlayMeasuring({
|
|
34881
|
+
measure: Z.dragOverlay.measure
|
|
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, {
|
|
34868
34883
|
transform: {
|
|
34869
|
-
x: O.x -
|
|
34870
|
-
y: O.y -
|
|
34884
|
+
x: O.x - wW.x,
|
|
34885
|
+
y: O.y - wW.y,
|
|
34871
34886
|
scaleX: 1,
|
|
34872
34887
|
scaleY: 1
|
|
34873
34888
|
},
|
|
34874
34889
|
activatorEvent: H,
|
|
34875
34890
|
active: L,
|
|
34876
|
-
activeNodeRect:
|
|
34877
|
-
containerNodeRect:
|
|
34878
|
-
draggingNodeRect:
|
|
34879
|
-
over:
|
|
34880
|
-
overlayNodeRect:
|
|
34881
|
-
scrollableAncestors:
|
|
34882
|
-
scrollableAncestorRects:
|
|
34883
|
-
windowRect:
|
|
34884
|
-
}),
|
|
34885
|
-
|
|
34886
|
-
]),
|
|
34891
|
+
activeNodeRect: gW,
|
|
34892
|
+
containerNodeRect: _W,
|
|
34893
|
+
draggingNodeRect: SW,
|
|
34894
|
+
over: vW.current.over,
|
|
34895
|
+
overlayNodeRect: bW.rect,
|
|
34896
|
+
scrollableAncestors: EW,
|
|
34897
|
+
scrollableAncestorRects: DW,
|
|
34898
|
+
windowRect: TW
|
|
34899
|
+
}), kW = pW ? add(pW, O) : null, AW = useScrollOffsets(EW), jW = useScrollOffsetsDelta(AW), MW = useScrollOffsetsDelta(AW, [
|
|
34900
|
+
gW
|
|
34901
|
+
]), NW = add(OW, jW), PW = SW ? getAdjustedRect(SW, OW) : null, FW = L && PW ? f({
|
|
34887
34902
|
active: L,
|
|
34888
|
-
collisionRect:
|
|
34889
|
-
droppableRects:
|
|
34890
|
-
droppableContainers:
|
|
34891
|
-
pointerCoordinates:
|
|
34892
|
-
}) : null,
|
|
34903
|
+
collisionRect: PW,
|
|
34904
|
+
droppableRects: lW,
|
|
34905
|
+
droppableContainers: q,
|
|
34906
|
+
pointerCoordinates: kW
|
|
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) => {
|
|
34893
34908
|
let { sensor: c2, options: l2 } = r2;
|
|
34894
34909
|
if (R.current == null) return;
|
|
34895
34910
|
let u2 = E.get(R.current);
|
|
34896
34911
|
if (!u2) return;
|
|
34897
34912
|
let d2 = e2.nativeEvent;
|
|
34898
|
-
|
|
34913
|
+
BW.current = new c2({
|
|
34899
34914
|
active: R.current,
|
|
34900
34915
|
activeNode: u2,
|
|
34901
34916
|
event: d2,
|
|
34902
34917
|
options: l2,
|
|
34903
|
-
context:
|
|
34918
|
+
context: vW,
|
|
34904
34919
|
onAbort(e3) {
|
|
34905
34920
|
if (!E.get(e3)) return;
|
|
34906
34921
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -34945,7 +34960,7 @@ ${c}
|
|
|
34945
34960
|
}), v({
|
|
34946
34961
|
type: "onDragStart",
|
|
34947
34962
|
event: u3
|
|
34948
|
-
}), B(
|
|
34963
|
+
}), B(BW.current), W(d2);
|
|
34949
34964
|
});
|
|
34950
34965
|
},
|
|
34951
34966
|
onMove(e3) {
|
|
@@ -34959,7 +34974,7 @@ ${c}
|
|
|
34959
34974
|
});
|
|
34960
34975
|
function f2(e3) {
|
|
34961
34976
|
return async function() {
|
|
34962
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
34977
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = vW.current, f3 = null;
|
|
34963
34978
|
if (r3 && u3) {
|
|
34964
34979
|
let { cancelDrop: p2 } = G.current;
|
|
34965
34980
|
f3 = {
|
|
@@ -34973,7 +34988,7 @@ ${c}
|
|
|
34973
34988
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34974
34989
|
_({
|
|
34975
34990
|
type: e3
|
|
34976
|
-
}), S(Status.Uninitialized),
|
|
34991
|
+
}), S(Status.Uninitialized), RW(null), B(null), W(null), BW.current = null;
|
|
34977
34992
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
34978
34993
|
if (f3) {
|
|
34979
34994
|
let e4 = G.current[r4];
|
|
@@ -34987,7 +35002,7 @@ ${c}
|
|
|
34987
35002
|
}
|
|
34988
35003
|
}, [
|
|
34989
35004
|
E
|
|
34990
|
-
]),
|
|
35005
|
+
]), HW = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
34991
35006
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
34992
35007
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
34993
35008
|
let f2 = {
|
|
@@ -34995,26 +35010,26 @@ ${c}
|
|
|
34995
35010
|
};
|
|
34996
35011
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
34997
35012
|
capturedBy: r2.sensor
|
|
34998
|
-
}, R.current = l2,
|
|
35013
|
+
}, R.current = l2, VW(c2, r2));
|
|
34999
35014
|
}, [
|
|
35000
35015
|
E,
|
|
35001
|
-
|
|
35016
|
+
VW
|
|
35002
35017
|
]));
|
|
35003
35018
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
35004
|
-
|
|
35019
|
+
gW && b === Status.Initializing && S(Status.Initialized);
|
|
35005
35020
|
}, [
|
|
35006
|
-
|
|
35021
|
+
gW,
|
|
35007
35022
|
b
|
|
35008
35023
|
]), (0, import_react.useEffect)(() => {
|
|
35009
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
35024
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = vW.current;
|
|
35010
35025
|
if (!r2 || !c2) return;
|
|
35011
35026
|
let d2 = {
|
|
35012
35027
|
active: r2,
|
|
35013
35028
|
activatorEvent: c2,
|
|
35014
35029
|
collisions: l2,
|
|
35015
35030
|
delta: {
|
|
35016
|
-
x:
|
|
35017
|
-
y:
|
|
35031
|
+
x: NW.x,
|
|
35032
|
+
y: NW.y
|
|
35018
35033
|
},
|
|
35019
35034
|
over: u2
|
|
35020
35035
|
};
|
|
@@ -35025,12 +35040,12 @@ ${c}
|
|
|
35025
35040
|
});
|
|
35026
35041
|
});
|
|
35027
35042
|
}, [
|
|
35028
|
-
|
|
35029
|
-
|
|
35043
|
+
NW.x,
|
|
35044
|
+
NW.y
|
|
35030
35045
|
]), (0, import_react.useEffect)(() => {
|
|
35031
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
35046
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = vW.current;
|
|
35032
35047
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
35033
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
35048
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(IW), p2 = f2 && f2.rect.current ? {
|
|
35034
35049
|
id: f2.id,
|
|
35035
35050
|
rect: f2.rect.current,
|
|
35036
35051
|
data: f2.data,
|
|
@@ -35046,127 +35061,127 @@ ${c}
|
|
|
35046
35061
|
over: p2
|
|
35047
35062
|
};
|
|
35048
35063
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
35049
|
-
|
|
35064
|
+
RW(p2), d2 == null ? void 0 : d2(m2), v({
|
|
35050
35065
|
type: "onDragOver",
|
|
35051
35066
|
event: m2
|
|
35052
35067
|
});
|
|
35053
35068
|
});
|
|
35054
35069
|
}, [
|
|
35055
|
-
|
|
35070
|
+
IW
|
|
35056
35071
|
]), useIsomorphicLayoutEffect(() => {
|
|
35057
|
-
|
|
35072
|
+
vW.current = {
|
|
35058
35073
|
activatorEvent: H,
|
|
35059
35074
|
active: L,
|
|
35060
|
-
activeNode:
|
|
35061
|
-
collisionRect:
|
|
35062
|
-
collisions:
|
|
35063
|
-
droppableRects:
|
|
35075
|
+
activeNode: fW,
|
|
35076
|
+
collisionRect: PW,
|
|
35077
|
+
collisions: FW,
|
|
35078
|
+
droppableRects: lW,
|
|
35064
35079
|
draggableNodes: E,
|
|
35065
|
-
draggingNode:
|
|
35066
|
-
draggingNodeRect:
|
|
35080
|
+
draggingNode: xW,
|
|
35081
|
+
draggingNodeRect: SW,
|
|
35067
35082
|
droppableContainers: j,
|
|
35068
|
-
over:
|
|
35069
|
-
scrollableAncestors:
|
|
35070
|
-
scrollAdjustedTranslate:
|
|
35083
|
+
over: LW,
|
|
35084
|
+
scrollableAncestors: EW,
|
|
35085
|
+
scrollAdjustedTranslate: NW
|
|
35071
35086
|
}, I.current = {
|
|
35072
|
-
initial:
|
|
35073
|
-
translated:
|
|
35087
|
+
initial: SW,
|
|
35088
|
+
translated: PW
|
|
35074
35089
|
};
|
|
35075
35090
|
}, [
|
|
35076
35091
|
L,
|
|
35077
|
-
|
|
35078
|
-
|
|
35079
|
-
|
|
35092
|
+
fW,
|
|
35093
|
+
FW,
|
|
35094
|
+
PW,
|
|
35080
35095
|
E,
|
|
35081
|
-
gW,
|
|
35082
|
-
_W,
|
|
35083
|
-
Z,
|
|
35084
|
-
j,
|
|
35085
|
-
MW,
|
|
35086
35096
|
xW,
|
|
35087
|
-
|
|
35097
|
+
SW,
|
|
35098
|
+
lW,
|
|
35099
|
+
j,
|
|
35100
|
+
LW,
|
|
35101
|
+
EW,
|
|
35102
|
+
NW
|
|
35088
35103
|
]), useAutoScroller({
|
|
35089
|
-
...
|
|
35104
|
+
...mW,
|
|
35090
35105
|
delta: O,
|
|
35091
|
-
draggingRect:
|
|
35092
|
-
pointerCoordinates:
|
|
35093
|
-
scrollableAncestors:
|
|
35094
|
-
scrollableAncestorRects:
|
|
35106
|
+
draggingRect: PW,
|
|
35107
|
+
pointerCoordinates: kW,
|
|
35108
|
+
scrollableAncestors: EW,
|
|
35109
|
+
scrollableAncestorRects: DW
|
|
35095
35110
|
});
|
|
35096
|
-
let
|
|
35111
|
+
let UW = (0, import_react.useMemo)(() => ({
|
|
35097
35112
|
active: L,
|
|
35098
|
-
activeNode:
|
|
35099
|
-
activeNodeRect:
|
|
35113
|
+
activeNode: fW,
|
|
35114
|
+
activeNodeRect: gW,
|
|
35100
35115
|
activatorEvent: H,
|
|
35101
|
-
collisions:
|
|
35102
|
-
containerNodeRect:
|
|
35103
|
-
dragOverlay:
|
|
35116
|
+
collisions: FW,
|
|
35117
|
+
containerNodeRect: _W,
|
|
35118
|
+
dragOverlay: bW,
|
|
35104
35119
|
draggableNodes: E,
|
|
35105
35120
|
droppableContainers: j,
|
|
35106
|
-
droppableRects:
|
|
35107
|
-
over:
|
|
35108
|
-
measureDroppableContainers:
|
|
35109
|
-
scrollableAncestors:
|
|
35110
|
-
scrollableAncestorRects:
|
|
35111
|
-
measuringConfiguration:
|
|
35112
|
-
measuringScheduled:
|
|
35113
|
-
windowRect:
|
|
35121
|
+
droppableRects: lW,
|
|
35122
|
+
over: LW,
|
|
35123
|
+
measureDroppableContainers: uW,
|
|
35124
|
+
scrollableAncestors: EW,
|
|
35125
|
+
scrollableAncestorRects: DW,
|
|
35126
|
+
measuringConfiguration: Z,
|
|
35127
|
+
measuringScheduled: dW,
|
|
35128
|
+
windowRect: TW
|
|
35114
35129
|
}), [
|
|
35115
35130
|
L,
|
|
35116
|
-
sW,
|
|
35117
|
-
dW,
|
|
35118
|
-
H,
|
|
35119
|
-
AW,
|
|
35120
35131
|
fW,
|
|
35121
|
-
|
|
35132
|
+
gW,
|
|
35133
|
+
H,
|
|
35134
|
+
FW,
|
|
35135
|
+
_W,
|
|
35136
|
+
bW,
|
|
35122
35137
|
E,
|
|
35123
35138
|
j,
|
|
35139
|
+
lW,
|
|
35140
|
+
LW,
|
|
35141
|
+
uW,
|
|
35142
|
+
EW,
|
|
35143
|
+
DW,
|
|
35124
35144
|
Z,
|
|
35125
|
-
|
|
35126
|
-
|
|
35127
|
-
|
|
35128
|
-
SW,
|
|
35129
|
-
iW,
|
|
35130
|
-
oW,
|
|
35131
|
-
bW
|
|
35132
|
-
]), zW = (0, import_react.useMemo)(() => ({
|
|
35145
|
+
dW,
|
|
35146
|
+
TW
|
|
35147
|
+
]), WW = (0, import_react.useMemo)(() => ({
|
|
35133
35148
|
activatorEvent: H,
|
|
35134
|
-
activators:
|
|
35149
|
+
activators: HW,
|
|
35135
35150
|
active: L,
|
|
35136
|
-
activeNodeRect:
|
|
35151
|
+
activeNodeRect: gW,
|
|
35137
35152
|
ariaDescribedById: {
|
|
35138
|
-
draggable:
|
|
35153
|
+
draggable: cW
|
|
35139
35154
|
},
|
|
35140
35155
|
dispatch: _,
|
|
35141
35156
|
draggableNodes: E,
|
|
35142
|
-
over:
|
|
35143
|
-
measureDroppableContainers:
|
|
35157
|
+
over: LW,
|
|
35158
|
+
measureDroppableContainers: uW
|
|
35144
35159
|
}), [
|
|
35145
35160
|
H,
|
|
35146
|
-
|
|
35161
|
+
HW,
|
|
35147
35162
|
L,
|
|
35148
|
-
|
|
35163
|
+
gW,
|
|
35149
35164
|
_,
|
|
35150
|
-
|
|
35165
|
+
cW,
|
|
35151
35166
|
E,
|
|
35152
|
-
|
|
35153
|
-
|
|
35167
|
+
LW,
|
|
35168
|
+
uW
|
|
35154
35169
|
]);
|
|
35155
35170
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
35156
35171
|
value: y
|
|
35157
35172
|
}, import_react.createElement(InternalContext.Provider, {
|
|
35158
|
-
value:
|
|
35173
|
+
value: WW
|
|
35159
35174
|
}, import_react.createElement(PublicContext.Provider, {
|
|
35160
|
-
value:
|
|
35175
|
+
value: UW
|
|
35161
35176
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
35162
|
-
value:
|
|
35177
|
+
value: zW
|
|
35163
35178
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
35164
35179
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35165
35180
|
})), import_react.createElement(Accessibility, {
|
|
35166
35181
|
...c,
|
|
35167
|
-
hiddenTextDescribedById:
|
|
35182
|
+
hiddenTextDescribedById: cW
|
|
35168
35183
|
}));
|
|
35169
|
-
function
|
|
35184
|
+
function GW() {
|
|
35170
35185
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
35171
35186
|
return typeof l == "object" ? {
|
|
35172
35187
|
...l,
|
|
@@ -35694,7 +35709,7 @@ ${c}
|
|
|
35694
35709
|
updateMeasurementsFor: I,
|
|
35695
35710
|
...m
|
|
35696
35711
|
}
|
|
35697
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes:
|
|
35712
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: cW, setNodeRef: q, listeners: Z, isDragging: lW, over: uW, setActivatorNodeRef: dW, transform: fW } = useDraggable({
|
|
35698
35713
|
id: f,
|
|
35699
35714
|
data: M,
|
|
35700
35715
|
attributes: {
|
|
@@ -35702,86 +35717,86 @@ ${c}
|
|
|
35702
35717
|
...c
|
|
35703
35718
|
},
|
|
35704
35719
|
disabled: O.draggable
|
|
35705
|
-
}),
|
|
35720
|
+
}), pW = useCombinedRefs(B, q), mW = !!H, hW = mW && !b && isValidIndex(v) && isValidIndex(w), gW = !T && lW, _W = hW ? (gW && hW ? fW : null) ?? (p ?? E)({
|
|
35706
35721
|
rects: S,
|
|
35707
35722
|
activeNodeRect: G,
|
|
35708
35723
|
activeIndex: v,
|
|
35709
35724
|
overIndex: w,
|
|
35710
35725
|
index: j
|
|
35711
|
-
}) : null,
|
|
35726
|
+
}) : null, vW = isValidIndex(v) && isValidIndex(w) ? d({
|
|
35712
35727
|
id: f,
|
|
35713
35728
|
items: g,
|
|
35714
35729
|
activeIndex: v,
|
|
35715
35730
|
overIndex: w
|
|
35716
|
-
}) : j,
|
|
35717
|
-
activeId:
|
|
35731
|
+
}) : j, yW = H == null ? void 0 : H.id, bW = (0, import_react.useRef)({
|
|
35732
|
+
activeId: yW,
|
|
35718
35733
|
items: g,
|
|
35719
|
-
newIndex:
|
|
35734
|
+
newIndex: vW,
|
|
35720
35735
|
containerId: _
|
|
35721
|
-
}),
|
|
35736
|
+
}), xW = g !== bW.current.items, SW = r({
|
|
35722
35737
|
active: H,
|
|
35723
35738
|
containerId: _,
|
|
35724
|
-
isDragging:
|
|
35725
|
-
isSorting:
|
|
35739
|
+
isDragging: lW,
|
|
35740
|
+
isSorting: mW,
|
|
35726
35741
|
id: f,
|
|
35727
35742
|
index: j,
|
|
35728
35743
|
items: g,
|
|
35729
|
-
newIndex:
|
|
35730
|
-
previousItems:
|
|
35731
|
-
previousContainerId:
|
|
35744
|
+
newIndex: bW.current.newIndex,
|
|
35745
|
+
previousItems: bW.current.items,
|
|
35746
|
+
previousContainerId: bW.current.containerId,
|
|
35732
35747
|
transition: h,
|
|
35733
|
-
wasDragging:
|
|
35734
|
-
}),
|
|
35735
|
-
disabled: !
|
|
35748
|
+
wasDragging: bW.current.activeId != null
|
|
35749
|
+
}), CW = useDerivedTransform({
|
|
35750
|
+
disabled: !SW,
|
|
35736
35751
|
index: j,
|
|
35737
35752
|
node: R,
|
|
35738
35753
|
rect: L
|
|
35739
35754
|
});
|
|
35740
35755
|
return (0, import_react.useEffect)(() => {
|
|
35741
|
-
|
|
35756
|
+
mW && bW.current.newIndex !== vW && (bW.current.newIndex = vW), _ !== bW.current.containerId && (bW.current.containerId = _), g !== bW.current.items && (bW.current.items = g);
|
|
35742
35757
|
}, [
|
|
35743
|
-
|
|
35744
|
-
|
|
35758
|
+
mW,
|
|
35759
|
+
vW,
|
|
35745
35760
|
_,
|
|
35746
35761
|
g
|
|
35747
35762
|
]), (0, import_react.useEffect)(() => {
|
|
35748
|
-
if (
|
|
35749
|
-
if (
|
|
35750
|
-
|
|
35763
|
+
if (yW === bW.current.activeId) return;
|
|
35764
|
+
if (yW != null && bW.current.activeId == null) {
|
|
35765
|
+
bW.current.activeId = yW;
|
|
35751
35766
|
return;
|
|
35752
35767
|
}
|
|
35753
35768
|
let e2 = setTimeout(() => {
|
|
35754
|
-
|
|
35769
|
+
bW.current.activeId = yW;
|
|
35755
35770
|
}, 50);
|
|
35756
35771
|
return () => clearTimeout(e2);
|
|
35757
35772
|
}, [
|
|
35758
|
-
|
|
35773
|
+
yW
|
|
35759
35774
|
]), {
|
|
35760
35775
|
active: H,
|
|
35761
35776
|
activeIndex: v,
|
|
35762
|
-
attributes:
|
|
35777
|
+
attributes: cW,
|
|
35763
35778
|
data: M,
|
|
35764
35779
|
rect: L,
|
|
35765
35780
|
index: j,
|
|
35766
|
-
newIndex:
|
|
35781
|
+
newIndex: vW,
|
|
35767
35782
|
items: g,
|
|
35768
35783
|
isOver: z,
|
|
35769
|
-
isSorting:
|
|
35770
|
-
isDragging:
|
|
35771
|
-
listeners:
|
|
35784
|
+
isSorting: mW,
|
|
35785
|
+
isDragging: lW,
|
|
35786
|
+
listeners: Z,
|
|
35772
35787
|
node: R,
|
|
35773
35788
|
overIndex: w,
|
|
35774
|
-
over:
|
|
35775
|
-
setNodeRef:
|
|
35776
|
-
setActivatorNodeRef:
|
|
35789
|
+
over: uW,
|
|
35790
|
+
setNodeRef: pW,
|
|
35791
|
+
setActivatorNodeRef: dW,
|
|
35777
35792
|
setDroppableNodeRef: B,
|
|
35778
|
-
setDraggableNodeRef:
|
|
35779
|
-
transform:
|
|
35780
|
-
transition:
|
|
35793
|
+
setDraggableNodeRef: q,
|
|
35794
|
+
transform: CW ?? _W,
|
|
35795
|
+
transition: wW()
|
|
35781
35796
|
};
|
|
35782
|
-
function
|
|
35783
|
-
if (
|
|
35784
|
-
if (!(
|
|
35797
|
+
function wW() {
|
|
35798
|
+
if (CW || xW && bW.current.newIndex === j) return disabledTransition;
|
|
35799
|
+
if (!(gW && !isKeyboardEvent(W) || !h) && (mW || SW)) return CSS$1.Transition.toString({
|
|
35785
35800
|
...h,
|
|
35786
35801
|
property: transitionProperty
|
|
35787
35802
|
});
|
|
@@ -36063,8 +36078,8 @@ ${c}
|
|
|
36063
36078
|
position: "below",
|
|
36064
36079
|
onInsert: v
|
|
36065
36080
|
}), r[33] = v, r[34] = G);
|
|
36066
|
-
let
|
|
36067
|
-
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 cW;
|
|
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 ? (cW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36068
36083
|
ref: b,
|
|
36069
36084
|
role: "button",
|
|
36070
36085
|
tabIndex: 0,
|
|
@@ -36080,16 +36095,16 @@ ${c}
|
|
|
36080
36095
|
W,
|
|
36081
36096
|
G
|
|
36082
36097
|
]
|
|
36083
|
-
}), 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] =
|
|
36084
|
-
let
|
|
36085
|
-
if (!v && !g) return
|
|
36086
|
-
let iW;
|
|
36087
|
-
r[46] === rW ? iW = r[47] : (iW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
36088
|
-
asChild: true,
|
|
36089
|
-
children: rW
|
|
36090
|
-
}), r[46] = rW, r[47] = iW);
|
|
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] = cW) : cW = r[45];
|
|
36099
|
+
let q = cW;
|
|
36100
|
+
if (!v && !g) return q;
|
|
36091
36101
|
let Z;
|
|
36092
|
-
r[
|
|
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);
|
|
36106
|
+
let lW;
|
|
36107
|
+
r[48] === v ? lW = r[49] : (lW = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36093
36108
|
onSelect: v,
|
|
36094
36109
|
children: [
|
|
36095
36110
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -36097,11 +36112,11 @@ ${c}
|
|
|
36097
36112
|
}),
|
|
36098
36113
|
"Add cell"
|
|
36099
36114
|
]
|
|
36100
|
-
}), r[48] = v, r[49] =
|
|
36101
|
-
let
|
|
36102
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
36103
|
-
let
|
|
36104
|
-
r[51] === g ?
|
|
36115
|
+
}), r[48] = v, r[49] = lW);
|
|
36116
|
+
let uW;
|
|
36117
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = uW) : uW = r[50];
|
|
36118
|
+
let dW;
|
|
36119
|
+
r[51] === g ? dW = r[52] : (dW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36105
36120
|
variant: "danger",
|
|
36106
36121
|
onSelect: g,
|
|
36107
36122
|
children: [
|
|
@@ -36110,22 +36125,22 @@ ${c}
|
|
|
36110
36125
|
}),
|
|
36111
36126
|
"Delete cell"
|
|
36112
36127
|
]
|
|
36113
|
-
}), r[51] = g, r[52] =
|
|
36114
|
-
let
|
|
36115
|
-
r[53] !==
|
|
36128
|
+
}), r[51] = g, r[52] = dW);
|
|
36129
|
+
let fW;
|
|
36130
|
+
r[53] !== lW || r[54] !== dW ? (fW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
36116
36131
|
children: [
|
|
36117
|
-
|
|
36118
|
-
|
|
36119
|
-
|
|
36132
|
+
lW,
|
|
36133
|
+
uW,
|
|
36134
|
+
dW
|
|
36120
36135
|
]
|
|
36121
|
-
}), r[53] =
|
|
36122
|
-
let
|
|
36123
|
-
return r[56] !==
|
|
36136
|
+
}), r[53] = lW, r[54] = dW, r[55] = fW) : fW = r[55];
|
|
36137
|
+
let pW;
|
|
36138
|
+
return r[56] !== Z || r[57] !== fW ? (pW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
36124
36139
|
children: [
|
|
36125
|
-
|
|
36126
|
-
|
|
36140
|
+
Z,
|
|
36141
|
+
fW
|
|
36127
36142
|
]
|
|
36128
|
-
}), r[56] =
|
|
36143
|
+
}), r[56] = Z, r[57] = fW, r[58] = pW) : pW = r[58], pW;
|
|
36129
36144
|
}, InsertCellLine = (e) => {
|
|
36130
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;
|
|
36131
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);
|
|
@@ -36179,10 +36194,10 @@ ${c}
|
|
|
36179
36194
|
...B,
|
|
36180
36195
|
...h
|
|
36181
36196
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
36182
|
-
let W = H, G = E || T,
|
|
36183
|
-
r[25] !== l || r[26] !==
|
|
36184
|
-
let
|
|
36185
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
36197
|
+
let W = H, G = E || T, cW = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", q = w && !T && "opacity-35", Z = T && "opacity-95 shadow-lg", lW;
|
|
36198
|
+
r[25] !== l || r[26] !== q || r[27] !== Z || r[28] !== cW ? (lW = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", cW, q, Z, l), r[25] = l, r[26] = q, r[27] = Z, r[28] = cW, r[29] = lW) : lW = r[29];
|
|
36199
|
+
let uW;
|
|
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", {
|
|
36186
36201
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
36187
36202
|
style: {
|
|
36188
36203
|
transform: `scale(${I})`,
|
|
@@ -36197,14 +36212,14 @@ ${c}
|
|
|
36197
36212
|
status: c.status,
|
|
36198
36213
|
output: c.output
|
|
36199
36214
|
})
|
|
36200
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
36201
|
-
let
|
|
36202
|
-
r[37] === z ?
|
|
36215
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = uW) : uW = r[36];
|
|
36216
|
+
let dW;
|
|
36217
|
+
r[37] === z ? dW = r[38] : (dW = z && (0, import_jsx_runtime.jsx)("div", {
|
|
36203
36218
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
36204
36219
|
"aria-hidden": true
|
|
36205
|
-
}), r[37] = z, r[38] =
|
|
36206
|
-
let
|
|
36207
|
-
r[39] !== z || r[40] !== R ? (
|
|
36220
|
+
}), r[37] = z, r[38] = dW);
|
|
36221
|
+
let fW;
|
|
36222
|
+
r[39] !== z || r[40] !== R ? (fW = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
36208
36223
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
36209
36224
|
className: "text-xs opacity-80",
|
|
36210
36225
|
children: R.description
|
|
@@ -36216,19 +36231,19 @@ ${c}
|
|
|
36216
36231
|
className: "h-3.5 w-3.5"
|
|
36217
36232
|
})
|
|
36218
36233
|
})
|
|
36219
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
36220
|
-
let
|
|
36221
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
36234
|
+
}), r[39] = z, r[40] = R, r[41] = fW) : fW = r[41];
|
|
36235
|
+
let pW;
|
|
36236
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== lW || r[46] !== uW || r[47] !== dW || r[48] !== fW ? (pW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36222
36237
|
ref: f,
|
|
36223
|
-
className:
|
|
36238
|
+
className: lW,
|
|
36224
36239
|
style: W,
|
|
36225
36240
|
...d,
|
|
36226
36241
|
children: [
|
|
36227
|
-
|
|
36228
|
-
|
|
36229
|
-
|
|
36242
|
+
uW,
|
|
36243
|
+
dW,
|
|
36244
|
+
fW
|
|
36230
36245
|
]
|
|
36231
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
36246
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = lW, r[46] = uW, r[47] = dW, r[48] = fW, r[49] = pW) : pW = r[49], pW;
|
|
36232
36247
|
}, MiniCodePreview = (e) => {
|
|
36233
36248
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
36234
36249
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -36268,7 +36283,7 @@ ${c}
|
|
|
36268
36283
|
function _temp2$2(e) {
|
|
36269
36284
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
36270
36285
|
}
|
|
36271
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36286
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-tJhA77Am.js"));
|
|
36272
36287
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36273
36288
|
var _a3;
|
|
36274
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), [
|
|
@@ -36646,7 +36661,7 @@ ${c}
|
|
|
36646
36661
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36647
36662
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36648
36663
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36649
|
-
let H, W, G,
|
|
36664
|
+
let H, W, G, cW, q, Z, lW, uW, dW, fW;
|
|
36650
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) {
|
|
36651
36666
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36652
36667
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36692,11 +36707,11 @@ ${c}
|
|
|
36692
36707
|
})
|
|
36693
36708
|
})
|
|
36694
36709
|
]
|
|
36695
|
-
}), 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,
|
|
36696
|
-
let
|
|
36697
|
-
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, cW = "console-output-area", q = c, Z = R, lW = 0;
|
|
36711
|
+
let pW2 = y && "marimo-output-stale", mW2 = L ? "p-5" : "p-3";
|
|
36712
|
+
r[40] !== M || r[41] !== pW2 || r[42] !== mW2 ? (uW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", pW2, mW2, M), r[40] = M, r[41] = pW2, r[42] = mW2, r[43] = uW) : uW = r[43], r[44] === d ? dW = r[45] : (dW = d ? {
|
|
36698
36713
|
maxHeight: "none"
|
|
36699
|
-
} : void 0, r[44] = d, r[45] =
|
|
36714
|
+
} : void 0, r[44] = d, r[45] = dW), fW = e2.map((e3, r2) => {
|
|
36700
36715
|
if (e3.channel === "pdb") return null;
|
|
36701
36716
|
if (e3.channel === "stdin") {
|
|
36702
36717
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -36725,36 +36740,36 @@ ${c}
|
|
|
36725
36740
|
wrapText: l
|
|
36726
36741
|
})
|
|
36727
36742
|
}, r2);
|
|
36728
|
-
}), 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] =
|
|
36729
|
-
} else H = r[20], W = r[21], G = r[22],
|
|
36730
|
-
let
|
|
36731
|
-
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] = cW, r[24] = q, r[25] = Z, r[26] = lW, r[27] = uW, r[28] = dW, r[29] = fW;
|
|
36744
|
+
} else H = r[20], W = r[21], G = r[22], cW = r[23], q = r[24], Z = r[25], lW = r[26], uW = r[27], dW = r[28], fW = r[29];
|
|
36745
|
+
let pW;
|
|
36746
|
+
r[46] !== T || r[47] !== S ? (pW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36732
36747
|
value: S,
|
|
36733
36748
|
cellId: T,
|
|
36734
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"
|
|
36735
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
36736
|
-
let
|
|
36737
|
-
r[49] !==
|
|
36750
|
+
}), r[46] = T, r[47] = S, r[48] = pW) : pW = r[48];
|
|
36751
|
+
let mW;
|
|
36752
|
+
r[49] !== pW || r[50] !== G || r[51] !== cW || r[52] !== q || r[53] !== Z || r[54] !== lW || r[55] !== uW || r[56] !== dW || r[57] !== fW ? (mW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36738
36753
|
title: G,
|
|
36739
|
-
"data-testid":
|
|
36740
|
-
ref:
|
|
36741
|
-
...
|
|
36742
|
-
tabIndex:
|
|
36743
|
-
className:
|
|
36744
|
-
style:
|
|
36754
|
+
"data-testid": cW,
|
|
36755
|
+
ref: q,
|
|
36756
|
+
...Z,
|
|
36757
|
+
tabIndex: lW,
|
|
36758
|
+
className: uW,
|
|
36759
|
+
style: dW,
|
|
36745
36760
|
children: [
|
|
36746
|
-
|
|
36747
|
-
|
|
36761
|
+
fW,
|
|
36762
|
+
pW
|
|
36748
36763
|
]
|
|
36749
|
-
}), r[49] =
|
|
36750
|
-
let
|
|
36751
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
36764
|
+
}), r[49] = pW, r[50] = G, r[51] = cW, r[52] = q, r[53] = Z, r[54] = lW, r[55] = uW, r[56] = dW, r[57] = fW, r[58] = mW) : mW = r[58];
|
|
36765
|
+
let hW;
|
|
36766
|
+
return r[59] !== H || r[60] !== W || r[61] !== mW ? (hW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36752
36767
|
className: H,
|
|
36753
36768
|
children: [
|
|
36754
36769
|
W,
|
|
36755
|
-
|
|
36770
|
+
mW
|
|
36756
36771
|
]
|
|
36757
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
36772
|
+
}), r[59] = H, r[60] = W, r[61] = mW, r[62] = hW) : hW = r[62], hW;
|
|
36758
36773
|
}, StdInput = (e) => {
|
|
36759
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;
|
|
36760
36775
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -36844,6 +36859,23 @@ ${c}
|
|
|
36844
36859
|
function _temp4$1(e) {
|
|
36845
36860
|
return processOutput(e);
|
|
36846
36861
|
}
|
|
36862
|
+
var markdownParser = new MarkdownParser(), sqlParser = new SQLParser();
|
|
36863
|
+
function getReadonlyCodeDisplay(e) {
|
|
36864
|
+
let r = e.trim();
|
|
36865
|
+
return r ? markdownParser.isSupported(r) ? {
|
|
36866
|
+
code: markdownParser.transformIn(r).code,
|
|
36867
|
+
language: "markdown"
|
|
36868
|
+
} : sqlParser.isSupported(r) ? {
|
|
36869
|
+
code: sqlParser.transformIn(r).code,
|
|
36870
|
+
language: "sql"
|
|
36871
|
+
} : {
|
|
36872
|
+
code: e,
|
|
36873
|
+
language: "python"
|
|
36874
|
+
} : {
|
|
36875
|
+
code: e,
|
|
36876
|
+
language: "python"
|
|
36877
|
+
};
|
|
36878
|
+
}
|
|
36847
36879
|
const kernelStateAtom = atom({
|
|
36848
36880
|
isInstantiated: false,
|
|
36849
36881
|
error: null
|
|
@@ -37181,7 +37213,7 @@ ${c}
|
|
|
37181
37213
|
let f2 = e2, p;
|
|
37182
37214
|
r[19] !== b || r[20] !== c ? (p = shouldHideCode(b, c), r[19] = b, r[20] = c, r[21] = p) : p = r[21];
|
|
37183
37215
|
let m2 = p, h2;
|
|
37184
|
-
r[22] !== b || r[23] !== m2 ? (h2 = m2 ? null :
|
|
37216
|
+
r[22] !== b || r[23] !== m2 ? (h2 = m2 ? null : getReadonlyCodeDisplay(b), r[22] = b, r[23] = m2, r[24] = h2) : h2 = r[24];
|
|
37185
37217
|
let v2 = h2, y2;
|
|
37186
37218
|
r[25] !== d || r[26] !== T ? (y2 = cellDomProps(d, T), r[25] = d, r[26] = T, r[27] = y2) : y2 = r[27];
|
|
37187
37219
|
let S2 = u === "above" && f2, w2;
|
|
@@ -37219,25 +37251,25 @@ ${c}
|
|
|
37219
37251
|
}
|
|
37220
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);
|
|
37221
37253
|
if ((h || _ || m || W) && !G) return null;
|
|
37222
|
-
let
|
|
37223
|
-
r[45] !== d || r[46] !== T ? (
|
|
37224
|
-
let
|
|
37225
|
-
r[48] !== d || r[49] !== R || r[50] !== c || r[51] !== I || r[52] !==
|
|
37226
|
-
allowExpand:
|
|
37254
|
+
let cW;
|
|
37255
|
+
r[45] !== d || r[46] !== T ? (cW = cellDomProps(d, T), r[45] = d, r[46] = T, r[47] = cW) : cW = r[47];
|
|
37256
|
+
let q = w === "edit", Z;
|
|
37257
|
+
r[48] !== d || r[49] !== R || r[50] !== c || r[51] !== I || r[52] !== q ? (Z = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37258
|
+
allowExpand: q,
|
|
37227
37259
|
output: c,
|
|
37228
37260
|
className: CSSClasses.outputArea,
|
|
37229
37261
|
cellId: d,
|
|
37230
37262
|
stale: I,
|
|
37231
37263
|
loading: R
|
|
37232
|
-
}), r[48] = d, r[49] = R, r[50] = c, r[51] = I, r[52] =
|
|
37233
|
-
let
|
|
37234
|
-
return r[54] !== H || r[55] !==
|
|
37264
|
+
}), r[48] = d, r[49] = R, r[50] = c, r[51] = I, r[52] = q, r[53] = Z) : Z = r[53];
|
|
37265
|
+
let lW;
|
|
37266
|
+
return r[54] !== H || r[55] !== cW || r[56] !== Z ? (lW = (0, import_jsx_runtime.jsx)("div", {
|
|
37235
37267
|
tabIndex: -1,
|
|
37236
37268
|
ref: j,
|
|
37237
37269
|
className: H,
|
|
37238
|
-
...
|
|
37239
|
-
children:
|
|
37240
|
-
}), r[54] = H, r[55] =
|
|
37270
|
+
...cW,
|
|
37271
|
+
children: Z
|
|
37272
|
+
}), r[54] = H, r[55] = cW, r[56] = Z, r[57] = lW) : lW = r[57], lW;
|
|
37241
37273
|
});
|
|
37242
37274
|
VerticalCell.displayName = "VerticalCell";
|
|
37243
37275
|
const VerticalLayoutPlugin = {
|
|
@@ -37263,17 +37295,6 @@ ${c}
|
|
|
37263
37295
|
let c = new MarkdownLanguageAdapter().isSupported(e), l = r !== null && !isOutputEmpty(r);
|
|
37264
37296
|
return c && l || e.trim() === "";
|
|
37265
37297
|
}
|
|
37266
|
-
var sqlParser = new SQLParser();
|
|
37267
|
-
function readonlyDisplay(e) {
|
|
37268
|
-
let r = e.trim();
|
|
37269
|
-
return sqlParser.isSupported(r) ? {
|
|
37270
|
-
code: sqlParser.transformIn(r).code,
|
|
37271
|
-
language: "sql"
|
|
37272
|
-
} : {
|
|
37273
|
-
code: e,
|
|
37274
|
-
language: "python"
|
|
37275
|
-
};
|
|
37276
|
-
}
|
|
37277
37298
|
function _temp$1(e) {
|
|
37278
37299
|
return !e;
|
|
37279
37300
|
}
|