@marimo-team/islands 0.23.14-dev38 → 0.23.14-dev43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{code-visibility-mXuKNkTw.js → code-visibility-BCkKHNom.js} +1 -1
- package/dist/main.js +983 -976
- package/dist/{reveal-component-DW8FGG4C.js → reveal-component-CD1M60a6.js} +1 -1
- package/package.json +1 -1
- package/src/components/editor/cell/cell-context-menu.tsx +2 -2
- package/src/components/editor/code/readonly-python-code.tsx +12 -4
- package/src/core/codemirror/go-to-definition/__tests__/utils.test.ts +75 -3
- package/src/core/codemirror/go-to-definition/extension.ts +3 -3
- package/src/core/codemirror/go-to-definition/underline.ts +5 -14
- package/src/core/codemirror/go-to-definition/utils.ts +49 -1
package/dist/main.js
CHANGED
|
@@ -26,7 +26,7 @@ import { $ as reducer, $t as requestClientAtom, A as ChevronDownIcon, At as Path
|
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BbqSm5gU.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist--2Bqjvs0.js";
|
|
28
28
|
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-CnTgI25l.js";
|
|
29
|
-
import { $ as PANEL_TYPES, $t as HtmlOutput, A as prettifyRowCount, At as INDEX_COLUMN_NAME, B as CompactChipRow, Bt as dateToLocalISODateTime, C as downloadSizeLimitAtom, Ct as ColumnChartSpecModel, D as ErrorState, Dt as getPageIndexForRow, E as EmptyState, Et as usePrevious$1, F as ContextMenuItem, Ft as hasFunctionProperty, G as Command, Gt as TabsTrigger, H as DateRangePicker, Ht as Tabs, I as ContextMenuSeparator, It as isRecord, J as CommandItem, Jt as ChartLoadingState, K as CommandEmpty, Kt as ChartErrorState, L as ContextMenuTrigger, Lt as isNullishFilter, M as getUserColumnVisibilityCounts, Mt as TOO_MANY_ROWS, N as ContextMenu, Nt as toFieldTypes, O as LoadingState, Ot as loadTableAndRawData, P as ContextMenuContent, Pt as getMimeValues, Q as ContextAwarePanelItem, Qt as Kbd, R as useInternalStateWithSync, Rt as Maps, S as Filenames, St as ColumnChartContext, T as ColumnPreviewContainer, Tt as useIntersectionObserver, U as Combobox, Ut as TabsContent, V as DatePicker, Vt as dateToLocalISOTime, W as ComboboxItem, Wt as TabsList, X as CommandSeparator, Xt as useOverflowDetection, Y as CommandList, Yt as LazyVegaEmbed, Z as smartMatch, Zt as RenderTextWithLinks, _ as ADD_PRINTING_CLASS, _t as TableRow, an as Funnel, at as slotsController, b as downloadHTMLAsImage, bt as inferFieldTypes, c as Slide, cn as Ellipsis, d as RadioGroupItem, dn as ChevronsUpDown, dt as Provider$1, en as EmotionCacheProvider, et as contextAwarePanelOpen, f as JsonOutput, fn as ChevronsRight, ft as Table, g as InstallPackageButton, gn as ArrowDownWideNarrow, gt as TableHeader, h as DataTable, hn as ChevronLeft, ht as TableHead, in as GripHorizontal, it as SlotNames, j as getColumnCountForDisplay, jt as SELECT_COLUMN_ID, k as prettifyRowColumnCount, kt as loadTableData, l as Switch, ln as Download, m as OutputRenderer, mn as ChevronsDownUp, mt as TableCell, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$6b862160d295c8e, nt as contextAwarePanelType, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as EyeOff, ot as Toggle, p as OutputArea, pn as ChevronsLeft, pt as TableBody, q as CommandInput, qt as ChartInfoState, r as showCodeInRunModeAtom, rn as TextWrap, rt as isCellAwareAtom, t as useNotebookCodeAvailable, tn as $fae977aafc393c5c$export$588937bcd60ade55, tt as contextAwarePanelOwner, u as RadioGroup, un as Code, ut as Fill, v as downloadBlob, vt as NAMELESS_COLUMN_PREFIX, w as ColumnName, wt as DelayMount, x as Progress, xt as renderCellValue, y as downloadByURL, yt as generateColumns, z as useSelectList, zt as dateToLocalISODate, __tla as __tla_2 } from "./code-visibility-
|
|
29
|
+
import { $ as PANEL_TYPES, $t as HtmlOutput, A as prettifyRowCount, At as INDEX_COLUMN_NAME, B as CompactChipRow, Bt as dateToLocalISODateTime, C as downloadSizeLimitAtom, Ct as ColumnChartSpecModel, D as ErrorState, Dt as getPageIndexForRow, E as EmptyState, Et as usePrevious$1, F as ContextMenuItem, Ft as hasFunctionProperty, G as Command, Gt as TabsTrigger, H as DateRangePicker, Ht as Tabs, I as ContextMenuSeparator, It as isRecord, J as CommandItem, Jt as ChartLoadingState, K as CommandEmpty, Kt as ChartErrorState, L as ContextMenuTrigger, Lt as isNullishFilter, M as getUserColumnVisibilityCounts, Mt as TOO_MANY_ROWS, N as ContextMenu, Nt as toFieldTypes, O as LoadingState, Ot as loadTableAndRawData, P as ContextMenuContent, Pt as getMimeValues, Q as ContextAwarePanelItem, Qt as Kbd, R as useInternalStateWithSync, Rt as Maps, S as Filenames, St as ColumnChartContext, T as ColumnPreviewContainer, Tt as useIntersectionObserver, U as Combobox, Ut as TabsContent, V as DatePicker, Vt as dateToLocalISOTime, W as ComboboxItem, Wt as TabsList, X as CommandSeparator, Xt as useOverflowDetection, Y as CommandList, Yt as LazyVegaEmbed, Z as smartMatch, Zt as RenderTextWithLinks, _ as ADD_PRINTING_CLASS, _t as TableRow, an as Funnel, at as slotsController, b as downloadHTMLAsImage, bt as inferFieldTypes, c as Slide, cn as Ellipsis, d as RadioGroupItem, dn as ChevronsUpDown, dt as Provider$1, en as EmotionCacheProvider, et as contextAwarePanelOpen, f as JsonOutput, fn as ChevronsRight, ft as Table, g as InstallPackageButton, gn as ArrowDownWideNarrow, gt as TableHeader, h as DataTable, hn as ChevronLeft, ht as TableHead, in as GripHorizontal, it as SlotNames, j as getColumnCountForDisplay, jt as SELECT_COLUMN_ID, k as prettifyRowColumnCount, kt as loadTableData, l as Switch, ln as Download, m as OutputRenderer, mn as ChevronsDownUp, mt as TableCell, n as marimoVersionAtom, nn as $fae977aafc393c5c$export$6b862160d295c8e, nt as contextAwarePanelType, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as EyeOff, ot as Toggle, p as OutputArea, pn as ChevronsLeft, pt as TableBody, q as CommandInput, qt as ChartInfoState, r as showCodeInRunModeAtom, rn as TextWrap, rt as isCellAwareAtom, t as useNotebookCodeAvailable, tn as $fae977aafc393c5c$export$588937bcd60ade55, tt as contextAwarePanelOwner, u as RadioGroup, un as Code, ut as Fill, v as downloadBlob, vt as NAMELESS_COLUMN_PREFIX, w as ColumnName, wt as DelayMount, x as Progress, xt as renderCellValue, y as downloadByURL, yt as generateColumns, z as useSelectList, zt as dateToLocalISODate, __tla as __tla_2 } from "./code-visibility-BCkKHNom.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-CxffarYV.js";
|
|
31
31
|
import { t as Check } from "./check-C9OoNtR4.js";
|
|
32
32
|
import { A as Icon, C as logNever, D as $18f2051aff69b9bf$export$a54013f0d02a8f82, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, M as clamp$2, N as usePrevious$2, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as Trigger$1, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./strings-Dq_j3Rxw.js";
|
|
@@ -4008,7 +4008,7 @@ let __tla = Promise.all([
|
|
|
4008
4008
|
});
|
|
4009
4009
|
}
|
|
4010
4010
|
}, NavMenuComponent = (e) => {
|
|
4011
|
-
let r = (0, import_compiler_runtime$87.c)(13), { items: c, orientation: l } = e, u = _temp$
|
|
4011
|
+
let r = (0, import_compiler_runtime$87.c)(13), { items: c, orientation: l } = e, u = _temp$28, d = _temp2$16, f = _temp3$12, p;
|
|
4012
4012
|
r[0] === l ? p = r[1] : (p = (e2) => "items" in e2 ? l === "horizontal" ? (0, import_jsx_runtime.jsx)(NavigationMenu, {
|
|
4013
4013
|
orientation: "horizontal",
|
|
4014
4014
|
children: (0, import_jsx_runtime.jsx)(NavigationMenuList, {
|
|
@@ -4124,7 +4124,7 @@ let __tla = Promise.all([
|
|
|
4124
4124
|
}), c[13] = f, c[14] = r, c[15] = m, c[16] = g, c[17] = _, c[18] = v) : v = c[18], v;
|
|
4125
4125
|
});
|
|
4126
4126
|
ListItem.displayName = "ListItem";
|
|
4127
|
-
function _temp$
|
|
4127
|
+
function _temp$28(e, r) {
|
|
4128
4128
|
return r ? (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
4129
4129
|
delayDuration: 200,
|
|
4130
4130
|
content: renderHTML({
|
|
@@ -6997,33 +6997,33 @@ let __tla = Promise.all([
|
|
|
6997
6997
|
}), B = C({
|
|
6998
6998
|
height: 0,
|
|
6999
6999
|
width: 0
|
|
7000
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
7000
|
+
}), H = U(), W = U(), G = C(0), q = C(null), bW = C({
|
|
7001
7001
|
column: 0,
|
|
7002
7002
|
row: 0
|
|
7003
|
-
}),
|
|
7004
|
-
Y(x(b, $(
|
|
7005
|
-
D(
|
|
7006
|
-
}), Y(x(ut(b,
|
|
7007
|
-
D(
|
|
7003
|
+
}), xW = U(), Z = U(), SW = C(false), CW = C(0), wW = C(true), TW = C(false), EW = C(false);
|
|
7004
|
+
Y(x(b, $(CW), P(([e2, r2]) => !!r2)), () => {
|
|
7005
|
+
D(wW, false);
|
|
7006
|
+
}), Y(x(ut(b, wW, B, z, CW, TW), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7007
|
+
D(TW, true), Ue(1, () => {
|
|
7008
7008
|
D(H, e2);
|
|
7009
7009
|
}), Et(x(h), () => {
|
|
7010
7010
|
D(r, [
|
|
7011
7011
|
0,
|
|
7012
7012
|
0
|
|
7013
|
-
]), D(
|
|
7013
|
+
]), D(wW, true);
|
|
7014
7014
|
});
|
|
7015
7015
|
}), F(x(Z, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(Z), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7016
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7017
|
-
D(
|
|
7016
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(bW, e2.gap), e2.scrollTop > 0 && (D(SW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7017
|
+
D(SW, false);
|
|
7018
7018
|
}), D(m, {
|
|
7019
7019
|
top: e2.scrollTop
|
|
7020
7020
|
})));
|
|
7021
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7021
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(bW, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7022
7022
|
gap: c2,
|
|
7023
7023
|
item: r2,
|
|
7024
7024
|
scrollTop: l2,
|
|
7025
7025
|
viewport: e2
|
|
7026
|
-
}))),
|
|
7026
|
+
}))), xW), F(x(ut(V(I), l, V(bW, Or), V(B, xe), V(z, xe), V(q), V(L), V(SW), V(wW), V(CW)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7027
7027
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7028
7028
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7029
7029
|
if (y2 === 0) {
|
|
@@ -7042,23 +7042,23 @@ let __tla = Promise.all([
|
|
|
7042
7042
|
offsetTop: j2,
|
|
7043
7043
|
top: j2
|
|
7044
7044
|
};
|
|
7045
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7045
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, bW), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7046
7046
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7047
7047
|
return [
|
|
7048
7048
|
d2,
|
|
7049
7049
|
u2
|
|
7050
7050
|
];
|
|
7051
7051
|
}), J(ce)), r);
|
|
7052
|
-
let
|
|
7053
|
-
F(x(h, $(
|
|
7054
|
-
let
|
|
7052
|
+
let DW = C(false);
|
|
7053
|
+
F(x(h, $(DW), k(([e2, r2]) => r2 || e2 !== 0)), DW);
|
|
7054
|
+
let OW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(DW), P(([[e2, r2], c2]) => {
|
|
7055
7055
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7056
7056
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7057
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7057
|
+
}), k(([[, e2]]) => e2 - 1), J())), kW = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), AW = bt(x(V(R), $(SW), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7058
7058
|
endIndex: e2[e2.length - 1].index,
|
|
7059
7059
|
startIndex: e2[0].index
|
|
7060
7060
|
})), J(An), Gt(0)));
|
|
7061
|
-
F(
|
|
7061
|
+
F(AW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, bW), k(([e2, r2, c2, l2, u2]) => {
|
|
7062
7062
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7063
7063
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7064
7064
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7067,7 +7067,7 @@ let __tla = Promise.all([
|
|
|
7067
7067
|
top: g2
|
|
7068
7068
|
};
|
|
7069
7069
|
})), m);
|
|
7070
|
-
let
|
|
7070
|
+
let jW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7071
7071
|
return F(x(j, k((e2) => ({
|
|
7072
7072
|
height: e2.visibleHeight,
|
|
7073
7073
|
width: e2.visibleWidth
|
|
@@ -7076,7 +7076,7 @@ let __tla = Promise.all([
|
|
|
7076
7076
|
data: q,
|
|
7077
7077
|
deviation: G,
|
|
7078
7078
|
footerHeight: u,
|
|
7079
|
-
gap:
|
|
7079
|
+
gap: bW,
|
|
7080
7080
|
headerHeight: d,
|
|
7081
7081
|
increaseViewportBy: e,
|
|
7082
7082
|
initialItemCount: L,
|
|
@@ -7098,16 +7098,16 @@ let __tla = Promise.all([
|
|
|
7098
7098
|
windowViewportRect: j,
|
|
7099
7099
|
...y,
|
|
7100
7100
|
gridState: R,
|
|
7101
|
-
horizontalDirection:
|
|
7102
|
-
initialTopMostItemIndex:
|
|
7103
|
-
totalListHeight:
|
|
7101
|
+
horizontalDirection: EW,
|
|
7102
|
+
initialTopMostItemIndex: CW,
|
|
7103
|
+
totalListHeight: jW,
|
|
7104
7104
|
...v,
|
|
7105
|
-
endReached:
|
|
7105
|
+
endReached: OW,
|
|
7106
7106
|
propsReady: S,
|
|
7107
|
-
rangeChanged:
|
|
7108
|
-
startReached:
|
|
7109
|
-
stateChanged:
|
|
7110
|
-
stateRestoreInProgress:
|
|
7107
|
+
rangeChanged: AW,
|
|
7108
|
+
startReached: kW,
|
|
7109
|
+
stateChanged: xW,
|
|
7110
|
+
stateRestoreInProgress: SW,
|
|
7111
7111
|
...M
|
|
7112
7112
|
};
|
|
7113
7113
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7385,22 +7385,22 @@ let __tla = Promise.all([
|
|
|
7385
7385
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7386
7386
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7387
7387
|
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7388
|
-
let
|
|
7388
|
+
let bW = q, xW;
|
|
7389
7389
|
if (r[13] !== G.bulkActions) {
|
|
7390
|
-
if (
|
|
7390
|
+
if (xW = G.bulkActions.map(_temp$27), xW.length > 0) {
|
|
7391
7391
|
let e2;
|
|
7392
7392
|
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7393
7393
|
"data-slot": "select-separator"
|
|
7394
|
-
}, "_bulk_separator"), r[15] = e2) : e2 = r[15],
|
|
7394
|
+
}, "_bulk_separator"), r[15] = e2) : e2 = r[15], xW.push(e2);
|
|
7395
7395
|
}
|
|
7396
|
-
r[13] = G.bulkActions, r[14] =
|
|
7397
|
-
} else
|
|
7396
|
+
r[13] = G.bulkActions, r[14] = xW;
|
|
7397
|
+
} else xW = r[14];
|
|
7398
7398
|
let Z;
|
|
7399
7399
|
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (Z = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7400
7400
|
"data-slot": "select-separator"
|
|
7401
7401
|
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = Z) : Z = r[18];
|
|
7402
|
-
let
|
|
7403
|
-
r[19] !==
|
|
7402
|
+
let SW = Z, CW;
|
|
7403
|
+
r[19] !== xW || r[20] !== G || r[21] !== SW || r[22] !== w || r[23] !== B || r[24] !== H ? (CW = () => {
|
|
7404
7404
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7405
7405
|
"data-slot": "select-list",
|
|
7406
7406
|
style: {
|
|
@@ -7412,8 +7412,8 @@ let __tla = Promise.all([
|
|
|
7412
7412
|
let r2 = G.visibleOptions[e3];
|
|
7413
7413
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7414
7414
|
children: [
|
|
7415
|
-
e3 === 0 &&
|
|
7416
|
-
|
|
7415
|
+
e3 === 0 && xW,
|
|
7416
|
+
SW(e3),
|
|
7417
7417
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7418
7418
|
option: r2,
|
|
7419
7419
|
checked: G.isChecked(r2.value),
|
|
@@ -7424,7 +7424,7 @@ let __tla = Promise.all([
|
|
|
7424
7424
|
}
|
|
7425
7425
|
});
|
|
7426
7426
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7427
|
-
let c2 =
|
|
7427
|
+
let c2 = SW(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7428
7428
|
option: e3,
|
|
7429
7429
|
checked: G.isChecked(e3.value),
|
|
7430
7430
|
renderOption: w
|
|
@@ -7438,13 +7438,13 @@ let __tla = Promise.all([
|
|
|
7438
7438
|
});
|
|
7439
7439
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7440
7440
|
children: [
|
|
7441
|
-
|
|
7441
|
+
xW,
|
|
7442
7442
|
e2
|
|
7443
7443
|
]
|
|
7444
7444
|
});
|
|
7445
|
-
}, r[19] =
|
|
7446
|
-
let
|
|
7447
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7445
|
+
}, r[19] = xW, r[20] = G, r[21] = SW, r[22] = w, r[23] = B, r[24] = H, r[25] = CW) : CW = r[25];
|
|
7446
|
+
let wW = CW, TW;
|
|
7447
|
+
r[26] !== G.labelOf || r[27] !== I ? (TW = (e2) => {
|
|
7448
7448
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7449
7449
|
e2
|
|
7450
7450
|
];
|
|
@@ -7455,48 +7455,48 @@ let __tla = Promise.all([
|
|
|
7455
7455
|
items: r2.map(G.labelOf),
|
|
7456
7456
|
max: 3
|
|
7457
7457
|
});
|
|
7458
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7459
|
-
let
|
|
7460
|
-
r[29] === G ?
|
|
7461
|
-
let
|
|
7462
|
-
r[31] !== b || r[32] !== R ? (
|
|
7458
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = TW) : TW = r[28];
|
|
7459
|
+
let EW = TW, DW = e["data-testid"], OW;
|
|
7460
|
+
r[29] === G ? OW = r[30] : (OW = (e2) => G.labelOf(e2), r[29] = G, r[30] = OW);
|
|
7461
|
+
let kW = M ? EW : void 0, AW;
|
|
7462
|
+
r[31] !== b || r[32] !== R ? (AW = cn({
|
|
7463
7463
|
"w-full": R
|
|
7464
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7465
|
-
let
|
|
7466
|
-
r[34] === z ?
|
|
7467
|
-
let
|
|
7468
|
-
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !==
|
|
7464
|
+
}, b), r[31] = b, r[32] = R, r[33] = AW) : AW = r[33];
|
|
7465
|
+
let jW = G.searchQuery, MW = G.setSearchQuery, NW = G.open, PW = G.setOpen, FW;
|
|
7466
|
+
r[34] === z ? FW = r[35] : (FW = renderSlot(z), r[34] = z, r[35] = FW);
|
|
7467
|
+
let IW;
|
|
7468
|
+
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !== DW || r[44] !== OW || r[45] !== kW || r[46] !== AW || r[47] !== FW ? (IW = {
|
|
7469
7469
|
"data-slot": "select-root",
|
|
7470
|
-
"data-testid":
|
|
7471
|
-
displayValue:
|
|
7472
|
-
renderValue:
|
|
7470
|
+
"data-testid": DW,
|
|
7471
|
+
displayValue: OW,
|
|
7472
|
+
renderValue: kW,
|
|
7473
7473
|
placeholder: I,
|
|
7474
|
-
className:
|
|
7474
|
+
className: AW,
|
|
7475
7475
|
shouldFilter: false,
|
|
7476
|
-
search:
|
|
7477
|
-
onSearchChange:
|
|
7478
|
-
open:
|
|
7479
|
-
onOpenChange:
|
|
7480
|
-
emptyState:
|
|
7476
|
+
search: jW,
|
|
7477
|
+
onSearchChange: MW,
|
|
7478
|
+
open: NW,
|
|
7479
|
+
onOpenChange: PW,
|
|
7480
|
+
emptyState: FW,
|
|
7481
7481
|
disabled: L,
|
|
7482
7482
|
id: S
|
|
7483
|
-
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] =
|
|
7484
|
-
let
|
|
7485
|
-
return r[49] !==
|
|
7486
|
-
...
|
|
7483
|
+
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] = DW, r[44] = OW, r[45] = kW, r[46] = AW, r[47] = FW, r[48] = IW) : IW = r[48];
|
|
7484
|
+
let LW = IW, RW;
|
|
7485
|
+
return r[49] !== LW || r[50] !== bW || r[51] !== d || r[52] !== wW || r[53] !== l ? (RW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7486
|
+
...LW,
|
|
7487
7487
|
multiple: true,
|
|
7488
7488
|
value: l,
|
|
7489
|
-
onValueChange:
|
|
7490
|
-
children:
|
|
7489
|
+
onValueChange: bW,
|
|
7490
|
+
children: wW()
|
|
7491
7491
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7492
|
-
...
|
|
7492
|
+
...LW,
|
|
7493
7493
|
multiple: false,
|
|
7494
7494
|
value: l,
|
|
7495
|
-
onValueChange:
|
|
7496
|
-
children:
|
|
7497
|
-
}), r[49] =
|
|
7495
|
+
onValueChange: bW,
|
|
7496
|
+
children: wW()
|
|
7497
|
+
}), r[49] = LW, r[50] = bW, r[51] = d, r[52] = wW, r[53] = l, r[54] = RW) : RW = r[54], RW;
|
|
7498
7498
|
}
|
|
7499
|
-
function _temp$
|
|
7499
|
+
function _temp$27(e) {
|
|
7500
7500
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
7501
7501
|
return (0, import_jsx_runtime.jsx)(CommandItem, {
|
|
7502
7502
|
"data-slot": "select-bulk",
|
|
@@ -7518,7 +7518,7 @@ let __tla = Promise.all([
|
|
|
7518
7518
|
children: "Bad Data"
|
|
7519
7519
|
}), r[0] = e2) : e2 = r[0];
|
|
7520
7520
|
let d2;
|
|
7521
|
-
r[1] === c.issues ? d2 = r[2] : (d2 = c.issues.map(_temp$
|
|
7521
|
+
r[1] === c.issues ? d2 = r[2] : (d2 = c.issues.map(_temp$26), r[1] = c.issues, r[2] = d2);
|
|
7522
7522
|
let f;
|
|
7523
7523
|
r[3] === d2 ? f = r[4] : (f = (0, import_jsx_runtime.jsx)("div", {
|
|
7524
7524
|
className: "text-md prose dark:prose-invert",
|
|
@@ -7576,7 +7576,7 @@ let __tla = Promise.all([
|
|
|
7576
7576
|
shadowRoot: c
|
|
7577
7577
|
});
|
|
7578
7578
|
}
|
|
7579
|
-
function _temp$
|
|
7579
|
+
function _temp$26(e) {
|
|
7580
7580
|
let r = e.path.join(".");
|
|
7581
7581
|
return (0, import_jsx_runtime.jsxs)("li", {
|
|
7582
7582
|
children: [
|
|
@@ -8156,7 +8156,7 @@ let __tla = Promise.all([
|
|
|
8156
8156
|
let u, d;
|
|
8157
8157
|
if (r[1] !== l || r[2] !== c) {
|
|
8158
8158
|
let e2 = c.split("-");
|
|
8159
|
-
r[5] === l ? u = r[6] : (u = cn("flex gap-1", l), r[5] = l, r[6] = u), d = e2.map(prettyPrintHotkey).map(_temp$
|
|
8159
|
+
r[5] === l ? u = r[6] : (u = cn("flex gap-1", l), r[5] = l, r[6] = u), d = e2.map(prettyPrintHotkey).map(_temp$25), r[1] = l, r[2] = c, r[3] = u, r[4] = d;
|
|
8160
8160
|
} else u = r[3], d = r[4];
|
|
8161
8161
|
let f;
|
|
8162
8162
|
return r[7] !== u || r[8] !== d ? (f = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -8326,7 +8326,7 @@ let __tla = Promise.all([
|
|
|
8326
8326
|
function capitalize$1(e) {
|
|
8327
8327
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
8328
8328
|
}
|
|
8329
|
-
function _temp$
|
|
8329
|
+
function _temp$25(e) {
|
|
8330
8330
|
let [r, c] = e;
|
|
8331
8331
|
return c ? (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
8332
8332
|
asChild: false,
|
|
@@ -8705,7 +8705,7 @@ let __tla = Promise.all([
|
|
|
8705
8705
|
]
|
|
8706
8706
|
}), r[11] = f, r[12] = v, r[13] = b) : b = r[13], b;
|
|
8707
8707
|
};
|
|
8708
|
-
function _temp$
|
|
8708
|
+
function _temp$24(e, r) {
|
|
8709
8709
|
return (0, import_jsx_runtime.jsx)(TableHead, {
|
|
8710
8710
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
8711
8711
|
className: "h-4 bg-(--slate-5) animate-pulse rounded-md w-[70%]"
|
|
@@ -8716,7 +8716,7 @@ let __tla = Promise.all([
|
|
|
8716
8716
|
return (0, import_jsx_runtime.jsx)(TableRow, {
|
|
8717
8717
|
children: Array.from({
|
|
8718
8718
|
length: 8
|
|
8719
|
-
}).map(_temp$
|
|
8719
|
+
}).map(_temp$24)
|
|
8720
8720
|
}, r);
|
|
8721
8721
|
}
|
|
8722
8722
|
function _temp3$11(e, r) {
|
|
@@ -8864,7 +8864,7 @@ let __tla = Promise.all([
|
|
|
8864
8864
|
let y, b, S, w;
|
|
8865
8865
|
r[15] === e ? (y = r[16], b = r[17], S = r[18], w = r[19]) : (y = (r2) => {
|
|
8866
8866
|
e.onEdits((e2) => {
|
|
8867
|
-
let c2 = r2.map(_temp$
|
|
8867
|
+
let c2 = r2.map(_temp$23);
|
|
8868
8868
|
return {
|
|
8869
8869
|
...e2,
|
|
8870
8870
|
edits: [
|
|
@@ -8925,7 +8925,7 @@ let __tla = Promise.all([
|
|
|
8925
8925
|
onAddColumn: w
|
|
8926
8926
|
}), r[20] = f, r[21] = l, r[22] = e.editableColumns, r[23] = e.edits.edits, r[24] = _, r[25] = v, r[26] = y, r[27] = b, r[28] = S, r[29] = w, r[30] = T) : T = r[30], T;
|
|
8927
8927
|
};
|
|
8928
|
-
function _temp$
|
|
8928
|
+
function _temp$23(e, r) {
|
|
8929
8929
|
return {
|
|
8930
8930
|
rowIdx: e - r,
|
|
8931
8931
|
type: BulkEdit.Remove
|
|
@@ -9709,7 +9709,7 @@ let __tla = Promise.all([
|
|
|
9709
9709
|
let m2 = get(l, e2);
|
|
9710
9710
|
if (m2) {
|
|
9711
9711
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
9712
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
9712
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : bW(e2, l2), f.mount && w();
|
|
9713
9713
|
}
|
|
9714
9714
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
9715
9715
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -9782,14 +9782,14 @@ let __tla = Promise.all([
|
|
|
9782
9782
|
}, H = () => {
|
|
9783
9783
|
for (let e2 of p.unMount) {
|
|
9784
9784
|
let r2 = get(l, e2);
|
|
9785
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
9785
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && AW(e2);
|
|
9786
9786
|
}
|
|
9787
9787
|
p.unMount = /* @__PURE__ */ new Set();
|
|
9788
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
9788
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(TW(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
9789
9789
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
9790
9790
|
[e2]: r2
|
|
9791
9791
|
} : r2
|
|
9792
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
9792
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), bW = (e2, r2, c2 = {}) => {
|
|
9793
9793
|
let u2 = get(l, e2), f2 = r2;
|
|
9794
9794
|
if (u2) {
|
|
9795
9795
|
let c3 = u2._f;
|
|
@@ -9802,11 +9802,11 @@ let __tla = Promise.all([
|
|
|
9802
9802
|
}
|
|
9803
9803
|
})));
|
|
9804
9804
|
}
|
|
9805
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
9806
|
-
},
|
|
9805
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && wW(e2);
|
|
9806
|
+
}, xW = (e2, r2, c2) => {
|
|
9807
9807
|
for (let u2 in r2) {
|
|
9808
9808
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
9809
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
9809
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? xW(f2, d2, c2) : bW(f2, d2, c2);
|
|
9810
9810
|
}
|
|
9811
9811
|
}, Z = (e2, r2, m2 = {}) => {
|
|
9812
9812
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
@@ -9819,7 +9819,7 @@ let __tla = Promise.all([
|
|
|
9819
9819
|
name: e2,
|
|
9820
9820
|
dirtyFields: getDirtyFields(u, d),
|
|
9821
9821
|
isDirty: W(e2, y2)
|
|
9822
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
9822
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? xW(e2, y2, m2) : bW(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
9823
9823
|
...c
|
|
9824
9824
|
}), _.values.next({
|
|
9825
9825
|
name: f.mount ? e2 : void 0,
|
|
@@ -9827,7 +9827,7 @@ let __tla = Promise.all([
|
|
|
9827
9827
|
...d
|
|
9828
9828
|
}
|
|
9829
9829
|
});
|
|
9830
|
-
},
|
|
9830
|
+
}, SW = async (e2) => {
|
|
9831
9831
|
f.mount = true;
|
|
9832
9832
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
9833
9833
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -9861,11 +9861,11 @@ let __tla = Promise.all([
|
|
|
9861
9861
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
9862
9862
|
h2
|
|
9863
9863
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
9864
|
-
S2 && (E2._f.deps &&
|
|
9864
|
+
S2 && (E2._f.deps && wW(E2._f.deps), L(h2, f2, u3, G2));
|
|
9865
9865
|
}
|
|
9866
|
-
},
|
|
9866
|
+
}, CW = (e2, r2) => {
|
|
9867
9867
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
9868
|
-
},
|
|
9868
|
+
}, wW = async (e2, u2 = {}) => {
|
|
9869
9869
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
9870
9870
|
if (r.resolver) {
|
|
9871
9871
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -9884,23 +9884,23 @@ let __tla = Promise.all([
|
|
|
9884
9884
|
isValid: d2
|
|
9885
9885
|
} : {},
|
|
9886
9886
|
errors: c.errors
|
|
9887
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
9888
|
-
},
|
|
9887
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, CW, e2 ? m2 : p.mount), f2;
|
|
9888
|
+
}, TW = (e2) => {
|
|
9889
9889
|
let r2 = {
|
|
9890
9890
|
...f.mount ? d : u
|
|
9891
9891
|
};
|
|
9892
9892
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
9893
|
-
},
|
|
9893
|
+
}, EW = (e2, r2) => ({
|
|
9894
9894
|
invalid: !!get((r2 || c).errors, e2),
|
|
9895
9895
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
9896
9896
|
error: get((r2 || c).errors, e2),
|
|
9897
9897
|
isValidating: !!get(c.validatingFields, e2),
|
|
9898
9898
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
9899
|
-
}),
|
|
9899
|
+
}), DW = (e2) => {
|
|
9900
9900
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
9901
9901
|
errors: e2 ? c.errors : {}
|
|
9902
9902
|
});
|
|
9903
|
-
},
|
|
9903
|
+
}, OW = (e2, r2, u2) => {
|
|
9904
9904
|
let d2 = (get(l, e2, {
|
|
9905
9905
|
_f: {}
|
|
9906
9906
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -9913,9 +9913,9 @@ let __tla = Promise.all([
|
|
|
9913
9913
|
errors: c.errors,
|
|
9914
9914
|
isValid: false
|
|
9915
9915
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
9916
|
-
},
|
|
9916
|
+
}, kW = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
9917
9917
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
9918
|
-
}) : G(e2, r2, true),
|
|
9918
|
+
}) : G(e2, r2, true), AW = (e2, f2 = {}) => {
|
|
9919
9919
|
for (let m2 of e2 ? convertToArrayPayload(e2) : p.mount) p.mount.delete(m2), p.array.delete(m2), f2.keepValue || (unset(l, m2), unset(d, m2)), !f2.keepError && unset(c.errors, m2), !f2.keepDirty && unset(c.dirtyFields, m2), !f2.keepTouched && unset(c.touchedFields, m2), !f2.keepIsValidating && unset(c.validatingFields, m2), !r.shouldUnregister && !f2.keepDefaultValue && unset(u, m2);
|
|
9920
9920
|
_.values.next({
|
|
9921
9921
|
values: {
|
|
@@ -9927,9 +9927,9 @@ let __tla = Promise.all([
|
|
|
9927
9927
|
isDirty: W()
|
|
9928
9928
|
} : {}
|
|
9929
9929
|
}), !f2.keepIsValid && w();
|
|
9930
|
-
},
|
|
9930
|
+
}, jW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
9931
9931
|
(isBoolean(e2) && f.mount || e2 || p.disabled.has(r2)) && (e2 ? p.disabled.add(r2) : p.disabled.delete(r2), I(r2, getFieldValue(c2 ? c2._f : get(l2, r2)._f), false, false, true));
|
|
9932
|
-
},
|
|
9932
|
+
}, MW = (e2, c2 = {}) => {
|
|
9933
9933
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
9934
9934
|
return set(l, e2, {
|
|
9935
9935
|
...d2 || {},
|
|
@@ -9943,7 +9943,7 @@ let __tla = Promise.all([
|
|
|
9943
9943
|
mount: true,
|
|
9944
9944
|
...c2
|
|
9945
9945
|
}
|
|
9946
|
-
}), p.mount.add(e2), d2 ?
|
|
9946
|
+
}), p.mount.add(e2), d2 ? jW({
|
|
9947
9947
|
field: d2,
|
|
9948
9948
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
9949
9949
|
name: e2
|
|
@@ -9960,11 +9960,11 @@ let __tla = Promise.all([
|
|
|
9960
9960
|
pattern: getRuleValue(c2.pattern)
|
|
9961
9961
|
} : {},
|
|
9962
9962
|
name: e2,
|
|
9963
|
-
onChange:
|
|
9964
|
-
onBlur:
|
|
9963
|
+
onChange: SW,
|
|
9964
|
+
onBlur: SW,
|
|
9965
9965
|
ref: (m3) => {
|
|
9966
9966
|
if (m3) {
|
|
9967
|
-
|
|
9967
|
+
MW(e2, c2), d2 = get(l, e2);
|
|
9968
9968
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
9969
9969
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
9970
9970
|
set(l, e2, {
|
|
@@ -9990,7 +9990,7 @@ let __tla = Promise.all([
|
|
|
9990
9990
|
} else d2 = get(l, e2, {}), d2._f && (d2._f.mount = false), (r.shouldUnregister || c2.shouldUnregister) && !(isNameInFieldArray(p.array, e2) && f.action) && p.unMount.add(e2);
|
|
9991
9991
|
}
|
|
9992
9992
|
};
|
|
9993
|
-
},
|
|
9993
|
+
}, NW = () => r.shouldFocusError && iterateFieldsByAction(l, CW, p.mount), PW = (e2) => {
|
|
9994
9994
|
isBoolean(e2) && (_.state.next({
|
|
9995
9995
|
disabled: e2
|
|
9996
9996
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -9999,7 +9999,7 @@ let __tla = Promise.all([
|
|
|
9999
9999
|
r3.disabled = u2._f.disabled || e2;
|
|
10000
10000
|
}));
|
|
10001
10001
|
}, 0, false));
|
|
10002
|
-
},
|
|
10002
|
+
}, FW = (e2, u2) => async (f2) => {
|
|
10003
10003
|
let m2;
|
|
10004
10004
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
10005
10005
|
let h2 = cloneObject(d);
|
|
@@ -10021,7 +10021,7 @@ let __tla = Promise.all([
|
|
|
10021
10021
|
}
|
|
10022
10022
|
} else u2 && await u2({
|
|
10023
10023
|
...c.errors
|
|
10024
|
-
}, f2),
|
|
10024
|
+
}, f2), NW(), setTimeout(NW);
|
|
10025
10025
|
if (_.state.next({
|
|
10026
10026
|
isSubmitted: true,
|
|
10027
10027
|
isSubmitting: false,
|
|
@@ -10029,11 +10029,11 @@ let __tla = Promise.all([
|
|
|
10029
10029
|
submitCount: c.submitCount + 1,
|
|
10030
10030
|
errors: c.errors
|
|
10031
10031
|
}), m2) throw m2;
|
|
10032
|
-
},
|
|
10032
|
+
}, IW = (e2, r2 = {}) => {
|
|
10033
10033
|
get(l, e2) && (isUndefined(r2.defaultValue) ? Z(e2, cloneObject(get(u, e2))) : (Z(e2, r2.defaultValue), set(u, e2, cloneObject(r2.defaultValue))), r2.keepTouched || unset(c.touchedFields, e2), r2.keepDirty || (unset(c.dirtyFields, e2), c.isDirty = r2.defaultValue ? W(e2, cloneObject(get(u, e2))) : W()), r2.keepError || (unset(c.errors, e2), g.isValid && w()), _.state.next({
|
|
10034
10034
|
...c
|
|
10035
10035
|
}));
|
|
10036
|
-
},
|
|
10036
|
+
}, LW = (e2, m2 = {}) => {
|
|
10037
10037
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10038
10038
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10039
10039
|
if (m2.keepDirtyValues) {
|
|
@@ -10086,25 +10086,25 @@ let __tla = Promise.all([
|
|
|
10086
10086
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10087
10087
|
isSubmitting: false
|
|
10088
10088
|
});
|
|
10089
|
-
},
|
|
10089
|
+
}, RW = (e2, r2) => LW(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10090
10090
|
return {
|
|
10091
10091
|
control: {
|
|
10092
|
-
register:
|
|
10093
|
-
unregister:
|
|
10094
|
-
getFieldState:
|
|
10095
|
-
handleSubmit:
|
|
10096
|
-
setError:
|
|
10092
|
+
register: MW,
|
|
10093
|
+
unregister: AW,
|
|
10094
|
+
getFieldState: EW,
|
|
10095
|
+
handleSubmit: FW,
|
|
10096
|
+
setError: OW,
|
|
10097
10097
|
_executeSchema: R,
|
|
10098
10098
|
_getWatch: G,
|
|
10099
10099
|
_getDirty: W,
|
|
10100
10100
|
_updateValid: w,
|
|
10101
10101
|
_removeUnmounted: H,
|
|
10102
10102
|
_updateFieldArray: E,
|
|
10103
|
-
_updateDisabledField:
|
|
10103
|
+
_updateDisabledField: jW,
|
|
10104
10104
|
_getFieldArray: q,
|
|
10105
|
-
_reset:
|
|
10105
|
+
_reset: LW,
|
|
10106
10106
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10107
|
-
|
|
10107
|
+
RW(e2, r.resetOptions), _.state.next({
|
|
10108
10108
|
isLoading: false
|
|
10109
10109
|
});
|
|
10110
10110
|
}),
|
|
@@ -10114,7 +10114,7 @@ let __tla = Promise.all([
|
|
|
10114
10114
|
...e2
|
|
10115
10115
|
};
|
|
10116
10116
|
},
|
|
10117
|
-
_disableForm:
|
|
10117
|
+
_disableForm: PW,
|
|
10118
10118
|
_subjects: _,
|
|
10119
10119
|
_proxyFormState: g,
|
|
10120
10120
|
_setErrors: j,
|
|
@@ -10155,17 +10155,17 @@ let __tla = Promise.all([
|
|
|
10155
10155
|
};
|
|
10156
10156
|
}
|
|
10157
10157
|
},
|
|
10158
|
-
trigger:
|
|
10159
|
-
register:
|
|
10160
|
-
handleSubmit:
|
|
10161
|
-
watch:
|
|
10158
|
+
trigger: wW,
|
|
10159
|
+
register: MW,
|
|
10160
|
+
handleSubmit: FW,
|
|
10161
|
+
watch: kW,
|
|
10162
10162
|
setValue: Z,
|
|
10163
|
-
getValues:
|
|
10164
|
-
reset:
|
|
10165
|
-
resetField:
|
|
10166
|
-
clearErrors:
|
|
10167
|
-
unregister:
|
|
10168
|
-
setError:
|
|
10163
|
+
getValues: TW,
|
|
10164
|
+
reset: RW,
|
|
10165
|
+
resetField: IW,
|
|
10166
|
+
clearErrors: DW,
|
|
10167
|
+
unregister: AW,
|
|
10168
|
+
setError: OW,
|
|
10169
10169
|
setFocus: (e2, r2 = {}) => {
|
|
10170
10170
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10171
10171
|
if (u2) {
|
|
@@ -10173,7 +10173,7 @@ let __tla = Promise.all([
|
|
|
10173
10173
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10174
10174
|
}
|
|
10175
10175
|
},
|
|
10176
|
-
getFieldState:
|
|
10176
|
+
getFieldState: EW
|
|
10177
10177
|
};
|
|
10178
10178
|
}
|
|
10179
10179
|
function useForm(e = {}) {
|
|
@@ -10751,7 +10751,7 @@ ${c}
|
|
|
10751
10751
|
let f;
|
|
10752
10752
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (e2) => {
|
|
10753
10753
|
var _a3;
|
|
10754
|
-
(_a3 = e2 == null ? void 0 : e2.stopPropagation) == null ? void 0 : _a3.call(e2), l(_temp$
|
|
10754
|
+
(_a3 = e2 == null ? void 0 : e2.stopPropagation) == null ? void 0 : _a3.call(e2), l(_temp$22);
|
|
10755
10755
|
}, r[2] = f) : f = r[2];
|
|
10756
10756
|
let p;
|
|
10757
10757
|
r[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
@@ -10765,7 +10765,7 @@ ${c}
|
|
|
10765
10765
|
p
|
|
10766
10766
|
], r[4] = c, r[5] = m), m;
|
|
10767
10767
|
}
|
|
10768
|
-
function _temp$
|
|
10768
|
+
function _temp$22(e) {
|
|
10769
10769
|
return !e;
|
|
10770
10770
|
}
|
|
10771
10771
|
var import_compiler_runtime$73 = require_compiler_runtime(), Slider = import_react.forwardRef((e, r) => {
|
|
@@ -10849,7 +10849,7 @@ ${c}
|
|
|
10849
10849
|
};
|
|
10850
10850
|
const Multiselect = (e) => {
|
|
10851
10851
|
let r = (0, import_compiler_runtime$72.c)(17), { options: c, label: l, value: u, setValue: d, fullWidth: f, maxSelections: p, disabled: m } = e, h = (0, import_react.useId)(), g;
|
|
10852
|
-
r[0] === c ? g = r[1] : (g = c.map(_temp$
|
|
10852
|
+
r[0] === c ? g = r[1] : (g = c.map(_temp$21), r[0] = c, r[1] = g);
|
|
10853
10853
|
let _ = g, v;
|
|
10854
10854
|
r[2] === d ? v = r[3] : (v = (e2) => d(e2 ?? []), r[2] = d, r[3] = v);
|
|
10855
10855
|
let y;
|
|
@@ -10873,7 +10873,7 @@ ${c}
|
|
|
10873
10873
|
children: y
|
|
10874
10874
|
}), r[12] = f, r[13] = h, r[14] = l, r[15] = y, r[16] = b) : b = r[16], b;
|
|
10875
10875
|
};
|
|
10876
|
-
function _temp$
|
|
10876
|
+
function _temp$21(e) {
|
|
10877
10877
|
return {
|
|
10878
10878
|
value: e,
|
|
10879
10879
|
label: e
|
|
@@ -12340,7 +12340,7 @@ ${c}
|
|
|
12340
12340
|
const ReadonlyCode = (0, import_react.memo)((e) => {
|
|
12341
12341
|
let r = (0, import_compiler_runtime$70.c)(39), { theme: c } = useTheme(), l, u, d, f, m, h, g, _;
|
|
12342
12342
|
r[0] === e ? (l = r[1], u = r[2], d = r[3], f = r[4], m = r[5], h = r[6], g = r[7], _ = r[8]) : ({ code: u, className: l, initiallyHideCode: d, showHideCode: h, showCopyCode: g, insertNewCell: f, language: _, ...m } = e, r[0] = e, r[1] = l, r[2] = u, r[3] = d, r[4] = f, r[5] = m, r[6] = h, r[7] = g, r[8] = _);
|
|
12343
|
-
let v = h === void 0 ? true : h, y = g === void 0 ? true : g, b = _ === void 0 ? "python" : _, [S, w] = (0, import_react.useState)(d), T = c === "dark" ? darkTheme : lightTheme, E;
|
|
12343
|
+
let v = h === void 0 ? true : h, y = g === void 0 ? true : g, b = _ === void 0 ? "python" : _, [S, w] = (0, import_react.useState)(!!d), T = c === "dark" ? darkTheme : lightTheme, E;
|
|
12344
12344
|
r[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = syntaxHighlighting(defaultHighlightStyle, {
|
|
12345
12345
|
fallback: true
|
|
12346
12346
|
}), r[9] = E) : E = r[9];
|
|
@@ -12362,8 +12362,8 @@ ${c}
|
|
|
12362
12362
|
}), r[18] = u, r[19] = f, r[20] = L) : L = r[20];
|
|
12363
12363
|
let R;
|
|
12364
12364
|
r[21] !== S || r[22] !== v ? (R = v && (0, import_jsx_runtime.jsx)(ToggleCodeButton, {
|
|
12365
|
-
hidden: S
|
|
12366
|
-
onClick: () => w(
|
|
12365
|
+
hidden: S,
|
|
12366
|
+
onClick: () => w(_temp$20)
|
|
12367
12367
|
}), r[21] = S, r[22] = v, r[23] = R) : R = r[23];
|
|
12368
12368
|
let z;
|
|
12369
12369
|
r[24] !== I || r[25] !== L || r[26] !== R ? (z = (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -12418,32 +12418,34 @@ ${c}
|
|
|
12418
12418
|
size: "xs",
|
|
12419
12419
|
className: "py-0",
|
|
12420
12420
|
variant: "secondary",
|
|
12421
|
+
"aria-label": "Copy code",
|
|
12421
12422
|
children: u
|
|
12422
12423
|
})
|
|
12423
12424
|
}), r[3] = l, r[4] = d), d;
|
|
12424
12425
|
}, ToggleCodeButton = (e) => {
|
|
12425
|
-
let r = (0, import_compiler_runtime$70.c)(
|
|
12426
|
-
r[0] === e.hidden ?
|
|
12426
|
+
let r = (0, import_compiler_runtime$70.c)(9), c = e.hidden ? "Show code" : "Hide code", l = e.hidden ? "Show code" : "Hide code", u;
|
|
12427
|
+
r[0] === e.hidden ? u = r[1] : (u = e.hidden ? (0, import_jsx_runtime.jsx)(Eye, {
|
|
12427
12428
|
size: 14,
|
|
12428
12429
|
strokeWidth: 1.5
|
|
12429
12430
|
}) : (0, import_jsx_runtime.jsx)(EyeOff, {
|
|
12430
12431
|
size: 14,
|
|
12431
12432
|
strokeWidth: 1.5
|
|
12432
|
-
}), r[0] = e.hidden, r[1] =
|
|
12433
|
-
let
|
|
12434
|
-
r[2] !== e.onClick || r[3] !== l ? (
|
|
12433
|
+
}), r[0] = e.hidden, r[1] = u);
|
|
12434
|
+
let d;
|
|
12435
|
+
r[2] !== e.onClick || r[3] !== l || r[4] !== u ? (d = (0, import_jsx_runtime.jsx)(Button, {
|
|
12435
12436
|
onClick: e.onClick,
|
|
12437
|
+
"aria-label": l,
|
|
12436
12438
|
size: "xs",
|
|
12437
12439
|
className: "py-0",
|
|
12438
12440
|
variant: "secondary",
|
|
12439
|
-
children:
|
|
12440
|
-
}), r[2] = e.onClick, r[3] = l, r[4] = u) :
|
|
12441
|
-
let
|
|
12442
|
-
return r[
|
|
12441
|
+
children: u
|
|
12442
|
+
}), r[2] = e.onClick, r[3] = l, r[4] = u, r[5] = d) : d = r[5];
|
|
12443
|
+
let f;
|
|
12444
|
+
return r[6] !== c || r[7] !== d ? (f = (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
12443
12445
|
content: c,
|
|
12444
12446
|
usePortal: false,
|
|
12445
|
-
children:
|
|
12446
|
-
}), r[
|
|
12447
|
+
children: d
|
|
12448
|
+
}), r[6] = c, r[7] = d, r[8] = f) : f = r[8], f;
|
|
12447
12449
|
}, InsertNewCell = (e) => {
|
|
12448
12450
|
let r = (0, import_compiler_runtime$70.c)(6), c = useAddCodeToNewCell(), l;
|
|
12449
12451
|
r[0] !== c || r[1] !== e.code ? (l = () => {
|
|
@@ -12463,10 +12465,15 @@ ${c}
|
|
|
12463
12465
|
size: "xs",
|
|
12464
12466
|
className: "py-0",
|
|
12465
12467
|
variant: "secondary",
|
|
12468
|
+
"aria-label": "Add code to notebook",
|
|
12466
12469
|
children: d
|
|
12467
12470
|
})
|
|
12468
12471
|
}), r[4] = u, r[5] = f), f;
|
|
12469
|
-
}
|
|
12472
|
+
};
|
|
12473
|
+
function _temp$20(e) {
|
|
12474
|
+
return !e;
|
|
12475
|
+
}
|
|
12476
|
+
var import_compiler_runtime$69 = require_compiler_runtime();
|
|
12470
12477
|
const Title = (e) => {
|
|
12471
12478
|
let r = (0, import_compiler_runtime$69.c)(5), { text: c, tooltip: l } = e, u;
|
|
12472
12479
|
r[0] === l ? u = r[1] : (u = l && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
@@ -15891,21 +15898,21 @@ ${c}
|
|
|
15891
15898
|
_.pageSize,
|
|
15892
15899
|
_.pageIndex
|
|
15893
15900
|
], r[35] = w, r[36] = _.pageIndex, r[37] = _.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = u, r[44] = y, r[45] = m, r[46] = B, r[47] = H) : H = r[47];
|
|
15894
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
15895
|
-
r[48] !==
|
|
15896
|
-
let
|
|
15897
|
-
r[51] !==
|
|
15898
|
-
bW,
|
|
15901
|
+
let { data: W, error: G, isPending: q, isFetching: bW } = useAsyncData(z, H), xW = useAtomValue(downloadSizeLimitAtom), Z;
|
|
15902
|
+
r[48] !== xW || r[49] !== e ? (Z = async () => !xW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = xW, r[49] = e, r[50] = Z) : Z = r[50];
|
|
15903
|
+
let SW = e.showDownload, CW = e.get_size_bytes, wW = e.lazy, TW = e.totalRows, EW = useDeepCompareMemoize(w), DW = useDeepCompareMemoize(m), OW;
|
|
15904
|
+
r[51] !== xW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== EW || r[58] !== DW ? (OW = [
|
|
15899
15905
|
xW,
|
|
15900
15906
|
SW,
|
|
15901
15907
|
CW,
|
|
15902
15908
|
wW,
|
|
15903
|
-
y,
|
|
15904
15909
|
TW,
|
|
15905
|
-
|
|
15906
|
-
|
|
15907
|
-
|
|
15908
|
-
r[
|
|
15910
|
+
y,
|
|
15911
|
+
EW,
|
|
15912
|
+
DW
|
|
15913
|
+
], r[51] = xW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = EW, r[58] = DW, r[59] = OW) : OW = r[59];
|
|
15914
|
+
let { data: kW, isPending: AW } = useAsyncData(Z, OW), jW = kW ?? null, MW = !!xW && e.showDownload && AW, NW;
|
|
15915
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (NW = async (e2) => ({
|
|
15909
15916
|
rows: await loadTableData((await u({
|
|
15910
15917
|
page_number: e2,
|
|
15911
15918
|
page_size: 1,
|
|
@@ -15914,17 +15921,17 @@ ${c}
|
|
|
15914
15921
|
filters: filtersToFilterGroup(w),
|
|
15915
15922
|
max_columns: null
|
|
15916
15923
|
})).data)
|
|
15917
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
15918
|
-
let
|
|
15919
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
15924
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = NW) : NW = r[64];
|
|
15925
|
+
let PW = NW, FW;
|
|
15926
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (FW = () => {
|
|
15920
15927
|
v(_temp4$4);
|
|
15921
|
-
}, r[65] =
|
|
15922
|
-
let
|
|
15923
|
-
r[66] ===
|
|
15924
|
-
|
|
15925
|
-
], r[66] =
|
|
15926
|
-
let
|
|
15927
|
-
r[68] === e ?
|
|
15928
|
+
}, r[65] = FW) : FW = r[65];
|
|
15929
|
+
let IW = W == null ? void 0 : W.totalRows, LW;
|
|
15930
|
+
r[66] === IW ? LW = r[67] : (LW = [
|
|
15931
|
+
IW
|
|
15932
|
+
], r[66] = IW, r[67] = LW), (0, import_react.useEffect)(FW, LW);
|
|
15933
|
+
let RW;
|
|
15934
|
+
r[68] === e ? RW = r[69] : (RW = async () => {
|
|
15928
15935
|
let r2 = isStaticNotebook();
|
|
15929
15936
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
15930
15937
|
data: null,
|
|
@@ -15933,22 +15940,22 @@ ${c}
|
|
|
15933
15940
|
value_counts: {},
|
|
15934
15941
|
show_charts: false
|
|
15935
15942
|
} : e.get_column_summaries({});
|
|
15936
|
-
}, r[68] = e, r[69] =
|
|
15937
|
-
let
|
|
15938
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
15943
|
+
}, r[68] = e, r[69] = RW);
|
|
15944
|
+
let zW;
|
|
15945
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (zW = [
|
|
15939
15946
|
e.get_column_summaries,
|
|
15940
15947
|
e.showColumnSummaries,
|
|
15941
15948
|
w,
|
|
15942
15949
|
y,
|
|
15943
15950
|
e.totalRows,
|
|
15944
15951
|
e.data
|
|
15945
|
-
], 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] =
|
|
15946
|
-
let { data:
|
|
15947
|
-
if (r[77] ===
|
|
15948
|
-
|
|
15949
|
-
},
|
|
15950
|
-
|
|
15951
|
-
], r[77] =
|
|
15952
|
+
], 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] = zW) : zW = r[76];
|
|
15953
|
+
let { data: BW, error: VW } = useAsyncData(RW, zW), HW, UW;
|
|
15954
|
+
if (r[77] === VW ? (HW = r[78], UW = r[79]) : (HW = () => {
|
|
15955
|
+
VW && Logger.error(VW);
|
|
15956
|
+
}, UW = [
|
|
15957
|
+
VW
|
|
15958
|
+
], r[77] = VW, r[78] = HW, r[79] = UW), (0, import_react.useEffect)(HW, UW), q) {
|
|
15952
15959
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
15953
15960
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
15954
15961
|
milliseconds: 200,
|
|
@@ -15957,7 +15964,7 @@ ${c}
|
|
|
15957
15964
|
})
|
|
15958
15965
|
}), r[80] = c2, r[81] = l2), l2;
|
|
15959
15966
|
}
|
|
15960
|
-
let
|
|
15967
|
+
let WW = null;
|
|
15961
15968
|
if (G) {
|
|
15962
15969
|
Logger.error(G);
|
|
15963
15970
|
let e2;
|
|
@@ -15973,62 +15980,62 @@ ${c}
|
|
|
15973
15980
|
children: G.message || "An unknown error occurred"
|
|
15974
15981
|
})
|
|
15975
15982
|
]
|
|
15976
|
-
}), r[82] = G, r[83] = e2),
|
|
15983
|
+
}), r[82] = G, r[83] = e2), WW = e2;
|
|
15977
15984
|
}
|
|
15978
|
-
let
|
|
15979
|
-
r[84] === O ?
|
|
15985
|
+
let GW;
|
|
15986
|
+
r[84] === O ? GW = r[85] : (GW = () => {
|
|
15980
15987
|
j(!O);
|
|
15981
|
-
}, r[84] = O, r[85] =
|
|
15982
|
-
let
|
|
15983
|
-
r[86] !== l || r[87] !==
|
|
15988
|
+
}, r[84] = O, r[85] = GW);
|
|
15989
|
+
let KW = GW, qW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, JW = W == null ? void 0 : W.rawRows, YW = bW && !q, XW = (W == null ? void 0 : W.totalRows) ?? e.totalRows, ZW = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, QW = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, $W;
|
|
15990
|
+
r[86] !== l || r[87] !== BW || r[88] !== O || r[89] !== w || r[90] !== PW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== jW || r[95] !== MW || r[96] !== m || r[97] !== qW || r[98] !== JW || r[99] !== YW || r[100] !== XW || r[101] !== ZW || r[102] !== QW || r[103] !== KW ? ($W = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
15984
15991
|
...e,
|
|
15985
|
-
data:
|
|
15986
|
-
rawData:
|
|
15987
|
-
columnSummaries:
|
|
15992
|
+
data: qW,
|
|
15993
|
+
rawData: JW,
|
|
15994
|
+
columnSummaries: BW,
|
|
15988
15995
|
sorting: m,
|
|
15989
15996
|
setSorting: h,
|
|
15990
15997
|
searchQuery: y,
|
|
15991
15998
|
setSearchQuery: b,
|
|
15992
15999
|
filters: w,
|
|
15993
16000
|
setFilters: T,
|
|
15994
|
-
reloading:
|
|
15995
|
-
totalRows:
|
|
15996
|
-
sizeBytes:
|
|
15997
|
-
sizeBytesIsLoading:
|
|
16001
|
+
reloading: YW,
|
|
16002
|
+
totalRows: XW,
|
|
16003
|
+
sizeBytes: jW,
|
|
16004
|
+
sizeBytesIsLoading: MW,
|
|
15998
16005
|
paginationState: _,
|
|
15999
16006
|
setPaginationState: v,
|
|
16000
|
-
cellStyles:
|
|
16001
|
-
cellHoverTexts:
|
|
16002
|
-
toggleDisplayHeader:
|
|
16007
|
+
cellStyles: ZW,
|
|
16008
|
+
cellHoverTexts: QW,
|
|
16009
|
+
toggleDisplayHeader: KW,
|
|
16003
16010
|
isChartBuilderOpen: O,
|
|
16004
|
-
getRow:
|
|
16011
|
+
getRow: PW,
|
|
16005
16012
|
cellId: l,
|
|
16006
16013
|
maxHeight: e.maxHeight
|
|
16007
|
-
}), r[86] = l, r[87] =
|
|
16008
|
-
let
|
|
16009
|
-
r[105] !== l || r[106] !==
|
|
16014
|
+
}), r[86] = l, r[87] = BW, r[88] = O, r[89] = w, r[90] = PW, r[91] = _, r[92] = e, r[93] = y, r[94] = jW, r[95] = MW, r[96] = m, r[97] = qW, r[98] = JW, r[99] = YW, r[100] = XW, r[101] = ZW, r[102] = QW, r[103] = KW, r[104] = $W) : $W = r[104];
|
|
16015
|
+
let eG = $W, tG;
|
|
16016
|
+
r[105] !== l || r[106] !== eG || 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 ? (tG = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
16010
16017
|
displayHeader: O,
|
|
16011
16018
|
onCloseChartBuilder: () => j(false),
|
|
16012
16019
|
data: (W == null ? void 0 : W.rows) || [],
|
|
16013
16020
|
columns: e.totalColumns,
|
|
16014
16021
|
totalRows: e.totalRows,
|
|
16015
|
-
dataTable:
|
|
16022
|
+
dataTable: eG,
|
|
16016
16023
|
getDataUrl: e.get_data_url,
|
|
16017
16024
|
fieldTypes: e.fieldTypes,
|
|
16018
16025
|
rowHeaders: e.rowHeaders,
|
|
16019
16026
|
cellId: l
|
|
16020
|
-
}) :
|
|
16021
|
-
let
|
|
16022
|
-
return r[116] !==
|
|
16027
|
+
}) : eG, r[105] = l, r[106] = eG, 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] = tG) : tG = r[115];
|
|
16028
|
+
let nG;
|
|
16029
|
+
return r[116] !== WW || r[117] !== tG ? (nG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16023
16030
|
children: [
|
|
16024
|
-
|
|
16025
|
-
|
|
16031
|
+
WW,
|
|
16032
|
+
tG
|
|
16026
16033
|
]
|
|
16027
|
-
}), r[116] =
|
|
16034
|
+
}), r[116] = WW, r[117] = tG, r[118] = nG) : nG = r[118], nG;
|
|
16028
16035
|
});
|
|
16029
16036
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
16030
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters:
|
|
16031
|
-
let
|
|
16037
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: bW, setFilters: xW, reloading: Z, freezeColumnsLeft: SW, freezeColumnsRight: CW, hiddenColumns: wW, textJustifyColumns: TW, wrappedColumns: EW, columnWidths: DW, headerTooltip: OW, totalColumns: kW, get_row_ids: AW, cellStyles: jW, hoverTemplate: MW, cellHoverTexts: NW, toggleDisplayHeader: PW, isChartBuilderOpen: FW, calculate_top_k_rows: IW, preview_column: LW, getRow: RW, cellId: zW, maxHeight: BW }) => {
|
|
16038
|
+
let VW = (0, import_react.useId)(), { locale: HW } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [UW, WW] = (0, import_react.useState)(0), { isPanelOpen: GW, isAnyPanelOpen: KW, togglePanel: qW, panelType: JW, setPanelType: YW } = usePanelOwnership(VW, zW), XW = isStaticNotebook(), ZW = (0, import_react.useMemo)(() => {
|
|
16032
16039
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16033
16040
|
let e2 = toFieldTypes(O);
|
|
16034
16041
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -16037,13 +16044,13 @@ ${c}
|
|
|
16037
16044
|
}, [
|
|
16038
16045
|
O,
|
|
16039
16046
|
L
|
|
16040
|
-
]),
|
|
16047
|
+
]), QW = useDeepCompareMemoize(O ?? inferFieldTypes(r)), $W = (0, import_react.useMemo)(() => f === "all" ? QW : QW.slice(0, f), [
|
|
16041
16048
|
f,
|
|
16042
|
-
|
|
16043
|
-
]),
|
|
16049
|
+
QW
|
|
16050
|
+
]), eG = (0, import_react.useMemo)(() => {
|
|
16044
16051
|
let e2 = {};
|
|
16045
16052
|
if (r && r.length > 0) {
|
|
16046
|
-
for (let [c2, l2] of
|
|
16053
|
+
for (let [c2, l2] of $W) if (l2[0] === "number") {
|
|
16047
16054
|
let l3 = 0;
|
|
16048
16055
|
for (let e3 of r) {
|
|
16049
16056
|
let r2 = e3[c2];
|
|
@@ -16058,95 +16065,95 @@ ${c}
|
|
|
16058
16065
|
return e2;
|
|
16059
16066
|
}, [
|
|
16060
16067
|
r,
|
|
16061
|
-
|
|
16062
|
-
]),
|
|
16063
|
-
O || (w = false),
|
|
16064
|
-
let
|
|
16065
|
-
rowHeaders:
|
|
16068
|
+
$W
|
|
16069
|
+
]), tG = useDeepCompareMemoize(T), nG = useDeepCompareMemoize(TW), rG = useDeepCompareMemoize(EW), iG = useDeepCompareMemoize(DW), aG = useDeepCompareMemoize(ZW), oG = useDeepCompareMemoize(eG), sG = $W.length;
|
|
16070
|
+
O || (w = false), XW && (m = null);
|
|
16071
|
+
let cG = (0, import_react.useMemo)(() => generateColumns({
|
|
16072
|
+
rowHeaders: tG,
|
|
16066
16073
|
selection: m,
|
|
16067
|
-
chartSpecModel:
|
|
16068
|
-
fieldTypes:
|
|
16069
|
-
textJustifyColumns:
|
|
16070
|
-
wrappedColumns:
|
|
16071
|
-
columnWidths:
|
|
16072
|
-
headerTooltip:
|
|
16074
|
+
chartSpecModel: aG,
|
|
16075
|
+
fieldTypes: $W,
|
|
16076
|
+
textJustifyColumns: nG,
|
|
16077
|
+
wrappedColumns: rG,
|
|
16078
|
+
columnWidths: iG,
|
|
16079
|
+
headerTooltip: OW,
|
|
16073
16080
|
showDataTypes: w,
|
|
16074
|
-
calculateTopKRows:
|
|
16075
|
-
fractionDigitsByColumn:
|
|
16081
|
+
calculateTopKRows: IW,
|
|
16082
|
+
fractionDigitsByColumn: oG
|
|
16076
16083
|
}), [
|
|
16077
16084
|
m,
|
|
16078
16085
|
w,
|
|
16079
|
-
|
|
16080
|
-
eG,
|
|
16081
|
-
QW,
|
|
16086
|
+
aG,
|
|
16082
16087
|
tG,
|
|
16088
|
+
$W,
|
|
16083
16089
|
nG,
|
|
16084
16090
|
rG,
|
|
16085
|
-
|
|
16086
|
-
|
|
16087
|
-
|
|
16088
|
-
|
|
16091
|
+
iG,
|
|
16092
|
+
OW,
|
|
16093
|
+
IW,
|
|
16094
|
+
oG
|
|
16095
|
+
]), lG = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
16089
16096
|
e2,
|
|
16090
16097
|
true
|
|
16091
16098
|
])), [
|
|
16092
16099
|
h
|
|
16093
|
-
]),
|
|
16100
|
+
]), uG = useEvent_default((e2) => {
|
|
16094
16101
|
if (m === "single") {
|
|
16095
16102
|
let r2 = Functions.asUpdater(e2)({});
|
|
16096
16103
|
z(Object.keys(r2).slice(0, 1));
|
|
16097
16104
|
}
|
|
16098
16105
|
if (m === "multi") {
|
|
16099
|
-
let r2 = Functions.asUpdater(e2)(
|
|
16106
|
+
let r2 = Functions.asUpdater(e2)(lG);
|
|
16100
16107
|
z(Object.keys(r2));
|
|
16101
16108
|
}
|
|
16102
|
-
}),
|
|
16103
|
-
if (
|
|
16109
|
+
}), dG = useEvent_default((e2) => {
|
|
16110
|
+
if (WW(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
16104
16111
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
16105
16112
|
r2 !== null && M((e3) => ({
|
|
16106
16113
|
...e3,
|
|
16107
16114
|
pageIndex: r2
|
|
16108
16115
|
}));
|
|
16109
|
-
}),
|
|
16110
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
16111
|
-
}),
|
|
16112
|
-
if (!(!
|
|
16116
|
+
}), fG = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), pG = useEvent_default((e2) => {
|
|
16117
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(fG).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(fG));
|
|
16118
|
+
}), mG = m === "multi" || m === "single", hG = y && !!LW, gG = isInVscodeExtension(), _G = isIslands(), vG = (0, import_react.useMemo)(() => {
|
|
16119
|
+
if (!(!KW || !(b || hG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
16113
16120
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
16114
|
-
rowIdx:
|
|
16115
|
-
setRowIdx:
|
|
16121
|
+
rowIdx: UW,
|
|
16122
|
+
setRowIdx: dG,
|
|
16116
16123
|
totalRows: l,
|
|
16117
|
-
fieldTypes:
|
|
16118
|
-
getRow:
|
|
16119
|
-
isSelectable:
|
|
16120
|
-
isRowSelected: !!
|
|
16121
|
-
handleRowSelectionChange:
|
|
16122
|
-
previewColumn:
|
|
16123
|
-
totalColumns:
|
|
16124
|
-
tableId:
|
|
16124
|
+
fieldTypes: QW,
|
|
16125
|
+
getRow: RW,
|
|
16126
|
+
isSelectable: mG,
|
|
16127
|
+
isRowSelected: !!lG[UW],
|
|
16128
|
+
handleRowSelectionChange: uG,
|
|
16129
|
+
previewColumn: LW,
|
|
16130
|
+
totalColumns: kW,
|
|
16131
|
+
tableId: VW,
|
|
16125
16132
|
table: e2,
|
|
16126
|
-
showRowExplorer: b && !
|
|
16127
|
-
showColumnExplorer:
|
|
16128
|
-
activeTab:
|
|
16129
|
-
onTabChange:
|
|
16133
|
+
showRowExplorer: b && !gG,
|
|
16134
|
+
showColumnExplorer: hG && !gG,
|
|
16135
|
+
activeTab: JW,
|
|
16136
|
+
onTabChange: YW
|
|
16130
16137
|
})
|
|
16131
16138
|
});
|
|
16132
16139
|
}, [
|
|
16133
|
-
|
|
16140
|
+
KW,
|
|
16134
16141
|
b,
|
|
16142
|
+
hG,
|
|
16143
|
+
UW,
|
|
16144
|
+
dG,
|
|
16145
|
+
l,
|
|
16146
|
+
QW,
|
|
16147
|
+
RW,
|
|
16135
16148
|
mG,
|
|
16136
|
-
|
|
16149
|
+
lG,
|
|
16137
16150
|
uG,
|
|
16138
|
-
l,
|
|
16139
|
-
ZW,
|
|
16140
16151
|
LW,
|
|
16141
|
-
|
|
16142
|
-
|
|
16143
|
-
|
|
16144
|
-
|
|
16145
|
-
|
|
16146
|
-
BW,
|
|
16147
|
-
hG,
|
|
16148
|
-
qW,
|
|
16149
|
-
JW
|
|
16152
|
+
kW,
|
|
16153
|
+
VW,
|
|
16154
|
+
gG,
|
|
16155
|
+
JW,
|
|
16156
|
+
YW
|
|
16150
16157
|
]);
|
|
16151
16158
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16152
16159
|
children: [
|
|
@@ -16158,27 +16165,27 @@ ${c}
|
|
|
16158
16165
|
" rows."
|
|
16159
16166
|
]
|
|
16160
16167
|
}),
|
|
16161
|
-
|
|
16168
|
+
sG < kW && sG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16162
16169
|
className: "mb-1 rounded",
|
|
16163
16170
|
children: [
|
|
16164
16171
|
"Result clipped. Showing ",
|
|
16165
|
-
|
|
16172
|
+
sG,
|
|
16166
16173
|
" of ",
|
|
16167
|
-
|
|
16174
|
+
kW,
|
|
16168
16175
|
" columns."
|
|
16169
16176
|
]
|
|
16170
16177
|
}),
|
|
16171
|
-
|
|
16178
|
+
XW && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16172
16179
|
className: "mb-1 rounded",
|
|
16173
16180
|
children: [
|
|
16174
16181
|
"Showing the first ",
|
|
16175
16182
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16176
|
-
children: prettyNumber(r.length,
|
|
16183
|
+
children: prettyNumber(r.length, HW)
|
|
16177
16184
|
}),
|
|
16178
16185
|
" ",
|
|
16179
16186
|
"of ",
|
|
16180
16187
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16181
|
-
children: prettyNumber(l,
|
|
16188
|
+
children: prettyNumber(l, HW)
|
|
16182
16189
|
}),
|
|
16183
16190
|
" rows. Increase the table's ",
|
|
16184
16191
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -16192,7 +16199,7 @@ ${c}
|
|
|
16192
16199
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
16193
16200
|
}),
|
|
16194
16201
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
16195
|
-
value:
|
|
16202
|
+
value: ZW,
|
|
16196
16203
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
16197
16204
|
label: e,
|
|
16198
16205
|
align: "top",
|
|
@@ -16200,14 +16207,14 @@ ${c}
|
|
|
16200
16207
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
16201
16208
|
data: r,
|
|
16202
16209
|
rawData: c,
|
|
16203
|
-
columns:
|
|
16210
|
+
columns: cG,
|
|
16204
16211
|
className: R,
|
|
16205
|
-
maxHeight:
|
|
16212
|
+
maxHeight: BW,
|
|
16206
16213
|
sorting: B,
|
|
16207
16214
|
totalRows: l,
|
|
16208
16215
|
sizeBytes: u,
|
|
16209
16216
|
sizeBytesIsLoading: d,
|
|
16210
|
-
totalColumns:
|
|
16217
|
+
totalColumns: kW,
|
|
16211
16218
|
manualSorting: true,
|
|
16212
16219
|
setSorting: H,
|
|
16213
16220
|
pagination: p,
|
|
@@ -16215,37 +16222,37 @@ ${c}
|
|
|
16215
16222
|
selection: m,
|
|
16216
16223
|
paginationState: j,
|
|
16217
16224
|
setPaginationState: M,
|
|
16218
|
-
rowSelection:
|
|
16219
|
-
cellSelection:
|
|
16220
|
-
cellStyling:
|
|
16221
|
-
hoverTemplate:
|
|
16222
|
-
cellHoverTexts:
|
|
16225
|
+
rowSelection: lG,
|
|
16226
|
+
cellSelection: fG,
|
|
16227
|
+
cellStyling: jW,
|
|
16228
|
+
hoverTemplate: MW,
|
|
16229
|
+
cellHoverTexts: NW,
|
|
16223
16230
|
downloadAs: _ ? I : void 0,
|
|
16224
16231
|
showSearch: W,
|
|
16225
16232
|
searchQuery: G,
|
|
16226
16233
|
onSearchQueryChange: q,
|
|
16227
16234
|
showFilters: g,
|
|
16228
|
-
filters:
|
|
16229
|
-
onFiltersChange:
|
|
16230
|
-
calculateTopKRows:
|
|
16235
|
+
filters: bW,
|
|
16236
|
+
onFiltersChange: xW,
|
|
16237
|
+
calculateTopKRows: IW,
|
|
16231
16238
|
reloading: Z,
|
|
16232
|
-
onRowSelectionChange:
|
|
16233
|
-
freezeColumnsLeft:
|
|
16234
|
-
freezeColumnsRight:
|
|
16235
|
-
hiddenColumns:
|
|
16236
|
-
onCellSelectionChange:
|
|
16237
|
-
getRowIds:
|
|
16238
|
-
toggleDisplayHeader:
|
|
16239
|
-
showChartBuilder: S && !
|
|
16240
|
-
isChartBuilderOpen:
|
|
16239
|
+
onRowSelectionChange: uG,
|
|
16240
|
+
freezeColumnsLeft: SW,
|
|
16241
|
+
freezeColumnsRight: CW,
|
|
16242
|
+
hiddenColumns: wW,
|
|
16243
|
+
onCellSelectionChange: pG,
|
|
16244
|
+
getRowIds: AW,
|
|
16245
|
+
toggleDisplayHeader: PW,
|
|
16246
|
+
showChartBuilder: S && !_G,
|
|
16247
|
+
isChartBuilderOpen: FW,
|
|
16241
16248
|
showPageSizeSelector: v,
|
|
16242
|
-
showTableExplorer: (b ||
|
|
16243
|
-
togglePanel:
|
|
16244
|
-
isPanelOpen:
|
|
16245
|
-
isAnyPanelOpen:
|
|
16246
|
-
viewedRowIdx:
|
|
16247
|
-
onViewedRowChange: (e2) =>
|
|
16248
|
-
renderTableExplorerPanel:
|
|
16249
|
+
showTableExplorer: (b || hG) && !gG && !_G,
|
|
16250
|
+
togglePanel: qW,
|
|
16251
|
+
isPanelOpen: GW,
|
|
16252
|
+
isAnyPanelOpen: KW,
|
|
16253
|
+
viewedRowIdx: UW,
|
|
16254
|
+
onViewedRowChange: (e2) => WW(e2),
|
|
16255
|
+
renderTableExplorerPanel: vG
|
|
16249
16256
|
})
|
|
16250
16257
|
})
|
|
16251
16258
|
})
|
|
@@ -18297,29 +18304,29 @@ ${c}
|
|
|
18297
18304
|
], r[2] = S, r[3] = w);
|
|
18298
18305
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
18299
18306
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
18300
|
-
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,
|
|
18307
|
+
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, bW] = (0, import_react.useState)(f || EMPTY), xW = (0, import_react.useRef)(null), Z;
|
|
18301
18308
|
r[6] === d ? Z = r[7] : (Z = (e2) => {
|
|
18302
18309
|
var _a3;
|
|
18303
|
-
d && e2 !== "transform" && ((_a3 =
|
|
18310
|
+
d && e2 !== "transform" && ((_a3 = xW.current) == null ? void 0 : _a3.submit());
|
|
18304
18311
|
}, r[6] = d, r[7] = Z);
|
|
18305
|
-
let
|
|
18306
|
-
r[8] === q ?
|
|
18307
|
-
|
|
18308
|
-
}, r[8] = q, r[9] =
|
|
18309
|
-
let
|
|
18310
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
18311
|
-
let e2 =
|
|
18312
|
+
let SW = Z, CW = (0, import_react.useRef)(q), wW;
|
|
18313
|
+
r[8] === q ? wW = r[9] : (wW = () => {
|
|
18314
|
+
CW.current = q;
|
|
18315
|
+
}, r[8] = q, r[9] = wW), (0, import_react.useEffect)(wW);
|
|
18316
|
+
let TW;
|
|
18317
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (TW = () => {
|
|
18318
|
+
let e2 = CW.current;
|
|
18312
18319
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
18313
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
18314
|
-
let
|
|
18315
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
18320
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = TW) : TW = r[12];
|
|
18321
|
+
let EW = f == null ? void 0 : f.transforms.length, DW;
|
|
18322
|
+
r[13] !== T || r[14] !== p || r[15] !== EW ? (DW = [
|
|
18316
18323
|
T,
|
|
18317
|
-
|
|
18318
|
-
|
|
18324
|
+
EW,
|
|
18325
|
+
CW,
|
|
18319
18326
|
p
|
|
18320
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
18321
|
-
let
|
|
18322
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18327
|
+
], r[13] = T, r[14] = p, r[15] = EW, r[16] = DW) : DW = r[16], (0, import_react.useEffect)(TW, DW);
|
|
18328
|
+
let OW;
|
|
18329
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (OW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18323
18330
|
value: "transform",
|
|
18324
18331
|
className: "text-xs py-1",
|
|
18325
18332
|
children: [
|
|
@@ -18328,9 +18335,9 @@ ${c}
|
|
|
18328
18335
|
}),
|
|
18329
18336
|
"Transform"
|
|
18330
18337
|
]
|
|
18331
|
-
}), r[17] =
|
|
18332
|
-
let
|
|
18333
|
-
r[18] === H ?
|
|
18338
|
+
}), r[17] = OW) : OW = r[17];
|
|
18339
|
+
let kW;
|
|
18340
|
+
r[18] === H ? kW = r[19] : (kW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18334
18341
|
value: "python-code",
|
|
18335
18342
|
className: "text-xs py-1",
|
|
18336
18343
|
children: [
|
|
@@ -18339,9 +18346,9 @@ ${c}
|
|
|
18339
18346
|
}),
|
|
18340
18347
|
"Python Code"
|
|
18341
18348
|
]
|
|
18342
|
-
}), r[18] = H, r[19] =
|
|
18343
|
-
let
|
|
18344
|
-
r[20] === W ?
|
|
18349
|
+
}), r[18] = H, r[19] = kW);
|
|
18350
|
+
let AW;
|
|
18351
|
+
r[20] === W ? AW = r[21] : (AW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18345
18352
|
value: "sql-code",
|
|
18346
18353
|
className: "text-xs py-1",
|
|
18347
18354
|
children: [
|
|
@@ -18350,54 +18357,54 @@ ${c}
|
|
|
18350
18357
|
}),
|
|
18351
18358
|
"SQL Code"
|
|
18352
18359
|
]
|
|
18353
|
-
}), r[20] = W, r[21] =
|
|
18354
|
-
let jW;
|
|
18355
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (jW = (0, import_jsx_runtime.jsx)("div", {
|
|
18356
|
-
className: "grow"
|
|
18357
|
-
}), r[22] = jW) : jW = r[22];
|
|
18360
|
+
}), r[20] = W, r[21] = AW);
|
|
18358
18361
|
let MW;
|
|
18359
|
-
r[
|
|
18362
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (MW = (0, import_jsx_runtime.jsx)("div", {
|
|
18363
|
+
className: "grow"
|
|
18364
|
+
}), r[22] = MW) : MW = r[22];
|
|
18365
|
+
let NW;
|
|
18366
|
+
r[23] !== kW || r[24] !== AW ? (NW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
18360
18367
|
className: "h-8",
|
|
18361
18368
|
children: [
|
|
18362
|
-
DW,
|
|
18363
18369
|
OW,
|
|
18364
18370
|
kW,
|
|
18365
|
-
|
|
18371
|
+
AW,
|
|
18372
|
+
MW
|
|
18366
18373
|
]
|
|
18367
|
-
}), r[23] =
|
|
18368
|
-
let NW;
|
|
18369
|
-
r[26] === j ? NW = r[27] : (NW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18370
|
-
size: "small"
|
|
18371
|
-
}), r[26] = j, r[27] = NW);
|
|
18374
|
+
}), r[23] = kW, r[24] = AW, r[25] = NW) : NW = r[25];
|
|
18372
18375
|
let PW;
|
|
18373
|
-
r[
|
|
18376
|
+
r[26] === j ? PW = r[27] : (PW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18377
|
+
size: "small"
|
|
18378
|
+
}), r[26] = j, r[27] = PW);
|
|
18379
|
+
let FW;
|
|
18380
|
+
r[28] !== NW || r[29] !== PW ? (FW = (0, import_jsx_runtime.jsxs)("div", {
|
|
18374
18381
|
className: "flex items-center gap-2",
|
|
18375
18382
|
children: [
|
|
18376
|
-
|
|
18377
|
-
|
|
18383
|
+
NW,
|
|
18384
|
+
PW
|
|
18378
18385
|
]
|
|
18379
|
-
}), r[28] =
|
|
18380
|
-
let FW;
|
|
18381
|
-
r[31] !== p || r[32] !== f ? (FW = (e2) => {
|
|
18382
|
-
dequal(e2, f) || (p(e2), yW(e2));
|
|
18383
|
-
}, r[31] = p, r[32] = f, r[33] = FW) : FW = r[33];
|
|
18386
|
+
}), r[28] = NW, r[29] = PW, r[30] = FW) : FW = r[30];
|
|
18384
18387
|
let IW;
|
|
18385
|
-
r[
|
|
18388
|
+
r[31] !== p || r[32] !== f ? (IW = (e2) => {
|
|
18389
|
+
dequal(e2, f) || (p(e2), bW(e2));
|
|
18390
|
+
}, r[31] = p, r[32] = f, r[33] = IW) : IW = r[33];
|
|
18391
|
+
let LW;
|
|
18392
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== IW ? (LW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18386
18393
|
value: "transform",
|
|
18387
18394
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18388
18395
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18389
|
-
ref:
|
|
18396
|
+
ref: xW,
|
|
18390
18397
|
initialValue: q,
|
|
18391
18398
|
columns: c,
|
|
18392
|
-
onChange:
|
|
18393
|
-
onInvalidChange:
|
|
18399
|
+
onChange: IW,
|
|
18400
|
+
onInvalidChange: bW,
|
|
18394
18401
|
getColumnValues: h,
|
|
18395
18402
|
columnTypesPerStep: B,
|
|
18396
18403
|
lazy: d
|
|
18397
18404
|
})
|
|
18398
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
18399
|
-
let
|
|
18400
|
-
r[41] === H ?
|
|
18405
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = IW, r[40] = LW) : LW = r[40];
|
|
18406
|
+
let RW;
|
|
18407
|
+
r[41] === H ? RW = r[42] : (RW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18401
18408
|
value: "python-code",
|
|
18402
18409
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18403
18410
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18406,9 +18413,9 @@ ${c}
|
|
|
18406
18413
|
code: H,
|
|
18407
18414
|
language: "python"
|
|
18408
18415
|
})
|
|
18409
|
-
}), r[41] = H, r[42] =
|
|
18410
|
-
let
|
|
18411
|
-
r[43] === W ?
|
|
18416
|
+
}), r[41] = H, r[42] = RW);
|
|
18417
|
+
let zW;
|
|
18418
|
+
r[43] === W ? zW = r[44] : (zW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18412
18419
|
value: "sql-code",
|
|
18413
18420
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18414
18421
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18417,35 +18424,35 @@ ${c}
|
|
|
18417
18424
|
code: W,
|
|
18418
18425
|
language: "sql"
|
|
18419
18426
|
})
|
|
18420
|
-
}), r[43] = W, r[44] =
|
|
18421
|
-
let
|
|
18422
|
-
r[45] !==
|
|
18427
|
+
}), r[43] = W, r[44] = zW);
|
|
18428
|
+
let BW;
|
|
18429
|
+
r[45] !== SW || r[46] !== FW || r[47] !== LW || r[48] !== RW || r[49] !== zW ? (BW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18423
18430
|
defaultValue: "transform",
|
|
18424
|
-
onValueChange:
|
|
18431
|
+
onValueChange: SW,
|
|
18425
18432
|
children: [
|
|
18426
|
-
|
|
18427
|
-
IW,
|
|
18433
|
+
FW,
|
|
18428
18434
|
LW,
|
|
18429
|
-
RW
|
|
18435
|
+
RW,
|
|
18436
|
+
zW
|
|
18430
18437
|
]
|
|
18431
|
-
}), r[45] =
|
|
18432
|
-
let
|
|
18433
|
-
r[51] === O ?
|
|
18438
|
+
}), r[45] = SW, r[46] = FW, r[47] = LW, r[48] = RW, r[49] = zW, r[50] = BW) : BW = r[50];
|
|
18439
|
+
let VW;
|
|
18440
|
+
r[51] === O ? VW = r[52] : (VW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18434
18441
|
error: O
|
|
18435
|
-
}), r[51] = O, r[52] =
|
|
18436
|
-
let
|
|
18437
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
18442
|
+
}), r[51] = O, r[52] = VW);
|
|
18443
|
+
let HW = I || "", UW = L ?? 0, WW = G ?? 0, GW = R || Arrays.EMPTY, KW = L && L > 5 || false, qW;
|
|
18444
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== HW || r[61] !== UW || r[62] !== WW || r[63] !== GW || r[64] !== KW ? (qW = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
18438
18445
|
label: null,
|
|
18439
18446
|
className: "rounded-b border-x border-b",
|
|
18440
|
-
data:
|
|
18447
|
+
data: HW,
|
|
18441
18448
|
hasStableRowId: false,
|
|
18442
|
-
totalRows:
|
|
18443
|
-
totalColumns:
|
|
18449
|
+
totalRows: UW,
|
|
18450
|
+
totalColumns: WW,
|
|
18444
18451
|
maxColumns: "all",
|
|
18445
18452
|
pageSize: l,
|
|
18446
18453
|
pagination: true,
|
|
18447
18454
|
fieldTypes: z,
|
|
18448
|
-
rowHeaders:
|
|
18455
|
+
rowHeaders: GW,
|
|
18449
18456
|
showDownload: u,
|
|
18450
18457
|
download_as: _,
|
|
18451
18458
|
get_size_bytes: v,
|
|
@@ -18455,7 +18462,7 @@ ${c}
|
|
|
18455
18462
|
showColumnSummaries: false,
|
|
18456
18463
|
showDataTypes: true,
|
|
18457
18464
|
get_column_summaries: getColumnSummaries,
|
|
18458
|
-
showPageSizeSelector:
|
|
18465
|
+
showPageSizeSelector: KW,
|
|
18459
18466
|
showColumnExplorer: false,
|
|
18460
18467
|
showRowExplorer: true,
|
|
18461
18468
|
showChartBuilder: false,
|
|
@@ -18464,15 +18471,15 @@ ${c}
|
|
|
18464
18471
|
selection: null,
|
|
18465
18472
|
lazy: false,
|
|
18466
18473
|
host: y
|
|
18467
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
18468
|
-
let
|
|
18469
|
-
return r[66] !==
|
|
18474
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = HW, r[61] = UW, r[62] = WW, r[63] = GW, r[64] = KW, r[65] = qW) : qW = r[65];
|
|
18475
|
+
let JW;
|
|
18476
|
+
return r[66] !== BW || r[67] !== VW || r[68] !== qW ? (JW = (0, import_jsx_runtime.jsxs)("div", {
|
|
18470
18477
|
children: [
|
|
18471
|
-
zW,
|
|
18472
18478
|
BW,
|
|
18473
|
-
|
|
18479
|
+
VW,
|
|
18480
|
+
qW
|
|
18474
18481
|
]
|
|
18475
|
-
}), r[66] =
|
|
18482
|
+
}), r[66] = BW, r[67] = VW, r[68] = qW, r[69] = JW) : JW = r[69], JW;
|
|
18476
18483
|
});
|
|
18477
18484
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18478
18485
|
function getColumnSummaries() {
|
|
@@ -18663,23 +18670,23 @@ ${c}
|
|
|
18663
18670
|
}, [
|
|
18664
18671
|
H
|
|
18665
18672
|
]);
|
|
18666
|
-
let
|
|
18673
|
+
let bW = (R == null ? void 0 : R.files) ?? [], xW = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", SW = l === "file" || l === "all", CW = bW.filter((e2) => Z && e2.is_directory || SW && !e2.is_directory), wW = CW.length > 0 && CW.every((e2) => xW.has(e2.path));
|
|
18667
18674
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
18668
18675
|
kind: "danger",
|
|
18669
18676
|
children: z.message
|
|
18670
18677
|
});
|
|
18671
|
-
let
|
|
18678
|
+
let TW = PathBuilder.guessDeliminator(c).deliminator, EW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
18672
18679
|
children: e2.path
|
|
18673
18680
|
}, e2.id));
|
|
18674
|
-
function
|
|
18681
|
+
function DW(e2) {
|
|
18675
18682
|
var _a4;
|
|
18676
18683
|
if (v) return;
|
|
18677
18684
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
18678
|
-
if (g ===
|
|
18685
|
+
if (g === TW) {
|
|
18679
18686
|
y(false);
|
|
18680
18687
|
return;
|
|
18681
18688
|
}
|
|
18682
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
18689
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = TW);
|
|
18683
18690
|
}
|
|
18684
18691
|
let r2 = e2.length < c.length;
|
|
18685
18692
|
if (f && r2) {
|
|
@@ -18692,7 +18699,7 @@ ${c}
|
|
|
18692
18699
|
}
|
|
18693
18700
|
M.current = ((_a4 = j.current) == null ? void 0 : _a4.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
18694
18701
|
}
|
|
18695
|
-
function
|
|
18702
|
+
function OW({ path: e2, name: r2, isDirectory: c2 }) {
|
|
18696
18703
|
return {
|
|
18697
18704
|
id: e2,
|
|
18698
18705
|
name: r2,
|
|
@@ -18700,27 +18707,27 @@ ${c}
|
|
|
18700
18707
|
is_directory: c2
|
|
18701
18708
|
};
|
|
18702
18709
|
}
|
|
18703
|
-
function
|
|
18704
|
-
let f2 =
|
|
18710
|
+
function kW({ path: c2, name: l2, isDirectory: d2 }) {
|
|
18711
|
+
let f2 = OW({
|
|
18705
18712
|
path: c2,
|
|
18706
18713
|
name: l2,
|
|
18707
18714
|
isDirectory: d2
|
|
18708
18715
|
});
|
|
18709
|
-
|
|
18716
|
+
xW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
18710
18717
|
...e,
|
|
18711
18718
|
f2
|
|
18712
18719
|
] : [
|
|
18713
18720
|
f2
|
|
18714
18721
|
]);
|
|
18715
18722
|
}
|
|
18716
|
-
function
|
|
18723
|
+
function jW() {
|
|
18717
18724
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
18718
18725
|
}
|
|
18719
|
-
function
|
|
18726
|
+
function MW() {
|
|
18720
18727
|
let c2 = [];
|
|
18721
|
-
for (let e2 of
|
|
18722
|
-
if (!Z && e2.is_directory ||
|
|
18723
|
-
let r2 =
|
|
18728
|
+
for (let e2 of bW) {
|
|
18729
|
+
if (!Z && e2.is_directory || xW.has(e2.path)) continue;
|
|
18730
|
+
let r2 = OW({
|
|
18724
18731
|
path: e2.path,
|
|
18725
18732
|
name: e2.name,
|
|
18726
18733
|
isDirectory: e2.is_directory
|
|
@@ -18732,20 +18739,20 @@ ${c}
|
|
|
18732
18739
|
...c2
|
|
18733
18740
|
]);
|
|
18734
18741
|
}
|
|
18735
|
-
let
|
|
18742
|
+
let NW = [
|
|
18736
18743
|
{
|
|
18737
18744
|
key: "parent",
|
|
18738
18745
|
name: PARENT_DIRECTORY,
|
|
18739
18746
|
Icon: CornerLeftUp,
|
|
18740
18747
|
isSelected: false,
|
|
18741
18748
|
canSelect: false,
|
|
18742
|
-
onPrimary: () =>
|
|
18749
|
+
onPrimary: () => DW(PARENT_DIRECTORY),
|
|
18743
18750
|
onToggleSelect: null
|
|
18744
18751
|
},
|
|
18745
|
-
...
|
|
18752
|
+
...bW.map((e2) => {
|
|
18746
18753
|
let r2 = e2.path;
|
|
18747
18754
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
18748
|
-
let c2 = Z && e2.is_directory ||
|
|
18755
|
+
let c2 = Z && e2.is_directory || SW && !e2.is_directory, l2 = xW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => kW({
|
|
18749
18756
|
path: r2,
|
|
18750
18757
|
name: e2.name,
|
|
18751
18758
|
isDirectory: e2.is_directory
|
|
@@ -18756,46 +18763,46 @@ ${c}
|
|
|
18756
18763
|
Icon: FILE_ICON[u2],
|
|
18757
18764
|
isSelected: l2,
|
|
18758
18765
|
canSelect: c2,
|
|
18759
|
-
onPrimary: e2.is_directory ? () =>
|
|
18766
|
+
onPrimary: e2.is_directory ? () => DW(r2) : c2 ? d2 : () => {
|
|
18760
18767
|
},
|
|
18761
18768
|
onToggleSelect: c2 ? d2 : null
|
|
18762
18769
|
};
|
|
18763
18770
|
})
|
|
18764
18771
|
];
|
|
18765
|
-
function
|
|
18772
|
+
function PW(e2) {
|
|
18766
18773
|
var _a4;
|
|
18767
18774
|
E(e2), (_a4 = O.current[e2]) == null ? void 0 : _a4.focus();
|
|
18768
18775
|
}
|
|
18769
|
-
function
|
|
18776
|
+
function FW(e2, r2) {
|
|
18770
18777
|
var _a4, _b3;
|
|
18771
|
-
let c2 =
|
|
18778
|
+
let c2 = NW.length - 1;
|
|
18772
18779
|
switch (e2.key) {
|
|
18773
18780
|
case "ArrowDown":
|
|
18774
|
-
e2.preventDefault(),
|
|
18781
|
+
e2.preventDefault(), PW(Math.min(r2 + 1, c2));
|
|
18775
18782
|
break;
|
|
18776
18783
|
case "ArrowUp":
|
|
18777
|
-
e2.preventDefault(),
|
|
18784
|
+
e2.preventDefault(), PW(Math.max(r2 - 1, 0));
|
|
18778
18785
|
break;
|
|
18779
18786
|
case "Home":
|
|
18780
|
-
e2.preventDefault(),
|
|
18787
|
+
e2.preventDefault(), PW(0);
|
|
18781
18788
|
break;
|
|
18782
18789
|
case "End":
|
|
18783
|
-
e2.preventDefault(),
|
|
18790
|
+
e2.preventDefault(), PW(c2);
|
|
18784
18791
|
break;
|
|
18785
18792
|
case "Enter":
|
|
18786
|
-
e2.preventDefault(),
|
|
18793
|
+
e2.preventDefault(), NW[r2].onPrimary();
|
|
18787
18794
|
break;
|
|
18788
18795
|
case " ":
|
|
18789
|
-
e2.preventDefault(), (_b3 = (_a4 =
|
|
18796
|
+
e2.preventDefault(), (_b3 = (_a4 = NW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a4);
|
|
18790
18797
|
break;
|
|
18791
18798
|
}
|
|
18792
18799
|
}
|
|
18793
|
-
let { parentDirectories:
|
|
18800
|
+
let { parentDirectories: IW } = getProtocolAndParentDirectories({
|
|
18794
18801
|
path: g,
|
|
18795
|
-
delimiter:
|
|
18802
|
+
delimiter: TW,
|
|
18796
18803
|
initialPath: c,
|
|
18797
18804
|
restrictNavigation: f
|
|
18798
|
-
}),
|
|
18805
|
+
}), LW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
18799
18806
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
18800
18807
|
children: [
|
|
18801
18808
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -18805,7 +18812,7 @@ ${c}
|
|
|
18805
18812
|
(() => {
|
|
18806
18813
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
18807
18814
|
children: renderHTML({
|
|
18808
|
-
html: d ?? `Select ${
|
|
18815
|
+
html: d ?? `Select ${LW.join(" and ", 2)}...`
|
|
18809
18816
|
})
|
|
18810
18817
|
});
|
|
18811
18818
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -18819,8 +18826,8 @@ ${c}
|
|
|
18819
18826
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
18820
18827
|
size: "xs",
|
|
18821
18828
|
variant: "link",
|
|
18822
|
-
onClick:
|
|
18823
|
-
children:
|
|
18829
|
+
onClick: wW ? jW : MW,
|
|
18830
|
+
children: wW ? "Deselect all" : "Select all"
|
|
18824
18831
|
})
|
|
18825
18832
|
})
|
|
18826
18833
|
]
|
|
@@ -18830,15 +18837,15 @@ ${c}
|
|
|
18830
18837
|
className: "mt-2 w-full",
|
|
18831
18838
|
placeholder: g,
|
|
18832
18839
|
value: g,
|
|
18833
|
-
onChange: (e2) =>
|
|
18834
|
-
children:
|
|
18840
|
+
onChange: (e2) => DW(e2.target.value),
|
|
18841
|
+
children: IW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
18835
18842
|
value: e2,
|
|
18836
18843
|
children: e2
|
|
18837
18844
|
}, e2))
|
|
18838
18845
|
}),
|
|
18839
18846
|
R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
18840
18847
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
18841
|
-
children: R.is_truncated ? `Showing ${
|
|
18848
|
+
children: R.is_truncated ? `Showing ${bW.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
18842
18849
|
}),
|
|
18843
18850
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
18844
18851
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
@@ -18867,14 +18874,14 @@ ${c}
|
|
|
18867
18874
|
"aria-label": "File browser",
|
|
18868
18875
|
"aria-multiselectable": u,
|
|
18869
18876
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
18870
|
-
children:
|
|
18877
|
+
children: NW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
18871
18878
|
role: "row",
|
|
18872
18879
|
ref: (e3) => {
|
|
18873
18880
|
O.current[r2] = e3;
|
|
18874
18881
|
},
|
|
18875
18882
|
tabIndex: r2 === T ? 0 : -1,
|
|
18876
18883
|
onFocus: () => E(r2),
|
|
18877
|
-
onKeyDown: (e3) =>
|
|
18884
|
+
onKeyDown: (e3) => FW(e3, r2),
|
|
18878
18885
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
18879
18886
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
18880
18887
|
}),
|
|
@@ -18917,7 +18924,7 @@ ${c}
|
|
|
18917
18924
|
children: [
|
|
18918
18925
|
e.length,
|
|
18919
18926
|
" ",
|
|
18920
|
-
|
|
18927
|
+
LW.join(" or ", e.length),
|
|
18921
18928
|
" ",
|
|
18922
18929
|
"selected"
|
|
18923
18930
|
]
|
|
@@ -18937,7 +18944,7 @@ ${c}
|
|
|
18937
18944
|
marginBlock: 0
|
|
18938
18945
|
},
|
|
18939
18946
|
className: "m-0 text-xs text-muted-foreground",
|
|
18940
|
-
children:
|
|
18947
|
+
children: EW
|
|
18941
18948
|
})
|
|
18942
18949
|
})
|
|
18943
18950
|
]
|
|
@@ -24319,55 +24326,55 @@ ${c}
|
|
|
24319
24326
|
return typeof S == "function" ? S : noop$2;
|
|
24320
24327
|
}, [
|
|
24321
24328
|
S
|
|
24322
|
-
]), q = (0, import_react.useRef)(null),
|
|
24323
|
-
!
|
|
24324
|
-
|
|
24329
|
+
]), q = (0, import_react.useRef)(null), bW = (0, import_react.useRef)(null), xW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), Z = xW[0], SW = xW[1], CW = Z.isFocused, wW = Z.isFileDialogActive, TW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), EW = function() {
|
|
24330
|
+
!TW.current && wW && setTimeout(function() {
|
|
24331
|
+
bW.current && (bW.current.files.length || (SW({
|
|
24325
24332
|
type: "closeDialog"
|
|
24326
24333
|
}), G()));
|
|
24327
24334
|
}, 300);
|
|
24328
24335
|
};
|
|
24329
24336
|
(0, import_react.useEffect)(function() {
|
|
24330
|
-
return window.addEventListener("focus",
|
|
24331
|
-
window.removeEventListener("focus",
|
|
24337
|
+
return window.addEventListener("focus", EW, false), function() {
|
|
24338
|
+
window.removeEventListener("focus", EW, false);
|
|
24332
24339
|
};
|
|
24333
24340
|
}, [
|
|
24334
|
-
|
|
24335
|
-
|
|
24341
|
+
bW,
|
|
24342
|
+
wW,
|
|
24336
24343
|
G,
|
|
24337
|
-
|
|
24344
|
+
TW
|
|
24338
24345
|
]);
|
|
24339
|
-
var
|
|
24340
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
24346
|
+
var DW = (0, import_react.useRef)([]), OW = (0, import_react.useRef)([]), kW = function(e2) {
|
|
24347
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), DW.current = []);
|
|
24341
24348
|
};
|
|
24342
24349
|
(0, import_react.useEffect)(function() {
|
|
24343
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
24344
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
24350
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", kW, false)), function() {
|
|
24351
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", kW));
|
|
24345
24352
|
};
|
|
24346
24353
|
}, [
|
|
24347
24354
|
q,
|
|
24348
24355
|
O
|
|
24349
24356
|
]), (0, import_react.useEffect)(function() {
|
|
24350
24357
|
var e2 = function(e3) {
|
|
24351
|
-
|
|
24358
|
+
OW.current = [].concat(_toConsumableArray(OW.current), [
|
|
24352
24359
|
e3.target
|
|
24353
|
-
]), isEvtWithFiles(e3) &&
|
|
24360
|
+
]), isEvtWithFiles(e3) && SW({
|
|
24354
24361
|
isDragGlobal: true,
|
|
24355
24362
|
type: "setDragGlobal"
|
|
24356
24363
|
});
|
|
24357
24364
|
}, r2 = function(e3) {
|
|
24358
|
-
|
|
24365
|
+
OW.current = OW.current.filter(function(r3) {
|
|
24359
24366
|
return r3 !== e3.target && r3 !== null;
|
|
24360
|
-
}), !(
|
|
24367
|
+
}), !(OW.current.length > 0) && SW({
|
|
24361
24368
|
isDragGlobal: false,
|
|
24362
24369
|
type: "setDragGlobal"
|
|
24363
24370
|
});
|
|
24364
24371
|
}, c2 = function() {
|
|
24365
|
-
|
|
24372
|
+
OW.current = [], SW({
|
|
24366
24373
|
isDragGlobal: false,
|
|
24367
24374
|
type: "setDragGlobal"
|
|
24368
24375
|
});
|
|
24369
24376
|
}, l2 = function() {
|
|
24370
|
-
|
|
24377
|
+
OW.current = [], SW({
|
|
24371
24378
|
isDragGlobal: false,
|
|
24372
24379
|
type: "setDragGlobal"
|
|
24373
24380
|
});
|
|
@@ -24385,12 +24392,12 @@ ${c}
|
|
|
24385
24392
|
E,
|
|
24386
24393
|
l
|
|
24387
24394
|
]);
|
|
24388
|
-
var
|
|
24395
|
+
var AW = (0, import_react.useCallback)(function(e2) {
|
|
24389
24396
|
R ? R(e2) : console.error(e2);
|
|
24390
24397
|
}, [
|
|
24391
24398
|
R
|
|
24392
|
-
]),
|
|
24393
|
-
e2.preventDefault(), e2.persist(),
|
|
24399
|
+
]), jW = (0, import_react.useCallback)(function(e2) {
|
|
24400
|
+
e2.preventDefault(), e2.persist(), WW(e2), DW.current = [].concat(_toConsumableArray(DW.current), [
|
|
24394
24401
|
e2.target
|
|
24395
24402
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24396
24403
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -24403,7 +24410,7 @@ ${c}
|
|
|
24403
24410
|
maxFiles: m,
|
|
24404
24411
|
validator: z
|
|
24405
24412
|
});
|
|
24406
|
-
|
|
24413
|
+
SW({
|
|
24407
24414
|
isDragAccept: l2,
|
|
24408
24415
|
isDragReject: c2 > 0 && !l2,
|
|
24409
24416
|
isDragActive: true,
|
|
@@ -24411,12 +24418,12 @@ ${c}
|
|
|
24411
24418
|
}), h && h(e2);
|
|
24412
24419
|
}
|
|
24413
24420
|
}).catch(function(e3) {
|
|
24414
|
-
return
|
|
24421
|
+
return AW(e3);
|
|
24415
24422
|
});
|
|
24416
24423
|
}, [
|
|
24417
24424
|
u,
|
|
24418
24425
|
h,
|
|
24419
|
-
|
|
24426
|
+
AW,
|
|
24420
24427
|
L,
|
|
24421
24428
|
B,
|
|
24422
24429
|
f,
|
|
@@ -24424,8 +24431,8 @@ ${c}
|
|
|
24424
24431
|
p,
|
|
24425
24432
|
m,
|
|
24426
24433
|
z
|
|
24427
|
-
]),
|
|
24428
|
-
e2.preventDefault(), e2.persist(),
|
|
24434
|
+
]), MW = (0, import_react.useCallback)(function(e2) {
|
|
24435
|
+
e2.preventDefault(), e2.persist(), WW(e2);
|
|
24429
24436
|
var r2 = isEvtWithFiles(e2);
|
|
24430
24437
|
if (r2 && e2.dataTransfer) try {
|
|
24431
24438
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -24435,12 +24442,12 @@ ${c}
|
|
|
24435
24442
|
}, [
|
|
24436
24443
|
_,
|
|
24437
24444
|
L
|
|
24438
|
-
]),
|
|
24439
|
-
e2.preventDefault(), e2.persist(),
|
|
24440
|
-
var r2 =
|
|
24445
|
+
]), NW = (0, import_react.useCallback)(function(e2) {
|
|
24446
|
+
e2.preventDefault(), e2.persist(), WW(e2);
|
|
24447
|
+
var r2 = DW.current.filter(function(e3) {
|
|
24441
24448
|
return q.current && q.current.contains(e3);
|
|
24442
24449
|
}), c2 = r2.indexOf(e2.target);
|
|
24443
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
24450
|
+
c2 !== -1 && r2.splice(c2, 1), DW.current = r2, !(r2.length > 0) && (SW({
|
|
24444
24451
|
type: "setDraggedFiles",
|
|
24445
24452
|
isDragActive: false,
|
|
24446
24453
|
isDragAccept: false,
|
|
@@ -24450,7 +24457,7 @@ ${c}
|
|
|
24450
24457
|
q,
|
|
24451
24458
|
g,
|
|
24452
24459
|
L
|
|
24453
|
-
]),
|
|
24460
|
+
]), PW = (0, import_react.useCallback)(function(e2, r2) {
|
|
24454
24461
|
var c2 = [], l2 = [];
|
|
24455
24462
|
e2.forEach(function(e3) {
|
|
24456
24463
|
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;
|
|
@@ -24474,14 +24481,14 @@ ${c}
|
|
|
24474
24481
|
TOO_MANY_FILES_REJECTION
|
|
24475
24482
|
]
|
|
24476
24483
|
});
|
|
24477
|
-
}), c2.splice(0)),
|
|
24484
|
+
}), c2.splice(0)), SW({
|
|
24478
24485
|
acceptedFiles: c2,
|
|
24479
24486
|
fileRejections: l2,
|
|
24480
24487
|
isDragReject: l2.length > 0,
|
|
24481
24488
|
type: "setFiles"
|
|
24482
24489
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
24483
24490
|
}, [
|
|
24484
|
-
|
|
24491
|
+
SW,
|
|
24485
24492
|
p,
|
|
24486
24493
|
B,
|
|
24487
24494
|
f,
|
|
@@ -24491,22 +24498,22 @@ ${c}
|
|
|
24491
24498
|
y,
|
|
24492
24499
|
b,
|
|
24493
24500
|
z
|
|
24494
|
-
]),
|
|
24495
|
-
e2.preventDefault(), e2.persist(),
|
|
24496
|
-
isPropagationStopped(e2) && !L ||
|
|
24501
|
+
]), FW = (0, import_react.useCallback)(function(e2) {
|
|
24502
|
+
e2.preventDefault(), e2.persist(), WW(e2), DW.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24503
|
+
isPropagationStopped(e2) && !L || PW(r2, e2);
|
|
24497
24504
|
}).catch(function(e3) {
|
|
24498
|
-
return
|
|
24499
|
-
}),
|
|
24505
|
+
return AW(e3);
|
|
24506
|
+
}), SW({
|
|
24500
24507
|
type: "reset"
|
|
24501
24508
|
});
|
|
24502
24509
|
}, [
|
|
24503
24510
|
u,
|
|
24504
|
-
|
|
24505
|
-
|
|
24511
|
+
PW,
|
|
24512
|
+
AW,
|
|
24506
24513
|
L
|
|
24507
|
-
]),
|
|
24508
|
-
if (
|
|
24509
|
-
|
|
24514
|
+
]), IW = (0, import_react.useCallback)(function() {
|
|
24515
|
+
if (TW.current) {
|
|
24516
|
+
SW({
|
|
24510
24517
|
type: "openDialog"
|
|
24511
24518
|
}), W();
|
|
24512
24519
|
var e2 = {
|
|
@@ -24516,66 +24523,66 @@ ${c}
|
|
|
24516
24523
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
24517
24524
|
return u(e3);
|
|
24518
24525
|
}).then(function(e3) {
|
|
24519
|
-
|
|
24526
|
+
PW(e3, null), SW({
|
|
24520
24527
|
type: "closeDialog"
|
|
24521
24528
|
});
|
|
24522
24529
|
}).catch(function(e3) {
|
|
24523
|
-
isAbort(e3) ? (G(e3),
|
|
24530
|
+
isAbort(e3) ? (G(e3), SW({
|
|
24524
24531
|
type: "closeDialog"
|
|
24525
|
-
})) : isSecurityError(e3) ? (
|
|
24532
|
+
})) : isSecurityError(e3) ? (TW.current = false, bW.current ? (bW.current.value = null, bW.current.click()) : AW(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."))) : AW(e3);
|
|
24526
24533
|
});
|
|
24527
24534
|
return;
|
|
24528
24535
|
}
|
|
24529
|
-
|
|
24536
|
+
bW.current && (SW({
|
|
24530
24537
|
type: "openDialog"
|
|
24531
|
-
}), W(),
|
|
24538
|
+
}), W(), bW.current.value = null, bW.current.click());
|
|
24532
24539
|
}, [
|
|
24533
|
-
|
|
24540
|
+
SW,
|
|
24534
24541
|
W,
|
|
24535
24542
|
G,
|
|
24536
24543
|
T,
|
|
24537
|
-
|
|
24538
|
-
|
|
24544
|
+
PW,
|
|
24545
|
+
AW,
|
|
24539
24546
|
H,
|
|
24540
24547
|
p
|
|
24541
|
-
]),
|
|
24542
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
24548
|
+
]), LW = (0, import_react.useCallback)(function(e2) {
|
|
24549
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), IW());
|
|
24543
24550
|
}, [
|
|
24544
24551
|
q,
|
|
24545
|
-
|
|
24546
|
-
]),
|
|
24547
|
-
|
|
24552
|
+
IW
|
|
24553
|
+
]), RW = (0, import_react.useCallback)(function() {
|
|
24554
|
+
SW({
|
|
24548
24555
|
type: "focus"
|
|
24549
24556
|
});
|
|
24550
|
-
}, []),
|
|
24551
|
-
|
|
24557
|
+
}, []), zW = (0, import_react.useCallback)(function() {
|
|
24558
|
+
SW({
|
|
24552
24559
|
type: "blur"
|
|
24553
24560
|
});
|
|
24554
|
-
}, []),
|
|
24555
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
24561
|
+
}, []), BW = (0, import_react.useCallback)(function() {
|
|
24562
|
+
j || (isIeOrEdge() ? setTimeout(IW, 0) : IW());
|
|
24556
24563
|
}, [
|
|
24557
24564
|
j,
|
|
24558
|
-
|
|
24559
|
-
]),
|
|
24565
|
+
IW
|
|
24566
|
+
]), VW = function(e2) {
|
|
24560
24567
|
return l ? null : e2;
|
|
24561
|
-
}, VW = function(e2) {
|
|
24562
|
-
return M ? null : BW(e2);
|
|
24563
24568
|
}, HW = function(e2) {
|
|
24564
|
-
return
|
|
24569
|
+
return M ? null : VW(e2);
|
|
24565
24570
|
}, UW = function(e2) {
|
|
24571
|
+
return I ? null : VW(e2);
|
|
24572
|
+
}, WW = function(e2) {
|
|
24566
24573
|
L && e2.stopPropagation();
|
|
24567
|
-
},
|
|
24574
|
+
}, GW = (0, import_react.useMemo)(function() {
|
|
24568
24575
|
return function() {
|
|
24569
24576
|
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);
|
|
24570
24577
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
24571
|
-
onKeyDown:
|
|
24572
|
-
onFocus:
|
|
24573
|
-
onBlur:
|
|
24574
|
-
onClick:
|
|
24575
|
-
onDragEnter:
|
|
24576
|
-
onDragOver:
|
|
24577
|
-
onDragLeave:
|
|
24578
|
-
onDrop:
|
|
24578
|
+
onKeyDown: HW(composeEventHandlers(d2, LW)),
|
|
24579
|
+
onFocus: HW(composeEventHandlers(f2, RW)),
|
|
24580
|
+
onBlur: HW(composeEventHandlers(p2, zW)),
|
|
24581
|
+
onClick: VW(composeEventHandlers(m2, BW)),
|
|
24582
|
+
onDragEnter: UW(composeEventHandlers(h2, jW)),
|
|
24583
|
+
onDragOver: UW(composeEventHandlers(g2, MW)),
|
|
24584
|
+
onDragLeave: UW(composeEventHandlers(_2, NW)),
|
|
24585
|
+
onDrop: UW(composeEventHandlers(v2, FW)),
|
|
24579
24586
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
24580
24587
|
}, c2, q), !l && !M ? {
|
|
24581
24588
|
tabIndex: 0
|
|
@@ -24583,20 +24590,20 @@ ${c}
|
|
|
24583
24590
|
};
|
|
24584
24591
|
}, [
|
|
24585
24592
|
q,
|
|
24586
|
-
IW,
|
|
24587
24593
|
LW,
|
|
24588
24594
|
RW,
|
|
24589
24595
|
zW,
|
|
24590
|
-
|
|
24596
|
+
BW,
|
|
24591
24597
|
jW,
|
|
24592
24598
|
MW,
|
|
24593
|
-
|
|
24599
|
+
NW,
|
|
24600
|
+
FW,
|
|
24594
24601
|
M,
|
|
24595
24602
|
I,
|
|
24596
24603
|
l
|
|
24597
|
-
]),
|
|
24604
|
+
]), KW = (0, import_react.useCallback)(function(e2) {
|
|
24598
24605
|
e2.stopPropagation();
|
|
24599
|
-
}, []),
|
|
24606
|
+
}, []), qW = (0, import_react.useMemo)(function() {
|
|
24600
24607
|
return function() {
|
|
24601
24608
|
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);
|
|
24602
24609
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -24615,25 +24622,25 @@ ${c}
|
|
|
24615
24622
|
width: "1px",
|
|
24616
24623
|
whiteSpace: "nowrap"
|
|
24617
24624
|
},
|
|
24618
|
-
onChange:
|
|
24619
|
-
onClick:
|
|
24625
|
+
onChange: VW(composeEventHandlers(l2, FW)),
|
|
24626
|
+
onClick: VW(composeEventHandlers(u2, KW)),
|
|
24620
24627
|
tabIndex: -1
|
|
24621
|
-
}, c2,
|
|
24628
|
+
}, c2, bW)), d2);
|
|
24622
24629
|
};
|
|
24623
24630
|
}, [
|
|
24624
|
-
|
|
24631
|
+
bW,
|
|
24625
24632
|
c,
|
|
24626
24633
|
p,
|
|
24627
|
-
|
|
24634
|
+
FW,
|
|
24628
24635
|
l
|
|
24629
24636
|
]);
|
|
24630
24637
|
return _objectSpread$7(_objectSpread$7({}, Z), {}, {
|
|
24631
|
-
isFocused:
|
|
24632
|
-
getRootProps:
|
|
24633
|
-
getInputProps:
|
|
24638
|
+
isFocused: CW && !l,
|
|
24639
|
+
getRootProps: GW,
|
|
24640
|
+
getInputProps: qW,
|
|
24634
24641
|
rootRef: q,
|
|
24635
|
-
inputRef:
|
|
24636
|
-
open:
|
|
24642
|
+
inputRef: bW,
|
|
24643
|
+
open: VW(IW)
|
|
24637
24644
|
});
|
|
24638
24645
|
}
|
|
24639
24646
|
function reducer$2(e, r) {
|
|
@@ -24865,47 +24872,47 @@ ${c}
|
|
|
24865
24872
|
html: I
|
|
24866
24873
|
})
|
|
24867
24874
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
24868
|
-
let q = w && "text-primary",
|
|
24869
|
-
r[48] !== q || r[49] !==
|
|
24875
|
+
let q = w && "text-primary", bW = T && "text-destructive", xW;
|
|
24876
|
+
r[48] !== q || r[49] !== bW ? (xW = cn(q, bW), r[48] = q, r[49] = bW, r[50] = xW) : xW = r[50];
|
|
24870
24877
|
let Z;
|
|
24871
|
-
r[51] ===
|
|
24878
|
+
r[51] === xW ? Z = r[52] : (Z = (0, import_jsx_runtime.jsx)(Upload, {
|
|
24872
24879
|
strokeWidth: 1.4,
|
|
24873
|
-
className:
|
|
24874
|
-
}), r[51] =
|
|
24875
|
-
let
|
|
24876
|
-
r[53] !==
|
|
24877
|
-
let wW;
|
|
24878
|
-
r[56] === CW ? wW = r[57] : (wW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
24879
|
-
strokeWidth: 1.4,
|
|
24880
|
-
className: CW
|
|
24881
|
-
}), r[56] = CW, r[57] = wW);
|
|
24880
|
+
className: xW
|
|
24881
|
+
}), r[51] = xW, r[52] = Z);
|
|
24882
|
+
let SW = w && "text-primary", CW = T && "text-destructive", wW;
|
|
24883
|
+
r[53] !== SW || r[54] !== CW ? (wW = cn(SW, CW), r[53] = SW, r[54] = CW, r[55] = wW) : wW = r[55];
|
|
24882
24884
|
let TW;
|
|
24883
|
-
r[
|
|
24885
|
+
r[56] === wW ? TW = r[57] : (TW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
24886
|
+
strokeWidth: 1.4,
|
|
24887
|
+
className: wW
|
|
24888
|
+
}), r[56] = wW, r[57] = TW);
|
|
24889
|
+
let EW;
|
|
24890
|
+
r[58] !== Z || r[59] !== TW ? (EW = (0, import_jsx_runtime.jsxs)("div", {
|
|
24884
24891
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
24885
24892
|
children: [
|
|
24886
24893
|
Z,
|
|
24887
|
-
|
|
24894
|
+
TW
|
|
24888
24895
|
]
|
|
24889
|
-
}), r[58] = Z, r[59] =
|
|
24890
|
-
let
|
|
24891
|
-
r[61] !== G || r[62] !==
|
|
24896
|
+
}), r[58] = Z, r[59] = TW, r[60] = EW) : EW = r[60];
|
|
24897
|
+
let DW;
|
|
24898
|
+
r[61] !== G || r[62] !== EW ? (DW = (0, import_jsx_runtime.jsxs)("div", {
|
|
24892
24899
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
24893
24900
|
children: [
|
|
24894
24901
|
G,
|
|
24895
|
-
|
|
24902
|
+
EW
|
|
24896
24903
|
]
|
|
24897
|
-
}), r[61] = G, r[62] =
|
|
24898
|
-
let
|
|
24899
|
-
r[64] !== W || r[65] !==
|
|
24904
|
+
}), r[61] = G, r[62] = EW, r[63] = DW) : DW = r[63];
|
|
24905
|
+
let OW;
|
|
24906
|
+
r[64] !== W || r[65] !== DW || r[66] !== z || r[67] !== B ? (OW = (0, import_jsx_runtime.jsxs)("div", {
|
|
24900
24907
|
className: z,
|
|
24901
24908
|
...B,
|
|
24902
24909
|
children: [
|
|
24903
24910
|
W,
|
|
24904
|
-
|
|
24911
|
+
DW
|
|
24905
24912
|
]
|
|
24906
|
-
}), r[64] = W, r[65] =
|
|
24907
|
-
let
|
|
24908
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
24913
|
+
}), r[64] = W, r[65] = DW, r[66] = z, r[67] = B, r[68] = OW) : OW = r[68];
|
|
24914
|
+
let kW;
|
|
24915
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (kW = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
24909
24916
|
className: "flex flex-row gap-1",
|
|
24910
24917
|
children: [
|
|
24911
24918
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -24941,17 +24948,17 @@ ${c}
|
|
|
24941
24948
|
})
|
|
24942
24949
|
})
|
|
24943
24950
|
]
|
|
24944
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
24945
|
-
let
|
|
24946
|
-
return r[75] !==
|
|
24951
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = kW) : kW = r[74];
|
|
24952
|
+
let jW;
|
|
24953
|
+
return r[75] !== OW || r[76] !== kW ? (jW = (0, import_jsx_runtime.jsx)("section", {
|
|
24947
24954
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
24948
24955
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
24949
24956
|
children: [
|
|
24950
|
-
|
|
24951
|
-
|
|
24957
|
+
OW,
|
|
24958
|
+
kW
|
|
24952
24959
|
]
|
|
24953
24960
|
})
|
|
24954
|
-
}), r[75] =
|
|
24961
|
+
}), r[75] = OW, r[76] = kW, r[77] = jW) : jW = r[77], jW;
|
|
24955
24962
|
};
|
|
24956
24963
|
function _temp$11(e) {
|
|
24957
24964
|
Logger.error(e), toast({
|
|
@@ -25047,75 +25054,75 @@ ${c}
|
|
|
25047
25054
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
25048
25055
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
25049
25056
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
25050
|
-
let
|
|
25051
|
-
r[13] === f ?
|
|
25057
|
+
let bW;
|
|
25058
|
+
r[13] === f ? bW = r[14] : (bW = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
25052
25059
|
className: "text-center",
|
|
25053
25060
|
children: renderHTML({
|
|
25054
25061
|
html: f
|
|
25055
25062
|
})
|
|
25056
|
-
}), r[13] = f, r[14] =
|
|
25057
|
-
let
|
|
25058
|
-
r[15] === L ?
|
|
25063
|
+
}), r[13] = f, r[14] = bW);
|
|
25064
|
+
let xW;
|
|
25065
|
+
r[15] === L ? xW = r[16] : (xW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25059
25066
|
kind: "danger",
|
|
25060
25067
|
className: "rounded",
|
|
25061
25068
|
children: L ?? "Invalid input"
|
|
25062
|
-
}), r[15] = L, r[16] =
|
|
25069
|
+
}), r[15] = L, r[16] = xW);
|
|
25063
25070
|
let Z;
|
|
25064
25071
|
r[17] === c ? Z = r[18] : (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
25065
25072
|
children: c
|
|
25066
25073
|
}), r[17] = c, r[18] = Z);
|
|
25067
|
-
let
|
|
25068
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
25074
|
+
let SW;
|
|
25075
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (SW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
25069
25076
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
25070
25077
|
variant: "text",
|
|
25071
25078
|
onClick: (e2) => {
|
|
25072
25079
|
e2.preventDefault(), B();
|
|
25073
25080
|
},
|
|
25074
25081
|
children: S
|
|
25075
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
25076
|
-
let
|
|
25077
|
-
r[23] === h ?
|
|
25082
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = SW) : SW = r[22];
|
|
25083
|
+
let CW = v || h, wW;
|
|
25084
|
+
r[23] === h ? wW = r[24] : (wW = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
25078
25085
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
25079
|
-
}), r[23] = h, r[24] =
|
|
25080
|
-
let
|
|
25081
|
-
r[25] !== g || r[26] !==
|
|
25086
|
+
}), r[23] = h, r[24] = wW);
|
|
25087
|
+
let TW;
|
|
25088
|
+
r[25] !== g || r[26] !== CW || r[27] !== wW || r[28] !== I ? (TW = (0, import_jsx_runtime.jsxs)(Button, {
|
|
25082
25089
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
25083
25090
|
variant: I,
|
|
25084
|
-
disabled:
|
|
25091
|
+
disabled: CW,
|
|
25085
25092
|
type: "submit",
|
|
25086
25093
|
children: [
|
|
25087
|
-
|
|
25094
|
+
wW,
|
|
25088
25095
|
g
|
|
25089
25096
|
]
|
|
25090
|
-
}), r[25] = g, r[26] =
|
|
25091
|
-
let TW;
|
|
25092
|
-
r[30] !== _ || r[31] !== wW ? (TW = withTooltip(wW, _), r[30] = _, r[31] = wW, r[32] = TW) : TW = r[32];
|
|
25097
|
+
}), r[25] = g, r[26] = CW, r[27] = wW, r[28] = I, r[29] = TW) : TW = r[29];
|
|
25093
25098
|
let EW;
|
|
25094
|
-
r[
|
|
25099
|
+
r[30] !== _ || r[31] !== TW ? (EW = withTooltip(TW, _), r[30] = _, r[31] = TW, r[32] = EW) : EW = r[32];
|
|
25100
|
+
let DW;
|
|
25101
|
+
r[33] !== EW || r[34] !== SW ? (DW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25095
25102
|
className: "flex justify-end gap-2 font-code",
|
|
25096
25103
|
children: [
|
|
25097
|
-
|
|
25098
|
-
|
|
25104
|
+
SW,
|
|
25105
|
+
EW
|
|
25099
25106
|
]
|
|
25100
|
-
}), r[33] =
|
|
25101
|
-
let
|
|
25102
|
-
r[36] !==
|
|
25107
|
+
}), r[33] = EW, r[34] = SW, r[35] = DW) : DW = r[35];
|
|
25108
|
+
let OW;
|
|
25109
|
+
r[36] !== DW || r[37] !== G || r[38] !== q || r[39] !== bW || r[40] !== xW || r[41] !== Z ? (OW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25103
25110
|
className: G,
|
|
25104
25111
|
onKeyDown: q,
|
|
25105
25112
|
children: [
|
|
25106
|
-
yW,
|
|
25107
25113
|
bW,
|
|
25114
|
+
xW,
|
|
25108
25115
|
Z,
|
|
25109
|
-
|
|
25116
|
+
DW
|
|
25110
25117
|
]
|
|
25111
|
-
}), r[36] =
|
|
25112
|
-
let
|
|
25113
|
-
return r[43] !==
|
|
25118
|
+
}), r[36] = DW, r[37] = G, r[38] = q, r[39] = bW, r[40] = xW, r[41] = Z, r[42] = OW) : OW = r[42];
|
|
25119
|
+
let kW;
|
|
25120
|
+
return r[43] !== OW || r[44] !== H ? (kW = (0, import_jsx_runtime.jsx)("form", {
|
|
25114
25121
|
className: "contents",
|
|
25115
25122
|
ref: j,
|
|
25116
25123
|
onSubmit: H,
|
|
25117
|
-
children:
|
|
25118
|
-
}), r[43] =
|
|
25124
|
+
children: OW
|
|
25125
|
+
}), r[43] = OW, r[44] = H, r[45] = kW) : kW = r[45], kW;
|
|
25119
25126
|
};
|
|
25120
25127
|
var Form = (e) => {
|
|
25121
25128
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -26888,8 +26895,8 @@ ${c}
|
|
|
26888
26895
|
points: extractSunburstPoints(e2.points)
|
|
26889
26896
|
}));
|
|
26890
26897
|
}, r[29] = u, r[30] = G);
|
|
26891
|
-
let q = useEvent_default(G),
|
|
26892
|
-
r[31] === u ?
|
|
26898
|
+
let q = useEvent_default(G), bW;
|
|
26899
|
+
r[31] === u ? bW = r[32] : (bW = (e2) => {
|
|
26893
26900
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
26894
26901
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
26895
26902
|
u((e3) => ({
|
|
@@ -26900,8 +26907,8 @@ ${c}
|
|
|
26900
26907
|
points: r2,
|
|
26901
26908
|
indices: c2
|
|
26902
26909
|
}));
|
|
26903
|
-
}, r[31] = u, r[32] =
|
|
26904
|
-
let
|
|
26910
|
+
}, r[31] = u, r[32] = bW);
|
|
26911
|
+
let xW = useEvent_default(bW), Z;
|
|
26905
26912
|
r[33] === u ? Z = r[34] : (Z = (e2) => {
|
|
26906
26913
|
e2 && u((r2) => ({
|
|
26907
26914
|
...r2,
|
|
@@ -26912,8 +26919,8 @@ ${c}
|
|
|
26912
26919
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
26913
26920
|
}));
|
|
26914
26921
|
}, r[33] = u, r[34] = Z);
|
|
26915
|
-
let
|
|
26916
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
26922
|
+
let SW = useEvent_default(Z), CW = m.frames ?? void 0, wW = useEvent_default(_temp3$3), TW;
|
|
26923
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== xW || r[42] !== SW || r[43] !== CW || r[44] !== wW || r[45] !== R ? (TW = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
26917
26924
|
...m,
|
|
26918
26925
|
layout: h,
|
|
26919
26926
|
onRelayout: R,
|
|
@@ -26921,13 +26928,13 @@ ${c}
|
|
|
26921
26928
|
onTreemapClick: W,
|
|
26922
26929
|
onSunburstClick: q,
|
|
26923
26930
|
config: L,
|
|
26924
|
-
onClick:
|
|
26925
|
-
onSelected:
|
|
26931
|
+
onClick: xW,
|
|
26932
|
+
onSelected: SW,
|
|
26926
26933
|
className: "w-full",
|
|
26927
26934
|
useResizeHandler: true,
|
|
26928
|
-
frames:
|
|
26929
|
-
onError:
|
|
26930
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
26935
|
+
frames: CW,
|
|
26936
|
+
onError: wW
|
|
26937
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = xW, r[42] = SW, r[43] = CW, r[44] = wW, r[45] = R, r[46] = TW) : TW = r[46], TW;
|
|
26931
26938
|
});
|
|
26932
26939
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
26933
26940
|
function _temp$8(e) {
|
|
@@ -27059,8 +27066,8 @@ ${c}
|
|
|
27059
27066
|
c[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = cn("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60", "data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"), c[17] = G) : G = c[17];
|
|
27060
27067
|
let q;
|
|
27061
27068
|
c[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = cn("absolute bg-blue-500 dark:bg-primary", "data-[orientation=horizontal]:h-full", "data-[orientation=vertical]:w-full", "data-disabled:opacity-50", "hover:cursor-grab active:cursor-grabbing"), c[18] = q) : q = c[18];
|
|
27062
|
-
let
|
|
27063
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
27069
|
+
let bW;
|
|
27070
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (bW = (0, import_jsx_runtime.jsx)(Track, {
|
|
27064
27071
|
ref: E,
|
|
27065
27072
|
"data-testid": "track",
|
|
27066
27073
|
className: G,
|
|
@@ -27071,9 +27078,9 @@ ${c}
|
|
|
27071
27078
|
onPointerMove: z,
|
|
27072
27079
|
onPointerUp: H
|
|
27073
27080
|
})
|
|
27074
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
27075
|
-
let
|
|
27076
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
27081
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = bW) : bW = c[22];
|
|
27082
|
+
let xW;
|
|
27083
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (xW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27077
27084
|
asChild: true,
|
|
27078
27085
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27079
27086
|
"data-testid": "thumb",
|
|
@@ -27083,30 +27090,30 @@ ${c}
|
|
|
27083
27090
|
onMouseEnter: m.setTrue,
|
|
27084
27091
|
onMouseLeave: m.setFalse
|
|
27085
27092
|
})
|
|
27086
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
27093
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = xW) : xW = c[25];
|
|
27087
27094
|
let Z;
|
|
27088
27095
|
c[26] !== h || c[27] !== u.value || c[28] !== d ? (Z = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27089
27096
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
27090
27097
|
locale: h
|
|
27091
27098
|
})
|
|
27092
27099
|
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = Z) : Z = c[29];
|
|
27093
|
-
let xW;
|
|
27094
|
-
c[30] === Z ? xW = c[31] : (xW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27095
|
-
children: Z
|
|
27096
|
-
}), c[30] = Z, c[31] = xW);
|
|
27097
27100
|
let SW;
|
|
27098
|
-
c[
|
|
27101
|
+
c[30] === Z ? SW = c[31] : (SW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27102
|
+
children: Z
|
|
27103
|
+
}), c[30] = Z, c[31] = SW);
|
|
27104
|
+
let CW;
|
|
27105
|
+
c[32] !== f || c[33] !== xW || c[34] !== SW ? (CW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27099
27106
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27100
27107
|
delayDuration: 0,
|
|
27101
27108
|
open: f,
|
|
27102
27109
|
children: [
|
|
27103
|
-
|
|
27104
|
-
|
|
27110
|
+
xW,
|
|
27111
|
+
SW
|
|
27105
27112
|
]
|
|
27106
27113
|
})
|
|
27107
|
-
}), c[32] = f, c[33] =
|
|
27108
|
-
let
|
|
27109
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
27114
|
+
}), c[32] = f, c[33] = xW, c[34] = SW, c[35] = CW) : CW = c[35];
|
|
27115
|
+
let wW;
|
|
27116
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (wW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27110
27117
|
asChild: true,
|
|
27111
27118
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27112
27119
|
"data-testid": "thumb",
|
|
@@ -27116,39 +27123,39 @@ ${c}
|
|
|
27116
27123
|
onMouseEnter: m.setTrue,
|
|
27117
27124
|
onMouseLeave: m.setFalse
|
|
27118
27125
|
})
|
|
27119
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
27120
|
-
let
|
|
27121
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
27126
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = wW) : wW = c[38];
|
|
27127
|
+
let TW;
|
|
27128
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (TW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27122
27129
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
27123
27130
|
locale: h
|
|
27124
27131
|
})
|
|
27125
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
27126
|
-
let TW;
|
|
27127
|
-
c[43] === wW ? TW = c[44] : (TW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27128
|
-
children: wW
|
|
27129
|
-
}), c[43] = wW, c[44] = TW);
|
|
27132
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = TW) : TW = c[42];
|
|
27130
27133
|
let EW;
|
|
27131
|
-
c[
|
|
27134
|
+
c[43] === TW ? EW = c[44] : (EW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27135
|
+
children: TW
|
|
27136
|
+
}), c[43] = TW, c[44] = EW);
|
|
27137
|
+
let DW;
|
|
27138
|
+
c[45] !== f || c[46] !== wW || c[47] !== EW ? (DW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27132
27139
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27133
27140
|
delayDuration: 0,
|
|
27134
27141
|
open: f,
|
|
27135
27142
|
children: [
|
|
27136
|
-
|
|
27137
|
-
|
|
27143
|
+
wW,
|
|
27144
|
+
EW
|
|
27138
27145
|
]
|
|
27139
27146
|
})
|
|
27140
|
-
}), c[45] = f, c[46] =
|
|
27141
|
-
let
|
|
27142
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
27147
|
+
}), c[45] = f, c[46] = wW, c[47] = EW, c[48] = DW) : DW = c[48];
|
|
27148
|
+
let OW;
|
|
27149
|
+
return c[49] !== M || c[50] !== u || c[51] !== bW || c[52] !== CW || c[53] !== DW || c[54] !== W ? (OW = (0, import_jsx_runtime.jsxs)(Root, {
|
|
27143
27150
|
ref: M,
|
|
27144
27151
|
className: W,
|
|
27145
27152
|
...u,
|
|
27146
27153
|
children: [
|
|
27147
|
-
|
|
27148
|
-
|
|
27149
|
-
|
|
27154
|
+
bW,
|
|
27155
|
+
CW,
|
|
27156
|
+
DW
|
|
27150
27157
|
]
|
|
27151
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
27158
|
+
}), c[49] = M, c[50] = u, c[51] = bW, c[52] = CW, c[53] = DW, c[54] = W, c[55] = OW) : OW = c[55], OW;
|
|
27152
27159
|
});
|
|
27153
27160
|
RangeSlider.displayName = Root.displayName;
|
|
27154
27161
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -27199,14 +27206,14 @@ ${c}
|
|
|
27199
27206
|
}, q = (e2) => {
|
|
27200
27207
|
h && l(e2);
|
|
27201
27208
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27202
|
-
let
|
|
27203
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
27209
|
+
let bW, xW;
|
|
27210
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (bW = () => {
|
|
27204
27211
|
h && !dequal(T, u) && l(T);
|
|
27205
|
-
},
|
|
27212
|
+
}, xW = () => {
|
|
27206
27213
|
h && !dequal(T, u) && l(T);
|
|
27207
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
27214
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = bW, r[19] = xW) : (bW = r[18], xW = r[19]);
|
|
27208
27215
|
let Z;
|
|
27209
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !==
|
|
27216
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== bW || r[31] !== xW || r[32] !== b ? (Z = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
27210
27217
|
id: S,
|
|
27211
27218
|
className: W,
|
|
27212
27219
|
value: T,
|
|
@@ -27217,36 +27224,36 @@ ${c}
|
|
|
27217
27224
|
disabled: y,
|
|
27218
27225
|
onValueChange: G,
|
|
27219
27226
|
onValueCommit: q,
|
|
27220
|
-
onPointerUp:
|
|
27221
|
-
onMouseUp:
|
|
27227
|
+
onPointerUp: bW,
|
|
27228
|
+
onMouseUp: xW,
|
|
27222
27229
|
valueMap: b
|
|
27223
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
27224
|
-
let
|
|
27225
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
27230
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = bW, r[31] = xW, r[32] = b, r[33] = Z) : Z = r[33];
|
|
27231
|
+
let SW;
|
|
27232
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (SW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
27226
27233
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
27227
27234
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
27228
27235
|
locale: w
|
|
27229
27236
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
27230
27237
|
locale: w
|
|
27231
27238
|
})}`
|
|
27232
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
27233
|
-
let
|
|
27234
|
-
r[39] !== Z || r[40] !==
|
|
27239
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = SW) : SW = r[38];
|
|
27240
|
+
let CW;
|
|
27241
|
+
r[39] !== Z || r[40] !== SW || r[41] !== B ? (CW = (0, import_jsx_runtime.jsxs)("div", {
|
|
27235
27242
|
className: B,
|
|
27236
27243
|
children: [
|
|
27237
27244
|
Z,
|
|
27238
|
-
|
|
27245
|
+
SW
|
|
27239
27246
|
]
|
|
27240
|
-
}), r[39] = Z, r[40] =
|
|
27241
|
-
let
|
|
27242
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
27247
|
+
}), r[39] = Z, r[40] = SW, r[41] = B, r[42] = CW) : CW = r[42];
|
|
27248
|
+
let wW;
|
|
27249
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== CW || r[47] !== M || r[48] !== L ? (wW = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
27243
27250
|
label: c,
|
|
27244
27251
|
id: S,
|
|
27245
27252
|
align: M,
|
|
27246
27253
|
className: L,
|
|
27247
27254
|
fullWidth: v,
|
|
27248
|
-
children:
|
|
27249
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
27255
|
+
children: CW
|
|
27256
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = CW, r[47] = M, r[48] = L, r[49] = wW) : wW = r[49], wW;
|
|
27250
27257
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
27251
27258
|
r.exports = u;
|
|
27252
27259
|
var c = {
|
|
@@ -30537,7 +30544,7 @@ ${c}
|
|
|
30537
30544
|
areRegExpsEqual: H,
|
|
30538
30545
|
areSetsEqual: W,
|
|
30539
30546
|
createIsNestedEqual: r2
|
|
30540
|
-
}),
|
|
30547
|
+
}), bW = Object.freeze({
|
|
30541
30548
|
areArraysEqual: O,
|
|
30542
30549
|
areDatesEqual: j,
|
|
30543
30550
|
areMapsEqual: I,
|
|
@@ -30545,40 +30552,40 @@ ${c}
|
|
|
30545
30552
|
areRegExpsEqual: H,
|
|
30546
30553
|
areSetsEqual: G,
|
|
30547
30554
|
createIsNestedEqual: r2
|
|
30548
|
-
}),
|
|
30555
|
+
}), xW = T(q);
|
|
30549
30556
|
function Z(e3, r3) {
|
|
30550
|
-
return
|
|
30557
|
+
return xW(e3, r3, void 0);
|
|
30551
30558
|
}
|
|
30552
|
-
var
|
|
30559
|
+
var SW = T(l(q, {
|
|
30553
30560
|
createIsNestedEqual: function() {
|
|
30554
30561
|
return f;
|
|
30555
30562
|
}
|
|
30556
30563
|
}));
|
|
30557
|
-
function
|
|
30558
|
-
return
|
|
30564
|
+
function CW(e3, r3) {
|
|
30565
|
+
return SW(e3, r3, void 0);
|
|
30559
30566
|
}
|
|
30560
|
-
var
|
|
30561
|
-
function
|
|
30562
|
-
return
|
|
30567
|
+
var wW = T(bW);
|
|
30568
|
+
function TW(e3, r3) {
|
|
30569
|
+
return wW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30563
30570
|
}
|
|
30564
|
-
var
|
|
30571
|
+
var EW = T(l(bW, {
|
|
30565
30572
|
createIsNestedEqual: function() {
|
|
30566
30573
|
return f;
|
|
30567
30574
|
}
|
|
30568
30575
|
}));
|
|
30569
|
-
function
|
|
30570
|
-
return
|
|
30576
|
+
function DW(e3, r3) {
|
|
30577
|
+
return EW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30571
30578
|
}
|
|
30572
|
-
function
|
|
30579
|
+
function OW(e3) {
|
|
30573
30580
|
return T(l(q, e3(q)));
|
|
30574
30581
|
}
|
|
30575
|
-
function
|
|
30576
|
-
var r3 = T(l(
|
|
30582
|
+
function kW(e3) {
|
|
30583
|
+
var r3 = T(l(bW, e3(bW)));
|
|
30577
30584
|
return (function(e4, c2, l2) {
|
|
30578
30585
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
30579
30586
|
});
|
|
30580
30587
|
}
|
|
30581
|
-
e2.circularDeepEqual =
|
|
30588
|
+
e2.circularDeepEqual = TW, e2.circularShallowEqual = DW, e2.createCustomCircularEqual = kW, e2.createCustomEqual = OW, e2.deepEqual = Z, e2.sameValueZeroEqual = f, e2.shallowEqual = CW, Object.defineProperty(e2, "__esModule", {
|
|
30582
30589
|
value: true
|
|
30583
30590
|
});
|
|
30584
30591
|
}));
|
|
@@ -30604,7 +30611,7 @@ ${c}
|
|
|
30604
30611
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
30605
30612
|
Object.defineProperty(e, "__esModule", {
|
|
30606
30613
|
value: true
|
|
30607
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
30614
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = FW, e.correctBounds = I, e.fastPositionEqual = S, e.fastRGLPropsEqual = void 0, e.getAllCollisions = z, e.getFirstCollision = R, e.getLayoutItem = L, e.getStatics = B, e.modifyLayout = _, e.moveElement = H, e.moveElementAwayFromCollision = W, e.noop = void 0, e.perc = G, e.resizeItemInDirection = DW, e.setTopLeft = kW, e.setTransform = OW, e.sortLayoutItems = AW, e.sortLayoutItemsByColRow = MW, e.sortLayoutItemsByRowCol = jW, e.synchronizeLayoutWithChildren = NW, e.validateLayout = PW, e.withLayoutItem = v;
|
|
30608
30615
|
var r = require_fast_equals(), c = l(require_react());
|
|
30609
30616
|
function l(e2) {
|
|
30610
30617
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -30709,7 +30716,7 @@ ${c}
|
|
|
30709
30716
|
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);
|
|
30710
30717
|
}
|
|
30711
30718
|
function T(e2, r2, c2, l2) {
|
|
30712
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
30719
|
+
let u2 = B(e2), d2 = h(u2), f2 = AW(e2, r2), p2 = Array(e2.length);
|
|
30713
30720
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
30714
30721
|
let h3 = y(f2[m2]);
|
|
30715
30722
|
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;
|
|
@@ -30767,7 +30774,7 @@ ${c}
|
|
|
30767
30774
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
30768
30775
|
let h2 = r2.x, _2 = r2.y;
|
|
30769
30776
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
30770
|
-
let v2 =
|
|
30777
|
+
let v2 = AW(e2, f2);
|
|
30771
30778
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
30772
30779
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
30773
30780
|
if (b2 && m2) return g(e2);
|
|
@@ -30801,61 +30808,61 @@ ${c}
|
|
|
30801
30808
|
function G(e2) {
|
|
30802
30809
|
return e2 * 100 + "%";
|
|
30803
30810
|
}
|
|
30804
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
30811
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, bW = (e2, r2, c2) => e2 < 0 ? r2 : c2, xW = (e2) => Math.max(0, e2), Z = (e2) => Math.max(0, e2), SW = (e2, r2, c2) => {
|
|
30805
30812
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
30806
30813
|
return {
|
|
30807
30814
|
left: l2,
|
|
30808
30815
|
width: d2,
|
|
30809
|
-
height:
|
|
30816
|
+
height: bW(f2, e2.height, u2),
|
|
30810
30817
|
top: Z(f2)
|
|
30811
30818
|
};
|
|
30812
|
-
},
|
|
30819
|
+
}, CW = (e2, r2, c2) => {
|
|
30813
30820
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
30814
30821
|
return {
|
|
30815
30822
|
top: l2,
|
|
30816
30823
|
height: d2,
|
|
30817
30824
|
width: q(e2.left, e2.width, f2, c2),
|
|
30818
|
-
left:
|
|
30825
|
+
left: xW(u2)
|
|
30819
30826
|
};
|
|
30820
|
-
},
|
|
30827
|
+
}, wW = (e2, r2, c2) => {
|
|
30821
30828
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
30822
30829
|
return {
|
|
30823
30830
|
height: u2,
|
|
30824
30831
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
30825
30832
|
top: Z(l2),
|
|
30826
|
-
left:
|
|
30833
|
+
left: xW(f2)
|
|
30827
30834
|
};
|
|
30828
|
-
},
|
|
30835
|
+
}, TW = (e2, r2, c2) => {
|
|
30829
30836
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
30830
30837
|
return {
|
|
30831
30838
|
width: f2,
|
|
30832
30839
|
left: u2,
|
|
30833
|
-
height:
|
|
30840
|
+
height: bW(l2, e2.height, d2),
|
|
30834
30841
|
top: Z(l2)
|
|
30835
30842
|
};
|
|
30836
|
-
},
|
|
30837
|
-
n:
|
|
30843
|
+
}, EW = {
|
|
30844
|
+
n: SW,
|
|
30838
30845
|
ne: function() {
|
|
30839
|
-
return
|
|
30846
|
+
return SW(arguments.length <= 0 ? void 0 : arguments[0], CW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
30840
30847
|
},
|
|
30841
|
-
e:
|
|
30848
|
+
e: CW,
|
|
30842
30849
|
se: function() {
|
|
30843
|
-
return
|
|
30850
|
+
return TW(arguments.length <= 0 ? void 0 : arguments[0], CW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
30844
30851
|
},
|
|
30845
|
-
s:
|
|
30852
|
+
s: TW,
|
|
30846
30853
|
sw: function() {
|
|
30847
|
-
return
|
|
30854
|
+
return TW(arguments.length <= 0 ? void 0 : arguments[0], wW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
30848
30855
|
},
|
|
30849
|
-
w:
|
|
30856
|
+
w: wW,
|
|
30850
30857
|
nw: function() {
|
|
30851
|
-
return
|
|
30858
|
+
return SW(arguments.length <= 0 ? void 0 : arguments[0], wW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
30852
30859
|
}
|
|
30853
30860
|
};
|
|
30854
|
-
function
|
|
30855
|
-
let u2 =
|
|
30861
|
+
function DW(e2, r2, c2, l2) {
|
|
30862
|
+
let u2 = EW[e2];
|
|
30856
30863
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
30857
30864
|
}
|
|
30858
|
-
function
|
|
30865
|
+
function OW(e2) {
|
|
30859
30866
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
30860
30867
|
return {
|
|
30861
30868
|
transform: d2,
|
|
@@ -30868,7 +30875,7 @@ ${c}
|
|
|
30868
30875
|
position: "absolute"
|
|
30869
30876
|
};
|
|
30870
30877
|
}
|
|
30871
|
-
function
|
|
30878
|
+
function kW(e2) {
|
|
30872
30879
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
30873
30880
|
return {
|
|
30874
30881
|
top: `${r2}px`,
|
|
@@ -30878,20 +30885,20 @@ ${c}
|
|
|
30878
30885
|
position: "absolute"
|
|
30879
30886
|
};
|
|
30880
30887
|
}
|
|
30881
|
-
function
|
|
30882
|
-
return r2 === "horizontal" ?
|
|
30888
|
+
function AW(e2, r2) {
|
|
30889
|
+
return r2 === "horizontal" ? MW(e2) : r2 === "vertical" ? jW(e2) : e2;
|
|
30883
30890
|
}
|
|
30884
|
-
function
|
|
30891
|
+
function jW(e2) {
|
|
30885
30892
|
return e2.slice(0).sort(function(e3, r2) {
|
|
30886
30893
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
30887
30894
|
});
|
|
30888
30895
|
}
|
|
30889
|
-
function
|
|
30896
|
+
function MW(e2) {
|
|
30890
30897
|
return e2.slice(0).sort(function(e3, r2) {
|
|
30891
30898
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
30892
30899
|
});
|
|
30893
30900
|
}
|
|
30894
|
-
function
|
|
30901
|
+
function NW(e2, r2, l2, u2, f2) {
|
|
30895
30902
|
e2 || (e2 = []);
|
|
30896
30903
|
let p2 = [];
|
|
30897
30904
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -30912,7 +30919,7 @@ ${c}
|
|
|
30912
30919
|
});
|
|
30913
30920
|
return f2 ? m2 : T(m2, u2, l2);
|
|
30914
30921
|
}
|
|
30915
|
-
function
|
|
30922
|
+
function PW(e2) {
|
|
30916
30923
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
30917
30924
|
"x",
|
|
30918
30925
|
"y",
|
|
@@ -30929,7 +30936,7 @@ ${c}
|
|
|
30929
30936
|
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})`);
|
|
30930
30937
|
}
|
|
30931
30938
|
}
|
|
30932
|
-
function
|
|
30939
|
+
function FW(e2) {
|
|
30933
30940
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
30934
30941
|
return r2 === false ? null : c2;
|
|
30935
30942
|
}
|
|
@@ -33734,7 +33741,7 @@ ${c}
|
|
|
33734
33741
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
33735
33742
|
let E = useIsDragging(), O, j;
|
|
33736
33743
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
33737
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
33744
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, bW, xW, Z, SW, CW, wW, TW, EW, DW, OW, kW, AW, jW, MW, NW, PW, FW;
|
|
33738
33745
|
if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== h || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
|
|
33739
33746
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
33740
33747
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -33753,23 +33760,23 @@ ${c}
|
|
|
33753
33760
|
});
|
|
33754
33761
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
33755
33762
|
let y2 = v2;
|
|
33756
|
-
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,
|
|
33763
|
+
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, MW = "lg", r[58] === c.cells ? NW = r[59] : (NW = {
|
|
33757
33764
|
lg: c.cells
|
|
33758
|
-
}, r[58] = c.cells, r[59] =
|
|
33765
|
+
}, r[58] = c.cells, r[59] = NW), PW = L, FW = S, R = false;
|
|
33759
33766
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
33760
33767
|
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 ? [
|
|
33761
33768
|
20,
|
|
33762
33769
|
20
|
|
33763
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
33770
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, bW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (xW = (e3) => {
|
|
33764
33771
|
f || l({
|
|
33765
33772
|
...c,
|
|
33766
33773
|
cells: e3
|
|
33767
33774
|
});
|
|
33768
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
33775
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = xW) : xW = r[69], r[70] === g ? Z = r[71] : (Z = g ? {
|
|
33769
33776
|
i: g.i,
|
|
33770
33777
|
w: g.w || 2,
|
|
33771
33778
|
h: g.h || 2
|
|
33772
|
-
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (
|
|
33779
|
+
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (SW = (e3, r2, u2) => {
|
|
33773
33780
|
O.onDragStop(), r2 && l({
|
|
33774
33781
|
...c,
|
|
33775
33782
|
cells: [
|
|
@@ -33777,15 +33784,15 @@ ${c}
|
|
|
33777
33784
|
r2
|
|
33778
33785
|
]
|
|
33779
33786
|
});
|
|
33780
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
33787
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = SW) : SW = r[75], r[76] === O ? (CW = r[77], wW = r[78], TW = r[79]) : (CW = (e3, r2, c2, l2, u2) => {
|
|
33781
33788
|
O.onDragStart(u2);
|
|
33782
|
-
},
|
|
33789
|
+
}, wW = (e3, r2, c2, l2, u2) => {
|
|
33783
33790
|
O.onDragMove(u2);
|
|
33784
|
-
},
|
|
33791
|
+
}, TW = () => {
|
|
33785
33792
|
O.onDragStop();
|
|
33786
|
-
}, r[76] = O, r[77] =
|
|
33793
|
+
}, r[76] = O, r[77] = CW, r[78] = wW, r[79] = TW), EW = _temp3$2, DW = M, OW = M, kW = M, AW = M ? `.${DRAG_HANDLE}` : "noop";
|
|
33787
33794
|
let E2;
|
|
33788
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
33795
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), jW = u.filter(E2).map((r2) => {
|
|
33789
33796
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p = c.cellSide.get(r2.id), m3 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
33790
33797
|
code: r2.code,
|
|
33791
33798
|
mode: d,
|
|
@@ -33815,14 +33822,14 @@ ${c}
|
|
|
33815
33822
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
33816
33823
|
children: m3
|
|
33817
33824
|
}, r2.id);
|
|
33818
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
33819
|
-
} 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],
|
|
33820
|
-
let
|
|
33821
|
-
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] !==
|
|
33822
|
-
breakpoint:
|
|
33823
|
-
layouts:
|
|
33824
|
-
style:
|
|
33825
|
-
cols:
|
|
33825
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = bW, r[31] = xW, r[32] = Z, r[33] = SW, r[34] = CW, r[35] = wW, r[36] = TW, r[37] = EW, r[38] = DW, r[39] = OW, r[40] = kW, r[41] = AW, r[42] = jW, r[43] = MW, r[44] = NW, r[45] = PW, r[46] = FW;
|
|
33826
|
+
} 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], bW = r[30], xW = r[31], Z = r[32], SW = r[33], CW = r[34], wW = r[35], TW = r[36], EW = r[37], DW = r[38], OW = r[39], kW = r[40], AW = r[41], jW = r[42], MW = r[43], NW = r[44], PW = r[45], FW = r[46];
|
|
33827
|
+
let IW;
|
|
33828
|
+
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] !== bW || r[91] !== xW || r[92] !== Z || r[93] !== SW || r[94] !== CW || r[95] !== wW || r[96] !== TW || r[97] !== EW || r[98] !== DW || r[99] !== OW || r[100] !== kW || r[101] !== AW || r[102] !== jW || r[103] !== MW || r[104] !== NW || r[105] !== PW || r[106] !== FW ? (IW = (0, import_jsx_runtime.jsx)(I, {
|
|
33829
|
+
breakpoint: MW,
|
|
33830
|
+
layouts: NW,
|
|
33831
|
+
style: PW,
|
|
33832
|
+
cols: FW,
|
|
33826
33833
|
allowOverlap: R,
|
|
33827
33834
|
className: z,
|
|
33828
33835
|
containerPadding: B,
|
|
@@ -33830,23 +33837,23 @@ ${c}
|
|
|
33830
33837
|
isBounded: W,
|
|
33831
33838
|
compactType: G,
|
|
33832
33839
|
preventCollision: q,
|
|
33833
|
-
rowHeight:
|
|
33834
|
-
onLayoutChange:
|
|
33840
|
+
rowHeight: bW,
|
|
33841
|
+
onLayoutChange: xW,
|
|
33835
33842
|
droppingItem: Z,
|
|
33836
|
-
onDrop:
|
|
33837
|
-
onDragStart:
|
|
33838
|
-
onDrag:
|
|
33839
|
-
onDragStop:
|
|
33840
|
-
onResizeStop:
|
|
33841
|
-
isDraggable:
|
|
33842
|
-
isDroppable:
|
|
33843
|
-
isResizable:
|
|
33844
|
-
draggableHandle:
|
|
33845
|
-
children:
|
|
33846
|
-
}), 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] =
|
|
33847
|
-
let
|
|
33848
|
-
if (r[108] !== u || r[109] !==
|
|
33849
|
-
|
|
33843
|
+
onDrop: SW,
|
|
33844
|
+
onDragStart: CW,
|
|
33845
|
+
onDrag: wW,
|
|
33846
|
+
onDragStop: TW,
|
|
33847
|
+
onResizeStop: EW,
|
|
33848
|
+
isDraggable: DW,
|
|
33849
|
+
isDroppable: OW,
|
|
33850
|
+
isResizable: kW,
|
|
33851
|
+
draggableHandle: AW,
|
|
33852
|
+
children: jW
|
|
33853
|
+
}), 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] = bW, r[91] = xW, r[92] = Z, r[93] = SW, r[94] = CW, r[95] = wW, r[96] = TW, r[97] = EW, r[98] = DW, r[99] = OW, r[100] = kW, r[101] = AW, r[102] = jW, r[103] = MW, r[104] = NW, r[105] = PW, r[106] = FW, r[107] = IW) : IW = r[107];
|
|
33854
|
+
let LW = IW, RW, zW, BW, VW, HW, UW, WW;
|
|
33855
|
+
if (r[108] !== u || r[109] !== LW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
33856
|
+
WW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
33850
33857
|
bb0: {
|
|
33851
33858
|
let e2;
|
|
33852
33859
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -33854,14 +33861,14 @@ ${c}
|
|
|
33854
33861
|
if (f) {
|
|
33855
33862
|
if (c.bordered) {
|
|
33856
33863
|
let e4;
|
|
33857
|
-
r[127] !==
|
|
33864
|
+
r[127] !== LW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
33858
33865
|
className: "flex flex-1 flex-col items-center",
|
|
33859
33866
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
33860
33867
|
style: L,
|
|
33861
33868
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
33862
|
-
children:
|
|
33869
|
+
children: LW
|
|
33863
33870
|
})
|
|
33864
|
-
}), r[127] =
|
|
33871
|
+
}), r[127] = LW, r[128] = L, r[129] = e4) : e4 = r[129], LW = e4;
|
|
33865
33872
|
}
|
|
33866
33873
|
let e3 = m2.filter(_temp4$2), l2;
|
|
33867
33874
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -33873,9 +33880,9 @@ ${c}
|
|
|
33873
33880
|
stale: outputIsStale(e4, false),
|
|
33874
33881
|
isScrollable: false,
|
|
33875
33882
|
hidden: false
|
|
33876
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
33883
|
+
}, e4.id), r[130] = d, r[131] = l2), WW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
33877
33884
|
children: [
|
|
33878
|
-
|
|
33885
|
+
LW,
|
|
33879
33886
|
(0, import_jsx_runtime.jsx)("div", {
|
|
33880
33887
|
className: "hidden",
|
|
33881
33888
|
children: e3.map(l2)
|
|
@@ -33886,31 +33893,31 @@ ${c}
|
|
|
33886
33893
|
}
|
|
33887
33894
|
if (c.bordered) {
|
|
33888
33895
|
let e3;
|
|
33889
|
-
r[132] ===
|
|
33896
|
+
r[132] === LW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
33890
33897
|
className: "h-full overflow-auto",
|
|
33891
|
-
children:
|
|
33892
|
-
}), r[132] =
|
|
33898
|
+
children: LW
|
|
33899
|
+
}), r[132] = LW, r[133] = e3);
|
|
33893
33900
|
let c2;
|
|
33894
33901
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
33895
33902
|
style: L,
|
|
33896
33903
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
33897
33904
|
children: e3
|
|
33898
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
33905
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], LW = c2;
|
|
33899
33906
|
}
|
|
33900
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
33907
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (UW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
33901
33908
|
layout: c,
|
|
33902
33909
|
setLayout: l,
|
|
33903
33910
|
isLocked: v,
|
|
33904
33911
|
setIsLocked: y
|
|
33905
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
33912
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = UW) : UW = r[140];
|
|
33906
33913
|
let g2;
|
|
33907
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
33914
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (VW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = VW, r[142] = g2) : (VW = r[141], g2 = r[142]), r[143] === LW ? HW = r[144] : (HW = (0, import_jsx_runtime.jsx)("div", {
|
|
33908
33915
|
className: g2,
|
|
33909
|
-
children:
|
|
33910
|
-
}), r[143] =
|
|
33916
|
+
children: LW
|
|
33917
|
+
}), r[143] = LW, r[144] = HW), RW = "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") ? (zW = (0, import_jsx_runtime.jsx)("div", {
|
|
33911
33918
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
33912
33919
|
children: "Outputs"
|
|
33913
|
-
}), r[145] =
|
|
33920
|
+
}), r[145] = zW) : zW = r[145];
|
|
33914
33921
|
let b2;
|
|
33915
33922
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
33916
33923
|
draggable: true,
|
|
@@ -33936,34 +33943,34 @@ ${c}
|
|
|
33936
33943
|
stale: outputIsStale(e3, false),
|
|
33937
33944
|
hidden: false
|
|
33938
33945
|
})
|
|
33939
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
33940
|
-
}
|
|
33941
|
-
r[108] = u, r[109] =
|
|
33942
|
-
} else
|
|
33943
|
-
if (
|
|
33944
|
-
let WW;
|
|
33945
|
-
r[150] !== LW || r[151] !== RW || r[152] !== zW ? (WW = (0, import_jsx_runtime.jsxs)("div", {
|
|
33946
|
-
className: LW,
|
|
33947
|
-
children: [
|
|
33948
|
-
RW,
|
|
33949
|
-
zW
|
|
33950
|
-
]
|
|
33951
|
-
}), r[150] = LW, r[151] = RW, r[152] = zW, r[153] = WW) : WW = r[153];
|
|
33946
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], BW = m2.map(b2);
|
|
33947
|
+
}
|
|
33948
|
+
r[108] = u, r[109] = LW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = RW, r[118] = zW, r[119] = BW, r[120] = VW, r[121] = HW, r[122] = UW, r[123] = WW, r[124] = LW;
|
|
33949
|
+
} else RW = r[117], zW = r[118], BW = r[119], VW = r[120], HW = r[121], UW = r[122], WW = r[123], LW = r[124];
|
|
33950
|
+
if (WW !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return WW;
|
|
33952
33951
|
let GW;
|
|
33953
|
-
r[
|
|
33954
|
-
className:
|
|
33952
|
+
r[150] !== RW || r[151] !== zW || r[152] !== BW ? (GW = (0, import_jsx_runtime.jsxs)("div", {
|
|
33953
|
+
className: RW,
|
|
33955
33954
|
children: [
|
|
33956
|
-
|
|
33957
|
-
|
|
33955
|
+
zW,
|
|
33956
|
+
BW
|
|
33958
33957
|
]
|
|
33959
|
-
}), r[
|
|
33958
|
+
}), r[150] = RW, r[151] = zW, r[152] = BW, r[153] = GW) : GW = r[153];
|
|
33960
33959
|
let KW;
|
|
33961
|
-
|
|
33960
|
+
r[154] !== VW || r[155] !== HW || r[156] !== GW ? (KW = (0, import_jsx_runtime.jsxs)("div", {
|
|
33961
|
+
className: VW,
|
|
33962
33962
|
children: [
|
|
33963
33963
|
HW,
|
|
33964
33964
|
GW
|
|
33965
33965
|
]
|
|
33966
|
-
}), r[
|
|
33966
|
+
}), r[154] = VW, r[155] = HW, r[156] = GW, r[157] = KW) : KW = r[157];
|
|
33967
|
+
let qW;
|
|
33968
|
+
return r[158] !== UW || r[159] !== KW ? (qW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
33969
|
+
children: [
|
|
33970
|
+
UW,
|
|
33971
|
+
KW
|
|
33972
|
+
]
|
|
33973
|
+
}), r[158] = UW, r[159] = KW, r[160] = qW) : qW = r[160], qW;
|
|
33967
33974
|
};
|
|
33968
33975
|
var GridCell = (0, import_react.memo)((e) => {
|
|
33969
33976
|
let r = (0, import_compiler_runtime$13.c)(21), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _, stale: v } = e, y;
|
|
@@ -34264,25 +34271,25 @@ ${c}
|
|
|
34264
34271
|
G
|
|
34265
34272
|
]
|
|
34266
34273
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
34267
|
-
let yW;
|
|
34268
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (yW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
34269
|
-
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
34270
|
-
}), r[35] = yW) : yW = r[35];
|
|
34271
34274
|
let bW;
|
|
34272
|
-
r[
|
|
34275
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (bW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
34276
|
+
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
34277
|
+
}), r[35] = bW) : bW = r[35];
|
|
34278
|
+
let xW;
|
|
34279
|
+
r[36] === l ? xW = r[37] : (xW = (0, import_jsx_runtime.jsx)(X, {
|
|
34273
34280
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34274
34281
|
onClick: () => l()
|
|
34275
|
-
}), r[36] = l, r[37] =
|
|
34282
|
+
}), r[36] = l, r[37] = xW);
|
|
34276
34283
|
let Z;
|
|
34277
|
-
return r[38] !== I || r[39] !== q || r[40] !==
|
|
34284
|
+
return r[38] !== I || r[39] !== q || r[40] !== xW || r[41] !== w ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
34278
34285
|
className: w,
|
|
34279
34286
|
children: [
|
|
34280
34287
|
I,
|
|
34281
34288
|
q,
|
|
34282
|
-
|
|
34283
|
-
|
|
34289
|
+
bW,
|
|
34290
|
+
xW
|
|
34284
34291
|
]
|
|
34285
|
-
}), r[38] = I, r[39] = q, r[40] =
|
|
34292
|
+
}), r[38] = I, r[39] = q, r[40] = xW, r[41] = w, r[42] = Z) : Z = r[42], Z;
|
|
34286
34293
|
};
|
|
34287
34294
|
function isSidebarCell(e) {
|
|
34288
34295
|
var _a3;
|
|
@@ -36286,28 +36293,28 @@ ${c}
|
|
|
36286
36293
|
}, [
|
|
36287
36294
|
T,
|
|
36288
36295
|
M
|
|
36289
|
-
]), 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),
|
|
36296
|
+
]), 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), bW = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
36290
36297
|
j
|
|
36291
|
-
]),
|
|
36298
|
+
]), xW = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers: SW, measuringScheduled: CW } = useDroppableMeasuring(bW, {
|
|
36292
36299
|
dragging: w,
|
|
36293
36300
|
dependencies: [
|
|
36294
36301
|
O.x,
|
|
36295
36302
|
O.y
|
|
36296
36303
|
],
|
|
36297
|
-
config:
|
|
36298
|
-
}),
|
|
36304
|
+
config: xW.droppable
|
|
36305
|
+
}), wW = useCachedNode(E, T), TW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36299
36306
|
H
|
|
36300
|
-
]),
|
|
36307
|
+
]), EW = rG(), DW = useInitialRect(wW, xW.draggable.measure);
|
|
36301
36308
|
useLayoutShiftScrollCompensation({
|
|
36302
36309
|
activeNode: T == null ? null : E.get(T),
|
|
36303
|
-
config:
|
|
36304
|
-
initialRect:
|
|
36305
|
-
measure:
|
|
36310
|
+
config: EW.layoutShiftCompensation,
|
|
36311
|
+
initialRect: DW,
|
|
36312
|
+
measure: xW.draggable.measure
|
|
36306
36313
|
});
|
|
36307
|
-
let
|
|
36314
|
+
let OW = useRect(wW, xW.draggable.measure, DW), kW = useRect(wW ? wW.parentElement : null), AW = (0, import_react.useRef)({
|
|
36308
36315
|
activatorEvent: null,
|
|
36309
36316
|
active: null,
|
|
36310
|
-
activeNode:
|
|
36317
|
+
activeNode: wW,
|
|
36311
36318
|
collisionRect: null,
|
|
36312
36319
|
collisions: null,
|
|
36313
36320
|
droppableRects: Z,
|
|
@@ -36318,45 +36325,45 @@ ${c}
|
|
|
36318
36325
|
over: null,
|
|
36319
36326
|
scrollableAncestors: [],
|
|
36320
36327
|
scrollAdjustedTranslate: null
|
|
36321
|
-
}),
|
|
36322
|
-
measure:
|
|
36323
|
-
}),
|
|
36328
|
+
}), jW = j.getNodeFor((_a3 = AW.current.over) == null ? void 0 : _a3.id), MW = useDragOverlayMeasuring({
|
|
36329
|
+
measure: xW.dragOverlay.measure
|
|
36330
|
+
}), NW = MW.nodeRef.current ?? wW, PW = w ? MW.rect ?? OW : null, FW = !!(MW.nodeRef.current && MW.rect), IW = useRectDelta(FW ? null : OW), LW = useWindowRect(NW ? getWindow(NW) : null), RW = useScrollableAncestors(w ? jW ?? wW : null), zW = useRects(RW), BW = applyModifiers(m, {
|
|
36324
36331
|
transform: {
|
|
36325
|
-
x: O.x -
|
|
36326
|
-
y: O.y -
|
|
36332
|
+
x: O.x - IW.x,
|
|
36333
|
+
y: O.y - IW.y,
|
|
36327
36334
|
scaleX: 1,
|
|
36328
36335
|
scaleY: 1
|
|
36329
36336
|
},
|
|
36330
36337
|
activatorEvent: H,
|
|
36331
36338
|
active: L,
|
|
36332
|
-
activeNodeRect:
|
|
36333
|
-
containerNodeRect:
|
|
36334
|
-
draggingNodeRect:
|
|
36335
|
-
over:
|
|
36336
|
-
overlayNodeRect:
|
|
36337
|
-
scrollableAncestors:
|
|
36338
|
-
scrollableAncestorRects:
|
|
36339
|
-
windowRect:
|
|
36340
|
-
}),
|
|
36341
|
-
|
|
36342
|
-
]),
|
|
36339
|
+
activeNodeRect: OW,
|
|
36340
|
+
containerNodeRect: kW,
|
|
36341
|
+
draggingNodeRect: PW,
|
|
36342
|
+
over: AW.current.over,
|
|
36343
|
+
overlayNodeRect: MW.rect,
|
|
36344
|
+
scrollableAncestors: RW,
|
|
36345
|
+
scrollableAncestorRects: zW,
|
|
36346
|
+
windowRect: LW
|
|
36347
|
+
}), VW = TW ? add(TW, O) : null, HW = useScrollOffsets(RW), UW = useScrollOffsetsDelta(HW), WW = useScrollOffsetsDelta(HW, [
|
|
36348
|
+
OW
|
|
36349
|
+
]), GW = add(BW, UW), KW = PW ? getAdjustedRect(PW, BW) : null, qW = L && KW ? f({
|
|
36343
36350
|
active: L,
|
|
36344
|
-
collisionRect:
|
|
36351
|
+
collisionRect: KW,
|
|
36345
36352
|
droppableRects: Z,
|
|
36346
|
-
droppableContainers:
|
|
36347
|
-
pointerCoordinates:
|
|
36348
|
-
}) : null,
|
|
36353
|
+
droppableContainers: bW,
|
|
36354
|
+
pointerCoordinates: VW
|
|
36355
|
+
}) : null, JW = getFirstCollision(qW, "id"), [YW, XW] = (0, import_react.useState)(null), ZW = adjustScale(FW ? BW : add(BW, WW), (YW == null ? void 0 : YW.rect) ?? null, OW), QW = (0, import_react.useRef)(null), $W = (0, import_react.useCallback)((e2, r2) => {
|
|
36349
36356
|
let { sensor: c2, options: l2 } = r2;
|
|
36350
36357
|
if (R.current == null) return;
|
|
36351
36358
|
let u2 = E.get(R.current);
|
|
36352
36359
|
if (!u2) return;
|
|
36353
36360
|
let d2 = e2.nativeEvent;
|
|
36354
|
-
|
|
36361
|
+
QW.current = new c2({
|
|
36355
36362
|
active: R.current,
|
|
36356
36363
|
activeNode: u2,
|
|
36357
36364
|
event: d2,
|
|
36358
36365
|
options: l2,
|
|
36359
|
-
context:
|
|
36366
|
+
context: AW,
|
|
36360
36367
|
onAbort(e3) {
|
|
36361
36368
|
if (!E.get(e3)) return;
|
|
36362
36369
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -36401,7 +36408,7 @@ ${c}
|
|
|
36401
36408
|
}), v({
|
|
36402
36409
|
type: "onDragStart",
|
|
36403
36410
|
event: u3
|
|
36404
|
-
}), B(
|
|
36411
|
+
}), B(QW.current), W(d2);
|
|
36405
36412
|
});
|
|
36406
36413
|
},
|
|
36407
36414
|
onMove(e3) {
|
|
@@ -36415,7 +36422,7 @@ ${c}
|
|
|
36415
36422
|
});
|
|
36416
36423
|
function f2(e3) {
|
|
36417
36424
|
return async function() {
|
|
36418
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
36425
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = AW.current, f3 = null;
|
|
36419
36426
|
if (r3 && u3) {
|
|
36420
36427
|
let { cancelDrop: p2 } = G.current;
|
|
36421
36428
|
f3 = {
|
|
@@ -36429,7 +36436,7 @@ ${c}
|
|
|
36429
36436
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36430
36437
|
_({
|
|
36431
36438
|
type: e3
|
|
36432
|
-
}), S(Status.Uninitialized),
|
|
36439
|
+
}), S(Status.Uninitialized), XW(null), B(null), W(null), QW.current = null;
|
|
36433
36440
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
36434
36441
|
if (f3) {
|
|
36435
36442
|
let e4 = G.current[r4];
|
|
@@ -36443,7 +36450,7 @@ ${c}
|
|
|
36443
36450
|
}
|
|
36444
36451
|
}, [
|
|
36445
36452
|
E
|
|
36446
|
-
]),
|
|
36453
|
+
]), eG = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
36447
36454
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
36448
36455
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
36449
36456
|
let f2 = {
|
|
@@ -36451,26 +36458,26 @@ ${c}
|
|
|
36451
36458
|
};
|
|
36452
36459
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
36453
36460
|
capturedBy: r2.sensor
|
|
36454
|
-
}, R.current = l2,
|
|
36461
|
+
}, R.current = l2, $W(c2, r2));
|
|
36455
36462
|
}, [
|
|
36456
36463
|
E,
|
|
36457
|
-
|
|
36464
|
+
$W
|
|
36458
36465
|
]));
|
|
36459
36466
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
36460
|
-
|
|
36467
|
+
OW && b === Status.Initializing && S(Status.Initialized);
|
|
36461
36468
|
}, [
|
|
36462
|
-
|
|
36469
|
+
OW,
|
|
36463
36470
|
b
|
|
36464
36471
|
]), (0, import_react.useEffect)(() => {
|
|
36465
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
36472
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = AW.current;
|
|
36466
36473
|
if (!r2 || !c2) return;
|
|
36467
36474
|
let d2 = {
|
|
36468
36475
|
active: r2,
|
|
36469
36476
|
activatorEvent: c2,
|
|
36470
36477
|
collisions: l2,
|
|
36471
36478
|
delta: {
|
|
36472
|
-
x:
|
|
36473
|
-
y:
|
|
36479
|
+
x: GW.x,
|
|
36480
|
+
y: GW.y
|
|
36474
36481
|
},
|
|
36475
36482
|
over: u2
|
|
36476
36483
|
};
|
|
@@ -36481,12 +36488,12 @@ ${c}
|
|
|
36481
36488
|
});
|
|
36482
36489
|
});
|
|
36483
36490
|
}, [
|
|
36484
|
-
|
|
36485
|
-
|
|
36491
|
+
GW.x,
|
|
36492
|
+
GW.y
|
|
36486
36493
|
]), (0, import_react.useEffect)(() => {
|
|
36487
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
36494
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = AW.current;
|
|
36488
36495
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
36489
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
36496
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(JW), p2 = f2 && f2.rect.current ? {
|
|
36490
36497
|
id: f2.id,
|
|
36491
36498
|
rect: f2.rect.current,
|
|
36492
36499
|
data: f2.data,
|
|
@@ -36502,127 +36509,127 @@ ${c}
|
|
|
36502
36509
|
over: p2
|
|
36503
36510
|
};
|
|
36504
36511
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36505
|
-
|
|
36512
|
+
XW(p2), d2 == null ? void 0 : d2(m2), v({
|
|
36506
36513
|
type: "onDragOver",
|
|
36507
36514
|
event: m2
|
|
36508
36515
|
});
|
|
36509
36516
|
});
|
|
36510
36517
|
}, [
|
|
36511
|
-
|
|
36518
|
+
JW
|
|
36512
36519
|
]), useIsomorphicLayoutEffect(() => {
|
|
36513
|
-
|
|
36520
|
+
AW.current = {
|
|
36514
36521
|
activatorEvent: H,
|
|
36515
36522
|
active: L,
|
|
36516
|
-
activeNode:
|
|
36517
|
-
collisionRect:
|
|
36518
|
-
collisions:
|
|
36523
|
+
activeNode: wW,
|
|
36524
|
+
collisionRect: KW,
|
|
36525
|
+
collisions: qW,
|
|
36519
36526
|
droppableRects: Z,
|
|
36520
36527
|
draggableNodes: E,
|
|
36521
|
-
draggingNode:
|
|
36522
|
-
draggingNodeRect:
|
|
36528
|
+
draggingNode: NW,
|
|
36529
|
+
draggingNodeRect: PW,
|
|
36523
36530
|
droppableContainers: j,
|
|
36524
|
-
over:
|
|
36525
|
-
scrollableAncestors:
|
|
36526
|
-
scrollAdjustedTranslate:
|
|
36531
|
+
over: YW,
|
|
36532
|
+
scrollableAncestors: RW,
|
|
36533
|
+
scrollAdjustedTranslate: GW
|
|
36527
36534
|
}, I.current = {
|
|
36528
|
-
initial:
|
|
36529
|
-
translated:
|
|
36535
|
+
initial: PW,
|
|
36536
|
+
translated: KW
|
|
36530
36537
|
};
|
|
36531
36538
|
}, [
|
|
36532
36539
|
L,
|
|
36533
|
-
|
|
36540
|
+
wW,
|
|
36541
|
+
qW,
|
|
36534
36542
|
KW,
|
|
36535
|
-
GW,
|
|
36536
36543
|
E,
|
|
36537
|
-
MW,
|
|
36538
36544
|
NW,
|
|
36545
|
+
PW,
|
|
36539
36546
|
Z,
|
|
36540
36547
|
j,
|
|
36541
|
-
|
|
36542
|
-
|
|
36543
|
-
|
|
36548
|
+
YW,
|
|
36549
|
+
RW,
|
|
36550
|
+
GW
|
|
36544
36551
|
]), useAutoScroller({
|
|
36545
|
-
...
|
|
36552
|
+
...EW,
|
|
36546
36553
|
delta: O,
|
|
36547
|
-
draggingRect:
|
|
36548
|
-
pointerCoordinates:
|
|
36549
|
-
scrollableAncestors:
|
|
36550
|
-
scrollableAncestorRects:
|
|
36554
|
+
draggingRect: KW,
|
|
36555
|
+
pointerCoordinates: VW,
|
|
36556
|
+
scrollableAncestors: RW,
|
|
36557
|
+
scrollableAncestorRects: zW
|
|
36551
36558
|
});
|
|
36552
|
-
let
|
|
36559
|
+
let tG = (0, import_react.useMemo)(() => ({
|
|
36553
36560
|
active: L,
|
|
36554
|
-
activeNode:
|
|
36555
|
-
activeNodeRect:
|
|
36561
|
+
activeNode: wW,
|
|
36562
|
+
activeNodeRect: OW,
|
|
36556
36563
|
activatorEvent: H,
|
|
36557
|
-
collisions:
|
|
36558
|
-
containerNodeRect:
|
|
36559
|
-
dragOverlay:
|
|
36564
|
+
collisions: qW,
|
|
36565
|
+
containerNodeRect: kW,
|
|
36566
|
+
dragOverlay: MW,
|
|
36560
36567
|
draggableNodes: E,
|
|
36561
36568
|
droppableContainers: j,
|
|
36562
36569
|
droppableRects: Z,
|
|
36563
|
-
over:
|
|
36564
|
-
measureDroppableContainers:
|
|
36565
|
-
scrollableAncestors:
|
|
36566
|
-
scrollableAncestorRects:
|
|
36567
|
-
measuringConfiguration:
|
|
36568
|
-
measuringScheduled:
|
|
36569
|
-
windowRect:
|
|
36570
|
+
over: YW,
|
|
36571
|
+
measureDroppableContainers: SW,
|
|
36572
|
+
scrollableAncestors: RW,
|
|
36573
|
+
scrollableAncestorRects: zW,
|
|
36574
|
+
measuringConfiguration: xW,
|
|
36575
|
+
measuringScheduled: CW,
|
|
36576
|
+
windowRect: LW
|
|
36570
36577
|
}), [
|
|
36571
36578
|
L,
|
|
36572
|
-
|
|
36573
|
-
DW,
|
|
36574
|
-
H,
|
|
36575
|
-
KW,
|
|
36579
|
+
wW,
|
|
36576
36580
|
OW,
|
|
36577
|
-
|
|
36581
|
+
H,
|
|
36582
|
+
qW,
|
|
36583
|
+
kW,
|
|
36584
|
+
MW,
|
|
36578
36585
|
E,
|
|
36579
36586
|
j,
|
|
36580
36587
|
Z,
|
|
36581
|
-
|
|
36582
|
-
xW,
|
|
36583
|
-
LW,
|
|
36584
|
-
RW,
|
|
36585
|
-
bW,
|
|
36588
|
+
YW,
|
|
36586
36589
|
SW,
|
|
36587
|
-
|
|
36588
|
-
|
|
36590
|
+
RW,
|
|
36591
|
+
zW,
|
|
36592
|
+
xW,
|
|
36593
|
+
CW,
|
|
36594
|
+
LW
|
|
36595
|
+
]), nG = (0, import_react.useMemo)(() => ({
|
|
36589
36596
|
activatorEvent: H,
|
|
36590
|
-
activators:
|
|
36597
|
+
activators: eG,
|
|
36591
36598
|
active: L,
|
|
36592
|
-
activeNodeRect:
|
|
36599
|
+
activeNodeRect: OW,
|
|
36593
36600
|
ariaDescribedById: {
|
|
36594
36601
|
draggable: q
|
|
36595
36602
|
},
|
|
36596
36603
|
dispatch: _,
|
|
36597
36604
|
draggableNodes: E,
|
|
36598
|
-
over:
|
|
36599
|
-
measureDroppableContainers:
|
|
36605
|
+
over: YW,
|
|
36606
|
+
measureDroppableContainers: SW
|
|
36600
36607
|
}), [
|
|
36601
36608
|
H,
|
|
36602
|
-
|
|
36609
|
+
eG,
|
|
36603
36610
|
L,
|
|
36604
|
-
|
|
36611
|
+
OW,
|
|
36605
36612
|
_,
|
|
36606
36613
|
q,
|
|
36607
36614
|
E,
|
|
36608
|
-
|
|
36609
|
-
|
|
36615
|
+
YW,
|
|
36616
|
+
SW
|
|
36610
36617
|
]);
|
|
36611
36618
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
36612
36619
|
value: y
|
|
36613
36620
|
}, import_react.createElement(InternalContext.Provider, {
|
|
36614
|
-
value:
|
|
36621
|
+
value: nG
|
|
36615
36622
|
}, import_react.createElement(PublicContext.Provider, {
|
|
36616
|
-
value:
|
|
36623
|
+
value: tG
|
|
36617
36624
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
36618
|
-
value:
|
|
36625
|
+
value: ZW
|
|
36619
36626
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
36620
36627
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
36621
36628
|
})), import_react.createElement(Accessibility, {
|
|
36622
36629
|
...c,
|
|
36623
36630
|
hiddenTextDescribedById: q
|
|
36624
36631
|
}));
|
|
36625
|
-
function
|
|
36632
|
+
function rG() {
|
|
36626
36633
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
36627
36634
|
return typeof l == "object" ? {
|
|
36628
36635
|
...l,
|
|
@@ -37150,7 +37157,7 @@ ${c}
|
|
|
37150
37157
|
updateMeasurementsFor: I,
|
|
37151
37158
|
...m
|
|
37152
37159
|
}
|
|
37153
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
37160
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: bW, listeners: xW, isDragging: Z, over: SW, setActivatorNodeRef: CW, transform: wW } = useDraggable({
|
|
37154
37161
|
id: f,
|
|
37155
37162
|
data: M,
|
|
37156
37163
|
attributes: {
|
|
@@ -37158,60 +37165,60 @@ ${c}
|
|
|
37158
37165
|
...c
|
|
37159
37166
|
},
|
|
37160
37167
|
disabled: O.draggable
|
|
37161
|
-
}),
|
|
37168
|
+
}), TW = useCombinedRefs(B, bW), EW = !!H, DW = EW && !b && isValidIndex(v) && isValidIndex(w), OW = !T && Z, kW = DW ? (OW && DW ? wW : null) ?? (p ?? E)({
|
|
37162
37169
|
rects: S,
|
|
37163
37170
|
activeNodeRect: G,
|
|
37164
37171
|
activeIndex: v,
|
|
37165
37172
|
overIndex: w,
|
|
37166
37173
|
index: j
|
|
37167
|
-
}) : null,
|
|
37174
|
+
}) : null, AW = isValidIndex(v) && isValidIndex(w) ? d({
|
|
37168
37175
|
id: f,
|
|
37169
37176
|
items: g,
|
|
37170
37177
|
activeIndex: v,
|
|
37171
37178
|
overIndex: w
|
|
37172
|
-
}) : j,
|
|
37173
|
-
activeId:
|
|
37179
|
+
}) : j, jW = H == null ? void 0 : H.id, MW = (0, import_react.useRef)({
|
|
37180
|
+
activeId: jW,
|
|
37174
37181
|
items: g,
|
|
37175
|
-
newIndex:
|
|
37182
|
+
newIndex: AW,
|
|
37176
37183
|
containerId: _
|
|
37177
|
-
}),
|
|
37184
|
+
}), NW = g !== MW.current.items, PW = r({
|
|
37178
37185
|
active: H,
|
|
37179
37186
|
containerId: _,
|
|
37180
37187
|
isDragging: Z,
|
|
37181
|
-
isSorting:
|
|
37188
|
+
isSorting: EW,
|
|
37182
37189
|
id: f,
|
|
37183
37190
|
index: j,
|
|
37184
37191
|
items: g,
|
|
37185
|
-
newIndex:
|
|
37186
|
-
previousItems:
|
|
37187
|
-
previousContainerId:
|
|
37192
|
+
newIndex: MW.current.newIndex,
|
|
37193
|
+
previousItems: MW.current.items,
|
|
37194
|
+
previousContainerId: MW.current.containerId,
|
|
37188
37195
|
transition: h,
|
|
37189
|
-
wasDragging:
|
|
37190
|
-
}),
|
|
37191
|
-
disabled: !
|
|
37196
|
+
wasDragging: MW.current.activeId != null
|
|
37197
|
+
}), FW = useDerivedTransform({
|
|
37198
|
+
disabled: !PW,
|
|
37192
37199
|
index: j,
|
|
37193
37200
|
node: R,
|
|
37194
37201
|
rect: L
|
|
37195
37202
|
});
|
|
37196
37203
|
return (0, import_react.useEffect)(() => {
|
|
37197
|
-
|
|
37204
|
+
EW && MW.current.newIndex !== AW && (MW.current.newIndex = AW), _ !== MW.current.containerId && (MW.current.containerId = _), g !== MW.current.items && (MW.current.items = g);
|
|
37198
37205
|
}, [
|
|
37199
|
-
|
|
37200
|
-
|
|
37206
|
+
EW,
|
|
37207
|
+
AW,
|
|
37201
37208
|
_,
|
|
37202
37209
|
g
|
|
37203
37210
|
]), (0, import_react.useEffect)(() => {
|
|
37204
|
-
if (
|
|
37205
|
-
if (
|
|
37206
|
-
|
|
37211
|
+
if (jW === MW.current.activeId) return;
|
|
37212
|
+
if (jW != null && MW.current.activeId == null) {
|
|
37213
|
+
MW.current.activeId = jW;
|
|
37207
37214
|
return;
|
|
37208
37215
|
}
|
|
37209
37216
|
let e2 = setTimeout(() => {
|
|
37210
|
-
|
|
37217
|
+
MW.current.activeId = jW;
|
|
37211
37218
|
}, 50);
|
|
37212
37219
|
return () => clearTimeout(e2);
|
|
37213
37220
|
}, [
|
|
37214
|
-
|
|
37221
|
+
jW
|
|
37215
37222
|
]), {
|
|
37216
37223
|
active: H,
|
|
37217
37224
|
activeIndex: v,
|
|
@@ -37219,25 +37226,25 @@ ${c}
|
|
|
37219
37226
|
data: M,
|
|
37220
37227
|
rect: L,
|
|
37221
37228
|
index: j,
|
|
37222
|
-
newIndex:
|
|
37229
|
+
newIndex: AW,
|
|
37223
37230
|
items: g,
|
|
37224
37231
|
isOver: z,
|
|
37225
|
-
isSorting:
|
|
37232
|
+
isSorting: EW,
|
|
37226
37233
|
isDragging: Z,
|
|
37227
|
-
listeners:
|
|
37234
|
+
listeners: xW,
|
|
37228
37235
|
node: R,
|
|
37229
37236
|
overIndex: w,
|
|
37230
|
-
over:
|
|
37231
|
-
setNodeRef:
|
|
37232
|
-
setActivatorNodeRef:
|
|
37237
|
+
over: SW,
|
|
37238
|
+
setNodeRef: TW,
|
|
37239
|
+
setActivatorNodeRef: CW,
|
|
37233
37240
|
setDroppableNodeRef: B,
|
|
37234
|
-
setDraggableNodeRef:
|
|
37235
|
-
transform:
|
|
37236
|
-
transition:
|
|
37241
|
+
setDraggableNodeRef: bW,
|
|
37242
|
+
transform: FW ?? kW,
|
|
37243
|
+
transition: IW()
|
|
37237
37244
|
};
|
|
37238
|
-
function
|
|
37239
|
-
if (
|
|
37240
|
-
if (!(
|
|
37245
|
+
function IW() {
|
|
37246
|
+
if (FW || NW && MW.current.newIndex === j) return disabledTransition;
|
|
37247
|
+
if (!(OW && !isKeyboardEvent(W) || !h) && (EW || PW)) return CSS$1.Transition.toString({
|
|
37241
37248
|
...h,
|
|
37242
37249
|
property: transitionProperty
|
|
37243
37250
|
});
|
|
@@ -37537,13 +37544,13 @@ ${c}
|
|
|
37537
37544
|
G
|
|
37538
37545
|
]
|
|
37539
37546
|
}), r[35] = c.id, r[36] = h, r[37] = y, r[38] = b, r[39] = I, r[40] = z, r[41] = B, r[42] = H, r[43] = W, r[44] = G, r[45] = q) : q = r[45];
|
|
37540
|
-
let
|
|
37541
|
-
if (!v && !g) return
|
|
37542
|
-
let
|
|
37543
|
-
r[46] ===
|
|
37547
|
+
let bW = q;
|
|
37548
|
+
if (!v && !g) return bW;
|
|
37549
|
+
let xW;
|
|
37550
|
+
r[46] === bW ? xW = r[47] : (xW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
37544
37551
|
asChild: true,
|
|
37545
|
-
children:
|
|
37546
|
-
}), r[46] =
|
|
37552
|
+
children: bW
|
|
37553
|
+
}), r[46] = bW, r[47] = xW);
|
|
37547
37554
|
let Z;
|
|
37548
37555
|
r[48] === v ? Z = r[49] : (Z = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37549
37556
|
onSelect: v,
|
|
@@ -37554,10 +37561,10 @@ ${c}
|
|
|
37554
37561
|
"Add cell"
|
|
37555
37562
|
]
|
|
37556
37563
|
}), r[48] = v, r[49] = Z);
|
|
37557
|
-
let xW;
|
|
37558
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = xW) : xW = r[50];
|
|
37559
37564
|
let SW;
|
|
37560
|
-
r[
|
|
37565
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (SW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = SW) : SW = r[50];
|
|
37566
|
+
let CW;
|
|
37567
|
+
r[51] === g ? CW = r[52] : (CW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37561
37568
|
variant: "danger",
|
|
37562
37569
|
onSelect: g,
|
|
37563
37570
|
children: [
|
|
@@ -37566,22 +37573,22 @@ ${c}
|
|
|
37566
37573
|
}),
|
|
37567
37574
|
"Delete cell"
|
|
37568
37575
|
]
|
|
37569
|
-
}), r[51] = g, r[52] =
|
|
37570
|
-
let
|
|
37571
|
-
r[53] !== Z || r[54] !==
|
|
37576
|
+
}), r[51] = g, r[52] = CW);
|
|
37577
|
+
let wW;
|
|
37578
|
+
r[53] !== Z || r[54] !== CW ? (wW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
37572
37579
|
children: [
|
|
37573
37580
|
Z,
|
|
37574
|
-
|
|
37575
|
-
|
|
37581
|
+
SW,
|
|
37582
|
+
CW
|
|
37576
37583
|
]
|
|
37577
|
-
}), r[53] = Z, r[54] =
|
|
37578
|
-
let
|
|
37579
|
-
return r[56] !==
|
|
37584
|
+
}), r[53] = Z, r[54] = CW, r[55] = wW) : wW = r[55];
|
|
37585
|
+
let TW;
|
|
37586
|
+
return r[56] !== xW || r[57] !== wW ? (TW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
37580
37587
|
children: [
|
|
37581
|
-
|
|
37582
|
-
|
|
37588
|
+
xW,
|
|
37589
|
+
wW
|
|
37583
37590
|
]
|
|
37584
|
-
}), r[56] =
|
|
37591
|
+
}), r[56] = xW, r[57] = wW, r[58] = TW) : TW = r[58], TW;
|
|
37585
37592
|
}, InsertCellLine = (e) => {
|
|
37586
37593
|
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;
|
|
37587
37594
|
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);
|
|
@@ -37635,10 +37642,10 @@ ${c}
|
|
|
37635
37642
|
...B,
|
|
37636
37643
|
...h
|
|
37637
37644
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
37638
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
37639
|
-
r[25] !== l || r[26] !==
|
|
37640
|
-
let
|
|
37641
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
37645
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", bW = w && !T && "opacity-35", xW = T && "opacity-95 shadow-lg", Z;
|
|
37646
|
+
r[25] !== l || r[26] !== bW || r[27] !== xW || r[28] !== q ? (Z = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, bW, xW, l), r[25] = l, r[26] = bW, r[27] = xW, r[28] = q, r[29] = Z) : Z = r[29];
|
|
37647
|
+
let SW;
|
|
37648
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (SW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
37642
37649
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
37643
37650
|
style: {
|
|
37644
37651
|
transform: `scale(${I})`,
|
|
@@ -37654,14 +37661,14 @@ ${c}
|
|
|
37654
37661
|
output: c.output,
|
|
37655
37662
|
stale: outputIsStale(c, false)
|
|
37656
37663
|
})
|
|
37657
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
37658
|
-
let
|
|
37659
|
-
r[37] === z ?
|
|
37664
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = SW) : SW = r[36];
|
|
37665
|
+
let CW;
|
|
37666
|
+
r[37] === z ? CW = r[38] : (CW = z && (0, import_jsx_runtime.jsx)("div", {
|
|
37660
37667
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
37661
37668
|
"aria-hidden": true
|
|
37662
|
-
}), r[37] = z, r[38] =
|
|
37663
|
-
let
|
|
37664
|
-
r[39] !== z || r[40] !== R ? (
|
|
37669
|
+
}), r[37] = z, r[38] = CW);
|
|
37670
|
+
let wW;
|
|
37671
|
+
r[39] !== z || r[40] !== R ? (wW = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
37665
37672
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
37666
37673
|
className: "text-xs opacity-80",
|
|
37667
37674
|
children: R.description
|
|
@@ -37673,19 +37680,19 @@ ${c}
|
|
|
37673
37680
|
className: "h-3.5 w-3.5"
|
|
37674
37681
|
})
|
|
37675
37682
|
})
|
|
37676
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
37677
|
-
let
|
|
37678
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !==
|
|
37683
|
+
}), r[39] = z, r[40] = R, r[41] = wW) : wW = r[41];
|
|
37684
|
+
let TW;
|
|
37685
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !== SW || r[47] !== CW || r[48] !== wW ? (TW = (0, import_jsx_runtime.jsxs)("div", {
|
|
37679
37686
|
ref: f,
|
|
37680
37687
|
className: Z,
|
|
37681
37688
|
style: W,
|
|
37682
37689
|
...d,
|
|
37683
37690
|
children: [
|
|
37684
|
-
xW,
|
|
37685
37691
|
SW,
|
|
37686
|
-
CW
|
|
37692
|
+
CW,
|
|
37693
|
+
wW
|
|
37687
37694
|
]
|
|
37688
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] =
|
|
37695
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] = SW, r[47] = CW, r[48] = wW, r[49] = TW) : TW = r[49], TW;
|
|
37689
37696
|
}, MiniCodePreview = (e) => {
|
|
37690
37697
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
37691
37698
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -37725,7 +37732,7 @@ ${c}
|
|
|
37725
37732
|
function _temp2$2(e) {
|
|
37726
37733
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
37727
37734
|
}
|
|
37728
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
37735
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-CD1M60a6.js"));
|
|
37729
37736
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
37730
37737
|
var _a3;
|
|
37731
37738
|
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), [
|
|
@@ -38103,7 +38110,7 @@ ${c}
|
|
|
38103
38110
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
38104
38111
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
38105
38112
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
38106
|
-
let H, W, G, q,
|
|
38113
|
+
let H, W, G, q, bW, Z, SW, CW, wW, TW;
|
|
38107
38114
|
if (r[3] !== T || r[4] !== M || r[5] !== I || r[6] !== L || r[7] !== _ || r[8] !== b || r[9] !== d || r[10] !== z || r[11] !== O || r[12] !== j || r[13] !== E || r[14] !== R || r[15] !== f || r[16] !== u || r[17] !== y || r[18] !== m || r[19] !== l) {
|
|
38108
38115
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
38109
38116
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -38149,11 +38156,11 @@ ${c}
|
|
|
38149
38156
|
})
|
|
38150
38157
|
})
|
|
38151
38158
|
]
|
|
38152
|
-
}), 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",
|
|
38153
|
-
let
|
|
38154
|
-
r[40] !== M || r[41] !==
|
|
38159
|
+
}), 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", bW = c, Z = R, SW = 0;
|
|
38160
|
+
let xW = y && "marimo-output-stale", EW2 = L ? "p-5" : "p-3";
|
|
38161
|
+
r[40] !== M || r[41] !== xW || r[42] !== EW2 ? (CW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", xW, EW2, M), r[40] = M, r[41] = xW, r[42] = EW2, r[43] = CW) : CW = r[43], r[44] === d ? wW = r[45] : (wW = d ? {
|
|
38155
38162
|
maxHeight: "none"
|
|
38156
|
-
} : void 0, r[44] = d, r[45] =
|
|
38163
|
+
} : void 0, r[44] = d, r[45] = wW), TW = e2.map((e3, r2) => {
|
|
38157
38164
|
if (e3.channel === "pdb") return null;
|
|
38158
38165
|
if (e3.channel === "stdin") {
|
|
38159
38166
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -38182,36 +38189,36 @@ ${c}
|
|
|
38182
38189
|
wrapText: l
|
|
38183
38190
|
})
|
|
38184
38191
|
}, r2);
|
|
38185
|
-
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] =
|
|
38186
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
38187
|
-
let
|
|
38188
|
-
r[46] !== T || r[47] !== S ? (
|
|
38192
|
+
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = bW, r[25] = Z, r[26] = SW, r[27] = CW, r[28] = wW, r[29] = TW;
|
|
38193
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], bW = r[24], Z = r[25], SW = r[26], CW = r[27], wW = r[28], TW = r[29];
|
|
38194
|
+
let EW;
|
|
38195
|
+
r[46] !== T || r[47] !== S ? (EW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
38189
38196
|
value: S,
|
|
38190
38197
|
cellId: T,
|
|
38191
38198
|
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"
|
|
38192
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
38193
|
-
let
|
|
38194
|
-
r[49] !==
|
|
38199
|
+
}), r[46] = T, r[47] = S, r[48] = EW) : EW = r[48];
|
|
38200
|
+
let DW;
|
|
38201
|
+
r[49] !== EW || r[50] !== G || r[51] !== q || r[52] !== bW || r[53] !== Z || r[54] !== SW || r[55] !== CW || r[56] !== wW || r[57] !== TW ? (DW = (0, import_jsx_runtime.jsxs)("div", {
|
|
38195
38202
|
title: G,
|
|
38196
38203
|
"data-testid": q,
|
|
38197
|
-
ref:
|
|
38204
|
+
ref: bW,
|
|
38198
38205
|
...Z,
|
|
38199
|
-
tabIndex:
|
|
38200
|
-
className:
|
|
38201
|
-
style:
|
|
38206
|
+
tabIndex: SW,
|
|
38207
|
+
className: CW,
|
|
38208
|
+
style: wW,
|
|
38202
38209
|
children: [
|
|
38203
|
-
|
|
38204
|
-
|
|
38210
|
+
TW,
|
|
38211
|
+
EW
|
|
38205
38212
|
]
|
|
38206
|
-
}), r[49] =
|
|
38207
|
-
let
|
|
38208
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
38213
|
+
}), r[49] = EW, r[50] = G, r[51] = q, r[52] = bW, r[53] = Z, r[54] = SW, r[55] = CW, r[56] = wW, r[57] = TW, r[58] = DW) : DW = r[58];
|
|
38214
|
+
let OW;
|
|
38215
|
+
return r[59] !== H || r[60] !== W || r[61] !== DW ? (OW = (0, import_jsx_runtime.jsxs)("div", {
|
|
38209
38216
|
className: H,
|
|
38210
38217
|
children: [
|
|
38211
38218
|
W,
|
|
38212
|
-
|
|
38219
|
+
DW
|
|
38213
38220
|
]
|
|
38214
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
38221
|
+
}), r[59] = H, r[60] = W, r[61] = DW, r[62] = OW) : OW = r[62], OW;
|
|
38215
38222
|
}, StdInput = (e) => {
|
|
38216
38223
|
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;
|
|
38217
38224
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -38695,23 +38702,23 @@ ${c}
|
|
|
38695
38702
|
if ((h || _ || m || W) && !G) return null;
|
|
38696
38703
|
let q;
|
|
38697
38704
|
r[44] !== d || r[45] !== T ? (q = cellDomProps(d, T), r[44] = d, r[45] = T, r[46] = q) : q = r[46];
|
|
38698
|
-
let
|
|
38699
|
-
r[47] !== d || r[48] !== R || r[49] !== c || r[50] !== I || r[51] !==
|
|
38700
|
-
allowExpand:
|
|
38705
|
+
let bW = w === "edit", xW;
|
|
38706
|
+
r[47] !== d || r[48] !== R || r[49] !== c || r[50] !== I || r[51] !== bW ? (xW = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
38707
|
+
allowExpand: bW,
|
|
38701
38708
|
output: c,
|
|
38702
38709
|
className: CSSClasses.outputArea,
|
|
38703
38710
|
cellId: d,
|
|
38704
38711
|
stale: I,
|
|
38705
38712
|
loading: R
|
|
38706
|
-
}), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] =
|
|
38713
|
+
}), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] = bW, r[52] = xW) : xW = r[52];
|
|
38707
38714
|
let Z;
|
|
38708
|
-
return r[53] !== H || r[54] !== q || r[55] !==
|
|
38715
|
+
return r[53] !== H || r[54] !== q || r[55] !== xW ? (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
38709
38716
|
tabIndex: -1,
|
|
38710
38717
|
ref: j,
|
|
38711
38718
|
className: H,
|
|
38712
38719
|
...q,
|
|
38713
|
-
children:
|
|
38714
|
-
}), r[53] = H, r[54] = q, r[55] =
|
|
38720
|
+
children: xW
|
|
38721
|
+
}), r[53] = H, r[54] = q, r[55] = xW, r[56] = Z) : Z = r[56], Z;
|
|
38715
38722
|
});
|
|
38716
38723
|
VerticalCell.displayName = "VerticalCell";
|
|
38717
38724
|
const VerticalLayoutPlugin = {
|