@marimo-team/islands 0.24.1-dev8 → 0.24.1-dev9
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/{common-CL_Mw3m2.js → common-Cb6PpFk7.js} +1 -1
- package/dist/main.js +1093 -1000
- package/dist/{reveal-component-Czxu7436.js → reveal-component-DZSd6eh0.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/plugins/impl/MatrixPlugin.tsx +256 -35
- package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +540 -3
package/dist/main.js
CHANGED
|
@@ -26,7 +26,7 @@ import { $ as notebookOutline, $t as isUninstantiated, A as ChevronDownIcon, An
|
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BRZ_XYUw.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-j30bBjjN.js";
|
|
28
28
|
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-BL1GSUUF.js";
|
|
29
|
-
import { $ as CommandSeparator, $t as Kbd, A as ErrorState, At as getPageIndexForRow, B as ContextMenuTrigger, Bt as dateToLocalISODate, C as downloadHTMLAsImage, Ct as inferFieldTypes, D as ColumnName, Dt as DelayMount, E as downloadSizeLimitAtom, Et as ColumnChartSpecModel, F as getUserColumnVisibilityCounts, Ft as TOO_MANY_ROWS, G as DateRangePicker, Gt as TabsList, H as useSelectList, Ht as dateToLocalISOTime, I as ContextMenu, It as toFieldTypes, J as Command, Jt as ChartInfoState, K as Combobox, Kt as TabsTrigger, L as ContextMenuContent, Lt as getMimeValues, M as prettifyRowColumnCount, Mt as loadTableData, N as prettifyRowCount, Nt as INDEX_COLUMN_NAME, O as ColumnPreviewContainer, Ot as useIntersectionObserver, P as getColumnCountForDisplay, Pt as SELECT_COLUMN_ID, Q as CommandList, Qt as RenderTextWithLinks, R as ContextMenuItem, Rt as isNullishFilter, S as downloadExportedFile, St as generateColumns, T as Filenames, Tt as ColumnChartContext, U as CompactChipRow, Ut as Tabs, V as useInternalStateWithSync, Vt as dateToLocalISODateTime, W as DatePicker, Wt as TabsContent, X as CommandInput, Xt as LazyVegaEmbed, Y as CommandEmpty, Yt as ChartLoadingState, Z as CommandItem, Zt as useOverflowDetection, _ as DataTable, _n as ChevronLeft, _t as TableCell, an as TextWrap, at as contextAwarePanelType, b as downloadBlob, bt as TableRow, c as SLIDE_TYPE_OPTIONS_BY_VALUE, cn as EyeOff, ct as slotsController, d as Switch, dn as Download, en as HtmlOutput, et as smartMatch, f as RadioGroup, fn as Code, g as OutputRenderer, gn as ChevronsDownUp, gt as TableBody, h as OutputArea, hn as ChevronsLeft, ht as Table, i as showCodeInRunModeAtom, in as $fae977aafc393c5c$export$6b862160d295c8e, it as contextAwarePanelOwner, j as LoadingState, jt as loadTableAndRawData, k as EmptyState, kt as usePrevious$1, lt as Toggle, m as JsonOutput, mn as ChevronsRight, mt as Provider$1, n as useNotebookCodeAvailable, nn as safeLocale, nt as PANEL_TYPES, on as GripHorizontal, ot as isCellAwareAtom, p as RadioGroupItem, pn as ChevronsUpDown, pt as Fill, q as ComboboxItem, qt as ChartErrorState, r as marimoVersionAtom, rn as $fae977aafc393c5c$export$588937bcd60ade55, rt as contextAwarePanelOpen, sn as Funnel, st as SlotNames, t as cellDomProps, tn as EmotionCacheProvider, tt as ContextAwarePanelItem, u as Slide, un as Ellipsis, v as InstallPackageButton, vn as ArrowDownWideNarrow, vt as TableHead, w as Progress, wt as renderCellValue, x as downloadByURL, xt as NAMELESS_COLUMN_PREFIX, y as ADD_PRINTING_CLASS, yt as TableHeader, z as ContextMenuSeparator, zt as Maps, __tla as __tla_2 } from "./common-
|
|
29
|
+
import { $ as CommandSeparator, $t as Kbd, A as ErrorState, At as getPageIndexForRow, B as ContextMenuTrigger, Bt as dateToLocalISODate, C as downloadHTMLAsImage, Ct as inferFieldTypes, D as ColumnName, Dt as DelayMount, E as downloadSizeLimitAtom, Et as ColumnChartSpecModel, F as getUserColumnVisibilityCounts, Ft as TOO_MANY_ROWS, G as DateRangePicker, Gt as TabsList, H as useSelectList, Ht as dateToLocalISOTime, I as ContextMenu, It as toFieldTypes, J as Command, Jt as ChartInfoState, K as Combobox, Kt as TabsTrigger, L as ContextMenuContent, Lt as getMimeValues, M as prettifyRowColumnCount, Mt as loadTableData, N as prettifyRowCount, Nt as INDEX_COLUMN_NAME, O as ColumnPreviewContainer, Ot as useIntersectionObserver, P as getColumnCountForDisplay, Pt as SELECT_COLUMN_ID, Q as CommandList, Qt as RenderTextWithLinks, R as ContextMenuItem, Rt as isNullishFilter, S as downloadExportedFile, St as generateColumns, T as Filenames, Tt as ColumnChartContext, U as CompactChipRow, Ut as Tabs, V as useInternalStateWithSync, Vt as dateToLocalISODateTime, W as DatePicker, Wt as TabsContent, X as CommandInput, Xt as LazyVegaEmbed, Y as CommandEmpty, Yt as ChartLoadingState, Z as CommandItem, Zt as useOverflowDetection, _ as DataTable, _n as ChevronLeft, _t as TableCell, an as TextWrap, at as contextAwarePanelType, b as downloadBlob, bt as TableRow, c as SLIDE_TYPE_OPTIONS_BY_VALUE, cn as EyeOff, ct as slotsController, d as Switch, dn as Download, en as HtmlOutput, et as smartMatch, f as RadioGroup, fn as Code, g as OutputRenderer, gn as ChevronsDownUp, gt as TableBody, h as OutputArea, hn as ChevronsLeft, ht as Table, i as showCodeInRunModeAtom, in as $fae977aafc393c5c$export$6b862160d295c8e, it as contextAwarePanelOwner, j as LoadingState, jt as loadTableAndRawData, k as EmptyState, kt as usePrevious$1, lt as Toggle, m as JsonOutput, mn as ChevronsRight, mt as Provider$1, n as useNotebookCodeAvailable, nn as safeLocale, nt as PANEL_TYPES, on as GripHorizontal, ot as isCellAwareAtom, p as RadioGroupItem, pn as ChevronsUpDown, pt as Fill, q as ComboboxItem, qt as ChartErrorState, r as marimoVersionAtom, rn as $fae977aafc393c5c$export$588937bcd60ade55, rt as contextAwarePanelOpen, sn as Funnel, st as SlotNames, t as cellDomProps, tn as EmotionCacheProvider, tt as ContextAwarePanelItem, u as Slide, un as Ellipsis, v as InstallPackageButton, vn as ArrowDownWideNarrow, vt as TableHead, w as Progress, wt as renderCellValue, x as downloadByURL, xt as NAMELESS_COLUMN_PREFIX, y as ADD_PRINTING_CLASS, yt as TableHeader, z as ContextMenuSeparator, zt as Maps, __tla as __tla_2 } from "./common-Cb6PpFk7.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-Bw4wRj_O.js";
|
|
31
31
|
import { t as Check } from "./check-58HHfHKy.js";
|
|
32
32
|
import { A as Icon, C as logNever, D as $18f2051aff69b9bf$export$a54013f0d02a8f82, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, M as clamp$2, N as usePrevious$2, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as Trigger$1, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./strings-DMLVGXRo.js";
|
|
@@ -7519,33 +7519,33 @@ let __tla = Promise.all([
|
|
|
7519
7519
|
}), B = C({
|
|
7520
7520
|
height: 0,
|
|
7521
7521
|
width: 0
|
|
7522
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
7522
|
+
}), H = U(), W = U(), G = C(0), q = C(null), tG = C({
|
|
7523
7523
|
column: 0,
|
|
7524
7524
|
row: 0
|
|
7525
|
-
}), Z = U(),
|
|
7526
|
-
Y(x(b, $(
|
|
7527
|
-
D(
|
|
7528
|
-
}), Y(x(ut(b,
|
|
7529
|
-
D(
|
|
7525
|
+
}), Z = U(), nG = U(), rG = C(false), iG = C(0), aG = C(true), oG = C(false), sG = C(false);
|
|
7526
|
+
Y(x(b, $(iG), P(([e2, r2]) => !!r2)), () => {
|
|
7527
|
+
D(aG, false);
|
|
7528
|
+
}), Y(x(ut(b, aG, B, z, iG, oG), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7529
|
+
D(oG, true), Ue(1, () => {
|
|
7530
7530
|
D(H, e2);
|
|
7531
7531
|
}), Et(x(h), () => {
|
|
7532
7532
|
D(r, [
|
|
7533
7533
|
0,
|
|
7534
7534
|
0
|
|
7535
|
-
]), D(
|
|
7535
|
+
]), D(aG, true);
|
|
7536
7536
|
});
|
|
7537
|
-
}), F(x(
|
|
7538
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7539
|
-
D(
|
|
7537
|
+
}), F(x(nG, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(nG), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7538
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(tG, e2.gap), e2.scrollTop > 0 && (D(rG, true), Et(x(h, Kt(1)), (e3) => {
|
|
7539
|
+
D(rG, false);
|
|
7540
7540
|
}), D(m, {
|
|
7541
7541
|
top: e2.scrollTop
|
|
7542
7542
|
})));
|
|
7543
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7543
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(tG, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7544
7544
|
gap: c2,
|
|
7545
7545
|
item: r2,
|
|
7546
7546
|
scrollTop: l2,
|
|
7547
7547
|
viewport: e2
|
|
7548
|
-
}))), Z), F(x(ut(V(I), l, V(
|
|
7548
|
+
}))), Z), F(x(ut(V(I), l, V(tG, Or), V(B, xe), V(z, xe), V(q), V(L), V(rG), V(aG), V(iG)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7549
7549
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7550
7550
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7551
7551
|
if (y2 === 0) {
|
|
@@ -7564,23 +7564,23 @@ let __tla = Promise.all([
|
|
|
7564
7564
|
offsetTop: j2,
|
|
7565
7565
|
top: j2
|
|
7566
7566
|
};
|
|
7567
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7567
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, tG), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7568
7568
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7569
7569
|
return [
|
|
7570
7570
|
d2,
|
|
7571
7571
|
u2
|
|
7572
7572
|
];
|
|
7573
7573
|
}), J(ce)), r);
|
|
7574
|
-
let
|
|
7575
|
-
F(x(h, $(
|
|
7576
|
-
let
|
|
7574
|
+
let cG = C(false);
|
|
7575
|
+
F(x(h, $(cG), k(([e2, r2]) => r2 || e2 !== 0)), cG);
|
|
7576
|
+
let lG = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(cG), P(([[e2, r2], c2]) => {
|
|
7577
7577
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7578
7578
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7579
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7579
|
+
}), k(([[, e2]]) => e2 - 1), J())), uG = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), dG = bt(x(V(R), $(rG), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7580
7580
|
endIndex: e2[e2.length - 1].index,
|
|
7581
7581
|
startIndex: e2[0].index
|
|
7582
7582
|
})), J(An), Gt(0)));
|
|
7583
|
-
F(
|
|
7583
|
+
F(dG, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, tG), k(([e2, r2, c2, l2, u2]) => {
|
|
7584
7584
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7585
7585
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7586
7586
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7589,7 +7589,7 @@ let __tla = Promise.all([
|
|
|
7589
7589
|
top: g2
|
|
7590
7590
|
};
|
|
7591
7591
|
})), m);
|
|
7592
|
-
let
|
|
7592
|
+
let fG = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7593
7593
|
return F(x(j, k((e2) => ({
|
|
7594
7594
|
height: e2.visibleHeight,
|
|
7595
7595
|
width: e2.visibleWidth
|
|
@@ -7598,13 +7598,13 @@ let __tla = Promise.all([
|
|
|
7598
7598
|
data: q,
|
|
7599
7599
|
deviation: G,
|
|
7600
7600
|
footerHeight: u,
|
|
7601
|
-
gap:
|
|
7601
|
+
gap: tG,
|
|
7602
7602
|
headerHeight: d,
|
|
7603
7603
|
increaseViewportBy: e,
|
|
7604
7604
|
initialItemCount: L,
|
|
7605
7605
|
itemDimensions: B,
|
|
7606
7606
|
overscan: c,
|
|
7607
|
-
restoreStateFrom:
|
|
7607
|
+
restoreStateFrom: nG,
|
|
7608
7608
|
scrollBy: f,
|
|
7609
7609
|
scrollContainerState: p,
|
|
7610
7610
|
scrollHeight: W,
|
|
@@ -7620,16 +7620,16 @@ let __tla = Promise.all([
|
|
|
7620
7620
|
windowViewportRect: j,
|
|
7621
7621
|
...y,
|
|
7622
7622
|
gridState: R,
|
|
7623
|
-
horizontalDirection:
|
|
7624
|
-
initialTopMostItemIndex:
|
|
7625
|
-
totalListHeight:
|
|
7623
|
+
horizontalDirection: sG,
|
|
7624
|
+
initialTopMostItemIndex: iG,
|
|
7625
|
+
totalListHeight: fG,
|
|
7626
7626
|
...v,
|
|
7627
|
-
endReached:
|
|
7627
|
+
endReached: lG,
|
|
7628
7628
|
propsReady: S,
|
|
7629
|
-
rangeChanged:
|
|
7630
|
-
startReached:
|
|
7629
|
+
rangeChanged: dG,
|
|
7630
|
+
startReached: uG,
|
|
7631
7631
|
stateChanged: Z,
|
|
7632
|
-
stateRestoreInProgress:
|
|
7632
|
+
stateRestoreInProgress: rG,
|
|
7633
7633
|
...M
|
|
7634
7634
|
};
|
|
7635
7635
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7907,7 +7907,7 @@ let __tla = Promise.all([
|
|
|
7907
7907
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7908
7908
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7909
7909
|
}, r[8] = p, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7910
|
-
let
|
|
7910
|
+
let tG = q, Z;
|
|
7911
7911
|
if (r[13] !== G.bulkActions) {
|
|
7912
7912
|
if (Z = G.bulkActions.map(_temp$27), Z.length > 0) {
|
|
7913
7913
|
let e2;
|
|
@@ -7917,12 +7917,12 @@ let __tla = Promise.all([
|
|
|
7917
7917
|
}
|
|
7918
7918
|
r[13] = G.bulkActions, r[14] = Z;
|
|
7919
7919
|
} else Z = r[14];
|
|
7920
|
-
let
|
|
7921
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7920
|
+
let nG;
|
|
7921
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (nG = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7922
7922
|
"data-slot": "select-separator"
|
|
7923
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7924
|
-
let
|
|
7925
|
-
r[19] !== Z || r[20] !== G || r[21] !==
|
|
7923
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = nG) : nG = r[18];
|
|
7924
|
+
let rG = nG, iG;
|
|
7925
|
+
r[19] !== Z || r[20] !== G || r[21] !== rG || r[22] !== w || r[23] !== B || r[24] !== H ? (iG = () => {
|
|
7926
7926
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7927
7927
|
"data-slot": "select-list",
|
|
7928
7928
|
style: {
|
|
@@ -7935,7 +7935,7 @@ let __tla = Promise.all([
|
|
|
7935
7935
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7936
7936
|
children: [
|
|
7937
7937
|
e3 === 0 && Z,
|
|
7938
|
-
|
|
7938
|
+
rG(e3),
|
|
7939
7939
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7940
7940
|
option: r2,
|
|
7941
7941
|
checked: G.isChecked(r2.value),
|
|
@@ -7946,7 +7946,7 @@ let __tla = Promise.all([
|
|
|
7946
7946
|
}
|
|
7947
7947
|
});
|
|
7948
7948
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7949
|
-
let c2 =
|
|
7949
|
+
let c2 = rG(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7950
7950
|
option: e3,
|
|
7951
7951
|
checked: G.isChecked(e3.value),
|
|
7952
7952
|
renderOption: w
|
|
@@ -7964,9 +7964,9 @@ let __tla = Promise.all([
|
|
|
7964
7964
|
e2
|
|
7965
7965
|
]
|
|
7966
7966
|
});
|
|
7967
|
-
}, r[19] = Z, r[20] = G, r[21] =
|
|
7968
|
-
let
|
|
7969
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7967
|
+
}, r[19] = Z, r[20] = G, r[21] = rG, r[22] = w, r[23] = B, r[24] = H, r[25] = iG) : iG = r[25];
|
|
7968
|
+
let aG = iG, oG;
|
|
7969
|
+
r[26] !== G.labelOf || r[27] !== I ? (oG = (e2) => {
|
|
7970
7970
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7971
7971
|
e2
|
|
7972
7972
|
];
|
|
@@ -7977,46 +7977,46 @@ let __tla = Promise.all([
|
|
|
7977
7977
|
items: r2.map(G.labelOf),
|
|
7978
7978
|
max: 3
|
|
7979
7979
|
});
|
|
7980
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7981
|
-
let
|
|
7982
|
-
r[29] === G ?
|
|
7983
|
-
let
|
|
7984
|
-
r[31] !== b || r[32] !== R ? (
|
|
7980
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = oG) : oG = r[28];
|
|
7981
|
+
let sG = oG, cG = e["data-testid"], lG;
|
|
7982
|
+
r[29] === G ? lG = r[30] : (lG = (e2) => G.labelOf(e2), r[29] = G, r[30] = lG);
|
|
7983
|
+
let uG = M ? sG : void 0, dG;
|
|
7984
|
+
r[31] !== b || r[32] !== R ? (dG = cn({
|
|
7985
7985
|
"w-full": R
|
|
7986
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7987
|
-
let
|
|
7988
|
-
r[34] === z ?
|
|
7989
|
-
let
|
|
7990
|
-
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !==
|
|
7986
|
+
}, b), r[31] = b, r[32] = R, r[33] = dG) : dG = r[33];
|
|
7987
|
+
let fG = G.searchQuery, pG = G.setSearchQuery, mG = G.open, hG = G.setOpen, gG;
|
|
7988
|
+
r[34] === z ? gG = r[35] : (gG = renderSlot(z), r[34] = z, r[35] = gG);
|
|
7989
|
+
let _G;
|
|
7990
|
+
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !== cG || r[44] !== lG || r[45] !== uG || r[46] !== dG || r[47] !== gG ? (_G = {
|
|
7991
7991
|
"data-slot": "select-root",
|
|
7992
|
-
"data-testid":
|
|
7993
|
-
displayValue:
|
|
7994
|
-
renderValue:
|
|
7992
|
+
"data-testid": cG,
|
|
7993
|
+
displayValue: lG,
|
|
7994
|
+
renderValue: uG,
|
|
7995
7995
|
placeholder: I,
|
|
7996
|
-
className:
|
|
7996
|
+
className: dG,
|
|
7997
7997
|
shouldFilter: false,
|
|
7998
|
-
search:
|
|
7999
|
-
onSearchChange:
|
|
8000
|
-
open:
|
|
8001
|
-
onOpenChange:
|
|
8002
|
-
emptyState:
|
|
7998
|
+
search: fG,
|
|
7999
|
+
onSearchChange: pG,
|
|
8000
|
+
open: mG,
|
|
8001
|
+
onOpenChange: hG,
|
|
8002
|
+
emptyState: gG,
|
|
8003
8003
|
disabled: L,
|
|
8004
8004
|
id: S
|
|
8005
|
-
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] =
|
|
8006
|
-
let
|
|
8007
|
-
return r[49] !==
|
|
8008
|
-
...
|
|
8005
|
+
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] = cG, r[44] = lG, r[45] = uG, r[46] = dG, r[47] = gG, r[48] = _G) : _G = r[48];
|
|
8006
|
+
let vG = _G, yG;
|
|
8007
|
+
return r[49] !== vG || r[50] !== tG || r[51] !== d || r[52] !== aG || r[53] !== l ? (yG = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
8008
|
+
...vG,
|
|
8009
8009
|
multiple: true,
|
|
8010
8010
|
value: l,
|
|
8011
|
-
onValueChange:
|
|
8012
|
-
children:
|
|
8011
|
+
onValueChange: tG,
|
|
8012
|
+
children: aG()
|
|
8013
8013
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
8014
|
-
...
|
|
8014
|
+
...vG,
|
|
8015
8015
|
multiple: false,
|
|
8016
8016
|
value: l,
|
|
8017
|
-
onValueChange:
|
|
8018
|
-
children:
|
|
8019
|
-
}), r[49] =
|
|
8017
|
+
onValueChange: tG,
|
|
8018
|
+
children: aG()
|
|
8019
|
+
}), r[49] = vG, r[50] = tG, r[51] = d, r[52] = aG, r[53] = l, r[54] = yG) : yG = r[54], yG;
|
|
8020
8020
|
}
|
|
8021
8021
|
function _temp$27(e) {
|
|
8022
8022
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -10527,7 +10527,7 @@ let __tla = Promise.all([
|
|
|
10527
10527
|
let m2 = get(l, e2);
|
|
10528
10528
|
if (m2) {
|
|
10529
10529
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
10530
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
10530
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : tG(e2, l2), f.mount && w();
|
|
10531
10531
|
}
|
|
10532
10532
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
10533
10533
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -10600,14 +10600,14 @@ let __tla = Promise.all([
|
|
|
10600
10600
|
}, H = () => {
|
|
10601
10601
|
for (let e2 of p.unMount) {
|
|
10602
10602
|
let r2 = get(l, e2);
|
|
10603
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
10603
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && dG(e2);
|
|
10604
10604
|
}
|
|
10605
10605
|
p.unMount = /* @__PURE__ */ new Set();
|
|
10606
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
10606
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(oG(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
10607
10607
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
10608
10608
|
[e2]: r2
|
|
10609
10609
|
} : r2
|
|
10610
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
10610
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), tG = (e2, r2, c2 = {}) => {
|
|
10611
10611
|
let u2 = get(l, e2), f2 = r2;
|
|
10612
10612
|
if (u2) {
|
|
10613
10613
|
let c3 = u2._f;
|
|
@@ -10620,13 +10620,13 @@ let __tla = Promise.all([
|
|
|
10620
10620
|
}
|
|
10621
10621
|
})));
|
|
10622
10622
|
}
|
|
10623
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
10623
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && aG(e2);
|
|
10624
10624
|
}, Z = (e2, r2, c2) => {
|
|
10625
10625
|
for (let u2 in r2) {
|
|
10626
10626
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
10627
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) :
|
|
10627
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) : tG(f2, d2, c2);
|
|
10628
10628
|
}
|
|
10629
|
-
},
|
|
10629
|
+
}, nG = (e2, r2, m2 = {}) => {
|
|
10630
10630
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
10631
10631
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
10632
10632
|
name: e2,
|
|
@@ -10637,7 +10637,7 @@ let __tla = Promise.all([
|
|
|
10637
10637
|
name: e2,
|
|
10638
10638
|
dirtyFields: getDirtyFields(u, d),
|
|
10639
10639
|
isDirty: W(e2, y2)
|
|
10640
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) :
|
|
10640
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) : tG(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
10641
10641
|
...c
|
|
10642
10642
|
}), _.values.next({
|
|
10643
10643
|
name: f.mount ? e2 : void 0,
|
|
@@ -10645,7 +10645,7 @@ let __tla = Promise.all([
|
|
|
10645
10645
|
...d
|
|
10646
10646
|
}
|
|
10647
10647
|
});
|
|
10648
|
-
},
|
|
10648
|
+
}, rG = async (e2) => {
|
|
10649
10649
|
f.mount = true;
|
|
10650
10650
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
10651
10651
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -10679,11 +10679,11 @@ let __tla = Promise.all([
|
|
|
10679
10679
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
10680
10680
|
h2
|
|
10681
10681
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
10682
|
-
S2 && (E2._f.deps &&
|
|
10682
|
+
S2 && (E2._f.deps && aG(E2._f.deps), L(h2, f2, u3, G2));
|
|
10683
10683
|
}
|
|
10684
|
-
},
|
|
10684
|
+
}, iG = (e2, r2) => {
|
|
10685
10685
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
10686
|
-
},
|
|
10686
|
+
}, aG = async (e2, u2 = {}) => {
|
|
10687
10687
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
10688
10688
|
if (r.resolver) {
|
|
10689
10689
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -10702,23 +10702,23 @@ let __tla = Promise.all([
|
|
|
10702
10702
|
isValid: d2
|
|
10703
10703
|
} : {},
|
|
10704
10704
|
errors: c.errors
|
|
10705
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
10706
|
-
},
|
|
10705
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, iG, e2 ? m2 : p.mount), f2;
|
|
10706
|
+
}, oG = (e2) => {
|
|
10707
10707
|
let r2 = {
|
|
10708
10708
|
...f.mount ? d : u
|
|
10709
10709
|
};
|
|
10710
10710
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
10711
|
-
},
|
|
10711
|
+
}, sG = (e2, r2) => ({
|
|
10712
10712
|
invalid: !!get((r2 || c).errors, e2),
|
|
10713
10713
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
10714
10714
|
error: get((r2 || c).errors, e2),
|
|
10715
10715
|
isValidating: !!get(c.validatingFields, e2),
|
|
10716
10716
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
10717
|
-
}),
|
|
10717
|
+
}), cG = (e2) => {
|
|
10718
10718
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
10719
10719
|
errors: e2 ? c.errors : {}
|
|
10720
10720
|
});
|
|
10721
|
-
},
|
|
10721
|
+
}, lG = (e2, r2, u2) => {
|
|
10722
10722
|
let d2 = (get(l, e2, {
|
|
10723
10723
|
_f: {}
|
|
10724
10724
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -10731,9 +10731,9 @@ let __tla = Promise.all([
|
|
|
10731
10731
|
errors: c.errors,
|
|
10732
10732
|
isValid: false
|
|
10733
10733
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
10734
|
-
},
|
|
10734
|
+
}, uG = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
10735
10735
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
10736
|
-
}) : G(e2, r2, true),
|
|
10736
|
+
}) : G(e2, r2, true), dG = (e2, f2 = {}) => {
|
|
10737
10737
|
for (let m2 of e2 ? convertToArrayPayload(e2) : p.mount) p.mount.delete(m2), p.array.delete(m2), f2.keepValue || (unset(l, m2), unset(d, m2)), !f2.keepError && unset(c.errors, m2), !f2.keepDirty && unset(c.dirtyFields, m2), !f2.keepTouched && unset(c.touchedFields, m2), !f2.keepIsValidating && unset(c.validatingFields, m2), !r.shouldUnregister && !f2.keepDefaultValue && unset(u, m2);
|
|
10738
10738
|
_.values.next({
|
|
10739
10739
|
values: {
|
|
@@ -10745,9 +10745,9 @@ let __tla = Promise.all([
|
|
|
10745
10745
|
isDirty: W()
|
|
10746
10746
|
} : {}
|
|
10747
10747
|
}), !f2.keepIsValid && w();
|
|
10748
|
-
},
|
|
10748
|
+
}, fG = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
10749
10749
|
(isBoolean(e2) && f.mount || e2 || p.disabled.has(r2)) && (e2 ? p.disabled.add(r2) : p.disabled.delete(r2), I(r2, getFieldValue(c2 ? c2._f : get(l2, r2)._f), false, false, true));
|
|
10750
|
-
},
|
|
10750
|
+
}, pG = (e2, c2 = {}) => {
|
|
10751
10751
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
10752
10752
|
return set(l, e2, {
|
|
10753
10753
|
...d2 || {},
|
|
@@ -10761,7 +10761,7 @@ let __tla = Promise.all([
|
|
|
10761
10761
|
mount: true,
|
|
10762
10762
|
...c2
|
|
10763
10763
|
}
|
|
10764
|
-
}), p.mount.add(e2), d2 ?
|
|
10764
|
+
}), p.mount.add(e2), d2 ? fG({
|
|
10765
10765
|
field: d2,
|
|
10766
10766
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
10767
10767
|
name: e2
|
|
@@ -10778,11 +10778,11 @@ let __tla = Promise.all([
|
|
|
10778
10778
|
pattern: getRuleValue(c2.pattern)
|
|
10779
10779
|
} : {},
|
|
10780
10780
|
name: e2,
|
|
10781
|
-
onChange:
|
|
10782
|
-
onBlur:
|
|
10781
|
+
onChange: rG,
|
|
10782
|
+
onBlur: rG,
|
|
10783
10783
|
ref: (m3) => {
|
|
10784
10784
|
if (m3) {
|
|
10785
|
-
|
|
10785
|
+
pG(e2, c2), d2 = get(l, e2);
|
|
10786
10786
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
10787
10787
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
10788
10788
|
set(l, e2, {
|
|
@@ -10808,7 +10808,7 @@ let __tla = Promise.all([
|
|
|
10808
10808
|
} else d2 = get(l, e2, {}), d2._f && (d2._f.mount = false), (r.shouldUnregister || c2.shouldUnregister) && !(isNameInFieldArray(p.array, e2) && f.action) && p.unMount.add(e2);
|
|
10809
10809
|
}
|
|
10810
10810
|
};
|
|
10811
|
-
},
|
|
10811
|
+
}, mG = () => r.shouldFocusError && iterateFieldsByAction(l, iG, p.mount), hG = (e2) => {
|
|
10812
10812
|
isBoolean(e2) && (_.state.next({
|
|
10813
10813
|
disabled: e2
|
|
10814
10814
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -10817,7 +10817,7 @@ let __tla = Promise.all([
|
|
|
10817
10817
|
r3.disabled = u2._f.disabled || e2;
|
|
10818
10818
|
}));
|
|
10819
10819
|
}, 0, false));
|
|
10820
|
-
},
|
|
10820
|
+
}, gG = (e2, u2) => async (f2) => {
|
|
10821
10821
|
let m2;
|
|
10822
10822
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
10823
10823
|
let h2 = cloneObject(d);
|
|
@@ -10839,7 +10839,7 @@ let __tla = Promise.all([
|
|
|
10839
10839
|
}
|
|
10840
10840
|
} else u2 && await u2({
|
|
10841
10841
|
...c.errors
|
|
10842
|
-
}, f2),
|
|
10842
|
+
}, f2), mG(), setTimeout(mG);
|
|
10843
10843
|
if (_.state.next({
|
|
10844
10844
|
isSubmitted: true,
|
|
10845
10845
|
isSubmitting: false,
|
|
@@ -10847,11 +10847,11 @@ let __tla = Promise.all([
|
|
|
10847
10847
|
submitCount: c.submitCount + 1,
|
|
10848
10848
|
errors: c.errors
|
|
10849
10849
|
}), m2) throw m2;
|
|
10850
|
-
},
|
|
10851
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10850
|
+
}, _G = (e2, r2 = {}) => {
|
|
10851
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? nG(e2, cloneObject(get(u, e2))) : (nG(e2, r2.defaultValue), set(u, e2, cloneObject(r2.defaultValue))), r2.keepTouched || unset(c.touchedFields, e2), r2.keepDirty || (unset(c.dirtyFields, e2), c.isDirty = r2.defaultValue ? W(e2, cloneObject(get(u, e2))) : W()), r2.keepError || (unset(c.errors, e2), g.isValid && w()), _.state.next({
|
|
10852
10852
|
...c
|
|
10853
10853
|
}));
|
|
10854
|
-
},
|
|
10854
|
+
}, vG = (e2, m2 = {}) => {
|
|
10855
10855
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10856
10856
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10857
10857
|
if (m2.keepDirtyValues) {
|
|
@@ -10859,7 +10859,7 @@ let __tla = Promise.all([
|
|
|
10859
10859
|
...p.mount,
|
|
10860
10860
|
...Object.keys(getDirtyFields(u, d))
|
|
10861
10861
|
]);
|
|
10862
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10862
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : nG(r2, get(b2, r2));
|
|
10863
10863
|
} else {
|
|
10864
10864
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10865
10865
|
let r2 = get(l, e3);
|
|
@@ -10904,25 +10904,25 @@ let __tla = Promise.all([
|
|
|
10904
10904
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10905
10905
|
isSubmitting: false
|
|
10906
10906
|
});
|
|
10907
|
-
},
|
|
10907
|
+
}, yG = (e2, r2) => vG(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10908
10908
|
return {
|
|
10909
10909
|
control: {
|
|
10910
|
-
register:
|
|
10911
|
-
unregister:
|
|
10912
|
-
getFieldState:
|
|
10913
|
-
handleSubmit:
|
|
10914
|
-
setError:
|
|
10910
|
+
register: pG,
|
|
10911
|
+
unregister: dG,
|
|
10912
|
+
getFieldState: sG,
|
|
10913
|
+
handleSubmit: gG,
|
|
10914
|
+
setError: lG,
|
|
10915
10915
|
_executeSchema: R,
|
|
10916
10916
|
_getWatch: G,
|
|
10917
10917
|
_getDirty: W,
|
|
10918
10918
|
_updateValid: w,
|
|
10919
10919
|
_removeUnmounted: H,
|
|
10920
10920
|
_updateFieldArray: E,
|
|
10921
|
-
_updateDisabledField:
|
|
10921
|
+
_updateDisabledField: fG,
|
|
10922
10922
|
_getFieldArray: q,
|
|
10923
|
-
_reset:
|
|
10923
|
+
_reset: vG,
|
|
10924
10924
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10925
|
-
|
|
10925
|
+
yG(e2, r.resetOptions), _.state.next({
|
|
10926
10926
|
isLoading: false
|
|
10927
10927
|
});
|
|
10928
10928
|
}),
|
|
@@ -10932,7 +10932,7 @@ let __tla = Promise.all([
|
|
|
10932
10932
|
...e2
|
|
10933
10933
|
};
|
|
10934
10934
|
},
|
|
10935
|
-
_disableForm:
|
|
10935
|
+
_disableForm: hG,
|
|
10936
10936
|
_subjects: _,
|
|
10937
10937
|
_proxyFormState: g,
|
|
10938
10938
|
_setErrors: j,
|
|
@@ -10973,17 +10973,17 @@ let __tla = Promise.all([
|
|
|
10973
10973
|
};
|
|
10974
10974
|
}
|
|
10975
10975
|
},
|
|
10976
|
-
trigger:
|
|
10977
|
-
register:
|
|
10978
|
-
handleSubmit:
|
|
10979
|
-
watch:
|
|
10980
|
-
setValue:
|
|
10981
|
-
getValues:
|
|
10982
|
-
reset:
|
|
10983
|
-
resetField:
|
|
10984
|
-
clearErrors:
|
|
10985
|
-
unregister:
|
|
10986
|
-
setError:
|
|
10976
|
+
trigger: aG,
|
|
10977
|
+
register: pG,
|
|
10978
|
+
handleSubmit: gG,
|
|
10979
|
+
watch: uG,
|
|
10980
|
+
setValue: nG,
|
|
10981
|
+
getValues: oG,
|
|
10982
|
+
reset: yG,
|
|
10983
|
+
resetField: _G,
|
|
10984
|
+
clearErrors: cG,
|
|
10985
|
+
unregister: dG,
|
|
10986
|
+
setError: lG,
|
|
10987
10987
|
setFocus: (e2, r2 = {}) => {
|
|
10988
10988
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10989
10989
|
if (u2) {
|
|
@@ -10991,7 +10991,7 @@ let __tla = Promise.all([
|
|
|
10991
10991
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10992
10992
|
}
|
|
10993
10993
|
},
|
|
10994
|
-
getFieldState:
|
|
10994
|
+
getFieldState: sG
|
|
10995
10995
|
};
|
|
10996
10996
|
}
|
|
10997
10997
|
function useForm(e = {}) {
|
|
@@ -16316,21 +16316,21 @@ ${c}
|
|
|
16316
16316
|
_.pageSize,
|
|
16317
16317
|
_.pageIndex
|
|
16318
16318
|
], r[35] = w, r[36] = _.pageIndex, r[37] = _.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = u, r[44] = y, r[45] = p, r[46] = B, r[47] = H) : H = r[47];
|
|
16319
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
16320
|
-
r[48] !== Z || r[49] !== e ? (
|
|
16321
|
-
let
|
|
16322
|
-
r[51] !== Z || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !==
|
|
16319
|
+
let { data: W, error: G, isPending: q, isFetching: tG } = useAsyncData(z, H), Z = useAtomValue(downloadSizeLimitAtom), nG;
|
|
16320
|
+
r[48] !== Z || r[49] !== e ? (nG = async () => !Z || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = Z, r[49] = e, r[50] = nG) : nG = r[50];
|
|
16321
|
+
let rG = e.showDownload, iG = e.get_size_bytes, aG = e.lazy, oG = e.totalRows, sG = useDeepCompareMemoize(w), cG = useDeepCompareMemoize(p), lG;
|
|
16322
|
+
r[51] !== Z || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== sG || r[58] !== cG ? (lG = [
|
|
16323
16323
|
Z,
|
|
16324
|
-
$W,
|
|
16325
|
-
eG,
|
|
16326
|
-
tG,
|
|
16327
|
-
nG,
|
|
16328
|
-
y,
|
|
16329
16324
|
rG,
|
|
16330
|
-
iG
|
|
16331
|
-
|
|
16332
|
-
|
|
16333
|
-
|
|
16325
|
+
iG,
|
|
16326
|
+
aG,
|
|
16327
|
+
oG,
|
|
16328
|
+
y,
|
|
16329
|
+
sG,
|
|
16330
|
+
cG
|
|
16331
|
+
], r[51] = Z, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = sG, r[58] = cG, r[59] = lG) : lG = r[59];
|
|
16332
|
+
let { data: uG, isPending: dG } = useAsyncData(nG, lG), fG = uG ?? null, pG = !!Z && e.showDownload && dG, mG;
|
|
16333
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== p ? (mG = async (e2) => ({
|
|
16334
16334
|
rows: await loadTableData((await u({
|
|
16335
16335
|
page_number: e2,
|
|
16336
16336
|
page_size: 1,
|
|
@@ -16339,17 +16339,17 @@ ${c}
|
|
|
16339
16339
|
filters: filtersToFilterGroup(w),
|
|
16340
16340
|
max_columns: null
|
|
16341
16341
|
})).data)
|
|
16342
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] =
|
|
16343
|
-
let
|
|
16344
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16342
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] = mG) : mG = r[64];
|
|
16343
|
+
let hG = mG, gG;
|
|
16344
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gG = () => {
|
|
16345
16345
|
v(_temp4$4);
|
|
16346
|
-
}, r[65] =
|
|
16347
|
-
let
|
|
16348
|
-
r[66] ===
|
|
16349
|
-
|
|
16350
|
-
], r[66] =
|
|
16351
|
-
let
|
|
16352
|
-
r[68] === e ?
|
|
16346
|
+
}, r[65] = gG) : gG = r[65];
|
|
16347
|
+
let _G = W == null ? void 0 : W.totalRows, vG;
|
|
16348
|
+
r[66] === _G ? vG = r[67] : (vG = [
|
|
16349
|
+
_G
|
|
16350
|
+
], r[66] = _G, r[67] = vG), (0, import_react.useEffect)(gG, vG);
|
|
16351
|
+
let yG;
|
|
16352
|
+
r[68] === e ? yG = r[69] : (yG = async () => {
|
|
16353
16353
|
let r2 = isStaticNotebook();
|
|
16354
16354
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
16355
16355
|
data: null,
|
|
@@ -16358,22 +16358,22 @@ ${c}
|
|
|
16358
16358
|
value_counts: {},
|
|
16359
16359
|
show_charts: false
|
|
16360
16360
|
} : e.get_column_summaries({});
|
|
16361
|
-
}, r[68] = e, r[69] =
|
|
16362
|
-
let
|
|
16363
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
16361
|
+
}, r[68] = e, r[69] = yG);
|
|
16362
|
+
let bG;
|
|
16363
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (bG = [
|
|
16364
16364
|
e.get_column_summaries,
|
|
16365
16365
|
e.showColumnSummaries,
|
|
16366
16366
|
w,
|
|
16367
16367
|
y,
|
|
16368
16368
|
e.totalRows,
|
|
16369
16369
|
e.data
|
|
16370
|
-
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] =
|
|
16371
|
-
let { data:
|
|
16372
|
-
if (r[77] ===
|
|
16373
|
-
|
|
16374
|
-
},
|
|
16375
|
-
|
|
16376
|
-
], r[77] =
|
|
16370
|
+
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] = bG) : bG = r[76];
|
|
16371
|
+
let { data: xG, error: SG } = useAsyncData(yG, bG), CG, wG;
|
|
16372
|
+
if (r[77] === SG ? (CG = r[78], wG = r[79]) : (CG = () => {
|
|
16373
|
+
SG && Logger.error(SG);
|
|
16374
|
+
}, wG = [
|
|
16375
|
+
SG
|
|
16376
|
+
], r[77] = SG, r[78] = CG, r[79] = wG), (0, import_react.useEffect)(CG, wG), q) {
|
|
16377
16377
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
16378
16378
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
16379
16379
|
milliseconds: 200,
|
|
@@ -16382,7 +16382,7 @@ ${c}
|
|
|
16382
16382
|
})
|
|
16383
16383
|
}), r[80] = c2, r[81] = l2), l2;
|
|
16384
16384
|
}
|
|
16385
|
-
let
|
|
16385
|
+
let TG = null;
|
|
16386
16386
|
if (G) {
|
|
16387
16387
|
Logger.error(G);
|
|
16388
16388
|
let e2;
|
|
@@ -16398,62 +16398,62 @@ ${c}
|
|
|
16398
16398
|
children: G.message || "An unknown error occurred"
|
|
16399
16399
|
})
|
|
16400
16400
|
]
|
|
16401
|
-
}), r[82] = G, r[83] = e2),
|
|
16401
|
+
}), r[82] = G, r[83] = e2), TG = e2;
|
|
16402
16402
|
}
|
|
16403
|
-
let
|
|
16404
|
-
r[84] === O ?
|
|
16403
|
+
let EG;
|
|
16404
|
+
r[84] === O ? EG = r[85] : (EG = () => {
|
|
16405
16405
|
j(!O);
|
|
16406
|
-
}, r[84] = O, r[85] =
|
|
16407
|
-
let
|
|
16408
|
-
r[86] !== l || r[87] !==
|
|
16406
|
+
}, r[84] = O, r[85] = EG);
|
|
16407
|
+
let DG = EG, OG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, kG = W == null ? void 0 : W.rawRows, AG = tG && !q, jG = (W == null ? void 0 : W.totalRows) ?? e.totalRows, MG = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, NG = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, PG;
|
|
16408
|
+
r[86] !== l || r[87] !== xG || r[88] !== O || r[89] !== w || r[90] !== hG || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== fG || r[95] !== pG || r[96] !== p || r[97] !== OG || r[98] !== kG || r[99] !== AG || r[100] !== jG || r[101] !== MG || r[102] !== NG || r[103] !== DG ? (PG = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
16409
16409
|
...e,
|
|
16410
|
-
data:
|
|
16411
|
-
rawData:
|
|
16412
|
-
columnSummaries:
|
|
16410
|
+
data: OG,
|
|
16411
|
+
rawData: kG,
|
|
16412
|
+
columnSummaries: xG,
|
|
16413
16413
|
sorting: p,
|
|
16414
16414
|
setSorting: h,
|
|
16415
16415
|
searchQuery: y,
|
|
16416
16416
|
setSearchQuery: b,
|
|
16417
16417
|
filters: w,
|
|
16418
16418
|
setFilters: T,
|
|
16419
|
-
reloading:
|
|
16420
|
-
totalRows:
|
|
16421
|
-
sizeBytes:
|
|
16422
|
-
sizeBytesIsLoading:
|
|
16419
|
+
reloading: AG,
|
|
16420
|
+
totalRows: jG,
|
|
16421
|
+
sizeBytes: fG,
|
|
16422
|
+
sizeBytesIsLoading: pG,
|
|
16423
16423
|
paginationState: _,
|
|
16424
16424
|
setPaginationState: v,
|
|
16425
|
-
cellStyles:
|
|
16426
|
-
cellHoverTexts:
|
|
16427
|
-
toggleDisplayHeader:
|
|
16425
|
+
cellStyles: MG,
|
|
16426
|
+
cellHoverTexts: NG,
|
|
16427
|
+
toggleDisplayHeader: DG,
|
|
16428
16428
|
isChartBuilderOpen: O,
|
|
16429
|
-
getRow:
|
|
16429
|
+
getRow: hG,
|
|
16430
16430
|
cellId: l,
|
|
16431
16431
|
maxHeight: e.maxHeight
|
|
16432
|
-
}), r[86] = l, r[87] =
|
|
16433
|
-
let
|
|
16434
|
-
r[105] !== l || r[106] !==
|
|
16432
|
+
}), r[86] = l, r[87] = xG, r[88] = O, r[89] = w, r[90] = hG, r[91] = _, r[92] = e, r[93] = y, r[94] = fG, r[95] = pG, r[96] = p, r[97] = OG, r[98] = kG, r[99] = AG, r[100] = jG, r[101] = MG, r[102] = NG, r[103] = DG, r[104] = PG) : PG = r[104];
|
|
16433
|
+
let FG = PG, IG;
|
|
16434
|
+
r[105] !== l || r[106] !== FG || r[107] !== (W == null ? void 0 : W.rows) || r[108] !== O || r[109] !== e.fieldTypes || r[110] !== e.get_data_url || r[111] !== e.rowHeaders || r[112] !== e.showChartBuilder || r[113] !== e.totalColumns || r[114] !== e.totalRows ? (IG = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
16435
16435
|
displayHeader: O,
|
|
16436
16436
|
onCloseChartBuilder: () => j(false),
|
|
16437
16437
|
data: (W == null ? void 0 : W.rows) || [],
|
|
16438
16438
|
columns: e.totalColumns,
|
|
16439
16439
|
totalRows: e.totalRows,
|
|
16440
|
-
dataTable:
|
|
16440
|
+
dataTable: FG,
|
|
16441
16441
|
getDataUrl: e.get_data_url,
|
|
16442
16442
|
fieldTypes: e.fieldTypes,
|
|
16443
16443
|
rowHeaders: e.rowHeaders,
|
|
16444
16444
|
cellId: l
|
|
16445
|
-
}) :
|
|
16446
|
-
let
|
|
16447
|
-
return r[116] !==
|
|
16445
|
+
}) : FG, r[105] = l, r[106] = FG, r[107] = W == null ? void 0 : W.rows, r[108] = O, r[109] = e.fieldTypes, r[110] = e.get_data_url, r[111] = e.rowHeaders, r[112] = e.showChartBuilder, r[113] = e.totalColumns, r[114] = e.totalRows, r[115] = IG) : IG = r[115];
|
|
16446
|
+
let LG;
|
|
16447
|
+
return r[116] !== TG || r[117] !== IG ? (LG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16448
16448
|
children: [
|
|
16449
|
-
|
|
16450
|
-
|
|
16449
|
+
TG,
|
|
16450
|
+
IG
|
|
16451
16451
|
]
|
|
16452
|
-
}), r[116] =
|
|
16452
|
+
}), r[116] = TG, r[117] = IG, r[118] = LG) : LG = r[118], LG;
|
|
16453
16453
|
});
|
|
16454
16454
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
16455
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters:
|
|
16456
|
-
let
|
|
16455
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: tG, setFilters: Z, reloading: nG, freezeColumnsLeft: rG, freezeColumnsRight: iG, hiddenColumns: aG, textJustifyColumns: oG, wrappedColumns: sG, columnWidths: cG, headerTooltip: lG, totalColumns: uG, get_row_ids: dG, cellStyles: fG, hoverTemplate: pG, cellHoverTexts: mG, toggleDisplayHeader: hG, isChartBuilderOpen: gG, calculate_top_k_rows: _G, preview_column: vG, getRow: yG, cellId: bG, maxHeight: xG }) => {
|
|
16456
|
+
let SG = (0, import_react.useId)(), { locale: CG } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [wG, TG] = (0, import_react.useState)(0), { isPanelOpen: EG, isAnyPanelOpen: DG, togglePanel: OG, panelType: kG, setPanelType: AG } = usePanelOwnership(SG, bG), jG = isStaticNotebook(), MG = (0, import_react.useMemo)(() => {
|
|
16457
16457
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16458
16458
|
let e2 = toFieldTypes(O);
|
|
16459
16459
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -16462,13 +16462,13 @@ ${c}
|
|
|
16462
16462
|
}, [
|
|
16463
16463
|
O,
|
|
16464
16464
|
L
|
|
16465
|
-
]),
|
|
16465
|
+
]), NG = new Set(E.map(([e2]) => e2)), PG = useDeepCompareMemoize(O ?? inferFieldTypes(r).filter(([e2]) => !NG.has(e2))), FG = (0, import_react.useMemo)(() => p === "all" ? PG : PG.slice(0, p), [
|
|
16466
16466
|
p,
|
|
16467
|
-
|
|
16468
|
-
]),
|
|
16467
|
+
PG
|
|
16468
|
+
]), IG = (0, import_react.useMemo)(() => {
|
|
16469
16469
|
let e2 = {};
|
|
16470
16470
|
if (r && r.length > 0) {
|
|
16471
|
-
for (let [c2, l2] of
|
|
16471
|
+
for (let [c2, l2] of FG) if (l2[0] === "number") {
|
|
16472
16472
|
let l3 = 0;
|
|
16473
16473
|
for (let e3 of r) {
|
|
16474
16474
|
let r2 = e3[c2];
|
|
@@ -16483,95 +16483,95 @@ ${c}
|
|
|
16483
16483
|
return e2;
|
|
16484
16484
|
}, [
|
|
16485
16485
|
r,
|
|
16486
|
-
|
|
16487
|
-
]),
|
|
16488
|
-
O || (T = false),
|
|
16489
|
-
let
|
|
16490
|
-
rowHeaders:
|
|
16486
|
+
FG
|
|
16487
|
+
]), LG = useDeepCompareMemoize(E), RG = useDeepCompareMemoize(oG), zG = useDeepCompareMemoize(sG), BG = useDeepCompareMemoize(cG), VG = useDeepCompareMemoize(MG), HG = useDeepCompareMemoize(IG), UG = FG.length;
|
|
16488
|
+
O || (T = false), jG && (h = null);
|
|
16489
|
+
let WG = (0, import_react.useMemo)(() => generateColumns({
|
|
16490
|
+
rowHeaders: LG,
|
|
16491
16491
|
selection: h,
|
|
16492
|
-
chartSpecModel:
|
|
16493
|
-
fieldTypes:
|
|
16494
|
-
textJustifyColumns:
|
|
16495
|
-
wrappedColumns:
|
|
16496
|
-
columnWidths:
|
|
16497
|
-
headerTooltip:
|
|
16492
|
+
chartSpecModel: VG,
|
|
16493
|
+
fieldTypes: FG,
|
|
16494
|
+
textJustifyColumns: RG,
|
|
16495
|
+
wrappedColumns: zG,
|
|
16496
|
+
columnWidths: BG,
|
|
16497
|
+
headerTooltip: lG,
|
|
16498
16498
|
showDataTypes: T,
|
|
16499
|
-
calculateTopKRows:
|
|
16500
|
-
fractionDigitsByColumn:
|
|
16499
|
+
calculateTopKRows: _G,
|
|
16500
|
+
fractionDigitsByColumn: HG
|
|
16501
16501
|
}), [
|
|
16502
16502
|
h,
|
|
16503
16503
|
T,
|
|
16504
|
+
VG,
|
|
16504
16505
|
LG,
|
|
16505
|
-
NG,
|
|
16506
|
-
jG,
|
|
16507
|
-
PG,
|
|
16508
16506
|
FG,
|
|
16509
|
-
|
|
16510
|
-
|
|
16511
|
-
|
|
16512
|
-
|
|
16513
|
-
|
|
16507
|
+
RG,
|
|
16508
|
+
zG,
|
|
16509
|
+
BG,
|
|
16510
|
+
lG,
|
|
16511
|
+
_G,
|
|
16512
|
+
HG
|
|
16513
|
+
]), GG = (0, import_react.useMemo)(() => Object.fromEntries((g || []).map((e2) => [
|
|
16514
16514
|
e2,
|
|
16515
16515
|
true
|
|
16516
16516
|
])), [
|
|
16517
16517
|
g
|
|
16518
|
-
]),
|
|
16518
|
+
]), KG = useEvent_default((e2) => {
|
|
16519
16519
|
if (h === "single") {
|
|
16520
16520
|
let r2 = Functions.asUpdater(e2)({});
|
|
16521
16521
|
z(Object.keys(r2).slice(0, 1));
|
|
16522
16522
|
}
|
|
16523
16523
|
if (h === "multi") {
|
|
16524
|
-
let r2 = Functions.asUpdater(e2)(
|
|
16524
|
+
let r2 = Functions.asUpdater(e2)(GG);
|
|
16525
16525
|
z(Object.keys(r2));
|
|
16526
16526
|
}
|
|
16527
|
-
}),
|
|
16528
|
-
if (
|
|
16527
|
+
}), qG = useEvent_default((e2) => {
|
|
16528
|
+
if (TG(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
16529
16529
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
16530
16530
|
r2 !== null && M((e3) => ({
|
|
16531
16531
|
...e3,
|
|
16532
16532
|
pageIndex: r2
|
|
16533
16533
|
}));
|
|
16534
|
-
}),
|
|
16535
|
-
h === "single-cell" && z(Functions.asUpdater(e2)(
|
|
16536
|
-
}),
|
|
16537
|
-
if (!(!
|
|
16534
|
+
}), JG = g.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), YG = useEvent_default((e2) => {
|
|
16535
|
+
h === "single-cell" && z(Functions.asUpdater(e2)(JG).slice(0, 1)), h === "multi-cell" && z(Functions.asUpdater(e2)(JG));
|
|
16536
|
+
}), XG = h === "multi" || h === "single", ZG = b && !!vG, QG = isInVscodeExtension(), $G = isIslands(), eK = (0, import_react.useMemo)(() => {
|
|
16537
|
+
if (!(!DG || !(S || ZG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
16538
16538
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
16539
|
-
rowIdx:
|
|
16540
|
-
setRowIdx:
|
|
16539
|
+
rowIdx: wG,
|
|
16540
|
+
setRowIdx: qG,
|
|
16541
16541
|
totalRows: l,
|
|
16542
|
-
fieldTypes:
|
|
16543
|
-
getRow:
|
|
16544
|
-
isSelectable:
|
|
16545
|
-
isRowSelected: !!
|
|
16546
|
-
handleRowSelectionChange:
|
|
16547
|
-
previewColumn:
|
|
16548
|
-
totalColumns:
|
|
16549
|
-
tableId:
|
|
16542
|
+
fieldTypes: PG,
|
|
16543
|
+
getRow: yG,
|
|
16544
|
+
isSelectable: XG,
|
|
16545
|
+
isRowSelected: !!GG[wG],
|
|
16546
|
+
handleRowSelectionChange: KG,
|
|
16547
|
+
previewColumn: vG,
|
|
16548
|
+
totalColumns: uG,
|
|
16549
|
+
tableId: SG,
|
|
16550
16550
|
table: e2,
|
|
16551
|
-
showRowExplorer: S && !
|
|
16552
|
-
showColumnExplorer:
|
|
16553
|
-
activeTab:
|
|
16554
|
-
onTabChange:
|
|
16551
|
+
showRowExplorer: S && !QG,
|
|
16552
|
+
showColumnExplorer: ZG && !QG,
|
|
16553
|
+
activeTab: kG,
|
|
16554
|
+
onTabChange: AG
|
|
16555
16555
|
})
|
|
16556
16556
|
});
|
|
16557
16557
|
}, [
|
|
16558
|
-
|
|
16558
|
+
DG,
|
|
16559
16559
|
S,
|
|
16560
|
+
ZG,
|
|
16561
|
+
wG,
|
|
16560
16562
|
qG,
|
|
16561
|
-
bG,
|
|
16562
|
-
UG,
|
|
16563
16563
|
l,
|
|
16564
|
-
|
|
16565
|
-
|
|
16564
|
+
PG,
|
|
16565
|
+
yG,
|
|
16566
|
+
XG,
|
|
16567
|
+
GG,
|
|
16566
16568
|
KG,
|
|
16567
|
-
VG,
|
|
16568
|
-
HG,
|
|
16569
|
-
mG,
|
|
16570
|
-
oG,
|
|
16571
16569
|
vG,
|
|
16572
|
-
|
|
16573
|
-
|
|
16574
|
-
|
|
16570
|
+
uG,
|
|
16571
|
+
SG,
|
|
16572
|
+
QG,
|
|
16573
|
+
kG,
|
|
16574
|
+
AG
|
|
16575
16575
|
]);
|
|
16576
16576
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16577
16577
|
children: [
|
|
@@ -16583,27 +16583,27 @@ ${c}
|
|
|
16583
16583
|
" rows."
|
|
16584
16584
|
]
|
|
16585
16585
|
}),
|
|
16586
|
-
|
|
16586
|
+
UG < uG && UG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16587
16587
|
className: "mb-1 rounded",
|
|
16588
16588
|
children: [
|
|
16589
16589
|
"Result clipped. Showing ",
|
|
16590
|
-
|
|
16590
|
+
UG,
|
|
16591
16591
|
" of ",
|
|
16592
|
-
|
|
16592
|
+
uG,
|
|
16593
16593
|
" columns."
|
|
16594
16594
|
]
|
|
16595
16595
|
}),
|
|
16596
|
-
|
|
16596
|
+
jG && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16597
16597
|
className: "mb-1 rounded",
|
|
16598
16598
|
children: [
|
|
16599
16599
|
"Showing the first ",
|
|
16600
16600
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16601
|
-
children: prettyNumber(r.length,
|
|
16601
|
+
children: prettyNumber(r.length, CG)
|
|
16602
16602
|
}),
|
|
16603
16603
|
" ",
|
|
16604
16604
|
"of ",
|
|
16605
16605
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16606
|
-
children: prettyNumber(l,
|
|
16606
|
+
children: prettyNumber(l, CG)
|
|
16607
16607
|
}),
|
|
16608
16608
|
" rows. Increase the table's ",
|
|
16609
16609
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -16617,7 +16617,7 @@ ${c}
|
|
|
16617
16617
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
16618
16618
|
}),
|
|
16619
16619
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
16620
|
-
value:
|
|
16620
|
+
value: MG,
|
|
16621
16621
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
16622
16622
|
label: e,
|
|
16623
16623
|
align: "top",
|
|
@@ -16625,14 +16625,14 @@ ${c}
|
|
|
16625
16625
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
16626
16626
|
data: r,
|
|
16627
16627
|
rawData: c,
|
|
16628
|
-
columns:
|
|
16628
|
+
columns: WG,
|
|
16629
16629
|
className: R,
|
|
16630
|
-
maxHeight:
|
|
16630
|
+
maxHeight: xG,
|
|
16631
16631
|
sorting: B,
|
|
16632
16632
|
totalRows: l,
|
|
16633
16633
|
sizeBytes: u,
|
|
16634
16634
|
sizeBytesIsLoading: f,
|
|
16635
|
-
totalColumns:
|
|
16635
|
+
totalColumns: uG,
|
|
16636
16636
|
manualSorting: true,
|
|
16637
16637
|
setSorting: H,
|
|
16638
16638
|
pagination: m,
|
|
@@ -16640,37 +16640,37 @@ ${c}
|
|
|
16640
16640
|
selection: h,
|
|
16641
16641
|
paginationState: j,
|
|
16642
16642
|
setPaginationState: M,
|
|
16643
|
-
rowSelection:
|
|
16644
|
-
cellSelection:
|
|
16645
|
-
cellStyling:
|
|
16646
|
-
hoverTemplate:
|
|
16647
|
-
cellHoverTexts:
|
|
16643
|
+
rowSelection: GG,
|
|
16644
|
+
cellSelection: JG,
|
|
16645
|
+
cellStyling: fG,
|
|
16646
|
+
hoverTemplate: pG,
|
|
16647
|
+
cellHoverTexts: mG,
|
|
16648
16648
|
downloadAs: v ? I : void 0,
|
|
16649
16649
|
showSearch: W,
|
|
16650
16650
|
searchQuery: G,
|
|
16651
16651
|
onSearchQueryChange: q,
|
|
16652
16652
|
showFilters: _,
|
|
16653
|
-
filters:
|
|
16653
|
+
filters: tG,
|
|
16654
16654
|
onFiltersChange: Z,
|
|
16655
|
-
calculateTopKRows:
|
|
16656
|
-
reloading:
|
|
16657
|
-
onRowSelectionChange:
|
|
16658
|
-
freezeColumnsLeft:
|
|
16659
|
-
freezeColumnsRight:
|
|
16660
|
-
hiddenColumns:
|
|
16661
|
-
onCellSelectionChange:
|
|
16662
|
-
getRowIds:
|
|
16663
|
-
toggleDisplayHeader:
|
|
16664
|
-
showChartBuilder: w &&
|
|
16665
|
-
isChartBuilderOpen:
|
|
16655
|
+
calculateTopKRows: _G,
|
|
16656
|
+
reloading: nG,
|
|
16657
|
+
onRowSelectionChange: KG,
|
|
16658
|
+
freezeColumnsLeft: rG,
|
|
16659
|
+
freezeColumnsRight: iG,
|
|
16660
|
+
hiddenColumns: aG,
|
|
16661
|
+
onCellSelectionChange: YG,
|
|
16662
|
+
getRowIds: dG,
|
|
16663
|
+
toggleDisplayHeader: hG,
|
|
16664
|
+
showChartBuilder: w && !$G,
|
|
16665
|
+
isChartBuilderOpen: gG,
|
|
16666
16666
|
showPageSizeSelector: y,
|
|
16667
|
-
showTableExplorer: (S ||
|
|
16668
|
-
togglePanel:
|
|
16669
|
-
isPanelOpen:
|
|
16670
|
-
isAnyPanelOpen:
|
|
16671
|
-
viewedRowIdx:
|
|
16672
|
-
onViewedRowChange: (e2) =>
|
|
16673
|
-
renderTableExplorerPanel:
|
|
16667
|
+
showTableExplorer: (S || ZG) && !QG && !$G,
|
|
16668
|
+
togglePanel: OG,
|
|
16669
|
+
isPanelOpen: EG,
|
|
16670
|
+
isAnyPanelOpen: DG,
|
|
16671
|
+
viewedRowIdx: wG,
|
|
16672
|
+
onViewedRowChange: (e2) => TG(e2),
|
|
16673
|
+
renderTableExplorerPanel: eK
|
|
16674
16674
|
})
|
|
16675
16675
|
})
|
|
16676
16676
|
})
|
|
@@ -18785,29 +18785,29 @@ ${c}
|
|
|
18785
18785
|
], r[2] = w, r[3] = T);
|
|
18786
18786
|
let { data: E, error: O, isPending: j } = useAsyncData(S, T), M;
|
|
18787
18787
|
r[4] === E ? M = r[5] : (M = E || {}, r[4] = E, r[5] = M);
|
|
18788
|
-
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q,
|
|
18789
|
-
r[6] === f ?
|
|
18788
|
+
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, tG] = (0, import_react.useState)(p || EMPTY), Z = (0, import_react.useRef)(null), nG;
|
|
18789
|
+
r[6] === f ? nG = r[7] : (nG = (e2) => {
|
|
18790
18790
|
var _a5;
|
|
18791
18791
|
f && e2 !== "transform" && ((_a5 = Z.current) == null ? void 0 : _a5.submit());
|
|
18792
|
-
}, r[6] = f, r[7] =
|
|
18793
|
-
let
|
|
18794
|
-
r[8] === q ?
|
|
18795
|
-
|
|
18796
|
-
}, r[8] = q, r[9] =
|
|
18797
|
-
let
|
|
18798
|
-
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (
|
|
18799
|
-
let e2 =
|
|
18792
|
+
}, r[6] = f, r[7] = nG);
|
|
18793
|
+
let rG = nG, iG = (0, import_react.useRef)(q), aG;
|
|
18794
|
+
r[8] === q ? aG = r[9] : (aG = () => {
|
|
18795
|
+
iG.current = q;
|
|
18796
|
+
}, r[8] = q, r[9] = aG), (0, import_react.useEffect)(aG);
|
|
18797
|
+
let oG;
|
|
18798
|
+
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (oG = () => {
|
|
18799
|
+
let e2 = iG.current;
|
|
18800
18800
|
(p == null ? void 0 : p.transforms.length) !== e2.transforms.length && m(e2);
|
|
18801
|
-
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] =
|
|
18802
|
-
let
|
|
18803
|
-
r[13] !== E || r[14] !== m || r[15] !==
|
|
18801
|
+
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] = oG) : oG = r[12];
|
|
18802
|
+
let cG = p == null ? void 0 : p.transforms.length, lG;
|
|
18803
|
+
r[13] !== E || r[14] !== m || r[15] !== cG ? (lG = [
|
|
18804
18804
|
E,
|
|
18805
|
+
cG,
|
|
18805
18806
|
iG,
|
|
18806
|
-
eG,
|
|
18807
18807
|
m
|
|
18808
|
-
], r[13] = E, r[14] = m, r[15] =
|
|
18809
|
-
let
|
|
18810
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18808
|
+
], r[13] = E, r[14] = m, r[15] = cG, r[16] = lG) : lG = r[16], (0, import_react.useEffect)(oG, lG);
|
|
18809
|
+
let uG;
|
|
18810
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uG = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18811
18811
|
value: "transform",
|
|
18812
18812
|
className: "text-xs py-1",
|
|
18813
18813
|
children: [
|
|
@@ -18816,9 +18816,9 @@ ${c}
|
|
|
18816
18816
|
}),
|
|
18817
18817
|
"Transform"
|
|
18818
18818
|
]
|
|
18819
|
-
}), r[17] =
|
|
18820
|
-
let
|
|
18821
|
-
r[18] === H ?
|
|
18819
|
+
}), r[17] = uG) : uG = r[17];
|
|
18820
|
+
let dG;
|
|
18821
|
+
r[18] === H ? dG = r[19] : (dG = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18822
18822
|
value: "python-code",
|
|
18823
18823
|
className: "text-xs py-1",
|
|
18824
18824
|
children: [
|
|
@@ -18827,9 +18827,9 @@ ${c}
|
|
|
18827
18827
|
}),
|
|
18828
18828
|
"Python Code"
|
|
18829
18829
|
]
|
|
18830
|
-
}), r[18] = H, r[19] =
|
|
18831
|
-
let
|
|
18832
|
-
r[20] === W ?
|
|
18830
|
+
}), r[18] = H, r[19] = dG);
|
|
18831
|
+
let fG;
|
|
18832
|
+
r[20] === W ? fG = r[21] : (fG = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18833
18833
|
value: "sql-code",
|
|
18834
18834
|
className: "text-xs py-1",
|
|
18835
18835
|
children: [
|
|
@@ -18838,54 +18838,54 @@ ${c}
|
|
|
18838
18838
|
}),
|
|
18839
18839
|
"SQL Code"
|
|
18840
18840
|
]
|
|
18841
|
-
}), r[20] = W, r[21] =
|
|
18842
|
-
let
|
|
18843
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18841
|
+
}), r[20] = W, r[21] = fG);
|
|
18842
|
+
let pG;
|
|
18843
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pG = (0, import_jsx_runtime.jsx)("div", {
|
|
18844
18844
|
className: "grow"
|
|
18845
|
-
}), r[22] =
|
|
18846
|
-
let
|
|
18847
|
-
r[23] !==
|
|
18845
|
+
}), r[22] = pG) : pG = r[22];
|
|
18846
|
+
let mG;
|
|
18847
|
+
r[23] !== dG || r[24] !== fG ? (mG = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
18848
18848
|
className: "h-8",
|
|
18849
18849
|
children: [
|
|
18850
|
-
|
|
18851
|
-
|
|
18852
|
-
|
|
18853
|
-
|
|
18850
|
+
uG,
|
|
18851
|
+
dG,
|
|
18852
|
+
fG,
|
|
18853
|
+
pG
|
|
18854
18854
|
]
|
|
18855
|
-
}), r[23] =
|
|
18856
|
-
let
|
|
18857
|
-
r[26] === j ?
|
|
18855
|
+
}), r[23] = dG, r[24] = fG, r[25] = mG) : mG = r[25];
|
|
18856
|
+
let hG;
|
|
18857
|
+
r[26] === j ? hG = r[27] : (hG = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18858
18858
|
size: "small"
|
|
18859
|
-
}), r[26] = j, r[27] =
|
|
18860
|
-
let
|
|
18861
|
-
r[28] !==
|
|
18859
|
+
}), r[26] = j, r[27] = hG);
|
|
18860
|
+
let gG;
|
|
18861
|
+
r[28] !== mG || r[29] !== hG ? (gG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18862
18862
|
className: "flex items-center gap-2",
|
|
18863
18863
|
children: [
|
|
18864
|
-
|
|
18865
|
-
|
|
18864
|
+
mG,
|
|
18865
|
+
hG
|
|
18866
18866
|
]
|
|
18867
|
-
}), r[28] =
|
|
18868
|
-
let
|
|
18869
|
-
r[31] !== m || r[32] !== p ? (
|
|
18870
|
-
dequal(e2, p) || (m(e2),
|
|
18871
|
-
}, r[31] = m, r[32] = p, r[33] =
|
|
18872
|
-
let
|
|
18873
|
-
r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !==
|
|
18867
|
+
}), r[28] = mG, r[29] = hG, r[30] = gG) : gG = r[30];
|
|
18868
|
+
let _G;
|
|
18869
|
+
r[31] !== m || r[32] !== p ? (_G = (e2) => {
|
|
18870
|
+
dequal(e2, p) || (m(e2), tG(e2));
|
|
18871
|
+
}, r[31] = m, r[32] = p, r[33] = _G) : _G = r[33];
|
|
18872
|
+
let vG;
|
|
18873
|
+
r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !== _G ? (vG = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18874
18874
|
value: "transform",
|
|
18875
18875
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18876
18876
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18877
18877
|
ref: Z,
|
|
18878
18878
|
initialValue: q,
|
|
18879
18879
|
columns: c,
|
|
18880
|
-
onChange:
|
|
18881
|
-
onInvalidChange:
|
|
18880
|
+
onChange: _G,
|
|
18881
|
+
onInvalidChange: tG,
|
|
18882
18882
|
getColumnValues: g,
|
|
18883
18883
|
columnTypesPerStep: B,
|
|
18884
18884
|
lazy: f
|
|
18885
18885
|
})
|
|
18886
|
-
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] =
|
|
18887
|
-
let
|
|
18888
|
-
r[41] === H ?
|
|
18886
|
+
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] = _G, r[40] = vG) : vG = r[40];
|
|
18887
|
+
let yG;
|
|
18888
|
+
r[41] === H ? yG = r[42] : (yG = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18889
18889
|
value: "python-code",
|
|
18890
18890
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18891
18891
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18894,9 +18894,9 @@ ${c}
|
|
|
18894
18894
|
code: H,
|
|
18895
18895
|
language: "python"
|
|
18896
18896
|
})
|
|
18897
|
-
}), r[41] = H, r[42] =
|
|
18898
|
-
let
|
|
18899
|
-
r[43] === W ?
|
|
18897
|
+
}), r[41] = H, r[42] = yG);
|
|
18898
|
+
let bG;
|
|
18899
|
+
r[43] === W ? bG = r[44] : (bG = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18900
18900
|
value: "sql-code",
|
|
18901
18901
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18902
18902
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18905,35 +18905,35 @@ ${c}
|
|
|
18905
18905
|
code: W,
|
|
18906
18906
|
language: "sql"
|
|
18907
18907
|
})
|
|
18908
|
-
}), r[43] = W, r[44] =
|
|
18909
|
-
let
|
|
18910
|
-
r[45] !==
|
|
18908
|
+
}), r[43] = W, r[44] = bG);
|
|
18909
|
+
let xG;
|
|
18910
|
+
r[45] !== rG || r[46] !== gG || r[47] !== vG || r[48] !== yG || r[49] !== bG ? (xG = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18911
18911
|
defaultValue: "transform",
|
|
18912
|
-
onValueChange:
|
|
18912
|
+
onValueChange: rG,
|
|
18913
18913
|
children: [
|
|
18914
|
-
|
|
18915
|
-
|
|
18916
|
-
|
|
18917
|
-
|
|
18914
|
+
gG,
|
|
18915
|
+
vG,
|
|
18916
|
+
yG,
|
|
18917
|
+
bG
|
|
18918
18918
|
]
|
|
18919
|
-
}), r[45] =
|
|
18920
|
-
let
|
|
18921
|
-
r[51] === O ?
|
|
18919
|
+
}), r[45] = rG, r[46] = gG, r[47] = vG, r[48] = yG, r[49] = bG, r[50] = xG) : xG = r[50];
|
|
18920
|
+
let SG;
|
|
18921
|
+
r[51] === O ? SG = r[52] : (SG = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18922
18922
|
error: O
|
|
18923
|
-
}), r[51] = O, r[52] =
|
|
18924
|
-
let
|
|
18925
|
-
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !==
|
|
18923
|
+
}), r[51] = O, r[52] = SG);
|
|
18924
|
+
let CG = I || "", wG = L ?? 0, TG = G ?? 0, EG = R || Arrays.EMPTY, DG = L && L > 5 || false, OG;
|
|
18925
|
+
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !== CG || r[61] !== wG || r[62] !== TG || r[63] !== EG || r[64] !== DG ? (OG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
18926
18926
|
label: null,
|
|
18927
18927
|
className: "rounded-b border-x border-b",
|
|
18928
|
-
data:
|
|
18928
|
+
data: CG,
|
|
18929
18929
|
hasStableRowId: false,
|
|
18930
|
-
totalRows:
|
|
18931
|
-
totalColumns:
|
|
18930
|
+
totalRows: wG,
|
|
18931
|
+
totalColumns: TG,
|
|
18932
18932
|
maxColumns: "all",
|
|
18933
18933
|
pageSize: l,
|
|
18934
18934
|
pagination: true,
|
|
18935
18935
|
fieldTypes: z,
|
|
18936
|
-
rowHeaders:
|
|
18936
|
+
rowHeaders: EG,
|
|
18937
18937
|
showDownload: u,
|
|
18938
18938
|
download_as: v,
|
|
18939
18939
|
get_size_bytes: y,
|
|
@@ -18943,7 +18943,7 @@ ${c}
|
|
|
18943
18943
|
showColumnSummaries: false,
|
|
18944
18944
|
showDataTypes: true,
|
|
18945
18945
|
get_column_summaries: getColumnSummaries,
|
|
18946
|
-
showPageSizeSelector:
|
|
18946
|
+
showPageSizeSelector: DG,
|
|
18947
18947
|
showColumnExplorer: false,
|
|
18948
18948
|
showRowExplorer: true,
|
|
18949
18949
|
showChartBuilder: false,
|
|
@@ -18952,15 +18952,15 @@ ${c}
|
|
|
18952
18952
|
selection: null,
|
|
18953
18953
|
lazy: false,
|
|
18954
18954
|
host: b
|
|
18955
|
-
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] =
|
|
18956
|
-
let
|
|
18957
|
-
return r[66] !==
|
|
18955
|
+
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] = CG, r[61] = wG, r[62] = TG, r[63] = EG, r[64] = DG, r[65] = OG) : OG = r[65];
|
|
18956
|
+
let kG;
|
|
18957
|
+
return r[66] !== xG || r[67] !== SG || r[68] !== OG ? (kG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18958
18958
|
children: [
|
|
18959
|
-
|
|
18960
|
-
|
|
18961
|
-
|
|
18959
|
+
xG,
|
|
18960
|
+
SG,
|
|
18961
|
+
OG
|
|
18962
18962
|
]
|
|
18963
|
-
}), r[66] =
|
|
18963
|
+
}), r[66] = xG, r[67] = SG, r[68] = OG, r[69] = kG) : kG = r[69], kG;
|
|
18964
18964
|
});
|
|
18965
18965
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18966
18966
|
function getColumnSummaries() {
|
|
@@ -19151,23 +19151,23 @@ ${c}
|
|
|
19151
19151
|
}, [
|
|
19152
19152
|
H
|
|
19153
19153
|
]);
|
|
19154
|
-
let q = (R == null ? void 0 : R.files) ?? [],
|
|
19154
|
+
let q = (R == null ? void 0 : R.files) ?? [], tG = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", nG = l === "file" || l === "all", rG = q.filter((e2) => Z && e2.is_directory || nG && !e2.is_directory), aG = rG.length > 0 && rG.every((e2) => tG.has(e2.path));
|
|
19155
19155
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
19156
19156
|
kind: "danger",
|
|
19157
19157
|
children: z.message
|
|
19158
19158
|
});
|
|
19159
|
-
let
|
|
19159
|
+
let oG = PathBuilder.guessDeliminator(c).deliminator, sG = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
19160
19160
|
children: e2.path
|
|
19161
19161
|
}, e2.id));
|
|
19162
|
-
function
|
|
19162
|
+
function cG(e2) {
|
|
19163
19163
|
var _a6;
|
|
19164
19164
|
if (v) return;
|
|
19165
19165
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
19166
|
-
if (g ===
|
|
19166
|
+
if (g === oG) {
|
|
19167
19167
|
y(false);
|
|
19168
19168
|
return;
|
|
19169
19169
|
}
|
|
19170
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
19170
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = oG);
|
|
19171
19171
|
}
|
|
19172
19172
|
let r2 = e2.length < c.length;
|
|
19173
19173
|
if (f && r2) {
|
|
@@ -19180,7 +19180,7 @@ ${c}
|
|
|
19180
19180
|
}
|
|
19181
19181
|
M.current = ((_a6 = j.current) == null ? void 0 : _a6.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
19182
19182
|
}
|
|
19183
|
-
function
|
|
19183
|
+
function uG({ path: e2, name: r2, isDirectory: c2 }) {
|
|
19184
19184
|
return {
|
|
19185
19185
|
id: e2,
|
|
19186
19186
|
name: r2,
|
|
@@ -19188,27 +19188,27 @@ ${c}
|
|
|
19188
19188
|
is_directory: c2
|
|
19189
19189
|
};
|
|
19190
19190
|
}
|
|
19191
|
-
function
|
|
19192
|
-
let f2 =
|
|
19191
|
+
function dG({ path: c2, name: l2, isDirectory: d2 }) {
|
|
19192
|
+
let f2 = uG({
|
|
19193
19193
|
path: c2,
|
|
19194
19194
|
name: l2,
|
|
19195
19195
|
isDirectory: d2
|
|
19196
19196
|
});
|
|
19197
|
-
|
|
19197
|
+
tG.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
19198
19198
|
...e,
|
|
19199
19199
|
f2
|
|
19200
19200
|
] : [
|
|
19201
19201
|
f2
|
|
19202
19202
|
]);
|
|
19203
19203
|
}
|
|
19204
|
-
function
|
|
19204
|
+
function fG() {
|
|
19205
19205
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
19206
19206
|
}
|
|
19207
|
-
function
|
|
19207
|
+
function pG() {
|
|
19208
19208
|
let c2 = [];
|
|
19209
19209
|
for (let e2 of q) {
|
|
19210
|
-
if (!Z && e2.is_directory ||
|
|
19211
|
-
let r2 =
|
|
19210
|
+
if (!Z && e2.is_directory || tG.has(e2.path)) continue;
|
|
19211
|
+
let r2 = uG({
|
|
19212
19212
|
path: e2.path,
|
|
19213
19213
|
name: e2.name,
|
|
19214
19214
|
isDirectory: e2.is_directory
|
|
@@ -19220,20 +19220,20 @@ ${c}
|
|
|
19220
19220
|
...c2
|
|
19221
19221
|
]);
|
|
19222
19222
|
}
|
|
19223
|
-
let
|
|
19223
|
+
let mG = [
|
|
19224
19224
|
{
|
|
19225
19225
|
key: "parent",
|
|
19226
19226
|
name: PARENT_DIRECTORY,
|
|
19227
19227
|
Icon: CornerLeftUp,
|
|
19228
19228
|
isSelected: false,
|
|
19229
19229
|
canSelect: false,
|
|
19230
|
-
onPrimary: () =>
|
|
19230
|
+
onPrimary: () => cG(PARENT_DIRECTORY),
|
|
19231
19231
|
onToggleSelect: null
|
|
19232
19232
|
},
|
|
19233
19233
|
...q.map((e2) => {
|
|
19234
19234
|
let r2 = e2.path;
|
|
19235
19235
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
19236
|
-
let c2 = Z && e2.is_directory ||
|
|
19236
|
+
let c2 = Z && e2.is_directory || nG && !e2.is_directory, l2 = tG.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => dG({
|
|
19237
19237
|
path: r2,
|
|
19238
19238
|
name: e2.name,
|
|
19239
19239
|
isDirectory: e2.is_directory
|
|
@@ -19244,46 +19244,46 @@ ${c}
|
|
|
19244
19244
|
Icon: FILE_ICON[u2],
|
|
19245
19245
|
isSelected: l2,
|
|
19246
19246
|
canSelect: c2,
|
|
19247
|
-
onPrimary: e2.is_directory ? () =>
|
|
19247
|
+
onPrimary: e2.is_directory ? () => cG(r2) : c2 ? d2 : () => {
|
|
19248
19248
|
},
|
|
19249
19249
|
onToggleSelect: c2 ? d2 : null
|
|
19250
19250
|
};
|
|
19251
19251
|
})
|
|
19252
19252
|
];
|
|
19253
|
-
function
|
|
19253
|
+
function hG(e2) {
|
|
19254
19254
|
var _a6;
|
|
19255
19255
|
E(e2), (_a6 = O.current[e2]) == null ? void 0 : _a6.focus();
|
|
19256
19256
|
}
|
|
19257
|
-
function
|
|
19257
|
+
function gG(e2, r2) {
|
|
19258
19258
|
var _a6, _b3;
|
|
19259
|
-
let c2 =
|
|
19259
|
+
let c2 = mG.length - 1;
|
|
19260
19260
|
switch (e2.key) {
|
|
19261
19261
|
case "ArrowDown":
|
|
19262
|
-
e2.preventDefault(),
|
|
19262
|
+
e2.preventDefault(), hG(Math.min(r2 + 1, c2));
|
|
19263
19263
|
break;
|
|
19264
19264
|
case "ArrowUp":
|
|
19265
|
-
e2.preventDefault(),
|
|
19265
|
+
e2.preventDefault(), hG(Math.max(r2 - 1, 0));
|
|
19266
19266
|
break;
|
|
19267
19267
|
case "Home":
|
|
19268
|
-
e2.preventDefault(),
|
|
19268
|
+
e2.preventDefault(), hG(0);
|
|
19269
19269
|
break;
|
|
19270
19270
|
case "End":
|
|
19271
|
-
e2.preventDefault(),
|
|
19271
|
+
e2.preventDefault(), hG(c2);
|
|
19272
19272
|
break;
|
|
19273
19273
|
case "Enter":
|
|
19274
|
-
e2.preventDefault(),
|
|
19274
|
+
e2.preventDefault(), mG[r2].onPrimary();
|
|
19275
19275
|
break;
|
|
19276
19276
|
case " ":
|
|
19277
|
-
e2.preventDefault(), (_b3 = (_a6 =
|
|
19277
|
+
e2.preventDefault(), (_b3 = (_a6 = mG[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a6);
|
|
19278
19278
|
break;
|
|
19279
19279
|
}
|
|
19280
19280
|
}
|
|
19281
|
-
let { parentDirectories:
|
|
19281
|
+
let { parentDirectories: _G } = getProtocolAndParentDirectories({
|
|
19282
19282
|
path: g,
|
|
19283
|
-
delimiter:
|
|
19283
|
+
delimiter: oG,
|
|
19284
19284
|
initialPath: c,
|
|
19285
19285
|
restrictNavigation: f
|
|
19286
|
-
}),
|
|
19286
|
+
}), vG = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
19287
19287
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
19288
19288
|
children: [
|
|
19289
19289
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -19293,7 +19293,7 @@ ${c}
|
|
|
19293
19293
|
(() => {
|
|
19294
19294
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
19295
19295
|
children: renderHTML({
|
|
19296
|
-
html: d ?? `Select ${
|
|
19296
|
+
html: d ?? `Select ${vG.join(" and ", 2)}...`
|
|
19297
19297
|
})
|
|
19298
19298
|
});
|
|
19299
19299
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -19307,8 +19307,8 @@ ${c}
|
|
|
19307
19307
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
19308
19308
|
size: "xs",
|
|
19309
19309
|
variant: "link",
|
|
19310
|
-
onClick:
|
|
19311
|
-
children:
|
|
19310
|
+
onClick: aG ? fG : pG,
|
|
19311
|
+
children: aG ? "Deselect all" : "Select all"
|
|
19312
19312
|
})
|
|
19313
19313
|
})
|
|
19314
19314
|
]
|
|
@@ -19318,8 +19318,8 @@ ${c}
|
|
|
19318
19318
|
className: "mt-2 w-full",
|
|
19319
19319
|
placeholder: g,
|
|
19320
19320
|
value: g,
|
|
19321
|
-
onChange: (e2) =>
|
|
19322
|
-
children:
|
|
19321
|
+
onChange: (e2) => cG(e2.target.value),
|
|
19322
|
+
children: _G.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
19323
19323
|
value: e2,
|
|
19324
19324
|
children: e2
|
|
19325
19325
|
}, e2))
|
|
@@ -19355,14 +19355,14 @@ ${c}
|
|
|
19355
19355
|
"aria-label": "File browser",
|
|
19356
19356
|
"aria-multiselectable": u,
|
|
19357
19357
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
19358
|
-
children:
|
|
19358
|
+
children: mG.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
19359
19359
|
role: "row",
|
|
19360
19360
|
ref: (e3) => {
|
|
19361
19361
|
O.current[r2] = e3;
|
|
19362
19362
|
},
|
|
19363
19363
|
tabIndex: r2 === w ? 0 : -1,
|
|
19364
19364
|
onFocus: () => E(r2),
|
|
19365
|
-
onKeyDown: (e3) =>
|
|
19365
|
+
onKeyDown: (e3) => gG(e3, r2),
|
|
19366
19366
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
19367
19367
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
19368
19368
|
}),
|
|
@@ -19405,7 +19405,7 @@ ${c}
|
|
|
19405
19405
|
children: [
|
|
19406
19406
|
e.length,
|
|
19407
19407
|
" ",
|
|
19408
|
-
|
|
19408
|
+
vG.join(" or ", e.length),
|
|
19409
19409
|
" ",
|
|
19410
19410
|
"selected"
|
|
19411
19411
|
]
|
|
@@ -19425,7 +19425,7 @@ ${c}
|
|
|
19425
19425
|
marginBlock: 0
|
|
19426
19426
|
},
|
|
19427
19427
|
className: "m-0 text-xs text-muted-foreground",
|
|
19428
|
-
children:
|
|
19428
|
+
children: sG
|
|
19429
19429
|
})
|
|
19430
19430
|
})
|
|
19431
19431
|
]
|
|
@@ -24807,55 +24807,55 @@ ${c}
|
|
|
24807
24807
|
return typeof S == "function" ? S : noop$2;
|
|
24808
24808
|
}, [
|
|
24809
24809
|
S
|
|
24810
|
-
]), q = (0, import_react.useRef)(null),
|
|
24811
|
-
!
|
|
24812
|
-
|
|
24810
|
+
]), q = (0, import_react.useRef)(null), tG = (0, import_react.useRef)(null), Z = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), nG = Z[0], rG = Z[1], iG = nG.isFocused, aG = nG.isFileDialogActive, oG = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), sG = function() {
|
|
24811
|
+
!oG.current && aG && setTimeout(function() {
|
|
24812
|
+
tG.current && (tG.current.files.length || (rG({
|
|
24813
24813
|
type: "closeDialog"
|
|
24814
24814
|
}), G()));
|
|
24815
24815
|
}, 300);
|
|
24816
24816
|
};
|
|
24817
24817
|
(0, import_react.useEffect)(function() {
|
|
24818
|
-
return window.addEventListener("focus",
|
|
24819
|
-
window.removeEventListener("focus",
|
|
24818
|
+
return window.addEventListener("focus", sG, false), function() {
|
|
24819
|
+
window.removeEventListener("focus", sG, false);
|
|
24820
24820
|
};
|
|
24821
24821
|
}, [
|
|
24822
|
-
ZW,
|
|
24823
24822
|
tG,
|
|
24823
|
+
aG,
|
|
24824
24824
|
G,
|
|
24825
|
-
|
|
24825
|
+
oG
|
|
24826
24826
|
]);
|
|
24827
|
-
var
|
|
24828
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
24827
|
+
var cG = (0, import_react.useRef)([]), lG = (0, import_react.useRef)([]), uG = function(e2) {
|
|
24828
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), cG.current = []);
|
|
24829
24829
|
};
|
|
24830
24830
|
(0, import_react.useEffect)(function() {
|
|
24831
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
24832
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
24831
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", uG, false)), function() {
|
|
24832
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", uG));
|
|
24833
24833
|
};
|
|
24834
24834
|
}, [
|
|
24835
24835
|
q,
|
|
24836
24836
|
O
|
|
24837
24837
|
]), (0, import_react.useEffect)(function() {
|
|
24838
24838
|
var e2 = function(e3) {
|
|
24839
|
-
|
|
24839
|
+
lG.current = [].concat(_toConsumableArray(lG.current), [
|
|
24840
24840
|
e3.target
|
|
24841
|
-
]), isEvtWithFiles(e3) &&
|
|
24841
|
+
]), isEvtWithFiles(e3) && rG({
|
|
24842
24842
|
isDragGlobal: true,
|
|
24843
24843
|
type: "setDragGlobal"
|
|
24844
24844
|
});
|
|
24845
24845
|
}, r2 = function(e3) {
|
|
24846
|
-
|
|
24846
|
+
lG.current = lG.current.filter(function(r3) {
|
|
24847
24847
|
return r3 !== e3.target && r3 !== null;
|
|
24848
|
-
}), !(
|
|
24848
|
+
}), !(lG.current.length > 0) && rG({
|
|
24849
24849
|
isDragGlobal: false,
|
|
24850
24850
|
type: "setDragGlobal"
|
|
24851
24851
|
});
|
|
24852
24852
|
}, c2 = function() {
|
|
24853
|
-
|
|
24853
|
+
lG.current = [], rG({
|
|
24854
24854
|
isDragGlobal: false,
|
|
24855
24855
|
type: "setDragGlobal"
|
|
24856
24856
|
});
|
|
24857
24857
|
}, l2 = function() {
|
|
24858
|
-
|
|
24858
|
+
lG.current = [], rG({
|
|
24859
24859
|
isDragGlobal: false,
|
|
24860
24860
|
type: "setDragGlobal"
|
|
24861
24861
|
});
|
|
@@ -24873,12 +24873,12 @@ ${c}
|
|
|
24873
24873
|
E,
|
|
24874
24874
|
l
|
|
24875
24875
|
]);
|
|
24876
|
-
var
|
|
24876
|
+
var dG = (0, import_react.useCallback)(function(e2) {
|
|
24877
24877
|
R ? R(e2) : console.error(e2);
|
|
24878
24878
|
}, [
|
|
24879
24879
|
R
|
|
24880
|
-
]),
|
|
24881
|
-
e2.preventDefault(), e2.persist(),
|
|
24880
|
+
]), fG = (0, import_react.useCallback)(function(e2) {
|
|
24881
|
+
e2.preventDefault(), e2.persist(), TG(e2), cG.current = [].concat(_toConsumableArray(cG.current), [
|
|
24882
24882
|
e2.target
|
|
24883
24883
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24884
24884
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -24891,7 +24891,7 @@ ${c}
|
|
|
24891
24891
|
maxFiles: m,
|
|
24892
24892
|
validator: z
|
|
24893
24893
|
});
|
|
24894
|
-
|
|
24894
|
+
rG({
|
|
24895
24895
|
isDragAccept: l2,
|
|
24896
24896
|
isDragReject: c2 > 0 && !l2,
|
|
24897
24897
|
isDragActive: true,
|
|
@@ -24899,12 +24899,12 @@ ${c}
|
|
|
24899
24899
|
}), h && h(e2);
|
|
24900
24900
|
}
|
|
24901
24901
|
}).catch(function(e3) {
|
|
24902
|
-
return
|
|
24902
|
+
return dG(e3);
|
|
24903
24903
|
});
|
|
24904
24904
|
}, [
|
|
24905
24905
|
u,
|
|
24906
24906
|
h,
|
|
24907
|
-
|
|
24907
|
+
dG,
|
|
24908
24908
|
L,
|
|
24909
24909
|
B,
|
|
24910
24910
|
f,
|
|
@@ -24912,8 +24912,8 @@ ${c}
|
|
|
24912
24912
|
p,
|
|
24913
24913
|
m,
|
|
24914
24914
|
z
|
|
24915
|
-
]),
|
|
24916
|
-
e2.preventDefault(), e2.persist(),
|
|
24915
|
+
]), pG = (0, import_react.useCallback)(function(e2) {
|
|
24916
|
+
e2.preventDefault(), e2.persist(), TG(e2);
|
|
24917
24917
|
var r2 = isEvtWithFiles(e2);
|
|
24918
24918
|
if (r2 && e2.dataTransfer) try {
|
|
24919
24919
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -24923,12 +24923,12 @@ ${c}
|
|
|
24923
24923
|
}, [
|
|
24924
24924
|
_,
|
|
24925
24925
|
L
|
|
24926
|
-
]),
|
|
24927
|
-
e2.preventDefault(), e2.persist(),
|
|
24928
|
-
var r2 =
|
|
24926
|
+
]), mG = (0, import_react.useCallback)(function(e2) {
|
|
24927
|
+
e2.preventDefault(), e2.persist(), TG(e2);
|
|
24928
|
+
var r2 = cG.current.filter(function(e3) {
|
|
24929
24929
|
return q.current && q.current.contains(e3);
|
|
24930
24930
|
}), c2 = r2.indexOf(e2.target);
|
|
24931
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
24931
|
+
c2 !== -1 && r2.splice(c2, 1), cG.current = r2, !(r2.length > 0) && (rG({
|
|
24932
24932
|
type: "setDraggedFiles",
|
|
24933
24933
|
isDragActive: false,
|
|
24934
24934
|
isDragAccept: false,
|
|
@@ -24938,7 +24938,7 @@ ${c}
|
|
|
24938
24938
|
q,
|
|
24939
24939
|
g,
|
|
24940
24940
|
L
|
|
24941
|
-
]),
|
|
24941
|
+
]), hG = (0, import_react.useCallback)(function(e2, r2) {
|
|
24942
24942
|
var c2 = [], l2 = [];
|
|
24943
24943
|
e2.forEach(function(e3) {
|
|
24944
24944
|
var r3 = _slicedToArray(fileAccepted(e3, B), 2), u2 = r3[0], p2 = r3[1], m2 = _slicedToArray(fileMatchSize(e3, f, d), 2), h2 = m2[0], g2 = m2[1], _2 = z ? z(e3) : null;
|
|
@@ -24962,14 +24962,14 @@ ${c}
|
|
|
24962
24962
|
TOO_MANY_FILES_REJECTION
|
|
24963
24963
|
]
|
|
24964
24964
|
});
|
|
24965
|
-
}), c2.splice(0)),
|
|
24965
|
+
}), c2.splice(0)), rG({
|
|
24966
24966
|
acceptedFiles: c2,
|
|
24967
24967
|
fileRejections: l2,
|
|
24968
24968
|
isDragReject: l2.length > 0,
|
|
24969
24969
|
type: "setFiles"
|
|
24970
24970
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
24971
24971
|
}, [
|
|
24972
|
-
|
|
24972
|
+
rG,
|
|
24973
24973
|
p,
|
|
24974
24974
|
B,
|
|
24975
24975
|
f,
|
|
@@ -24979,22 +24979,22 @@ ${c}
|
|
|
24979
24979
|
y,
|
|
24980
24980
|
b,
|
|
24981
24981
|
z
|
|
24982
|
-
]),
|
|
24983
|
-
e2.preventDefault(), e2.persist(),
|
|
24984
|
-
isPropagationStopped(e2) && !L ||
|
|
24982
|
+
]), gG = (0, import_react.useCallback)(function(e2) {
|
|
24983
|
+
e2.preventDefault(), e2.persist(), TG(e2), cG.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24984
|
+
isPropagationStopped(e2) && !L || hG(r2, e2);
|
|
24985
24985
|
}).catch(function(e3) {
|
|
24986
|
-
return
|
|
24987
|
-
}),
|
|
24986
|
+
return dG(e3);
|
|
24987
|
+
}), rG({
|
|
24988
24988
|
type: "reset"
|
|
24989
24989
|
});
|
|
24990
24990
|
}, [
|
|
24991
24991
|
u,
|
|
24992
|
+
hG,
|
|
24992
24993
|
dG,
|
|
24993
|
-
sG,
|
|
24994
24994
|
L
|
|
24995
|
-
]),
|
|
24996
|
-
if (
|
|
24997
|
-
|
|
24995
|
+
]), _G = (0, import_react.useCallback)(function() {
|
|
24996
|
+
if (oG.current) {
|
|
24997
|
+
rG({
|
|
24998
24998
|
type: "openDialog"
|
|
24999
24999
|
}), W();
|
|
25000
25000
|
var e2 = {
|
|
@@ -25004,66 +25004,66 @@ ${c}
|
|
|
25004
25004
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
25005
25005
|
return u(e3);
|
|
25006
25006
|
}).then(function(e3) {
|
|
25007
|
-
|
|
25007
|
+
hG(e3, null), rG({
|
|
25008
25008
|
type: "closeDialog"
|
|
25009
25009
|
});
|
|
25010
25010
|
}).catch(function(e3) {
|
|
25011
|
-
isAbort(e3) ? (G(e3),
|
|
25011
|
+
isAbort(e3) ? (G(e3), rG({
|
|
25012
25012
|
type: "closeDialog"
|
|
25013
|
-
})) : isSecurityError(e3) ? (
|
|
25013
|
+
})) : isSecurityError(e3) ? (oG.current = false, tG.current ? (tG.current.value = null, tG.current.click()) : dG(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : dG(e3);
|
|
25014
25014
|
});
|
|
25015
25015
|
return;
|
|
25016
25016
|
}
|
|
25017
|
-
|
|
25017
|
+
tG.current && (rG({
|
|
25018
25018
|
type: "openDialog"
|
|
25019
|
-
}), W(),
|
|
25019
|
+
}), W(), tG.current.value = null, tG.current.click());
|
|
25020
25020
|
}, [
|
|
25021
|
-
|
|
25021
|
+
rG,
|
|
25022
25022
|
W,
|
|
25023
25023
|
G,
|
|
25024
25024
|
T,
|
|
25025
|
+
hG,
|
|
25025
25026
|
dG,
|
|
25026
|
-
sG,
|
|
25027
25027
|
H,
|
|
25028
25028
|
p
|
|
25029
|
-
]),
|
|
25030
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
25029
|
+
]), vG = (0, import_react.useCallback)(function(e2) {
|
|
25030
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), _G());
|
|
25031
25031
|
}, [
|
|
25032
25032
|
q,
|
|
25033
|
-
|
|
25034
|
-
]),
|
|
25035
|
-
|
|
25033
|
+
_G
|
|
25034
|
+
]), yG = (0, import_react.useCallback)(function() {
|
|
25035
|
+
rG({
|
|
25036
25036
|
type: "focus"
|
|
25037
25037
|
});
|
|
25038
|
-
}, []),
|
|
25039
|
-
|
|
25038
|
+
}, []), bG = (0, import_react.useCallback)(function() {
|
|
25039
|
+
rG({
|
|
25040
25040
|
type: "blur"
|
|
25041
25041
|
});
|
|
25042
|
-
}, []),
|
|
25043
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
25042
|
+
}, []), xG = (0, import_react.useCallback)(function() {
|
|
25043
|
+
j || (isIeOrEdge() ? setTimeout(_G, 0) : _G());
|
|
25044
25044
|
}, [
|
|
25045
25045
|
j,
|
|
25046
|
-
|
|
25047
|
-
]),
|
|
25046
|
+
_G
|
|
25047
|
+
]), SG = function(e2) {
|
|
25048
25048
|
return l ? null : e2;
|
|
25049
|
-
},
|
|
25050
|
-
return M ? null :
|
|
25051
|
-
},
|
|
25052
|
-
return I ? null :
|
|
25053
|
-
},
|
|
25049
|
+
}, CG = function(e2) {
|
|
25050
|
+
return M ? null : SG(e2);
|
|
25051
|
+
}, wG = function(e2) {
|
|
25052
|
+
return I ? null : SG(e2);
|
|
25053
|
+
}, TG = function(e2) {
|
|
25054
25054
|
L && e2.stopPropagation();
|
|
25055
|
-
},
|
|
25055
|
+
}, EG = (0, import_react.useMemo)(function() {
|
|
25056
25056
|
return function() {
|
|
25057
25057
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, u2 = e2.role, d2 = e2.onKeyDown, f2 = e2.onFocus, p2 = e2.onBlur, m2 = e2.onClick, h2 = e2.onDragEnter, g2 = e2.onDragOver, _2 = e2.onDragLeave, v2 = e2.onDrop, y2 = _objectWithoutProperties$2(e2, _excluded3);
|
|
25058
25058
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
25059
|
-
onKeyDown:
|
|
25060
|
-
onFocus:
|
|
25061
|
-
onBlur:
|
|
25062
|
-
onClick:
|
|
25063
|
-
onDragEnter:
|
|
25064
|
-
onDragOver:
|
|
25065
|
-
onDragLeave:
|
|
25066
|
-
onDrop:
|
|
25059
|
+
onKeyDown: CG(composeEventHandlers(d2, vG)),
|
|
25060
|
+
onFocus: CG(composeEventHandlers(f2, yG)),
|
|
25061
|
+
onBlur: CG(composeEventHandlers(p2, bG)),
|
|
25062
|
+
onClick: SG(composeEventHandlers(m2, xG)),
|
|
25063
|
+
onDragEnter: wG(composeEventHandlers(h2, fG)),
|
|
25064
|
+
onDragOver: wG(composeEventHandlers(g2, pG)),
|
|
25065
|
+
onDragLeave: wG(composeEventHandlers(_2, mG)),
|
|
25066
|
+
onDrop: wG(composeEventHandlers(v2, gG)),
|
|
25067
25067
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
25068
25068
|
}, c2, q), !l && !M ? {
|
|
25069
25069
|
tabIndex: 0
|
|
@@ -25071,20 +25071,20 @@ ${c}
|
|
|
25071
25071
|
};
|
|
25072
25072
|
}, [
|
|
25073
25073
|
q,
|
|
25074
|
+
vG,
|
|
25075
|
+
yG,
|
|
25076
|
+
bG,
|
|
25077
|
+
xG,
|
|
25078
|
+
fG,
|
|
25079
|
+
pG,
|
|
25074
25080
|
mG,
|
|
25075
|
-
hG,
|
|
25076
25081
|
gG,
|
|
25077
|
-
_G,
|
|
25078
|
-
cG,
|
|
25079
|
-
lG,
|
|
25080
|
-
uG,
|
|
25081
|
-
fG,
|
|
25082
25082
|
M,
|
|
25083
25083
|
I,
|
|
25084
25084
|
l
|
|
25085
|
-
]),
|
|
25085
|
+
]), DG = (0, import_react.useCallback)(function(e2) {
|
|
25086
25086
|
e2.stopPropagation();
|
|
25087
|
-
}, []),
|
|
25087
|
+
}, []), OG = (0, import_react.useMemo)(function() {
|
|
25088
25088
|
return function() {
|
|
25089
25089
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, l2 = e2.onChange, u2 = e2.onClick, d2 = _objectWithoutProperties$2(e2, _excluded4);
|
|
25090
25090
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -25103,25 +25103,25 @@ ${c}
|
|
|
25103
25103
|
width: "1px",
|
|
25104
25104
|
whiteSpace: "nowrap"
|
|
25105
25105
|
},
|
|
25106
|
-
onChange:
|
|
25107
|
-
onClick:
|
|
25106
|
+
onChange: SG(composeEventHandlers(l2, gG)),
|
|
25107
|
+
onClick: SG(composeEventHandlers(u2, DG)),
|
|
25108
25108
|
tabIndex: -1
|
|
25109
|
-
}, c2,
|
|
25109
|
+
}, c2, tG)), d2);
|
|
25110
25110
|
};
|
|
25111
25111
|
}, [
|
|
25112
|
-
|
|
25112
|
+
tG,
|
|
25113
25113
|
c,
|
|
25114
25114
|
p,
|
|
25115
|
-
|
|
25115
|
+
gG,
|
|
25116
25116
|
l
|
|
25117
25117
|
]);
|
|
25118
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
25119
|
-
isFocused:
|
|
25120
|
-
getRootProps:
|
|
25121
|
-
getInputProps:
|
|
25118
|
+
return _objectSpread$7(_objectSpread$7({}, nG), {}, {
|
|
25119
|
+
isFocused: iG && !l,
|
|
25120
|
+
getRootProps: EG,
|
|
25121
|
+
getInputProps: OG,
|
|
25122
25122
|
rootRef: q,
|
|
25123
|
-
inputRef:
|
|
25124
|
-
open:
|
|
25123
|
+
inputRef: tG,
|
|
25124
|
+
open: SG(_G)
|
|
25125
25125
|
});
|
|
25126
25126
|
}
|
|
25127
25127
|
function reducer$2(e, r) {
|
|
@@ -25353,47 +25353,47 @@ ${c}
|
|
|
25353
25353
|
html: I
|
|
25354
25354
|
})
|
|
25355
25355
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
25356
|
-
let q = w && "text-primary",
|
|
25357
|
-
r[48] !== q || r[49] !==
|
|
25358
|
-
let
|
|
25359
|
-
r[51] === Z ?
|
|
25356
|
+
let q = w && "text-primary", tG = T && "text-destructive", Z;
|
|
25357
|
+
r[48] !== q || r[49] !== tG ? (Z = cn(q, tG), r[48] = q, r[49] = tG, r[50] = Z) : Z = r[50];
|
|
25358
|
+
let nG;
|
|
25359
|
+
r[51] === Z ? nG = r[52] : (nG = (0, import_jsx_runtime.jsx)(Upload, {
|
|
25360
25360
|
strokeWidth: 1.4,
|
|
25361
25361
|
className: Z
|
|
25362
|
-
}), r[51] = Z, r[52] =
|
|
25363
|
-
let
|
|
25364
|
-
r[53] !==
|
|
25365
|
-
let
|
|
25366
|
-
r[56] ===
|
|
25362
|
+
}), r[51] = Z, r[52] = nG);
|
|
25363
|
+
let rG = w && "text-primary", iG = T && "text-destructive", aG;
|
|
25364
|
+
r[53] !== rG || r[54] !== iG ? (aG = cn(rG, iG), r[53] = rG, r[54] = iG, r[55] = aG) : aG = r[55];
|
|
25365
|
+
let oG;
|
|
25366
|
+
r[56] === aG ? oG = r[57] : (oG = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
25367
25367
|
strokeWidth: 1.4,
|
|
25368
|
-
className:
|
|
25369
|
-
}), r[56] =
|
|
25370
|
-
let
|
|
25371
|
-
r[58] !==
|
|
25368
|
+
className: aG
|
|
25369
|
+
}), r[56] = aG, r[57] = oG);
|
|
25370
|
+
let sG;
|
|
25371
|
+
r[58] !== nG || r[59] !== oG ? (sG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25372
25372
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
25373
25373
|
children: [
|
|
25374
|
-
|
|
25375
|
-
|
|
25374
|
+
nG,
|
|
25375
|
+
oG
|
|
25376
25376
|
]
|
|
25377
|
-
}), r[58] =
|
|
25378
|
-
let
|
|
25379
|
-
r[61] !== G || r[62] !==
|
|
25377
|
+
}), r[58] = nG, r[59] = oG, r[60] = sG) : sG = r[60];
|
|
25378
|
+
let cG;
|
|
25379
|
+
r[61] !== G || r[62] !== sG ? (cG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25380
25380
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
25381
25381
|
children: [
|
|
25382
25382
|
G,
|
|
25383
|
-
|
|
25383
|
+
sG
|
|
25384
25384
|
]
|
|
25385
|
-
}), r[61] = G, r[62] =
|
|
25386
|
-
let
|
|
25387
|
-
r[64] !== W || r[65] !==
|
|
25385
|
+
}), r[61] = G, r[62] = sG, r[63] = cG) : cG = r[63];
|
|
25386
|
+
let uG;
|
|
25387
|
+
r[64] !== W || r[65] !== cG || r[66] !== z || r[67] !== B ? (uG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25388
25388
|
className: z,
|
|
25389
25389
|
...B,
|
|
25390
25390
|
children: [
|
|
25391
25391
|
W,
|
|
25392
|
-
|
|
25392
|
+
cG
|
|
25393
25393
|
]
|
|
25394
|
-
}), r[64] = W, r[65] =
|
|
25395
|
-
let
|
|
25396
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (
|
|
25394
|
+
}), r[64] = W, r[65] = cG, r[66] = z, r[67] = B, r[68] = uG) : uG = r[68];
|
|
25395
|
+
let dG;
|
|
25396
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (dG = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
25397
25397
|
className: "flex flex-row gap-1",
|
|
25398
25398
|
children: [
|
|
25399
25399
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -25429,17 +25429,17 @@ ${c}
|
|
|
25429
25429
|
})
|
|
25430
25430
|
})
|
|
25431
25431
|
]
|
|
25432
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] =
|
|
25433
|
-
let
|
|
25434
|
-
return r[75] !==
|
|
25432
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] = dG) : dG = r[74];
|
|
25433
|
+
let fG;
|
|
25434
|
+
return r[75] !== uG || r[76] !== dG ? (fG = (0, import_jsx_runtime.jsx)("section", {
|
|
25435
25435
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
25436
25436
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
25437
25437
|
children: [
|
|
25438
|
-
|
|
25439
|
-
|
|
25438
|
+
uG,
|
|
25439
|
+
dG
|
|
25440
25440
|
]
|
|
25441
25441
|
})
|
|
25442
|
-
}), r[75] =
|
|
25442
|
+
}), r[75] = uG, r[76] = dG, r[77] = fG) : fG = r[77], fG;
|
|
25443
25443
|
};
|
|
25444
25444
|
function _temp$11(e) {
|
|
25445
25445
|
Logger.error(e), toast({
|
|
@@ -25536,75 +25536,75 @@ ${c}
|
|
|
25536
25536
|
var _a5;
|
|
25537
25537
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), (_a5 = j.current) == null ? void 0 : _a5.requestSubmit());
|
|
25538
25538
|
}, r[10] = q) : q = r[10];
|
|
25539
|
-
let
|
|
25540
|
-
r[11] === f ?
|
|
25539
|
+
let tG;
|
|
25540
|
+
r[11] === f ? tG = r[12] : (tG = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
25541
25541
|
className: "text-center",
|
|
25542
25542
|
children: renderHTML({
|
|
25543
25543
|
html: f
|
|
25544
25544
|
})
|
|
25545
|
-
}), r[11] = f, r[12] =
|
|
25545
|
+
}), r[11] = f, r[12] = tG);
|
|
25546
25546
|
let Z;
|
|
25547
25547
|
r[13] === L ? Z = r[14] : (Z = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25548
25548
|
kind: "danger",
|
|
25549
25549
|
className: "rounded",
|
|
25550
25550
|
children: L ?? "Invalid input"
|
|
25551
25551
|
}), r[13] = L, r[14] = Z);
|
|
25552
|
-
let
|
|
25553
|
-
r[15] === c ?
|
|
25552
|
+
let nG;
|
|
25553
|
+
r[15] === c ? nG = r[16] : (nG = (0, import_jsx_runtime.jsx)("div", {
|
|
25554
25554
|
children: c
|
|
25555
|
-
}), r[15] = c, r[16] =
|
|
25556
|
-
let
|
|
25557
|
-
r[17] !== S || r[18] !== w || r[19] !== b ? (
|
|
25555
|
+
}), r[15] = c, r[16] = nG);
|
|
25556
|
+
let rG;
|
|
25557
|
+
r[17] !== S || r[18] !== w || r[19] !== b ? (rG = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
25558
25558
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
25559
25559
|
variant: "text",
|
|
25560
25560
|
onClick: (e2) => {
|
|
25561
25561
|
e2.preventDefault(), B();
|
|
25562
25562
|
},
|
|
25563
25563
|
children: S
|
|
25564
|
-
}), w), r[17] = S, r[18] = w, r[19] = b, r[20] =
|
|
25565
|
-
let
|
|
25566
|
-
r[21] === m ?
|
|
25564
|
+
}), w), r[17] = S, r[18] = w, r[19] = b, r[20] = rG) : rG = r[20];
|
|
25565
|
+
let iG = v || m, aG;
|
|
25566
|
+
r[21] === m ? aG = r[22] : (aG = m && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
25567
25567
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
25568
|
-
}), r[21] = m, r[22] =
|
|
25569
|
-
let
|
|
25570
|
-
r[23] !== g || r[24] !==
|
|
25568
|
+
}), r[21] = m, r[22] = aG);
|
|
25569
|
+
let oG;
|
|
25570
|
+
r[23] !== g || r[24] !== iG || r[25] !== aG || r[26] !== I ? (oG = (0, import_jsx_runtime.jsxs)(Button, {
|
|
25571
25571
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
25572
25572
|
variant: I,
|
|
25573
|
-
disabled:
|
|
25573
|
+
disabled: iG,
|
|
25574
25574
|
type: "submit",
|
|
25575
25575
|
children: [
|
|
25576
|
-
|
|
25576
|
+
aG,
|
|
25577
25577
|
g
|
|
25578
25578
|
]
|
|
25579
|
-
}), r[23] = g, r[24] =
|
|
25580
|
-
let
|
|
25581
|
-
r[28] !== _ || r[29] !==
|
|
25582
|
-
let
|
|
25583
|
-
r[31] !==
|
|
25579
|
+
}), r[23] = g, r[24] = iG, r[25] = aG, r[26] = I, r[27] = oG) : oG = r[27];
|
|
25580
|
+
let sG;
|
|
25581
|
+
r[28] !== _ || r[29] !== oG ? (sG = withTooltip(oG, _), r[28] = _, r[29] = oG, r[30] = sG) : sG = r[30];
|
|
25582
|
+
let cG;
|
|
25583
|
+
r[31] !== sG || r[32] !== rG ? (cG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25584
25584
|
className: "flex justify-end gap-2 font-code",
|
|
25585
25585
|
children: [
|
|
25586
|
-
|
|
25587
|
-
|
|
25586
|
+
rG,
|
|
25587
|
+
sG
|
|
25588
25588
|
]
|
|
25589
|
-
}), r[31] =
|
|
25590
|
-
let
|
|
25591
|
-
r[34] !==
|
|
25589
|
+
}), r[31] = sG, r[32] = rG, r[33] = cG) : cG = r[33];
|
|
25590
|
+
let uG;
|
|
25591
|
+
r[34] !== cG || r[35] !== G || r[36] !== tG || r[37] !== Z || r[38] !== nG ? (uG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25592
25592
|
className: G,
|
|
25593
25593
|
onKeyDown: q,
|
|
25594
25594
|
children: [
|
|
25595
|
-
|
|
25595
|
+
tG,
|
|
25596
25596
|
Z,
|
|
25597
|
-
|
|
25598
|
-
|
|
25597
|
+
nG,
|
|
25598
|
+
cG
|
|
25599
25599
|
]
|
|
25600
|
-
}), r[34] =
|
|
25601
|
-
let
|
|
25602
|
-
return r[40] !==
|
|
25600
|
+
}), r[34] = cG, r[35] = G, r[36] = tG, r[37] = Z, r[38] = nG, r[39] = uG) : uG = r[39];
|
|
25601
|
+
let dG;
|
|
25602
|
+
return r[40] !== uG || r[41] !== H ? (dG = (0, import_jsx_runtime.jsx)("form", {
|
|
25603
25603
|
className: "contents",
|
|
25604
25604
|
ref: j,
|
|
25605
25605
|
onSubmit: H,
|
|
25606
|
-
children:
|
|
25607
|
-
}), r[40] =
|
|
25606
|
+
children: uG
|
|
25607
|
+
}), r[40] = uG, r[41] = H, r[42] = dG) : dG = r[42], dG;
|
|
25608
25608
|
};
|
|
25609
25609
|
var Form = (e) => {
|
|
25610
25610
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -25685,7 +25685,10 @@ ${c}
|
|
|
25685
25685
|
setValue: e.setValue
|
|
25686
25686
|
});
|
|
25687
25687
|
}
|
|
25688
|
-
}, PIXELS_PER_STEP = 10,
|
|
25688
|
+
}, PIXELS_PER_STEP = 10, COARSE_MULTIPLIER = 10, FINE_MULTIPLIER = 0.1, stepMultiplier = (e) => e.shiftKey ? COARSE_MULTIPLIER : e.altKey ? FINE_MULTIPLIER : 1, cleanFloat = (e, r) => {
|
|
25689
|
+
let c = Number(e.toFixed(12)), l = 2 ** -52 * Math.max(Math.abs(e), Math.abs(r)) * 100;
|
|
25690
|
+
return Math.abs(e - c) <= l ? c : e;
|
|
25691
|
+
}, MatrixComponent = ({ value: e, setValue: r, label: c, minValue: l, maxValue: u, step: d, precision: f, rowLabels: p, columnLabels: m, symmetric: g, debounce: _, scientific: v, disabled: y }) => {
|
|
25689
25692
|
var _a5;
|
|
25690
25693
|
let b = (0, import_react.useRef)(null), [S, w] = (0, import_react.useState)(null), [T, E] = (0, import_react.useState)(e);
|
|
25691
25694
|
(0, import_react.useEffect)(() => {
|
|
@@ -25693,68 +25696,140 @@ ${c}
|
|
|
25693
25696
|
}, [
|
|
25694
25697
|
e
|
|
25695
25698
|
]);
|
|
25696
|
-
let O = S == null ? e : T, j = (
|
|
25699
|
+
let O = S == null ? e : T, [j, M] = (0, import_react.useState)(null), I = (0, import_react.useRef)(null), L = (0, import_react.useRef)(null), R = (0, import_react.useCallback)((e2) => {
|
|
25700
|
+
I.current = e2, M(e2);
|
|
25701
|
+
}, []), z = (e2) => v ? e2.toExponential(f) : e2.toFixed(f), B = (0, import_react.useCallback)((e2, r2, c2) => {
|
|
25697
25702
|
let d2 = e2;
|
|
25698
25703
|
return l != null && (d2 = Math.max(d2, l[r2][c2])), u != null && (d2 = Math.min(d2, u[r2][c2])), d2;
|
|
25699
25704
|
}, [
|
|
25700
25705
|
l,
|
|
25701
25706
|
u
|
|
25702
|
-
]),
|
|
25703
|
-
|
|
25707
|
+
]), H = (0, import_react.useCallback)((e2, r2, c2, l2) => {
|
|
25708
|
+
let u2 = g && r2 !== c2, d2 = B(l2, r2, c2);
|
|
25709
|
+
if (u2 && (d2 = B(d2, c2, r2)), d2 === e2[r2][c2]) return null;
|
|
25710
|
+
let f2 = e2.map((e3) => [
|
|
25711
|
+
...e3
|
|
25712
|
+
]);
|
|
25713
|
+
return f2[r2][c2] = d2, u2 && (f2[c2][r2] = d2), f2;
|
|
25714
|
+
}, [
|
|
25715
|
+
g,
|
|
25716
|
+
B
|
|
25717
|
+
]), W = (0, import_react.useCallback)((r2, c2, l2) => {
|
|
25718
|
+
y[r2][c2] || (b.current = null, w(null), R({
|
|
25719
|
+
row: r2,
|
|
25720
|
+
col: c2,
|
|
25721
|
+
text: l2 ?? String(e[r2][c2]),
|
|
25722
|
+
selectAll: l2 == null
|
|
25723
|
+
}));
|
|
25724
|
+
}, [
|
|
25725
|
+
y,
|
|
25726
|
+
e,
|
|
25727
|
+
R
|
|
25728
|
+
]), G = (0, import_react.useCallback)((e2) => {
|
|
25729
|
+
var _a6;
|
|
25730
|
+
L.current = e2, e2 && (e2.focus(), ((_a6 = I.current) == null ? void 0 : _a6.selectAll) ? e2.select() : e2.setSelectionRange(e2.value.length, e2.value.length));
|
|
25731
|
+
}, []), q = (0, import_react.useCallback)((c2) => {
|
|
25732
|
+
var _a6;
|
|
25733
|
+
let l2 = I.current;
|
|
25734
|
+
if (!l2) return;
|
|
25735
|
+
let u2 = c2 ? (_a6 = L.current) == null ? void 0 : _a6.closest("td") : null;
|
|
25736
|
+
R(null);
|
|
25737
|
+
let d2 = l2.text.trim(), f2 = Number(d2);
|
|
25738
|
+
if (d2 !== "" && Number.isFinite(f2)) {
|
|
25739
|
+
let c3 = H(e, l2.row, l2.col, f2);
|
|
25740
|
+
c3 && (E(c3), r(c3));
|
|
25741
|
+
}
|
|
25742
|
+
u2 == null ? void 0 : u2.focus();
|
|
25743
|
+
}, [
|
|
25744
|
+
e,
|
|
25745
|
+
H,
|
|
25746
|
+
r,
|
|
25747
|
+
R
|
|
25748
|
+
]), tG = (0, import_react.useCallback)(() => {
|
|
25749
|
+
var _a6;
|
|
25750
|
+
let e2 = (_a6 = L.current) == null ? void 0 : _a6.closest("td");
|
|
25751
|
+
R(null), e2 == null ? void 0 : e2.focus();
|
|
25752
|
+
}, [
|
|
25753
|
+
R
|
|
25754
|
+
]), Z = (0, import_react.useCallback)((e2) => {
|
|
25755
|
+
e2.stopPropagation(), e2.key === "Enter" ? (e2.preventDefault(), q(true)) : e2.key === "Escape" && (e2.preventDefault(), tG());
|
|
25756
|
+
}, [
|
|
25757
|
+
q,
|
|
25758
|
+
tG
|
|
25759
|
+
]), nG = (0, import_react.useCallback)((e2, r2, c2) => {
|
|
25760
|
+
y[r2][c2] || j != null || !(e2.target instanceof Element) || (e2.preventDefault(), e2.currentTarget.focus(), e2.target.setPointerCapture(e2.pointerId), b.current = {
|
|
25704
25761
|
row: r2,
|
|
25705
25762
|
col: c2,
|
|
25706
25763
|
startX: e2.clientX,
|
|
25707
|
-
startValue: O[r2][c2]
|
|
25764
|
+
startValue: O[r2][c2],
|
|
25765
|
+
multiplier: stepMultiplier(e2)
|
|
25708
25766
|
}, w({
|
|
25709
25767
|
row: r2,
|
|
25710
25768
|
col: c2
|
|
25711
25769
|
}));
|
|
25712
25770
|
}, [
|
|
25713
25771
|
y,
|
|
25772
|
+
j,
|
|
25714
25773
|
O
|
|
25715
|
-
]),
|
|
25774
|
+
]), rG = (0, import_react.useCallback)((e2) => {
|
|
25716
25775
|
let c2 = b.current;
|
|
25717
25776
|
if (!c2) return;
|
|
25718
|
-
let
|
|
25719
|
-
|
|
25720
|
-
|
|
25721
|
-
|
|
25722
|
-
]);
|
|
25723
|
-
e3[l2][u2] = v2, g && l2 !== u2 && (e3[u2][l2] = v2), E(e3), _ || r(e3);
|
|
25724
|
-
}
|
|
25777
|
+
let l2 = stepMultiplier(e2);
|
|
25778
|
+
l2 !== c2.multiplier && (c2.startX = e2.clientX, c2.startValue = O[c2.row][c2.col], c2.multiplier = l2);
|
|
25779
|
+
let { row: u2, col: f2, startX: p2, startValue: m2 } = c2, h = e2.clientX - p2, g2 = d[u2][f2] * l2, v2 = H(O, u2, f2, cleanFloat(m2 + Math.round(h / PIXELS_PER_STEP) * g2, g2));
|
|
25780
|
+
v2 && (E(v2), _ || r(v2));
|
|
25725
25781
|
}, [
|
|
25726
25782
|
d,
|
|
25727
|
-
M,
|
|
25728
25783
|
O,
|
|
25729
|
-
|
|
25784
|
+
H,
|
|
25730
25785
|
_,
|
|
25731
25786
|
r
|
|
25732
|
-
]),
|
|
25787
|
+
]), iG = (0, import_react.useCallback)(() => {
|
|
25733
25788
|
_ && b.current && r(O), b.current = null, w(null);
|
|
25734
25789
|
}, [
|
|
25735
25790
|
_,
|
|
25736
25791
|
O,
|
|
25737
25792
|
r
|
|
25738
|
-
]),
|
|
25739
|
-
if (
|
|
25740
|
-
|
|
25741
|
-
e2.preventDefault();
|
|
25742
|
-
|
|
25743
|
-
if (p2 !== O[c2][l2]) {
|
|
25744
|
-
let e3 = O.map((e4) => [
|
|
25745
|
-
...e4
|
|
25746
|
-
]);
|
|
25747
|
-
e3[c2][l2] = p2, g && c2 !== l2 && (e3[l2][c2] = p2), E(e3), r(e3);
|
|
25748
|
-
}
|
|
25793
|
+
]), aG = (0, import_react.useCallback)((e2, c2, l2) => {
|
|
25794
|
+
if (y[c2][l2]) return;
|
|
25795
|
+
if (e2.key === "Enter" || e2.key === "F2") {
|
|
25796
|
+
e2.preventDefault(), W(c2, l2);
|
|
25797
|
+
return;
|
|
25749
25798
|
}
|
|
25799
|
+
if (e2.key.length === 1 && /[\d.+-]/.test(e2.key) && !e2.ctrlKey && !e2.metaKey && !e2.altKey) {
|
|
25800
|
+
e2.preventDefault(), W(c2, l2, e2.key);
|
|
25801
|
+
return;
|
|
25802
|
+
}
|
|
25803
|
+
let u2 = d[c2][l2], f2;
|
|
25804
|
+
switch (e2.key) {
|
|
25805
|
+
case "ArrowUp":
|
|
25806
|
+
case "ArrowRight":
|
|
25807
|
+
f2 = u2 * stepMultiplier(e2);
|
|
25808
|
+
break;
|
|
25809
|
+
case "ArrowDown":
|
|
25810
|
+
case "ArrowLeft":
|
|
25811
|
+
f2 = -u2 * stepMultiplier(e2);
|
|
25812
|
+
break;
|
|
25813
|
+
case "PageUp":
|
|
25814
|
+
f2 = u2 * COARSE_MULTIPLIER;
|
|
25815
|
+
break;
|
|
25816
|
+
case "PageDown":
|
|
25817
|
+
f2 = -u2 * COARSE_MULTIPLIER;
|
|
25818
|
+
break;
|
|
25819
|
+
default:
|
|
25820
|
+
return;
|
|
25821
|
+
}
|
|
25822
|
+
e2.preventDefault();
|
|
25823
|
+
let p2 = H(O, c2, l2, cleanFloat(O[c2][l2] + f2, f2));
|
|
25824
|
+
p2 && (E(p2), r(p2));
|
|
25750
25825
|
}, [
|
|
25751
25826
|
y,
|
|
25827
|
+
W,
|
|
25752
25828
|
d,
|
|
25753
25829
|
O,
|
|
25754
|
-
|
|
25755
|
-
g,
|
|
25830
|
+
H,
|
|
25756
25831
|
r
|
|
25757
|
-
]),
|
|
25832
|
+
]), oG = p != null && p.length > 0, sG = m != null && m.length > 0, cG = O.length, lG = ((_a5 = O[0]) == null ? void 0 : _a5.length) ?? 0;
|
|
25758
25833
|
return (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25759
25834
|
label: c,
|
|
25760
25835
|
align: "top",
|
|
@@ -25762,18 +25837,18 @@ ${c}
|
|
|
25762
25837
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
25763
25838
|
className: "relative inline-block",
|
|
25764
25839
|
"data-testid": "marimo-plugin-matrix",
|
|
25765
|
-
onPointerMove:
|
|
25766
|
-
onPointerUp:
|
|
25767
|
-
onPointerCancel:
|
|
25840
|
+
onPointerMove: rG,
|
|
25841
|
+
onPointerUp: iG,
|
|
25842
|
+
onPointerCancel: iG,
|
|
25768
25843
|
children: (0, import_jsx_runtime.jsxs)("table", {
|
|
25769
25844
|
className: "font-mono text-sm tabular-nums select-none border-separate border-spacing-0",
|
|
25770
25845
|
role: "group",
|
|
25771
25846
|
"aria-label": c || "Matrix",
|
|
25772
25847
|
children: [
|
|
25773
|
-
|
|
25848
|
+
sG && (0, import_jsx_runtime.jsx)("thead", {
|
|
25774
25849
|
children: (0, import_jsx_runtime.jsxs)("tr", {
|
|
25775
25850
|
children: [
|
|
25776
|
-
|
|
25851
|
+
oG && (0, import_jsx_runtime.jsx)("th", {}),
|
|
25777
25852
|
m.map((e2, r2) => (0, import_jsx_runtime.jsx)("th", {
|
|
25778
25853
|
className: "text-center text-sm font-medium text-foreground px-2 pb-1",
|
|
25779
25854
|
children: e2
|
|
@@ -25784,25 +25859,43 @@ ${c}
|
|
|
25784
25859
|
(0, import_jsx_runtime.jsx)("tbody", {
|
|
25785
25860
|
children: O.map((e2, r2) => (0, import_jsx_runtime.jsxs)("tr", {
|
|
25786
25861
|
children: [
|
|
25787
|
-
|
|
25862
|
+
oG && (0, import_jsx_runtime.jsx)("th", {
|
|
25788
25863
|
className: "text-right text-sm font-medium text-foreground pr-3 h-8",
|
|
25789
25864
|
children: p[r2]
|
|
25790
25865
|
}),
|
|
25791
25866
|
e2.map((e3, c2) => {
|
|
25792
25867
|
var _a6, _b3;
|
|
25793
|
-
let d2 = y[r2][c2], f2 = (S == null ? void 0 : S.row) === r2 && (S == null ? void 0 : S.col) === c2, g2 = (p == null ? void 0 : p[r2]) ?? `Row ${r2 + 1}`,
|
|
25868
|
+
let d2 = y[r2][c2], f2 = (S == null ? void 0 : S.row) === r2 && (S == null ? void 0 : S.col) === c2, g2 = j != null && j.row === r2 && j.col === c2 ? j : null, _2 = (p == null ? void 0 : p[r2]) ?? `Row ${r2 + 1}`, v2 = (m == null ? void 0 : m[c2]) ?? `Column ${c2 + 1}`;
|
|
25794
25869
|
return (0, import_jsx_runtime.jsx)("td", {
|
|
25795
|
-
className: cn("relative text-center min-w-14 h-8 px-2 transition-colors touch-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden", d2 ? "cursor-default text-muted-foreground" : "cursor-ew-resize text-link hover:bg-accent", f2 && "bg-accent", c2 === 0 && "bracket-l", c2 ===
|
|
25870
|
+
className: cn("relative text-center min-w-14 h-8 px-2 transition-colors touch-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden", d2 ? "cursor-default text-muted-foreground" : g2 ? "cursor-text" : "cursor-ew-resize text-link hover:bg-accent", (f2 || g2 != null) && "bg-accent", c2 === 0 && "bracket-l", c2 === lG - 1 && "bracket-r", r2 === 0 && "bracket-t", r2 === cG - 1 && "bracket-b"),
|
|
25796
25871
|
tabIndex: d2 ? -1 : 0,
|
|
25797
|
-
|
|
25872
|
+
title: String(e3),
|
|
25873
|
+
"aria-label": `${_2}, ${v2}`,
|
|
25798
25874
|
"aria-valuenow": e3,
|
|
25799
25875
|
"aria-valuemin": (_a6 = l == null ? void 0 : l[r2]) == null ? void 0 : _a6[c2],
|
|
25800
25876
|
"aria-valuemax": (_b3 = u == null ? void 0 : u[r2]) == null ? void 0 : _b3[c2],
|
|
25801
25877
|
"aria-disabled": d2 || void 0,
|
|
25802
|
-
onPointerDown: (e4) =>
|
|
25803
|
-
|
|
25878
|
+
onPointerDown: (e4) => nG(e4, r2, c2),
|
|
25879
|
+
onDoubleClick: () => W(r2, c2),
|
|
25880
|
+
onKeyDown: (e4) => aG(e4, r2, c2),
|
|
25804
25881
|
"data-testid": `matrix-cell-${r2}-${c2}`,
|
|
25805
|
-
children:
|
|
25882
|
+
children: g2 ? (0, import_jsx_runtime.jsx)("input", {
|
|
25883
|
+
ref: G,
|
|
25884
|
+
className: "bg-transparent text-center font-mono text-sm text-foreground outline-none select-text",
|
|
25885
|
+
style: {
|
|
25886
|
+
width: `${Math.max(g2.text.length + 2, 6)}ch`
|
|
25887
|
+
},
|
|
25888
|
+
value: g2.text,
|
|
25889
|
+
onChange: (e4) => R({
|
|
25890
|
+
...g2,
|
|
25891
|
+
text: e4.target.value
|
|
25892
|
+
}),
|
|
25893
|
+
onKeyDown: Z,
|
|
25894
|
+
onBlur: () => q(false),
|
|
25895
|
+
onPointerDown: (e4) => e4.stopPropagation(),
|
|
25896
|
+
"aria-label": `Edit ${_2}, ${v2}`,
|
|
25897
|
+
"data-testid": `matrix-input-${r2}-${c2}`
|
|
25898
|
+
}) : z(e3)
|
|
25806
25899
|
}, c2);
|
|
25807
25900
|
})
|
|
25808
25901
|
]
|
|
@@ -27377,8 +27470,8 @@ ${c}
|
|
|
27377
27470
|
points: extractSunburstPoints(e2.points)
|
|
27378
27471
|
}));
|
|
27379
27472
|
}, r[29] = u, r[30] = G);
|
|
27380
|
-
let q = useEvent_default(G),
|
|
27381
|
-
r[31] === u ?
|
|
27473
|
+
let q = useEvent_default(G), tG;
|
|
27474
|
+
r[31] === u ? tG = r[32] : (tG = (e2) => {
|
|
27382
27475
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
27383
27476
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
27384
27477
|
u((e3) => ({
|
|
@@ -27389,9 +27482,9 @@ ${c}
|
|
|
27389
27482
|
points: r2,
|
|
27390
27483
|
indices: c2
|
|
27391
27484
|
}));
|
|
27392
|
-
}, r[31] = u, r[32] =
|
|
27393
|
-
let Z = useEvent_default(
|
|
27394
|
-
r[33] === u ?
|
|
27485
|
+
}, r[31] = u, r[32] = tG);
|
|
27486
|
+
let Z = useEvent_default(tG), nG;
|
|
27487
|
+
r[33] === u ? nG = r[34] : (nG = (e2) => {
|
|
27395
27488
|
e2 && u((r2) => ({
|
|
27396
27489
|
...r2,
|
|
27397
27490
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -27400,9 +27493,9 @@ ${c}
|
|
|
27400
27493
|
range: e2.range,
|
|
27401
27494
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
27402
27495
|
}));
|
|
27403
|
-
}, r[33] = u, r[34] =
|
|
27404
|
-
let
|
|
27405
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !==
|
|
27496
|
+
}, r[33] = u, r[34] = nG);
|
|
27497
|
+
let rG = useEvent_default(nG), iG = m.frames ?? void 0, aG = useEvent_default(_temp3$3), oG;
|
|
27498
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !== rG || r[43] !== iG || r[44] !== aG || r[45] !== R ? (oG = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
27406
27499
|
...m,
|
|
27407
27500
|
layout: h,
|
|
27408
27501
|
onRelayout: R,
|
|
@@ -27411,12 +27504,12 @@ ${c}
|
|
|
27411
27504
|
onSunburstClick: q,
|
|
27412
27505
|
config: L,
|
|
27413
27506
|
onClick: Z,
|
|
27414
|
-
onSelected:
|
|
27507
|
+
onSelected: rG,
|
|
27415
27508
|
className: "w-full",
|
|
27416
27509
|
useResizeHandler: true,
|
|
27417
|
-
frames:
|
|
27418
|
-
onError:
|
|
27419
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] =
|
|
27510
|
+
frames: iG,
|
|
27511
|
+
onError: aG
|
|
27512
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] = rG, r[43] = iG, r[44] = aG, r[45] = R, r[46] = oG) : oG = r[46], oG;
|
|
27420
27513
|
});
|
|
27421
27514
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
27422
27515
|
function _temp$8(e) {
|
|
@@ -27548,8 +27641,8 @@ ${c}
|
|
|
27548
27641
|
c[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = cn("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60", "data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"), c[17] = G) : G = c[17];
|
|
27549
27642
|
let q;
|
|
27550
27643
|
c[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = cn("absolute bg-blue-500 dark:bg-primary", "data-[orientation=horizontal]:h-full", "data-[orientation=vertical]:w-full", "data-disabled:opacity-50", "hover:cursor-grab active:cursor-grabbing"), c[18] = q) : q = c[18];
|
|
27551
|
-
let
|
|
27552
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
27644
|
+
let tG;
|
|
27645
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (tG = (0, import_jsx_runtime.jsx)(Track, {
|
|
27553
27646
|
ref: E,
|
|
27554
27647
|
"data-testid": "track",
|
|
27555
27648
|
className: G,
|
|
@@ -27560,7 +27653,7 @@ ${c}
|
|
|
27560
27653
|
onPointerMove: z,
|
|
27561
27654
|
onPointerUp: H
|
|
27562
27655
|
})
|
|
27563
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
27656
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = tG) : tG = c[22];
|
|
27564
27657
|
let Z;
|
|
27565
27658
|
c[23] !== p.setFalse || c[24] !== p.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27566
27659
|
asChild: true,
|
|
@@ -27573,29 +27666,29 @@ ${c}
|
|
|
27573
27666
|
onMouseLeave: p.setFalse
|
|
27574
27667
|
})
|
|
27575
27668
|
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] = Z) : Z = c[25];
|
|
27576
|
-
let
|
|
27577
|
-
c[26] !== m || c[27] !== u.value || c[28] !== d ? (
|
|
27669
|
+
let nG;
|
|
27670
|
+
c[26] !== m || c[27] !== u.value || c[28] !== d ? (nG = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27578
27671
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
27579
27672
|
locale: m
|
|
27580
27673
|
})
|
|
27581
|
-
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] =
|
|
27582
|
-
let
|
|
27583
|
-
c[30] ===
|
|
27584
|
-
children:
|
|
27585
|
-
}), c[30] =
|
|
27586
|
-
let
|
|
27587
|
-
c[32] !== f || c[33] !== Z || c[34] !==
|
|
27674
|
+
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] = nG) : nG = c[29];
|
|
27675
|
+
let rG;
|
|
27676
|
+
c[30] === nG ? rG = c[31] : (rG = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27677
|
+
children: nG
|
|
27678
|
+
}), c[30] = nG, c[31] = rG);
|
|
27679
|
+
let iG;
|
|
27680
|
+
c[32] !== f || c[33] !== Z || c[34] !== rG ? (iG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27588
27681
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27589
27682
|
delayDuration: 0,
|
|
27590
27683
|
open: f,
|
|
27591
27684
|
children: [
|
|
27592
27685
|
Z,
|
|
27593
|
-
|
|
27686
|
+
rG
|
|
27594
27687
|
]
|
|
27595
27688
|
})
|
|
27596
|
-
}), c[32] = f, c[33] = Z, c[34] =
|
|
27597
|
-
let
|
|
27598
|
-
c[36] !== p.setFalse || c[37] !== p.setTrue ? (
|
|
27689
|
+
}), c[32] = f, c[33] = Z, c[34] = rG, c[35] = iG) : iG = c[35];
|
|
27690
|
+
let aG;
|
|
27691
|
+
c[36] !== p.setFalse || c[37] !== p.setTrue ? (aG = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27599
27692
|
asChild: true,
|
|
27600
27693
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27601
27694
|
"data-testid": "thumb",
|
|
@@ -27605,39 +27698,39 @@ ${c}
|
|
|
27605
27698
|
onMouseEnter: p.setTrue,
|
|
27606
27699
|
onMouseLeave: p.setFalse
|
|
27607
27700
|
})
|
|
27608
|
-
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] =
|
|
27609
|
-
let
|
|
27610
|
-
c[39] !== m || c[40] !== u.value || c[41] !== d ? (
|
|
27701
|
+
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] = aG) : aG = c[38];
|
|
27702
|
+
let oG;
|
|
27703
|
+
c[39] !== m || c[40] !== u.value || c[41] !== d ? (oG = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27611
27704
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
27612
27705
|
locale: m
|
|
27613
27706
|
})
|
|
27614
|
-
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] =
|
|
27615
|
-
let
|
|
27616
|
-
c[43] ===
|
|
27617
|
-
children:
|
|
27618
|
-
}), c[43] =
|
|
27619
|
-
let
|
|
27620
|
-
c[45] !== f || c[46] !==
|
|
27707
|
+
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] = oG) : oG = c[42];
|
|
27708
|
+
let sG;
|
|
27709
|
+
c[43] === oG ? sG = c[44] : (sG = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27710
|
+
children: oG
|
|
27711
|
+
}), c[43] = oG, c[44] = sG);
|
|
27712
|
+
let cG;
|
|
27713
|
+
c[45] !== f || c[46] !== aG || c[47] !== sG ? (cG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27621
27714
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27622
27715
|
delayDuration: 0,
|
|
27623
27716
|
open: f,
|
|
27624
27717
|
children: [
|
|
27625
|
-
|
|
27626
|
-
|
|
27718
|
+
aG,
|
|
27719
|
+
sG
|
|
27627
27720
|
]
|
|
27628
27721
|
})
|
|
27629
|
-
}), c[45] = f, c[46] =
|
|
27630
|
-
let
|
|
27631
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
27722
|
+
}), c[45] = f, c[46] = aG, c[47] = sG, c[48] = cG) : cG = c[48];
|
|
27723
|
+
let lG;
|
|
27724
|
+
return c[49] !== M || c[50] !== u || c[51] !== tG || c[52] !== iG || c[53] !== cG || c[54] !== W ? (lG = (0, import_jsx_runtime.jsxs)(Root, {
|
|
27632
27725
|
ref: M,
|
|
27633
27726
|
className: W,
|
|
27634
27727
|
...u,
|
|
27635
27728
|
children: [
|
|
27636
|
-
|
|
27637
|
-
|
|
27638
|
-
|
|
27729
|
+
tG,
|
|
27730
|
+
iG,
|
|
27731
|
+
cG
|
|
27639
27732
|
]
|
|
27640
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
27733
|
+
}), c[49] = M, c[50] = u, c[51] = tG, c[52] = iG, c[53] = cG, c[54] = W, c[55] = lG) : lG = c[55], lG;
|
|
27641
27734
|
});
|
|
27642
27735
|
RangeSlider.displayName = Root.displayName;
|
|
27643
27736
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -27688,14 +27781,14 @@ ${c}
|
|
|
27688
27781
|
}, q = (e2) => {
|
|
27689
27782
|
m && l(e2);
|
|
27690
27783
|
}, r[10] = m, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27691
|
-
let
|
|
27692
|
-
r[14] !== m || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
27784
|
+
let tG, Z;
|
|
27785
|
+
r[14] !== m || r[15] !== T || r[16] !== l || r[17] !== u ? (tG = () => {
|
|
27693
27786
|
m && !dequal(T, u) && l(T);
|
|
27694
27787
|
}, Z = () => {
|
|
27695
27788
|
m && !dequal(T, u) && l(T);
|
|
27696
|
-
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
27697
|
-
let
|
|
27698
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !==
|
|
27789
|
+
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = tG, r[19] = Z) : (tG = r[18], Z = r[19]);
|
|
27790
|
+
let nG;
|
|
27791
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== tG || r[31] !== Z || r[32] !== b ? (nG = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
27699
27792
|
id: S,
|
|
27700
27793
|
className: W,
|
|
27701
27794
|
value: T,
|
|
@@ -27706,36 +27799,36 @@ ${c}
|
|
|
27706
27799
|
disabled: y,
|
|
27707
27800
|
onValueChange: G,
|
|
27708
27801
|
onValueCommit: q,
|
|
27709
|
-
onPointerUp:
|
|
27802
|
+
onPointerUp: tG,
|
|
27710
27803
|
onMouseUp: Z,
|
|
27711
27804
|
valueMap: b
|
|
27712
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
27713
|
-
let
|
|
27714
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
27805
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = tG, r[31] = Z, r[32] = b, r[33] = nG) : nG = r[33];
|
|
27806
|
+
let rG;
|
|
27807
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (rG = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
27715
27808
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
27716
27809
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
27717
27810
|
locale: w
|
|
27718
27811
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
27719
27812
|
locale: w
|
|
27720
27813
|
})}`
|
|
27721
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
27722
|
-
let
|
|
27723
|
-
r[39] !==
|
|
27814
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = rG) : rG = r[38];
|
|
27815
|
+
let iG;
|
|
27816
|
+
r[39] !== nG || r[40] !== rG || r[41] !== B ? (iG = (0, import_jsx_runtime.jsxs)("div", {
|
|
27724
27817
|
className: B,
|
|
27725
27818
|
children: [
|
|
27726
|
-
|
|
27727
|
-
|
|
27819
|
+
nG,
|
|
27820
|
+
rG
|
|
27728
27821
|
]
|
|
27729
|
-
}), r[39] =
|
|
27730
|
-
let
|
|
27731
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
27822
|
+
}), r[39] = nG, r[40] = rG, r[41] = B, r[42] = iG) : iG = r[42];
|
|
27823
|
+
let aG;
|
|
27824
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== iG || r[47] !== M || r[48] !== L ? (aG = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
27732
27825
|
label: c,
|
|
27733
27826
|
id: S,
|
|
27734
27827
|
align: M,
|
|
27735
27828
|
className: L,
|
|
27736
27829
|
fullWidth: v,
|
|
27737
|
-
children:
|
|
27738
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
27830
|
+
children: iG
|
|
27831
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = iG, r[47] = M, r[48] = L, r[49] = aG) : aG = r[49], aG;
|
|
27739
27832
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
27740
27833
|
r.exports = u;
|
|
27741
27834
|
var c = {
|
|
@@ -31025,7 +31118,7 @@ ${c}
|
|
|
31025
31118
|
areRegExpsEqual: H,
|
|
31026
31119
|
areSetsEqual: W,
|
|
31027
31120
|
createIsNestedEqual: r2
|
|
31028
|
-
}),
|
|
31121
|
+
}), tG = Object.freeze({
|
|
31029
31122
|
areArraysEqual: O,
|
|
31030
31123
|
areDatesEqual: j,
|
|
31031
31124
|
areMapsEqual: I,
|
|
@@ -31034,39 +31127,39 @@ ${c}
|
|
|
31034
31127
|
areSetsEqual: G,
|
|
31035
31128
|
createIsNestedEqual: r2
|
|
31036
31129
|
}), Z = T(q);
|
|
31037
|
-
function
|
|
31130
|
+
function nG(e3, r3) {
|
|
31038
31131
|
return Z(e3, r3, void 0);
|
|
31039
31132
|
}
|
|
31040
|
-
var
|
|
31133
|
+
var rG = T(l(q, {
|
|
31041
31134
|
createIsNestedEqual: function() {
|
|
31042
31135
|
return f;
|
|
31043
31136
|
}
|
|
31044
31137
|
}));
|
|
31045
|
-
function
|
|
31046
|
-
return
|
|
31138
|
+
function iG(e3, r3) {
|
|
31139
|
+
return rG(e3, r3, void 0);
|
|
31047
31140
|
}
|
|
31048
|
-
var
|
|
31049
|
-
function
|
|
31050
|
-
return
|
|
31141
|
+
var aG = T(tG);
|
|
31142
|
+
function oG(e3, r3) {
|
|
31143
|
+
return aG(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
31051
31144
|
}
|
|
31052
|
-
var
|
|
31145
|
+
var sG = T(l(tG, {
|
|
31053
31146
|
createIsNestedEqual: function() {
|
|
31054
31147
|
return f;
|
|
31055
31148
|
}
|
|
31056
31149
|
}));
|
|
31057
|
-
function
|
|
31058
|
-
return
|
|
31150
|
+
function cG(e3, r3) {
|
|
31151
|
+
return sG(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
31059
31152
|
}
|
|
31060
|
-
function
|
|
31153
|
+
function lG(e3) {
|
|
31061
31154
|
return T(l(q, e3(q)));
|
|
31062
31155
|
}
|
|
31063
|
-
function
|
|
31064
|
-
var r3 = T(l(
|
|
31156
|
+
function uG(e3) {
|
|
31157
|
+
var r3 = T(l(tG, e3(tG)));
|
|
31065
31158
|
return (function(e4, c2, l2) {
|
|
31066
31159
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
31067
31160
|
});
|
|
31068
31161
|
}
|
|
31069
|
-
e2.circularDeepEqual =
|
|
31162
|
+
e2.circularDeepEqual = oG, e2.circularShallowEqual = cG, e2.createCustomCircularEqual = uG, e2.createCustomEqual = lG, e2.deepEqual = nG, e2.sameValueZeroEqual = f, e2.shallowEqual = iG, Object.defineProperty(e2, "__esModule", {
|
|
31070
31163
|
value: true
|
|
31071
31164
|
});
|
|
31072
31165
|
}));
|
|
@@ -31092,7 +31185,7 @@ ${c}
|
|
|
31092
31185
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
31093
31186
|
Object.defineProperty(e, "__esModule", {
|
|
31094
31187
|
value: true
|
|
31095
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
31188
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = gG, e.correctBounds = I, e.fastPositionEqual = S, e.fastRGLPropsEqual = void 0, e.getAllCollisions = z, e.getFirstCollision = R, e.getLayoutItem = L, e.getStatics = B, e.modifyLayout = _, e.moveElement = H, e.moveElementAwayFromCollision = W, e.noop = void 0, e.perc = G, e.resizeItemInDirection = cG, e.setTopLeft = uG, e.setTransform = lG, e.sortLayoutItems = dG, e.sortLayoutItemsByColRow = pG, e.sortLayoutItemsByRowCol = fG, e.synchronizeLayoutWithChildren = mG, e.validateLayout = hG, e.withLayoutItem = v;
|
|
31096
31189
|
var r = require_fast_equals(), c = l(require_react());
|
|
31097
31190
|
function l(e2) {
|
|
31098
31191
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -31197,7 +31290,7 @@ ${c}
|
|
|
31197
31290
|
return !(e2.i === r2.i || e2.x + e2.w <= r2.x || e2.x >= r2.x + r2.w || e2.y + e2.h <= r2.y || e2.y >= r2.y + r2.h);
|
|
31198
31291
|
}
|
|
31199
31292
|
function T(e2, r2, c2, l2) {
|
|
31200
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
31293
|
+
let u2 = B(e2), d2 = h(u2), f2 = dG(e2, r2), p2 = Array(e2.length);
|
|
31201
31294
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
31202
31295
|
let h3 = y(f2[m2]);
|
|
31203
31296
|
h3.static || (h3 = M(u2, h3, r2, c2, f2, l2, d2), d2 = Math.max(d2, h3.y + h3.h), u2.push(h3)), p2[e2.indexOf(f2[m2])] = h3, h3.moved = false;
|
|
@@ -31255,7 +31348,7 @@ ${c}
|
|
|
31255
31348
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
31256
31349
|
let h2 = r2.x, _2 = r2.y;
|
|
31257
31350
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
31258
|
-
let v2 =
|
|
31351
|
+
let v2 = dG(e2, f2);
|
|
31259
31352
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
31260
31353
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
31261
31354
|
if (b2 && m2) return g(e2);
|
|
@@ -31289,15 +31382,15 @@ ${c}
|
|
|
31289
31382
|
function G(e2) {
|
|
31290
31383
|
return e2 * 100 + "%";
|
|
31291
31384
|
}
|
|
31292
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
31385
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, tG = (e2, r2, c2) => e2 < 0 ? r2 : c2, Z = (e2) => Math.max(0, e2), nG = (e2) => Math.max(0, e2), rG = (e2, r2, c2) => {
|
|
31293
31386
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
31294
31387
|
return {
|
|
31295
31388
|
left: l2,
|
|
31296
31389
|
width: d2,
|
|
31297
|
-
height:
|
|
31298
|
-
top:
|
|
31390
|
+
height: tG(f2, e2.height, u2),
|
|
31391
|
+
top: nG(f2)
|
|
31299
31392
|
};
|
|
31300
|
-
},
|
|
31393
|
+
}, iG = (e2, r2, c2) => {
|
|
31301
31394
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31302
31395
|
return {
|
|
31303
31396
|
top: l2,
|
|
@@ -31305,45 +31398,45 @@ ${c}
|
|
|
31305
31398
|
width: q(e2.left, e2.width, f2, c2),
|
|
31306
31399
|
left: Z(u2)
|
|
31307
31400
|
};
|
|
31308
|
-
},
|
|
31401
|
+
}, aG = (e2, r2, c2) => {
|
|
31309
31402
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
31310
31403
|
return {
|
|
31311
31404
|
height: u2,
|
|
31312
31405
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
31313
|
-
top:
|
|
31406
|
+
top: nG(l2),
|
|
31314
31407
|
left: Z(f2)
|
|
31315
31408
|
};
|
|
31316
|
-
},
|
|
31409
|
+
}, oG = (e2, r2, c2) => {
|
|
31317
31410
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31318
31411
|
return {
|
|
31319
31412
|
width: f2,
|
|
31320
31413
|
left: u2,
|
|
31321
|
-
height:
|
|
31322
|
-
top:
|
|
31414
|
+
height: tG(l2, e2.height, d2),
|
|
31415
|
+
top: nG(l2)
|
|
31323
31416
|
};
|
|
31324
|
-
},
|
|
31325
|
-
n:
|
|
31417
|
+
}, sG = {
|
|
31418
|
+
n: rG,
|
|
31326
31419
|
ne: function() {
|
|
31327
|
-
return
|
|
31420
|
+
return rG(arguments.length <= 0 ? void 0 : arguments[0], iG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31328
31421
|
},
|
|
31329
|
-
e:
|
|
31422
|
+
e: iG,
|
|
31330
31423
|
se: function() {
|
|
31331
|
-
return
|
|
31424
|
+
return oG(arguments.length <= 0 ? void 0 : arguments[0], iG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31332
31425
|
},
|
|
31333
|
-
s:
|
|
31426
|
+
s: oG,
|
|
31334
31427
|
sw: function() {
|
|
31335
|
-
return
|
|
31428
|
+
return oG(arguments.length <= 0 ? void 0 : arguments[0], aG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31336
31429
|
},
|
|
31337
|
-
w:
|
|
31430
|
+
w: aG,
|
|
31338
31431
|
nw: function() {
|
|
31339
|
-
return
|
|
31432
|
+
return rG(arguments.length <= 0 ? void 0 : arguments[0], aG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31340
31433
|
}
|
|
31341
31434
|
};
|
|
31342
|
-
function
|
|
31343
|
-
let u2 =
|
|
31435
|
+
function cG(e2, r2, c2, l2) {
|
|
31436
|
+
let u2 = sG[e2];
|
|
31344
31437
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
31345
31438
|
}
|
|
31346
|
-
function
|
|
31439
|
+
function lG(e2) {
|
|
31347
31440
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
31348
31441
|
return {
|
|
31349
31442
|
transform: d2,
|
|
@@ -31356,7 +31449,7 @@ ${c}
|
|
|
31356
31449
|
position: "absolute"
|
|
31357
31450
|
};
|
|
31358
31451
|
}
|
|
31359
|
-
function
|
|
31452
|
+
function uG(e2) {
|
|
31360
31453
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
31361
31454
|
return {
|
|
31362
31455
|
top: `${r2}px`,
|
|
@@ -31366,20 +31459,20 @@ ${c}
|
|
|
31366
31459
|
position: "absolute"
|
|
31367
31460
|
};
|
|
31368
31461
|
}
|
|
31369
|
-
function
|
|
31370
|
-
return r2 === "horizontal" ?
|
|
31462
|
+
function dG(e2, r2) {
|
|
31463
|
+
return r2 === "horizontal" ? pG(e2) : r2 === "vertical" ? fG(e2) : e2;
|
|
31371
31464
|
}
|
|
31372
|
-
function
|
|
31465
|
+
function fG(e2) {
|
|
31373
31466
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31374
31467
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
31375
31468
|
});
|
|
31376
31469
|
}
|
|
31377
|
-
function
|
|
31470
|
+
function pG(e2) {
|
|
31378
31471
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31379
31472
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
31380
31473
|
});
|
|
31381
31474
|
}
|
|
31382
|
-
function
|
|
31475
|
+
function mG(e2, r2, l2, u2, f2) {
|
|
31383
31476
|
e2 || (e2 = []);
|
|
31384
31477
|
let p2 = [];
|
|
31385
31478
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -31400,7 +31493,7 @@ ${c}
|
|
|
31400
31493
|
});
|
|
31401
31494
|
return f2 ? m2 : T(m2, u2, l2);
|
|
31402
31495
|
}
|
|
31403
|
-
function
|
|
31496
|
+
function hG(e2) {
|
|
31404
31497
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
31405
31498
|
"x",
|
|
31406
31499
|
"y",
|
|
@@ -31417,7 +31510,7 @@ ${c}
|
|
|
31417
31510
|
if (u3.i !== void 0 && typeof u3.i != "string") throw Error(`ReactGridLayout: ${r2}[${l2}].i must be a string! Received: ${u3.i} (${typeof u3.i})`);
|
|
31418
31511
|
}
|
|
31419
31512
|
}
|
|
31420
|
-
function
|
|
31513
|
+
function gG(e2) {
|
|
31421
31514
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
31422
31515
|
return r2 === false ? null : c2;
|
|
31423
31516
|
}
|
|
@@ -34222,7 +34315,7 @@ ${c}
|
|
|
34222
34315
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
34223
34316
|
let E = useIsDragging(), O, j;
|
|
34224
34317
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
34225
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
34318
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, tG, Z, nG, rG, iG, aG, oG, sG, cG, lG, uG, dG, fG, pG, mG, hG, gG;
|
|
34226
34319
|
if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== m || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
|
|
34227
34320
|
let e2 = Maps.keyBy(c.cells, _temp2$3), p2;
|
|
34228
34321
|
r[47] !== c || r[48] !== l ? (p2 = (e3) => (r2) => {
|
|
@@ -34241,23 +34334,23 @@ ${c}
|
|
|
34241
34334
|
});
|
|
34242
34335
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
34243
34336
|
let y2 = v2;
|
|
34244
|
-
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout,
|
|
34337
|
+
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout, pG = "lg", r[58] === c.cells ? mG = r[59] : (mG = {
|
|
34245
34338
|
lg: c.cells
|
|
34246
|
-
}, r[58] = c.cells, r[59] =
|
|
34339
|
+
}, r[58] = c.cells, r[59] = mG), hG = L, gG = S, R = false;
|
|
34247
34340
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
34248
34341
|
r[60] !== b2 || r[61] !== w2 || r[62] !== T2 ? (z = cn("w-full mx-auto bg-background flex-1 min-h-full", b2, w2, T2), r[60] = b2, r[61] = w2, r[62] = T2, r[63] = z) : z = r[63], r[64] === f ? B = r[65] : (B = f ? [
|
|
34249
34342
|
20,
|
|
34250
34343
|
20
|
|
34251
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
34344
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, tG = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (Z = (e3) => {
|
|
34252
34345
|
f || l({
|
|
34253
34346
|
...c,
|
|
34254
34347
|
cells: e3
|
|
34255
34348
|
});
|
|
34256
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ?
|
|
34349
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ? nG = r[71] : (nG = g ? {
|
|
34257
34350
|
i: g.i,
|
|
34258
34351
|
w: g.w || 2,
|
|
34259
34352
|
h: g.h || 2
|
|
34260
|
-
} : void 0, r[70] = g, r[71] =
|
|
34353
|
+
} : void 0, r[70] = g, r[71] = nG), r[72] !== O || r[73] !== c || r[74] !== l ? (rG = (e3, r2, u2) => {
|
|
34261
34354
|
O.onDragStop(), r2 && l({
|
|
34262
34355
|
...c,
|
|
34263
34356
|
cells: [
|
|
@@ -34265,15 +34358,15 @@ ${c}
|
|
|
34265
34358
|
r2
|
|
34266
34359
|
]
|
|
34267
34360
|
});
|
|
34268
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
34361
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = rG) : rG = r[75], r[76] === O ? (iG = r[77], aG = r[78], oG = r[79]) : (iG = (e3, r2, c2, l2, u2) => {
|
|
34269
34362
|
O.onDragStart(u2);
|
|
34270
|
-
},
|
|
34363
|
+
}, aG = (e3, r2, c2, l2, u2) => {
|
|
34271
34364
|
O.onDragMove(u2);
|
|
34272
|
-
},
|
|
34365
|
+
}, oG = () => {
|
|
34273
34366
|
O.onDragStop();
|
|
34274
|
-
}, r[76] = O, r[77] =
|
|
34367
|
+
}, r[76] = O, r[77] = iG, r[78] = aG, r[79] = oG), sG = _temp3$2, cG = M, lG = M, uG = M, dG = M ? `.${DRAG_HANDLE}` : "noop";
|
|
34275
34368
|
let E2;
|
|
34276
|
-
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2),
|
|
34369
|
+
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2), fG = u.filter(E2).map((r2) => {
|
|
34277
34370
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p3 = c.cellSide.get(r2.id), m2 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
34278
34371
|
code: r2.code,
|
|
34279
34372
|
mode: d,
|
|
@@ -34303,14 +34396,14 @@ ${c}
|
|
|
34303
34396
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
34304
34397
|
children: m2
|
|
34305
34398
|
}, r2.id);
|
|
34306
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
34307
|
-
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29],
|
|
34308
|
-
let
|
|
34309
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !==
|
|
34310
|
-
breakpoint:
|
|
34311
|
-
layouts:
|
|
34312
|
-
style:
|
|
34313
|
-
cols:
|
|
34399
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = tG, r[31] = Z, r[32] = nG, r[33] = rG, r[34] = iG, r[35] = aG, r[36] = oG, r[37] = sG, r[38] = cG, r[39] = lG, r[40] = uG, r[41] = dG, r[42] = fG, r[43] = pG, r[44] = mG, r[45] = hG, r[46] = gG;
|
|
34400
|
+
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], tG = r[30], Z = r[31], nG = r[32], rG = r[33], iG = r[34], aG = r[35], oG = r[36], sG = r[37], cG = r[38], lG = r[39], uG = r[40], dG = r[41], fG = r[42], pG = r[43], mG = r[44], hG = r[45], gG = r[46];
|
|
34401
|
+
let _G;
|
|
34402
|
+
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== tG || r[91] !== Z || r[92] !== nG || r[93] !== rG || r[94] !== iG || r[95] !== aG || r[96] !== oG || r[97] !== sG || r[98] !== cG || r[99] !== lG || r[100] !== uG || r[101] !== dG || r[102] !== fG || r[103] !== pG || r[104] !== mG || r[105] !== hG || r[106] !== gG ? (_G = (0, import_jsx_runtime.jsx)(I, {
|
|
34403
|
+
breakpoint: pG,
|
|
34404
|
+
layouts: mG,
|
|
34405
|
+
style: hG,
|
|
34406
|
+
cols: gG,
|
|
34314
34407
|
allowOverlap: R,
|
|
34315
34408
|
className: z,
|
|
34316
34409
|
containerPadding: B,
|
|
@@ -34318,23 +34411,23 @@ ${c}
|
|
|
34318
34411
|
isBounded: W,
|
|
34319
34412
|
compactType: G,
|
|
34320
34413
|
preventCollision: q,
|
|
34321
|
-
rowHeight:
|
|
34414
|
+
rowHeight: tG,
|
|
34322
34415
|
onLayoutChange: Z,
|
|
34323
|
-
droppingItem:
|
|
34324
|
-
onDrop:
|
|
34325
|
-
onDragStart:
|
|
34326
|
-
onDrag:
|
|
34327
|
-
onDragStop:
|
|
34328
|
-
onResizeStop:
|
|
34329
|
-
isDraggable:
|
|
34330
|
-
isDroppable:
|
|
34331
|
-
isResizable:
|
|
34332
|
-
draggableHandle:
|
|
34333
|
-
children:
|
|
34334
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] =
|
|
34335
|
-
let
|
|
34336
|
-
if (r[108] !== u || r[109] !==
|
|
34337
|
-
|
|
34416
|
+
droppingItem: nG,
|
|
34417
|
+
onDrop: rG,
|
|
34418
|
+
onDragStart: iG,
|
|
34419
|
+
onDrag: aG,
|
|
34420
|
+
onDragStop: oG,
|
|
34421
|
+
onResizeStop: sG,
|
|
34422
|
+
isDraggable: cG,
|
|
34423
|
+
isDroppable: lG,
|
|
34424
|
+
isResizable: uG,
|
|
34425
|
+
draggableHandle: dG,
|
|
34426
|
+
children: fG
|
|
34427
|
+
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = tG, r[91] = Z, r[92] = nG, r[93] = rG, r[94] = iG, r[95] = aG, r[96] = oG, r[97] = sG, r[98] = cG, r[99] = lG, r[100] = uG, r[101] = dG, r[102] = fG, r[103] = pG, r[104] = mG, r[105] = hG, r[106] = gG, r[107] = _G) : _G = r[107];
|
|
34428
|
+
let vG = _G, yG, bG, xG, SG, CG, wG, TG;
|
|
34429
|
+
if (r[108] !== u || r[109] !== vG || r[110] !== m || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
34430
|
+
TG = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
34338
34431
|
bb0: {
|
|
34339
34432
|
let e2;
|
|
34340
34433
|
r[125] === m ? e2 = r[126] : (e2 = (e3) => !m.has(e3.id), r[125] = m, r[126] = e2);
|
|
@@ -34342,14 +34435,14 @@ ${c}
|
|
|
34342
34435
|
if (f) {
|
|
34343
34436
|
if (c.bordered) {
|
|
34344
34437
|
let e4;
|
|
34345
|
-
r[127] !==
|
|
34438
|
+
r[127] !== vG || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
34346
34439
|
className: "flex flex-1 flex-col items-center",
|
|
34347
34440
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
34348
34441
|
style: L,
|
|
34349
34442
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
34350
|
-
children:
|
|
34443
|
+
children: vG
|
|
34351
34444
|
})
|
|
34352
|
-
}), r[127] =
|
|
34445
|
+
}), r[127] = vG, r[128] = L, r[129] = e4) : e4 = r[129], vG = e4;
|
|
34353
34446
|
}
|
|
34354
34447
|
let e3 = p2.filter(_temp4$2), l2;
|
|
34355
34448
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -34361,9 +34454,9 @@ ${c}
|
|
|
34361
34454
|
stale: outputIsStale(e4, false),
|
|
34362
34455
|
isScrollable: false,
|
|
34363
34456
|
hidden: false
|
|
34364
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
34457
|
+
}, e4.id), r[130] = d, r[131] = l2), TG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34365
34458
|
children: [
|
|
34366
|
-
|
|
34459
|
+
vG,
|
|
34367
34460
|
(0, import_jsx_runtime.jsx)("div", {
|
|
34368
34461
|
className: "hidden",
|
|
34369
34462
|
children: e3.map(l2)
|
|
@@ -34374,31 +34467,31 @@ ${c}
|
|
|
34374
34467
|
}
|
|
34375
34468
|
if (c.bordered) {
|
|
34376
34469
|
let e3;
|
|
34377
|
-
r[132] ===
|
|
34470
|
+
r[132] === vG ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
34378
34471
|
className: "h-full overflow-auto",
|
|
34379
|
-
children:
|
|
34380
|
-
}), r[132] =
|
|
34472
|
+
children: vG
|
|
34473
|
+
}), r[132] = vG, r[133] = e3);
|
|
34381
34474
|
let c2;
|
|
34382
34475
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
34383
34476
|
style: L,
|
|
34384
34477
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
34385
34478
|
children: e3
|
|
34386
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
34479
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], vG = c2;
|
|
34387
34480
|
}
|
|
34388
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
34481
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (wG = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
34389
34482
|
layout: c,
|
|
34390
34483
|
setLayout: l,
|
|
34391
34484
|
isLocked: v,
|
|
34392
34485
|
setIsLocked: y
|
|
34393
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
34486
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = wG) : wG = r[140];
|
|
34394
34487
|
let g2;
|
|
34395
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34488
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (SG = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = SG, r[142] = g2) : (SG = r[141], g2 = r[142]), r[143] === vG ? CG = r[144] : (CG = (0, import_jsx_runtime.jsx)("div", {
|
|
34396
34489
|
className: g2,
|
|
34397
|
-
children:
|
|
34398
|
-
}), r[143] =
|
|
34490
|
+
children: vG
|
|
34491
|
+
}), r[143] = vG, r[144] = CG), yG = "flex-none flex flex-col w-[300px] p-2 pb-20 gap-2 overflow-auto bg-(--slate-2) border-t border-x rounded-t shadow-sm transparent-when-disconnected mx-2 mt-4", r[145] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (bG = (0, import_jsx_runtime.jsx)("div", {
|
|
34399
34492
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
34400
34493
|
children: "Outputs"
|
|
34401
|
-
}), r[145] =
|
|
34494
|
+
}), r[145] = bG) : bG = r[145];
|
|
34402
34495
|
let b2;
|
|
34403
34496
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
34404
34497
|
draggable: true,
|
|
@@ -34424,34 +34517,34 @@ ${c}
|
|
|
34424
34517
|
stale: outputIsStale(e3, false),
|
|
34425
34518
|
hidden: false
|
|
34426
34519
|
})
|
|
34427
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
34428
|
-
}
|
|
34429
|
-
r[108] = u, r[109] =
|
|
34430
|
-
} else
|
|
34431
|
-
if (
|
|
34432
|
-
let
|
|
34433
|
-
r[150] !==
|
|
34434
|
-
className:
|
|
34520
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], xG = p2.map(b2);
|
|
34521
|
+
}
|
|
34522
|
+
r[108] = u, r[109] = vG, r[110] = m, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = yG, r[118] = bG, r[119] = xG, r[120] = SG, r[121] = CG, r[122] = wG, r[123] = TG, r[124] = vG;
|
|
34523
|
+
} else yG = r[117], bG = r[118], xG = r[119], SG = r[120], CG = r[121], wG = r[122], TG = r[123], vG = r[124];
|
|
34524
|
+
if (TG !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return TG;
|
|
34525
|
+
let EG;
|
|
34526
|
+
r[150] !== yG || r[151] !== bG || r[152] !== xG ? (EG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34527
|
+
className: yG,
|
|
34435
34528
|
children: [
|
|
34436
|
-
|
|
34437
|
-
|
|
34529
|
+
bG,
|
|
34530
|
+
xG
|
|
34438
34531
|
]
|
|
34439
|
-
}), r[150] =
|
|
34440
|
-
let
|
|
34441
|
-
r[154] !==
|
|
34442
|
-
className:
|
|
34532
|
+
}), r[150] = yG, r[151] = bG, r[152] = xG, r[153] = EG) : EG = r[153];
|
|
34533
|
+
let DG;
|
|
34534
|
+
r[154] !== SG || r[155] !== CG || r[156] !== EG ? (DG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34535
|
+
className: SG,
|
|
34443
34536
|
children: [
|
|
34444
|
-
|
|
34445
|
-
|
|
34537
|
+
CG,
|
|
34538
|
+
EG
|
|
34446
34539
|
]
|
|
34447
|
-
}), r[154] =
|
|
34448
|
-
let
|
|
34449
|
-
return r[158] !==
|
|
34540
|
+
}), r[154] = SG, r[155] = CG, r[156] = EG, r[157] = DG) : DG = r[157];
|
|
34541
|
+
let OG;
|
|
34542
|
+
return r[158] !== wG || r[159] !== DG ? (OG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34450
34543
|
children: [
|
|
34451
|
-
|
|
34452
|
-
|
|
34544
|
+
wG,
|
|
34545
|
+
DG
|
|
34453
34546
|
]
|
|
34454
|
-
}), r[158] =
|
|
34547
|
+
}), r[158] = wG, r[159] = DG, r[160] = OG) : OG = r[160], OG;
|
|
34455
34548
|
};
|
|
34456
34549
|
var GridCell = (0, import_react.memo)((e) => {
|
|
34457
34550
|
let r = (0, import_compiler_runtime$13.c)(21), { output: c, cellId: l, status: u, mode: d, code: f, hidden: p, isScrollable: m, side: g, className: _, stale: v } = e, y;
|
|
@@ -34756,21 +34849,21 @@ ${c}
|
|
|
34756
34849
|
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
34757
34850
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
34758
34851
|
}), r[35] = q) : q = r[35];
|
|
34759
|
-
let
|
|
34760
|
-
r[36] === l ?
|
|
34852
|
+
let tG;
|
|
34853
|
+
r[36] === l ? tG = r[37] : (tG = (0, import_jsx_runtime.jsx)(X, {
|
|
34761
34854
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34762
34855
|
onClick: () => l()
|
|
34763
|
-
}), r[36] = l, r[37] =
|
|
34856
|
+
}), r[36] = l, r[37] = tG);
|
|
34764
34857
|
let Z;
|
|
34765
|
-
return r[38] !== M || r[39] !== G || r[40] !==
|
|
34858
|
+
return r[38] !== M || r[39] !== G || r[40] !== tG || r[41] !== S ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
34766
34859
|
className: S,
|
|
34767
34860
|
children: [
|
|
34768
34861
|
M,
|
|
34769
34862
|
G,
|
|
34770
34863
|
q,
|
|
34771
|
-
|
|
34864
|
+
tG
|
|
34772
34865
|
]
|
|
34773
|
-
}), r[38] = M, r[39] = G, r[40] =
|
|
34866
|
+
}), r[38] = M, r[39] = G, r[40] = tG, r[41] = S, r[42] = Z) : Z = r[42], Z;
|
|
34774
34867
|
};
|
|
34775
34868
|
function isSidebarCell(e) {
|
|
34776
34869
|
var _a5;
|
|
@@ -36774,31 +36867,31 @@ ${c}
|
|
|
36774
36867
|
}, [
|
|
36775
36868
|
T,
|
|
36776
36869
|
M
|
|
36777
|
-
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r),
|
|
36870
|
+
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r), tG = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
36778
36871
|
j
|
|
36779
|
-
]), Z = useMeasuringConfiguration(p), { droppableRects:
|
|
36872
|
+
]), Z = useMeasuringConfiguration(p), { droppableRects: nG, measureDroppableContainers: rG, measuringScheduled: iG } = useDroppableMeasuring(tG, {
|
|
36780
36873
|
dragging: w,
|
|
36781
36874
|
dependencies: [
|
|
36782
36875
|
O.x,
|
|
36783
36876
|
O.y
|
|
36784
36877
|
],
|
|
36785
36878
|
config: Z.droppable
|
|
36786
|
-
}),
|
|
36879
|
+
}), aG = useCachedNode(E, T), oG = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36787
36880
|
H
|
|
36788
|
-
]),
|
|
36881
|
+
]), sG = RG(), cG = useInitialRect(aG, Z.draggable.measure);
|
|
36789
36882
|
useLayoutShiftScrollCompensation({
|
|
36790
36883
|
activeNode: T == null ? null : E.get(T),
|
|
36791
|
-
config:
|
|
36792
|
-
initialRect:
|
|
36884
|
+
config: sG.layoutShiftCompensation,
|
|
36885
|
+
initialRect: cG,
|
|
36793
36886
|
measure: Z.draggable.measure
|
|
36794
36887
|
});
|
|
36795
|
-
let
|
|
36888
|
+
let lG = useRect(aG, Z.draggable.measure, cG), uG = useRect(aG ? aG.parentElement : null), dG = (0, import_react.useRef)({
|
|
36796
36889
|
activatorEvent: null,
|
|
36797
36890
|
active: null,
|
|
36798
|
-
activeNode:
|
|
36891
|
+
activeNode: aG,
|
|
36799
36892
|
collisionRect: null,
|
|
36800
36893
|
collisions: null,
|
|
36801
|
-
droppableRects:
|
|
36894
|
+
droppableRects: nG,
|
|
36802
36895
|
draggableNodes: E,
|
|
36803
36896
|
draggingNode: null,
|
|
36804
36897
|
draggingNodeRect: null,
|
|
@@ -36806,45 +36899,45 @@ ${c}
|
|
|
36806
36899
|
over: null,
|
|
36807
36900
|
scrollableAncestors: [],
|
|
36808
36901
|
scrollAdjustedTranslate: null
|
|
36809
|
-
}),
|
|
36902
|
+
}), fG = j.getNodeFor((_a5 = dG.current.over) == null ? void 0 : _a5.id), pG = useDragOverlayMeasuring({
|
|
36810
36903
|
measure: Z.dragOverlay.measure
|
|
36811
|
-
}),
|
|
36904
|
+
}), mG = pG.nodeRef.current ?? aG, hG = w ? pG.rect ?? lG : null, gG = !!(pG.nodeRef.current && pG.rect), _G = useRectDelta(gG ? null : lG), vG = useWindowRect(mG ? getWindow(mG) : null), yG = useScrollableAncestors(w ? fG ?? aG : null), bG = useRects(yG), xG = applyModifiers(m, {
|
|
36812
36905
|
transform: {
|
|
36813
|
-
x: O.x -
|
|
36814
|
-
y: O.y -
|
|
36906
|
+
x: O.x - _G.x,
|
|
36907
|
+
y: O.y - _G.y,
|
|
36815
36908
|
scaleX: 1,
|
|
36816
36909
|
scaleY: 1
|
|
36817
36910
|
},
|
|
36818
36911
|
activatorEvent: H,
|
|
36819
36912
|
active: L,
|
|
36820
|
-
activeNodeRect:
|
|
36821
|
-
containerNodeRect:
|
|
36822
|
-
draggingNodeRect:
|
|
36823
|
-
over:
|
|
36824
|
-
overlayNodeRect:
|
|
36825
|
-
scrollableAncestors:
|
|
36826
|
-
scrollableAncestorRects:
|
|
36827
|
-
windowRect:
|
|
36828
|
-
}),
|
|
36829
|
-
|
|
36830
|
-
]),
|
|
36913
|
+
activeNodeRect: lG,
|
|
36914
|
+
containerNodeRect: uG,
|
|
36915
|
+
draggingNodeRect: hG,
|
|
36916
|
+
over: dG.current.over,
|
|
36917
|
+
overlayNodeRect: pG.rect,
|
|
36918
|
+
scrollableAncestors: yG,
|
|
36919
|
+
scrollableAncestorRects: bG,
|
|
36920
|
+
windowRect: vG
|
|
36921
|
+
}), SG = oG ? add(oG, O) : null, CG = useScrollOffsets(yG), wG = useScrollOffsetsDelta(CG), TG = useScrollOffsetsDelta(CG, [
|
|
36922
|
+
lG
|
|
36923
|
+
]), EG = add(xG, wG), DG = hG ? getAdjustedRect(hG, xG) : null, OG = L && DG ? f({
|
|
36831
36924
|
active: L,
|
|
36832
|
-
collisionRect:
|
|
36833
|
-
droppableRects:
|
|
36834
|
-
droppableContainers:
|
|
36835
|
-
pointerCoordinates:
|
|
36836
|
-
}) : null,
|
|
36925
|
+
collisionRect: DG,
|
|
36926
|
+
droppableRects: nG,
|
|
36927
|
+
droppableContainers: tG,
|
|
36928
|
+
pointerCoordinates: SG
|
|
36929
|
+
}) : null, kG = getFirstCollision(OG, "id"), [AG, jG] = (0, import_react.useState)(null), MG = adjustScale(gG ? xG : add(xG, TG), (AG == null ? void 0 : AG.rect) ?? null, lG), NG = (0, import_react.useRef)(null), PG = (0, import_react.useCallback)((e2, r2) => {
|
|
36837
36930
|
let { sensor: c2, options: l2 } = r2;
|
|
36838
36931
|
if (R.current == null) return;
|
|
36839
36932
|
let u2 = E.get(R.current);
|
|
36840
36933
|
if (!u2) return;
|
|
36841
36934
|
let d2 = e2.nativeEvent;
|
|
36842
|
-
|
|
36935
|
+
NG.current = new c2({
|
|
36843
36936
|
active: R.current,
|
|
36844
36937
|
activeNode: u2,
|
|
36845
36938
|
event: d2,
|
|
36846
36939
|
options: l2,
|
|
36847
|
-
context:
|
|
36940
|
+
context: dG,
|
|
36848
36941
|
onAbort(e3) {
|
|
36849
36942
|
if (!E.get(e3)) return;
|
|
36850
36943
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -36889,7 +36982,7 @@ ${c}
|
|
|
36889
36982
|
}), v({
|
|
36890
36983
|
type: "onDragStart",
|
|
36891
36984
|
event: u3
|
|
36892
|
-
}), B(
|
|
36985
|
+
}), B(NG.current), W(d2);
|
|
36893
36986
|
});
|
|
36894
36987
|
},
|
|
36895
36988
|
onMove(e3) {
|
|
@@ -36903,7 +36996,7 @@ ${c}
|
|
|
36903
36996
|
});
|
|
36904
36997
|
function f2(e3) {
|
|
36905
36998
|
return async function() {
|
|
36906
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
36999
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = dG.current, f3 = null;
|
|
36907
37000
|
if (r3 && u3) {
|
|
36908
37001
|
let { cancelDrop: p2 } = G.current;
|
|
36909
37002
|
f3 = {
|
|
@@ -36917,7 +37010,7 @@ ${c}
|
|
|
36917
37010
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36918
37011
|
_({
|
|
36919
37012
|
type: e3
|
|
36920
|
-
}), S(Status.Uninitialized),
|
|
37013
|
+
}), S(Status.Uninitialized), jG(null), B(null), W(null), NG.current = null;
|
|
36921
37014
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
36922
37015
|
if (f3) {
|
|
36923
37016
|
let e4 = G.current[r4];
|
|
@@ -36931,7 +37024,7 @@ ${c}
|
|
|
36931
37024
|
}
|
|
36932
37025
|
}, [
|
|
36933
37026
|
E
|
|
36934
|
-
]),
|
|
37027
|
+
]), FG = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
36935
37028
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
36936
37029
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
36937
37030
|
let f2 = {
|
|
@@ -36939,26 +37032,26 @@ ${c}
|
|
|
36939
37032
|
};
|
|
36940
37033
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
36941
37034
|
capturedBy: r2.sensor
|
|
36942
|
-
}, R.current = l2,
|
|
37035
|
+
}, R.current = l2, PG(c2, r2));
|
|
36943
37036
|
}, [
|
|
36944
37037
|
E,
|
|
36945
|
-
|
|
37038
|
+
PG
|
|
36946
37039
|
]));
|
|
36947
37040
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
36948
|
-
|
|
37041
|
+
lG && b === Status.Initializing && S(Status.Initialized);
|
|
36949
37042
|
}, [
|
|
36950
|
-
|
|
37043
|
+
lG,
|
|
36951
37044
|
b
|
|
36952
37045
|
]), (0, import_react.useEffect)(() => {
|
|
36953
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
37046
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = dG.current;
|
|
36954
37047
|
if (!r2 || !c2) return;
|
|
36955
37048
|
let d2 = {
|
|
36956
37049
|
active: r2,
|
|
36957
37050
|
activatorEvent: c2,
|
|
36958
37051
|
collisions: l2,
|
|
36959
37052
|
delta: {
|
|
36960
|
-
x:
|
|
36961
|
-
y:
|
|
37053
|
+
x: EG.x,
|
|
37054
|
+
y: EG.y
|
|
36962
37055
|
},
|
|
36963
37056
|
over: u2
|
|
36964
37057
|
};
|
|
@@ -36969,12 +37062,12 @@ ${c}
|
|
|
36969
37062
|
});
|
|
36970
37063
|
});
|
|
36971
37064
|
}, [
|
|
36972
|
-
|
|
36973
|
-
|
|
37065
|
+
EG.x,
|
|
37066
|
+
EG.y
|
|
36974
37067
|
]), (0, import_react.useEffect)(() => {
|
|
36975
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
37068
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = dG.current;
|
|
36976
37069
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
36977
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
37070
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(kG), p2 = f2 && f2.rect.current ? {
|
|
36978
37071
|
id: f2.id,
|
|
36979
37072
|
rect: f2.rect.current,
|
|
36980
37073
|
data: f2.data,
|
|
@@ -36990,127 +37083,127 @@ ${c}
|
|
|
36990
37083
|
over: p2
|
|
36991
37084
|
};
|
|
36992
37085
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36993
|
-
|
|
37086
|
+
jG(p2), d2 == null ? void 0 : d2(m2), v({
|
|
36994
37087
|
type: "onDragOver",
|
|
36995
37088
|
event: m2
|
|
36996
37089
|
});
|
|
36997
37090
|
});
|
|
36998
37091
|
}, [
|
|
36999
|
-
|
|
37092
|
+
kG
|
|
37000
37093
|
]), useIsomorphicLayoutEffect(() => {
|
|
37001
|
-
|
|
37094
|
+
dG.current = {
|
|
37002
37095
|
activatorEvent: H,
|
|
37003
37096
|
active: L,
|
|
37004
|
-
activeNode:
|
|
37005
|
-
collisionRect:
|
|
37006
|
-
collisions:
|
|
37007
|
-
droppableRects:
|
|
37097
|
+
activeNode: aG,
|
|
37098
|
+
collisionRect: DG,
|
|
37099
|
+
collisions: OG,
|
|
37100
|
+
droppableRects: nG,
|
|
37008
37101
|
draggableNodes: E,
|
|
37009
|
-
draggingNode:
|
|
37010
|
-
draggingNodeRect:
|
|
37102
|
+
draggingNode: mG,
|
|
37103
|
+
draggingNodeRect: hG,
|
|
37011
37104
|
droppableContainers: j,
|
|
37012
|
-
over:
|
|
37013
|
-
scrollableAncestors:
|
|
37014
|
-
scrollAdjustedTranslate:
|
|
37105
|
+
over: AG,
|
|
37106
|
+
scrollableAncestors: yG,
|
|
37107
|
+
scrollAdjustedTranslate: EG
|
|
37015
37108
|
}, I.current = {
|
|
37016
|
-
initial:
|
|
37017
|
-
translated:
|
|
37109
|
+
initial: hG,
|
|
37110
|
+
translated: DG
|
|
37018
37111
|
};
|
|
37019
37112
|
}, [
|
|
37020
37113
|
L,
|
|
37021
|
-
|
|
37022
|
-
|
|
37023
|
-
|
|
37114
|
+
aG,
|
|
37115
|
+
OG,
|
|
37116
|
+
DG,
|
|
37024
37117
|
E,
|
|
37025
|
-
|
|
37026
|
-
dG,
|
|
37027
|
-
QW,
|
|
37028
|
-
j,
|
|
37029
|
-
EG,
|
|
37118
|
+
mG,
|
|
37030
37119
|
hG,
|
|
37031
|
-
|
|
37120
|
+
nG,
|
|
37121
|
+
j,
|
|
37122
|
+
AG,
|
|
37123
|
+
yG,
|
|
37124
|
+
EG
|
|
37032
37125
|
]), useAutoScroller({
|
|
37033
|
-
...
|
|
37126
|
+
...sG,
|
|
37034
37127
|
delta: O,
|
|
37035
|
-
draggingRect:
|
|
37036
|
-
pointerCoordinates:
|
|
37037
|
-
scrollableAncestors:
|
|
37038
|
-
scrollableAncestorRects:
|
|
37128
|
+
draggingRect: DG,
|
|
37129
|
+
pointerCoordinates: SG,
|
|
37130
|
+
scrollableAncestors: yG,
|
|
37131
|
+
scrollableAncestorRects: bG
|
|
37039
37132
|
});
|
|
37040
|
-
let
|
|
37133
|
+
let IG = (0, import_react.useMemo)(() => ({
|
|
37041
37134
|
active: L,
|
|
37042
|
-
activeNode:
|
|
37043
|
-
activeNodeRect:
|
|
37135
|
+
activeNode: aG,
|
|
37136
|
+
activeNodeRect: lG,
|
|
37044
37137
|
activatorEvent: H,
|
|
37045
|
-
collisions:
|
|
37046
|
-
containerNodeRect:
|
|
37047
|
-
dragOverlay:
|
|
37138
|
+
collisions: OG,
|
|
37139
|
+
containerNodeRect: uG,
|
|
37140
|
+
dragOverlay: pG,
|
|
37048
37141
|
draggableNodes: E,
|
|
37049
37142
|
droppableContainers: j,
|
|
37050
|
-
droppableRects:
|
|
37051
|
-
over:
|
|
37052
|
-
measureDroppableContainers:
|
|
37053
|
-
scrollableAncestors:
|
|
37054
|
-
scrollableAncestorRects:
|
|
37143
|
+
droppableRects: nG,
|
|
37144
|
+
over: AG,
|
|
37145
|
+
measureDroppableContainers: rG,
|
|
37146
|
+
scrollableAncestors: yG,
|
|
37147
|
+
scrollableAncestorRects: bG,
|
|
37055
37148
|
measuringConfiguration: Z,
|
|
37056
|
-
measuringScheduled:
|
|
37057
|
-
windowRect:
|
|
37149
|
+
measuringScheduled: iG,
|
|
37150
|
+
windowRect: vG
|
|
37058
37151
|
}), [
|
|
37059
37152
|
L,
|
|
37060
|
-
tG,
|
|
37061
37153
|
aG,
|
|
37062
|
-
H,
|
|
37063
|
-
wG,
|
|
37064
|
-
oG,
|
|
37065
37154
|
lG,
|
|
37155
|
+
H,
|
|
37156
|
+
OG,
|
|
37157
|
+
uG,
|
|
37158
|
+
pG,
|
|
37066
37159
|
E,
|
|
37067
37160
|
j,
|
|
37068
|
-
|
|
37069
|
-
|
|
37070
|
-
|
|
37071
|
-
|
|
37072
|
-
|
|
37161
|
+
nG,
|
|
37162
|
+
AG,
|
|
37163
|
+
rG,
|
|
37164
|
+
yG,
|
|
37165
|
+
bG,
|
|
37073
37166
|
Z,
|
|
37074
|
-
|
|
37075
|
-
|
|
37076
|
-
]),
|
|
37167
|
+
iG,
|
|
37168
|
+
vG
|
|
37169
|
+
]), LG = (0, import_react.useMemo)(() => ({
|
|
37077
37170
|
activatorEvent: H,
|
|
37078
|
-
activators:
|
|
37171
|
+
activators: FG,
|
|
37079
37172
|
active: L,
|
|
37080
|
-
activeNodeRect:
|
|
37173
|
+
activeNodeRect: lG,
|
|
37081
37174
|
ariaDescribedById: {
|
|
37082
37175
|
draggable: q
|
|
37083
37176
|
},
|
|
37084
37177
|
dispatch: _,
|
|
37085
37178
|
draggableNodes: E,
|
|
37086
|
-
over:
|
|
37087
|
-
measureDroppableContainers:
|
|
37179
|
+
over: AG,
|
|
37180
|
+
measureDroppableContainers: rG
|
|
37088
37181
|
}), [
|
|
37089
37182
|
H,
|
|
37090
|
-
|
|
37183
|
+
FG,
|
|
37091
37184
|
L,
|
|
37092
|
-
|
|
37185
|
+
lG,
|
|
37093
37186
|
_,
|
|
37094
37187
|
q,
|
|
37095
37188
|
E,
|
|
37096
|
-
|
|
37097
|
-
|
|
37189
|
+
AG,
|
|
37190
|
+
rG
|
|
37098
37191
|
]);
|
|
37099
37192
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
37100
37193
|
value: y
|
|
37101
37194
|
}, import_react.createElement(InternalContext.Provider, {
|
|
37102
|
-
value:
|
|
37195
|
+
value: LG
|
|
37103
37196
|
}, import_react.createElement(PublicContext.Provider, {
|
|
37104
|
-
value:
|
|
37197
|
+
value: IG
|
|
37105
37198
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
37106
|
-
value:
|
|
37199
|
+
value: MG
|
|
37107
37200
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
37108
37201
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
37109
37202
|
})), import_react.createElement(Accessibility, {
|
|
37110
37203
|
...c,
|
|
37111
37204
|
hiddenTextDescribedById: q
|
|
37112
37205
|
}));
|
|
37113
|
-
function
|
|
37206
|
+
function RG() {
|
|
37114
37207
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
37115
37208
|
return typeof l == "object" ? {
|
|
37116
37209
|
...l,
|
|
@@ -37638,7 +37731,7 @@ ${c}
|
|
|
37638
37731
|
updateMeasurementsFor: I,
|
|
37639
37732
|
...m
|
|
37640
37733
|
}
|
|
37641
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
37734
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: tG, listeners: Z, isDragging: nG, over: rG, setActivatorNodeRef: iG, transform: aG } = useDraggable({
|
|
37642
37735
|
id: f,
|
|
37643
37736
|
data: M,
|
|
37644
37737
|
attributes: {
|
|
@@ -37646,60 +37739,60 @@ ${c}
|
|
|
37646
37739
|
...c
|
|
37647
37740
|
},
|
|
37648
37741
|
disabled: O.draggable
|
|
37649
|
-
}),
|
|
37742
|
+
}), oG = useCombinedRefs(B, tG), sG = !!H, cG = sG && !b && isValidIndex(v) && isValidIndex(w), lG = !T && nG, uG = cG ? (lG && cG ? aG : null) ?? (p ?? E)({
|
|
37650
37743
|
rects: S,
|
|
37651
37744
|
activeNodeRect: G,
|
|
37652
37745
|
activeIndex: v,
|
|
37653
37746
|
overIndex: w,
|
|
37654
37747
|
index: j
|
|
37655
|
-
}) : null,
|
|
37748
|
+
}) : null, dG = isValidIndex(v) && isValidIndex(w) ? d({
|
|
37656
37749
|
id: f,
|
|
37657
37750
|
items: g,
|
|
37658
37751
|
activeIndex: v,
|
|
37659
37752
|
overIndex: w
|
|
37660
|
-
}) : j,
|
|
37661
|
-
activeId:
|
|
37753
|
+
}) : j, fG = H == null ? void 0 : H.id, pG = (0, import_react.useRef)({
|
|
37754
|
+
activeId: fG,
|
|
37662
37755
|
items: g,
|
|
37663
|
-
newIndex:
|
|
37756
|
+
newIndex: dG,
|
|
37664
37757
|
containerId: _
|
|
37665
|
-
}),
|
|
37758
|
+
}), mG = g !== pG.current.items, hG = r({
|
|
37666
37759
|
active: H,
|
|
37667
37760
|
containerId: _,
|
|
37668
|
-
isDragging:
|
|
37669
|
-
isSorting:
|
|
37761
|
+
isDragging: nG,
|
|
37762
|
+
isSorting: sG,
|
|
37670
37763
|
id: f,
|
|
37671
37764
|
index: j,
|
|
37672
37765
|
items: g,
|
|
37673
|
-
newIndex:
|
|
37674
|
-
previousItems:
|
|
37675
|
-
previousContainerId:
|
|
37766
|
+
newIndex: pG.current.newIndex,
|
|
37767
|
+
previousItems: pG.current.items,
|
|
37768
|
+
previousContainerId: pG.current.containerId,
|
|
37676
37769
|
transition: h,
|
|
37677
|
-
wasDragging:
|
|
37678
|
-
}),
|
|
37679
|
-
disabled: !
|
|
37770
|
+
wasDragging: pG.current.activeId != null
|
|
37771
|
+
}), gG = useDerivedTransform({
|
|
37772
|
+
disabled: !hG,
|
|
37680
37773
|
index: j,
|
|
37681
37774
|
node: R,
|
|
37682
37775
|
rect: L
|
|
37683
37776
|
});
|
|
37684
37777
|
return (0, import_react.useEffect)(() => {
|
|
37685
|
-
|
|
37778
|
+
sG && pG.current.newIndex !== dG && (pG.current.newIndex = dG), _ !== pG.current.containerId && (pG.current.containerId = _), g !== pG.current.items && (pG.current.items = g);
|
|
37686
37779
|
}, [
|
|
37687
|
-
rG,
|
|
37688
37780
|
sG,
|
|
37781
|
+
dG,
|
|
37689
37782
|
_,
|
|
37690
37783
|
g
|
|
37691
37784
|
]), (0, import_react.useEffect)(() => {
|
|
37692
|
-
if (
|
|
37693
|
-
if (
|
|
37694
|
-
|
|
37785
|
+
if (fG === pG.current.activeId) return;
|
|
37786
|
+
if (fG != null && pG.current.activeId == null) {
|
|
37787
|
+
pG.current.activeId = fG;
|
|
37695
37788
|
return;
|
|
37696
37789
|
}
|
|
37697
37790
|
let e2 = setTimeout(() => {
|
|
37698
|
-
|
|
37791
|
+
pG.current.activeId = fG;
|
|
37699
37792
|
}, 50);
|
|
37700
37793
|
return () => clearTimeout(e2);
|
|
37701
37794
|
}, [
|
|
37702
|
-
|
|
37795
|
+
fG
|
|
37703
37796
|
]), {
|
|
37704
37797
|
active: H,
|
|
37705
37798
|
activeIndex: v,
|
|
@@ -37707,25 +37800,25 @@ ${c}
|
|
|
37707
37800
|
data: M,
|
|
37708
37801
|
rect: L,
|
|
37709
37802
|
index: j,
|
|
37710
|
-
newIndex:
|
|
37803
|
+
newIndex: dG,
|
|
37711
37804
|
items: g,
|
|
37712
37805
|
isOver: z,
|
|
37713
|
-
isSorting:
|
|
37714
|
-
isDragging:
|
|
37806
|
+
isSorting: sG,
|
|
37807
|
+
isDragging: nG,
|
|
37715
37808
|
listeners: Z,
|
|
37716
37809
|
node: R,
|
|
37717
37810
|
overIndex: w,
|
|
37718
|
-
over:
|
|
37719
|
-
setNodeRef:
|
|
37720
|
-
setActivatorNodeRef:
|
|
37811
|
+
over: rG,
|
|
37812
|
+
setNodeRef: oG,
|
|
37813
|
+
setActivatorNodeRef: iG,
|
|
37721
37814
|
setDroppableNodeRef: B,
|
|
37722
|
-
setDraggableNodeRef:
|
|
37723
|
-
transform:
|
|
37724
|
-
transition:
|
|
37815
|
+
setDraggableNodeRef: tG,
|
|
37816
|
+
transform: gG ?? uG,
|
|
37817
|
+
transition: _G()
|
|
37725
37818
|
};
|
|
37726
|
-
function
|
|
37727
|
-
if (
|
|
37728
|
-
if (!(
|
|
37819
|
+
function _G() {
|
|
37820
|
+
if (gG || mG && pG.current.newIndex === j) return disabledTransition;
|
|
37821
|
+
if (!(lG && !isKeyboardEvent(W) || !h) && (sG || hG)) return CSS$1.Transition.toString({
|
|
37729
37822
|
...h,
|
|
37730
37823
|
property: transitionProperty
|
|
37731
37824
|
});
|
|
@@ -38025,15 +38118,15 @@ ${c}
|
|
|
38025
38118
|
G
|
|
38026
38119
|
]
|
|
38027
38120
|
}), r[35] = c.id, r[36] = m, r[37] = y, r[38] = b, r[39] = I, r[40] = z, r[41] = B, r[42] = H, r[43] = W, r[44] = G, r[45] = q) : q = r[45];
|
|
38028
|
-
let
|
|
38029
|
-
if (!v && !g) return
|
|
38121
|
+
let tG = q;
|
|
38122
|
+
if (!v && !g) return tG;
|
|
38030
38123
|
let Z;
|
|
38031
|
-
r[46] ===
|
|
38124
|
+
r[46] === tG ? Z = r[47] : (Z = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
38032
38125
|
asChild: true,
|
|
38033
|
-
children:
|
|
38034
|
-
}), r[46] =
|
|
38035
|
-
let
|
|
38036
|
-
r[48] === v ?
|
|
38126
|
+
children: tG
|
|
38127
|
+
}), r[46] = tG, r[47] = Z);
|
|
38128
|
+
let nG;
|
|
38129
|
+
r[48] === v ? nG = r[49] : (nG = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
38037
38130
|
onSelect: v,
|
|
38038
38131
|
children: [
|
|
38039
38132
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -38041,11 +38134,11 @@ ${c}
|
|
|
38041
38134
|
}),
|
|
38042
38135
|
"Add cell"
|
|
38043
38136
|
]
|
|
38044
|
-
}), r[48] = v, r[49] =
|
|
38045
|
-
let
|
|
38046
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
38047
|
-
let
|
|
38048
|
-
r[51] === g ?
|
|
38137
|
+
}), r[48] = v, r[49] = nG);
|
|
38138
|
+
let rG;
|
|
38139
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rG = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = rG) : rG = r[50];
|
|
38140
|
+
let iG;
|
|
38141
|
+
r[51] === g ? iG = r[52] : (iG = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
38049
38142
|
variant: "danger",
|
|
38050
38143
|
onSelect: g,
|
|
38051
38144
|
children: [
|
|
@@ -38054,22 +38147,22 @@ ${c}
|
|
|
38054
38147
|
}),
|
|
38055
38148
|
"Delete cell"
|
|
38056
38149
|
]
|
|
38057
|
-
}), r[51] = g, r[52] =
|
|
38058
|
-
let
|
|
38059
|
-
r[53] !==
|
|
38150
|
+
}), r[51] = g, r[52] = iG);
|
|
38151
|
+
let aG;
|
|
38152
|
+
r[53] !== nG || r[54] !== iG ? (aG = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
38060
38153
|
children: [
|
|
38061
|
-
|
|
38062
|
-
|
|
38063
|
-
|
|
38154
|
+
nG,
|
|
38155
|
+
rG,
|
|
38156
|
+
iG
|
|
38064
38157
|
]
|
|
38065
|
-
}), r[53] =
|
|
38066
|
-
let
|
|
38067
|
-
return r[56] !== Z || r[57] !==
|
|
38158
|
+
}), r[53] = nG, r[54] = iG, r[55] = aG) : aG = r[55];
|
|
38159
|
+
let oG;
|
|
38160
|
+
return r[56] !== Z || r[57] !== aG ? (oG = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
38068
38161
|
children: [
|
|
38069
38162
|
Z,
|
|
38070
|
-
|
|
38163
|
+
aG
|
|
38071
38164
|
]
|
|
38072
|
-
}), r[56] = Z, r[57] =
|
|
38165
|
+
}), r[56] = Z, r[57] = aG, r[58] = oG) : oG = r[58], oG;
|
|
38073
38166
|
}, InsertCellLine = (e) => {
|
|
38074
38167
|
let r = (0, import_compiler_runtime$10.c)(10), { position: c, onInsert: l } = e, u = c === "below" ? "bottom-0 translate-y-1/2" : "top-0 -translate-y-1/2", d;
|
|
38075
38168
|
r[0] === u ? d = r[1] : (d = cn("absolute left-0 right-0 z-30 flex h-3 items-center justify-center", "opacity-0 transition-opacity hover:opacity-80 focus-visible:opacity-100 focus:outline-hidden", u), r[0] = u, r[1] = d);
|
|
@@ -38123,10 +38216,10 @@ ${c}
|
|
|
38123
38216
|
...B,
|
|
38124
38217
|
...m
|
|
38125
38218
|
}, r[20] = M, r[21] = m, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
38126
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
38127
|
-
r[25] !== l || r[26] !==
|
|
38128
|
-
let
|
|
38129
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
38219
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", tG = w && !T && "opacity-35", Z = T && "opacity-95 shadow-lg", nG;
|
|
38220
|
+
r[25] !== l || r[26] !== tG || r[27] !== Z || r[28] !== q ? (nG = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, tG, Z, l), r[25] = l, r[26] = tG, r[27] = Z, r[28] = q, r[29] = nG) : nG = r[29];
|
|
38221
|
+
let rG;
|
|
38222
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (rG = G && (0, import_jsx_runtime.jsx)("div", {
|
|
38130
38223
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
38131
38224
|
style: {
|
|
38132
38225
|
transform: `scale(${I})`,
|
|
@@ -38142,14 +38235,14 @@ ${c}
|
|
|
38142
38235
|
output: c.output,
|
|
38143
38236
|
stale: outputIsStale(c, false)
|
|
38144
38237
|
})
|
|
38145
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
38146
|
-
let
|
|
38147
|
-
r[37] === z ?
|
|
38238
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = rG) : rG = r[36];
|
|
38239
|
+
let iG;
|
|
38240
|
+
r[37] === z ? iG = r[38] : (iG = z && (0, import_jsx_runtime.jsx)("div", {
|
|
38148
38241
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
38149
38242
|
"aria-hidden": true
|
|
38150
|
-
}), r[37] = z, r[38] =
|
|
38151
|
-
let
|
|
38152
|
-
r[39] !== z || r[40] !== R ? (
|
|
38243
|
+
}), r[37] = z, r[38] = iG);
|
|
38244
|
+
let aG;
|
|
38245
|
+
r[39] !== z || r[40] !== R ? (aG = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
38153
38246
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
38154
38247
|
className: "text-xs opacity-80",
|
|
38155
38248
|
children: R.description
|
|
@@ -38161,19 +38254,19 @@ ${c}
|
|
|
38161
38254
|
className: "h-3.5 w-3.5"
|
|
38162
38255
|
})
|
|
38163
38256
|
})
|
|
38164
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
38165
|
-
let
|
|
38166
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
38257
|
+
}), r[39] = z, r[40] = R, r[41] = aG) : aG = r[41];
|
|
38258
|
+
let oG;
|
|
38259
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== nG || r[46] !== rG || r[47] !== iG || r[48] !== aG ? (oG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38167
38260
|
ref: f,
|
|
38168
|
-
className:
|
|
38261
|
+
className: nG,
|
|
38169
38262
|
style: W,
|
|
38170
38263
|
...d,
|
|
38171
38264
|
children: [
|
|
38172
|
-
|
|
38173
|
-
|
|
38174
|
-
|
|
38265
|
+
rG,
|
|
38266
|
+
iG,
|
|
38267
|
+
aG
|
|
38175
38268
|
]
|
|
38176
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
38269
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = nG, r[46] = rG, r[47] = iG, r[48] = aG, r[49] = oG) : oG = r[49], oG;
|
|
38177
38270
|
}, MiniCodePreview = (e) => {
|
|
38178
38271
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
38179
38272
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -38213,7 +38306,7 @@ ${c}
|
|
|
38213
38306
|
function _temp2$2(e) {
|
|
38214
38307
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
38215
38308
|
}
|
|
38216
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
38309
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-DZSd6eh0.js"));
|
|
38217
38310
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
38218
38311
|
var _a5;
|
|
38219
38312
|
let u = useAtomValue(kioskModeAtom), d = l === "read" || u, f = useAtomValue(numColumnsAtom) > 1, [p, m] = (0, import_react.useState)(null), { slideCells: h, skippedIds: g, noOutputIds: _, slideTypes: v, startCellIndex: y } = (0, import_react.useMemo)(() => computeSlideCellsInfo(c, e), [
|
|
@@ -38598,7 +38691,7 @@ ${c}
|
|
|
38598
38691
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
38599
38692
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
38600
38693
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
38601
|
-
let H, W, G, q,
|
|
38694
|
+
let H, W, G, q, tG, Z, nG, rG, iG, aG;
|
|
38602
38695
|
if (r[3] !== w || r[4] !== M || r[5] !== I || r[6] !== L || r[7] !== _ || r[8] !== b || r[9] !== d || r[10] !== z || r[11] !== O || r[12] !== j || r[13] !== E || r[14] !== R || r[15] !== f || r[16] !== u || r[17] !== y || r[18] !== p || r[19] !== l) {
|
|
38603
38696
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
38604
38697
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -38644,11 +38737,11 @@ ${c}
|
|
|
38644
38737
|
})
|
|
38645
38738
|
})
|
|
38646
38739
|
]
|
|
38647
|
-
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area",
|
|
38648
|
-
let
|
|
38649
|
-
r[40] !== M || r[41] !==
|
|
38740
|
+
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", tG = c, Z = R, nG = 0;
|
|
38741
|
+
let oG2 = y && "marimo-output-stale", sG2 = L ? "p-5" : "p-3";
|
|
38742
|
+
r[40] !== M || r[41] !== oG2 || r[42] !== sG2 ? (rG = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", oG2, sG2, M), r[40] = M, r[41] = oG2, r[42] = sG2, r[43] = rG) : rG = r[43], r[44] === d ? iG = r[45] : (iG = d ? {
|
|
38650
38743
|
maxHeight: "none"
|
|
38651
|
-
} : void 0, r[44] = d, r[45] =
|
|
38744
|
+
} : void 0, r[44] = d, r[45] = iG), aG = e2.map((e3, r2) => {
|
|
38652
38745
|
if (e3.channel === "pdb") return null;
|
|
38653
38746
|
if (e3.channel === "stdin") {
|
|
38654
38747
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -38677,36 +38770,36 @@ ${c}
|
|
|
38677
38770
|
wrapText: l
|
|
38678
38771
|
})
|
|
38679
38772
|
}, r2);
|
|
38680
|
-
}), r[3] = w, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] =
|
|
38681
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
38682
|
-
let
|
|
38683
|
-
r[46] !== w || r[47] !== S ? (
|
|
38773
|
+
}), r[3] = w, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = tG, r[25] = Z, r[26] = nG, r[27] = rG, r[28] = iG, r[29] = aG;
|
|
38774
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], tG = r[24], Z = r[25], nG = r[26], rG = r[27], iG = r[28], aG = r[29];
|
|
38775
|
+
let oG;
|
|
38776
|
+
r[46] !== w || r[47] !== S ? (oG = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
38684
38777
|
value: S,
|
|
38685
38778
|
cellId: w,
|
|
38686
38779
|
className: "bg-(--slate-4) border-(--slate-4) hover:bg-(--slate-5) dark:border-(--sky-5) dark:bg-(--sky-6) dark:text-(--sky-12) text-(--slate-12) rounded-l rounded-br-lg absolute right-0 bottom-0 text-xs px-1.5 py-0.5 font-mono max-w-[75%] whitespace-nowrap overflow-hidden"
|
|
38687
|
-
}), r[46] = w, r[47] = S, r[48] =
|
|
38688
|
-
let
|
|
38689
|
-
r[49] !==
|
|
38780
|
+
}), r[46] = w, r[47] = S, r[48] = oG) : oG = r[48];
|
|
38781
|
+
let sG;
|
|
38782
|
+
r[49] !== oG || r[50] !== G || r[51] !== q || r[52] !== tG || r[53] !== Z || r[54] !== nG || r[55] !== rG || r[56] !== iG || r[57] !== aG ? (sG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38690
38783
|
title: G,
|
|
38691
38784
|
"data-testid": q,
|
|
38692
|
-
ref:
|
|
38785
|
+
ref: tG,
|
|
38693
38786
|
...Z,
|
|
38694
|
-
tabIndex:
|
|
38695
|
-
className:
|
|
38696
|
-
style:
|
|
38787
|
+
tabIndex: nG,
|
|
38788
|
+
className: rG,
|
|
38789
|
+
style: iG,
|
|
38697
38790
|
children: [
|
|
38698
|
-
|
|
38699
|
-
|
|
38791
|
+
aG,
|
|
38792
|
+
oG
|
|
38700
38793
|
]
|
|
38701
|
-
}), r[49] =
|
|
38702
|
-
let
|
|
38703
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
38794
|
+
}), r[49] = oG, r[50] = G, r[51] = q, r[52] = tG, r[53] = Z, r[54] = nG, r[55] = rG, r[56] = iG, r[57] = aG, r[58] = sG) : sG = r[58];
|
|
38795
|
+
let cG;
|
|
38796
|
+
return r[59] !== H || r[60] !== W || r[61] !== sG ? (cG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38704
38797
|
className: H,
|
|
38705
38798
|
children: [
|
|
38706
38799
|
W,
|
|
38707
|
-
|
|
38800
|
+
sG
|
|
38708
38801
|
]
|
|
38709
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
38802
|
+
}), r[59] = H, r[60] = W, r[61] = sG, r[62] = cG) : cG = r[62], cG;
|
|
38710
38803
|
}, StdInput = (e) => {
|
|
38711
38804
|
let r = (0, import_compiler_runtime$6.c)(25), { value: c, setValue: l, inputHistory: u, output: d, isPassword: f, isPdb: p, onSubmit: m, onClear: h } = e, { navigateUp: g, navigateDown: _, addToHistory: v } = u, y;
|
|
38712
38805
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|