@marimo-team/islands 0.23.14-dev25 → 0.23.14-dev30
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-DpEAMcRS.js → code-visibility-CAkgOEA5.js} +8 -8
- package/dist/main.js +1055 -1023
- package/dist/{reveal-component-dRz_KlPn.js → reveal-component-x6IwgqPf.js} +594 -590
- package/package.json +1 -1
- package/src/components/data-table/charts/__tests__/merge-index-fields.test.ts +33 -0
- package/src/components/data-table/charts/charts.tsx +24 -1
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +7 -2
- package/src/components/slides/__tests__/slide.test.tsx +33 -0
- package/src/components/slides/minimap.tsx +7 -1
- package/src/components/slides/reveal-component.tsx +3 -0
- package/src/components/slides/slide-cell-view.tsx +3 -0
- package/src/components/slides/slide.tsx +16 -13
- package/src/plugins/impl/DataTablePlugin.tsx +1 -0
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +53 -2
- package/src/plugins/impl/anywidget/__tests__/AnyWidgetPlugin.test.tsx +52 -2
package/dist/main.js
CHANGED
|
@@ -26,7 +26,7 @@ import { $ as reducer, $t as requestClientAtom, A as ChevronDownIcon, At as Path
|
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BbqSm5gU.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist--2Bqjvs0.js";
|
|
28
28
|
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-CnTgI25l.js";
|
|
29
|
-
import { $ as PANEL_TYPES, $t as HtmlOutput, A as prettifyRowCount, At as INDEX_COLUMN_NAME, B as CompactChipRow, Bt as dateToLocalISODateTime, C as downloadSizeLimitAtom, Ct as ColumnChartSpecModel, D as ErrorState, Dt as getPageIndexForRow, E as EmptyState, Et as usePrevious$1, F as ContextMenuItem, Ft as hasFunctionProperty, G as Command, Gt as TabsTrigger, H as DateRangePicker, Ht as Tabs, I as ContextMenuSeparator, It as isRecord, J as CommandItem, Jt as ChartLoadingState, K as CommandEmpty, Kt as ChartErrorState, L as ContextMenuTrigger, Lt as isNullishFilter, M as getUserColumnVisibilityCounts, Mt as TOO_MANY_ROWS, N as ContextMenu, Nt as toFieldTypes, O as LoadingState, Ot as loadTableAndRawData, P as ContextMenuContent, Pt as getMimeValues, Q as ContextAwarePanelItem, Qt as Kbd, R as useInternalStateWithSync, Rt as Maps, S as Filenames, St as ColumnChartContext, T as ColumnPreviewContainer, Tt as useIntersectionObserver, U as Combobox, Ut as TabsContent, V as DatePicker, Vt as dateToLocalISOTime, W as ComboboxItem, Wt as TabsList, X as CommandSeparator, Xt as useOverflowDetection, Y as CommandList, Yt as LazyVegaEmbed, Z as smartMatch, Zt as RenderTextWithLinks, _ as ADD_PRINTING_CLASS, _t as TableRow, an as Funnel, at as slotsController, b as downloadHTMLAsImage, bt as inferFieldTypes, c as Slide, cn as Ellipsis, d as RadioGroupItem, dn as ChevronsUpDown, dt as Provider$1, en as EmotionCacheProvider, et as contextAwarePanelOpen, f as JsonOutput, fn as ChevronsRight, ft as Table, g as InstallPackageButton, gn as ArrowDownWideNarrow, gt as TableHeader, h as DataTable, hn as ChevronLeft, ht as TableHead, in as GripHorizontal, it as SlotNames, j as getColumnCountForDisplay, jt as SELECT_COLUMN_ID, k as prettifyRowColumnCount, kt as loadTableData, l as Switch, ln as Download, m as OutputRenderer, mn as ChevronsDownUp, mt as TableCell, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$6b862160d295c8e, nt as contextAwarePanelType, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as EyeOff, ot as Toggle, p as OutputArea, pn as ChevronsLeft, pt as TableBody, q as CommandInput, qt as ChartInfoState, r as showCodeInRunModeAtom, rn as TextWrap, rt as isCellAwareAtom, t as useNotebookCodeAvailable, tn as $fae977aafc393c5c$export$588937bcd60ade55, tt as contextAwarePanelOwner, u as RadioGroup, un as Code, ut as Fill, v as downloadBlob, vt as NAMELESS_COLUMN_PREFIX, w as ColumnName, wt as DelayMount, x as Progress, xt as renderCellValue, y as downloadByURL, yt as generateColumns, z as useSelectList, zt as dateToLocalISODate, __tla as __tla_2 } from "./code-visibility-
|
|
29
|
+
import { $ as PANEL_TYPES, $t as HtmlOutput, A as prettifyRowCount, At as INDEX_COLUMN_NAME, B as CompactChipRow, Bt as dateToLocalISODateTime, C as downloadSizeLimitAtom, Ct as ColumnChartSpecModel, D as ErrorState, Dt as getPageIndexForRow, E as EmptyState, Et as usePrevious$1, F as ContextMenuItem, Ft as hasFunctionProperty, G as Command, Gt as TabsTrigger, H as DateRangePicker, Ht as Tabs, I as ContextMenuSeparator, It as isRecord, J as CommandItem, Jt as ChartLoadingState, K as CommandEmpty, Kt as ChartErrorState, L as ContextMenuTrigger, Lt as isNullishFilter, M as getUserColumnVisibilityCounts, Mt as TOO_MANY_ROWS, N as ContextMenu, Nt as toFieldTypes, O as LoadingState, Ot as loadTableAndRawData, P as ContextMenuContent, Pt as getMimeValues, Q as ContextAwarePanelItem, Qt as Kbd, R as useInternalStateWithSync, Rt as Maps, S as Filenames, St as ColumnChartContext, T as ColumnPreviewContainer, Tt as useIntersectionObserver, U as Combobox, Ut as TabsContent, V as DatePicker, Vt as dateToLocalISOTime, W as ComboboxItem, Wt as TabsList, X as CommandSeparator, Xt as useOverflowDetection, Y as CommandList, Yt as LazyVegaEmbed, Z as smartMatch, Zt as RenderTextWithLinks, _ as ADD_PRINTING_CLASS, _t as TableRow, an as Funnel, at as slotsController, b as downloadHTMLAsImage, bt as inferFieldTypes, c as Slide, cn as Ellipsis, d as RadioGroupItem, dn as ChevronsUpDown, dt as Provider$1, en as EmotionCacheProvider, et as contextAwarePanelOpen, f as JsonOutput, fn as ChevronsRight, ft as Table, g as InstallPackageButton, gn as ArrowDownWideNarrow, gt as TableHeader, h as DataTable, hn as ChevronLeft, ht as TableHead, in as GripHorizontal, it as SlotNames, j as getColumnCountForDisplay, jt as SELECT_COLUMN_ID, k as prettifyRowColumnCount, kt as loadTableData, l as Switch, ln as Download, m as OutputRenderer, mn as ChevronsDownUp, mt as TableCell, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$6b862160d295c8e, nt as contextAwarePanelType, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as EyeOff, ot as Toggle, p as OutputArea, pn as ChevronsLeft, pt as TableBody, q as CommandInput, qt as ChartInfoState, r as showCodeInRunModeAtom, rn as TextWrap, rt as isCellAwareAtom, t as useNotebookCodeAvailable, tn as $fae977aafc393c5c$export$588937bcd60ade55, tt as contextAwarePanelOwner, u as RadioGroup, un as Code, ut as Fill, v as downloadBlob, vt as NAMELESS_COLUMN_PREFIX, w as ColumnName, wt as DelayMount, x as Progress, xt as renderCellValue, y as downloadByURL, yt as generateColumns, z as useSelectList, zt as dateToLocalISODate, __tla as __tla_2 } from "./code-visibility-CAkgOEA5.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), fW = C({
|
|
7001
7001
|
column: 0,
|
|
7002
7002
|
row: 0
|
|
7003
|
-
}),
|
|
7004
|
-
Y(x(b, $(
|
|
7005
|
-
D(
|
|
7006
|
-
}), Y(x(ut(b,
|
|
7007
|
-
D(
|
|
7003
|
+
}), pW = U(), Z = U(), mW = C(false), hW = C(0), gW = C(true), _W = C(false), vW = C(false);
|
|
7004
|
+
Y(x(b, $(hW), P(([e2, r2]) => !!r2)), () => {
|
|
7005
|
+
D(gW, false);
|
|
7006
|
+
}), Y(x(ut(b, gW, B, z, hW, _W), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7007
|
+
D(_W, 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(gW, 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(fW, e2.gap), e2.scrollTop > 0 && (D(mW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7017
|
+
D(mW, 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(fW, (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
|
+
}))), pW), F(x(ut(V(I), l, V(fW, Or), V(B, xe), V(z, xe), V(q), V(L), V(mW), V(gW), V(hW)), 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, fW), 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 yW = C(false);
|
|
7053
|
+
F(x(h, $(yW), k(([e2, r2]) => r2 || e2 !== 0)), yW);
|
|
7054
|
+
let bW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(yW), 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())), xW = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), SW = bt(x(V(R), $(mW), 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(SW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, fW), 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 CW = 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: fW,
|
|
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: vW,
|
|
7102
|
+
initialTopMostItemIndex: hW,
|
|
7103
|
+
totalListHeight: CW,
|
|
7104
7104
|
...v,
|
|
7105
|
-
endReached:
|
|
7105
|
+
endReached: bW,
|
|
7106
7106
|
propsReady: S,
|
|
7107
|
-
rangeChanged:
|
|
7108
|
-
startReached:
|
|
7109
|
-
stateChanged:
|
|
7110
|
-
stateRestoreInProgress:
|
|
7107
|
+
rangeChanged: SW,
|
|
7108
|
+
startReached: xW,
|
|
7109
|
+
stateChanged: pW,
|
|
7110
|
+
stateRestoreInProgress: mW,
|
|
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 fW = q, pW;
|
|
7389
7389
|
if (r[13] !== G.bulkActions) {
|
|
7390
|
-
if (
|
|
7390
|
+
if (pW = G.bulkActions.map(_temp$26), pW.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], pW.push(e2);
|
|
7395
7395
|
}
|
|
7396
|
-
r[13] = G.bulkActions, r[14] =
|
|
7397
|
-
} else
|
|
7396
|
+
r[13] = G.bulkActions, r[14] = pW;
|
|
7397
|
+
} else pW = 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 mW = Z, hW;
|
|
7403
|
+
r[19] !== pW || r[20] !== G || r[21] !== mW || r[22] !== w || r[23] !== B || r[24] !== H ? (hW = () => {
|
|
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 && pW,
|
|
7416
|
+
mW(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 = mW(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
|
+
pW,
|
|
7442
7442
|
e2
|
|
7443
7443
|
]
|
|
7444
7444
|
});
|
|
7445
|
-
}, r[19] =
|
|
7446
|
-
let
|
|
7447
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7445
|
+
}, r[19] = pW, r[20] = G, r[21] = mW, r[22] = w, r[23] = B, r[24] = H, r[25] = hW) : hW = r[25];
|
|
7446
|
+
let gW = hW, _W;
|
|
7447
|
+
r[26] !== G.labelOf || r[27] !== I ? (_W = (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] = _W) : _W = r[28];
|
|
7459
|
+
let vW = _W, yW = e["data-testid"], bW;
|
|
7460
|
+
r[29] === G ? bW = r[30] : (bW = (e2) => G.labelOf(e2), r[29] = G, r[30] = bW);
|
|
7461
|
+
let xW = M ? vW : void 0, SW;
|
|
7462
|
+
r[31] !== b || r[32] !== R ? (SW = 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] = SW) : SW = r[33];
|
|
7465
|
+
let CW = G.searchQuery, wW = G.setSearchQuery, TW = G.open, EW = G.setOpen, DW;
|
|
7466
|
+
r[34] === z ? DW = r[35] : (DW = renderSlot(z), r[34] = z, r[35] = DW);
|
|
7467
|
+
let OW;
|
|
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] !== yW || r[44] !== bW || r[45] !== xW || r[46] !== SW || r[47] !== DW ? (OW = {
|
|
7469
7469
|
"data-slot": "select-root",
|
|
7470
|
-
"data-testid":
|
|
7471
|
-
displayValue:
|
|
7472
|
-
renderValue:
|
|
7470
|
+
"data-testid": yW,
|
|
7471
|
+
displayValue: bW,
|
|
7472
|
+
renderValue: xW,
|
|
7473
7473
|
placeholder: I,
|
|
7474
|
-
className:
|
|
7474
|
+
className: SW,
|
|
7475
7475
|
shouldFilter: false,
|
|
7476
|
-
search:
|
|
7477
|
-
onSearchChange:
|
|
7478
|
-
open:
|
|
7479
|
-
onOpenChange:
|
|
7480
|
-
emptyState:
|
|
7476
|
+
search: CW,
|
|
7477
|
+
onSearchChange: wW,
|
|
7478
|
+
open: TW,
|
|
7479
|
+
onOpenChange: EW,
|
|
7480
|
+
emptyState: DW,
|
|
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] = yW, r[44] = bW, r[45] = xW, r[46] = SW, r[47] = DW, r[48] = OW) : OW = r[48];
|
|
7484
|
+
let kW = OW, AW;
|
|
7485
|
+
return r[49] !== kW || r[50] !== fW || r[51] !== d || r[52] !== gW || r[53] !== l ? (AW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7486
|
+
...kW,
|
|
7487
7487
|
multiple: true,
|
|
7488
7488
|
value: l,
|
|
7489
|
-
onValueChange:
|
|
7490
|
-
children:
|
|
7489
|
+
onValueChange: fW,
|
|
7490
|
+
children: gW()
|
|
7491
7491
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7492
|
-
...
|
|
7492
|
+
...kW,
|
|
7493
7493
|
multiple: false,
|
|
7494
7494
|
value: l,
|
|
7495
|
-
onValueChange:
|
|
7496
|
-
children:
|
|
7497
|
-
}), r[49] =
|
|
7495
|
+
onValueChange: fW,
|
|
7496
|
+
children: gW()
|
|
7497
|
+
}), r[49] = kW, r[50] = fW, r[51] = d, r[52] = gW, r[53] = l, r[54] = AW) : AW = r[54], AW;
|
|
7498
7498
|
}
|
|
7499
7499
|
function _temp$26(e) {
|
|
7500
7500
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -8057,7 +8057,7 @@ let __tla = Promise.all([
|
|
|
8057
8057
|
...e
|
|
8058
8058
|
}));
|
|
8059
8059
|
var AnyWidgetSlot = (e) => {
|
|
8060
|
-
let r = (0, import_compiler_runtime$82.c)(
|
|
8060
|
+
let r = (0, import_compiler_runtime$82.c)(18), { jsUrl: c, jsHash: l, modelId: u } = e.data, d = e.host, f;
|
|
8061
8061
|
r[0] !== l || r[1] !== c ? (f = {
|
|
8062
8062
|
jsUrl: c,
|
|
8063
8063
|
jsHash: l
|
|
@@ -8070,20 +8070,23 @@ let __tla = Promise.all([
|
|
|
8070
8070
|
}), r[3] = m, r[4] = e2), e2;
|
|
8071
8071
|
}
|
|
8072
8072
|
if (!p) return null;
|
|
8073
|
-
|
|
8073
|
+
let h;
|
|
8074
|
+
r[5] !== p || r[6] !== c ? (h = resolveAnyWidget(p, c), r[5] = p, r[6] = c, r[7] = h) : h = r[7];
|
|
8075
|
+
let g = h;
|
|
8076
|
+
if (!g) {
|
|
8074
8077
|
let e2;
|
|
8075
|
-
r[
|
|
8078
|
+
r[8] !== p || r[9] !== c ? (e2 = getInvalidAnyWidgetModuleError(p, c), r[8] = p, r[9] = c, r[10] = e2) : e2 = r[10];
|
|
8076
8079
|
let l2;
|
|
8077
|
-
return r[
|
|
8080
|
+
return r[11] === e2 ? l2 = r[12] : (l2 = (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
8078
8081
|
error: e2
|
|
8079
|
-
}), r[
|
|
8082
|
+
}), r[11] = e2, r[12] = l2), l2;
|
|
8080
8083
|
}
|
|
8081
|
-
let
|
|
8082
|
-
return r[
|
|
8083
|
-
widget:
|
|
8084
|
+
let _ = `${l}:${u}`, v;
|
|
8085
|
+
return r[13] !== d || r[14] !== u || r[15] !== _ || r[16] !== g ? (v = (0, import_jsx_runtime.jsx)(LoadedSlot, {
|
|
8086
|
+
widget: g,
|
|
8084
8087
|
modelId: u,
|
|
8085
8088
|
host: d
|
|
8086
|
-
},
|
|
8089
|
+
}, _), r[13] = d, r[14] = u, r[15] = _, r[16] = g, r[17] = v) : v = r[17], v;
|
|
8087
8090
|
};
|
|
8088
8091
|
async function runAnyWidgetModule(e, r, c, l, u) {
|
|
8089
8092
|
l.innerHTML = "";
|
|
@@ -8097,6 +8100,21 @@ let __tla = Promise.all([
|
|
|
8097
8100
|
var _a3, _b3;
|
|
8098
8101
|
return e.default ? typeof e.default == "function" || typeof ((_a3 = e.default) == null ? void 0 : _a3.render) == "function" || typeof ((_b3 = e.default) == null ? void 0 : _b3.initialize) == "function" : false;
|
|
8099
8102
|
}
|
|
8103
|
+
var warnedLegacyNamedExportUrls = /* @__PURE__ */ new Set(), legacyWidgetCache = /* @__PURE__ */ new WeakMap();
|
|
8104
|
+
function resolveAnyWidget(e, r) {
|
|
8105
|
+
if (isAnyWidgetModule(e)) return e.default;
|
|
8106
|
+
if ((e == null ? void 0 : e.default) != null) return null;
|
|
8107
|
+
let c = typeof (e == null ? void 0 : e.render) == "function", l = typeof (e == null ? void 0 : e.initialize) == "function";
|
|
8108
|
+
if (!c && !l) return null;
|
|
8109
|
+
let u = legacyWidgetCache.get(e);
|
|
8110
|
+
if (u) return u;
|
|
8111
|
+
warnedLegacyNamedExportUrls.has(r) || (warnedLegacyNamedExportUrls.add(r), Logger.warn(`Anywidget module at ${r} uses deprecated top-level named exports (\`render\`/\`initialize\`). Per the AFM spec, use a default export instead: \`export default { render }\`. See https://anywidget.dev/en/afm/`));
|
|
8112
|
+
let f = {
|
|
8113
|
+
render: e.render,
|
|
8114
|
+
initialize: e.initialize
|
|
8115
|
+
};
|
|
8116
|
+
return legacyWidgetCache.set(e, f), f;
|
|
8117
|
+
}
|
|
8100
8118
|
function getInvalidAnyWidgetModuleError(e, r) {
|
|
8101
8119
|
let c = "https://anywidget.dev/en/afm/", l = isRecord(e) && hasFunctionProperty(e, "render"), u = isRecord(e) && hasFunctionProperty(e, "initialize");
|
|
8102
8120
|
if (l || u) {
|
|
@@ -9691,7 +9709,7 @@ let __tla = Promise.all([
|
|
|
9691
9709
|
let m2 = get(l, e2);
|
|
9692
9710
|
if (m2) {
|
|
9693
9711
|
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)) :
|
|
9712
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : fW(e2, l2), f.mount && w();
|
|
9695
9713
|
}
|
|
9696
9714
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
9697
9715
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -9764,14 +9782,14 @@ let __tla = Promise.all([
|
|
|
9764
9782
|
}, H = () => {
|
|
9765
9783
|
for (let e2 of p.unMount) {
|
|
9766
9784
|
let r2 = get(l, e2);
|
|
9767
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
9785
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && SW(e2);
|
|
9768
9786
|
}
|
|
9769
9787
|
p.unMount = /* @__PURE__ */ new Set();
|
|
9770
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
9788
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(_W(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
9771
9789
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
9772
9790
|
[e2]: r2
|
|
9773
9791
|
} : r2
|
|
9774
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
9792
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), fW = (e2, r2, c2 = {}) => {
|
|
9775
9793
|
let u2 = get(l, e2), f2 = r2;
|
|
9776
9794
|
if (u2) {
|
|
9777
9795
|
let c3 = u2._f;
|
|
@@ -9784,11 +9802,11 @@ let __tla = Promise.all([
|
|
|
9784
9802
|
}
|
|
9785
9803
|
})));
|
|
9786
9804
|
}
|
|
9787
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
9788
|
-
},
|
|
9805
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && gW(e2);
|
|
9806
|
+
}, pW = (e2, r2, c2) => {
|
|
9789
9807
|
for (let u2 in r2) {
|
|
9790
9808
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
9791
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
9809
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? pW(f2, d2, c2) : fW(f2, d2, c2);
|
|
9792
9810
|
}
|
|
9793
9811
|
}, Z = (e2, r2, m2 = {}) => {
|
|
9794
9812
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
@@ -9801,7 +9819,7 @@ let __tla = Promise.all([
|
|
|
9801
9819
|
name: e2,
|
|
9802
9820
|
dirtyFields: getDirtyFields(u, d),
|
|
9803
9821
|
isDirty: W(e2, y2)
|
|
9804
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
9822
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? pW(e2, y2, m2) : fW(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
9805
9823
|
...c
|
|
9806
9824
|
}), _.values.next({
|
|
9807
9825
|
name: f.mount ? e2 : void 0,
|
|
@@ -9809,7 +9827,7 @@ let __tla = Promise.all([
|
|
|
9809
9827
|
...d
|
|
9810
9828
|
}
|
|
9811
9829
|
});
|
|
9812
|
-
},
|
|
9830
|
+
}, mW = async (e2) => {
|
|
9813
9831
|
f.mount = true;
|
|
9814
9832
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
9815
9833
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -9843,11 +9861,11 @@ let __tla = Promise.all([
|
|
|
9843
9861
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
9844
9862
|
h2
|
|
9845
9863
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
9846
|
-
S2 && (E2._f.deps &&
|
|
9864
|
+
S2 && (E2._f.deps && gW(E2._f.deps), L(h2, f2, u3, G2));
|
|
9847
9865
|
}
|
|
9848
|
-
},
|
|
9866
|
+
}, hW = (e2, r2) => {
|
|
9849
9867
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
9850
|
-
},
|
|
9868
|
+
}, gW = async (e2, u2 = {}) => {
|
|
9851
9869
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
9852
9870
|
if (r.resolver) {
|
|
9853
9871
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -9866,23 +9884,23 @@ let __tla = Promise.all([
|
|
|
9866
9884
|
isValid: d2
|
|
9867
9885
|
} : {},
|
|
9868
9886
|
errors: c.errors
|
|
9869
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
9870
|
-
},
|
|
9887
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, hW, e2 ? m2 : p.mount), f2;
|
|
9888
|
+
}, _W = (e2) => {
|
|
9871
9889
|
let r2 = {
|
|
9872
9890
|
...f.mount ? d : u
|
|
9873
9891
|
};
|
|
9874
9892
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
9875
|
-
},
|
|
9893
|
+
}, vW = (e2, r2) => ({
|
|
9876
9894
|
invalid: !!get((r2 || c).errors, e2),
|
|
9877
9895
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
9878
9896
|
error: get((r2 || c).errors, e2),
|
|
9879
9897
|
isValidating: !!get(c.validatingFields, e2),
|
|
9880
9898
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
9881
|
-
}),
|
|
9899
|
+
}), yW = (e2) => {
|
|
9882
9900
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
9883
9901
|
errors: e2 ? c.errors : {}
|
|
9884
9902
|
});
|
|
9885
|
-
},
|
|
9903
|
+
}, bW = (e2, r2, u2) => {
|
|
9886
9904
|
let d2 = (get(l, e2, {
|
|
9887
9905
|
_f: {}
|
|
9888
9906
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -9895,9 +9913,9 @@ let __tla = Promise.all([
|
|
|
9895
9913
|
errors: c.errors,
|
|
9896
9914
|
isValid: false
|
|
9897
9915
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
9898
|
-
},
|
|
9916
|
+
}, xW = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
9899
9917
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
9900
|
-
}) : G(e2, r2, true),
|
|
9918
|
+
}) : G(e2, r2, true), SW = (e2, f2 = {}) => {
|
|
9901
9919
|
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
9920
|
_.values.next({
|
|
9903
9921
|
values: {
|
|
@@ -9909,9 +9927,9 @@ let __tla = Promise.all([
|
|
|
9909
9927
|
isDirty: W()
|
|
9910
9928
|
} : {}
|
|
9911
9929
|
}), !f2.keepIsValid && w();
|
|
9912
|
-
},
|
|
9930
|
+
}, CW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
9913
9931
|
(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
|
-
},
|
|
9932
|
+
}, wW = (e2, c2 = {}) => {
|
|
9915
9933
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
9916
9934
|
return set(l, e2, {
|
|
9917
9935
|
...d2 || {},
|
|
@@ -9925,7 +9943,7 @@ let __tla = Promise.all([
|
|
|
9925
9943
|
mount: true,
|
|
9926
9944
|
...c2
|
|
9927
9945
|
}
|
|
9928
|
-
}), p.mount.add(e2), d2 ?
|
|
9946
|
+
}), p.mount.add(e2), d2 ? CW({
|
|
9929
9947
|
field: d2,
|
|
9930
9948
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
9931
9949
|
name: e2
|
|
@@ -9942,11 +9960,11 @@ let __tla = Promise.all([
|
|
|
9942
9960
|
pattern: getRuleValue(c2.pattern)
|
|
9943
9961
|
} : {},
|
|
9944
9962
|
name: e2,
|
|
9945
|
-
onChange:
|
|
9946
|
-
onBlur:
|
|
9963
|
+
onChange: mW,
|
|
9964
|
+
onBlur: mW,
|
|
9947
9965
|
ref: (m3) => {
|
|
9948
9966
|
if (m3) {
|
|
9949
|
-
|
|
9967
|
+
wW(e2, c2), d2 = get(l, e2);
|
|
9950
9968
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
9951
9969
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
9952
9970
|
set(l, e2, {
|
|
@@ -9972,7 +9990,7 @@ let __tla = Promise.all([
|
|
|
9972
9990
|
} 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
9991
|
}
|
|
9974
9992
|
};
|
|
9975
|
-
},
|
|
9993
|
+
}, TW = () => r.shouldFocusError && iterateFieldsByAction(l, hW, p.mount), EW = (e2) => {
|
|
9976
9994
|
isBoolean(e2) && (_.state.next({
|
|
9977
9995
|
disabled: e2
|
|
9978
9996
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -9981,7 +9999,7 @@ let __tla = Promise.all([
|
|
|
9981
9999
|
r3.disabled = u2._f.disabled || e2;
|
|
9982
10000
|
}));
|
|
9983
10001
|
}, 0, false));
|
|
9984
|
-
},
|
|
10002
|
+
}, DW = (e2, u2) => async (f2) => {
|
|
9985
10003
|
let m2;
|
|
9986
10004
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
9987
10005
|
let h2 = cloneObject(d);
|
|
@@ -10003,7 +10021,7 @@ let __tla = Promise.all([
|
|
|
10003
10021
|
}
|
|
10004
10022
|
} else u2 && await u2({
|
|
10005
10023
|
...c.errors
|
|
10006
|
-
}, f2),
|
|
10024
|
+
}, f2), TW(), setTimeout(TW);
|
|
10007
10025
|
if (_.state.next({
|
|
10008
10026
|
isSubmitted: true,
|
|
10009
10027
|
isSubmitting: false,
|
|
@@ -10011,11 +10029,11 @@ let __tla = Promise.all([
|
|
|
10011
10029
|
submitCount: c.submitCount + 1,
|
|
10012
10030
|
errors: c.errors
|
|
10013
10031
|
}), m2) throw m2;
|
|
10014
|
-
},
|
|
10032
|
+
}, OW = (e2, r2 = {}) => {
|
|
10015
10033
|
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
10034
|
...c
|
|
10017
10035
|
}));
|
|
10018
|
-
},
|
|
10036
|
+
}, kW = (e2, m2 = {}) => {
|
|
10019
10037
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10020
10038
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10021
10039
|
if (m2.keepDirtyValues) {
|
|
@@ -10068,25 +10086,25 @@ let __tla = Promise.all([
|
|
|
10068
10086
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10069
10087
|
isSubmitting: false
|
|
10070
10088
|
});
|
|
10071
|
-
},
|
|
10089
|
+
}, AW = (e2, r2) => kW(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10072
10090
|
return {
|
|
10073
10091
|
control: {
|
|
10074
|
-
register:
|
|
10075
|
-
unregister:
|
|
10076
|
-
getFieldState:
|
|
10077
|
-
handleSubmit:
|
|
10078
|
-
setError:
|
|
10092
|
+
register: wW,
|
|
10093
|
+
unregister: SW,
|
|
10094
|
+
getFieldState: vW,
|
|
10095
|
+
handleSubmit: DW,
|
|
10096
|
+
setError: bW,
|
|
10079
10097
|
_executeSchema: R,
|
|
10080
10098
|
_getWatch: G,
|
|
10081
10099
|
_getDirty: W,
|
|
10082
10100
|
_updateValid: w,
|
|
10083
10101
|
_removeUnmounted: H,
|
|
10084
10102
|
_updateFieldArray: E,
|
|
10085
|
-
_updateDisabledField:
|
|
10103
|
+
_updateDisabledField: CW,
|
|
10086
10104
|
_getFieldArray: q,
|
|
10087
|
-
_reset:
|
|
10105
|
+
_reset: kW,
|
|
10088
10106
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10089
|
-
|
|
10107
|
+
AW(e2, r.resetOptions), _.state.next({
|
|
10090
10108
|
isLoading: false
|
|
10091
10109
|
});
|
|
10092
10110
|
}),
|
|
@@ -10096,7 +10114,7 @@ let __tla = Promise.all([
|
|
|
10096
10114
|
...e2
|
|
10097
10115
|
};
|
|
10098
10116
|
},
|
|
10099
|
-
_disableForm:
|
|
10117
|
+
_disableForm: EW,
|
|
10100
10118
|
_subjects: _,
|
|
10101
10119
|
_proxyFormState: g,
|
|
10102
10120
|
_setErrors: j,
|
|
@@ -10137,17 +10155,17 @@ let __tla = Promise.all([
|
|
|
10137
10155
|
};
|
|
10138
10156
|
}
|
|
10139
10157
|
},
|
|
10140
|
-
trigger:
|
|
10141
|
-
register:
|
|
10142
|
-
handleSubmit:
|
|
10143
|
-
watch:
|
|
10158
|
+
trigger: gW,
|
|
10159
|
+
register: wW,
|
|
10160
|
+
handleSubmit: DW,
|
|
10161
|
+
watch: xW,
|
|
10144
10162
|
setValue: Z,
|
|
10145
|
-
getValues:
|
|
10146
|
-
reset:
|
|
10147
|
-
resetField:
|
|
10148
|
-
clearErrors:
|
|
10149
|
-
unregister:
|
|
10150
|
-
setError:
|
|
10163
|
+
getValues: _W,
|
|
10164
|
+
reset: AW,
|
|
10165
|
+
resetField: OW,
|
|
10166
|
+
clearErrors: yW,
|
|
10167
|
+
unregister: SW,
|
|
10168
|
+
setError: bW,
|
|
10151
10169
|
setFocus: (e2, r2 = {}) => {
|
|
10152
10170
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10153
10171
|
if (u2) {
|
|
@@ -10155,7 +10173,7 @@ let __tla = Promise.all([
|
|
|
10155
10173
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10156
10174
|
}
|
|
10157
10175
|
},
|
|
10158
|
-
getFieldState:
|
|
10176
|
+
getFieldState: vW
|
|
10159
10177
|
};
|
|
10160
10178
|
}
|
|
10161
10179
|
function useForm(e = {}) {
|
|
@@ -12699,56 +12717,65 @@ ${c}
|
|
|
12699
12717
|
return r ? r.length > 0 : false;
|
|
12700
12718
|
}
|
|
12701
12719
|
var import_compiler_runtime$62 = require_compiler_runtime(), NEW_CHART_TYPE = "bar", DEFAULT_TAB_NAME = "table", CHART_HEIGHT = 290, CHART_MAX_ROWS = 5e4, CHART_MAX_COLUMNS = 50;
|
|
12702
|
-
|
|
12703
|
-
let
|
|
12704
|
-
if (
|
|
12705
|
-
|
|
12706
|
-
|
|
12720
|
+
function mergeIndexFields(e, r) {
|
|
12721
|
+
let c = e ?? [];
|
|
12722
|
+
if (!r || r.length === 0) return c;
|
|
12723
|
+
let l = new Set(c.map(([e2]) => e2)), u = r.filter(([e2]) => !l.has(e2));
|
|
12724
|
+
return [
|
|
12725
|
+
...c,
|
|
12726
|
+
...u
|
|
12727
|
+
];
|
|
12728
|
+
}
|
|
12729
|
+
const TablePanel = ({ cellId: e, data: r, dataTable: c, totalRows: l, columns: u, getDataUrl: d, fieldTypes: f, rowHeaders: p, displayHeader: m, onCloseChartBuilder: h }) => {
|
|
12730
|
+
let [g, _] = useAtom(tabsStorageAtom), v = e ? g.get(e) ?? [] : [], [y, b] = (0, import_react.useState)(DEFAULT_TAB_NAME), [S, T] = (0, import_react.useState)(v.length), E = (0, import_react.useRef)(m);
|
|
12731
|
+
if (m && !E.current && v.length === 0 && e) {
|
|
12732
|
+
E.current = m;
|
|
12733
|
+
let r2 = getChartTabName(0, NEW_CHART_TYPE), c2 = new Map(g);
|
|
12707
12734
|
c2.set(e, [
|
|
12708
12735
|
{
|
|
12709
12736
|
tabName: r2,
|
|
12710
12737
|
chartType: NEW_CHART_TYPE,
|
|
12711
12738
|
config: getChartDefaults()
|
|
12712
12739
|
}
|
|
12713
|
-
]),
|
|
12740
|
+
]), _(c2), T(1), b(r2);
|
|
12714
12741
|
}
|
|
12715
|
-
if (
|
|
12716
|
-
let
|
|
12742
|
+
if (E.current = m, !m || v.length === 0 && !m) return c;
|
|
12743
|
+
let O = () => {
|
|
12717
12744
|
if (!e) return;
|
|
12718
|
-
let r2 = getChartTabName(
|
|
12745
|
+
let r2 = getChartTabName(S, NEW_CHART_TYPE), c2 = new Map(g);
|
|
12719
12746
|
c2.set(e, [
|
|
12720
|
-
...
|
|
12747
|
+
...v,
|
|
12721
12748
|
{
|
|
12722
12749
|
tabName: r2,
|
|
12723
12750
|
chartType: NEW_CHART_TYPE,
|
|
12724
12751
|
config: getChartDefaults()
|
|
12725
12752
|
}
|
|
12726
|
-
]),
|
|
12727
|
-
},
|
|
12753
|
+
]), _(c2), T(S + 1), b(r2);
|
|
12754
|
+
}, j = (r2) => {
|
|
12728
12755
|
if (!e) return;
|
|
12729
|
-
let c2 =
|
|
12730
|
-
u2.set(e, l2),
|
|
12731
|
-
},
|
|
12756
|
+
let c2 = v.findIndex((e2) => e2.tabName === r2), l2 = v.filter((e2) => e2.tabName !== r2), u2 = new Map(g);
|
|
12757
|
+
u2.set(e, l2), _(u2), l2.length === 0 ? h == null ? void 0 : h() : r2 === y && (c2 < l2.length ? b(l2[c2].tabName) : b(l2[l2.length - 1].tabName));
|
|
12758
|
+
}, M = ({ tabName: r2, chartType: c2, chartConfig: l2 }) => {
|
|
12732
12759
|
if (!e) return;
|
|
12733
|
-
let u2 = new Map(
|
|
12734
|
-
u2.set(e,
|
|
12760
|
+
let u2 = new Map(g);
|
|
12761
|
+
u2.set(e, v.map((e2) => e2.tabName === r2 ? {
|
|
12735
12762
|
...e2,
|
|
12736
12763
|
chartType: c2,
|
|
12737
12764
|
config: l2
|
|
12738
|
-
} : e2)),
|
|
12739
|
-
},
|
|
12765
|
+
} : e2)), _(u2);
|
|
12766
|
+
}, I = (r2, c2) => {
|
|
12740
12767
|
if (!e) return;
|
|
12741
|
-
let l2 =
|
|
12768
|
+
let l2 = g.get(e) ?? [], u2 = l2.findIndex((e2) => e2.tabName === r2);
|
|
12742
12769
|
if (u2 === -1) return;
|
|
12743
12770
|
let d2 = l2.map((e2) => e2.tabName === r2 ? {
|
|
12744
12771
|
...e2,
|
|
12745
12772
|
chartType: c2,
|
|
12746
12773
|
tabName: getChartTabName(u2, c2)
|
|
12747
12774
|
} : e2);
|
|
12748
|
-
|
|
12749
|
-
},
|
|
12775
|
+
_(new Map(g).set(e, d2)), b(d2[u2].tabName);
|
|
12776
|
+
}, L = l === "too_many" || l > CHART_MAX_ROWS || u > CHART_MAX_COLUMNS;
|
|
12750
12777
|
return (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
12751
|
-
value:
|
|
12778
|
+
value: y,
|
|
12752
12779
|
className: "-mt-1",
|
|
12753
12780
|
children: [
|
|
12754
12781
|
(0, import_jsx_runtime.jsxs)(TabsList, {
|
|
@@ -12757,19 +12784,19 @@ ${c}
|
|
|
12757
12784
|
(0, import_jsx_runtime.jsx)(TabsTrigger, {
|
|
12758
12785
|
className: "text-xs",
|
|
12759
12786
|
value: DEFAULT_TAB_NAME,
|
|
12760
|
-
onClick: () =>
|
|
12787
|
+
onClick: () => b(DEFAULT_TAB_NAME),
|
|
12761
12788
|
children: "Table"
|
|
12762
12789
|
}),
|
|
12763
|
-
|
|
12790
|
+
v.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
12764
12791
|
className: "text-xs",
|
|
12765
12792
|
value: e2.tabName,
|
|
12766
|
-
onClick: () =>
|
|
12793
|
+
onClick: () => b(e2.tabName),
|
|
12767
12794
|
children: [
|
|
12768
12795
|
e2.tabName,
|
|
12769
12796
|
(0, import_jsx_runtime.jsx)(X, {
|
|
12770
12797
|
className: "w-3 h-3 ml-1 mt-[0.5px] hover:text-red-500 hover:font-semibold",
|
|
12771
12798
|
onClick: (r3) => {
|
|
12772
|
-
r3.stopPropagation(),
|
|
12799
|
+
r3.stopPropagation(), j(e2.tabName);
|
|
12773
12800
|
}
|
|
12774
12801
|
})
|
|
12775
12802
|
]
|
|
@@ -12777,7 +12804,7 @@ ${c}
|
|
|
12777
12804
|
(0, import_jsx_runtime.jsx)(Button, {
|
|
12778
12805
|
variant: "text",
|
|
12779
12806
|
size: "icon",
|
|
12780
|
-
onClick:
|
|
12807
|
+
onClick: O,
|
|
12781
12808
|
title: "Add chart",
|
|
12782
12809
|
children: "+"
|
|
12783
12810
|
})
|
|
@@ -12788,7 +12815,7 @@ ${c}
|
|
|
12788
12815
|
value: DEFAULT_TAB_NAME,
|
|
12789
12816
|
children: c
|
|
12790
12817
|
}),
|
|
12791
|
-
|
|
12818
|
+
v.map((e2, l2) => (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
12792
12819
|
value: e2.tabName,
|
|
12793
12820
|
className: "h-[400px] mt-0",
|
|
12794
12821
|
children: (0, import_jsx_runtime.jsx)(ChartPanel, {
|
|
@@ -12796,18 +12823,18 @@ ${c}
|
|
|
12796
12823
|
chartConfig: e2.config,
|
|
12797
12824
|
chartType: e2.chartType,
|
|
12798
12825
|
saveChart: (r2) => {
|
|
12799
|
-
|
|
12826
|
+
M({
|
|
12800
12827
|
tabName: e2.tabName,
|
|
12801
12828
|
chartType: e2.chartType,
|
|
12802
12829
|
chartConfig: r2
|
|
12803
12830
|
});
|
|
12804
12831
|
},
|
|
12805
12832
|
saveChartType: (r2) => {
|
|
12806
|
-
|
|
12833
|
+
I(e2.tabName, r2);
|
|
12807
12834
|
},
|
|
12808
12835
|
getDataUrl: d,
|
|
12809
|
-
fieldTypes: f ?? inferFieldTypes(c.props.data),
|
|
12810
|
-
isLargeDataset:
|
|
12836
|
+
fieldTypes: mergeIndexFields(f ?? inferFieldTypes(c.props.data), p),
|
|
12837
|
+
isLargeDataset: L
|
|
12811
12838
|
})
|
|
12812
12839
|
}, l2))
|
|
12813
12840
|
]
|
|
@@ -14377,7 +14404,7 @@ ${c}
|
|
|
14377
14404
|
return l;
|
|
14378
14405
|
};
|
|
14379
14406
|
const LoadingDataTableComponent = (0, import_react.memo)((e) => {
|
|
14380
|
-
let r = (0, import_compiler_runtime$57.c)(
|
|
14407
|
+
let r = (0, import_compiler_runtime$57.c)(119), c;
|
|
14381
14408
|
r[0] === e.host ? c = r[1] : (c = findCellId(e.host), r[0] = e.host, r[1] = c);
|
|
14382
14409
|
let l = c, u = e.search, f = e.setValue, p;
|
|
14383
14410
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = [], r[2] = p) : p = r[2];
|
|
@@ -14454,21 +14481,21 @@ ${c}
|
|
|
14454
14481
|
_.pageSize,
|
|
14455
14482
|
_.pageIndex
|
|
14456
14483
|
], 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];
|
|
14457
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
14458
|
-
r[48] !==
|
|
14459
|
-
let
|
|
14460
|
-
r[51] !==
|
|
14461
|
-
lW,
|
|
14462
|
-
uW,
|
|
14463
|
-
dW,
|
|
14464
|
-
fW,
|
|
14484
|
+
let { data: W, error: G, isPending: q, isFetching: fW } = useAsyncData(z, H), pW = useAtomValue(downloadSizeLimitAtom), Z;
|
|
14485
|
+
r[48] !== pW || r[49] !== e ? (Z = async () => !pW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = pW, r[49] = e, r[50] = Z) : Z = r[50];
|
|
14486
|
+
let mW = e.showDownload, hW = e.get_size_bytes, gW = e.lazy, _W = e.totalRows, vW = useDeepCompareMemoize(w), yW = useDeepCompareMemoize(m), bW;
|
|
14487
|
+
r[51] !== pW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== vW || r[58] !== yW ? (bW = [
|
|
14465
14488
|
pW,
|
|
14466
|
-
y,
|
|
14467
14489
|
mW,
|
|
14468
|
-
hW
|
|
14469
|
-
|
|
14470
|
-
|
|
14471
|
-
|
|
14490
|
+
hW,
|
|
14491
|
+
gW,
|
|
14492
|
+
_W,
|
|
14493
|
+
y,
|
|
14494
|
+
vW,
|
|
14495
|
+
yW
|
|
14496
|
+
], r[51] = pW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = vW, r[58] = yW, r[59] = bW) : bW = r[59];
|
|
14497
|
+
let { data: xW, isPending: SW } = useAsyncData(Z, bW), CW = xW ?? null, wW = !!pW && e.showDownload && SW, TW;
|
|
14498
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (TW = async (e2) => ({
|
|
14472
14499
|
rows: await loadTableData((await u({
|
|
14473
14500
|
page_number: e2,
|
|
14474
14501
|
page_size: 1,
|
|
@@ -14477,17 +14504,17 @@ ${c}
|
|
|
14477
14504
|
filters: filtersToFilterGroup(w),
|
|
14478
14505
|
max_columns: null
|
|
14479
14506
|
})).data)
|
|
14480
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
14481
|
-
let
|
|
14482
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
14507
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = TW) : TW = r[64];
|
|
14508
|
+
let EW = TW, DW;
|
|
14509
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (DW = () => {
|
|
14483
14510
|
v(_temp4$4);
|
|
14484
|
-
}, r[65] =
|
|
14485
|
-
let
|
|
14486
|
-
r[66] ===
|
|
14487
|
-
|
|
14488
|
-
], r[66] =
|
|
14489
|
-
let
|
|
14490
|
-
r[68] === e ?
|
|
14511
|
+
}, r[65] = DW) : DW = r[65];
|
|
14512
|
+
let OW = W == null ? void 0 : W.totalRows, kW;
|
|
14513
|
+
r[66] === OW ? kW = r[67] : (kW = [
|
|
14514
|
+
OW
|
|
14515
|
+
], r[66] = OW, r[67] = kW), (0, import_react.useEffect)(DW, kW);
|
|
14516
|
+
let AW;
|
|
14517
|
+
r[68] === e ? AW = r[69] : (AW = async () => {
|
|
14491
14518
|
let r2 = isStaticNotebook();
|
|
14492
14519
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
14493
14520
|
data: null,
|
|
@@ -14496,22 +14523,22 @@ ${c}
|
|
|
14496
14523
|
value_counts: {},
|
|
14497
14524
|
show_charts: false
|
|
14498
14525
|
} : e.get_column_summaries({});
|
|
14499
|
-
}, r[68] = e, r[69] =
|
|
14500
|
-
let
|
|
14501
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
14526
|
+
}, r[68] = e, r[69] = AW);
|
|
14527
|
+
let jW;
|
|
14528
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (jW = [
|
|
14502
14529
|
e.get_column_summaries,
|
|
14503
14530
|
e.showColumnSummaries,
|
|
14504
14531
|
w,
|
|
14505
14532
|
y,
|
|
14506
14533
|
e.totalRows,
|
|
14507
14534
|
e.data
|
|
14508
|
-
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] =
|
|
14509
|
-
let { data:
|
|
14510
|
-
if (r[77] ===
|
|
14511
|
-
|
|
14512
|
-
},
|
|
14513
|
-
|
|
14514
|
-
], r[77] =
|
|
14535
|
+
], 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] = jW) : jW = r[76];
|
|
14536
|
+
let { data: MW, error: NW } = useAsyncData(AW, jW), PW, FW;
|
|
14537
|
+
if (r[77] === NW ? (PW = r[78], FW = r[79]) : (PW = () => {
|
|
14538
|
+
NW && Logger.error(NW);
|
|
14539
|
+
}, FW = [
|
|
14540
|
+
NW
|
|
14541
|
+
], r[77] = NW, r[78] = PW, r[79] = FW), (0, import_react.useEffect)(PW, FW), q) {
|
|
14515
14542
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14516
14543
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14517
14544
|
milliseconds: 200,
|
|
@@ -14520,7 +14547,7 @@ ${c}
|
|
|
14520
14547
|
})
|
|
14521
14548
|
}), r[80] = c2, r[81] = l2), l2;
|
|
14522
14549
|
}
|
|
14523
|
-
let
|
|
14550
|
+
let IW = null;
|
|
14524
14551
|
if (G) {
|
|
14525
14552
|
Logger.error(G);
|
|
14526
14553
|
let e2;
|
|
@@ -14536,61 +14563,62 @@ ${c}
|
|
|
14536
14563
|
children: G.message || "An unknown error occurred"
|
|
14537
14564
|
})
|
|
14538
14565
|
]
|
|
14539
|
-
}), r[82] = G, r[83] = e2),
|
|
14566
|
+
}), r[82] = G, r[83] = e2), IW = e2;
|
|
14540
14567
|
}
|
|
14541
|
-
let
|
|
14542
|
-
r[84] === O ?
|
|
14568
|
+
let LW;
|
|
14569
|
+
r[84] === O ? LW = r[85] : (LW = () => {
|
|
14543
14570
|
j(!O);
|
|
14544
|
-
}, r[84] = O, r[85] =
|
|
14545
|
-
let
|
|
14546
|
-
r[86] !== l || r[87] !==
|
|
14571
|
+
}, r[84] = O, r[85] = LW);
|
|
14572
|
+
let RW = LW, zW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, BW = W == null ? void 0 : W.rawRows, VW = fW && !q, HW = (W == null ? void 0 : W.totalRows) ?? e.totalRows, UW = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, WW = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, GW;
|
|
14573
|
+
r[86] !== l || r[87] !== MW || r[88] !== O || r[89] !== w || r[90] !== EW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== CW || r[95] !== wW || r[96] !== m || r[97] !== zW || r[98] !== BW || r[99] !== VW || r[100] !== HW || r[101] !== UW || r[102] !== WW || r[103] !== RW ? (GW = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
14547
14574
|
...e,
|
|
14548
|
-
data:
|
|
14549
|
-
rawData:
|
|
14550
|
-
columnSummaries:
|
|
14575
|
+
data: zW,
|
|
14576
|
+
rawData: BW,
|
|
14577
|
+
columnSummaries: MW,
|
|
14551
14578
|
sorting: m,
|
|
14552
14579
|
setSorting: h,
|
|
14553
14580
|
searchQuery: y,
|
|
14554
14581
|
setSearchQuery: b,
|
|
14555
14582
|
filters: w,
|
|
14556
14583
|
setFilters: T,
|
|
14557
|
-
reloading:
|
|
14558
|
-
totalRows:
|
|
14559
|
-
sizeBytes:
|
|
14560
|
-
sizeBytesIsLoading:
|
|
14584
|
+
reloading: VW,
|
|
14585
|
+
totalRows: HW,
|
|
14586
|
+
sizeBytes: CW,
|
|
14587
|
+
sizeBytesIsLoading: wW,
|
|
14561
14588
|
paginationState: _,
|
|
14562
14589
|
setPaginationState: v,
|
|
14563
|
-
cellStyles:
|
|
14564
|
-
cellHoverTexts:
|
|
14565
|
-
toggleDisplayHeader:
|
|
14590
|
+
cellStyles: UW,
|
|
14591
|
+
cellHoverTexts: WW,
|
|
14592
|
+
toggleDisplayHeader: RW,
|
|
14566
14593
|
isChartBuilderOpen: O,
|
|
14567
|
-
getRow:
|
|
14594
|
+
getRow: EW,
|
|
14568
14595
|
cellId: l,
|
|
14569
14596
|
maxHeight: e.maxHeight
|
|
14570
|
-
}), r[86] = l, r[87] =
|
|
14571
|
-
let
|
|
14572
|
-
r[105] !== l || r[106] !==
|
|
14597
|
+
}), r[86] = l, r[87] = MW, r[88] = O, r[89] = w, r[90] = EW, r[91] = _, r[92] = e, r[93] = y, r[94] = CW, r[95] = wW, r[96] = m, r[97] = zW, r[98] = BW, r[99] = VW, r[100] = HW, r[101] = UW, r[102] = WW, r[103] = RW, r[104] = GW) : GW = r[104];
|
|
14598
|
+
let KW = GW, qW;
|
|
14599
|
+
r[105] !== l || r[106] !== KW || r[107] !== (W == null ? void 0 : W.rows) || r[108] !== O || r[109] !== e.fieldTypes || r[110] !== e.get_data_url || r[111] !== e.rowHeaders || r[112] !== e.showChartBuilder || r[113] !== e.totalColumns || r[114] !== e.totalRows ? (qW = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
14573
14600
|
displayHeader: O,
|
|
14574
14601
|
onCloseChartBuilder: () => j(false),
|
|
14575
14602
|
data: (W == null ? void 0 : W.rows) || [],
|
|
14576
14603
|
columns: e.totalColumns,
|
|
14577
14604
|
totalRows: e.totalRows,
|
|
14578
|
-
dataTable:
|
|
14605
|
+
dataTable: KW,
|
|
14579
14606
|
getDataUrl: e.get_data_url,
|
|
14580
14607
|
fieldTypes: e.fieldTypes,
|
|
14608
|
+
rowHeaders: e.rowHeaders,
|
|
14581
14609
|
cellId: l
|
|
14582
|
-
}) :
|
|
14583
|
-
let
|
|
14584
|
-
return r[
|
|
14610
|
+
}) : KW, r[105] = l, r[106] = KW, r[107] = W == null ? void 0 : W.rows, r[108] = O, r[109] = e.fieldTypes, r[110] = e.get_data_url, r[111] = e.rowHeaders, r[112] = e.showChartBuilder, r[113] = e.totalColumns, r[114] = e.totalRows, r[115] = qW) : qW = r[115];
|
|
14611
|
+
let JW;
|
|
14612
|
+
return r[116] !== IW || r[117] !== qW ? (JW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14585
14613
|
children: [
|
|
14586
|
-
|
|
14587
|
-
|
|
14614
|
+
IW,
|
|
14615
|
+
qW
|
|
14588
14616
|
]
|
|
14589
|
-
}), r[
|
|
14617
|
+
}), r[116] = IW, r[117] = qW, r[118] = JW) : JW = r[118], JW;
|
|
14590
14618
|
});
|
|
14591
14619
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
14592
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters:
|
|
14593
|
-
let
|
|
14620
|
+
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: fW, setFilters: pW, reloading: Z, freezeColumnsLeft: mW, freezeColumnsRight: hW, hiddenColumns: gW, textJustifyColumns: _W, wrappedColumns: vW, columnWidths: yW, headerTooltip: bW, totalColumns: xW, get_row_ids: SW, cellStyles: CW, hoverTemplate: wW, cellHoverTexts: TW, toggleDisplayHeader: EW, isChartBuilderOpen: DW, calculate_top_k_rows: OW, preview_column: kW, getRow: AW, cellId: jW, maxHeight: MW }) => {
|
|
14621
|
+
let NW = (0, import_react.useId)(), { locale: PW } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [FW, IW] = (0, import_react.useState)(0), { isPanelOpen: LW, isAnyPanelOpen: RW, togglePanel: zW, panelType: BW, setPanelType: VW } = usePanelOwnership(NW, jW), HW = isStaticNotebook(), UW = (0, import_react.useMemo)(() => {
|
|
14594
14622
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
14595
14623
|
let e2 = toFieldTypes(O);
|
|
14596
14624
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -14599,13 +14627,13 @@ ${c}
|
|
|
14599
14627
|
}, [
|
|
14600
14628
|
O,
|
|
14601
14629
|
L
|
|
14602
|
-
]),
|
|
14630
|
+
]), WW = useDeepCompareMemoize(O ?? inferFieldTypes(r)), GW = (0, import_react.useMemo)(() => f === "all" ? WW : WW.slice(0, f), [
|
|
14603
14631
|
f,
|
|
14604
|
-
|
|
14605
|
-
]),
|
|
14632
|
+
WW
|
|
14633
|
+
]), KW = (0, import_react.useMemo)(() => {
|
|
14606
14634
|
let e2 = {};
|
|
14607
14635
|
if (r && r.length > 0) {
|
|
14608
|
-
for (let [c2, l2] of
|
|
14636
|
+
for (let [c2, l2] of GW) if (l2[0] === "number") {
|
|
14609
14637
|
let l3 = 0;
|
|
14610
14638
|
for (let e3 of r) {
|
|
14611
14639
|
let r2 = e3[c2];
|
|
@@ -14620,95 +14648,95 @@ ${c}
|
|
|
14620
14648
|
return e2;
|
|
14621
14649
|
}, [
|
|
14622
14650
|
r,
|
|
14623
|
-
|
|
14624
|
-
]),
|
|
14625
|
-
O || (w = false),
|
|
14626
|
-
let
|
|
14627
|
-
rowHeaders:
|
|
14651
|
+
GW
|
|
14652
|
+
]), qW = useDeepCompareMemoize(T), JW = useDeepCompareMemoize(_W), YW = useDeepCompareMemoize(vW), XW = useDeepCompareMemoize(yW), ZW = useDeepCompareMemoize(UW), QW = useDeepCompareMemoize(KW), $W = GW.length;
|
|
14653
|
+
O || (w = false), HW && (m = null);
|
|
14654
|
+
let eG = (0, import_react.useMemo)(() => generateColumns({
|
|
14655
|
+
rowHeaders: qW,
|
|
14628
14656
|
selection: m,
|
|
14629
|
-
chartSpecModel:
|
|
14630
|
-
fieldTypes:
|
|
14631
|
-
textJustifyColumns:
|
|
14632
|
-
wrappedColumns:
|
|
14633
|
-
columnWidths:
|
|
14634
|
-
headerTooltip:
|
|
14657
|
+
chartSpecModel: ZW,
|
|
14658
|
+
fieldTypes: GW,
|
|
14659
|
+
textJustifyColumns: JW,
|
|
14660
|
+
wrappedColumns: YW,
|
|
14661
|
+
columnWidths: XW,
|
|
14662
|
+
headerTooltip: bW,
|
|
14635
14663
|
showDataTypes: w,
|
|
14636
|
-
calculateTopKRows:
|
|
14637
|
-
fractionDigitsByColumn:
|
|
14664
|
+
calculateTopKRows: OW,
|
|
14665
|
+
fractionDigitsByColumn: QW
|
|
14638
14666
|
}), [
|
|
14639
14667
|
m,
|
|
14640
14668
|
w,
|
|
14669
|
+
ZW,
|
|
14641
14670
|
qW,
|
|
14642
|
-
UW,
|
|
14643
|
-
VW,
|
|
14644
|
-
WW,
|
|
14645
14671
|
GW,
|
|
14646
|
-
|
|
14647
|
-
|
|
14648
|
-
|
|
14649
|
-
|
|
14650
|
-
|
|
14672
|
+
JW,
|
|
14673
|
+
YW,
|
|
14674
|
+
XW,
|
|
14675
|
+
bW,
|
|
14676
|
+
OW,
|
|
14677
|
+
QW
|
|
14678
|
+
]), tG = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
14651
14679
|
e2,
|
|
14652
14680
|
true
|
|
14653
14681
|
])), [
|
|
14654
14682
|
h
|
|
14655
|
-
]),
|
|
14683
|
+
]), nG = useEvent_default((e2) => {
|
|
14656
14684
|
if (m === "single") {
|
|
14657
14685
|
let r2 = Functions.asUpdater(e2)({});
|
|
14658
14686
|
z(Object.keys(r2).slice(0, 1));
|
|
14659
14687
|
}
|
|
14660
14688
|
if (m === "multi") {
|
|
14661
|
-
let r2 = Functions.asUpdater(e2)(
|
|
14689
|
+
let r2 = Functions.asUpdater(e2)(tG);
|
|
14662
14690
|
z(Object.keys(r2));
|
|
14663
14691
|
}
|
|
14664
|
-
}),
|
|
14665
|
-
if (
|
|
14692
|
+
}), rG = useEvent_default((e2) => {
|
|
14693
|
+
if (IW(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
14666
14694
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
14667
14695
|
r2 !== null && M((e3) => ({
|
|
14668
14696
|
...e3,
|
|
14669
14697
|
pageIndex: r2
|
|
14670
14698
|
}));
|
|
14671
|
-
}),
|
|
14672
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
14673
|
-
}),
|
|
14674
|
-
if (!(!
|
|
14699
|
+
}), iG = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), aG = useEvent_default((e2) => {
|
|
14700
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(iG).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(iG));
|
|
14701
|
+
}), oG = m === "multi" || m === "single", sG = y && !!kW, cG = isInVscodeExtension(), lG = isIslands(), uG = (0, import_react.useMemo)(() => {
|
|
14702
|
+
if (!(!RW || !(b || sG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
14675
14703
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
14676
|
-
rowIdx:
|
|
14677
|
-
setRowIdx:
|
|
14704
|
+
rowIdx: FW,
|
|
14705
|
+
setRowIdx: rG,
|
|
14678
14706
|
totalRows: l,
|
|
14679
|
-
fieldTypes:
|
|
14680
|
-
getRow:
|
|
14681
|
-
isSelectable:
|
|
14682
|
-
isRowSelected: !!
|
|
14683
|
-
handleRowSelectionChange:
|
|
14684
|
-
previewColumn:
|
|
14685
|
-
totalColumns:
|
|
14686
|
-
tableId:
|
|
14707
|
+
fieldTypes: WW,
|
|
14708
|
+
getRow: AW,
|
|
14709
|
+
isSelectable: oG,
|
|
14710
|
+
isRowSelected: !!tG[FW],
|
|
14711
|
+
handleRowSelectionChange: nG,
|
|
14712
|
+
previewColumn: kW,
|
|
14713
|
+
totalColumns: xW,
|
|
14714
|
+
tableId: NW,
|
|
14687
14715
|
table: e2,
|
|
14688
|
-
showRowExplorer: b && !
|
|
14689
|
-
showColumnExplorer:
|
|
14690
|
-
activeTab:
|
|
14691
|
-
onTabChange:
|
|
14716
|
+
showRowExplorer: b && !cG,
|
|
14717
|
+
showColumnExplorer: sG && !cG,
|
|
14718
|
+
activeTab: BW,
|
|
14719
|
+
onTabChange: VW
|
|
14692
14720
|
})
|
|
14693
14721
|
});
|
|
14694
14722
|
}, [
|
|
14695
|
-
|
|
14723
|
+
RW,
|
|
14696
14724
|
b,
|
|
14725
|
+
sG,
|
|
14726
|
+
FW,
|
|
14697
14727
|
rG,
|
|
14698
|
-
jW,
|
|
14699
|
-
$W,
|
|
14700
14728
|
l,
|
|
14701
|
-
|
|
14702
|
-
|
|
14729
|
+
WW,
|
|
14730
|
+
AW,
|
|
14731
|
+
oG,
|
|
14732
|
+
tG,
|
|
14703
14733
|
nG,
|
|
14704
|
-
ZW,
|
|
14705
|
-
QW,
|
|
14706
|
-
TW,
|
|
14707
|
-
_W,
|
|
14708
14734
|
kW,
|
|
14709
|
-
|
|
14710
|
-
|
|
14711
|
-
|
|
14735
|
+
xW,
|
|
14736
|
+
NW,
|
|
14737
|
+
cG,
|
|
14738
|
+
BW,
|
|
14739
|
+
VW
|
|
14712
14740
|
]);
|
|
14713
14741
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14714
14742
|
children: [
|
|
@@ -14720,27 +14748,27 @@ ${c}
|
|
|
14720
14748
|
" rows."
|
|
14721
14749
|
]
|
|
14722
14750
|
}),
|
|
14723
|
-
|
|
14751
|
+
$W < xW && $W > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14724
14752
|
className: "mb-1 rounded",
|
|
14725
14753
|
children: [
|
|
14726
14754
|
"Result clipped. Showing ",
|
|
14727
|
-
|
|
14755
|
+
$W,
|
|
14728
14756
|
" of ",
|
|
14729
|
-
|
|
14757
|
+
xW,
|
|
14730
14758
|
" columns."
|
|
14731
14759
|
]
|
|
14732
14760
|
}),
|
|
14733
|
-
|
|
14761
|
+
HW && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14734
14762
|
className: "mb-1 rounded",
|
|
14735
14763
|
children: [
|
|
14736
14764
|
"Showing the first ",
|
|
14737
14765
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14738
|
-
children: prettyNumber(r.length,
|
|
14766
|
+
children: prettyNumber(r.length, PW)
|
|
14739
14767
|
}),
|
|
14740
14768
|
" ",
|
|
14741
14769
|
"of ",
|
|
14742
14770
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14743
|
-
children: prettyNumber(l,
|
|
14771
|
+
children: prettyNumber(l, PW)
|
|
14744
14772
|
}),
|
|
14745
14773
|
" rows. Increase the table's ",
|
|
14746
14774
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -14754,7 +14782,7 @@ ${c}
|
|
|
14754
14782
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
14755
14783
|
}),
|
|
14756
14784
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
14757
|
-
value:
|
|
14785
|
+
value: UW,
|
|
14758
14786
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
14759
14787
|
label: e,
|
|
14760
14788
|
align: "top",
|
|
@@ -14762,14 +14790,14 @@ ${c}
|
|
|
14762
14790
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
14763
14791
|
data: r,
|
|
14764
14792
|
rawData: c,
|
|
14765
|
-
columns:
|
|
14793
|
+
columns: eG,
|
|
14766
14794
|
className: R,
|
|
14767
|
-
maxHeight:
|
|
14795
|
+
maxHeight: MW,
|
|
14768
14796
|
sorting: B,
|
|
14769
14797
|
totalRows: l,
|
|
14770
14798
|
sizeBytes: u,
|
|
14771
14799
|
sizeBytesIsLoading: d,
|
|
14772
|
-
totalColumns:
|
|
14800
|
+
totalColumns: xW,
|
|
14773
14801
|
manualSorting: true,
|
|
14774
14802
|
setSorting: H,
|
|
14775
14803
|
pagination: p,
|
|
@@ -14777,37 +14805,37 @@ ${c}
|
|
|
14777
14805
|
selection: m,
|
|
14778
14806
|
paginationState: j,
|
|
14779
14807
|
setPaginationState: M,
|
|
14780
|
-
rowSelection:
|
|
14781
|
-
cellSelection:
|
|
14782
|
-
cellStyling:
|
|
14783
|
-
hoverTemplate:
|
|
14784
|
-
cellHoverTexts:
|
|
14808
|
+
rowSelection: tG,
|
|
14809
|
+
cellSelection: iG,
|
|
14810
|
+
cellStyling: CW,
|
|
14811
|
+
hoverTemplate: wW,
|
|
14812
|
+
cellHoverTexts: TW,
|
|
14785
14813
|
downloadAs: _ ? I : void 0,
|
|
14786
14814
|
showSearch: W,
|
|
14787
14815
|
searchQuery: G,
|
|
14788
14816
|
onSearchQueryChange: q,
|
|
14789
14817
|
showFilters: g,
|
|
14790
|
-
filters:
|
|
14791
|
-
onFiltersChange:
|
|
14792
|
-
calculateTopKRows:
|
|
14818
|
+
filters: fW,
|
|
14819
|
+
onFiltersChange: pW,
|
|
14820
|
+
calculateTopKRows: OW,
|
|
14793
14821
|
reloading: Z,
|
|
14794
|
-
onRowSelectionChange:
|
|
14795
|
-
freezeColumnsLeft:
|
|
14796
|
-
freezeColumnsRight:
|
|
14797
|
-
hiddenColumns:
|
|
14798
|
-
onCellSelectionChange:
|
|
14799
|
-
getRowIds:
|
|
14800
|
-
toggleDisplayHeader:
|
|
14801
|
-
showChartBuilder: S && !
|
|
14802
|
-
isChartBuilderOpen:
|
|
14822
|
+
onRowSelectionChange: nG,
|
|
14823
|
+
freezeColumnsLeft: mW,
|
|
14824
|
+
freezeColumnsRight: hW,
|
|
14825
|
+
hiddenColumns: gW,
|
|
14826
|
+
onCellSelectionChange: aG,
|
|
14827
|
+
getRowIds: SW,
|
|
14828
|
+
toggleDisplayHeader: EW,
|
|
14829
|
+
showChartBuilder: S && !lG,
|
|
14830
|
+
isChartBuilderOpen: DW,
|
|
14803
14831
|
showPageSizeSelector: v,
|
|
14804
|
-
showTableExplorer: (b ||
|
|
14805
|
-
togglePanel:
|
|
14806
|
-
isPanelOpen:
|
|
14807
|
-
isAnyPanelOpen:
|
|
14808
|
-
viewedRowIdx:
|
|
14809
|
-
onViewedRowChange: (e2) =>
|
|
14810
|
-
renderTableExplorerPanel:
|
|
14832
|
+
showTableExplorer: (b || sG) && !cG && !lG,
|
|
14833
|
+
togglePanel: zW,
|
|
14834
|
+
isPanelOpen: LW,
|
|
14835
|
+
isAnyPanelOpen: RW,
|
|
14836
|
+
viewedRowIdx: FW,
|
|
14837
|
+
onViewedRowChange: (e2) => IW(e2),
|
|
14838
|
+
renderTableExplorerPanel: uG
|
|
14811
14839
|
})
|
|
14812
14840
|
})
|
|
14813
14841
|
})
|
|
@@ -16859,29 +16887,29 @@ ${c}
|
|
|
16859
16887
|
], r[2] = S, r[3] = w);
|
|
16860
16888
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
16861
16889
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
16862
|
-
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q,
|
|
16890
|
+
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, fW] = (0, import_react.useState)(f || EMPTY), pW = (0, import_react.useRef)(null), Z;
|
|
16863
16891
|
r[6] === d ? Z = r[7] : (Z = (e2) => {
|
|
16864
16892
|
var _a3;
|
|
16865
|
-
d && e2 !== "transform" && ((_a3 =
|
|
16893
|
+
d && e2 !== "transform" && ((_a3 = pW.current) == null ? void 0 : _a3.submit());
|
|
16866
16894
|
}, r[6] = d, r[7] = Z);
|
|
16867
|
-
let
|
|
16868
|
-
r[8] === q ?
|
|
16869
|
-
|
|
16870
|
-
}, r[8] = q, r[9] =
|
|
16871
|
-
let
|
|
16872
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
16873
|
-
let e2 =
|
|
16895
|
+
let mW = Z, hW = (0, import_react.useRef)(q), gW;
|
|
16896
|
+
r[8] === q ? gW = r[9] : (gW = () => {
|
|
16897
|
+
hW.current = q;
|
|
16898
|
+
}, r[8] = q, r[9] = gW), (0, import_react.useEffect)(gW);
|
|
16899
|
+
let _W;
|
|
16900
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (_W = () => {
|
|
16901
|
+
let e2 = hW.current;
|
|
16874
16902
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
16875
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
16876
|
-
let
|
|
16877
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
16903
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = _W) : _W = r[12];
|
|
16904
|
+
let vW = f == null ? void 0 : f.transforms.length, yW;
|
|
16905
|
+
r[13] !== T || r[14] !== p || r[15] !== vW ? (yW = [
|
|
16878
16906
|
T,
|
|
16879
|
-
|
|
16880
|
-
|
|
16907
|
+
vW,
|
|
16908
|
+
hW,
|
|
16881
16909
|
p
|
|
16882
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
16883
|
-
let
|
|
16884
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16910
|
+
], r[13] = T, r[14] = p, r[15] = vW, r[16] = yW) : yW = r[16], (0, import_react.useEffect)(_W, yW);
|
|
16911
|
+
let bW;
|
|
16912
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (bW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16885
16913
|
value: "transform",
|
|
16886
16914
|
className: "text-xs py-1",
|
|
16887
16915
|
children: [
|
|
@@ -16890,9 +16918,9 @@ ${c}
|
|
|
16890
16918
|
}),
|
|
16891
16919
|
"Transform"
|
|
16892
16920
|
]
|
|
16893
|
-
}), r[17] =
|
|
16894
|
-
let
|
|
16895
|
-
r[18] === H ?
|
|
16921
|
+
}), r[17] = bW) : bW = r[17];
|
|
16922
|
+
let xW;
|
|
16923
|
+
r[18] === H ? xW = r[19] : (xW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16896
16924
|
value: "python-code",
|
|
16897
16925
|
className: "text-xs py-1",
|
|
16898
16926
|
children: [
|
|
@@ -16901,9 +16929,9 @@ ${c}
|
|
|
16901
16929
|
}),
|
|
16902
16930
|
"Python Code"
|
|
16903
16931
|
]
|
|
16904
|
-
}), r[18] = H, r[19] =
|
|
16905
|
-
let
|
|
16906
|
-
r[20] === W ?
|
|
16932
|
+
}), r[18] = H, r[19] = xW);
|
|
16933
|
+
let SW;
|
|
16934
|
+
r[20] === W ? SW = r[21] : (SW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16907
16935
|
value: "sql-code",
|
|
16908
16936
|
className: "text-xs py-1",
|
|
16909
16937
|
children: [
|
|
@@ -16912,54 +16940,54 @@ ${c}
|
|
|
16912
16940
|
}),
|
|
16913
16941
|
"SQL Code"
|
|
16914
16942
|
]
|
|
16915
|
-
}), r[20] = W, r[21] =
|
|
16916
|
-
let
|
|
16917
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16943
|
+
}), r[20] = W, r[21] = SW);
|
|
16944
|
+
let wW;
|
|
16945
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (wW = (0, import_jsx_runtime.jsx)("div", {
|
|
16918
16946
|
className: "grow"
|
|
16919
|
-
}), r[22] =
|
|
16920
|
-
let
|
|
16921
|
-
r[23] !==
|
|
16947
|
+
}), r[22] = wW) : wW = r[22];
|
|
16948
|
+
let TW;
|
|
16949
|
+
r[23] !== xW || r[24] !== SW ? (TW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
16922
16950
|
className: "h-8",
|
|
16923
16951
|
children: [
|
|
16924
|
-
|
|
16925
|
-
|
|
16926
|
-
|
|
16927
|
-
|
|
16952
|
+
bW,
|
|
16953
|
+
xW,
|
|
16954
|
+
SW,
|
|
16955
|
+
wW
|
|
16928
16956
|
]
|
|
16929
|
-
}), r[23] =
|
|
16930
|
-
let
|
|
16931
|
-
r[26] === j ?
|
|
16957
|
+
}), r[23] = xW, r[24] = SW, r[25] = TW) : TW = r[25];
|
|
16958
|
+
let EW;
|
|
16959
|
+
r[26] === j ? EW = r[27] : (EW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16932
16960
|
size: "small"
|
|
16933
|
-
}), r[26] = j, r[27] =
|
|
16934
|
-
let
|
|
16935
|
-
r[28] !==
|
|
16961
|
+
}), r[26] = j, r[27] = EW);
|
|
16962
|
+
let DW;
|
|
16963
|
+
r[28] !== TW || r[29] !== EW ? (DW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16936
16964
|
className: "flex items-center gap-2",
|
|
16937
16965
|
children: [
|
|
16938
|
-
|
|
16939
|
-
|
|
16966
|
+
TW,
|
|
16967
|
+
EW
|
|
16940
16968
|
]
|
|
16941
|
-
}), r[28] =
|
|
16942
|
-
let
|
|
16943
|
-
r[31] !== p || r[32] !== f ? (
|
|
16944
|
-
dequal(e2, f) || (p(e2),
|
|
16945
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
16946
|
-
let
|
|
16947
|
-
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !==
|
|
16969
|
+
}), r[28] = TW, r[29] = EW, r[30] = DW) : DW = r[30];
|
|
16970
|
+
let OW;
|
|
16971
|
+
r[31] !== p || r[32] !== f ? (OW = (e2) => {
|
|
16972
|
+
dequal(e2, f) || (p(e2), fW(e2));
|
|
16973
|
+
}, r[31] = p, r[32] = f, r[33] = OW) : OW = r[33];
|
|
16974
|
+
let kW;
|
|
16975
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== OW ? (kW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16948
16976
|
value: "transform",
|
|
16949
16977
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16950
16978
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
16951
|
-
ref:
|
|
16979
|
+
ref: pW,
|
|
16952
16980
|
initialValue: q,
|
|
16953
16981
|
columns: c,
|
|
16954
|
-
onChange:
|
|
16955
|
-
onInvalidChange:
|
|
16982
|
+
onChange: OW,
|
|
16983
|
+
onInvalidChange: fW,
|
|
16956
16984
|
getColumnValues: h,
|
|
16957
16985
|
columnTypesPerStep: B,
|
|
16958
16986
|
lazy: d
|
|
16959
16987
|
})
|
|
16960
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
16961
|
-
let
|
|
16962
|
-
r[41] === H ?
|
|
16988
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = OW, r[40] = kW) : kW = r[40];
|
|
16989
|
+
let AW;
|
|
16990
|
+
r[41] === H ? AW = r[42] : (AW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16963
16991
|
value: "python-code",
|
|
16964
16992
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16965
16993
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16968,9 +16996,9 @@ ${c}
|
|
|
16968
16996
|
code: H,
|
|
16969
16997
|
language: "python"
|
|
16970
16998
|
})
|
|
16971
|
-
}), r[41] = H, r[42] =
|
|
16972
|
-
let
|
|
16973
|
-
r[43] === W ?
|
|
16999
|
+
}), r[41] = H, r[42] = AW);
|
|
17000
|
+
let jW;
|
|
17001
|
+
r[43] === W ? jW = r[44] : (jW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16974
17002
|
value: "sql-code",
|
|
16975
17003
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16976
17004
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16979,35 +17007,35 @@ ${c}
|
|
|
16979
17007
|
code: W,
|
|
16980
17008
|
language: "sql"
|
|
16981
17009
|
})
|
|
16982
|
-
}), r[43] = W, r[44] =
|
|
16983
|
-
let
|
|
16984
|
-
r[45] !==
|
|
17010
|
+
}), r[43] = W, r[44] = jW);
|
|
17011
|
+
let MW;
|
|
17012
|
+
r[45] !== mW || r[46] !== DW || r[47] !== kW || r[48] !== AW || r[49] !== jW ? (MW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
16985
17013
|
defaultValue: "transform",
|
|
16986
|
-
onValueChange:
|
|
17014
|
+
onValueChange: mW,
|
|
16987
17015
|
children: [
|
|
16988
|
-
|
|
16989
|
-
|
|
16990
|
-
|
|
16991
|
-
|
|
17016
|
+
DW,
|
|
17017
|
+
kW,
|
|
17018
|
+
AW,
|
|
17019
|
+
jW
|
|
16992
17020
|
]
|
|
16993
|
-
}), r[45] =
|
|
16994
|
-
let
|
|
16995
|
-
r[51] === O ?
|
|
17021
|
+
}), r[45] = mW, r[46] = DW, r[47] = kW, r[48] = AW, r[49] = jW, r[50] = MW) : MW = r[50];
|
|
17022
|
+
let NW;
|
|
17023
|
+
r[51] === O ? NW = r[52] : (NW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
16996
17024
|
error: O
|
|
16997
|
-
}), r[51] = O, r[52] =
|
|
16998
|
-
let
|
|
16999
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
17025
|
+
}), r[51] = O, r[52] = NW);
|
|
17026
|
+
let PW = I || "", FW = L ?? 0, IW = G ?? 0, LW = R || Arrays.EMPTY, RW = L && L > 5 || false, zW;
|
|
17027
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== PW || r[61] !== FW || r[62] !== IW || r[63] !== LW || r[64] !== RW ? (zW = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
17000
17028
|
label: null,
|
|
17001
17029
|
className: "rounded-b border-x border-b",
|
|
17002
|
-
data:
|
|
17030
|
+
data: PW,
|
|
17003
17031
|
hasStableRowId: false,
|
|
17004
|
-
totalRows:
|
|
17005
|
-
totalColumns:
|
|
17032
|
+
totalRows: FW,
|
|
17033
|
+
totalColumns: IW,
|
|
17006
17034
|
maxColumns: "all",
|
|
17007
17035
|
pageSize: l,
|
|
17008
17036
|
pagination: true,
|
|
17009
17037
|
fieldTypes: z,
|
|
17010
|
-
rowHeaders:
|
|
17038
|
+
rowHeaders: LW,
|
|
17011
17039
|
showDownload: u,
|
|
17012
17040
|
download_as: _,
|
|
17013
17041
|
get_size_bytes: v,
|
|
@@ -17017,7 +17045,7 @@ ${c}
|
|
|
17017
17045
|
showColumnSummaries: false,
|
|
17018
17046
|
showDataTypes: true,
|
|
17019
17047
|
get_column_summaries: getColumnSummaries,
|
|
17020
|
-
showPageSizeSelector:
|
|
17048
|
+
showPageSizeSelector: RW,
|
|
17021
17049
|
showColumnExplorer: false,
|
|
17022
17050
|
showRowExplorer: true,
|
|
17023
17051
|
showChartBuilder: false,
|
|
@@ -17026,15 +17054,15 @@ ${c}
|
|
|
17026
17054
|
selection: null,
|
|
17027
17055
|
lazy: false,
|
|
17028
17056
|
host: y
|
|
17029
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
17030
|
-
let
|
|
17031
|
-
return r[66] !==
|
|
17057
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = PW, r[61] = FW, r[62] = IW, r[63] = LW, r[64] = RW, r[65] = zW) : zW = r[65];
|
|
17058
|
+
let BW;
|
|
17059
|
+
return r[66] !== MW || r[67] !== NW || r[68] !== zW ? (BW = (0, import_jsx_runtime.jsxs)("div", {
|
|
17032
17060
|
children: [
|
|
17033
|
-
|
|
17034
|
-
|
|
17035
|
-
|
|
17061
|
+
MW,
|
|
17062
|
+
NW,
|
|
17063
|
+
zW
|
|
17036
17064
|
]
|
|
17037
|
-
}), r[66] =
|
|
17065
|
+
}), r[66] = MW, r[67] = NW, r[68] = zW, r[69] = BW) : BW = r[69], BW;
|
|
17038
17066
|
});
|
|
17039
17067
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
17040
17068
|
function getColumnSummaries() {
|
|
@@ -17225,23 +17253,23 @@ ${c}
|
|
|
17225
17253
|
}, [
|
|
17226
17254
|
H
|
|
17227
17255
|
]);
|
|
17228
|
-
let
|
|
17256
|
+
let fW = (R == null ? void 0 : R.files) ?? [], pW = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", mW = l === "file" || l === "all", hW = fW.filter((e2) => Z && e2.is_directory || mW && !e2.is_directory), gW = hW.length > 0 && hW.every((e2) => pW.has(e2.path));
|
|
17229
17257
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
17230
17258
|
kind: "danger",
|
|
17231
17259
|
children: z.message
|
|
17232
17260
|
});
|
|
17233
|
-
let
|
|
17261
|
+
let _W = PathBuilder.guessDeliminator(c).deliminator, vW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
17234
17262
|
children: e2.path
|
|
17235
17263
|
}, e2.id));
|
|
17236
|
-
function
|
|
17264
|
+
function yW(e2) {
|
|
17237
17265
|
var _a4;
|
|
17238
17266
|
if (v) return;
|
|
17239
17267
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
17240
|
-
if (g ===
|
|
17268
|
+
if (g === _W) {
|
|
17241
17269
|
y(false);
|
|
17242
17270
|
return;
|
|
17243
17271
|
}
|
|
17244
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
17272
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = _W);
|
|
17245
17273
|
}
|
|
17246
17274
|
let r2 = e2.length < c.length;
|
|
17247
17275
|
if (f && r2) {
|
|
@@ -17254,7 +17282,7 @@ ${c}
|
|
|
17254
17282
|
}
|
|
17255
17283
|
M.current = ((_a4 = j.current) == null ? void 0 : _a4.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
17256
17284
|
}
|
|
17257
|
-
function
|
|
17285
|
+
function bW({ path: e2, name: r2, isDirectory: c2 }) {
|
|
17258
17286
|
return {
|
|
17259
17287
|
id: e2,
|
|
17260
17288
|
name: r2,
|
|
@@ -17262,27 +17290,27 @@ ${c}
|
|
|
17262
17290
|
is_directory: c2
|
|
17263
17291
|
};
|
|
17264
17292
|
}
|
|
17265
|
-
function
|
|
17266
|
-
let f2 =
|
|
17293
|
+
function xW({ path: c2, name: l2, isDirectory: d2 }) {
|
|
17294
|
+
let f2 = bW({
|
|
17267
17295
|
path: c2,
|
|
17268
17296
|
name: l2,
|
|
17269
17297
|
isDirectory: d2
|
|
17270
17298
|
});
|
|
17271
|
-
|
|
17299
|
+
pW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
17272
17300
|
...e,
|
|
17273
17301
|
f2
|
|
17274
17302
|
] : [
|
|
17275
17303
|
f2
|
|
17276
17304
|
]);
|
|
17277
17305
|
}
|
|
17278
|
-
function
|
|
17306
|
+
function CW() {
|
|
17279
17307
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
17280
17308
|
}
|
|
17281
|
-
function
|
|
17309
|
+
function wW() {
|
|
17282
17310
|
let c2 = [];
|
|
17283
|
-
for (let e2 of
|
|
17284
|
-
if (!Z && e2.is_directory ||
|
|
17285
|
-
let r2 =
|
|
17311
|
+
for (let e2 of fW) {
|
|
17312
|
+
if (!Z && e2.is_directory || pW.has(e2.path)) continue;
|
|
17313
|
+
let r2 = bW({
|
|
17286
17314
|
path: e2.path,
|
|
17287
17315
|
name: e2.name,
|
|
17288
17316
|
isDirectory: e2.is_directory
|
|
@@ -17294,20 +17322,20 @@ ${c}
|
|
|
17294
17322
|
...c2
|
|
17295
17323
|
]);
|
|
17296
17324
|
}
|
|
17297
|
-
let
|
|
17325
|
+
let TW = [
|
|
17298
17326
|
{
|
|
17299
17327
|
key: "parent",
|
|
17300
17328
|
name: PARENT_DIRECTORY,
|
|
17301
17329
|
Icon: CornerLeftUp,
|
|
17302
17330
|
isSelected: false,
|
|
17303
17331
|
canSelect: false,
|
|
17304
|
-
onPrimary: () =>
|
|
17332
|
+
onPrimary: () => yW(PARENT_DIRECTORY),
|
|
17305
17333
|
onToggleSelect: null
|
|
17306
17334
|
},
|
|
17307
|
-
...
|
|
17335
|
+
...fW.map((e2) => {
|
|
17308
17336
|
let r2 = e2.path;
|
|
17309
17337
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17310
|
-
let c2 = Z && e2.is_directory ||
|
|
17338
|
+
let c2 = Z && e2.is_directory || mW && !e2.is_directory, l2 = pW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => xW({
|
|
17311
17339
|
path: r2,
|
|
17312
17340
|
name: e2.name,
|
|
17313
17341
|
isDirectory: e2.is_directory
|
|
@@ -17318,46 +17346,46 @@ ${c}
|
|
|
17318
17346
|
Icon: FILE_ICON[u2],
|
|
17319
17347
|
isSelected: l2,
|
|
17320
17348
|
canSelect: c2,
|
|
17321
|
-
onPrimary: e2.is_directory ? () =>
|
|
17349
|
+
onPrimary: e2.is_directory ? () => yW(r2) : c2 ? d2 : () => {
|
|
17322
17350
|
},
|
|
17323
17351
|
onToggleSelect: c2 ? d2 : null
|
|
17324
17352
|
};
|
|
17325
17353
|
})
|
|
17326
17354
|
];
|
|
17327
|
-
function
|
|
17355
|
+
function EW(e2) {
|
|
17328
17356
|
var _a4;
|
|
17329
17357
|
E(e2), (_a4 = O.current[e2]) == null ? void 0 : _a4.focus();
|
|
17330
17358
|
}
|
|
17331
|
-
function
|
|
17359
|
+
function DW(e2, r2) {
|
|
17332
17360
|
var _a4, _b3;
|
|
17333
|
-
let c2 =
|
|
17361
|
+
let c2 = TW.length - 1;
|
|
17334
17362
|
switch (e2.key) {
|
|
17335
17363
|
case "ArrowDown":
|
|
17336
|
-
e2.preventDefault(),
|
|
17364
|
+
e2.preventDefault(), EW(Math.min(r2 + 1, c2));
|
|
17337
17365
|
break;
|
|
17338
17366
|
case "ArrowUp":
|
|
17339
|
-
e2.preventDefault(),
|
|
17367
|
+
e2.preventDefault(), EW(Math.max(r2 - 1, 0));
|
|
17340
17368
|
break;
|
|
17341
17369
|
case "Home":
|
|
17342
|
-
e2.preventDefault(),
|
|
17370
|
+
e2.preventDefault(), EW(0);
|
|
17343
17371
|
break;
|
|
17344
17372
|
case "End":
|
|
17345
|
-
e2.preventDefault(),
|
|
17373
|
+
e2.preventDefault(), EW(c2);
|
|
17346
17374
|
break;
|
|
17347
17375
|
case "Enter":
|
|
17348
|
-
e2.preventDefault(),
|
|
17376
|
+
e2.preventDefault(), TW[r2].onPrimary();
|
|
17349
17377
|
break;
|
|
17350
17378
|
case " ":
|
|
17351
|
-
e2.preventDefault(), (_b3 = (_a4 =
|
|
17379
|
+
e2.preventDefault(), (_b3 = (_a4 = TW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a4);
|
|
17352
17380
|
break;
|
|
17353
17381
|
}
|
|
17354
17382
|
}
|
|
17355
|
-
let { parentDirectories:
|
|
17383
|
+
let { parentDirectories: OW } = getProtocolAndParentDirectories({
|
|
17356
17384
|
path: g,
|
|
17357
|
-
delimiter:
|
|
17385
|
+
delimiter: _W,
|
|
17358
17386
|
initialPath: c,
|
|
17359
17387
|
restrictNavigation: f
|
|
17360
|
-
}),
|
|
17388
|
+
}), kW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
17361
17389
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
17362
17390
|
children: [
|
|
17363
17391
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -17367,7 +17395,7 @@ ${c}
|
|
|
17367
17395
|
(() => {
|
|
17368
17396
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
17369
17397
|
children: renderHTML({
|
|
17370
|
-
html: d ?? `Select ${
|
|
17398
|
+
html: d ?? `Select ${kW.join(" and ", 2)}...`
|
|
17371
17399
|
})
|
|
17372
17400
|
});
|
|
17373
17401
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -17381,8 +17409,8 @@ ${c}
|
|
|
17381
17409
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
17382
17410
|
size: "xs",
|
|
17383
17411
|
variant: "link",
|
|
17384
|
-
onClick:
|
|
17385
|
-
children:
|
|
17412
|
+
onClick: gW ? CW : wW,
|
|
17413
|
+
children: gW ? "Deselect all" : "Select all"
|
|
17386
17414
|
})
|
|
17387
17415
|
})
|
|
17388
17416
|
]
|
|
@@ -17392,15 +17420,15 @@ ${c}
|
|
|
17392
17420
|
className: "mt-2 w-full",
|
|
17393
17421
|
placeholder: g,
|
|
17394
17422
|
value: g,
|
|
17395
|
-
onChange: (e2) =>
|
|
17396
|
-
children:
|
|
17423
|
+
onChange: (e2) => yW(e2.target.value),
|
|
17424
|
+
children: OW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
17397
17425
|
value: e2,
|
|
17398
17426
|
children: e2
|
|
17399
17427
|
}, e2))
|
|
17400
17428
|
}),
|
|
17401
17429
|
R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
17402
17430
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
17403
|
-
children: R.is_truncated ? `Showing ${
|
|
17431
|
+
children: R.is_truncated ? `Showing ${fW.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
17404
17432
|
}),
|
|
17405
17433
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
17406
17434
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
@@ -17429,14 +17457,14 @@ ${c}
|
|
|
17429
17457
|
"aria-label": "File browser",
|
|
17430
17458
|
"aria-multiselectable": u,
|
|
17431
17459
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17432
|
-
children:
|
|
17460
|
+
children: TW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17433
17461
|
role: "row",
|
|
17434
17462
|
ref: (e3) => {
|
|
17435
17463
|
O.current[r2] = e3;
|
|
17436
17464
|
},
|
|
17437
17465
|
tabIndex: r2 === T ? 0 : -1,
|
|
17438
17466
|
onFocus: () => E(r2),
|
|
17439
|
-
onKeyDown: (e3) =>
|
|
17467
|
+
onKeyDown: (e3) => DW(e3, r2),
|
|
17440
17468
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
17441
17469
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
17442
17470
|
}),
|
|
@@ -17479,7 +17507,7 @@ ${c}
|
|
|
17479
17507
|
children: [
|
|
17480
17508
|
e.length,
|
|
17481
17509
|
" ",
|
|
17482
|
-
|
|
17510
|
+
kW.join(" or ", e.length),
|
|
17483
17511
|
" ",
|
|
17484
17512
|
"selected"
|
|
17485
17513
|
]
|
|
@@ -17499,7 +17527,7 @@ ${c}
|
|
|
17499
17527
|
marginBlock: 0
|
|
17500
17528
|
},
|
|
17501
17529
|
className: "m-0 text-xs text-muted-foreground",
|
|
17502
|
-
children:
|
|
17530
|
+
children: vW
|
|
17503
17531
|
})
|
|
17504
17532
|
})
|
|
17505
17533
|
]
|
|
@@ -22881,55 +22909,55 @@ ${c}
|
|
|
22881
22909
|
return typeof S == "function" ? S : noop$2;
|
|
22882
22910
|
}, [
|
|
22883
22911
|
S
|
|
22884
|
-
]), q = (0, import_react.useRef)(null),
|
|
22885
|
-
!
|
|
22886
|
-
|
|
22912
|
+
]), q = (0, import_react.useRef)(null), fW = (0, import_react.useRef)(null), pW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), Z = pW[0], mW = pW[1], hW = Z.isFocused, gW = Z.isFileDialogActive, _W = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), vW = function() {
|
|
22913
|
+
!_W.current && gW && setTimeout(function() {
|
|
22914
|
+
fW.current && (fW.current.files.length || (mW({
|
|
22887
22915
|
type: "closeDialog"
|
|
22888
22916
|
}), G()));
|
|
22889
22917
|
}, 300);
|
|
22890
22918
|
};
|
|
22891
22919
|
(0, import_react.useEffect)(function() {
|
|
22892
|
-
return window.addEventListener("focus",
|
|
22893
|
-
window.removeEventListener("focus",
|
|
22920
|
+
return window.addEventListener("focus", vW, false), function() {
|
|
22921
|
+
window.removeEventListener("focus", vW, false);
|
|
22894
22922
|
};
|
|
22895
22923
|
}, [
|
|
22896
|
-
cW,
|
|
22897
22924
|
fW,
|
|
22925
|
+
gW,
|
|
22898
22926
|
G,
|
|
22899
|
-
|
|
22927
|
+
_W
|
|
22900
22928
|
]);
|
|
22901
|
-
var
|
|
22902
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
22929
|
+
var yW = (0, import_react.useRef)([]), bW = (0, import_react.useRef)([]), xW = function(e2) {
|
|
22930
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), yW.current = []);
|
|
22903
22931
|
};
|
|
22904
22932
|
(0, import_react.useEffect)(function() {
|
|
22905
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
22906
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
22933
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", xW, false)), function() {
|
|
22934
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", xW));
|
|
22907
22935
|
};
|
|
22908
22936
|
}, [
|
|
22909
22937
|
q,
|
|
22910
22938
|
O
|
|
22911
22939
|
]), (0, import_react.useEffect)(function() {
|
|
22912
22940
|
var e2 = function(e3) {
|
|
22913
|
-
|
|
22941
|
+
bW.current = [].concat(_toConsumableArray(bW.current), [
|
|
22914
22942
|
e3.target
|
|
22915
|
-
]), isEvtWithFiles(e3) &&
|
|
22943
|
+
]), isEvtWithFiles(e3) && mW({
|
|
22916
22944
|
isDragGlobal: true,
|
|
22917
22945
|
type: "setDragGlobal"
|
|
22918
22946
|
});
|
|
22919
22947
|
}, r2 = function(e3) {
|
|
22920
|
-
|
|
22948
|
+
bW.current = bW.current.filter(function(r3) {
|
|
22921
22949
|
return r3 !== e3.target && r3 !== null;
|
|
22922
|
-
}), !(
|
|
22950
|
+
}), !(bW.current.length > 0) && mW({
|
|
22923
22951
|
isDragGlobal: false,
|
|
22924
22952
|
type: "setDragGlobal"
|
|
22925
22953
|
});
|
|
22926
22954
|
}, c2 = function() {
|
|
22927
|
-
|
|
22955
|
+
bW.current = [], mW({
|
|
22928
22956
|
isDragGlobal: false,
|
|
22929
22957
|
type: "setDragGlobal"
|
|
22930
22958
|
});
|
|
22931
22959
|
}, l2 = function() {
|
|
22932
|
-
|
|
22960
|
+
bW.current = [], mW({
|
|
22933
22961
|
isDragGlobal: false,
|
|
22934
22962
|
type: "setDragGlobal"
|
|
22935
22963
|
});
|
|
@@ -22947,12 +22975,12 @@ ${c}
|
|
|
22947
22975
|
E,
|
|
22948
22976
|
l
|
|
22949
22977
|
]);
|
|
22950
|
-
var
|
|
22978
|
+
var SW = (0, import_react.useCallback)(function(e2) {
|
|
22951
22979
|
R ? R(e2) : console.error(e2);
|
|
22952
22980
|
}, [
|
|
22953
22981
|
R
|
|
22954
|
-
]),
|
|
22955
|
-
e2.preventDefault(), e2.persist(),
|
|
22982
|
+
]), CW = (0, import_react.useCallback)(function(e2) {
|
|
22983
|
+
e2.preventDefault(), e2.persist(), IW(e2), yW.current = [].concat(_toConsumableArray(yW.current), [
|
|
22956
22984
|
e2.target
|
|
22957
22985
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22958
22986
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -22965,7 +22993,7 @@ ${c}
|
|
|
22965
22993
|
maxFiles: m,
|
|
22966
22994
|
validator: z
|
|
22967
22995
|
});
|
|
22968
|
-
|
|
22996
|
+
mW({
|
|
22969
22997
|
isDragAccept: l2,
|
|
22970
22998
|
isDragReject: c2 > 0 && !l2,
|
|
22971
22999
|
isDragActive: true,
|
|
@@ -22973,12 +23001,12 @@ ${c}
|
|
|
22973
23001
|
}), h && h(e2);
|
|
22974
23002
|
}
|
|
22975
23003
|
}).catch(function(e3) {
|
|
22976
|
-
return
|
|
23004
|
+
return SW(e3);
|
|
22977
23005
|
});
|
|
22978
23006
|
}, [
|
|
22979
23007
|
u,
|
|
22980
23008
|
h,
|
|
22981
|
-
|
|
23009
|
+
SW,
|
|
22982
23010
|
L,
|
|
22983
23011
|
B,
|
|
22984
23012
|
f,
|
|
@@ -22986,8 +23014,8 @@ ${c}
|
|
|
22986
23014
|
p,
|
|
22987
23015
|
m,
|
|
22988
23016
|
z
|
|
22989
|
-
]),
|
|
22990
|
-
e2.preventDefault(), e2.persist(),
|
|
23017
|
+
]), wW = (0, import_react.useCallback)(function(e2) {
|
|
23018
|
+
e2.preventDefault(), e2.persist(), IW(e2);
|
|
22991
23019
|
var r2 = isEvtWithFiles(e2);
|
|
22992
23020
|
if (r2 && e2.dataTransfer) try {
|
|
22993
23021
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -22997,12 +23025,12 @@ ${c}
|
|
|
22997
23025
|
}, [
|
|
22998
23026
|
_,
|
|
22999
23027
|
L
|
|
23000
|
-
]),
|
|
23001
|
-
e2.preventDefault(), e2.persist(),
|
|
23002
|
-
var r2 =
|
|
23028
|
+
]), TW = (0, import_react.useCallback)(function(e2) {
|
|
23029
|
+
e2.preventDefault(), e2.persist(), IW(e2);
|
|
23030
|
+
var r2 = yW.current.filter(function(e3) {
|
|
23003
23031
|
return q.current && q.current.contains(e3);
|
|
23004
23032
|
}), c2 = r2.indexOf(e2.target);
|
|
23005
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
23033
|
+
c2 !== -1 && r2.splice(c2, 1), yW.current = r2, !(r2.length > 0) && (mW({
|
|
23006
23034
|
type: "setDraggedFiles",
|
|
23007
23035
|
isDragActive: false,
|
|
23008
23036
|
isDragAccept: false,
|
|
@@ -23012,7 +23040,7 @@ ${c}
|
|
|
23012
23040
|
q,
|
|
23013
23041
|
g,
|
|
23014
23042
|
L
|
|
23015
|
-
]),
|
|
23043
|
+
]), EW = (0, import_react.useCallback)(function(e2, r2) {
|
|
23016
23044
|
var c2 = [], l2 = [];
|
|
23017
23045
|
e2.forEach(function(e3) {
|
|
23018
23046
|
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;
|
|
@@ -23036,14 +23064,14 @@ ${c}
|
|
|
23036
23064
|
TOO_MANY_FILES_REJECTION
|
|
23037
23065
|
]
|
|
23038
23066
|
});
|
|
23039
|
-
}), c2.splice(0)),
|
|
23067
|
+
}), c2.splice(0)), mW({
|
|
23040
23068
|
acceptedFiles: c2,
|
|
23041
23069
|
fileRejections: l2,
|
|
23042
23070
|
isDragReject: l2.length > 0,
|
|
23043
23071
|
type: "setFiles"
|
|
23044
23072
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
23045
23073
|
}, [
|
|
23046
|
-
|
|
23074
|
+
mW,
|
|
23047
23075
|
p,
|
|
23048
23076
|
B,
|
|
23049
23077
|
f,
|
|
@@ -23053,22 +23081,22 @@ ${c}
|
|
|
23053
23081
|
y,
|
|
23054
23082
|
b,
|
|
23055
23083
|
z
|
|
23056
|
-
]),
|
|
23057
|
-
e2.preventDefault(), e2.persist(),
|
|
23058
|
-
isPropagationStopped(e2) && !L ||
|
|
23084
|
+
]), DW = (0, import_react.useCallback)(function(e2) {
|
|
23085
|
+
e2.preventDefault(), e2.persist(), IW(e2), yW.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
23086
|
+
isPropagationStopped(e2) && !L || EW(r2, e2);
|
|
23059
23087
|
}).catch(function(e3) {
|
|
23060
|
-
return
|
|
23061
|
-
}),
|
|
23088
|
+
return SW(e3);
|
|
23089
|
+
}), mW({
|
|
23062
23090
|
type: "reset"
|
|
23063
23091
|
});
|
|
23064
23092
|
}, [
|
|
23065
23093
|
u,
|
|
23094
|
+
EW,
|
|
23066
23095
|
SW,
|
|
23067
|
-
vW,
|
|
23068
23096
|
L
|
|
23069
|
-
]),
|
|
23070
|
-
if (
|
|
23071
|
-
|
|
23097
|
+
]), OW = (0, import_react.useCallback)(function() {
|
|
23098
|
+
if (_W.current) {
|
|
23099
|
+
mW({
|
|
23072
23100
|
type: "openDialog"
|
|
23073
23101
|
}), W();
|
|
23074
23102
|
var e2 = {
|
|
@@ -23078,66 +23106,66 @@ ${c}
|
|
|
23078
23106
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
23079
23107
|
return u(e3);
|
|
23080
23108
|
}).then(function(e3) {
|
|
23081
|
-
|
|
23109
|
+
EW(e3, null), mW({
|
|
23082
23110
|
type: "closeDialog"
|
|
23083
23111
|
});
|
|
23084
23112
|
}).catch(function(e3) {
|
|
23085
|
-
isAbort(e3) ? (G(e3),
|
|
23113
|
+
isAbort(e3) ? (G(e3), mW({
|
|
23086
23114
|
type: "closeDialog"
|
|
23087
|
-
})) : isSecurityError(e3) ? (
|
|
23115
|
+
})) : isSecurityError(e3) ? (_W.current = false, fW.current ? (fW.current.value = null, fW.current.click()) : SW(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : SW(e3);
|
|
23088
23116
|
});
|
|
23089
23117
|
return;
|
|
23090
23118
|
}
|
|
23091
|
-
|
|
23119
|
+
fW.current && (mW({
|
|
23092
23120
|
type: "openDialog"
|
|
23093
|
-
}), W(),
|
|
23121
|
+
}), W(), fW.current.value = null, fW.current.click());
|
|
23094
23122
|
}, [
|
|
23095
|
-
|
|
23123
|
+
mW,
|
|
23096
23124
|
W,
|
|
23097
23125
|
G,
|
|
23098
23126
|
T,
|
|
23127
|
+
EW,
|
|
23099
23128
|
SW,
|
|
23100
|
-
vW,
|
|
23101
23129
|
H,
|
|
23102
23130
|
p
|
|
23103
|
-
]),
|
|
23104
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
23131
|
+
]), kW = (0, import_react.useCallback)(function(e2) {
|
|
23132
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), OW());
|
|
23105
23133
|
}, [
|
|
23106
23134
|
q,
|
|
23107
|
-
|
|
23108
|
-
]),
|
|
23109
|
-
|
|
23135
|
+
OW
|
|
23136
|
+
]), AW = (0, import_react.useCallback)(function() {
|
|
23137
|
+
mW({
|
|
23110
23138
|
type: "focus"
|
|
23111
23139
|
});
|
|
23112
|
-
}, []),
|
|
23113
|
-
|
|
23140
|
+
}, []), jW = (0, import_react.useCallback)(function() {
|
|
23141
|
+
mW({
|
|
23114
23142
|
type: "blur"
|
|
23115
23143
|
});
|
|
23116
|
-
}, []),
|
|
23117
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
23144
|
+
}, []), MW = (0, import_react.useCallback)(function() {
|
|
23145
|
+
j || (isIeOrEdge() ? setTimeout(OW, 0) : OW());
|
|
23118
23146
|
}, [
|
|
23119
23147
|
j,
|
|
23120
|
-
|
|
23121
|
-
]),
|
|
23148
|
+
OW
|
|
23149
|
+
]), NW = function(e2) {
|
|
23122
23150
|
return l ? null : e2;
|
|
23123
|
-
},
|
|
23124
|
-
return M ? null :
|
|
23125
|
-
},
|
|
23126
|
-
return I ? null :
|
|
23127
|
-
},
|
|
23151
|
+
}, PW = function(e2) {
|
|
23152
|
+
return M ? null : NW(e2);
|
|
23153
|
+
}, FW = function(e2) {
|
|
23154
|
+
return I ? null : NW(e2);
|
|
23155
|
+
}, IW = function(e2) {
|
|
23128
23156
|
L && e2.stopPropagation();
|
|
23129
|
-
},
|
|
23157
|
+
}, LW = (0, import_react.useMemo)(function() {
|
|
23130
23158
|
return function() {
|
|
23131
23159
|
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);
|
|
23132
23160
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
23133
|
-
onKeyDown:
|
|
23134
|
-
onFocus:
|
|
23135
|
-
onBlur:
|
|
23136
|
-
onClick:
|
|
23137
|
-
onDragEnter:
|
|
23138
|
-
onDragOver:
|
|
23139
|
-
onDragLeave:
|
|
23140
|
-
onDrop:
|
|
23161
|
+
onKeyDown: PW(composeEventHandlers(d2, kW)),
|
|
23162
|
+
onFocus: PW(composeEventHandlers(f2, AW)),
|
|
23163
|
+
onBlur: PW(composeEventHandlers(p2, jW)),
|
|
23164
|
+
onClick: NW(composeEventHandlers(m2, MW)),
|
|
23165
|
+
onDragEnter: FW(composeEventHandlers(h2, CW)),
|
|
23166
|
+
onDragOver: FW(composeEventHandlers(g2, wW)),
|
|
23167
|
+
onDragLeave: FW(composeEventHandlers(_2, TW)),
|
|
23168
|
+
onDrop: FW(composeEventHandlers(v2, DW)),
|
|
23141
23169
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23142
23170
|
}, c2, q), !l && !M ? {
|
|
23143
23171
|
tabIndex: 0
|
|
@@ -23145,20 +23173,20 @@ ${c}
|
|
|
23145
23173
|
};
|
|
23146
23174
|
}, [
|
|
23147
23175
|
q,
|
|
23176
|
+
kW,
|
|
23177
|
+
AW,
|
|
23178
|
+
jW,
|
|
23179
|
+
MW,
|
|
23180
|
+
CW,
|
|
23181
|
+
wW,
|
|
23148
23182
|
TW,
|
|
23149
|
-
EW,
|
|
23150
23183
|
DW,
|
|
23151
|
-
OW,
|
|
23152
|
-
yW,
|
|
23153
|
-
bW,
|
|
23154
|
-
xW,
|
|
23155
|
-
CW,
|
|
23156
23184
|
M,
|
|
23157
23185
|
I,
|
|
23158
23186
|
l
|
|
23159
|
-
]),
|
|
23187
|
+
]), RW = (0, import_react.useCallback)(function(e2) {
|
|
23160
23188
|
e2.stopPropagation();
|
|
23161
|
-
}, []),
|
|
23189
|
+
}, []), zW = (0, import_react.useMemo)(function() {
|
|
23162
23190
|
return function() {
|
|
23163
23191
|
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);
|
|
23164
23192
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -23177,25 +23205,25 @@ ${c}
|
|
|
23177
23205
|
width: "1px",
|
|
23178
23206
|
whiteSpace: "nowrap"
|
|
23179
23207
|
},
|
|
23180
|
-
onChange:
|
|
23181
|
-
onClick:
|
|
23208
|
+
onChange: NW(composeEventHandlers(l2, DW)),
|
|
23209
|
+
onClick: NW(composeEventHandlers(u2, RW)),
|
|
23182
23210
|
tabIndex: -1
|
|
23183
|
-
}, c2,
|
|
23211
|
+
}, c2, fW)), d2);
|
|
23184
23212
|
};
|
|
23185
23213
|
}, [
|
|
23186
|
-
|
|
23214
|
+
fW,
|
|
23187
23215
|
c,
|
|
23188
23216
|
p,
|
|
23189
|
-
|
|
23217
|
+
DW,
|
|
23190
23218
|
l
|
|
23191
23219
|
]);
|
|
23192
23220
|
return _objectSpread$7(_objectSpread$7({}, Z), {}, {
|
|
23193
|
-
isFocused:
|
|
23194
|
-
getRootProps:
|
|
23195
|
-
getInputProps:
|
|
23221
|
+
isFocused: hW && !l,
|
|
23222
|
+
getRootProps: LW,
|
|
23223
|
+
getInputProps: zW,
|
|
23196
23224
|
rootRef: q,
|
|
23197
|
-
inputRef:
|
|
23198
|
-
open:
|
|
23225
|
+
inputRef: fW,
|
|
23226
|
+
open: NW(OW)
|
|
23199
23227
|
});
|
|
23200
23228
|
}
|
|
23201
23229
|
function reducer$2(e, r) {
|
|
@@ -23427,47 +23455,47 @@ ${c}
|
|
|
23427
23455
|
html: I
|
|
23428
23456
|
})
|
|
23429
23457
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
23430
|
-
let q = w && "text-primary",
|
|
23431
|
-
r[48] !== q || r[49] !==
|
|
23458
|
+
let q = w && "text-primary", fW = T && "text-destructive", pW;
|
|
23459
|
+
r[48] !== q || r[49] !== fW ? (pW = cn(q, fW), r[48] = q, r[49] = fW, r[50] = pW) : pW = r[50];
|
|
23432
23460
|
let Z;
|
|
23433
|
-
r[51] ===
|
|
23461
|
+
r[51] === pW ? Z = r[52] : (Z = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23434
23462
|
strokeWidth: 1.4,
|
|
23435
|
-
className:
|
|
23436
|
-
}), r[51] =
|
|
23437
|
-
let
|
|
23438
|
-
r[53] !==
|
|
23439
|
-
let
|
|
23440
|
-
r[56] ===
|
|
23463
|
+
className: pW
|
|
23464
|
+
}), r[51] = pW, r[52] = Z);
|
|
23465
|
+
let mW = w && "text-primary", hW = T && "text-destructive", gW;
|
|
23466
|
+
r[53] !== mW || r[54] !== hW ? (gW = cn(mW, hW), r[53] = mW, r[54] = hW, r[55] = gW) : gW = r[55];
|
|
23467
|
+
let _W;
|
|
23468
|
+
r[56] === gW ? _W = r[57] : (_W = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23441
23469
|
strokeWidth: 1.4,
|
|
23442
|
-
className:
|
|
23443
|
-
}), r[56] =
|
|
23444
|
-
let
|
|
23445
|
-
r[58] !== Z || r[59] !==
|
|
23470
|
+
className: gW
|
|
23471
|
+
}), r[56] = gW, r[57] = _W);
|
|
23472
|
+
let vW;
|
|
23473
|
+
r[58] !== Z || r[59] !== _W ? (vW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23446
23474
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
23447
23475
|
children: [
|
|
23448
23476
|
Z,
|
|
23449
|
-
|
|
23477
|
+
_W
|
|
23450
23478
|
]
|
|
23451
|
-
}), r[58] = Z, r[59] =
|
|
23452
|
-
let
|
|
23453
|
-
r[61] !== G || r[62] !==
|
|
23479
|
+
}), r[58] = Z, r[59] = _W, r[60] = vW) : vW = r[60];
|
|
23480
|
+
let yW;
|
|
23481
|
+
r[61] !== G || r[62] !== vW ? (yW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23454
23482
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
23455
23483
|
children: [
|
|
23456
23484
|
G,
|
|
23457
|
-
|
|
23485
|
+
vW
|
|
23458
23486
|
]
|
|
23459
|
-
}), r[61] = G, r[62] =
|
|
23460
|
-
let
|
|
23461
|
-
r[64] !== W || r[65] !==
|
|
23487
|
+
}), r[61] = G, r[62] = vW, r[63] = yW) : yW = r[63];
|
|
23488
|
+
let bW;
|
|
23489
|
+
r[64] !== W || r[65] !== yW || r[66] !== z || r[67] !== B ? (bW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23462
23490
|
className: z,
|
|
23463
23491
|
...B,
|
|
23464
23492
|
children: [
|
|
23465
23493
|
W,
|
|
23466
|
-
|
|
23494
|
+
yW
|
|
23467
23495
|
]
|
|
23468
|
-
}), r[64] = W, r[65] =
|
|
23469
|
-
let
|
|
23470
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
23496
|
+
}), r[64] = W, r[65] = yW, r[66] = z, r[67] = B, r[68] = bW) : bW = r[68];
|
|
23497
|
+
let xW;
|
|
23498
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (xW = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
23471
23499
|
className: "flex flex-row gap-1",
|
|
23472
23500
|
children: [
|
|
23473
23501
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23503,17 +23531,17 @@ ${c}
|
|
|
23503
23531
|
})
|
|
23504
23532
|
})
|
|
23505
23533
|
]
|
|
23506
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
23507
|
-
let
|
|
23508
|
-
return r[75] !==
|
|
23534
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = xW) : xW = r[74];
|
|
23535
|
+
let CW;
|
|
23536
|
+
return r[75] !== bW || r[76] !== xW ? (CW = (0, import_jsx_runtime.jsx)("section", {
|
|
23509
23537
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
23510
23538
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
23511
23539
|
children: [
|
|
23512
|
-
|
|
23513
|
-
|
|
23540
|
+
bW,
|
|
23541
|
+
xW
|
|
23514
23542
|
]
|
|
23515
23543
|
})
|
|
23516
|
-
}), r[75] =
|
|
23544
|
+
}), r[75] = bW, r[76] = xW, r[77] = CW) : CW = r[77], CW;
|
|
23517
23545
|
};
|
|
23518
23546
|
function _temp$11(e) {
|
|
23519
23547
|
Logger.error(e), toast({
|
|
@@ -23609,75 +23637,75 @@ ${c}
|
|
|
23609
23637
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
23610
23638
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23611
23639
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
23612
|
-
let
|
|
23613
|
-
r[13] === f ?
|
|
23640
|
+
let fW;
|
|
23641
|
+
r[13] === f ? fW = r[14] : (fW = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23614
23642
|
className: "text-center",
|
|
23615
23643
|
children: renderHTML({
|
|
23616
23644
|
html: f
|
|
23617
23645
|
})
|
|
23618
|
-
}), r[13] = f, r[14] =
|
|
23619
|
-
let
|
|
23620
|
-
r[15] === L ?
|
|
23646
|
+
}), r[13] = f, r[14] = fW);
|
|
23647
|
+
let pW;
|
|
23648
|
+
r[15] === L ? pW = r[16] : (pW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
23621
23649
|
kind: "danger",
|
|
23622
23650
|
className: "rounded",
|
|
23623
23651
|
children: L ?? "Invalid input"
|
|
23624
|
-
}), r[15] = L, r[16] =
|
|
23652
|
+
}), r[15] = L, r[16] = pW);
|
|
23625
23653
|
let Z;
|
|
23626
23654
|
r[17] === c ? Z = r[18] : (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
23627
23655
|
children: c
|
|
23628
23656
|
}), r[17] = c, r[18] = Z);
|
|
23629
|
-
let
|
|
23630
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
23657
|
+
let mW;
|
|
23658
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (mW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
23631
23659
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
23632
23660
|
variant: "text",
|
|
23633
23661
|
onClick: (e2) => {
|
|
23634
23662
|
e2.preventDefault(), B();
|
|
23635
23663
|
},
|
|
23636
23664
|
children: S
|
|
23637
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
23638
|
-
let
|
|
23639
|
-
r[23] === h ?
|
|
23665
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = mW) : mW = r[22];
|
|
23666
|
+
let hW = v || h, gW;
|
|
23667
|
+
r[23] === h ? gW = r[24] : (gW = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
23640
23668
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
23641
|
-
}), r[23] = h, r[24] =
|
|
23642
|
-
let
|
|
23643
|
-
r[25] !== g || r[26] !==
|
|
23669
|
+
}), r[23] = h, r[24] = gW);
|
|
23670
|
+
let _W;
|
|
23671
|
+
r[25] !== g || r[26] !== hW || r[27] !== gW || r[28] !== I ? (_W = (0, import_jsx_runtime.jsxs)(Button, {
|
|
23644
23672
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
23645
23673
|
variant: I,
|
|
23646
|
-
disabled:
|
|
23674
|
+
disabled: hW,
|
|
23647
23675
|
type: "submit",
|
|
23648
23676
|
children: [
|
|
23649
|
-
|
|
23677
|
+
gW,
|
|
23650
23678
|
g
|
|
23651
23679
|
]
|
|
23652
|
-
}), r[25] = g, r[26] =
|
|
23653
|
-
let
|
|
23654
|
-
r[30] !== _ || r[31] !==
|
|
23655
|
-
let
|
|
23656
|
-
r[33] !==
|
|
23680
|
+
}), r[25] = g, r[26] = hW, r[27] = gW, r[28] = I, r[29] = _W) : _W = r[29];
|
|
23681
|
+
let vW;
|
|
23682
|
+
r[30] !== _ || r[31] !== _W ? (vW = withTooltip(_W, _), r[30] = _, r[31] = _W, r[32] = vW) : vW = r[32];
|
|
23683
|
+
let yW;
|
|
23684
|
+
r[33] !== vW || r[34] !== mW ? (yW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23657
23685
|
className: "flex justify-end gap-2 font-code",
|
|
23658
23686
|
children: [
|
|
23659
|
-
|
|
23660
|
-
|
|
23687
|
+
mW,
|
|
23688
|
+
vW
|
|
23661
23689
|
]
|
|
23662
|
-
}), r[33] =
|
|
23663
|
-
let
|
|
23664
|
-
r[36] !==
|
|
23690
|
+
}), r[33] = vW, r[34] = mW, r[35] = yW) : yW = r[35];
|
|
23691
|
+
let bW;
|
|
23692
|
+
r[36] !== yW || r[37] !== G || r[38] !== q || r[39] !== fW || r[40] !== pW || r[41] !== Z ? (bW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23665
23693
|
className: G,
|
|
23666
23694
|
onKeyDown: q,
|
|
23667
23695
|
children: [
|
|
23668
|
-
|
|
23669
|
-
|
|
23696
|
+
fW,
|
|
23697
|
+
pW,
|
|
23670
23698
|
Z,
|
|
23671
|
-
|
|
23699
|
+
yW
|
|
23672
23700
|
]
|
|
23673
|
-
}), r[36] =
|
|
23674
|
-
let
|
|
23675
|
-
return r[43] !==
|
|
23701
|
+
}), r[36] = yW, r[37] = G, r[38] = q, r[39] = fW, r[40] = pW, r[41] = Z, r[42] = bW) : bW = r[42];
|
|
23702
|
+
let xW;
|
|
23703
|
+
return r[43] !== bW || r[44] !== H ? (xW = (0, import_jsx_runtime.jsx)("form", {
|
|
23676
23704
|
className: "contents",
|
|
23677
23705
|
ref: j,
|
|
23678
23706
|
onSubmit: H,
|
|
23679
|
-
children:
|
|
23680
|
-
}), r[43] =
|
|
23707
|
+
children: bW
|
|
23708
|
+
}), r[43] = bW, r[44] = H, r[45] = xW) : xW = r[45], xW;
|
|
23681
23709
|
};
|
|
23682
23710
|
var Form = (e) => {
|
|
23683
23711
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -25450,8 +25478,8 @@ ${c}
|
|
|
25450
25478
|
points: extractSunburstPoints(e2.points)
|
|
25451
25479
|
}));
|
|
25452
25480
|
}, r[29] = u, r[30] = G);
|
|
25453
|
-
let q = useEvent_default(G),
|
|
25454
|
-
r[31] === u ?
|
|
25481
|
+
let q = useEvent_default(G), fW;
|
|
25482
|
+
r[31] === u ? fW = r[32] : (fW = (e2) => {
|
|
25455
25483
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25456
25484
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25457
25485
|
u((e3) => ({
|
|
@@ -25462,8 +25490,8 @@ ${c}
|
|
|
25462
25490
|
points: r2,
|
|
25463
25491
|
indices: c2
|
|
25464
25492
|
}));
|
|
25465
|
-
}, r[31] = u, r[32] =
|
|
25466
|
-
let
|
|
25493
|
+
}, r[31] = u, r[32] = fW);
|
|
25494
|
+
let pW = useEvent_default(fW), Z;
|
|
25467
25495
|
r[33] === u ? Z = r[34] : (Z = (e2) => {
|
|
25468
25496
|
e2 && u((r2) => ({
|
|
25469
25497
|
...r2,
|
|
@@ -25474,8 +25502,8 @@ ${c}
|
|
|
25474
25502
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
25475
25503
|
}));
|
|
25476
25504
|
}, r[33] = u, r[34] = Z);
|
|
25477
|
-
let
|
|
25478
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
25505
|
+
let mW = useEvent_default(Z), hW = m.frames ?? void 0, gW = useEvent_default(_temp3$3), _W;
|
|
25506
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== pW || r[42] !== mW || r[43] !== hW || r[44] !== gW || r[45] !== R ? (_W = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25479
25507
|
...m,
|
|
25480
25508
|
layout: h,
|
|
25481
25509
|
onRelayout: R,
|
|
@@ -25483,13 +25511,13 @@ ${c}
|
|
|
25483
25511
|
onTreemapClick: W,
|
|
25484
25512
|
onSunburstClick: q,
|
|
25485
25513
|
config: L,
|
|
25486
|
-
onClick:
|
|
25487
|
-
onSelected:
|
|
25514
|
+
onClick: pW,
|
|
25515
|
+
onSelected: mW,
|
|
25488
25516
|
className: "w-full",
|
|
25489
25517
|
useResizeHandler: true,
|
|
25490
|
-
frames:
|
|
25491
|
-
onError:
|
|
25492
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
25518
|
+
frames: hW,
|
|
25519
|
+
onError: gW
|
|
25520
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = pW, r[42] = mW, r[43] = hW, r[44] = gW, r[45] = R, r[46] = _W) : _W = r[46], _W;
|
|
25493
25521
|
});
|
|
25494
25522
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25495
25523
|
function _temp$8(e) {
|
|
@@ -25621,8 +25649,8 @@ ${c}
|
|
|
25621
25649
|
c[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = cn("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60", "data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"), c[17] = G) : G = c[17];
|
|
25622
25650
|
let q;
|
|
25623
25651
|
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];
|
|
25624
|
-
let
|
|
25625
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
25652
|
+
let fW;
|
|
25653
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (fW = (0, import_jsx_runtime.jsx)(Track, {
|
|
25626
25654
|
ref: E,
|
|
25627
25655
|
"data-testid": "track",
|
|
25628
25656
|
className: G,
|
|
@@ -25633,9 +25661,9 @@ ${c}
|
|
|
25633
25661
|
onPointerMove: z,
|
|
25634
25662
|
onPointerUp: H
|
|
25635
25663
|
})
|
|
25636
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25637
|
-
let
|
|
25638
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
25664
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = fW) : fW = c[22];
|
|
25665
|
+
let pW;
|
|
25666
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (pW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25639
25667
|
asChild: true,
|
|
25640
25668
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25641
25669
|
"data-testid": "thumb",
|
|
@@ -25645,30 +25673,30 @@ ${c}
|
|
|
25645
25673
|
onMouseEnter: m.setTrue,
|
|
25646
25674
|
onMouseLeave: m.setFalse
|
|
25647
25675
|
})
|
|
25648
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
25676
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = pW) : pW = c[25];
|
|
25649
25677
|
let Z;
|
|
25650
25678
|
c[26] !== h || c[27] !== u.value || c[28] !== d ? (Z = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25651
25679
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
25652
25680
|
locale: h
|
|
25653
25681
|
})
|
|
25654
25682
|
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = Z) : Z = c[29];
|
|
25655
|
-
let
|
|
25656
|
-
c[30] === Z ?
|
|
25683
|
+
let mW;
|
|
25684
|
+
c[30] === Z ? mW = c[31] : (mW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25657
25685
|
children: Z
|
|
25658
|
-
}), c[30] = Z, c[31] =
|
|
25659
|
-
let
|
|
25660
|
-
c[32] !== f || c[33] !==
|
|
25686
|
+
}), c[30] = Z, c[31] = mW);
|
|
25687
|
+
let hW;
|
|
25688
|
+
c[32] !== f || c[33] !== pW || c[34] !== mW ? (hW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25661
25689
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25662
25690
|
delayDuration: 0,
|
|
25663
25691
|
open: f,
|
|
25664
25692
|
children: [
|
|
25665
|
-
|
|
25666
|
-
|
|
25693
|
+
pW,
|
|
25694
|
+
mW
|
|
25667
25695
|
]
|
|
25668
25696
|
})
|
|
25669
|
-
}), c[32] = f, c[33] =
|
|
25670
|
-
let
|
|
25671
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
25697
|
+
}), c[32] = f, c[33] = pW, c[34] = mW, c[35] = hW) : hW = c[35];
|
|
25698
|
+
let gW;
|
|
25699
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (gW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25672
25700
|
asChild: true,
|
|
25673
25701
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25674
25702
|
"data-testid": "thumb",
|
|
@@ -25678,39 +25706,39 @@ ${c}
|
|
|
25678
25706
|
onMouseEnter: m.setTrue,
|
|
25679
25707
|
onMouseLeave: m.setFalse
|
|
25680
25708
|
})
|
|
25681
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
25682
|
-
let
|
|
25683
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
25709
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = gW) : gW = c[38];
|
|
25710
|
+
let _W;
|
|
25711
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (_W = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25684
25712
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
25685
25713
|
locale: h
|
|
25686
25714
|
})
|
|
25687
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
25688
|
-
let
|
|
25689
|
-
c[43] ===
|
|
25690
|
-
children:
|
|
25691
|
-
}), c[43] =
|
|
25692
|
-
let
|
|
25693
|
-
c[45] !== f || c[46] !==
|
|
25715
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = _W) : _W = c[42];
|
|
25716
|
+
let vW;
|
|
25717
|
+
c[43] === _W ? vW = c[44] : (vW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25718
|
+
children: _W
|
|
25719
|
+
}), c[43] = _W, c[44] = vW);
|
|
25720
|
+
let yW;
|
|
25721
|
+
c[45] !== f || c[46] !== gW || c[47] !== vW ? (yW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25694
25722
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25695
25723
|
delayDuration: 0,
|
|
25696
25724
|
open: f,
|
|
25697
25725
|
children: [
|
|
25698
|
-
|
|
25699
|
-
|
|
25726
|
+
gW,
|
|
25727
|
+
vW
|
|
25700
25728
|
]
|
|
25701
25729
|
})
|
|
25702
|
-
}), c[45] = f, c[46] =
|
|
25703
|
-
let
|
|
25704
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25730
|
+
}), c[45] = f, c[46] = gW, c[47] = vW, c[48] = yW) : yW = c[48];
|
|
25731
|
+
let bW;
|
|
25732
|
+
return c[49] !== M || c[50] !== u || c[51] !== fW || c[52] !== hW || c[53] !== yW || c[54] !== W ? (bW = (0, import_jsx_runtime.jsxs)(Root, {
|
|
25705
25733
|
ref: M,
|
|
25706
25734
|
className: W,
|
|
25707
25735
|
...u,
|
|
25708
25736
|
children: [
|
|
25709
|
-
|
|
25710
|
-
|
|
25711
|
-
|
|
25737
|
+
fW,
|
|
25738
|
+
hW,
|
|
25739
|
+
yW
|
|
25712
25740
|
]
|
|
25713
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25741
|
+
}), c[49] = M, c[50] = u, c[51] = fW, c[52] = hW, c[53] = yW, c[54] = W, c[55] = bW) : bW = c[55], bW;
|
|
25714
25742
|
});
|
|
25715
25743
|
RangeSlider.displayName = Root.displayName;
|
|
25716
25744
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25761,14 +25789,14 @@ ${c}
|
|
|
25761
25789
|
}, q = (e2) => {
|
|
25762
25790
|
h && l(e2);
|
|
25763
25791
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
25764
|
-
let
|
|
25765
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
25792
|
+
let fW, pW;
|
|
25793
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (fW = () => {
|
|
25766
25794
|
h && !dequal(T, u) && l(T);
|
|
25767
|
-
},
|
|
25795
|
+
}, pW = () => {
|
|
25768
25796
|
h && !dequal(T, u) && l(T);
|
|
25769
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
25797
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = fW, r[19] = pW) : (fW = r[18], pW = r[19]);
|
|
25770
25798
|
let Z;
|
|
25771
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !==
|
|
25799
|
+
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] !== fW || r[31] !== pW || r[32] !== b ? (Z = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25772
25800
|
id: S,
|
|
25773
25801
|
className: W,
|
|
25774
25802
|
value: T,
|
|
@@ -25779,36 +25807,36 @@ ${c}
|
|
|
25779
25807
|
disabled: y,
|
|
25780
25808
|
onValueChange: G,
|
|
25781
25809
|
onValueCommit: q,
|
|
25782
|
-
onPointerUp:
|
|
25783
|
-
onMouseUp:
|
|
25810
|
+
onPointerUp: fW,
|
|
25811
|
+
onMouseUp: pW,
|
|
25784
25812
|
valueMap: b
|
|
25785
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
25786
|
-
let
|
|
25787
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
25813
|
+
}), 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] = fW, r[31] = pW, r[32] = b, r[33] = Z) : Z = r[33];
|
|
25814
|
+
let mW;
|
|
25815
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (mW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25788
25816
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
25789
25817
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
25790
25818
|
locale: w
|
|
25791
25819
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
25792
25820
|
locale: w
|
|
25793
25821
|
})}`
|
|
25794
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
25795
|
-
let
|
|
25796
|
-
r[39] !== Z || r[40] !==
|
|
25822
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = mW) : mW = r[38];
|
|
25823
|
+
let hW;
|
|
25824
|
+
r[39] !== Z || r[40] !== mW || r[41] !== B ? (hW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25797
25825
|
className: B,
|
|
25798
25826
|
children: [
|
|
25799
25827
|
Z,
|
|
25800
|
-
|
|
25828
|
+
mW
|
|
25801
25829
|
]
|
|
25802
|
-
}), r[39] = Z, r[40] =
|
|
25803
|
-
let
|
|
25804
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
25830
|
+
}), r[39] = Z, r[40] = mW, r[41] = B, r[42] = hW) : hW = r[42];
|
|
25831
|
+
let gW;
|
|
25832
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== hW || r[47] !== M || r[48] !== L ? (gW = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25805
25833
|
label: c,
|
|
25806
25834
|
id: S,
|
|
25807
25835
|
align: M,
|
|
25808
25836
|
className: L,
|
|
25809
25837
|
fullWidth: v,
|
|
25810
|
-
children:
|
|
25811
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
25838
|
+
children: hW
|
|
25839
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = hW, r[47] = M, r[48] = L, r[49] = gW) : gW = r[49], gW;
|
|
25812
25840
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
25813
25841
|
r.exports = u;
|
|
25814
25842
|
var c = {
|
|
@@ -29099,7 +29127,7 @@ ${c}
|
|
|
29099
29127
|
areRegExpsEqual: H,
|
|
29100
29128
|
areSetsEqual: W,
|
|
29101
29129
|
createIsNestedEqual: r2
|
|
29102
|
-
}),
|
|
29130
|
+
}), fW = Object.freeze({
|
|
29103
29131
|
areArraysEqual: O,
|
|
29104
29132
|
areDatesEqual: j,
|
|
29105
29133
|
areMapsEqual: I,
|
|
@@ -29107,40 +29135,40 @@ ${c}
|
|
|
29107
29135
|
areRegExpsEqual: H,
|
|
29108
29136
|
areSetsEqual: G,
|
|
29109
29137
|
createIsNestedEqual: r2
|
|
29110
|
-
}),
|
|
29138
|
+
}), pW = T(q);
|
|
29111
29139
|
function Z(e3, r3) {
|
|
29112
|
-
return
|
|
29140
|
+
return pW(e3, r3, void 0);
|
|
29113
29141
|
}
|
|
29114
|
-
var
|
|
29142
|
+
var mW = T(l(q, {
|
|
29115
29143
|
createIsNestedEqual: function() {
|
|
29116
29144
|
return f;
|
|
29117
29145
|
}
|
|
29118
29146
|
}));
|
|
29119
|
-
function
|
|
29120
|
-
return
|
|
29147
|
+
function hW(e3, r3) {
|
|
29148
|
+
return mW(e3, r3, void 0);
|
|
29121
29149
|
}
|
|
29122
|
-
var
|
|
29123
|
-
function
|
|
29124
|
-
return
|
|
29150
|
+
var gW = T(fW);
|
|
29151
|
+
function _W(e3, r3) {
|
|
29152
|
+
return gW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29125
29153
|
}
|
|
29126
|
-
var
|
|
29154
|
+
var vW = T(l(fW, {
|
|
29127
29155
|
createIsNestedEqual: function() {
|
|
29128
29156
|
return f;
|
|
29129
29157
|
}
|
|
29130
29158
|
}));
|
|
29131
|
-
function
|
|
29132
|
-
return
|
|
29159
|
+
function yW(e3, r3) {
|
|
29160
|
+
return vW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29133
29161
|
}
|
|
29134
|
-
function
|
|
29162
|
+
function bW(e3) {
|
|
29135
29163
|
return T(l(q, e3(q)));
|
|
29136
29164
|
}
|
|
29137
|
-
function
|
|
29138
|
-
var r3 = T(l(
|
|
29165
|
+
function xW(e3) {
|
|
29166
|
+
var r3 = T(l(fW, e3(fW)));
|
|
29139
29167
|
return (function(e4, c2, l2) {
|
|
29140
29168
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29141
29169
|
});
|
|
29142
29170
|
}
|
|
29143
|
-
e2.circularDeepEqual =
|
|
29171
|
+
e2.circularDeepEqual = _W, e2.circularShallowEqual = yW, e2.createCustomCircularEqual = xW, e2.createCustomEqual = bW, e2.deepEqual = Z, e2.sameValueZeroEqual = f, e2.shallowEqual = hW, Object.defineProperty(e2, "__esModule", {
|
|
29144
29172
|
value: true
|
|
29145
29173
|
});
|
|
29146
29174
|
}));
|
|
@@ -29166,7 +29194,7 @@ ${c}
|
|
|
29166
29194
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
29167
29195
|
Object.defineProperty(e, "__esModule", {
|
|
29168
29196
|
value: true
|
|
29169
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
29197
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = DW, 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 = yW, e.setTopLeft = xW, e.setTransform = bW, e.sortLayoutItems = SW, e.sortLayoutItemsByColRow = wW, e.sortLayoutItemsByRowCol = CW, e.synchronizeLayoutWithChildren = TW, e.validateLayout = EW, e.withLayoutItem = v;
|
|
29170
29198
|
var r = require_fast_equals(), c = l(require_react());
|
|
29171
29199
|
function l(e2) {
|
|
29172
29200
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -29271,7 +29299,7 @@ ${c}
|
|
|
29271
29299
|
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);
|
|
29272
29300
|
}
|
|
29273
29301
|
function T(e2, r2, c2, l2) {
|
|
29274
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
29302
|
+
let u2 = B(e2), d2 = h(u2), f2 = SW(e2, r2), p2 = Array(e2.length);
|
|
29275
29303
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
29276
29304
|
let h3 = y(f2[m2]);
|
|
29277
29305
|
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;
|
|
@@ -29329,7 +29357,7 @@ ${c}
|
|
|
29329
29357
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
29330
29358
|
let h2 = r2.x, _2 = r2.y;
|
|
29331
29359
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
29332
|
-
let v2 =
|
|
29360
|
+
let v2 = SW(e2, f2);
|
|
29333
29361
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
29334
29362
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
29335
29363
|
if (b2 && m2) return g(e2);
|
|
@@ -29363,61 +29391,61 @@ ${c}
|
|
|
29363
29391
|
function G(e2) {
|
|
29364
29392
|
return e2 * 100 + "%";
|
|
29365
29393
|
}
|
|
29366
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
29394
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, fW = (e2, r2, c2) => e2 < 0 ? r2 : c2, pW = (e2) => Math.max(0, e2), Z = (e2) => Math.max(0, e2), mW = (e2, r2, c2) => {
|
|
29367
29395
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29368
29396
|
return {
|
|
29369
29397
|
left: l2,
|
|
29370
29398
|
width: d2,
|
|
29371
|
-
height:
|
|
29399
|
+
height: fW(f2, e2.height, u2),
|
|
29372
29400
|
top: Z(f2)
|
|
29373
29401
|
};
|
|
29374
|
-
},
|
|
29402
|
+
}, hW = (e2, r2, c2) => {
|
|
29375
29403
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29376
29404
|
return {
|
|
29377
29405
|
top: l2,
|
|
29378
29406
|
height: d2,
|
|
29379
29407
|
width: q(e2.left, e2.width, f2, c2),
|
|
29380
|
-
left:
|
|
29408
|
+
left: pW(u2)
|
|
29381
29409
|
};
|
|
29382
|
-
},
|
|
29410
|
+
}, gW = (e2, r2, c2) => {
|
|
29383
29411
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29384
29412
|
return {
|
|
29385
29413
|
height: u2,
|
|
29386
29414
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
29387
29415
|
top: Z(l2),
|
|
29388
|
-
left:
|
|
29416
|
+
left: pW(f2)
|
|
29389
29417
|
};
|
|
29390
|
-
},
|
|
29418
|
+
}, _W = (e2, r2, c2) => {
|
|
29391
29419
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29392
29420
|
return {
|
|
29393
29421
|
width: f2,
|
|
29394
29422
|
left: u2,
|
|
29395
|
-
height:
|
|
29423
|
+
height: fW(l2, e2.height, d2),
|
|
29396
29424
|
top: Z(l2)
|
|
29397
29425
|
};
|
|
29398
|
-
},
|
|
29399
|
-
n:
|
|
29426
|
+
}, vW = {
|
|
29427
|
+
n: mW,
|
|
29400
29428
|
ne: function() {
|
|
29401
|
-
return
|
|
29429
|
+
return mW(arguments.length <= 0 ? void 0 : arguments[0], hW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29402
29430
|
},
|
|
29403
|
-
e:
|
|
29431
|
+
e: hW,
|
|
29404
29432
|
se: function() {
|
|
29405
|
-
return
|
|
29433
|
+
return _W(arguments.length <= 0 ? void 0 : arguments[0], hW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29406
29434
|
},
|
|
29407
|
-
s:
|
|
29435
|
+
s: _W,
|
|
29408
29436
|
sw: function() {
|
|
29409
|
-
return
|
|
29437
|
+
return _W(arguments.length <= 0 ? void 0 : arguments[0], gW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29410
29438
|
},
|
|
29411
|
-
w:
|
|
29439
|
+
w: gW,
|
|
29412
29440
|
nw: function() {
|
|
29413
|
-
return
|
|
29441
|
+
return mW(arguments.length <= 0 ? void 0 : arguments[0], gW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29414
29442
|
}
|
|
29415
29443
|
};
|
|
29416
|
-
function
|
|
29417
|
-
let u2 =
|
|
29444
|
+
function yW(e2, r2, c2, l2) {
|
|
29445
|
+
let u2 = vW[e2];
|
|
29418
29446
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
29419
29447
|
}
|
|
29420
|
-
function
|
|
29448
|
+
function bW(e2) {
|
|
29421
29449
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
29422
29450
|
return {
|
|
29423
29451
|
transform: d2,
|
|
@@ -29430,7 +29458,7 @@ ${c}
|
|
|
29430
29458
|
position: "absolute"
|
|
29431
29459
|
};
|
|
29432
29460
|
}
|
|
29433
|
-
function
|
|
29461
|
+
function xW(e2) {
|
|
29434
29462
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
29435
29463
|
return {
|
|
29436
29464
|
top: `${r2}px`,
|
|
@@ -29440,20 +29468,20 @@ ${c}
|
|
|
29440
29468
|
position: "absolute"
|
|
29441
29469
|
};
|
|
29442
29470
|
}
|
|
29443
|
-
function
|
|
29444
|
-
return r2 === "horizontal" ?
|
|
29471
|
+
function SW(e2, r2) {
|
|
29472
|
+
return r2 === "horizontal" ? wW(e2) : r2 === "vertical" ? CW(e2) : e2;
|
|
29445
29473
|
}
|
|
29446
|
-
function
|
|
29474
|
+
function CW(e2) {
|
|
29447
29475
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29448
29476
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
29449
29477
|
});
|
|
29450
29478
|
}
|
|
29451
|
-
function
|
|
29479
|
+
function wW(e2) {
|
|
29452
29480
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29453
29481
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
29454
29482
|
});
|
|
29455
29483
|
}
|
|
29456
|
-
function
|
|
29484
|
+
function TW(e2, r2, l2, u2, f2) {
|
|
29457
29485
|
e2 || (e2 = []);
|
|
29458
29486
|
let p2 = [];
|
|
29459
29487
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -29474,7 +29502,7 @@ ${c}
|
|
|
29474
29502
|
});
|
|
29475
29503
|
return f2 ? m2 : T(m2, u2, l2);
|
|
29476
29504
|
}
|
|
29477
|
-
function
|
|
29505
|
+
function EW(e2) {
|
|
29478
29506
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
29479
29507
|
"x",
|
|
29480
29508
|
"y",
|
|
@@ -29491,7 +29519,7 @@ ${c}
|
|
|
29491
29519
|
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})`);
|
|
29492
29520
|
}
|
|
29493
29521
|
}
|
|
29494
|
-
function
|
|
29522
|
+
function DW(e2) {
|
|
29495
29523
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
29496
29524
|
return r2 === false ? null : c2;
|
|
29497
29525
|
}
|
|
@@ -32296,7 +32324,7 @@ ${c}
|
|
|
32296
32324
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32297
32325
|
let E = useIsDragging(), O, j;
|
|
32298
32326
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
32299
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
32327
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, fW, pW, Z, mW, hW, gW, _W, vW, yW, bW, xW, SW, CW, wW, TW, EW, DW;
|
|
32300
32328
|
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) {
|
|
32301
32329
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
32302
32330
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32315,23 +32343,23 @@ ${c}
|
|
|
32315
32343
|
});
|
|
32316
32344
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
32317
32345
|
let y2 = v2;
|
|
32318
|
-
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout,
|
|
32346
|
+
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, wW = "lg", r[58] === c.cells ? TW = r[59] : (TW = {
|
|
32319
32347
|
lg: c.cells
|
|
32320
|
-
}, r[58] = c.cells, r[59] =
|
|
32348
|
+
}, r[58] = c.cells, r[59] = TW), EW = L, DW = S, R = false;
|
|
32321
32349
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
32322
32350
|
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 ? [
|
|
32323
32351
|
20,
|
|
32324
32352
|
20
|
|
32325
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
32353
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, fW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (pW = (e3) => {
|
|
32326
32354
|
f || l({
|
|
32327
32355
|
...c,
|
|
32328
32356
|
cells: e3
|
|
32329
32357
|
});
|
|
32330
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
32358
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = pW) : pW = r[69], r[70] === g ? Z = r[71] : (Z = g ? {
|
|
32331
32359
|
i: g.i,
|
|
32332
32360
|
w: g.w || 2,
|
|
32333
32361
|
h: g.h || 2
|
|
32334
|
-
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (
|
|
32362
|
+
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (mW = (e3, r2, u2) => {
|
|
32335
32363
|
O.onDragStop(), r2 && l({
|
|
32336
32364
|
...c,
|
|
32337
32365
|
cells: [
|
|
@@ -32339,21 +32367,22 @@ ${c}
|
|
|
32339
32367
|
r2
|
|
32340
32368
|
]
|
|
32341
32369
|
});
|
|
32342
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
32370
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = mW) : mW = r[75], r[76] === O ? (hW = r[77], gW = r[78], _W = r[79]) : (hW = (e3, r2, c2, l2, u2) => {
|
|
32343
32371
|
O.onDragStart(u2);
|
|
32344
|
-
},
|
|
32372
|
+
}, gW = (e3, r2, c2, l2, u2) => {
|
|
32345
32373
|
O.onDragMove(u2);
|
|
32346
|
-
},
|
|
32374
|
+
}, _W = () => {
|
|
32347
32375
|
O.onDragStop();
|
|
32348
|
-
}, r[76] = O, r[77] =
|
|
32376
|
+
}, r[76] = O, r[77] = hW, r[78] = gW, r[79] = _W), vW = _temp3$2, yW = M, bW = M, xW = M, SW = M ? `.${DRAG_HANDLE}` : "noop";
|
|
32349
32377
|
let E2;
|
|
32350
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
32378
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), CW = u.filter(E2).map((r2) => {
|
|
32351
32379
|
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, {
|
|
32352
32380
|
code: r2.code,
|
|
32353
32381
|
mode: d,
|
|
32354
32382
|
cellId: r2.id,
|
|
32355
32383
|
output: r2.output,
|
|
32356
32384
|
status: r2.status,
|
|
32385
|
+
stale: outputIsStale(r2, false),
|
|
32357
32386
|
isScrollable: f2,
|
|
32358
32387
|
side: p,
|
|
32359
32388
|
hidden: r2.errored || r2.interrupted || r2.stopped
|
|
@@ -32376,14 +32405,14 @@ ${c}
|
|
|
32376
32405
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32377
32406
|
children: m3
|
|
32378
32407
|
}, r2.id);
|
|
32379
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
32380
|
-
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29],
|
|
32381
|
-
let
|
|
32382
|
-
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] !==
|
|
32383
|
-
breakpoint:
|
|
32384
|
-
layouts:
|
|
32385
|
-
style:
|
|
32386
|
-
cols:
|
|
32408
|
+
}), 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] = fW, r[31] = pW, r[32] = Z, r[33] = mW, r[34] = hW, r[35] = gW, r[36] = _W, r[37] = vW, r[38] = yW, r[39] = bW, r[40] = xW, r[41] = SW, r[42] = CW, r[43] = wW, r[44] = TW, r[45] = EW, r[46] = DW;
|
|
32409
|
+
} 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], fW = r[30], pW = r[31], Z = r[32], mW = r[33], hW = r[34], gW = r[35], _W = r[36], vW = r[37], yW = r[38], bW = r[39], xW = r[40], SW = r[41], CW = r[42], wW = r[43], TW = r[44], EW = r[45], DW = r[46];
|
|
32410
|
+
let OW;
|
|
32411
|
+
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] !== fW || r[91] !== pW || r[92] !== Z || r[93] !== mW || r[94] !== hW || r[95] !== gW || r[96] !== _W || r[97] !== vW || r[98] !== yW || r[99] !== bW || r[100] !== xW || r[101] !== SW || r[102] !== CW || r[103] !== wW || r[104] !== TW || r[105] !== EW || r[106] !== DW ? (OW = (0, import_jsx_runtime.jsx)(I, {
|
|
32412
|
+
breakpoint: wW,
|
|
32413
|
+
layouts: TW,
|
|
32414
|
+
style: EW,
|
|
32415
|
+
cols: DW,
|
|
32387
32416
|
allowOverlap: R,
|
|
32388
32417
|
className: z,
|
|
32389
32418
|
containerPadding: B,
|
|
@@ -32391,23 +32420,23 @@ ${c}
|
|
|
32391
32420
|
isBounded: W,
|
|
32392
32421
|
compactType: G,
|
|
32393
32422
|
preventCollision: q,
|
|
32394
|
-
rowHeight:
|
|
32395
|
-
onLayoutChange:
|
|
32423
|
+
rowHeight: fW,
|
|
32424
|
+
onLayoutChange: pW,
|
|
32396
32425
|
droppingItem: Z,
|
|
32397
|
-
onDrop:
|
|
32398
|
-
onDragStart:
|
|
32399
|
-
onDrag:
|
|
32400
|
-
onDragStop:
|
|
32401
|
-
onResizeStop:
|
|
32402
|
-
isDraggable:
|
|
32403
|
-
isDroppable:
|
|
32404
|
-
isResizable:
|
|
32405
|
-
draggableHandle:
|
|
32406
|
-
children:
|
|
32407
|
-
}), 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] =
|
|
32408
|
-
let
|
|
32409
|
-
if (r[108] !== u || r[109] !==
|
|
32410
|
-
|
|
32426
|
+
onDrop: mW,
|
|
32427
|
+
onDragStart: hW,
|
|
32428
|
+
onDrag: gW,
|
|
32429
|
+
onDragStop: _W,
|
|
32430
|
+
onResizeStop: vW,
|
|
32431
|
+
isDraggable: yW,
|
|
32432
|
+
isDroppable: bW,
|
|
32433
|
+
isResizable: xW,
|
|
32434
|
+
draggableHandle: SW,
|
|
32435
|
+
children: CW
|
|
32436
|
+
}), 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] = fW, r[91] = pW, r[92] = Z, r[93] = mW, r[94] = hW, r[95] = gW, r[96] = _W, r[97] = vW, r[98] = yW, r[99] = bW, r[100] = xW, r[101] = SW, r[102] = CW, r[103] = wW, r[104] = TW, r[105] = EW, r[106] = DW, r[107] = OW) : OW = r[107];
|
|
32437
|
+
let kW = OW, AW, jW, MW, NW, PW, FW, IW;
|
|
32438
|
+
if (r[108] !== u || r[109] !== kW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
32439
|
+
IW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
32411
32440
|
bb0: {
|
|
32412
32441
|
let e2;
|
|
32413
32442
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -32415,14 +32444,14 @@ ${c}
|
|
|
32415
32444
|
if (f) {
|
|
32416
32445
|
if (c.bordered) {
|
|
32417
32446
|
let e4;
|
|
32418
|
-
r[127] !==
|
|
32447
|
+
r[127] !== kW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
32419
32448
|
className: "flex flex-1 flex-col items-center",
|
|
32420
32449
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
32421
32450
|
style: L,
|
|
32422
32451
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
32423
|
-
children:
|
|
32452
|
+
children: kW
|
|
32424
32453
|
})
|
|
32425
|
-
}), r[127] =
|
|
32454
|
+
}), r[127] = kW, r[128] = L, r[129] = e4) : e4 = r[129], kW = e4;
|
|
32426
32455
|
}
|
|
32427
32456
|
let e3 = m2.filter(_temp4$2), l2;
|
|
32428
32457
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -32431,11 +32460,12 @@ ${c}
|
|
|
32431
32460
|
cellId: e4.id,
|
|
32432
32461
|
output: e4.output,
|
|
32433
32462
|
status: e4.status,
|
|
32463
|
+
stale: outputIsStale(e4, false),
|
|
32434
32464
|
isScrollable: false,
|
|
32435
32465
|
hidden: false
|
|
32436
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
32466
|
+
}, e4.id), r[130] = d, r[131] = l2), IW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32437
32467
|
children: [
|
|
32438
|
-
|
|
32468
|
+
kW,
|
|
32439
32469
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32440
32470
|
className: "hidden",
|
|
32441
32471
|
children: e3.map(l2)
|
|
@@ -32446,31 +32476,31 @@ ${c}
|
|
|
32446
32476
|
}
|
|
32447
32477
|
if (c.bordered) {
|
|
32448
32478
|
let e3;
|
|
32449
|
-
r[132] ===
|
|
32479
|
+
r[132] === kW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
32450
32480
|
className: "h-full overflow-auto",
|
|
32451
|
-
children:
|
|
32452
|
-
}), r[132] =
|
|
32481
|
+
children: kW
|
|
32482
|
+
}), r[132] = kW, r[133] = e3);
|
|
32453
32483
|
let c2;
|
|
32454
32484
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32455
32485
|
style: L,
|
|
32456
32486
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
32457
32487
|
children: e3
|
|
32458
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
32488
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], kW = c2;
|
|
32459
32489
|
}
|
|
32460
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
32490
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (FW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
32461
32491
|
layout: c,
|
|
32462
32492
|
setLayout: l,
|
|
32463
32493
|
isLocked: v,
|
|
32464
32494
|
setIsLocked: y
|
|
32465
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
32495
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = FW) : FW = r[140];
|
|
32466
32496
|
let g2;
|
|
32467
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32497
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (NW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = NW, r[142] = g2) : (NW = r[141], g2 = r[142]), r[143] === kW ? PW = r[144] : (PW = (0, import_jsx_runtime.jsx)("div", {
|
|
32468
32498
|
className: g2,
|
|
32469
|
-
children:
|
|
32470
|
-
}), r[143] =
|
|
32499
|
+
children: kW
|
|
32500
|
+
}), r[143] = kW, r[144] = PW), AW = "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") ? (jW = (0, import_jsx_runtime.jsx)("div", {
|
|
32471
32501
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
32472
32502
|
children: "Outputs"
|
|
32473
|
-
}), r[145] =
|
|
32503
|
+
}), r[145] = jW) : jW = r[145];
|
|
32474
32504
|
let b2;
|
|
32475
32505
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
32476
32506
|
draggable: true,
|
|
@@ -32493,41 +32523,42 @@ ${c}
|
|
|
32493
32523
|
output: e3.output,
|
|
32494
32524
|
isScrollable: false,
|
|
32495
32525
|
status: e3.status,
|
|
32526
|
+
stale: outputIsStale(e3, false),
|
|
32496
32527
|
hidden: false
|
|
32497
32528
|
})
|
|
32498
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
32499
|
-
}
|
|
32500
|
-
r[108] = u, r[109] =
|
|
32501
|
-
} else
|
|
32502
|
-
if (
|
|
32503
|
-
let
|
|
32504
|
-
r[150] !==
|
|
32505
|
-
className:
|
|
32529
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], MW = m2.map(b2);
|
|
32530
|
+
}
|
|
32531
|
+
r[108] = u, r[109] = kW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = AW, r[118] = jW, r[119] = MW, r[120] = NW, r[121] = PW, r[122] = FW, r[123] = IW, r[124] = kW;
|
|
32532
|
+
} else AW = r[117], jW = r[118], MW = r[119], NW = r[120], PW = r[121], FW = r[122], IW = r[123], kW = r[124];
|
|
32533
|
+
if (IW !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return IW;
|
|
32534
|
+
let LW;
|
|
32535
|
+
r[150] !== AW || r[151] !== jW || r[152] !== MW ? (LW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32536
|
+
className: AW,
|
|
32506
32537
|
children: [
|
|
32507
|
-
|
|
32508
|
-
|
|
32538
|
+
jW,
|
|
32539
|
+
MW
|
|
32509
32540
|
]
|
|
32510
|
-
}), r[150] =
|
|
32511
|
-
let
|
|
32512
|
-
r[154] !==
|
|
32513
|
-
className:
|
|
32541
|
+
}), r[150] = AW, r[151] = jW, r[152] = MW, r[153] = LW) : LW = r[153];
|
|
32542
|
+
let RW;
|
|
32543
|
+
r[154] !== NW || r[155] !== PW || r[156] !== LW ? (RW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32544
|
+
className: NW,
|
|
32514
32545
|
children: [
|
|
32515
|
-
|
|
32516
|
-
|
|
32546
|
+
PW,
|
|
32547
|
+
LW
|
|
32517
32548
|
]
|
|
32518
|
-
}), r[154] =
|
|
32519
|
-
let
|
|
32520
|
-
return r[158] !==
|
|
32549
|
+
}), r[154] = NW, r[155] = PW, r[156] = LW, r[157] = RW) : RW = r[157];
|
|
32550
|
+
let zW;
|
|
32551
|
+
return r[158] !== FW || r[159] !== RW ? (zW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32521
32552
|
children: [
|
|
32522
|
-
|
|
32523
|
-
|
|
32553
|
+
FW,
|
|
32554
|
+
RW
|
|
32524
32555
|
]
|
|
32525
|
-
}), r[158] =
|
|
32556
|
+
}), r[158] = FW, r[159] = RW, r[160] = zW) : zW = r[160], zW;
|
|
32526
32557
|
};
|
|
32527
32558
|
var GridCell = (0, import_react.memo)((e) => {
|
|
32528
|
-
let r = (0, import_compiler_runtime$13.c)(
|
|
32529
|
-
r[0] === u ?
|
|
32530
|
-
let
|
|
32559
|
+
let r = (0, import_compiler_runtime$13.c)(21), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _, stale: v } = e, y;
|
|
32560
|
+
r[0] === u ? y = r[1] : (y = outputIsLoading(u), r[0] = u, r[1] = y);
|
|
32561
|
+
let b = y;
|
|
32531
32562
|
if ((c == null || c.data === "") && d !== "read") {
|
|
32532
32563
|
let e2;
|
|
32533
32564
|
return r[2] !== _ || r[3] !== f ? (e2 = (0, import_jsx_runtime.jsx)(TinyCode, {
|
|
@@ -32535,21 +32566,21 @@ ${c}
|
|
|
32535
32566
|
code: f
|
|
32536
32567
|
}), r[2] = _, r[3] = f, r[4] = e2) : e2 = r[4], e2;
|
|
32537
32568
|
}
|
|
32538
|
-
let
|
|
32539
|
-
r[5] !== _ || r[6] !==
|
|
32540
|
-
let
|
|
32541
|
-
r[13] !== l || r[14] !==
|
|
32569
|
+
let S = m && "invisible", w = h ? "overflow-y-auto" : "overflow-y-hidden", T = g === "top" && "flex items-start", E = g === "bottom" && "flex items-end", O = g === "left" && "flex justify-start", j = g === "right" && "flex justify-end", M;
|
|
32570
|
+
r[5] !== _ || r[6] !== S || r[7] !== w || r[8] !== T || r[9] !== E || r[10] !== O || r[11] !== j ? (M = cn(_, "h-full w-full p-2 overflow-x-auto", S, w, T, E, O, j), r[5] = _, r[6] = S, r[7] = w, r[8] = T, r[9] = E, r[10] = O, r[11] = j, r[12] = M) : M = r[12];
|
|
32571
|
+
let I;
|
|
32572
|
+
r[13] !== l || r[14] !== b || r[15] !== c || r[16] !== v ? (I = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
32542
32573
|
allowExpand: false,
|
|
32543
32574
|
output: c,
|
|
32544
32575
|
cellId: l,
|
|
32545
|
-
stale:
|
|
32546
|
-
loading:
|
|
32547
|
-
}), r[13] = l, r[14] =
|
|
32548
|
-
let
|
|
32549
|
-
return r[
|
|
32550
|
-
className:
|
|
32551
|
-
children:
|
|
32552
|
-
}), r[
|
|
32576
|
+
stale: v,
|
|
32577
|
+
loading: b
|
|
32578
|
+
}), r[13] = l, r[14] = b, r[15] = c, r[16] = v, r[17] = I) : I = r[17];
|
|
32579
|
+
let L;
|
|
32580
|
+
return r[18] !== M || r[19] !== I ? (L = (0, import_jsx_runtime.jsx)("div", {
|
|
32581
|
+
className: M,
|
|
32582
|
+
children: I
|
|
32583
|
+
}), r[18] = M, r[19] = I, r[20] = L) : L = r[20], L;
|
|
32553
32584
|
});
|
|
32554
32585
|
GridCell.displayName = "GridCell";
|
|
32555
32586
|
var GridControls = (e) => {
|
|
@@ -32823,25 +32854,25 @@ ${c}
|
|
|
32823
32854
|
G
|
|
32824
32855
|
]
|
|
32825
32856
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
32826
|
-
let
|
|
32827
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32857
|
+
let fW;
|
|
32858
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32828
32859
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32829
|
-
}), r[35] =
|
|
32830
|
-
let
|
|
32831
|
-
r[36] === l ?
|
|
32860
|
+
}), r[35] = fW) : fW = r[35];
|
|
32861
|
+
let pW;
|
|
32862
|
+
r[36] === l ? pW = r[37] : (pW = (0, import_jsx_runtime.jsx)(X, {
|
|
32832
32863
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
32833
32864
|
onClick: () => l()
|
|
32834
|
-
}), r[36] = l, r[37] =
|
|
32865
|
+
}), r[36] = l, r[37] = pW);
|
|
32835
32866
|
let Z;
|
|
32836
|
-
return r[38] !== I || r[39] !== q || r[40] !==
|
|
32867
|
+
return r[38] !== I || r[39] !== q || r[40] !== pW || r[41] !== w ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
32837
32868
|
className: w,
|
|
32838
32869
|
children: [
|
|
32839
32870
|
I,
|
|
32840
32871
|
q,
|
|
32841
|
-
|
|
32842
|
-
|
|
32872
|
+
fW,
|
|
32873
|
+
pW
|
|
32843
32874
|
]
|
|
32844
|
-
}), r[38] = I, r[39] = q, r[40] =
|
|
32875
|
+
}), r[38] = I, r[39] = q, r[40] = pW, r[41] = w, r[42] = Z) : Z = r[42], Z;
|
|
32845
32876
|
};
|
|
32846
32877
|
function isSidebarCell(e) {
|
|
32847
32878
|
var _a3;
|
|
@@ -34845,28 +34876,28 @@ ${c}
|
|
|
34845
34876
|
}, [
|
|
34846
34877
|
T,
|
|
34847
34878
|
M
|
|
34848
|
-
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r),
|
|
34879
|
+
]), 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), fW = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34849
34880
|
j
|
|
34850
|
-
]),
|
|
34881
|
+
]), pW = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers: mW, measuringScheduled: hW } = useDroppableMeasuring(fW, {
|
|
34851
34882
|
dragging: w,
|
|
34852
34883
|
dependencies: [
|
|
34853
34884
|
O.x,
|
|
34854
34885
|
O.y
|
|
34855
34886
|
],
|
|
34856
|
-
config:
|
|
34857
|
-
}),
|
|
34887
|
+
config: pW.droppable
|
|
34888
|
+
}), gW = useCachedNode(E, T), _W = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34858
34889
|
H
|
|
34859
|
-
]),
|
|
34890
|
+
]), vW = YW(), yW = useInitialRect(gW, pW.draggable.measure);
|
|
34860
34891
|
useLayoutShiftScrollCompensation({
|
|
34861
34892
|
activeNode: T == null ? null : E.get(T),
|
|
34862
|
-
config:
|
|
34863
|
-
initialRect:
|
|
34864
|
-
measure:
|
|
34893
|
+
config: vW.layoutShiftCompensation,
|
|
34894
|
+
initialRect: yW,
|
|
34895
|
+
measure: pW.draggable.measure
|
|
34865
34896
|
});
|
|
34866
|
-
let
|
|
34897
|
+
let bW = useRect(gW, pW.draggable.measure, yW), xW = useRect(gW ? gW.parentElement : null), SW = (0, import_react.useRef)({
|
|
34867
34898
|
activatorEvent: null,
|
|
34868
34899
|
active: null,
|
|
34869
|
-
activeNode:
|
|
34900
|
+
activeNode: gW,
|
|
34870
34901
|
collisionRect: null,
|
|
34871
34902
|
collisions: null,
|
|
34872
34903
|
droppableRects: Z,
|
|
@@ -34877,45 +34908,45 @@ ${c}
|
|
|
34877
34908
|
over: null,
|
|
34878
34909
|
scrollableAncestors: [],
|
|
34879
34910
|
scrollAdjustedTranslate: null
|
|
34880
|
-
}),
|
|
34881
|
-
measure:
|
|
34882
|
-
}),
|
|
34911
|
+
}), CW = j.getNodeFor((_a3 = SW.current.over) == null ? void 0 : _a3.id), wW = useDragOverlayMeasuring({
|
|
34912
|
+
measure: pW.dragOverlay.measure
|
|
34913
|
+
}), TW = wW.nodeRef.current ?? gW, EW = w ? wW.rect ?? bW : null, DW = !!(wW.nodeRef.current && wW.rect), OW = useRectDelta(DW ? null : bW), kW = useWindowRect(TW ? getWindow(TW) : null), AW = useScrollableAncestors(w ? CW ?? gW : null), jW = useRects(AW), MW = applyModifiers(m, {
|
|
34883
34914
|
transform: {
|
|
34884
|
-
x: O.x -
|
|
34885
|
-
y: O.y -
|
|
34915
|
+
x: O.x - OW.x,
|
|
34916
|
+
y: O.y - OW.y,
|
|
34886
34917
|
scaleX: 1,
|
|
34887
34918
|
scaleY: 1
|
|
34888
34919
|
},
|
|
34889
34920
|
activatorEvent: H,
|
|
34890
34921
|
active: L,
|
|
34891
|
-
activeNodeRect:
|
|
34892
|
-
containerNodeRect:
|
|
34893
|
-
draggingNodeRect:
|
|
34894
|
-
over:
|
|
34895
|
-
overlayNodeRect:
|
|
34896
|
-
scrollableAncestors:
|
|
34897
|
-
scrollableAncestorRects:
|
|
34898
|
-
windowRect:
|
|
34899
|
-
}),
|
|
34900
|
-
|
|
34901
|
-
]),
|
|
34922
|
+
activeNodeRect: bW,
|
|
34923
|
+
containerNodeRect: xW,
|
|
34924
|
+
draggingNodeRect: EW,
|
|
34925
|
+
over: SW.current.over,
|
|
34926
|
+
overlayNodeRect: wW.rect,
|
|
34927
|
+
scrollableAncestors: AW,
|
|
34928
|
+
scrollableAncestorRects: jW,
|
|
34929
|
+
windowRect: kW
|
|
34930
|
+
}), NW = _W ? add(_W, O) : null, PW = useScrollOffsets(AW), FW = useScrollOffsetsDelta(PW), IW = useScrollOffsetsDelta(PW, [
|
|
34931
|
+
bW
|
|
34932
|
+
]), LW = add(MW, FW), RW = EW ? getAdjustedRect(EW, MW) : null, zW = L && RW ? f({
|
|
34902
34933
|
active: L,
|
|
34903
|
-
collisionRect:
|
|
34934
|
+
collisionRect: RW,
|
|
34904
34935
|
droppableRects: Z,
|
|
34905
|
-
droppableContainers:
|
|
34906
|
-
pointerCoordinates:
|
|
34907
|
-
}) : null,
|
|
34936
|
+
droppableContainers: fW,
|
|
34937
|
+
pointerCoordinates: NW
|
|
34938
|
+
}) : null, BW = getFirstCollision(zW, "id"), [VW, HW] = (0, import_react.useState)(null), UW = adjustScale(DW ? MW : add(MW, IW), (VW == null ? void 0 : VW.rect) ?? null, bW), WW = (0, import_react.useRef)(null), GW = (0, import_react.useCallback)((e2, r2) => {
|
|
34908
34939
|
let { sensor: c2, options: l2 } = r2;
|
|
34909
34940
|
if (R.current == null) return;
|
|
34910
34941
|
let u2 = E.get(R.current);
|
|
34911
34942
|
if (!u2) return;
|
|
34912
34943
|
let d2 = e2.nativeEvent;
|
|
34913
|
-
|
|
34944
|
+
WW.current = new c2({
|
|
34914
34945
|
active: R.current,
|
|
34915
34946
|
activeNode: u2,
|
|
34916
34947
|
event: d2,
|
|
34917
34948
|
options: l2,
|
|
34918
|
-
context:
|
|
34949
|
+
context: SW,
|
|
34919
34950
|
onAbort(e3) {
|
|
34920
34951
|
if (!E.get(e3)) return;
|
|
34921
34952
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -34960,7 +34991,7 @@ ${c}
|
|
|
34960
34991
|
}), v({
|
|
34961
34992
|
type: "onDragStart",
|
|
34962
34993
|
event: u3
|
|
34963
|
-
}), B(
|
|
34994
|
+
}), B(WW.current), W(d2);
|
|
34964
34995
|
});
|
|
34965
34996
|
},
|
|
34966
34997
|
onMove(e3) {
|
|
@@ -34974,7 +35005,7 @@ ${c}
|
|
|
34974
35005
|
});
|
|
34975
35006
|
function f2(e3) {
|
|
34976
35007
|
return async function() {
|
|
34977
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
35008
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = SW.current, f3 = null;
|
|
34978
35009
|
if (r3 && u3) {
|
|
34979
35010
|
let { cancelDrop: p2 } = G.current;
|
|
34980
35011
|
f3 = {
|
|
@@ -34988,7 +35019,7 @@ ${c}
|
|
|
34988
35019
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34989
35020
|
_({
|
|
34990
35021
|
type: e3
|
|
34991
|
-
}), S(Status.Uninitialized),
|
|
35022
|
+
}), S(Status.Uninitialized), HW(null), B(null), W(null), WW.current = null;
|
|
34992
35023
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
34993
35024
|
if (f3) {
|
|
34994
35025
|
let e4 = G.current[r4];
|
|
@@ -35002,7 +35033,7 @@ ${c}
|
|
|
35002
35033
|
}
|
|
35003
35034
|
}, [
|
|
35004
35035
|
E
|
|
35005
|
-
]),
|
|
35036
|
+
]), KW = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
35006
35037
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
35007
35038
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
35008
35039
|
let f2 = {
|
|
@@ -35010,26 +35041,26 @@ ${c}
|
|
|
35010
35041
|
};
|
|
35011
35042
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
35012
35043
|
capturedBy: r2.sensor
|
|
35013
|
-
}, R.current = l2,
|
|
35044
|
+
}, R.current = l2, GW(c2, r2));
|
|
35014
35045
|
}, [
|
|
35015
35046
|
E,
|
|
35016
|
-
|
|
35047
|
+
GW
|
|
35017
35048
|
]));
|
|
35018
35049
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
35019
|
-
|
|
35050
|
+
bW && b === Status.Initializing && S(Status.Initialized);
|
|
35020
35051
|
}, [
|
|
35021
|
-
|
|
35052
|
+
bW,
|
|
35022
35053
|
b
|
|
35023
35054
|
]), (0, import_react.useEffect)(() => {
|
|
35024
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
35055
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = SW.current;
|
|
35025
35056
|
if (!r2 || !c2) return;
|
|
35026
35057
|
let d2 = {
|
|
35027
35058
|
active: r2,
|
|
35028
35059
|
activatorEvent: c2,
|
|
35029
35060
|
collisions: l2,
|
|
35030
35061
|
delta: {
|
|
35031
|
-
x:
|
|
35032
|
-
y:
|
|
35062
|
+
x: LW.x,
|
|
35063
|
+
y: LW.y
|
|
35033
35064
|
},
|
|
35034
35065
|
over: u2
|
|
35035
35066
|
};
|
|
@@ -35040,12 +35071,12 @@ ${c}
|
|
|
35040
35071
|
});
|
|
35041
35072
|
});
|
|
35042
35073
|
}, [
|
|
35043
|
-
|
|
35044
|
-
|
|
35074
|
+
LW.x,
|
|
35075
|
+
LW.y
|
|
35045
35076
|
]), (0, import_react.useEffect)(() => {
|
|
35046
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
35077
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = SW.current;
|
|
35047
35078
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
35048
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
35079
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(BW), p2 = f2 && f2.rect.current ? {
|
|
35049
35080
|
id: f2.id,
|
|
35050
35081
|
rect: f2.rect.current,
|
|
35051
35082
|
data: f2.data,
|
|
@@ -35061,127 +35092,127 @@ ${c}
|
|
|
35061
35092
|
over: p2
|
|
35062
35093
|
};
|
|
35063
35094
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
35064
|
-
|
|
35095
|
+
HW(p2), d2 == null ? void 0 : d2(m2), v({
|
|
35065
35096
|
type: "onDragOver",
|
|
35066
35097
|
event: m2
|
|
35067
35098
|
});
|
|
35068
35099
|
});
|
|
35069
35100
|
}, [
|
|
35070
|
-
|
|
35101
|
+
BW
|
|
35071
35102
|
]), useIsomorphicLayoutEffect(() => {
|
|
35072
|
-
|
|
35103
|
+
SW.current = {
|
|
35073
35104
|
activatorEvent: H,
|
|
35074
35105
|
active: L,
|
|
35075
|
-
activeNode:
|
|
35076
|
-
collisionRect:
|
|
35077
|
-
collisions:
|
|
35106
|
+
activeNode: gW,
|
|
35107
|
+
collisionRect: RW,
|
|
35108
|
+
collisions: zW,
|
|
35078
35109
|
droppableRects: Z,
|
|
35079
35110
|
draggableNodes: E,
|
|
35080
|
-
draggingNode:
|
|
35081
|
-
draggingNodeRect:
|
|
35111
|
+
draggingNode: TW,
|
|
35112
|
+
draggingNodeRect: EW,
|
|
35082
35113
|
droppableContainers: j,
|
|
35083
|
-
over:
|
|
35084
|
-
scrollableAncestors:
|
|
35085
|
-
scrollAdjustedTranslate:
|
|
35114
|
+
over: VW,
|
|
35115
|
+
scrollableAncestors: AW,
|
|
35116
|
+
scrollAdjustedTranslate: LW
|
|
35086
35117
|
}, I.current = {
|
|
35087
|
-
initial:
|
|
35088
|
-
translated:
|
|
35118
|
+
initial: EW,
|
|
35119
|
+
translated: RW
|
|
35089
35120
|
};
|
|
35090
35121
|
}, [
|
|
35091
35122
|
L,
|
|
35092
|
-
|
|
35093
|
-
|
|
35094
|
-
|
|
35123
|
+
gW,
|
|
35124
|
+
zW,
|
|
35125
|
+
RW,
|
|
35095
35126
|
E,
|
|
35096
|
-
|
|
35097
|
-
|
|
35127
|
+
TW,
|
|
35128
|
+
EW,
|
|
35098
35129
|
Z,
|
|
35099
35130
|
j,
|
|
35100
|
-
|
|
35101
|
-
|
|
35102
|
-
|
|
35131
|
+
VW,
|
|
35132
|
+
AW,
|
|
35133
|
+
LW
|
|
35103
35134
|
]), useAutoScroller({
|
|
35104
|
-
...
|
|
35135
|
+
...vW,
|
|
35105
35136
|
delta: O,
|
|
35106
|
-
draggingRect:
|
|
35107
|
-
pointerCoordinates:
|
|
35108
|
-
scrollableAncestors:
|
|
35109
|
-
scrollableAncestorRects:
|
|
35137
|
+
draggingRect: RW,
|
|
35138
|
+
pointerCoordinates: NW,
|
|
35139
|
+
scrollableAncestors: AW,
|
|
35140
|
+
scrollableAncestorRects: jW
|
|
35110
35141
|
});
|
|
35111
|
-
let
|
|
35142
|
+
let qW = (0, import_react.useMemo)(() => ({
|
|
35112
35143
|
active: L,
|
|
35113
|
-
activeNode:
|
|
35114
|
-
activeNodeRect:
|
|
35144
|
+
activeNode: gW,
|
|
35145
|
+
activeNodeRect: bW,
|
|
35115
35146
|
activatorEvent: H,
|
|
35116
|
-
collisions:
|
|
35117
|
-
containerNodeRect:
|
|
35118
|
-
dragOverlay:
|
|
35147
|
+
collisions: zW,
|
|
35148
|
+
containerNodeRect: xW,
|
|
35149
|
+
dragOverlay: wW,
|
|
35119
35150
|
draggableNodes: E,
|
|
35120
35151
|
droppableContainers: j,
|
|
35121
35152
|
droppableRects: Z,
|
|
35122
|
-
over:
|
|
35123
|
-
measureDroppableContainers:
|
|
35124
|
-
scrollableAncestors:
|
|
35125
|
-
scrollableAncestorRects:
|
|
35126
|
-
measuringConfiguration:
|
|
35127
|
-
measuringScheduled:
|
|
35128
|
-
windowRect:
|
|
35153
|
+
over: VW,
|
|
35154
|
+
measureDroppableContainers: mW,
|
|
35155
|
+
scrollableAncestors: AW,
|
|
35156
|
+
scrollableAncestorRects: jW,
|
|
35157
|
+
measuringConfiguration: pW,
|
|
35158
|
+
measuringScheduled: hW,
|
|
35159
|
+
windowRect: kW
|
|
35129
35160
|
}), [
|
|
35130
35161
|
L,
|
|
35131
|
-
fW,
|
|
35132
35162
|
gW,
|
|
35133
|
-
H,
|
|
35134
|
-
FW,
|
|
35135
|
-
_W,
|
|
35136
35163
|
bW,
|
|
35164
|
+
H,
|
|
35165
|
+
zW,
|
|
35166
|
+
xW,
|
|
35167
|
+
wW,
|
|
35137
35168
|
E,
|
|
35138
35169
|
j,
|
|
35139
35170
|
Z,
|
|
35140
|
-
|
|
35141
|
-
|
|
35142
|
-
|
|
35143
|
-
|
|
35144
|
-
|
|
35145
|
-
|
|
35146
|
-
|
|
35147
|
-
]),
|
|
35171
|
+
VW,
|
|
35172
|
+
mW,
|
|
35173
|
+
AW,
|
|
35174
|
+
jW,
|
|
35175
|
+
pW,
|
|
35176
|
+
hW,
|
|
35177
|
+
kW
|
|
35178
|
+
]), JW = (0, import_react.useMemo)(() => ({
|
|
35148
35179
|
activatorEvent: H,
|
|
35149
|
-
activators:
|
|
35180
|
+
activators: KW,
|
|
35150
35181
|
active: L,
|
|
35151
|
-
activeNodeRect:
|
|
35182
|
+
activeNodeRect: bW,
|
|
35152
35183
|
ariaDescribedById: {
|
|
35153
35184
|
draggable: q
|
|
35154
35185
|
},
|
|
35155
35186
|
dispatch: _,
|
|
35156
35187
|
draggableNodes: E,
|
|
35157
|
-
over:
|
|
35158
|
-
measureDroppableContainers:
|
|
35188
|
+
over: VW,
|
|
35189
|
+
measureDroppableContainers: mW
|
|
35159
35190
|
}), [
|
|
35160
35191
|
H,
|
|
35161
|
-
|
|
35192
|
+
KW,
|
|
35162
35193
|
L,
|
|
35163
|
-
|
|
35194
|
+
bW,
|
|
35164
35195
|
_,
|
|
35165
35196
|
q,
|
|
35166
35197
|
E,
|
|
35167
|
-
|
|
35168
|
-
|
|
35198
|
+
VW,
|
|
35199
|
+
mW
|
|
35169
35200
|
]);
|
|
35170
35201
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
35171
35202
|
value: y
|
|
35172
35203
|
}, import_react.createElement(InternalContext.Provider, {
|
|
35173
|
-
value:
|
|
35204
|
+
value: JW
|
|
35174
35205
|
}, import_react.createElement(PublicContext.Provider, {
|
|
35175
|
-
value:
|
|
35206
|
+
value: qW
|
|
35176
35207
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
35177
|
-
value:
|
|
35208
|
+
value: UW
|
|
35178
35209
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
35179
35210
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35180
35211
|
})), import_react.createElement(Accessibility, {
|
|
35181
35212
|
...c,
|
|
35182
35213
|
hiddenTextDescribedById: q
|
|
35183
35214
|
}));
|
|
35184
|
-
function
|
|
35215
|
+
function YW() {
|
|
35185
35216
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
35186
35217
|
return typeof l == "object" ? {
|
|
35187
35218
|
...l,
|
|
@@ -35709,7 +35740,7 @@ ${c}
|
|
|
35709
35740
|
updateMeasurementsFor: I,
|
|
35710
35741
|
...m
|
|
35711
35742
|
}
|
|
35712
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
35743
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: fW, listeners: pW, isDragging: Z, over: mW, setActivatorNodeRef: hW, transform: gW } = useDraggable({
|
|
35713
35744
|
id: f,
|
|
35714
35745
|
data: M,
|
|
35715
35746
|
attributes: {
|
|
@@ -35717,60 +35748,60 @@ ${c}
|
|
|
35717
35748
|
...c
|
|
35718
35749
|
},
|
|
35719
35750
|
disabled: O.draggable
|
|
35720
|
-
}),
|
|
35751
|
+
}), _W = useCombinedRefs(B, fW), vW = !!H, yW = vW && !b && isValidIndex(v) && isValidIndex(w), bW = !T && Z, xW = yW ? (bW && yW ? gW : null) ?? (p ?? E)({
|
|
35721
35752
|
rects: S,
|
|
35722
35753
|
activeNodeRect: G,
|
|
35723
35754
|
activeIndex: v,
|
|
35724
35755
|
overIndex: w,
|
|
35725
35756
|
index: j
|
|
35726
|
-
}) : null,
|
|
35757
|
+
}) : null, SW = isValidIndex(v) && isValidIndex(w) ? d({
|
|
35727
35758
|
id: f,
|
|
35728
35759
|
items: g,
|
|
35729
35760
|
activeIndex: v,
|
|
35730
35761
|
overIndex: w
|
|
35731
|
-
}) : j,
|
|
35732
|
-
activeId:
|
|
35762
|
+
}) : j, CW = H == null ? void 0 : H.id, wW = (0, import_react.useRef)({
|
|
35763
|
+
activeId: CW,
|
|
35733
35764
|
items: g,
|
|
35734
|
-
newIndex:
|
|
35765
|
+
newIndex: SW,
|
|
35735
35766
|
containerId: _
|
|
35736
|
-
}),
|
|
35767
|
+
}), TW = g !== wW.current.items, EW = r({
|
|
35737
35768
|
active: H,
|
|
35738
35769
|
containerId: _,
|
|
35739
35770
|
isDragging: Z,
|
|
35740
|
-
isSorting:
|
|
35771
|
+
isSorting: vW,
|
|
35741
35772
|
id: f,
|
|
35742
35773
|
index: j,
|
|
35743
35774
|
items: g,
|
|
35744
|
-
newIndex:
|
|
35745
|
-
previousItems:
|
|
35746
|
-
previousContainerId:
|
|
35775
|
+
newIndex: wW.current.newIndex,
|
|
35776
|
+
previousItems: wW.current.items,
|
|
35777
|
+
previousContainerId: wW.current.containerId,
|
|
35747
35778
|
transition: h,
|
|
35748
|
-
wasDragging:
|
|
35749
|
-
}),
|
|
35750
|
-
disabled: !
|
|
35779
|
+
wasDragging: wW.current.activeId != null
|
|
35780
|
+
}), DW = useDerivedTransform({
|
|
35781
|
+
disabled: !EW,
|
|
35751
35782
|
index: j,
|
|
35752
35783
|
node: R,
|
|
35753
35784
|
rect: L
|
|
35754
35785
|
});
|
|
35755
35786
|
return (0, import_react.useEffect)(() => {
|
|
35756
|
-
|
|
35787
|
+
vW && wW.current.newIndex !== SW && (wW.current.newIndex = SW), _ !== wW.current.containerId && (wW.current.containerId = _), g !== wW.current.items && (wW.current.items = g);
|
|
35757
35788
|
}, [
|
|
35758
|
-
mW,
|
|
35759
35789
|
vW,
|
|
35790
|
+
SW,
|
|
35760
35791
|
_,
|
|
35761
35792
|
g
|
|
35762
35793
|
]), (0, import_react.useEffect)(() => {
|
|
35763
|
-
if (
|
|
35764
|
-
if (
|
|
35765
|
-
|
|
35794
|
+
if (CW === wW.current.activeId) return;
|
|
35795
|
+
if (CW != null && wW.current.activeId == null) {
|
|
35796
|
+
wW.current.activeId = CW;
|
|
35766
35797
|
return;
|
|
35767
35798
|
}
|
|
35768
35799
|
let e2 = setTimeout(() => {
|
|
35769
|
-
|
|
35800
|
+
wW.current.activeId = CW;
|
|
35770
35801
|
}, 50);
|
|
35771
35802
|
return () => clearTimeout(e2);
|
|
35772
35803
|
}, [
|
|
35773
|
-
|
|
35804
|
+
CW
|
|
35774
35805
|
]), {
|
|
35775
35806
|
active: H,
|
|
35776
35807
|
activeIndex: v,
|
|
@@ -35778,25 +35809,25 @@ ${c}
|
|
|
35778
35809
|
data: M,
|
|
35779
35810
|
rect: L,
|
|
35780
35811
|
index: j,
|
|
35781
|
-
newIndex:
|
|
35812
|
+
newIndex: SW,
|
|
35782
35813
|
items: g,
|
|
35783
35814
|
isOver: z,
|
|
35784
|
-
isSorting:
|
|
35815
|
+
isSorting: vW,
|
|
35785
35816
|
isDragging: Z,
|
|
35786
|
-
listeners:
|
|
35817
|
+
listeners: pW,
|
|
35787
35818
|
node: R,
|
|
35788
35819
|
overIndex: w,
|
|
35789
|
-
over:
|
|
35790
|
-
setNodeRef:
|
|
35791
|
-
setActivatorNodeRef:
|
|
35820
|
+
over: mW,
|
|
35821
|
+
setNodeRef: _W,
|
|
35822
|
+
setActivatorNodeRef: hW,
|
|
35792
35823
|
setDroppableNodeRef: B,
|
|
35793
|
-
setDraggableNodeRef:
|
|
35794
|
-
transform:
|
|
35795
|
-
transition:
|
|
35824
|
+
setDraggableNodeRef: fW,
|
|
35825
|
+
transform: DW ?? xW,
|
|
35826
|
+
transition: OW()
|
|
35796
35827
|
};
|
|
35797
|
-
function
|
|
35798
|
-
if (
|
|
35799
|
-
if (!(
|
|
35828
|
+
function OW() {
|
|
35829
|
+
if (DW || TW && wW.current.newIndex === j) return disabledTransition;
|
|
35830
|
+
if (!(bW && !isKeyboardEvent(W) || !h) && (vW || EW)) return CSS$1.Transition.toString({
|
|
35800
35831
|
...h,
|
|
35801
35832
|
property: transitionProperty
|
|
35802
35833
|
});
|
|
@@ -36096,13 +36127,13 @@ ${c}
|
|
|
36096
36127
|
G
|
|
36097
36128
|
]
|
|
36098
36129
|
}), 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];
|
|
36099
|
-
let
|
|
36100
|
-
if (!v && !g) return
|
|
36101
|
-
let
|
|
36102
|
-
r[46] ===
|
|
36130
|
+
let fW = q;
|
|
36131
|
+
if (!v && !g) return fW;
|
|
36132
|
+
let pW;
|
|
36133
|
+
r[46] === fW ? pW = r[47] : (pW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
36103
36134
|
asChild: true,
|
|
36104
|
-
children:
|
|
36105
|
-
}), r[46] =
|
|
36135
|
+
children: fW
|
|
36136
|
+
}), r[46] = fW, r[47] = pW);
|
|
36106
36137
|
let Z;
|
|
36107
36138
|
r[48] === v ? Z = r[49] : (Z = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36108
36139
|
onSelect: v,
|
|
@@ -36113,10 +36144,10 @@ ${c}
|
|
|
36113
36144
|
"Add cell"
|
|
36114
36145
|
]
|
|
36115
36146
|
}), r[48] = v, r[49] = Z);
|
|
36116
|
-
let
|
|
36117
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
36118
|
-
let
|
|
36119
|
-
r[51] === g ?
|
|
36147
|
+
let mW;
|
|
36148
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (mW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = mW) : mW = r[50];
|
|
36149
|
+
let hW;
|
|
36150
|
+
r[51] === g ? hW = r[52] : (hW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36120
36151
|
variant: "danger",
|
|
36121
36152
|
onSelect: g,
|
|
36122
36153
|
children: [
|
|
@@ -36125,22 +36156,22 @@ ${c}
|
|
|
36125
36156
|
}),
|
|
36126
36157
|
"Delete cell"
|
|
36127
36158
|
]
|
|
36128
|
-
}), r[51] = g, r[52] =
|
|
36129
|
-
let
|
|
36130
|
-
r[53] !== Z || r[54] !==
|
|
36159
|
+
}), r[51] = g, r[52] = hW);
|
|
36160
|
+
let gW;
|
|
36161
|
+
r[53] !== Z || r[54] !== hW ? (gW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
36131
36162
|
children: [
|
|
36132
36163
|
Z,
|
|
36133
|
-
|
|
36134
|
-
|
|
36164
|
+
mW,
|
|
36165
|
+
hW
|
|
36135
36166
|
]
|
|
36136
|
-
}), r[53] = Z, r[54] =
|
|
36137
|
-
let
|
|
36138
|
-
return r[56] !==
|
|
36167
|
+
}), r[53] = Z, r[54] = hW, r[55] = gW) : gW = r[55];
|
|
36168
|
+
let _W;
|
|
36169
|
+
return r[56] !== pW || r[57] !== gW ? (_W = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
36139
36170
|
children: [
|
|
36140
|
-
|
|
36141
|
-
|
|
36171
|
+
pW,
|
|
36172
|
+
gW
|
|
36142
36173
|
]
|
|
36143
|
-
}), r[56] =
|
|
36174
|
+
}), r[56] = pW, r[57] = gW, r[58] = _W) : _W = r[58], _W;
|
|
36144
36175
|
}, InsertCellLine = (e) => {
|
|
36145
36176
|
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;
|
|
36146
36177
|
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);
|
|
@@ -36194,10 +36225,10 @@ ${c}
|
|
|
36194
36225
|
...B,
|
|
36195
36226
|
...h
|
|
36196
36227
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
36197
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
36198
|
-
r[25] !== l || r[26] !==
|
|
36199
|
-
let
|
|
36200
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
36228
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", fW = w && !T && "opacity-35", pW = T && "opacity-95 shadow-lg", Z;
|
|
36229
|
+
r[25] !== l || r[26] !== fW || r[27] !== pW || 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, fW, pW, l), r[25] = l, r[26] = fW, r[27] = pW, r[28] = q, r[29] = Z) : Z = r[29];
|
|
36230
|
+
let mW;
|
|
36231
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (mW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
36201
36232
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
36202
36233
|
style: {
|
|
36203
36234
|
transform: `scale(${I})`,
|
|
@@ -36210,16 +36241,17 @@ ${c}
|
|
|
36210
36241
|
}) : (0, import_jsx_runtime.jsx)(Slide, {
|
|
36211
36242
|
cellId: c.id,
|
|
36212
36243
|
status: c.status,
|
|
36213
|
-
output: c.output
|
|
36244
|
+
output: c.output,
|
|
36245
|
+
stale: outputIsStale(c, false)
|
|
36214
36246
|
})
|
|
36215
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
36216
|
-
let
|
|
36217
|
-
r[37] === z ?
|
|
36247
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = mW) : mW = r[36];
|
|
36248
|
+
let hW;
|
|
36249
|
+
r[37] === z ? hW = r[38] : (hW = z && (0, import_jsx_runtime.jsx)("div", {
|
|
36218
36250
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
36219
36251
|
"aria-hidden": true
|
|
36220
|
-
}), r[37] = z, r[38] =
|
|
36221
|
-
let
|
|
36222
|
-
r[39] !== z || r[40] !== R ? (
|
|
36252
|
+
}), r[37] = z, r[38] = hW);
|
|
36253
|
+
let gW;
|
|
36254
|
+
r[39] !== z || r[40] !== R ? (gW = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
36223
36255
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
36224
36256
|
className: "text-xs opacity-80",
|
|
36225
36257
|
children: R.description
|
|
@@ -36231,19 +36263,19 @@ ${c}
|
|
|
36231
36263
|
className: "h-3.5 w-3.5"
|
|
36232
36264
|
})
|
|
36233
36265
|
})
|
|
36234
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
36235
|
-
let
|
|
36236
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !==
|
|
36266
|
+
}), r[39] = z, r[40] = R, r[41] = gW) : gW = r[41];
|
|
36267
|
+
let _W;
|
|
36268
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !== mW || r[47] !== hW || r[48] !== gW ? (_W = (0, import_jsx_runtime.jsxs)("div", {
|
|
36237
36269
|
ref: f,
|
|
36238
36270
|
className: Z,
|
|
36239
36271
|
style: W,
|
|
36240
36272
|
...d,
|
|
36241
36273
|
children: [
|
|
36242
|
-
|
|
36243
|
-
|
|
36244
|
-
|
|
36274
|
+
mW,
|
|
36275
|
+
hW,
|
|
36276
|
+
gW
|
|
36245
36277
|
]
|
|
36246
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] =
|
|
36278
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] = mW, r[47] = hW, r[48] = gW, r[49] = _W) : _W = r[49], _W;
|
|
36247
36279
|
}, MiniCodePreview = (e) => {
|
|
36248
36280
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
36249
36281
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -36283,7 +36315,7 @@ ${c}
|
|
|
36283
36315
|
function _temp2$2(e) {
|
|
36284
36316
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
36285
36317
|
}
|
|
36286
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36318
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-x6IwgqPf.js"));
|
|
36287
36319
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36288
36320
|
var _a3;
|
|
36289
36321
|
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), [
|
|
@@ -36661,7 +36693,7 @@ ${c}
|
|
|
36661
36693
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36662
36694
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36663
36695
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36664
|
-
let H, W, G, q,
|
|
36696
|
+
let H, W, G, q, fW, Z, mW, hW, gW, _W;
|
|
36665
36697
|
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) {
|
|
36666
36698
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36667
36699
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36707,11 +36739,11 @@ ${c}
|
|
|
36707
36739
|
})
|
|
36708
36740
|
})
|
|
36709
36741
|
]
|
|
36710
|
-
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area",
|
|
36711
|
-
let
|
|
36712
|
-
r[40] !== M || r[41] !==
|
|
36742
|
+
}), 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", fW = c, Z = R, mW = 0;
|
|
36743
|
+
let pW = y && "marimo-output-stale", vW2 = L ? "p-5" : "p-3";
|
|
36744
|
+
r[40] !== M || r[41] !== pW || r[42] !== vW2 ? (hW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", pW, vW2, M), r[40] = M, r[41] = pW, r[42] = vW2, r[43] = hW) : hW = r[43], r[44] === d ? gW = r[45] : (gW = d ? {
|
|
36713
36745
|
maxHeight: "none"
|
|
36714
|
-
} : void 0, r[44] = d, r[45] =
|
|
36746
|
+
} : void 0, r[44] = d, r[45] = gW), _W = e2.map((e3, r2) => {
|
|
36715
36747
|
if (e3.channel === "pdb") return null;
|
|
36716
36748
|
if (e3.channel === "stdin") {
|
|
36717
36749
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -36740,36 +36772,36 @@ ${c}
|
|
|
36740
36772
|
wrapText: l
|
|
36741
36773
|
})
|
|
36742
36774
|
}, r2);
|
|
36743
|
-
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] =
|
|
36744
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
36745
|
-
let
|
|
36746
|
-
r[46] !== T || r[47] !== S ? (
|
|
36775
|
+
}), 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] = fW, r[25] = Z, r[26] = mW, r[27] = hW, r[28] = gW, r[29] = _W;
|
|
36776
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], fW = r[24], Z = r[25], mW = r[26], hW = r[27], gW = r[28], _W = r[29];
|
|
36777
|
+
let vW;
|
|
36778
|
+
r[46] !== T || r[47] !== S ? (vW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36747
36779
|
value: S,
|
|
36748
36780
|
cellId: T,
|
|
36749
36781
|
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"
|
|
36750
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
36751
|
-
let
|
|
36752
|
-
r[49] !==
|
|
36782
|
+
}), r[46] = T, r[47] = S, r[48] = vW) : vW = r[48];
|
|
36783
|
+
let yW;
|
|
36784
|
+
r[49] !== vW || r[50] !== G || r[51] !== q || r[52] !== fW || r[53] !== Z || r[54] !== mW || r[55] !== hW || r[56] !== gW || r[57] !== _W ? (yW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36753
36785
|
title: G,
|
|
36754
36786
|
"data-testid": q,
|
|
36755
|
-
ref:
|
|
36787
|
+
ref: fW,
|
|
36756
36788
|
...Z,
|
|
36757
|
-
tabIndex:
|
|
36758
|
-
className:
|
|
36759
|
-
style:
|
|
36789
|
+
tabIndex: mW,
|
|
36790
|
+
className: hW,
|
|
36791
|
+
style: gW,
|
|
36760
36792
|
children: [
|
|
36761
|
-
|
|
36762
|
-
|
|
36793
|
+
_W,
|
|
36794
|
+
vW
|
|
36763
36795
|
]
|
|
36764
|
-
}), r[49] =
|
|
36765
|
-
let
|
|
36766
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
36796
|
+
}), r[49] = vW, r[50] = G, r[51] = q, r[52] = fW, r[53] = Z, r[54] = mW, r[55] = hW, r[56] = gW, r[57] = _W, r[58] = yW) : yW = r[58];
|
|
36797
|
+
let bW;
|
|
36798
|
+
return r[59] !== H || r[60] !== W || r[61] !== yW ? (bW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36767
36799
|
className: H,
|
|
36768
36800
|
children: [
|
|
36769
36801
|
W,
|
|
36770
|
-
|
|
36802
|
+
yW
|
|
36771
36803
|
]
|
|
36772
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
36804
|
+
}), r[59] = H, r[60] = W, r[61] = yW, r[62] = bW) : bW = r[62], bW;
|
|
36773
36805
|
}, StdInput = (e) => {
|
|
36774
36806
|
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;
|
|
36775
36807
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -37253,23 +37285,23 @@ ${c}
|
|
|
37253
37285
|
if ((h || _ || m || W) && !G) return null;
|
|
37254
37286
|
let q;
|
|
37255
37287
|
r[45] !== d || r[46] !== T ? (q = cellDomProps(d, T), r[45] = d, r[46] = T, r[47] = q) : q = r[47];
|
|
37256
|
-
let
|
|
37257
|
-
r[48] !== d || r[49] !== R || r[50] !== c || r[51] !== I || r[52] !==
|
|
37258
|
-
allowExpand:
|
|
37288
|
+
let fW = w === "edit", pW;
|
|
37289
|
+
r[48] !== d || r[49] !== R || r[50] !== c || r[51] !== I || r[52] !== fW ? (pW = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37290
|
+
allowExpand: fW,
|
|
37259
37291
|
output: c,
|
|
37260
37292
|
className: CSSClasses.outputArea,
|
|
37261
37293
|
cellId: d,
|
|
37262
37294
|
stale: I,
|
|
37263
37295
|
loading: R
|
|
37264
|
-
}), r[48] = d, r[49] = R, r[50] = c, r[51] = I, r[52] =
|
|
37296
|
+
}), r[48] = d, r[49] = R, r[50] = c, r[51] = I, r[52] = fW, r[53] = pW) : pW = r[53];
|
|
37265
37297
|
let Z;
|
|
37266
|
-
return r[54] !== H || r[55] !== q || r[56] !==
|
|
37298
|
+
return r[54] !== H || r[55] !== q || r[56] !== pW ? (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
37267
37299
|
tabIndex: -1,
|
|
37268
37300
|
ref: j,
|
|
37269
37301
|
className: H,
|
|
37270
37302
|
...q,
|
|
37271
|
-
children:
|
|
37272
|
-
}), r[54] = H, r[55] = q, r[56] =
|
|
37303
|
+
children: pW
|
|
37304
|
+
}), r[54] = H, r[55] = q, r[56] = pW, r[57] = Z) : Z = r[57], Z;
|
|
37273
37305
|
});
|
|
37274
37306
|
VerticalCell.displayName = "VerticalCell";
|
|
37275
37307
|
const VerticalLayoutPlugin = {
|