@marimo-team/islands 0.23.12-dev10 → 0.23.12-dev11
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/{code-visibility-D1W_9sHW.js → code-visibility-Bi2d-Fh5.js} +1 -1
- package/dist/main.js +1084 -988
- package/dist/{reveal-component-BXP8Y-bq.js → reveal-component-OEq7xNow.js} +1 -1
- package/package.json +1 -1
- package/src/core/islands/__tests__/bridge.test.ts +25 -0
- package/src/core/islands/__tests__/parse.test.ts +585 -1
- package/src/core/islands/__tests__/test-utils.tsx +10 -1
- package/src/core/islands/bridge.ts +6 -1
- package/src/core/islands/constants.ts +2 -0
- package/src/core/islands/parse.ts +293 -13
package/dist/main.js
CHANGED
|
@@ -26,7 +26,7 @@ import { $ as reducer, B as safeExtractSetUIElementMessageBuffers, Bn as CircleA
|
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BbqSm5gU.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist--2Bqjvs0.js";
|
|
28
28
|
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-Bv-XlYiv.js";
|
|
29
|
-
import { $ as contextAwarePanelOpen, $t as $fae977aafc393c5c$export$6b862160d295c8e, A as prettifyRowCount, At as SELECT_COLUMN_ID, B as DatePicker, Bt as TabsContent, C as downloadSizeLimitAtom, Ct as DelayMount, D as ErrorState, Dt as loadTableAndRawData, E as EmptyState, Et as getPageIndexForRow, F as ContextMenuSeparator, Ft as Maps, G as CommandEmpty, Gt as ChartLoadingState, H as Combobox, Ht as TabsTrigger, I as ContextMenuTrigger, It as dateToLocalISODate, J as CommandList, Jt as RenderTextWithLinks, K as CommandInput, Kt as LazyVegaEmbed, L as useInternalStateWithSync, Lt as dateToLocalISODateTime, M as ContextMenu, Mt as toFieldTypes, N as ContextMenuContent, Nt as getMimeValues, O as LoadingState, Ot as loadTableData, P as ContextMenuItem, Pt as isNullishFilter, Q as PANEL_TYPES, Qt as $fae977aafc393c5c$export$588937bcd60ade55, R as useSelectList, Rt as dateToLocalISOTime, S as Filenames, St as ColumnChartSpecModel, T as ColumnPreviewContainer, Tt as usePrevious$1, U as ComboboxItem, Ut as ChartErrorState, V as DateRangePicker, Vt as TabsList, W as Command, Wt as ChartInfoState, X as smartMatch, Xt as HtmlOutput, Y as CommandSeparator, Yt as Kbd, Z as ContextAwarePanelItem, Zt as EmotionCacheProvider, _ as ADD_PRINTING_CLASS, _t as NAMELESS_COLUMN_PREFIX, an as Ellipsis, at as Toggle, b as downloadHTMLAsImage, bt as renderCellValue, c as Slide, cn as ChevronsUpDown, d as RadioGroupItem, dn as ChevronsDownUp, dt as Table, en as TextWrap, et as contextAwarePanelOwner, f as JsonOutput, fn as ChevronLeft, ft as TableBody, g as InstallPackageButton, gt as TableRow, h as DataTable, ht as TableHeader, it as slotsController, j as getColumnCountForDisplay, jt as TOO_MANY_ROWS, k as prettifyRowColumnCount, kt as INDEX_COLUMN_NAME, l as Switch, ln as ChevronsRight, lt as Fill, m as OutputRenderer, mt as TableHead, n as marimoVersionAtom, nn as Funnel, nt as isCellAwareAtom, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as Download, p as OutputArea, pn as ArrowDownWideNarrow, pt as TableCell, q as CommandItem, qt as useOverflowDetection, r as showCodeInRunModeAtom, rn as EyeOff, rt as SlotNames, sn as Code, t as useNotebookCodeAvailable, tn as GripHorizontal, tt as contextAwarePanelType, u as RadioGroup, un as ChevronsLeft, ut as Provider$1, v as downloadBlob, vt as generateColumns, w as ColumnName, wt as useIntersectionObserver, x as Progress, xt as ColumnChartContext, y as downloadByURL, yt as inferFieldTypes, z as CompactChipRow, zt as Tabs, __tla as __tla_2 } from "./code-visibility-
|
|
29
|
+
import { $ as contextAwarePanelOpen, $t as $fae977aafc393c5c$export$6b862160d295c8e, A as prettifyRowCount, At as SELECT_COLUMN_ID, B as DatePicker, Bt as TabsContent, C as downloadSizeLimitAtom, Ct as DelayMount, D as ErrorState, Dt as loadTableAndRawData, E as EmptyState, Et as getPageIndexForRow, F as ContextMenuSeparator, Ft as Maps, G as CommandEmpty, Gt as ChartLoadingState, H as Combobox, Ht as TabsTrigger, I as ContextMenuTrigger, It as dateToLocalISODate, J as CommandList, Jt as RenderTextWithLinks, K as CommandInput, Kt as LazyVegaEmbed, L as useInternalStateWithSync, Lt as dateToLocalISODateTime, M as ContextMenu, Mt as toFieldTypes, N as ContextMenuContent, Nt as getMimeValues, O as LoadingState, Ot as loadTableData, P as ContextMenuItem, Pt as isNullishFilter, Q as PANEL_TYPES, Qt as $fae977aafc393c5c$export$588937bcd60ade55, R as useSelectList, Rt as dateToLocalISOTime, S as Filenames, St as ColumnChartSpecModel, T as ColumnPreviewContainer, Tt as usePrevious$1, U as ComboboxItem, Ut as ChartErrorState, V as DateRangePicker, Vt as TabsList, W as Command, Wt as ChartInfoState, X as smartMatch, Xt as HtmlOutput, Y as CommandSeparator, Yt as Kbd, Z as ContextAwarePanelItem, Zt as EmotionCacheProvider, _ as ADD_PRINTING_CLASS, _t as NAMELESS_COLUMN_PREFIX, an as Ellipsis, at as Toggle, b as downloadHTMLAsImage, bt as renderCellValue, c as Slide, cn as ChevronsUpDown, d as RadioGroupItem, dn as ChevronsDownUp, dt as Table, en as TextWrap, et as contextAwarePanelOwner, f as JsonOutput, fn as ChevronLeft, ft as TableBody, g as InstallPackageButton, gt as TableRow, h as DataTable, ht as TableHeader, it as slotsController, j as getColumnCountForDisplay, jt as TOO_MANY_ROWS, k as prettifyRowColumnCount, kt as INDEX_COLUMN_NAME, l as Switch, ln as ChevronsRight, lt as Fill, m as OutputRenderer, mt as TableHead, n as marimoVersionAtom, nn as Funnel, nt as isCellAwareAtom, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as Download, p as OutputArea, pn as ArrowDownWideNarrow, pt as TableCell, q as CommandItem, qt as useOverflowDetection, r as showCodeInRunModeAtom, rn as EyeOff, rt as SlotNames, sn as Code, t as useNotebookCodeAvailable, tn as GripHorizontal, tt as contextAwarePanelType, u as RadioGroup, un as ChevronsLeft, ut as Provider$1, v as downloadBlob, vt as generateColumns, w as ColumnName, wt as useIntersectionObserver, x as Progress, xt as ColumnChartContext, y as downloadByURL, yt as inferFieldTypes, z as CompactChipRow, zt as Tabs, __tla as __tla_2 } from "./code-visibility-Bi2d-Fh5.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-AHlswLw-.js";
|
|
31
31
|
import { t as Check } from "./check-C9OoNtR4.js";
|
|
32
32
|
import { A as Icon, C as logNever, D as $18f2051aff69b9bf$export$a54013f0d02a8f82, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, M as clamp$2, N as usePrevious$2, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as Trigger$1, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./strings-Dq_j3Rxw.js";
|
|
@@ -6993,33 +6993,33 @@ let __tla = Promise.all([
|
|
|
6993
6993
|
}), B = C({
|
|
6994
6994
|
height: 0,
|
|
6995
6995
|
width: 0
|
|
6996
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
6996
|
+
}), H = U(), W = U(), G = C(0), q = C(null), ZU = C({
|
|
6997
6997
|
column: 0,
|
|
6998
6998
|
row: 0
|
|
6999
|
-
}), Z = U(),
|
|
7000
|
-
Y(x(b, $(
|
|
7001
|
-
D(
|
|
7002
|
-
}), Y(x(ut(b,
|
|
7003
|
-
D(
|
|
6999
|
+
}), Z = U(), QU = U(), $U = C(false), eW = C(0), tW = C(true), nW = C(false), rW = C(false);
|
|
7000
|
+
Y(x(b, $(eW), P(([e2, r2]) => !!r2)), () => {
|
|
7001
|
+
D(tW, false);
|
|
7002
|
+
}), Y(x(ut(b, tW, B, z, eW, nW), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7003
|
+
D(nW, true), Ue(1, () => {
|
|
7004
7004
|
D(H, e2);
|
|
7005
7005
|
}), Et(x(h), () => {
|
|
7006
7006
|
D(r, [
|
|
7007
7007
|
0,
|
|
7008
7008
|
0
|
|
7009
|
-
]), D(
|
|
7009
|
+
]), D(tW, true);
|
|
7010
7010
|
});
|
|
7011
|
-
}), F(x(
|
|
7012
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7013
|
-
D(
|
|
7011
|
+
}), F(x(QU, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(QU), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7012
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(ZU, e2.gap), e2.scrollTop > 0 && (D($U, true), Et(x(h, Kt(1)), (e3) => {
|
|
7013
|
+
D($U, false);
|
|
7014
7014
|
}), D(m, {
|
|
7015
7015
|
top: e2.scrollTop
|
|
7016
7016
|
})));
|
|
7017
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7017
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(ZU, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7018
7018
|
gap: c2,
|
|
7019
7019
|
item: r2,
|
|
7020
7020
|
scrollTop: l2,
|
|
7021
7021
|
viewport: e2
|
|
7022
|
-
}))), Z), F(x(ut(V(I), l, V(
|
|
7022
|
+
}))), Z), F(x(ut(V(I), l, V(ZU, Or), V(B, xe), V(z, xe), V(q), V(L), V($U), V(tW), V(eW)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7023
7023
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7024
7024
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7025
7025
|
if (y2 === 0) {
|
|
@@ -7038,23 +7038,23 @@ let __tla = Promise.all([
|
|
|
7038
7038
|
offsetTop: j2,
|
|
7039
7039
|
top: j2
|
|
7040
7040
|
};
|
|
7041
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7041
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, ZU), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7042
7042
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7043
7043
|
return [
|
|
7044
7044
|
d2,
|
|
7045
7045
|
u2
|
|
7046
7046
|
];
|
|
7047
7047
|
}), J(ce)), r);
|
|
7048
|
-
let
|
|
7049
|
-
F(x(h, $(
|
|
7050
|
-
let
|
|
7048
|
+
let iW = C(false);
|
|
7049
|
+
F(x(h, $(iW), k(([e2, r2]) => r2 || e2 !== 0)), iW);
|
|
7050
|
+
let aW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(iW), P(([[e2, r2], c2]) => {
|
|
7051
7051
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7052
7052
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7053
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7053
|
+
}), k(([[, e2]]) => e2 - 1), J())), oW = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), sW = bt(x(V(R), $($U), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7054
7054
|
endIndex: e2[e2.length - 1].index,
|
|
7055
7055
|
startIndex: e2[0].index
|
|
7056
7056
|
})), J(An), Gt(0)));
|
|
7057
|
-
F(
|
|
7057
|
+
F(sW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, ZU), k(([e2, r2, c2, l2, u2]) => {
|
|
7058
7058
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7059
7059
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7060
7060
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7063,7 +7063,7 @@ let __tla = Promise.all([
|
|
|
7063
7063
|
top: g2
|
|
7064
7064
|
};
|
|
7065
7065
|
})), m);
|
|
7066
|
-
let
|
|
7066
|
+
let cW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7067
7067
|
return F(x(j, k((e2) => ({
|
|
7068
7068
|
height: e2.visibleHeight,
|
|
7069
7069
|
width: e2.visibleWidth
|
|
@@ -7072,13 +7072,13 @@ let __tla = Promise.all([
|
|
|
7072
7072
|
data: q,
|
|
7073
7073
|
deviation: G,
|
|
7074
7074
|
footerHeight: u,
|
|
7075
|
-
gap:
|
|
7075
|
+
gap: ZU,
|
|
7076
7076
|
headerHeight: d,
|
|
7077
7077
|
increaseViewportBy: e,
|
|
7078
7078
|
initialItemCount: L,
|
|
7079
7079
|
itemDimensions: B,
|
|
7080
7080
|
overscan: c,
|
|
7081
|
-
restoreStateFrom:
|
|
7081
|
+
restoreStateFrom: QU,
|
|
7082
7082
|
scrollBy: f,
|
|
7083
7083
|
scrollContainerState: p,
|
|
7084
7084
|
scrollHeight: W,
|
|
@@ -7094,16 +7094,16 @@ let __tla = Promise.all([
|
|
|
7094
7094
|
windowViewportRect: j,
|
|
7095
7095
|
...y,
|
|
7096
7096
|
gridState: R,
|
|
7097
|
-
horizontalDirection:
|
|
7098
|
-
initialTopMostItemIndex:
|
|
7099
|
-
totalListHeight:
|
|
7097
|
+
horizontalDirection: rW,
|
|
7098
|
+
initialTopMostItemIndex: eW,
|
|
7099
|
+
totalListHeight: cW,
|
|
7100
7100
|
...v,
|
|
7101
|
-
endReached:
|
|
7101
|
+
endReached: aW,
|
|
7102
7102
|
propsReady: S,
|
|
7103
|
-
rangeChanged:
|
|
7104
|
-
startReached:
|
|
7103
|
+
rangeChanged: sW,
|
|
7104
|
+
startReached: oW,
|
|
7105
7105
|
stateChanged: Z,
|
|
7106
|
-
stateRestoreInProgress:
|
|
7106
|
+
stateRestoreInProgress: $U,
|
|
7107
7107
|
...M
|
|
7108
7108
|
};
|
|
7109
7109
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7381,7 +7381,7 @@ let __tla = Promise.all([
|
|
|
7381
7381
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7382
7382
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7383
7383
|
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7384
|
-
let
|
|
7384
|
+
let ZU = q, Z;
|
|
7385
7385
|
if (r[13] !== G.bulkActions) {
|
|
7386
7386
|
if (Z = G.bulkActions.map(_temp$26), Z.length > 0) {
|
|
7387
7387
|
let e2;
|
|
@@ -7391,12 +7391,12 @@ let __tla = Promise.all([
|
|
|
7391
7391
|
}
|
|
7392
7392
|
r[13] = G.bulkActions, r[14] = Z;
|
|
7393
7393
|
} else Z = r[14];
|
|
7394
|
-
let
|
|
7395
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7394
|
+
let QU;
|
|
7395
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (QU = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7396
7396
|
"data-slot": "select-separator"
|
|
7397
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7398
|
-
let
|
|
7399
|
-
r[19] !== Z || r[20] !== G || r[21] !==
|
|
7397
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = QU) : QU = r[18];
|
|
7398
|
+
let $U = QU, eW;
|
|
7399
|
+
r[19] !== Z || r[20] !== G || r[21] !== $U || r[22] !== w || r[23] !== B || r[24] !== H ? (eW = () => {
|
|
7400
7400
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7401
7401
|
"data-slot": "select-list",
|
|
7402
7402
|
style: {
|
|
@@ -7409,7 +7409,7 @@ let __tla = Promise.all([
|
|
|
7409
7409
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7410
7410
|
children: [
|
|
7411
7411
|
e3 === 0 && Z,
|
|
7412
|
-
|
|
7412
|
+
$U(e3),
|
|
7413
7413
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7414
7414
|
option: r2,
|
|
7415
7415
|
checked: G.isChecked(r2.value),
|
|
@@ -7420,7 +7420,7 @@ let __tla = Promise.all([
|
|
|
7420
7420
|
}
|
|
7421
7421
|
});
|
|
7422
7422
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7423
|
-
let c2 =
|
|
7423
|
+
let c2 = $U(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7424
7424
|
option: e3,
|
|
7425
7425
|
checked: G.isChecked(e3.value),
|
|
7426
7426
|
renderOption: w
|
|
@@ -7438,9 +7438,9 @@ let __tla = Promise.all([
|
|
|
7438
7438
|
e2
|
|
7439
7439
|
]
|
|
7440
7440
|
});
|
|
7441
|
-
}, r[19] = Z, r[20] = G, r[21] =
|
|
7442
|
-
let
|
|
7443
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7441
|
+
}, r[19] = Z, r[20] = G, r[21] = $U, r[22] = w, r[23] = B, r[24] = H, r[25] = eW) : eW = r[25];
|
|
7442
|
+
let tW = eW, nW;
|
|
7443
|
+
r[26] !== G.labelOf || r[27] !== I ? (nW = (e2) => {
|
|
7444
7444
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7445
7445
|
e2
|
|
7446
7446
|
];
|
|
@@ -7451,46 +7451,46 @@ let __tla = Promise.all([
|
|
|
7451
7451
|
items: r2.map(G.labelOf),
|
|
7452
7452
|
max: 3
|
|
7453
7453
|
});
|
|
7454
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7455
|
-
let
|
|
7456
|
-
r[29] === G ?
|
|
7457
|
-
let
|
|
7458
|
-
r[31] !== b || r[32] !== R ? (
|
|
7454
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = nW) : nW = r[28];
|
|
7455
|
+
let rW = nW, iW = e["data-testid"], aW;
|
|
7456
|
+
r[29] === G ? aW = r[30] : (aW = (e2) => G.labelOf(e2), r[29] = G, r[30] = aW);
|
|
7457
|
+
let oW = M ? rW : void 0, sW;
|
|
7458
|
+
r[31] !== b || r[32] !== R ? (sW = cn({
|
|
7459
7459
|
"w-full": R
|
|
7460
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7461
|
-
let
|
|
7462
|
-
r[34] === z ?
|
|
7463
|
-
let
|
|
7464
|
-
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !==
|
|
7460
|
+
}, b), r[31] = b, r[32] = R, r[33] = sW) : sW = r[33];
|
|
7461
|
+
let cW = G.searchQuery, lW = G.setSearchQuery, uW = G.open, dW = G.setOpen, fW;
|
|
7462
|
+
r[34] === z ? fW = r[35] : (fW = renderSlot(z), r[34] = z, r[35] = fW);
|
|
7463
|
+
let pW;
|
|
7464
|
+
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !== iW || r[44] !== aW || r[45] !== oW || r[46] !== sW || r[47] !== fW ? (pW = {
|
|
7465
7465
|
"data-slot": "select-root",
|
|
7466
|
-
"data-testid":
|
|
7467
|
-
displayValue:
|
|
7468
|
-
renderValue:
|
|
7466
|
+
"data-testid": iW,
|
|
7467
|
+
displayValue: aW,
|
|
7468
|
+
renderValue: oW,
|
|
7469
7469
|
placeholder: I,
|
|
7470
|
-
className:
|
|
7470
|
+
className: sW,
|
|
7471
7471
|
shouldFilter: false,
|
|
7472
|
-
search:
|
|
7473
|
-
onSearchChange:
|
|
7474
|
-
open:
|
|
7475
|
-
onOpenChange:
|
|
7476
|
-
emptyState:
|
|
7472
|
+
search: cW,
|
|
7473
|
+
onSearchChange: lW,
|
|
7474
|
+
open: uW,
|
|
7475
|
+
onOpenChange: dW,
|
|
7476
|
+
emptyState: fW,
|
|
7477
7477
|
disabled: L,
|
|
7478
7478
|
id: S
|
|
7479
|
-
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] =
|
|
7480
|
-
let
|
|
7481
|
-
return r[49] !==
|
|
7482
|
-
...
|
|
7479
|
+
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] = iW, r[44] = aW, r[45] = oW, r[46] = sW, r[47] = fW, r[48] = pW) : pW = r[48];
|
|
7480
|
+
let mW = pW, hW;
|
|
7481
|
+
return r[49] !== mW || r[50] !== ZU || r[51] !== d || r[52] !== tW || r[53] !== l ? (hW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7482
|
+
...mW,
|
|
7483
7483
|
multiple: true,
|
|
7484
7484
|
value: l,
|
|
7485
|
-
onValueChange:
|
|
7486
|
-
children:
|
|
7485
|
+
onValueChange: ZU,
|
|
7486
|
+
children: tW()
|
|
7487
7487
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7488
|
-
...
|
|
7488
|
+
...mW,
|
|
7489
7489
|
multiple: false,
|
|
7490
7490
|
value: l,
|
|
7491
|
-
onValueChange:
|
|
7492
|
-
children:
|
|
7493
|
-
}), r[49] =
|
|
7491
|
+
onValueChange: ZU,
|
|
7492
|
+
children: tW()
|
|
7493
|
+
}), r[49] = mW, r[50] = ZU, r[51] = d, r[52] = tW, r[53] = l, r[54] = hW) : hW = r[54], hW;
|
|
7494
7494
|
}
|
|
7495
7495
|
function _temp$26(e) {
|
|
7496
7496
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -9673,7 +9673,7 @@ let __tla = Promise.all([
|
|
|
9673
9673
|
let m2 = get(l, e2);
|
|
9674
9674
|
if (m2) {
|
|
9675
9675
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
9676
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
9676
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : ZU(e2, l2), f.mount && w();
|
|
9677
9677
|
}
|
|
9678
9678
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
9679
9679
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -9746,14 +9746,14 @@ let __tla = Promise.all([
|
|
|
9746
9746
|
}, H = () => {
|
|
9747
9747
|
for (let e2 of p.unMount) {
|
|
9748
9748
|
let r2 = get(l, e2);
|
|
9749
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
9749
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && sW(e2);
|
|
9750
9750
|
}
|
|
9751
9751
|
p.unMount = /* @__PURE__ */ new Set();
|
|
9752
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
9752
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(nW(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
9753
9753
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
9754
9754
|
[e2]: r2
|
|
9755
9755
|
} : r2
|
|
9756
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
9756
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), ZU = (e2, r2, c2 = {}) => {
|
|
9757
9757
|
let u2 = get(l, e2), f2 = r2;
|
|
9758
9758
|
if (u2) {
|
|
9759
9759
|
let c3 = u2._f;
|
|
@@ -9766,13 +9766,13 @@ let __tla = Promise.all([
|
|
|
9766
9766
|
}
|
|
9767
9767
|
})));
|
|
9768
9768
|
}
|
|
9769
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
9769
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && tW(e2);
|
|
9770
9770
|
}, Z = (e2, r2, c2) => {
|
|
9771
9771
|
for (let u2 in r2) {
|
|
9772
9772
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
9773
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) :
|
|
9773
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) : ZU(f2, d2, c2);
|
|
9774
9774
|
}
|
|
9775
|
-
},
|
|
9775
|
+
}, QU = (e2, r2, m2 = {}) => {
|
|
9776
9776
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
9777
9777
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
9778
9778
|
name: e2,
|
|
@@ -9783,7 +9783,7 @@ let __tla = Promise.all([
|
|
|
9783
9783
|
name: e2,
|
|
9784
9784
|
dirtyFields: getDirtyFields(u, d),
|
|
9785
9785
|
isDirty: W(e2, y2)
|
|
9786
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) :
|
|
9786
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) : ZU(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
9787
9787
|
...c
|
|
9788
9788
|
}), _.values.next({
|
|
9789
9789
|
name: f.mount ? e2 : void 0,
|
|
@@ -9791,7 +9791,7 @@ let __tla = Promise.all([
|
|
|
9791
9791
|
...d
|
|
9792
9792
|
}
|
|
9793
9793
|
});
|
|
9794
|
-
},
|
|
9794
|
+
}, $U = async (e2) => {
|
|
9795
9795
|
f.mount = true;
|
|
9796
9796
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
9797
9797
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -9825,11 +9825,11 @@ let __tla = Promise.all([
|
|
|
9825
9825
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
9826
9826
|
h2
|
|
9827
9827
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
9828
|
-
S2 && (E2._f.deps &&
|
|
9828
|
+
S2 && (E2._f.deps && tW(E2._f.deps), L(h2, f2, u3, G2));
|
|
9829
9829
|
}
|
|
9830
|
-
},
|
|
9830
|
+
}, eW = (e2, r2) => {
|
|
9831
9831
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
9832
|
-
},
|
|
9832
|
+
}, tW = async (e2, u2 = {}) => {
|
|
9833
9833
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
9834
9834
|
if (r.resolver) {
|
|
9835
9835
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -9848,23 +9848,23 @@ let __tla = Promise.all([
|
|
|
9848
9848
|
isValid: d2
|
|
9849
9849
|
} : {},
|
|
9850
9850
|
errors: c.errors
|
|
9851
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
9852
|
-
},
|
|
9851
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, eW, e2 ? m2 : p.mount), f2;
|
|
9852
|
+
}, nW = (e2) => {
|
|
9853
9853
|
let r2 = {
|
|
9854
9854
|
...f.mount ? d : u
|
|
9855
9855
|
};
|
|
9856
9856
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
9857
|
-
},
|
|
9857
|
+
}, rW = (e2, r2) => ({
|
|
9858
9858
|
invalid: !!get((r2 || c).errors, e2),
|
|
9859
9859
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
9860
9860
|
error: get((r2 || c).errors, e2),
|
|
9861
9861
|
isValidating: !!get(c.validatingFields, e2),
|
|
9862
9862
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
9863
|
-
}),
|
|
9863
|
+
}), iW = (e2) => {
|
|
9864
9864
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
9865
9865
|
errors: e2 ? c.errors : {}
|
|
9866
9866
|
});
|
|
9867
|
-
},
|
|
9867
|
+
}, aW = (e2, r2, u2) => {
|
|
9868
9868
|
let d2 = (get(l, e2, {
|
|
9869
9869
|
_f: {}
|
|
9870
9870
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -9877,9 +9877,9 @@ let __tla = Promise.all([
|
|
|
9877
9877
|
errors: c.errors,
|
|
9878
9878
|
isValid: false
|
|
9879
9879
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
9880
|
-
},
|
|
9880
|
+
}, oW = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
9881
9881
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
9882
|
-
}) : G(e2, r2, true),
|
|
9882
|
+
}) : G(e2, r2, true), sW = (e2, f2 = {}) => {
|
|
9883
9883
|
for (let m2 of e2 ? convertToArrayPayload(e2) : p.mount) p.mount.delete(m2), p.array.delete(m2), f2.keepValue || (unset(l, m2), unset(d, m2)), !f2.keepError && unset(c.errors, m2), !f2.keepDirty && unset(c.dirtyFields, m2), !f2.keepTouched && unset(c.touchedFields, m2), !f2.keepIsValidating && unset(c.validatingFields, m2), !r.shouldUnregister && !f2.keepDefaultValue && unset(u, m2);
|
|
9884
9884
|
_.values.next({
|
|
9885
9885
|
values: {
|
|
@@ -9891,9 +9891,9 @@ let __tla = Promise.all([
|
|
|
9891
9891
|
isDirty: W()
|
|
9892
9892
|
} : {}
|
|
9893
9893
|
}), !f2.keepIsValid && w();
|
|
9894
|
-
},
|
|
9894
|
+
}, cW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
9895
9895
|
(isBoolean(e2) && f.mount || e2 || p.disabled.has(r2)) && (e2 ? p.disabled.add(r2) : p.disabled.delete(r2), I(r2, getFieldValue(c2 ? c2._f : get(l2, r2)._f), false, false, true));
|
|
9896
|
-
},
|
|
9896
|
+
}, lW = (e2, c2 = {}) => {
|
|
9897
9897
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
9898
9898
|
return set(l, e2, {
|
|
9899
9899
|
...d2 || {},
|
|
@@ -9907,7 +9907,7 @@ let __tla = Promise.all([
|
|
|
9907
9907
|
mount: true,
|
|
9908
9908
|
...c2
|
|
9909
9909
|
}
|
|
9910
|
-
}), p.mount.add(e2), d2 ?
|
|
9910
|
+
}), p.mount.add(e2), d2 ? cW({
|
|
9911
9911
|
field: d2,
|
|
9912
9912
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
9913
9913
|
name: e2
|
|
@@ -9924,11 +9924,11 @@ let __tla = Promise.all([
|
|
|
9924
9924
|
pattern: getRuleValue(c2.pattern)
|
|
9925
9925
|
} : {},
|
|
9926
9926
|
name: e2,
|
|
9927
|
-
onChange:
|
|
9928
|
-
onBlur:
|
|
9927
|
+
onChange: $U,
|
|
9928
|
+
onBlur: $U,
|
|
9929
9929
|
ref: (m3) => {
|
|
9930
9930
|
if (m3) {
|
|
9931
|
-
|
|
9931
|
+
lW(e2, c2), d2 = get(l, e2);
|
|
9932
9932
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
9933
9933
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
9934
9934
|
set(l, e2, {
|
|
@@ -9954,7 +9954,7 @@ let __tla = Promise.all([
|
|
|
9954
9954
|
} else d2 = get(l, e2, {}), d2._f && (d2._f.mount = false), (r.shouldUnregister || c2.shouldUnregister) && !(isNameInFieldArray(p.array, e2) && f.action) && p.unMount.add(e2);
|
|
9955
9955
|
}
|
|
9956
9956
|
};
|
|
9957
|
-
},
|
|
9957
|
+
}, uW = () => r.shouldFocusError && iterateFieldsByAction(l, eW, p.mount), dW = (e2) => {
|
|
9958
9958
|
isBoolean(e2) && (_.state.next({
|
|
9959
9959
|
disabled: e2
|
|
9960
9960
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -9963,7 +9963,7 @@ let __tla = Promise.all([
|
|
|
9963
9963
|
r3.disabled = u2._f.disabled || e2;
|
|
9964
9964
|
}));
|
|
9965
9965
|
}, 0, false));
|
|
9966
|
-
},
|
|
9966
|
+
}, fW = (e2, u2) => async (f2) => {
|
|
9967
9967
|
let m2;
|
|
9968
9968
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
9969
9969
|
let h2 = cloneObject(d);
|
|
@@ -9985,7 +9985,7 @@ let __tla = Promise.all([
|
|
|
9985
9985
|
}
|
|
9986
9986
|
} else u2 && await u2({
|
|
9987
9987
|
...c.errors
|
|
9988
|
-
}, f2),
|
|
9988
|
+
}, f2), uW(), setTimeout(uW);
|
|
9989
9989
|
if (_.state.next({
|
|
9990
9990
|
isSubmitted: true,
|
|
9991
9991
|
isSubmitting: false,
|
|
@@ -9993,11 +9993,11 @@ let __tla = Promise.all([
|
|
|
9993
9993
|
submitCount: c.submitCount + 1,
|
|
9994
9994
|
errors: c.errors
|
|
9995
9995
|
}), m2) throw m2;
|
|
9996
|
-
},
|
|
9997
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
9996
|
+
}, pW = (e2, r2 = {}) => {
|
|
9997
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? QU(e2, cloneObject(get(u, e2))) : (QU(e2, r2.defaultValue), set(u, e2, cloneObject(r2.defaultValue))), r2.keepTouched || unset(c.touchedFields, e2), r2.keepDirty || (unset(c.dirtyFields, e2), c.isDirty = r2.defaultValue ? W(e2, cloneObject(get(u, e2))) : W()), r2.keepError || (unset(c.errors, e2), g.isValid && w()), _.state.next({
|
|
9998
9998
|
...c
|
|
9999
9999
|
}));
|
|
10000
|
-
},
|
|
10000
|
+
}, mW = (e2, m2 = {}) => {
|
|
10001
10001
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10002
10002
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10003
10003
|
if (m2.keepDirtyValues) {
|
|
@@ -10005,7 +10005,7 @@ let __tla = Promise.all([
|
|
|
10005
10005
|
...p.mount,
|
|
10006
10006
|
...Object.keys(getDirtyFields(u, d))
|
|
10007
10007
|
]);
|
|
10008
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10008
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : QU(r2, get(b2, r2));
|
|
10009
10009
|
} else {
|
|
10010
10010
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10011
10011
|
let r2 = get(l, e3);
|
|
@@ -10050,25 +10050,25 @@ let __tla = Promise.all([
|
|
|
10050
10050
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10051
10051
|
isSubmitting: false
|
|
10052
10052
|
});
|
|
10053
|
-
},
|
|
10053
|
+
}, hW = (e2, r2) => mW(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10054
10054
|
return {
|
|
10055
10055
|
control: {
|
|
10056
|
-
register:
|
|
10057
|
-
unregister:
|
|
10058
|
-
getFieldState:
|
|
10059
|
-
handleSubmit:
|
|
10060
|
-
setError:
|
|
10056
|
+
register: lW,
|
|
10057
|
+
unregister: sW,
|
|
10058
|
+
getFieldState: rW,
|
|
10059
|
+
handleSubmit: fW,
|
|
10060
|
+
setError: aW,
|
|
10061
10061
|
_executeSchema: R,
|
|
10062
10062
|
_getWatch: G,
|
|
10063
10063
|
_getDirty: W,
|
|
10064
10064
|
_updateValid: w,
|
|
10065
10065
|
_removeUnmounted: H,
|
|
10066
10066
|
_updateFieldArray: E,
|
|
10067
|
-
_updateDisabledField:
|
|
10067
|
+
_updateDisabledField: cW,
|
|
10068
10068
|
_getFieldArray: q,
|
|
10069
|
-
_reset:
|
|
10069
|
+
_reset: mW,
|
|
10070
10070
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10071
|
-
|
|
10071
|
+
hW(e2, r.resetOptions), _.state.next({
|
|
10072
10072
|
isLoading: false
|
|
10073
10073
|
});
|
|
10074
10074
|
}),
|
|
@@ -10078,7 +10078,7 @@ let __tla = Promise.all([
|
|
|
10078
10078
|
...e2
|
|
10079
10079
|
};
|
|
10080
10080
|
},
|
|
10081
|
-
_disableForm:
|
|
10081
|
+
_disableForm: dW,
|
|
10082
10082
|
_subjects: _,
|
|
10083
10083
|
_proxyFormState: g,
|
|
10084
10084
|
_setErrors: j,
|
|
@@ -10119,17 +10119,17 @@ let __tla = Promise.all([
|
|
|
10119
10119
|
};
|
|
10120
10120
|
}
|
|
10121
10121
|
},
|
|
10122
|
-
trigger:
|
|
10123
|
-
register:
|
|
10124
|
-
handleSubmit:
|
|
10125
|
-
watch:
|
|
10126
|
-
setValue:
|
|
10127
|
-
getValues:
|
|
10128
|
-
reset:
|
|
10129
|
-
resetField:
|
|
10130
|
-
clearErrors:
|
|
10131
|
-
unregister:
|
|
10132
|
-
setError:
|
|
10122
|
+
trigger: tW,
|
|
10123
|
+
register: lW,
|
|
10124
|
+
handleSubmit: fW,
|
|
10125
|
+
watch: oW,
|
|
10126
|
+
setValue: QU,
|
|
10127
|
+
getValues: nW,
|
|
10128
|
+
reset: hW,
|
|
10129
|
+
resetField: pW,
|
|
10130
|
+
clearErrors: iW,
|
|
10131
|
+
unregister: sW,
|
|
10132
|
+
setError: aW,
|
|
10133
10133
|
setFocus: (e2, r2 = {}) => {
|
|
10134
10134
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10135
10135
|
if (u2) {
|
|
@@ -10137,7 +10137,7 @@ let __tla = Promise.all([
|
|
|
10137
10137
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10138
10138
|
}
|
|
10139
10139
|
},
|
|
10140
|
-
getFieldState:
|
|
10140
|
+
getFieldState: rW
|
|
10141
10141
|
};
|
|
10142
10142
|
}
|
|
10143
10143
|
function useForm(e = {}) {
|
|
@@ -14388,21 +14388,21 @@ ${c}
|
|
|
14388
14388
|
_.pageSize,
|
|
14389
14389
|
_.pageIndex
|
|
14390
14390
|
], r[35] = w, r[36] = _.pageIndex, r[37] = _.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = u, r[44] = y, r[45] = m, r[46] = B, r[47] = H) : H = r[47];
|
|
14391
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
14392
|
-
r[48] !== Z || r[49] !== e ? (
|
|
14393
|
-
let
|
|
14394
|
-
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] !==
|
|
14391
|
+
let { data: W, error: G, isPending: q, isFetching: ZU } = useAsyncData(z, H), Z = useAtomValue(downloadSizeLimitAtom), QU;
|
|
14392
|
+
r[48] !== Z || r[49] !== e ? (QU = async () => !Z || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = Z, r[49] = e, r[50] = QU) : QU = r[50];
|
|
14393
|
+
let $U = e.showDownload, eW = e.get_size_bytes, tW = e.lazy, nW = e.totalRows, rW = useDeepCompareMemoize(w), iW = useDeepCompareMemoize(m), aW;
|
|
14394
|
+
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] !== rW || r[58] !== iW ? (aW = [
|
|
14395
14395
|
Z,
|
|
14396
|
-
|
|
14397
|
-
|
|
14398
|
-
|
|
14399
|
-
|
|
14396
|
+
$U,
|
|
14397
|
+
eW,
|
|
14398
|
+
tW,
|
|
14399
|
+
nW,
|
|
14400
14400
|
y,
|
|
14401
|
-
|
|
14402
|
-
|
|
14403
|
-
], 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] =
|
|
14404
|
-
let { data:
|
|
14405
|
-
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (
|
|
14401
|
+
rW,
|
|
14402
|
+
iW
|
|
14403
|
+
], 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] = rW, r[58] = iW, r[59] = aW) : aW = r[59];
|
|
14404
|
+
let { data: oW, isPending: sW } = useAsyncData(QU, aW), cW = oW ?? null, lW = !!Z && e.showDownload && sW, uW;
|
|
14405
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (uW = async (e2) => ({
|
|
14406
14406
|
rows: await loadTableData((await u({
|
|
14407
14407
|
page_number: e2,
|
|
14408
14408
|
page_size: 1,
|
|
@@ -14411,17 +14411,17 @@ ${c}
|
|
|
14411
14411
|
filters: filtersToFilterGroup(w),
|
|
14412
14412
|
max_columns: null
|
|
14413
14413
|
})).data)
|
|
14414
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
14415
|
-
let
|
|
14416
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
14414
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = uW) : uW = r[64];
|
|
14415
|
+
let dW = uW, fW;
|
|
14416
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fW = () => {
|
|
14417
14417
|
v(_temp4$4);
|
|
14418
|
-
}, r[65] =
|
|
14419
|
-
let
|
|
14420
|
-
r[66] ===
|
|
14421
|
-
|
|
14422
|
-
], r[66] =
|
|
14423
|
-
let
|
|
14424
|
-
r[68] === e ?
|
|
14418
|
+
}, r[65] = fW) : fW = r[65];
|
|
14419
|
+
let pW = W == null ? void 0 : W.totalRows, mW;
|
|
14420
|
+
r[66] === pW ? mW = r[67] : (mW = [
|
|
14421
|
+
pW
|
|
14422
|
+
], r[66] = pW, r[67] = mW), (0, import_react.useEffect)(fW, mW);
|
|
14423
|
+
let hW;
|
|
14424
|
+
r[68] === e ? hW = r[69] : (hW = async () => {
|
|
14425
14425
|
let r2 = isStaticNotebook();
|
|
14426
14426
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
14427
14427
|
data: null,
|
|
@@ -14430,22 +14430,22 @@ ${c}
|
|
|
14430
14430
|
value_counts: {},
|
|
14431
14431
|
show_charts: false
|
|
14432
14432
|
} : e.get_column_summaries({});
|
|
14433
|
-
}, r[68] = e, r[69] =
|
|
14434
|
-
let
|
|
14435
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
14433
|
+
}, r[68] = e, r[69] = hW);
|
|
14434
|
+
let gW;
|
|
14435
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (gW = [
|
|
14436
14436
|
e.get_column_summaries,
|
|
14437
14437
|
e.showColumnSummaries,
|
|
14438
14438
|
w,
|
|
14439
14439
|
y,
|
|
14440
14440
|
e.totalRows,
|
|
14441
14441
|
e.data
|
|
14442
|
-
], 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] =
|
|
14443
|
-
let { data:
|
|
14444
|
-
if (r[77] ===
|
|
14445
|
-
|
|
14446
|
-
},
|
|
14447
|
-
|
|
14448
|
-
], r[77] =
|
|
14442
|
+
], 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] = gW) : gW = r[76];
|
|
14443
|
+
let { data: _W, error: vW } = useAsyncData(hW, gW), yW, bW;
|
|
14444
|
+
if (r[77] === vW ? (yW = r[78], bW = r[79]) : (yW = () => {
|
|
14445
|
+
vW && Logger.error(vW);
|
|
14446
|
+
}, bW = [
|
|
14447
|
+
vW
|
|
14448
|
+
], r[77] = vW, r[78] = yW, r[79] = bW), (0, import_react.useEffect)(yW, bW), q) {
|
|
14449
14449
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14450
14450
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14451
14451
|
milliseconds: 200,
|
|
@@ -14454,7 +14454,7 @@ ${c}
|
|
|
14454
14454
|
})
|
|
14455
14455
|
}), r[80] = c2, r[81] = l2), l2;
|
|
14456
14456
|
}
|
|
14457
|
-
let
|
|
14457
|
+
let xW = null;
|
|
14458
14458
|
if (G) {
|
|
14459
14459
|
Logger.error(G);
|
|
14460
14460
|
let e2;
|
|
@@ -14470,61 +14470,61 @@ ${c}
|
|
|
14470
14470
|
children: G.message || "An unknown error occurred"
|
|
14471
14471
|
})
|
|
14472
14472
|
]
|
|
14473
|
-
}), r[82] = G, r[83] = e2),
|
|
14473
|
+
}), r[82] = G, r[83] = e2), xW = e2;
|
|
14474
14474
|
}
|
|
14475
|
-
let
|
|
14476
|
-
r[84] === O ?
|
|
14475
|
+
let SW;
|
|
14476
|
+
r[84] === O ? SW = r[85] : (SW = () => {
|
|
14477
14477
|
j(!O);
|
|
14478
|
-
}, r[84] = O, r[85] =
|
|
14479
|
-
let
|
|
14480
|
-
r[86] !== l || r[87] !==
|
|
14478
|
+
}, r[84] = O, r[85] = SW);
|
|
14479
|
+
let CW = SW, wW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, TW = W == null ? void 0 : W.rawRows, EW = ZU && !q, DW = (W == null ? void 0 : W.totalRows) ?? e.totalRows, OW = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, kW = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, AW;
|
|
14480
|
+
r[86] !== l || r[87] !== _W || r[88] !== O || r[89] !== w || r[90] !== dW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== cW || r[95] !== lW || r[96] !== m || r[97] !== wW || r[98] !== TW || r[99] !== EW || r[100] !== DW || r[101] !== OW || r[102] !== kW || r[103] !== CW ? (AW = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
14481
14481
|
...e,
|
|
14482
|
-
data:
|
|
14483
|
-
rawData:
|
|
14484
|
-
columnSummaries:
|
|
14482
|
+
data: wW,
|
|
14483
|
+
rawData: TW,
|
|
14484
|
+
columnSummaries: _W,
|
|
14485
14485
|
sorting: m,
|
|
14486
14486
|
setSorting: h,
|
|
14487
14487
|
searchQuery: y,
|
|
14488
14488
|
setSearchQuery: b,
|
|
14489
14489
|
filters: w,
|
|
14490
14490
|
setFilters: T,
|
|
14491
|
-
reloading:
|
|
14492
|
-
totalRows:
|
|
14493
|
-
sizeBytes:
|
|
14494
|
-
sizeBytesIsLoading:
|
|
14491
|
+
reloading: EW,
|
|
14492
|
+
totalRows: DW,
|
|
14493
|
+
sizeBytes: cW,
|
|
14494
|
+
sizeBytesIsLoading: lW,
|
|
14495
14495
|
paginationState: _,
|
|
14496
14496
|
setPaginationState: v,
|
|
14497
|
-
cellStyles:
|
|
14498
|
-
cellHoverTexts:
|
|
14499
|
-
toggleDisplayHeader:
|
|
14497
|
+
cellStyles: OW,
|
|
14498
|
+
cellHoverTexts: kW,
|
|
14499
|
+
toggleDisplayHeader: CW,
|
|
14500
14500
|
isChartBuilderOpen: O,
|
|
14501
|
-
getRow:
|
|
14501
|
+
getRow: dW,
|
|
14502
14502
|
cellId: l,
|
|
14503
14503
|
maxHeight: e.maxHeight
|
|
14504
|
-
}), r[86] = l, r[87] =
|
|
14505
|
-
let
|
|
14506
|
-
r[105] !== l || r[106] !==
|
|
14504
|
+
}), r[86] = l, r[87] = _W, r[88] = O, r[89] = w, r[90] = dW, r[91] = _, r[92] = e, r[93] = y, r[94] = cW, r[95] = lW, r[96] = m, r[97] = wW, r[98] = TW, r[99] = EW, r[100] = DW, r[101] = OW, r[102] = kW, r[103] = CW, r[104] = AW) : AW = r[104];
|
|
14505
|
+
let jW = AW, MW;
|
|
14506
|
+
r[105] !== l || r[106] !== jW || r[107] !== (W == null ? void 0 : W.rows) || r[108] !== O || r[109] !== e.fieldTypes || r[110] !== e.get_data_url || r[111] !== e.showChartBuilder || r[112] !== e.totalColumns || r[113] !== e.totalRows ? (MW = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
14507
14507
|
displayHeader: O,
|
|
14508
14508
|
onCloseChartBuilder: () => j(false),
|
|
14509
14509
|
data: (W == null ? void 0 : W.rows) || [],
|
|
14510
14510
|
columns: e.totalColumns,
|
|
14511
14511
|
totalRows: e.totalRows,
|
|
14512
|
-
dataTable:
|
|
14512
|
+
dataTable: jW,
|
|
14513
14513
|
getDataUrl: e.get_data_url,
|
|
14514
14514
|
fieldTypes: e.fieldTypes,
|
|
14515
14515
|
cellId: l
|
|
14516
|
-
}) :
|
|
14517
|
-
let
|
|
14518
|
-
return r[115] !==
|
|
14516
|
+
}) : jW, r[105] = l, r[106] = jW, r[107] = W == null ? void 0 : W.rows, r[108] = O, r[109] = e.fieldTypes, r[110] = e.get_data_url, r[111] = e.showChartBuilder, r[112] = e.totalColumns, r[113] = e.totalRows, r[114] = MW) : MW = r[114];
|
|
14517
|
+
let NW;
|
|
14518
|
+
return r[115] !== xW || r[116] !== MW ? (NW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14519
14519
|
children: [
|
|
14520
|
-
|
|
14521
|
-
|
|
14520
|
+
xW,
|
|
14521
|
+
MW
|
|
14522
14522
|
]
|
|
14523
|
-
}), r[115] =
|
|
14523
|
+
}), r[115] = xW, r[116] = MW, r[117] = NW) : NW = r[117], NW;
|
|
14524
14524
|
});
|
|
14525
14525
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
14526
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters:
|
|
14527
|
-
let
|
|
14526
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: ZU, setFilters: Z, reloading: QU, freezeColumnsLeft: $U, freezeColumnsRight: eW, hiddenColumns: tW, textJustifyColumns: nW, wrappedColumns: rW, columnWidths: iW, headerTooltip: aW, totalColumns: oW, get_row_ids: sW, cellStyles: cW, hoverTemplate: lW, cellHoverTexts: uW, toggleDisplayHeader: dW, isChartBuilderOpen: fW, calculate_top_k_rows: pW, preview_column: mW, getRow: hW, cellId: gW, maxHeight: _W }) => {
|
|
14527
|
+
let vW = (0, import_react.useId)(), { locale: yW } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [bW, xW] = (0, import_react.useState)(0), { isPanelOpen: SW, isAnyPanelOpen: CW, togglePanel: wW, panelType: TW, setPanelType: EW } = usePanelOwnership(vW, gW), DW = isStaticNotebook(), OW = (0, import_react.useMemo)(() => {
|
|
14528
14528
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
14529
14529
|
let e2 = toFieldTypes(O);
|
|
14530
14530
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -14533,13 +14533,13 @@ ${c}
|
|
|
14533
14533
|
}, [
|
|
14534
14534
|
O,
|
|
14535
14535
|
L
|
|
14536
|
-
]),
|
|
14536
|
+
]), kW = useDeepCompareMemoize(O ?? inferFieldTypes(r)), AW = (0, import_react.useMemo)(() => f === "all" ? kW : kW.slice(0, f), [
|
|
14537
14537
|
f,
|
|
14538
|
-
|
|
14539
|
-
]),
|
|
14538
|
+
kW
|
|
14539
|
+
]), jW = (0, import_react.useMemo)(() => {
|
|
14540
14540
|
let e2 = {};
|
|
14541
14541
|
if (r && r.length > 0) {
|
|
14542
|
-
for (let [c2, l2] of
|
|
14542
|
+
for (let [c2, l2] of AW) if (l2[0] === "number") {
|
|
14543
14543
|
let l3 = 0;
|
|
14544
14544
|
for (let e3 of r) {
|
|
14545
14545
|
let r2 = e3[c2];
|
|
@@ -14554,95 +14554,95 @@ ${c}
|
|
|
14554
14554
|
return e2;
|
|
14555
14555
|
}, [
|
|
14556
14556
|
r,
|
|
14557
|
-
|
|
14558
|
-
]),
|
|
14559
|
-
O || (w = false),
|
|
14560
|
-
let
|
|
14561
|
-
rowHeaders:
|
|
14557
|
+
AW
|
|
14558
|
+
]), MW = useDeepCompareMemoize(T), NW = useDeepCompareMemoize(nW), PW = useDeepCompareMemoize(rW), FW = useDeepCompareMemoize(iW), IW = useDeepCompareMemoize(OW), LW = useDeepCompareMemoize(jW), RW = AW.length;
|
|
14559
|
+
O || (w = false), DW && (m = null);
|
|
14560
|
+
let zW = (0, import_react.useMemo)(() => generateColumns({
|
|
14561
|
+
rowHeaders: MW,
|
|
14562
14562
|
selection: m,
|
|
14563
|
-
chartSpecModel:
|
|
14564
|
-
fieldTypes:
|
|
14565
|
-
textJustifyColumns:
|
|
14566
|
-
wrappedColumns:
|
|
14567
|
-
columnWidths:
|
|
14568
|
-
headerTooltip:
|
|
14563
|
+
chartSpecModel: IW,
|
|
14564
|
+
fieldTypes: AW,
|
|
14565
|
+
textJustifyColumns: NW,
|
|
14566
|
+
wrappedColumns: PW,
|
|
14567
|
+
columnWidths: FW,
|
|
14568
|
+
headerTooltip: aW,
|
|
14569
14569
|
showDataTypes: w,
|
|
14570
|
-
calculateTopKRows:
|
|
14571
|
-
fractionDigitsByColumn:
|
|
14570
|
+
calculateTopKRows: pW,
|
|
14571
|
+
fractionDigitsByColumn: LW
|
|
14572
14572
|
}), [
|
|
14573
14573
|
m,
|
|
14574
14574
|
w,
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
|
|
14580
|
-
|
|
14581
|
-
|
|
14582
|
-
|
|
14583
|
-
|
|
14584
|
-
]),
|
|
14575
|
+
IW,
|
|
14576
|
+
MW,
|
|
14577
|
+
AW,
|
|
14578
|
+
NW,
|
|
14579
|
+
PW,
|
|
14580
|
+
FW,
|
|
14581
|
+
aW,
|
|
14582
|
+
pW,
|
|
14583
|
+
LW
|
|
14584
|
+
]), BW = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
14585
14585
|
e2,
|
|
14586
14586
|
true
|
|
14587
14587
|
])), [
|
|
14588
14588
|
h
|
|
14589
|
-
]),
|
|
14589
|
+
]), VW = useEvent_default((e2) => {
|
|
14590
14590
|
if (m === "single") {
|
|
14591
14591
|
let r2 = Functions.asUpdater(e2)({});
|
|
14592
14592
|
z(Object.keys(r2).slice(0, 1));
|
|
14593
14593
|
}
|
|
14594
14594
|
if (m === "multi") {
|
|
14595
|
-
let r2 = Functions.asUpdater(e2)(
|
|
14595
|
+
let r2 = Functions.asUpdater(e2)(BW);
|
|
14596
14596
|
z(Object.keys(r2));
|
|
14597
14597
|
}
|
|
14598
|
-
}),
|
|
14599
|
-
if (
|
|
14598
|
+
}), HW = useEvent_default((e2) => {
|
|
14599
|
+
if (xW(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
14600
14600
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
14601
14601
|
r2 !== null && M((e3) => ({
|
|
14602
14602
|
...e3,
|
|
14603
14603
|
pageIndex: r2
|
|
14604
14604
|
}));
|
|
14605
|
-
}),
|
|
14606
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
14607
|
-
}),
|
|
14608
|
-
if (!(!
|
|
14605
|
+
}), UW = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), WW = useEvent_default((e2) => {
|
|
14606
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(UW).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(UW));
|
|
14607
|
+
}), GW = m === "multi" || m === "single", KW = y && !!mW, qW = isInVscodeExtension(), JW = isIslands(), YW = (0, import_react.useMemo)(() => {
|
|
14608
|
+
if (!(!CW || !(b || KW))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
14609
14609
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
14610
|
-
rowIdx:
|
|
14611
|
-
setRowIdx:
|
|
14610
|
+
rowIdx: bW,
|
|
14611
|
+
setRowIdx: HW,
|
|
14612
14612
|
totalRows: l,
|
|
14613
|
-
fieldTypes:
|
|
14614
|
-
getRow:
|
|
14615
|
-
isSelectable:
|
|
14616
|
-
isRowSelected: !!
|
|
14617
|
-
handleRowSelectionChange:
|
|
14618
|
-
previewColumn:
|
|
14619
|
-
totalColumns:
|
|
14620
|
-
tableId:
|
|
14613
|
+
fieldTypes: kW,
|
|
14614
|
+
getRow: hW,
|
|
14615
|
+
isSelectable: GW,
|
|
14616
|
+
isRowSelected: !!BW[bW],
|
|
14617
|
+
handleRowSelectionChange: VW,
|
|
14618
|
+
previewColumn: mW,
|
|
14619
|
+
totalColumns: oW,
|
|
14620
|
+
tableId: vW,
|
|
14621
14621
|
table: e2,
|
|
14622
|
-
showRowExplorer: b && !
|
|
14623
|
-
showColumnExplorer:
|
|
14624
|
-
activeTab:
|
|
14625
|
-
onTabChange:
|
|
14622
|
+
showRowExplorer: b && !qW,
|
|
14623
|
+
showColumnExplorer: KW && !qW,
|
|
14624
|
+
activeTab: TW,
|
|
14625
|
+
onTabChange: EW
|
|
14626
14626
|
})
|
|
14627
14627
|
});
|
|
14628
14628
|
}, [
|
|
14629
|
-
|
|
14629
|
+
CW,
|
|
14630
14630
|
b,
|
|
14631
|
-
|
|
14632
|
-
|
|
14633
|
-
|
|
14631
|
+
KW,
|
|
14632
|
+
bW,
|
|
14633
|
+
HW,
|
|
14634
14634
|
l,
|
|
14635
|
-
|
|
14636
|
-
aW,
|
|
14637
|
-
FW,
|
|
14638
|
-
AW,
|
|
14639
|
-
jW,
|
|
14640
|
-
iW,
|
|
14641
|
-
XU,
|
|
14642
|
-
cW,
|
|
14643
|
-
LW,
|
|
14635
|
+
kW,
|
|
14644
14636
|
hW,
|
|
14645
|
-
|
|
14637
|
+
GW,
|
|
14638
|
+
BW,
|
|
14639
|
+
VW,
|
|
14640
|
+
mW,
|
|
14641
|
+
oW,
|
|
14642
|
+
vW,
|
|
14643
|
+
qW,
|
|
14644
|
+
TW,
|
|
14645
|
+
EW
|
|
14646
14646
|
]);
|
|
14647
14647
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14648
14648
|
children: [
|
|
@@ -14654,27 +14654,27 @@ ${c}
|
|
|
14654
14654
|
" rows."
|
|
14655
14655
|
]
|
|
14656
14656
|
}),
|
|
14657
|
-
|
|
14657
|
+
RW < oW && RW > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14658
14658
|
className: "mb-1 rounded",
|
|
14659
14659
|
children: [
|
|
14660
14660
|
"Result clipped. Showing ",
|
|
14661
|
-
|
|
14661
|
+
RW,
|
|
14662
14662
|
" of ",
|
|
14663
|
-
|
|
14663
|
+
oW,
|
|
14664
14664
|
" columns."
|
|
14665
14665
|
]
|
|
14666
14666
|
}),
|
|
14667
|
-
|
|
14667
|
+
DW && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14668
14668
|
className: "mb-1 rounded",
|
|
14669
14669
|
children: [
|
|
14670
14670
|
"Showing the first ",
|
|
14671
14671
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14672
|
-
children: prettyNumber(r.length,
|
|
14672
|
+
children: prettyNumber(r.length, yW)
|
|
14673
14673
|
}),
|
|
14674
14674
|
" ",
|
|
14675
14675
|
"of ",
|
|
14676
14676
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14677
|
-
children: prettyNumber(l,
|
|
14677
|
+
children: prettyNumber(l, yW)
|
|
14678
14678
|
}),
|
|
14679
14679
|
" rows. Increase the table's ",
|
|
14680
14680
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -14688,7 +14688,7 @@ ${c}
|
|
|
14688
14688
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
14689
14689
|
}),
|
|
14690
14690
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
14691
|
-
value:
|
|
14691
|
+
value: OW,
|
|
14692
14692
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
14693
14693
|
label: e,
|
|
14694
14694
|
align: "top",
|
|
@@ -14696,14 +14696,14 @@ ${c}
|
|
|
14696
14696
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
14697
14697
|
data: r,
|
|
14698
14698
|
rawData: c,
|
|
14699
|
-
columns:
|
|
14699
|
+
columns: zW,
|
|
14700
14700
|
className: R,
|
|
14701
|
-
maxHeight:
|
|
14701
|
+
maxHeight: _W,
|
|
14702
14702
|
sorting: B,
|
|
14703
14703
|
totalRows: l,
|
|
14704
14704
|
sizeBytes: u,
|
|
14705
14705
|
sizeBytesIsLoading: d,
|
|
14706
|
-
totalColumns:
|
|
14706
|
+
totalColumns: oW,
|
|
14707
14707
|
manualSorting: true,
|
|
14708
14708
|
setSorting: H,
|
|
14709
14709
|
pagination: p,
|
|
@@ -14711,37 +14711,37 @@ ${c}
|
|
|
14711
14711
|
selection: m,
|
|
14712
14712
|
paginationState: j,
|
|
14713
14713
|
setPaginationState: M,
|
|
14714
|
-
rowSelection:
|
|
14715
|
-
cellSelection:
|
|
14716
|
-
cellStyling:
|
|
14717
|
-
hoverTemplate:
|
|
14718
|
-
cellHoverTexts:
|
|
14714
|
+
rowSelection: BW,
|
|
14715
|
+
cellSelection: UW,
|
|
14716
|
+
cellStyling: cW,
|
|
14717
|
+
hoverTemplate: lW,
|
|
14718
|
+
cellHoverTexts: uW,
|
|
14719
14719
|
downloadAs: _ ? I : void 0,
|
|
14720
14720
|
showSearch: W,
|
|
14721
14721
|
searchQuery: G,
|
|
14722
14722
|
onSearchQueryChange: q,
|
|
14723
14723
|
showFilters: g,
|
|
14724
|
-
filters:
|
|
14724
|
+
filters: ZU,
|
|
14725
14725
|
onFiltersChange: Z,
|
|
14726
|
-
calculateTopKRows:
|
|
14727
|
-
reloading:
|
|
14728
|
-
onRowSelectionChange:
|
|
14729
|
-
freezeColumnsLeft:
|
|
14730
|
-
freezeColumnsRight:
|
|
14731
|
-
hiddenColumns:
|
|
14732
|
-
onCellSelectionChange:
|
|
14733
|
-
getRowIds:
|
|
14734
|
-
toggleDisplayHeader:
|
|
14735
|
-
showChartBuilder: S && !
|
|
14736
|
-
isChartBuilderOpen:
|
|
14726
|
+
calculateTopKRows: pW,
|
|
14727
|
+
reloading: QU,
|
|
14728
|
+
onRowSelectionChange: VW,
|
|
14729
|
+
freezeColumnsLeft: $U,
|
|
14730
|
+
freezeColumnsRight: eW,
|
|
14731
|
+
hiddenColumns: tW,
|
|
14732
|
+
onCellSelectionChange: WW,
|
|
14733
|
+
getRowIds: sW,
|
|
14734
|
+
toggleDisplayHeader: dW,
|
|
14735
|
+
showChartBuilder: S && !JW,
|
|
14736
|
+
isChartBuilderOpen: fW,
|
|
14737
14737
|
showPageSizeSelector: v,
|
|
14738
|
-
showTableExplorer: (b ||
|
|
14739
|
-
togglePanel:
|
|
14740
|
-
isPanelOpen:
|
|
14741
|
-
isAnyPanelOpen:
|
|
14742
|
-
viewedRowIdx:
|
|
14743
|
-
onViewedRowChange: (e2) =>
|
|
14744
|
-
renderTableExplorerPanel:
|
|
14738
|
+
showTableExplorer: (b || KW) && !qW && !JW,
|
|
14739
|
+
togglePanel: wW,
|
|
14740
|
+
isPanelOpen: SW,
|
|
14741
|
+
isAnyPanelOpen: CW,
|
|
14742
|
+
viewedRowIdx: bW,
|
|
14743
|
+
onViewedRowChange: (e2) => xW(e2),
|
|
14744
|
+
renderTableExplorerPanel: YW
|
|
14745
14745
|
})
|
|
14746
14746
|
})
|
|
14747
14747
|
})
|
|
@@ -16793,29 +16793,29 @@ ${c}
|
|
|
16793
16793
|
], r[2] = S, r[3] = w);
|
|
16794
16794
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
16795
16795
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
16796
|
-
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,
|
|
16797
|
-
r[6] === d ?
|
|
16796
|
+
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, ZU] = (0, import_react.useState)(f || EMPTY), Z = (0, import_react.useRef)(null), QU;
|
|
16797
|
+
r[6] === d ? QU = r[7] : (QU = (e2) => {
|
|
16798
16798
|
var _a3;
|
|
16799
16799
|
d && e2 !== "transform" && ((_a3 = Z.current) == null ? void 0 : _a3.submit());
|
|
16800
|
-
}, r[6] = d, r[7] =
|
|
16801
|
-
let
|
|
16802
|
-
r[8] === q ?
|
|
16803
|
-
|
|
16804
|
-
}, r[8] = q, r[9] =
|
|
16805
|
-
let
|
|
16806
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
16807
|
-
let e2 =
|
|
16800
|
+
}, r[6] = d, r[7] = QU);
|
|
16801
|
+
let $U = QU, eW = (0, import_react.useRef)(q), tW;
|
|
16802
|
+
r[8] === q ? tW = r[9] : (tW = () => {
|
|
16803
|
+
eW.current = q;
|
|
16804
|
+
}, r[8] = q, r[9] = tW), (0, import_react.useEffect)(tW);
|
|
16805
|
+
let nW;
|
|
16806
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (nW = () => {
|
|
16807
|
+
let e2 = eW.current;
|
|
16808
16808
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
16809
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
16810
|
-
let
|
|
16811
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
16809
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = nW) : nW = r[12];
|
|
16810
|
+
let rW = f == null ? void 0 : f.transforms.length, iW;
|
|
16811
|
+
r[13] !== T || r[14] !== p || r[15] !== rW ? (iW = [
|
|
16812
16812
|
T,
|
|
16813
|
-
|
|
16814
|
-
|
|
16813
|
+
rW,
|
|
16814
|
+
eW,
|
|
16815
16815
|
p
|
|
16816
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
16817
|
-
let
|
|
16818
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16816
|
+
], r[13] = T, r[14] = p, r[15] = rW, r[16] = iW) : iW = r[16], (0, import_react.useEffect)(nW, iW);
|
|
16817
|
+
let aW;
|
|
16818
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (aW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16819
16819
|
value: "transform",
|
|
16820
16820
|
className: "text-xs py-1",
|
|
16821
16821
|
children: [
|
|
@@ -16824,9 +16824,9 @@ ${c}
|
|
|
16824
16824
|
}),
|
|
16825
16825
|
"Transform"
|
|
16826
16826
|
]
|
|
16827
|
-
}), r[17] =
|
|
16828
|
-
let
|
|
16829
|
-
r[18] === H ?
|
|
16827
|
+
}), r[17] = aW) : aW = r[17];
|
|
16828
|
+
let oW;
|
|
16829
|
+
r[18] === H ? oW = r[19] : (oW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16830
16830
|
value: "python-code",
|
|
16831
16831
|
className: "text-xs py-1",
|
|
16832
16832
|
children: [
|
|
@@ -16835,9 +16835,9 @@ ${c}
|
|
|
16835
16835
|
}),
|
|
16836
16836
|
"Python Code"
|
|
16837
16837
|
]
|
|
16838
|
-
}), r[18] = H, r[19] =
|
|
16839
|
-
let
|
|
16840
|
-
r[20] === W ?
|
|
16838
|
+
}), r[18] = H, r[19] = oW);
|
|
16839
|
+
let sW;
|
|
16840
|
+
r[20] === W ? sW = r[21] : (sW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16841
16841
|
value: "sql-code",
|
|
16842
16842
|
className: "text-xs py-1",
|
|
16843
16843
|
children: [
|
|
@@ -16846,54 +16846,54 @@ ${c}
|
|
|
16846
16846
|
}),
|
|
16847
16847
|
"SQL Code"
|
|
16848
16848
|
]
|
|
16849
|
-
}), r[20] = W, r[21] =
|
|
16850
|
-
let
|
|
16851
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16849
|
+
}), r[20] = W, r[21] = sW);
|
|
16850
|
+
let cW;
|
|
16851
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (cW = (0, import_jsx_runtime.jsx)("div", {
|
|
16852
16852
|
className: "grow"
|
|
16853
|
-
}), r[22] =
|
|
16854
|
-
let
|
|
16855
|
-
r[23] !==
|
|
16853
|
+
}), r[22] = cW) : cW = r[22];
|
|
16854
|
+
let lW;
|
|
16855
|
+
r[23] !== oW || r[24] !== sW ? (lW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
16856
16856
|
className: "h-8",
|
|
16857
16857
|
children: [
|
|
16858
|
-
|
|
16859
|
-
|
|
16860
|
-
|
|
16861
|
-
|
|
16858
|
+
aW,
|
|
16859
|
+
oW,
|
|
16860
|
+
sW,
|
|
16861
|
+
cW
|
|
16862
16862
|
]
|
|
16863
|
-
}), r[23] =
|
|
16864
|
-
let
|
|
16865
|
-
r[26] === j ?
|
|
16863
|
+
}), r[23] = oW, r[24] = sW, r[25] = lW) : lW = r[25];
|
|
16864
|
+
let uW;
|
|
16865
|
+
r[26] === j ? uW = r[27] : (uW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16866
16866
|
size: "small"
|
|
16867
|
-
}), r[26] = j, r[27] =
|
|
16868
|
-
let
|
|
16869
|
-
r[28] !==
|
|
16867
|
+
}), r[26] = j, r[27] = uW);
|
|
16868
|
+
let fW;
|
|
16869
|
+
r[28] !== lW || r[29] !== uW ? (fW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16870
16870
|
className: "flex items-center gap-2",
|
|
16871
16871
|
children: [
|
|
16872
|
-
|
|
16873
|
-
|
|
16872
|
+
lW,
|
|
16873
|
+
uW
|
|
16874
16874
|
]
|
|
16875
|
-
}), r[28] =
|
|
16876
|
-
let
|
|
16877
|
-
r[31] !== p || r[32] !== f ? (
|
|
16878
|
-
dequal(e2, f) || (p(e2),
|
|
16879
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
16880
|
-
let
|
|
16881
|
-
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !==
|
|
16875
|
+
}), r[28] = lW, r[29] = uW, r[30] = fW) : fW = r[30];
|
|
16876
|
+
let pW;
|
|
16877
|
+
r[31] !== p || r[32] !== f ? (pW = (e2) => {
|
|
16878
|
+
dequal(e2, f) || (p(e2), ZU(e2));
|
|
16879
|
+
}, r[31] = p, r[32] = f, r[33] = pW) : pW = r[33];
|
|
16880
|
+
let mW;
|
|
16881
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== pW ? (mW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16882
16882
|
value: "transform",
|
|
16883
16883
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16884
16884
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
16885
16885
|
ref: Z,
|
|
16886
16886
|
initialValue: q,
|
|
16887
16887
|
columns: c,
|
|
16888
|
-
onChange:
|
|
16889
|
-
onInvalidChange:
|
|
16888
|
+
onChange: pW,
|
|
16889
|
+
onInvalidChange: ZU,
|
|
16890
16890
|
getColumnValues: h,
|
|
16891
16891
|
columnTypesPerStep: B,
|
|
16892
16892
|
lazy: d
|
|
16893
16893
|
})
|
|
16894
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
16895
|
-
let
|
|
16896
|
-
r[41] === H ?
|
|
16894
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = pW, r[40] = mW) : mW = r[40];
|
|
16895
|
+
let hW;
|
|
16896
|
+
r[41] === H ? hW = r[42] : (hW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16897
16897
|
value: "python-code",
|
|
16898
16898
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16899
16899
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16902,9 +16902,9 @@ ${c}
|
|
|
16902
16902
|
code: H,
|
|
16903
16903
|
language: "python"
|
|
16904
16904
|
})
|
|
16905
|
-
}), r[41] = H, r[42] =
|
|
16906
|
-
let
|
|
16907
|
-
r[43] === W ?
|
|
16905
|
+
}), r[41] = H, r[42] = hW);
|
|
16906
|
+
let gW;
|
|
16907
|
+
r[43] === W ? gW = r[44] : (gW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16908
16908
|
value: "sql-code",
|
|
16909
16909
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16910
16910
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16913,35 +16913,35 @@ ${c}
|
|
|
16913
16913
|
code: W,
|
|
16914
16914
|
language: "sql"
|
|
16915
16915
|
})
|
|
16916
|
-
}), r[43] = W, r[44] =
|
|
16917
|
-
let
|
|
16918
|
-
r[45] !==
|
|
16916
|
+
}), r[43] = W, r[44] = gW);
|
|
16917
|
+
let _W;
|
|
16918
|
+
r[45] !== $U || r[46] !== fW || r[47] !== mW || r[48] !== hW || r[49] !== gW ? (_W = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
16919
16919
|
defaultValue: "transform",
|
|
16920
|
-
onValueChange:
|
|
16920
|
+
onValueChange: $U,
|
|
16921
16921
|
children: [
|
|
16922
|
-
|
|
16923
|
-
|
|
16924
|
-
|
|
16925
|
-
|
|
16922
|
+
fW,
|
|
16923
|
+
mW,
|
|
16924
|
+
hW,
|
|
16925
|
+
gW
|
|
16926
16926
|
]
|
|
16927
|
-
}), r[45] =
|
|
16928
|
-
let
|
|
16929
|
-
r[51] === O ?
|
|
16927
|
+
}), r[45] = $U, r[46] = fW, r[47] = mW, r[48] = hW, r[49] = gW, r[50] = _W) : _W = r[50];
|
|
16928
|
+
let vW;
|
|
16929
|
+
r[51] === O ? vW = r[52] : (vW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
16930
16930
|
error: O
|
|
16931
|
-
}), r[51] = O, r[52] =
|
|
16932
|
-
let
|
|
16933
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
16931
|
+
}), r[51] = O, r[52] = vW);
|
|
16932
|
+
let yW = I || "", bW = L ?? 0, xW = G ?? 0, SW = R || Arrays.EMPTY, CW = L && L > 5 || false, wW;
|
|
16933
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== yW || r[61] !== bW || r[62] !== xW || r[63] !== SW || r[64] !== CW ? (wW = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
16934
16934
|
label: null,
|
|
16935
16935
|
className: "rounded-b border-x border-b",
|
|
16936
|
-
data:
|
|
16936
|
+
data: yW,
|
|
16937
16937
|
hasStableRowId: false,
|
|
16938
|
-
totalRows:
|
|
16939
|
-
totalColumns:
|
|
16938
|
+
totalRows: bW,
|
|
16939
|
+
totalColumns: xW,
|
|
16940
16940
|
maxColumns: "all",
|
|
16941
16941
|
pageSize: l,
|
|
16942
16942
|
pagination: true,
|
|
16943
16943
|
fieldTypes: z,
|
|
16944
|
-
rowHeaders:
|
|
16944
|
+
rowHeaders: SW,
|
|
16945
16945
|
showDownload: u,
|
|
16946
16946
|
download_as: _,
|
|
16947
16947
|
get_size_bytes: v,
|
|
@@ -16951,7 +16951,7 @@ ${c}
|
|
|
16951
16951
|
showColumnSummaries: false,
|
|
16952
16952
|
showDataTypes: true,
|
|
16953
16953
|
get_column_summaries: getColumnSummaries,
|
|
16954
|
-
showPageSizeSelector:
|
|
16954
|
+
showPageSizeSelector: CW,
|
|
16955
16955
|
showColumnExplorer: false,
|
|
16956
16956
|
showRowExplorer: true,
|
|
16957
16957
|
showChartBuilder: false,
|
|
@@ -16960,15 +16960,15 @@ ${c}
|
|
|
16960
16960
|
selection: null,
|
|
16961
16961
|
lazy: false,
|
|
16962
16962
|
host: y
|
|
16963
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
16964
|
-
let
|
|
16965
|
-
return r[66] !==
|
|
16963
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = yW, r[61] = bW, r[62] = xW, r[63] = SW, r[64] = CW, r[65] = wW) : wW = r[65];
|
|
16964
|
+
let TW;
|
|
16965
|
+
return r[66] !== _W || r[67] !== vW || r[68] !== wW ? (TW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16966
16966
|
children: [
|
|
16967
|
-
|
|
16968
|
-
|
|
16969
|
-
|
|
16967
|
+
_W,
|
|
16968
|
+
vW,
|
|
16969
|
+
wW
|
|
16970
16970
|
]
|
|
16971
|
-
}), r[66] =
|
|
16971
|
+
}), r[66] = _W, r[67] = vW, r[68] = wW, r[69] = TW) : TW = r[69], TW;
|
|
16972
16972
|
});
|
|
16973
16973
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
16974
16974
|
function getColumnSummaries() {
|
|
@@ -17159,23 +17159,23 @@ ${c}
|
|
|
17159
17159
|
}, [
|
|
17160
17160
|
H
|
|
17161
17161
|
]);
|
|
17162
|
-
let q = (R == null ? void 0 : R.files) ?? [],
|
|
17162
|
+
let q = (R == null ? void 0 : R.files) ?? [], ZU = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", $U = l === "file" || l === "all", eW = q.filter((e2) => Z && e2.is_directory || $U && !e2.is_directory), tW = eW.length > 0 && eW.every((e2) => ZU.has(e2.path));
|
|
17163
17163
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
17164
17164
|
kind: "danger",
|
|
17165
17165
|
children: z.message
|
|
17166
17166
|
});
|
|
17167
|
-
let
|
|
17167
|
+
let nW = PathBuilder.guessDeliminator(c).deliminator, rW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
17168
17168
|
children: e2.path
|
|
17169
17169
|
}, e2.id));
|
|
17170
|
-
function
|
|
17170
|
+
function iW(e2) {
|
|
17171
17171
|
var _a4;
|
|
17172
17172
|
if (v) return;
|
|
17173
17173
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
17174
|
-
if (g ===
|
|
17174
|
+
if (g === nW) {
|
|
17175
17175
|
y(false);
|
|
17176
17176
|
return;
|
|
17177
17177
|
}
|
|
17178
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
17178
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = nW);
|
|
17179
17179
|
}
|
|
17180
17180
|
let r2 = e2.length < c.length;
|
|
17181
17181
|
if (f && r2) {
|
|
@@ -17188,7 +17188,7 @@ ${c}
|
|
|
17188
17188
|
}
|
|
17189
17189
|
M.current = ((_a4 = j.current) == null ? void 0 : _a4.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
17190
17190
|
}
|
|
17191
|
-
function
|
|
17191
|
+
function aW({ path: e2, name: r2, isDirectory: c2 }) {
|
|
17192
17192
|
return {
|
|
17193
17193
|
id: e2,
|
|
17194
17194
|
name: r2,
|
|
@@ -17196,27 +17196,27 @@ ${c}
|
|
|
17196
17196
|
is_directory: c2
|
|
17197
17197
|
};
|
|
17198
17198
|
}
|
|
17199
|
-
function
|
|
17200
|
-
let f2 =
|
|
17199
|
+
function oW({ path: c2, name: l2, isDirectory: d2 }) {
|
|
17200
|
+
let f2 = aW({
|
|
17201
17201
|
path: c2,
|
|
17202
17202
|
name: l2,
|
|
17203
17203
|
isDirectory: d2
|
|
17204
17204
|
});
|
|
17205
|
-
|
|
17205
|
+
ZU.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
17206
17206
|
...e,
|
|
17207
17207
|
f2
|
|
17208
17208
|
] : [
|
|
17209
17209
|
f2
|
|
17210
17210
|
]);
|
|
17211
17211
|
}
|
|
17212
|
-
function
|
|
17212
|
+
function sW() {
|
|
17213
17213
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
17214
17214
|
}
|
|
17215
|
-
function
|
|
17215
|
+
function cW() {
|
|
17216
17216
|
let c2 = [];
|
|
17217
17217
|
for (let e2 of q) {
|
|
17218
|
-
if (!Z && e2.is_directory ||
|
|
17219
|
-
let r2 =
|
|
17218
|
+
if (!Z && e2.is_directory || ZU.has(e2.path)) continue;
|
|
17219
|
+
let r2 = aW({
|
|
17220
17220
|
path: e2.path,
|
|
17221
17221
|
name: e2.name,
|
|
17222
17222
|
isDirectory: e2.is_directory
|
|
@@ -17228,20 +17228,20 @@ ${c}
|
|
|
17228
17228
|
...c2
|
|
17229
17229
|
]);
|
|
17230
17230
|
}
|
|
17231
|
-
let
|
|
17231
|
+
let lW = [
|
|
17232
17232
|
{
|
|
17233
17233
|
key: "parent",
|
|
17234
17234
|
name: PARENT_DIRECTORY,
|
|
17235
17235
|
Icon: CornerLeftUp,
|
|
17236
17236
|
isSelected: false,
|
|
17237
17237
|
canSelect: false,
|
|
17238
|
-
onPrimary: () =>
|
|
17238
|
+
onPrimary: () => iW(PARENT_DIRECTORY),
|
|
17239
17239
|
onToggleSelect: null
|
|
17240
17240
|
},
|
|
17241
17241
|
...q.map((e2) => {
|
|
17242
17242
|
let r2 = e2.path;
|
|
17243
17243
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17244
|
-
let c2 = Z && e2.is_directory ||
|
|
17244
|
+
let c2 = Z && e2.is_directory || $U && !e2.is_directory, l2 = ZU.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => oW({
|
|
17245
17245
|
path: r2,
|
|
17246
17246
|
name: e2.name,
|
|
17247
17247
|
isDirectory: e2.is_directory
|
|
@@ -17252,46 +17252,46 @@ ${c}
|
|
|
17252
17252
|
Icon: FILE_ICON[u2],
|
|
17253
17253
|
isSelected: l2,
|
|
17254
17254
|
canSelect: c2,
|
|
17255
|
-
onPrimary: e2.is_directory ? () =>
|
|
17255
|
+
onPrimary: e2.is_directory ? () => iW(r2) : c2 ? d2 : () => {
|
|
17256
17256
|
},
|
|
17257
17257
|
onToggleSelect: c2 ? d2 : null
|
|
17258
17258
|
};
|
|
17259
17259
|
})
|
|
17260
17260
|
];
|
|
17261
|
-
function
|
|
17261
|
+
function uW(e2) {
|
|
17262
17262
|
var _a4;
|
|
17263
17263
|
E(e2), (_a4 = O.current[e2]) == null ? void 0 : _a4.focus();
|
|
17264
17264
|
}
|
|
17265
|
-
function
|
|
17265
|
+
function dW(e2, r2) {
|
|
17266
17266
|
var _a4, _b3;
|
|
17267
|
-
let c2 =
|
|
17267
|
+
let c2 = lW.length - 1;
|
|
17268
17268
|
switch (e2.key) {
|
|
17269
17269
|
case "ArrowDown":
|
|
17270
|
-
e2.preventDefault(),
|
|
17270
|
+
e2.preventDefault(), uW(Math.min(r2 + 1, c2));
|
|
17271
17271
|
break;
|
|
17272
17272
|
case "ArrowUp":
|
|
17273
|
-
e2.preventDefault(),
|
|
17273
|
+
e2.preventDefault(), uW(Math.max(r2 - 1, 0));
|
|
17274
17274
|
break;
|
|
17275
17275
|
case "Home":
|
|
17276
|
-
e2.preventDefault(),
|
|
17276
|
+
e2.preventDefault(), uW(0);
|
|
17277
17277
|
break;
|
|
17278
17278
|
case "End":
|
|
17279
|
-
e2.preventDefault(),
|
|
17279
|
+
e2.preventDefault(), uW(c2);
|
|
17280
17280
|
break;
|
|
17281
17281
|
case "Enter":
|
|
17282
|
-
e2.preventDefault(),
|
|
17282
|
+
e2.preventDefault(), lW[r2].onPrimary();
|
|
17283
17283
|
break;
|
|
17284
17284
|
case " ":
|
|
17285
|
-
e2.preventDefault(), (_b3 = (_a4 =
|
|
17285
|
+
e2.preventDefault(), (_b3 = (_a4 = lW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a4);
|
|
17286
17286
|
break;
|
|
17287
17287
|
}
|
|
17288
17288
|
}
|
|
17289
|
-
let { parentDirectories:
|
|
17289
|
+
let { parentDirectories: fW } = getProtocolAndParentDirectories({
|
|
17290
17290
|
path: g,
|
|
17291
|
-
delimiter:
|
|
17291
|
+
delimiter: nW,
|
|
17292
17292
|
initialPath: c,
|
|
17293
17293
|
restrictNavigation: f
|
|
17294
|
-
}),
|
|
17294
|
+
}), pW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
17295
17295
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
17296
17296
|
children: [
|
|
17297
17297
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -17301,7 +17301,7 @@ ${c}
|
|
|
17301
17301
|
(() => {
|
|
17302
17302
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
17303
17303
|
children: renderHTML({
|
|
17304
|
-
html: d ?? `Select ${
|
|
17304
|
+
html: d ?? `Select ${pW.join(" and ", 2)}...`
|
|
17305
17305
|
})
|
|
17306
17306
|
});
|
|
17307
17307
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -17315,8 +17315,8 @@ ${c}
|
|
|
17315
17315
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
17316
17316
|
size: "xs",
|
|
17317
17317
|
variant: "link",
|
|
17318
|
-
onClick:
|
|
17319
|
-
children:
|
|
17318
|
+
onClick: tW ? sW : cW,
|
|
17319
|
+
children: tW ? "Deselect all" : "Select all"
|
|
17320
17320
|
})
|
|
17321
17321
|
})
|
|
17322
17322
|
]
|
|
@@ -17326,8 +17326,8 @@ ${c}
|
|
|
17326
17326
|
className: "mt-2 w-full",
|
|
17327
17327
|
placeholder: g,
|
|
17328
17328
|
value: g,
|
|
17329
|
-
onChange: (e2) =>
|
|
17330
|
-
children:
|
|
17329
|
+
onChange: (e2) => iW(e2.target.value),
|
|
17330
|
+
children: fW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
17331
17331
|
value: e2,
|
|
17332
17332
|
children: e2
|
|
17333
17333
|
}, e2))
|
|
@@ -17363,14 +17363,14 @@ ${c}
|
|
|
17363
17363
|
"aria-label": "File browser",
|
|
17364
17364
|
"aria-multiselectable": u,
|
|
17365
17365
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17366
|
-
children:
|
|
17366
|
+
children: lW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17367
17367
|
role: "row",
|
|
17368
17368
|
ref: (e3) => {
|
|
17369
17369
|
O.current[r2] = e3;
|
|
17370
17370
|
},
|
|
17371
17371
|
tabIndex: r2 === T ? 0 : -1,
|
|
17372
17372
|
onFocus: () => E(r2),
|
|
17373
|
-
onKeyDown: (e3) =>
|
|
17373
|
+
onKeyDown: (e3) => dW(e3, r2),
|
|
17374
17374
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
17375
17375
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
17376
17376
|
}),
|
|
@@ -17413,7 +17413,7 @@ ${c}
|
|
|
17413
17413
|
children: [
|
|
17414
17414
|
e.length,
|
|
17415
17415
|
" ",
|
|
17416
|
-
|
|
17416
|
+
pW.join(" or ", e.length),
|
|
17417
17417
|
" ",
|
|
17418
17418
|
"selected"
|
|
17419
17419
|
]
|
|
@@ -17433,7 +17433,7 @@ ${c}
|
|
|
17433
17433
|
marginBlock: 0
|
|
17434
17434
|
},
|
|
17435
17435
|
className: "m-0 text-xs text-muted-foreground",
|
|
17436
|
-
children:
|
|
17436
|
+
children: rW
|
|
17437
17437
|
})
|
|
17438
17438
|
})
|
|
17439
17439
|
]
|
|
@@ -22815,55 +22815,55 @@ ${c}
|
|
|
22815
22815
|
return typeof S == "function" ? S : noop$2;
|
|
22816
22816
|
}, [
|
|
22817
22817
|
S
|
|
22818
|
-
]), q = (0, import_react.useRef)(null),
|
|
22819
|
-
!
|
|
22820
|
-
|
|
22818
|
+
]), q = (0, import_react.useRef)(null), ZU = (0, import_react.useRef)(null), Z = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), QU = Z[0], $U = Z[1], eW = QU.isFocused, tW = QU.isFileDialogActive, nW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), rW = function() {
|
|
22819
|
+
!nW.current && tW && setTimeout(function() {
|
|
22820
|
+
ZU.current && (ZU.current.files.length || ($U({
|
|
22821
22821
|
type: "closeDialog"
|
|
22822
22822
|
}), G()));
|
|
22823
22823
|
}, 300);
|
|
22824
22824
|
};
|
|
22825
22825
|
(0, import_react.useEffect)(function() {
|
|
22826
|
-
return window.addEventListener("focus",
|
|
22827
|
-
window.removeEventListener("focus",
|
|
22826
|
+
return window.addEventListener("focus", rW, false), function() {
|
|
22827
|
+
window.removeEventListener("focus", rW, false);
|
|
22828
22828
|
};
|
|
22829
22829
|
}, [
|
|
22830
|
-
|
|
22831
|
-
|
|
22830
|
+
ZU,
|
|
22831
|
+
tW,
|
|
22832
22832
|
G,
|
|
22833
|
-
|
|
22833
|
+
nW
|
|
22834
22834
|
]);
|
|
22835
|
-
var
|
|
22836
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
22835
|
+
var iW = (0, import_react.useRef)([]), aW = (0, import_react.useRef)([]), oW = function(e2) {
|
|
22836
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), iW.current = []);
|
|
22837
22837
|
};
|
|
22838
22838
|
(0, import_react.useEffect)(function() {
|
|
22839
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
22840
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
22839
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", oW, false)), function() {
|
|
22840
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", oW));
|
|
22841
22841
|
};
|
|
22842
22842
|
}, [
|
|
22843
22843
|
q,
|
|
22844
22844
|
O
|
|
22845
22845
|
]), (0, import_react.useEffect)(function() {
|
|
22846
22846
|
var e2 = function(e3) {
|
|
22847
|
-
|
|
22847
|
+
aW.current = [].concat(_toConsumableArray(aW.current), [
|
|
22848
22848
|
e3.target
|
|
22849
|
-
]), isEvtWithFiles(e3) &&
|
|
22849
|
+
]), isEvtWithFiles(e3) && $U({
|
|
22850
22850
|
isDragGlobal: true,
|
|
22851
22851
|
type: "setDragGlobal"
|
|
22852
22852
|
});
|
|
22853
22853
|
}, r2 = function(e3) {
|
|
22854
|
-
|
|
22854
|
+
aW.current = aW.current.filter(function(r3) {
|
|
22855
22855
|
return r3 !== e3.target && r3 !== null;
|
|
22856
|
-
}), !(
|
|
22856
|
+
}), !(aW.current.length > 0) && $U({
|
|
22857
22857
|
isDragGlobal: false,
|
|
22858
22858
|
type: "setDragGlobal"
|
|
22859
22859
|
});
|
|
22860
22860
|
}, c2 = function() {
|
|
22861
|
-
|
|
22861
|
+
aW.current = [], $U({
|
|
22862
22862
|
isDragGlobal: false,
|
|
22863
22863
|
type: "setDragGlobal"
|
|
22864
22864
|
});
|
|
22865
22865
|
}, l2 = function() {
|
|
22866
|
-
|
|
22866
|
+
aW.current = [], $U({
|
|
22867
22867
|
isDragGlobal: false,
|
|
22868
22868
|
type: "setDragGlobal"
|
|
22869
22869
|
});
|
|
@@ -22881,12 +22881,12 @@ ${c}
|
|
|
22881
22881
|
E,
|
|
22882
22882
|
l
|
|
22883
22883
|
]);
|
|
22884
|
-
var
|
|
22884
|
+
var sW = (0, import_react.useCallback)(function(e2) {
|
|
22885
22885
|
R ? R(e2) : console.error(e2);
|
|
22886
22886
|
}, [
|
|
22887
22887
|
R
|
|
22888
|
-
]),
|
|
22889
|
-
e2.preventDefault(), e2.persist(),
|
|
22888
|
+
]), cW = (0, import_react.useCallback)(function(e2) {
|
|
22889
|
+
e2.preventDefault(), e2.persist(), xW(e2), iW.current = [].concat(_toConsumableArray(iW.current), [
|
|
22890
22890
|
e2.target
|
|
22891
22891
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22892
22892
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -22899,7 +22899,7 @@ ${c}
|
|
|
22899
22899
|
maxFiles: m,
|
|
22900
22900
|
validator: z
|
|
22901
22901
|
});
|
|
22902
|
-
|
|
22902
|
+
$U({
|
|
22903
22903
|
isDragAccept: l2,
|
|
22904
22904
|
isDragReject: c2 > 0 && !l2,
|
|
22905
22905
|
isDragActive: true,
|
|
@@ -22907,12 +22907,12 @@ ${c}
|
|
|
22907
22907
|
}), h && h(e2);
|
|
22908
22908
|
}
|
|
22909
22909
|
}).catch(function(e3) {
|
|
22910
|
-
return
|
|
22910
|
+
return sW(e3);
|
|
22911
22911
|
});
|
|
22912
22912
|
}, [
|
|
22913
22913
|
u,
|
|
22914
22914
|
h,
|
|
22915
|
-
|
|
22915
|
+
sW,
|
|
22916
22916
|
L,
|
|
22917
22917
|
B,
|
|
22918
22918
|
f,
|
|
@@ -22920,8 +22920,8 @@ ${c}
|
|
|
22920
22920
|
p,
|
|
22921
22921
|
m,
|
|
22922
22922
|
z
|
|
22923
|
-
]),
|
|
22924
|
-
e2.preventDefault(), e2.persist(),
|
|
22923
|
+
]), lW = (0, import_react.useCallback)(function(e2) {
|
|
22924
|
+
e2.preventDefault(), e2.persist(), xW(e2);
|
|
22925
22925
|
var r2 = isEvtWithFiles(e2);
|
|
22926
22926
|
if (r2 && e2.dataTransfer) try {
|
|
22927
22927
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -22931,12 +22931,12 @@ ${c}
|
|
|
22931
22931
|
}, [
|
|
22932
22932
|
_,
|
|
22933
22933
|
L
|
|
22934
|
-
]),
|
|
22935
|
-
e2.preventDefault(), e2.persist(),
|
|
22936
|
-
var r2 =
|
|
22934
|
+
]), uW = (0, import_react.useCallback)(function(e2) {
|
|
22935
|
+
e2.preventDefault(), e2.persist(), xW(e2);
|
|
22936
|
+
var r2 = iW.current.filter(function(e3) {
|
|
22937
22937
|
return q.current && q.current.contains(e3);
|
|
22938
22938
|
}), c2 = r2.indexOf(e2.target);
|
|
22939
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
22939
|
+
c2 !== -1 && r2.splice(c2, 1), iW.current = r2, !(r2.length > 0) && ($U({
|
|
22940
22940
|
type: "setDraggedFiles",
|
|
22941
22941
|
isDragActive: false,
|
|
22942
22942
|
isDragAccept: false,
|
|
@@ -22946,7 +22946,7 @@ ${c}
|
|
|
22946
22946
|
q,
|
|
22947
22947
|
g,
|
|
22948
22948
|
L
|
|
22949
|
-
]),
|
|
22949
|
+
]), dW = (0, import_react.useCallback)(function(e2, r2) {
|
|
22950
22950
|
var c2 = [], l2 = [];
|
|
22951
22951
|
e2.forEach(function(e3) {
|
|
22952
22952
|
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;
|
|
@@ -22970,14 +22970,14 @@ ${c}
|
|
|
22970
22970
|
TOO_MANY_FILES_REJECTION
|
|
22971
22971
|
]
|
|
22972
22972
|
});
|
|
22973
|
-
}), c2.splice(0)),
|
|
22973
|
+
}), c2.splice(0)), $U({
|
|
22974
22974
|
acceptedFiles: c2,
|
|
22975
22975
|
fileRejections: l2,
|
|
22976
22976
|
isDragReject: l2.length > 0,
|
|
22977
22977
|
type: "setFiles"
|
|
22978
22978
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
22979
22979
|
}, [
|
|
22980
|
-
|
|
22980
|
+
$U,
|
|
22981
22981
|
p,
|
|
22982
22982
|
B,
|
|
22983
22983
|
f,
|
|
@@ -22987,22 +22987,22 @@ ${c}
|
|
|
22987
22987
|
y,
|
|
22988
22988
|
b,
|
|
22989
22989
|
z
|
|
22990
|
-
]),
|
|
22991
|
-
e2.preventDefault(), e2.persist(),
|
|
22992
|
-
isPropagationStopped(e2) && !L ||
|
|
22990
|
+
]), fW = (0, import_react.useCallback)(function(e2) {
|
|
22991
|
+
e2.preventDefault(), e2.persist(), xW(e2), iW.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22992
|
+
isPropagationStopped(e2) && !L || dW(r2, e2);
|
|
22993
22993
|
}).catch(function(e3) {
|
|
22994
|
-
return
|
|
22995
|
-
}),
|
|
22994
|
+
return sW(e3);
|
|
22995
|
+
}), $U({
|
|
22996
22996
|
type: "reset"
|
|
22997
22997
|
});
|
|
22998
22998
|
}, [
|
|
22999
22999
|
u,
|
|
23000
|
-
|
|
23001
|
-
|
|
23000
|
+
dW,
|
|
23001
|
+
sW,
|
|
23002
23002
|
L
|
|
23003
|
-
]),
|
|
23004
|
-
if (
|
|
23005
|
-
|
|
23003
|
+
]), pW = (0, import_react.useCallback)(function() {
|
|
23004
|
+
if (nW.current) {
|
|
23005
|
+
$U({
|
|
23006
23006
|
type: "openDialog"
|
|
23007
23007
|
}), W();
|
|
23008
23008
|
var e2 = {
|
|
@@ -23012,66 +23012,66 @@ ${c}
|
|
|
23012
23012
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
23013
23013
|
return u(e3);
|
|
23014
23014
|
}).then(function(e3) {
|
|
23015
|
-
|
|
23015
|
+
dW(e3, null), $U({
|
|
23016
23016
|
type: "closeDialog"
|
|
23017
23017
|
});
|
|
23018
23018
|
}).catch(function(e3) {
|
|
23019
|
-
isAbort(e3) ? (G(e3),
|
|
23019
|
+
isAbort(e3) ? (G(e3), $U({
|
|
23020
23020
|
type: "closeDialog"
|
|
23021
|
-
})) : isSecurityError(e3) ? (
|
|
23021
|
+
})) : isSecurityError(e3) ? (nW.current = false, ZU.current ? (ZU.current.value = null, ZU.current.click()) : sW(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."))) : sW(e3);
|
|
23022
23022
|
});
|
|
23023
23023
|
return;
|
|
23024
23024
|
}
|
|
23025
|
-
|
|
23025
|
+
ZU.current && ($U({
|
|
23026
23026
|
type: "openDialog"
|
|
23027
|
-
}), W(),
|
|
23027
|
+
}), W(), ZU.current.value = null, ZU.current.click());
|
|
23028
23028
|
}, [
|
|
23029
|
-
|
|
23029
|
+
$U,
|
|
23030
23030
|
W,
|
|
23031
23031
|
G,
|
|
23032
23032
|
T,
|
|
23033
|
-
|
|
23034
|
-
|
|
23033
|
+
dW,
|
|
23034
|
+
sW,
|
|
23035
23035
|
H,
|
|
23036
23036
|
p
|
|
23037
|
-
]),
|
|
23038
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
23037
|
+
]), mW = (0, import_react.useCallback)(function(e2) {
|
|
23038
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), pW());
|
|
23039
23039
|
}, [
|
|
23040
23040
|
q,
|
|
23041
|
-
|
|
23042
|
-
]),
|
|
23043
|
-
|
|
23041
|
+
pW
|
|
23042
|
+
]), hW = (0, import_react.useCallback)(function() {
|
|
23043
|
+
$U({
|
|
23044
23044
|
type: "focus"
|
|
23045
23045
|
});
|
|
23046
|
-
}, []),
|
|
23047
|
-
|
|
23046
|
+
}, []), gW = (0, import_react.useCallback)(function() {
|
|
23047
|
+
$U({
|
|
23048
23048
|
type: "blur"
|
|
23049
23049
|
});
|
|
23050
|
-
}, []),
|
|
23051
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
23050
|
+
}, []), _W = (0, import_react.useCallback)(function() {
|
|
23051
|
+
j || (isIeOrEdge() ? setTimeout(pW, 0) : pW());
|
|
23052
23052
|
}, [
|
|
23053
23053
|
j,
|
|
23054
|
-
|
|
23055
|
-
]),
|
|
23054
|
+
pW
|
|
23055
|
+
]), vW = function(e2) {
|
|
23056
23056
|
return l ? null : e2;
|
|
23057
|
-
},
|
|
23058
|
-
return M ? null :
|
|
23059
|
-
},
|
|
23060
|
-
return I ? null :
|
|
23061
|
-
},
|
|
23057
|
+
}, yW = function(e2) {
|
|
23058
|
+
return M ? null : vW(e2);
|
|
23059
|
+
}, bW = function(e2) {
|
|
23060
|
+
return I ? null : vW(e2);
|
|
23061
|
+
}, xW = function(e2) {
|
|
23062
23062
|
L && e2.stopPropagation();
|
|
23063
|
-
},
|
|
23063
|
+
}, SW = (0, import_react.useMemo)(function() {
|
|
23064
23064
|
return function() {
|
|
23065
23065
|
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);
|
|
23066
23066
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
23067
|
-
onKeyDown:
|
|
23068
|
-
onFocus:
|
|
23069
|
-
onBlur:
|
|
23070
|
-
onClick:
|
|
23071
|
-
onDragEnter:
|
|
23072
|
-
onDragOver:
|
|
23073
|
-
onDragLeave:
|
|
23074
|
-
onDrop:
|
|
23067
|
+
onKeyDown: yW(composeEventHandlers(d2, mW)),
|
|
23068
|
+
onFocus: yW(composeEventHandlers(f2, hW)),
|
|
23069
|
+
onBlur: yW(composeEventHandlers(p2, gW)),
|
|
23070
|
+
onClick: vW(composeEventHandlers(m2, _W)),
|
|
23071
|
+
onDragEnter: bW(composeEventHandlers(h2, cW)),
|
|
23072
|
+
onDragOver: bW(composeEventHandlers(g2, lW)),
|
|
23073
|
+
onDragLeave: bW(composeEventHandlers(_2, uW)),
|
|
23074
|
+
onDrop: bW(composeEventHandlers(v2, fW)),
|
|
23075
23075
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23076
23076
|
}, c2, q), !l && !M ? {
|
|
23077
23077
|
tabIndex: 0
|
|
@@ -23079,20 +23079,20 @@ ${c}
|
|
|
23079
23079
|
};
|
|
23080
23080
|
}, [
|
|
23081
23081
|
q,
|
|
23082
|
-
|
|
23083
|
-
|
|
23084
|
-
|
|
23085
|
-
|
|
23086
|
-
|
|
23087
|
-
|
|
23088
|
-
|
|
23089
|
-
|
|
23082
|
+
mW,
|
|
23083
|
+
hW,
|
|
23084
|
+
gW,
|
|
23085
|
+
_W,
|
|
23086
|
+
cW,
|
|
23087
|
+
lW,
|
|
23088
|
+
uW,
|
|
23089
|
+
fW,
|
|
23090
23090
|
M,
|
|
23091
23091
|
I,
|
|
23092
23092
|
l
|
|
23093
|
-
]),
|
|
23093
|
+
]), CW = (0, import_react.useCallback)(function(e2) {
|
|
23094
23094
|
e2.stopPropagation();
|
|
23095
|
-
}, []),
|
|
23095
|
+
}, []), wW = (0, import_react.useMemo)(function() {
|
|
23096
23096
|
return function() {
|
|
23097
23097
|
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);
|
|
23098
23098
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -23111,25 +23111,25 @@ ${c}
|
|
|
23111
23111
|
width: "1px",
|
|
23112
23112
|
whiteSpace: "nowrap"
|
|
23113
23113
|
},
|
|
23114
|
-
onChange:
|
|
23115
|
-
onClick:
|
|
23114
|
+
onChange: vW(composeEventHandlers(l2, fW)),
|
|
23115
|
+
onClick: vW(composeEventHandlers(u2, CW)),
|
|
23116
23116
|
tabIndex: -1
|
|
23117
|
-
}, c2,
|
|
23117
|
+
}, c2, ZU)), d2);
|
|
23118
23118
|
};
|
|
23119
23119
|
}, [
|
|
23120
|
-
|
|
23120
|
+
ZU,
|
|
23121
23121
|
c,
|
|
23122
23122
|
p,
|
|
23123
|
-
|
|
23123
|
+
fW,
|
|
23124
23124
|
l
|
|
23125
23125
|
]);
|
|
23126
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
23127
|
-
isFocused:
|
|
23128
|
-
getRootProps:
|
|
23129
|
-
getInputProps:
|
|
23126
|
+
return _objectSpread$7(_objectSpread$7({}, QU), {}, {
|
|
23127
|
+
isFocused: eW && !l,
|
|
23128
|
+
getRootProps: SW,
|
|
23129
|
+
getInputProps: wW,
|
|
23130
23130
|
rootRef: q,
|
|
23131
|
-
inputRef:
|
|
23132
|
-
open:
|
|
23131
|
+
inputRef: ZU,
|
|
23132
|
+
open: vW(pW)
|
|
23133
23133
|
});
|
|
23134
23134
|
}
|
|
23135
23135
|
function reducer$2(e, r) {
|
|
@@ -23361,47 +23361,47 @@ ${c}
|
|
|
23361
23361
|
html: I
|
|
23362
23362
|
})
|
|
23363
23363
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
23364
|
-
let q = w && "text-primary",
|
|
23365
|
-
r[48] !== q || r[49] !==
|
|
23366
|
-
let
|
|
23367
|
-
r[51] === Z ?
|
|
23364
|
+
let q = w && "text-primary", ZU = T && "text-destructive", Z;
|
|
23365
|
+
r[48] !== q || r[49] !== ZU ? (Z = cn(q, ZU), r[48] = q, r[49] = ZU, r[50] = Z) : Z = r[50];
|
|
23366
|
+
let QU;
|
|
23367
|
+
r[51] === Z ? QU = r[52] : (QU = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23368
23368
|
strokeWidth: 1.4,
|
|
23369
23369
|
className: Z
|
|
23370
|
-
}), r[51] = Z, r[52] =
|
|
23371
|
-
let
|
|
23372
|
-
r[53] !==
|
|
23373
|
-
let
|
|
23374
|
-
r[56] ===
|
|
23370
|
+
}), r[51] = Z, r[52] = QU);
|
|
23371
|
+
let $U = w && "text-primary", eW = T && "text-destructive", tW;
|
|
23372
|
+
r[53] !== $U || r[54] !== eW ? (tW = cn($U, eW), r[53] = $U, r[54] = eW, r[55] = tW) : tW = r[55];
|
|
23373
|
+
let nW;
|
|
23374
|
+
r[56] === tW ? nW = r[57] : (nW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23375
23375
|
strokeWidth: 1.4,
|
|
23376
|
-
className:
|
|
23377
|
-
}), r[56] =
|
|
23378
|
-
let
|
|
23379
|
-
r[58] !==
|
|
23376
|
+
className: tW
|
|
23377
|
+
}), r[56] = tW, r[57] = nW);
|
|
23378
|
+
let rW;
|
|
23379
|
+
r[58] !== QU || r[59] !== nW ? (rW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23380
23380
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
23381
23381
|
children: [
|
|
23382
|
-
|
|
23383
|
-
|
|
23382
|
+
QU,
|
|
23383
|
+
nW
|
|
23384
23384
|
]
|
|
23385
|
-
}), r[58] =
|
|
23386
|
-
let
|
|
23387
|
-
r[61] !== G || r[62] !==
|
|
23385
|
+
}), r[58] = QU, r[59] = nW, r[60] = rW) : rW = r[60];
|
|
23386
|
+
let iW;
|
|
23387
|
+
r[61] !== G || r[62] !== rW ? (iW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23388
23388
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
23389
23389
|
children: [
|
|
23390
23390
|
G,
|
|
23391
|
-
|
|
23391
|
+
rW
|
|
23392
23392
|
]
|
|
23393
|
-
}), r[61] = G, r[62] =
|
|
23394
|
-
let
|
|
23395
|
-
r[64] !== W || r[65] !==
|
|
23393
|
+
}), r[61] = G, r[62] = rW, r[63] = iW) : iW = r[63];
|
|
23394
|
+
let aW;
|
|
23395
|
+
r[64] !== W || r[65] !== iW || r[66] !== z || r[67] !== B ? (aW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23396
23396
|
className: z,
|
|
23397
23397
|
...B,
|
|
23398
23398
|
children: [
|
|
23399
23399
|
W,
|
|
23400
|
-
|
|
23400
|
+
iW
|
|
23401
23401
|
]
|
|
23402
|
-
}), r[64] = W, r[65] =
|
|
23403
|
-
let
|
|
23404
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
23402
|
+
}), r[64] = W, r[65] = iW, r[66] = z, r[67] = B, r[68] = aW) : aW = r[68];
|
|
23403
|
+
let oW;
|
|
23404
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (oW = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
23405
23405
|
className: "flex flex-row gap-1",
|
|
23406
23406
|
children: [
|
|
23407
23407
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23437,17 +23437,17 @@ ${c}
|
|
|
23437
23437
|
})
|
|
23438
23438
|
})
|
|
23439
23439
|
]
|
|
23440
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
23441
|
-
let
|
|
23442
|
-
return r[75] !==
|
|
23440
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = oW) : oW = r[74];
|
|
23441
|
+
let sW;
|
|
23442
|
+
return r[75] !== aW || r[76] !== oW ? (sW = (0, import_jsx_runtime.jsx)("section", {
|
|
23443
23443
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
23444
23444
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
23445
23445
|
children: [
|
|
23446
|
-
|
|
23447
|
-
|
|
23446
|
+
aW,
|
|
23447
|
+
oW
|
|
23448
23448
|
]
|
|
23449
23449
|
})
|
|
23450
|
-
}), r[75] =
|
|
23450
|
+
}), r[75] = aW, r[76] = oW, r[77] = sW) : sW = r[77], sW;
|
|
23451
23451
|
};
|
|
23452
23452
|
function _temp$11(e) {
|
|
23453
23453
|
Logger.error(e), toast({
|
|
@@ -23543,75 +23543,75 @@ ${c}
|
|
|
23543
23543
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
23544
23544
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23545
23545
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
23546
|
-
let
|
|
23547
|
-
r[13] === f ?
|
|
23546
|
+
let ZU;
|
|
23547
|
+
r[13] === f ? ZU = r[14] : (ZU = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23548
23548
|
className: "text-center",
|
|
23549
23549
|
children: renderHTML({
|
|
23550
23550
|
html: f
|
|
23551
23551
|
})
|
|
23552
|
-
}), r[13] = f, r[14] =
|
|
23552
|
+
}), r[13] = f, r[14] = ZU);
|
|
23553
23553
|
let Z;
|
|
23554
23554
|
r[15] === L ? Z = r[16] : (Z = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
23555
23555
|
kind: "danger",
|
|
23556
23556
|
className: "rounded",
|
|
23557
23557
|
children: L ?? "Invalid input"
|
|
23558
23558
|
}), r[15] = L, r[16] = Z);
|
|
23559
|
-
let
|
|
23560
|
-
r[17] === c ?
|
|
23559
|
+
let QU;
|
|
23560
|
+
r[17] === c ? QU = r[18] : (QU = (0, import_jsx_runtime.jsx)("div", {
|
|
23561
23561
|
children: c
|
|
23562
|
-
}), r[17] = c, r[18] =
|
|
23563
|
-
let
|
|
23564
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
23562
|
+
}), r[17] = c, r[18] = QU);
|
|
23563
|
+
let $U;
|
|
23564
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? ($U = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
23565
23565
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
23566
23566
|
variant: "text",
|
|
23567
23567
|
onClick: (e2) => {
|
|
23568
23568
|
e2.preventDefault(), B();
|
|
23569
23569
|
},
|
|
23570
23570
|
children: S
|
|
23571
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
23572
|
-
let
|
|
23573
|
-
r[23] === h ?
|
|
23571
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = $U) : $U = r[22];
|
|
23572
|
+
let eW = v || h, tW;
|
|
23573
|
+
r[23] === h ? tW = r[24] : (tW = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
23574
23574
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
23575
|
-
}), r[23] = h, r[24] =
|
|
23576
|
-
let
|
|
23577
|
-
r[25] !== g || r[26] !==
|
|
23575
|
+
}), r[23] = h, r[24] = tW);
|
|
23576
|
+
let nW;
|
|
23577
|
+
r[25] !== g || r[26] !== eW || r[27] !== tW || r[28] !== I ? (nW = (0, import_jsx_runtime.jsxs)(Button, {
|
|
23578
23578
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
23579
23579
|
variant: I,
|
|
23580
|
-
disabled:
|
|
23580
|
+
disabled: eW,
|
|
23581
23581
|
type: "submit",
|
|
23582
23582
|
children: [
|
|
23583
|
-
|
|
23583
|
+
tW,
|
|
23584
23584
|
g
|
|
23585
23585
|
]
|
|
23586
|
-
}), r[25] = g, r[26] =
|
|
23587
|
-
let
|
|
23588
|
-
r[30] !== _ || r[31] !==
|
|
23589
|
-
let
|
|
23590
|
-
r[33] !==
|
|
23586
|
+
}), r[25] = g, r[26] = eW, r[27] = tW, r[28] = I, r[29] = nW) : nW = r[29];
|
|
23587
|
+
let rW;
|
|
23588
|
+
r[30] !== _ || r[31] !== nW ? (rW = withTooltip(nW, _), r[30] = _, r[31] = nW, r[32] = rW) : rW = r[32];
|
|
23589
|
+
let iW;
|
|
23590
|
+
r[33] !== rW || r[34] !== $U ? (iW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23591
23591
|
className: "flex justify-end gap-2 font-code",
|
|
23592
23592
|
children: [
|
|
23593
|
-
|
|
23594
|
-
|
|
23593
|
+
$U,
|
|
23594
|
+
rW
|
|
23595
23595
|
]
|
|
23596
|
-
}), r[33] =
|
|
23597
|
-
let
|
|
23598
|
-
r[36] !==
|
|
23596
|
+
}), r[33] = rW, r[34] = $U, r[35] = iW) : iW = r[35];
|
|
23597
|
+
let aW;
|
|
23598
|
+
r[36] !== iW || r[37] !== G || r[38] !== q || r[39] !== ZU || r[40] !== Z || r[41] !== QU ? (aW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23599
23599
|
className: G,
|
|
23600
23600
|
onKeyDown: q,
|
|
23601
23601
|
children: [
|
|
23602
|
-
|
|
23602
|
+
ZU,
|
|
23603
23603
|
Z,
|
|
23604
|
-
|
|
23605
|
-
|
|
23604
|
+
QU,
|
|
23605
|
+
iW
|
|
23606
23606
|
]
|
|
23607
|
-
}), r[36] =
|
|
23608
|
-
let
|
|
23609
|
-
return r[43] !==
|
|
23607
|
+
}), r[36] = iW, r[37] = G, r[38] = q, r[39] = ZU, r[40] = Z, r[41] = QU, r[42] = aW) : aW = r[42];
|
|
23608
|
+
let oW;
|
|
23609
|
+
return r[43] !== aW || r[44] !== H ? (oW = (0, import_jsx_runtime.jsx)("form", {
|
|
23610
23610
|
className: "contents",
|
|
23611
23611
|
ref: j,
|
|
23612
23612
|
onSubmit: H,
|
|
23613
|
-
children:
|
|
23614
|
-
}), r[43] =
|
|
23613
|
+
children: aW
|
|
23614
|
+
}), r[43] = aW, r[44] = H, r[45] = oW) : oW = r[45], oW;
|
|
23615
23615
|
};
|
|
23616
23616
|
var Form = (e) => {
|
|
23617
23617
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -25384,8 +25384,8 @@ ${c}
|
|
|
25384
25384
|
points: extractSunburstPoints(e2.points)
|
|
25385
25385
|
}));
|
|
25386
25386
|
}, r[29] = u, r[30] = G);
|
|
25387
|
-
let q = useEvent_default(G),
|
|
25388
|
-
r[31] === u ?
|
|
25387
|
+
let q = useEvent_default(G), ZU;
|
|
25388
|
+
r[31] === u ? ZU = r[32] : (ZU = (e2) => {
|
|
25389
25389
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25390
25390
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25391
25391
|
u((e3) => ({
|
|
@@ -25396,9 +25396,9 @@ ${c}
|
|
|
25396
25396
|
points: r2,
|
|
25397
25397
|
indices: c2
|
|
25398
25398
|
}));
|
|
25399
|
-
}, r[31] = u, r[32] =
|
|
25400
|
-
let Z = useEvent_default(
|
|
25401
|
-
r[33] === u ?
|
|
25399
|
+
}, r[31] = u, r[32] = ZU);
|
|
25400
|
+
let Z = useEvent_default(ZU), QU;
|
|
25401
|
+
r[33] === u ? QU = r[34] : (QU = (e2) => {
|
|
25402
25402
|
e2 && u((r2) => ({
|
|
25403
25403
|
...r2,
|
|
25404
25404
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -25407,9 +25407,9 @@ ${c}
|
|
|
25407
25407
|
range: e2.range,
|
|
25408
25408
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
25409
25409
|
}));
|
|
25410
|
-
}, r[33] = u, r[34] =
|
|
25411
|
-
let
|
|
25412
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !==
|
|
25410
|
+
}, r[33] = u, r[34] = QU);
|
|
25411
|
+
let $U = useEvent_default(QU), eW = m.frames ?? void 0, tW = useEvent_default(_temp3$3), nW;
|
|
25412
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !== $U || r[43] !== eW || r[44] !== tW || r[45] !== R ? (nW = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25413
25413
|
...m,
|
|
25414
25414
|
layout: h,
|
|
25415
25415
|
onRelayout: R,
|
|
@@ -25418,12 +25418,12 @@ ${c}
|
|
|
25418
25418
|
onSunburstClick: q,
|
|
25419
25419
|
config: L,
|
|
25420
25420
|
onClick: Z,
|
|
25421
|
-
onSelected:
|
|
25421
|
+
onSelected: $U,
|
|
25422
25422
|
className: "w-full",
|
|
25423
25423
|
useResizeHandler: true,
|
|
25424
|
-
frames:
|
|
25425
|
-
onError:
|
|
25426
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] =
|
|
25424
|
+
frames: eW,
|
|
25425
|
+
onError: tW
|
|
25426
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] = $U, r[43] = eW, r[44] = tW, r[45] = R, r[46] = nW) : nW = r[46], nW;
|
|
25427
25427
|
});
|
|
25428
25428
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25429
25429
|
function _temp$8(e) {
|
|
@@ -25555,8 +25555,8 @@ ${c}
|
|
|
25555
25555
|
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];
|
|
25556
25556
|
let q;
|
|
25557
25557
|
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];
|
|
25558
|
-
let
|
|
25559
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
25558
|
+
let ZU;
|
|
25559
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (ZU = (0, import_jsx_runtime.jsx)(Track, {
|
|
25560
25560
|
ref: E,
|
|
25561
25561
|
"data-testid": "track",
|
|
25562
25562
|
className: G,
|
|
@@ -25567,7 +25567,7 @@ ${c}
|
|
|
25567
25567
|
onPointerMove: z,
|
|
25568
25568
|
onPointerUp: H
|
|
25569
25569
|
})
|
|
25570
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25570
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = ZU) : ZU = c[22];
|
|
25571
25571
|
let Z;
|
|
25572
25572
|
c[23] !== m.setFalse || c[24] !== m.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25573
25573
|
asChild: true,
|
|
@@ -25580,29 +25580,29 @@ ${c}
|
|
|
25580
25580
|
onMouseLeave: m.setFalse
|
|
25581
25581
|
})
|
|
25582
25582
|
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = Z) : Z = c[25];
|
|
25583
|
-
let
|
|
25584
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
25583
|
+
let QU;
|
|
25584
|
+
c[26] !== h || c[27] !== u.value || c[28] !== d ? (QU = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25585
25585
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
25586
25586
|
locale: h
|
|
25587
25587
|
})
|
|
25588
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
25589
|
-
let
|
|
25590
|
-
c[30] ===
|
|
25591
|
-
children:
|
|
25592
|
-
}), c[30] =
|
|
25593
|
-
let
|
|
25594
|
-
c[32] !== f || c[33] !== Z || c[34] !==
|
|
25588
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = QU) : QU = c[29];
|
|
25589
|
+
let $U;
|
|
25590
|
+
c[30] === QU ? $U = c[31] : ($U = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25591
|
+
children: QU
|
|
25592
|
+
}), c[30] = QU, c[31] = $U);
|
|
25593
|
+
let eW;
|
|
25594
|
+
c[32] !== f || c[33] !== Z || c[34] !== $U ? (eW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25595
25595
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25596
25596
|
delayDuration: 0,
|
|
25597
25597
|
open: f,
|
|
25598
25598
|
children: [
|
|
25599
25599
|
Z,
|
|
25600
|
-
|
|
25600
|
+
$U
|
|
25601
25601
|
]
|
|
25602
25602
|
})
|
|
25603
|
-
}), c[32] = f, c[33] = Z, c[34] =
|
|
25604
|
-
let
|
|
25605
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
25603
|
+
}), c[32] = f, c[33] = Z, c[34] = $U, c[35] = eW) : eW = c[35];
|
|
25604
|
+
let tW;
|
|
25605
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (tW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25606
25606
|
asChild: true,
|
|
25607
25607
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25608
25608
|
"data-testid": "thumb",
|
|
@@ -25612,39 +25612,39 @@ ${c}
|
|
|
25612
25612
|
onMouseEnter: m.setTrue,
|
|
25613
25613
|
onMouseLeave: m.setFalse
|
|
25614
25614
|
})
|
|
25615
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
25616
|
-
let
|
|
25617
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
25615
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = tW) : tW = c[38];
|
|
25616
|
+
let nW;
|
|
25617
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (nW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25618
25618
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
25619
25619
|
locale: h
|
|
25620
25620
|
})
|
|
25621
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
25622
|
-
let
|
|
25623
|
-
c[43] ===
|
|
25624
|
-
children:
|
|
25625
|
-
}), c[43] =
|
|
25626
|
-
let
|
|
25627
|
-
c[45] !== f || c[46] !==
|
|
25621
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = nW) : nW = c[42];
|
|
25622
|
+
let rW;
|
|
25623
|
+
c[43] === nW ? rW = c[44] : (rW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25624
|
+
children: nW
|
|
25625
|
+
}), c[43] = nW, c[44] = rW);
|
|
25626
|
+
let iW;
|
|
25627
|
+
c[45] !== f || c[46] !== tW || c[47] !== rW ? (iW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25628
25628
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25629
25629
|
delayDuration: 0,
|
|
25630
25630
|
open: f,
|
|
25631
25631
|
children: [
|
|
25632
|
-
|
|
25633
|
-
|
|
25632
|
+
tW,
|
|
25633
|
+
rW
|
|
25634
25634
|
]
|
|
25635
25635
|
})
|
|
25636
|
-
}), c[45] = f, c[46] =
|
|
25637
|
-
let
|
|
25638
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25636
|
+
}), c[45] = f, c[46] = tW, c[47] = rW, c[48] = iW) : iW = c[48];
|
|
25637
|
+
let aW;
|
|
25638
|
+
return c[49] !== M || c[50] !== u || c[51] !== ZU || c[52] !== eW || c[53] !== iW || c[54] !== W ? (aW = (0, import_jsx_runtime.jsxs)(Root, {
|
|
25639
25639
|
ref: M,
|
|
25640
25640
|
className: W,
|
|
25641
25641
|
...u,
|
|
25642
25642
|
children: [
|
|
25643
|
-
|
|
25644
|
-
|
|
25645
|
-
|
|
25643
|
+
ZU,
|
|
25644
|
+
eW,
|
|
25645
|
+
iW
|
|
25646
25646
|
]
|
|
25647
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25647
|
+
}), c[49] = M, c[50] = u, c[51] = ZU, c[52] = eW, c[53] = iW, c[54] = W, c[55] = aW) : aW = c[55], aW;
|
|
25648
25648
|
});
|
|
25649
25649
|
RangeSlider.displayName = Root.displayName;
|
|
25650
25650
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25695,14 +25695,14 @@ ${c}
|
|
|
25695
25695
|
}, q = (e2) => {
|
|
25696
25696
|
h && l(e2);
|
|
25697
25697
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
25698
|
-
let
|
|
25699
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
25698
|
+
let ZU, Z;
|
|
25699
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (ZU = () => {
|
|
25700
25700
|
h && !dequal(T, u) && l(T);
|
|
25701
25701
|
}, Z = () => {
|
|
25702
25702
|
h && !dequal(T, u) && l(T);
|
|
25703
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
25704
|
-
let
|
|
25705
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !==
|
|
25703
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = ZU, r[19] = Z) : (ZU = r[18], Z = r[19]);
|
|
25704
|
+
let QU;
|
|
25705
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== ZU || r[31] !== Z || r[32] !== b ? (QU = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25706
25706
|
id: S,
|
|
25707
25707
|
className: W,
|
|
25708
25708
|
value: T,
|
|
@@ -25713,36 +25713,36 @@ ${c}
|
|
|
25713
25713
|
disabled: y,
|
|
25714
25714
|
onValueChange: G,
|
|
25715
25715
|
onValueCommit: q,
|
|
25716
|
-
onPointerUp:
|
|
25716
|
+
onPointerUp: ZU,
|
|
25717
25717
|
onMouseUp: Z,
|
|
25718
25718
|
valueMap: b
|
|
25719
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
25720
|
-
let
|
|
25721
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
25719
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = ZU, r[31] = Z, r[32] = b, r[33] = QU) : QU = r[33];
|
|
25720
|
+
let $U;
|
|
25721
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? ($U = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25722
25722
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
25723
25723
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
25724
25724
|
locale: w
|
|
25725
25725
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
25726
25726
|
locale: w
|
|
25727
25727
|
})}`
|
|
25728
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
25729
|
-
let
|
|
25730
|
-
r[39] !==
|
|
25728
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = $U) : $U = r[38];
|
|
25729
|
+
let eW;
|
|
25730
|
+
r[39] !== QU || r[40] !== $U || r[41] !== B ? (eW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25731
25731
|
className: B,
|
|
25732
25732
|
children: [
|
|
25733
|
-
|
|
25734
|
-
|
|
25733
|
+
QU,
|
|
25734
|
+
$U
|
|
25735
25735
|
]
|
|
25736
|
-
}), r[39] =
|
|
25737
|
-
let
|
|
25738
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
25736
|
+
}), r[39] = QU, r[40] = $U, r[41] = B, r[42] = eW) : eW = r[42];
|
|
25737
|
+
let tW;
|
|
25738
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== eW || r[47] !== M || r[48] !== L ? (tW = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25739
25739
|
label: c,
|
|
25740
25740
|
id: S,
|
|
25741
25741
|
align: M,
|
|
25742
25742
|
className: L,
|
|
25743
25743
|
fullWidth: v,
|
|
25744
|
-
children:
|
|
25745
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
25744
|
+
children: eW
|
|
25745
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = eW, r[47] = M, r[48] = L, r[49] = tW) : tW = r[49], tW;
|
|
25746
25746
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
25747
25747
|
r.exports = u;
|
|
25748
25748
|
var c = {
|
|
@@ -29033,7 +29033,7 @@ ${c}
|
|
|
29033
29033
|
areRegExpsEqual: H,
|
|
29034
29034
|
areSetsEqual: W,
|
|
29035
29035
|
createIsNestedEqual: r2
|
|
29036
|
-
}),
|
|
29036
|
+
}), ZU = Object.freeze({
|
|
29037
29037
|
areArraysEqual: O,
|
|
29038
29038
|
areDatesEqual: j,
|
|
29039
29039
|
areMapsEqual: I,
|
|
@@ -29042,39 +29042,39 @@ ${c}
|
|
|
29042
29042
|
areSetsEqual: G,
|
|
29043
29043
|
createIsNestedEqual: r2
|
|
29044
29044
|
}), Z = T(q);
|
|
29045
|
-
function
|
|
29045
|
+
function QU(e3, r3) {
|
|
29046
29046
|
return Z(e3, r3, void 0);
|
|
29047
29047
|
}
|
|
29048
|
-
var
|
|
29048
|
+
var $U = T(l(q, {
|
|
29049
29049
|
createIsNestedEqual: function() {
|
|
29050
29050
|
return f;
|
|
29051
29051
|
}
|
|
29052
29052
|
}));
|
|
29053
|
-
function
|
|
29054
|
-
return
|
|
29053
|
+
function eW(e3, r3) {
|
|
29054
|
+
return $U(e3, r3, void 0);
|
|
29055
29055
|
}
|
|
29056
|
-
var
|
|
29057
|
-
function
|
|
29058
|
-
return
|
|
29056
|
+
var tW = T(ZU);
|
|
29057
|
+
function nW(e3, r3) {
|
|
29058
|
+
return tW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29059
29059
|
}
|
|
29060
|
-
var
|
|
29060
|
+
var rW = T(l(ZU, {
|
|
29061
29061
|
createIsNestedEqual: function() {
|
|
29062
29062
|
return f;
|
|
29063
29063
|
}
|
|
29064
29064
|
}));
|
|
29065
|
-
function
|
|
29066
|
-
return
|
|
29065
|
+
function iW(e3, r3) {
|
|
29066
|
+
return rW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29067
29067
|
}
|
|
29068
|
-
function
|
|
29068
|
+
function aW(e3) {
|
|
29069
29069
|
return T(l(q, e3(q)));
|
|
29070
29070
|
}
|
|
29071
|
-
function
|
|
29072
|
-
var r3 = T(l(
|
|
29071
|
+
function oW(e3) {
|
|
29072
|
+
var r3 = T(l(ZU, e3(ZU)));
|
|
29073
29073
|
return (function(e4, c2, l2) {
|
|
29074
29074
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29075
29075
|
});
|
|
29076
29076
|
}
|
|
29077
|
-
e2.circularDeepEqual =
|
|
29077
|
+
e2.circularDeepEqual = nW, e2.circularShallowEqual = iW, e2.createCustomCircularEqual = oW, e2.createCustomEqual = aW, e2.deepEqual = QU, e2.sameValueZeroEqual = f, e2.shallowEqual = eW, Object.defineProperty(e2, "__esModule", {
|
|
29078
29078
|
value: true
|
|
29079
29079
|
});
|
|
29080
29080
|
}));
|
|
@@ -29100,7 +29100,7 @@ ${c}
|
|
|
29100
29100
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
29101
29101
|
Object.defineProperty(e, "__esModule", {
|
|
29102
29102
|
value: true
|
|
29103
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
29103
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = fW, 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 = iW, e.setTopLeft = oW, e.setTransform = aW, e.sortLayoutItems = sW, e.sortLayoutItemsByColRow = lW, e.sortLayoutItemsByRowCol = cW, e.synchronizeLayoutWithChildren = uW, e.validateLayout = dW, e.withLayoutItem = v;
|
|
29104
29104
|
var r = require_fast_equals(), c = l(require_react());
|
|
29105
29105
|
function l(e2) {
|
|
29106
29106
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -29205,7 +29205,7 @@ ${c}
|
|
|
29205
29205
|
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);
|
|
29206
29206
|
}
|
|
29207
29207
|
function T(e2, r2, c2, l2) {
|
|
29208
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
29208
|
+
let u2 = B(e2), d2 = h(u2), f2 = sW(e2, r2), p2 = Array(e2.length);
|
|
29209
29209
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
29210
29210
|
let h3 = y(f2[m2]);
|
|
29211
29211
|
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;
|
|
@@ -29263,7 +29263,7 @@ ${c}
|
|
|
29263
29263
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
29264
29264
|
let h2 = r2.x, _2 = r2.y;
|
|
29265
29265
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
29266
|
-
let v2 =
|
|
29266
|
+
let v2 = sW(e2, f2);
|
|
29267
29267
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
29268
29268
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
29269
29269
|
if (b2 && m2) return g(e2);
|
|
@@ -29297,15 +29297,15 @@ ${c}
|
|
|
29297
29297
|
function G(e2) {
|
|
29298
29298
|
return e2 * 100 + "%";
|
|
29299
29299
|
}
|
|
29300
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
29300
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, ZU = (e2, r2, c2) => e2 < 0 ? r2 : c2, Z = (e2) => Math.max(0, e2), QU = (e2) => Math.max(0, e2), $U = (e2, r2, c2) => {
|
|
29301
29301
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29302
29302
|
return {
|
|
29303
29303
|
left: l2,
|
|
29304
29304
|
width: d2,
|
|
29305
|
-
height:
|
|
29306
|
-
top:
|
|
29305
|
+
height: ZU(f2, e2.height, u2),
|
|
29306
|
+
top: QU(f2)
|
|
29307
29307
|
};
|
|
29308
|
-
},
|
|
29308
|
+
}, eW = (e2, r2, c2) => {
|
|
29309
29309
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29310
29310
|
return {
|
|
29311
29311
|
top: l2,
|
|
@@ -29313,45 +29313,45 @@ ${c}
|
|
|
29313
29313
|
width: q(e2.left, e2.width, f2, c2),
|
|
29314
29314
|
left: Z(u2)
|
|
29315
29315
|
};
|
|
29316
|
-
},
|
|
29316
|
+
}, tW = (e2, r2, c2) => {
|
|
29317
29317
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29318
29318
|
return {
|
|
29319
29319
|
height: u2,
|
|
29320
29320
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
29321
|
-
top:
|
|
29321
|
+
top: QU(l2),
|
|
29322
29322
|
left: Z(f2)
|
|
29323
29323
|
};
|
|
29324
|
-
},
|
|
29324
|
+
}, nW = (e2, r2, c2) => {
|
|
29325
29325
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29326
29326
|
return {
|
|
29327
29327
|
width: f2,
|
|
29328
29328
|
left: u2,
|
|
29329
|
-
height:
|
|
29330
|
-
top:
|
|
29329
|
+
height: ZU(l2, e2.height, d2),
|
|
29330
|
+
top: QU(l2)
|
|
29331
29331
|
};
|
|
29332
|
-
},
|
|
29333
|
-
n:
|
|
29332
|
+
}, rW = {
|
|
29333
|
+
n: $U,
|
|
29334
29334
|
ne: function() {
|
|
29335
|
-
return
|
|
29335
|
+
return $U(arguments.length <= 0 ? void 0 : arguments[0], eW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29336
29336
|
},
|
|
29337
|
-
e:
|
|
29337
|
+
e: eW,
|
|
29338
29338
|
se: function() {
|
|
29339
|
-
return
|
|
29339
|
+
return nW(arguments.length <= 0 ? void 0 : arguments[0], eW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29340
29340
|
},
|
|
29341
|
-
s:
|
|
29341
|
+
s: nW,
|
|
29342
29342
|
sw: function() {
|
|
29343
|
-
return
|
|
29343
|
+
return nW(arguments.length <= 0 ? void 0 : arguments[0], tW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29344
29344
|
},
|
|
29345
|
-
w:
|
|
29345
|
+
w: tW,
|
|
29346
29346
|
nw: function() {
|
|
29347
|
-
return
|
|
29347
|
+
return $U(arguments.length <= 0 ? void 0 : arguments[0], tW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29348
29348
|
}
|
|
29349
29349
|
};
|
|
29350
|
-
function
|
|
29351
|
-
let u2 =
|
|
29350
|
+
function iW(e2, r2, c2, l2) {
|
|
29351
|
+
let u2 = rW[e2];
|
|
29352
29352
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
29353
29353
|
}
|
|
29354
|
-
function
|
|
29354
|
+
function aW(e2) {
|
|
29355
29355
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
29356
29356
|
return {
|
|
29357
29357
|
transform: d2,
|
|
@@ -29364,7 +29364,7 @@ ${c}
|
|
|
29364
29364
|
position: "absolute"
|
|
29365
29365
|
};
|
|
29366
29366
|
}
|
|
29367
|
-
function
|
|
29367
|
+
function oW(e2) {
|
|
29368
29368
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
29369
29369
|
return {
|
|
29370
29370
|
top: `${r2}px`,
|
|
@@ -29374,20 +29374,20 @@ ${c}
|
|
|
29374
29374
|
position: "absolute"
|
|
29375
29375
|
};
|
|
29376
29376
|
}
|
|
29377
|
-
function
|
|
29378
|
-
return r2 === "horizontal" ?
|
|
29377
|
+
function sW(e2, r2) {
|
|
29378
|
+
return r2 === "horizontal" ? lW(e2) : r2 === "vertical" ? cW(e2) : e2;
|
|
29379
29379
|
}
|
|
29380
|
-
function
|
|
29380
|
+
function cW(e2) {
|
|
29381
29381
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29382
29382
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
29383
29383
|
});
|
|
29384
29384
|
}
|
|
29385
|
-
function
|
|
29385
|
+
function lW(e2) {
|
|
29386
29386
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29387
29387
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
29388
29388
|
});
|
|
29389
29389
|
}
|
|
29390
|
-
function
|
|
29390
|
+
function uW(e2, r2, l2, u2, f2) {
|
|
29391
29391
|
e2 || (e2 = []);
|
|
29392
29392
|
let p2 = [];
|
|
29393
29393
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -29408,7 +29408,7 @@ ${c}
|
|
|
29408
29408
|
});
|
|
29409
29409
|
return f2 ? m2 : T(m2, u2, l2);
|
|
29410
29410
|
}
|
|
29411
|
-
function
|
|
29411
|
+
function dW(e2) {
|
|
29412
29412
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
29413
29413
|
"x",
|
|
29414
29414
|
"y",
|
|
@@ -29425,7 +29425,7 @@ ${c}
|
|
|
29425
29425
|
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})`);
|
|
29426
29426
|
}
|
|
29427
29427
|
}
|
|
29428
|
-
function
|
|
29428
|
+
function fW(e2) {
|
|
29429
29429
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
29430
29430
|
return r2 === false ? null : c2;
|
|
29431
29431
|
}
|
|
@@ -32230,7 +32230,7 @@ ${c}
|
|
|
32230
32230
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32231
32231
|
let E = useIsDragging(), O, j;
|
|
32232
32232
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
32233
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
32233
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, ZU, Z, QU, $U, eW, tW, nW, rW, iW, aW, oW, sW, cW, lW, uW, dW, fW;
|
|
32234
32234
|
if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== h || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
|
|
32235
32235
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
32236
32236
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32249,23 +32249,23 @@ ${c}
|
|
|
32249
32249
|
});
|
|
32250
32250
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
32251
32251
|
let y2 = v2;
|
|
32252
|
-
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,
|
|
32252
|
+
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, lW = "lg", r[58] === c.cells ? uW = r[59] : (uW = {
|
|
32253
32253
|
lg: c.cells
|
|
32254
|
-
}, r[58] = c.cells, r[59] =
|
|
32254
|
+
}, r[58] = c.cells, r[59] = uW), dW = L, fW = S, R = false;
|
|
32255
32255
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
32256
32256
|
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 ? [
|
|
32257
32257
|
20,
|
|
32258
32258
|
20
|
|
32259
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
32259
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, ZU = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (Z = (e3) => {
|
|
32260
32260
|
f || l({
|
|
32261
32261
|
...c,
|
|
32262
32262
|
cells: e3
|
|
32263
32263
|
});
|
|
32264
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ?
|
|
32264
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ? QU = r[71] : (QU = g ? {
|
|
32265
32265
|
i: g.i,
|
|
32266
32266
|
w: g.w || 2,
|
|
32267
32267
|
h: g.h || 2
|
|
32268
|
-
} : void 0, r[70] = g, r[71] =
|
|
32268
|
+
} : void 0, r[70] = g, r[71] = QU), r[72] !== O || r[73] !== c || r[74] !== l ? ($U = (e3, r2, u2) => {
|
|
32269
32269
|
O.onDragStop(), r2 && l({
|
|
32270
32270
|
...c,
|
|
32271
32271
|
cells: [
|
|
@@ -32273,15 +32273,15 @@ ${c}
|
|
|
32273
32273
|
r2
|
|
32274
32274
|
]
|
|
32275
32275
|
});
|
|
32276
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
32276
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = $U) : $U = r[75], r[76] === O ? (eW = r[77], tW = r[78], nW = r[79]) : (eW = (e3, r2, c2, l2, u2) => {
|
|
32277
32277
|
O.onDragStart(u2);
|
|
32278
|
-
},
|
|
32278
|
+
}, tW = (e3, r2, c2, l2, u2) => {
|
|
32279
32279
|
O.onDragMove(u2);
|
|
32280
|
-
},
|
|
32280
|
+
}, nW = () => {
|
|
32281
32281
|
O.onDragStop();
|
|
32282
|
-
}, r[76] = O, r[77] =
|
|
32282
|
+
}, r[76] = O, r[77] = eW, r[78] = tW, r[79] = nW), rW = _temp3$2, iW = M, aW = M, oW = M, sW = M ? `.${DRAG_HANDLE}` : "noop";
|
|
32283
32283
|
let E2;
|
|
32284
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
32284
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), cW = u.filter(E2).map((r2) => {
|
|
32285
32285
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p = c.cellSide.get(r2.id), m3 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
32286
32286
|
code: r2.code,
|
|
32287
32287
|
mode: d,
|
|
@@ -32310,14 +32310,14 @@ ${c}
|
|
|
32310
32310
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32311
32311
|
children: m3
|
|
32312
32312
|
}, r2.id);
|
|
32313
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
32314
|
-
} 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],
|
|
32315
|
-
let
|
|
32316
|
-
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] !==
|
|
32317
|
-
breakpoint:
|
|
32318
|
-
layouts:
|
|
32319
|
-
style:
|
|
32320
|
-
cols:
|
|
32313
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = ZU, r[31] = Z, r[32] = QU, r[33] = $U, r[34] = eW, r[35] = tW, r[36] = nW, r[37] = rW, r[38] = iW, r[39] = aW, r[40] = oW, r[41] = sW, r[42] = cW, r[43] = lW, r[44] = uW, r[45] = dW, r[46] = fW;
|
|
32314
|
+
} 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], ZU = r[30], Z = r[31], QU = r[32], $U = r[33], eW = r[34], tW = r[35], nW = r[36], rW = r[37], iW = r[38], aW = r[39], oW = r[40], sW = r[41], cW = r[42], lW = r[43], uW = r[44], dW = r[45], fW = r[46];
|
|
32315
|
+
let pW;
|
|
32316
|
+
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] !== ZU || r[91] !== Z || r[92] !== QU || r[93] !== $U || r[94] !== eW || r[95] !== tW || r[96] !== nW || r[97] !== rW || r[98] !== iW || r[99] !== aW || r[100] !== oW || r[101] !== sW || r[102] !== cW || r[103] !== lW || r[104] !== uW || r[105] !== dW || r[106] !== fW ? (pW = (0, import_jsx_runtime.jsx)(I, {
|
|
32317
|
+
breakpoint: lW,
|
|
32318
|
+
layouts: uW,
|
|
32319
|
+
style: dW,
|
|
32320
|
+
cols: fW,
|
|
32321
32321
|
allowOverlap: R,
|
|
32322
32322
|
className: z,
|
|
32323
32323
|
containerPadding: B,
|
|
@@ -32325,23 +32325,23 @@ ${c}
|
|
|
32325
32325
|
isBounded: W,
|
|
32326
32326
|
compactType: G,
|
|
32327
32327
|
preventCollision: q,
|
|
32328
|
-
rowHeight:
|
|
32328
|
+
rowHeight: ZU,
|
|
32329
32329
|
onLayoutChange: Z,
|
|
32330
|
-
droppingItem:
|
|
32331
|
-
onDrop:
|
|
32332
|
-
onDragStart:
|
|
32333
|
-
onDrag:
|
|
32334
|
-
onDragStop:
|
|
32335
|
-
onResizeStop:
|
|
32336
|
-
isDraggable:
|
|
32337
|
-
isDroppable:
|
|
32338
|
-
isResizable:
|
|
32339
|
-
draggableHandle:
|
|
32340
|
-
children:
|
|
32341
|
-
}), 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] =
|
|
32342
|
-
let
|
|
32343
|
-
if (r[108] !== u || r[109] !==
|
|
32344
|
-
|
|
32330
|
+
droppingItem: QU,
|
|
32331
|
+
onDrop: $U,
|
|
32332
|
+
onDragStart: eW,
|
|
32333
|
+
onDrag: tW,
|
|
32334
|
+
onDragStop: nW,
|
|
32335
|
+
onResizeStop: rW,
|
|
32336
|
+
isDraggable: iW,
|
|
32337
|
+
isDroppable: aW,
|
|
32338
|
+
isResizable: oW,
|
|
32339
|
+
draggableHandle: sW,
|
|
32340
|
+
children: cW
|
|
32341
|
+
}), 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] = ZU, r[91] = Z, r[92] = QU, r[93] = $U, r[94] = eW, r[95] = tW, r[96] = nW, r[97] = rW, r[98] = iW, r[99] = aW, r[100] = oW, r[101] = sW, r[102] = cW, r[103] = lW, r[104] = uW, r[105] = dW, r[106] = fW, r[107] = pW) : pW = r[107];
|
|
32342
|
+
let mW = pW, hW, gW, _W, vW, yW, bW, xW;
|
|
32343
|
+
if (r[108] !== u || r[109] !== mW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
32344
|
+
xW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
32345
32345
|
bb0: {
|
|
32346
32346
|
let e2;
|
|
32347
32347
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -32349,14 +32349,14 @@ ${c}
|
|
|
32349
32349
|
if (f) {
|
|
32350
32350
|
if (c.bordered) {
|
|
32351
32351
|
let e4;
|
|
32352
|
-
r[127] !==
|
|
32352
|
+
r[127] !== mW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
32353
32353
|
className: "flex flex-1 flex-col items-center",
|
|
32354
32354
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
32355
32355
|
style: L,
|
|
32356
32356
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
32357
|
-
children:
|
|
32357
|
+
children: mW
|
|
32358
32358
|
})
|
|
32359
|
-
}), r[127] =
|
|
32359
|
+
}), r[127] = mW, r[128] = L, r[129] = e4) : e4 = r[129], mW = e4;
|
|
32360
32360
|
}
|
|
32361
32361
|
let e3 = m2.filter(_temp4$2), l2;
|
|
32362
32362
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -32367,9 +32367,9 @@ ${c}
|
|
|
32367
32367
|
status: e4.status,
|
|
32368
32368
|
isScrollable: false,
|
|
32369
32369
|
hidden: false
|
|
32370
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
32370
|
+
}, e4.id), r[130] = d, r[131] = l2), xW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32371
32371
|
children: [
|
|
32372
|
-
|
|
32372
|
+
mW,
|
|
32373
32373
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32374
32374
|
className: "hidden",
|
|
32375
32375
|
children: e3.map(l2)
|
|
@@ -32380,31 +32380,31 @@ ${c}
|
|
|
32380
32380
|
}
|
|
32381
32381
|
if (c.bordered) {
|
|
32382
32382
|
let e3;
|
|
32383
|
-
r[132] ===
|
|
32383
|
+
r[132] === mW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
32384
32384
|
className: "h-full overflow-auto",
|
|
32385
|
-
children:
|
|
32386
|
-
}), r[132] =
|
|
32385
|
+
children: mW
|
|
32386
|
+
}), r[132] = mW, r[133] = e3);
|
|
32387
32387
|
let c2;
|
|
32388
32388
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32389
32389
|
style: L,
|
|
32390
32390
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
32391
32391
|
children: e3
|
|
32392
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
32392
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], mW = c2;
|
|
32393
32393
|
}
|
|
32394
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
32394
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (bW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
32395
32395
|
layout: c,
|
|
32396
32396
|
setLayout: l,
|
|
32397
32397
|
isLocked: v,
|
|
32398
32398
|
setIsLocked: y
|
|
32399
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
32399
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = bW) : bW = r[140];
|
|
32400
32400
|
let g2;
|
|
32401
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32401
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (vW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = vW, r[142] = g2) : (vW = r[141], g2 = r[142]), r[143] === mW ? yW = r[144] : (yW = (0, import_jsx_runtime.jsx)("div", {
|
|
32402
32402
|
className: g2,
|
|
32403
|
-
children:
|
|
32404
|
-
}), r[143] =
|
|
32403
|
+
children: mW
|
|
32404
|
+
}), r[143] = mW, r[144] = yW), hW = "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") ? (gW = (0, import_jsx_runtime.jsx)("div", {
|
|
32405
32405
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
32406
32406
|
children: "Outputs"
|
|
32407
|
-
}), r[145] =
|
|
32407
|
+
}), r[145] = gW) : gW = r[145];
|
|
32408
32408
|
let b2;
|
|
32409
32409
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
32410
32410
|
draggable: true,
|
|
@@ -32429,34 +32429,34 @@ ${c}
|
|
|
32429
32429
|
status: e3.status,
|
|
32430
32430
|
hidden: false
|
|
32431
32431
|
})
|
|
32432
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
32433
|
-
}
|
|
32434
|
-
r[108] = u, r[109] =
|
|
32435
|
-
} else
|
|
32436
|
-
if (
|
|
32437
|
-
let
|
|
32438
|
-
r[150] !==
|
|
32439
|
-
className:
|
|
32432
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], _W = m2.map(b2);
|
|
32433
|
+
}
|
|
32434
|
+
r[108] = u, r[109] = mW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = hW, r[118] = gW, r[119] = _W, r[120] = vW, r[121] = yW, r[122] = bW, r[123] = xW, r[124] = mW;
|
|
32435
|
+
} else hW = r[117], gW = r[118], _W = r[119], vW = r[120], yW = r[121], bW = r[122], xW = r[123], mW = r[124];
|
|
32436
|
+
if (xW !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return xW;
|
|
32437
|
+
let SW;
|
|
32438
|
+
r[150] !== hW || r[151] !== gW || r[152] !== _W ? (SW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32439
|
+
className: hW,
|
|
32440
32440
|
children: [
|
|
32441
|
-
|
|
32442
|
-
|
|
32441
|
+
gW,
|
|
32442
|
+
_W
|
|
32443
32443
|
]
|
|
32444
|
-
}), r[150] =
|
|
32445
|
-
let
|
|
32446
|
-
r[154] !==
|
|
32447
|
-
className:
|
|
32444
|
+
}), r[150] = hW, r[151] = gW, r[152] = _W, r[153] = SW) : SW = r[153];
|
|
32445
|
+
let CW;
|
|
32446
|
+
r[154] !== vW || r[155] !== yW || r[156] !== SW ? (CW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32447
|
+
className: vW,
|
|
32448
32448
|
children: [
|
|
32449
|
-
|
|
32450
|
-
|
|
32449
|
+
yW,
|
|
32450
|
+
SW
|
|
32451
32451
|
]
|
|
32452
|
-
}), r[154] =
|
|
32453
|
-
let
|
|
32454
|
-
return r[158] !==
|
|
32452
|
+
}), r[154] = vW, r[155] = yW, r[156] = SW, r[157] = CW) : CW = r[157];
|
|
32453
|
+
let wW;
|
|
32454
|
+
return r[158] !== bW || r[159] !== CW ? (wW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32455
32455
|
children: [
|
|
32456
|
-
|
|
32457
|
-
|
|
32456
|
+
bW,
|
|
32457
|
+
CW
|
|
32458
32458
|
]
|
|
32459
|
-
}), r[158] =
|
|
32459
|
+
}), r[158] = bW, r[159] = CW, r[160] = wW) : wW = r[160], wW;
|
|
32460
32460
|
};
|
|
32461
32461
|
var GridCell = (0, import_react.memo)((e) => {
|
|
32462
32462
|
let r = (0, import_compiler_runtime$13.c)(20), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _ } = e, v;
|
|
@@ -32757,25 +32757,25 @@ ${c}
|
|
|
32757
32757
|
G
|
|
32758
32758
|
]
|
|
32759
32759
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
32760
|
-
let
|
|
32761
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32760
|
+
let ZU;
|
|
32761
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ZU = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32762
32762
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32763
|
-
}), r[35] =
|
|
32763
|
+
}), r[35] = ZU) : ZU = r[35];
|
|
32764
32764
|
let Z;
|
|
32765
32765
|
r[36] === l ? Z = r[37] : (Z = (0, import_jsx_runtime.jsx)(X, {
|
|
32766
32766
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
32767
32767
|
onClick: () => l()
|
|
32768
32768
|
}), r[36] = l, r[37] = Z);
|
|
32769
|
-
let
|
|
32770
|
-
return r[38] !== I || r[39] !== q || r[40] !== Z || r[41] !== w ? (
|
|
32769
|
+
let QU;
|
|
32770
|
+
return r[38] !== I || r[39] !== q || r[40] !== Z || r[41] !== w ? (QU = (0, import_jsx_runtime.jsxs)("div", {
|
|
32771
32771
|
className: w,
|
|
32772
32772
|
children: [
|
|
32773
32773
|
I,
|
|
32774
32774
|
q,
|
|
32775
|
-
|
|
32775
|
+
ZU,
|
|
32776
32776
|
Z
|
|
32777
32777
|
]
|
|
32778
|
-
}), r[38] = I, r[39] = q, r[40] = Z, r[41] = w, r[42] =
|
|
32778
|
+
}), r[38] = I, r[39] = q, r[40] = Z, r[41] = w, r[42] = QU) : QU = r[42], QU;
|
|
32779
32779
|
};
|
|
32780
32780
|
function isSidebarCell(e) {
|
|
32781
32781
|
var _a3;
|
|
@@ -34779,31 +34779,31 @@ ${c}
|
|
|
34779
34779
|
}, [
|
|
34780
34780
|
T,
|
|
34781
34781
|
M
|
|
34782
|
-
]), 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),
|
|
34782
|
+
]), 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), ZU = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34783
34783
|
j
|
|
34784
|
-
]), Z = useMeasuringConfiguration(p), { droppableRects:
|
|
34784
|
+
]), Z = useMeasuringConfiguration(p), { droppableRects: QU, measureDroppableContainers: $U, measuringScheduled: eW } = useDroppableMeasuring(ZU, {
|
|
34785
34785
|
dragging: w,
|
|
34786
34786
|
dependencies: [
|
|
34787
34787
|
O.x,
|
|
34788
34788
|
O.y
|
|
34789
34789
|
],
|
|
34790
34790
|
config: Z.droppable
|
|
34791
|
-
}),
|
|
34791
|
+
}), tW = useCachedNode(E, T), nW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34792
34792
|
H
|
|
34793
|
-
]),
|
|
34793
|
+
]), rW = PW(), iW = useInitialRect(tW, Z.draggable.measure);
|
|
34794
34794
|
useLayoutShiftScrollCompensation({
|
|
34795
34795
|
activeNode: T == null ? null : E.get(T),
|
|
34796
|
-
config:
|
|
34797
|
-
initialRect:
|
|
34796
|
+
config: rW.layoutShiftCompensation,
|
|
34797
|
+
initialRect: iW,
|
|
34798
34798
|
measure: Z.draggable.measure
|
|
34799
34799
|
});
|
|
34800
|
-
let
|
|
34800
|
+
let aW = useRect(tW, Z.draggable.measure, iW), oW = useRect(tW ? tW.parentElement : null), sW = (0, import_react.useRef)({
|
|
34801
34801
|
activatorEvent: null,
|
|
34802
34802
|
active: null,
|
|
34803
|
-
activeNode:
|
|
34803
|
+
activeNode: tW,
|
|
34804
34804
|
collisionRect: null,
|
|
34805
34805
|
collisions: null,
|
|
34806
|
-
droppableRects:
|
|
34806
|
+
droppableRects: QU,
|
|
34807
34807
|
draggableNodes: E,
|
|
34808
34808
|
draggingNode: null,
|
|
34809
34809
|
draggingNodeRect: null,
|
|
@@ -34811,45 +34811,45 @@ ${c}
|
|
|
34811
34811
|
over: null,
|
|
34812
34812
|
scrollableAncestors: [],
|
|
34813
34813
|
scrollAdjustedTranslate: null
|
|
34814
|
-
}),
|
|
34814
|
+
}), cW = j.getNodeFor((_a3 = sW.current.over) == null ? void 0 : _a3.id), lW = useDragOverlayMeasuring({
|
|
34815
34815
|
measure: Z.dragOverlay.measure
|
|
34816
|
-
}),
|
|
34816
|
+
}), uW = lW.nodeRef.current ?? tW, dW = w ? lW.rect ?? aW : null, fW = !!(lW.nodeRef.current && lW.rect), pW = useRectDelta(fW ? null : aW), mW = useWindowRect(uW ? getWindow(uW) : null), hW = useScrollableAncestors(w ? cW ?? tW : null), gW = useRects(hW), _W = applyModifiers(m, {
|
|
34817
34817
|
transform: {
|
|
34818
|
-
x: O.x -
|
|
34819
|
-
y: O.y -
|
|
34818
|
+
x: O.x - pW.x,
|
|
34819
|
+
y: O.y - pW.y,
|
|
34820
34820
|
scaleX: 1,
|
|
34821
34821
|
scaleY: 1
|
|
34822
34822
|
},
|
|
34823
34823
|
activatorEvent: H,
|
|
34824
34824
|
active: L,
|
|
34825
|
-
activeNodeRect:
|
|
34826
|
-
containerNodeRect:
|
|
34827
|
-
draggingNodeRect:
|
|
34828
|
-
over:
|
|
34829
|
-
overlayNodeRect:
|
|
34830
|
-
scrollableAncestors:
|
|
34831
|
-
scrollableAncestorRects:
|
|
34832
|
-
windowRect:
|
|
34833
|
-
}),
|
|
34834
|
-
|
|
34835
|
-
]),
|
|
34825
|
+
activeNodeRect: aW,
|
|
34826
|
+
containerNodeRect: oW,
|
|
34827
|
+
draggingNodeRect: dW,
|
|
34828
|
+
over: sW.current.over,
|
|
34829
|
+
overlayNodeRect: lW.rect,
|
|
34830
|
+
scrollableAncestors: hW,
|
|
34831
|
+
scrollableAncestorRects: gW,
|
|
34832
|
+
windowRect: mW
|
|
34833
|
+
}), vW = nW ? add(nW, O) : null, yW = useScrollOffsets(hW), bW = useScrollOffsetsDelta(yW), xW = useScrollOffsetsDelta(yW, [
|
|
34834
|
+
aW
|
|
34835
|
+
]), SW = add(_W, bW), CW = dW ? getAdjustedRect(dW, _W) : null, wW = L && CW ? f({
|
|
34836
34836
|
active: L,
|
|
34837
|
-
collisionRect:
|
|
34838
|
-
droppableRects:
|
|
34839
|
-
droppableContainers:
|
|
34840
|
-
pointerCoordinates:
|
|
34841
|
-
}) : null,
|
|
34837
|
+
collisionRect: CW,
|
|
34838
|
+
droppableRects: QU,
|
|
34839
|
+
droppableContainers: ZU,
|
|
34840
|
+
pointerCoordinates: vW
|
|
34841
|
+
}) : null, TW = getFirstCollision(wW, "id"), [EW, DW] = (0, import_react.useState)(null), OW = adjustScale(fW ? _W : add(_W, xW), (EW == null ? void 0 : EW.rect) ?? null, aW), kW = (0, import_react.useRef)(null), AW = (0, import_react.useCallback)((e2, r2) => {
|
|
34842
34842
|
let { sensor: c2, options: l2 } = r2;
|
|
34843
34843
|
if (R.current == null) return;
|
|
34844
34844
|
let u2 = E.get(R.current);
|
|
34845
34845
|
if (!u2) return;
|
|
34846
34846
|
let d2 = e2.nativeEvent;
|
|
34847
|
-
|
|
34847
|
+
kW.current = new c2({
|
|
34848
34848
|
active: R.current,
|
|
34849
34849
|
activeNode: u2,
|
|
34850
34850
|
event: d2,
|
|
34851
34851
|
options: l2,
|
|
34852
|
-
context:
|
|
34852
|
+
context: sW,
|
|
34853
34853
|
onAbort(e3) {
|
|
34854
34854
|
if (!E.get(e3)) return;
|
|
34855
34855
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -34894,7 +34894,7 @@ ${c}
|
|
|
34894
34894
|
}), v({
|
|
34895
34895
|
type: "onDragStart",
|
|
34896
34896
|
event: u3
|
|
34897
|
-
}), B(
|
|
34897
|
+
}), B(kW.current), W(d2);
|
|
34898
34898
|
});
|
|
34899
34899
|
},
|
|
34900
34900
|
onMove(e3) {
|
|
@@ -34908,7 +34908,7 @@ ${c}
|
|
|
34908
34908
|
});
|
|
34909
34909
|
function f2(e3) {
|
|
34910
34910
|
return async function() {
|
|
34911
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
34911
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = sW.current, f3 = null;
|
|
34912
34912
|
if (r3 && u3) {
|
|
34913
34913
|
let { cancelDrop: p2 } = G.current;
|
|
34914
34914
|
f3 = {
|
|
@@ -34922,7 +34922,7 @@ ${c}
|
|
|
34922
34922
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34923
34923
|
_({
|
|
34924
34924
|
type: e3
|
|
34925
|
-
}), S(Status.Uninitialized),
|
|
34925
|
+
}), S(Status.Uninitialized), DW(null), B(null), W(null), kW.current = null;
|
|
34926
34926
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
34927
34927
|
if (f3) {
|
|
34928
34928
|
let e4 = G.current[r4];
|
|
@@ -34936,7 +34936,7 @@ ${c}
|
|
|
34936
34936
|
}
|
|
34937
34937
|
}, [
|
|
34938
34938
|
E
|
|
34939
|
-
]),
|
|
34939
|
+
]), jW = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
34940
34940
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
34941
34941
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
34942
34942
|
let f2 = {
|
|
@@ -34944,26 +34944,26 @@ ${c}
|
|
|
34944
34944
|
};
|
|
34945
34945
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
34946
34946
|
capturedBy: r2.sensor
|
|
34947
|
-
}, R.current = l2,
|
|
34947
|
+
}, R.current = l2, AW(c2, r2));
|
|
34948
34948
|
}, [
|
|
34949
34949
|
E,
|
|
34950
|
-
|
|
34950
|
+
AW
|
|
34951
34951
|
]));
|
|
34952
34952
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
34953
|
-
|
|
34953
|
+
aW && b === Status.Initializing && S(Status.Initialized);
|
|
34954
34954
|
}, [
|
|
34955
|
-
|
|
34955
|
+
aW,
|
|
34956
34956
|
b
|
|
34957
34957
|
]), (0, import_react.useEffect)(() => {
|
|
34958
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
34958
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = sW.current;
|
|
34959
34959
|
if (!r2 || !c2) return;
|
|
34960
34960
|
let d2 = {
|
|
34961
34961
|
active: r2,
|
|
34962
34962
|
activatorEvent: c2,
|
|
34963
34963
|
collisions: l2,
|
|
34964
34964
|
delta: {
|
|
34965
|
-
x:
|
|
34966
|
-
y:
|
|
34965
|
+
x: SW.x,
|
|
34966
|
+
y: SW.y
|
|
34967
34967
|
},
|
|
34968
34968
|
over: u2
|
|
34969
34969
|
};
|
|
@@ -34974,12 +34974,12 @@ ${c}
|
|
|
34974
34974
|
});
|
|
34975
34975
|
});
|
|
34976
34976
|
}, [
|
|
34977
|
-
|
|
34978
|
-
|
|
34977
|
+
SW.x,
|
|
34978
|
+
SW.y
|
|
34979
34979
|
]), (0, import_react.useEffect)(() => {
|
|
34980
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
34980
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = sW.current;
|
|
34981
34981
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
34982
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
34982
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(TW), p2 = f2 && f2.rect.current ? {
|
|
34983
34983
|
id: f2.id,
|
|
34984
34984
|
rect: f2.rect.current,
|
|
34985
34985
|
data: f2.data,
|
|
@@ -34995,127 +34995,127 @@ ${c}
|
|
|
34995
34995
|
over: p2
|
|
34996
34996
|
};
|
|
34997
34997
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34998
|
-
|
|
34998
|
+
DW(p2), d2 == null ? void 0 : d2(m2), v({
|
|
34999
34999
|
type: "onDragOver",
|
|
35000
35000
|
event: m2
|
|
35001
35001
|
});
|
|
35002
35002
|
});
|
|
35003
35003
|
}, [
|
|
35004
|
-
|
|
35004
|
+
TW
|
|
35005
35005
|
]), useIsomorphicLayoutEffect(() => {
|
|
35006
|
-
|
|
35006
|
+
sW.current = {
|
|
35007
35007
|
activatorEvent: H,
|
|
35008
35008
|
active: L,
|
|
35009
|
-
activeNode:
|
|
35010
|
-
collisionRect:
|
|
35011
|
-
collisions:
|
|
35012
|
-
droppableRects:
|
|
35009
|
+
activeNode: tW,
|
|
35010
|
+
collisionRect: CW,
|
|
35011
|
+
collisions: wW,
|
|
35012
|
+
droppableRects: QU,
|
|
35013
35013
|
draggableNodes: E,
|
|
35014
|
-
draggingNode:
|
|
35015
|
-
draggingNodeRect:
|
|
35014
|
+
draggingNode: uW,
|
|
35015
|
+
draggingNodeRect: dW,
|
|
35016
35016
|
droppableContainers: j,
|
|
35017
|
-
over:
|
|
35018
|
-
scrollableAncestors:
|
|
35019
|
-
scrollAdjustedTranslate:
|
|
35017
|
+
over: EW,
|
|
35018
|
+
scrollableAncestors: hW,
|
|
35019
|
+
scrollAdjustedTranslate: SW
|
|
35020
35020
|
}, I.current = {
|
|
35021
|
-
initial:
|
|
35022
|
-
translated:
|
|
35021
|
+
initial: dW,
|
|
35022
|
+
translated: CW
|
|
35023
35023
|
};
|
|
35024
35024
|
}, [
|
|
35025
35025
|
L,
|
|
35026
|
-
GU,
|
|
35027
|
-
mW,
|
|
35028
|
-
pW,
|
|
35029
|
-
E,
|
|
35030
|
-
eW,
|
|
35031
35026
|
tW,
|
|
35032
|
-
|
|
35027
|
+
wW,
|
|
35028
|
+
CW,
|
|
35029
|
+
E,
|
|
35030
|
+
uW,
|
|
35031
|
+
dW,
|
|
35032
|
+
QU,
|
|
35033
35033
|
j,
|
|
35034
|
-
|
|
35035
|
-
|
|
35036
|
-
|
|
35034
|
+
EW,
|
|
35035
|
+
hW,
|
|
35036
|
+
SW
|
|
35037
35037
|
]), useAutoScroller({
|
|
35038
|
-
...
|
|
35038
|
+
...rW,
|
|
35039
35039
|
delta: O,
|
|
35040
|
-
draggingRect:
|
|
35041
|
-
pointerCoordinates:
|
|
35042
|
-
scrollableAncestors:
|
|
35043
|
-
scrollableAncestorRects:
|
|
35040
|
+
draggingRect: CW,
|
|
35041
|
+
pointerCoordinates: vW,
|
|
35042
|
+
scrollableAncestors: hW,
|
|
35043
|
+
scrollableAncestorRects: gW
|
|
35044
35044
|
});
|
|
35045
|
-
let
|
|
35045
|
+
let MW = (0, import_react.useMemo)(() => ({
|
|
35046
35046
|
active: L,
|
|
35047
|
-
activeNode:
|
|
35048
|
-
activeNodeRect:
|
|
35047
|
+
activeNode: tW,
|
|
35048
|
+
activeNodeRect: aW,
|
|
35049
35049
|
activatorEvent: H,
|
|
35050
|
-
collisions:
|
|
35051
|
-
containerNodeRect:
|
|
35052
|
-
dragOverlay:
|
|
35050
|
+
collisions: wW,
|
|
35051
|
+
containerNodeRect: oW,
|
|
35052
|
+
dragOverlay: lW,
|
|
35053
35053
|
draggableNodes: E,
|
|
35054
35054
|
droppableContainers: j,
|
|
35055
|
-
droppableRects:
|
|
35056
|
-
over:
|
|
35057
|
-
measureDroppableContainers:
|
|
35058
|
-
scrollableAncestors:
|
|
35059
|
-
scrollableAncestorRects:
|
|
35055
|
+
droppableRects: QU,
|
|
35056
|
+
over: EW,
|
|
35057
|
+
measureDroppableContainers: $U,
|
|
35058
|
+
scrollableAncestors: hW,
|
|
35059
|
+
scrollableAncestorRects: gW,
|
|
35060
35060
|
measuringConfiguration: Z,
|
|
35061
|
-
measuringScheduled:
|
|
35062
|
-
windowRect:
|
|
35061
|
+
measuringScheduled: eW,
|
|
35062
|
+
windowRect: mW
|
|
35063
35063
|
}), [
|
|
35064
35064
|
L,
|
|
35065
|
-
|
|
35066
|
-
|
|
35065
|
+
tW,
|
|
35066
|
+
aW,
|
|
35067
35067
|
H,
|
|
35068
|
-
|
|
35069
|
-
|
|
35070
|
-
|
|
35068
|
+
wW,
|
|
35069
|
+
oW,
|
|
35070
|
+
lW,
|
|
35071
35071
|
E,
|
|
35072
35072
|
j,
|
|
35073
|
-
|
|
35073
|
+
QU,
|
|
35074
|
+
EW,
|
|
35075
|
+
$U,
|
|
35076
|
+
hW,
|
|
35074
35077
|
gW,
|
|
35075
|
-
UU,
|
|
35076
|
-
aW,
|
|
35077
|
-
oW,
|
|
35078
35078
|
Z,
|
|
35079
|
-
|
|
35080
|
-
|
|
35081
|
-
]),
|
|
35079
|
+
eW,
|
|
35080
|
+
mW
|
|
35081
|
+
]), NW = (0, import_react.useMemo)(() => ({
|
|
35082
35082
|
activatorEvent: H,
|
|
35083
|
-
activators:
|
|
35083
|
+
activators: jW,
|
|
35084
35084
|
active: L,
|
|
35085
|
-
activeNodeRect:
|
|
35085
|
+
activeNodeRect: aW,
|
|
35086
35086
|
ariaDescribedById: {
|
|
35087
35087
|
draggable: q
|
|
35088
35088
|
},
|
|
35089
35089
|
dispatch: _,
|
|
35090
35090
|
draggableNodes: E,
|
|
35091
|
-
over:
|
|
35092
|
-
measureDroppableContainers:
|
|
35091
|
+
over: EW,
|
|
35092
|
+
measureDroppableContainers: $U
|
|
35093
35093
|
}), [
|
|
35094
35094
|
H,
|
|
35095
|
-
|
|
35095
|
+
jW,
|
|
35096
35096
|
L,
|
|
35097
|
-
|
|
35097
|
+
aW,
|
|
35098
35098
|
_,
|
|
35099
35099
|
q,
|
|
35100
35100
|
E,
|
|
35101
|
-
|
|
35102
|
-
|
|
35101
|
+
EW,
|
|
35102
|
+
$U
|
|
35103
35103
|
]);
|
|
35104
35104
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
35105
35105
|
value: y
|
|
35106
35106
|
}, import_react.createElement(InternalContext.Provider, {
|
|
35107
|
-
value:
|
|
35107
|
+
value: NW
|
|
35108
35108
|
}, import_react.createElement(PublicContext.Provider, {
|
|
35109
|
-
value:
|
|
35109
|
+
value: MW
|
|
35110
35110
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
35111
|
-
value:
|
|
35111
|
+
value: OW
|
|
35112
35112
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
35113
35113
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35114
35114
|
})), import_react.createElement(Accessibility, {
|
|
35115
35115
|
...c,
|
|
35116
35116
|
hiddenTextDescribedById: q
|
|
35117
35117
|
}));
|
|
35118
|
-
function
|
|
35118
|
+
function PW() {
|
|
35119
35119
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
35120
35120
|
return typeof l == "object" ? {
|
|
35121
35121
|
...l,
|
|
@@ -35643,7 +35643,7 @@ ${c}
|
|
|
35643
35643
|
updateMeasurementsFor: I,
|
|
35644
35644
|
...m
|
|
35645
35645
|
}
|
|
35646
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
35646
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: ZU, listeners: Z, isDragging: QU, over: $U, setActivatorNodeRef: eW, transform: tW } = useDraggable({
|
|
35647
35647
|
id: f,
|
|
35648
35648
|
data: M,
|
|
35649
35649
|
attributes: {
|
|
@@ -35651,60 +35651,60 @@ ${c}
|
|
|
35651
35651
|
...c
|
|
35652
35652
|
},
|
|
35653
35653
|
disabled: O.draggable
|
|
35654
|
-
}),
|
|
35654
|
+
}), nW = useCombinedRefs(B, ZU), rW = !!H, iW = rW && !b && isValidIndex(v) && isValidIndex(w), aW = !T && QU, oW = iW ? (aW && iW ? tW : null) ?? (p ?? E)({
|
|
35655
35655
|
rects: S,
|
|
35656
35656
|
activeNodeRect: G,
|
|
35657
35657
|
activeIndex: v,
|
|
35658
35658
|
overIndex: w,
|
|
35659
35659
|
index: j
|
|
35660
|
-
}) : null,
|
|
35660
|
+
}) : null, sW = isValidIndex(v) && isValidIndex(w) ? d({
|
|
35661
35661
|
id: f,
|
|
35662
35662
|
items: g,
|
|
35663
35663
|
activeIndex: v,
|
|
35664
35664
|
overIndex: w
|
|
35665
|
-
}) : j,
|
|
35666
|
-
activeId:
|
|
35665
|
+
}) : j, cW = H == null ? void 0 : H.id, lW = (0, import_react.useRef)({
|
|
35666
|
+
activeId: cW,
|
|
35667
35667
|
items: g,
|
|
35668
|
-
newIndex:
|
|
35668
|
+
newIndex: sW,
|
|
35669
35669
|
containerId: _
|
|
35670
|
-
}),
|
|
35670
|
+
}), uW = g !== lW.current.items, dW = r({
|
|
35671
35671
|
active: H,
|
|
35672
35672
|
containerId: _,
|
|
35673
|
-
isDragging:
|
|
35674
|
-
isSorting:
|
|
35673
|
+
isDragging: QU,
|
|
35674
|
+
isSorting: rW,
|
|
35675
35675
|
id: f,
|
|
35676
35676
|
index: j,
|
|
35677
35677
|
items: g,
|
|
35678
|
-
newIndex:
|
|
35679
|
-
previousItems:
|
|
35680
|
-
previousContainerId:
|
|
35678
|
+
newIndex: lW.current.newIndex,
|
|
35679
|
+
previousItems: lW.current.items,
|
|
35680
|
+
previousContainerId: lW.current.containerId,
|
|
35681
35681
|
transition: h,
|
|
35682
|
-
wasDragging:
|
|
35683
|
-
}),
|
|
35684
|
-
disabled: !
|
|
35682
|
+
wasDragging: lW.current.activeId != null
|
|
35683
|
+
}), fW = useDerivedTransform({
|
|
35684
|
+
disabled: !dW,
|
|
35685
35685
|
index: j,
|
|
35686
35686
|
node: R,
|
|
35687
35687
|
rect: L
|
|
35688
35688
|
});
|
|
35689
35689
|
return (0, import_react.useEffect)(() => {
|
|
35690
|
-
|
|
35690
|
+
rW && lW.current.newIndex !== sW && (lW.current.newIndex = sW), _ !== lW.current.containerId && (lW.current.containerId = _), g !== lW.current.items && (lW.current.items = g);
|
|
35691
35691
|
}, [
|
|
35692
|
-
|
|
35693
|
-
|
|
35692
|
+
rW,
|
|
35693
|
+
sW,
|
|
35694
35694
|
_,
|
|
35695
35695
|
g
|
|
35696
35696
|
]), (0, import_react.useEffect)(() => {
|
|
35697
|
-
if (
|
|
35698
|
-
if (
|
|
35699
|
-
|
|
35697
|
+
if (cW === lW.current.activeId) return;
|
|
35698
|
+
if (cW != null && lW.current.activeId == null) {
|
|
35699
|
+
lW.current.activeId = cW;
|
|
35700
35700
|
return;
|
|
35701
35701
|
}
|
|
35702
35702
|
let e2 = setTimeout(() => {
|
|
35703
|
-
|
|
35703
|
+
lW.current.activeId = cW;
|
|
35704
35704
|
}, 50);
|
|
35705
35705
|
return () => clearTimeout(e2);
|
|
35706
35706
|
}, [
|
|
35707
|
-
|
|
35707
|
+
cW
|
|
35708
35708
|
]), {
|
|
35709
35709
|
active: H,
|
|
35710
35710
|
activeIndex: v,
|
|
@@ -35712,25 +35712,25 @@ ${c}
|
|
|
35712
35712
|
data: M,
|
|
35713
35713
|
rect: L,
|
|
35714
35714
|
index: j,
|
|
35715
|
-
newIndex:
|
|
35715
|
+
newIndex: sW,
|
|
35716
35716
|
items: g,
|
|
35717
35717
|
isOver: z,
|
|
35718
|
-
isSorting:
|
|
35719
|
-
isDragging:
|
|
35718
|
+
isSorting: rW,
|
|
35719
|
+
isDragging: QU,
|
|
35720
35720
|
listeners: Z,
|
|
35721
35721
|
node: R,
|
|
35722
35722
|
overIndex: w,
|
|
35723
|
-
over:
|
|
35724
|
-
setNodeRef:
|
|
35725
|
-
setActivatorNodeRef:
|
|
35723
|
+
over: $U,
|
|
35724
|
+
setNodeRef: nW,
|
|
35725
|
+
setActivatorNodeRef: eW,
|
|
35726
35726
|
setDroppableNodeRef: B,
|
|
35727
|
-
setDraggableNodeRef:
|
|
35728
|
-
transform:
|
|
35729
|
-
transition:
|
|
35727
|
+
setDraggableNodeRef: ZU,
|
|
35728
|
+
transform: fW ?? oW,
|
|
35729
|
+
transition: pW()
|
|
35730
35730
|
};
|
|
35731
|
-
function
|
|
35732
|
-
if (
|
|
35733
|
-
if (!(
|
|
35731
|
+
function pW() {
|
|
35732
|
+
if (fW || uW && lW.current.newIndex === j) return disabledTransition;
|
|
35733
|
+
if (!(aW && !isKeyboardEvent(W) || !h) && (rW || dW)) return CSS$1.Transition.toString({
|
|
35734
35734
|
...h,
|
|
35735
35735
|
property: transitionProperty
|
|
35736
35736
|
});
|
|
@@ -36030,15 +36030,15 @@ ${c}
|
|
|
36030
36030
|
G
|
|
36031
36031
|
]
|
|
36032
36032
|
}), r[35] = c.id, r[36] = h, r[37] = y, r[38] = b, r[39] = I, r[40] = z, r[41] = B, r[42] = H, r[43] = W, r[44] = G, r[45] = q) : q = r[45];
|
|
36033
|
-
let
|
|
36034
|
-
if (!v && !g) return
|
|
36033
|
+
let ZU = q;
|
|
36034
|
+
if (!v && !g) return ZU;
|
|
36035
36035
|
let Z;
|
|
36036
|
-
r[46] ===
|
|
36036
|
+
r[46] === ZU ? Z = r[47] : (Z = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
36037
36037
|
asChild: true,
|
|
36038
|
-
children:
|
|
36039
|
-
}), r[46] =
|
|
36040
|
-
let
|
|
36041
|
-
r[48] === v ?
|
|
36038
|
+
children: ZU
|
|
36039
|
+
}), r[46] = ZU, r[47] = Z);
|
|
36040
|
+
let QU;
|
|
36041
|
+
r[48] === v ? QU = r[49] : (QU = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36042
36042
|
onSelect: v,
|
|
36043
36043
|
children: [
|
|
36044
36044
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -36046,11 +36046,11 @@ ${c}
|
|
|
36046
36046
|
}),
|
|
36047
36047
|
"Add cell"
|
|
36048
36048
|
]
|
|
36049
|
-
}), r[48] = v, r[49] =
|
|
36050
|
-
let
|
|
36051
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
36052
|
-
let
|
|
36053
|
-
r[51] === g ?
|
|
36049
|
+
}), r[48] = v, r[49] = QU);
|
|
36050
|
+
let $U;
|
|
36051
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($U = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = $U) : $U = r[50];
|
|
36052
|
+
let tW;
|
|
36053
|
+
r[51] === g ? tW = r[52] : (tW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36054
36054
|
variant: "danger",
|
|
36055
36055
|
onSelect: g,
|
|
36056
36056
|
children: [
|
|
@@ -36059,22 +36059,22 @@ ${c}
|
|
|
36059
36059
|
}),
|
|
36060
36060
|
"Delete cell"
|
|
36061
36061
|
]
|
|
36062
|
-
}), r[51] = g, r[52] =
|
|
36063
|
-
let
|
|
36064
|
-
r[53] !==
|
|
36062
|
+
}), r[51] = g, r[52] = tW);
|
|
36063
|
+
let nW;
|
|
36064
|
+
r[53] !== QU || r[54] !== tW ? (nW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
36065
36065
|
children: [
|
|
36066
|
-
|
|
36067
|
-
|
|
36068
|
-
|
|
36066
|
+
QU,
|
|
36067
|
+
$U,
|
|
36068
|
+
tW
|
|
36069
36069
|
]
|
|
36070
|
-
}), r[53] =
|
|
36071
|
-
let
|
|
36072
|
-
return r[56] !== Z || r[57] !==
|
|
36070
|
+
}), r[53] = QU, r[54] = tW, r[55] = nW) : nW = r[55];
|
|
36071
|
+
let rW;
|
|
36072
|
+
return r[56] !== Z || r[57] !== nW ? (rW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
36073
36073
|
children: [
|
|
36074
36074
|
Z,
|
|
36075
|
-
|
|
36075
|
+
nW
|
|
36076
36076
|
]
|
|
36077
|
-
}), r[56] = Z, r[57] =
|
|
36077
|
+
}), r[56] = Z, r[57] = nW, r[58] = rW) : rW = r[58], rW;
|
|
36078
36078
|
}, InsertCellLine = (e) => {
|
|
36079
36079
|
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;
|
|
36080
36080
|
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);
|
|
@@ -36128,10 +36128,10 @@ ${c}
|
|
|
36128
36128
|
...B,
|
|
36129
36129
|
...h
|
|
36130
36130
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
36131
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
36132
|
-
r[25] !== l || r[26] !==
|
|
36133
|
-
let
|
|
36134
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
36131
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", ZU = w && !T && "opacity-35", Z = T && "opacity-95 shadow-lg", QU;
|
|
36132
|
+
r[25] !== l || r[26] !== ZU || r[27] !== Z || r[28] !== q ? (QU = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, ZU, Z, l), r[25] = l, r[26] = ZU, r[27] = Z, r[28] = q, r[29] = QU) : QU = r[29];
|
|
36133
|
+
let $U;
|
|
36134
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? ($U = G && (0, import_jsx_runtime.jsx)("div", {
|
|
36135
36135
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
36136
36136
|
style: {
|
|
36137
36137
|
transform: `scale(${I})`,
|
|
@@ -36146,14 +36146,14 @@ ${c}
|
|
|
36146
36146
|
status: c.status,
|
|
36147
36147
|
output: c.output
|
|
36148
36148
|
})
|
|
36149
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
36150
|
-
let
|
|
36151
|
-
r[37] === z ?
|
|
36149
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = $U) : $U = r[36];
|
|
36150
|
+
let eW;
|
|
36151
|
+
r[37] === z ? eW = r[38] : (eW = z && (0, import_jsx_runtime.jsx)("div", {
|
|
36152
36152
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
36153
36153
|
"aria-hidden": true
|
|
36154
|
-
}), r[37] = z, r[38] =
|
|
36155
|
-
let
|
|
36156
|
-
r[39] !== z || r[40] !== R ? (
|
|
36154
|
+
}), r[37] = z, r[38] = eW);
|
|
36155
|
+
let tW;
|
|
36156
|
+
r[39] !== z || r[40] !== R ? (tW = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
36157
36157
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
36158
36158
|
className: "text-xs opacity-80",
|
|
36159
36159
|
children: R.description
|
|
@@ -36165,19 +36165,19 @@ ${c}
|
|
|
36165
36165
|
className: "h-3.5 w-3.5"
|
|
36166
36166
|
})
|
|
36167
36167
|
})
|
|
36168
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
36169
|
-
let
|
|
36170
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
36168
|
+
}), r[39] = z, r[40] = R, r[41] = tW) : tW = r[41];
|
|
36169
|
+
let nW;
|
|
36170
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== QU || r[46] !== $U || r[47] !== eW || r[48] !== tW ? (nW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36171
36171
|
ref: f,
|
|
36172
|
-
className:
|
|
36172
|
+
className: QU,
|
|
36173
36173
|
style: W,
|
|
36174
36174
|
...d,
|
|
36175
36175
|
children: [
|
|
36176
|
-
|
|
36177
|
-
|
|
36178
|
-
|
|
36176
|
+
$U,
|
|
36177
|
+
eW,
|
|
36178
|
+
tW
|
|
36179
36179
|
]
|
|
36180
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
36180
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = QU, r[46] = $U, r[47] = eW, r[48] = tW, r[49] = nW) : nW = r[49], nW;
|
|
36181
36181
|
}, MiniCodePreview = (e) => {
|
|
36182
36182
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
36183
36183
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -36217,7 +36217,7 @@ ${c}
|
|
|
36217
36217
|
function _temp2$2(e) {
|
|
36218
36218
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
36219
36219
|
}
|
|
36220
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36220
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-OEq7xNow.js"));
|
|
36221
36221
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36222
36222
|
var _a3;
|
|
36223
36223
|
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), [
|
|
@@ -36595,7 +36595,7 @@ ${c}
|
|
|
36595
36595
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36596
36596
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36597
36597
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36598
|
-
let H, W, G, q,
|
|
36598
|
+
let H, W, G, q, ZU, Z, QU, $U, eW, tW;
|
|
36599
36599
|
if (r[3] !== T || r[4] !== M || r[5] !== I || r[6] !== L || r[7] !== _ || r[8] !== b || r[9] !== d || r[10] !== z || r[11] !== O || r[12] !== j || r[13] !== E || r[14] !== R || r[15] !== f || r[16] !== u || r[17] !== y || r[18] !== m || r[19] !== l) {
|
|
36600
36600
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36601
36601
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36641,11 +36641,11 @@ ${c}
|
|
|
36641
36641
|
})
|
|
36642
36642
|
})
|
|
36643
36643
|
]
|
|
36644
|
-
}), 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",
|
|
36645
|
-
let
|
|
36646
|
-
r[40] !== M || r[41] !==
|
|
36644
|
+
}), 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", ZU = c, Z = R, QU = 0;
|
|
36645
|
+
let nW2 = y && "marimo-output-stale", rW2 = L ? "p-5" : "p-3";
|
|
36646
|
+
r[40] !== M || r[41] !== nW2 || r[42] !== rW2 ? ($U = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", nW2, rW2, M), r[40] = M, r[41] = nW2, r[42] = rW2, r[43] = $U) : $U = r[43], r[44] === d ? eW = r[45] : (eW = d ? {
|
|
36647
36647
|
maxHeight: "none"
|
|
36648
|
-
} : void 0, r[44] = d, r[45] =
|
|
36648
|
+
} : void 0, r[44] = d, r[45] = eW), tW = e2.map((e3, r2) => {
|
|
36649
36649
|
if (e3.channel === "pdb") return null;
|
|
36650
36650
|
if (e3.channel === "stdin") {
|
|
36651
36651
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -36674,36 +36674,36 @@ ${c}
|
|
|
36674
36674
|
wrapText: l
|
|
36675
36675
|
})
|
|
36676
36676
|
}, r2);
|
|
36677
|
-
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] =
|
|
36678
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
36679
|
-
let
|
|
36680
|
-
r[46] !== T || r[47] !== S ? (
|
|
36677
|
+
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = ZU, r[25] = Z, r[26] = QU, r[27] = $U, r[28] = eW, r[29] = tW;
|
|
36678
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], ZU = r[24], Z = r[25], QU = r[26], $U = r[27], eW = r[28], tW = r[29];
|
|
36679
|
+
let nW;
|
|
36680
|
+
r[46] !== T || r[47] !== S ? (nW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36681
36681
|
value: S,
|
|
36682
36682
|
cellId: T,
|
|
36683
36683
|
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"
|
|
36684
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
36685
|
-
let
|
|
36686
|
-
r[49] !==
|
|
36684
|
+
}), r[46] = T, r[47] = S, r[48] = nW) : nW = r[48];
|
|
36685
|
+
let rW;
|
|
36686
|
+
r[49] !== nW || r[50] !== G || r[51] !== q || r[52] !== ZU || r[53] !== Z || r[54] !== QU || r[55] !== $U || r[56] !== eW || r[57] !== tW ? (rW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36687
36687
|
title: G,
|
|
36688
36688
|
"data-testid": q,
|
|
36689
|
-
ref:
|
|
36689
|
+
ref: ZU,
|
|
36690
36690
|
...Z,
|
|
36691
|
-
tabIndex:
|
|
36692
|
-
className:
|
|
36693
|
-
style:
|
|
36691
|
+
tabIndex: QU,
|
|
36692
|
+
className: $U,
|
|
36693
|
+
style: eW,
|
|
36694
36694
|
children: [
|
|
36695
|
-
|
|
36696
|
-
|
|
36695
|
+
tW,
|
|
36696
|
+
nW
|
|
36697
36697
|
]
|
|
36698
|
-
}), r[49] =
|
|
36699
|
-
let
|
|
36700
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
36698
|
+
}), r[49] = nW, r[50] = G, r[51] = q, r[52] = ZU, r[53] = Z, r[54] = QU, r[55] = $U, r[56] = eW, r[57] = tW, r[58] = rW) : rW = r[58];
|
|
36699
|
+
let iW;
|
|
36700
|
+
return r[59] !== H || r[60] !== W || r[61] !== rW ? (iW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36701
36701
|
className: H,
|
|
36702
36702
|
children: [
|
|
36703
36703
|
W,
|
|
36704
|
-
|
|
36704
|
+
rW
|
|
36705
36705
|
]
|
|
36706
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
36706
|
+
}), r[59] = H, r[60] = W, r[61] = rW, r[62] = iW) : iW = r[62], iW;
|
|
36707
36707
|
}, StdInput = (e) => {
|
|
36708
36708
|
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;
|
|
36709
36709
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -37167,23 +37167,23 @@ ${c}
|
|
|
37167
37167
|
if ((h || _ || m || W) && !G) return null;
|
|
37168
37168
|
let q;
|
|
37169
37169
|
r[43] !== d || r[44] !== T ? (q = cellDomProps(d, T), r[43] = d, r[44] = T, r[45] = q) : q = r[45];
|
|
37170
|
-
let
|
|
37171
|
-
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !==
|
|
37172
|
-
allowExpand:
|
|
37170
|
+
let ZU = w === "edit", Z;
|
|
37171
|
+
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !== ZU ? (Z = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37172
|
+
allowExpand: ZU,
|
|
37173
37173
|
output: c,
|
|
37174
37174
|
className: CSSClasses.outputArea,
|
|
37175
37175
|
cellId: d,
|
|
37176
37176
|
stale: I,
|
|
37177
37177
|
loading: R
|
|
37178
|
-
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] =
|
|
37179
|
-
let
|
|
37180
|
-
return r[52] !== H || r[53] !== q || r[54] !== Z ? (
|
|
37178
|
+
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] = ZU, r[51] = Z) : Z = r[51];
|
|
37179
|
+
let QU;
|
|
37180
|
+
return r[52] !== H || r[53] !== q || r[54] !== Z ? (QU = (0, import_jsx_runtime.jsx)("div", {
|
|
37181
37181
|
tabIndex: -1,
|
|
37182
37182
|
ref: j,
|
|
37183
37183
|
className: H,
|
|
37184
37184
|
...q,
|
|
37185
37185
|
children: Z
|
|
37186
|
-
}), r[52] = H, r[53] = q, r[54] = Z, r[55] =
|
|
37186
|
+
}), r[52] = H, r[53] = q, r[54] = Z, r[55] = QU) : QU = r[55], QU;
|
|
37187
37187
|
});
|
|
37188
37188
|
VerticalCell.displayName = "VerticalCell";
|
|
37189
37189
|
const VerticalLayoutPlugin = {
|
|
@@ -37412,8 +37412,10 @@ ${c}
|
|
|
37412
37412
|
}
|
|
37413
37413
|
};
|
|
37414
37414
|
function parseMarimoIslandApps(e = document) {
|
|
37415
|
-
let r =
|
|
37416
|
-
|
|
37415
|
+
let r = [
|
|
37416
|
+
...e.querySelectorAll(ISLAND_TAG_NAMES.ISLAND)
|
|
37417
|
+
], c = parseMarimoIslandPayloads(e);
|
|
37418
|
+
return r.length === 0 ? (Logger.warn("No embedded marimo apps found."), []) : c.length > 0 ? parsePayloadBackedApps(r, c) : parseIslandElementsIntoApps(r);
|
|
37417
37419
|
}
|
|
37418
37420
|
function parseIslandElementsIntoApps(e) {
|
|
37419
37421
|
let r = /* @__PURE__ */ new Map();
|
|
@@ -37429,11 +37431,12 @@ ${c}
|
|
|
37429
37431
|
Logger.warn(`Embedded marimo app ${e2} missing cell output or code.`);
|
|
37430
37432
|
continue;
|
|
37431
37433
|
}
|
|
37432
|
-
|
|
37434
|
+
let u = r.get(e2);
|
|
37435
|
+
u || (u = {
|
|
37433
37436
|
id: e2,
|
|
37434
37437
|
cells: []
|
|
37435
|
-
});
|
|
37436
|
-
let
|
|
37438
|
+
}, r.set(e2, u));
|
|
37439
|
+
let f = u.cells.length;
|
|
37437
37440
|
u.cells.push({
|
|
37438
37441
|
output: l.output,
|
|
37439
37442
|
code: l.code,
|
|
@@ -37444,6 +37447,68 @@ ${c}
|
|
|
37444
37447
|
...r.values()
|
|
37445
37448
|
];
|
|
37446
37449
|
}
|
|
37450
|
+
function parsePayloadBackedApps(e, r) {
|
|
37451
|
+
let c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Set(), d = [];
|
|
37452
|
+
for (let c2 of r) {
|
|
37453
|
+
let r2 = false;
|
|
37454
|
+
for (let d2 of c2.cells) {
|
|
37455
|
+
let f2 = findMatchingIsland({
|
|
37456
|
+
embeds: e,
|
|
37457
|
+
appId: c2.appId,
|
|
37458
|
+
cell: d2,
|
|
37459
|
+
consumedEmbeds: u
|
|
37460
|
+
});
|
|
37461
|
+
f2 && (u.add(f2), l.set(d2, f2), materializeIslandPayload(f2, d2), r2 = true);
|
|
37462
|
+
}
|
|
37463
|
+
r2 && d.push(c2);
|
|
37464
|
+
}
|
|
37465
|
+
let f = new Set(d.map((e2) => e2.appId)), p = new Set(d.filter((e2) => e2.cells.some((e3) => e3.reactive)).map((e2) => e2.appId));
|
|
37466
|
+
for (let e2 of d) for (let r2 of e2.cells) {
|
|
37467
|
+
let u2 = l.get(r2);
|
|
37468
|
+
if (!p.has(e2.appId)) continue;
|
|
37469
|
+
let d2 = c.get(e2.appId);
|
|
37470
|
+
d2 || (d2 = {
|
|
37471
|
+
id: e2.appId,
|
|
37472
|
+
payloadBacked: true,
|
|
37473
|
+
cells: []
|
|
37474
|
+
}, c.set(e2.appId, d2));
|
|
37475
|
+
let f2 = d2.cells.length, m2 = {
|
|
37476
|
+
cellId: r2.cellId,
|
|
37477
|
+
output: r2.outputHtml,
|
|
37478
|
+
code: r2.reactive ? r2.code : "",
|
|
37479
|
+
idx: f2
|
|
37480
|
+
};
|
|
37481
|
+
r2.reactive || (m2.disabled = true), d2.cells.push(m2), r2.reactive && (u2 == null ? void 0 : u2.setAttribute(ISLAND_DATA_ATTRIBUTES.CELL_IDX, f2.toString()));
|
|
37482
|
+
}
|
|
37483
|
+
for (let r2 of e) {
|
|
37484
|
+
let e2 = r2.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID);
|
|
37485
|
+
e2 && f.has(e2) && !u.has(r2) && (r2.removeAttribute(ISLAND_DATA_ATTRIBUTES.CELL_ID), r2.removeAttribute(ISLAND_DATA_ATTRIBUTES.CELL_IDX), r2.setAttribute(ISLAND_DATA_ATTRIBUTES.REACTIVE, "false"));
|
|
37486
|
+
}
|
|
37487
|
+
let m = e.filter((e2) => {
|
|
37488
|
+
let r2 = e2.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID);
|
|
37489
|
+
return !r2 || !f.has(r2);
|
|
37490
|
+
});
|
|
37491
|
+
return [
|
|
37492
|
+
...c.values(),
|
|
37493
|
+
...parseIslandElementsIntoApps(m)
|
|
37494
|
+
];
|
|
37495
|
+
}
|
|
37496
|
+
function findMatchingIsland({ embeds: e, appId: r, cell: c, consumedEmbeds: l }) {
|
|
37497
|
+
return e.find((e2) => l.has(e2) ? false : e2.getAttribute(ISLAND_DATA_ATTRIBUTES.APP_ID) === r && e2.getAttribute(ISLAND_DATA_ATTRIBUTES.CELL_ID) === c.cellId);
|
|
37498
|
+
}
|
|
37499
|
+
function materializeIslandPayload(e, r) {
|
|
37500
|
+
e.setAttribute(ISLAND_DATA_ATTRIBUTES.REACTIVE, JSON.stringify(r.reactive)), e.removeAttribute(ISLAND_DATA_ATTRIBUTES.CELL_ID), r.reactive || e.removeAttribute(ISLAND_DATA_ATTRIBUTES.CELL_IDX);
|
|
37501
|
+
let c = ensureIslandChild(e, ISLAND_TAG_NAMES.CELL_OUTPUT);
|
|
37502
|
+
c.innerHTML = r.displayOutput ? r.outputHtml : "";
|
|
37503
|
+
let l = ensureIslandChild(e, ISLAND_TAG_NAMES.CELL_CODE);
|
|
37504
|
+
l.hidden = true, l.textContent = encodeURIComponent(r.code);
|
|
37505
|
+
let u = e.querySelector(ISLAND_TAG_NAMES.CODE_EDITOR);
|
|
37506
|
+
u && u.setAttribute("data-initial-value", JSON.stringify(r.code));
|
|
37507
|
+
}
|
|
37508
|
+
function ensureIslandChild(e, r) {
|
|
37509
|
+
let c = e.querySelector(r);
|
|
37510
|
+
return c || (c = e.ownerDocument.createElement(r), e.appendChild(c)), c;
|
|
37511
|
+
}
|
|
37447
37512
|
function parseIslandElement(e) {
|
|
37448
37513
|
let r = e.querySelector(ISLAND_TAG_NAMES.CELL_OUTPUT), c = extractIslandCodeFromEmbed(e);
|
|
37449
37514
|
return !r || !c ? null : {
|
|
@@ -37456,10 +37521,10 @@ ${c}
|
|
|
37456
37521
|
"import marimo",
|
|
37457
37522
|
"app = marimo.App()",
|
|
37458
37523
|
e.cells.map((e2) => {
|
|
37459
|
-
let r = e2.code.split("\n").map((e3) => ` ${e3}`).join("\n");
|
|
37460
|
-
return
|
|
37461
|
-
${
|
|
37462
|
-
${
|
|
37524
|
+
let r = e2.disabled ? "" : e2.code, c = r ? r.split("\n").map((e3) => ` ${e3}`).join("\n") : " pass", l = c.includes("await ") ? "async def" : "def";
|
|
37525
|
+
return `${e2.disabled ? "@app.cell(disabled=True)" : "@app.cell"}
|
|
37526
|
+
${l} __():
|
|
37527
|
+
${c}
|
|
37463
37528
|
return`;
|
|
37464
37529
|
}).join("\n")
|
|
37465
37530
|
].join("\n");
|
|
@@ -37482,6 +37547,37 @@ ${r}
|
|
|
37482
37547
|
let c = e.querySelector(ISLAND_TAG_NAMES.CODE_EDITOR);
|
|
37483
37548
|
return c ? parseIslandEditor(c.getAttribute("data-initial-value")) : "";
|
|
37484
37549
|
}
|
|
37550
|
+
function parseMarimoIslandPayloads(e) {
|
|
37551
|
+
let r = e.querySelectorAll('script[type="application/vnd.marimo.islands+json"]'), c = [];
|
|
37552
|
+
for (let e2 of r) {
|
|
37553
|
+
if (isNestedIslandPayloadScript(e2)) continue;
|
|
37554
|
+
let r2 = parseMarimoIslandPayload(e2.textContent);
|
|
37555
|
+
r2 && c.push(r2);
|
|
37556
|
+
}
|
|
37557
|
+
return c;
|
|
37558
|
+
}
|
|
37559
|
+
function isNestedIslandPayloadScript(e) {
|
|
37560
|
+
return !!(e.closest(ISLAND_TAG_NAMES.ISLAND) || e.closest(ISLAND_TAG_NAMES.CELL_OUTPUT));
|
|
37561
|
+
}
|
|
37562
|
+
function parseMarimoIslandPayload(e) {
|
|
37563
|
+
if (!e) return null;
|
|
37564
|
+
try {
|
|
37565
|
+
let r = JSON.parse(e);
|
|
37566
|
+
if (isMarimoIslandPayload(r)) return r;
|
|
37567
|
+
} catch {
|
|
37568
|
+
return null;
|
|
37569
|
+
}
|
|
37570
|
+
return null;
|
|
37571
|
+
}
|
|
37572
|
+
function isMarimoIslandPayload(e) {
|
|
37573
|
+
return isRecord(e) ? e.schemaVersion === 1 && typeof e.appId == "string" && Array.isArray(e.cells) && e.cells.every(isMarimoIslandPayloadCell) : false;
|
|
37574
|
+
}
|
|
37575
|
+
function isMarimoIslandPayloadCell(e) {
|
|
37576
|
+
return isRecord(e) ? typeof e.cellId == "string" && typeof e.code == "string" && typeof e.outputHtml == "string" && typeof e.outputMimetype == "string" && typeof e.reactive == "boolean" && typeof e.displayCode == "boolean" && typeof e.displayOutput == "boolean" : false;
|
|
37577
|
+
}
|
|
37578
|
+
function isRecord(e) {
|
|
37579
|
+
return typeof e == "object" && !!e;
|
|
37580
|
+
}
|
|
37485
37581
|
var import_compiler_runtime$2 = require_compiler_runtime(), IconButton = (e) => {
|
|
37486
37582
|
let r = (0, import_compiler_runtime$2.c)(6), { tooltip: c, icon: l, action: u } = e, d;
|
|
37487
37583
|
r[0] !== u || r[1] !== l ? (d = (0, import_jsx_runtime.jsx)(Button, {
|
|
@@ -38227,10 +38323,10 @@ ${r}
|
|
|
38227
38323
|
});
|
|
38228
38324
|
}
|
|
38229
38325
|
startSessionsForAllApps() {
|
|
38230
|
-
var _a3;
|
|
38326
|
+
var _a3, _b3;
|
|
38231
38327
|
let e = parseMarimoIslandApps(this.root);
|
|
38232
38328
|
Logger.debug(`Starting sessions for ${e.length} app(s):`, e.map((e2) => `${e2.id} (${e2.cells.length} cells)`));
|
|
38233
|
-
let r = (
|
|
38329
|
+
let r = (_b3 = e.length === 1 && !((_a3 = e[0]) == null ? void 0 : _a3.payloadBacked) ? getMarimoExportContext() : void 0) == null ? void 0 : _b3.notebookCode;
|
|
38234
38330
|
for (let c of e) {
|
|
38235
38331
|
let e2 = r || createMarimoFile(c);
|
|
38236
38332
|
Logger.debug(`App ${c.id} marimo file:
|