@marimo-team/islands 0.23.15-dev64 → 0.23.15-dev65
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/assets/__vite-browser-external-DltVXDv7.js +1 -0
- package/dist/assets/{worker-B3XPCb6y.js → worker-CDEKsBgX.js} +2 -2
- package/dist/{code-visibility-YsJOxF8J.js → code-visibility-CSV-51WI.js} +1 -1
- package/dist/main.js +1034 -1018
- package/dist/{reveal-component-BxgX1LrU.js → reveal-component-qjUSFCwF.js} +1 -1
- package/package.json +1 -1
- package/src/core/islands/__tests__/bootstrap.test.ts +61 -0
- package/src/core/islands/__tests__/bridge.test.ts +33 -2
- package/src/core/islands/bootstrap.ts +20 -2
- package/src/core/islands/bridge.ts +30 -23
- package/src/core/islands/components/__tests__/web-components.test.tsx +34 -0
- package/src/core/islands/components/output-wrapper.tsx +4 -1
- package/src/core/islands/state.ts +9 -0
- package/src/core/islands/worker/worker.tsx +15 -7
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +7 -1
- package/src/plugins/impl/anywidget/__tests__/AnyWidgetPlugin.test.tsx +26 -1
- package/dist/assets/__vite-browser-external-CjNAy01L.js +0 -1
package/dist/main.js
CHANGED
|
@@ -26,7 +26,7 @@ import { $ as notebookOutline, $t as requestClientAtom, A as ChevronDownIcon, Bt
|
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-B9WoXK1R.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-B96tMAst.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-CnaxwDqy.js";
|
|
29
|
-
import { $ as ContextAwarePanelItem, $t as EmotionCacheProvider, A as prettifyRowColumnCount, At as loadTableData, B as useSelectList, Bt as dateToLocalISOTime, C as Filenames, Ct as ColumnChartContext, D as EmptyState, Dt as usePrevious$1, E as ColumnPreviewContainer, Et as useIntersectionObserver, F as ContextMenuContent, Ft as getMimeValues, G as ComboboxItem, Gt as ChartErrorState, H as DatePicker, Ht as TabsContent, I as ContextMenuItem, It as isNullishFilter, J as CommandInput, Jt as LazyVegaEmbed, K as Command, Kt as ChartInfoState, L as ContextMenuSeparator, Lt as Maps, M as getColumnCountForDisplay, Mt as SELECT_COLUMN_ID, N as getUserColumnVisibilityCounts, Nt as TOO_MANY_ROWS, O as ErrorState, Ot as getPageIndexForRow, P as ContextMenu, Pt as toFieldTypes, Q as smartMatch, Qt as HtmlOutput, R as ContextMenuTrigger, Rt as dateToLocalISODate, S as Progress, St as renderCellValue, T as ColumnName, Tt as DelayMount, U as DateRangePicker, Ut as TabsList, V as CompactChipRow, Vt as Tabs, W as Combobox, Wt as TabsTrigger, X as CommandList, Xt as RenderTextWithLinks, Y as CommandItem, Yt as useOverflowDetection, Z as CommandSeparator, Zt as Kbd, _ as InstallPackageButton, _n as ArrowDownWideNarrow, _t as TableHeader, an as GripHorizontal, at as SlotNames, b as downloadByURL, bt as generateColumns, d as RadioGroup, dn as Code, dt as Fill, en as hasFunctionProperty, et as PANEL_TYPES, f as RadioGroupItem, fn as ChevronsUpDown, ft as Provider$1, g as DataTable, gn as ChevronLeft, gt as TableHead, h as OutputRenderer, hn as ChevronsDownUp, ht as TableCell, in as TextWrap, it as isCellAwareAtom, j as prettifyRowCount, jt as INDEX_COLUMN_NAME, k as LoadingState, kt as loadTableAndRawData, l as Slide, ln as Ellipsis, m as OutputArea, mn as ChevronsLeft, mt as TableBody, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$588937bcd60ade55, nt as contextAwarePanelOwner, on as Funnel, ot as slotsController, p as JsonOutput, pn as ChevronsRight, pt as Table, q as CommandEmpty, qt as ChartLoadingState, r as showCodeInRunModeAtom, rn as $fae977aafc393c5c$export$6b862160d295c8e, rt as contextAwarePanelType, s as SLIDE_TYPE_OPTIONS_BY_VALUE, sn as EyeOff, st as Toggle, t as useNotebookCodeAvailable, tn as isRecord, tt as contextAwarePanelOpen, u as Switch, un as Download, v as ADD_PRINTING_CLASS, vt as TableRow, w as downloadSizeLimitAtom, wt as ColumnChartSpecModel, x as downloadHTMLAsImage, xt as inferFieldTypes, y as downloadBlob, yt as NAMELESS_COLUMN_PREFIX, z as useInternalStateWithSync, zt as dateToLocalISODateTime, __tla as __tla_2 } from "./code-visibility-
|
|
29
|
+
import { $ as ContextAwarePanelItem, $t as EmotionCacheProvider, A as prettifyRowColumnCount, At as loadTableData, B as useSelectList, Bt as dateToLocalISOTime, C as Filenames, Ct as ColumnChartContext, D as EmptyState, Dt as usePrevious$1, E as ColumnPreviewContainer, Et as useIntersectionObserver, F as ContextMenuContent, Ft as getMimeValues, G as ComboboxItem, Gt as ChartErrorState, H as DatePicker, Ht as TabsContent, I as ContextMenuItem, It as isNullishFilter, J as CommandInput, Jt as LazyVegaEmbed, K as Command, Kt as ChartInfoState, L as ContextMenuSeparator, Lt as Maps, M as getColumnCountForDisplay, Mt as SELECT_COLUMN_ID, N as getUserColumnVisibilityCounts, Nt as TOO_MANY_ROWS, O as ErrorState, Ot as getPageIndexForRow, P as ContextMenu, Pt as toFieldTypes, Q as smartMatch, Qt as HtmlOutput, R as ContextMenuTrigger, Rt as dateToLocalISODate, S as Progress, St as renderCellValue, T as ColumnName, Tt as DelayMount, U as DateRangePicker, Ut as TabsList, V as CompactChipRow, Vt as Tabs, W as Combobox, Wt as TabsTrigger, X as CommandList, Xt as RenderTextWithLinks, Y as CommandItem, Yt as useOverflowDetection, Z as CommandSeparator, Zt as Kbd, _ as InstallPackageButton, _n as ArrowDownWideNarrow, _t as TableHeader, an as GripHorizontal, at as SlotNames, b as downloadByURL, bt as generateColumns, d as RadioGroup, dn as Code, dt as Fill, en as hasFunctionProperty, et as PANEL_TYPES, f as RadioGroupItem, fn as ChevronsUpDown, ft as Provider$1, g as DataTable, gn as ChevronLeft, gt as TableHead, h as OutputRenderer, hn as ChevronsDownUp, ht as TableCell, in as TextWrap, it as isCellAwareAtom, j as prettifyRowCount, jt as INDEX_COLUMN_NAME, k as LoadingState, kt as loadTableAndRawData, l as Slide, ln as Ellipsis, m as OutputArea, mn as ChevronsLeft, mt as TableBody, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$588937bcd60ade55, nt as contextAwarePanelOwner, on as Funnel, ot as slotsController, p as JsonOutput, pn as ChevronsRight, pt as Table, q as CommandEmpty, qt as ChartLoadingState, r as showCodeInRunModeAtom, rn as $fae977aafc393c5c$export$6b862160d295c8e, rt as contextAwarePanelType, s as SLIDE_TYPE_OPTIONS_BY_VALUE, sn as EyeOff, st as Toggle, t as useNotebookCodeAvailable, tn as isRecord, tt as contextAwarePanelOpen, u as Switch, un as Download, v as ADD_PRINTING_CLASS, vt as TableRow, w as downloadSizeLimitAtom, wt as ColumnChartSpecModel, x as downloadHTMLAsImage, xt as inferFieldTypes, y as downloadBlob, yt as NAMELESS_COLUMN_PREFIX, z as useInternalStateWithSync, zt as dateToLocalISODateTime, __tla as __tla_2 } from "./code-visibility-CSV-51WI.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-DqPxHgAN.js";
|
|
31
31
|
import { t as Check } from "./check-Cs-KV5XY.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-BYAhZnQi.js";
|
|
@@ -7508,21 +7508,21 @@ let __tla = Promise.all([
|
|
|
7508
7508
|
}), H = U(), W = U(), G = C(0), q = C(null), Z = C({
|
|
7509
7509
|
column: 0,
|
|
7510
7510
|
row: 0
|
|
7511
|
-
}),
|
|
7512
|
-
Y(x(b, $(
|
|
7513
|
-
D(
|
|
7514
|
-
}), Y(x(ut(b,
|
|
7515
|
-
D(
|
|
7511
|
+
}), YW = U(), XW = U(), ZW = C(false), QW = C(0), $W = C(true), eG = C(false), tG = C(false);
|
|
7512
|
+
Y(x(b, $(QW), P(([e2, r2]) => !!r2)), () => {
|
|
7513
|
+
D($W, false);
|
|
7514
|
+
}), Y(x(ut(b, $W, B, z, QW, eG), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7515
|
+
D(eG, true), Ue(1, () => {
|
|
7516
7516
|
D(H, e2);
|
|
7517
7517
|
}), Et(x(h), () => {
|
|
7518
7518
|
D(r, [
|
|
7519
7519
|
0,
|
|
7520
7520
|
0
|
|
7521
|
-
]), D(
|
|
7521
|
+
]), D($W, true);
|
|
7522
7522
|
});
|
|
7523
|
-
}), F(x(
|
|
7524
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(Z, e2.gap), e2.scrollTop > 0 && (D(
|
|
7525
|
-
D(
|
|
7523
|
+
}), F(x(XW, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(XW), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7524
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(Z, e2.gap), e2.scrollTop > 0 && (D(ZW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7525
|
+
D(ZW, false);
|
|
7526
7526
|
}), D(m, {
|
|
7527
7527
|
top: e2.scrollTop
|
|
7528
7528
|
})));
|
|
@@ -7531,7 +7531,7 @@ let __tla = Promise.all([
|
|
|
7531
7531
|
item: r2,
|
|
7532
7532
|
scrollTop: l2,
|
|
7533
7533
|
viewport: e2
|
|
7534
|
-
}))),
|
|
7534
|
+
}))), YW), F(x(ut(V(I), l, V(Z, Or), V(B, xe), V(z, xe), V(q), V(L), V(ZW), V($W), V(QW)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7535
7535
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7536
7536
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7537
7537
|
if (y2 === 0) {
|
|
@@ -7557,16 +7557,16 @@ let __tla = Promise.all([
|
|
|
7557
7557
|
u2
|
|
7558
7558
|
];
|
|
7559
7559
|
}), J(ce)), r);
|
|
7560
|
-
let
|
|
7561
|
-
F(x(h, $(
|
|
7562
|
-
let
|
|
7560
|
+
let nG = C(false);
|
|
7561
|
+
F(x(h, $(nG), k(([e2, r2]) => r2 || e2 !== 0)), nG);
|
|
7562
|
+
let rG = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(nG), P(([[e2, r2], c2]) => {
|
|
7563
7563
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7564
7564
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7565
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7565
|
+
}), k(([[, e2]]) => e2 - 1), J())), iG = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), aG = bt(x(V(R), $(ZW), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7566
7566
|
endIndex: e2[e2.length - 1].index,
|
|
7567
7567
|
startIndex: e2[0].index
|
|
7568
7568
|
})), J(An), Gt(0)));
|
|
7569
|
-
F(
|
|
7569
|
+
F(aG, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, Z), k(([e2, r2, c2, l2, u2]) => {
|
|
7570
7570
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7571
7571
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7572
7572
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7575,7 +7575,7 @@ let __tla = Promise.all([
|
|
|
7575
7575
|
top: g2
|
|
7576
7576
|
};
|
|
7577
7577
|
})), m);
|
|
7578
|
-
let
|
|
7578
|
+
let oG = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7579
7579
|
return F(x(j, k((e2) => ({
|
|
7580
7580
|
height: e2.visibleHeight,
|
|
7581
7581
|
width: e2.visibleWidth
|
|
@@ -7590,7 +7590,7 @@ let __tla = Promise.all([
|
|
|
7590
7590
|
initialItemCount: L,
|
|
7591
7591
|
itemDimensions: B,
|
|
7592
7592
|
overscan: c,
|
|
7593
|
-
restoreStateFrom:
|
|
7593
|
+
restoreStateFrom: XW,
|
|
7594
7594
|
scrollBy: f,
|
|
7595
7595
|
scrollContainerState: p,
|
|
7596
7596
|
scrollHeight: W,
|
|
@@ -7606,16 +7606,16 @@ let __tla = Promise.all([
|
|
|
7606
7606
|
windowViewportRect: j,
|
|
7607
7607
|
...y,
|
|
7608
7608
|
gridState: R,
|
|
7609
|
-
horizontalDirection:
|
|
7610
|
-
initialTopMostItemIndex:
|
|
7611
|
-
totalListHeight:
|
|
7609
|
+
horizontalDirection: tG,
|
|
7610
|
+
initialTopMostItemIndex: QW,
|
|
7611
|
+
totalListHeight: oG,
|
|
7612
7612
|
...v,
|
|
7613
|
-
endReached:
|
|
7613
|
+
endReached: rG,
|
|
7614
7614
|
propsReady: S,
|
|
7615
|
-
rangeChanged:
|
|
7616
|
-
startReached:
|
|
7617
|
-
stateChanged:
|
|
7618
|
-
stateRestoreInProgress:
|
|
7615
|
+
rangeChanged: aG,
|
|
7616
|
+
startReached: iG,
|
|
7617
|
+
stateChanged: YW,
|
|
7618
|
+
stateRestoreInProgress: ZW,
|
|
7619
7619
|
...M
|
|
7620
7620
|
};
|
|
7621
7621
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7893,22 +7893,22 @@ let __tla = Promise.all([
|
|
|
7893
7893
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7894
7894
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7895
7895
|
}, r[8] = p, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7896
|
-
let Z = q,
|
|
7896
|
+
let Z = q, YW;
|
|
7897
7897
|
if (r[13] !== G.bulkActions) {
|
|
7898
|
-
if (
|
|
7898
|
+
if (YW = G.bulkActions.map(_temp$27), YW.length > 0) {
|
|
7899
7899
|
let e2;
|
|
7900
7900
|
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7901
7901
|
"data-slot": "select-separator"
|
|
7902
|
-
}, "_bulk_separator"), r[15] = e2) : e2 = r[15],
|
|
7902
|
+
}, "_bulk_separator"), r[15] = e2) : e2 = r[15], YW.push(e2);
|
|
7903
7903
|
}
|
|
7904
|
-
r[13] = G.bulkActions, r[14] =
|
|
7905
|
-
} else
|
|
7906
|
-
let
|
|
7907
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7904
|
+
r[13] = G.bulkActions, r[14] = YW;
|
|
7905
|
+
} else YW = r[14];
|
|
7906
|
+
let XW;
|
|
7907
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (XW = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7908
7908
|
"data-slot": "select-separator"
|
|
7909
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7910
|
-
let
|
|
7911
|
-
r[19] !==
|
|
7909
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = XW) : XW = r[18];
|
|
7910
|
+
let ZW = XW, QW;
|
|
7911
|
+
r[19] !== YW || r[20] !== G || r[21] !== ZW || r[22] !== w || r[23] !== B || r[24] !== H ? (QW = () => {
|
|
7912
7912
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7913
7913
|
"data-slot": "select-list",
|
|
7914
7914
|
style: {
|
|
@@ -7920,8 +7920,8 @@ let __tla = Promise.all([
|
|
|
7920
7920
|
let r2 = G.visibleOptions[e3];
|
|
7921
7921
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7922
7922
|
children: [
|
|
7923
|
-
e3 === 0 &&
|
|
7924
|
-
|
|
7923
|
+
e3 === 0 && YW,
|
|
7924
|
+
ZW(e3),
|
|
7925
7925
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7926
7926
|
option: r2,
|
|
7927
7927
|
checked: G.isChecked(r2.value),
|
|
@@ -7932,7 +7932,7 @@ let __tla = Promise.all([
|
|
|
7932
7932
|
}
|
|
7933
7933
|
});
|
|
7934
7934
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7935
|
-
let c2 =
|
|
7935
|
+
let c2 = ZW(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7936
7936
|
option: e3,
|
|
7937
7937
|
checked: G.isChecked(e3.value),
|
|
7938
7938
|
renderOption: w
|
|
@@ -7946,13 +7946,13 @@ let __tla = Promise.all([
|
|
|
7946
7946
|
});
|
|
7947
7947
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7948
7948
|
children: [
|
|
7949
|
-
|
|
7949
|
+
YW,
|
|
7950
7950
|
e2
|
|
7951
7951
|
]
|
|
7952
7952
|
});
|
|
7953
|
-
}, r[19] =
|
|
7954
|
-
let
|
|
7955
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7953
|
+
}, r[19] = YW, r[20] = G, r[21] = ZW, r[22] = w, r[23] = B, r[24] = H, r[25] = QW) : QW = r[25];
|
|
7954
|
+
let $W = QW, eG;
|
|
7955
|
+
r[26] !== G.labelOf || r[27] !== I ? (eG = (e2) => {
|
|
7956
7956
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7957
7957
|
e2
|
|
7958
7958
|
];
|
|
@@ -7963,46 +7963,46 @@ let __tla = Promise.all([
|
|
|
7963
7963
|
items: r2.map(G.labelOf),
|
|
7964
7964
|
max: 3
|
|
7965
7965
|
});
|
|
7966
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7967
|
-
let
|
|
7968
|
-
r[29] === G ?
|
|
7969
|
-
let
|
|
7970
|
-
r[31] !== b || r[32] !== R ? (
|
|
7966
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = eG) : eG = r[28];
|
|
7967
|
+
let tG = eG, nG = e["data-testid"], rG;
|
|
7968
|
+
r[29] === G ? rG = r[30] : (rG = (e2) => G.labelOf(e2), r[29] = G, r[30] = rG);
|
|
7969
|
+
let iG = M ? tG : void 0, aG;
|
|
7970
|
+
r[31] !== b || r[32] !== R ? (aG = cn({
|
|
7971
7971
|
"w-full": R
|
|
7972
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7973
|
-
let
|
|
7974
|
-
r[34] === z ?
|
|
7975
|
-
let
|
|
7976
|
-
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] !==
|
|
7972
|
+
}, b), r[31] = b, r[32] = R, r[33] = aG) : aG = r[33];
|
|
7973
|
+
let oG = G.searchQuery, sG = G.setSearchQuery, cG = G.open, lG = G.setOpen, uG;
|
|
7974
|
+
r[34] === z ? uG = r[35] : (uG = renderSlot(z), r[34] = z, r[35] = uG);
|
|
7975
|
+
let dG;
|
|
7976
|
+
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] !== nG || r[44] !== rG || r[45] !== iG || r[46] !== aG || r[47] !== uG ? (dG = {
|
|
7977
7977
|
"data-slot": "select-root",
|
|
7978
|
-
"data-testid":
|
|
7979
|
-
displayValue:
|
|
7980
|
-
renderValue:
|
|
7978
|
+
"data-testid": nG,
|
|
7979
|
+
displayValue: rG,
|
|
7980
|
+
renderValue: iG,
|
|
7981
7981
|
placeholder: I,
|
|
7982
|
-
className:
|
|
7982
|
+
className: aG,
|
|
7983
7983
|
shouldFilter: false,
|
|
7984
|
-
search:
|
|
7985
|
-
onSearchChange:
|
|
7986
|
-
open:
|
|
7987
|
-
onOpenChange:
|
|
7988
|
-
emptyState:
|
|
7984
|
+
search: oG,
|
|
7985
|
+
onSearchChange: sG,
|
|
7986
|
+
open: cG,
|
|
7987
|
+
onOpenChange: lG,
|
|
7988
|
+
emptyState: uG,
|
|
7989
7989
|
disabled: L,
|
|
7990
7990
|
id: S
|
|
7991
|
-
}, 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] =
|
|
7992
|
-
let
|
|
7993
|
-
return r[49] !==
|
|
7994
|
-
...
|
|
7991
|
+
}, 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] = nG, r[44] = rG, r[45] = iG, r[46] = aG, r[47] = uG, r[48] = dG) : dG = r[48];
|
|
7992
|
+
let fG = dG, pG;
|
|
7993
|
+
return r[49] !== fG || r[50] !== Z || r[51] !== d || r[52] !== $W || r[53] !== l ? (pG = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7994
|
+
...fG,
|
|
7995
7995
|
multiple: true,
|
|
7996
7996
|
value: l,
|
|
7997
7997
|
onValueChange: Z,
|
|
7998
|
-
children:
|
|
7998
|
+
children: $W()
|
|
7999
7999
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
8000
|
-
...
|
|
8000
|
+
...fG,
|
|
8001
8001
|
multiple: false,
|
|
8002
8002
|
value: l,
|
|
8003
8003
|
onValueChange: Z,
|
|
8004
|
-
children:
|
|
8005
|
-
}), r[49] =
|
|
8004
|
+
children: $W()
|
|
8005
|
+
}), r[49] = fG, r[50] = Z, r[51] = d, r[52] = $W, r[53] = l, r[54] = pG) : pG = r[54], pG;
|
|
8006
8006
|
}
|
|
8007
8007
|
function _temp$27(e) {
|
|
8008
8008
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -8480,6 +8480,10 @@ let __tla = Promise.all([
|
|
|
8480
8480
|
}
|
|
8481
8481
|
});
|
|
8482
8482
|
}
|
|
8483
|
+
const islandsInitializedAtom = atom(false), islandsPendingInitialRunsAtom = atom(/* @__PURE__ */ new Set()), islandsHydratedAtom = atom((e) => {
|
|
8484
|
+
var _a5;
|
|
8485
|
+
return ((_a5 = e(islandsPendingInitialRunsAtom)) == null ? void 0 : _a5.size) === 0;
|
|
8486
|
+
}), userTriedToInteractWithIslandsAtom = atom(false), shouldShowIslandsWarningIndicatorAtom = atom((e) => e(userTriedToInteractWithIslandsAtom) && e(islandsInitializedAtom) === false);
|
|
8483
8487
|
function createPlugin(e, r = {}) {
|
|
8484
8488
|
return {
|
|
8485
8489
|
withData(c) {
|
|
@@ -8518,8 +8522,9 @@ let __tla = Promise.all([
|
|
|
8518
8522
|
...e
|
|
8519
8523
|
}));
|
|
8520
8524
|
var AnyWidgetSlot = (e) => {
|
|
8521
|
-
let r = (0, import_compiler_runtime$82.c)(
|
|
8522
|
-
r[0]
|
|
8525
|
+
let r = (0, import_compiler_runtime$82.c)(9), { modelId: c } = e.data, l = (0, import_react.useRef)(null), [u, d] = (0, import_react.useState)(), f = useAtomValue(islandsHydratedAtom), p, m;
|
|
8526
|
+
r[0] !== f || r[1] !== c ? (p = () => {
|
|
8527
|
+
if (!f) return;
|
|
8523
8528
|
let e2 = l.current;
|
|
8524
8529
|
if (!e2) return;
|
|
8525
8530
|
let r2 = new AbortController();
|
|
@@ -8530,24 +8535,25 @@ let __tla = Promise.all([
|
|
|
8530
8535
|
}).catch((e3) => {
|
|
8531
8536
|
r2.signal.aborted || d(e3 instanceof Error ? e3 : Error(String(e3)));
|
|
8532
8537
|
}), () => r2.abort();
|
|
8533
|
-
},
|
|
8538
|
+
}, m = [
|
|
8539
|
+
f,
|
|
8534
8540
|
c
|
|
8535
|
-
], r[0] =
|
|
8536
|
-
let m;
|
|
8537
|
-
r[3] === u ? m = r[4] : (m = u ? (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
8538
|
-
error: u
|
|
8539
|
-
}) : null, r[3] = u, r[4] = m);
|
|
8541
|
+
], r[0] = f, r[1] = c, r[2] = p, r[3] = m) : (p = r[2], m = r[3]), (0, import_react.useEffect)(p, m);
|
|
8540
8542
|
let h;
|
|
8541
|
-
r[
|
|
8542
|
-
|
|
8543
|
-
}), r[
|
|
8543
|
+
r[4] === u ? h = r[5] : (h = u ? (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
8544
|
+
error: u
|
|
8545
|
+
}) : null, r[4] = u, r[5] = h);
|
|
8544
8546
|
let g;
|
|
8545
|
-
|
|
8547
|
+
r[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = (0, import_jsx_runtime.jsx)("div", {
|
|
8548
|
+
ref: l
|
|
8549
|
+
}), r[6] = g) : g = r[6];
|
|
8550
|
+
let _;
|
|
8551
|
+
return r[7] === h ? _ = r[8] : (_ = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
8546
8552
|
children: [
|
|
8547
|
-
|
|
8548
|
-
|
|
8553
|
+
h,
|
|
8554
|
+
g
|
|
8549
8555
|
]
|
|
8550
|
-
}), r[
|
|
8556
|
+
}), r[7] = h, r[8] = _), _;
|
|
8551
8557
|
}, import_compiler_runtime$81 = require_compiler_runtime();
|
|
8552
8558
|
const KeyboardHotkeys = (e) => {
|
|
8553
8559
|
let r = (0, import_compiler_runtime$81.c)(10), { shortcut: c, className: l } = e;
|
|
@@ -10184,10 +10190,10 @@ let __tla = Promise.all([
|
|
|
10184
10190
|
}, H = () => {
|
|
10185
10191
|
for (let e2 of p.unMount) {
|
|
10186
10192
|
let r2 = get(l, e2);
|
|
10187
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
10193
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && aG(e2);
|
|
10188
10194
|
}
|
|
10189
10195
|
p.unMount = /* @__PURE__ */ new Set();
|
|
10190
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
10196
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(eG(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
10191
10197
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
10192
10198
|
[e2]: r2
|
|
10193
10199
|
} : r2
|
|
@@ -10204,13 +10210,13 @@ let __tla = Promise.all([
|
|
|
10204
10210
|
}
|
|
10205
10211
|
})));
|
|
10206
10212
|
}
|
|
10207
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
10208
|
-
},
|
|
10213
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && $W(e2);
|
|
10214
|
+
}, YW = (e2, r2, c2) => {
|
|
10209
10215
|
for (let u2 in r2) {
|
|
10210
10216
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
10211
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
10217
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? YW(f2, d2, c2) : Z(f2, d2, c2);
|
|
10212
10218
|
}
|
|
10213
|
-
},
|
|
10219
|
+
}, XW = (e2, r2, m2 = {}) => {
|
|
10214
10220
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
10215
10221
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
10216
10222
|
name: e2,
|
|
@@ -10221,7 +10227,7 @@ let __tla = Promise.all([
|
|
|
10221
10227
|
name: e2,
|
|
10222
10228
|
dirtyFields: getDirtyFields(u, d),
|
|
10223
10229
|
isDirty: W(e2, y2)
|
|
10224
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
10230
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? YW(e2, y2, m2) : Z(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
10225
10231
|
...c
|
|
10226
10232
|
}), _.values.next({
|
|
10227
10233
|
name: f.mount ? e2 : void 0,
|
|
@@ -10229,7 +10235,7 @@ let __tla = Promise.all([
|
|
|
10229
10235
|
...d
|
|
10230
10236
|
}
|
|
10231
10237
|
});
|
|
10232
|
-
},
|
|
10238
|
+
}, ZW = async (e2) => {
|
|
10233
10239
|
f.mount = true;
|
|
10234
10240
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
10235
10241
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -10263,11 +10269,11 @@ let __tla = Promise.all([
|
|
|
10263
10269
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
10264
10270
|
h2
|
|
10265
10271
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
10266
|
-
S2 && (E2._f.deps &&
|
|
10272
|
+
S2 && (E2._f.deps && $W(E2._f.deps), L(h2, f2, u3, G2));
|
|
10267
10273
|
}
|
|
10268
|
-
},
|
|
10274
|
+
}, QW = (e2, r2) => {
|
|
10269
10275
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
10270
|
-
},
|
|
10276
|
+
}, $W = async (e2, u2 = {}) => {
|
|
10271
10277
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
10272
10278
|
if (r.resolver) {
|
|
10273
10279
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -10286,23 +10292,23 @@ let __tla = Promise.all([
|
|
|
10286
10292
|
isValid: d2
|
|
10287
10293
|
} : {},
|
|
10288
10294
|
errors: c.errors
|
|
10289
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
10290
|
-
},
|
|
10295
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, QW, e2 ? m2 : p.mount), f2;
|
|
10296
|
+
}, eG = (e2) => {
|
|
10291
10297
|
let r2 = {
|
|
10292
10298
|
...f.mount ? d : u
|
|
10293
10299
|
};
|
|
10294
10300
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
10295
|
-
},
|
|
10301
|
+
}, tG = (e2, r2) => ({
|
|
10296
10302
|
invalid: !!get((r2 || c).errors, e2),
|
|
10297
10303
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
10298
10304
|
error: get((r2 || c).errors, e2),
|
|
10299
10305
|
isValidating: !!get(c.validatingFields, e2),
|
|
10300
10306
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
10301
|
-
}),
|
|
10307
|
+
}), nG = (e2) => {
|
|
10302
10308
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
10303
10309
|
errors: e2 ? c.errors : {}
|
|
10304
10310
|
});
|
|
10305
|
-
},
|
|
10311
|
+
}, rG = (e2, r2, u2) => {
|
|
10306
10312
|
let d2 = (get(l, e2, {
|
|
10307
10313
|
_f: {}
|
|
10308
10314
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -10315,9 +10321,9 @@ let __tla = Promise.all([
|
|
|
10315
10321
|
errors: c.errors,
|
|
10316
10322
|
isValid: false
|
|
10317
10323
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
10318
|
-
},
|
|
10324
|
+
}, iG = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
10319
10325
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
10320
|
-
}) : G(e2, r2, true),
|
|
10326
|
+
}) : G(e2, r2, true), aG = (e2, f2 = {}) => {
|
|
10321
10327
|
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);
|
|
10322
10328
|
_.values.next({
|
|
10323
10329
|
values: {
|
|
@@ -10329,9 +10335,9 @@ let __tla = Promise.all([
|
|
|
10329
10335
|
isDirty: W()
|
|
10330
10336
|
} : {}
|
|
10331
10337
|
}), !f2.keepIsValid && w();
|
|
10332
|
-
},
|
|
10338
|
+
}, oG = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
10333
10339
|
(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));
|
|
10334
|
-
},
|
|
10340
|
+
}, sG = (e2, c2 = {}) => {
|
|
10335
10341
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
10336
10342
|
return set(l, e2, {
|
|
10337
10343
|
...d2 || {},
|
|
@@ -10345,7 +10351,7 @@ let __tla = Promise.all([
|
|
|
10345
10351
|
mount: true,
|
|
10346
10352
|
...c2
|
|
10347
10353
|
}
|
|
10348
|
-
}), p.mount.add(e2), d2 ?
|
|
10354
|
+
}), p.mount.add(e2), d2 ? oG({
|
|
10349
10355
|
field: d2,
|
|
10350
10356
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
10351
10357
|
name: e2
|
|
@@ -10362,11 +10368,11 @@ let __tla = Promise.all([
|
|
|
10362
10368
|
pattern: getRuleValue(c2.pattern)
|
|
10363
10369
|
} : {},
|
|
10364
10370
|
name: e2,
|
|
10365
|
-
onChange:
|
|
10366
|
-
onBlur:
|
|
10371
|
+
onChange: ZW,
|
|
10372
|
+
onBlur: ZW,
|
|
10367
10373
|
ref: (m3) => {
|
|
10368
10374
|
if (m3) {
|
|
10369
|
-
|
|
10375
|
+
sG(e2, c2), d2 = get(l, e2);
|
|
10370
10376
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
10371
10377
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
10372
10378
|
set(l, e2, {
|
|
@@ -10392,7 +10398,7 @@ let __tla = Promise.all([
|
|
|
10392
10398
|
} 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);
|
|
10393
10399
|
}
|
|
10394
10400
|
};
|
|
10395
|
-
},
|
|
10401
|
+
}, cG = () => r.shouldFocusError && iterateFieldsByAction(l, QW, p.mount), lG = (e2) => {
|
|
10396
10402
|
isBoolean(e2) && (_.state.next({
|
|
10397
10403
|
disabled: e2
|
|
10398
10404
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -10401,7 +10407,7 @@ let __tla = Promise.all([
|
|
|
10401
10407
|
r3.disabled = u2._f.disabled || e2;
|
|
10402
10408
|
}));
|
|
10403
10409
|
}, 0, false));
|
|
10404
|
-
},
|
|
10410
|
+
}, uG = (e2, u2) => async (f2) => {
|
|
10405
10411
|
let m2;
|
|
10406
10412
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
10407
10413
|
let h2 = cloneObject(d);
|
|
@@ -10423,7 +10429,7 @@ let __tla = Promise.all([
|
|
|
10423
10429
|
}
|
|
10424
10430
|
} else u2 && await u2({
|
|
10425
10431
|
...c.errors
|
|
10426
|
-
}, f2),
|
|
10432
|
+
}, f2), cG(), setTimeout(cG);
|
|
10427
10433
|
if (_.state.next({
|
|
10428
10434
|
isSubmitted: true,
|
|
10429
10435
|
isSubmitting: false,
|
|
@@ -10431,11 +10437,11 @@ let __tla = Promise.all([
|
|
|
10431
10437
|
submitCount: c.submitCount + 1,
|
|
10432
10438
|
errors: c.errors
|
|
10433
10439
|
}), m2) throw m2;
|
|
10434
|
-
},
|
|
10435
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10440
|
+
}, dG = (e2, r2 = {}) => {
|
|
10441
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? XW(e2, cloneObject(get(u, e2))) : (XW(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({
|
|
10436
10442
|
...c
|
|
10437
10443
|
}));
|
|
10438
|
-
},
|
|
10444
|
+
}, fG = (e2, m2 = {}) => {
|
|
10439
10445
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10440
10446
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10441
10447
|
if (m2.keepDirtyValues) {
|
|
@@ -10443,7 +10449,7 @@ let __tla = Promise.all([
|
|
|
10443
10449
|
...p.mount,
|
|
10444
10450
|
...Object.keys(getDirtyFields(u, d))
|
|
10445
10451
|
]);
|
|
10446
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10452
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : XW(r2, get(b2, r2));
|
|
10447
10453
|
} else {
|
|
10448
10454
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10449
10455
|
let r2 = get(l, e3);
|
|
@@ -10488,25 +10494,25 @@ let __tla = Promise.all([
|
|
|
10488
10494
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10489
10495
|
isSubmitting: false
|
|
10490
10496
|
});
|
|
10491
|
-
},
|
|
10497
|
+
}, pG = (e2, r2) => fG(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10492
10498
|
return {
|
|
10493
10499
|
control: {
|
|
10494
|
-
register:
|
|
10495
|
-
unregister:
|
|
10496
|
-
getFieldState:
|
|
10497
|
-
handleSubmit:
|
|
10498
|
-
setError:
|
|
10500
|
+
register: sG,
|
|
10501
|
+
unregister: aG,
|
|
10502
|
+
getFieldState: tG,
|
|
10503
|
+
handleSubmit: uG,
|
|
10504
|
+
setError: rG,
|
|
10499
10505
|
_executeSchema: R,
|
|
10500
10506
|
_getWatch: G,
|
|
10501
10507
|
_getDirty: W,
|
|
10502
10508
|
_updateValid: w,
|
|
10503
10509
|
_removeUnmounted: H,
|
|
10504
10510
|
_updateFieldArray: E,
|
|
10505
|
-
_updateDisabledField:
|
|
10511
|
+
_updateDisabledField: oG,
|
|
10506
10512
|
_getFieldArray: q,
|
|
10507
|
-
_reset:
|
|
10513
|
+
_reset: fG,
|
|
10508
10514
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10509
|
-
|
|
10515
|
+
pG(e2, r.resetOptions), _.state.next({
|
|
10510
10516
|
isLoading: false
|
|
10511
10517
|
});
|
|
10512
10518
|
}),
|
|
@@ -10516,7 +10522,7 @@ let __tla = Promise.all([
|
|
|
10516
10522
|
...e2
|
|
10517
10523
|
};
|
|
10518
10524
|
},
|
|
10519
|
-
_disableForm:
|
|
10525
|
+
_disableForm: lG,
|
|
10520
10526
|
_subjects: _,
|
|
10521
10527
|
_proxyFormState: g,
|
|
10522
10528
|
_setErrors: j,
|
|
@@ -10557,17 +10563,17 @@ let __tla = Promise.all([
|
|
|
10557
10563
|
};
|
|
10558
10564
|
}
|
|
10559
10565
|
},
|
|
10560
|
-
trigger:
|
|
10561
|
-
register:
|
|
10562
|
-
handleSubmit:
|
|
10563
|
-
watch:
|
|
10564
|
-
setValue:
|
|
10565
|
-
getValues:
|
|
10566
|
-
reset:
|
|
10567
|
-
resetField:
|
|
10568
|
-
clearErrors:
|
|
10569
|
-
unregister:
|
|
10570
|
-
setError:
|
|
10566
|
+
trigger: $W,
|
|
10567
|
+
register: sG,
|
|
10568
|
+
handleSubmit: uG,
|
|
10569
|
+
watch: iG,
|
|
10570
|
+
setValue: XW,
|
|
10571
|
+
getValues: eG,
|
|
10572
|
+
reset: pG,
|
|
10573
|
+
resetField: dG,
|
|
10574
|
+
clearErrors: nG,
|
|
10575
|
+
unregister: aG,
|
|
10576
|
+
setError: rG,
|
|
10571
10577
|
setFocus: (e2, r2 = {}) => {
|
|
10572
10578
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10573
10579
|
if (u2) {
|
|
@@ -10575,7 +10581,7 @@ let __tla = Promise.all([
|
|
|
10575
10581
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10576
10582
|
}
|
|
10577
10583
|
},
|
|
10578
|
-
getFieldState:
|
|
10584
|
+
getFieldState: tG
|
|
10579
10585
|
};
|
|
10580
10586
|
}
|
|
10581
10587
|
function useForm(e = {}) {
|
|
@@ -16300,21 +16306,21 @@ ${c}
|
|
|
16300
16306
|
_.pageSize,
|
|
16301
16307
|
_.pageIndex
|
|
16302
16308
|
], r[35] = w, r[36] = _.pageIndex, r[37] = _.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = u, r[44] = y, r[45] = p, r[46] = B, r[47] = H) : H = r[47];
|
|
16303
|
-
let { data: W, error: G, isPending: q, isFetching: Z } = useAsyncData(z, H),
|
|
16304
|
-
r[48] !==
|
|
16305
|
-
let
|
|
16306
|
-
r[51] !==
|
|
16307
|
-
qW,
|
|
16309
|
+
let { data: W, error: G, isPending: q, isFetching: Z } = useAsyncData(z, H), YW = useAtomValue(downloadSizeLimitAtom), XW;
|
|
16310
|
+
r[48] !== YW || r[49] !== e ? (XW = async () => !YW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = YW, r[49] = e, r[50] = XW) : XW = r[50];
|
|
16311
|
+
let ZW = e.showDownload, QW = e.get_size_bytes, $W = e.lazy, eG = e.totalRows, tG = useDeepCompareMemoize(w), nG = useDeepCompareMemoize(p), rG;
|
|
16312
|
+
r[51] !== YW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== tG || r[58] !== nG ? (rG = [
|
|
16308
16313
|
YW,
|
|
16309
|
-
XW,
|
|
16310
16314
|
ZW,
|
|
16311
16315
|
QW,
|
|
16312
|
-
y,
|
|
16313
16316
|
$W,
|
|
16314
|
-
eG
|
|
16315
|
-
|
|
16316
|
-
|
|
16317
|
-
|
|
16317
|
+
eG,
|
|
16318
|
+
y,
|
|
16319
|
+
tG,
|
|
16320
|
+
nG
|
|
16321
|
+
], r[51] = YW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = tG, r[58] = nG, r[59] = rG) : rG = r[59];
|
|
16322
|
+
let { data: iG, isPending: aG } = useAsyncData(XW, rG), oG = iG ?? null, sG = !!YW && e.showDownload && aG, cG;
|
|
16323
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== p ? (cG = async (e2) => ({
|
|
16318
16324
|
rows: await loadTableData((await u({
|
|
16319
16325
|
page_number: e2,
|
|
16320
16326
|
page_size: 1,
|
|
@@ -16323,17 +16329,17 @@ ${c}
|
|
|
16323
16329
|
filters: filtersToFilterGroup(w),
|
|
16324
16330
|
max_columns: null
|
|
16325
16331
|
})).data)
|
|
16326
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] =
|
|
16327
|
-
let
|
|
16328
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16332
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] = cG) : cG = r[64];
|
|
16333
|
+
let lG = cG, uG;
|
|
16334
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uG = () => {
|
|
16329
16335
|
v(_temp4$4);
|
|
16330
|
-
}, r[65] =
|
|
16331
|
-
let
|
|
16332
|
-
r[66] ===
|
|
16333
|
-
|
|
16334
|
-
], r[66] =
|
|
16335
|
-
let
|
|
16336
|
-
r[68] === e ?
|
|
16336
|
+
}, r[65] = uG) : uG = r[65];
|
|
16337
|
+
let dG = W == null ? void 0 : W.totalRows, fG;
|
|
16338
|
+
r[66] === dG ? fG = r[67] : (fG = [
|
|
16339
|
+
dG
|
|
16340
|
+
], r[66] = dG, r[67] = fG), (0, import_react.useEffect)(uG, fG);
|
|
16341
|
+
let pG;
|
|
16342
|
+
r[68] === e ? pG = r[69] : (pG = async () => {
|
|
16337
16343
|
let r2 = isStaticNotebook();
|
|
16338
16344
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
16339
16345
|
data: null,
|
|
@@ -16342,22 +16348,22 @@ ${c}
|
|
|
16342
16348
|
value_counts: {},
|
|
16343
16349
|
show_charts: false
|
|
16344
16350
|
} : e.get_column_summaries({});
|
|
16345
|
-
}, r[68] = e, r[69] =
|
|
16346
|
-
let
|
|
16347
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
16351
|
+
}, r[68] = e, r[69] = pG);
|
|
16352
|
+
let mG;
|
|
16353
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (mG = [
|
|
16348
16354
|
e.get_column_summaries,
|
|
16349
16355
|
e.showColumnSummaries,
|
|
16350
16356
|
w,
|
|
16351
16357
|
y,
|
|
16352
16358
|
e.totalRows,
|
|
16353
16359
|
e.data
|
|
16354
|
-
], 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] =
|
|
16355
|
-
let { data:
|
|
16356
|
-
if (r[77] ===
|
|
16357
|
-
|
|
16358
|
-
},
|
|
16359
|
-
|
|
16360
|
-
], r[77] =
|
|
16360
|
+
], 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] = mG) : mG = r[76];
|
|
16361
|
+
let { data: hG, error: gG } = useAsyncData(pG, mG), _G, vG;
|
|
16362
|
+
if (r[77] === gG ? (_G = r[78], vG = r[79]) : (_G = () => {
|
|
16363
|
+
gG && Logger.error(gG);
|
|
16364
|
+
}, vG = [
|
|
16365
|
+
gG
|
|
16366
|
+
], r[77] = gG, r[78] = _G, r[79] = vG), (0, import_react.useEffect)(_G, vG), q) {
|
|
16361
16367
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
16362
16368
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
16363
16369
|
milliseconds: 200,
|
|
@@ -16366,7 +16372,7 @@ ${c}
|
|
|
16366
16372
|
})
|
|
16367
16373
|
}), r[80] = c2, r[81] = l2), l2;
|
|
16368
16374
|
}
|
|
16369
|
-
let
|
|
16375
|
+
let yG = null;
|
|
16370
16376
|
if (G) {
|
|
16371
16377
|
Logger.error(G);
|
|
16372
16378
|
let e2;
|
|
@@ -16382,62 +16388,62 @@ ${c}
|
|
|
16382
16388
|
children: G.message || "An unknown error occurred"
|
|
16383
16389
|
})
|
|
16384
16390
|
]
|
|
16385
|
-
}), r[82] = G, r[83] = e2),
|
|
16391
|
+
}), r[82] = G, r[83] = e2), yG = e2;
|
|
16386
16392
|
}
|
|
16387
|
-
let
|
|
16388
|
-
r[84] === O ?
|
|
16393
|
+
let bG;
|
|
16394
|
+
r[84] === O ? bG = r[85] : (bG = () => {
|
|
16389
16395
|
j(!O);
|
|
16390
|
-
}, r[84] = O, r[85] =
|
|
16391
|
-
let
|
|
16392
|
-
r[86] !== l || r[87] !==
|
|
16396
|
+
}, r[84] = O, r[85] = bG);
|
|
16397
|
+
let xG = bG, SG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, CG = W == null ? void 0 : W.rawRows, wG = Z && !q, TG = (W == null ? void 0 : W.totalRows) ?? e.totalRows, EG = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, DG = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, OG;
|
|
16398
|
+
r[86] !== l || r[87] !== hG || r[88] !== O || r[89] !== w || r[90] !== lG || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== oG || r[95] !== sG || r[96] !== p || r[97] !== SG || r[98] !== CG || r[99] !== wG || r[100] !== TG || r[101] !== EG || r[102] !== DG || r[103] !== xG ? (OG = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
16393
16399
|
...e,
|
|
16394
|
-
data:
|
|
16395
|
-
rawData:
|
|
16396
|
-
columnSummaries:
|
|
16400
|
+
data: SG,
|
|
16401
|
+
rawData: CG,
|
|
16402
|
+
columnSummaries: hG,
|
|
16397
16403
|
sorting: p,
|
|
16398
16404
|
setSorting: h,
|
|
16399
16405
|
searchQuery: y,
|
|
16400
16406
|
setSearchQuery: b,
|
|
16401
16407
|
filters: w,
|
|
16402
16408
|
setFilters: T,
|
|
16403
|
-
reloading:
|
|
16404
|
-
totalRows:
|
|
16405
|
-
sizeBytes:
|
|
16406
|
-
sizeBytesIsLoading:
|
|
16409
|
+
reloading: wG,
|
|
16410
|
+
totalRows: TG,
|
|
16411
|
+
sizeBytes: oG,
|
|
16412
|
+
sizeBytesIsLoading: sG,
|
|
16407
16413
|
paginationState: _,
|
|
16408
16414
|
setPaginationState: v,
|
|
16409
|
-
cellStyles:
|
|
16410
|
-
cellHoverTexts:
|
|
16411
|
-
toggleDisplayHeader:
|
|
16415
|
+
cellStyles: EG,
|
|
16416
|
+
cellHoverTexts: DG,
|
|
16417
|
+
toggleDisplayHeader: xG,
|
|
16412
16418
|
isChartBuilderOpen: O,
|
|
16413
|
-
getRow:
|
|
16419
|
+
getRow: lG,
|
|
16414
16420
|
cellId: l,
|
|
16415
16421
|
maxHeight: e.maxHeight
|
|
16416
|
-
}), r[86] = l, r[87] =
|
|
16417
|
-
let
|
|
16418
|
-
r[105] !== l || r[106] !==
|
|
16422
|
+
}), r[86] = l, r[87] = hG, r[88] = O, r[89] = w, r[90] = lG, r[91] = _, r[92] = e, r[93] = y, r[94] = oG, r[95] = sG, r[96] = p, r[97] = SG, r[98] = CG, r[99] = wG, r[100] = TG, r[101] = EG, r[102] = DG, r[103] = xG, r[104] = OG) : OG = r[104];
|
|
16423
|
+
let kG = OG, AG;
|
|
16424
|
+
r[105] !== l || r[106] !== kG || 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 ? (AG = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
16419
16425
|
displayHeader: O,
|
|
16420
16426
|
onCloseChartBuilder: () => j(false),
|
|
16421
16427
|
data: (W == null ? void 0 : W.rows) || [],
|
|
16422
16428
|
columns: e.totalColumns,
|
|
16423
16429
|
totalRows: e.totalRows,
|
|
16424
|
-
dataTable:
|
|
16430
|
+
dataTable: kG,
|
|
16425
16431
|
getDataUrl: e.get_data_url,
|
|
16426
16432
|
fieldTypes: e.fieldTypes,
|
|
16427
16433
|
rowHeaders: e.rowHeaders,
|
|
16428
16434
|
cellId: l
|
|
16429
|
-
}) :
|
|
16430
|
-
let
|
|
16431
|
-
return r[116] !==
|
|
16435
|
+
}) : kG, r[105] = l, r[106] = kG, 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] = AG) : AG = r[115];
|
|
16436
|
+
let jG;
|
|
16437
|
+
return r[116] !== yG || r[117] !== AG ? (jG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16432
16438
|
children: [
|
|
16433
|
-
|
|
16434
|
-
|
|
16439
|
+
yG,
|
|
16440
|
+
AG
|
|
16435
16441
|
]
|
|
16436
|
-
}), r[116] =
|
|
16442
|
+
}), r[116] = yG, r[117] = AG, r[118] = jG) : jG = r[118], jG;
|
|
16437
16443
|
});
|
|
16438
16444
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
16439
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: Z, setFilters:
|
|
16440
|
-
let
|
|
16445
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: Z, setFilters: YW, reloading: XW, freezeColumnsLeft: ZW, freezeColumnsRight: QW, hiddenColumns: $W, textJustifyColumns: eG, wrappedColumns: tG, columnWidths: nG, headerTooltip: rG, totalColumns: iG, get_row_ids: aG, cellStyles: oG, hoverTemplate: sG, cellHoverTexts: cG, toggleDisplayHeader: lG, isChartBuilderOpen: uG, calculate_top_k_rows: dG, preview_column: fG, getRow: pG, cellId: mG, maxHeight: hG }) => {
|
|
16446
|
+
let gG = (0, import_react.useId)(), { locale: _G } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [vG, yG] = (0, import_react.useState)(0), { isPanelOpen: bG, isAnyPanelOpen: xG, togglePanel: SG, panelType: CG, setPanelType: wG } = usePanelOwnership(gG, mG), TG = isStaticNotebook(), EG = (0, import_react.useMemo)(() => {
|
|
16441
16447
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16442
16448
|
let e2 = toFieldTypes(O);
|
|
16443
16449
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -16446,13 +16452,13 @@ ${c}
|
|
|
16446
16452
|
}, [
|
|
16447
16453
|
O,
|
|
16448
16454
|
L
|
|
16449
|
-
]),
|
|
16455
|
+
]), DG = useDeepCompareMemoize(O ?? inferFieldTypes(r)), OG = (0, import_react.useMemo)(() => p === "all" ? DG : DG.slice(0, p), [
|
|
16450
16456
|
p,
|
|
16451
|
-
|
|
16452
|
-
]),
|
|
16457
|
+
DG
|
|
16458
|
+
]), kG = (0, import_react.useMemo)(() => {
|
|
16453
16459
|
let e2 = {};
|
|
16454
16460
|
if (r && r.length > 0) {
|
|
16455
|
-
for (let [c2, l2] of
|
|
16461
|
+
for (let [c2, l2] of OG) if (l2[0] === "number") {
|
|
16456
16462
|
let l3 = 0;
|
|
16457
16463
|
for (let e3 of r) {
|
|
16458
16464
|
let r2 = e3[c2];
|
|
@@ -16467,95 +16473,95 @@ ${c}
|
|
|
16467
16473
|
return e2;
|
|
16468
16474
|
}, [
|
|
16469
16475
|
r,
|
|
16470
|
-
|
|
16471
|
-
]),
|
|
16472
|
-
O || (T = false),
|
|
16473
|
-
let
|
|
16474
|
-
rowHeaders:
|
|
16476
|
+
OG
|
|
16477
|
+
]), AG = useDeepCompareMemoize(E), jG = useDeepCompareMemoize(eG), MG = useDeepCompareMemoize(tG), NG = useDeepCompareMemoize(nG), PG = useDeepCompareMemoize(EG), FG = useDeepCompareMemoize(kG), IG = OG.length;
|
|
16478
|
+
O || (T = false), TG && (h = null);
|
|
16479
|
+
let LG = (0, import_react.useMemo)(() => generateColumns({
|
|
16480
|
+
rowHeaders: AG,
|
|
16475
16481
|
selection: h,
|
|
16476
|
-
chartSpecModel:
|
|
16477
|
-
fieldTypes:
|
|
16478
|
-
textJustifyColumns:
|
|
16479
|
-
wrappedColumns:
|
|
16480
|
-
columnWidths:
|
|
16481
|
-
headerTooltip:
|
|
16482
|
+
chartSpecModel: PG,
|
|
16483
|
+
fieldTypes: OG,
|
|
16484
|
+
textJustifyColumns: jG,
|
|
16485
|
+
wrappedColumns: MG,
|
|
16486
|
+
columnWidths: NG,
|
|
16487
|
+
headerTooltip: rG,
|
|
16482
16488
|
showDataTypes: T,
|
|
16483
|
-
calculateTopKRows:
|
|
16484
|
-
fractionDigitsByColumn:
|
|
16489
|
+
calculateTopKRows: dG,
|
|
16490
|
+
fractionDigitsByColumn: FG
|
|
16485
16491
|
}), [
|
|
16486
16492
|
h,
|
|
16487
16493
|
T,
|
|
16488
|
-
|
|
16489
|
-
OG,
|
|
16490
|
-
EG,
|
|
16491
|
-
kG,
|
|
16494
|
+
PG,
|
|
16492
16495
|
AG,
|
|
16496
|
+
OG,
|
|
16493
16497
|
jG,
|
|
16494
|
-
|
|
16495
|
-
|
|
16496
|
-
|
|
16497
|
-
|
|
16498
|
+
MG,
|
|
16499
|
+
NG,
|
|
16500
|
+
rG,
|
|
16501
|
+
dG,
|
|
16502
|
+
FG
|
|
16503
|
+
]), RG = (0, import_react.useMemo)(() => Object.fromEntries((g || []).map((e2) => [
|
|
16498
16504
|
e2,
|
|
16499
16505
|
true
|
|
16500
16506
|
])), [
|
|
16501
16507
|
g
|
|
16502
|
-
]),
|
|
16508
|
+
]), zG = useEvent_default((e2) => {
|
|
16503
16509
|
if (h === "single") {
|
|
16504
16510
|
let r2 = Functions.asUpdater(e2)({});
|
|
16505
16511
|
z(Object.keys(r2).slice(0, 1));
|
|
16506
16512
|
}
|
|
16507
16513
|
if (h === "multi") {
|
|
16508
|
-
let r2 = Functions.asUpdater(e2)(
|
|
16514
|
+
let r2 = Functions.asUpdater(e2)(RG);
|
|
16509
16515
|
z(Object.keys(r2));
|
|
16510
16516
|
}
|
|
16511
|
-
}),
|
|
16512
|
-
if (
|
|
16517
|
+
}), BG = useEvent_default((e2) => {
|
|
16518
|
+
if (yG(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
16513
16519
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
16514
16520
|
r2 !== null && M((e3) => ({
|
|
16515
16521
|
...e3,
|
|
16516
16522
|
pageIndex: r2
|
|
16517
16523
|
}));
|
|
16518
|
-
}),
|
|
16519
|
-
h === "single-cell" && z(Functions.asUpdater(e2)(
|
|
16520
|
-
}),
|
|
16521
|
-
if (!(!
|
|
16524
|
+
}), VG = g.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), HG = useEvent_default((e2) => {
|
|
16525
|
+
h === "single-cell" && z(Functions.asUpdater(e2)(VG).slice(0, 1)), h === "multi-cell" && z(Functions.asUpdater(e2)(VG));
|
|
16526
|
+
}), UG = h === "multi" || h === "single", WG = b && !!fG, GG = isInVscodeExtension(), KG = isIslands(), qG = (0, import_react.useMemo)(() => {
|
|
16527
|
+
if (!(!xG || !(S || WG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
16522
16528
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
16523
|
-
rowIdx:
|
|
16524
|
-
setRowIdx:
|
|
16529
|
+
rowIdx: vG,
|
|
16530
|
+
setRowIdx: BG,
|
|
16525
16531
|
totalRows: l,
|
|
16526
|
-
fieldTypes:
|
|
16527
|
-
getRow:
|
|
16528
|
-
isSelectable:
|
|
16529
|
-
isRowSelected: !!
|
|
16530
|
-
handleRowSelectionChange:
|
|
16531
|
-
previewColumn:
|
|
16532
|
-
totalColumns:
|
|
16533
|
-
tableId:
|
|
16532
|
+
fieldTypes: DG,
|
|
16533
|
+
getRow: pG,
|
|
16534
|
+
isSelectable: UG,
|
|
16535
|
+
isRowSelected: !!RG[vG],
|
|
16536
|
+
handleRowSelectionChange: zG,
|
|
16537
|
+
previewColumn: fG,
|
|
16538
|
+
totalColumns: iG,
|
|
16539
|
+
tableId: gG,
|
|
16534
16540
|
table: e2,
|
|
16535
|
-
showRowExplorer: S && !
|
|
16536
|
-
showColumnExplorer:
|
|
16537
|
-
activeTab:
|
|
16538
|
-
onTabChange:
|
|
16541
|
+
showRowExplorer: S && !GG,
|
|
16542
|
+
showColumnExplorer: WG && !GG,
|
|
16543
|
+
activeTab: CG,
|
|
16544
|
+
onTabChange: wG
|
|
16539
16545
|
})
|
|
16540
16546
|
});
|
|
16541
16547
|
}, [
|
|
16542
|
-
|
|
16548
|
+
xG,
|
|
16543
16549
|
S,
|
|
16544
|
-
|
|
16545
|
-
|
|
16546
|
-
|
|
16550
|
+
WG,
|
|
16551
|
+
vG,
|
|
16552
|
+
BG,
|
|
16547
16553
|
l,
|
|
16548
|
-
|
|
16549
|
-
|
|
16550
|
-
VG,
|
|
16551
|
-
IG,
|
|
16552
|
-
LG,
|
|
16553
|
-
uG,
|
|
16554
|
-
nG,
|
|
16555
|
-
mG,
|
|
16554
|
+
DG,
|
|
16555
|
+
pG,
|
|
16556
16556
|
UG,
|
|
16557
|
-
|
|
16558
|
-
|
|
16557
|
+
RG,
|
|
16558
|
+
zG,
|
|
16559
|
+
fG,
|
|
16560
|
+
iG,
|
|
16561
|
+
gG,
|
|
16562
|
+
GG,
|
|
16563
|
+
CG,
|
|
16564
|
+
wG
|
|
16559
16565
|
]);
|
|
16560
16566
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16561
16567
|
children: [
|
|
@@ -16567,27 +16573,27 @@ ${c}
|
|
|
16567
16573
|
" rows."
|
|
16568
16574
|
]
|
|
16569
16575
|
}),
|
|
16570
|
-
|
|
16576
|
+
IG < iG && IG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16571
16577
|
className: "mb-1 rounded",
|
|
16572
16578
|
children: [
|
|
16573
16579
|
"Result clipped. Showing ",
|
|
16574
|
-
|
|
16580
|
+
IG,
|
|
16575
16581
|
" of ",
|
|
16576
|
-
|
|
16582
|
+
iG,
|
|
16577
16583
|
" columns."
|
|
16578
16584
|
]
|
|
16579
16585
|
}),
|
|
16580
|
-
|
|
16586
|
+
TG && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16581
16587
|
className: "mb-1 rounded",
|
|
16582
16588
|
children: [
|
|
16583
16589
|
"Showing the first ",
|
|
16584
16590
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16585
|
-
children: prettyNumber(r.length,
|
|
16591
|
+
children: prettyNumber(r.length, _G)
|
|
16586
16592
|
}),
|
|
16587
16593
|
" ",
|
|
16588
16594
|
"of ",
|
|
16589
16595
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16590
|
-
children: prettyNumber(l,
|
|
16596
|
+
children: prettyNumber(l, _G)
|
|
16591
16597
|
}),
|
|
16592
16598
|
" rows. Increase the table's ",
|
|
16593
16599
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -16601,7 +16607,7 @@ ${c}
|
|
|
16601
16607
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
16602
16608
|
}),
|
|
16603
16609
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
16604
|
-
value:
|
|
16610
|
+
value: EG,
|
|
16605
16611
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
16606
16612
|
label: e,
|
|
16607
16613
|
align: "top",
|
|
@@ -16609,14 +16615,14 @@ ${c}
|
|
|
16609
16615
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
16610
16616
|
data: r,
|
|
16611
16617
|
rawData: c,
|
|
16612
|
-
columns:
|
|
16618
|
+
columns: LG,
|
|
16613
16619
|
className: R,
|
|
16614
|
-
maxHeight:
|
|
16620
|
+
maxHeight: hG,
|
|
16615
16621
|
sorting: B,
|
|
16616
16622
|
totalRows: l,
|
|
16617
16623
|
sizeBytes: u,
|
|
16618
16624
|
sizeBytesIsLoading: f,
|
|
16619
|
-
totalColumns:
|
|
16625
|
+
totalColumns: iG,
|
|
16620
16626
|
manualSorting: true,
|
|
16621
16627
|
setSorting: H,
|
|
16622
16628
|
pagination: m,
|
|
@@ -16624,37 +16630,37 @@ ${c}
|
|
|
16624
16630
|
selection: h,
|
|
16625
16631
|
paginationState: j,
|
|
16626
16632
|
setPaginationState: M,
|
|
16627
|
-
rowSelection:
|
|
16628
|
-
cellSelection:
|
|
16629
|
-
cellStyling:
|
|
16630
|
-
hoverTemplate:
|
|
16631
|
-
cellHoverTexts:
|
|
16633
|
+
rowSelection: RG,
|
|
16634
|
+
cellSelection: VG,
|
|
16635
|
+
cellStyling: oG,
|
|
16636
|
+
hoverTemplate: sG,
|
|
16637
|
+
cellHoverTexts: cG,
|
|
16632
16638
|
downloadAs: v ? I : void 0,
|
|
16633
16639
|
showSearch: W,
|
|
16634
16640
|
searchQuery: G,
|
|
16635
16641
|
onSearchQueryChange: q,
|
|
16636
16642
|
showFilters: _,
|
|
16637
16643
|
filters: Z,
|
|
16638
|
-
onFiltersChange:
|
|
16639
|
-
calculateTopKRows:
|
|
16640
|
-
reloading:
|
|
16641
|
-
onRowSelectionChange:
|
|
16642
|
-
freezeColumnsLeft:
|
|
16643
|
-
freezeColumnsRight:
|
|
16644
|
-
hiddenColumns:
|
|
16645
|
-
onCellSelectionChange:
|
|
16646
|
-
getRowIds:
|
|
16647
|
-
toggleDisplayHeader:
|
|
16648
|
-
showChartBuilder: w && !
|
|
16649
|
-
isChartBuilderOpen:
|
|
16644
|
+
onFiltersChange: YW,
|
|
16645
|
+
calculateTopKRows: dG,
|
|
16646
|
+
reloading: XW,
|
|
16647
|
+
onRowSelectionChange: zG,
|
|
16648
|
+
freezeColumnsLeft: ZW,
|
|
16649
|
+
freezeColumnsRight: QW,
|
|
16650
|
+
hiddenColumns: $W,
|
|
16651
|
+
onCellSelectionChange: HG,
|
|
16652
|
+
getRowIds: aG,
|
|
16653
|
+
toggleDisplayHeader: lG,
|
|
16654
|
+
showChartBuilder: w && !KG,
|
|
16655
|
+
isChartBuilderOpen: uG,
|
|
16650
16656
|
showPageSizeSelector: y,
|
|
16651
|
-
showTableExplorer: (S ||
|
|
16652
|
-
togglePanel:
|
|
16653
|
-
isPanelOpen:
|
|
16654
|
-
isAnyPanelOpen:
|
|
16655
|
-
viewedRowIdx:
|
|
16656
|
-
onViewedRowChange: (e2) =>
|
|
16657
|
-
renderTableExplorerPanel:
|
|
16657
|
+
showTableExplorer: (S || WG) && !GG && !KG,
|
|
16658
|
+
togglePanel: SG,
|
|
16659
|
+
isPanelOpen: bG,
|
|
16660
|
+
isAnyPanelOpen: xG,
|
|
16661
|
+
viewedRowIdx: vG,
|
|
16662
|
+
onViewedRowChange: (e2) => yG(e2),
|
|
16663
|
+
renderTableExplorerPanel: qG
|
|
16658
16664
|
})
|
|
16659
16665
|
})
|
|
16660
16666
|
})
|
|
@@ -18706,29 +18712,29 @@ ${c}
|
|
|
18706
18712
|
], r[2] = w, r[3] = T);
|
|
18707
18713
|
let { data: E, error: O, isPending: j } = useAsyncData(S, T), M;
|
|
18708
18714
|
r[4] === E ? M = r[5] : (M = E || {}, r[4] = E, r[5] = M);
|
|
18709
|
-
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, Z] = (0, import_react.useState)(p || EMPTY),
|
|
18710
|
-
r[6] === f ?
|
|
18715
|
+
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, Z] = (0, import_react.useState)(p || EMPTY), YW = (0, import_react.useRef)(null), XW;
|
|
18716
|
+
r[6] === f ? XW = r[7] : (XW = (e2) => {
|
|
18711
18717
|
var _a5;
|
|
18712
|
-
f && e2 !== "transform" && ((_a5 =
|
|
18713
|
-
}, r[6] = f, r[7] =
|
|
18714
|
-
let
|
|
18715
|
-
r[8] === q ?
|
|
18716
|
-
|
|
18717
|
-
}, r[8] = q, r[9] =
|
|
18718
|
-
let
|
|
18719
|
-
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (
|
|
18720
|
-
let e2 =
|
|
18718
|
+
f && e2 !== "transform" && ((_a5 = YW.current) == null ? void 0 : _a5.submit());
|
|
18719
|
+
}, r[6] = f, r[7] = XW);
|
|
18720
|
+
let ZW = XW, QW = (0, import_react.useRef)(q), $W;
|
|
18721
|
+
r[8] === q ? $W = r[9] : ($W = () => {
|
|
18722
|
+
QW.current = q;
|
|
18723
|
+
}, r[8] = q, r[9] = $W), (0, import_react.useEffect)($W);
|
|
18724
|
+
let eG;
|
|
18725
|
+
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (eG = () => {
|
|
18726
|
+
let e2 = QW.current;
|
|
18721
18727
|
(p == null ? void 0 : p.transforms.length) !== e2.transforms.length && m(e2);
|
|
18722
|
-
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] =
|
|
18723
|
-
let
|
|
18724
|
-
r[13] !== E || r[14] !== m || r[15] !==
|
|
18728
|
+
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] = eG) : eG = r[12];
|
|
18729
|
+
let tG = p == null ? void 0 : p.transforms.length, nG;
|
|
18730
|
+
r[13] !== E || r[14] !== m || r[15] !== tG ? (nG = [
|
|
18725
18731
|
E,
|
|
18726
|
-
|
|
18727
|
-
|
|
18732
|
+
tG,
|
|
18733
|
+
QW,
|
|
18728
18734
|
m
|
|
18729
|
-
], r[13] = E, r[14] = m, r[15] =
|
|
18730
|
-
let
|
|
18731
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18735
|
+
], r[13] = E, r[14] = m, r[15] = tG, r[16] = nG) : nG = r[16], (0, import_react.useEffect)(eG, nG);
|
|
18736
|
+
let rG;
|
|
18737
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rG = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18732
18738
|
value: "transform",
|
|
18733
18739
|
className: "text-xs py-1",
|
|
18734
18740
|
children: [
|
|
@@ -18737,9 +18743,9 @@ ${c}
|
|
|
18737
18743
|
}),
|
|
18738
18744
|
"Transform"
|
|
18739
18745
|
]
|
|
18740
|
-
}), r[17] =
|
|
18741
|
-
let
|
|
18742
|
-
r[18] === H ?
|
|
18746
|
+
}), r[17] = rG) : rG = r[17];
|
|
18747
|
+
let iG;
|
|
18748
|
+
r[18] === H ? iG = r[19] : (iG = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18743
18749
|
value: "python-code",
|
|
18744
18750
|
className: "text-xs py-1",
|
|
18745
18751
|
children: [
|
|
@@ -18748,9 +18754,9 @@ ${c}
|
|
|
18748
18754
|
}),
|
|
18749
18755
|
"Python Code"
|
|
18750
18756
|
]
|
|
18751
|
-
}), r[18] = H, r[19] =
|
|
18752
|
-
let
|
|
18753
|
-
r[20] === W ?
|
|
18757
|
+
}), r[18] = H, r[19] = iG);
|
|
18758
|
+
let aG;
|
|
18759
|
+
r[20] === W ? aG = r[21] : (aG = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18754
18760
|
value: "sql-code",
|
|
18755
18761
|
className: "text-xs py-1",
|
|
18756
18762
|
children: [
|
|
@@ -18759,54 +18765,54 @@ ${c}
|
|
|
18759
18765
|
}),
|
|
18760
18766
|
"SQL Code"
|
|
18761
18767
|
]
|
|
18762
|
-
}), r[20] = W, r[21] =
|
|
18763
|
-
let
|
|
18764
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18768
|
+
}), r[20] = W, r[21] = aG);
|
|
18769
|
+
let oG;
|
|
18770
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oG = (0, import_jsx_runtime.jsx)("div", {
|
|
18765
18771
|
className: "grow"
|
|
18766
|
-
}), r[22] =
|
|
18767
|
-
let
|
|
18768
|
-
r[23] !==
|
|
18772
|
+
}), r[22] = oG) : oG = r[22];
|
|
18773
|
+
let sG;
|
|
18774
|
+
r[23] !== iG || r[24] !== aG ? (sG = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
18769
18775
|
className: "h-8",
|
|
18770
18776
|
children: [
|
|
18771
|
-
tG,
|
|
18772
|
-
nG,
|
|
18773
18777
|
rG,
|
|
18774
|
-
iG
|
|
18778
|
+
iG,
|
|
18779
|
+
aG,
|
|
18780
|
+
oG
|
|
18775
18781
|
]
|
|
18776
|
-
}), r[23] =
|
|
18777
|
-
let
|
|
18778
|
-
r[26] === j ?
|
|
18782
|
+
}), r[23] = iG, r[24] = aG, r[25] = sG) : sG = r[25];
|
|
18783
|
+
let cG;
|
|
18784
|
+
r[26] === j ? cG = r[27] : (cG = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18779
18785
|
size: "small"
|
|
18780
|
-
}), r[26] = j, r[27] =
|
|
18781
|
-
let
|
|
18782
|
-
r[28] !==
|
|
18786
|
+
}), r[26] = j, r[27] = cG);
|
|
18787
|
+
let lG;
|
|
18788
|
+
r[28] !== sG || r[29] !== cG ? (lG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18783
18789
|
className: "flex items-center gap-2",
|
|
18784
18790
|
children: [
|
|
18785
|
-
|
|
18786
|
-
|
|
18791
|
+
sG,
|
|
18792
|
+
cG
|
|
18787
18793
|
]
|
|
18788
|
-
}), r[28] =
|
|
18789
|
-
let
|
|
18790
|
-
r[31] !== m || r[32] !== p ? (
|
|
18794
|
+
}), r[28] = sG, r[29] = cG, r[30] = lG) : lG = r[30];
|
|
18795
|
+
let uG;
|
|
18796
|
+
r[31] !== m || r[32] !== p ? (uG = (e2) => {
|
|
18791
18797
|
dequal(e2, p) || (m(e2), Z(e2));
|
|
18792
|
-
}, r[31] = m, r[32] = p, r[33] =
|
|
18793
|
-
let
|
|
18794
|
-
r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !==
|
|
18798
|
+
}, r[31] = m, r[32] = p, r[33] = uG) : uG = r[33];
|
|
18799
|
+
let dG;
|
|
18800
|
+
r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !== uG ? (dG = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18795
18801
|
value: "transform",
|
|
18796
18802
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18797
18803
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18798
|
-
ref:
|
|
18804
|
+
ref: YW,
|
|
18799
18805
|
initialValue: q,
|
|
18800
18806
|
columns: c,
|
|
18801
|
-
onChange:
|
|
18807
|
+
onChange: uG,
|
|
18802
18808
|
onInvalidChange: Z,
|
|
18803
18809
|
getColumnValues: g,
|
|
18804
18810
|
columnTypesPerStep: B,
|
|
18805
18811
|
lazy: f
|
|
18806
18812
|
})
|
|
18807
|
-
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] =
|
|
18808
|
-
let
|
|
18809
|
-
r[41] === H ?
|
|
18813
|
+
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] = uG, r[40] = dG) : dG = r[40];
|
|
18814
|
+
let fG;
|
|
18815
|
+
r[41] === H ? fG = r[42] : (fG = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18810
18816
|
value: "python-code",
|
|
18811
18817
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18812
18818
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18815,9 +18821,9 @@ ${c}
|
|
|
18815
18821
|
code: H,
|
|
18816
18822
|
language: "python"
|
|
18817
18823
|
})
|
|
18818
|
-
}), r[41] = H, r[42] =
|
|
18819
|
-
let
|
|
18820
|
-
r[43] === W ?
|
|
18824
|
+
}), r[41] = H, r[42] = fG);
|
|
18825
|
+
let pG;
|
|
18826
|
+
r[43] === W ? pG = r[44] : (pG = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18821
18827
|
value: "sql-code",
|
|
18822
18828
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18823
18829
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18826,35 +18832,35 @@ ${c}
|
|
|
18826
18832
|
code: W,
|
|
18827
18833
|
language: "sql"
|
|
18828
18834
|
})
|
|
18829
|
-
}), r[43] = W, r[44] =
|
|
18830
|
-
let
|
|
18831
|
-
r[45] !==
|
|
18835
|
+
}), r[43] = W, r[44] = pG);
|
|
18836
|
+
let mG;
|
|
18837
|
+
r[45] !== ZW || r[46] !== lG || r[47] !== dG || r[48] !== fG || r[49] !== pG ? (mG = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18832
18838
|
defaultValue: "transform",
|
|
18833
|
-
onValueChange:
|
|
18839
|
+
onValueChange: ZW,
|
|
18834
18840
|
children: [
|
|
18835
|
-
sG,
|
|
18836
18841
|
lG,
|
|
18837
|
-
|
|
18838
|
-
|
|
18842
|
+
dG,
|
|
18843
|
+
fG,
|
|
18844
|
+
pG
|
|
18839
18845
|
]
|
|
18840
|
-
}), r[45] =
|
|
18841
|
-
let
|
|
18842
|
-
r[51] === O ?
|
|
18846
|
+
}), r[45] = ZW, r[46] = lG, r[47] = dG, r[48] = fG, r[49] = pG, r[50] = mG) : mG = r[50];
|
|
18847
|
+
let hG;
|
|
18848
|
+
r[51] === O ? hG = r[52] : (hG = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18843
18849
|
error: O
|
|
18844
|
-
}), r[51] = O, r[52] =
|
|
18845
|
-
let
|
|
18846
|
-
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !==
|
|
18850
|
+
}), r[51] = O, r[52] = hG);
|
|
18851
|
+
let gG = I || "", _G = L ?? 0, vG = G ?? 0, yG = R || Arrays.EMPTY, bG = L && L > 5 || false, xG;
|
|
18852
|
+
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !== gG || r[61] !== _G || r[62] !== vG || r[63] !== yG || r[64] !== bG ? (xG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
18847
18853
|
label: null,
|
|
18848
18854
|
className: "rounded-b border-x border-b",
|
|
18849
|
-
data:
|
|
18855
|
+
data: gG,
|
|
18850
18856
|
hasStableRowId: false,
|
|
18851
|
-
totalRows:
|
|
18852
|
-
totalColumns:
|
|
18857
|
+
totalRows: _G,
|
|
18858
|
+
totalColumns: vG,
|
|
18853
18859
|
maxColumns: "all",
|
|
18854
18860
|
pageSize: l,
|
|
18855
18861
|
pagination: true,
|
|
18856
18862
|
fieldTypes: z,
|
|
18857
|
-
rowHeaders:
|
|
18863
|
+
rowHeaders: yG,
|
|
18858
18864
|
showDownload: u,
|
|
18859
18865
|
download_as: v,
|
|
18860
18866
|
get_size_bytes: y,
|
|
@@ -18864,7 +18870,7 @@ ${c}
|
|
|
18864
18870
|
showColumnSummaries: false,
|
|
18865
18871
|
showDataTypes: true,
|
|
18866
18872
|
get_column_summaries: getColumnSummaries,
|
|
18867
|
-
showPageSizeSelector:
|
|
18873
|
+
showPageSizeSelector: bG,
|
|
18868
18874
|
showColumnExplorer: false,
|
|
18869
18875
|
showRowExplorer: true,
|
|
18870
18876
|
showChartBuilder: false,
|
|
@@ -18873,15 +18879,15 @@ ${c}
|
|
|
18873
18879
|
selection: null,
|
|
18874
18880
|
lazy: false,
|
|
18875
18881
|
host: b
|
|
18876
|
-
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] =
|
|
18877
|
-
let
|
|
18878
|
-
return r[66] !==
|
|
18882
|
+
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] = gG, r[61] = _G, r[62] = vG, r[63] = yG, r[64] = bG, r[65] = xG) : xG = r[65];
|
|
18883
|
+
let SG;
|
|
18884
|
+
return r[66] !== mG || r[67] !== hG || r[68] !== xG ? (SG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18879
18885
|
children: [
|
|
18880
|
-
|
|
18881
|
-
|
|
18882
|
-
|
|
18886
|
+
mG,
|
|
18887
|
+
hG,
|
|
18888
|
+
xG
|
|
18883
18889
|
]
|
|
18884
|
-
}), r[66] =
|
|
18890
|
+
}), r[66] = mG, r[67] = hG, r[68] = xG, r[69] = SG) : SG = r[69], SG;
|
|
18885
18891
|
});
|
|
18886
18892
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18887
18893
|
function getColumnSummaries() {
|
|
@@ -19072,23 +19078,23 @@ ${c}
|
|
|
19072
19078
|
}, [
|
|
19073
19079
|
H
|
|
19074
19080
|
]);
|
|
19075
|
-
let Z = (R == null ? void 0 : R.files) ?? [],
|
|
19081
|
+
let Z = (R == null ? void 0 : R.files) ?? [], YW = new Set(e.map((e2) => e2.path)), XW = l === "directory" || l === "all", ZW = l === "file" || l === "all", QW = Z.filter((e2) => XW && e2.is_directory || ZW && !e2.is_directory), $W = QW.length > 0 && QW.every((e2) => YW.has(e2.path));
|
|
19076
19082
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
19077
19083
|
kind: "danger",
|
|
19078
19084
|
children: z.message
|
|
19079
19085
|
});
|
|
19080
|
-
let
|
|
19086
|
+
let eG = PathBuilder.guessDeliminator(c).deliminator, tG = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
19081
19087
|
children: e2.path
|
|
19082
19088
|
}, e2.id));
|
|
19083
|
-
function
|
|
19089
|
+
function rG(e2) {
|
|
19084
19090
|
var _a6;
|
|
19085
19091
|
if (v) return;
|
|
19086
19092
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
19087
|
-
if (g ===
|
|
19093
|
+
if (g === eG) {
|
|
19088
19094
|
y(false);
|
|
19089
19095
|
return;
|
|
19090
19096
|
}
|
|
19091
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
19097
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = eG);
|
|
19092
19098
|
}
|
|
19093
19099
|
let r2 = e2.length < c.length;
|
|
19094
19100
|
if (f && r2) {
|
|
@@ -19101,7 +19107,7 @@ ${c}
|
|
|
19101
19107
|
}
|
|
19102
19108
|
M.current = ((_a6 = j.current) == null ? void 0 : _a6.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
19103
19109
|
}
|
|
19104
|
-
function
|
|
19110
|
+
function iG({ path: e2, name: r2, isDirectory: c2 }) {
|
|
19105
19111
|
return {
|
|
19106
19112
|
id: e2,
|
|
19107
19113
|
name: r2,
|
|
@@ -19109,27 +19115,27 @@ ${c}
|
|
|
19109
19115
|
is_directory: c2
|
|
19110
19116
|
};
|
|
19111
19117
|
}
|
|
19112
|
-
function
|
|
19113
|
-
let f2 =
|
|
19118
|
+
function aG({ path: c2, name: l2, isDirectory: d2 }) {
|
|
19119
|
+
let f2 = iG({
|
|
19114
19120
|
path: c2,
|
|
19115
19121
|
name: l2,
|
|
19116
19122
|
isDirectory: d2
|
|
19117
19123
|
});
|
|
19118
|
-
|
|
19124
|
+
YW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
19119
19125
|
...e,
|
|
19120
19126
|
f2
|
|
19121
19127
|
] : [
|
|
19122
19128
|
f2
|
|
19123
19129
|
]);
|
|
19124
19130
|
}
|
|
19125
|
-
function
|
|
19131
|
+
function oG() {
|
|
19126
19132
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
19127
19133
|
}
|
|
19128
|
-
function
|
|
19134
|
+
function sG() {
|
|
19129
19135
|
let c2 = [];
|
|
19130
19136
|
for (let e2 of Z) {
|
|
19131
|
-
if (!
|
|
19132
|
-
let r2 =
|
|
19137
|
+
if (!XW && e2.is_directory || YW.has(e2.path)) continue;
|
|
19138
|
+
let r2 = iG({
|
|
19133
19139
|
path: e2.path,
|
|
19134
19140
|
name: e2.name,
|
|
19135
19141
|
isDirectory: e2.is_directory
|
|
@@ -19141,20 +19147,20 @@ ${c}
|
|
|
19141
19147
|
...c2
|
|
19142
19148
|
]);
|
|
19143
19149
|
}
|
|
19144
|
-
let
|
|
19150
|
+
let cG = [
|
|
19145
19151
|
{
|
|
19146
19152
|
key: "parent",
|
|
19147
19153
|
name: PARENT_DIRECTORY,
|
|
19148
19154
|
Icon: CornerLeftUp,
|
|
19149
19155
|
isSelected: false,
|
|
19150
19156
|
canSelect: false,
|
|
19151
|
-
onPrimary: () =>
|
|
19157
|
+
onPrimary: () => rG(PARENT_DIRECTORY),
|
|
19152
19158
|
onToggleSelect: null
|
|
19153
19159
|
},
|
|
19154
19160
|
...Z.map((e2) => {
|
|
19155
19161
|
let r2 = e2.path;
|
|
19156
19162
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
19157
|
-
let c2 =
|
|
19163
|
+
let c2 = XW && e2.is_directory || ZW && !e2.is_directory, l2 = YW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => aG({
|
|
19158
19164
|
path: r2,
|
|
19159
19165
|
name: e2.name,
|
|
19160
19166
|
isDirectory: e2.is_directory
|
|
@@ -19165,46 +19171,46 @@ ${c}
|
|
|
19165
19171
|
Icon: FILE_ICON[u2],
|
|
19166
19172
|
isSelected: l2,
|
|
19167
19173
|
canSelect: c2,
|
|
19168
|
-
onPrimary: e2.is_directory ? () =>
|
|
19174
|
+
onPrimary: e2.is_directory ? () => rG(r2) : c2 ? d2 : () => {
|
|
19169
19175
|
},
|
|
19170
19176
|
onToggleSelect: c2 ? d2 : null
|
|
19171
19177
|
};
|
|
19172
19178
|
})
|
|
19173
19179
|
];
|
|
19174
|
-
function
|
|
19180
|
+
function lG(e2) {
|
|
19175
19181
|
var _a6;
|
|
19176
19182
|
E(e2), (_a6 = O.current[e2]) == null ? void 0 : _a6.focus();
|
|
19177
19183
|
}
|
|
19178
|
-
function
|
|
19184
|
+
function uG(e2, r2) {
|
|
19179
19185
|
var _a6, _b3;
|
|
19180
|
-
let c2 =
|
|
19186
|
+
let c2 = cG.length - 1;
|
|
19181
19187
|
switch (e2.key) {
|
|
19182
19188
|
case "ArrowDown":
|
|
19183
|
-
e2.preventDefault(),
|
|
19189
|
+
e2.preventDefault(), lG(Math.min(r2 + 1, c2));
|
|
19184
19190
|
break;
|
|
19185
19191
|
case "ArrowUp":
|
|
19186
|
-
e2.preventDefault(),
|
|
19192
|
+
e2.preventDefault(), lG(Math.max(r2 - 1, 0));
|
|
19187
19193
|
break;
|
|
19188
19194
|
case "Home":
|
|
19189
|
-
e2.preventDefault(),
|
|
19195
|
+
e2.preventDefault(), lG(0);
|
|
19190
19196
|
break;
|
|
19191
19197
|
case "End":
|
|
19192
|
-
e2.preventDefault(),
|
|
19198
|
+
e2.preventDefault(), lG(c2);
|
|
19193
19199
|
break;
|
|
19194
19200
|
case "Enter":
|
|
19195
|
-
e2.preventDefault(),
|
|
19201
|
+
e2.preventDefault(), cG[r2].onPrimary();
|
|
19196
19202
|
break;
|
|
19197
19203
|
case " ":
|
|
19198
|
-
e2.preventDefault(), (_b3 = (_a6 =
|
|
19204
|
+
e2.preventDefault(), (_b3 = (_a6 = cG[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a6);
|
|
19199
19205
|
break;
|
|
19200
19206
|
}
|
|
19201
19207
|
}
|
|
19202
|
-
let { parentDirectories:
|
|
19208
|
+
let { parentDirectories: dG } = getProtocolAndParentDirectories({
|
|
19203
19209
|
path: g,
|
|
19204
|
-
delimiter:
|
|
19210
|
+
delimiter: eG,
|
|
19205
19211
|
initialPath: c,
|
|
19206
19212
|
restrictNavigation: f
|
|
19207
|
-
}),
|
|
19213
|
+
}), fG = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
19208
19214
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
19209
19215
|
children: [
|
|
19210
19216
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -19214,7 +19220,7 @@ ${c}
|
|
|
19214
19220
|
(() => {
|
|
19215
19221
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
19216
19222
|
children: renderHTML({
|
|
19217
|
-
html: d ?? `Select ${
|
|
19223
|
+
html: d ?? `Select ${fG.join(" and ", 2)}...`
|
|
19218
19224
|
})
|
|
19219
19225
|
});
|
|
19220
19226
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -19228,8 +19234,8 @@ ${c}
|
|
|
19228
19234
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
19229
19235
|
size: "xs",
|
|
19230
19236
|
variant: "link",
|
|
19231
|
-
onClick:
|
|
19232
|
-
children:
|
|
19237
|
+
onClick: $W ? oG : sG,
|
|
19238
|
+
children: $W ? "Deselect all" : "Select all"
|
|
19233
19239
|
})
|
|
19234
19240
|
})
|
|
19235
19241
|
]
|
|
@@ -19239,8 +19245,8 @@ ${c}
|
|
|
19239
19245
|
className: "mt-2 w-full",
|
|
19240
19246
|
placeholder: g,
|
|
19241
19247
|
value: g,
|
|
19242
|
-
onChange: (e2) =>
|
|
19243
|
-
children:
|
|
19248
|
+
onChange: (e2) => rG(e2.target.value),
|
|
19249
|
+
children: dG.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
19244
19250
|
value: e2,
|
|
19245
19251
|
children: e2
|
|
19246
19252
|
}, e2))
|
|
@@ -19276,14 +19282,14 @@ ${c}
|
|
|
19276
19282
|
"aria-label": "File browser",
|
|
19277
19283
|
"aria-multiselectable": u,
|
|
19278
19284
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
19279
|
-
children:
|
|
19285
|
+
children: cG.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
19280
19286
|
role: "row",
|
|
19281
19287
|
ref: (e3) => {
|
|
19282
19288
|
O.current[r2] = e3;
|
|
19283
19289
|
},
|
|
19284
19290
|
tabIndex: r2 === w ? 0 : -1,
|
|
19285
19291
|
onFocus: () => E(r2),
|
|
19286
|
-
onKeyDown: (e3) =>
|
|
19292
|
+
onKeyDown: (e3) => uG(e3, r2),
|
|
19287
19293
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
19288
19294
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
19289
19295
|
}),
|
|
@@ -19326,7 +19332,7 @@ ${c}
|
|
|
19326
19332
|
children: [
|
|
19327
19333
|
e.length,
|
|
19328
19334
|
" ",
|
|
19329
|
-
|
|
19335
|
+
fG.join(" or ", e.length),
|
|
19330
19336
|
" ",
|
|
19331
19337
|
"selected"
|
|
19332
19338
|
]
|
|
@@ -19346,7 +19352,7 @@ ${c}
|
|
|
19346
19352
|
marginBlock: 0
|
|
19347
19353
|
},
|
|
19348
19354
|
className: "m-0 text-xs text-muted-foreground",
|
|
19349
|
-
children:
|
|
19355
|
+
children: tG
|
|
19350
19356
|
})
|
|
19351
19357
|
})
|
|
19352
19358
|
]
|
|
@@ -24728,55 +24734,55 @@ ${c}
|
|
|
24728
24734
|
return typeof S == "function" ? S : noop$2;
|
|
24729
24735
|
}, [
|
|
24730
24736
|
S
|
|
24731
|
-
]), q = (0, import_react.useRef)(null), Z = (0, import_react.useRef)(null),
|
|
24732
|
-
!
|
|
24733
|
-
Z.current && (Z.current.files.length || (
|
|
24737
|
+
]), q = (0, import_react.useRef)(null), Z = (0, import_react.useRef)(null), YW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), XW = YW[0], ZW = YW[1], QW = XW.isFocused, $W = XW.isFileDialogActive, eG = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), tG = function() {
|
|
24738
|
+
!eG.current && $W && setTimeout(function() {
|
|
24739
|
+
Z.current && (Z.current.files.length || (ZW({
|
|
24734
24740
|
type: "closeDialog"
|
|
24735
24741
|
}), G()));
|
|
24736
24742
|
}, 300);
|
|
24737
24743
|
};
|
|
24738
24744
|
(0, import_react.useEffect)(function() {
|
|
24739
|
-
return window.addEventListener("focus",
|
|
24740
|
-
window.removeEventListener("focus",
|
|
24745
|
+
return window.addEventListener("focus", tG, false), function() {
|
|
24746
|
+
window.removeEventListener("focus", tG, false);
|
|
24741
24747
|
};
|
|
24742
24748
|
}, [
|
|
24743
24749
|
Z,
|
|
24744
|
-
|
|
24750
|
+
$W,
|
|
24745
24751
|
G,
|
|
24746
|
-
|
|
24752
|
+
eG
|
|
24747
24753
|
]);
|
|
24748
|
-
var
|
|
24749
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
24754
|
+
var nG = (0, import_react.useRef)([]), rG = (0, import_react.useRef)([]), iG = function(e2) {
|
|
24755
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), nG.current = []);
|
|
24750
24756
|
};
|
|
24751
24757
|
(0, import_react.useEffect)(function() {
|
|
24752
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
24753
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
24758
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", iG, false)), function() {
|
|
24759
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", iG));
|
|
24754
24760
|
};
|
|
24755
24761
|
}, [
|
|
24756
24762
|
q,
|
|
24757
24763
|
O
|
|
24758
24764
|
]), (0, import_react.useEffect)(function() {
|
|
24759
24765
|
var e2 = function(e3) {
|
|
24760
|
-
|
|
24766
|
+
rG.current = [].concat(_toConsumableArray(rG.current), [
|
|
24761
24767
|
e3.target
|
|
24762
|
-
]), isEvtWithFiles(e3) &&
|
|
24768
|
+
]), isEvtWithFiles(e3) && ZW({
|
|
24763
24769
|
isDragGlobal: true,
|
|
24764
24770
|
type: "setDragGlobal"
|
|
24765
24771
|
});
|
|
24766
24772
|
}, r2 = function(e3) {
|
|
24767
|
-
|
|
24773
|
+
rG.current = rG.current.filter(function(r3) {
|
|
24768
24774
|
return r3 !== e3.target && r3 !== null;
|
|
24769
|
-
}), !(
|
|
24775
|
+
}), !(rG.current.length > 0) && ZW({
|
|
24770
24776
|
isDragGlobal: false,
|
|
24771
24777
|
type: "setDragGlobal"
|
|
24772
24778
|
});
|
|
24773
24779
|
}, c2 = function() {
|
|
24774
|
-
|
|
24780
|
+
rG.current = [], ZW({
|
|
24775
24781
|
isDragGlobal: false,
|
|
24776
24782
|
type: "setDragGlobal"
|
|
24777
24783
|
});
|
|
24778
24784
|
}, l2 = function() {
|
|
24779
|
-
|
|
24785
|
+
rG.current = [], ZW({
|
|
24780
24786
|
isDragGlobal: false,
|
|
24781
24787
|
type: "setDragGlobal"
|
|
24782
24788
|
});
|
|
@@ -24794,12 +24800,12 @@ ${c}
|
|
|
24794
24800
|
E,
|
|
24795
24801
|
l
|
|
24796
24802
|
]);
|
|
24797
|
-
var
|
|
24803
|
+
var aG = (0, import_react.useCallback)(function(e2) {
|
|
24798
24804
|
R ? R(e2) : console.error(e2);
|
|
24799
24805
|
}, [
|
|
24800
24806
|
R
|
|
24801
|
-
]),
|
|
24802
|
-
e2.preventDefault(), e2.persist(),
|
|
24807
|
+
]), oG = (0, import_react.useCallback)(function(e2) {
|
|
24808
|
+
e2.preventDefault(), e2.persist(), yG(e2), nG.current = [].concat(_toConsumableArray(nG.current), [
|
|
24803
24809
|
e2.target
|
|
24804
24810
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24805
24811
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -24812,7 +24818,7 @@ ${c}
|
|
|
24812
24818
|
maxFiles: m,
|
|
24813
24819
|
validator: z
|
|
24814
24820
|
});
|
|
24815
|
-
|
|
24821
|
+
ZW({
|
|
24816
24822
|
isDragAccept: l2,
|
|
24817
24823
|
isDragReject: c2 > 0 && !l2,
|
|
24818
24824
|
isDragActive: true,
|
|
@@ -24820,12 +24826,12 @@ ${c}
|
|
|
24820
24826
|
}), h && h(e2);
|
|
24821
24827
|
}
|
|
24822
24828
|
}).catch(function(e3) {
|
|
24823
|
-
return
|
|
24829
|
+
return aG(e3);
|
|
24824
24830
|
});
|
|
24825
24831
|
}, [
|
|
24826
24832
|
u,
|
|
24827
24833
|
h,
|
|
24828
|
-
|
|
24834
|
+
aG,
|
|
24829
24835
|
L,
|
|
24830
24836
|
B,
|
|
24831
24837
|
f,
|
|
@@ -24833,8 +24839,8 @@ ${c}
|
|
|
24833
24839
|
p,
|
|
24834
24840
|
m,
|
|
24835
24841
|
z
|
|
24836
|
-
]),
|
|
24837
|
-
e2.preventDefault(), e2.persist(),
|
|
24842
|
+
]), sG = (0, import_react.useCallback)(function(e2) {
|
|
24843
|
+
e2.preventDefault(), e2.persist(), yG(e2);
|
|
24838
24844
|
var r2 = isEvtWithFiles(e2);
|
|
24839
24845
|
if (r2 && e2.dataTransfer) try {
|
|
24840
24846
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -24844,12 +24850,12 @@ ${c}
|
|
|
24844
24850
|
}, [
|
|
24845
24851
|
_,
|
|
24846
24852
|
L
|
|
24847
|
-
]),
|
|
24848
|
-
e2.preventDefault(), e2.persist(),
|
|
24849
|
-
var r2 =
|
|
24853
|
+
]), cG = (0, import_react.useCallback)(function(e2) {
|
|
24854
|
+
e2.preventDefault(), e2.persist(), yG(e2);
|
|
24855
|
+
var r2 = nG.current.filter(function(e3) {
|
|
24850
24856
|
return q.current && q.current.contains(e3);
|
|
24851
24857
|
}), c2 = r2.indexOf(e2.target);
|
|
24852
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
24858
|
+
c2 !== -1 && r2.splice(c2, 1), nG.current = r2, !(r2.length > 0) && (ZW({
|
|
24853
24859
|
type: "setDraggedFiles",
|
|
24854
24860
|
isDragActive: false,
|
|
24855
24861
|
isDragAccept: false,
|
|
@@ -24859,7 +24865,7 @@ ${c}
|
|
|
24859
24865
|
q,
|
|
24860
24866
|
g,
|
|
24861
24867
|
L
|
|
24862
|
-
]),
|
|
24868
|
+
]), lG = (0, import_react.useCallback)(function(e2, r2) {
|
|
24863
24869
|
var c2 = [], l2 = [];
|
|
24864
24870
|
e2.forEach(function(e3) {
|
|
24865
24871
|
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;
|
|
@@ -24883,14 +24889,14 @@ ${c}
|
|
|
24883
24889
|
TOO_MANY_FILES_REJECTION
|
|
24884
24890
|
]
|
|
24885
24891
|
});
|
|
24886
|
-
}), c2.splice(0)),
|
|
24892
|
+
}), c2.splice(0)), ZW({
|
|
24887
24893
|
acceptedFiles: c2,
|
|
24888
24894
|
fileRejections: l2,
|
|
24889
24895
|
isDragReject: l2.length > 0,
|
|
24890
24896
|
type: "setFiles"
|
|
24891
24897
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
24892
24898
|
}, [
|
|
24893
|
-
|
|
24899
|
+
ZW,
|
|
24894
24900
|
p,
|
|
24895
24901
|
B,
|
|
24896
24902
|
f,
|
|
@@ -24900,22 +24906,22 @@ ${c}
|
|
|
24900
24906
|
y,
|
|
24901
24907
|
b,
|
|
24902
24908
|
z
|
|
24903
|
-
]),
|
|
24904
|
-
e2.preventDefault(), e2.persist(),
|
|
24905
|
-
isPropagationStopped(e2) && !L ||
|
|
24909
|
+
]), uG = (0, import_react.useCallback)(function(e2) {
|
|
24910
|
+
e2.preventDefault(), e2.persist(), yG(e2), nG.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24911
|
+
isPropagationStopped(e2) && !L || lG(r2, e2);
|
|
24906
24912
|
}).catch(function(e3) {
|
|
24907
|
-
return
|
|
24908
|
-
}),
|
|
24913
|
+
return aG(e3);
|
|
24914
|
+
}), ZW({
|
|
24909
24915
|
type: "reset"
|
|
24910
24916
|
});
|
|
24911
24917
|
}, [
|
|
24912
24918
|
u,
|
|
24913
|
-
|
|
24914
|
-
|
|
24919
|
+
lG,
|
|
24920
|
+
aG,
|
|
24915
24921
|
L
|
|
24916
|
-
]),
|
|
24917
|
-
if (
|
|
24918
|
-
|
|
24922
|
+
]), dG = (0, import_react.useCallback)(function() {
|
|
24923
|
+
if (eG.current) {
|
|
24924
|
+
ZW({
|
|
24919
24925
|
type: "openDialog"
|
|
24920
24926
|
}), W();
|
|
24921
24927
|
var e2 = {
|
|
@@ -24925,66 +24931,66 @@ ${c}
|
|
|
24925
24931
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
24926
24932
|
return u(e3);
|
|
24927
24933
|
}).then(function(e3) {
|
|
24928
|
-
|
|
24934
|
+
lG(e3, null), ZW({
|
|
24929
24935
|
type: "closeDialog"
|
|
24930
24936
|
});
|
|
24931
24937
|
}).catch(function(e3) {
|
|
24932
|
-
isAbort(e3) ? (G(e3),
|
|
24938
|
+
isAbort(e3) ? (G(e3), ZW({
|
|
24933
24939
|
type: "closeDialog"
|
|
24934
|
-
})) : isSecurityError(e3) ? (
|
|
24940
|
+
})) : isSecurityError(e3) ? (eG.current = false, Z.current ? (Z.current.value = null, Z.current.click()) : aG(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."))) : aG(e3);
|
|
24935
24941
|
});
|
|
24936
24942
|
return;
|
|
24937
24943
|
}
|
|
24938
|
-
Z.current && (
|
|
24944
|
+
Z.current && (ZW({
|
|
24939
24945
|
type: "openDialog"
|
|
24940
24946
|
}), W(), Z.current.value = null, Z.current.click());
|
|
24941
24947
|
}, [
|
|
24942
|
-
|
|
24948
|
+
ZW,
|
|
24943
24949
|
W,
|
|
24944
24950
|
G,
|
|
24945
24951
|
T,
|
|
24946
|
-
|
|
24947
|
-
|
|
24952
|
+
lG,
|
|
24953
|
+
aG,
|
|
24948
24954
|
H,
|
|
24949
24955
|
p
|
|
24950
|
-
]),
|
|
24951
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
24956
|
+
]), fG = (0, import_react.useCallback)(function(e2) {
|
|
24957
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), dG());
|
|
24952
24958
|
}, [
|
|
24953
24959
|
q,
|
|
24954
|
-
|
|
24955
|
-
]),
|
|
24956
|
-
|
|
24960
|
+
dG
|
|
24961
|
+
]), pG = (0, import_react.useCallback)(function() {
|
|
24962
|
+
ZW({
|
|
24957
24963
|
type: "focus"
|
|
24958
24964
|
});
|
|
24959
|
-
}, []),
|
|
24960
|
-
|
|
24965
|
+
}, []), mG = (0, import_react.useCallback)(function() {
|
|
24966
|
+
ZW({
|
|
24961
24967
|
type: "blur"
|
|
24962
24968
|
});
|
|
24963
|
-
}, []),
|
|
24964
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
24969
|
+
}, []), hG = (0, import_react.useCallback)(function() {
|
|
24970
|
+
j || (isIeOrEdge() ? setTimeout(dG, 0) : dG());
|
|
24965
24971
|
}, [
|
|
24966
24972
|
j,
|
|
24967
|
-
|
|
24968
|
-
]),
|
|
24973
|
+
dG
|
|
24974
|
+
]), gG = function(e2) {
|
|
24969
24975
|
return l ? null : e2;
|
|
24970
|
-
}, hG = function(e2) {
|
|
24971
|
-
return M ? null : mG(e2);
|
|
24972
|
-
}, gG = function(e2) {
|
|
24973
|
-
return I ? null : mG(e2);
|
|
24974
24976
|
}, _G = function(e2) {
|
|
24977
|
+
return M ? null : gG(e2);
|
|
24978
|
+
}, vG = function(e2) {
|
|
24979
|
+
return I ? null : gG(e2);
|
|
24980
|
+
}, yG = function(e2) {
|
|
24975
24981
|
L && e2.stopPropagation();
|
|
24976
|
-
},
|
|
24982
|
+
}, bG = (0, import_react.useMemo)(function() {
|
|
24977
24983
|
return function() {
|
|
24978
24984
|
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);
|
|
24979
24985
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
24980
|
-
onKeyDown:
|
|
24981
|
-
onFocus:
|
|
24982
|
-
onBlur:
|
|
24983
|
-
onClick:
|
|
24984
|
-
onDragEnter:
|
|
24985
|
-
onDragOver:
|
|
24986
|
-
onDragLeave:
|
|
24987
|
-
onDrop:
|
|
24986
|
+
onKeyDown: _G(composeEventHandlers(d2, fG)),
|
|
24987
|
+
onFocus: _G(composeEventHandlers(f2, pG)),
|
|
24988
|
+
onBlur: _G(composeEventHandlers(p2, mG)),
|
|
24989
|
+
onClick: gG(composeEventHandlers(m2, hG)),
|
|
24990
|
+
onDragEnter: vG(composeEventHandlers(h2, oG)),
|
|
24991
|
+
onDragOver: vG(composeEventHandlers(g2, sG)),
|
|
24992
|
+
onDragLeave: vG(composeEventHandlers(_2, cG)),
|
|
24993
|
+
onDrop: vG(composeEventHandlers(v2, uG)),
|
|
24988
24994
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
24989
24995
|
}, c2, q), !l && !M ? {
|
|
24990
24996
|
tabIndex: 0
|
|
@@ -24992,20 +24998,20 @@ ${c}
|
|
|
24992
24998
|
};
|
|
24993
24999
|
}, [
|
|
24994
25000
|
q,
|
|
24995
|
-
uG,
|
|
24996
|
-
dG,
|
|
24997
25001
|
fG,
|
|
24998
25002
|
pG,
|
|
24999
|
-
|
|
25000
|
-
|
|
25003
|
+
mG,
|
|
25004
|
+
hG,
|
|
25001
25005
|
oG,
|
|
25006
|
+
sG,
|
|
25002
25007
|
cG,
|
|
25008
|
+
uG,
|
|
25003
25009
|
M,
|
|
25004
25010
|
I,
|
|
25005
25011
|
l
|
|
25006
|
-
]),
|
|
25012
|
+
]), xG = (0, import_react.useCallback)(function(e2) {
|
|
25007
25013
|
e2.stopPropagation();
|
|
25008
|
-
}, []),
|
|
25014
|
+
}, []), SG = (0, import_react.useMemo)(function() {
|
|
25009
25015
|
return function() {
|
|
25010
25016
|
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);
|
|
25011
25017
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -25024,8 +25030,8 @@ ${c}
|
|
|
25024
25030
|
width: "1px",
|
|
25025
25031
|
whiteSpace: "nowrap"
|
|
25026
25032
|
},
|
|
25027
|
-
onChange:
|
|
25028
|
-
onClick:
|
|
25033
|
+
onChange: gG(composeEventHandlers(l2, uG)),
|
|
25034
|
+
onClick: gG(composeEventHandlers(u2, xG)),
|
|
25029
25035
|
tabIndex: -1
|
|
25030
25036
|
}, c2, Z)), d2);
|
|
25031
25037
|
};
|
|
@@ -25033,16 +25039,16 @@ ${c}
|
|
|
25033
25039
|
Z,
|
|
25034
25040
|
c,
|
|
25035
25041
|
p,
|
|
25036
|
-
|
|
25042
|
+
uG,
|
|
25037
25043
|
l
|
|
25038
25044
|
]);
|
|
25039
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
25040
|
-
isFocused:
|
|
25041
|
-
getRootProps:
|
|
25042
|
-
getInputProps:
|
|
25045
|
+
return _objectSpread$7(_objectSpread$7({}, XW), {}, {
|
|
25046
|
+
isFocused: QW && !l,
|
|
25047
|
+
getRootProps: bG,
|
|
25048
|
+
getInputProps: SG,
|
|
25043
25049
|
rootRef: q,
|
|
25044
25050
|
inputRef: Z,
|
|
25045
|
-
open:
|
|
25051
|
+
open: gG(dG)
|
|
25046
25052
|
});
|
|
25047
25053
|
}
|
|
25048
25054
|
function reducer$2(e, r) {
|
|
@@ -25274,47 +25280,47 @@ ${c}
|
|
|
25274
25280
|
html: I
|
|
25275
25281
|
})
|
|
25276
25282
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
25277
|
-
let q = w && "text-primary", Z = T && "text-destructive",
|
|
25278
|
-
r[48] !== q || r[49] !== Z ? (
|
|
25279
|
-
let
|
|
25280
|
-
r[51] ===
|
|
25283
|
+
let q = w && "text-primary", Z = T && "text-destructive", YW;
|
|
25284
|
+
r[48] !== q || r[49] !== Z ? (YW = cn(q, Z), r[48] = q, r[49] = Z, r[50] = YW) : YW = r[50];
|
|
25285
|
+
let XW;
|
|
25286
|
+
r[51] === YW ? XW = r[52] : (XW = (0, import_jsx_runtime.jsx)(Upload, {
|
|
25281
25287
|
strokeWidth: 1.4,
|
|
25282
|
-
className:
|
|
25283
|
-
}), r[51] =
|
|
25284
|
-
let
|
|
25285
|
-
r[53] !==
|
|
25286
|
-
let
|
|
25287
|
-
r[56] ===
|
|
25288
|
+
className: YW
|
|
25289
|
+
}), r[51] = YW, r[52] = XW);
|
|
25290
|
+
let ZW = w && "text-primary", QW = T && "text-destructive", $W;
|
|
25291
|
+
r[53] !== ZW || r[54] !== QW ? ($W = cn(ZW, QW), r[53] = ZW, r[54] = QW, r[55] = $W) : $W = r[55];
|
|
25292
|
+
let eG;
|
|
25293
|
+
r[56] === $W ? eG = r[57] : (eG = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
25288
25294
|
strokeWidth: 1.4,
|
|
25289
|
-
className:
|
|
25290
|
-
}), r[56] =
|
|
25291
|
-
let
|
|
25292
|
-
r[58] !==
|
|
25295
|
+
className: $W
|
|
25296
|
+
}), r[56] = $W, r[57] = eG);
|
|
25297
|
+
let tG;
|
|
25298
|
+
r[58] !== XW || r[59] !== eG ? (tG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25293
25299
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
25294
25300
|
children: [
|
|
25295
|
-
|
|
25296
|
-
|
|
25301
|
+
XW,
|
|
25302
|
+
eG
|
|
25297
25303
|
]
|
|
25298
|
-
}), r[58] =
|
|
25299
|
-
let
|
|
25300
|
-
r[61] !== G || r[62] !==
|
|
25304
|
+
}), r[58] = XW, r[59] = eG, r[60] = tG) : tG = r[60];
|
|
25305
|
+
let rG;
|
|
25306
|
+
r[61] !== G || r[62] !== tG ? (rG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25301
25307
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
25302
25308
|
children: [
|
|
25303
25309
|
G,
|
|
25304
|
-
|
|
25310
|
+
tG
|
|
25305
25311
|
]
|
|
25306
|
-
}), r[61] = G, r[62] =
|
|
25307
|
-
let
|
|
25308
|
-
r[64] !== W || r[65] !==
|
|
25312
|
+
}), r[61] = G, r[62] = tG, r[63] = rG) : rG = r[63];
|
|
25313
|
+
let iG;
|
|
25314
|
+
r[64] !== W || r[65] !== rG || r[66] !== z || r[67] !== B ? (iG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25309
25315
|
className: z,
|
|
25310
25316
|
...B,
|
|
25311
25317
|
children: [
|
|
25312
25318
|
W,
|
|
25313
|
-
|
|
25319
|
+
rG
|
|
25314
25320
|
]
|
|
25315
|
-
}), r[64] = W, r[65] =
|
|
25316
|
-
let
|
|
25317
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (
|
|
25321
|
+
}), r[64] = W, r[65] = rG, r[66] = z, r[67] = B, r[68] = iG) : iG = r[68];
|
|
25322
|
+
let aG;
|
|
25323
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (aG = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
25318
25324
|
className: "flex flex-row gap-1",
|
|
25319
25325
|
children: [
|
|
25320
25326
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -25350,17 +25356,17 @@ ${c}
|
|
|
25350
25356
|
})
|
|
25351
25357
|
})
|
|
25352
25358
|
]
|
|
25353
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] =
|
|
25354
|
-
let
|
|
25355
|
-
return r[75] !==
|
|
25359
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] = aG) : aG = r[74];
|
|
25360
|
+
let oG;
|
|
25361
|
+
return r[75] !== iG || r[76] !== aG ? (oG = (0, import_jsx_runtime.jsx)("section", {
|
|
25356
25362
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
25357
25363
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
25358
25364
|
children: [
|
|
25359
|
-
|
|
25360
|
-
|
|
25365
|
+
iG,
|
|
25366
|
+
aG
|
|
25361
25367
|
]
|
|
25362
25368
|
})
|
|
25363
|
-
}), r[75] =
|
|
25369
|
+
}), r[75] = iG, r[76] = aG, r[77] = oG) : oG = r[77], oG;
|
|
25364
25370
|
};
|
|
25365
25371
|
function _temp$11(e) {
|
|
25366
25372
|
Logger.error(e), toast({
|
|
@@ -25463,68 +25469,68 @@ ${c}
|
|
|
25463
25469
|
html: f
|
|
25464
25470
|
})
|
|
25465
25471
|
}), r[13] = f, r[14] = Z);
|
|
25466
|
-
let
|
|
25467
|
-
r[15] === L ?
|
|
25472
|
+
let YW;
|
|
25473
|
+
r[15] === L ? YW = r[16] : (YW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25468
25474
|
kind: "danger",
|
|
25469
25475
|
className: "rounded",
|
|
25470
25476
|
children: L ?? "Invalid input"
|
|
25471
|
-
}), r[15] = L, r[16] =
|
|
25472
|
-
let
|
|
25473
|
-
r[17] === c ?
|
|
25477
|
+
}), r[15] = L, r[16] = YW);
|
|
25478
|
+
let XW;
|
|
25479
|
+
r[17] === c ? XW = r[18] : (XW = (0, import_jsx_runtime.jsx)("div", {
|
|
25474
25480
|
children: c
|
|
25475
|
-
}), r[17] = c, r[18] =
|
|
25476
|
-
let
|
|
25477
|
-
r[19] !== S || r[20] !== w || r[21] !== b ? (
|
|
25481
|
+
}), r[17] = c, r[18] = XW);
|
|
25482
|
+
let ZW;
|
|
25483
|
+
r[19] !== S || r[20] !== w || r[21] !== b ? (ZW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
25478
25484
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
25479
25485
|
variant: "text",
|
|
25480
25486
|
onClick: (e2) => {
|
|
25481
25487
|
e2.preventDefault(), B();
|
|
25482
25488
|
},
|
|
25483
25489
|
children: S
|
|
25484
|
-
}), w), r[19] = S, r[20] = w, r[21] = b, r[22] =
|
|
25485
|
-
let
|
|
25486
|
-
r[23] === m ?
|
|
25490
|
+
}), w), r[19] = S, r[20] = w, r[21] = b, r[22] = ZW) : ZW = r[22];
|
|
25491
|
+
let QW = v || m, $W;
|
|
25492
|
+
r[23] === m ? $W = r[24] : ($W = m && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
25487
25493
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
25488
|
-
}), r[23] = m, r[24] =
|
|
25489
|
-
let
|
|
25490
|
-
r[25] !== g || r[26] !==
|
|
25494
|
+
}), r[23] = m, r[24] = $W);
|
|
25495
|
+
let eG;
|
|
25496
|
+
r[25] !== g || r[26] !== QW || r[27] !== $W || r[28] !== I ? (eG = (0, import_jsx_runtime.jsxs)(Button, {
|
|
25491
25497
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
25492
25498
|
variant: I,
|
|
25493
|
-
disabled:
|
|
25499
|
+
disabled: QW,
|
|
25494
25500
|
type: "submit",
|
|
25495
25501
|
children: [
|
|
25496
|
-
|
|
25502
|
+
$W,
|
|
25497
25503
|
g
|
|
25498
25504
|
]
|
|
25499
|
-
}), r[25] = g, r[26] =
|
|
25500
|
-
let $W;
|
|
25501
|
-
r[30] !== _ || r[31] !== QW ? ($W = withTooltip(QW, _), r[30] = _, r[31] = QW, r[32] = $W) : $W = r[32];
|
|
25505
|
+
}), r[25] = g, r[26] = QW, r[27] = $W, r[28] = I, r[29] = eG) : eG = r[29];
|
|
25502
25506
|
let tG;
|
|
25503
|
-
r[
|
|
25507
|
+
r[30] !== _ || r[31] !== eG ? (tG = withTooltip(eG, _), r[30] = _, r[31] = eG, r[32] = tG) : tG = r[32];
|
|
25508
|
+
let rG;
|
|
25509
|
+
r[33] !== tG || r[34] !== ZW ? (rG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25504
25510
|
className: "flex justify-end gap-2 font-code",
|
|
25505
25511
|
children: [
|
|
25506
|
-
|
|
25507
|
-
|
|
25512
|
+
ZW,
|
|
25513
|
+
tG
|
|
25508
25514
|
]
|
|
25509
|
-
}), r[33] =
|
|
25510
|
-
let
|
|
25511
|
-
r[36] !==
|
|
25515
|
+
}), r[33] = tG, r[34] = ZW, r[35] = rG) : rG = r[35];
|
|
25516
|
+
let iG;
|
|
25517
|
+
r[36] !== rG || r[37] !== G || r[38] !== q || r[39] !== Z || r[40] !== YW || r[41] !== XW ? (iG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25512
25518
|
className: G,
|
|
25513
25519
|
onKeyDown: q,
|
|
25514
25520
|
children: [
|
|
25515
25521
|
Z,
|
|
25516
|
-
|
|
25517
|
-
|
|
25518
|
-
|
|
25522
|
+
YW,
|
|
25523
|
+
XW,
|
|
25524
|
+
rG
|
|
25519
25525
|
]
|
|
25520
|
-
}), r[36] =
|
|
25521
|
-
let
|
|
25522
|
-
return r[43] !==
|
|
25526
|
+
}), r[36] = rG, r[37] = G, r[38] = q, r[39] = Z, r[40] = YW, r[41] = XW, r[42] = iG) : iG = r[42];
|
|
25527
|
+
let aG;
|
|
25528
|
+
return r[43] !== iG || r[44] !== H ? (aG = (0, import_jsx_runtime.jsx)("form", {
|
|
25523
25529
|
className: "contents",
|
|
25524
25530
|
ref: j,
|
|
25525
25531
|
onSubmit: H,
|
|
25526
|
-
children:
|
|
25527
|
-
}), r[43] =
|
|
25532
|
+
children: iG
|
|
25533
|
+
}), r[43] = iG, r[44] = H, r[45] = aG) : aG = r[45], aG;
|
|
25528
25534
|
};
|
|
25529
25535
|
var Form = (e) => {
|
|
25530
25536
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -27310,8 +27316,8 @@ ${c}
|
|
|
27310
27316
|
indices: c2
|
|
27311
27317
|
}));
|
|
27312
27318
|
}, r[31] = u, r[32] = Z);
|
|
27313
|
-
let
|
|
27314
|
-
r[33] === u ?
|
|
27319
|
+
let YW = useEvent_default(Z), XW;
|
|
27320
|
+
r[33] === u ? XW = r[34] : (XW = (e2) => {
|
|
27315
27321
|
e2 && u((r2) => ({
|
|
27316
27322
|
...r2,
|
|
27317
27323
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -27320,9 +27326,9 @@ ${c}
|
|
|
27320
27326
|
range: e2.range,
|
|
27321
27327
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
27322
27328
|
}));
|
|
27323
|
-
}, r[33] = u, r[34] =
|
|
27324
|
-
let
|
|
27325
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
27329
|
+
}, r[33] = u, r[34] = XW);
|
|
27330
|
+
let ZW = useEvent_default(XW), QW = m.frames ?? void 0, $W = useEvent_default(_temp3$3), eG;
|
|
27331
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== YW || r[42] !== ZW || r[43] !== QW || r[44] !== $W || r[45] !== R ? (eG = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
27326
27332
|
...m,
|
|
27327
27333
|
layout: h,
|
|
27328
27334
|
onRelayout: R,
|
|
@@ -27330,13 +27336,13 @@ ${c}
|
|
|
27330
27336
|
onTreemapClick: W,
|
|
27331
27337
|
onSunburstClick: q,
|
|
27332
27338
|
config: L,
|
|
27333
|
-
onClick:
|
|
27334
|
-
onSelected:
|
|
27339
|
+
onClick: YW,
|
|
27340
|
+
onSelected: ZW,
|
|
27335
27341
|
className: "w-full",
|
|
27336
27342
|
useResizeHandler: true,
|
|
27337
|
-
frames:
|
|
27338
|
-
onError:
|
|
27339
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
27343
|
+
frames: QW,
|
|
27344
|
+
onError: $W
|
|
27345
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = YW, r[42] = ZW, r[43] = QW, r[44] = $W, r[45] = R, r[46] = eG) : eG = r[46], eG;
|
|
27340
27346
|
});
|
|
27341
27347
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
27342
27348
|
function _temp$8(e) {
|
|
@@ -27481,8 +27487,8 @@ ${c}
|
|
|
27481
27487
|
onPointerUp: H
|
|
27482
27488
|
})
|
|
27483
27489
|
}), c[19] = L, c[20] = z, c[21] = H, c[22] = Z) : Z = c[22];
|
|
27484
|
-
let
|
|
27485
|
-
c[23] !== p.setFalse || c[24] !== p.setTrue ? (
|
|
27490
|
+
let YW;
|
|
27491
|
+
c[23] !== p.setFalse || c[24] !== p.setTrue ? (YW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27486
27492
|
asChild: true,
|
|
27487
27493
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27488
27494
|
"data-testid": "thumb",
|
|
@@ -27492,30 +27498,30 @@ ${c}
|
|
|
27492
27498
|
onMouseEnter: p.setTrue,
|
|
27493
27499
|
onMouseLeave: p.setFalse
|
|
27494
27500
|
})
|
|
27495
|
-
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] =
|
|
27496
|
-
let
|
|
27497
|
-
c[26] !== m || c[27] !== u.value || c[28] !== d ? (
|
|
27501
|
+
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] = YW) : YW = c[25];
|
|
27502
|
+
let XW;
|
|
27503
|
+
c[26] !== m || c[27] !== u.value || c[28] !== d ? (XW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27498
27504
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
27499
27505
|
locale: m
|
|
27500
27506
|
})
|
|
27501
|
-
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] =
|
|
27502
|
-
let
|
|
27503
|
-
c[30] ===
|
|
27504
|
-
children:
|
|
27505
|
-
}), c[30] =
|
|
27506
|
-
let
|
|
27507
|
-
c[32] !== f || c[33] !==
|
|
27507
|
+
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] = XW) : XW = c[29];
|
|
27508
|
+
let ZW;
|
|
27509
|
+
c[30] === XW ? ZW = c[31] : (ZW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27510
|
+
children: XW
|
|
27511
|
+
}), c[30] = XW, c[31] = ZW);
|
|
27512
|
+
let QW;
|
|
27513
|
+
c[32] !== f || c[33] !== YW || c[34] !== ZW ? (QW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27508
27514
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27509
27515
|
delayDuration: 0,
|
|
27510
27516
|
open: f,
|
|
27511
27517
|
children: [
|
|
27512
|
-
|
|
27513
|
-
|
|
27518
|
+
YW,
|
|
27519
|
+
ZW
|
|
27514
27520
|
]
|
|
27515
27521
|
})
|
|
27516
|
-
}), c[32] = f, c[33] =
|
|
27517
|
-
let
|
|
27518
|
-
c[36] !== p.setFalse || c[37] !== p.setTrue ? (
|
|
27522
|
+
}), c[32] = f, c[33] = YW, c[34] = ZW, c[35] = QW) : QW = c[35];
|
|
27523
|
+
let $W;
|
|
27524
|
+
c[36] !== p.setFalse || c[37] !== p.setTrue ? ($W = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27519
27525
|
asChild: true,
|
|
27520
27526
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27521
27527
|
"data-testid": "thumb",
|
|
@@ -27525,39 +27531,39 @@ ${c}
|
|
|
27525
27531
|
onMouseEnter: p.setTrue,
|
|
27526
27532
|
onMouseLeave: p.setFalse
|
|
27527
27533
|
})
|
|
27528
|
-
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] =
|
|
27529
|
-
let
|
|
27530
|
-
c[39] !== m || c[40] !== u.value || c[41] !== d ? (
|
|
27534
|
+
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] = $W) : $W = c[38];
|
|
27535
|
+
let eG;
|
|
27536
|
+
c[39] !== m || c[40] !== u.value || c[41] !== d ? (eG = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27531
27537
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
27532
27538
|
locale: m
|
|
27533
27539
|
})
|
|
27534
|
-
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] =
|
|
27535
|
-
let
|
|
27536
|
-
c[43] ===
|
|
27537
|
-
children:
|
|
27538
|
-
}), c[43] =
|
|
27539
|
-
let
|
|
27540
|
-
c[45] !== f || c[46] !==
|
|
27540
|
+
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] = eG) : eG = c[42];
|
|
27541
|
+
let tG;
|
|
27542
|
+
c[43] === eG ? tG = c[44] : (tG = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27543
|
+
children: eG
|
|
27544
|
+
}), c[43] = eG, c[44] = tG);
|
|
27545
|
+
let nG;
|
|
27546
|
+
c[45] !== f || c[46] !== $W || c[47] !== tG ? (nG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27541
27547
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27542
27548
|
delayDuration: 0,
|
|
27543
27549
|
open: f,
|
|
27544
27550
|
children: [
|
|
27545
|
-
|
|
27546
|
-
|
|
27551
|
+
$W,
|
|
27552
|
+
tG
|
|
27547
27553
|
]
|
|
27548
27554
|
})
|
|
27549
|
-
}), c[45] = f, c[46] =
|
|
27550
|
-
let
|
|
27551
|
-
return c[49] !== M || c[50] !== u || c[51] !== Z || c[52] !==
|
|
27555
|
+
}), c[45] = f, c[46] = $W, c[47] = tG, c[48] = nG) : nG = c[48];
|
|
27556
|
+
let rG;
|
|
27557
|
+
return c[49] !== M || c[50] !== u || c[51] !== Z || c[52] !== QW || c[53] !== nG || c[54] !== W ? (rG = (0, import_jsx_runtime.jsxs)(Root, {
|
|
27552
27558
|
ref: M,
|
|
27553
27559
|
className: W,
|
|
27554
27560
|
...u,
|
|
27555
27561
|
children: [
|
|
27556
27562
|
Z,
|
|
27557
|
-
|
|
27558
|
-
|
|
27563
|
+
QW,
|
|
27564
|
+
nG
|
|
27559
27565
|
]
|
|
27560
|
-
}), c[49] = M, c[50] = u, c[51] = Z, c[52] =
|
|
27566
|
+
}), c[49] = M, c[50] = u, c[51] = Z, c[52] = QW, c[53] = nG, c[54] = W, c[55] = rG) : rG = c[55], rG;
|
|
27561
27567
|
});
|
|
27562
27568
|
RangeSlider.displayName = Root.displayName;
|
|
27563
27569
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -27608,14 +27614,14 @@ ${c}
|
|
|
27608
27614
|
}, q = (e2) => {
|
|
27609
27615
|
m && l(e2);
|
|
27610
27616
|
}, r[10] = m, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27611
|
-
let Z,
|
|
27617
|
+
let Z, YW;
|
|
27612
27618
|
r[14] !== m || r[15] !== T || r[16] !== l || r[17] !== u ? (Z = () => {
|
|
27613
27619
|
m && !dequal(T, u) && l(T);
|
|
27614
|
-
},
|
|
27620
|
+
}, YW = () => {
|
|
27615
27621
|
m && !dequal(T, u) && l(T);
|
|
27616
|
-
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = Z, r[19] =
|
|
27617
|
-
let
|
|
27618
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== Z || r[31] !==
|
|
27622
|
+
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = Z, r[19] = YW) : (Z = r[18], YW = r[19]);
|
|
27623
|
+
let XW;
|
|
27624
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== Z || r[31] !== YW || r[32] !== b ? (XW = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
27619
27625
|
id: S,
|
|
27620
27626
|
className: W,
|
|
27621
27627
|
value: T,
|
|
@@ -27627,35 +27633,35 @@ ${c}
|
|
|
27627
27633
|
onValueChange: G,
|
|
27628
27634
|
onValueCommit: q,
|
|
27629
27635
|
onPointerUp: Z,
|
|
27630
|
-
onMouseUp:
|
|
27636
|
+
onMouseUp: YW,
|
|
27631
27637
|
valueMap: b
|
|
27632
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] =
|
|
27633
|
-
let
|
|
27634
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
27638
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] = YW, r[32] = b, r[33] = XW) : XW = r[33];
|
|
27639
|
+
let ZW;
|
|
27640
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (ZW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
27635
27641
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
27636
27642
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
27637
27643
|
locale: w
|
|
27638
27644
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
27639
27645
|
locale: w
|
|
27640
27646
|
})}`
|
|
27641
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
27642
|
-
let
|
|
27643
|
-
r[39] !==
|
|
27647
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = ZW) : ZW = r[38];
|
|
27648
|
+
let QW;
|
|
27649
|
+
r[39] !== XW || r[40] !== ZW || r[41] !== B ? (QW = (0, import_jsx_runtime.jsxs)("div", {
|
|
27644
27650
|
className: B,
|
|
27645
27651
|
children: [
|
|
27646
|
-
|
|
27647
|
-
|
|
27652
|
+
XW,
|
|
27653
|
+
ZW
|
|
27648
27654
|
]
|
|
27649
|
-
}), r[39] =
|
|
27650
|
-
let
|
|
27651
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
27655
|
+
}), r[39] = XW, r[40] = ZW, r[41] = B, r[42] = QW) : QW = r[42];
|
|
27656
|
+
let $W;
|
|
27657
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== QW || r[47] !== M || r[48] !== L ? ($W = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
27652
27658
|
label: c,
|
|
27653
27659
|
id: S,
|
|
27654
27660
|
align: M,
|
|
27655
27661
|
className: L,
|
|
27656
27662
|
fullWidth: v,
|
|
27657
|
-
children:
|
|
27658
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
27663
|
+
children: QW
|
|
27664
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = QW, r[47] = M, r[48] = L, r[49] = $W) : $W = r[49], $W;
|
|
27659
27665
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
27660
27666
|
r.exports = u;
|
|
27661
27667
|
var c = {
|
|
@@ -30954,40 +30960,40 @@ ${c}
|
|
|
30954
30960
|
areRegExpsEqual: H,
|
|
30955
30961
|
areSetsEqual: G,
|
|
30956
30962
|
createIsNestedEqual: r2
|
|
30957
|
-
}),
|
|
30958
|
-
function
|
|
30959
|
-
return
|
|
30963
|
+
}), YW = T(q);
|
|
30964
|
+
function XW(e3, r3) {
|
|
30965
|
+
return YW(e3, r3, void 0);
|
|
30960
30966
|
}
|
|
30961
|
-
var
|
|
30967
|
+
var ZW = T(l(q, {
|
|
30962
30968
|
createIsNestedEqual: function() {
|
|
30963
30969
|
return f;
|
|
30964
30970
|
}
|
|
30965
30971
|
}));
|
|
30966
|
-
function XW(e3, r3) {
|
|
30967
|
-
return YW(e3, r3, void 0);
|
|
30968
|
-
}
|
|
30969
|
-
var ZW = T(Z);
|
|
30970
30972
|
function QW(e3, r3) {
|
|
30971
|
-
return ZW(e3, r3,
|
|
30973
|
+
return ZW(e3, r3, void 0);
|
|
30974
|
+
}
|
|
30975
|
+
var $W = T(Z);
|
|
30976
|
+
function eG(e3, r3) {
|
|
30977
|
+
return $W(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30972
30978
|
}
|
|
30973
|
-
var
|
|
30979
|
+
var tG = T(l(Z, {
|
|
30974
30980
|
createIsNestedEqual: function() {
|
|
30975
30981
|
return f;
|
|
30976
30982
|
}
|
|
30977
30983
|
}));
|
|
30978
|
-
function
|
|
30979
|
-
return
|
|
30984
|
+
function nG(e3, r3) {
|
|
30985
|
+
return tG(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30980
30986
|
}
|
|
30981
|
-
function
|
|
30987
|
+
function rG(e3) {
|
|
30982
30988
|
return T(l(q, e3(q)));
|
|
30983
30989
|
}
|
|
30984
|
-
function
|
|
30990
|
+
function iG(e3) {
|
|
30985
30991
|
var r3 = T(l(Z, e3(Z)));
|
|
30986
30992
|
return (function(e4, c2, l2) {
|
|
30987
30993
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
30988
30994
|
});
|
|
30989
30995
|
}
|
|
30990
|
-
e2.circularDeepEqual =
|
|
30996
|
+
e2.circularDeepEqual = eG, e2.circularShallowEqual = nG, e2.createCustomCircularEqual = iG, e2.createCustomEqual = rG, e2.deepEqual = XW, e2.sameValueZeroEqual = f, e2.shallowEqual = QW, Object.defineProperty(e2, "__esModule", {
|
|
30991
30997
|
value: true
|
|
30992
30998
|
});
|
|
30993
30999
|
}));
|
|
@@ -31013,7 +31019,7 @@ ${c}
|
|
|
31013
31019
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
31014
31020
|
Object.defineProperty(e, "__esModule", {
|
|
31015
31021
|
value: true
|
|
31016
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
31022
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = uG, 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 = nG, e.setTopLeft = iG, e.setTransform = rG, e.sortLayoutItems = aG, e.sortLayoutItemsByColRow = sG, e.sortLayoutItemsByRowCol = oG, e.synchronizeLayoutWithChildren = cG, e.validateLayout = lG, e.withLayoutItem = v;
|
|
31017
31023
|
var r = require_fast_equals(), c = l(require_react());
|
|
31018
31024
|
function l(e2) {
|
|
31019
31025
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -31118,7 +31124,7 @@ ${c}
|
|
|
31118
31124
|
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);
|
|
31119
31125
|
}
|
|
31120
31126
|
function T(e2, r2, c2, l2) {
|
|
31121
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
31127
|
+
let u2 = B(e2), d2 = h(u2), f2 = aG(e2, r2), p2 = Array(e2.length);
|
|
31122
31128
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
31123
31129
|
let h3 = y(f2[m2]);
|
|
31124
31130
|
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;
|
|
@@ -31176,7 +31182,7 @@ ${c}
|
|
|
31176
31182
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
31177
31183
|
let h2 = r2.x, _2 = r2.y;
|
|
31178
31184
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
31179
|
-
let v2 =
|
|
31185
|
+
let v2 = aG(e2, f2);
|
|
31180
31186
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
31181
31187
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
31182
31188
|
if (b2 && m2) return g(e2);
|
|
@@ -31210,61 +31216,61 @@ ${c}
|
|
|
31210
31216
|
function G(e2) {
|
|
31211
31217
|
return e2 * 100 + "%";
|
|
31212
31218
|
}
|
|
31213
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, Z = (e2, r2, c2) => e2 < 0 ? r2 : c2,
|
|
31219
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, Z = (e2, r2, c2) => e2 < 0 ? r2 : c2, YW = (e2) => Math.max(0, e2), XW = (e2) => Math.max(0, e2), ZW = (e2, r2, c2) => {
|
|
31214
31220
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
31215
31221
|
return {
|
|
31216
31222
|
left: l2,
|
|
31217
31223
|
width: d2,
|
|
31218
31224
|
height: Z(f2, e2.height, u2),
|
|
31219
|
-
top:
|
|
31225
|
+
top: XW(f2)
|
|
31220
31226
|
};
|
|
31221
|
-
},
|
|
31227
|
+
}, QW = (e2, r2, c2) => {
|
|
31222
31228
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31223
31229
|
return {
|
|
31224
31230
|
top: l2,
|
|
31225
31231
|
height: d2,
|
|
31226
31232
|
width: q(e2.left, e2.width, f2, c2),
|
|
31227
|
-
left:
|
|
31233
|
+
left: YW(u2)
|
|
31228
31234
|
};
|
|
31229
|
-
},
|
|
31235
|
+
}, $W = (e2, r2, c2) => {
|
|
31230
31236
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
31231
31237
|
return {
|
|
31232
31238
|
height: u2,
|
|
31233
31239
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
31234
|
-
top:
|
|
31235
|
-
left:
|
|
31240
|
+
top: XW(l2),
|
|
31241
|
+
left: YW(f2)
|
|
31236
31242
|
};
|
|
31237
|
-
},
|
|
31243
|
+
}, eG = (e2, r2, c2) => {
|
|
31238
31244
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31239
31245
|
return {
|
|
31240
31246
|
width: f2,
|
|
31241
31247
|
left: u2,
|
|
31242
31248
|
height: Z(l2, e2.height, d2),
|
|
31243
|
-
top:
|
|
31249
|
+
top: XW(l2)
|
|
31244
31250
|
};
|
|
31245
|
-
},
|
|
31246
|
-
n:
|
|
31251
|
+
}, tG = {
|
|
31252
|
+
n: ZW,
|
|
31247
31253
|
ne: function() {
|
|
31248
|
-
return
|
|
31254
|
+
return ZW(arguments.length <= 0 ? void 0 : arguments[0], QW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31249
31255
|
},
|
|
31250
|
-
e:
|
|
31256
|
+
e: QW,
|
|
31251
31257
|
se: function() {
|
|
31252
|
-
return
|
|
31258
|
+
return eG(arguments.length <= 0 ? void 0 : arguments[0], QW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31253
31259
|
},
|
|
31254
|
-
s:
|
|
31260
|
+
s: eG,
|
|
31255
31261
|
sw: function() {
|
|
31256
|
-
return
|
|
31262
|
+
return eG(arguments.length <= 0 ? void 0 : arguments[0], $W(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31257
31263
|
},
|
|
31258
|
-
w:
|
|
31264
|
+
w: $W,
|
|
31259
31265
|
nw: function() {
|
|
31260
|
-
return
|
|
31266
|
+
return ZW(arguments.length <= 0 ? void 0 : arguments[0], $W(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31261
31267
|
}
|
|
31262
31268
|
};
|
|
31263
|
-
function
|
|
31264
|
-
let u2 =
|
|
31269
|
+
function nG(e2, r2, c2, l2) {
|
|
31270
|
+
let u2 = tG[e2];
|
|
31265
31271
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
31266
31272
|
}
|
|
31267
|
-
function
|
|
31273
|
+
function rG(e2) {
|
|
31268
31274
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
31269
31275
|
return {
|
|
31270
31276
|
transform: d2,
|
|
@@ -31277,7 +31283,7 @@ ${c}
|
|
|
31277
31283
|
position: "absolute"
|
|
31278
31284
|
};
|
|
31279
31285
|
}
|
|
31280
|
-
function
|
|
31286
|
+
function iG(e2) {
|
|
31281
31287
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
31282
31288
|
return {
|
|
31283
31289
|
top: `${r2}px`,
|
|
@@ -31287,20 +31293,20 @@ ${c}
|
|
|
31287
31293
|
position: "absolute"
|
|
31288
31294
|
};
|
|
31289
31295
|
}
|
|
31290
|
-
function
|
|
31291
|
-
return r2 === "horizontal" ?
|
|
31296
|
+
function aG(e2, r2) {
|
|
31297
|
+
return r2 === "horizontal" ? sG(e2) : r2 === "vertical" ? oG(e2) : e2;
|
|
31292
31298
|
}
|
|
31293
|
-
function
|
|
31299
|
+
function oG(e2) {
|
|
31294
31300
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31295
31301
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
31296
31302
|
});
|
|
31297
31303
|
}
|
|
31298
|
-
function
|
|
31304
|
+
function sG(e2) {
|
|
31299
31305
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31300
31306
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
31301
31307
|
});
|
|
31302
31308
|
}
|
|
31303
|
-
function
|
|
31309
|
+
function cG(e2, r2, l2, u2, f2) {
|
|
31304
31310
|
e2 || (e2 = []);
|
|
31305
31311
|
let p2 = [];
|
|
31306
31312
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -31321,7 +31327,7 @@ ${c}
|
|
|
31321
31327
|
});
|
|
31322
31328
|
return f2 ? m2 : T(m2, u2, l2);
|
|
31323
31329
|
}
|
|
31324
|
-
function
|
|
31330
|
+
function lG(e2) {
|
|
31325
31331
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
31326
31332
|
"x",
|
|
31327
31333
|
"y",
|
|
@@ -31338,7 +31344,7 @@ ${c}
|
|
|
31338
31344
|
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})`);
|
|
31339
31345
|
}
|
|
31340
31346
|
}
|
|
31341
|
-
function
|
|
31347
|
+
function uG(e2) {
|
|
31342
31348
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
31343
31349
|
return r2 === false ? null : c2;
|
|
31344
31350
|
}
|
|
@@ -34143,7 +34149,7 @@ ${c}
|
|
|
34143
34149
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
34144
34150
|
let E = useIsDragging(), O, j;
|
|
34145
34151
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
34146
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q, Z,
|
|
34152
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, Z, YW, XW, ZW, QW, $W, eG, tG, nG, rG, iG, aG, oG, sG, cG, lG, uG;
|
|
34147
34153
|
if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== m || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
|
|
34148
34154
|
let e2 = Maps.keyBy(c.cells, _temp2$3), p2;
|
|
34149
34155
|
r[47] !== c || r[48] !== l ? (p2 = (e3) => (r2) => {
|
|
@@ -34162,23 +34168,23 @@ ${c}
|
|
|
34162
34168
|
});
|
|
34163
34169
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
34164
34170
|
let y2 = v2;
|
|
34165
|
-
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,
|
|
34171
|
+
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, sG = "lg", r[58] === c.cells ? cG = r[59] : (cG = {
|
|
34166
34172
|
lg: c.cells
|
|
34167
|
-
}, r[58] = c.cells, r[59] =
|
|
34173
|
+
}, r[58] = c.cells, r[59] = cG), lG = L, uG = S, R = false;
|
|
34168
34174
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
34169
34175
|
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 ? [
|
|
34170
34176
|
20,
|
|
34171
34177
|
20
|
|
34172
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, Z = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (
|
|
34178
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, Z = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (YW = (e3) => {
|
|
34173
34179
|
f || l({
|
|
34174
34180
|
...c,
|
|
34175
34181
|
cells: e3
|
|
34176
34182
|
});
|
|
34177
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
34183
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = YW) : YW = r[69], r[70] === g ? XW = r[71] : (XW = g ? {
|
|
34178
34184
|
i: g.i,
|
|
34179
34185
|
w: g.w || 2,
|
|
34180
34186
|
h: g.h || 2
|
|
34181
|
-
} : void 0, r[70] = g, r[71] =
|
|
34187
|
+
} : void 0, r[70] = g, r[71] = XW), r[72] !== O || r[73] !== c || r[74] !== l ? (ZW = (e3, r2, u2) => {
|
|
34182
34188
|
O.onDragStop(), r2 && l({
|
|
34183
34189
|
...c,
|
|
34184
34190
|
cells: [
|
|
@@ -34186,15 +34192,15 @@ ${c}
|
|
|
34186
34192
|
r2
|
|
34187
34193
|
]
|
|
34188
34194
|
});
|
|
34189
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
34195
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = ZW) : ZW = r[75], r[76] === O ? (QW = r[77], $W = r[78], eG = r[79]) : (QW = (e3, r2, c2, l2, u2) => {
|
|
34190
34196
|
O.onDragStart(u2);
|
|
34191
|
-
},
|
|
34197
|
+
}, $W = (e3, r2, c2, l2, u2) => {
|
|
34192
34198
|
O.onDragMove(u2);
|
|
34193
|
-
},
|
|
34199
|
+
}, eG = () => {
|
|
34194
34200
|
O.onDragStop();
|
|
34195
|
-
}, r[76] = O, r[77] =
|
|
34201
|
+
}, r[76] = O, r[77] = QW, r[78] = $W, r[79] = eG), tG = _temp3$2, nG = M, rG = M, iG = M, aG = M ? `.${DRAG_HANDLE}` : "noop";
|
|
34196
34202
|
let E2;
|
|
34197
|
-
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2),
|
|
34203
|
+
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2), oG = u.filter(E2).map((r2) => {
|
|
34198
34204
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p3 = c.cellSide.get(r2.id), m2 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
34199
34205
|
code: r2.code,
|
|
34200
34206
|
mode: d,
|
|
@@ -34224,14 +34230,14 @@ ${c}
|
|
|
34224
34230
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
34225
34231
|
children: m2
|
|
34226
34232
|
}, r2.id);
|
|
34227
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] =
|
|
34228
|
-
} 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], Z = r[30],
|
|
34229
|
-
let
|
|
34230
|
-
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] !== Z || r[91] !==
|
|
34231
|
-
breakpoint:
|
|
34232
|
-
layouts:
|
|
34233
|
-
style:
|
|
34234
|
-
cols:
|
|
34233
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] = YW, r[32] = XW, r[33] = ZW, r[34] = QW, r[35] = $W, r[36] = eG, r[37] = tG, r[38] = nG, r[39] = rG, r[40] = iG, r[41] = aG, r[42] = oG, r[43] = sG, r[44] = cG, r[45] = lG, r[46] = uG;
|
|
34234
|
+
} 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], Z = r[30], YW = r[31], XW = r[32], ZW = r[33], QW = r[34], $W = r[35], eG = r[36], tG = r[37], nG = r[38], rG = r[39], iG = r[40], aG = r[41], oG = r[42], sG = r[43], cG = r[44], lG = r[45], uG = r[46];
|
|
34235
|
+
let dG;
|
|
34236
|
+
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] !== Z || r[91] !== YW || r[92] !== XW || r[93] !== ZW || r[94] !== QW || r[95] !== $W || r[96] !== eG || r[97] !== tG || r[98] !== nG || r[99] !== rG || r[100] !== iG || r[101] !== aG || r[102] !== oG || r[103] !== sG || r[104] !== cG || r[105] !== lG || r[106] !== uG ? (dG = (0, import_jsx_runtime.jsx)(I, {
|
|
34237
|
+
breakpoint: sG,
|
|
34238
|
+
layouts: cG,
|
|
34239
|
+
style: lG,
|
|
34240
|
+
cols: uG,
|
|
34235
34241
|
allowOverlap: R,
|
|
34236
34242
|
className: z,
|
|
34237
34243
|
containerPadding: B,
|
|
@@ -34240,22 +34246,22 @@ ${c}
|
|
|
34240
34246
|
compactType: G,
|
|
34241
34247
|
preventCollision: q,
|
|
34242
34248
|
rowHeight: Z,
|
|
34243
|
-
onLayoutChange:
|
|
34244
|
-
droppingItem:
|
|
34245
|
-
onDrop:
|
|
34246
|
-
onDragStart:
|
|
34247
|
-
onDrag:
|
|
34248
|
-
onDragStop:
|
|
34249
|
-
onResizeStop:
|
|
34250
|
-
isDraggable:
|
|
34251
|
-
isDroppable:
|
|
34252
|
-
isResizable:
|
|
34253
|
-
draggableHandle:
|
|
34254
|
-
children:
|
|
34255
|
-
}), 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] = Z, r[91] =
|
|
34256
|
-
let
|
|
34257
|
-
if (r[108] !== u || r[109] !==
|
|
34258
|
-
|
|
34249
|
+
onLayoutChange: YW,
|
|
34250
|
+
droppingItem: XW,
|
|
34251
|
+
onDrop: ZW,
|
|
34252
|
+
onDragStart: QW,
|
|
34253
|
+
onDrag: $W,
|
|
34254
|
+
onDragStop: eG,
|
|
34255
|
+
onResizeStop: tG,
|
|
34256
|
+
isDraggable: nG,
|
|
34257
|
+
isDroppable: rG,
|
|
34258
|
+
isResizable: iG,
|
|
34259
|
+
draggableHandle: aG,
|
|
34260
|
+
children: oG
|
|
34261
|
+
}), 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] = Z, r[91] = YW, r[92] = XW, r[93] = ZW, r[94] = QW, r[95] = $W, r[96] = eG, r[97] = tG, r[98] = nG, r[99] = rG, r[100] = iG, r[101] = aG, r[102] = oG, r[103] = sG, r[104] = cG, r[105] = lG, r[106] = uG, r[107] = dG) : dG = r[107];
|
|
34262
|
+
let fG = dG, pG, mG, hG, gG, _G, vG, yG;
|
|
34263
|
+
if (r[108] !== u || r[109] !== fG || r[110] !== m || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
34264
|
+
yG = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
34259
34265
|
bb0: {
|
|
34260
34266
|
let e2;
|
|
34261
34267
|
r[125] === m ? e2 = r[126] : (e2 = (e3) => !m.has(e3.id), r[125] = m, r[126] = e2);
|
|
@@ -34263,14 +34269,14 @@ ${c}
|
|
|
34263
34269
|
if (f) {
|
|
34264
34270
|
if (c.bordered) {
|
|
34265
34271
|
let e4;
|
|
34266
|
-
r[127] !==
|
|
34272
|
+
r[127] !== fG || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
34267
34273
|
className: "flex flex-1 flex-col items-center",
|
|
34268
34274
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
34269
34275
|
style: L,
|
|
34270
34276
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
34271
|
-
children:
|
|
34277
|
+
children: fG
|
|
34272
34278
|
})
|
|
34273
|
-
}), r[127] =
|
|
34279
|
+
}), r[127] = fG, r[128] = L, r[129] = e4) : e4 = r[129], fG = e4;
|
|
34274
34280
|
}
|
|
34275
34281
|
let e3 = p2.filter(_temp4$2), l2;
|
|
34276
34282
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -34282,9 +34288,9 @@ ${c}
|
|
|
34282
34288
|
stale: outputIsStale(e4, false),
|
|
34283
34289
|
isScrollable: false,
|
|
34284
34290
|
hidden: false
|
|
34285
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
34291
|
+
}, e4.id), r[130] = d, r[131] = l2), yG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34286
34292
|
children: [
|
|
34287
|
-
|
|
34293
|
+
fG,
|
|
34288
34294
|
(0, import_jsx_runtime.jsx)("div", {
|
|
34289
34295
|
className: "hidden",
|
|
34290
34296
|
children: e3.map(l2)
|
|
@@ -34295,31 +34301,31 @@ ${c}
|
|
|
34295
34301
|
}
|
|
34296
34302
|
if (c.bordered) {
|
|
34297
34303
|
let e3;
|
|
34298
|
-
r[132] ===
|
|
34304
|
+
r[132] === fG ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
34299
34305
|
className: "h-full overflow-auto",
|
|
34300
|
-
children:
|
|
34301
|
-
}), r[132] =
|
|
34306
|
+
children: fG
|
|
34307
|
+
}), r[132] = fG, r[133] = e3);
|
|
34302
34308
|
let c2;
|
|
34303
34309
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
34304
34310
|
style: L,
|
|
34305
34311
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
34306
34312
|
children: e3
|
|
34307
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
34313
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], fG = c2;
|
|
34308
34314
|
}
|
|
34309
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
34315
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (vG = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
34310
34316
|
layout: c,
|
|
34311
34317
|
setLayout: l,
|
|
34312
34318
|
isLocked: v,
|
|
34313
34319
|
setIsLocked: y
|
|
34314
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
34320
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = vG) : vG = r[140];
|
|
34315
34321
|
let g2;
|
|
34316
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34322
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gG = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = gG, r[142] = g2) : (gG = r[141], g2 = r[142]), r[143] === fG ? _G = r[144] : (_G = (0, import_jsx_runtime.jsx)("div", {
|
|
34317
34323
|
className: g2,
|
|
34318
|
-
children:
|
|
34319
|
-
}), r[143] =
|
|
34324
|
+
children: fG
|
|
34325
|
+
}), r[143] = fG, r[144] = _G), pG = "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") ? (mG = (0, import_jsx_runtime.jsx)("div", {
|
|
34320
34326
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
34321
34327
|
children: "Outputs"
|
|
34322
|
-
}), r[145] =
|
|
34328
|
+
}), r[145] = mG) : mG = r[145];
|
|
34323
34329
|
let b2;
|
|
34324
34330
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
34325
34331
|
draggable: true,
|
|
@@ -34345,34 +34351,34 @@ ${c}
|
|
|
34345
34351
|
stale: outputIsStale(e3, false),
|
|
34346
34352
|
hidden: false
|
|
34347
34353
|
})
|
|
34348
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
34349
|
-
}
|
|
34350
|
-
r[108] = u, r[109] =
|
|
34351
|
-
} else
|
|
34352
|
-
if (
|
|
34353
|
-
let
|
|
34354
|
-
r[150] !==
|
|
34355
|
-
className:
|
|
34354
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], hG = p2.map(b2);
|
|
34355
|
+
}
|
|
34356
|
+
r[108] = u, r[109] = fG, r[110] = m, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = pG, r[118] = mG, r[119] = hG, r[120] = gG, r[121] = _G, r[122] = vG, r[123] = yG, r[124] = fG;
|
|
34357
|
+
} else pG = r[117], mG = r[118], hG = r[119], gG = r[120], _G = r[121], vG = r[122], yG = r[123], fG = r[124];
|
|
34358
|
+
if (yG !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return yG;
|
|
34359
|
+
let bG;
|
|
34360
|
+
r[150] !== pG || r[151] !== mG || r[152] !== hG ? (bG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34361
|
+
className: pG,
|
|
34356
34362
|
children: [
|
|
34357
|
-
|
|
34358
|
-
|
|
34363
|
+
mG,
|
|
34364
|
+
hG
|
|
34359
34365
|
]
|
|
34360
|
-
}), r[150] =
|
|
34361
|
-
let
|
|
34362
|
-
r[154] !==
|
|
34363
|
-
className:
|
|
34366
|
+
}), r[150] = pG, r[151] = mG, r[152] = hG, r[153] = bG) : bG = r[153];
|
|
34367
|
+
let xG;
|
|
34368
|
+
r[154] !== gG || r[155] !== _G || r[156] !== bG ? (xG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34369
|
+
className: gG,
|
|
34364
34370
|
children: [
|
|
34365
|
-
|
|
34366
|
-
|
|
34371
|
+
_G,
|
|
34372
|
+
bG
|
|
34367
34373
|
]
|
|
34368
|
-
}), r[154] =
|
|
34369
|
-
let
|
|
34370
|
-
return r[158] !==
|
|
34374
|
+
}), r[154] = gG, r[155] = _G, r[156] = bG, r[157] = xG) : xG = r[157];
|
|
34375
|
+
let SG;
|
|
34376
|
+
return r[158] !== vG || r[159] !== xG ? (SG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34371
34377
|
children: [
|
|
34372
|
-
|
|
34373
|
-
|
|
34378
|
+
vG,
|
|
34379
|
+
xG
|
|
34374
34380
|
]
|
|
34375
|
-
}), r[158] =
|
|
34381
|
+
}), r[158] = vG, r[159] = xG, r[160] = SG) : SG = r[160], SG;
|
|
34376
34382
|
};
|
|
34377
34383
|
var GridCell = (0, import_react.memo)((e) => {
|
|
34378
34384
|
let r = (0, import_compiler_runtime$13.c)(21), { output: c, cellId: l, status: u, mode: d, code: f, hidden: p, isScrollable: m, side: g, className: _, stale: v } = e, y;
|
|
@@ -34682,8 +34688,8 @@ ${c}
|
|
|
34682
34688
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34683
34689
|
onClick: () => l()
|
|
34684
34690
|
}), r[36] = l, r[37] = Z);
|
|
34685
|
-
let
|
|
34686
|
-
return r[38] !== M || r[39] !== G || r[40] !== Z || r[41] !== S ? (
|
|
34691
|
+
let YW;
|
|
34692
|
+
return r[38] !== M || r[39] !== G || r[40] !== Z || r[41] !== S ? (YW = (0, import_jsx_runtime.jsxs)("div", {
|
|
34687
34693
|
className: S,
|
|
34688
34694
|
children: [
|
|
34689
34695
|
M,
|
|
@@ -34691,7 +34697,7 @@ ${c}
|
|
|
34691
34697
|
q,
|
|
34692
34698
|
Z
|
|
34693
34699
|
]
|
|
34694
|
-
}), r[38] = M, r[39] = G, r[40] = Z, r[41] = S, r[42] =
|
|
34700
|
+
}), r[38] = M, r[39] = G, r[40] = Z, r[41] = S, r[42] = YW) : YW = r[42], YW;
|
|
34695
34701
|
};
|
|
34696
34702
|
function isSidebarCell(e) {
|
|
34697
34703
|
var _a5;
|
|
@@ -36697,29 +36703,29 @@ ${c}
|
|
|
36697
36703
|
M
|
|
36698
36704
|
]), 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), Z = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
36699
36705
|
j
|
|
36700
|
-
]),
|
|
36706
|
+
]), YW = useMeasuringConfiguration(p), { droppableRects: XW, measureDroppableContainers: ZW, measuringScheduled: QW } = useDroppableMeasuring(Z, {
|
|
36701
36707
|
dragging: w,
|
|
36702
36708
|
dependencies: [
|
|
36703
36709
|
O.x,
|
|
36704
36710
|
O.y
|
|
36705
36711
|
],
|
|
36706
|
-
config:
|
|
36707
|
-
}),
|
|
36712
|
+
config: YW.droppable
|
|
36713
|
+
}), $W = useCachedNode(E, T), eG = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36708
36714
|
H
|
|
36709
|
-
]),
|
|
36715
|
+
]), tG = MG(), nG = useInitialRect($W, YW.draggable.measure);
|
|
36710
36716
|
useLayoutShiftScrollCompensation({
|
|
36711
36717
|
activeNode: T == null ? null : E.get(T),
|
|
36712
|
-
config:
|
|
36713
|
-
initialRect:
|
|
36714
|
-
measure:
|
|
36718
|
+
config: tG.layoutShiftCompensation,
|
|
36719
|
+
initialRect: nG,
|
|
36720
|
+
measure: YW.draggable.measure
|
|
36715
36721
|
});
|
|
36716
|
-
let
|
|
36722
|
+
let rG = useRect($W, YW.draggable.measure, nG), iG = useRect($W ? $W.parentElement : null), aG = (0, import_react.useRef)({
|
|
36717
36723
|
activatorEvent: null,
|
|
36718
36724
|
active: null,
|
|
36719
|
-
activeNode:
|
|
36725
|
+
activeNode: $W,
|
|
36720
36726
|
collisionRect: null,
|
|
36721
36727
|
collisions: null,
|
|
36722
|
-
droppableRects:
|
|
36728
|
+
droppableRects: XW,
|
|
36723
36729
|
draggableNodes: E,
|
|
36724
36730
|
draggingNode: null,
|
|
36725
36731
|
draggingNodeRect: null,
|
|
@@ -36727,45 +36733,45 @@ ${c}
|
|
|
36727
36733
|
over: null,
|
|
36728
36734
|
scrollableAncestors: [],
|
|
36729
36735
|
scrollAdjustedTranslate: null
|
|
36730
|
-
}),
|
|
36731
|
-
measure:
|
|
36732
|
-
}),
|
|
36736
|
+
}), oG = j.getNodeFor((_a5 = aG.current.over) == null ? void 0 : _a5.id), sG = useDragOverlayMeasuring({
|
|
36737
|
+
measure: YW.dragOverlay.measure
|
|
36738
|
+
}), cG = sG.nodeRef.current ?? $W, lG = w ? sG.rect ?? rG : null, uG = !!(sG.nodeRef.current && sG.rect), dG = useRectDelta(uG ? null : rG), fG = useWindowRect(cG ? getWindow(cG) : null), pG = useScrollableAncestors(w ? oG ?? $W : null), mG = useRects(pG), hG = applyModifiers(m, {
|
|
36733
36739
|
transform: {
|
|
36734
|
-
x: O.x -
|
|
36735
|
-
y: O.y -
|
|
36740
|
+
x: O.x - dG.x,
|
|
36741
|
+
y: O.y - dG.y,
|
|
36736
36742
|
scaleX: 1,
|
|
36737
36743
|
scaleY: 1
|
|
36738
36744
|
},
|
|
36739
36745
|
activatorEvent: H,
|
|
36740
36746
|
active: L,
|
|
36741
|
-
activeNodeRect:
|
|
36742
|
-
containerNodeRect:
|
|
36743
|
-
draggingNodeRect:
|
|
36744
|
-
over:
|
|
36745
|
-
overlayNodeRect:
|
|
36746
|
-
scrollableAncestors:
|
|
36747
|
-
scrollableAncestorRects:
|
|
36748
|
-
windowRect:
|
|
36749
|
-
}),
|
|
36750
|
-
|
|
36751
|
-
]),
|
|
36747
|
+
activeNodeRect: rG,
|
|
36748
|
+
containerNodeRect: iG,
|
|
36749
|
+
draggingNodeRect: lG,
|
|
36750
|
+
over: aG.current.over,
|
|
36751
|
+
overlayNodeRect: sG.rect,
|
|
36752
|
+
scrollableAncestors: pG,
|
|
36753
|
+
scrollableAncestorRects: mG,
|
|
36754
|
+
windowRect: fG
|
|
36755
|
+
}), gG = eG ? add(eG, O) : null, _G = useScrollOffsets(pG), vG = useScrollOffsetsDelta(_G), yG = useScrollOffsetsDelta(_G, [
|
|
36756
|
+
rG
|
|
36757
|
+
]), bG = add(hG, vG), xG = lG ? getAdjustedRect(lG, hG) : null, SG = L && xG ? f({
|
|
36752
36758
|
active: L,
|
|
36753
|
-
collisionRect:
|
|
36754
|
-
droppableRects:
|
|
36759
|
+
collisionRect: xG,
|
|
36760
|
+
droppableRects: XW,
|
|
36755
36761
|
droppableContainers: Z,
|
|
36756
|
-
pointerCoordinates:
|
|
36757
|
-
}) : null,
|
|
36762
|
+
pointerCoordinates: gG
|
|
36763
|
+
}) : null, CG = getFirstCollision(SG, "id"), [wG, TG] = (0, import_react.useState)(null), EG = adjustScale(uG ? hG : add(hG, yG), (wG == null ? void 0 : wG.rect) ?? null, rG), DG = (0, import_react.useRef)(null), OG = (0, import_react.useCallback)((e2, r2) => {
|
|
36758
36764
|
let { sensor: c2, options: l2 } = r2;
|
|
36759
36765
|
if (R.current == null) return;
|
|
36760
36766
|
let u2 = E.get(R.current);
|
|
36761
36767
|
if (!u2) return;
|
|
36762
36768
|
let d2 = e2.nativeEvent;
|
|
36763
|
-
|
|
36769
|
+
DG.current = new c2({
|
|
36764
36770
|
active: R.current,
|
|
36765
36771
|
activeNode: u2,
|
|
36766
36772
|
event: d2,
|
|
36767
36773
|
options: l2,
|
|
36768
|
-
context:
|
|
36774
|
+
context: aG,
|
|
36769
36775
|
onAbort(e3) {
|
|
36770
36776
|
if (!E.get(e3)) return;
|
|
36771
36777
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -36810,7 +36816,7 @@ ${c}
|
|
|
36810
36816
|
}), v({
|
|
36811
36817
|
type: "onDragStart",
|
|
36812
36818
|
event: u3
|
|
36813
|
-
}), B(
|
|
36819
|
+
}), B(DG.current), W(d2);
|
|
36814
36820
|
});
|
|
36815
36821
|
},
|
|
36816
36822
|
onMove(e3) {
|
|
@@ -36824,7 +36830,7 @@ ${c}
|
|
|
36824
36830
|
});
|
|
36825
36831
|
function f2(e3) {
|
|
36826
36832
|
return async function() {
|
|
36827
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
36833
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = aG.current, f3 = null;
|
|
36828
36834
|
if (r3 && u3) {
|
|
36829
36835
|
let { cancelDrop: p2 } = G.current;
|
|
36830
36836
|
f3 = {
|
|
@@ -36838,7 +36844,7 @@ ${c}
|
|
|
36838
36844
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36839
36845
|
_({
|
|
36840
36846
|
type: e3
|
|
36841
|
-
}), S(Status.Uninitialized),
|
|
36847
|
+
}), S(Status.Uninitialized), TG(null), B(null), W(null), DG.current = null;
|
|
36842
36848
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
36843
36849
|
if (f3) {
|
|
36844
36850
|
let e4 = G.current[r4];
|
|
@@ -36852,7 +36858,7 @@ ${c}
|
|
|
36852
36858
|
}
|
|
36853
36859
|
}, [
|
|
36854
36860
|
E
|
|
36855
|
-
]),
|
|
36861
|
+
]), kG = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
36856
36862
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
36857
36863
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
36858
36864
|
let f2 = {
|
|
@@ -36860,26 +36866,26 @@ ${c}
|
|
|
36860
36866
|
};
|
|
36861
36867
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
36862
36868
|
capturedBy: r2.sensor
|
|
36863
|
-
}, R.current = l2,
|
|
36869
|
+
}, R.current = l2, OG(c2, r2));
|
|
36864
36870
|
}, [
|
|
36865
36871
|
E,
|
|
36866
|
-
|
|
36872
|
+
OG
|
|
36867
36873
|
]));
|
|
36868
36874
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
36869
|
-
|
|
36875
|
+
rG && b === Status.Initializing && S(Status.Initialized);
|
|
36870
36876
|
}, [
|
|
36871
|
-
|
|
36877
|
+
rG,
|
|
36872
36878
|
b
|
|
36873
36879
|
]), (0, import_react.useEffect)(() => {
|
|
36874
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
36880
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = aG.current;
|
|
36875
36881
|
if (!r2 || !c2) return;
|
|
36876
36882
|
let d2 = {
|
|
36877
36883
|
active: r2,
|
|
36878
36884
|
activatorEvent: c2,
|
|
36879
36885
|
collisions: l2,
|
|
36880
36886
|
delta: {
|
|
36881
|
-
x:
|
|
36882
|
-
y:
|
|
36887
|
+
x: bG.x,
|
|
36888
|
+
y: bG.y
|
|
36883
36889
|
},
|
|
36884
36890
|
over: u2
|
|
36885
36891
|
};
|
|
@@ -36890,12 +36896,12 @@ ${c}
|
|
|
36890
36896
|
});
|
|
36891
36897
|
});
|
|
36892
36898
|
}, [
|
|
36893
|
-
|
|
36894
|
-
|
|
36899
|
+
bG.x,
|
|
36900
|
+
bG.y
|
|
36895
36901
|
]), (0, import_react.useEffect)(() => {
|
|
36896
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
36902
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = aG.current;
|
|
36897
36903
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
36898
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
36904
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(CG), p2 = f2 && f2.rect.current ? {
|
|
36899
36905
|
id: f2.id,
|
|
36900
36906
|
rect: f2.rect.current,
|
|
36901
36907
|
data: f2.data,
|
|
@@ -36911,127 +36917,127 @@ ${c}
|
|
|
36911
36917
|
over: p2
|
|
36912
36918
|
};
|
|
36913
36919
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36914
|
-
|
|
36920
|
+
TG(p2), d2 == null ? void 0 : d2(m2), v({
|
|
36915
36921
|
type: "onDragOver",
|
|
36916
36922
|
event: m2
|
|
36917
36923
|
});
|
|
36918
36924
|
});
|
|
36919
36925
|
}, [
|
|
36920
|
-
|
|
36926
|
+
CG
|
|
36921
36927
|
]), useIsomorphicLayoutEffect(() => {
|
|
36922
|
-
|
|
36928
|
+
aG.current = {
|
|
36923
36929
|
activatorEvent: H,
|
|
36924
36930
|
active: L,
|
|
36925
|
-
activeNode:
|
|
36926
|
-
collisionRect:
|
|
36927
|
-
collisions:
|
|
36928
|
-
droppableRects:
|
|
36931
|
+
activeNode: $W,
|
|
36932
|
+
collisionRect: xG,
|
|
36933
|
+
collisions: SG,
|
|
36934
|
+
droppableRects: XW,
|
|
36929
36935
|
draggableNodes: E,
|
|
36930
|
-
draggingNode:
|
|
36931
|
-
draggingNodeRect:
|
|
36936
|
+
draggingNode: cG,
|
|
36937
|
+
draggingNodeRect: lG,
|
|
36932
36938
|
droppableContainers: j,
|
|
36933
|
-
over:
|
|
36934
|
-
scrollableAncestors:
|
|
36935
|
-
scrollAdjustedTranslate:
|
|
36939
|
+
over: wG,
|
|
36940
|
+
scrollableAncestors: pG,
|
|
36941
|
+
scrollAdjustedTranslate: bG
|
|
36936
36942
|
}, I.current = {
|
|
36937
|
-
initial:
|
|
36938
|
-
translated:
|
|
36943
|
+
initial: lG,
|
|
36944
|
+
translated: xG
|
|
36939
36945
|
};
|
|
36940
36946
|
}, [
|
|
36941
36947
|
L,
|
|
36942
|
-
|
|
36943
|
-
|
|
36944
|
-
|
|
36948
|
+
$W,
|
|
36949
|
+
SG,
|
|
36950
|
+
xG,
|
|
36945
36951
|
E,
|
|
36946
|
-
|
|
36947
|
-
|
|
36948
|
-
|
|
36952
|
+
cG,
|
|
36953
|
+
lG,
|
|
36954
|
+
XW,
|
|
36949
36955
|
j,
|
|
36950
|
-
|
|
36951
|
-
|
|
36952
|
-
|
|
36956
|
+
wG,
|
|
36957
|
+
pG,
|
|
36958
|
+
bG
|
|
36953
36959
|
]), useAutoScroller({
|
|
36954
|
-
|
|
36960
|
+
...tG,
|
|
36955
36961
|
delta: O,
|
|
36956
|
-
draggingRect:
|
|
36957
|
-
pointerCoordinates:
|
|
36958
|
-
scrollableAncestors:
|
|
36959
|
-
scrollableAncestorRects:
|
|
36962
|
+
draggingRect: xG,
|
|
36963
|
+
pointerCoordinates: gG,
|
|
36964
|
+
scrollableAncestors: pG,
|
|
36965
|
+
scrollableAncestorRects: mG
|
|
36960
36966
|
});
|
|
36961
|
-
let
|
|
36967
|
+
let AG = (0, import_react.useMemo)(() => ({
|
|
36962
36968
|
active: L,
|
|
36963
|
-
activeNode:
|
|
36964
|
-
activeNodeRect:
|
|
36969
|
+
activeNode: $W,
|
|
36970
|
+
activeNodeRect: rG,
|
|
36965
36971
|
activatorEvent: H,
|
|
36966
|
-
collisions:
|
|
36967
|
-
containerNodeRect:
|
|
36968
|
-
dragOverlay:
|
|
36972
|
+
collisions: SG,
|
|
36973
|
+
containerNodeRect: iG,
|
|
36974
|
+
dragOverlay: sG,
|
|
36969
36975
|
draggableNodes: E,
|
|
36970
36976
|
droppableContainers: j,
|
|
36971
|
-
droppableRects:
|
|
36972
|
-
over:
|
|
36973
|
-
measureDroppableContainers:
|
|
36974
|
-
scrollableAncestors:
|
|
36975
|
-
scrollableAncestorRects:
|
|
36976
|
-
measuringConfiguration:
|
|
36977
|
-
measuringScheduled:
|
|
36978
|
-
windowRect:
|
|
36977
|
+
droppableRects: XW,
|
|
36978
|
+
over: wG,
|
|
36979
|
+
measureDroppableContainers: ZW,
|
|
36980
|
+
scrollableAncestors: pG,
|
|
36981
|
+
scrollableAncestorRects: mG,
|
|
36982
|
+
measuringConfiguration: YW,
|
|
36983
|
+
measuringScheduled: QW,
|
|
36984
|
+
windowRect: fG
|
|
36979
36985
|
}), [
|
|
36980
36986
|
L,
|
|
36981
|
-
|
|
36982
|
-
|
|
36987
|
+
$W,
|
|
36988
|
+
rG,
|
|
36983
36989
|
H,
|
|
36984
|
-
|
|
36985
|
-
|
|
36986
|
-
|
|
36990
|
+
SG,
|
|
36991
|
+
iG,
|
|
36992
|
+
sG,
|
|
36987
36993
|
E,
|
|
36988
36994
|
j,
|
|
36989
|
-
JW,
|
|
36990
|
-
SG,
|
|
36991
|
-
YW,
|
|
36992
|
-
dG,
|
|
36993
|
-
fG,
|
|
36994
|
-
qW,
|
|
36995
36995
|
XW,
|
|
36996
|
-
|
|
36997
|
-
|
|
36996
|
+
wG,
|
|
36997
|
+
ZW,
|
|
36998
|
+
pG,
|
|
36999
|
+
mG,
|
|
37000
|
+
YW,
|
|
37001
|
+
QW,
|
|
37002
|
+
fG
|
|
37003
|
+
]), jG = (0, import_react.useMemo)(() => ({
|
|
36998
37004
|
activatorEvent: H,
|
|
36999
|
-
activators:
|
|
37005
|
+
activators: kG,
|
|
37000
37006
|
active: L,
|
|
37001
|
-
activeNodeRect:
|
|
37007
|
+
activeNodeRect: rG,
|
|
37002
37008
|
ariaDescribedById: {
|
|
37003
37009
|
draggable: q
|
|
37004
37010
|
},
|
|
37005
37011
|
dispatch: _,
|
|
37006
37012
|
draggableNodes: E,
|
|
37007
|
-
over:
|
|
37008
|
-
measureDroppableContainers:
|
|
37013
|
+
over: wG,
|
|
37014
|
+
measureDroppableContainers: ZW
|
|
37009
37015
|
}), [
|
|
37010
37016
|
H,
|
|
37011
|
-
|
|
37017
|
+
kG,
|
|
37012
37018
|
L,
|
|
37013
|
-
|
|
37019
|
+
rG,
|
|
37014
37020
|
_,
|
|
37015
37021
|
q,
|
|
37016
37022
|
E,
|
|
37017
|
-
|
|
37018
|
-
|
|
37023
|
+
wG,
|
|
37024
|
+
ZW
|
|
37019
37025
|
]);
|
|
37020
37026
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
37021
37027
|
value: y
|
|
37022
37028
|
}, import_react.createElement(InternalContext.Provider, {
|
|
37023
|
-
value:
|
|
37029
|
+
value: jG
|
|
37024
37030
|
}, import_react.createElement(PublicContext.Provider, {
|
|
37025
|
-
value:
|
|
37031
|
+
value: AG
|
|
37026
37032
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
37027
|
-
value:
|
|
37033
|
+
value: EG
|
|
37028
37034
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
37029
37035
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
37030
37036
|
})), import_react.createElement(Accessibility, {
|
|
37031
37037
|
...c,
|
|
37032
37038
|
hiddenTextDescribedById: q
|
|
37033
37039
|
}));
|
|
37034
|
-
function
|
|
37040
|
+
function MG() {
|
|
37035
37041
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
37036
37042
|
return typeof l == "object" ? {
|
|
37037
37043
|
...l,
|
|
@@ -37559,7 +37565,7 @@ ${c}
|
|
|
37559
37565
|
updateMeasurementsFor: I,
|
|
37560
37566
|
...m
|
|
37561
37567
|
}
|
|
37562
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: Z, listeners:
|
|
37568
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: Z, listeners: YW, isDragging: XW, over: ZW, setActivatorNodeRef: QW, transform: $W } = useDraggable({
|
|
37563
37569
|
id: f,
|
|
37564
37570
|
data: M,
|
|
37565
37571
|
attributes: {
|
|
@@ -37567,60 +37573,60 @@ ${c}
|
|
|
37567
37573
|
...c
|
|
37568
37574
|
},
|
|
37569
37575
|
disabled: O.draggable
|
|
37570
|
-
}),
|
|
37576
|
+
}), eG = useCombinedRefs(B, Z), tG = !!H, nG = tG && !b && isValidIndex(v) && isValidIndex(w), rG = !T && XW, iG = nG ? (rG && nG ? $W : null) ?? (p ?? E)({
|
|
37571
37577
|
rects: S,
|
|
37572
37578
|
activeNodeRect: G,
|
|
37573
37579
|
activeIndex: v,
|
|
37574
37580
|
overIndex: w,
|
|
37575
37581
|
index: j
|
|
37576
|
-
}) : null,
|
|
37582
|
+
}) : null, aG = isValidIndex(v) && isValidIndex(w) ? d({
|
|
37577
37583
|
id: f,
|
|
37578
37584
|
items: g,
|
|
37579
37585
|
activeIndex: v,
|
|
37580
37586
|
overIndex: w
|
|
37581
|
-
}) : j,
|
|
37582
|
-
activeId:
|
|
37587
|
+
}) : j, oG = H == null ? void 0 : H.id, sG = (0, import_react.useRef)({
|
|
37588
|
+
activeId: oG,
|
|
37583
37589
|
items: g,
|
|
37584
|
-
newIndex:
|
|
37590
|
+
newIndex: aG,
|
|
37585
37591
|
containerId: _
|
|
37586
|
-
}),
|
|
37592
|
+
}), cG = g !== sG.current.items, lG = r({
|
|
37587
37593
|
active: H,
|
|
37588
37594
|
containerId: _,
|
|
37589
|
-
isDragging:
|
|
37590
|
-
isSorting:
|
|
37595
|
+
isDragging: XW,
|
|
37596
|
+
isSorting: tG,
|
|
37591
37597
|
id: f,
|
|
37592
37598
|
index: j,
|
|
37593
37599
|
items: g,
|
|
37594
|
-
newIndex:
|
|
37595
|
-
previousItems:
|
|
37596
|
-
previousContainerId:
|
|
37600
|
+
newIndex: sG.current.newIndex,
|
|
37601
|
+
previousItems: sG.current.items,
|
|
37602
|
+
previousContainerId: sG.current.containerId,
|
|
37597
37603
|
transition: h,
|
|
37598
|
-
wasDragging:
|
|
37599
|
-
}),
|
|
37600
|
-
disabled: !
|
|
37604
|
+
wasDragging: sG.current.activeId != null
|
|
37605
|
+
}), uG = useDerivedTransform({
|
|
37606
|
+
disabled: !lG,
|
|
37601
37607
|
index: j,
|
|
37602
37608
|
node: R,
|
|
37603
37609
|
rect: L
|
|
37604
37610
|
});
|
|
37605
37611
|
return (0, import_react.useEffect)(() => {
|
|
37606
|
-
|
|
37612
|
+
tG && sG.current.newIndex !== aG && (sG.current.newIndex = aG), _ !== sG.current.containerId && (sG.current.containerId = _), g !== sG.current.items && (sG.current.items = g);
|
|
37607
37613
|
}, [
|
|
37608
|
-
|
|
37609
|
-
|
|
37614
|
+
tG,
|
|
37615
|
+
aG,
|
|
37610
37616
|
_,
|
|
37611
37617
|
g
|
|
37612
37618
|
]), (0, import_react.useEffect)(() => {
|
|
37613
|
-
if (
|
|
37614
|
-
if (
|
|
37615
|
-
|
|
37619
|
+
if (oG === sG.current.activeId) return;
|
|
37620
|
+
if (oG != null && sG.current.activeId == null) {
|
|
37621
|
+
sG.current.activeId = oG;
|
|
37616
37622
|
return;
|
|
37617
37623
|
}
|
|
37618
37624
|
let e2 = setTimeout(() => {
|
|
37619
|
-
|
|
37625
|
+
sG.current.activeId = oG;
|
|
37620
37626
|
}, 50);
|
|
37621
37627
|
return () => clearTimeout(e2);
|
|
37622
37628
|
}, [
|
|
37623
|
-
|
|
37629
|
+
oG
|
|
37624
37630
|
]), {
|
|
37625
37631
|
active: H,
|
|
37626
37632
|
activeIndex: v,
|
|
@@ -37628,25 +37634,25 @@ ${c}
|
|
|
37628
37634
|
data: M,
|
|
37629
37635
|
rect: L,
|
|
37630
37636
|
index: j,
|
|
37631
|
-
newIndex:
|
|
37637
|
+
newIndex: aG,
|
|
37632
37638
|
items: g,
|
|
37633
37639
|
isOver: z,
|
|
37634
|
-
isSorting:
|
|
37635
|
-
isDragging:
|
|
37636
|
-
listeners:
|
|
37640
|
+
isSorting: tG,
|
|
37641
|
+
isDragging: XW,
|
|
37642
|
+
listeners: YW,
|
|
37637
37643
|
node: R,
|
|
37638
37644
|
overIndex: w,
|
|
37639
|
-
over:
|
|
37640
|
-
setNodeRef:
|
|
37641
|
-
setActivatorNodeRef:
|
|
37645
|
+
over: ZW,
|
|
37646
|
+
setNodeRef: eG,
|
|
37647
|
+
setActivatorNodeRef: QW,
|
|
37642
37648
|
setDroppableNodeRef: B,
|
|
37643
37649
|
setDraggableNodeRef: Z,
|
|
37644
|
-
transform:
|
|
37645
|
-
transition:
|
|
37650
|
+
transform: uG ?? iG,
|
|
37651
|
+
transition: dG()
|
|
37646
37652
|
};
|
|
37647
|
-
function
|
|
37648
|
-
if (
|
|
37649
|
-
if (!(
|
|
37653
|
+
function dG() {
|
|
37654
|
+
if (uG || cG && sG.current.newIndex === j) return disabledTransition;
|
|
37655
|
+
if (!(rG && !isKeyboardEvent(W) || !h) && (tG || lG)) return CSS$1.Transition.toString({
|
|
37650
37656
|
...h,
|
|
37651
37657
|
property: transitionProperty
|
|
37652
37658
|
});
|
|
@@ -37948,13 +37954,13 @@ ${c}
|
|
|
37948
37954
|
}), r[35] = c.id, r[36] = m, r[37] = y, r[38] = b, r[39] = I, r[40] = z, r[41] = B, r[42] = H, r[43] = W, r[44] = G, r[45] = q) : q = r[45];
|
|
37949
37955
|
let Z = q;
|
|
37950
37956
|
if (!v && !g) return Z;
|
|
37951
|
-
let
|
|
37952
|
-
r[46] === Z ?
|
|
37957
|
+
let YW;
|
|
37958
|
+
r[46] === Z ? YW = r[47] : (YW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
37953
37959
|
asChild: true,
|
|
37954
37960
|
children: Z
|
|
37955
|
-
}), r[46] = Z, r[47] =
|
|
37956
|
-
let
|
|
37957
|
-
r[48] === v ?
|
|
37961
|
+
}), r[46] = Z, r[47] = YW);
|
|
37962
|
+
let XW;
|
|
37963
|
+
r[48] === v ? XW = r[49] : (XW = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37958
37964
|
onSelect: v,
|
|
37959
37965
|
children: [
|
|
37960
37966
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -37962,11 +37968,11 @@ ${c}
|
|
|
37962
37968
|
}),
|
|
37963
37969
|
"Add cell"
|
|
37964
37970
|
]
|
|
37965
|
-
}), r[48] = v, r[49] =
|
|
37966
|
-
let
|
|
37967
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
37968
|
-
let
|
|
37969
|
-
r[51] === g ?
|
|
37971
|
+
}), r[48] = v, r[49] = XW);
|
|
37972
|
+
let ZW;
|
|
37973
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ZW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = ZW) : ZW = r[50];
|
|
37974
|
+
let QW;
|
|
37975
|
+
r[51] === g ? QW = r[52] : (QW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37970
37976
|
variant: "danger",
|
|
37971
37977
|
onSelect: g,
|
|
37972
37978
|
children: [
|
|
@@ -37975,22 +37981,22 @@ ${c}
|
|
|
37975
37981
|
}),
|
|
37976
37982
|
"Delete cell"
|
|
37977
37983
|
]
|
|
37978
|
-
}), r[51] = g, r[52] =
|
|
37979
|
-
let
|
|
37980
|
-
r[53] !==
|
|
37984
|
+
}), r[51] = g, r[52] = QW);
|
|
37985
|
+
let $W;
|
|
37986
|
+
r[53] !== XW || r[54] !== QW ? ($W = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
37981
37987
|
children: [
|
|
37982
|
-
|
|
37983
|
-
|
|
37984
|
-
|
|
37988
|
+
XW,
|
|
37989
|
+
ZW,
|
|
37990
|
+
QW
|
|
37985
37991
|
]
|
|
37986
|
-
}), r[53] =
|
|
37987
|
-
let
|
|
37988
|
-
return r[56] !==
|
|
37992
|
+
}), r[53] = XW, r[54] = QW, r[55] = $W) : $W = r[55];
|
|
37993
|
+
let eG;
|
|
37994
|
+
return r[56] !== YW || r[57] !== $W ? (eG = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
37989
37995
|
children: [
|
|
37990
|
-
|
|
37991
|
-
|
|
37996
|
+
YW,
|
|
37997
|
+
$W
|
|
37992
37998
|
]
|
|
37993
|
-
}), r[56] =
|
|
37999
|
+
}), r[56] = YW, r[57] = $W, r[58] = eG) : eG = r[58], eG;
|
|
37994
38000
|
}, InsertCellLine = (e) => {
|
|
37995
38001
|
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;
|
|
37996
38002
|
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);
|
|
@@ -38044,10 +38050,10 @@ ${c}
|
|
|
38044
38050
|
...B,
|
|
38045
38051
|
...m
|
|
38046
38052
|
}, r[20] = M, r[21] = m, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
38047
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", Z = w && !T && "opacity-35",
|
|
38048
|
-
r[25] !== l || r[26] !== Z || r[27] !==
|
|
38049
|
-
let
|
|
38050
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
38053
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", Z = w && !T && "opacity-35", YW = T && "opacity-95 shadow-lg", XW;
|
|
38054
|
+
r[25] !== l || r[26] !== Z || r[27] !== YW || r[28] !== q ? (XW = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, Z, YW, l), r[25] = l, r[26] = Z, r[27] = YW, r[28] = q, r[29] = XW) : XW = r[29];
|
|
38055
|
+
let ZW;
|
|
38056
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (ZW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
38051
38057
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
38052
38058
|
style: {
|
|
38053
38059
|
transform: `scale(${I})`,
|
|
@@ -38063,14 +38069,14 @@ ${c}
|
|
|
38063
38069
|
output: c.output,
|
|
38064
38070
|
stale: outputIsStale(c, false)
|
|
38065
38071
|
})
|
|
38066
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
38067
|
-
let
|
|
38068
|
-
r[37] === z ?
|
|
38072
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = ZW) : ZW = r[36];
|
|
38073
|
+
let QW;
|
|
38074
|
+
r[37] === z ? QW = r[38] : (QW = z && (0, import_jsx_runtime.jsx)("div", {
|
|
38069
38075
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
38070
38076
|
"aria-hidden": true
|
|
38071
|
-
}), r[37] = z, r[38] =
|
|
38072
|
-
let
|
|
38073
|
-
r[39] !== z || r[40] !== R ? (
|
|
38077
|
+
}), r[37] = z, r[38] = QW);
|
|
38078
|
+
let $W;
|
|
38079
|
+
r[39] !== z || r[40] !== R ? ($W = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
38074
38080
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
38075
38081
|
className: "text-xs opacity-80",
|
|
38076
38082
|
children: R.description
|
|
@@ -38082,19 +38088,19 @@ ${c}
|
|
|
38082
38088
|
className: "h-3.5 w-3.5"
|
|
38083
38089
|
})
|
|
38084
38090
|
})
|
|
38085
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
38086
|
-
let
|
|
38087
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
38091
|
+
}), r[39] = z, r[40] = R, r[41] = $W) : $W = r[41];
|
|
38092
|
+
let eG;
|
|
38093
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== XW || r[46] !== ZW || r[47] !== QW || r[48] !== $W ? (eG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38088
38094
|
ref: f,
|
|
38089
|
-
className:
|
|
38095
|
+
className: XW,
|
|
38090
38096
|
style: W,
|
|
38091
38097
|
...d,
|
|
38092
38098
|
children: [
|
|
38093
|
-
|
|
38094
|
-
|
|
38095
|
-
|
|
38099
|
+
ZW,
|
|
38100
|
+
QW,
|
|
38101
|
+
$W
|
|
38096
38102
|
]
|
|
38097
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
38103
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = XW, r[46] = ZW, r[47] = QW, r[48] = $W, r[49] = eG) : eG = r[49], eG;
|
|
38098
38104
|
}, MiniCodePreview = (e) => {
|
|
38099
38105
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
38100
38106
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -38134,7 +38140,7 @@ ${c}
|
|
|
38134
38140
|
function _temp2$2(e) {
|
|
38135
38141
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
38136
38142
|
}
|
|
38137
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
38143
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-qjUSFCwF.js"));
|
|
38138
38144
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
38139
38145
|
var _a5;
|
|
38140
38146
|
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), [
|
|
@@ -38519,7 +38525,7 @@ ${c}
|
|
|
38519
38525
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
38520
38526
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
38521
38527
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
38522
|
-
let H, W, G, q, Z,
|
|
38528
|
+
let H, W, G, q, Z, YW, XW, ZW, QW, $W;
|
|
38523
38529
|
if (r[3] !== w || r[4] !== M || r[5] !== I || r[6] !== L || r[7] !== _ || r[8] !== b || r[9] !== d || r[10] !== z || r[11] !== O || r[12] !== j || r[13] !== E || r[14] !== R || r[15] !== f || r[16] !== u || r[17] !== y || r[18] !== p || r[19] !== l) {
|
|
38524
38530
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
38525
38531
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -38565,11 +38571,11 @@ ${c}
|
|
|
38565
38571
|
})
|
|
38566
38572
|
})
|
|
38567
38573
|
]
|
|
38568
|
-
}), 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", Z = c,
|
|
38569
|
-
let
|
|
38570
|
-
r[40] !== M || r[41] !==
|
|
38574
|
+
}), 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", Z = c, YW = R, XW = 0;
|
|
38575
|
+
let eG2 = y && "marimo-output-stale", tG2 = L ? "p-5" : "p-3";
|
|
38576
|
+
r[40] !== M || r[41] !== eG2 || r[42] !== tG2 ? (ZW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", eG2, tG2, M), r[40] = M, r[41] = eG2, r[42] = tG2, r[43] = ZW) : ZW = r[43], r[44] === d ? QW = r[45] : (QW = d ? {
|
|
38571
38577
|
maxHeight: "none"
|
|
38572
|
-
} : void 0, r[44] = d, r[45] =
|
|
38578
|
+
} : void 0, r[44] = d, r[45] = QW), $W = e2.map((e3, r2) => {
|
|
38573
38579
|
if (e3.channel === "pdb") return null;
|
|
38574
38580
|
if (e3.channel === "stdin") {
|
|
38575
38581
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -38598,36 +38604,36 @@ ${c}
|
|
|
38598
38604
|
wrapText: l
|
|
38599
38605
|
})
|
|
38600
38606
|
}, r2);
|
|
38601
|
-
}), r[3] = w, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = Z, r[25] =
|
|
38602
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23], Z = r[24],
|
|
38603
|
-
let
|
|
38604
|
-
r[46] !== w || r[47] !== S ? (
|
|
38607
|
+
}), r[3] = w, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = Z, r[25] = YW, r[26] = XW, r[27] = ZW, r[28] = QW, r[29] = $W;
|
|
38608
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], Z = r[24], YW = r[25], XW = r[26], ZW = r[27], QW = r[28], $W = r[29];
|
|
38609
|
+
let eG;
|
|
38610
|
+
r[46] !== w || r[47] !== S ? (eG = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
38605
38611
|
value: S,
|
|
38606
38612
|
cellId: w,
|
|
38607
38613
|
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"
|
|
38608
|
-
}), r[46] = w, r[47] = S, r[48] =
|
|
38609
|
-
let
|
|
38610
|
-
r[49] !==
|
|
38614
|
+
}), r[46] = w, r[47] = S, r[48] = eG) : eG = r[48];
|
|
38615
|
+
let tG;
|
|
38616
|
+
r[49] !== eG || r[50] !== G || r[51] !== q || r[52] !== Z || r[53] !== YW || r[54] !== XW || r[55] !== ZW || r[56] !== QW || r[57] !== $W ? (tG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38611
38617
|
title: G,
|
|
38612
38618
|
"data-testid": q,
|
|
38613
38619
|
ref: Z,
|
|
38614
|
-
...
|
|
38615
|
-
tabIndex:
|
|
38616
|
-
className:
|
|
38617
|
-
style:
|
|
38620
|
+
...YW,
|
|
38621
|
+
tabIndex: XW,
|
|
38622
|
+
className: ZW,
|
|
38623
|
+
style: QW,
|
|
38618
38624
|
children: [
|
|
38619
|
-
|
|
38620
|
-
|
|
38625
|
+
$W,
|
|
38626
|
+
eG
|
|
38621
38627
|
]
|
|
38622
|
-
}), r[49] =
|
|
38623
|
-
let
|
|
38624
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
38628
|
+
}), r[49] = eG, r[50] = G, r[51] = q, r[52] = Z, r[53] = YW, r[54] = XW, r[55] = ZW, r[56] = QW, r[57] = $W, r[58] = tG) : tG = r[58];
|
|
38629
|
+
let nG;
|
|
38630
|
+
return r[59] !== H || r[60] !== W || r[61] !== tG ? (nG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38625
38631
|
className: H,
|
|
38626
38632
|
children: [
|
|
38627
38633
|
W,
|
|
38628
|
-
|
|
38634
|
+
tG
|
|
38629
38635
|
]
|
|
38630
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
38636
|
+
}), r[59] = H, r[60] = W, r[61] = tG, r[62] = nG) : nG = r[62], nG;
|
|
38631
38637
|
}, StdInput = (e) => {
|
|
38632
38638
|
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;
|
|
38633
38639
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -39640,8 +39646,8 @@ ${c}
|
|
|
39640
39646
|
r[0] === c ? m = r[1] : (m = (e2) => e2.cellRuntime[c], r[0] = c, r[1] = m);
|
|
39641
39647
|
let h = m, g;
|
|
39642
39648
|
r[2] === h ? g = r[3] : (g = selectAtom(notebookAtom, h), r[2] = h, r[3] = g);
|
|
39643
|
-
let _ = useAtomValue(g);
|
|
39644
|
-
if (useSyncStatusToIsland(p, (_ == null ? void 0 : _.status) ?? "idle"), !(_ == null ? void 0 : _.output)) {
|
|
39649
|
+
let _ = useAtomValue(g), v = useAtomValue(islandsHydratedAtom);
|
|
39650
|
+
if (useSyncStatusToIsland(p, (_ == null ? void 0 : _.status) ?? "idle"), !v || !(_ == null ? void 0 : _.output)) {
|
|
39645
39651
|
let e2;
|
|
39646
39652
|
return r[4] === d ? e2 = r[5] : (e2 = (0, import_jsx_runtime.jsx)("div", {
|
|
39647
39653
|
ref: p,
|
|
@@ -39655,30 +39661,30 @@ ${c}
|
|
|
39655
39661
|
ref: p
|
|
39656
39662
|
}), r[6] = e2) : e2 = r[6], e2;
|
|
39657
39663
|
}
|
|
39658
|
-
let v;
|
|
39659
|
-
r[7] === _.output ? v = r[8] : (v = (0, import_jsx_runtime.jsx)(OutputRenderer, {
|
|
39660
|
-
message: _.output
|
|
39661
|
-
}), r[7] = _.output, r[8] = v);
|
|
39662
39664
|
let y;
|
|
39663
|
-
r[
|
|
39664
|
-
|
|
39665
|
-
}), r[
|
|
39665
|
+
r[7] === _.output ? y = r[8] : (y = (0, import_jsx_runtime.jsx)(OutputRenderer, {
|
|
39666
|
+
message: _.output
|
|
39667
|
+
}), r[7] = _.output, r[8] = y);
|
|
39666
39668
|
let b;
|
|
39667
|
-
r[
|
|
39669
|
+
r[9] === _ ? b = r[10] : (b = (0, import_jsx_runtime.jsx)(RunningIndicator, {
|
|
39670
|
+
state: _
|
|
39671
|
+
}), r[9] = _, r[10] = b);
|
|
39672
|
+
let S;
|
|
39673
|
+
r[11] !== c || r[12] !== l || r[13] !== f ? (S = (0, import_jsx_runtime.jsx)(IslandControls, {
|
|
39668
39674
|
cellId: c,
|
|
39669
39675
|
codeCallback: l,
|
|
39670
39676
|
visible: f
|
|
39671
|
-
}), r[11] = c, r[12] = l, r[13] = f, r[14] =
|
|
39672
|
-
let
|
|
39673
|
-
return r[15] !==
|
|
39677
|
+
}), r[11] = c, r[12] = l, r[13] = f, r[14] = S) : S = r[14];
|
|
39678
|
+
let w;
|
|
39679
|
+
return r[15] !== y || r[16] !== b || r[17] !== S ? (w = (0, import_jsx_runtime.jsxs)("div", {
|
|
39674
39680
|
ref: p,
|
|
39675
39681
|
className: "relative min-h-6",
|
|
39676
39682
|
children: [
|
|
39677
|
-
v,
|
|
39678
39683
|
y,
|
|
39679
|
-
b
|
|
39684
|
+
b,
|
|
39685
|
+
S
|
|
39680
39686
|
]
|
|
39681
|
-
}), r[15] =
|
|
39687
|
+
}), r[15] = y, r[16] = b, r[17] = S, r[18] = w) : w = r[18], w;
|
|
39682
39688
|
};
|
|
39683
39689
|
function useSyncStatusToIsland(e, r) {
|
|
39684
39690
|
let c = (0, import_compiler_runtime.c)(4), l, u;
|
|
@@ -39832,9 +39838,7 @@ ${c}
|
|
|
39832
39838
|
let e = this.root;
|
|
39833
39839
|
this.root = void 0, e && queueMicrotask(() => e.unmount());
|
|
39834
39840
|
}
|
|
39835
|
-
}, __publicField(_h2, "tagName", ISLAND_TAG_NAMES.ISLAND), __publicField(_h2, "outputTagName", ISLAND_TAG_NAMES.CELL_OUTPUT), __publicField(_h2, "codeTagName", ISLAND_TAG_NAMES.CELL_CODE), __publicField(_h2, "editorTagName", ISLAND_TAG_NAMES.CODE_EDITOR), __publicField(_h2, "styleNamespace", ISLAND_CSS_CLASSES.NAMESPACE), _h2);
|
|
39836
|
-
const islandsInitializedAtom = atom(false), userTriedToInteractWithIslandsAtom = atom(false), shouldShowIslandsWarningIndicatorAtom = atom((e) => e(userTriedToInteractWithIslandsAtom) && e(islandsInitializedAtom) === false);
|
|
39837
|
-
var didToast = false, toastElement;
|
|
39841
|
+
}, __publicField(_h2, "tagName", ISLAND_TAG_NAMES.ISLAND), __publicField(_h2, "outputTagName", ISLAND_TAG_NAMES.CELL_OUTPUT), __publicField(_h2, "codeTagName", ISLAND_TAG_NAMES.CELL_CODE), __publicField(_h2, "editorTagName", ISLAND_TAG_NAMES.CODE_EDITOR), __publicField(_h2, "styleNamespace", ISLAND_CSS_CLASSES.NAMESPACE), _h2), didToast = false, toastElement;
|
|
39838
39842
|
function toastIslandsLoading() {
|
|
39839
39843
|
didToast || (didToast = true, toastElement = document.createElement("div"), toastElement.classList.add("marimo-islands-loading-toast"), toastElement.textContent = "\u26A1 reactivity initializing...", toastElement.style.position = "fixed", toastElement.style.top = "0.5rem", toastElement.style.left = "50%", toastElement.style.transform = "translateX(-50%)", toastElement.style.zIndex = "1000", toastElement.style.backgroundColor = "#0f172a", toastElement.style.color = "#f8fafc", toastElement.style.padding = "0.25rem 0.5rem", toastElement.style.borderRadius = "0.5rem", toastElement.style.fontSize = "0.875rem", document.body.append(toastElement));
|
|
39840
39844
|
}
|
|
@@ -39843,7 +39847,7 @@ ${c}
|
|
|
39843
39847
|
}
|
|
39844
39848
|
async function initializeIslands(e) {
|
|
39845
39849
|
let r = e.store || store, c = e.root || document, l = e.bridge;
|
|
39846
|
-
r.set(requestClientAtom, l), r.set(initialModeAtom, "read"), e.autoInitializePlugins !== false && initializePlugins();
|
|
39850
|
+
r.set(requestClientAtom, l), r.set(initialModeAtom, "read"), r.set(islandsPendingInitialRunsAtom, null), e.autoInitializePlugins !== false && initializePlugins();
|
|
39847
39851
|
let u = Array.from(c.querySelectorAll(ISLAND_TAG_NAMES.ISLAND));
|
|
39848
39852
|
if (u.length === 0) {
|
|
39849
39853
|
Logger.log("No islands found, skipping initialization");
|
|
@@ -39863,19 +39867,19 @@ ${c}
|
|
|
39863
39867
|
dismissIslandsLoadingToast();
|
|
39864
39868
|
for (let e3 of l2) e3.style.removeProperty("opacity");
|
|
39865
39869
|
}
|
|
39866
|
-
}), l.consumeMessages((e2) => {
|
|
39867
|
-
handleMessage(e2, d);
|
|
39870
|
+
}), l.consumeMessages(({ message: e2, sessionGeneration: c2 }) => {
|
|
39871
|
+
handleMessage(e2, d, r, c2);
|
|
39868
39872
|
}), document.addEventListener(MarimoValueInputEvent.TYPE, () => {
|
|
39869
39873
|
r.set(userTriedToInteractWithIslandsAtom, true);
|
|
39870
39874
|
}, {
|
|
39871
39875
|
once: true
|
|
39872
39876
|
}), RuntimeState.INSTANCE.start(l.sendComponentValues);
|
|
39873
39877
|
}
|
|
39874
|
-
function handleMessage(e, r) {
|
|
39878
|
+
function handleMessage(e, r, c, l) {
|
|
39875
39879
|
var _a5;
|
|
39876
39880
|
try {
|
|
39877
|
-
let
|
|
39878
|
-
switch (Logger.debug("Islands received message:",
|
|
39881
|
+
let u = jsonParseWithSpecialChar(e);
|
|
39882
|
+
switch (Logger.debug("Islands received message:", u.op), u.op) {
|
|
39879
39883
|
case "banner":
|
|
39880
39884
|
case "missing-package-alert":
|
|
39881
39885
|
case "installing-package-alert":
|
|
@@ -39897,7 +39901,6 @@ ${c}
|
|
|
39897
39901
|
case "storage-download-ready":
|
|
39898
39902
|
case "secret-keys-result":
|
|
39899
39903
|
case "startup-logs":
|
|
39900
|
-
case "completed-run":
|
|
39901
39904
|
case "interrupted":
|
|
39902
39905
|
case "reconnected":
|
|
39903
39906
|
case "cache-cleared":
|
|
@@ -39905,8 +39908,15 @@ ${c}
|
|
|
39905
39908
|
case "kernel-startup-error":
|
|
39906
39909
|
case "notebook-document-transaction":
|
|
39907
39910
|
return;
|
|
39911
|
+
case "completed-run":
|
|
39912
|
+
c.set(islandsPendingInitialRunsAtom, (e2) => {
|
|
39913
|
+
if (!(e2 == null ? void 0 : e2.has(l))) return e2;
|
|
39914
|
+
let r2 = new Set(e2);
|
|
39915
|
+
return r2.delete(l), r2;
|
|
39916
|
+
});
|
|
39917
|
+
return;
|
|
39908
39918
|
case "kernel-ready":
|
|
39909
|
-
handleKernelReady(
|
|
39919
|
+
handleKernelReady(u.data, {
|
|
39910
39920
|
autoInstantiate: true,
|
|
39911
39921
|
setCells: r.setCells,
|
|
39912
39922
|
setLayoutData: Functions.NOOP,
|
|
@@ -39917,45 +39927,45 @@ ${c}
|
|
|
39917
39927
|
}), ((_a5 = window.customElements) == null ? void 0 : _a5.get(ISLAND_TAG_NAMES.ISLAND)) || defineCustomElement(ISLAND_TAG_NAMES.ISLAND, MarimoIslandElement);
|
|
39918
39928
|
return;
|
|
39919
39929
|
case "send-ui-element-message":
|
|
39920
|
-
UI_ELEMENT_REGISTRY.broadcastMessage(
|
|
39930
|
+
UI_ELEMENT_REGISTRY.broadcastMessage(u.data.ui_element, u.data.message, safeExtractSetUIElementMessageBuffers(u.data));
|
|
39921
39931
|
return;
|
|
39922
39932
|
case "remove-ui-elements":
|
|
39923
|
-
handleRemoveUIElements(
|
|
39933
|
+
handleRemoveUIElements(u.data);
|
|
39924
39934
|
return;
|
|
39925
39935
|
case "function-call-result":
|
|
39926
|
-
FUNCTIONS_REGISTRY.resolve(
|
|
39936
|
+
FUNCTIONS_REGISTRY.resolve(u.data.function_call_id, u.data);
|
|
39927
39937
|
return;
|
|
39928
39938
|
case "cell-op":
|
|
39929
|
-
handleCellNotificationeration(
|
|
39939
|
+
handleCellNotificationeration(u.data, r.handleCellMessage);
|
|
39930
39940
|
return;
|
|
39931
39941
|
case "alert":
|
|
39932
39942
|
toast({
|
|
39933
|
-
title:
|
|
39943
|
+
title: u.data.title,
|
|
39934
39944
|
description: renderHTML({
|
|
39935
|
-
html:
|
|
39945
|
+
html: u.data.description
|
|
39936
39946
|
}),
|
|
39937
|
-
variant:
|
|
39947
|
+
variant: u.data.variant
|
|
39938
39948
|
});
|
|
39939
39949
|
return;
|
|
39940
39950
|
case "query-params-append":
|
|
39941
|
-
queryParamHandlers.append(
|
|
39951
|
+
queryParamHandlers.append(u.data);
|
|
39942
39952
|
return;
|
|
39943
39953
|
case "query-params-set":
|
|
39944
|
-
queryParamHandlers.set(
|
|
39954
|
+
queryParamHandlers.set(u.data);
|
|
39945
39955
|
return;
|
|
39946
39956
|
case "query-params-delete":
|
|
39947
|
-
queryParamHandlers.delete(
|
|
39957
|
+
queryParamHandlers.delete(u.data);
|
|
39948
39958
|
return;
|
|
39949
39959
|
case "query-params-clear":
|
|
39950
39960
|
queryParamHandlers.clear();
|
|
39951
39961
|
return;
|
|
39952
39962
|
case "model-lifecycle":
|
|
39953
|
-
handleWidgetMessage(WIDGET_REGISTRY,
|
|
39963
|
+
handleWidgetMessage(WIDGET_REGISTRY, u.data);
|
|
39954
39964
|
return;
|
|
39955
39965
|
case "consumer-capabilities":
|
|
39956
39966
|
return;
|
|
39957
39967
|
default:
|
|
39958
|
-
logNever(
|
|
39968
|
+
logNever(u);
|
|
39959
39969
|
return;
|
|
39960
39970
|
}
|
|
39961
39971
|
} catch (e2) {
|
|
@@ -40187,7 +40197,7 @@ ${c}
|
|
|
40187
40197
|
});
|
|
40188
40198
|
}
|
|
40189
40199
|
const getMarimoVersion = () => store.get(marimoVersionAtom);
|
|
40190
|
-
var worker_default = "/assets/worker-
|
|
40200
|
+
var worker_default = "/assets/worker-CDEKsBgX.js", DefaultWorkerFactory = class {
|
|
40191
40201
|
constructor(e = {}) {
|
|
40192
40202
|
this.url = e.workerUrl || this.getDefaultWorkerUrl(), this.name = e.workerName || getMarimoVersion();
|
|
40193
40203
|
}
|
|
@@ -40316,7 +40326,7 @@ ${c}
|
|
|
40316
40326
|
this.store.set(islandsInitializedAtom, true), this.initialized.resolve();
|
|
40317
40327
|
}), this.rpc.addMessageListener("initializedError", ({ error: e }) => {
|
|
40318
40328
|
Logger.error("Islands initialization error:", e), this.store.set(islandsInitializedAtom, e), this.initialized.reject(Error(e));
|
|
40319
|
-
}), this.rpc.addMessageListener("kernelMessage", (
|
|
40329
|
+
}), this.rpc.addMessageListener("kernelMessage", (e) => {
|
|
40320
40330
|
var _a5;
|
|
40321
40331
|
(_a5 = this.messageConsumer) == null ? void 0 : _a5.call(this, e);
|
|
40322
40332
|
});
|
|
@@ -40328,28 +40338,34 @@ ${c}
|
|
|
40328
40338
|
}
|
|
40329
40339
|
async startApps() {
|
|
40330
40340
|
var _a5, _b3, _c4, _d4;
|
|
40331
|
-
let e = parseMarimoIslandApps(this.root
|
|
40341
|
+
let e = parseMarimoIslandApps(this.root, {
|
|
40342
|
+
materialize: false
|
|
40343
|
+
}), r = e.length === 1;
|
|
40332
40344
|
Logger.debug(`Starting sessions for ${e.length} app(s):`, e.map((e2) => `${e2.id} (${e2.cells.length} cells)`));
|
|
40333
|
-
let c = (_b3 = e.length === 1 && !((_a5 = e[0]) == null ? void 0 : _a5.payloadBacked) ? getMarimoExportContext() : void 0) == null ? void 0 : _b3.notebookCode;
|
|
40334
|
-
|
|
40335
|
-
|
|
40336
|
-
|
|
40337
|
-
|
|
40345
|
+
let c = (_b3 = e.length === 1 && !((_a5 = e[0]) == null ? void 0 : _a5.payloadBacked) ? getMarimoExportContext() : void 0) == null ? void 0 : _b3.notebookCode, l = r ? e[0] : void 0, u = l ? c || createMarimoFile(l) : void 0;
|
|
40346
|
+
if (l && ((_c4 = this.session) == null ? void 0 : _c4.appId) === l.id && this.session.code === u) {
|
|
40347
|
+
parseMarimoIslandApps(this.root);
|
|
40348
|
+
return;
|
|
40349
|
+
}
|
|
40350
|
+
e.length > 0 && this.store.set(islandsPendingInitialRunsAtom, new Set(e.map((e2, r2) => this.nextSessionGeneration + r2 + 1))), parseMarimoIslandApps(this.root);
|
|
40351
|
+
for (let c2 of e) {
|
|
40352
|
+
let e2 = u || createMarimoFile(c2);
|
|
40353
|
+
Logger.debug(`App ${c2.id} marimo file:
|
|
40338
40354
|
`, e2);
|
|
40339
|
-
let
|
|
40355
|
+
let l2 = {
|
|
40340
40356
|
code: e2,
|
|
40341
|
-
appId:
|
|
40357
|
+
appId: c2.id,
|
|
40342
40358
|
sessionGeneration: ++this.nextSessionGeneration
|
|
40343
40359
|
}, d = this.session, f = r && d !== void 0;
|
|
40344
40360
|
f && this.store.set(notebookAtom, initialNotebookState()), (r || !d) && (r && this.sessionReady.status !== "pending" && (this.sessionReady = new Deferred()), this.session = {
|
|
40345
|
-
...
|
|
40361
|
+
...l2,
|
|
40346
40362
|
code: r ? e2 : void 0
|
|
40347
40363
|
});
|
|
40348
|
-
let p = f ? this.rpc.proxy.request.replaceSession(
|
|
40364
|
+
let p = f ? this.rpc.proxy.request.replaceSession(l2) : this.startSession(l2);
|
|
40349
40365
|
try {
|
|
40350
40366
|
await p, this.sessionReady.status === "pending" && this.session && this.sessionReady.resolve(this.session);
|
|
40351
40367
|
} catch (e3) {
|
|
40352
|
-
if (((_d4 = this.session) == null ? void 0 : _d4.sessionGeneration) ===
|
|
40368
|
+
if (((_d4 = this.session) == null ? void 0 : _d4.sessionGeneration) === l2.sessionGeneration && (this.session = d), Logger.error(`Failed to start session for app ${c2.id}:`, e3), r) throw e3;
|
|
40353
40369
|
}
|
|
40354
40370
|
}
|
|
40355
40371
|
}
|
|
@@ -40359,7 +40375,7 @@ ${c}
|
|
|
40359
40375
|
(r == null ? void 0 : r.code) === void 0 || e && r.appId !== e || (await this.rpc.proxy.request.stopSession({
|
|
40360
40376
|
appId: r.appId,
|
|
40361
40377
|
sessionGeneration: r.sessionGeneration
|
|
40362
|
-
}), this.session = void 0, this.sessionReady = new Deferred(), this.store.set(notebookAtom, initialNotebookState()));
|
|
40378
|
+
}), this.store.set(islandsPendingInitialRunsAtom, null), this.session = void 0, this.sessionReady = new Deferred(), this.store.set(notebookAtom, initialNotebookState()));
|
|
40363
40379
|
});
|
|
40364
40380
|
}
|
|
40365
40381
|
enqueueAppTransition(e) {
|