@marimo-team/islands 0.23.14-dev16 → 0.23.14-dev17
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-Dc1Ap0mZ.js → code-visibility-Cb6UrZYv.js} +125 -112
- package/dist/main.js +986 -953
- package/dist/{reveal-component-CskA0jHe.js → reveal-component-BFhE2zHY.js} +12 -12
- package/package.json +1 -1
- package/src/components/data-table/__tests__/column-explorer.test.tsx +25 -0
- package/src/components/data-table/__tests__/column-visibility-dropdown.test.tsx +60 -3
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +33 -12
- package/src/components/data-table/column-visibility-dropdown.tsx +15 -0
package/dist/main.js
CHANGED
|
@@ -26,7 +26,7 @@ import { $ as reducer, An as PaintRoller, B as safeExtractSetUIElementMessageBuf
|
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BbqSm5gU.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist--2Bqjvs0.js";
|
|
28
28
|
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-CnTgI25l.js";
|
|
29
|
-
import { $ as
|
|
29
|
+
import { $ as PANEL_TYPES, $t as HtmlOutput, A as prettifyRowCount, At as INDEX_COLUMN_NAME, B as CompactChipRow, Bt as dateToLocalISODateTime, C as downloadSizeLimitAtom, Ct as ColumnChartSpecModel, D as ErrorState, Dt as getPageIndexForRow, E as EmptyState, Et as usePrevious$1, F as ContextMenuItem, Ft as hasFunctionProperty, G as Command, Gt as TabsTrigger, H as DateRangePicker, Ht as Tabs, I as ContextMenuSeparator, It as isRecord, J as CommandItem, Jt as ChartLoadingState, K as CommandEmpty, Kt as ChartErrorState, L as ContextMenuTrigger, Lt as isNullishFilter, M as getUserColumnVisibilityCounts, Mt as TOO_MANY_ROWS, N as ContextMenu, Nt as toFieldTypes, O as LoadingState, Ot as loadTableAndRawData, P as ContextMenuContent, Pt as getMimeValues, Q as ContextAwarePanelItem, Qt as Kbd, R as useInternalStateWithSync, Rt as Maps, S as Filenames, St as ColumnChartContext, T as ColumnPreviewContainer, Tt as useIntersectionObserver, U as Combobox, Ut as TabsContent, V as DatePicker, Vt as dateToLocalISOTime, W as ComboboxItem, Wt as TabsList, X as CommandSeparator, Xt as useOverflowDetection, Y as CommandList, Yt as LazyVegaEmbed, Z as smartMatch, Zt as RenderTextWithLinks, _ as ADD_PRINTING_CLASS, _t as TableRow, an as Funnel, at as slotsController, b as downloadHTMLAsImage, bt as inferFieldTypes, c as Slide, cn as Ellipsis, d as RadioGroupItem, dn as ChevronsUpDown, dt as Provider$1, en as EmotionCacheProvider, et as contextAwarePanelOpen, f as JsonOutput, fn as ChevronsRight, ft as Table, g as InstallPackageButton, gn as ArrowDownWideNarrow, gt as TableHeader, h as DataTable, hn as ChevronLeft, ht as TableHead, in as GripHorizontal, it as SlotNames, j as getColumnCountForDisplay, jt as SELECT_COLUMN_ID, k as prettifyRowColumnCount, kt as loadTableData, l as Switch, ln as Download, m as OutputRenderer, mn as ChevronsDownUp, mt as TableCell, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$6b862160d295c8e, nt as contextAwarePanelType, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as EyeOff, ot as Toggle, p as OutputArea, pn as ChevronsLeft, pt as TableBody, q as CommandInput, qt as ChartInfoState, r as showCodeInRunModeAtom, rn as TextWrap, rt as isCellAwareAtom, t as useNotebookCodeAvailable, tn as $fae977aafc393c5c$export$588937bcd60ade55, tt as contextAwarePanelOwner, u as RadioGroup, un as Code, ut as Fill, v as downloadBlob, vt as NAMELESS_COLUMN_PREFIX, w as ColumnName, wt as DelayMount, x as Progress, xt as renderCellValue, y as downloadByURL, yt as generateColumns, z as useSelectList, zt as dateToLocalISODate, __tla as __tla_2 } from "./code-visibility-Cb6UrZYv.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-CxffarYV.js";
|
|
31
31
|
import { t as Check } from "./check-C9OoNtR4.js";
|
|
32
32
|
import { A as Icon, C as logNever, D as $18f2051aff69b9bf$export$a54013f0d02a8f82, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, M as clamp$2, N as usePrevious$2, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as Trigger$1, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./strings-Dq_j3Rxw.js";
|
|
@@ -6997,33 +6997,33 @@ let __tla = Promise.all([
|
|
|
6997
6997
|
}), B = C({
|
|
6998
6998
|
height: 0,
|
|
6999
6999
|
width: 0
|
|
7000
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
7000
|
+
}), H = U(), W = U(), G = C(0), q = C(null), rW = C({
|
|
7001
7001
|
column: 0,
|
|
7002
7002
|
row: 0
|
|
7003
|
-
}),
|
|
7004
|
-
Y(x(b, $(
|
|
7005
|
-
D(
|
|
7006
|
-
}), Y(x(ut(b,
|
|
7007
|
-
D(
|
|
7003
|
+
}), iW = U(), Z = U(), aW = C(false), oW = C(0), sW = C(true), cW = C(false), lW = C(false);
|
|
7004
|
+
Y(x(b, $(oW), P(([e2, r2]) => !!r2)), () => {
|
|
7005
|
+
D(sW, false);
|
|
7006
|
+
}), Y(x(ut(b, sW, B, z, oW, cW), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7007
|
+
D(cW, true), Ue(1, () => {
|
|
7008
7008
|
D(H, e2);
|
|
7009
7009
|
}), Et(x(h), () => {
|
|
7010
7010
|
D(r, [
|
|
7011
7011
|
0,
|
|
7012
7012
|
0
|
|
7013
|
-
]), D(
|
|
7013
|
+
]), D(sW, true);
|
|
7014
7014
|
});
|
|
7015
7015
|
}), F(x(Z, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(Z), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7016
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7017
|
-
D(
|
|
7016
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(rW, e2.gap), e2.scrollTop > 0 && (D(aW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7017
|
+
D(aW, false);
|
|
7018
7018
|
}), D(m, {
|
|
7019
7019
|
top: e2.scrollTop
|
|
7020
7020
|
})));
|
|
7021
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7021
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(rW, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7022
7022
|
gap: c2,
|
|
7023
7023
|
item: r2,
|
|
7024
7024
|
scrollTop: l2,
|
|
7025
7025
|
viewport: e2
|
|
7026
|
-
}))),
|
|
7026
|
+
}))), iW), F(x(ut(V(I), l, V(rW, Or), V(B, xe), V(z, xe), V(q), V(L), V(aW), V(sW), V(oW)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7027
7027
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7028
7028
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7029
7029
|
if (y2 === 0) {
|
|
@@ -7042,23 +7042,23 @@ let __tla = Promise.all([
|
|
|
7042
7042
|
offsetTop: j2,
|
|
7043
7043
|
top: j2
|
|
7044
7044
|
};
|
|
7045
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7045
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, rW), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7046
7046
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7047
7047
|
return [
|
|
7048
7048
|
d2,
|
|
7049
7049
|
u2
|
|
7050
7050
|
];
|
|
7051
7051
|
}), J(ce)), r);
|
|
7052
|
-
let
|
|
7053
|
-
F(x(h, $(
|
|
7054
|
-
let
|
|
7052
|
+
let uW = C(false);
|
|
7053
|
+
F(x(h, $(uW), k(([e2, r2]) => r2 || e2 !== 0)), uW);
|
|
7054
|
+
let dW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(uW), P(([[e2, r2], c2]) => {
|
|
7055
7055
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7056
7056
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7057
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7057
|
+
}), k(([[, e2]]) => e2 - 1), J())), fW = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), pW = bt(x(V(R), $(aW), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7058
7058
|
endIndex: e2[e2.length - 1].index,
|
|
7059
7059
|
startIndex: e2[0].index
|
|
7060
7060
|
})), J(An), Gt(0)));
|
|
7061
|
-
F(
|
|
7061
|
+
F(pW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, rW), k(([e2, r2, c2, l2, u2]) => {
|
|
7062
7062
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7063
7063
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7064
7064
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7067,7 +7067,7 @@ let __tla = Promise.all([
|
|
|
7067
7067
|
top: g2
|
|
7068
7068
|
};
|
|
7069
7069
|
})), m);
|
|
7070
|
-
let
|
|
7070
|
+
let mW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7071
7071
|
return F(x(j, k((e2) => ({
|
|
7072
7072
|
height: e2.visibleHeight,
|
|
7073
7073
|
width: e2.visibleWidth
|
|
@@ -7076,7 +7076,7 @@ let __tla = Promise.all([
|
|
|
7076
7076
|
data: q,
|
|
7077
7077
|
deviation: G,
|
|
7078
7078
|
footerHeight: u,
|
|
7079
|
-
gap:
|
|
7079
|
+
gap: rW,
|
|
7080
7080
|
headerHeight: d,
|
|
7081
7081
|
increaseViewportBy: e,
|
|
7082
7082
|
initialItemCount: L,
|
|
@@ -7098,16 +7098,16 @@ let __tla = Promise.all([
|
|
|
7098
7098
|
windowViewportRect: j,
|
|
7099
7099
|
...y,
|
|
7100
7100
|
gridState: R,
|
|
7101
|
-
horizontalDirection:
|
|
7102
|
-
initialTopMostItemIndex:
|
|
7103
|
-
totalListHeight:
|
|
7101
|
+
horizontalDirection: lW,
|
|
7102
|
+
initialTopMostItemIndex: oW,
|
|
7103
|
+
totalListHeight: mW,
|
|
7104
7104
|
...v,
|
|
7105
|
-
endReached:
|
|
7105
|
+
endReached: dW,
|
|
7106
7106
|
propsReady: S,
|
|
7107
|
-
rangeChanged:
|
|
7108
|
-
startReached:
|
|
7109
|
-
stateChanged:
|
|
7110
|
-
stateRestoreInProgress:
|
|
7107
|
+
rangeChanged: pW,
|
|
7108
|
+
startReached: fW,
|
|
7109
|
+
stateChanged: iW,
|
|
7110
|
+
stateRestoreInProgress: aW,
|
|
7111
7111
|
...M
|
|
7112
7112
|
};
|
|
7113
7113
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7385,22 +7385,22 @@ let __tla = Promise.all([
|
|
|
7385
7385
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7386
7386
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7387
7387
|
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7388
|
-
let
|
|
7388
|
+
let rW = q, iW;
|
|
7389
7389
|
if (r[13] !== G.bulkActions) {
|
|
7390
|
-
if (
|
|
7390
|
+
if (iW = G.bulkActions.map(_temp$26), iW.length > 0) {
|
|
7391
7391
|
let e2;
|
|
7392
7392
|
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7393
7393
|
"data-slot": "select-separator"
|
|
7394
|
-
}, "_bulk_separator"), r[15] = e2) : e2 = r[15],
|
|
7394
|
+
}, "_bulk_separator"), r[15] = e2) : e2 = r[15], iW.push(e2);
|
|
7395
7395
|
}
|
|
7396
|
-
r[13] = G.bulkActions, r[14] =
|
|
7397
|
-
} else
|
|
7396
|
+
r[13] = G.bulkActions, r[14] = iW;
|
|
7397
|
+
} else iW = r[14];
|
|
7398
7398
|
let Z;
|
|
7399
7399
|
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (Z = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7400
7400
|
"data-slot": "select-separator"
|
|
7401
7401
|
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = Z) : Z = r[18];
|
|
7402
|
-
let
|
|
7403
|
-
r[19] !==
|
|
7402
|
+
let aW = Z, oW;
|
|
7403
|
+
r[19] !== iW || r[20] !== G || r[21] !== aW || r[22] !== w || r[23] !== B || r[24] !== H ? (oW = () => {
|
|
7404
7404
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7405
7405
|
"data-slot": "select-list",
|
|
7406
7406
|
style: {
|
|
@@ -7412,8 +7412,8 @@ let __tla = Promise.all([
|
|
|
7412
7412
|
let r2 = G.visibleOptions[e3];
|
|
7413
7413
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7414
7414
|
children: [
|
|
7415
|
-
e3 === 0 &&
|
|
7416
|
-
|
|
7415
|
+
e3 === 0 && iW,
|
|
7416
|
+
aW(e3),
|
|
7417
7417
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7418
7418
|
option: r2,
|
|
7419
7419
|
checked: G.isChecked(r2.value),
|
|
@@ -7424,7 +7424,7 @@ let __tla = Promise.all([
|
|
|
7424
7424
|
}
|
|
7425
7425
|
});
|
|
7426
7426
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7427
|
-
let c2 =
|
|
7427
|
+
let c2 = aW(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7428
7428
|
option: e3,
|
|
7429
7429
|
checked: G.isChecked(e3.value),
|
|
7430
7430
|
renderOption: w
|
|
@@ -7438,13 +7438,13 @@ let __tla = Promise.all([
|
|
|
7438
7438
|
});
|
|
7439
7439
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7440
7440
|
children: [
|
|
7441
|
-
|
|
7441
|
+
iW,
|
|
7442
7442
|
e2
|
|
7443
7443
|
]
|
|
7444
7444
|
});
|
|
7445
|
-
}, r[19] =
|
|
7446
|
-
let
|
|
7447
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7445
|
+
}, r[19] = iW, r[20] = G, r[21] = aW, r[22] = w, r[23] = B, r[24] = H, r[25] = oW) : oW = r[25];
|
|
7446
|
+
let sW = oW, cW;
|
|
7447
|
+
r[26] !== G.labelOf || r[27] !== I ? (cW = (e2) => {
|
|
7448
7448
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7449
7449
|
e2
|
|
7450
7450
|
];
|
|
@@ -7455,46 +7455,46 @@ let __tla = Promise.all([
|
|
|
7455
7455
|
items: r2.map(G.labelOf),
|
|
7456
7456
|
max: 3
|
|
7457
7457
|
});
|
|
7458
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7459
|
-
let
|
|
7460
|
-
r[29] === G ?
|
|
7461
|
-
let
|
|
7462
|
-
r[31] !== b || r[32] !== R ? (
|
|
7458
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = cW) : cW = r[28];
|
|
7459
|
+
let lW = cW, uW = e["data-testid"], dW;
|
|
7460
|
+
r[29] === G ? dW = r[30] : (dW = (e2) => G.labelOf(e2), r[29] = G, r[30] = dW);
|
|
7461
|
+
let fW = M ? lW : void 0, pW;
|
|
7462
|
+
r[31] !== b || r[32] !== R ? (pW = cn({
|
|
7463
7463
|
"w-full": R
|
|
7464
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7465
|
-
let
|
|
7466
|
-
r[34] === z ?
|
|
7467
|
-
let
|
|
7468
|
-
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !==
|
|
7464
|
+
}, b), r[31] = b, r[32] = R, r[33] = pW) : pW = r[33];
|
|
7465
|
+
let mW = G.searchQuery, hW = G.setSearchQuery, gW = G.open, _W = G.setOpen, vW;
|
|
7466
|
+
r[34] === z ? vW = r[35] : (vW = renderSlot(z), r[34] = z, r[35] = vW);
|
|
7467
|
+
let yW;
|
|
7468
|
+
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !== uW || r[44] !== dW || r[45] !== fW || r[46] !== pW || r[47] !== vW ? (yW = {
|
|
7469
7469
|
"data-slot": "select-root",
|
|
7470
|
-
"data-testid":
|
|
7471
|
-
displayValue:
|
|
7472
|
-
renderValue:
|
|
7470
|
+
"data-testid": uW,
|
|
7471
|
+
displayValue: dW,
|
|
7472
|
+
renderValue: fW,
|
|
7473
7473
|
placeholder: I,
|
|
7474
|
-
className:
|
|
7474
|
+
className: pW,
|
|
7475
7475
|
shouldFilter: false,
|
|
7476
|
-
search:
|
|
7477
|
-
onSearchChange:
|
|
7478
|
-
open:
|
|
7479
|
-
onOpenChange:
|
|
7480
|
-
emptyState:
|
|
7476
|
+
search: mW,
|
|
7477
|
+
onSearchChange: hW,
|
|
7478
|
+
open: gW,
|
|
7479
|
+
onOpenChange: _W,
|
|
7480
|
+
emptyState: vW,
|
|
7481
7481
|
disabled: L,
|
|
7482
7482
|
id: S
|
|
7483
|
-
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] =
|
|
7484
|
-
let
|
|
7485
|
-
return r[49] !==
|
|
7486
|
-
...
|
|
7483
|
+
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] = uW, r[44] = dW, r[45] = fW, r[46] = pW, r[47] = vW, r[48] = yW) : yW = r[48];
|
|
7484
|
+
let bW = yW, xW;
|
|
7485
|
+
return r[49] !== bW || r[50] !== rW || r[51] !== d || r[52] !== sW || r[53] !== l ? (xW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7486
|
+
...bW,
|
|
7487
7487
|
multiple: true,
|
|
7488
7488
|
value: l,
|
|
7489
|
-
onValueChange:
|
|
7490
|
-
children:
|
|
7489
|
+
onValueChange: rW,
|
|
7490
|
+
children: sW()
|
|
7491
7491
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7492
|
-
...
|
|
7492
|
+
...bW,
|
|
7493
7493
|
multiple: false,
|
|
7494
7494
|
value: l,
|
|
7495
|
-
onValueChange:
|
|
7496
|
-
children:
|
|
7497
|
-
}), r[49] =
|
|
7495
|
+
onValueChange: rW,
|
|
7496
|
+
children: sW()
|
|
7497
|
+
}), r[49] = bW, r[50] = rW, r[51] = d, r[52] = sW, r[53] = l, r[54] = xW) : xW = r[54], xW;
|
|
7498
7498
|
}
|
|
7499
7499
|
function _temp$26(e) {
|
|
7500
7500
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -9691,7 +9691,7 @@ let __tla = Promise.all([
|
|
|
9691
9691
|
let m2 = get(l, e2);
|
|
9692
9692
|
if (m2) {
|
|
9693
9693
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
9694
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
9694
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : rW(e2, l2), f.mount && w();
|
|
9695
9695
|
}
|
|
9696
9696
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
9697
9697
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -9764,14 +9764,14 @@ let __tla = Promise.all([
|
|
|
9764
9764
|
}, H = () => {
|
|
9765
9765
|
for (let e2 of p.unMount) {
|
|
9766
9766
|
let r2 = get(l, e2);
|
|
9767
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
9767
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && pW(e2);
|
|
9768
9768
|
}
|
|
9769
9769
|
p.unMount = /* @__PURE__ */ new Set();
|
|
9770
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
9770
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(cW(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
9771
9771
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
9772
9772
|
[e2]: r2
|
|
9773
9773
|
} : r2
|
|
9774
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
9774
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), rW = (e2, r2, c2 = {}) => {
|
|
9775
9775
|
let u2 = get(l, e2), f2 = r2;
|
|
9776
9776
|
if (u2) {
|
|
9777
9777
|
let c3 = u2._f;
|
|
@@ -9784,11 +9784,11 @@ let __tla = Promise.all([
|
|
|
9784
9784
|
}
|
|
9785
9785
|
})));
|
|
9786
9786
|
}
|
|
9787
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
9788
|
-
},
|
|
9787
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && sW(e2);
|
|
9788
|
+
}, iW = (e2, r2, c2) => {
|
|
9789
9789
|
for (let u2 in r2) {
|
|
9790
9790
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
9791
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
9791
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? iW(f2, d2, c2) : rW(f2, d2, c2);
|
|
9792
9792
|
}
|
|
9793
9793
|
}, Z = (e2, r2, m2 = {}) => {
|
|
9794
9794
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
@@ -9801,7 +9801,7 @@ let __tla = Promise.all([
|
|
|
9801
9801
|
name: e2,
|
|
9802
9802
|
dirtyFields: getDirtyFields(u, d),
|
|
9803
9803
|
isDirty: W(e2, y2)
|
|
9804
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
9804
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? iW(e2, y2, m2) : rW(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
9805
9805
|
...c
|
|
9806
9806
|
}), _.values.next({
|
|
9807
9807
|
name: f.mount ? e2 : void 0,
|
|
@@ -9809,7 +9809,7 @@ let __tla = Promise.all([
|
|
|
9809
9809
|
...d
|
|
9810
9810
|
}
|
|
9811
9811
|
});
|
|
9812
|
-
},
|
|
9812
|
+
}, aW = async (e2) => {
|
|
9813
9813
|
f.mount = true;
|
|
9814
9814
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
9815
9815
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -9843,11 +9843,11 @@ let __tla = Promise.all([
|
|
|
9843
9843
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
9844
9844
|
h2
|
|
9845
9845
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
9846
|
-
S2 && (E2._f.deps &&
|
|
9846
|
+
S2 && (E2._f.deps && sW(E2._f.deps), L(h2, f2, u3, G2));
|
|
9847
9847
|
}
|
|
9848
|
-
},
|
|
9848
|
+
}, oW = (e2, r2) => {
|
|
9849
9849
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
9850
|
-
},
|
|
9850
|
+
}, sW = async (e2, u2 = {}) => {
|
|
9851
9851
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
9852
9852
|
if (r.resolver) {
|
|
9853
9853
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -9866,23 +9866,23 @@ let __tla = Promise.all([
|
|
|
9866
9866
|
isValid: d2
|
|
9867
9867
|
} : {},
|
|
9868
9868
|
errors: c.errors
|
|
9869
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
9870
|
-
},
|
|
9869
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, oW, e2 ? m2 : p.mount), f2;
|
|
9870
|
+
}, cW = (e2) => {
|
|
9871
9871
|
let r2 = {
|
|
9872
9872
|
...f.mount ? d : u
|
|
9873
9873
|
};
|
|
9874
9874
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
9875
|
-
},
|
|
9875
|
+
}, lW = (e2, r2) => ({
|
|
9876
9876
|
invalid: !!get((r2 || c).errors, e2),
|
|
9877
9877
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
9878
9878
|
error: get((r2 || c).errors, e2),
|
|
9879
9879
|
isValidating: !!get(c.validatingFields, e2),
|
|
9880
9880
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
9881
|
-
}),
|
|
9881
|
+
}), uW = (e2) => {
|
|
9882
9882
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
9883
9883
|
errors: e2 ? c.errors : {}
|
|
9884
9884
|
});
|
|
9885
|
-
},
|
|
9885
|
+
}, dW = (e2, r2, u2) => {
|
|
9886
9886
|
let d2 = (get(l, e2, {
|
|
9887
9887
|
_f: {}
|
|
9888
9888
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -9895,9 +9895,9 @@ let __tla = Promise.all([
|
|
|
9895
9895
|
errors: c.errors,
|
|
9896
9896
|
isValid: false
|
|
9897
9897
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
9898
|
-
},
|
|
9898
|
+
}, fW = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
9899
9899
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
9900
|
-
}) : G(e2, r2, true),
|
|
9900
|
+
}) : G(e2, r2, true), pW = (e2, f2 = {}) => {
|
|
9901
9901
|
for (let m2 of e2 ? convertToArrayPayload(e2) : p.mount) p.mount.delete(m2), p.array.delete(m2), f2.keepValue || (unset(l, m2), unset(d, m2)), !f2.keepError && unset(c.errors, m2), !f2.keepDirty && unset(c.dirtyFields, m2), !f2.keepTouched && unset(c.touchedFields, m2), !f2.keepIsValidating && unset(c.validatingFields, m2), !r.shouldUnregister && !f2.keepDefaultValue && unset(u, m2);
|
|
9902
9902
|
_.values.next({
|
|
9903
9903
|
values: {
|
|
@@ -9909,9 +9909,9 @@ let __tla = Promise.all([
|
|
|
9909
9909
|
isDirty: W()
|
|
9910
9910
|
} : {}
|
|
9911
9911
|
}), !f2.keepIsValid && w();
|
|
9912
|
-
},
|
|
9912
|
+
}, mW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
9913
9913
|
(isBoolean(e2) && f.mount || e2 || p.disabled.has(r2)) && (e2 ? p.disabled.add(r2) : p.disabled.delete(r2), I(r2, getFieldValue(c2 ? c2._f : get(l2, r2)._f), false, false, true));
|
|
9914
|
-
},
|
|
9914
|
+
}, hW = (e2, c2 = {}) => {
|
|
9915
9915
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
9916
9916
|
return set(l, e2, {
|
|
9917
9917
|
...d2 || {},
|
|
@@ -9925,7 +9925,7 @@ let __tla = Promise.all([
|
|
|
9925
9925
|
mount: true,
|
|
9926
9926
|
...c2
|
|
9927
9927
|
}
|
|
9928
|
-
}), p.mount.add(e2), d2 ?
|
|
9928
|
+
}), p.mount.add(e2), d2 ? mW({
|
|
9929
9929
|
field: d2,
|
|
9930
9930
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
9931
9931
|
name: e2
|
|
@@ -9942,11 +9942,11 @@ let __tla = Promise.all([
|
|
|
9942
9942
|
pattern: getRuleValue(c2.pattern)
|
|
9943
9943
|
} : {},
|
|
9944
9944
|
name: e2,
|
|
9945
|
-
onChange:
|
|
9946
|
-
onBlur:
|
|
9945
|
+
onChange: aW,
|
|
9946
|
+
onBlur: aW,
|
|
9947
9947
|
ref: (m3) => {
|
|
9948
9948
|
if (m3) {
|
|
9949
|
-
|
|
9949
|
+
hW(e2, c2), d2 = get(l, e2);
|
|
9950
9950
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
9951
9951
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
9952
9952
|
set(l, e2, {
|
|
@@ -9972,7 +9972,7 @@ let __tla = Promise.all([
|
|
|
9972
9972
|
} else d2 = get(l, e2, {}), d2._f && (d2._f.mount = false), (r.shouldUnregister || c2.shouldUnregister) && !(isNameInFieldArray(p.array, e2) && f.action) && p.unMount.add(e2);
|
|
9973
9973
|
}
|
|
9974
9974
|
};
|
|
9975
|
-
},
|
|
9975
|
+
}, gW = () => r.shouldFocusError && iterateFieldsByAction(l, oW, p.mount), _W = (e2) => {
|
|
9976
9976
|
isBoolean(e2) && (_.state.next({
|
|
9977
9977
|
disabled: e2
|
|
9978
9978
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -9981,7 +9981,7 @@ let __tla = Promise.all([
|
|
|
9981
9981
|
r3.disabled = u2._f.disabled || e2;
|
|
9982
9982
|
}));
|
|
9983
9983
|
}, 0, false));
|
|
9984
|
-
},
|
|
9984
|
+
}, vW = (e2, u2) => async (f2) => {
|
|
9985
9985
|
let m2;
|
|
9986
9986
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
9987
9987
|
let h2 = cloneObject(d);
|
|
@@ -10003,7 +10003,7 @@ let __tla = Promise.all([
|
|
|
10003
10003
|
}
|
|
10004
10004
|
} else u2 && await u2({
|
|
10005
10005
|
...c.errors
|
|
10006
|
-
}, f2),
|
|
10006
|
+
}, f2), gW(), setTimeout(gW);
|
|
10007
10007
|
if (_.state.next({
|
|
10008
10008
|
isSubmitted: true,
|
|
10009
10009
|
isSubmitting: false,
|
|
@@ -10011,11 +10011,11 @@ let __tla = Promise.all([
|
|
|
10011
10011
|
submitCount: c.submitCount + 1,
|
|
10012
10012
|
errors: c.errors
|
|
10013
10013
|
}), m2) throw m2;
|
|
10014
|
-
},
|
|
10014
|
+
}, yW = (e2, r2 = {}) => {
|
|
10015
10015
|
get(l, e2) && (isUndefined(r2.defaultValue) ? Z(e2, cloneObject(get(u, e2))) : (Z(e2, r2.defaultValue), set(u, e2, cloneObject(r2.defaultValue))), r2.keepTouched || unset(c.touchedFields, e2), r2.keepDirty || (unset(c.dirtyFields, e2), c.isDirty = r2.defaultValue ? W(e2, cloneObject(get(u, e2))) : W()), r2.keepError || (unset(c.errors, e2), g.isValid && w()), _.state.next({
|
|
10016
10016
|
...c
|
|
10017
10017
|
}));
|
|
10018
|
-
},
|
|
10018
|
+
}, bW = (e2, m2 = {}) => {
|
|
10019
10019
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10020
10020
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10021
10021
|
if (m2.keepDirtyValues) {
|
|
@@ -10068,25 +10068,25 @@ let __tla = Promise.all([
|
|
|
10068
10068
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10069
10069
|
isSubmitting: false
|
|
10070
10070
|
});
|
|
10071
|
-
},
|
|
10071
|
+
}, xW = (e2, r2) => bW(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10072
10072
|
return {
|
|
10073
10073
|
control: {
|
|
10074
|
-
register:
|
|
10075
|
-
unregister:
|
|
10076
|
-
getFieldState:
|
|
10077
|
-
handleSubmit:
|
|
10078
|
-
setError:
|
|
10074
|
+
register: hW,
|
|
10075
|
+
unregister: pW,
|
|
10076
|
+
getFieldState: lW,
|
|
10077
|
+
handleSubmit: vW,
|
|
10078
|
+
setError: dW,
|
|
10079
10079
|
_executeSchema: R,
|
|
10080
10080
|
_getWatch: G,
|
|
10081
10081
|
_getDirty: W,
|
|
10082
10082
|
_updateValid: w,
|
|
10083
10083
|
_removeUnmounted: H,
|
|
10084
10084
|
_updateFieldArray: E,
|
|
10085
|
-
_updateDisabledField:
|
|
10085
|
+
_updateDisabledField: mW,
|
|
10086
10086
|
_getFieldArray: q,
|
|
10087
|
-
_reset:
|
|
10087
|
+
_reset: bW,
|
|
10088
10088
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10089
|
-
|
|
10089
|
+
xW(e2, r.resetOptions), _.state.next({
|
|
10090
10090
|
isLoading: false
|
|
10091
10091
|
});
|
|
10092
10092
|
}),
|
|
@@ -10096,7 +10096,7 @@ let __tla = Promise.all([
|
|
|
10096
10096
|
...e2
|
|
10097
10097
|
};
|
|
10098
10098
|
},
|
|
10099
|
-
_disableForm:
|
|
10099
|
+
_disableForm: _W,
|
|
10100
10100
|
_subjects: _,
|
|
10101
10101
|
_proxyFormState: g,
|
|
10102
10102
|
_setErrors: j,
|
|
@@ -10137,17 +10137,17 @@ let __tla = Promise.all([
|
|
|
10137
10137
|
};
|
|
10138
10138
|
}
|
|
10139
10139
|
},
|
|
10140
|
-
trigger:
|
|
10141
|
-
register:
|
|
10142
|
-
handleSubmit:
|
|
10143
|
-
watch:
|
|
10140
|
+
trigger: sW,
|
|
10141
|
+
register: hW,
|
|
10142
|
+
handleSubmit: vW,
|
|
10143
|
+
watch: fW,
|
|
10144
10144
|
setValue: Z,
|
|
10145
|
-
getValues:
|
|
10146
|
-
reset:
|
|
10147
|
-
resetField:
|
|
10148
|
-
clearErrors:
|
|
10149
|
-
unregister:
|
|
10150
|
-
setError:
|
|
10145
|
+
getValues: cW,
|
|
10146
|
+
reset: xW,
|
|
10147
|
+
resetField: yW,
|
|
10148
|
+
clearErrors: uW,
|
|
10149
|
+
unregister: pW,
|
|
10150
|
+
setError: dW,
|
|
10151
10151
|
setFocus: (e2, r2 = {}) => {
|
|
10152
10152
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10153
10153
|
if (u2) {
|
|
@@ -10155,7 +10155,7 @@ let __tla = Promise.all([
|
|
|
10155
10155
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10156
10156
|
}
|
|
10157
10157
|
},
|
|
10158
|
-
getFieldState:
|
|
10158
|
+
getFieldState: lW
|
|
10159
10159
|
};
|
|
10160
10160
|
}
|
|
10161
10161
|
function useForm(e = {}) {
|
|
@@ -13201,7 +13201,7 @@ ${c}
|
|
|
13201
13201
|
}), r[8] = h, r[9] = _), _;
|
|
13202
13202
|
};
|
|
13203
13203
|
function ColumnExplorerPanel({ previewColumn: e, fieldTypes: r, totalRows: c, totalColumns: l, tableId: u, table: d }) {
|
|
13204
|
-
let [f, p] = (0, import_react.useState)(""), { locale: m } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), h = r == null ? void 0 : r.filter(([e2]) => !(e2 === "__select__" || e2 === "_marimo_row_id" || e2.startsWith("__m_column__"))), g = h == null ? void 0 : h.filter(([e2]) => smartMatch(f, e2)), { totalColumns: _, hiddenColumns: v } = getColumnCountForDisplay(d, l), {
|
|
13204
|
+
let [f, p] = (0, import_react.useState)(""), { locale: m } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), h = r == null ? void 0 : r.filter(([e2]) => !(e2 === "__select__" || e2 === "_marimo_row_id" || e2.startsWith("__m_column__"))), g = h == null ? void 0 : h.filter(([e2]) => smartMatch(f, e2)), { totalColumns: _, hiddenColumns: v } = getColumnCountForDisplay(d, l), { visible: y } = getUserColumnVisibilityCounts(d), { rowsAndColumns: b, hiddenSuffix: S } = prettifyRowColumnCount({
|
|
13205
13205
|
numRows: c,
|
|
13206
13206
|
totalColumns: _,
|
|
13207
13207
|
locale: m,
|
|
@@ -13213,22 +13213,55 @@ ${c}
|
|
|
13213
13213
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
13214
13214
|
className: "text-xs font-semibold ml-2 flex items-center gap-1",
|
|
13215
13215
|
children: [
|
|
13216
|
-
|
|
13216
|
+
b,
|
|
13217
13217
|
v > 0 && (0, import_jsx_runtime.jsx)("span", {
|
|
13218
|
-
children:
|
|
13218
|
+
children: S
|
|
13219
13219
|
}),
|
|
13220
13220
|
(0, import_jsx_runtime.jsx)(CopyClipboardIcon, {
|
|
13221
13221
|
tooltip: "Copy column names",
|
|
13222
13222
|
value: (h == null ? void 0 : h.map(([e2]) => e2).join(",\n")) || "",
|
|
13223
13223
|
className: "h-3 w-3"
|
|
13224
13224
|
}),
|
|
13225
|
-
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
|
|
13229
|
-
|
|
13230
|
-
|
|
13231
|
-
|
|
13225
|
+
(0, import_jsx_runtime.jsxs)("div", {
|
|
13226
|
+
className: "ml-auto flex items-center gap-1",
|
|
13227
|
+
children: [
|
|
13228
|
+
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
13229
|
+
content: "Show all columns",
|
|
13230
|
+
delayDuration: 400,
|
|
13231
|
+
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
13232
|
+
type: "button",
|
|
13233
|
+
variant: "ghost",
|
|
13234
|
+
size: "xs",
|
|
13235
|
+
className: "gap-1",
|
|
13236
|
+
disabled: v === 0,
|
|
13237
|
+
onClick: () => d.toggleAllColumnsVisible(true),
|
|
13238
|
+
children: [
|
|
13239
|
+
(0, import_jsx_runtime.jsx)(Eye, {
|
|
13240
|
+
className: "w-3 h-3"
|
|
13241
|
+
}),
|
|
13242
|
+
"Show all"
|
|
13243
|
+
]
|
|
13244
|
+
})
|
|
13245
|
+
}),
|
|
13246
|
+
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
13247
|
+
content: "Hide all columns",
|
|
13248
|
+
delayDuration: 400,
|
|
13249
|
+
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
13250
|
+
type: "button",
|
|
13251
|
+
variant: "ghost",
|
|
13252
|
+
size: "xs",
|
|
13253
|
+
className: "gap-1",
|
|
13254
|
+
disabled: y === 0,
|
|
13255
|
+
onClick: () => d.toggleAllColumnsVisible(false),
|
|
13256
|
+
children: [
|
|
13257
|
+
(0, import_jsx_runtime.jsx)(EyeOff, {
|
|
13258
|
+
className: "w-3 h-3"
|
|
13259
|
+
}),
|
|
13260
|
+
"Hide all"
|
|
13261
|
+
]
|
|
13262
|
+
})
|
|
13263
|
+
})
|
|
13264
|
+
]
|
|
13232
13265
|
})
|
|
13233
13266
|
]
|
|
13234
13267
|
}),
|
|
@@ -14406,21 +14439,21 @@ ${c}
|
|
|
14406
14439
|
_.pageSize,
|
|
14407
14440
|
_.pageIndex
|
|
14408
14441
|
], r[35] = w, r[36] = _.pageIndex, r[37] = _.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = u, r[44] = y, r[45] = m, r[46] = B, r[47] = H) : H = r[47];
|
|
14409
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
14410
|
-
r[48] !==
|
|
14411
|
-
let
|
|
14412
|
-
r[51] !==
|
|
14413
|
-
rW,
|
|
14442
|
+
let { data: W, error: G, isPending: q, isFetching: rW } = useAsyncData(z, H), iW = useAtomValue(downloadSizeLimitAtom), Z;
|
|
14443
|
+
r[48] !== iW || r[49] !== e ? (Z = async () => !iW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = iW, r[49] = e, r[50] = Z) : Z = r[50];
|
|
14444
|
+
let aW = e.showDownload, oW = e.get_size_bytes, sW = e.lazy, cW = e.totalRows, lW = useDeepCompareMemoize(w), uW = useDeepCompareMemoize(m), dW;
|
|
14445
|
+
r[51] !== iW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== lW || r[58] !== uW ? (dW = [
|
|
14414
14446
|
iW,
|
|
14415
14447
|
aW,
|
|
14416
14448
|
oW,
|
|
14417
14449
|
sW,
|
|
14418
|
-
y,
|
|
14419
14450
|
cW,
|
|
14420
|
-
|
|
14421
|
-
|
|
14422
|
-
|
|
14423
|
-
r[
|
|
14451
|
+
y,
|
|
14452
|
+
lW,
|
|
14453
|
+
uW
|
|
14454
|
+
], r[51] = iW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = lW, r[58] = uW, r[59] = dW) : dW = r[59];
|
|
14455
|
+
let { data: fW, isPending: pW } = useAsyncData(Z, dW), mW = fW ?? null, hW = !!iW && e.showDownload && pW, gW;
|
|
14456
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (gW = async (e2) => ({
|
|
14424
14457
|
rows: await loadTableData((await u({
|
|
14425
14458
|
page_number: e2,
|
|
14426
14459
|
page_size: 1,
|
|
@@ -14429,17 +14462,17 @@ ${c}
|
|
|
14429
14462
|
filters: filtersToFilterGroup(w),
|
|
14430
14463
|
max_columns: null
|
|
14431
14464
|
})).data)
|
|
14432
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
14433
|
-
let
|
|
14434
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
14465
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = gW) : gW = r[64];
|
|
14466
|
+
let _W = gW, vW;
|
|
14467
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (vW = () => {
|
|
14435
14468
|
v(_temp4$4);
|
|
14436
|
-
}, r[65] =
|
|
14437
|
-
let
|
|
14438
|
-
r[66] ===
|
|
14439
|
-
|
|
14440
|
-
], r[66] =
|
|
14441
|
-
let
|
|
14442
|
-
r[68] === e ?
|
|
14469
|
+
}, r[65] = vW) : vW = r[65];
|
|
14470
|
+
let yW = W == null ? void 0 : W.totalRows, bW;
|
|
14471
|
+
r[66] === yW ? bW = r[67] : (bW = [
|
|
14472
|
+
yW
|
|
14473
|
+
], r[66] = yW, r[67] = bW), (0, import_react.useEffect)(vW, bW);
|
|
14474
|
+
let xW;
|
|
14475
|
+
r[68] === e ? xW = r[69] : (xW = async () => {
|
|
14443
14476
|
let r2 = isStaticNotebook();
|
|
14444
14477
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
14445
14478
|
data: null,
|
|
@@ -14448,22 +14481,22 @@ ${c}
|
|
|
14448
14481
|
value_counts: {},
|
|
14449
14482
|
show_charts: false
|
|
14450
14483
|
} : e.get_column_summaries({});
|
|
14451
|
-
}, r[68] = e, r[69] =
|
|
14452
|
-
let
|
|
14453
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
14484
|
+
}, r[68] = e, r[69] = xW);
|
|
14485
|
+
let SW;
|
|
14486
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (SW = [
|
|
14454
14487
|
e.get_column_summaries,
|
|
14455
14488
|
e.showColumnSummaries,
|
|
14456
14489
|
w,
|
|
14457
14490
|
y,
|
|
14458
14491
|
e.totalRows,
|
|
14459
14492
|
e.data
|
|
14460
|
-
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] =
|
|
14461
|
-
let { data:
|
|
14462
|
-
if (r[77] ===
|
|
14463
|
-
|
|
14464
|
-
},
|
|
14465
|
-
|
|
14466
|
-
], r[77] =
|
|
14493
|
+
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] = SW) : SW = r[76];
|
|
14494
|
+
let { data: CW, error: wW } = useAsyncData(xW, SW), TW, EW;
|
|
14495
|
+
if (r[77] === wW ? (TW = r[78], EW = r[79]) : (TW = () => {
|
|
14496
|
+
wW && Logger.error(wW);
|
|
14497
|
+
}, EW = [
|
|
14498
|
+
wW
|
|
14499
|
+
], r[77] = wW, r[78] = TW, r[79] = EW), (0, import_react.useEffect)(TW, EW), q) {
|
|
14467
14500
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14468
14501
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14469
14502
|
milliseconds: 200,
|
|
@@ -14472,7 +14505,7 @@ ${c}
|
|
|
14472
14505
|
})
|
|
14473
14506
|
}), r[80] = c2, r[81] = l2), l2;
|
|
14474
14507
|
}
|
|
14475
|
-
let
|
|
14508
|
+
let DW = null;
|
|
14476
14509
|
if (G) {
|
|
14477
14510
|
Logger.error(G);
|
|
14478
14511
|
let e2;
|
|
@@ -14488,61 +14521,61 @@ ${c}
|
|
|
14488
14521
|
children: G.message || "An unknown error occurred"
|
|
14489
14522
|
})
|
|
14490
14523
|
]
|
|
14491
|
-
}), r[82] = G, r[83] = e2),
|
|
14524
|
+
}), r[82] = G, r[83] = e2), DW = e2;
|
|
14492
14525
|
}
|
|
14493
|
-
let
|
|
14494
|
-
r[84] === O ?
|
|
14526
|
+
let OW;
|
|
14527
|
+
r[84] === O ? OW = r[85] : (OW = () => {
|
|
14495
14528
|
j(!O);
|
|
14496
|
-
}, r[84] = O, r[85] =
|
|
14497
|
-
let
|
|
14498
|
-
r[86] !== l || r[87] !==
|
|
14529
|
+
}, r[84] = O, r[85] = OW);
|
|
14530
|
+
let kW = OW, AW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, jW = W == null ? void 0 : W.rawRows, MW = rW && !q, NW = (W == null ? void 0 : W.totalRows) ?? e.totalRows, PW = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, FW = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, IW;
|
|
14531
|
+
r[86] !== l || r[87] !== CW || r[88] !== O || r[89] !== w || r[90] !== _W || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== mW || r[95] !== hW || r[96] !== m || r[97] !== AW || r[98] !== jW || r[99] !== MW || r[100] !== NW || r[101] !== PW || r[102] !== FW || r[103] !== kW ? (IW = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
14499
14532
|
...e,
|
|
14500
|
-
data:
|
|
14501
|
-
rawData:
|
|
14502
|
-
columnSummaries:
|
|
14533
|
+
data: AW,
|
|
14534
|
+
rawData: jW,
|
|
14535
|
+
columnSummaries: CW,
|
|
14503
14536
|
sorting: m,
|
|
14504
14537
|
setSorting: h,
|
|
14505
14538
|
searchQuery: y,
|
|
14506
14539
|
setSearchQuery: b,
|
|
14507
14540
|
filters: w,
|
|
14508
14541
|
setFilters: T,
|
|
14509
|
-
reloading:
|
|
14510
|
-
totalRows:
|
|
14511
|
-
sizeBytes:
|
|
14512
|
-
sizeBytesIsLoading:
|
|
14542
|
+
reloading: MW,
|
|
14543
|
+
totalRows: NW,
|
|
14544
|
+
sizeBytes: mW,
|
|
14545
|
+
sizeBytesIsLoading: hW,
|
|
14513
14546
|
paginationState: _,
|
|
14514
14547
|
setPaginationState: v,
|
|
14515
|
-
cellStyles:
|
|
14516
|
-
cellHoverTexts:
|
|
14517
|
-
toggleDisplayHeader:
|
|
14548
|
+
cellStyles: PW,
|
|
14549
|
+
cellHoverTexts: FW,
|
|
14550
|
+
toggleDisplayHeader: kW,
|
|
14518
14551
|
isChartBuilderOpen: O,
|
|
14519
|
-
getRow:
|
|
14552
|
+
getRow: _W,
|
|
14520
14553
|
cellId: l,
|
|
14521
14554
|
maxHeight: e.maxHeight
|
|
14522
|
-
}), r[86] = l, r[87] =
|
|
14523
|
-
let
|
|
14524
|
-
r[105] !== l || r[106] !==
|
|
14555
|
+
}), r[86] = l, r[87] = CW, r[88] = O, r[89] = w, r[90] = _W, r[91] = _, r[92] = e, r[93] = y, r[94] = mW, r[95] = hW, r[96] = m, r[97] = AW, r[98] = jW, r[99] = MW, r[100] = NW, r[101] = PW, r[102] = FW, r[103] = kW, r[104] = IW) : IW = r[104];
|
|
14556
|
+
let LW = IW, RW;
|
|
14557
|
+
r[105] !== l || r[106] !== LW || 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 ? (RW = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
14525
14558
|
displayHeader: O,
|
|
14526
14559
|
onCloseChartBuilder: () => j(false),
|
|
14527
14560
|
data: (W == null ? void 0 : W.rows) || [],
|
|
14528
14561
|
columns: e.totalColumns,
|
|
14529
14562
|
totalRows: e.totalRows,
|
|
14530
|
-
dataTable:
|
|
14563
|
+
dataTable: LW,
|
|
14531
14564
|
getDataUrl: e.get_data_url,
|
|
14532
14565
|
fieldTypes: e.fieldTypes,
|
|
14533
14566
|
cellId: l
|
|
14534
|
-
}) :
|
|
14535
|
-
let
|
|
14536
|
-
return r[115] !==
|
|
14567
|
+
}) : LW, r[105] = l, r[106] = LW, 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] = RW) : RW = r[114];
|
|
14568
|
+
let zW;
|
|
14569
|
+
return r[115] !== DW || r[116] !== RW ? (zW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14537
14570
|
children: [
|
|
14538
|
-
|
|
14539
|
-
|
|
14571
|
+
DW,
|
|
14572
|
+
RW
|
|
14540
14573
|
]
|
|
14541
|
-
}), r[115] =
|
|
14574
|
+
}), r[115] = DW, r[116] = RW, r[117] = zW) : zW = r[117], zW;
|
|
14542
14575
|
});
|
|
14543
14576
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
14544
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters:
|
|
14545
|
-
let
|
|
14577
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: rW, setFilters: iW, reloading: Z, freezeColumnsLeft: aW, freezeColumnsRight: oW, hiddenColumns: sW, textJustifyColumns: cW, wrappedColumns: lW, columnWidths: uW, headerTooltip: dW, totalColumns: fW, get_row_ids: pW, cellStyles: mW, hoverTemplate: hW, cellHoverTexts: gW, toggleDisplayHeader: _W, isChartBuilderOpen: vW, calculate_top_k_rows: yW, preview_column: bW, getRow: xW, cellId: SW, maxHeight: CW }) => {
|
|
14578
|
+
let wW = (0, import_react.useId)(), { locale: TW } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [EW, DW] = (0, import_react.useState)(0), { isPanelOpen: OW, isAnyPanelOpen: kW, togglePanel: AW, panelType: jW, setPanelType: MW } = usePanelOwnership(wW, SW), NW = isStaticNotebook(), PW = (0, import_react.useMemo)(() => {
|
|
14546
14579
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
14547
14580
|
let e2 = toFieldTypes(O);
|
|
14548
14581
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -14551,13 +14584,13 @@ ${c}
|
|
|
14551
14584
|
}, [
|
|
14552
14585
|
O,
|
|
14553
14586
|
L
|
|
14554
|
-
]),
|
|
14587
|
+
]), FW = useDeepCompareMemoize(O ?? inferFieldTypes(r)), IW = (0, import_react.useMemo)(() => f === "all" ? FW : FW.slice(0, f), [
|
|
14555
14588
|
f,
|
|
14556
|
-
|
|
14557
|
-
]),
|
|
14589
|
+
FW
|
|
14590
|
+
]), LW = (0, import_react.useMemo)(() => {
|
|
14558
14591
|
let e2 = {};
|
|
14559
14592
|
if (r && r.length > 0) {
|
|
14560
|
-
for (let [c2, l2] of
|
|
14593
|
+
for (let [c2, l2] of IW) if (l2[0] === "number") {
|
|
14561
14594
|
let l3 = 0;
|
|
14562
14595
|
for (let e3 of r) {
|
|
14563
14596
|
let r2 = e3[c2];
|
|
@@ -14572,95 +14605,95 @@ ${c}
|
|
|
14572
14605
|
return e2;
|
|
14573
14606
|
}, [
|
|
14574
14607
|
r,
|
|
14575
|
-
|
|
14576
|
-
]),
|
|
14577
|
-
O || (w = false),
|
|
14578
|
-
let
|
|
14579
|
-
rowHeaders:
|
|
14608
|
+
IW
|
|
14609
|
+
]), RW = useDeepCompareMemoize(T), zW = useDeepCompareMemoize(cW), BW = useDeepCompareMemoize(lW), VW = useDeepCompareMemoize(uW), HW = useDeepCompareMemoize(PW), UW = useDeepCompareMemoize(LW), WW = IW.length;
|
|
14610
|
+
O || (w = false), NW && (m = null);
|
|
14611
|
+
let GW = (0, import_react.useMemo)(() => generateColumns({
|
|
14612
|
+
rowHeaders: RW,
|
|
14580
14613
|
selection: m,
|
|
14581
|
-
chartSpecModel:
|
|
14582
|
-
fieldTypes:
|
|
14583
|
-
textJustifyColumns:
|
|
14584
|
-
wrappedColumns:
|
|
14585
|
-
columnWidths:
|
|
14586
|
-
headerTooltip:
|
|
14614
|
+
chartSpecModel: HW,
|
|
14615
|
+
fieldTypes: IW,
|
|
14616
|
+
textJustifyColumns: zW,
|
|
14617
|
+
wrappedColumns: BW,
|
|
14618
|
+
columnWidths: VW,
|
|
14619
|
+
headerTooltip: dW,
|
|
14587
14620
|
showDataTypes: w,
|
|
14588
|
-
calculateTopKRows:
|
|
14589
|
-
fractionDigitsByColumn:
|
|
14621
|
+
calculateTopKRows: yW,
|
|
14622
|
+
fractionDigitsByColumn: UW
|
|
14590
14623
|
}), [
|
|
14591
14624
|
m,
|
|
14592
14625
|
w,
|
|
14593
|
-
|
|
14594
|
-
LW,
|
|
14595
|
-
FW,
|
|
14626
|
+
HW,
|
|
14596
14627
|
RW,
|
|
14628
|
+
IW,
|
|
14597
14629
|
zW,
|
|
14598
14630
|
BW,
|
|
14599
|
-
|
|
14600
|
-
|
|
14601
|
-
|
|
14602
|
-
|
|
14631
|
+
VW,
|
|
14632
|
+
dW,
|
|
14633
|
+
yW,
|
|
14634
|
+
UW
|
|
14635
|
+
]), KW = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
14603
14636
|
e2,
|
|
14604
14637
|
true
|
|
14605
14638
|
])), [
|
|
14606
14639
|
h
|
|
14607
|
-
]),
|
|
14640
|
+
]), qW = useEvent_default((e2) => {
|
|
14608
14641
|
if (m === "single") {
|
|
14609
14642
|
let r2 = Functions.asUpdater(e2)({});
|
|
14610
14643
|
z(Object.keys(r2).slice(0, 1));
|
|
14611
14644
|
}
|
|
14612
14645
|
if (m === "multi") {
|
|
14613
|
-
let r2 = Functions.asUpdater(e2)(
|
|
14646
|
+
let r2 = Functions.asUpdater(e2)(KW);
|
|
14614
14647
|
z(Object.keys(r2));
|
|
14615
14648
|
}
|
|
14616
|
-
}),
|
|
14617
|
-
if (
|
|
14649
|
+
}), JW = useEvent_default((e2) => {
|
|
14650
|
+
if (DW(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
14618
14651
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
14619
14652
|
r2 !== null && M((e3) => ({
|
|
14620
14653
|
...e3,
|
|
14621
14654
|
pageIndex: r2
|
|
14622
14655
|
}));
|
|
14623
|
-
}),
|
|
14624
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
14625
|
-
}),
|
|
14626
|
-
if (!(!
|
|
14656
|
+
}), YW = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), XW = useEvent_default((e2) => {
|
|
14657
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(YW).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(YW));
|
|
14658
|
+
}), ZW = m === "multi" || m === "single", QW = y && !!bW, $W = isInVscodeExtension(), eG = isIslands(), tG = (0, import_react.useMemo)(() => {
|
|
14659
|
+
if (!(!kW || !(b || QW))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
14627
14660
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
14628
|
-
rowIdx:
|
|
14629
|
-
setRowIdx:
|
|
14661
|
+
rowIdx: EW,
|
|
14662
|
+
setRowIdx: JW,
|
|
14630
14663
|
totalRows: l,
|
|
14631
|
-
fieldTypes:
|
|
14632
|
-
getRow:
|
|
14633
|
-
isSelectable:
|
|
14634
|
-
isRowSelected: !!
|
|
14635
|
-
handleRowSelectionChange:
|
|
14636
|
-
previewColumn:
|
|
14637
|
-
totalColumns:
|
|
14638
|
-
tableId:
|
|
14664
|
+
fieldTypes: FW,
|
|
14665
|
+
getRow: xW,
|
|
14666
|
+
isSelectable: ZW,
|
|
14667
|
+
isRowSelected: !!KW[EW],
|
|
14668
|
+
handleRowSelectionChange: qW,
|
|
14669
|
+
previewColumn: bW,
|
|
14670
|
+
totalColumns: fW,
|
|
14671
|
+
tableId: wW,
|
|
14639
14672
|
table: e2,
|
|
14640
|
-
showRowExplorer: b &&
|
|
14641
|
-
showColumnExplorer:
|
|
14642
|
-
activeTab:
|
|
14643
|
-
onTabChange:
|
|
14673
|
+
showRowExplorer: b && !$W,
|
|
14674
|
+
showColumnExplorer: QW && !$W,
|
|
14675
|
+
activeTab: jW,
|
|
14676
|
+
onTabChange: MW
|
|
14644
14677
|
})
|
|
14645
14678
|
});
|
|
14646
14679
|
}, [
|
|
14647
|
-
|
|
14680
|
+
kW,
|
|
14648
14681
|
b,
|
|
14682
|
+
QW,
|
|
14683
|
+
EW,
|
|
14684
|
+
JW,
|
|
14685
|
+
l,
|
|
14686
|
+
FW,
|
|
14687
|
+
xW,
|
|
14649
14688
|
ZW,
|
|
14650
|
-
|
|
14689
|
+
KW,
|
|
14651
14690
|
qW,
|
|
14652
|
-
l,
|
|
14653
|
-
PW,
|
|
14654
14691
|
bW,
|
|
14655
|
-
|
|
14656
|
-
|
|
14657
|
-
|
|
14658
|
-
|
|
14659
|
-
|
|
14660
|
-
CW,
|
|
14661
|
-
QW,
|
|
14662
|
-
AW,
|
|
14663
|
-
jW
|
|
14692
|
+
fW,
|
|
14693
|
+
wW,
|
|
14694
|
+
$W,
|
|
14695
|
+
jW,
|
|
14696
|
+
MW
|
|
14664
14697
|
]);
|
|
14665
14698
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14666
14699
|
children: [
|
|
@@ -14672,27 +14705,27 @@ ${c}
|
|
|
14672
14705
|
" rows."
|
|
14673
14706
|
]
|
|
14674
14707
|
}),
|
|
14675
|
-
|
|
14708
|
+
WW < fW && WW > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14676
14709
|
className: "mb-1 rounded",
|
|
14677
14710
|
children: [
|
|
14678
14711
|
"Result clipped. Showing ",
|
|
14679
|
-
|
|
14712
|
+
WW,
|
|
14680
14713
|
" of ",
|
|
14681
|
-
|
|
14714
|
+
fW,
|
|
14682
14715
|
" columns."
|
|
14683
14716
|
]
|
|
14684
14717
|
}),
|
|
14685
|
-
|
|
14718
|
+
NW && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14686
14719
|
className: "mb-1 rounded",
|
|
14687
14720
|
children: [
|
|
14688
14721
|
"Showing the first ",
|
|
14689
14722
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14690
|
-
children: prettyNumber(r.length,
|
|
14723
|
+
children: prettyNumber(r.length, TW)
|
|
14691
14724
|
}),
|
|
14692
14725
|
" ",
|
|
14693
14726
|
"of ",
|
|
14694
14727
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14695
|
-
children: prettyNumber(l,
|
|
14728
|
+
children: prettyNumber(l, TW)
|
|
14696
14729
|
}),
|
|
14697
14730
|
" rows. Increase the table's ",
|
|
14698
14731
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -14706,7 +14739,7 @@ ${c}
|
|
|
14706
14739
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
14707
14740
|
}),
|
|
14708
14741
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
14709
|
-
value:
|
|
14742
|
+
value: PW,
|
|
14710
14743
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
14711
14744
|
label: e,
|
|
14712
14745
|
align: "top",
|
|
@@ -14714,14 +14747,14 @@ ${c}
|
|
|
14714
14747
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
14715
14748
|
data: r,
|
|
14716
14749
|
rawData: c,
|
|
14717
|
-
columns:
|
|
14750
|
+
columns: GW,
|
|
14718
14751
|
className: R,
|
|
14719
|
-
maxHeight:
|
|
14752
|
+
maxHeight: CW,
|
|
14720
14753
|
sorting: B,
|
|
14721
14754
|
totalRows: l,
|
|
14722
14755
|
sizeBytes: u,
|
|
14723
14756
|
sizeBytesIsLoading: d,
|
|
14724
|
-
totalColumns:
|
|
14757
|
+
totalColumns: fW,
|
|
14725
14758
|
manualSorting: true,
|
|
14726
14759
|
setSorting: H,
|
|
14727
14760
|
pagination: p,
|
|
@@ -14729,37 +14762,37 @@ ${c}
|
|
|
14729
14762
|
selection: m,
|
|
14730
14763
|
paginationState: j,
|
|
14731
14764
|
setPaginationState: M,
|
|
14732
|
-
rowSelection:
|
|
14733
|
-
cellSelection:
|
|
14734
|
-
cellStyling:
|
|
14735
|
-
hoverTemplate:
|
|
14736
|
-
cellHoverTexts:
|
|
14765
|
+
rowSelection: KW,
|
|
14766
|
+
cellSelection: YW,
|
|
14767
|
+
cellStyling: mW,
|
|
14768
|
+
hoverTemplate: hW,
|
|
14769
|
+
cellHoverTexts: gW,
|
|
14737
14770
|
downloadAs: _ ? I : void 0,
|
|
14738
14771
|
showSearch: W,
|
|
14739
14772
|
searchQuery: G,
|
|
14740
14773
|
onSearchQueryChange: q,
|
|
14741
14774
|
showFilters: g,
|
|
14742
|
-
filters:
|
|
14743
|
-
onFiltersChange:
|
|
14744
|
-
calculateTopKRows:
|
|
14775
|
+
filters: rW,
|
|
14776
|
+
onFiltersChange: iW,
|
|
14777
|
+
calculateTopKRows: yW,
|
|
14745
14778
|
reloading: Z,
|
|
14746
|
-
onRowSelectionChange:
|
|
14747
|
-
freezeColumnsLeft:
|
|
14748
|
-
freezeColumnsRight:
|
|
14749
|
-
hiddenColumns:
|
|
14750
|
-
onCellSelectionChange:
|
|
14751
|
-
getRowIds:
|
|
14752
|
-
toggleDisplayHeader:
|
|
14753
|
-
showChartBuilder: S &&
|
|
14754
|
-
isChartBuilderOpen:
|
|
14779
|
+
onRowSelectionChange: qW,
|
|
14780
|
+
freezeColumnsLeft: aW,
|
|
14781
|
+
freezeColumnsRight: oW,
|
|
14782
|
+
hiddenColumns: sW,
|
|
14783
|
+
onCellSelectionChange: XW,
|
|
14784
|
+
getRowIds: pW,
|
|
14785
|
+
toggleDisplayHeader: _W,
|
|
14786
|
+
showChartBuilder: S && !eG,
|
|
14787
|
+
isChartBuilderOpen: vW,
|
|
14755
14788
|
showPageSizeSelector: v,
|
|
14756
|
-
showTableExplorer: (b ||
|
|
14757
|
-
togglePanel:
|
|
14758
|
-
isPanelOpen:
|
|
14759
|
-
isAnyPanelOpen:
|
|
14760
|
-
viewedRowIdx:
|
|
14761
|
-
onViewedRowChange: (e2) =>
|
|
14762
|
-
renderTableExplorerPanel:
|
|
14789
|
+
showTableExplorer: (b || QW) && !$W && !eG,
|
|
14790
|
+
togglePanel: AW,
|
|
14791
|
+
isPanelOpen: OW,
|
|
14792
|
+
isAnyPanelOpen: kW,
|
|
14793
|
+
viewedRowIdx: EW,
|
|
14794
|
+
onViewedRowChange: (e2) => DW(e2),
|
|
14795
|
+
renderTableExplorerPanel: tG
|
|
14763
14796
|
})
|
|
14764
14797
|
})
|
|
14765
14798
|
})
|
|
@@ -16811,29 +16844,29 @@ ${c}
|
|
|
16811
16844
|
], r[2] = S, r[3] = w);
|
|
16812
16845
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
16813
16846
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
16814
|
-
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q,
|
|
16847
|
+
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, rW] = (0, import_react.useState)(f || EMPTY), iW = (0, import_react.useRef)(null), Z;
|
|
16815
16848
|
r[6] === d ? Z = r[7] : (Z = (e2) => {
|
|
16816
16849
|
var _a3;
|
|
16817
|
-
d && e2 !== "transform" && ((_a3 =
|
|
16850
|
+
d && e2 !== "transform" && ((_a3 = iW.current) == null ? void 0 : _a3.submit());
|
|
16818
16851
|
}, r[6] = d, r[7] = Z);
|
|
16819
|
-
let
|
|
16820
|
-
r[8] === q ?
|
|
16821
|
-
|
|
16822
|
-
}, r[8] = q, r[9] =
|
|
16823
|
-
let
|
|
16824
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
16825
|
-
let e2 =
|
|
16852
|
+
let aW = Z, oW = (0, import_react.useRef)(q), sW;
|
|
16853
|
+
r[8] === q ? sW = r[9] : (sW = () => {
|
|
16854
|
+
oW.current = q;
|
|
16855
|
+
}, r[8] = q, r[9] = sW), (0, import_react.useEffect)(sW);
|
|
16856
|
+
let cW;
|
|
16857
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (cW = () => {
|
|
16858
|
+
let e2 = oW.current;
|
|
16826
16859
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
16827
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
16828
|
-
let
|
|
16829
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
16860
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = cW) : cW = r[12];
|
|
16861
|
+
let lW = f == null ? void 0 : f.transforms.length, uW;
|
|
16862
|
+
r[13] !== T || r[14] !== p || r[15] !== lW ? (uW = [
|
|
16830
16863
|
T,
|
|
16831
|
-
|
|
16832
|
-
|
|
16864
|
+
lW,
|
|
16865
|
+
oW,
|
|
16833
16866
|
p
|
|
16834
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
16835
|
-
let
|
|
16836
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16867
|
+
], r[13] = T, r[14] = p, r[15] = lW, r[16] = uW) : uW = r[16], (0, import_react.useEffect)(cW, uW);
|
|
16868
|
+
let dW;
|
|
16869
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16837
16870
|
value: "transform",
|
|
16838
16871
|
className: "text-xs py-1",
|
|
16839
16872
|
children: [
|
|
@@ -16842,9 +16875,9 @@ ${c}
|
|
|
16842
16875
|
}),
|
|
16843
16876
|
"Transform"
|
|
16844
16877
|
]
|
|
16845
|
-
}), r[17] =
|
|
16846
|
-
let
|
|
16847
|
-
r[18] === H ?
|
|
16878
|
+
}), r[17] = dW) : dW = r[17];
|
|
16879
|
+
let fW;
|
|
16880
|
+
r[18] === H ? fW = r[19] : (fW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16848
16881
|
value: "python-code",
|
|
16849
16882
|
className: "text-xs py-1",
|
|
16850
16883
|
children: [
|
|
@@ -16853,9 +16886,9 @@ ${c}
|
|
|
16853
16886
|
}),
|
|
16854
16887
|
"Python Code"
|
|
16855
16888
|
]
|
|
16856
|
-
}), r[18] = H, r[19] =
|
|
16857
|
-
let
|
|
16858
|
-
r[20] === W ?
|
|
16889
|
+
}), r[18] = H, r[19] = fW);
|
|
16890
|
+
let pW;
|
|
16891
|
+
r[20] === W ? pW = r[21] : (pW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16859
16892
|
value: "sql-code",
|
|
16860
16893
|
className: "text-xs py-1",
|
|
16861
16894
|
children: [
|
|
@@ -16864,54 +16897,54 @@ ${c}
|
|
|
16864
16897
|
}),
|
|
16865
16898
|
"SQL Code"
|
|
16866
16899
|
]
|
|
16867
|
-
}), r[20] = W, r[21] =
|
|
16868
|
-
let pW;
|
|
16869
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pW = (0, import_jsx_runtime.jsx)("div", {
|
|
16870
|
-
className: "grow"
|
|
16871
|
-
}), r[22] = pW) : pW = r[22];
|
|
16900
|
+
}), r[20] = W, r[21] = pW);
|
|
16872
16901
|
let mW;
|
|
16873
|
-
r[
|
|
16902
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (mW = (0, import_jsx_runtime.jsx)("div", {
|
|
16903
|
+
className: "grow"
|
|
16904
|
+
}), r[22] = mW) : mW = r[22];
|
|
16905
|
+
let hW;
|
|
16906
|
+
r[23] !== fW || r[24] !== pW ? (hW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
16874
16907
|
className: "h-8",
|
|
16875
16908
|
children: [
|
|
16876
|
-
uW,
|
|
16877
16909
|
dW,
|
|
16878
16910
|
fW,
|
|
16879
|
-
pW
|
|
16911
|
+
pW,
|
|
16912
|
+
mW
|
|
16880
16913
|
]
|
|
16881
|
-
}), r[23] =
|
|
16882
|
-
let hW;
|
|
16883
|
-
r[26] === j ? hW = r[27] : (hW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16884
|
-
size: "small"
|
|
16885
|
-
}), r[26] = j, r[27] = hW);
|
|
16914
|
+
}), r[23] = fW, r[24] = pW, r[25] = hW) : hW = r[25];
|
|
16886
16915
|
let gW;
|
|
16887
|
-
r[
|
|
16916
|
+
r[26] === j ? gW = r[27] : (gW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16917
|
+
size: "small"
|
|
16918
|
+
}), r[26] = j, r[27] = gW);
|
|
16919
|
+
let _W;
|
|
16920
|
+
r[28] !== hW || r[29] !== gW ? (_W = (0, import_jsx_runtime.jsxs)("div", {
|
|
16888
16921
|
className: "flex items-center gap-2",
|
|
16889
16922
|
children: [
|
|
16890
|
-
|
|
16891
|
-
|
|
16923
|
+
hW,
|
|
16924
|
+
gW
|
|
16892
16925
|
]
|
|
16893
|
-
}), r[28] =
|
|
16894
|
-
let _W;
|
|
16895
|
-
r[31] !== p || r[32] !== f ? (_W = (e2) => {
|
|
16896
|
-
dequal(e2, f) || (p(e2), nW(e2));
|
|
16897
|
-
}, r[31] = p, r[32] = f, r[33] = _W) : _W = r[33];
|
|
16926
|
+
}), r[28] = hW, r[29] = gW, r[30] = _W) : _W = r[30];
|
|
16898
16927
|
let vW;
|
|
16899
|
-
r[
|
|
16928
|
+
r[31] !== p || r[32] !== f ? (vW = (e2) => {
|
|
16929
|
+
dequal(e2, f) || (p(e2), rW(e2));
|
|
16930
|
+
}, r[31] = p, r[32] = f, r[33] = vW) : vW = r[33];
|
|
16931
|
+
let yW;
|
|
16932
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== vW ? (yW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16900
16933
|
value: "transform",
|
|
16901
16934
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16902
16935
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
16903
|
-
ref:
|
|
16936
|
+
ref: iW,
|
|
16904
16937
|
initialValue: q,
|
|
16905
16938
|
columns: c,
|
|
16906
|
-
onChange:
|
|
16907
|
-
onInvalidChange:
|
|
16939
|
+
onChange: vW,
|
|
16940
|
+
onInvalidChange: rW,
|
|
16908
16941
|
getColumnValues: h,
|
|
16909
16942
|
columnTypesPerStep: B,
|
|
16910
16943
|
lazy: d
|
|
16911
16944
|
})
|
|
16912
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
16913
|
-
let
|
|
16914
|
-
r[41] === H ?
|
|
16945
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = vW, r[40] = yW) : yW = r[40];
|
|
16946
|
+
let bW;
|
|
16947
|
+
r[41] === H ? bW = r[42] : (bW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16915
16948
|
value: "python-code",
|
|
16916
16949
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16917
16950
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16920,9 +16953,9 @@ ${c}
|
|
|
16920
16953
|
code: H,
|
|
16921
16954
|
language: "python"
|
|
16922
16955
|
})
|
|
16923
|
-
}), r[41] = H, r[42] =
|
|
16924
|
-
let
|
|
16925
|
-
r[43] === W ?
|
|
16956
|
+
}), r[41] = H, r[42] = bW);
|
|
16957
|
+
let xW;
|
|
16958
|
+
r[43] === W ? xW = r[44] : (xW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16926
16959
|
value: "sql-code",
|
|
16927
16960
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16928
16961
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16931,35 +16964,35 @@ ${c}
|
|
|
16931
16964
|
code: W,
|
|
16932
16965
|
language: "sql"
|
|
16933
16966
|
})
|
|
16934
|
-
}), r[43] = W, r[44] =
|
|
16935
|
-
let
|
|
16936
|
-
r[45] !==
|
|
16967
|
+
}), r[43] = W, r[44] = xW);
|
|
16968
|
+
let SW;
|
|
16969
|
+
r[45] !== aW || r[46] !== _W || r[47] !== yW || r[48] !== bW || r[49] !== xW ? (SW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
16937
16970
|
defaultValue: "transform",
|
|
16938
|
-
onValueChange:
|
|
16971
|
+
onValueChange: aW,
|
|
16939
16972
|
children: [
|
|
16940
|
-
|
|
16941
|
-
vW,
|
|
16973
|
+
_W,
|
|
16942
16974
|
yW,
|
|
16943
|
-
bW
|
|
16975
|
+
bW,
|
|
16976
|
+
xW
|
|
16944
16977
|
]
|
|
16945
|
-
}), r[45] =
|
|
16946
|
-
let
|
|
16947
|
-
r[51] === O ?
|
|
16978
|
+
}), r[45] = aW, r[46] = _W, r[47] = yW, r[48] = bW, r[49] = xW, r[50] = SW) : SW = r[50];
|
|
16979
|
+
let CW;
|
|
16980
|
+
r[51] === O ? CW = r[52] : (CW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
16948
16981
|
error: O
|
|
16949
|
-
}), r[51] = O, r[52] =
|
|
16950
|
-
let
|
|
16951
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
16982
|
+
}), r[51] = O, r[52] = CW);
|
|
16983
|
+
let wW = I || "", TW = L ?? 0, EW = G ?? 0, DW = R || Arrays.EMPTY, OW = L && L > 5 || false, kW;
|
|
16984
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== wW || r[61] !== TW || r[62] !== EW || r[63] !== DW || r[64] !== OW ? (kW = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
16952
16985
|
label: null,
|
|
16953
16986
|
className: "rounded-b border-x border-b",
|
|
16954
|
-
data:
|
|
16987
|
+
data: wW,
|
|
16955
16988
|
hasStableRowId: false,
|
|
16956
|
-
totalRows:
|
|
16957
|
-
totalColumns:
|
|
16989
|
+
totalRows: TW,
|
|
16990
|
+
totalColumns: EW,
|
|
16958
16991
|
maxColumns: "all",
|
|
16959
16992
|
pageSize: l,
|
|
16960
16993
|
pagination: true,
|
|
16961
16994
|
fieldTypes: z,
|
|
16962
|
-
rowHeaders:
|
|
16995
|
+
rowHeaders: DW,
|
|
16963
16996
|
showDownload: u,
|
|
16964
16997
|
download_as: _,
|
|
16965
16998
|
get_size_bytes: v,
|
|
@@ -16969,7 +17002,7 @@ ${c}
|
|
|
16969
17002
|
showColumnSummaries: false,
|
|
16970
17003
|
showDataTypes: true,
|
|
16971
17004
|
get_column_summaries: getColumnSummaries,
|
|
16972
|
-
showPageSizeSelector:
|
|
17005
|
+
showPageSizeSelector: OW,
|
|
16973
17006
|
showColumnExplorer: false,
|
|
16974
17007
|
showRowExplorer: true,
|
|
16975
17008
|
showChartBuilder: false,
|
|
@@ -16978,15 +17011,15 @@ ${c}
|
|
|
16978
17011
|
selection: null,
|
|
16979
17012
|
lazy: false,
|
|
16980
17013
|
host: y
|
|
16981
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
16982
|
-
let
|
|
16983
|
-
return r[66] !==
|
|
17014
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = wW, r[61] = TW, r[62] = EW, r[63] = DW, r[64] = OW, r[65] = kW) : kW = r[65];
|
|
17015
|
+
let AW;
|
|
17016
|
+
return r[66] !== SW || r[67] !== CW || r[68] !== kW ? (AW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16984
17017
|
children: [
|
|
16985
|
-
xW,
|
|
16986
17018
|
SW,
|
|
16987
|
-
|
|
17019
|
+
CW,
|
|
17020
|
+
kW
|
|
16988
17021
|
]
|
|
16989
|
-
}), r[66] =
|
|
17022
|
+
}), r[66] = SW, r[67] = CW, r[68] = kW, r[69] = AW) : AW = r[69], AW;
|
|
16990
17023
|
});
|
|
16991
17024
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
16992
17025
|
function getColumnSummaries() {
|
|
@@ -17177,23 +17210,23 @@ ${c}
|
|
|
17177
17210
|
}, [
|
|
17178
17211
|
H
|
|
17179
17212
|
]);
|
|
17180
|
-
let q = (R == null ? void 0 : R.files) ?? [],
|
|
17213
|
+
let q = (R == null ? void 0 : R.files) ?? [], rW = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", aW = l === "file" || l === "all", oW = q.filter((e2) => Z && e2.is_directory || aW && !e2.is_directory), sW = oW.length > 0 && oW.every((e2) => rW.has(e2.path));
|
|
17181
17214
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
17182
17215
|
kind: "danger",
|
|
17183
17216
|
children: z.message
|
|
17184
17217
|
});
|
|
17185
|
-
let
|
|
17218
|
+
let cW = PathBuilder.guessDeliminator(c).deliminator, lW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
17186
17219
|
children: e2.path
|
|
17187
17220
|
}, e2.id));
|
|
17188
|
-
function
|
|
17221
|
+
function uW(e2) {
|
|
17189
17222
|
var _a4;
|
|
17190
17223
|
if (v) return;
|
|
17191
17224
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
17192
|
-
if (g ===
|
|
17225
|
+
if (g === cW) {
|
|
17193
17226
|
y(false);
|
|
17194
17227
|
return;
|
|
17195
17228
|
}
|
|
17196
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
17229
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = cW);
|
|
17197
17230
|
}
|
|
17198
17231
|
let r2 = e2.length < c.length;
|
|
17199
17232
|
if (f && r2) {
|
|
@@ -17206,7 +17239,7 @@ ${c}
|
|
|
17206
17239
|
}
|
|
17207
17240
|
M.current = ((_a4 = j.current) == null ? void 0 : _a4.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
17208
17241
|
}
|
|
17209
|
-
function
|
|
17242
|
+
function dW({ path: e2, name: r2, isDirectory: c2 }) {
|
|
17210
17243
|
return {
|
|
17211
17244
|
id: e2,
|
|
17212
17245
|
name: r2,
|
|
@@ -17214,27 +17247,27 @@ ${c}
|
|
|
17214
17247
|
is_directory: c2
|
|
17215
17248
|
};
|
|
17216
17249
|
}
|
|
17217
|
-
function
|
|
17218
|
-
let f2 =
|
|
17250
|
+
function fW({ path: c2, name: l2, isDirectory: d2 }) {
|
|
17251
|
+
let f2 = dW({
|
|
17219
17252
|
path: c2,
|
|
17220
17253
|
name: l2,
|
|
17221
17254
|
isDirectory: d2
|
|
17222
17255
|
});
|
|
17223
|
-
|
|
17256
|
+
rW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
17224
17257
|
...e,
|
|
17225
17258
|
f2
|
|
17226
17259
|
] : [
|
|
17227
17260
|
f2
|
|
17228
17261
|
]);
|
|
17229
17262
|
}
|
|
17230
|
-
function
|
|
17263
|
+
function pW() {
|
|
17231
17264
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
17232
17265
|
}
|
|
17233
|
-
function
|
|
17266
|
+
function mW() {
|
|
17234
17267
|
let c2 = [];
|
|
17235
17268
|
for (let e2 of q) {
|
|
17236
|
-
if (!Z && e2.is_directory ||
|
|
17237
|
-
let r2 =
|
|
17269
|
+
if (!Z && e2.is_directory || rW.has(e2.path)) continue;
|
|
17270
|
+
let r2 = dW({
|
|
17238
17271
|
path: e2.path,
|
|
17239
17272
|
name: e2.name,
|
|
17240
17273
|
isDirectory: e2.is_directory
|
|
@@ -17246,20 +17279,20 @@ ${c}
|
|
|
17246
17279
|
...c2
|
|
17247
17280
|
]);
|
|
17248
17281
|
}
|
|
17249
|
-
let
|
|
17282
|
+
let hW = [
|
|
17250
17283
|
{
|
|
17251
17284
|
key: "parent",
|
|
17252
17285
|
name: PARENT_DIRECTORY,
|
|
17253
17286
|
Icon: CornerLeftUp,
|
|
17254
17287
|
isSelected: false,
|
|
17255
17288
|
canSelect: false,
|
|
17256
|
-
onPrimary: () =>
|
|
17289
|
+
onPrimary: () => uW(PARENT_DIRECTORY),
|
|
17257
17290
|
onToggleSelect: null
|
|
17258
17291
|
},
|
|
17259
17292
|
...q.map((e2) => {
|
|
17260
17293
|
let r2 = e2.path;
|
|
17261
17294
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17262
|
-
let c2 = Z && e2.is_directory ||
|
|
17295
|
+
let c2 = Z && e2.is_directory || aW && !e2.is_directory, l2 = rW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => fW({
|
|
17263
17296
|
path: r2,
|
|
17264
17297
|
name: e2.name,
|
|
17265
17298
|
isDirectory: e2.is_directory
|
|
@@ -17270,46 +17303,46 @@ ${c}
|
|
|
17270
17303
|
Icon: FILE_ICON[u2],
|
|
17271
17304
|
isSelected: l2,
|
|
17272
17305
|
canSelect: c2,
|
|
17273
|
-
onPrimary: e2.is_directory ? () =>
|
|
17306
|
+
onPrimary: e2.is_directory ? () => uW(r2) : c2 ? d2 : () => {
|
|
17274
17307
|
},
|
|
17275
17308
|
onToggleSelect: c2 ? d2 : null
|
|
17276
17309
|
};
|
|
17277
17310
|
})
|
|
17278
17311
|
];
|
|
17279
|
-
function
|
|
17312
|
+
function gW(e2) {
|
|
17280
17313
|
var _a4;
|
|
17281
17314
|
E(e2), (_a4 = O.current[e2]) == null ? void 0 : _a4.focus();
|
|
17282
17315
|
}
|
|
17283
|
-
function
|
|
17316
|
+
function _W(e2, r2) {
|
|
17284
17317
|
var _a4, _b3;
|
|
17285
|
-
let c2 =
|
|
17318
|
+
let c2 = hW.length - 1;
|
|
17286
17319
|
switch (e2.key) {
|
|
17287
17320
|
case "ArrowDown":
|
|
17288
|
-
e2.preventDefault(),
|
|
17321
|
+
e2.preventDefault(), gW(Math.min(r2 + 1, c2));
|
|
17289
17322
|
break;
|
|
17290
17323
|
case "ArrowUp":
|
|
17291
|
-
e2.preventDefault(),
|
|
17324
|
+
e2.preventDefault(), gW(Math.max(r2 - 1, 0));
|
|
17292
17325
|
break;
|
|
17293
17326
|
case "Home":
|
|
17294
|
-
e2.preventDefault(),
|
|
17327
|
+
e2.preventDefault(), gW(0);
|
|
17295
17328
|
break;
|
|
17296
17329
|
case "End":
|
|
17297
|
-
e2.preventDefault(),
|
|
17330
|
+
e2.preventDefault(), gW(c2);
|
|
17298
17331
|
break;
|
|
17299
17332
|
case "Enter":
|
|
17300
|
-
e2.preventDefault(),
|
|
17333
|
+
e2.preventDefault(), hW[r2].onPrimary();
|
|
17301
17334
|
break;
|
|
17302
17335
|
case " ":
|
|
17303
|
-
e2.preventDefault(), (_b3 = (_a4 =
|
|
17336
|
+
e2.preventDefault(), (_b3 = (_a4 = hW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a4);
|
|
17304
17337
|
break;
|
|
17305
17338
|
}
|
|
17306
17339
|
}
|
|
17307
|
-
let { parentDirectories:
|
|
17340
|
+
let { parentDirectories: vW } = getProtocolAndParentDirectories({
|
|
17308
17341
|
path: g,
|
|
17309
|
-
delimiter:
|
|
17342
|
+
delimiter: cW,
|
|
17310
17343
|
initialPath: c,
|
|
17311
17344
|
restrictNavigation: f
|
|
17312
|
-
}),
|
|
17345
|
+
}), yW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
17313
17346
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
17314
17347
|
children: [
|
|
17315
17348
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -17319,7 +17352,7 @@ ${c}
|
|
|
17319
17352
|
(() => {
|
|
17320
17353
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
17321
17354
|
children: renderHTML({
|
|
17322
|
-
html: d ?? `Select ${
|
|
17355
|
+
html: d ?? `Select ${yW.join(" and ", 2)}...`
|
|
17323
17356
|
})
|
|
17324
17357
|
});
|
|
17325
17358
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -17333,8 +17366,8 @@ ${c}
|
|
|
17333
17366
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
17334
17367
|
size: "xs",
|
|
17335
17368
|
variant: "link",
|
|
17336
|
-
onClick:
|
|
17337
|
-
children:
|
|
17369
|
+
onClick: sW ? pW : mW,
|
|
17370
|
+
children: sW ? "Deselect all" : "Select all"
|
|
17338
17371
|
})
|
|
17339
17372
|
})
|
|
17340
17373
|
]
|
|
@@ -17344,8 +17377,8 @@ ${c}
|
|
|
17344
17377
|
className: "mt-2 w-full",
|
|
17345
17378
|
placeholder: g,
|
|
17346
17379
|
value: g,
|
|
17347
|
-
onChange: (e2) =>
|
|
17348
|
-
children:
|
|
17380
|
+
onChange: (e2) => uW(e2.target.value),
|
|
17381
|
+
children: vW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
17349
17382
|
value: e2,
|
|
17350
17383
|
children: e2
|
|
17351
17384
|
}, e2))
|
|
@@ -17381,14 +17414,14 @@ ${c}
|
|
|
17381
17414
|
"aria-label": "File browser",
|
|
17382
17415
|
"aria-multiselectable": u,
|
|
17383
17416
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17384
|
-
children:
|
|
17417
|
+
children: hW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17385
17418
|
role: "row",
|
|
17386
17419
|
ref: (e3) => {
|
|
17387
17420
|
O.current[r2] = e3;
|
|
17388
17421
|
},
|
|
17389
17422
|
tabIndex: r2 === T ? 0 : -1,
|
|
17390
17423
|
onFocus: () => E(r2),
|
|
17391
|
-
onKeyDown: (e3) =>
|
|
17424
|
+
onKeyDown: (e3) => _W(e3, r2),
|
|
17392
17425
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
17393
17426
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
17394
17427
|
}),
|
|
@@ -17431,7 +17464,7 @@ ${c}
|
|
|
17431
17464
|
children: [
|
|
17432
17465
|
e.length,
|
|
17433
17466
|
" ",
|
|
17434
|
-
|
|
17467
|
+
yW.join(" or ", e.length),
|
|
17435
17468
|
" ",
|
|
17436
17469
|
"selected"
|
|
17437
17470
|
]
|
|
@@ -17451,7 +17484,7 @@ ${c}
|
|
|
17451
17484
|
marginBlock: 0
|
|
17452
17485
|
},
|
|
17453
17486
|
className: "m-0 text-xs text-muted-foreground",
|
|
17454
|
-
children:
|
|
17487
|
+
children: lW
|
|
17455
17488
|
})
|
|
17456
17489
|
})
|
|
17457
17490
|
]
|
|
@@ -22833,55 +22866,55 @@ ${c}
|
|
|
22833
22866
|
return typeof S == "function" ? S : noop$2;
|
|
22834
22867
|
}, [
|
|
22835
22868
|
S
|
|
22836
|
-
]), q = (0, import_react.useRef)(null),
|
|
22837
|
-
!
|
|
22838
|
-
|
|
22869
|
+
]), q = (0, import_react.useRef)(null), rW = (0, import_react.useRef)(null), iW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), Z = iW[0], aW = iW[1], oW = Z.isFocused, sW = Z.isFileDialogActive, cW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), lW = function() {
|
|
22870
|
+
!cW.current && sW && setTimeout(function() {
|
|
22871
|
+
rW.current && (rW.current.files.length || (aW({
|
|
22839
22872
|
type: "closeDialog"
|
|
22840
22873
|
}), G()));
|
|
22841
22874
|
}, 300);
|
|
22842
22875
|
};
|
|
22843
22876
|
(0, import_react.useEffect)(function() {
|
|
22844
|
-
return window.addEventListener("focus",
|
|
22845
|
-
window.removeEventListener("focus",
|
|
22877
|
+
return window.addEventListener("focus", lW, false), function() {
|
|
22878
|
+
window.removeEventListener("focus", lW, false);
|
|
22846
22879
|
};
|
|
22847
22880
|
}, [
|
|
22848
|
-
|
|
22849
|
-
|
|
22881
|
+
rW,
|
|
22882
|
+
sW,
|
|
22850
22883
|
G,
|
|
22851
|
-
|
|
22884
|
+
cW
|
|
22852
22885
|
]);
|
|
22853
|
-
var
|
|
22854
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
22886
|
+
var uW = (0, import_react.useRef)([]), dW = (0, import_react.useRef)([]), fW = function(e2) {
|
|
22887
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), uW.current = []);
|
|
22855
22888
|
};
|
|
22856
22889
|
(0, import_react.useEffect)(function() {
|
|
22857
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
22858
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
22890
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", fW, false)), function() {
|
|
22891
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", fW));
|
|
22859
22892
|
};
|
|
22860
22893
|
}, [
|
|
22861
22894
|
q,
|
|
22862
22895
|
O
|
|
22863
22896
|
]), (0, import_react.useEffect)(function() {
|
|
22864
22897
|
var e2 = function(e3) {
|
|
22865
|
-
|
|
22898
|
+
dW.current = [].concat(_toConsumableArray(dW.current), [
|
|
22866
22899
|
e3.target
|
|
22867
|
-
]), isEvtWithFiles(e3) &&
|
|
22900
|
+
]), isEvtWithFiles(e3) && aW({
|
|
22868
22901
|
isDragGlobal: true,
|
|
22869
22902
|
type: "setDragGlobal"
|
|
22870
22903
|
});
|
|
22871
22904
|
}, r2 = function(e3) {
|
|
22872
|
-
|
|
22905
|
+
dW.current = dW.current.filter(function(r3) {
|
|
22873
22906
|
return r3 !== e3.target && r3 !== null;
|
|
22874
|
-
}), !(
|
|
22907
|
+
}), !(dW.current.length > 0) && aW({
|
|
22875
22908
|
isDragGlobal: false,
|
|
22876
22909
|
type: "setDragGlobal"
|
|
22877
22910
|
});
|
|
22878
22911
|
}, c2 = function() {
|
|
22879
|
-
|
|
22912
|
+
dW.current = [], aW({
|
|
22880
22913
|
isDragGlobal: false,
|
|
22881
22914
|
type: "setDragGlobal"
|
|
22882
22915
|
});
|
|
22883
22916
|
}, l2 = function() {
|
|
22884
|
-
|
|
22917
|
+
dW.current = [], aW({
|
|
22885
22918
|
isDragGlobal: false,
|
|
22886
22919
|
type: "setDragGlobal"
|
|
22887
22920
|
});
|
|
@@ -22899,12 +22932,12 @@ ${c}
|
|
|
22899
22932
|
E,
|
|
22900
22933
|
l
|
|
22901
22934
|
]);
|
|
22902
|
-
var
|
|
22935
|
+
var pW = (0, import_react.useCallback)(function(e2) {
|
|
22903
22936
|
R ? R(e2) : console.error(e2);
|
|
22904
22937
|
}, [
|
|
22905
22938
|
R
|
|
22906
|
-
]),
|
|
22907
|
-
e2.preventDefault(), e2.persist(),
|
|
22939
|
+
]), mW = (0, import_react.useCallback)(function(e2) {
|
|
22940
|
+
e2.preventDefault(), e2.persist(), DW(e2), uW.current = [].concat(_toConsumableArray(uW.current), [
|
|
22908
22941
|
e2.target
|
|
22909
22942
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22910
22943
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -22917,7 +22950,7 @@ ${c}
|
|
|
22917
22950
|
maxFiles: m,
|
|
22918
22951
|
validator: z
|
|
22919
22952
|
});
|
|
22920
|
-
|
|
22953
|
+
aW({
|
|
22921
22954
|
isDragAccept: l2,
|
|
22922
22955
|
isDragReject: c2 > 0 && !l2,
|
|
22923
22956
|
isDragActive: true,
|
|
@@ -22925,12 +22958,12 @@ ${c}
|
|
|
22925
22958
|
}), h && h(e2);
|
|
22926
22959
|
}
|
|
22927
22960
|
}).catch(function(e3) {
|
|
22928
|
-
return
|
|
22961
|
+
return pW(e3);
|
|
22929
22962
|
});
|
|
22930
22963
|
}, [
|
|
22931
22964
|
u,
|
|
22932
22965
|
h,
|
|
22933
|
-
|
|
22966
|
+
pW,
|
|
22934
22967
|
L,
|
|
22935
22968
|
B,
|
|
22936
22969
|
f,
|
|
@@ -22938,8 +22971,8 @@ ${c}
|
|
|
22938
22971
|
p,
|
|
22939
22972
|
m,
|
|
22940
22973
|
z
|
|
22941
|
-
]),
|
|
22942
|
-
e2.preventDefault(), e2.persist(),
|
|
22974
|
+
]), hW = (0, import_react.useCallback)(function(e2) {
|
|
22975
|
+
e2.preventDefault(), e2.persist(), DW(e2);
|
|
22943
22976
|
var r2 = isEvtWithFiles(e2);
|
|
22944
22977
|
if (r2 && e2.dataTransfer) try {
|
|
22945
22978
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -22949,12 +22982,12 @@ ${c}
|
|
|
22949
22982
|
}, [
|
|
22950
22983
|
_,
|
|
22951
22984
|
L
|
|
22952
|
-
]),
|
|
22953
|
-
e2.preventDefault(), e2.persist(),
|
|
22954
|
-
var r2 =
|
|
22985
|
+
]), gW = (0, import_react.useCallback)(function(e2) {
|
|
22986
|
+
e2.preventDefault(), e2.persist(), DW(e2);
|
|
22987
|
+
var r2 = uW.current.filter(function(e3) {
|
|
22955
22988
|
return q.current && q.current.contains(e3);
|
|
22956
22989
|
}), c2 = r2.indexOf(e2.target);
|
|
22957
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
22990
|
+
c2 !== -1 && r2.splice(c2, 1), uW.current = r2, !(r2.length > 0) && (aW({
|
|
22958
22991
|
type: "setDraggedFiles",
|
|
22959
22992
|
isDragActive: false,
|
|
22960
22993
|
isDragAccept: false,
|
|
@@ -22964,7 +22997,7 @@ ${c}
|
|
|
22964
22997
|
q,
|
|
22965
22998
|
g,
|
|
22966
22999
|
L
|
|
22967
|
-
]),
|
|
23000
|
+
]), _W = (0, import_react.useCallback)(function(e2, r2) {
|
|
22968
23001
|
var c2 = [], l2 = [];
|
|
22969
23002
|
e2.forEach(function(e3) {
|
|
22970
23003
|
var r3 = _slicedToArray(fileAccepted(e3, B), 2), u2 = r3[0], p2 = r3[1], m2 = _slicedToArray(fileMatchSize(e3, f, d), 2), h2 = m2[0], g2 = m2[1], _2 = z ? z(e3) : null;
|
|
@@ -22988,14 +23021,14 @@ ${c}
|
|
|
22988
23021
|
TOO_MANY_FILES_REJECTION
|
|
22989
23022
|
]
|
|
22990
23023
|
});
|
|
22991
|
-
}), c2.splice(0)),
|
|
23024
|
+
}), c2.splice(0)), aW({
|
|
22992
23025
|
acceptedFiles: c2,
|
|
22993
23026
|
fileRejections: l2,
|
|
22994
23027
|
isDragReject: l2.length > 0,
|
|
22995
23028
|
type: "setFiles"
|
|
22996
23029
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
22997
23030
|
}, [
|
|
22998
|
-
|
|
23031
|
+
aW,
|
|
22999
23032
|
p,
|
|
23000
23033
|
B,
|
|
23001
23034
|
f,
|
|
@@ -23005,22 +23038,22 @@ ${c}
|
|
|
23005
23038
|
y,
|
|
23006
23039
|
b,
|
|
23007
23040
|
z
|
|
23008
|
-
]),
|
|
23009
|
-
e2.preventDefault(), e2.persist(),
|
|
23010
|
-
isPropagationStopped(e2) && !L ||
|
|
23041
|
+
]), vW = (0, import_react.useCallback)(function(e2) {
|
|
23042
|
+
e2.preventDefault(), e2.persist(), DW(e2), uW.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
23043
|
+
isPropagationStopped(e2) && !L || _W(r2, e2);
|
|
23011
23044
|
}).catch(function(e3) {
|
|
23012
|
-
return
|
|
23013
|
-
}),
|
|
23045
|
+
return pW(e3);
|
|
23046
|
+
}), aW({
|
|
23014
23047
|
type: "reset"
|
|
23015
23048
|
});
|
|
23016
23049
|
}, [
|
|
23017
23050
|
u,
|
|
23018
|
-
|
|
23019
|
-
|
|
23051
|
+
_W,
|
|
23052
|
+
pW,
|
|
23020
23053
|
L
|
|
23021
|
-
]),
|
|
23022
|
-
if (
|
|
23023
|
-
|
|
23054
|
+
]), yW = (0, import_react.useCallback)(function() {
|
|
23055
|
+
if (cW.current) {
|
|
23056
|
+
aW({
|
|
23024
23057
|
type: "openDialog"
|
|
23025
23058
|
}), W();
|
|
23026
23059
|
var e2 = {
|
|
@@ -23030,66 +23063,66 @@ ${c}
|
|
|
23030
23063
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
23031
23064
|
return u(e3);
|
|
23032
23065
|
}).then(function(e3) {
|
|
23033
|
-
|
|
23066
|
+
_W(e3, null), aW({
|
|
23034
23067
|
type: "closeDialog"
|
|
23035
23068
|
});
|
|
23036
23069
|
}).catch(function(e3) {
|
|
23037
|
-
isAbort(e3) ? (G(e3),
|
|
23070
|
+
isAbort(e3) ? (G(e3), aW({
|
|
23038
23071
|
type: "closeDialog"
|
|
23039
|
-
})) : isSecurityError(e3) ? (
|
|
23072
|
+
})) : isSecurityError(e3) ? (cW.current = false, rW.current ? (rW.current.value = null, rW.current.click()) : pW(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."))) : pW(e3);
|
|
23040
23073
|
});
|
|
23041
23074
|
return;
|
|
23042
23075
|
}
|
|
23043
|
-
|
|
23076
|
+
rW.current && (aW({
|
|
23044
23077
|
type: "openDialog"
|
|
23045
|
-
}), W(),
|
|
23078
|
+
}), W(), rW.current.value = null, rW.current.click());
|
|
23046
23079
|
}, [
|
|
23047
|
-
|
|
23080
|
+
aW,
|
|
23048
23081
|
W,
|
|
23049
23082
|
G,
|
|
23050
23083
|
T,
|
|
23051
|
-
|
|
23052
|
-
|
|
23084
|
+
_W,
|
|
23085
|
+
pW,
|
|
23053
23086
|
H,
|
|
23054
23087
|
p
|
|
23055
|
-
]),
|
|
23056
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
23088
|
+
]), bW = (0, import_react.useCallback)(function(e2) {
|
|
23089
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), yW());
|
|
23057
23090
|
}, [
|
|
23058
23091
|
q,
|
|
23059
|
-
|
|
23060
|
-
]),
|
|
23061
|
-
|
|
23092
|
+
yW
|
|
23093
|
+
]), xW = (0, import_react.useCallback)(function() {
|
|
23094
|
+
aW({
|
|
23062
23095
|
type: "focus"
|
|
23063
23096
|
});
|
|
23064
|
-
}, []),
|
|
23065
|
-
|
|
23097
|
+
}, []), SW = (0, import_react.useCallback)(function() {
|
|
23098
|
+
aW({
|
|
23066
23099
|
type: "blur"
|
|
23067
23100
|
});
|
|
23068
|
-
}, []),
|
|
23069
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
23101
|
+
}, []), CW = (0, import_react.useCallback)(function() {
|
|
23102
|
+
j || (isIeOrEdge() ? setTimeout(yW, 0) : yW());
|
|
23070
23103
|
}, [
|
|
23071
23104
|
j,
|
|
23072
|
-
|
|
23073
|
-
]),
|
|
23105
|
+
yW
|
|
23106
|
+
]), wW = function(e2) {
|
|
23074
23107
|
return l ? null : e2;
|
|
23075
|
-
}, wW = function(e2) {
|
|
23076
|
-
return M ? null : CW(e2);
|
|
23077
23108
|
}, TW = function(e2) {
|
|
23078
|
-
return
|
|
23109
|
+
return M ? null : wW(e2);
|
|
23079
23110
|
}, EW = function(e2) {
|
|
23111
|
+
return I ? null : wW(e2);
|
|
23112
|
+
}, DW = function(e2) {
|
|
23080
23113
|
L && e2.stopPropagation();
|
|
23081
|
-
},
|
|
23114
|
+
}, OW = (0, import_react.useMemo)(function() {
|
|
23082
23115
|
return function() {
|
|
23083
23116
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, u2 = e2.role, d2 = e2.onKeyDown, f2 = e2.onFocus, p2 = e2.onBlur, m2 = e2.onClick, h2 = e2.onDragEnter, g2 = e2.onDragOver, _2 = e2.onDragLeave, v2 = e2.onDrop, y2 = _objectWithoutProperties$2(e2, _excluded3);
|
|
23084
23117
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
23085
|
-
onKeyDown:
|
|
23086
|
-
onFocus:
|
|
23087
|
-
onBlur:
|
|
23088
|
-
onClick:
|
|
23089
|
-
onDragEnter:
|
|
23090
|
-
onDragOver:
|
|
23091
|
-
onDragLeave:
|
|
23092
|
-
onDrop:
|
|
23118
|
+
onKeyDown: TW(composeEventHandlers(d2, bW)),
|
|
23119
|
+
onFocus: TW(composeEventHandlers(f2, xW)),
|
|
23120
|
+
onBlur: TW(composeEventHandlers(p2, SW)),
|
|
23121
|
+
onClick: wW(composeEventHandlers(m2, CW)),
|
|
23122
|
+
onDragEnter: EW(composeEventHandlers(h2, mW)),
|
|
23123
|
+
onDragOver: EW(composeEventHandlers(g2, hW)),
|
|
23124
|
+
onDragLeave: EW(composeEventHandlers(_2, gW)),
|
|
23125
|
+
onDrop: EW(composeEventHandlers(v2, vW)),
|
|
23093
23126
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23094
23127
|
}, c2, q), !l && !M ? {
|
|
23095
23128
|
tabIndex: 0
|
|
@@ -23097,20 +23130,20 @@ ${c}
|
|
|
23097
23130
|
};
|
|
23098
23131
|
}, [
|
|
23099
23132
|
q,
|
|
23100
|
-
yW,
|
|
23101
23133
|
bW,
|
|
23102
23134
|
xW,
|
|
23103
23135
|
SW,
|
|
23104
|
-
|
|
23136
|
+
CW,
|
|
23105
23137
|
mW,
|
|
23106
23138
|
hW,
|
|
23107
|
-
|
|
23139
|
+
gW,
|
|
23140
|
+
vW,
|
|
23108
23141
|
M,
|
|
23109
23142
|
I,
|
|
23110
23143
|
l
|
|
23111
|
-
]),
|
|
23144
|
+
]), kW = (0, import_react.useCallback)(function(e2) {
|
|
23112
23145
|
e2.stopPropagation();
|
|
23113
|
-
}, []),
|
|
23146
|
+
}, []), AW = (0, import_react.useMemo)(function() {
|
|
23114
23147
|
return function() {
|
|
23115
23148
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, l2 = e2.onChange, u2 = e2.onClick, d2 = _objectWithoutProperties$2(e2, _excluded4);
|
|
23116
23149
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -23129,25 +23162,25 @@ ${c}
|
|
|
23129
23162
|
width: "1px",
|
|
23130
23163
|
whiteSpace: "nowrap"
|
|
23131
23164
|
},
|
|
23132
|
-
onChange:
|
|
23133
|
-
onClick:
|
|
23165
|
+
onChange: wW(composeEventHandlers(l2, vW)),
|
|
23166
|
+
onClick: wW(composeEventHandlers(u2, kW)),
|
|
23134
23167
|
tabIndex: -1
|
|
23135
|
-
}, c2,
|
|
23168
|
+
}, c2, rW)), d2);
|
|
23136
23169
|
};
|
|
23137
23170
|
}, [
|
|
23138
|
-
|
|
23171
|
+
rW,
|
|
23139
23172
|
c,
|
|
23140
23173
|
p,
|
|
23141
|
-
|
|
23174
|
+
vW,
|
|
23142
23175
|
l
|
|
23143
23176
|
]);
|
|
23144
23177
|
return _objectSpread$7(_objectSpread$7({}, Z), {}, {
|
|
23145
|
-
isFocused:
|
|
23146
|
-
getRootProps:
|
|
23147
|
-
getInputProps:
|
|
23178
|
+
isFocused: oW && !l,
|
|
23179
|
+
getRootProps: OW,
|
|
23180
|
+
getInputProps: AW,
|
|
23148
23181
|
rootRef: q,
|
|
23149
|
-
inputRef:
|
|
23150
|
-
open:
|
|
23182
|
+
inputRef: rW,
|
|
23183
|
+
open: wW(yW)
|
|
23151
23184
|
});
|
|
23152
23185
|
}
|
|
23153
23186
|
function reducer$2(e, r) {
|
|
@@ -23379,47 +23412,47 @@ ${c}
|
|
|
23379
23412
|
html: I
|
|
23380
23413
|
})
|
|
23381
23414
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
23382
|
-
let q = w && "text-primary",
|
|
23383
|
-
r[48] !== q || r[49] !==
|
|
23415
|
+
let q = w && "text-primary", rW = T && "text-destructive", iW;
|
|
23416
|
+
r[48] !== q || r[49] !== rW ? (iW = cn(q, rW), r[48] = q, r[49] = rW, r[50] = iW) : iW = r[50];
|
|
23384
23417
|
let Z;
|
|
23385
|
-
r[51] ===
|
|
23418
|
+
r[51] === iW ? Z = r[52] : (Z = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23386
23419
|
strokeWidth: 1.4,
|
|
23387
|
-
className:
|
|
23388
|
-
}), r[51] =
|
|
23389
|
-
let
|
|
23390
|
-
r[53] !==
|
|
23391
|
-
let sW;
|
|
23392
|
-
r[56] === oW ? sW = r[57] : (sW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23393
|
-
strokeWidth: 1.4,
|
|
23394
|
-
className: oW
|
|
23395
|
-
}), r[56] = oW, r[57] = sW);
|
|
23420
|
+
className: iW
|
|
23421
|
+
}), r[51] = iW, r[52] = Z);
|
|
23422
|
+
let aW = w && "text-primary", oW = T && "text-destructive", sW;
|
|
23423
|
+
r[53] !== aW || r[54] !== oW ? (sW = cn(aW, oW), r[53] = aW, r[54] = oW, r[55] = sW) : sW = r[55];
|
|
23396
23424
|
let cW;
|
|
23397
|
-
r[
|
|
23425
|
+
r[56] === sW ? cW = r[57] : (cW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23426
|
+
strokeWidth: 1.4,
|
|
23427
|
+
className: sW
|
|
23428
|
+
}), r[56] = sW, r[57] = cW);
|
|
23429
|
+
let lW;
|
|
23430
|
+
r[58] !== Z || r[59] !== cW ? (lW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23398
23431
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
23399
23432
|
children: [
|
|
23400
23433
|
Z,
|
|
23401
|
-
|
|
23434
|
+
cW
|
|
23402
23435
|
]
|
|
23403
|
-
}), r[58] = Z, r[59] =
|
|
23404
|
-
let
|
|
23405
|
-
r[61] !== G || r[62] !==
|
|
23436
|
+
}), r[58] = Z, r[59] = cW, r[60] = lW) : lW = r[60];
|
|
23437
|
+
let uW;
|
|
23438
|
+
r[61] !== G || r[62] !== lW ? (uW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23406
23439
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
23407
23440
|
children: [
|
|
23408
23441
|
G,
|
|
23409
|
-
|
|
23442
|
+
lW
|
|
23410
23443
|
]
|
|
23411
|
-
}), r[61] = G, r[62] =
|
|
23412
|
-
let
|
|
23413
|
-
r[64] !== W || r[65] !==
|
|
23444
|
+
}), r[61] = G, r[62] = lW, r[63] = uW) : uW = r[63];
|
|
23445
|
+
let dW;
|
|
23446
|
+
r[64] !== W || r[65] !== uW || r[66] !== z || r[67] !== B ? (dW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23414
23447
|
className: z,
|
|
23415
23448
|
...B,
|
|
23416
23449
|
children: [
|
|
23417
23450
|
W,
|
|
23418
|
-
|
|
23451
|
+
uW
|
|
23419
23452
|
]
|
|
23420
|
-
}), r[64] = W, r[65] =
|
|
23421
|
-
let
|
|
23422
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
23453
|
+
}), r[64] = W, r[65] = uW, r[66] = z, r[67] = B, r[68] = dW) : dW = r[68];
|
|
23454
|
+
let fW;
|
|
23455
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (fW = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
23423
23456
|
className: "flex flex-row gap-1",
|
|
23424
23457
|
children: [
|
|
23425
23458
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23455,17 +23488,17 @@ ${c}
|
|
|
23455
23488
|
})
|
|
23456
23489
|
})
|
|
23457
23490
|
]
|
|
23458
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
23459
|
-
let
|
|
23460
|
-
return r[75] !==
|
|
23491
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = fW) : fW = r[74];
|
|
23492
|
+
let pW;
|
|
23493
|
+
return r[75] !== dW || r[76] !== fW ? (pW = (0, import_jsx_runtime.jsx)("section", {
|
|
23461
23494
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
23462
23495
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
23463
23496
|
children: [
|
|
23464
|
-
|
|
23465
|
-
|
|
23497
|
+
dW,
|
|
23498
|
+
fW
|
|
23466
23499
|
]
|
|
23467
23500
|
})
|
|
23468
|
-
}), r[75] =
|
|
23501
|
+
}), r[75] = dW, r[76] = fW, r[77] = pW) : pW = r[77], pW;
|
|
23469
23502
|
};
|
|
23470
23503
|
function _temp$11(e) {
|
|
23471
23504
|
Logger.error(e), toast({
|
|
@@ -23561,75 +23594,75 @@ ${c}
|
|
|
23561
23594
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
23562
23595
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23563
23596
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
23564
|
-
let
|
|
23565
|
-
r[13] === f ?
|
|
23597
|
+
let rW;
|
|
23598
|
+
r[13] === f ? rW = r[14] : (rW = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23566
23599
|
className: "text-center",
|
|
23567
23600
|
children: renderHTML({
|
|
23568
23601
|
html: f
|
|
23569
23602
|
})
|
|
23570
|
-
}), r[13] = f, r[14] =
|
|
23571
|
-
let
|
|
23572
|
-
r[15] === L ?
|
|
23603
|
+
}), r[13] = f, r[14] = rW);
|
|
23604
|
+
let iW;
|
|
23605
|
+
r[15] === L ? iW = r[16] : (iW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
23573
23606
|
kind: "danger",
|
|
23574
23607
|
className: "rounded",
|
|
23575
23608
|
children: L ?? "Invalid input"
|
|
23576
|
-
}), r[15] = L, r[16] =
|
|
23609
|
+
}), r[15] = L, r[16] = iW);
|
|
23577
23610
|
let Z;
|
|
23578
23611
|
r[17] === c ? Z = r[18] : (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
23579
23612
|
children: c
|
|
23580
23613
|
}), r[17] = c, r[18] = Z);
|
|
23581
|
-
let
|
|
23582
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
23614
|
+
let aW;
|
|
23615
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (aW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
23583
23616
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
23584
23617
|
variant: "text",
|
|
23585
23618
|
onClick: (e2) => {
|
|
23586
23619
|
e2.preventDefault(), B();
|
|
23587
23620
|
},
|
|
23588
23621
|
children: S
|
|
23589
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
23590
|
-
let
|
|
23591
|
-
r[23] === h ?
|
|
23622
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = aW) : aW = r[22];
|
|
23623
|
+
let oW = v || h, sW;
|
|
23624
|
+
r[23] === h ? sW = r[24] : (sW = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
23592
23625
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
23593
|
-
}), r[23] = h, r[24] =
|
|
23594
|
-
let
|
|
23595
|
-
r[25] !== g || r[26] !==
|
|
23626
|
+
}), r[23] = h, r[24] = sW);
|
|
23627
|
+
let cW;
|
|
23628
|
+
r[25] !== g || r[26] !== oW || r[27] !== sW || r[28] !== I ? (cW = (0, import_jsx_runtime.jsxs)(Button, {
|
|
23596
23629
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
23597
23630
|
variant: I,
|
|
23598
|
-
disabled:
|
|
23631
|
+
disabled: oW,
|
|
23599
23632
|
type: "submit",
|
|
23600
23633
|
children: [
|
|
23601
|
-
|
|
23634
|
+
sW,
|
|
23602
23635
|
g
|
|
23603
23636
|
]
|
|
23604
|
-
}), r[25] = g, r[26] =
|
|
23605
|
-
let cW;
|
|
23606
|
-
r[30] !== _ || r[31] !== sW ? (cW = withTooltip(sW, _), r[30] = _, r[31] = sW, r[32] = cW) : cW = r[32];
|
|
23637
|
+
}), r[25] = g, r[26] = oW, r[27] = sW, r[28] = I, r[29] = cW) : cW = r[29];
|
|
23607
23638
|
let lW;
|
|
23608
|
-
r[
|
|
23639
|
+
r[30] !== _ || r[31] !== cW ? (lW = withTooltip(cW, _), r[30] = _, r[31] = cW, r[32] = lW) : lW = r[32];
|
|
23640
|
+
let uW;
|
|
23641
|
+
r[33] !== lW || r[34] !== aW ? (uW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23609
23642
|
className: "flex justify-end gap-2 font-code",
|
|
23610
23643
|
children: [
|
|
23611
|
-
|
|
23612
|
-
|
|
23644
|
+
aW,
|
|
23645
|
+
lW
|
|
23613
23646
|
]
|
|
23614
|
-
}), r[33] =
|
|
23615
|
-
let
|
|
23616
|
-
r[36] !==
|
|
23647
|
+
}), r[33] = lW, r[34] = aW, r[35] = uW) : uW = r[35];
|
|
23648
|
+
let dW;
|
|
23649
|
+
r[36] !== uW || r[37] !== G || r[38] !== q || r[39] !== rW || r[40] !== iW || r[41] !== Z ? (dW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23617
23650
|
className: G,
|
|
23618
23651
|
onKeyDown: q,
|
|
23619
23652
|
children: [
|
|
23620
|
-
nW,
|
|
23621
23653
|
rW,
|
|
23654
|
+
iW,
|
|
23622
23655
|
Z,
|
|
23623
|
-
|
|
23656
|
+
uW
|
|
23624
23657
|
]
|
|
23625
|
-
}), r[36] =
|
|
23626
|
-
let
|
|
23627
|
-
return r[43] !==
|
|
23658
|
+
}), r[36] = uW, r[37] = G, r[38] = q, r[39] = rW, r[40] = iW, r[41] = Z, r[42] = dW) : dW = r[42];
|
|
23659
|
+
let fW;
|
|
23660
|
+
return r[43] !== dW || r[44] !== H ? (fW = (0, import_jsx_runtime.jsx)("form", {
|
|
23628
23661
|
className: "contents",
|
|
23629
23662
|
ref: j,
|
|
23630
23663
|
onSubmit: H,
|
|
23631
|
-
children:
|
|
23632
|
-
}), r[43] =
|
|
23664
|
+
children: dW
|
|
23665
|
+
}), r[43] = dW, r[44] = H, r[45] = fW) : fW = r[45], fW;
|
|
23633
23666
|
};
|
|
23634
23667
|
var Form = (e) => {
|
|
23635
23668
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -25402,8 +25435,8 @@ ${c}
|
|
|
25402
25435
|
points: extractSunburstPoints(e2.points)
|
|
25403
25436
|
}));
|
|
25404
25437
|
}, r[29] = u, r[30] = G);
|
|
25405
|
-
let q = useEvent_default(G),
|
|
25406
|
-
r[31] === u ?
|
|
25438
|
+
let q = useEvent_default(G), rW;
|
|
25439
|
+
r[31] === u ? rW = r[32] : (rW = (e2) => {
|
|
25407
25440
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25408
25441
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25409
25442
|
u((e3) => ({
|
|
@@ -25414,8 +25447,8 @@ ${c}
|
|
|
25414
25447
|
points: r2,
|
|
25415
25448
|
indices: c2
|
|
25416
25449
|
}));
|
|
25417
|
-
}, r[31] = u, r[32] =
|
|
25418
|
-
let
|
|
25450
|
+
}, r[31] = u, r[32] = rW);
|
|
25451
|
+
let iW = useEvent_default(rW), Z;
|
|
25419
25452
|
r[33] === u ? Z = r[34] : (Z = (e2) => {
|
|
25420
25453
|
e2 && u((r2) => ({
|
|
25421
25454
|
...r2,
|
|
@@ -25426,8 +25459,8 @@ ${c}
|
|
|
25426
25459
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
25427
25460
|
}));
|
|
25428
25461
|
}, r[33] = u, r[34] = Z);
|
|
25429
|
-
let
|
|
25430
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
25462
|
+
let aW = useEvent_default(Z), oW = m.frames ?? void 0, sW = useEvent_default(_temp3$3), cW;
|
|
25463
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== iW || r[42] !== aW || r[43] !== oW || r[44] !== sW || r[45] !== R ? (cW = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25431
25464
|
...m,
|
|
25432
25465
|
layout: h,
|
|
25433
25466
|
onRelayout: R,
|
|
@@ -25435,13 +25468,13 @@ ${c}
|
|
|
25435
25468
|
onTreemapClick: W,
|
|
25436
25469
|
onSunburstClick: q,
|
|
25437
25470
|
config: L,
|
|
25438
|
-
onClick:
|
|
25439
|
-
onSelected:
|
|
25471
|
+
onClick: iW,
|
|
25472
|
+
onSelected: aW,
|
|
25440
25473
|
className: "w-full",
|
|
25441
25474
|
useResizeHandler: true,
|
|
25442
|
-
frames:
|
|
25443
|
-
onError:
|
|
25444
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
25475
|
+
frames: oW,
|
|
25476
|
+
onError: sW
|
|
25477
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = iW, r[42] = aW, r[43] = oW, r[44] = sW, r[45] = R, r[46] = cW) : cW = r[46], cW;
|
|
25445
25478
|
});
|
|
25446
25479
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25447
25480
|
function _temp$8(e) {
|
|
@@ -25573,8 +25606,8 @@ ${c}
|
|
|
25573
25606
|
c[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = cn("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60", "data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"), c[17] = G) : G = c[17];
|
|
25574
25607
|
let q;
|
|
25575
25608
|
c[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = cn("absolute bg-blue-500 dark:bg-primary", "data-[orientation=horizontal]:h-full", "data-[orientation=vertical]:w-full", "data-disabled:opacity-50", "hover:cursor-grab active:cursor-grabbing"), c[18] = q) : q = c[18];
|
|
25576
|
-
let
|
|
25577
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
25609
|
+
let rW;
|
|
25610
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (rW = (0, import_jsx_runtime.jsx)(Track, {
|
|
25578
25611
|
ref: E,
|
|
25579
25612
|
"data-testid": "track",
|
|
25580
25613
|
className: G,
|
|
@@ -25585,9 +25618,9 @@ ${c}
|
|
|
25585
25618
|
onPointerMove: z,
|
|
25586
25619
|
onPointerUp: H
|
|
25587
25620
|
})
|
|
25588
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25589
|
-
let
|
|
25590
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
25621
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = rW) : rW = c[22];
|
|
25622
|
+
let iW;
|
|
25623
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (iW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25591
25624
|
asChild: true,
|
|
25592
25625
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25593
25626
|
"data-testid": "thumb",
|
|
@@ -25597,30 +25630,30 @@ ${c}
|
|
|
25597
25630
|
onMouseEnter: m.setTrue,
|
|
25598
25631
|
onMouseLeave: m.setFalse
|
|
25599
25632
|
})
|
|
25600
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
25633
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = iW) : iW = c[25];
|
|
25601
25634
|
let Z;
|
|
25602
25635
|
c[26] !== h || c[27] !== u.value || c[28] !== d ? (Z = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25603
25636
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
25604
25637
|
locale: h
|
|
25605
25638
|
})
|
|
25606
25639
|
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = Z) : Z = c[29];
|
|
25607
|
-
let iW;
|
|
25608
|
-
c[30] === Z ? iW = c[31] : (iW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25609
|
-
children: Z
|
|
25610
|
-
}), c[30] = Z, c[31] = iW);
|
|
25611
25640
|
let aW;
|
|
25612
|
-
c[
|
|
25641
|
+
c[30] === Z ? aW = c[31] : (aW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25642
|
+
children: Z
|
|
25643
|
+
}), c[30] = Z, c[31] = aW);
|
|
25644
|
+
let oW;
|
|
25645
|
+
c[32] !== f || c[33] !== iW || c[34] !== aW ? (oW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25613
25646
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25614
25647
|
delayDuration: 0,
|
|
25615
25648
|
open: f,
|
|
25616
25649
|
children: [
|
|
25617
|
-
|
|
25618
|
-
|
|
25650
|
+
iW,
|
|
25651
|
+
aW
|
|
25619
25652
|
]
|
|
25620
25653
|
})
|
|
25621
|
-
}), c[32] = f, c[33] =
|
|
25622
|
-
let
|
|
25623
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
25654
|
+
}), c[32] = f, c[33] = iW, c[34] = aW, c[35] = oW) : oW = c[35];
|
|
25655
|
+
let sW;
|
|
25656
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (sW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25624
25657
|
asChild: true,
|
|
25625
25658
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25626
25659
|
"data-testid": "thumb",
|
|
@@ -25630,39 +25663,39 @@ ${c}
|
|
|
25630
25663
|
onMouseEnter: m.setTrue,
|
|
25631
25664
|
onMouseLeave: m.setFalse
|
|
25632
25665
|
})
|
|
25633
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
25634
|
-
let
|
|
25635
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
25666
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = sW) : sW = c[38];
|
|
25667
|
+
let cW;
|
|
25668
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (cW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25636
25669
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
25637
25670
|
locale: h
|
|
25638
25671
|
})
|
|
25639
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
25640
|
-
let cW;
|
|
25641
|
-
c[43] === sW ? cW = c[44] : (cW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25642
|
-
children: sW
|
|
25643
|
-
}), c[43] = sW, c[44] = cW);
|
|
25672
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = cW) : cW = c[42];
|
|
25644
25673
|
let lW;
|
|
25645
|
-
c[
|
|
25674
|
+
c[43] === cW ? lW = c[44] : (lW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25675
|
+
children: cW
|
|
25676
|
+
}), c[43] = cW, c[44] = lW);
|
|
25677
|
+
let uW;
|
|
25678
|
+
c[45] !== f || c[46] !== sW || c[47] !== lW ? (uW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25646
25679
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25647
25680
|
delayDuration: 0,
|
|
25648
25681
|
open: f,
|
|
25649
25682
|
children: [
|
|
25650
|
-
|
|
25651
|
-
|
|
25683
|
+
sW,
|
|
25684
|
+
lW
|
|
25652
25685
|
]
|
|
25653
25686
|
})
|
|
25654
|
-
}), c[45] = f, c[46] =
|
|
25655
|
-
let
|
|
25656
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25687
|
+
}), c[45] = f, c[46] = sW, c[47] = lW, c[48] = uW) : uW = c[48];
|
|
25688
|
+
let dW;
|
|
25689
|
+
return c[49] !== M || c[50] !== u || c[51] !== rW || c[52] !== oW || c[53] !== uW || c[54] !== W ? (dW = (0, import_jsx_runtime.jsxs)(Root, {
|
|
25657
25690
|
ref: M,
|
|
25658
25691
|
className: W,
|
|
25659
25692
|
...u,
|
|
25660
25693
|
children: [
|
|
25661
|
-
|
|
25662
|
-
|
|
25663
|
-
|
|
25694
|
+
rW,
|
|
25695
|
+
oW,
|
|
25696
|
+
uW
|
|
25664
25697
|
]
|
|
25665
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25698
|
+
}), c[49] = M, c[50] = u, c[51] = rW, c[52] = oW, c[53] = uW, c[54] = W, c[55] = dW) : dW = c[55], dW;
|
|
25666
25699
|
});
|
|
25667
25700
|
RangeSlider.displayName = Root.displayName;
|
|
25668
25701
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25713,14 +25746,14 @@ ${c}
|
|
|
25713
25746
|
}, q = (e2) => {
|
|
25714
25747
|
h && l(e2);
|
|
25715
25748
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
25716
|
-
let
|
|
25717
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
25749
|
+
let rW, iW;
|
|
25750
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (rW = () => {
|
|
25718
25751
|
h && !dequal(T, u) && l(T);
|
|
25719
|
-
},
|
|
25752
|
+
}, iW = () => {
|
|
25720
25753
|
h && !dequal(T, u) && l(T);
|
|
25721
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
25754
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = rW, r[19] = iW) : (rW = r[18], iW = r[19]);
|
|
25722
25755
|
let Z;
|
|
25723
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !==
|
|
25756
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== rW || r[31] !== iW || r[32] !== b ? (Z = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25724
25757
|
id: S,
|
|
25725
25758
|
className: W,
|
|
25726
25759
|
value: T,
|
|
@@ -25731,36 +25764,36 @@ ${c}
|
|
|
25731
25764
|
disabled: y,
|
|
25732
25765
|
onValueChange: G,
|
|
25733
25766
|
onValueCommit: q,
|
|
25734
|
-
onPointerUp:
|
|
25735
|
-
onMouseUp:
|
|
25767
|
+
onPointerUp: rW,
|
|
25768
|
+
onMouseUp: iW,
|
|
25736
25769
|
valueMap: b
|
|
25737
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
25738
|
-
let
|
|
25739
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
25770
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = rW, r[31] = iW, r[32] = b, r[33] = Z) : Z = r[33];
|
|
25771
|
+
let aW;
|
|
25772
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (aW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25740
25773
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
25741
25774
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
25742
25775
|
locale: w
|
|
25743
25776
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
25744
25777
|
locale: w
|
|
25745
25778
|
})}`
|
|
25746
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
25747
|
-
let
|
|
25748
|
-
r[39] !== Z || r[40] !==
|
|
25779
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = aW) : aW = r[38];
|
|
25780
|
+
let oW;
|
|
25781
|
+
r[39] !== Z || r[40] !== aW || r[41] !== B ? (oW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25749
25782
|
className: B,
|
|
25750
25783
|
children: [
|
|
25751
25784
|
Z,
|
|
25752
|
-
|
|
25785
|
+
aW
|
|
25753
25786
|
]
|
|
25754
|
-
}), r[39] = Z, r[40] =
|
|
25755
|
-
let
|
|
25756
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
25787
|
+
}), r[39] = Z, r[40] = aW, r[41] = B, r[42] = oW) : oW = r[42];
|
|
25788
|
+
let sW;
|
|
25789
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== oW || r[47] !== M || r[48] !== L ? (sW = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25757
25790
|
label: c,
|
|
25758
25791
|
id: S,
|
|
25759
25792
|
align: M,
|
|
25760
25793
|
className: L,
|
|
25761
25794
|
fullWidth: v,
|
|
25762
|
-
children:
|
|
25763
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
25795
|
+
children: oW
|
|
25796
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = oW, r[47] = M, r[48] = L, r[49] = sW) : sW = r[49], sW;
|
|
25764
25797
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
25765
25798
|
r.exports = u;
|
|
25766
25799
|
var c = {
|
|
@@ -29051,7 +29084,7 @@ ${c}
|
|
|
29051
29084
|
areRegExpsEqual: H,
|
|
29052
29085
|
areSetsEqual: W,
|
|
29053
29086
|
createIsNestedEqual: r2
|
|
29054
|
-
}),
|
|
29087
|
+
}), rW = Object.freeze({
|
|
29055
29088
|
areArraysEqual: O,
|
|
29056
29089
|
areDatesEqual: j,
|
|
29057
29090
|
areMapsEqual: I,
|
|
@@ -29059,40 +29092,40 @@ ${c}
|
|
|
29059
29092
|
areRegExpsEqual: H,
|
|
29060
29093
|
areSetsEqual: G,
|
|
29061
29094
|
createIsNestedEqual: r2
|
|
29062
|
-
}),
|
|
29095
|
+
}), iW = T(q);
|
|
29063
29096
|
function Z(e3, r3) {
|
|
29064
|
-
return
|
|
29097
|
+
return iW(e3, r3, void 0);
|
|
29065
29098
|
}
|
|
29066
|
-
var
|
|
29099
|
+
var aW = T(l(q, {
|
|
29067
29100
|
createIsNestedEqual: function() {
|
|
29068
29101
|
return f;
|
|
29069
29102
|
}
|
|
29070
29103
|
}));
|
|
29071
|
-
function
|
|
29072
|
-
return
|
|
29104
|
+
function oW(e3, r3) {
|
|
29105
|
+
return aW(e3, r3, void 0);
|
|
29073
29106
|
}
|
|
29074
|
-
var
|
|
29075
|
-
function
|
|
29076
|
-
return
|
|
29107
|
+
var sW = T(rW);
|
|
29108
|
+
function cW(e3, r3) {
|
|
29109
|
+
return sW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29077
29110
|
}
|
|
29078
|
-
var
|
|
29111
|
+
var lW = T(l(rW, {
|
|
29079
29112
|
createIsNestedEqual: function() {
|
|
29080
29113
|
return f;
|
|
29081
29114
|
}
|
|
29082
29115
|
}));
|
|
29083
|
-
function
|
|
29084
|
-
return
|
|
29116
|
+
function uW(e3, r3) {
|
|
29117
|
+
return lW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29085
29118
|
}
|
|
29086
|
-
function
|
|
29119
|
+
function dW(e3) {
|
|
29087
29120
|
return T(l(q, e3(q)));
|
|
29088
29121
|
}
|
|
29089
|
-
function
|
|
29090
|
-
var r3 = T(l(
|
|
29122
|
+
function fW(e3) {
|
|
29123
|
+
var r3 = T(l(rW, e3(rW)));
|
|
29091
29124
|
return (function(e4, c2, l2) {
|
|
29092
29125
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29093
29126
|
});
|
|
29094
29127
|
}
|
|
29095
|
-
e2.circularDeepEqual =
|
|
29128
|
+
e2.circularDeepEqual = cW, e2.circularShallowEqual = uW, e2.createCustomCircularEqual = fW, e2.createCustomEqual = dW, e2.deepEqual = Z, e2.sameValueZeroEqual = f, e2.shallowEqual = oW, Object.defineProperty(e2, "__esModule", {
|
|
29096
29129
|
value: true
|
|
29097
29130
|
});
|
|
29098
29131
|
}));
|
|
@@ -29118,7 +29151,7 @@ ${c}
|
|
|
29118
29151
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
29119
29152
|
Object.defineProperty(e, "__esModule", {
|
|
29120
29153
|
value: true
|
|
29121
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
29154
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = vW, 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 = uW, e.setTopLeft = fW, e.setTransform = dW, e.sortLayoutItems = pW, e.sortLayoutItemsByColRow = hW, e.sortLayoutItemsByRowCol = mW, e.synchronizeLayoutWithChildren = gW, e.validateLayout = _W, e.withLayoutItem = v;
|
|
29122
29155
|
var r = require_fast_equals(), c = l(require_react());
|
|
29123
29156
|
function l(e2) {
|
|
29124
29157
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -29223,7 +29256,7 @@ ${c}
|
|
|
29223
29256
|
return !(e2.i === r2.i || e2.x + e2.w <= r2.x || e2.x >= r2.x + r2.w || e2.y + e2.h <= r2.y || e2.y >= r2.y + r2.h);
|
|
29224
29257
|
}
|
|
29225
29258
|
function T(e2, r2, c2, l2) {
|
|
29226
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
29259
|
+
let u2 = B(e2), d2 = h(u2), f2 = pW(e2, r2), p2 = Array(e2.length);
|
|
29227
29260
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
29228
29261
|
let h3 = y(f2[m2]);
|
|
29229
29262
|
h3.static || (h3 = M(u2, h3, r2, c2, f2, l2, d2), d2 = Math.max(d2, h3.y + h3.h), u2.push(h3)), p2[e2.indexOf(f2[m2])] = h3, h3.moved = false;
|
|
@@ -29281,7 +29314,7 @@ ${c}
|
|
|
29281
29314
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
29282
29315
|
let h2 = r2.x, _2 = r2.y;
|
|
29283
29316
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
29284
|
-
let v2 =
|
|
29317
|
+
let v2 = pW(e2, f2);
|
|
29285
29318
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
29286
29319
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
29287
29320
|
if (b2 && m2) return g(e2);
|
|
@@ -29315,61 +29348,61 @@ ${c}
|
|
|
29315
29348
|
function G(e2) {
|
|
29316
29349
|
return e2 * 100 + "%";
|
|
29317
29350
|
}
|
|
29318
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
29351
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, rW = (e2, r2, c2) => e2 < 0 ? r2 : c2, iW = (e2) => Math.max(0, e2), Z = (e2) => Math.max(0, e2), aW = (e2, r2, c2) => {
|
|
29319
29352
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29320
29353
|
return {
|
|
29321
29354
|
left: l2,
|
|
29322
29355
|
width: d2,
|
|
29323
|
-
height:
|
|
29356
|
+
height: rW(f2, e2.height, u2),
|
|
29324
29357
|
top: Z(f2)
|
|
29325
29358
|
};
|
|
29326
|
-
},
|
|
29359
|
+
}, oW = (e2, r2, c2) => {
|
|
29327
29360
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29328
29361
|
return {
|
|
29329
29362
|
top: l2,
|
|
29330
29363
|
height: d2,
|
|
29331
29364
|
width: q(e2.left, e2.width, f2, c2),
|
|
29332
|
-
left:
|
|
29365
|
+
left: iW(u2)
|
|
29333
29366
|
};
|
|
29334
|
-
},
|
|
29367
|
+
}, sW = (e2, r2, c2) => {
|
|
29335
29368
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29336
29369
|
return {
|
|
29337
29370
|
height: u2,
|
|
29338
29371
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
29339
29372
|
top: Z(l2),
|
|
29340
|
-
left:
|
|
29373
|
+
left: iW(f2)
|
|
29341
29374
|
};
|
|
29342
|
-
},
|
|
29375
|
+
}, cW = (e2, r2, c2) => {
|
|
29343
29376
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29344
29377
|
return {
|
|
29345
29378
|
width: f2,
|
|
29346
29379
|
left: u2,
|
|
29347
|
-
height:
|
|
29380
|
+
height: rW(l2, e2.height, d2),
|
|
29348
29381
|
top: Z(l2)
|
|
29349
29382
|
};
|
|
29350
|
-
},
|
|
29351
|
-
n:
|
|
29383
|
+
}, lW = {
|
|
29384
|
+
n: aW,
|
|
29352
29385
|
ne: function() {
|
|
29353
|
-
return
|
|
29386
|
+
return aW(arguments.length <= 0 ? void 0 : arguments[0], oW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29354
29387
|
},
|
|
29355
|
-
e:
|
|
29388
|
+
e: oW,
|
|
29356
29389
|
se: function() {
|
|
29357
|
-
return
|
|
29390
|
+
return cW(arguments.length <= 0 ? void 0 : arguments[0], oW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29358
29391
|
},
|
|
29359
|
-
s:
|
|
29392
|
+
s: cW,
|
|
29360
29393
|
sw: function() {
|
|
29361
|
-
return
|
|
29394
|
+
return cW(arguments.length <= 0 ? void 0 : arguments[0], sW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29362
29395
|
},
|
|
29363
|
-
w:
|
|
29396
|
+
w: sW,
|
|
29364
29397
|
nw: function() {
|
|
29365
|
-
return
|
|
29398
|
+
return aW(arguments.length <= 0 ? void 0 : arguments[0], sW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29366
29399
|
}
|
|
29367
29400
|
};
|
|
29368
|
-
function
|
|
29369
|
-
let u2 =
|
|
29401
|
+
function uW(e2, r2, c2, l2) {
|
|
29402
|
+
let u2 = lW[e2];
|
|
29370
29403
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
29371
29404
|
}
|
|
29372
|
-
function
|
|
29405
|
+
function dW(e2) {
|
|
29373
29406
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
29374
29407
|
return {
|
|
29375
29408
|
transform: d2,
|
|
@@ -29382,7 +29415,7 @@ ${c}
|
|
|
29382
29415
|
position: "absolute"
|
|
29383
29416
|
};
|
|
29384
29417
|
}
|
|
29385
|
-
function
|
|
29418
|
+
function fW(e2) {
|
|
29386
29419
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
29387
29420
|
return {
|
|
29388
29421
|
top: `${r2}px`,
|
|
@@ -29392,20 +29425,20 @@ ${c}
|
|
|
29392
29425
|
position: "absolute"
|
|
29393
29426
|
};
|
|
29394
29427
|
}
|
|
29395
|
-
function
|
|
29396
|
-
return r2 === "horizontal" ?
|
|
29428
|
+
function pW(e2, r2) {
|
|
29429
|
+
return r2 === "horizontal" ? hW(e2) : r2 === "vertical" ? mW(e2) : e2;
|
|
29397
29430
|
}
|
|
29398
|
-
function
|
|
29431
|
+
function mW(e2) {
|
|
29399
29432
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29400
29433
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
29401
29434
|
});
|
|
29402
29435
|
}
|
|
29403
|
-
function
|
|
29436
|
+
function hW(e2) {
|
|
29404
29437
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29405
29438
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
29406
29439
|
});
|
|
29407
29440
|
}
|
|
29408
|
-
function
|
|
29441
|
+
function gW(e2, r2, l2, u2, f2) {
|
|
29409
29442
|
e2 || (e2 = []);
|
|
29410
29443
|
let p2 = [];
|
|
29411
29444
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -29426,7 +29459,7 @@ ${c}
|
|
|
29426
29459
|
});
|
|
29427
29460
|
return f2 ? m2 : T(m2, u2, l2);
|
|
29428
29461
|
}
|
|
29429
|
-
function
|
|
29462
|
+
function _W(e2) {
|
|
29430
29463
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
29431
29464
|
"x",
|
|
29432
29465
|
"y",
|
|
@@ -29443,7 +29476,7 @@ ${c}
|
|
|
29443
29476
|
if (u3.i !== void 0 && typeof u3.i != "string") throw Error(`ReactGridLayout: ${r2}[${l2}].i must be a string! Received: ${u3.i} (${typeof u3.i})`);
|
|
29444
29477
|
}
|
|
29445
29478
|
}
|
|
29446
|
-
function
|
|
29479
|
+
function vW(e2) {
|
|
29447
29480
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
29448
29481
|
return r2 === false ? null : c2;
|
|
29449
29482
|
}
|
|
@@ -32248,7 +32281,7 @@ ${c}
|
|
|
32248
32281
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32249
32282
|
let E = useIsDragging(), O, j;
|
|
32250
32283
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
32251
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
32284
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, rW, iW, Z, aW, oW, sW, cW, lW, uW, dW, fW, pW, mW, hW, gW, _W, vW;
|
|
32252
32285
|
if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== h || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
|
|
32253
32286
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
32254
32287
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32267,23 +32300,23 @@ ${c}
|
|
|
32267
32300
|
});
|
|
32268
32301
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
32269
32302
|
let y2 = v2;
|
|
32270
|
-
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout,
|
|
32303
|
+
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout, hW = "lg", r[58] === c.cells ? gW = r[59] : (gW = {
|
|
32271
32304
|
lg: c.cells
|
|
32272
|
-
}, r[58] = c.cells, r[59] =
|
|
32305
|
+
}, r[58] = c.cells, r[59] = gW), _W = L, vW = S, R = false;
|
|
32273
32306
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
32274
32307
|
r[60] !== b2 || r[61] !== w2 || r[62] !== T2 ? (z = cn("w-full mx-auto bg-background flex-1 min-h-full", b2, w2, T2), r[60] = b2, r[61] = w2, r[62] = T2, r[63] = z) : z = r[63], r[64] === f ? B = r[65] : (B = f ? [
|
|
32275
32308
|
20,
|
|
32276
32309
|
20
|
|
32277
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
32310
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, rW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (iW = (e3) => {
|
|
32278
32311
|
f || l({
|
|
32279
32312
|
...c,
|
|
32280
32313
|
cells: e3
|
|
32281
32314
|
});
|
|
32282
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
32315
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = iW) : iW = r[69], r[70] === g ? Z = r[71] : (Z = g ? {
|
|
32283
32316
|
i: g.i,
|
|
32284
32317
|
w: g.w || 2,
|
|
32285
32318
|
h: g.h || 2
|
|
32286
|
-
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (
|
|
32319
|
+
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (aW = (e3, r2, u2) => {
|
|
32287
32320
|
O.onDragStop(), r2 && l({
|
|
32288
32321
|
...c,
|
|
32289
32322
|
cells: [
|
|
@@ -32291,15 +32324,15 @@ ${c}
|
|
|
32291
32324
|
r2
|
|
32292
32325
|
]
|
|
32293
32326
|
});
|
|
32294
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
32327
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = aW) : aW = r[75], r[76] === O ? (oW = r[77], sW = r[78], cW = r[79]) : (oW = (e3, r2, c2, l2, u2) => {
|
|
32295
32328
|
O.onDragStart(u2);
|
|
32296
|
-
},
|
|
32329
|
+
}, sW = (e3, r2, c2, l2, u2) => {
|
|
32297
32330
|
O.onDragMove(u2);
|
|
32298
|
-
},
|
|
32331
|
+
}, cW = () => {
|
|
32299
32332
|
O.onDragStop();
|
|
32300
|
-
}, r[76] = O, r[77] =
|
|
32333
|
+
}, r[76] = O, r[77] = oW, r[78] = sW, r[79] = cW), lW = _temp3$2, uW = M, dW = M, fW = M, pW = M ? `.${DRAG_HANDLE}` : "noop";
|
|
32301
32334
|
let E2;
|
|
32302
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
32335
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), mW = u.filter(E2).map((r2) => {
|
|
32303
32336
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p = c.cellSide.get(r2.id), m3 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
32304
32337
|
code: r2.code,
|
|
32305
32338
|
mode: d,
|
|
@@ -32328,14 +32361,14 @@ ${c}
|
|
|
32328
32361
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32329
32362
|
children: m3
|
|
32330
32363
|
}, r2.id);
|
|
32331
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
32332
|
-
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29],
|
|
32333
|
-
let
|
|
32334
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !==
|
|
32335
|
-
breakpoint:
|
|
32336
|
-
layouts:
|
|
32337
|
-
style:
|
|
32338
|
-
cols:
|
|
32364
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = rW, r[31] = iW, r[32] = Z, r[33] = aW, r[34] = oW, r[35] = sW, r[36] = cW, r[37] = lW, r[38] = uW, r[39] = dW, r[40] = fW, r[41] = pW, r[42] = mW, r[43] = hW, r[44] = gW, r[45] = _W, r[46] = vW;
|
|
32365
|
+
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], rW = r[30], iW = r[31], Z = r[32], aW = r[33], oW = r[34], sW = r[35], cW = r[36], lW = r[37], uW = r[38], dW = r[39], fW = r[40], pW = r[41], mW = r[42], hW = r[43], gW = r[44], _W = r[45], vW = r[46];
|
|
32366
|
+
let yW;
|
|
32367
|
+
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] !== rW || r[91] !== iW || r[92] !== Z || r[93] !== aW || r[94] !== oW || r[95] !== sW || r[96] !== cW || r[97] !== lW || r[98] !== uW || r[99] !== dW || r[100] !== fW || r[101] !== pW || r[102] !== mW || r[103] !== hW || r[104] !== gW || r[105] !== _W || r[106] !== vW ? (yW = (0, import_jsx_runtime.jsx)(I, {
|
|
32368
|
+
breakpoint: hW,
|
|
32369
|
+
layouts: gW,
|
|
32370
|
+
style: _W,
|
|
32371
|
+
cols: vW,
|
|
32339
32372
|
allowOverlap: R,
|
|
32340
32373
|
className: z,
|
|
32341
32374
|
containerPadding: B,
|
|
@@ -32343,23 +32376,23 @@ ${c}
|
|
|
32343
32376
|
isBounded: W,
|
|
32344
32377
|
compactType: G,
|
|
32345
32378
|
preventCollision: q,
|
|
32346
|
-
rowHeight:
|
|
32347
|
-
onLayoutChange:
|
|
32379
|
+
rowHeight: rW,
|
|
32380
|
+
onLayoutChange: iW,
|
|
32348
32381
|
droppingItem: Z,
|
|
32349
|
-
onDrop:
|
|
32350
|
-
onDragStart:
|
|
32351
|
-
onDrag:
|
|
32352
|
-
onDragStop:
|
|
32353
|
-
onResizeStop:
|
|
32354
|
-
isDraggable:
|
|
32355
|
-
isDroppable:
|
|
32356
|
-
isResizable:
|
|
32357
|
-
draggableHandle:
|
|
32358
|
-
children:
|
|
32359
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] =
|
|
32360
|
-
let
|
|
32361
|
-
if (r[108] !== u || r[109] !==
|
|
32362
|
-
|
|
32382
|
+
onDrop: aW,
|
|
32383
|
+
onDragStart: oW,
|
|
32384
|
+
onDrag: sW,
|
|
32385
|
+
onDragStop: cW,
|
|
32386
|
+
onResizeStop: lW,
|
|
32387
|
+
isDraggable: uW,
|
|
32388
|
+
isDroppable: dW,
|
|
32389
|
+
isResizable: fW,
|
|
32390
|
+
draggableHandle: pW,
|
|
32391
|
+
children: mW
|
|
32392
|
+
}), 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] = rW, r[91] = iW, r[92] = Z, r[93] = aW, r[94] = oW, r[95] = sW, r[96] = cW, r[97] = lW, r[98] = uW, r[99] = dW, r[100] = fW, r[101] = pW, r[102] = mW, r[103] = hW, r[104] = gW, r[105] = _W, r[106] = vW, r[107] = yW) : yW = r[107];
|
|
32393
|
+
let bW = yW, xW, SW, CW, wW, TW, EW, DW;
|
|
32394
|
+
if (r[108] !== u || r[109] !== bW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
32395
|
+
DW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
32363
32396
|
bb0: {
|
|
32364
32397
|
let e2;
|
|
32365
32398
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -32367,14 +32400,14 @@ ${c}
|
|
|
32367
32400
|
if (f) {
|
|
32368
32401
|
if (c.bordered) {
|
|
32369
32402
|
let e4;
|
|
32370
|
-
r[127] !==
|
|
32403
|
+
r[127] !== bW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
32371
32404
|
className: "flex flex-1 flex-col items-center",
|
|
32372
32405
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
32373
32406
|
style: L,
|
|
32374
32407
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
32375
|
-
children:
|
|
32408
|
+
children: bW
|
|
32376
32409
|
})
|
|
32377
|
-
}), r[127] =
|
|
32410
|
+
}), r[127] = bW, r[128] = L, r[129] = e4) : e4 = r[129], bW = e4;
|
|
32378
32411
|
}
|
|
32379
32412
|
let e3 = m2.filter(_temp4$2), l2;
|
|
32380
32413
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -32385,9 +32418,9 @@ ${c}
|
|
|
32385
32418
|
status: e4.status,
|
|
32386
32419
|
isScrollable: false,
|
|
32387
32420
|
hidden: false
|
|
32388
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
32421
|
+
}, e4.id), r[130] = d, r[131] = l2), DW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32389
32422
|
children: [
|
|
32390
|
-
|
|
32423
|
+
bW,
|
|
32391
32424
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32392
32425
|
className: "hidden",
|
|
32393
32426
|
children: e3.map(l2)
|
|
@@ -32398,31 +32431,31 @@ ${c}
|
|
|
32398
32431
|
}
|
|
32399
32432
|
if (c.bordered) {
|
|
32400
32433
|
let e3;
|
|
32401
|
-
r[132] ===
|
|
32434
|
+
r[132] === bW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
32402
32435
|
className: "h-full overflow-auto",
|
|
32403
|
-
children:
|
|
32404
|
-
}), r[132] =
|
|
32436
|
+
children: bW
|
|
32437
|
+
}), r[132] = bW, r[133] = e3);
|
|
32405
32438
|
let c2;
|
|
32406
32439
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32407
32440
|
style: L,
|
|
32408
32441
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
32409
32442
|
children: e3
|
|
32410
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
32443
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], bW = c2;
|
|
32411
32444
|
}
|
|
32412
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
32445
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (EW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
32413
32446
|
layout: c,
|
|
32414
32447
|
setLayout: l,
|
|
32415
32448
|
isLocked: v,
|
|
32416
32449
|
setIsLocked: y
|
|
32417
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
32450
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = EW) : EW = r[140];
|
|
32418
32451
|
let g2;
|
|
32419
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32452
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (wW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = wW, r[142] = g2) : (wW = r[141], g2 = r[142]), r[143] === bW ? TW = r[144] : (TW = (0, import_jsx_runtime.jsx)("div", {
|
|
32420
32453
|
className: g2,
|
|
32421
|
-
children:
|
|
32422
|
-
}), r[143] =
|
|
32454
|
+
children: bW
|
|
32455
|
+
}), r[143] = bW, r[144] = TW), xW = "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") ? (SW = (0, import_jsx_runtime.jsx)("div", {
|
|
32423
32456
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
32424
32457
|
children: "Outputs"
|
|
32425
|
-
}), r[145] =
|
|
32458
|
+
}), r[145] = SW) : SW = r[145];
|
|
32426
32459
|
let b2;
|
|
32427
32460
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
32428
32461
|
draggable: true,
|
|
@@ -32447,34 +32480,34 @@ ${c}
|
|
|
32447
32480
|
status: e3.status,
|
|
32448
32481
|
hidden: false
|
|
32449
32482
|
})
|
|
32450
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
32451
|
-
}
|
|
32452
|
-
r[108] = u, r[109] =
|
|
32453
|
-
} else
|
|
32454
|
-
if (
|
|
32455
|
-
let DW;
|
|
32456
|
-
r[150] !== bW || r[151] !== xW || r[152] !== SW ? (DW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32457
|
-
className: bW,
|
|
32458
|
-
children: [
|
|
32459
|
-
xW,
|
|
32460
|
-
SW
|
|
32461
|
-
]
|
|
32462
|
-
}), r[150] = bW, r[151] = xW, r[152] = SW, r[153] = DW) : DW = r[153];
|
|
32483
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], CW = m2.map(b2);
|
|
32484
|
+
}
|
|
32485
|
+
r[108] = u, r[109] = bW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = xW, r[118] = SW, r[119] = CW, r[120] = wW, r[121] = TW, r[122] = EW, r[123] = DW, r[124] = bW;
|
|
32486
|
+
} else xW = r[117], SW = r[118], CW = r[119], wW = r[120], TW = r[121], EW = r[122], DW = r[123], bW = r[124];
|
|
32487
|
+
if (DW !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return DW;
|
|
32463
32488
|
let OW;
|
|
32464
|
-
r[
|
|
32465
|
-
className:
|
|
32489
|
+
r[150] !== xW || r[151] !== SW || r[152] !== CW ? (OW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32490
|
+
className: xW,
|
|
32466
32491
|
children: [
|
|
32467
|
-
|
|
32468
|
-
|
|
32492
|
+
SW,
|
|
32493
|
+
CW
|
|
32469
32494
|
]
|
|
32470
|
-
}), r[
|
|
32495
|
+
}), r[150] = xW, r[151] = SW, r[152] = CW, r[153] = OW) : OW = r[153];
|
|
32471
32496
|
let kW;
|
|
32472
|
-
|
|
32497
|
+
r[154] !== wW || r[155] !== TW || r[156] !== OW ? (kW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32498
|
+
className: wW,
|
|
32473
32499
|
children: [
|
|
32474
32500
|
TW,
|
|
32475
32501
|
OW
|
|
32476
32502
|
]
|
|
32477
|
-
}), r[
|
|
32503
|
+
}), r[154] = wW, r[155] = TW, r[156] = OW, r[157] = kW) : kW = r[157];
|
|
32504
|
+
let AW;
|
|
32505
|
+
return r[158] !== EW || r[159] !== kW ? (AW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32506
|
+
children: [
|
|
32507
|
+
EW,
|
|
32508
|
+
kW
|
|
32509
|
+
]
|
|
32510
|
+
}), r[158] = EW, r[159] = kW, r[160] = AW) : AW = r[160], AW;
|
|
32478
32511
|
};
|
|
32479
32512
|
var GridCell = (0, import_react.memo)((e) => {
|
|
32480
32513
|
let r = (0, import_compiler_runtime$13.c)(20), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _ } = e, v;
|
|
@@ -32775,25 +32808,25 @@ ${c}
|
|
|
32775
32808
|
G
|
|
32776
32809
|
]
|
|
32777
32810
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
32778
|
-
let nW;
|
|
32779
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (nW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32780
|
-
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32781
|
-
}), r[35] = nW) : nW = r[35];
|
|
32782
32811
|
let rW;
|
|
32783
|
-
r[
|
|
32812
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32813
|
+
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32814
|
+
}), r[35] = rW) : rW = r[35];
|
|
32815
|
+
let iW;
|
|
32816
|
+
r[36] === l ? iW = r[37] : (iW = (0, import_jsx_runtime.jsx)(X, {
|
|
32784
32817
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
32785
32818
|
onClick: () => l()
|
|
32786
|
-
}), r[36] = l, r[37] =
|
|
32819
|
+
}), r[36] = l, r[37] = iW);
|
|
32787
32820
|
let Z;
|
|
32788
|
-
return r[38] !== I || r[39] !== q || r[40] !==
|
|
32821
|
+
return r[38] !== I || r[39] !== q || r[40] !== iW || r[41] !== w ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
32789
32822
|
className: w,
|
|
32790
32823
|
children: [
|
|
32791
32824
|
I,
|
|
32792
32825
|
q,
|
|
32793
|
-
|
|
32794
|
-
|
|
32826
|
+
rW,
|
|
32827
|
+
iW
|
|
32795
32828
|
]
|
|
32796
|
-
}), r[38] = I, r[39] = q, r[40] =
|
|
32829
|
+
}), r[38] = I, r[39] = q, r[40] = iW, r[41] = w, r[42] = Z) : Z = r[42], Z;
|
|
32797
32830
|
};
|
|
32798
32831
|
function isSidebarCell(e) {
|
|
32799
32832
|
var _a3;
|
|
@@ -34797,28 +34830,28 @@ ${c}
|
|
|
34797
34830
|
}, [
|
|
34798
34831
|
T,
|
|
34799
34832
|
M
|
|
34800
|
-
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r),
|
|
34833
|
+
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r), rW = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34801
34834
|
j
|
|
34802
|
-
]),
|
|
34835
|
+
]), iW = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers: aW, measuringScheduled: oW } = useDroppableMeasuring(rW, {
|
|
34803
34836
|
dragging: w,
|
|
34804
34837
|
dependencies: [
|
|
34805
34838
|
O.x,
|
|
34806
34839
|
O.y
|
|
34807
34840
|
],
|
|
34808
|
-
config:
|
|
34809
|
-
}),
|
|
34841
|
+
config: iW.droppable
|
|
34842
|
+
}), sW = useCachedNode(E, T), cW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34810
34843
|
H
|
|
34811
|
-
]),
|
|
34844
|
+
]), lW = BW(), uW = useInitialRect(sW, iW.draggable.measure);
|
|
34812
34845
|
useLayoutShiftScrollCompensation({
|
|
34813
34846
|
activeNode: T == null ? null : E.get(T),
|
|
34814
|
-
config:
|
|
34815
|
-
initialRect:
|
|
34816
|
-
measure:
|
|
34847
|
+
config: lW.layoutShiftCompensation,
|
|
34848
|
+
initialRect: uW,
|
|
34849
|
+
measure: iW.draggable.measure
|
|
34817
34850
|
});
|
|
34818
|
-
let
|
|
34851
|
+
let dW = useRect(sW, iW.draggable.measure, uW), fW = useRect(sW ? sW.parentElement : null), pW = (0, import_react.useRef)({
|
|
34819
34852
|
activatorEvent: null,
|
|
34820
34853
|
active: null,
|
|
34821
|
-
activeNode:
|
|
34854
|
+
activeNode: sW,
|
|
34822
34855
|
collisionRect: null,
|
|
34823
34856
|
collisions: null,
|
|
34824
34857
|
droppableRects: Z,
|
|
@@ -34829,45 +34862,45 @@ ${c}
|
|
|
34829
34862
|
over: null,
|
|
34830
34863
|
scrollableAncestors: [],
|
|
34831
34864
|
scrollAdjustedTranslate: null
|
|
34832
|
-
}),
|
|
34833
|
-
measure:
|
|
34834
|
-
}),
|
|
34865
|
+
}), mW = j.getNodeFor((_a3 = pW.current.over) == null ? void 0 : _a3.id), hW = useDragOverlayMeasuring({
|
|
34866
|
+
measure: iW.dragOverlay.measure
|
|
34867
|
+
}), gW = hW.nodeRef.current ?? sW, _W = w ? hW.rect ?? dW : null, vW = !!(hW.nodeRef.current && hW.rect), yW = useRectDelta(vW ? null : dW), bW = useWindowRect(gW ? getWindow(gW) : null), xW = useScrollableAncestors(w ? mW ?? sW : null), SW = useRects(xW), CW = applyModifiers(m, {
|
|
34835
34868
|
transform: {
|
|
34836
|
-
x: O.x -
|
|
34837
|
-
y: O.y -
|
|
34869
|
+
x: O.x - yW.x,
|
|
34870
|
+
y: O.y - yW.y,
|
|
34838
34871
|
scaleX: 1,
|
|
34839
34872
|
scaleY: 1
|
|
34840
34873
|
},
|
|
34841
34874
|
activatorEvent: H,
|
|
34842
34875
|
active: L,
|
|
34843
|
-
activeNodeRect:
|
|
34844
|
-
containerNodeRect:
|
|
34845
|
-
draggingNodeRect:
|
|
34846
|
-
over:
|
|
34847
|
-
overlayNodeRect:
|
|
34848
|
-
scrollableAncestors:
|
|
34849
|
-
scrollableAncestorRects:
|
|
34850
|
-
windowRect:
|
|
34851
|
-
}),
|
|
34852
|
-
|
|
34853
|
-
]),
|
|
34876
|
+
activeNodeRect: dW,
|
|
34877
|
+
containerNodeRect: fW,
|
|
34878
|
+
draggingNodeRect: _W,
|
|
34879
|
+
over: pW.current.over,
|
|
34880
|
+
overlayNodeRect: hW.rect,
|
|
34881
|
+
scrollableAncestors: xW,
|
|
34882
|
+
scrollableAncestorRects: SW,
|
|
34883
|
+
windowRect: bW
|
|
34884
|
+
}), wW = cW ? add(cW, O) : null, TW = useScrollOffsets(xW), EW = useScrollOffsetsDelta(TW), DW = useScrollOffsetsDelta(TW, [
|
|
34885
|
+
dW
|
|
34886
|
+
]), OW = add(CW, EW), kW = _W ? getAdjustedRect(_W, CW) : null, AW = L && kW ? f({
|
|
34854
34887
|
active: L,
|
|
34855
|
-
collisionRect:
|
|
34888
|
+
collisionRect: kW,
|
|
34856
34889
|
droppableRects: Z,
|
|
34857
|
-
droppableContainers:
|
|
34858
|
-
pointerCoordinates:
|
|
34859
|
-
}) : null,
|
|
34890
|
+
droppableContainers: rW,
|
|
34891
|
+
pointerCoordinates: wW
|
|
34892
|
+
}) : null, jW = getFirstCollision(AW, "id"), [MW, NW] = (0, import_react.useState)(null), PW = adjustScale(vW ? CW : add(CW, DW), (MW == null ? void 0 : MW.rect) ?? null, dW), FW = (0, import_react.useRef)(null), IW = (0, import_react.useCallback)((e2, r2) => {
|
|
34860
34893
|
let { sensor: c2, options: l2 } = r2;
|
|
34861
34894
|
if (R.current == null) return;
|
|
34862
34895
|
let u2 = E.get(R.current);
|
|
34863
34896
|
if (!u2) return;
|
|
34864
34897
|
let d2 = e2.nativeEvent;
|
|
34865
|
-
|
|
34898
|
+
FW.current = new c2({
|
|
34866
34899
|
active: R.current,
|
|
34867
34900
|
activeNode: u2,
|
|
34868
34901
|
event: d2,
|
|
34869
34902
|
options: l2,
|
|
34870
|
-
context:
|
|
34903
|
+
context: pW,
|
|
34871
34904
|
onAbort(e3) {
|
|
34872
34905
|
if (!E.get(e3)) return;
|
|
34873
34906
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -34912,7 +34945,7 @@ ${c}
|
|
|
34912
34945
|
}), v({
|
|
34913
34946
|
type: "onDragStart",
|
|
34914
34947
|
event: u3
|
|
34915
|
-
}), B(
|
|
34948
|
+
}), B(FW.current), W(d2);
|
|
34916
34949
|
});
|
|
34917
34950
|
},
|
|
34918
34951
|
onMove(e3) {
|
|
@@ -34926,7 +34959,7 @@ ${c}
|
|
|
34926
34959
|
});
|
|
34927
34960
|
function f2(e3) {
|
|
34928
34961
|
return async function() {
|
|
34929
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
34962
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = pW.current, f3 = null;
|
|
34930
34963
|
if (r3 && u3) {
|
|
34931
34964
|
let { cancelDrop: p2 } = G.current;
|
|
34932
34965
|
f3 = {
|
|
@@ -34940,7 +34973,7 @@ ${c}
|
|
|
34940
34973
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34941
34974
|
_({
|
|
34942
34975
|
type: e3
|
|
34943
|
-
}), S(Status.Uninitialized),
|
|
34976
|
+
}), S(Status.Uninitialized), NW(null), B(null), W(null), FW.current = null;
|
|
34944
34977
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
34945
34978
|
if (f3) {
|
|
34946
34979
|
let e4 = G.current[r4];
|
|
@@ -34954,7 +34987,7 @@ ${c}
|
|
|
34954
34987
|
}
|
|
34955
34988
|
}, [
|
|
34956
34989
|
E
|
|
34957
|
-
]),
|
|
34990
|
+
]), LW = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
34958
34991
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
34959
34992
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
34960
34993
|
let f2 = {
|
|
@@ -34962,26 +34995,26 @@ ${c}
|
|
|
34962
34995
|
};
|
|
34963
34996
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
34964
34997
|
capturedBy: r2.sensor
|
|
34965
|
-
}, R.current = l2,
|
|
34998
|
+
}, R.current = l2, IW(c2, r2));
|
|
34966
34999
|
}, [
|
|
34967
35000
|
E,
|
|
34968
|
-
|
|
35001
|
+
IW
|
|
34969
35002
|
]));
|
|
34970
35003
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
34971
|
-
|
|
35004
|
+
dW && b === Status.Initializing && S(Status.Initialized);
|
|
34972
35005
|
}, [
|
|
34973
|
-
|
|
35006
|
+
dW,
|
|
34974
35007
|
b
|
|
34975
35008
|
]), (0, import_react.useEffect)(() => {
|
|
34976
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
35009
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = pW.current;
|
|
34977
35010
|
if (!r2 || !c2) return;
|
|
34978
35011
|
let d2 = {
|
|
34979
35012
|
active: r2,
|
|
34980
35013
|
activatorEvent: c2,
|
|
34981
35014
|
collisions: l2,
|
|
34982
35015
|
delta: {
|
|
34983
|
-
x:
|
|
34984
|
-
y:
|
|
35016
|
+
x: OW.x,
|
|
35017
|
+
y: OW.y
|
|
34985
35018
|
},
|
|
34986
35019
|
over: u2
|
|
34987
35020
|
};
|
|
@@ -34992,12 +35025,12 @@ ${c}
|
|
|
34992
35025
|
});
|
|
34993
35026
|
});
|
|
34994
35027
|
}, [
|
|
34995
|
-
|
|
34996
|
-
|
|
35028
|
+
OW.x,
|
|
35029
|
+
OW.y
|
|
34997
35030
|
]), (0, import_react.useEffect)(() => {
|
|
34998
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
35031
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = pW.current;
|
|
34999
35032
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
35000
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
35033
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(jW), p2 = f2 && f2.rect.current ? {
|
|
35001
35034
|
id: f2.id,
|
|
35002
35035
|
rect: f2.rect.current,
|
|
35003
35036
|
data: f2.data,
|
|
@@ -35013,127 +35046,127 @@ ${c}
|
|
|
35013
35046
|
over: p2
|
|
35014
35047
|
};
|
|
35015
35048
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
35016
|
-
|
|
35049
|
+
NW(p2), d2 == null ? void 0 : d2(m2), v({
|
|
35017
35050
|
type: "onDragOver",
|
|
35018
35051
|
event: m2
|
|
35019
35052
|
});
|
|
35020
35053
|
});
|
|
35021
35054
|
}, [
|
|
35022
|
-
|
|
35055
|
+
jW
|
|
35023
35056
|
]), useIsomorphicLayoutEffect(() => {
|
|
35024
|
-
|
|
35057
|
+
pW.current = {
|
|
35025
35058
|
activatorEvent: H,
|
|
35026
35059
|
active: L,
|
|
35027
|
-
activeNode:
|
|
35028
|
-
collisionRect:
|
|
35029
|
-
collisions:
|
|
35060
|
+
activeNode: sW,
|
|
35061
|
+
collisionRect: kW,
|
|
35062
|
+
collisions: AW,
|
|
35030
35063
|
droppableRects: Z,
|
|
35031
35064
|
draggableNodes: E,
|
|
35032
|
-
draggingNode:
|
|
35033
|
-
draggingNodeRect:
|
|
35065
|
+
draggingNode: gW,
|
|
35066
|
+
draggingNodeRect: _W,
|
|
35034
35067
|
droppableContainers: j,
|
|
35035
|
-
over:
|
|
35036
|
-
scrollableAncestors:
|
|
35037
|
-
scrollAdjustedTranslate:
|
|
35068
|
+
over: MW,
|
|
35069
|
+
scrollableAncestors: xW,
|
|
35070
|
+
scrollAdjustedTranslate: OW
|
|
35038
35071
|
}, I.current = {
|
|
35039
|
-
initial:
|
|
35040
|
-
translated:
|
|
35072
|
+
initial: _W,
|
|
35073
|
+
translated: kW
|
|
35041
35074
|
};
|
|
35042
35075
|
}, [
|
|
35043
35076
|
L,
|
|
35044
|
-
|
|
35077
|
+
sW,
|
|
35078
|
+
AW,
|
|
35045
35079
|
kW,
|
|
35046
|
-
OW,
|
|
35047
35080
|
E,
|
|
35048
|
-
hW,
|
|
35049
35081
|
gW,
|
|
35082
|
+
_W,
|
|
35050
35083
|
Z,
|
|
35051
35084
|
j,
|
|
35052
|
-
|
|
35053
|
-
|
|
35054
|
-
|
|
35085
|
+
MW,
|
|
35086
|
+
xW,
|
|
35087
|
+
OW
|
|
35055
35088
|
]), useAutoScroller({
|
|
35056
|
-
...
|
|
35089
|
+
...lW,
|
|
35057
35090
|
delta: O,
|
|
35058
|
-
draggingRect:
|
|
35059
|
-
pointerCoordinates:
|
|
35060
|
-
scrollableAncestors:
|
|
35061
|
-
scrollableAncestorRects:
|
|
35091
|
+
draggingRect: kW,
|
|
35092
|
+
pointerCoordinates: wW,
|
|
35093
|
+
scrollableAncestors: xW,
|
|
35094
|
+
scrollableAncestorRects: SW
|
|
35062
35095
|
});
|
|
35063
|
-
let
|
|
35096
|
+
let RW = (0, import_react.useMemo)(() => ({
|
|
35064
35097
|
active: L,
|
|
35065
|
-
activeNode:
|
|
35066
|
-
activeNodeRect:
|
|
35098
|
+
activeNode: sW,
|
|
35099
|
+
activeNodeRect: dW,
|
|
35067
35100
|
activatorEvent: H,
|
|
35068
|
-
collisions:
|
|
35069
|
-
containerNodeRect:
|
|
35070
|
-
dragOverlay:
|
|
35101
|
+
collisions: AW,
|
|
35102
|
+
containerNodeRect: fW,
|
|
35103
|
+
dragOverlay: hW,
|
|
35071
35104
|
draggableNodes: E,
|
|
35072
35105
|
droppableContainers: j,
|
|
35073
35106
|
droppableRects: Z,
|
|
35074
|
-
over:
|
|
35075
|
-
measureDroppableContainers:
|
|
35076
|
-
scrollableAncestors:
|
|
35077
|
-
scrollableAncestorRects:
|
|
35078
|
-
measuringConfiguration:
|
|
35079
|
-
measuringScheduled:
|
|
35080
|
-
windowRect:
|
|
35107
|
+
over: MW,
|
|
35108
|
+
measureDroppableContainers: aW,
|
|
35109
|
+
scrollableAncestors: xW,
|
|
35110
|
+
scrollableAncestorRects: SW,
|
|
35111
|
+
measuringConfiguration: iW,
|
|
35112
|
+
measuringScheduled: oW,
|
|
35113
|
+
windowRect: bW
|
|
35081
35114
|
}), [
|
|
35082
35115
|
L,
|
|
35083
|
-
|
|
35084
|
-
uW,
|
|
35085
|
-
H,
|
|
35086
|
-
kW,
|
|
35116
|
+
sW,
|
|
35087
35117
|
dW,
|
|
35088
|
-
|
|
35118
|
+
H,
|
|
35119
|
+
AW,
|
|
35120
|
+
fW,
|
|
35121
|
+
hW,
|
|
35089
35122
|
E,
|
|
35090
35123
|
j,
|
|
35091
35124
|
Z,
|
|
35092
|
-
|
|
35093
|
-
iW,
|
|
35094
|
-
bW,
|
|
35095
|
-
xW,
|
|
35096
|
-
rW,
|
|
35125
|
+
MW,
|
|
35097
35126
|
aW,
|
|
35098
|
-
|
|
35099
|
-
|
|
35127
|
+
xW,
|
|
35128
|
+
SW,
|
|
35129
|
+
iW,
|
|
35130
|
+
oW,
|
|
35131
|
+
bW
|
|
35132
|
+
]), zW = (0, import_react.useMemo)(() => ({
|
|
35100
35133
|
activatorEvent: H,
|
|
35101
|
-
activators:
|
|
35134
|
+
activators: LW,
|
|
35102
35135
|
active: L,
|
|
35103
|
-
activeNodeRect:
|
|
35136
|
+
activeNodeRect: dW,
|
|
35104
35137
|
ariaDescribedById: {
|
|
35105
35138
|
draggable: q
|
|
35106
35139
|
},
|
|
35107
35140
|
dispatch: _,
|
|
35108
35141
|
draggableNodes: E,
|
|
35109
|
-
over:
|
|
35110
|
-
measureDroppableContainers:
|
|
35142
|
+
over: MW,
|
|
35143
|
+
measureDroppableContainers: aW
|
|
35111
35144
|
}), [
|
|
35112
35145
|
H,
|
|
35113
|
-
|
|
35146
|
+
LW,
|
|
35114
35147
|
L,
|
|
35115
|
-
|
|
35148
|
+
dW,
|
|
35116
35149
|
_,
|
|
35117
35150
|
q,
|
|
35118
35151
|
E,
|
|
35119
|
-
|
|
35120
|
-
|
|
35152
|
+
MW,
|
|
35153
|
+
aW
|
|
35121
35154
|
]);
|
|
35122
35155
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
35123
35156
|
value: y
|
|
35124
35157
|
}, import_react.createElement(InternalContext.Provider, {
|
|
35125
|
-
value:
|
|
35158
|
+
value: zW
|
|
35126
35159
|
}, import_react.createElement(PublicContext.Provider, {
|
|
35127
|
-
value:
|
|
35160
|
+
value: RW
|
|
35128
35161
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
35129
|
-
value:
|
|
35162
|
+
value: PW
|
|
35130
35163
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
35131
35164
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35132
35165
|
})), import_react.createElement(Accessibility, {
|
|
35133
35166
|
...c,
|
|
35134
35167
|
hiddenTextDescribedById: q
|
|
35135
35168
|
}));
|
|
35136
|
-
function
|
|
35169
|
+
function BW() {
|
|
35137
35170
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
35138
35171
|
return typeof l == "object" ? {
|
|
35139
35172
|
...l,
|
|
@@ -35661,7 +35694,7 @@ ${c}
|
|
|
35661
35694
|
updateMeasurementsFor: I,
|
|
35662
35695
|
...m
|
|
35663
35696
|
}
|
|
35664
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
35697
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: rW, listeners: iW, isDragging: Z, over: aW, setActivatorNodeRef: oW, transform: sW } = useDraggable({
|
|
35665
35698
|
id: f,
|
|
35666
35699
|
data: M,
|
|
35667
35700
|
attributes: {
|
|
@@ -35669,60 +35702,60 @@ ${c}
|
|
|
35669
35702
|
...c
|
|
35670
35703
|
},
|
|
35671
35704
|
disabled: O.draggable
|
|
35672
|
-
}),
|
|
35705
|
+
}), cW = useCombinedRefs(B, rW), lW = !!H, uW = lW && !b && isValidIndex(v) && isValidIndex(w), dW = !T && Z, fW = uW ? (dW && uW ? sW : null) ?? (p ?? E)({
|
|
35673
35706
|
rects: S,
|
|
35674
35707
|
activeNodeRect: G,
|
|
35675
35708
|
activeIndex: v,
|
|
35676
35709
|
overIndex: w,
|
|
35677
35710
|
index: j
|
|
35678
|
-
}) : null,
|
|
35711
|
+
}) : null, pW = isValidIndex(v) && isValidIndex(w) ? d({
|
|
35679
35712
|
id: f,
|
|
35680
35713
|
items: g,
|
|
35681
35714
|
activeIndex: v,
|
|
35682
35715
|
overIndex: w
|
|
35683
|
-
}) : j,
|
|
35684
|
-
activeId:
|
|
35716
|
+
}) : j, mW = H == null ? void 0 : H.id, hW = (0, import_react.useRef)({
|
|
35717
|
+
activeId: mW,
|
|
35685
35718
|
items: g,
|
|
35686
|
-
newIndex:
|
|
35719
|
+
newIndex: pW,
|
|
35687
35720
|
containerId: _
|
|
35688
|
-
}),
|
|
35721
|
+
}), gW = g !== hW.current.items, _W = r({
|
|
35689
35722
|
active: H,
|
|
35690
35723
|
containerId: _,
|
|
35691
35724
|
isDragging: Z,
|
|
35692
|
-
isSorting:
|
|
35725
|
+
isSorting: lW,
|
|
35693
35726
|
id: f,
|
|
35694
35727
|
index: j,
|
|
35695
35728
|
items: g,
|
|
35696
|
-
newIndex:
|
|
35697
|
-
previousItems:
|
|
35698
|
-
previousContainerId:
|
|
35729
|
+
newIndex: hW.current.newIndex,
|
|
35730
|
+
previousItems: hW.current.items,
|
|
35731
|
+
previousContainerId: hW.current.containerId,
|
|
35699
35732
|
transition: h,
|
|
35700
|
-
wasDragging:
|
|
35701
|
-
}),
|
|
35702
|
-
disabled: !
|
|
35733
|
+
wasDragging: hW.current.activeId != null
|
|
35734
|
+
}), vW = useDerivedTransform({
|
|
35735
|
+
disabled: !_W,
|
|
35703
35736
|
index: j,
|
|
35704
35737
|
node: R,
|
|
35705
35738
|
rect: L
|
|
35706
35739
|
});
|
|
35707
35740
|
return (0, import_react.useEffect)(() => {
|
|
35708
|
-
|
|
35741
|
+
lW && hW.current.newIndex !== pW && (hW.current.newIndex = pW), _ !== hW.current.containerId && (hW.current.containerId = _), g !== hW.current.items && (hW.current.items = g);
|
|
35709
35742
|
}, [
|
|
35710
|
-
|
|
35711
|
-
|
|
35743
|
+
lW,
|
|
35744
|
+
pW,
|
|
35712
35745
|
_,
|
|
35713
35746
|
g
|
|
35714
35747
|
]), (0, import_react.useEffect)(() => {
|
|
35715
|
-
if (
|
|
35716
|
-
if (
|
|
35717
|
-
|
|
35748
|
+
if (mW === hW.current.activeId) return;
|
|
35749
|
+
if (mW != null && hW.current.activeId == null) {
|
|
35750
|
+
hW.current.activeId = mW;
|
|
35718
35751
|
return;
|
|
35719
35752
|
}
|
|
35720
35753
|
let e2 = setTimeout(() => {
|
|
35721
|
-
|
|
35754
|
+
hW.current.activeId = mW;
|
|
35722
35755
|
}, 50);
|
|
35723
35756
|
return () => clearTimeout(e2);
|
|
35724
35757
|
}, [
|
|
35725
|
-
|
|
35758
|
+
mW
|
|
35726
35759
|
]), {
|
|
35727
35760
|
active: H,
|
|
35728
35761
|
activeIndex: v,
|
|
@@ -35730,25 +35763,25 @@ ${c}
|
|
|
35730
35763
|
data: M,
|
|
35731
35764
|
rect: L,
|
|
35732
35765
|
index: j,
|
|
35733
|
-
newIndex:
|
|
35766
|
+
newIndex: pW,
|
|
35734
35767
|
items: g,
|
|
35735
35768
|
isOver: z,
|
|
35736
|
-
isSorting:
|
|
35769
|
+
isSorting: lW,
|
|
35737
35770
|
isDragging: Z,
|
|
35738
|
-
listeners:
|
|
35771
|
+
listeners: iW,
|
|
35739
35772
|
node: R,
|
|
35740
35773
|
overIndex: w,
|
|
35741
|
-
over:
|
|
35742
|
-
setNodeRef:
|
|
35743
|
-
setActivatorNodeRef:
|
|
35774
|
+
over: aW,
|
|
35775
|
+
setNodeRef: cW,
|
|
35776
|
+
setActivatorNodeRef: oW,
|
|
35744
35777
|
setDroppableNodeRef: B,
|
|
35745
|
-
setDraggableNodeRef:
|
|
35746
|
-
transform:
|
|
35747
|
-
transition:
|
|
35778
|
+
setDraggableNodeRef: rW,
|
|
35779
|
+
transform: vW ?? fW,
|
|
35780
|
+
transition: yW()
|
|
35748
35781
|
};
|
|
35749
|
-
function
|
|
35750
|
-
if (
|
|
35751
|
-
if (!(
|
|
35782
|
+
function yW() {
|
|
35783
|
+
if (vW || gW && hW.current.newIndex === j) return disabledTransition;
|
|
35784
|
+
if (!(dW && !isKeyboardEvent(W) || !h) && (lW || _W)) return CSS$1.Transition.toString({
|
|
35752
35785
|
...h,
|
|
35753
35786
|
property: transitionProperty
|
|
35754
35787
|
});
|
|
@@ -36048,13 +36081,13 @@ ${c}
|
|
|
36048
36081
|
G
|
|
36049
36082
|
]
|
|
36050
36083
|
}), r[35] = c.id, r[36] = h, r[37] = y, r[38] = b, r[39] = I, r[40] = z, r[41] = B, r[42] = H, r[43] = W, r[44] = G, r[45] = q) : q = r[45];
|
|
36051
|
-
let
|
|
36052
|
-
if (!v && !g) return
|
|
36053
|
-
let
|
|
36054
|
-
r[46] ===
|
|
36084
|
+
let rW = q;
|
|
36085
|
+
if (!v && !g) return rW;
|
|
36086
|
+
let iW;
|
|
36087
|
+
r[46] === rW ? iW = r[47] : (iW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
36055
36088
|
asChild: true,
|
|
36056
|
-
children:
|
|
36057
|
-
}), r[46] =
|
|
36089
|
+
children: rW
|
|
36090
|
+
}), r[46] = rW, r[47] = iW);
|
|
36058
36091
|
let Z;
|
|
36059
36092
|
r[48] === v ? Z = r[49] : (Z = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36060
36093
|
onSelect: v,
|
|
@@ -36065,10 +36098,10 @@ ${c}
|
|
|
36065
36098
|
"Add cell"
|
|
36066
36099
|
]
|
|
36067
36100
|
}), r[48] = v, r[49] = Z);
|
|
36068
|
-
let iW;
|
|
36069
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = iW) : iW = r[50];
|
|
36070
36101
|
let aW;
|
|
36071
|
-
r[
|
|
36102
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (aW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = aW) : aW = r[50];
|
|
36103
|
+
let oW;
|
|
36104
|
+
r[51] === g ? oW = r[52] : (oW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36072
36105
|
variant: "danger",
|
|
36073
36106
|
onSelect: g,
|
|
36074
36107
|
children: [
|
|
@@ -36077,22 +36110,22 @@ ${c}
|
|
|
36077
36110
|
}),
|
|
36078
36111
|
"Delete cell"
|
|
36079
36112
|
]
|
|
36080
|
-
}), r[51] = g, r[52] =
|
|
36081
|
-
let
|
|
36082
|
-
r[53] !== Z || r[54] !==
|
|
36113
|
+
}), r[51] = g, r[52] = oW);
|
|
36114
|
+
let sW;
|
|
36115
|
+
r[53] !== Z || r[54] !== oW ? (sW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
36083
36116
|
children: [
|
|
36084
36117
|
Z,
|
|
36085
|
-
|
|
36086
|
-
|
|
36118
|
+
aW,
|
|
36119
|
+
oW
|
|
36087
36120
|
]
|
|
36088
|
-
}), r[53] = Z, r[54] =
|
|
36089
|
-
let
|
|
36090
|
-
return r[56] !==
|
|
36121
|
+
}), r[53] = Z, r[54] = oW, r[55] = sW) : sW = r[55];
|
|
36122
|
+
let cW;
|
|
36123
|
+
return r[56] !== iW || r[57] !== sW ? (cW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
36091
36124
|
children: [
|
|
36092
|
-
|
|
36093
|
-
|
|
36125
|
+
iW,
|
|
36126
|
+
sW
|
|
36094
36127
|
]
|
|
36095
|
-
}), r[56] =
|
|
36128
|
+
}), r[56] = iW, r[57] = sW, r[58] = cW) : cW = r[58], cW;
|
|
36096
36129
|
}, InsertCellLine = (e) => {
|
|
36097
36130
|
let r = (0, import_compiler_runtime$10.c)(10), { position: c, onInsert: l } = e, u = c === "below" ? "bottom-0 translate-y-1/2" : "top-0 -translate-y-1/2", d;
|
|
36098
36131
|
r[0] === u ? d = r[1] : (d = cn("absolute left-0 right-0 z-30 flex h-3 items-center justify-center", "opacity-0 transition-opacity hover:opacity-80 focus-visible:opacity-100 focus:outline-hidden", u), r[0] = u, r[1] = d);
|
|
@@ -36146,10 +36179,10 @@ ${c}
|
|
|
36146
36179
|
...B,
|
|
36147
36180
|
...h
|
|
36148
36181
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
36149
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
36150
|
-
r[25] !== l || r[26] !==
|
|
36151
|
-
let
|
|
36152
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
36182
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", rW = w && !T && "opacity-35", iW = T && "opacity-95 shadow-lg", Z;
|
|
36183
|
+
r[25] !== l || r[26] !== rW || r[27] !== iW || r[28] !== q ? (Z = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, rW, iW, l), r[25] = l, r[26] = rW, r[27] = iW, r[28] = q, r[29] = Z) : Z = r[29];
|
|
36184
|
+
let aW;
|
|
36185
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (aW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
36153
36186
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
36154
36187
|
style: {
|
|
36155
36188
|
transform: `scale(${I})`,
|
|
@@ -36164,14 +36197,14 @@ ${c}
|
|
|
36164
36197
|
status: c.status,
|
|
36165
36198
|
output: c.output
|
|
36166
36199
|
})
|
|
36167
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
36168
|
-
let
|
|
36169
|
-
r[37] === z ?
|
|
36200
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = aW) : aW = r[36];
|
|
36201
|
+
let oW;
|
|
36202
|
+
r[37] === z ? oW = r[38] : (oW = z && (0, import_jsx_runtime.jsx)("div", {
|
|
36170
36203
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
36171
36204
|
"aria-hidden": true
|
|
36172
|
-
}), r[37] = z, r[38] =
|
|
36173
|
-
let
|
|
36174
|
-
r[39] !== z || r[40] !== R ? (
|
|
36205
|
+
}), r[37] = z, r[38] = oW);
|
|
36206
|
+
let sW;
|
|
36207
|
+
r[39] !== z || r[40] !== R ? (sW = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
36175
36208
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
36176
36209
|
className: "text-xs opacity-80",
|
|
36177
36210
|
children: R.description
|
|
@@ -36183,19 +36216,19 @@ ${c}
|
|
|
36183
36216
|
className: "h-3.5 w-3.5"
|
|
36184
36217
|
})
|
|
36185
36218
|
})
|
|
36186
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
36187
|
-
let
|
|
36188
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !==
|
|
36219
|
+
}), r[39] = z, r[40] = R, r[41] = sW) : sW = r[41];
|
|
36220
|
+
let cW;
|
|
36221
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !== aW || r[47] !== oW || r[48] !== sW ? (cW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36189
36222
|
ref: f,
|
|
36190
36223
|
className: Z,
|
|
36191
36224
|
style: W,
|
|
36192
36225
|
...d,
|
|
36193
36226
|
children: [
|
|
36194
|
-
iW,
|
|
36195
36227
|
aW,
|
|
36196
|
-
oW
|
|
36228
|
+
oW,
|
|
36229
|
+
sW
|
|
36197
36230
|
]
|
|
36198
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] =
|
|
36231
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] = aW, r[47] = oW, r[48] = sW, r[49] = cW) : cW = r[49], cW;
|
|
36199
36232
|
}, MiniCodePreview = (e) => {
|
|
36200
36233
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
36201
36234
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -36235,7 +36268,7 @@ ${c}
|
|
|
36235
36268
|
function _temp2$2(e) {
|
|
36236
36269
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
36237
36270
|
}
|
|
36238
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36271
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-BFhE2zHY.js"));
|
|
36239
36272
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36240
36273
|
var _a3;
|
|
36241
36274
|
let u = useAtomValue(kioskModeAtom), d = l === "read" || u, f = useAtomValue(numColumnsAtom) > 1, [p, m] = (0, import_react.useState)(null), { slideCells: h, skippedIds: g, noOutputIds: _, slideTypes: v, startCellIndex: y } = (0, import_react.useMemo)(() => computeSlideCellsInfo(c, e), [
|
|
@@ -36613,7 +36646,7 @@ ${c}
|
|
|
36613
36646
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36614
36647
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36615
36648
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36616
|
-
let H, W, G, q,
|
|
36649
|
+
let H, W, G, q, rW, iW, Z, aW, oW, sW;
|
|
36617
36650
|
if (r[3] !== T || r[4] !== M || r[5] !== I || r[6] !== L || r[7] !== _ || r[8] !== b || r[9] !== d || r[10] !== z || r[11] !== O || r[12] !== j || r[13] !== E || r[14] !== R || r[15] !== f || r[16] !== u || r[17] !== y || r[18] !== m || r[19] !== l) {
|
|
36618
36651
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36619
36652
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36659,11 +36692,11 @@ ${c}
|
|
|
36659
36692
|
})
|
|
36660
36693
|
})
|
|
36661
36694
|
]
|
|
36662
|
-
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area",
|
|
36663
|
-
let
|
|
36664
|
-
r[40] !== M || r[41] !==
|
|
36695
|
+
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", rW = c, iW = R, Z = 0;
|
|
36696
|
+
let cW2 = y && "marimo-output-stale", lW2 = L ? "p-5" : "p-3";
|
|
36697
|
+
r[40] !== M || r[41] !== cW2 || r[42] !== lW2 ? (aW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", cW2, lW2, M), r[40] = M, r[41] = cW2, r[42] = lW2, r[43] = aW) : aW = r[43], r[44] === d ? oW = r[45] : (oW = d ? {
|
|
36665
36698
|
maxHeight: "none"
|
|
36666
|
-
} : void 0, r[44] = d, r[45] =
|
|
36699
|
+
} : void 0, r[44] = d, r[45] = oW), sW = e2.map((e3, r2) => {
|
|
36667
36700
|
if (e3.channel === "pdb") return null;
|
|
36668
36701
|
if (e3.channel === "stdin") {
|
|
36669
36702
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -36692,36 +36725,36 @@ ${c}
|
|
|
36692
36725
|
wrapText: l
|
|
36693
36726
|
})
|
|
36694
36727
|
}, r2);
|
|
36695
|
-
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] =
|
|
36696
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
36697
|
-
let
|
|
36698
|
-
r[46] !== T || r[47] !== S ? (
|
|
36728
|
+
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = rW, r[25] = iW, r[26] = Z, r[27] = aW, r[28] = oW, r[29] = sW;
|
|
36729
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], rW = r[24], iW = r[25], Z = r[26], aW = r[27], oW = r[28], sW = r[29];
|
|
36730
|
+
let cW;
|
|
36731
|
+
r[46] !== T || r[47] !== S ? (cW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36699
36732
|
value: S,
|
|
36700
36733
|
cellId: T,
|
|
36701
36734
|
className: "bg-(--slate-4) border-(--slate-4) hover:bg-(--slate-5) dark:border-(--sky-5) dark:bg-(--sky-6) dark:text-(--sky-12) text-(--slate-12) rounded-l rounded-br-lg absolute right-0 bottom-0 text-xs px-1.5 py-0.5 font-mono max-w-[75%] whitespace-nowrap overflow-hidden"
|
|
36702
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
36703
|
-
let
|
|
36704
|
-
r[49] !==
|
|
36735
|
+
}), r[46] = T, r[47] = S, r[48] = cW) : cW = r[48];
|
|
36736
|
+
let lW;
|
|
36737
|
+
r[49] !== cW || r[50] !== G || r[51] !== q || r[52] !== rW || r[53] !== iW || r[54] !== Z || r[55] !== aW || r[56] !== oW || r[57] !== sW ? (lW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36705
36738
|
title: G,
|
|
36706
36739
|
"data-testid": q,
|
|
36707
|
-
ref:
|
|
36708
|
-
...
|
|
36740
|
+
ref: rW,
|
|
36741
|
+
...iW,
|
|
36709
36742
|
tabIndex: Z,
|
|
36710
|
-
className:
|
|
36711
|
-
style:
|
|
36743
|
+
className: aW,
|
|
36744
|
+
style: oW,
|
|
36712
36745
|
children: [
|
|
36713
|
-
|
|
36714
|
-
|
|
36746
|
+
sW,
|
|
36747
|
+
cW
|
|
36715
36748
|
]
|
|
36716
|
-
}), r[49] =
|
|
36717
|
-
let
|
|
36718
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
36749
|
+
}), r[49] = cW, r[50] = G, r[51] = q, r[52] = rW, r[53] = iW, r[54] = Z, r[55] = aW, r[56] = oW, r[57] = sW, r[58] = lW) : lW = r[58];
|
|
36750
|
+
let uW;
|
|
36751
|
+
return r[59] !== H || r[60] !== W || r[61] !== lW ? (uW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36719
36752
|
className: H,
|
|
36720
36753
|
children: [
|
|
36721
36754
|
W,
|
|
36722
|
-
|
|
36755
|
+
lW
|
|
36723
36756
|
]
|
|
36724
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
36757
|
+
}), r[59] = H, r[60] = W, r[61] = lW, r[62] = uW) : uW = r[62], uW;
|
|
36725
36758
|
}, StdInput = (e) => {
|
|
36726
36759
|
let r = (0, import_compiler_runtime$6.c)(25), { value: c, setValue: l, inputHistory: u, output: d, isPassword: f, isPdb: p, onSubmit: m, onClear: h } = e, { navigateUp: g, navigateDown: _, addToHistory: v } = u, y;
|
|
36727
36760
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -37188,23 +37221,23 @@ ${c}
|
|
|
37188
37221
|
if ((h || _ || m || W) && !G) return null;
|
|
37189
37222
|
let q;
|
|
37190
37223
|
r[45] !== d || r[46] !== T ? (q = cellDomProps(d, T), r[45] = d, r[46] = T, r[47] = q) : q = r[47];
|
|
37191
|
-
let
|
|
37192
|
-
r[48] !== d || r[49] !== R || r[50] !== c || r[51] !== I || r[52] !==
|
|
37193
|
-
allowExpand:
|
|
37224
|
+
let rW = w === "edit", iW;
|
|
37225
|
+
r[48] !== d || r[49] !== R || r[50] !== c || r[51] !== I || r[52] !== rW ? (iW = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37226
|
+
allowExpand: rW,
|
|
37194
37227
|
output: c,
|
|
37195
37228
|
className: CSSClasses.outputArea,
|
|
37196
37229
|
cellId: d,
|
|
37197
37230
|
stale: I,
|
|
37198
37231
|
loading: R
|
|
37199
|
-
}), r[48] = d, r[49] = R, r[50] = c, r[51] = I, r[52] =
|
|
37232
|
+
}), r[48] = d, r[49] = R, r[50] = c, r[51] = I, r[52] = rW, r[53] = iW) : iW = r[53];
|
|
37200
37233
|
let Z;
|
|
37201
|
-
return r[54] !== H || r[55] !== q || r[56] !==
|
|
37234
|
+
return r[54] !== H || r[55] !== q || r[56] !== iW ? (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
37202
37235
|
tabIndex: -1,
|
|
37203
37236
|
ref: j,
|
|
37204
37237
|
className: H,
|
|
37205
37238
|
...q,
|
|
37206
|
-
children:
|
|
37207
|
-
}), r[54] = H, r[55] = q, r[56] =
|
|
37239
|
+
children: iW
|
|
37240
|
+
}), r[54] = H, r[55] = q, r[56] = iW, r[57] = Z) : Z = r[57], Z;
|
|
37208
37241
|
});
|
|
37209
37242
|
VerticalCell.displayName = "VerticalCell";
|
|
37210
37243
|
const VerticalLayoutPlugin = {
|