@marimo-team/islands 0.23.16-dev23 → 0.23.16-dev25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{code-visibility-Bi6qrSJV.js → code-visibility-Btz9Lj-7.js} +778 -770
- package/dist/main.js +937 -942
- package/dist/{reveal-component-BFiF5alf.js → reveal-component-ByqpHkkW.js} +18 -18
- package/package.json +1 -1
- package/src/__mocks__/requests.ts +20 -4
- package/src/components/editor/actions/__tests__/pdf-export.test.ts +0 -4
- package/src/components/editor/actions/pdf-export.ts +1 -4
- package/src/components/editor/actions/useNotebookActions.tsx +7 -13
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +1 -1
- package/src/components/static-html/share-modal.tsx +1 -1
- package/src/core/network/__tests__/api.test.ts +42 -0
- package/src/core/network/__tests__/requests-network.test.ts +1 -0
- package/src/core/network/api.ts +27 -0
- package/src/core/network/requests-network.ts +5 -5
- package/src/core/network/types.ts +15 -4
- package/src/core/static/download-html.ts +5 -14
- package/src/core/wasm/bridge.ts +3 -2
- package/src/core/wasm/worker/types.ts +5 -2
- package/src/utils/__tests__/download.test.tsx +24 -1
- package/src/utils/download.ts +11 -6
package/dist/main.js
CHANGED
|
@@ -26,7 +26,7 @@ import { $ as notebookOutline, A as ChevronDownIcon, Bn as Eye, Bt as DATA_TYPE_
|
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-B9WoXK1R.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-DIlxLFXG.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-CQKL_D3i.js";
|
|
29
|
-
import { $ as
|
|
29
|
+
import { $ as smartMatch, $t as HtmlOutput, A as LoadingState, At as loadTableAndRawData, B as useInternalStateWithSync, Bt as dateToLocalISODateTime, C as Progress, Ct as renderCellValue, D as ColumnPreviewContainer, Dt as useIntersectionObserver, E as ColumnName, Et as DelayMount, F as ContextMenu, Ft as toFieldTypes, G as Combobox, Gt as TabsTrigger, H as CompactChipRow, Ht as Tabs, I as ContextMenuContent, It as getMimeValues, J as CommandEmpty, Jt as ChartLoadingState, K as ComboboxItem, Kt as ChartErrorState, L as ContextMenuItem, Lt as isNullishFilter, M as prettifyRowCount, Mt as INDEX_COLUMN_NAME, N as getColumnCountForDisplay, Nt as SELECT_COLUMN_ID, O as EmptyState, Ot as usePrevious$1, P as getUserColumnVisibilityCounts, Pt as TOO_MANY_ROWS, Q as CommandSeparator, Qt as Kbd, R as ContextMenuSeparator, Rt as Maps, S as downloadHTMLAsImage, St as inferFieldTypes, T as downloadSizeLimitAtom, Tt as ColumnChartSpecModel, U as DatePicker, Ut as TabsContent, V as useSelectList, Vt as dateToLocalISOTime, W as DateRangePicker, Wt as TabsList, X as CommandItem, Xt as useOverflowDetection, Y as CommandInput, Yt as LazyVegaEmbed, Z as CommandList, Zt as RenderTextWithLinks, _ as InstallPackageButton, _n as ChevronsDownUp, _t as TableHead, an as $fae977aafc393c5c$export$6b862160d295c8e, at as isCellAwareAtom, b as downloadByURL, bt as NAMELESS_COLUMN_PREFIX, cn as Funnel, ct as Toggle, d as RadioGroup, dn as Ellipsis, en as EmotionCacheProvider, et as ContextAwarePanelItem, f as RadioGroupItem, fn as Download, ft as Fill, g as DataTable, gn as ChevronsLeft, gt as TableCell, h as OutputRenderer, hn as ChevronsRight, ht as TableBody, in as $fae977aafc393c5c$export$588937bcd60ade55, it as contextAwarePanelType, j as prettifyRowColumnCount, jt as loadTableData, k as ErrorState, kt as getPageIndexForRow, l as Slide, ln as EyeOff, m as OutputArea, mn as ChevronsUpDown, mt as Table, n as marimoVersionAtom, nn as hasFunctionProperty, nt as contextAwarePanelOpen, on as TextWrap, ot as SlotNames, p as JsonOutput, pn as Code, pt as Provider$1, q as Command, qt as ChartInfoState, r as showCodeInRunModeAtom, rn as isRecord, rt as contextAwarePanelOwner, s as SLIDE_TYPE_OPTIONS_BY_VALUE, sn as GripHorizontal, st as slotsController, t as useNotebookCodeAvailable, tn as safeLocale, tt as PANEL_TYPES, u as Switch, v as ADD_PRINTING_CLASS, vn as ChevronLeft, vt as TableHeader, w as Filenames, wt as ColumnChartContext, x as downloadExportedFile, xt as generateColumns, y as downloadBlob, yn as ArrowDownWideNarrow, yt as TableRow, z as ContextMenuTrigger, zt as dateToLocalISODate, __tla as __tla_2 } from "./code-visibility-Btz9Lj-7.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-CMJGqBaY.js";
|
|
31
31
|
import { t as Check } from "./check-DP7U0H0G.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-DIy9NAmg.js";
|
|
@@ -7515,21 +7515,21 @@ let __tla = Promise.all([
|
|
|
7515
7515
|
}), H = U(), W = U(), G = C(0), q = C(null), Z = C({
|
|
7516
7516
|
column: 0,
|
|
7517
7517
|
row: 0
|
|
7518
|
-
}),
|
|
7519
|
-
Y(x(b, $(
|
|
7520
|
-
D(
|
|
7521
|
-
}), Y(x(ut(b,
|
|
7522
|
-
D(
|
|
7518
|
+
}), QW = U(), $W = U(), eG = C(false), tG = C(0), nG = C(true), rG = C(false), iG = C(false);
|
|
7519
|
+
Y(x(b, $(tG), P(([e2, r2]) => !!r2)), () => {
|
|
7520
|
+
D(nG, false);
|
|
7521
|
+
}), Y(x(ut(b, nG, B, z, tG, rG), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7522
|
+
D(rG, true), Ue(1, () => {
|
|
7523
7523
|
D(H, e2);
|
|
7524
7524
|
}), Et(x(h), () => {
|
|
7525
7525
|
D(r, [
|
|
7526
7526
|
0,
|
|
7527
7527
|
0
|
|
7528
|
-
]), D(
|
|
7528
|
+
]), D(nG, true);
|
|
7529
7529
|
});
|
|
7530
|
-
}), F(x(
|
|
7531
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(Z, e2.gap), e2.scrollTop > 0 && (D(
|
|
7532
|
-
D(
|
|
7530
|
+
}), F(x($W, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $($W), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7531
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(Z, e2.gap), e2.scrollTop > 0 && (D(eG, true), Et(x(h, Kt(1)), (e3) => {
|
|
7532
|
+
D(eG, false);
|
|
7533
7533
|
}), D(m, {
|
|
7534
7534
|
top: e2.scrollTop
|
|
7535
7535
|
})));
|
|
@@ -7538,7 +7538,7 @@ let __tla = Promise.all([
|
|
|
7538
7538
|
item: r2,
|
|
7539
7539
|
scrollTop: l2,
|
|
7540
7540
|
viewport: e2
|
|
7541
|
-
}))),
|
|
7541
|
+
}))), QW), F(x(ut(V(I), l, V(Z, Or), V(B, xe), V(z, xe), V(q), V(L), V(eG), V(nG), V(tG)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7542
7542
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7543
7543
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7544
7544
|
if (y2 === 0) {
|
|
@@ -7564,16 +7564,16 @@ let __tla = Promise.all([
|
|
|
7564
7564
|
u2
|
|
7565
7565
|
];
|
|
7566
7566
|
}), J(ce)), r);
|
|
7567
|
-
let
|
|
7568
|
-
F(x(h, $(
|
|
7569
|
-
let
|
|
7567
|
+
let aG = C(false);
|
|
7568
|
+
F(x(h, $(aG), k(([e2, r2]) => r2 || e2 !== 0)), aG);
|
|
7569
|
+
let oG = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(aG), P(([[e2, r2], c2]) => {
|
|
7570
7570
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7571
7571
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7572
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7572
|
+
}), k(([[, e2]]) => e2 - 1), J())), sG = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), cG = bt(x(V(R), $(eG), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7573
7573
|
endIndex: e2[e2.length - 1].index,
|
|
7574
7574
|
startIndex: e2[0].index
|
|
7575
7575
|
})), J(An), Gt(0)));
|
|
7576
|
-
F(
|
|
7576
|
+
F(cG, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, Z), k(([e2, r2, c2, l2, u2]) => {
|
|
7577
7577
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7578
7578
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7579
7579
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7582,7 +7582,7 @@ let __tla = Promise.all([
|
|
|
7582
7582
|
top: g2
|
|
7583
7583
|
};
|
|
7584
7584
|
})), m);
|
|
7585
|
-
let
|
|
7585
|
+
let lG = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7586
7586
|
return F(x(j, k((e2) => ({
|
|
7587
7587
|
height: e2.visibleHeight,
|
|
7588
7588
|
width: e2.visibleWidth
|
|
@@ -7597,7 +7597,7 @@ let __tla = Promise.all([
|
|
|
7597
7597
|
initialItemCount: L,
|
|
7598
7598
|
itemDimensions: B,
|
|
7599
7599
|
overscan: c,
|
|
7600
|
-
restoreStateFrom:
|
|
7600
|
+
restoreStateFrom: $W,
|
|
7601
7601
|
scrollBy: f,
|
|
7602
7602
|
scrollContainerState: p,
|
|
7603
7603
|
scrollHeight: W,
|
|
@@ -7613,16 +7613,16 @@ let __tla = Promise.all([
|
|
|
7613
7613
|
windowViewportRect: j,
|
|
7614
7614
|
...y,
|
|
7615
7615
|
gridState: R,
|
|
7616
|
-
horizontalDirection:
|
|
7617
|
-
initialTopMostItemIndex:
|
|
7618
|
-
totalListHeight:
|
|
7616
|
+
horizontalDirection: iG,
|
|
7617
|
+
initialTopMostItemIndex: tG,
|
|
7618
|
+
totalListHeight: lG,
|
|
7619
7619
|
...v,
|
|
7620
|
-
endReached:
|
|
7620
|
+
endReached: oG,
|
|
7621
7621
|
propsReady: S,
|
|
7622
|
-
rangeChanged:
|
|
7623
|
-
startReached:
|
|
7624
|
-
stateChanged:
|
|
7625
|
-
stateRestoreInProgress:
|
|
7622
|
+
rangeChanged: cG,
|
|
7623
|
+
startReached: sG,
|
|
7624
|
+
stateChanged: QW,
|
|
7625
|
+
stateRestoreInProgress: eG,
|
|
7626
7626
|
...M
|
|
7627
7627
|
};
|
|
7628
7628
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7900,22 +7900,22 @@ let __tla = Promise.all([
|
|
|
7900
7900
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7901
7901
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7902
7902
|
}, r[8] = p, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7903
|
-
let Z = q,
|
|
7903
|
+
let Z = q, QW;
|
|
7904
7904
|
if (r[13] !== G.bulkActions) {
|
|
7905
|
-
if (
|
|
7905
|
+
if (QW = G.bulkActions.map(_temp$27), QW.length > 0) {
|
|
7906
7906
|
let e2;
|
|
7907
7907
|
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7908
7908
|
"data-slot": "select-separator"
|
|
7909
|
-
}, "_bulk_separator"), r[15] = e2) : e2 = r[15],
|
|
7909
|
+
}, "_bulk_separator"), r[15] = e2) : e2 = r[15], QW.push(e2);
|
|
7910
7910
|
}
|
|
7911
|
-
r[13] = G.bulkActions, r[14] =
|
|
7912
|
-
} else
|
|
7913
|
-
let
|
|
7914
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7911
|
+
r[13] = G.bulkActions, r[14] = QW;
|
|
7912
|
+
} else QW = r[14];
|
|
7913
|
+
let $W;
|
|
7914
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? ($W = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7915
7915
|
"data-slot": "select-separator"
|
|
7916
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7917
|
-
let
|
|
7918
|
-
r[19] !==
|
|
7916
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = $W) : $W = r[18];
|
|
7917
|
+
let eG = $W, tG;
|
|
7918
|
+
r[19] !== QW || r[20] !== G || r[21] !== eG || r[22] !== w || r[23] !== B || r[24] !== H ? (tG = () => {
|
|
7919
7919
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7920
7920
|
"data-slot": "select-list",
|
|
7921
7921
|
style: {
|
|
@@ -7927,8 +7927,8 @@ let __tla = Promise.all([
|
|
|
7927
7927
|
let r2 = G.visibleOptions[e3];
|
|
7928
7928
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7929
7929
|
children: [
|
|
7930
|
-
e3 === 0 &&
|
|
7931
|
-
|
|
7930
|
+
e3 === 0 && QW,
|
|
7931
|
+
eG(e3),
|
|
7932
7932
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7933
7933
|
option: r2,
|
|
7934
7934
|
checked: G.isChecked(r2.value),
|
|
@@ -7939,7 +7939,7 @@ let __tla = Promise.all([
|
|
|
7939
7939
|
}
|
|
7940
7940
|
});
|
|
7941
7941
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7942
|
-
let c2 =
|
|
7942
|
+
let c2 = eG(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7943
7943
|
option: e3,
|
|
7944
7944
|
checked: G.isChecked(e3.value),
|
|
7945
7945
|
renderOption: w
|
|
@@ -7953,13 +7953,13 @@ let __tla = Promise.all([
|
|
|
7953
7953
|
});
|
|
7954
7954
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7955
7955
|
children: [
|
|
7956
|
-
|
|
7956
|
+
QW,
|
|
7957
7957
|
e2
|
|
7958
7958
|
]
|
|
7959
7959
|
});
|
|
7960
|
-
}, r[19] =
|
|
7961
|
-
let
|
|
7962
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7960
|
+
}, r[19] = QW, r[20] = G, r[21] = eG, r[22] = w, r[23] = B, r[24] = H, r[25] = tG) : tG = r[25];
|
|
7961
|
+
let nG = tG, rG;
|
|
7962
|
+
r[26] !== G.labelOf || r[27] !== I ? (rG = (e2) => {
|
|
7963
7963
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7964
7964
|
e2
|
|
7965
7965
|
];
|
|
@@ -7970,46 +7970,46 @@ let __tla = Promise.all([
|
|
|
7970
7970
|
items: r2.map(G.labelOf),
|
|
7971
7971
|
max: 3
|
|
7972
7972
|
});
|
|
7973
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7974
|
-
let
|
|
7975
|
-
r[29] === G ?
|
|
7976
|
-
let
|
|
7977
|
-
r[31] !== b || r[32] !== R ? (
|
|
7973
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = rG) : rG = r[28];
|
|
7974
|
+
let iG = rG, aG = e["data-testid"], oG;
|
|
7975
|
+
r[29] === G ? oG = r[30] : (oG = (e2) => G.labelOf(e2), r[29] = G, r[30] = oG);
|
|
7976
|
+
let sG = M ? iG : void 0, cG;
|
|
7977
|
+
r[31] !== b || r[32] !== R ? (cG = cn({
|
|
7978
7978
|
"w-full": R
|
|
7979
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7980
|
-
let
|
|
7981
|
-
r[34] === z ?
|
|
7982
|
-
let
|
|
7983
|
-
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] !==
|
|
7979
|
+
}, b), r[31] = b, r[32] = R, r[33] = cG) : cG = r[33];
|
|
7980
|
+
let lG = G.searchQuery, uG = G.setSearchQuery, dG = G.open, fG = G.setOpen, pG;
|
|
7981
|
+
r[34] === z ? pG = r[35] : (pG = renderSlot(z), r[34] = z, r[35] = pG);
|
|
7982
|
+
let mG;
|
|
7983
|
+
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] !== aG || r[44] !== oG || r[45] !== sG || r[46] !== cG || r[47] !== pG ? (mG = {
|
|
7984
7984
|
"data-slot": "select-root",
|
|
7985
|
-
"data-testid":
|
|
7986
|
-
displayValue:
|
|
7987
|
-
renderValue:
|
|
7985
|
+
"data-testid": aG,
|
|
7986
|
+
displayValue: oG,
|
|
7987
|
+
renderValue: sG,
|
|
7988
7988
|
placeholder: I,
|
|
7989
|
-
className:
|
|
7989
|
+
className: cG,
|
|
7990
7990
|
shouldFilter: false,
|
|
7991
|
-
search:
|
|
7992
|
-
onSearchChange:
|
|
7993
|
-
open:
|
|
7994
|
-
onOpenChange:
|
|
7995
|
-
emptyState:
|
|
7991
|
+
search: lG,
|
|
7992
|
+
onSearchChange: uG,
|
|
7993
|
+
open: dG,
|
|
7994
|
+
onOpenChange: fG,
|
|
7995
|
+
emptyState: pG,
|
|
7996
7996
|
disabled: L,
|
|
7997
7997
|
id: S
|
|
7998
|
-
}, 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] =
|
|
7999
|
-
let
|
|
8000
|
-
return r[49] !==
|
|
8001
|
-
...
|
|
7998
|
+
}, 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] = aG, r[44] = oG, r[45] = sG, r[46] = cG, r[47] = pG, r[48] = mG) : mG = r[48];
|
|
7999
|
+
let hG = mG, gG;
|
|
8000
|
+
return r[49] !== hG || r[50] !== Z || r[51] !== d || r[52] !== nG || r[53] !== l ? (gG = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
8001
|
+
...hG,
|
|
8002
8002
|
multiple: true,
|
|
8003
8003
|
value: l,
|
|
8004
8004
|
onValueChange: Z,
|
|
8005
|
-
children:
|
|
8005
|
+
children: nG()
|
|
8006
8006
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
8007
|
-
...
|
|
8007
|
+
...hG,
|
|
8008
8008
|
multiple: false,
|
|
8009
8009
|
value: l,
|
|
8010
8010
|
onValueChange: Z,
|
|
8011
|
-
children:
|
|
8012
|
-
}), r[49] =
|
|
8011
|
+
children: nG()
|
|
8012
|
+
}), r[49] = hG, r[50] = Z, r[51] = d, r[52] = nG, r[53] = l, r[54] = gG) : gG = r[54], gG;
|
|
8013
8013
|
}
|
|
8014
8014
|
function _temp$27(e) {
|
|
8015
8015
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -10197,10 +10197,10 @@ let __tla = Promise.all([
|
|
|
10197
10197
|
}, H = () => {
|
|
10198
10198
|
for (let e2 of p.unMount) {
|
|
10199
10199
|
let r2 = get(l, e2);
|
|
10200
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
10200
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && cG(e2);
|
|
10201
10201
|
}
|
|
10202
10202
|
p.unMount = /* @__PURE__ */ new Set();
|
|
10203
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
10203
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(rG(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
10204
10204
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
10205
10205
|
[e2]: r2
|
|
10206
10206
|
} : r2
|
|
@@ -10217,13 +10217,13 @@ let __tla = Promise.all([
|
|
|
10217
10217
|
}
|
|
10218
10218
|
})));
|
|
10219
10219
|
}
|
|
10220
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
10221
|
-
},
|
|
10220
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && nG(e2);
|
|
10221
|
+
}, QW = (e2, r2, c2) => {
|
|
10222
10222
|
for (let u2 in r2) {
|
|
10223
10223
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
10224
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
10224
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? QW(f2, d2, c2) : Z(f2, d2, c2);
|
|
10225
10225
|
}
|
|
10226
|
-
},
|
|
10226
|
+
}, $W = (e2, r2, m2 = {}) => {
|
|
10227
10227
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
10228
10228
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
10229
10229
|
name: e2,
|
|
@@ -10234,7 +10234,7 @@ let __tla = Promise.all([
|
|
|
10234
10234
|
name: e2,
|
|
10235
10235
|
dirtyFields: getDirtyFields(u, d),
|
|
10236
10236
|
isDirty: W(e2, y2)
|
|
10237
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
10237
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? QW(e2, y2, m2) : Z(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
10238
10238
|
...c
|
|
10239
10239
|
}), _.values.next({
|
|
10240
10240
|
name: f.mount ? e2 : void 0,
|
|
@@ -10242,7 +10242,7 @@ let __tla = Promise.all([
|
|
|
10242
10242
|
...d
|
|
10243
10243
|
}
|
|
10244
10244
|
});
|
|
10245
|
-
},
|
|
10245
|
+
}, eG = async (e2) => {
|
|
10246
10246
|
f.mount = true;
|
|
10247
10247
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
10248
10248
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -10276,11 +10276,11 @@ let __tla = Promise.all([
|
|
|
10276
10276
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
10277
10277
|
h2
|
|
10278
10278
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
10279
|
-
S2 && (E2._f.deps &&
|
|
10279
|
+
S2 && (E2._f.deps && nG(E2._f.deps), L(h2, f2, u3, G2));
|
|
10280
10280
|
}
|
|
10281
|
-
},
|
|
10281
|
+
}, tG = (e2, r2) => {
|
|
10282
10282
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
10283
|
-
},
|
|
10283
|
+
}, nG = async (e2, u2 = {}) => {
|
|
10284
10284
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
10285
10285
|
if (r.resolver) {
|
|
10286
10286
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -10299,23 +10299,23 @@ let __tla = Promise.all([
|
|
|
10299
10299
|
isValid: d2
|
|
10300
10300
|
} : {},
|
|
10301
10301
|
errors: c.errors
|
|
10302
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
10303
|
-
},
|
|
10302
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, tG, e2 ? m2 : p.mount), f2;
|
|
10303
|
+
}, rG = (e2) => {
|
|
10304
10304
|
let r2 = {
|
|
10305
10305
|
...f.mount ? d : u
|
|
10306
10306
|
};
|
|
10307
10307
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
10308
|
-
},
|
|
10308
|
+
}, iG = (e2, r2) => ({
|
|
10309
10309
|
invalid: !!get((r2 || c).errors, e2),
|
|
10310
10310
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
10311
10311
|
error: get((r2 || c).errors, e2),
|
|
10312
10312
|
isValidating: !!get(c.validatingFields, e2),
|
|
10313
10313
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
10314
|
-
}),
|
|
10314
|
+
}), aG = (e2) => {
|
|
10315
10315
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
10316
10316
|
errors: e2 ? c.errors : {}
|
|
10317
10317
|
});
|
|
10318
|
-
},
|
|
10318
|
+
}, oG = (e2, r2, u2) => {
|
|
10319
10319
|
let d2 = (get(l, e2, {
|
|
10320
10320
|
_f: {}
|
|
10321
10321
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -10328,9 +10328,9 @@ let __tla = Promise.all([
|
|
|
10328
10328
|
errors: c.errors,
|
|
10329
10329
|
isValid: false
|
|
10330
10330
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
10331
|
-
},
|
|
10331
|
+
}, sG = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
10332
10332
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
10333
|
-
}) : G(e2, r2, true),
|
|
10333
|
+
}) : G(e2, r2, true), cG = (e2, f2 = {}) => {
|
|
10334
10334
|
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);
|
|
10335
10335
|
_.values.next({
|
|
10336
10336
|
values: {
|
|
@@ -10342,9 +10342,9 @@ let __tla = Promise.all([
|
|
|
10342
10342
|
isDirty: W()
|
|
10343
10343
|
} : {}
|
|
10344
10344
|
}), !f2.keepIsValid && w();
|
|
10345
|
-
},
|
|
10345
|
+
}, lG = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
10346
10346
|
(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));
|
|
10347
|
-
},
|
|
10347
|
+
}, uG = (e2, c2 = {}) => {
|
|
10348
10348
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
10349
10349
|
return set(l, e2, {
|
|
10350
10350
|
...d2 || {},
|
|
@@ -10358,7 +10358,7 @@ let __tla = Promise.all([
|
|
|
10358
10358
|
mount: true,
|
|
10359
10359
|
...c2
|
|
10360
10360
|
}
|
|
10361
|
-
}), p.mount.add(e2), d2 ?
|
|
10361
|
+
}), p.mount.add(e2), d2 ? lG({
|
|
10362
10362
|
field: d2,
|
|
10363
10363
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
10364
10364
|
name: e2
|
|
@@ -10375,11 +10375,11 @@ let __tla = Promise.all([
|
|
|
10375
10375
|
pattern: getRuleValue(c2.pattern)
|
|
10376
10376
|
} : {},
|
|
10377
10377
|
name: e2,
|
|
10378
|
-
onChange:
|
|
10379
|
-
onBlur:
|
|
10378
|
+
onChange: eG,
|
|
10379
|
+
onBlur: eG,
|
|
10380
10380
|
ref: (m3) => {
|
|
10381
10381
|
if (m3) {
|
|
10382
|
-
|
|
10382
|
+
uG(e2, c2), d2 = get(l, e2);
|
|
10383
10383
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
10384
10384
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
10385
10385
|
set(l, e2, {
|
|
@@ -10405,7 +10405,7 @@ let __tla = Promise.all([
|
|
|
10405
10405
|
} 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);
|
|
10406
10406
|
}
|
|
10407
10407
|
};
|
|
10408
|
-
},
|
|
10408
|
+
}, dG = () => r.shouldFocusError && iterateFieldsByAction(l, tG, p.mount), fG = (e2) => {
|
|
10409
10409
|
isBoolean(e2) && (_.state.next({
|
|
10410
10410
|
disabled: e2
|
|
10411
10411
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -10414,7 +10414,7 @@ let __tla = Promise.all([
|
|
|
10414
10414
|
r3.disabled = u2._f.disabled || e2;
|
|
10415
10415
|
}));
|
|
10416
10416
|
}, 0, false));
|
|
10417
|
-
},
|
|
10417
|
+
}, pG = (e2, u2) => async (f2) => {
|
|
10418
10418
|
let m2;
|
|
10419
10419
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
10420
10420
|
let h2 = cloneObject(d);
|
|
@@ -10436,7 +10436,7 @@ let __tla = Promise.all([
|
|
|
10436
10436
|
}
|
|
10437
10437
|
} else u2 && await u2({
|
|
10438
10438
|
...c.errors
|
|
10439
|
-
}, f2),
|
|
10439
|
+
}, f2), dG(), setTimeout(dG);
|
|
10440
10440
|
if (_.state.next({
|
|
10441
10441
|
isSubmitted: true,
|
|
10442
10442
|
isSubmitting: false,
|
|
@@ -10444,11 +10444,11 @@ let __tla = Promise.all([
|
|
|
10444
10444
|
submitCount: c.submitCount + 1,
|
|
10445
10445
|
errors: c.errors
|
|
10446
10446
|
}), m2) throw m2;
|
|
10447
|
-
},
|
|
10448
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
10447
|
+
}, mG = (e2, r2 = {}) => {
|
|
10448
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? $W(e2, cloneObject(get(u, e2))) : ($W(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({
|
|
10449
10449
|
...c
|
|
10450
10450
|
}));
|
|
10451
|
-
},
|
|
10451
|
+
}, hG = (e2, m2 = {}) => {
|
|
10452
10452
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10453
10453
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10454
10454
|
if (m2.keepDirtyValues) {
|
|
@@ -10456,7 +10456,7 @@ let __tla = Promise.all([
|
|
|
10456
10456
|
...p.mount,
|
|
10457
10457
|
...Object.keys(getDirtyFields(u, d))
|
|
10458
10458
|
]);
|
|
10459
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10459
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : $W(r2, get(b2, r2));
|
|
10460
10460
|
} else {
|
|
10461
10461
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10462
10462
|
let r2 = get(l, e3);
|
|
@@ -10501,25 +10501,25 @@ let __tla = Promise.all([
|
|
|
10501
10501
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10502
10502
|
isSubmitting: false
|
|
10503
10503
|
});
|
|
10504
|
-
},
|
|
10504
|
+
}, gG = (e2, r2) => hG(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10505
10505
|
return {
|
|
10506
10506
|
control: {
|
|
10507
|
-
register:
|
|
10508
|
-
unregister:
|
|
10509
|
-
getFieldState:
|
|
10510
|
-
handleSubmit:
|
|
10511
|
-
setError:
|
|
10507
|
+
register: uG,
|
|
10508
|
+
unregister: cG,
|
|
10509
|
+
getFieldState: iG,
|
|
10510
|
+
handleSubmit: pG,
|
|
10511
|
+
setError: oG,
|
|
10512
10512
|
_executeSchema: R,
|
|
10513
10513
|
_getWatch: G,
|
|
10514
10514
|
_getDirty: W,
|
|
10515
10515
|
_updateValid: w,
|
|
10516
10516
|
_removeUnmounted: H,
|
|
10517
10517
|
_updateFieldArray: E,
|
|
10518
|
-
_updateDisabledField:
|
|
10518
|
+
_updateDisabledField: lG,
|
|
10519
10519
|
_getFieldArray: q,
|
|
10520
|
-
_reset:
|
|
10520
|
+
_reset: hG,
|
|
10521
10521
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10522
|
-
|
|
10522
|
+
gG(e2, r.resetOptions), _.state.next({
|
|
10523
10523
|
isLoading: false
|
|
10524
10524
|
});
|
|
10525
10525
|
}),
|
|
@@ -10529,7 +10529,7 @@ let __tla = Promise.all([
|
|
|
10529
10529
|
...e2
|
|
10530
10530
|
};
|
|
10531
10531
|
},
|
|
10532
|
-
_disableForm:
|
|
10532
|
+
_disableForm: fG,
|
|
10533
10533
|
_subjects: _,
|
|
10534
10534
|
_proxyFormState: g,
|
|
10535
10535
|
_setErrors: j,
|
|
@@ -10570,17 +10570,17 @@ let __tla = Promise.all([
|
|
|
10570
10570
|
};
|
|
10571
10571
|
}
|
|
10572
10572
|
},
|
|
10573
|
-
trigger:
|
|
10574
|
-
register:
|
|
10575
|
-
handleSubmit:
|
|
10576
|
-
watch:
|
|
10577
|
-
setValue:
|
|
10578
|
-
getValues:
|
|
10579
|
-
reset:
|
|
10580
|
-
resetField:
|
|
10581
|
-
clearErrors:
|
|
10582
|
-
unregister:
|
|
10583
|
-
setError:
|
|
10573
|
+
trigger: nG,
|
|
10574
|
+
register: uG,
|
|
10575
|
+
handleSubmit: pG,
|
|
10576
|
+
watch: sG,
|
|
10577
|
+
setValue: $W,
|
|
10578
|
+
getValues: rG,
|
|
10579
|
+
reset: gG,
|
|
10580
|
+
resetField: mG,
|
|
10581
|
+
clearErrors: aG,
|
|
10582
|
+
unregister: cG,
|
|
10583
|
+
setError: oG,
|
|
10584
10584
|
setFocus: (e2, r2 = {}) => {
|
|
10585
10585
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10586
10586
|
if (u2) {
|
|
@@ -10588,7 +10588,7 @@ let __tla = Promise.all([
|
|
|
10588
10588
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10589
10589
|
}
|
|
10590
10590
|
},
|
|
10591
|
-
getFieldState:
|
|
10591
|
+
getFieldState: iG
|
|
10592
10592
|
};
|
|
10593
10593
|
}
|
|
10594
10594
|
function useForm(e = {}) {
|
|
@@ -16313,21 +16313,21 @@ ${c}
|
|
|
16313
16313
|
_.pageSize,
|
|
16314
16314
|
_.pageIndex
|
|
16315
16315
|
], r[35] = w, r[36] = _.pageIndex, r[37] = _.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = u, r[44] = y, r[45] = p, r[46] = B, r[47] = H) : H = r[47];
|
|
16316
|
-
let { data: W, error: G, isPending: q, isFetching: Z } = useAsyncData(z, H),
|
|
16317
|
-
r[48] !==
|
|
16318
|
-
let
|
|
16319
|
-
r[51] !==
|
|
16320
|
-
|
|
16321
|
-
$W,
|
|
16316
|
+
let { data: W, error: G, isPending: q, isFetching: Z } = useAsyncData(z, H), QW = useAtomValue(downloadSizeLimitAtom), $W;
|
|
16317
|
+
r[48] !== QW || r[49] !== e ? ($W = async () => !QW || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = QW, r[49] = e, r[50] = $W) : $W = r[50];
|
|
16318
|
+
let eG = e.showDownload, tG = e.get_size_bytes, nG = e.lazy, rG = e.totalRows, iG = useDeepCompareMemoize(w), aG = useDeepCompareMemoize(p), oG;
|
|
16319
|
+
r[51] !== QW || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== iG || r[58] !== aG ? (oG = [
|
|
16320
|
+
QW,
|
|
16322
16321
|
eG,
|
|
16323
16322
|
tG,
|
|
16324
16323
|
nG,
|
|
16325
|
-
y,
|
|
16326
16324
|
rG,
|
|
16327
|
-
|
|
16328
|
-
|
|
16329
|
-
|
|
16330
|
-
r[
|
|
16325
|
+
y,
|
|
16326
|
+
iG,
|
|
16327
|
+
aG
|
|
16328
|
+
], r[51] = QW, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = iG, r[58] = aG, r[59] = oG) : oG = r[59];
|
|
16329
|
+
let { data: sG, isPending: cG } = useAsyncData($W, oG), lG = sG ?? null, uG = !!QW && e.showDownload && cG, dG;
|
|
16330
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== p ? (dG = async (e2) => ({
|
|
16331
16331
|
rows: await loadTableData((await u({
|
|
16332
16332
|
page_number: e2,
|
|
16333
16333
|
page_size: 1,
|
|
@@ -16336,17 +16336,17 @@ ${c}
|
|
|
16336
16336
|
filters: filtersToFilterGroup(w),
|
|
16337
16337
|
max_columns: null
|
|
16338
16338
|
})).data)
|
|
16339
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] =
|
|
16340
|
-
let
|
|
16341
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16339
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = p, r[64] = dG) : dG = r[64];
|
|
16340
|
+
let fG = dG, pG;
|
|
16341
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pG = () => {
|
|
16342
16342
|
v(_temp4$4);
|
|
16343
|
-
}, r[65] =
|
|
16344
|
-
let
|
|
16345
|
-
r[66] ===
|
|
16346
|
-
|
|
16347
|
-
], r[66] =
|
|
16348
|
-
let
|
|
16349
|
-
r[68] === e ?
|
|
16343
|
+
}, r[65] = pG) : pG = r[65];
|
|
16344
|
+
let mG = W == null ? void 0 : W.totalRows, hG;
|
|
16345
|
+
r[66] === mG ? hG = r[67] : (hG = [
|
|
16346
|
+
mG
|
|
16347
|
+
], r[66] = mG, r[67] = hG), (0, import_react.useEffect)(pG, hG);
|
|
16348
|
+
let gG;
|
|
16349
|
+
r[68] === e ? gG = r[69] : (gG = async () => {
|
|
16350
16350
|
let r2 = isStaticNotebook();
|
|
16351
16351
|
return e.totalRows === 0 || !e.showColumnSummaries || r2 ? {
|
|
16352
16352
|
data: null,
|
|
@@ -16355,22 +16355,22 @@ ${c}
|
|
|
16355
16355
|
value_counts: {},
|
|
16356
16356
|
show_charts: false
|
|
16357
16357
|
} : e.get_column_summaries({});
|
|
16358
|
-
}, r[68] = e, r[69] =
|
|
16359
|
-
let
|
|
16360
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
16358
|
+
}, r[68] = e, r[69] = gG);
|
|
16359
|
+
let _G;
|
|
16360
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (_G = [
|
|
16361
16361
|
e.get_column_summaries,
|
|
16362
16362
|
e.showColumnSummaries,
|
|
16363
16363
|
w,
|
|
16364
16364
|
y,
|
|
16365
16365
|
e.totalRows,
|
|
16366
16366
|
e.data
|
|
16367
|
-
], 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] =
|
|
16368
|
-
let { data:
|
|
16369
|
-
if (r[77] ===
|
|
16370
|
-
|
|
16371
|
-
},
|
|
16372
|
-
|
|
16373
|
-
], r[77] =
|
|
16367
|
+
], 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] = _G) : _G = r[76];
|
|
16368
|
+
let { data: vG, error: yG } = useAsyncData(gG, _G), bG, xG;
|
|
16369
|
+
if (r[77] === yG ? (bG = r[78], xG = r[79]) : (bG = () => {
|
|
16370
|
+
yG && Logger.error(yG);
|
|
16371
|
+
}, xG = [
|
|
16372
|
+
yG
|
|
16373
|
+
], r[77] = yG, r[78] = bG, r[79] = xG), (0, import_react.useEffect)(bG, xG), q) {
|
|
16374
16374
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
16375
16375
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
16376
16376
|
milliseconds: 200,
|
|
@@ -16379,7 +16379,7 @@ ${c}
|
|
|
16379
16379
|
})
|
|
16380
16380
|
}), r[80] = c2, r[81] = l2), l2;
|
|
16381
16381
|
}
|
|
16382
|
-
let
|
|
16382
|
+
let SG = null;
|
|
16383
16383
|
if (G) {
|
|
16384
16384
|
Logger.error(G);
|
|
16385
16385
|
let e2;
|
|
@@ -16395,62 +16395,62 @@ ${c}
|
|
|
16395
16395
|
children: G.message || "An unknown error occurred"
|
|
16396
16396
|
})
|
|
16397
16397
|
]
|
|
16398
|
-
}), r[82] = G, r[83] = e2),
|
|
16398
|
+
}), r[82] = G, r[83] = e2), SG = e2;
|
|
16399
16399
|
}
|
|
16400
|
-
let
|
|
16401
|
-
r[84] === O ?
|
|
16400
|
+
let CG;
|
|
16401
|
+
r[84] === O ? CG = r[85] : (CG = () => {
|
|
16402
16402
|
j(!O);
|
|
16403
|
-
}, r[84] = O, r[85] =
|
|
16404
|
-
let
|
|
16405
|
-
r[86] !== l || r[87] !==
|
|
16403
|
+
}, r[84] = O, r[85] = CG);
|
|
16404
|
+
let wG = CG, TG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, EG = W == null ? void 0 : W.rawRows, DG = Z && !q, OG = (W == null ? void 0 : W.totalRows) ?? e.totalRows, kG = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, AG = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, jG;
|
|
16405
|
+
r[86] !== l || r[87] !== vG || r[88] !== O || r[89] !== w || r[90] !== fG || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== lG || r[95] !== uG || r[96] !== p || r[97] !== TG || r[98] !== EG || r[99] !== DG || r[100] !== OG || r[101] !== kG || r[102] !== AG || r[103] !== wG ? (jG = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
16406
16406
|
...e,
|
|
16407
|
-
data:
|
|
16408
|
-
rawData:
|
|
16409
|
-
columnSummaries:
|
|
16407
|
+
data: TG,
|
|
16408
|
+
rawData: EG,
|
|
16409
|
+
columnSummaries: vG,
|
|
16410
16410
|
sorting: p,
|
|
16411
16411
|
setSorting: h,
|
|
16412
16412
|
searchQuery: y,
|
|
16413
16413
|
setSearchQuery: b,
|
|
16414
16414
|
filters: w,
|
|
16415
16415
|
setFilters: T,
|
|
16416
|
-
reloading:
|
|
16417
|
-
totalRows:
|
|
16418
|
-
sizeBytes:
|
|
16419
|
-
sizeBytesIsLoading:
|
|
16416
|
+
reloading: DG,
|
|
16417
|
+
totalRows: OG,
|
|
16418
|
+
sizeBytes: lG,
|
|
16419
|
+
sizeBytesIsLoading: uG,
|
|
16420
16420
|
paginationState: _,
|
|
16421
16421
|
setPaginationState: v,
|
|
16422
|
-
cellStyles:
|
|
16423
|
-
cellHoverTexts:
|
|
16424
|
-
toggleDisplayHeader:
|
|
16422
|
+
cellStyles: kG,
|
|
16423
|
+
cellHoverTexts: AG,
|
|
16424
|
+
toggleDisplayHeader: wG,
|
|
16425
16425
|
isChartBuilderOpen: O,
|
|
16426
|
-
getRow:
|
|
16426
|
+
getRow: fG,
|
|
16427
16427
|
cellId: l,
|
|
16428
16428
|
maxHeight: e.maxHeight
|
|
16429
|
-
}), r[86] = l, r[87] =
|
|
16430
|
-
let
|
|
16431
|
-
r[105] !== l || r[106] !==
|
|
16429
|
+
}), r[86] = l, r[87] = vG, r[88] = O, r[89] = w, r[90] = fG, r[91] = _, r[92] = e, r[93] = y, r[94] = lG, r[95] = uG, r[96] = p, r[97] = TG, r[98] = EG, r[99] = DG, r[100] = OG, r[101] = kG, r[102] = AG, r[103] = wG, r[104] = jG) : jG = r[104];
|
|
16430
|
+
let MG = jG, NG;
|
|
16431
|
+
r[105] !== l || r[106] !== MG || 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 ? (NG = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
16432
16432
|
displayHeader: O,
|
|
16433
16433
|
onCloseChartBuilder: () => j(false),
|
|
16434
16434
|
data: (W == null ? void 0 : W.rows) || [],
|
|
16435
16435
|
columns: e.totalColumns,
|
|
16436
16436
|
totalRows: e.totalRows,
|
|
16437
|
-
dataTable:
|
|
16437
|
+
dataTable: MG,
|
|
16438
16438
|
getDataUrl: e.get_data_url,
|
|
16439
16439
|
fieldTypes: e.fieldTypes,
|
|
16440
16440
|
rowHeaders: e.rowHeaders,
|
|
16441
16441
|
cellId: l
|
|
16442
|
-
}) :
|
|
16443
|
-
let
|
|
16444
|
-
return r[116] !==
|
|
16442
|
+
}) : MG, r[105] = l, r[106] = MG, 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] = NG) : NG = r[115];
|
|
16443
|
+
let PG;
|
|
16444
|
+
return r[116] !== SG || r[117] !== NG ? (PG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16445
16445
|
children: [
|
|
16446
|
-
|
|
16447
|
-
|
|
16446
|
+
SG,
|
|
16447
|
+
NG
|
|
16448
16448
|
]
|
|
16449
|
-
}), r[116] =
|
|
16449
|
+
}), r[116] = SG, r[117] = NG, r[118] = PG) : PG = r[118], PG;
|
|
16450
16450
|
});
|
|
16451
16451
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
16452
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: Z, setFilters:
|
|
16453
|
-
let
|
|
16452
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: Z, setFilters: QW, reloading: $W, freezeColumnsLeft: eG, freezeColumnsRight: tG, hiddenColumns: nG, textJustifyColumns: rG, wrappedColumns: iG, columnWidths: aG, headerTooltip: oG, totalColumns: sG, get_row_ids: cG, cellStyles: lG, hoverTemplate: uG, cellHoverTexts: dG, toggleDisplayHeader: fG, isChartBuilderOpen: pG, calculate_top_k_rows: mG, preview_column: hG, getRow: gG, cellId: _G, maxHeight: vG }) => {
|
|
16453
|
+
let yG = (0, import_react.useId)(), { locale: bG } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [xG, SG] = (0, import_react.useState)(0), { isPanelOpen: CG, isAnyPanelOpen: wG, togglePanel: TG, panelType: EG, setPanelType: DG } = usePanelOwnership(yG, _G), OG = isStaticNotebook(), kG = (0, import_react.useMemo)(() => {
|
|
16454
16454
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16455
16455
|
let e2 = toFieldTypes(O);
|
|
16456
16456
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -16459,13 +16459,13 @@ ${c}
|
|
|
16459
16459
|
}, [
|
|
16460
16460
|
O,
|
|
16461
16461
|
L
|
|
16462
|
-
]),
|
|
16462
|
+
]), AG = useDeepCompareMemoize(O ?? inferFieldTypes(r)), jG = (0, import_react.useMemo)(() => p === "all" ? AG : AG.slice(0, p), [
|
|
16463
16463
|
p,
|
|
16464
|
-
|
|
16465
|
-
]),
|
|
16464
|
+
AG
|
|
16465
|
+
]), MG = (0, import_react.useMemo)(() => {
|
|
16466
16466
|
let e2 = {};
|
|
16467
16467
|
if (r && r.length > 0) {
|
|
16468
|
-
for (let [c2, l2] of
|
|
16468
|
+
for (let [c2, l2] of jG) if (l2[0] === "number") {
|
|
16469
16469
|
let l3 = 0;
|
|
16470
16470
|
for (let e3 of r) {
|
|
16471
16471
|
let r2 = e3[c2];
|
|
@@ -16480,95 +16480,95 @@ ${c}
|
|
|
16480
16480
|
return e2;
|
|
16481
16481
|
}, [
|
|
16482
16482
|
r,
|
|
16483
|
-
|
|
16484
|
-
]),
|
|
16485
|
-
O || (T = false),
|
|
16486
|
-
let
|
|
16487
|
-
rowHeaders:
|
|
16483
|
+
jG
|
|
16484
|
+
]), NG = useDeepCompareMemoize(E), PG = useDeepCompareMemoize(rG), FG = useDeepCompareMemoize(iG), IG = useDeepCompareMemoize(aG), LG = useDeepCompareMemoize(kG), RG = useDeepCompareMemoize(MG), zG = jG.length;
|
|
16485
|
+
O || (T = false), OG && (h = null);
|
|
16486
|
+
let BG = (0, import_react.useMemo)(() => generateColumns({
|
|
16487
|
+
rowHeaders: NG,
|
|
16488
16488
|
selection: h,
|
|
16489
|
-
chartSpecModel:
|
|
16490
|
-
fieldTypes:
|
|
16491
|
-
textJustifyColumns:
|
|
16492
|
-
wrappedColumns:
|
|
16493
|
-
columnWidths:
|
|
16494
|
-
headerTooltip:
|
|
16489
|
+
chartSpecModel: LG,
|
|
16490
|
+
fieldTypes: jG,
|
|
16491
|
+
textJustifyColumns: PG,
|
|
16492
|
+
wrappedColumns: FG,
|
|
16493
|
+
columnWidths: IG,
|
|
16494
|
+
headerTooltip: oG,
|
|
16495
16495
|
showDataTypes: T,
|
|
16496
|
-
calculateTopKRows:
|
|
16497
|
-
fractionDigitsByColumn:
|
|
16496
|
+
calculateTopKRows: mG,
|
|
16497
|
+
fractionDigitsByColumn: RG
|
|
16498
16498
|
}), [
|
|
16499
16499
|
h,
|
|
16500
16500
|
T,
|
|
16501
|
-
|
|
16502
|
-
MG,
|
|
16503
|
-
AG,
|
|
16501
|
+
LG,
|
|
16504
16502
|
NG,
|
|
16503
|
+
jG,
|
|
16505
16504
|
PG,
|
|
16506
16505
|
FG,
|
|
16507
|
-
|
|
16508
|
-
|
|
16509
|
-
|
|
16510
|
-
|
|
16506
|
+
IG,
|
|
16507
|
+
oG,
|
|
16508
|
+
mG,
|
|
16509
|
+
RG
|
|
16510
|
+
]), VG = (0, import_react.useMemo)(() => Object.fromEntries((g || []).map((e2) => [
|
|
16511
16511
|
e2,
|
|
16512
16512
|
true
|
|
16513
16513
|
])), [
|
|
16514
16514
|
g
|
|
16515
|
-
]),
|
|
16515
|
+
]), HG = useEvent_default((e2) => {
|
|
16516
16516
|
if (h === "single") {
|
|
16517
16517
|
let r2 = Functions.asUpdater(e2)({});
|
|
16518
16518
|
z(Object.keys(r2).slice(0, 1));
|
|
16519
16519
|
}
|
|
16520
16520
|
if (h === "multi") {
|
|
16521
|
-
let r2 = Functions.asUpdater(e2)(
|
|
16521
|
+
let r2 = Functions.asUpdater(e2)(VG);
|
|
16522
16522
|
z(Object.keys(r2));
|
|
16523
16523
|
}
|
|
16524
|
-
}),
|
|
16525
|
-
if (
|
|
16524
|
+
}), UG = useEvent_default((e2) => {
|
|
16525
|
+
if (SG(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
16526
16526
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
16527
16527
|
r2 !== null && M((e3) => ({
|
|
16528
16528
|
...e3,
|
|
16529
16529
|
pageIndex: r2
|
|
16530
16530
|
}));
|
|
16531
|
-
}),
|
|
16532
|
-
h === "single-cell" && z(Functions.asUpdater(e2)(
|
|
16533
|
-
}),
|
|
16534
|
-
if (!(!
|
|
16531
|
+
}), WG = g.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), GG = useEvent_default((e2) => {
|
|
16532
|
+
h === "single-cell" && z(Functions.asUpdater(e2)(WG).slice(0, 1)), h === "multi-cell" && z(Functions.asUpdater(e2)(WG));
|
|
16533
|
+
}), KG = h === "multi" || h === "single", qG = b && !!hG, JG = isInVscodeExtension(), YG = isIslands(), XG = (0, import_react.useMemo)(() => {
|
|
16534
|
+
if (!(!wG || !(S || qG))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
16535
16535
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
16536
|
-
rowIdx:
|
|
16537
|
-
setRowIdx:
|
|
16536
|
+
rowIdx: xG,
|
|
16537
|
+
setRowIdx: UG,
|
|
16538
16538
|
totalRows: l,
|
|
16539
|
-
fieldTypes:
|
|
16540
|
-
getRow:
|
|
16541
|
-
isSelectable:
|
|
16542
|
-
isRowSelected: !!
|
|
16543
|
-
handleRowSelectionChange:
|
|
16544
|
-
previewColumn:
|
|
16545
|
-
totalColumns:
|
|
16546
|
-
tableId:
|
|
16539
|
+
fieldTypes: AG,
|
|
16540
|
+
getRow: gG,
|
|
16541
|
+
isSelectable: KG,
|
|
16542
|
+
isRowSelected: !!VG[xG],
|
|
16543
|
+
handleRowSelectionChange: HG,
|
|
16544
|
+
previewColumn: hG,
|
|
16545
|
+
totalColumns: sG,
|
|
16546
|
+
tableId: yG,
|
|
16547
16547
|
table: e2,
|
|
16548
|
-
showRowExplorer: S && !
|
|
16549
|
-
showColumnExplorer:
|
|
16550
|
-
activeTab:
|
|
16551
|
-
onTabChange:
|
|
16548
|
+
showRowExplorer: S && !JG,
|
|
16549
|
+
showColumnExplorer: qG && !JG,
|
|
16550
|
+
activeTab: EG,
|
|
16551
|
+
onTabChange: DG
|
|
16552
16552
|
})
|
|
16553
16553
|
});
|
|
16554
16554
|
}, [
|
|
16555
|
-
|
|
16555
|
+
wG,
|
|
16556
16556
|
S,
|
|
16557
|
+
qG,
|
|
16558
|
+
xG,
|
|
16559
|
+
UG,
|
|
16560
|
+
l,
|
|
16561
|
+
AG,
|
|
16562
|
+
gG,
|
|
16557
16563
|
KG,
|
|
16558
|
-
|
|
16564
|
+
VG,
|
|
16559
16565
|
HG,
|
|
16560
|
-
l,
|
|
16561
|
-
kG,
|
|
16562
16566
|
hG,
|
|
16563
|
-
|
|
16564
|
-
|
|
16565
|
-
|
|
16566
|
-
|
|
16567
|
-
|
|
16568
|
-
vG,
|
|
16569
|
-
qG,
|
|
16570
|
-
TG,
|
|
16571
|
-
EG
|
|
16567
|
+
sG,
|
|
16568
|
+
yG,
|
|
16569
|
+
JG,
|
|
16570
|
+
EG,
|
|
16571
|
+
DG
|
|
16572
16572
|
]);
|
|
16573
16573
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16574
16574
|
children: [
|
|
@@ -16580,27 +16580,27 @@ ${c}
|
|
|
16580
16580
|
" rows."
|
|
16581
16581
|
]
|
|
16582
16582
|
}),
|
|
16583
|
-
|
|
16583
|
+
zG < sG && zG > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16584
16584
|
className: "mb-1 rounded",
|
|
16585
16585
|
children: [
|
|
16586
16586
|
"Result clipped. Showing ",
|
|
16587
|
-
|
|
16587
|
+
zG,
|
|
16588
16588
|
" of ",
|
|
16589
|
-
|
|
16589
|
+
sG,
|
|
16590
16590
|
" columns."
|
|
16591
16591
|
]
|
|
16592
16592
|
}),
|
|
16593
|
-
|
|
16593
|
+
OG && typeof l == "number" && r.length < l && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
16594
16594
|
className: "mb-1 rounded",
|
|
16595
16595
|
children: [
|
|
16596
16596
|
"Showing the first ",
|
|
16597
16597
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16598
|
-
children: prettyNumber(r.length,
|
|
16598
|
+
children: prettyNumber(r.length, bG)
|
|
16599
16599
|
}),
|
|
16600
16600
|
" ",
|
|
16601
16601
|
"of ",
|
|
16602
16602
|
(0, import_jsx_runtime.jsx)("strong", {
|
|
16603
|
-
children: prettyNumber(l,
|
|
16603
|
+
children: prettyNumber(l, bG)
|
|
16604
16604
|
}),
|
|
16605
16605
|
" rows. Increase the table's ",
|
|
16606
16606
|
(0, import_jsx_runtime.jsx)("code", {
|
|
@@ -16614,7 +16614,7 @@ ${c}
|
|
|
16614
16614
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
16615
16615
|
}),
|
|
16616
16616
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
16617
|
-
value:
|
|
16617
|
+
value: kG,
|
|
16618
16618
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
16619
16619
|
label: e,
|
|
16620
16620
|
align: "top",
|
|
@@ -16622,14 +16622,14 @@ ${c}
|
|
|
16622
16622
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
16623
16623
|
data: r,
|
|
16624
16624
|
rawData: c,
|
|
16625
|
-
columns:
|
|
16625
|
+
columns: BG,
|
|
16626
16626
|
className: R,
|
|
16627
|
-
maxHeight:
|
|
16627
|
+
maxHeight: vG,
|
|
16628
16628
|
sorting: B,
|
|
16629
16629
|
totalRows: l,
|
|
16630
16630
|
sizeBytes: u,
|
|
16631
16631
|
sizeBytesIsLoading: f,
|
|
16632
|
-
totalColumns:
|
|
16632
|
+
totalColumns: sG,
|
|
16633
16633
|
manualSorting: true,
|
|
16634
16634
|
setSorting: H,
|
|
16635
16635
|
pagination: m,
|
|
@@ -16637,37 +16637,37 @@ ${c}
|
|
|
16637
16637
|
selection: h,
|
|
16638
16638
|
paginationState: j,
|
|
16639
16639
|
setPaginationState: M,
|
|
16640
|
-
rowSelection:
|
|
16641
|
-
cellSelection:
|
|
16642
|
-
cellStyling:
|
|
16643
|
-
hoverTemplate:
|
|
16644
|
-
cellHoverTexts:
|
|
16640
|
+
rowSelection: VG,
|
|
16641
|
+
cellSelection: WG,
|
|
16642
|
+
cellStyling: lG,
|
|
16643
|
+
hoverTemplate: uG,
|
|
16644
|
+
cellHoverTexts: dG,
|
|
16645
16645
|
downloadAs: v ? I : void 0,
|
|
16646
16646
|
showSearch: W,
|
|
16647
16647
|
searchQuery: G,
|
|
16648
16648
|
onSearchQueryChange: q,
|
|
16649
16649
|
showFilters: _,
|
|
16650
16650
|
filters: Z,
|
|
16651
|
-
onFiltersChange:
|
|
16652
|
-
calculateTopKRows:
|
|
16653
|
-
reloading:
|
|
16654
|
-
onRowSelectionChange:
|
|
16655
|
-
freezeColumnsLeft:
|
|
16656
|
-
freezeColumnsRight:
|
|
16657
|
-
hiddenColumns:
|
|
16658
|
-
onCellSelectionChange:
|
|
16659
|
-
getRowIds:
|
|
16660
|
-
toggleDisplayHeader:
|
|
16661
|
-
showChartBuilder: w && !
|
|
16662
|
-
isChartBuilderOpen:
|
|
16651
|
+
onFiltersChange: QW,
|
|
16652
|
+
calculateTopKRows: mG,
|
|
16653
|
+
reloading: $W,
|
|
16654
|
+
onRowSelectionChange: HG,
|
|
16655
|
+
freezeColumnsLeft: eG,
|
|
16656
|
+
freezeColumnsRight: tG,
|
|
16657
|
+
hiddenColumns: nG,
|
|
16658
|
+
onCellSelectionChange: GG,
|
|
16659
|
+
getRowIds: cG,
|
|
16660
|
+
toggleDisplayHeader: fG,
|
|
16661
|
+
showChartBuilder: w && !YG,
|
|
16662
|
+
isChartBuilderOpen: pG,
|
|
16663
16663
|
showPageSizeSelector: y,
|
|
16664
|
-
showTableExplorer: (S ||
|
|
16665
|
-
togglePanel:
|
|
16666
|
-
isPanelOpen:
|
|
16667
|
-
isAnyPanelOpen:
|
|
16668
|
-
viewedRowIdx:
|
|
16669
|
-
onViewedRowChange: (e2) =>
|
|
16670
|
-
renderTableExplorerPanel:
|
|
16664
|
+
showTableExplorer: (S || qG) && !JG && !YG,
|
|
16665
|
+
togglePanel: TG,
|
|
16666
|
+
isPanelOpen: CG,
|
|
16667
|
+
isAnyPanelOpen: wG,
|
|
16668
|
+
viewedRowIdx: xG,
|
|
16669
|
+
onViewedRowChange: (e2) => SG(e2),
|
|
16670
|
+
renderTableExplorerPanel: XG
|
|
16671
16671
|
})
|
|
16672
16672
|
})
|
|
16673
16673
|
})
|
|
@@ -18719,29 +18719,29 @@ ${c}
|
|
|
18719
18719
|
], r[2] = w, r[3] = T);
|
|
18720
18720
|
let { data: E, error: O, isPending: j } = useAsyncData(S, T), M;
|
|
18721
18721
|
r[4] === E ? M = r[5] : (M = E || {}, r[4] = E, r[5] = M);
|
|
18722
|
-
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, Z] = (0, import_react.useState)(p || EMPTY),
|
|
18723
|
-
r[6] === f ?
|
|
18722
|
+
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, Z] = (0, import_react.useState)(p || EMPTY), QW = (0, import_react.useRef)(null), $W;
|
|
18723
|
+
r[6] === f ? $W = r[7] : ($W = (e2) => {
|
|
18724
18724
|
var _a5;
|
|
18725
|
-
f && e2 !== "transform" && ((_a5 =
|
|
18726
|
-
}, r[6] = f, r[7] =
|
|
18727
|
-
let
|
|
18728
|
-
r[8] === q ?
|
|
18729
|
-
|
|
18730
|
-
}, r[8] = q, r[9] =
|
|
18731
|
-
let
|
|
18732
|
-
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (
|
|
18733
|
-
let e2 =
|
|
18725
|
+
f && e2 !== "transform" && ((_a5 = QW.current) == null ? void 0 : _a5.submit());
|
|
18726
|
+
}, r[6] = f, r[7] = $W);
|
|
18727
|
+
let eG = $W, tG = (0, import_react.useRef)(q), nG;
|
|
18728
|
+
r[8] === q ? nG = r[9] : (nG = () => {
|
|
18729
|
+
tG.current = q;
|
|
18730
|
+
}, r[8] = q, r[9] = nG), (0, import_react.useEffect)(nG);
|
|
18731
|
+
let rG;
|
|
18732
|
+
r[10] !== m || r[11] !== (p == null ? void 0 : p.transforms.length) ? (rG = () => {
|
|
18733
|
+
let e2 = tG.current;
|
|
18734
18734
|
(p == null ? void 0 : p.transforms.length) !== e2.transforms.length && m(e2);
|
|
18735
|
-
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] =
|
|
18736
|
-
let
|
|
18737
|
-
r[13] !== E || r[14] !== m || r[15] !==
|
|
18735
|
+
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] = rG) : rG = r[12];
|
|
18736
|
+
let iG = p == null ? void 0 : p.transforms.length, oG;
|
|
18737
|
+
r[13] !== E || r[14] !== m || r[15] !== iG ? (oG = [
|
|
18738
18738
|
E,
|
|
18739
|
-
|
|
18740
|
-
|
|
18739
|
+
iG,
|
|
18740
|
+
tG,
|
|
18741
18741
|
m
|
|
18742
|
-
], r[13] = E, r[14] = m, r[15] =
|
|
18743
|
-
let
|
|
18744
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18742
|
+
], r[13] = E, r[14] = m, r[15] = iG, r[16] = oG) : oG = r[16], (0, import_react.useEffect)(rG, oG);
|
|
18743
|
+
let sG;
|
|
18744
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (sG = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18745
18745
|
value: "transform",
|
|
18746
18746
|
className: "text-xs py-1",
|
|
18747
18747
|
children: [
|
|
@@ -18750,9 +18750,9 @@ ${c}
|
|
|
18750
18750
|
}),
|
|
18751
18751
|
"Transform"
|
|
18752
18752
|
]
|
|
18753
|
-
}), r[17] =
|
|
18754
|
-
let
|
|
18755
|
-
r[18] === H ?
|
|
18753
|
+
}), r[17] = sG) : sG = r[17];
|
|
18754
|
+
let cG;
|
|
18755
|
+
r[18] === H ? cG = r[19] : (cG = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18756
18756
|
value: "python-code",
|
|
18757
18757
|
className: "text-xs py-1",
|
|
18758
18758
|
children: [
|
|
@@ -18761,9 +18761,9 @@ ${c}
|
|
|
18761
18761
|
}),
|
|
18762
18762
|
"Python Code"
|
|
18763
18763
|
]
|
|
18764
|
-
}), r[18] = H, r[19] =
|
|
18765
|
-
let
|
|
18766
|
-
r[20] === W ?
|
|
18764
|
+
}), r[18] = H, r[19] = cG);
|
|
18765
|
+
let lG;
|
|
18766
|
+
r[20] === W ? lG = r[21] : (lG = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18767
18767
|
value: "sql-code",
|
|
18768
18768
|
className: "text-xs py-1",
|
|
18769
18769
|
children: [
|
|
@@ -18772,54 +18772,54 @@ ${c}
|
|
|
18772
18772
|
}),
|
|
18773
18773
|
"SQL Code"
|
|
18774
18774
|
]
|
|
18775
|
-
}), r[20] = W, r[21] =
|
|
18776
|
-
let lG;
|
|
18777
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lG = (0, import_jsx_runtime.jsx)("div", {
|
|
18778
|
-
className: "grow"
|
|
18779
|
-
}), r[22] = lG) : lG = r[22];
|
|
18775
|
+
}), r[20] = W, r[21] = lG);
|
|
18780
18776
|
let uG;
|
|
18781
|
-
r[
|
|
18777
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uG = (0, import_jsx_runtime.jsx)("div", {
|
|
18778
|
+
className: "grow"
|
|
18779
|
+
}), r[22] = uG) : uG = r[22];
|
|
18780
|
+
let dG;
|
|
18781
|
+
r[23] !== cG || r[24] !== lG ? (dG = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
18782
18782
|
className: "h-8",
|
|
18783
18783
|
children: [
|
|
18784
|
-
oG,
|
|
18785
18784
|
sG,
|
|
18786
18785
|
cG,
|
|
18787
|
-
lG
|
|
18786
|
+
lG,
|
|
18787
|
+
uG
|
|
18788
18788
|
]
|
|
18789
|
-
}), r[23] =
|
|
18790
|
-
let dG;
|
|
18791
|
-
r[26] === j ? dG = r[27] : (dG = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18792
|
-
size: "small"
|
|
18793
|
-
}), r[26] = j, r[27] = dG);
|
|
18789
|
+
}), r[23] = cG, r[24] = lG, r[25] = dG) : dG = r[25];
|
|
18794
18790
|
let fG;
|
|
18795
|
-
r[
|
|
18791
|
+
r[26] === j ? fG = r[27] : (fG = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18792
|
+
size: "small"
|
|
18793
|
+
}), r[26] = j, r[27] = fG);
|
|
18794
|
+
let pG;
|
|
18795
|
+
r[28] !== dG || r[29] !== fG ? (pG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18796
18796
|
className: "flex items-center gap-2",
|
|
18797
18797
|
children: [
|
|
18798
|
-
|
|
18799
|
-
|
|
18798
|
+
dG,
|
|
18799
|
+
fG
|
|
18800
18800
|
]
|
|
18801
|
-
}), r[28] =
|
|
18802
|
-
let pG;
|
|
18803
|
-
r[31] !== m || r[32] !== p ? (pG = (e2) => {
|
|
18804
|
-
dequal(e2, p) || (m(e2), Z(e2));
|
|
18805
|
-
}, r[31] = m, r[32] = p, r[33] = pG) : pG = r[33];
|
|
18801
|
+
}), r[28] = dG, r[29] = fG, r[30] = pG) : pG = r[30];
|
|
18806
18802
|
let mG;
|
|
18807
|
-
r[
|
|
18803
|
+
r[31] !== m || r[32] !== p ? (mG = (e2) => {
|
|
18804
|
+
dequal(e2, p) || (m(e2), Z(e2));
|
|
18805
|
+
}, r[31] = m, r[32] = p, r[33] = mG) : mG = r[33];
|
|
18806
|
+
let hG;
|
|
18807
|
+
r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !== mG ? (hG = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18808
18808
|
value: "transform",
|
|
18809
18809
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18810
18810
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18811
|
-
ref:
|
|
18811
|
+
ref: QW,
|
|
18812
18812
|
initialValue: q,
|
|
18813
18813
|
columns: c,
|
|
18814
|
-
onChange:
|
|
18814
|
+
onChange: mG,
|
|
18815
18815
|
onInvalidChange: Z,
|
|
18816
18816
|
getColumnValues: g,
|
|
18817
18817
|
columnTypesPerStep: B,
|
|
18818
18818
|
lazy: f
|
|
18819
18819
|
})
|
|
18820
|
-
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] =
|
|
18821
|
-
let
|
|
18822
|
-
r[41] === H ?
|
|
18820
|
+
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] = mG, r[40] = hG) : hG = r[40];
|
|
18821
|
+
let gG;
|
|
18822
|
+
r[41] === H ? gG = r[42] : (gG = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18823
18823
|
value: "python-code",
|
|
18824
18824
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18825
18825
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18828,9 +18828,9 @@ ${c}
|
|
|
18828
18828
|
code: H,
|
|
18829
18829
|
language: "python"
|
|
18830
18830
|
})
|
|
18831
|
-
}), r[41] = H, r[42] =
|
|
18832
|
-
let
|
|
18833
|
-
r[43] === W ?
|
|
18831
|
+
}), r[41] = H, r[42] = gG);
|
|
18832
|
+
let _G;
|
|
18833
|
+
r[43] === W ? _G = r[44] : (_G = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18834
18834
|
value: "sql-code",
|
|
18835
18835
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18836
18836
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18839,35 +18839,35 @@ ${c}
|
|
|
18839
18839
|
code: W,
|
|
18840
18840
|
language: "sql"
|
|
18841
18841
|
})
|
|
18842
|
-
}), r[43] = W, r[44] =
|
|
18843
|
-
let
|
|
18844
|
-
r[45] !==
|
|
18842
|
+
}), r[43] = W, r[44] = _G);
|
|
18843
|
+
let vG;
|
|
18844
|
+
r[45] !== eG || r[46] !== pG || r[47] !== hG || r[48] !== gG || r[49] !== _G ? (vG = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18845
18845
|
defaultValue: "transform",
|
|
18846
|
-
onValueChange:
|
|
18846
|
+
onValueChange: eG,
|
|
18847
18847
|
children: [
|
|
18848
|
-
|
|
18849
|
-
mG,
|
|
18848
|
+
pG,
|
|
18850
18849
|
hG,
|
|
18851
|
-
gG
|
|
18850
|
+
gG,
|
|
18851
|
+
_G
|
|
18852
18852
|
]
|
|
18853
|
-
}), r[45] =
|
|
18854
|
-
let
|
|
18855
|
-
r[51] === O ?
|
|
18853
|
+
}), r[45] = eG, r[46] = pG, r[47] = hG, r[48] = gG, r[49] = _G, r[50] = vG) : vG = r[50];
|
|
18854
|
+
let yG;
|
|
18855
|
+
r[51] === O ? yG = r[52] : (yG = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18856
18856
|
error: O
|
|
18857
|
-
}), r[51] = O, r[52] =
|
|
18858
|
-
let
|
|
18859
|
-
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !==
|
|
18857
|
+
}), r[51] = O, r[52] = yG);
|
|
18858
|
+
let bG = I || "", xG = L ?? 0, SG = G ?? 0, CG = R || Arrays.EMPTY, wG = L && L > 5 || false, TG;
|
|
18859
|
+
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !== bG || r[61] !== xG || r[62] !== SG || r[63] !== CG || r[64] !== wG ? (TG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
18860
18860
|
label: null,
|
|
18861
18861
|
className: "rounded-b border-x border-b",
|
|
18862
|
-
data:
|
|
18862
|
+
data: bG,
|
|
18863
18863
|
hasStableRowId: false,
|
|
18864
|
-
totalRows:
|
|
18865
|
-
totalColumns:
|
|
18864
|
+
totalRows: xG,
|
|
18865
|
+
totalColumns: SG,
|
|
18866
18866
|
maxColumns: "all",
|
|
18867
18867
|
pageSize: l,
|
|
18868
18868
|
pagination: true,
|
|
18869
18869
|
fieldTypes: z,
|
|
18870
|
-
rowHeaders:
|
|
18870
|
+
rowHeaders: CG,
|
|
18871
18871
|
showDownload: u,
|
|
18872
18872
|
download_as: v,
|
|
18873
18873
|
get_size_bytes: y,
|
|
@@ -18877,7 +18877,7 @@ ${c}
|
|
|
18877
18877
|
showColumnSummaries: false,
|
|
18878
18878
|
showDataTypes: true,
|
|
18879
18879
|
get_column_summaries: getColumnSummaries,
|
|
18880
|
-
showPageSizeSelector:
|
|
18880
|
+
showPageSizeSelector: wG,
|
|
18881
18881
|
showColumnExplorer: false,
|
|
18882
18882
|
showRowExplorer: true,
|
|
18883
18883
|
showChartBuilder: false,
|
|
@@ -18886,15 +18886,15 @@ ${c}
|
|
|
18886
18886
|
selection: null,
|
|
18887
18887
|
lazy: false,
|
|
18888
18888
|
host: b
|
|
18889
|
-
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] =
|
|
18890
|
-
let
|
|
18891
|
-
return r[66] !==
|
|
18889
|
+
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] = bG, r[61] = xG, r[62] = SG, r[63] = CG, r[64] = wG, r[65] = TG) : TG = r[65];
|
|
18890
|
+
let EG;
|
|
18891
|
+
return r[66] !== vG || r[67] !== yG || r[68] !== TG ? (EG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18892
18892
|
children: [
|
|
18893
|
-
_G,
|
|
18894
18893
|
vG,
|
|
18895
|
-
|
|
18894
|
+
yG,
|
|
18895
|
+
TG
|
|
18896
18896
|
]
|
|
18897
|
-
}), r[66] =
|
|
18897
|
+
}), r[66] = vG, r[67] = yG, r[68] = TG, r[69] = EG) : EG = r[69], EG;
|
|
18898
18898
|
});
|
|
18899
18899
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18900
18900
|
function getColumnSummaries() {
|
|
@@ -19085,23 +19085,23 @@ ${c}
|
|
|
19085
19085
|
}, [
|
|
19086
19086
|
H
|
|
19087
19087
|
]);
|
|
19088
|
-
let Z = (R == null ? void 0 : R.files) ?? [],
|
|
19088
|
+
let Z = (R == null ? void 0 : R.files) ?? [], QW = new Set(e.map((e2) => e2.path)), $W = l === "directory" || l === "all", eG = l === "file" || l === "all", tG = Z.filter((e2) => $W && e2.is_directory || eG && !e2.is_directory), nG = tG.length > 0 && tG.every((e2) => QW.has(e2.path));
|
|
19089
19089
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
19090
19090
|
kind: "danger",
|
|
19091
19091
|
children: z.message
|
|
19092
19092
|
});
|
|
19093
|
-
let
|
|
19093
|
+
let rG = PathBuilder.guessDeliminator(c).deliminator, aG = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
19094
19094
|
children: e2.path
|
|
19095
19095
|
}, e2.id));
|
|
19096
|
-
function
|
|
19096
|
+
function oG(e2) {
|
|
19097
19097
|
var _a6;
|
|
19098
19098
|
if (v) return;
|
|
19099
19099
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
19100
|
-
if (g ===
|
|
19100
|
+
if (g === rG) {
|
|
19101
19101
|
y(false);
|
|
19102
19102
|
return;
|
|
19103
19103
|
}
|
|
19104
|
-
e2 = Paths.dirname(g), e2 === "" && (e2 =
|
|
19104
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = rG);
|
|
19105
19105
|
}
|
|
19106
19106
|
let r2 = e2.length < c.length;
|
|
19107
19107
|
if (f && r2) {
|
|
@@ -19114,7 +19114,7 @@ ${c}
|
|
|
19114
19114
|
}
|
|
19115
19115
|
M.current = ((_a6 = j.current) == null ? void 0 : _a6.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
19116
19116
|
}
|
|
19117
|
-
function
|
|
19117
|
+
function sG({ path: e2, name: r2, isDirectory: c2 }) {
|
|
19118
19118
|
return {
|
|
19119
19119
|
id: e2,
|
|
19120
19120
|
name: r2,
|
|
@@ -19122,27 +19122,27 @@ ${c}
|
|
|
19122
19122
|
is_directory: c2
|
|
19123
19123
|
};
|
|
19124
19124
|
}
|
|
19125
|
-
function
|
|
19126
|
-
let f2 =
|
|
19125
|
+
function cG({ path: c2, name: l2, isDirectory: d2 }) {
|
|
19126
|
+
let f2 = sG({
|
|
19127
19127
|
path: c2,
|
|
19128
19128
|
name: l2,
|
|
19129
19129
|
isDirectory: d2
|
|
19130
19130
|
});
|
|
19131
|
-
|
|
19131
|
+
QW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
19132
19132
|
...e,
|
|
19133
19133
|
f2
|
|
19134
19134
|
] : [
|
|
19135
19135
|
f2
|
|
19136
19136
|
]);
|
|
19137
19137
|
}
|
|
19138
|
-
function
|
|
19138
|
+
function lG() {
|
|
19139
19139
|
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
19140
19140
|
}
|
|
19141
|
-
function
|
|
19141
|
+
function uG() {
|
|
19142
19142
|
let c2 = [];
|
|
19143
19143
|
for (let e2 of Z) {
|
|
19144
|
-
if (
|
|
19145
|
-
let r2 =
|
|
19144
|
+
if (!$W && e2.is_directory || QW.has(e2.path)) continue;
|
|
19145
|
+
let r2 = sG({
|
|
19146
19146
|
path: e2.path,
|
|
19147
19147
|
name: e2.name,
|
|
19148
19148
|
isDirectory: e2.is_directory
|
|
@@ -19154,20 +19154,20 @@ ${c}
|
|
|
19154
19154
|
...c2
|
|
19155
19155
|
]);
|
|
19156
19156
|
}
|
|
19157
|
-
let
|
|
19157
|
+
let dG = [
|
|
19158
19158
|
{
|
|
19159
19159
|
key: "parent",
|
|
19160
19160
|
name: PARENT_DIRECTORY,
|
|
19161
19161
|
Icon: CornerLeftUp,
|
|
19162
19162
|
isSelected: false,
|
|
19163
19163
|
canSelect: false,
|
|
19164
|
-
onPrimary: () =>
|
|
19164
|
+
onPrimary: () => oG(PARENT_DIRECTORY),
|
|
19165
19165
|
onToggleSelect: null
|
|
19166
19166
|
},
|
|
19167
19167
|
...Z.map((e2) => {
|
|
19168
19168
|
let r2 = e2.path;
|
|
19169
19169
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
19170
|
-
let c2 =
|
|
19170
|
+
let c2 = $W && e2.is_directory || eG && !e2.is_directory, l2 = QW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => cG({
|
|
19171
19171
|
path: r2,
|
|
19172
19172
|
name: e2.name,
|
|
19173
19173
|
isDirectory: e2.is_directory
|
|
@@ -19178,46 +19178,46 @@ ${c}
|
|
|
19178
19178
|
Icon: FILE_ICON[u2],
|
|
19179
19179
|
isSelected: l2,
|
|
19180
19180
|
canSelect: c2,
|
|
19181
|
-
onPrimary: e2.is_directory ? () =>
|
|
19181
|
+
onPrimary: e2.is_directory ? () => oG(r2) : c2 ? d2 : () => {
|
|
19182
19182
|
},
|
|
19183
19183
|
onToggleSelect: c2 ? d2 : null
|
|
19184
19184
|
};
|
|
19185
19185
|
})
|
|
19186
19186
|
];
|
|
19187
|
-
function
|
|
19187
|
+
function fG(e2) {
|
|
19188
19188
|
var _a6;
|
|
19189
19189
|
E(e2), (_a6 = O.current[e2]) == null ? void 0 : _a6.focus();
|
|
19190
19190
|
}
|
|
19191
|
-
function
|
|
19191
|
+
function pG(e2, r2) {
|
|
19192
19192
|
var _a6, _b3;
|
|
19193
|
-
let c2 =
|
|
19193
|
+
let c2 = dG.length - 1;
|
|
19194
19194
|
switch (e2.key) {
|
|
19195
19195
|
case "ArrowDown":
|
|
19196
|
-
e2.preventDefault(),
|
|
19196
|
+
e2.preventDefault(), fG(Math.min(r2 + 1, c2));
|
|
19197
19197
|
break;
|
|
19198
19198
|
case "ArrowUp":
|
|
19199
|
-
e2.preventDefault(),
|
|
19199
|
+
e2.preventDefault(), fG(Math.max(r2 - 1, 0));
|
|
19200
19200
|
break;
|
|
19201
19201
|
case "Home":
|
|
19202
|
-
e2.preventDefault(),
|
|
19202
|
+
e2.preventDefault(), fG(0);
|
|
19203
19203
|
break;
|
|
19204
19204
|
case "End":
|
|
19205
|
-
e2.preventDefault(),
|
|
19205
|
+
e2.preventDefault(), fG(c2);
|
|
19206
19206
|
break;
|
|
19207
19207
|
case "Enter":
|
|
19208
|
-
e2.preventDefault(),
|
|
19208
|
+
e2.preventDefault(), dG[r2].onPrimary();
|
|
19209
19209
|
break;
|
|
19210
19210
|
case " ":
|
|
19211
|
-
e2.preventDefault(), (_b3 = (_a6 =
|
|
19211
|
+
e2.preventDefault(), (_b3 = (_a6 = dG[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a6);
|
|
19212
19212
|
break;
|
|
19213
19213
|
}
|
|
19214
19214
|
}
|
|
19215
|
-
let { parentDirectories:
|
|
19215
|
+
let { parentDirectories: mG } = getProtocolAndParentDirectories({
|
|
19216
19216
|
path: g,
|
|
19217
|
-
delimiter:
|
|
19217
|
+
delimiter: rG,
|
|
19218
19218
|
initialPath: c,
|
|
19219
19219
|
restrictNavigation: f
|
|
19220
|
-
}),
|
|
19220
|
+
}), hG = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
19221
19221
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
19222
19222
|
children: [
|
|
19223
19223
|
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -19227,7 +19227,7 @@ ${c}
|
|
|
19227
19227
|
(() => {
|
|
19228
19228
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
19229
19229
|
children: renderHTML({
|
|
19230
|
-
html: d ?? `Select ${
|
|
19230
|
+
html: d ?? `Select ${hG.join(" and ", 2)}...`
|
|
19231
19231
|
})
|
|
19232
19232
|
});
|
|
19233
19233
|
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -19241,8 +19241,8 @@ ${c}
|
|
|
19241
19241
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
19242
19242
|
size: "xs",
|
|
19243
19243
|
variant: "link",
|
|
19244
|
-
onClick:
|
|
19245
|
-
children:
|
|
19244
|
+
onClick: nG ? lG : uG,
|
|
19245
|
+
children: nG ? "Deselect all" : "Select all"
|
|
19246
19246
|
})
|
|
19247
19247
|
})
|
|
19248
19248
|
]
|
|
@@ -19252,8 +19252,8 @@ ${c}
|
|
|
19252
19252
|
className: "mt-2 w-full",
|
|
19253
19253
|
placeholder: g,
|
|
19254
19254
|
value: g,
|
|
19255
|
-
onChange: (e2) =>
|
|
19256
|
-
children:
|
|
19255
|
+
onChange: (e2) => oG(e2.target.value),
|
|
19256
|
+
children: mG.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
19257
19257
|
value: e2,
|
|
19258
19258
|
children: e2
|
|
19259
19259
|
}, e2))
|
|
@@ -19289,14 +19289,14 @@ ${c}
|
|
|
19289
19289
|
"aria-label": "File browser",
|
|
19290
19290
|
"aria-multiselectable": u,
|
|
19291
19291
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
19292
|
-
children:
|
|
19292
|
+
children: dG.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
19293
19293
|
role: "row",
|
|
19294
19294
|
ref: (e3) => {
|
|
19295
19295
|
O.current[r2] = e3;
|
|
19296
19296
|
},
|
|
19297
19297
|
tabIndex: r2 === w ? 0 : -1,
|
|
19298
19298
|
onFocus: () => E(r2),
|
|
19299
|
-
onKeyDown: (e3) =>
|
|
19299
|
+
onKeyDown: (e3) => pG(e3, r2),
|
|
19300
19300
|
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
19301
19301
|
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
19302
19302
|
}),
|
|
@@ -19339,7 +19339,7 @@ ${c}
|
|
|
19339
19339
|
children: [
|
|
19340
19340
|
e.length,
|
|
19341
19341
|
" ",
|
|
19342
|
-
|
|
19342
|
+
hG.join(" or ", e.length),
|
|
19343
19343
|
" ",
|
|
19344
19344
|
"selected"
|
|
19345
19345
|
]
|
|
@@ -19359,7 +19359,7 @@ ${c}
|
|
|
19359
19359
|
marginBlock: 0
|
|
19360
19360
|
},
|
|
19361
19361
|
className: "m-0 text-xs text-muted-foreground",
|
|
19362
|
-
children:
|
|
19362
|
+
children: aG
|
|
19363
19363
|
})
|
|
19364
19364
|
})
|
|
19365
19365
|
]
|
|
@@ -24741,55 +24741,55 @@ ${c}
|
|
|
24741
24741
|
return typeof S == "function" ? S : noop$2;
|
|
24742
24742
|
}, [
|
|
24743
24743
|
S
|
|
24744
|
-
]), q = (0, import_react.useRef)(null), Z = (0, import_react.useRef)(null),
|
|
24745
|
-
!
|
|
24746
|
-
Z.current && (Z.current.files.length || (
|
|
24744
|
+
]), q = (0, import_react.useRef)(null), Z = (0, import_react.useRef)(null), QW = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), $W = QW[0], eG = QW[1], tG = $W.isFocused, nG = $W.isFileDialogActive, rG = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), iG = function() {
|
|
24745
|
+
!rG.current && nG && setTimeout(function() {
|
|
24746
|
+
Z.current && (Z.current.files.length || (eG({
|
|
24747
24747
|
type: "closeDialog"
|
|
24748
24748
|
}), G()));
|
|
24749
24749
|
}, 300);
|
|
24750
24750
|
};
|
|
24751
24751
|
(0, import_react.useEffect)(function() {
|
|
24752
|
-
return window.addEventListener("focus",
|
|
24753
|
-
window.removeEventListener("focus",
|
|
24752
|
+
return window.addEventListener("focus", iG, false), function() {
|
|
24753
|
+
window.removeEventListener("focus", iG, false);
|
|
24754
24754
|
};
|
|
24755
24755
|
}, [
|
|
24756
24756
|
Z,
|
|
24757
|
-
|
|
24757
|
+
nG,
|
|
24758
24758
|
G,
|
|
24759
|
-
|
|
24759
|
+
rG
|
|
24760
24760
|
]);
|
|
24761
|
-
var
|
|
24762
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
24761
|
+
var aG = (0, import_react.useRef)([]), oG = (0, import_react.useRef)([]), sG = function(e2) {
|
|
24762
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), aG.current = []);
|
|
24763
24763
|
};
|
|
24764
24764
|
(0, import_react.useEffect)(function() {
|
|
24765
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
24766
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
24765
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", sG, false)), function() {
|
|
24766
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", sG));
|
|
24767
24767
|
};
|
|
24768
24768
|
}, [
|
|
24769
24769
|
q,
|
|
24770
24770
|
O
|
|
24771
24771
|
]), (0, import_react.useEffect)(function() {
|
|
24772
24772
|
var e2 = function(e3) {
|
|
24773
|
-
|
|
24773
|
+
oG.current = [].concat(_toConsumableArray(oG.current), [
|
|
24774
24774
|
e3.target
|
|
24775
|
-
]), isEvtWithFiles(e3) &&
|
|
24775
|
+
]), isEvtWithFiles(e3) && eG({
|
|
24776
24776
|
isDragGlobal: true,
|
|
24777
24777
|
type: "setDragGlobal"
|
|
24778
24778
|
});
|
|
24779
24779
|
}, r2 = function(e3) {
|
|
24780
|
-
|
|
24780
|
+
oG.current = oG.current.filter(function(r3) {
|
|
24781
24781
|
return r3 !== e3.target && r3 !== null;
|
|
24782
|
-
}), !(
|
|
24782
|
+
}), !(oG.current.length > 0) && eG({
|
|
24783
24783
|
isDragGlobal: false,
|
|
24784
24784
|
type: "setDragGlobal"
|
|
24785
24785
|
});
|
|
24786
24786
|
}, c2 = function() {
|
|
24787
|
-
|
|
24787
|
+
oG.current = [], eG({
|
|
24788
24788
|
isDragGlobal: false,
|
|
24789
24789
|
type: "setDragGlobal"
|
|
24790
24790
|
});
|
|
24791
24791
|
}, l2 = function() {
|
|
24792
|
-
|
|
24792
|
+
oG.current = [], eG({
|
|
24793
24793
|
isDragGlobal: false,
|
|
24794
24794
|
type: "setDragGlobal"
|
|
24795
24795
|
});
|
|
@@ -24807,12 +24807,12 @@ ${c}
|
|
|
24807
24807
|
E,
|
|
24808
24808
|
l
|
|
24809
24809
|
]);
|
|
24810
|
-
var
|
|
24810
|
+
var cG = (0, import_react.useCallback)(function(e2) {
|
|
24811
24811
|
R ? R(e2) : console.error(e2);
|
|
24812
24812
|
}, [
|
|
24813
24813
|
R
|
|
24814
|
-
]),
|
|
24815
|
-
e2.preventDefault(), e2.persist(),
|
|
24814
|
+
]), lG = (0, import_react.useCallback)(function(e2) {
|
|
24815
|
+
e2.preventDefault(), e2.persist(), SG(e2), aG.current = [].concat(_toConsumableArray(aG.current), [
|
|
24816
24816
|
e2.target
|
|
24817
24817
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24818
24818
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -24825,7 +24825,7 @@ ${c}
|
|
|
24825
24825
|
maxFiles: m,
|
|
24826
24826
|
validator: z
|
|
24827
24827
|
});
|
|
24828
|
-
|
|
24828
|
+
eG({
|
|
24829
24829
|
isDragAccept: l2,
|
|
24830
24830
|
isDragReject: c2 > 0 && !l2,
|
|
24831
24831
|
isDragActive: true,
|
|
@@ -24833,12 +24833,12 @@ ${c}
|
|
|
24833
24833
|
}), h && h(e2);
|
|
24834
24834
|
}
|
|
24835
24835
|
}).catch(function(e3) {
|
|
24836
|
-
return
|
|
24836
|
+
return cG(e3);
|
|
24837
24837
|
});
|
|
24838
24838
|
}, [
|
|
24839
24839
|
u,
|
|
24840
24840
|
h,
|
|
24841
|
-
|
|
24841
|
+
cG,
|
|
24842
24842
|
L,
|
|
24843
24843
|
B,
|
|
24844
24844
|
f,
|
|
@@ -24846,8 +24846,8 @@ ${c}
|
|
|
24846
24846
|
p,
|
|
24847
24847
|
m,
|
|
24848
24848
|
z
|
|
24849
|
-
]),
|
|
24850
|
-
e2.preventDefault(), e2.persist(),
|
|
24849
|
+
]), uG = (0, import_react.useCallback)(function(e2) {
|
|
24850
|
+
e2.preventDefault(), e2.persist(), SG(e2);
|
|
24851
24851
|
var r2 = isEvtWithFiles(e2);
|
|
24852
24852
|
if (r2 && e2.dataTransfer) try {
|
|
24853
24853
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -24857,12 +24857,12 @@ ${c}
|
|
|
24857
24857
|
}, [
|
|
24858
24858
|
_,
|
|
24859
24859
|
L
|
|
24860
|
-
]),
|
|
24861
|
-
e2.preventDefault(), e2.persist(),
|
|
24862
|
-
var r2 =
|
|
24860
|
+
]), dG = (0, import_react.useCallback)(function(e2) {
|
|
24861
|
+
e2.preventDefault(), e2.persist(), SG(e2);
|
|
24862
|
+
var r2 = aG.current.filter(function(e3) {
|
|
24863
24863
|
return q.current && q.current.contains(e3);
|
|
24864
24864
|
}), c2 = r2.indexOf(e2.target);
|
|
24865
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
24865
|
+
c2 !== -1 && r2.splice(c2, 1), aG.current = r2, !(r2.length > 0) && (eG({
|
|
24866
24866
|
type: "setDraggedFiles",
|
|
24867
24867
|
isDragActive: false,
|
|
24868
24868
|
isDragAccept: false,
|
|
@@ -24872,7 +24872,7 @@ ${c}
|
|
|
24872
24872
|
q,
|
|
24873
24873
|
g,
|
|
24874
24874
|
L
|
|
24875
|
-
]),
|
|
24875
|
+
]), fG = (0, import_react.useCallback)(function(e2, r2) {
|
|
24876
24876
|
var c2 = [], l2 = [];
|
|
24877
24877
|
e2.forEach(function(e3) {
|
|
24878
24878
|
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;
|
|
@@ -24896,14 +24896,14 @@ ${c}
|
|
|
24896
24896
|
TOO_MANY_FILES_REJECTION
|
|
24897
24897
|
]
|
|
24898
24898
|
});
|
|
24899
|
-
}), c2.splice(0)),
|
|
24899
|
+
}), c2.splice(0)), eG({
|
|
24900
24900
|
acceptedFiles: c2,
|
|
24901
24901
|
fileRejections: l2,
|
|
24902
24902
|
isDragReject: l2.length > 0,
|
|
24903
24903
|
type: "setFiles"
|
|
24904
24904
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
24905
24905
|
}, [
|
|
24906
|
-
|
|
24906
|
+
eG,
|
|
24907
24907
|
p,
|
|
24908
24908
|
B,
|
|
24909
24909
|
f,
|
|
@@ -24913,22 +24913,22 @@ ${c}
|
|
|
24913
24913
|
y,
|
|
24914
24914
|
b,
|
|
24915
24915
|
z
|
|
24916
|
-
]),
|
|
24917
|
-
e2.preventDefault(), e2.persist(),
|
|
24918
|
-
isPropagationStopped(e2) && !L ||
|
|
24916
|
+
]), pG = (0, import_react.useCallback)(function(e2) {
|
|
24917
|
+
e2.preventDefault(), e2.persist(), SG(e2), aG.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
24918
|
+
isPropagationStopped(e2) && !L || fG(r2, e2);
|
|
24919
24919
|
}).catch(function(e3) {
|
|
24920
|
-
return
|
|
24921
|
-
}),
|
|
24920
|
+
return cG(e3);
|
|
24921
|
+
}), eG({
|
|
24922
24922
|
type: "reset"
|
|
24923
24923
|
});
|
|
24924
24924
|
}, [
|
|
24925
24925
|
u,
|
|
24926
|
-
|
|
24927
|
-
|
|
24926
|
+
fG,
|
|
24927
|
+
cG,
|
|
24928
24928
|
L
|
|
24929
|
-
]),
|
|
24930
|
-
if (
|
|
24931
|
-
|
|
24929
|
+
]), mG = (0, import_react.useCallback)(function() {
|
|
24930
|
+
if (rG.current) {
|
|
24931
|
+
eG({
|
|
24932
24932
|
type: "openDialog"
|
|
24933
24933
|
}), W();
|
|
24934
24934
|
var e2 = {
|
|
@@ -24938,66 +24938,66 @@ ${c}
|
|
|
24938
24938
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
24939
24939
|
return u(e3);
|
|
24940
24940
|
}).then(function(e3) {
|
|
24941
|
-
|
|
24941
|
+
fG(e3, null), eG({
|
|
24942
24942
|
type: "closeDialog"
|
|
24943
24943
|
});
|
|
24944
24944
|
}).catch(function(e3) {
|
|
24945
|
-
isAbort(e3) ? (G(e3),
|
|
24945
|
+
isAbort(e3) ? (G(e3), eG({
|
|
24946
24946
|
type: "closeDialog"
|
|
24947
|
-
})) : isSecurityError(e3) ? (
|
|
24947
|
+
})) : isSecurityError(e3) ? (rG.current = false, Z.current ? (Z.current.value = null, Z.current.click()) : cG(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."))) : cG(e3);
|
|
24948
24948
|
});
|
|
24949
24949
|
return;
|
|
24950
24950
|
}
|
|
24951
|
-
Z.current && (
|
|
24951
|
+
Z.current && (eG({
|
|
24952
24952
|
type: "openDialog"
|
|
24953
24953
|
}), W(), Z.current.value = null, Z.current.click());
|
|
24954
24954
|
}, [
|
|
24955
|
-
|
|
24955
|
+
eG,
|
|
24956
24956
|
W,
|
|
24957
24957
|
G,
|
|
24958
24958
|
T,
|
|
24959
|
-
|
|
24960
|
-
|
|
24959
|
+
fG,
|
|
24960
|
+
cG,
|
|
24961
24961
|
H,
|
|
24962
24962
|
p
|
|
24963
|
-
]),
|
|
24964
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
24963
|
+
]), hG = (0, import_react.useCallback)(function(e2) {
|
|
24964
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), mG());
|
|
24965
24965
|
}, [
|
|
24966
24966
|
q,
|
|
24967
|
-
|
|
24968
|
-
]),
|
|
24969
|
-
|
|
24967
|
+
mG
|
|
24968
|
+
]), gG = (0, import_react.useCallback)(function() {
|
|
24969
|
+
eG({
|
|
24970
24970
|
type: "focus"
|
|
24971
24971
|
});
|
|
24972
|
-
}, []),
|
|
24973
|
-
|
|
24972
|
+
}, []), _G = (0, import_react.useCallback)(function() {
|
|
24973
|
+
eG({
|
|
24974
24974
|
type: "blur"
|
|
24975
24975
|
});
|
|
24976
|
-
}, []),
|
|
24977
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
24976
|
+
}, []), vG = (0, import_react.useCallback)(function() {
|
|
24977
|
+
j || (isIeOrEdge() ? setTimeout(mG, 0) : mG());
|
|
24978
24978
|
}, [
|
|
24979
24979
|
j,
|
|
24980
|
-
|
|
24981
|
-
]),
|
|
24980
|
+
mG
|
|
24981
|
+
]), yG = function(e2) {
|
|
24982
24982
|
return l ? null : e2;
|
|
24983
|
-
}, yG = function(e2) {
|
|
24984
|
-
return M ? null : vG(e2);
|
|
24985
24983
|
}, bG = function(e2) {
|
|
24986
|
-
return
|
|
24984
|
+
return M ? null : yG(e2);
|
|
24987
24985
|
}, xG = function(e2) {
|
|
24986
|
+
return I ? null : yG(e2);
|
|
24987
|
+
}, SG = function(e2) {
|
|
24988
24988
|
L && e2.stopPropagation();
|
|
24989
|
-
},
|
|
24989
|
+
}, CG = (0, import_react.useMemo)(function() {
|
|
24990
24990
|
return function() {
|
|
24991
24991
|
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);
|
|
24992
24992
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
24993
|
-
onKeyDown:
|
|
24994
|
-
onFocus:
|
|
24995
|
-
onBlur:
|
|
24996
|
-
onClick:
|
|
24997
|
-
onDragEnter:
|
|
24998
|
-
onDragOver:
|
|
24999
|
-
onDragLeave:
|
|
25000
|
-
onDrop:
|
|
24993
|
+
onKeyDown: bG(composeEventHandlers(d2, hG)),
|
|
24994
|
+
onFocus: bG(composeEventHandlers(f2, gG)),
|
|
24995
|
+
onBlur: bG(composeEventHandlers(p2, _G)),
|
|
24996
|
+
onClick: yG(composeEventHandlers(m2, vG)),
|
|
24997
|
+
onDragEnter: xG(composeEventHandlers(h2, lG)),
|
|
24998
|
+
onDragOver: xG(composeEventHandlers(g2, uG)),
|
|
24999
|
+
onDragLeave: xG(composeEventHandlers(_2, dG)),
|
|
25000
|
+
onDrop: xG(composeEventHandlers(v2, pG)),
|
|
25001
25001
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
25002
25002
|
}, c2, q), !l && !M ? {
|
|
25003
25003
|
tabIndex: 0
|
|
@@ -25005,20 +25005,20 @@ ${c}
|
|
|
25005
25005
|
};
|
|
25006
25006
|
}, [
|
|
25007
25007
|
q,
|
|
25008
|
-
mG,
|
|
25009
25008
|
hG,
|
|
25010
25009
|
gG,
|
|
25011
25010
|
_G,
|
|
25012
|
-
|
|
25011
|
+
vG,
|
|
25013
25012
|
lG,
|
|
25014
25013
|
uG,
|
|
25015
|
-
|
|
25014
|
+
dG,
|
|
25015
|
+
pG,
|
|
25016
25016
|
M,
|
|
25017
25017
|
I,
|
|
25018
25018
|
l
|
|
25019
|
-
]),
|
|
25019
|
+
]), wG = (0, import_react.useCallback)(function(e2) {
|
|
25020
25020
|
e2.stopPropagation();
|
|
25021
|
-
}, []),
|
|
25021
|
+
}, []), TG = (0, import_react.useMemo)(function() {
|
|
25022
25022
|
return function() {
|
|
25023
25023
|
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);
|
|
25024
25024
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -25037,8 +25037,8 @@ ${c}
|
|
|
25037
25037
|
width: "1px",
|
|
25038
25038
|
whiteSpace: "nowrap"
|
|
25039
25039
|
},
|
|
25040
|
-
onChange:
|
|
25041
|
-
onClick:
|
|
25040
|
+
onChange: yG(composeEventHandlers(l2, pG)),
|
|
25041
|
+
onClick: yG(composeEventHandlers(u2, wG)),
|
|
25042
25042
|
tabIndex: -1
|
|
25043
25043
|
}, c2, Z)), d2);
|
|
25044
25044
|
};
|
|
@@ -25046,16 +25046,16 @@ ${c}
|
|
|
25046
25046
|
Z,
|
|
25047
25047
|
c,
|
|
25048
25048
|
p,
|
|
25049
|
-
|
|
25049
|
+
pG,
|
|
25050
25050
|
l
|
|
25051
25051
|
]);
|
|
25052
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
25053
|
-
isFocused:
|
|
25054
|
-
getRootProps:
|
|
25055
|
-
getInputProps:
|
|
25052
|
+
return _objectSpread$7(_objectSpread$7({}, $W), {}, {
|
|
25053
|
+
isFocused: tG && !l,
|
|
25054
|
+
getRootProps: CG,
|
|
25055
|
+
getInputProps: TG,
|
|
25056
25056
|
rootRef: q,
|
|
25057
25057
|
inputRef: Z,
|
|
25058
|
-
open:
|
|
25058
|
+
open: yG(mG)
|
|
25059
25059
|
});
|
|
25060
25060
|
}
|
|
25061
25061
|
function reducer$2(e, r) {
|
|
@@ -25287,47 +25287,47 @@ ${c}
|
|
|
25287
25287
|
html: I
|
|
25288
25288
|
})
|
|
25289
25289
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
25290
|
-
let q = w && "text-primary", Z = T && "text-destructive",
|
|
25291
|
-
r[48] !== q || r[49] !== Z ? (
|
|
25292
|
-
let
|
|
25293
|
-
r[51] ===
|
|
25290
|
+
let q = w && "text-primary", Z = T && "text-destructive", QW;
|
|
25291
|
+
r[48] !== q || r[49] !== Z ? (QW = cn(q, Z), r[48] = q, r[49] = Z, r[50] = QW) : QW = r[50];
|
|
25292
|
+
let $W;
|
|
25293
|
+
r[51] === QW ? $W = r[52] : ($W = (0, import_jsx_runtime.jsx)(Upload, {
|
|
25294
25294
|
strokeWidth: 1.4,
|
|
25295
|
-
className:
|
|
25296
|
-
}), r[51] =
|
|
25297
|
-
let
|
|
25298
|
-
r[53] !==
|
|
25299
|
-
let
|
|
25300
|
-
r[56] ===
|
|
25295
|
+
className: QW
|
|
25296
|
+
}), r[51] = QW, r[52] = $W);
|
|
25297
|
+
let eG = w && "text-primary", tG = T && "text-destructive", nG;
|
|
25298
|
+
r[53] !== eG || r[54] !== tG ? (nG = cn(eG, tG), r[53] = eG, r[54] = tG, r[55] = nG) : nG = r[55];
|
|
25299
|
+
let rG;
|
|
25300
|
+
r[56] === nG ? rG = r[57] : (rG = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
25301
25301
|
strokeWidth: 1.4,
|
|
25302
|
-
className:
|
|
25303
|
-
}), r[56] =
|
|
25304
|
-
let
|
|
25305
|
-
r[58] !==
|
|
25302
|
+
className: nG
|
|
25303
|
+
}), r[56] = nG, r[57] = rG);
|
|
25304
|
+
let aG;
|
|
25305
|
+
r[58] !== $W || r[59] !== rG ? (aG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25306
25306
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
25307
25307
|
children: [
|
|
25308
|
-
|
|
25309
|
-
|
|
25308
|
+
$W,
|
|
25309
|
+
rG
|
|
25310
25310
|
]
|
|
25311
|
-
}), r[58] =
|
|
25312
|
-
let
|
|
25313
|
-
r[61] !== G || r[62] !==
|
|
25311
|
+
}), r[58] = $W, r[59] = rG, r[60] = aG) : aG = r[60];
|
|
25312
|
+
let oG;
|
|
25313
|
+
r[61] !== G || r[62] !== aG ? (oG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25314
25314
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
25315
25315
|
children: [
|
|
25316
25316
|
G,
|
|
25317
|
-
|
|
25317
|
+
aG
|
|
25318
25318
|
]
|
|
25319
|
-
}), r[61] = G, r[62] =
|
|
25320
|
-
let
|
|
25321
|
-
r[64] !== W || r[65] !==
|
|
25319
|
+
}), r[61] = G, r[62] = aG, r[63] = oG) : oG = r[63];
|
|
25320
|
+
let sG;
|
|
25321
|
+
r[64] !== W || r[65] !== oG || r[66] !== z || r[67] !== B ? (sG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25322
25322
|
className: z,
|
|
25323
25323
|
...B,
|
|
25324
25324
|
children: [
|
|
25325
25325
|
W,
|
|
25326
|
-
|
|
25326
|
+
oG
|
|
25327
25327
|
]
|
|
25328
|
-
}), r[64] = W, r[65] =
|
|
25329
|
-
let
|
|
25330
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (
|
|
25328
|
+
}), r[64] = W, r[65] = oG, r[66] = z, r[67] = B, r[68] = sG) : sG = r[68];
|
|
25329
|
+
let cG;
|
|
25330
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (cG = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
25331
25331
|
className: "flex flex-row gap-1",
|
|
25332
25332
|
children: [
|
|
25333
25333
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -25363,17 +25363,17 @@ ${c}
|
|
|
25363
25363
|
})
|
|
25364
25364
|
})
|
|
25365
25365
|
]
|
|
25366
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] =
|
|
25367
|
-
let
|
|
25368
|
-
return r[75] !==
|
|
25366
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = p.length, r[74] = cG) : cG = r[74];
|
|
25367
|
+
let lG;
|
|
25368
|
+
return r[75] !== sG || r[76] !== cG ? (lG = (0, import_jsx_runtime.jsx)("section", {
|
|
25369
25369
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
25370
25370
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
25371
25371
|
children: [
|
|
25372
|
-
|
|
25373
|
-
|
|
25372
|
+
sG,
|
|
25373
|
+
cG
|
|
25374
25374
|
]
|
|
25375
25375
|
})
|
|
25376
|
-
}), r[75] =
|
|
25376
|
+
}), r[75] = sG, r[76] = cG, r[77] = lG) : lG = r[77], lG;
|
|
25377
25377
|
};
|
|
25378
25378
|
function _temp$11(e) {
|
|
25379
25379
|
Logger.error(e), toast({
|
|
@@ -25477,68 +25477,68 @@ ${c}
|
|
|
25477
25477
|
html: f
|
|
25478
25478
|
})
|
|
25479
25479
|
}), r[11] = f, r[12] = Z);
|
|
25480
|
-
let
|
|
25481
|
-
r[13] === L ?
|
|
25480
|
+
let QW;
|
|
25481
|
+
r[13] === L ? QW = r[14] : (QW = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25482
25482
|
kind: "danger",
|
|
25483
25483
|
className: "rounded",
|
|
25484
25484
|
children: L ?? "Invalid input"
|
|
25485
|
-
}), r[13] = L, r[14] =
|
|
25486
|
-
let QW;
|
|
25487
|
-
r[15] === c ? QW = r[16] : (QW = (0, import_jsx_runtime.jsx)("div", {
|
|
25488
|
-
children: c
|
|
25489
|
-
}), r[15] = c, r[16] = QW);
|
|
25485
|
+
}), r[13] = L, r[14] = QW);
|
|
25490
25486
|
let $W;
|
|
25491
|
-
r[
|
|
25487
|
+
r[15] === c ? $W = r[16] : ($W = (0, import_jsx_runtime.jsx)("div", {
|
|
25488
|
+
children: c
|
|
25489
|
+
}), r[15] = c, r[16] = $W);
|
|
25490
|
+
let eG;
|
|
25491
|
+
r[17] !== S || r[18] !== w || r[19] !== b ? (eG = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
25492
25492
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
25493
25493
|
variant: "text",
|
|
25494
25494
|
onClick: (e2) => {
|
|
25495
25495
|
e2.preventDefault(), B();
|
|
25496
25496
|
},
|
|
25497
25497
|
children: S
|
|
25498
|
-
}), w), r[17] = S, r[18] = w, r[19] = b, r[20] =
|
|
25499
|
-
let
|
|
25500
|
-
r[21] === m ?
|
|
25498
|
+
}), w), r[17] = S, r[18] = w, r[19] = b, r[20] = eG) : eG = r[20];
|
|
25499
|
+
let tG = v || m, nG;
|
|
25500
|
+
r[21] === m ? nG = r[22] : (nG = m && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
25501
25501
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
25502
|
-
}), r[21] = m, r[22] =
|
|
25503
|
-
let
|
|
25504
|
-
r[23] !== g || r[24] !==
|
|
25502
|
+
}), r[21] = m, r[22] = nG);
|
|
25503
|
+
let rG;
|
|
25504
|
+
r[23] !== g || r[24] !== tG || r[25] !== nG || r[26] !== I ? (rG = (0, import_jsx_runtime.jsxs)(Button, {
|
|
25505
25505
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
25506
25506
|
variant: I,
|
|
25507
|
-
disabled:
|
|
25507
|
+
disabled: tG,
|
|
25508
25508
|
type: "submit",
|
|
25509
25509
|
children: [
|
|
25510
|
-
|
|
25510
|
+
nG,
|
|
25511
25511
|
g
|
|
25512
25512
|
]
|
|
25513
|
-
}), r[23] = g, r[24] =
|
|
25514
|
-
let iG;
|
|
25515
|
-
r[28] !== _ || r[29] !== nG ? (iG = withTooltip(nG, _), r[28] = _, r[29] = nG, r[30] = iG) : iG = r[30];
|
|
25513
|
+
}), r[23] = g, r[24] = tG, r[25] = nG, r[26] = I, r[27] = rG) : rG = r[27];
|
|
25516
25514
|
let aG;
|
|
25517
|
-
r[
|
|
25515
|
+
r[28] !== _ || r[29] !== rG ? (aG = withTooltip(rG, _), r[28] = _, r[29] = rG, r[30] = aG) : aG = r[30];
|
|
25516
|
+
let oG;
|
|
25517
|
+
r[31] !== aG || r[32] !== eG ? (oG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25518
25518
|
className: "flex justify-end gap-2 font-code",
|
|
25519
25519
|
children: [
|
|
25520
|
-
|
|
25521
|
-
|
|
25520
|
+
eG,
|
|
25521
|
+
aG
|
|
25522
25522
|
]
|
|
25523
|
-
}), r[31] =
|
|
25524
|
-
let
|
|
25525
|
-
r[34] !==
|
|
25523
|
+
}), r[31] = aG, r[32] = eG, r[33] = oG) : oG = r[33];
|
|
25524
|
+
let sG;
|
|
25525
|
+
r[34] !== oG || r[35] !== G || r[36] !== Z || r[37] !== QW || r[38] !== $W ? (sG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25526
25526
|
className: G,
|
|
25527
25527
|
onKeyDown: q,
|
|
25528
25528
|
children: [
|
|
25529
25529
|
Z,
|
|
25530
|
-
ZW,
|
|
25531
25530
|
QW,
|
|
25532
|
-
|
|
25531
|
+
$W,
|
|
25532
|
+
oG
|
|
25533
25533
|
]
|
|
25534
|
-
}), r[34] =
|
|
25535
|
-
let
|
|
25536
|
-
return r[40] !==
|
|
25534
|
+
}), r[34] = oG, r[35] = G, r[36] = Z, r[37] = QW, r[38] = $W, r[39] = sG) : sG = r[39];
|
|
25535
|
+
let lG;
|
|
25536
|
+
return r[40] !== sG || r[41] !== H ? (lG = (0, import_jsx_runtime.jsx)("form", {
|
|
25537
25537
|
className: "contents",
|
|
25538
25538
|
ref: j,
|
|
25539
25539
|
onSubmit: H,
|
|
25540
|
-
children:
|
|
25541
|
-
}), r[40] =
|
|
25540
|
+
children: sG
|
|
25541
|
+
}), r[40] = sG, r[41] = H, r[42] = lG) : lG = r[42], lG;
|
|
25542
25542
|
};
|
|
25543
25543
|
var Form = (e) => {
|
|
25544
25544
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -27324,8 +27324,8 @@ ${c}
|
|
|
27324
27324
|
indices: c2
|
|
27325
27325
|
}));
|
|
27326
27326
|
}, r[31] = u, r[32] = Z);
|
|
27327
|
-
let
|
|
27328
|
-
r[33] === u ?
|
|
27327
|
+
let QW = useEvent_default(Z), $W;
|
|
27328
|
+
r[33] === u ? $W = r[34] : ($W = (e2) => {
|
|
27329
27329
|
e2 && u((r2) => ({
|
|
27330
27330
|
...r2,
|
|
27331
27331
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -27334,9 +27334,9 @@ ${c}
|
|
|
27334
27334
|
range: e2.range,
|
|
27335
27335
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
27336
27336
|
}));
|
|
27337
|
-
}, r[33] = u, r[34] =
|
|
27338
|
-
let
|
|
27339
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
27337
|
+
}, r[33] = u, r[34] = $W);
|
|
27338
|
+
let eG = useEvent_default($W), tG = m.frames ?? void 0, nG = useEvent_default(_temp3$3), rG;
|
|
27339
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== QW || r[42] !== eG || r[43] !== tG || r[44] !== nG || r[45] !== R ? (rG = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
27340
27340
|
...m,
|
|
27341
27341
|
layout: h,
|
|
27342
27342
|
onRelayout: R,
|
|
@@ -27344,13 +27344,13 @@ ${c}
|
|
|
27344
27344
|
onTreemapClick: W,
|
|
27345
27345
|
onSunburstClick: q,
|
|
27346
27346
|
config: L,
|
|
27347
|
-
onClick:
|
|
27348
|
-
onSelected:
|
|
27347
|
+
onClick: QW,
|
|
27348
|
+
onSelected: eG,
|
|
27349
27349
|
className: "w-full",
|
|
27350
27350
|
useResizeHandler: true,
|
|
27351
|
-
frames:
|
|
27352
|
-
onError:
|
|
27353
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
27351
|
+
frames: tG,
|
|
27352
|
+
onError: nG
|
|
27353
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = QW, r[42] = eG, r[43] = tG, r[44] = nG, r[45] = R, r[46] = rG) : rG = r[46], rG;
|
|
27354
27354
|
});
|
|
27355
27355
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
27356
27356
|
function _temp$8(e) {
|
|
@@ -27495,8 +27495,8 @@ ${c}
|
|
|
27495
27495
|
onPointerUp: H
|
|
27496
27496
|
})
|
|
27497
27497
|
}), c[19] = L, c[20] = z, c[21] = H, c[22] = Z) : Z = c[22];
|
|
27498
|
-
let
|
|
27499
|
-
c[23] !== p.setFalse || c[24] !== p.setTrue ? (
|
|
27498
|
+
let QW;
|
|
27499
|
+
c[23] !== p.setFalse || c[24] !== p.setTrue ? (QW = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27500
27500
|
asChild: true,
|
|
27501
27501
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27502
27502
|
"data-testid": "thumb",
|
|
@@ -27506,30 +27506,30 @@ ${c}
|
|
|
27506
27506
|
onMouseEnter: p.setTrue,
|
|
27507
27507
|
onMouseLeave: p.setFalse
|
|
27508
27508
|
})
|
|
27509
|
-
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] =
|
|
27510
|
-
let
|
|
27511
|
-
c[26] !== m || c[27] !== u.value || c[28] !== d ? (
|
|
27509
|
+
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] = QW) : QW = c[25];
|
|
27510
|
+
let $W;
|
|
27511
|
+
c[26] !== m || c[27] !== u.value || c[28] !== d ? ($W = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27512
27512
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
27513
27513
|
locale: m
|
|
27514
27514
|
})
|
|
27515
|
-
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] =
|
|
27516
|
-
let $W;
|
|
27517
|
-
c[30] === QW ? $W = c[31] : ($W = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27518
|
-
children: QW
|
|
27519
|
-
}), c[30] = QW, c[31] = $W);
|
|
27515
|
+
}, u.value[0]), c[26] = m, c[27] = u.value, c[28] = d, c[29] = $W) : $W = c[29];
|
|
27520
27516
|
let eG;
|
|
27521
|
-
c[
|
|
27517
|
+
c[30] === $W ? eG = c[31] : (eG = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27518
|
+
children: $W
|
|
27519
|
+
}), c[30] = $W, c[31] = eG);
|
|
27520
|
+
let tG;
|
|
27521
|
+
c[32] !== f || c[33] !== QW || c[34] !== eG ? (tG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27522
27522
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27523
27523
|
delayDuration: 0,
|
|
27524
27524
|
open: f,
|
|
27525
27525
|
children: [
|
|
27526
|
-
|
|
27527
|
-
|
|
27526
|
+
QW,
|
|
27527
|
+
eG
|
|
27528
27528
|
]
|
|
27529
27529
|
})
|
|
27530
|
-
}), c[32] = f, c[33] =
|
|
27531
|
-
let
|
|
27532
|
-
c[36] !== p.setFalse || c[37] !== p.setTrue ? (
|
|
27530
|
+
}), c[32] = f, c[33] = QW, c[34] = eG, c[35] = tG) : tG = c[35];
|
|
27531
|
+
let nG;
|
|
27532
|
+
c[36] !== p.setFalse || c[37] !== p.setTrue ? (nG = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27533
27533
|
asChild: true,
|
|
27534
27534
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27535
27535
|
"data-testid": "thumb",
|
|
@@ -27539,39 +27539,39 @@ ${c}
|
|
|
27539
27539
|
onMouseEnter: p.setTrue,
|
|
27540
27540
|
onMouseLeave: p.setFalse
|
|
27541
27541
|
})
|
|
27542
|
-
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] =
|
|
27543
|
-
let
|
|
27544
|
-
c[39] !== m || c[40] !== u.value || c[41] !== d ? (
|
|
27542
|
+
}), c[36] = p.setFalse, c[37] = p.setTrue, c[38] = nG) : nG = c[38];
|
|
27543
|
+
let rG;
|
|
27544
|
+
c[39] !== m || c[40] !== u.value || c[41] !== d ? (rG = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27545
27545
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
27546
27546
|
locale: m
|
|
27547
27547
|
})
|
|
27548
|
-
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] =
|
|
27549
|
-
let rG;
|
|
27550
|
-
c[43] === nG ? rG = c[44] : (rG = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27551
|
-
children: nG
|
|
27552
|
-
}), c[43] = nG, c[44] = rG);
|
|
27548
|
+
}, u.value[1]), c[39] = m, c[40] = u.value, c[41] = d, c[42] = rG) : rG = c[42];
|
|
27553
27549
|
let iG;
|
|
27554
|
-
c[
|
|
27550
|
+
c[43] === rG ? iG = c[44] : (iG = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
27551
|
+
children: rG
|
|
27552
|
+
}), c[43] = rG, c[44] = iG);
|
|
27553
|
+
let aG;
|
|
27554
|
+
c[45] !== f || c[46] !== nG || c[47] !== iG ? (aG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27555
27555
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27556
27556
|
delayDuration: 0,
|
|
27557
27557
|
open: f,
|
|
27558
27558
|
children: [
|
|
27559
|
-
|
|
27560
|
-
|
|
27559
|
+
nG,
|
|
27560
|
+
iG
|
|
27561
27561
|
]
|
|
27562
27562
|
})
|
|
27563
|
-
}), c[45] = f, c[46] =
|
|
27564
|
-
let
|
|
27565
|
-
return c[49] !== M || c[50] !== u || c[51] !== Z || c[52] !==
|
|
27563
|
+
}), c[45] = f, c[46] = nG, c[47] = iG, c[48] = aG) : aG = c[48];
|
|
27564
|
+
let oG;
|
|
27565
|
+
return c[49] !== M || c[50] !== u || c[51] !== Z || c[52] !== tG || c[53] !== aG || c[54] !== W ? (oG = (0, import_jsx_runtime.jsxs)(Root, {
|
|
27566
27566
|
ref: M,
|
|
27567
27567
|
className: W,
|
|
27568
27568
|
...u,
|
|
27569
27569
|
children: [
|
|
27570
27570
|
Z,
|
|
27571
|
-
|
|
27572
|
-
|
|
27571
|
+
tG,
|
|
27572
|
+
aG
|
|
27573
27573
|
]
|
|
27574
|
-
}), c[49] = M, c[50] = u, c[51] = Z, c[52] =
|
|
27574
|
+
}), c[49] = M, c[50] = u, c[51] = Z, c[52] = tG, c[53] = aG, c[54] = W, c[55] = oG) : oG = c[55], oG;
|
|
27575
27575
|
});
|
|
27576
27576
|
RangeSlider.displayName = Root.displayName;
|
|
27577
27577
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -27622,14 +27622,14 @@ ${c}
|
|
|
27622
27622
|
}, q = (e2) => {
|
|
27623
27623
|
m && l(e2);
|
|
27624
27624
|
}, r[10] = m, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27625
|
-
let Z,
|
|
27625
|
+
let Z, QW;
|
|
27626
27626
|
r[14] !== m || r[15] !== T || r[16] !== l || r[17] !== u ? (Z = () => {
|
|
27627
27627
|
m && !dequal(T, u) && l(T);
|
|
27628
|
-
},
|
|
27628
|
+
}, QW = () => {
|
|
27629
27629
|
m && !dequal(T, u) && l(T);
|
|
27630
|
-
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = Z, r[19] =
|
|
27631
|
-
let
|
|
27632
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== Z || r[31] !==
|
|
27630
|
+
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = Z, r[19] = QW) : (Z = r[18], QW = r[19]);
|
|
27631
|
+
let $W;
|
|
27632
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== Z || r[31] !== QW || r[32] !== b ? ($W = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
27633
27633
|
id: S,
|
|
27634
27634
|
className: W,
|
|
27635
27635
|
value: T,
|
|
@@ -27641,35 +27641,35 @@ ${c}
|
|
|
27641
27641
|
onValueChange: G,
|
|
27642
27642
|
onValueCommit: q,
|
|
27643
27643
|
onPointerUp: Z,
|
|
27644
|
-
onMouseUp:
|
|
27644
|
+
onMouseUp: QW,
|
|
27645
27645
|
valueMap: b
|
|
27646
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] =
|
|
27647
|
-
let
|
|
27648
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
27646
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] = QW, r[32] = b, r[33] = $W) : $W = r[33];
|
|
27647
|
+
let eG;
|
|
27648
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (eG = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
27649
27649
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
27650
27650
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
27651
27651
|
locale: w
|
|
27652
27652
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
27653
27653
|
locale: w
|
|
27654
27654
|
})}`
|
|
27655
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
27656
|
-
let
|
|
27657
|
-
r[39] !==
|
|
27655
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = eG) : eG = r[38];
|
|
27656
|
+
let tG;
|
|
27657
|
+
r[39] !== $W || r[40] !== eG || r[41] !== B ? (tG = (0, import_jsx_runtime.jsxs)("div", {
|
|
27658
27658
|
className: B,
|
|
27659
27659
|
children: [
|
|
27660
|
-
|
|
27661
|
-
|
|
27660
|
+
$W,
|
|
27661
|
+
eG
|
|
27662
27662
|
]
|
|
27663
|
-
}), r[39] =
|
|
27664
|
-
let
|
|
27665
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
27663
|
+
}), r[39] = $W, r[40] = eG, r[41] = B, r[42] = tG) : tG = r[42];
|
|
27664
|
+
let nG;
|
|
27665
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== tG || r[47] !== M || r[48] !== L ? (nG = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
27666
27666
|
label: c,
|
|
27667
27667
|
id: S,
|
|
27668
27668
|
align: M,
|
|
27669
27669
|
className: L,
|
|
27670
27670
|
fullWidth: v,
|
|
27671
|
-
children:
|
|
27672
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
27671
|
+
children: tG
|
|
27672
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = tG, r[47] = M, r[48] = L, r[49] = nG) : nG = r[49], nG;
|
|
27673
27673
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
27674
27674
|
r.exports = u;
|
|
27675
27675
|
var c = {
|
|
@@ -30967,40 +30967,40 @@ ${c}
|
|
|
30967
30967
|
areRegExpsEqual: H,
|
|
30968
30968
|
areSetsEqual: G,
|
|
30969
30969
|
createIsNestedEqual: r2
|
|
30970
|
-
}),
|
|
30971
|
-
function
|
|
30972
|
-
return
|
|
30970
|
+
}), QW = T(q);
|
|
30971
|
+
function $W(e3, r3) {
|
|
30972
|
+
return QW(e3, r3, void 0);
|
|
30973
30973
|
}
|
|
30974
|
-
var
|
|
30974
|
+
var eG = T(l(q, {
|
|
30975
30975
|
createIsNestedEqual: function() {
|
|
30976
30976
|
return f;
|
|
30977
30977
|
}
|
|
30978
30978
|
}));
|
|
30979
|
-
function
|
|
30980
|
-
return
|
|
30979
|
+
function tG(e3, r3) {
|
|
30980
|
+
return eG(e3, r3, void 0);
|
|
30981
30981
|
}
|
|
30982
|
-
var
|
|
30983
|
-
function
|
|
30984
|
-
return
|
|
30982
|
+
var nG = T(Z);
|
|
30983
|
+
function rG(e3, r3) {
|
|
30984
|
+
return nG(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30985
30985
|
}
|
|
30986
|
-
var
|
|
30986
|
+
var iG = T(l(Z, {
|
|
30987
30987
|
createIsNestedEqual: function() {
|
|
30988
30988
|
return f;
|
|
30989
30989
|
}
|
|
30990
30990
|
}));
|
|
30991
|
-
function
|
|
30992
|
-
return
|
|
30991
|
+
function aG(e3, r3) {
|
|
30992
|
+
return iG(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
30993
30993
|
}
|
|
30994
|
-
function
|
|
30994
|
+
function oG(e3) {
|
|
30995
30995
|
return T(l(q, e3(q)));
|
|
30996
30996
|
}
|
|
30997
|
-
function
|
|
30997
|
+
function sG(e3) {
|
|
30998
30998
|
var r3 = T(l(Z, e3(Z)));
|
|
30999
30999
|
return (function(e4, c2, l2) {
|
|
31000
31000
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
31001
31001
|
});
|
|
31002
31002
|
}
|
|
31003
|
-
e2.circularDeepEqual =
|
|
31003
|
+
e2.circularDeepEqual = rG, e2.circularShallowEqual = aG, e2.createCustomCircularEqual = sG, e2.createCustomEqual = oG, e2.deepEqual = $W, e2.sameValueZeroEqual = f, e2.shallowEqual = tG, Object.defineProperty(e2, "__esModule", {
|
|
31004
31004
|
value: true
|
|
31005
31005
|
});
|
|
31006
31006
|
}));
|
|
@@ -31026,7 +31026,7 @@ ${c}
|
|
|
31026
31026
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
31027
31027
|
Object.defineProperty(e, "__esModule", {
|
|
31028
31028
|
value: true
|
|
31029
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
31029
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = pG, 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 = aG, e.setTopLeft = sG, e.setTransform = oG, e.sortLayoutItems = cG, e.sortLayoutItemsByColRow = uG, e.sortLayoutItemsByRowCol = lG, e.synchronizeLayoutWithChildren = dG, e.validateLayout = fG, e.withLayoutItem = v;
|
|
31030
31030
|
var r = require_fast_equals(), c = l(require_react());
|
|
31031
31031
|
function l(e2) {
|
|
31032
31032
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -31131,7 +31131,7 @@ ${c}
|
|
|
31131
31131
|
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);
|
|
31132
31132
|
}
|
|
31133
31133
|
function T(e2, r2, c2, l2) {
|
|
31134
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
31134
|
+
let u2 = B(e2), d2 = h(u2), f2 = cG(e2, r2), p2 = Array(e2.length);
|
|
31135
31135
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
31136
31136
|
let h3 = y(f2[m2]);
|
|
31137
31137
|
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;
|
|
@@ -31189,7 +31189,7 @@ ${c}
|
|
|
31189
31189
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
31190
31190
|
let h2 = r2.x, _2 = r2.y;
|
|
31191
31191
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
31192
|
-
let v2 =
|
|
31192
|
+
let v2 = cG(e2, f2);
|
|
31193
31193
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
31194
31194
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
31195
31195
|
if (b2 && m2) return g(e2);
|
|
@@ -31223,61 +31223,61 @@ ${c}
|
|
|
31223
31223
|
function G(e2) {
|
|
31224
31224
|
return e2 * 100 + "%";
|
|
31225
31225
|
}
|
|
31226
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, Z = (e2, r2, c2) => e2 < 0 ? r2 : c2,
|
|
31226
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, Z = (e2, r2, c2) => e2 < 0 ? r2 : c2, QW = (e2) => Math.max(0, e2), $W = (e2) => Math.max(0, e2), eG = (e2, r2, c2) => {
|
|
31227
31227
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
31228
31228
|
return {
|
|
31229
31229
|
left: l2,
|
|
31230
31230
|
width: d2,
|
|
31231
31231
|
height: Z(f2, e2.height, u2),
|
|
31232
|
-
top:
|
|
31232
|
+
top: $W(f2)
|
|
31233
31233
|
};
|
|
31234
|
-
},
|
|
31234
|
+
}, tG = (e2, r2, c2) => {
|
|
31235
31235
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31236
31236
|
return {
|
|
31237
31237
|
top: l2,
|
|
31238
31238
|
height: d2,
|
|
31239
31239
|
width: q(e2.left, e2.width, f2, c2),
|
|
31240
|
-
left:
|
|
31240
|
+
left: QW(u2)
|
|
31241
31241
|
};
|
|
31242
|
-
},
|
|
31242
|
+
}, nG = (e2, r2, c2) => {
|
|
31243
31243
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
31244
31244
|
return {
|
|
31245
31245
|
height: u2,
|
|
31246
31246
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
31247
|
-
top:
|
|
31248
|
-
left:
|
|
31247
|
+
top: $W(l2),
|
|
31248
|
+
left: QW(f2)
|
|
31249
31249
|
};
|
|
31250
|
-
},
|
|
31250
|
+
}, rG = (e2, r2, c2) => {
|
|
31251
31251
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31252
31252
|
return {
|
|
31253
31253
|
width: f2,
|
|
31254
31254
|
left: u2,
|
|
31255
31255
|
height: Z(l2, e2.height, d2),
|
|
31256
|
-
top:
|
|
31256
|
+
top: $W(l2)
|
|
31257
31257
|
};
|
|
31258
|
-
},
|
|
31259
|
-
n:
|
|
31258
|
+
}, iG = {
|
|
31259
|
+
n: eG,
|
|
31260
31260
|
ne: function() {
|
|
31261
|
-
return
|
|
31261
|
+
return eG(arguments.length <= 0 ? void 0 : arguments[0], tG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31262
31262
|
},
|
|
31263
|
-
e:
|
|
31263
|
+
e: tG,
|
|
31264
31264
|
se: function() {
|
|
31265
|
-
return
|
|
31265
|
+
return rG(arguments.length <= 0 ? void 0 : arguments[0], tG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31266
31266
|
},
|
|
31267
|
-
s:
|
|
31267
|
+
s: rG,
|
|
31268
31268
|
sw: function() {
|
|
31269
|
-
return
|
|
31269
|
+
return rG(arguments.length <= 0 ? void 0 : arguments[0], nG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31270
31270
|
},
|
|
31271
|
-
w:
|
|
31271
|
+
w: nG,
|
|
31272
31272
|
nw: function() {
|
|
31273
|
-
return
|
|
31273
|
+
return eG(arguments.length <= 0 ? void 0 : arguments[0], nG(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
31274
31274
|
}
|
|
31275
31275
|
};
|
|
31276
|
-
function
|
|
31277
|
-
let u2 =
|
|
31276
|
+
function aG(e2, r2, c2, l2) {
|
|
31277
|
+
let u2 = iG[e2];
|
|
31278
31278
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
31279
31279
|
}
|
|
31280
|
-
function
|
|
31280
|
+
function oG(e2) {
|
|
31281
31281
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
31282
31282
|
return {
|
|
31283
31283
|
transform: d2,
|
|
@@ -31290,7 +31290,7 @@ ${c}
|
|
|
31290
31290
|
position: "absolute"
|
|
31291
31291
|
};
|
|
31292
31292
|
}
|
|
31293
|
-
function
|
|
31293
|
+
function sG(e2) {
|
|
31294
31294
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
31295
31295
|
return {
|
|
31296
31296
|
top: `${r2}px`,
|
|
@@ -31300,20 +31300,20 @@ ${c}
|
|
|
31300
31300
|
position: "absolute"
|
|
31301
31301
|
};
|
|
31302
31302
|
}
|
|
31303
|
-
function
|
|
31304
|
-
return r2 === "horizontal" ?
|
|
31303
|
+
function cG(e2, r2) {
|
|
31304
|
+
return r2 === "horizontal" ? uG(e2) : r2 === "vertical" ? lG(e2) : e2;
|
|
31305
31305
|
}
|
|
31306
|
-
function
|
|
31306
|
+
function lG(e2) {
|
|
31307
31307
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31308
31308
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
31309
31309
|
});
|
|
31310
31310
|
}
|
|
31311
|
-
function
|
|
31311
|
+
function uG(e2) {
|
|
31312
31312
|
return e2.slice(0).sort(function(e3, r2) {
|
|
31313
31313
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
31314
31314
|
});
|
|
31315
31315
|
}
|
|
31316
|
-
function
|
|
31316
|
+
function dG(e2, r2, l2, u2, f2) {
|
|
31317
31317
|
e2 || (e2 = []);
|
|
31318
31318
|
let p2 = [];
|
|
31319
31319
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -31334,7 +31334,7 @@ ${c}
|
|
|
31334
31334
|
});
|
|
31335
31335
|
return f2 ? m2 : T(m2, u2, l2);
|
|
31336
31336
|
}
|
|
31337
|
-
function
|
|
31337
|
+
function fG(e2) {
|
|
31338
31338
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
31339
31339
|
"x",
|
|
31340
31340
|
"y",
|
|
@@ -31351,7 +31351,7 @@ ${c}
|
|
|
31351
31351
|
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})`);
|
|
31352
31352
|
}
|
|
31353
31353
|
}
|
|
31354
|
-
function
|
|
31354
|
+
function pG(e2) {
|
|
31355
31355
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
31356
31356
|
return r2 === false ? null : c2;
|
|
31357
31357
|
}
|
|
@@ -34156,7 +34156,7 @@ ${c}
|
|
|
34156
34156
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
34157
34157
|
let E = useIsDragging(), O, j;
|
|
34158
34158
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
34159
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q, Z,
|
|
34159
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, Z, QW, $W, eG, tG, nG, rG, iG, aG, oG, sG, cG, lG, uG, dG, fG, pG;
|
|
34160
34160
|
if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== m || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
|
|
34161
34161
|
let e2 = Maps.keyBy(c.cells, _temp2$3), p2;
|
|
34162
34162
|
r[47] !== c || r[48] !== l ? (p2 = (e3) => (r2) => {
|
|
@@ -34175,23 +34175,23 @@ ${c}
|
|
|
34175
34175
|
});
|
|
34176
34176
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
34177
34177
|
let y2 = v2;
|
|
34178
|
-
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,
|
|
34178
|
+
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, uG = "lg", r[58] === c.cells ? dG = r[59] : (dG = {
|
|
34179
34179
|
lg: c.cells
|
|
34180
|
-
}, r[58] = c.cells, r[59] =
|
|
34180
|
+
}, r[58] = c.cells, r[59] = dG), fG = L, pG = S, R = false;
|
|
34181
34181
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
34182
34182
|
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 ? [
|
|
34183
34183
|
20,
|
|
34184
34184
|
20
|
|
34185
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, Z = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (
|
|
34185
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, Z = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (QW = (e3) => {
|
|
34186
34186
|
f || l({
|
|
34187
34187
|
...c,
|
|
34188
34188
|
cells: e3
|
|
34189
34189
|
});
|
|
34190
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
34190
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = QW) : QW = r[69], r[70] === g ? $W = r[71] : ($W = g ? {
|
|
34191
34191
|
i: g.i,
|
|
34192
34192
|
w: g.w || 2,
|
|
34193
34193
|
h: g.h || 2
|
|
34194
|
-
} : void 0, r[70] = g, r[71] =
|
|
34194
|
+
} : void 0, r[70] = g, r[71] = $W), r[72] !== O || r[73] !== c || r[74] !== l ? (eG = (e3, r2, u2) => {
|
|
34195
34195
|
O.onDragStop(), r2 && l({
|
|
34196
34196
|
...c,
|
|
34197
34197
|
cells: [
|
|
@@ -34199,15 +34199,15 @@ ${c}
|
|
|
34199
34199
|
r2
|
|
34200
34200
|
]
|
|
34201
34201
|
});
|
|
34202
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
34202
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = eG) : eG = r[75], r[76] === O ? (tG = r[77], nG = r[78], rG = r[79]) : (tG = (e3, r2, c2, l2, u2) => {
|
|
34203
34203
|
O.onDragStart(u2);
|
|
34204
|
-
},
|
|
34204
|
+
}, nG = (e3, r2, c2, l2, u2) => {
|
|
34205
34205
|
O.onDragMove(u2);
|
|
34206
|
-
},
|
|
34206
|
+
}, rG = () => {
|
|
34207
34207
|
O.onDragStop();
|
|
34208
|
-
}, r[76] = O, r[77] =
|
|
34208
|
+
}, r[76] = O, r[77] = tG, r[78] = nG, r[79] = rG), iG = _temp3$2, aG = M, oG = M, sG = M, cG = M ? `.${DRAG_HANDLE}` : "noop";
|
|
34209
34209
|
let E2;
|
|
34210
|
-
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2),
|
|
34210
|
+
r[80] === m ? E2 = r[81] : (E2 = (e3) => m.has(e3.id), r[80] = m, r[81] = E2), lG = u.filter(E2).map((r2) => {
|
|
34211
34211
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p3 = c.cellSide.get(r2.id), m2 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
34212
34212
|
code: r2.code,
|
|
34213
34213
|
mode: d,
|
|
@@ -34237,14 +34237,14 @@ ${c}
|
|
|
34237
34237
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
34238
34238
|
children: m2
|
|
34239
34239
|
}, r2.id);
|
|
34240
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] =
|
|
34241
|
-
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], Z = r[30],
|
|
34242
|
-
let
|
|
34243
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== Z || r[91] !==
|
|
34244
|
-
breakpoint:
|
|
34245
|
-
layouts:
|
|
34246
|
-
style:
|
|
34247
|
-
cols:
|
|
34240
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = Z, r[31] = QW, r[32] = $W, r[33] = eG, r[34] = tG, r[35] = nG, r[36] = rG, r[37] = iG, r[38] = aG, r[39] = oG, r[40] = sG, r[41] = cG, r[42] = lG, r[43] = uG, r[44] = dG, r[45] = fG, r[46] = pG;
|
|
34241
|
+
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], Z = r[30], QW = r[31], $W = r[32], eG = r[33], tG = r[34], nG = r[35], rG = r[36], iG = r[37], aG = r[38], oG = r[39], sG = r[40], cG = r[41], lG = r[42], uG = r[43], dG = r[44], fG = r[45], pG = r[46];
|
|
34242
|
+
let mG;
|
|
34243
|
+
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== Z || r[91] !== QW || r[92] !== $W || r[93] !== eG || r[94] !== tG || r[95] !== nG || r[96] !== rG || r[97] !== iG || r[98] !== aG || r[99] !== oG || r[100] !== sG || r[101] !== cG || r[102] !== lG || r[103] !== uG || r[104] !== dG || r[105] !== fG || r[106] !== pG ? (mG = (0, import_jsx_runtime.jsx)(I, {
|
|
34244
|
+
breakpoint: uG,
|
|
34245
|
+
layouts: dG,
|
|
34246
|
+
style: fG,
|
|
34247
|
+
cols: pG,
|
|
34248
34248
|
allowOverlap: R,
|
|
34249
34249
|
className: z,
|
|
34250
34250
|
containerPadding: B,
|
|
@@ -34253,22 +34253,22 @@ ${c}
|
|
|
34253
34253
|
compactType: G,
|
|
34254
34254
|
preventCollision: q,
|
|
34255
34255
|
rowHeight: Z,
|
|
34256
|
-
onLayoutChange:
|
|
34257
|
-
droppingItem:
|
|
34258
|
-
onDrop:
|
|
34259
|
-
onDragStart:
|
|
34260
|
-
onDrag:
|
|
34261
|
-
onDragStop:
|
|
34262
|
-
onResizeStop:
|
|
34263
|
-
isDraggable:
|
|
34264
|
-
isDroppable:
|
|
34265
|
-
isResizable:
|
|
34266
|
-
draggableHandle:
|
|
34267
|
-
children:
|
|
34268
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = Z, r[91] =
|
|
34269
|
-
let
|
|
34270
|
-
if (r[108] !== u || r[109] !==
|
|
34271
|
-
|
|
34256
|
+
onLayoutChange: QW,
|
|
34257
|
+
droppingItem: $W,
|
|
34258
|
+
onDrop: eG,
|
|
34259
|
+
onDragStart: tG,
|
|
34260
|
+
onDrag: nG,
|
|
34261
|
+
onDragStop: rG,
|
|
34262
|
+
onResizeStop: iG,
|
|
34263
|
+
isDraggable: aG,
|
|
34264
|
+
isDroppable: oG,
|
|
34265
|
+
isResizable: sG,
|
|
34266
|
+
draggableHandle: cG,
|
|
34267
|
+
children: lG
|
|
34268
|
+
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = Z, r[91] = QW, r[92] = $W, r[93] = eG, r[94] = tG, r[95] = nG, r[96] = rG, r[97] = iG, r[98] = aG, r[99] = oG, r[100] = sG, r[101] = cG, r[102] = lG, r[103] = uG, r[104] = dG, r[105] = fG, r[106] = pG, r[107] = mG) : mG = r[107];
|
|
34269
|
+
let hG = mG, gG, _G, vG, yG, bG, xG, SG;
|
|
34270
|
+
if (r[108] !== u || r[109] !== hG || r[110] !== m || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
34271
|
+
SG = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
34272
34272
|
bb0: {
|
|
34273
34273
|
let e2;
|
|
34274
34274
|
r[125] === m ? e2 = r[126] : (e2 = (e3) => !m.has(e3.id), r[125] = m, r[126] = e2);
|
|
@@ -34276,14 +34276,14 @@ ${c}
|
|
|
34276
34276
|
if (f) {
|
|
34277
34277
|
if (c.bordered) {
|
|
34278
34278
|
let e4;
|
|
34279
|
-
r[127] !==
|
|
34279
|
+
r[127] !== hG || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
34280
34280
|
className: "flex flex-1 flex-col items-center",
|
|
34281
34281
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
34282
34282
|
style: L,
|
|
34283
34283
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
34284
|
-
children:
|
|
34284
|
+
children: hG
|
|
34285
34285
|
})
|
|
34286
|
-
}), r[127] =
|
|
34286
|
+
}), r[127] = hG, r[128] = L, r[129] = e4) : e4 = r[129], hG = e4;
|
|
34287
34287
|
}
|
|
34288
34288
|
let e3 = p2.filter(_temp4$2), l2;
|
|
34289
34289
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -34295,9 +34295,9 @@ ${c}
|
|
|
34295
34295
|
stale: outputIsStale(e4, false),
|
|
34296
34296
|
isScrollable: false,
|
|
34297
34297
|
hidden: false
|
|
34298
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
34298
|
+
}, e4.id), r[130] = d, r[131] = l2), SG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34299
34299
|
children: [
|
|
34300
|
-
|
|
34300
|
+
hG,
|
|
34301
34301
|
(0, import_jsx_runtime.jsx)("div", {
|
|
34302
34302
|
className: "hidden",
|
|
34303
34303
|
children: e3.map(l2)
|
|
@@ -34308,31 +34308,31 @@ ${c}
|
|
|
34308
34308
|
}
|
|
34309
34309
|
if (c.bordered) {
|
|
34310
34310
|
let e3;
|
|
34311
|
-
r[132] ===
|
|
34311
|
+
r[132] === hG ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
34312
34312
|
className: "h-full overflow-auto",
|
|
34313
|
-
children:
|
|
34314
|
-
}), r[132] =
|
|
34313
|
+
children: hG
|
|
34314
|
+
}), r[132] = hG, r[133] = e3);
|
|
34315
34315
|
let c2;
|
|
34316
34316
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
34317
34317
|
style: L,
|
|
34318
34318
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
34319
34319
|
children: e3
|
|
34320
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
34320
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], hG = c2;
|
|
34321
34321
|
}
|
|
34322
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
34322
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (xG = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
34323
34323
|
layout: c,
|
|
34324
34324
|
setLayout: l,
|
|
34325
34325
|
isLocked: v,
|
|
34326
34326
|
setIsLocked: y
|
|
34327
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
34327
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = xG) : xG = r[140];
|
|
34328
34328
|
let g2;
|
|
34329
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34329
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (yG = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = yG, r[142] = g2) : (yG = r[141], g2 = r[142]), r[143] === hG ? bG = r[144] : (bG = (0, import_jsx_runtime.jsx)("div", {
|
|
34330
34330
|
className: g2,
|
|
34331
|
-
children:
|
|
34332
|
-
}), r[143] =
|
|
34331
|
+
children: hG
|
|
34332
|
+
}), r[143] = hG, r[144] = bG), gG = "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") ? (_G = (0, import_jsx_runtime.jsx)("div", {
|
|
34333
34333
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
34334
34334
|
children: "Outputs"
|
|
34335
|
-
}), r[145] =
|
|
34335
|
+
}), r[145] = _G) : _G = r[145];
|
|
34336
34336
|
let b2;
|
|
34337
34337
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
34338
34338
|
draggable: true,
|
|
@@ -34358,34 +34358,34 @@ ${c}
|
|
|
34358
34358
|
stale: outputIsStale(e3, false),
|
|
34359
34359
|
hidden: false
|
|
34360
34360
|
})
|
|
34361
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
34362
|
-
}
|
|
34363
|
-
r[108] = u, r[109] =
|
|
34364
|
-
} else
|
|
34365
|
-
if (
|
|
34366
|
-
let SG;
|
|
34367
|
-
r[150] !== hG || r[151] !== gG || r[152] !== _G ? (SG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34368
|
-
className: hG,
|
|
34369
|
-
children: [
|
|
34370
|
-
gG,
|
|
34371
|
-
_G
|
|
34372
|
-
]
|
|
34373
|
-
}), r[150] = hG, r[151] = gG, r[152] = _G, r[153] = SG) : SG = r[153];
|
|
34361
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], vG = p2.map(b2);
|
|
34362
|
+
}
|
|
34363
|
+
r[108] = u, r[109] = hG, r[110] = m, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = gG, r[118] = _G, r[119] = vG, r[120] = yG, r[121] = bG, r[122] = xG, r[123] = SG, r[124] = hG;
|
|
34364
|
+
} else gG = r[117], _G = r[118], vG = r[119], yG = r[120], bG = r[121], xG = r[122], SG = r[123], hG = r[124];
|
|
34365
|
+
if (SG !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return SG;
|
|
34374
34366
|
let CG;
|
|
34375
|
-
r[
|
|
34376
|
-
className:
|
|
34367
|
+
r[150] !== gG || r[151] !== _G || r[152] !== vG ? (CG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34368
|
+
className: gG,
|
|
34377
34369
|
children: [
|
|
34378
|
-
|
|
34379
|
-
|
|
34370
|
+
_G,
|
|
34371
|
+
vG
|
|
34380
34372
|
]
|
|
34381
|
-
}), r[
|
|
34373
|
+
}), r[150] = gG, r[151] = _G, r[152] = vG, r[153] = CG) : CG = r[153];
|
|
34382
34374
|
let wG;
|
|
34383
|
-
|
|
34375
|
+
r[154] !== yG || r[155] !== bG || r[156] !== CG ? (wG = (0, import_jsx_runtime.jsxs)("div", {
|
|
34376
|
+
className: yG,
|
|
34384
34377
|
children: [
|
|
34385
34378
|
bG,
|
|
34386
34379
|
CG
|
|
34387
34380
|
]
|
|
34388
|
-
}), r[
|
|
34381
|
+
}), r[154] = yG, r[155] = bG, r[156] = CG, r[157] = wG) : wG = r[157];
|
|
34382
|
+
let TG;
|
|
34383
|
+
return r[158] !== xG || r[159] !== wG ? (TG = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
34384
|
+
children: [
|
|
34385
|
+
xG,
|
|
34386
|
+
wG
|
|
34387
|
+
]
|
|
34388
|
+
}), r[158] = xG, r[159] = wG, r[160] = TG) : TG = r[160], TG;
|
|
34389
34389
|
};
|
|
34390
34390
|
var GridCell = (0, import_react.memo)((e) => {
|
|
34391
34391
|
let r = (0, import_compiler_runtime$13.c)(21), { output: c, cellId: l, status: u, mode: d, code: f, hidden: p, isScrollable: m, side: g, className: _, stale: v } = e, y;
|
|
@@ -34695,8 +34695,8 @@ ${c}
|
|
|
34695
34695
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34696
34696
|
onClick: () => l()
|
|
34697
34697
|
}), r[36] = l, r[37] = Z);
|
|
34698
|
-
let
|
|
34699
|
-
return r[38] !== M || r[39] !== G || r[40] !== Z || r[41] !== S ? (
|
|
34698
|
+
let QW;
|
|
34699
|
+
return r[38] !== M || r[39] !== G || r[40] !== Z || r[41] !== S ? (QW = (0, import_jsx_runtime.jsxs)("div", {
|
|
34700
34700
|
className: S,
|
|
34701
34701
|
children: [
|
|
34702
34702
|
M,
|
|
@@ -34704,7 +34704,7 @@ ${c}
|
|
|
34704
34704
|
q,
|
|
34705
34705
|
Z
|
|
34706
34706
|
]
|
|
34707
|
-
}), r[38] = M, r[39] = G, r[40] = Z, r[41] = S, r[42] =
|
|
34707
|
+
}), r[38] = M, r[39] = G, r[40] = Z, r[41] = S, r[42] = QW) : QW = r[42], QW;
|
|
34708
34708
|
};
|
|
34709
34709
|
function isSidebarCell(e) {
|
|
34710
34710
|
var _a5;
|
|
@@ -36710,29 +36710,29 @@ ${c}
|
|
|
36710
36710
|
M
|
|
36711
36711
|
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r), Z = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
36712
36712
|
j
|
|
36713
|
-
]),
|
|
36713
|
+
]), QW = useMeasuringConfiguration(p), { droppableRects: $W, measureDroppableContainers: eG, measuringScheduled: tG } = useDroppableMeasuring(Z, {
|
|
36714
36714
|
dragging: w,
|
|
36715
36715
|
dependencies: [
|
|
36716
36716
|
O.x,
|
|
36717
36717
|
O.y
|
|
36718
36718
|
],
|
|
36719
|
-
config:
|
|
36720
|
-
}),
|
|
36719
|
+
config: QW.droppable
|
|
36720
|
+
}), nG = useCachedNode(E, T), rG = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36721
36721
|
H
|
|
36722
|
-
]),
|
|
36722
|
+
]), iG = FG(), aG = useInitialRect(nG, QW.draggable.measure);
|
|
36723
36723
|
useLayoutShiftScrollCompensation({
|
|
36724
36724
|
activeNode: T == null ? null : E.get(T),
|
|
36725
|
-
config:
|
|
36726
|
-
initialRect:
|
|
36727
|
-
measure:
|
|
36725
|
+
config: iG.layoutShiftCompensation,
|
|
36726
|
+
initialRect: aG,
|
|
36727
|
+
measure: QW.draggable.measure
|
|
36728
36728
|
});
|
|
36729
|
-
let
|
|
36729
|
+
let oG = useRect(nG, QW.draggable.measure, aG), sG = useRect(nG ? nG.parentElement : null), cG = (0, import_react.useRef)({
|
|
36730
36730
|
activatorEvent: null,
|
|
36731
36731
|
active: null,
|
|
36732
|
-
activeNode:
|
|
36732
|
+
activeNode: nG,
|
|
36733
36733
|
collisionRect: null,
|
|
36734
36734
|
collisions: null,
|
|
36735
|
-
droppableRects:
|
|
36735
|
+
droppableRects: $W,
|
|
36736
36736
|
draggableNodes: E,
|
|
36737
36737
|
draggingNode: null,
|
|
36738
36738
|
draggingNodeRect: null,
|
|
@@ -36740,45 +36740,45 @@ ${c}
|
|
|
36740
36740
|
over: null,
|
|
36741
36741
|
scrollableAncestors: [],
|
|
36742
36742
|
scrollAdjustedTranslate: null
|
|
36743
|
-
}),
|
|
36744
|
-
measure:
|
|
36745
|
-
}),
|
|
36743
|
+
}), lG = j.getNodeFor((_a5 = cG.current.over) == null ? void 0 : _a5.id), uG = useDragOverlayMeasuring({
|
|
36744
|
+
measure: QW.dragOverlay.measure
|
|
36745
|
+
}), dG = uG.nodeRef.current ?? nG, fG = w ? uG.rect ?? oG : null, pG = !!(uG.nodeRef.current && uG.rect), mG = useRectDelta(pG ? null : oG), hG = useWindowRect(dG ? getWindow(dG) : null), gG = useScrollableAncestors(w ? lG ?? nG : null), _G = useRects(gG), vG = applyModifiers(m, {
|
|
36746
36746
|
transform: {
|
|
36747
|
-
x: O.x -
|
|
36748
|
-
y: O.y -
|
|
36747
|
+
x: O.x - mG.x,
|
|
36748
|
+
y: O.y - mG.y,
|
|
36749
36749
|
scaleX: 1,
|
|
36750
36750
|
scaleY: 1
|
|
36751
36751
|
},
|
|
36752
36752
|
activatorEvent: H,
|
|
36753
36753
|
active: L,
|
|
36754
|
-
activeNodeRect:
|
|
36755
|
-
containerNodeRect:
|
|
36756
|
-
draggingNodeRect:
|
|
36757
|
-
over:
|
|
36758
|
-
overlayNodeRect:
|
|
36759
|
-
scrollableAncestors:
|
|
36760
|
-
scrollableAncestorRects:
|
|
36761
|
-
windowRect:
|
|
36762
|
-
}),
|
|
36763
|
-
|
|
36764
|
-
]),
|
|
36754
|
+
activeNodeRect: oG,
|
|
36755
|
+
containerNodeRect: sG,
|
|
36756
|
+
draggingNodeRect: fG,
|
|
36757
|
+
over: cG.current.over,
|
|
36758
|
+
overlayNodeRect: uG.rect,
|
|
36759
|
+
scrollableAncestors: gG,
|
|
36760
|
+
scrollableAncestorRects: _G,
|
|
36761
|
+
windowRect: hG
|
|
36762
|
+
}), yG = rG ? add(rG, O) : null, bG = useScrollOffsets(gG), xG = useScrollOffsetsDelta(bG), SG = useScrollOffsetsDelta(bG, [
|
|
36763
|
+
oG
|
|
36764
|
+
]), CG = add(vG, xG), wG = fG ? getAdjustedRect(fG, vG) : null, TG = L && wG ? f({
|
|
36765
36765
|
active: L,
|
|
36766
|
-
collisionRect:
|
|
36767
|
-
droppableRects:
|
|
36766
|
+
collisionRect: wG,
|
|
36767
|
+
droppableRects: $W,
|
|
36768
36768
|
droppableContainers: Z,
|
|
36769
|
-
pointerCoordinates:
|
|
36770
|
-
}) : null,
|
|
36769
|
+
pointerCoordinates: yG
|
|
36770
|
+
}) : null, EG = getFirstCollision(TG, "id"), [DG, OG] = (0, import_react.useState)(null), kG = adjustScale(pG ? vG : add(vG, SG), (DG == null ? void 0 : DG.rect) ?? null, oG), AG = (0, import_react.useRef)(null), jG = (0, import_react.useCallback)((e2, r2) => {
|
|
36771
36771
|
let { sensor: c2, options: l2 } = r2;
|
|
36772
36772
|
if (R.current == null) return;
|
|
36773
36773
|
let u2 = E.get(R.current);
|
|
36774
36774
|
if (!u2) return;
|
|
36775
36775
|
let d2 = e2.nativeEvent;
|
|
36776
|
-
|
|
36776
|
+
AG.current = new c2({
|
|
36777
36777
|
active: R.current,
|
|
36778
36778
|
activeNode: u2,
|
|
36779
36779
|
event: d2,
|
|
36780
36780
|
options: l2,
|
|
36781
|
-
context:
|
|
36781
|
+
context: cG,
|
|
36782
36782
|
onAbort(e3) {
|
|
36783
36783
|
if (!E.get(e3)) return;
|
|
36784
36784
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -36823,7 +36823,7 @@ ${c}
|
|
|
36823
36823
|
}), v({
|
|
36824
36824
|
type: "onDragStart",
|
|
36825
36825
|
event: u3
|
|
36826
|
-
}), B(
|
|
36826
|
+
}), B(AG.current), W(d2);
|
|
36827
36827
|
});
|
|
36828
36828
|
},
|
|
36829
36829
|
onMove(e3) {
|
|
@@ -36837,7 +36837,7 @@ ${c}
|
|
|
36837
36837
|
});
|
|
36838
36838
|
function f2(e3) {
|
|
36839
36839
|
return async function() {
|
|
36840
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
36840
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = cG.current, f3 = null;
|
|
36841
36841
|
if (r3 && u3) {
|
|
36842
36842
|
let { cancelDrop: p2 } = G.current;
|
|
36843
36843
|
f3 = {
|
|
@@ -36851,7 +36851,7 @@ ${c}
|
|
|
36851
36851
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36852
36852
|
_({
|
|
36853
36853
|
type: e3
|
|
36854
|
-
}), S(Status.Uninitialized),
|
|
36854
|
+
}), S(Status.Uninitialized), OG(null), B(null), W(null), AG.current = null;
|
|
36855
36855
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
36856
36856
|
if (f3) {
|
|
36857
36857
|
let e4 = G.current[r4];
|
|
@@ -36865,7 +36865,7 @@ ${c}
|
|
|
36865
36865
|
}
|
|
36866
36866
|
}, [
|
|
36867
36867
|
E
|
|
36868
|
-
]),
|
|
36868
|
+
]), MG = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
36869
36869
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
36870
36870
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
36871
36871
|
let f2 = {
|
|
@@ -36873,26 +36873,26 @@ ${c}
|
|
|
36873
36873
|
};
|
|
36874
36874
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
36875
36875
|
capturedBy: r2.sensor
|
|
36876
|
-
}, R.current = l2,
|
|
36876
|
+
}, R.current = l2, jG(c2, r2));
|
|
36877
36877
|
}, [
|
|
36878
36878
|
E,
|
|
36879
|
-
|
|
36879
|
+
jG
|
|
36880
36880
|
]));
|
|
36881
36881
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
36882
|
-
|
|
36882
|
+
oG && b === Status.Initializing && S(Status.Initialized);
|
|
36883
36883
|
}, [
|
|
36884
|
-
|
|
36884
|
+
oG,
|
|
36885
36885
|
b
|
|
36886
36886
|
]), (0, import_react.useEffect)(() => {
|
|
36887
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
36887
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = cG.current;
|
|
36888
36888
|
if (!r2 || !c2) return;
|
|
36889
36889
|
let d2 = {
|
|
36890
36890
|
active: r2,
|
|
36891
36891
|
activatorEvent: c2,
|
|
36892
36892
|
collisions: l2,
|
|
36893
36893
|
delta: {
|
|
36894
|
-
x:
|
|
36895
|
-
y:
|
|
36894
|
+
x: CG.x,
|
|
36895
|
+
y: CG.y
|
|
36896
36896
|
},
|
|
36897
36897
|
over: u2
|
|
36898
36898
|
};
|
|
@@ -36903,12 +36903,12 @@ ${c}
|
|
|
36903
36903
|
});
|
|
36904
36904
|
});
|
|
36905
36905
|
}, [
|
|
36906
|
-
|
|
36907
|
-
|
|
36906
|
+
CG.x,
|
|
36907
|
+
CG.y
|
|
36908
36908
|
]), (0, import_react.useEffect)(() => {
|
|
36909
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
36909
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = cG.current;
|
|
36910
36910
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
36911
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
36911
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(EG), p2 = f2 && f2.rect.current ? {
|
|
36912
36912
|
id: f2.id,
|
|
36913
36913
|
rect: f2.rect.current,
|
|
36914
36914
|
data: f2.data,
|
|
@@ -36924,127 +36924,127 @@ ${c}
|
|
|
36924
36924
|
over: p2
|
|
36925
36925
|
};
|
|
36926
36926
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
36927
|
-
|
|
36927
|
+
OG(p2), d2 == null ? void 0 : d2(m2), v({
|
|
36928
36928
|
type: "onDragOver",
|
|
36929
36929
|
event: m2
|
|
36930
36930
|
});
|
|
36931
36931
|
});
|
|
36932
36932
|
}, [
|
|
36933
|
-
|
|
36933
|
+
EG
|
|
36934
36934
|
]), useIsomorphicLayoutEffect(() => {
|
|
36935
|
-
|
|
36935
|
+
cG.current = {
|
|
36936
36936
|
activatorEvent: H,
|
|
36937
36937
|
active: L,
|
|
36938
|
-
activeNode:
|
|
36939
|
-
collisionRect:
|
|
36940
|
-
collisions:
|
|
36941
|
-
droppableRects:
|
|
36938
|
+
activeNode: nG,
|
|
36939
|
+
collisionRect: wG,
|
|
36940
|
+
collisions: TG,
|
|
36941
|
+
droppableRects: $W,
|
|
36942
36942
|
draggableNodes: E,
|
|
36943
|
-
draggingNode:
|
|
36944
|
-
draggingNodeRect:
|
|
36943
|
+
draggingNode: dG,
|
|
36944
|
+
draggingNodeRect: fG,
|
|
36945
36945
|
droppableContainers: j,
|
|
36946
|
-
over:
|
|
36947
|
-
scrollableAncestors:
|
|
36948
|
-
scrollAdjustedTranslate:
|
|
36946
|
+
over: DG,
|
|
36947
|
+
scrollableAncestors: gG,
|
|
36948
|
+
scrollAdjustedTranslate: CG
|
|
36949
36949
|
}, I.current = {
|
|
36950
|
-
initial:
|
|
36951
|
-
translated:
|
|
36950
|
+
initial: fG,
|
|
36951
|
+
translated: wG
|
|
36952
36952
|
};
|
|
36953
36953
|
}, [
|
|
36954
36954
|
L,
|
|
36955
|
-
|
|
36955
|
+
nG,
|
|
36956
|
+
TG,
|
|
36956
36957
|
wG,
|
|
36957
|
-
CG,
|
|
36958
36958
|
E,
|
|
36959
|
-
uG,
|
|
36960
36959
|
dG,
|
|
36961
|
-
|
|
36960
|
+
fG,
|
|
36961
|
+
$W,
|
|
36962
36962
|
j,
|
|
36963
|
-
|
|
36964
|
-
|
|
36965
|
-
|
|
36963
|
+
DG,
|
|
36964
|
+
gG,
|
|
36965
|
+
CG
|
|
36966
36966
|
]), useAutoScroller({
|
|
36967
|
-
...
|
|
36967
|
+
...iG,
|
|
36968
36968
|
delta: O,
|
|
36969
|
-
draggingRect:
|
|
36970
|
-
pointerCoordinates:
|
|
36971
|
-
scrollableAncestors:
|
|
36972
|
-
scrollableAncestorRects:
|
|
36969
|
+
draggingRect: wG,
|
|
36970
|
+
pointerCoordinates: yG,
|
|
36971
|
+
scrollableAncestors: gG,
|
|
36972
|
+
scrollableAncestorRects: _G
|
|
36973
36973
|
});
|
|
36974
|
-
let
|
|
36974
|
+
let NG = (0, import_react.useMemo)(() => ({
|
|
36975
36975
|
active: L,
|
|
36976
|
-
activeNode:
|
|
36977
|
-
activeNodeRect:
|
|
36976
|
+
activeNode: nG,
|
|
36977
|
+
activeNodeRect: oG,
|
|
36978
36978
|
activatorEvent: H,
|
|
36979
|
-
collisions:
|
|
36980
|
-
containerNodeRect:
|
|
36981
|
-
dragOverlay:
|
|
36979
|
+
collisions: TG,
|
|
36980
|
+
containerNodeRect: sG,
|
|
36981
|
+
dragOverlay: uG,
|
|
36982
36982
|
draggableNodes: E,
|
|
36983
36983
|
droppableContainers: j,
|
|
36984
|
-
droppableRects:
|
|
36985
|
-
over:
|
|
36986
|
-
measureDroppableContainers:
|
|
36987
|
-
scrollableAncestors:
|
|
36988
|
-
scrollableAncestorRects:
|
|
36989
|
-
measuringConfiguration:
|
|
36990
|
-
measuringScheduled:
|
|
36991
|
-
windowRect:
|
|
36984
|
+
droppableRects: $W,
|
|
36985
|
+
over: DG,
|
|
36986
|
+
measureDroppableContainers: eG,
|
|
36987
|
+
scrollableAncestors: gG,
|
|
36988
|
+
scrollableAncestorRects: _G,
|
|
36989
|
+
measuringConfiguration: QW,
|
|
36990
|
+
measuringScheduled: tG,
|
|
36991
|
+
windowRect: hG
|
|
36992
36992
|
}), [
|
|
36993
36993
|
L,
|
|
36994
|
-
|
|
36995
|
-
aG,
|
|
36996
|
-
H,
|
|
36997
|
-
wG,
|
|
36994
|
+
nG,
|
|
36998
36995
|
oG,
|
|
36999
|
-
|
|
36996
|
+
H,
|
|
36997
|
+
TG,
|
|
36998
|
+
sG,
|
|
36999
|
+
uG,
|
|
37000
37000
|
E,
|
|
37001
37001
|
j,
|
|
37002
|
-
QW,
|
|
37003
|
-
EG,
|
|
37004
37002
|
$W,
|
|
37005
|
-
|
|
37006
|
-
gG,
|
|
37007
|
-
ZW,
|
|
37003
|
+
DG,
|
|
37008
37004
|
eG,
|
|
37009
|
-
|
|
37010
|
-
|
|
37005
|
+
gG,
|
|
37006
|
+
_G,
|
|
37007
|
+
QW,
|
|
37008
|
+
tG,
|
|
37009
|
+
hG
|
|
37010
|
+
]), PG = (0, import_react.useMemo)(() => ({
|
|
37011
37011
|
activatorEvent: H,
|
|
37012
|
-
activators:
|
|
37012
|
+
activators: MG,
|
|
37013
37013
|
active: L,
|
|
37014
|
-
activeNodeRect:
|
|
37014
|
+
activeNodeRect: oG,
|
|
37015
37015
|
ariaDescribedById: {
|
|
37016
37016
|
draggable: q
|
|
37017
37017
|
},
|
|
37018
37018
|
dispatch: _,
|
|
37019
37019
|
draggableNodes: E,
|
|
37020
|
-
over:
|
|
37021
|
-
measureDroppableContainers:
|
|
37020
|
+
over: DG,
|
|
37021
|
+
measureDroppableContainers: eG
|
|
37022
37022
|
}), [
|
|
37023
37023
|
H,
|
|
37024
|
-
|
|
37024
|
+
MG,
|
|
37025
37025
|
L,
|
|
37026
|
-
|
|
37026
|
+
oG,
|
|
37027
37027
|
_,
|
|
37028
37028
|
q,
|
|
37029
37029
|
E,
|
|
37030
|
-
|
|
37031
|
-
|
|
37030
|
+
DG,
|
|
37031
|
+
eG
|
|
37032
37032
|
]);
|
|
37033
37033
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
37034
37034
|
value: y
|
|
37035
37035
|
}, import_react.createElement(InternalContext.Provider, {
|
|
37036
|
-
value:
|
|
37036
|
+
value: PG
|
|
37037
37037
|
}, import_react.createElement(PublicContext.Provider, {
|
|
37038
|
-
value:
|
|
37038
|
+
value: NG
|
|
37039
37039
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
37040
|
-
value:
|
|
37040
|
+
value: kG
|
|
37041
37041
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
37042
37042
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
37043
37043
|
})), import_react.createElement(Accessibility, {
|
|
37044
37044
|
...c,
|
|
37045
37045
|
hiddenTextDescribedById: q
|
|
37046
37046
|
}));
|
|
37047
|
-
function
|
|
37047
|
+
function FG() {
|
|
37048
37048
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
37049
37049
|
return typeof l == "object" ? {
|
|
37050
37050
|
...l,
|
|
@@ -37572,7 +37572,7 @@ ${c}
|
|
|
37572
37572
|
updateMeasurementsFor: I,
|
|
37573
37573
|
...m
|
|
37574
37574
|
}
|
|
37575
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: Z, listeners:
|
|
37575
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: Z, listeners: QW, isDragging: $W, over: eG, setActivatorNodeRef: tG, transform: nG } = useDraggable({
|
|
37576
37576
|
id: f,
|
|
37577
37577
|
data: M,
|
|
37578
37578
|
attributes: {
|
|
@@ -37580,60 +37580,60 @@ ${c}
|
|
|
37580
37580
|
...c
|
|
37581
37581
|
},
|
|
37582
37582
|
disabled: O.draggable
|
|
37583
|
-
}),
|
|
37583
|
+
}), rG = useCombinedRefs(B, Z), iG = !!H, aG = iG && !b && isValidIndex(v) && isValidIndex(w), oG = !T && $W, sG = aG ? (oG && aG ? nG : null) ?? (p ?? E)({
|
|
37584
37584
|
rects: S,
|
|
37585
37585
|
activeNodeRect: G,
|
|
37586
37586
|
activeIndex: v,
|
|
37587
37587
|
overIndex: w,
|
|
37588
37588
|
index: j
|
|
37589
|
-
}) : null,
|
|
37589
|
+
}) : null, cG = isValidIndex(v) && isValidIndex(w) ? d({
|
|
37590
37590
|
id: f,
|
|
37591
37591
|
items: g,
|
|
37592
37592
|
activeIndex: v,
|
|
37593
37593
|
overIndex: w
|
|
37594
|
-
}) : j,
|
|
37595
|
-
activeId:
|
|
37594
|
+
}) : j, lG = H == null ? void 0 : H.id, uG = (0, import_react.useRef)({
|
|
37595
|
+
activeId: lG,
|
|
37596
37596
|
items: g,
|
|
37597
|
-
newIndex:
|
|
37597
|
+
newIndex: cG,
|
|
37598
37598
|
containerId: _
|
|
37599
|
-
}),
|
|
37599
|
+
}), dG = g !== uG.current.items, fG = r({
|
|
37600
37600
|
active: H,
|
|
37601
37601
|
containerId: _,
|
|
37602
|
-
isDragging:
|
|
37603
|
-
isSorting:
|
|
37602
|
+
isDragging: $W,
|
|
37603
|
+
isSorting: iG,
|
|
37604
37604
|
id: f,
|
|
37605
37605
|
index: j,
|
|
37606
37606
|
items: g,
|
|
37607
|
-
newIndex:
|
|
37608
|
-
previousItems:
|
|
37609
|
-
previousContainerId:
|
|
37607
|
+
newIndex: uG.current.newIndex,
|
|
37608
|
+
previousItems: uG.current.items,
|
|
37609
|
+
previousContainerId: uG.current.containerId,
|
|
37610
37610
|
transition: h,
|
|
37611
|
-
wasDragging:
|
|
37612
|
-
}),
|
|
37613
|
-
disabled: !
|
|
37611
|
+
wasDragging: uG.current.activeId != null
|
|
37612
|
+
}), pG = useDerivedTransform({
|
|
37613
|
+
disabled: !fG,
|
|
37614
37614
|
index: j,
|
|
37615
37615
|
node: R,
|
|
37616
37616
|
rect: L
|
|
37617
37617
|
});
|
|
37618
37618
|
return (0, import_react.useEffect)(() => {
|
|
37619
|
-
|
|
37619
|
+
iG && uG.current.newIndex !== cG && (uG.current.newIndex = cG), _ !== uG.current.containerId && (uG.current.containerId = _), g !== uG.current.items && (uG.current.items = g);
|
|
37620
37620
|
}, [
|
|
37621
|
-
|
|
37622
|
-
|
|
37621
|
+
iG,
|
|
37622
|
+
cG,
|
|
37623
37623
|
_,
|
|
37624
37624
|
g
|
|
37625
37625
|
]), (0, import_react.useEffect)(() => {
|
|
37626
|
-
if (
|
|
37627
|
-
if (
|
|
37628
|
-
|
|
37626
|
+
if (lG === uG.current.activeId) return;
|
|
37627
|
+
if (lG != null && uG.current.activeId == null) {
|
|
37628
|
+
uG.current.activeId = lG;
|
|
37629
37629
|
return;
|
|
37630
37630
|
}
|
|
37631
37631
|
let e2 = setTimeout(() => {
|
|
37632
|
-
|
|
37632
|
+
uG.current.activeId = lG;
|
|
37633
37633
|
}, 50);
|
|
37634
37634
|
return () => clearTimeout(e2);
|
|
37635
37635
|
}, [
|
|
37636
|
-
|
|
37636
|
+
lG
|
|
37637
37637
|
]), {
|
|
37638
37638
|
active: H,
|
|
37639
37639
|
activeIndex: v,
|
|
@@ -37641,25 +37641,25 @@ ${c}
|
|
|
37641
37641
|
data: M,
|
|
37642
37642
|
rect: L,
|
|
37643
37643
|
index: j,
|
|
37644
|
-
newIndex:
|
|
37644
|
+
newIndex: cG,
|
|
37645
37645
|
items: g,
|
|
37646
37646
|
isOver: z,
|
|
37647
|
-
isSorting:
|
|
37648
|
-
isDragging:
|
|
37649
|
-
listeners:
|
|
37647
|
+
isSorting: iG,
|
|
37648
|
+
isDragging: $W,
|
|
37649
|
+
listeners: QW,
|
|
37650
37650
|
node: R,
|
|
37651
37651
|
overIndex: w,
|
|
37652
|
-
over:
|
|
37653
|
-
setNodeRef:
|
|
37654
|
-
setActivatorNodeRef:
|
|
37652
|
+
over: eG,
|
|
37653
|
+
setNodeRef: rG,
|
|
37654
|
+
setActivatorNodeRef: tG,
|
|
37655
37655
|
setDroppableNodeRef: B,
|
|
37656
37656
|
setDraggableNodeRef: Z,
|
|
37657
|
-
transform:
|
|
37658
|
-
transition:
|
|
37657
|
+
transform: pG ?? sG,
|
|
37658
|
+
transition: mG()
|
|
37659
37659
|
};
|
|
37660
|
-
function
|
|
37661
|
-
if (
|
|
37662
|
-
if (!(
|
|
37660
|
+
function mG() {
|
|
37661
|
+
if (pG || dG && uG.current.newIndex === j) return disabledTransition;
|
|
37662
|
+
if (!(oG && !isKeyboardEvent(W) || !h) && (iG || fG)) return CSS$1.Transition.toString({
|
|
37663
37663
|
...h,
|
|
37664
37664
|
property: transitionProperty
|
|
37665
37665
|
});
|
|
@@ -37961,13 +37961,13 @@ ${c}
|
|
|
37961
37961
|
}), r[35] = c.id, r[36] = m, r[37] = y, r[38] = b, r[39] = I, r[40] = z, r[41] = B, r[42] = H, r[43] = W, r[44] = G, r[45] = q) : q = r[45];
|
|
37962
37962
|
let Z = q;
|
|
37963
37963
|
if (!v && !g) return Z;
|
|
37964
|
-
let
|
|
37965
|
-
r[46] === Z ?
|
|
37964
|
+
let QW;
|
|
37965
|
+
r[46] === Z ? QW = r[47] : (QW = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
37966
37966
|
asChild: true,
|
|
37967
37967
|
children: Z
|
|
37968
|
-
}), r[46] = Z, r[47] =
|
|
37969
|
-
let
|
|
37970
|
-
r[48] === v ?
|
|
37968
|
+
}), r[46] = Z, r[47] = QW);
|
|
37969
|
+
let $W;
|
|
37970
|
+
r[48] === v ? $W = r[49] : ($W = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37971
37971
|
onSelect: v,
|
|
37972
37972
|
children: [
|
|
37973
37973
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -37975,11 +37975,11 @@ ${c}
|
|
|
37975
37975
|
}),
|
|
37976
37976
|
"Add cell"
|
|
37977
37977
|
]
|
|
37978
|
-
}), r[48] = v, r[49] =
|
|
37979
|
-
let $W;
|
|
37980
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($W = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = $W) : $W = r[50];
|
|
37978
|
+
}), r[48] = v, r[49] = $W);
|
|
37981
37979
|
let eG;
|
|
37982
|
-
r[
|
|
37980
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (eG = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = eG) : eG = r[50];
|
|
37981
|
+
let tG;
|
|
37982
|
+
r[51] === g ? tG = r[52] : (tG = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
37983
37983
|
variant: "danger",
|
|
37984
37984
|
onSelect: g,
|
|
37985
37985
|
children: [
|
|
@@ -37988,22 +37988,22 @@ ${c}
|
|
|
37988
37988
|
}),
|
|
37989
37989
|
"Delete cell"
|
|
37990
37990
|
]
|
|
37991
|
-
}), r[51] = g, r[52] =
|
|
37992
|
-
let
|
|
37993
|
-
r[53] !==
|
|
37991
|
+
}), r[51] = g, r[52] = tG);
|
|
37992
|
+
let nG;
|
|
37993
|
+
r[53] !== $W || r[54] !== tG ? (nG = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
37994
37994
|
children: [
|
|
37995
|
-
QW,
|
|
37996
37995
|
$W,
|
|
37997
|
-
eG
|
|
37996
|
+
eG,
|
|
37997
|
+
tG
|
|
37998
37998
|
]
|
|
37999
|
-
}), r[53] =
|
|
38000
|
-
let
|
|
38001
|
-
return r[56] !==
|
|
37999
|
+
}), r[53] = $W, r[54] = tG, r[55] = nG) : nG = r[55];
|
|
38000
|
+
let rG;
|
|
38001
|
+
return r[56] !== QW || r[57] !== nG ? (rG = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
38002
38002
|
children: [
|
|
38003
|
-
|
|
38004
|
-
|
|
38003
|
+
QW,
|
|
38004
|
+
nG
|
|
38005
38005
|
]
|
|
38006
|
-
}), r[56] =
|
|
38006
|
+
}), r[56] = QW, r[57] = nG, r[58] = rG) : rG = r[58], rG;
|
|
38007
38007
|
}, InsertCellLine = (e) => {
|
|
38008
38008
|
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;
|
|
38009
38009
|
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);
|
|
@@ -38057,10 +38057,10 @@ ${c}
|
|
|
38057
38057
|
...B,
|
|
38058
38058
|
...m
|
|
38059
38059
|
}, r[20] = M, r[21] = m, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
38060
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", Z = w && !T && "opacity-35",
|
|
38061
|
-
r[25] !== l || r[26] !== Z || r[27] !==
|
|
38062
|
-
let
|
|
38063
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
38060
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", Z = w && !T && "opacity-35", QW = T && "opacity-95 shadow-lg", $W;
|
|
38061
|
+
r[25] !== l || r[26] !== Z || r[27] !== QW || r[28] !== q ? ($W = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, Z, QW, l), r[25] = l, r[26] = Z, r[27] = QW, r[28] = q, r[29] = $W) : $W = r[29];
|
|
38062
|
+
let eG;
|
|
38063
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (eG = G && (0, import_jsx_runtime.jsx)("div", {
|
|
38064
38064
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
38065
38065
|
style: {
|
|
38066
38066
|
transform: `scale(${I})`,
|
|
@@ -38076,14 +38076,14 @@ ${c}
|
|
|
38076
38076
|
output: c.output,
|
|
38077
38077
|
stale: outputIsStale(c, false)
|
|
38078
38078
|
})
|
|
38079
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
38080
|
-
let
|
|
38081
|
-
r[37] === z ?
|
|
38079
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = eG) : eG = r[36];
|
|
38080
|
+
let tG;
|
|
38081
|
+
r[37] === z ? tG = r[38] : (tG = z && (0, import_jsx_runtime.jsx)("div", {
|
|
38082
38082
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
38083
38083
|
"aria-hidden": true
|
|
38084
|
-
}), r[37] = z, r[38] =
|
|
38085
|
-
let
|
|
38086
|
-
r[39] !== z || r[40] !== R ? (
|
|
38084
|
+
}), r[37] = z, r[38] = tG);
|
|
38085
|
+
let nG;
|
|
38086
|
+
r[39] !== z || r[40] !== R ? (nG = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
38087
38087
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
38088
38088
|
className: "text-xs opacity-80",
|
|
38089
38089
|
children: R.description
|
|
@@ -38095,19 +38095,19 @@ ${c}
|
|
|
38095
38095
|
className: "h-3.5 w-3.5"
|
|
38096
38096
|
})
|
|
38097
38097
|
})
|
|
38098
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
38099
|
-
let
|
|
38100
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
38098
|
+
}), r[39] = z, r[40] = R, r[41] = nG) : nG = r[41];
|
|
38099
|
+
let rG;
|
|
38100
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== $W || r[46] !== eG || r[47] !== tG || r[48] !== nG ? (rG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38101
38101
|
ref: f,
|
|
38102
|
-
className:
|
|
38102
|
+
className: $W,
|
|
38103
38103
|
style: W,
|
|
38104
38104
|
...d,
|
|
38105
38105
|
children: [
|
|
38106
|
-
$W,
|
|
38107
38106
|
eG,
|
|
38108
|
-
tG
|
|
38107
|
+
tG,
|
|
38108
|
+
nG
|
|
38109
38109
|
]
|
|
38110
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
38110
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = $W, r[46] = eG, r[47] = tG, r[48] = nG, r[49] = rG) : rG = r[49], rG;
|
|
38111
38111
|
}, MiniCodePreview = (e) => {
|
|
38112
38112
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
38113
38113
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -38147,7 +38147,7 @@ ${c}
|
|
|
38147
38147
|
function _temp2$2(e) {
|
|
38148
38148
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
38149
38149
|
}
|
|
38150
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
38150
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-ByqpHkkW.js"));
|
|
38151
38151
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
38152
38152
|
var _a5;
|
|
38153
38153
|
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), [
|
|
@@ -38532,7 +38532,7 @@ ${c}
|
|
|
38532
38532
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
38533
38533
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
38534
38534
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
38535
|
-
let H, W, G, q, Z,
|
|
38535
|
+
let H, W, G, q, Z, QW, $W, eG, tG, nG;
|
|
38536
38536
|
if (r[3] !== w || r[4] !== M || r[5] !== I || r[6] !== L || r[7] !== _ || r[8] !== b || r[9] !== d || r[10] !== z || r[11] !== O || r[12] !== j || r[13] !== E || r[14] !== R || r[15] !== f || r[16] !== u || r[17] !== y || r[18] !== p || r[19] !== l) {
|
|
38537
38537
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
38538
38538
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -38578,11 +38578,11 @@ ${c}
|
|
|
38578
38578
|
})
|
|
38579
38579
|
})
|
|
38580
38580
|
]
|
|
38581
|
-
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", Z = c,
|
|
38582
|
-
let
|
|
38583
|
-
r[40] !== M || r[41] !==
|
|
38581
|
+
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", Z = c, QW = R, $W = 0;
|
|
38582
|
+
let rG2 = y && "marimo-output-stale", iG2 = L ? "p-5" : "p-3";
|
|
38583
|
+
r[40] !== M || r[41] !== rG2 || r[42] !== iG2 ? (eG = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", rG2, iG2, M), r[40] = M, r[41] = rG2, r[42] = iG2, r[43] = eG) : eG = r[43], r[44] === d ? tG = r[45] : (tG = d ? {
|
|
38584
38584
|
maxHeight: "none"
|
|
38585
|
-
} : void 0, r[44] = d, r[45] =
|
|
38585
|
+
} : void 0, r[44] = d, r[45] = tG), nG = e2.map((e3, r2) => {
|
|
38586
38586
|
if (e3.channel === "pdb") return null;
|
|
38587
38587
|
if (e3.channel === "stdin") {
|
|
38588
38588
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -38611,36 +38611,36 @@ ${c}
|
|
|
38611
38611
|
wrapText: l
|
|
38612
38612
|
})
|
|
38613
38613
|
}, r2);
|
|
38614
|
-
}), r[3] = w, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = Z, r[25] =
|
|
38615
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23], Z = r[24],
|
|
38616
|
-
let
|
|
38617
|
-
r[46] !== w || r[47] !== S ? (
|
|
38614
|
+
}), r[3] = w, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = Z, r[25] = QW, r[26] = $W, r[27] = eG, r[28] = tG, r[29] = nG;
|
|
38615
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], Z = r[24], QW = r[25], $W = r[26], eG = r[27], tG = r[28], nG = r[29];
|
|
38616
|
+
let rG;
|
|
38617
|
+
r[46] !== w || r[47] !== S ? (rG = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
38618
38618
|
value: S,
|
|
38619
38619
|
cellId: w,
|
|
38620
38620
|
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"
|
|
38621
|
-
}), r[46] = w, r[47] = S, r[48] =
|
|
38622
|
-
let
|
|
38623
|
-
r[49] !==
|
|
38621
|
+
}), r[46] = w, r[47] = S, r[48] = rG) : rG = r[48];
|
|
38622
|
+
let iG;
|
|
38623
|
+
r[49] !== rG || r[50] !== G || r[51] !== q || r[52] !== Z || r[53] !== QW || r[54] !== $W || r[55] !== eG || r[56] !== tG || r[57] !== nG ? (iG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38624
38624
|
title: G,
|
|
38625
38625
|
"data-testid": q,
|
|
38626
38626
|
ref: Z,
|
|
38627
|
-
...
|
|
38628
|
-
tabIndex:
|
|
38629
|
-
className:
|
|
38630
|
-
style:
|
|
38627
|
+
...QW,
|
|
38628
|
+
tabIndex: $W,
|
|
38629
|
+
className: eG,
|
|
38630
|
+
style: tG,
|
|
38631
38631
|
children: [
|
|
38632
|
-
|
|
38633
|
-
|
|
38632
|
+
nG,
|
|
38633
|
+
rG
|
|
38634
38634
|
]
|
|
38635
|
-
}), r[49] =
|
|
38636
|
-
let
|
|
38637
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
38635
|
+
}), r[49] = rG, r[50] = G, r[51] = q, r[52] = Z, r[53] = QW, r[54] = $W, r[55] = eG, r[56] = tG, r[57] = nG, r[58] = iG) : iG = r[58];
|
|
38636
|
+
let aG;
|
|
38637
|
+
return r[59] !== H || r[60] !== W || r[61] !== iG ? (aG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38638
38638
|
className: H,
|
|
38639
38639
|
children: [
|
|
38640
38640
|
W,
|
|
38641
|
-
|
|
38641
|
+
iG
|
|
38642
38642
|
]
|
|
38643
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
38643
|
+
}), r[59] = H, r[60] = W, r[61] = iG, r[62] = aG) : aG = r[62], aG;
|
|
38644
38644
|
}, StdInput = (e) => {
|
|
38645
38645
|
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;
|
|
38646
38646
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -38790,16 +38790,12 @@ ${c}
|
|
|
38790
38790
|
return r;
|
|
38791
38791
|
}
|
|
38792
38792
|
async function downloadAsHTML(e) {
|
|
38793
|
-
let r = getRequestClient(), {
|
|
38793
|
+
let r = getRequestClient(), { includeCode: c } = e;
|
|
38794
|
+
downloadExportedFile(await r.exportAsHTML({
|
|
38794
38795
|
download: true,
|
|
38795
|
-
includeCode:
|
|
38796
|
+
includeCode: c,
|
|
38796
38797
|
files: VirtualFileTracker.INSTANCE.filenames()
|
|
38797
|
-
})
|
|
38798
|
-
downloadBlob(new Blob([
|
|
38799
|
-
u
|
|
38800
|
-
], {
|
|
38801
|
-
type: "text/html"
|
|
38802
|
-
}), Filenames.toHTML(d));
|
|
38798
|
+
}));
|
|
38803
38799
|
}
|
|
38804
38800
|
function cellDomProps(e, r) {
|
|
38805
38801
|
return {
|
|
@@ -39186,7 +39182,6 @@ ${c}
|
|
|
39186
39182
|
}
|
|
39187
39183
|
async function _temp3() {
|
|
39188
39184
|
document.getElementById("App") && await downloadAsHTML({
|
|
39189
|
-
filename: document.title,
|
|
39190
39185
|
includeCode: true
|
|
39191
39186
|
});
|
|
39192
39187
|
}
|