@marimo-team/islands 0.23.14-dev30 → 0.23.14-dev32
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-CAkgOEA5.js → code-visibility-BUGZuhE4.js} +1 -1
- package/dist/main.js +951 -953
- package/dist/{reveal-component-x6IwgqPf.js → reveal-component-BFbxRhIh.js} +1 -1
- package/package.json +1 -1
- package/src/components/data-table/charts/__tests__/altair-generator.test.ts +24 -0
- package/src/components/data-table/charts/chart-spec/altair-generator.ts +4 -1
- package/src/components/data-table/charts/charts.tsx +2 -3
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-BUGZuhE4.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";
|
|
@@ -48,7 +48,7 @@ import { i as debounce_default, r as KnownQueryParams, t as CSSClasses } from ".
|
|
|
48
48
|
import { D as useEvent_default, E as dequal, S as atom, _ as Provider, a as autoInstantiateAtom, d as AppConfigSchema, g as isIslands, l as useResolvedMarimoConfig, n as useTheme, p as store, s as localeAtom, v as useAtom, y as useAtomValue } from "./useTheme-yGsGEk82.js";
|
|
49
49
|
import { $ as EditorView } from "./dist-U4F-tbMs.js";
|
|
50
50
|
import { t as invariant } from "./invariant-wRzNXIsJ.js";
|
|
51
|
-
import { l as clamp, o as arrayShallowEquals, t as Arrays } from "./arrays-sEtDRoG4.js";
|
|
51
|
+
import { c as uniqueBy, l as clamp, o as arrayShallowEquals, t as Arrays } from "./arrays-sEtDRoG4.js";
|
|
52
52
|
import { n as once } from "./once-DPuqGUeo.js";
|
|
53
53
|
import "./main-Tj_-QTyF.js";
|
|
54
54
|
import { f as sql } from "./dist-CcWX6tmx.js";
|
|
@@ -6997,33 +6997,33 @@ let __tla = Promise.all([
|
|
|
6997
6997
|
}), B = C({
|
|
6998
6998
|
height: 0,
|
|
6999
6999
|
width: 0
|
|
7000
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
7000
|
+
}), H = U(), W = U(), G = C(0), q = C(null), pW = C({
|
|
7001
7001
|
column: 0,
|
|
7002
7002
|
row: 0
|
|
7003
|
-
}),
|
|
7004
|
-
Y(x(b, $(
|
|
7005
|
-
D(
|
|
7006
|
-
}), Y(x(ut(b,
|
|
7007
|
-
D(
|
|
7003
|
+
}), mW = U(), Z = U(), hW = C(false), gW = C(0), _W = C(true), vW = C(false), yW = C(false);
|
|
7004
|
+
Y(x(b, $(gW), P(([e2, r2]) => !!r2)), () => {
|
|
7005
|
+
D(_W, false);
|
|
7006
|
+
}), Y(x(ut(b, _W, B, z, gW, vW), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7007
|
+
D(vW, 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(_W, 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(pW, e2.gap), e2.scrollTop > 0 && (D(hW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7017
|
+
D(hW, 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(pW, (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
|
+
}))), mW), F(x(ut(V(I), l, V(pW, Or), V(B, xe), V(z, xe), V(q), V(L), V(hW), V(_W), V(gW)), 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, pW), 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 bW = C(false);
|
|
7053
|
+
F(x(h, $(bW), k(([e2, r2]) => r2 || e2 !== 0)), bW);
|
|
7054
|
+
let xW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(bW), 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())), SW = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), CW = bt(x(V(R), $(hW), 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(CW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, pW), 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 wW = 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: pW,
|
|
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: yW,
|
|
7102
|
+
initialTopMostItemIndex: gW,
|
|
7103
|
+
totalListHeight: wW,
|
|
7104
7104
|
...v,
|
|
7105
|
-
endReached:
|
|
7105
|
+
endReached: xW,
|
|
7106
7106
|
propsReady: S,
|
|
7107
|
-
rangeChanged:
|
|
7108
|
-
startReached:
|
|
7109
|
-
stateChanged:
|
|
7110
|
-
stateRestoreInProgress:
|
|
7107
|
+
rangeChanged: CW,
|
|
7108
|
+
startReached: SW,
|
|
7109
|
+
stateChanged: mW,
|
|
7110
|
+
stateRestoreInProgress: hW,
|
|
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 pW = q, mW;
|
|
7389
7389
|
if (r[13] !== G.bulkActions) {
|
|
7390
|
-
if (
|
|
7390
|
+
if (mW = G.bulkActions.map(_temp$26), mW.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], mW.push(e2);
|
|
7395
7395
|
}
|
|
7396
|
-
r[13] = G.bulkActions, r[14] =
|
|
7397
|
-
} else
|
|
7396
|
+
r[13] = G.bulkActions, r[14] = mW;
|
|
7397
|
+
} else mW = 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 hW = Z, gW;
|
|
7403
|
+
r[19] !== mW || r[20] !== G || r[21] !== hW || r[22] !== w || r[23] !== B || r[24] !== H ? (gW = () => {
|
|
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 && mW,
|
|
7416
|
+
hW(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 = hW(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
|
+
mW,
|
|
7442
7442
|
e2
|
|
7443
7443
|
]
|
|
7444
7444
|
});
|
|
7445
|
-
}, r[19] =
|
|
7446
|
-
let
|
|
7447
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7445
|
+
}, r[19] = mW, r[20] = G, r[21] = hW, r[22] = w, r[23] = B, r[24] = H, r[25] = gW) : gW = r[25];
|
|
7446
|
+
let _W = gW, vW;
|
|
7447
|
+
r[26] !== G.labelOf || r[27] !== I ? (vW = (e2) => {
|
|
7448
7448
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7449
7449
|
e2
|
|
7450
7450
|
];
|
|
@@ -7455,46 +7455,46 @@ let __tla = Promise.all([
|
|
|
7455
7455
|
items: r2.map(G.labelOf),
|
|
7456
7456
|
max: 3
|
|
7457
7457
|
});
|
|
7458
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7459
|
-
let
|
|
7460
|
-
r[29] === G ?
|
|
7461
|
-
let
|
|
7462
|
-
r[31] !== b || r[32] !== R ? (
|
|
7458
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = vW) : vW = r[28];
|
|
7459
|
+
let yW = vW, bW = e["data-testid"], xW;
|
|
7460
|
+
r[29] === G ? xW = r[30] : (xW = (e2) => G.labelOf(e2), r[29] = G, r[30] = xW);
|
|
7461
|
+
let SW = M ? yW : void 0, CW;
|
|
7462
|
+
r[31] !== b || r[32] !== R ? (CW = 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] = CW) : CW = r[33];
|
|
7465
|
+
let wW = G.searchQuery, TW = G.setSearchQuery, EW = G.open, DW = G.setOpen, OW;
|
|
7466
|
+
r[34] === z ? OW = r[35] : (OW = renderSlot(z), r[34] = z, r[35] = OW);
|
|
7467
|
+
let kW;
|
|
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] !== bW || r[44] !== xW || r[45] !== SW || r[46] !== CW || r[47] !== OW ? (kW = {
|
|
7469
7469
|
"data-slot": "select-root",
|
|
7470
|
-
"data-testid":
|
|
7471
|
-
displayValue:
|
|
7472
|
-
renderValue:
|
|
7470
|
+
"data-testid": bW,
|
|
7471
|
+
displayValue: xW,
|
|
7472
|
+
renderValue: SW,
|
|
7473
7473
|
placeholder: I,
|
|
7474
|
-
className:
|
|
7474
|
+
className: CW,
|
|
7475
7475
|
shouldFilter: false,
|
|
7476
|
-
search:
|
|
7477
|
-
onSearchChange:
|
|
7478
|
-
open:
|
|
7479
|
-
onOpenChange:
|
|
7480
|
-
emptyState:
|
|
7476
|
+
search: wW,
|
|
7477
|
+
onSearchChange: TW,
|
|
7478
|
+
open: EW,
|
|
7479
|
+
onOpenChange: DW,
|
|
7480
|
+
emptyState: OW,
|
|
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] = bW, r[44] = xW, r[45] = SW, r[46] = CW, r[47] = OW, r[48] = kW) : kW = r[48];
|
|
7484
|
+
let AW = kW, jW;
|
|
7485
|
+
return r[49] !== AW || r[50] !== pW || r[51] !== d || r[52] !== _W || r[53] !== l ? (jW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7486
|
+
...AW,
|
|
7487
7487
|
multiple: true,
|
|
7488
7488
|
value: l,
|
|
7489
|
-
onValueChange:
|
|
7490
|
-
children:
|
|
7489
|
+
onValueChange: pW,
|
|
7490
|
+
children: _W()
|
|
7491
7491
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7492
|
-
...
|
|
7492
|
+
...AW,
|
|
7493
7493
|
multiple: false,
|
|
7494
7494
|
value: l,
|
|
7495
|
-
onValueChange:
|
|
7496
|
-
children:
|
|
7497
|
-
}), r[49] =
|
|
7495
|
+
onValueChange: pW,
|
|
7496
|
+
children: _W()
|
|
7497
|
+
}), r[49] = AW, r[50] = pW, r[51] = d, r[52] = _W, r[53] = l, r[54] = jW) : jW = r[54], jW;
|
|
7498
7498
|
}
|
|
7499
7499
|
function _temp$26(e) {
|
|
7500
7500
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -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)) : pW(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)) && CW(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(vW(), 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, []) : [])), pW = (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 && _W(e2);
|
|
9806
|
+
}, mW = (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) ? mW(f2, d2, c2) : pW(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) ? mW(e2, y2, m2) : pW(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
|
+
}, hW = 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 && _W(E2._f.deps), L(h2, f2, u3, G2));
|
|
9865
9865
|
}
|
|
9866
|
-
},
|
|
9866
|
+
}, gW = (e2, r2) => {
|
|
9867
9867
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
9868
|
-
},
|
|
9868
|
+
}, _W = 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, gW, e2 ? m2 : p.mount), f2;
|
|
9888
|
+
}, vW = (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
|
+
}, yW = (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
|
+
}), bW = (e2) => {
|
|
9900
9900
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
9901
9901
|
errors: e2 ? c.errors : {}
|
|
9902
9902
|
});
|
|
9903
|
-
},
|
|
9903
|
+
}, xW = (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
|
+
}, SW = (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), CW = (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
|
+
}, wW = ({ 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
|
+
}, TW = (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 ? wW({
|
|
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: hW,
|
|
9964
|
+
onBlur: hW,
|
|
9965
9965
|
ref: (m3) => {
|
|
9966
9966
|
if (m3) {
|
|
9967
|
-
|
|
9967
|
+
TW(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
|
+
}, EW = () => r.shouldFocusError && iterateFieldsByAction(l, gW, p.mount), DW = (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
|
+
}, OW = (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), EW(), setTimeout(EW);
|
|
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
|
+
}, kW = (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
|
+
}, AW = (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
|
+
}, jW = (e2, r2) => AW(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: TW,
|
|
10093
|
+
unregister: CW,
|
|
10094
|
+
getFieldState: yW,
|
|
10095
|
+
handleSubmit: OW,
|
|
10096
|
+
setError: xW,
|
|
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: wW,
|
|
10104
10104
|
_getFieldArray: q,
|
|
10105
|
-
_reset:
|
|
10105
|
+
_reset: AW,
|
|
10106
10106
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10107
|
-
|
|
10107
|
+
jW(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: DW,
|
|
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: _W,
|
|
10159
|
+
register: TW,
|
|
10160
|
+
handleSubmit: OW,
|
|
10161
|
+
watch: SW,
|
|
10162
10162
|
setValue: Z,
|
|
10163
|
-
getValues:
|
|
10164
|
-
reset:
|
|
10165
|
-
resetField:
|
|
10166
|
-
clearErrors:
|
|
10167
|
-
unregister:
|
|
10168
|
-
setError:
|
|
10163
|
+
getValues: vW,
|
|
10164
|
+
reset: jW,
|
|
10165
|
+
resetField: kW,
|
|
10166
|
+
clearErrors: bW,
|
|
10167
|
+
unregister: CW,
|
|
10168
|
+
setError: xW,
|
|
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: yW
|
|
10177
10177
|
};
|
|
10178
10178
|
}
|
|
10179
10179
|
function useForm(e = {}) {
|
|
@@ -10689,7 +10689,7 @@ ${indent(e)}
|
|
|
10689
10689
|
let r2 = typeof e.mark == "string" ? e.mark : (_a3 = e.mark) == null ? void 0 : _a3.type;
|
|
10690
10690
|
if (r2) {
|
|
10691
10691
|
let l2 = {};
|
|
10692
|
-
typeof e.mark == "object" && "type" in e.mark && (l2 = Object.fromEntries(Object.entries(e.mark).filter(([e2]) => e2 !== "type").map(([e2, r3]) => [
|
|
10692
|
+
typeof e.mark == "object" && "type" in e.mark && (l2 = Object.fromEntries(Object.entries(e.mark).filter(([e2, r3]) => e2 !== "type" && r3 != null).map(([e2, r3]) => [
|
|
10693
10693
|
e2,
|
|
10694
10694
|
new Literal(r3)
|
|
10695
10695
|
]))), c = c.chain(`mark_${r2}`, l2);
|
|
@@ -12719,12 +12719,10 @@ ${c}
|
|
|
12719
12719
|
var import_compiler_runtime$62 = require_compiler_runtime(), NEW_CHART_TYPE = "bar", DEFAULT_TAB_NAME = "table", CHART_HEIGHT = 290, CHART_MAX_ROWS = 5e4, CHART_MAX_COLUMNS = 50;
|
|
12720
12720
|
function mergeIndexFields(e, r) {
|
|
12721
12721
|
let c = e ?? [];
|
|
12722
|
-
|
|
12723
|
-
let l = new Set(c.map(([e2]) => e2)), u = r.filter(([e2]) => !l.has(e2));
|
|
12724
|
-
return [
|
|
12722
|
+
return !r || r.length === 0 ? c : uniqueBy([
|
|
12725
12723
|
...c,
|
|
12726
|
-
...
|
|
12727
|
-
];
|
|
12724
|
+
...r
|
|
12725
|
+
], (e2) => e2[0]);
|
|
12728
12726
|
}
|
|
12729
12727
|
const TablePanel = ({ cellId: e, data: r, dataTable: c, totalRows: l, columns: u, getDataUrl: d, fieldTypes: f, rowHeaders: p, displayHeader: m, onCloseChartBuilder: h }) => {
|
|
12730
12728
|
let [g, _] = useAtom(tabsStorageAtom), v = e ? g.get(e) ?? [] : [], [y, b] = (0, import_react.useState)(DEFAULT_TAB_NAME), [S, T] = (0, import_react.useState)(v.length), E = (0, import_react.useRef)(m);
|
|
@@ -14481,21 +14479,21 @@ ${c}
|
|
|
14481
14479
|
_.pageSize,
|
|
14482
14480
|
_.pageIndex
|
|
14483
14481
|
], 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];
|
|
14484
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
14485
|
-
r[48] !==
|
|
14486
|
-
let
|
|
14487
|
-
r[51] !==
|
|
14488
|
-
pW,
|
|
14482
|
+
let { data: W, error: G, isPending: q, isFetching: pW } = useAsyncData(z, H), mW = useAtomValue(downloadSizeLimitAtom), Z;
|
|
14483
|
+
r[48] !== mW || r[49] !== e ? (Z = async () => !mW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = mW, r[49] = e, r[50] = Z) : Z = r[50];
|
|
14484
|
+
let hW = e.showDownload, gW = e.get_size_bytes, _W = e.lazy, vW = e.totalRows, yW = useDeepCompareMemoize(w), bW = useDeepCompareMemoize(m), xW;
|
|
14485
|
+
r[51] !== mW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== yW || r[58] !== bW ? (xW = [
|
|
14489
14486
|
mW,
|
|
14490
14487
|
hW,
|
|
14491
14488
|
gW,
|
|
14492
14489
|
_W,
|
|
14493
|
-
y,
|
|
14494
14490
|
vW,
|
|
14495
|
-
|
|
14496
|
-
|
|
14497
|
-
|
|
14498
|
-
r[
|
|
14491
|
+
y,
|
|
14492
|
+
yW,
|
|
14493
|
+
bW
|
|
14494
|
+
], r[51] = mW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = yW, r[58] = bW, r[59] = xW) : xW = r[59];
|
|
14495
|
+
let { data: SW, isPending: CW } = useAsyncData(Z, xW), wW = SW ?? null, TW = !!mW && e.showDownload && CW, EW;
|
|
14496
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (EW = async (e2) => ({
|
|
14499
14497
|
rows: await loadTableData((await u({
|
|
14500
14498
|
page_number: e2,
|
|
14501
14499
|
page_size: 1,
|
|
@@ -14504,17 +14502,17 @@ ${c}
|
|
|
14504
14502
|
filters: filtersToFilterGroup(w),
|
|
14505
14503
|
max_columns: null
|
|
14506
14504
|
})).data)
|
|
14507
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
14508
|
-
let
|
|
14509
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
14505
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = EW) : EW = r[64];
|
|
14506
|
+
let DW = EW, OW;
|
|
14507
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (OW = () => {
|
|
14510
14508
|
v(_temp4$4);
|
|
14511
|
-
}, r[65] =
|
|
14512
|
-
let
|
|
14513
|
-
r[66] ===
|
|
14514
|
-
|
|
14515
|
-
], r[66] =
|
|
14516
|
-
let
|
|
14517
|
-
r[68] === e ?
|
|
14509
|
+
}, r[65] = OW) : OW = r[65];
|
|
14510
|
+
let kW = W == null ? void 0 : W.totalRows, AW;
|
|
14511
|
+
r[66] === kW ? AW = r[67] : (AW = [
|
|
14512
|
+
kW
|
|
14513
|
+
], r[66] = kW, r[67] = AW), (0, import_react.useEffect)(OW, AW);
|
|
14514
|
+
let jW;
|
|
14515
|
+
r[68] === e ? jW = r[69] : (jW = async () => {
|
|
14518
14516
|
let r2 = isStaticNotebook();
|
|
14519
14517
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
14520
14518
|
data: null,
|
|
@@ -14523,22 +14521,22 @@ ${c}
|
|
|
14523
14521
|
value_counts: {},
|
|
14524
14522
|
show_charts: false
|
|
14525
14523
|
} : e.get_column_summaries({});
|
|
14526
|
-
}, r[68] = e, r[69] =
|
|
14527
|
-
let
|
|
14528
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
14524
|
+
}, r[68] = e, r[69] = jW);
|
|
14525
|
+
let MW;
|
|
14526
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (MW = [
|
|
14529
14527
|
e.get_column_summaries,
|
|
14530
14528
|
e.showColumnSummaries,
|
|
14531
14529
|
w,
|
|
14532
14530
|
y,
|
|
14533
14531
|
e.totalRows,
|
|
14534
14532
|
e.data
|
|
14535
|
-
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] =
|
|
14536
|
-
let { data:
|
|
14537
|
-
if (r[77] ===
|
|
14538
|
-
|
|
14539
|
-
},
|
|
14540
|
-
|
|
14541
|
-
], r[77] =
|
|
14533
|
+
], 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] = MW) : MW = r[76];
|
|
14534
|
+
let { data: NW, error: PW } = useAsyncData(jW, MW), FW, IW;
|
|
14535
|
+
if (r[77] === PW ? (FW = r[78], IW = r[79]) : (FW = () => {
|
|
14536
|
+
PW && Logger.error(PW);
|
|
14537
|
+
}, IW = [
|
|
14538
|
+
PW
|
|
14539
|
+
], r[77] = PW, r[78] = FW, r[79] = IW), (0, import_react.useEffect)(FW, IW), q) {
|
|
14542
14540
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14543
14541
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14544
14542
|
milliseconds: 200,
|
|
@@ -14547,7 +14545,7 @@ ${c}
|
|
|
14547
14545
|
})
|
|
14548
14546
|
}), r[80] = c2, r[81] = l2), l2;
|
|
14549
14547
|
}
|
|
14550
|
-
let
|
|
14548
|
+
let LW = null;
|
|
14551
14549
|
if (G) {
|
|
14552
14550
|
Logger.error(G);
|
|
14553
14551
|
let e2;
|
|
@@ -14563,62 +14561,62 @@ ${c}
|
|
|
14563
14561
|
children: G.message || "An unknown error occurred"
|
|
14564
14562
|
})
|
|
14565
14563
|
]
|
|
14566
|
-
}), r[82] = G, r[83] = e2),
|
|
14564
|
+
}), r[82] = G, r[83] = e2), LW = e2;
|
|
14567
14565
|
}
|
|
14568
|
-
let
|
|
14569
|
-
r[84] === O ?
|
|
14566
|
+
let RW;
|
|
14567
|
+
r[84] === O ? RW = r[85] : (RW = () => {
|
|
14570
14568
|
j(!O);
|
|
14571
|
-
}, r[84] = O, r[85] =
|
|
14572
|
-
let
|
|
14573
|
-
r[86] !== l || r[87] !==
|
|
14569
|
+
}, r[84] = O, r[85] = RW);
|
|
14570
|
+
let zW = RW, BW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, VW = W == null ? void 0 : W.rawRows, HW = pW && !q, UW = (W == null ? void 0 : W.totalRows) ?? e.totalRows, WW = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, GW = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, KW;
|
|
14571
|
+
r[86] !== l || r[87] !== NW || r[88] !== O || r[89] !== w || r[90] !== DW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== wW || r[95] !== TW || r[96] !== m || r[97] !== BW || r[98] !== VW || r[99] !== HW || r[100] !== UW || r[101] !== WW || r[102] !== GW || r[103] !== zW ? (KW = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
14574
14572
|
...e,
|
|
14575
|
-
data:
|
|
14576
|
-
rawData:
|
|
14577
|
-
columnSummaries:
|
|
14573
|
+
data: BW,
|
|
14574
|
+
rawData: VW,
|
|
14575
|
+
columnSummaries: NW,
|
|
14578
14576
|
sorting: m,
|
|
14579
14577
|
setSorting: h,
|
|
14580
14578
|
searchQuery: y,
|
|
14581
14579
|
setSearchQuery: b,
|
|
14582
14580
|
filters: w,
|
|
14583
14581
|
setFilters: T,
|
|
14584
|
-
reloading:
|
|
14585
|
-
totalRows:
|
|
14586
|
-
sizeBytes:
|
|
14587
|
-
sizeBytesIsLoading:
|
|
14582
|
+
reloading: HW,
|
|
14583
|
+
totalRows: UW,
|
|
14584
|
+
sizeBytes: wW,
|
|
14585
|
+
sizeBytesIsLoading: TW,
|
|
14588
14586
|
paginationState: _,
|
|
14589
14587
|
setPaginationState: v,
|
|
14590
|
-
cellStyles:
|
|
14591
|
-
cellHoverTexts:
|
|
14592
|
-
toggleDisplayHeader:
|
|
14588
|
+
cellStyles: WW,
|
|
14589
|
+
cellHoverTexts: GW,
|
|
14590
|
+
toggleDisplayHeader: zW,
|
|
14593
14591
|
isChartBuilderOpen: O,
|
|
14594
|
-
getRow:
|
|
14592
|
+
getRow: DW,
|
|
14595
14593
|
cellId: l,
|
|
14596
14594
|
maxHeight: e.maxHeight
|
|
14597
|
-
}), r[86] = l, r[87] =
|
|
14598
|
-
let
|
|
14599
|
-
r[105] !== l || r[106] !==
|
|
14595
|
+
}), r[86] = l, r[87] = NW, r[88] = O, r[89] = w, r[90] = DW, r[91] = _, r[92] = e, r[93] = y, r[94] = wW, r[95] = TW, r[96] = m, r[97] = BW, r[98] = VW, r[99] = HW, r[100] = UW, r[101] = WW, r[102] = GW, r[103] = zW, r[104] = KW) : KW = r[104];
|
|
14596
|
+
let qW = KW, JW;
|
|
14597
|
+
r[105] !== l || r[106] !== qW || 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 ? (JW = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
14600
14598
|
displayHeader: O,
|
|
14601
14599
|
onCloseChartBuilder: () => j(false),
|
|
14602
14600
|
data: (W == null ? void 0 : W.rows) || [],
|
|
14603
14601
|
columns: e.totalColumns,
|
|
14604
14602
|
totalRows: e.totalRows,
|
|
14605
|
-
dataTable:
|
|
14603
|
+
dataTable: qW,
|
|
14606
14604
|
getDataUrl: e.get_data_url,
|
|
14607
14605
|
fieldTypes: e.fieldTypes,
|
|
14608
14606
|
rowHeaders: e.rowHeaders,
|
|
14609
14607
|
cellId: l
|
|
14610
|
-
}) :
|
|
14611
|
-
let
|
|
14612
|
-
return r[116] !==
|
|
14608
|
+
}) : qW, r[105] = l, r[106] = qW, 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] = JW) : JW = r[115];
|
|
14609
|
+
let YW;
|
|
14610
|
+
return r[116] !== LW || r[117] !== JW ? (YW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14613
14611
|
children: [
|
|
14614
|
-
|
|
14615
|
-
|
|
14612
|
+
LW,
|
|
14613
|
+
JW
|
|
14616
14614
|
]
|
|
14617
|
-
}), r[116] =
|
|
14615
|
+
}), r[116] = LW, r[117] = JW, r[118] = YW) : YW = r[118], YW;
|
|
14618
14616
|
});
|
|
14619
14617
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
14620
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters:
|
|
14621
|
-
let
|
|
14618
|
+
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: pW, setFilters: mW, reloading: Z, freezeColumnsLeft: hW, freezeColumnsRight: gW, hiddenColumns: _W, textJustifyColumns: vW, wrappedColumns: yW, columnWidths: bW, headerTooltip: xW, totalColumns: SW, get_row_ids: CW, cellStyles: wW, hoverTemplate: TW, cellHoverTexts: EW, toggleDisplayHeader: DW, isChartBuilderOpen: OW, calculate_top_k_rows: kW, preview_column: AW, getRow: jW, cellId: MW, maxHeight: NW }) => {
|
|
14619
|
+
let PW = (0, import_react.useId)(), { locale: FW } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [IW, LW] = (0, import_react.useState)(0), { isPanelOpen: RW, isAnyPanelOpen: zW, togglePanel: BW, panelType: VW, setPanelType: HW } = usePanelOwnership(PW, MW), UW = isStaticNotebook(), WW = (0, import_react.useMemo)(() => {
|
|
14622
14620
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
14623
14621
|
let e2 = toFieldTypes(O);
|
|
14624
14622
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -14627,13 +14625,13 @@ ${c}
|
|
|
14627
14625
|
}, [
|
|
14628
14626
|
O,
|
|
14629
14627
|
L
|
|
14630
|
-
]),
|
|
14628
|
+
]), GW = useDeepCompareMemoize(O ?? inferFieldTypes(r)), KW = (0, import_react.useMemo)(() => f === "all" ? GW : GW.slice(0, f), [
|
|
14631
14629
|
f,
|
|
14632
|
-
|
|
14633
|
-
]),
|
|
14630
|
+
GW
|
|
14631
|
+
]), qW = (0, import_react.useMemo)(() => {
|
|
14634
14632
|
let e2 = {};
|
|
14635
14633
|
if (r && r.length > 0) {
|
|
14636
|
-
for (let [c2, l2] of
|
|
14634
|
+
for (let [c2, l2] of KW) if (l2[0] === "number") {
|
|
14637
14635
|
let l3 = 0;
|
|
14638
14636
|
for (let e3 of r) {
|
|
14639
14637
|
let r2 = e3[c2];
|
|
@@ -14648,95 +14646,95 @@ ${c}
|
|
|
14648
14646
|
return e2;
|
|
14649
14647
|
}, [
|
|
14650
14648
|
r,
|
|
14651
|
-
|
|
14652
|
-
]),
|
|
14653
|
-
O || (w = false),
|
|
14654
|
-
let
|
|
14655
|
-
rowHeaders:
|
|
14649
|
+
KW
|
|
14650
|
+
]), JW = useDeepCompareMemoize(T), YW = useDeepCompareMemoize(vW), XW = useDeepCompareMemoize(yW), ZW = useDeepCompareMemoize(bW), QW = useDeepCompareMemoize(WW), $W = useDeepCompareMemoize(qW), eG = KW.length;
|
|
14651
|
+
O || (w = false), UW && (m = null);
|
|
14652
|
+
let tG = (0, import_react.useMemo)(() => generateColumns({
|
|
14653
|
+
rowHeaders: JW,
|
|
14656
14654
|
selection: m,
|
|
14657
|
-
chartSpecModel:
|
|
14658
|
-
fieldTypes:
|
|
14659
|
-
textJustifyColumns:
|
|
14660
|
-
wrappedColumns:
|
|
14661
|
-
columnWidths:
|
|
14662
|
-
headerTooltip:
|
|
14655
|
+
chartSpecModel: QW,
|
|
14656
|
+
fieldTypes: KW,
|
|
14657
|
+
textJustifyColumns: YW,
|
|
14658
|
+
wrappedColumns: XW,
|
|
14659
|
+
columnWidths: ZW,
|
|
14660
|
+
headerTooltip: xW,
|
|
14663
14661
|
showDataTypes: w,
|
|
14664
|
-
calculateTopKRows:
|
|
14665
|
-
fractionDigitsByColumn:
|
|
14662
|
+
calculateTopKRows: kW,
|
|
14663
|
+
fractionDigitsByColumn: $W
|
|
14666
14664
|
}), [
|
|
14667
14665
|
m,
|
|
14668
14666
|
w,
|
|
14669
|
-
|
|
14670
|
-
qW,
|
|
14671
|
-
GW,
|
|
14667
|
+
QW,
|
|
14672
14668
|
JW,
|
|
14669
|
+
KW,
|
|
14673
14670
|
YW,
|
|
14674
14671
|
XW,
|
|
14675
|
-
|
|
14676
|
-
|
|
14677
|
-
|
|
14678
|
-
|
|
14672
|
+
ZW,
|
|
14673
|
+
xW,
|
|
14674
|
+
kW,
|
|
14675
|
+
$W
|
|
14676
|
+
]), nG = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
14679
14677
|
e2,
|
|
14680
14678
|
true
|
|
14681
14679
|
])), [
|
|
14682
14680
|
h
|
|
14683
|
-
]),
|
|
14681
|
+
]), rG = useEvent_default((e2) => {
|
|
14684
14682
|
if (m === "single") {
|
|
14685
14683
|
let r2 = Functions.asUpdater(e2)({});
|
|
14686
14684
|
z(Object.keys(r2).slice(0, 1));
|
|
14687
14685
|
}
|
|
14688
14686
|
if (m === "multi") {
|
|
14689
|
-
let r2 = Functions.asUpdater(e2)(
|
|
14687
|
+
let r2 = Functions.asUpdater(e2)(nG);
|
|
14690
14688
|
z(Object.keys(r2));
|
|
14691
14689
|
}
|
|
14692
|
-
}),
|
|
14693
|
-
if (
|
|
14690
|
+
}), iG = useEvent_default((e2) => {
|
|
14691
|
+
if (LW(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
14694
14692
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
14695
14693
|
r2 !== null && M((e3) => ({
|
|
14696
14694
|
...e3,
|
|
14697
14695
|
pageIndex: r2
|
|
14698
14696
|
}));
|
|
14699
|
-
}),
|
|
14700
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
14701
|
-
}),
|
|
14702
|
-
if (!(!
|
|
14697
|
+
}), aG = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), oG = useEvent_default((e2) => {
|
|
14698
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(aG).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(aG));
|
|
14699
|
+
}), sG = m === "multi" || m === "single", cG = y && !!AW, lG = isInVscodeExtension(), uG = isIslands(), dG = (0, import_react.useMemo)(() => {
|
|
14700
|
+
if (!(!zW || !(b || cG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
14703
14701
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
14704
|
-
rowIdx:
|
|
14705
|
-
setRowIdx:
|
|
14702
|
+
rowIdx: IW,
|
|
14703
|
+
setRowIdx: iG,
|
|
14706
14704
|
totalRows: l,
|
|
14707
|
-
fieldTypes:
|
|
14708
|
-
getRow:
|
|
14709
|
-
isSelectable:
|
|
14710
|
-
isRowSelected: !!
|
|
14711
|
-
handleRowSelectionChange:
|
|
14712
|
-
previewColumn:
|
|
14713
|
-
totalColumns:
|
|
14714
|
-
tableId:
|
|
14705
|
+
fieldTypes: GW,
|
|
14706
|
+
getRow: jW,
|
|
14707
|
+
isSelectable: sG,
|
|
14708
|
+
isRowSelected: !!nG[IW],
|
|
14709
|
+
handleRowSelectionChange: rG,
|
|
14710
|
+
previewColumn: AW,
|
|
14711
|
+
totalColumns: SW,
|
|
14712
|
+
tableId: PW,
|
|
14715
14713
|
table: e2,
|
|
14716
|
-
showRowExplorer: b && !
|
|
14717
|
-
showColumnExplorer:
|
|
14718
|
-
activeTab:
|
|
14719
|
-
onTabChange:
|
|
14714
|
+
showRowExplorer: b && !lG,
|
|
14715
|
+
showColumnExplorer: cG && !lG,
|
|
14716
|
+
activeTab: VW,
|
|
14717
|
+
onTabChange: HW
|
|
14720
14718
|
})
|
|
14721
14719
|
});
|
|
14722
14720
|
}, [
|
|
14723
|
-
|
|
14721
|
+
zW,
|
|
14724
14722
|
b,
|
|
14723
|
+
cG,
|
|
14724
|
+
IW,
|
|
14725
|
+
iG,
|
|
14726
|
+
l,
|
|
14727
|
+
GW,
|
|
14728
|
+
jW,
|
|
14725
14729
|
sG,
|
|
14726
|
-
|
|
14730
|
+
nG,
|
|
14727
14731
|
rG,
|
|
14728
|
-
l,
|
|
14729
|
-
WW,
|
|
14730
14732
|
AW,
|
|
14731
|
-
|
|
14732
|
-
|
|
14733
|
-
|
|
14734
|
-
|
|
14735
|
-
|
|
14736
|
-
NW,
|
|
14737
|
-
cG,
|
|
14738
|
-
BW,
|
|
14739
|
-
VW
|
|
14733
|
+
SW,
|
|
14734
|
+
PW,
|
|
14735
|
+
lG,
|
|
14736
|
+
VW,
|
|
14737
|
+
HW
|
|
14740
14738
|
]);
|
|
14741
14739
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14742
14740
|
children: [
|
|
@@ -14748,27 +14746,27 @@ ${c}
|
|
|
14748
14746
|
" rows."
|
|
14749
14747
|
]
|
|
14750
14748
|
}),
|
|
14751
|
-
|
|
14749
|
+
eG < SW && eG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14752
14750
|
className: "mb-1 rounded",
|
|
14753
14751
|
children: [
|
|
14754
14752
|
"Result clipped. Showing ",
|
|
14755
|
-
|
|
14753
|
+
eG,
|
|
14756
14754
|
" of ",
|
|
14757
|
-
|
|
14755
|
+
SW,
|
|
14758
14756
|
" columns."
|
|
14759
14757
|
]
|
|
14760
14758
|
}),
|
|
14761
|
-
|
|
14759
|
+
UW && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14762
14760
|
className: "mb-1 rounded",
|
|
14763
14761
|
children: [
|
|
14764
14762
|
"Showing the first ",
|
|
14765
14763
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14766
|
-
children: prettyNumber(r.length,
|
|
14764
|
+
children: prettyNumber(r.length, FW)
|
|
14767
14765
|
}),
|
|
14768
14766
|
" ",
|
|
14769
14767
|
"of ",
|
|
14770
14768
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
14771
|
-
children: prettyNumber(l,
|
|
14769
|
+
children: prettyNumber(l, FW)
|
|
14772
14770
|
}),
|
|
14773
14771
|
" rows. Increase the table's ",
|
|
14774
14772
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -14782,7 +14780,7 @@ ${c}
|
|
|
14782
14780
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
14783
14781
|
}),
|
|
14784
14782
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
14785
|
-
value:
|
|
14783
|
+
value: WW,
|
|
14786
14784
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
14787
14785
|
label: e,
|
|
14788
14786
|
align: "top",
|
|
@@ -14790,14 +14788,14 @@ ${c}
|
|
|
14790
14788
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
14791
14789
|
data: r,
|
|
14792
14790
|
rawData: c,
|
|
14793
|
-
columns:
|
|
14791
|
+
columns: tG,
|
|
14794
14792
|
className: R,
|
|
14795
|
-
maxHeight:
|
|
14793
|
+
maxHeight: NW,
|
|
14796
14794
|
sorting: B,
|
|
14797
14795
|
totalRows: l,
|
|
14798
14796
|
sizeBytes: u,
|
|
14799
14797
|
sizeBytesIsLoading: d,
|
|
14800
|
-
totalColumns:
|
|
14798
|
+
totalColumns: SW,
|
|
14801
14799
|
manualSorting: true,
|
|
14802
14800
|
setSorting: H,
|
|
14803
14801
|
pagination: p,
|
|
@@ -14805,37 +14803,37 @@ ${c}
|
|
|
14805
14803
|
selection: m,
|
|
14806
14804
|
paginationState: j,
|
|
14807
14805
|
setPaginationState: M,
|
|
14808
|
-
rowSelection:
|
|
14809
|
-
cellSelection:
|
|
14810
|
-
cellStyling:
|
|
14811
|
-
hoverTemplate:
|
|
14812
|
-
cellHoverTexts:
|
|
14806
|
+
rowSelection: nG,
|
|
14807
|
+
cellSelection: aG,
|
|
14808
|
+
cellStyling: wW,
|
|
14809
|
+
hoverTemplate: TW,
|
|
14810
|
+
cellHoverTexts: EW,
|
|
14813
14811
|
downloadAs: _ ? I : void 0,
|
|
14814
14812
|
showSearch: W,
|
|
14815
14813
|
searchQuery: G,
|
|
14816
14814
|
onSearchQueryChange: q,
|
|
14817
14815
|
showFilters: g,
|
|
14818
|
-
filters:
|
|
14819
|
-
onFiltersChange:
|
|
14820
|
-
calculateTopKRows:
|
|
14816
|
+
filters: pW,
|
|
14817
|
+
onFiltersChange: mW,
|
|
14818
|
+
calculateTopKRows: kW,
|
|
14821
14819
|
reloading: Z,
|
|
14822
|
-
onRowSelectionChange:
|
|
14823
|
-
freezeColumnsLeft:
|
|
14824
|
-
freezeColumnsRight:
|
|
14825
|
-
hiddenColumns:
|
|
14826
|
-
onCellSelectionChange:
|
|
14827
|
-
getRowIds:
|
|
14828
|
-
toggleDisplayHeader:
|
|
14829
|
-
showChartBuilder: S && !
|
|
14830
|
-
isChartBuilderOpen:
|
|
14820
|
+
onRowSelectionChange: rG,
|
|
14821
|
+
freezeColumnsLeft: hW,
|
|
14822
|
+
freezeColumnsRight: gW,
|
|
14823
|
+
hiddenColumns: _W,
|
|
14824
|
+
onCellSelectionChange: oG,
|
|
14825
|
+
getRowIds: CW,
|
|
14826
|
+
toggleDisplayHeader: DW,
|
|
14827
|
+
showChartBuilder: S && !uG,
|
|
14828
|
+
isChartBuilderOpen: OW,
|
|
14831
14829
|
showPageSizeSelector: v,
|
|
14832
|
-
showTableExplorer: (b ||
|
|
14833
|
-
togglePanel:
|
|
14834
|
-
isPanelOpen:
|
|
14835
|
-
isAnyPanelOpen:
|
|
14836
|
-
viewedRowIdx:
|
|
14837
|
-
onViewedRowChange: (e2) =>
|
|
14838
|
-
renderTableExplorerPanel:
|
|
14830
|
+
showTableExplorer: (b || cG) && !lG && !uG,
|
|
14831
|
+
togglePanel: BW,
|
|
14832
|
+
isPanelOpen: RW,
|
|
14833
|
+
isAnyPanelOpen: zW,
|
|
14834
|
+
viewedRowIdx: IW,
|
|
14835
|
+
onViewedRowChange: (e2) => LW(e2),
|
|
14836
|
+
renderTableExplorerPanel: dG
|
|
14839
14837
|
})
|
|
14840
14838
|
})
|
|
14841
14839
|
})
|
|
@@ -16887,29 +16885,29 @@ ${c}
|
|
|
16887
16885
|
], r[2] = S, r[3] = w);
|
|
16888
16886
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
16889
16887
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
16890
|
-
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q,
|
|
16888
|
+
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, pW] = (0, import_react.useState)(f || EMPTY), mW = (0, import_react.useRef)(null), Z;
|
|
16891
16889
|
r[6] === d ? Z = r[7] : (Z = (e2) => {
|
|
16892
16890
|
var _a3;
|
|
16893
|
-
d && e2 !== "transform" && ((_a3 =
|
|
16891
|
+
d && e2 !== "transform" && ((_a3 = mW.current) == null ? void 0 : _a3.submit());
|
|
16894
16892
|
}, r[6] = d, r[7] = Z);
|
|
16895
|
-
let
|
|
16896
|
-
r[8] === q ?
|
|
16897
|
-
|
|
16898
|
-
}, r[8] = q, r[9] =
|
|
16899
|
-
let
|
|
16900
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
16901
|
-
let e2 =
|
|
16893
|
+
let hW = Z, gW = (0, import_react.useRef)(q), _W;
|
|
16894
|
+
r[8] === q ? _W = r[9] : (_W = () => {
|
|
16895
|
+
gW.current = q;
|
|
16896
|
+
}, r[8] = q, r[9] = _W), (0, import_react.useEffect)(_W);
|
|
16897
|
+
let vW;
|
|
16898
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (vW = () => {
|
|
16899
|
+
let e2 = gW.current;
|
|
16902
16900
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
16903
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
16904
|
-
let
|
|
16905
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
16901
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = vW) : vW = r[12];
|
|
16902
|
+
let yW = f == null ? void 0 : f.transforms.length, bW;
|
|
16903
|
+
r[13] !== T || r[14] !== p || r[15] !== yW ? (bW = [
|
|
16906
16904
|
T,
|
|
16907
|
-
|
|
16908
|
-
|
|
16905
|
+
yW,
|
|
16906
|
+
gW,
|
|
16909
16907
|
p
|
|
16910
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
16911
|
-
let
|
|
16912
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16908
|
+
], r[13] = T, r[14] = p, r[15] = yW, r[16] = bW) : bW = r[16], (0, import_react.useEffect)(vW, bW);
|
|
16909
|
+
let xW;
|
|
16910
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16913
16911
|
value: "transform",
|
|
16914
16912
|
className: "text-xs py-1",
|
|
16915
16913
|
children: [
|
|
@@ -16918,9 +16916,9 @@ ${c}
|
|
|
16918
16916
|
}),
|
|
16919
16917
|
"Transform"
|
|
16920
16918
|
]
|
|
16921
|
-
}), r[17] =
|
|
16922
|
-
let
|
|
16923
|
-
r[18] === H ?
|
|
16919
|
+
}), r[17] = xW) : xW = r[17];
|
|
16920
|
+
let SW;
|
|
16921
|
+
r[18] === H ? SW = r[19] : (SW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16924
16922
|
value: "python-code",
|
|
16925
16923
|
className: "text-xs py-1",
|
|
16926
16924
|
children: [
|
|
@@ -16929,9 +16927,9 @@ ${c}
|
|
|
16929
16927
|
}),
|
|
16930
16928
|
"Python Code"
|
|
16931
16929
|
]
|
|
16932
|
-
}), r[18] = H, r[19] =
|
|
16933
|
-
let
|
|
16934
|
-
r[20] === W ?
|
|
16930
|
+
}), r[18] = H, r[19] = SW);
|
|
16931
|
+
let CW;
|
|
16932
|
+
r[20] === W ? CW = r[21] : (CW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16935
16933
|
value: "sql-code",
|
|
16936
16934
|
className: "text-xs py-1",
|
|
16937
16935
|
children: [
|
|
@@ -16940,54 +16938,54 @@ ${c}
|
|
|
16940
16938
|
}),
|
|
16941
16939
|
"SQL Code"
|
|
16942
16940
|
]
|
|
16943
|
-
}), r[20] = W, r[21] =
|
|
16944
|
-
let wW;
|
|
16945
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (wW = (0, import_jsx_runtime.jsx)("div", {
|
|
16946
|
-
className: "grow"
|
|
16947
|
-
}), r[22] = wW) : wW = r[22];
|
|
16941
|
+
}), r[20] = W, r[21] = CW);
|
|
16948
16942
|
let TW;
|
|
16949
|
-
r[
|
|
16943
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (TW = (0, import_jsx_runtime.jsx)("div", {
|
|
16944
|
+
className: "grow"
|
|
16945
|
+
}), r[22] = TW) : TW = r[22];
|
|
16946
|
+
let EW;
|
|
16947
|
+
r[23] !== SW || r[24] !== CW ? (EW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
16950
16948
|
className: "h-8",
|
|
16951
16949
|
children: [
|
|
16952
|
-
bW,
|
|
16953
16950
|
xW,
|
|
16954
16951
|
SW,
|
|
16955
|
-
|
|
16952
|
+
CW,
|
|
16953
|
+
TW
|
|
16956
16954
|
]
|
|
16957
|
-
}), r[23] =
|
|
16958
|
-
let EW;
|
|
16959
|
-
r[26] === j ? EW = r[27] : (EW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16960
|
-
size: "small"
|
|
16961
|
-
}), r[26] = j, r[27] = EW);
|
|
16955
|
+
}), r[23] = SW, r[24] = CW, r[25] = EW) : EW = r[25];
|
|
16962
16956
|
let DW;
|
|
16963
|
-
r[
|
|
16957
|
+
r[26] === j ? DW = r[27] : (DW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16958
|
+
size: "small"
|
|
16959
|
+
}), r[26] = j, r[27] = DW);
|
|
16960
|
+
let OW;
|
|
16961
|
+
r[28] !== EW || r[29] !== DW ? (OW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16964
16962
|
className: "flex items-center gap-2",
|
|
16965
16963
|
children: [
|
|
16966
|
-
|
|
16967
|
-
|
|
16964
|
+
EW,
|
|
16965
|
+
DW
|
|
16968
16966
|
]
|
|
16969
|
-
}), r[28] =
|
|
16970
|
-
let OW;
|
|
16971
|
-
r[31] !== p || r[32] !== f ? (OW = (e2) => {
|
|
16972
|
-
dequal(e2, f) || (p(e2), fW(e2));
|
|
16973
|
-
}, r[31] = p, r[32] = f, r[33] = OW) : OW = r[33];
|
|
16967
|
+
}), r[28] = EW, r[29] = DW, r[30] = OW) : OW = r[30];
|
|
16974
16968
|
let kW;
|
|
16975
|
-
r[
|
|
16969
|
+
r[31] !== p || r[32] !== f ? (kW = (e2) => {
|
|
16970
|
+
dequal(e2, f) || (p(e2), pW(e2));
|
|
16971
|
+
}, r[31] = p, r[32] = f, r[33] = kW) : kW = r[33];
|
|
16972
|
+
let AW;
|
|
16973
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== kW ? (AW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16976
16974
|
value: "transform",
|
|
16977
16975
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16978
16976
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
16979
|
-
ref:
|
|
16977
|
+
ref: mW,
|
|
16980
16978
|
initialValue: q,
|
|
16981
16979
|
columns: c,
|
|
16982
|
-
onChange:
|
|
16983
|
-
onInvalidChange:
|
|
16980
|
+
onChange: kW,
|
|
16981
|
+
onInvalidChange: pW,
|
|
16984
16982
|
getColumnValues: h,
|
|
16985
16983
|
columnTypesPerStep: B,
|
|
16986
16984
|
lazy: d
|
|
16987
16985
|
})
|
|
16988
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
16989
|
-
let
|
|
16990
|
-
r[41] === H ?
|
|
16986
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = kW, r[40] = AW) : AW = r[40];
|
|
16987
|
+
let jW;
|
|
16988
|
+
r[41] === H ? jW = r[42] : (jW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16991
16989
|
value: "python-code",
|
|
16992
16990
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16993
16991
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16996,9 +16994,9 @@ ${c}
|
|
|
16996
16994
|
code: H,
|
|
16997
16995
|
language: "python"
|
|
16998
16996
|
})
|
|
16999
|
-
}), r[41] = H, r[42] =
|
|
17000
|
-
let
|
|
17001
|
-
r[43] === W ?
|
|
16997
|
+
}), r[41] = H, r[42] = jW);
|
|
16998
|
+
let MW;
|
|
16999
|
+
r[43] === W ? MW = r[44] : (MW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
17002
17000
|
value: "sql-code",
|
|
17003
17001
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
17004
17002
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -17007,35 +17005,35 @@ ${c}
|
|
|
17007
17005
|
code: W,
|
|
17008
17006
|
language: "sql"
|
|
17009
17007
|
})
|
|
17010
|
-
}), r[43] = W, r[44] =
|
|
17011
|
-
let
|
|
17012
|
-
r[45] !==
|
|
17008
|
+
}), r[43] = W, r[44] = MW);
|
|
17009
|
+
let NW;
|
|
17010
|
+
r[45] !== hW || r[46] !== OW || r[47] !== AW || r[48] !== jW || r[49] !== MW ? (NW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
17013
17011
|
defaultValue: "transform",
|
|
17014
|
-
onValueChange:
|
|
17012
|
+
onValueChange: hW,
|
|
17015
17013
|
children: [
|
|
17016
|
-
|
|
17017
|
-
kW,
|
|
17014
|
+
OW,
|
|
17018
17015
|
AW,
|
|
17019
|
-
jW
|
|
17016
|
+
jW,
|
|
17017
|
+
MW
|
|
17020
17018
|
]
|
|
17021
|
-
}), r[45] =
|
|
17022
|
-
let
|
|
17023
|
-
r[51] === O ?
|
|
17019
|
+
}), r[45] = hW, r[46] = OW, r[47] = AW, r[48] = jW, r[49] = MW, r[50] = NW) : NW = r[50];
|
|
17020
|
+
let PW;
|
|
17021
|
+
r[51] === O ? PW = r[52] : (PW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
17024
17022
|
error: O
|
|
17025
|
-
}), r[51] = O, r[52] =
|
|
17026
|
-
let
|
|
17027
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
17023
|
+
}), r[51] = O, r[52] = PW);
|
|
17024
|
+
let FW = I || "", IW = L ?? 0, LW = G ?? 0, RW = R || Arrays.EMPTY, zW = L && L > 5 || false, BW;
|
|
17025
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== FW || r[61] !== IW || r[62] !== LW || r[63] !== RW || r[64] !== zW ? (BW = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
17028
17026
|
label: null,
|
|
17029
17027
|
className: "rounded-b border-x border-b",
|
|
17030
|
-
data:
|
|
17028
|
+
data: FW,
|
|
17031
17029
|
hasStableRowId: false,
|
|
17032
|
-
totalRows:
|
|
17033
|
-
totalColumns:
|
|
17030
|
+
totalRows: IW,
|
|
17031
|
+
totalColumns: LW,
|
|
17034
17032
|
maxColumns: "all",
|
|
17035
17033
|
pageSize: l,
|
|
17036
17034
|
pagination: true,
|
|
17037
17035
|
fieldTypes: z,
|
|
17038
|
-
rowHeaders:
|
|
17036
|
+
rowHeaders: RW,
|
|
17039
17037
|
showDownload: u,
|
|
17040
17038
|
download_as: _,
|
|
17041
17039
|
get_size_bytes: v,
|
|
@@ -17045,7 +17043,7 @@ ${c}
|
|
|
17045
17043
|
showColumnSummaries: false,
|
|
17046
17044
|
showDataTypes: true,
|
|
17047
17045
|
get_column_summaries: getColumnSummaries,
|
|
17048
|
-
showPageSizeSelector:
|
|
17046
|
+
showPageSizeSelector: zW,
|
|
17049
17047
|
showColumnExplorer: false,
|
|
17050
17048
|
showRowExplorer: true,
|
|
17051
17049
|
showChartBuilder: false,
|
|
@@ -17054,15 +17052,15 @@ ${c}
|
|
|
17054
17052
|
selection: null,
|
|
17055
17053
|
lazy: false,
|
|
17056
17054
|
host: y
|
|
17057
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
17058
|
-
let
|
|
17059
|
-
return r[66] !==
|
|
17055
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = FW, r[61] = IW, r[62] = LW, r[63] = RW, r[64] = zW, r[65] = BW) : BW = r[65];
|
|
17056
|
+
let VW;
|
|
17057
|
+
return r[66] !== NW || r[67] !== PW || r[68] !== BW ? (VW = (0, import_jsx_runtime.jsxs)("div", {
|
|
17060
17058
|
children: [
|
|
17061
|
-
MW,
|
|
17062
17059
|
NW,
|
|
17063
|
-
|
|
17060
|
+
PW,
|
|
17061
|
+
BW
|
|
17064
17062
|
]
|
|
17065
|
-
}), r[66] =
|
|
17063
|
+
}), r[66] = NW, r[67] = PW, r[68] = BW, r[69] = VW) : VW = r[69], VW;
|
|
17066
17064
|
});
|
|
17067
17065
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
17068
17066
|
function getColumnSummaries() {
|
|
@@ -17253,23 +17251,23 @@ ${c}
|
|
|
17253
17251
|
}, [
|
|
17254
17252
|
H
|
|
17255
17253
|
]);
|
|
17256
|
-
let
|
|
17254
|
+
let pW = (R == null ? void 0 : R.files) ?? [], mW = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", hW = l === "file" || l === "all", gW = pW.filter((e2) => Z && e2.is_directory || hW && !e2.is_directory), _W = gW.length > 0 && gW.every((e2) => mW.has(e2.path));
|
|
17257
17255
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
17258
17256
|
kind: "danger",
|
|
17259
17257
|
children: z.message
|
|
17260
17258
|
});
|
|
17261
|
-
let
|
|
17259
|
+
let vW = PathBuilder.guessDeliminator(c).deliminator, yW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
17262
17260
|
children: e2.path
|
|
17263
17261
|
}, e2.id));
|
|
17264
|
-
function
|
|
17262
|
+
function bW(e2) {
|
|
17265
17263
|
var _a4;
|
|
17266
17264
|
if (v) return;
|
|
17267
17265
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
17268
|
-
if (g ===
|
|
17266
|
+
if (g === vW) {
|
|
17269
17267
|
y(false);
|
|
17270
17268
|
return;
|
|
17271
17269
|
}
|
|
17272
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
17270
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = vW);
|
|
17273
17271
|
}
|
|
17274
17272
|
let r2 = e2.length < c.length;
|
|
17275
17273
|
if (f && r2) {
|
|
@@ -17282,7 +17280,7 @@ ${c}
|
|
|
17282
17280
|
}
|
|
17283
17281
|
M.current = ((_a4 = j.current) == null ? void 0 : _a4.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
17284
17282
|
}
|
|
17285
|
-
function
|
|
17283
|
+
function xW({ path: e2, name: r2, isDirectory: c2 }) {
|
|
17286
17284
|
return {
|
|
17287
17285
|
id: e2,
|
|
17288
17286
|
name: r2,
|
|
@@ -17290,27 +17288,27 @@ ${c}
|
|
|
17290
17288
|
is_directory: c2
|
|
17291
17289
|
};
|
|
17292
17290
|
}
|
|
17293
|
-
function
|
|
17294
|
-
let f2 =
|
|
17291
|
+
function SW({ path: c2, name: l2, isDirectory: d2 }) {
|
|
17292
|
+
let f2 = xW({
|
|
17295
17293
|
path: c2,
|
|
17296
17294
|
name: l2,
|
|
17297
17295
|
isDirectory: d2
|
|
17298
17296
|
});
|
|
17299
|
-
|
|
17297
|
+
mW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
17300
17298
|
...e,
|
|
17301
17299
|
f2
|
|
17302
17300
|
] : [
|
|
17303
17301
|
f2
|
|
17304
17302
|
]);
|
|
17305
17303
|
}
|
|
17306
|
-
function
|
|
17304
|
+
function wW() {
|
|
17307
17305
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
17308
17306
|
}
|
|
17309
|
-
function
|
|
17307
|
+
function TW() {
|
|
17310
17308
|
let c2 = [];
|
|
17311
|
-
for (let e2 of
|
|
17312
|
-
if (!Z && e2.is_directory ||
|
|
17313
|
-
let r2 =
|
|
17309
|
+
for (let e2 of pW) {
|
|
17310
|
+
if (!Z && e2.is_directory || mW.has(e2.path)) continue;
|
|
17311
|
+
let r2 = xW({
|
|
17314
17312
|
path: e2.path,
|
|
17315
17313
|
name: e2.name,
|
|
17316
17314
|
isDirectory: e2.is_directory
|
|
@@ -17322,20 +17320,20 @@ ${c}
|
|
|
17322
17320
|
...c2
|
|
17323
17321
|
]);
|
|
17324
17322
|
}
|
|
17325
|
-
let
|
|
17323
|
+
let EW = [
|
|
17326
17324
|
{
|
|
17327
17325
|
key: "parent",
|
|
17328
17326
|
name: PARENT_DIRECTORY,
|
|
17329
17327
|
Icon: CornerLeftUp,
|
|
17330
17328
|
isSelected: false,
|
|
17331
17329
|
canSelect: false,
|
|
17332
|
-
onPrimary: () =>
|
|
17330
|
+
onPrimary: () => bW(PARENT_DIRECTORY),
|
|
17333
17331
|
onToggleSelect: null
|
|
17334
17332
|
},
|
|
17335
|
-
...
|
|
17333
|
+
...pW.map((e2) => {
|
|
17336
17334
|
let r2 = e2.path;
|
|
17337
17335
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17338
|
-
let c2 = Z && e2.is_directory ||
|
|
17336
|
+
let c2 = Z && e2.is_directory || hW && !e2.is_directory, l2 = mW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => SW({
|
|
17339
17337
|
path: r2,
|
|
17340
17338
|
name: e2.name,
|
|
17341
17339
|
isDirectory: e2.is_directory
|
|
@@ -17346,46 +17344,46 @@ ${c}
|
|
|
17346
17344
|
Icon: FILE_ICON[u2],
|
|
17347
17345
|
isSelected: l2,
|
|
17348
17346
|
canSelect: c2,
|
|
17349
|
-
onPrimary: e2.is_directory ? () =>
|
|
17347
|
+
onPrimary: e2.is_directory ? () => bW(r2) : c2 ? d2 : () => {
|
|
17350
17348
|
},
|
|
17351
17349
|
onToggleSelect: c2 ? d2 : null
|
|
17352
17350
|
};
|
|
17353
17351
|
})
|
|
17354
17352
|
];
|
|
17355
|
-
function
|
|
17353
|
+
function DW(e2) {
|
|
17356
17354
|
var _a4;
|
|
17357
17355
|
E(e2), (_a4 = O.current[e2]) == null ? void 0 : _a4.focus();
|
|
17358
17356
|
}
|
|
17359
|
-
function
|
|
17357
|
+
function OW(e2, r2) {
|
|
17360
17358
|
var _a4, _b3;
|
|
17361
|
-
let c2 =
|
|
17359
|
+
let c2 = EW.length - 1;
|
|
17362
17360
|
switch (e2.key) {
|
|
17363
17361
|
case "ArrowDown":
|
|
17364
|
-
e2.preventDefault(),
|
|
17362
|
+
e2.preventDefault(), DW(Math.min(r2 + 1, c2));
|
|
17365
17363
|
break;
|
|
17366
17364
|
case "ArrowUp":
|
|
17367
|
-
e2.preventDefault(),
|
|
17365
|
+
e2.preventDefault(), DW(Math.max(r2 - 1, 0));
|
|
17368
17366
|
break;
|
|
17369
17367
|
case "Home":
|
|
17370
|
-
e2.preventDefault(),
|
|
17368
|
+
e2.preventDefault(), DW(0);
|
|
17371
17369
|
break;
|
|
17372
17370
|
case "End":
|
|
17373
|
-
e2.preventDefault(),
|
|
17371
|
+
e2.preventDefault(), DW(c2);
|
|
17374
17372
|
break;
|
|
17375
17373
|
case "Enter":
|
|
17376
|
-
e2.preventDefault(),
|
|
17374
|
+
e2.preventDefault(), EW[r2].onPrimary();
|
|
17377
17375
|
break;
|
|
17378
17376
|
case " ":
|
|
17379
|
-
e2.preventDefault(), (_b3 = (_a4 =
|
|
17377
|
+
e2.preventDefault(), (_b3 = (_a4 = EW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a4);
|
|
17380
17378
|
break;
|
|
17381
17379
|
}
|
|
17382
17380
|
}
|
|
17383
|
-
let { parentDirectories:
|
|
17381
|
+
let { parentDirectories: kW } = getProtocolAndParentDirectories({
|
|
17384
17382
|
path: g,
|
|
17385
|
-
delimiter:
|
|
17383
|
+
delimiter: vW,
|
|
17386
17384
|
initialPath: c,
|
|
17387
17385
|
restrictNavigation: f
|
|
17388
|
-
}),
|
|
17386
|
+
}), AW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
17389
17387
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
17390
17388
|
children: [
|
|
17391
17389
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -17395,7 +17393,7 @@ ${c}
|
|
|
17395
17393
|
(() => {
|
|
17396
17394
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
17397
17395
|
children: renderHTML({
|
|
17398
|
-
html: d ?? `Select ${
|
|
17396
|
+
html: d ?? `Select ${AW.join(" and ", 2)}...`
|
|
17399
17397
|
})
|
|
17400
17398
|
});
|
|
17401
17399
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -17409,8 +17407,8 @@ ${c}
|
|
|
17409
17407
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
17410
17408
|
size: "xs",
|
|
17411
17409
|
variant: "link",
|
|
17412
|
-
onClick:
|
|
17413
|
-
children:
|
|
17410
|
+
onClick: _W ? wW : TW,
|
|
17411
|
+
children: _W ? "Deselect all" : "Select all"
|
|
17414
17412
|
})
|
|
17415
17413
|
})
|
|
17416
17414
|
]
|
|
@@ -17420,15 +17418,15 @@ ${c}
|
|
|
17420
17418
|
className: "mt-2 w-full",
|
|
17421
17419
|
placeholder: g,
|
|
17422
17420
|
value: g,
|
|
17423
|
-
onChange: (e2) =>
|
|
17424
|
-
children:
|
|
17421
|
+
onChange: (e2) => bW(e2.target.value),
|
|
17422
|
+
children: kW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
17425
17423
|
value: e2,
|
|
17426
17424
|
children: e2
|
|
17427
17425
|
}, e2))
|
|
17428
17426
|
}),
|
|
17429
17427
|
R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
17430
17428
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
17431
|
-
children: R.is_truncated ? `Showing ${
|
|
17429
|
+
children: R.is_truncated ? `Showing ${pW.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
17432
17430
|
}),
|
|
17433
17431
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
17434
17432
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
@@ -17457,14 +17455,14 @@ ${c}
|
|
|
17457
17455
|
"aria-label": "File browser",
|
|
17458
17456
|
"aria-multiselectable": u,
|
|
17459
17457
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17460
|
-
children:
|
|
17458
|
+
children: EW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17461
17459
|
role: "row",
|
|
17462
17460
|
ref: (e3) => {
|
|
17463
17461
|
O.current[r2] = e3;
|
|
17464
17462
|
},
|
|
17465
17463
|
tabIndex: r2 === T ? 0 : -1,
|
|
17466
17464
|
onFocus: () => E(r2),
|
|
17467
|
-
onKeyDown: (e3) =>
|
|
17465
|
+
onKeyDown: (e3) => OW(e3, r2),
|
|
17468
17466
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
17469
17467
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
17470
17468
|
}),
|
|
@@ -17507,7 +17505,7 @@ ${c}
|
|
|
17507
17505
|
children: [
|
|
17508
17506
|
e.length,
|
|
17509
17507
|
" ",
|
|
17510
|
-
|
|
17508
|
+
AW.join(" or ", e.length),
|
|
17511
17509
|
" ",
|
|
17512
17510
|
"selected"
|
|
17513
17511
|
]
|
|
@@ -17527,7 +17525,7 @@ ${c}
|
|
|
17527
17525
|
marginBlock: 0
|
|
17528
17526
|
},
|
|
17529
17527
|
className: "m-0 text-xs text-muted-foreground",
|
|
17530
|
-
children:
|
|
17528
|
+
children: yW
|
|
17531
17529
|
})
|
|
17532
17530
|
})
|
|
17533
17531
|
]
|
|
@@ -22909,55 +22907,55 @@ ${c}
|
|
|
22909
22907
|
return typeof S == "function" ? S : noop$2;
|
|
22910
22908
|
}, [
|
|
22911
22909
|
S
|
|
22912
|
-
]), q = (0, import_react.useRef)(null),
|
|
22913
|
-
!
|
|
22914
|
-
|
|
22910
|
+
]), q = (0, import_react.useRef)(null), pW = (0, import_react.useRef)(null), mW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), Z = mW[0], hW = mW[1], gW = Z.isFocused, _W = Z.isFileDialogActive, vW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), yW = function() {
|
|
22911
|
+
!vW.current && _W && setTimeout(function() {
|
|
22912
|
+
pW.current && (pW.current.files.length || (hW({
|
|
22915
22913
|
type: "closeDialog"
|
|
22916
22914
|
}), G()));
|
|
22917
22915
|
}, 300);
|
|
22918
22916
|
};
|
|
22919
22917
|
(0, import_react.useEffect)(function() {
|
|
22920
|
-
return window.addEventListener("focus",
|
|
22921
|
-
window.removeEventListener("focus",
|
|
22918
|
+
return window.addEventListener("focus", yW, false), function() {
|
|
22919
|
+
window.removeEventListener("focus", yW, false);
|
|
22922
22920
|
};
|
|
22923
22921
|
}, [
|
|
22924
|
-
|
|
22925
|
-
|
|
22922
|
+
pW,
|
|
22923
|
+
_W,
|
|
22926
22924
|
G,
|
|
22927
|
-
|
|
22925
|
+
vW
|
|
22928
22926
|
]);
|
|
22929
|
-
var
|
|
22930
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
22927
|
+
var bW = (0, import_react.useRef)([]), xW = (0, import_react.useRef)([]), SW = function(e2) {
|
|
22928
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), bW.current = []);
|
|
22931
22929
|
};
|
|
22932
22930
|
(0, import_react.useEffect)(function() {
|
|
22933
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
22934
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
22931
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", SW, false)), function() {
|
|
22932
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", SW));
|
|
22935
22933
|
};
|
|
22936
22934
|
}, [
|
|
22937
22935
|
q,
|
|
22938
22936
|
O
|
|
22939
22937
|
]), (0, import_react.useEffect)(function() {
|
|
22940
22938
|
var e2 = function(e3) {
|
|
22941
|
-
|
|
22939
|
+
xW.current = [].concat(_toConsumableArray(xW.current), [
|
|
22942
22940
|
e3.target
|
|
22943
|
-
]), isEvtWithFiles(e3) &&
|
|
22941
|
+
]), isEvtWithFiles(e3) && hW({
|
|
22944
22942
|
isDragGlobal: true,
|
|
22945
22943
|
type: "setDragGlobal"
|
|
22946
22944
|
});
|
|
22947
22945
|
}, r2 = function(e3) {
|
|
22948
|
-
|
|
22946
|
+
xW.current = xW.current.filter(function(r3) {
|
|
22949
22947
|
return r3 !== e3.target && r3 !== null;
|
|
22950
|
-
}), !(
|
|
22948
|
+
}), !(xW.current.length > 0) && hW({
|
|
22951
22949
|
isDragGlobal: false,
|
|
22952
22950
|
type: "setDragGlobal"
|
|
22953
22951
|
});
|
|
22954
22952
|
}, c2 = function() {
|
|
22955
|
-
|
|
22953
|
+
xW.current = [], hW({
|
|
22956
22954
|
isDragGlobal: false,
|
|
22957
22955
|
type: "setDragGlobal"
|
|
22958
22956
|
});
|
|
22959
22957
|
}, l2 = function() {
|
|
22960
|
-
|
|
22958
|
+
xW.current = [], hW({
|
|
22961
22959
|
isDragGlobal: false,
|
|
22962
22960
|
type: "setDragGlobal"
|
|
22963
22961
|
});
|
|
@@ -22975,12 +22973,12 @@ ${c}
|
|
|
22975
22973
|
E,
|
|
22976
22974
|
l
|
|
22977
22975
|
]);
|
|
22978
|
-
var
|
|
22976
|
+
var CW = (0, import_react.useCallback)(function(e2) {
|
|
22979
22977
|
R ? R(e2) : console.error(e2);
|
|
22980
22978
|
}, [
|
|
22981
22979
|
R
|
|
22982
|
-
]),
|
|
22983
|
-
e2.preventDefault(), e2.persist(),
|
|
22980
|
+
]), wW = (0, import_react.useCallback)(function(e2) {
|
|
22981
|
+
e2.preventDefault(), e2.persist(), LW(e2), bW.current = [].concat(_toConsumableArray(bW.current), [
|
|
22984
22982
|
e2.target
|
|
22985
22983
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22986
22984
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -22993,7 +22991,7 @@ ${c}
|
|
|
22993
22991
|
maxFiles: m,
|
|
22994
22992
|
validator: z
|
|
22995
22993
|
});
|
|
22996
|
-
|
|
22994
|
+
hW({
|
|
22997
22995
|
isDragAccept: l2,
|
|
22998
22996
|
isDragReject: c2 > 0 && !l2,
|
|
22999
22997
|
isDragActive: true,
|
|
@@ -23001,12 +22999,12 @@ ${c}
|
|
|
23001
22999
|
}), h && h(e2);
|
|
23002
23000
|
}
|
|
23003
23001
|
}).catch(function(e3) {
|
|
23004
|
-
return
|
|
23002
|
+
return CW(e3);
|
|
23005
23003
|
});
|
|
23006
23004
|
}, [
|
|
23007
23005
|
u,
|
|
23008
23006
|
h,
|
|
23009
|
-
|
|
23007
|
+
CW,
|
|
23010
23008
|
L,
|
|
23011
23009
|
B,
|
|
23012
23010
|
f,
|
|
@@ -23014,8 +23012,8 @@ ${c}
|
|
|
23014
23012
|
p,
|
|
23015
23013
|
m,
|
|
23016
23014
|
z
|
|
23017
|
-
]),
|
|
23018
|
-
e2.preventDefault(), e2.persist(),
|
|
23015
|
+
]), TW = (0, import_react.useCallback)(function(e2) {
|
|
23016
|
+
e2.preventDefault(), e2.persist(), LW(e2);
|
|
23019
23017
|
var r2 = isEvtWithFiles(e2);
|
|
23020
23018
|
if (r2 && e2.dataTransfer) try {
|
|
23021
23019
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -23025,12 +23023,12 @@ ${c}
|
|
|
23025
23023
|
}, [
|
|
23026
23024
|
_,
|
|
23027
23025
|
L
|
|
23028
|
-
]),
|
|
23029
|
-
e2.preventDefault(), e2.persist(),
|
|
23030
|
-
var r2 =
|
|
23026
|
+
]), EW = (0, import_react.useCallback)(function(e2) {
|
|
23027
|
+
e2.preventDefault(), e2.persist(), LW(e2);
|
|
23028
|
+
var r2 = bW.current.filter(function(e3) {
|
|
23031
23029
|
return q.current && q.current.contains(e3);
|
|
23032
23030
|
}), c2 = r2.indexOf(e2.target);
|
|
23033
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
23031
|
+
c2 !== -1 && r2.splice(c2, 1), bW.current = r2, !(r2.length > 0) && (hW({
|
|
23034
23032
|
type: "setDraggedFiles",
|
|
23035
23033
|
isDragActive: false,
|
|
23036
23034
|
isDragAccept: false,
|
|
@@ -23040,7 +23038,7 @@ ${c}
|
|
|
23040
23038
|
q,
|
|
23041
23039
|
g,
|
|
23042
23040
|
L
|
|
23043
|
-
]),
|
|
23041
|
+
]), DW = (0, import_react.useCallback)(function(e2, r2) {
|
|
23044
23042
|
var c2 = [], l2 = [];
|
|
23045
23043
|
e2.forEach(function(e3) {
|
|
23046
23044
|
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;
|
|
@@ -23064,14 +23062,14 @@ ${c}
|
|
|
23064
23062
|
TOO_MANY_FILES_REJECTION
|
|
23065
23063
|
]
|
|
23066
23064
|
});
|
|
23067
|
-
}), c2.splice(0)),
|
|
23065
|
+
}), c2.splice(0)), hW({
|
|
23068
23066
|
acceptedFiles: c2,
|
|
23069
23067
|
fileRejections: l2,
|
|
23070
23068
|
isDragReject: l2.length > 0,
|
|
23071
23069
|
type: "setFiles"
|
|
23072
23070
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
23073
23071
|
}, [
|
|
23074
|
-
|
|
23072
|
+
hW,
|
|
23075
23073
|
p,
|
|
23076
23074
|
B,
|
|
23077
23075
|
f,
|
|
@@ -23081,22 +23079,22 @@ ${c}
|
|
|
23081
23079
|
y,
|
|
23082
23080
|
b,
|
|
23083
23081
|
z
|
|
23084
|
-
]),
|
|
23085
|
-
e2.preventDefault(), e2.persist(),
|
|
23086
|
-
isPropagationStopped(e2) && !L ||
|
|
23082
|
+
]), OW = (0, import_react.useCallback)(function(e2) {
|
|
23083
|
+
e2.preventDefault(), e2.persist(), LW(e2), bW.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
23084
|
+
isPropagationStopped(e2) && !L || DW(r2, e2);
|
|
23087
23085
|
}).catch(function(e3) {
|
|
23088
|
-
return
|
|
23089
|
-
}),
|
|
23086
|
+
return CW(e3);
|
|
23087
|
+
}), hW({
|
|
23090
23088
|
type: "reset"
|
|
23091
23089
|
});
|
|
23092
23090
|
}, [
|
|
23093
23091
|
u,
|
|
23094
|
-
|
|
23095
|
-
|
|
23092
|
+
DW,
|
|
23093
|
+
CW,
|
|
23096
23094
|
L
|
|
23097
|
-
]),
|
|
23098
|
-
if (
|
|
23099
|
-
|
|
23095
|
+
]), kW = (0, import_react.useCallback)(function() {
|
|
23096
|
+
if (vW.current) {
|
|
23097
|
+
hW({
|
|
23100
23098
|
type: "openDialog"
|
|
23101
23099
|
}), W();
|
|
23102
23100
|
var e2 = {
|
|
@@ -23106,66 +23104,66 @@ ${c}
|
|
|
23106
23104
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
23107
23105
|
return u(e3);
|
|
23108
23106
|
}).then(function(e3) {
|
|
23109
|
-
|
|
23107
|
+
DW(e3, null), hW({
|
|
23110
23108
|
type: "closeDialog"
|
|
23111
23109
|
});
|
|
23112
23110
|
}).catch(function(e3) {
|
|
23113
|
-
isAbort(e3) ? (G(e3),
|
|
23111
|
+
isAbort(e3) ? (G(e3), hW({
|
|
23114
23112
|
type: "closeDialog"
|
|
23115
|
-
})) : isSecurityError(e3) ? (
|
|
23113
|
+
})) : isSecurityError(e3) ? (vW.current = false, pW.current ? (pW.current.value = null, pW.current.click()) : CW(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."))) : CW(e3);
|
|
23116
23114
|
});
|
|
23117
23115
|
return;
|
|
23118
23116
|
}
|
|
23119
|
-
|
|
23117
|
+
pW.current && (hW({
|
|
23120
23118
|
type: "openDialog"
|
|
23121
|
-
}), W(),
|
|
23119
|
+
}), W(), pW.current.value = null, pW.current.click());
|
|
23122
23120
|
}, [
|
|
23123
|
-
|
|
23121
|
+
hW,
|
|
23124
23122
|
W,
|
|
23125
23123
|
G,
|
|
23126
23124
|
T,
|
|
23127
|
-
|
|
23128
|
-
|
|
23125
|
+
DW,
|
|
23126
|
+
CW,
|
|
23129
23127
|
H,
|
|
23130
23128
|
p
|
|
23131
|
-
]),
|
|
23132
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
23129
|
+
]), AW = (0, import_react.useCallback)(function(e2) {
|
|
23130
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), kW());
|
|
23133
23131
|
}, [
|
|
23134
23132
|
q,
|
|
23135
|
-
|
|
23136
|
-
]),
|
|
23137
|
-
|
|
23133
|
+
kW
|
|
23134
|
+
]), jW = (0, import_react.useCallback)(function() {
|
|
23135
|
+
hW({
|
|
23138
23136
|
type: "focus"
|
|
23139
23137
|
});
|
|
23140
|
-
}, []),
|
|
23141
|
-
|
|
23138
|
+
}, []), MW = (0, import_react.useCallback)(function() {
|
|
23139
|
+
hW({
|
|
23142
23140
|
type: "blur"
|
|
23143
23141
|
});
|
|
23144
|
-
}, []),
|
|
23145
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
23142
|
+
}, []), NW = (0, import_react.useCallback)(function() {
|
|
23143
|
+
j || (isIeOrEdge() ? setTimeout(kW, 0) : kW());
|
|
23146
23144
|
}, [
|
|
23147
23145
|
j,
|
|
23148
|
-
|
|
23149
|
-
]),
|
|
23146
|
+
kW
|
|
23147
|
+
]), PW = function(e2) {
|
|
23150
23148
|
return l ? null : e2;
|
|
23151
|
-
}, PW = function(e2) {
|
|
23152
|
-
return M ? null : NW(e2);
|
|
23153
23149
|
}, FW = function(e2) {
|
|
23154
|
-
return
|
|
23150
|
+
return M ? null : PW(e2);
|
|
23155
23151
|
}, IW = function(e2) {
|
|
23152
|
+
return I ? null : PW(e2);
|
|
23153
|
+
}, LW = function(e2) {
|
|
23156
23154
|
L && e2.stopPropagation();
|
|
23157
|
-
},
|
|
23155
|
+
}, RW = (0, import_react.useMemo)(function() {
|
|
23158
23156
|
return function() {
|
|
23159
23157
|
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);
|
|
23160
23158
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
23161
|
-
onKeyDown:
|
|
23162
|
-
onFocus:
|
|
23163
|
-
onBlur:
|
|
23164
|
-
onClick:
|
|
23165
|
-
onDragEnter:
|
|
23166
|
-
onDragOver:
|
|
23167
|
-
onDragLeave:
|
|
23168
|
-
onDrop:
|
|
23159
|
+
onKeyDown: FW(composeEventHandlers(d2, AW)),
|
|
23160
|
+
onFocus: FW(composeEventHandlers(f2, jW)),
|
|
23161
|
+
onBlur: FW(composeEventHandlers(p2, MW)),
|
|
23162
|
+
onClick: PW(composeEventHandlers(m2, NW)),
|
|
23163
|
+
onDragEnter: IW(composeEventHandlers(h2, wW)),
|
|
23164
|
+
onDragOver: IW(composeEventHandlers(g2, TW)),
|
|
23165
|
+
onDragLeave: IW(composeEventHandlers(_2, EW)),
|
|
23166
|
+
onDrop: IW(composeEventHandlers(v2, OW)),
|
|
23169
23167
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23170
23168
|
}, c2, q), !l && !M ? {
|
|
23171
23169
|
tabIndex: 0
|
|
@@ -23173,20 +23171,20 @@ ${c}
|
|
|
23173
23171
|
};
|
|
23174
23172
|
}, [
|
|
23175
23173
|
q,
|
|
23176
|
-
kW,
|
|
23177
23174
|
AW,
|
|
23178
23175
|
jW,
|
|
23179
23176
|
MW,
|
|
23180
|
-
|
|
23177
|
+
NW,
|
|
23181
23178
|
wW,
|
|
23182
23179
|
TW,
|
|
23183
|
-
|
|
23180
|
+
EW,
|
|
23181
|
+
OW,
|
|
23184
23182
|
M,
|
|
23185
23183
|
I,
|
|
23186
23184
|
l
|
|
23187
|
-
]),
|
|
23185
|
+
]), zW = (0, import_react.useCallback)(function(e2) {
|
|
23188
23186
|
e2.stopPropagation();
|
|
23189
|
-
}, []),
|
|
23187
|
+
}, []), BW = (0, import_react.useMemo)(function() {
|
|
23190
23188
|
return function() {
|
|
23191
23189
|
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);
|
|
23192
23190
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -23205,25 +23203,25 @@ ${c}
|
|
|
23205
23203
|
width: "1px",
|
|
23206
23204
|
whiteSpace: "nowrap"
|
|
23207
23205
|
},
|
|
23208
|
-
onChange:
|
|
23209
|
-
onClick:
|
|
23206
|
+
onChange: PW(composeEventHandlers(l2, OW)),
|
|
23207
|
+
onClick: PW(composeEventHandlers(u2, zW)),
|
|
23210
23208
|
tabIndex: -1
|
|
23211
|
-
}, c2,
|
|
23209
|
+
}, c2, pW)), d2);
|
|
23212
23210
|
};
|
|
23213
23211
|
}, [
|
|
23214
|
-
|
|
23212
|
+
pW,
|
|
23215
23213
|
c,
|
|
23216
23214
|
p,
|
|
23217
|
-
|
|
23215
|
+
OW,
|
|
23218
23216
|
l
|
|
23219
23217
|
]);
|
|
23220
23218
|
return _objectSpread$7(_objectSpread$7({}, Z), {}, {
|
|
23221
|
-
isFocused:
|
|
23222
|
-
getRootProps:
|
|
23223
|
-
getInputProps:
|
|
23219
|
+
isFocused: gW && !l,
|
|
23220
|
+
getRootProps: RW,
|
|
23221
|
+
getInputProps: BW,
|
|
23224
23222
|
rootRef: q,
|
|
23225
|
-
inputRef:
|
|
23226
|
-
open:
|
|
23223
|
+
inputRef: pW,
|
|
23224
|
+
open: PW(kW)
|
|
23227
23225
|
});
|
|
23228
23226
|
}
|
|
23229
23227
|
function reducer$2(e, r) {
|
|
@@ -23455,47 +23453,47 @@ ${c}
|
|
|
23455
23453
|
html: I
|
|
23456
23454
|
})
|
|
23457
23455
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
23458
|
-
let q = w && "text-primary",
|
|
23459
|
-
r[48] !== q || r[49] !==
|
|
23456
|
+
let q = w && "text-primary", pW = T && "text-destructive", mW;
|
|
23457
|
+
r[48] !== q || r[49] !== pW ? (mW = cn(q, pW), r[48] = q, r[49] = pW, r[50] = mW) : mW = r[50];
|
|
23460
23458
|
let Z;
|
|
23461
|
-
r[51] ===
|
|
23459
|
+
r[51] === mW ? Z = r[52] : (Z = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23462
23460
|
strokeWidth: 1.4,
|
|
23463
|
-
className:
|
|
23464
|
-
}), r[51] =
|
|
23465
|
-
let
|
|
23466
|
-
r[53] !==
|
|
23467
|
-
let _W;
|
|
23468
|
-
r[56] === gW ? _W = r[57] : (_W = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23469
|
-
strokeWidth: 1.4,
|
|
23470
|
-
className: gW
|
|
23471
|
-
}), r[56] = gW, r[57] = _W);
|
|
23461
|
+
className: mW
|
|
23462
|
+
}), r[51] = mW, r[52] = Z);
|
|
23463
|
+
let hW = w && "text-primary", gW = T && "text-destructive", _W;
|
|
23464
|
+
r[53] !== hW || r[54] !== gW ? (_W = cn(hW, gW), r[53] = hW, r[54] = gW, r[55] = _W) : _W = r[55];
|
|
23472
23465
|
let vW;
|
|
23473
|
-
r[
|
|
23466
|
+
r[56] === _W ? vW = r[57] : (vW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23467
|
+
strokeWidth: 1.4,
|
|
23468
|
+
className: _W
|
|
23469
|
+
}), r[56] = _W, r[57] = vW);
|
|
23470
|
+
let yW;
|
|
23471
|
+
r[58] !== Z || r[59] !== vW ? (yW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23474
23472
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
23475
23473
|
children: [
|
|
23476
23474
|
Z,
|
|
23477
|
-
|
|
23475
|
+
vW
|
|
23478
23476
|
]
|
|
23479
|
-
}), r[58] = Z, r[59] =
|
|
23480
|
-
let
|
|
23481
|
-
r[61] !== G || r[62] !==
|
|
23477
|
+
}), r[58] = Z, r[59] = vW, r[60] = yW) : yW = r[60];
|
|
23478
|
+
let bW;
|
|
23479
|
+
r[61] !== G || r[62] !== yW ? (bW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23482
23480
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
23483
23481
|
children: [
|
|
23484
23482
|
G,
|
|
23485
|
-
|
|
23483
|
+
yW
|
|
23486
23484
|
]
|
|
23487
|
-
}), r[61] = G, r[62] =
|
|
23488
|
-
let
|
|
23489
|
-
r[64] !== W || r[65] !==
|
|
23485
|
+
}), r[61] = G, r[62] = yW, r[63] = bW) : bW = r[63];
|
|
23486
|
+
let xW;
|
|
23487
|
+
r[64] !== W || r[65] !== bW || r[66] !== z || r[67] !== B ? (xW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23490
23488
|
className: z,
|
|
23491
23489
|
...B,
|
|
23492
23490
|
children: [
|
|
23493
23491
|
W,
|
|
23494
|
-
|
|
23492
|
+
bW
|
|
23495
23493
|
]
|
|
23496
|
-
}), r[64] = W, r[65] =
|
|
23497
|
-
let
|
|
23498
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
23494
|
+
}), r[64] = W, r[65] = bW, r[66] = z, r[67] = B, r[68] = xW) : xW = r[68];
|
|
23495
|
+
let SW;
|
|
23496
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (SW = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
23499
23497
|
className: "flex flex-row gap-1",
|
|
23500
23498
|
children: [
|
|
23501
23499
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23531,17 +23529,17 @@ ${c}
|
|
|
23531
23529
|
})
|
|
23532
23530
|
})
|
|
23533
23531
|
]
|
|
23534
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
23535
|
-
let
|
|
23536
|
-
return r[75] !==
|
|
23532
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = SW) : SW = r[74];
|
|
23533
|
+
let wW;
|
|
23534
|
+
return r[75] !== xW || r[76] !== SW ? (wW = (0, import_jsx_runtime.jsx)("section", {
|
|
23537
23535
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
23538
23536
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
23539
23537
|
children: [
|
|
23540
|
-
|
|
23541
|
-
|
|
23538
|
+
xW,
|
|
23539
|
+
SW
|
|
23542
23540
|
]
|
|
23543
23541
|
})
|
|
23544
|
-
}), r[75] =
|
|
23542
|
+
}), r[75] = xW, r[76] = SW, r[77] = wW) : wW = r[77], wW;
|
|
23545
23543
|
};
|
|
23546
23544
|
function _temp$11(e) {
|
|
23547
23545
|
Logger.error(e), toast({
|
|
@@ -23637,75 +23635,75 @@ ${c}
|
|
|
23637
23635
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
23638
23636
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23639
23637
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
23640
|
-
let
|
|
23641
|
-
r[13] === f ?
|
|
23638
|
+
let pW;
|
|
23639
|
+
r[13] === f ? pW = r[14] : (pW = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23642
23640
|
className: "text-center",
|
|
23643
23641
|
children: renderHTML({
|
|
23644
23642
|
html: f
|
|
23645
23643
|
})
|
|
23646
|
-
}), r[13] = f, r[14] =
|
|
23647
|
-
let
|
|
23648
|
-
r[15] === L ?
|
|
23644
|
+
}), r[13] = f, r[14] = pW);
|
|
23645
|
+
let mW;
|
|
23646
|
+
r[15] === L ? mW = r[16] : (mW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
23649
23647
|
kind: "danger",
|
|
23650
23648
|
className: "rounded",
|
|
23651
23649
|
children: L ?? "Invalid input"
|
|
23652
|
-
}), r[15] = L, r[16] =
|
|
23650
|
+
}), r[15] = L, r[16] = mW);
|
|
23653
23651
|
let Z;
|
|
23654
23652
|
r[17] === c ? Z = r[18] : (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
23655
23653
|
children: c
|
|
23656
23654
|
}), r[17] = c, r[18] = Z);
|
|
23657
|
-
let
|
|
23658
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
23655
|
+
let hW;
|
|
23656
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (hW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
23659
23657
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
23660
23658
|
variant: "text",
|
|
23661
23659
|
onClick: (e2) => {
|
|
23662
23660
|
e2.preventDefault(), B();
|
|
23663
23661
|
},
|
|
23664
23662
|
children: S
|
|
23665
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
23666
|
-
let
|
|
23667
|
-
r[23] === h ?
|
|
23663
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = hW) : hW = r[22];
|
|
23664
|
+
let gW = v || h, _W;
|
|
23665
|
+
r[23] === h ? _W = r[24] : (_W = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
23668
23666
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
23669
|
-
}), r[23] = h, r[24] =
|
|
23670
|
-
let
|
|
23671
|
-
r[25] !== g || r[26] !==
|
|
23667
|
+
}), r[23] = h, r[24] = _W);
|
|
23668
|
+
let vW;
|
|
23669
|
+
r[25] !== g || r[26] !== gW || r[27] !== _W || r[28] !== I ? (vW = (0, import_jsx_runtime.jsxs)(Button, {
|
|
23672
23670
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
23673
23671
|
variant: I,
|
|
23674
|
-
disabled:
|
|
23672
|
+
disabled: gW,
|
|
23675
23673
|
type: "submit",
|
|
23676
23674
|
children: [
|
|
23677
|
-
|
|
23675
|
+
_W,
|
|
23678
23676
|
g
|
|
23679
23677
|
]
|
|
23680
|
-
}), r[25] = g, r[26] =
|
|
23681
|
-
let vW;
|
|
23682
|
-
r[30] !== _ || r[31] !== _W ? (vW = withTooltip(_W, _), r[30] = _, r[31] = _W, r[32] = vW) : vW = r[32];
|
|
23678
|
+
}), r[25] = g, r[26] = gW, r[27] = _W, r[28] = I, r[29] = vW) : vW = r[29];
|
|
23683
23679
|
let yW;
|
|
23684
|
-
r[
|
|
23680
|
+
r[30] !== _ || r[31] !== vW ? (yW = withTooltip(vW, _), r[30] = _, r[31] = vW, r[32] = yW) : yW = r[32];
|
|
23681
|
+
let bW;
|
|
23682
|
+
r[33] !== yW || r[34] !== hW ? (bW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23685
23683
|
className: "flex justify-end gap-2 font-code",
|
|
23686
23684
|
children: [
|
|
23687
|
-
|
|
23688
|
-
|
|
23685
|
+
hW,
|
|
23686
|
+
yW
|
|
23689
23687
|
]
|
|
23690
|
-
}), r[33] =
|
|
23691
|
-
let
|
|
23692
|
-
r[36] !==
|
|
23688
|
+
}), r[33] = yW, r[34] = hW, r[35] = bW) : bW = r[35];
|
|
23689
|
+
let xW;
|
|
23690
|
+
r[36] !== bW || r[37] !== G || r[38] !== q || r[39] !== pW || r[40] !== mW || r[41] !== Z ? (xW = (0, import_jsx_runtime.jsxs)("div", {
|
|
23693
23691
|
className: G,
|
|
23694
23692
|
onKeyDown: q,
|
|
23695
23693
|
children: [
|
|
23696
|
-
fW,
|
|
23697
23694
|
pW,
|
|
23695
|
+
mW,
|
|
23698
23696
|
Z,
|
|
23699
|
-
|
|
23697
|
+
bW
|
|
23700
23698
|
]
|
|
23701
|
-
}), r[36] =
|
|
23702
|
-
let
|
|
23703
|
-
return r[43] !==
|
|
23699
|
+
}), r[36] = bW, r[37] = G, r[38] = q, r[39] = pW, r[40] = mW, r[41] = Z, r[42] = xW) : xW = r[42];
|
|
23700
|
+
let SW;
|
|
23701
|
+
return r[43] !== xW || r[44] !== H ? (SW = (0, import_jsx_runtime.jsx)("form", {
|
|
23704
23702
|
className: "contents",
|
|
23705
23703
|
ref: j,
|
|
23706
23704
|
onSubmit: H,
|
|
23707
|
-
children:
|
|
23708
|
-
}), r[43] =
|
|
23705
|
+
children: xW
|
|
23706
|
+
}), r[43] = xW, r[44] = H, r[45] = SW) : SW = r[45], SW;
|
|
23709
23707
|
};
|
|
23710
23708
|
var Form = (e) => {
|
|
23711
23709
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -25478,8 +25476,8 @@ ${c}
|
|
|
25478
25476
|
points: extractSunburstPoints(e2.points)
|
|
25479
25477
|
}));
|
|
25480
25478
|
}, r[29] = u, r[30] = G);
|
|
25481
|
-
let q = useEvent_default(G),
|
|
25482
|
-
r[31] === u ?
|
|
25479
|
+
let q = useEvent_default(G), pW;
|
|
25480
|
+
r[31] === u ? pW = r[32] : (pW = (e2) => {
|
|
25483
25481
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25484
25482
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25485
25483
|
u((e3) => ({
|
|
@@ -25490,8 +25488,8 @@ ${c}
|
|
|
25490
25488
|
points: r2,
|
|
25491
25489
|
indices: c2
|
|
25492
25490
|
}));
|
|
25493
|
-
}, r[31] = u, r[32] =
|
|
25494
|
-
let
|
|
25491
|
+
}, r[31] = u, r[32] = pW);
|
|
25492
|
+
let mW = useEvent_default(pW), Z;
|
|
25495
25493
|
r[33] === u ? Z = r[34] : (Z = (e2) => {
|
|
25496
25494
|
e2 && u((r2) => ({
|
|
25497
25495
|
...r2,
|
|
@@ -25502,8 +25500,8 @@ ${c}
|
|
|
25502
25500
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
25503
25501
|
}));
|
|
25504
25502
|
}, r[33] = u, r[34] = Z);
|
|
25505
|
-
let
|
|
25506
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
25503
|
+
let hW = useEvent_default(Z), gW = m.frames ?? void 0, _W = useEvent_default(_temp3$3), vW;
|
|
25504
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== mW || r[42] !== hW || r[43] !== gW || r[44] !== _W || r[45] !== R ? (vW = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25507
25505
|
...m,
|
|
25508
25506
|
layout: h,
|
|
25509
25507
|
onRelayout: R,
|
|
@@ -25511,13 +25509,13 @@ ${c}
|
|
|
25511
25509
|
onTreemapClick: W,
|
|
25512
25510
|
onSunburstClick: q,
|
|
25513
25511
|
config: L,
|
|
25514
|
-
onClick:
|
|
25515
|
-
onSelected:
|
|
25512
|
+
onClick: mW,
|
|
25513
|
+
onSelected: hW,
|
|
25516
25514
|
className: "w-full",
|
|
25517
25515
|
useResizeHandler: true,
|
|
25518
|
-
frames:
|
|
25519
|
-
onError:
|
|
25520
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
25516
|
+
frames: gW,
|
|
25517
|
+
onError: _W
|
|
25518
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = mW, r[42] = hW, r[43] = gW, r[44] = _W, r[45] = R, r[46] = vW) : vW = r[46], vW;
|
|
25521
25519
|
});
|
|
25522
25520
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25523
25521
|
function _temp$8(e) {
|
|
@@ -25649,8 +25647,8 @@ ${c}
|
|
|
25649
25647
|
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];
|
|
25650
25648
|
let q;
|
|
25651
25649
|
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];
|
|
25652
|
-
let
|
|
25653
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
25650
|
+
let pW;
|
|
25651
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (pW = (0, import_jsx_runtime.jsx)(Track, {
|
|
25654
25652
|
ref: E,
|
|
25655
25653
|
"data-testid": "track",
|
|
25656
25654
|
className: G,
|
|
@@ -25661,9 +25659,9 @@ ${c}
|
|
|
25661
25659
|
onPointerMove: z,
|
|
25662
25660
|
onPointerUp: H
|
|
25663
25661
|
})
|
|
25664
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25665
|
-
let
|
|
25666
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
25662
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = pW) : pW = c[22];
|
|
25663
|
+
let mW;
|
|
25664
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (mW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25667
25665
|
asChild: true,
|
|
25668
25666
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25669
25667
|
"data-testid": "thumb",
|
|
@@ -25673,30 +25671,30 @@ ${c}
|
|
|
25673
25671
|
onMouseEnter: m.setTrue,
|
|
25674
25672
|
onMouseLeave: m.setFalse
|
|
25675
25673
|
})
|
|
25676
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
25674
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = mW) : mW = c[25];
|
|
25677
25675
|
let Z;
|
|
25678
25676
|
c[26] !== h || c[27] !== u.value || c[28] !== d ? (Z = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25679
25677
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
25680
25678
|
locale: h
|
|
25681
25679
|
})
|
|
25682
25680
|
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = Z) : Z = c[29];
|
|
25683
|
-
let mW;
|
|
25684
|
-
c[30] === Z ? mW = c[31] : (mW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25685
|
-
children: Z
|
|
25686
|
-
}), c[30] = Z, c[31] = mW);
|
|
25687
25681
|
let hW;
|
|
25688
|
-
c[
|
|
25682
|
+
c[30] === Z ? hW = c[31] : (hW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25683
|
+
children: Z
|
|
25684
|
+
}), c[30] = Z, c[31] = hW);
|
|
25685
|
+
let gW;
|
|
25686
|
+
c[32] !== f || c[33] !== mW || c[34] !== hW ? (gW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25689
25687
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25690
25688
|
delayDuration: 0,
|
|
25691
25689
|
open: f,
|
|
25692
25690
|
children: [
|
|
25693
|
-
|
|
25694
|
-
|
|
25691
|
+
mW,
|
|
25692
|
+
hW
|
|
25695
25693
|
]
|
|
25696
25694
|
})
|
|
25697
|
-
}), c[32] = f, c[33] =
|
|
25698
|
-
let
|
|
25699
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
25695
|
+
}), c[32] = f, c[33] = mW, c[34] = hW, c[35] = gW) : gW = c[35];
|
|
25696
|
+
let _W;
|
|
25697
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (_W = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25700
25698
|
asChild: true,
|
|
25701
25699
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25702
25700
|
"data-testid": "thumb",
|
|
@@ -25706,39 +25704,39 @@ ${c}
|
|
|
25706
25704
|
onMouseEnter: m.setTrue,
|
|
25707
25705
|
onMouseLeave: m.setFalse
|
|
25708
25706
|
})
|
|
25709
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
25710
|
-
let
|
|
25711
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
25707
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = _W) : _W = c[38];
|
|
25708
|
+
let vW;
|
|
25709
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (vW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25712
25710
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
25713
25711
|
locale: h
|
|
25714
25712
|
})
|
|
25715
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
25716
|
-
let vW;
|
|
25717
|
-
c[43] === _W ? vW = c[44] : (vW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25718
|
-
children: _W
|
|
25719
|
-
}), c[43] = _W, c[44] = vW);
|
|
25713
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = vW) : vW = c[42];
|
|
25720
25714
|
let yW;
|
|
25721
|
-
c[
|
|
25715
|
+
c[43] === vW ? yW = c[44] : (yW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25716
|
+
children: vW
|
|
25717
|
+
}), c[43] = vW, c[44] = yW);
|
|
25718
|
+
let bW;
|
|
25719
|
+
c[45] !== f || c[46] !== _W || c[47] !== yW ? (bW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25722
25720
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25723
25721
|
delayDuration: 0,
|
|
25724
25722
|
open: f,
|
|
25725
25723
|
children: [
|
|
25726
|
-
|
|
25727
|
-
|
|
25724
|
+
_W,
|
|
25725
|
+
yW
|
|
25728
25726
|
]
|
|
25729
25727
|
})
|
|
25730
|
-
}), c[45] = f, c[46] =
|
|
25731
|
-
let
|
|
25732
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25728
|
+
}), c[45] = f, c[46] = _W, c[47] = yW, c[48] = bW) : bW = c[48];
|
|
25729
|
+
let xW;
|
|
25730
|
+
return c[49] !== M || c[50] !== u || c[51] !== pW || c[52] !== gW || c[53] !== bW || c[54] !== W ? (xW = (0, import_jsx_runtime.jsxs)(Root, {
|
|
25733
25731
|
ref: M,
|
|
25734
25732
|
className: W,
|
|
25735
25733
|
...u,
|
|
25736
25734
|
children: [
|
|
25737
|
-
|
|
25738
|
-
|
|
25739
|
-
|
|
25735
|
+
pW,
|
|
25736
|
+
gW,
|
|
25737
|
+
bW
|
|
25740
25738
|
]
|
|
25741
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25739
|
+
}), c[49] = M, c[50] = u, c[51] = pW, c[52] = gW, c[53] = bW, c[54] = W, c[55] = xW) : xW = c[55], xW;
|
|
25742
25740
|
});
|
|
25743
25741
|
RangeSlider.displayName = Root.displayName;
|
|
25744
25742
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25789,14 +25787,14 @@ ${c}
|
|
|
25789
25787
|
}, q = (e2) => {
|
|
25790
25788
|
h && l(e2);
|
|
25791
25789
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
25792
|
-
let
|
|
25793
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
25790
|
+
let pW, mW;
|
|
25791
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (pW = () => {
|
|
25794
25792
|
h && !dequal(T, u) && l(T);
|
|
25795
|
-
},
|
|
25793
|
+
}, mW = () => {
|
|
25796
25794
|
h && !dequal(T, u) && l(T);
|
|
25797
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
25795
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = pW, r[19] = mW) : (pW = r[18], mW = r[19]);
|
|
25798
25796
|
let Z;
|
|
25799
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !==
|
|
25797
|
+
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] !== pW || r[31] !== mW || r[32] !== b ? (Z = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25800
25798
|
id: S,
|
|
25801
25799
|
className: W,
|
|
25802
25800
|
value: T,
|
|
@@ -25807,36 +25805,36 @@ ${c}
|
|
|
25807
25805
|
disabled: y,
|
|
25808
25806
|
onValueChange: G,
|
|
25809
25807
|
onValueCommit: q,
|
|
25810
|
-
onPointerUp:
|
|
25811
|
-
onMouseUp:
|
|
25808
|
+
onPointerUp: pW,
|
|
25809
|
+
onMouseUp: mW,
|
|
25812
25810
|
valueMap: b
|
|
25813
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
25814
|
-
let
|
|
25815
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
25811
|
+
}), 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] = pW, r[31] = mW, r[32] = b, r[33] = Z) : Z = r[33];
|
|
25812
|
+
let hW;
|
|
25813
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (hW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25816
25814
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
25817
25815
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
25818
25816
|
locale: w
|
|
25819
25817
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
25820
25818
|
locale: w
|
|
25821
25819
|
})}`
|
|
25822
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
25823
|
-
let
|
|
25824
|
-
r[39] !== Z || r[40] !==
|
|
25820
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = hW) : hW = r[38];
|
|
25821
|
+
let gW;
|
|
25822
|
+
r[39] !== Z || r[40] !== hW || r[41] !== B ? (gW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25825
25823
|
className: B,
|
|
25826
25824
|
children: [
|
|
25827
25825
|
Z,
|
|
25828
|
-
|
|
25826
|
+
hW
|
|
25829
25827
|
]
|
|
25830
|
-
}), r[39] = Z, r[40] =
|
|
25831
|
-
let
|
|
25832
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
25828
|
+
}), r[39] = Z, r[40] = hW, r[41] = B, r[42] = gW) : gW = r[42];
|
|
25829
|
+
let _W;
|
|
25830
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== gW || r[47] !== M || r[48] !== L ? (_W = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25833
25831
|
label: c,
|
|
25834
25832
|
id: S,
|
|
25835
25833
|
align: M,
|
|
25836
25834
|
className: L,
|
|
25837
25835
|
fullWidth: v,
|
|
25838
|
-
children:
|
|
25839
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
25836
|
+
children: gW
|
|
25837
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = gW, r[47] = M, r[48] = L, r[49] = _W) : _W = r[49], _W;
|
|
25840
25838
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
25841
25839
|
r.exports = u;
|
|
25842
25840
|
var c = {
|
|
@@ -29127,7 +29125,7 @@ ${c}
|
|
|
29127
29125
|
areRegExpsEqual: H,
|
|
29128
29126
|
areSetsEqual: W,
|
|
29129
29127
|
createIsNestedEqual: r2
|
|
29130
|
-
}),
|
|
29128
|
+
}), pW = Object.freeze({
|
|
29131
29129
|
areArraysEqual: O,
|
|
29132
29130
|
areDatesEqual: j,
|
|
29133
29131
|
areMapsEqual: I,
|
|
@@ -29135,40 +29133,40 @@ ${c}
|
|
|
29135
29133
|
areRegExpsEqual: H,
|
|
29136
29134
|
areSetsEqual: G,
|
|
29137
29135
|
createIsNestedEqual: r2
|
|
29138
|
-
}),
|
|
29136
|
+
}), mW = T(q);
|
|
29139
29137
|
function Z(e3, r3) {
|
|
29140
|
-
return
|
|
29138
|
+
return mW(e3, r3, void 0);
|
|
29141
29139
|
}
|
|
29142
|
-
var
|
|
29140
|
+
var hW = T(l(q, {
|
|
29143
29141
|
createIsNestedEqual: function() {
|
|
29144
29142
|
return f;
|
|
29145
29143
|
}
|
|
29146
29144
|
}));
|
|
29147
|
-
function
|
|
29148
|
-
return
|
|
29145
|
+
function gW(e3, r3) {
|
|
29146
|
+
return hW(e3, r3, void 0);
|
|
29149
29147
|
}
|
|
29150
|
-
var
|
|
29151
|
-
function
|
|
29152
|
-
return
|
|
29148
|
+
var _W = T(pW);
|
|
29149
|
+
function vW(e3, r3) {
|
|
29150
|
+
return _W(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29153
29151
|
}
|
|
29154
|
-
var
|
|
29152
|
+
var yW = T(l(pW, {
|
|
29155
29153
|
createIsNestedEqual: function() {
|
|
29156
29154
|
return f;
|
|
29157
29155
|
}
|
|
29158
29156
|
}));
|
|
29159
|
-
function
|
|
29160
|
-
return
|
|
29157
|
+
function bW(e3, r3) {
|
|
29158
|
+
return yW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29161
29159
|
}
|
|
29162
|
-
function
|
|
29160
|
+
function xW(e3) {
|
|
29163
29161
|
return T(l(q, e3(q)));
|
|
29164
29162
|
}
|
|
29165
|
-
function
|
|
29166
|
-
var r3 = T(l(
|
|
29163
|
+
function SW(e3) {
|
|
29164
|
+
var r3 = T(l(pW, e3(pW)));
|
|
29167
29165
|
return (function(e4, c2, l2) {
|
|
29168
29166
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29169
29167
|
});
|
|
29170
29168
|
}
|
|
29171
|
-
e2.circularDeepEqual =
|
|
29169
|
+
e2.circularDeepEqual = vW, e2.circularShallowEqual = bW, e2.createCustomCircularEqual = SW, e2.createCustomEqual = xW, e2.deepEqual = Z, e2.sameValueZeroEqual = f, e2.shallowEqual = gW, Object.defineProperty(e2, "__esModule", {
|
|
29172
29170
|
value: true
|
|
29173
29171
|
});
|
|
29174
29172
|
}));
|
|
@@ -29194,7 +29192,7 @@ ${c}
|
|
|
29194
29192
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
29195
29193
|
Object.defineProperty(e, "__esModule", {
|
|
29196
29194
|
value: true
|
|
29197
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
29195
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = OW, 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 = bW, e.setTopLeft = SW, e.setTransform = xW, e.sortLayoutItems = CW, e.sortLayoutItemsByColRow = TW, e.sortLayoutItemsByRowCol = wW, e.synchronizeLayoutWithChildren = EW, e.validateLayout = DW, e.withLayoutItem = v;
|
|
29198
29196
|
var r = require_fast_equals(), c = l(require_react());
|
|
29199
29197
|
function l(e2) {
|
|
29200
29198
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -29299,7 +29297,7 @@ ${c}
|
|
|
29299
29297
|
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);
|
|
29300
29298
|
}
|
|
29301
29299
|
function T(e2, r2, c2, l2) {
|
|
29302
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
29300
|
+
let u2 = B(e2), d2 = h(u2), f2 = CW(e2, r2), p2 = Array(e2.length);
|
|
29303
29301
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
29304
29302
|
let h3 = y(f2[m2]);
|
|
29305
29303
|
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;
|
|
@@ -29357,7 +29355,7 @@ ${c}
|
|
|
29357
29355
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
29358
29356
|
let h2 = r2.x, _2 = r2.y;
|
|
29359
29357
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
29360
|
-
let v2 =
|
|
29358
|
+
let v2 = CW(e2, f2);
|
|
29361
29359
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
29362
29360
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
29363
29361
|
if (b2 && m2) return g(e2);
|
|
@@ -29391,61 +29389,61 @@ ${c}
|
|
|
29391
29389
|
function G(e2) {
|
|
29392
29390
|
return e2 * 100 + "%";
|
|
29393
29391
|
}
|
|
29394
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
29392
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, pW = (e2, r2, c2) => e2 < 0 ? r2 : c2, mW = (e2) => Math.max(0, e2), Z = (e2) => Math.max(0, e2), hW = (e2, r2, c2) => {
|
|
29395
29393
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29396
29394
|
return {
|
|
29397
29395
|
left: l2,
|
|
29398
29396
|
width: d2,
|
|
29399
|
-
height:
|
|
29397
|
+
height: pW(f2, e2.height, u2),
|
|
29400
29398
|
top: Z(f2)
|
|
29401
29399
|
};
|
|
29402
|
-
},
|
|
29400
|
+
}, gW = (e2, r2, c2) => {
|
|
29403
29401
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29404
29402
|
return {
|
|
29405
29403
|
top: l2,
|
|
29406
29404
|
height: d2,
|
|
29407
29405
|
width: q(e2.left, e2.width, f2, c2),
|
|
29408
|
-
left:
|
|
29406
|
+
left: mW(u2)
|
|
29409
29407
|
};
|
|
29410
|
-
},
|
|
29408
|
+
}, _W = (e2, r2, c2) => {
|
|
29411
29409
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29412
29410
|
return {
|
|
29413
29411
|
height: u2,
|
|
29414
29412
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
29415
29413
|
top: Z(l2),
|
|
29416
|
-
left:
|
|
29414
|
+
left: mW(f2)
|
|
29417
29415
|
};
|
|
29418
|
-
},
|
|
29416
|
+
}, vW = (e2, r2, c2) => {
|
|
29419
29417
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29420
29418
|
return {
|
|
29421
29419
|
width: f2,
|
|
29422
29420
|
left: u2,
|
|
29423
|
-
height:
|
|
29421
|
+
height: pW(l2, e2.height, d2),
|
|
29424
29422
|
top: Z(l2)
|
|
29425
29423
|
};
|
|
29426
|
-
},
|
|
29427
|
-
n:
|
|
29424
|
+
}, yW = {
|
|
29425
|
+
n: hW,
|
|
29428
29426
|
ne: function() {
|
|
29429
|
-
return
|
|
29427
|
+
return hW(arguments.length <= 0 ? void 0 : arguments[0], gW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29430
29428
|
},
|
|
29431
|
-
e:
|
|
29429
|
+
e: gW,
|
|
29432
29430
|
se: function() {
|
|
29433
|
-
return
|
|
29431
|
+
return vW(arguments.length <= 0 ? void 0 : arguments[0], gW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29434
29432
|
},
|
|
29435
|
-
s:
|
|
29433
|
+
s: vW,
|
|
29436
29434
|
sw: function() {
|
|
29437
|
-
return
|
|
29435
|
+
return vW(arguments.length <= 0 ? void 0 : arguments[0], _W(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29438
29436
|
},
|
|
29439
|
-
w:
|
|
29437
|
+
w: _W,
|
|
29440
29438
|
nw: function() {
|
|
29441
|
-
return
|
|
29439
|
+
return hW(arguments.length <= 0 ? void 0 : arguments[0], _W(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29442
29440
|
}
|
|
29443
29441
|
};
|
|
29444
|
-
function
|
|
29445
|
-
let u2 =
|
|
29442
|
+
function bW(e2, r2, c2, l2) {
|
|
29443
|
+
let u2 = yW[e2];
|
|
29446
29444
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
29447
29445
|
}
|
|
29448
|
-
function
|
|
29446
|
+
function xW(e2) {
|
|
29449
29447
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
29450
29448
|
return {
|
|
29451
29449
|
transform: d2,
|
|
@@ -29458,7 +29456,7 @@ ${c}
|
|
|
29458
29456
|
position: "absolute"
|
|
29459
29457
|
};
|
|
29460
29458
|
}
|
|
29461
|
-
function
|
|
29459
|
+
function SW(e2) {
|
|
29462
29460
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
29463
29461
|
return {
|
|
29464
29462
|
top: `${r2}px`,
|
|
@@ -29468,20 +29466,20 @@ ${c}
|
|
|
29468
29466
|
position: "absolute"
|
|
29469
29467
|
};
|
|
29470
29468
|
}
|
|
29471
|
-
function
|
|
29472
|
-
return r2 === "horizontal" ?
|
|
29469
|
+
function CW(e2, r2) {
|
|
29470
|
+
return r2 === "horizontal" ? TW(e2) : r2 === "vertical" ? wW(e2) : e2;
|
|
29473
29471
|
}
|
|
29474
|
-
function
|
|
29472
|
+
function wW(e2) {
|
|
29475
29473
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29476
29474
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
29477
29475
|
});
|
|
29478
29476
|
}
|
|
29479
|
-
function
|
|
29477
|
+
function TW(e2) {
|
|
29480
29478
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29481
29479
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
29482
29480
|
});
|
|
29483
29481
|
}
|
|
29484
|
-
function
|
|
29482
|
+
function EW(e2, r2, l2, u2, f2) {
|
|
29485
29483
|
e2 || (e2 = []);
|
|
29486
29484
|
let p2 = [];
|
|
29487
29485
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -29502,7 +29500,7 @@ ${c}
|
|
|
29502
29500
|
});
|
|
29503
29501
|
return f2 ? m2 : T(m2, u2, l2);
|
|
29504
29502
|
}
|
|
29505
|
-
function
|
|
29503
|
+
function DW(e2) {
|
|
29506
29504
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
29507
29505
|
"x",
|
|
29508
29506
|
"y",
|
|
@@ -29519,7 +29517,7 @@ ${c}
|
|
|
29519
29517
|
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})`);
|
|
29520
29518
|
}
|
|
29521
29519
|
}
|
|
29522
|
-
function
|
|
29520
|
+
function OW(e2) {
|
|
29523
29521
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
29524
29522
|
return r2 === false ? null : c2;
|
|
29525
29523
|
}
|
|
@@ -32324,7 +32322,7 @@ ${c}
|
|
|
32324
32322
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32325
32323
|
let E = useIsDragging(), O, j;
|
|
32326
32324
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
32327
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
32325
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, pW, mW, Z, hW, gW, _W, vW, yW, bW, xW, SW, CW, wW, TW, EW, DW, OW;
|
|
32328
32326
|
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) {
|
|
32329
32327
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
32330
32328
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32343,23 +32341,23 @@ ${c}
|
|
|
32343
32341
|
});
|
|
32344
32342
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
32345
32343
|
let y2 = v2;
|
|
32346
|
-
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout,
|
|
32344
|
+
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, TW = "lg", r[58] === c.cells ? EW = r[59] : (EW = {
|
|
32347
32345
|
lg: c.cells
|
|
32348
|
-
}, r[58] = c.cells, r[59] =
|
|
32346
|
+
}, r[58] = c.cells, r[59] = EW), DW = L, OW = S, R = false;
|
|
32349
32347
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
32350
32348
|
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 ? [
|
|
32351
32349
|
20,
|
|
32352
32350
|
20
|
|
32353
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
32351
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, pW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (mW = (e3) => {
|
|
32354
32352
|
f || l({
|
|
32355
32353
|
...c,
|
|
32356
32354
|
cells: e3
|
|
32357
32355
|
});
|
|
32358
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
32356
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = mW) : mW = r[69], r[70] === g ? Z = r[71] : (Z = g ? {
|
|
32359
32357
|
i: g.i,
|
|
32360
32358
|
w: g.w || 2,
|
|
32361
32359
|
h: g.h || 2
|
|
32362
|
-
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (
|
|
32360
|
+
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (hW = (e3, r2, u2) => {
|
|
32363
32361
|
O.onDragStop(), r2 && l({
|
|
32364
32362
|
...c,
|
|
32365
32363
|
cells: [
|
|
@@ -32367,15 +32365,15 @@ ${c}
|
|
|
32367
32365
|
r2
|
|
32368
32366
|
]
|
|
32369
32367
|
});
|
|
32370
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
32368
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = hW) : hW = r[75], r[76] === O ? (gW = r[77], _W = r[78], vW = r[79]) : (gW = (e3, r2, c2, l2, u2) => {
|
|
32371
32369
|
O.onDragStart(u2);
|
|
32372
|
-
},
|
|
32370
|
+
}, _W = (e3, r2, c2, l2, u2) => {
|
|
32373
32371
|
O.onDragMove(u2);
|
|
32374
|
-
},
|
|
32372
|
+
}, vW = () => {
|
|
32375
32373
|
O.onDragStop();
|
|
32376
|
-
}, r[76] = O, r[77] =
|
|
32374
|
+
}, r[76] = O, r[77] = gW, r[78] = _W, r[79] = vW), yW = _temp3$2, bW = M, xW = M, SW = M, CW = M ? `.${DRAG_HANDLE}` : "noop";
|
|
32377
32375
|
let E2;
|
|
32378
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
32376
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), wW = u.filter(E2).map((r2) => {
|
|
32379
32377
|
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, {
|
|
32380
32378
|
code: r2.code,
|
|
32381
32379
|
mode: d,
|
|
@@ -32405,14 +32403,14 @@ ${c}
|
|
|
32405
32403
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32406
32404
|
children: m3
|
|
32407
32405
|
}, r2.id);
|
|
32408
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
32409
|
-
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29],
|
|
32410
|
-
let
|
|
32411
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !==
|
|
32412
|
-
breakpoint:
|
|
32413
|
-
layouts:
|
|
32414
|
-
style:
|
|
32415
|
-
cols:
|
|
32406
|
+
}), 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] = pW, r[31] = mW, r[32] = Z, r[33] = hW, r[34] = gW, r[35] = _W, r[36] = vW, r[37] = yW, r[38] = bW, r[39] = xW, r[40] = SW, r[41] = CW, r[42] = wW, r[43] = TW, r[44] = EW, r[45] = DW, r[46] = OW;
|
|
32407
|
+
} 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], pW = r[30], mW = r[31], Z = r[32], hW = r[33], gW = r[34], _W = r[35], vW = r[36], yW = r[37], bW = r[38], xW = r[39], SW = r[40], CW = r[41], wW = r[42], TW = r[43], EW = r[44], DW = r[45], OW = r[46];
|
|
32408
|
+
let kW;
|
|
32409
|
+
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] !== pW || r[91] !== mW || r[92] !== Z || r[93] !== hW || r[94] !== gW || r[95] !== _W || r[96] !== vW || r[97] !== yW || r[98] !== bW || r[99] !== xW || r[100] !== SW || r[101] !== CW || r[102] !== wW || r[103] !== TW || r[104] !== EW || r[105] !== DW || r[106] !== OW ? (kW = (0, import_jsx_runtime.jsx)(I, {
|
|
32410
|
+
breakpoint: TW,
|
|
32411
|
+
layouts: EW,
|
|
32412
|
+
style: DW,
|
|
32413
|
+
cols: OW,
|
|
32416
32414
|
allowOverlap: R,
|
|
32417
32415
|
className: z,
|
|
32418
32416
|
containerPadding: B,
|
|
@@ -32420,23 +32418,23 @@ ${c}
|
|
|
32420
32418
|
isBounded: W,
|
|
32421
32419
|
compactType: G,
|
|
32422
32420
|
preventCollision: q,
|
|
32423
|
-
rowHeight:
|
|
32424
|
-
onLayoutChange:
|
|
32421
|
+
rowHeight: pW,
|
|
32422
|
+
onLayoutChange: mW,
|
|
32425
32423
|
droppingItem: Z,
|
|
32426
|
-
onDrop:
|
|
32427
|
-
onDragStart:
|
|
32428
|
-
onDrag:
|
|
32429
|
-
onDragStop:
|
|
32430
|
-
onResizeStop:
|
|
32431
|
-
isDraggable:
|
|
32432
|
-
isDroppable:
|
|
32433
|
-
isResizable:
|
|
32434
|
-
draggableHandle:
|
|
32435
|
-
children:
|
|
32436
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] =
|
|
32437
|
-
let
|
|
32438
|
-
if (r[108] !== u || r[109] !==
|
|
32439
|
-
|
|
32424
|
+
onDrop: hW,
|
|
32425
|
+
onDragStart: gW,
|
|
32426
|
+
onDrag: _W,
|
|
32427
|
+
onDragStop: vW,
|
|
32428
|
+
onResizeStop: yW,
|
|
32429
|
+
isDraggable: bW,
|
|
32430
|
+
isDroppable: xW,
|
|
32431
|
+
isResizable: SW,
|
|
32432
|
+
draggableHandle: CW,
|
|
32433
|
+
children: wW
|
|
32434
|
+
}), 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] = pW, r[91] = mW, r[92] = Z, r[93] = hW, r[94] = gW, r[95] = _W, r[96] = vW, r[97] = yW, r[98] = bW, r[99] = xW, r[100] = SW, r[101] = CW, r[102] = wW, r[103] = TW, r[104] = EW, r[105] = DW, r[106] = OW, r[107] = kW) : kW = r[107];
|
|
32435
|
+
let AW = kW, jW, MW, NW, PW, FW, IW, LW;
|
|
32436
|
+
if (r[108] !== u || r[109] !== AW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
32437
|
+
LW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
32440
32438
|
bb0: {
|
|
32441
32439
|
let e2;
|
|
32442
32440
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -32444,14 +32442,14 @@ ${c}
|
|
|
32444
32442
|
if (f) {
|
|
32445
32443
|
if (c.bordered) {
|
|
32446
32444
|
let e4;
|
|
32447
|
-
r[127] !==
|
|
32445
|
+
r[127] !== AW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
32448
32446
|
className: "flex flex-1 flex-col items-center",
|
|
32449
32447
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
32450
32448
|
style: L,
|
|
32451
32449
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
32452
|
-
children:
|
|
32450
|
+
children: AW
|
|
32453
32451
|
})
|
|
32454
|
-
}), r[127] =
|
|
32452
|
+
}), r[127] = AW, r[128] = L, r[129] = e4) : e4 = r[129], AW = e4;
|
|
32455
32453
|
}
|
|
32456
32454
|
let e3 = m2.filter(_temp4$2), l2;
|
|
32457
32455
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -32463,9 +32461,9 @@ ${c}
|
|
|
32463
32461
|
stale: outputIsStale(e4, false),
|
|
32464
32462
|
isScrollable: false,
|
|
32465
32463
|
hidden: false
|
|
32466
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
32464
|
+
}, e4.id), r[130] = d, r[131] = l2), LW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32467
32465
|
children: [
|
|
32468
|
-
|
|
32466
|
+
AW,
|
|
32469
32467
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32470
32468
|
className: "hidden",
|
|
32471
32469
|
children: e3.map(l2)
|
|
@@ -32476,31 +32474,31 @@ ${c}
|
|
|
32476
32474
|
}
|
|
32477
32475
|
if (c.bordered) {
|
|
32478
32476
|
let e3;
|
|
32479
|
-
r[132] ===
|
|
32477
|
+
r[132] === AW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
32480
32478
|
className: "h-full overflow-auto",
|
|
32481
|
-
children:
|
|
32482
|
-
}), r[132] =
|
|
32479
|
+
children: AW
|
|
32480
|
+
}), r[132] = AW, r[133] = e3);
|
|
32483
32481
|
let c2;
|
|
32484
32482
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32485
32483
|
style: L,
|
|
32486
32484
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
32487
32485
|
children: e3
|
|
32488
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
32486
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], AW = c2;
|
|
32489
32487
|
}
|
|
32490
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
32488
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (IW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
32491
32489
|
layout: c,
|
|
32492
32490
|
setLayout: l,
|
|
32493
32491
|
isLocked: v,
|
|
32494
32492
|
setIsLocked: y
|
|
32495
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
32493
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = IW) : IW = r[140];
|
|
32496
32494
|
let g2;
|
|
32497
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32495
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (PW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = PW, r[142] = g2) : (PW = r[141], g2 = r[142]), r[143] === AW ? FW = r[144] : (FW = (0, import_jsx_runtime.jsx)("div", {
|
|
32498
32496
|
className: g2,
|
|
32499
|
-
children:
|
|
32500
|
-
}), r[143] =
|
|
32497
|
+
children: AW
|
|
32498
|
+
}), r[143] = AW, r[144] = FW), jW = "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") ? (MW = (0, import_jsx_runtime.jsx)("div", {
|
|
32501
32499
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
32502
32500
|
children: "Outputs"
|
|
32503
|
-
}), r[145] =
|
|
32501
|
+
}), r[145] = MW) : MW = r[145];
|
|
32504
32502
|
let b2;
|
|
32505
32503
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
32506
32504
|
draggable: true,
|
|
@@ -32526,34 +32524,34 @@ ${c}
|
|
|
32526
32524
|
stale: outputIsStale(e3, false),
|
|
32527
32525
|
hidden: false
|
|
32528
32526
|
})
|
|
32529
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
32530
|
-
}
|
|
32531
|
-
r[108] = u, r[109] =
|
|
32532
|
-
} else
|
|
32533
|
-
if (
|
|
32534
|
-
let LW;
|
|
32535
|
-
r[150] !== AW || r[151] !== jW || r[152] !== MW ? (LW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32536
|
-
className: AW,
|
|
32537
|
-
children: [
|
|
32538
|
-
jW,
|
|
32539
|
-
MW
|
|
32540
|
-
]
|
|
32541
|
-
}), r[150] = AW, r[151] = jW, r[152] = MW, r[153] = LW) : LW = r[153];
|
|
32527
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], NW = m2.map(b2);
|
|
32528
|
+
}
|
|
32529
|
+
r[108] = u, r[109] = AW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = jW, r[118] = MW, r[119] = NW, r[120] = PW, r[121] = FW, r[122] = IW, r[123] = LW, r[124] = AW;
|
|
32530
|
+
} else jW = r[117], MW = r[118], NW = r[119], PW = r[120], FW = r[121], IW = r[122], LW = r[123], AW = r[124];
|
|
32531
|
+
if (LW !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return LW;
|
|
32542
32532
|
let RW;
|
|
32543
|
-
r[
|
|
32544
|
-
className:
|
|
32533
|
+
r[150] !== jW || r[151] !== MW || r[152] !== NW ? (RW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32534
|
+
className: jW,
|
|
32545
32535
|
children: [
|
|
32546
|
-
|
|
32547
|
-
|
|
32536
|
+
MW,
|
|
32537
|
+
NW
|
|
32548
32538
|
]
|
|
32549
|
-
}), r[
|
|
32539
|
+
}), r[150] = jW, r[151] = MW, r[152] = NW, r[153] = RW) : RW = r[153];
|
|
32550
32540
|
let zW;
|
|
32551
|
-
|
|
32541
|
+
r[154] !== PW || r[155] !== FW || r[156] !== RW ? (zW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32542
|
+
className: PW,
|
|
32552
32543
|
children: [
|
|
32553
32544
|
FW,
|
|
32554
32545
|
RW
|
|
32555
32546
|
]
|
|
32556
|
-
}), r[
|
|
32547
|
+
}), r[154] = PW, r[155] = FW, r[156] = RW, r[157] = zW) : zW = r[157];
|
|
32548
|
+
let BW;
|
|
32549
|
+
return r[158] !== IW || r[159] !== zW ? (BW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32550
|
+
children: [
|
|
32551
|
+
IW,
|
|
32552
|
+
zW
|
|
32553
|
+
]
|
|
32554
|
+
}), r[158] = IW, r[159] = zW, r[160] = BW) : BW = r[160], BW;
|
|
32557
32555
|
};
|
|
32558
32556
|
var GridCell = (0, import_react.memo)((e) => {
|
|
32559
32557
|
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;
|
|
@@ -32854,25 +32852,25 @@ ${c}
|
|
|
32854
32852
|
G
|
|
32855
32853
|
]
|
|
32856
32854
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
32857
|
-
let fW;
|
|
32858
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32859
|
-
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32860
|
-
}), r[35] = fW) : fW = r[35];
|
|
32861
32855
|
let pW;
|
|
32862
|
-
r[
|
|
32856
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32857
|
+
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32858
|
+
}), r[35] = pW) : pW = r[35];
|
|
32859
|
+
let mW;
|
|
32860
|
+
r[36] === l ? mW = r[37] : (mW = (0, import_jsx_runtime.jsx)(X, {
|
|
32863
32861
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
32864
32862
|
onClick: () => l()
|
|
32865
|
-
}), r[36] = l, r[37] =
|
|
32863
|
+
}), r[36] = l, r[37] = mW);
|
|
32866
32864
|
let Z;
|
|
32867
|
-
return r[38] !== I || r[39] !== q || r[40] !==
|
|
32865
|
+
return r[38] !== I || r[39] !== q || r[40] !== mW || r[41] !== w ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
32868
32866
|
className: w,
|
|
32869
32867
|
children: [
|
|
32870
32868
|
I,
|
|
32871
32869
|
q,
|
|
32872
|
-
|
|
32873
|
-
|
|
32870
|
+
pW,
|
|
32871
|
+
mW
|
|
32874
32872
|
]
|
|
32875
|
-
}), r[38] = I, r[39] = q, r[40] =
|
|
32873
|
+
}), r[38] = I, r[39] = q, r[40] = mW, r[41] = w, r[42] = Z) : Z = r[42], Z;
|
|
32876
32874
|
};
|
|
32877
32875
|
function isSidebarCell(e) {
|
|
32878
32876
|
var _a3;
|
|
@@ -34876,28 +34874,28 @@ ${c}
|
|
|
34876
34874
|
}, [
|
|
34877
34875
|
T,
|
|
34878
34876
|
M
|
|
34879
|
-
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r),
|
|
34877
|
+
]), 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), pW = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34880
34878
|
j
|
|
34881
|
-
]),
|
|
34879
|
+
]), mW = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers: hW, measuringScheduled: gW } = useDroppableMeasuring(pW, {
|
|
34882
34880
|
dragging: w,
|
|
34883
34881
|
dependencies: [
|
|
34884
34882
|
O.x,
|
|
34885
34883
|
O.y
|
|
34886
34884
|
],
|
|
34887
|
-
config:
|
|
34888
|
-
}),
|
|
34885
|
+
config: mW.droppable
|
|
34886
|
+
}), _W = useCachedNode(E, T), vW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34889
34887
|
H
|
|
34890
|
-
]),
|
|
34888
|
+
]), yW = XW(), bW = useInitialRect(_W, mW.draggable.measure);
|
|
34891
34889
|
useLayoutShiftScrollCompensation({
|
|
34892
34890
|
activeNode: T == null ? null : E.get(T),
|
|
34893
|
-
config:
|
|
34894
|
-
initialRect:
|
|
34895
|
-
measure:
|
|
34891
|
+
config: yW.layoutShiftCompensation,
|
|
34892
|
+
initialRect: bW,
|
|
34893
|
+
measure: mW.draggable.measure
|
|
34896
34894
|
});
|
|
34897
|
-
let
|
|
34895
|
+
let xW = useRect(_W, mW.draggable.measure, bW), SW = useRect(_W ? _W.parentElement : null), CW = (0, import_react.useRef)({
|
|
34898
34896
|
activatorEvent: null,
|
|
34899
34897
|
active: null,
|
|
34900
|
-
activeNode:
|
|
34898
|
+
activeNode: _W,
|
|
34901
34899
|
collisionRect: null,
|
|
34902
34900
|
collisions: null,
|
|
34903
34901
|
droppableRects: Z,
|
|
@@ -34908,45 +34906,45 @@ ${c}
|
|
|
34908
34906
|
over: null,
|
|
34909
34907
|
scrollableAncestors: [],
|
|
34910
34908
|
scrollAdjustedTranslate: null
|
|
34911
|
-
}),
|
|
34912
|
-
measure:
|
|
34913
|
-
}),
|
|
34909
|
+
}), wW = j.getNodeFor((_a3 = CW.current.over) == null ? void 0 : _a3.id), TW = useDragOverlayMeasuring({
|
|
34910
|
+
measure: mW.dragOverlay.measure
|
|
34911
|
+
}), EW = TW.nodeRef.current ?? _W, DW = w ? TW.rect ?? xW : null, OW = !!(TW.nodeRef.current && TW.rect), kW = useRectDelta(OW ? null : xW), AW = useWindowRect(EW ? getWindow(EW) : null), jW = useScrollableAncestors(w ? wW ?? _W : null), MW = useRects(jW), NW = applyModifiers(m, {
|
|
34914
34912
|
transform: {
|
|
34915
|
-
x: O.x -
|
|
34916
|
-
y: O.y -
|
|
34913
|
+
x: O.x - kW.x,
|
|
34914
|
+
y: O.y - kW.y,
|
|
34917
34915
|
scaleX: 1,
|
|
34918
34916
|
scaleY: 1
|
|
34919
34917
|
},
|
|
34920
34918
|
activatorEvent: H,
|
|
34921
34919
|
active: L,
|
|
34922
|
-
activeNodeRect:
|
|
34923
|
-
containerNodeRect:
|
|
34924
|
-
draggingNodeRect:
|
|
34925
|
-
over:
|
|
34926
|
-
overlayNodeRect:
|
|
34927
|
-
scrollableAncestors:
|
|
34928
|
-
scrollableAncestorRects:
|
|
34929
|
-
windowRect:
|
|
34930
|
-
}),
|
|
34931
|
-
|
|
34932
|
-
]),
|
|
34920
|
+
activeNodeRect: xW,
|
|
34921
|
+
containerNodeRect: SW,
|
|
34922
|
+
draggingNodeRect: DW,
|
|
34923
|
+
over: CW.current.over,
|
|
34924
|
+
overlayNodeRect: TW.rect,
|
|
34925
|
+
scrollableAncestors: jW,
|
|
34926
|
+
scrollableAncestorRects: MW,
|
|
34927
|
+
windowRect: AW
|
|
34928
|
+
}), PW = vW ? add(vW, O) : null, FW = useScrollOffsets(jW), IW = useScrollOffsetsDelta(FW), LW = useScrollOffsetsDelta(FW, [
|
|
34929
|
+
xW
|
|
34930
|
+
]), RW = add(NW, IW), zW = DW ? getAdjustedRect(DW, NW) : null, BW = L && zW ? f({
|
|
34933
34931
|
active: L,
|
|
34934
|
-
collisionRect:
|
|
34932
|
+
collisionRect: zW,
|
|
34935
34933
|
droppableRects: Z,
|
|
34936
|
-
droppableContainers:
|
|
34937
|
-
pointerCoordinates:
|
|
34938
|
-
}) : null,
|
|
34934
|
+
droppableContainers: pW,
|
|
34935
|
+
pointerCoordinates: PW
|
|
34936
|
+
}) : null, VW = getFirstCollision(BW, "id"), [HW, UW] = (0, import_react.useState)(null), WW = adjustScale(OW ? NW : add(NW, LW), (HW == null ? void 0 : HW.rect) ?? null, xW), GW = (0, import_react.useRef)(null), KW = (0, import_react.useCallback)((e2, r2) => {
|
|
34939
34937
|
let { sensor: c2, options: l2 } = r2;
|
|
34940
34938
|
if (R.current == null) return;
|
|
34941
34939
|
let u2 = E.get(R.current);
|
|
34942
34940
|
if (!u2) return;
|
|
34943
34941
|
let d2 = e2.nativeEvent;
|
|
34944
|
-
|
|
34942
|
+
GW.current = new c2({
|
|
34945
34943
|
active: R.current,
|
|
34946
34944
|
activeNode: u2,
|
|
34947
34945
|
event: d2,
|
|
34948
34946
|
options: l2,
|
|
34949
|
-
context:
|
|
34947
|
+
context: CW,
|
|
34950
34948
|
onAbort(e3) {
|
|
34951
34949
|
if (!E.get(e3)) return;
|
|
34952
34950
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -34991,7 +34989,7 @@ ${c}
|
|
|
34991
34989
|
}), v({
|
|
34992
34990
|
type: "onDragStart",
|
|
34993
34991
|
event: u3
|
|
34994
|
-
}), B(
|
|
34992
|
+
}), B(GW.current), W(d2);
|
|
34995
34993
|
});
|
|
34996
34994
|
},
|
|
34997
34995
|
onMove(e3) {
|
|
@@ -35005,7 +35003,7 @@ ${c}
|
|
|
35005
35003
|
});
|
|
35006
35004
|
function f2(e3) {
|
|
35007
35005
|
return async function() {
|
|
35008
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
35006
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = CW.current, f3 = null;
|
|
35009
35007
|
if (r3 && u3) {
|
|
35010
35008
|
let { cancelDrop: p2 } = G.current;
|
|
35011
35009
|
f3 = {
|
|
@@ -35019,7 +35017,7 @@ ${c}
|
|
|
35019
35017
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
35020
35018
|
_({
|
|
35021
35019
|
type: e3
|
|
35022
|
-
}), S(Status.Uninitialized),
|
|
35020
|
+
}), S(Status.Uninitialized), UW(null), B(null), W(null), GW.current = null;
|
|
35023
35021
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
35024
35022
|
if (f3) {
|
|
35025
35023
|
let e4 = G.current[r4];
|
|
@@ -35033,7 +35031,7 @@ ${c}
|
|
|
35033
35031
|
}
|
|
35034
35032
|
}, [
|
|
35035
35033
|
E
|
|
35036
|
-
]),
|
|
35034
|
+
]), qW = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
35037
35035
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
35038
35036
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
35039
35037
|
let f2 = {
|
|
@@ -35041,26 +35039,26 @@ ${c}
|
|
|
35041
35039
|
};
|
|
35042
35040
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
35043
35041
|
capturedBy: r2.sensor
|
|
35044
|
-
}, R.current = l2,
|
|
35042
|
+
}, R.current = l2, KW(c2, r2));
|
|
35045
35043
|
}, [
|
|
35046
35044
|
E,
|
|
35047
|
-
|
|
35045
|
+
KW
|
|
35048
35046
|
]));
|
|
35049
35047
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
35050
|
-
|
|
35048
|
+
xW && b === Status.Initializing && S(Status.Initialized);
|
|
35051
35049
|
}, [
|
|
35052
|
-
|
|
35050
|
+
xW,
|
|
35053
35051
|
b
|
|
35054
35052
|
]), (0, import_react.useEffect)(() => {
|
|
35055
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
35053
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = CW.current;
|
|
35056
35054
|
if (!r2 || !c2) return;
|
|
35057
35055
|
let d2 = {
|
|
35058
35056
|
active: r2,
|
|
35059
35057
|
activatorEvent: c2,
|
|
35060
35058
|
collisions: l2,
|
|
35061
35059
|
delta: {
|
|
35062
|
-
x:
|
|
35063
|
-
y:
|
|
35060
|
+
x: RW.x,
|
|
35061
|
+
y: RW.y
|
|
35064
35062
|
},
|
|
35065
35063
|
over: u2
|
|
35066
35064
|
};
|
|
@@ -35071,12 +35069,12 @@ ${c}
|
|
|
35071
35069
|
});
|
|
35072
35070
|
});
|
|
35073
35071
|
}, [
|
|
35074
|
-
|
|
35075
|
-
|
|
35072
|
+
RW.x,
|
|
35073
|
+
RW.y
|
|
35076
35074
|
]), (0, import_react.useEffect)(() => {
|
|
35077
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
35075
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = CW.current;
|
|
35078
35076
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
35079
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
35077
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(VW), p2 = f2 && f2.rect.current ? {
|
|
35080
35078
|
id: f2.id,
|
|
35081
35079
|
rect: f2.rect.current,
|
|
35082
35080
|
data: f2.data,
|
|
@@ -35092,127 +35090,127 @@ ${c}
|
|
|
35092
35090
|
over: p2
|
|
35093
35091
|
};
|
|
35094
35092
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
35095
|
-
|
|
35093
|
+
UW(p2), d2 == null ? void 0 : d2(m2), v({
|
|
35096
35094
|
type: "onDragOver",
|
|
35097
35095
|
event: m2
|
|
35098
35096
|
});
|
|
35099
35097
|
});
|
|
35100
35098
|
}, [
|
|
35101
|
-
|
|
35099
|
+
VW
|
|
35102
35100
|
]), useIsomorphicLayoutEffect(() => {
|
|
35103
|
-
|
|
35101
|
+
CW.current = {
|
|
35104
35102
|
activatorEvent: H,
|
|
35105
35103
|
active: L,
|
|
35106
|
-
activeNode:
|
|
35107
|
-
collisionRect:
|
|
35108
|
-
collisions:
|
|
35104
|
+
activeNode: _W,
|
|
35105
|
+
collisionRect: zW,
|
|
35106
|
+
collisions: BW,
|
|
35109
35107
|
droppableRects: Z,
|
|
35110
35108
|
draggableNodes: E,
|
|
35111
|
-
draggingNode:
|
|
35112
|
-
draggingNodeRect:
|
|
35109
|
+
draggingNode: EW,
|
|
35110
|
+
draggingNodeRect: DW,
|
|
35113
35111
|
droppableContainers: j,
|
|
35114
|
-
over:
|
|
35115
|
-
scrollableAncestors:
|
|
35116
|
-
scrollAdjustedTranslate:
|
|
35112
|
+
over: HW,
|
|
35113
|
+
scrollableAncestors: jW,
|
|
35114
|
+
scrollAdjustedTranslate: RW
|
|
35117
35115
|
}, I.current = {
|
|
35118
|
-
initial:
|
|
35119
|
-
translated:
|
|
35116
|
+
initial: DW,
|
|
35117
|
+
translated: zW
|
|
35120
35118
|
};
|
|
35121
35119
|
}, [
|
|
35122
35120
|
L,
|
|
35123
|
-
|
|
35121
|
+
_W,
|
|
35122
|
+
BW,
|
|
35124
35123
|
zW,
|
|
35125
|
-
RW,
|
|
35126
35124
|
E,
|
|
35127
|
-
TW,
|
|
35128
35125
|
EW,
|
|
35126
|
+
DW,
|
|
35129
35127
|
Z,
|
|
35130
35128
|
j,
|
|
35131
|
-
|
|
35132
|
-
|
|
35133
|
-
|
|
35129
|
+
HW,
|
|
35130
|
+
jW,
|
|
35131
|
+
RW
|
|
35134
35132
|
]), useAutoScroller({
|
|
35135
|
-
...
|
|
35133
|
+
...yW,
|
|
35136
35134
|
delta: O,
|
|
35137
|
-
draggingRect:
|
|
35138
|
-
pointerCoordinates:
|
|
35139
|
-
scrollableAncestors:
|
|
35140
|
-
scrollableAncestorRects:
|
|
35135
|
+
draggingRect: zW,
|
|
35136
|
+
pointerCoordinates: PW,
|
|
35137
|
+
scrollableAncestors: jW,
|
|
35138
|
+
scrollableAncestorRects: MW
|
|
35141
35139
|
});
|
|
35142
|
-
let
|
|
35140
|
+
let JW = (0, import_react.useMemo)(() => ({
|
|
35143
35141
|
active: L,
|
|
35144
|
-
activeNode:
|
|
35145
|
-
activeNodeRect:
|
|
35142
|
+
activeNode: _W,
|
|
35143
|
+
activeNodeRect: xW,
|
|
35146
35144
|
activatorEvent: H,
|
|
35147
|
-
collisions:
|
|
35148
|
-
containerNodeRect:
|
|
35149
|
-
dragOverlay:
|
|
35145
|
+
collisions: BW,
|
|
35146
|
+
containerNodeRect: SW,
|
|
35147
|
+
dragOverlay: TW,
|
|
35150
35148
|
draggableNodes: E,
|
|
35151
35149
|
droppableContainers: j,
|
|
35152
35150
|
droppableRects: Z,
|
|
35153
|
-
over:
|
|
35154
|
-
measureDroppableContainers:
|
|
35155
|
-
scrollableAncestors:
|
|
35156
|
-
scrollableAncestorRects:
|
|
35157
|
-
measuringConfiguration:
|
|
35158
|
-
measuringScheduled:
|
|
35159
|
-
windowRect:
|
|
35151
|
+
over: HW,
|
|
35152
|
+
measureDroppableContainers: hW,
|
|
35153
|
+
scrollableAncestors: jW,
|
|
35154
|
+
scrollableAncestorRects: MW,
|
|
35155
|
+
measuringConfiguration: mW,
|
|
35156
|
+
measuringScheduled: gW,
|
|
35157
|
+
windowRect: AW
|
|
35160
35158
|
}), [
|
|
35161
35159
|
L,
|
|
35162
|
-
|
|
35163
|
-
bW,
|
|
35164
|
-
H,
|
|
35165
|
-
zW,
|
|
35160
|
+
_W,
|
|
35166
35161
|
xW,
|
|
35167
|
-
|
|
35162
|
+
H,
|
|
35163
|
+
BW,
|
|
35164
|
+
SW,
|
|
35165
|
+
TW,
|
|
35168
35166
|
E,
|
|
35169
35167
|
j,
|
|
35170
35168
|
Z,
|
|
35171
|
-
|
|
35172
|
-
mW,
|
|
35173
|
-
AW,
|
|
35174
|
-
jW,
|
|
35175
|
-
pW,
|
|
35169
|
+
HW,
|
|
35176
35170
|
hW,
|
|
35177
|
-
|
|
35178
|
-
|
|
35171
|
+
jW,
|
|
35172
|
+
MW,
|
|
35173
|
+
mW,
|
|
35174
|
+
gW,
|
|
35175
|
+
AW
|
|
35176
|
+
]), YW = (0, import_react.useMemo)(() => ({
|
|
35179
35177
|
activatorEvent: H,
|
|
35180
|
-
activators:
|
|
35178
|
+
activators: qW,
|
|
35181
35179
|
active: L,
|
|
35182
|
-
activeNodeRect:
|
|
35180
|
+
activeNodeRect: xW,
|
|
35183
35181
|
ariaDescribedById: {
|
|
35184
35182
|
draggable: q
|
|
35185
35183
|
},
|
|
35186
35184
|
dispatch: _,
|
|
35187
35185
|
draggableNodes: E,
|
|
35188
|
-
over:
|
|
35189
|
-
measureDroppableContainers:
|
|
35186
|
+
over: HW,
|
|
35187
|
+
measureDroppableContainers: hW
|
|
35190
35188
|
}), [
|
|
35191
35189
|
H,
|
|
35192
|
-
|
|
35190
|
+
qW,
|
|
35193
35191
|
L,
|
|
35194
|
-
|
|
35192
|
+
xW,
|
|
35195
35193
|
_,
|
|
35196
35194
|
q,
|
|
35197
35195
|
E,
|
|
35198
|
-
|
|
35199
|
-
|
|
35196
|
+
HW,
|
|
35197
|
+
hW
|
|
35200
35198
|
]);
|
|
35201
35199
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
35202
35200
|
value: y
|
|
35203
35201
|
}, import_react.createElement(InternalContext.Provider, {
|
|
35204
|
-
value:
|
|
35202
|
+
value: YW
|
|
35205
35203
|
}, import_react.createElement(PublicContext.Provider, {
|
|
35206
|
-
value:
|
|
35204
|
+
value: JW
|
|
35207
35205
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
35208
|
-
value:
|
|
35206
|
+
value: WW
|
|
35209
35207
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
35210
35208
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35211
35209
|
})), import_react.createElement(Accessibility, {
|
|
35212
35210
|
...c,
|
|
35213
35211
|
hiddenTextDescribedById: q
|
|
35214
35212
|
}));
|
|
35215
|
-
function
|
|
35213
|
+
function XW() {
|
|
35216
35214
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
35217
35215
|
return typeof l == "object" ? {
|
|
35218
35216
|
...l,
|
|
@@ -35740,7 +35738,7 @@ ${c}
|
|
|
35740
35738
|
updateMeasurementsFor: I,
|
|
35741
35739
|
...m
|
|
35742
35740
|
}
|
|
35743
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
35741
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: pW, listeners: mW, isDragging: Z, over: hW, setActivatorNodeRef: gW, transform: _W } = useDraggable({
|
|
35744
35742
|
id: f,
|
|
35745
35743
|
data: M,
|
|
35746
35744
|
attributes: {
|
|
@@ -35748,60 +35746,60 @@ ${c}
|
|
|
35748
35746
|
...c
|
|
35749
35747
|
},
|
|
35750
35748
|
disabled: O.draggable
|
|
35751
|
-
}),
|
|
35749
|
+
}), vW = useCombinedRefs(B, pW), yW = !!H, bW = yW && !b && isValidIndex(v) && isValidIndex(w), xW = !T && Z, SW = bW ? (xW && bW ? _W : null) ?? (p ?? E)({
|
|
35752
35750
|
rects: S,
|
|
35753
35751
|
activeNodeRect: G,
|
|
35754
35752
|
activeIndex: v,
|
|
35755
35753
|
overIndex: w,
|
|
35756
35754
|
index: j
|
|
35757
|
-
}) : null,
|
|
35755
|
+
}) : null, CW = isValidIndex(v) && isValidIndex(w) ? d({
|
|
35758
35756
|
id: f,
|
|
35759
35757
|
items: g,
|
|
35760
35758
|
activeIndex: v,
|
|
35761
35759
|
overIndex: w
|
|
35762
|
-
}) : j,
|
|
35763
|
-
activeId:
|
|
35760
|
+
}) : j, wW = H == null ? void 0 : H.id, TW = (0, import_react.useRef)({
|
|
35761
|
+
activeId: wW,
|
|
35764
35762
|
items: g,
|
|
35765
|
-
newIndex:
|
|
35763
|
+
newIndex: CW,
|
|
35766
35764
|
containerId: _
|
|
35767
|
-
}),
|
|
35765
|
+
}), EW = g !== TW.current.items, DW = r({
|
|
35768
35766
|
active: H,
|
|
35769
35767
|
containerId: _,
|
|
35770
35768
|
isDragging: Z,
|
|
35771
|
-
isSorting:
|
|
35769
|
+
isSorting: yW,
|
|
35772
35770
|
id: f,
|
|
35773
35771
|
index: j,
|
|
35774
35772
|
items: g,
|
|
35775
|
-
newIndex:
|
|
35776
|
-
previousItems:
|
|
35777
|
-
previousContainerId:
|
|
35773
|
+
newIndex: TW.current.newIndex,
|
|
35774
|
+
previousItems: TW.current.items,
|
|
35775
|
+
previousContainerId: TW.current.containerId,
|
|
35778
35776
|
transition: h,
|
|
35779
|
-
wasDragging:
|
|
35780
|
-
}),
|
|
35781
|
-
disabled: !
|
|
35777
|
+
wasDragging: TW.current.activeId != null
|
|
35778
|
+
}), OW = useDerivedTransform({
|
|
35779
|
+
disabled: !DW,
|
|
35782
35780
|
index: j,
|
|
35783
35781
|
node: R,
|
|
35784
35782
|
rect: L
|
|
35785
35783
|
});
|
|
35786
35784
|
return (0, import_react.useEffect)(() => {
|
|
35787
|
-
|
|
35785
|
+
yW && TW.current.newIndex !== CW && (TW.current.newIndex = CW), _ !== TW.current.containerId && (TW.current.containerId = _), g !== TW.current.items && (TW.current.items = g);
|
|
35788
35786
|
}, [
|
|
35789
|
-
|
|
35790
|
-
|
|
35787
|
+
yW,
|
|
35788
|
+
CW,
|
|
35791
35789
|
_,
|
|
35792
35790
|
g
|
|
35793
35791
|
]), (0, import_react.useEffect)(() => {
|
|
35794
|
-
if (
|
|
35795
|
-
if (
|
|
35796
|
-
|
|
35792
|
+
if (wW === TW.current.activeId) return;
|
|
35793
|
+
if (wW != null && TW.current.activeId == null) {
|
|
35794
|
+
TW.current.activeId = wW;
|
|
35797
35795
|
return;
|
|
35798
35796
|
}
|
|
35799
35797
|
let e2 = setTimeout(() => {
|
|
35800
|
-
|
|
35798
|
+
TW.current.activeId = wW;
|
|
35801
35799
|
}, 50);
|
|
35802
35800
|
return () => clearTimeout(e2);
|
|
35803
35801
|
}, [
|
|
35804
|
-
|
|
35802
|
+
wW
|
|
35805
35803
|
]), {
|
|
35806
35804
|
active: H,
|
|
35807
35805
|
activeIndex: v,
|
|
@@ -35809,25 +35807,25 @@ ${c}
|
|
|
35809
35807
|
data: M,
|
|
35810
35808
|
rect: L,
|
|
35811
35809
|
index: j,
|
|
35812
|
-
newIndex:
|
|
35810
|
+
newIndex: CW,
|
|
35813
35811
|
items: g,
|
|
35814
35812
|
isOver: z,
|
|
35815
|
-
isSorting:
|
|
35813
|
+
isSorting: yW,
|
|
35816
35814
|
isDragging: Z,
|
|
35817
|
-
listeners:
|
|
35815
|
+
listeners: mW,
|
|
35818
35816
|
node: R,
|
|
35819
35817
|
overIndex: w,
|
|
35820
|
-
over:
|
|
35821
|
-
setNodeRef:
|
|
35822
|
-
setActivatorNodeRef:
|
|
35818
|
+
over: hW,
|
|
35819
|
+
setNodeRef: vW,
|
|
35820
|
+
setActivatorNodeRef: gW,
|
|
35823
35821
|
setDroppableNodeRef: B,
|
|
35824
|
-
setDraggableNodeRef:
|
|
35825
|
-
transform:
|
|
35826
|
-
transition:
|
|
35822
|
+
setDraggableNodeRef: pW,
|
|
35823
|
+
transform: OW ?? SW,
|
|
35824
|
+
transition: kW()
|
|
35827
35825
|
};
|
|
35828
|
-
function
|
|
35829
|
-
if (
|
|
35830
|
-
if (!(
|
|
35826
|
+
function kW() {
|
|
35827
|
+
if (OW || EW && TW.current.newIndex === j) return disabledTransition;
|
|
35828
|
+
if (!(xW && !isKeyboardEvent(W) || !h) && (yW || DW)) return CSS$1.Transition.toString({
|
|
35831
35829
|
...h,
|
|
35832
35830
|
property: transitionProperty
|
|
35833
35831
|
});
|
|
@@ -36127,13 +36125,13 @@ ${c}
|
|
|
36127
36125
|
G
|
|
36128
36126
|
]
|
|
36129
36127
|
}), 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];
|
|
36130
|
-
let
|
|
36131
|
-
if (!v && !g) return
|
|
36132
|
-
let
|
|
36133
|
-
r[46] ===
|
|
36128
|
+
let pW = q;
|
|
36129
|
+
if (!v && !g) return pW;
|
|
36130
|
+
let mW;
|
|
36131
|
+
r[46] === pW ? mW = r[47] : (mW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
36134
36132
|
asChild: true,
|
|
36135
|
-
children:
|
|
36136
|
-
}), r[46] =
|
|
36133
|
+
children: pW
|
|
36134
|
+
}), r[46] = pW, r[47] = mW);
|
|
36137
36135
|
let Z;
|
|
36138
36136
|
r[48] === v ? Z = r[49] : (Z = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36139
36137
|
onSelect: v,
|
|
@@ -36144,10 +36142,10 @@ ${c}
|
|
|
36144
36142
|
"Add cell"
|
|
36145
36143
|
]
|
|
36146
36144
|
}), r[48] = v, r[49] = Z);
|
|
36147
|
-
let mW;
|
|
36148
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (mW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = mW) : mW = r[50];
|
|
36149
36145
|
let hW;
|
|
36150
|
-
r[
|
|
36146
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (hW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = hW) : hW = r[50];
|
|
36147
|
+
let gW;
|
|
36148
|
+
r[51] === g ? gW = r[52] : (gW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36151
36149
|
variant: "danger",
|
|
36152
36150
|
onSelect: g,
|
|
36153
36151
|
children: [
|
|
@@ -36156,22 +36154,22 @@ ${c}
|
|
|
36156
36154
|
}),
|
|
36157
36155
|
"Delete cell"
|
|
36158
36156
|
]
|
|
36159
|
-
}), r[51] = g, r[52] =
|
|
36160
|
-
let
|
|
36161
|
-
r[53] !== Z || r[54] !==
|
|
36157
|
+
}), r[51] = g, r[52] = gW);
|
|
36158
|
+
let _W;
|
|
36159
|
+
r[53] !== Z || r[54] !== gW ? (_W = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
36162
36160
|
children: [
|
|
36163
36161
|
Z,
|
|
36164
|
-
|
|
36165
|
-
|
|
36162
|
+
hW,
|
|
36163
|
+
gW
|
|
36166
36164
|
]
|
|
36167
|
-
}), r[53] = Z, r[54] =
|
|
36168
|
-
let
|
|
36169
|
-
return r[56] !==
|
|
36165
|
+
}), r[53] = Z, r[54] = gW, r[55] = _W) : _W = r[55];
|
|
36166
|
+
let vW;
|
|
36167
|
+
return r[56] !== mW || r[57] !== _W ? (vW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
36170
36168
|
children: [
|
|
36171
|
-
|
|
36172
|
-
|
|
36169
|
+
mW,
|
|
36170
|
+
_W
|
|
36173
36171
|
]
|
|
36174
|
-
}), r[56] =
|
|
36172
|
+
}), r[56] = mW, r[57] = _W, r[58] = vW) : vW = r[58], vW;
|
|
36175
36173
|
}, InsertCellLine = (e) => {
|
|
36176
36174
|
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;
|
|
36177
36175
|
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);
|
|
@@ -36225,10 +36223,10 @@ ${c}
|
|
|
36225
36223
|
...B,
|
|
36226
36224
|
...h
|
|
36227
36225
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
36228
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
36229
|
-
r[25] !== l || r[26] !==
|
|
36230
|
-
let
|
|
36231
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
36226
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", pW = w && !T && "opacity-35", mW = T && "opacity-95 shadow-lg", Z;
|
|
36227
|
+
r[25] !== l || r[26] !== pW || r[27] !== mW || 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, pW, mW, l), r[25] = l, r[26] = pW, r[27] = mW, r[28] = q, r[29] = Z) : Z = r[29];
|
|
36228
|
+
let hW;
|
|
36229
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (hW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
36232
36230
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
36233
36231
|
style: {
|
|
36234
36232
|
transform: `scale(${I})`,
|
|
@@ -36244,14 +36242,14 @@ ${c}
|
|
|
36244
36242
|
output: c.output,
|
|
36245
36243
|
stale: outputIsStale(c, false)
|
|
36246
36244
|
})
|
|
36247
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
36248
|
-
let
|
|
36249
|
-
r[37] === z ?
|
|
36245
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = hW) : hW = r[36];
|
|
36246
|
+
let gW;
|
|
36247
|
+
r[37] === z ? gW = r[38] : (gW = z && (0, import_jsx_runtime.jsx)("div", {
|
|
36250
36248
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
36251
36249
|
"aria-hidden": true
|
|
36252
|
-
}), r[37] = z, r[38] =
|
|
36253
|
-
let
|
|
36254
|
-
r[39] !== z || r[40] !== R ? (
|
|
36250
|
+
}), r[37] = z, r[38] = gW);
|
|
36251
|
+
let _W;
|
|
36252
|
+
r[39] !== z || r[40] !== R ? (_W = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
36255
36253
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
36256
36254
|
className: "text-xs opacity-80",
|
|
36257
36255
|
children: R.description
|
|
@@ -36263,19 +36261,19 @@ ${c}
|
|
|
36263
36261
|
className: "h-3.5 w-3.5"
|
|
36264
36262
|
})
|
|
36265
36263
|
})
|
|
36266
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
36267
|
-
let
|
|
36268
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !==
|
|
36264
|
+
}), r[39] = z, r[40] = R, r[41] = _W) : _W = r[41];
|
|
36265
|
+
let vW;
|
|
36266
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !== hW || r[47] !== gW || r[48] !== _W ? (vW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36269
36267
|
ref: f,
|
|
36270
36268
|
className: Z,
|
|
36271
36269
|
style: W,
|
|
36272
36270
|
...d,
|
|
36273
36271
|
children: [
|
|
36274
|
-
mW,
|
|
36275
36272
|
hW,
|
|
36276
|
-
gW
|
|
36273
|
+
gW,
|
|
36274
|
+
_W
|
|
36277
36275
|
]
|
|
36278
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] =
|
|
36276
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] = hW, r[47] = gW, r[48] = _W, r[49] = vW) : vW = r[49], vW;
|
|
36279
36277
|
}, MiniCodePreview = (e) => {
|
|
36280
36278
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
36281
36279
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -36315,7 +36313,7 @@ ${c}
|
|
|
36315
36313
|
function _temp2$2(e) {
|
|
36316
36314
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
36317
36315
|
}
|
|
36318
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36316
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-BFbxRhIh.js"));
|
|
36319
36317
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36320
36318
|
var _a3;
|
|
36321
36319
|
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), [
|
|
@@ -36693,7 +36691,7 @@ ${c}
|
|
|
36693
36691
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36694
36692
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36695
36693
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36696
|
-
let H, W, G, q,
|
|
36694
|
+
let H, W, G, q, pW, Z, hW, gW, _W, vW;
|
|
36697
36695
|
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) {
|
|
36698
36696
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36699
36697
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36739,11 +36737,11 @@ ${c}
|
|
|
36739
36737
|
})
|
|
36740
36738
|
})
|
|
36741
36739
|
]
|
|
36742
|
-
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area",
|
|
36743
|
-
let
|
|
36744
|
-
r[40] !== M || r[41] !==
|
|
36740
|
+
}), 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", pW = c, Z = R, hW = 0;
|
|
36741
|
+
let mW = y && "marimo-output-stale", yW2 = L ? "p-5" : "p-3";
|
|
36742
|
+
r[40] !== M || r[41] !== mW || r[42] !== yW2 ? (gW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", mW, yW2, M), r[40] = M, r[41] = mW, r[42] = yW2, r[43] = gW) : gW = r[43], r[44] === d ? _W = r[45] : (_W = d ? {
|
|
36745
36743
|
maxHeight: "none"
|
|
36746
|
-
} : void 0, r[44] = d, r[45] =
|
|
36744
|
+
} : void 0, r[44] = d, r[45] = _W), vW = e2.map((e3, r2) => {
|
|
36747
36745
|
if (e3.channel === "pdb") return null;
|
|
36748
36746
|
if (e3.channel === "stdin") {
|
|
36749
36747
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -36772,36 +36770,36 @@ ${c}
|
|
|
36772
36770
|
wrapText: l
|
|
36773
36771
|
})
|
|
36774
36772
|
}, r2);
|
|
36775
|
-
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] =
|
|
36776
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
36777
|
-
let
|
|
36778
|
-
r[46] !== T || r[47] !== S ? (
|
|
36773
|
+
}), 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] = pW, r[25] = Z, r[26] = hW, r[27] = gW, r[28] = _W, r[29] = vW;
|
|
36774
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], pW = r[24], Z = r[25], hW = r[26], gW = r[27], _W = r[28], vW = r[29];
|
|
36775
|
+
let yW;
|
|
36776
|
+
r[46] !== T || r[47] !== S ? (yW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36779
36777
|
value: S,
|
|
36780
36778
|
cellId: T,
|
|
36781
36779
|
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"
|
|
36782
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
36783
|
-
let
|
|
36784
|
-
r[49] !==
|
|
36780
|
+
}), r[46] = T, r[47] = S, r[48] = yW) : yW = r[48];
|
|
36781
|
+
let bW;
|
|
36782
|
+
r[49] !== yW || r[50] !== G || r[51] !== q || r[52] !== pW || r[53] !== Z || r[54] !== hW || r[55] !== gW || r[56] !== _W || r[57] !== vW ? (bW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36785
36783
|
title: G,
|
|
36786
36784
|
"data-testid": q,
|
|
36787
|
-
ref:
|
|
36785
|
+
ref: pW,
|
|
36788
36786
|
...Z,
|
|
36789
|
-
tabIndex:
|
|
36790
|
-
className:
|
|
36791
|
-
style:
|
|
36787
|
+
tabIndex: hW,
|
|
36788
|
+
className: gW,
|
|
36789
|
+
style: _W,
|
|
36792
36790
|
children: [
|
|
36793
|
-
|
|
36794
|
-
|
|
36791
|
+
vW,
|
|
36792
|
+
yW
|
|
36795
36793
|
]
|
|
36796
|
-
}), r[49] =
|
|
36797
|
-
let
|
|
36798
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
36794
|
+
}), r[49] = yW, r[50] = G, r[51] = q, r[52] = pW, r[53] = Z, r[54] = hW, r[55] = gW, r[56] = _W, r[57] = vW, r[58] = bW) : bW = r[58];
|
|
36795
|
+
let xW;
|
|
36796
|
+
return r[59] !== H || r[60] !== W || r[61] !== bW ? (xW = (0, import_jsx_runtime.jsxs)("div", {
|
|
36799
36797
|
className: H,
|
|
36800
36798
|
children: [
|
|
36801
36799
|
W,
|
|
36802
|
-
|
|
36800
|
+
bW
|
|
36803
36801
|
]
|
|
36804
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
36802
|
+
}), r[59] = H, r[60] = W, r[61] = bW, r[62] = xW) : xW = r[62], xW;
|
|
36805
36803
|
}, StdInput = (e) => {
|
|
36806
36804
|
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;
|
|
36807
36805
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -37285,23 +37283,23 @@ ${c}
|
|
|
37285
37283
|
if ((h || _ || m || W) && !G) return null;
|
|
37286
37284
|
let q;
|
|
37287
37285
|
r[45] !== d || r[46] !== T ? (q = cellDomProps(d, T), r[45] = d, r[46] = T, r[47] = q) : q = r[47];
|
|
37288
|
-
let
|
|
37289
|
-
r[48] !== d || r[49] !== R || r[50] !== c || r[51] !== I || r[52] !==
|
|
37290
|
-
allowExpand:
|
|
37286
|
+
let pW = w === "edit", mW;
|
|
37287
|
+
r[48] !== d || r[49] !== R || r[50] !== c || r[51] !== I || r[52] !== pW ? (mW = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37288
|
+
allowExpand: pW,
|
|
37291
37289
|
output: c,
|
|
37292
37290
|
className: CSSClasses.outputArea,
|
|
37293
37291
|
cellId: d,
|
|
37294
37292
|
stale: I,
|
|
37295
37293
|
loading: R
|
|
37296
|
-
}), r[48] = d, r[49] = R, r[50] = c, r[51] = I, r[52] =
|
|
37294
|
+
}), r[48] = d, r[49] = R, r[50] = c, r[51] = I, r[52] = pW, r[53] = mW) : mW = r[53];
|
|
37297
37295
|
let Z;
|
|
37298
|
-
return r[54] !== H || r[55] !== q || r[56] !==
|
|
37296
|
+
return r[54] !== H || r[55] !== q || r[56] !== mW ? (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
37299
37297
|
tabIndex: -1,
|
|
37300
37298
|
ref: j,
|
|
37301
37299
|
className: H,
|
|
37302
37300
|
...q,
|
|
37303
|
-
children:
|
|
37304
|
-
}), r[54] = H, r[55] = q, r[56] =
|
|
37301
|
+
children: mW
|
|
37302
|
+
}), r[54] = H, r[55] = q, r[56] = mW, r[57] = Z) : Z = r[57], Z;
|
|
37305
37303
|
});
|
|
37306
37304
|
VerticalCell.displayName = "VerticalCell";
|
|
37307
37305
|
const VerticalLayoutPlugin = {
|