@marimo-team/islands 0.23.14-dev60 → 0.23.14-dev61
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/main.js
CHANGED
|
@@ -26,7 +26,7 @@ import { $ as reducer, $t as getRequestClient, A as ChevronDownIcon, An as Trigg
|
|
|
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-Cz-Bj1JI.js";
|
|
29
|
-
import { $ as PANEL_TYPES, $t as hasFunctionProperty, A as prettifyRowCount, At as INDEX_COLUMN_NAME, B as CompactChipRow, Bt as Tabs, C as downloadSizeLimitAtom, Ct as ColumnChartSpecModel, D as ErrorState, Dt as getPageIndexForRow, E as EmptyState, Et as usePrevious$1, F as ContextMenuItem, Ft as isNullishFilter, G as Command, Gt as ChartInfoState, H as DateRangePicker, Ht as TabsList, I as ContextMenuSeparator, It as Maps, J as CommandItem, Jt as useOverflowDetection, K as CommandEmpty, Kt as ChartLoadingState, L as ContextMenuTrigger, Lt as dateToLocalISODate, 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 EmotionCacheProvider, R as useInternalStateWithSync, Rt as dateToLocalISODateTime, S as Filenames, St as ColumnChartContext, T as ColumnPreviewContainer, Tt as useIntersectionObserver, U as Combobox, Ut as TabsTrigger, V as DatePicker, Vt as TabsContent, W as ComboboxItem, Wt as ChartErrorState, X as CommandSeparator, Xt as Kbd, Y as CommandList, Yt as RenderTextWithLinks, Z as smartMatch, Zt as HtmlOutput, _ 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 isRecord, 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 LazyVegaEmbed, 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 dateToLocalISOTime, __tla as __tla_2 } from "./code-visibility-
|
|
29
|
+
import { $ as PANEL_TYPES, $t as hasFunctionProperty, A as prettifyRowCount, At as INDEX_COLUMN_NAME, B as CompactChipRow, Bt as Tabs, C as downloadSizeLimitAtom, Ct as ColumnChartSpecModel, D as ErrorState, Dt as getPageIndexForRow, E as EmptyState, Et as usePrevious$1, F as ContextMenuItem, Ft as isNullishFilter, G as Command, Gt as ChartInfoState, H as DateRangePicker, Ht as TabsList, I as ContextMenuSeparator, It as Maps, J as CommandItem, Jt as useOverflowDetection, K as CommandEmpty, Kt as ChartLoadingState, L as ContextMenuTrigger, Lt as dateToLocalISODate, 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 EmotionCacheProvider, R as useInternalStateWithSync, Rt as dateToLocalISODateTime, S as Filenames, St as ColumnChartContext, T as ColumnPreviewContainer, Tt as useIntersectionObserver, U as Combobox, Ut as TabsTrigger, V as DatePicker, Vt as TabsContent, W as ComboboxItem, Wt as ChartErrorState, X as CommandSeparator, Xt as Kbd, Y as CommandList, Yt as RenderTextWithLinks, Z as smartMatch, Zt as HtmlOutput, _ 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 isRecord, 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 LazyVegaEmbed, 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 dateToLocalISOTime, __tla as __tla_2 } from "./code-visibility-EvXXzjfW.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-DegSo0lV.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";
|
|
@@ -4036,7 +4036,7 @@ let __tla = Promise.all([
|
|
|
4036
4036
|
}
|
|
4037
4037
|
}, x_fn = function(e) {
|
|
4038
4038
|
let r = e.el.getRootNode();
|
|
4039
|
-
if (!(r
|
|
4039
|
+
if (!isDocument$1(r) && !isShadowRoot(r)) return;
|
|
4040
4040
|
let c = __privateGet(this, _c3).get(r);
|
|
4041
4041
|
c || (c = createStyleMount(r, __privateGet(this, _p)), __privateGet(this, _c3).set(r, c)), c.references += 1;
|
|
4042
4042
|
let l = false;
|
|
@@ -4049,9 +4049,16 @@ let __tla = Promise.all([
|
|
|
4049
4049
|
once: true
|
|
4050
4050
|
});
|
|
4051
4051
|
}, _e6);
|
|
4052
|
+
function isDocument$1(e) {
|
|
4053
|
+
return e.nodeType === Node.DOCUMENT_NODE;
|
|
4054
|
+
}
|
|
4055
|
+
function isShadowRoot(e) {
|
|
4056
|
+
return e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in e;
|
|
4057
|
+
}
|
|
4052
4058
|
function createStyleMount(e, r) {
|
|
4053
|
-
|
|
4054
|
-
|
|
4059
|
+
let c = isDocument$1(e) ? e : e.ownerDocument ?? document, l = c.defaultView ?? window;
|
|
4060
|
+
if ("adoptedStyleSheets" in e && l.CSSStyleSheet !== void 0 && typeof l.CSSStyleSheet.prototype.replaceSync == "function") try {
|
|
4061
|
+
let c2 = new l.CSSStyleSheet();
|
|
4055
4062
|
return c2.replaceSync(r), e.adoptedStyleSheets = [
|
|
4056
4063
|
...e.adoptedStyleSheets,
|
|
4057
4064
|
c2
|
|
@@ -4066,14 +4073,14 @@ let __tla = Promise.all([
|
|
|
4066
4073
|
};
|
|
4067
4074
|
} catch {
|
|
4068
4075
|
}
|
|
4069
|
-
let
|
|
4070
|
-
return
|
|
4076
|
+
let u = c.createElement("style");
|
|
4077
|
+
return u.textContent = r, isDocument$1(e) ? c.head.append(u) : e.append(u), {
|
|
4071
4078
|
references: 0,
|
|
4072
4079
|
update(e2) {
|
|
4073
|
-
|
|
4080
|
+
u.textContent = e2;
|
|
4074
4081
|
},
|
|
4075
4082
|
dispose() {
|
|
4076
|
-
|
|
4083
|
+
u.remove();
|
|
4077
4084
|
}
|
|
4078
4085
|
};
|
|
4079
4086
|
}
|
|
@@ -7404,33 +7411,33 @@ let __tla = Promise.all([
|
|
|
7404
7411
|
}), B = C({
|
|
7405
7412
|
height: 0,
|
|
7406
7413
|
width: 0
|
|
7407
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
7414
|
+
}), H = U(), W = U(), G = C(0), q = C(null), kW = C({
|
|
7408
7415
|
column: 0,
|
|
7409
7416
|
row: 0
|
|
7410
|
-
}), Z = U(),
|
|
7411
|
-
Y(x(b, $(
|
|
7412
|
-
D(
|
|
7413
|
-
}), Y(x(ut(b,
|
|
7414
|
-
D(
|
|
7417
|
+
}), Z = U(), AW = U(), jW = C(false), MW = C(0), NW = C(true), PW = C(false), FW = C(false);
|
|
7418
|
+
Y(x(b, $(MW), P(([e2, r2]) => !!r2)), () => {
|
|
7419
|
+
D(NW, false);
|
|
7420
|
+
}), Y(x(ut(b, NW, B, z, MW, PW), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7421
|
+
D(PW, true), Ue(1, () => {
|
|
7415
7422
|
D(H, e2);
|
|
7416
7423
|
}), Et(x(h), () => {
|
|
7417
7424
|
D(r, [
|
|
7418
7425
|
0,
|
|
7419
7426
|
0
|
|
7420
|
-
]), D(
|
|
7427
|
+
]), D(NW, true);
|
|
7421
7428
|
});
|
|
7422
|
-
}), F(x(
|
|
7423
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7424
|
-
D(
|
|
7429
|
+
}), F(x(AW, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(AW), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7430
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(kW, e2.gap), e2.scrollTop > 0 && (D(jW, true), Et(x(h, Kt(1)), (e3) => {
|
|
7431
|
+
D(jW, false);
|
|
7425
7432
|
}), D(m, {
|
|
7426
7433
|
top: e2.scrollTop
|
|
7427
7434
|
})));
|
|
7428
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7435
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(kW, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7429
7436
|
gap: c2,
|
|
7430
7437
|
item: r2,
|
|
7431
7438
|
scrollTop: l2,
|
|
7432
7439
|
viewport: e2
|
|
7433
|
-
}))), Z), F(x(ut(V(I), l, V(
|
|
7440
|
+
}))), Z), F(x(ut(V(I), l, V(kW, Or), V(B, xe), V(z, xe), V(q), V(L), V(jW), V(NW), V(MW)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7434
7441
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7435
7442
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7436
7443
|
if (y2 === 0) {
|
|
@@ -7449,23 +7456,23 @@ let __tla = Promise.all([
|
|
|
7449
7456
|
offsetTop: j2,
|
|
7450
7457
|
top: j2
|
|
7451
7458
|
};
|
|
7452
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7459
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, kW), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7453
7460
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7454
7461
|
return [
|
|
7455
7462
|
d2,
|
|
7456
7463
|
u2
|
|
7457
7464
|
];
|
|
7458
7465
|
}), J(ce)), r);
|
|
7459
|
-
let
|
|
7460
|
-
F(x(h, $(
|
|
7461
|
-
let
|
|
7466
|
+
let IW = C(false);
|
|
7467
|
+
F(x(h, $(IW), k(([e2, r2]) => r2 || e2 !== 0)), IW);
|
|
7468
|
+
let LW = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(IW), P(([[e2, r2], c2]) => {
|
|
7462
7469
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7463
7470
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7464
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7471
|
+
}), k(([[, e2]]) => e2 - 1), J())), RW = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), zW = bt(x(V(R), $(jW), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7465
7472
|
endIndex: e2[e2.length - 1].index,
|
|
7466
7473
|
startIndex: e2[0].index
|
|
7467
7474
|
})), J(An), Gt(0)));
|
|
7468
|
-
F(
|
|
7475
|
+
F(zW, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, kW), k(([e2, r2, c2, l2, u2]) => {
|
|
7469
7476
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7470
7477
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7471
7478
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7474,7 +7481,7 @@ let __tla = Promise.all([
|
|
|
7474
7481
|
top: g2
|
|
7475
7482
|
};
|
|
7476
7483
|
})), m);
|
|
7477
|
-
let
|
|
7484
|
+
let BW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7478
7485
|
return F(x(j, k((e2) => ({
|
|
7479
7486
|
height: e2.visibleHeight,
|
|
7480
7487
|
width: e2.visibleWidth
|
|
@@ -7483,13 +7490,13 @@ let __tla = Promise.all([
|
|
|
7483
7490
|
data: q,
|
|
7484
7491
|
deviation: G,
|
|
7485
7492
|
footerHeight: u,
|
|
7486
|
-
gap:
|
|
7493
|
+
gap: kW,
|
|
7487
7494
|
headerHeight: d,
|
|
7488
7495
|
increaseViewportBy: e,
|
|
7489
7496
|
initialItemCount: L,
|
|
7490
7497
|
itemDimensions: B,
|
|
7491
7498
|
overscan: c,
|
|
7492
|
-
restoreStateFrom:
|
|
7499
|
+
restoreStateFrom: AW,
|
|
7493
7500
|
scrollBy: f,
|
|
7494
7501
|
scrollContainerState: p,
|
|
7495
7502
|
scrollHeight: W,
|
|
@@ -7505,16 +7512,16 @@ let __tla = Promise.all([
|
|
|
7505
7512
|
windowViewportRect: j,
|
|
7506
7513
|
...y,
|
|
7507
7514
|
gridState: R,
|
|
7508
|
-
horizontalDirection:
|
|
7509
|
-
initialTopMostItemIndex:
|
|
7510
|
-
totalListHeight:
|
|
7515
|
+
horizontalDirection: FW,
|
|
7516
|
+
initialTopMostItemIndex: MW,
|
|
7517
|
+
totalListHeight: BW,
|
|
7511
7518
|
...v,
|
|
7512
|
-
endReached:
|
|
7519
|
+
endReached: LW,
|
|
7513
7520
|
propsReady: S,
|
|
7514
|
-
rangeChanged:
|
|
7515
|
-
startReached:
|
|
7521
|
+
rangeChanged: zW,
|
|
7522
|
+
startReached: RW,
|
|
7516
7523
|
stateChanged: Z,
|
|
7517
|
-
stateRestoreInProgress:
|
|
7524
|
+
stateRestoreInProgress: jW,
|
|
7518
7525
|
...M
|
|
7519
7526
|
};
|
|
7520
7527
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7792,7 +7799,7 @@ let __tla = Promise.all([
|
|
|
7792
7799
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7793
7800
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7794
7801
|
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7795
|
-
let
|
|
7802
|
+
let kW = q, Z;
|
|
7796
7803
|
if (r[13] !== G.bulkActions) {
|
|
7797
7804
|
if (Z = G.bulkActions.map(_temp$27), Z.length > 0) {
|
|
7798
7805
|
let e2;
|
|
@@ -7802,12 +7809,12 @@ let __tla = Promise.all([
|
|
|
7802
7809
|
}
|
|
7803
7810
|
r[13] = G.bulkActions, r[14] = Z;
|
|
7804
7811
|
} else Z = r[14];
|
|
7805
|
-
let
|
|
7806
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7812
|
+
let AW;
|
|
7813
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (AW = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7807
7814
|
"data-slot": "select-separator"
|
|
7808
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7809
|
-
let
|
|
7810
|
-
r[19] !== Z || r[20] !== G || r[21] !==
|
|
7815
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = AW) : AW = r[18];
|
|
7816
|
+
let jW = AW, MW;
|
|
7817
|
+
r[19] !== Z || r[20] !== G || r[21] !== jW || r[22] !== w || r[23] !== B || r[24] !== H ? (MW = () => {
|
|
7811
7818
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7812
7819
|
"data-slot": "select-list",
|
|
7813
7820
|
style: {
|
|
@@ -7820,7 +7827,7 @@ let __tla = Promise.all([
|
|
|
7820
7827
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7821
7828
|
children: [
|
|
7822
7829
|
e3 === 0 && Z,
|
|
7823
|
-
|
|
7830
|
+
jW(e3),
|
|
7824
7831
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7825
7832
|
option: r2,
|
|
7826
7833
|
checked: G.isChecked(r2.value),
|
|
@@ -7831,7 +7838,7 @@ let __tla = Promise.all([
|
|
|
7831
7838
|
}
|
|
7832
7839
|
});
|
|
7833
7840
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7834
|
-
let c2 =
|
|
7841
|
+
let c2 = jW(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7835
7842
|
option: e3,
|
|
7836
7843
|
checked: G.isChecked(e3.value),
|
|
7837
7844
|
renderOption: w
|
|
@@ -7849,9 +7856,9 @@ let __tla = Promise.all([
|
|
|
7849
7856
|
e2
|
|
7850
7857
|
]
|
|
7851
7858
|
});
|
|
7852
|
-
}, r[19] = Z, r[20] = G, r[21] =
|
|
7853
|
-
let
|
|
7854
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7859
|
+
}, r[19] = Z, r[20] = G, r[21] = jW, r[22] = w, r[23] = B, r[24] = H, r[25] = MW) : MW = r[25];
|
|
7860
|
+
let NW = MW, PW;
|
|
7861
|
+
r[26] !== G.labelOf || r[27] !== I ? (PW = (e2) => {
|
|
7855
7862
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7856
7863
|
e2
|
|
7857
7864
|
];
|
|
@@ -7862,46 +7869,46 @@ let __tla = Promise.all([
|
|
|
7862
7869
|
items: r2.map(G.labelOf),
|
|
7863
7870
|
max: 3
|
|
7864
7871
|
});
|
|
7865
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7866
|
-
let
|
|
7867
|
-
r[29] === G ?
|
|
7868
|
-
let
|
|
7869
|
-
r[31] !== b || r[32] !== R ? (
|
|
7872
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = PW) : PW = r[28];
|
|
7873
|
+
let FW = PW, IW = e["data-testid"], LW;
|
|
7874
|
+
r[29] === G ? LW = r[30] : (LW = (e2) => G.labelOf(e2), r[29] = G, r[30] = LW);
|
|
7875
|
+
let RW = M ? FW : void 0, zW;
|
|
7876
|
+
r[31] !== b || r[32] !== R ? (zW = cn({
|
|
7870
7877
|
"w-full": R
|
|
7871
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7872
|
-
let
|
|
7873
|
-
r[34] === z ?
|
|
7874
|
-
let
|
|
7875
|
-
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] !==
|
|
7878
|
+
}, b), r[31] = b, r[32] = R, r[33] = zW) : zW = r[33];
|
|
7879
|
+
let BW = G.searchQuery, VW = G.setSearchQuery, HW = G.open, UW = G.setOpen, WW;
|
|
7880
|
+
r[34] === z ? WW = r[35] : (WW = renderSlot(z), r[34] = z, r[35] = WW);
|
|
7881
|
+
let GW;
|
|
7882
|
+
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] !== IW || r[44] !== LW || r[45] !== RW || r[46] !== zW || r[47] !== WW ? (GW = {
|
|
7876
7883
|
"data-slot": "select-root",
|
|
7877
|
-
"data-testid":
|
|
7878
|
-
displayValue:
|
|
7879
|
-
renderValue:
|
|
7884
|
+
"data-testid": IW,
|
|
7885
|
+
displayValue: LW,
|
|
7886
|
+
renderValue: RW,
|
|
7880
7887
|
placeholder: I,
|
|
7881
|
-
className:
|
|
7888
|
+
className: zW,
|
|
7882
7889
|
shouldFilter: false,
|
|
7883
|
-
search:
|
|
7884
|
-
onSearchChange:
|
|
7885
|
-
open:
|
|
7886
|
-
onOpenChange:
|
|
7887
|
-
emptyState:
|
|
7890
|
+
search: BW,
|
|
7891
|
+
onSearchChange: VW,
|
|
7892
|
+
open: HW,
|
|
7893
|
+
onOpenChange: UW,
|
|
7894
|
+
emptyState: WW,
|
|
7888
7895
|
disabled: L,
|
|
7889
7896
|
id: S
|
|
7890
|
-
}, 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] =
|
|
7891
|
-
let
|
|
7892
|
-
return r[49] !==
|
|
7893
|
-
...
|
|
7897
|
+
}, 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] = IW, r[44] = LW, r[45] = RW, r[46] = zW, r[47] = WW, r[48] = GW) : GW = r[48];
|
|
7898
|
+
let KW = GW, qW;
|
|
7899
|
+
return r[49] !== KW || r[50] !== kW || r[51] !== d || r[52] !== NW || r[53] !== l ? (qW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7900
|
+
...KW,
|
|
7894
7901
|
multiple: true,
|
|
7895
7902
|
value: l,
|
|
7896
|
-
onValueChange:
|
|
7897
|
-
children:
|
|
7903
|
+
onValueChange: kW,
|
|
7904
|
+
children: NW()
|
|
7898
7905
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7899
|
-
...
|
|
7906
|
+
...KW,
|
|
7900
7907
|
multiple: false,
|
|
7901
7908
|
value: l,
|
|
7902
|
-
onValueChange:
|
|
7903
|
-
children:
|
|
7904
|
-
}), r[49] =
|
|
7909
|
+
onValueChange: kW,
|
|
7910
|
+
children: NW()
|
|
7911
|
+
}), r[49] = KW, r[50] = kW, r[51] = d, r[52] = NW, r[53] = l, r[54] = qW) : qW = r[54], qW;
|
|
7905
7912
|
}
|
|
7906
7913
|
function _temp$27(e) {
|
|
7907
7914
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -10010,7 +10017,7 @@ let __tla = Promise.all([
|
|
|
10010
10017
|
let m2 = get(l, e2);
|
|
10011
10018
|
if (m2) {
|
|
10012
10019
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
10013
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
10020
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : kW(e2, l2), f.mount && w();
|
|
10014
10021
|
}
|
|
10015
10022
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
10016
10023
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -10083,14 +10090,14 @@ let __tla = Promise.all([
|
|
|
10083
10090
|
}, H = () => {
|
|
10084
10091
|
for (let e2 of p.unMount) {
|
|
10085
10092
|
let r2 = get(l, e2);
|
|
10086
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
10093
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && zW(e2);
|
|
10087
10094
|
}
|
|
10088
10095
|
p.unMount = /* @__PURE__ */ new Set();
|
|
10089
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
10096
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(PW(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
10090
10097
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
10091
10098
|
[e2]: r2
|
|
10092
10099
|
} : r2
|
|
10093
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
10100
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), kW = (e2, r2, c2 = {}) => {
|
|
10094
10101
|
let u2 = get(l, e2), f2 = r2;
|
|
10095
10102
|
if (u2) {
|
|
10096
10103
|
let c3 = u2._f;
|
|
@@ -10103,13 +10110,13 @@ let __tla = Promise.all([
|
|
|
10103
10110
|
}
|
|
10104
10111
|
})));
|
|
10105
10112
|
}
|
|
10106
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
10113
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && NW(e2);
|
|
10107
10114
|
}, Z = (e2, r2, c2) => {
|
|
10108
10115
|
for (let u2 in r2) {
|
|
10109
10116
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
10110
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) :
|
|
10117
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) : kW(f2, d2, c2);
|
|
10111
10118
|
}
|
|
10112
|
-
},
|
|
10119
|
+
}, AW = (e2, r2, m2 = {}) => {
|
|
10113
10120
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
10114
10121
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
10115
10122
|
name: e2,
|
|
@@ -10120,7 +10127,7 @@ let __tla = Promise.all([
|
|
|
10120
10127
|
name: e2,
|
|
10121
10128
|
dirtyFields: getDirtyFields(u, d),
|
|
10122
10129
|
isDirty: W(e2, y2)
|
|
10123
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) :
|
|
10130
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) : kW(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
10124
10131
|
...c
|
|
10125
10132
|
}), _.values.next({
|
|
10126
10133
|
name: f.mount ? e2 : void 0,
|
|
@@ -10128,7 +10135,7 @@ let __tla = Promise.all([
|
|
|
10128
10135
|
...d
|
|
10129
10136
|
}
|
|
10130
10137
|
});
|
|
10131
|
-
},
|
|
10138
|
+
}, jW = async (e2) => {
|
|
10132
10139
|
f.mount = true;
|
|
10133
10140
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
10134
10141
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -10162,11 +10169,11 @@ let __tla = Promise.all([
|
|
|
10162
10169
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
10163
10170
|
h2
|
|
10164
10171
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
10165
|
-
S2 && (E2._f.deps &&
|
|
10172
|
+
S2 && (E2._f.deps && NW(E2._f.deps), L(h2, f2, u3, G2));
|
|
10166
10173
|
}
|
|
10167
|
-
},
|
|
10174
|
+
}, MW = (e2, r2) => {
|
|
10168
10175
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
10169
|
-
},
|
|
10176
|
+
}, NW = async (e2, u2 = {}) => {
|
|
10170
10177
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
10171
10178
|
if (r.resolver) {
|
|
10172
10179
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -10185,23 +10192,23 @@ let __tla = Promise.all([
|
|
|
10185
10192
|
isValid: d2
|
|
10186
10193
|
} : {},
|
|
10187
10194
|
errors: c.errors
|
|
10188
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
10189
|
-
},
|
|
10195
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, MW, e2 ? m2 : p.mount), f2;
|
|
10196
|
+
}, PW = (e2) => {
|
|
10190
10197
|
let r2 = {
|
|
10191
10198
|
...f.mount ? d : u
|
|
10192
10199
|
};
|
|
10193
10200
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
10194
|
-
},
|
|
10201
|
+
}, FW = (e2, r2) => ({
|
|
10195
10202
|
invalid: !!get((r2 || c).errors, e2),
|
|
10196
10203
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
10197
10204
|
error: get((r2 || c).errors, e2),
|
|
10198
10205
|
isValidating: !!get(c.validatingFields, e2),
|
|
10199
10206
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
10200
|
-
}),
|
|
10207
|
+
}), IW = (e2) => {
|
|
10201
10208
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
10202
10209
|
errors: e2 ? c.errors : {}
|
|
10203
10210
|
});
|
|
10204
|
-
},
|
|
10211
|
+
}, LW = (e2, r2, u2) => {
|
|
10205
10212
|
let d2 = (get(l, e2, {
|
|
10206
10213
|
_f: {}
|
|
10207
10214
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -10214,9 +10221,9 @@ let __tla = Promise.all([
|
|
|
10214
10221
|
errors: c.errors,
|
|
10215
10222
|
isValid: false
|
|
10216
10223
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
10217
|
-
},
|
|
10224
|
+
}, RW = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
10218
10225
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
10219
|
-
}) : G(e2, r2, true),
|
|
10226
|
+
}) : G(e2, r2, true), zW = (e2, f2 = {}) => {
|
|
10220
10227
|
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);
|
|
10221
10228
|
_.values.next({
|
|
10222
10229
|
values: {
|
|
@@ -10228,9 +10235,9 @@ let __tla = Promise.all([
|
|
|
10228
10235
|
isDirty: W()
|
|
10229
10236
|
} : {}
|
|
10230
10237
|
}), !f2.keepIsValid && w();
|
|
10231
|
-
},
|
|
10238
|
+
}, BW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
10232
10239
|
(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));
|
|
10233
|
-
},
|
|
10240
|
+
}, VW = (e2, c2 = {}) => {
|
|
10234
10241
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
10235
10242
|
return set(l, e2, {
|
|
10236
10243
|
...d2 || {},
|
|
@@ -10244,7 +10251,7 @@ let __tla = Promise.all([
|
|
|
10244
10251
|
mount: true,
|
|
10245
10252
|
...c2
|
|
10246
10253
|
}
|
|
10247
|
-
}), p.mount.add(e2), d2 ?
|
|
10254
|
+
}), p.mount.add(e2), d2 ? BW({
|
|
10248
10255
|
field: d2,
|
|
10249
10256
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
10250
10257
|
name: e2
|
|
@@ -10261,11 +10268,11 @@ let __tla = Promise.all([
|
|
|
10261
10268
|
pattern: getRuleValue(c2.pattern)
|
|
10262
10269
|
} : {},
|
|
10263
10270
|
name: e2,
|
|
10264
|
-
onChange:
|
|
10265
|
-
onBlur:
|
|
10271
|
+
onChange: jW,
|
|
10272
|
+
onBlur: jW,
|
|
10266
10273
|
ref: (m3) => {
|
|
10267
10274
|
if (m3) {
|
|
10268
|
-
|
|
10275
|
+
VW(e2, c2), d2 = get(l, e2);
|
|
10269
10276
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
10270
10277
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
10271
10278
|
set(l, e2, {
|
|
@@ -10291,7 +10298,7 @@ let __tla = Promise.all([
|
|
|
10291
10298
|
} 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);
|
|
10292
10299
|
}
|
|
10293
10300
|
};
|
|
10294
|
-
},
|
|
10301
|
+
}, HW = () => r.shouldFocusError && iterateFieldsByAction(l, MW, p.mount), UW = (e2) => {
|
|
10295
10302
|
isBoolean(e2) && (_.state.next({
|
|
10296
10303
|
disabled: e2
|
|
10297
10304
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -10300,7 +10307,7 @@ let __tla = Promise.all([
|
|
|
10300
10307
|
r3.disabled = u2._f.disabled || e2;
|
|
10301
10308
|
}));
|
|
10302
10309
|
}, 0, false));
|
|
10303
|
-
},
|
|
10310
|
+
}, WW = (e2, u2) => async (f2) => {
|
|
10304
10311
|
let m2;
|
|
10305
10312
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
10306
10313
|
let h2 = cloneObject(d);
|
|
@@ -10322,7 +10329,7 @@ let __tla = Promise.all([
|
|
|
10322
10329
|
}
|
|
10323
10330
|
} else u2 && await u2({
|
|
10324
10331
|
...c.errors
|
|
10325
|
-
}, f2),
|
|
10332
|
+
}, f2), HW(), setTimeout(HW);
|
|
10326
10333
|
if (_.state.next({
|
|
10327
10334
|
isSubmitted: true,
|
|
10328
10335
|
isSubmitting: false,
|
|
@@ -10330,11 +10337,11 @@ let __tla = Promise.all([
|
|
|
10330
10337
|
submitCount: c.submitCount + 1,
|
|
10331
10338
|
errors: c.errors
|
|
10332
10339
|
}), m2) throw m2;
|
|
10333
|
-
},
|
|
10334
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10340
|
+
}, GW = (e2, r2 = {}) => {
|
|
10341
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? AW(e2, cloneObject(get(u, e2))) : (AW(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({
|
|
10335
10342
|
...c
|
|
10336
10343
|
}));
|
|
10337
|
-
},
|
|
10344
|
+
}, KW = (e2, m2 = {}) => {
|
|
10338
10345
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10339
10346
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10340
10347
|
if (m2.keepDirtyValues) {
|
|
@@ -10342,7 +10349,7 @@ let __tla = Promise.all([
|
|
|
10342
10349
|
...p.mount,
|
|
10343
10350
|
...Object.keys(getDirtyFields(u, d))
|
|
10344
10351
|
]);
|
|
10345
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10352
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : AW(r2, get(b2, r2));
|
|
10346
10353
|
} else {
|
|
10347
10354
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10348
10355
|
let r2 = get(l, e3);
|
|
@@ -10387,25 +10394,25 @@ let __tla = Promise.all([
|
|
|
10387
10394
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10388
10395
|
isSubmitting: false
|
|
10389
10396
|
});
|
|
10390
|
-
},
|
|
10397
|
+
}, qW = (e2, r2) => KW(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10391
10398
|
return {
|
|
10392
10399
|
control: {
|
|
10393
|
-
register:
|
|
10394
|
-
unregister:
|
|
10395
|
-
getFieldState:
|
|
10396
|
-
handleSubmit:
|
|
10397
|
-
setError:
|
|
10400
|
+
register: VW,
|
|
10401
|
+
unregister: zW,
|
|
10402
|
+
getFieldState: FW,
|
|
10403
|
+
handleSubmit: WW,
|
|
10404
|
+
setError: LW,
|
|
10398
10405
|
_executeSchema: R,
|
|
10399
10406
|
_getWatch: G,
|
|
10400
10407
|
_getDirty: W,
|
|
10401
10408
|
_updateValid: w,
|
|
10402
10409
|
_removeUnmounted: H,
|
|
10403
10410
|
_updateFieldArray: E,
|
|
10404
|
-
_updateDisabledField:
|
|
10411
|
+
_updateDisabledField: BW,
|
|
10405
10412
|
_getFieldArray: q,
|
|
10406
|
-
_reset:
|
|
10413
|
+
_reset: KW,
|
|
10407
10414
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10408
|
-
|
|
10415
|
+
qW(e2, r.resetOptions), _.state.next({
|
|
10409
10416
|
isLoading: false
|
|
10410
10417
|
});
|
|
10411
10418
|
}),
|
|
@@ -10415,7 +10422,7 @@ let __tla = Promise.all([
|
|
|
10415
10422
|
...e2
|
|
10416
10423
|
};
|
|
10417
10424
|
},
|
|
10418
|
-
_disableForm:
|
|
10425
|
+
_disableForm: UW,
|
|
10419
10426
|
_subjects: _,
|
|
10420
10427
|
_proxyFormState: g,
|
|
10421
10428
|
_setErrors: j,
|
|
@@ -10456,17 +10463,17 @@ let __tla = Promise.all([
|
|
|
10456
10463
|
};
|
|
10457
10464
|
}
|
|
10458
10465
|
},
|
|
10459
|
-
trigger:
|
|
10460
|
-
register:
|
|
10461
|
-
handleSubmit:
|
|
10462
|
-
watch:
|
|
10463
|
-
setValue:
|
|
10464
|
-
getValues:
|
|
10465
|
-
reset:
|
|
10466
|
-
resetField:
|
|
10467
|
-
clearErrors:
|
|
10468
|
-
unregister:
|
|
10469
|
-
setError:
|
|
10466
|
+
trigger: NW,
|
|
10467
|
+
register: VW,
|
|
10468
|
+
handleSubmit: WW,
|
|
10469
|
+
watch: RW,
|
|
10470
|
+
setValue: AW,
|
|
10471
|
+
getValues: PW,
|
|
10472
|
+
reset: qW,
|
|
10473
|
+
resetField: GW,
|
|
10474
|
+
clearErrors: IW,
|
|
10475
|
+
unregister: zW,
|
|
10476
|
+
setError: LW,
|
|
10470
10477
|
setFocus: (e2, r2 = {}) => {
|
|
10471
10478
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10472
10479
|
if (u2) {
|
|
@@ -10474,7 +10481,7 @@ let __tla = Promise.all([
|
|
|
10474
10481
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10475
10482
|
}
|
|
10476
10483
|
},
|
|
10477
|
-
getFieldState:
|
|
10484
|
+
getFieldState: FW
|
|
10478
10485
|
};
|
|
10479
10486
|
}
|
|
10480
10487
|
function useForm(e = {}) {
|
|
@@ -16199,21 +16206,21 @@ ${c}
|
|
|
16199
16206
|
_.pageSize,
|
|
16200
16207
|
_.pageIndex
|
|
16201
16208
|
], 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];
|
|
16202
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
16203
|
-
r[48] !== Z || r[49] !== e ? (
|
|
16204
|
-
let
|
|
16205
|
-
r[51] !== Z || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !==
|
|
16209
|
+
let { data: W, error: G, isPending: q, isFetching: kW } = useAsyncData(z, H), Z = useAtomValue(downloadSizeLimitAtom), AW;
|
|
16210
|
+
r[48] !== Z || r[49] !== e ? (AW = async () => !Z || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = Z, r[49] = e, r[50] = AW) : AW = r[50];
|
|
16211
|
+
let jW = e.showDownload, MW = e.get_size_bytes, NW = e.lazy, PW = e.totalRows, FW = useDeepCompareMemoize(w), IW = useDeepCompareMemoize(m), LW;
|
|
16212
|
+
r[51] !== Z || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== FW || r[58] !== IW ? (LW = [
|
|
16206
16213
|
Z,
|
|
16207
|
-
kW,
|
|
16208
|
-
AW,
|
|
16209
16214
|
jW,
|
|
16210
16215
|
MW,
|
|
16211
|
-
y,
|
|
16212
16216
|
NW,
|
|
16213
|
-
PW
|
|
16214
|
-
|
|
16215
|
-
|
|
16216
|
-
|
|
16217
|
+
PW,
|
|
16218
|
+
y,
|
|
16219
|
+
FW,
|
|
16220
|
+
IW
|
|
16221
|
+
], r[51] = Z, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = FW, r[58] = IW, r[59] = LW) : LW = r[59];
|
|
16222
|
+
let { data: RW, isPending: zW } = useAsyncData(AW, LW), BW = RW ?? null, VW = !!Z && e.showDownload && zW, HW;
|
|
16223
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (HW = async (e2) => ({
|
|
16217
16224
|
rows: await loadTableData((await u({
|
|
16218
16225
|
page_number: e2,
|
|
16219
16226
|
page_size: 1,
|
|
@@ -16222,17 +16229,17 @@ ${c}
|
|
|
16222
16229
|
filters: filtersToFilterGroup(w),
|
|
16223
16230
|
max_columns: null
|
|
16224
16231
|
})).data)
|
|
16225
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
16226
|
-
let
|
|
16227
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16232
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = HW) : HW = r[64];
|
|
16233
|
+
let UW = HW, WW;
|
|
16234
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (WW = () => {
|
|
16228
16235
|
v(_temp4$4);
|
|
16229
|
-
}, r[65] =
|
|
16230
|
-
let
|
|
16231
|
-
r[66] ===
|
|
16232
|
-
|
|
16233
|
-
], r[66] =
|
|
16234
|
-
let
|
|
16235
|
-
r[68] === e ?
|
|
16236
|
+
}, r[65] = WW) : WW = r[65];
|
|
16237
|
+
let GW = W == null ? void 0 : W.totalRows, KW;
|
|
16238
|
+
r[66] === GW ? KW = r[67] : (KW = [
|
|
16239
|
+
GW
|
|
16240
|
+
], r[66] = GW, r[67] = KW), (0, import_react.useEffect)(WW, KW);
|
|
16241
|
+
let qW;
|
|
16242
|
+
r[68] === e ? qW = r[69] : (qW = async () => {
|
|
16236
16243
|
let r2 = isStaticNotebook();
|
|
16237
16244
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
16238
16245
|
data: null,
|
|
@@ -16241,22 +16248,22 @@ ${c}
|
|
|
16241
16248
|
value_counts: {},
|
|
16242
16249
|
show_charts: false
|
|
16243
16250
|
} : e.get_column_summaries({});
|
|
16244
|
-
}, r[68] = e, r[69] =
|
|
16245
|
-
let
|
|
16246
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
16251
|
+
}, r[68] = e, r[69] = qW);
|
|
16252
|
+
let JW;
|
|
16253
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (JW = [
|
|
16247
16254
|
e.get_column_summaries,
|
|
16248
16255
|
e.showColumnSummaries,
|
|
16249
16256
|
w,
|
|
16250
16257
|
y,
|
|
16251
16258
|
e.totalRows,
|
|
16252
16259
|
e.data
|
|
16253
|
-
], 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] =
|
|
16254
|
-
let { data:
|
|
16255
|
-
if (r[77] ===
|
|
16256
|
-
|
|
16257
|
-
},
|
|
16258
|
-
|
|
16259
|
-
], r[77] =
|
|
16260
|
+
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] = JW) : JW = r[76];
|
|
16261
|
+
let { data: YW, error: XW } = useAsyncData(qW, JW), ZW, QW;
|
|
16262
|
+
if (r[77] === XW ? (ZW = r[78], QW = r[79]) : (ZW = () => {
|
|
16263
|
+
XW && Logger.error(XW);
|
|
16264
|
+
}, QW = [
|
|
16265
|
+
XW
|
|
16266
|
+
], r[77] = XW, r[78] = ZW, r[79] = QW), (0, import_react.useEffect)(ZW, QW), q) {
|
|
16260
16267
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
16261
16268
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
16262
16269
|
milliseconds: 200,
|
|
@@ -16265,7 +16272,7 @@ ${c}
|
|
|
16265
16272
|
})
|
|
16266
16273
|
}), r[80] = c2, r[81] = l2), l2;
|
|
16267
16274
|
}
|
|
16268
|
-
let
|
|
16275
|
+
let $W = null;
|
|
16269
16276
|
if (G) {
|
|
16270
16277
|
Logger.error(G);
|
|
16271
16278
|
let e2;
|
|
@@ -16281,62 +16288,62 @@ ${c}
|
|
|
16281
16288
|
children: G.message || "An unknown error occurred"
|
|
16282
16289
|
})
|
|
16283
16290
|
]
|
|
16284
|
-
}), r[82] = G, r[83] = e2),
|
|
16291
|
+
}), r[82] = G, r[83] = e2), $W = e2;
|
|
16285
16292
|
}
|
|
16286
|
-
let
|
|
16287
|
-
r[84] === O ?
|
|
16293
|
+
let eG;
|
|
16294
|
+
r[84] === O ? eG = r[85] : (eG = () => {
|
|
16288
16295
|
j(!O);
|
|
16289
|
-
}, r[84] = O, r[85] =
|
|
16290
|
-
let
|
|
16291
|
-
r[86] !== l || r[87] !==
|
|
16296
|
+
}, r[84] = O, r[85] = eG);
|
|
16297
|
+
let tG = eG, nG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, rG = W == null ? void 0 : W.rawRows, iG = kW && !q, aG = (W == null ? void 0 : W.totalRows) ?? e.totalRows, oG = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, sG = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, cG;
|
|
16298
|
+
r[86] !== l || r[87] !== YW || r[88] !== O || r[89] !== w || r[90] !== UW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== BW || r[95] !== VW || r[96] !== m || r[97] !== nG || r[98] !== rG || r[99] !== iG || r[100] !== aG || r[101] !== oG || r[102] !== sG || r[103] !== tG ? (cG = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
16292
16299
|
...e,
|
|
16293
|
-
data:
|
|
16294
|
-
rawData:
|
|
16295
|
-
columnSummaries:
|
|
16300
|
+
data: nG,
|
|
16301
|
+
rawData: rG,
|
|
16302
|
+
columnSummaries: YW,
|
|
16296
16303
|
sorting: m,
|
|
16297
16304
|
setSorting: h,
|
|
16298
16305
|
searchQuery: y,
|
|
16299
16306
|
setSearchQuery: b,
|
|
16300
16307
|
filters: w,
|
|
16301
16308
|
setFilters: T,
|
|
16302
|
-
reloading:
|
|
16303
|
-
totalRows:
|
|
16304
|
-
sizeBytes:
|
|
16305
|
-
sizeBytesIsLoading:
|
|
16309
|
+
reloading: iG,
|
|
16310
|
+
totalRows: aG,
|
|
16311
|
+
sizeBytes: BW,
|
|
16312
|
+
sizeBytesIsLoading: VW,
|
|
16306
16313
|
paginationState: _,
|
|
16307
16314
|
setPaginationState: v,
|
|
16308
|
-
cellStyles:
|
|
16309
|
-
cellHoverTexts:
|
|
16310
|
-
toggleDisplayHeader:
|
|
16315
|
+
cellStyles: oG,
|
|
16316
|
+
cellHoverTexts: sG,
|
|
16317
|
+
toggleDisplayHeader: tG,
|
|
16311
16318
|
isChartBuilderOpen: O,
|
|
16312
|
-
getRow:
|
|
16319
|
+
getRow: UW,
|
|
16313
16320
|
cellId: l,
|
|
16314
16321
|
maxHeight: e.maxHeight
|
|
16315
|
-
}), r[86] = l, r[87] =
|
|
16316
|
-
let
|
|
16317
|
-
r[105] !== l || r[106] !==
|
|
16322
|
+
}), r[86] = l, r[87] = YW, r[88] = O, r[89] = w, r[90] = UW, r[91] = _, r[92] = e, r[93] = y, r[94] = BW, r[95] = VW, r[96] = m, r[97] = nG, r[98] = rG, r[99] = iG, r[100] = aG, r[101] = oG, r[102] = sG, r[103] = tG, r[104] = cG) : cG = r[104];
|
|
16323
|
+
let lG = cG, uG;
|
|
16324
|
+
r[105] !== l || r[106] !== lG || 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 ? (uG = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
16318
16325
|
displayHeader: O,
|
|
16319
16326
|
onCloseChartBuilder: () => j(false),
|
|
16320
16327
|
data: (W == null ? void 0 : W.rows) || [],
|
|
16321
16328
|
columns: e.totalColumns,
|
|
16322
16329
|
totalRows: e.totalRows,
|
|
16323
|
-
dataTable:
|
|
16330
|
+
dataTable: lG,
|
|
16324
16331
|
getDataUrl: e.get_data_url,
|
|
16325
16332
|
fieldTypes: e.fieldTypes,
|
|
16326
16333
|
rowHeaders: e.rowHeaders,
|
|
16327
16334
|
cellId: l
|
|
16328
|
-
}) :
|
|
16329
|
-
let
|
|
16330
|
-
return r[116] !==
|
|
16335
|
+
}) : lG, r[105] = l, r[106] = lG, 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] = uG) : uG = r[115];
|
|
16336
|
+
let dG;
|
|
16337
|
+
return r[116] !== $W || r[117] !== uG ? (dG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16331
16338
|
children: [
|
|
16332
|
-
|
|
16333
|
-
|
|
16339
|
+
$W,
|
|
16340
|
+
uG
|
|
16334
16341
|
]
|
|
16335
|
-
}), r[116] =
|
|
16342
|
+
}), r[116] = $W, r[117] = uG, r[118] = dG) : dG = r[118], dG;
|
|
16336
16343
|
});
|
|
16337
16344
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
16338
|
-
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:
|
|
16339
|
-
let
|
|
16345
|
+
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: kW, setFilters: Z, reloading: AW, freezeColumnsLeft: jW, freezeColumnsRight: MW, hiddenColumns: NW, textJustifyColumns: PW, wrappedColumns: FW, columnWidths: IW, headerTooltip: LW, totalColumns: RW, get_row_ids: zW, cellStyles: BW, hoverTemplate: VW, cellHoverTexts: HW, toggleDisplayHeader: UW, isChartBuilderOpen: WW, calculate_top_k_rows: GW, preview_column: KW, getRow: qW, cellId: JW, maxHeight: YW }) => {
|
|
16346
|
+
let XW = (0, import_react.useId)(), { locale: ZW } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [QW, $W] = (0, import_react.useState)(0), { isPanelOpen: eG, isAnyPanelOpen: tG, togglePanel: nG, panelType: rG, setPanelType: iG } = usePanelOwnership(XW, JW), aG = isStaticNotebook(), oG = (0, import_react.useMemo)(() => {
|
|
16340
16347
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16341
16348
|
let e2 = toFieldTypes(O);
|
|
16342
16349
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -16345,13 +16352,13 @@ ${c}
|
|
|
16345
16352
|
}, [
|
|
16346
16353
|
O,
|
|
16347
16354
|
L
|
|
16348
|
-
]),
|
|
16355
|
+
]), sG = useDeepCompareMemoize(O ?? inferFieldTypes(r)), cG = (0, import_react.useMemo)(() => f === "all" ? sG : sG.slice(0, f), [
|
|
16349
16356
|
f,
|
|
16350
|
-
|
|
16351
|
-
]),
|
|
16357
|
+
sG
|
|
16358
|
+
]), lG = (0, import_react.useMemo)(() => {
|
|
16352
16359
|
let e2 = {};
|
|
16353
16360
|
if (r && r.length > 0) {
|
|
16354
|
-
for (let [c2, l2] of
|
|
16361
|
+
for (let [c2, l2] of cG) if (l2[0] === "number") {
|
|
16355
16362
|
let l3 = 0;
|
|
16356
16363
|
for (let e3 of r) {
|
|
16357
16364
|
let r2 = e3[c2];
|
|
@@ -16366,95 +16373,95 @@ ${c}
|
|
|
16366
16373
|
return e2;
|
|
16367
16374
|
}, [
|
|
16368
16375
|
r,
|
|
16369
|
-
|
|
16370
|
-
]),
|
|
16371
|
-
O || (w = false),
|
|
16372
|
-
let
|
|
16373
|
-
rowHeaders:
|
|
16376
|
+
cG
|
|
16377
|
+
]), uG = useDeepCompareMemoize(T), dG = useDeepCompareMemoize(PW), fG = useDeepCompareMemoize(FW), pG = useDeepCompareMemoize(IW), mG = useDeepCompareMemoize(oG), hG = useDeepCompareMemoize(lG), gG = cG.length;
|
|
16378
|
+
O || (w = false), aG && (m = null);
|
|
16379
|
+
let _G = (0, import_react.useMemo)(() => generateColumns({
|
|
16380
|
+
rowHeaders: uG,
|
|
16374
16381
|
selection: m,
|
|
16375
|
-
chartSpecModel:
|
|
16376
|
-
fieldTypes:
|
|
16377
|
-
textJustifyColumns:
|
|
16378
|
-
wrappedColumns:
|
|
16379
|
-
columnWidths:
|
|
16380
|
-
headerTooltip:
|
|
16382
|
+
chartSpecModel: mG,
|
|
16383
|
+
fieldTypes: cG,
|
|
16384
|
+
textJustifyColumns: dG,
|
|
16385
|
+
wrappedColumns: fG,
|
|
16386
|
+
columnWidths: pG,
|
|
16387
|
+
headerTooltip: LW,
|
|
16381
16388
|
showDataTypes: w,
|
|
16382
|
-
calculateTopKRows:
|
|
16383
|
-
fractionDigitsByColumn:
|
|
16389
|
+
calculateTopKRows: GW,
|
|
16390
|
+
fractionDigitsByColumn: hG
|
|
16384
16391
|
}), [
|
|
16385
16392
|
m,
|
|
16386
16393
|
w,
|
|
16387
|
-
|
|
16388
|
-
cG,
|
|
16389
|
-
oG,
|
|
16390
|
-
lG,
|
|
16394
|
+
mG,
|
|
16391
16395
|
uG,
|
|
16396
|
+
cG,
|
|
16392
16397
|
dG,
|
|
16393
|
-
|
|
16394
|
-
|
|
16395
|
-
|
|
16396
|
-
|
|
16398
|
+
fG,
|
|
16399
|
+
pG,
|
|
16400
|
+
LW,
|
|
16401
|
+
GW,
|
|
16402
|
+
hG
|
|
16403
|
+
]), vG = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
16397
16404
|
e2,
|
|
16398
16405
|
true
|
|
16399
16406
|
])), [
|
|
16400
16407
|
h
|
|
16401
|
-
]),
|
|
16408
|
+
]), yG = useEvent_default((e2) => {
|
|
16402
16409
|
if (m === "single") {
|
|
16403
16410
|
let r2 = Functions.asUpdater(e2)({});
|
|
16404
16411
|
z(Object.keys(r2).slice(0, 1));
|
|
16405
16412
|
}
|
|
16406
16413
|
if (m === "multi") {
|
|
16407
|
-
let r2 = Functions.asUpdater(e2)(
|
|
16414
|
+
let r2 = Functions.asUpdater(e2)(vG);
|
|
16408
16415
|
z(Object.keys(r2));
|
|
16409
16416
|
}
|
|
16410
|
-
}),
|
|
16411
|
-
if (
|
|
16417
|
+
}), bG = useEvent_default((e2) => {
|
|
16418
|
+
if ($W(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
16412
16419
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
16413
16420
|
r2 !== null && M((e3) => ({
|
|
16414
16421
|
...e3,
|
|
16415
16422
|
pageIndex: r2
|
|
16416
16423
|
}));
|
|
16417
|
-
}),
|
|
16418
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
16419
|
-
}),
|
|
16420
|
-
if (!(
|
|
16424
|
+
}), xG = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), SG = useEvent_default((e2) => {
|
|
16425
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(xG).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(xG));
|
|
16426
|
+
}), CG = m === "multi" || m === "single", wG = y && !!KW, TG = isInVscodeExtension(), EG = isIslands(), DG = (0, import_react.useMemo)(() => {
|
|
16427
|
+
if (!(!tG || !(b || wG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
16421
16428
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
16422
|
-
rowIdx:
|
|
16423
|
-
setRowIdx:
|
|
16429
|
+
rowIdx: QW,
|
|
16430
|
+
setRowIdx: bG,
|
|
16424
16431
|
totalRows: l,
|
|
16425
|
-
fieldTypes:
|
|
16426
|
-
getRow:
|
|
16427
|
-
isSelectable:
|
|
16428
|
-
isRowSelected: !!
|
|
16429
|
-
handleRowSelectionChange:
|
|
16430
|
-
previewColumn:
|
|
16431
|
-
totalColumns:
|
|
16432
|
-
tableId:
|
|
16432
|
+
fieldTypes: sG,
|
|
16433
|
+
getRow: qW,
|
|
16434
|
+
isSelectable: CG,
|
|
16435
|
+
isRowSelected: !!vG[QW],
|
|
16436
|
+
handleRowSelectionChange: yG,
|
|
16437
|
+
previewColumn: KW,
|
|
16438
|
+
totalColumns: RW,
|
|
16439
|
+
tableId: XW,
|
|
16433
16440
|
table: e2,
|
|
16434
|
-
showRowExplorer: b && !
|
|
16435
|
-
showColumnExplorer:
|
|
16436
|
-
activeTab:
|
|
16437
|
-
onTabChange:
|
|
16441
|
+
showRowExplorer: b && !TG,
|
|
16442
|
+
showColumnExplorer: wG && !TG,
|
|
16443
|
+
activeTab: rG,
|
|
16444
|
+
onTabChange: iG
|
|
16438
16445
|
})
|
|
16439
16446
|
});
|
|
16440
16447
|
}, [
|
|
16441
|
-
|
|
16448
|
+
tG,
|
|
16442
16449
|
b,
|
|
16443
|
-
|
|
16444
|
-
|
|
16445
|
-
|
|
16450
|
+
wG,
|
|
16451
|
+
QW,
|
|
16452
|
+
bG,
|
|
16446
16453
|
l,
|
|
16447
|
-
|
|
16448
|
-
|
|
16449
|
-
xG,
|
|
16450
|
-
gG,
|
|
16451
|
-
_G,
|
|
16452
|
-
WW,
|
|
16453
|
-
IW,
|
|
16454
|
-
JW,
|
|
16454
|
+
sG,
|
|
16455
|
+
qW,
|
|
16455
16456
|
CG,
|
|
16456
|
-
|
|
16457
|
-
|
|
16457
|
+
vG,
|
|
16458
|
+
yG,
|
|
16459
|
+
KW,
|
|
16460
|
+
RW,
|
|
16461
|
+
XW,
|
|
16462
|
+
TG,
|
|
16463
|
+
rG,
|
|
16464
|
+
iG
|
|
16458
16465
|
]);
|
|
16459
16466
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16460
16467
|
children: [
|
|
@@ -16466,27 +16473,27 @@ ${c}
|
|
|
16466
16473
|
" rows."
|
|
16467
16474
|
]
|
|
16468
16475
|
}),
|
|
16469
|
-
|
|
16476
|
+
gG < RW && gG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16470
16477
|
className: "mb-1 rounded",
|
|
16471
16478
|
children: [
|
|
16472
16479
|
"Result clipped. Showing ",
|
|
16473
|
-
|
|
16480
|
+
gG,
|
|
16474
16481
|
" of ",
|
|
16475
|
-
|
|
16482
|
+
RW,
|
|
16476
16483
|
" columns."
|
|
16477
16484
|
]
|
|
16478
16485
|
}),
|
|
16479
|
-
|
|
16486
|
+
aG && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16480
16487
|
className: "mb-1 rounded",
|
|
16481
16488
|
children: [
|
|
16482
16489
|
"Showing the first ",
|
|
16483
16490
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16484
|
-
children: prettyNumber(r.length,
|
|
16491
|
+
children: prettyNumber(r.length, ZW)
|
|
16485
16492
|
}),
|
|
16486
16493
|
" ",
|
|
16487
16494
|
"of ",
|
|
16488
16495
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16489
|
-
children: prettyNumber(l,
|
|
16496
|
+
children: prettyNumber(l, ZW)
|
|
16490
16497
|
}),
|
|
16491
16498
|
" rows. Increase the table's ",
|
|
16492
16499
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -16500,7 +16507,7 @@ ${c}
|
|
|
16500
16507
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
16501
16508
|
}),
|
|
16502
16509
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
16503
|
-
value:
|
|
16510
|
+
value: oG,
|
|
16504
16511
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
16505
16512
|
label: e,
|
|
16506
16513
|
align: "top",
|
|
@@ -16508,14 +16515,14 @@ ${c}
|
|
|
16508
16515
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
16509
16516
|
data: r,
|
|
16510
16517
|
rawData: c,
|
|
16511
|
-
columns:
|
|
16518
|
+
columns: _G,
|
|
16512
16519
|
className: R,
|
|
16513
|
-
maxHeight:
|
|
16520
|
+
maxHeight: YW,
|
|
16514
16521
|
sorting: B,
|
|
16515
16522
|
totalRows: l,
|
|
16516
16523
|
sizeBytes: u,
|
|
16517
16524
|
sizeBytesIsLoading: d,
|
|
16518
|
-
totalColumns:
|
|
16525
|
+
totalColumns: RW,
|
|
16519
16526
|
manualSorting: true,
|
|
16520
16527
|
setSorting: H,
|
|
16521
16528
|
pagination: p,
|
|
@@ -16523,37 +16530,37 @@ ${c}
|
|
|
16523
16530
|
selection: m,
|
|
16524
16531
|
paginationState: j,
|
|
16525
16532
|
setPaginationState: M,
|
|
16526
|
-
rowSelection:
|
|
16527
|
-
cellSelection:
|
|
16528
|
-
cellStyling:
|
|
16529
|
-
hoverTemplate:
|
|
16530
|
-
cellHoverTexts:
|
|
16533
|
+
rowSelection: vG,
|
|
16534
|
+
cellSelection: xG,
|
|
16535
|
+
cellStyling: BW,
|
|
16536
|
+
hoverTemplate: VW,
|
|
16537
|
+
cellHoverTexts: HW,
|
|
16531
16538
|
downloadAs: _ ? I : void 0,
|
|
16532
16539
|
showSearch: W,
|
|
16533
16540
|
searchQuery: G,
|
|
16534
16541
|
onSearchQueryChange: q,
|
|
16535
16542
|
showFilters: g,
|
|
16536
|
-
filters:
|
|
16543
|
+
filters: kW,
|
|
16537
16544
|
onFiltersChange: Z,
|
|
16538
|
-
calculateTopKRows:
|
|
16539
|
-
reloading:
|
|
16540
|
-
onRowSelectionChange:
|
|
16541
|
-
freezeColumnsLeft:
|
|
16542
|
-
freezeColumnsRight:
|
|
16543
|
-
hiddenColumns:
|
|
16544
|
-
onCellSelectionChange:
|
|
16545
|
-
getRowIds:
|
|
16546
|
-
toggleDisplayHeader:
|
|
16547
|
-
showChartBuilder: S && !
|
|
16548
|
-
isChartBuilderOpen:
|
|
16545
|
+
calculateTopKRows: GW,
|
|
16546
|
+
reloading: AW,
|
|
16547
|
+
onRowSelectionChange: yG,
|
|
16548
|
+
freezeColumnsLeft: jW,
|
|
16549
|
+
freezeColumnsRight: MW,
|
|
16550
|
+
hiddenColumns: NW,
|
|
16551
|
+
onCellSelectionChange: SG,
|
|
16552
|
+
getRowIds: zW,
|
|
16553
|
+
toggleDisplayHeader: UW,
|
|
16554
|
+
showChartBuilder: S && !EG,
|
|
16555
|
+
isChartBuilderOpen: WW,
|
|
16549
16556
|
showPageSizeSelector: v,
|
|
16550
|
-
showTableExplorer: (b ||
|
|
16551
|
-
togglePanel:
|
|
16552
|
-
isPanelOpen:
|
|
16553
|
-
isAnyPanelOpen:
|
|
16554
|
-
viewedRowIdx:
|
|
16555
|
-
onViewedRowChange: (e2) =>
|
|
16556
|
-
renderTableExplorerPanel:
|
|
16557
|
+
showTableExplorer: (b || wG) && !TG && !EG,
|
|
16558
|
+
togglePanel: nG,
|
|
16559
|
+
isPanelOpen: eG,
|
|
16560
|
+
isAnyPanelOpen: tG,
|
|
16561
|
+
viewedRowIdx: QW,
|
|
16562
|
+
onViewedRowChange: (e2) => $W(e2),
|
|
16563
|
+
renderTableExplorerPanel: DG
|
|
16557
16564
|
})
|
|
16558
16565
|
})
|
|
16559
16566
|
})
|
|
@@ -18605,29 +18612,29 @@ ${c}
|
|
|
18605
18612
|
], r[2] = S, r[3] = w);
|
|
18606
18613
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
18607
18614
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
18608
|
-
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,
|
|
18609
|
-
r[6] === d ?
|
|
18615
|
+
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, kW] = (0, import_react.useState)(f || EMPTY), Z = (0, import_react.useRef)(null), AW;
|
|
18616
|
+
r[6] === d ? AW = r[7] : (AW = (e2) => {
|
|
18610
18617
|
var _a5;
|
|
18611
18618
|
d && e2 !== "transform" && ((_a5 = Z.current) == null ? void 0 : _a5.submit());
|
|
18612
|
-
}, r[6] = d, r[7] =
|
|
18613
|
-
let
|
|
18614
|
-
r[8] === q ?
|
|
18615
|
-
|
|
18616
|
-
}, r[8] = q, r[9] =
|
|
18617
|
-
let
|
|
18618
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
18619
|
-
let e2 =
|
|
18619
|
+
}, r[6] = d, r[7] = AW);
|
|
18620
|
+
let jW = AW, MW = (0, import_react.useRef)(q), NW;
|
|
18621
|
+
r[8] === q ? NW = r[9] : (NW = () => {
|
|
18622
|
+
MW.current = q;
|
|
18623
|
+
}, r[8] = q, r[9] = NW), (0, import_react.useEffect)(NW);
|
|
18624
|
+
let PW;
|
|
18625
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (PW = () => {
|
|
18626
|
+
let e2 = MW.current;
|
|
18620
18627
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
18621
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
18622
|
-
let
|
|
18623
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
18628
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = PW) : PW = r[12];
|
|
18629
|
+
let FW = f == null ? void 0 : f.transforms.length, IW;
|
|
18630
|
+
r[13] !== T || r[14] !== p || r[15] !== FW ? (IW = [
|
|
18624
18631
|
T,
|
|
18625
|
-
|
|
18626
|
-
|
|
18632
|
+
FW,
|
|
18633
|
+
MW,
|
|
18627
18634
|
p
|
|
18628
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
18629
|
-
let
|
|
18630
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18635
|
+
], r[13] = T, r[14] = p, r[15] = FW, r[16] = IW) : IW = r[16], (0, import_react.useEffect)(PW, IW);
|
|
18636
|
+
let LW;
|
|
18637
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (LW = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18631
18638
|
value: "transform",
|
|
18632
18639
|
className: "text-xs py-1",
|
|
18633
18640
|
children: [
|
|
@@ -18636,9 +18643,9 @@ ${c}
|
|
|
18636
18643
|
}),
|
|
18637
18644
|
"Transform"
|
|
18638
18645
|
]
|
|
18639
|
-
}), r[17] =
|
|
18640
|
-
let
|
|
18641
|
-
r[18] === H ?
|
|
18646
|
+
}), r[17] = LW) : LW = r[17];
|
|
18647
|
+
let RW;
|
|
18648
|
+
r[18] === H ? RW = r[19] : (RW = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18642
18649
|
value: "python-code",
|
|
18643
18650
|
className: "text-xs py-1",
|
|
18644
18651
|
children: [
|
|
@@ -18647,9 +18654,9 @@ ${c}
|
|
|
18647
18654
|
}),
|
|
18648
18655
|
"Python Code"
|
|
18649
18656
|
]
|
|
18650
|
-
}), r[18] = H, r[19] =
|
|
18651
|
-
let
|
|
18652
|
-
r[20] === W ?
|
|
18657
|
+
}), r[18] = H, r[19] = RW);
|
|
18658
|
+
let zW;
|
|
18659
|
+
r[20] === W ? zW = r[21] : (zW = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18653
18660
|
value: "sql-code",
|
|
18654
18661
|
className: "text-xs py-1",
|
|
18655
18662
|
children: [
|
|
@@ -18658,54 +18665,54 @@ ${c}
|
|
|
18658
18665
|
}),
|
|
18659
18666
|
"SQL Code"
|
|
18660
18667
|
]
|
|
18661
|
-
}), r[20] = W, r[21] =
|
|
18662
|
-
let
|
|
18663
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18668
|
+
}), r[20] = W, r[21] = zW);
|
|
18669
|
+
let BW;
|
|
18670
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (BW = (0, import_jsx_runtime.jsx)("div", {
|
|
18664
18671
|
className: "grow"
|
|
18665
|
-
}), r[22] =
|
|
18666
|
-
let
|
|
18667
|
-
r[23] !==
|
|
18672
|
+
}), r[22] = BW) : BW = r[22];
|
|
18673
|
+
let VW;
|
|
18674
|
+
r[23] !== RW || r[24] !== zW ? (VW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
18668
18675
|
className: "h-8",
|
|
18669
18676
|
children: [
|
|
18670
|
-
FW,
|
|
18671
|
-
IW,
|
|
18672
18677
|
LW,
|
|
18673
|
-
RW
|
|
18674
|
-
]
|
|
18675
|
-
}), r[23] = IW, r[24] = LW, r[25] = zW) : zW = r[25];
|
|
18676
|
-
let BW;
|
|
18677
|
-
r[26] === j ? BW = r[27] : (BW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18678
|
-
size: "small"
|
|
18679
|
-
}), r[26] = j, r[27] = BW);
|
|
18680
|
-
let VW;
|
|
18681
|
-
r[28] !== zW || r[29] !== BW ? (VW = (0, import_jsx_runtime.jsxs)("div", {
|
|
18682
|
-
className: "flex items-center gap-2",
|
|
18683
|
-
children: [
|
|
18678
|
+
RW,
|
|
18684
18679
|
zW,
|
|
18685
18680
|
BW
|
|
18686
18681
|
]
|
|
18687
|
-
}), r[
|
|
18682
|
+
}), r[23] = RW, r[24] = zW, r[25] = VW) : VW = r[25];
|
|
18688
18683
|
let HW;
|
|
18689
|
-
r[
|
|
18690
|
-
|
|
18691
|
-
}, r[
|
|
18684
|
+
r[26] === j ? HW = r[27] : (HW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18685
|
+
size: "small"
|
|
18686
|
+
}), r[26] = j, r[27] = HW);
|
|
18692
18687
|
let UW;
|
|
18693
|
-
r[
|
|
18688
|
+
r[28] !== VW || r[29] !== HW ? (UW = (0, import_jsx_runtime.jsxs)("div", {
|
|
18689
|
+
className: "flex items-center gap-2",
|
|
18690
|
+
children: [
|
|
18691
|
+
VW,
|
|
18692
|
+
HW
|
|
18693
|
+
]
|
|
18694
|
+
}), r[28] = VW, r[29] = HW, r[30] = UW) : UW = r[30];
|
|
18695
|
+
let WW;
|
|
18696
|
+
r[31] !== p || r[32] !== f ? (WW = (e2) => {
|
|
18697
|
+
dequal(e2, f) || (p(e2), kW(e2));
|
|
18698
|
+
}, r[31] = p, r[32] = f, r[33] = WW) : WW = r[33];
|
|
18699
|
+
let GW;
|
|
18700
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== WW ? (GW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18694
18701
|
value: "transform",
|
|
18695
18702
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18696
18703
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18697
18704
|
ref: Z,
|
|
18698
18705
|
initialValue: q,
|
|
18699
18706
|
columns: c,
|
|
18700
|
-
onChange:
|
|
18701
|
-
onInvalidChange:
|
|
18707
|
+
onChange: WW,
|
|
18708
|
+
onInvalidChange: kW,
|
|
18702
18709
|
getColumnValues: h,
|
|
18703
18710
|
columnTypesPerStep: B,
|
|
18704
18711
|
lazy: d
|
|
18705
18712
|
})
|
|
18706
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
18707
|
-
let
|
|
18708
|
-
r[41] === H ?
|
|
18713
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = WW, r[40] = GW) : GW = r[40];
|
|
18714
|
+
let KW;
|
|
18715
|
+
r[41] === H ? KW = r[42] : (KW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18709
18716
|
value: "python-code",
|
|
18710
18717
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18711
18718
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18714,9 +18721,9 @@ ${c}
|
|
|
18714
18721
|
code: H,
|
|
18715
18722
|
language: "python"
|
|
18716
18723
|
})
|
|
18717
|
-
}), r[41] = H, r[42] =
|
|
18718
|
-
let
|
|
18719
|
-
r[43] === W ?
|
|
18724
|
+
}), r[41] = H, r[42] = KW);
|
|
18725
|
+
let qW;
|
|
18726
|
+
r[43] === W ? qW = r[44] : (qW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18720
18727
|
value: "sql-code",
|
|
18721
18728
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18722
18729
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18725,35 +18732,35 @@ ${c}
|
|
|
18725
18732
|
code: W,
|
|
18726
18733
|
language: "sql"
|
|
18727
18734
|
})
|
|
18728
|
-
}), r[43] = W, r[44] =
|
|
18729
|
-
let
|
|
18730
|
-
r[45] !==
|
|
18735
|
+
}), r[43] = W, r[44] = qW);
|
|
18736
|
+
let JW;
|
|
18737
|
+
r[45] !== jW || r[46] !== UW || r[47] !== GW || r[48] !== KW || r[49] !== qW ? (JW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18731
18738
|
defaultValue: "transform",
|
|
18732
|
-
onValueChange:
|
|
18739
|
+
onValueChange: jW,
|
|
18733
18740
|
children: [
|
|
18734
|
-
VW,
|
|
18735
18741
|
UW,
|
|
18736
|
-
|
|
18737
|
-
|
|
18742
|
+
GW,
|
|
18743
|
+
KW,
|
|
18744
|
+
qW
|
|
18738
18745
|
]
|
|
18739
|
-
}), r[45] =
|
|
18740
|
-
let
|
|
18741
|
-
r[51] === O ?
|
|
18746
|
+
}), r[45] = jW, r[46] = UW, r[47] = GW, r[48] = KW, r[49] = qW, r[50] = JW) : JW = r[50];
|
|
18747
|
+
let YW;
|
|
18748
|
+
r[51] === O ? YW = r[52] : (YW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18742
18749
|
error: O
|
|
18743
|
-
}), r[51] = O, r[52] =
|
|
18744
|
-
let
|
|
18745
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
18750
|
+
}), r[51] = O, r[52] = YW);
|
|
18751
|
+
let XW = I || "", ZW = L ?? 0, QW = G ?? 0, $W = R || Arrays.EMPTY, eG = L && L > 5 || false, tG;
|
|
18752
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== XW || r[61] !== ZW || r[62] !== QW || r[63] !== $W || r[64] !== eG ? (tG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
18746
18753
|
label: null,
|
|
18747
18754
|
className: "rounded-b border-x border-b",
|
|
18748
|
-
data:
|
|
18755
|
+
data: XW,
|
|
18749
18756
|
hasStableRowId: false,
|
|
18750
|
-
totalRows:
|
|
18751
|
-
totalColumns:
|
|
18757
|
+
totalRows: ZW,
|
|
18758
|
+
totalColumns: QW,
|
|
18752
18759
|
maxColumns: "all",
|
|
18753
18760
|
pageSize: l,
|
|
18754
18761
|
pagination: true,
|
|
18755
18762
|
fieldTypes: z,
|
|
18756
|
-
rowHeaders:
|
|
18763
|
+
rowHeaders: $W,
|
|
18757
18764
|
showDownload: u,
|
|
18758
18765
|
download_as: _,
|
|
18759
18766
|
get_size_bytes: v,
|
|
@@ -18763,7 +18770,7 @@ ${c}
|
|
|
18763
18770
|
showColumnSummaries: false,
|
|
18764
18771
|
showDataTypes: true,
|
|
18765
18772
|
get_column_summaries: getColumnSummaries,
|
|
18766
|
-
showPageSizeSelector:
|
|
18773
|
+
showPageSizeSelector: eG,
|
|
18767
18774
|
showColumnExplorer: false,
|
|
18768
18775
|
showRowExplorer: true,
|
|
18769
18776
|
showChartBuilder: false,
|
|
@@ -18772,15 +18779,15 @@ ${c}
|
|
|
18772
18779
|
selection: null,
|
|
18773
18780
|
lazy: false,
|
|
18774
18781
|
host: y
|
|
18775
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
18776
|
-
let
|
|
18777
|
-
return r[66] !==
|
|
18782
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = XW, r[61] = ZW, r[62] = QW, r[63] = $W, r[64] = eG, r[65] = tG) : tG = r[65];
|
|
18783
|
+
let nG;
|
|
18784
|
+
return r[66] !== JW || r[67] !== YW || r[68] !== tG ? (nG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18778
18785
|
children: [
|
|
18779
|
-
|
|
18780
|
-
|
|
18781
|
-
|
|
18786
|
+
JW,
|
|
18787
|
+
YW,
|
|
18788
|
+
tG
|
|
18782
18789
|
]
|
|
18783
|
-
}), r[66] =
|
|
18790
|
+
}), r[66] = JW, r[67] = YW, r[68] = tG, r[69] = nG) : nG = r[69], nG;
|
|
18784
18791
|
});
|
|
18785
18792
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18786
18793
|
function getColumnSummaries() {
|
|
@@ -18971,23 +18978,23 @@ ${c}
|
|
|
18971
18978
|
}, [
|
|
18972
18979
|
H
|
|
18973
18980
|
]);
|
|
18974
|
-
let
|
|
18981
|
+
let kW = (R == null ? void 0 : R.files) ?? [], Z = new Set(e.map((e2) => e2.path)), AW = l === "directory" || l === "all", jW = l === "file" || l === "all", MW = kW.filter((e2) => AW && e2.is_directory || jW && !e2.is_directory), NW = MW.length > 0 && MW.every((e2) => Z.has(e2.path));
|
|
18975
18982
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
18976
18983
|
kind: "danger",
|
|
18977
18984
|
children: z.message
|
|
18978
18985
|
});
|
|
18979
|
-
let
|
|
18986
|
+
let PW = PathBuilder.guessDeliminator(c).deliminator, FW = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
18980
18987
|
children: e2.path
|
|
18981
18988
|
}, e2.id));
|
|
18982
|
-
function
|
|
18989
|
+
function IW(e2) {
|
|
18983
18990
|
var _a6;
|
|
18984
18991
|
if (v) return;
|
|
18985
18992
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
18986
|
-
if (g ===
|
|
18993
|
+
if (g === PW) {
|
|
18987
18994
|
y(false);
|
|
18988
18995
|
return;
|
|
18989
18996
|
}
|
|
18990
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
18997
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = PW);
|
|
18991
18998
|
}
|
|
18992
18999
|
let r2 = e2.length < c.length;
|
|
18993
19000
|
if (f && r2) {
|
|
@@ -19000,7 +19007,7 @@ ${c}
|
|
|
19000
19007
|
}
|
|
19001
19008
|
M.current = ((_a6 = j.current) == null ? void 0 : _a6.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
19002
19009
|
}
|
|
19003
|
-
function
|
|
19010
|
+
function LW({ path: e2, name: r2, isDirectory: c2 }) {
|
|
19004
19011
|
return {
|
|
19005
19012
|
id: e2,
|
|
19006
19013
|
name: r2,
|
|
@@ -19008,8 +19015,8 @@ ${c}
|
|
|
19008
19015
|
is_directory: c2
|
|
19009
19016
|
};
|
|
19010
19017
|
}
|
|
19011
|
-
function
|
|
19012
|
-
let f2 =
|
|
19018
|
+
function BW({ path: c2, name: l2, isDirectory: d2 }) {
|
|
19019
|
+
let f2 = LW({
|
|
19013
19020
|
path: c2,
|
|
19014
19021
|
name: l2,
|
|
19015
19022
|
isDirectory: d2
|
|
@@ -19021,14 +19028,14 @@ ${c}
|
|
|
19021
19028
|
f2
|
|
19022
19029
|
]);
|
|
19023
19030
|
}
|
|
19024
|
-
function
|
|
19031
|
+
function VW() {
|
|
19025
19032
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
19026
19033
|
}
|
|
19027
|
-
function
|
|
19034
|
+
function HW() {
|
|
19028
19035
|
let c2 = [];
|
|
19029
|
-
for (let e2 of
|
|
19030
|
-
if (!
|
|
19031
|
-
let r2 =
|
|
19036
|
+
for (let e2 of kW) {
|
|
19037
|
+
if (!AW && e2.is_directory || Z.has(e2.path)) continue;
|
|
19038
|
+
let r2 = LW({
|
|
19032
19039
|
path: e2.path,
|
|
19033
19040
|
name: e2.name,
|
|
19034
19041
|
isDirectory: e2.is_directory
|
|
@@ -19040,20 +19047,20 @@ ${c}
|
|
|
19040
19047
|
...c2
|
|
19041
19048
|
]);
|
|
19042
19049
|
}
|
|
19043
|
-
let
|
|
19050
|
+
let UW = [
|
|
19044
19051
|
{
|
|
19045
19052
|
key: "parent",
|
|
19046
19053
|
name: PARENT_DIRECTORY,
|
|
19047
19054
|
Icon: CornerLeftUp,
|
|
19048
19055
|
isSelected: false,
|
|
19049
19056
|
canSelect: false,
|
|
19050
|
-
onPrimary: () =>
|
|
19057
|
+
onPrimary: () => IW(PARENT_DIRECTORY),
|
|
19051
19058
|
onToggleSelect: null
|
|
19052
19059
|
},
|
|
19053
|
-
...
|
|
19060
|
+
...kW.map((e2) => {
|
|
19054
19061
|
let r2 = e2.path;
|
|
19055
19062
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
19056
|
-
let c2 =
|
|
19063
|
+
let c2 = AW && e2.is_directory || jW && !e2.is_directory, l2 = Z.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => BW({
|
|
19057
19064
|
path: r2,
|
|
19058
19065
|
name: e2.name,
|
|
19059
19066
|
isDirectory: e2.is_directory
|
|
@@ -19064,46 +19071,46 @@ ${c}
|
|
|
19064
19071
|
Icon: FILE_ICON[u2],
|
|
19065
19072
|
isSelected: l2,
|
|
19066
19073
|
canSelect: c2,
|
|
19067
|
-
onPrimary: e2.is_directory ? () =>
|
|
19074
|
+
onPrimary: e2.is_directory ? () => IW(r2) : c2 ? d2 : () => {
|
|
19068
19075
|
},
|
|
19069
19076
|
onToggleSelect: c2 ? d2 : null
|
|
19070
19077
|
};
|
|
19071
19078
|
})
|
|
19072
19079
|
];
|
|
19073
|
-
function
|
|
19080
|
+
function WW(e2) {
|
|
19074
19081
|
var _a6;
|
|
19075
19082
|
E(e2), (_a6 = O.current[e2]) == null ? void 0 : _a6.focus();
|
|
19076
19083
|
}
|
|
19077
|
-
function
|
|
19084
|
+
function GW(e2, r2) {
|
|
19078
19085
|
var _a6, _b3;
|
|
19079
|
-
let c2 =
|
|
19086
|
+
let c2 = UW.length - 1;
|
|
19080
19087
|
switch (e2.key) {
|
|
19081
19088
|
case "ArrowDown":
|
|
19082
|
-
e2.preventDefault(),
|
|
19089
|
+
e2.preventDefault(), WW(Math.min(r2 + 1, c2));
|
|
19083
19090
|
break;
|
|
19084
19091
|
case "ArrowUp":
|
|
19085
|
-
e2.preventDefault(),
|
|
19092
|
+
e2.preventDefault(), WW(Math.max(r2 - 1, 0));
|
|
19086
19093
|
break;
|
|
19087
19094
|
case "Home":
|
|
19088
|
-
e2.preventDefault(),
|
|
19095
|
+
e2.preventDefault(), WW(0);
|
|
19089
19096
|
break;
|
|
19090
19097
|
case "End":
|
|
19091
|
-
e2.preventDefault(),
|
|
19098
|
+
e2.preventDefault(), WW(c2);
|
|
19092
19099
|
break;
|
|
19093
19100
|
case "Enter":
|
|
19094
|
-
e2.preventDefault(),
|
|
19101
|
+
e2.preventDefault(), UW[r2].onPrimary();
|
|
19095
19102
|
break;
|
|
19096
19103
|
case " ":
|
|
19097
|
-
e2.preventDefault(), (_b3 = (_a6 =
|
|
19104
|
+
e2.preventDefault(), (_b3 = (_a6 = UW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a6);
|
|
19098
19105
|
break;
|
|
19099
19106
|
}
|
|
19100
19107
|
}
|
|
19101
|
-
let { parentDirectories:
|
|
19108
|
+
let { parentDirectories: KW } = getProtocolAndParentDirectories({
|
|
19102
19109
|
path: g,
|
|
19103
|
-
delimiter:
|
|
19110
|
+
delimiter: PW,
|
|
19104
19111
|
initialPath: c,
|
|
19105
19112
|
restrictNavigation: f
|
|
19106
|
-
}),
|
|
19113
|
+
}), qW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
19107
19114
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
19108
19115
|
children: [
|
|
19109
19116
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -19113,7 +19120,7 @@ ${c}
|
|
|
19113
19120
|
(() => {
|
|
19114
19121
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
19115
19122
|
children: renderHTML({
|
|
19116
|
-
html: d ?? `Select ${
|
|
19123
|
+
html: d ?? `Select ${qW.join(" and ", 2)}...`
|
|
19117
19124
|
})
|
|
19118
19125
|
});
|
|
19119
19126
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -19127,8 +19134,8 @@ ${c}
|
|
|
19127
19134
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
19128
19135
|
size: "xs",
|
|
19129
19136
|
variant: "link",
|
|
19130
|
-
onClick:
|
|
19131
|
-
children:
|
|
19137
|
+
onClick: NW ? VW : HW,
|
|
19138
|
+
children: NW ? "Deselect all" : "Select all"
|
|
19132
19139
|
})
|
|
19133
19140
|
})
|
|
19134
19141
|
]
|
|
@@ -19138,15 +19145,15 @@ ${c}
|
|
|
19138
19145
|
className: "mt-2 w-full",
|
|
19139
19146
|
placeholder: g,
|
|
19140
19147
|
value: g,
|
|
19141
|
-
onChange: (e2) =>
|
|
19142
|
-
children:
|
|
19148
|
+
onChange: (e2) => IW(e2.target.value),
|
|
19149
|
+
children: KW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
19143
19150
|
value: e2,
|
|
19144
19151
|
children: e2
|
|
19145
19152
|
}, e2))
|
|
19146
19153
|
}),
|
|
19147
19154
|
R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
19148
19155
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
19149
|
-
children: R.is_truncated ? `Showing ${
|
|
19156
|
+
children: R.is_truncated ? `Showing ${kW.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
19150
19157
|
}),
|
|
19151
19158
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
19152
19159
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
@@ -19175,14 +19182,14 @@ ${c}
|
|
|
19175
19182
|
"aria-label": "File browser",
|
|
19176
19183
|
"aria-multiselectable": u,
|
|
19177
19184
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
19178
|
-
children:
|
|
19185
|
+
children: UW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
19179
19186
|
role: "row",
|
|
19180
19187
|
ref: (e3) => {
|
|
19181
19188
|
O.current[r2] = e3;
|
|
19182
19189
|
},
|
|
19183
19190
|
tabIndex: r2 === T ? 0 : -1,
|
|
19184
19191
|
onFocus: () => E(r2),
|
|
19185
|
-
onKeyDown: (e3) =>
|
|
19192
|
+
onKeyDown: (e3) => GW(e3, r2),
|
|
19186
19193
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
19187
19194
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
19188
19195
|
}),
|
|
@@ -19225,7 +19232,7 @@ ${c}
|
|
|
19225
19232
|
children: [
|
|
19226
19233
|
e.length,
|
|
19227
19234
|
" ",
|
|
19228
|
-
|
|
19235
|
+
qW.join(" or ", e.length),
|
|
19229
19236
|
" ",
|
|
19230
19237
|
"selected"
|
|
19231
19238
|
]
|
|
@@ -19245,7 +19252,7 @@ ${c}
|
|
|
19245
19252
|
marginBlock: 0
|
|
19246
19253
|
},
|
|
19247
19254
|
className: "m-0 text-xs text-muted-foreground",
|
|
19248
|
-
children:
|
|
19255
|
+
children: FW
|
|
19249
19256
|
})
|
|
19250
19257
|
})
|
|
19251
19258
|
]
|
|
@@ -24627,55 +24634,55 @@ ${c}
|
|
|
24627
24634
|
return typeof S == "function" ? S : noop$2;
|
|
24628
24635
|
}, [
|
|
24629
24636
|
S
|
|
24630
|
-
]), q = (0, import_react.useRef)(null),
|
|
24631
|
-
!
|
|
24632
|
-
|
|
24637
|
+
]), q = (0, import_react.useRef)(null), kW = (0, import_react.useRef)(null), Z = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), AW = Z[0], jW = Z[1], MW = AW.isFocused, NW = AW.isFileDialogActive, PW = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), FW = function() {
|
|
24638
|
+
!PW.current && NW && setTimeout(function() {
|
|
24639
|
+
kW.current && (kW.current.files.length || (jW({
|
|
24633
24640
|
type: "closeDialog"
|
|
24634
24641
|
}), G()));
|
|
24635
24642
|
}, 300);
|
|
24636
24643
|
};
|
|
24637
24644
|
(0, import_react.useEffect)(function() {
|
|
24638
|
-
return window.addEventListener("focus",
|
|
24639
|
-
window.removeEventListener("focus",
|
|
24645
|
+
return window.addEventListener("focus", FW, false), function() {
|
|
24646
|
+
window.removeEventListener("focus", FW, false);
|
|
24640
24647
|
};
|
|
24641
24648
|
}, [
|
|
24642
|
-
|
|
24643
|
-
|
|
24649
|
+
kW,
|
|
24650
|
+
NW,
|
|
24644
24651
|
G,
|
|
24645
|
-
|
|
24652
|
+
PW
|
|
24646
24653
|
]);
|
|
24647
|
-
var
|
|
24648
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
24654
|
+
var IW = (0, import_react.useRef)([]), LW = (0, import_react.useRef)([]), RW = function(e2) {
|
|
24655
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), IW.current = []);
|
|
24649
24656
|
};
|
|
24650
24657
|
(0, import_react.useEffect)(function() {
|
|
24651
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
24652
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
24658
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", RW, false)), function() {
|
|
24659
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", RW));
|
|
24653
24660
|
};
|
|
24654
24661
|
}, [
|
|
24655
24662
|
q,
|
|
24656
24663
|
O
|
|
24657
24664
|
]), (0, import_react.useEffect)(function() {
|
|
24658
24665
|
var e2 = function(e3) {
|
|
24659
|
-
|
|
24666
|
+
LW.current = [].concat(_toConsumableArray(LW.current), [
|
|
24660
24667
|
e3.target
|
|
24661
|
-
]), isEvtWithFiles(e3) &&
|
|
24668
|
+
]), isEvtWithFiles(e3) && jW({
|
|
24662
24669
|
isDragGlobal: true,
|
|
24663
24670
|
type: "setDragGlobal"
|
|
24664
24671
|
});
|
|
24665
24672
|
}, r2 = function(e3) {
|
|
24666
|
-
|
|
24673
|
+
LW.current = LW.current.filter(function(r3) {
|
|
24667
24674
|
return r3 !== e3.target && r3 !== null;
|
|
24668
|
-
}), !(
|
|
24675
|
+
}), !(LW.current.length > 0) && jW({
|
|
24669
24676
|
isDragGlobal: false,
|
|
24670
24677
|
type: "setDragGlobal"
|
|
24671
24678
|
});
|
|
24672
24679
|
}, c2 = function() {
|
|
24673
|
-
|
|
24680
|
+
LW.current = [], jW({
|
|
24674
24681
|
isDragGlobal: false,
|
|
24675
24682
|
type: "setDragGlobal"
|
|
24676
24683
|
});
|
|
24677
24684
|
}, l2 = function() {
|
|
24678
|
-
|
|
24685
|
+
LW.current = [], jW({
|
|
24679
24686
|
isDragGlobal: false,
|
|
24680
24687
|
type: "setDragGlobal"
|
|
24681
24688
|
});
|
|
@@ -24693,12 +24700,12 @@ ${c}
|
|
|
24693
24700
|
E,
|
|
24694
24701
|
l
|
|
24695
24702
|
]);
|
|
24696
|
-
var
|
|
24703
|
+
var zW = (0, import_react.useCallback)(function(e2) {
|
|
24697
24704
|
R ? R(e2) : console.error(e2);
|
|
24698
24705
|
}, [
|
|
24699
24706
|
R
|
|
24700
|
-
]),
|
|
24701
|
-
e2.preventDefault(), e2.persist(),
|
|
24707
|
+
]), BW = (0, import_react.useCallback)(function(e2) {
|
|
24708
|
+
e2.preventDefault(), e2.persist(), $W(e2), IW.current = [].concat(_toConsumableArray(IW.current), [
|
|
24702
24709
|
e2.target
|
|
24703
24710
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24704
24711
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -24711,7 +24718,7 @@ ${c}
|
|
|
24711
24718
|
maxFiles: m,
|
|
24712
24719
|
validator: z
|
|
24713
24720
|
});
|
|
24714
|
-
|
|
24721
|
+
jW({
|
|
24715
24722
|
isDragAccept: l2,
|
|
24716
24723
|
isDragReject: c2 > 0 && !l2,
|
|
24717
24724
|
isDragActive: true,
|
|
@@ -24719,12 +24726,12 @@ ${c}
|
|
|
24719
24726
|
}), h && h(e2);
|
|
24720
24727
|
}
|
|
24721
24728
|
}).catch(function(e3) {
|
|
24722
|
-
return
|
|
24729
|
+
return zW(e3);
|
|
24723
24730
|
});
|
|
24724
24731
|
}, [
|
|
24725
24732
|
u,
|
|
24726
24733
|
h,
|
|
24727
|
-
|
|
24734
|
+
zW,
|
|
24728
24735
|
L,
|
|
24729
24736
|
B,
|
|
24730
24737
|
f,
|
|
@@ -24732,8 +24739,8 @@ ${c}
|
|
|
24732
24739
|
p,
|
|
24733
24740
|
m,
|
|
24734
24741
|
z
|
|
24735
|
-
]),
|
|
24736
|
-
e2.preventDefault(), e2.persist(),
|
|
24742
|
+
]), VW = (0, import_react.useCallback)(function(e2) {
|
|
24743
|
+
e2.preventDefault(), e2.persist(), $W(e2);
|
|
24737
24744
|
var r2 = isEvtWithFiles(e2);
|
|
24738
24745
|
if (r2 && e2.dataTransfer) try {
|
|
24739
24746
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -24743,12 +24750,12 @@ ${c}
|
|
|
24743
24750
|
}, [
|
|
24744
24751
|
_,
|
|
24745
24752
|
L
|
|
24746
|
-
]),
|
|
24747
|
-
e2.preventDefault(), e2.persist(),
|
|
24748
|
-
var r2 =
|
|
24753
|
+
]), HW = (0, import_react.useCallback)(function(e2) {
|
|
24754
|
+
e2.preventDefault(), e2.persist(), $W(e2);
|
|
24755
|
+
var r2 = IW.current.filter(function(e3) {
|
|
24749
24756
|
return q.current && q.current.contains(e3);
|
|
24750
24757
|
}), c2 = r2.indexOf(e2.target);
|
|
24751
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
24758
|
+
c2 !== -1 && r2.splice(c2, 1), IW.current = r2, !(r2.length > 0) && (jW({
|
|
24752
24759
|
type: "setDraggedFiles",
|
|
24753
24760
|
isDragActive: false,
|
|
24754
24761
|
isDragAccept: false,
|
|
@@ -24758,7 +24765,7 @@ ${c}
|
|
|
24758
24765
|
q,
|
|
24759
24766
|
g,
|
|
24760
24767
|
L
|
|
24761
|
-
]),
|
|
24768
|
+
]), UW = (0, import_react.useCallback)(function(e2, r2) {
|
|
24762
24769
|
var c2 = [], l2 = [];
|
|
24763
24770
|
e2.forEach(function(e3) {
|
|
24764
24771
|
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;
|
|
@@ -24782,14 +24789,14 @@ ${c}
|
|
|
24782
24789
|
TOO_MANY_FILES_REJECTION
|
|
24783
24790
|
]
|
|
24784
24791
|
});
|
|
24785
|
-
}), c2.splice(0)),
|
|
24792
|
+
}), c2.splice(0)), jW({
|
|
24786
24793
|
acceptedFiles: c2,
|
|
24787
24794
|
fileRejections: l2,
|
|
24788
24795
|
isDragReject: l2.length > 0,
|
|
24789
24796
|
type: "setFiles"
|
|
24790
24797
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
24791
24798
|
}, [
|
|
24792
|
-
|
|
24799
|
+
jW,
|
|
24793
24800
|
p,
|
|
24794
24801
|
B,
|
|
24795
24802
|
f,
|
|
@@ -24799,22 +24806,22 @@ ${c}
|
|
|
24799
24806
|
y,
|
|
24800
24807
|
b,
|
|
24801
24808
|
z
|
|
24802
|
-
]),
|
|
24803
|
-
e2.preventDefault(), e2.persist(),
|
|
24804
|
-
isPropagationStopped(e2) && !L ||
|
|
24809
|
+
]), WW = (0, import_react.useCallback)(function(e2) {
|
|
24810
|
+
e2.preventDefault(), e2.persist(), $W(e2), IW.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24811
|
+
isPropagationStopped(e2) && !L || UW(r2, e2);
|
|
24805
24812
|
}).catch(function(e3) {
|
|
24806
|
-
return
|
|
24807
|
-
}),
|
|
24813
|
+
return zW(e3);
|
|
24814
|
+
}), jW({
|
|
24808
24815
|
type: "reset"
|
|
24809
24816
|
});
|
|
24810
24817
|
}, [
|
|
24811
24818
|
u,
|
|
24812
|
-
|
|
24813
|
-
|
|
24819
|
+
UW,
|
|
24820
|
+
zW,
|
|
24814
24821
|
L
|
|
24815
|
-
]),
|
|
24816
|
-
if (
|
|
24817
|
-
|
|
24822
|
+
]), GW = (0, import_react.useCallback)(function() {
|
|
24823
|
+
if (PW.current) {
|
|
24824
|
+
jW({
|
|
24818
24825
|
type: "openDialog"
|
|
24819
24826
|
}), W();
|
|
24820
24827
|
var e2 = {
|
|
@@ -24824,66 +24831,66 @@ ${c}
|
|
|
24824
24831
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
24825
24832
|
return u(e3);
|
|
24826
24833
|
}).then(function(e3) {
|
|
24827
|
-
|
|
24834
|
+
UW(e3, null), jW({
|
|
24828
24835
|
type: "closeDialog"
|
|
24829
24836
|
});
|
|
24830
24837
|
}).catch(function(e3) {
|
|
24831
|
-
isAbort(e3) ? (G(e3),
|
|
24838
|
+
isAbort(e3) ? (G(e3), jW({
|
|
24832
24839
|
type: "closeDialog"
|
|
24833
|
-
})) : isSecurityError(e3) ? (
|
|
24840
|
+
})) : isSecurityError(e3) ? (PW.current = false, kW.current ? (kW.current.value = null, kW.current.click()) : zW(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."))) : zW(e3);
|
|
24834
24841
|
});
|
|
24835
24842
|
return;
|
|
24836
24843
|
}
|
|
24837
|
-
|
|
24844
|
+
kW.current && (jW({
|
|
24838
24845
|
type: "openDialog"
|
|
24839
|
-
}), W(),
|
|
24846
|
+
}), W(), kW.current.value = null, kW.current.click());
|
|
24840
24847
|
}, [
|
|
24841
|
-
|
|
24848
|
+
jW,
|
|
24842
24849
|
W,
|
|
24843
24850
|
G,
|
|
24844
24851
|
T,
|
|
24845
|
-
|
|
24846
|
-
|
|
24852
|
+
UW,
|
|
24853
|
+
zW,
|
|
24847
24854
|
H,
|
|
24848
24855
|
p
|
|
24849
|
-
]),
|
|
24850
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
24856
|
+
]), KW = (0, import_react.useCallback)(function(e2) {
|
|
24857
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), GW());
|
|
24851
24858
|
}, [
|
|
24852
24859
|
q,
|
|
24853
|
-
|
|
24854
|
-
]),
|
|
24855
|
-
|
|
24860
|
+
GW
|
|
24861
|
+
]), qW = (0, import_react.useCallback)(function() {
|
|
24862
|
+
jW({
|
|
24856
24863
|
type: "focus"
|
|
24857
24864
|
});
|
|
24858
|
-
}, []),
|
|
24859
|
-
|
|
24865
|
+
}, []), JW = (0, import_react.useCallback)(function() {
|
|
24866
|
+
jW({
|
|
24860
24867
|
type: "blur"
|
|
24861
24868
|
});
|
|
24862
|
-
}, []),
|
|
24863
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
24869
|
+
}, []), YW = (0, import_react.useCallback)(function() {
|
|
24870
|
+
j || (isIeOrEdge() ? setTimeout(GW, 0) : GW());
|
|
24864
24871
|
}, [
|
|
24865
24872
|
j,
|
|
24866
|
-
|
|
24867
|
-
]),
|
|
24873
|
+
GW
|
|
24874
|
+
]), XW = function(e2) {
|
|
24868
24875
|
return l ? null : e2;
|
|
24869
|
-
}, YW = function(e2) {
|
|
24870
|
-
return M ? null : JW(e2);
|
|
24871
|
-
}, XW = function(e2) {
|
|
24872
|
-
return I ? null : JW(e2);
|
|
24873
24876
|
}, ZW = function(e2) {
|
|
24877
|
+
return M ? null : XW(e2);
|
|
24878
|
+
}, QW = function(e2) {
|
|
24879
|
+
return I ? null : XW(e2);
|
|
24880
|
+
}, $W = function(e2) {
|
|
24874
24881
|
L && e2.stopPropagation();
|
|
24875
|
-
},
|
|
24882
|
+
}, eG = (0, import_react.useMemo)(function() {
|
|
24876
24883
|
return function() {
|
|
24877
24884
|
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);
|
|
24878
24885
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
24879
|
-
onKeyDown:
|
|
24880
|
-
onFocus:
|
|
24881
|
-
onBlur:
|
|
24882
|
-
onClick:
|
|
24883
|
-
onDragEnter:
|
|
24884
|
-
onDragOver:
|
|
24885
|
-
onDragLeave:
|
|
24886
|
-
onDrop:
|
|
24886
|
+
onKeyDown: ZW(composeEventHandlers(d2, KW)),
|
|
24887
|
+
onFocus: ZW(composeEventHandlers(f2, qW)),
|
|
24888
|
+
onBlur: ZW(composeEventHandlers(p2, JW)),
|
|
24889
|
+
onClick: XW(composeEventHandlers(m2, YW)),
|
|
24890
|
+
onDragEnter: QW(composeEventHandlers(h2, BW)),
|
|
24891
|
+
onDragOver: QW(composeEventHandlers(g2, VW)),
|
|
24892
|
+
onDragLeave: QW(composeEventHandlers(_2, HW)),
|
|
24893
|
+
onDrop: QW(composeEventHandlers(v2, WW)),
|
|
24887
24894
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
24888
24895
|
}, c2, q), !l && !M ? {
|
|
24889
24896
|
tabIndex: 0
|
|
@@ -24891,20 +24898,20 @@ ${c}
|
|
|
24891
24898
|
};
|
|
24892
24899
|
}, [
|
|
24893
24900
|
q,
|
|
24894
|
-
WW,
|
|
24895
|
-
GW,
|
|
24896
24901
|
KW,
|
|
24897
24902
|
qW,
|
|
24898
|
-
|
|
24899
|
-
|
|
24903
|
+
JW,
|
|
24904
|
+
YW,
|
|
24900
24905
|
BW,
|
|
24906
|
+
VW,
|
|
24901
24907
|
HW,
|
|
24908
|
+
WW,
|
|
24902
24909
|
M,
|
|
24903
24910
|
I,
|
|
24904
24911
|
l
|
|
24905
|
-
]),
|
|
24912
|
+
]), tG = (0, import_react.useCallback)(function(e2) {
|
|
24906
24913
|
e2.stopPropagation();
|
|
24907
|
-
}, []),
|
|
24914
|
+
}, []), nG = (0, import_react.useMemo)(function() {
|
|
24908
24915
|
return function() {
|
|
24909
24916
|
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);
|
|
24910
24917
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -24923,25 +24930,25 @@ ${c}
|
|
|
24923
24930
|
width: "1px",
|
|
24924
24931
|
whiteSpace: "nowrap"
|
|
24925
24932
|
},
|
|
24926
|
-
onChange:
|
|
24927
|
-
onClick:
|
|
24933
|
+
onChange: XW(composeEventHandlers(l2, WW)),
|
|
24934
|
+
onClick: XW(composeEventHandlers(u2, tG)),
|
|
24928
24935
|
tabIndex: -1
|
|
24929
|
-
}, c2,
|
|
24936
|
+
}, c2, kW)), d2);
|
|
24930
24937
|
};
|
|
24931
24938
|
}, [
|
|
24932
|
-
|
|
24939
|
+
kW,
|
|
24933
24940
|
c,
|
|
24934
24941
|
p,
|
|
24935
|
-
|
|
24942
|
+
WW,
|
|
24936
24943
|
l
|
|
24937
24944
|
]);
|
|
24938
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
24939
|
-
isFocused:
|
|
24940
|
-
getRootProps:
|
|
24941
|
-
getInputProps:
|
|
24945
|
+
return _objectSpread$7(_objectSpread$7({}, AW), {}, {
|
|
24946
|
+
isFocused: MW && !l,
|
|
24947
|
+
getRootProps: eG,
|
|
24948
|
+
getInputProps: nG,
|
|
24942
24949
|
rootRef: q,
|
|
24943
|
-
inputRef:
|
|
24944
|
-
open:
|
|
24950
|
+
inputRef: kW,
|
|
24951
|
+
open: XW(GW)
|
|
24945
24952
|
});
|
|
24946
24953
|
}
|
|
24947
24954
|
function reducer$2(e, r) {
|
|
@@ -25173,47 +25180,47 @@ ${c}
|
|
|
25173
25180
|
html: I
|
|
25174
25181
|
})
|
|
25175
25182
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
25176
|
-
let q = w && "text-primary",
|
|
25177
|
-
r[48] !== q || r[49] !==
|
|
25178
|
-
let
|
|
25179
|
-
r[51] === Z ?
|
|
25183
|
+
let q = w && "text-primary", kW = T && "text-destructive", Z;
|
|
25184
|
+
r[48] !== q || r[49] !== kW ? (Z = cn(q, kW), r[48] = q, r[49] = kW, r[50] = Z) : Z = r[50];
|
|
25185
|
+
let AW;
|
|
25186
|
+
r[51] === Z ? AW = r[52] : (AW = (0, import_jsx_runtime.jsx)(Upload, {
|
|
25180
25187
|
strokeWidth: 1.4,
|
|
25181
25188
|
className: Z
|
|
25182
|
-
}), r[51] = Z, r[52] =
|
|
25183
|
-
let
|
|
25184
|
-
r[53] !==
|
|
25185
|
-
let
|
|
25186
|
-
r[56] ===
|
|
25189
|
+
}), r[51] = Z, r[52] = AW);
|
|
25190
|
+
let jW = w && "text-primary", MW = T && "text-destructive", NW;
|
|
25191
|
+
r[53] !== jW || r[54] !== MW ? (NW = cn(jW, MW), r[53] = jW, r[54] = MW, r[55] = NW) : NW = r[55];
|
|
25192
|
+
let PW;
|
|
25193
|
+
r[56] === NW ? PW = r[57] : (PW = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
25187
25194
|
strokeWidth: 1.4,
|
|
25188
|
-
className:
|
|
25189
|
-
}), r[56] =
|
|
25190
|
-
let
|
|
25191
|
-
r[58] !==
|
|
25195
|
+
className: NW
|
|
25196
|
+
}), r[56] = NW, r[57] = PW);
|
|
25197
|
+
let FW;
|
|
25198
|
+
r[58] !== AW || r[59] !== PW ? (FW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25192
25199
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
25193
25200
|
children: [
|
|
25194
|
-
|
|
25195
|
-
|
|
25201
|
+
AW,
|
|
25202
|
+
PW
|
|
25196
25203
|
]
|
|
25197
|
-
}), r[58] =
|
|
25198
|
-
let
|
|
25199
|
-
r[61] !== G || r[62] !==
|
|
25204
|
+
}), r[58] = AW, r[59] = PW, r[60] = FW) : FW = r[60];
|
|
25205
|
+
let IW;
|
|
25206
|
+
r[61] !== G || r[62] !== FW ? (IW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25200
25207
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
25201
25208
|
children: [
|
|
25202
25209
|
G,
|
|
25203
|
-
|
|
25210
|
+
FW
|
|
25204
25211
|
]
|
|
25205
|
-
}), r[61] = G, r[62] =
|
|
25206
|
-
let
|
|
25207
|
-
r[64] !== W || r[65] !==
|
|
25212
|
+
}), r[61] = G, r[62] = FW, r[63] = IW) : IW = r[63];
|
|
25213
|
+
let LW;
|
|
25214
|
+
r[64] !== W || r[65] !== IW || r[66] !== z || r[67] !== B ? (LW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25208
25215
|
className: z,
|
|
25209
25216
|
...B,
|
|
25210
25217
|
children: [
|
|
25211
25218
|
W,
|
|
25212
|
-
|
|
25219
|
+
IW
|
|
25213
25220
|
]
|
|
25214
|
-
}), r[64] = W, r[65] =
|
|
25215
|
-
let
|
|
25216
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
25221
|
+
}), r[64] = W, r[65] = IW, r[66] = z, r[67] = B, r[68] = LW) : LW = r[68];
|
|
25222
|
+
let RW;
|
|
25223
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (RW = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
25217
25224
|
className: "flex flex-row gap-1",
|
|
25218
25225
|
children: [
|
|
25219
25226
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -25249,17 +25256,17 @@ ${c}
|
|
|
25249
25256
|
})
|
|
25250
25257
|
})
|
|
25251
25258
|
]
|
|
25252
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
25253
|
-
let
|
|
25254
|
-
return r[75] !==
|
|
25259
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = RW) : RW = r[74];
|
|
25260
|
+
let BW;
|
|
25261
|
+
return r[75] !== LW || r[76] !== RW ? (BW = (0, import_jsx_runtime.jsx)("section", {
|
|
25255
25262
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
25256
25263
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
25257
25264
|
children: [
|
|
25258
|
-
|
|
25259
|
-
|
|
25265
|
+
LW,
|
|
25266
|
+
RW
|
|
25260
25267
|
]
|
|
25261
25268
|
})
|
|
25262
|
-
}), r[75] =
|
|
25269
|
+
}), r[75] = LW, r[76] = RW, r[77] = BW) : BW = r[77], BW;
|
|
25263
25270
|
};
|
|
25264
25271
|
function _temp$11(e) {
|
|
25265
25272
|
Logger.error(e), toast({
|
|
@@ -25355,75 +25362,75 @@ ${c}
|
|
|
25355
25362
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
25356
25363
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
25357
25364
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
25358
|
-
let
|
|
25359
|
-
r[13] === f ?
|
|
25365
|
+
let kW;
|
|
25366
|
+
r[13] === f ? kW = r[14] : (kW = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
25360
25367
|
className: "text-center",
|
|
25361
25368
|
children: renderHTML({
|
|
25362
25369
|
html: f
|
|
25363
25370
|
})
|
|
25364
|
-
}), r[13] = f, r[14] =
|
|
25371
|
+
}), r[13] = f, r[14] = kW);
|
|
25365
25372
|
let Z;
|
|
25366
25373
|
r[15] === L ? Z = r[16] : (Z = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25367
25374
|
kind: "danger",
|
|
25368
25375
|
className: "rounded",
|
|
25369
25376
|
children: L ?? "Invalid input"
|
|
25370
25377
|
}), r[15] = L, r[16] = Z);
|
|
25371
|
-
let
|
|
25372
|
-
r[17] === c ?
|
|
25378
|
+
let AW;
|
|
25379
|
+
r[17] === c ? AW = r[18] : (AW = (0, import_jsx_runtime.jsx)("div", {
|
|
25373
25380
|
children: c
|
|
25374
|
-
}), r[17] = c, r[18] =
|
|
25375
|
-
let
|
|
25376
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
25381
|
+
}), r[17] = c, r[18] = AW);
|
|
25382
|
+
let jW;
|
|
25383
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (jW = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
25377
25384
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
25378
25385
|
variant: "text",
|
|
25379
25386
|
onClick: (e2) => {
|
|
25380
25387
|
e2.preventDefault(), B();
|
|
25381
25388
|
},
|
|
25382
25389
|
children: S
|
|
25383
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
25384
|
-
let
|
|
25385
|
-
r[23] === h ?
|
|
25390
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = jW) : jW = r[22];
|
|
25391
|
+
let MW = v || h, NW;
|
|
25392
|
+
r[23] === h ? NW = r[24] : (NW = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
25386
25393
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
25387
|
-
}), r[23] = h, r[24] =
|
|
25388
|
-
let
|
|
25389
|
-
r[25] !== g || r[26] !==
|
|
25394
|
+
}), r[23] = h, r[24] = NW);
|
|
25395
|
+
let PW;
|
|
25396
|
+
r[25] !== g || r[26] !== MW || r[27] !== NW || r[28] !== I ? (PW = (0, import_jsx_runtime.jsxs)(Button, {
|
|
25390
25397
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
25391
25398
|
variant: I,
|
|
25392
|
-
disabled:
|
|
25399
|
+
disabled: MW,
|
|
25393
25400
|
type: "submit",
|
|
25394
25401
|
children: [
|
|
25395
|
-
|
|
25402
|
+
NW,
|
|
25396
25403
|
g
|
|
25397
25404
|
]
|
|
25398
|
-
}), r[25] = g, r[26] =
|
|
25399
|
-
let
|
|
25400
|
-
r[30] !== _ || r[31] !==
|
|
25401
|
-
let
|
|
25402
|
-
r[33] !==
|
|
25405
|
+
}), r[25] = g, r[26] = MW, r[27] = NW, r[28] = I, r[29] = PW) : PW = r[29];
|
|
25406
|
+
let FW;
|
|
25407
|
+
r[30] !== _ || r[31] !== PW ? (FW = withTooltip(PW, _), r[30] = _, r[31] = PW, r[32] = FW) : FW = r[32];
|
|
25408
|
+
let IW;
|
|
25409
|
+
r[33] !== FW || r[34] !== jW ? (IW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25403
25410
|
className: "flex justify-end gap-2 font-code",
|
|
25404
25411
|
children: [
|
|
25405
|
-
|
|
25406
|
-
|
|
25412
|
+
jW,
|
|
25413
|
+
FW
|
|
25407
25414
|
]
|
|
25408
|
-
}), r[33] =
|
|
25409
|
-
let
|
|
25410
|
-
r[36] !==
|
|
25415
|
+
}), r[33] = FW, r[34] = jW, r[35] = IW) : IW = r[35];
|
|
25416
|
+
let LW;
|
|
25417
|
+
r[36] !== IW || r[37] !== G || r[38] !== q || r[39] !== kW || r[40] !== Z || r[41] !== AW ? (LW = (0, import_jsx_runtime.jsxs)("div", {
|
|
25411
25418
|
className: G,
|
|
25412
25419
|
onKeyDown: q,
|
|
25413
25420
|
children: [
|
|
25414
|
-
|
|
25421
|
+
kW,
|
|
25415
25422
|
Z,
|
|
25416
|
-
|
|
25417
|
-
|
|
25423
|
+
AW,
|
|
25424
|
+
IW
|
|
25418
25425
|
]
|
|
25419
|
-
}), r[36] =
|
|
25420
|
-
let
|
|
25421
|
-
return r[43] !==
|
|
25426
|
+
}), r[36] = IW, r[37] = G, r[38] = q, r[39] = kW, r[40] = Z, r[41] = AW, r[42] = LW) : LW = r[42];
|
|
25427
|
+
let RW;
|
|
25428
|
+
return r[43] !== LW || r[44] !== H ? (RW = (0, import_jsx_runtime.jsx)("form", {
|
|
25422
25429
|
className: "contents",
|
|
25423
25430
|
ref: j,
|
|
25424
25431
|
onSubmit: H,
|
|
25425
|
-
children:
|
|
25426
|
-
}), r[43] =
|
|
25432
|
+
children: LW
|
|
25433
|
+
}), r[43] = LW, r[44] = H, r[45] = RW) : RW = r[45], RW;
|
|
25427
25434
|
};
|
|
25428
25435
|
var Form = (e) => {
|
|
25429
25436
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -27196,8 +27203,8 @@ ${c}
|
|
|
27196
27203
|
points: extractSunburstPoints(e2.points)
|
|
27197
27204
|
}));
|
|
27198
27205
|
}, r[29] = u, r[30] = G);
|
|
27199
|
-
let q = useEvent_default(G),
|
|
27200
|
-
r[31] === u ?
|
|
27206
|
+
let q = useEvent_default(G), kW;
|
|
27207
|
+
r[31] === u ? kW = r[32] : (kW = (e2) => {
|
|
27201
27208
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
27202
27209
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
27203
27210
|
u((e3) => ({
|
|
@@ -27208,9 +27215,9 @@ ${c}
|
|
|
27208
27215
|
points: r2,
|
|
27209
27216
|
indices: c2
|
|
27210
27217
|
}));
|
|
27211
|
-
}, r[31] = u, r[32] =
|
|
27212
|
-
let Z = useEvent_default(
|
|
27213
|
-
r[33] === u ?
|
|
27218
|
+
}, r[31] = u, r[32] = kW);
|
|
27219
|
+
let Z = useEvent_default(kW), AW;
|
|
27220
|
+
r[33] === u ? AW = r[34] : (AW = (e2) => {
|
|
27214
27221
|
e2 && u((r2) => ({
|
|
27215
27222
|
...r2,
|
|
27216
27223
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -27219,9 +27226,9 @@ ${c}
|
|
|
27219
27226
|
range: e2.range,
|
|
27220
27227
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
27221
27228
|
}));
|
|
27222
|
-
}, r[33] = u, r[34] =
|
|
27223
|
-
let
|
|
27224
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !==
|
|
27229
|
+
}, r[33] = u, r[34] = AW);
|
|
27230
|
+
let jW = useEvent_default(AW), MW = m.frames ?? void 0, NW = useEvent_default(_temp3$3), PW;
|
|
27231
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !== jW || r[43] !== MW || r[44] !== NW || r[45] !== R ? (PW = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
27225
27232
|
...m,
|
|
27226
27233
|
layout: h,
|
|
27227
27234
|
onRelayout: R,
|
|
@@ -27230,12 +27237,12 @@ ${c}
|
|
|
27230
27237
|
onSunburstClick: q,
|
|
27231
27238
|
config: L,
|
|
27232
27239
|
onClick: Z,
|
|
27233
|
-
onSelected:
|
|
27240
|
+
onSelected: jW,
|
|
27234
27241
|
className: "w-full",
|
|
27235
27242
|
useResizeHandler: true,
|
|
27236
|
-
frames:
|
|
27237
|
-
onError:
|
|
27238
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] =
|
|
27243
|
+
frames: MW,
|
|
27244
|
+
onError: NW
|
|
27245
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] = jW, r[43] = MW, r[44] = NW, r[45] = R, r[46] = PW) : PW = r[46], PW;
|
|
27239
27246
|
});
|
|
27240
27247
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
27241
27248
|
function _temp$8(e) {
|
|
@@ -27367,8 +27374,8 @@ ${c}
|
|
|
27367
27374
|
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];
|
|
27368
27375
|
let q;
|
|
27369
27376
|
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];
|
|
27370
|
-
let
|
|
27371
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
27377
|
+
let kW;
|
|
27378
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (kW = (0, import_jsx_runtime.jsx)(Track, {
|
|
27372
27379
|
ref: E,
|
|
27373
27380
|
"data-testid": "track",
|
|
27374
27381
|
className: G,
|
|
@@ -27379,7 +27386,7 @@ ${c}
|
|
|
27379
27386
|
onPointerMove: z,
|
|
27380
27387
|
onPointerUp: H
|
|
27381
27388
|
})
|
|
27382
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
27389
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = kW) : kW = c[22];
|
|
27383
27390
|
let Z;
|
|
27384
27391
|
c[23] !== m.setFalse || c[24] !== m.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27385
27392
|
asChild: true,
|
|
@@ -27392,29 +27399,29 @@ ${c}
|
|
|
27392
27399
|
onMouseLeave: m.setFalse
|
|
27393
27400
|
})
|
|
27394
27401
|
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = Z) : Z = c[25];
|
|
27395
|
-
let
|
|
27396
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
27402
|
+
let AW;
|
|
27403
|
+
c[26] !== h || c[27] !== u.value || c[28] !== d ? (AW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27397
27404
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
27398
27405
|
locale: h
|
|
27399
27406
|
})
|
|
27400
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
27401
|
-
let
|
|
27402
|
-
c[30] ===
|
|
27403
|
-
children:
|
|
27404
|
-
}), c[30] =
|
|
27405
|
-
let
|
|
27406
|
-
c[32] !== f || c[33] !== Z || c[34] !==
|
|
27407
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = AW) : AW = c[29];
|
|
27408
|
+
let jW;
|
|
27409
|
+
c[30] === AW ? jW = c[31] : (jW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27410
|
+
children: AW
|
|
27411
|
+
}), c[30] = AW, c[31] = jW);
|
|
27412
|
+
let MW;
|
|
27413
|
+
c[32] !== f || c[33] !== Z || c[34] !== jW ? (MW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27407
27414
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27408
27415
|
delayDuration: 0,
|
|
27409
27416
|
open: f,
|
|
27410
27417
|
children: [
|
|
27411
27418
|
Z,
|
|
27412
|
-
|
|
27419
|
+
jW
|
|
27413
27420
|
]
|
|
27414
27421
|
})
|
|
27415
|
-
}), c[32] = f, c[33] = Z, c[34] =
|
|
27416
|
-
let
|
|
27417
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
27422
|
+
}), c[32] = f, c[33] = Z, c[34] = jW, c[35] = MW) : MW = c[35];
|
|
27423
|
+
let NW;
|
|
27424
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (NW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27418
27425
|
asChild: true,
|
|
27419
27426
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27420
27427
|
"data-testid": "thumb",
|
|
@@ -27424,39 +27431,39 @@ ${c}
|
|
|
27424
27431
|
onMouseEnter: m.setTrue,
|
|
27425
27432
|
onMouseLeave: m.setFalse
|
|
27426
27433
|
})
|
|
27427
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
27428
|
-
let
|
|
27429
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
27434
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = NW) : NW = c[38];
|
|
27435
|
+
let PW;
|
|
27436
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (PW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27430
27437
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
27431
27438
|
locale: h
|
|
27432
27439
|
})
|
|
27433
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
27434
|
-
let
|
|
27435
|
-
c[43] ===
|
|
27436
|
-
children:
|
|
27437
|
-
}), c[43] =
|
|
27438
|
-
let
|
|
27439
|
-
c[45] !== f || c[46] !==
|
|
27440
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = PW) : PW = c[42];
|
|
27441
|
+
let FW;
|
|
27442
|
+
c[43] === PW ? FW = c[44] : (FW = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27443
|
+
children: PW
|
|
27444
|
+
}), c[43] = PW, c[44] = FW);
|
|
27445
|
+
let IW;
|
|
27446
|
+
c[45] !== f || c[46] !== NW || c[47] !== FW ? (IW = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27440
27447
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27441
27448
|
delayDuration: 0,
|
|
27442
27449
|
open: f,
|
|
27443
27450
|
children: [
|
|
27444
|
-
|
|
27445
|
-
|
|
27451
|
+
NW,
|
|
27452
|
+
FW
|
|
27446
27453
|
]
|
|
27447
27454
|
})
|
|
27448
|
-
}), c[45] = f, c[46] =
|
|
27449
|
-
let
|
|
27450
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
27455
|
+
}), c[45] = f, c[46] = NW, c[47] = FW, c[48] = IW) : IW = c[48];
|
|
27456
|
+
let LW;
|
|
27457
|
+
return c[49] !== M || c[50] !== u || c[51] !== kW || c[52] !== MW || c[53] !== IW || c[54] !== W ? (LW = (0, import_jsx_runtime.jsxs)(Root, {
|
|
27451
27458
|
ref: M,
|
|
27452
27459
|
className: W,
|
|
27453
27460
|
...u,
|
|
27454
27461
|
children: [
|
|
27455
|
-
|
|
27456
|
-
|
|
27457
|
-
|
|
27462
|
+
kW,
|
|
27463
|
+
MW,
|
|
27464
|
+
IW
|
|
27458
27465
|
]
|
|
27459
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
27466
|
+
}), c[49] = M, c[50] = u, c[51] = kW, c[52] = MW, c[53] = IW, c[54] = W, c[55] = LW) : LW = c[55], LW;
|
|
27460
27467
|
});
|
|
27461
27468
|
RangeSlider.displayName = Root.displayName;
|
|
27462
27469
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -27507,14 +27514,14 @@ ${c}
|
|
|
27507
27514
|
}, q = (e2) => {
|
|
27508
27515
|
h && l(e2);
|
|
27509
27516
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27510
|
-
let
|
|
27511
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
27517
|
+
let kW, Z;
|
|
27518
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (kW = () => {
|
|
27512
27519
|
h && !dequal(T, u) && l(T);
|
|
27513
27520
|
}, Z = () => {
|
|
27514
27521
|
h && !dequal(T, u) && l(T);
|
|
27515
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
27516
|
-
let
|
|
27517
|
-
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] !==
|
|
27522
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = kW, r[19] = Z) : (kW = r[18], Z = r[19]);
|
|
27523
|
+
let AW;
|
|
27524
|
+
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] !== kW || r[31] !== Z || r[32] !== b ? (AW = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
27518
27525
|
id: S,
|
|
27519
27526
|
className: W,
|
|
27520
27527
|
value: T,
|
|
@@ -27525,36 +27532,36 @@ ${c}
|
|
|
27525
27532
|
disabled: y,
|
|
27526
27533
|
onValueChange: G,
|
|
27527
27534
|
onValueCommit: q,
|
|
27528
|
-
onPointerUp:
|
|
27535
|
+
onPointerUp: kW,
|
|
27529
27536
|
onMouseUp: Z,
|
|
27530
27537
|
valueMap: b
|
|
27531
|
-
}), 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] =
|
|
27532
|
-
let
|
|
27533
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
27538
|
+
}), 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] = kW, r[31] = Z, r[32] = b, r[33] = AW) : AW = r[33];
|
|
27539
|
+
let jW;
|
|
27540
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (jW = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
27534
27541
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
27535
27542
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
27536
27543
|
locale: w
|
|
27537
27544
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
27538
27545
|
locale: w
|
|
27539
27546
|
})}`
|
|
27540
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
27541
|
-
let
|
|
27542
|
-
r[39] !==
|
|
27547
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = jW) : jW = r[38];
|
|
27548
|
+
let MW;
|
|
27549
|
+
r[39] !== AW || r[40] !== jW || r[41] !== B ? (MW = (0, import_jsx_runtime.jsxs)("div", {
|
|
27543
27550
|
className: B,
|
|
27544
27551
|
children: [
|
|
27545
|
-
|
|
27546
|
-
|
|
27552
|
+
AW,
|
|
27553
|
+
jW
|
|
27547
27554
|
]
|
|
27548
|
-
}), r[39] =
|
|
27549
|
-
let
|
|
27550
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
27555
|
+
}), r[39] = AW, r[40] = jW, r[41] = B, r[42] = MW) : MW = r[42];
|
|
27556
|
+
let NW;
|
|
27557
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== MW || r[47] !== M || r[48] !== L ? (NW = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
27551
27558
|
label: c,
|
|
27552
27559
|
id: S,
|
|
27553
27560
|
align: M,
|
|
27554
27561
|
className: L,
|
|
27555
27562
|
fullWidth: v,
|
|
27556
|
-
children:
|
|
27557
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
27563
|
+
children: MW
|
|
27564
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = MW, r[47] = M, r[48] = L, r[49] = NW) : NW = r[49], NW;
|
|
27558
27565
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
27559
27566
|
r.exports = u;
|
|
27560
27567
|
var c = {
|
|
@@ -30845,7 +30852,7 @@ ${c}
|
|
|
30845
30852
|
areRegExpsEqual: H,
|
|
30846
30853
|
areSetsEqual: W,
|
|
30847
30854
|
createIsNestedEqual: r2
|
|
30848
|
-
}),
|
|
30855
|
+
}), kW = Object.freeze({
|
|
30849
30856
|
areArraysEqual: O,
|
|
30850
30857
|
areDatesEqual: j,
|
|
30851
30858
|
areMapsEqual: I,
|
|
@@ -30854,39 +30861,39 @@ ${c}
|
|
|
30854
30861
|
areSetsEqual: G,
|
|
30855
30862
|
createIsNestedEqual: r2
|
|
30856
30863
|
}), Z = T(q);
|
|
30857
|
-
function
|
|
30864
|
+
function AW(e3, r3) {
|
|
30858
30865
|
return Z(e3, r3, void 0);
|
|
30859
30866
|
}
|
|
30860
|
-
var
|
|
30867
|
+
var jW = T(l(q, {
|
|
30861
30868
|
createIsNestedEqual: function() {
|
|
30862
30869
|
return f;
|
|
30863
30870
|
}
|
|
30864
30871
|
}));
|
|
30865
|
-
function AW(e3, r3) {
|
|
30866
|
-
return kW(e3, r3, void 0);
|
|
30867
|
-
}
|
|
30868
|
-
var jW = T(DW);
|
|
30869
30872
|
function MW(e3, r3) {
|
|
30870
|
-
return jW(e3, r3,
|
|
30873
|
+
return jW(e3, r3, void 0);
|
|
30874
|
+
}
|
|
30875
|
+
var NW = T(kW);
|
|
30876
|
+
function PW(e3, r3) {
|
|
30877
|
+
return NW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30871
30878
|
}
|
|
30872
|
-
var
|
|
30879
|
+
var FW = T(l(kW, {
|
|
30873
30880
|
createIsNestedEqual: function() {
|
|
30874
30881
|
return f;
|
|
30875
30882
|
}
|
|
30876
30883
|
}));
|
|
30877
|
-
function
|
|
30878
|
-
return
|
|
30884
|
+
function IW(e3, r3) {
|
|
30885
|
+
return FW(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30879
30886
|
}
|
|
30880
|
-
function
|
|
30887
|
+
function LW(e3) {
|
|
30881
30888
|
return T(l(q, e3(q)));
|
|
30882
30889
|
}
|
|
30883
|
-
function
|
|
30884
|
-
var r3 = T(l(
|
|
30890
|
+
function RW(e3) {
|
|
30891
|
+
var r3 = T(l(kW, e3(kW)));
|
|
30885
30892
|
return (function(e4, c2, l2) {
|
|
30886
30893
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
30887
30894
|
});
|
|
30888
30895
|
}
|
|
30889
|
-
e2.circularDeepEqual =
|
|
30896
|
+
e2.circularDeepEqual = PW, e2.circularShallowEqual = IW, e2.createCustomCircularEqual = RW, e2.createCustomEqual = LW, e2.deepEqual = AW, e2.sameValueZeroEqual = f, e2.shallowEqual = MW, Object.defineProperty(e2, "__esModule", {
|
|
30890
30897
|
value: true
|
|
30891
30898
|
});
|
|
30892
30899
|
}));
|
|
@@ -30912,7 +30919,7 @@ ${c}
|
|
|
30912
30919
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
30913
30920
|
Object.defineProperty(e, "__esModule", {
|
|
30914
30921
|
value: true
|
|
30915
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
30922
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = WW, 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 = IW, e.setTopLeft = RW, e.setTransform = LW, e.sortLayoutItems = zW, e.sortLayoutItemsByColRow = VW, e.sortLayoutItemsByRowCol = BW, e.synchronizeLayoutWithChildren = HW, e.validateLayout = UW, e.withLayoutItem = v;
|
|
30916
30923
|
var r = require_fast_equals(), c = l(require_react());
|
|
30917
30924
|
function l(e2) {
|
|
30918
30925
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -31017,7 +31024,7 @@ ${c}
|
|
|
31017
31024
|
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);
|
|
31018
31025
|
}
|
|
31019
31026
|
function T(e2, r2, c2, l2) {
|
|
31020
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
31027
|
+
let u2 = B(e2), d2 = h(u2), f2 = zW(e2, r2), p2 = Array(e2.length);
|
|
31021
31028
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
31022
31029
|
let h3 = y(f2[m2]);
|
|
31023
31030
|
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;
|
|
@@ -31075,7 +31082,7 @@ ${c}
|
|
|
31075
31082
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
31076
31083
|
let h2 = r2.x, _2 = r2.y;
|
|
31077
31084
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
31078
|
-
let v2 =
|
|
31085
|
+
let v2 = zW(e2, f2);
|
|
31079
31086
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
31080
31087
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
31081
31088
|
if (b2 && m2) return g(e2);
|
|
@@ -31109,15 +31116,15 @@ ${c}
|
|
|
31109
31116
|
function G(e2) {
|
|
31110
31117
|
return e2 * 100 + "%";
|
|
31111
31118
|
}
|
|
31112
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
31119
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, kW = (e2, r2, c2) => e2 < 0 ? r2 : c2, Z = (e2) => Math.max(0, e2), AW = (e2) => Math.max(0, e2), jW = (e2, r2, c2) => {
|
|
31113
31120
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
31114
31121
|
return {
|
|
31115
31122
|
left: l2,
|
|
31116
31123
|
width: d2,
|
|
31117
|
-
height:
|
|
31118
|
-
top:
|
|
31124
|
+
height: kW(f2, e2.height, u2),
|
|
31125
|
+
top: AW(f2)
|
|
31119
31126
|
};
|
|
31120
|
-
},
|
|
31127
|
+
}, MW = (e2, r2, c2) => {
|
|
31121
31128
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31122
31129
|
return {
|
|
31123
31130
|
top: l2,
|
|
@@ -31125,45 +31132,45 @@ ${c}
|
|
|
31125
31132
|
width: q(e2.left, e2.width, f2, c2),
|
|
31126
31133
|
left: Z(u2)
|
|
31127
31134
|
};
|
|
31128
|
-
},
|
|
31135
|
+
}, NW = (e2, r2, c2) => {
|
|
31129
31136
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
31130
31137
|
return {
|
|
31131
31138
|
height: u2,
|
|
31132
31139
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
31133
|
-
top:
|
|
31140
|
+
top: AW(l2),
|
|
31134
31141
|
left: Z(f2)
|
|
31135
31142
|
};
|
|
31136
|
-
},
|
|
31143
|
+
}, PW = (e2, r2, c2) => {
|
|
31137
31144
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31138
31145
|
return {
|
|
31139
31146
|
width: f2,
|
|
31140
31147
|
left: u2,
|
|
31141
|
-
height:
|
|
31142
|
-
top:
|
|
31148
|
+
height: kW(l2, e2.height, d2),
|
|
31149
|
+
top: AW(l2)
|
|
31143
31150
|
};
|
|
31144
|
-
},
|
|
31145
|
-
n:
|
|
31151
|
+
}, FW = {
|
|
31152
|
+
n: jW,
|
|
31146
31153
|
ne: function() {
|
|
31147
|
-
return
|
|
31154
|
+
return jW(arguments.length <= 0 ? void 0 : arguments[0], MW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31148
31155
|
},
|
|
31149
|
-
e:
|
|
31156
|
+
e: MW,
|
|
31150
31157
|
se: function() {
|
|
31151
|
-
return
|
|
31158
|
+
return PW(arguments.length <= 0 ? void 0 : arguments[0], MW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31152
31159
|
},
|
|
31153
|
-
s:
|
|
31160
|
+
s: PW,
|
|
31154
31161
|
sw: function() {
|
|
31155
|
-
return
|
|
31162
|
+
return PW(arguments.length <= 0 ? void 0 : arguments[0], NW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31156
31163
|
},
|
|
31157
|
-
w:
|
|
31164
|
+
w: NW,
|
|
31158
31165
|
nw: function() {
|
|
31159
|
-
return
|
|
31166
|
+
return jW(arguments.length <= 0 ? void 0 : arguments[0], NW(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31160
31167
|
}
|
|
31161
31168
|
};
|
|
31162
|
-
function
|
|
31163
|
-
let u2 =
|
|
31169
|
+
function IW(e2, r2, c2, l2) {
|
|
31170
|
+
let u2 = FW[e2];
|
|
31164
31171
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
31165
31172
|
}
|
|
31166
|
-
function
|
|
31173
|
+
function LW(e2) {
|
|
31167
31174
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
31168
31175
|
return {
|
|
31169
31176
|
transform: d2,
|
|
@@ -31176,7 +31183,7 @@ ${c}
|
|
|
31176
31183
|
position: "absolute"
|
|
31177
31184
|
};
|
|
31178
31185
|
}
|
|
31179
|
-
function
|
|
31186
|
+
function RW(e2) {
|
|
31180
31187
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
31181
31188
|
return {
|
|
31182
31189
|
top: `${r2}px`,
|
|
@@ -31186,20 +31193,20 @@ ${c}
|
|
|
31186
31193
|
position: "absolute"
|
|
31187
31194
|
};
|
|
31188
31195
|
}
|
|
31189
|
-
function
|
|
31190
|
-
return r2 === "horizontal" ?
|
|
31196
|
+
function zW(e2, r2) {
|
|
31197
|
+
return r2 === "horizontal" ? VW(e2) : r2 === "vertical" ? BW(e2) : e2;
|
|
31191
31198
|
}
|
|
31192
|
-
function
|
|
31199
|
+
function BW(e2) {
|
|
31193
31200
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31194
31201
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
31195
31202
|
});
|
|
31196
31203
|
}
|
|
31197
|
-
function
|
|
31204
|
+
function VW(e2) {
|
|
31198
31205
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31199
31206
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
31200
31207
|
});
|
|
31201
31208
|
}
|
|
31202
|
-
function
|
|
31209
|
+
function HW(e2, r2, l2, u2, f2) {
|
|
31203
31210
|
e2 || (e2 = []);
|
|
31204
31211
|
let p2 = [];
|
|
31205
31212
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -31220,7 +31227,7 @@ ${c}
|
|
|
31220
31227
|
});
|
|
31221
31228
|
return f2 ? m2 : T(m2, u2, l2);
|
|
31222
31229
|
}
|
|
31223
|
-
function
|
|
31230
|
+
function UW(e2) {
|
|
31224
31231
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
31225
31232
|
"x",
|
|
31226
31233
|
"y",
|
|
@@ -31237,7 +31244,7 @@ ${c}
|
|
|
31237
31244
|
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})`);
|
|
31238
31245
|
}
|
|
31239
31246
|
}
|
|
31240
|
-
function
|
|
31247
|
+
function WW(e2) {
|
|
31241
31248
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
31242
31249
|
return r2 === false ? null : c2;
|
|
31243
31250
|
}
|
|
@@ -34042,7 +34049,7 @@ ${c}
|
|
|
34042
34049
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
34043
34050
|
let E = useIsDragging(), O, j;
|
|
34044
34051
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
34045
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
34052
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, kW, Z, AW, jW, MW, NW, PW, FW, IW, LW, RW, zW, BW, VW, HW, UW, WW;
|
|
34046
34053
|
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) {
|
|
34047
34054
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
34048
34055
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -34061,23 +34068,23 @@ ${c}
|
|
|
34061
34068
|
});
|
|
34062
34069
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
34063
34070
|
let y2 = v2;
|
|
34064
|
-
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,
|
|
34071
|
+
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, VW = "lg", r[58] === c.cells ? HW = r[59] : (HW = {
|
|
34065
34072
|
lg: c.cells
|
|
34066
|
-
}, r[58] = c.cells, r[59] =
|
|
34073
|
+
}, r[58] = c.cells, r[59] = HW), UW = L, WW = S, R = false;
|
|
34067
34074
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
34068
34075
|
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 ? [
|
|
34069
34076
|
20,
|
|
34070
34077
|
20
|
|
34071
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
34078
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, kW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (Z = (e3) => {
|
|
34072
34079
|
f || l({
|
|
34073
34080
|
...c,
|
|
34074
34081
|
cells: e3
|
|
34075
34082
|
});
|
|
34076
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ?
|
|
34083
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ? AW = r[71] : (AW = g ? {
|
|
34077
34084
|
i: g.i,
|
|
34078
34085
|
w: g.w || 2,
|
|
34079
34086
|
h: g.h || 2
|
|
34080
|
-
} : void 0, r[70] = g, r[71] =
|
|
34087
|
+
} : void 0, r[70] = g, r[71] = AW), r[72] !== O || r[73] !== c || r[74] !== l ? (jW = (e3, r2, u2) => {
|
|
34081
34088
|
O.onDragStop(), r2 && l({
|
|
34082
34089
|
...c,
|
|
34083
34090
|
cells: [
|
|
@@ -34085,15 +34092,15 @@ ${c}
|
|
|
34085
34092
|
r2
|
|
34086
34093
|
]
|
|
34087
34094
|
});
|
|
34088
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
34095
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = jW) : jW = r[75], r[76] === O ? (MW = r[77], NW = r[78], PW = r[79]) : (MW = (e3, r2, c2, l2, u2) => {
|
|
34089
34096
|
O.onDragStart(u2);
|
|
34090
|
-
},
|
|
34097
|
+
}, NW = (e3, r2, c2, l2, u2) => {
|
|
34091
34098
|
O.onDragMove(u2);
|
|
34092
|
-
},
|
|
34099
|
+
}, PW = () => {
|
|
34093
34100
|
O.onDragStop();
|
|
34094
|
-
}, r[76] = O, r[77] =
|
|
34101
|
+
}, r[76] = O, r[77] = MW, r[78] = NW, r[79] = PW), FW = _temp3$2, IW = M, LW = M, RW = M, zW = M ? `.${DRAG_HANDLE}` : "noop";
|
|
34095
34102
|
let E2;
|
|
34096
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
34103
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), BW = u.filter(E2).map((r2) => {
|
|
34097
34104
|
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, {
|
|
34098
34105
|
code: r2.code,
|
|
34099
34106
|
mode: d,
|
|
@@ -34123,14 +34130,14 @@ ${c}
|
|
|
34123
34130
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
34124
34131
|
children: m3
|
|
34125
34132
|
}, r2.id);
|
|
34126
|
-
}), 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] =
|
|
34127
|
-
} 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],
|
|
34128
|
-
let
|
|
34129
|
-
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] !==
|
|
34130
|
-
breakpoint:
|
|
34131
|
-
layouts:
|
|
34132
|
-
style:
|
|
34133
|
-
cols:
|
|
34133
|
+
}), 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] = kW, r[31] = Z, r[32] = AW, r[33] = jW, r[34] = MW, r[35] = NW, r[36] = PW, r[37] = FW, r[38] = IW, r[39] = LW, r[40] = RW, r[41] = zW, r[42] = BW, r[43] = VW, r[44] = HW, r[45] = UW, r[46] = WW;
|
|
34134
|
+
} 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], kW = r[30], Z = r[31], AW = r[32], jW = r[33], MW = r[34], NW = r[35], PW = r[36], FW = r[37], IW = r[38], LW = r[39], RW = r[40], zW = r[41], BW = r[42], VW = r[43], HW = r[44], UW = r[45], WW = r[46];
|
|
34135
|
+
let GW;
|
|
34136
|
+
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] !== kW || r[91] !== Z || r[92] !== AW || r[93] !== jW || r[94] !== MW || r[95] !== NW || r[96] !== PW || r[97] !== FW || r[98] !== IW || r[99] !== LW || r[100] !== RW || r[101] !== zW || r[102] !== BW || r[103] !== VW || r[104] !== HW || r[105] !== UW || r[106] !== WW ? (GW = (0, import_jsx_runtime.jsx)(I, {
|
|
34137
|
+
breakpoint: VW,
|
|
34138
|
+
layouts: HW,
|
|
34139
|
+
style: UW,
|
|
34140
|
+
cols: WW,
|
|
34134
34141
|
allowOverlap: R,
|
|
34135
34142
|
className: z,
|
|
34136
34143
|
containerPadding: B,
|
|
@@ -34138,23 +34145,23 @@ ${c}
|
|
|
34138
34145
|
isBounded: W,
|
|
34139
34146
|
compactType: G,
|
|
34140
34147
|
preventCollision: q,
|
|
34141
|
-
rowHeight:
|
|
34148
|
+
rowHeight: kW,
|
|
34142
34149
|
onLayoutChange: Z,
|
|
34143
|
-
droppingItem:
|
|
34144
|
-
onDrop:
|
|
34145
|
-
onDragStart:
|
|
34146
|
-
onDrag:
|
|
34147
|
-
onDragStop:
|
|
34148
|
-
onResizeStop:
|
|
34149
|
-
isDraggable:
|
|
34150
|
-
isDroppable:
|
|
34151
|
-
isResizable:
|
|
34152
|
-
draggableHandle:
|
|
34153
|
-
children:
|
|
34154
|
-
}), 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] =
|
|
34155
|
-
let
|
|
34156
|
-
if (r[108] !== u || r[109] !==
|
|
34157
|
-
|
|
34150
|
+
droppingItem: AW,
|
|
34151
|
+
onDrop: jW,
|
|
34152
|
+
onDragStart: MW,
|
|
34153
|
+
onDrag: NW,
|
|
34154
|
+
onDragStop: PW,
|
|
34155
|
+
onResizeStop: FW,
|
|
34156
|
+
isDraggable: IW,
|
|
34157
|
+
isDroppable: LW,
|
|
34158
|
+
isResizable: RW,
|
|
34159
|
+
draggableHandle: zW,
|
|
34160
|
+
children: BW
|
|
34161
|
+
}), 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] = kW, r[91] = Z, r[92] = AW, r[93] = jW, r[94] = MW, r[95] = NW, r[96] = PW, r[97] = FW, r[98] = IW, r[99] = LW, r[100] = RW, r[101] = zW, r[102] = BW, r[103] = VW, r[104] = HW, r[105] = UW, r[106] = WW, r[107] = GW) : GW = r[107];
|
|
34162
|
+
let KW = GW, qW, JW, YW, XW, ZW, QW, $W;
|
|
34163
|
+
if (r[108] !== u || r[109] !== KW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
34164
|
+
$W = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
34158
34165
|
bb0: {
|
|
34159
34166
|
let e2;
|
|
34160
34167
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -34162,14 +34169,14 @@ ${c}
|
|
|
34162
34169
|
if (f) {
|
|
34163
34170
|
if (c.bordered) {
|
|
34164
34171
|
let e4;
|
|
34165
|
-
r[127] !==
|
|
34172
|
+
r[127] !== KW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
34166
34173
|
className: "flex flex-1 flex-col items-center",
|
|
34167
34174
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
34168
34175
|
style: L,
|
|
34169
34176
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
34170
|
-
children:
|
|
34177
|
+
children: KW
|
|
34171
34178
|
})
|
|
34172
|
-
}), r[127] =
|
|
34179
|
+
}), r[127] = KW, r[128] = L, r[129] = e4) : e4 = r[129], KW = e4;
|
|
34173
34180
|
}
|
|
34174
34181
|
let e3 = m2.filter(_temp4$2), l2;
|
|
34175
34182
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -34181,9 +34188,9 @@ ${c}
|
|
|
34181
34188
|
stale: outputIsStale(e4, false),
|
|
34182
34189
|
isScrollable: false,
|
|
34183
34190
|
hidden: false
|
|
34184
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
34191
|
+
}, e4.id), r[130] = d, r[131] = l2), $W = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34185
34192
|
children: [
|
|
34186
|
-
|
|
34193
|
+
KW,
|
|
34187
34194
|
(0, import_jsx_runtime.jsx)("div", {
|
|
34188
34195
|
className: "hidden",
|
|
34189
34196
|
children: e3.map(l2)
|
|
@@ -34194,31 +34201,31 @@ ${c}
|
|
|
34194
34201
|
}
|
|
34195
34202
|
if (c.bordered) {
|
|
34196
34203
|
let e3;
|
|
34197
|
-
r[132] ===
|
|
34204
|
+
r[132] === KW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
34198
34205
|
className: "h-full overflow-auto",
|
|
34199
|
-
children:
|
|
34200
|
-
}), r[132] =
|
|
34206
|
+
children: KW
|
|
34207
|
+
}), r[132] = KW, r[133] = e3);
|
|
34201
34208
|
let c2;
|
|
34202
34209
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
34203
34210
|
style: L,
|
|
34204
34211
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
34205
34212
|
children: e3
|
|
34206
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
34213
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], KW = c2;
|
|
34207
34214
|
}
|
|
34208
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
34215
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (QW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
34209
34216
|
layout: c,
|
|
34210
34217
|
setLayout: l,
|
|
34211
34218
|
isLocked: v,
|
|
34212
34219
|
setIsLocked: y
|
|
34213
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
34220
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = QW) : QW = r[140];
|
|
34214
34221
|
let g2;
|
|
34215
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34222
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (XW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = XW, r[142] = g2) : (XW = r[141], g2 = r[142]), r[143] === KW ? ZW = r[144] : (ZW = (0, import_jsx_runtime.jsx)("div", {
|
|
34216
34223
|
className: g2,
|
|
34217
|
-
children:
|
|
34218
|
-
}), r[143] =
|
|
34224
|
+
children: KW
|
|
34225
|
+
}), r[143] = KW, r[144] = ZW), qW = "flex-none flex flex-col w-[300px] p-2 pb-20 gap-2 overflow-auto bg-(--slate-2) border-t border-x rounded-t shadow-sm transparent-when-disconnected mx-2 mt-4", r[145] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (JW = (0, import_jsx_runtime.jsx)("div", {
|
|
34219
34226
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
34220
34227
|
children: "Outputs"
|
|
34221
|
-
}), r[145] =
|
|
34228
|
+
}), r[145] = JW) : JW = r[145];
|
|
34222
34229
|
let b2;
|
|
34223
34230
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
34224
34231
|
draggable: true,
|
|
@@ -34244,34 +34251,34 @@ ${c}
|
|
|
34244
34251
|
stale: outputIsStale(e3, false),
|
|
34245
34252
|
hidden: false
|
|
34246
34253
|
})
|
|
34247
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
34248
|
-
}
|
|
34249
|
-
r[108] = u, r[109] =
|
|
34250
|
-
} else
|
|
34251
|
-
if (
|
|
34252
|
-
let
|
|
34253
|
-
r[150] !==
|
|
34254
|
-
className:
|
|
34254
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], YW = m2.map(b2);
|
|
34255
|
+
}
|
|
34256
|
+
r[108] = u, r[109] = KW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = qW, r[118] = JW, r[119] = YW, r[120] = XW, r[121] = ZW, r[122] = QW, r[123] = $W, r[124] = KW;
|
|
34257
|
+
} else qW = r[117], JW = r[118], YW = r[119], XW = r[120], ZW = r[121], QW = r[122], $W = r[123], KW = r[124];
|
|
34258
|
+
if ($W !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return $W;
|
|
34259
|
+
let eG;
|
|
34260
|
+
r[150] !== qW || r[151] !== JW || r[152] !== YW ? (eG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34261
|
+
className: qW,
|
|
34255
34262
|
children: [
|
|
34256
|
-
|
|
34257
|
-
|
|
34263
|
+
JW,
|
|
34264
|
+
YW
|
|
34258
34265
|
]
|
|
34259
|
-
}), r[150] =
|
|
34260
|
-
let
|
|
34261
|
-
r[154] !==
|
|
34262
|
-
className:
|
|
34266
|
+
}), r[150] = qW, r[151] = JW, r[152] = YW, r[153] = eG) : eG = r[153];
|
|
34267
|
+
let tG;
|
|
34268
|
+
r[154] !== XW || r[155] !== ZW || r[156] !== eG ? (tG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34269
|
+
className: XW,
|
|
34263
34270
|
children: [
|
|
34264
|
-
|
|
34265
|
-
|
|
34271
|
+
ZW,
|
|
34272
|
+
eG
|
|
34266
34273
|
]
|
|
34267
|
-
}), r[154] =
|
|
34268
|
-
let
|
|
34269
|
-
return r[158] !==
|
|
34274
|
+
}), r[154] = XW, r[155] = ZW, r[156] = eG, r[157] = tG) : tG = r[157];
|
|
34275
|
+
let nG;
|
|
34276
|
+
return r[158] !== QW || r[159] !== tG ? (nG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34270
34277
|
children: [
|
|
34271
|
-
|
|
34272
|
-
|
|
34278
|
+
QW,
|
|
34279
|
+
tG
|
|
34273
34280
|
]
|
|
34274
|
-
}), r[158] =
|
|
34281
|
+
}), r[158] = QW, r[159] = tG, r[160] = nG) : nG = r[160], nG;
|
|
34275
34282
|
};
|
|
34276
34283
|
var GridCell = (0, import_react.memo)((e) => {
|
|
34277
34284
|
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;
|
|
@@ -34572,25 +34579,25 @@ ${c}
|
|
|
34572
34579
|
G
|
|
34573
34580
|
]
|
|
34574
34581
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
34575
|
-
let
|
|
34576
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34582
|
+
let kW;
|
|
34583
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (kW = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
34577
34584
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
34578
|
-
}), r[35] =
|
|
34585
|
+
}), r[35] = kW) : kW = r[35];
|
|
34579
34586
|
let Z;
|
|
34580
34587
|
r[36] === l ? Z = r[37] : (Z = (0, import_jsx_runtime.jsx)(X, {
|
|
34581
34588
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34582
34589
|
onClick: () => l()
|
|
34583
34590
|
}), r[36] = l, r[37] = Z);
|
|
34584
|
-
let
|
|
34585
|
-
return r[38] !== I || r[39] !== q || r[40] !== Z || r[41] !== w ? (
|
|
34591
|
+
let AW;
|
|
34592
|
+
return r[38] !== I || r[39] !== q || r[40] !== Z || r[41] !== w ? (AW = (0, import_jsx_runtime.jsxs)("div", {
|
|
34586
34593
|
className: w,
|
|
34587
34594
|
children: [
|
|
34588
34595
|
I,
|
|
34589
34596
|
q,
|
|
34590
|
-
|
|
34597
|
+
kW,
|
|
34591
34598
|
Z
|
|
34592
34599
|
]
|
|
34593
|
-
}), r[38] = I, r[39] = q, r[40] = Z, r[41] = w, r[42] =
|
|
34600
|
+
}), r[38] = I, r[39] = q, r[40] = Z, r[41] = w, r[42] = AW) : AW = r[42], AW;
|
|
34594
34601
|
};
|
|
34595
34602
|
function isSidebarCell(e) {
|
|
34596
34603
|
var _a5;
|
|
@@ -36594,31 +36601,31 @@ ${c}
|
|
|
36594
36601
|
}, [
|
|
36595
36602
|
T,
|
|
36596
36603
|
M
|
|
36597
|
-
]), 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),
|
|
36604
|
+
]), 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), kW = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
36598
36605
|
j
|
|
36599
|
-
]), Z = useMeasuringConfiguration(p), { droppableRects:
|
|
36606
|
+
]), Z = useMeasuringConfiguration(p), { droppableRects: AW, measureDroppableContainers: jW, measuringScheduled: MW } = useDroppableMeasuring(kW, {
|
|
36600
36607
|
dragging: w,
|
|
36601
36608
|
dependencies: [
|
|
36602
36609
|
O.x,
|
|
36603
36610
|
O.y
|
|
36604
36611
|
],
|
|
36605
36612
|
config: Z.droppable
|
|
36606
|
-
}),
|
|
36613
|
+
}), NW = useCachedNode(E, T), PW = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36607
36614
|
H
|
|
36608
|
-
]),
|
|
36615
|
+
]), FW = fG(), IW = useInitialRect(NW, Z.draggable.measure);
|
|
36609
36616
|
useLayoutShiftScrollCompensation({
|
|
36610
36617
|
activeNode: T == null ? null : E.get(T),
|
|
36611
|
-
config:
|
|
36612
|
-
initialRect:
|
|
36618
|
+
config: FW.layoutShiftCompensation,
|
|
36619
|
+
initialRect: IW,
|
|
36613
36620
|
measure: Z.draggable.measure
|
|
36614
36621
|
});
|
|
36615
|
-
let
|
|
36622
|
+
let LW = useRect(NW, Z.draggable.measure, IW), RW = useRect(NW ? NW.parentElement : null), zW = (0, import_react.useRef)({
|
|
36616
36623
|
activatorEvent: null,
|
|
36617
36624
|
active: null,
|
|
36618
|
-
activeNode:
|
|
36625
|
+
activeNode: NW,
|
|
36619
36626
|
collisionRect: null,
|
|
36620
36627
|
collisions: null,
|
|
36621
|
-
droppableRects:
|
|
36628
|
+
droppableRects: AW,
|
|
36622
36629
|
draggableNodes: E,
|
|
36623
36630
|
draggingNode: null,
|
|
36624
36631
|
draggingNodeRect: null,
|
|
@@ -36626,45 +36633,45 @@ ${c}
|
|
|
36626
36633
|
over: null,
|
|
36627
36634
|
scrollableAncestors: [],
|
|
36628
36635
|
scrollAdjustedTranslate: null
|
|
36629
|
-
}),
|
|
36636
|
+
}), BW = j.getNodeFor((_a5 = zW.current.over) == null ? void 0 : _a5.id), VW = useDragOverlayMeasuring({
|
|
36630
36637
|
measure: Z.dragOverlay.measure
|
|
36631
|
-
}),
|
|
36638
|
+
}), HW = VW.nodeRef.current ?? NW, UW = w ? VW.rect ?? LW : null, WW = !!(VW.nodeRef.current && VW.rect), GW = useRectDelta(WW ? null : LW), KW = useWindowRect(HW ? getWindow(HW) : null), qW = useScrollableAncestors(w ? BW ?? NW : null), JW = useRects(qW), YW = applyModifiers(m, {
|
|
36632
36639
|
transform: {
|
|
36633
|
-
x: O.x -
|
|
36634
|
-
y: O.y -
|
|
36640
|
+
x: O.x - GW.x,
|
|
36641
|
+
y: O.y - GW.y,
|
|
36635
36642
|
scaleX: 1,
|
|
36636
36643
|
scaleY: 1
|
|
36637
36644
|
},
|
|
36638
36645
|
activatorEvent: H,
|
|
36639
36646
|
active: L,
|
|
36640
|
-
activeNodeRect:
|
|
36641
|
-
containerNodeRect:
|
|
36642
|
-
draggingNodeRect:
|
|
36643
|
-
over:
|
|
36644
|
-
overlayNodeRect:
|
|
36645
|
-
scrollableAncestors:
|
|
36646
|
-
scrollableAncestorRects:
|
|
36647
|
-
windowRect:
|
|
36648
|
-
}),
|
|
36649
|
-
|
|
36650
|
-
]),
|
|
36647
|
+
activeNodeRect: LW,
|
|
36648
|
+
containerNodeRect: RW,
|
|
36649
|
+
draggingNodeRect: UW,
|
|
36650
|
+
over: zW.current.over,
|
|
36651
|
+
overlayNodeRect: VW.rect,
|
|
36652
|
+
scrollableAncestors: qW,
|
|
36653
|
+
scrollableAncestorRects: JW,
|
|
36654
|
+
windowRect: KW
|
|
36655
|
+
}), XW = PW ? add(PW, O) : null, ZW = useScrollOffsets(qW), QW = useScrollOffsetsDelta(ZW), $W = useScrollOffsetsDelta(ZW, [
|
|
36656
|
+
LW
|
|
36657
|
+
]), eG = add(YW, QW), tG = UW ? getAdjustedRect(UW, YW) : null, nG = L && tG ? f({
|
|
36651
36658
|
active: L,
|
|
36652
|
-
collisionRect:
|
|
36653
|
-
droppableRects:
|
|
36654
|
-
droppableContainers:
|
|
36655
|
-
pointerCoordinates:
|
|
36656
|
-
}) : null,
|
|
36659
|
+
collisionRect: tG,
|
|
36660
|
+
droppableRects: AW,
|
|
36661
|
+
droppableContainers: kW,
|
|
36662
|
+
pointerCoordinates: XW
|
|
36663
|
+
}) : null, rG = getFirstCollision(nG, "id"), [iG, aG] = (0, import_react.useState)(null), oG = adjustScale(WW ? YW : add(YW, $W), (iG == null ? void 0 : iG.rect) ?? null, LW), sG = (0, import_react.useRef)(null), cG = (0, import_react.useCallback)((e2, r2) => {
|
|
36657
36664
|
let { sensor: c2, options: l2 } = r2;
|
|
36658
36665
|
if (R.current == null) return;
|
|
36659
36666
|
let u2 = E.get(R.current);
|
|
36660
36667
|
if (!u2) return;
|
|
36661
36668
|
let d2 = e2.nativeEvent;
|
|
36662
|
-
|
|
36669
|
+
sG.current = new c2({
|
|
36663
36670
|
active: R.current,
|
|
36664
36671
|
activeNode: u2,
|
|
36665
36672
|
event: d2,
|
|
36666
36673
|
options: l2,
|
|
36667
|
-
context:
|
|
36674
|
+
context: zW,
|
|
36668
36675
|
onAbort(e3) {
|
|
36669
36676
|
if (!E.get(e3)) return;
|
|
36670
36677
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -36709,7 +36716,7 @@ ${c}
|
|
|
36709
36716
|
}), v({
|
|
36710
36717
|
type: "onDragStart",
|
|
36711
36718
|
event: u3
|
|
36712
|
-
}), B(
|
|
36719
|
+
}), B(sG.current), W(d2);
|
|
36713
36720
|
});
|
|
36714
36721
|
},
|
|
36715
36722
|
onMove(e3) {
|
|
@@ -36723,7 +36730,7 @@ ${c}
|
|
|
36723
36730
|
});
|
|
36724
36731
|
function f2(e3) {
|
|
36725
36732
|
return async function() {
|
|
36726
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
36733
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = zW.current, f3 = null;
|
|
36727
36734
|
if (r3 && u3) {
|
|
36728
36735
|
let { cancelDrop: p2 } = G.current;
|
|
36729
36736
|
f3 = {
|
|
@@ -36737,7 +36744,7 @@ ${c}
|
|
|
36737
36744
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36738
36745
|
_({
|
|
36739
36746
|
type: e3
|
|
36740
|
-
}), S(Status.Uninitialized),
|
|
36747
|
+
}), S(Status.Uninitialized), aG(null), B(null), W(null), sG.current = null;
|
|
36741
36748
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
36742
36749
|
if (f3) {
|
|
36743
36750
|
let e4 = G.current[r4];
|
|
@@ -36751,7 +36758,7 @@ ${c}
|
|
|
36751
36758
|
}
|
|
36752
36759
|
}, [
|
|
36753
36760
|
E
|
|
36754
|
-
]),
|
|
36761
|
+
]), lG = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
36755
36762
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
36756
36763
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
36757
36764
|
let f2 = {
|
|
@@ -36759,26 +36766,26 @@ ${c}
|
|
|
36759
36766
|
};
|
|
36760
36767
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
36761
36768
|
capturedBy: r2.sensor
|
|
36762
|
-
}, R.current = l2,
|
|
36769
|
+
}, R.current = l2, cG(c2, r2));
|
|
36763
36770
|
}, [
|
|
36764
36771
|
E,
|
|
36765
|
-
|
|
36772
|
+
cG
|
|
36766
36773
|
]));
|
|
36767
36774
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
36768
|
-
|
|
36775
|
+
LW && b === Status.Initializing && S(Status.Initialized);
|
|
36769
36776
|
}, [
|
|
36770
|
-
|
|
36777
|
+
LW,
|
|
36771
36778
|
b
|
|
36772
36779
|
]), (0, import_react.useEffect)(() => {
|
|
36773
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
36780
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = zW.current;
|
|
36774
36781
|
if (!r2 || !c2) return;
|
|
36775
36782
|
let d2 = {
|
|
36776
36783
|
active: r2,
|
|
36777
36784
|
activatorEvent: c2,
|
|
36778
36785
|
collisions: l2,
|
|
36779
36786
|
delta: {
|
|
36780
|
-
x:
|
|
36781
|
-
y:
|
|
36787
|
+
x: eG.x,
|
|
36788
|
+
y: eG.y
|
|
36782
36789
|
},
|
|
36783
36790
|
over: u2
|
|
36784
36791
|
};
|
|
@@ -36789,12 +36796,12 @@ ${c}
|
|
|
36789
36796
|
});
|
|
36790
36797
|
});
|
|
36791
36798
|
}, [
|
|
36792
|
-
|
|
36793
|
-
|
|
36799
|
+
eG.x,
|
|
36800
|
+
eG.y
|
|
36794
36801
|
]), (0, import_react.useEffect)(() => {
|
|
36795
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
36802
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = zW.current;
|
|
36796
36803
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
36797
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
36804
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(rG), p2 = f2 && f2.rect.current ? {
|
|
36798
36805
|
id: f2.id,
|
|
36799
36806
|
rect: f2.rect.current,
|
|
36800
36807
|
data: f2.data,
|
|
@@ -36810,127 +36817,127 @@ ${c}
|
|
|
36810
36817
|
over: p2
|
|
36811
36818
|
};
|
|
36812
36819
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36813
|
-
|
|
36820
|
+
aG(p2), d2 == null ? void 0 : d2(m2), v({
|
|
36814
36821
|
type: "onDragOver",
|
|
36815
36822
|
event: m2
|
|
36816
36823
|
});
|
|
36817
36824
|
});
|
|
36818
36825
|
}, [
|
|
36819
|
-
|
|
36826
|
+
rG
|
|
36820
36827
|
]), useIsomorphicLayoutEffect(() => {
|
|
36821
|
-
|
|
36828
|
+
zW.current = {
|
|
36822
36829
|
activatorEvent: H,
|
|
36823
36830
|
active: L,
|
|
36824
|
-
activeNode:
|
|
36825
|
-
collisionRect:
|
|
36826
|
-
collisions:
|
|
36827
|
-
droppableRects:
|
|
36831
|
+
activeNode: NW,
|
|
36832
|
+
collisionRect: tG,
|
|
36833
|
+
collisions: nG,
|
|
36834
|
+
droppableRects: AW,
|
|
36828
36835
|
draggableNodes: E,
|
|
36829
|
-
draggingNode:
|
|
36830
|
-
draggingNodeRect:
|
|
36836
|
+
draggingNode: HW,
|
|
36837
|
+
draggingNodeRect: UW,
|
|
36831
36838
|
droppableContainers: j,
|
|
36832
|
-
over:
|
|
36833
|
-
scrollableAncestors:
|
|
36834
|
-
scrollAdjustedTranslate:
|
|
36839
|
+
over: iG,
|
|
36840
|
+
scrollableAncestors: qW,
|
|
36841
|
+
scrollAdjustedTranslate: eG
|
|
36835
36842
|
}, I.current = {
|
|
36836
|
-
initial:
|
|
36837
|
-
translated:
|
|
36843
|
+
initial: UW,
|
|
36844
|
+
translated: tG
|
|
36838
36845
|
};
|
|
36839
36846
|
}, [
|
|
36840
36847
|
L,
|
|
36841
|
-
|
|
36842
|
-
|
|
36843
|
-
|
|
36848
|
+
NW,
|
|
36849
|
+
nG,
|
|
36850
|
+
tG,
|
|
36844
36851
|
E,
|
|
36845
|
-
|
|
36846
|
-
|
|
36847
|
-
|
|
36852
|
+
HW,
|
|
36853
|
+
UW,
|
|
36854
|
+
AW,
|
|
36848
36855
|
j,
|
|
36849
|
-
|
|
36850
|
-
|
|
36851
|
-
|
|
36856
|
+
iG,
|
|
36857
|
+
qW,
|
|
36858
|
+
eG
|
|
36852
36859
|
]), useAutoScroller({
|
|
36853
|
-
...
|
|
36860
|
+
...FW,
|
|
36854
36861
|
delta: O,
|
|
36855
|
-
draggingRect:
|
|
36856
|
-
pointerCoordinates:
|
|
36857
|
-
scrollableAncestors:
|
|
36858
|
-
scrollableAncestorRects:
|
|
36862
|
+
draggingRect: tG,
|
|
36863
|
+
pointerCoordinates: XW,
|
|
36864
|
+
scrollableAncestors: qW,
|
|
36865
|
+
scrollableAncestorRects: JW
|
|
36859
36866
|
});
|
|
36860
|
-
let
|
|
36867
|
+
let uG = (0, import_react.useMemo)(() => ({
|
|
36861
36868
|
active: L,
|
|
36862
|
-
activeNode:
|
|
36863
|
-
activeNodeRect:
|
|
36869
|
+
activeNode: NW,
|
|
36870
|
+
activeNodeRect: LW,
|
|
36864
36871
|
activatorEvent: H,
|
|
36865
|
-
collisions:
|
|
36866
|
-
containerNodeRect:
|
|
36867
|
-
dragOverlay:
|
|
36872
|
+
collisions: nG,
|
|
36873
|
+
containerNodeRect: RW,
|
|
36874
|
+
dragOverlay: VW,
|
|
36868
36875
|
draggableNodes: E,
|
|
36869
36876
|
droppableContainers: j,
|
|
36870
|
-
droppableRects:
|
|
36871
|
-
over:
|
|
36872
|
-
measureDroppableContainers:
|
|
36873
|
-
scrollableAncestors:
|
|
36874
|
-
scrollableAncestorRects:
|
|
36877
|
+
droppableRects: AW,
|
|
36878
|
+
over: iG,
|
|
36879
|
+
measureDroppableContainers: jW,
|
|
36880
|
+
scrollableAncestors: qW,
|
|
36881
|
+
scrollableAncestorRects: JW,
|
|
36875
36882
|
measuringConfiguration: Z,
|
|
36876
|
-
measuringScheduled:
|
|
36877
|
-
windowRect:
|
|
36883
|
+
measuringScheduled: MW,
|
|
36884
|
+
windowRect: KW
|
|
36878
36885
|
}), [
|
|
36879
36886
|
L,
|
|
36880
|
-
|
|
36881
|
-
|
|
36887
|
+
NW,
|
|
36888
|
+
LW,
|
|
36882
36889
|
H,
|
|
36883
|
-
|
|
36884
|
-
|
|
36885
|
-
|
|
36890
|
+
nG,
|
|
36891
|
+
RW,
|
|
36892
|
+
VW,
|
|
36886
36893
|
E,
|
|
36887
36894
|
j,
|
|
36888
|
-
OW,
|
|
36889
|
-
nG,
|
|
36890
|
-
kW,
|
|
36891
|
-
GW,
|
|
36892
|
-
KW,
|
|
36893
|
-
Z,
|
|
36894
36895
|
AW,
|
|
36895
|
-
|
|
36896
|
-
|
|
36896
|
+
iG,
|
|
36897
|
+
jW,
|
|
36898
|
+
qW,
|
|
36899
|
+
JW,
|
|
36900
|
+
Z,
|
|
36901
|
+
MW,
|
|
36902
|
+
KW
|
|
36903
|
+
]), dG = (0, import_react.useMemo)(() => ({
|
|
36897
36904
|
activatorEvent: H,
|
|
36898
|
-
activators:
|
|
36905
|
+
activators: lG,
|
|
36899
36906
|
active: L,
|
|
36900
|
-
activeNodeRect:
|
|
36907
|
+
activeNodeRect: LW,
|
|
36901
36908
|
ariaDescribedById: {
|
|
36902
36909
|
draggable: q
|
|
36903
36910
|
},
|
|
36904
36911
|
dispatch: _,
|
|
36905
36912
|
draggableNodes: E,
|
|
36906
|
-
over:
|
|
36907
|
-
measureDroppableContainers:
|
|
36913
|
+
over: iG,
|
|
36914
|
+
measureDroppableContainers: jW
|
|
36908
36915
|
}), [
|
|
36909
36916
|
H,
|
|
36910
|
-
|
|
36917
|
+
lG,
|
|
36911
36918
|
L,
|
|
36912
|
-
|
|
36919
|
+
LW,
|
|
36913
36920
|
_,
|
|
36914
36921
|
q,
|
|
36915
36922
|
E,
|
|
36916
|
-
|
|
36917
|
-
|
|
36923
|
+
iG,
|
|
36924
|
+
jW
|
|
36918
36925
|
]);
|
|
36919
36926
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
36920
36927
|
value: y
|
|
36921
36928
|
}, import_react.createElement(InternalContext.Provider, {
|
|
36922
|
-
value:
|
|
36929
|
+
value: dG
|
|
36923
36930
|
}, import_react.createElement(PublicContext.Provider, {
|
|
36924
|
-
value:
|
|
36931
|
+
value: uG
|
|
36925
36932
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
36926
|
-
value:
|
|
36933
|
+
value: oG
|
|
36927
36934
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
36928
36935
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
36929
36936
|
})), import_react.createElement(Accessibility, {
|
|
36930
36937
|
...c,
|
|
36931
36938
|
hiddenTextDescribedById: q
|
|
36932
36939
|
}));
|
|
36933
|
-
function
|
|
36940
|
+
function fG() {
|
|
36934
36941
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
36935
36942
|
return typeof l == "object" ? {
|
|
36936
36943
|
...l,
|
|
@@ -37458,7 +37465,7 @@ ${c}
|
|
|
37458
37465
|
updateMeasurementsFor: I,
|
|
37459
37466
|
...m
|
|
37460
37467
|
}
|
|
37461
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
37468
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: kW, listeners: Z, isDragging: AW, over: jW, setActivatorNodeRef: MW, transform: NW } = useDraggable({
|
|
37462
37469
|
id: f,
|
|
37463
37470
|
data: M,
|
|
37464
37471
|
attributes: {
|
|
@@ -37466,60 +37473,60 @@ ${c}
|
|
|
37466
37473
|
...c
|
|
37467
37474
|
},
|
|
37468
37475
|
disabled: O.draggable
|
|
37469
|
-
}),
|
|
37476
|
+
}), PW = useCombinedRefs(B, kW), FW = !!H, IW = FW && !b && isValidIndex(v) && isValidIndex(w), LW = !T && AW, RW = IW ? (LW && IW ? NW : null) ?? (p ?? E)({
|
|
37470
37477
|
rects: S,
|
|
37471
37478
|
activeNodeRect: G,
|
|
37472
37479
|
activeIndex: v,
|
|
37473
37480
|
overIndex: w,
|
|
37474
37481
|
index: j
|
|
37475
|
-
}) : null,
|
|
37482
|
+
}) : null, zW = isValidIndex(v) && isValidIndex(w) ? d({
|
|
37476
37483
|
id: f,
|
|
37477
37484
|
items: g,
|
|
37478
37485
|
activeIndex: v,
|
|
37479
37486
|
overIndex: w
|
|
37480
|
-
}) : j,
|
|
37481
|
-
activeId:
|
|
37487
|
+
}) : j, BW = H == null ? void 0 : H.id, VW = (0, import_react.useRef)({
|
|
37488
|
+
activeId: BW,
|
|
37482
37489
|
items: g,
|
|
37483
|
-
newIndex:
|
|
37490
|
+
newIndex: zW,
|
|
37484
37491
|
containerId: _
|
|
37485
|
-
}),
|
|
37492
|
+
}), HW = g !== VW.current.items, UW = r({
|
|
37486
37493
|
active: H,
|
|
37487
37494
|
containerId: _,
|
|
37488
|
-
isDragging:
|
|
37489
|
-
isSorting:
|
|
37495
|
+
isDragging: AW,
|
|
37496
|
+
isSorting: FW,
|
|
37490
37497
|
id: f,
|
|
37491
37498
|
index: j,
|
|
37492
37499
|
items: g,
|
|
37493
|
-
newIndex:
|
|
37494
|
-
previousItems:
|
|
37495
|
-
previousContainerId:
|
|
37500
|
+
newIndex: VW.current.newIndex,
|
|
37501
|
+
previousItems: VW.current.items,
|
|
37502
|
+
previousContainerId: VW.current.containerId,
|
|
37496
37503
|
transition: h,
|
|
37497
|
-
wasDragging:
|
|
37498
|
-
}),
|
|
37499
|
-
disabled: !
|
|
37504
|
+
wasDragging: VW.current.activeId != null
|
|
37505
|
+
}), WW = useDerivedTransform({
|
|
37506
|
+
disabled: !UW,
|
|
37500
37507
|
index: j,
|
|
37501
37508
|
node: R,
|
|
37502
37509
|
rect: L
|
|
37503
37510
|
});
|
|
37504
37511
|
return (0, import_react.useEffect)(() => {
|
|
37505
|
-
|
|
37512
|
+
FW && VW.current.newIndex !== zW && (VW.current.newIndex = zW), _ !== VW.current.containerId && (VW.current.containerId = _), g !== VW.current.items && (VW.current.items = g);
|
|
37506
37513
|
}, [
|
|
37507
|
-
|
|
37508
|
-
|
|
37514
|
+
FW,
|
|
37515
|
+
zW,
|
|
37509
37516
|
_,
|
|
37510
37517
|
g
|
|
37511
37518
|
]), (0, import_react.useEffect)(() => {
|
|
37512
|
-
if (
|
|
37513
|
-
if (
|
|
37514
|
-
|
|
37519
|
+
if (BW === VW.current.activeId) return;
|
|
37520
|
+
if (BW != null && VW.current.activeId == null) {
|
|
37521
|
+
VW.current.activeId = BW;
|
|
37515
37522
|
return;
|
|
37516
37523
|
}
|
|
37517
37524
|
let e2 = setTimeout(() => {
|
|
37518
|
-
|
|
37525
|
+
VW.current.activeId = BW;
|
|
37519
37526
|
}, 50);
|
|
37520
37527
|
return () => clearTimeout(e2);
|
|
37521
37528
|
}, [
|
|
37522
|
-
|
|
37529
|
+
BW
|
|
37523
37530
|
]), {
|
|
37524
37531
|
active: H,
|
|
37525
37532
|
activeIndex: v,
|
|
@@ -37527,25 +37534,25 @@ ${c}
|
|
|
37527
37534
|
data: M,
|
|
37528
37535
|
rect: L,
|
|
37529
37536
|
index: j,
|
|
37530
|
-
newIndex:
|
|
37537
|
+
newIndex: zW,
|
|
37531
37538
|
items: g,
|
|
37532
37539
|
isOver: z,
|
|
37533
|
-
isSorting:
|
|
37534
|
-
isDragging:
|
|
37540
|
+
isSorting: FW,
|
|
37541
|
+
isDragging: AW,
|
|
37535
37542
|
listeners: Z,
|
|
37536
37543
|
node: R,
|
|
37537
37544
|
overIndex: w,
|
|
37538
|
-
over:
|
|
37539
|
-
setNodeRef:
|
|
37540
|
-
setActivatorNodeRef:
|
|
37545
|
+
over: jW,
|
|
37546
|
+
setNodeRef: PW,
|
|
37547
|
+
setActivatorNodeRef: MW,
|
|
37541
37548
|
setDroppableNodeRef: B,
|
|
37542
|
-
setDraggableNodeRef:
|
|
37543
|
-
transform:
|
|
37544
|
-
transition:
|
|
37549
|
+
setDraggableNodeRef: kW,
|
|
37550
|
+
transform: WW ?? RW,
|
|
37551
|
+
transition: GW()
|
|
37545
37552
|
};
|
|
37546
|
-
function
|
|
37547
|
-
if (
|
|
37548
|
-
if (!(
|
|
37553
|
+
function GW() {
|
|
37554
|
+
if (WW || HW && VW.current.newIndex === j) return disabledTransition;
|
|
37555
|
+
if (!(LW && !isKeyboardEvent(W) || !h) && (FW || UW)) return CSS$1.Transition.toString({
|
|
37549
37556
|
...h,
|
|
37550
37557
|
property: transitionProperty
|
|
37551
37558
|
});
|
|
@@ -37845,15 +37852,15 @@ ${c}
|
|
|
37845
37852
|
G
|
|
37846
37853
|
]
|
|
37847
37854
|
}), 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];
|
|
37848
|
-
let
|
|
37849
|
-
if (!v && !g) return
|
|
37855
|
+
let kW = q;
|
|
37856
|
+
if (!v && !g) return kW;
|
|
37850
37857
|
let Z;
|
|
37851
|
-
r[46] ===
|
|
37858
|
+
r[46] === kW ? Z = r[47] : (Z = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
37852
37859
|
asChild: true,
|
|
37853
|
-
children:
|
|
37854
|
-
}), r[46] =
|
|
37855
|
-
let
|
|
37856
|
-
r[48] === v ?
|
|
37860
|
+
children: kW
|
|
37861
|
+
}), r[46] = kW, r[47] = Z);
|
|
37862
|
+
let AW;
|
|
37863
|
+
r[48] === v ? AW = r[49] : (AW = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37857
37864
|
onSelect: v,
|
|
37858
37865
|
children: [
|
|
37859
37866
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -37861,11 +37868,11 @@ ${c}
|
|
|
37861
37868
|
}),
|
|
37862
37869
|
"Add cell"
|
|
37863
37870
|
]
|
|
37864
|
-
}), r[48] = v, r[49] =
|
|
37865
|
-
let
|
|
37866
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
37867
|
-
let
|
|
37868
|
-
r[51] === g ?
|
|
37871
|
+
}), r[48] = v, r[49] = AW);
|
|
37872
|
+
let jW;
|
|
37873
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (jW = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = jW) : jW = r[50];
|
|
37874
|
+
let MW;
|
|
37875
|
+
r[51] === g ? MW = r[52] : (MW = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37869
37876
|
variant: "danger",
|
|
37870
37877
|
onSelect: g,
|
|
37871
37878
|
children: [
|
|
@@ -37874,22 +37881,22 @@ ${c}
|
|
|
37874
37881
|
}),
|
|
37875
37882
|
"Delete cell"
|
|
37876
37883
|
]
|
|
37877
|
-
}), r[51] = g, r[52] =
|
|
37878
|
-
let
|
|
37879
|
-
r[53] !==
|
|
37884
|
+
}), r[51] = g, r[52] = MW);
|
|
37885
|
+
let NW;
|
|
37886
|
+
r[53] !== AW || r[54] !== MW ? (NW = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
37880
37887
|
children: [
|
|
37881
|
-
|
|
37882
|
-
|
|
37883
|
-
|
|
37888
|
+
AW,
|
|
37889
|
+
jW,
|
|
37890
|
+
MW
|
|
37884
37891
|
]
|
|
37885
|
-
}), r[53] =
|
|
37886
|
-
let
|
|
37887
|
-
return r[56] !== Z || r[57] !==
|
|
37892
|
+
}), r[53] = AW, r[54] = MW, r[55] = NW) : NW = r[55];
|
|
37893
|
+
let PW;
|
|
37894
|
+
return r[56] !== Z || r[57] !== NW ? (PW = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
37888
37895
|
children: [
|
|
37889
37896
|
Z,
|
|
37890
|
-
|
|
37897
|
+
NW
|
|
37891
37898
|
]
|
|
37892
|
-
}), r[56] = Z, r[57] =
|
|
37899
|
+
}), r[56] = Z, r[57] = NW, r[58] = PW) : PW = r[58], PW;
|
|
37893
37900
|
}, InsertCellLine = (e) => {
|
|
37894
37901
|
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;
|
|
37895
37902
|
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);
|
|
@@ -37943,10 +37950,10 @@ ${c}
|
|
|
37943
37950
|
...B,
|
|
37944
37951
|
...h
|
|
37945
37952
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
37946
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
37947
|
-
r[25] !== l || r[26] !==
|
|
37948
|
-
let
|
|
37949
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
37953
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", kW = w && !T && "opacity-35", Z = T && "opacity-95 shadow-lg", AW;
|
|
37954
|
+
r[25] !== l || r[26] !== kW || r[27] !== Z || r[28] !== q ? (AW = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, kW, Z, l), r[25] = l, r[26] = kW, r[27] = Z, r[28] = q, r[29] = AW) : AW = r[29];
|
|
37955
|
+
let jW;
|
|
37956
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (jW = G && (0, import_jsx_runtime.jsx)("div", {
|
|
37950
37957
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
37951
37958
|
style: {
|
|
37952
37959
|
transform: `scale(${I})`,
|
|
@@ -37962,14 +37969,14 @@ ${c}
|
|
|
37962
37969
|
output: c.output,
|
|
37963
37970
|
stale: outputIsStale(c, false)
|
|
37964
37971
|
})
|
|
37965
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
37966
|
-
let
|
|
37967
|
-
r[37] === z ?
|
|
37972
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = jW) : jW = r[36];
|
|
37973
|
+
let MW;
|
|
37974
|
+
r[37] === z ? MW = r[38] : (MW = z && (0, import_jsx_runtime.jsx)("div", {
|
|
37968
37975
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
37969
37976
|
"aria-hidden": true
|
|
37970
|
-
}), r[37] = z, r[38] =
|
|
37971
|
-
let
|
|
37972
|
-
r[39] !== z || r[40] !== R ? (
|
|
37977
|
+
}), r[37] = z, r[38] = MW);
|
|
37978
|
+
let NW;
|
|
37979
|
+
r[39] !== z || r[40] !== R ? (NW = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
37973
37980
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
37974
37981
|
className: "text-xs opacity-80",
|
|
37975
37982
|
children: R.description
|
|
@@ -37981,19 +37988,19 @@ ${c}
|
|
|
37981
37988
|
className: "h-3.5 w-3.5"
|
|
37982
37989
|
})
|
|
37983
37990
|
})
|
|
37984
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
37985
|
-
let
|
|
37986
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
37991
|
+
}), r[39] = z, r[40] = R, r[41] = NW) : NW = r[41];
|
|
37992
|
+
let PW;
|
|
37993
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== AW || r[46] !== jW || r[47] !== MW || r[48] !== NW ? (PW = (0, import_jsx_runtime.jsxs)("div", {
|
|
37987
37994
|
ref: f,
|
|
37988
|
-
className:
|
|
37995
|
+
className: AW,
|
|
37989
37996
|
style: W,
|
|
37990
37997
|
...d,
|
|
37991
37998
|
children: [
|
|
37992
|
-
|
|
37993
|
-
|
|
37994
|
-
|
|
37999
|
+
jW,
|
|
38000
|
+
MW,
|
|
38001
|
+
NW
|
|
37995
38002
|
]
|
|
37996
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
38003
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = AW, r[46] = jW, r[47] = MW, r[48] = NW, r[49] = PW) : PW = r[49], PW;
|
|
37997
38004
|
}, MiniCodePreview = (e) => {
|
|
37998
38005
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
37999
38006
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -38033,7 +38040,7 @@ ${c}
|
|
|
38033
38040
|
function _temp2$2(e) {
|
|
38034
38041
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
38035
38042
|
}
|
|
38036
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
38043
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-CKfV5wlk.js"));
|
|
38037
38044
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
38038
38045
|
var _a5;
|
|
38039
38046
|
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), [
|
|
@@ -38413,7 +38420,7 @@ ${c}
|
|
|
38413
38420
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
38414
38421
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
38415
38422
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
38416
|
-
let H, W, G, q,
|
|
38423
|
+
let H, W, G, q, kW, Z, jW, MW, NW, PW;
|
|
38417
38424
|
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) {
|
|
38418
38425
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
38419
38426
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -38459,11 +38466,11 @@ ${c}
|
|
|
38459
38466
|
})
|
|
38460
38467
|
})
|
|
38461
38468
|
]
|
|
38462
|
-
}), 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",
|
|
38463
|
-
let
|
|
38464
|
-
r[40] !== M || r[41] !==
|
|
38469
|
+
}), 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", kW = c, Z = R, jW = 0;
|
|
38470
|
+
let AW = y && "marimo-output-stale", FW2 = L ? "p-5" : "p-3";
|
|
38471
|
+
r[40] !== M || r[41] !== AW || r[42] !== FW2 ? (MW = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", AW, FW2, M), r[40] = M, r[41] = AW, r[42] = FW2, r[43] = MW) : MW = r[43], r[44] === d ? NW = r[45] : (NW = d ? {
|
|
38465
38472
|
maxHeight: "none"
|
|
38466
|
-
} : void 0, r[44] = d, r[45] =
|
|
38473
|
+
} : void 0, r[44] = d, r[45] = NW), PW = e2.map((e3, r2) => {
|
|
38467
38474
|
if (e3.channel === "pdb") return null;
|
|
38468
38475
|
if (e3.channel === "stdin") {
|
|
38469
38476
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -38492,36 +38499,36 @@ ${c}
|
|
|
38492
38499
|
wrapText: l
|
|
38493
38500
|
})
|
|
38494
38501
|
}, r2);
|
|
38495
|
-
}), 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] =
|
|
38496
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
38497
|
-
let
|
|
38498
|
-
r[46] !== T || r[47] !== S ? (
|
|
38502
|
+
}), 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] = kW, r[25] = Z, r[26] = jW, r[27] = MW, r[28] = NW, r[29] = PW;
|
|
38503
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], kW = r[24], Z = r[25], jW = r[26], MW = r[27], NW = r[28], PW = r[29];
|
|
38504
|
+
let FW;
|
|
38505
|
+
r[46] !== T || r[47] !== S ? (FW = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
38499
38506
|
value: S,
|
|
38500
38507
|
cellId: T,
|
|
38501
38508
|
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"
|
|
38502
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
38503
|
-
let
|
|
38504
|
-
r[49] !==
|
|
38509
|
+
}), r[46] = T, r[47] = S, r[48] = FW) : FW = r[48];
|
|
38510
|
+
let IW;
|
|
38511
|
+
r[49] !== FW || r[50] !== G || r[51] !== q || r[52] !== kW || r[53] !== Z || r[54] !== jW || r[55] !== MW || r[56] !== NW || r[57] !== PW ? (IW = (0, import_jsx_runtime.jsxs)("div", {
|
|
38505
38512
|
title: G,
|
|
38506
38513
|
"data-testid": q,
|
|
38507
|
-
ref:
|
|
38514
|
+
ref: kW,
|
|
38508
38515
|
...Z,
|
|
38509
|
-
tabIndex:
|
|
38510
|
-
className:
|
|
38511
|
-
style:
|
|
38516
|
+
tabIndex: jW,
|
|
38517
|
+
className: MW,
|
|
38518
|
+
style: NW,
|
|
38512
38519
|
children: [
|
|
38513
|
-
|
|
38514
|
-
|
|
38520
|
+
PW,
|
|
38521
|
+
FW
|
|
38515
38522
|
]
|
|
38516
|
-
}), r[49] =
|
|
38517
|
-
let
|
|
38518
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
38523
|
+
}), r[49] = FW, r[50] = G, r[51] = q, r[52] = kW, r[53] = Z, r[54] = jW, r[55] = MW, r[56] = NW, r[57] = PW, r[58] = IW) : IW = r[58];
|
|
38524
|
+
let LW;
|
|
38525
|
+
return r[59] !== H || r[60] !== W || r[61] !== IW ? (LW = (0, import_jsx_runtime.jsxs)("div", {
|
|
38519
38526
|
className: H,
|
|
38520
38527
|
children: [
|
|
38521
38528
|
W,
|
|
38522
|
-
|
|
38529
|
+
IW
|
|
38523
38530
|
]
|
|
38524
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
38531
|
+
}), r[59] = H, r[60] = W, r[61] = IW, r[62] = LW) : LW = r[62], LW;
|
|
38525
38532
|
}, StdInput = (e) => {
|
|
38526
38533
|
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;
|
|
38527
38534
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -39005,23 +39012,23 @@ ${c}
|
|
|
39005
39012
|
if ((h || _ || m || W) && !G) return null;
|
|
39006
39013
|
let q;
|
|
39007
39014
|
r[44] !== d || r[45] !== T ? (q = cellDomProps(d, T), r[44] = d, r[45] = T, r[46] = q) : q = r[46];
|
|
39008
|
-
let
|
|
39009
|
-
r[47] !== d || r[48] !== R || r[49] !== c || r[50] !== I || r[51] !==
|
|
39010
|
-
allowExpand:
|
|
39015
|
+
let kW = w === "edit", Z;
|
|
39016
|
+
r[47] !== d || r[48] !== R || r[49] !== c || r[50] !== I || r[51] !== kW ? (Z = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
39017
|
+
allowExpand: kW,
|
|
39011
39018
|
output: c,
|
|
39012
39019
|
className: CSSClasses.outputArea,
|
|
39013
39020
|
cellId: d,
|
|
39014
39021
|
stale: I,
|
|
39015
39022
|
loading: R
|
|
39016
|
-
}), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] =
|
|
39017
|
-
let
|
|
39018
|
-
return r[53] !== H || r[54] !== q || r[55] !== Z ? (
|
|
39023
|
+
}), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] = kW, r[52] = Z) : Z = r[52];
|
|
39024
|
+
let AW;
|
|
39025
|
+
return r[53] !== H || r[54] !== q || r[55] !== Z ? (AW = (0, import_jsx_runtime.jsx)("div", {
|
|
39019
39026
|
tabIndex: -1,
|
|
39020
39027
|
ref: j,
|
|
39021
39028
|
className: H,
|
|
39022
39029
|
...q,
|
|
39023
39030
|
children: Z
|
|
39024
|
-
}), r[53] = H, r[54] = q, r[55] = Z, r[56] =
|
|
39031
|
+
}), r[53] = H, r[54] = q, r[55] = Z, r[56] = AW) : AW = r[56], AW;
|
|
39025
39032
|
});
|
|
39026
39033
|
VerticalCell.displayName = "VerticalCell";
|
|
39027
39034
|
const VerticalLayoutPlugin = {
|