@marimo-team/islands 0.23.14-dev11 → 0.23.14-dev14
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-DYBcNEdd.js → chat-ui-C6y6xLcn.js} +77 -77
- package/dist/{code-visibility-D9_pdpn0.js → code-visibility-BWxpdorj.js} +127 -127
- package/dist/{html-to-image-MqcD07Bw.js → html-to-image-DcTkcjmm.js} +69 -64
- package/dist/main.js +1008 -994
- package/dist/{process-output-Dt3icftd.js → process-output-2FbS8KgW.js} +1 -1
- package/dist/{reveal-component-BbZ44Wvb.js → reveal-component-DXelFX7A.js} +2 -2
- package/package.json +1 -1
- package/src/components/editor/renderers/vertical-layout/__tests__/vertical-layout.test.ts +27 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +23 -2
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, B as safeExtractSetUIElementMessageBuffers,
|
|
25
|
+
import { $ as reducer, An as PaintRoller, B as safeExtractSetUIElementMessageBuffers, Bn as Columns2, C as AccordionContent, Cn as Content2, Ct as Checkbox, Dt as PathBuilder, E as BorderAllIcon, En as Trigger2, F as base64ToDataView, Fn as Info, Ft as repl, H as getMarimoExportContext, Hn as CircleAlert, Ht as DATA_TYPE_ICON, In as FileText, J as getCellNames, Jt as convertStatsName, K as createActions, L as dataViewToBase64, Ln as Eye, Lt as jotaiJsonStorage, Mt as generateUUID, Nn as LoaderCircle, On as Trash2, Ot as Paths, Pn as Layers, Q as numColumnsAtom, Qt as isUninstantiated, S as Accordion, St as normalizeName, T as AccordionTrigger, Tn as Root2$1, Tt as MarkdownLanguageAdapter, U as hasTrustedExportContext, Un as Braces, V as renderHTML, Vt as PluralWords, W as hasRunAnyCellAtom, Wt as require_client, X as notebookAtom, Xt as requestClientAtom, Y as hasOnlyOneCellAtom, Yt as getRequestClient, Z as notebookOutline, Zt as useRequestClient, a as useCellFocusActions, bn as selectAtom, bt as getValidName, cn as parseInitialValue, ct as initialModeAtom, et as useCellActions, f as isOutputEmpty, fn as UIElementId, ft as outputIsLoading, gn as jsonParseWithSpecialChar, hn as RANDOM_ID_ATTR, ht as headingToIdentifier, i as LazyAnyLanguageCodeMirror, jt as DeferredRequestRegistry, k as ChevronDownIcon, kn as Table2, lt as kioskModeAtom, mn as OBJECT_ID_ATTR, mt as isErrorMime, n as Spinner, o as useLastFocusedCellId, on as parseAttrValue, p as useExpandedConsoleOutput, pn as findCellId, pt as outputIsStale, rn as NotebookScopedLocalStorage, rt as createCell, s as maybeAddAltairImport, sn as parseDataset, st as getInitialAppMode, tt as useCellIds, un as HTMLCellId, vn as atomWithReducer, w as AccordionItem, wn as Item$1, wt as customPythonLanguageSupport, xt as isInternalCellName, yn as atomWithStorage, zn as Database, zt as SQLParser, __tla as __tla_0 } from "./html-to-image-DcTkcjmm.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 contextAwarePanelOpen, $t as EmotionCacheProvider, A as prettifyRowCount, At as SELECT_COLUMN_ID, B as DatePicker, Bt as dateToLocalISOTime, C as downloadSizeLimitAtom, Ct as DelayMount, D as ErrorState, Dt as loadTableAndRawData, E as EmptyState, Et as getPageIndexForRow, F as ContextMenuSeparator, Ft as isRecord, G as CommandEmpty, Gt as ChartErrorState, H as Combobox, Ht as TabsContent, I as ContextMenuTrigger, It as isNullishFilter, J as CommandList, Jt as LazyVegaEmbed, K as CommandInput, Kt as ChartInfoState, L as useInternalStateWithSync, Lt as Maps, M as ContextMenu, Mt as toFieldTypes, N as ContextMenuContent, Nt as getMimeValues, O as LoadingState, Ot as loadTableData, P as ContextMenuItem, Pt as hasFunctionProperty, Q as PANEL_TYPES, Qt as HtmlOutput, R as useSelectList, Rt as dateToLocalISODate, S as Filenames, St as ColumnChartSpecModel, T as ColumnPreviewContainer, Tt as usePrevious$1, U as ComboboxItem, Ut as TabsList, V as DateRangePicker, Vt as Tabs, W as Command, Wt as TabsTrigger, X as smartMatch, Xt as RenderTextWithLinks, Y as CommandSeparator, Yt as useOverflowDetection, Z as ContextAwarePanelItem, Zt as Kbd, _ as ADD_PRINTING_CLASS, _t as NAMELESS_COLUMN_PREFIX, an as EyeOff, at as Toggle, b as downloadHTMLAsImage, bt as renderCellValue, c as Slide, cn as Download, d as RadioGroupItem, dn as ChevronsRight, dt as Table, en as $fae977aafc393c5c$export$588937bcd60ade55, et as contextAwarePanelOwner, f as JsonOutput, fn as ChevronsLeft, ft as TableBody, g as InstallPackageButton, gt as TableRow, h as DataTable, hn as ArrowDownWideNarrow, ht as TableHeader, in as Funnel, it as slotsController, j as getColumnCountForDisplay, jt as TOO_MANY_ROWS, k as prettifyRowColumnCount, kt as INDEX_COLUMN_NAME, l as Switch, ln as Code, lt as Fill, m as OutputRenderer, mn as ChevronLeft, mt as TableHead, n as marimoVersionAtom, nn as TextWrap, nt as isCellAwareAtom, o as SLIDE_TYPE_OPTIONS_BY_VALUE, p as OutputArea, pn as ChevronsDownUp, pt as TableCell, q as CommandItem, qt as ChartLoadingState, r as showCodeInRunModeAtom, rn as GripHorizontal, rt as SlotNames, sn as Ellipsis, t as useNotebookCodeAvailable, tn as $fae977aafc393c5c$export$6b862160d295c8e, tt as contextAwarePanelType, u as RadioGroup, un as ChevronsUpDown, ut as Provider$1, v as downloadBlob, vt as generateColumns, w as ColumnName, wt as useIntersectionObserver, x as Progress, xt as ColumnChartContext, y as downloadByURL, yt as inferFieldTypes, z as CompactChipRow, zt as dateToLocalISODateTime, __tla as __tla_2 } from "./code-visibility-
|
|
29
|
+
import { $ as contextAwarePanelOpen, $t as EmotionCacheProvider, A as prettifyRowCount, At as SELECT_COLUMN_ID, B as DatePicker, Bt as dateToLocalISOTime, C as downloadSizeLimitAtom, Ct as DelayMount, D as ErrorState, Dt as loadTableAndRawData, E as EmptyState, Et as getPageIndexForRow, F as ContextMenuSeparator, Ft as isRecord, G as CommandEmpty, Gt as ChartErrorState, H as Combobox, Ht as TabsContent, I as ContextMenuTrigger, It as isNullishFilter, J as CommandList, Jt as LazyVegaEmbed, K as CommandInput, Kt as ChartInfoState, L as useInternalStateWithSync, Lt as Maps, M as ContextMenu, Mt as toFieldTypes, N as ContextMenuContent, Nt as getMimeValues, O as LoadingState, Ot as loadTableData, P as ContextMenuItem, Pt as hasFunctionProperty, Q as PANEL_TYPES, Qt as HtmlOutput, R as useSelectList, Rt as dateToLocalISODate, S as Filenames, St as ColumnChartSpecModel, T as ColumnPreviewContainer, Tt as usePrevious$1, U as ComboboxItem, Ut as TabsList, V as DateRangePicker, Vt as Tabs, W as Command, Wt as TabsTrigger, X as smartMatch, Xt as RenderTextWithLinks, Y as CommandSeparator, Yt as useOverflowDetection, Z as ContextAwarePanelItem, Zt as Kbd, _ as ADD_PRINTING_CLASS, _t as NAMELESS_COLUMN_PREFIX, an as EyeOff, at as Toggle, b as downloadHTMLAsImage, bt as renderCellValue, c as Slide, cn as Download, d as RadioGroupItem, dn as ChevronsRight, dt as Table, en as $fae977aafc393c5c$export$588937bcd60ade55, et as contextAwarePanelOwner, f as JsonOutput, fn as ChevronsLeft, ft as TableBody, g as InstallPackageButton, gt as TableRow, h as DataTable, hn as ArrowDownWideNarrow, ht as TableHeader, in as Funnel, it as slotsController, j as getColumnCountForDisplay, jt as TOO_MANY_ROWS, k as prettifyRowColumnCount, kt as INDEX_COLUMN_NAME, l as Switch, ln as Code, lt as Fill, m as OutputRenderer, mn as ChevronLeft, mt as TableHead, n as marimoVersionAtom, nn as TextWrap, nt as isCellAwareAtom, o as SLIDE_TYPE_OPTIONS_BY_VALUE, p as OutputArea, pn as ChevronsDownUp, pt as TableCell, q as CommandItem, qt as ChartLoadingState, r as showCodeInRunModeAtom, rn as GripHorizontal, rt as SlotNames, sn as Ellipsis, t as useNotebookCodeAvailable, tn as $fae977aafc393c5c$export$6b862160d295c8e, tt as contextAwarePanelType, u as RadioGroup, un as ChevronsUpDown, ut as Provider$1, v as downloadBlob, vt as generateColumns, w as ColumnName, wt as useIntersectionObserver, x as Progress, xt as ColumnChartContext, y as downloadByURL, yt as inferFieldTypes, z as CompactChipRow, zt as dateToLocalISODateTime, __tla as __tla_2 } from "./code-visibility-BWxpdorj.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-2FbS8KgW.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";
|
|
@@ -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), q = C(null),
|
|
7000
|
+
}), H = U(), W = U(), G = C(0), q = C(null), nW = C({
|
|
7001
7001
|
column: 0,
|
|
7002
7002
|
row: 0
|
|
7003
|
-
}),
|
|
7004
|
-
Y(x(b, $(
|
|
7005
|
-
D(
|
|
7006
|
-
}), Y(x(ut(b,
|
|
7007
|
-
D(
|
|
7003
|
+
}), rW = U(), Z = U(), iW = C(false), aW = C(0), oW = C(true), sW = C(false), cW = C(false);
|
|
7004
|
+
Y(x(b, $(aW), P(([e2, r2]) => !!r2)), () => {
|
|
7005
|
+
D(oW, false);
|
|
7006
|
+
}), Y(x(ut(b, oW, B, z, aW, sW), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7007
|
+
D(sW, 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(oW, true);
|
|
7014
7014
|
});
|
|
7015
7015
|
}), F(x(Z, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(Z), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7016
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7017
|
-
D(
|
|
7016
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(nW, e2.gap), e2.scrollTop > 0 && (D(iW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7017
|
+
D(iW, 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(nW, (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
|
+
}))), rW), F(x(ut(V(I), l, V(nW, Or), V(B, xe), V(z, xe), V(q), V(L), V(iW), V(oW), V(aW)), 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(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7045
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, nW), 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 lW = C(false);
|
|
7053
|
+
F(x(h, $(lW), k(([e2, r2]) => r2 || e2 !== 0)), lW);
|
|
7054
|
+
let uW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(lW), 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())), dW = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), fW = bt(x(V(R), $(iW), 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(fW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, nW), 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,7 +7067,7 @@ let __tla = Promise.all([
|
|
|
7067
7067
|
top: g2
|
|
7068
7068
|
};
|
|
7069
7069
|
})), m);
|
|
7070
|
-
let
|
|
7070
|
+
let pW = 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
|
|
@@ -7076,7 +7076,7 @@ let __tla = Promise.all([
|
|
|
7076
7076
|
data: q,
|
|
7077
7077
|
deviation: G,
|
|
7078
7078
|
footerHeight: u,
|
|
7079
|
-
gap:
|
|
7079
|
+
gap: nW,
|
|
7080
7080
|
headerHeight: d,
|
|
7081
7081
|
increaseViewportBy: e,
|
|
7082
7082
|
initialItemCount: L,
|
|
@@ -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: cW,
|
|
7102
|
+
initialTopMostItemIndex: aW,
|
|
7103
|
+
totalListHeight: pW,
|
|
7104
7104
|
...v,
|
|
7105
|
-
endReached:
|
|
7105
|
+
endReached: uW,
|
|
7106
7106
|
propsReady: S,
|
|
7107
|
-
rangeChanged:
|
|
7108
|
-
startReached:
|
|
7109
|
-
stateChanged:
|
|
7110
|
-
stateRestoreInProgress:
|
|
7107
|
+
rangeChanged: fW,
|
|
7108
|
+
startReached: dW,
|
|
7109
|
+
stateChanged: rW,
|
|
7110
|
+
stateRestoreInProgress: iW,
|
|
7111
7111
|
...M
|
|
7112
7112
|
};
|
|
7113
7113
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7385,22 +7385,22 @@ let __tla = Promise.all([
|
|
|
7385
7385
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7386
7386
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7387
7387
|
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7388
|
-
let
|
|
7388
|
+
let nW = q, rW;
|
|
7389
7389
|
if (r[13] !== G.bulkActions) {
|
|
7390
|
-
if (
|
|
7390
|
+
if (rW = G.bulkActions.map(_temp$26), rW.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], rW.push(e2);
|
|
7395
7395
|
}
|
|
7396
|
-
r[13] = G.bulkActions, r[14] =
|
|
7397
|
-
} else
|
|
7396
|
+
r[13] = G.bulkActions, r[14] = rW;
|
|
7397
|
+
} else rW = r[14];
|
|
7398
7398
|
let Z;
|
|
7399
7399
|
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (Z = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7400
7400
|
"data-slot": "select-separator"
|
|
7401
7401
|
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = Z) : Z = r[18];
|
|
7402
|
-
let
|
|
7403
|
-
r[19] !==
|
|
7402
|
+
let iW = Z, aW;
|
|
7403
|
+
r[19] !== rW || r[20] !== G || r[21] !== iW || r[22] !== w || r[23] !== B || r[24] !== H ? (aW = () => {
|
|
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 && rW,
|
|
7416
|
+
iW(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 = iW(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
|
+
rW,
|
|
7442
7442
|
e2
|
|
7443
7443
|
]
|
|
7444
7444
|
});
|
|
7445
|
-
}, r[19] =
|
|
7446
|
-
let
|
|
7447
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7445
|
+
}, r[19] = rW, r[20] = G, r[21] = iW, r[22] = w, r[23] = B, r[24] = H, r[25] = aW) : aW = r[25];
|
|
7446
|
+
let oW = aW, sW;
|
|
7447
|
+
r[26] !== G.labelOf || r[27] !== I ? (sW = (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] = sW) : sW = r[28];
|
|
7459
|
+
let cW = sW, lW = e["data-testid"], uW;
|
|
7460
|
+
r[29] === G ? uW = r[30] : (uW = (e2) => G.labelOf(e2), r[29] = G, r[30] = uW);
|
|
7461
|
+
let dW = M ? cW : void 0, fW;
|
|
7462
|
+
r[31] !== b || r[32] !== R ? (fW = 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] = fW) : fW = r[33];
|
|
7465
|
+
let pW = G.searchQuery, mW = G.setSearchQuery, hW = G.open, gW = G.setOpen, _W;
|
|
7466
|
+
r[34] === z ? _W = r[35] : (_W = renderSlot(z), r[34] = z, r[35] = _W);
|
|
7467
|
+
let vW;
|
|
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] !== lW || r[44] !== uW || r[45] !== dW || r[46] !== fW || r[47] !== _W ? (vW = {
|
|
7469
7469
|
"data-slot": "select-root",
|
|
7470
|
-
"data-testid":
|
|
7471
|
-
displayValue:
|
|
7472
|
-
renderValue:
|
|
7470
|
+
"data-testid": lW,
|
|
7471
|
+
displayValue: uW,
|
|
7472
|
+
renderValue: dW,
|
|
7473
7473
|
placeholder: I,
|
|
7474
|
-
className:
|
|
7474
|
+
className: fW,
|
|
7475
7475
|
shouldFilter: false,
|
|
7476
|
-
search:
|
|
7477
|
-
onSearchChange:
|
|
7478
|
-
open:
|
|
7479
|
-
onOpenChange:
|
|
7480
|
-
emptyState:
|
|
7476
|
+
search: pW,
|
|
7477
|
+
onSearchChange: mW,
|
|
7478
|
+
open: hW,
|
|
7479
|
+
onOpenChange: gW,
|
|
7480
|
+
emptyState: _W,
|
|
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] = lW, r[44] = uW, r[45] = dW, r[46] = fW, r[47] = _W, r[48] = vW) : vW = r[48];
|
|
7484
|
+
let yW = vW, bW;
|
|
7485
|
+
return r[49] !== yW || r[50] !== nW || r[51] !== d || r[52] !== oW || r[53] !== l ? (bW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7486
|
+
...yW,
|
|
7487
7487
|
multiple: true,
|
|
7488
7488
|
value: l,
|
|
7489
|
-
onValueChange:
|
|
7490
|
-
children:
|
|
7489
|
+
onValueChange: nW,
|
|
7490
|
+
children: oW()
|
|
7491
7491
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7492
|
-
...
|
|
7492
|
+
...yW,
|
|
7493
7493
|
multiple: false,
|
|
7494
7494
|
value: l,
|
|
7495
|
-
onValueChange:
|
|
7496
|
-
children:
|
|
7497
|
-
}), r[49] =
|
|
7495
|
+
onValueChange: nW,
|
|
7496
|
+
children: oW()
|
|
7497
|
+
}), r[49] = yW, r[50] = nW, r[51] = d, r[52] = oW, r[53] = l, r[54] = bW) : bW = r[54], bW;
|
|
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-C6y6xLcn.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)) : nW(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)) && fW(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(sW(), 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), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
9774
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), nW = (e2, r2, c2 = {}) => {
|
|
9775
9775
|
let u2 = get(l, e2), f2 = r2;
|
|
9776
9776
|
if (u2) {
|
|
9777
9777
|
let c3 = u2._f;
|
|
@@ -9784,11 +9784,11 @@ 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 && oW(e2);
|
|
9788
|
+
}, rW = (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) ? rW(f2, d2, c2) : nW(f2, d2, c2);
|
|
9792
9792
|
}
|
|
9793
9793
|
}, Z = (e2, r2, m2 = {}) => {
|
|
9794
9794
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
@@ -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) ? rW(e2, y2, m2) : nW(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
|
+
}, iW = 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));
|
|
@@ -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 && oW(E2._f.deps), L(h2, f2, u3, G2));
|
|
9847
9847
|
}
|
|
9848
|
-
},
|
|
9848
|
+
}, aW = (e2, r2) => {
|
|
9849
9849
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
9850
|
-
},
|
|
9850
|
+
}, oW = 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, aW, e2 ? m2 : p.mount), f2;
|
|
9870
|
+
}, sW = (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
|
+
}, cW = (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
|
+
}), lW = (e2) => {
|
|
9882
9882
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
9883
9883
|
errors: e2 ? c.errors : {}
|
|
9884
9884
|
});
|
|
9885
|
-
},
|
|
9885
|
+
}, uW = (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
|
+
}, dW = (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), fW = (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
|
+
}, pW = ({ 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
|
+
}, mW = (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 ? pW({
|
|
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: iW,
|
|
9946
|
+
onBlur: iW,
|
|
9947
9947
|
ref: (m3) => {
|
|
9948
9948
|
if (m3) {
|
|
9949
|
-
|
|
9949
|
+
mW(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
|
+
}, hW = () => r.shouldFocusError && iterateFieldsByAction(l, aW, p.mount), gW = (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
|
+
}, _W = (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), hW(), setTimeout(hW);
|
|
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
|
-
},
|
|
10014
|
+
}, vW = (e2, r2 = {}) => {
|
|
10015
10015
|
get(l, e2) && (isUndefined(r2.defaultValue) ? Z(e2, cloneObject(get(u, e2))) : (Z(e2, r2.defaultValue), set(u, e2, cloneObject(r2.defaultValue))), r2.keepTouched || unset(c.touchedFields, e2), r2.keepDirty || (unset(c.dirtyFields, e2), c.isDirty = r2.defaultValue ? W(e2, cloneObject(get(u, e2))) : W()), r2.keepError || (unset(c.errors, e2), g.isValid && w()), _.state.next({
|
|
10016
10016
|
...c
|
|
10017
10017
|
}));
|
|
10018
|
-
},
|
|
10018
|
+
}, yW = (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) {
|
|
@@ -10068,25 +10068,25 @@ let __tla = Promise.all([
|
|
|
10068
10068
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10069
10069
|
isSubmitting: false
|
|
10070
10070
|
});
|
|
10071
|
-
},
|
|
10071
|
+
}, bW = (e2, r2) => yW(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: mW,
|
|
10075
|
+
unregister: fW,
|
|
10076
|
+
getFieldState: cW,
|
|
10077
|
+
handleSubmit: _W,
|
|
10078
|
+
setError: uW,
|
|
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:
|
|
10085
|
+
_updateDisabledField: pW,
|
|
10086
10086
|
_getFieldArray: q,
|
|
10087
|
-
_reset:
|
|
10087
|
+
_reset: yW,
|
|
10088
10088
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10089
|
-
|
|
10089
|
+
bW(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: gW,
|
|
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:
|
|
10140
|
+
trigger: oW,
|
|
10141
|
+
register: mW,
|
|
10142
|
+
handleSubmit: _W,
|
|
10143
|
+
watch: dW,
|
|
10144
10144
|
setValue: Z,
|
|
10145
|
-
getValues:
|
|
10146
|
-
reset:
|
|
10147
|
-
resetField:
|
|
10148
|
-
clearErrors:
|
|
10149
|
-
unregister:
|
|
10150
|
-
setError:
|
|
10145
|
+
getValues: sW,
|
|
10146
|
+
reset: bW,
|
|
10147
|
+
resetField: vW,
|
|
10148
|
+
clearErrors: lW,
|
|
10149
|
+
unregister: fW,
|
|
10150
|
+
setError: uW,
|
|
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: cW
|
|
10159
10159
|
};
|
|
10160
10160
|
}
|
|
10161
10161
|
function useForm(e = {}) {
|
|
@@ -14406,21 +14406,21 @@ ${c}
|
|
|
14406
14406
|
_.pageSize,
|
|
14407
14407
|
_.pageIndex
|
|
14408
14408
|
], 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];
|
|
14409
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
14410
|
-
r[48] !==
|
|
14411
|
-
let
|
|
14412
|
-
r[51] !==
|
|
14413
|
-
eW,
|
|
14414
|
-
tW,
|
|
14415
|
-
nW,
|
|
14409
|
+
let { data: W, error: G, isPending: q, isFetching: nW } = useAsyncData(z, H), rW = useAtomValue(downloadSizeLimitAtom), Z;
|
|
14410
|
+
r[48] !== rW || r[49] !== e ? (Z = async () => !rW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = rW, r[49] = e, r[50] = Z) : Z = r[50];
|
|
14411
|
+
let iW = e.showDownload, aW = e.get_size_bytes, oW = e.lazy, sW = e.totalRows, cW = useDeepCompareMemoize(w), lW = useDeepCompareMemoize(m), uW;
|
|
14412
|
+
r[51] !== rW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== cW || r[58] !== lW ? (uW = [
|
|
14416
14413
|
rW,
|
|
14417
14414
|
iW,
|
|
14418
|
-
y,
|
|
14419
14415
|
aW,
|
|
14420
|
-
oW
|
|
14421
|
-
|
|
14422
|
-
|
|
14423
|
-
|
|
14416
|
+
oW,
|
|
14417
|
+
sW,
|
|
14418
|
+
y,
|
|
14419
|
+
cW,
|
|
14420
|
+
lW
|
|
14421
|
+
], r[51] = rW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = cW, r[58] = lW, r[59] = uW) : uW = r[59];
|
|
14422
|
+
let { data: dW, isPending: fW } = useAsyncData(Z, uW), pW = dW ?? null, mW = !!rW && e.showDownload && fW, hW;
|
|
14423
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (hW = async (e2) => ({
|
|
14424
14424
|
rows: await loadTableData((await u({
|
|
14425
14425
|
page_number: e2,
|
|
14426
14426
|
page_size: 1,
|
|
@@ -14429,17 +14429,17 @@ ${c}
|
|
|
14429
14429
|
filters: filtersToFilterGroup(w),
|
|
14430
14430
|
max_columns: null
|
|
14431
14431
|
})).data)
|
|
14432
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
14433
|
-
let
|
|
14434
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
14432
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = hW) : hW = r[64];
|
|
14433
|
+
let gW = hW, _W;
|
|
14434
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_W = () => {
|
|
14435
14435
|
v(_temp4$4);
|
|
14436
|
-
}, r[65] =
|
|
14437
|
-
let
|
|
14438
|
-
r[66] ===
|
|
14439
|
-
|
|
14440
|
-
], r[66] =
|
|
14441
|
-
let
|
|
14442
|
-
r[68] === e ?
|
|
14436
|
+
}, r[65] = _W) : _W = r[65];
|
|
14437
|
+
let vW = W == null ? void 0 : W.totalRows, yW;
|
|
14438
|
+
r[66] === vW ? yW = r[67] : (yW = [
|
|
14439
|
+
vW
|
|
14440
|
+
], r[66] = vW, r[67] = yW), (0, import_react.useEffect)(_W, yW);
|
|
14441
|
+
let bW;
|
|
14442
|
+
r[68] === e ? bW = r[69] : (bW = async () => {
|
|
14443
14443
|
let r2 = isStaticNotebook();
|
|
14444
14444
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
14445
14445
|
data: null,
|
|
@@ -14448,22 +14448,22 @@ ${c}
|
|
|
14448
14448
|
value_counts: {},
|
|
14449
14449
|
show_charts: false
|
|
14450
14450
|
} : e.get_column_summaries({});
|
|
14451
|
-
}, r[68] = e, r[69] =
|
|
14452
|
-
let
|
|
14453
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
14451
|
+
}, r[68] = e, r[69] = bW);
|
|
14452
|
+
let xW;
|
|
14453
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (xW = [
|
|
14454
14454
|
e.get_column_summaries,
|
|
14455
14455
|
e.showColumnSummaries,
|
|
14456
14456
|
w,
|
|
14457
14457
|
y,
|
|
14458
14458
|
e.totalRows,
|
|
14459
14459
|
e.data
|
|
14460
|
-
], 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] =
|
|
14461
|
-
let { data:
|
|
14462
|
-
if (r[77] ===
|
|
14463
|
-
|
|
14464
|
-
},
|
|
14465
|
-
|
|
14466
|
-
], r[77] =
|
|
14460
|
+
], 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] = xW) : xW = r[76];
|
|
14461
|
+
let { data: SW, error: CW } = useAsyncData(bW, xW), wW, TW;
|
|
14462
|
+
if (r[77] === CW ? (wW = r[78], TW = r[79]) : (wW = () => {
|
|
14463
|
+
CW && Logger.error(CW);
|
|
14464
|
+
}, TW = [
|
|
14465
|
+
CW
|
|
14466
|
+
], r[77] = CW, r[78] = wW, r[79] = TW), (0, import_react.useEffect)(wW, TW), q) {
|
|
14467
14467
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14468
14468
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14469
14469
|
milliseconds: 200,
|
|
@@ -14472,7 +14472,7 @@ ${c}
|
|
|
14472
14472
|
})
|
|
14473
14473
|
}), r[80] = c2, r[81] = l2), l2;
|
|
14474
14474
|
}
|
|
14475
|
-
let
|
|
14475
|
+
let EW = null;
|
|
14476
14476
|
if (G) {
|
|
14477
14477
|
Logger.error(G);
|
|
14478
14478
|
let e2;
|
|
@@ -14488,61 +14488,61 @@ ${c}
|
|
|
14488
14488
|
children: G.message || "An unknown error occurred"
|
|
14489
14489
|
})
|
|
14490
14490
|
]
|
|
14491
|
-
}), r[82] = G, r[83] = e2),
|
|
14491
|
+
}), r[82] = G, r[83] = e2), EW = e2;
|
|
14492
14492
|
}
|
|
14493
|
-
let
|
|
14494
|
-
r[84] === O ?
|
|
14493
|
+
let DW;
|
|
14494
|
+
r[84] === O ? DW = r[85] : (DW = () => {
|
|
14495
14495
|
j(!O);
|
|
14496
|
-
}, r[84] = O, r[85] =
|
|
14497
|
-
let
|
|
14498
|
-
r[86] !== l || r[87] !==
|
|
14496
|
+
}, r[84] = O, r[85] = DW);
|
|
14497
|
+
let OW = DW, kW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, AW = W == null ? void 0 : W.rawRows, jW = nW && !q, MW = (W == null ? void 0 : W.totalRows) ?? e.totalRows, NW = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, PW = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, FW;
|
|
14498
|
+
r[86] !== l || r[87] !== SW || r[88] !== O || r[89] !== w || r[90] !== gW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== pW || r[95] !== mW || r[96] !== m || r[97] !== kW || r[98] !== AW || r[99] !== jW || r[100] !== MW || r[101] !== NW || r[102] !== PW || r[103] !== OW ? (FW = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
14499
14499
|
...e,
|
|
14500
|
-
data:
|
|
14501
|
-
rawData:
|
|
14502
|
-
columnSummaries:
|
|
14500
|
+
data: kW,
|
|
14501
|
+
rawData: AW,
|
|
14502
|
+
columnSummaries: SW,
|
|
14503
14503
|
sorting: m,
|
|
14504
14504
|
setSorting: h,
|
|
14505
14505
|
searchQuery: y,
|
|
14506
14506
|
setSearchQuery: b,
|
|
14507
14507
|
filters: w,
|
|
14508
14508
|
setFilters: T,
|
|
14509
|
-
reloading:
|
|
14510
|
-
totalRows:
|
|
14511
|
-
sizeBytes:
|
|
14512
|
-
sizeBytesIsLoading:
|
|
14509
|
+
reloading: jW,
|
|
14510
|
+
totalRows: MW,
|
|
14511
|
+
sizeBytes: pW,
|
|
14512
|
+
sizeBytesIsLoading: mW,
|
|
14513
14513
|
paginationState: _,
|
|
14514
14514
|
setPaginationState: v,
|
|
14515
|
-
cellStyles:
|
|
14516
|
-
cellHoverTexts:
|
|
14517
|
-
toggleDisplayHeader:
|
|
14515
|
+
cellStyles: NW,
|
|
14516
|
+
cellHoverTexts: PW,
|
|
14517
|
+
toggleDisplayHeader: OW,
|
|
14518
14518
|
isChartBuilderOpen: O,
|
|
14519
|
-
getRow:
|
|
14519
|
+
getRow: gW,
|
|
14520
14520
|
cellId: l,
|
|
14521
14521
|
maxHeight: e.maxHeight
|
|
14522
|
-
}), r[86] = l, r[87] =
|
|
14523
|
-
let
|
|
14524
|
-
r[105] !== l || r[106] !==
|
|
14522
|
+
}), r[86] = l, r[87] = SW, r[88] = O, r[89] = w, r[90] = gW, r[91] = _, r[92] = e, r[93] = y, r[94] = pW, r[95] = mW, r[96] = m, r[97] = kW, r[98] = AW, r[99] = jW, r[100] = MW, r[101] = NW, r[102] = PW, r[103] = OW, r[104] = FW) : FW = r[104];
|
|
14523
|
+
let IW = FW, LW;
|
|
14524
|
+
r[105] !== l || r[106] !== IW || 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 ? (LW = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
14525
14525
|
displayHeader: O,
|
|
14526
14526
|
onCloseChartBuilder: () => j(false),
|
|
14527
14527
|
data: (W == null ? void 0 : W.rows) || [],
|
|
14528
14528
|
columns: e.totalColumns,
|
|
14529
14529
|
totalRows: e.totalRows,
|
|
14530
|
-
dataTable:
|
|
14530
|
+
dataTable: IW,
|
|
14531
14531
|
getDataUrl: e.get_data_url,
|
|
14532
14532
|
fieldTypes: e.fieldTypes,
|
|
14533
14533
|
cellId: l
|
|
14534
|
-
}) :
|
|
14535
|
-
let
|
|
14536
|
-
return r[115] !==
|
|
14534
|
+
}) : IW, r[105] = l, r[106] = IW, 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] = LW) : LW = r[114];
|
|
14535
|
+
let RW;
|
|
14536
|
+
return r[115] !== EW || r[116] !== LW ? (RW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14537
14537
|
children: [
|
|
14538
|
-
|
|
14539
|
-
|
|
14538
|
+
EW,
|
|
14539
|
+
LW
|
|
14540
14540
|
]
|
|
14541
|
-
}), r[115] =
|
|
14541
|
+
}), r[115] = EW, r[116] = LW, r[117] = RW) : RW = r[117], RW;
|
|
14542
14542
|
});
|
|
14543
14543
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
14544
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters:
|
|
14545
|
-
let
|
|
14544
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: nW, setFilters: rW, reloading: Z, freezeColumnsLeft: iW, freezeColumnsRight: aW, hiddenColumns: oW, textJustifyColumns: sW, wrappedColumns: cW, columnWidths: lW, headerTooltip: uW, totalColumns: dW, get_row_ids: fW, cellStyles: pW, hoverTemplate: mW, cellHoverTexts: hW, toggleDisplayHeader: gW, isChartBuilderOpen: _W, calculate_top_k_rows: vW, preview_column: yW, getRow: bW, cellId: xW, maxHeight: SW }) => {
|
|
14545
|
+
let CW = (0, import_react.useId)(), { locale: wW } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [TW, EW] = (0, import_react.useState)(0), { isPanelOpen: DW, isAnyPanelOpen: OW, togglePanel: kW, panelType: AW, setPanelType: jW } = usePanelOwnership(CW, xW), MW = isStaticNotebook(), NW = (0, import_react.useMemo)(() => {
|
|
14546
14546
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
14547
14547
|
let e2 = toFieldTypes(O);
|
|
14548
14548
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -14551,13 +14551,13 @@ ${c}
|
|
|
14551
14551
|
}, [
|
|
14552
14552
|
O,
|
|
14553
14553
|
L
|
|
14554
|
-
]),
|
|
14554
|
+
]), PW = useDeepCompareMemoize(O ?? inferFieldTypes(r)), FW = (0, import_react.useMemo)(() => f === "all" ? PW : PW.slice(0, f), [
|
|
14555
14555
|
f,
|
|
14556
|
-
|
|
14557
|
-
]),
|
|
14556
|
+
PW
|
|
14557
|
+
]), IW = (0, import_react.useMemo)(() => {
|
|
14558
14558
|
let e2 = {};
|
|
14559
14559
|
if (r && r.length > 0) {
|
|
14560
|
-
for (let [c2, l2] of
|
|
14560
|
+
for (let [c2, l2] of FW) if (l2[0] === "number") {
|
|
14561
14561
|
let l3 = 0;
|
|
14562
14562
|
for (let e3 of r) {
|
|
14563
14563
|
let r2 = e3[c2];
|
|
@@ -14572,95 +14572,95 @@ ${c}
|
|
|
14572
14572
|
return e2;
|
|
14573
14573
|
}, [
|
|
14574
14574
|
r,
|
|
14575
|
-
|
|
14576
|
-
]),
|
|
14577
|
-
O || (w = false),
|
|
14578
|
-
let
|
|
14579
|
-
rowHeaders:
|
|
14575
|
+
FW
|
|
14576
|
+
]), LW = useDeepCompareMemoize(T), RW = useDeepCompareMemoize(sW), zW = useDeepCompareMemoize(cW), BW = useDeepCompareMemoize(lW), VW = useDeepCompareMemoize(NW), HW = useDeepCompareMemoize(IW), UW = FW.length;
|
|
14577
|
+
O || (w = false), MW && (m = null);
|
|
14578
|
+
let WW = (0, import_react.useMemo)(() => generateColumns({
|
|
14579
|
+
rowHeaders: LW,
|
|
14580
14580
|
selection: m,
|
|
14581
|
-
chartSpecModel:
|
|
14582
|
-
fieldTypes:
|
|
14583
|
-
textJustifyColumns:
|
|
14584
|
-
wrappedColumns:
|
|
14585
|
-
columnWidths:
|
|
14586
|
-
headerTooltip:
|
|
14581
|
+
chartSpecModel: VW,
|
|
14582
|
+
fieldTypes: FW,
|
|
14583
|
+
textJustifyColumns: RW,
|
|
14584
|
+
wrappedColumns: zW,
|
|
14585
|
+
columnWidths: BW,
|
|
14586
|
+
headerTooltip: uW,
|
|
14587
14587
|
showDataTypes: w,
|
|
14588
|
-
calculateTopKRows:
|
|
14589
|
-
fractionDigitsByColumn:
|
|
14588
|
+
calculateTopKRows: vW,
|
|
14589
|
+
fractionDigitsByColumn: HW
|
|
14590
14590
|
}), [
|
|
14591
14591
|
m,
|
|
14592
14592
|
w,
|
|
14593
|
-
|
|
14594
|
-
PW,
|
|
14595
|
-
MW,
|
|
14596
|
-
FW,
|
|
14597
|
-
IW,
|
|
14593
|
+
VW,
|
|
14598
14594
|
LW,
|
|
14599
|
-
|
|
14600
|
-
|
|
14601
|
-
zW
|
|
14602
|
-
|
|
14595
|
+
FW,
|
|
14596
|
+
RW,
|
|
14597
|
+
zW,
|
|
14598
|
+
BW,
|
|
14599
|
+
uW,
|
|
14600
|
+
vW,
|
|
14601
|
+
HW
|
|
14602
|
+
]), GW = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
14603
14603
|
e2,
|
|
14604
14604
|
true
|
|
14605
14605
|
])), [
|
|
14606
14606
|
h
|
|
14607
|
-
]),
|
|
14607
|
+
]), KW = useEvent_default((e2) => {
|
|
14608
14608
|
if (m === "single") {
|
|
14609
14609
|
let r2 = Functions.asUpdater(e2)({});
|
|
14610
14610
|
z(Object.keys(r2).slice(0, 1));
|
|
14611
14611
|
}
|
|
14612
14612
|
if (m === "multi") {
|
|
14613
|
-
let r2 = Functions.asUpdater(e2)(
|
|
14613
|
+
let r2 = Functions.asUpdater(e2)(GW);
|
|
14614
14614
|
z(Object.keys(r2));
|
|
14615
14615
|
}
|
|
14616
|
-
}),
|
|
14617
|
-
if (
|
|
14616
|
+
}), qW = useEvent_default((e2) => {
|
|
14617
|
+
if (EW(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
14618
14618
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
14619
14619
|
r2 !== null && M((e3) => ({
|
|
14620
14620
|
...e3,
|
|
14621
14621
|
pageIndex: r2
|
|
14622
14622
|
}));
|
|
14623
|
-
}),
|
|
14624
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
14625
|
-
}),
|
|
14626
|
-
if (!(!
|
|
14623
|
+
}), JW = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), YW = useEvent_default((e2) => {
|
|
14624
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(JW).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(JW));
|
|
14625
|
+
}), XW = m === "multi" || m === "single", ZW = y && !!yW, QW = isInVscodeExtension(), $W = isIslands(), eG = (0, import_react.useMemo)(() => {
|
|
14626
|
+
if (!(!OW || !(b || ZW))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
14627
14627
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
14628
|
-
rowIdx:
|
|
14629
|
-
setRowIdx:
|
|
14628
|
+
rowIdx: TW,
|
|
14629
|
+
setRowIdx: qW,
|
|
14630
14630
|
totalRows: l,
|
|
14631
|
-
fieldTypes:
|
|
14632
|
-
getRow:
|
|
14633
|
-
isSelectable:
|
|
14634
|
-
isRowSelected: !!
|
|
14635
|
-
handleRowSelectionChange:
|
|
14636
|
-
previewColumn:
|
|
14637
|
-
totalColumns:
|
|
14638
|
-
tableId:
|
|
14631
|
+
fieldTypes: PW,
|
|
14632
|
+
getRow: bW,
|
|
14633
|
+
isSelectable: XW,
|
|
14634
|
+
isRowSelected: !!GW[TW],
|
|
14635
|
+
handleRowSelectionChange: KW,
|
|
14636
|
+
previewColumn: yW,
|
|
14637
|
+
totalColumns: dW,
|
|
14638
|
+
tableId: CW,
|
|
14639
14639
|
table: e2,
|
|
14640
|
-
showRowExplorer: b && !
|
|
14641
|
-
showColumnExplorer:
|
|
14642
|
-
activeTab:
|
|
14643
|
-
onTabChange:
|
|
14640
|
+
showRowExplorer: b && !QW,
|
|
14641
|
+
showColumnExplorer: ZW && !QW,
|
|
14642
|
+
activeTab: AW,
|
|
14643
|
+
onTabChange: jW
|
|
14644
14644
|
})
|
|
14645
14645
|
});
|
|
14646
14646
|
}, [
|
|
14647
|
-
|
|
14647
|
+
OW,
|
|
14648
14648
|
b,
|
|
14649
|
-
|
|
14650
|
-
|
|
14651
|
-
WW,
|
|
14652
|
-
l,
|
|
14653
|
-
jW,
|
|
14654
|
-
_W,
|
|
14649
|
+
ZW,
|
|
14650
|
+
TW,
|
|
14655
14651
|
qW,
|
|
14656
|
-
|
|
14657
|
-
|
|
14658
|
-
gW,
|
|
14659
|
-
cW,
|
|
14652
|
+
l,
|
|
14653
|
+
PW,
|
|
14660
14654
|
bW,
|
|
14661
|
-
|
|
14662
|
-
|
|
14663
|
-
|
|
14655
|
+
XW,
|
|
14656
|
+
GW,
|
|
14657
|
+
KW,
|
|
14658
|
+
yW,
|
|
14659
|
+
dW,
|
|
14660
|
+
CW,
|
|
14661
|
+
QW,
|
|
14662
|
+
AW,
|
|
14663
|
+
jW
|
|
14664
14664
|
]);
|
|
14665
14665
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14666
14666
|
children: [
|
|
@@ -14672,27 +14672,27 @@ ${c}
|
|
|
14672
14672
|
" rows."
|
|
14673
14673
|
]
|
|
14674
14674
|
}),
|
|
14675
|
-
|
|
14675
|
+
UW < dW && UW > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14676
14676
|
className: "mb-1 rounded",
|
|
14677
14677
|
children: [
|
|
14678
14678
|
"Result clipped. Showing ",
|
|
14679
|
-
|
|
14679
|
+
UW,
|
|
14680
14680
|
" of ",
|
|
14681
|
-
|
|
14681
|
+
dW,
|
|
14682
14682
|
" columns."
|
|
14683
14683
|
]
|
|
14684
14684
|
}),
|
|
14685
|
-
|
|
14685
|
+
MW && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14686
14686
|
className: "mb-1 rounded",
|
|
14687
14687
|
children: [
|
|
14688
14688
|
"Showing the first ",
|
|
14689
14689
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14690
|
-
children: prettyNumber(r.length,
|
|
14690
|
+
children: prettyNumber(r.length, wW)
|
|
14691
14691
|
}),
|
|
14692
14692
|
" ",
|
|
14693
14693
|
"of ",
|
|
14694
14694
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14695
|
-
children: prettyNumber(l,
|
|
14695
|
+
children: prettyNumber(l, wW)
|
|
14696
14696
|
}),
|
|
14697
14697
|
" rows. Increase the table's ",
|
|
14698
14698
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -14706,7 +14706,7 @@ ${c}
|
|
|
14706
14706
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
14707
14707
|
}),
|
|
14708
14708
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
14709
|
-
value:
|
|
14709
|
+
value: NW,
|
|
14710
14710
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
14711
14711
|
label: e,
|
|
14712
14712
|
align: "top",
|
|
@@ -14714,14 +14714,14 @@ ${c}
|
|
|
14714
14714
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
14715
14715
|
data: r,
|
|
14716
14716
|
rawData: c,
|
|
14717
|
-
columns:
|
|
14717
|
+
columns: WW,
|
|
14718
14718
|
className: R,
|
|
14719
|
-
maxHeight:
|
|
14719
|
+
maxHeight: SW,
|
|
14720
14720
|
sorting: B,
|
|
14721
14721
|
totalRows: l,
|
|
14722
14722
|
sizeBytes: u,
|
|
14723
14723
|
sizeBytesIsLoading: d,
|
|
14724
|
-
totalColumns:
|
|
14724
|
+
totalColumns: dW,
|
|
14725
14725
|
manualSorting: true,
|
|
14726
14726
|
setSorting: H,
|
|
14727
14727
|
pagination: p,
|
|
@@ -14729,37 +14729,37 @@ ${c}
|
|
|
14729
14729
|
selection: m,
|
|
14730
14730
|
paginationState: j,
|
|
14731
14731
|
setPaginationState: M,
|
|
14732
|
-
rowSelection:
|
|
14733
|
-
cellSelection:
|
|
14734
|
-
cellStyling:
|
|
14735
|
-
hoverTemplate:
|
|
14736
|
-
cellHoverTexts:
|
|
14732
|
+
rowSelection: GW,
|
|
14733
|
+
cellSelection: JW,
|
|
14734
|
+
cellStyling: pW,
|
|
14735
|
+
hoverTemplate: mW,
|
|
14736
|
+
cellHoverTexts: hW,
|
|
14737
14737
|
downloadAs: _ ? I : void 0,
|
|
14738
14738
|
showSearch: W,
|
|
14739
14739
|
searchQuery: G,
|
|
14740
14740
|
onSearchQueryChange: q,
|
|
14741
14741
|
showFilters: g,
|
|
14742
|
-
filters:
|
|
14743
|
-
onFiltersChange:
|
|
14744
|
-
calculateTopKRows:
|
|
14742
|
+
filters: nW,
|
|
14743
|
+
onFiltersChange: rW,
|
|
14744
|
+
calculateTopKRows: vW,
|
|
14745
14745
|
reloading: Z,
|
|
14746
|
-
onRowSelectionChange:
|
|
14747
|
-
freezeColumnsLeft:
|
|
14748
|
-
freezeColumnsRight:
|
|
14749
|
-
hiddenColumns:
|
|
14750
|
-
onCellSelectionChange:
|
|
14751
|
-
getRowIds:
|
|
14752
|
-
toggleDisplayHeader:
|
|
14753
|
-
showChartBuilder: S &&
|
|
14754
|
-
isChartBuilderOpen:
|
|
14746
|
+
onRowSelectionChange: KW,
|
|
14747
|
+
freezeColumnsLeft: iW,
|
|
14748
|
+
freezeColumnsRight: aW,
|
|
14749
|
+
hiddenColumns: oW,
|
|
14750
|
+
onCellSelectionChange: YW,
|
|
14751
|
+
getRowIds: fW,
|
|
14752
|
+
toggleDisplayHeader: gW,
|
|
14753
|
+
showChartBuilder: S && !$W,
|
|
14754
|
+
isChartBuilderOpen: _W,
|
|
14755
14755
|
showPageSizeSelector: v,
|
|
14756
|
-
showTableExplorer: (b ||
|
|
14757
|
-
togglePanel:
|
|
14758
|
-
isPanelOpen:
|
|
14759
|
-
isAnyPanelOpen:
|
|
14760
|
-
viewedRowIdx:
|
|
14761
|
-
onViewedRowChange: (e2) =>
|
|
14762
|
-
renderTableExplorerPanel:
|
|
14756
|
+
showTableExplorer: (b || ZW) && !QW && !$W,
|
|
14757
|
+
togglePanel: kW,
|
|
14758
|
+
isPanelOpen: DW,
|
|
14759
|
+
isAnyPanelOpen: OW,
|
|
14760
|
+
viewedRowIdx: TW,
|
|
14761
|
+
onViewedRowChange: (e2) => EW(e2),
|
|
14762
|
+
renderTableExplorerPanel: eG
|
|
14763
14763
|
})
|
|
14764
14764
|
})
|
|
14765
14765
|
})
|
|
@@ -16811,29 +16811,29 @@ ${c}
|
|
|
16811
16811
|
], r[2] = S, r[3] = w);
|
|
16812
16812
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
16813
16813
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
16814
|
-
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q,
|
|
16814
|
+
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, nW] = (0, import_react.useState)(f || EMPTY), rW = (0, import_react.useRef)(null), Z;
|
|
16815
16815
|
r[6] === d ? Z = r[7] : (Z = (e2) => {
|
|
16816
16816
|
var _a3;
|
|
16817
|
-
d && e2 !== "transform" && ((_a3 =
|
|
16817
|
+
d && e2 !== "transform" && ((_a3 = rW.current) == null ? void 0 : _a3.submit());
|
|
16818
16818
|
}, r[6] = d, r[7] = Z);
|
|
16819
|
-
let
|
|
16820
|
-
r[8] === q ?
|
|
16821
|
-
|
|
16822
|
-
}, r[8] = q, r[9] =
|
|
16823
|
-
let
|
|
16824
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
16825
|
-
let e2 =
|
|
16819
|
+
let iW = Z, aW = (0, import_react.useRef)(q), oW;
|
|
16820
|
+
r[8] === q ? oW = r[9] : (oW = () => {
|
|
16821
|
+
aW.current = q;
|
|
16822
|
+
}, r[8] = q, r[9] = oW), (0, import_react.useEffect)(oW);
|
|
16823
|
+
let sW;
|
|
16824
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (sW = () => {
|
|
16825
|
+
let e2 = aW.current;
|
|
16826
16826
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
16827
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
16828
|
-
let
|
|
16829
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
16827
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = sW) : sW = r[12];
|
|
16828
|
+
let cW = f == null ? void 0 : f.transforms.length, lW;
|
|
16829
|
+
r[13] !== T || r[14] !== p || r[15] !== cW ? (lW = [
|
|
16830
16830
|
T,
|
|
16831
|
+
cW,
|
|
16831
16832
|
aW,
|
|
16832
|
-
nW,
|
|
16833
16833
|
p
|
|
16834
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
16835
|
-
let
|
|
16836
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16834
|
+
], r[13] = T, r[14] = p, r[15] = cW, r[16] = lW) : lW = r[16], (0, import_react.useEffect)(sW, lW);
|
|
16835
|
+
let uW;
|
|
16836
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16837
16837
|
value: "transform",
|
|
16838
16838
|
className: "text-xs py-1",
|
|
16839
16839
|
children: [
|
|
@@ -16842,9 +16842,9 @@ ${c}
|
|
|
16842
16842
|
}),
|
|
16843
16843
|
"Transform"
|
|
16844
16844
|
]
|
|
16845
|
-
}), r[17] =
|
|
16846
|
-
let
|
|
16847
|
-
r[18] === H ?
|
|
16845
|
+
}), r[17] = uW) : uW = r[17];
|
|
16846
|
+
let dW;
|
|
16847
|
+
r[18] === H ? dW = r[19] : (dW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16848
16848
|
value: "python-code",
|
|
16849
16849
|
className: "text-xs py-1",
|
|
16850
16850
|
children: [
|
|
@@ -16853,9 +16853,9 @@ ${c}
|
|
|
16853
16853
|
}),
|
|
16854
16854
|
"Python Code"
|
|
16855
16855
|
]
|
|
16856
|
-
}), r[18] = H, r[19] =
|
|
16857
|
-
let
|
|
16858
|
-
r[20] === W ?
|
|
16856
|
+
}), r[18] = H, r[19] = dW);
|
|
16857
|
+
let fW;
|
|
16858
|
+
r[20] === W ? fW = r[21] : (fW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16859
16859
|
value: "sql-code",
|
|
16860
16860
|
className: "text-xs py-1",
|
|
16861
16861
|
children: [
|
|
@@ -16864,54 +16864,54 @@ ${c}
|
|
|
16864
16864
|
}),
|
|
16865
16865
|
"SQL Code"
|
|
16866
16866
|
]
|
|
16867
|
-
}), r[20] = W, r[21] =
|
|
16868
|
-
let
|
|
16869
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16867
|
+
}), r[20] = W, r[21] = fW);
|
|
16868
|
+
let pW;
|
|
16869
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pW = (0, import_jsx_runtime.jsx)("div", {
|
|
16870
16870
|
className: "grow"
|
|
16871
|
-
}), r[22] =
|
|
16872
|
-
let
|
|
16873
|
-
r[23] !==
|
|
16871
|
+
}), r[22] = pW) : pW = r[22];
|
|
16872
|
+
let mW;
|
|
16873
|
+
r[23] !== dW || r[24] !== fW ? (mW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
16874
16874
|
className: "h-8",
|
|
16875
16875
|
children: [
|
|
16876
|
-
|
|
16877
|
-
|
|
16878
|
-
|
|
16879
|
-
|
|
16876
|
+
uW,
|
|
16877
|
+
dW,
|
|
16878
|
+
fW,
|
|
16879
|
+
pW
|
|
16880
16880
|
]
|
|
16881
|
-
}), r[23] =
|
|
16882
|
-
let
|
|
16883
|
-
r[26] === j ?
|
|
16881
|
+
}), r[23] = dW, r[24] = fW, r[25] = mW) : mW = r[25];
|
|
16882
|
+
let hW;
|
|
16883
|
+
r[26] === j ? hW = r[27] : (hW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16884
16884
|
size: "small"
|
|
16885
|
-
}), r[26] = j, r[27] =
|
|
16886
|
-
let
|
|
16887
|
-
r[28] !==
|
|
16885
|
+
}), r[26] = j, r[27] = hW);
|
|
16886
|
+
let gW;
|
|
16887
|
+
r[28] !== mW || r[29] !== hW ? (gW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16888
16888
|
className: "flex items-center gap-2",
|
|
16889
16889
|
children: [
|
|
16890
|
-
|
|
16891
|
-
|
|
16890
|
+
mW,
|
|
16891
|
+
hW
|
|
16892
16892
|
]
|
|
16893
|
-
}), r[28] =
|
|
16894
|
-
let
|
|
16895
|
-
r[31] !== p || r[32] !== f ? (
|
|
16896
|
-
dequal(e2, f) || (p(e2),
|
|
16897
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
16898
|
-
let
|
|
16899
|
-
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !==
|
|
16893
|
+
}), r[28] = mW, r[29] = hW, r[30] = gW) : gW = r[30];
|
|
16894
|
+
let _W;
|
|
16895
|
+
r[31] !== p || r[32] !== f ? (_W = (e2) => {
|
|
16896
|
+
dequal(e2, f) || (p(e2), nW(e2));
|
|
16897
|
+
}, r[31] = p, r[32] = f, r[33] = _W) : _W = r[33];
|
|
16898
|
+
let vW;
|
|
16899
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== _W ? (vW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16900
16900
|
value: "transform",
|
|
16901
16901
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16902
16902
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
16903
|
-
ref:
|
|
16903
|
+
ref: rW,
|
|
16904
16904
|
initialValue: q,
|
|
16905
16905
|
columns: c,
|
|
16906
|
-
onChange:
|
|
16907
|
-
onInvalidChange:
|
|
16906
|
+
onChange: _W,
|
|
16907
|
+
onInvalidChange: nW,
|
|
16908
16908
|
getColumnValues: h,
|
|
16909
16909
|
columnTypesPerStep: B,
|
|
16910
16910
|
lazy: d
|
|
16911
16911
|
})
|
|
16912
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
16913
|
-
let
|
|
16914
|
-
r[41] === H ?
|
|
16912
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = _W, r[40] = vW) : vW = r[40];
|
|
16913
|
+
let yW;
|
|
16914
|
+
r[41] === H ? yW = r[42] : (yW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16915
16915
|
value: "python-code",
|
|
16916
16916
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16917
16917
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16920,9 +16920,9 @@ ${c}
|
|
|
16920
16920
|
code: H,
|
|
16921
16921
|
language: "python"
|
|
16922
16922
|
})
|
|
16923
|
-
}), r[41] = H, r[42] =
|
|
16924
|
-
let
|
|
16925
|
-
r[43] === W ?
|
|
16923
|
+
}), r[41] = H, r[42] = yW);
|
|
16924
|
+
let bW;
|
|
16925
|
+
r[43] === W ? bW = r[44] : (bW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16926
16926
|
value: "sql-code",
|
|
16927
16927
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16928
16928
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16931,35 +16931,35 @@ ${c}
|
|
|
16931
16931
|
code: W,
|
|
16932
16932
|
language: "sql"
|
|
16933
16933
|
})
|
|
16934
|
-
}), r[43] = W, r[44] =
|
|
16935
|
-
let
|
|
16936
|
-
r[45] !==
|
|
16934
|
+
}), r[43] = W, r[44] = bW);
|
|
16935
|
+
let xW;
|
|
16936
|
+
r[45] !== iW || r[46] !== gW || r[47] !== vW || r[48] !== yW || r[49] !== bW ? (xW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
16937
16937
|
defaultValue: "transform",
|
|
16938
|
-
onValueChange:
|
|
16938
|
+
onValueChange: iW,
|
|
16939
16939
|
children: [
|
|
16940
|
-
pW,
|
|
16941
|
-
hW,
|
|
16942
16940
|
gW,
|
|
16943
|
-
|
|
16941
|
+
vW,
|
|
16942
|
+
yW,
|
|
16943
|
+
bW
|
|
16944
16944
|
]
|
|
16945
|
-
}), r[45] =
|
|
16946
|
-
let
|
|
16947
|
-
r[51] === O ?
|
|
16945
|
+
}), r[45] = iW, r[46] = gW, r[47] = vW, r[48] = yW, r[49] = bW, r[50] = xW) : xW = r[50];
|
|
16946
|
+
let SW;
|
|
16947
|
+
r[51] === O ? SW = r[52] : (SW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
16948
16948
|
error: O
|
|
16949
|
-
}), r[51] = O, r[52] =
|
|
16950
|
-
let
|
|
16951
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
16949
|
+
}), r[51] = O, r[52] = SW);
|
|
16950
|
+
let CW = I || "", wW = L ?? 0, TW = G ?? 0, EW = R || Arrays.EMPTY, DW = L && L > 5 || false, OW;
|
|
16951
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== CW || r[61] !== wW || r[62] !== TW || r[63] !== EW || r[64] !== DW ? (OW = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
16952
16952
|
label: null,
|
|
16953
16953
|
className: "rounded-b border-x border-b",
|
|
16954
|
-
data:
|
|
16954
|
+
data: CW,
|
|
16955
16955
|
hasStableRowId: false,
|
|
16956
|
-
totalRows:
|
|
16957
|
-
totalColumns:
|
|
16956
|
+
totalRows: wW,
|
|
16957
|
+
totalColumns: TW,
|
|
16958
16958
|
maxColumns: "all",
|
|
16959
16959
|
pageSize: l,
|
|
16960
16960
|
pagination: true,
|
|
16961
16961
|
fieldTypes: z,
|
|
16962
|
-
rowHeaders:
|
|
16962
|
+
rowHeaders: EW,
|
|
16963
16963
|
showDownload: u,
|
|
16964
16964
|
download_as: _,
|
|
16965
16965
|
get_size_bytes: v,
|
|
@@ -16969,7 +16969,7 @@ ${c}
|
|
|
16969
16969
|
showColumnSummaries: false,
|
|
16970
16970
|
showDataTypes: true,
|
|
16971
16971
|
get_column_summaries: getColumnSummaries,
|
|
16972
|
-
showPageSizeSelector:
|
|
16972
|
+
showPageSizeSelector: DW,
|
|
16973
16973
|
showColumnExplorer: false,
|
|
16974
16974
|
showRowExplorer: true,
|
|
16975
16975
|
showChartBuilder: false,
|
|
@@ -16978,15 +16978,15 @@ ${c}
|
|
|
16978
16978
|
selection: null,
|
|
16979
16979
|
lazy: false,
|
|
16980
16980
|
host: y
|
|
16981
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
16982
|
-
let
|
|
16983
|
-
return r[66] !==
|
|
16981
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = CW, r[61] = wW, r[62] = TW, r[63] = EW, r[64] = DW, r[65] = OW) : OW = r[65];
|
|
16982
|
+
let kW;
|
|
16983
|
+
return r[66] !== xW || r[67] !== SW || r[68] !== OW ? (kW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16984
16984
|
children: [
|
|
16985
|
-
|
|
16986
|
-
|
|
16987
|
-
|
|
16985
|
+
xW,
|
|
16986
|
+
SW,
|
|
16987
|
+
OW
|
|
16988
16988
|
]
|
|
16989
|
-
}), r[66] =
|
|
16989
|
+
}), r[66] = xW, r[67] = SW, r[68] = OW, r[69] = kW) : kW = r[69], kW;
|
|
16990
16990
|
});
|
|
16991
16991
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
16992
16992
|
function getColumnSummaries() {
|
|
@@ -17170,30 +17170,30 @@ ${c}
|
|
|
17170
17170
|
}, [
|
|
17171
17171
|
B
|
|
17172
17172
|
]);
|
|
17173
|
-
let
|
|
17174
|
-
|
|
17173
|
+
let H = `${g}::${I}`, [W, G] = (0, import_react.useState)(H);
|
|
17174
|
+
W !== H && (G(H), E(0)), (0, import_react.useLayoutEffect)(() => {
|
|
17175
17175
|
var _a4;
|
|
17176
17176
|
M.current && (M.current = false, (_a4 = O.current[0]) == null ? void 0 : _a4.focus());
|
|
17177
17177
|
}, [
|
|
17178
|
-
|
|
17178
|
+
H
|
|
17179
17179
|
]);
|
|
17180
|
-
let
|
|
17180
|
+
let q = (R == null ? void 0 : R.files) ?? [], nW = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", iW = l === "file" || l === "all", aW = q.filter((e2) => Z && e2.is_directory || iW && !e2.is_directory), oW = aW.length > 0 && aW.every((e2) => nW.has(e2.path));
|
|
17181
17181
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
17182
17182
|
kind: "danger",
|
|
17183
17183
|
children: z.message
|
|
17184
17184
|
});
|
|
17185
|
-
let
|
|
17185
|
+
let sW = PathBuilder.guessDeliminator(c).deliminator, cW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
17186
17186
|
children: e2.path
|
|
17187
17187
|
}, e2.id));
|
|
17188
|
-
function
|
|
17188
|
+
function lW(e2) {
|
|
17189
17189
|
var _a4;
|
|
17190
17190
|
if (v) return;
|
|
17191
17191
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
17192
|
-
if (g ===
|
|
17192
|
+
if (g === sW) {
|
|
17193
17193
|
y(false);
|
|
17194
17194
|
return;
|
|
17195
17195
|
}
|
|
17196
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
17196
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = sW);
|
|
17197
17197
|
}
|
|
17198
17198
|
let r2 = e2.length < c.length;
|
|
17199
17199
|
if (f && r2) {
|
|
@@ -17206,7 +17206,7 @@ ${c}
|
|
|
17206
17206
|
}
|
|
17207
17207
|
M.current = ((_a4 = j.current) == null ? void 0 : _a4.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
17208
17208
|
}
|
|
17209
|
-
function
|
|
17209
|
+
function uW({ path: e2, name: r2, isDirectory: c2 }) {
|
|
17210
17210
|
return {
|
|
17211
17211
|
id: e2,
|
|
17212
17212
|
name: r2,
|
|
@@ -17214,27 +17214,27 @@ ${c}
|
|
|
17214
17214
|
is_directory: c2
|
|
17215
17215
|
};
|
|
17216
17216
|
}
|
|
17217
|
-
function
|
|
17218
|
-
let f2 =
|
|
17217
|
+
function dW({ path: c2, name: l2, isDirectory: d2 }) {
|
|
17218
|
+
let f2 = uW({
|
|
17219
17219
|
path: c2,
|
|
17220
17220
|
name: l2,
|
|
17221
17221
|
isDirectory: d2
|
|
17222
17222
|
});
|
|
17223
|
-
|
|
17223
|
+
nW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
17224
17224
|
...e,
|
|
17225
17225
|
f2
|
|
17226
17226
|
] : [
|
|
17227
17227
|
f2
|
|
17228
17228
|
]);
|
|
17229
17229
|
}
|
|
17230
|
-
function
|
|
17230
|
+
function fW() {
|
|
17231
17231
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
17232
17232
|
}
|
|
17233
|
-
function
|
|
17233
|
+
function pW() {
|
|
17234
17234
|
let c2 = [];
|
|
17235
|
-
for (let e2 of
|
|
17236
|
-
if (!
|
|
17237
|
-
let r2 =
|
|
17235
|
+
for (let e2 of q) {
|
|
17236
|
+
if (!Z && e2.is_directory || nW.has(e2.path)) continue;
|
|
17237
|
+
let r2 = uW({
|
|
17238
17238
|
path: e2.path,
|
|
17239
17239
|
name: e2.name,
|
|
17240
17240
|
isDirectory: e2.is_directory
|
|
@@ -17246,20 +17246,20 @@ ${c}
|
|
|
17246
17246
|
...c2
|
|
17247
17247
|
]);
|
|
17248
17248
|
}
|
|
17249
|
-
let
|
|
17249
|
+
let mW = [
|
|
17250
17250
|
{
|
|
17251
17251
|
key: "parent",
|
|
17252
17252
|
name: PARENT_DIRECTORY,
|
|
17253
17253
|
Icon: CornerLeftUp,
|
|
17254
17254
|
isSelected: false,
|
|
17255
17255
|
canSelect: false,
|
|
17256
|
-
onPrimary: () =>
|
|
17256
|
+
onPrimary: () => lW(PARENT_DIRECTORY),
|
|
17257
17257
|
onToggleSelect: null
|
|
17258
17258
|
},
|
|
17259
|
-
|
|
17259
|
+
...q.map((e2) => {
|
|
17260
17260
|
let r2 = e2.path;
|
|
17261
17261
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17262
|
-
let c2 =
|
|
17262
|
+
let c2 = Z && e2.is_directory || iW && !e2.is_directory, l2 = nW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => dW({
|
|
17263
17263
|
path: r2,
|
|
17264
17264
|
name: e2.name,
|
|
17265
17265
|
isDirectory: e2.is_directory
|
|
@@ -17270,46 +17270,46 @@ ${c}
|
|
|
17270
17270
|
Icon: FILE_ICON[u2],
|
|
17271
17271
|
isSelected: l2,
|
|
17272
17272
|
canSelect: c2,
|
|
17273
|
-
onPrimary: e2.is_directory ? () =>
|
|
17273
|
+
onPrimary: e2.is_directory ? () => lW(r2) : c2 ? d2 : () => {
|
|
17274
17274
|
},
|
|
17275
17275
|
onToggleSelect: c2 ? d2 : null
|
|
17276
17276
|
};
|
|
17277
17277
|
})
|
|
17278
17278
|
];
|
|
17279
|
-
function
|
|
17279
|
+
function hW(e2) {
|
|
17280
17280
|
var _a4;
|
|
17281
17281
|
E(e2), (_a4 = O.current[e2]) == null ? void 0 : _a4.focus();
|
|
17282
17282
|
}
|
|
17283
|
-
function
|
|
17283
|
+
function gW(e2, r2) {
|
|
17284
17284
|
var _a4, _b3;
|
|
17285
|
-
let c2 =
|
|
17285
|
+
let c2 = mW.length - 1;
|
|
17286
17286
|
switch (e2.key) {
|
|
17287
17287
|
case "ArrowDown":
|
|
17288
|
-
e2.preventDefault(),
|
|
17288
|
+
e2.preventDefault(), hW(Math.min(r2 + 1, c2));
|
|
17289
17289
|
break;
|
|
17290
17290
|
case "ArrowUp":
|
|
17291
|
-
e2.preventDefault(),
|
|
17291
|
+
e2.preventDefault(), hW(Math.max(r2 - 1, 0));
|
|
17292
17292
|
break;
|
|
17293
17293
|
case "Home":
|
|
17294
|
-
e2.preventDefault(),
|
|
17294
|
+
e2.preventDefault(), hW(0);
|
|
17295
17295
|
break;
|
|
17296
17296
|
case "End":
|
|
17297
|
-
e2.preventDefault(),
|
|
17297
|
+
e2.preventDefault(), hW(c2);
|
|
17298
17298
|
break;
|
|
17299
17299
|
case "Enter":
|
|
17300
|
-
e2.preventDefault(),
|
|
17300
|
+
e2.preventDefault(), mW[r2].onPrimary();
|
|
17301
17301
|
break;
|
|
17302
17302
|
case " ":
|
|
17303
|
-
e2.preventDefault(), (_b3 = (_a4 =
|
|
17303
|
+
e2.preventDefault(), (_b3 = (_a4 = mW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a4);
|
|
17304
17304
|
break;
|
|
17305
17305
|
}
|
|
17306
17306
|
}
|
|
17307
|
-
let { parentDirectories:
|
|
17307
|
+
let { parentDirectories: _W } = getProtocolAndParentDirectories({
|
|
17308
17308
|
path: g,
|
|
17309
|
-
delimiter:
|
|
17309
|
+
delimiter: sW,
|
|
17310
17310
|
initialPath: c,
|
|
17311
17311
|
restrictNavigation: f
|
|
17312
|
-
}),
|
|
17312
|
+
}), vW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
17313
17313
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
17314
17314
|
children: [
|
|
17315
17315
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -17319,7 +17319,7 @@ ${c}
|
|
|
17319
17319
|
(() => {
|
|
17320
17320
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
17321
17321
|
children: renderHTML({
|
|
17322
|
-
html: d ?? `Select ${
|
|
17322
|
+
html: d ?? `Select ${vW.join(" and ", 2)}...`
|
|
17323
17323
|
})
|
|
17324
17324
|
});
|
|
17325
17325
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -17333,8 +17333,8 @@ ${c}
|
|
|
17333
17333
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
17334
17334
|
size: "xs",
|
|
17335
17335
|
variant: "link",
|
|
17336
|
-
onClick:
|
|
17337
|
-
children:
|
|
17336
|
+
onClick: oW ? fW : pW,
|
|
17337
|
+
children: oW ? "Deselect all" : "Select all"
|
|
17338
17338
|
})
|
|
17339
17339
|
})
|
|
17340
17340
|
]
|
|
@@ -17344,15 +17344,15 @@ ${c}
|
|
|
17344
17344
|
className: "mt-2 w-full",
|
|
17345
17345
|
placeholder: g,
|
|
17346
17346
|
value: g,
|
|
17347
|
-
onChange: (e2) =>
|
|
17348
|
-
children:
|
|
17347
|
+
onChange: (e2) => lW(e2.target.value),
|
|
17348
|
+
children: _W.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
17349
17349
|
value: e2,
|
|
17350
17350
|
children: e2
|
|
17351
17351
|
}, e2))
|
|
17352
17352
|
}),
|
|
17353
17353
|
R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
17354
17354
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
17355
|
-
children: R.is_truncated ? `Showing ${
|
|
17355
|
+
children: R.is_truncated ? `Showing ${q.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
17356
17356
|
}),
|
|
17357
17357
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
17358
17358
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
@@ -17381,14 +17381,14 @@ ${c}
|
|
|
17381
17381
|
"aria-label": "File browser",
|
|
17382
17382
|
"aria-multiselectable": u,
|
|
17383
17383
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17384
|
-
children:
|
|
17384
|
+
children: mW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17385
17385
|
role: "row",
|
|
17386
17386
|
ref: (e3) => {
|
|
17387
17387
|
O.current[r2] = e3;
|
|
17388
17388
|
},
|
|
17389
17389
|
tabIndex: r2 === T ? 0 : -1,
|
|
17390
17390
|
onFocus: () => E(r2),
|
|
17391
|
-
onKeyDown: (e3) =>
|
|
17391
|
+
onKeyDown: (e3) => gW(e3, r2),
|
|
17392
17392
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
17393
17393
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
17394
17394
|
}),
|
|
@@ -17431,7 +17431,7 @@ ${c}
|
|
|
17431
17431
|
children: [
|
|
17432
17432
|
e.length,
|
|
17433
17433
|
" ",
|
|
17434
|
-
|
|
17434
|
+
vW.join(" or ", e.length),
|
|
17435
17435
|
" ",
|
|
17436
17436
|
"selected"
|
|
17437
17437
|
]
|
|
@@ -17451,7 +17451,7 @@ ${c}
|
|
|
17451
17451
|
marginBlock: 0
|
|
17452
17452
|
},
|
|
17453
17453
|
className: "m-0 text-xs text-muted-foreground",
|
|
17454
|
-
children:
|
|
17454
|
+
children: cW
|
|
17455
17455
|
})
|
|
17456
17456
|
})
|
|
17457
17457
|
]
|
|
@@ -22833,55 +22833,55 @@ ${c}
|
|
|
22833
22833
|
return typeof S == "function" ? S : noop$2;
|
|
22834
22834
|
}, [
|
|
22835
22835
|
S
|
|
22836
|
-
]), q = (0, import_react.useRef)(null),
|
|
22837
|
-
!
|
|
22838
|
-
|
|
22836
|
+
]), q = (0, import_react.useRef)(null), nW = (0, import_react.useRef)(null), rW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), Z = rW[0], iW = rW[1], aW = Z.isFocused, oW = Z.isFileDialogActive, sW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), cW = function() {
|
|
22837
|
+
!sW.current && oW && setTimeout(function() {
|
|
22838
|
+
nW.current && (nW.current.files.length || (iW({
|
|
22839
22839
|
type: "closeDialog"
|
|
22840
22840
|
}), G()));
|
|
22841
22841
|
}, 300);
|
|
22842
22842
|
};
|
|
22843
22843
|
(0, import_react.useEffect)(function() {
|
|
22844
|
-
return window.addEventListener("focus",
|
|
22845
|
-
window.removeEventListener("focus",
|
|
22844
|
+
return window.addEventListener("focus", cW, false), function() {
|
|
22845
|
+
window.removeEventListener("focus", cW, false);
|
|
22846
22846
|
};
|
|
22847
22847
|
}, [
|
|
22848
|
-
|
|
22849
|
-
|
|
22848
|
+
nW,
|
|
22849
|
+
oW,
|
|
22850
22850
|
G,
|
|
22851
|
-
|
|
22851
|
+
sW
|
|
22852
22852
|
]);
|
|
22853
|
-
var
|
|
22854
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
22853
|
+
var lW = (0, import_react.useRef)([]), uW = (0, import_react.useRef)([]), dW = function(e2) {
|
|
22854
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), lW.current = []);
|
|
22855
22855
|
};
|
|
22856
22856
|
(0, import_react.useEffect)(function() {
|
|
22857
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
22858
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
22857
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", dW, false)), function() {
|
|
22858
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", dW));
|
|
22859
22859
|
};
|
|
22860
22860
|
}, [
|
|
22861
22861
|
q,
|
|
22862
22862
|
O
|
|
22863
22863
|
]), (0, import_react.useEffect)(function() {
|
|
22864
22864
|
var e2 = function(e3) {
|
|
22865
|
-
|
|
22865
|
+
uW.current = [].concat(_toConsumableArray(uW.current), [
|
|
22866
22866
|
e3.target
|
|
22867
|
-
]), isEvtWithFiles(e3) &&
|
|
22867
|
+
]), isEvtWithFiles(e3) && iW({
|
|
22868
22868
|
isDragGlobal: true,
|
|
22869
22869
|
type: "setDragGlobal"
|
|
22870
22870
|
});
|
|
22871
22871
|
}, r2 = function(e3) {
|
|
22872
|
-
|
|
22872
|
+
uW.current = uW.current.filter(function(r3) {
|
|
22873
22873
|
return r3 !== e3.target && r3 !== null;
|
|
22874
|
-
}), !(
|
|
22874
|
+
}), !(uW.current.length > 0) && iW({
|
|
22875
22875
|
isDragGlobal: false,
|
|
22876
22876
|
type: "setDragGlobal"
|
|
22877
22877
|
});
|
|
22878
22878
|
}, c2 = function() {
|
|
22879
|
-
|
|
22879
|
+
uW.current = [], iW({
|
|
22880
22880
|
isDragGlobal: false,
|
|
22881
22881
|
type: "setDragGlobal"
|
|
22882
22882
|
});
|
|
22883
22883
|
}, l2 = function() {
|
|
22884
|
-
|
|
22884
|
+
uW.current = [], iW({
|
|
22885
22885
|
isDragGlobal: false,
|
|
22886
22886
|
type: "setDragGlobal"
|
|
22887
22887
|
});
|
|
@@ -22899,12 +22899,12 @@ ${c}
|
|
|
22899
22899
|
E,
|
|
22900
22900
|
l
|
|
22901
22901
|
]);
|
|
22902
|
-
var
|
|
22902
|
+
var fW = (0, import_react.useCallback)(function(e2) {
|
|
22903
22903
|
R ? R(e2) : console.error(e2);
|
|
22904
22904
|
}, [
|
|
22905
22905
|
R
|
|
22906
|
-
]),
|
|
22907
|
-
e2.preventDefault(), e2.persist(),
|
|
22906
|
+
]), pW = (0, import_react.useCallback)(function(e2) {
|
|
22907
|
+
e2.preventDefault(), e2.persist(), EW(e2), lW.current = [].concat(_toConsumableArray(lW.current), [
|
|
22908
22908
|
e2.target
|
|
22909
22909
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22910
22910
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -22917,7 +22917,7 @@ ${c}
|
|
|
22917
22917
|
maxFiles: m,
|
|
22918
22918
|
validator: z
|
|
22919
22919
|
});
|
|
22920
|
-
|
|
22920
|
+
iW({
|
|
22921
22921
|
isDragAccept: l2,
|
|
22922
22922
|
isDragReject: c2 > 0 && !l2,
|
|
22923
22923
|
isDragActive: true,
|
|
@@ -22925,12 +22925,12 @@ ${c}
|
|
|
22925
22925
|
}), h && h(e2);
|
|
22926
22926
|
}
|
|
22927
22927
|
}).catch(function(e3) {
|
|
22928
|
-
return
|
|
22928
|
+
return fW(e3);
|
|
22929
22929
|
});
|
|
22930
22930
|
}, [
|
|
22931
22931
|
u,
|
|
22932
22932
|
h,
|
|
22933
|
-
|
|
22933
|
+
fW,
|
|
22934
22934
|
L,
|
|
22935
22935
|
B,
|
|
22936
22936
|
f,
|
|
@@ -22938,8 +22938,8 @@ ${c}
|
|
|
22938
22938
|
p,
|
|
22939
22939
|
m,
|
|
22940
22940
|
z
|
|
22941
|
-
]),
|
|
22942
|
-
e2.preventDefault(), e2.persist(),
|
|
22941
|
+
]), mW = (0, import_react.useCallback)(function(e2) {
|
|
22942
|
+
e2.preventDefault(), e2.persist(), EW(e2);
|
|
22943
22943
|
var r2 = isEvtWithFiles(e2);
|
|
22944
22944
|
if (r2 && e2.dataTransfer) try {
|
|
22945
22945
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -22949,12 +22949,12 @@ ${c}
|
|
|
22949
22949
|
}, [
|
|
22950
22950
|
_,
|
|
22951
22951
|
L
|
|
22952
|
-
]),
|
|
22953
|
-
e2.preventDefault(), e2.persist(),
|
|
22954
|
-
var r2 =
|
|
22952
|
+
]), hW = (0, import_react.useCallback)(function(e2) {
|
|
22953
|
+
e2.preventDefault(), e2.persist(), EW(e2);
|
|
22954
|
+
var r2 = lW.current.filter(function(e3) {
|
|
22955
22955
|
return q.current && q.current.contains(e3);
|
|
22956
22956
|
}), c2 = r2.indexOf(e2.target);
|
|
22957
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
22957
|
+
c2 !== -1 && r2.splice(c2, 1), lW.current = r2, !(r2.length > 0) && (iW({
|
|
22958
22958
|
type: "setDraggedFiles",
|
|
22959
22959
|
isDragActive: false,
|
|
22960
22960
|
isDragAccept: false,
|
|
@@ -22964,7 +22964,7 @@ ${c}
|
|
|
22964
22964
|
q,
|
|
22965
22965
|
g,
|
|
22966
22966
|
L
|
|
22967
|
-
]),
|
|
22967
|
+
]), gW = (0, import_react.useCallback)(function(e2, r2) {
|
|
22968
22968
|
var c2 = [], l2 = [];
|
|
22969
22969
|
e2.forEach(function(e3) {
|
|
22970
22970
|
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;
|
|
@@ -22988,14 +22988,14 @@ ${c}
|
|
|
22988
22988
|
TOO_MANY_FILES_REJECTION
|
|
22989
22989
|
]
|
|
22990
22990
|
});
|
|
22991
|
-
}), c2.splice(0)),
|
|
22991
|
+
}), c2.splice(0)), iW({
|
|
22992
22992
|
acceptedFiles: c2,
|
|
22993
22993
|
fileRejections: l2,
|
|
22994
22994
|
isDragReject: l2.length > 0,
|
|
22995
22995
|
type: "setFiles"
|
|
22996
22996
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
22997
22997
|
}, [
|
|
22998
|
-
|
|
22998
|
+
iW,
|
|
22999
22999
|
p,
|
|
23000
23000
|
B,
|
|
23001
23001
|
f,
|
|
@@ -23005,22 +23005,22 @@ ${c}
|
|
|
23005
23005
|
y,
|
|
23006
23006
|
b,
|
|
23007
23007
|
z
|
|
23008
|
-
]),
|
|
23009
|
-
e2.preventDefault(), e2.persist(),
|
|
23010
|
-
isPropagationStopped(e2) && !L ||
|
|
23008
|
+
]), _W = (0, import_react.useCallback)(function(e2) {
|
|
23009
|
+
e2.preventDefault(), e2.persist(), EW(e2), lW.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
23010
|
+
isPropagationStopped(e2) && !L || gW(r2, e2);
|
|
23011
23011
|
}).catch(function(e3) {
|
|
23012
|
-
return
|
|
23013
|
-
}),
|
|
23012
|
+
return fW(e3);
|
|
23013
|
+
}), iW({
|
|
23014
23014
|
type: "reset"
|
|
23015
23015
|
});
|
|
23016
23016
|
}, [
|
|
23017
23017
|
u,
|
|
23018
|
-
|
|
23019
|
-
|
|
23018
|
+
gW,
|
|
23019
|
+
fW,
|
|
23020
23020
|
L
|
|
23021
|
-
]),
|
|
23022
|
-
if (
|
|
23023
|
-
|
|
23021
|
+
]), vW = (0, import_react.useCallback)(function() {
|
|
23022
|
+
if (sW.current) {
|
|
23023
|
+
iW({
|
|
23024
23024
|
type: "openDialog"
|
|
23025
23025
|
}), W();
|
|
23026
23026
|
var e2 = {
|
|
@@ -23030,66 +23030,66 @@ ${c}
|
|
|
23030
23030
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
23031
23031
|
return u(e3);
|
|
23032
23032
|
}).then(function(e3) {
|
|
23033
|
-
|
|
23033
|
+
gW(e3, null), iW({
|
|
23034
23034
|
type: "closeDialog"
|
|
23035
23035
|
});
|
|
23036
23036
|
}).catch(function(e3) {
|
|
23037
|
-
isAbort(e3) ? (G(e3),
|
|
23037
|
+
isAbort(e3) ? (G(e3), iW({
|
|
23038
23038
|
type: "closeDialog"
|
|
23039
|
-
})) : isSecurityError(e3) ? (
|
|
23039
|
+
})) : isSecurityError(e3) ? (sW.current = false, nW.current ? (nW.current.value = null, nW.current.click()) : fW(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."))) : fW(e3);
|
|
23040
23040
|
});
|
|
23041
23041
|
return;
|
|
23042
23042
|
}
|
|
23043
|
-
|
|
23043
|
+
nW.current && (iW({
|
|
23044
23044
|
type: "openDialog"
|
|
23045
|
-
}), W(),
|
|
23045
|
+
}), W(), nW.current.value = null, nW.current.click());
|
|
23046
23046
|
}, [
|
|
23047
|
-
|
|
23047
|
+
iW,
|
|
23048
23048
|
W,
|
|
23049
23049
|
G,
|
|
23050
23050
|
T,
|
|
23051
|
-
|
|
23052
|
-
|
|
23051
|
+
gW,
|
|
23052
|
+
fW,
|
|
23053
23053
|
H,
|
|
23054
23054
|
p
|
|
23055
|
-
]),
|
|
23056
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
23055
|
+
]), yW = (0, import_react.useCallback)(function(e2) {
|
|
23056
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), vW());
|
|
23057
23057
|
}, [
|
|
23058
23058
|
q,
|
|
23059
|
-
|
|
23060
|
-
]),
|
|
23061
|
-
|
|
23059
|
+
vW
|
|
23060
|
+
]), bW = (0, import_react.useCallback)(function() {
|
|
23061
|
+
iW({
|
|
23062
23062
|
type: "focus"
|
|
23063
23063
|
});
|
|
23064
|
-
}, []),
|
|
23065
|
-
|
|
23064
|
+
}, []), xW = (0, import_react.useCallback)(function() {
|
|
23065
|
+
iW({
|
|
23066
23066
|
type: "blur"
|
|
23067
23067
|
});
|
|
23068
|
-
}, []),
|
|
23069
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
23068
|
+
}, []), SW = (0, import_react.useCallback)(function() {
|
|
23069
|
+
j || (isIeOrEdge() ? setTimeout(vW, 0) : vW());
|
|
23070
23070
|
}, [
|
|
23071
23071
|
j,
|
|
23072
|
-
|
|
23073
|
-
]),
|
|
23072
|
+
vW
|
|
23073
|
+
]), CW = function(e2) {
|
|
23074
23074
|
return l ? null : e2;
|
|
23075
|
-
},
|
|
23076
|
-
return M ? null :
|
|
23077
|
-
},
|
|
23078
|
-
return I ? null :
|
|
23079
|
-
},
|
|
23075
|
+
}, wW = function(e2) {
|
|
23076
|
+
return M ? null : CW(e2);
|
|
23077
|
+
}, TW = function(e2) {
|
|
23078
|
+
return I ? null : CW(e2);
|
|
23079
|
+
}, EW = function(e2) {
|
|
23080
23080
|
L && e2.stopPropagation();
|
|
23081
|
-
},
|
|
23081
|
+
}, DW = (0, import_react.useMemo)(function() {
|
|
23082
23082
|
return function() {
|
|
23083
23083
|
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);
|
|
23084
23084
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
23085
|
-
onKeyDown:
|
|
23086
|
-
onFocus:
|
|
23087
|
-
onBlur:
|
|
23088
|
-
onClick:
|
|
23089
|
-
onDragEnter:
|
|
23090
|
-
onDragOver:
|
|
23091
|
-
onDragLeave:
|
|
23092
|
-
onDrop:
|
|
23085
|
+
onKeyDown: wW(composeEventHandlers(d2, yW)),
|
|
23086
|
+
onFocus: wW(composeEventHandlers(f2, bW)),
|
|
23087
|
+
onBlur: wW(composeEventHandlers(p2, xW)),
|
|
23088
|
+
onClick: CW(composeEventHandlers(m2, SW)),
|
|
23089
|
+
onDragEnter: TW(composeEventHandlers(h2, pW)),
|
|
23090
|
+
onDragOver: TW(composeEventHandlers(g2, mW)),
|
|
23091
|
+
onDragLeave: TW(composeEventHandlers(_2, hW)),
|
|
23092
|
+
onDrop: TW(composeEventHandlers(v2, _W)),
|
|
23093
23093
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23094
23094
|
}, c2, q), !l && !M ? {
|
|
23095
23095
|
tabIndex: 0
|
|
@@ -23097,20 +23097,20 @@ ${c}
|
|
|
23097
23097
|
};
|
|
23098
23098
|
}, [
|
|
23099
23099
|
q,
|
|
23100
|
-
gW,
|
|
23101
|
-
_W,
|
|
23102
|
-
vW,
|
|
23103
23100
|
yW,
|
|
23104
|
-
|
|
23105
|
-
|
|
23106
|
-
|
|
23101
|
+
bW,
|
|
23102
|
+
xW,
|
|
23103
|
+
SW,
|
|
23104
|
+
pW,
|
|
23107
23105
|
mW,
|
|
23106
|
+
hW,
|
|
23107
|
+
_W,
|
|
23108
23108
|
M,
|
|
23109
23109
|
I,
|
|
23110
23110
|
l
|
|
23111
|
-
]),
|
|
23111
|
+
]), OW = (0, import_react.useCallback)(function(e2) {
|
|
23112
23112
|
e2.stopPropagation();
|
|
23113
|
-
}, []),
|
|
23113
|
+
}, []), kW = (0, import_react.useMemo)(function() {
|
|
23114
23114
|
return function() {
|
|
23115
23115
|
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);
|
|
23116
23116
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -23129,25 +23129,25 @@ ${c}
|
|
|
23129
23129
|
width: "1px",
|
|
23130
23130
|
whiteSpace: "nowrap"
|
|
23131
23131
|
},
|
|
23132
|
-
onChange:
|
|
23133
|
-
onClick:
|
|
23132
|
+
onChange: CW(composeEventHandlers(l2, _W)),
|
|
23133
|
+
onClick: CW(composeEventHandlers(u2, OW)),
|
|
23134
23134
|
tabIndex: -1
|
|
23135
|
-
}, c2,
|
|
23135
|
+
}, c2, nW)), d2);
|
|
23136
23136
|
};
|
|
23137
23137
|
}, [
|
|
23138
|
-
|
|
23138
|
+
nW,
|
|
23139
23139
|
c,
|
|
23140
23140
|
p,
|
|
23141
|
-
|
|
23141
|
+
_W,
|
|
23142
23142
|
l
|
|
23143
23143
|
]);
|
|
23144
23144
|
return _objectSpread$7(_objectSpread$7({}, Z), {}, {
|
|
23145
|
-
isFocused:
|
|
23146
|
-
getRootProps:
|
|
23147
|
-
getInputProps:
|
|
23145
|
+
isFocused: aW && !l,
|
|
23146
|
+
getRootProps: DW,
|
|
23147
|
+
getInputProps: kW,
|
|
23148
23148
|
rootRef: q,
|
|
23149
|
-
inputRef:
|
|
23150
|
-
open:
|
|
23149
|
+
inputRef: nW,
|
|
23150
|
+
open: CW(vW)
|
|
23151
23151
|
});
|
|
23152
23152
|
}
|
|
23153
23153
|
function reducer$2(e, r) {
|
|
@@ -23379,47 +23379,47 @@ ${c}
|
|
|
23379
23379
|
html: I
|
|
23380
23380
|
})
|
|
23381
23381
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
23382
|
-
let q = w && "text-primary",
|
|
23383
|
-
r[48] !== q || r[49] !==
|
|
23382
|
+
let q = w && "text-primary", nW = T && "text-destructive", rW;
|
|
23383
|
+
r[48] !== q || r[49] !== nW ? (rW = cn(q, nW), r[48] = q, r[49] = nW, r[50] = rW) : rW = r[50];
|
|
23384
23384
|
let Z;
|
|
23385
|
-
r[51] ===
|
|
23386
|
-
strokeWidth: 1.4,
|
|
23387
|
-
className: eW
|
|
23388
|
-
}), r[51] = eW, r[52] = Z);
|
|
23389
|
-
let tW = w && "text-primary", nW = T && "text-destructive", rW;
|
|
23390
|
-
r[53] !== tW || r[54] !== nW ? (rW = cn(tW, nW), r[53] = tW, r[54] = nW, r[55] = rW) : rW = r[55];
|
|
23391
|
-
let iW;
|
|
23392
|
-
r[56] === rW ? iW = r[57] : (iW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23385
|
+
r[51] === rW ? Z = r[52] : (Z = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23393
23386
|
strokeWidth: 1.4,
|
|
23394
23387
|
className: rW
|
|
23395
|
-
}), r[
|
|
23396
|
-
let aW;
|
|
23397
|
-
r[
|
|
23388
|
+
}), r[51] = rW, r[52] = Z);
|
|
23389
|
+
let iW = w && "text-primary", aW = T && "text-destructive", oW;
|
|
23390
|
+
r[53] !== iW || r[54] !== aW ? (oW = cn(iW, aW), r[53] = iW, r[54] = aW, r[55] = oW) : oW = r[55];
|
|
23391
|
+
let sW;
|
|
23392
|
+
r[56] === oW ? sW = r[57] : (sW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23393
|
+
strokeWidth: 1.4,
|
|
23394
|
+
className: oW
|
|
23395
|
+
}), r[56] = oW, r[57] = sW);
|
|
23396
|
+
let cW;
|
|
23397
|
+
r[58] !== Z || r[59] !== sW ? (cW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23398
23398
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
23399
23399
|
children: [
|
|
23400
23400
|
Z,
|
|
23401
|
-
|
|
23401
|
+
sW
|
|
23402
23402
|
]
|
|
23403
|
-
}), r[58] = Z, r[59] =
|
|
23404
|
-
let
|
|
23405
|
-
r[61] !== G || r[62] !==
|
|
23403
|
+
}), r[58] = Z, r[59] = sW, r[60] = cW) : cW = r[60];
|
|
23404
|
+
let lW;
|
|
23405
|
+
r[61] !== G || r[62] !== cW ? (lW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23406
23406
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
23407
23407
|
children: [
|
|
23408
23408
|
G,
|
|
23409
|
-
|
|
23409
|
+
cW
|
|
23410
23410
|
]
|
|
23411
|
-
}), r[61] = G, r[62] =
|
|
23412
|
-
let
|
|
23413
|
-
r[64] !== W || r[65] !==
|
|
23411
|
+
}), r[61] = G, r[62] = cW, r[63] = lW) : lW = r[63];
|
|
23412
|
+
let uW;
|
|
23413
|
+
r[64] !== W || r[65] !== lW || r[66] !== z || r[67] !== B ? (uW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23414
23414
|
className: z,
|
|
23415
23415
|
...B,
|
|
23416
23416
|
children: [
|
|
23417
23417
|
W,
|
|
23418
|
-
|
|
23418
|
+
lW
|
|
23419
23419
|
]
|
|
23420
|
-
}), r[64] = W, r[65] =
|
|
23421
|
-
let
|
|
23422
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
23420
|
+
}), r[64] = W, r[65] = lW, r[66] = z, r[67] = B, r[68] = uW) : uW = r[68];
|
|
23421
|
+
let dW;
|
|
23422
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (dW = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
23423
23423
|
className: "flex flex-row gap-1",
|
|
23424
23424
|
children: [
|
|
23425
23425
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23455,17 +23455,17 @@ ${c}
|
|
|
23455
23455
|
})
|
|
23456
23456
|
})
|
|
23457
23457
|
]
|
|
23458
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
23459
|
-
let
|
|
23460
|
-
return r[75] !==
|
|
23458
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = dW) : dW = r[74];
|
|
23459
|
+
let fW;
|
|
23460
|
+
return r[75] !== uW || r[76] !== dW ? (fW = (0, import_jsx_runtime.jsx)("section", {
|
|
23461
23461
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
23462
23462
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
23463
23463
|
children: [
|
|
23464
|
-
|
|
23465
|
-
|
|
23464
|
+
uW,
|
|
23465
|
+
dW
|
|
23466
23466
|
]
|
|
23467
23467
|
})
|
|
23468
|
-
}), r[75] =
|
|
23468
|
+
}), r[75] = uW, r[76] = dW, r[77] = fW) : fW = r[77], fW;
|
|
23469
23469
|
};
|
|
23470
23470
|
function _temp$11(e) {
|
|
23471
23471
|
Logger.error(e), toast({
|
|
@@ -23561,75 +23561,75 @@ ${c}
|
|
|
23561
23561
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
23562
23562
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23563
23563
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
23564
|
-
let
|
|
23565
|
-
r[13] === f ?
|
|
23564
|
+
let nW;
|
|
23565
|
+
r[13] === f ? nW = r[14] : (nW = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23566
23566
|
className: "text-center",
|
|
23567
23567
|
children: renderHTML({
|
|
23568
23568
|
html: f
|
|
23569
23569
|
})
|
|
23570
|
-
}), r[13] = f, r[14] =
|
|
23571
|
-
let
|
|
23572
|
-
r[15] === L ?
|
|
23570
|
+
}), r[13] = f, r[14] = nW);
|
|
23571
|
+
let rW;
|
|
23572
|
+
r[15] === L ? rW = r[16] : (rW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
23573
23573
|
kind: "danger",
|
|
23574
23574
|
className: "rounded",
|
|
23575
23575
|
children: L ?? "Invalid input"
|
|
23576
|
-
}), r[15] = L, r[16] =
|
|
23576
|
+
}), r[15] = L, r[16] = rW);
|
|
23577
23577
|
let Z;
|
|
23578
23578
|
r[17] === c ? Z = r[18] : (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
23579
23579
|
children: c
|
|
23580
23580
|
}), r[17] = c, r[18] = Z);
|
|
23581
|
-
let
|
|
23582
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
23581
|
+
let iW;
|
|
23582
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (iW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
23583
23583
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
23584
23584
|
variant: "text",
|
|
23585
23585
|
onClick: (e2) => {
|
|
23586
23586
|
e2.preventDefault(), B();
|
|
23587
23587
|
},
|
|
23588
23588
|
children: S
|
|
23589
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
23590
|
-
let
|
|
23591
|
-
r[23] === h ?
|
|
23589
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = iW) : iW = r[22];
|
|
23590
|
+
let aW = v || h, oW;
|
|
23591
|
+
r[23] === h ? oW = r[24] : (oW = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
23592
23592
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
23593
|
-
}), r[23] = h, r[24] =
|
|
23594
|
-
let
|
|
23595
|
-
r[25] !== g || r[26] !==
|
|
23593
|
+
}), r[23] = h, r[24] = oW);
|
|
23594
|
+
let sW;
|
|
23595
|
+
r[25] !== g || r[26] !== aW || r[27] !== oW || r[28] !== I ? (sW = (0, import_jsx_runtime.jsxs)(Button, {
|
|
23596
23596
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
23597
23597
|
variant: I,
|
|
23598
|
-
disabled:
|
|
23598
|
+
disabled: aW,
|
|
23599
23599
|
type: "submit",
|
|
23600
23600
|
children: [
|
|
23601
|
-
|
|
23601
|
+
oW,
|
|
23602
23602
|
g
|
|
23603
23603
|
]
|
|
23604
|
-
}), r[25] = g, r[26] =
|
|
23605
|
-
let
|
|
23606
|
-
r[30] !== _ || r[31] !==
|
|
23607
|
-
let
|
|
23608
|
-
r[33] !==
|
|
23604
|
+
}), r[25] = g, r[26] = aW, r[27] = oW, r[28] = I, r[29] = sW) : sW = r[29];
|
|
23605
|
+
let cW;
|
|
23606
|
+
r[30] !== _ || r[31] !== sW ? (cW = withTooltip(sW, _), r[30] = _, r[31] = sW, r[32] = cW) : cW = r[32];
|
|
23607
|
+
let lW;
|
|
23608
|
+
r[33] !== cW || r[34] !== iW ? (lW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23609
23609
|
className: "flex justify-end gap-2 font-code",
|
|
23610
23610
|
children: [
|
|
23611
|
-
|
|
23612
|
-
|
|
23611
|
+
iW,
|
|
23612
|
+
cW
|
|
23613
23613
|
]
|
|
23614
|
-
}), r[33] =
|
|
23615
|
-
let
|
|
23616
|
-
r[36] !==
|
|
23614
|
+
}), r[33] = cW, r[34] = iW, r[35] = lW) : lW = r[35];
|
|
23615
|
+
let uW;
|
|
23616
|
+
r[36] !== lW || r[37] !== G || r[38] !== q || r[39] !== nW || r[40] !== rW || r[41] !== Z ? (uW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23617
23617
|
className: G,
|
|
23618
23618
|
onKeyDown: q,
|
|
23619
23619
|
children: [
|
|
23620
|
-
|
|
23621
|
-
|
|
23620
|
+
nW,
|
|
23621
|
+
rW,
|
|
23622
23622
|
Z,
|
|
23623
|
-
|
|
23623
|
+
lW
|
|
23624
23624
|
]
|
|
23625
|
-
}), r[36] =
|
|
23626
|
-
let
|
|
23627
|
-
return r[43] !==
|
|
23625
|
+
}), r[36] = lW, r[37] = G, r[38] = q, r[39] = nW, r[40] = rW, r[41] = Z, r[42] = uW) : uW = r[42];
|
|
23626
|
+
let dW;
|
|
23627
|
+
return r[43] !== uW || r[44] !== H ? (dW = (0, import_jsx_runtime.jsx)("form", {
|
|
23628
23628
|
className: "contents",
|
|
23629
23629
|
ref: j,
|
|
23630
23630
|
onSubmit: H,
|
|
23631
|
-
children:
|
|
23632
|
-
}), r[43] =
|
|
23631
|
+
children: uW
|
|
23632
|
+
}), r[43] = uW, r[44] = H, r[45] = dW) : dW = r[45], dW;
|
|
23633
23633
|
};
|
|
23634
23634
|
var Form = (e) => {
|
|
23635
23635
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -25402,8 +25402,8 @@ ${c}
|
|
|
25402
25402
|
points: extractSunburstPoints(e2.points)
|
|
25403
25403
|
}));
|
|
25404
25404
|
}, r[29] = u, r[30] = G);
|
|
25405
|
-
let q = useEvent_default(G),
|
|
25406
|
-
r[31] === u ?
|
|
25405
|
+
let q = useEvent_default(G), nW;
|
|
25406
|
+
r[31] === u ? nW = r[32] : (nW = (e2) => {
|
|
25407
25407
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25408
25408
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25409
25409
|
u((e3) => ({
|
|
@@ -25414,8 +25414,8 @@ ${c}
|
|
|
25414
25414
|
points: r2,
|
|
25415
25415
|
indices: c2
|
|
25416
25416
|
}));
|
|
25417
|
-
}, r[31] = u, r[32] =
|
|
25418
|
-
let
|
|
25417
|
+
}, r[31] = u, r[32] = nW);
|
|
25418
|
+
let rW = useEvent_default(nW), Z;
|
|
25419
25419
|
r[33] === u ? Z = r[34] : (Z = (e2) => {
|
|
25420
25420
|
e2 && u((r2) => ({
|
|
25421
25421
|
...r2,
|
|
@@ -25426,8 +25426,8 @@ ${c}
|
|
|
25426
25426
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
25427
25427
|
}));
|
|
25428
25428
|
}, r[33] = u, r[34] = Z);
|
|
25429
|
-
let
|
|
25430
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
25429
|
+
let iW = useEvent_default(Z), aW = m.frames ?? void 0, oW = useEvent_default(_temp3$3), sW;
|
|
25430
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== rW || r[42] !== iW || r[43] !== aW || r[44] !== oW || r[45] !== R ? (sW = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25431
25431
|
...m,
|
|
25432
25432
|
layout: h,
|
|
25433
25433
|
onRelayout: R,
|
|
@@ -25435,13 +25435,13 @@ ${c}
|
|
|
25435
25435
|
onTreemapClick: W,
|
|
25436
25436
|
onSunburstClick: q,
|
|
25437
25437
|
config: L,
|
|
25438
|
-
onClick:
|
|
25439
|
-
onSelected:
|
|
25438
|
+
onClick: rW,
|
|
25439
|
+
onSelected: iW,
|
|
25440
25440
|
className: "w-full",
|
|
25441
25441
|
useResizeHandler: true,
|
|
25442
|
-
frames:
|
|
25443
|
-
onError:
|
|
25444
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
25442
|
+
frames: aW,
|
|
25443
|
+
onError: oW
|
|
25444
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = rW, r[42] = iW, r[43] = aW, r[44] = oW, r[45] = R, r[46] = sW) : sW = r[46], sW;
|
|
25445
25445
|
});
|
|
25446
25446
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25447
25447
|
function _temp$8(e) {
|
|
@@ -25573,8 +25573,8 @@ ${c}
|
|
|
25573
25573
|
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];
|
|
25574
25574
|
let q;
|
|
25575
25575
|
c[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = cn("absolute bg-blue-500 dark:bg-primary", "data-[orientation=horizontal]:h-full", "data-[orientation=vertical]:w-full", "data-disabled:opacity-50", "hover:cursor-grab active:cursor-grabbing"), c[18] = q) : q = c[18];
|
|
25576
|
-
let
|
|
25577
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
25576
|
+
let nW;
|
|
25577
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (nW = (0, import_jsx_runtime.jsx)(Track, {
|
|
25578
25578
|
ref: E,
|
|
25579
25579
|
"data-testid": "track",
|
|
25580
25580
|
className: G,
|
|
@@ -25585,9 +25585,9 @@ ${c}
|
|
|
25585
25585
|
onPointerMove: z,
|
|
25586
25586
|
onPointerUp: H
|
|
25587
25587
|
})
|
|
25588
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25589
|
-
let
|
|
25590
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
25588
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = nW) : nW = c[22];
|
|
25589
|
+
let rW;
|
|
25590
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (rW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25591
25591
|
asChild: true,
|
|
25592
25592
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25593
25593
|
"data-testid": "thumb",
|
|
@@ -25597,30 +25597,30 @@ ${c}
|
|
|
25597
25597
|
onMouseEnter: m.setTrue,
|
|
25598
25598
|
onMouseLeave: m.setFalse
|
|
25599
25599
|
})
|
|
25600
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
25600
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = rW) : rW = c[25];
|
|
25601
25601
|
let Z;
|
|
25602
25602
|
c[26] !== h || c[27] !== u.value || c[28] !== d ? (Z = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25603
25603
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
25604
25604
|
locale: h
|
|
25605
25605
|
})
|
|
25606
25606
|
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = Z) : Z = c[29];
|
|
25607
|
-
let
|
|
25608
|
-
c[30] === Z ?
|
|
25607
|
+
let iW;
|
|
25608
|
+
c[30] === Z ? iW = c[31] : (iW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25609
25609
|
children: Z
|
|
25610
|
-
}), c[30] = Z, c[31] =
|
|
25611
|
-
let
|
|
25612
|
-
c[32] !== f || c[33] !==
|
|
25610
|
+
}), c[30] = Z, c[31] = iW);
|
|
25611
|
+
let aW;
|
|
25612
|
+
c[32] !== f || c[33] !== rW || c[34] !== iW ? (aW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25613
25613
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25614
25614
|
delayDuration: 0,
|
|
25615
25615
|
open: f,
|
|
25616
25616
|
children: [
|
|
25617
|
-
|
|
25618
|
-
|
|
25617
|
+
rW,
|
|
25618
|
+
iW
|
|
25619
25619
|
]
|
|
25620
25620
|
})
|
|
25621
|
-
}), c[32] = f, c[33] =
|
|
25622
|
-
let
|
|
25623
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
25621
|
+
}), c[32] = f, c[33] = rW, c[34] = iW, c[35] = aW) : aW = c[35];
|
|
25622
|
+
let oW;
|
|
25623
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (oW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25624
25624
|
asChild: true,
|
|
25625
25625
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25626
25626
|
"data-testid": "thumb",
|
|
@@ -25630,39 +25630,39 @@ ${c}
|
|
|
25630
25630
|
onMouseEnter: m.setTrue,
|
|
25631
25631
|
onMouseLeave: m.setFalse
|
|
25632
25632
|
})
|
|
25633
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
25634
|
-
let
|
|
25635
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
25633
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = oW) : oW = c[38];
|
|
25634
|
+
let sW;
|
|
25635
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (sW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25636
25636
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
25637
25637
|
locale: h
|
|
25638
25638
|
})
|
|
25639
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
25640
|
-
let
|
|
25641
|
-
c[43] ===
|
|
25642
|
-
children:
|
|
25643
|
-
}), c[43] =
|
|
25644
|
-
let
|
|
25645
|
-
c[45] !== f || c[46] !==
|
|
25639
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = sW) : sW = c[42];
|
|
25640
|
+
let cW;
|
|
25641
|
+
c[43] === sW ? cW = c[44] : (cW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25642
|
+
children: sW
|
|
25643
|
+
}), c[43] = sW, c[44] = cW);
|
|
25644
|
+
let lW;
|
|
25645
|
+
c[45] !== f || c[46] !== oW || c[47] !== cW ? (lW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25646
25646
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25647
25647
|
delayDuration: 0,
|
|
25648
25648
|
open: f,
|
|
25649
25649
|
children: [
|
|
25650
|
-
|
|
25651
|
-
|
|
25650
|
+
oW,
|
|
25651
|
+
cW
|
|
25652
25652
|
]
|
|
25653
25653
|
})
|
|
25654
|
-
}), c[45] = f, c[46] =
|
|
25655
|
-
let
|
|
25656
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25654
|
+
}), c[45] = f, c[46] = oW, c[47] = cW, c[48] = lW) : lW = c[48];
|
|
25655
|
+
let uW;
|
|
25656
|
+
return c[49] !== M || c[50] !== u || c[51] !== nW || c[52] !== aW || c[53] !== lW || c[54] !== W ? (uW = (0, import_jsx_runtime.jsxs)(Root, {
|
|
25657
25657
|
ref: M,
|
|
25658
25658
|
className: W,
|
|
25659
25659
|
...u,
|
|
25660
25660
|
children: [
|
|
25661
|
-
$U,
|
|
25662
25661
|
nW,
|
|
25663
|
-
|
|
25662
|
+
aW,
|
|
25663
|
+
lW
|
|
25664
25664
|
]
|
|
25665
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25665
|
+
}), c[49] = M, c[50] = u, c[51] = nW, c[52] = aW, c[53] = lW, c[54] = W, c[55] = uW) : uW = c[55], uW;
|
|
25666
25666
|
});
|
|
25667
25667
|
RangeSlider.displayName = Root.displayName;
|
|
25668
25668
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25713,14 +25713,14 @@ ${c}
|
|
|
25713
25713
|
}, q = (e2) => {
|
|
25714
25714
|
h && l(e2);
|
|
25715
25715
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
25716
|
-
let
|
|
25717
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
25716
|
+
let nW, rW;
|
|
25717
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (nW = () => {
|
|
25718
25718
|
h && !dequal(T, u) && l(T);
|
|
25719
|
-
},
|
|
25719
|
+
}, rW = () => {
|
|
25720
25720
|
h && !dequal(T, u) && l(T);
|
|
25721
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
25721
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = nW, r[19] = rW) : (nW = r[18], rW = r[19]);
|
|
25722
25722
|
let Z;
|
|
25723
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !==
|
|
25723
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== nW || r[31] !== rW || r[32] !== b ? (Z = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25724
25724
|
id: S,
|
|
25725
25725
|
className: W,
|
|
25726
25726
|
value: T,
|
|
@@ -25731,36 +25731,36 @@ ${c}
|
|
|
25731
25731
|
disabled: y,
|
|
25732
25732
|
onValueChange: G,
|
|
25733
25733
|
onValueCommit: q,
|
|
25734
|
-
onPointerUp:
|
|
25735
|
-
onMouseUp:
|
|
25734
|
+
onPointerUp: nW,
|
|
25735
|
+
onMouseUp: rW,
|
|
25736
25736
|
valueMap: b
|
|
25737
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
25738
|
-
let
|
|
25739
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
25737
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = nW, r[31] = rW, r[32] = b, r[33] = Z) : Z = r[33];
|
|
25738
|
+
let iW;
|
|
25739
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (iW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25740
25740
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
25741
25741
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
25742
25742
|
locale: w
|
|
25743
25743
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
25744
25744
|
locale: w
|
|
25745
25745
|
})}`
|
|
25746
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
25747
|
-
let
|
|
25748
|
-
r[39] !== Z || r[40] !==
|
|
25746
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = iW) : iW = r[38];
|
|
25747
|
+
let aW;
|
|
25748
|
+
r[39] !== Z || r[40] !== iW || r[41] !== B ? (aW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25749
25749
|
className: B,
|
|
25750
25750
|
children: [
|
|
25751
25751
|
Z,
|
|
25752
|
-
|
|
25752
|
+
iW
|
|
25753
25753
|
]
|
|
25754
|
-
}), r[39] = Z, r[40] =
|
|
25755
|
-
let
|
|
25756
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
25754
|
+
}), r[39] = Z, r[40] = iW, r[41] = B, r[42] = aW) : aW = r[42];
|
|
25755
|
+
let oW;
|
|
25756
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== aW || r[47] !== M || r[48] !== L ? (oW = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25757
25757
|
label: c,
|
|
25758
25758
|
id: S,
|
|
25759
25759
|
align: M,
|
|
25760
25760
|
className: L,
|
|
25761
25761
|
fullWidth: v,
|
|
25762
|
-
children:
|
|
25763
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
25762
|
+
children: aW
|
|
25763
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = aW, r[47] = M, r[48] = L, r[49] = oW) : oW = r[49], oW;
|
|
25764
25764
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
25765
25765
|
r.exports = u;
|
|
25766
25766
|
var c = {
|
|
@@ -29051,7 +29051,7 @@ ${c}
|
|
|
29051
29051
|
areRegExpsEqual: H,
|
|
29052
29052
|
areSetsEqual: W,
|
|
29053
29053
|
createIsNestedEqual: r2
|
|
29054
|
-
}),
|
|
29054
|
+
}), nW = Object.freeze({
|
|
29055
29055
|
areArraysEqual: O,
|
|
29056
29056
|
areDatesEqual: j,
|
|
29057
29057
|
areMapsEqual: I,
|
|
@@ -29059,40 +29059,40 @@ ${c}
|
|
|
29059
29059
|
areRegExpsEqual: H,
|
|
29060
29060
|
areSetsEqual: G,
|
|
29061
29061
|
createIsNestedEqual: r2
|
|
29062
|
-
}),
|
|
29062
|
+
}), rW = T(q);
|
|
29063
29063
|
function Z(e3, r3) {
|
|
29064
|
-
return
|
|
29064
|
+
return rW(e3, r3, void 0);
|
|
29065
29065
|
}
|
|
29066
|
-
var
|
|
29066
|
+
var iW = T(l(q, {
|
|
29067
29067
|
createIsNestedEqual: function() {
|
|
29068
29068
|
return f;
|
|
29069
29069
|
}
|
|
29070
29070
|
}));
|
|
29071
|
-
function
|
|
29072
|
-
return
|
|
29071
|
+
function aW(e3, r3) {
|
|
29072
|
+
return iW(e3, r3, void 0);
|
|
29073
29073
|
}
|
|
29074
|
-
var
|
|
29075
|
-
function
|
|
29076
|
-
return
|
|
29074
|
+
var oW = T(nW);
|
|
29075
|
+
function sW(e3, r3) {
|
|
29076
|
+
return oW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29077
29077
|
}
|
|
29078
|
-
var
|
|
29078
|
+
var cW = T(l(nW, {
|
|
29079
29079
|
createIsNestedEqual: function() {
|
|
29080
29080
|
return f;
|
|
29081
29081
|
}
|
|
29082
29082
|
}));
|
|
29083
|
-
function
|
|
29084
|
-
return
|
|
29083
|
+
function lW(e3, r3) {
|
|
29084
|
+
return cW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29085
29085
|
}
|
|
29086
|
-
function
|
|
29086
|
+
function uW(e3) {
|
|
29087
29087
|
return T(l(q, e3(q)));
|
|
29088
29088
|
}
|
|
29089
|
-
function
|
|
29090
|
-
var r3 = T(l(
|
|
29089
|
+
function dW(e3) {
|
|
29090
|
+
var r3 = T(l(nW, e3(nW)));
|
|
29091
29091
|
return (function(e4, c2, l2) {
|
|
29092
29092
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29093
29093
|
});
|
|
29094
29094
|
}
|
|
29095
|
-
e2.circularDeepEqual =
|
|
29095
|
+
e2.circularDeepEqual = sW, e2.circularShallowEqual = lW, e2.createCustomCircularEqual = dW, e2.createCustomEqual = uW, e2.deepEqual = Z, e2.sameValueZeroEqual = f, e2.shallowEqual = aW, Object.defineProperty(e2, "__esModule", {
|
|
29096
29096
|
value: true
|
|
29097
29097
|
});
|
|
29098
29098
|
}));
|
|
@@ -29118,7 +29118,7 @@ ${c}
|
|
|
29118
29118
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
29119
29119
|
Object.defineProperty(e, "__esModule", {
|
|
29120
29120
|
value: true
|
|
29121
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
29121
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = _W, 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 = lW, e.setTopLeft = dW, e.setTransform = uW, e.sortLayoutItems = fW, e.sortLayoutItemsByColRow = mW, e.sortLayoutItemsByRowCol = pW, e.synchronizeLayoutWithChildren = hW, e.validateLayout = gW, e.withLayoutItem = v;
|
|
29122
29122
|
var r = require_fast_equals(), c = l(require_react());
|
|
29123
29123
|
function l(e2) {
|
|
29124
29124
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -29223,7 +29223,7 @@ ${c}
|
|
|
29223
29223
|
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);
|
|
29224
29224
|
}
|
|
29225
29225
|
function T(e2, r2, c2, l2) {
|
|
29226
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
29226
|
+
let u2 = B(e2), d2 = h(u2), f2 = fW(e2, r2), p2 = Array(e2.length);
|
|
29227
29227
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
29228
29228
|
let h3 = y(f2[m2]);
|
|
29229
29229
|
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;
|
|
@@ -29281,7 +29281,7 @@ ${c}
|
|
|
29281
29281
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
29282
29282
|
let h2 = r2.x, _2 = r2.y;
|
|
29283
29283
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
29284
|
-
let v2 =
|
|
29284
|
+
let v2 = fW(e2, f2);
|
|
29285
29285
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
29286
29286
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
29287
29287
|
if (b2 && m2) return g(e2);
|
|
@@ -29315,61 +29315,61 @@ ${c}
|
|
|
29315
29315
|
function G(e2) {
|
|
29316
29316
|
return e2 * 100 + "%";
|
|
29317
29317
|
}
|
|
29318
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
29318
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, nW = (e2, r2, c2) => e2 < 0 ? r2 : c2, rW = (e2) => Math.max(0, e2), Z = (e2) => Math.max(0, e2), iW = (e2, r2, c2) => {
|
|
29319
29319
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29320
29320
|
return {
|
|
29321
29321
|
left: l2,
|
|
29322
29322
|
width: d2,
|
|
29323
|
-
height:
|
|
29323
|
+
height: nW(f2, e2.height, u2),
|
|
29324
29324
|
top: Z(f2)
|
|
29325
29325
|
};
|
|
29326
|
-
},
|
|
29326
|
+
}, aW = (e2, r2, c2) => {
|
|
29327
29327
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29328
29328
|
return {
|
|
29329
29329
|
top: l2,
|
|
29330
29330
|
height: d2,
|
|
29331
29331
|
width: q(e2.left, e2.width, f2, c2),
|
|
29332
|
-
left:
|
|
29332
|
+
left: rW(u2)
|
|
29333
29333
|
};
|
|
29334
|
-
},
|
|
29334
|
+
}, oW = (e2, r2, c2) => {
|
|
29335
29335
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29336
29336
|
return {
|
|
29337
29337
|
height: u2,
|
|
29338
29338
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
29339
29339
|
top: Z(l2),
|
|
29340
|
-
left:
|
|
29340
|
+
left: rW(f2)
|
|
29341
29341
|
};
|
|
29342
|
-
},
|
|
29342
|
+
}, sW = (e2, r2, c2) => {
|
|
29343
29343
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29344
29344
|
return {
|
|
29345
29345
|
width: f2,
|
|
29346
29346
|
left: u2,
|
|
29347
|
-
height:
|
|
29347
|
+
height: nW(l2, e2.height, d2),
|
|
29348
29348
|
top: Z(l2)
|
|
29349
29349
|
};
|
|
29350
|
-
},
|
|
29351
|
-
n:
|
|
29350
|
+
}, cW = {
|
|
29351
|
+
n: iW,
|
|
29352
29352
|
ne: function() {
|
|
29353
|
-
return
|
|
29353
|
+
return iW(arguments.length <= 0 ? void 0 : arguments[0], aW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29354
29354
|
},
|
|
29355
|
-
e:
|
|
29355
|
+
e: aW,
|
|
29356
29356
|
se: function() {
|
|
29357
|
-
return
|
|
29357
|
+
return sW(arguments.length <= 0 ? void 0 : arguments[0], aW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29358
29358
|
},
|
|
29359
|
-
s:
|
|
29359
|
+
s: sW,
|
|
29360
29360
|
sw: function() {
|
|
29361
|
-
return
|
|
29361
|
+
return sW(arguments.length <= 0 ? void 0 : arguments[0], oW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29362
29362
|
},
|
|
29363
|
-
w:
|
|
29363
|
+
w: oW,
|
|
29364
29364
|
nw: function() {
|
|
29365
|
-
return
|
|
29365
|
+
return iW(arguments.length <= 0 ? void 0 : arguments[0], oW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29366
29366
|
}
|
|
29367
29367
|
};
|
|
29368
|
-
function
|
|
29369
|
-
let u2 =
|
|
29368
|
+
function lW(e2, r2, c2, l2) {
|
|
29369
|
+
let u2 = cW[e2];
|
|
29370
29370
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
29371
29371
|
}
|
|
29372
|
-
function
|
|
29372
|
+
function uW(e2) {
|
|
29373
29373
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
29374
29374
|
return {
|
|
29375
29375
|
transform: d2,
|
|
@@ -29382,7 +29382,7 @@ ${c}
|
|
|
29382
29382
|
position: "absolute"
|
|
29383
29383
|
};
|
|
29384
29384
|
}
|
|
29385
|
-
function
|
|
29385
|
+
function dW(e2) {
|
|
29386
29386
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
29387
29387
|
return {
|
|
29388
29388
|
top: `${r2}px`,
|
|
@@ -29392,20 +29392,20 @@ ${c}
|
|
|
29392
29392
|
position: "absolute"
|
|
29393
29393
|
};
|
|
29394
29394
|
}
|
|
29395
|
-
function
|
|
29396
|
-
return r2 === "horizontal" ?
|
|
29395
|
+
function fW(e2, r2) {
|
|
29396
|
+
return r2 === "horizontal" ? mW(e2) : r2 === "vertical" ? pW(e2) : e2;
|
|
29397
29397
|
}
|
|
29398
|
-
function
|
|
29398
|
+
function pW(e2) {
|
|
29399
29399
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29400
29400
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
29401
29401
|
});
|
|
29402
29402
|
}
|
|
29403
|
-
function
|
|
29403
|
+
function mW(e2) {
|
|
29404
29404
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29405
29405
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
29406
29406
|
});
|
|
29407
29407
|
}
|
|
29408
|
-
function
|
|
29408
|
+
function hW(e2, r2, l2, u2, f2) {
|
|
29409
29409
|
e2 || (e2 = []);
|
|
29410
29410
|
let p2 = [];
|
|
29411
29411
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -29426,7 +29426,7 @@ ${c}
|
|
|
29426
29426
|
});
|
|
29427
29427
|
return f2 ? m2 : T(m2, u2, l2);
|
|
29428
29428
|
}
|
|
29429
|
-
function
|
|
29429
|
+
function gW(e2) {
|
|
29430
29430
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
29431
29431
|
"x",
|
|
29432
29432
|
"y",
|
|
@@ -29443,7 +29443,7 @@ ${c}
|
|
|
29443
29443
|
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})`);
|
|
29444
29444
|
}
|
|
29445
29445
|
}
|
|
29446
|
-
function
|
|
29446
|
+
function _W(e2) {
|
|
29447
29447
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
29448
29448
|
return r2 === false ? null : c2;
|
|
29449
29449
|
}
|
|
@@ -32248,7 +32248,7 @@ ${c}
|
|
|
32248
32248
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32249
32249
|
let E = useIsDragging(), O, j;
|
|
32250
32250
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
32251
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
32251
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, nW, rW, Z, iW, aW, oW, sW, cW, lW, uW, dW, fW, pW, mW, hW, gW, _W;
|
|
32252
32252
|
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) {
|
|
32253
32253
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
32254
32254
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32267,23 +32267,23 @@ ${c}
|
|
|
32267
32267
|
});
|
|
32268
32268
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
32269
32269
|
let y2 = v2;
|
|
32270
|
-
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,
|
|
32270
|
+
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, mW = "lg", r[58] === c.cells ? hW = r[59] : (hW = {
|
|
32271
32271
|
lg: c.cells
|
|
32272
|
-
}, r[58] = c.cells, r[59] =
|
|
32272
|
+
}, r[58] = c.cells, r[59] = hW), gW = L, _W = S, R = false;
|
|
32273
32273
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
32274
32274
|
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 ? [
|
|
32275
32275
|
20,
|
|
32276
32276
|
20
|
|
32277
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
32277
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, nW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (rW = (e3) => {
|
|
32278
32278
|
f || l({
|
|
32279
32279
|
...c,
|
|
32280
32280
|
cells: e3
|
|
32281
32281
|
});
|
|
32282
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
32282
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = rW) : rW = r[69], r[70] === g ? Z = r[71] : (Z = g ? {
|
|
32283
32283
|
i: g.i,
|
|
32284
32284
|
w: g.w || 2,
|
|
32285
32285
|
h: g.h || 2
|
|
32286
|
-
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (
|
|
32286
|
+
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (iW = (e3, r2, u2) => {
|
|
32287
32287
|
O.onDragStop(), r2 && l({
|
|
32288
32288
|
...c,
|
|
32289
32289
|
cells: [
|
|
@@ -32291,15 +32291,15 @@ ${c}
|
|
|
32291
32291
|
r2
|
|
32292
32292
|
]
|
|
32293
32293
|
});
|
|
32294
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
32294
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = iW) : iW = r[75], r[76] === O ? (aW = r[77], oW = r[78], sW = r[79]) : (aW = (e3, r2, c2, l2, u2) => {
|
|
32295
32295
|
O.onDragStart(u2);
|
|
32296
|
-
},
|
|
32296
|
+
}, oW = (e3, r2, c2, l2, u2) => {
|
|
32297
32297
|
O.onDragMove(u2);
|
|
32298
|
-
},
|
|
32298
|
+
}, sW = () => {
|
|
32299
32299
|
O.onDragStop();
|
|
32300
|
-
}, r[76] = O, r[77] =
|
|
32300
|
+
}, r[76] = O, r[77] = aW, r[78] = oW, r[79] = sW), cW = _temp3$2, lW = M, uW = M, dW = M, fW = M ? `.${DRAG_HANDLE}` : "noop";
|
|
32301
32301
|
let E2;
|
|
32302
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
32302
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), pW = u.filter(E2).map((r2) => {
|
|
32303
32303
|
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, {
|
|
32304
32304
|
code: r2.code,
|
|
32305
32305
|
mode: d,
|
|
@@ -32328,14 +32328,14 @@ ${c}
|
|
|
32328
32328
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32329
32329
|
children: m3
|
|
32330
32330
|
}, r2.id);
|
|
32331
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
32332
|
-
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29],
|
|
32333
|
-
let
|
|
32334
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !==
|
|
32335
|
-
breakpoint:
|
|
32336
|
-
layouts:
|
|
32337
|
-
style:
|
|
32338
|
-
cols:
|
|
32331
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = nW, r[31] = rW, r[32] = Z, r[33] = iW, r[34] = aW, r[35] = oW, r[36] = sW, r[37] = cW, r[38] = lW, r[39] = uW, r[40] = dW, r[41] = fW, r[42] = pW, r[43] = mW, r[44] = hW, r[45] = gW, r[46] = _W;
|
|
32332
|
+
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], nW = r[30], rW = r[31], Z = r[32], iW = r[33], aW = r[34], oW = r[35], sW = r[36], cW = r[37], lW = r[38], uW = r[39], dW = r[40], fW = r[41], pW = r[42], mW = r[43], hW = r[44], gW = r[45], _W = r[46];
|
|
32333
|
+
let vW;
|
|
32334
|
+
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== nW || r[91] !== rW || r[92] !== Z || r[93] !== iW || r[94] !== aW || r[95] !== oW || r[96] !== sW || r[97] !== cW || r[98] !== lW || r[99] !== uW || r[100] !== dW || r[101] !== fW || r[102] !== pW || r[103] !== mW || r[104] !== hW || r[105] !== gW || r[106] !== _W ? (vW = (0, import_jsx_runtime.jsx)(I, {
|
|
32335
|
+
breakpoint: mW,
|
|
32336
|
+
layouts: hW,
|
|
32337
|
+
style: gW,
|
|
32338
|
+
cols: _W,
|
|
32339
32339
|
allowOverlap: R,
|
|
32340
32340
|
className: z,
|
|
32341
32341
|
containerPadding: B,
|
|
@@ -32343,23 +32343,23 @@ ${c}
|
|
|
32343
32343
|
isBounded: W,
|
|
32344
32344
|
compactType: G,
|
|
32345
32345
|
preventCollision: q,
|
|
32346
|
-
rowHeight:
|
|
32347
|
-
onLayoutChange:
|
|
32346
|
+
rowHeight: nW,
|
|
32347
|
+
onLayoutChange: rW,
|
|
32348
32348
|
droppingItem: Z,
|
|
32349
|
-
onDrop:
|
|
32350
|
-
onDragStart:
|
|
32351
|
-
onDrag:
|
|
32352
|
-
onDragStop:
|
|
32353
|
-
onResizeStop:
|
|
32354
|
-
isDraggable:
|
|
32355
|
-
isDroppable:
|
|
32356
|
-
isResizable:
|
|
32357
|
-
draggableHandle:
|
|
32358
|
-
children:
|
|
32359
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] =
|
|
32360
|
-
let
|
|
32361
|
-
if (r[108] !== u || r[109] !==
|
|
32362
|
-
|
|
32349
|
+
onDrop: iW,
|
|
32350
|
+
onDragStart: aW,
|
|
32351
|
+
onDrag: oW,
|
|
32352
|
+
onDragStop: sW,
|
|
32353
|
+
onResizeStop: cW,
|
|
32354
|
+
isDraggable: lW,
|
|
32355
|
+
isDroppable: uW,
|
|
32356
|
+
isResizable: dW,
|
|
32357
|
+
draggableHandle: fW,
|
|
32358
|
+
children: pW
|
|
32359
|
+
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = nW, r[91] = rW, r[92] = Z, r[93] = iW, r[94] = aW, r[95] = oW, r[96] = sW, r[97] = cW, r[98] = lW, r[99] = uW, r[100] = dW, r[101] = fW, r[102] = pW, r[103] = mW, r[104] = hW, r[105] = gW, r[106] = _W, r[107] = vW) : vW = r[107];
|
|
32360
|
+
let yW = vW, bW, xW, SW, CW, wW, TW, EW;
|
|
32361
|
+
if (r[108] !== u || r[109] !== yW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
32362
|
+
EW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
32363
32363
|
bb0: {
|
|
32364
32364
|
let e2;
|
|
32365
32365
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -32367,14 +32367,14 @@ ${c}
|
|
|
32367
32367
|
if (f) {
|
|
32368
32368
|
if (c.bordered) {
|
|
32369
32369
|
let e4;
|
|
32370
|
-
r[127] !==
|
|
32370
|
+
r[127] !== yW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
32371
32371
|
className: "flex flex-1 flex-col items-center",
|
|
32372
32372
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
32373
32373
|
style: L,
|
|
32374
32374
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
32375
|
-
children:
|
|
32375
|
+
children: yW
|
|
32376
32376
|
})
|
|
32377
|
-
}), r[127] =
|
|
32377
|
+
}), r[127] = yW, r[128] = L, r[129] = e4) : e4 = r[129], yW = e4;
|
|
32378
32378
|
}
|
|
32379
32379
|
let e3 = m2.filter(_temp4$2), l2;
|
|
32380
32380
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -32385,9 +32385,9 @@ ${c}
|
|
|
32385
32385
|
status: e4.status,
|
|
32386
32386
|
isScrollable: false,
|
|
32387
32387
|
hidden: false
|
|
32388
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
32388
|
+
}, e4.id), r[130] = d, r[131] = l2), EW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32389
32389
|
children: [
|
|
32390
|
-
|
|
32390
|
+
yW,
|
|
32391
32391
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32392
32392
|
className: "hidden",
|
|
32393
32393
|
children: e3.map(l2)
|
|
@@ -32398,31 +32398,31 @@ ${c}
|
|
|
32398
32398
|
}
|
|
32399
32399
|
if (c.bordered) {
|
|
32400
32400
|
let e3;
|
|
32401
|
-
r[132] ===
|
|
32401
|
+
r[132] === yW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
32402
32402
|
className: "h-full overflow-auto",
|
|
32403
|
-
children:
|
|
32404
|
-
}), r[132] =
|
|
32403
|
+
children: yW
|
|
32404
|
+
}), r[132] = yW, r[133] = e3);
|
|
32405
32405
|
let c2;
|
|
32406
32406
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32407
32407
|
style: L,
|
|
32408
32408
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
32409
32409
|
children: e3
|
|
32410
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
32410
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], yW = c2;
|
|
32411
32411
|
}
|
|
32412
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
32412
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (TW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
32413
32413
|
layout: c,
|
|
32414
32414
|
setLayout: l,
|
|
32415
32415
|
isLocked: v,
|
|
32416
32416
|
setIsLocked: y
|
|
32417
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
32417
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = TW) : TW = r[140];
|
|
32418
32418
|
let g2;
|
|
32419
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32419
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (CW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = CW, r[142] = g2) : (CW = r[141], g2 = r[142]), r[143] === yW ? wW = r[144] : (wW = (0, import_jsx_runtime.jsx)("div", {
|
|
32420
32420
|
className: g2,
|
|
32421
|
-
children:
|
|
32422
|
-
}), r[143] =
|
|
32421
|
+
children: yW
|
|
32422
|
+
}), r[143] = yW, r[144] = wW), bW = "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") ? (xW = (0, import_jsx_runtime.jsx)("div", {
|
|
32423
32423
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
32424
32424
|
children: "Outputs"
|
|
32425
|
-
}), r[145] =
|
|
32425
|
+
}), r[145] = xW) : xW = r[145];
|
|
32426
32426
|
let b2;
|
|
32427
32427
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
32428
32428
|
draggable: true,
|
|
@@ -32447,34 +32447,34 @@ ${c}
|
|
|
32447
32447
|
status: e3.status,
|
|
32448
32448
|
hidden: false
|
|
32449
32449
|
})
|
|
32450
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
32451
|
-
}
|
|
32452
|
-
r[108] = u, r[109] =
|
|
32453
|
-
} else
|
|
32454
|
-
if (
|
|
32455
|
-
let
|
|
32456
|
-
r[150] !==
|
|
32457
|
-
className: _W,
|
|
32458
|
-
children: [
|
|
32459
|
-
vW,
|
|
32460
|
-
yW
|
|
32461
|
-
]
|
|
32462
|
-
}), r[150] = _W, r[151] = vW, r[152] = yW, r[153] = wW) : wW = r[153];
|
|
32463
|
-
let TW;
|
|
32464
|
-
r[154] !== bW || r[155] !== xW || r[156] !== wW ? (TW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32450
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], SW = m2.map(b2);
|
|
32451
|
+
}
|
|
32452
|
+
r[108] = u, r[109] = yW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = bW, r[118] = xW, r[119] = SW, r[120] = CW, r[121] = wW, r[122] = TW, r[123] = EW, r[124] = yW;
|
|
32453
|
+
} else bW = r[117], xW = r[118], SW = r[119], CW = r[120], wW = r[121], TW = r[122], EW = r[123], yW = r[124];
|
|
32454
|
+
if (EW !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return EW;
|
|
32455
|
+
let DW;
|
|
32456
|
+
r[150] !== bW || r[151] !== xW || r[152] !== SW ? (DW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32465
32457
|
className: bW,
|
|
32466
32458
|
children: [
|
|
32467
32459
|
xW,
|
|
32468
|
-
|
|
32460
|
+
SW
|
|
32469
32461
|
]
|
|
32470
|
-
}), r[
|
|
32471
|
-
let
|
|
32472
|
-
|
|
32462
|
+
}), r[150] = bW, r[151] = xW, r[152] = SW, r[153] = DW) : DW = r[153];
|
|
32463
|
+
let OW;
|
|
32464
|
+
r[154] !== CW || r[155] !== wW || r[156] !== DW ? (OW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32465
|
+
className: CW,
|
|
32473
32466
|
children: [
|
|
32474
|
-
|
|
32475
|
-
|
|
32467
|
+
wW,
|
|
32468
|
+
DW
|
|
32476
32469
|
]
|
|
32477
|
-
}), r[
|
|
32470
|
+
}), r[154] = CW, r[155] = wW, r[156] = DW, r[157] = OW) : OW = r[157];
|
|
32471
|
+
let kW;
|
|
32472
|
+
return r[158] !== TW || r[159] !== OW ? (kW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32473
|
+
children: [
|
|
32474
|
+
TW,
|
|
32475
|
+
OW
|
|
32476
|
+
]
|
|
32477
|
+
}), r[158] = TW, r[159] = OW, r[160] = kW) : kW = r[160], kW;
|
|
32478
32478
|
};
|
|
32479
32479
|
var GridCell = (0, import_react.memo)((e) => {
|
|
32480
32480
|
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;
|
|
@@ -32775,25 +32775,25 @@ ${c}
|
|
|
32775
32775
|
G
|
|
32776
32776
|
]
|
|
32777
32777
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
32778
|
-
let
|
|
32779
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32778
|
+
let nW;
|
|
32779
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (nW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32780
32780
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32781
|
-
}), r[35] =
|
|
32782
|
-
let
|
|
32783
|
-
r[36] === l ?
|
|
32781
|
+
}), r[35] = nW) : nW = r[35];
|
|
32782
|
+
let rW;
|
|
32783
|
+
r[36] === l ? rW = r[37] : (rW = (0, import_jsx_runtime.jsx)(X, {
|
|
32784
32784
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
32785
32785
|
onClick: () => l()
|
|
32786
|
-
}), r[36] = l, r[37] =
|
|
32786
|
+
}), r[36] = l, r[37] = rW);
|
|
32787
32787
|
let Z;
|
|
32788
|
-
return r[38] !== I || r[39] !== q || r[40] !==
|
|
32788
|
+
return r[38] !== I || r[39] !== q || r[40] !== rW || r[41] !== w ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
32789
32789
|
className: w,
|
|
32790
32790
|
children: [
|
|
32791
32791
|
I,
|
|
32792
32792
|
q,
|
|
32793
|
-
|
|
32794
|
-
|
|
32793
|
+
nW,
|
|
32794
|
+
rW
|
|
32795
32795
|
]
|
|
32796
|
-
}), r[38] = I, r[39] = q, r[40] =
|
|
32796
|
+
}), r[38] = I, r[39] = q, r[40] = rW, r[41] = w, r[42] = Z) : Z = r[42], Z;
|
|
32797
32797
|
};
|
|
32798
32798
|
function isSidebarCell(e) {
|
|
32799
32799
|
var _a3;
|
|
@@ -34797,28 +34797,28 @@ ${c}
|
|
|
34797
34797
|
}, [
|
|
34798
34798
|
T,
|
|
34799
34799
|
M
|
|
34800
|
-
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r),
|
|
34800
|
+
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r), nW = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34801
34801
|
j
|
|
34802
|
-
]),
|
|
34802
|
+
]), rW = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers: iW, measuringScheduled: aW } = useDroppableMeasuring(nW, {
|
|
34803
34803
|
dragging: w,
|
|
34804
34804
|
dependencies: [
|
|
34805
34805
|
O.x,
|
|
34806
34806
|
O.y
|
|
34807
34807
|
],
|
|
34808
|
-
config:
|
|
34809
|
-
}),
|
|
34808
|
+
config: rW.droppable
|
|
34809
|
+
}), oW = useCachedNode(E, T), sW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34810
34810
|
H
|
|
34811
|
-
]),
|
|
34811
|
+
]), cW = zW(), lW = useInitialRect(oW, rW.draggable.measure);
|
|
34812
34812
|
useLayoutShiftScrollCompensation({
|
|
34813
34813
|
activeNode: T == null ? null : E.get(T),
|
|
34814
|
-
config:
|
|
34815
|
-
initialRect:
|
|
34816
|
-
measure:
|
|
34814
|
+
config: cW.layoutShiftCompensation,
|
|
34815
|
+
initialRect: lW,
|
|
34816
|
+
measure: rW.draggable.measure
|
|
34817
34817
|
});
|
|
34818
|
-
let
|
|
34818
|
+
let uW = useRect(oW, rW.draggable.measure, lW), dW = useRect(oW ? oW.parentElement : null), fW = (0, import_react.useRef)({
|
|
34819
34819
|
activatorEvent: null,
|
|
34820
34820
|
active: null,
|
|
34821
|
-
activeNode:
|
|
34821
|
+
activeNode: oW,
|
|
34822
34822
|
collisionRect: null,
|
|
34823
34823
|
collisions: null,
|
|
34824
34824
|
droppableRects: Z,
|
|
@@ -34829,45 +34829,45 @@ ${c}
|
|
|
34829
34829
|
over: null,
|
|
34830
34830
|
scrollableAncestors: [],
|
|
34831
34831
|
scrollAdjustedTranslate: null
|
|
34832
|
-
}),
|
|
34833
|
-
measure:
|
|
34834
|
-
}),
|
|
34832
|
+
}), pW = j.getNodeFor((_a3 = fW.current.over) == null ? void 0 : _a3.id), mW = useDragOverlayMeasuring({
|
|
34833
|
+
measure: rW.dragOverlay.measure
|
|
34834
|
+
}), hW = mW.nodeRef.current ?? oW, gW = w ? mW.rect ?? uW : null, _W = !!(mW.nodeRef.current && mW.rect), vW = useRectDelta(_W ? null : uW), yW = useWindowRect(hW ? getWindow(hW) : null), bW = useScrollableAncestors(w ? pW ?? oW : null), xW = useRects(bW), SW = applyModifiers(m, {
|
|
34835
34835
|
transform: {
|
|
34836
|
-
x: O.x -
|
|
34837
|
-
y: O.y -
|
|
34836
|
+
x: O.x - vW.x,
|
|
34837
|
+
y: O.y - vW.y,
|
|
34838
34838
|
scaleX: 1,
|
|
34839
34839
|
scaleY: 1
|
|
34840
34840
|
},
|
|
34841
34841
|
activatorEvent: H,
|
|
34842
34842
|
active: L,
|
|
34843
|
-
activeNodeRect:
|
|
34844
|
-
containerNodeRect:
|
|
34845
|
-
draggingNodeRect:
|
|
34846
|
-
over:
|
|
34847
|
-
overlayNodeRect:
|
|
34848
|
-
scrollableAncestors:
|
|
34849
|
-
scrollableAncestorRects:
|
|
34850
|
-
windowRect:
|
|
34851
|
-
}),
|
|
34852
|
-
|
|
34853
|
-
]),
|
|
34843
|
+
activeNodeRect: uW,
|
|
34844
|
+
containerNodeRect: dW,
|
|
34845
|
+
draggingNodeRect: gW,
|
|
34846
|
+
over: fW.current.over,
|
|
34847
|
+
overlayNodeRect: mW.rect,
|
|
34848
|
+
scrollableAncestors: bW,
|
|
34849
|
+
scrollableAncestorRects: xW,
|
|
34850
|
+
windowRect: yW
|
|
34851
|
+
}), CW = sW ? add(sW, O) : null, wW = useScrollOffsets(bW), TW = useScrollOffsetsDelta(wW), EW = useScrollOffsetsDelta(wW, [
|
|
34852
|
+
uW
|
|
34853
|
+
]), DW = add(SW, TW), OW = gW ? getAdjustedRect(gW, SW) : null, kW = L && OW ? f({
|
|
34854
34854
|
active: L,
|
|
34855
|
-
collisionRect:
|
|
34855
|
+
collisionRect: OW,
|
|
34856
34856
|
droppableRects: Z,
|
|
34857
|
-
droppableContainers:
|
|
34858
|
-
pointerCoordinates:
|
|
34859
|
-
}) : null,
|
|
34857
|
+
droppableContainers: nW,
|
|
34858
|
+
pointerCoordinates: CW
|
|
34859
|
+
}) : null, AW = getFirstCollision(kW, "id"), [jW, MW] = (0, import_react.useState)(null), NW = adjustScale(_W ? SW : add(SW, EW), (jW == null ? void 0 : jW.rect) ?? null, uW), PW = (0, import_react.useRef)(null), FW = (0, import_react.useCallback)((e2, r2) => {
|
|
34860
34860
|
let { sensor: c2, options: l2 } = r2;
|
|
34861
34861
|
if (R.current == null) return;
|
|
34862
34862
|
let u2 = E.get(R.current);
|
|
34863
34863
|
if (!u2) return;
|
|
34864
34864
|
let d2 = e2.nativeEvent;
|
|
34865
|
-
|
|
34865
|
+
PW.current = new c2({
|
|
34866
34866
|
active: R.current,
|
|
34867
34867
|
activeNode: u2,
|
|
34868
34868
|
event: d2,
|
|
34869
34869
|
options: l2,
|
|
34870
|
-
context:
|
|
34870
|
+
context: fW,
|
|
34871
34871
|
onAbort(e3) {
|
|
34872
34872
|
if (!E.get(e3)) return;
|
|
34873
34873
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -34912,7 +34912,7 @@ ${c}
|
|
|
34912
34912
|
}), v({
|
|
34913
34913
|
type: "onDragStart",
|
|
34914
34914
|
event: u3
|
|
34915
|
-
}), B(
|
|
34915
|
+
}), B(PW.current), W(d2);
|
|
34916
34916
|
});
|
|
34917
34917
|
},
|
|
34918
34918
|
onMove(e3) {
|
|
@@ -34926,7 +34926,7 @@ ${c}
|
|
|
34926
34926
|
});
|
|
34927
34927
|
function f2(e3) {
|
|
34928
34928
|
return async function() {
|
|
34929
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
34929
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = fW.current, f3 = null;
|
|
34930
34930
|
if (r3 && u3) {
|
|
34931
34931
|
let { cancelDrop: p2 } = G.current;
|
|
34932
34932
|
f3 = {
|
|
@@ -34940,7 +34940,7 @@ ${c}
|
|
|
34940
34940
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34941
34941
|
_({
|
|
34942
34942
|
type: e3
|
|
34943
|
-
}), S(Status.Uninitialized),
|
|
34943
|
+
}), S(Status.Uninitialized), MW(null), B(null), W(null), PW.current = null;
|
|
34944
34944
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
34945
34945
|
if (f3) {
|
|
34946
34946
|
let e4 = G.current[r4];
|
|
@@ -34954,7 +34954,7 @@ ${c}
|
|
|
34954
34954
|
}
|
|
34955
34955
|
}, [
|
|
34956
34956
|
E
|
|
34957
|
-
]),
|
|
34957
|
+
]), IW = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
34958
34958
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
34959
34959
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
34960
34960
|
let f2 = {
|
|
@@ -34962,26 +34962,26 @@ ${c}
|
|
|
34962
34962
|
};
|
|
34963
34963
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
34964
34964
|
capturedBy: r2.sensor
|
|
34965
|
-
}, R.current = l2,
|
|
34965
|
+
}, R.current = l2, FW(c2, r2));
|
|
34966
34966
|
}, [
|
|
34967
34967
|
E,
|
|
34968
|
-
|
|
34968
|
+
FW
|
|
34969
34969
|
]));
|
|
34970
34970
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
34971
|
-
|
|
34971
|
+
uW && b === Status.Initializing && S(Status.Initialized);
|
|
34972
34972
|
}, [
|
|
34973
|
-
|
|
34973
|
+
uW,
|
|
34974
34974
|
b
|
|
34975
34975
|
]), (0, import_react.useEffect)(() => {
|
|
34976
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
34976
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = fW.current;
|
|
34977
34977
|
if (!r2 || !c2) return;
|
|
34978
34978
|
let d2 = {
|
|
34979
34979
|
active: r2,
|
|
34980
34980
|
activatorEvent: c2,
|
|
34981
34981
|
collisions: l2,
|
|
34982
34982
|
delta: {
|
|
34983
|
-
x:
|
|
34984
|
-
y:
|
|
34983
|
+
x: DW.x,
|
|
34984
|
+
y: DW.y
|
|
34985
34985
|
},
|
|
34986
34986
|
over: u2
|
|
34987
34987
|
};
|
|
@@ -34992,12 +34992,12 @@ ${c}
|
|
|
34992
34992
|
});
|
|
34993
34993
|
});
|
|
34994
34994
|
}, [
|
|
34995
|
-
|
|
34996
|
-
|
|
34995
|
+
DW.x,
|
|
34996
|
+
DW.y
|
|
34997
34997
|
]), (0, import_react.useEffect)(() => {
|
|
34998
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
34998
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = fW.current;
|
|
34999
34999
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
35000
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
35000
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(AW), p2 = f2 && f2.rect.current ? {
|
|
35001
35001
|
id: f2.id,
|
|
35002
35002
|
rect: f2.rect.current,
|
|
35003
35003
|
data: f2.data,
|
|
@@ -35013,127 +35013,127 @@ ${c}
|
|
|
35013
35013
|
over: p2
|
|
35014
35014
|
};
|
|
35015
35015
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
35016
|
-
|
|
35016
|
+
MW(p2), d2 == null ? void 0 : d2(m2), v({
|
|
35017
35017
|
type: "onDragOver",
|
|
35018
35018
|
event: m2
|
|
35019
35019
|
});
|
|
35020
35020
|
});
|
|
35021
35021
|
}, [
|
|
35022
|
-
|
|
35022
|
+
AW
|
|
35023
35023
|
]), useIsomorphicLayoutEffect(() => {
|
|
35024
|
-
|
|
35024
|
+
fW.current = {
|
|
35025
35025
|
activatorEvent: H,
|
|
35026
35026
|
active: L,
|
|
35027
|
-
activeNode:
|
|
35028
|
-
collisionRect:
|
|
35029
|
-
collisions:
|
|
35027
|
+
activeNode: oW,
|
|
35028
|
+
collisionRect: OW,
|
|
35029
|
+
collisions: kW,
|
|
35030
35030
|
droppableRects: Z,
|
|
35031
35031
|
draggableNodes: E,
|
|
35032
|
-
draggingNode:
|
|
35033
|
-
draggingNodeRect:
|
|
35032
|
+
draggingNode: hW,
|
|
35033
|
+
draggingNodeRect: gW,
|
|
35034
35034
|
droppableContainers: j,
|
|
35035
|
-
over:
|
|
35036
|
-
scrollableAncestors:
|
|
35037
|
-
scrollAdjustedTranslate:
|
|
35035
|
+
over: jW,
|
|
35036
|
+
scrollableAncestors: bW,
|
|
35037
|
+
scrollAdjustedTranslate: DW
|
|
35038
35038
|
}, I.current = {
|
|
35039
|
-
initial:
|
|
35040
|
-
translated:
|
|
35039
|
+
initial: gW,
|
|
35040
|
+
translated: OW
|
|
35041
35041
|
};
|
|
35042
35042
|
}, [
|
|
35043
35043
|
L,
|
|
35044
|
-
|
|
35045
|
-
|
|
35046
|
-
|
|
35044
|
+
oW,
|
|
35045
|
+
kW,
|
|
35046
|
+
OW,
|
|
35047
35047
|
E,
|
|
35048
|
-
|
|
35049
|
-
|
|
35048
|
+
hW,
|
|
35049
|
+
gW,
|
|
35050
35050
|
Z,
|
|
35051
35051
|
j,
|
|
35052
|
-
|
|
35053
|
-
|
|
35054
|
-
|
|
35052
|
+
jW,
|
|
35053
|
+
bW,
|
|
35054
|
+
DW
|
|
35055
35055
|
]), useAutoScroller({
|
|
35056
|
-
...
|
|
35056
|
+
...cW,
|
|
35057
35057
|
delta: O,
|
|
35058
|
-
draggingRect:
|
|
35059
|
-
pointerCoordinates:
|
|
35060
|
-
scrollableAncestors:
|
|
35061
|
-
scrollableAncestorRects:
|
|
35058
|
+
draggingRect: OW,
|
|
35059
|
+
pointerCoordinates: CW,
|
|
35060
|
+
scrollableAncestors: bW,
|
|
35061
|
+
scrollableAncestorRects: xW
|
|
35062
35062
|
});
|
|
35063
|
-
let
|
|
35063
|
+
let LW = (0, import_react.useMemo)(() => ({
|
|
35064
35064
|
active: L,
|
|
35065
|
-
activeNode:
|
|
35066
|
-
activeNodeRect:
|
|
35065
|
+
activeNode: oW,
|
|
35066
|
+
activeNodeRect: uW,
|
|
35067
35067
|
activatorEvent: H,
|
|
35068
|
-
collisions:
|
|
35069
|
-
containerNodeRect:
|
|
35070
|
-
dragOverlay:
|
|
35068
|
+
collisions: kW,
|
|
35069
|
+
containerNodeRect: dW,
|
|
35070
|
+
dragOverlay: mW,
|
|
35071
35071
|
draggableNodes: E,
|
|
35072
35072
|
droppableContainers: j,
|
|
35073
35073
|
droppableRects: Z,
|
|
35074
|
-
over:
|
|
35075
|
-
measureDroppableContainers:
|
|
35076
|
-
scrollableAncestors:
|
|
35077
|
-
scrollableAncestorRects:
|
|
35078
|
-
measuringConfiguration:
|
|
35079
|
-
measuringScheduled:
|
|
35080
|
-
windowRect:
|
|
35074
|
+
over: jW,
|
|
35075
|
+
measureDroppableContainers: iW,
|
|
35076
|
+
scrollableAncestors: bW,
|
|
35077
|
+
scrollableAncestorRects: xW,
|
|
35078
|
+
measuringConfiguration: rW,
|
|
35079
|
+
measuringScheduled: aW,
|
|
35080
|
+
windowRect: yW
|
|
35081
35081
|
}), [
|
|
35082
35082
|
L,
|
|
35083
|
-
|
|
35084
|
-
|
|
35083
|
+
oW,
|
|
35084
|
+
uW,
|
|
35085
35085
|
H,
|
|
35086
|
-
|
|
35087
|
-
cW,
|
|
35086
|
+
kW,
|
|
35088
35087
|
dW,
|
|
35088
|
+
mW,
|
|
35089
35089
|
E,
|
|
35090
35090
|
j,
|
|
35091
35091
|
Z,
|
|
35092
|
-
|
|
35093
|
-
|
|
35094
|
-
|
|
35095
|
-
|
|
35096
|
-
|
|
35097
|
-
|
|
35098
|
-
|
|
35099
|
-
]),
|
|
35092
|
+
jW,
|
|
35093
|
+
iW,
|
|
35094
|
+
bW,
|
|
35095
|
+
xW,
|
|
35096
|
+
rW,
|
|
35097
|
+
aW,
|
|
35098
|
+
yW
|
|
35099
|
+
]), RW = (0, import_react.useMemo)(() => ({
|
|
35100
35100
|
activatorEvent: H,
|
|
35101
|
-
activators:
|
|
35101
|
+
activators: IW,
|
|
35102
35102
|
active: L,
|
|
35103
|
-
activeNodeRect:
|
|
35103
|
+
activeNodeRect: uW,
|
|
35104
35104
|
ariaDescribedById: {
|
|
35105
35105
|
draggable: q
|
|
35106
35106
|
},
|
|
35107
35107
|
dispatch: _,
|
|
35108
35108
|
draggableNodes: E,
|
|
35109
|
-
over:
|
|
35110
|
-
measureDroppableContainers:
|
|
35109
|
+
over: jW,
|
|
35110
|
+
measureDroppableContainers: iW
|
|
35111
35111
|
}), [
|
|
35112
35112
|
H,
|
|
35113
|
-
|
|
35113
|
+
IW,
|
|
35114
35114
|
L,
|
|
35115
|
-
|
|
35115
|
+
uW,
|
|
35116
35116
|
_,
|
|
35117
35117
|
q,
|
|
35118
35118
|
E,
|
|
35119
|
-
|
|
35120
|
-
|
|
35119
|
+
jW,
|
|
35120
|
+
iW
|
|
35121
35121
|
]);
|
|
35122
35122
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
35123
35123
|
value: y
|
|
35124
35124
|
}, import_react.createElement(InternalContext.Provider, {
|
|
35125
|
-
value:
|
|
35125
|
+
value: RW
|
|
35126
35126
|
}, import_react.createElement(PublicContext.Provider, {
|
|
35127
|
-
value:
|
|
35127
|
+
value: LW
|
|
35128
35128
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
35129
|
-
value:
|
|
35129
|
+
value: NW
|
|
35130
35130
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
35131
35131
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35132
35132
|
})), import_react.createElement(Accessibility, {
|
|
35133
35133
|
...c,
|
|
35134
35134
|
hiddenTextDescribedById: q
|
|
35135
35135
|
}));
|
|
35136
|
-
function
|
|
35136
|
+
function zW() {
|
|
35137
35137
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
35138
35138
|
return typeof l == "object" ? {
|
|
35139
35139
|
...l,
|
|
@@ -35661,7 +35661,7 @@ ${c}
|
|
|
35661
35661
|
updateMeasurementsFor: I,
|
|
35662
35662
|
...m
|
|
35663
35663
|
}
|
|
35664
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
35664
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: nW, listeners: rW, isDragging: Z, over: iW, setActivatorNodeRef: aW, transform: oW } = useDraggable({
|
|
35665
35665
|
id: f,
|
|
35666
35666
|
data: M,
|
|
35667
35667
|
attributes: {
|
|
@@ -35669,60 +35669,60 @@ ${c}
|
|
|
35669
35669
|
...c
|
|
35670
35670
|
},
|
|
35671
35671
|
disabled: O.draggable
|
|
35672
|
-
}),
|
|
35672
|
+
}), sW = useCombinedRefs(B, nW), cW = !!H, lW = cW && !b && isValidIndex(v) && isValidIndex(w), uW = !T && Z, dW = lW ? (uW && lW ? oW : null) ?? (p ?? E)({
|
|
35673
35673
|
rects: S,
|
|
35674
35674
|
activeNodeRect: G,
|
|
35675
35675
|
activeIndex: v,
|
|
35676
35676
|
overIndex: w,
|
|
35677
35677
|
index: j
|
|
35678
|
-
}) : null,
|
|
35678
|
+
}) : null, fW = isValidIndex(v) && isValidIndex(w) ? d({
|
|
35679
35679
|
id: f,
|
|
35680
35680
|
items: g,
|
|
35681
35681
|
activeIndex: v,
|
|
35682
35682
|
overIndex: w
|
|
35683
|
-
}) : j,
|
|
35684
|
-
activeId:
|
|
35683
|
+
}) : j, pW = H == null ? void 0 : H.id, mW = (0, import_react.useRef)({
|
|
35684
|
+
activeId: pW,
|
|
35685
35685
|
items: g,
|
|
35686
|
-
newIndex:
|
|
35686
|
+
newIndex: fW,
|
|
35687
35687
|
containerId: _
|
|
35688
|
-
}),
|
|
35688
|
+
}), hW = g !== mW.current.items, gW = r({
|
|
35689
35689
|
active: H,
|
|
35690
35690
|
containerId: _,
|
|
35691
35691
|
isDragging: Z,
|
|
35692
|
-
isSorting:
|
|
35692
|
+
isSorting: cW,
|
|
35693
35693
|
id: f,
|
|
35694
35694
|
index: j,
|
|
35695
35695
|
items: g,
|
|
35696
|
-
newIndex:
|
|
35697
|
-
previousItems:
|
|
35698
|
-
previousContainerId:
|
|
35696
|
+
newIndex: mW.current.newIndex,
|
|
35697
|
+
previousItems: mW.current.items,
|
|
35698
|
+
previousContainerId: mW.current.containerId,
|
|
35699
35699
|
transition: h,
|
|
35700
|
-
wasDragging:
|
|
35701
|
-
}),
|
|
35702
|
-
disabled: !
|
|
35700
|
+
wasDragging: mW.current.activeId != null
|
|
35701
|
+
}), _W = useDerivedTransform({
|
|
35702
|
+
disabled: !gW,
|
|
35703
35703
|
index: j,
|
|
35704
35704
|
node: R,
|
|
35705
35705
|
rect: L
|
|
35706
35706
|
});
|
|
35707
35707
|
return (0, import_react.useEffect)(() => {
|
|
35708
|
-
|
|
35708
|
+
cW && mW.current.newIndex !== fW && (mW.current.newIndex = fW), _ !== mW.current.containerId && (mW.current.containerId = _), g !== mW.current.items && (mW.current.items = g);
|
|
35709
35709
|
}, [
|
|
35710
|
-
|
|
35711
|
-
|
|
35710
|
+
cW,
|
|
35711
|
+
fW,
|
|
35712
35712
|
_,
|
|
35713
35713
|
g
|
|
35714
35714
|
]), (0, import_react.useEffect)(() => {
|
|
35715
|
-
if (
|
|
35716
|
-
if (
|
|
35717
|
-
|
|
35715
|
+
if (pW === mW.current.activeId) return;
|
|
35716
|
+
if (pW != null && mW.current.activeId == null) {
|
|
35717
|
+
mW.current.activeId = pW;
|
|
35718
35718
|
return;
|
|
35719
35719
|
}
|
|
35720
35720
|
let e2 = setTimeout(() => {
|
|
35721
|
-
|
|
35721
|
+
mW.current.activeId = pW;
|
|
35722
35722
|
}, 50);
|
|
35723
35723
|
return () => clearTimeout(e2);
|
|
35724
35724
|
}, [
|
|
35725
|
-
|
|
35725
|
+
pW
|
|
35726
35726
|
]), {
|
|
35727
35727
|
active: H,
|
|
35728
35728
|
activeIndex: v,
|
|
@@ -35730,25 +35730,25 @@ ${c}
|
|
|
35730
35730
|
data: M,
|
|
35731
35731
|
rect: L,
|
|
35732
35732
|
index: j,
|
|
35733
|
-
newIndex:
|
|
35733
|
+
newIndex: fW,
|
|
35734
35734
|
items: g,
|
|
35735
35735
|
isOver: z,
|
|
35736
|
-
isSorting:
|
|
35736
|
+
isSorting: cW,
|
|
35737
35737
|
isDragging: Z,
|
|
35738
|
-
listeners:
|
|
35738
|
+
listeners: rW,
|
|
35739
35739
|
node: R,
|
|
35740
35740
|
overIndex: w,
|
|
35741
|
-
over:
|
|
35742
|
-
setNodeRef:
|
|
35743
|
-
setActivatorNodeRef:
|
|
35741
|
+
over: iW,
|
|
35742
|
+
setNodeRef: sW,
|
|
35743
|
+
setActivatorNodeRef: aW,
|
|
35744
35744
|
setDroppableNodeRef: B,
|
|
35745
|
-
setDraggableNodeRef:
|
|
35746
|
-
transform:
|
|
35747
|
-
transition:
|
|
35745
|
+
setDraggableNodeRef: nW,
|
|
35746
|
+
transform: _W ?? dW,
|
|
35747
|
+
transition: vW()
|
|
35748
35748
|
};
|
|
35749
|
-
function
|
|
35750
|
-
if (
|
|
35751
|
-
if (!(
|
|
35749
|
+
function vW() {
|
|
35750
|
+
if (_W || hW && mW.current.newIndex === j) return disabledTransition;
|
|
35751
|
+
if (!(uW && !isKeyboardEvent(W) || !h) && (cW || gW)) return CSS$1.Transition.toString({
|
|
35752
35752
|
...h,
|
|
35753
35753
|
property: transitionProperty
|
|
35754
35754
|
});
|
|
@@ -36048,15 +36048,15 @@ ${c}
|
|
|
36048
36048
|
G
|
|
36049
36049
|
]
|
|
36050
36050
|
}), r[35] = c.id, r[36] = h, r[37] = y, r[38] = b, r[39] = I, r[40] = z, r[41] = B, r[42] = H, r[43] = W, r[44] = G, r[45] = q) : q = r[45];
|
|
36051
|
-
let
|
|
36052
|
-
if (!v && !g) return
|
|
36053
|
-
let
|
|
36054
|
-
r[46] ===
|
|
36051
|
+
let nW = q;
|
|
36052
|
+
if (!v && !g) return nW;
|
|
36053
|
+
let rW;
|
|
36054
|
+
r[46] === nW ? rW = r[47] : (rW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
36055
36055
|
asChild: true,
|
|
36056
|
-
children:
|
|
36057
|
-
}), r[46] =
|
|
36058
|
-
let
|
|
36059
|
-
r[48] === v ?
|
|
36056
|
+
children: nW
|
|
36057
|
+
}), r[46] = nW, r[47] = rW);
|
|
36058
|
+
let Z;
|
|
36059
|
+
r[48] === v ? Z = r[49] : (Z = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36060
36060
|
onSelect: v,
|
|
36061
36061
|
children: [
|
|
36062
36062
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -36064,11 +36064,11 @@ ${c}
|
|
|
36064
36064
|
}),
|
|
36065
36065
|
"Add cell"
|
|
36066
36066
|
]
|
|
36067
|
-
}), r[48] = v, r[49] =
|
|
36068
|
-
let
|
|
36069
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
36070
|
-
let
|
|
36071
|
-
r[51] === g ?
|
|
36067
|
+
}), r[48] = v, r[49] = Z);
|
|
36068
|
+
let iW;
|
|
36069
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = iW) : iW = r[50];
|
|
36070
|
+
let aW;
|
|
36071
|
+
r[51] === g ? aW = r[52] : (aW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36072
36072
|
variant: "danger",
|
|
36073
36073
|
onSelect: g,
|
|
36074
36074
|
children: [
|
|
@@ -36077,22 +36077,22 @@ ${c}
|
|
|
36077
36077
|
}),
|
|
36078
36078
|
"Delete cell"
|
|
36079
36079
|
]
|
|
36080
|
-
}), r[51] = g, r[52] =
|
|
36081
|
-
let
|
|
36082
|
-
r[53] !==
|
|
36080
|
+
}), r[51] = g, r[52] = aW);
|
|
36081
|
+
let oW;
|
|
36082
|
+
r[53] !== Z || r[54] !== aW ? (oW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
36083
36083
|
children: [
|
|
36084
|
-
|
|
36085
|
-
|
|
36086
|
-
|
|
36084
|
+
Z,
|
|
36085
|
+
iW,
|
|
36086
|
+
aW
|
|
36087
36087
|
]
|
|
36088
|
-
}), r[53] =
|
|
36089
|
-
let
|
|
36090
|
-
return r[56] !==
|
|
36088
|
+
}), r[53] = Z, r[54] = aW, r[55] = oW) : oW = r[55];
|
|
36089
|
+
let sW;
|
|
36090
|
+
return r[56] !== rW || r[57] !== oW ? (sW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
36091
36091
|
children: [
|
|
36092
|
-
|
|
36093
|
-
|
|
36092
|
+
rW,
|
|
36093
|
+
oW
|
|
36094
36094
|
]
|
|
36095
|
-
}), r[56] =
|
|
36095
|
+
}), r[56] = rW, r[57] = oW, r[58] = sW) : sW = r[58], sW;
|
|
36096
36096
|
}, InsertCellLine = (e) => {
|
|
36097
36097
|
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;
|
|
36098
36098
|
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);
|
|
@@ -36146,10 +36146,10 @@ ${c}
|
|
|
36146
36146
|
...B,
|
|
36147
36147
|
...h
|
|
36148
36148
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
36149
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
36150
|
-
r[25] !== l || r[26] !==
|
|
36151
|
-
let
|
|
36152
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
36149
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", nW = w && !T && "opacity-35", rW = T && "opacity-95 shadow-lg", Z;
|
|
36150
|
+
r[25] !== l || r[26] !== nW || r[27] !== rW || r[28] !== q ? (Z = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, nW, rW, l), r[25] = l, r[26] = nW, r[27] = rW, r[28] = q, r[29] = Z) : Z = r[29];
|
|
36151
|
+
let iW;
|
|
36152
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (iW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
36153
36153
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
36154
36154
|
style: {
|
|
36155
36155
|
transform: `scale(${I})`,
|
|
@@ -36164,14 +36164,14 @@ ${c}
|
|
|
36164
36164
|
status: c.status,
|
|
36165
36165
|
output: c.output
|
|
36166
36166
|
})
|
|
36167
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
36168
|
-
let
|
|
36169
|
-
r[37] === z ?
|
|
36167
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = iW) : iW = r[36];
|
|
36168
|
+
let aW;
|
|
36169
|
+
r[37] === z ? aW = r[38] : (aW = z && (0, import_jsx_runtime.jsx)("div", {
|
|
36170
36170
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
36171
36171
|
"aria-hidden": true
|
|
36172
|
-
}), r[37] = z, r[38] =
|
|
36173
|
-
let
|
|
36174
|
-
r[39] !== z || r[40] !== R ? (
|
|
36172
|
+
}), r[37] = z, r[38] = aW);
|
|
36173
|
+
let oW;
|
|
36174
|
+
r[39] !== z || r[40] !== R ? (oW = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
36175
36175
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
36176
36176
|
className: "text-xs opacity-80",
|
|
36177
36177
|
children: R.description
|
|
@@ -36183,19 +36183,19 @@ ${c}
|
|
|
36183
36183
|
className: "h-3.5 w-3.5"
|
|
36184
36184
|
})
|
|
36185
36185
|
})
|
|
36186
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
36187
|
-
let
|
|
36188
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !==
|
|
36186
|
+
}), r[39] = z, r[40] = R, r[41] = oW) : oW = r[41];
|
|
36187
|
+
let sW;
|
|
36188
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !== iW || r[47] !== aW || r[48] !== oW ? (sW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36189
36189
|
ref: f,
|
|
36190
36190
|
className: Z,
|
|
36191
36191
|
style: W,
|
|
36192
36192
|
...d,
|
|
36193
36193
|
children: [
|
|
36194
|
-
|
|
36195
|
-
|
|
36196
|
-
|
|
36194
|
+
iW,
|
|
36195
|
+
aW,
|
|
36196
|
+
oW
|
|
36197
36197
|
]
|
|
36198
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] =
|
|
36198
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] = iW, r[47] = aW, r[48] = oW, r[49] = sW) : sW = r[49], sW;
|
|
36199
36199
|
}, MiniCodePreview = (e) => {
|
|
36200
36200
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
36201
36201
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -36235,7 +36235,7 @@ ${c}
|
|
|
36235
36235
|
function _temp2$2(e) {
|
|
36236
36236
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
36237
36237
|
}
|
|
36238
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36238
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-DXelFX7A.js"));
|
|
36239
36239
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36240
36240
|
var _a3;
|
|
36241
36241
|
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), [
|
|
@@ -36613,7 +36613,7 @@ ${c}
|
|
|
36613
36613
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36614
36614
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36615
36615
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36616
|
-
let H, W, G, q,
|
|
36616
|
+
let H, W, G, q, nW, rW, Z, iW, aW, oW;
|
|
36617
36617
|
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) {
|
|
36618
36618
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36619
36619
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36659,11 +36659,11 @@ ${c}
|
|
|
36659
36659
|
})
|
|
36660
36660
|
})
|
|
36661
36661
|
]
|
|
36662
|
-
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area",
|
|
36663
|
-
let
|
|
36664
|
-
r[40] !== M || r[41] !==
|
|
36662
|
+
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", nW = c, rW = R, Z = 0;
|
|
36663
|
+
let sW2 = y && "marimo-output-stale", cW2 = L ? "p-5" : "p-3";
|
|
36664
|
+
r[40] !== M || r[41] !== sW2 || r[42] !== cW2 ? (iW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", sW2, cW2, M), r[40] = M, r[41] = sW2, r[42] = cW2, r[43] = iW) : iW = r[43], r[44] === d ? aW = r[45] : (aW = d ? {
|
|
36665
36665
|
maxHeight: "none"
|
|
36666
|
-
} : void 0, r[44] = d, r[45] =
|
|
36666
|
+
} : void 0, r[44] = d, r[45] = aW), oW = e2.map((e3, r2) => {
|
|
36667
36667
|
if (e3.channel === "pdb") return null;
|
|
36668
36668
|
if (e3.channel === "stdin") {
|
|
36669
36669
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -36692,36 +36692,36 @@ ${c}
|
|
|
36692
36692
|
wrapText: l
|
|
36693
36693
|
})
|
|
36694
36694
|
}, r2);
|
|
36695
|
-
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] =
|
|
36696
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
36697
|
-
let
|
|
36698
|
-
r[46] !== T || r[47] !== S ? (
|
|
36695
|
+
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = nW, r[25] = rW, r[26] = Z, r[27] = iW, r[28] = aW, r[29] = oW;
|
|
36696
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], nW = r[24], rW = r[25], Z = r[26], iW = r[27], aW = r[28], oW = r[29];
|
|
36697
|
+
let sW;
|
|
36698
|
+
r[46] !== T || r[47] !== S ? (sW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36699
36699
|
value: S,
|
|
36700
36700
|
cellId: T,
|
|
36701
36701
|
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"
|
|
36702
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
36703
|
-
let
|
|
36704
|
-
r[49] !==
|
|
36702
|
+
}), r[46] = T, r[47] = S, r[48] = sW) : sW = r[48];
|
|
36703
|
+
let cW;
|
|
36704
|
+
r[49] !== sW || r[50] !== G || r[51] !== q || r[52] !== nW || r[53] !== rW || r[54] !== Z || r[55] !== iW || r[56] !== aW || r[57] !== oW ? (cW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36705
36705
|
title: G,
|
|
36706
36706
|
"data-testid": q,
|
|
36707
|
-
ref:
|
|
36708
|
-
...
|
|
36707
|
+
ref: nW,
|
|
36708
|
+
...rW,
|
|
36709
36709
|
tabIndex: Z,
|
|
36710
|
-
className:
|
|
36711
|
-
style:
|
|
36710
|
+
className: iW,
|
|
36711
|
+
style: aW,
|
|
36712
36712
|
children: [
|
|
36713
|
-
|
|
36714
|
-
|
|
36713
|
+
oW,
|
|
36714
|
+
sW
|
|
36715
36715
|
]
|
|
36716
|
-
}), r[49] =
|
|
36717
|
-
let
|
|
36718
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
36716
|
+
}), r[49] = sW, r[50] = G, r[51] = q, r[52] = nW, r[53] = rW, r[54] = Z, r[55] = iW, r[56] = aW, r[57] = oW, r[58] = cW) : cW = r[58];
|
|
36717
|
+
let lW;
|
|
36718
|
+
return r[59] !== H || r[60] !== W || r[61] !== cW ? (lW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36719
36719
|
className: H,
|
|
36720
36720
|
children: [
|
|
36721
36721
|
W,
|
|
36722
|
-
|
|
36722
|
+
cW
|
|
36723
36723
|
]
|
|
36724
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
36724
|
+
}), r[59] = H, r[60] = W, r[61] = cW, r[62] = lW) : lW = r[62], lW;
|
|
36725
36725
|
}, StdInput = (e) => {
|
|
36726
36726
|
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;
|
|
36727
36727
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -37114,7 +37114,7 @@ ${c}
|
|
|
37114
37114
|
})
|
|
37115
37115
|
}), r[24] = y, r[25] = T), T;
|
|
37116
37116
|
}, VerticalCell = (0, import_react.memo)((e) => {
|
|
37117
|
-
let r = (0, import_compiler_runtime$3.c)(
|
|
37117
|
+
let r = (0, import_compiler_runtime$3.c)(58), { output: c, consoleOutputs: l, cellOutputArea: u, cellId: d, status: f, stopped: m, errored: h, config: g, interrupted: _, staleInputs: v, runStartTimestamp: y, code: b, showCode: S, mode: w, name: T, kiosk: E, showErrorTracebacks: O } = e, j = (0, import_react.useRef)(null), M;
|
|
37118
37118
|
r[0] !== _ || r[1] !== c || r[2] !== y || r[3] !== v || r[4] !== f ? (M = outputIsStale({
|
|
37119
37119
|
status: f,
|
|
37120
37120
|
output: c,
|
|
@@ -37148,17 +37148,20 @@ ${c}
|
|
|
37148
37148
|
let f2 = e2, p;
|
|
37149
37149
|
r[19] !== b || r[20] !== c ? (p = shouldHideCode(b, c), r[19] = b, r[20] = c, r[21] = p) : p = r[21];
|
|
37150
37150
|
let m2 = p, h2;
|
|
37151
|
-
r[22] !==
|
|
37152
|
-
let v2 =
|
|
37153
|
-
r[25] !==
|
|
37151
|
+
r[22] !== b || r[23] !== m2 ? (h2 = m2 ? null : readonlyDisplay(b), r[22] = b, r[23] = m2, r[24] = h2) : h2 = r[24];
|
|
37152
|
+
let v2 = h2, y2;
|
|
37153
|
+
r[25] !== d || r[26] !== T ? (y2 = cellDomProps(d, T), r[25] = d, r[26] = T, r[27] = y2) : y2 = r[27];
|
|
37154
|
+
let S2 = u === "above" && f2, w2;
|
|
37155
|
+
r[28] !== g || r[29] !== v2 || r[30] !== E ? (w2 = v2 && (0, import_jsx_runtime.jsx)("div", {
|
|
37154
37156
|
className: "tray",
|
|
37155
37157
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
37156
37158
|
initiallyHideCode: g.hide_code || E,
|
|
37157
|
-
code:
|
|
37159
|
+
code: v2.code,
|
|
37160
|
+
language: v2.language
|
|
37158
37161
|
})
|
|
37159
|
-
}), r[
|
|
37160
|
-
let
|
|
37161
|
-
r[
|
|
37162
|
+
}), r[28] = g, r[29] = v2, r[30] = E, r[31] = w2) : w2 = r[31];
|
|
37163
|
+
let O2 = u === "below" && f2, M2;
|
|
37164
|
+
r[32] !== d || r[33] !== l || r[34] !== _ || r[35] !== T || r[36] !== I ? (M2 = (0, import_jsx_runtime.jsx)(ConsoleOutput, {
|
|
37162
37165
|
consoleOutputs: l,
|
|
37163
37166
|
stale: I,
|
|
37164
37167
|
interrupted: _,
|
|
@@ -37166,42 +37169,42 @@ ${c}
|
|
|
37166
37169
|
onSubmitDebugger: _temp4,
|
|
37167
37170
|
cellId: d,
|
|
37168
37171
|
debuggerActive: false
|
|
37169
|
-
}), r[
|
|
37170
|
-
let
|
|
37171
|
-
return r[
|
|
37172
|
+
}), r[32] = d, r[33] = l, r[34] = _, r[35] = T, r[36] = I, r[37] = M2) : M2 = r[37];
|
|
37173
|
+
let L2;
|
|
37174
|
+
return r[38] !== H || r[39] !== O2 || r[40] !== M2 || r[41] !== y2 || r[42] !== S2 || r[43] !== w2 ? (L2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
37172
37175
|
tabIndex: -1,
|
|
37173
37176
|
ref: j,
|
|
37174
37177
|
className: H,
|
|
37175
|
-
...
|
|
37178
|
+
...y2,
|
|
37176
37179
|
children: [
|
|
37177
|
-
v2,
|
|
37178
|
-
y2,
|
|
37179
37180
|
S2,
|
|
37180
|
-
w2
|
|
37181
|
+
w2,
|
|
37182
|
+
O2,
|
|
37183
|
+
M2
|
|
37181
37184
|
]
|
|
37182
|
-
}), r[
|
|
37185
|
+
}), r[38] = H, r[39] = O2, r[40] = M2, r[41] = y2, r[42] = S2, r[43] = w2, r[44] = L2) : L2 = r[44], L2;
|
|
37183
37186
|
}
|
|
37184
37187
|
let W = isErrorMime(c == null ? void 0 : c.mimetype), G = O && W && Array.isArray(c == null ? void 0 : c.data) && c.data.some(_temp5);
|
|
37185
37188
|
if ((h || _ || m || W) && !G) return null;
|
|
37186
37189
|
let q;
|
|
37187
|
-
r[
|
|
37188
|
-
let
|
|
37189
|
-
r[
|
|
37190
|
-
allowExpand:
|
|
37190
|
+
r[45] !== d || r[46] !== T ? (q = cellDomProps(d, T), r[45] = d, r[46] = T, r[47] = q) : q = r[47];
|
|
37191
|
+
let nW = w === "edit", rW;
|
|
37192
|
+
r[48] !== d || r[49] !== R || r[50] !== c || r[51] !== I || r[52] !== nW ? (rW = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37193
|
+
allowExpand: nW,
|
|
37191
37194
|
output: c,
|
|
37192
37195
|
className: CSSClasses.outputArea,
|
|
37193
37196
|
cellId: d,
|
|
37194
37197
|
stale: I,
|
|
37195
37198
|
loading: R
|
|
37196
|
-
}), r[
|
|
37199
|
+
}), r[48] = d, r[49] = R, r[50] = c, r[51] = I, r[52] = nW, r[53] = rW) : rW = r[53];
|
|
37197
37200
|
let Z;
|
|
37198
|
-
return r[
|
|
37201
|
+
return r[54] !== H || r[55] !== q || r[56] !== rW ? (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
37199
37202
|
tabIndex: -1,
|
|
37200
37203
|
ref: j,
|
|
37201
37204
|
className: H,
|
|
37202
37205
|
...q,
|
|
37203
|
-
children:
|
|
37204
|
-
}), r[
|
|
37206
|
+
children: rW
|
|
37207
|
+
}), r[54] = H, r[55] = q, r[56] = rW, r[57] = Z) : Z = r[57], Z;
|
|
37205
37208
|
});
|
|
37206
37209
|
VerticalCell.displayName = "VerticalCell";
|
|
37207
37210
|
const VerticalLayoutPlugin = {
|
|
@@ -37227,6 +37230,17 @@ ${c}
|
|
|
37227
37230
|
let c = new MarkdownLanguageAdapter().isSupported(e), l = r !== null && !isOutputEmpty(r);
|
|
37228
37231
|
return c && l || e.trim() === "";
|
|
37229
37232
|
}
|
|
37233
|
+
var sqlParser = new SQLParser();
|
|
37234
|
+
function readonlyDisplay(e) {
|
|
37235
|
+
let r = e.trim();
|
|
37236
|
+
return sqlParser.isSupported(r) ? {
|
|
37237
|
+
code: sqlParser.transformIn(r).code,
|
|
37238
|
+
language: "sql"
|
|
37239
|
+
} : {
|
|
37240
|
+
code: e,
|
|
37241
|
+
language: "python"
|
|
37242
|
+
};
|
|
37243
|
+
}
|
|
37230
37244
|
function _temp$1(e) {
|
|
37231
37245
|
return !e;
|
|
37232
37246
|
}
|